shaluDashBoardUi.umd.min.js 2.7 MB

1234567891011121314151617181920212223242526272829303132333435363738
  1. (function(t,e){"object"===typeof exports&&"object"===typeof module?module.exports=e():"function"===typeof define&&define.amd?define([],e):"object"===typeof exports?exports["shaluDashBoardUi"]=e():t["shaluDashBoardUi"]=e()})("undefined"!==typeof self?self:this,(function(){return function(){var t={92751:function(t,e,n){"use strict";n.r(e),n.d(e,{Config:function(){return w},basicBarProps:function(){return d.A},default:function(){return O},defaultPropsValue:function(){return d.T}});var r=n(72987),i=n(73913),o=n(78753),a=n(59102),s=n(3640),l=n(87781),u=n(93648),c=n(55673),h=n(42667),d=n(35372),p=n(80344);const f=t=>((0,i.Qi)("data-v-1bac0329"),t=t(),(0,i.jt)(),t),g={class:"chart-config"},v={class:"config-tab"},m=f((()=>(0,i.Lk)("span",null,"数据设置",-1))),y=f((()=>(0,i.Lk)("span",null,"样式设置",-1)));var b=(0,i.pM)({__name:"Config",props:d.A,emits:["change"],setup(t,{emit:e}){const n=t,r=(0,o.KR)("1"),d=e,f=[{label:"样式",prop:"",type:"divider"},{label:"固定柱宽",prop:"series.fixedBarWidth",type:"radioGroup",fieldProps:{options:[{label:"是",value:!0},{label:"否",value:!1}]},defaultValue:!1,format:(t,e)=>{t.value["series.barWidth"]=e?t.value?.["series.barWidth"]||20:"auto"}},{label:"",prop:"",type:"dependency",name:["series.fixedBarWidth"],children:t=>t["series.fixedBarWidth"]?[{label:"柱宽",prop:"series.barWidth",type:"inputNumber",fieldProps:{addonAfter:"px"},defaultValue:20}]:[]},{label:"系列间隔",prop:"series.barGap",type:"slider",defaultValue:20},{label:"分类间隔",prop:"series.barCategoryGap",type:"slider",defaultValue:20},{label:"边框",prop:"",type:"divider"},{label:"线宽",prop:"series.itemStyle.borderWidth",type:"inputNumber",fieldProps:{addonAfter:"px"},defaultValue:0},{label:"颜色",prop:"series.itemStyle.borderColor",type:"colorSelect",defaultValue:"#ccc"},{label:"圆角",prop:"series.itemStyle.borderRadius",type:"inputNumber",fieldProps:{addonAfter:"px"},defaultValue:0}],b=[p.f.title,p.f.legend,{...p.f.series,children:p.f.series.children.concat(f)},p.f.xAxis,p.f.yAxis,p.f.tooltip],_=t=>{d("change",{...n,dataSource:t})},x=(t,e)=>{console.log("form change:",t,e)};return(t,e)=>((0,i.uX)(),(0,i.CE)("div",g,[(0,i.Lk)("div",v,[(0,i.bF)((0,o.R1)(a.A),{activeKey:r.value,"onUpdate:activeKey":e[0]||(e[0]=t=>r.value=t),size:"small",centered:""},{default:(0,i.k6)((()=>[(0,i.bF)((0,o.R1)(s.A),{key:"1"},{tab:(0,i.k6)((()=>[(0,i.bF)((0,o.R1)(l.A)),m])),_:1}),(0,i.bF)((0,o.R1)(s.A),{key:"2"},{tab:(0,i.k6)((()=>[(0,i.bF)((0,o.R1)(u.A)),y])),_:1})])),_:1},8,["activeKey"])]),"1"===r.value?((0,i.uX)(),(0,i.Wv)(c.A,{key:0,dataSource:t.dataSource,onChange:_},null,8,["dataSource"])):(0,i.Q3)("",!0),"2"===r.value?((0,i.uX)(),(0,i.Wv)((0,o.R1)(h.O),{key:1,columns:b,onChange:x})):(0,i.Q3)("",!0)]))}}),_=n(23165);const x=(0,_.A)(b,[["__scopeId","data-v-1bac0329"]]);var w=x;r.A.Config=w,r.A.install=t=>(t.component("FmDashboardBasicBar",r.A),t);var O=r.A},35372:function(t,e,n){"use strict";n.d(e,{A:function(){return o},T:function(){return s}});var r=n(50527),i=n(83848);const o={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},dataset:{type:Object},color:{type:Object}},a=(0,r.iN)({title:{text:"柱状图标题"},xAxis:{data:["轴标签A","轴标签B","轴标签C","轴标签D"]}}),s={container:{props:{width:400,height:260}},props:{dataSource:{sourceType:i.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 "},...a}}},63393:function(t,e,n){"use strict";n.r(e),n.d(e,{Config:function(){return P},basicLineProps:function(){return l},default:function(){return I},defaultPropsValue:function(){return c}});var r=n(73913),i=n(78753),o=n(29611),a=n(50527),s=n(83848);const l={width:{type:Number,default:400},height:{type:Number,default:260},dataSource:a.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}},u=(0,a.iN)({title:{text:"折线图标题"},xAxis:{data:["轴标签A","轴标签B","轴标签C","轴标签D"]}}),c={container:{props:{width:400,height:260}},props:{dataSource:{sourceType:s.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 h=n(10148),d=(0,r.pM)({__name:"BasicLine",props:l,setup(t){const e=t,{options:n,loading:a}=(0,h.u)(e);return(t,e)=>((0,r.uX)(),(0,r.Wv)(o.A,{width:t.width,height:t.height,"echarts-options":(0,i.R1)(n),loading:(0,i.R1)(a)},null,8,["width","height","echarts-options","loading"]))}});const p=d;var f=p,g=n(59102),v=n(3640),m=n(87781),y=n(93648),b=n(55673),_=n(42667),x=n(80344);const w=t=>((0,r.Qi)("data-v-2cac5757"),t=t(),(0,r.jt)(),t),O={class:"chart-config"},S={class:"config-tab"},A=w((()=>(0,r.Lk)("span",null,"数据设置",-1))),k=w((()=>(0,r.Lk)("span",null,"样式设置",-1)));var C=(0,r.pM)({__name:"Config",props:l,emits:["change"],setup(t,{emit:e}){const n=t,o=(0,i.KR)("1"),a=e,s=[x.f.title,x.f.legend,x.f.series,x.f.xAxis,x.f.yAxis,x.f.tooltip,x.f.background],l=t=>{a("change",{...n,dataSource:t})};return(t,e)=>((0,r.uX)(),(0,r.CE)("div",O,[(0,r.Lk)("div",S,[(0,r.bF)((0,i.R1)(g.A),{activeKey:o.value,"onUpdate:activeKey":e[0]||(e[0]=t=>o.value=t),size:"small",centered:""},{default:(0,r.k6)((()=>[(0,r.bF)((0,i.R1)(v.A),{key:"1"},{tab:(0,r.k6)((()=>[(0,r.bF)((0,i.R1)(m.A)),A])),_:1}),(0,r.bF)((0,i.R1)(v.A),{key:"2"},{tab:(0,r.k6)((()=>[(0,r.bF)((0,i.R1)(y.A)),k])),_:1})])),_:1},8,["activeKey"])]),"1"===o.value?((0,r.uX)(),(0,r.Wv)(b.A,{key:0,dataSource:t.dataSource,onChange:l},null,8,["dataSource"])):(0,r.Q3)("",!0),"2"===o.value?((0,r.uX)(),(0,r.Wv)((0,i.R1)(_.O),{key:1,columns:s})):(0,r.Q3)("",!0)]))}}),M=n(23165);const T=(0,M.A)(C,[["__scopeId","data-v-2cac5757"]]);var P=T;f.Config=P,f.install=t=>(t.component("FmDashboardBasicLine",f),t);var I=f},83848:function(t,e,n){"use strict";var r;n.d(e,{o:function(){return r}}),function(t){t[t["STATIC"]=0]="STATIC",t[t["API"]=1]="API"}(r||(r={}))},80344:function(t,e,n){"use strict";n.d(e,{f:function(){return i}});var r=n(45340);const i={title:{label:"标题",prop:"title",type:"group",children:[{label:" ",prop:"title.show",type:"checkboxGroup",fieldProps:{options:[{label:"标题可见",value:!0}]},defaultValue:[],format:(t,e)=>{t.value["title.show"]=!!e.length}},{type:"dependency",label:"",prop:"",name:["title.show"],children:t=>t["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:(t,e)=>{t.value["title.textStyle"]={color:e.color,fontSize:e.size,fontWeight:e.bold?"bold":"normal",fontStyle:e.italic?"italic":"normal"}}},{label:"背景",prop:"",type:"divider"},{label:"填充",prop:"title.backgroundColor",type:"backgroundSelect",fieldProps:{filterOptions:["image"]},defaultValue:{type:"color",color:"#fff"},format:(t,e)=>{t.value["title.backgroundColor"]=e.color}},{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:(t,e)=>{t.value["legend.show"]=!!e.length}},{type:"dependency",label:"",prop:"",name:["legend.show"],children:t=>t["legend.show"].length?[{label:"位置",prop:"legend.position",type:"position",fieldProps:{type:"round"},defaultValue:"top"},{label:"样式",prop:"legend.textStyle",type:"fontStyle",defaultValue:{color:"#000000ff",size:12,bold:!1,italic:!1},format:(t,e)=>{t.value["legend.textStyle"]={color:e.color,fontSize:e.size,fontWeight:e.bold?"bold":"normal",fontStyle:e.italic?"italic":"normal"}}},{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:(t,e)=>{t.value["legend.backgroundColor"]=e.color}},{label:"阴影",prop:"legend.shadowBlur",type:"radioGroup",fieldProps:{options:[{label:"开启",value:!0},{label:"关闭",value:!1}]},defaultValue:!1,format:(t,e)=>{t.value["legend.shadowBlur"]=e?10:0,t.value["legend.shadowColor"]="#000"}}]:[]}]},series:{label:"系列",prop:"series.color",type:"group",children:[{label:"配色",prop:"series.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:(t,e)=>{t.value["xAxis.showName"]=!!e.length}},{label:"",prop:"",type:"dependency",name:["xAxis.showName"],children:t=>t["xAxis.showName"].length?[{label:"标题内容",prop:"xAxis.name",type:"input",defaultValue:"X 轴标题",format:(t,e)=>{t.value["xAxis.showName"]?(t.value["xAxis.name"]=e,t.value["grid.bottom"]=40):(t.value["xAxis.name"]="",t.value["grid.bottom"]=20)}},{label:"标题位置",prop:"xAxis.nameLocation",type:"position",defaultValue:"center",format:(t,e)=>{const n={left:"start",center:"middle",right:"end"};t.value["xAxis.nameLocation"]=e?n[e]:"middle"}},{label:"标题样式",prop:"xAxis.nameTextStyle",type:"fontStyle",defaultValue:{color:"#000000ff",size:12,bold:!1,italic:!1},format:(t,e)=>{t.value["xAxis.nameTextStyle"]={color:e.color,fontSize:e.size,fontWeight:e.bold?"bold":"normal",fontStyle:e.italic?"italic":"normal"}}}]:[]},{label:"轴线",prop:"",type:"divider"},{label:"线宽",prop:"xAxis.axisLine.width",type:"inputNumber",fieldProps:{addonAfter:"px"},defaultValue:1},{label:"颜色",prop:"xAxis.axisLine.color",type:"colorSelect",defaultValue:"#ccc"},{label:"刻度",prop:"",type:"divider"},{label:" ",prop:"xAxis.axisTick.show",type:"checkboxGroup",fieldProps:{options:[{label:"显示刻度",value:!0}]},defaultValue:[!0],format:(t,e)=>{t.value["xAxis.axisTick.show"]=!!e.length}},{label:"",prop:"",type:"dependency",name:["xAxis.axisTick.show"],children:t=>t["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:(t,e)=>{t.value["xAxis.axisLabel.show"]=!!e.length}},{label:"",prop:"",type:"dependency",name:["xAxis.axisLabel.show"],children:t=>t["xAxis.axisLabel.show"].length?[{label:"样式",prop:"xAxis.axisLabel",type:"fontStyle",defaultValue:{color:"#000000ff",size:12,bold:!1,italic:!1},format:(t,e)=>{t.value["xAxis.axisLabel.color"]=e.color,t.value["xAxis.axisLabel.fontSize"]=e.size,t.value["xAxis.axisLabel.fontWeight"]=e.bold?"bold":"normal",t.value["xAxis.axisLabel.fontStyle"]=e.italic?"italic":"normal"}}]:[]}]},yAxis:{label:"Y 轴",prop:"yAxis",type:"group",children:[{label:" ",prop:"yAxis.show",type:"checkboxGroup",fieldProps:{options:[{label:"显示轴标题",value:!0}]},defaultValue:[],format:(t,e)=>{t.value["yAxis.show"]=!!e.length}},{label:"",prop:"",type:"dependency",name:["yAxis.show"],children:t=>t["yAxis.show"].length?[{label:"标题内容",prop:"yAxis.name",type:"input",defaultValue:"Y 轴标题",format:(t,e)=>{t.value["yAxis.show"]?(t.value["yAxis.name"]=e,t.value["grid.left"]=40):(t.value["yAxis.name"]="",t.value["grid.left"]=20)}},{label:"标题位置",prop:"yAxis.nameLocation",type:"position",defaultValue:"center",format:(t,e)=>{const n={left:"start",center:"middle",right:"end"};t.value["yAxis.nameLocation"]=e?n[e]:"middle"}},{label:"标题样式",prop:"yAxis.nameTextStyle",type:"fontStyle",defaultValue:{color:"#000000ff",size:12,bold:!1,italic:!1},format:(t,e)=>{t.value["yAxis.nameTextStyle"]={color:e.color,fontSize:e.size,fontWeight:e.bold?"bold":"normal",fontStyle:e.italic?"italic":"normal"}}}]:[]},{label:"轴线",prop:"",type:"divider"},{label:"线宽",prop:"yAxis.axisLine.width",type:"inputNumber",fieldProps:{addonAfter:"px"},defaultValue:1},{label:"颜色",prop:"yAxis.axisLine.color",type:"colorSelect",defaultValue:"#ccc"},{label:"刻度",prop:"",type:"divider"},{label:" ",prop:"yAxis.axisTick.show",type:"checkboxGroup",fieldProps:{options:[{label:"显示刻度",value:!0}]},defaultValue:[!0],format:(t,e)=>{t.value["yAxis.axisTick.show"]=!!e.length}},{label:"",prop:"",type:"dependency",name:["yAxis.axisTick.show"],children:t=>t["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:(t,e)=>{t.value["yAxis.axisLabel.show"]=!!e.length}},{label:"",prop:"",type:"dependency",name:["yAxis.axisLabel.show"],children:t=>t["yAxis.axisLabel.show"].length?[{label:"样式",prop:"yAxis.axisLabel",type:"fontStyle",defaultValue:{color:"#000000ff",size:12,bold:!1,italic:!1},format:(t,e)=>{t.value["yAxis.axisLabel.color"]=e.color,t.value["yAxis.axisLabel.fontSize"]=e.size,t.value["yAxis.axisLabel.fontWeight"]=e.bold?"bold":"normal",t.value["yAxis.axisLabel.fontStyle"]=e.italic?"italic":"normal"}}]:[]}]},tooltip:{label:"提示",prop:"tooltip",type:"group",children:[{label:" ",prop:"tooltip.show",type:"checkboxGroup",fieldProps:{options:[{label:"提示可见",value:!0}]},defaultValue:[!0],format:(t,e)=>{t.value["tooltip.show"]=!!e.length}},{label:"",prop:"",type:"dependency",name:["tooltip.show"],children:t=>t["tooltip.show"].length?[{label:"文本",prop:"tooltip.formatter",type:"checkboxGroup",fieldProps:{options:[{label:"分类名",value:"b"},{label:"系列名",value:"a"},{label:"数值",value:"c"}]},defaultValue:["b"],format:(t,e)=>{t.value["tooltip.formatter"]=`{${e}}`}},{label:"格式化",prop:"tooltip.valueFormatter",type:"input",tip:"支持字符串模板和回调函数",defaultValue:"(value, dataIndex) => value"},{label:"样式",prop:"tooltip.textStyle",type:"fontStyle",defaultValue:{color:"#000000ff",size:12,bold:!1,italic:!1},format:(t,e)=>{t.value["tooltip.textStyle"]={color:e.color,fontSize:e.size,fontWeight:e.bold?"bold":"normal",fontStyle:e.italic?"italic":"normal"}}},{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:"",type:"divider"},{label:"填充",prop:"tooltip.backgroundColor",type:"backgroundSelect",fieldProps:{filterOptions:["image"]},defaultValue:{type:"color",color:"#fff"},format:(t,e)=>{t.value["tooltip.backgroundColor"]=e.color}},{label:"阴影",prop:"tooltip.extraCssText",type:"radioGroup",fieldProps:{options:[{label:"开启",value:!0},{label:"关闭",value:!1}]},defaultValue:!1,format:(t,e)=>{t.value["tooltip.extraCssText"]=e?"box-shadow: 0 0 3px rgba(0, 0, 0, 0.3);":""}}]:[]}]},label:{label:"标签",prop:"label",type:"group",children:[{label:" ",prop:"label.show",type:"checkboxGroup",fieldProps:{options:[{label:"标签可见",value:!0}]},defaultValue:[],format:(t,e)=>{t.value["label.show"]=!!e.length}},{label:"",prop:"",type:"dependency",name:["label.show"],children:t=>t["label.show"].length?[{label:"文本",prop:"label.formatter",type:"checkboxGroup",fieldProps:{options:[{label:"分类名",value:"b"},{label:"系列名",value:"a"},{label:"数值",value:"c"}]},defaultValue:["a"],format:(t,e)=>{t.value["label.formatter"]=`{${e}}`}},{label:"样式",prop:"label.fontStyle",type:"fontStyle",defaultValue:{color:"#000000ff",size:12,bold:!1,italic:!1},format:(t,e)=>{t.value["label.color"]=e.color,t.value["label.fontSize"]=e.size,t.value["label.fontWeight"]=e.bold?"bold":"normal",t.value["label.fontStyle"]=e.italic?"italic":"normal"}},{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:(t,e)=>{t.value["label.rotate"]="horizontal"===e?0:90}},{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(t,e,n){"use strict";n.d(e,{kw:function(){return i},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"]}],i={color:r[0].color,title:{left:"center",top:8,textStyle:{color:"#fff",fontSize:16}},legend:{textStyle:{color:"#fff"},top:32},grid:{bottom:34,right:20,top:60},tooltip:{},xAxis:{type:"category",axisLabel:{color:"#9fadbf"}},yAxis:{axisLabel:{color:"#9fadbf"},splitLine:{lineStyle:{type:"dashed",color:"#36485f"}}}}},10148:function(t,e,n){"use strict";n.d(e,{u:function(){return _t}});var r=n(78753),i=n(73913),o=n(11059);const a=(t,{manual:e,ready:n=!0,refreshDeps:o=[],refreshDepsAction:a})=>{const s=(0,r.KR)(!1);return(0,i.nT)((()=>{e||!0===t.options.refreshDeps||(s.value=(0,r.R1)(n))})),o instanceof Array?(0,i.wB)([s,...o],(([n])=>{n&&!e&&n&&(a?a():t.refresh())}),{deep:!0,immediate:!1}):(0,i.wB)(s,(n=>{!e&&n&&(a?a():t.refresh())})),{name:"autoRunPlugin",onBefore:()=>{if(!(0,r.R1)(n))return{stopNow:!0}}}};a.onInit=({ready:t=!0,manual:e})=>({loading:!e&&(0,r.R1)(t)});const s=new Map,l=(t,e,n)=>{const r=s.get(t);let i;(null==r?void 0:r.timer)&&clearTimeout(r.timer),e>-1&&(i=setTimeout((()=>{s.delete(t)}),e)),s.set(t,{...n,timer:i})},u=t=>s.get(t),c=new Map,h=t=>c.get(t),d=(t,e)=>{c.set(t,e),e.then((e=>(c.delete(t),e))).catch((e=>{throw c.delete(t),e}))};n(30381);const p={},f=[],g=(t,e)=>{p[t]&&(p[t].forEach((t=>t(e))),f.forEach((n=>n({type:t,data:e}))))},v=(t,e)=>(p[t]||(p[t]=[]),p[t].push(e),function(){const n=p[t].indexOf(e);p[t].splice(n,1)}),m=(t,{cacheKey:e,cacheTime:n=3e5,staleTime:o=0,setCache:a,getCache:s})=>{const c=(0,r.KR)(),p=(0,r.KR)(),f=(t,e)=>{a?a(e):l(t,n,e),g(t,e.data)},m=(t,e=[])=>s?s(e):u(t);return(0,i.nT)((()=>{if(!e)return;const n=m(e);n&&Object.hasOwnProperty.call(n,"data")&&(t.state.data=n.data,t.state.params=n.params,(-1===o||(new Date).getTime()-n.time<=o)&&(t.state.loading=!1)),c.value=v(e,(e=>{t.setState({data:e})}))})),(0,r.jr)((()=>{var t;null==(t=c.value)||t.call(c)})),e?{name:"cachePlugin",onBefore:t=>{const n=m(e,t);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:(t,n)=>{let r=h(e);return r&&r!==p.value||(r=t(...n),p.value=r,d(e,r)),{servicePromise:r}},onSuccess:(n,r)=>{var i;e&&(null==(i=c.value)||i.call(c),f(e,{data:n,params:r,time:(new Date).getTime()}),c.value=v(e,(e=>{t.setState({data:e})})))},onMutate:n=>{var r;e&&(null==(r=c.value)||r.call(c),f(e,{data:n,params:t.state.params,time:(new Date).getTime()}),c.value=v(e,(e=>{t.setState({data:e})})))}}:{}};var y=n(15529),b=n.n(y);const _=(t,{debounceWait:e,debounceLeading:n,debounceTrailing:o,debounceMaxWait:a})=>{const s=(0,r.KR)(),l=(0,i.EW)((()=>{const t={},e=(0,r.R1)(n),i=(0,r.R1)(o),s=(0,r.R1)(a);return void 0!==e&&(t.leading=e),void 0!==i&&(t.trailing=i),void 0!==s&&(t.maxWait=s),t}));return(0,i.nT)((n=>{if((0,r.R1)(e)){const i=t.runAsync.bind(t);s.value=b()((t=>{t()}),(0,r.R1)(e),l.value),t.runAsync=(...t)=>new Promise(((e,n)=>{var r;null==(r=s.value)||r.call(s,(()=>{i(...t).then(e).catch(n)}))})),n((()=>{var e;null==(e=s.value)||e.cancel(),t.runAsync=i}))}})),(0,r.R1)(e)?{name:"debouncePlugin",onCancel:()=>{var t;null==(t=s.value)||t.cancel()}}:{}};var x=Object.defineProperty,w=(t,e,n)=>e in t?x(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,O=(t,e,n)=>(w(t,"symbol"!==typeof e?e+"":e,n),n);class S{constructor(){O(this,"table",{}),O(this,"hashTable",{})}insert(t){const e=Symbol(t);return this.table[t]=!0,this.hashTable[e]=t,e}find(t){return this.hashTable[t]}}new S;var A=Object.defineProperty,k=(t,e,n)=>e in t?A(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,C=(t,e,n)=>(k(t,"symbol"!==typeof e?e+"":e,n),n);class M{constructor(){C(this,"requestInstances",new Map),C(this,"listeners",[])}emit(t){this.listeners.forEach((e=>e(t)))}subscribe(t){return this.listeners.push(t),()=>{const e=this.listeners.indexOf(t);this.listeners.splice(e,1)}}insert(t,e){this.requestInstances.set(t,{...e}),this.emit({key:t,...e})}update(t,e){this.has(t)&&this.requestInstances.set(t,{...this.requestInstances.get(t),...e})}has(t){return this.requestInstances.has(t)}reset(t){if(this.requestInstances.has(t)){const e=this.requestInstances.get(t);this.requestInstances.clear(),this.insert(t,e)}else this.requestInstances.clear()}getAll(){return this.requestInstances}}new M;const T=(t,{loadingDelay:e})=>{const n=(0,r.KR)(),i=()=>{n.value&&(clearTimeout((0,r.R1)(n.value)),n.value=void 0)};return{name:"loadingDelayPlugin",onFinally:()=>{i();const o=(0,r.R1)(e);o&&(t.setState({loading:!0}),n.value=setTimeout((()=>{t.setState({loading:!1})}),o))},onError:()=>{i()}}};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 R(t){return E.push(t),function(){const e=E.indexOf(t);E.splice(e,1)}}if(P()){const t=()=>{if($())for(let t=0;t<E.length;t++){const e=E[t];e()}};window.addEventListener("visibilitychange",t,!1)}const D=(t,{pollingInterval:e,pollingWhenHidden:n=!0,pollingErrorRetryCount:o=-1})=>{let a;const s=(0,r.KR)(),l=(0,r.KR)(0),u=()=>{var t;a&&clearTimeout(a),null==(t=s.value)||t.call(s)};return(0,i.nT)((()=>{(0,r.R1)(e)||u()})),(0,r.R1)(e)?{name:"pollingPlugin",onBefore:()=>{u()},onError:()=>{l.value+=1},onSuccess:()=>{l.value=0},onFinally:()=>{-1===o||-1!==o&&l.value<=o?a=setTimeout((()=>{n||$()?t.refresh():s.value=R((()=>{t.refresh()}))}),(0,r.R1)(e)):l.value=0},onCancel:()=>{u()}}:{}};function L(t,e){let n=!1;return(...r)=>{n||(n=!0,t(...r),setTimeout((()=>{n=!1}),e))}}function N(){return!P()||"undefined"===typeof navigator.onLine||navigator.onLine}const z=[];function B(t){return z.push(t),function(){const e=z.indexOf(t);e>-1&&z.splice(e,1)}}if(I){const t=()=>{if($()&&N())for(let t=0;t<z.length;t++){const e=z[t];e()}};window.addEventListener("visibilitychange",t,!1),window.addEventListener("focus",t,!1)}const F=(t,{refreshOnWindowFocus:e,focusTimespan:n=5e3})=>{const o=(0,r.KR)(),a=()=>{var t;null==(t=o.value)||t.call(o)};return(0,i.nT)((i=>{if((0,r.R1)(e)){const e=L(t.refresh.bind(t),(0,r.R1)(n));o.value=B((()=>{e()}))}i((()=>{a()}))})),(0,r.jr)((()=>{a()})),{name:"refreshOnWindowFocusPlugin"}},W=(t,{retryInterval:e,retryCount:n})=>{const i=(0,r.KR)(),o=(0,r.KR)(0),a=(0,r.KR)(!1);return n?{name:"retryPlugin",onBefore:()=>{a.value||(o.value=0),a.value=!1,i.value&&clearTimeout(i.value)},onSuccess:()=>{o.value=0},onError:()=>{if(o.value+=1,-1===n||o.value<=n){const n=null!=e?e:Math.min(1e3*2**o.value,3e4);i.value=setTimeout((()=>{a.value=!0,t.refresh()}),n)}else o.value=0},onCancel:()=>{o.value=0,i.value&&clearTimeout(i.value)}}:{}};var j=n(80434),V=n.n(j);const Q=(t,{throttleWait:e,throttleLeading:n,throttleTrailing:o})=>{const a=(0,i.EW)((()=>{const t={};return void 0!==(0,r.R1)(n)&&(t.leading=(0,r.R1)(n)),void 0!==(0,r.R1)(o)&&(t.trailing=(0,r.R1)(o)),t})),s=(0,i.EW)((()=>V()((t=>{t()}),(0,r.R1)(e),a.value)));return(0,i.nT)((n=>{if((0,r.R1)(e)){const e=t.runAsync.bind(t);t.runAsync=(...t)=>new Promise(((n,r)=>{var i;null==(i=s.value)||i.call(s,(()=>{e(...t).then(n).catch(r)}))})),n((()=>{var n;t.runAsync=e,null==(n=s.value)||n.cancel()}))}})),(0,r.R1)(e)?{name:"throttlePlugin",onCancel:()=>{var t;null==(t=s.value)||t.cancel()}}:{}},H=t=>"function"===typeof t,Z=t=>"boolean"===typeof t;var G=Object.defineProperty,X=(t,e,n)=>e in t?G(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,U=(t,e,n)=>(X(t,"symbol"!==typeof e?e+"":e,n),n);class Y{constructor(t,e,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=t,this.options=e,this.setUpdateData=n,this.initState=r,this.state={...this.state,loading:!e.manual,...r}}setState(t={}){this.state={...this.state,...t},this.setUpdateData(this.state)}setData(t,e){console.warn("Please use 'setFetchState' instead of 'setData'"),e instanceof Array?e.forEach((e=>{this.state[e]=t,this.setUpdateData(t,e)})):(this.state[e]=t,this.setUpdateData(t,e))}setFetchState(t,e){e instanceof Array?e.forEach((e=>{this.state[e]=t,this.setUpdateData(t,e)})):(this.state[e]=t,this.setUpdateData(t,e))}runPluginHandler(t,...e){var n,r,i;const o=null==(i=null!=(r=null==(n=this.pluginImpls)?void 0:n.map((n=>{var r;return null==(r=n[t])?void 0:r.call(n,...e)})))?r:[])?void 0:i.filter(Boolean);return Object.assign({},...o)}async runAsync(...t){var e,n,r,i,o,a,s,l,u,c,h;this.count+=1;const d=this.count,{stopNow:p=!1,returnNow:f=!1,...g}=this.runPluginHandler("onBefore",t);if(p)return new Promise((()=>{}));if(this.setState({loading:!0,params:t,...g}),f)return Promise.resolve(g.data);try{null==(n=(e=this.options).onBefore)||n.call(e,t)}catch(v){return this.setState({error:v,loading:!1}),null==(i=(r=this.options).onError)||i.call(r,v,t),this.runPluginHandler("onError",v,t),new Promise((()=>{}))}try{let{servicePromise:e}=this.runPluginHandler("onRequest",this.serviceRef.value,t);const n=e=>{var n,r,i,o;if(d!==this.count)return new Promise((()=>{}));const a=this.options.formatResult?this.options.formatResult(e):e;return this.setState({data:a,error:void 0,loading:!1}),null==(r=(n=this.options).onSuccess)||r.call(n,a,t),this.runPluginHandler("onSuccess",a,t),this.previousValidData=a,null==(o=(i=this.options).onFinally)||o.call(i,t,a,void 0),d===this.count&&this.runPluginHandler("onFinally",t,a,void 0),a};e||(e=this.serviceRef.value(...t));const r=await e;return n(r)}catch(v){if(d!==this.count)return new Promise((()=>{}));throw this.setState({error:v,loading:!1}),null==(a=(o=this.options).onError)||a.call(o,v,t),this.runPluginHandler("onError",v,t),(H(null==(s=this.options)?void 0:s.rollbackOnError)&&(null==(l=this.options)?void 0:l.rollbackOnError(t))||Z(null==(u=this.options)?void 0:u.rollbackOnError)&&this.options.rollbackOnError)&&this.setState({data:this.previousValidData}),null==(h=(c=this.options).onFinally)||h.call(c,t,void 0,v),d===this.count&&this.runPluginHandler("onFinally",t,void 0,v),v}}run(...t){this.runAsync(...t).catch((t=>{this.options.onError||console.error(t)}))}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(t){const e=H(t)?t(this.state.data):t;this.runPluginHandler("onMutate",e),this.setState({data:e})}}const q=Symbol("USEREQUEST_GLOBAL_OPTIONS_PROVIDE_KEY");function K(t){const e=Object.keys(t);return 4===e.filter((t=>["data","loading","params","error"].includes(t))).length}function J(t,e={},n=[]){const o=(0,i.WQ)(q,{}),{initialData:a,manual:s=!1,ready:l=!0,...u}={...null!=o?o:{},...null!=e?e:{}},c={manual:s,ready:l,initialData:a,...u},h=(0,r.KR)(t),d=(0,r.Kh)({data:a,loading:!1,params:void 0,error:void 0}),p=(t,e)=>{e?d[e]=t:K(t)&&(d.data=t.data,d.loading=t.loading,d.error=t.error,d.params=t.params)},f=n.map((t=>{var e;return null==(e=null==t?void 0:t.onInit)?void 0:e.call(t,c)})).filter(Boolean),g=new Y(h,c,p,Object.assign({},...f,d));g.options=c,g.pluginImpls=n.map((t=>t(g,c)));const v=(0,i.EW)((()=>(0,r.i9)(l)?l.value:l));if((0,i.nT)((()=>{if(!s){const t=g.state.params||e.defaultParams||[];v.value&&!0===g.options.refreshDeps&&h.value&&g.run(...t)}})),!s&&!0!==g.options.refreshDeps){const t=g.state.params||e.defaultParams||[];(0,r.R1)(l)&&g.run(...t)}return(0,r.jr)((()=>{g.cancel()})),{...(0,r.QW)(d),cancel:g.cancel.bind(g),refresh:g.refresh.bind(g),refreshAsync:g.refreshAsync.bind(g),run:g.run.bind(g),runAsync:g.runAsync.bind(g),mutate:g.mutate.bind(g)}}const tt=(t,e)=>function(n,r={},i=[]){let o=t;const a=e||[];for(let t=a.length;t--;)o=a[t](o);return o(n,r,i)};function et(t,e,n){var r;const i=null==(r=[null,_,T,D,F,Q,a,m,W])?void 0:r.filter(Boolean);return tt(J,null==e?void 0:e.use)(t,e,[...n||[],...i])}
  2. /*! js-cookie v3.0.5 | MIT */
  3. function nt(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)t[r]=n[r]}return t}var rt={read:function(t){return'"'===t[0]&&(t=t.slice(1,-1)),t.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(t){return encodeURIComponent(t).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function it(t,e){function n(n,r,i){if("undefined"!==typeof document){i=nt({},e,i),"number"===typeof i.expires&&(i.expires=new Date(Date.now()+864e5*i.expires)),i.expires&&(i.expires=i.expires.toUTCString()),n=encodeURIComponent(n).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var o="";for(var a in i)i[a]&&(o+="; "+a,!0!==i[a]&&(o+="="+i[a].split(";")[0]));return document.cookie=n+"="+t.write(r,n)+o}}function r(e){if("undefined"!==typeof document&&(!arguments.length||e)){for(var n=document.cookie?document.cookie.split("; "):[],r={},i=0;i<n.length;i++){var o=n[i].split("="),a=o.slice(1).join("=");try{var s=decodeURIComponent(o[0]);if(r[s]=t.read(a,s),e===s)break}catch(l){}}return e?r[e]:r}}return Object.create({set:n,get:r,remove:function(t,e){n(t,"",nt({},e,{expires:-1}))},withAttributes:function(t){return it(this.converter,nt({},this.attributes,t))},withConverter:function(t){return it(nt({},this.converter,t),this.attributes)}},{attributes:{value:Object.freeze(e)},converter:{value:Object.freeze(t)}})}it(rt,{path:"/"});const ot=!("undefined"===typeof window||!window.document||!window.document.createElement);function at(t,e){var n,i;if(!ot)return;if(!t)return e;let o;return o="function"===typeof t?t():(0,r.i9)(t)?null!=(i=null==(n=t.value)?void 0:n.$el)?i:t.value:t,o}function st(t,e){if(t===e)return!0;for(let n=0;n<t.length;n++)if(!Object.is(t[n],e[n]))return!1;return!0}const lt=t=>{const e=(e,n,o)=>{const a=(0,r.KR)(!1),s=(0,r.KR)([]),l=(0,r.KR)([]),u=(0,r.KR)();t((()=>{var t;const r=Array.isArray(o)?o:[o],i=r.map((t=>at(t)));if(!a.value)return a.value=!0,s.value=i,l.value=n,void(u.value=e());i.length===s.value.length&&st(i,s.value)&&st(n,l.value)||(null==(t=u.value)||t.call(u),s.value=i,l.value=n,u.value=e())})),(0,i.hi)((()=>{var t;null==(t=u.value)||t.call(u),a.value=!1}))};return e};lt(i.nT);function ut(t){return"function"===typeof t}function ct(t){function e(e,n){let o;try{o=t()}catch(h){console.error(h)}const a=t=>(null==n?void 0:n.serializer)?null==n?void 0:n.serializer(t):JSON.stringify(t),s=t=>(null==n?void 0:n.deserializer)?null==n?void 0:n.deserializer(t):JSON.parse(t);function l(){try{const t=null==o?void 0:o.getItem((0,r.R1)(e));if(t)return s(t)}catch(t){console.error(t)}return ut(null==n?void 0:n.defaultValue)?null==n?void 0:n.defaultValue():null==n?void 0:n.defaultValue}const u=(0,r.KR)(l());(0,i.nT)((()=>{e&&(u.value=l())}));const c=t=>{if("undefined"===typeof t)u.value=void 0,null==o||o.removeItem((0,r.R1)(e));else if(ut(t)){const i=t(u.value);try{u.value=i,null==o||o.setItem((0,r.R1)(e),a(i))}catch(n){console.error(n)}}else try{u.value=t,null==o||o.setItem((0,r.R1)(e),a(t))}catch(n){console.error(n)}};return[(0,r.tB)(u),c]}return e}ct((()=>ot?localStorage:void 0));var ht=n(52723),dt=n.n(ht),pt=Object.defineProperty,ft=(t,e,n)=>e in t?pt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,gt=(t,e,n)=>(ft(t,"symbol"!==typeof e?e+"":e,n),n);class vt{constructor(){gt(this,"subscriptions",new Map),gt(this,"emitEffectCache",new Map),gt(this,"useSubscription",((t,e)=>{const n=(0,r.KR)();(0,i.nT)((r=>{var i,o;function a(t){n.value&&n.value(t)}n.value=e;const s=null!=(o=null==(i=this.subscriptions)?void 0:i.get(t))?o:[];s.push(a),this.subscriptions.set(t,s),this.emitEffect(t),r((()=>{this.subscriptions.delete(t)}))}))})),gt(this,"emit",((t,...e)=>{if("string"!==typeof t&&"number"!==typeof t)throw new TypeError("event must be string or number !");{const n=this.subscriptions.get(t);null==n||n.forEach((n=>{null==n||n({params:dt()(e),event:t})})),this.emitEffectCache.set(t,{params:dt()(e),event:t})}})),gt(this,"emitEffect",(t=>{const e=this.emitEffectCache.get(t),n=this.subscriptions.get(t);e&&(null==n||n.forEach((t=>{null==t||t({...e})})))})),gt(this,"removeListener",(t=>{this.subscriptions.delete(t)})),gt(this,"clear",(()=>{this.subscriptions.clear()})),this.clear()}}new vt;n(9008);n(86608);ct((()=>ot?sessionStorage:void 0));n(85194),n(27092),n(68925),n(31796),n(21467),n(22064),n(92114);n(74920);var mt=n(83848),yt=n(33163),bt=n(50527);const _t=t=>{const e=t.dataSource||{},n=(0,r.KR)({data:e?.data?.xData}),a=(0,r.KR)({data:e?.data?.yData}),s=(0,r.KR)(e?.data?.series),l=(0,i.EW)((()=>async()=>await fetch(t.dataSource.url,{method:t.dataSource.method}).then((t=>t.json())))),{run:u,refresh:c,cancel:h,data:d,loading:p}=et(l.value,{defaultParams:t.dataSource.params,manual:!0,pollingInterval:1e3*(t.dataSource?.refreshTime||0),onError:e=>{console.error(e),yt.Ay.error(t.dataSource.url+"请求失败")}});t.dataSource.sourceType===mt.o.API&&u(),(0,i.wB)((()=>d.value),(async e=>{if(e&&t.dataSource.sourceType===mt.o.API){let r=e;t.dataSource.dataProcess&&(r=await(0,bt.O4)(t.dataSource.dataProcess,JSON.stringify(e))),n.value=r.xAxis||{data:r.xData},a.value=r.yAxis||{data:r.yData},s.value=r.series}}),{deep:!0}),(0,i.wB)((()=>[t.dataSource.sourceType,t.dataSource.method]),(()=>{if(t.dataSource.sourceType===mt.o.API)c();else{h();const e=t.dataSource||{};n.value={data:e?.data?.xData},a.value={data:e?.data?.yData},s.value=e?.data?.series}}),{deep:!0});const f=(0,i.EW)((()=>{const e=(0,o.omit)(t,["width","height","dataSource"]),r=(0,o.defaultsDeep)({xAxis:n.value,yAxis:a.value,series:s.value},e);return r}));return{options:f,loading:p}}},50527:function(t,e,n){"use strict";n.d(e,{Ex:function(){return s},O4:function(){return l},iN:function(){return a}});n(60726),n(82765),n(13312);var r=n(11059),i=n(45340),o=n(83848);function a(t){return(0,r.defaultsDeep)(t,i.kw)}const s={type:Object,default:()=>({sourceType:o.o.STATIC,data:[],url:"",method:"GET",params:{},headers:{},refreshTime:0,dataProcess:()=>[]})},l=(t,e)=>new Promise(((n,r)=>{const i=new Blob([`\n self.onmessage = function(e) {\n self.postMessage((${t}).call(null, e.data));\n }\n `],{type:"application/javascript"}),o=new Worker(URL.createObjectURL(i));o.postMessage(JSON.parse(e)),o.onmessage=t=>{o.terminate(),n(t.data)},o.onerror=t=>{o.terminate(),r(t)}}))},42667:function(t,e,n){"use strict";n.d(e,{O:function(){return ep}});var r=n(73913),i=n(78753),o=(n(30381),n(69751)),a=n(47960),s=n(16155),l=n(87051),u=n(66041),c=n(5530);const h=()=>({prefixCls:String,activeKey:(0,u.tK)([Array,Number,String]),defaultActiveKey:(0,u.tK)([Array,Number,String]),accordion:(0,u.HE)(),destroyInactivePanel:(0,u.HE)(),bordered:(0,u.HE)(),expandIcon:(0,u.Fg)(),openAnimation:c.A.object,expandIconPosition:(0,u.WO)(),collapsible:(0,u.WO)(),ghost:(0,u.HE)(),onChange:(0,u.Fg)(),"onUpdate:activeKey":(0,u.Fg)()}),d=()=>({openAnimation:c.A.object,prefixCls:String,header:c.A.any,headerClass:String,showArrow:(0,u.HE)(),isActive:(0,u.HE)(),destroyInactivePanel:(0,u.HE)(),disabled:(0,u.HE)(),accordion:(0,u.HE)(),forceRender:(0,u.HE)(),expandIcon:(0,u.Fg)(),extra:c.A.any,panelKey:(0,u.tK)(),collapsible:(0,u.WO)(),role:String,onItemClick:(0,u.Fg)()});var p=n(92389),f={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"},g=f,v=n(29847);function m(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?Object(arguments[e]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),r.forEach((function(e){y(t,e,n[e])}))}return t}function y(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var b=function(t,e){var n=m({},t,e.attrs);return(0,r.bF)(v.A,m({},n,{icon:g}),null)};b.displayName="RightOutlined",b.inheritAttrs=!1;var _=b,x=n(32480),w=n(13389),O=n(3551),S=n(33063),A=n(98657),k=n(86049),C=n(94471),M=n(96704),T=n(69729);const P=t=>{const{componentCls:e,collapseContentBg:n,padding:r,collapseContentPaddingHorizontal:i,collapseHeaderBg:o,collapseHeaderPadding:a,collapsePanelBorderRadius:s,lineWidth:l,lineType:u,colorBorder:c,colorText:h,colorTextHeading:d,colorTextDisabled:p,fontSize:f,lineHeight:g,marginSM:v,paddingSM:m,motionDurationSlow:y,fontSizeIcon:b}=t,_=`${l}px ${u} ${c}`;return{[e]:(0,A.A)((0,A.A)({},(0,T.dF)(t)),{backgroundColor:o,border:_,borderBottom:0,borderRadius:`${s}px`,["&-rtl"]:{direction:"rtl"},[`& > ${e}-item`]:{borderBottom:_,["&:last-child"]:{[`\n &,\n & > ${e}-header`]:{borderRadius:`0 0 ${s}px ${s}px`}},[`> ${e}-header`]:{position:"relative",display:"flex",flexWrap:"nowrap",alignItems:"flex-start",padding:a,color:d,lineHeight:g,cursor:"pointer",transition:`all ${y}, visibility 0s`,[`> ${e}-header-text`]:{flex:"auto"},"&:focus":{outline:"none"},[`${e}-expand-icon`]:{height:f*g,display:"flex",alignItems:"center",paddingInlineEnd:v},[`${e}-arrow`]:(0,A.A)((0,A.A)({},(0,T.Nk)()),{fontSize:b,svg:{transition:`transform ${y}`}}),[`${e}-header-text`]:{marginInlineEnd:"auto"}},[`${e}-header-collapsible-only`]:{cursor:"default",[`${e}-header-text`]:{flex:"none",cursor:"pointer"},[`${e}-expand-icon`]:{cursor:"pointer"}},[`${e}-icon-collapsible-only`]:{cursor:"default",[`${e}-expand-icon`]:{cursor:"pointer"}},[`&${e}-no-arrow`]:{[`> ${e}-header`]:{paddingInlineStart:m}}},[`${e}-content`]:{color:h,backgroundColor:n,borderTop:_,[`& > ${e}-content-box`]:{padding:`${r}px ${i}px`},["&-hidden"]:{display:"none"}},[`${e}-item:last-child`]:{[`> ${e}-content`]:{borderRadius:`0 0 ${s}px ${s}px`}},[`& ${e}-item-disabled > ${e}-header`]:{["\n &,\n & > .arrow\n "]:{color:p,cursor:"not-allowed"}},[`&${e}-icon-position-end`]:{[`& > ${e}-item`]:{[`> ${e}-header`]:{[`${e}-expand-icon`]:{order:1,paddingInlineEnd:0,paddingInlineStart:v}}}}})}},I=t=>{const{componentCls:e}=t,n=`> ${e}-item > ${e}-header ${e}-arrow svg`;return{[`${e}-rtl`]:{[n]:{transform:"rotate(180deg)"}}}},$=t=>{const{componentCls:e,collapseHeaderBg:n,paddingXXS:r,colorBorder:i}=t;return{[`${e}-borderless`]:{backgroundColor:n,border:0,[`> ${e}-item`]:{borderBottom:`1px solid ${i}`},[`\n > ${e}-item:last-child,\n > ${e}-item:last-child ${e}-header\n `]:{borderRadius:0},[`> ${e}-item:last-child`]:{borderBottom:0},[`> ${e}-item > ${e}-content`]:{backgroundColor:"transparent",borderTop:0},[`> ${e}-item > ${e}-content > ${e}-content-box`]:{paddingTop:r}}}},E=t=>{const{componentCls:e,paddingSM:n}=t;return{[`${e}-ghost`]:{backgroundColor:"transparent",border:0,[`> ${e}-item`]:{borderBottom:0,[`> ${e}-content`]:{backgroundColor:"transparent",border:0,[`> ${e}-content-box`]:{paddingBlock:n}}}}}};var R=(0,C.A)("Collapse",(t=>{const e=(0,M.h1)(t,{collapseContentBg:t.colorBgContainer,collapseHeaderBg:t.colorFillAlter,collapseHeaderPadding:`${t.paddingSM}px ${t.padding}px`,collapsePanelBorderRadius:t.borderRadiusLG,collapseContentPaddingHorizontal:16});return[P(e),$(e),E(e),I(e),(0,k.A)(e)]}));function D(t){let e=t;if(!Array.isArray(e)){const t=typeof e;e="number"===t||"string"===t?[e]:[]}return e.map((t=>String(t)))}var L=(0,r.pM)({compatConfig:{MODE:3},name:"ACollapse",inheritAttrs:!1,props:(0,a.A)(h(),{accordion:!1,destroyInactivePanel:!1,bordered:!0,expandIconPosition:"start"}),slots:Object,setup(t,e){let{attrs:n,slots:a,emit:u}=e;const c=(0,i.KR)(D((0,x.A)([t.activeKey,t.defaultActiveKey])));(0,r.wB)((()=>t.activeKey),(()=>{c.value=D(t.activeKey)}),{deep:!0});const{prefixCls:h,direction:d,rootPrefixCls:f}=(0,O.A)("collapse",t),[g,v]=R(h),m=(0,r.EW)((()=>{const{expandIconPosition:e}=t;return void 0!==e?e:"rtl"===d.value?"end":"start"})),y=e=>{const{expandIcon:n=a.expandIcon}=t,i=n?n(e):(0,r.bF)(_,{rotate:e.isActive?90:void 0},null);return(0,r.bF)("div",{class:[`${h.value}-expand-icon`,v.value],onClick:()=>["header","icon"].includes(t.collapsible)&&A(e.panelKey)},[(0,s.zO)(Array.isArray(n)?i[0]:i)?(0,l.Ob)(i,{class:`${h.value}-arrow`},!1):i])},b=e=>{void 0===t.activeKey&&(c.value=e);const n=t.accordion?e[0]:e;u("update:activeKey",n),u("change",n)},A=e=>{let n=c.value;if(t.accordion)n=n[0]===e?[]:[e];else{n=[...n];const t=n.indexOf(e),r=t>-1;r?n.splice(t,1):n.push(e)}b(n)},k=(e,n)=>{var r,i,o;if((0,s.sG)(e))return;const a=c.value,{accordion:u,destroyInactivePanel:d,collapsible:p,openAnimation:g}=t,v=g||(0,S.A)(`${f.value}-motion-collapse`),m=String(null!==(r=e.key)&&void 0!==r?r:n),{header:b=(null===(o=null===(i=e.children)||void 0===i?void 0:i.header)||void 0===o?void 0:o.call(i)),headerClass:_,collapsible:x,disabled:w}=e.props||{};let O=!1;O=u?a[0]===m:a.indexOf(m)>-1;let k=null!==x&&void 0!==x?x:p;(w||""===w)&&(k="disabled");const C={key:m,panelKey:m,header:b,headerClass:_,isActive:O,prefixCls:h.value,destroyInactivePanel:d,openAnimation:v,accordion:u,onItemClick:"disabled"===k?null:A,expandIcon:y,collapsible:k};return(0,l.Ob)(e,C)},C=()=>{var t;return(0,s.MI)(null===(t=a.default)||void 0===t?void 0:t.call(a)).map(k)};return()=>{const{accordion:e,bordered:i,ghost:a}=t,s=(0,w.A)(h.value,{[`${h.value}-borderless`]:!i,[`${h.value}-icon-position-${m.value}`]:!0,[`${h.value}-rtl`]:"rtl"===d.value,[`${h.value}-ghost`]:!!a,[n.class]:!!n.class},v.value);return g((0,r.bF)("div",(0,o.A)((0,o.A)({class:s},(0,p.xc)(n)),{},{style:n.style,role:e?"tablist":null}),[C()]))}}}),N=n(67874),z=(0,r.pM)({compatConfig:{MODE:3},name:"PanelContent",props:d(),setup(t,e){let{slots:n}=e;const o=(0,i.IJ)(!1);return(0,r.nT)((()=>{(t.isActive||t.forceRender)&&(o.value=!0)})),()=>{var e;if(!o.value)return null;const{prefixCls:i,isActive:a,role:s}=t;return(0,r.bF)("div",{class:(0,w.A)(`${i}-content`,{[`${i}-content-active`]:a,[`${i}-content-inactive`]:!a}),role:s},[(0,r.bF)("div",{class:`${i}-content-box`},[null===(e=n.default)||void 0===e?void 0:e.call(n)])])}}}),B=n(41038),F=n(37205),W=(0,r.pM)({compatConfig:{MODE:3},name:"ACollapsePanel",inheritAttrs:!1,props:(0,a.A)(d(),{showArrow:!0,isActive:!1,onItemClick(){},headerClass:"",forceRender:!1}),slots:Object,setup(t,e){let{slots:n,emit:i,attrs:a}=e;(0,F.A)(void 0===t.disabled,"Collapse.Panel",'`disabled` is deprecated. Please use `collapsible="disabled"` instead.');const{prefixCls:s}=(0,O.A)("collapse",t),l=()=>{i("itemClick",t.panelKey)},u=t=>{"Enter"!==t.key&&13!==t.keyCode&&13!==t.which||l()};return()=>{var e,i;const{header:c=(null===(e=n.header)||void 0===e?void 0:e.call(n)),headerClass:h,isActive:d,showArrow:p,destroyInactivePanel:f,accordion:g,forceRender:v,openAnimation:m,expandIcon:y=n.expandIcon,extra:b=(null===(i=n.extra)||void 0===i?void 0:i.call(n)),collapsible:_}=t,x="disabled"===_,O=s.value,S=(0,w.A)(`${O}-header`,{[h]:h,[`${O}-header-collapsible-only`]:"header"===_,[`${O}-icon-collapsible-only`]:"icon"===_}),k=(0,w.A)({[`${O}-item`]:!0,[`${O}-item-active`]:d,[`${O}-item-disabled`]:x,[`${O}-no-arrow`]:!p,[`${a.class}`]:!!a.class});let C=(0,r.bF)("i",{class:"arrow"},null);p&&"function"===typeof y&&(C=y(t));const M=(0,r.bo)((0,r.bF)(z,{prefixCls:O,isActive:d,forceRender:v,role:g?"tabpanel":null},{default:n.default}),[[N.aG,d]]),T=(0,A.A)({appear:!1,css:!1},m);return(0,r.bF)("div",(0,o.A)((0,o.A)({},a),{},{class:k}),[(0,r.bF)("div",{class:S,onClick:()=>!["header","icon"].includes(_)&&l(),role:g?"tab":"button",tabindex:x?-1:0,"aria-expanded":d,onKeypress:u},[p&&C,(0,r.bF)("span",{onClick:()=>"header"===_&&l(),class:`${O}-header-text`},[c]),b&&(0,r.bF)("div",{class:`${O}-extra`},[b])]),(0,r.bF)(B.Ay,T,{default:()=>[!f||d?M:null]})])}}});L.Panel=W,L.install=function(t){return t.component(L.name,L),t.component(W.name,W),t};var j=L,V=n(79357),Q=n(1980),H=n(5068);const Z=t=>{const{componentCls:e,sizePaddingEdgeHorizontal:n,colorSplit:r,lineWidth:i}=t;return{[e]:(0,A.A)((0,A.A)({},(0,T.dF)(t)),{borderBlockStart:`${i}px solid ${r}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",margin:`0 ${t.dividerVerticalGutterMargin}px`,verticalAlign:"middle",borderTop:0,borderInlineStart:`${i}px solid ${r}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${t.dividerHorizontalGutterMargin}px 0`},[`&-horizontal${e}-with-text`]:{display:"flex",alignItems:"center",margin:`${t.dividerHorizontalWithTextGutterMargin}px 0`,color:t.colorTextHeading,fontWeight:500,fontSize:t.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${r}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${i}px solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${e}-with-text-left`]:{"&::before":{width:"5%"},"&::after":{width:"95%"}},[`&-horizontal${e}-with-text-right`]:{"&::before":{width:"95%"},"&::after":{width:"5%"}},[`${e}-inner-text`]:{display:"inline-block",padding:"0 1em"},"&-dashed":{background:"none",borderColor:r,borderStyle:"dashed",borderWidth:`${i}px 0 0`},[`&-horizontal${e}-with-text${e}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${e}-dashed`]:{borderInlineStartWidth:i,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${e}-with-text`]:{color:t.colorText,fontWeight:"normal",fontSize:t.fontSize},[`&-horizontal${e}-with-text-left${e}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${e}-inner-text`]:{paddingInlineStart:n}},[`&-horizontal${e}-with-text-right${e}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${e}-inner-text`]:{paddingInlineEnd:n}}})}};var G=(0,C.A)("Divider",(t=>{const e=(0,M.h1)(t,{dividerVerticalGutterMargin:t.marginXS,dividerHorizontalWithTextGutterMargin:t.margin,dividerHorizontalGutterMargin:t.marginLG});return[Z(e)]}),{sizePaddingEdgeHorizontal:0});const X=()=>({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]}),U=(0,r.pM)({name:"ADivider",inheritAttrs:!1,compatConfig:{MODE:3},props:X(),setup(t,e){let{slots:n,attrs:i}=e;const{prefixCls:a,direction:l}=(0,O.A)("divider",t),[u,c]=G(a),h=(0,r.EW)((()=>"left"===t.orientation&&null!=t.orientationMargin)),d=(0,r.EW)((()=>"right"===t.orientation&&null!=t.orientationMargin)),p=(0,r.EW)((()=>{const{type:e,dashed:n,plain:r}=t,i=a.value;return{[i]:!0,[c.value]:!!c.value,[`${i}-${e}`]:!0,[`${i}-dashed`]:!!n,[`${i}-plain`]:!!r,[`${i}-rtl`]:"rtl"===l.value,[`${i}-no-default-orientation-margin-left`]:h.value,[`${i}-no-default-orientation-margin-right`]:d.value}})),f=(0,r.EW)((()=>{const e="number"===typeof t.orientationMargin?`${t.orientationMargin}px`:t.orientationMargin;return(0,A.A)((0,A.A)({},h.value&&{marginLeft:e}),d.value&&{marginRight:e})})),g=(0,r.EW)((()=>t.orientation.length>0?"-"+t.orientation:t.orientation));return()=>{var t;const e=(0,s.MI)(null===(t=n.default)||void 0===t?void 0:t.call(n));return u((0,r.bF)("div",(0,o.A)((0,o.A)({},i),{},{class:[p.value,e.length?`${a.value}-with-text ${a.value}-with-text${g.value}`:"",i.class],role:"separator"}),[e.length?(0,r.bF)("span",{class:`${a.value}-inner-text`,style:f.value},[e]):null]))}}});var Y=(0,u.GU)(U),q=n(58412),K=n(83436),J=n(26347),tt=n(6003),et=n(24275),nt="[object Number]";function rt(t){return"number"==typeof t||(0,et.A)(t)&&(0,tt.A)(t)==nt}var it=rt,ot=n(59662),at=n(68740),st=n(1592),lt=n(94379),ut=n(74220),ct=n(5347),ht=n(52002),dt=n(38624);function pt(t){const e=(0,i.KR)(null),n=(0,i.Kh)((0,A.A)({},t)),o=(0,i.KR)([]),a=t=>{null===e.value&&(o.value=[],e.value=(0,dt.A)((()=>{let t;o.value.forEach((e=>{t=(0,A.A)((0,A.A)({},t),e)})),(0,A.A)(n,t),e.value=null}))),o.value.push(t)};return(0,r.sV)((()=>{e.value&&dt.A.cancel(e.value)})),[n,a]}function ft(t,e,n,r){const i=e+n,o=(n-r)/2;if(n>r){if(e>0)return{[t]:o};if(e<0&&i<r)return{[t]:-o}}else if(e<0||i>r)return{[t]:e<0?o:-o};return{}}function gt(t,e,n,r){const{width:i,height:o}=(0,ot.XV)();let a=null;return t<=i&&e<=o?a={x:0,y:0}:(t>i||e>o)&&(a=(0,A.A)((0,A.A)({},ft("x",n,t,i)),ft("y",r,e,o))),a}var vt=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n};const mt=Symbol("previewGroupContext"),yt={provide:t=>{(0,r.Gt)(mt,t)},inject:()=>(0,r.WQ)(mt,{isPreviewGroup:(0,i.IJ)(!1),previewUrls:(0,r.EW)((()=>new Map)),setPreviewUrls:()=>{},current:(0,i.KR)(null),setCurrent:()=>{},setShowPreview:()=>{},setMousePosition:()=>{},registerImage:null,rootClassName:""})},bt=()=>({previewPrefixCls:String,preview:{type:[Boolean,Object],default:!0},icons:{type:Object,default:()=>({})}}),_t=(0,r.pM)({compatConfig:{MODE:3},name:"PreviewGroup",inheritAttrs:!1,props:bt(),setup(t,e){let{slots:n}=e;const a=(0,r.EW)((()=>{const e={visible:void 0,onVisibleChange:()=>{},getContainer:void 0,current:0};return"object"===typeof t.preview?Mt(t.preview,e):e})),s=(0,i.Kh)(new Map),l=(0,i.KR)(),u=(0,r.EW)((()=>a.value.visible)),c=(0,r.EW)((()=>a.value.getContainer)),h=(t,e)=>{var n,r;null===(r=(n=a.value).onVisibleChange)||void 0===r||r.call(n,t,e)},[d,p]=(0,at.A)(!!u.value,{value:u,onChange:h}),f=(0,i.KR)(null),g=(0,r.EW)((()=>void 0!==u.value)),v=(0,r.EW)((()=>Array.from(s.keys()))),m=(0,r.EW)((()=>v.value[a.value.current])),y=(0,r.EW)((()=>new Map(Array.from(s).filter((t=>{let[,{canPreview:e}]=t;return!!e})).map((t=>{let[e,{url:n}]=t;return[e,n]}))))),b=function(t,e){let n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];s.set(t,{url:e,canPreview:n})},_=t=>{l.value=t},x=t=>{f.value=t},w=function(t,e){let n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];const r=()=>{s.delete(t)};return s.set(t,{url:e,canPreview:n}),r},O=t=>{null===t||void 0===t||t.stopPropagation(),p(!1),x(null)};return(0,r.wB)(m,(t=>{_(t)}),{immediate:!0,flush:"post"}),(0,r.nT)((()=>{d.value&&g.value&&_(m.value)}),{flush:"post"}),yt.provide({isPreviewGroup:(0,i.IJ)(!0),previewUrls:y,setPreviewUrls:b,current:l,setCurrent:_,setShowPreview:p,setMousePosition:x,registerImage:w}),()=>{const e=vt(a.value,[]);return(0,r.bF)(r.FK,null,[n.default&&n.default(),(0,r.bF)(At,(0,o.A)((0,o.A)({},e),{},{"ria-hidden":!d.value,visible:d.value,prefixCls:t.previewPrefixCls,onClose:O,mousePosition:f.value,src:y.value.get(l.value),icons:t.icons,getContainer:c.value}),null)])}}});var xt=_t;const wt={x:0,y:0},Ot=(0,A.A)((0,A.A)({},(0,lt.j)()),{src:String,alt:String,rootClassName:String,icons:{type:Object,default:()=>({})}}),St=(0,r.pM)({compatConfig:{MODE:3},name:"Preview",inheritAttrs:!1,props:Ot,emits:["close","afterClose"],setup(t,e){let{emit:n,attrs:a}=e;const{rotateLeft:s,rotateRight:l,zoomIn:u,zoomOut:c,close:h,left:d,right:p,flipX:f,flipY:g}=(0,i.Kh)(t.icons),v=(0,i.IJ)(1),m=(0,i.IJ)(0),y=(0,i.Kh)({x:1,y:1}),[b,_]=pt(wt),x=()=>n("close"),O=(0,i.IJ)(),S=(0,i.Kh)({originX:0,originY:0,deltaX:0,deltaY:0}),k=(0,i.IJ)(!1),C=yt.inject(),{previewUrls:M,current:T,isPreviewGroup:P,setCurrent:I}=C,$=(0,r.EW)((()=>M.value.size)),E=(0,r.EW)((()=>Array.from(M.value.keys()))),R=(0,r.EW)((()=>E.value.indexOf(T.value))),D=(0,r.EW)((()=>P.value?M.value.get(T.value):t.src)),L=(0,r.EW)((()=>P.value&&$.value>1)),N=(0,i.IJ)({wheelDirection:0}),z=()=>{v.value=1,m.value=0,y.x=1,y.y=1,_(wt),n("afterClose")},B=t=>{t?v.value+=.5:v.value++,_(wt)},F=t=>{v.value>1&&(t?v.value-=.5:v.value--),_(wt)},W=()=>{m.value+=90},j=()=>{m.value-=90},V=()=>{y.x=-y.x},Q=()=>{y.y=-y.y},H=t=>{t.preventDefault(),t.stopPropagation(),R.value>0&&I(E.value[R.value-1])},Z=t=>{t.preventDefault(),t.stopPropagation(),R.value<$.value-1&&I(E.value[R.value+1])},G=(0,w.A)({[`${t.prefixCls}-moving`]:k.value}),X=`${t.prefixCls}-operations-operation`,U=`${t.prefixCls}-operations-icon`,Y=[{icon:h,onClick:x,type:"close"},{icon:u,onClick:()=>B(),type:"zoomIn"},{icon:c,onClick:()=>F(),type:"zoomOut",disabled:(0,r.EW)((()=>1===v.value))},{icon:l,onClick:W,type:"rotateRight"},{icon:s,onClick:j,type:"rotateLeft"},{icon:f,onClick:V,type:"flipX"},{icon:g,onClick:Q,type:"flipY"}],q=()=>{if(t.visible&&k.value){const t=O.value.offsetWidth*v.value,e=O.value.offsetHeight*v.value,{left:n,top:r}=(0,ot.A3)(O.value),i=m.value%180!==0;k.value=!1;const o=gt(i?e:t,i?t:e,n,r);o&&_((0,A.A)({},o))}},K=t=>{0===t.button&&(t.preventDefault(),t.stopPropagation(),S.deltaX=t.pageX-b.x,S.deltaY=t.pageY-b.y,S.originX=b.x,S.originY=b.y,k.value=!0)},J=e=>{t.visible&&k.value&&_({x:e.pageX-S.deltaX,y:e.pageY-S.deltaY})},tt=e=>{if(!t.visible)return;e.preventDefault();const n=e.deltaY;N.value={wheelDirection:n}},et=e=>{t.visible&&L.value&&(e.preventDefault(),e.keyCode===ct.A.LEFT?R.value>0&&I(E.value[R.value-1]):e.keyCode===ct.A.RIGHT&&R.value<$.value-1&&I(E.value[R.value+1]))},nt=()=>{t.visible&&(1!==v.value&&(v.value=1),b.x===wt.x&&b.y===wt.y||_(wt))};let rt=()=>{};return(0,r.sV)((()=>{(0,r.wB)([()=>t.visible,k],(()=>{let t,e;rt();const n=(0,ut.A)(window,"mouseup",q,!1),r=(0,ut.A)(window,"mousemove",J,!1),i=(0,ut.A)(window,"wheel",tt,{passive:!1}),o=(0,ut.A)(window,"keydown",et,!1);try{window.top!==window.self&&(t=(0,ut.A)(window.top,"mouseup",q,!1),e=(0,ut.A)(window.top,"mousemove",J,!1))}catch(a){(0,ht.$e)(!1,`[vc-image] ${a}`)}rt=()=>{n.remove(),r.remove(),i.remove(),o.remove(),t&&t.remove(),e&&e.remove()}}),{flush:"post",immediate:!0}),(0,r.wB)([N],(()=>{const{wheelDirection:t}=N.value;t>0?F(!0):t<0&&B(!0)}))})),(0,r.hi)((()=>{rt()})),()=>{const{visible:e,prefixCls:n,rootClassName:i}=t;return(0,r.bF)(st.A,(0,o.A)((0,o.A)({},a),{},{transitionName:t.transitionName,maskTransitionName:t.maskTransitionName,closable:!1,keyboard:!0,prefixCls:n,onClose:x,afterClose:z,visible:e,wrapClassName:G,rootClassName:i,getContainer:t.getContainer}),{default:()=>[(0,r.bF)("div",{class:[`${t.prefixCls}-operations-wrapper`,i]},[(0,r.bF)("ul",{class:`${t.prefixCls}-operations`},[Y.map((e=>{let{icon:n,onClick:i,type:o,disabled:a}=e;return(0,r.bF)("li",{class:(0,w.A)(X,{[`${t.prefixCls}-operations-operation-disabled`]:a&&(null===a||void 0===a?void 0:a.value)}),onClick:i,key:o},[(0,r.E3)(n,{class:U})])}))])]),(0,r.bF)("div",{class:`${t.prefixCls}-img-wrapper`,style:{transform:`translate3d(${b.x}px, ${b.y}px, 0)`}},[(0,r.bF)("img",{onMousedown:K,onDblclick:nt,ref:O,class:`${t.prefixCls}-img`,src:D.value,alt:t.alt,style:{transform:`scale3d(${y.x*v.value}, ${y.y*v.value}, 1) rotate(${m.value}deg)`}},null)]),L.value&&(0,r.bF)("div",{class:(0,w.A)(`${t.prefixCls}-switch-left`,{[`${t.prefixCls}-switch-left-disabled`]:R.value<=0}),onClick:H},[d]),L.value&&(0,r.bF)("div",{class:(0,w.A)(`${t.prefixCls}-switch-right`,{[`${t.prefixCls}-switch-right-disabled`]:R.value>=$.value-1}),onClick:Z},[p])]})}}});var At=St,kt=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n};const Ct=()=>({src:String,wrapperClassName:String,wrapperStyle:{type:Object,default:void 0},rootClassName:String,prefixCls:String,previewPrefixCls:String,previewMask:{type:[Boolean,Function],default:void 0},placeholder:c.A.any,fallback:String,preview:{type:[Boolean,Object],default:!0},onClick:{type:Function},onError:{type:Function}}),Mt=(t,e)=>{const n=(0,A.A)({},t);return Object.keys(e).forEach((r=>{void 0===t[r]&&(n[r]=e[r])})),n};let Tt=0;const Pt=(0,r.pM)({compatConfig:{MODE:3},name:"VcImage",inheritAttrs:!1,props:Ct(),emits:["click","error"],setup(t,e){let{attrs:n,slots:a,emit:s}=e;const l=(0,r.EW)((()=>t.prefixCls)),u=(0,r.EW)((()=>`${l.value}-preview`)),c=(0,r.EW)((()=>{const e={visible:void 0,onVisibleChange:()=>{},getContainer:void 0};return"object"===typeof t.preview?Mt(t.preview,e):e})),h=(0,r.EW)((()=>{var e;return null!==(e=c.value.src)&&void 0!==e?e:t.src})),d=(0,r.EW)((()=>t.placeholder&&!0!==t.placeholder||a.placeholder)),p=(0,r.EW)((()=>c.value.visible)),f=(0,r.EW)((()=>c.value.getContainer)),g=(0,r.EW)((()=>void 0!==p.value)),v=(t,e)=>{var n,r;null===(r=(n=c.value).onVisibleChange)||void 0===r||r.call(n,t,e)},[m,y]=(0,at.A)(!!p.value,{value:p,onChange:v}),b=(0,i.KR)(d.value?"loading":"normal");(0,r.wB)((()=>t.src),(()=>{b.value=d.value?"loading":"normal"}));const _=(0,i.KR)(null),x=(0,r.EW)((()=>"error"===b.value)),O=yt.inject(),{isPreviewGroup:S,setCurrent:k,setShowPreview:C,setMousePosition:M,registerImage:T}=O,P=(0,i.KR)(Tt++),I=(0,r.EW)((()=>t.preview&&!x.value)),$=()=>{b.value="normal"},E=t=>{b.value="error",s("error",t)},R=t=>{if(!g.value){const{left:e,top:n}=(0,ot.A3)(t.target);S.value?(k(P.value),M({x:e,y:n})):_.value={x:e,y:n}}S.value?C(!0):y(!0),s("click",t)},D=()=>{y(!1),g.value||(_.value=null)},L=(0,i.KR)(null);(0,r.wB)((()=>L),(()=>{"loading"===b.value&&L.value.complete&&(L.value.naturalWidth||L.value.naturalHeight)&&$()}));let N=()=>{};(0,r.sV)((()=>{(0,r.wB)([h,I],(()=>{if(N(),!S.value)return()=>{};N=T(P.value,h.value,I.value),I.value||N()}),{flush:"post",immediate:!0})})),(0,r.hi)((()=>{N()}));const z=t=>it(t)?t+"px":t;return()=>{const{prefixCls:e,wrapperClassName:i,fallback:l,src:d,placeholder:p,wrapperStyle:g,rootClassName:v}=t,{width:y,height:O,crossorigin:k,decoding:C,alt:M,sizes:T,srcset:P,usemap:N,class:B,style:F}=n,W=c.value,{icons:j,maskClassName:V}=W,Q=kt(W,["icons","maskClassName"]),H=(0,w.A)(e,i,v,{[`${e}-error`]:x.value}),Z=x.value&&l?l:h.value,G={crossorigin:k,decoding:C,alt:M,sizes:T,srcset:P,usemap:N,width:y,height:O,class:(0,w.A)(`${e}-img`,{[`${e}-img-placeholder`]:!0===p},B),style:(0,A.A)({height:z(O)},F)};return(0,r.bF)(r.FK,null,[(0,r.bF)("div",{class:H,onClick:I.value?R:t=>{s("click",t)},style:(0,A.A)({width:z(y),height:z(O)},g)},[(0,r.bF)("img",(0,o.A)((0,o.A)((0,o.A)({},G),x.value&&l?{src:l}:{onLoad:$,onError:E,src:d}),{},{ref:L}),null),"loading"===b.value&&(0,r.bF)("div",{"aria-hidden":"true",class:`${e}-placeholder`},[p||a.placeholder&&a.placeholder()]),a.previewMask&&I.value&&(0,r.bF)("div",{class:[`${e}-mask`,V]},[a.previewMask()])]),!S.value&&I.value&&(0,r.bF)(At,(0,o.A)((0,o.A)({},Q),{},{"aria-hidden":!m.value,visible:m.value,prefixCls:u.value,onClose:D,mousePosition:_.value,src:Z,alt:M,getContainer:f.value,icons:j,rootClassName:v}),null)])}}});Pt.PreviewGroup=xt;var It=Pt,$t=It,Et=n(24619),Rt={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"},Dt=Rt;function Lt(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?Object(arguments[e]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),r.forEach((function(e){Nt(t,e,n[e])}))}return t}function Nt(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var zt=function(t,e){var n=Lt({},t,e.attrs);return(0,r.bF)(v.A,Lt({},n,{icon:Dt}),null)};zt.displayName="RotateLeftOutlined",zt.inheritAttrs=!1;var Bt=zt,Ft={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"},Wt=Ft;function jt(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?Object(arguments[e]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),r.forEach((function(e){Vt(t,e,n[e])}))}return t}function Vt(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Qt=function(t,e){var n=jt({},t,e.attrs);return(0,r.bF)(v.A,jt({},n,{icon:Wt}),null)};Qt.displayName="RotateRightOutlined",Qt.inheritAttrs=!1;var Ht=Qt,Zt={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"},Gt=Zt;function Xt(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?Object(arguments[e]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),r.forEach((function(e){Ut(t,e,n[e])}))}return t}function Ut(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Yt=function(t,e){var n=Xt({},t,e.attrs);return(0,r.bF)(v.A,Xt({},n,{icon:Gt}),null)};Yt.displayName="ZoomInOutlined",Yt.inheritAttrs=!1;var qt=Yt,Kt={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"},Jt=Kt;function te(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?Object(arguments[e]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),r.forEach((function(e){ee(t,e,n[e])}))}return t}function ee(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var ne=function(t,e){var n=te({},t,e.attrs);return(0,r.bF)(v.A,te({},n,{icon:Jt}),null)};ne.displayName="ZoomOutOutlined",ne.inheritAttrs=!1;var re=ne,ie=n(23273),oe={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"},ae=oe;function se(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?Object(arguments[e]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),r.forEach((function(e){le(t,e,n[e])}))}return t}function le(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var ue=function(t,e){var n=se({},t,e.attrs);return(0,r.bF)(v.A,se({},n,{icon:ae}),null)};ue.displayName="LeftOutlined",ue.inheritAttrs=!1;var ce=ue,he={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"},de=he;function pe(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?Object(arguments[e]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),r.forEach((function(e){fe(t,e,n[e])}))}return t}function fe(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var ge=function(t,e){var n=pe({},t,e.attrs);return(0,r.bF)(v.A,pe({},n,{icon:de}),null)};ge.displayName="SwapOutlined",ge.inheritAttrs=!1;var ve=ge,me=n(78089),ye=n(54183),be=n(41781),_e=n(7672);const xe=t=>({position:t||"absolute",inset:0}),we=t=>{const{iconCls:e,motionDurationSlow:n,paddingXXS:r,marginXXS:i,prefixCls:o}=t;return{position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",color:"#fff",background:new me.q("#000").setAlpha(.5).toRgbString(),cursor:"pointer",opacity:0,transition:`opacity ${n}`,[`.${o}-mask-info`]:(0,A.A)((0,A.A)({},T.L9),{padding:`0 ${r}px`,[e]:{marginInlineEnd:i,svg:{verticalAlign:"baseline"}}})}},Oe=t=>{const{previewCls:e,modalMaskBg:n,paddingSM:r,previewOperationColorDisabled:i,motionDurationSlow:o}=t,a=new me.q(n).setAlpha(.1),s=a.clone().setAlpha(.2);return{[`${e}-operations`]:(0,A.A)((0,A.A)({},(0,T.dF)(t)),{display:"flex",flexDirection:"row-reverse",alignItems:"center",color:t.previewOperationColor,listStyle:"none",background:a.toRgbString(),pointerEvents:"auto","&-operation":{marginInlineStart:r,padding:r,cursor:"pointer",transition:`all ${o}`,userSelect:"none","&:hover":{background:s.toRgbString()},"&-disabled":{color:i,pointerEvents:"none"},"&:last-of-type":{marginInlineStart:0}},"&-progress":{position:"absolute",left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%)"},"&-icon":{fontSize:t.previewOperationSize}})}},Se=t=>{const{modalMaskBg:e,iconCls:n,previewOperationColorDisabled:r,previewCls:i,zIndexPopup:o,motionDurationSlow:a}=t,s=new me.q(e).setAlpha(.1),l=s.clone().setAlpha(.2);return{[`${i}-switch-left, ${i}-switch-right`]:{position:"fixed",insetBlockStart:"50%",zIndex:o+1,display:"flex",alignItems:"center",justifyContent:"center",width:t.imagePreviewSwitchSize,height:t.imagePreviewSwitchSize,marginTop:-t.imagePreviewSwitchSize/2,color:t.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:t.previewOperationSize}},[`${i}-switch-left`]:{insetInlineStart:t.marginSM},[`${i}-switch-right`]:{insetInlineEnd:t.marginSM}}},Ae=t=>{const{motionEaseOut:e,previewCls:n,motionDurationSlow:r,componentCls:i}=t;return[{[`${i}-preview-root`]:{[n]:{height:"100%",textAlign:"center",pointerEvents:"none"},[`${n}-body`]:(0,A.A)((0,A.A)({},xe()),{overflow:"hidden"}),[`${n}-img`]:{maxWidth:"100%",maxHeight:"100%",verticalAlign:"middle",transform:"scale3d(1, 1, 1)",cursor:"grab",transition:`transform ${r} ${e} 0s`,userSelect:"none",pointerEvents:"auto","&-wrapper":(0,A.A)((0,A.A)({},xe()),{transition:`transform ${r} ${e} 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"}}}}},{[`${i}-preview-root`]:{[`${n}-wrap`]:{zIndex:t.zIndexPopup}}},{[`${i}-preview-operations-wrapper`]:{position:"fixed",insetBlockStart:0,insetInlineEnd:0,zIndex:t.zIndexPopup+1,width:"100%"},"&":[Oe(t),Se(t)]}]},ke=t=>{const{componentCls:e}=t;return{[e]:{position:"relative",display:"inline-block",[`${e}-img`]:{width:"100%",height:"auto",verticalAlign:"middle"},[`${e}-img-placeholder`]:{backgroundColor:t.colorBgContainerDisabled,backgroundImage:"url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMTQuNSAyLjVoLTEzQS41LjUgMCAwIDAgMSAzdjEwYS41LjUgMCAwIDAgLjUuNWgxM2EuNS41IDAgMCAwIC41LS41VjNhLjUuNSAwIDAgMC0uNS0uNXpNNS4yODEgNC43NWExIDEgMCAwIDEgMCAyIDEgMSAwIDAgMSAwLTJ6bTguMDMgNi44M2EuMTI3LjEyNyAwIDAgMS0uMDgxLjAzSDIuNzY5YS4xMjUuMTI1IDAgMCAxLS4wOTYtLjIwN2wyLjY2MS0zLjE1NmEuMTI2LjEyNiAwIDAgMSAuMTc3LS4wMTZsLjAxNi4wMTZMNy4wOCAxMC4wOWwyLjQ3LTIuOTNhLjEyNi4xMjYgMCAwIDEgLjE3Ny0uMDE2bC4wMTUuMDE2IDMuNTg4IDQuMjQ0YS4xMjcuMTI3IDAgMCAxLS4wMi4xNzV6IiBmaWxsPSIjOEM4QzhDIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4=')",backgroundRepeat:"no-repeat",backgroundPosition:"center center",backgroundSize:"30%"},[`${e}-mask`]:(0,A.A)({},we(t)),[`${e}-mask:hover`]:{opacity:1},[`${e}-placeholder`]:(0,A.A)({},xe())}}},Ce=t=>{const{previewCls:e}=t;return{[`${e}-root`]:(0,be.aB)(t,"zoom"),["&"]:(0,_e.p9)(t,!0)}};var Me=(0,C.A)("Image",(t=>{const e=`${t.componentCls}-preview`,n=(0,M.h1)(t,{previewCls:e,modalMaskBg:new me.q("#000").setAlpha(.45).toRgbString(),imagePreviewSwitchSize:t.controlHeightLG});return[ke(n),Ae(n),(0,ye.D)((0,M.h1)(n,{componentCls:e})),Ce(n)]}),(t=>({zIndexPopup:t.zIndexPopupBase+80,previewOperationColor:new me.q(t.colorTextLightSolid).toRgbString(),previewOperationColorDisabled:new me.q(t.colorTextLightSolid).setAlpha(.25).toRgbString(),previewOperationSize:1.5*t.fontSizeIcon})));const Te={rotateLeft:(0,r.bF)(Bt,null,null),rotateRight:(0,r.bF)(Ht,null,null),zoomIn:(0,r.bF)(qt,null,null),zoomOut:(0,r.bF)(re,null,null),close:(0,r.bF)(ie.A,null,null),left:(0,r.bF)(ce,null,null),right:(0,r.bF)(_,null,null),flipX:(0,r.bF)(ve,null,null),flipY:(0,r.bF)(ve,{rotate:90},null)},Pe=()=>({previewPrefixCls:String,preview:(0,u.ds)()}),Ie=(0,r.pM)({compatConfig:{MODE:3},name:"AImagePreviewGroup",inheritAttrs:!1,props:Pe(),setup(t,e){let{attrs:n,slots:i}=e;const{prefixCls:a,rootPrefixCls:s}=(0,O.A)("image",t),l=(0,r.EW)((()=>`${a.value}-preview`)),[u,c]=Me(a),h=(0,r.EW)((()=>{const{preview:e}=t;if(!1===e)return e;const n="object"===typeof e?e:{};return(0,A.A)((0,A.A)({},n),{rootClassName:c.value,transitionName:(0,B.by)(s.value,"zoom",n.transitionName),maskTransitionName:(0,B.by)(s.value,"fade",n.maskTransitionName)})}));return()=>u((0,r.bF)(xt,(0,o.A)((0,o.A)({},(0,A.A)((0,A.A)({},n),t)),{},{preview:h.value,icons:Te,previewPrefixCls:l.value}),i))}});var $e=Ie,Ee=n(34631);const Re=(0,r.pM)({name:"AImage",inheritAttrs:!1,props:Ct(),setup(t,e){let{slots:n,attrs:i}=e;const{prefixCls:a,rootPrefixCls:s,configProvider:l}=(0,O.A)("image",t),[u,c]=Me(a),h=(0,r.EW)((()=>{const{preview:e}=t;if(!1===e)return e;const n="object"===typeof e?e:{};return(0,A.A)((0,A.A)({icons:Te},n),{transitionName:(0,B.by)(s.value,"zoom",n.transitionName),maskTransitionName:(0,B.by)(s.value,"fade",n.maskTransitionName)})}));return()=>{var e,s;const d=(null===(s=null===(e=l.locale)||void 0===e?void 0:e.value)||void 0===s?void 0:s.Image)||Et.A.Image,p=()=>(0,r.bF)("div",{class:`${a.value}-mask-info`},[(0,r.bF)(Ee.A,null,null),null===d||void 0===d?void 0:d.preview]),{previewMask:f=n.previewMask||p}=t;return u((0,r.bF)($t,(0,o.A)((0,o.A)({},(0,A.A)((0,A.A)((0,A.A)({},i),t),{prefixCls:a.value})),{},{preview:h.value,rootClassName:(0,w.A)(t.rootClassName,c.value)}),(0,A.A)((0,A.A)({},n),{previewMask:"function"===typeof f?f:null})))}}});Re.PreviewGroup=$e,Re.install=function(t){return t.component(Re.name,Re),t.component(Re.PreviewGroup.name,Re.PreviewGroup),t};var De=Re,Le=n(44942),Ne=n(18765),ze=n(35162),Be=n(99415);const Fe=()=>({name:String,prefixCls:String,options:(0,u.MY)([]),disabled:Boolean,id:String}),We=()=>(0,A.A)((0,A.A)({},Fe()),{defaultValue:(0,u.MY)(),value:(0,u.MY)(),onChange:(0,u.Fg)(),"onUpdate:value":(0,u.Fg)()}),je=()=>({prefixCls:String,defaultChecked:(0,u.HE)(),checked:(0,u.HE)(),disabled:(0,u.HE)(),isGroup:(0,u.HE)(),value:c.A.any,name:String,id:String,indeterminate:(0,u.HE)(),type:(0,u.WO)("checkbox"),autofocus:(0,u.HE)(),onChange:(0,u.Fg)(),"onUpdate:checked":(0,u.Fg)(),onClick:(0,u.Fg)(),skipGroup:(0,u.HE)(!1)}),Ve=()=>(0,A.A)((0,A.A)({},je()),{indeterminate:(0,u.HE)(!1)}),Qe=Symbol("CheckboxGroupContext");var He=n(97732);const Ze=new He.A("antCheckboxEffect",{"0%":{transform:"scale(1)",opacity:.5},"100%":{transform:"scale(1.6)",opacity:0}}),Ge=t=>{const{checkboxCls:e}=t,n=`${e}-wrapper`;return[{[`${e}-group`]:(0,A.A)((0,A.A)({},(0,T.dF)(t)),{display:"inline-flex",flexWrap:"wrap",columnGap:t.marginXS,[`> ${t.antCls}-row`]:{flex:1}}),[n]:(0,A.A)((0,A.A)({},(0,T.dF)(t)),{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}}}),[e]:(0,A.A)((0,A.A)({},(0,T.dF)(t)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",alignSelf:"center",[`${e}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${e}-inner`]:(0,A.A)({},(0,T.jk)(t))},[`${e}-inner`]:{boxSizing:"border-box",position:"relative",top:0,insetInlineStart:0,display:"block",width:t.checkboxSize,height:t.checkboxSize,direction:"ltr",backgroundColor:t.colorBgContainer,border:`${t.lineWidth}px ${t.lineType} ${t.colorBorder}`,borderRadius:t.borderRadiusSM,borderCollapse:"separate",transition:`all ${t.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:t.checkboxSize/14*5,height:t.checkboxSize/14*8,border:`${t.lineWidthBold}px solid ${t.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${t.motionDurationFast} ${t.motionEaseInBack}, opacity ${t.motionDurationFast}`}},"& + span":{paddingInlineStart:t.paddingXS,paddingInlineEnd:t.paddingXS}})},{[e]:{"&-indeterminate":{[`${e}-inner`]:{"&:after":{top:"50%",insetInlineStart:"50%",width:t.fontSizeLG/2,height:t.fontSizeLG/2,backgroundColor:t.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}}}}},{[`${n}:hover ${e}:after`]:{visibility:"visible"},[`\n ${n}:not(${n}-disabled),\n ${e}:not(${e}-disabled)\n `]:{[`&:hover ${e}-inner`]:{borderColor:t.colorPrimary}},[`${n}:not(${n}-disabled)`]:{[`&:hover ${e}-checked:not(${e}-disabled) ${e}-inner`]:{backgroundColor:t.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${e}-checked:not(${e}-disabled):after`]:{borderColor:t.colorPrimaryHover}}},{[`${e}-checked`]:{[`${e}-inner`]:{backgroundColor:t.colorPrimary,borderColor:t.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${t.motionDurationMid} ${t.motionEaseOutBack} ${t.motionDurationFast}`}},"&:after":{position:"absolute",top:0,insetInlineStart:0,width:"100%",height:"100%",borderRadius:t.borderRadiusSM,visibility:"hidden",border:`${t.lineWidthBold}px solid ${t.colorPrimary}`,animationName:Ze,animationDuration:t.motionDurationSlow,animationTimingFunction:"ease-in-out",animationFillMode:"backwards",content:'""',transition:`all ${t.motionDurationSlow}`}},[`\n ${n}-checked:not(${n}-disabled),\n ${e}-checked:not(${e}-disabled)\n `]:{[`&:hover ${e}-inner`]:{backgroundColor:t.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${e}:after`]:{borderColor:t.colorPrimaryHover}}},{[`${n}-disabled`]:{cursor:"not-allowed"},[`${e}-disabled`]:{[`&, ${e}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${e}-inner`]:{background:t.colorBgContainerDisabled,borderColor:t.colorBorder,"&:after":{borderColor:t.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:t.colorTextDisabled},[`&${e}-indeterminate ${e}-inner::after`]:{background:t.colorTextDisabled}}}]};function Xe(t,e){const n=(0,M.h1)(e,{checkboxCls:`.${t}`,checkboxSize:e.controlInteractiveSize});return[Ge(n)]}var Ue=(0,C.A)("Checkbox",((t,e)=>{let{prefixCls:n}=e;return[Xe(n,t)]})),Ye=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n},qe=(0,r.pM)({compatConfig:{MODE:3},name:"ACheckbox",inheritAttrs:!1,__ANT_CHECKBOX:!0,props:Ve(),setup(t,e){let{emit:n,attrs:a,slots:l,expose:u}=e;const c=(0,ze.db)(),h=ze.$W.useInject(),{prefixCls:d,direction:p,disabled:f}=(0,O.A)("checkbox",t),g=(0,Be.p)(),[v,m]=Ue(d),y=(0,r.WQ)(Qe,void 0),b=Symbol("checkboxUniId"),_=(0,r.EW)((()=>(null===y||void 0===y?void 0:y.disabled.value)||f.value));(0,r.nT)((()=>{!t.skipGroup&&y&&y.registerValue(b,t.value)})),(0,r.xo)((()=>{y&&y.cancelValue(b)})),(0,r.sV)((()=>{(0,Ne.Ay)(!(void 0===t.checked&&!y&&void 0!==t.value),"Checkbox","`value` is not validate prop, do you mean `checked`?")}));const x=t=>{const e=t.target.checked;n("update:checked",e),n("change",t),c.onFieldChange()},S=(0,i.KR)(),k=()=>{var t;null===(t=S.value)||void 0===t||t.focus()},C=()=>{var t;null===(t=S.value)||void 0===t||t.blur()};return u({focus:k,blur:C}),()=>{var e;const i=(0,s.MI)(null===(e=l.default)||void 0===e?void 0:e.call(l)),{indeterminate:u,skipGroup:f,id:b=c.id.value}=t,O=Ye(t,["indeterminate","skipGroup","id"]),{onMouseenter:k,onMouseleave:C,onInput:M,class:T,style:P}=a,I=Ye(a,["onMouseenter","onMouseleave","onInput","class","style"]),$=(0,A.A)((0,A.A)((0,A.A)((0,A.A)({},O),{id:b,prefixCls:d.value}),I),{disabled:_.value});y&&!f?($.onChange=function(){for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];n("change",...r),y.toggleOption({label:i,value:t.value})},$.name=y.name.value,$.checked=y.mergedValue.value.includes(t.value),$.disabled=_.value||g.value,$.indeterminate=u):$.onChange=x;const E=(0,w.A)({[`${d.value}-wrapper`]:!0,[`${d.value}-rtl`]:"rtl"===p.value,[`${d.value}-wrapper-checked`]:$.checked,[`${d.value}-wrapper-disabled`]:$.disabled,[`${d.value}-wrapper-in-form-item`]:h.isFormItemInput},T,m.value),R=(0,w.A)({[`${d.value}-indeterminate`]:u},m.value),D=u?"mixed":void 0;return v((0,r.bF)("label",{class:E,style:P,onMouseenter:k,onMouseleave:C},[(0,r.bF)(Le.A,(0,o.A)((0,o.A)({"aria-checked":D},$),{},{class:R,ref:S}),null),i.length?(0,r.bF)("span",null,[i]):null]))}}}),Ke=(0,r.pM)({compatConfig:{MODE:3},name:"ACheckboxGroup",inheritAttrs:!1,props:We(),setup(t,e){let{slots:n,attrs:a,emit:s,expose:l}=e;const u=(0,ze.db)(),{prefixCls:c,direction:h}=(0,O.A)("checkbox",t),d=(0,r.EW)((()=>`${c.value}-group`)),[p,f]=Ue(d),g=(0,i.KR)((void 0===t.value?t.defaultValue:t.value)||[]);(0,r.wB)((()=>t.value),(()=>{g.value=t.value||[]}));const v=(0,r.EW)((()=>t.options.map((t=>"string"===typeof t||"number"===typeof t?{label:t,value:t}:t)))),m=(0,i.KR)(Symbol()),y=(0,i.KR)(new Map),b=t=>{y.value.delete(t),m.value=Symbol()},_=(t,e)=>{y.value.set(t,e),m.value=Symbol()},x=(0,i.KR)(new Map);(0,r.wB)(m,(()=>{const t=new Map;for(const e of y.value.values())t.set(e,!0);x.value=t}));const w=e=>{const n=g.value.indexOf(e.value),r=[...g.value];-1===n?r.push(e.value):r.splice(n,1),void 0===t.value&&(g.value=r);const i=r.filter((t=>x.value.has(t))).sort(((t,e)=>{const n=v.value.findIndex((e=>e.value===t)),r=v.value.findIndex((t=>t.value===e));return n-r}));s("update:value",i),s("change",i),u.onFieldChange()};return(0,r.Gt)(Qe,{cancelValue:b,registerValue:_,toggleOption:w,mergedValue:g,name:(0,r.EW)((()=>t.name)),disabled:(0,r.EW)((()=>t.disabled))}),l({mergedValue:g}),()=>{var e;const{id:i=u.id.value}=t;let s=null;return v.value&&v.value.length>0&&(s=v.value.map((e=>{var i;return(0,r.bF)(qe,{prefixCls:c.value,key:e.value.toString(),disabled:"disabled"in e?e.disabled:t.disabled,indeterminate:e.indeterminate,value:e.value,checked:-1!==g.value.indexOf(e.value),onChange:e.onChange,class:`${d.value}-item`},{default:()=>[void 0!==n.label?null===(i=n.label)||void 0===i?void 0:i.call(n,e):e.label]})}))),p((0,r.bF)("div",(0,o.A)((0,o.A)({},a),{},{class:[d.value,{[`${d.value}-rtl`]:"rtl"===h.value},a.class,f.value],id:i}),[s||(null===(e=n.default)||void 0===e?void 0:e.call(n))]))}}}),Je=n(45776),tn=n(9139),en=n(7649),nn=n(58554);n(85194),n(27092),n(68925),n(31796),n(21467),n(22064),n(92114);function rn(t){var e=-1,n=null==t?0:t.length,r={};while(++e<n){var i=t[e];r[i[0]]=i[1]}return r}var on=rn;const an="__epPropKey",sn=t=>t,ln=t=>(0,Q.Gv)(t)&&!!t[an],un=(t,e)=>{if(!(0,Q.Gv)(t)||ln(t))return t;const{values:n,required:i,default:o,type:a,validator:s}=t,l=n||s?i=>{let a=!1,l=[];if(n&&(l=Array.from(n),(0,Q.$3)(t,"default")&&l.push(o),a||(a=l.includes(i))),s&&(a||(a=s(i))),!a&&l.length>0){const t=[...new Set(l)].map((t=>JSON.stringify(t))).join(", ");(0,r.R8)(`Invalid prop: validation failed${e?` for prop "${e}"`:""}. Expected one of [${t}], got value ${JSON.stringify(i)}.`)}return a}:void 0,u={type:a,required:!!i,validator:l,[an]:!0};return(0,Q.$3)(t,"default")&&(u.default=o),u},cn=t=>on(Object.entries(t).map((([t,e])=>[t,un(e,t)]))),hn=cn({size:{type:sn([Number,String])},color:{type:String}});var dn=(t,e)=>{const n=t.__vccOpts||t;for(const[r,i]of e)n[r]=i;return n};const pn="el",fn="is-",gn=(t,e,n,r,i)=>{let o=`${t}-${e}`;return n&&(o+=`-${n}`),r&&(o+=`__${r}`),i&&(o+=`--${i}`),o},vn=Symbol("namespaceContextKey"),mn=t=>{const e=t||((0,r.nI)()?(0,r.WQ)(vn,(0,i.KR)(pn)):(0,i.KR)(pn)),n=(0,r.EW)((()=>(0,i.R1)(e)||pn));return n},yn=(t,e)=>{const n=mn(e),r=(e="")=>gn(n.value,t,e,"",""),i=e=>e?gn(n.value,t,"",e,""):"",o=e=>e?gn(n.value,t,"","",e):"",a=(e,r)=>e&&r?gn(n.value,t,e,r,""):"",s=(e,r)=>e&&r?gn(n.value,t,"",e,r):"",l=(e,r)=>e&&r?gn(n.value,t,e,"",r):"",u=(e,r,i)=>e&&r&&i?gn(n.value,t,e,r,i):"",c=(t,...e)=>{const n=!(e.length>=1)||e[0];return t&&n?`${fn}${t}`:""},h=t=>{const e={};for(const r in t)t[r]&&(e[`--${n.value}-${r}`]=t[r]);return e},d=e=>{const r={};for(const i in e)e[i]&&(r[`--${n.value}-${t}-${i}`]=e[i]);return r},p=t=>`--${n.value}-${t}`,f=e=>`--${n.value}-${t}-${e}`;return{namespace:n,b:r,e:i,m:o,be:a,em:s,bm:l,bem:u,is:c,cssVar:h,cssVarName:p,cssVarBlock:d,cssVarBlockName:f}};function bn(t){return null==t}var _n=bn;const xn=t=>void 0===t,wn=t=>"boolean"===typeof t,On=t=>"number"===typeof t,Sn=t=>"undefined"!==typeof Element&&t instanceof Element,An=t=>_n(t),kn=t=>!!(0,Q.Kg)(t)&&!Number.isNaN(Number(t));Error;function Cn(t,e){0}const Mn="utils/dom/style";function Tn(t,e="px"){return t?On(t)||kn(t)?`${t}${e}`:(0,Q.Kg)(t)?t:void Cn(Mn,"binding value must be a string or number"):""}const Pn=(0,r.pM)({name:"ElIcon",inheritAttrs:!1}),In=(0,r.pM)({...Pn,props:hn,setup(t){const e=t,n=yn("icon"),o=(0,r.EW)((()=>{const{size:t,color:n}=e;return t||n?{fontSize:xn(t)?void 0:Tn(t),"--color":n}:{}}));return(t,e)=>((0,r.uX)(),(0,r.CE)("i",(0,r.v6)({class:(0,i.R1)(n).b(),style:(0,i.R1)(o)},t.$attrs),[(0,r.RG)(t.$slots,"default")],16))}});var $n=dn(In,[["__file","icon.vue"]]);const En=(t,e)=>{if(t.install=n=>{for(const r of[t,...Object.values(null!=e?e:{})])n.component(r.name,r)},e)for(const[n,r]of Object.entries(e))t[n]=r;return t},Rn=t=>(t.install=Q.tE,t),Dn=En($n),Ln=Symbol("buttonGroupContextKey"),Nn=({from:t,replacement:e,scope:n,version:o,ref:a,type:s="API"},l)=>{(0,r.wB)((()=>(0,i.R1)(l)),(r=>{r&&Cn(n,`[${s}] ${t} is about to be deprecated in version ${o}, please use ${e} instead.\nFor more detail, please visit: ${a}\n`)}),{immediate:!0})},zn=Symbol(),Bn=(0,i.KR)();function Fn(t,e=void 0){const n=(0,r.nI)()?(0,r.WQ)(zn,Bn):Bn;return t?(0,r.EW)((()=>{var r,i;return null!=(i=null==(r=n.value)?void 0:r[t])?i:e})):n}const Wn=Symbol("formContextKey"),jn=Symbol("formItemContextKey");var Vn,Qn=n(57352);Object.defineProperty,Object.defineProperties,Object.getOwnPropertyDescriptors,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;const Hn="undefined"!==typeof window,Zn=(Object.prototype.toString,t=>"string"===typeof t),Gn=()=>{},Xn=Hn&&(null==(Vn=null==window?void 0:window.navigator)?void 0:Vn.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function Un(t){return"function"===typeof t?t():(0,i.R1)(t)}Qn.Sg,Qn.Sg,Qn.Sg;function Yn(t){return t}function qn(t){return!!(0,i.o5)()&&((0,i.jr)(t),!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 Kn(t,e=!0){(0,r.nI)()?(0,r.sV)(t):e?t():(0,r.dY)(t)}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 Jn={prefix:Math.floor(1e4*Math.random()),current:0},tr=Symbol("elIdInjection"),er=()=>(0,r.nI)()?(0,r.WQ)(tr,Jn):Jn,nr=t=>{const e=er();Hn||e!==Jn||Cn("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=mn(),o=(0,r.EW)((()=>(0,i.R1)(t)||`${n.value}-id-${e.prefix}-${e.current++}`));return o},rr=()=>{const t=(0,r.WQ)(Wn,void 0),e=(0,r.WQ)(jn,void 0);return{form:t,formItem:e}},ir=(t,{formItemContext:e,disableIdGeneration:n,disableIdManagement:o})=>{n||(n=(0,i.KR)(!1)),o||(o=(0,i.KR)(!1));const a=(0,i.KR)();let s;const l=(0,r.EW)((()=>{var n;return!!(!t.label&&!t.ariaLabel&&e&&e.inputIds&&(null==(n=e.inputIds)?void 0:n.length)<=1)}));return(0,r.sV)((()=>{s=(0,r.wB)([(0,i.lW)(t,"id"),n],(([t,n])=>{const r=null!=t?t:n?void 0:nr().value;r!==a.value&&((null==e?void 0:e.removeInputId)&&(a.value&&e.removeInputId(a.value),(null==o?void 0:o.value)||n||!r||e.addInputId(r)),a.value=r)}),{immediate:!0})})),(0,r.hi)((()=>{s&&s(),(null==e?void 0:e.removeInputId)&&a.value&&e.removeInputId(a.value)})),{isLabeledByFormItem:l,inputId:a}},or=t=>{const e=(0,r.nI)();return(0,r.EW)((()=>{var n,r;return null==(r=null==(n=null==e?void 0:e.proxy)?void 0:n.$props)?void 0:r[t]}))},ar=["","default","small","large"],sr=un({type:String,values:ar,required:!1}),lr=Symbol("size"),ur=()=>{const t=(0,r.WQ)(lr,{});return(0,r.EW)((()=>(0,i.R1)(t.size)||""))},cr=(t,e={})=>{const n=(0,i.KR)(void 0),o=e.prop?n:or("size"),a=e.global?n:ur(),s=e.form?{size:void 0}:(0,r.WQ)(Wn,void 0),l=e.formItem?{size:void 0}:(0,r.WQ)(jn,void 0);return(0,r.EW)((()=>o.value||(0,i.R1)(t)||(null==l?void 0:l.size)||(null==s?void 0:s.size)||a.value||""))},hr=t=>{const e=or("disabled"),n=(0,r.WQ)(Wn,void 0);return(0,r.EW)((()=>e.value||(0,i.R1)(t)||(null==n?void 0:n.disabled)||!1))},dr=(t,e)=>{Nn({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.EW)((()=>"text"===t.type)));const n=(0,r.WQ)(Ln,void 0),o=Fn("button"),{form:a}=rr(),s=cr((0,r.EW)((()=>null==n?void 0:n.size))),l=hr(),u=(0,i.KR)(),c=(0,r.Ht)(),h=(0,r.EW)((()=>t.type||(null==n?void 0:n.type)||"")),d=(0,r.EW)((()=>{var e,n,r;return null!=(r=null!=(n=t.autoInsertSpace)?n:null==(e=o.value)?void 0:e.autoInsertSpace)&&r})),p=(0,r.EW)((()=>"button"===t.tag?{ariaDisabled:l.value||t.loading,disabled:l.value||t.loading,autofocus:t.autofocus,type:t.nativeType}:{})),f=(0,r.EW)((()=>{var t;const e=null==(t=c.default)?void 0:t.call(c);if(d.value&&1===(null==e?void 0:e.length)){const t=e[0];if((null==t?void 0:t.type)===r.EY){const e=t.children;return/^\p{Unified_Ideograph}{2}$/u.test(e.trim())}}return!1})),g=n=>{"reset"===t.nativeType&&(null==a||a.resetFields()),e("click",n)};return{_disabled:l,_size:s,_type:h,_ref:u,_props:p,shouldAddSpace:f,handleClick:g}};
  4. /*! Element Plus Icons Vue v2.3.1 */
  5. var pr=(0,r.pM)({name:"ArrowDown",__name:"arrow-down",setup(t){return(t,e)=>((0,r.uX)(),(0,r.CE)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,r.Lk)("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"})]))}}),fr=pr,gr=(0,r.pM)({name:"CircleCheck",__name:"circle-check",setup(t){return(t,e)=>((0,r.uX)(),(0,r.CE)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,r.Lk)("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.Lk)("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"})]))}}),vr=gr,mr=(0,r.pM)({name:"CircleClose",__name:"circle-close",setup(t){return(t,e)=>((0,r.uX)(),(0,r.CE)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,r.Lk)("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.Lk)("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"})]))}}),yr=mr,br=(0,r.pM)({name:"Close",__name:"close",setup(t){return(t,e)=>((0,r.uX)(),(0,r.CE)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,r.Lk)("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"})]))}}),_r=br,xr=(0,r.pM)({name:"Hide",__name:"hide",setup(t){return(t,e)=>((0,r.uX)(),(0,r.CE)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,r.Lk)("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.Lk)("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"})]))}}),wr=xr,Or=(0,r.pM)({name:"Loading",__name:"loading",setup(t){return(t,e)=>((0,r.uX)(),(0,r.CE)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,r.Lk)("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"})]))}}),Sr=Or,Ar=(0,r.pM)({name:"View",__name:"view",setup(t){return(t,e)=>((0,r.uX)(),(0,r.CE)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,r.Lk)("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"})]))}}),kr=Ar;const Cr=sn([String,Object,Function]),Mr={validating:Sr,success:vr,error:yr},Tr=["default","primary","success","warning","info","danger","text",""],Pr=["button","submit","reset"],Ir=cn({size:sr,disabled:Boolean,type:{type:String,values:Tr,default:""},icon:{type:Cr},nativeType:{type:String,values:Pr,default:"button"},loading:Boolean,loadingIcon:{type:Cr,default:()=>Sr},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:sn([String,Object]),default:"button"}}),$r={click:t=>t instanceof MouseEvent};function Er(t,e=20){return t.mix("#141414",e).toString()}function Rr(t){const e=hr(),n=yn("button");return(0,r.EW)((()=>{let r={};const i=t.color;if(i){const o=new me.q(i),a=t.dark?o.tint(20).toString():Er(o,20);if(t.plain)r=n.cssVarBlock({"bg-color":t.dark?Er(o,90):o.tint(90).toString(),"text-color":i,"border-color":t.dark?Er(o,50):o.tint(50).toString(),"hover-text-color":`var(${n.cssVarName("color-white")})`,"hover-bg-color":i,"hover-border-color":i,"active-bg-color":a,"active-text-color":`var(${n.cssVarName("color-white")})`,"active-border-color":a}),e.value&&(r[n.cssVarBlockName("disabled-bg-color")]=t.dark?Er(o,90):o.tint(90).toString(),r[n.cssVarBlockName("disabled-text-color")]=t.dark?Er(o,50):o.tint(50).toString(),r[n.cssVarBlockName("disabled-border-color")]=t.dark?Er(o,80):o.tint(80).toString());else{const s=t.dark?Er(o,30):o.tint(30).toString(),l=o.isDark()?`var(${n.cssVarName("color-white")})`:`var(${n.cssVarName("color-black")})`;if(r=n.cssVarBlock({"bg-color":i,"text-color":l,"border-color":i,"hover-bg-color":s,"hover-text-color":l,"hover-border-color":s,"active-bg-color":a,"active-border-color":a}),e.value){const e=t.dark?Er(o,50):o.tint(50).toString();r[n.cssVarBlockName("disabled-bg-color")]=e,r[n.cssVarBlockName("disabled-text-color")]=t.dark?"rgba(255, 255, 255, 0.5)":`var(${n.cssVarName("color-white")})`,r[n.cssVarBlockName("disabled-border-color")]=e}}}return r}))}const Dr=(0,r.pM)({name:"ElButton"}),Lr=(0,r.pM)({...Dr,props:Ir,emits:$r,setup(t,{expose:e,emit:n}){const o=t,a=Rr(o),s=yn("button"),{_ref:l,_size:u,_type:c,_disabled:h,_props:d,shouldAddSpace:p,handleClick:f}=dr(o,n),g=(0,r.EW)((()=>[s.b(),s.m(c.value),s.m(u.value),s.is("disabled",h.value),s.is("loading",o.loading),s.is("plain",o.plain),s.is("round",o.round),s.is("circle",o.circle),s.is("text",o.text),s.is("link",o.link),s.is("has-bg",o.bg)]));return e({ref:l,size:u,type:c,disabled:h,shouldAddSpace:p}),(t,e)=>((0,r.uX)(),(0,r.Wv)((0,r.$y)(t.tag),(0,r.v6)({ref_key:"_ref",ref:l},(0,i.R1)(d),{class:(0,i.R1)(g),style:(0,i.R1)(a),onClick:(0,i.R1)(f)}),{default:(0,r.k6)((()=>[t.loading?((0,r.uX)(),(0,r.CE)(r.FK,{key:0},[t.$slots.loading?(0,r.RG)(t.$slots,"loading",{key:0}):((0,r.uX)(),(0,r.Wv)((0,i.R1)(Dn),{key:1,class:(0,Q.C4)((0,i.R1)(s).is("loading"))},{default:(0,r.k6)((()=>[((0,r.uX)(),(0,r.Wv)((0,r.$y)(t.loadingIcon)))])),_:1},8,["class"]))],64)):t.icon||t.$slots.icon?((0,r.uX)(),(0,r.Wv)((0,i.R1)(Dn),{key:1},{default:(0,r.k6)((()=>[t.icon?((0,r.uX)(),(0,r.Wv)((0,r.$y)(t.icon),{key:0})):(0,r.RG)(t.$slots,"icon",{key:1})])),_:3})):(0,r.Q3)("v-if",!0),t.$slots.default?((0,r.uX)(),(0,r.CE)("span",{key:2,class:(0,Q.C4)({[(0,i.R1)(s).em("text","expand")]:(0,i.R1)(p)})},[(0,r.RG)(t.$slots,"default")],2)):(0,r.Q3)("v-if",!0)])),_:3},16,["class","style","onClick"]))}});var Nr=dn(Lr,[["__file","button.vue"]]);const zr={size:Ir.size,type:Ir.type},Br=(0,r.pM)({name:"ElButtonGroup"}),Fr=(0,r.pM)({...Br,props:zr,setup(t){const e=t;(0,r.Gt)(Ln,(0,i.Kh)({size:(0,i.lW)(e,"size"),type:(0,i.lW)(e,"type")}));const n=yn("button");return(t,e)=>((0,r.uX)(),(0,r.CE)("div",{class:(0,Q.C4)(`${(0,i.R1)(n).b("group")}`)},[(0,r.RG)(t.$slots,"default")],2))}});var Wr=dn(Fr,[["__file","button-group.vue"]]);const jr=En(Nr,{ButtonGroup:Wr}),Vr=(Rn(Wr),Symbol("popper")),Qr=Symbol("popperContent"),Hr=["dialog","grid","group","listbox","menu","navigation","tooltip","tree"],Zr=cn({role:{type:String,values:Hr,default:"tooltip"}}),Gr=(0,r.pM)({name:"ElPopper",inheritAttrs:!1}),Xr=(0,r.pM)({...Gr,props:Zr,setup(t,{expose:e}){const n=t,o=(0,i.KR)(),a=(0,i.KR)(),s=(0,i.KR)(),l=(0,i.KR)(),u=(0,r.EW)((()=>n.role)),c={triggerRef:o,popperInstanceRef:a,contentRef:s,referenceRef:l,role:u};return e(c),(0,r.Gt)(Vr,c),(t,e)=>(0,r.RG)(t.$slots,"default")}});var Ur=dn(Xr,[["__file","popper.vue"]]);const Yr=En(Ur),qr=Symbol("elTooltip");function Kr(){let t;const e=(e,r)=>{n(),t=window.setTimeout(e,r)},n=()=>window.clearTimeout(t);return qn((()=>n())),{registerTimeout:e,cancelTimeout:n}}const Jr=cn({showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0}}),ti=({showAfter:t,hideAfter:e,autoClose:n,open:r,close:o})=>{const{registerTimeout:a}=Kr(),{registerTimeout:s,cancelTimeout:l}=Kr(),u=e=>{a((()=>{r(e);const t=(0,i.R1)(n);On(t)&&t>0&&s((()=>{o(e)}),t)}),(0,i.R1)(t))},c=t=>{l(),a((()=>{o(t)}),(0,i.R1)(e))};return{onOpen:u,onClose:c}};var ei="top",ni="bottom",ri="right",ii="left",oi="auto",ai=[ei,ni,ri,ii],si="start",li="end",ui="clippingParents",ci="viewport",hi="popper",di="reference",pi=ai.reduce((function(t,e){return t.concat([e+"-"+si,e+"-"+li])}),[]),fi=[].concat(ai,[oi]).reduce((function(t,e){return t.concat([e,e+"-"+si,e+"-"+li])}),[]),gi="beforeRead",vi="read",mi="afterRead",yi="beforeMain",bi="main",_i="afterMain",xi="beforeWrite",wi="write",Oi="afterWrite",Si=[gi,vi,mi,yi,bi,_i,xi,wi,Oi];function Ai(t){return t?(t.nodeName||"").toLowerCase():null}function ki(t){if(null==t)return window;if("[object Window]"!==t.toString()){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function Ci(t){var e=ki(t).Element;return t instanceof e||t instanceof Element}function Mi(t){var e=ki(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function Ti(t){if("undefined"==typeof ShadowRoot)return!1;var e=ki(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}function Pi(t){var e=t.state;Object.keys(e.elements).forEach((function(t){var n=e.styles[t]||{},r=e.attributes[t]||{},i=e.elements[t];!Mi(i)||!Ai(i)||(Object.assign(i.style,n),Object.keys(r).forEach((function(t){var e=r[t];!1===e?i.removeAttribute(t):i.setAttribute(t,!0===e?"":e)})))}))}function Ii(t){var e=t.state,n={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,n.popper),e.styles=n,e.elements.arrow&&Object.assign(e.elements.arrow.style,n.arrow),function(){Object.keys(e.elements).forEach((function(t){var r=e.elements[t],i=e.attributes[t]||{},o=Object.keys(e.styles.hasOwnProperty(t)?e.styles[t]:n[t]),a=o.reduce((function(t,e){return t[e]="",t}),{});!Mi(r)||!Ai(r)||(Object.assign(r.style,a),Object.keys(i).forEach((function(t){r.removeAttribute(t)})))}))}}var $i={name:"applyStyles",enabled:!0,phase:"write",fn:Pi,effect:Ii,requires:["computeStyles"]};function Ei(t){return t.split("-")[0]}var Ri=Math.max,Di=Math.min,Li=Math.round;function Ni(t,e){void 0===e&&(e=!1);var n=t.getBoundingClientRect(),r=1,i=1;if(Mi(t)&&e){var o=t.offsetHeight,a=t.offsetWidth;a>0&&(r=Li(n.width)/a||1),o>0&&(i=Li(n.height)/o||1)}return{width:n.width/r,height:n.height/i,top:n.top/i,right:n.right/r,bottom:n.bottom/i,left:n.left/r,x:n.left/r,y:n.top/i}}function zi(t){var e=Ni(t),n=t.offsetWidth,r=t.offsetHeight;return Math.abs(e.width-n)<=1&&(n=e.width),Math.abs(e.height-r)<=1&&(r=e.height),{x:t.offsetLeft,y:t.offsetTop,width:n,height:r}}function Bi(t,e){var n=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(n&&Ti(n)){var r=e;do{if(r&&t.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Fi(t){return ki(t).getComputedStyle(t)}function Wi(t){return["table","td","th"].indexOf(Ai(t))>=0}function ji(t){return((Ci(t)?t.ownerDocument:t.document)||window.document).documentElement}function Vi(t){return"html"===Ai(t)?t:t.assignedSlot||t.parentNode||(Ti(t)?t.host:null)||ji(t)}function Qi(t){return Mi(t)&&"fixed"!==Fi(t).position?t.offsetParent:null}function Hi(t){var e=-1!==navigator.userAgent.toLowerCase().indexOf("firefox"),n=-1!==navigator.userAgent.indexOf("Trident");if(n&&Mi(t)){var r=Fi(t);if("fixed"===r.position)return null}var i=Vi(t);for(Ti(i)&&(i=i.host);Mi(i)&&["html","body"].indexOf(Ai(i))<0;){var o=Fi(i);if("none"!==o.transform||"none"!==o.perspective||"paint"===o.contain||-1!==["transform","perspective"].indexOf(o.willChange)||e&&"filter"===o.willChange||e&&o.filter&&"none"!==o.filter)return i;i=i.parentNode}return null}function Zi(t){for(var e=ki(t),n=Qi(t);n&&Wi(n)&&"static"===Fi(n).position;)n=Qi(n);return n&&("html"===Ai(n)||"body"===Ai(n)&&"static"===Fi(n).position)?e:n||Hi(t)||e}function Gi(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function Xi(t,e,n){return Ri(t,Di(e,n))}function Ui(t,e,n){var r=Xi(t,e,n);return r>n?n:r}function Yi(){return{top:0,right:0,bottom:0,left:0}}function qi(t){return Object.assign({},Yi(),t)}function Ki(t,e){return e.reduce((function(e,n){return e[n]=t,e}),{})}var Ji=function(t,e){return t="function"==typeof t?t(Object.assign({},e.rects,{placement:e.placement})):t,qi("number"!=typeof t?t:Ki(t,ai))};function to(t){var e,n=t.state,r=t.name,i=t.options,o=n.elements.arrow,a=n.modifiersData.popperOffsets,s=Ei(n.placement),l=Gi(s),u=[ii,ri].indexOf(s)>=0,c=u?"height":"width";if(o&&a){var h=Ji(i.padding,n),d=zi(o),p="y"===l?ei:ii,f="y"===l?ni:ri,g=n.rects.reference[c]+n.rects.reference[l]-a[l]-n.rects.popper[c],v=a[l]-n.rects.reference[l],m=Zi(o),y=m?"y"===l?m.clientHeight||0:m.clientWidth||0:0,b=g/2-v/2,_=h[p],x=y-d[c]-h[f],w=y/2-d[c]/2+b,O=Xi(_,w,x),S=l;n.modifiersData[r]=(e={},e[S]=O,e.centerOffset=O-w,e)}}function eo(t){var e=t.state,n=t.options,r=n.element,i=void 0===r?"[data-popper-arrow]":r;null!=i&&("string"==typeof i&&(i=e.elements.popper.querySelector(i),!i)||!Bi(e.elements.popper,i)||(e.elements.arrow=i))}var no={name:"arrow",enabled:!0,phase:"main",fn:to,effect:eo,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ro(t){return t.split("-")[1]}var io={top:"auto",right:"auto",bottom:"auto",left:"auto"};function oo(t){var e=t.x,n=t.y,r=window,i=r.devicePixelRatio||1;return{x:Li(e*i)/i||0,y:Li(n*i)/i||0}}function ao(t){var e,n=t.popper,r=t.popperRect,i=t.placement,o=t.variation,a=t.offsets,s=t.position,l=t.gpuAcceleration,u=t.adaptive,c=t.roundOffsets,h=t.isFixed,d=a.x,p=void 0===d?0:d,f=a.y,g=void 0===f?0:f,v="function"==typeof c?c({x:p,y:g}):{x:p,y:g};p=v.x,g=v.y;var m=a.hasOwnProperty("x"),y=a.hasOwnProperty("y"),b=ii,_=ei,x=window;if(u){var w=Zi(n),O="clientHeight",S="clientWidth";if(w===ki(n)&&(w=ji(n),"static"!==Fi(w).position&&"absolute"===s&&(O="scrollHeight",S="scrollWidth")),i===ei||(i===ii||i===ri)&&o===li){_=ni;var A=h&&w===x&&x.visualViewport?x.visualViewport.height:w[O];g-=A-r.height,g*=l?1:-1}if(i===ii||(i===ei||i===ni)&&o===li){b=ri;var k=h&&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&&io),T=!0===c?oo({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]=m?"0":"",C.transform=(x.devicePixelRatio||1)<=1?"translate("+p+"px, "+g+"px)":"translate3d("+p+"px, "+g+"px, 0)",C)):Object.assign({},M,(e={},e[_]=y?g+"px":"",e[b]=m?p+"px":"",e.transform="",e))}function so(t){var e=t.state,n=t.options,r=n.gpuAcceleration,i=void 0===r||r,o=n.adaptive,a=void 0===o||o,s=n.roundOffsets,l=void 0===s||s,u={placement:Ei(e.placement),variation:ro(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:i,isFixed:"fixed"===e.options.strategy};null!=e.modifiersData.popperOffsets&&(e.styles.popper=Object.assign({},e.styles.popper,ao(Object.assign({},u,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:a,roundOffsets:l})))),null!=e.modifiersData.arrow&&(e.styles.arrow=Object.assign({},e.styles.arrow,ao(Object.assign({},u,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}var lo={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:so,data:{}},uo={passive:!0};function co(t){var e=t.state,n=t.instance,r=t.options,i=r.scroll,o=void 0===i||i,a=r.resize,s=void 0===a||a,l=ki(e.elements.popper),u=[].concat(e.scrollParents.reference,e.scrollParents.popper);return o&&u.forEach((function(t){t.addEventListener("scroll",n.update,uo)})),s&&l.addEventListener("resize",n.update,uo),function(){o&&u.forEach((function(t){t.removeEventListener("scroll",n.update,uo)})),s&&l.removeEventListener("resize",n.update,uo)}}var ho={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:co,data:{}},po={left:"right",right:"left",bottom:"top",top:"bottom"};function fo(t){return t.replace(/left|right|bottom|top/g,(function(t){return po[t]}))}var go={start:"end",end:"start"};function vo(t){return t.replace(/start|end/g,(function(t){return go[t]}))}function mo(t){var e=ki(t),n=e.pageXOffset,r=e.pageYOffset;return{scrollLeft:n,scrollTop:r}}function yo(t){return Ni(ji(t)).left+mo(t).scrollLeft}function bo(t){var e=ki(t),n=ji(t),r=e.visualViewport,i=n.clientWidth,o=n.clientHeight,a=0,s=0;return r&&(i=r.width,o=r.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(a=r.offsetLeft,s=r.offsetTop)),{width:i,height:o,x:a+yo(t),y:s}}function _o(t){var e,n=ji(t),r=mo(t),i=null==(e=t.ownerDocument)?void 0:e.body,o=Ri(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=Ri(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-r.scrollLeft+yo(t),l=-r.scrollTop;return"rtl"===Fi(i||n).direction&&(s+=Ri(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:a,x:s,y:l}}function xo(t){var e=Fi(t),n=e.overflow,r=e.overflowX,i=e.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function wo(t){return["html","body","#document"].indexOf(Ai(t))>=0?t.ownerDocument.body:Mi(t)&&xo(t)?t:wo(Vi(t))}function Oo(t,e){var n;void 0===e&&(e=[]);var r=wo(t),i=r===(null==(n=t.ownerDocument)?void 0:n.body),o=ki(r),a=i?[o].concat(o.visualViewport||[],xo(r)?r:[]):r,s=e.concat(a);return i?s:s.concat(Oo(Vi(a)))}function So(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function Ao(t){var e=Ni(t);return e.top=e.top+t.clientTop,e.left=e.left+t.clientLeft,e.bottom=e.top+t.clientHeight,e.right=e.left+t.clientWidth,e.width=t.clientWidth,e.height=t.clientHeight,e.x=e.left,e.y=e.top,e}function ko(t,e){return e===ci?So(bo(t)):Ci(e)?Ao(e):So(_o(ji(t)))}function Co(t){var e=Oo(Vi(t)),n=["absolute","fixed"].indexOf(Fi(t).position)>=0,r=n&&Mi(t)?Zi(t):t;return Ci(r)?e.filter((function(t){return Ci(t)&&Bi(t,r)&&"body"!==Ai(t)})):[]}function Mo(t,e,n){var r="clippingParents"===e?Co(t):[].concat(e),i=[].concat(r,[n]),o=i[0],a=i.reduce((function(e,n){var r=ko(t,n);return e.top=Ri(r.top,e.top),e.right=Di(r.right,e.right),e.bottom=Di(r.bottom,e.bottom),e.left=Ri(r.left,e.left),e}),ko(t,o));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function To(t){var e,n=t.reference,r=t.element,i=t.placement,o=i?Ei(i):null,a=i?ro(i):null,s=n.x+n.width/2-r.width/2,l=n.y+n.height/2-r.height/2;switch(o){case ei:e={x:s,y:n.y-r.height};break;case ni:e={x:s,y:n.y+n.height};break;case ri:e={x:n.x+n.width,y:l};break;case ii:e={x:n.x-r.width,y:l};break;default:e={x:n.x,y:n.y}}var u=o?Gi(o):null;if(null!=u){var c="y"===u?"height":"width";switch(a){case si:e[u]=e[u]-(n[c]/2-r[c]/2);break;case li:e[u]=e[u]+(n[c]/2-r[c]/2);break}}return e}function Po(t,e){void 0===e&&(e={});var n=e,r=n.placement,i=void 0===r?t.placement:r,o=n.boundary,a=void 0===o?ui:o,s=n.rootBoundary,l=void 0===s?ci:s,u=n.elementContext,c=void 0===u?hi:u,h=n.altBoundary,d=void 0!==h&&h,p=n.padding,f=void 0===p?0:p,g=qi("number"!=typeof f?f:Ki(f,ai)),v=c===hi?di:hi,m=t.rects.popper,y=t.elements[d?v:c],b=Mo(Ci(y)?y:y.contextElement||ji(t.elements.popper),a,l),_=Ni(t.elements.reference),x=To({reference:_,element:m,strategy:"absolute",placement:i}),w=So(Object.assign({},m,x)),O=c===hi?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=t.modifiersData.offset;if(c===hi&&A){var k=A[i];Object.keys(S).forEach((function(t){var e=[ri,ni].indexOf(t)>=0?1:-1,n=[ei,ni].indexOf(t)>=0?"y":"x";S[t]+=k[n]*e}))}return S}function Io(t,e){void 0===e&&(e={});var n=e,r=n.placement,i=n.boundary,o=n.rootBoundary,a=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,u=void 0===l?fi:l,c=ro(r),h=c?s?pi:pi.filter((function(t){return ro(t)===c})):ai,d=h.filter((function(t){return u.indexOf(t)>=0}));0===d.length&&(d=h);var p=d.reduce((function(e,n){return e[n]=Po(t,{placement:n,boundary:i,rootBoundary:o,padding:a})[Ei(n)],e}),{});return Object.keys(p).sort((function(t,e){return p[t]-p[e]}))}function $o(t){if(Ei(t)===oi)return[];var e=fo(t);return[vo(t),e,vo(e)]}function Eo(t){var e=t.state,n=t.options,r=t.name;if(!e.modifiersData[r]._skip){for(var i=n.mainAxis,o=void 0===i||i,a=n.altAxis,s=void 0===a||a,l=n.fallbackPlacements,u=n.padding,c=n.boundary,h=n.rootBoundary,d=n.altBoundary,p=n.flipVariations,f=void 0===p||p,g=n.allowedAutoPlacements,v=e.options.placement,m=Ei(v),y=m===v,b=l||(y||!f?[fo(v)]:$o(v)),_=[v].concat(b).reduce((function(t,n){return t.concat(Ei(n)===oi?Io(e,{placement:n,boundary:c,rootBoundary:h,padding:u,flipVariations:f,allowedAutoPlacements:g}):n)}),[]),x=e.rects.reference,w=e.rects.popper,O=new Map,S=!0,A=_[0],k=0;k<_.length;k++){var C=_[k],M=Ei(C),T=ro(C)===si,P=[ei,ni].indexOf(M)>=0,I=P?"width":"height",$=Po(e,{placement:C,boundary:c,rootBoundary:h,altBoundary:d,padding:u}),E=P?T?ri:ii:T?ni:ei;x[I]>w[I]&&(E=fo(E));var R=fo(E),D=[];if(o&&D.push($[M]<=0),s&&D.push($[E]<=0,$[R]<=0),D.every((function(t){return t}))){A=C,S=!1;break}O.set(C,D)}if(S)for(var L=f?3:1,N=function(t){var e=_.find((function(e){var n=O.get(e);if(n)return n.slice(0,t).every((function(t){return t}))}));if(e)return A=e,"break"},z=L;z>0;z--){var B=N(z);if("break"===B)break}e.placement!==A&&(e.modifiersData[r]._skip=!0,e.placement=A,e.reset=!0)}}var Ro={name:"flip",enabled:!0,phase:"main",fn:Eo,requiresIfExists:["offset"],data:{_skip:!1}};function Do(t,e,n){return void 0===n&&(n={x:0,y:0}),{top:t.top-e.height-n.y,right:t.right-e.width+n.x,bottom:t.bottom-e.height+n.y,left:t.left-e.width-n.x}}function Lo(t){return[ei,ri,ni,ii].some((function(e){return t[e]>=0}))}function No(t){var e=t.state,n=t.name,r=e.rects.reference,i=e.rects.popper,o=e.modifiersData.preventOverflow,a=Po(e,{elementContext:"reference"}),s=Po(e,{altBoundary:!0}),l=Do(a,r),u=Do(s,i,o),c=Lo(l),h=Lo(u);e.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:h},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":h})}var zo={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:No};function Bo(t,e,n){var r=Ei(t),i=[ii,ei].indexOf(r)>=0?-1:1,o="function"==typeof n?n(Object.assign({},e,{placement:t})):n,a=o[0],s=o[1];return a=a||0,s=(s||0)*i,[ii,ri].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}function Fo(t){var e=t.state,n=t.options,r=t.name,i=n.offset,o=void 0===i?[0,0]:i,a=fi.reduce((function(t,n){return t[n]=Bo(n,e.rects,o),t}),{}),s=a[e.placement],l=s.x,u=s.y;null!=e.modifiersData.popperOffsets&&(e.modifiersData.popperOffsets.x+=l,e.modifiersData.popperOffsets.y+=u),e.modifiersData[r]=a}var Wo={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Fo};function jo(t){var e=t.state,n=t.name;e.modifiersData[n]=To({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})}var Vo={name:"popperOffsets",enabled:!0,phase:"read",fn:jo,data:{}};function Qo(t){return"x"===t?"y":"x"}function Ho(t){var e=t.state,n=t.options,r=t.name,i=n.mainAxis,o=void 0===i||i,a=n.altAxis,s=void 0!==a&&a,l=n.boundary,u=n.rootBoundary,c=n.altBoundary,h=n.padding,d=n.tether,p=void 0===d||d,f=n.tetherOffset,g=void 0===f?0:f,v=Po(e,{boundary:l,rootBoundary:u,padding:h,altBoundary:c}),m=Ei(e.placement),y=ro(e.placement),b=!y,_=Gi(m),x=Qo(_),w=e.modifiersData.popperOffsets,O=e.rects.reference,S=e.rects.popper,A="function"==typeof g?g(Object.assign({},e.rects,{placement:e.placement})):g,k="number"==typeof A?{mainAxis:A,altAxis:A}:Object.assign({mainAxis:0,altAxis:0},A),C=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,M={x:0,y:0};if(w){if(o){var T,P="y"===_?ei:ii,I="y"===_?ni:ri,$="y"===_?"height":"width",E=w[_],R=E+v[P],D=E-v[I],L=p?-S[$]/2:0,N=y===si?O[$]:S[$],z=y===si?-S[$]:-O[$],B=e.elements.arrow,F=p&&B?zi(B):{width:0,height:0},W=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:Yi(),j=W[P],V=W[I],Q=Xi(0,O[$],F[$]),H=b?O[$]/2-L-Q-j-k.mainAxis:N-Q-j-k.mainAxis,Z=b?-O[$]/2+L+Q+V+k.mainAxis:z+Q+V+k.mainAxis,G=e.elements.arrow&&Zi(e.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=Xi(p?Di(R,Y):R,E,p?Ri(D,q):D);w[_]=K,M[_]=K-E}if(s){var J,tt="x"===_?ei:ii,et="x"===_?ni:ri,nt=w[x],rt="y"===x?"height":"width",it=nt+v[tt],ot=nt-v[et],at=-1!==[ei,ii].indexOf(m),st=null!=(J=null==C?void 0:C[x])?J:0,lt=at?it:nt-O[rt]-S[rt]-st+k.altAxis,ut=at?nt+O[rt]+S[rt]-st-k.altAxis:ot,ct=p&&at?Ui(lt,nt,ut):Xi(p?lt:it,nt,p?ut:ot);w[x]=ct,M[x]=ct-nt}e.modifiersData[r]=M}}var Zo={name:"preventOverflow",enabled:!0,phase:"main",fn:Ho,requiresIfExists:["offset"]};function Go(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function Xo(t){return t!==ki(t)&&Mi(t)?Go(t):mo(t)}function Uo(t){var e=t.getBoundingClientRect(),n=Li(e.width)/t.offsetWidth||1,r=Li(e.height)/t.offsetHeight||1;return 1!==n||1!==r}function Yo(t,e,n){void 0===n&&(n=!1);var r=Mi(e),i=Mi(e)&&Uo(e),o=ji(e),a=Ni(t,i),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&(("body"!==Ai(e)||xo(o))&&(s=Xo(e)),Mi(e)?(l=Ni(e,!0),l.x+=e.clientLeft,l.y+=e.clientTop):o&&(l.x=yo(o))),{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function qo(t){var e=new Map,n=new Set,r=[];function i(t){n.add(t.name);var o=[].concat(t.requires||[],t.requiresIfExists||[]);o.forEach((function(t){if(!n.has(t)){var r=e.get(t);r&&i(r)}})),r.push(t)}return t.forEach((function(t){e.set(t.name,t)})),t.forEach((function(t){n.has(t.name)||i(t)})),r}function Ko(t){var e=qo(t);return Si.reduce((function(t,n){return t.concat(e.filter((function(t){return t.phase===n})))}),[])}function Jo(t){var e;return function(){return e||(e=new Promise((function(n){Promise.resolve().then((function(){e=void 0,n(t())}))}))),e}}function ta(t){var e=t.reduce((function(t,e){var n=t[e.name];return t[e.name]=n?Object.assign({},n,e,{options:Object.assign({},n.options,e.options),data:Object.assign({},n.data,e.data)}):e,t}),{});return Object.keys(e).map((function(t){return e[t]}))}var ea={placement:"bottom",modifiers:[],strategy:"absolute"};function na(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return!e.some((function(t){return!(t&&"function"==typeof t.getBoundingClientRect)}))}function ra(t){void 0===t&&(t={});var e=t,n=e.defaultModifiers,r=void 0===n?[]:n,i=e.defaultOptions,o=void 0===i?ea:i;return function(t,e,n){void 0===n&&(n=o);var i={placement:"bottom",orderedModifiers:[],options:Object.assign({},ea,o),modifiersData:{},elements:{reference:t,popper:e},attributes:{},styles:{}},a=[],s=!1,l={state:i,setOptions:function(n){var a="function"==typeof n?n(i.options):n;c(),i.options=Object.assign({},o,i.options,a),i.scrollParents={reference:Ci(t)?Oo(t):t.contextElement?Oo(t.contextElement):[],popper:Oo(e)};var s=Ko(ta([].concat(r,i.options.modifiers)));return i.orderedModifiers=s.filter((function(t){return t.enabled})),u(),l.update()},forceUpdate:function(){if(!s){var t=i.elements,e=t.reference,n=t.popper;if(na(e,n)){i.rects={reference:Yo(e,Zi(n),"fixed"===i.options.strategy),popper:zi(n)},i.reset=!1,i.placement=i.options.placement,i.orderedModifiers.forEach((function(t){return i.modifiersData[t.name]=Object.assign({},t.data)}));for(var r=0;r<i.orderedModifiers.length;r++)if(!0!==i.reset){var o=i.orderedModifiers[r],a=o.fn,u=o.options,c=void 0===u?{}:u,h=o.name;"function"==typeof a&&(i=a({state:i,options:c,name:h,instance:l})||i)}else i.reset=!1,r=-1}}},update:Jo((function(){return new Promise((function(t){l.forceUpdate(),t(i)}))})),destroy:function(){c(),s=!0}};if(!na(t,e))return l;function u(){i.orderedModifiers.forEach((function(t){var e=t.name,n=t.options,r=void 0===n?{}:n,o=t.effect;if("function"==typeof o){var s=o({state:i,name:e,instance:l,options:r}),u=function(){};a.push(s||u)}}))}function c(){a.forEach((function(t){return t()})),a=[]}return l.setOptions(n).then((function(t){!s&&n.onFirstUpdate&&n.onFirstUpdate(t)})),l}}ra();var ia=[ho,Vo,lo,$i],oa=(ra({defaultModifiers:ia}),[ho,Vo,lo,$i,Wo,Ro,Zo,no,zo]),aa=ra({defaultModifiers:oa}),sa=n(26714);const la=cn({ariaLabel:String,ariaOrientation:{type:String,values:["horizontal","vertical","undefined"]},ariaControls:String}),ua=t=>(0,sa.A)(la,t),ca=["fixed","absolute"],ha=cn({boundariesPadding:{type:Number,default:0},fallbackPlacements:{type:sn(Array),default:void 0},gpuAcceleration:{type:Boolean,default:!0},offset:{type:Number,default:12},placement:{type:String,values:fi,default:"bottom"},popperOptions:{type:sn(Object),default:()=>({})},strategy:{type:String,values:ca,default:"absolute"}}),da=cn({...ha,id:String,style:{type:sn([String,Array,Object])},className:{type:sn([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:sn([String,Array,Object])},popperStyle:{type:sn([String,Array,Object])},referenceEl:{type:sn(Object)},triggerTargetEl:{type:sn(Object)},stopPopperMouseEvent:{type:Boolean,default:!0},virtualTriggering:Boolean,zIndex:Number,...ua(["ariaLabel"])}),pa={mouseenter:t=>t instanceof MouseEvent,mouseleave:t=>t instanceof MouseEvent,focus:()=>!0,blur:()=>!0,close:()=>!0},fa=cn({...Jr,...da,appendTo:{type:sn([String,Object])},content:{type:String,default:""},rawContent:{type:Boolean,default:!1},persistent:Boolean,visible:{type:sn(Boolean),default:null},transition:String,teleported:{type:Boolean,default:!0},disabled:Boolean,...ua(["ariaLabel"])}),ga=cn({virtualRef:{type:sn(Object)},virtualTriggering:Boolean,onMouseenter:{type:sn(Function)},onMouseleave:{type:sn(Function)},onClick:{type:sn(Function)},onKeydown:{type:sn(Function)},onFocus:{type:sn(Function)},onBlur:{type:sn(Function)},onContextmenu:{type:sn(Function)},id:String,open:Boolean}),va={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"},ma=cn({...ga,disabled:Boolean,trigger:{type:sn([String,Array]),default:"hover"},triggerKeys:{type:sn(Array),default:()=>[va.enter,va.space]}}),ya=un({type:sn(Boolean),default:null}),ba=un({type:sn(Function)}),_a=t=>{const e=`update:${t}`,n=`onUpdate:${t}`,i=[e],o={[t]:ya,[n]:ba},a=({indicator:i,toggleReason:o,shouldHideWhenRouteChanges:a,shouldProceed:s,onShow:l,onHide:u})=>{const c=(0,r.nI)(),{emit:h}=c,d=c.props,p=(0,r.EW)((()=>(0,Q.Tn)(d[n]))),f=(0,r.EW)((()=>null===d[t])),g=t=>{!0!==i.value&&(i.value=!0,o&&(o.value=t),(0,Q.Tn)(l)&&l(t))},v=t=>{!1!==i.value&&(i.value=!1,o&&(o.value=t),(0,Q.Tn)(u)&&u(t))},m=t=>{if(!0===d.disabled||(0,Q.Tn)(s)&&!s())return;const n=p.value&&Hn;n&&h(e,!0),!f.value&&n||g(t)},y=t=>{if(!0===d.disabled||!Hn)return;const n=p.value&&Hn;n&&h(e,!1),!f.value&&n||v(t)},b=t=>{wn(t)&&(d.disabled&&t?p.value&&h(e,!1):i.value!==t&&(t?g():v()))},_=()=>{i.value?y():m()};return(0,r.wB)((()=>d[t]),b),a&&void 0!==c.appContext.config.globalProperties.$route&&(0,r.wB)((()=>({...c.proxy.$route})),(()=>{a.value&&i.value&&y()})),(0,r.sV)((()=>{b(d[t])})),{hide:y,show:m,toggle:_,hasUpdateHandler:p}};return{useModelToggle:a,useModelToggleProps:o,useModelToggleEmits:i}},{useModelToggle:xa,useModelToggleProps:wa,useModelToggleEmits:Oa}=_a("modelValue"),Sa=cn({arrowOffset:{type:Number,default:5}}),{useModelToggleProps:Aa,useModelToggleEmits:ka,useModelToggle:Ca}=_a("visible"),Ma=cn({...Zr,...Aa,...fa,...ma,...Sa,showArrow:{type:Boolean,default:!0}}),Ta=[...ka,"before-show","before-hide","show","hide","open","close"],Pa=(t,e)=>(0,Q.cy)(t)?t.includes(e):t===e,Ia=(t,e,n)=>r=>{Pa((0,i.R1)(t),e)&&n(r)},$a=(t,e,{checkForDefaultPrevented:n=!0}={})=>{const r=r=>{const i=null==t?void 0:t(r);if(!1===n||!i)return null==e?void 0:e(r)};return r};n(57836),n(39109),n(34381),n(9878),n(46801),n(66462),n(28360),n(60726),n(82765),n(13312);function Ea(t){var e;const n=Un(t);return null!=(e=null==n?void 0:n.$el)?e:n}const Ra=Hn?window:void 0;Hn&&window.document,Hn&&window.navigator,Hn&&window.location;function Da(...t){let e,n,i,o;if(Zn(t[0])||Array.isArray(t[0])?([n,i,o]=t,e=Ra):[e,n,i,o]=t,!e)return Gn;Array.isArray(n)||(n=[n]),Array.isArray(i)||(i=[i]);const a=[],s=()=>{a.forEach((t=>t())),a.length=0},l=(t,e,n,r)=>(t.addEventListener(e,n,r),()=>t.removeEventListener(e,n,r)),u=(0,r.wB)((()=>[Ea(e),Un(o)]),(([t,e])=>{s(),t&&a.push(...n.flatMap((n=>i.map((r=>l(t,n,r,e))))))}),{immediate:!0,flush:"post"}),c=()=>{u(),s()};return qn(c),c}let La=!1;function Na(t,e,n={}){const{window:r=Ra,ignore:i=[],capture:o=!0,detectIframe:a=!1}=n;if(!r)return;Xn&&!La&&(La=!0,Array.from(r.document.body.children).forEach((t=>t.addEventListener("click",Gn))));let s=!0;const l=t=>i.some((e=>{if("string"===typeof e)return Array.from(r.document.querySelectorAll(e)).some((e=>e===t.target||t.composedPath().includes(e)));{const n=Ea(e);return n&&(t.target===n||t.composedPath().includes(n))}})),u=n=>{const r=Ea(t);r&&r!==n.target&&!n.composedPath().includes(r)&&(0===n.detail&&(s=!l(n)),s?e(n):s=!0)},c=[Da(r,"click",u,{passive:!0,capture:o}),Da(r,"pointerdown",(e=>{const n=Ea(t);n&&(s=!e.composedPath().includes(n)&&!l(e))}),{passive:!0}),a&&Da(r,"blur",(n=>{var i;const o=Ea(t);"IFRAME"!==(null==(i=r.document.activeElement)?void 0:i.tagName)||(null==o?void 0:o.contains(r.document.activeElement))||e(n)}))].filter(Boolean),h=()=>c.forEach((t=>t()));return h}Object.defineProperty,Object.defineProperties,Object.getOwnPropertyDescriptors,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;function za(t,e=!1){const n=(0,i.KR)(),r=()=>n.value=Boolean(t());return r(),Kn(r,e),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 Ba="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window?window:"undefined"!==typeof global?global:"undefined"!==typeof self?self:{},Fa="__vueuse_ssr_handlers__";Ba[Fa]=Ba[Fa]||{};Ba[Fa];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 Wa=Object.getOwnPropertySymbols,ja=Object.prototype.hasOwnProperty,Va=Object.prototype.propertyIsEnumerable,Qa=(t,e)=>{var n={};for(var r in t)ja.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&Wa)for(var r of Wa(t))e.indexOf(r)<0&&Va.call(t,r)&&(n[r]=t[r]);return n};function Ha(t,e,n={}){const i=n,{window:o=Ra}=i,a=Qa(i,["window"]);let s;const l=za((()=>o&&"ResizeObserver"in o)),u=()=>{s&&(s.disconnect(),s=void 0)},c=(0,r.wB)((()=>Ea(t)),(t=>{u(),l.value&&o&&t&&(s=new ResizeObserver(e),s.observe(t,a))}),{immediate:!0,flush:"post"}),h=()=>{u(),c()};return qn(h),{isSupported:l,stop:h}}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 Za;(function(t){t["UP"]="UP",t["RIGHT"]="RIGHT",t["DOWN"]="DOWN",t["LEFT"]="LEFT",t["NONE"]="NONE"})(Za||(Za={}));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 Ga=Object.defineProperty,Xa=Object.getOwnPropertySymbols,Ua=Object.prototype.hasOwnProperty,Ya=Object.prototype.propertyIsEnumerable,qa=(t,e,n)=>e in t?Ga(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Ka=(t,e)=>{for(var n in e||(e={}))Ua.call(e,n)&&qa(t,n,e[n]);if(Xa)for(var n of Xa(e))Ya.call(e,n)&&qa(t,n,e[n]);return t};const Ja={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]};Ka({linear:Yn},Ja);const ts=Symbol("elForwardRef"),es=t=>{const e=e=>{t.value=e};(0,r.Gt)(ts,{setForwardRef:e})},ns=t=>({mounted(e){t(e)},updated(e){t(e)},unmounted(){t(null)}}),rs="ElOnlyChild",is=(0,r.pM)({name:rs,setup(t,{slots:e,attrs:n}){var i;const o=(0,r.WQ)(ts),a=ns(null!=(i=null==o?void 0:o.setForwardRef)?i:Q.tE);return()=>{var t;const i=null==(t=e.default)?void 0:t.call(e,n);if(!i)return null;if(i.length>1)return Cn(rs,"requires exact only one valid child."),null;const o=os(i);return o?(0,r.bo)((0,r.E3)(o,n),[[a]]):(Cn(rs,"no valid child node found"),null)}}});function os(t){if(!t)return null;const e=t;for(const n of e){if((0,Q.Gv)(n))switch(n.type){case r.Mw:continue;case r.EY:case"svg":return as(n);case r.FK:return os(n.children);default:return n}return as(n)}return null}function as(t){const e=yn("only-child");return(0,r.bF)("span",{class:e.e("content")},[t])}const ss=(0,r.pM)({name:"ElPopperTrigger",inheritAttrs:!1}),ls=(0,r.pM)({...ss,props:ga,setup(t,{expose:e}){const n=t,{role:o,triggerRef:a}=(0,r.WQ)(Vr,void 0);es(a);const s=(0,r.EW)((()=>u.value?n.id:void 0)),l=(0,r.EW)((()=>{if(o&&"tooltip"===o.value)return n.open&&n.id?n.id:void 0})),u=(0,r.EW)((()=>{if(o&&"tooltip"!==o.value)return o.value})),c=(0,r.EW)((()=>u.value?`${n.open}`:void 0));let h;return(0,r.sV)((()=>{(0,r.wB)((()=>n.virtualRef),(t=>{t&&(a.value=Ea(t))}),{immediate:!0}),(0,r.wB)(a,((t,e)=>{null==h||h(),h=void 0,Sn(t)&&(["onMouseenter","onMouseleave","onClick","onKeydown","onFocus","onBlur","onContextmenu"].forEach((r=>{var i;const o=n[r];o&&(t.addEventListener(r.slice(2).toLowerCase(),o),null==(i=null==e?void 0:e.removeEventListener)||i.call(e,r.slice(2).toLowerCase(),o))})),h=(0,r.wB)([s,l,u,c],(e=>{["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach(((n,r)=>{_n(e[r])?t.removeAttribute(n):t.setAttribute(n,e[r])}))}),{immediate:!0})),Sn(e)&&["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach((t=>e.removeAttribute(t)))}),{immediate:!0})})),(0,r.xo)((()=>{null==h||h(),h=void 0})),e({triggerRef:a}),(t,e)=>t.virtualTriggering?(0,r.Q3)("v-if",!0):((0,r.uX)(),(0,r.Wv)((0,i.R1)(is),(0,r.v6)({key:0},t.$attrs,{"aria-controls":(0,i.R1)(s),"aria-describedby":(0,i.R1)(l),"aria-expanded":(0,i.R1)(c),"aria-haspopup":(0,i.R1)(u)}),{default:(0,r.k6)((()=>[(0,r.RG)(t.$slots,"default")])),_:3},16,["aria-controls","aria-describedby","aria-expanded","aria-haspopup"]))}});var us=dn(ls,[["__file","trigger.vue"]]);const cs=(0,r.pM)({name:"ElTooltipTrigger"}),hs=(0,r.pM)({...cs,props:ma,setup(t,{expose:e}){const n=t,o=yn("tooltip"),{controlled:a,id:s,open:l,onOpen:u,onClose:c,onToggle:h}=(0,r.WQ)(qr,void 0),d=(0,i.KR)(null),p=()=>{if((0,i.R1)(a)||n.disabled)return!0},f=(0,i.lW)(n,"trigger"),g=$a(p,Ia(f,"hover",u)),v=$a(p,Ia(f,"hover",c)),m=$a(p,Ia(f,"click",(t=>{0===t.button&&h(t)}))),y=$a(p,Ia(f,"focus",u)),b=$a(p,Ia(f,"focus",c)),_=$a(p,Ia(f,"contextmenu",(t=>{t.preventDefault(),h(t)}))),x=$a(p,(t=>{const{code:e}=t;n.triggerKeys.includes(e)&&(t.preventDefault(),h(t))}));return e({triggerRef:d}),(t,e)=>((0,r.uX)(),(0,r.Wv)((0,i.R1)(us),{id:(0,i.R1)(s),"virtual-ref":t.virtualRef,open:(0,i.R1)(l),"virtual-triggering":t.virtualTriggering,class:(0,Q.C4)((0,i.R1)(o).e("trigger")),onBlur:(0,i.R1)(b),onClick:(0,i.R1)(m),onContextmenu:(0,i.R1)(_),onFocus:(0,i.R1)(y),onMouseenter:(0,i.R1)(g),onMouseleave:(0,i.R1)(v),onKeydown:(0,i.R1)(x)},{default:(0,r.k6)((()=>[(0,r.RG)(t.$slots,"default")])),_:3},8,["id","virtual-ref","open","virtual-triggering","class","onBlur","onClick","onContextmenu","onFocus","onMouseenter","onMouseleave","onKeydown"]))}});var ds=dn(hs,[["__file","trigger.vue"]]);let ps;const fs=()=>{const t=mn(),e=er(),n=(0,r.EW)((()=>`${t.value}-popper-container-${e.prefix}`)),i=(0,r.EW)((()=>`#${n.value}`));return{id:n,selector:i}},gs=t=>{const e=document.createElement("div");return e.id=t,document.body.appendChild(e),e},vs=()=>{const{id:t,selector:e}=fs();return(0,r.KC)((()=>{Hn&&(ps||document.body.querySelector(e.value)||(ps=gs(t.value)))})),{id:t,selector:e}},ms=(t,e)=>{const n=(0,i.KR)(!1),r=(0,i.KR)(),o=()=>{e("focus")},a=t=>{var n;"pointer"!==(null==(n=t.detail)?void 0:n.focusReason)&&(r.value="first",e("blur"))},s=e=>{t.visible&&!n.value&&(e.target&&(r.value=e.target),n.value=!0)},l=e=>{t.trapping||("pointer"===e.detail.focusReason&&e.preventDefault(),n.value=!1)},u=()=>{n.value=!1,e("close")};return{focusStartRef:r,trapped:n,onFocusAfterReleased:a,onFocusAfterTrapped:o,onFocusInTrap:s,onFocusoutPrevented:l,onReleaseRequested:u}};function ys(t){return void 0===t}var bs=ys;const _s=(t,e=[])=>{const{placement:n,strategy:r,popperOptions:i}=t,o={placement:n,strategy:r,...i,modifiers:[...ws(t),...e]};return Os(o,null==i?void 0:i.modifiers),o},xs=t=>{if(Hn)return Ea(t)};function ws(t){const{offset:e,gpuAcceleration:n,fallbackPlacements:r}=t;return[{name:"offset",options:{offset:[0,null!=e?e: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 Os(t,e){e&&(t.modifiers=[...t.modifiers,...null!=e?e:[]])}const Ss=(t,e,n={})=>{const o={name:"updateState",enabled:!0,phase:"write",fn:({state:t})=>{const e=As(t);Object.assign(l.value,e)},requires:["computeStyles"]},a=(0,r.EW)((()=>{const{onFirstUpdate:t,placement:e,strategy:r,modifiers:a}=(0,i.R1)(n);return{onFirstUpdate:t,placement:e||"bottom",strategy:r||"absolute",modifiers:[...a||[],o,{name:"applyStyles",enabled:!1}]}})),s=(0,i.IJ)(),l=(0,i.KR)({styles:{popper:{position:(0,i.R1)(a).strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),u=()=>{s.value&&(s.value.destroy(),s.value=void 0)};return(0,r.wB)(a,(t=>{const e=(0,i.R1)(s);e&&e.setOptions(t)}),{deep:!0}),(0,r.wB)([t,e],(([t,e])=>{u(),t&&e&&(s.value=aa(t,e,(0,i.R1)(a)))})),(0,r.xo)((()=>{u()})),{state:(0,r.EW)((()=>{var t;return{...(null==(t=(0,i.R1)(s))?void 0:t.state)||{}}})),styles:(0,r.EW)((()=>(0,i.R1)(l).styles)),attributes:(0,r.EW)((()=>(0,i.R1)(l).attributes)),update:()=>{var t;return null==(t=(0,i.R1)(s))?void 0:t.update()},forceUpdate:()=>{var t;return null==(t=(0,i.R1)(s))?void 0:t.forceUpdate()},instanceRef:(0,r.EW)((()=>(0,i.R1)(s)))}};function As(t){const e=Object.keys(t.elements),n=on(e.map((e=>[e,t.styles[e]||{}]))),r=on(e.map((e=>[e,t.attributes[e]])));return{styles:n,attributes:r}}const ks=0,Cs=t=>{const{popperInstanceRef:e,contentRef:n,triggerRef:o,role:a}=(0,r.WQ)(Vr,void 0),s=(0,i.KR)(),l=(0,i.KR)(),u=(0,r.EW)((()=>({name:"eventListeners",enabled:!!t.visible}))),c=(0,r.EW)((()=>{var t;const e=(0,i.R1)(s),n=null!=(t=(0,i.R1)(l))?t:ks;return{name:"arrow",enabled:!bs(e),options:{element:e,padding:n}}})),h=(0,r.EW)((()=>({onFirstUpdate:()=>{v()},..._s(t,[(0,i.R1)(c),(0,i.R1)(u)])}))),d=(0,r.EW)((()=>xs(t.referenceEl)||(0,i.R1)(o))),{attributes:p,state:f,styles:g,update:v,forceUpdate:m,instanceRef:y}=Ss(d,n,h);return(0,r.wB)(y,(t=>e.value=t)),(0,r.sV)((()=>{(0,r.wB)((()=>{var t;return null==(t=(0,i.R1)(d))?void 0:t.getBoundingClientRect()}),(()=>{v()}))})),{attributes:p,arrowRef:s,contentRef:n,instanceRef:y,state:f,styles:g,role:a,forceUpdate:m,update:v}},Ms={current:0},Ts=(0,i.KR)(0),Ps=2e3,Is=Symbol("elZIndexContextKey"),$s=Symbol("zIndexContextKey"),Es=t=>{const e=(0,r.nI)()?(0,r.WQ)(Is,Ms):Ms,n=t||((0,r.nI)()?(0,r.WQ)($s,void 0):void 0),o=(0,r.EW)((()=>{const t=(0,i.R1)(n);return On(t)?t:Ps})),a=(0,r.EW)((()=>o.value+Ts.value)),s=()=>(e.current++,Ts.value=e.current,a.value);return Hn||(0,r.WQ)(Is)||Cn("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:a,nextZIndex:s}},Rs=(t,{attributes:e,styles:n,role:o})=>{const{nextZIndex:a}=Es(),s=yn("popper"),l=(0,r.EW)((()=>(0,i.R1)(e).popper)),u=(0,i.KR)(On(t.zIndex)?t.zIndex:a()),c=(0,r.EW)((()=>[s.b(),s.is("pure",t.pure),s.is(t.effect),t.popperClass])),h=(0,r.EW)((()=>[{zIndex:(0,i.R1)(u)},(0,i.R1)(n).popper,t.popperStyle||{}])),d=(0,r.EW)((()=>"dialog"===o.value?"false":void 0)),p=(0,r.EW)((()=>(0,i.R1)(n).arrow||{})),f=()=>{u.value=On(t.zIndex)?t.zIndex:a()};return{ariaModal:d,arrowStyle:p,contentAttrs:l,contentClass:c,contentStyle:h,contentZIndex:u,updateZIndex:f}},Ds="focus-trap.focus-after-trapped",Ls="focus-trap.focus-after-released",Ns="focus-trap.focusout-prevented",zs={cancelable:!0,bubbles:!1},Bs={cancelable:!0,bubbles:!1},Fs="focusAfterTrapped",Ws="focusAfterReleased",js=Symbol("elFocusTrap"),Vs=(0,i.KR)(),Qs=(0,i.KR)(0),Hs=(0,i.KR)(0);let Zs=0;const Gs=t=>{const e=[],n=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode:t=>{const e="INPUT"===t.tagName&&"hidden"===t.type;return t.disabled||t.hidden||e?NodeFilter.FILTER_SKIP:t.tabIndex>=0||t===document.activeElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});while(n.nextNode())e.push(n.currentNode);return e},Xs=(t,e)=>{for(const n of t)if(!Us(n,e))return n},Us=(t,e)=>{if("hidden"===getComputedStyle(t).visibility)return!0;while(t){if(e&&t===e)return!1;if("none"===getComputedStyle(t).display)return!0;t=t.parentElement}return!1},Ys=t=>{const e=Gs(t),n=Xs(e,t),r=Xs(e.reverse(),t);return[n,r]},qs=t=>t instanceof HTMLInputElement&&"select"in t,Ks=(t,e)=>{if(t&&t.focus){const n=document.activeElement;t.focus({preventScroll:!0}),Hs.value=window.performance.now(),t!==n&&qs(t)&&e&&t.select()}};function Js(t,e){const n=[...t],r=t.indexOf(e);return-1!==r&&n.splice(r,1),n}const tl=()=>{let t=[];const e=e=>{const n=t[0];n&&e!==n&&n.pause(),t=Js(t,e),t.unshift(e)},n=e=>{var n,r;t=Js(t,e),null==(r=null==(n=t[0])?void 0:n.resume)||r.call(n)};return{push:e,remove:n}},el=(t,e=!1)=>{const n=document.activeElement;for(const r of t)if(Ks(r,e),document.activeElement!==n)return},nl=tl(),rl=()=>Qs.value>Hs.value,il=()=>{Vs.value="pointer",Qs.value=window.performance.now()},ol=()=>{Vs.value="keyboard",Qs.value=window.performance.now()},al=()=>((0,r.sV)((()=>{0===Zs&&(document.addEventListener("mousedown",il),document.addEventListener("touchstart",il),document.addEventListener("keydown",ol)),Zs++})),(0,r.xo)((()=>{Zs--,Zs<=0&&(document.removeEventListener("mousedown",il),document.removeEventListener("touchstart",il),document.removeEventListener("keydown",ol))})),{focusReason:Vs,lastUserFocusTimestamp:Qs,lastAutomatedFocusTimestamp:Hs}),sl=t=>new CustomEvent(Ns,{...Bs,detail:t});let ll=[];const ul=t=>{const e=t;e.key===va.esc&&ll.forEach((t=>t(e)))},cl=t=>{(0,r.sV)((()=>{0===ll.length&&document.addEventListener("keydown",ul),Hn&&ll.push(t)})),(0,r.xo)((()=>{ll=ll.filter((e=>e!==t)),0===ll.length&&Hn&&document.removeEventListener("keydown",ul)}))},hl=(0,r.pM)({name:"ElFocusTrap",inheritAttrs:!1,props:{loop:Boolean,trapped:Boolean,focusTrapEl:Object,focusStartEl:{type:[Object,String],default:"first"}},emits:[Fs,Ws,"focusin","focusout","focusout-prevented","release-requested"],setup(t,{emit:e}){const n=(0,i.KR)();let o,a;const{focusReason:s}=al();cl((n=>{t.trapped&&!l.paused&&e("release-requested",n)}));const l={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},u=n=>{if(!t.loop&&!t.trapped)return;if(l.paused)return;const{key:r,altKey:i,ctrlKey:o,metaKey:a,currentTarget:u,shiftKey:c}=n,{loop:h}=t,d=r===va.tab&&!i&&!o&&!a,p=document.activeElement;if(d&&p){const t=u,[r,i]=Ys(t),o=r&&i;if(o)if(c||p!==i){if(c&&[r,t].includes(p)){const t=sl({focusReason:s.value});e("focusout-prevented",t),t.defaultPrevented||(n.preventDefault(),h&&Ks(i,!0))}}else{const t=sl({focusReason:s.value});e("focusout-prevented",t),t.defaultPrevented||(n.preventDefault(),h&&Ks(r,!0))}else if(p===t){const t=sl({focusReason:s.value});e("focusout-prevented",t),t.defaultPrevented||n.preventDefault()}}};(0,r.Gt)(js,{focusTrapRef:n,onKeydown:u}),(0,r.wB)((()=>t.focusTrapEl),(t=>{t&&(n.value=t)}),{immediate:!0}),(0,r.wB)([n],(([t],[e])=>{t&&(t.addEventListener("keydown",u),t.addEventListener("focusin",d),t.addEventListener("focusout",p)),e&&(e.removeEventListener("keydown",u),e.removeEventListener("focusin",d),e.removeEventListener("focusout",p))}));const c=t=>{e(Fs,t)},h=t=>e(Ws,t),d=r=>{const s=(0,i.R1)(n);if(!s)return;const u=r.target,c=r.relatedTarget,h=u&&s.contains(u);if(!t.trapped){const t=c&&s.contains(c);t||(o=c)}h&&e("focusin",r),l.paused||t.trapped&&(h?a=u:Ks(a,!0))},p=r=>{const o=(0,i.R1)(n);if(!l.paused&&o)if(t.trapped){const n=r.relatedTarget;_n(n)||o.contains(n)||setTimeout((()=>{if(!l.paused&&t.trapped){const t=sl({focusReason:s.value});e("focusout-prevented",t),t.defaultPrevented||Ks(a,!0)}}),0)}else{const t=r.target,n=t&&o.contains(t);n||e("focusout",r)}};async function f(){await(0,r.dY)();const e=(0,i.R1)(n);if(e){nl.push(l);const n=e.contains(document.activeElement)?o:document.activeElement;o=n;const i=e.contains(n);if(!i){const i=new Event(Ds,zs);e.addEventListener(Ds,c),e.dispatchEvent(i),i.defaultPrevented||(0,r.dY)((()=>{let r=t.focusStartEl;(0,Q.Kg)(r)||(Ks(r),document.activeElement!==r&&(r="first")),"first"===r&&el(Gs(e),!0),document.activeElement!==n&&"container"!==r||Ks(e)}))}}}function g(){const t=(0,i.R1)(n);if(t){t.removeEventListener(Ds,c);const e=new CustomEvent(Ls,{...zs,detail:{focusReason:s.value}});t.addEventListener(Ls,h),t.dispatchEvent(e),e.defaultPrevented||"keyboard"!=s.value&&rl()&&!t.contains(document.activeElement)||Ks(null!=o?o:document.body),t.removeEventListener(Ls,h),nl.remove(l)}}return(0,r.sV)((()=>{t.trapped&&f(),(0,r.wB)((()=>t.trapped),(t=>{t?f():g()}))})),(0,r.xo)((()=>{t.trapped&&g()})),{onKeydown:u}}});function dl(t,e,n,i,o,a){return(0,r.RG)(t.$slots,"default",{handleKeydown:t.onKeydown})}var pl=dn(hl,[["render",dl],["__file","focus-trap.vue"]]);const fl=(0,r.pM)({name:"ElPopperContent"}),gl=(0,r.pM)({...fl,props:da,emits:pa,setup(t,{expose:e,emit:n}){const o=t,{focusStartRef:a,trapped:s,onFocusAfterReleased:l,onFocusAfterTrapped:u,onFocusInTrap:c,onFocusoutPrevented:h,onReleaseRequested:d}=ms(o,n),{attributes:p,arrowRef:f,contentRef:g,styles:v,instanceRef:m,role:y,update:b}=Cs(o),{ariaModal:_,arrowStyle:x,contentAttrs:w,contentClass:O,contentStyle:S,updateZIndex:A}=Rs(o,{styles:v,attributes:p,role:y}),k=(0,r.WQ)(jn,void 0),C=(0,i.KR)();let M;(0,r.Gt)(Qr,{arrowStyle:x,arrowRef:f,arrowOffset:C}),k&&(0,r.Gt)(jn,{...k,addInputId:Q.tE,removeInputId:Q.tE});const T=(t=!0)=>{b(),t&&A()},P=()=>{T(!1),o.visible&&o.focusOnShow?s.value=!0:!1===o.visible&&(s.value=!1)};return(0,r.sV)((()=>{(0,r.wB)((()=>o.triggerTargetEl),((t,e)=>{null==M||M(),M=void 0;const n=(0,i.R1)(t||g.value),a=(0,i.R1)(e||g.value);Sn(n)&&(M=(0,r.wB)([y,()=>o.ariaLabel,_,()=>o.id],(t=>{["role","aria-label","aria-modal","id"].forEach(((e,r)=>{_n(t[r])?n.removeAttribute(e):n.setAttribute(e,t[r])}))}),{immediate:!0})),a!==n&&Sn(a)&&["role","aria-label","aria-modal","id"].forEach((t=>{a.removeAttribute(t)}))}),{immediate:!0}),(0,r.wB)((()=>o.visible),P,{immediate:!0})})),(0,r.xo)((()=>{null==M||M(),M=void 0})),e({popperContentRef:g,popperInstanceRef:m,updatePopper:T,contentStyle:S}),(t,e)=>((0,r.uX)(),(0,r.CE)("div",(0,r.v6)({ref_key:"contentRef",ref:g},(0,i.R1)(w),{style:(0,i.R1)(S),class:(0,i.R1)(O),tabindex:"-1",onMouseenter:e[0]||(e[0]=e=>t.$emit("mouseenter",e)),onMouseleave:e[1]||(e[1]=e=>t.$emit("mouseleave",e))}),[(0,r.bF)((0,i.R1)(pl),{trapped:(0,i.R1)(s),"trap-on-focus-in":!0,"focus-trap-el":(0,i.R1)(g),"focus-start-el":(0,i.R1)(a),onFocusAfterTrapped:(0,i.R1)(u),onFocusAfterReleased:(0,i.R1)(l),onFocusin:(0,i.R1)(c),onFocusoutPrevented:(0,i.R1)(h),onReleaseRequested:(0,i.R1)(d)},{default:(0,r.k6)((()=>[(0,r.RG)(t.$slots,"default")])),_:3},8,["trapped","focus-trap-el","focus-start-el","onFocusAfterTrapped","onFocusAfterReleased","onFocusin","onFocusoutPrevented","onReleaseRequested"])],16))}});var vl=dn(gl,[["__file","content.vue"]]);const ml=(0,r.pM)({name:"ElTooltipContent",inheritAttrs:!1}),yl=(0,r.pM)({...ml,props:fa,setup(t,{expose:e}){const n=t,{selector:o}=fs(),a=yn("tooltip"),s=(0,i.KR)(null),l=(0,i.KR)(!1),{controlled:u,id:c,open:h,trigger:d,onClose:p,onOpen:f,onShow:g,onHide:v,onBeforeShow:m,onBeforeHide:y}=(0,r.WQ)(qr,void 0),b=(0,r.EW)((()=>n.transition||`${a.namespace.value}-fade-in-linear`)),_=(0,r.EW)((()=>n.persistent));(0,r.xo)((()=>{l.value=!0}));const x=(0,r.EW)((()=>!!(0,i.R1)(_)||(0,i.R1)(h))),w=(0,r.EW)((()=>!n.disabled&&(0,i.R1)(h))),O=(0,r.EW)((()=>n.appendTo||o.value)),S=(0,r.EW)((()=>{var t;return null!=(t=n.style)?t:{}})),A=(0,r.EW)((()=>!(0,i.R1)(h))),k=()=>{v()},C=()=>{if((0,i.R1)(u))return!0},M=$a(C,(()=>{n.enterable&&"hover"===(0,i.R1)(d)&&f()})),T=$a(C,(()=>{"hover"===(0,i.R1)(d)&&p()})),P=()=>{var t,e;null==(e=null==(t=s.value)?void 0:t.updatePopper)||e.call(t),null==m||m()},I=()=>{null==y||y()},$=()=>{g(),R=Na((0,r.EW)((()=>{var t;return null==(t=s.value)?void 0:t.popperContentRef})),(()=>{if((0,i.R1)(u))return;const t=(0,i.R1)(d);"hover"!==t&&p()}))},E=()=>{n.virtualTriggering||p()};let R;return(0,r.wB)((()=>(0,i.R1)(h)),(t=>{t||null==R||R()}),{flush:"post"}),(0,r.wB)((()=>n.content),(()=>{var t,e;null==(e=null==(t=s.value)?void 0:t.updatePopper)||e.call(t)})),e({contentRef:s}),(t,e)=>((0,r.uX)(),(0,r.Wv)(r.Im,{disabled:!t.teleported,to:(0,i.R1)(O)},[(0,r.bF)(N.eB,{name:(0,i.R1)(b),onAfterLeave:k,onBeforeEnter:P,onAfterEnter:$,onBeforeLeave:I},{default:(0,r.k6)((()=>[(0,i.R1)(x)?(0,r.bo)(((0,r.uX)(),(0,r.Wv)((0,i.R1)(vl),(0,r.v6)({key:0,id:(0,i.R1)(c),ref_key:"contentRef",ref:s},t.$attrs,{"aria-label":t.ariaLabel,"aria-hidden":(0,i.R1)(A),"boundaries-padding":t.boundariesPadding,"fallback-placements":t.fallbackPlacements,"gpu-acceleration":t.gpuAcceleration,offset:t.offset,placement:t.placement,"popper-options":t.popperOptions,strategy:t.strategy,effect:t.effect,enterable:t.enterable,pure:t.pure,"popper-class":t.popperClass,"popper-style":[t.popperStyle,(0,i.R1)(S)],"reference-el":t.referenceEl,"trigger-target-el":t.triggerTargetEl,visible:(0,i.R1)(w),"z-index":t.zIndex,onMouseenter:(0,i.R1)(M),onMouseleave:(0,i.R1)(T),onBlur:E,onClose:(0,i.R1)(p)}),{default:(0,r.k6)((()=>[l.value?(0,r.Q3)("v-if",!0):(0,r.RG)(t.$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"])),[[N.aG,(0,i.R1)(w)]]):(0,r.Q3)("v-if",!0)])),_:3},8,["name"])],8,["disabled","to"]))}});var bl=dn(yl,[["__file","content.vue"]]);const _l=(0,r.pM)({name:"ElPopperArrow",inheritAttrs:!1}),xl=(0,r.pM)({..._l,props:Sa,setup(t,{expose:e}){const n=t,o=yn("popper"),{arrowOffset:a,arrowRef:s,arrowStyle:l}=(0,r.WQ)(Qr,void 0);return(0,r.wB)((()=>n.arrowOffset),(t=>{a.value=t})),(0,r.xo)((()=>{s.value=void 0})),e({arrowRef:s}),(t,e)=>((0,r.uX)(),(0,r.CE)("span",{ref_key:"arrowRef",ref:s,class:(0,Q.C4)((0,i.R1)(o).e("arrow")),style:(0,Q.Tr)((0,i.R1)(l)),"data-popper-arrow":""},null,6))}});var wl=dn(xl,[["__file","arrow.vue"]]);const Ol=["innerHTML"],Sl={key:1},Al=(0,r.pM)({name:"ElTooltip"}),kl=(0,r.pM)({...Al,props:Ma,emits:Ta,setup(t,{expose:e,emit:n}){const o=t;vs();const a=nr(),s=(0,i.KR)(),l=(0,i.KR)(),u=()=>{var t;const e=(0,i.R1)(s);e&&(null==(t=e.popperInstanceRef)||t.update())},c=(0,i.KR)(!1),h=(0,i.KR)(),{show:d,hide:p,hasUpdateHandler:f}=Ca({indicator:c,toggleReason:h}),{onOpen:g,onClose:v}=ti({showAfter:(0,i.lW)(o,"showAfter"),hideAfter:(0,i.lW)(o,"hideAfter"),autoClose:(0,i.lW)(o,"autoClose"),open:d,close:p}),m=(0,r.EW)((()=>wn(o.visible)&&!f.value));(0,r.Gt)(qr,{controlled:m,id:a,open:(0,i.tB)(c),trigger:(0,i.lW)(o,"trigger"),onOpen:t=>{g(t)},onClose:t=>{v(t)},onToggle:t=>{(0,i.R1)(c)?v(t):g(t)},onShow:()=>{n("show",h.value)},onHide:()=>{n("hide",h.value)},onBeforeShow:()=>{n("before-show",h.value)},onBeforeHide:()=>{n("before-hide",h.value)},updatePopper:u}),(0,r.wB)((()=>o.disabled),(t=>{t&&c.value&&(c.value=!1)}));const y=t=>{var e,n;const r=null==(n=null==(e=l.value)?void 0:e.contentRef)?void 0:n.popperContentRef,i=(null==t?void 0:t.relatedTarget)||document.activeElement;return r&&r.contains(i)};return(0,r.Y4)((()=>c.value&&p())),e({popperRef:s,contentRef:l,isFocusInsideContent:y,updatePopper:u,onOpen:g,onClose:v,hide:p}),(t,e)=>((0,r.uX)(),(0,r.Wv)((0,i.R1)(Yr),{ref_key:"popperRef",ref:s,role:t.role},{default:(0,r.k6)((()=>[(0,r.bF)(ds,{disabled:t.disabled,trigger:t.trigger,"trigger-keys":t.triggerKeys,"virtual-ref":t.virtualRef,"virtual-triggering":t.virtualTriggering},{default:(0,r.k6)((()=>[t.$slots.default?(0,r.RG)(t.$slots,"default",{key:0}):(0,r.Q3)("v-if",!0)])),_:3},8,["disabled","trigger","trigger-keys","virtual-ref","virtual-triggering"]),(0,r.bF)(bl,{ref_key:"contentRef",ref:l,"aria-label":t.ariaLabel,"boundaries-padding":t.boundariesPadding,content:t.content,disabled:t.disabled,effect:t.effect,enterable:t.enterable,"fallback-placements":t.fallbackPlacements,"hide-after":t.hideAfter,"gpu-acceleration":t.gpuAcceleration,offset:t.offset,persistent:t.persistent,"popper-class":t.popperClass,"popper-style":t.popperStyle,placement:t.placement,"popper-options":t.popperOptions,pure:t.pure,"raw-content":t.rawContent,"reference-el":t.referenceEl,"trigger-target-el":t.triggerTargetEl,"show-after":t.showAfter,strategy:t.strategy,teleported:t.teleported,transition:t.transition,"virtual-triggering":t.virtualTriggering,"z-index":t.zIndex,"append-to":t.appendTo},{default:(0,r.k6)((()=>[(0,r.RG)(t.$slots,"content",{},(()=>[t.rawContent?((0,r.uX)(),(0,r.CE)("span",{key:0,innerHTML:t.content},null,8,Ol)):((0,r.uX)(),(0,r.CE)("span",Sl,(0,Q.v_)(t.content),1))])),t.showArrow?((0,r.uX)(),(0,r.Wv)((0,i.R1)(wl),{key:0,"arrow-offset":t.arrowOffset},null,8,["arrow-offset"])):(0,r.Q3)("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 Cl=dn(kl,[["__file","tooltip.vue"]]);const Ml=En(Cl),Tl=()=>Hn&&/firefox/i.test(window.navigator.userAgent);let Pl;const Il=`\n height:0 !important;\n visibility:hidden !important;\n ${Tl()?"":"overflow:hidden !important;"}\n position:absolute !important;\n z-index:-1000 !important;\n top:0 !important;\n right:0 !important;\n`,$l=["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 El(t){const e=window.getComputedStyle(t),n=e.getPropertyValue("box-sizing"),r=Number.parseFloat(e.getPropertyValue("padding-bottom"))+Number.parseFloat(e.getPropertyValue("padding-top")),i=Number.parseFloat(e.getPropertyValue("border-bottom-width"))+Number.parseFloat(e.getPropertyValue("border-top-width")),o=$l.map((t=>`${t}:${e.getPropertyValue(t)}`)).join(";");return{contextStyle:o,paddingSize:r,borderSize:i,boxSizing:n}}function Rl(t,e=1,n){var r;Pl||(Pl=document.createElement("textarea"),document.body.appendChild(Pl));const{paddingSize:i,borderSize:o,boxSizing:a,contextStyle:s}=El(t);Pl.setAttribute("style",`${s};${Il}`),Pl.value=t.value||t.placeholder||"";let l=Pl.scrollHeight;const u={};"border-box"===a?l+=o:"content-box"===a&&(l-=i),Pl.value="";const c=Pl.scrollHeight-i;if(On(e)){let t=c*e;"border-box"===a&&(t=t+i+o),l=Math.max(t,l),u.minHeight=`${t}px`}if(On(n)){let t=c*n;"border-box"===a&&(t=t+i+o),l=Math.min(t,l)}return u.height=`${l}px`,null==(r=Pl.parentNode)||r.removeChild(Pl),Pl=void 0,u}const Dl=t=>t,Ll="update:modelValue",Nl="change",zl=cn({id:{type:String,default:void 0},size:sr,disabled:Boolean,modelValue:{type:sn([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:sn([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:Cr},prefixIcon:{type:Cr},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:sn([Object,Array,String]),default:()=>Dl({})},autofocus:{type:Boolean,default:!1},...ua(["ariaLabel"])}),Bl={[Ll]:t=>(0,Q.Kg)(t),input:t=>(0,Q.Kg)(t),change:t=>(0,Q.Kg)(t),focus:t=>t instanceof FocusEvent,blur:t=>t instanceof FocusEvent,clear:()=>!0,mouseleave:t=>t instanceof MouseEvent,mouseenter:t=>t instanceof MouseEvent,keydown:t=>t instanceof Event,compositionstart:t=>t instanceof CompositionEvent,compositionupdate:t=>t instanceof CompositionEvent,compositionend:t=>t instanceof CompositionEvent},Fl=["class","style"],Wl=/^on[A-Z]/,jl=(t={})=>{const{excludeListeners:e=!1,excludeKeys:n}=t,i=(0,r.EW)((()=>((null==n?void 0:n.value)||[]).concat(Fl))),o=(0,r.nI)();return o?(0,r.EW)((()=>{var t;return on(Object.entries(null==(t=o.proxy)?void 0:t.$attrs).filter((([t])=>!i.value.includes(t)&&!(e&&Wl.test(t)))))})):(Cn("use-attrs","getCurrentInstance() returned null. useAttrs() must be called at the top of a setup function"),(0,r.EW)((()=>({}))))};function Vl(t,{afterFocus:e,beforeBlur:n,afterBlur:o}={}){const a=(0,r.nI)(),{emit:s}=a,l=(0,i.IJ)(),u=(0,i.KR)(!1),c=t=>{u.value||(u.value=!0,s("focus",t),null==e||e())},h=t=>{var e;const r=!!(0,Q.Tn)(n)&&n(t);r||t.relatedTarget&&(null==(e=l.value)?void 0:e.contains(t.relatedTarget))||(u.value=!1,s("blur",t),null==o||o())},d=()=>{var e;null==(e=t.value)||e.focus()};return(0,r.wB)(l,(t=>{t&&t.setAttribute("tabindex","-1")})),Da(l,"click",d),{wrapperRef:l,isFocused:u,handleFocus:c,handleBlur:h}}function Ql(t){const e=(0,i.KR)();function n(){if(void 0==t.value)return;const{selectionStart:n,selectionEnd:r,value:i}=t.value;if(null==n||null==r)return;const o=i.slice(0,Math.max(0,n)),a=i.slice(Math.max(0,r));e.value={selectionStart:n,selectionEnd:r,value:i,beforeTxt:o,afterTxt:a}}function r(){if(void 0==t.value||void 0==e.value)return;const{value:n}=t.value,{beforeTxt:r,afterTxt:i,selectionStart:o}=e.value;if(void 0==r||void 0==i||void 0==o)return;let a=n.length;if(n.endsWith(i))a=n.length-i.length;else if(n.startsWith(r))a=r.length;else{const t=r[o-1],e=n.indexOf(t,o-1);-1!==e&&(a=e+1)}t.value.setSelectionRange(a,a)}return[n,r]}const Hl=t=>/([\uAC00-\uD7AF\u3130-\u318F])+/gi.test(t),Zl=["role"],Gl=["id","minlength","maxlength","type","disabled","readonly","autocomplete","tabindex","aria-label","placeholder","form","autofocus"],Xl=["id","minlength","maxlength","tabindex","disabled","readonly","autocomplete","aria-label","placeholder","form","autofocus"],Ul=(0,r.pM)({name:"ElInput",inheritAttrs:!1}),Yl=(0,r.pM)({...Ul,props:zl,emits:Bl,setup(t,{expose:e,emit:n}){const o=t,a=(0,r.OA)(),s=(0,r.Ht)(),l=(0,r.EW)((()=>{const t={};return"combobox"===o.containerRole&&(t["aria-haspopup"]=a["aria-haspopup"],t["aria-owns"]=a["aria-owns"],t["aria-expanded"]=a["aria-expanded"]),t})),u=(0,r.EW)((()=>["textarea"===o.type?y.b():m.b(),m.m(g.value),m.is("disabled",v.value),m.is("exceed",V.value),{[m.b("group")]:s.prepend||s.append,[m.m("prefix")]:s.prefix||o.prefixIcon,[m.m("suffix")]:s.suffix||o.suffixIcon||o.clearable||o.showPassword,[m.bm("suffix","password-clear")]:B.value&&F.value,[m.b("hidden")]:"hidden"===o.type},a.class])),c=(0,r.EW)((()=>[m.e("wrapper"),m.is("focus",M.value)])),h=jl({excludeKeys:(0,r.EW)((()=>Object.keys(l.value)))}),{form:d,formItem:p}=rr(),{inputId:f}=ir(o,{formItemContext:p}),g=cr(),v=hr(),m=yn("input"),y=yn("textarea"),b=(0,i.IJ)(),_=(0,i.IJ)(),x=(0,i.KR)(!1),w=(0,i.KR)(!1),O=(0,i.KR)(!1),S=(0,i.KR)(),A=(0,i.IJ)(o.inputStyle),k=(0,r.EW)((()=>b.value||_.value)),{wrapperRef:C,isFocused:M,handleFocus:T,handleBlur:P}=Vl(k,{afterBlur(){var t;o.validateEvent&&(null==(t=null==p?void 0:p.validate)||t.call(p,"blur").catch((t=>Cn(t))))}}),I=(0,r.EW)((()=>{var t;return null!=(t=null==d?void 0:d.statusIcon)&&t})),$=(0,r.EW)((()=>(null==p?void 0:p.validateState)||"")),E=(0,r.EW)((()=>$.value&&Mr[$.value])),R=(0,r.EW)((()=>O.value?kr:wr)),D=(0,r.EW)((()=>[a.style])),L=(0,r.EW)((()=>[o.inputStyle,A.value,{resize:o.resize}])),z=(0,r.EW)((()=>_n(o.modelValue)?"":String(o.modelValue))),B=(0,r.EW)((()=>o.clearable&&!v.value&&!o.readonly&&!!z.value&&(M.value||x.value))),F=(0,r.EW)((()=>o.showPassword&&!v.value&&!o.readonly&&!!z.value&&(!!z.value||M.value))),W=(0,r.EW)((()=>o.showWordLimit&&!!o.maxlength&&("text"===o.type||"textarea"===o.type)&&!v.value&&!o.readonly&&!o.showPassword)),j=(0,r.EW)((()=>z.value.length)),V=(0,r.EW)((()=>!!W.value&&j.value>Number(o.maxlength))),H=(0,r.EW)((()=>!!s.suffix||!!o.suffixIcon||B.value||o.showPassword||W.value||!!$.value&&I.value)),[Z,G]=Ql(b);Ha(_,(t=>{if(Y(),!W.value||"both"!==o.resize)return;const e=t[0],{width:n}=e.contentRect;S.value={right:`calc(100% - ${n+15+6}px)`}}));const X=()=>{const{type:t,autosize:e}=o;if(Hn&&"textarea"===t&&_.value)if(e){const t=(0,Q.Gv)(e)?e.minRows:void 0,n=(0,Q.Gv)(e)?e.maxRows:void 0,i=Rl(_.value,t,n);A.value={overflowY:"hidden",...i},(0,r.dY)((()=>{_.value.offsetHeight,A.value=i}))}else A.value={minHeight:Rl(_.value).minHeight}},U=t=>{let e=!1;return()=>{var n;if(e||!o.autosize)return;const r=null===(null==(n=_.value)?void 0:n.offsetParent);r||(t(),e=!0)}},Y=U(X),q=()=>{const t=k.value,e=o.formatter?o.formatter(z.value):z.value;t&&t.value!==e&&(t.value=e)},K=async t=>{Z();let{value:e}=t.target;o.formatter&&(e=o.parser?o.parser(e):e),w.value||(e!==z.value?(n(Ll,e),n("input",e),await(0,r.dY)(),q(),G()):q())},J=t=>{n("change",t.target.value)},tt=t=>{n("compositionstart",t),w.value=!0},et=t=>{var e;n("compositionupdate",t);const r=null==(e=t.target)?void 0:e.value,i=r[r.length-1]||"";w.value=!Hl(i)},nt=t=>{n("compositionend",t),w.value&&(w.value=!1,K(t))},rt=()=>{O.value=!O.value,it()},it=async()=>{var t;await(0,r.dY)(),null==(t=k.value)||t.focus()},ot=()=>{var t;return null==(t=k.value)?void 0:t.blur()},at=t=>{x.value=!1,n("mouseleave",t)},st=t=>{x.value=!0,n("mouseenter",t)},lt=t=>{n("keydown",t)},ut=()=>{var t;null==(t=k.value)||t.select()},ct=()=>{n(Ll,""),n("change",""),n("clear"),n("input","")};return(0,r.wB)((()=>o.modelValue),(()=>{var t;(0,r.dY)((()=>X())),o.validateEvent&&(null==(t=null==p?void 0:p.validate)||t.call(p,"change").catch((t=>Cn(t))))})),(0,r.wB)(z,(()=>q())),(0,r.wB)((()=>o.type),(async()=>{await(0,r.dY)(),q(),X()})),(0,r.sV)((()=>{!o.formatter&&o.parser&&Cn("ElInput","If you set the parser, you also need to set the formatter."),q(),(0,r.dY)(X)})),Nn({from:"label",replacement:"aria-label",version:"2.8.0",scope:"el-input",ref:"https://element-plus.org/en-US/component/input.html"},(0,r.EW)((()=>!!o.label))),e({input:b,textarea:_,ref:k,textareaStyle:L,autosize:(0,i.lW)(o,"autosize"),focus:it,blur:ot,select:ut,clear:ct,resizeTextarea:X}),(t,e)=>((0,r.uX)(),(0,r.CE)("div",(0,r.v6)((0,i.R1)(l),{class:[(0,i.R1)(u),{[(0,i.R1)(m).bm("group","append")]:t.$slots.append,[(0,i.R1)(m).bm("group","prepend")]:t.$slots.prepend}],style:(0,i.R1)(D),role:t.containerRole,onMouseenter:st,onMouseleave:at}),[(0,r.Q3)(" input "),"textarea"!==t.type?((0,r.uX)(),(0,r.CE)(r.FK,{key:0},[(0,r.Q3)(" prepend slot "),t.$slots.prepend?((0,r.uX)(),(0,r.CE)("div",{key:0,class:(0,Q.C4)((0,i.R1)(m).be("group","prepend"))},[(0,r.RG)(t.$slots,"prepend")],2)):(0,r.Q3)("v-if",!0),(0,r.Lk)("div",{ref_key:"wrapperRef",ref:C,class:(0,Q.C4)((0,i.R1)(c))},[(0,r.Q3)(" prefix slot "),t.$slots.prefix||t.prefixIcon?((0,r.uX)(),(0,r.CE)("span",{key:0,class:(0,Q.C4)((0,i.R1)(m).e("prefix"))},[(0,r.Lk)("span",{class:(0,Q.C4)((0,i.R1)(m).e("prefix-inner"))},[(0,r.RG)(t.$slots,"prefix"),t.prefixIcon?((0,r.uX)(),(0,r.Wv)((0,i.R1)(Dn),{key:0,class:(0,Q.C4)((0,i.R1)(m).e("icon"))},{default:(0,r.k6)((()=>[((0,r.uX)(),(0,r.Wv)((0,r.$y)(t.prefixIcon)))])),_:1},8,["class"])):(0,r.Q3)("v-if",!0)],2)],2)):(0,r.Q3)("v-if",!0),(0,r.Lk)("input",(0,r.v6)({id:(0,i.R1)(f),ref_key:"input",ref:b,class:(0,i.R1)(m).e("inner")},(0,i.R1)(h),{minlength:t.minlength,maxlength:t.maxlength,type:t.showPassword?O.value?"text":"password":t.type,disabled:(0,i.R1)(v),readonly:t.readonly,autocomplete:t.autocomplete,tabindex:t.tabindex,"aria-label":t.label||t.ariaLabel,placeholder:t.placeholder,style:t.inputStyle,form:t.form,autofocus:t.autofocus,onCompositionstart:tt,onCompositionupdate:et,onCompositionend:nt,onInput:K,onFocus:e[0]||(e[0]=(...t)=>(0,i.R1)(T)&&(0,i.R1)(T)(...t)),onBlur:e[1]||(e[1]=(...t)=>(0,i.R1)(P)&&(0,i.R1)(P)(...t)),onChange:J,onKeydown:lt}),null,16,Gl),(0,r.Q3)(" suffix slot "),(0,i.R1)(H)?((0,r.uX)(),(0,r.CE)("span",{key:1,class:(0,Q.C4)((0,i.R1)(m).e("suffix"))},[(0,r.Lk)("span",{class:(0,Q.C4)((0,i.R1)(m).e("suffix-inner"))},[(0,i.R1)(B)&&(0,i.R1)(F)&&(0,i.R1)(W)?(0,r.Q3)("v-if",!0):((0,r.uX)(),(0,r.CE)(r.FK,{key:0},[(0,r.RG)(t.$slots,"suffix"),t.suffixIcon?((0,r.uX)(),(0,r.Wv)((0,i.R1)(Dn),{key:0,class:(0,Q.C4)((0,i.R1)(m).e("icon"))},{default:(0,r.k6)((()=>[((0,r.uX)(),(0,r.Wv)((0,r.$y)(t.suffixIcon)))])),_:1},8,["class"])):(0,r.Q3)("v-if",!0)],64)),(0,i.R1)(B)?((0,r.uX)(),(0,r.Wv)((0,i.R1)(Dn),{key:1,class:(0,Q.C4)([(0,i.R1)(m).e("icon"),(0,i.R1)(m).e("clear")]),onMousedown:(0,N.D$)((0,i.R1)(Q.tE),["prevent"]),onClick:ct},{default:(0,r.k6)((()=>[(0,r.bF)((0,i.R1)(yr))])),_:1},8,["class","onMousedown"])):(0,r.Q3)("v-if",!0),(0,i.R1)(F)?((0,r.uX)(),(0,r.Wv)((0,i.R1)(Dn),{key:2,class:(0,Q.C4)([(0,i.R1)(m).e("icon"),(0,i.R1)(m).e("password")]),onClick:rt},{default:(0,r.k6)((()=>[((0,r.uX)(),(0,r.Wv)((0,r.$y)((0,i.R1)(R))))])),_:1},8,["class"])):(0,r.Q3)("v-if",!0),(0,i.R1)(W)?((0,r.uX)(),(0,r.CE)("span",{key:3,class:(0,Q.C4)((0,i.R1)(m).e("count"))},[(0,r.Lk)("span",{class:(0,Q.C4)((0,i.R1)(m).e("count-inner"))},(0,Q.v_)((0,i.R1)(j))+" / "+(0,Q.v_)(t.maxlength),3)],2)):(0,r.Q3)("v-if",!0),(0,i.R1)($)&&(0,i.R1)(E)&&(0,i.R1)(I)?((0,r.uX)(),(0,r.Wv)((0,i.R1)(Dn),{key:4,class:(0,Q.C4)([(0,i.R1)(m).e("icon"),(0,i.R1)(m).e("validateIcon"),(0,i.R1)(m).is("loading","validating"===(0,i.R1)($))])},{default:(0,r.k6)((()=>[((0,r.uX)(),(0,r.Wv)((0,r.$y)((0,i.R1)(E))))])),_:1},8,["class"])):(0,r.Q3)("v-if",!0)],2)],2)):(0,r.Q3)("v-if",!0)],2),(0,r.Q3)(" append slot "),t.$slots.append?((0,r.uX)(),(0,r.CE)("div",{key:1,class:(0,Q.C4)((0,i.R1)(m).be("group","append"))},[(0,r.RG)(t.$slots,"append")],2)):(0,r.Q3)("v-if",!0)],64)):((0,r.uX)(),(0,r.CE)(r.FK,{key:1},[(0,r.Q3)(" textarea "),(0,r.Lk)("textarea",(0,r.v6)({id:(0,i.R1)(f),ref_key:"textarea",ref:_,class:[(0,i.R1)(y).e("inner"),(0,i.R1)(m).is("focus",(0,i.R1)(M))]},(0,i.R1)(h),{minlength:t.minlength,maxlength:t.maxlength,tabindex:t.tabindex,disabled:(0,i.R1)(v),readonly:t.readonly,autocomplete:t.autocomplete,style:(0,i.R1)(L),"aria-label":t.label||t.ariaLabel,placeholder:t.placeholder,form:t.form,autofocus:t.autofocus,onCompositionstart:tt,onCompositionupdate:et,onCompositionend:nt,onInput:K,onFocus:e[2]||(e[2]=(...t)=>(0,i.R1)(T)&&(0,i.R1)(T)(...t)),onBlur:e[3]||(e[3]=(...t)=>(0,i.R1)(P)&&(0,i.R1)(P)(...t)),onChange:J,onKeydown:lt}),null,16,Xl),(0,i.R1)(W)?((0,r.uX)(),(0,r.CE)("span",{key:0,style:(0,Q.Tr)(S.value),class:(0,Q.C4)((0,i.R1)(m).e("count"))},(0,Q.v_)((0,i.R1)(j))+" / "+(0,Q.v_)(t.maxlength),7)):(0,r.Q3)("v-if",!0)],64))],16,Zl))}});var ql=dn(Yl,[["__file","input.vue"]]);const Kl=En(ql),Jl=cn({color:{type:sn(Object),required:!0},vertical:{type:Boolean,default:!1}});let tu=!1;function eu(t,e){if(!Hn)return;const n=function(t){var n;null==(n=e.drag)||n.call(e,t)},r=function(t){var i;document.removeEventListener("mousemove",n),document.removeEventListener("mouseup",r),document.removeEventListener("touchmove",n),document.removeEventListener("touchend",r),document.onselectstart=null,document.ondragstart=null,tu=!1,null==(i=e.end)||i.call(e,t)},i=function(t){var i;tu||(t.preventDefault(),document.onselectstart=()=>!1,document.ondragstart=()=>!1,document.addEventListener("mousemove",n),document.addEventListener("mouseup",r),document.addEventListener("touchmove",n),document.addEventListener("touchend",r),tu=!0,null==(i=e.start)||i.call(e,t))};t.addEventListener("mousedown",i),t.addEventListener("touchstart",i)}const nu=t=>{let e,n;return"touchend"===t.type?(n=t.changedTouches[0].clientY,e=t.changedTouches[0].clientX):t.type.startsWith("touch")?(n=t.touches[0].clientY,e=t.touches[0].clientX):(n=t.clientY,e=t.clientX),{clientX:e,clientY:n}},ru=t=>{const e=(0,r.nI)(),n=(0,i.IJ)(),o=(0,i.IJ)();function a(t){const e=t.target;e!==n.value&&s(t)}function s(r){if(!o.value||!n.value)return;const i=e.vnode.el,a=i.getBoundingClientRect(),{clientX:s,clientY:l}=nu(r);if(t.vertical){let e=l-a.top;e=Math.max(n.value.offsetHeight/2,e),e=Math.min(e,a.height-n.value.offsetHeight/2),t.color.set("alpha",Math.round((e-n.value.offsetHeight/2)/(a.height-n.value.offsetHeight)*100))}else{let e=s-a.left;e=Math.max(n.value.offsetWidth/2,e),e=Math.min(e,a.width-n.value.offsetWidth/2),t.color.set("alpha",Math.round((e-n.value.offsetWidth/2)/(a.width-n.value.offsetWidth)*100))}}return{thumb:n,bar:o,handleDrag:s,handleClick:a}},iu=(t,{bar:e,thumb:n,handleDrag:o})=>{const a=(0,r.nI)(),s=yn("color-alpha-slider"),l=(0,i.KR)(0),u=(0,i.KR)(0),c=(0,i.KR)();function h(){if(!n.value)return 0;if(t.vertical)return 0;const e=a.vnode.el,r=t.color.get("alpha");return e?Math.round(r*(e.offsetWidth-n.value.offsetWidth/2)/100):0}function d(){if(!n.value)return 0;const e=a.vnode.el;if(!t.vertical)return 0;const r=t.color.get("alpha");return e?Math.round(r*(e.offsetHeight-n.value.offsetHeight/2)/100):0}function p(){if(t.color&&t.color.value){const{r:e,g:n,b:r}=t.color.toRgb();return`linear-gradient(to right, rgba(${e}, ${n}, ${r}, 0) 0%, rgba(${e}, ${n}, ${r}, 1) 100%)`}return""}function f(){l.value=h(),u.value=d(),c.value=p()}(0,r.sV)((()=>{if(!e.value||!n.value)return;const t={drag:t=>{o(t)},end:t=>{o(t)}};eu(e.value,t),eu(n.value,t),f()})),(0,r.wB)((()=>t.color.get("alpha")),(()=>f())),(0,r.wB)((()=>t.color.value),(()=>f()));const g=(0,r.EW)((()=>[s.b(),s.is("vertical",t.vertical)])),v=(0,r.EW)((()=>s.e("bar"))),m=(0,r.EW)((()=>s.e("thumb"))),y=(0,r.EW)((()=>({background:c.value}))),b=(0,r.EW)((()=>({left:Tn(l.value),top:Tn(u.value)})));return{rootKls:g,barKls:v,barStyle:y,thumbKls:m,thumbStyle:b,update:f}},ou="ElColorAlphaSlider",au=(0,r.pM)({name:ou}),su=(0,r.pM)({...au,props:Jl,setup(t,{expose:e}){const n=t,{bar:o,thumb:a,handleDrag:s,handleClick:l}=ru(n),{rootKls:u,barKls:c,barStyle:h,thumbKls:d,thumbStyle:p,update:f}=iu(n,{bar:o,thumb:a,handleDrag:s});return e({update:f,bar:o,thumb:a}),(t,e)=>((0,r.uX)(),(0,r.CE)("div",{class:(0,Q.C4)((0,i.R1)(u))},[(0,r.Lk)("div",{ref_key:"bar",ref:o,class:(0,Q.C4)((0,i.R1)(c)),style:(0,Q.Tr)((0,i.R1)(h)),onClick:e[0]||(e[0]=(...t)=>(0,i.R1)(l)&&(0,i.R1)(l)(...t))},null,6),(0,r.Lk)("div",{ref_key:"thumb",ref:a,class:(0,Q.C4)((0,i.R1)(d)),style:(0,Q.Tr)((0,i.R1)(p))},null,6)],2))}});var lu=dn(su,[["__file","alpha-slider.vue"]]);const uu=(0,r.pM)({name:"ElColorHueSlider",props:{color:{type:Object,required:!0},vertical:Boolean},setup(t){const e=yn("color-hue-slider"),n=(0,r.nI)(),o=(0,i.KR)(),a=(0,i.KR)(),s=(0,i.KR)(0),l=(0,i.KR)(0),u=(0,r.EW)((()=>t.color.get("hue")));function c(t){const e=t.target;e!==o.value&&h(t)}function h(e){if(!a.value||!o.value)return;const r=n.vnode.el,i=r.getBoundingClientRect(),{clientX:s,clientY:l}=nu(e);let u;if(t.vertical){let t=l-i.top;t=Math.min(t,i.height-o.value.offsetHeight/2),t=Math.max(o.value.offsetHeight/2,t),u=Math.round((t-o.value.offsetHeight/2)/(i.height-o.value.offsetHeight)*360)}else{let t=s-i.left;t=Math.min(t,i.width-o.value.offsetWidth/2),t=Math.max(o.value.offsetWidth/2,t),u=Math.round((t-o.value.offsetWidth/2)/(i.width-o.value.offsetWidth)*360)}t.color.set("hue",u)}function d(){if(!o.value)return 0;const e=n.vnode.el;if(t.vertical)return 0;const r=t.color.get("hue");return e?Math.round(r*(e.offsetWidth-o.value.offsetWidth/2)/360):0}function p(){if(!o.value)return 0;const e=n.vnode.el;if(!t.vertical)return 0;const r=t.color.get("hue");return e?Math.round(r*(e.offsetHeight-o.value.offsetHeight/2)/360):0}function f(){s.value=d(),l.value=p()}return(0,r.wB)((()=>u.value),(()=>{f()})),(0,r.sV)((()=>{if(!a.value||!o.value)return;const t={drag:t=>{h(t)},end:t=>{h(t)}};eu(a.value,t),eu(o.value,t),f()})),{bar:a,thumb:o,thumbLeft:s,thumbTop:l,hueValue:u,handleClick:c,update:f,ns:e}}});function cu(t,e,n,i,o,a){return(0,r.uX)(),(0,r.CE)("div",{class:(0,Q.C4)([t.ns.b(),t.ns.is("vertical",t.vertical)])},[(0,r.Lk)("div",{ref:"bar",class:(0,Q.C4)(t.ns.e("bar")),onClick:e[0]||(e[0]=(...e)=>t.handleClick&&t.handleClick(...e))},null,2),(0,r.Lk)("div",{ref:"thumb",class:(0,Q.C4)(t.ns.e("thumb")),style:(0,Q.Tr)({left:t.thumbLeft+"px",top:t.thumbTop+"px"})},null,6)],2)}var hu=dn(uu,[["render",cu],["__file","hue-slider.vue"]]);const du=cn({modelValue:String,id:String,showAlpha:Boolean,colorFormat:String,disabled:Boolean,size:sr,popperClass:{type:String,default:""},label:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},teleported:fa.teleported,predefine:{type:sn(Array)},validateEvent:{type:Boolean,default:!0},...ua(["ariaLabel"])}),pu={[Ll]:t=>(0,Q.Kg)(t)||_n(t),[Nl]:t=>(0,Q.Kg)(t)||_n(t),activeChange:t=>(0,Q.Kg)(t)||_n(t),focus:t=>t instanceof FocusEvent,blur:t=>t instanceof FocusEvent},fu=Symbol("colorPickerContextKey"),gu=function(t,e,n){return[t,e*n/((t=(2-e)*n)<1?t:2-t)||0,t/2]},vu=function(t){return"string"===typeof t&&t.includes(".")&&1===Number.parseFloat(t)},mu=function(t){return"string"===typeof t&&t.includes("%")},yu=function(t,e){vu(t)&&(t="100%");const n=mu(t);return t=Math.min(e,Math.max(0,Number.parseFloat(`${t}`))),n&&(t=Number.parseInt(""+t*e,10)/100),Math.abs(t-e)<1e-6?1:t%e/Number.parseFloat(e)},bu={10:"A",11:"B",12:"C",13:"D",14:"E",15:"F"},_u=t=>{t=Math.min(Math.round(t),255);const e=Math.floor(t/16),n=t%16;return`${bu[e]||e}${bu[n]||n}`},xu=function({r:t,g:e,b:n}){return Number.isNaN(+t)||Number.isNaN(+e)||Number.isNaN(+n)?"":`#${_u(t)}${_u(e)}${_u(n)}`},wu={A:10,B:11,C:12,D:13,E:14,F:15},Ou=function(t){return 2===t.length?16*(wu[t[0].toUpperCase()]||+t[0])+(wu[t[1].toUpperCase()]||+t[1]):wu[t[1].toUpperCase()]||+t[1]},Su=function(t,e,n){e/=100,n/=100;let r=e;const i=Math.max(n,.01);n*=2,e*=n<=1?n:2-n,r*=i<=1?i:2-i;const o=(n+e)/2,a=0===n?2*r/(i+r):2*e/(n+e);return{h:t,s:100*a,v:100*o}},Au=(t,e,n)=>{t=yu(t,255),e=yu(e,255),n=yu(n,255);const r=Math.max(t,e,n),i=Math.min(t,e,n);let o;const a=r,s=r-i,l=0===r?0:s/r;if(r===i)o=0;else{switch(r){case t:o=(e-n)/s+(e<n?6:0);break;case e:o=(n-t)/s+2;break;case n:o=(t-e)/s+4;break}o/=6}return{h:360*o,s:100*l,v:100*a}},ku=function(t,e,n){t=6*yu(t,360),e=yu(e,100),n=yu(n,100);const r=Math.floor(t),i=t-r,o=n*(1-e),a=n*(1-i*e),s=n*(1-(1-i)*e),l=r%6,u=[n,a,o,o,s,n][l],c=[s,n,n,a,o,o][l],h=[o,o,s,n,n,a][l];return{r:Math.round(255*u),g:Math.round(255*c),b:Math.round(255*h)}};class Cu{constructor(t={}){this._hue=0,this._saturation=100,this._value=100,this._alpha=100,this.enableAlpha=!1,this.format="hex",this.value="";for(const e in t)(0,Q.$3)(t,e)&&(this[e]=t[e]);t.value?this.fromString(t.value):this.doOnChange()}set(t,e){if(1!==arguments.length||"object"!==typeof t)this[`_${t}`]=e,this.doOnChange();else for(const n in t)(0,Q.$3)(t,n)&&this.set(n,t[n])}get(t){return"alpha"===t?Math.floor(this[`_${t}`]):this[`_${t}`]}toRgb(){return ku(this._hue,this._saturation,this._value)}fromString(t){if(!t)return this._hue=0,this._saturation=100,this._value=100,void this.doOnChange();const e=(t,e,n)=>{this._hue=Math.max(0,Math.min(360,t)),this._saturation=Math.max(0,Math.min(100,e)),this._value=Math.max(0,Math.min(100,n)),this.doOnChange()};if(t.includes("hsl")){const n=t.replace(/hsla|hsl|\(|\)/gm,"").split(/\s|,/g).filter((t=>""!==t)).map(((t,e)=>e>2?Number.parseFloat(t):Number.parseInt(t,10)));if(4===n.length?this._alpha=100*Number.parseFloat(n[3]):3===n.length&&(this._alpha=100),n.length>=3){const{h:t,s:r,v:i}=Su(n[0],n[1],n[2]);e(t,r,i)}}else if(t.includes("hsv")){const n=t.replace(/hsva|hsv|\(|\)/gm,"").split(/\s|,/g).filter((t=>""!==t)).map(((t,e)=>e>2?Number.parseFloat(t):Number.parseInt(t,10)));4===n.length?this._alpha=100*Number.parseFloat(n[3]):3===n.length&&(this._alpha=100),n.length>=3&&e(n[0],n[1],n[2])}else if(t.includes("rgb")){const n=t.replace(/rgba|rgb|\(|\)/gm,"").split(/\s|,/g).filter((t=>""!==t)).map(((t,e)=>e>2?Number.parseFloat(t):Number.parseInt(t,10)));if(4===n.length?this._alpha=100*Number.parseFloat(n[3]):3===n.length&&(this._alpha=100),n.length>=3){const{h:t,s:r,v:i}=Au(n[0],n[1],n[2]);e(t,r,i)}}else if(t.includes("#")){const n=t.replace("#","").trim();if(!/^[0-9a-fA-F]{3}$|^[0-9a-fA-F]{6}$|^[0-9a-fA-F]{8}$/.test(n))return;let r,i,o;3===n.length?(r=Ou(n[0]+n[0]),i=Ou(n[1]+n[1]),o=Ou(n[2]+n[2])):6!==n.length&&8!==n.length||(r=Ou(n.slice(0,2)),i=Ou(n.slice(2,4)),o=Ou(n.slice(4,6))),8===n.length?this._alpha=Ou(n.slice(6))/255*100:3!==n.length&&6!==n.length||(this._alpha=100);const{h:a,s:s,v:l}=Au(r,i,o);e(a,s,l)}}compare(t){return Math.abs(t._hue-this._hue)<2&&Math.abs(t._saturation-this._saturation)<1&&Math.abs(t._value-this._value)<1&&Math.abs(t._alpha-this._alpha)<1}doOnChange(){const{_hue:t,_saturation:e,_value:n,_alpha:r,format:i}=this;if(this.enableAlpha)switch(i){case"hsl":{const r=gu(t,e/100,n/100);this.value=`hsla(${t}, ${Math.round(100*r[1])}%, ${Math.round(100*r[2])}%, ${this.get("alpha")/100})`;break}case"hsv":this.value=`hsva(${t}, ${Math.round(e)}%, ${Math.round(n)}%, ${this.get("alpha")/100})`;break;case"hex":this.value=`${xu(ku(t,e,n))}${_u(255*r/100)}`;break;default:{const{r:r,g:i,b:o}=ku(t,e,n);this.value=`rgba(${r}, ${i}, ${o}, ${this.get("alpha")/100})`}}else switch(i){case"hsl":{const r=gu(t,e/100,n/100);this.value=`hsl(${t}, ${Math.round(100*r[1])}%, ${Math.round(100*r[2])}%)`;break}case"hsv":this.value=`hsv(${t}, ${Math.round(e)}%, ${Math.round(n)}%)`;break;case"rgb":{const{r:r,g:i,b:o}=ku(t,e,n);this.value=`rgb(${r}, ${i}, ${o})`;break}default:this.value=xu(ku(t,e,n))}}}const Mu=(0,r.pM)({props:{colors:{type:Array,required:!0},color:{type:Object,required:!0},enableAlpha:{type:Boolean,required:!0}},setup(t){const e=yn("color-predefine"),{currentColor:n}=(0,r.WQ)(fu),o=(0,i.KR)(s(t.colors,t.color));function a(e){t.color.fromString(t.colors[e])}function s(e,n){return e.map((e=>{const r=new Cu;return r.enableAlpha=t.enableAlpha,r.format="rgba",r.fromString(e),r.selected=r.value===n.value,r}))}return(0,r.wB)((()=>n.value),(t=>{const e=new Cu;e.fromString(t),o.value.forEach((t=>{t.selected=e.compare(t)}))})),(0,r.nT)((()=>{o.value=s(t.colors,t.color)})),{rgbaColors:o,handleSelect:a,ns:e}}}),Tu=["onClick"];function Pu(t,e,n,i,o,a){return(0,r.uX)(),(0,r.CE)("div",{class:(0,Q.C4)(t.ns.b())},[(0,r.Lk)("div",{class:(0,Q.C4)(t.ns.e("colors"))},[((0,r.uX)(!0),(0,r.CE)(r.FK,null,(0,r.pI)(t.rgbaColors,((e,n)=>((0,r.uX)(),(0,r.CE)("div",{key:t.colors[n],class:(0,Q.C4)([t.ns.e("color-selector"),t.ns.is("alpha",e._alpha<100),{selected:e.selected}]),onClick:e=>t.handleSelect(n)},[(0,r.Lk)("div",{style:(0,Q.Tr)({backgroundColor:e.value})},null,4)],10,Tu)))),128))],2)],2)}var Iu=dn(Mu,[["render",Pu],["__file","predefine.vue"]]);const $u=(0,r.pM)({name:"ElSlPanel",props:{color:{type:Object,required:!0}},setup(t){const e=yn("color-svpanel"),n=(0,r.nI)(),o=(0,i.KR)(0),a=(0,i.KR)(0),s=(0,i.KR)("hsl(0, 100%, 50%)"),l=(0,r.EW)((()=>{const e=t.color.get("hue"),n=t.color.get("value");return{hue:e,value:n}}));function u(){const e=t.color.get("saturation"),r=t.color.get("value"),i=n.vnode.el,{clientWidth:l,clientHeight:u}=i;a.value=e*l/100,o.value=(100-r)*u/100,s.value=`hsl(${t.color.get("hue")}, 100%, 50%)`}function c(e){const r=n.vnode.el,i=r.getBoundingClientRect(),{clientX:s,clientY:l}=nu(e);let u=s-i.left,c=l-i.top;u=Math.max(0,u),u=Math.min(u,i.width),c=Math.max(0,c),c=Math.min(c,i.height),a.value=u,o.value=c,t.color.set({saturation:u/i.width*100,value:100-c/i.height*100})}return(0,r.wB)((()=>l.value),(()=>{u()})),(0,r.sV)((()=>{eu(n.vnode.el,{drag:t=>{c(t)},end:t=>{c(t)}}),u()})),{cursorTop:o,cursorLeft:a,background:s,colorValue:l,handleDrag:c,update:u,ns:e}}}),Eu=(0,r.Lk)("div",null,null,-1),Ru=[Eu];function Du(t,e,n,i,o,a){return(0,r.uX)(),(0,r.CE)("div",{class:(0,Q.C4)(t.ns.b()),style:(0,Q.Tr)({backgroundColor:t.background})},[(0,r.Lk)("div",{class:(0,Q.C4)(t.ns.e("white"))},null,2),(0,r.Lk)("div",{class:(0,Q.C4)(t.ns.e("black"))},null,2),(0,r.Lk)("div",{class:(0,Q.C4)(t.ns.e("cursor")),style:(0,Q.Tr)({top:t.cursorTop+"px",left:t.cursorLeft+"px"})},Ru,6)],6)}var Lu=dn($u,[["render",Du],["__file","sv-panel.vue"]]),Nu=n(83067),zu={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 Bu=t=>(e,n)=>Fu(e,n,(0,i.R1)(t)),Fu=(t,e,n)=>(0,Nu.A)(n,t,t).replace(/\{(\w+)\}/g,((t,n)=>{var r;return`${null!=(r=null==e?void 0:e[n])?r:`{${n}}`}`})),Wu=t=>{const e=(0,r.EW)((()=>(0,i.R1)(t).name)),n=(0,i.i9)(t)?t:(0,i.KR)(t);return{lang:e,locale:n,t:Bu(t)}},ju=Symbol("localeContextKey"),Vu=t=>{const e=t||(0,r.WQ)(ju,(0,i.KR)());return Wu((0,r.EW)((()=>e.value||zu)))},Qu=new Map;let Hu;function Zu(t,e){let n=[];return Array.isArray(e.arg)?n=e.arg:Sn(e.arg)&&n.push(e.arg),function(r,i){const o=e.instance.popperRef,a=r.target,s=null==i?void 0:i.target,l=!e||!e.instance,u=!a||!s,c=t.contains(a)||t.contains(s),h=t===a,d=n.length&&n.some((t=>null==t?void 0:t.contains(a)))||n.length&&n.includes(s),p=o&&(o.contains(a)||o.contains(s));l||u||c||h||d||p||e.value(r,i)}}Hn&&(document.addEventListener("mousedown",(t=>Hu=t)),document.addEventListener("mouseup",(t=>{for(const e of Qu.values())for(const{documentHandler:n}of e)n(t,Hu)})));const Gu={beforeMount(t,e){Qu.has(t)||Qu.set(t,[]),Qu.get(t).push({documentHandler:Zu(t,e),bindingFn:e.value})},updated(t,e){Qu.has(t)||Qu.set(t,[]);const n=Qu.get(t),r=n.findIndex((t=>t.bindingFn===e.oldValue)),i={documentHandler:Zu(t,e),bindingFn:e.value};r>=0?n.splice(r,1,i):n.push(i)},unmounted(t){Qu.delete(t)}},Xu=["onKeydown"],Uu=["id","aria-label","aria-labelledby","aria-description","aria-disabled","tabindex"],Yu=(0,r.pM)({name:"ElColorPicker"}),qu=(0,r.pM)({...Yu,props:du,emits:pu,setup(t,{expose:e,emit:n}){const o=t,{t:a}=Vu(),s=yn("color"),{formItem:l}=rr(),u=cr(),c=hr(),{inputId:h,isLabeledByFormItem:d}=ir(o,{formItemContext:l}),p=(0,i.KR)(),f=(0,i.KR)(),g=(0,i.KR)(),v=(0,i.KR)(),m=(0,i.KR)(),y=(0,i.KR)(),{isFocused:b,handleFocus:_,handleBlur:x}=Vl(m,{beforeBlur(t){var e;return null==(e=v.value)?void 0:e.isFocusInsideContent(t)},afterBlur(){R(!1),B()}}),w=t=>{if(c.value)return U();_(t)};let O=!0;const S=(0,i.Kh)(new Cu({enableAlpha:o.showAlpha,format:o.colorFormat||"",value:o.modelValue})),A=(0,i.KR)(!1),k=(0,i.KR)(!1),C=(0,i.KR)(""),M=(0,r.EW)((()=>o.modelValue||k.value?E(S,o.showAlpha):"transparent")),T=(0,r.EW)((()=>o.modelValue||k.value?S.value:"")),P=(0,r.EW)((()=>d.value?void 0:o.label||o.ariaLabel||a("el.colorpicker.defaultLabel")));Nn({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.EW)((()=>!!o.label)));const I=(0,r.EW)((()=>d.value?null==l?void 0:l.labelId:void 0)),$=(0,r.EW)((()=>[s.b("picker"),s.is("disabled",c.value),s.bm("picker",u.value),s.is("focused",b.value)]));function E(t,e){if(!(t instanceof Cu))throw new TypeError("color should be instance of _color Class");const{r:n,g:r,b:i}=t.toRgb();return e?`rgba(${n}, ${r}, ${i}, ${t.get("alpha")/100})`:`rgb(${n}, ${r}, ${i})`}function R(t){A.value=t}const D=(0,nn.A)(R,100,{leading:!0});function L(){c.value||R(!0)}function z(){D(!1),B()}function B(){(0,r.dY)((()=>{o.modelValue?S.fromString(o.modelValue):(S.value="",(0,r.dY)((()=>{k.value=!1})))}))}function F(){c.value||D(!A.value)}function W(){S.fromString(C.value)}function j(){const t=S.value;n(Ll,t),n("change",t),o.validateEvent&&(null==l||l.validate("change").catch((t=>Cn(t)))),D(!1),(0,r.dY)((()=>{const t=new Cu({enableAlpha:o.showAlpha,format:o.colorFormat||"",value:o.modelValue});S.compare(t)||B()}))}function V(){D(!1),n(Ll,null),n("change",null),null!==o.modelValue&&o.validateEvent&&(null==l||l.validate("change").catch((t=>Cn(t)))),B()}function H(t){if(A.value&&(z(),b.value)){const e=new FocusEvent("focus",t);x(e)}}function Z(t){t.preventDefault(),t.stopPropagation(),R(!1),B()}function G(t){switch(t.code){case va.enter:case va.space:t.preventDefault(),t.stopPropagation(),L(),y.value.focus();break;case va.esc:Z(t);break}}function X(){m.value.focus()}function U(){m.value.blur()}return(0,r.sV)((()=>{o.modelValue&&(C.value=T.value)})),(0,r.wB)((()=>o.modelValue),(t=>{t?t&&t!==S.value&&(O=!1,S.fromString(t)):k.value=!1})),(0,r.wB)((()=>T.value),(t=>{C.value=t,O&&n("activeChange",t),O=!0})),(0,r.wB)((()=>S.value),(()=>{o.modelValue||k.value||(k.value=!0)})),(0,r.wB)((()=>A.value),(()=>{(0,r.dY)((()=>{var t,e,n;null==(t=p.value)||t.update(),null==(e=f.value)||e.update(),null==(n=g.value)||n.update()}))})),(0,r.Gt)(fu,{currentColor:T}),e({color:S,show:L,hide:z,focus:X,blur:U}),(t,e)=>((0,r.uX)(),(0,r.Wv)((0,i.R1)(Ml),{ref_key:"popper",ref:v,visible:A.value,"show-arrow":!1,"fallback-placements":["bottom","top","right","left"],offset:0,"gpu-acceleration":!1,"popper-class":[(0,i.R1)(s).be("picker","panel"),(0,i.R1)(s).b("dropdown"),t.popperClass],"stop-popper-mouse-event":!1,effect:"light",trigger:"click",teleported:t.teleported,transition:`${(0,i.R1)(s).namespace.value}-zoom-in-top`,persistent:"",onHide:e[2]||(e[2]=t=>R(!1))},{content:(0,r.k6)((()=>[(0,r.bo)(((0,r.uX)(),(0,r.CE)("div",{onKeydown:(0,N.jR)(Z,["esc"])},[(0,r.Lk)("div",{class:(0,Q.C4)((0,i.R1)(s).be("dropdown","main-wrapper"))},[(0,r.bF)(hu,{ref_key:"hue",ref:p,class:"hue-slider",color:(0,i.R1)(S),vertical:""},null,8,["color"]),(0,r.bF)(Lu,{ref_key:"sv",ref:f,color:(0,i.R1)(S)},null,8,["color"])],2),t.showAlpha?((0,r.uX)(),(0,r.Wv)(lu,{key:0,ref_key:"alpha",ref:g,color:(0,i.R1)(S)},null,8,["color"])):(0,r.Q3)("v-if",!0),t.predefine?((0,r.uX)(),(0,r.Wv)(Iu,{key:1,ref:"predefine","enable-alpha":t.showAlpha,color:(0,i.R1)(S),colors:t.predefine},null,8,["enable-alpha","color","colors"])):(0,r.Q3)("v-if",!0),(0,r.Lk)("div",{class:(0,Q.C4)((0,i.R1)(s).be("dropdown","btns"))},[(0,r.Lk)("span",{class:(0,Q.C4)((0,i.R1)(s).be("dropdown","value"))},[(0,r.bF)((0,i.R1)(Kl),{ref_key:"inputRef",ref:y,modelValue:C.value,"onUpdate:modelValue":e[0]||(e[0]=t=>C.value=t),"validate-event":!1,size:"small",onKeyup:(0,N.jR)(W,["enter"]),onBlur:W},null,8,["modelValue","onKeyup"])],2),(0,r.bF)((0,i.R1)(jr),{class:(0,Q.C4)((0,i.R1)(s).be("dropdown","link-btn")),text:"",size:"small",onClick:V},{default:(0,r.k6)((()=>[(0,r.eW)((0,Q.v_)((0,i.R1)(a)("el.colorpicker.clear")),1)])),_:1},8,["class"]),(0,r.bF)((0,i.R1)(jr),{plain:"",size:"small",class:(0,Q.C4)((0,i.R1)(s).be("dropdown","btn")),onClick:j},{default:(0,r.k6)((()=>[(0,r.eW)((0,Q.v_)((0,i.R1)(a)("el.colorpicker.confirm")),1)])),_:1},8,["class"])],2)],40,Xu)),[[(0,i.R1)(Gu),H]])])),default:(0,r.k6)((()=>[(0,r.Lk)("div",(0,r.v6)({id:(0,i.R1)(h),ref_key:"triggerRef",ref:m},t.$attrs,{class:(0,i.R1)($),role:"button","aria-label":(0,i.R1)(P),"aria-labelledby":(0,i.R1)(I),"aria-description":(0,i.R1)(a)("el.colorpicker.description",{color:t.modelValue||""}),"aria-disabled":(0,i.R1)(c),tabindex:(0,i.R1)(c)?-1:t.tabindex,onKeydown:G,onFocus:w,onBlur:e[1]||(e[1]=(...t)=>(0,i.R1)(x)&&(0,i.R1)(x)(...t))}),[(0,i.R1)(c)?((0,r.uX)(),(0,r.CE)("div",{key:0,class:(0,Q.C4)((0,i.R1)(s).be("picker","mask"))},null,2)):(0,r.Q3)("v-if",!0),(0,r.Lk)("div",{class:(0,Q.C4)((0,i.R1)(s).be("picker","trigger")),onClick:F},[(0,r.Lk)("span",{class:(0,Q.C4)([(0,i.R1)(s).be("picker","color"),(0,i.R1)(s).is("alpha",t.showAlpha)])},[(0,r.Lk)("span",{class:(0,Q.C4)((0,i.R1)(s).be("picker","color-inner")),style:(0,Q.Tr)({backgroundColor:(0,i.R1)(M)})},[(0,r.bo)((0,r.bF)((0,i.R1)(Dn),{class:(0,Q.C4)([(0,i.R1)(s).be("picker","icon"),(0,i.R1)(s).is("icon-arrow-down")])},{default:(0,r.k6)((()=>[(0,r.bF)((0,i.R1)(fr))])),_:1},8,["class"]),[[N.aG,t.modelValue||k.value]]),(0,r.bo)((0,r.bF)((0,i.R1)(Dn),{class:(0,Q.C4)([(0,i.R1)(s).be("picker","empty"),(0,i.R1)(s).is("icon-close")])},{default:(0,r.k6)((()=>[(0,r.bF)((0,i.R1)(_r))])),_:1},8,["class"]),[[N.aG,!t.modelValue&&!k.value]])],6)],2)],2)],16,Uu)])),_:1},8,["visible","popper-class","teleported","transition"]))}});var Ku=dn(qu,[["__file","color-picker.vue"]]);const Ju=En(Ku),tc=cn({modelValue:{type:[String,Number,Boolean],default:void 0},size:sr,disabled:Boolean,label:{type:[String,Number,Boolean],default:void 0},value:{type:[String,Number,Boolean],default:void 0},name:{type:String,default:void 0}}),ec=cn({...tc,border:Boolean}),nc={[Ll]:t=>(0,Q.Kg)(t)||On(t)||wn(t),[Nl]:t=>(0,Q.Kg)(t)||On(t)||wn(t)},rc=Symbol("radioGroupKey"),ic=(t,e)=>{const n=(0,i.KR)(),o=(0,r.WQ)(rc,void 0),a=(0,r.EW)((()=>!!o)),s=(0,r.EW)((()=>An(t.value)?t.label:t.value)),l=(0,r.EW)({get(){return a.value?o.modelValue:t.modelValue},set(r){a.value?o.changeEvent(r):e&&e(Ll,r),n.value.checked=t.modelValue===s.value}}),u=cr((0,r.EW)((()=>null==o?void 0:o.size))),c=hr((0,r.EW)((()=>null==o?void 0:o.disabled))),h=(0,i.KR)(!1),d=(0,r.EW)((()=>c.value||a.value&&l.value!==s.value?-1:0));return Nn({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.EW)((()=>a.value&&An(t.value)))),{radioRef:n,isGroup:a,radioGroup:o,focus:h,size:u,disabled:c,tabIndex:d,modelValue:l,actualValue:s}},oc=["value","name","disabled"],ac=(0,r.pM)({name:"ElRadio"}),sc=(0,r.pM)({...ac,props:ec,emits:nc,setup(t,{emit:e}){const n=t,o=yn("radio"),{radioRef:a,radioGroup:s,focus:l,size:u,disabled:c,modelValue:h,actualValue:d}=ic(n,e);function p(){(0,r.dY)((()=>e("change",h.value)))}return(t,e)=>{var n;return(0,r.uX)(),(0,r.CE)("label",{class:(0,Q.C4)([(0,i.R1)(o).b(),(0,i.R1)(o).is("disabled",(0,i.R1)(c)),(0,i.R1)(o).is("focus",(0,i.R1)(l)),(0,i.R1)(o).is("bordered",t.border),(0,i.R1)(o).is("checked",(0,i.R1)(h)===(0,i.R1)(d)),(0,i.R1)(o).m((0,i.R1)(u))])},[(0,r.Lk)("span",{class:(0,Q.C4)([(0,i.R1)(o).e("input"),(0,i.R1)(o).is("disabled",(0,i.R1)(c)),(0,i.R1)(o).is("checked",(0,i.R1)(h)===(0,i.R1)(d))])},[(0,r.bo)((0,r.Lk)("input",{ref_key:"radioRef",ref:a,"onUpdate:modelValue":e[0]||(e[0]=t=>(0,i.i9)(h)?h.value=t:null),class:(0,Q.C4)((0,i.R1)(o).e("original")),value:(0,i.R1)(d),name:t.name||(null==(n=(0,i.R1)(s))?void 0:n.name),disabled:(0,i.R1)(c),type:"radio",onFocus:e[1]||(e[1]=t=>l.value=!0),onBlur:e[2]||(e[2]=t=>l.value=!1),onChange:p,onClick:e[3]||(e[3]=(0,N.D$)((()=>{}),["stop"]))},null,42,oc),[[N.XL,(0,i.R1)(h)]]),(0,r.Lk)("span",{class:(0,Q.C4)((0,i.R1)(o).e("inner"))},null,2)],2),(0,r.Lk)("span",{class:(0,Q.C4)((0,i.R1)(o).e("label")),onKeydown:e[4]||(e[4]=(0,N.D$)((()=>{}),["stop"]))},[(0,r.RG)(t.$slots,"default",{},(()=>[(0,r.eW)((0,Q.v_)(t.label),1)]))],34)],2)}}});var lc=dn(sc,[["__file","radio.vue"]]);const uc=cn({...tc}),cc=["value","name","disabled"],hc=(0,r.pM)({name:"ElRadioButton"}),dc=(0,r.pM)({...hc,props:uc,setup(t){const e=t,n=yn("radio"),{radioRef:o,focus:a,size:s,disabled:l,modelValue:u,radioGroup:c,actualValue:h}=ic(e),d=(0,r.EW)((()=>({backgroundColor:(null==c?void 0:c.fill)||"",borderColor:(null==c?void 0:c.fill)||"",boxShadow:(null==c?void 0:c.fill)?`-1px 0 0 0 ${c.fill}`:"",color:(null==c?void 0:c.textColor)||""})));return(t,e)=>{var p;return(0,r.uX)(),(0,r.CE)("label",{class:(0,Q.C4)([(0,i.R1)(n).b("button"),(0,i.R1)(n).is("active",(0,i.R1)(u)===(0,i.R1)(h)),(0,i.R1)(n).is("disabled",(0,i.R1)(l)),(0,i.R1)(n).is("focus",(0,i.R1)(a)),(0,i.R1)(n).bm("button",(0,i.R1)(s))])},[(0,r.bo)((0,r.Lk)("input",{ref_key:"radioRef",ref:o,"onUpdate:modelValue":e[0]||(e[0]=t=>(0,i.i9)(u)?u.value=t:null),class:(0,Q.C4)((0,i.R1)(n).be("button","original-radio")),value:(0,i.R1)(h),type:"radio",name:t.name||(null==(p=(0,i.R1)(c))?void 0:p.name),disabled:(0,i.R1)(l),onFocus:e[1]||(e[1]=t=>a.value=!0),onBlur:e[2]||(e[2]=t=>a.value=!1),onClick:e[3]||(e[3]=(0,N.D$)((()=>{}),["stop"]))},null,42,cc),[[N.XL,(0,i.R1)(u)]]),(0,r.Lk)("span",{class:(0,Q.C4)((0,i.R1)(n).be("button","inner")),style:(0,Q.Tr)((0,i.R1)(u)===(0,i.R1)(h)?(0,i.R1)(d):{}),onKeydown:e[4]||(e[4]=(0,N.D$)((()=>{}),["stop"]))},[(0,r.RG)(t.$slots,"default",{},(()=>[(0,r.eW)((0,Q.v_)(t.label),1)]))],38)],2)}}});var pc=dn(dc,[["__file","radio-button.vue"]]);const fc=cn({id:{type:String,default:void 0},size:sr,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},...ua(["ariaLabel"])}),gc=nc,vc=["id","aria-label","aria-labelledby"],mc=(0,r.pM)({name:"ElRadioGroup"}),yc=(0,r.pM)({...mc,props:fc,emits:gc,setup(t,{emit:e}){const n=t,o=yn("radio"),a=nr(),s=(0,i.KR)(),{formItem:l}=rr(),{inputId:u,isLabeledByFormItem:c}=ir(n,{formItemContext:l}),h=t=>{e(Ll,t),(0,r.dY)((()=>e("change",t)))};(0,r.sV)((()=>{const t=s.value.querySelectorAll("[type=radio]"),e=t[0];!Array.from(t).some((t=>t.checked))&&e&&(e.tabIndex=0)}));const d=(0,r.EW)((()=>n.name||a.value));return(0,r.Gt)(rc,(0,i.Kh)({...(0,i.QW)(n),changeEvent:h,name:d})),(0,r.wB)((()=>n.modelValue),(()=>{n.validateEvent&&(null==l||l.validate("change").catch((t=>Cn(t))))})),Nn({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.EW)((()=>!!n.label))),(t,e)=>((0,r.uX)(),(0,r.CE)("div",{id:(0,i.R1)(u),ref_key:"radioGroupRef",ref:s,class:(0,Q.C4)((0,i.R1)(o).b("group")),role:"radiogroup","aria-label":(0,i.R1)(c)?void 0:t.label||t.ariaLabel||"radio-group","aria-labelledby":(0,i.R1)(c)?(0,i.R1)(l).labelId:void 0},[(0,r.RG)(t.$slots,"default")],10,vc))}});var bc=dn(yc,[["__file","radio-group.vue"]]);En(lc,{RadioButton:pc,RadioGroup:bc});const _c=Rn(bc),xc=Rn(pc),wc=t=>((0,r.Qi)("data-v-6d6a2dd3"),t=t(),(0,r.jt)(),t),Oc={key:0,class:"color-box"},Sc={class:"img-preview"},Ac=wc((()=>(0,r.Lk)("div",{class:"img-empty"},"未选择",-1))),kc=wc((()=>(0,r.Lk)("div",{class:"img-tip"},"选择素材",-1)));var Cc=(0,r.pM)({__name:"BackgroundSelect",props:{background:{default:()=>({type:"none",color:"",image:"",fillType:""})},filterOptions:{}},emits:["update:background"],setup(t,{emit:e}){const n=t,o=e,a=(0,i.KR)(n.background),s=[{label:"无",value:"none"},{label:"颜色",value:"color"},{label:"图片",value:"image"}],l=(0,r.EW)((()=>n.filterOptions?s.filter((t=>!n.filterOptions?.includes(t.value))):s));(0,r.wB)((()=>a.value),(()=>{o("update:background",a.value)}),{deep:!0,immediate:!0});const u=t=>{"color"!==t||a.value.color||(a.value.color="#0B074BFF")};return(t,e)=>((0,r.uX)(),(0,r.CE)(r.FK,null,[(0,r.bF)((0,i.R1)(K.Ay),{value:a.value.type,"onUpdate:value":e[0]||(e[0]=t=>a.value.type=t),style:{width:"100%"},options:l.value,onChange:u},null,8,["value","options"]),"color"===a.value.type?((0,r.uX)(),(0,r.CE)("div",Oc,[(0,r.bF)((0,i.R1)(Ju),{modelValue:a.value.color,"onUpdate:modelValue":e[1]||(e[1]=t=>a.value.color=t),"color-format":"hex","show-alpha":"",size:"small"},null,8,["modelValue"]),(0,r.bF)((0,i.R1)(Kl),{modelValue:a.value.color,"onUpdate:modelValue":e[2]||(e[2]=t=>a.value.color=t),size:"small"},null,8,["modelValue"])])):"image"===a.value.type?((0,r.uX)(),(0,r.CE)(r.FK,{key:1},[(0,r.Lk)("div",Sc,[Ac,(0,r.bF)((0,i.R1)(De),{src:a.value.image},null,8,["src"]),kc]),(0,r.bF)((0,i.R1)(_c),{modelValue:a.value.fillType,"onUpdate:modelValue":e[3]||(e[3]=t=>a.value.fillType=t)},{default:(0,r.k6)((()=>[(0,r.bF)((0,i.R1)(xc),{value:"cover"},{default:(0,r.k6)((()=>[(0,r.eW)("填充")])),_:1}),(0,r.bF)((0,i.R1)(xc),{value:"contain"},{default:(0,r.k6)((()=>[(0,r.eW)("适应")])),_:1}),(0,r.bF)((0,i.R1)(xc),{value:"stretch"},{default:(0,r.k6)((()=>[(0,r.eW)("拉伸")])),_:1})])),_:1},8,["modelValue"])],64)):(0,r.Q3)("",!0)],64))}}),Mc=n(23165);const Tc=(0,Mc.A)(Cc,[["__scopeId","data-v-6d6a2dd3"]]);var Pc=Tc;const Ic={key:0,class:"color-box"};var $c=(0,r.pM)({__name:"ColorSelect",props:{value:{}},emits:["update:value"],setup(t,{emit:e}){const n=e,o=t,a=(0,i.KR)(o.value?.length<=9||!o.value?"pure":"gradient"),s=(0,i.KR)(o.value),l=(0,i.KR)(o.value?.length>=9?o.value.slice(22).replace(")","").split(","):["#4ba9ff","#fff"]);return(0,r.wB)((()=>[a.value,s.value,l.value]),(()=>{"pure"===a.value?s.value=s.value.length>9?"#FFFFFFFF":s.value:s.value=`linear-gradient(90deg, ${l.value.join(",")})`,n("update:value",s.value)}),{deep:!0}),(t,e)=>((0,r.uX)(),(0,r.CE)(r.FK,null,[(0,r.bF)((0,i.R1)(_c),{modelValue:a.value,"onUpdate:modelValue":e[0]||(e[0]=t=>a.value=t),size:"small",style:{width:"100%"}},{default:(0,r.k6)((()=>[(0,r.bF)((0,i.R1)(xc),{value:"pure"},{default:(0,r.k6)((()=>[(0,r.eW)("单色")])),_:1}),(0,r.bF)((0,i.R1)(xc),{value:"gradient"},{default:(0,r.k6)((()=>[(0,r.eW)("渐变色")])),_:1})])),_:1},8,["modelValue"]),"pure"===a.value?((0,r.uX)(),(0,r.CE)("div",Ic,[(0,r.bF)((0,i.R1)(Ju),{modelValue:s.value,"onUpdate:modelValue":e[1]||(e[1]=t=>s.value=t),"color-format":"hex","show-alpha":"",size:"small"},null,8,["modelValue"]),(0,r.bF)((0,i.R1)(Kl),{modelValue:s.value,"onUpdate:modelValue":e[2]||(e[2]=t=>s.value=t),size:"small"},null,8,["modelValue"])])):"gradient"===a.value?((0,r.uX)(),(0,r.CE)("div",{key:1,class:"gradient-box",style:(0,Q.Tr)({background:s.value})},[(0,r.bF)((0,i.R1)(Ju),{modelValue:l.value[0],"onUpdate:modelValue":e[3]||(e[3]=t=>l.value[0]=t),"color-format":"hex","show-alpha":"",size:"small"},null,8,["modelValue"]),(0,r.bF)((0,i.R1)(Ju),{modelValue:l.value[1],"onUpdate:modelValue":e[4]||(e[4]=t=>l.value[1]=t),"color-format":"hex","show-alpha":"",size:"small"},null,8,["modelValue"])],4)):(0,r.Q3)("",!0)],64))}});const Ec=(0,Mc.A)($c,[["__scopeId","data-v-524244b4"]]);var Rc=Ec,Dc=n(78282),Lc=n(45340);const Nc={class:"color-list"};var zc=(0,r.pM)({__name:"ColorScheme",props:{value:{type:Array,default:()=>[]}},emits:["update:value"],setup(t,{emit:e}){const n=e,o=(0,i.KR)(Lc.xT[0].color.join(",")),a=t=>{"custom"===t||n("update:value",t.split(","))},s=()=>{console.log("add color...")};return(e,n)=>((0,r.uX)(),(0,r.CE)("div",null,[(0,r.bF)((0,i.R1)(K.Ay),{value:o.value,"onUpdate:value":n[0]||(n[0]=t=>o.value=t),size:"small",style:{width:"100%"},onChange:a},{default:(0,r.k6)((()=>[((0,r.uX)(!0),(0,r.CE)(r.FK,null,(0,r.pI)((0,i.R1)(Lc.xT),(t=>((0,r.uX)(),(0,r.Wv)((0,i.R1)(K.OQ),{key:t.name,value:t.color.join(",")},{default:(0,r.k6)((()=>[((0,r.uX)(!0),(0,r.CE)(r.FK,null,(0,r.pI)(t.color.slice(0,5),(t=>((0,r.uX)(),(0,r.CE)("span",{class:"color-block",key:t,style:(0,Q.Tr)({background:t})},null,4)))),128)),(0,r.eW)(" "+(0,Q.v_)(t.name),1)])),_:2},1032,["value"])))),128)),(0,r.bF)((0,i.R1)(K.OQ),{value:"custom"},{default:(0,r.k6)((()=>[(0,r.eW)("自定义组合")])),_:1})])),_:1},8,["value"]),(0,r.Lk)("div",Nc,[((0,r.uX)(!0),(0,r.CE)(r.FK,null,(0,r.pI)(t.value,((t,e)=>((0,r.uX)(),(0,r.CE)("span",{class:"color-block",key:e,style:(0,Q.Tr)({background:t})},null,4)))),128)),(0,r.Lk)("span",{class:"color-block cus-btn",onClick:s},[(0,r.bF)((0,i.R1)(Dc.A))])])]))}});const Bc=(0,Mc.A)(zc,[["__scopeId","data-v-0f7ff908"]]);var Fc=Bc,Wc=n(15240),jc={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"},Vc=jc;function Qc(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?Object(arguments[e]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),r.forEach((function(e){Hc(t,e,n[e])}))}return t}function Hc(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Zc=function(t,e){var n=Qc({},t,e.attrs);return(0,r.bF)(v.A,Qc({},n,{icon:Vc}),null)};Zc.displayName="AlignLeftOutlined",Zc.inheritAttrs=!1;var Gc=Zc,Xc={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"},Uc=Xc;function Yc(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?Object(arguments[e]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),r.forEach((function(e){qc(t,e,n[e])}))}return t}function qc(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Kc=function(t,e){var n=Yc({},t,e.attrs);return(0,r.bF)(v.A,Yc({},n,{icon:Uc}),null)};Kc.displayName="AlignCenterOutlined",Kc.inheritAttrs=!1;var Jc=Kc,th={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"},eh=th;function nh(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?Object(arguments[e]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),r.forEach((function(e){rh(t,e,n[e])}))}return t}function rh(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var ih=function(t,e){var n=nh({},t,e.attrs);return(0,r.bF)(v.A,nh({},n,{icon:eh}),null)};ih.displayName="AlignRightOutlined",ih.inheritAttrs=!1;var oh=ih,ah={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"},sh=ah;function lh(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?Object(arguments[e]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),r.forEach((function(e){uh(t,e,n[e])}))}return t}function uh(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var ch=function(t,e){var n=lh({},t,e.attrs);return(0,r.bF)(v.A,lh({},n,{icon:sh}),null)};ch.displayName="BorderTopOutlined",ch.inheritAttrs=!1;var hh=ch,dh={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"},ph=dh;function fh(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?Object(arguments[e]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),r.forEach((function(e){gh(t,e,n[e])}))}return t}function gh(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var vh=function(t,e){var n=fh({},t,e.attrs);return(0,r.bF)(v.A,fh({},n,{icon:ph}),null)};vh.displayName="BorderBottomOutlined",vh.inheritAttrs=!1;var mh=vh,yh={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"},bh=yh;function _h(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?Object(arguments[e]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),r.forEach((function(e){xh(t,e,n[e])}))}return t}function xh(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var wh=function(t,e){var n=_h({},t,e.attrs);return(0,r.bF)(v.A,_h({},n,{icon:bh}),null)};wh.displayName="BorderLeftOutlined",wh.inheritAttrs=!1;var Oh=wh,Sh={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"},Ah=Sh;function kh(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?Object(arguments[e]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),r.forEach((function(e){Ch(t,e,n[e])}))}return t}function Ch(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Mh=function(t,e){var n=kh({},t,e.attrs);return(0,r.bF)(v.A,kh({},n,{icon:Ah}),null)};Mh.displayName="BorderRightOutlined",Mh.inheritAttrs=!1;var Th=Mh;const Ph={class:"position"};var Ih=(0,r.pM)({__name:"Position",props:{value:{},type:{default:"line"}},emits:["update:value"],setup(t){return(t,e)=>((0,r.uX)(),(0,r.CE)("div",Ph,["line"===t.type?((0,r.uX)(),(0,r.Wv)((0,i.R1)(Je.A),{key:0,value:t.value,onChange:e[0]||(e[0]=e=>t.$emit("update:value",e.target.value))},{default:(0,r.k6)((()=>[(0,r.bF)((0,i.R1)(Wc.A),{value:"left"},{default:(0,r.k6)((()=>[(0,r.bF)((0,i.R1)(Gc))])),_:1}),(0,r.bF)((0,i.R1)(Wc.A),{value:"center"},{default:(0,r.k6)((()=>[(0,r.bF)((0,i.R1)(Jc))])),_:1}),(0,r.bF)((0,i.R1)(Wc.A),{value:"right"},{default:(0,r.k6)((()=>[(0,r.bF)((0,i.R1)(oh))])),_:1})])),_:1},8,["value"])):"round"===t.type?((0,r.uX)(),(0,r.Wv)((0,i.R1)(Je.A),{key:1,value:t.value,onChange:e[1]||(e[1]=e=>t.$emit("update:value",e.target.value))},{default:(0,r.k6)((()=>[(0,r.bF)((0,i.R1)(Wc.A),{value:"top"},{default:(0,r.k6)((()=>[(0,r.bF)((0,i.R1)(hh))])),_:1}),(0,r.bF)((0,i.R1)(Wc.A),{value:"bottom"},{default:(0,r.k6)((()=>[(0,r.bF)((0,i.R1)(mh))])),_:1}),(0,r.bF)((0,i.R1)(Wc.A),{value:"left"},{default:(0,r.k6)((()=>[(0,r.bF)((0,i.R1)(Oh))])),_:1}),(0,r.bF)((0,i.R1)(Wc.A),{value:"right"},{default:(0,r.k6)((()=>[(0,r.bF)((0,i.R1)(Th))])),_:1})])),_:1},8,["value"])):(0,r.Q3)("",!0)]))}});const $h=(0,Mc.A)(Ih,[["__scopeId","data-v-03ca26d6"]]);var Eh=$h,Rh={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"},Dh=Rh;function Lh(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?Object(arguments[e]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),r.forEach((function(e){Nh(t,e,n[e])}))}return t}function Nh(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var zh=function(t,e){var n=Lh({},t,e.attrs);return(0,r.bF)(v.A,Lh({},n,{icon:Dh}),null)};zh.displayName="FontColorsOutlined",zh.inheritAttrs=!1;var Bh=zh,Fh={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"},Wh=Fh;function jh(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?Object(arguments[e]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),r.forEach((function(e){Vh(t,e,n[e])}))}return t}function Vh(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Qh=function(t,e){var n=jh({},t,e.attrs);return(0,r.bF)(v.A,jh({},n,{icon:Wh}),null)};Qh.displayName="BoldOutlined",Qh.inheritAttrs=!1;var Hh=Qh,Zh={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"},Gh=Zh;function Xh(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?Object(arguments[e]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),r.forEach((function(e){Uh(t,e,n[e])}))}return t}function Uh(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Yh=function(t,e){var n=Xh({},t,e.attrs);return(0,r.bF)(v.A,Xh({},n,{icon:Gh}),null)};Yh.displayName="ItalicOutlined",Yh.inheritAttrs=!1;var qh=Yh;const Kh={class:"font-style"};var Jh=(0,r.pM)({__name:"FontStyle",props:{value:{}},emits:["update:value"],setup(t,{emit:e}){const n=t,o=e,a=(0,i.KR)(n.value?.bold),s=(0,i.KR)(n.value?.italic),l=(0,i.KR)(n.value?.size),u=(0,i.KR)(n.value?.color),c=()=>{o("update:value",{size:l.value,bold:a.value,italic:s.value,color:u.value})},h=()=>{a.value=!a.value,c()},d=()=>{s.value=!s.value,c()},p=t=>{u.value=t,c()},f=t=>{l.value=t,c()};return(t,e)=>((0,r.uX)(),(0,r.CE)("div",Kh,[(0,r.Lk)("span",{class:(0,Q.C4)(["cus-btn",{"active-btn":t.underline}])},[(0,r.bF)((0,i.R1)(Bh),{onClick:p}),(0,r.bF)((0,i.R1)(Ju),{value:u.value,"onUpdate:value":e[0]||(e[0]=t=>u.value=t),onChange:p},null,8,["value"])],2),(0,r.Lk)("span",{class:(0,Q.C4)(["cus-btn",{"active-btn":a.value}])},[(0,r.bF)((0,i.R1)(Hh),{onClick:h})],2),(0,r.Lk)("span",{class:(0,Q.C4)(["cus-btn",{"active-btn":s.value}])},[(0,r.bF)((0,i.R1)(qh),{onClick:d})],2),(0,r.bF)((0,i.R1)(J.A),{size:"small",value:l.value,min:12,step:1,precision:0,style:{width:"80px"},onChange:f},{addonAfter:(0,r.k6)((()=>[(0,r.eW)("px")])),_:1},8,["value"])]))}});const td=(0,Mc.A)(Jh,[["__scopeId","data-v-f5cb08d2"]]);var ed=td,nd=n(207);const rd=(t,e)=>{let{attrs:n}=e;const{included:i,vertical:o,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 h=o?{[c?"top":"bottom"]:`${u}%`,[c?"bottom":"top"]:"auto",height:`${l}%`}:{[c?"right":"left"]:`${u}%`,[c?"left":"right"]:"auto",width:`${l}%`},d=(0,A.A)((0,A.A)({},a),h);return i?(0,r.bF)("div",{class:s,style:d},null):null};rd.inheritAttrs=!1;var id=rd;const od=(t,e,n,r,i,o)=>{(0,Ne.Ay)(!n||r>0,"Slider","`Slider[step]` should be a positive number in order to make Slider[dots] work.");const a=Object.keys(e).map(parseFloat).sort(((t,e)=>t-e));if(n&&r)for(let s=i;s<=o;s+=r)-1===a.indexOf(s)&&a.push(s);return a},ad=(t,e)=>{let{attrs:n}=e;const{prefixCls:i,vertical:o,reverse:a,marks:s,dots:l,step:u,included:c,lowerBound:h,upperBound:d,max:p,min:f,dotStyle:g,activeDotStyle:v}=n,m=p-f,y=od(o,s,l,u,f,p).map((t=>{const e=Math.abs(t-f)/m*100+"%",n=!c&&t===d||c&&t<=d&&t>=h;let s=o?(0,A.A)((0,A.A)({},g),{[a?"top":"bottom"]:e}):(0,A.A)((0,A.A)({},g),{[a?"right":"left"]:e});n&&(s=(0,A.A)((0,A.A)({},s),v));const l=(0,w.A)({[`${i}-dot`]:!0,[`${i}-dot-active`]:n,[`${i}-dot-reverse`]:a});return(0,r.bF)("span",{class:l,style:s,key:t},null)}));return(0,r.bF)("div",{class:`${i}-step`},[y])};ad.inheritAttrs=!1;var sd=ad,ld=n(36476);const ud=(t,e)=>{let{attrs:n,slots:i}=e;const{class:a,vertical:l,reverse:u,marks:c,included:h,upperBound:d,lowerBound:p,max:f,min:g,onClickLabel:v}=n,m=Object.keys(c),y=i.mark,b=f-g,_=m.map(parseFloat).sort(((t,e)=>t-e)).map((t=>{const e="function"===typeof c[t]?c[t]():c[t],n="object"===typeof e&&!(0,s.zO)(e);let i=n?e.label:e;if(!i&&0!==i)return null;y&&(i=y({point:t,label:i}));const f=!h&&t===d||h&&t<=d&&t>=p,m=(0,w.A)({[`${a}-text`]:!0,[`${a}-text-active`]:f}),_={marginBottom:"-50%",[u?"top":"bottom"]:(t-g)/b*100+"%"},x={transform:`translateX(${u?"50%":"-50%"})`,msTransform:`translateX(${u?"50%":"-50%"})`,[u?"right":"left"]:(t-g)/b*100+"%"},O=l?_:x,S=n?(0,A.A)((0,A.A)({},O),e.style):O,k={[ld.A?"onTouchstartPassive":"onTouchstart"]:e=>v(e,t)};return(0,r.bF)("span",(0,o.A)({class:m,style:S,key:t,onMousedown:e=>v(e,t)},k),[i])}));return(0,r.bF)("div",{class:a},[_])};ud.inheritAttrs=!1;var cd=ud,hd=(0,r.pM)({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:c.A.oneOfType([c.A.number,c.A.string]),reverse:{type:Boolean,default:void 0},ariaLabel:String,ariaLabelledBy:String,ariaValueTextFormatter:Function,onMouseenter:{type:Function},onMouseleave:{type:Function},onMousedown:{type:Function}},setup(t,e){let{attrs:n,emit:a,expose:s}=e;const l=(0,i.IJ)(!1),u=(0,i.IJ)(),c=()=>{document.activeElement===u.value&&(l.value=!0)},h=t=>{l.value=!1,a("blur",t)},d=()=>{l.value=!1},p=()=>{var t;null===(t=u.value)||void 0===t||t.focus()},f=()=>{var t;null===(t=u.value)||void 0===t||t.blur()},g=()=>{l.value=!0,p()},v=t=>{t.preventDefault(),p(),a("mousedown",t)};s({focus:p,blur:f,clickFocus:g,ref:u});let m=null;(0,r.sV)((()=>{m=(0,ut.A)(document,"mouseup",c)})),(0,r.xo)((()=>{null===m||void 0===m||m.remove()}));const y=(0,r.EW)((()=>{const{vertical:e,offset:n,reverse:r}=t;return e?{[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:e,disabled:i,min:a,max:s,value:c,tabindex:p,ariaLabel:f,ariaLabelledBy:g,ariaValueTextFormatter:m,onMouseenter:b,onMouseleave:_}=t,x=(0,w.A)(n.class,{[`${e}-handle-click-focused`]:l.value}),O={"aria-valuemin":a,"aria-valuemax":s,"aria-valuenow":c,"aria-disabled":!!i},S=[n.style,y.value];let k,C=p||0;(i||null===p)&&(C=null),m&&(k=m(c));const M=(0,A.A)((0,A.A)((0,A.A)((0,A.A)({},n),{role:"slider",tabindex:C}),O),{class:x,onBlur:h,onKeydown:d,onMousedown:v,onMouseenter:b,onMouseleave:_,ref:u,style:S});return(0,r.bF)("div",(0,o.A)((0,o.A)({},M),{},{"aria-label":f,"aria-labelledby":g,"aria-valuetext":k}),null)}}});function dd(t,e){try{return Object.keys(e).some((n=>t.target===e[n].ref))}catch(n){return!1}}function pd(t,e){let{min:n,max:r}=e;return t<n||t>r}function fd(t){return t.touches.length>1||"touchend"===t.type.toLowerCase()&&t.touches.length>0}function gd(t,e){let{marks:n,step:r,min:i,max:o}=e;const a=Object.keys(n).map(parseFloat);if(null!==r){const e=Math.pow(10,vd(r)),n=Math.floor((o*e-i*e)/(r*e)),s=Math.min((t-i)/r,n),l=Math.round(s)*r+i;a.push(l)}const s=a.map((e=>Math.abs(t-e)));return a[s.indexOf(Math.min(...s))]}function vd(t){const e=t.toString();let n=0;return e.indexOf(".")>=0&&(n=e.length-e.indexOf(".")-1),n}function md(t,e){let n=1;return window.visualViewport&&(n=+(window.visualViewport.width/document.body.getBoundingClientRect().width).toFixed(2)),(t?e.clientY:e.pageX)/n}function yd(t,e){let n=1;return window.visualViewport&&(n=+(window.visualViewport.width/document.body.getBoundingClientRect().width).toFixed(2)),(t?e.touches[0].clientY:e.touches[0].pageX)/n}function bd(t,e){const n=e.getBoundingClientRect();return t?n.top+.5*n.height:window.scrollX+n.left+.5*n.width}function _d(t,e){let{max:n,min:r}=e;return t<=r?r:t>=n?n:t}function xd(t,e){const{step:n}=e,r=isFinite(gd(t,e))?gd(t,e):0;return null===n?r:parseFloat(r.toFixed(vd(n)))}function wd(t){t.stopPropagation(),t.preventDefault()}function Od(t,e,n){const r={increase:(t,e)=>t+e,decrease:(t,e)=>t-e},i=r[t](Object.keys(n.marks).indexOf(JSON.stringify(e)),1),o=Object.keys(n.marks)[i];return n.step?r[t](e,n.step):Object.keys(n.marks).length&&n.marks[o]?n.marks[o]:e}function Sd(t,e,n){const r="increase",i="decrease";let o=r;switch(t.keyCode){case ct.A.UP:o=e&&n?i:r;break;case ct.A.RIGHT:o=!e&&n?i:r;break;case ct.A.DOWN:o=e&&n?r:i;break;case ct.A.LEFT:o=!e&&n?r:i;break;case ct.A.END:return(t,e)=>e.max;case ct.A.HOME:return(t,e)=>e.min;case ct.A.PAGE_UP:return(t,e)=>t+2*e.step;case ct.A.PAGE_DOWN:return(t,e)=>t-2*e.step;default:return}return(t,e)=>Od(o,t,e)}var Ad=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n};function kd(){}function Cd(t){const e={id:String,min:Number,max:Number,step:Number,marks:c.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:c.A.object,maximumTrackStyle:c.A.object,handleStyle:c.A.oneOfType([c.A.object,c.A.arrayOf(c.A.object)]),trackStyle:c.A.oneOfType([c.A.object,c.A.arrayOf(c.A.object)]),railStyle:c.A.object,dotStyle:c.A.object,activeDotStyle:c.A.object,autofocus:{type:Boolean,default:void 0},draggableTrack:{type:Boolean,default:void 0}};return(0,r.pM)({compatConfig:{MODE:3},name:"CreateSlider",mixins:[nd.A,t],inheritAttrs:!1,props:(0,a.A)(e,{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:t,max:e,min:n}=this,r=!isFinite(e-n)||(e-n)%t===0;return(0,Ne.Ay)(!t||Math.floor(t)!==t||r,`Slider[max] - Slider[min] (${e-n}) should be a multiple of Slider[step] (${t})`),this.handlesRefs={},{}},mounted(){this.$nextTick((()=>{this.document=this.sliderRef&&this.sliderRef.ownerDocument;const{autofocus:t,disabled:e}=this;t&&!e&&this.focus()}))},beforeUnmount(){this.$nextTick((()=>{this.removeDocumentEvents()}))},methods:{defaultHandle(t){var{index:e,directives:n,className:i,style:o}=t,a=Ad(t,["index","directives","className","style"]);if(delete a.dragging,null===a.value)return null;const s=(0,A.A)((0,A.A)({},a),{class:i,style:o,key:e});return(0,r.bF)(hd,s,null)},onDown(t,e){let n=e;const{draggableTrack:r,vertical:i}=this.$props,{bounds:o}=this.$data,a=r&&this.positionGetValue&&this.positionGetValue(n)||[],s=dd(t,this.handlesRefs);if(this.dragTrack=r&&o.length>=2&&!s&&!a.map(((t,e)=>{const n=!!e||t>=o[e];return e===a.length-1?t<=o[e]:n})).some((t=>!t)),this.dragTrack)this.dragOffset=n,this.startBounds=[...o];else{if(s){const e=bd(i,t.target);this.dragOffset=n-e,n=e}else this.dragOffset=0;this.onStart(n)}},onMouseDown(t){if(0!==t.button)return;this.removeDocumentEvents();const e=this.$props.vertical,n=md(e,t);this.onDown(t,n),this.addDocumentMouseEvents()},onTouchStart(t){if(fd(t))return;const e=this.vertical,n=yd(e,t);this.onDown(t,n),this.addDocumentTouchEvents(),wd(t)},onFocus(t){const{vertical:e}=this;if(dd(t,this.handlesRefs)&&!this.dragTrack){const n=bd(e,t.target);this.dragOffset=0,this.onStart(n),wd(t),this.$emit("focus",t)}},onBlur(t){this.dragTrack||this.onEnd(),this.$emit("blur",t)},onMouseUp(){this.handlesRefs[this.prevMovedHandleIndex]&&this.handlesRefs[this.prevMovedHandleIndex].clickFocus()},onMouseMove(t){if(!this.sliderRef)return void this.onEnd();const e=md(this.vertical,t);this.onMove(t,e-this.dragOffset,this.dragTrack,this.startBounds)},onTouchMove(t){if(fd(t)||!this.sliderRef)return void this.onEnd();const e=yd(this.vertical,t);this.onMove(t,e-this.dragOffset,this.dragTrack,this.startBounds)},onKeyDown(t){this.sliderRef&&dd(t,this.handlesRefs)&&this.onKeyboard(t)},onClickMarkLabel(t,e){t.stopPropagation(),this.onChange({sValue:e}),this.setState({sValue:e},(()=>this.onEnd(!0)))},getSliderStart(){const t=this.sliderRef,{vertical:e,reverse:n}=this,r=t.getBoundingClientRect();return e?n?r.bottom:r.top:window.scrollX+(n?r.right:r.left)},getSliderLength(){const t=this.sliderRef;if(!t)return 0;const e=t.getBoundingClientRect();return this.vertical?e.height:e.width},addDocumentTouchEvents(){this.onTouchMoveListener=(0,ut.A)(this.document,"touchmove",this.onTouchMove),this.onTouchUpListener=(0,ut.A)(this.document,"touchend",this.onEnd)},addDocumentMouseEvents(){this.onMouseMoveListener=(0,ut.A)(this.document,"mousemove",this.onMouseMove),this.onMouseUpListener=(0,ut.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 t;this.$props.disabled||null===(t=this.handlesRefs[0])||void 0===t||t.focus()},blur(){this.$props.disabled||Object.keys(this.handlesRefs).forEach((t=>{var e,n;null===(n=null===(e=this.handlesRefs[t])||void 0===e?void 0:e.blur)||void 0===n||n.call(e)}))},calcValue(t){const{vertical:e,min:n,max:r}=this,i=Math.abs(Math.max(t,0)/this.getSliderLength()),o=e?(1-i)*(r-n)+n:i*(r-n)+n;return o},calcValueByPos(t){const e=this.reverse?-1:1,n=e*(t-this.getSliderStart()),r=this.trimAlignValue(this.calcValue(n));return r},calcOffset(t){const{min:e,max:n}=this,r=(t-e)/(n-e);return Math.max(0,100*r)},saveSlider(t){this.sliderRef=t},saveHandle(t,e){this.handlesRefs[t]=e}},render(){const{prefixCls:t,marks:e,dots:n,step:i,included:a,disabled:l,vertical:u,reverse:c,min:h,max:d,maximumTrackStyle:p,railStyle:f,dotStyle:g,activeDotStyle:v,id:m}=this,{class:y,style:b}=this.$attrs,{tracks:_,handles:x}=this.renderSlider(),O=(0,w.A)(t,y,{[`${t}-with-marks`]:Object.keys(e).length,[`${t}-disabled`]:l,[`${t}-vertical`]:u,[`${t}-horizontal`]:!u}),S={vertical:u,marks:e,included:a,lowerBound:this.getLowerBound(),upperBound:this.getUpperBound(),max:d,min:h,reverse:c,class:`${t}-mark`,onClickLabel:l?kd:this.onClickMarkLabel},k={[ld.A?"onTouchstartPassive":"onTouchstart"]:l?kd:this.onTouchStart};return(0,r.bF)("div",(0,o.A)((0,o.A)({id:m,ref:this.saveSlider,tabindex:"-1",class:O},k),{},{onMousedown:l?kd:this.onMouseDown,onMouseup:l?kd:this.onMouseUp,onKeydown:l?kd:this.onKeyDown,onFocus:l?kd:this.onFocus,onBlur:l?kd:this.onBlur,style:b}),[(0,r.bF)("div",{class:`${t}-rail`,style:(0,A.A)((0,A.A)({},p),f)},null),_,(0,r.bF)(sd,{prefixCls:t,vertical:u,reverse:c,marks:e,dots:n,step:i,included:a,lowerBound:this.getLowerBound(),upperBound:this.getUpperBound(),max:d,min:h,dotStyle:g,activeDotStyle:v},null),x,(0,r.bF)(cd,S,{mark:this.$slots.mark}),(0,s.$c)(this)])}})}const Md=(0,r.pM)({compatConfig:{MODE:3},name:"Slider",mixins:[nd.A],inheritAttrs:!1,props:{defaultValue:Number,value:Number,disabled:{type:Boolean,default:void 0},autofocus:{type:Boolean,default:void 0},tabindex:c.A.oneOfType([c.A.number,c.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 t=void 0!==this.defaultValue?this.defaultValue:this.min,e=void 0!==this.value?this.value:t;return{sValue:this.trimAlignValue(e),dragging:!1}},watch:{value:{handler(t){this.setChangeValue(t)},deep:!0},min(){const{sValue:t}=this;this.setChangeValue(t)},max(){const{sValue:t}=this;this.setChangeValue(t)}},methods:{setChangeValue(t){const e=void 0!==t?t:this.sValue,n=this.trimAlignValue(e,this.$props);n!==this.sValue&&(this.setState({sValue:n}),pd(e,this.$props)&&this.$emit("change",n))},onChange(t){const e=!(0,s.cK)(this,"value"),n=t.sValue>this.max?(0,A.A)((0,A.A)({},t),{sValue:this.max}):t;e&&this.setState(n);const r=n.sValue;this.$emit("change",r)},onStart(t){this.setState({dragging:!0});const{sValue:e}=this;this.$emit("beforeChange",e);const n=this.calcValueByPos(t);this.startValue=n,this.startPosition=t,n!==e&&(this.prevMovedHandleIndex=0,this.onChange({sValue:n}))},onEnd(t){const{dragging:e}=this;this.removeDocumentEvents(),(e||t)&&this.$emit("afterChange",this.sValue),this.setState({dragging:!1})},onMove(t,e){wd(t);const{sValue:n}=this,r=this.calcValueByPos(e);r!==n&&this.onChange({sValue:r})},onKeyboard(t){const{reverse:e,vertical:n}=this.$props,r=Sd(t,n,e);if(r){wd(t);const{sValue:e}=this,n=r(e,this.$props),i=this.trimAlignValue(n);if(i===e)return;this.onChange({sValue:i}),this.$emit("afterChange",i),this.onEnd()}},getLowerBound(){const t=this.$props.startPoint||this.$props.min;return this.$data.sValue>t?t:this.$data.sValue},getUpperBound(){return this.$data.sValue<this.$props.startPoint?this.$props.startPoint:this.$data.sValue},trimAlignValue(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(null===t)return null;const n=(0,A.A)((0,A.A)({},this.$props),e),r=_d(t,n);return xd(r,n)},getTrack(t){let{prefixCls:e,reverse:n,vertical:i,included:o,minimumTrackStyle:a,mergedTrackStyle:s,length:l,offset:u}=t;return(0,r.bF)(id,{class:`${e}-track`,vertical:i,included:o,offset:u,reverse:n,length:l,style:(0,A.A)((0,A.A)({},a),s)},null)},renderSlider(){const{prefixCls:t,vertical:e,included:n,disabled:r,minimumTrackStyle:i,trackStyle:o,handleStyle:a,tabindex:s,ariaLabelForHandle:l,ariaLabelledByForHandle:u,ariaValueTextFormatterForHandle:c,min:h,max:d,startPoint:p,reverse:f,handle:g,defaultHandle:v}=this,m=g||v,{sValue:y,dragging:b}=this,_=this.calcOffset(y),x=m({class:`${t}-handle`,prefixCls:t,vertical:e,offset:_,value:y,dragging:b,disabled:r,min:h,max:d,reverse:f,index:0,tabindex:s,ariaLabel:l,ariaLabelledBy:u,ariaValueTextFormatter:c,style:a[0]||a,ref:t=>this.saveHandle(0,t),onFocus:this.onFocus,onBlur:this.onBlur}),w=void 0!==p?this.calcOffset(p):0,O=o[0]||o;return{tracks:this.getTrack({prefixCls:t,reverse:f,vertical:e,included:n,offset:w,minimumTrackStyle:i,mergedTrackStyle:O,length:_-w}),handles:x}}}});var Td=Cd(Md);const Pd=t=>{let{value:e,handle:n,bounds:r,props:i}=t;const{allowCross:o,pushable:a}=i,s=Number(a),l=_d(e,i);let u=l;return o||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)),xd(u,i)},Id={defaultValue:c.A.arrayOf(c.A.number),value:c.A.arrayOf(c.A.number),count:Number,pushable:(0,c.t)(c.A.oneOfType([c.A.looseBool,c.A.number])),allowCross:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},reverse:{type:Boolean,default:void 0},tabindex:c.A.arrayOf(c.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}},$d=(0,r.pM)({compatConfig:{MODE:3},name:"Range",mixins:[nd.A],inheritAttrs:!1,props:(0,a.A)(Id,{count:1,allowCross:!0,pushable:!1,tabindex:[],draggableTrack:!1,ariaLabelGroupForHandles:[],ariaLabelledByGroupForHandles:[],ariaValueTextFormatterGroupForHandles:[]}),emits:["beforeChange","afterChange","change"],displayName:"Range",data(){const{count:t,min:e,max:n}=this,r=Array(...Array(t+1)).map((()=>e)),i=(0,s.cK)(this,"defaultValue")?this.defaultValue:r;let{value:o}=this;void 0===o&&(o=i);const a=o.map(((t,e)=>Pd({value:t,handle:e,props:this.$props}))),l=a[0]===n?0:a.length-1;return{sHandle:null,recent:l,bounds:a}},watch:{value:{handler(t){const{bounds:e}=this;this.setChangeValue(t||e)},deep:!0},min(){const{value:t}=this;this.setChangeValue(t||this.bounds)},max(){const{value:t}=this;this.setChangeValue(t||this.bounds)}},methods:{setChangeValue(t){const{bounds:e}=this;let n=t.map(((t,n)=>Pd({value:t,handle:n,bounds:e,props:this.$props})));if(e.length===n.length){if(n.every(((t,n)=>t===e[n])))return null}else n=t.map(((t,e)=>Pd({value:t,handle:e,props:this.$props})));if(this.setState({bounds:n}),t.some((t=>pd(t,this.$props)))){const e=t.map((t=>_d(t,this.$props)));this.$emit("change",e)}},onChange(t){const e=!(0,s.cK)(this,"value");if(e)this.setState(t);else{const e={};["sHandle","recent"].forEach((n=>{void 0!==t[n]&&(e[n]=t[n])})),Object.keys(e).length&&this.setState(e)}const n=(0,A.A)((0,A.A)({},this.$data),t),r=n.bounds;this.$emit("change",r)},positionGetValue(t){const e=this.getValue(),n=this.calcValueByPos(t),r=this.getClosestBound(n),i=this.getBoundNeedMoving(n,r),o=e[i];if(n===o)return null;const a=[...e];return a[i]=n,a},onStart(t){const{bounds:e}=this;this.$emit("beforeChange",e);const n=this.calcValueByPos(t);this.startValue=n,this.startPosition=t;const r=this.getClosestBound(n);this.prevMovedHandleIndex=this.getBoundNeedMoving(n,r),this.setState({sHandle:this.prevMovedHandleIndex,recent:this.prevMovedHandleIndex});const i=e[this.prevMovedHandleIndex];if(n===i)return;const o=[...e];o[this.prevMovedHandleIndex]=n,this.onChange({bounds:o})},onEnd(t){const{sHandle:e}=this;this.removeDocumentEvents(),e||(this.dragTrack=!1),(null!==e||t)&&this.$emit("afterChange",this.bounds),this.setState({sHandle:null})},onMove(t,e,n,r){wd(t);const{$data:i,$props:o}=this,a=o.max||100,s=o.min||0;if(n){let t=o.vertical?-e:e;t=o.reverse?-t:t;const n=a-Math.max(...r),l=s-Math.min(...r),u=Math.min(Math.max(t/(this.getSliderLength()/100),l),n),c=r.map((t=>Math.floor(Math.max(Math.min(t+u,a),s))));return void(i.bounds.map(((t,e)=>t===c[e])).some((t=>!t))&&this.onChange({bounds:c}))}const{bounds:l,sHandle:u}=this,c=this.calcValueByPos(e),h=l[u];c!==h&&this.moveTo(c)},onKeyboard(t){const{reverse:e,vertical:n}=this.$props,r=Sd(t,n,e);if(r){wd(t);const{bounds:e,sHandle:n}=this,i=e[null===n?this.recent:n],o=r(i,this.$props),a=Pd({value:o,handle:n,bounds:e,props:this.$props});if(a===i)return;const s=!0;this.moveTo(a,s)}},getClosestBound(t){const{bounds:e}=this;let n=0;for(let r=1;r<e.length-1;r+=1)t>=e[r]&&(n=r);return Math.abs(e[n+1]-t)<Math.abs(e[n]-t)&&(n+=1),n},getBoundNeedMoving(t,e){const{bounds:n,recent:r}=this;let i=e;const o=n[e+1]===n[e];return o&&n[r]===n[e]&&(i=r),o&&t!==n[e+1]&&(i=t<n[e+1]?e:e+1),i},getLowerBound(){return this.bounds[0]},getUpperBound(){const{bounds:t}=this;return t[t.length-1]},getPoints(){const{marks:t,step:e,min:n,max:r}=this,i=this.internalPointsCache;if(!i||i.marks!==t||i.step!==e){const i=(0,A.A)({},t);if(null!==e)for(let t=n;t<=r;t+=e)i[t]=t;const o=Object.keys(i).map(parseFloat);o.sort(((t,e)=>t-e)),this.internalPointsCache={marks:t,step:e,points:o}}return this.internalPointsCache.points},moveTo(t,e){const n=[...this.bounds],{sHandle:r,recent:i}=this,o=null===r?i:r;n[o]=t;let a=o;!1!==this.$props.pushable?this.pushSurroundingHandles(n,a):this.$props.allowCross&&(n.sort(((t,e)=>t-e)),a=n.indexOf(t)),this.onChange({recent:a,sHandle:a,bounds:n}),e&&(this.$emit("afterChange",n),this.setState({},(()=>{this.handlesRefs[a].focus()})),this.onEnd())},pushSurroundingHandles(t,e){const n=t[e],{pushable:r}=this,i=Number(r);let o=0;if(t[e+1]-n<i&&(o=1),n-t[e-1]<i&&(o=-1),0===o)return;const a=e+o,s=o*(t[a]-n);this.pushHandle(t,a,o,i-s)||(t[e]=t[a]-o*i)},pushHandle(t,e,n,r){const i=t[e];let o=t[e];while(n*(o-i)<r){if(!this.pushHandleOnePoint(t,e,n))return t[e]=i,!1;o=t[e]}return!0},pushHandleOnePoint(t,e,n){const r=this.getPoints(),i=r.indexOf(t[e]),o=i+n;if(o>=r.length||o<0)return!1;const a=e+n,s=r[o],{pushable:l}=this,u=Number(l),c=n*(t[a]-s);return!!this.pushHandle(t,a,n,u-c)&&(t[e]=s,!0)},trimAlignValue(t){const{sHandle:e,bounds:n}=this;return Pd({value:t,handle:e,bounds:n,props:this.$props})},ensureValueNotConflict(t,e,n){let{allowCross:r,pushable:i}=n;const o=this.$data||{},{bounds:a}=o;if(t=void 0===t?o.sHandle:t,i=Number(i),!r&&null!=t&&void 0!==a){if(t>0&&e<=a[t-1]+i)return a[t-1]+i;if(t<a.length-1&&e>=a[t+1]-i)return a[t+1]-i}return e},getTrack(t){let{bounds:e,prefixCls:n,reverse:i,vertical:o,included:a,offsets:s,trackStyle:l}=t;return e.slice(0,-1).map(((t,e)=>{const u=e+1,c=(0,w.A)({[`${n}-track`]:!0,[`${n}-track-${u}`]:!0});return(0,r.bF)(id,{class:c,vertical:o,reverse:i,included:a,offset:s[u-1],length:s[u]-s[u-1],style:l[e],key:u},null)}))},renderSlider(){const{sHandle:t,bounds:e,prefixCls:n,vertical:r,included:i,disabled:o,min:a,max:s,reverse:l,handle:u,defaultHandle:c,trackStyle:h,handleStyle:d,tabindex:p,ariaLabelGroupForHandles:f,ariaLabelledByGroupForHandles:g,ariaValueTextFormatterGroupForHandles:v}=this,m=u||c,y=e.map((t=>this.calcOffset(t))),b=`${n}-handle`,_=e.map(((e,i)=>{let u=p[i]||0;(o||null===p[i])&&(u=null);const c=t===i;return m({class:(0,w.A)({[b]:!0,[`${b}-${i+1}`]:!0,[`${b}-dragging`]:c}),prefixCls:n,vertical:r,dragging:c,offset:y[i],value:e,index:i,tabindex:u,min:a,max:s,reverse:l,disabled:o,style:d[i],ref:t=>this.saveHandle(i,t),onFocus:this.onFocus,onBlur:this.onBlur,ariaLabel:f[i],ariaLabelledBy:g[i],ariaValueTextFormatter:v[i]})}));return{tracks:this.getTrack({bounds:e,prefixCls:n,reverse:l,vertical:r,included:i,offsets:y,trackStyle:h}),handles:_}}}});var Ed=Cd($d),Rd=n(32988),Dd=(0,r.pM)({compatConfig:{MODE:3},name:"SliderTooltip",inheritAttrs:!1,props:(0,Rd.yV)(),setup(t,e){let{attrs:n,slots:a}=e;const s=(0,i.KR)(null),l=(0,i.KR)(null);function u(){dt.A.cancel(l.value),l.value=null}function c(){l.value=(0,dt.A)((()=>{var t;null===(t=s.value)||void 0===t||t.forcePopupAlign(),l.value=null}))}const h=()=>{u(),t.open&&c()};return(0,r.wB)([()=>t.open,()=>t.title],(()=>{h()}),{flush:"post",immediate:!0}),(0,r.n)((()=>{h()})),(0,r.xo)((()=>{u()})),()=>(0,r.bF)(tn.A,(0,o.A)((0,o.A)({ref:s},t),n),a)}});const Ld=t=>{const{componentCls:e,controlSize:n,dotSize:r,marginFull:i,marginPart:o,colorFillContentHover:a}=t;return{[e]:(0,A.A)((0,A.A)({},(0,T.dF)(t)),{position:"relative",height:n,margin:`${o}px ${i}px`,padding:0,cursor:"pointer",touchAction:"none",["&-vertical"]:{margin:`${i}px ${o}px`},[`${e}-rail`]:{position:"absolute",backgroundColor:t.colorFillTertiary,borderRadius:t.borderRadiusXS,transition:`background-color ${t.motionDurationMid}`},[`${e}-track`]:{position:"absolute",backgroundColor:t.colorPrimaryBorder,borderRadius:t.borderRadiusXS,transition:`background-color ${t.motionDurationMid}`},"&:hover":{[`${e}-rail`]:{backgroundColor:t.colorFillSecondary},[`${e}-track`]:{backgroundColor:t.colorPrimaryBorderHover},[`${e}-dot`]:{borderColor:a},[`${e}-handle::after`]:{boxShadow:`0 0 0 ${t.handleLineWidth}px ${t.colorPrimaryBorderHover}`},[`${e}-dot-active`]:{borderColor:t.colorPrimary}},[`${e}-handle`]:{position:"absolute",width:t.handleSize,height:t.handleSize,outline:"none",[`${e}-dragging`]:{zIndex:1},"&::before":{content:'""',position:"absolute",insetInlineStart:-t.handleLineWidth,insetBlockStart:-t.handleLineWidth,width:t.handleSize+2*t.handleLineWidth,height:t.handleSize+2*t.handleLineWidth,backgroundColor:"transparent"},"&::after":{content:'""',position:"absolute",insetBlockStart:0,insetInlineStart:0,width:t.handleSize,height:t.handleSize,backgroundColor:t.colorBgElevated,boxShadow:`0 0 0 ${t.handleLineWidth}px ${t.colorPrimaryBorder}`,borderRadius:"50%",cursor:"pointer",transition:`\n inset-inline-start ${t.motionDurationMid},\n inset-block-start ${t.motionDurationMid},\n width ${t.motionDurationMid},\n height ${t.motionDurationMid},\n box-shadow ${t.motionDurationMid}\n `},"&:hover, &:active, &:focus":{"&::before":{insetInlineStart:-((t.handleSizeHover-t.handleSize)/2+t.handleLineWidthHover),insetBlockStart:-((t.handleSizeHover-t.handleSize)/2+t.handleLineWidthHover),width:t.handleSizeHover+2*t.handleLineWidthHover,height:t.handleSizeHover+2*t.handleLineWidthHover},"&::after":{boxShadow:`0 0 0 ${t.handleLineWidthHover}px ${t.colorPrimary}`,width:t.handleSizeHover,height:t.handleSizeHover,insetInlineStart:(t.handleSize-t.handleSizeHover)/2,insetBlockStart:(t.handleSize-t.handleSizeHover)/2}}},[`${e}-mark`]:{position:"absolute",fontSize:t.fontSize},[`${e}-mark-text`]:{position:"absolute",display:"inline-block",color:t.colorTextDescription,textAlign:"center",wordBreak:"keep-all",cursor:"pointer",userSelect:"none","&-active":{color:t.colorText}},[`${e}-step`]:{position:"absolute",background:"transparent",pointerEvents:"none"},[`${e}-dot`]:{position:"absolute",width:r,height:r,backgroundColor:t.colorBgElevated,border:`${t.handleLineWidth}px solid ${t.colorBorderSecondary}`,borderRadius:"50%",cursor:"pointer",transition:`border-color ${t.motionDurationSlow}`,"&-active":{borderColor:t.colorPrimaryBorder}},[`&${e}-disabled`]:{cursor:"not-allowed",[`${e}-rail`]:{backgroundColor:`${t.colorFillSecondary} !important`},[`${e}-track`]:{backgroundColor:`${t.colorTextDisabled} !important`},[`\n ${e}-dot\n `]:{backgroundColor:t.colorBgElevated,borderColor:t.colorTextDisabled,boxShadow:"none",cursor:"not-allowed"},[`${e}-handle::after`]:{backgroundColor:t.colorBgElevated,cursor:"not-allowed",width:t.handleSize,height:t.handleSize,boxShadow:`0 0 0 ${t.handleLineWidth}px ${new me.q(t.colorTextDisabled).onBackground(t.colorBgContainer).toHexString()}`,insetInlineStart:0,insetBlockStart:0},[`\n ${e}-mark-text,\n ${e}-dot\n `]:{cursor:"not-allowed !important"}}})}},Nd=(t,e)=>{const{componentCls:n,railSize:r,handleSize:i,dotSize:o}=t,a=e?"paddingBlock":"paddingInline",s=e?"width":"height",l=e?"height":"width",u=e?"insetBlockStart":"insetInlineStart",c=e?"top":"insetInlineStart";return{[a]:r,[l]:3*r,[`${n}-rail`]:{[s]:"100%",[l]:r},[`${n}-track`]:{[l]:r},[`${n}-handle`]:{[u]:(3*r-i)/2},[`${n}-mark`]:{insetInlineStart:0,top:0,[c]:i,[s]:"100%"},[`${n}-step`]:{insetInlineStart:0,top:0,[c]:r,[s]:"100%",[l]:r},[`${n}-dot`]:{position:"absolute",[u]:(r-o)/2}}},zd=t=>{const{componentCls:e,marginPartWithMark:n}=t;return{[`${e}-horizontal`]:(0,A.A)((0,A.A)({},Nd(t,!0)),{[`&${e}-with-marks`]:{marginBottom:n}})}},Bd=t=>{const{componentCls:e}=t;return{[`${e}-vertical`]:(0,A.A)((0,A.A)({},Nd(t,!1)),{height:"100%"})}};var Fd=(0,C.A)("Slider",(t=>{const e=(0,M.h1)(t,{marginPart:(t.controlHeight-t.controlSize)/2,marginFull:t.controlSize/2,marginPartWithMark:t.controlHeightLG-t.controlSize});return[Ld(e),zd(e),Bd(e)]}),(t=>{const e=1,n=t.controlHeightLG/4,r=t.controlHeightSM/2,i=t.lineWidth+e,o=t.lineWidth+3*e;return{controlSize:n,railSize:4,handleSize:n,handleSizeHover:r,dotSize:8,handleLineWidth:i,handleLineWidthHover:o}})),Wd=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n};const jd=t=>"number"===typeof t?t.toString():"",Vd=()=>({id:String,prefixCls:String,tooltipPrefixCls:String,range:(0,u.tK)([Boolean,Object]),reverse:(0,u.HE)(),min:Number,max:Number,step:(0,u.tK)([Object,Number]),marks:(0,u.ge)(),dots:(0,u.HE)(),value:(0,u.tK)([Array,Number]),defaultValue:(0,u.tK)([Array,Number]),included:(0,u.HE)(),disabled:(0,u.HE)(),vertical:(0,u.HE)(),tipFormatter:(0,u.tK)([Function,Object],(()=>jd)),tooltipOpen:(0,u.HE)(),tooltipVisible:(0,u.HE)(),tooltipPlacement:(0,u.WO)(),getTooltipPopupContainer:(0,u.Fg)(),autofocus:(0,u.HE)(),handleStyle:(0,u.tK)([Array,Object]),trackStyle:(0,u.tK)([Array,Object]),onChange:(0,u.Fg)(),onAfterChange:(0,u.Fg)(),onFocus:(0,u.Fg)(),onBlur:(0,u.Fg)(),"onUpdate:value":(0,u.Fg)()}),Qd=(0,r.pM)({compatConfig:{MODE:3},name:"ASlider",inheritAttrs:!1,props:Vd(),slots:Object,setup(t,e){let{attrs:n,slots:a,emit:s,expose:l}=e;const{prefixCls:u,rootPrefixCls:c,direction:h,getPopupContainer:d,configProvider:p}=(0,O.A)("slider",t),[f,g]=Fd(u),v=(0,ze.db)(),m=(0,i.KR)(),y=(0,i.KR)({}),b=(t,e)=>{y.value[t]=e},_=(0,r.EW)((()=>t.tooltipPlacement?t.tooltipPlacement:t.vertical?"rtl"===h.value?"left":"right":"top")),x=()=>{var t;null===(t=m.value)||void 0===t||t.focus()},S=()=>{var t;null===(t=m.value)||void 0===t||t.blur()},A=t=>{s("update:value",t),s("change",t),v.onFieldChange()},k=t=>{s("blur",t)};l({focus:x,blur:S});const C=e=>{var{tooltipPrefixCls:n}=e,i=e.info,{value:a,dragging:s,index:l}=i,h=Wd(i,["value","dragging","index"]);const{tipFormatter:p,tooltipOpen:f=t.tooltipVisible,getTooltipPopupContainer:g}=t,v=!!p&&(y.value[l]||s),m=f||void 0===f&&v;return(0,r.bF)(Dd,{prefixCls:n,title:p?p(a):"",open:m,placement:_.value,transitionName:`${c.value}-zoom-down`,key:l,overlayClassName:`${u.value}-tooltip`,getPopupContainer:g||(null===d||void 0===d?void 0:d.value)},{default:()=>[(0,r.bF)(hd,(0,o.A)((0,o.A)({},h),{},{value:a,onMouseenter:()=>b(l,!0),onMouseleave:()=>b(l,!1)}),null)]})};return()=>{const{tooltipPrefixCls:e,range:i,id:s=v.id.value}=t,l=Wd(t,["tooltipPrefixCls","range","id"]),c=p.getPrefixCls("tooltip",e),d=(0,w.A)(n.class,{[`${u.value}-rtl`]:"rtl"===h.value},g.value);let y;return"rtl"!==h.value||l.vertical||(l.reverse=!l.reverse),"object"===typeof i&&(y=i.draggableTrack),f(i?(0,r.bF)(Ed,(0,o.A)((0,o.A)((0,o.A)({},n),l),{},{step:l.step,draggableTrack:y,class:d,ref:m,handle:t=>C({tooltipPrefixCls:c,prefixCls:u.value,info:t}),prefixCls:u.value,onChange:A,onBlur:k}),{mark:a.mark}):(0,r.bF)(Td,(0,o.A)((0,o.A)((0,o.A)({},n),l),{},{id:s,step:l.step,class:d,ref:m,handle:t=>C({tooltipPrefixCls:c,prefixCls:u.value,info:t}),prefixCls:u.value,onChange:A,onBlur:k}),{mark:a.mark}))}}});var Hd=(0,u.GU)(Qd);const Zd={class:"cus-slider"};var Gd=(0,r.pM)({__name:"CusSlider",props:{value:{}},emits:["update:value"],setup(t){return(t,e)=>((0,r.uX)(),(0,r.CE)("div",Zd,[(0,r.bF)((0,i.R1)(Hd),{value:t.value,onChange:e[0]||(e[0]=e=>t.$emit("update:value",e)),"tip-formatter":t=>`${t}%`},null,8,["value","tip-formatter"]),(0,r.bF)((0,i.R1)(J.A),{value:t.value,"addon-after":"%"},null,8,["value"])]))}});const Xd=(0,Mc.A)(Gd,[["__scopeId","data-v-50371b14"]]);var Ud=Xd,Yd=(0,r.pM)({__name:"CusFormItem",props:{item:{},modelValue:{}},emits:["update:modelValue"],setup(t,{emit:e}){const n=t,o=e,a=(0,i.KR)(n.modelValue);return(0,r.wB)((()=>a.value),(()=>{o("update:modelValue",a.value)})),(t,e)=>((0,r.uX)(),(0,r.Wv)((0,i.R1)(H.A),{label:"divider"!==t.item.type?t.item.label:"",name:t.item.prop,rules:t.item.rules},{default:(0,r.k6)((()=>["divider"===t.item.type?((0,r.uX)(),(0,r.Wv)((0,i.R1)(Y),{key:0,style:{margin:"0"}},{default:(0,r.k6)((()=>[(0,r.eW)((0,Q.v_)(t.item.label),1)])),_:1})):"input"===t.item.type?((0,r.uX)(),(0,r.Wv)((0,i.R1)(q.Ay),(0,r.v6)({key:1,value:a.value,"onUpdate:value":e[0]||(e[0]=t=>a.value=t)},t.item?.fieldProps),null,16,["value"])):"select"===t.item.type?((0,r.uX)(),(0,r.Wv)((0,i.R1)(K.Ay),(0,r.v6)({key:2,value:a.value,"onUpdate:value":e[1]||(e[1]=t=>a.value=t)},t.item?.fieldProps),null,16,["value"])):"inputNumber"===t.item.type?((0,r.uX)(),(0,r.Wv)((0,i.R1)(J.A),(0,r.v6)({key:3,value:a.value,"onUpdate:value":e[2]||(e[2]=t=>a.value=t)},t.item?.fieldProps,{style:{width:"100%"}}),null,16,["value"])):"image"===t.item.type?((0,r.uX)(),(0,r.Wv)((0,i.R1)(De),(0,r.v6)({key:4,value:a.value,"onUpdate:value":e[3]||(e[3]=t=>a.value=t)},t.item?.fieldProps),null,16,["value"])):"checkboxGroup"===t.item.type?((0,r.uX)(),(0,r.Wv)((0,i.R1)(Ke),(0,r.v6)({key:5,value:a.value,"onUpdate:value":e[4]||(e[4]=t=>a.value=t)},t.item?.fieldProps),null,16,["value"])):"backgroundSelect"===t.item.type?((0,r.uX)(),(0,r.Wv)(Pc,(0,r.v6)({key:6,background:a.value,"onUpdate:background":e[5]||(e[5]=t=>a.value=t)},t.item?.fieldProps),null,16,["background"])):"colorSelect"===t.item.type?((0,r.uX)(),(0,r.Wv)(Rc,(0,r.v6)({key:7,value:a.value,"onUpdate:value":e[6]||(e[6]=t=>a.value=t)},t.item?.fieldProps),null,16,["value"])):"colorScheme"===t.item.type?((0,r.uX)(),(0,r.Wv)(Fc,(0,r.v6)({key:8,value:a.value,"onUpdate:value":e[7]||(e[7]=t=>a.value=t)},t.item?.fieldProps),null,16,["value"])):"radioGroup"===t.item.type?((0,r.uX)(),(0,r.Wv)((0,i.R1)(Je.A),(0,r.v6)({key:9,value:a.value,"onUpdate:value":e[8]||(e[8]=t=>a.value=t),size:"small"},t.item?.fieldProps),null,16,["value"])):"position"===t.item.type?((0,r.uX)(),(0,r.Wv)(Eh,(0,r.v6)({key:10,value:a.value,"onUpdate:value":e[9]||(e[9]=t=>a.value=t)},t.item?.fieldProps),null,16,["value"])):"fontStyle"===t.item.type?((0,r.uX)(),(0,r.Wv)(ed,(0,r.v6)({key:11,value:a.value,"onUpdate:value":e[10]||(e[10]=t=>a.value=t)},t.item?.fieldProps),null,16,["value"])):"slider"===t.item.type?((0,r.uX)(),(0,r.Wv)((0,i.R1)(ze.Ay),{key:12},{default:(0,r.k6)((()=>[(0,r.bF)(Ud,(0,r.v6)({value:a.value,"onUpdate:value":e[11]||(e[11]=t=>a.value=t)},t.item?.fieldProps),null,16,["value"])])),_:1})):(0,r.Q3)("",!0),t.item.tip?((0,r.uX)(),(0,r.Wv)((0,i.R1)(tn.A),{key:13,title:t.item.tip},{default:(0,r.k6)((()=>[(0,r.bF)((0,i.R1)(en.A),{style:{color:"#666"}})])),_:1},8,["title"])):(0,r.Q3)("",!0)])),_:1},8,["label","name","rules"]))}});const qd=(0,Mc.A)(Yd,[["__scopeId","data-v-5d8d916c"]]);var Kd=qd,Jd=n(11059);function tp(t){return"function"===typeof t||"[object Object]"===Object.prototype.toString.call(t)&&!(0,r.vv)(t)}var ep=(0,r.pM)({props:{columns:{type:Array,default:()=>[]},formModel:{type:Object,default:()=>({})}},emits:["change"],setup(t,{emit:e}){const n=(0,i.KR)({}),o=(0,i.KR)(),a=(0,i.KR)({}),s=(0,r.EW)((()=>t.columns.map((t=>({...t,rules:t?.rules||[]}))))),l=t=>{t?.forEach((t=>{if("group"===t.type)l(t.children);else if("dependency"===t.type){const e=t.children?.((0,Jd.pick)(n.value,t.name||[]),n);l(e)}else{if("divider"===t.type)return;n.value[t.prop]=t?.defaultValue,t.format?t.format(a,t?.defaultValue):a.value[t.prop]=t?.defaultValue}}))};(0,r.wB)((()=>s.value),(t=>{t&&l(t)}),{immediate:!0}),(0,r.wB)((()=>n.value),(t=>{e("change",t,a.value)}),{deep:!0,immediate:!0});const u=(t,e)=>{n.value[e.prop]=t,e.format?e.format(a,t):a.value[e.prop]=t},c=t=>{switch(t.type){case"dependency":{const e=t.children?.((0,Jd.pick)(n.value,t.name||[]),n);return e&&l(e),d(e)}case"group":return h(t);default:return(0,r.bF)(Kd,{key:t.prop,item:t,modelValue:n.value[t.prop],"onUpdate:modelValue":e=>{u(e,t)}},null)}},h=t=>(0,r.bF)(j,null,{default:()=>[(0,r.bF)(W,{key:t.prop,header:t.label},{default:()=>[t.children?.map((t=>c(t)))]})]}),d=t=>t.map((t=>{switch(t.type){case"group":return h(t);default:return c(t)}}));return()=>{let t;return(0,r.bF)(V.Ay,{model:n,colon:!1,"label-col":{span:8},ref:o,layout:"horizontal",size:"small"},tp(t=d(s.value))?t:{default:()=>[t]})}}})},96653:function(t,e,n){"use strict";n.r(e),n.d(e,{Config:function(){return g},default:function(){return v},defaultPropsValue:function(){return a},titleProps:function(){return o}});var r=n(73913),i=n(1980);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}},a={container:{style:{background:{type:"none"}},props:{width:300,height:80}},props:{text:"标题内容",fontSize:24,color:"#fff",fontWeight:"bold",textAlign:"left",direction:"horizontal"}};function s(t){const e={};for(const n in t)if("object"===typeof t[n])switch(n){case"background":"none"===t[n].type&&(e[n]="none"),"color"===t[n].type&&(e[n]=t[n].color),"image"===t[n].type&&(e[n+"-image"]=`url(${t[n].image}) no-repeat center center`,e[n+"-size"]=t[n].fillType);break;case"border":"none"===t[n].type?e[n]="none":e[n]=`${t[n].width}px ${t[n].type} ${t[n].color}`;break;case"borderRadius":"all"===t[n].type?e[n]=`${t[n].value}${t[n].unit}`:e[n]=`${t[n].topLeft}${t[n].unit} ${t[n].topRight}${t[n].unit} ${t[n].bottomLeft}${t[n].unit} ${t[n].bottomRight}${t[n].unit}`;break;case"boxShadow":t[n].enabled&&(e[n]=`${t[n].offsetX}px ${t[n].offsetY}px ${t[n].blurRadius}px ${t[n].spreadRadius}px ${t[n].color} ${t[n].inset?"inset":""}`);break;case"backdropFilter":t[n].enabled&&(e[n]=`blur(${t[n].blur}px)`);break}else"number"===typeof t[n]?e[n]=t[n]+"px":"string"===typeof t[n]&&(e[n]=t[n]);return e}var l=(0,r.pM)({__name:"index",props:o,setup(t){const e=t,n=(0,r.EW)((()=>{const t=s(e),n={};return t.color.length>9&&(n.backgroundImage=t.color,n.webkitBackgroundClip="text",n.webkitTextFillColor="transparent"),{...n,...t,width:"100%",height:"100%",lineHeight:e.height+"px"}}));return(t,e)=>((0,r.uX)(),(0,r.CE)("div",{class:"cus-title",style:(0,i.Tr)(n.value)},(0,i.v_)(t.text),5))}});const u=l;var c=u,h=n(78753),d=n(42667),p=(0,r.pM)({__name:"Config",props:o,emits:["change"],setup(t,{emit:e}){const n=t,i=e,o=(0,r.EW)((()=>[{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=t=>{i("change",t)};return(t,e)=>((0,r.uX)(),(0,r.Wv)((0,h.R1)(d.O),(0,r.v6)({columns:o.value},t.$attrs,{onChange:a}),null,16,["columns"]))}});const f=p;var g=f;c.Config=g,c.install=t=>(t.component("FmDashboardTitle",c),t);var v=c},30185:function(t,e,n){"use strict";n.d(e,{cM:function(){return b},z1:function(){return O}});n(30381);var r=n(68525),i=n(74655),o=2,a=.16,s=.05,l=.05,u=.15,c=5,h=4,d=[{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(t){var e=t.r,n=t.g,i=t.b,o=(0,r.wE)(e,n,i);return{h:360*o.h,s:o.s,v:o.v}}function f(t){var e=t.r,n=t.g,i=t.b;return"#".concat((0,r.Ob)(e,n,i,!1))}function g(t,e,n){var r=n/100,i={r:(e.r-t.r)*r+t.r,g:(e.g-t.g)*r+t.g,b:(e.b-t.b)*r+t.b};return i}function v(t,e,n){var r;return r=Math.round(t.h)>=60&&Math.round(t.h)<=240?n?Math.round(t.h)-o*e:Math.round(t.h)+o*e:n?Math.round(t.h)+o*e:Math.round(t.h)-o*e,r<0?r+=360:r>=360&&(r-=360),r}function m(t,e,n){return 0===t.h&&0===t.s?t.s:(r=n?t.s-a*e:e===h?t.s+a:t.s+s*e,r>1&&(r=1),n&&e===c&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2)));var r}function y(t,e,n){var r;return r=n?t.v+l*e:t.v-u*e,r>1&&(r=1),Number(r.toFixed(2))}function b(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[],r=(0,i.RO)(t),o=c;o>0;o-=1){var a=p(r),s=f((0,i.RO)({h:v(a,o,!0),s:m(a,o,!0),v:y(a,o,!0)}));n.push(s)}n.push(f(r));for(var l=1;l<=h;l+=1){var u=p(r),b=f((0,i.RO)({h:v(u,l),s:m(u,l),v:y(u,l)}));n.push(b)}return"dark"===e.theme?d.map((function(t){var r=t.index,o=t.opacity,a=f(g((0,i.RO)(e.backgroundColor||"#141414"),(0,i.RO)(n[r]),100*o));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(t){x[t]=b(_[t]),x[t].primary=x[t][5],w[t]=b(_[t],{theme:"dark",backgroundColor:"#141414"}),w[t].primary=w[t][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(t,e,n){"use strict";n.d(e,{A:function(){return ht}});n(30381);var r=n(73913),i=n(30185),o=n(78753),a=Symbol("iconContext"),s=function(){return(0,r.WQ)(a,{prefixCls:(0,o.KR)("anticon"),rootClassName:(0,o.KR)(""),csp:(0,o.KR)()})};function l(){return!("undefined"===typeof window||!window.document||!window.document.createElement)}function u(t,e){return!!t&&(!!t.contains&&t.contains(e))}var c="data-vc-order",h="vc-icon-key",d=new Map;function p(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.mark;return e?e.startsWith("data-")?e:"data-".concat(e):h}function f(t){if(t.attachTo)return t.attachTo;var e=document.querySelector("head");return e||document.body}function g(t){return"queue"===t?"prependQueue":t?"prepend":"append"}function v(t){return Array.from((d.get(t)||t).children).filter((function(t){return"STYLE"===t.tagName}))}function m(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!l())return null;var n=e.csp,r=e.prepend,i=document.createElement("style");i.setAttribute(c,g(r)),n&&n.nonce&&(i.nonce=n.nonce),i.innerHTML=t;var o=f(e),a=o.firstChild;if(r){if("queue"===r){var s=v(o).filter((function(t){return["prepend","prependQueue"].includes(t.getAttribute(c))}));if(s.length)return o.insertBefore(i,s[s.length-1].nextSibling),i}o.insertBefore(i,a)}else o.appendChild(i);return i}function y(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=f(e);return v(n).find((function(n){return n.getAttribute(p(e))===t}))}function b(t,e){var n=d.get(t);if(!n||!u(document,n)){var r=m("",e),i=r.parentNode;d.set(t,i),t.removeChild(r)}}function _(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=f(n);b(r,n);var i=y(e,n);if(i)return n.csp&&n.csp.nonce&&i.nonce!==n.csp.nonce&&(i.nonce=n.csp.nonce),i.innerHTML!==t&&(i.innerHTML=t),i;var o=m(t,n);return o.setAttribute(p(n),e),o}function x(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?Object(arguments[e]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),r.forEach((function(e){w(t,e,n[e])}))}return t}function w(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function O(t,e){0}function S(t,e){O(t,"[@ant-design/icons-vue] ".concat(e))}function A(t){return"object"===typeof t&&"string"===typeof t.name&&"string"===typeof t.theme&&("object"===typeof t.icon||"function"===typeof t.icon)}function k(t,e,n){return n?(0,r.h)(t.tag,x({key:e},n,t.attrs),(t.children||[]).map((function(n,r){return k(n,"".concat(e,"-").concat(t.tag,"-").concat(r))}))):(0,r.h)(t.tag,x({key:e},t.attrs),(t.children||[]).map((function(n,r){return k(n,"".concat(e,"-").concat(t.tag,"-").concat(r))})))}function C(t){return(0,i.cM)(t)[0]}function M(t){return t?Array.isArray(t)?t:[t]:[]}var T="\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 P(t){return t&&t.getRootNode&&t.getRootNode()}function I(t){return!!l()&&P(t)instanceof ShadowRoot}function $(t){return I(t)?P(t):null}var E=function(){var t=s(),e=t.prefixCls,n=t.csp,i=(0,r.nI)(),o=T;e&&(o=o.replace(/anticon/g,e.value)),(0,r.dY)((function(){if(l()){var t=i.vnode.el,e=$(t);_(o,"@ant-design-vue-icons",{prepend:!0,csp:n.value,attachTo:e})}}))},R=["icon","primaryColor","secondaryColor"];function D(t,e){if(null==t)return{};var n,r,i=L(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function L(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(i[n]=t[n]);return i}function N(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?Object(arguments[e]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),r.forEach((function(e){z(t,e,n[e])}))}return t}function z(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var B=(0,o.Kh)({primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1});function F(t){var e=t.primaryColor,n=t.secondaryColor;B.primaryColor=e,B.secondaryColor=n||C(e),B.calculated=!!n}function W(){return N({},B)}var j=function(t,e){var n=N({},t,e.attrs),r=n.icon,i=n.primaryColor,o=n.secondaryColor,a=D(n,R),s=B;if(i&&(s={primaryColor:i,secondaryColor:o||C(i)}),S(A(r),"icon should be icon definiton, but got ".concat(r)),!A(r))return null;var l=r;return l&&"function"===typeof l.icon&&(l=N({},l,{icon:l.icon(s.primaryColor,s.secondaryColor)})),k(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=W,j.setTwoToneColors=F;var V=j;function Q(t,e){return U(t)||X(t,e)||Z(t,e)||H()}function H(){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 Z(t,e){if(t){if("string"===typeof t)return G(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?G(t,e):void 0}}function G(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function X(t,e){var n=null==t?null:"undefined"!==typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o=[],a=!0,s=!1;try{for(n=n.call(t);!(a=(r=n.next()).done);a=!0)if(o.push(r.value),e&&o.length===e)break}catch(l){s=!0,i=l}finally{try{a||null==n["return"]||n["return"]()}finally{if(s)throw i}}return o}}function U(t){if(Array.isArray(t))return t}function Y(t){var e=M(t),n=Q(e,2),r=n[0],i=n[1];return V.setTwoToneColors({primaryColor:r,secondaryColor:i})}function q(){var t=V.getTwoToneColors();return t.calculated?[t.primaryColor,t.secondaryColor]:t.primaryColor}var K=(0,r.pM)({name:"InsertStyles",setup:function(){return E(),function(){return null}}}),J=["class","icon","spin","rotate","tabindex","twoToneColor","onClick"];function tt(t,e){return ot(t)||it(t,e)||nt(t,e)||et()}function et(){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 nt(t,e){if(t){if("string"===typeof t)return rt(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?rt(t,e):void 0}}function rt(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function it(t,e){var n=null==t?null:"undefined"!==typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o=[],a=!0,s=!1;try{for(n=n.call(t);!(a=(r=n.next()).done);a=!0)if(o.push(r.value),e&&o.length===e)break}catch(l){s=!0,i=l}finally{try{a||null==n["return"]||n["return"]()}finally{if(s)throw i}}return o}}function ot(t){if(Array.isArray(t))return t}function at(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?Object(arguments[e]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),r.forEach((function(e){st(t,e,n[e])}))}return t}function st(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function lt(t,e){if(null==t)return{};var n,r,i=ut(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function ut(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(i[n]=t[n]);return i}Y(i.z1.primary);var ct=function(t,e){var n,i=at({},t,e.attrs),o=i["class"],a=i.icon,l=i.spin,u=i.rotate,c=i.tabindex,h=i.twoToneColor,d=i.onClick,p=lt(i,J),f=s(),g=f.prefixCls,v=f.rootClassName,m=(n={},st(n,v.value,!!v.value),st(n,g.value,!0),st(n,"".concat(g.value,"-").concat(a.name),Boolean(a.name)),st(n,"".concat(g.value,"-spin"),!!l||"loading"===a.name),n),y=c;void 0===y&&d&&(y=-1);var b=u?{msTransform:"rotate(".concat(u,"deg)"),transform:"rotate(".concat(u,"deg)")}:void 0,_=M(h),x=tt(_,2),w=x[0],O=x[1];return(0,r.bF)("span",at({role:"img","aria-label":a.name},p,{onClick:d,class:[m,o],tabindex:y}),[(0,r.bF)(V,{icon:a,primaryColor:w,secondaryColor:O,style:b},null),(0,r.bF)(K,null,null)])};ct.props={spin:Boolean,rotate:Number,icon:Object,twoToneColor:[String,Array]},ct.displayName="AntdIcon",ct.inheritAttrs=!1,ct.getTwoToneColor=q,ct.setTwoToneColor=Y;var ht=ct},46299:function(t,e,n){"use strict";n.d(e,{A:function(){return c}});var r=n(73913),i={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"},o=i,a=n(29847);function s(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?Object(arguments[e]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),r.forEach((function(e){l(t,e,n[e])}))}return t}function l(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var u=function(t,e){var n=s({},t,e.attrs);return(0,r.bF)(a.A,s({},n,{icon:o}),null)};u.displayName="CheckCircleFilled",u.inheritAttrs=!1;var c=u},82339:function(t,e,n){"use strict";n.d(e,{A:function(){return c}});var r=n(73913),i={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"},o=i,a=n(29847);function s(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?Object(arguments[e]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),r.forEach((function(e){l(t,e,n[e])}))}return t}function l(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var u=function(t,e){var n=s({},t,e.attrs);return(0,r.bF)(a.A,s({},n,{icon:o}),null)};u.displayName="CloseCircleFilled",u.inheritAttrs=!1;var c=u},23273:function(t,e,n){"use strict";n.d(e,{A:function(){return c}});var r=n(73913),i={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"},o=i,a=n(29847);function s(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?Object(arguments[e]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),r.forEach((function(e){l(t,e,n[e])}))}return t}function l(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var u=function(t,e){var n=s({},t,e.attrs);return(0,r.bF)(a.A,s({},n,{icon:o}),null)};u.displayName="CloseOutlined",u.inheritAttrs=!1;var c=u},87781:function(t,e,n){"use strict";n.d(e,{A:function(){return c}});var r=n(73913),i={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"},o=i,a=n(29847);function s(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?Object(arguments[e]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),r.forEach((function(e){l(t,e,n[e])}))}return t}function l(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var u=function(t,e){var n=s({},t,e.attrs);return(0,r.bF)(a.A,s({},n,{icon:o}),null)};u.displayName="DatabaseOutlined",u.inheritAttrs=!1;var c=u},27577:function(t,e,n){"use strict";n.d(e,{A:function(){return c}});var r=n(73913),i={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"},o=i,a=n(29847);function s(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?Object(arguments[e]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),r.forEach((function(e){l(t,e,n[e])}))}return t}function l(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var u=function(t,e){var n=s({},t,e.attrs);return(0,r.bF)(a.A,s({},n,{icon:o}),null)};u.displayName="DownOutlined",u.inheritAttrs=!1;var c=u},51911:function(t,e,n){"use strict";n.d(e,{A:function(){return c}});var r=n(73913),i={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"},o=i,a=n(29847);function s(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?Object(arguments[e]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),r.forEach((function(e){l(t,e,n[e])}))}return t}function l(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var u=function(t,e){var n=s({},t,e.attrs);return(0,r.bF)(a.A,s({},n,{icon:o}),null)};u.displayName="ExclamationCircleFilled",u.inheritAttrs=!1;var c=u},34631:function(t,e,n){"use strict";n.d(e,{A:function(){return c}});var r=n(73913),i={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"},o=i,a=n(29847);function s(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?Object(arguments[e]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),r.forEach((function(e){l(t,e,n[e])}))}return t}function l(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var u=function(t,e){var n=s({},t,e.attrs);return(0,r.bF)(a.A,s({},n,{icon:o}),null)};u.displayName="EyeOutlined",u.inheritAttrs=!1;var c=u},33684:function(t,e,n){"use strict";n.d(e,{A:function(){return c}});var r=n(73913),i={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"},o=i,a=n(29847);function s(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?Object(arguments[e]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),r.forEach((function(e){l(t,e,n[e])}))}return t}function l(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var u=function(t,e){var n=s({},t,e.attrs);return(0,r.bF)(a.A,s({},n,{icon:o}),null)};u.displayName="InfoCircleFilled",u.inheritAttrs=!1;var c=u},7649:function(t,e,n){"use strict";n.d(e,{A:function(){return c}});var r=n(73913),i={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"},o=i,a=n(29847);function s(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?Object(arguments[e]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),r.forEach((function(e){l(t,e,n[e])}))}return t}function l(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var u=function(t,e){var n=s({},t,e.attrs);return(0,r.bF)(a.A,s({},n,{icon:o}),null)};u.displayName="InfoCircleOutlined",u.inheritAttrs=!1;var c=u},2167:function(t,e,n){"use strict";n.d(e,{A:function(){return c}});var r=n(73913),i={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"},o=i,a=n(29847);function s(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?Object(arguments[e]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),r.forEach((function(e){l(t,e,n[e])}))}return t}function l(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var u=function(t,e){var n=s({},t,e.attrs);return(0,r.bF)(a.A,s({},n,{icon:o}),null)};u.displayName="LoadingOutlined",u.inheritAttrs=!1;var c=u},78282:function(t,e,n){"use strict";n.d(e,{A:function(){return c}});var r=n(73913),i={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"},o=i,a=n(29847);function s(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?Object(arguments[e]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),r.forEach((function(e){l(t,e,n[e])}))}return t}function l(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var u=function(t,e){var n=s({},t,e.attrs);return(0,r.bF)(a.A,s({},n,{icon:o}),null)};u.displayName="PlusOutlined",u.inheritAttrs=!1;var c=u},82205:function(t,e,n){"use strict";n.d(e,{A:function(){return c}});var r=n(73913),i={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"},o=i,a=n(29847);function s(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?Object(arguments[e]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),r.forEach((function(e){l(t,e,n[e])}))}return t}function l(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var u=function(t,e){var n=s({},t,e.attrs);return(0,r.bF)(a.A,s({},n,{icon:o}),null)};u.displayName="SearchOutlined",u.inheritAttrs=!1;var c=u},93648:function(t,e,n){"use strict";n.d(e,{A:function(){return c}});var r=n(73913),i={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"},o=i,a=n(29847);function s(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?Object(arguments[e]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),r.forEach((function(e){l(t,e,n[e])}))}return t}function l(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var u=function(t,e){var n=s({},t,e.attrs);return(0,r.bF)(a.A,s({},n,{icon:o}),null)};u.displayName="SkinOutlined",u.inheritAttrs=!1;var c=u},68525:function(t,e,n){"use strict";n.d(e,{H:function(){return h},K6:function(){return o},Me:function(){return u},Ob:function(){return c},YL:function(){return s},_:function(){return i},g8:function(){return f},n6:function(){return p},oS:function(){return g},wE:function(){return l}});var r=n(98897);function i(t,e,n){return{r:255*(0,r.Cg)(t,255),g:255*(0,r.Cg)(e,255),b:255*(0,r.Cg)(n,255)}}function o(t,e,n){t=(0,r.Cg)(t,255),e=(0,r.Cg)(e,255),n=(0,r.Cg)(n,255);var i=Math.max(t,e,n),o=Math.min(t,e,n),a=0,s=0,l=(i+o)/2;if(i===o)s=0,a=0;else{var u=i-o;switch(s=l>.5?u/(2-i-o):u/(i+o),i){case t:a=(e-n)/u+(e<n?6:0);break;case e:a=(n-t)/u+2;break;case n:a=(t-e)/u+4;break;default:break}a/=6}return{h:a,s:s,l:l}}function a(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+6*n*(e-t):n<.5?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function s(t,e,n){var i,o,s;if(t=(0,r.Cg)(t,360),e=(0,r.Cg)(e,100),n=(0,r.Cg)(n,100),0===e)o=n,s=n,i=n;else{var l=n<.5?n*(1+e):n+e-n*e,u=2*n-l;i=a(u,l,t+1/3),o=a(u,l,t),s=a(u,l,t-1/3)}return{r:255*i,g:255*o,b:255*s}}function l(t,e,n){t=(0,r.Cg)(t,255),e=(0,r.Cg)(e,255),n=(0,r.Cg)(n,255);var i=Math.max(t,e,n),o=Math.min(t,e,n),a=0,s=i,l=i-o,u=0===i?0:l/i;if(i===o)a=0;else{switch(i){case t:a=(e-n)/l+(e<n?6:0);break;case e:a=(n-t)/l+2;break;case n:a=(t-e)/l+4;break;default:break}a/=6}return{h:a,s:u,v:s}}function u(t,e,n){t=6*(0,r.Cg)(t,360),e=(0,r.Cg)(e,100),n=(0,r.Cg)(n,100);var i=Math.floor(t),o=t-i,a=n*(1-e),s=n*(1-o*e),l=n*(1-(1-o)*e),u=i%6,c=[n,s,a,a,l,n][u],h=[l,n,n,s,a,a][u],d=[a,a,l,n,n,s][u];return{r:255*c,g:255*h,b:255*d}}function c(t,e,n,i){var o=[(0,r.wl)(Math.round(t).toString(16)),(0,r.wl)(Math.round(e).toString(16)),(0,r.wl)(Math.round(n).toString(16))];return i&&o[0].startsWith(o[0].charAt(1))&&o[1].startsWith(o[1].charAt(1))&&o[2].startsWith(o[2].charAt(1))?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0):o.join("")}function h(t,e,n,i,o){var a=[(0,r.wl)(Math.round(t).toString(16)),(0,r.wl)(Math.round(e).toString(16)),(0,r.wl)(Math.round(n).toString(16)),(0,r.wl)(d(i))];return o&&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 d(t){return Math.round(255*parseFloat(t)).toString(16)}function p(t){return f(t)/255}function f(t){return parseInt(t,16)}function g(t){return{r:t>>16,g:(65280&t)>>8,b:255&t}}},10577:function(t,e,n){"use strict";n.d(e,{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(t,e,n){"use strict";n.d(e,{RO:function(){return a}});var r=n(68525),i=n(10577),o=n(98897);function a(t){var e={r:0,g:0,b:0},n=1,i=null,a=null,s=null,l=!1,u=!1;return"string"===typeof t&&(t=p(t)),"object"===typeof t&&(f(t.r)&&f(t.g)&&f(t.b)?(e=(0,r._)(t.r,t.g,t.b),l=!0,u="%"===String(t.r).substr(-1)?"prgb":"rgb"):f(t.h)&&f(t.s)&&f(t.v)?(i=(0,o.Px)(t.s),a=(0,o.Px)(t.v),e=(0,r.Me)(t.h,i,a),l=!0,u="hsv"):f(t.h)&&f(t.s)&&f(t.l)&&(i=(0,o.Px)(t.s),s=(0,o.Px)(t.l),e=(0,r.YL)(t.h,i,s),l=!0,u="hsl"),Object.prototype.hasOwnProperty.call(t,"a")&&(n=t.a)),n=(0,o.TV)(n),{ok:l,format:t.format||u,r:Math.min(255,Math.max(e.r,0)),g:Math.min(255,Math.max(e.g,0)),b:Math.min(255,Math.max(e.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*\\)?"),h="[\\s|\\(]+(".concat(u,")[,|\\s]+(").concat(u,")[,|\\s]+(").concat(u,")[,|\\s]+(").concat(u,")\\s*\\)?"),d={CSS_UNIT:new RegExp(u),rgb:new RegExp("rgb"+c),rgba:new RegExp("rgba"+h),hsl:new RegExp("hsl"+c),hsla:new RegExp("hsla"+h),hsv:new RegExp("hsv"+c),hsva:new RegExp("hsva"+h),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(t){if(t=t.trim().toLowerCase(),0===t.length)return!1;var e=!1;if(i.D[t])t=i.D[t],e=!0;else if("transparent"===t)return{r:0,g:0,b:0,a:0,format:"name"};var n=d.rgb.exec(t);return n?{r:n[1],g:n[2],b:n[3]}:(n=d.rgba.exec(t),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=d.hsl.exec(t),n?{h:n[1],s:n[2],l:n[3]}:(n=d.hsla.exec(t),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=d.hsv.exec(t),n?{h:n[1],s:n[2],v:n[3]}:(n=d.hsva.exec(t),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=d.hex8.exec(t),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:e?"name":"hex8"}:(n=d.hex6.exec(t),n?{r:(0,r.g8)(n[1]),g:(0,r.g8)(n[2]),b:(0,r.g8)(n[3]),format:e?"name":"hex"}:(n=d.hex4.exec(t),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:e?"name":"hex8"}:(n=d.hex3.exec(t),!!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:e?"name":"hex"})))))))))}function f(t){return Boolean(d.CSS_UNIT.exec(String(t)))}},78089:function(t,e,n){"use strict";n.d(e,{q:function(){return s}});n(30381);var r=n(68525),i=n(10577),o=n(74655),a=n(98897),s=function(){function t(e,n){var i;if(void 0===e&&(e=""),void 0===n&&(n={}),e instanceof t)return e;"number"===typeof e&&(e=(0,r.oS)(e)),this.originalInput=e;var a=(0,o.RO)(e);this.originalInput=e,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!==(i=n.format)&&void 0!==i?i: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 t.prototype.isDark=function(){return this.getBrightness()<128},t.prototype.isLight=function(){return!this.isDark()},t.prototype.getBrightness=function(){var t=this.toRgb();return(299*t.r+587*t.g+114*t.b)/1e3},t.prototype.getLuminance=function(){var t,e,n,r=this.toRgb(),i=r.r/255,o=r.g/255,a=r.b/255;return t=i<=.03928?i/12.92:Math.pow((i+.055)/1.055,2.4),e=o<=.03928?o/12.92:Math.pow((o+.055)/1.055,2.4),n=a<=.03928?a/12.92:Math.pow((a+.055)/1.055,2.4),.2126*t+.7152*e+.0722*n},t.prototype.getAlpha=function(){return this.a},t.prototype.setAlpha=function(t){return this.a=(0,a.TV)(t),this.roundA=Math.round(100*this.a)/100,this},t.prototype.isMonochrome=function(){var t=this.toHsl().s;return 0===t},t.prototype.toHsv=function(){var t=(0,r.wE)(this.r,this.g,this.b);return{h:360*t.h,s:t.s,v:t.v,a:this.a}},t.prototype.toHsvString=function(){var t=(0,r.wE)(this.r,this.g,this.b),e=Math.round(360*t.h),n=Math.round(100*t.s),i=Math.round(100*t.v);return 1===this.a?"hsv(".concat(e,", ").concat(n,"%, ").concat(i,"%)"):"hsva(".concat(e,", ").concat(n,"%, ").concat(i,"%, ").concat(this.roundA,")")},t.prototype.toHsl=function(){var t=(0,r.K6)(this.r,this.g,this.b);return{h:360*t.h,s:t.s,l:t.l,a:this.a}},t.prototype.toHslString=function(){var t=(0,r.K6)(this.r,this.g,this.b),e=Math.round(360*t.h),n=Math.round(100*t.s),i=Math.round(100*t.l);return 1===this.a?"hsl(".concat(e,", ").concat(n,"%, ").concat(i,"%)"):"hsla(".concat(e,", ").concat(n,"%, ").concat(i,"%, ").concat(this.roundA,")")},t.prototype.toHex=function(t){return void 0===t&&(t=!1),(0,r.Ob)(this.r,this.g,this.b,t)},t.prototype.toHexString=function(t){return void 0===t&&(t=!1),"#"+this.toHex(t)},t.prototype.toHex8=function(t){return void 0===t&&(t=!1),(0,r.H)(this.r,this.g,this.b,this.a,t)},t.prototype.toHex8String=function(t){return void 0===t&&(t=!1),"#"+this.toHex8(t)},t.prototype.toHexShortString=function(t){return void 0===t&&(t=!1),1===this.a?this.toHexString(t):this.toHex8String(t)},t.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},t.prototype.toRgbString=function(){var t=Math.round(this.r),e=Math.round(this.g),n=Math.round(this.b);return 1===this.a?"rgb(".concat(t,", ").concat(e,", ").concat(n,")"):"rgba(".concat(t,", ").concat(e,", ").concat(n,", ").concat(this.roundA,")")},t.prototype.toPercentageRgb=function(){var t=function(t){return"".concat(Math.round(100*(0,a.Cg)(t,255)),"%")};return{r:t(this.r),g:t(this.g),b:t(this.b),a:this.a}},t.prototype.toPercentageRgbString=function(){var t=function(t){return Math.round(100*(0,a.Cg)(t,255))};return 1===this.a?"rgb(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%)"):"rgba(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%, ").concat(this.roundA,")")},t.prototype.toName=function(){if(0===this.a)return"transparent";if(this.a<1)return!1;for(var t="#"+(0,r.Ob)(this.r,this.g,this.b,!1),e=0,n=Object.entries(i.D);e<n.length;e++){var o=n[e],a=o[0],s=o[1];if(t===s)return a}return!1},t.prototype.toString=function(t){var e=Boolean(t);t=null!==t&&void 0!==t?t:this.format;var n=!1,r=this.a<1&&this.a>=0,i=!e&&r&&(t.startsWith("hex")||"name"===t);return i?"name"===t&&0===this.a?this.toName():this.toRgbString():("rgb"===t&&(n=this.toRgbString()),"prgb"===t&&(n=this.toPercentageRgbString()),"hex"!==t&&"hex6"!==t||(n=this.toHexString()),"hex3"===t&&(n=this.toHexString(!0)),"hex4"===t&&(n=this.toHex8String(!0)),"hex8"===t&&(n=this.toHex8String()),"name"===t&&(n=this.toName()),"hsl"===t&&(n=this.toHslString()),"hsv"===t&&(n=this.toHsvString()),n||this.toHexString())},t.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},t.prototype.clone=function(){return new t(this.toString())},t.prototype.lighten=function(e){void 0===e&&(e=10);var n=this.toHsl();return n.l+=e/100,n.l=(0,a.J$)(n.l),new t(n)},t.prototype.brighten=function(e){void 0===e&&(e=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(-e/100*255))),n.g=Math.max(0,Math.min(255,n.g-Math.round(-e/100*255))),n.b=Math.max(0,Math.min(255,n.b-Math.round(-e/100*255))),new t(n)},t.prototype.darken=function(e){void 0===e&&(e=10);var n=this.toHsl();return n.l-=e/100,n.l=(0,a.J$)(n.l),new t(n)},t.prototype.tint=function(t){return void 0===t&&(t=10),this.mix("white",t)},t.prototype.shade=function(t){return void 0===t&&(t=10),this.mix("black",t)},t.prototype.desaturate=function(e){void 0===e&&(e=10);var n=this.toHsl();return n.s-=e/100,n.s=(0,a.J$)(n.s),new t(n)},t.prototype.saturate=function(e){void 0===e&&(e=10);var n=this.toHsl();return n.s+=e/100,n.s=(0,a.J$)(n.s),new t(n)},t.prototype.greyscale=function(){return this.desaturate(100)},t.prototype.spin=function(e){var n=this.toHsl(),r=(n.h+e)%360;return n.h=r<0?360+r:r,new t(n)},t.prototype.mix=function(e,n){void 0===n&&(n=50);var r=this.toRgb(),i=new t(e).toRgb(),o=n/100,a={r:(i.r-r.r)*o+r.r,g:(i.g-r.g)*o+r.g,b:(i.b-r.b)*o+r.b,a:(i.a-r.a)*o+r.a};return new t(a)},t.prototype.analogous=function(e,n){void 0===e&&(e=6),void 0===n&&(n=30);var r=this.toHsl(),i=360/n,o=[this];for(r.h=(r.h-(i*e>>1)+720)%360;--e;)r.h=(r.h+i)%360,o.push(new t(r));return o},t.prototype.complement=function(){var e=this.toHsl();return e.h=(e.h+180)%360,new t(e)},t.prototype.monochromatic=function(e){void 0===e&&(e=6);var n=this.toHsv(),r=n.h,i=n.s,o=n.v,a=[],s=1/e;while(e--)a.push(new t({h:r,s:i,v:o})),o=(o+s)%1;return a},t.prototype.splitcomplement=function(){var e=this.toHsl(),n=e.h;return[this,new t({h:(n+72)%360,s:e.s,l:e.l}),new t({h:(n+216)%360,s:e.s,l:e.l})]},t.prototype.onBackground=function(e){var n=this.toRgb(),r=new t(e).toRgb(),i=n.a+r.a*(1-n.a);return new t({r:(n.r*n.a+r.r*r.a*(1-n.a))/i,g:(n.g*n.a+r.g*r.a*(1-n.a))/i,b:(n.b*n.a+r.b*r.a*(1-n.a))/i,a:i})},t.prototype.triad=function(){return this.polyad(3)},t.prototype.tetrad=function(){return this.polyad(4)},t.prototype.polyad=function(e){for(var n=this.toHsl(),r=n.h,i=[this],o=360/e,a=1;a<e;a++)i.push(new t({h:(r+a*o)%360,s:n.s,l:n.l}));return i},t.prototype.equals=function(e){return this.toRgbString()===new t(e).toRgbString()},t}()},98897:function(t,e,n){"use strict";function r(t,e){o(t)&&(t="100%");var n=a(t);return t=360===e?t:Math.min(e,Math.max(0,parseFloat(t))),n&&(t=parseInt(String(t*e),10)/100),Math.abs(t-e)<1e-6?1:(t=360===e?(t<0?t%e+e:t%e)/parseFloat(String(e)):t%e/parseFloat(String(e)),t)}function i(t){return Math.min(1,Math.max(0,t))}function o(t){return"string"===typeof t&&-1!==t.indexOf(".")&&1===parseFloat(t)}function a(t){return"string"===typeof t&&-1!==t.indexOf("%")}function s(t){return t=parseFloat(t),(isNaN(t)||t<0||t>1)&&(t=1),t}function l(t){return t<=1?"".concat(100*Number(t),"%"):t}function u(t){return 1===t.length?"0"+t:String(t)}n.d(e,{Cg:function(){return r},J$:function(){return i},Px:function(){return l},TV:function(){return s},wl:function(){return u}})},5141:function(t,e,n){"use strict";function r(t){for(var e,n=0,r=0,i=t.length;i>=4;++r,i-=4)e=255&t.charCodeAt(r)|(255&t.charCodeAt(++r))<<8|(255&t.charCodeAt(++r))<<16|(255&t.charCodeAt(++r))<<24,e=1540483477*(65535&e)+(59797*(e>>>16)<<16),e^=e>>>24,n=1540483477*(65535&e)+(59797*(e>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(i){case 3:n^=(255&t.charCodeAt(r+2))<<16;case 2:n^=(255&t.charCodeAt(r+1))<<8;case 1:n^=255&t.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(e,{A:function(){return r}})},78753:function(t,e,n){"use strict";n.d(e,{C4:function(){return y},EW:function(){return Tt},Gc:function(){return mt},IG:function(){return At},IJ:function(){return Rt},KR:function(){return Et},Kh:function(){return vt},Pr:function(){return Ft},QW:function(){return Wt},R1:function(){return zt},X2:function(){return c},bl:function(){return b},fE:function(){return wt},g8:function(){return _t},hZ:function(){return P},i9:function(){return $t},jr:function(){return u},ju:function(){return Ot},lW:function(){return Qt},mu:function(){return Nt},o5:function(){return l},tB:function(){return yt},u4:function(){return T},ux:function(){return St},yC:function(){return a}});n(30381),n(85194),n(27092),n(68925),n(31796),n(21467),n(22064),n(92114);var r=n(1980);let i,o;class a{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=i,!t&&i&&(this.index=(i.scopes||(i.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const e=i;try{return i=this,t()}finally{i=e}}else 0}on(){i=this}off(){i=this.parent}stop(t){if(this._active){let e,n;for(e=0,n=this.effects.length;e<n;e++)this.effects[e].stop();for(e=0,n=this.cleanups.length;e<n;e++)this.cleanups[e]();if(this.scopes)for(e=0,n=this.scopes.length;e<n;e++)this.scopes[e].stop(!0);if(!this.detached&&this.parent&&!t){const t=this.parent.scopes.pop();t&&t!==this&&(this.parent.scopes[this.index]=t,t.index=this.index)}this.parent=void 0,this._active=!1}}}function s(t,e=i){e&&e.active&&e.effects.push(t)}function l(){return i}function u(t){i&&i.cleanups.push(t)}class c{constructor(t,e,n,r){this.fn=t,this.trigger=e,this.scheduler=n,this.active=!0,this.deps=[],this._dirtyLevel=4,this._trackId=0,this._runnings=0,this._shouldSchedule=!1,this._depsLength=0,s(this,r)}get dirty(){if(2===this._dirtyLevel||3===this._dirtyLevel){this._dirtyLevel=1,y();for(let t=0;t<this._depsLength;t++){const e=this.deps[t];if(e.computed&&(h(e.computed),this._dirtyLevel>=4))break}1===this._dirtyLevel&&(this._dirtyLevel=0),b()}return this._dirtyLevel>=4}set dirty(t){this._dirtyLevel=t?4:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let t=g,e=o;try{return g=!0,o=this,this._runnings++,d(this),this.fn()}finally{p(this),this._runnings--,o=e,g=t}}stop(){this.active&&(d(this),p(this),this.onStop&&this.onStop(),this.active=!1)}}function h(t){return t.value}function d(t){t._trackId++,t._depsLength=0}function p(t){if(t.deps.length>t._depsLength){for(let e=t._depsLength;e<t.deps.length;e++)f(t.deps[e],t);t.deps.length=t._depsLength}}function f(t,e){const n=t.get(e);void 0!==n&&e._trackId!==n&&(t.delete(e),0===t.size&&t.cleanup())}let g=!0,v=0;const m=[];function y(){m.push(g),g=!1}function b(){const t=m.pop();g=void 0===t||t}function _(){v++}function x(){v--;while(!v&&O.length)O.shift()()}function w(t,e,n){if(e.get(t)!==t._trackId){e.set(t,t._trackId);const n=t.deps[t._depsLength];n!==e?(n&&f(n,t),t.deps[t._depsLength++]=e):t._depsLength++}}const O=[];function S(t,e,n){_();for(const r of t.keys()){let n;r._dirtyLevel<e&&(null!=n?n:n=t.get(r)===r._trackId)&&(r._shouldSchedule||(r._shouldSchedule=0===r._dirtyLevel),r._dirtyLevel=e),r._shouldSchedule&&(null!=n?n:n=t.get(r)===r._trackId)&&(r.trigger(),r._runnings&&!r.allowRecurse||2===r._dirtyLevel||(r._shouldSchedule=!1,r.scheduler&&O.push(r.scheduler)))}x()}const A=(t,e)=>{const n=new Map;return n.cleanup=t,n.computed=e,n},k=new WeakMap,C=Symbol(""),M=Symbol("");function T(t,e,n){if(g&&o){let e=k.get(t);e||k.set(t,e=new Map);let r=e.get(n);r||e.set(n,r=A((()=>e.delete(n)))),w(o,r,void 0)}}function P(t,e,n,i,o,a){const s=k.get(t);if(!s)return;let l=[];if("clear"===e)l=[...s.values()];else if("length"===n&&(0,r.cy)(t)){const t=Number(i);s.forEach(((e,n)=>{("length"===n||!(0,r.Bm)(n)&&n>=t)&&l.push(e)}))}else switch(void 0!==n&&l.push(s.get(n)),e){case"add":(0,r.cy)(t)?(0,r.yI)(n)&&l.push(s.get("length")):(l.push(s.get(C)),(0,r.CE)(t)&&l.push(s.get(M)));break;case"delete":(0,r.cy)(t)||(l.push(s.get(C)),(0,r.CE)(t)&&l.push(s.get(M)));break;case"set":(0,r.CE)(t)&&l.push(s.get(C));break}_();for(const r of l)r&&S(r,4,void 0);x()}function I(t,e){const n=k.get(t);return n&&n.get(e)}const $=(0,r.pD)("__proto__,__v_isRef,__isVue"),E=new Set(Object.getOwnPropertyNames(Symbol).filter((t=>"arguments"!==t&&"caller"!==t)).map((t=>Symbol[t])).filter(r.Bm)),R=D();function D(){const t={};return["includes","indexOf","lastIndexOf"].forEach((e=>{t[e]=function(...t){const n=St(this);for(let e=0,i=this.length;e<i;e++)T(n,"get",e+"");const r=n[e](...t);return-1===r||!1===r?n[e](...t.map(St)):r}})),["push","pop","shift","unshift","splice"].forEach((e=>{t[e]=function(...t){y(),_();const n=St(this)[e].apply(this,t);return x(),b(),n}})),t}function L(t){(0,r.Bm)(t)||(t=String(t));const e=St(this);return T(e,"has",t),e.hasOwnProperty(t)}class N{constructor(t=!1,e=!1){this._isReadonly=t,this._isShallow=e}get(t,e,n){const i=this._isReadonly,o=this._isShallow;if("__v_isReactive"===e)return!i;if("__v_isReadonly"===e)return i;if("__v_isShallow"===e)return o;if("__v_raw"===e)return n===(i?o?pt:dt:o?ht:ct).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(n)?t:void 0;const a=(0,r.cy)(t);if(!i){if(a&&(0,r.$3)(R,e))return Reflect.get(R,e,n);if("hasOwnProperty"===e)return L}const s=Reflect.get(t,e,n);return((0,r.Bm)(e)?E.has(e):$(e))?s:(i||T(t,"get",e),o?s:$t(s)?a&&(0,r.yI)(e)?s:s.value:(0,r.Gv)(s)?i?yt(s):vt(s):s)}}class z extends N{constructor(t=!1){super(!1,t)}set(t,e,n,i){let o=t[e];if(!this._isShallow){const e=xt(o);if(wt(n)||xt(n)||(o=St(o),n=St(n)),!(0,r.cy)(t)&&$t(o)&&!$t(n))return!e&&(o.value=n,!0)}const a=(0,r.cy)(t)&&(0,r.yI)(e)?Number(e)<t.length:(0,r.$3)(t,e),s=Reflect.set(t,e,n,i);return t===St(i)&&(a?(0,r.$H)(n,o)&&P(t,"set",e,n,o):P(t,"add",e,n)),s}deleteProperty(t,e){const n=(0,r.$3)(t,e),i=t[e],o=Reflect.deleteProperty(t,e);return o&&n&&P(t,"delete",e,void 0,i),o}has(t,e){const n=Reflect.has(t,e);return(0,r.Bm)(e)&&E.has(e)||T(t,"has",e),n}ownKeys(t){return T(t,"iterate",(0,r.cy)(t)?"length":C),Reflect.ownKeys(t)}}class B extends N{constructor(t=!1){super(!0,t)}set(t,e){return!0}deleteProperty(t,e){return!0}}const F=new z,W=new B,j=new z(!0),V=t=>t,Q=t=>Reflect.getPrototypeOf(t);function H(t,e,n=!1,i=!1){t=t["__v_raw"];const o=St(t),a=St(e);n||((0,r.$H)(e,a)&&T(o,"get",e),T(o,"get",a));const{has:s}=Q(o),l=i?V:n?Ct:kt;return s.call(o,e)?l(t.get(e)):s.call(o,a)?l(t.get(a)):void(t!==o&&t.get(e))}function Z(t,e=!1){const n=this["__v_raw"],i=St(n),o=St(t);return e||((0,r.$H)(t,o)&&T(i,"has",t),T(i,"has",o)),t===o?n.has(t):n.has(t)||n.has(o)}function G(t,e=!1){return t=t["__v_raw"],!e&&T(St(t),"iterate",C),Reflect.get(t,"size",t)}function X(t){t=St(t);const e=St(this),n=Q(e),r=n.has.call(e,t);return r||(e.add(t),P(e,"add",t,t)),this}function U(t,e){e=St(e);const n=St(this),{has:i,get:o}=Q(n);let a=i.call(n,t);a||(t=St(t),a=i.call(n,t));const s=o.call(n,t);return n.set(t,e),a?(0,r.$H)(e,s)&&P(n,"set",t,e,s):P(n,"add",t,e),this}function Y(t){const e=St(this),{has:n,get:r}=Q(e);let i=n.call(e,t);i||(t=St(t),i=n.call(e,t));const o=r?r.call(e,t):void 0,a=e.delete(t);return i&&P(e,"delete",t,void 0,o),a}function q(){const t=St(this),e=0!==t.size,n=void 0,r=t.clear();return e&&P(t,"clear",void 0,void 0,n),r}function K(t,e){return function(n,r){const i=this,o=i["__v_raw"],a=St(o),s=e?V:t?Ct:kt;return!t&&T(a,"iterate",C),o.forEach(((t,e)=>n.call(r,s(t),s(e),i)))}}function J(t,e,n){return function(...i){const o=this["__v_raw"],a=St(o),s=(0,r.CE)(a),l="entries"===t||t===Symbol.iterator&&s,u="keys"===t&&s,c=o[t](...i),h=n?V:e?Ct:kt;return!e&&T(a,"iterate",u?M:C),{next(){const{value:t,done:e}=c.next();return e?{value:t,done:e}:{value:l?[h(t[0]),h(t[1])]:h(t),done:e}},[Symbol.iterator](){return this}}}}function tt(t){return function(...e){return"delete"!==t&&("clear"===t?void 0:this)}}function et(){const t={get(t){return H(this,t)},get size(){return G(this)},has:Z,add:X,set:U,delete:Y,clear:q,forEach:K(!1,!1)},e={get(t){return H(this,t,!1,!0)},get size(){return G(this)},has:Z,add:X,set:U,delete:Y,clear:q,forEach:K(!1,!0)},n={get(t){return H(this,t,!0)},get size(){return G(this,!0)},has(t){return Z.call(this,t,!0)},add:tt("add"),set:tt("set"),delete:tt("delete"),clear:tt("clear"),forEach:K(!0,!1)},r={get(t){return H(this,t,!0,!0)},get size(){return G(this,!0)},has(t){return Z.call(this,t,!0)},add:tt("add"),set:tt("set"),delete:tt("delete"),clear:tt("clear"),forEach:K(!0,!0)},i=["keys","values","entries",Symbol.iterator];return i.forEach((i=>{t[i]=J(i,!1,!1),n[i]=J(i,!0,!1),e[i]=J(i,!1,!0),r[i]=J(i,!0,!0)})),[t,n,e,r]}const[nt,rt,it,ot]=et();function at(t,e){const n=e?t?ot:it:t?rt:nt;return(e,i,o)=>"__v_isReactive"===i?!t:"__v_isReadonly"===i?t:"__v_raw"===i?e:Reflect.get((0,r.$3)(n,i)&&i in e?n:e,i,o)}const st={get:at(!1,!1)},lt={get:at(!1,!0)},ut={get:at(!0,!1)};const ct=new WeakMap,ht=new WeakMap,dt=new WeakMap,pt=new WeakMap;function ft(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function gt(t){return t["__v_skip"]||!Object.isExtensible(t)?0:ft((0,r.Zf)(t))}function vt(t){return xt(t)?t:bt(t,!1,F,st,ct)}function mt(t){return bt(t,!1,j,lt,ht)}function yt(t){return bt(t,!0,W,ut,dt)}function bt(t,e,n,i,o){if(!(0,r.Gv)(t))return t;if(t["__v_raw"]&&(!e||!t["__v_isReactive"]))return t;const a=o.get(t);if(a)return a;const s=gt(t);if(0===s)return t;const l=new Proxy(t,2===s?i:n);return o.set(t,l),l}function _t(t){return xt(t)?_t(t["__v_raw"]):!(!t||!t["__v_isReactive"])}function xt(t){return!(!t||!t["__v_isReadonly"])}function wt(t){return!(!t||!t["__v_isShallow"])}function Ot(t){return!!t&&!!t["__v_raw"]}function St(t){const e=t&&t["__v_raw"];return e?St(e):t}function At(t){return Object.isExtensible(t)&&(0,r.yQ)(t,"__v_skip",!0),t}const kt=t=>(0,r.Gv)(t)?vt(t):t,Ct=t=>(0,r.Gv)(t)?yt(t):t;class Mt{constructor(t,e,n,r){this.getter=t,this._setter=e,this.dep=void 0,this.__v_isRef=!0,this["__v_isReadonly"]=!1,this.effect=new c((()=>t(this._value)),(()=>It(this,2===this.effect._dirtyLevel?2:3))),this.effect.computed=this,this.effect.active=this._cacheable=!r,this["__v_isReadonly"]=n}get value(){const t=St(this);return t._cacheable&&!t.effect.dirty||!(0,r.$H)(t._value,t._value=t.effect.run())||It(t,4),Pt(t),t.effect._dirtyLevel>=2&&It(t,2),t._value}set value(t){this._setter(t)}get _dirty(){return this.effect.dirty}set _dirty(t){this.effect.dirty=t}}function Tt(t,e,n=!1){let i,o;const a=(0,r.Tn)(t);a?(i=t,o=r.tE):(i=t.get,o=t.set);const s=new Mt(i,o,a||!o,n);return s}function Pt(t){var e;g&&o&&(t=St(t),w(o,null!=(e=t.dep)?e:t.dep=A((()=>t.dep=void 0),t instanceof Mt?t:void 0),void 0))}function It(t,e=4,n,r){t=St(t);const i=t.dep;i&&S(i,e,void 0)}function $t(t){return!(!t||!0!==t.__v_isRef)}function Et(t){return Dt(t,!1)}function Rt(t){return Dt(t,!0)}function Dt(t,e){return $t(t)?t:new Lt(t,e)}class Lt{constructor(t,e){this.__v_isShallow=e,this.dep=void 0,this.__v_isRef=!0,this._rawValue=e?t:St(t),this._value=e?t:kt(t)}get value(){return Pt(this),this._value}set value(t){const e=this.__v_isShallow||wt(t)||xt(t);if(t=e?t:St(t),(0,r.$H)(t,this._rawValue)){const n=this._rawValue;this._rawValue=t,this._value=e?t:kt(t),It(this,4,t,n)}}}function Nt(t){It(t,4,void 0)}function zt(t){return $t(t)?t.value:t}const Bt={get:(t,e,n)=>zt(Reflect.get(t,e,n)),set:(t,e,n,r)=>{const i=t[e];return $t(i)&&!$t(n)?(i.value=n,!0):Reflect.set(t,e,n,r)}};function Ft(t){return _t(t)?t:new Proxy(t,Bt)}function Wt(t){const e=(0,r.cy)(t)?new Array(t.length):{};for(const n in t)e[n]=Ht(t,n);return e}class jt{constructor(t,e,n){this._object=t,this._key=e,this._defaultValue=n,this.__v_isRef=!0}get value(){const t=this._object[this._key];return void 0===t?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return I(St(this._object),this._key)}}class Vt{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function Qt(t,e,n){return $t(t)?t:(0,r.Tn)(t)?new Vt(t):(0,r.Gv)(t)&&arguments.length>1?Ht(t,e,n):Et(t)}function Ht(t,e,n){const r=t[e];return $t(r)?r:new jt(t,e,n)}},73913:function(t,e,n){"use strict";n.d(e,{$u:function(){return it},$y:function(){return G},CE:function(){return On},Df:function(){return tn},E3:function(){return En},EW:function(){return ur},EY:function(){return pn},FK:function(){return dn},Gt:function(){return Ht},Gy:function(){return Ve},Ht:function(){return wt},Ic:function(){return rt},Im:function(){return cn},K9:function(){return ge},KC:function(){return et},Lk:function(){return Tn},MZ:function(){return Je},Mw:function(){return fn},OA:function(){return Ot},OW:function(){return Ye},Q3:function(){return Dn},QP:function(){return He},Qi:function(){return D},R8:function(){return dr},RG:function(){return vt},WQ:function(){return Zt},Wv:function(){return Sn},Y4:function(){return Le},bF:function(){return Pn},bo:function(){return ht},dY:function(){return y},eW:function(){return Rn},gN:function(){return X},h:function(){return cr},hi:function(){return at},jt:function(){return L},k6:function(){return N},n:function(){return De},nI:function(){return Hn},nT:function(){return ke},pI:function(){return pt},pM:function(){return ft},pR:function(){return Xe},qL:function(){return a},sV:function(){return nt},uX:function(){return yn},v6:function(){return Bn},vv:function(){return An},wB:function(){return Me},xo:function(){return ot}});n(30381),n(85194),n(27092),n(68925),n(31796),n(21467),n(22064),n(92114);var r=n(78753),i=n(1980);function o(t,e,n,r){try{return r?t(...r):t()}catch(i){s(i,e,n)}}function a(t,e,n,r){if((0,i.Tn)(t)){const a=o(t,e,n,r);return a&&(0,i.yL)(a)&&a.catch((t=>{s(t,e,n)})),a}if((0,i.cy)(t)){const i=[];for(let o=0;o<t.length;o++)i.push(a(t[o],e,n,r));return i}}function s(t,e,n,i=!0){const a=e?e.vnode:null;if(e){let i=e.parent;const a=e.proxy,s=`https://vuejs.org/error-reference/#runtime-${n}`;while(i){const e=i.ec;if(e)for(let n=0;n<e.length;n++)if(!1===e[n](t,a,s))return;i=i.parent}const l=e.appContext.config.errorHandler;if(l)return(0,r.C4)(),o(l,null,10,[t,a,s]),void(0,r.bl)()}l(t,n,a,i)}function l(t,e,n,r=!0){console.error(t)}let u=!1,c=!1;const h=[];let d=0;const p=[];let f=null,g=0;const v=Promise.resolve();let m=null;function y(t){const e=m||v;return t?e.then(this?t.bind(this):t):e}function b(t){let e=d+1,n=h.length;while(e<n){const r=e+n>>>1,i=h[r],o=k(i);o<t||o===t&&i.pre?e=r+1:n=r}return e}function _(t){h.length&&h.includes(t,u&&t.allowRecurse?d+1:d)||(null==t.id?h.push(t):h.splice(b(t.id),0,t),x())}function x(){u||c||(c=!0,m=v.then(M))}function w(t){const e=h.indexOf(t);e>d&&h.splice(e,1)}function O(t){(0,i.cy)(t)?p.push(...t):f&&f.includes(t,t.allowRecurse?g+1:g)||p.push(t),x()}function S(t,e,n=(u?d+1:0)){for(0;n<h.length;n++){const e=h[n];if(e&&e.pre){if(t&&e.id!==t.uid)continue;0,h.splice(n,1),n--,e()}}}function A(t){if(p.length){const t=[...new Set(p)].sort(((t,e)=>k(t)-k(e)));if(p.length=0,f)return void f.push(...t);for(f=t,g=0;g<f.length;g++){const t=f[g];0,!1!==t.active&&t()}f=null,g=0}}const k=t=>null==t.id?1/0:t.id,C=(t,e)=>{const n=k(t)-k(e);if(0===n){if(t.pre&&!e.pre)return-1;if(e.pre&&!t.pre)return 1}return n};function M(t){c=!1,u=!0,h.sort(C);i.tE;try{for(d=0;d<h.length;d++){const t=h[d];t&&!1!==t.active&&o(t,null,14)}}finally{d=0,h.length=0,A(t),u=!1,m=null,(h.length||p.length)&&M(t)}}function T(t,e,...n){if(t.isUnmounted)return;const r=t.vnode.props||i.MZ;let o=n;const s=e.startsWith("update:"),l=s&&e.slice(7);if(l&&l in r){const t=`${"modelValue"===l?"model":l}Modifiers`,{number:e,trim:a}=r[t]||i.MZ;a&&(o=n.map((t=>(0,i.Kg)(t)?t.trim():t))),e&&(o=n.map(i.bB))}let u;let c=r[u=(0,i.rU)(e)]||r[u=(0,i.rU)((0,i.PT)(e))];!c&&s&&(c=r[u=(0,i.rU)((0,i.Tg)(e))]),c&&a(c,t,6,o);const h=r[u+"Once"];if(h){if(t.emitted){if(t.emitted[u])return}else t.emitted={};t.emitted[u]=!0,a(h,t,6,o)}}function P(t,e,n=!1){const r=e.emitsCache,o=r.get(t);if(void 0!==o)return o;const a=t.emits;let s={},l=!1;if(!(0,i.Tn)(t)){const r=t=>{const n=P(t,e,!0);n&&(l=!0,(0,i.X$)(s,n))};!n&&e.mixins.length&&e.mixins.forEach(r),t.extends&&r(t.extends),t.mixins&&t.mixins.forEach(r)}return a||l?((0,i.cy)(a)?a.forEach((t=>s[t]=null)):(0,i.X$)(s,a),(0,i.Gv)(t)&&r.set(t,s),s):((0,i.Gv)(t)&&r.set(t,null),null)}function I(t,e){return!(!t||!(0,i.Mp)(e))&&(e=e.slice(2).replace(/Once$/,""),(0,i.$3)(t,e[0].toLowerCase()+e.slice(1))||(0,i.$3)(t,(0,i.Tg)(e))||(0,i.$3)(t,e))}let $=null,E=null;function R(t){const e=$;return $=t,E=t&&t.type.__scopeId||null,e}function D(t){E=t}function L(){E=null}function N(t,e=$,n){if(!e)return t;if(t._n)return t;const r=(...n)=>{r._d&&xn(-1);const i=R(e);let o;try{o=t(...n)}finally{R(i),r._d&&xn(1)}return o};return r._n=!0,r._c=!0,r._d=!0,r}function z(t){const{type:e,vnode:n,proxy:r,withProxy:o,propsOptions:[a],slots:l,attrs:u,emit:c,render:h,renderCache:d,props:p,data:f,setupState:g,ctx:v,inheritAttrs:m}=t,y=R(t);let b,_;try{if(4&n.shapeFlag){const t=o||r,e=t;b=Ln(h.call(e,t,d,p,g,f,v)),_=u}else{const t=e;0,b=Ln(t.length>1?t(p,{attrs:u,slots:l,emit:c}):t(p,null)),_=e.props?u:B(u)}}catch(w){vn.length=0,s(w,t,1),b=Pn(fn)}let x=b;if(_&&!1!==m){const t=Object.keys(_),{shapeFlag:e}=x;t.length&&7&e&&(a&&t.some(i.CP)&&(_=F(_,a)),x=En(x,_,!1,!0))}return n.dirs&&(x=En(x,null,!1,!0),x.dirs=x.dirs?x.dirs.concat(n.dirs):n.dirs),n.transition&&(x.transition=n.transition),b=x,R(y),b}const B=t=>{let e;for(const n in t)("class"===n||"style"===n||(0,i.Mp)(n))&&((e||(e={}))[n]=t[n]);return e},F=(t,e)=>{const n={};for(const r in t)(0,i.CP)(r)&&r.slice(9)in e||(n[r]=t[r]);return n};function W(t,e,n){const{props:r,children:i,component:o}=t,{props:a,children:s,patchFlag:l}=e,u=o.emitsOptions;if(e.dirs||e.transition)return!0;if(!(n&&l>=0))return!(!i&&!s||s&&s.$stable)||r!==a&&(r?!a||j(r,a,u):!!a);if(1024&l)return!0;if(16&l)return r?j(r,a,u):!!a;if(8&l){const t=e.dynamicProps;for(let e=0;e<t.length;e++){const n=t[e];if(a[n]!==r[n]&&!I(u,n))return!0}}return!1}function j(t,e,n){const r=Object.keys(e);if(r.length!==Object.keys(t).length)return!0;for(let i=0;i<r.length;i++){const o=r[i];if(e[o]!==t[o]&&!I(n,o))return!0}return!1}function V({vnode:t,parent:e},n){while(e){const r=e.subTree;if(r.suspense&&r.suspense.activeBranch===t&&(r.el=t.el),r!==t)break;(t=e.vnode).el=n,e=e.parent}}const Q="components",H="directives";const Z=Symbol.for("v-ndc");function G(t){return(0,i.Kg)(t)?U(Q,t,!1)||t:t||Z}function X(t){return U(H,t)}function U(t,e,n=!0,r=!1){const o=$||Qn;if(o){const n=o.type;if(t===Q){const t=sr(n,!1);if(t&&(t===e||t===(0,i.PT)(e)||t===(0,i.ZH)((0,i.PT)(e))))return n}const a=Y(o[t]||n[t],e)||Y(o.appContext[t],e);return!a&&r?n:a}}function Y(t,e){return t&&(t[e]||t[(0,i.PT)(e)]||t[(0,i.ZH)((0,i.PT)(e))])}const q=t=>t.__isSuspense;function K(t,e){e&&e.pendingBranch?(0,i.cy)(t)?e.effects.push(...t):e.effects.push(t):O(t)}function J(t,e,n=Qn,i=!1){if(n){const o=n[t]||(n[t]=[]),s=e.__weh||(e.__weh=(...i)=>{(0,r.C4)();const o=Xn(n),s=a(e,n,t,i);return o(),(0,r.bl)(),s});return i?o.unshift(s):o.push(s),s}}const tt=t=>(e,n=Qn)=>{Jn&&"sp"!==t||J(t,((...t)=>e(...t)),n)},et=tt("bm"),nt=tt("m"),rt=tt("bu"),it=tt("u"),ot=tt("bum"),at=tt("um"),st=tt("sp"),lt=tt("rtg"),ut=tt("rtc");function ct(t,e=Qn){J("ec",t,e)}function ht(t,e){if(null===$)return t;const n=ar($),r=t.dirs||(t.dirs=[]);for(let o=0;o<e.length;o++){let[t,a,s,l=i.MZ]=e[o];t&&((0,i.Tn)(t)&&(t={mounted:t,updated:t}),t.deep&&$e(a),r.push({dir:t,instance:n,value:a,oldValue:void 0,arg:s,modifiers:l}))}return t}function dt(t,e,n,i){const o=t.dirs,s=e&&e.dirs;for(let l=0;l<o.length;l++){const u=o[l];s&&(u.oldValue=s[l].value);let c=u.dir[i];c&&((0,r.C4)(),a(c,n,8,[t.el,u,t,e]),(0,r.bl)())}}function pt(t,e,n,r){let o;const a=n&&n[r];if((0,i.cy)(t)||(0,i.Kg)(t)){o=new Array(t.length);for(let n=0,r=t.length;n<r;n++)o[n]=e(t[n],n,void 0,a&&a[n])}else if("number"===typeof t){0,o=new Array(t);for(let n=0;n<t;n++)o[n]=e(n+1,n,void 0,a&&a[n])}else if((0,i.Gv)(t))if(t[Symbol.iterator])o=Array.from(t,((t,n)=>e(t,n,void 0,a&&a[n])));else{const n=Object.keys(t);o=new Array(n.length);for(let r=0,i=n.length;r<i;r++){const i=n[r];o[r]=e(t[i],i,r,a&&a[r])}}else o=[];return n&&(n[r]=o),o}
  6. /*! #__NO_SIDE_EFFECTS__ */
  7. function ft(t,e){return(0,i.Tn)(t)?(()=>(0,i.X$)({name:t.name},e,{setup:t}))():t}const gt=t=>!!t.type.__asyncLoader
  8. /*! #__NO_SIDE_EFFECTS__ */;function vt(t,e,n={},r,i){if($.isCE||$.parent&&gt($.parent)&&$.parent.isCE)return"default"!==e&&(n.name=e),Pn("slot",n,r&&r());let o=t[e];o&&o._c&&(o._d=!1),yn();const a=o&&mt(o(n)),s=Sn(dn,{key:n.key||a&&a.key||`_${e}`},a||(r?r():[]),a&&1===t._?64:-2);return!i&&s.scopeId&&(s.slotScopeIds=[s.scopeId+"-s"]),o&&o._c&&(o._d=!0),s}function mt(t){return t.some((t=>!An(t)||t.type!==fn&&!(t.type===dn&&!mt(t.children))))?t:null}const yt=t=>t?Yn(t)?ar(t):yt(t.parent):null,bt=(0,i.X$)(Object.create(null),{$:t=>t,$el:t=>t.vnode.el,$data:t=>t.data,$props:t=>t.props,$attrs:t=>t.attrs,$slots:t=>t.slots,$refs:t=>t.refs,$parent:t=>yt(t.parent),$root:t=>yt(t.root),$emit:t=>t.emit,$options:t=>It(t),$forceUpdate:t=>t.f||(t.f=()=>{t.effect.dirty=!0,_(t.update)}),$nextTick:t=>t.n||(t.n=y.bind(t.proxy)),$watch:t=>Pe.bind(t)}),_t=(t,e)=>t!==i.MZ&&!t.__isScriptSetup&&(0,i.$3)(t,e),xt={get({_:t},e){if("__v_skip"===e)return!0;const{ctx:n,setupState:o,data:a,props:s,accessCache:l,type:u,appContext:c}=t;let h;if("$"!==e[0]){const r=l[e];if(void 0!==r)switch(r){case 1:return o[e];case 2:return a[e];case 4:return n[e];case 3:return s[e]}else{if(_t(o,e))return l[e]=1,o[e];if(a!==i.MZ&&(0,i.$3)(a,e))return l[e]=2,a[e];if((h=t.propsOptions[0])&&(0,i.$3)(h,e))return l[e]=3,s[e];if(n!==i.MZ&&(0,i.$3)(n,e))return l[e]=4,n[e];kt&&(l[e]=0)}}const d=bt[e];let p,f;return d?("$attrs"===e&&(0,r.u4)(t.attrs,"get",""),d(t)):(p=u.__cssModules)&&(p=p[e])?p:n!==i.MZ&&(0,i.$3)(n,e)?(l[e]=4,n[e]):(f=c.config.globalProperties,(0,i.$3)(f,e)?f[e]:void 0)},set({_:t},e,n){const{data:r,setupState:o,ctx:a}=t;return _t(o,e)?(o[e]=n,!0):r!==i.MZ&&(0,i.$3)(r,e)?(r[e]=n,!0):!(0,i.$3)(t.props,e)&&(("$"!==e[0]||!(e.slice(1)in t))&&(a[e]=n,!0))},has({_:{data:t,setupState:e,accessCache:n,ctx:r,appContext:o,propsOptions:a}},s){let l;return!!n[s]||t!==i.MZ&&(0,i.$3)(t,s)||_t(e,s)||(l=a[0])&&(0,i.$3)(l,s)||(0,i.$3)(r,s)||(0,i.$3)(bt,s)||(0,i.$3)(o.config.globalProperties,s)},defineProperty(t,e,n){return null!=n.get?t._.accessCache[e]=0:(0,i.$3)(n,"value")&&this.set(t,e,n.value,null),Reflect.defineProperty(t,e,n)}};function wt(){return St().slots}function Ot(){return St().attrs}function St(){const t=Hn();return t.setupContext||(t.setupContext=or(t))}function At(t){return(0,i.cy)(t)?t.reduce(((t,e)=>(t[e]=null,t)),{}):t}let kt=!0;function Ct(t){const e=It(t),n=t.proxy,o=t.ctx;kt=!1,e.beforeCreate&&Tt(e.beforeCreate,t,"bc");const{data:a,computed:s,methods:l,watch:u,provide:c,inject:h,created:d,beforeMount:p,mounted:f,beforeUpdate:g,updated:v,activated:m,deactivated:y,beforeDestroy:b,beforeUnmount:_,destroyed:x,unmounted:w,render:O,renderTracked:S,renderTriggered:A,errorCaptured:k,serverPrefetch:C,expose:M,inheritAttrs:T,components:P,directives:I,filters:$}=e,E=null;if(h&&Mt(h,o,E),l)for(const r in l){const t=l[r];(0,i.Tn)(t)&&(o[r]=t.bind(n))}if(a){0;const e=a.call(n,n);0,(0,i.Gv)(e)&&(t.data=(0,r.Kh)(e))}if(kt=!0,s)for(const r in s){const t=s[r],e=(0,i.Tn)(t)?t.bind(n,n):(0,i.Tn)(t.get)?t.get.bind(n,n):i.tE;0;const a=!(0,i.Tn)(t)&&(0,i.Tn)(t.set)?t.set.bind(n):i.tE,l=ur({get:e,set:a});Object.defineProperty(o,r,{enumerable:!0,configurable:!0,get:()=>l.value,set:t=>l.value=t})}if(u)for(const r in u)Pt(u[r],o,n,r);if(c){const t=(0,i.Tn)(c)?c.call(n):c;Reflect.ownKeys(t).forEach((e=>{Ht(e,t[e])}))}function R(t,e){(0,i.cy)(e)?e.forEach((e=>t(e.bind(n)))):e&&t(e.bind(n))}if(d&&Tt(d,t,"c"),R(et,p),R(nt,f),R(rt,g),R(it,v),R(De,m),R(Le,y),R(ct,k),R(ut,S),R(lt,A),R(ot,_),R(at,w),R(st,C),(0,i.cy)(M))if(M.length){const e=t.exposed||(t.exposed={});M.forEach((t=>{Object.defineProperty(e,t,{get:()=>n[t],set:e=>n[t]=e})}))}else t.exposed||(t.exposed={});O&&t.render===i.tE&&(t.render=O),null!=T&&(t.inheritAttrs=T),P&&(t.components=P),I&&(t.directives=I)}function Mt(t,e,n=i.tE){(0,i.cy)(t)&&(t=Lt(t));for(const o in t){const n=t[o];let a;a=(0,i.Gv)(n)?"default"in n?Zt(n.from||o,n.default,!0):Zt(n.from||o):Zt(n),(0,r.i9)(a)?Object.defineProperty(e,o,{enumerable:!0,configurable:!0,get:()=>a.value,set:t=>a.value=t}):e[o]=a}}function Tt(t,e,n){a((0,i.cy)(t)?t.map((t=>t.bind(e.proxy))):t.bind(e.proxy),e,n)}function Pt(t,e,n,r){const o=r.includes(".")?Ie(n,r):()=>n[r];if((0,i.Kg)(t)){const n=e[t];(0,i.Tn)(n)&&Me(o,n)}else if((0,i.Tn)(t))Me(o,t.bind(n));else if((0,i.Gv)(t))if((0,i.cy)(t))t.forEach((t=>Pt(t,e,n,r)));else{const r=(0,i.Tn)(t.handler)?t.handler.bind(n):e[t.handler];(0,i.Tn)(r)&&Me(o,r,t)}else 0}function It(t){const e=t.type,{mixins:n,extends:r}=e,{mixins:o,optionsCache:a,config:{optionMergeStrategies:s}}=t.appContext,l=a.get(e);let u;return l?u=l:o.length||n||r?(u={},o.length&&o.forEach((t=>$t(u,t,s,!0))),$t(u,e,s)):u=e,(0,i.Gv)(e)&&a.set(e,u),u}function $t(t,e,n,r=!1){const{mixins:i,extends:o}=e;o&&$t(t,o,n,!0),i&&i.forEach((e=>$t(t,e,n,!0)));for(const a in e)if(r&&"expose"===a);else{const r=Et[a]||n&&n[a];t[a]=r?r(t[a],e[a]):e[a]}return t}const Et={data:Rt,props:Bt,emits:Bt,methods:zt,computed:zt,beforeCreate:Nt,created:Nt,beforeMount:Nt,mounted:Nt,beforeUpdate:Nt,updated:Nt,beforeDestroy:Nt,beforeUnmount:Nt,destroyed:Nt,unmounted:Nt,activated:Nt,deactivated:Nt,errorCaptured:Nt,serverPrefetch:Nt,components:zt,directives:zt,watch:Ft,provide:Rt,inject:Dt};function Rt(t,e){return e?t?function(){return(0,i.X$)((0,i.Tn)(t)?t.call(this,this):t,(0,i.Tn)(e)?e.call(this,this):e)}:e:t}function Dt(t,e){return zt(Lt(t),Lt(e))}function Lt(t){if((0,i.cy)(t)){const e={};for(let n=0;n<t.length;n++)e[t[n]]=t[n];return e}return t}function Nt(t,e){return t?[...new Set([].concat(t,e))]:e}function zt(t,e){return t?(0,i.X$)(Object.create(null),t,e):e}function Bt(t,e){return t?(0,i.cy)(t)&&(0,i.cy)(e)?[...new Set([...t,...e])]:(0,i.X$)(Object.create(null),At(t),At(null!=e?e:{})):e}function Ft(t,e){if(!t)return e;if(!e)return t;const n=(0,i.X$)(Object.create(null),t);for(const r in e)n[r]=Nt(t[r],e[r]);return n}function Wt(){return{app:null,config:{isNativeTag:i.NO,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let jt=0;function Vt(t,e){return function(n,r=null){(0,i.Tn)(n)||(n=(0,i.X$)({},n)),null==r||(0,i.Gv)(r)||(r=null);const o=Wt(),a=new WeakSet;let s=!1;const l=o.app={_uid:jt++,_component:n,_props:r,_container:null,_context:o,_instance:null,version:hr,get config(){return o.config},set config(t){0},use(t,...e){return a.has(t)||(t&&(0,i.Tn)(t.install)?(a.add(t),t.install(l,...e)):(0,i.Tn)(t)&&(a.add(t),t(l,...e))),l},mixin(t){return o.mixins.includes(t)||o.mixins.push(t),l},component(t,e){return e?(o.components[t]=e,l):o.components[t]},directive(t,e){return e?(o.directives[t]=e,l):o.directives[t]},mount(i,a,u){if(!s){0;const c=Pn(n,r);return c.appContext=o,!0===u?u="svg":!1===u&&(u=void 0),a&&e?e(c,i):t(c,i,u),s=!0,l._container=i,i.__vue_app__=l,ar(c.component)}},unmount(){s&&(t(null,l._container),delete l._container.__vue_app__)},provide(t,e){return o.provides[t]=e,l},runWithContext(t){const e=Qt;Qt=l;try{return t()}finally{Qt=e}}};return l}}let Qt=null;function Ht(t,e){if(Qn){let n=Qn.provides;const r=Qn.parent&&Qn.parent.provides;r===n&&(n=Qn.provides=Object.create(r)),n[t]=e}else 0}function Zt(t,e,n=!1){const r=Qn||$;if(r||Qt){const o=r?null==r.parent?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:Qt._context.provides;if(o&&t in o)return o[t];if(arguments.length>1)return n&&(0,i.Tn)(e)?e.call(r&&r.proxy):e}else 0}const Gt={},Xt=()=>Object.create(Gt),Ut=t=>Object.getPrototypeOf(t)===Gt;function Yt(t,e,n,i=!1){const o={},a=Xt();t.propsDefaults=Object.create(null),Kt(t,e,o,a);for(const r in t.propsOptions[0])r in o||(o[r]=void 0);n?t.props=i?o:(0,r.Gc)(o):t.type.props?t.props=o:t.props=a,t.attrs=a}function qt(t,e,n,o){const{props:a,attrs:s,vnode:{patchFlag:l}}=t,u=(0,r.ux)(a),[c]=t.propsOptions;let h=!1;if(!(o||l>0)||16&l){let r;Kt(t,e,a,s)&&(h=!0);for(const o in u)e&&((0,i.$3)(e,o)||(r=(0,i.Tg)(o))!==o&&(0,i.$3)(e,r))||(c?!n||void 0===n[o]&&void 0===n[r]||(a[o]=Jt(c,u,o,void 0,t,!0)):delete a[o]);if(s!==u)for(const t in s)e&&(0,i.$3)(e,t)||(delete s[t],h=!0)}else if(8&l){const n=t.vnode.dynamicProps;for(let r=0;r<n.length;r++){let o=n[r];if(I(t.emitsOptions,o))continue;const l=e[o];if(c)if((0,i.$3)(s,o))l!==s[o]&&(s[o]=l,h=!0);else{const e=(0,i.PT)(o);a[e]=Jt(c,u,e,l,t,!1)}else l!==s[o]&&(s[o]=l,h=!0)}}h&&(0,r.hZ)(t.attrs,"set","")}function Kt(t,e,n,o){const[a,s]=t.propsOptions;let l,u=!1;if(e)for(let r in e){if((0,i.SU)(r))continue;const c=e[r];let h;a&&(0,i.$3)(a,h=(0,i.PT)(r))?s&&s.includes(h)?(l||(l={}))[h]=c:n[h]=c:I(t.emitsOptions,r)||r in o&&c===o[r]||(o[r]=c,u=!0)}if(s){const e=(0,r.ux)(n),o=l||i.MZ;for(let r=0;r<s.length;r++){const l=s[r];n[l]=Jt(a,e,l,o[l],t,!(0,i.$3)(o,l))}}return u}function Jt(t,e,n,r,o,a){const s=t[n];if(null!=s){const t=(0,i.$3)(s,"default");if(t&&void 0===r){const t=s.default;if(s.type!==Function&&!s.skipFactory&&(0,i.Tn)(t)){const{propsDefaults:i}=o;if(n in i)r=i[n];else{const a=Xn(o);r=i[n]=t.call(null,e),a()}}else r=t}s[0]&&(a&&!t?r=!1:!s[1]||""!==r&&r!==(0,i.Tg)(n)||(r=!0))}return r}function te(t,e,n=!1){const r=e.propsCache,o=r.get(t);if(o)return o;const a=t.props,s={},l=[];let u=!1;if(!(0,i.Tn)(t)){const r=t=>{u=!0;const[n,r]=te(t,e,!0);(0,i.X$)(s,n),r&&l.push(...r)};!n&&e.mixins.length&&e.mixins.forEach(r),t.extends&&r(t.extends),t.mixins&&t.mixins.forEach(r)}if(!a&&!u)return(0,i.Gv)(t)&&r.set(t,i.Oj),i.Oj;if((0,i.cy)(a))for(let h=0;h<a.length;h++){0;const t=(0,i.PT)(a[h]);ee(t)&&(s[t]=i.MZ)}else if(a){0;for(const t in a){const e=(0,i.PT)(t);if(ee(e)){const n=a[t],r=s[e]=(0,i.cy)(n)||(0,i.Tn)(n)?{type:n}:(0,i.X$)({},n);if(r){const t=ie(Boolean,r.type),n=ie(String,r.type);r[0]=t>-1,r[1]=n<0||t<n,(t>-1||(0,i.$3)(r,"default"))&&l.push(e)}}}}const c=[s,l];return(0,i.Gv)(t)&&r.set(t,c),c}function ee(t){return"$"!==t[0]&&!(0,i.SU)(t)}function ne(t){if(null===t)return"null";if("function"===typeof t)return t.name||"";if("object"===typeof t){const e=t.constructor&&t.constructor.name;return e||""}return""}function re(t,e){return ne(t)===ne(e)}function ie(t,e){return(0,i.cy)(e)?e.findIndex((e=>re(e,t))):(0,i.Tn)(e)&&re(e,t)?0:-1}const oe=t=>"_"===t[0]||"$stable"===t,ae=t=>(0,i.cy)(t)?t.map(Ln):[Ln(t)],se=(t,e,n)=>{if(e._n)return e;const r=N(((...t)=>ae(e(...t))),n);return r._c=!1,r},le=(t,e,n)=>{const r=t._ctx;for(const o in t){if(oe(o))continue;const n=t[o];if((0,i.Tn)(n))e[o]=se(o,n,r);else if(null!=n){0;const t=ae(n);e[o]=()=>t}}},ue=(t,e)=>{const n=ae(e);t.slots.default=()=>n},ce=(t,e)=>{const n=t.slots=Xt();if(32&t.vnode.shapeFlag){const t=e._;t?((0,i.X$)(n,e),(0,i.yQ)(n,"_",t,!0)):le(e,n)}else e&&ue(t,e)},he=(t,e,n)=>{const{vnode:r,slots:o}=t;let a=!0,s=i.MZ;if(32&r.shapeFlag){const t=e._;t?n&&1===t?a=!1:((0,i.X$)(o,e),n||1!==t||delete o._):(a=!e.$stable,le(e,o)),s=e}else e&&(ue(t,e),s={default:1});if(a)for(const i in o)oe(i)||null!=s[i]||delete o[i]};function de(t,e,n,a,s=!1){if((0,i.cy)(t))return void t.forEach(((t,r)=>de(t,e&&((0,i.cy)(e)?e[r]:e),n,a,s)));if(gt(a)&&!s)return;const l=4&a.shapeFlag?ar(a.component):a.el,u=s?null:l,{i:c,r:h}=t;const d=e&&e.r,p=c.refs===i.MZ?c.refs={}:c.refs,f=c.setupState;if(null!=d&&d!==h&&((0,i.Kg)(d)?(p[d]=null,(0,i.$3)(f,d)&&(f[d]=null)):(0,r.i9)(d)&&(d.value=null)),(0,i.Tn)(h))o(h,c,12,[u,p]);else{const e=(0,i.Kg)(h),o=(0,r.i9)(h);if(e||o){const r=()=>{if(t.f){const n=e?(0,i.$3)(f,h)?f[h]:p[h]:h.value;s?(0,i.cy)(n)&&(0,i.TF)(n,l):(0,i.cy)(n)?n.includes(l)||n.push(l):e?(p[h]=[l],(0,i.$3)(f,h)&&(f[h]=p[h])):(h.value=[l],t.k&&(p[t.k]=h.value))}else e?(p[h]=u,(0,i.$3)(f,h)&&(f[h]=u)):o&&(h.value=u,t.k&&(p[t.k]=u))};u?(r.id=-1,fe(r,n)):r()}else 0}}function pe(){"boolean"!==typeof __VUE_PROD_HYDRATION_MISMATCH_DETAILS__&&((0,i.We)().__VUE_PROD_HYDRATION_MISMATCH_DETAILS__=!1)}const fe=K;function ge(t){return ve(t)}function ve(t,e){pe();const n=(0,i.We)();n.__VUE__=!0;const{insert:o,remove:a,patchProp:s,createElement:l,createText:u,createComment:c,setText:h,setElementText:d,parentNode:p,nextSibling:f,setScopeId:g=i.tE,insertStaticContent:v}=t,m=(t,e,n,r=null,i=null,o=null,a=void 0,s=null,l=!!e.dynamicChildren)=>{if(t===e)return;t&&!kn(t,e)&&(r=K(t),G(t,i,o,!0),t=null),-2===e.patchFlag&&(l=!1,e.dynamicChildren=null);const{type:u,ref:c,shapeFlag:h}=e;switch(u){case pn:y(t,e,n,r);break;case fn:b(t,e,n,r);break;case gn:null==t&&x(e,n,r,a);break;case dn:R(t,e,n,r,i,o,a,s,l);break;default:1&h?C(t,e,n,r,i,o,a,s,l):6&h?D(t,e,n,r,i,o,a,s,l):(64&h||128&h)&&u.process(t,e,n,r,i,o,a,s,l,et)}null!=c&&i&&de(c,t&&t.ref,o,e||t,!e)},y=(t,e,n,r)=>{if(null==t)o(e.el=u(e.children),n,r);else{const n=e.el=t.el;e.children!==t.children&&h(n,e.children)}},b=(t,e,n,r)=>{null==t?o(e.el=c(e.children||""),n,r):e.el=t.el},x=(t,e,n,r)=>{[t.el,t.anchor]=v(t.children,e,n,r,t.el,t.anchor)},O=({el:t,anchor:e},n,r)=>{let i;while(t&&t!==e)i=f(t),o(t,n,r),t=i;o(e,n,r)},k=({el:t,anchor:e})=>{let n;while(t&&t!==e)n=f(t),a(t),t=n;a(e)},C=(t,e,n,r,i,o,a,s,l)=>{"svg"===e.type?a="svg":"math"===e.type&&(a="mathml"),null==t?M(e,n,r,i,o,a,s,l):I(t,e,i,o,a,s,l)},M=(t,e,n,r,a,u,c,h)=>{let p,f;const{props:g,shapeFlag:v,transition:m,dirs:y}=t;if(p=t.el=l(t.type,u,g&&g.is,g),8&v?d(p,t.children):16&v&&P(t.children,p,null,r,a,me(t,u),c,h),y&&dt(t,null,r,"created"),T(p,t,t.scopeId,c,r),g){for(const e in g)"value"===e||(0,i.SU)(e)||s(p,e,null,g[e],u,t.children,r,a,q);"value"in g&&s(p,"value",null,g.value,u),(f=g.onVnodeBeforeMount)&&Fn(f,r,t)}y&&dt(t,null,r,"beforeMount");const b=be(a,m);b&&m.beforeEnter(p),o(p,e,n),((f=g&&g.onVnodeMounted)||b||y)&&fe((()=>{f&&Fn(f,r,t),b&&m.enter(p),y&&dt(t,null,r,"mounted")}),a)},T=(t,e,n,r,i)=>{if(n&&g(t,n),r)for(let o=0;o<r.length;o++)g(t,r[o]);if(i){let n=i.subTree;if(e===n){const e=i.vnode;T(t,e,e.scopeId,e.slotScopeIds,i.parent)}}},P=(t,e,n,r,i,o,a,s,l=0)=>{for(let u=l;u<t.length;u++){const l=t[u]=s?Nn(t[u]):Ln(t[u]);m(null,l,e,n,r,i,o,a,s)}},I=(t,e,n,r,o,a,l)=>{const u=e.el=t.el;let{patchFlag:c,dynamicChildren:h,dirs:p}=e;c|=16&t.patchFlag;const f=t.props||i.MZ,g=e.props||i.MZ;let v;if(n&&ye(n,!1),(v=g.onVnodeBeforeUpdate)&&Fn(v,n,e,t),p&&dt(e,t,n,"beforeUpdate"),n&&ye(n,!0),h?$(t.dynamicChildren,h,u,n,r,me(e,o),a):l||j(t,e,u,null,n,r,me(e,o),a,!1),c>0){if(16&c)E(u,e,f,g,n,r,o);else if(2&c&&f.class!==g.class&&s(u,"class",null,g.class,o),4&c&&s(u,"style",f.style,g.style,o),8&c){const i=e.dynamicProps;for(let e=0;e<i.length;e++){const a=i[e],l=f[a],c=g[a];c===l&&"value"!==a||s(u,a,l,c,o,t.children,n,r,q)}}1&c&&t.children!==e.children&&d(u,e.children)}else l||null!=h||E(u,e,f,g,n,r,o);((v=g.onVnodeUpdated)||p)&&fe((()=>{v&&Fn(v,n,e,t),p&&dt(e,t,n,"updated")}),r)},$=(t,e,n,r,i,o,a)=>{for(let s=0;s<e.length;s++){const l=t[s],u=e[s],c=l.el&&(l.type===dn||!kn(l,u)||70&l.shapeFlag)?p(l.el):n;m(l,u,c,null,r,i,o,a,!0)}},E=(t,e,n,r,o,a,l)=>{if(n!==r){if(n!==i.MZ)for(const u in n)(0,i.SU)(u)||u in r||s(t,u,n[u],null,l,e.children,o,a,q);for(const u in r){if((0,i.SU)(u))continue;const c=r[u],h=n[u];c!==h&&"value"!==u&&s(t,u,h,c,l,e.children,o,a,q)}"value"in r&&s(t,"value",n.value,r.value,l)}},R=(t,e,n,r,i,a,s,l,c)=>{const h=e.el=t?t.el:u(""),d=e.anchor=t?t.anchor:u("");let{patchFlag:p,dynamicChildren:f,slotScopeIds:g}=e;g&&(l=l?l.concat(g):g),null==t?(o(h,n,r),o(d,n,r),P(e.children||[],n,d,i,a,s,l,c)):p>0&&64&p&&f&&t.dynamicChildren?($(t.dynamicChildren,f,n,i,a,s,l),(null!=e.key||i&&e===i.subTree)&&_e(t,e,!0)):j(t,e,n,d,i,a,s,l,c)},D=(t,e,n,r,i,o,a,s,l)=>{e.slotScopeIds=s,null==t?512&e.shapeFlag?i.ctx.activate(e,n,r,a,l):L(e,n,r,i,o,a,l):N(t,e,l)},L=(t,e,n,r,i,o,a)=>{const s=t.component=Vn(t,r,i);if(Ee(t)&&(s.ctx.renderer=et),tr(s),s.asyncDep){if(i&&i.registerDep(s,B,a),!t.el){const t=s.subTree=Pn(fn);b(null,t,e,n)}}else B(s,t,e,n,i,o,a)},N=(t,e,n)=>{const r=e.component=t.component;if(W(t,e,n)){if(r.asyncDep&&!r.asyncResolved)return void F(r,e,n);r.next=e,w(r.update),r.effect.dirty=!0,r.update()}else e.el=t.el,r.vnode=e},B=(t,e,n,o,a,s,l)=>{const u=()=>{if(t.isMounted){let{next:e,bu:n,u:r,parent:o,vnode:c}=t;{const n=we(t);if(n)return e&&(e.el=c.el,F(t,e,l)),void n.asyncDep.then((()=>{t.isUnmounted||u()}))}let h,d=e;0,ye(t,!1),e?(e.el=c.el,F(t,e,l)):e=c,n&&(0,i.DY)(n),(h=e.props&&e.props.onVnodeBeforeUpdate)&&Fn(h,o,e,c),ye(t,!0);const f=z(t);0;const g=t.subTree;t.subTree=f,m(g,f,p(g.el),K(g),t,a,s),e.el=f.el,null===d&&V(t,f.el),r&&fe(r,a),(h=e.props&&e.props.onVnodeUpdated)&&fe((()=>Fn(h,o,e,c)),a)}else{let r;const{el:l,props:u}=e,{bm:c,m:h,parent:d}=t,p=gt(e);if(ye(t,!1),c&&(0,i.DY)(c),!p&&(r=u&&u.onVnodeBeforeMount)&&Fn(r,d,e),ye(t,!0),l&&rt){const n=()=>{t.subTree=z(t),rt(l,t.subTree,t,a,null)};p?e.type.__asyncLoader().then((()=>!t.isUnmounted&&n())):n()}else{0;const r=t.subTree=z(t);0,m(null,r,n,o,t,a,s),e.el=r.el}if(h&&fe(h,a),!p&&(r=u&&u.onVnodeMounted)){const t=e;fe((()=>Fn(r,d,t)),a)}(256&e.shapeFlag||d&&gt(d.vnode)&&256&d.vnode.shapeFlag)&&t.a&&fe(t.a,a),t.isMounted=!0,e=n=o=null}},c=t.effect=new r.X2(u,i.tE,(()=>_(h)),t.scope),h=t.update=()=>{c.dirty&&c.run()};h.id=t.uid,ye(t,!0),h()},F=(t,e,n)=>{e.component=t;const i=t.vnode.props;t.vnode=e,t.next=null,qt(t,e.props,i,n),he(t,e.children,n),(0,r.C4)(),S(t),(0,r.bl)()},j=(t,e,n,r,i,o,a,s,l=!1)=>{const u=t&&t.children,c=t?t.shapeFlag:0,h=e.children,{patchFlag:p,shapeFlag:f}=e;if(p>0){if(128&p)return void H(u,h,n,r,i,o,a,s,l);if(256&p)return void Q(u,h,n,r,i,o,a,s,l)}8&f?(16&c&&q(u,i,o),h!==u&&d(n,h)):16&c?16&f?H(u,h,n,r,i,o,a,s,l):q(u,i,o,!0):(8&c&&d(n,""),16&f&&P(h,n,r,i,o,a,s,l))},Q=(t,e,n,r,o,a,s,l,u)=>{t=t||i.Oj,e=e||i.Oj;const c=t.length,h=e.length,d=Math.min(c,h);let p;for(p=0;p<d;p++){const r=e[p]=u?Nn(e[p]):Ln(e[p]);m(t[p],r,n,null,o,a,s,l,u)}c>h?q(t,o,a,!0,!1,d):P(e,n,r,o,a,s,l,u,d)},H=(t,e,n,r,o,a,s,l,u)=>{let c=0;const h=e.length;let d=t.length-1,p=h-1;while(c<=d&&c<=p){const r=t[c],i=e[c]=u?Nn(e[c]):Ln(e[c]);if(!kn(r,i))break;m(r,i,n,null,o,a,s,l,u),c++}while(c<=d&&c<=p){const r=t[d],i=e[p]=u?Nn(e[p]):Ln(e[p]);if(!kn(r,i))break;m(r,i,n,null,o,a,s,l,u),d--,p--}if(c>d){if(c<=p){const t=p+1,i=t<h?e[t].el:r;while(c<=p)m(null,e[c]=u?Nn(e[c]):Ln(e[c]),n,i,o,a,s,l,u),c++}}else if(c>p)while(c<=d)G(t[c],o,a,!0),c++;else{const f=c,g=c,v=new Map;for(c=g;c<=p;c++){const t=e[c]=u?Nn(e[c]):Ln(e[c]);null!=t.key&&v.set(t.key,c)}let y,b=0;const _=p-g+1;let x=!1,w=0;const O=new Array(_);for(c=0;c<_;c++)O[c]=0;for(c=f;c<=d;c++){const r=t[c];if(b>=_){G(r,o,a,!0);continue}let i;if(null!=r.key)i=v.get(r.key);else for(y=g;y<=p;y++)if(0===O[y-g]&&kn(r,e[y])){i=y;break}void 0===i?G(r,o,a,!0):(O[i-g]=c+1,i>=w?w=i:x=!0,m(r,e[i],n,null,o,a,s,l,u),b++)}const S=x?xe(O):i.Oj;for(y=S.length-1,c=_-1;c>=0;c--){const t=g+c,i=e[t],d=t+1<h?e[t+1].el:r;0===O[c]?m(null,i,n,d,o,a,s,l,u):x&&(y<0||c!==S[y]?Z(i,n,d,2):y--)}}},Z=(t,e,n,r,i=null)=>{const{el:a,type:s,transition:l,children:u,shapeFlag:c}=t;if(6&c)return void Z(t.component.subTree,e,n,r);if(128&c)return void t.suspense.move(e,n,r);if(64&c)return void s.move(t,e,n,et);if(s===dn){o(a,e,n);for(let t=0;t<u.length;t++)Z(u[t],e,n,r);return void o(t.anchor,e,n)}if(s===gn)return void O(t,e,n);const h=2!==r&&1&c&&l;if(h)if(0===r)l.beforeEnter(a),o(a,e,n),fe((()=>l.enter(a)),i);else{const{leave:t,delayLeave:r,afterLeave:i}=l,s=()=>o(a,e,n),u=()=>{t(a,(()=>{s(),i&&i()}))};r?r(a,s,u):u()}else o(a,e,n)},G=(t,e,n,r=!1,i=!1)=>{const{type:o,props:a,ref:s,children:l,dynamicChildren:u,shapeFlag:c,patchFlag:h,dirs:d,memoIndex:p}=t;if(-2===h&&(i=!1),null!=s&&de(s,null,n,t,!0),null!=p&&(e.renderCache[p]=void 0),256&c)return void e.ctx.deactivate(t);const f=1&c&&d,g=!gt(t);let v;if(g&&(v=a&&a.onVnodeBeforeUnmount)&&Fn(v,e,t),6&c)Y(t.component,n,r);else{if(128&c)return void t.suspense.unmount(n,r);f&&dt(t,null,e,"beforeUnmount"),64&c?t.type.remove(t,e,n,et,r):u&&(o!==dn||h>0&&64&h)?q(u,e,n,!1,!0):(o===dn&&384&h||!i&&16&c)&&q(l,e,n),r&&X(t)}(g&&(v=a&&a.onVnodeUnmounted)||f)&&fe((()=>{v&&Fn(v,e,t),f&&dt(t,null,e,"unmounted")}),n)},X=t=>{const{type:e,el:n,anchor:r,transition:i}=t;if(e===dn)return void U(n,r);if(e===gn)return void k(t);const o=()=>{a(n),i&&!i.persisted&&i.afterLeave&&i.afterLeave()};if(1&t.shapeFlag&&i&&!i.persisted){const{leave:e,delayLeave:r}=i,a=()=>e(n,o);r?r(t.el,o,a):a()}else o()},U=(t,e)=>{let n;while(t!==e)n=f(t),a(t),t=n;a(e)},Y=(t,e,n)=>{const{bum:r,scope:o,update:a,subTree:s,um:l,m:u,a:c}=t;Oe(u),Oe(c),r&&(0,i.DY)(r),o.stop(),a&&(a.active=!1,G(s,t,e,n)),l&&fe(l,e),fe((()=>{t.isUnmounted=!0}),e),e&&e.pendingBranch&&!e.isUnmounted&&t.asyncDep&&!t.asyncResolved&&t.suspenseId===e.pendingId&&(e.deps--,0===e.deps&&e.resolve())},q=(t,e,n,r=!1,i=!1,o=0)=>{for(let a=o;a<t.length;a++)G(t[a],e,n,r,i)},K=t=>6&t.shapeFlag?K(t.component.subTree):128&t.shapeFlag?t.suspense.next():f(t.anchor||t.el);let J=!1;const tt=(t,e,n)=>{null==t?e._vnode&&G(e._vnode,null,null,!0):m(e._vnode||null,t,e,null,null,null,n),J||(J=!0,S(),A(),J=!1),e._vnode=t},et={p:m,um:G,m:Z,r:X,mt:L,mc:P,pc:j,pbc:$,n:K,o:t};let nt,rt;return e&&([nt,rt]=e(et)),{render:tt,hydrate:nt,createApp:Vt(tt,nt)}}function me({type:t,props:e},n){return"svg"===n&&"foreignObject"===t||"mathml"===n&&"annotation-xml"===t&&e&&e.encoding&&e.encoding.includes("html")?void 0:n}function ye({effect:t,update:e},n){t.allowRecurse=e.allowRecurse=n}function be(t,e){return(!t||t&&!t.pendingBranch)&&e&&!e.persisted}function _e(t,e,n=!1){const r=t.children,o=e.children;if((0,i.cy)(r)&&(0,i.cy)(o))for(let i=0;i<r.length;i++){const t=r[i];let e=o[i];1&e.shapeFlag&&!e.dynamicChildren&&((e.patchFlag<=0||32===e.patchFlag)&&(e=o[i]=Nn(o[i]),e.el=t.el),n||-2===e.patchFlag||_e(t,e)),e.type===pn&&(e.el=t.el)}}function xe(t){const e=t.slice(),n=[0];let r,i,o,a,s;const l=t.length;for(r=0;r<l;r++){const l=t[r];if(0!==l){if(i=n[n.length-1],t[i]<l){e[r]=i,n.push(r);continue}o=0,a=n.length-1;while(o<a)s=o+a>>1,t[n[s]]<l?o=s+1:a=s;l<t[n[o]]&&(o>0&&(e[r]=n[o-1]),n[o]=r)}}o=n.length,a=n[o-1];while(o-- >0)n[o]=a,a=e[a];return n}function we(t){const e=t.subTree.component;if(e)return e.asyncDep&&!e.asyncResolved?e:we(e)}function Oe(t){if(t)for(let e=0;e<t.length;e++)t[e].active=!1}const Se=Symbol.for("v-scx"),Ae=()=>{{const t=Zt(Se);return t}};function ke(t,e){return Te(t,null,e)}const Ce={};function Me(t,e,n){return Te(t,e,n)}function Te(t,e,{immediate:n,deep:s,flush:l,once:u,onTrack:c,onTrigger:h}=i.MZ){if(e&&u){const t=e;e=(...e)=>{t(...e),k()}}const d=Qn,p=t=>!0===s?t:$e(t,!1===s?1:void 0);let f,g,v=!1,m=!1;if((0,r.i9)(t)?(f=()=>t.value,v=(0,r.fE)(t)):(0,r.g8)(t)?(f=()=>p(t),v=!0):(0,i.cy)(t)?(m=!0,v=t.some((t=>(0,r.g8)(t)||(0,r.fE)(t))),f=()=>t.map((t=>(0,r.i9)(t)?t.value:(0,r.g8)(t)?p(t):(0,i.Tn)(t)?o(t,d,2):void 0))):f=(0,i.Tn)(t)?e?()=>o(t,d,2):()=>(g&&g(),a(t,d,3,[b])):i.tE,e&&s){const t=f;f=()=>$e(t())}let y,b=t=>{g=S.onStop=()=>{o(t,d,4),g=S.onStop=void 0}};if(Jn){if(b=i.tE,e?n&&a(e,d,3,[f(),m?[]:void 0,b]):f(),"sync"!==l)return i.tE;{const t=Ae();y=t.__watcherHandles||(t.__watcherHandles=[])}}let x=m?new Array(t.length).fill(Ce):Ce;const w=()=>{if(S.active&&S.dirty)if(e){const t=S.run();(s||v||(m?t.some(((t,e)=>(0,i.$H)(t,x[e]))):(0,i.$H)(t,x)))&&(g&&g(),a(e,d,3,[t,x===Ce?void 0:m&&x[0]===Ce?[]:x,b]),x=t)}else S.run()};let O;w.allowRecurse=!!e,"sync"===l?O=w:"post"===l?O=()=>fe(w,d&&d.suspense):(w.pre=!0,d&&(w.id=d.uid),O=()=>_(w));const S=new r.X2(f,i.tE,O),A=(0,r.o5)(),k=()=>{S.stop(),A&&(0,i.TF)(A.effects,S)};return e?n?w():x=S.run():"post"===l?fe(S.run.bind(S),d&&d.suspense):S.run(),y&&y.push(k),k}function Pe(t,e,n){const r=this.proxy,o=(0,i.Kg)(t)?t.includes(".")?Ie(r,t):()=>r[t]:t.bind(r,r);let a;(0,i.Tn)(e)?a=e:(a=e.handler,n=e);const s=Xn(this),l=Te(o,a.bind(r),n);return s(),l}function Ie(t,e){const n=e.split(".");return()=>{let e=t;for(let t=0;t<n.length&&e;t++)e=e[n[t]];return e}}function $e(t,e=1/0,n){if(e<=0||!(0,i.Gv)(t)||t["__v_skip"])return t;if(n=n||new Set,n.has(t))return t;if(n.add(t),e--,(0,r.i9)(t))$e(t.value,e,n);else if((0,i.cy)(t))for(let r=0;r<t.length;r++)$e(t[r],e,n);else if((0,i.vM)(t)||(0,i.CE)(t))t.forEach((t=>{$e(t,e,n)}));else if((0,i.Qd)(t)){for(const r in t)$e(t[r],e,n);for(const r of Object.getOwnPropertySymbols(t))Object.prototype.propertyIsEnumerable.call(t,r)&&$e(t[r],e,n)}return t}const Ee=t=>t.type.__isKeepAlive;RegExp,RegExp;function Re(t,e){return(0,i.cy)(t)?t.some((t=>Re(t,e))):(0,i.Kg)(t)?t.split(",").includes(e):!!(0,i.gd)(t)&&t.test(e)}function De(t,e){Ne(t,"a",e)}function Le(t,e){Ne(t,"da",e)}function Ne(t,e,n=Qn){const r=t.__wdc||(t.__wdc=()=>{let e=n;while(e){if(e.isDeactivated)return;e=e.parent}return t()});if(J(e,r,n),n){let t=n.parent;while(t&&t.parent)Ee(t.parent.vnode)&&ze(r,e,n,t),t=t.parent}}function ze(t,e,n,r){const o=J(e,t,r,!0);at((()=>{(0,i.TF)(r[e],o)}),n)}function Be(t){t.shapeFlag&=-257,t.shapeFlag&=-513}function Fe(t){return 128&t.shapeFlag?t.ssContent:t}const We=Symbol("_leaveCb"),je=Symbol("_enterCb");function Ve(){const t={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return nt((()=>{t.isMounted=!0})),ot((()=>{t.isUnmounting=!0})),t}const Qe=[Function,Array],He={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Qe,onEnter:Qe,onAfterEnter:Qe,onEnterCancelled:Qe,onBeforeLeave:Qe,onLeave:Qe,onAfterLeave:Qe,onLeaveCancelled:Qe,onBeforeAppear:Qe,onAppear:Qe,onAfterAppear:Qe,onAppearCancelled:Qe},Ze=t=>{const e=t.subTree;return e.component?Ze(e.component):e},Ge={name:"BaseTransition",props:He,setup(t,{slots:e}){const n=Hn(),i=Ve();return()=>{const o=e.default&&tn(e.default(),!0);if(!o||!o.length)return;let a=o[0];if(o.length>1){let t=!1;for(const e of o)if(e.type!==fn){0,a=e,t=!0;break}}const s=(0,r.ux)(t),{mode:l}=s;if(i.isLeaving)return qe(a);const u=Ke(a);if(!u)return qe(a);let c=Ye(u,s,i,n,(t=>c=t));Je(u,c);const h=n.subTree,d=h&&Ke(h);if(d&&d.type!==fn&&!kn(u,d)&&Ze(n).type!==fn){const t=Ye(d,s,i,n);if(Je(d,t),"out-in"===l&&u.type!==fn)return i.isLeaving=!0,t.afterLeave=()=>{i.isLeaving=!1,!1!==n.update.active&&(n.effect.dirty=!0,n.update())},qe(a);"in-out"===l&&u.type!==fn&&(t.delayLeave=(t,e,n)=>{const r=Ue(i,d);r[String(d.key)]=d,t[We]=()=>{e(),t[We]=void 0,delete c.delayedLeave},c.delayedLeave=n})}return a}}},Xe=Ge;function Ue(t,e){const{leavingVNodes:n}=t;let r=n.get(e.type);return r||(r=Object.create(null),n.set(e.type,r)),r}function Ye(t,e,n,r,o){const{appear:s,mode:l,persisted:u=!1,onBeforeEnter:c,onEnter:h,onAfterEnter:d,onEnterCancelled:p,onBeforeLeave:f,onLeave:g,onAfterLeave:v,onLeaveCancelled:m,onBeforeAppear:y,onAppear:b,onAfterAppear:_,onAppearCancelled:x}=e,w=String(t.key),O=Ue(n,t),S=(t,e)=>{t&&a(t,r,9,e)},A=(t,e)=>{const n=e[1];S(t,e),(0,i.cy)(t)?t.every((t=>t.length<=1))&&n():t.length<=1&&n()},k={mode:l,persisted:u,beforeEnter(e){let r=c;if(!n.isMounted){if(!s)return;r=y||c}e[We]&&e[We](!0);const i=O[w];i&&kn(t,i)&&i.el[We]&&i.el[We](),S(r,[e])},enter(t){let e=h,r=d,i=p;if(!n.isMounted){if(!s)return;e=b||h,r=_||d,i=x||p}let o=!1;const a=t[je]=e=>{o||(o=!0,S(e?i:r,[t]),k.delayedLeave&&k.delayedLeave(),t[je]=void 0)};e?A(e,[t,a]):a()},leave(e,r){const i=String(t.key);if(e[je]&&e[je](!0),n.isUnmounting)return r();S(f,[e]);let o=!1;const a=e[We]=n=>{o||(o=!0,r(),S(n?m:v,[e]),e[We]=void 0,O[i]===t&&delete O[i])};O[i]=t,g?A(g,[e,a]):a()},clone(t){const i=Ye(t,e,n,r,o);return o&&o(i),i}};return k}function qe(t){if(Ee(t))return t=En(t),t.children=null,t}function Ke(t){if(!Ee(t))return t;const{shapeFlag:e,children:n}=t;if(n){if(16&e)return n[0];if(32&e&&(0,i.Tn)(n.default))return n.default()}}function Je(t,e){6&t.shapeFlag&&t.component?Je(t.component.subTree,e):128&t.shapeFlag?(t.ssContent.transition=e.clone(t.ssContent),t.ssFallback.transition=e.clone(t.ssFallback)):t.transition=e}function tn(t,e=!1,n){let r=[],i=0;for(let o=0;o<t.length;o++){let a=t[o];const s=null==n?a.key:String(n)+String(null!=a.key?a.key:o);a.type===dn?(128&a.patchFlag&&i++,r=r.concat(tn(a.children,e,s))):(e||a.type!==fn)&&r.push(null!=s?En(a,{key:s}):a)}if(i>1)for(let o=0;o<r.length;o++)r[o].patchFlag=-2;return r}const en=t=>t.__isTeleport,nn=t=>t&&(t.disabled||""===t.disabled),rn=t=>"undefined"!==typeof SVGElement&&t instanceof SVGElement,on=t=>"function"===typeof MathMLElement&&t instanceof MathMLElement,an=(t,e)=>{const n=t&&t.to;if((0,i.Kg)(n)){if(e){const t=e(n);return t}return null}return n},sn={name:"Teleport",__isTeleport:!0,process(t,e,n,r,i,o,a,s,l,u){const{mc:c,pc:h,pbc:d,o:{insert:p,querySelector:f,createText:g,createComment:v}}=u,m=nn(e.props);let{shapeFlag:y,children:b,dynamicChildren:_}=e;if(null==t){const t=e.el=g(""),u=e.anchor=g("");p(t,n,r),p(u,n,r);const h=e.target=an(e.props,f),d=e.targetAnchor=g("");h&&(p(d,h),"svg"===a||rn(h)?a="svg":("mathml"===a||on(h))&&(a="mathml"));const v=(t,e)=>{16&y&&c(b,t,e,i,o,a,s,l)};m?v(n,u):h&&v(h,d)}else{e.el=t.el;const r=e.anchor=t.anchor,c=e.target=t.target,p=e.targetAnchor=t.targetAnchor,g=nn(t.props),v=g?n:c,y=g?r:p;if("svg"===a||rn(c)?a="svg":("mathml"===a||on(c))&&(a="mathml"),_?(d(t.dynamicChildren,_,v,i,o,a,s),_e(t,e,!0)):l||h(t,e,v,y,i,o,a,s,!1),m)g?e.props&&t.props&&e.props.to!==t.props.to&&(e.props.to=t.props.to):ln(e,n,r,u,1);else if((e.props&&e.props.to)!==(t.props&&t.props.to)){const t=e.target=an(e.props,f);t&&ln(e,t,null,u,0)}else g&&ln(e,c,p,u,1)}hn(e)},remove(t,e,n,{um:r,o:{remove:i}},o){const{shapeFlag:a,children:s,anchor:l,targetAnchor:u,target:c,props:h}=t;if(c&&i(u),o&&i(l),16&a){const t=o||!nn(h);for(let i=0;i<s.length;i++){const o=s[i];r(o,e,n,t,!!o.dynamicChildren)}}},move:ln,hydrate:un};function ln(t,e,n,{o:{insert:r},m:i},o=2){0===o&&r(t.targetAnchor,e,n);const{el:a,anchor:s,shapeFlag:l,children:u,props:c}=t,h=2===o;if(h&&r(a,e,n),(!h||nn(c))&&16&l)for(let d=0;d<u.length;d++)i(u[d],e,n,2);h&&r(s,e,n)}function un(t,e,n,r,i,o,{o:{nextSibling:a,parentNode:s,querySelector:l}},u){const c=e.target=an(e.props,l);if(c){const l=c._lpa||c.firstChild;if(16&e.shapeFlag)if(nn(e.props))e.anchor=u(a(t),e,s(t),n,r,i,o),e.targetAnchor=l;else{e.anchor=a(t);let s=l;while(s)if(s=a(s),s&&8===s.nodeType&&"teleport anchor"===s.data){e.targetAnchor=s,c._lpa=e.targetAnchor&&a(e.targetAnchor);break}u(l,e,c,n,r,i,o)}hn(e)}return e.anchor&&a(e.anchor)}const cn=sn;function hn(t){const e=t.ctx;if(e&&e.ut){let n=t.children[0].el;while(n&&n!==t.targetAnchor)1===n.nodeType&&n.setAttribute("data-v-owner",e.uid),n=n.nextSibling;e.ut()}}const dn=Symbol.for("v-fgt"),pn=Symbol.for("v-txt"),fn=Symbol.for("v-cmt"),gn=Symbol.for("v-stc"),vn=[];let mn=null;function yn(t=!1){vn.push(mn=t?null:[])}function bn(){vn.pop(),mn=vn[vn.length-1]||null}let _n=1;function xn(t){_n+=t}function wn(t){return t.dynamicChildren=_n>0?mn||i.Oj:null,bn(),_n>0&&mn&&mn.push(t),t}function On(t,e,n,r,i,o){return wn(Tn(t,e,n,r,i,o,!0))}function Sn(t,e,n,r,i){return wn(Pn(t,e,n,r,i,!0))}function An(t){return!!t&&!0===t.__v_isVNode}function kn(t,e){return t.type===e.type&&t.key===e.key}const Cn=({key:t})=>null!=t?t:null,Mn=({ref:t,ref_key:e,ref_for:n})=>("number"===typeof t&&(t=""+t),null!=t?(0,i.Kg)(t)||(0,r.i9)(t)||(0,i.Tn)(t)?{i:$,r:t,k:e,f:!!n}:t:null);function Tn(t,e=null,n=null,r=0,o=null,a=(t===dn?0:1),s=!1,l=!1){const u={__v_isVNode:!0,__v_skip:!0,type:t,props:e,key:e&&Cn(e),ref:e&&Mn(e),scopeId:E,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:a,patchFlag:r,dynamicProps:o,dynamicChildren:null,appContext:null,ctx:$};return l?(zn(u,n),128&a&&t.normalize(u)):n&&(u.shapeFlag|=(0,i.Kg)(n)?8:16),_n>0&&!s&&mn&&(u.patchFlag>0||6&a)&&32!==u.patchFlag&&mn.push(u),u}const Pn=In;function In(t,e=null,n=null,o=0,a=null,s=!1){if(t&&t!==Z||(t=fn),An(t)){const r=En(t,e,!0);return n&&zn(r,n),_n>0&&!s&&mn&&(6&r.shapeFlag?mn[mn.indexOf(t)]=r:mn.push(r)),r.patchFlag=-2,r}if(lr(t)&&(t=t.__vccOpts),e){e=$n(e);let{class:t,style:n}=e;t&&!(0,i.Kg)(t)&&(e.class=(0,i.C4)(t)),(0,i.Gv)(n)&&((0,r.ju)(n)&&!(0,i.cy)(n)&&(n=(0,i.X$)({},n)),e.style=(0,i.Tr)(n))}const l=(0,i.Kg)(t)?1:q(t)?128:en(t)?64:(0,i.Gv)(t)?4:(0,i.Tn)(t)?2:0;return Tn(t,e,n,o,a,l,s,!0)}function $n(t){return t?(0,r.ju)(t)||Ut(t)?(0,i.X$)({},t):t:null}function En(t,e,n=!1,r=!1){const{props:o,ref:a,patchFlag:s,children:l,transition:u}=t,c=e?Bn(o||{},e):o,h={__v_isVNode:!0,__v_skip:!0,type:t.type,props:c,key:c&&Cn(c),ref:e&&e.ref?n&&a?(0,i.cy)(a)?a.concat(Mn(e)):[a,Mn(e)]:Mn(e):a,scopeId:t.scopeId,slotScopeIds:t.slotScopeIds,children:l,target:t.target,targetAnchor:t.targetAnchor,staticCount:t.staticCount,shapeFlag:t.shapeFlag,patchFlag:e&&t.type!==dn?-1===s?16:16|s:s,dynamicProps:t.dynamicProps,dynamicChildren:t.dynamicChildren,appContext:t.appContext,dirs:t.dirs,transition:u,component:t.component,suspense:t.suspense,ssContent:t.ssContent&&En(t.ssContent),ssFallback:t.ssFallback&&En(t.ssFallback),el:t.el,anchor:t.anchor,ctx:t.ctx,ce:t.ce};return u&&r&&Je(h,u.clone(h)),h}function Rn(t=" ",e=0){return Pn(pn,null,t,e)}function Dn(t="",e=!1){return e?(yn(),Sn(fn,null,t)):Pn(fn,null,t)}function Ln(t){return null==t||"boolean"===typeof t?Pn(fn):(0,i.cy)(t)?Pn(dn,null,t.slice()):"object"===typeof t?Nn(t):Pn(pn,null,String(t))}function Nn(t){return null===t.el&&-1!==t.patchFlag||t.memo?t:En(t)}function zn(t,e){let n=0;const{shapeFlag:r}=t;if(null==e)e=null;else if((0,i.cy)(e))n=16;else if("object"===typeof e){if(65&r){const n=e.default;return void(n&&(n._c&&(n._d=!1),zn(t,n()),n._c&&(n._d=!0)))}{n=32;const r=e._;r||Ut(e)?3===r&&$&&(1===$.slots._?e._=1:(e._=2,t.patchFlag|=1024)):e._ctx=$}}else(0,i.Tn)(e)?(e={default:e,_ctx:$},n=32):(e=String(e),64&r?(n=16,e=[Rn(e)]):n=8);t.children=e,t.shapeFlag|=n}function Bn(...t){const e={};for(let n=0;n<t.length;n++){const r=t[n];for(const t in r)if("class"===t)e.class!==r.class&&(e.class=(0,i.C4)([e.class,r.class]));else if("style"===t)e.style=(0,i.Tr)([e.style,r.style]);else if((0,i.Mp)(t)){const n=e[t],o=r[t];!o||n===o||(0,i.cy)(n)&&n.includes(o)||(e[t]=n?[].concat(n,o):o)}else""!==t&&(e[t]=r[t])}return e}function Fn(t,e,n,r=null){a(t,e,7,[n,r])}const Wn=Wt();let jn=0;function Vn(t,e,n){const o=t.type,a=(e?e.appContext:t.appContext)||Wn,s={uid:jn++,vnode:t,type:o,parent:e,appContext:a,root:null,next:null,subTree:null,effect:null,update:null,scope:new r.yC(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:e?e.provides:Object.create(a.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:te(o,a),emitsOptions:P(o,a),emit:null,emitted:null,propsDefaults:i.MZ,inheritAttrs:o.inheritAttrs,ctx:i.MZ,data:i.MZ,props:i.MZ,attrs:i.MZ,slots:i.MZ,refs:i.MZ,setupState:i.MZ,setupContext:null,attrsProxy:null,slotsProxy:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return s.ctx={_:s},s.root=e?e.root:s,s.emit=T.bind(null,s),t.ce&&t.ce(s),s}let Qn=null;const Hn=()=>Qn||$;let Zn,Gn;{const t=(0,i.We)(),e=(e,n)=>{let r;return(r=t[e])||(r=t[e]=[]),r.push(n),t=>{r.length>1?r.forEach((e=>e(t))):r[0](t)}};Zn=e("__VUE_INSTANCE_SETTERS__",(t=>Qn=t)),Gn=e("__VUE_SSR_SETTERS__",(t=>Jn=t))}const Xn=t=>{const e=Qn;return Zn(t),t.scope.on(),()=>{t.scope.off(),Zn(e)}},Un=()=>{Qn&&Qn.scope.off(),Zn(null)};function Yn(t){return 4&t.vnode.shapeFlag}let qn,Kn,Jn=!1;function tr(t,e=!1){e&&Gn(e);const{props:n,children:r}=t.vnode,i=Yn(t);Yt(t,n,i,e),ce(t,r);const o=i?er(t,e):void 0;return e&&Gn(!1),o}function er(t,e){const n=t.type;t.accessCache=Object.create(null),t.proxy=new Proxy(t.ctx,xt);const{setup:a}=n;if(a){const n=t.setupContext=a.length>1?or(t):null,l=Xn(t);(0,r.C4)();const u=o(a,t,0,[t.props,n]);if((0,r.bl)(),l(),(0,i.yL)(u)){if(u.then(Un,Un),e)return u.then((n=>{nr(t,n,e)})).catch((e=>{s(e,t,0)}));t.asyncDep=u}else nr(t,u,e)}else rr(t,e)}function nr(t,e,n){(0,i.Tn)(e)?t.type.__ssrInlineRender?t.ssrRender=e:t.render=e:(0,i.Gv)(e)&&(t.setupState=(0,r.Pr)(e)),rr(t,n)}function rr(t,e,n){const o=t.type;if(!t.render){if(!e&&qn&&!o.render){const e=o.template||It(t).template;if(e){0;const{isCustomElement:n,compilerOptions:r}=t.appContext.config,{delimiters:a,compilerOptions:s}=o,l=(0,i.X$)((0,i.X$)({isCustomElement:n,delimiters:a},r),s);o.render=qn(e,l)}}t.render=o.render||i.tE,Kn&&Kn(t)}{const e=Xn(t);(0,r.C4)();try{Ct(t)}finally{(0,r.bl)(),e()}}}const ir={get(t,e){return(0,r.u4)(t,"get",""),t[e]}};function or(t){const e=e=>{t.exposed=e||{}};return{attrs:new Proxy(t.attrs,ir),slots:t.slots,emit:t.emit,expose:e}}function ar(t){return t.exposed?t.exposeProxy||(t.exposeProxy=new Proxy((0,r.Pr)((0,r.IG)(t.exposed)),{get(e,n){return n in e?e[n]:n in bt?bt[n](t):void 0},has(t,e){return e in t||e in bt}})):t.proxy}function sr(t,e=!0){return(0,i.Tn)(t)?t.displayName||t.name:t.name||e&&t.__name}function lr(t){return(0,i.Tn)(t)&&"__vccOpts"in t}const ur=(t,e)=>{const n=(0,r.EW)(t,e,Jn);return n};function cr(t,e,n){const r=arguments.length;return 2===r?(0,i.Gv)(e)&&!(0,i.cy)(e)?An(e)?Pn(t,null,[e]):Pn(t,e):Pn(t,null,e):(r>3?n=Array.prototype.slice.call(arguments,2):3===r&&An(n)&&(n=[n]),Pn(t,e,n))}const hr="3.4.31",dr=i.tE},67874:function(t,e,n){"use strict";n.d(e,{D$:function(){return Ot},F:function(){return dt},XL:function(){return bt},XX:function(){return Tt},aG:function(){return R},eB:function(){return f},jR:function(){return At}});n(30381),n(85194),n(27092),n(68925),n(31796),n(21467),n(22064),n(92114);var r=n(73913),i=n(1980),o=n(78753);
  9. /**
  10. * @vue/runtime-dom v3.4.31
  11. * (c) 2018-present Yuxi (Evan) You and Vue contributors
  12. * @license MIT
  13. **/
  14. const a="http://www.w3.org/2000/svg",s="http://www.w3.org/1998/Math/MathML",l="undefined"!==typeof document?document:null,u=l&&l.createElement("template"),c={insert:(t,e,n)=>{e.insertBefore(t,n||null)},remove:t=>{const e=t.parentNode;e&&e.removeChild(t)},createElement:(t,e,n,r)=>{const i="svg"===e?l.createElementNS(a,t):"mathml"===e?l.createElementNS(s,t):n?l.createElement(t,{is:n}):l.createElement(t);return"select"===t&&r&&null!=r.multiple&&i.setAttribute("multiple",r.multiple),i},createText:t=>l.createTextNode(t),createComment:t=>l.createComment(t),setText:(t,e)=>{t.nodeValue=e},setElementText:(t,e)=>{t.textContent=e},parentNode:t=>t.parentNode,nextSibling:t=>t.nextSibling,querySelector:t=>l.querySelector(t),setScopeId(t,e){t.setAttribute(e,"")},insertStaticContent(t,e,n,r,i,o){const a=n?n.previousSibling:e.lastChild;if(i&&(i===o||i.nextSibling)){while(1)if(e.insertBefore(i.cloneNode(!0),n),i===o||!(i=i.nextSibling))break}else{u.innerHTML="svg"===r?`<svg>${t}</svg>`:"mathml"===r?`<math>${t}</math>`:t;const i=u.content;if("svg"===r||"mathml"===r){const t=i.firstChild;while(t.firstChild)i.appendChild(t.firstChild);i.removeChild(t)}e.insertBefore(i,n)}return[a?a.nextSibling:e.firstChild,n?n.previousSibling:e.lastChild]}},h="transition",d="animation",p=Symbol("_vtc"),f=(t,{slots:e})=>(0,r.h)(r.pR,b(t),e);f.displayName="Transition";const g={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},v=f.props=(0,i.X$)({},r.QP,g),m=(t,e=[])=>{(0,i.cy)(t)?t.forEach((t=>t(...e))):t&&t(...e)},y=t=>!!t&&((0,i.cy)(t)?t.some((t=>t.length>1)):t.length>1);function b(t){const e={};for(const i in t)i in g||(e[i]=t[i]);if(!1===t.css)return e;const{name:n="v",type:r,duration:o,enterFromClass:a=`${n}-enter-from`,enterActiveClass:s=`${n}-enter-active`,enterToClass:l=`${n}-enter-to`,appearFromClass:u=a,appearActiveClass:c=s,appearToClass:h=l,leaveFromClass:d=`${n}-leave-from`,leaveActiveClass:p=`${n}-leave-active`,leaveToClass:f=`${n}-leave-to`}=t,v=_(o),b=v&&v[0],x=v&&v[1],{onBeforeEnter:A,onEnter:C,onEnterCancelled:M,onLeave:T,onLeaveCancelled:I,onBeforeAppear:$=A,onAppear:E=C,onAppearCancelled:R=M}=e,D=(t,e,n)=>{O(t,e?h:l),O(t,e?c:s),n&&n()},L=(t,e)=>{t._isLeaving=!1,O(t,d),O(t,f),O(t,p),e&&e()},N=t=>(e,n)=>{const i=t?E:C,o=()=>D(e,t,n);m(i,[e,o]),S((()=>{O(e,t?u:a),w(e,t?h:l),y(i)||k(e,r,b,o)}))};return(0,i.X$)(e,{onBeforeEnter(t){m(A,[t]),w(t,a),w(t,s)},onBeforeAppear(t){m($,[t]),w(t,u),w(t,c)},onEnter:N(!1),onAppear:N(!0),onLeave(t,e){t._isLeaving=!0;const n=()=>L(t,e);w(t,d),w(t,p),P(),S((()=>{t._isLeaving&&(O(t,d),w(t,f),y(T)||k(t,r,x,n))})),m(T,[t,n])},onEnterCancelled(t){D(t,!1),m(M,[t])},onAppearCancelled(t){D(t,!0),m(R,[t])},onLeaveCancelled(t){L(t),m(I,[t])}})}function _(t){if(null==t)return null;if((0,i.Gv)(t))return[x(t.enter),x(t.leave)];{const e=x(t);return[e,e]}}function x(t){const e=(0,i.Ro)(t);return e}function w(t,e){e.split(/\s+/).forEach((e=>e&&t.classList.add(e))),(t[p]||(t[p]=new Set)).add(e)}function O(t,e){e.split(/\s+/).forEach((e=>e&&t.classList.remove(e)));const n=t[p];n&&(n.delete(e),n.size||(t[p]=void 0))}function S(t){requestAnimationFrame((()=>{requestAnimationFrame(t)}))}let A=0;function k(t,e,n,r){const i=t._endId=++A,o=()=>{i===t._endId&&r()};if(n)return setTimeout(o,n);const{type:a,timeout:s,propCount:l}=C(t,e);if(!a)return r();const u=a+"end";let c=0;const h=()=>{t.removeEventListener(u,d),o()},d=e=>{e.target===t&&++c>=l&&h()};setTimeout((()=>{c<l&&h()}),s+1),t.addEventListener(u,d)}function C(t,e){const n=window.getComputedStyle(t),r=t=>(n[t]||"").split(", "),i=r(`${h}Delay`),o=r(`${h}Duration`),a=M(i,o),s=r(`${d}Delay`),l=r(`${d}Duration`),u=M(s,l);let c=null,p=0,f=0;e===h?a>0&&(c=h,p=a,f=o.length):e===d?u>0&&(c=d,p=u,f=l.length):(p=Math.max(a,u),c=p>0?a>u?h:d:null,f=c?c===h?o.length:l.length:0);const g=c===h&&/\b(transform|all)(,|$)/.test(r(`${h}Property`).toString());return{type:c,timeout:p,propCount:f,hasTransform:g}}function M(t,e){while(t.length<e.length)t=t.concat(t);return Math.max(...e.map(((e,n)=>T(e)+T(t[n]))))}function T(t){return"auto"===t?0:1e3*Number(t.slice(0,-1).replace(",","."))}function P(){return document.body.offsetHeight}function I(t,e,n){const r=t[p];r&&(e=(e?[e,...r]:[...r]).join(" ")),null==e?t.removeAttribute("class"):n?t.setAttribute("class",e):t.className=e}const $=Symbol("_vod"),E=Symbol("_vsh"),R={beforeMount(t,{value:e},{transition:n}){t[$]="none"===t.style.display?"":t.style.display,n&&e?n.beforeEnter(t):D(t,e)},mounted(t,{value:e},{transition:n}){n&&e&&n.enter(t)},updated(t,{value:e,oldValue:n},{transition:r}){!e!==!n&&(r?e?(r.beforeEnter(t),D(t,!0),r.enter(t)):r.leave(t,(()=>{D(t,!1)})):D(t,e))},beforeUnmount(t,{value:e}){D(t,e)}};function D(t,e){t.style.display=e?t[$]:"none",t[E]=!e}const L=Symbol("");const N=/(^|;)\s*display\s*:/;function z(t,e,n){const r=t.style,o=(0,i.Kg)(n);let a=!1;if(n&&!o){if(e)if((0,i.Kg)(e))for(const t of e.split(";")){const e=t.slice(0,t.indexOf(":")).trim();null==n[e]&&F(r,e,"")}else for(const t in e)null==n[t]&&F(r,t,"");for(const t in n)"display"===t&&(a=!0),F(r,t,n[t])}else if(o){if(e!==n){const t=r[L];t&&(n+=";"+t),r.cssText=n,a=N.test(n)}}else e&&t.removeAttribute("style");$ in t&&(t[$]=a?r.display:"",t[E]&&(r.display="none"))}const B=/\s*!important$/;function F(t,e,n){if((0,i.cy)(n))n.forEach((n=>F(t,e,n)));else if(null==n&&(n=""),e.startsWith("--"))t.setProperty(e,n);else{const r=V(t,e);B.test(n)?t.setProperty((0,i.Tg)(r),n.replace(B,""),"important"):t[r]=n}}const W=["Webkit","Moz","ms"],j={};function V(t,e){const n=j[e];if(n)return n;let r=(0,i.PT)(e);if("filter"!==r&&r in t)return j[e]=r;r=(0,i.ZH)(r);for(let i=0;i<W.length;i++){const n=W[i]+r;if(n in t)return j[e]=n}return e}const Q="http://www.w3.org/1999/xlink";function H(t,e,n,r,o,a=(0,i.J$)(e)){r&&e.startsWith("xlink:")?null==n?t.removeAttributeNS(Q,e.slice(6,e.length)):t.setAttributeNS(Q,e,n):null==n||a&&!(0,i.Y2)(n)?t.removeAttribute(e):t.setAttribute(e,a?"":(0,i.Bm)(n)?String(n):n)}function Z(t,e,n,r,o,a,s){if("innerHTML"===e||"textContent"===e)return r&&s(r,o,a),void(t[e]=null==n?"":n);const l=t.tagName;if("value"===e&&"PROGRESS"!==l&&!l.includes("-")){const r="OPTION"===l?t.getAttribute("value")||"":t.value,i=null==n?"":String(n);return r===i&&"_value"in t||(t.value=i),null==n&&t.removeAttribute(e),void(t._value=n)}let u=!1;if(""===n||null==n){const r=typeof t[e];"boolean"===r?n=(0,i.Y2)(n):null==n&&"string"===r?(n="",u=!0):"number"===r&&(n=0,u=!0)}try{t[e]=n}catch(c){0}u&&t.removeAttribute(e)}function G(t,e,n,r){t.addEventListener(e,n,r)}function X(t,e,n,r){t.removeEventListener(e,n,r)}const U=Symbol("_vei");function Y(t,e,n,r,i=null){const o=t[U]||(t[U]={}),a=o[e];if(r&&a)a.value=r;else{const[n,s]=K(e);if(r){const a=o[e]=nt(r,i);G(t,n,a,s)}else a&&(X(t,n,a,s),o[e]=void 0)}}const q=/(?:Once|Passive|Capture)$/;function K(t){let e;if(q.test(t)){let n;e={};while(n=t.match(q))t=t.slice(0,t.length-n[0].length),e[n[0].toLowerCase()]=!0}const n=":"===t[2]?t.slice(3):(0,i.Tg)(t.slice(2));return[n,e]}let J=0;const tt=Promise.resolve(),et=()=>J||(tt.then((()=>J=0)),J=Date.now());function nt(t,e){const n=t=>{if(t._vts){if(t._vts<=n.attached)return}else t._vts=Date.now();(0,r.qL)(rt(t,n.value),e,5,[t])};return n.value=t,n.attached=et(),n}function rt(t,e){if((0,i.cy)(e)){const n=t.stopImmediatePropagation;return t.stopImmediatePropagation=()=>{n.call(t),t._stopped=!0},e.map((t=>e=>!e._stopped&&t&&t(e)))}return e}const it=t=>111===t.charCodeAt(0)&&110===t.charCodeAt(1)&&t.charCodeAt(2)>96&&t.charCodeAt(2)<123,ot=(t,e,n,r,o,a,s,l,u)=>{const c="svg"===o;"class"===e?I(t,r,c):"style"===e?z(t,n,r):(0,i.Mp)(e)?(0,i.CP)(e)||Y(t,e,n,r,s):("."===e[0]?(e=e.slice(1),1):"^"===e[0]?(e=e.slice(1),0):at(t,e,r,c))?(Z(t,e,r,a,s,l,u),t.tagName.includes("-")||"value"!==e&&"checked"!==e&&"selected"!==e||H(t,e,r,c,s,"value"!==e)):("true-value"===e?t._trueValue=r:"false-value"===e&&(t._falseValue=r),H(t,e,r,c))};function at(t,e,n,r){if(r)return"innerHTML"===e||"textContent"===e||!!(e in t&&it(e)&&(0,i.Tn)(n));if("spellcheck"===e||"draggable"===e||"translate"===e)return!1;if("form"===e)return!1;if("list"===e&&"INPUT"===t.tagName)return!1;if("type"===e&&"TEXTAREA"===t.tagName)return!1;if("width"===e||"height"===e){const e=t.tagName;if("IMG"===e||"VIDEO"===e||"CANVAS"===e||"SOURCE"===e)return!1}return(!it(e)||!(0,i.Kg)(n))&&e in t}
  15. /*! #__NO_SIDE_EFFECTS__ */
  16. /*! #__NO_SIDE_EFFECTS__ */
  17. "undefined"!==typeof HTMLElement&&HTMLElement;const st=new WeakMap,lt=new WeakMap,ut=Symbol("_moveCb"),ct=Symbol("_enterCb"),ht={name:"TransitionGroup",props:(0,i.X$)({},v,{tag:String,moveClass:String}),setup(t,{slots:e}){const n=(0,r.nI)(),i=(0,r.Gy)();let a,s;return(0,r.$u)((()=>{if(!a.length)return;const e=t.moveClass||`${t.name||"v"}-move`;if(!vt(a[0].el,n.vnode.el,e))return;a.forEach(pt),a.forEach(ft);const r=a.filter(gt);P(),r.forEach((t=>{const n=t.el,r=n.style;w(n,e),r.transform=r.webkitTransform=r.transitionDuration="";const i=n[ut]=t=>{t&&t.target!==n||t&&!/transform$/.test(t.propertyName)||(n.removeEventListener("transitionend",i),n[ut]=null,O(n,e))};n.addEventListener("transitionend",i)}))})),()=>{const l=(0,o.ux)(t),u=b(l);let c=l.tag||r.FK;if(a=[],s)for(let t=0;t<s.length;t++){const e=s[t];e.el&&e.el instanceof Element&&(a.push(e),(0,r.MZ)(e,(0,r.OW)(e,u,i,n)),st.set(e,e.el.getBoundingClientRect()))}s=e.default?(0,r.Df)(e.default()):[];for(let t=0;t<s.length;t++){const e=s[t];null!=e.key&&(0,r.MZ)(e,(0,r.OW)(e,u,i,n))}return(0,r.bF)(c,null,s)}}};ht.props;const dt=ht;function pt(t){const e=t.el;e[ut]&&e[ut](),e[ct]&&e[ct]()}function ft(t){lt.set(t,t.el.getBoundingClientRect())}function gt(t){const e=st.get(t),n=lt.get(t),r=e.left-n.left,i=e.top-n.top;if(r||i){const e=t.el.style;return e.transform=e.webkitTransform=`translate(${r}px,${i}px)`,e.transitionDuration="0s",t}}function vt(t,e,n){const r=t.cloneNode(),i=t[p];i&&i.forEach((t=>{t.split(/\s+/).forEach((t=>t&&r.classList.remove(t)))})),n.split(/\s+/).forEach((t=>t&&r.classList.add(t))),r.style.display="none";const o=1===e.nodeType?e:e.parentNode;o.appendChild(r);const{hasTransform:a}=C(r);return o.removeChild(r),a}const mt=t=>{const e=t.props["onUpdate:modelValue"]||!1;return(0,i.cy)(e)?t=>(0,i.DY)(e,t):e};const yt=Symbol("_assign");const bt={created(t,{value:e},n){t.checked=(0,i.BX)(e,n.props.value),t[yt]=mt(n),G(t,"change",(()=>{t[yt](_t(t))}))},beforeUpdate(t,{value:e,oldValue:n},r){t[yt]=mt(r),e!==n&&(t.checked=(0,i.BX)(e,r.props.value))}};function _t(t){return"_value"in t?t._value:t.value}const xt=["ctrl","shift","alt","meta"],wt={stop:t=>t.stopPropagation(),prevent:t=>t.preventDefault(),self:t=>t.target!==t.currentTarget,ctrl:t=>!t.ctrlKey,shift:t=>!t.shiftKey,alt:t=>!t.altKey,meta:t=>!t.metaKey,left:t=>"button"in t&&0!==t.button,middle:t=>"button"in t&&1!==t.button,right:t=>"button"in t&&2!==t.button,exact:(t,e)=>xt.some((n=>t[`${n}Key`]&&!e.includes(n)))},Ot=(t,e)=>{const n=t._withMods||(t._withMods={}),r=e.join(".");return n[r]||(n[r]=(n,...r)=>{for(let t=0;t<e.length;t++){const r=wt[e[t]];if(r&&r(n,e))return}return t(n,...r)})},St={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},At=(t,e)=>{const n=t._withKeys||(t._withKeys={}),r=e.join(".");return n[r]||(n[r]=n=>{if(!("key"in n))return;const r=(0,i.Tg)(n.key);return e.some((t=>t===r||St[t]===r))?t(n):void 0})},kt=(0,i.X$)({patchProp:ot},c);let Ct;function Mt(){return Ct||(Ct=(0,r.K9)(kt))}const Tt=(...t)=>{Mt().render(...t)}},1980:function(t,e,n){"use strict";n.d(e,{$3:function(){return p},$H:function(){return N},BH:function(){return H},BX:function(){return nt},Bm:function(){return x},C4:function(){return q},CE:function(){return g},CP:function(){return u},DY:function(){return z},Gv:function(){return w},J$:function(){return J},Kg:function(){return _},MZ:function(){return i},Mp:function(){return l},NO:function(){return s},Oj:function(){return o},PT:function(){return $},Qd:function(){return C},Ro:function(){return W},SU:function(){return T},TF:function(){return h},Tg:function(){return R},Tn:function(){return b},Tr:function(){return Z},We:function(){return V},X$:function(){return c},Y2:function(){return tt},ZH:function(){return D},Zf:function(){return k},bB:function(){return F},cy:function(){return f},gd:function(){return y},pD:function(){return r},rU:function(){return L},tE:function(){return a},u3:function(){return rt},vM:function(){return v},v_:function(){return ot},yI:function(){return M},yL:function(){return O},yQ:function(){return B}});n(30381),n(85194),n(27092),n(68925),n(31796),n(21467),n(22064),n(92114);
  18. /**
  19. * @vue/shared v3.4.31
  20. * (c) 2018-present Yuxi (Evan) You and Vue contributors
  21. * @license MIT
  22. **/
  23. /*! #__NO_SIDE_EFFECTS__ */
  24. function r(t,e){const n=new Set(t.split(","));return e?t=>n.has(t.toLowerCase()):t=>n.has(t)}const i={},o=[],a=()=>{},s=()=>!1,l=t=>111===t.charCodeAt(0)&&110===t.charCodeAt(1)&&(t.charCodeAt(2)>122||t.charCodeAt(2)<97),u=t=>t.startsWith("onUpdate:"),c=Object.assign,h=(t,e)=>{const n=t.indexOf(e);n>-1&&t.splice(n,1)},d=Object.prototype.hasOwnProperty,p=(t,e)=>d.call(t,e),f=Array.isArray,g=t=>"[object Map]"===A(t),v=t=>"[object Set]"===A(t),m=t=>"[object Date]"===A(t),y=t=>"[object RegExp]"===A(t),b=t=>"function"===typeof t,_=t=>"string"===typeof t,x=t=>"symbol"===typeof t,w=t=>null!==t&&"object"===typeof t,O=t=>(w(t)||b(t))&&b(t.then)&&b(t.catch),S=Object.prototype.toString,A=t=>S.call(t),k=t=>A(t).slice(8,-1),C=t=>"[object Object]"===A(t),M=t=>_(t)&&"NaN"!==t&&"-"!==t[0]&&""+parseInt(t,10)===t,T=r(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),P=t=>{const e=Object.create(null);return n=>{const r=e[n];return r||(e[n]=t(n))}},I=/-(\w)/g,$=P((t=>t.replace(I,((t,e)=>e?e.toUpperCase():"")))),E=/\B([A-Z])/g,R=P((t=>t.replace(E,"-$1").toLowerCase())),D=P((t=>t.charAt(0).toUpperCase()+t.slice(1))),L=P((t=>{const e=t?`on${D(t)}`:"";return e})),N=(t,e)=>!Object.is(t,e),z=(t,...e)=>{for(let n=0;n<t.length;n++)t[n](...e)},B=(t,e,n,r=!1)=>{Object.defineProperty(t,e,{configurable:!0,enumerable:!1,writable:r,value:n})},F=t=>{const e=parseFloat(t);return isNaN(e)?t:e},W=t=>{const e=_(t)?Number(t):NaN;return isNaN(e)?t:e};let j;const V=()=>j||(j="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof self?self:"undefined"!==typeof window?window:"undefined"!==typeof n.g?n.g:{});const Q="Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console,Error",H=r(Q);function Z(t){if(f(t)){const e={};for(let n=0;n<t.length;n++){const r=t[n],i=_(r)?Y(r):Z(r);if(i)for(const t in i)e[t]=i[t]}return e}if(_(t)||w(t))return t}const G=/;(?![^(]*\))/g,X=/:([^]+)/,U=/\/\*[^]*?\*\//g;function Y(t){const e={};return t.replace(U,"").split(G).forEach((t=>{if(t){const n=t.split(X);n.length>1&&(e[n[0].trim()]=n[1].trim())}})),e}function q(t){let e="";if(_(t))e=t;else if(f(t))for(let n=0;n<t.length;n++){const r=q(t[n]);r&&(e+=r+" ")}else if(w(t))for(const n in t)t[n]&&(e+=n+" ");return e.trim()}const K="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",J=r(K);function tt(t){return!!t||""===t}function et(t,e){if(t.length!==e.length)return!1;let n=!0;for(let r=0;n&&r<t.length;r++)n=nt(t[r],e[r]);return n}function nt(t,e){if(t===e)return!0;let n=m(t),r=m(e);if(n||r)return!(!n||!r)&&t.getTime()===e.getTime();if(n=x(t),r=x(e),n||r)return t===e;if(n=f(t),r=f(e),n||r)return!(!n||!r)&&et(t,e);if(n=w(t),r=w(e),n||r){if(!n||!r)return!1;const i=Object.keys(t).length,o=Object.keys(e).length;if(i!==o)return!1;for(const n in t){const r=t.hasOwnProperty(n),i=e.hasOwnProperty(n);if(r&&!i||!r&&i||!nt(t[n],e[n]))return!1}}return String(t)===String(e)}function rt(t,e){return t.findIndex((t=>nt(t,e)))}const it=t=>!(!t||!0!==t.__v_isRef),ot=t=>_(t)?t:null==t?"":f(t)||w(t)&&(t.toString===S||!b(t.toString))?it(t)?ot(t.value):JSON.stringify(t,at,2):String(t),at=(t,e)=>it(e)?at(t,e.value):g(e)?{[`Map(${e.size})`]:[...e.entries()].reduce(((t,[e,n],r)=>(t[st(e,r)+" =>"]=n,t)),{})}:v(e)?{[`Set(${e.size})`]:[...e.values()].map((t=>st(t)))}:x(e)?st(e):!w(e)||f(e)||C(e)?e:String(e),st=(t,e="")=>{var n;return x(t)?`Symbol(${null!=(n=t.description)?n:e})`:t}},91949:function(t,e,n){"use strict";n.d(e,{A:function(){return p}});var r=n(69751),i=n(73913),o=n(78753),a=n(5530),s=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n};const l=(0,i.pM)({compatConfig:{MODE:3},props:{disabled:a.A.looseBool,type:a.A.string,value:a.A.any,tag:{type:String,default:"input"},size:a.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(t,e){let{expose:n}=e;const a=(0,o.IJ)(null),l=()=>{a.value&&a.value.focus()},u=()=>{a.value&&a.value.blur()},c=(t,e,n)=>{var r;null===(r=a.value)||void 0===r||r.setSelectionRange(t,e,n)},h=()=>{var t;null===(t=a.value)||void 0===t||t.select()};return n({focus:l,blur:u,input:a,setSelectionRange:c,select:h,getSelectionStart:()=>{var t;return null===(t=a.value)||void 0===t?void 0:t.selectionStart},getSelectionEnd:()=>{var t;return null===(t=a.value)||void 0===t?void 0:t.selectionEnd},getScrollTop:()=>{var t;return null===(t=a.value)||void 0===t?void 0:t.scrollTop}}),()=>{const{tag:e,value:n}=t,o=s(t,["tag","value"]);return(0,i.bF)(e,(0,r.A)((0,r.A)({},o),{},{ref:a,value:n}),null)}}});var u=l,c=n(59662),h=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n};const d=(0,i.pM)({compatConfig:{MODE:3},inheritAttrs:!1,props:{disabled:a.A.looseBool,type:a.A.string,value:a.A.any,lazy:a.A.bool.def(!0),tag:{type:String,default:"input"},size:a.A.string,style:a.A.oneOfType([String,Object]),class:a.A.string},emits:["change","input","blur","keydown","focus","compositionstart","compositionend","keyup","paste","mousedown"],setup(t,e){let{emit:n,attrs:a,expose:s}=e;const l=(0,o.IJ)(null),d=(0,o.KR)(),p=(0,o.KR)(!1);(0,i.wB)([()=>t.value,p],(()=>{p.value||(d.value=t.value)}),{immediate:!0});const f=t=>{n("change",t)},g=t=>{p.value=!0,t.target.composing=!0,n("compositionstart",t)},v=t=>{p.value=!1,t.target.composing=!1,n("compositionend",t);const e=document.createEvent("HTMLEvents");e.initEvent("input",!0,!0),t.target.dispatchEvent(e),f(t)},m=e=>{p.value&&t.lazy?d.value=e.target.value:n("input",e)},y=t=>{n("blur",t)},b=t=>{n("focus",t)},_=()=>{l.value&&l.value.focus()},x=()=>{l.value&&l.value.blur()},w=t=>{n("keydown",t)},O=t=>{n("keyup",t)},S=(t,e,n)=>{var r;null===(r=l.value)||void 0===r||r.setSelectionRange(t,e,n)},A=()=>{var t;null===(t=l.value)||void 0===t||t.select()};s({focus:_,blur:x,input:(0,i.EW)((()=>{var t;return null===(t=l.value)||void 0===t?void 0:t.input})),setSelectionRange:S,select:A,getSelectionStart:()=>{var t;return null===(t=l.value)||void 0===t?void 0:t.getSelectionStart()},getSelectionEnd:()=>{var t;return null===(t=l.value)||void 0===t?void 0:t.getSelectionEnd()},getScrollTop:()=>{var t;return null===(t=l.value)||void 0===t?void 0:t.getScrollTop()}});const k=t=>{n("mousedown",t)},C=t=>{n("paste",t)},M=(0,i.EW)((()=>t.style&&"string"!==typeof t.style?(0,c.Xf)(t.style):t.style));return()=>{const{style:e,lazy:n}=t,o=h(t,["style","lazy"]);return(0,i.bF)(u,(0,r.A)((0,r.A)((0,r.A)({},o),a),{},{style:M.value,onInput:m,onChange:f,onBlur:y,onFocus:b,ref:l,value:d.value,onCompositionstart:g,onCompositionend:v,onKeyup:O,onKeydown:w,onPaste:C,onMousedown:k}),null)}}});var p=d},207:function(t,e,n){"use strict";var r=n(98657),i=n(73913),o=n(16155);e.A={methods:{setState(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0,n="function"===typeof t?t(this.$data,this.$props):t;if(this.getDerivedStateFromProps){const t=this.getDerivedStateFromProps((0,o.Oq)(this),(0,r.A)((0,r.A)({},this.$data),n));if(null===t)return;n=(0,r.A)((0,r.A)({},n),t||{})}(0,r.A)(this.$data,n),this._.isMounted&&this.$forceUpdate(),(0,i.dY)((()=>{e&&e()}))},__emit(){const t=[].slice.call(arguments,0);let e=t[0];e=`on${e[0].toUpperCase()}${e.substring(1)}`;const n=this.$props[e]||this.$attrs[e];if(t.length&&n)if(Array.isArray(n))for(let r=0,i=n.length;r<i;r++)n[r](...t.slice(1));else n(...t.slice(1))}}}},5347:function(t,e){"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(t){const{keyCode:e}=t;if(t.altKey&&!t.ctrlKey||t.metaKey||e>=n.F1&&e<=n.F12)return!1;switch(e){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(t){if(t>=n.ZERO&&t<=n.NINE)return!0;if(t>=n.NUM_ZERO&&t<=n.NUM_MULTIPLY)return!0;if(t>=n.A&&t<=n.Z)return!0;if(-1!==window.navigator.userAgent.indexOf("WebKit")&&0===t)return!0;switch(t){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}}};e.A=n},68955:function(t,e,n){"use strict";var r=n(73913),i=n(5530),o=n(42845);e.A=(0,r.pM)({compatConfig:{MODE:3},name:"Portal",inheritAttrs:!1,props:{getContainer:i.A.func.isRequired,didUpdate:Function},setup(t,e){let n,{slots:i}=e,a=!0;const{shouldRender:s}=(0,o.v)();function l(){s.value&&(n=t.getContainer())}(0,r.KC)((()=>{a=!1,l()})),(0,r.sV)((()=>{n||l()}));const u=(0,r.wB)(s,(()=>{s.value&&!n&&(n=t.getContainer()),n&&u()}));return(0,r.$u)((()=>{(0,r.dY)((()=>{var e;s.value&&(null===(e=t.didUpdate)||void 0===e||e.call(t,t))}))})),()=>{var t;return s.value?a?null===(t=i.default)||void 0===t?void 0:t.call(i):n?(0,r.bF)(r.Im,{to:n},i):null:null}}})},5956:function(t,e,n){"use strict";n.d(e,{A:function(){return _}});var r=n(73913),i=n(5530),o=n(68955),a=n(78753),s=n(58590),l=n(38624),u=n(66041),c=n(92337);let h;function d(t){if("undefined"===typeof document)return 0;if(t||void 0===h){const t=document.createElement("div");t.style.width="100%",t.style.height="200px";const e=document.createElement("div"),n=e.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",e.appendChild(t),document.body.appendChild(e);const r=t.offsetWidth;e.style.overflow="scroll";let i=t.offsetWidth;r===i&&(i=e.clientWidth),document.body.removeChild(e),h=r-i}return h}const p=`vc-util-locker-${Date.now()}`;let f=0;function g(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}function v(t){const e=(0,r.EW)((()=>!!t&&!!t.value));f+=1;const n=`${p}_${f}`;(0,r.nT)((t=>{if((0,s.A)()){if(e.value){const t=d(),e=g();(0,c.BD)(`\nhtml body {\n overflow-y: hidden;\n ${e?`width: calc(100% - ${t}px);`:""}\n}`,n)}else(0,c.m6)(n);t((()=>{(0,c.m6)(n)}))}}),{flush:"post"})}let m=0;const y=(0,s.A)();const b=t=>{if(!y)return null;if(t){if("string"===typeof t)return document.querySelectorAll(t)[0];if("function"===typeof t)return t();if("object"===typeof t&&t instanceof window.HTMLElement)return t}return document.body};var _=(0,r.pM)({compatConfig:{MODE:3},name:"PortalWrapper",inheritAttrs:!1,props:{wrapperClassName:String,forceRender:{type:Boolean,default:void 0},getContainer:i.A.any,visible:{type:Boolean,default:void 0},autoLock:(0,u.HE)(),didUpdate:Function},setup(t,e){let{slots:n}=e;const i=(0,a.IJ)(),u=(0,a.IJ)(),c=(0,a.IJ)(),h=(0,a.IJ)(1),d=(0,s.A)()&&document.createElement("div"),p=()=>{var t,e;i.value===d&&(null===(e=null===(t=i.value)||void 0===t?void 0:t.parentNode)||void 0===e||e.removeChild(i.value)),i.value=null};let f=null;const g=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return!(e||i.value&&!i.value.parentNode)||(f=b(t.getContainer),!!f&&(f.appendChild(i.value),!0))},_=()=>y?(i.value||(i.value=d,g(!0)),x(),i.value):null,x=()=>{const{wrapperClassName:e}=t;i.value&&e&&e!==i.value.className&&(i.value.className=e)};return(0,r.$u)((()=>{x(),g()})),v((0,r.EW)((()=>t.autoLock&&t.visible&&(0,s.A)()&&(i.value===document.body||i.value===d)))),(0,r.sV)((()=>{let e=!1;(0,r.wB)([()=>t.visible,()=>t.getContainer],((n,r)=>{let[i,o]=n,[a,s]=r;if(y&&(f=b(t.getContainer),f===document.body&&(i&&!a?m+=1:e&&(m-=1))),e){const t="function"===typeof o&&"function"===typeof s;(t?o.toString()!==s.toString():o!==s)&&p()}e=!0}),{immediate:!0,flush:"post"}),(0,r.dY)((()=>{g()||(c.value=(0,l.A)((()=>{h.value+=1})))}))})),(0,r.xo)((()=>{const{visible:e}=t;y&&f===document.body&&(m=e&&m?m-1:m),p(),l.A.cancel(c.value)})),()=>{const{forceRender:e,visible:i}=t;let a=null;const s={getOpenCount:()=>m,getContainer:_};return h.value&&(e||i||u.value)&&(a=(0,r.bF)(o.A,{getContainer:_,ref:u,didUpdate:t.didUpdate},{default:()=>{var t;return null===(t=n.default)||void 0===t?void 0:t.call(n,s)}})),a}}})},58590:function(t,e){"use strict";function n(){return!("undefined"===typeof window||!window.document||!window.document.createElement)}e.A=n},13389:function(t,e,n){"use strict";n(30381);var r=n(92389);function i(){const t=[];for(let e=0;e<arguments.length;e++){const n=e<0||arguments.length<=e?void 0:arguments[e];if(n)if((0,r.Kg)(n))t.push(n);else if((0,r.cy)(n))for(let e=0;e<n.length;e++){const r=i(n[e]);r&&t.push(r)}else if((0,r.Gv)(n))for(const e in n)n[e]&&t.push(e)}return t.join(" ")}e.A=i},33063:function(t,e,n){"use strict";n.d(e,{A:function(){return l}});var r=n(73913);function i(t,e){if(t.classList)return t.classList.contains(e);const n=t.className;return` ${n} `.indexOf(` ${e} `)>-1}function o(t,e){t.classList?t.classList.add(e):i(t,e)||(t.className=`${t.className} ${e}`)}function a(t,e){if(t.classList)t.classList.remove(e);else if(i(t,e)){const n=t.className;t.className=` ${n} `.replace(` ${e} `," ")}}const s=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"ant-motion-collapse",e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return{name:t,appear:e,css:!0,onBeforeEnter:e=>{e.style.height="0px",e.style.opacity="0",o(e,t)},onEnter:t=>{(0,r.dY)((()=>{t.style.height=`${t.scrollHeight}px`,t.style.opacity="1"}))},onAfterEnter:e=>{e&&(a(e,t),e.style.height=null,e.style.opacity=null)},onBeforeLeave:e=>{o(e,t),e.style.height=`${e.offsetHeight}px`,e.style.opacity=null},onLeave:t=>{setTimeout((()=>{t.style.height="0px",t.style.opacity="0"}))},onAfterLeave:e=>{e&&(a(e,t),e.style&&(e.style.height=null,e.style.opacity=null))}}};var l=s},2126:function(t,e,n){"use strict";var r=n(98657),i=n(78753),o=n(73913);function a(t){const e=Symbol("contextKey"),n=(t,n)=>{const a=(0,i.Kh)({});return(0,o.Gt)(e,a),(0,o.nT)((()=>{(0,r.A)(a,t,n||{})})),a},a=()=>(0,o.WQ)(e,t)||{};return{useProvide:n,useInject:a}}e.A=a},97732:function(t,e){"use strict";class n{constructor(t,e){this._keyframe=!0,this.name=t,this.style=e}getName(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return t?`${t}-${this.name}`:this.name}}e.A=n},13877:function(t,e,n){"use strict";n.d(e,{aH:function(){return h},Oc:function(){return c},oi:function(){return d},K6:function(){return m}});var r=n(98657),i=n(73913),o=n(78753);const a="%";class s{constructor(t){this.cache=new Map,this.instanceId=t}get(t){return this.cache.get(Array.isArray(t)?t.join(a):t)||null}update(t,e){const n=Array.isArray(t)?t.join(a):t,r=this.cache.get(n),i=e(r);null===i?this.cache.delete(n):this.cache.set(n,i)}}var l=s,u=n(66041);const c="data-token-hash",h="data-css-hash",d="__cssinjs_instance__";function p(){const t=Math.random().toString(12).slice(2);if("undefined"!==typeof document&&document.head&&document.body){const e=document.body.querySelectorAll(`style[${h}]`)||[],{firstChild:n}=document.head;Array.from(e).forEach((e=>{e[d]=e[d]||t,e[d]===t&&document.head.insertBefore(e,n)}));const r={};Array.from(document.querySelectorAll(`style[${h}]`)).forEach((e=>{var n;const i=e.getAttribute(h);r[i]?e[d]===t&&(null===(n=e.parentNode)||void 0===n||n.removeChild(e)):r[i]=!0}))}return new l(t)}const f=Symbol("StyleContextKey"),g=()=>{var t,e,n;const r=(0,i.nI)();let o;if(r&&r.appContext){const i=null===(n=null===(e=null===(t=r.appContext)||void 0===t?void 0:t.config)||void 0===e?void 0:e.globalProperties)||void 0===n?void 0:n.__ANTDV_CSSINJS_CACHE__;i?o=i:(o=p(),r.appContext.config.globalProperties&&(r.appContext.config.globalProperties.__ANTDV_CSSINJS_CACHE__=o))}else o=p();return o},v={cache:p(),defaultCache:!0,hashPriority:"low"},m=()=>{const t=g();return(0,i.WQ)(f,(0,o.IJ)((0,r.A)((0,r.A)({},v),{cache:t})))},y=t=>{const e=m(),n=(0,o.IJ)((0,r.A)((0,r.A)({},v),{cache:p()}));return(0,i.wB)([()=>(0,o.R1)(t),e],(()=>{const i=(0,r.A)({},e.value),a=(0,o.R1)(t);Object.keys(a).forEach((t=>{const e=a[t];void 0!==a[t]&&(i[t]=e)}));const{cache:s}=a;i.cache=i.cache||p(),i.defaultCache=!s&&e.value.defaultCache,n.value=i}),{immediate:!0}),(0,i.Gt)(f,n),n},b=()=>({autoClear:(0,u.HE)(),mock:(0,u.WO)(),cache:(0,u.ge)(),defaultCache:(0,u.HE)(),hashPriority:(0,u.WO)(),container:(0,u.tK)(),ssrInline:(0,u.HE)(),transformers:(0,u.MY)(),linters:(0,u.MY)()});(0,u.GU)((0,i.pM)({name:"AStyleProvider",inheritAttrs:!1,props:b(),setup(t,e){let{slots:n}=e;return y(t),()=>{var t;return null===(t=n.default)||void 0===t?void 0:t.call(n)}}}))},3165:function(t,e,n){"use strict";n.d(e,{A:function(){return l}});var r=n(13877);function i(){return!1}var o=i;var a=n(78753),s=n(73913);function l(t,e,n,i){const l=(0,r.K6)(),u=(0,a.IJ)(""),c=(0,a.IJ)();(0,s.nT)((()=>{u.value=[t,...e.value].join("%")}));o();const h=t=>{l.value.cache.update(t,(t=>{const[e=0,n]=t||[],r=e-1;return 0===r?(null===i||void 0===i||i(n,!1),null):[e-1,n]}))};return(0,s.wB)(u,((t,e)=>{e&&h(e),l.value.cache.update(t,(t=>{const[e=0,r]=t||[];let i=r;const o=i||n();return[e+1,o]})),c.value=l.value.cache.get(u.value)[1]}),{immediate:!0}),(0,s.xo)((()=>{h(u.value)})),c}},13234:function(t,e,n){"use strict";n.d(e,{Ay:function(){return bt}});n(30381),n(85194),n(27092),n(68925),n(31796),n(21467),n(22064),n(92114);var r=n(98657),i=n(5141),o={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",h="@layer",d=Math.abs,p=String.fromCharCode;Object.assign;function f(t){return t.trim()}function g(t,e,n){return t.replace(e,n)}function v(t,e,n){return t.indexOf(e,n)}function m(t,e){return 0|t.charCodeAt(e)}function y(t,e,n){return t.slice(e,n)}function b(t){return t.length}function _(t){return t.length}function x(t,e){return e.push(t),t}function w(t,e){for(var n="",r=0;r<t.length;r++)n+=e(t[r],r,t,e)||"";return n}function O(t,e,n,r){switch(t.type){case h:if(t.children.length)break;case u:case l:return t.return=t.return||t.value;case a:return"";case c:return t.return=t.value+"{"+w(t.children,r)+"}";case s:if(!b(t.value=t.props.join(",")))return""}return b(n=w(t.children,r))?t.return=t.value+"{"+n+"}":""}var S=1,A=1,k=0,C=0,M=0,T="";function P(t,e,n,r,i,o,a,s){return{value:t,root:e,parent:n,type:r,props:i,children:o,line:S,column:A,length:a,return:"",siblings:s}}function I(){return M}function $(){return M=C>0?m(T,--C):0,A--,10===M&&(A=1,S--),M}function E(){return M=C<k?m(T,C++):0,A++,10===M&&(A=1,S++),M}function R(){return m(T,C)}function D(){return C}function L(t,e){return y(T,t,e)}function N(t){switch(t){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(t){return S=A=1,k=b(T=t),C=0,[]}function B(t){return T="",t}function F(t){return f(L(C-1,V(91===t?t+2:40===t?t+1:t)))}function W(t){while(M=R()){if(!(M<33))break;E()}return N(t)>2||N(M)>3?"":" "}function j(t,e){while(--e&&E())if(M<48||M>102||M>57&&M<65||M>70&&M<97)break;return L(t,D()+(e<6&&32==R()&&32==E()))}function V(t){while(E())switch(M){case t:return C;case 34:case 39:34!==t&&39!==t&&V(M);break;case 40:41===t&&V(t);break;case 92:E();break}return C}function Q(t,e){while(E()){if(t+M===57)break;if(t+M===84&&47===R())break}return"/*"+L(e,C-1)+"*"+p(47===t?t:E())}function H(t){while(!N(R()))E();return L(t,C)}function Z(t){return B(G("",null,null,null,[""],t=z(t),0,[0],t))}function G(t,e,n,r,i,o,a,s,l){var u=0,c=0,h=a,f=0,y=0,_=0,w=1,O=1,S=1,A=0,k="",C=i,M=o,T=r,P=k;while(O)switch(_=A,A=E()){case 40:if(108!=_&&58==m(P,h-1)){-1!=v(P+=g(F(A),"&","&\f"),"&\f",d(u?s[u-1]:0))&&(S=-1);break}case 34:case 39:case 91:P+=F(A);break;case 9:case 10:case 13:case 32:P+=W(_);break;case 92:P+=j(D()-1,7);continue;case 47:switch(R()){case 42:case 47:x(U(Q(E(),D()),e,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)-h&&x(y>32?Y(P+";",r,n,h-1,l):Y(g(P," ","")+";",r,n,h-2,l),l);break;case 59:P+=";";default:if(x(T=X(P,e,n,u,c,i,s,k,C=[],M=[],h,o),o),123===A)if(0===c)G(P,e,T,T,C,o,h,s,M);else switch(99===f&&110===m(P,3)?100:f){case 100:case 108:case 109:case 115:G(t,T,T,r&&x(X(t,T,T,0,0,i,s,k,i,C=[],h,M),M),i,M,h,s,r?C:M);break;default:G(P,T,T,T,[""],M,0,s,M)}}u=c=y=0,w=S=1,k=P="",h=a;break;case 58:h=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===R()&&(P+=F(E())),f=R(),c=h=b(k=P+=H(D())),A++;break;case 45:45===_&&2==b(P)&&(w=0)}}return o}function X(t,e,n,r,i,o,a,l,u,c,h,p){for(var v=i-1,m=0===i?o:[""],b=_(m),x=0,w=0,O=0;x<r;++x)for(var S=0,A=y(t,v+1,v=d(w=a[x])),k=t;S<b;++S)(k=f(w>0?m[S]+" "+A:g(A,/&\f/g,m[S])))&&(u[O++]=k);return P(t,e,n,0===i?s:l,u,c,h,p)}function U(t,e,n,r){return P(t,e,n,a,p(I()),y(t,2,-2),0,r)}function Y(t,e,n,r,i){return P(t,e,n,l,y(t,0,r),y(t,r+1,-1),r,i)}var q=n(13877),K=n(33621),J=n(3165),tt=n(92337),et=n(73913),nt=n(58590);const rt="data-ant-cssinjs-cache-path",it="_FILE_STYLE__";let ot,at=!0;function st(){var t;if(!ot&&(ot={},(0,nt.A)())){const e=document.createElement("div");e.className=rt,e.style.position="fixed",e.style.visibility="hidden",e.style.top="-9999px",document.body.appendChild(e);let n=getComputedStyle(e).content||"";n=n.replace(/^"/,"").replace(/"$/,""),n.split(";").forEach((t=>{const[e,n]=t.split(":");ot[e]=n}));const r=document.querySelector(`style[${rt}]`);r&&(at=!1,null===(t=r.parentNode)||void 0===t||t.removeChild(r)),document.body.removeChild(e)}}function lt(t){return st(),!!ot[t]}function ut(t){const e=ot[t];let n=null;if(e&&(0,nt.A)())if(at)n=it;else{const e=document.querySelector(`style[${q.aH}="${ot[t]}"]`);e?n=e.innerHTML:delete ot[t]}return[n,e]}const ct=(0,nt.A)(),ht="_skip_check_",dt="_multi_value_";function pt(t){const e=w(Z(t),O);return e.replace(/\{%%%\:[^;];}/g,";")}function ft(t){return"object"===typeof t&&t&&(ht in t||dt in t)}function gt(t,e,n){if(!e)return t;const r=`.${e}`,i="low"===n?`:where(${r})`:r,o=t.split(",").map((t=>{var e;const n=t.trim().split(/\s+/);let r=n[0]||"";const o=(null===(e=r.match(/^\w+/))||void 0===e?void 0:e[0])||"";return r=`${o}${i}${r.slice(o.length)}`,[r,...n.slice(1)].join(" ")}));return o.join(",")}const vt=new Set,mt=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{root:n,injectHash:i,parentSelectors:a}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{root:!0,parentSelectors:[]};const{hashId:s,layer:l,path:u,hashPriority:c,transformers:h=[],linters:d=[]}=e;let p="",f={};function g(t){const n=t.getName(s);if(!f[n]){const[r]=mt(t.style,e,{root:!1,parentSelectors:a});f[n]=`@keyframes ${t.getName(s)}${r}`}}function v(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return t.forEach((t=>{Array.isArray(t)?v(t,e):t&&e.push(t)})),e}const m=v(Array.isArray(t)?t:[t]);if(m.forEach((t=>{const l="string"!==typeof t||n?t:{};if("string"===typeof l)p+=`${l}\n`;else if(l._keyframe)g(l);else{const t=h.reduce(((t,e)=>{var n;return(null===(n=null===e||void 0===e?void 0:e.visit)||void 0===n?void 0:n.call(e,t))||t}),l);Object.keys(t).forEach((l=>{var u;const h=t[l];if("object"!==typeof h||!h||"animationName"===l&&h._keyframe||ft(h)){function d(t,e){const n=t.replace(/[A-Z]/g,(t=>`-${t.toLowerCase()}`));let r=e;o[t]||"number"!==typeof r||0===r||(r=`${r}px`),"animationName"===t&&(null===e||void 0===e?void 0:e._keyframe)&&(g(e),r=e.getName(s)),p+=`${n}:${r};`}const v=null!==(u=null===h||void 0===h?void 0:h.value)&&void 0!==u?u:h;"object"===typeof h&&(null===h||void 0===h?void 0:h[dt])&&Array.isArray(v)?v.forEach((t=>{d(l,t)})):d(l,v)}else{let m=!1,y=l.trim(),b=!1;(n||i)&&s?y.startsWith("@")?m=!0:y=gt(l,s,c):!n||s||"&"!==y&&""!==y||(y="",b=!0);const[_,x]=mt(h,e,{root:b,injectHash:m,parentSelectors:[...a,y]});f=(0,r.A)((0,r.A)({},f),x),p+=`${y}${_}`}}))}})),n){if(l&&(0,K.V8)()){const t=l.split(","),e=t[t.length-1].trim();p=`@layer ${e} {${p}}`,t.length>1&&(p=`@layer ${l}{%%%:%}${p}`)}}else p=`{${p}}`;return[p,f]};function yt(t,e){return(0,i.A)(`${t.join("%")}${e}`)}function bt(t,e){const n=(0,q.K6)(),r=(0,et.EW)((()=>t.value.token._tokenKey)),i=(0,et.EW)((()=>[r.value,...t.value.path]));let o=ct;return(0,J.A)("style",i,(()=>{const{path:a,hashId:s,layer:l,nonce:u,clientOnly:c,order:h=0}=t.value,d=i.value.join("|");if(lt(d)){const[t,e]=ut(d);if(t)return[t,r.value,e,{},c,h]}const p=e(),{hashPriority:f,container:g,transformers:v,linters:m,cache:y}=n.value,[b,_]=mt(p,{hashId:s,hashPriority:f,layer:l,path:a.join("-"),transformers:v,linters:m}),x=pt(b),w=yt(i.value,x);if(o){const t={mark:q.aH,prepend:"queue",attachTo:g,priority:h},e="function"===typeof u?u():u;e&&(t.csp={nonce:e});const n=(0,tt.BD)(x,w,t);n[q.oi]=y.instanceId,n.setAttribute(q.Oc,r.value),Object.keys(_).forEach((t=>{vt.has(t)||(vt.add(t),(0,tt.BD)(pt(_[t]),`_effect-${t}`,{mark:q.aH,prepend:"queue",attachTo:g}))}))}return[x,r.value,w,_,c,h]}),((t,e)=>{let[,,r]=t;(e||n.value.autoClear)&&ct&&(0,tt.m6)(r,{mark:q.aH})})),t=>t}},55902:function(t,e,n){"use strict";n.d(e,{A:function(){return o}});var r=n(18765);let i=0;class o{constructor(t){this.derivatives=Array.isArray(t)?t:[t],this.id=i,0===t.length&&(0,r.Ay)(t.length>0,"[Ant Design Vue CSS-in-JS] Theme should have at least one derivative function."),i+=1}getDerivativeToken(t){return this.derivatives.reduce(((e,n)=>n(t,e)),void 0)}}},40730:function(t,e,n){"use strict";n.d(e,{A:function(){return s}});n(30381);function r(t,e){if(t.length!==e.length)return!1;for(let n=0;n<t.length;n++)if(t[n]!==e[n])return!1;return!0}class i{constructor(){this.cache=new Map,this.keys=[],this.cacheCallTimes=0}size(){return this.keys.length}internalGet(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n={map:this.cache};return t.forEach((t=>{var e;n=n?null===(e=null===n||void 0===n?void 0:n.map)||void 0===e?void 0:e.get(t):void 0})),(null===n||void 0===n?void 0:n.value)&&e&&(n.value[1]=this.cacheCallTimes++),null===n||void 0===n?void 0:n.value}get(t){var e;return null===(e=this.internalGet(t,!0))||void 0===e?void 0:e[0]}has(t){return!!this.internalGet(t)}set(t,e){if(!this.has(t)){if(this.size()+1>i.MAX_CACHE_SIZE+i.MAX_CACHE_OFFSET){const[t]=this.keys.reduce(((t,e)=>{const[,n]=t;return this.internalGet(e)[1]<n?[e,this.internalGet(e)[1]]:t}),[this.keys[0],this.cacheCallTimes]);this.delete(t)}this.keys.push(t)}let n=this.cache;t.forEach(((r,i)=>{if(i===t.length-1)n.set(r,{value:[e,this.cacheCallTimes++]});else{const t=n.get(r);t?t.map||(t.map=new Map):n.set(r,{map:new Map}),n=n.get(r).map}}))}deleteByPath(t,e){var n;const r=t.get(e[0]);if(1===e.length)return r.map?t.set(e[0],{map:r.map}):t.delete(e[0]),null===(n=r.value)||void 0===n?void 0:n[0];const i=this.deleteByPath(r.map,e.slice(1));return r.map&&0!==r.map.size||r.value||t.delete(e[0]),i}delete(t){if(this.has(t))return this.keys=this.keys.filter((e=>!r(e,t))),this.deleteByPath(this.cache,t)}}i.MAX_CACHE_SIZE=20,i.MAX_CACHE_OFFSET=5;var o=n(55902);const a=new i;function s(t){const e=Array.isArray(t)?t:[t];return a.has(e)||a.set(e,new o.A(e)),a.get(e)}},33621:function(t,e,n){"use strict";n.d(e,{V8:function(){return f},g2:function(){return l},zw:function(){return u}});var r=n(5141),i=n(92337),o=n(58590),a=n(55902);const s=new WeakMap;function l(t){let e=s.get(t)||"";return e||(Object.keys(t).forEach((n=>{const r=t[n];e+=n,r instanceof a.A?e+=r.id:e+=r&&"object"===typeof r?l(r):r})),s.set(t,e)),e}function u(t,e){return(0,r.A)(`${e}_${l(t)}`)}const c=`random-${Date.now()}-${Math.random()}`.replace(/\./g,""),h="_bAmBoO_";function d(t,e,n){var r,a;if((0,o.A)()){(0,i.BD)(t,c);const o=document.createElement("div");o.style.position="fixed",o.style.left="0",o.style.top="0",null===e||void 0===e||e(o),document.body.appendChild(o);const s=n?n(o):null===(r=getComputedStyle(o).content)||void 0===r?void 0:r.includes(h);return null===(a=o.parentNode)||void 0===a||a.removeChild(o),(0,i.m6)(c),s}return!1}let p;function f(){return void 0===p&&(p=d(`@layer ${c} { .${c} { content: "${h}"!important; } }`,(t=>{t.className=c}))),p}},32480:function(t,e){"use strict";function n(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];for(let e=0,n=t.length;e<n;e++)if(void 0!==t[e])return t[e]}e.A=n},68740:function(t,e,n){"use strict";n.d(e,{A:function(){return o}});var r=n(78753),i=n(73913);function o(t,e){const{defaultValue:n,value:o=(0,r.KR)()}=e||{};let a="function"===typeof t?t():t;void 0!==o.value&&(a=(0,r.R1)(o)),void 0!==n&&(a="function"===typeof n?n():n);const s=(0,r.KR)(a),l=(0,r.KR)(a);function u(t){const n=l.value;s.value=t,(0,r.ux)(l.value)!==t&&e.onChange&&e.onChange(t,n)}return(0,i.nT)((()=>{let t=void 0!==o.value?o.value:s.value;e.postState&&(t=e.postState(t)),l.value=t})),(0,i.wB)(o,(()=>{s.value=o.value})),[l,u]}},6340:function(t,e,n){"use strict";n.d(e,{A:function(){return i}});var r=n(78753);function i(t){const e="function"===typeof t?t():t,n=(0,r.KR)(e);function i(t){n.value=t}return[n,i]}},95915:function(t,e){"use strict";const n=t=>void 0!==t&&null!==t&&""!==t;e.A=n},21244:function(t,e,n){"use strict";var r=n(98657);function i(t,e){const n=(0,r.A)({},t);for(let r=0;r<e.length;r+=1){const t=e[r];delete n[t]}return n}e.A=i},21330:function(t,e,n){"use strict";n.d(e,{A:function(){return c}});var r=n(98657);const i="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",o="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=`${i} ${o}`.split(/[\s\n]+/),s="aria-",l="data-";function u(t,e){return 0===t.indexOf(e)}function c(t){let e,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];e=!1===n?{aria:!0,data:!0,attr:!0}:!0===n?{aria:!0}:(0,r.A)({},n);const i={};return Object.keys(t).forEach((n=>{(e.aria&&("role"===n||u(n,s))||e.data&&u(n,l)||e.attr&&(a.includes(n)||a.includes(n.toLowerCase())))&&(i[n]=t[n])})),i}},16155:function(t,e,n){"use strict";n.d(e,{$c:function(){return d},Gk:function(){return _},MI:function(){return h},Oq:function(){return f},Py:function(){return c},QQ:function(){return g},cK:function(){return u},gd:function(){return m},kQ:function(){return v},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),i=n(73913),o=n(92389),a=n(95915);const s=t=>{const e=Object.keys(t),n={},r={},i={};for(let a=0,s=e.length;a<s;a++){const s=e[a];(0,o.Mp)(s)?(n[s[2].toLowerCase()+s.slice(3)]=t[s],r[s]=t[s]):i[s]=t[s]}return{onEvents:r,events:n,extraAttrs:i}},l=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n={},r=/;(?![^(]*\))/g,i=/:(.+)/;return"object"===typeof t?t:(t.split(r).forEach((function(t){if(t){const r=t.split(i);if(r.length>1){const t=e?(0,o.PT)(r[0].trim()):r[0].trim();n[t]=r[1].trim()}}})),n)},u=(t,e)=>void 0!==t[e],c=Symbol("skipFlatten"),h=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const n=Array.isArray(t)?t:[t],r=[];return n.forEach((t=>{Array.isArray(t)?r.push(...h(t,e)):t&&t.type===i.FK?t.key===c?r.push(t):r.push(...h(t.children,e)):t&&(0,i.vv)(t)?e&&!b(t)?r.push(t):e||r.push(t):(0,a.A)(t)&&r.push(t)})),r},d=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"default",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if((0,i.vv)(t))return t.type===i.FK?"default"===e?h(t.children):[]:t.children&&t.children[e]?h(t.children[e](n)):[];{const r=t.$slots[e]&&t.$slots[e](n);return h(r)}},p=t=>{var e;let n=(null===(e=null===t||void 0===t?void 0:t.vnode)||void 0===e?void 0:e.el)||t&&(t.$el||t);while(n&&!n.tagName)n=n.nextSibling;return n},f=t=>{const e={};if(t.$&&t.$.vnode){const n=t.$.vnode.props||{};Object.keys(t.$props).forEach((r=>{const i=t.$props[r],a=(0,o.Tg)(r);(void 0!==i||a in n)&&(e[r]=i)}))}else if((0,i.vv)(t)&&"object"===typeof t.type){const n=t.props||{},r={};Object.keys(n).forEach((t=>{r[(0,o.PT)(t)]=n[t]}));const i=t.type.props||{};Object.keys(i).forEach((t=>{const n=(0,o.rQ)(i,r,t,r[t]);(void 0!==n||t in r)&&(e[t]=n)}))}return e},g=function(t){let e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"default",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t,o=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];if(t.$){const i=t[n];if(void 0!==i)return"function"===typeof i&&o?i(r):i;e=t.$slots[n],e=o&&e?e(r):e}else if((0,i.vv)(t)){const a=t.props&&t.props[n];if(void 0!==a&&null!==t.props)return"function"===typeof a&&o?a(r):a;t.type===i.FK?e=t.children:t.children&&t.children[n]&&(e=t.children[n],e=o&&e?e(r):e)}return Array.isArray(e)&&(e=h(e),e=1===e.length?e[0]:e,e=0===e.length?void 0:e),e};function v(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n={};return n=t.$?(0,r.A)((0,r.A)({},n),t.$attrs):(0,r.A)((0,r.A)({},n),t.props),s(n)[e?"onEvents":"events"]}function m(t,e){const n=((0,i.vv)(t)?t.props:t.$attrs)||{};let r=n.style||{};if("string"===typeof r)r=l(r,e);else if(e&&r){const t={};return Object.keys(r).forEach((e=>t[(0,o.PT)(e)]=r[e])),t}return r}function y(t){return 1===t.length&&t[0].type===i.FK}function b(t){return t&&(t.type===i.Mw||t.type===i.FK&&0===t.children.length||t.type===i.EY&&""===t.children.trim())}function _(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];const e=[];return t.forEach((t=>{Array.isArray(t)?e.push(...t):(null===t||void 0===t?void 0:t.type)===i.FK?e.push(..._(t.children)):e.push(t)})),e.filter((t=>!b(t)))}function x(t){return Array.isArray(t)&&1===t.length&&(t=t[0]),t&&t.__v_isVNode&&"symbol"!==typeof t.type}function w(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"default";var r,i;return null!==(r=e[n])&&void 0!==r?r:null===(i=t[n])||void 0===i?void 0:i.call(t)}},47960:function(t,e,n){"use strict";var r=n(98657);const i=(t,e)=>{const n=(0,r.A)({},t);return Object.keys(e).forEach((t=>{const r=n[t];if(!r)throw new Error(`not have ${t} prop`);r.type||r.default?r.default=e[t]:r.def?r.def(e[t]):n[t]={type:r,default:e[t]}})),n};e.A=i},38624:function(t,e,n){"use strict";n.d(e,{A:function(){return l}});let r=t=>setTimeout(t,16),i=t=>clearTimeout(t);"undefined"!==typeof window&&"requestAnimationFrame"in window&&(r=t=>window.requestAnimationFrame(t),i=t=>window.cancelAnimationFrame(t));let o=0;const a=new Map;function s(t){a.delete(t)}function l(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;o+=1;const n=o;function i(e){if(0===e)s(n),t();else{const t=r((()=>{i(e-1)}));a.set(n,t)}}return i(e),n}l.cancel=t=>{const e=a.get(t);return s(e),i(e)}},64854:function(t,e,n){"use strict";n.d(e,{L:function(){return i},v:function(){return o}});var r=n(13389);function i(t,e,n){return(0,r.A)({[`${t}-status-success`]:"success"===e,[`${t}-status-warning`]:"warning"===e,[`${t}-status-error`]:"error"===e,[`${t}-status-validating`]:"validating"===e,[`${t}-has-feedback`]:n})}const o=(t,e)=>e||t},97369:function(t,e,n){"use strict";n.d(e,{Pu:function(){return a},qz:function(){return i}});var r=n(58590);const i=()=>(0,r.A)()&&window.document.documentElement;let o;const a=()=>{if(!i())return!1;if(void 0!==o)return o;const t=document.createElement("div");return t.style.display="flex",t.style.flexDirection="column",t.style.rowGap="1px",t.appendChild(document.createElement("div")),t.appendChild(document.createElement("div")),document.body.appendChild(t),o=1===t.scrollHeight,document.body.removeChild(t),o}},36476:function(t,e){"use strict";let n=!1;try{const t=Object.defineProperty({},"passive",{get(){n=!0}});window.addEventListener("testPassive",null,t),window.removeEventListener("testPassive",null,t)}catch(r){}e.A=n},41038:function(t,e,n){"use strict";n.d(e,{TL:function(){return a},by:function(){return u},ce:function(){return s},zg:function(){return l}});var r=n(98657),i=n(67874),o=n(66041);(0,o.PV)("bottomLeft","bottomRight","topLeft","topRight");const a=t=>void 0===t||"topLeft"!==t&&"topRight"!==t?"slide-up":"slide-down",s=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=t?(0,r.A)({name:t,appear:!0,enterFromClass:`${t}-enter ${t}-enter-prepare ${t}-enter-start`,enterActiveClass:`${t}-enter ${t}-enter-prepare`,enterToClass:`${t}-enter ${t}-enter-active`,leaveFromClass:` ${t}-leave`,leaveActiveClass:`${t}-leave ${t}-leave-active`,leaveToClass:`${t}-leave ${t}-leave-active`},e):(0,r.A)({css:!1},e);return n},l=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=t?(0,r.A)({name:t,appear:!0,appearActiveClass:`${t}`,appearToClass:`${t}-appear ${t}-appear-active`,enterFromClass:`${t}-appear ${t}-enter ${t}-appear-prepare ${t}-enter-prepare`,enterActiveClass:`${t}`,enterToClass:`${t}-enter ${t}-appear ${t}-appear-active ${t}-enter-active`,leaveActiveClass:`${t} ${t}-leave`,leaveToClass:`${t}-leave-active`},e):(0,r.A)({css:!1},e);return n},u=(t,e,n)=>void 0!==n?n:`${t}-${e}`;e.Ay=i.eB},66041:function(t,e,n){"use strict";n.d(e,{$q:function(){return o},Fg:function(){return l},GU:function(){return i},HE:function(){return s},MY:function(){return c},PV:function(){return r},WO:function(){return h},ds:function(){return u},ge:function(){return a},tK:function(){return d}});const r=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return e},i=t=>{const e=t;return e.install=function(n){n.component(e.displayName||e.name,t)},t};function o(){return{type:[Function,Array]}}function a(t){return{type:Object,default:t}}function s(t){return{type:Boolean,default:t}}function l(t){return{type:Function,default:t}}function u(t,e){const n={validator:()=>!0,default:t};return n}function c(t){return{type:Array,default:t}}function h(t){return{type:String,default:t}}function d(t,e){return t?{type:t,default:e}:u(e)}},92389:function(t,e,n){"use strict";n.d(e,{BM:function(){return b},Ew:function(){return _},Gv:function(){return a},Kg:function(){return o},Mp:function(){return l},PT:function(){return h},Tg:function(){return p},cl:function(){return y},cy:function(){return i},rQ:function(){return v},xc:function(){return m}});const r=t=>"function"===typeof t,i=(Symbol("controlDefaultValue"),Array.isArray),o=t=>"string"===typeof t,a=t=>null!==t&&"object"===typeof t,s=/^on[^a-z]/,l=t=>s.test(t),u=t=>{const e=Object.create(null);return n=>{const r=e[n];return r||(e[n]=t(n))}},c=/-(\w)/g,h=u((t=>t.replace(c,((t,e)=>e?e.toUpperCase():"")))),d=/\B([A-Z])/g,p=u((t=>t.replace(d,"-$1").toLowerCase())),f=(u((t=>t.charAt(0).toUpperCase()+t.slice(1))),Object.prototype.hasOwnProperty),g=(t,e)=>f.call(t,e);function v(t,e,n,i){const o=t[n];if(null!=o){const t=g(o,"default");if(t&&void 0===i){const t=o.default;i=o.type!==Function&&r(t)?t():t}o.type===Boolean&&(g(e,n)||t?""===i&&(i=!0):i=!1)}return i}function m(t){return Object.keys(t).reduce(((e,n)=>((n.startsWith("data-")||n.startsWith("aria-"))&&(e[n]=t[n]),e)),{})}function y(t){return"number"===typeof t?`${t}px`:t}function b(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;return"function"===typeof t?t(e):null!==t&&void 0!==t?t:n}function _(t){let e;const n=new Promise((n=>{e=t((()=>{n(!0)}))})),r=()=>{null===e||void 0===e||e()};return r.then=(t,e)=>n.then(t,e),r.promise=n,r}},87051:function(t,e,n){"use strict";n.d(e,{OJ:function(){return u},Ob:function(){return l}});var r=n(98657),i=n(16155),o=n(73913),a=n(67874),s=n(18765);function l(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=arguments.length>3&&void 0!==arguments[3]&&arguments[3],l=t;if(Array.isArray(t)&&(l=(0,i.Gk)(t)[0]),!l)return null;const u=(0,o.E3)(l,e,a);return u.props=n?(0,r.A)((0,r.A)({},u.props),e):u.props,(0,s.Ay)("object"!==typeof u.props.class,"class must be string"),u}function u(t,e,n){(0,a.XX)((0,o.E3)(t,(0,r.A)({},e)),n)}},5530:function(t,e,n){"use strict";n.d(e,{A:function(){return U},t:function(){return X}});n(30381);function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function i(t,e,n){return e&&r(t.prototype,e),n&&r(t,n),t}function o(){return(o=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}function a(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}function s(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)e.indexOf(n=o[r])>=0||(i[n]=t[n]);return i}function l(t){return 1==(null!=(e=t)&&"object"==typeof e&&!1===Array.isArray(e))&&"[object Object]"===Object.prototype.toString.call(t);var e}var u=Object.prototype,c=u.toString,h=u.hasOwnProperty,d=/^\s*function (\w+)/;function p(t){var e,n=null!==(e=null==t?void 0:t.type)&&void 0!==e?e:t;if(n){var r=n.toString().match(d);return r?r[1]:""}return""}var f=function(t){var e,n;return!1!==l(t)&&"function"==typeof(e=t.constructor)&&!1!==l(n=e.prototype)&&!1!==n.hasOwnProperty("isPrototypeOf")},g=function(t){return t},v=g,m=function(t,e){return h.call(t,e)},y=Number.isInteger||function(t){return"number"==typeof t&&isFinite(t)&&Math.floor(t)===t},b=Array.isArray||function(t){return"[object Array]"===c.call(t)},_=function(t){return"[object Function]"===c.call(t)},x=function(t){return f(t)&&m(t,"_vueTypes_name")},w=function(t){return f(t)&&(m(t,"type")||["_vueTypes_name","validator","default","required"].some((function(e){return m(t,e)})))};function O(t,e){return Object.defineProperty(t.bind(e),"__original",{value:t})}function S(t,e,n){var r;void 0===n&&(n=!1);var i=!0,o="";r=f(t)?t:{type:t};var a=x(r)?r._vueTypes_name+" - ":"";if(w(r)&&null!==r.type){if(void 0===r.type||!0===r.type)return i;if(!r.required&&void 0===e)return i;b(r.type)?(i=r.type.some((function(t){return!0===S(t,e,!0)})),o=r.type.map((function(t){return p(t)})).join(" or ")):i="Array"===(o=p(r))?b(e):"Object"===o?f(e):"String"===o||"Number"===o||"Boolean"===o||"Function"===o?function(t){if(null==t)return"";var e=t.constructor.toString().match(d);return e?e[1]:""}(e)===o:e instanceof r.type}if(!i){var s=a+'value "'+e+'" should be of type "'+o+'"';return!1===n?(v(s),!1):s}if(m(r,"validator")&&_(r.validator)){var l=v,u=[];if(v=function(t){u.push(t)},i=r.validator(e),v=l,!i){var c=(u.length>1?"* ":"")+u.join("\n* ");return u.length=0,!1===n?(v(c),i):c}}return i}function A(t,e){var n=Object.defineProperties(e,{_vueTypes_name:{value:t,writable:!0},isRequired:{get:function(){return this.required=!0,this}},def:{value:function(t){return void 0!==t||this.default?_(t)||!0===S(this,t,!0)?(this.default=b(t)?function(){return[].concat(t)}:f(t)?function(){return Object.assign({},t)}:t,this):(v(this._vueTypes_name+' - invalid default value: "'+t+'"'),this):this}}}),r=n.validator;return _(r)&&(n.validator=O(r,n)),n}function k(t,e){var n=A(t,e);return Object.defineProperty(n,"validate",{value:function(t){return _(this.validator)&&v(this._vueTypes_name+" - calling .validate() will overwrite the current custom validator function. Validator info:\n"+JSON.stringify(this)),this.validator=O(t,this),this}})}function C(t,e,n){var r,i,o=(r=e,i={},Object.getOwnPropertyNames(r).forEach((function(t){i[t]=Object.getOwnPropertyDescriptor(r,t)})),Object.defineProperties({},i));if(o._vueTypes_name=t,!f(n))return o;var a,l,u=n.validator,c=s(n,["validator"]);if(_(u)){var h=o.validator;h&&(h=null!==(l=(a=h).__original)&&void 0!==l?l:a),o.validator=O(h?function(t){return h.call(this,t)&&u.call(this,t)}:u,o)}return Object.assign(o,c)}function M(t){return t.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})},R=function(){return k("array",{type:Array})},D=function(){return k("object",{type:Object})},L=function(){return A("integer",{type:Number,validator:function(t){return y(t)}})},N=function(){return A("symbol",{validator:function(t){return"symbol"==typeof t}})};function z(t,e){if(void 0===e&&(e="custom validation failed"),"function"!=typeof t)throw new TypeError("[VueTypes error]: You must provide a function as argument");return A(t.name||"<<anonymous function>>",{validator:function(n){var r=t(n);return r||v(this._vueTypes_name+" - "+e),r}})}function B(t){if(!b(t))throw new TypeError("[VueTypes error]: You must provide an array as argument.");var e='oneOf - value should be one of "'+t.join('", "')+'".',n=t.reduce((function(t,e){if(null!=e){var n=e.constructor;-1===t.indexOf(n)&&t.push(n)}return t}),[]);return A("oneOf",{type:n.length>0?n:void 0,validator:function(n){var r=-1!==t.indexOf(n);return r||v(e),r}})}function F(t){if(!b(t))throw new TypeError("[VueTypes error]: You must provide an array as argument");for(var e=!1,n=[],r=0;r<t.length;r+=1){var i=t[r];if(w(i)){if(x(i)&&"oneOf"===i._vueTypes_name){n=n.concat(i.type);continue}if(_(i.validator)&&(e=!0),!0!==i.type&&i.type){n=n.concat(i.type);continue}}n.push(i)}return n=n.filter((function(t,e){return n.indexOf(t)===e})),A("oneOfType",e?{type:n,validator:function(e){var n=[],r=t.some((function(t){var r=S(x(t)&&"oneOf"===t._vueTypes_name?t.type||null:t,e,!0);return"string"==typeof r&&n.push(r),!0===r}));return r||v("oneOfType - provided value does not match any of the "+n.length+" passed-in validators:\n"+M(n.join("\n"))),r}}:{type:n})}function W(t){return A("arrayOf",{type:Array,validator:function(e){var n,r=e.every((function(e){return!0===(n=S(t,e,!0))}));return r||v("arrayOf - value validation error:\n"+M(n)),r}})}function j(t){return A("instanceOf",{type:t})}function V(t){return A("objectOf",{type:Object,validator:function(e){var n,r=Object.keys(e).every((function(r){return!0===(n=S(t,e[r],!0))}));return r||v("objectOf - value validation error:\n"+M(n)),r}})}function Q(t){var e=Object.keys(t),n=e.filter((function(e){var n;return!!(null===(n=t[e])||void 0===n?void 0:n.required)})),r=A("shape",{type:Object,validator:function(r){var i=this;if(!f(r))return!1;var o=Object.keys(r);if(n.length>0&&n.some((function(t){return-1===o.indexOf(t)}))){var a=n.filter((function(t){return-1===o.indexOf(t)}));return v(1===a.length?'shape - required property "'+a[0]+'" is not defined.':'shape - required properties "'+a.join('", "')+'" are not defined.'),!1}return o.every((function(n){if(-1===e.indexOf(n))return!0===i._vueTypes_isLoose||(v('shape - shape definition does not include a "'+n+'" property. Allowed keys: "'+e.join('", "')+'".'),!1);var o=S(t[n],r[n],!0);return"string"==typeof o&&v('shape - "'+n+'" property validation error:\n '+M(o)),!0===o}))}});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 t(){}return t.extend=function(t){var e=this;if(b(t))return t.forEach((function(t){return e.extend(t)})),this;var n=t.name,r=t.validate,i=void 0!==r&&r,o=t.getter,a=void 0!==o&&o,l=s(t,["name","validate","getter"]);if(m(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 t,e=C(n,c,l);return e.validator&&(e.validator=(t=e.validator).bind.apply(t,[e].concat([].slice.call(arguments)))),e}})):(u=a?{get:function(){var t=Object.assign({},l);return i?k(n,t):A(n,t)},enumerable:!0}:{value:function(){var t,e,r=Object.assign({},l);return t=i?k(n,r):A(n,r),r.validator&&(t.validator=(e=r.validator).bind.apply(e,[t].concat([].slice.call(arguments)))),t},enumerable:!0},Object.defineProperty(this,n,u))},i(t,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 R().def(this.defaults.array)}},{key:"object",get:function(){return D().def(this.defaults.object)}},{key:"integer",get:function(){return L().def(this.defaults.integer)}},{key:"symbol",get:function(){return N()}}]),t}();function Z(t){var e;return void 0===t&&(t={func:function(){},bool:!0,string:"",number:0,array:function(){return[]},object:function(){return{}},integer:0}),(e=function(e){function n(){return e.apply(this,arguments)||this}return a(n,e),i(n,null,[{key:"sensibleDefaults",get:function(){return o({},this.defaults)},set:function(e){this.defaults=!1!==e?o({},!0!==e?e:t):{}}}]),n}(H)).defaults=o({},t),e}H.defaults={},H.custom=z,H.oneOf=B,H.instanceOf=j,H.oneOfType=F,H.arrayOf=W,H.objectOf=V,H.shape=Q,H.utils={validate:function(t,e){return!0===S(e,t,!0)},toType:function(t,e,n){return void 0===n&&(n=!1),n?k(t,e):A(t,e)}};(function(t){function e(){return t.apply(this,arguments)||this}a(e,t)})(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(t){return t.default=void 0,t}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(t,e,n){"use strict";function r(){}let i=r;e.Ay=i},85545:function(t,e,n){"use strict";n.d(e,{DU:function(){return o}});var r=n(5530),i=n(66041);function o(t){return"danger"===t?{danger:!0}:{type:t}}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,i.$q)(),onMousedown:(0,i.$q)()});e.Ay=a},18918:function(t,e,n){"use strict";n.d(e,{A:function(){return St}});var r=n(69751),i=n(98657),o=n(73913),a=n(78753),s=n(3551),l=n(27987),u=n(13389),c=n(16155),h=n(94471);const d=t=>{const{componentCls:e,colorPrimary:n}=t;return{[e]:{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 ${t.motionEaseOutCirc}`,`opacity 2s ${t.motionEaseOutCirc}`].join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0}}}}};var p=(0,h.A)("Wave",(t=>[d(t)])),f=n(67874),g=n(6340),v=n(66041);function m(t){const e=(t||"").match(/rgba?\((\d*), (\d*), (\d*)(, [\d.]*)?\)/);return!(e&&e[1]&&e[2]&&e[3])||!(e[1]===e[2]&&e[2]===e[3])}function y(t){return t&&"#fff"!==t&&"#ffffff"!==t&&"rgb(255, 255, 255)"!==t&&"rgba(255, 255, 255, 1)"!==t&&m(t)&&!/rgba\((?:\d*, ){3}0\)/.test(t)&&"transparent"!==t}function b(t){const{borderTopColor:e,borderColor:n,backgroundColor:r}=getComputedStyle(t);return y(e)?e:y(n)?n:y(r)?r:null}var _=n(38624);function x(t){return Number.isNaN(t)?0:t}const w=(0,o.pM)({props:{target:(0,v.ge)(),className:String},setup(t){const e=(0,a.IJ)(null),[n,r]=(0,g.A)(null),[i,s]=(0,g.A)([]),[l,u]=(0,g.A)(0),[c,h]=(0,g.A)(0),[d,p]=(0,g.A)(0),[v,m]=(0,g.A)(0),[y,w]=(0,g.A)(!1);function O(){const{target:e}=t,n=getComputedStyle(e);r(b(e));const i="static"===n.position,{borderLeftWidth:o,borderTopWidth:a}=n;u(i?e.offsetLeft:x(-parseFloat(o))),h(i?e.offsetTop:x(-parseFloat(a))),p(e.offsetWidth),m(e.offsetHeight);const{borderTopLeftRadius:l,borderTopRightRadius:c,borderBottomLeftRadius:d,borderBottomRightRadius:f}=n;s([l,c,f,d].map((t=>x(parseFloat(t)))))}let S,A,k;const C=()=>{clearTimeout(k),_.A.cancel(A),null===S||void 0===S||S.disconnect()},M=()=>{var t;const n=null===(t=e.value)||void 0===t?void 0:t.parentElement;n&&((0,f.XX)(null,n),n.parentElement&&n.parentElement.removeChild(n))};(0,o.sV)((()=>{C(),k=setTimeout((()=>{M()}),5e3);const{target:e}=t;e&&(A=(0,_.A)((()=>{O(),w(!0)})),"undefined"!==typeof ResizeObserver&&(S=new ResizeObserver(O),S.observe(e)))})),(0,o.xo)((()=>{C()}));const T=t=>{"opacity"===t.propertyName&&M()};return()=>{if(!y.value)return null;const r={left:`${l.value}px`,top:`${c.value}px`,width:`${d.value}px`,height:`${v.value}px`,borderRadius:i.value.map((t=>`${t}px`)).join(" ")};return n&&(r["--wave-color"]=n.value),(0,o.bF)(f.eB,{appear:!0,name:"wave-motion",appearFromClass:"wave-motion-appear",appearActiveClass:"wave-motion-appear",appearToClass:"wave-motion-appear wave-motion-appear-active"},{default:()=>[(0,o.bF)("div",{ref:e,class:t.className,style:r,onTransitionend:T},null)]})}}});function O(t,e){const n=document.createElement("div");n.style.position="absolute",n.style.left="0px",n.style.top="0px",null===t||void 0===t||t.insertBefore(n,null===t||void 0===t?void 0:t.firstChild),(0,f.XX)((0,o.bF)(w,{target:t,className:e},null),n)}var S=O;function A(t,e,n){function r(){var r;const i=(0,c.oK)(t);!(null===(r=null===n||void 0===n?void 0:n.value)||void 0===r?void 0:r.disabled)&&i&&S(i,e.value)}return r}var k=(0,o.pM)({compatConfig:{MODE:3},name:"Wave",props:{disabled:Boolean},setup(t,e){let{slots:n}=e;const r=(0,o.nI)(),{prefixCls:i,wave:a}=(0,s.A)("wave",t),[,h]=p(i),d=A(r,(0,o.EW)((()=>(0,u.A)(i.value,h.value))),a);let f;const g=()=>{const t=(0,c.oK)(r);t.removeEventListener("click",f,!0)};return(0,o.sV)((()=>{(0,o.wB)((()=>t.disabled),(()=>{g(),(0,o.dY)((()=>{const e=(0,c.oK)(r);null===e||void 0===e||e.removeEventListener("click",f,!0),e&&1===e.nodeType&&!t.disabled&&(f=t=>{"INPUT"===t.target.tagName||!(0,l.A)(t.target)||!e.getAttribute||e.getAttribute("disabled")||e.disabled||e.className.includes("disabled")||e.className.includes("-leave")||d()},e.addEventListener("click",f,!0))}))}),{immediate:!0,flush:"post"})})),(0,o.xo)((()=>{g()})),()=>{var t;const e=null===(t=n.default)||void 0===t?void 0:t.call(n)[0];return e}}}),C=n(85545),M=n(47960),T=n(99415),P=n(37205),I=n(2167),$=n(41038);const E=t=>{t&&(t.style.width="0px",t.style.opacity="0",t.style.transform="scale(0)")},R=t=>{(0,o.dY)((()=>{t&&(t.style.width=`${t.scrollWidth}px`,t.style.opacity="1",t.style.transform="scale(1)")}))},D=t=>{t&&t.style&&(t.style.width=null,t.style.opacity=null,t.style.transform=null)};var L=(0,o.pM)({compatConfig:{MODE:3},name:"LoadingIcon",props:{prefixCls:String,loading:[Boolean,Object],existIcon:Boolean},setup(t){return()=>{const{existIcon:e,prefixCls:n,loading:r}=t;if(e)return(0,o.bF)("span",{class:`${n}-loading-icon`},[(0,o.bF)(I.A,null,null)]);const i=!!r;return(0,o.bF)($.Ay,{name:`${n}-loading-icon-motion`,onBeforeEnter:E,onEnter:R,onAfterEnter:D,onBeforeLeave:R,onLeave:t=>{setTimeout((()=>{E(t)}))},onAfterLeave:D},{default:()=>[i?(0,o.bF)("span",{class:`${n}-loading-icon`},[(0,o.bF)(I.A,null,null)]):null]})}}}),N=n(96704);const z=(t,e)=>({[`> span, > ${t}`]:{"&:not(:last-child)":{[`&, & > ${t}`]:{"&:not(:disabled)":{borderInlineEndColor:e}}},"&:not(:first-child)":{[`&, & > ${t}`]:{"&:not(:disabled)":{borderInlineStartColor:e}}}}}),B=t=>{const{componentCls:e,fontSize:n,lineWidth:r,colorPrimaryHover:i,colorErrorHover:o}=t;return{[`${e}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:-r,[`&, & > ${e}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[e]:{position:"relative",zIndex:1,["&:hover,\n &:focus,\n &:active"]:{zIndex:2},"&[disabled]":{zIndex:0}},[`${e}-icon-only`]:{fontSize:n}},z(`${e}-primary`,i),z(`${e}-danger`,o)]}};var F=B,W=n(69729),j=n(31222);function V(t,e){return{[`&-item:not(${e}-last-item)`]:{marginBottom:-t.lineWidth},"&-item":{"&:hover,&:focus,&:active":{zIndex:2},"&[disabled]":{zIndex:0}}}}function Q(t,e){return{[`&-item:not(${e}-first-item):not(${e}-last-item)`]:{borderRadius:0},[`&-item${e}-first-item:not(${e}-last-item)`]:{[`&, &${t}-sm, &${t}-lg`]:{borderEndEndRadius:0,borderEndStartRadius:0}},[`&-item${e}-last-item:not(${e}-first-item)`]:{[`&, &${t}-sm, &${t}-lg`]:{borderStartStartRadius:0,borderStartEndRadius:0}}}}function H(t){const e=`${t.componentCls}-compact-vertical`;return{[e]:(0,i.A)((0,i.A)({},V(t,e)),Q(t.componentCls,e))}}const Z=t=>{const{componentCls:e,iconCls:n}=t;return{[e]:{outline:"none",position:"relative",display:"inline-block",fontWeight:400,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",backgroundColor:"transparent",border:`${t.lineWidth}px ${t.lineType} transparent`,cursor:"pointer",transition:`all ${t.motionDurationMid} ${t.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",lineHeight:t.lineHeight,color:t.colorText,"> span":{display:"inline-block"},[`> ${n} + span, > span + ${n}`]:{marginInlineStart:t.marginXS},"> a":{color:"currentColor"},"&:not(:disabled)":(0,i.A)({},(0,W.K8)(t)),[`&-icon-only${e}-compact-item`]:{flex:"none"},[`&-compact-item${e}-primary`]:{[`&:not([disabled]) + ${e}-compact-item${e}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:-t.lineWidth,insetInlineStart:-t.lineWidth,display:"inline-block",width:t.lineWidth,height:`calc(100% + ${2*t.lineWidth}px)`,backgroundColor:t.colorPrimaryHover,content:'""'}}},"&-compact-vertical-item":{[`&${e}-primary`]:{[`&:not([disabled]) + ${e}-compact-vertical-item${e}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:-t.lineWidth,insetInlineStart:-t.lineWidth,display:"inline-block",width:`calc(100% + ${2*t.lineWidth}px)`,height:t.lineWidth,backgroundColor:t.colorPrimaryHover,content:'""'}}}}}}},G=(t,e)=>({"&:not(:disabled)":{"&:hover":t,"&:active":e}}),X=t=>({minWidth:t.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),U=t=>({borderRadius:t.controlHeight,paddingInlineStart:t.controlHeight/2,paddingInlineEnd:t.controlHeight/2}),Y=t=>({cursor:"not-allowed",borderColor:t.colorBorder,color:t.colorTextDisabled,backgroundColor:t.colorBgContainerDisabled,boxShadow:"none"}),q=(t,e,n,r,o,a,s)=>({[`&${t}-background-ghost`]:(0,i.A)((0,i.A)({color:e||void 0,backgroundColor:"transparent",borderColor:n||void 0,boxShadow:"none"},G((0,i.A)({backgroundColor:"transparent"},a),(0,i.A)({backgroundColor:"transparent"},s))),{"&:disabled":{cursor:"not-allowed",color:r||void 0,borderColor:o||void 0}})}),K=t=>({"&:disabled":(0,i.A)({},Y(t))}),J=t=>(0,i.A)({},K(t)),tt=t=>({"&:disabled":{cursor:"not-allowed",color:t.colorTextDisabled}}),et=t=>(0,i.A)((0,i.A)((0,i.A)((0,i.A)((0,i.A)({},J(t)),{backgroundColor:t.colorBgContainer,borderColor:t.colorBorder,boxShadow:`0 ${t.controlOutlineWidth}px 0 ${t.controlTmpOutline}`}),G({color:t.colorPrimaryHover,borderColor:t.colorPrimaryHover},{color:t.colorPrimaryActive,borderColor:t.colorPrimaryActive})),q(t.componentCls,t.colorBgContainer,t.colorBgContainer,t.colorTextDisabled,t.colorBorder)),{[`&${t.componentCls}-dangerous`]:(0,i.A)((0,i.A)((0,i.A)({color:t.colorError,borderColor:t.colorError},G({color:t.colorErrorHover,borderColor:t.colorErrorBorderHover},{color:t.colorErrorActive,borderColor:t.colorErrorActive})),q(t.componentCls,t.colorError,t.colorError,t.colorTextDisabled,t.colorBorder)),K(t))}),nt=t=>(0,i.A)((0,i.A)((0,i.A)((0,i.A)((0,i.A)({},J(t)),{color:t.colorTextLightSolid,backgroundColor:t.colorPrimary,boxShadow:`0 ${t.controlOutlineWidth}px 0 ${t.controlOutline}`}),G({color:t.colorTextLightSolid,backgroundColor:t.colorPrimaryHover},{color:t.colorTextLightSolid,backgroundColor:t.colorPrimaryActive})),q(t.componentCls,t.colorPrimary,t.colorPrimary,t.colorTextDisabled,t.colorBorder,{color:t.colorPrimaryHover,borderColor:t.colorPrimaryHover},{color:t.colorPrimaryActive,borderColor:t.colorPrimaryActive})),{[`&${t.componentCls}-dangerous`]:(0,i.A)((0,i.A)((0,i.A)({backgroundColor:t.colorError,boxShadow:`0 ${t.controlOutlineWidth}px 0 ${t.colorErrorOutline}`},G({backgroundColor:t.colorErrorHover},{backgroundColor:t.colorErrorActive})),q(t.componentCls,t.colorError,t.colorError,t.colorTextDisabled,t.colorBorder,{color:t.colorErrorHover,borderColor:t.colorErrorHover},{color:t.colorErrorActive,borderColor:t.colorErrorActive})),K(t))}),rt=t=>(0,i.A)((0,i.A)({},et(t)),{borderStyle:"dashed"}),it=t=>(0,i.A)((0,i.A)((0,i.A)({color:t.colorLink},G({color:t.colorLinkHover},{color:t.colorLinkActive})),tt(t)),{[`&${t.componentCls}-dangerous`]:(0,i.A)((0,i.A)({color:t.colorError},G({color:t.colorErrorHover},{color:t.colorErrorActive})),tt(t))}),ot=t=>(0,i.A)((0,i.A)((0,i.A)({},G({color:t.colorText,backgroundColor:t.colorBgTextHover},{color:t.colorText,backgroundColor:t.colorBgTextActive})),tt(t)),{[`&${t.componentCls}-dangerous`]:(0,i.A)((0,i.A)({color:t.colorError},tt(t)),G({color:t.colorErrorHover,backgroundColor:t.colorErrorBg},{color:t.colorErrorHover,backgroundColor:t.colorErrorBg}))}),at=t=>(0,i.A)((0,i.A)({},Y(t)),{[`&${t.componentCls}:hover`]:(0,i.A)({},Y(t))}),st=t=>{const{componentCls:e}=t;return{[`${e}-default`]:et(t),[`${e}-primary`]:nt(t),[`${e}-dashed`]:rt(t),[`${e}-link`]:it(t),[`${e}-text`]:ot(t),[`${e}-disabled`]:at(t)}},lt=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const{componentCls:n,iconCls:r,controlHeight:i,fontSize:o,lineHeight:a,lineWidth:s,borderRadius:l,buttonPaddingHorizontal:u}=t,c=Math.max(0,(i-o*a)/2-s),h=u-s,d=`${n}-icon-only`;return[{[`${n}${e}`]:{fontSize:o,height:i,padding:`${c}px ${h}px`,borderRadius:l,[`&${d}`]:{width:i,paddingInlineStart:0,paddingInlineEnd:0,[`&${n}-round`]:{width:"auto"},"> span":{transform:"scale(1.143)"}},[`&${n}-loading`]:{opacity:t.opacityLoading,cursor:"default"},[`${n}-loading-icon`]:{transition:`width ${t.motionDurationSlow} ${t.motionEaseInOut}, opacity ${t.motionDurationSlow} ${t.motionEaseInOut}`},[`&:not(${d}) ${n}-loading-icon > ${r}`]:{marginInlineEnd:t.marginXS}}},{[`${n}${n}-circle${e}`]:X(t)},{[`${n}${n}-round${e}`]:U(t)}]},ut=t=>lt(t),ct=t=>{const e=(0,N.h1)(t,{controlHeight:t.controlHeightSM,padding:t.paddingXS,buttonPaddingHorizontal:8,borderRadius:t.borderRadiusSM});return lt(e,`${t.componentCls}-sm`)},ht=t=>{const e=(0,N.h1)(t,{controlHeight:t.controlHeightLG,fontSize:t.fontSizeLG,borderRadius:t.borderRadiusLG});return lt(e,`${t.componentCls}-lg`)},dt=t=>{const{componentCls:e}=t;return{[e]:{[`&${e}-block`]:{width:"100%"}}}};var pt=(0,h.A)("Button",(t=>{const{controlTmpOutline:e,paddingContentHorizontal:n}=t,r=(0,N.h1)(t,{colorOutlineDefault:e,buttonPaddingHorizontal:n});return[Z(r),ct(r),ut(r),ht(r),dt(r),st(r),F(r),(0,j.G)(t,{focus:!1}),H(t)]})),ft=n(70213),gt=n(2126);const vt=()=>({prefixCls:String,size:{type:String}}),mt=(0,gt.A)();var yt=(0,o.pM)({compatConfig:{MODE:3},name:"AButtonGroup",props:vt(),setup(t,e){let{slots:n}=e;const{prefixCls:r,direction:i}=(0,s.A)("btn-group",t),[,,l]=(0,ft.rd)();mt.useProvide((0,a.Kh)({size:(0,o.EW)((()=>t.size))}));const u=(0,o.EW)((()=>{const{size:e}=t;let n="";switch(e){case"large":n="lg";break;case"small":n="sm";break;case"middle":case void 0:break;default:(0,P.A)(!e,"Button.Group","Invalid prop `size`.")}return{[`${r.value}`]:!0,[`${r.value}-${n}`]:n,[`${r.value}-rtl`]:"rtl"===i.value,[l.value]:!0}}));return()=>{var t;return(0,o.bF)("div",{class:u.value},[(0,c.MI)(null===(t=n.default)||void 0===t?void 0:t.call(n))])}}}),bt=n(45507);const _t=/^[\u4e00-\u9fa5]{2}$/,xt=_t.test.bind(_t);function wt(t){return"text"===t||"link"===t}var Ot=(0,o.pM)({compatConfig:{MODE:3},name:"AButton",inheritAttrs:!1,__ANT_BUTTON:!0,props:(0,M.A)((0,C.Ay)(),{type:"default"}),slots:Object,setup(t,e){let{slots:n,attrs:l,emit:u,expose:h}=e;const{prefixCls:d,autoInsertSpaceInButton:p,direction:f,size:g}=(0,s.A)("btn",t),[v,m]=pt(d),y=mt.useInject(),b=(0,T.p)(),_=(0,o.EW)((()=>{var e;return null!==(e=t.disabled)&&void 0!==e?e:b.value})),x=(0,a.IJ)(null),w=(0,a.IJ)(void 0);let O=!1;const S=(0,a.IJ)(!1),A=(0,a.IJ)(!1),C=(0,o.EW)((()=>!1!==p.value)),{compactSize:M,compactItemClassnames:I}=(0,bt.RQ)(d,f),$=(0,o.EW)((()=>"object"===typeof t.loading&&t.loading.delay?t.loading.delay||!0:!!t.loading));(0,o.wB)($,(t=>{clearTimeout(w.value),"number"===typeof $.value?w.value=setTimeout((()=>{S.value=t}),$.value):S.value=t}),{immediate:!0});const E=(0,o.EW)((()=>{const{type:e,shape:n="default",ghost:r,block:i,danger:o}=t,a=d.value,s={large:"lg",small:"sm",middle:void 0},l=M.value||(null===y||void 0===y?void 0:y.size)||g.value,u=l&&s[l]||"";return[I.value,{[m.value]:!0,[`${a}`]:!0,[`${a}-${n}`]:"default"!==n&&n,[`${a}-${e}`]:e,[`${a}-${u}`]:u,[`${a}-loading`]:S.value,[`${a}-background-ghost`]:r&&!wt(e),[`${a}-two-chinese-chars`]:A.value&&C.value,[`${a}-block`]:i,[`${a}-dangerous`]:!!o,[`${a}-rtl`]:"rtl"===f.value}]})),R=()=>{const t=x.value;if(!t||!1===p.value)return;const e=t.textContent;O&&xt(e)?A.value||(A.value=!0):A.value&&(A.value=!1)},D=t=>{S.value||_.value?t.preventDefault():u("click",t)},N=t=>{u("mousedown",t)},z=(t,e)=>{const n=e?" ":"";if(t.type===o.EY){let e=t.children.trim();return xt(e)&&(e=e.split("").join(n)),(0,o.bF)("span",null,[e])}return t};(0,o.nT)((()=>{(0,P.A)(!(t.ghost&&wt(t.type)),"Button","`link` or `text` button can't be a `ghost` button.")})),(0,o.sV)(R),(0,o.$u)(R),(0,o.xo)((()=>{w.value&&clearTimeout(w.value)}));const B=()=>{var t;null===(t=x.value)||void 0===t||t.focus()},F=()=>{var t;null===(t=x.value)||void 0===t||t.blur()};return h({focus:B,blur:F}),()=>{var e,a;const{icon:s=(null===(e=n.icon)||void 0===e?void 0:e.call(n))}=t,u=(0,c.MI)(null===(a=n.default)||void 0===a?void 0:a.call(n));O=1===u.length&&!s&&!wt(t.type);const{type:h,htmlType:p,href:f,title:g,target:m}=t,y=S.value?"loading":s,b=(0,i.A)((0,i.A)({},l),{title:g,disabled:_.value,class:[E.value,l.class,{[`${d.value}-icon-only`]:0===u.length&&!!y}],onClick:D,onMousedown:N});_.value||delete b.disabled;const w=s&&!S.value?s:(0,o.bF)(L,{existIcon:!!s,prefixCls:d.value,loading:!!S.value},null),A=u.map((t=>z(t,O&&C.value)));if(void 0!==f)return v((0,o.bF)("a",(0,r.A)((0,r.A)({},b),{},{href:f,target:m,ref:x}),[w,A]));let M=(0,o.bF)("button",(0,r.A)((0,r.A)({},b),{},{ref:x,type:p}),[w,A]);if(!wt(h)){const t=function(){return M}();M=(0,o.bF)(k,{ref:"wave",disabled:!!S.value},{default:()=>[t]})}return v(M)}}});Ot.Group=yt,Ot.install=function(t){return t.component(Ot.name,Ot),t.component(yt.name,yt),t};var St=Ot},99415:function(t,e,n){"use strict";n.d(e,{Z:function(){return s},p:function(){return a}});var r=n(73913),i=n(78753);const o=Symbol("DisabledContextKey"),a=()=>(0,r.WQ)(o,(0,i.KR)(void 0)),s=t=>{const e=a();return(0,r.Gt)(o,(0,r.EW)((()=>{var n;return null!==(n=t.value)&&void 0!==n?n:e.value}))),t}},82448:function(t,e,n){"use strict";n.d(e,{A:function(){return s},E:function(){return a}});var r=n(73913),i=n(78753);const o=Symbol("SizeContextKey"),a=()=>(0,r.WQ)(o,(0,i.KR)(void 0)),s=t=>{const e=a();return(0,r.Gt)(o,(0,r.EW)((()=>t.value||e.value))),t}},90551:function(t,e,n){"use strict";n.d(e,{AR:function(){return s},GY:function(){return p},M7:function(){return l},OQ:function(){return d},VG:function(){return h},pM:function(){return o},yA:function(){return u},zL:function(){return c}});var r=n(73913),i=n(66041);const o="anticon",a=Symbol("GlobalFormContextKey"),s=t=>{(0,r.Gt)(a,t)},l=()=>(0,r.WQ)(a,{validateMessages:(0,r.EW)((()=>{}))}),u=(Symbol("GlobalConfigContextKey"),()=>({iconPrefixCls:String,getTargetContainer:{type:Function},getPopupContainer:{type:Function},prefixCls:String,getPrefixCls:{type:Function},renderEmpty:{type:Function},transformCellText:{type:Function},csp:(0,i.ge)(),input:(0,i.ge)(),autoInsertSpaceInButton:{type:Boolean,default:void 0},locale:(0,i.ge)(),pageHeader:(0,i.ge)(),componentSize:{type:String},componentDisabled:{type:Boolean,default:void 0},direction:{type:String,default:"ltr"},space:(0,i.ge)(),virtual:{type:Boolean,default:void 0},dropdownMatchSelectWidth:{type:[Number,Boolean],default:!0},form:(0,i.ge)(),pagination:(0,i.ge)(),theme:(0,i.ge)(),select:(0,i.ge)(),wave:(0,i.ge)()})),c=Symbol("configProvider"),h={getPrefixCls:(t,e)=>e||(t?`ant-${t}`:"ant"),iconPrefixCls:(0,r.EW)((()=>o)),getPopupContainer:(0,r.EW)((()=>()=>document.body)),direction:(0,r.EW)((()=>"ltr"))},d=()=>(0,r.WQ)(c,h),p=t=>(0,r.Gt)(c,t)},3551:function(t,e,n){"use strict";var r=n(98657),i=n(73913),o=n(90551),a=n(99415),s=n(40493),l=n(82448);e.A=(t,e)=>{const n=(0,l.E)(),u=(0,a.p)(),c=(0,i.WQ)(o.zL,(0,r.A)((0,r.A)({},o.VG),{renderEmpty:t=>(0,i.h)(s.x,{componentName:t})})),h=(0,i.EW)((()=>c.getPrefixCls(t,e.prefixCls))),d=(0,i.EW)((()=>{var t,n;return null!==(t=e.direction)&&void 0!==t?t:null===(n=c.direction)||void 0===n?void 0:n.value})),p=(0,i.EW)((()=>{var t;return null!==(t=e.iconPrefixCls)&&void 0!==t?t:c.iconPrefixCls.value})),f=(0,i.EW)((()=>c.getPrefixCls())),g=(0,i.EW)((()=>{var t;return null===(t=c.autoInsertSpaceInButton)||void 0===t?void 0:t.value})),v=c.renderEmpty,m=c.space,y=c.pageHeader,b=c.form,_=(0,i.EW)((()=>{var t,n;return null!==(t=e.getTargetContainer)&&void 0!==t?t:null===(n=c.getTargetContainer)||void 0===n?void 0:n.value})),x=(0,i.EW)((()=>{var t,n,r;return null!==(n=null!==(t=e.getContainer)&&void 0!==t?t:e.getPopupContainer)&&void 0!==n?n:null===(r=c.getPopupContainer)||void 0===r?void 0:r.value})),w=(0,i.EW)((()=>{var t,n;return null!==(t=e.dropdownMatchSelectWidth)&&void 0!==t?t:null===(n=c.dropdownMatchSelectWidth)||void 0===n?void 0:n.value})),O=(0,i.EW)((()=>{var t;return(void 0===e.virtual?!1!==(null===(t=c.virtual)||void 0===t?void 0:t.value):!1!==e.virtual)&&!1!==w.value})),S=(0,i.EW)((()=>e.size||n.value)),A=(0,i.EW)((()=>{var t,n,r;return null!==(t=e.autocomplete)&&void 0!==t?t:null===(r=null===(n=c.input)||void 0===n?void 0:n.value)||void 0===r?void 0:r.autocomplete})),k=(0,i.EW)((()=>{var t;return null!==(t=e.disabled)&&void 0!==t?t:u.value})),C=(0,i.EW)((()=>{var t;return null!==(t=e.csp)&&void 0!==t?t:c.csp})),M=(0,i.EW)((()=>{var t,n;return null!==(t=e.wave)&&void 0!==t?t:null===(n=c.wave)||void 0===n?void 0:n.value}));return{configProvider:c,prefixCls:h,direction:d,size:S,getTargetContainer:_,getPopupContainer:x,space:m,pageHeader:y,form:b,autoInsertSpaceInButton:g,renderEmpty:v,virtual:O,dropdownMatchSelectWidth:w,rootPrefixCls:f,getPrefixCls:c.getPrefixCls,autocomplete:A,csp:C,iconPrefixCls:p,disabled:k,select:c.select,wave:M}}},95835:function(t,e,n){"use strict";n.d(e,{Ay:function(){return oe},cr:function(){return re},Vm:function(){return te}});var r=n(98657),i=n(73913),o=n(78753),a=n(40493),s=n(19559),l=n(18765),u=n(66041);const c="internalMark",h=(0,i.pM)({compatConfig:{MODE:3},name:"ALocaleProvider",props:{locale:{type:Object},ANT_MARK__:String},setup(t,e){let{slots:n}=e;(0,l.Ay)(t.ANT_MARK__===c,"LocaleProvider","`LocaleProvider` is deprecated. Please use `locale` with `ConfigProvider` instead");const a=(0,o.Kh)({antLocale:(0,r.A)((0,r.A)({},t.locale),{exist:!0}),ANT_MARK__:c});return(0,i.Gt)("localeData",a),(0,i.wB)((()=>t.locale),(t=>{(0,s.L)(t&&t.Modal),a.antLocale=(0,r.A)((0,r.A)({},t),{exist:!0})}),{immediate:!0}),()=>{var t;return null===(t=n.default)||void 0===t?void 0:t.call(n)}}});h.install=function(t){return t.component(h.name,h),t};var d=(0,u.GU)(h),p=d,f=n(97605),g=n(33163),v=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"},y=m,b=n(29847);function _(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?Object(arguments[e]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),r.forEach((function(e){x(t,e,n[e])}))}return t}function x(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var w=function(t,e){var n=_({},t,e.attrs);return(0,i.bF)(b.A,_({},n,{icon:y}),null)};w.displayName="CheckCircleOutlined",w.inheritAttrs=!1;var O=w,S=n(7649),A={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"},k=A;function C(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?Object(arguments[e]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),r.forEach((function(e){M(t,e,n[e])}))}return t}function M(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var T=function(t,e){var n=C({},t,e.attrs);return(0,i.bF)(b.A,C({},n,{icon:k}),null)};T.displayName="CloseCircleOutlined",T.inheritAttrs=!1;var P=T,I={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;function E(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?Object(arguments[e]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),r.forEach((function(e){R(t,e,n[e])}))}return t}function R(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var D=function(t,e){var n=E({},t,e.attrs);return(0,i.bF)(b.A,E({},n,{icon:$}),null)};D.displayName="ExclamationCircleOutlined",D.inheritAttrs=!1;var L=D,N=n(23273),z=n(92389),B=n(13389),F=n(97732),W=n(94471),j=n(96704);const V=t=>{const{componentCls:e,width:n,notificationMarginEdge:r}=t,i=new F.A("antNotificationTopFadeIn",{"0%":{marginTop:"-100%",opacity:0},"100%":{marginTop:0,opacity:1}}),o=new F.A("antNotificationBottomFadeIn",{"0%":{marginBottom:"-100%",opacity:0},"100%":{marginBottom:0,opacity:1}}),a=new F.A("antNotificationLeftFadeIn",{"0%":{right:{_skip_check_:!0,value:n},opacity:0},"100%":{right:{_skip_check_:!0,value:0},opacity:1}});return{[`&${e}-top, &${e}-bottom`]:{marginInline:0},[`&${e}-top`]:{[`${e}-fade-enter${e}-fade-enter-active, ${e}-fade-appear${e}-fade-appear-active`]:{animationName:i}},[`&${e}-bottom`]:{[`${e}-fade-enter${e}-fade-enter-active, ${e}-fade-appear${e}-fade-appear-active`]:{animationName:o}},[`&${e}-topLeft, &${e}-bottomLeft`]:{marginInlineEnd:0,marginInlineStart:r,[`${e}-fade-enter${e}-fade-enter-active, ${e}-fade-appear${e}-fade-appear-active`]:{animationName:a}}}};var Q=V,H=n(69729);const Z=t=>{const{iconCls:e,componentCls:n,boxShadowSecondary:i,fontSizeLG:o,notificationMarginBottom:a,borderRadiusLG:s,colorSuccess:l,colorInfo:u,colorWarning:c,colorError:h,colorTextHeading:d,notificationBg:p,notificationPadding:f,notificationMarginEdge:g,motionDurationMid:v,motionEaseInOut:m,fontSize:y,lineHeight:b,width:_,notificationIconSize:x}=t,w=`${n}-notice`,O=new F.A("antNotificationFadeIn",{"0%":{left:{_skip_check_:!0,value:_},opacity:0},"100%":{left:{_skip_check_:!0,value:0},opacity:1}}),S=new F.A("antNotificationFadeOut",{"0%":{maxHeight:t.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,H.dF)(t)),{position:"fixed",zIndex:t.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:t.motionDurationMid,animationTimingFunction:m,animationFillMode:"both",opacity:0,animationPlayState:"paused"},[`${n}-fade-leave`]:{animationTimingFunction:m,animationFillMode:"both",animationDuration:v,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"}}),Q(t)),{"&-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:i,[`${n}-close-icon`]:{fontSize:y,cursor:"pointer"},[`${w}-message`]:{marginBottom:t.marginXS,color:d,fontSize:o,lineHeight:t.lineHeightLG},[`${w}-description`]:{fontSize:y},[`&${w}-closable ${w}-message`]:{paddingInlineEnd:t.paddingLG},[`${w}-with-icon ${w}-message`]:{marginBottom:t.marginXS,marginInlineStart:t.marginSM+x,fontSize:o},[`${w}-with-icon ${w}-description`]:{marginInlineStart:t.marginSM+x,fontSize:y},[`${w}-icon`]:{position:"absolute",fontSize:x,lineHeight:0,[`&-success${e}`]:{color:l},[`&-info${e}`]:{color:u},[`&-warning${e}`]:{color:c},[`&-error${e}`]:{color:h}},[`${w}-close`]:{position:"absolute",top:t.notificationPaddingVertical,insetInlineEnd:t.notificationPaddingHorizontal,color:t.colorIcon,outline:"none",width:t.notificationCloseButtonSize,height:t.notificationCloseButtonSize,borderRadius:t.borderRadiusSM,transition:`background-color ${t.motionDurationMid}, color ${t.motionDurationMid}`,display:"flex",alignItems:"center",justifyContent:"center","&:hover":{color:t.colorIconHover,backgroundColor:t.wireframe?"transparent":t.colorFillContent}},[`${w}-btn`]:{float:"right",marginTop:t.marginSM}}},{[`${w}-pure-panel`]:{margin:0}}]};var G=(0,W.A)("Notification",(t=>{const e=t.paddingMD,n=t.paddingLG,r=(0,j.h1)(t,{notificationBg:t.colorBgElevated,notificationPaddingVertical:e,notificationPaddingHorizontal:n,notificationPadding:`${t.paddingMD}px ${t.paddingContentHorizontalLG}px`,notificationMarginBottom:t.margin,notificationMarginEdge:t.marginLG,animationMaxHeight:150,notificationIconSize:t.fontSizeLG*t.lineHeightLG,notificationCloseButtonSize:.55*t.controlHeightLG});return[Z(r)]}),(t=>({zIndexPopup:t.zIndexPopupBase+50,width:384}))),X=n(69751),U=n(39375),Y=n(3551),q=n(36657),K=n(2167),J=n(51911),tt=n(82339),et=n(46299),nt=n(33684);function rt(t,e){return e||(0,i.bF)("span",{class:`${t}-close-x`},[(0,i.bF)(N.A,{class:`${t}-close-icon`},null)])}(0,i.bF)(nt.A,null,null),(0,i.bF)(et.A,null,null),(0,i.bF)(tt.A,null,null),(0,i.bF)(J.A,null,null),(0,i.bF)(K.A,null,null);const it={success:et.A,info:nt.A,error:tt.A,warning:J.A};function ot(t){let{prefixCls:e,icon:n,type:r,message:o,description:a,btn:s}=t,l=null;if(n)l=(0,i.bF)("span",{class:`${e}-icon`},[(0,z.BM)(n)]);else if(r){const t=it[r];l=(0,i.bF)(t,{class:`${e}-icon ${e}-icon-${r}`},null)}return(0,i.bF)("div",{class:(0,B.A)({[`${e}-with-icon`]:l}),role:"alert"},[l,(0,i.bF)("div",{class:`${e}-message`},[o]),(0,i.bF)("div",{class:`${e}-description`},[a]),s&&(0,i.bF)("div",{class:`${e}-btn`},[s])])}(0,i.pM)({name:"PurePanel",inheritAttrs:!1,props:["prefixCls","icon","type","message","description","btn","closeIcon"],setup(t){const{getPrefixCls:e}=(0,Y.A)("notification",t),n=(0,i.EW)((()=>t.prefixCls||e("notification"))),r=(0,i.EW)((()=>`${n.value}-notice`)),[,o]=G(n);return()=>(0,i.bF)(q.A,(0,X.A)((0,X.A)({},t),{},{prefixCls:n.value,class:(0,B.A)(o.value,`${r.value}-pure-panel`),noticeKey:"pure",duration:null,closable:t.closable,closeIcon:rt(n.value,t.closeIcon)}),{default:()=>[(0,i.bF)(ot,{prefixCls:r.value,icon:t.icon,type:t.type,message:t.message,description:t.description,btn:t.btn},null)]})}});function at(t,e,n){let r;switch(e="number"===typeof e?`${e}px`:e,n="number"===typeof n?`${n}px`:n,t){case"top":r={left:"50%",transform:"translateX(-50%)",right:"auto",top:e,bottom:"auto"};break;case"topLeft":r={left:0,top:e,bottom:"auto"};break;case"topRight":r={right:0,top:e,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 st(t){return{name:`${t}-fade`}}var lt=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n};const ut=24,ct=4.5,ht=(0,i.pM)({name:"Holder",inheritAttrs:!1,props:["prefixCls","class","type","icon","content","onAllRemoved"],setup(t,e){let{expose:n}=e;const{getPrefixCls:o,getPopupContainer:a}=(0,Y.A)("notification",t),s=(0,i.EW)((()=>t.prefixCls||o("notification"))),l=e=>{var n,r;return at(e,null!==(n=t.top)&&void 0!==n?n:ut,null!==(r=t.bottom)&&void 0!==r?r:ut)},[,u]=G(s),c=()=>(0,B.A)(u.value,{[`${s.value}-rtl`]:t.rtl}),h=()=>st(s.value),[d,p]=(0,U.A)({prefixCls:s.value,getStyles:l,getClassName:c,motion:h,closable:!0,closeIcon:rt(s.value),duration:ct,getContainer:()=>{var e,n;return(null===(e=t.getPopupContainer)||void 0===e?void 0:e.call(t))||(null===(n=a.value)||void 0===n?void 0:n.call(a))||document.body},maxCount:t.maxCount,hashId:u.value,onAllRemoved:t.onAllRemoved});return n((0,r.A)((0,r.A)({},d),{prefixCls:s.value,hashId:u})),p}});function dt(t){const e=(0,o.IJ)(null),n=Symbol("notificationHolderKey"),a=t=>{if(!e.value)return;const{open:n,prefixCls:o,hashId:a}=e.value,s=`${o}-notice`,{message:l,description:u,icon:c,type:h,btn:d,class:p}=t,f=lt(t,["message","description","icon","type","btn","class"]);return n((0,r.A)((0,r.A)({placement:"topRight"},f),{content:()=>(0,i.bF)(ot,{prefixCls:s,icon:"function"===typeof c?c():c,type:h,message:"function"===typeof l?l():l,description:"function"===typeof u?u():u,btn:"function"===typeof d?d():d},null),class:(0,B.A)(h&&`${s}-${h}`,a,p)}))},s=t=>{var n,r;void 0!==t?null===(n=e.value)||void 0===n||n.close(t):null===(r=e.value)||void 0===r||r.destroy()},l={open:a,destroy:s},u=["success","info","warning","error"];return u.forEach((t=>{l[t]=e=>a((0,r.A)((0,r.A)({},e),{type:t}))})),[l,()=>(0,i.bF)(ht,(0,X.A)((0,X.A)({key:n},t),{},{ref:e}),null)]}function pt(t){return dt(t)}const ft={};let gt,vt=4.5,mt="24px",yt="24px",bt="",_t="topRight",xt=()=>document.body,wt=null,Ot=!1;function St(t){const{duration:e,placement:n,bottom:r,top:i,getContainer:o,closeIcon:a,prefixCls:s}=t;void 0!==s&&(bt=s),void 0!==e&&(vt=e),void 0!==n&&(_t=n),void 0!==r&&(yt="number"===typeof r?`${r}px`:r),void 0!==i&&(mt="number"===typeof i?`${i}px`:i),void 0!==o&&(xt=o),void 0!==a&&(wt=a),void 0!==t.rtl&&(Ot=t.rtl),void 0!==t.maxCount&&(gt=t.maxCount)}function At(t,e){let{prefixCls:n,placement:r=_t,getContainer:o=xt,top:a,bottom:s,closeIcon:l=wt,appContext:u}=t;const{getPrefixCls:c}=re(),h=c("notification",n||bt),d=`${h}-${r}-${Ot}`,p=ft[d];if(p)return void Promise.resolve(p).then((t=>{e(t)}));const f=(0,B.A)(`${h}-${r}`,{[`${h}-rtl`]:!0===Ot});v.A.newInstance({name:"notification",prefixCls:n||bt,useStyle:G,class:f,style:at(r,null!==a&&void 0!==a?a:mt,null!==s&&void 0!==s?s:yt),appContext:u,getContainer:o,closeIcon:t=>{let{prefixCls:e}=t;const n=(0,i.bF)("span",{class:`${e}-close-x`},[(0,z.BM)(l,{},(0,i.bF)(N.A,{class:`${e}-close-icon`},null))]);return n},maxCount:gt,hasTransitionName:!0},(t=>{ft[d]=t,e(t)}))}const kt={success:O,info:S.A,error:P,warning:L};function Ct(t){const{icon:e,type:n,description:r,message:o,btn:a}=t,s=void 0===t.duration?vt:t.duration;At(t,(l=>{l.notice({content:t=>{let{prefixCls:s}=t;const l=`${s}-notice`;let u=null;if(e)u=()=>(0,i.bF)("span",{class:`${l}-icon`},[(0,z.BM)(e)]);else if(n){const t=kt[n];u=()=>(0,i.bF)(t,{class:`${l}-icon ${l}-icon-${n}`},null)}return(0,i.bF)("div",{class:u?`${l}-with-icon`:""},[u&&u(),(0,i.bF)("div",{class:`${l}-message`},[!r&&u?(0,i.bF)("span",{class:`${l}-message-single-line-auto-margin`},null):null,(0,z.BM)(o)]),(0,i.bF)("div",{class:`${l}-description`},[(0,z.BM)(r)]),a?(0,i.bF)("span",{class:`${l}-btn`},[(0,z.BM)(a)]):null])},duration:s,closable:!0,onClose:t.onClose,onClick:t.onClick,key:t.key,style:t.style||{},class:t.class})}))}const Mt={open:Ct,close(t){Object.keys(ft).forEach((e=>Promise.resolve(ft[e]).then((e=>{e.removeNotice(t)}))))},config:St,destroy(){Object.keys(ft).forEach((t=>{Promise.resolve(ft[t]).then((t=>{t.destroy()})),delete ft[t]}))}},Tt=["success","info","warning","error"];Tt.forEach((t=>{Mt[t]=e=>Mt.open((0,r.A)((0,r.A)({},e),{type:t}))})),Mt.warn=Mt.warning,Mt.useNotification=pt;var Pt=Mt,It=n(78089),$t=n(30185),Et=n(92337),Rt=n(58590);const Dt=`-ant-${Date.now()}-${Math.random()}`;function Lt(t,e){const n={},r=(t,e)=>{let n=t.clone();return n=(null===e||void 0===e?void 0:e(n))||n,n.toRgbString()},i=(t,e)=>{const i=new It.q(t),o=(0,$t.cM)(i.toRgbString());n[`${e}-color`]=r(i),n[`${e}-color-disabled`]=o[1],n[`${e}-color-hover`]=o[4],n[`${e}-color-active`]=o[6],n[`${e}-color-outline`]=i.clone().setAlpha(.2).toRgbString(),n[`${e}-color-deprecated-bg`]=o[0],n[`${e}-color-deprecated-border`]=o[2]};if(e.primaryColor){i(e.primaryColor,"primary");const t=new It.q(e.primaryColor),o=(0,$t.cM)(t.toRgbString());o.forEach(((t,e)=>{n[`primary-${e+1}`]=t})),n["primary-color-deprecated-l-35"]=r(t,(t=>t.lighten(35))),n["primary-color-deprecated-l-20"]=r(t,(t=>t.lighten(20))),n["primary-color-deprecated-t-20"]=r(t,(t=>t.tint(20))),n["primary-color-deprecated-t-50"]=r(t,(t=>t.tint(50))),n["primary-color-deprecated-f-12"]=r(t,(t=>t.setAlpha(.12*t.getAlpha())));const a=new It.q(o[0]);n["primary-color-active-deprecated-f-30"]=r(a,(t=>t.setAlpha(.3*t.getAlpha()))),n["primary-color-active-deprecated-d-02"]=r(a,(t=>t.darken(2)))}e.successColor&&i(e.successColor,"success"),e.warningColor&&i(e.warningColor,"warning"),e.errorColor&&i(e.errorColor,"error"),e.infoColor&&i(e.infoColor,"info");const o=Object.keys(n).map((e=>`--${t}-${e}: ${n[e]};`));return`\n :root {\n ${o.join("\n")}\n }\n `.trim()}function Nt(t,e){const n=Lt(t,e);(0,Rt.A)()?(0,Et.BD)(n,`${Dt}-dynamic-theme`):(0,l.Ay)(!1,"ConfigProvider","SSR do not support dynamic theme with css variables.")}var zt=n(24619),Bt=n(13234),Ft=n(70213);const Wt=t=>{const[e,n]=(0,Ft.rd)();return(0,Bt.Ay)((0,i.EW)((()=>({theme:e.value,token:n.value,hashId:"",path:["ant-design-icons",t.value]}))),(()=>[{[`.${t.value}`]:(0,r.A)((0,r.A)({},(0,H.Nk)()),{[`.${t.value} .${t.value}-icon`]:{display:"block"}})}]))};var jt=Wt;function Vt(t,e){const n=(0,i.EW)((()=>(null===t||void 0===t?void 0:t.value)||{})),o=(0,i.EW)((()=>!1!==n.value.inherit&&(null===e||void 0===e?void 0:e.value)?e.value:Ft.sb)),a=(0,i.EW)((()=>{if(!(null===t||void 0===t?void 0:t.value))return null===e||void 0===e?void 0:e.value;const i=(0,r.A)({},o.value.components);return Object.keys(t.value.components||{}).forEach((e=>{i[e]=(0,r.A)((0,r.A)({},i[e]),t.value.components[e])})),(0,r.A)((0,r.A)((0,r.A)({},o.value),n.value),{token:(0,r.A)((0,r.A)({},o.value.token),n.value.token),components:i})}));return a}var Qt=n(34643),Ht=n(90551),Zt=n(82448),Gt=n(99415),Xt=n(40730),Ut=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n};const Yt="ant";function qt(){return te.prefixCls||Yt}function Kt(){return te.iconPrefixCls||Ht.pM}const Jt=(0,o.Kh)({}),te=(0,o.Kh)({});let ee;(0,i.nT)((()=>{(0,r.A)(te,Jt),te.prefixCls=qt(),te.iconPrefixCls=Kt(),te.getPrefixCls=(t,e)=>e||(t?`${te.prefixCls}-${t}`:te.prefixCls),te.getRootPrefixCls=()=>te.prefixCls?te.prefixCls:qt()}));const ne=t=>{ee&&ee(),ee=(0,i.nT)((()=>{(0,r.A)(Jt,(0,o.Kh)(t)),(0,r.A)(te,(0,o.Kh)(t))})),t.theme&&Nt(qt(),t.theme)},re=()=>({getPrefixCls:(t,e)=>e||(t?`${qt()}-${t}`:qt()),getIconPrefixCls:Kt,getRootPrefixCls:()=>te.prefixCls?te.prefixCls:qt()}),ie=(0,i.pM)({compatConfig:{MODE:3},name:"AConfigProvider",inheritAttrs:!1,props:(0,Ht.yA)(),setup(t,e){let{slots:n}=e;const o=(0,Ht.OQ)(),s=(e,n)=>{const{prefixCls:r="ant"}=t;if(n)return n;const i=r||o.getPrefixCls("");return e?`${i}-${e}`:i},l=(0,i.EW)((()=>t.iconPrefixCls||o.iconPrefixCls.value||Ht.pM)),u=(0,i.EW)((()=>l.value!==o.iconPrefixCls.value)),h=(0,i.EW)((()=>{var e;return t.csp||(null===(e=o.csp)||void 0===e?void 0:e.value)})),d=jt(l),v=Vt((0,i.EW)((()=>t.theme)),(0,i.EW)((()=>{var t;return null===(t=o.theme)||void 0===t?void 0:t.value}))),m=e=>{const r=t.renderEmpty||n.renderEmpty||o.renderEmpty||a.A;return r(e)},y=(0,i.EW)((()=>{var e,n;return null!==(e=t.autoInsertSpaceInButton)&&void 0!==e?e:null===(n=o.autoInsertSpaceInButton)||void 0===n?void 0:n.value})),b=(0,i.EW)((()=>{var e;return t.locale||(null===(e=o.locale)||void 0===e?void 0:e.value)}));(0,i.wB)(b,(()=>{Jt.locale=b.value}),{immediate:!0});const _=(0,i.EW)((()=>{var e;return t.direction||(null===(e=o.direction)||void 0===e?void 0:e.value)})),x=(0,i.EW)((()=>{var e,n;return null!==(e=t.space)&&void 0!==e?e:null===(n=o.space)||void 0===n?void 0:n.value})),w=(0,i.EW)((()=>{var e,n;return null!==(e=t.virtual)&&void 0!==e?e:null===(n=o.virtual)||void 0===n?void 0:n.value})),O=(0,i.EW)((()=>{var e,n;return null!==(e=t.dropdownMatchSelectWidth)&&void 0!==e?e:null===(n=o.dropdownMatchSelectWidth)||void 0===n?void 0:n.value})),S=(0,i.EW)((()=>{var e;return void 0!==t.getTargetContainer?t.getTargetContainer:null===(e=o.getTargetContainer)||void 0===e?void 0:e.value})),A=(0,i.EW)((()=>{var e;return void 0!==t.getPopupContainer?t.getPopupContainer:null===(e=o.getPopupContainer)||void 0===e?void 0:e.value})),k=(0,i.EW)((()=>{var e;return void 0!==t.pageHeader?t.pageHeader:null===(e=o.pageHeader)||void 0===e?void 0:e.value})),C=(0,i.EW)((()=>{var e;return void 0!==t.input?t.input:null===(e=o.input)||void 0===e?void 0:e.value})),M=(0,i.EW)((()=>{var e;return void 0!==t.pagination?t.pagination:null===(e=o.pagination)||void 0===e?void 0:e.value})),T=(0,i.EW)((()=>{var e;return void 0!==t.form?t.form:null===(e=o.form)||void 0===e?void 0:e.value})),P=(0,i.EW)((()=>{var e;return void 0!==t.select?t.select:null===(e=o.select)||void 0===e?void 0:e.value})),I=(0,i.EW)((()=>t.componentSize)),$=(0,i.EW)((()=>t.componentDisabled)),E=(0,i.EW)((()=>{var e,n;return null!==(e=t.wave)&&void 0!==e?e:null===(n=o.wave)||void 0===n?void 0:n.value})),R={csp:h,autoInsertSpaceInButton:y,locale:b,direction:_,space:x,virtual:w,dropdownMatchSelectWidth:O,getPrefixCls:s,iconPrefixCls:l,theme:(0,i.EW)((()=>{var t,e;return null!==(t=v.value)&&void 0!==t?t:null===(e=o.theme)||void 0===e?void 0:e.value})),renderEmpty:m,getTargetContainer:S,getPopupContainer:A,pageHeader:k,input:C,pagination:M,form:T,select:P,componentSize:I,componentDisabled:$,transformCellText:(0,i.EW)((()=>t.transformCellText)),wave:E},D=(0,i.EW)((()=>{const t=v.value||{},{algorithm:e,token:n}=t,i=Ut(t,["algorithm","token"]),o=e&&(!Array.isArray(e)||e.length>0)?(0,Xt.A)(e):void 0;return(0,r.A)((0,r.A)({},i),{theme:o,token:(0,r.A)((0,r.A)({},Qt.A),n)})})),L=(0,i.EW)((()=>{var e,n;let i={};return b.value&&(i=(null===(e=b.value.Form)||void 0===e?void 0:e.defaultValidateMessages)||(null===(n=zt.A.Form)||void 0===n?void 0:n.defaultValidateMessages)||{}),t.form&&t.form.validateMessages&&(i=(0,r.A)((0,r.A)({},i),t.form.validateMessages)),i}));(0,Ht.GY)(R),(0,Ht.AR)({validateMessages:L}),(0,Zt.A)(I),(0,Gt.Z)($);const N=e=>{var r,o;let a=u.value?d(null===(r=n.default)||void 0===r?void 0:r.call(n)):null===(o=n.default)||void 0===o?void 0:o.call(n);if(t.theme){const t=function(){return a}();a=(0,i.bF)(Ft.n5,{value:D.value},{default:()=>[t]})}return(0,i.bF)(p,{locale:b.value||e,ANT_MARK__:c},{default:()=>[a]})};return(0,i.nT)((()=>{_.value&&(g.Ay.config({rtl:"rtl"===_.value}),Pt.config({rtl:"rtl"===_.value}))})),()=>(0,i.bF)(f.A,{children:(t,e,n)=>N(n)},null)}});ie.config=ne,ie.install=function(t){t.component(ie.name,ie)};var oe=ie},40493:function(t,e,n){"use strict";n.d(e,{x:function(){return C},A:function(){return T}});var r=n(73913),i=n(69751),o=n(98657),a=n(13389),s=n(97605),l=n(70213),u=n(78089);const c=(0,r.pM)({compatConfig:{MODE:3},setup(){const[,t]=(0,l.rd)(),e=(0,r.EW)((()=>{const e=new u.q(t.value.colorBgBase);return e.toHsl().l<.5?{opacity:.65}:{}}));return()=>(0,r.bF)("svg",{style:e.value,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},[(0,r.bF)("g",{fill:"none","fill-rule":"evenodd"},[(0,r.bF)("g",{transform:"translate(24 31.67)"},[(0,r.bF)("ellipse",{"fill-opacity":".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"},null),(0,r.bF)("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.bF)("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.bF)("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.bF)("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.bF)("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.bF)("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},[(0,r.bF)("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"},null),(0,r.bF)("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"},null)])])])}});c.PRESENTED_IMAGE_DEFAULT=!0;var h=c;const d=(0,r.pM)({compatConfig:{MODE:3},setup(){const[,t]=(0,l.rd)(),e=(0,r.EW)((()=>{const{colorFill:e,colorFillTertiary:n,colorFillQuaternary:r,colorBgContainer:i}=t.value;return{borderColor:new u.q(e).onBackground(i).toHexString(),shadowColor:new u.q(n).onBackground(i).toHexString(),contentColor:new u.q(r).onBackground(i).toHexString()}}));return()=>(0,r.bF)("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},[(0,r.bF)("g",{transform:"translate(0 1)",fill:"none","fill-rule":"evenodd"},[(0,r.bF)("ellipse",{fill:e.value.shadowColor,cx:"32",cy:"33",rx:"32",ry:"7"},null),(0,r.bF)("g",{"fill-rule":"nonzero",stroke:e.value.borderColor},[(0,r.bF)("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.bF)("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:e.value.contentColor},null)])])])}});d.PRESENTED_IMAGE_SIMPLE=!0;var p=d,f=n(16155),g=n(66041),v=n(3551),m=n(94471),y=n(96704);const b=t=>{const{componentCls:e,margin:n,marginXS:r,marginXL:i,fontSize:o,lineHeight:a}=t;return{[e]:{marginInline:r,fontSize:o,lineHeight:a,textAlign:"center",[`${e}-image`]:{height:t.emptyImgHeight,marginBottom:r,opacity:t.opacityImage,img:{height:"100%"},svg:{height:"100%",margin:"auto"}},[`${e}-footer`]:{marginTop:n},"&-normal":{marginBlock:i,color:t.colorTextDisabled,[`${e}-image`]:{height:t.emptyImgHeightMD}},"&-small":{marginBlock:r,color:t.colorTextDisabled,[`${e}-image`]:{height:t.emptyImgHeightSM}}}}};var _=(0,m.A)("Empty",(t=>{const{componentCls:e,controlHeightLG:n}=t,r=(0,y.h1)(t,{emptyImgCls:`${e}-img`,emptyImgHeight:2.5*n,emptyImgHeightMD:n,emptyImgHeightSM:.875*n});return[b(r)]})),x=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n};const w=(0,r.bF)(h,null,null),O=(0,r.bF)(p,null,null),S=()=>({prefixCls:String,imageStyle:(0,g.ge)(),image:(0,g.ds)(),description:(0,g.ds)()}),A=(0,r.pM)({name:"AEmpty",compatConfig:{MODE:3},inheritAttrs:!1,props:S(),setup(t,e){let{slots:n={},attrs:l}=e;const{direction:u,prefixCls:c}=(0,v.A)("empty",t),[h,d]=_(c);return()=>{var e,p;const g=c.value,v=(0,o.A)((0,o.A)({},t),l),{image:m=(null===(e=n.image)||void 0===e?void 0:e.call(n))||w,description:y=(null===(p=n.description)||void 0===p?void 0:p.call(n))||void 0,imageStyle:b,class:_=""}=v,S=x(v,["image","description","imageStyle","class"]);return h((0,r.bF)(s.A,{componentName:"Empty",children:t=>{const e="undefined"!==typeof y?y:t.description,o="string"===typeof e?e:"empty";let s=null;return s="string"===typeof m?(0,r.bF)("img",{alt:o,src:m},null):m,(0,r.bF)("div",(0,i.A)({class:(0,a.A)(g,_,d.value,{[`${g}-normal`]:m===O,[`${g}-rtl`]:"rtl"===u.value})},S),[(0,r.bF)("div",{class:`${g}-image`,style:b},[s]),e&&(0,r.bF)("p",{class:`${g}-description`},[e]),n.default&&(0,r.bF)("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=t=>{const{prefixCls:e}=(0,v.A)("empty",t),n=t=>{switch(t){case"Table":case"List":return(0,r.bF)(k,{image:k.PRESENTED_IMAGE_SIMPLE},null);case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return(0,r.bF)(k,{image:k.PRESENTED_IMAGE_SIMPLE,class:`${e.value}-small`},null);default:return(0,r.bF)(k,null,null)}};return n(t.componentName)};function M(t){return(0,r.bF)(C,{componentName:t},null)}var T=M},5068:function(t,e,n){"use strict";n.d(e,{A:function(){return me}});var r=n(69751),i=n(98657),o=n(73913),a=n(78753),s=n(2167),l=n(82339),u=n(46299),c=n(51911),h=n(4908),d=n(5530),p=n(13389),f=n(70213);const g=["xxxl","xxl","xl","lg","md","sm","xs"],v=t=>({xs:`(max-width: ${t.screenXSMax}px)`,sm:`(min-width: ${t.screenSM}px)`,md:`(min-width: ${t.screenMD}px)`,lg:`(min-width: ${t.screenLG}px)`,xl:`(min-width: ${t.screenXL}px)`,xxl:`(min-width: ${t.screenXXL}px)`,xxxl:`{min-width: ${t.screenXXXL}px}`});function m(){const[,t]=(0,f.rd)();return(0,o.EW)((()=>{const e=v(t.value),n=new Map;let r=-1,o={};return{matchHandlers:{},dispatch(t){return o=t,n.forEach((t=>t(o))),n.size>=1},subscribe(t){return n.size||this.register(),r+=1,n.set(r,t),t(o),r},unsubscribe(t){n.delete(t),n.size||this.unregister()},unregister(){Object.keys(e).forEach((t=>{const n=e[t],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(e).forEach((t=>{const n=e[t],r=e=>{let{matches:n}=e;this.dispatch((0,i.A)((0,i.A)({},o),{[t]:n}))},a=window.matchMedia(n);a.addListener(r),this.matchHandlers[n]={mql:a,listener:r},r(a)}))},responsiveMap:e}}))}var y=n(3551),b=n(97369),_=()=>{const t=(0,a.IJ)(!1);return(0,o.sV)((()=>{t.value=(0,b.Pu)()})),t};const x=Symbol("rowContextKey"),w=t=>{(0,o.Gt)(x,t)},O=()=>(0,o.WQ)(x,{gutter:(0,o.EW)((()=>{})),wrap:(0,o.EW)((()=>{})),supportFlexGap:(0,o.EW)((()=>{}))});var S=w,A=n(94471),k=n(96704);const C=t=>{const{componentCls:e}=t;return{[e]:{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"}}}},M=t=>{const{componentCls:e}=t;return{[e]:{position:"relative",maxWidth:"100%",minHeight:1}}},T=(t,e)=>{const{componentCls:n,gridColumns:r}=t,i={};for(let o=r;o>=0;o--)0===o?(i[`${n}${e}-${o}`]={display:"none"},i[`${n}-push-${o}`]={insetInlineStart:"auto"},i[`${n}-pull-${o}`]={insetInlineEnd:"auto"},i[`${n}${e}-push-${o}`]={insetInlineStart:"auto"},i[`${n}${e}-pull-${o}`]={insetInlineEnd:"auto"},i[`${n}${e}-offset-${o}`]={marginInlineEnd:0},i[`${n}${e}-order-${o}`]={order:0}):(i[`${n}${e}-${o}`]={display:"block",flex:`0 0 ${o/r*100}%`,maxWidth:o/r*100+"%"},i[`${n}${e}-push-${o}`]={insetInlineStart:o/r*100+"%"},i[`${n}${e}-pull-${o}`]={insetInlineEnd:o/r*100+"%"},i[`${n}${e}-offset-${o}`]={marginInlineStart:o/r*100+"%"},i[`${n}${e}-order-${o}`]={order:o});return i},P=(t,e)=>T(t,e),I=(t,e,n)=>({[`@media (min-width: ${e}px)`]:(0,i.A)({},P(t,n))}),$=(0,A.A)("Grid",(t=>[C(t)])),E=(0,A.A)("Grid",(t=>{const e=(0,k.h1)(t,{gridColumns:24}),n={"-sm":e.screenSMMin,"-md":e.screenMDMin,"-lg":e.screenLGMin,"-xl":e.screenXLMin,"-xxl":e.screenXXLMin};return[M(e),P(e,""),P(e,"-xs"),Object.keys(n).map((t=>I(e,n[t],t))).reduce(((t,e)=>(0,i.A)((0,i.A)({},t),e)),{})]}));var R=n(66041);const D=()=>({align:(0,R.tK)([String,Object]),justify:(0,R.tK)([String,Object]),prefixCls:String,gutter:(0,R.tK)([Number,Array,Object],0),wrap:{type:Boolean,default:void 0}}),L=(0,o.pM)({compatConfig:{MODE:3},name:"ARow",inheritAttrs:!1,props:D(),setup(t,e){let{slots:n,attrs:s}=e;const{prefixCls:l,direction:u}=(0,y.A)("row",t),[c,h]=$(l);let d;const f=m(),v=(0,a.KR)({xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0}),b=(0,a.KR)({xs:!1,sm:!1,md:!1,lg:!1,xl:!1,xxl:!1}),x=e=>(0,o.EW)((()=>{if("string"===typeof t[e])return t[e];if("object"!==typeof t[e])return"";for(let n=0;n<g.length;n++){const r=g[n];if(!b.value[r])continue;const i=t[e][r];if(void 0!==i)return i}return""})),w=x("align"),O=x("justify"),A=_();(0,o.sV)((()=>{d=f.value.subscribe((e=>{b.value=e;const n=t.gutter||0;(!Array.isArray(n)&&"object"===typeof n||Array.isArray(n)&&("object"===typeof n[0]||"object"===typeof n[1]))&&(v.value=e)}))})),(0,o.xo)((()=>{f.value.unsubscribe(d)}));const k=(0,o.EW)((()=>{const e=[void 0,void 0],{gutter:n=0}=t,r=Array.isArray(n)?n:[n,void 0];return r.forEach(((t,n)=>{if("object"===typeof t)for(let r=0;r<g.length;r++){const i=g[r];if(v.value[i]&&void 0!==t[i]){e[n]=t[i];break}}else e[n]=t})),e}));S({gutter:k,supportFlexGap:A,wrap:(0,o.EW)((()=>t.wrap))});const C=(0,o.EW)((()=>(0,p.A)(l.value,{[`${l.value}-no-wrap`]:!1===t.wrap,[`${l.value}-${O.value}`]:O.value,[`${l.value}-${w.value}`]:w.value,[`${l.value}-rtl`]:"rtl"===u.value},s.class,h.value))),M=(0,o.EW)((()=>{const t=k.value,e={},n=null!=t[0]&&t[0]>0?t[0]/-2+"px":void 0,r=null!=t[1]&&t[1]>0?t[1]/-2+"px":void 0;return n&&(e.marginLeft=n,e.marginRight=n),A.value?e.rowGap=`${t[1]}px`:r&&(e.marginTop=r,e.marginBottom=r),e}));return()=>{var t;return c((0,o.bF)("div",(0,r.A)((0,r.A)({},s),{},{class:C.value,style:(0,i.A)((0,i.A)({},M.value),s.style)}),[null===(t=n.default)||void 0===t?void 0:t.call(n)]))}}});var N=L,z=n(16155),B=n(92423),F=n(13798),W=n(3778),j=n(52002),V=n(74381),Q=n(13796),H=1,Z=2;function G(t,e,n,r){var i=n.length,o=i,a=!r;if(null==t)return!o;t=Object(t);while(i--){var s=n[i];if(a&&s[2]?s[1]!==t[s[0]]:!(s[0]in t))return!1}while(++i<o){s=n[i];var l=s[0],u=t[l],c=s[1];if(a&&s[2]){if(void 0===u&&!(l in t))return!1}else{var h=new V.A;if(r)var d=r(u,c,l,t,e,h);if(!(void 0===d?(0,Q.A)(c,u,H|Z,r,h):d))return!1}}return!0}var X=G,U=n(48508);function Y(t){return t===t&&!(0,U.A)(t)}var q=Y,K=n(99915);function J(t){var e=(0,K.A)(t),n=e.length;while(n--){var r=e[n],i=t[r];e[n]=[r,i,q(i)]}return e}var tt=J;function et(t,e){return function(n){return null!=n&&(n[t]===e&&(void 0!==e||t in Object(n)))}}var nt=et;function rt(t){var e=tt(t);return 1==e.length&&e[0][2]?nt(e[0][0],e[0][1]):function(n){return n===t||X(n,t,e)}}var it=rt,ot=n(83067),at=n(92324),st=n(50259),lt=n(65864),ut=1,ct=2;function ht(t,e){return(0,st.A)(t)&&q(e)?nt((0,lt.A)(t),e):function(n){var r=(0,ot.A)(n,t);return void 0===r&&r===e?(0,at.A)(n,t):(0,Q.A)(e,r,ut|ct)}}var dt=ht,pt=n(14101),ft=n(9670);function gt(t){return function(e){return null==e?void 0:e[t]}}var vt=gt,mt=n(13267);function yt(t){return function(e){return(0,mt.A)(e,t)}}var bt=yt;function _t(t){return(0,st.A)(t)?vt((0,lt.A)(t)):bt(t)}var xt=_t;function wt(t){return"function"==typeof t?t:null==t?pt.A:"object"==typeof t?(0,ft.A)(t)?dt(t[0],t[1]):it(t):xt(t)}var Ot=wt,St=n(58977);function At(t){return function(e,n,r){var i=Object(e);if(!(0,St.A)(e)){var o=Ot(n,3);e=(0,K.A)(e),n=function(t){return o(i[t],t,i)}}var a=t(e,n,r);return a>-1?i[o?e[a]:a]:void 0}}var kt=At,Ct=n(44690),Mt=n(98704),Tt=1/0,Pt=17976931348623157e292;function It(t){if(!t)return 0===t?t:0;if(t=(0,Mt.A)(t),t===Tt||t===-Tt){var e=t<0?-1:1;return e*Pt}return t===t?t:0}var $t=It;function Et(t){var e=$t(t),n=e%1;return e===e?n?e-n:e:0}var Rt=Et,Dt=Math.max;function Lt(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var i=null==n?0:Rt(n);return i<0&&(i=Dt(r+i,0)),(0,Ct.A)(t,Ot(e,3),i)}var Nt=Lt,zt=kt(Nt),Bt=zt,Ft=n(31825);n(30381);function Wt(t){return"number"===typeof t?`${t} ${t} auto`:/^\d+(\.\d+)?(px|em|rem|%)$/.test(t)?`0 0 ${t}`:t}const jt=()=>({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]}),Vt=["xs","sm","md","lg","xl","xxl"];var Qt=(0,o.pM)({compatConfig:{MODE:3},name:"ACol",inheritAttrs:!1,props:jt(),setup(t,e){let{slots:n,attrs:a}=e;const{gutter:s,supportFlexGap:l,wrap:u}=O(),{prefixCls:c,direction:h}=(0,y.A)("col",t),[d,f]=E(c),g=(0,o.EW)((()=>{const{span:e,order:n,offset:r,push:o,pull:s}=t,l=c.value;let u={};return Vt.forEach((e=>{let n={};const r=t[e];"number"===typeof r?n.span=r:"object"===typeof r&&(n=r||{}),u=(0,i.A)((0,i.A)({},u),{[`${l}-${e}-${n.span}`]:void 0!==n.span,[`${l}-${e}-order-${n.order}`]:n.order||0===n.order,[`${l}-${e}-offset-${n.offset}`]:n.offset||0===n.offset,[`${l}-${e}-push-${n.push}`]:n.push||0===n.push,[`${l}-${e}-pull-${n.pull}`]:n.pull||0===n.pull,[`${l}-rtl`]:"rtl"===h.value})})),(0,p.A)(l,{[`${l}-${e}`]:void 0!==e,[`${l}-order-${n}`]:n,[`${l}-offset-${r}`]:r,[`${l}-push-${o}`]:o,[`${l}-pull-${s}`]:s},u,a.class,f.value)})),v=(0,o.EW)((()=>{const{flex:e}=t,n=s.value,r={};if(n&&n[0]>0){const t=n[0]/2+"px";r.paddingLeft=t,r.paddingRight=t}if(n&&n[1]>0&&!l.value){const t=n[1]/2+"px";r.paddingTop=t,r.paddingBottom=t}return e&&(r.flex=Wt(e),!1!==u.value||r.minWidth||(r.minWidth=0)),r}));return()=>{var t;return d((0,o.bF)("div",(0,r.A)((0,r.A)({},a),{},{class:g.value,style:[v.value,a.style]}),[null===(t=n.default)||void 0===t?void 0:t.call(n)]))}}}),Ht=n(53775),Zt=n(24619),Gt=n(9139),Xt={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"},Ut=Xt,Yt=n(29847);function qt(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?Object(arguments[e]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),r.forEach((function(e){Kt(t,e,n[e])}))}return t}function Kt(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Jt=function(t,e){var n=qt({},t,e.attrs);return(0,o.bF)(Yt.A,qt({},n,{icon:Ut}),null)};Jt.displayName="QuestionCircleOutlined",Jt.inheritAttrs=!1;var te=Jt;const ee=(t,e)=>{let{slots:n,emit:a,attrs:s}=e;var l,u,c,h,d;const{prefixCls:f,htmlFor:g,labelCol:v,labelAlign:m,colon:y,required:b,requiredMark:_}=(0,i.A)((0,i.A)({},t),s),[x]=(0,Ht.n)("Form"),w=null!==(l=t.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,Ft.nS)(),M=v||(null===A||void 0===A?void 0:A.value)||{},T=m||(null===S||void 0===S?void 0:S.value),P=`${f}-item-label`,I=(0,p.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,R=E&&!O.value;if(R&&"string"===typeof w&&""!==w.trim()&&($=w.replace(/[:|:]\s*$/,"")),t.tooltip||n.tooltip){const e=(0,o.bF)("span",{class:`${f}-item-tooltip`},[(0,o.bF)(Gt.A,{title:t.tooltip},{default:()=>[(0,o.bF)(te,null,null)]})]);$=(0,o.bF)(o.FK,null,[$,n.tooltip?null===(c=n.tooltip)||void 0===c?void 0:c.call(n,{class:`${f}-item-tooltip`}):e])}"optional"!==_||b||($=(0,o.bF)(o.FK,null,[$,(0,o.bF)("span",{class:`${f}-item-optional`},[(null===(h=x.value)||void 0===h?void 0:h.optional)||(null===(d=Zt.A.Form)||void 0===d?void 0:d.optional)])]));const D=(0,p.A)({[`${f}-item-required`]:b,[`${f}-item-required-mark-optional`]:"optional"===_,[`${f}-item-no-colon`]:!E});return(0,o.bF)(Qt,(0,r.A)((0,r.A)({},M),{},{class:I}),{default:()=>[(0,o.bF)("label",{for:g,class:D,title:"string"===typeof w?w:"",onClick:t=>a("click",t)},[$])]})};ee.displayName="FormItemLabel",ee.inheritAttrs=!1;var ne=ee,re=n(67874),ie=n(41038),oe=n(33063),ae=n(327),se=(0,o.pM)({compatConfig:{MODE:3},name:"ErrorList",inheritAttrs:!1,props:["errors","help","onErrorVisibleChanged","helpStatus","warnings"],setup(t,e){let{attrs:n}=e;const{prefixCls:i,status:s}=(0,Ft.K)(),l=(0,o.EW)((()=>`${i.value}-item-explain`)),u=(0,o.EW)((()=>!(!t.errors||!t.errors.length))),c=(0,a.KR)(s.value),[,h]=(0,ae.A)(i);return(0,o.wB)([u,s],(()=>{u.value&&(c.value=s.value)})),()=>{var e,a;const s=(0,oe.A)(`${i.value}-show-help-item`),u=(0,ie.zg)(`${i.value}-show-help-item`,s);return u.role="alert",u.class=[h.value,l.value,n.class,`${i.value}-show-help`],(0,o.bF)(re.eB,(0,r.A)((0,r.A)({},(0,ie.ce)(`${i.value}-show-help`)),{},{onAfterEnter:()=>t.onErrorVisibleChanged(!0),onAfterLeave:()=>t.onErrorVisibleChanged(!1)}),{default:()=>[(0,o.bo)((0,o.bF)(re.F,(0,r.A)((0,r.A)({},u),{},{tag:"div"}),{default:()=>[null===(a=t.errors)||void 0===a?void 0:a.map(((t,e)=>(0,o.bF)("div",{key:e,class:c.value?`${l.value}-${c.value}`:""},[t])))]}),[[re.aG,!!(null===(e=t.errors)||void 0===e?void 0:e.length)]])]})}}});const le=(0,o.pM)({compatConfig:{MODE:3},slots:Object,inheritAttrs:!1,props:["prefixCls","errors","hasFeedback","onDomErrorVisibleChange","wrapperCol","help","extra","status","marginBottom","onErrorVisibleChanged"],setup(t,e){let{slots:n}=e;const a=(0,Ft.nS)(),{wrapperCol:s}=a,l=(0,i.A)({},a);return delete l.labelCol,delete l.wrapperCol,(0,Ft.Tc)(l),(0,Ft.ol)({prefixCls:(0,o.EW)((()=>t.prefixCls)),status:(0,o.EW)((()=>t.status))}),()=>{var e,i,a;const{prefixCls:l,wrapperCol:u,marginBottom:c,onErrorVisibleChanged:h,help:d=(null===(e=n.help)||void 0===e?void 0:e.call(n)),errors:f=(0,z.Gk)(null===(i=n.errors)||void 0===i?void 0:i.call(n)),extra:g=(null===(a=n.extra)||void 0===a?void 0:a.call(n))}=t,v=`${l}-item`,m=u||(null===s||void 0===s?void 0:s.value)||{},y=(0,p.A)(`${v}-control`,m.class);return(0,o.bF)(Qt,(0,r.A)((0,r.A)({},m),{},{class:y}),{default:()=>{var t;return(0,o.bF)(o.FK,null,[(0,o.bF)("div",{class:`${v}-control-input`},[(0,o.bF)("div",{class:`${v}-control-input-content`},[null===(t=n.default)||void 0===t?void 0:t.call(n)])]),null!==c||f.length?(0,o.bF)("div",{style:{display:"flex",flexWrap:"nowrap"}},[(0,o.bF)(se,{errors:f,help:d,class:`${v}-explain-connected`,onErrorVisibleChanged:h},null),!!c&&(0,o.bF)("div",{style:{width:0,height:`${c}px`}},null)]):null,g?(0,o.bF)("div",{class:`${v}-extra`},[g]):null])}})}}});var ue=le,ce=n(35162);function he(t){const e=(0,a.IJ)(t.value.slice());let n=null;return(0,o.nT)((()=>{clearTimeout(n),n=setTimeout((()=>{e.value=t.value}),t.value.length?0:10)})),e}(0,R.PV)("success","warning","error","validating","");const de={success:u.A,warning:c.A,error:l.A,validating:s.A};function pe(t,e,n){let r=t;const i=e;let o=0;try{for(let t=i.length;o<t-1;++o){if(!r&&!n)break;const t=i[o];if(!(t in r)){if(n)throw Error("please transfer a valid name path to form item!");break}r=r[t]}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:i[o],v:r?r[i[o]]:void 0}}const fe=()=>({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,R.PV)("","success","warning","error","validating")),validateTrigger:{type:[String,Array]},messageVariables:{type:Object},hidden:Boolean,noStyle:Boolean,tooltip:String});let ge=0;const ve="form_item";var me=(0,o.pM)({compatConfig:{MODE:3},name:"AFormItem",inheritAttrs:!1,__ANT_NEW_FORM_ITEM:!0,props:fe(),slots:Object,setup(t,e){let{slots:n,attrs:s,expose:l}=e;(0,j.$e)(void 0===t.prop,"`prop` is deprecated. Please use `name` instead.");const u="form-item-"+ ++ge,{prefixCls:c}=(0,y.A)("form",t),[d,f]=(0,ae.A)(c),g=(0,a.IJ)(),v=(0,Ft.nS)(),m=(0,o.EW)((()=>t.name||t.prop)),b=(0,a.IJ)([]),_=(0,a.IJ)(!1),x=(0,a.IJ)(),w=(0,o.EW)((()=>{const t=m.value;return(0,F.XK)(t)})),O=(0,o.EW)((()=>{if(w.value.length){const t=v.name.value,e=w.value.join("_");return t?`${t}_${e}`:`${ve}_${e}`}})),S=()=>{const t=v.model.value;return t&&m.value?pe(t,w.value,!0).v:void 0},A=(0,o.EW)((()=>S())),k=(0,a.IJ)((0,h.A)(A.value)),C=(0,o.EW)((()=>{let e=void 0!==t.validateTrigger?t.validateTrigger:v.validateTrigger.value;return e=void 0===e?"change":e,(0,W.$)(e)})),M=(0,o.EW)((()=>{let e=v.rules.value;const n=t.rules,r=void 0!==t.required?{required:!!t.required,trigger:C.value}:[],i=pe(e,w.value);e=e?i.o[i.k]||i.v:[];const o=[].concat(n||e||[]);return Bt(o,(t=>t.required))?o:o.concat(r)})),T=(0,o.EW)((()=>{const e=M.value;let n=!1;return e&&e.length&&e.every((t=>!t.required||(n=!0,!1))),n||t.required})),P=(0,a.IJ)();(0,o.nT)((()=>{P.value=t.validateStatus}));const I=(0,o.EW)((()=>{let e={};return"string"===typeof t.label?e.label=t.label:t.name&&(e.label=String(t.name)),t.messageVariables&&(e=(0,i.A)((0,i.A)({},e),t.messageVariables)),e})),$=e=>{if(0===w.value.length)return;const{validateFirst:n=!1}=t,{triggerName:r}=e||{};let o=M.value;if(r&&(o=o.filter((t=>{const{trigger:e}=t;if(!e&&!C.value.length)return!0;const n=(0,W.$)(e||C.value);return n.includes(r)}))),!o.length)return Promise.resolve();const s=(0,B.W)(w.value,A.value,o,(0,i.A)({validateMessages:v.validateMessages.value},e),n,I.value);return P.value="validating",b.value=[],s.catch((t=>t)).then((function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if("validating"===P.value){const e=t.filter((t=>t&&t.errors.length));P.value=e.length?"error":"success",b.value=e.map((t=>t.errors)),v.onValidate(m.value,!b.value.length,b.value.length?(0,a.ux)(b.value[0]):null)}})),s},E=()=>{$({triggerName:"blur"})},R=()=>{_.value?_.value=!1:$({triggerName:"change"})},D=()=>{P.value=t.validateStatus,_.value=!1,b.value=[]},L=()=>{var e;P.value=t.validateStatus,_.value=!0,b.value=[];const n=v.model.value||{},r=A.value,i=pe(n,w.value,!0);Array.isArray(r)?i.o[i.k]=[].concat(null!==(e=k.value)&&void 0!==e?e:[]):i.o[i.k]=k.value,(0,o.dY)((()=>{_.value=!1}))},V=(0,o.EW)((()=>void 0===t.htmlFor?O.value:t.htmlFor)),Q=()=>{const t=V.value;if(!t||!x.value)return;const e=x.value.$el.querySelector(`[id="${t}"]`);e&&e.focus&&e.focus()};l({onFieldBlur:E,onFieldChange:R,clearValidate:D,resetField:L}),(0,ce.dJ)({id:O,onFieldBlur:()=>{t.autoLink&&E()},onFieldChange:()=>{t.autoLink&&R()},clearValidate:D},(0,o.EW)((()=>!!(t.autoLink&&v.model.value&&m.value))));let H=!1;(0,o.wB)(m,(t=>{t?H||(H=!0,v.addField(u,{fieldValue:A,fieldId:O,fieldName:m,resetField:L,clearValidate:D,namePath:w,validateRules:$,rules:M})):(H=!1,v.removeField(u))}),{immediate:!0}),(0,o.xo)((()=>{v.removeField(u)}));const Z=he(b),G=(0,o.EW)((()=>void 0!==t.validateStatus?t.validateStatus:Z.value.length?"error":P.value)),X=(0,o.EW)((()=>({[`${c.value}-item`]:!0,[f.value]:!0,[`${c.value}-item-has-feedback`]:G.value&&t.hasFeedback,[`${c.value}-item-has-success`]:"success"===G.value,[`${c.value}-item-has-warning`]:"warning"===G.value,[`${c.value}-item-has-error`]:"error"===G.value,[`${c.value}-item-is-validating`]:"validating"===G.value,[`${c.value}-item-hidden`]:t.hidden}))),U=(0,a.Kh)({});ce.$W.useProvide(U),(0,o.nT)((()=>{let e;if(t.hasFeedback){const t=G.value&&de[G.value];e=t?(0,o.bF)("span",{class:(0,p.A)(`${c.value}-item-feedback-icon`,`${c.value}-item-feedback-icon-${G.value}`)},[(0,o.bF)(t,null,null)]):null}(0,i.A)(U,{status:G.value,hasFeedback:t.hasFeedback,feedbackIcon:e,isFormItemInput:!0})}));const Y=(0,a.IJ)(null),q=(0,a.IJ)(!1),K=()=>{if(g.value){const t=getComputedStyle(g.value);Y.value=parseInt(t.marginBottom,10)}};(0,o.sV)((()=>{(0,o.wB)(q,(()=>{q.value&&K()}),{flush:"post",immediate:!0})}));const J=t=>{t||(Y.value=null)};return()=>{var e,i;if(t.noStyle)return null===(e=n.default)||void 0===e?void 0:e.call(n);const a=null!==(i=t.help)&&void 0!==i?i:n.help?(0,z.Gk)(n.help()):null,l=!!(void 0!==a&&null!==a&&Array.isArray(a)&&a.length||Z.value.length);return q.value=l,d((0,o.bF)("div",{class:[X.value,l?`${c.value}-item-with-help`:"",s.class],ref:g},[(0,o.bF)(N,(0,r.A)((0,r.A)({},s),{},{class:`${c.value}-item-row`,key:"row"}),{default:()=>{var e,i;return(0,o.bF)(o.FK,null,[(0,o.bF)(ne,(0,r.A)((0,r.A)({},t),{},{htmlFor:V.value,required:T.value,requiredMark:v.requiredMark.value,prefixCls:c.value,onClick:Q,label:t.label}),{label:n.label,tooltip:n.tooltip}),(0,o.bF)(ue,(0,r.A)((0,r.A)({},t),{},{errors:void 0!==a&&null!==a?(0,W.$)(a):Z.value,marginBottom:Y.value,prefixCls:c.value,status:G.value,ref:x,help:a,extra:null!==(e=t.extra)&&void 0!==e?e:null===(i=n.extra)||void 0===i?void 0:i.call(n),onErrorVisibleChanged:J}),{default:n.default})])}}),!!Y.value&&(0,o.bF)("div",{class:`${c.value}-margin-offset`,style:{marginBottom:`-${Y.value}px`}},null)]))}}})},35162:function(t,e,n){"use strict";n.d(e,{$W:function(){return d},dJ:function(){return l},db:function(){return h},yx:function(){return p}});var r=n(73913),i=n(78753),o=n(2126);const a=Symbol("ContextProps"),s=Symbol("InternalContextProps"),l=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(0,r.EW)((()=>!0));const n=(0,i.KR)(new Map),o=(t,e)=>{n.value.set(t,e),n.value=new Map(n.value)},l=t=>{n.value.delete(t),n.value=new Map(n.value)};(0,r.nI)();(0,r.wB)([e,n],(()=>{0})),(0,r.Gt)(a,t),(0,r.Gt)(s,{addFormItemField:o,removeFormItemField:l})},u={id:(0,r.EW)((()=>{})),onFieldBlur:()=>{},onFieldChange:()=>{},clearValidate:()=>{}},c={addFormItemField:()=>{},removeFormItemField:()=>{}},h=()=>{const t=(0,r.WQ)(s,c),e=Symbol("FormItemFieldKey"),n=(0,r.nI)();return t.addFormItemField(e,n.type),(0,r.xo)((()=>{t.removeFormItemField(e)})),(0,r.Gt)(s,c),(0,r.Gt)(a,u),(0,r.WQ)(a,u)};e.Ay=(0,r.pM)({compatConfig:{MODE:3},name:"AFormItemRest",setup(t,e){let{slots:n}=e;return(0,r.Gt)(s,c),(0,r.Gt)(a,u),()=>{var t;return null===(t=n.default)||void 0===t?void 0:t.call(n)}}});const d=(0,o.A)({}),p=(0,r.pM)({name:"NoFormStatus",setup(t,e){let{slots:n}=e;return d.useProvide({}),()=>{var t;return null===(t=n.default)||void 0===t?void 0:t.call(n)}}})},31825:function(t,e,n){"use strict";n.d(e,{K:function(){return c},Tc:function(){return a},nS:function(){return s},ol:function(){return u}});var r=n(73913),i=n(30246);const o=Symbol("formContextKey"),a=t=>{(0,r.Gt)(o,t)},s=()=>(0,r.WQ)(o,{name:(0,r.EW)((()=>{})),labelAlign:(0,r.EW)((()=>"right")),vertical:(0,r.EW)((()=>!1)),addField:(t,e)=>{},removeField:t=>{},model:(0,r.EW)((()=>{})),rules:(0,r.EW)((()=>{})),colon:(0,r.EW)((()=>{})),labelWrap:(0,r.EW)((()=>{})),labelCol:(0,r.EW)((()=>{})),requiredMark:(0,r.EW)((()=>!1)),validateTrigger:(0,r.EW)((()=>{})),onValidate:()=>{},validateMessages:(0,r.EW)((()=>i.y))}),l=Symbol("formItemPrefixContextKey"),u=t=>{(0,r.Gt)(l,t)},c=()=>(0,r.WQ)(l,{prefixCls:(0,r.EW)((()=>""))})},79357:function(t,e,n){"use strict";n.d(e,{Ay:function(){return zt}});n(30381);var r=n(69751),i=n(98657),o=n(73913),a=n(78753),s=n(5530),l=n(13389),u=n(18765),c=n(5068),h=n(13798),d=n(30246);function p(t){let e=!1,n=t.length;const r=[];return t.length?new Promise(((i,o)=>{t.forEach(((t,a)=>{t.catch((t=>(e=!0,t))).then((t=>{n-=1,r[a]=t,n>0||(e&&o(r),i(r))}))}))})):Promise.resolve([])}var f=n(3778),g=n(71415);function v(t){return"object"==typeof t&&null!=t&&1===t.nodeType}function m(t,e){return(!e||"hidden"!==t)&&"visible"!==t&&"clip"!==t}function y(t,e){if(t.clientHeight<t.scrollHeight||t.clientWidth<t.scrollWidth){var n=getComputedStyle(t,null);return m(n.overflowY,e)||m(n.overflowX,e)||function(t){var e=function(t){if(!t.ownerDocument||!t.ownerDocument.defaultView)return null;try{return t.ownerDocument.defaultView.frameElement}catch(t){return null}}(t);return!!e&&(e.clientHeight<t.scrollHeight||e.clientWidth<t.scrollWidth)}(t)}return!1}function b(t,e,n,r,i,o,a,s){return o<t&&a>e||o>t&&a<e?0:o<=t&&s<=n||a>=e&&s>=n?o-t-r:a>e&&s<n||o<t&&s>n?a-e+i:0}var _=function(t,e){var n=window,r=e.scrollMode,i=e.block,o=e.inline,a=e.boundary,s=e.skipOverflowHiddenElements,l="function"==typeof a?a:function(t){return t!==a};if(!v(t))throw new TypeError("Invalid target");for(var u,c,h=document.scrollingElement||document.documentElement,d=[],p=t;v(p)&&l(p);){if((p=null==(c=(u=p).parentElement)?u.getRootNode().host||null:c)===h){d.push(p);break}null!=p&&p===document.body&&y(p)&&!y(document.documentElement)||null!=p&&y(p,s)&&d.push(p)}for(var f=n.visualViewport?n.visualViewport.width:innerWidth,g=n.visualViewport?n.visualViewport.height:innerHeight,m=window.scrollX||pageXOffset,_=window.scrollY||pageYOffset,x=t.getBoundingClientRect(),w=x.height,O=x.width,S=x.top,A=x.right,k=x.bottom,C=x.left,M="start"===i||"nearest"===i?S:"end"===i?k:S+w/2,T="center"===o?C+O/2:"end"===o?A:C,P=[],I=0;I<d.length;I++){var $=d[I],E=$.getBoundingClientRect(),R=E.height,D=E.width,L=E.top,N=E.right,z=E.bottom,B=E.left;if("if-needed"===r&&S>=0&&C>=0&&k<=g&&A<=f&&S>=L&&k<=z&&C>=B&&A<=N)return P;var F=getComputedStyle($),W=parseInt(F.borderLeftWidth,10),j=parseInt(F.borderTopWidth,10),V=parseInt(F.borderRightWidth,10),Q=parseInt(F.borderBottomWidth,10),H=0,Z=0,G="offsetWidth"in $?$.offsetWidth-$.clientWidth-W-V:0,X="offsetHeight"in $?$.offsetHeight-$.clientHeight-j-Q:0,U="offsetWidth"in $?0===$.offsetWidth?0:D/$.offsetWidth:0,Y="offsetHeight"in $?0===$.offsetHeight?0:R/$.offsetHeight:0;if(h===$)H="start"===i?M:"end"===i?M-g:"nearest"===i?b(_,_+g,g,j,Q,_+M,_+M+w,w):M-g/2,Z="start"===o?T:"center"===o?T-f/2:"end"===o?T-f:b(m,m+f,f,W,V,m+T,m+T+O,O),H=Math.max(0,H+_),Z=Math.max(0,Z+m);else{H="start"===i?M-L-j:"end"===i?M-z+Q+X:"nearest"===i?b(L,z,R,j,Q+X,M,M+w,w):M-(L+R/2)+X/2,Z="start"===o?T-B-W:"center"===o?T-(B+D/2)+G/2:"end"===o?T-N+V+G:b(B,N,D,W,V+G,T,T+O,O);var q=$.scrollLeft,K=$.scrollTop;M+=K-(H=Math.max(0,Math.min(K+H/Y,$.scrollHeight-R/Y+X))),T+=q-(Z=Math.max(0,Math.min(q+Z/U,$.scrollWidth-D/U+G)))}P.push({el:$,top:H,left:Z})}return P};function x(t){return t===Object(t)&&0!==Object.keys(t).length}function w(t,e){void 0===e&&(e="auto");var n="scrollBehavior"in document.body.style;t.forEach((function(t){var r=t.el,i=t.top,o=t.left;r.scroll&&n?r.scroll({top:i,left:o,behavior:e}):(r.scrollTop=i,r.scrollLeft=o)}))}function O(t){return!1===t?{block:"end",inline:"nearest"}:x(t)?t:{block:"start",inline:"nearest"}}function S(t,e){var n=t.isConnected||t.ownerDocument.documentElement.contains(t);if(x(e)&&"function"===typeof e.behavior)return e.behavior(n?_(t,e):[]);if(n){var r=O(e);return w(_(t,r),r.behavior)}}var A=S,k=n(47960),C=n(66041),M=n(3551),T=n(31825),P=n(4908),I=n(24871),$=n(51845),E=n(3960),R=n(31044),D=n(27716),L=n(86864),N=Math.min;function z(t,e,n){var r=n?R.A:E.A,i=t[0].length,o=t.length,a=o,s=Array(o),l=1/0,u=[];while(a--){var c=t[a];a&&e&&(c=(0,I.A)(c,(0,D.A)(e))),l=N(c.length,l),s[a]=!n&&(e||i>=120&&c.length>=120)?new $.A(a&&c):void 0}c=t[0];var h=-1,d=s[0];t:while(++h<i&&u.length<l){var p=c[h],f=e?e(p):p;if(p=n||0!==p?p:0,!(d?(0,L.A)(d,f):r(u,f,n))){a=o;while(--a){var g=s[a];if(!(g?(0,L.A)(g,f):r(t[a],f,n)))continue t}d&&d.push(f),u.push(p)}}return u}var B=z,F=n(14101),W=n(3644),j=n(55629);function V(t,e){return(0,j.A)((0,W.A)(t,e,F.A),t+"")}var Q=V,H=n(58977),Z=n(24275);function G(t){return(0,Z.A)(t)&&(0,H.A)(t)}var X=G;function U(t){return X(t)?t:[]}var Y=U,q=Q((function(t){var e=(0,I.A)(t,Y);return e.length&&e[0]===t[0]?B(e):[]})),K=q,J=n(58554),tt=n(98586),et=n(71595);function nt(t){var e=null==t?0:t.length;return e?t[e-1]:void 0}var rt=nt,it=n(13267);function ot(t,e,n){var r=-1,i=t.length;e<0&&(e=-e>i?0:i+e),n=n>i?i:n,n<0&&(n+=i),i=e>n?0:n-e>>>0,e>>>=0;var o=Array(i);while(++r<i)o[r]=t[r+e];return o}var at=ot;function st(t,e){return e.length<2?t:(0,it.A)(t,at(e,0,-1))}var lt=st,ut=n(65864);function ct(t,e){return e=(0,et.A)(e,t),t=lt(t,e),null==t||delete t[(0,ut.A)(rt(e))]}var ht=ct,dt=n(34824),pt=n(77688);function ft(t){return(0,pt.A)(t)?void 0:t}var gt=ft,vt=n(45472),mt=n(75650),yt=1,bt=2,_t=4,xt=(0,vt.A)((function(t,e){var n={};if(null==t)return n;var r=!1;e=(0,I.A)(e,(function(e){return e=(0,et.A)(e,t),r||(r=e.length>1),e})),(0,dt.A)(t,(0,mt.A)(t),n),r&&(n=(0,tt.A)(n,yt|bt|_t,gt));var i=e.length;while(i--)ht(n,e[i]);return n})),wt=xt,Ot=n(92423);function St(t){let e=!1;return t&&t.length&&t.every((t=>!t.required||(e=!0,!1))),e}function At(t){return void 0===t||null===t?[]:Array.isArray(t)?t:[t]}function kt(t,e,n){let r=t;e=e.replace(/\[(\w+)\]/g,".$1"),e=e.replace(/^\./,"");const i=e.split(".");let o=0;for(let a=i.length;o<a-1;++o){if(!r&&!n)break;const t=i[o];if(!(t in r)){if(n)throw new Error("please transfer a valid name path to validate!");break}r=r[t]}return{o:r,k:i[o],v:r?r[i[o]]:null,isValid:r&&i[o]in r}}function Ct(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(0,a.KR)({}),n=arguments.length>2?arguments[2]:void 0;const r=(0,P.A)((0,a.R1)(t)),s=(0,a.Kh)({}),l=(0,a.IJ)([]),u=n=>{(0,i.A)((0,a.R1)(t),(0,i.A)((0,i.A)({},(0,P.A)(r)),n)),(0,o.dY)((()=>{Object.keys(s).forEach((t=>{s[t]={autoLink:!1,required:St((0,a.R1)(e)[t])}}))}))},c=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1?arguments[1]:void 0;return e.length?t.filter((t=>{const n=At(t.trigger||"change");return K(n,e).length})):t};let h=null;const f=function(n){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2?arguments[2]:void 0;const o=[],s={};for(let h=0;h<n.length;h++){const l=n[h],u=kt((0,a.R1)(t),l,i);if(!u.isValid)continue;s[l]=u.v;const d=c((0,a.R1)(e)[l],At(r&&r.trigger));d.length&&o.push(v(l,u.v,d,r||{}).then((()=>({name:l,errors:[],warnings:[]}))).catch((t=>{const e=[],n=[];return t.forEach((t=>{let{rule:{warningOnly:r},errors:i}=t;r?n.push(...i):e.push(...i)})),e.length?Promise.reject({name:l,errors:e,warnings:n}):{name:l,errors:e,warnings:n}})))}const l=p(o);h=l;const u=l.then((()=>h===l?Promise.resolve(s):Promise.reject([]))).catch((t=>{const e=t.filter((t=>t&&t.errors.length));return e.length?Promise.reject({values:s,errorFields:e,outOfDate:h!==l}):Promise.resolve(s)}));return u.catch((t=>t)),u},v=function(t,e,r){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const l=(0,Ot.W)([t],e,r,(0,i.A)({validateMessages:d.y},o),!!o.validateFirst);return s[t]?(s[t].validateStatus="validating",l.catch((t=>t)).then((function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];var r;if("validating"===s[t].validateStatus){const i=e.filter((t=>t&&t.errors.length));s[t].validateStatus=i.length?"error":"success",s[t].help=i.length?i.map((t=>t.errors)):null,null===(r=null===n||void 0===n?void 0:n.onValidate)||void 0===r||r.call(n,t,!i.length,i.length?(0,a.ux)(s[t].help[0]):null)}})),l):l.catch((t=>t))},m=(t,e)=>{let n=[],r=!0;t?n=Array.isArray(t)?t:[t]:(r=!1,n=l.value);const i=f(n,e||{},r);return i.catch((t=>t)),i},y=t=>{let e=[];e=t?Array.isArray(t)?t:[t]:l.value,e.forEach((t=>{s[t]&&(0,i.A)(s[t],{validateStatus:"",help:null})}))},b=t=>{const e={autoLink:!1},n=[],r=Array.isArray(t)?t:[t];for(let i=0;i<r.length;i++){const t=r[i];"error"===(null===t||void 0===t?void 0:t.validateStatus)&&(e.validateStatus="error",t.help&&n.push(t.help)),e.required=e.required||(null===t||void 0===t?void 0:t.required)}return e.help=n,e};let _=r,x=!0;const w=t=>{const e=[];l.value.forEach((r=>{const i=kt(t,r,!1),o=kt(_,r,!1),a=x&&(null===n||void 0===n?void 0:n.immediate)&&i.isValid;!a&&(0,g.A)(i.v,o.v)||e.push(r)})),m(e,{trigger:"change"}),x=!1,_=(0,P.A)((0,a.ux)(t))},O=null===n||void 0===n?void 0:n.debounce;let S=!0;return(0,o.wB)(e,(()=>{l.value=e?Object.keys((0,a.R1)(e)):[],!S&&n&&n.validateOnRuleChange&&m(),S=!1}),{deep:!0,immediate:!0}),(0,o.wB)(l,(()=>{const t={};l.value.forEach((n=>{t[n]=(0,i.A)({},s[n],{autoLink:!1,required:St((0,a.R1)(e)[n])}),delete s[n]}));for(const e in s)Object.prototype.hasOwnProperty.call(s,e)&&delete s[e];(0,i.A)(s,t)}),{immediate:!0}),(0,o.wB)(t,O&&O.wait?(0,J.A)(w,O.wait,wt(O,["wait"])):w,{immediate:n&&!!n.immediate,deep:!0}),{modelRef:t,rulesRef:e,initialModel:r,validateInfos:s,resetFields:u,validate:m,validateField:v,mergeValidateInfo:b,clearValidate:y}}var Mt=Ct,Tt=n(90551),Pt=n(327),It=n(82448),$t=n(99415);const Et=()=>({layout:s.A.oneOf((0,C.PV)("horizontal","inline","vertical")),labelCol:(0,C.ge)(),wrapperCol:(0,C.ge)(),colon:(0,C.HE)(),labelAlign:(0,C.WO)(),labelWrap:(0,C.HE)(),prefixCls:String,requiredMark:(0,C.tK)([String,Boolean]),hideRequiredMark:(0,C.HE)(),model:s.A.object,rules:(0,C.ge)(),validateMessages:(0,C.ge)(),validateOnRuleChange:(0,C.HE)(),scrollToFirstError:(0,C.ds)(),onSubmit:(0,C.Fg)(),name:String,validateTrigger:(0,C.tK)([String,Array]),size:(0,C.WO)(),disabled:(0,C.HE)(),onValuesChange:(0,C.Fg)(),onFieldsChange:(0,C.Fg)(),onFinish:(0,C.Fg)(),onFinishFailed:(0,C.Fg)(),onValidate:(0,C.Fg)()});function Rt(t,e){return(0,g.A)((0,f.$)(t),(0,f.$)(e))}const Dt=(0,o.pM)({compatConfig:{MODE:3},name:"AForm",inheritAttrs:!1,props:(0,k.A)(Et(),{layout:"horizontal",hideRequiredMark:!1,colon:!0}),Item:c.A,useForm:Mt,setup(t,e){let{emit:n,slots:s,expose:c,attrs:g}=e;const{prefixCls:v,direction:m,form:y,size:b,disabled:_}=(0,M.A)("form",t),x=(0,o.EW)((()=>""===t.requiredMark||t.requiredMark)),w=(0,o.EW)((()=>{var e;return void 0!==x.value?x.value:y&&void 0!==(null===(e=y.value)||void 0===e?void 0:e.requiredMark)?y.value.requiredMark:!t.hideRequiredMark}));(0,It.A)(b),(0,$t.Z)(_);const O=(0,o.EW)((()=>{var e,n;return null!==(e=t.colon)&&void 0!==e?e:null===(n=y.value)||void 0===n?void 0:n.colon})),{validateMessages:S}=(0,Tt.M7)(),k=(0,o.EW)((()=>(0,i.A)((0,i.A)((0,i.A)({},d.y),S.value),t.validateMessages))),[C,P]=(0,Pt.A)(v),I=(0,o.EW)((()=>(0,l.A)(v.value,{[`${v.value}-${t.layout}`]:!0,[`${v.value}-hide-required-mark`]:!1===w.value,[`${v.value}-rtl`]:"rtl"===m.value,[`${v.value}-${b.value}`]:b.value},P.value))),$=(0,a.KR)(),E={},R=(t,e)=>{E[t]=e},D=t=>{delete E[t]},L=t=>{const e=!!t,n=e?(0,f.$)(t).map(h.XK):[];return e?Object.values(E).filter((t=>n.findIndex((e=>Rt(e,t.fieldName.value)))>-1)):Object.values(E)},N=e=>{t.model?L(e).forEach((t=>{t.resetField()})):(0,u.Ay)(!1,"Form","model is required for resetFields to work.")},z=t=>{L(t).forEach((t=>{t.clearValidate()}))},B=e=>{const{scrollToFirstError:r}=t;if(n("finishFailed",e),r&&e.errorFields.length){let t={};"object"===typeof r&&(t=r),W(e.errorFields[0].name,t)}},F=function(){return Q(...arguments)},W=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=L(t?[t]:void 0);if(n.length){const t=n[0].fieldId.value,r=t?document.getElementById(t):null;r&&A(r,(0,i.A)({scrollMode:"if-needed",block:"nearest"},e))}},j=function(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(!0===e){const e=[];return Object.values(E).forEach((t=>{let{namePath:n}=t;e.push(n.value)})),(0,h.fm)(t.model,e)}return(0,h.fm)(t.model,e)},V=(e,n)=>{if((0,u.Ay)(!(e instanceof Function),"Form","validateFields/validateField/validate not support callback, please use promise instead"),!t.model)return(0,u.Ay)(!1,"Form","model is required for validateFields to work."),Promise.reject("Form `model` is required for validateFields to work.");const r=!!e,o=r?(0,f.$)(e).map(h.XK):[],a=[];Object.values(E).forEach((t=>{var e;if(r||o.push(t.namePath.value),!(null===(e=t.rules)||void 0===e?void 0:e.value.length))return;const s=t.namePath.value;if(!r||(0,h.Ah)(o,s)){const e=t.validateRules((0,i.A)({validateMessages:k.value},n));a.push(e.then((()=>({name:s,errors:[],warnings:[]}))).catch((t=>{const e=[],n=[];return t.forEach((t=>{let{rule:{warningOnly:r},errors:i}=t;r?n.push(...i):e.push(...i)})),e.length?Promise.reject({name:s,errors:e,warnings:n}):{name:s,errors:e,warnings:n}})))}}));const s=p(a);$.value=s;const l=s.then((()=>$.value===s?Promise.resolve(j(o)):Promise.reject([]))).catch((t=>{const e=t.filter((t=>t&&t.errors.length));return Promise.reject({values:j(o),errorFields:e,outOfDate:$.value!==s})}));return l.catch((t=>t)),l},Q=function(){return V(...arguments)},H=e=>{if(e.preventDefault(),e.stopPropagation(),n("submit",e),t.model){const t=V();t.then((t=>{n("finish",t)})).catch((t=>{B(t)}))}};return c({resetFields:N,clearValidate:z,validateFields:V,getFieldsValue:j,validate:F,scrollToField:W}),(0,T.Tc)({model:(0,o.EW)((()=>t.model)),name:(0,o.EW)((()=>t.name)),labelAlign:(0,o.EW)((()=>t.labelAlign)),labelCol:(0,o.EW)((()=>t.labelCol)),labelWrap:(0,o.EW)((()=>t.labelWrap)),wrapperCol:(0,o.EW)((()=>t.wrapperCol)),vertical:(0,o.EW)((()=>"vertical"===t.layout)),colon:O,requiredMark:w,validateTrigger:(0,o.EW)((()=>t.validateTrigger)),rules:(0,o.EW)((()=>t.rules)),addField:R,removeField:D,onValidate:(t,e,r)=>{n("validate",t,e,r)},validateMessages:k}),(0,o.wB)((()=>t.rules),(()=>{t.validateOnRuleChange&&V()})),()=>{var t;return C((0,o.bF)("form",(0,r.A)((0,r.A)({},g),{},{onSubmit:H,class:[I.value,g.class]}),[null===(t=s.default)||void 0===t?void 0:t.call(s)]))}}});var Lt=Dt,Nt=n(35162);Lt.useInjectFormItemContext=Nt.db,Lt.ItemRest=Nt.Ay,Lt.install=function(t){return t.component(Lt.name,Lt),t.component(Lt.Item.name,Lt.Item),t.component(Nt.Ay.name,Nt.Ay),t};var zt=Lt},327:function(t,e,n){"use strict";n.d(e,{A:function(){return _}});var r=n(98657),i=n(41781),o=n(86049),a=n(94471),s=n(96704),l=n(69729);const u=t=>{const{componentCls:e}=t,n=`${e}-show-help`,r=`${e}-show-help-item`;return{[n]:{transition:`opacity ${t.motionDurationSlow} ${t.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[r]:{overflow:"hidden",transition:`height ${t.motionDurationSlow} ${t.motionEaseInOut},\n opacity ${t.motionDurationSlow} ${t.motionEaseInOut},\n transform ${t.motionDurationSlow} ${t.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 h=t=>({legend:{display:"block",width:"100%",marginBottom:t.marginLG,padding:0,color:t.colorTextDescription,fontSize:t.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${t.lineWidth}px ${t.lineType} ${t.colorBorder}`},label:{fontSize:t.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 ${t.controlOutlineWidth}px ${t.controlOutline}`},output:{display:"block",paddingTop:15,color:t.colorText,fontSize:t.fontSize,lineHeight:t.lineHeight}}),d=(t,e)=>{const{formItemCls:n}=t;return{[n]:{[`${n}-label > label`]:{height:e},[`${n}-control-input`]:{minHeight:e}}}},p=t=>{const{componentCls:e}=t;return{[t.componentCls]:(0,r.A)((0,r.A)((0,r.A)({},(0,l.dF)(t)),h(t)),{[`${e}-text`]:{display:"inline-block",paddingInlineEnd:t.paddingSM},"&-small":(0,r.A)({},d(t,t.controlHeightSM)),"&-large":(0,r.A)({},d(t,t.controlHeightLG))})}},f=t=>{const{formItemCls:e,iconCls:n,componentCls:o,rootPrefixCls:a}=t;return{[e]:(0,r.A)((0,r.A)({},(0,l.dF)(t)),{marginBottom:t.marginLG,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden,\n &-hidden.${a}-row`]:{display:"none"},"&-has-warning":{[`${e}-split`]:{color:t.colorError}},"&-has-error":{[`${e}-split`]:{color:t.colorWarning}},[`${e}-label`]:{display:"inline-block",flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:`${t.lineHeight} - 0.25em`,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:t.controlHeight,color:t.colorTextHeading,fontSize:t.fontSize,[`> ${n}`]:{fontSize:t.fontSize,verticalAlign:"top"},[`&${e}-required:not(${e}-required-mark-optional)::before`]:{display:"inline-block",marginInlineEnd:t.marginXXS,color:t.colorError,fontSize:t.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"',[`${o}-hide-required-mark &`]:{display:"none"}},[`${e}-optional`]:{display:"inline-block",marginInlineStart:t.marginXXS,color:t.colorTextDescription,[`${o}-hide-required-mark &`]:{display:"none"}},[`${e}-tooltip`]:{color:t.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:t.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:t.marginXXS/2,marginInlineEnd:t.marginXS},[`&${e}-no-colon::after`]:{content:'" "'}}},[`${e}-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:t.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[e]:{"&-explain, &-extra":{clear:"both",color:t.colorTextDescription,fontSize:t.fontSize,lineHeight:t.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:t.controlHeightSM,transition:`color ${t.motionDurationMid} ${t.motionEaseOut}`},"&-explain":{"&-error":{color:t.colorError},"&-warning":{color:t.colorWarning}}},[`&-with-help ${e}-explain`]:{height:"auto",opacity:1},[`${e}-feedback-icon`]:{fontSize:t.fontSize,textAlign:"center",visibility:"visible",animationName:i.nF,animationDuration:t.motionDurationMid,animationTimingFunction:t.motionEaseOutBack,pointerEvents:"none","&-success":{color:t.colorSuccess},"&-error":{color:t.colorError},"&-warning":{color:t.colorWarning},"&-validating":{color:t.colorPrimary}}})}},g=t=>{const{componentCls:e,formItemCls:n,rootPrefixCls:r}=t;return{[`${e}-horizontal`]:{[`${n}-label`]:{flexGrow:0},[`${n}-control`]:{flex:"1 1 0",minWidth:0},[`${n}-label.${r}-col-24 + ${n}-control`]:{minWidth:"unset"}}}},v=t=>{const{componentCls:e,formItemCls:n}=t;return{[`${e}-inline`]:{display:"flex",flexWrap:"wrap",[n]:{flex:"none",flexWrap:"nowrap",marginInlineEnd:t.margin,marginBottom:0,"&-with-help":{marginBottom:t.marginLG},[`> ${n}-label,\n > ${n}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${n}-label`]:{flex:"none"},[`${e}-text`]:{display:"inline-block"},[`${n}-has-feedback`]:{display:"inline-block"}}}}},m=t=>({margin:0,padding:`0 0 ${t.paddingXS}px`,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{display:"none"}}}),y=t=>{const{componentCls:e,formItemCls:n}=t;return{[`${n} ${n}-label`]:m(t),[e]:{[n]:{flexWrap:"wrap",[`${n}-label,\n ${n}-control`]:{flex:"0 0 100%",maxWidth:"100%"}}}}},b=t=>{const{componentCls:e,formItemCls:n,rootPrefixCls:r}=t;return{[`${e}-vertical`]:{[n]:{"&-row":{flexDirection:"column"},"&-label > label":{height:"auto"},[`${e}-item-control`]:{width:"100%"}}},[`${e}-vertical ${n}-label,\n .${r}-col-24${n}-label,\n .${r}-col-xl-24${n}-label`]:m(t),[`@media (max-width: ${t.screenXSMax}px)`]:[y(t),{[e]:{[`.${r}-col-xs-24${n}-label`]:m(t)}}],[`@media (max-width: ${t.screenSMMax}px)`]:{[e]:{[`.${r}-col-sm-24${n}-label`]:m(t)}},[`@media (max-width: ${t.screenMDMax}px)`]:{[e]:{[`.${r}-col-md-24${n}-label`]:m(t)}},[`@media (max-width: ${t.screenLGMax}px)`]:{[e]:{[`.${r}-col-lg-24${n}-label`]:m(t)}}}};var _=(0,a.A)("Form",((t,e)=>{let{rootPrefixCls:n}=e;const r=(0,s.h1)(t,{formItemCls:`${t.componentCls}-item`,rootPrefixCls:n});return[p(r),f(r),c(r),g(r),v(r),b(r),(0,o.A)(r),i.nF]}))},30246:function(t,e,n){"use strict";n.d(e,{y:function(){return i}});const r="'${name}' is not a valid ${type}",i={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(t,e,n){"use strict";function r(t){return void 0===t||null===t?[]:Array.isArray(t)?t:[t]}n.d(e,{$:function(){return r}})},92423:function(t,e,n){"use strict";n.d(e,{W:function(){return ft}});var r=n(98657);n(30381);function i(){return i=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},i.apply(this,arguments)}function o(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,s(t,e)}function a(t){return a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},a(t)}function s(t,e){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},s(t,e)}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(t){return!1}}function u(t,e,n){return u=l()?Reflect.construct.bind():function(t,e,n){var r=[null];r.push.apply(r,e);var i=Function.bind.apply(t,r),o=new i;return n&&s(o,n.prototype),o},u.apply(null,arguments)}function c(t){return-1!==Function.toString.call(t).indexOf("[native code]")}function h(t){var e="function"===typeof Map?new Map:void 0;return h=function(t){if(null===t||!c(t))return t;if("function"!==typeof t)throw new TypeError("Super expression must either be null or a function");if("undefined"!==typeof e){if(e.has(t))return e.get(t);e.set(t,n)}function n(){return u(t,arguments,a(this).constructor)}return n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),s(n,t)},h(t)}var d=/%[sdj%]/g,p=function(){};function f(t){if(!t||!t.length)return null;var e={};return t.forEach((function(t){var n=t.field;e[n]=e[n]||[],e[n].push(t)})),e}function g(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];var i=0,o=n.length;if("function"===typeof t)return t.apply(null,n);if("string"===typeof t){var a=t.replace(d,(function(t){if("%%"===t)return"%";if(i>=o)return t;switch(t){case"%s":return String(n[i++]);case"%d":return Number(n[i++]);case"%j":try{return JSON.stringify(n[i++])}catch(e){return"[Circular]"}break;default:return t}}));return a}return t}function v(t){return"string"===t||"url"===t||"hex"===t||"email"===t||"date"===t||"pattern"===t}function m(t,e){return void 0===t||null===t||(!("array"!==e||!Array.isArray(t)||t.length)||!(!v(e)||"string"!==typeof t||t))}function y(t,e,n){var r=[],i=0,o=t.length;function a(t){r.push.apply(r,t||[]),i++,i===o&&n(r)}t.forEach((function(t){e(t,a)}))}function b(t,e,n){var r=0,i=t.length;function o(a){if(a&&a.length)n(a);else{var s=r;r+=1,s<i?e(t[s],o):n([])}}o([])}function _(t){var e=[];return Object.keys(t).forEach((function(n){e.push.apply(e,t[n]||[])})),e}var x=function(t){function e(e,n){var r;return r=t.call(this,"Async Validation Error")||this,r.errors=e,r.fields=n,r}return o(e,t),e}(h(Error));function w(t,e,n,r,i){if(e.first){var o=new Promise((function(e,o){var a=function(t){return r(t),t.length?o(new x(t,f(t))):e(i)},s=_(t);b(s,n,a)}));return o["catch"]((function(t){return t})),o}var a=!0===e.firstFields?Object.keys(t):e.firstFields||[],s=Object.keys(t),l=s.length,u=0,c=[],h=new Promise((function(e,o){var h=function(t){if(c.push.apply(c,t),u++,u===l)return r(c),c.length?o(new x(c,f(c))):e(i)};s.length||(r(c),e(i)),s.forEach((function(e){var r=t[e];-1!==a.indexOf(e)?b(r,n,h):y(r,n,h)}))}));return h["catch"]((function(t){return t})),h}function O(t){return!(!t||void 0===t.message)}function S(t,e){for(var n=t,r=0;r<e.length;r++){if(void 0==n)return n;n=n[e[r]]}return n}function A(t,e){return function(n){var r;return r=t.fullFields?S(e,t.fullFields):e[n.field||t.fullField],O(n)?(n.field=n.field||t.fullField,n.fieldValue=r,n):{message:"function"===typeof n?n():n,fieldValue:r,field:n.field||t.fullField}}}function k(t,e){if(e)for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];"object"===typeof r&&"object"===typeof t[n]?t[n]=i({},t[n],r):t[n]=r}return t}var C,M=function(t,e,n,r,i,o){!t.required||n.hasOwnProperty(t.field)&&!m(e,o||t.type)||r.push(g(i.messages.required,t.fullField))},T=function(t,e,n,r,i){(/^\s+$/.test(e)||""===e)&&r.push(g(i.messages.whitespace,t.fullField))},P=function(){if(C)return C;var t="[a-fA-F\\d:]",e=function(e){return e&&e.includeBoundaries?"(?:(?<=\\s|^)(?="+t+")|(?<="+t+")(?=\\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}",i=("\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(),o=new RegExp("(?:^"+n+"$)|(?:^"+i+"$)"),a=new RegExp("^"+n+"$"),s=new RegExp("^"+i+"$"),l=function(t){return t&&t.exact?o:new RegExp("(?:"+e(t)+n+e(t)+")|(?:"+e(t)+i+e(t)+")","g")};l.v4=function(t){return t&&t.exact?a:new RegExp(""+e(t)+n+e(t),"g")},l.v6=function(t){return t&&t.exact?s:new RegExp(""+e(t)+i+e(t),"g")};var u="(?:(?:[a-z]+:)?//)",c="(?:\\S+(?::\\S*)?@)?",h=l.v4().source,d=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,}))",v="(?::\\d{2,5})?",m='(?:[/?#][^\\s"]*)?',y="(?:"+u+"|www\\.)"+c+"(?:localhost|"+h+"|"+d+"|"+p+f+g+")"+v+m;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(t){return $.number(t)&&parseInt(t,10)===t},float:function(t){return $.number(t)&&!$.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch(e){return!1}},date:function(t){return"function"===typeof t.getTime&&"function"===typeof t.getMonth&&"function"===typeof t.getYear&&!isNaN(t.getTime())},number:function(t){return!isNaN(t)&&"number"===typeof t},object:function(t){return"object"===typeof t&&!$.array(t)},method:function(t){return"function"===typeof t},email:function(t){return"string"===typeof t&&t.length<=320&&!!t.match(I.email)},url:function(t){return"string"===typeof t&&t.length<=2048&&!!t.match(P())},hex:function(t){return"string"===typeof t&&!!t.match(I.hex)}},E=function(t,e,n,r,i){if(t.required&&void 0===e)M(t,e,n,r,i);else{var o=["integer","float","array","regexp","object","method","email","number","date","url","hex"],a=t.type;o.indexOf(a)>-1?$[a](e)||r.push(g(i.messages.types[a],t.fullField,t.type)):a&&typeof e!==t.type&&r.push(g(i.messages.types[a],t.fullField,t.type))}},R=function(t,e,n,r,i){var o="number"===typeof t.len,a="number"===typeof t.min,s="number"===typeof t.max,l=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,u=e,c=null,h="number"===typeof e,d="string"===typeof e,p=Array.isArray(e);if(h?c="number":d?c="string":p&&(c="array"),!c)return!1;p&&(u=e.length),d&&(u=e.replace(l,"_").length),o?u!==t.len&&r.push(g(i.messages[c].len,t.fullField,t.len)):a&&!s&&u<t.min?r.push(g(i.messages[c].min,t.fullField,t.min)):s&&!a&&u>t.max?r.push(g(i.messages[c].max,t.fullField,t.max)):a&&s&&(u<t.min||u>t.max)&&r.push(g(i.messages[c].range,t.fullField,t.min,t.max))},D="enum",L=function(t,e,n,r,i){t[D]=Array.isArray(t[D])?t[D]:[],-1===t[D].indexOf(e)&&r.push(g(i.messages[D],t.fullField,t[D].join(", ")))},N=function(t,e,n,r,i){if(t.pattern)if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(e)||r.push(g(i.messages.pattern.mismatch,t.fullField,e,t.pattern));else if("string"===typeof t.pattern){var o=new RegExp(t.pattern);o.test(e)||r.push(g(i.messages.pattern.mismatch,t.fullField,e,t.pattern))}},z={required:M,whitespace:T,type:E,range:R,enum:L,pattern:N},B=function(t,e,n,r,i){var o=[],a=t.required||!t.required&&r.hasOwnProperty(t.field);if(a){if(m(e,"string")&&!t.required)return n();z.required(t,e,r,o,i,"string"),m(e,"string")||(z.type(t,e,r,o,i),z.range(t,e,r,o,i),z.pattern(t,e,r,o,i),!0===t.whitespace&&z.whitespace(t,e,r,o,i))}n(o)},F=function(t,e,n,r,i){var o=[],a=t.required||!t.required&&r.hasOwnProperty(t.field);if(a){if(m(e)&&!t.required)return n();z.required(t,e,r,o,i),void 0!==e&&z.type(t,e,r,o,i)}n(o)},W=function(t,e,n,r,i){var o=[],a=t.required||!t.required&&r.hasOwnProperty(t.field);if(a){if(""===e&&(e=void 0),m(e)&&!t.required)return n();z.required(t,e,r,o,i),void 0!==e&&(z.type(t,e,r,o,i),z.range(t,e,r,o,i))}n(o)},j=function(t,e,n,r,i){var o=[],a=t.required||!t.required&&r.hasOwnProperty(t.field);if(a){if(m(e)&&!t.required)return n();z.required(t,e,r,o,i),void 0!==e&&z.type(t,e,r,o,i)}n(o)},V=function(t,e,n,r,i){var o=[],a=t.required||!t.required&&r.hasOwnProperty(t.field);if(a){if(m(e)&&!t.required)return n();z.required(t,e,r,o,i),m(e)||z.type(t,e,r,o,i)}n(o)},Q=function(t,e,n,r,i){var o=[],a=t.required||!t.required&&r.hasOwnProperty(t.field);if(a){if(m(e)&&!t.required)return n();z.required(t,e,r,o,i),void 0!==e&&(z.type(t,e,r,o,i),z.range(t,e,r,o,i))}n(o)},H=function(t,e,n,r,i){var o=[],a=t.required||!t.required&&r.hasOwnProperty(t.field);if(a){if(m(e)&&!t.required)return n();z.required(t,e,r,o,i),void 0!==e&&(z.type(t,e,r,o,i),z.range(t,e,r,o,i))}n(o)},Z=function(t,e,n,r,i){var o=[],a=t.required||!t.required&&r.hasOwnProperty(t.field);if(a){if((void 0===e||null===e)&&!t.required)return n();z.required(t,e,r,o,i,"array"),void 0!==e&&null!==e&&(z.type(t,e,r,o,i),z.range(t,e,r,o,i))}n(o)},G=function(t,e,n,r,i){var o=[],a=t.required||!t.required&&r.hasOwnProperty(t.field);if(a){if(m(e)&&!t.required)return n();z.required(t,e,r,o,i),void 0!==e&&z.type(t,e,r,o,i)}n(o)},X="enum",U=function(t,e,n,r,i){var o=[],a=t.required||!t.required&&r.hasOwnProperty(t.field);if(a){if(m(e)&&!t.required)return n();z.required(t,e,r,o,i),void 0!==e&&z[X](t,e,r,o,i)}n(o)},Y=function(t,e,n,r,i){var o=[],a=t.required||!t.required&&r.hasOwnProperty(t.field);if(a){if(m(e,"string")&&!t.required)return n();z.required(t,e,r,o,i),m(e,"string")||z.pattern(t,e,r,o,i)}n(o)},q=function(t,e,n,r,i){var o=[],a=t.required||!t.required&&r.hasOwnProperty(t.field);if(a){if(m(e,"date")&&!t.required)return n();var s;if(z.required(t,e,r,o,i),!m(e,"date"))s=e instanceof Date?e:new Date(e),z.type(t,s,r,o,i),s&&z.range(t,s.getTime(),r,o,i)}n(o)},K=function(t,e,n,r,i){var o=[],a=Array.isArray(e)?"array":typeof e;z.required(t,e,r,o,i,a),n(o)},J=function(t,e,n,r,i){var o=t.type,a=[],s=t.required||!t.required&&r.hasOwnProperty(t.field);if(s){if(m(e,o)&&!t.required)return n();z.required(t,e,r,a,i,o),m(e,o)||z.type(t,e,r,a,i)}n(a)},tt=function(t,e,n,r,i){var o=[],a=t.required||!t.required&&r.hasOwnProperty(t.field);if(a){if(m(e)&&!t.required)return n();z.required(t,e,r,o,i)}n(o)},et={string:B,method:F,number:W,boolean:j,regexp:V,integer:Q,float:H,array:Z,object:G,enum:U,pattern:Y,date:q,url:J,hex:J,email:J,required:K,any:tt};function nt(){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 t=JSON.parse(JSON.stringify(this));return t.clone=this.clone,t}}}var rt=nt(),it=function(){function t(t){this.rules=null,this._messages=rt,this.define(t)}var e=t.prototype;return e.define=function(t){var e=this;if(!t)throw new Error("Cannot configure a schema with no rules");if("object"!==typeof t||Array.isArray(t))throw new Error("Rules must be an object");this.rules={},Object.keys(t).forEach((function(n){var r=t[n];e.rules[n]=Array.isArray(r)?r:[r]}))},e.messages=function(t){return t&&(this._messages=k(nt(),t)),this._messages},e.validate=function(e,n,r){var o=this;void 0===n&&(n={}),void 0===r&&(r=function(){});var a=e,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(t){var e=[],n={};function r(t){var n;Array.isArray(t)?e=(n=e).concat.apply(n,t):e.push(t)}for(var i=0;i<t.length;i++)r(t[i]);e.length?(n=f(e),l(e,n)):l(null,a)}if(s.messages){var c=this.messages();c===rt&&(c=nt()),k(c,s.messages),s.messages=c}else s.messages=this.messages();var h={},d=s.keys||Object.keys(this.rules);d.forEach((function(t){var n=o.rules[t],r=a[t];n.forEach((function(n){var s=n;"function"===typeof s.transform&&(a===e&&(a=i({},a)),r=a[t]=s.transform(r)),s="function"===typeof s?{validator:s}:i({},s),s.validator=o.getValidationMethod(s),s.validator&&(s.field=t,s.fullField=s.fullField||t,s.type=o.getType(s),h[t]=h[t]||[],h[t].push({rule:s,value:r,source:a,field:t}))}))}));var p={};return w(h,s,(function(e,n){var r,o=e.rule,l=("object"===o.type||"array"===o.type)&&("object"===typeof o.fields||"object"===typeof o.defaultField);function u(t,e){return i({},e,{fullField:o.fullField+"."+t,fullFields:o.fullFields?[].concat(o.fullFields,[t]):[t]})}function c(r){void 0===r&&(r=[]);var c=Array.isArray(r)?r:[r];!s.suppressWarning&&c.length&&t.warning("async-validator:",c),c.length&&void 0!==o.message&&(c=[].concat(o.message));var h=c.map(A(o,a));if(s.first&&h.length)return p[o.field]=1,n(h);if(l){if(o.required&&!e.value)return void 0!==o.message?h=[].concat(o.message).map(A(o,a)):s.error&&(h=[s.error(o,g(s.messages.required,o.field))]),n(h);var d={};o.defaultField&&Object.keys(e.value).map((function(t){d[t]=o.defaultField})),d=i({},d,e.rule.fields);var f={};Object.keys(d).forEach((function(t){var e=d[t],n=Array.isArray(e)?e:[e];f[t]=n.map(u.bind(null,t))}));var v=new t(f);v.messages(s.messages),e.rule.options&&(e.rule.options.messages=s.messages,e.rule.options.error=s.error),v.validate(e.value,e.rule.options||s,(function(t){var e=[];h&&h.length&&e.push.apply(e,h),t&&t.length&&e.push.apply(e,t),n(e.length?e:null)}))}else n(h)}if(l=l&&(o.required||!o.required&&e.value),o.field=e.field,o.asyncValidator)r=o.asyncValidator(o,e.value,c,e.source,s);else if(o.validator){try{r=o.validator(o,e.value,c,e.source,s)}catch(h){null==console.error||console.error(h),s.suppressValidatorError||setTimeout((function(){throw h}),0),c(h.message)}!0===r?c():!1===r?c("function"===typeof o.message?o.message(o.fullField||o.field):o.message||(o.fullField||o.field)+" fails"):r instanceof Array?c(r):r instanceof Error&&c(r.message)}r&&r.then&&r.then((function(){return c()}),(function(t){return c(t)}))}),(function(t){u(t)}),a)},e.getType=function(t){if(void 0===t.type&&t.pattern instanceof RegExp&&(t.type="pattern"),"function"!==typeof t.validator&&t.type&&!et.hasOwnProperty(t.type))throw new Error(g("Unknown rule type %s",t.type));return t.type||"string"},e.getValidationMethod=function(t){if("function"===typeof t.validator)return t.validator;var e=Object.keys(t),n=e.indexOf("message");return-1!==n&&e.splice(n,1),1===e.length&&"required"===e[0]?et.required:et[this.getType(t)]||void 0},t}();it.register=function(t,e){if("function"!==typeof e)throw new Error("Cannot register a validator by type, validator is not a function");et[t]=e},it.warning=p,it.messages=rt,it.validators=et;var ot=n(73913),at=n(52002),st=n(13798),lt=n(30246),ut=n(16155),ct=function(t,e,n,r){function i(t){return t instanceof n?t:new n((function(e){e(t)}))}return new(n||(n=Promise))((function(n,o){function a(t){try{l(r.next(t))}catch(e){o(e)}}function s(t){try{l(r["throw"](t))}catch(e){o(e)}}function l(t){t.done?n(t.value):i(t.value).then(a,s)}l((r=r.apply(t,e||[])).next())}))};const ht=it;function dt(t,e){return t.replace(/\$\{\w+\}/g,(t=>{const n=t.slice(2,-1);return e[n]}))}function pt(t,e,n,i,o){return ct(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 ht({[t]:[a]}),u=(0,st.VI)({},lt.y,i.validateMessages);l.messages(u);let c=[];try{yield Promise.resolve(l.validate({[t]:e},(0,r.A)({},i)))}catch(p){p.errors?c=p.errors.map(((t,e)=>{let{message:n}=t;return(0,ut.zO)(n)?(0,ot.E3)(n,{key:`error_${e}`}):n})):(console.error(p),c=[u.default()])}if(!c.length&&s){const n=yield Promise.all(e.map(((e,n)=>pt(`${t}.${n}`,e,s,i,o))));return n.reduce(((t,e)=>[...t,...e]),[])}const h=(0,r.A)((0,r.A)((0,r.A)({},n),{name:t,enum:(n.enum||[]).join(", ")}),o),d=c.map((t=>"string"===typeof t?dt(t,h):t));return d}))}function ft(t,e,n,i,o,a){const s=t.join("."),l=n.map(((t,e)=>{const n=t.validator,i=(0,r.A)((0,r.A)({},t),{ruleIndex:e});return n&&(i.validator=(t,e,r)=>{let i=!1;const o=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];Promise.resolve().then((()=>{(0,at.$e)(!i,"Your validator function has already return a promise. `callback` will be ignored."),i||r(...e)}))},a=n(t,e,o);i=a&&"function"===typeof a.then&&"function"===typeof a.catch,(0,at.$e)(i,"`callback` is deprecated. Please return a promise instead."),i&&a.then((()=>{r()})).catch((t=>{r(t||" ")}))}),i})).sort(((t,e)=>{let{warningOnly:n,ruleIndex:r}=t,{warningOnly:i,ruleIndex:o}=e;return!!n===!!i?r-o:n?1:-1}));let u;if(!0===o)u=new Promise(((t,n)=>ct(this,void 0,void 0,(function*(){for(let t=0;t<l.length;t+=1){const r=l[t],o=yield pt(s,e,r,i,a);if(o.length)return void n([{errors:o,rule:r}])}t([])}))));else{const t=l.map((t=>pt(s,e,t,i,a).then((e=>({errors:e,rule:t})))));u=(o?vt(t):gt(t)).then((t=>Promise.reject(t)))}return u.catch((t=>t)),u}function gt(t){return ct(this,void 0,void 0,(function*(){return Promise.all(t).then((t=>{const e=[].concat(...t);return e}))}))}function vt(t){return ct(this,void 0,void 0,(function*(){let e=0;return new Promise((n=>{t.forEach((r=>{r.then((r=>{r.errors.length&&n([r]),e+=1,e===t.length&&n([])}))}))}))}))}},13798:function(t,e,n){"use strict";n.d(e,{fm:function(){return g},Ah:function(){return h},XK:function(){return l},VI:function(){return f}});var r=n(98657),i=n(3778);function o(t,e){let n=t;for(let r=0;r<e.length;r+=1){if(null===n||void 0===n)return;n=n[e[r]]}return n}function a(t,e,n,i){if(!e.length)return n;const[o,...s]=e;let l;return l=t||"number"!==typeof o?Array.isArray(t)?[...t]:(0,r.A)({},t):[],i&&void 0===n&&1===s.length?delete l[o][s[0]]:l[o]=a(l[o],s,n,i),l}function s(t,e,n){let r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return e.length&&r&&void 0===n&&!o(t,e.slice(0,-1))?t:a(t,e,n,r)}function l(t){return(0,i.$)(t)}function u(t,e){const n=o(t,e);return n}function c(t,e,n){let r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];const i=s(t,e,n,r);return i}function h(t,e){return t&&t.some((t=>v(t,e)))}function d(t){return"object"===typeof t&&null!==t&&Object.getPrototypeOf(t)===Object.prototype}function p(t,e){const n=Array.isArray(t)?[...t]:(0,r.A)({},t);return e?(Object.keys(e).forEach((t=>{const r=n[t],i=e[t],o=d(r)&&d(i);n[t]=o?p(r,i||{}):i})),n):n}function f(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];return n.reduce(((t,e)=>p(t,e)),t)}function g(t,e){let n={};return e.forEach((e=>{const r=u(t,e);n=c(n,e,r)})),n}function v(t,e){return!(!t||!e||t.length!==e.length)&&t.every(((t,n)=>e[n]===t))}},26347:function(t,e,n){"use strict";n.d(e,{A:function(){return lt}});var r=n(69751),i=n(98657),o=n(73913),a=n(78753),s=n(13389),l={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"},u=l,c=n(29847);function h(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?Object(arguments[e]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),r.forEach((function(e){d(t,e,n[e])}))}return t}function d(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var p=function(t,e){var n=h({},t,e.attrs);return(0,o.bF)(c.A,h({},n,{icon:u}),null)};p.displayName="UpOutlined",p.inheritAttrs=!1;var f=p,g=n(27577);function v(){return"function"===typeof BigInt}function m(t){let e=t.trim(),n=e.startsWith("-");n&&(e=e.slice(1)),e=e.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,""),e.startsWith(".")&&(e=`0${e}`);const r=e||"0",i=r.split("."),o=i[0]||"0",a=i[1]||"0";"0"===o&&"0"===a&&(n=!1);const s=n?"-":"";return{negative:n,negativeStr:s,trimStr:r,integerStr:o,decimalStr:a,fullStr:`${s}${r}`}}function y(t){const e=String(t);return!Number.isNaN(Number(e))&&e.includes("e")}function b(t){const e=String(t);if(y(t)){let t=Number(e.slice(e.indexOf("e-")+2));const n=e.match(/\.(\d+)/);return(null===n||void 0===n?void 0:n[1])&&(t+=n[1].length),t}return e.includes(".")&&x(e)?e.length-e.indexOf(".")-1:0}function _(t){let e=String(t);if(y(t)){if(t>Number.MAX_SAFE_INTEGER)return String(v()?BigInt(t).toString():Number.MAX_SAFE_INTEGER);if(t<Number.MIN_SAFE_INTEGER)return String(v()?BigInt(t).toString():Number.MIN_SAFE_INTEGER);e=t.toFixed(b(e))}return m(e).fullStr}function x(t){return"number"===typeof t?!Number.isNaN(t):!!t&&(/^\s*-?\d+(\.\d+)?\s*$/.test(t)||/^\s*-?\d+\.\s*$/.test(t)||/^\s*-?\.\d+\s*$/.test(t))}function w(t){return!t&&0!==t&&!Number.isNaN(t)||!String(t).trim()}class O{constructor(t){this.origin="",w(t)?this.empty=!0:(this.origin=String(t),this.number=Number(t))}negate(){return new O(-this.toNumber())}add(t){if(this.isInvalidate())return new O(t);const e=Number(t);if(Number.isNaN(e))return this;const n=this.number+e;if(n>Number.MAX_SAFE_INTEGER)return new O(Number.MAX_SAFE_INTEGER);if(n<Number.MIN_SAFE_INTEGER)return new O(Number.MIN_SAFE_INTEGER);const r=Math.max(b(this.number),b(e));return new O(n.toFixed(r))}isEmpty(){return this.empty}isNaN(){return Number.isNaN(this.number)}isInvalidate(){return this.isEmpty()||this.isNaN()}equals(t){return this.toNumber()===(null===t||void 0===t?void 0:t.toNumber())}lessEquals(t){return this.add(t.negate().toString()).toNumber()<=0}toNumber(){return this.number}toString(){let t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return t?this.isInvalidate()?"":_(this.number):this.origin}}class S{constructor(t){if(this.origin="",w(t))return void(this.empty=!0);if(this.origin=String(t),"-"===t||Number.isNaN(t))return void(this.nan=!0);let e=t;if(y(e)&&(e=Number(e)),e="string"===typeof e?e:_(e),x(e)){const t=m(e);this.negative=t.negative;const n=t.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(t){const e=`${this.getMark()}${this.getIntegerStr()}${this.getDecimalStr().padEnd(t,"0")}`;return BigInt(e)}negate(){const t=new S(this.toString());return t.negative=!t.negative,t}add(t){if(this.isInvalidate())return new S(t);const e=new S(t);if(e.isInvalidate())return this;const n=Math.max(this.getDecimalStr().length,e.getDecimalStr().length),r=this.alignDecimal(n),i=e.alignDecimal(n),o=(r+i).toString(),{negativeStr:a,trimStr:s}=m(o),l=`${a}${s.padStart(n+1,"0")}`;return new S(`${l.slice(0,-n)}.${l.slice(-n)}`)}isEmpty(){return this.empty}isNaN(){return this.nan}isInvalidate(){return this.isEmpty()||this.isNaN()}equals(t){return this.toString()===(null===t||void 0===t?void 0:t.toString())}lessEquals(t){return this.add(t.negate().toString()).toNumber()<=0}toNumber(){return this.isNaN()?NaN:Number(this.toString())}toString(){let t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return t?this.isInvalidate()?"":m(`${this.getMark()}${this.getIntegerStr()}.${this.getDecimalStr()}`).fullStr:this.origin}}function A(t){return v()?new S(t):new O(t)}function k(t,e,n){let r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(""===t)return"";const{negativeStr:i,integerStr:o,decimalStr:a}=m(t),s=`${e}${a}`,l=`${i}${o}`;if(n>=0){const o=Number(a[n]);if(o>=5&&!r){const a=A(t).add(`${i}0.${"0".repeat(n)}${10-o}`);return k(a.toString(),e,n,r)}return 0===n?l:`${l}${e}${a.padEnd(n,"0").slice(0,n)}`}return".0"===s?l:`${l}${s}`}var C=n(72510),M=n(66041);const T=200,P=600;var I=(0,o.pM)({compatConfig:{MODE:3},name:"StepHandler",inheritAttrs:!1,props:{prefixCls:String,upDisabled:Boolean,downDisabled:Boolean,onStep:(0,M.Fg)()},slots:Object,setup(t,e){let{slots:n,emit:i}=e;const l=(0,a.KR)(),u=(t,e)=>{function n(){i("step",e),l.value=setTimeout(n,T)}t.preventDefault(),i("step",e),l.value=setTimeout(n,P)},c=()=>{clearTimeout(l.value)};return(0,o.xo)((()=>{c()})),()=>{if((0,C.A)())return null;const{prefixCls:e,upDisabled:i,downDisabled:a}=t,l=`${e}-handler`,h=(0,s.A)(l,`${l}-up`,{[`${l}-up-disabled`]:i}),d=(0,s.A)(l,`${l}-down`,{[`${l}-down-disabled`]:a}),p={unselectable:"on",role:"button",onMouseup:c,onMouseleave:c},{upNode:f,downNode:g}=n;return(0,o.bF)("div",{class:`${l}-wrap`},[(0,o.bF)("span",(0,r.A)((0,r.A)({},p),{},{onMousedown:t=>{u(t,!0)},"aria-label":"Increase Value","aria-disabled":i,class:h}),[(null===f||void 0===f?void 0:f())||(0,o.bF)("span",{unselectable:"on",class:`${e}-handler-up-inner`},null)]),(0,o.bF)("span",(0,r.A)((0,r.A)({},p),{},{onMousedown:t=>{u(t,!1)},"aria-label":"Decrease Value","aria-disabled":a,class:d}),[(null===g||void 0===g?void 0:g())||(0,o.bF)("span",{unselectable:"on",class:`${e}-handler-down-inner`},null)])])}}}),$=n(52002);function E(t,e){const n=(0,a.KR)(null);function r(){try{const{selectionStart:e,selectionEnd:r,value:i}=t.value,o=i.substring(0,e),a=i.substring(r);n.value={start:e,end:r,value:i,beforeTxt:o,afterTxt:a}}catch(e){}}function i(){if(t.value&&n.value&&e.value)try{const{value:e}=t.value,{beforeTxt:r,afterTxt:i,start:o}=n.value;let a=e.length;if(e.endsWith(i))a=e.length-n.value.afterTxt.length;else if(e.startsWith(r))a=r.length;else{const t=r[o-1],n=e.indexOf(t,o-1);-1!==n&&(a=n+1)}t.value.setSelectionRange(a,a)}catch(r){(0,$.$e)(!1,`Something warning of cursor restore. Please fire issue about this: ${r.message}`)}}return[r,i]}var R=n(38624),D=()=>{const t=(0,a.IJ)(0),e=()=>{R.A.cancel(t.value)};return(0,o.xo)((()=>{e()})),n=>{e(),t.value=(0,R.A)((()=>{n()}))}},L=n(5347),N=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n};const z=(t,e)=>t||e.isEmpty()?e.toString():e.toNumber(),B=t=>{const e=A(t);return e.isInvalidate()?null:e},F=()=>({stringMode:(0,M.HE)(),defaultValue:(0,M.tK)([String,Number]),value:(0,M.tK)([String,Number]),prefixCls:(0,M.WO)(),min:(0,M.tK)([String,Number]),max:(0,M.tK)([String,Number]),step:(0,M.tK)([String,Number],1),tabindex:Number,controls:(0,M.HE)(!0),readonly:(0,M.HE)(),disabled:(0,M.HE)(),autofocus:(0,M.HE)(),keyboard:(0,M.HE)(!0),parser:(0,M.Fg)(),formatter:(0,M.Fg)(),precision:Number,decimalSeparator:String,onInput:(0,M.Fg)(),onChange:(0,M.Fg)(),onPressEnter:(0,M.Fg)(),onStep:(0,M.Fg)(),onBlur:(0,M.Fg)(),onFocus:(0,M.Fg)()});var W=(0,o.pM)({compatConfig:{MODE:3},name:"InnerInputNumber",inheritAttrs:!1,props:(0,i.A)((0,i.A)({},F()),{lazy:Boolean}),slots:Object,setup(t,e){let{attrs:n,slots:l,emit:u,expose:c}=e;const h=(0,a.IJ)(),d=(0,a.IJ)(!1),p=(0,a.IJ)(!1),f=(0,a.IJ)(!1),g=(0,a.IJ)(A(t.value));function v(e){void 0===t.value&&(g.value=e)}const m=(e,n)=>{if(!n)return t.precision>=0?t.precision:Math.max(b(e),b(t.step))},y=e=>{const n=String(e);if(t.parser)return t.parser(n);let r=n;return t.decimalSeparator&&(r=r.replace(t.decimalSeparator,".")),r.replace(/[^\w.-]+/g,"")},w=(0,a.IJ)(""),O=(e,n)=>{if(t.formatter)return t.formatter(e,{userTyping:n,input:String(w.value)});let r="number"===typeof e?_(e):e;if(!n){const e=m(r,n);if(x(r)&&(t.decimalSeparator||e>=0)){const n=t.decimalSeparator||".";r=k(r,n,e)}}return r},S=(()=>{const e=t.value;return g.value.isInvalidate()&&["string","number"].includes(typeof e)?Number.isNaN(e)?"":e:O(g.value.toString(),!1)})();function C(t,e){w.value=O(t.isInvalidate()?t.toString(!1):t.toString(!e),e)}w.value=S;const M=(0,o.EW)((()=>B(t.max))),T=(0,o.EW)((()=>B(t.min))),P=(0,o.EW)((()=>!(!M.value||!g.value||g.value.isInvalidate())&&M.value.lessEquals(g.value))),$=(0,o.EW)((()=>!(!T.value||!g.value||g.value.isInvalidate())&&g.value.lessEquals(T.value))),[R,F]=E(h,d),W=t=>M.value&&!t.lessEquals(M.value)?M.value:T.value&&!T.value.lessEquals(t)?T.value:null,j=t=>!W(t),V=(e,n)=>{var r;let i=e,o=j(i)||i.isEmpty();if(i.isEmpty()||n||(i=W(i)||i,o=!0),!t.readonly&&!t.disabled&&o){const e=i.toString(),o=m(e,n);return o>=0&&(i=A(k(e,".",o))),i.equals(g.value)||(v(i),null===(r=t.onChange)||void 0===r||r.call(t,i.isEmpty()?null:z(t.stringMode,i)),void 0===t.value&&C(i,n)),i}return g.value},Q=D(),H=e=>{var n;if(R(),w.value=e,!f.value){const t=y(e),n=A(t);n.isNaN()||V(n,!0)}null===(n=t.onInput)||void 0===n||n.call(t,e),Q((()=>{let n=e;t.parser||(n=e.replace(/。/g,".")),n!==e&&H(n)}))},Z=()=>{f.value=!0},G=()=>{f.value=!1,H(h.value.value)},X=t=>{H(t.target.value)},U=e=>{var n,r;if(e&&P.value||!e&&$.value)return;p.value=!1;let i=A(t.step);e||(i=i.negate());const o=(g.value||A(0)).add(i.toString()),a=V(o,!1);null===(n=t.onStep)||void 0===n||n.call(t,z(t.stringMode,a),{offset:t.step,type:e?"up":"down"}),null===(r=h.value)||void 0===r||r.focus()},Y=e=>{const n=A(y(w.value));let r=n;r=n.isNaN()?g.value:V(n,e),void 0!==t.value?C(g.value,!1):r.isNaN()||C(r,!1)},q=e=>{var n;const{which:r}=e;p.value=!0,r===L.A.ENTER&&(f.value||(p.value=!1),Y(!1),null===(n=t.onPressEnter)||void 0===n||n.call(t,e)),!1!==t.keyboard&&!f.value&&[L.A.UP,L.A.DOWN].includes(r)&&(U(L.A.UP===r),e.preventDefault())},K=()=>{p.value=!1},J=t=>{Y(!1),d.value=!1,p.value=!1,u("blur",t)};return(0,o.wB)((()=>t.precision),(()=>{g.value.isInvalidate()||C(g.value,!1)}),{flush:"post"}),(0,o.wB)((()=>t.value),(()=>{const e=A(t.value);g.value=e;const n=A(y(w.value));e.equals(n)&&p.value&&!t.formatter||C(e,p.value)}),{flush:"post"}),(0,o.wB)(w,(()=>{t.formatter&&F()}),{flush:"post"}),(0,o.wB)((()=>t.disabled),(t=>{t&&(d.value=!1)})),c({focus:()=>{var t;null===(t=h.value)||void 0===t||t.focus()},blur:()=>{var t;null===(t=h.value)||void 0===t||t.blur()}}),()=>{const e=(0,i.A)((0,i.A)({},n),t),{prefixCls:a="rc-input-number",min:c,max:p,step:f=1,defaultValue:v,value:m,disabled:y,readonly:b,keyboard:_,controls:x=!0,autofocus:O,stringMode:S,parser:A,formatter:k,precision:C,decimalSeparator:M,onChange:T,onInput:E,onPressEnter:R,onStep:D,lazy:L,class:z,style:B}=e,F=N(e,["prefixCls","min","max","step","defaultValue","value","disabled","readonly","keyboard","controls","autofocus","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep","lazy","class","style"]),{upHandler:W,downHandler:V}=l,Q=`${a}-input`,H={};return L?H.onChange=X:H.onInput=X,(0,o.bF)("div",{class:(0,s.A)(a,z,{[`${a}-focused`]:d.value,[`${a}-disabled`]:y,[`${a}-readonly`]:b,[`${a}-not-a-number`]:g.value.isNaN(),[`${a}-out-of-range`]:!g.value.isInvalidate()&&!j(g.value)}),style:B,onKeydown:q,onKeyup:K},[x&&(0,o.bF)(I,{prefixCls:a,upDisabled:P.value,downDisabled:$.value,onStep:U},{upNode:W,downNode:V}),(0,o.bF)("div",{class:`${Q}-wrap`},[(0,o.bF)("input",(0,r.A)((0,r.A)((0,r.A)({autofocus:O,autocomplete:"off",role:"spinbutton","aria-valuemin":c,"aria-valuemax":p,"aria-valuenow":g.value.isInvalidate()?null:g.value.toString(),step:f},F),{},{ref:h,class:Q,value:w.value,disabled:y,readonly:b,onFocus:t=>{d.value=!0,u("focus",t)}},H),{},{onBlur:J,onCompositionstart:Z,onCompositionend:G}),null)])])}}}),j=n(35162),V=n(3551),Q=n(87051),H=n(21244),Z=n(5530);function G(t){return void 0!==t&&null!==t}var X=n(64854),U=n(81802),Y=n(94471),q=n(69729),K=n(31222);const J=t=>{const{componentCls:e,lineWidth:n,lineType:r,colorBorder:o,borderRadius:a,fontSizeLG:s,controlHeightLG:l,controlHeightSM:u,colorError:c,inputPaddingHorizontalSM:h,colorTextDescription:d,motionDurationMid:p,colorPrimary:f,controlHeight:g,inputPaddingHorizontal:v,colorBgContainer:m,colorTextDisabled:y,borderRadiusSM:b,borderRadiusLG:_,controlWidth:x,handleVisible:w}=t;return[{[e]:(0,i.A)((0,i.A)((0,i.A)((0,i.A)({},(0,q.dF)(t)),(0,U.wj)(t)),(0,U.EB)(t,e)),{display:"inline-block",width:x,margin:0,padding:0,border:`${n}px ${r} ${o}`,borderRadius:a,"&-rtl":{direction:"rtl",[`${e}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:s,borderRadius:_,[`input${e}-input`]:{height:l-2*n}},"&-sm":{padding:0,borderRadius:b,[`input${e}-input`]:{height:u-2*n,padding:`0 ${h}px`}},"&:hover":(0,i.A)({},(0,U.Q)(t)),"&-focused":(0,i.A)({},(0,U.Ut)(t)),"&-disabled":(0,i.A)((0,i.A)({},(0,U.eT)(t)),{[`${e}-input`]:{cursor:"not-allowed"}}),"&-out-of-range":{input:{color:c}},"&-group":(0,i.A)((0,i.A)((0,i.A)({},(0,q.dF)(t)),(0,U.XM)(t)),{"&-wrapper":{display:"inline-block",textAlign:"start",verticalAlign:"top",[`${e}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${e}-group-addon`]:{borderRadius:_}},"&-sm":{[`${e}-group-addon`]:{borderRadius:b}}}}),[e]:{"&-input":(0,i.A)((0,i.A)({width:"100%",height:g-2*n,padding:`0 ${v}px`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:a,outline:0,transition:`all ${p} linear`,appearance:"textfield",color:t.colorText,fontSize:"inherit",verticalAlign:"top"},(0,U.j_)(t.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,webkitAppearance:"none",appearance:"none"}})}})},{[e]:{[`&:hover ${e}-handler-wrap, &-focused ${e}-handler-wrap`]:{opacity:1},[`${e}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:t.handleWidth,height:"100%",background:m,borderStartStartRadius:0,borderStartEndRadius:a,borderEndEndRadius:a,borderEndStartRadius:0,opacity:!0===w?1:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`opacity ${p} linear ${p}`,[`${e}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[`\n ${e}-handler-up-inner,\n ${e}-handler-down-inner\n `]:{marginInlineEnd:0,fontSize:t.handleFontSize}}},[`${e}-handler`]:{height:"50%",overflow:"hidden",color:d,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${n}px ${r} ${o}`,transition:`all ${p} linear`,"&:active":{background:t.colorFillAlter},"&:hover":{height:"60%",[`\n ${e}-handler-up-inner,\n ${e}-handler-down-inner\n `]:{color:f}},"&-up-inner, &-down-inner":(0,i.A)((0,i.A)({},(0,q.Nk)()),{color:d,transition:`all ${p} linear`,userSelect:"none"})},[`${e}-handler-up`]:{borderStartEndRadius:a},[`${e}-handler-down`]:{borderBlockStart:`${n}px ${r} ${o}`,borderEndEndRadius:a},"&-disabled, &-readonly":{[`${e}-handler-wrap`]:{display:"none"}},[`\n ${e}-handler-up-disabled,\n ${e}-handler-down-disabled\n `]:{cursor:"not-allowed"},[`\n ${e}-handler-up-disabled:hover &-handler-up-inner,\n ${e}-handler-down-disabled:hover &-handler-down-inner\n `]:{color:y}}},{[`${e}-borderless`]:{borderColor:"transparent",boxShadow:"none",[`${e}-handler-down`]:{borderBlockStartWidth:0}}}]},tt=t=>{const{componentCls:e,inputPaddingHorizontal:n,inputAffixPadding:r,controlWidth:o,borderRadiusLG:a,borderRadiusSM:s}=t;return{[`${e}-affix-wrapper`]:(0,i.A)((0,i.A)((0,i.A)({},(0,U.wj)(t)),(0,U.EB)(t,`${e}-affix-wrapper`)),{position:"relative",display:"inline-flex",width:o,padding:0,paddingInlineStart:n,"&-lg":{borderRadius:a},"&-sm":{borderRadius:s},[`&:not(${e}-affix-wrapper-disabled):hover`]:(0,i.A)((0,i.A)({},(0,U.Q)(t)),{zIndex:1}),"&-focused, &:focus":{zIndex:1},"&-disabled":{[`${e}[disabled]`]:{background:"transparent"}},[`> div${e}`]:{width:"100%",border:"none",outline:"none",[`&${e}-focused`]:{boxShadow:"none !important"}},[`input${e}-input`]:{padding:0},"&::before":{width:0,visibility:"hidden",content:'"\\a0"'},[`${e}-handler-wrap`]:{zIndex:2},[e]:{"&-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 et=(0,Y.A)("InputNumber",(t=>{const e=(0,U.C5)(t);return[J(e),tt(e),(0,K.G)(e)]}),(t=>({controlWidth:90,handleWidth:t.controlHeightSM-2*t.lineWidth,handleFontSize:t.fontSize/2,handleVisible:"auto"}))),nt=n(45507),rt=n(99415),it=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n};const ot=F(),at=()=>(0,i.A)((0,i.A)({},ot),{size:(0,M.WO)(),bordered:(0,M.HE)(!0),placeholder:String,name:String,id:String,type:String,addonBefore:Z.A.any,addonAfter:Z.A.any,prefix:Z.A.any,"onUpdate:value":ot.onChange,valueModifiers:Object,status:(0,M.WO)()}),st=(0,o.pM)({compatConfig:{MODE:3},name:"AInputNumber",inheritAttrs:!1,props:at(),slots:Object,setup(t,e){let{emit:n,expose:l,attrs:u,slots:c}=e;var h;const d=(0,j.db)(),p=j.$W.useInject(),v=(0,o.EW)((()=>(0,X.v)(p.status,t.status))),{prefixCls:m,size:y,direction:b,disabled:_}=(0,V.A)("input-number",t),{compactSize:x,compactItemClassnames:w}=(0,nt.RQ)(m,b),O=(0,rt.p)(),S=(0,o.EW)((()=>{var t;return null!==(t=_.value)&&void 0!==t?t:O.value})),[A,k]=et(m),C=(0,o.EW)((()=>x.value||y.value)),M=(0,a.IJ)(null!==(h=t.value)&&void 0!==h?h:t.defaultValue),T=(0,a.IJ)(!1);(0,o.wB)((()=>t.value),(()=>{M.value=t.value}));const P=(0,a.IJ)(null),I=()=>{var t;null===(t=P.value)||void 0===t||t.focus()},$=()=>{var t;null===(t=P.value)||void 0===t||t.blur()};l({focus:I,blur:$});const E=e=>{void 0===t.value&&(M.value=e),n("update:value",e),n("change",e),d.onFieldChange()},R=t=>{T.value=!1,n("blur",t),d.onFieldBlur()},D=t=>{T.value=!0,n("focus",t)};return()=>{var e,n,a,l;const{hasFeedback:h,isFormItemInput:y,feedbackIcon:_}=p,x=null!==(e=t.id)&&void 0!==e?e:d.id.value,O=(0,i.A)((0,i.A)((0,i.A)({},u),t),{id:x,disabled:S.value}),{class:$,bordered:L,readonly:N,style:z,addonBefore:B=(null===(n=c.addonBefore)||void 0===n?void 0:n.call(c)),addonAfter:F=(null===(a=c.addonAfter)||void 0===a?void 0:a.call(c)),prefix:V=(null===(l=c.prefix)||void 0===l?void 0:l.call(c)),valueModifiers:Z={}}=O,U=it(O,["class","bordered","readonly","style","addonBefore","addonAfter","prefix","valueModifiers"]),Y=m.value,q=(0,s.A)({[`${Y}-lg`]:"large"===C.value,[`${Y}-sm`]:"small"===C.value,[`${Y}-rtl`]:"rtl"===b.value,[`${Y}-readonly`]:N,[`${Y}-borderless`]:!L,[`${Y}-in-form-item`]:y},(0,X.L)(Y,v.value),$,w.value,k.value);let K=(0,o.bF)(W,(0,r.A)((0,r.A)({},(0,H.A)(U,["size","defaultValue"])),{},{ref:P,lazy:!!Z.lazy,value:M.value,class:q,prefixCls:Y,readonly:N,onChange:E,onBlur:R,onFocus:D}),{upHandler:c.upIcon?()=>(0,o.bF)("span",{class:`${Y}-handler-up-inner`},[c.upIcon()]):()=>(0,o.bF)(f,{class:`${Y}-handler-up-inner`},null),downHandler:c.downIcon?()=>(0,o.bF)("span",{class:`${Y}-handler-down-inner`},[c.downIcon()]):()=>(0,o.bF)(g.A,{class:`${Y}-handler-down-inner`},null)});const J=G(B)||G(F),tt=G(V);if(tt||h){const t=(0,s.A)(`${Y}-affix-wrapper`,(0,X.L)(`${Y}-affix-wrapper`,v.value,h),{[`${Y}-affix-wrapper-focused`]:T.value,[`${Y}-affix-wrapper-disabled`]:S.value,[`${Y}-affix-wrapper-sm`]:"small"===C.value,[`${Y}-affix-wrapper-lg`]:"large"===C.value,[`${Y}-affix-wrapper-rtl`]:"rtl"===b.value,[`${Y}-affix-wrapper-readonly`]:N,[`${Y}-affix-wrapper-borderless`]:!L,[`${$}`]:!J&&$},k.value);K=(0,o.bF)("div",{class:t,style:z,onClick:I},[tt&&(0,o.bF)("span",{class:`${Y}-prefix`},[V]),K,h&&(0,o.bF)("span",{class:`${Y}-suffix`},[_])])}if(J){const t=`${Y}-group`,e=`${t}-addon`,n=B?(0,o.bF)("div",{class:e},[B]):null,r=F?(0,o.bF)("div",{class:e},[F]):null,i=(0,s.A)(`${Y}-wrapper`,t,{[`${t}-rtl`]:"rtl"===b.value},k.value),a=(0,s.A)(`${Y}-group-wrapper`,{[`${Y}-group-wrapper-sm`]:"small"===C.value,[`${Y}-group-wrapper-lg`]:"large"===C.value,[`${Y}-group-wrapper-rtl`]:"rtl"===b.value},(0,X.L)(`${m}-group-wrapper`,v.value,h),$,k.value);K=(0,o.bF)("div",{class:a,style:z},[(0,o.bF)("div",{class:i},[n&&(0,o.bF)(nt.K6,null,{default:()=>[(0,o.bF)(j.yx,null,{default:()=>[n]})]}),K,r&&(0,o.bF)(nt.K6,null,{default:()=>[(0,o.bF)(j.yx,null,{default:()=>[r]})]})])])}return A((0,Q.Ob)(K,{style:z}))}}});var lt=(0,i.A)(st,{install:t=>(t.component(st.name,st),t)})},58412:function(t,e,n){"use strict";n.d(e,{Ay:function(){return Ot}});n(30381);var r=n(69751),i=n(98657),o=n(73913),a=n(78753),s=n(13389),l=n(35162),u=n(3551),c=n(64854),h=n(16155);const d=t=>void 0!==t&&null!==t&&(!Array.isArray(t)||(0,h.Gk)(t).length);function p(t){return d(t.prefix)||d(t.suffix)||d(t.allowClear)}function f(t){return d(t.addonBefore)||d(t.addonAfter)}function g(t){return"undefined"===typeof t||null===t?"":String(t)}function v(t,e,n,r){if(!n)return;const i=e;if("click"===e.type){Object.defineProperty(i,"target",{writable:!0}),Object.defineProperty(i,"currentTarget",{writable:!0});const e=t.cloneNode(!0);return i.target=e,i.currentTarget=e,e.value="",void n(i)}if(void 0!==r)return Object.defineProperty(i,"target",{writable:!0}),Object.defineProperty(i,"currentTarget",{writable:!0}),i.target=t,i.currentTarget=t,t.value=r,void n(i);n(i)}function m(t,e){if(!t)return;t.focus(e);const{cursor:n}=e||{};if(n){const e=t.value.length;switch(n){case"start":t.setSelectionRange(0,0);break;case"end":t.setSelectionRange(e,e);break;default:t.setSelectionRange(0,e)}}}var y=n(21244),b=n(5530),_=n(66041);Symbol();const x=()=>({addonBefore:b.A.any,addonAfter:b.A.any,prefix:b.A.any,suffix:b.A.any,clearIcon:b.A.any,affixWrapperClassName:String,groupClassName:String,wrapperClassName:String,inputClassName:String,allowClear:{type:Boolean,default:void 0}}),w=()=>(0,i.A)((0,i.A)({},x()),{value:{type:[String,Number,Symbol],default:void 0},defaultValue:{type:[String,Number,Symbol],default:void 0},inputElement:b.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}}),O=()=>(0,i.A)((0,i.A)({},w()),{id:String,placeholder:{type:[String,Number]},autocomplete:String,type:(0,_.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 S=n(87051),A=(0,o.pM)({name:"BaseInput",inheritAttrs:!1,props:w(),setup(t,e){let{slots:n,attrs:r}=e;const i=(0,a.KR)(),l=e=>{var n;if(null===(n=i.value)||void 0===n?void 0:n.contains(e.target)){const{triggerFocus:e}=t;null===e||void 0===e||e()}},u=()=>{var e;const{allowClear:r,value:i,disabled:a,readonly:l,handleReset:u,suffix:c=n.suffix,prefixCls:h}=t;if(!r)return null;const d=!a&&!l&&i,p=`${h}-clear-icon`,f=(null===(e=n.clearIcon)||void 0===e?void 0:e.call(n))||"*";return(0,o.bF)("span",{onClick:u,onMousedown:t=>t.preventDefault(),class:(0,s.A)({[`${p}-hidden`]:!d,[`${p}-has-suffix`]:!!c},p),role:"button",tabindex:-1},[f])};return()=>{var e,a;const{focused:c,value:h,disabled:d,allowClear:g,readonly:v,hidden:m,prefixCls:y,prefix:b=(null===(e=n.prefix)||void 0===e?void 0:e.call(n)),suffix:_=(null===(a=n.suffix)||void 0===a?void 0:a.call(n)),addonAfter:x=n.addonAfter,addonBefore:w=n.addonBefore,inputElement:O,affixWrapperClassName:A,wrapperClassName:k,groupClassName:C}=t;let M=(0,S.Ob)(O,{value:h,hidden:m});if(p({prefix:b,suffix:_,allowClear:g})){const t=`${y}-affix-wrapper`,e=(0,s.A)(t,{[`${t}-disabled`]:d,[`${t}-focused`]:c,[`${t}-readonly`]:v,[`${t}-input-with-clear-btn`]:_&&g&&h},!f({addonAfter:x,addonBefore:w})&&r.class,A),n=(_||g)&&(0,o.bF)("span",{class:`${y}-suffix`},[u(),_]);M=(0,o.bF)("span",{class:e,style:r.style,hidden:!f({addonAfter:x,addonBefore:w})&&m,onMousedown:l,ref:i},[b&&(0,o.bF)("span",{class:`${y}-prefix`},[b]),(0,S.Ob)(O,{style:null,value:h,hidden:null}),n])}if(f({addonAfter:x,addonBefore:w})){const t=`${y}-group`,e=`${t}-addon`,n=(0,s.A)(`${y}-wrapper`,t,k),i=(0,s.A)(`${y}-group-wrapper`,r.class,C);return(0,o.bF)("span",{class:i,style:r.style,hidden:m},[(0,o.bF)("span",{class:n},[w&&(0,o.bF)("span",{class:e},[w]),(0,S.Ob)(M,{style:null,hidden:null}),x&&(0,o.bF)("span",{class:e},[x])])])}return M}}}),k=n(91949),C=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n},M=(0,o.pM)({name:"VCInput",inheritAttrs:!1,props:O(),setup(t,e){let{slots:n,attrs:l,expose:u,emit:c}=e;const h=(0,a.IJ)(void 0===t.value?t.defaultValue:t.value),d=(0,a.IJ)(!1),b=(0,a.IJ)(),_=(0,a.IJ)();(0,o.wB)((()=>t.value),(()=>{h.value=t.value})),(0,o.wB)((()=>t.disabled),(()=>{t.disabled&&(d.value=!1)}));const x=t=>{b.value&&m(b.value.input,t)},w=()=>{var t;null===(t=b.value.input)||void 0===t||t.blur()},O=(t,e,n)=>{var r;null===(r=b.value.input)||void 0===r||r.setSelectionRange(t,e,n)},S=()=>{var t;null===(t=b.value.input)||void 0===t||t.select()};u({focus:x,blur:w,input:(0,o.EW)((()=>{var t;return null===(t=b.value.input)||void 0===t?void 0:t.input})),stateValue:h,setSelectionRange:O,select:S});const M=t=>{c("change",t)},T=(e,n)=>{h.value!==e&&(void 0===t.value?h.value=e:(0,o.dY)((()=>{var t;b.value.input.value!==h.value&&(null===(t=_.value)||void 0===t||t.$forceUpdate())})),(0,o.dY)((()=>{n&&n()})))},P=t=>{const{value:e}=t.target;if(h.value===e)return;const n=t.target.value;v(b.value.input,t,M),T(n)},I=t=>{13===t.keyCode&&c("pressEnter",t),c("keydown",t)},$=t=>{d.value=!0,c("focus",t)},E=t=>{d.value=!1,c("blur",t)},R=t=>{v(b.value.input,t,M),T("",(()=>{x()}))},D=()=>{var e,r;const{addonBefore:a=n.addonBefore,addonAfter:u=n.addonAfter,disabled:c,valueModifiers:h={},htmlSize:d,autocomplete:g,prefixCls:v,inputClassName:m,prefix:_=(null===(e=n.prefix)||void 0===e?void 0:e.call(n)),suffix:x=(null===(r=n.suffix)||void 0===r?void 0:r.call(n)),allowClear:w,type:O="text"}=t,S=(0,y.A)(t,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","size","bordered","htmlSize","lazy","showCount","valueModifiers","showCount","affixWrapperClassName","groupClassName","inputClassName","wrapperClassName"]),A=(0,i.A)((0,i.A)((0,i.A)({},S),l),{autocomplete:g,onChange:P,onInput:P,onFocus:$,onBlur:E,onKeydown:I,class:(0,s.A)(v,{[`${v}-disabled`]:c},m,!f({addonAfter:u,addonBefore:a})&&!p({prefix:_,suffix:x,allowClear:w})&&l.class),ref:b,key:"ant-input",size:d,type:O,lazy:t.lazy});h.lazy&&delete A.onInput,A.autofocus||delete A.autofocus;const C=(0,o.bF)(k.A,(0,y.A)(A,["size"]),null);return C},L=()=>{var e;const{maxlength:r,suffix:i=(null===(e=n.suffix)||void 0===e?void 0:e.call(n)),showCount:a,prefixCls:l}=t,u=Number(r)>0;if(i||a){const t=[...g(h.value)].length,e="object"===typeof a?a.formatter({count:t,maxlength:r}):`${t}${u?` / ${r}`:""}`;return(0,o.bF)(o.FK,null,[!!a&&(0,o.bF)("span",{class:(0,s.A)(`${l}-show-count-suffix`,{[`${l}-show-count-has-suffix`]:!!i})},[e]),i])}return null};return(0,o.sV)((()=>{0})),()=>{const{prefixCls:e,disabled:i}=t,a=C(t,["prefixCls","disabled"]);return(0,o.bF)(A,(0,r.A)((0,r.A)((0,r.A)({},a),l),{},{ref:_,prefixCls:e,inputElement:D(),handleReset:R,value:g(h.value),focused:d.value,triggerFocus:x,suffix:L(),disabled:i}),n)}}});Symbol();const T=()=>(0,y.A)(O(),["wrapperClassName","groupClassName","inputClassName","affixWrapperClassName"]);var P=T;const I=()=>(0,i.A)((0,i.A)({},(0,y.A)(T(),["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,_.$q)(),onCompositionend:(0,_.$q)(),valueModifiers:Object});var $=n(82339),E=n(45507),R=n(81802),D=n(99415),L=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n},N=(0,o.pM)({compatConfig:{MODE:3},name:"AInput",inheritAttrs:!1,props:P(),setup(t,e){let{slots:n,attrs:h,expose:d,emit:f}=e;const g=(0,a.KR)(),v=(0,l.db)(),m=l.$W.useInject(),b=(0,o.EW)((()=>(0,c.v)(m.status,t.status))),{direction:_,prefixCls:x,size:w,autocomplete:O}=(0,u.A)("input",t),{compactSize:S,compactItemClassnames:A}=(0,E.RQ)(x,_),k=(0,o.EW)((()=>S.value||w.value)),[C,T]=(0,R.Ay)(x),P=(0,D.p)(),I=t=>{var e;null===(e=g.value)||void 0===e||e.focus(t)},N=()=>{var t;null===(t=g.value)||void 0===t||t.blur()},z=(t,e,n)=>{var r;null===(r=g.value)||void 0===r||r.setSelectionRange(t,e,n)},B=()=>{var t;null===(t=g.value)||void 0===t||t.select()};d({focus:I,blur:N,input:g,setSelectionRange:z,select:B});const F=(0,a.KR)([]),W=()=>{F.value.push(setTimeout((()=>{var t,e,n,r;(null===(t=g.value)||void 0===t?void 0:t.input)&&"password"===(null===(e=g.value)||void 0===e?void 0:e.input.getAttribute("type"))&&(null===(n=g.value)||void 0===n?void 0:n.input.hasAttribute("value"))&&(null===(r=g.value)||void 0===r||r.input.removeAttribute("value"))})))};(0,o.sV)((()=>{W()})),(0,o.Ic)((()=>{F.value.forEach((t=>clearTimeout(t)))})),(0,o.xo)((()=>{F.value.forEach((t=>clearTimeout(t)))}));const j=t=>{W(),f("blur",t),v.onFieldBlur()},V=t=>{W(),f("focus",t)},Q=t=>{f("update:value",t.target.value),f("change",t),f("input",t),v.onFieldChange()};return()=>{var e,a,u,d,f,w;const{hasFeedback:S,feedbackIcon:I}=m,{allowClear:R,bordered:D=!0,prefix:N=(null===(e=n.prefix)||void 0===e?void 0:e.call(n)),suffix:z=(null===(a=n.suffix)||void 0===a?void 0:a.call(n)),addonAfter:B=(null===(u=n.addonAfter)||void 0===u?void 0:u.call(n)),addonBefore:F=(null===(d=n.addonBefore)||void 0===d?void 0:d.call(n)),id:W=(null===(f=v.id)||void 0===f?void 0:f.value)}=t,H=L(t,["allowClear","bordered","prefix","suffix","addonAfter","addonBefore","id"]),Z=(S||z)&&(0,o.bF)(o.FK,null,[z,S&&I]),G=x.value,X=p({prefix:N,suffix:z})||!!S,U=n.clearIcon||(()=>(0,o.bF)($.A,null,null));return C((0,o.bF)(M,(0,r.A)((0,r.A)((0,r.A)({},h),(0,y.A)(H,["onUpdate:value","onChange","onInput"])),{},{onChange:Q,id:W,disabled:null!==(w=t.disabled)&&void 0!==w?w:P.value,ref:g,prefixCls:G,autocomplete:O.value,onBlur:j,onFocus:V,prefix:N,suffix:Z,allowClear:R,addonAfter:B&&(0,o.bF)(E.K6,null,{default:()=>[(0,o.bF)(l.yx,null,{default:()=>[B]})]}),addonBefore:F&&(0,o.bF)(E.K6,null,{default:()=>[(0,o.bF)(l.yx,null,{default:()=>[F]})]}),class:[h.class,A.value],inputClassName:(0,s.A)({[`${G}-sm`]:"small"===k.value,[`${G}-lg`]:"large"===k.value,[`${G}-rtl`]:"rtl"===_.value,[`${G}-borderless`]:!D},!X&&(0,c.L)(G,b.value),T.value),affixWrapperClassName:(0,s.A)({[`${G}-affix-wrapper-sm`]:"small"===k.value,[`${G}-affix-wrapper-lg`]:"large"===k.value,[`${G}-affix-wrapper-rtl`]:"rtl"===_.value,[`${G}-affix-wrapper-borderless`]:!D},(0,c.L)(`${G}-affix-wrapper`,b.value,S),T.value),wrapperClassName:(0,s.A)({[`${G}-group-rtl`]:"rtl"===_.value},T.value),groupClassName:(0,s.A)({[`${G}-group-wrapper-sm`]:"small"===k.value,[`${G}-group-wrapper-lg`]:"large"===k.value,[`${G}-group-wrapper-rtl`]:"rtl"===_.value},(0,c.L)(`${G}-group-wrapper`,b.value,S),T.value)}),(0,i.A)((0,i.A)({},n),{clearIcon:U})))}}}),z=(0,o.pM)({compatConfig:{MODE:3},name:"AInputGroup",inheritAttrs:!1,props:{prefixCls:String,size:{type:String},compact:{type:Boolean,default:void 0}},setup(t,e){let{slots:n,attrs:i}=e;const{prefixCls:a,direction:c,getPrefixCls:h}=(0,u.A)("input-group",t),d=l.$W.useInject();l.$W.useProvide(d,{isFormItemInput:!1});const p=(0,o.EW)((()=>h("input"))),[f,g]=(0,R.Ay)(p),v=(0,o.EW)((()=>{const e=a.value;return{[`${e}`]:!0,[g.value]:!0,[`${e}-lg`]:"large"===t.size,[`${e}-sm`]:"small"===t.size,[`${e}-compact`]:t.compact,[`${e}-rtl`]:"rtl"===c.value}}));return()=>{var t;return f((0,o.bF)("span",(0,r.A)((0,r.A)({},i),{},{class:(0,s.A)(v.value,i.class)}),[null===(t=n.default)||void 0===t?void 0:t.call(n)]))}}}),B=n(82205),F=n(18918),W=n(77688),j=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n},V=(0,o.pM)({compatConfig:{MODE:3},name:"AInputSearch",inheritAttrs:!1,props:(0,i.A)((0,i.A)({},P()),{inputPrefixCls:String,enterButton:b.A.any,onSearch:{type:Function}}),setup(t,e){let{slots:n,attrs:l,expose:c,emit:h}=e;const d=(0,a.IJ)(),p=(0,a.IJ)(!1),f=()=>{var t;null===(t=d.value)||void 0===t||t.focus()},g=()=>{var t;null===(t=d.value)||void 0===t||t.blur()};c({focus:f,blur:g});const v=t=>{h("update:value",t.target.value),t&&t.target&&"click"===t.type&&h("search",t.target.value,t),h("change",t)},m=t=>{var e;document.activeElement===(null===(e=d.value)||void 0===e?void 0:e.input)&&t.preventDefault()},b=t=>{var e,n;h("search",null===(n=null===(e=d.value)||void 0===e?void 0:e.input)||void 0===n?void 0:n.stateValue,t)},_=e=>{p.value||t.loading||b(e)},x=t=>{p.value=!0,h("compositionstart",t)},w=t=>{p.value=!1,h("compositionend",t)},{prefixCls:O,getPrefixCls:A,direction:k,size:C}=(0,u.A)("input-search",t),M=(0,o.EW)((()=>A("input",t.inputPrefixCls)));return()=>{var e,a,u,c;const{disabled:h,loading:p,addonAfter:f=(null===(e=n.addonAfter)||void 0===e?void 0:e.call(n)),suffix:g=(null===(a=n.suffix)||void 0===a?void 0:a.call(n))}=t,A=j(t,["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}=t;T=T||""===T;const P="boolean"===typeof T?(0,o.bF)(B.A,null,null):null,I=`${O.value}-button`,$=Array.isArray(T)?T[0]:T;let E;const R=$.type&&(0,W.A)($.type)&&$.type.__ANT_BUTTON;if(R||"button"===$.tagName)E=(0,S.Ob)($,(0,i.A)({onMousedown:m,onClick:b,key:"enterButton"},R?{class:I,size:C.value}:{}),!1);else{const t=P&&!T;E=(0,o.bF)(F.A,{class:I,type:T?"primary":void 0,size:C.value,disabled:h,key:"enterButton",onMousedown:m,onClick:b,loading:p,icon:t?P:null},{default:()=>[t?null:P||T]})}f&&(E=[E,f]);const D=(0,s.A)(O.value,{[`${O.value}-rtl`]:"rtl"===k.value,[`${O.value}-${C.value}`]:!!C.value,[`${O.value}-with-button`]:!!T},l.class);return(0,o.bF)(N,(0,r.A)((0,r.A)((0,r.A)({ref:d},(0,y.A)(A,["onUpdate:value","onSearch","enterButton"])),l),{},{onPressEnter:_,onCompositionstart:x,onCompositionend:w,size:C.value,prefixCls:M.value,addonAfter:E,suffix:g,onChange:v,class:D,disabled:h}),n)}}});const Q=t=>void 0!==t&&null!==t&&(!Array.isArray(t)||(0,h.Gk)(t).length);function H(t){return Q(t.addonBefore)||Q(t.addonAfter)}const Z=["text","input"];var G=(0,o.pM)({compatConfig:{MODE:3},name:"ClearableLabeledInput",inheritAttrs:!1,props:{prefixCls:String,inputType:b.A.oneOf((0,_.PV)("text","input")),value:(0,_.ds)(),defaultValue:(0,_.ds)(),allowClear:{type:Boolean,default:void 0},element:(0,_.ds)(),handleReset:Function,disabled:{type:Boolean,default:void 0},direction:{type:String},size:{type:String},suffix:(0,_.ds)(),prefix:(0,_.ds)(),addonBefore:(0,_.ds)(),addonAfter:(0,_.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(t,e){let{slots:n,attrs:r}=e;const i=l.$W.useInject(),a=e=>{const{value:r,disabled:i,readonly:a,handleReset:l,suffix:u=n.suffix}=t,c=!i&&!a&&r,h=`${e}-clear-icon`;return(0,o.bF)($.A,{onClick:l,onMousedown:t=>t.preventDefault(),class:(0,s.A)({[`${h}-hidden`]:!c,[`${h}-has-suffix`]:!!u},h),role:"button"},null)},u=(e,l)=>{const{value:u,allowClear:h,direction:d,bordered:p,hidden:f,status:g,addonAfter:v=n.addonAfter,addonBefore:m=n.addonBefore,hashId:y}=t,{status:b,hasFeedback:_}=i;if(!h)return(0,S.Ob)(l,{value:u,disabled:t.disabled});const x=(0,s.A)(`${e}-affix-wrapper`,`${e}-affix-wrapper-textarea-with-clear-btn`,(0,c.L)(`${e}-affix-wrapper`,(0,c.v)(b,g),_),{[`${e}-affix-wrapper-rtl`]:"rtl"===d,[`${e}-affix-wrapper-borderless`]:!p,[`${r.class}`]:!H({addonAfter:v,addonBefore:m})&&r.class},y);return(0,o.bF)("span",{class:x,style:r.style,hidden:f},[(0,S.Ob)(l,{style:null,value:u,disabled:t.disabled}),a(e)])};return()=>{var e;const{prefixCls:r,inputType:i,element:o=(null===(e=n.element)||void 0===e?void 0:e.call(n))}=t;return i===Z[0]?u(r,o):null}}}),X=n(71555),U=n(38624),Y=n(18765);const q="\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",K=["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"],J={};let tt;function et(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=t.getAttribute("id")||t.getAttribute("data-reactid")||t.getAttribute("name");if(e&&J[n])return J[n];const r=window.getComputedStyle(t),i=r.getPropertyValue("box-sizing")||r.getPropertyValue("-moz-box-sizing")||r.getPropertyValue("-webkit-box-sizing"),o=parseFloat(r.getPropertyValue("padding-bottom"))+parseFloat(r.getPropertyValue("padding-top")),a=parseFloat(r.getPropertyValue("border-bottom-width"))+parseFloat(r.getPropertyValue("border-top-width")),s=K.map((t=>`${t}:${r.getPropertyValue(t)}`)).join(";"),l={sizingStyle:s,paddingSize:o,borderSize:a,boxSizing:i};return e&&n&&(J[n]=l),l}function nt(t){let e=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;tt||(tt=document.createElement("textarea"),tt.setAttribute("tab-index","-1"),tt.setAttribute("aria-hidden","true"),document.body.appendChild(tt)),t.getAttribute("wrap")?tt.setAttribute("wrap",t.getAttribute("wrap")):tt.removeAttribute("wrap");const{paddingSize:i,borderSize:o,boxSizing:a,sizingStyle:s}=et(t,e);let l,u,c;tt.setAttribute("style",`${s};${q}`),tt.value=t.value||t.placeholder||"";let h=tt.scrollHeight;if("border-box"===a?h+=o:"content-box"===a&&(h-=i),null!==n||null!==r){tt.value=" ";const t=tt.scrollHeight-i;null!==n&&(l=t*n,"border-box"===a&&(l=l+i+o),h=Math.max(l,h)),null!==r&&(u=t*r,"border-box"===a&&(u=u+i+o),c=h>u?"":"hidden",h=Math.min(u,h))}const d={height:`${h}px`,overflowY:c,resize:"none"};return l&&(d.minHeight=`${l}px`),u&&(d.maxHeight=`${u}px`),d}const rt=0,it=1,ot=2,at=(0,o.pM)({compatConfig:{MODE:3},name:"ResizableTextArea",inheritAttrs:!1,props:I(),setup(t,e){let n,l,{attrs:u,emit:c,expose:h}=e;const d=(0,a.KR)(),p=(0,a.KR)({}),f=(0,a.KR)(ot);(0,o.xo)((()=>{U.A.cancel(n),U.A.cancel(l)}));const g=()=>{try{if(d.value&&document.activeElement===d.value.input){const t=d.value.getSelectionStart(),e=d.value.getSelectionEnd(),n=d.value.getScrollTop();d.value.setSelectionRange(t,e),d.value.setScrollTop(n)}}catch(t){}},v=(0,a.KR)(),m=(0,a.KR)();(0,o.nT)((()=>{const e=t.autoSize||t.autosize;e?(v.value=e.minRows,m.value=e.maxRows):(v.value=void 0,m.value=void 0)}));const b=(0,o.EW)((()=>!(!t.autoSize&&!t.autosize))),_=()=>{f.value=rt};(0,o.wB)([()=>t.value,v,m,b],(()=>{b.value&&_()}),{immediate:!0});const x=(0,a.KR)();(0,o.wB)([f,d],(()=>{if(d.value)if(f.value===rt)f.value=it;else if(f.value===it){const t=nt(d.value.input,!1,v.value,m.value);f.value=ot,x.value=t}else g()}),{immediate:!0,flush:"post"});const w=(0,o.nI)(),O=(0,a.KR)(),S=()=>{U.A.cancel(O.value)},A=t=>{f.value===ot&&(c("resize",t),b.value&&(S(),O.value=(0,U.A)((()=>{_()}))))};(0,o.xo)((()=>{S()}));const C=()=>{_()};h({resizeTextarea:C,textArea:(0,o.EW)((()=>{var t;return null===(t=d.value)||void 0===t?void 0:t.input})),instance:w}),(0,Y.Ay)(void 0===t.autosize,"Input.TextArea","autosize is deprecated, please use autoSize instead.");const M=()=>{const{prefixCls:e,disabled:n}=t,a=(0,y.A)(t,["prefixCls","onPressEnter","autoSize","autosize","defaultValue","allowClear","type","maxlength","valueModifiers"]),l=(0,s.A)(e,u.class,{[`${e}-disabled`]:n}),c=b.value?x.value:null,h=[u.style,p.value,c],g=(0,i.A)((0,i.A)((0,i.A)({},a),u),{style:h,class:l});return f.value!==rt&&f.value!==it||h.push({overflowX:"hidden",overflowY:"hidden"}),g.autofocus||delete g.autofocus,0===g.rows&&delete g.rows,(0,o.bF)(X.A,{onResize:A,disabled:!b.value},{default:()=>[(0,o.bF)(k.A,(0,r.A)((0,r.A)({},g),{},{ref:d,tag:"textarea"}),null)]})};return()=>M()}});var st=at;function lt(t,e){return[...t||""].slice(0,e).join("")}function ut(t,e,n,r){let i=n;return t?i=lt(n,r):[...e||""].length<n.length&&[...n||""].length>r&&(i=e),i}var ct=(0,o.pM)({compatConfig:{MODE:3},name:"ATextarea",inheritAttrs:!1,props:I(),setup(t,e){let{attrs:n,expose:h,emit:d}=e;var p;const f=(0,l.db)(),b=l.$W.useInject(),_=(0,o.EW)((()=>(0,c.v)(b.status,t.status))),x=(0,a.IJ)(null!==(p=t.value)&&void 0!==p?p:t.defaultValue),w=(0,a.IJ)(),O=(0,a.IJ)(""),{prefixCls:S,size:A,direction:k}=(0,u.A)("input",t),[C,M]=(0,R.Ay)(S),T=(0,D.p)(),P=(0,o.EW)((()=>""===t.showCount||t.showCount||!1)),I=(0,o.EW)((()=>Number(t.maxlength)>0)),$=(0,a.IJ)(!1),E=(0,a.IJ)(),L=(0,a.IJ)(0),N=t=>{$.value=!0,E.value=O.value,L.value=t.currentTarget.selectionStart,d("compositionstart",t)},z=e=>{var n;$.value=!1;let r=e.currentTarget.value;if(I.value){const e=L.value>=t.maxlength+1||L.value===(null===(n=E.value)||void 0===n?void 0:n.length);r=ut(e,E.value,r,t.maxlength)}r!==O.value&&(j(r),v(e.currentTarget,e,H,r)),d("compositionend",e)},B=(0,o.nI)();(0,o.wB)((()=>t.value),(()=>{var e;B.vnode.props,x.value=null!==(e=t.value)&&void 0!==e?e:""}));const F=t=>{var e;m(null===(e=w.value)||void 0===e?void 0:e.textArea,t)},W=()=>{var t,e;null===(e=null===(t=w.value)||void 0===t?void 0:t.textArea)||void 0===e||e.blur()},j=(e,n)=>{x.value!==e&&(void 0===t.value?x.value=e:(0,o.dY)((()=>{var t,e,n;w.value.textArea.value!==O.value&&(null===(n=null===(t=w.value)||void 0===t?void 0:(e=t.instance).update)||void 0===n||n.call(e))})),(0,o.dY)((()=>{n&&n()})))},V=t=>{13===t.keyCode&&d("pressEnter",t),d("keydown",t)},Q=e=>{const{onBlur:n}=t;null===n||void 0===n||n(e),f.onFieldBlur()},H=t=>{d("update:value",t.target.value),d("change",t),d("input",t),f.onFieldChange()},Z=t=>{v(w.value.textArea,t,H),j("",(()=>{F()}))},X=e=>{let n=e.target.value;if(x.value!==n){if(I.value){const r=e.target,i=r.selectionStart>=t.maxlength+1||r.selectionStart===n.length||!r.selectionStart;n=ut(i,O.value,n,t.maxlength)}v(e.currentTarget,e,H,n),j(n)}},U=()=>{var e,a;const{class:s}=n,{bordered:l=!0}=t,u=(0,i.A)((0,i.A)((0,i.A)({},(0,y.A)(t,["allowClear"])),n),{class:[{[`${S.value}-borderless`]:!l,[`${s}`]:s&&!P.value,[`${S.value}-sm`]:"small"===A.value,[`${S.value}-lg`]:"large"===A.value},(0,c.L)(S.value,_.value),M.value],disabled:T.value,showCount:null,prefixCls:S.value,onInput:X,onChange:X,onBlur:Q,onKeydown:V,onCompositionstart:N,onCompositionend:z});return(null===(e=t.valueModifiers)||void 0===e?void 0:e.lazy)&&delete u.onInput,(0,o.bF)(st,(0,r.A)((0,r.A)({},u),{},{id:null!==(a=null===u||void 0===u?void 0:u.id)&&void 0!==a?a:f.id.value,ref:w,maxlength:t.maxlength,lazy:t.lazy}),null)};return h({focus:F,blur:W,resizableTextArea:w}),(0,o.nT)((()=>{let e=g(x.value);$.value||!I.value||null!==t.value&&void 0!==t.value||(e=lt(e,t.maxlength)),O.value=e})),()=>{var e;const{maxlength:a,bordered:l=!0,hidden:u}=t,{style:c,class:h}=n,d=(0,i.A)((0,i.A)((0,i.A)({},t),n),{prefixCls:S.value,inputType:"text",handleReset:Z,direction:k.value,bordered:l,style:P.value?void 0:c,hashId:M.value,disabled:null!==(e=t.disabled)&&void 0!==e?e:T.value});let p=(0,o.bF)(G,(0,r.A)((0,r.A)({},d),{},{value:O.value,status:t.status}),{element:U});if(P.value||b.hasFeedback){const t=[...O.value].length;let e="";e="object"===typeof P.value?P.value.formatter({value:O.value,count:t,maxlength:a}):`${t}${I.value?` / ${a}`:""}`,p=(0,o.bF)("div",{hidden:u,class:(0,s.A)(`${S.value}-textarea`,{[`${S.value}-textarea-rtl`]:"rtl"===k.value,[`${S.value}-textarea-show-count`]:P.value,[`${S.value}-textarea-in-form-item`]:b.isFormItemInput},`${S.value}-textarea-show-count`,h,M.value),style:c,"data-count":"object"!==typeof e?e:void 0},[p,b.hasFeedback&&(0,o.bF)("span",{class:`${S.value}-textarea-suffix`},[b.feedbackIcon])])}return C(p)}}}),ht=n(34631),dt={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"},pt=dt,ft=n(29847);function gt(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?Object(arguments[e]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),r.forEach((function(e){vt(t,e,n[e])}))}return t}function vt(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var mt=function(t,e){var n=gt({},t,e.attrs);return(0,o.bF)(ft.A,gt({},n,{icon:pt}),null)};mt.displayName="EyeInvisibleOutlined",mt.inheritAttrs=!1;var yt=mt,bt=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n};const _t={click:"onClick",hover:"onMouseover"},xt=t=>t?(0,o.bF)(ht.A,null,null):(0,o.bF)(yt,null,null);var wt=(0,o.pM)({compatConfig:{MODE:3},name:"AInputPassword",inheritAttrs:!1,props:(0,i.A)((0,i.A)({},P()),{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(t,e){let{slots:n,attrs:l,expose:c,emit:d}=e;const p=(0,a.IJ)(!1),f=()=>{const{disabled:e}=t;e||(p.value=!p.value,d("update:visible",p.value))};(0,o.nT)((()=>{void 0!==t.visible&&(p.value=!!t.visible)}));const g=(0,a.IJ)(),v=()=>{var t;null===(t=g.value)||void 0===t||t.focus()},m=()=>{var t;null===(t=g.value)||void 0===t||t.blur()};c({focus:v,blur:m});const b=e=>{const{action:r,iconRender:i=n.iconRender||xt}=t,a=_t[r]||"",s=i(p.value),l={[a]:f,class:`${e}-icon`,key:"passwordIcon",onMousedown:t=>{t.preventDefault()},onMouseup:t=>{t.preventDefault()}};return(0,S.Ob)((0,h.zO)(s)?s:(0,o.bF)("span",null,[s]),l)},{prefixCls:_,getPrefixCls:x}=(0,u.A)("input-password",t),w=(0,o.EW)((()=>x("input",t.inputPrefixCls))),O=()=>{const{size:e,visibilityToggle:a}=t,u=bt(t,["size","visibilityToggle"]),c=a&&b(_.value),h=(0,s.A)(_.value,l.class,{[`${_.value}-${e}`]:!!e}),d=(0,i.A)((0,i.A)((0,i.A)({},(0,y.A)(u,["suffix","iconRender","action"])),l),{type:p.value?"text":"password",class:h,prefixCls:w.value,suffix:c});return e&&(d.size=e),(0,o.bF)(N,(0,r.A)({ref:g},d),n)};return()=>O()}});N.Group=z,N.Search=V,N.TextArea=ct,N.Password=wt,N.install=function(t){return t.component(N.name,N),t.component(N.Group.name,N.Group),t.component(N.Search.name,N.Search),t.component(N.TextArea.name,N.TextArea),t.component(N.Password.name,N.Password),t};var Ot=N},81802:function(t,e,n){"use strict";n.d(e,{C5:function(){return w},EB:function(){return f},Q:function(){return u},Ut:function(){return c},XM:function(){return v},eT:function(){return h},j_:function(){return l},wj:function(){return g}});var r=n(98657),i=n(96704),o=n(94471),a=n(69729),s=n(31222);const l=t=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:t,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),u=t=>({borderColor:t.inputBorderHoverColor,borderInlineEndWidth:t.lineWidth}),c=t=>({borderColor:t.inputBorderHoverColor,boxShadow:`0 0 0 ${t.controlOutlineWidth}px ${t.controlOutline}`,borderInlineEndWidth:t.lineWidth,outline:0}),h=t=>({color:t.colorTextDisabled,backgroundColor:t.colorBgContainerDisabled,borderColor:t.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"&:hover":(0,r.A)({},u((0,i.h1)(t,{inputBorderHoverColor:t.colorBorder})))}),d=t=>{const{inputPaddingVerticalLG:e,fontSizeLG:n,lineHeightLG:r,borderRadiusLG:i,inputPaddingHorizontalLG:o}=t;return{padding:`${e}px ${o}px`,fontSize:n,lineHeight:r,borderRadius:i}},p=t=>({padding:`${t.inputPaddingVerticalSM}px ${t.controlPaddingHorizontalSM-1}px`,borderRadius:t.borderRadiusSM}),f=(t,e)=>{const{componentCls:n,colorError:o,colorWarning:a,colorErrorOutline:s,colorWarningOutline:l,colorErrorBorderHover:u,colorWarningBorderHover:h}=t;return{[`&-status-error:not(${e}-disabled):not(${e}-borderless)${e}`]:{borderColor:o,"&:hover":{borderColor:u},"&:focus, &-focused":(0,r.A)({},c((0,i.h1)(t,{inputBorderActiveColor:o,inputBorderHoverColor:o,controlOutline:s}))),[`${n}-prefix`]:{color:o}},[`&-status-warning:not(${e}-disabled):not(${e}-borderless)${e}`]:{borderColor:a,"&:hover":{borderColor:h},"&:focus, &-focused":(0,r.A)({},c((0,i.h1)(t,{inputBorderActiveColor:a,inputBorderHoverColor:a,controlOutline:l}))),[`${n}-prefix`]:{color:a}}}},g=t=>(0,r.A)((0,r.A)({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${t.inputPaddingVertical}px ${t.inputPaddingHorizontal}px`,color:t.colorText,fontSize:t.fontSize,lineHeight:t.lineHeight,backgroundColor:t.colorBgContainer,backgroundImage:"none",borderWidth:t.lineWidth,borderStyle:t.lineType,borderColor:t.colorBorder,borderRadius:t.borderRadius,transition:`all ${t.motionDurationMid}`},l(t.colorTextPlaceholder)),{"&:hover":(0,r.A)({},u(t)),"&:focus, &-focused":(0,r.A)({},c(t)),"&-disabled, &[disabled]":(0,r.A)({},h(t)),"&-borderless":{"&, &:hover, &:focus, &-focused, &-disabled, &[disabled]":{backgroundColor:"transparent",border:"none",boxShadow:"none"}},"textarea&":{maxWidth:"100%",height:"auto",minHeight:t.controlHeight,lineHeight:t.lineHeight,verticalAlign:"bottom",transition:`all ${t.motionDurationSlow}, height 0s`,resize:"vertical"},"&-lg":(0,r.A)({},d(t)),"&-sm":(0,r.A)({},p(t)),"&-rtl":{direction:"rtl"},"&-textarea-rtl":{direction:"rtl"}}),v=t=>{const{componentCls:e,antCls:n}=t;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,["&[class*='col-']"]:{paddingInlineEnd:t.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${e}, &-lg > ${e}-group-addon`]:(0,r.A)({},d(t)),[`&-sm ${e}, &-sm > ${e}-group-addon`]:(0,r.A)({},p(t)),[`> ${e}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${e}-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 ${t.inputPaddingHorizontal}px`,color:t.colorText,fontWeight:"normal",fontSize:t.fontSize,textAlign:"center",backgroundColor:t.colorFillAlter,border:`${t.lineWidth}px ${t.lineType} ${t.colorBorder}`,borderRadius:t.borderRadius,transition:`all ${t.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`-${t.inputPaddingVertical+1}px -${t.inputPaddingHorizontal}px`,[`&${n}-select-single:not(${n}-select-customize-input)`]:{[`${n}-select-selector`]:{backgroundColor:"inherit",border:`${t.lineWidth}px ${t.lineType} transparent`,boxShadow:"none"}},"&-open, &-focused":{[`${n}-select-selector`]:{color:t.colorPrimary}}},[`${n}-cascader-picker`]:{margin:`-9px -${t.inputPaddingHorizontal}px`,backgroundColor:"transparent",[`${n}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}},[`${e}`]:{float:"inline-start",width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${e}-search-with-button &`]:{zIndex:0}}},[`> ${e}:first-child, ${e}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${e}-affix-wrapper`]:{[`&:not(:first-child) ${e}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${e}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${e}:last-child, ${e}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${e}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${e}-search &`]:{borderStartStartRadius:t.borderRadius,borderEndStartRadius:t.borderRadius}},[`&:not(:first-child), ${e}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${e}-group-compact`]:(0,r.A)((0,r.A)({display:"block"},(0,a.t6)()),{[`${e}-group-addon, ${e}-group-wrap, > ${e}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:t.lineWidth,"&:hover":{zIndex:1},"&:focus":{zIndex:1}}},"& > *":{display:"inline-block",float:"none",verticalAlign:"top",borderRadius:0},[`& > ${e}-affix-wrapper`]:{display:"inline-flex"},[`& > ${n}-picker-range`]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:-t.lineWidth,borderInlineEndWidth:t.lineWidth},[`${e}`]:{float:"none"},[`& > ${n}-select > ${n}-select-selector,\n & > ${n}-select-auto-complete ${e},\n & > ${n}-cascader-picker ${e},\n & > ${e}-group-wrapper ${e}`]:{borderInlineEndWidth:t.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 ${e},\n & > ${n}-cascader-picker:first-child ${e}`]:{borderStartStartRadius:t.borderRadius,borderEndStartRadius:t.borderRadius},[`& > *:last-child,\n & > ${n}-select:last-child > ${n}-select-selector,\n & > ${n}-cascader-picker:last-child ${e},\n & > ${n}-cascader-picker-focused:last-child ${e}`]:{borderInlineEndWidth:t.lineWidth,borderStartEndRadius:t.borderRadius,borderEndEndRadius:t.borderRadius},[`& > ${n}-select-auto-complete ${e}`]:{verticalAlign:"top"},[`${e}-group-wrapper + ${e}-group-wrapper`]:{marginInlineStart:-t.lineWidth,[`${e}-affix-wrapper`]:{borderRadius:0}},[`${e}-group-wrapper:not(:last-child)`]:{[`&${e}-search > ${e}-group`]:{[`& > ${e}-group-addon > ${e}-search-button`]:{borderRadius:0},[`& > ${e}`]:{borderStartStartRadius:t.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:t.borderRadius}}}}),[`&&-sm ${n}-btn`]:{fontSize:t.fontSizeSM,height:t.controlHeightSM,lineHeight:"normal"},[`&&-lg ${n}-btn`]:{fontSize:t.fontSizeLG,height:t.controlHeightLG,lineHeight:"normal"},[`&&-lg ${n}-select-single ${n}-select-selector`]:{height:`${t.controlHeightLG}px`,[`${n}-select-selection-item, ${n}-select-selection-placeholder`]:{lineHeight:t.controlHeightLG-2+"px"},[`${n}-select-selection-search-input`]:{height:`${t.controlHeightLG}px`}},[`&&-sm ${n}-select-single ${n}-select-selector`]:{height:`${t.controlHeightSM}px`,[`${n}-select-selection-item, ${n}-select-selection-placeholder`]:{lineHeight:t.controlHeightSM-2+"px"},[`${n}-select-selection-search-input`]:{height:`${t.controlHeightSM}px`}}}},m=t=>{const{componentCls:e,controlHeightSM:n,lineWidth:i}=t,o=16,s=(n-2*i-o)/2;return{[e]:(0,r.A)((0,r.A)((0,r.A)((0,r.A)({},(0,a.dF)(t)),g(t)),f(t,e)),{'&[type="color"]':{height:t.controlHeight,[`&${e}-lg`]:{height:t.controlHeightLG},[`&${e}-sm`]:{height:n,paddingTop:s,paddingBottom:s}}})}},y=t=>{const{componentCls:e}=t;return{[`${e}-clear-icon`]:{margin:0,color:t.colorTextQuaternary,fontSize:t.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${t.motionDurationSlow}`,"&:hover":{color:t.colorTextTertiary},"&:active":{color:t.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${t.inputAffixPadding}px`}},"&-textarea-with-clear-btn":{padding:"0 !important",border:"0 !important",[`${e}-clear-icon`]:{position:"absolute",insetBlockStart:t.paddingXS,insetInlineEnd:t.paddingXS,zIndex:1}}}},b=t=>{const{componentCls:e,inputAffixPadding:n,colorTextDescription:i,motionDurationSlow:o,colorIcon:a,colorIconHover:s,iconCls:l}=t;return{[`${e}-affix-wrapper`]:(0,r.A)((0,r.A)((0,r.A)((0,r.A)((0,r.A)({},g(t)),{display:"inline-flex",[`&:not(${e}-affix-wrapper-disabled):hover`]:(0,r.A)((0,r.A)({},u(t)),{zIndex:1,[`${e}-search-with-button &`]:{zIndex:0}}),"&-focused, &:focus":{zIndex:1},"&-disabled":{[`${e}[disabled]`]:{background:"transparent"}},[`> input${e}`]:{padding:0,fontSize:"inherit",border:"none",borderRadius:0,outline:"none","&:focus":{boxShadow:"none !important"}},"&::before":{width:0,visibility:"hidden",content:'"\\a0"'},[`${e}`]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:t.paddingXS}},"&-show-count-suffix":{color:i},"&-show-count-has-suffix":{marginInlineEnd:t.paddingXXS},"&-prefix":{marginInlineEnd:n},"&-suffix":{marginInlineStart:n}}}),y(t)),{[`${l}${e}-password-icon`]:{color:a,cursor:"pointer",transition:`all ${o}`,"&:hover":{color:s}}}),f(t,`${e}-affix-wrapper`))}},_=t=>{const{componentCls:e,colorError:n,colorSuccess:i,borderRadiusLG:o,borderRadiusSM:s}=t;return{[`${e}-group`]:(0,r.A)((0,r.A)((0,r.A)({},(0,a.dF)(t)),v(t)),{"&-rtl":{direction:"rtl"},"&-wrapper":{display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${e}-group-addon`]:{borderRadius:o}},"&-sm":{[`${e}-group-addon`]:{borderRadius:s}},"&-status-error":{[`${e}-group-addon`]:{color:n,borderColor:n}},"&-status-warning":{[`${e}-group-addon:last-child`]:{color:i,borderColor:i}}}})}},x=t=>{const{componentCls:e,antCls:n}=t,r=`${e}-search`;return{[r]:{[`${e}`]:{"&:hover, &:focus":{borderColor:t.colorPrimaryHover,[`+ ${e}-group-addon ${r}-button:not(${n}-btn-primary)`]:{borderInlineStartColor:t.colorPrimaryHover}}},[`${e}-affix-wrapper`]:{borderRadius:0},[`${e}-lg`]:{lineHeight:t.lineHeightLG-2e-4},[`> ${e}-group`]:{[`> ${e}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${r}-button`]:{paddingTop:0,paddingBottom:0,borderStartStartRadius:0,borderStartEndRadius:t.borderRadius,borderEndEndRadius:t.borderRadius,borderEndStartRadius:0},[`${r}-button:not(${n}-btn-primary)`]:{color:t.colorTextDescription,"&:hover":{color:t.colorPrimaryHover},"&:active":{color:t.colorPrimaryActive},[`&${n}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${r}-button`]:{height:t.controlHeight,"&:hover, &:focus":{zIndex:1}},[`&-large ${r}-button`]:{height:t.controlHeightLG},[`&-small ${r}-button`]:{height:t.controlHeightSM},"&-rtl":{direction:"rtl"},[`&${e}-compact-item`]:{[`&:not(${e}-compact-last-item)`]:{[`${e}-group-addon`]:{[`${e}-search-button`]:{marginInlineEnd:-t.lineWidth,borderRadius:0}}},[`&:not(${e}-compact-first-item)`]:{[`${e},${e}-affix-wrapper`]:{borderRadius:0}},[`> ${e}-group-addon ${e}-search-button,\n > ${e},\n ${e}-affix-wrapper`]:{"&:hover,&:focus,&:active":{zIndex:2}},[`> ${e}-affix-wrapper-focused`]:{zIndex:2}}}}};function w(t){return(0,i.h1)(t,{inputAffixPadding:t.paddingXXS,inputPaddingVertical:Math.max(Math.round((t.controlHeight-t.fontSize*t.lineHeight)/2*10)/10-t.lineWidth,3),inputPaddingVerticalLG:Math.ceil((t.controlHeightLG-t.fontSizeLG*t.lineHeightLG)/2*10)/10-t.lineWidth,inputPaddingVerticalSM:Math.max(Math.round((t.controlHeightSM-t.fontSize*t.lineHeight)/2*10)/10-t.lineWidth,0),inputPaddingHorizontal:t.paddingSM-t.lineWidth,inputPaddingHorizontalSM:t.paddingXS-t.lineWidth,inputPaddingHorizontalLG:t.controlPaddingHorizontal-t.lineWidth,inputBorderHoverColor:t.colorPrimaryHover,inputBorderActiveColor:t.colorPrimaryHover})}const O=t=>{const{componentCls:e,inputPaddingHorizontal:n,paddingLG:r}=t,i=`${e}-textarea`;return{[i]:{position:"relative",[`${i}-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"]:{[`&${i}-has-feedback`]:{[`${e}`]:{paddingInlineEnd:r}}},"&-show-count":{[`> ${e}`]:{height:"100%"},"&::after":{color:t.colorTextDescription,whiteSpace:"nowrap",content:"attr(data-count)",pointerEvents:"none",float:"right"}},"&-rtl":{"&::after":{float:"left"}}}}};e.Ay=(0,o.A)("Input",(t=>{const e=w(t);return[m(e),O(e),b(e),_(e),x(e),(0,s.G)(e)]}))},97605:function(t,e,n){"use strict";var r=n(53775);e.A=r.A},53775:function(t,e,n){"use strict";n.d(e,{n:function(){return s}});var r=n(98657),i=n(73913),o=n(78753),a=n(24619);function s(t,e,n){const s=(0,i.WQ)("localeData",{}),l=(0,i.EW)((()=>{const{antLocale:i}=s,l=(0,o.R1)(e)||a.A[t||"global"],u=t&&i?i[t]:{};return(0,r.A)((0,r.A)((0,r.A)({},"function"===typeof l?l():l),u||{}),(0,o.R1)(n)||{})}));return[l]}e.A=(0,i.pM)({compatConfig:{MODE:3},name:"LocaleReceiver",props:{componentName:String,defaultLocale:{type:[Object,Function]},children:{type:Function}},setup(t,e){let{slots:n}=e;const o=(0,i.WQ)("localeData",{}),s=(0,i.EW)((()=>{const{componentName:e="global",defaultLocale:n}=t,i=n||a.A[e||"global"],{antLocale:s}=o,l=e&&s?s[e]:{};return(0,r.A)((0,r.A)({},"function"===typeof i?i():i),l||{})})),l=(0,i.EW)((()=>{const{antLocale:t}=o,e=t&&t.locale;return t&&t.exist&&!e?a.A.locale:e}));return()=>{const e=t.children||n.default,{antLocale:r}=o;return null===e||void 0===e?void 0:e(s.value,l.value,r)}}})},24619:function(t,e,n){"use strict";n.d(e,{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"},i=n(98657);const o={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=o;const s={placeholder:"Select time",rangePlaceholder:["Start time","End time"]};var l=s;const u={lang:(0,i.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,i.A)({},l)};var c=u,h=c;const d="${label} is not a valid ${type}",p={locale:"en",Pagination:r,DatePicker:c,TimePicker:l,Calendar:h,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:d,method:d,array:d,object:d,number:d,date:d,boolean:d,integer:d,float:d,regexp:d,email:d,url:d,hex:d},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(t,e,n){"use strict";n.d(e,{Ay:function(){return et}});var r=n(98657),i=n(73913),o=n(31716),a=n(2167),s=n(51911),l=n(82339),u=n(46299),c=n(33684),h=n(13389),d=n(97732),p=n(94471),f=n(96704),g=n(69729);const v=t=>{const{componentCls:e,iconCls:n,boxShadowSecondary:i,colorBgElevated:o,colorSuccess:a,colorError:s,colorWarning:l,colorInfo:u,fontSizeLG:c,motionEaseInOutCirc:h,motionDurationSlow:p,marginXS:f,paddingXS:v,borderRadiusLG:m,zIndexPopup:y,messageNoticeContentPadding:b}=t,_=new d.A("MessageMoveIn",{"0%":{padding:0,transform:"translateY(-100%)",opacity:0},"100%":{padding:v,transform:"translateY(0)",opacity:1}}),x=new d.A("MessageMoveOut",{"0%":{maxHeight:t.height,padding:v,opacity:1},"100%":{maxHeight:0,padding:0,opacity:0}});return[{[e]:(0,r.A)((0,r.A)({},(0,g.dF)(t)),{position:"fixed",top:f,left:"50%",transform:"translateX(-50%)",width:"100%",pointerEvents:"none",zIndex:y,[`${e}-move-up`]:{animationFillMode:"forwards"},[`\n ${e}-move-up-appear,\n ${e}-move-up-enter\n `]:{animationName:_,animationDuration:p,animationPlayState:"paused",animationTimingFunction:h},[`\n ${e}-move-up-appear${e}-move-up-appear-active,\n ${e}-move-up-enter${e}-move-up-enter-active\n `]:{animationPlayState:"running"},[`${e}-move-up-leave`]:{animationName:x,animationDuration:p,animationPlayState:"paused",animationTimingFunction:h},[`${e}-move-up-leave${e}-move-up-leave-active`]:{animationPlayState:"running"},"&-rtl":{direction:"rtl",span:{direction:"rtl"}}})},{[`${e}-notice`]:{padding:v,textAlign:"center",[n]:{verticalAlign:"text-bottom",marginInlineEnd:f,fontSize:c},[`${e}-notice-content`]:{display:"inline-block",padding:b,background:o,borderRadius:m,boxShadow:i,pointerEvents:"all"},[`${e}-success ${n}`]:{color:a},[`${e}-error ${n}`]:{color:s},[`${e}-warning ${n}`]:{color:l},[`\n ${e}-info ${n},\n ${e}-loading ${n}`]:{color:u}}},{[`${e}-notice-pure-panel`]:{padding:0,textAlign:"start"}}]};var m=(0,p.A)("Message",(t=>{const e=(0,f.h1)(t,{messageNoticeContentPadding:`${(t.controlHeightLG-t.fontSize*t.lineHeight)/2}px ${t.paddingSM}px`});return[v(e)]}),(t=>({height:150,zIndexPopup:t.zIndexPopupBase+10}))),y=n(69751),b=n(78753),_=n(39375),x=n(23273),w=n(36657),O=n(90551);const S={info:(0,i.bF)(c.A,null,null),success:(0,i.bF)(u.A,null,null),error:(0,i.bF)(l.A,null,null),warning:(0,i.bF)(s.A,null,null),loading:(0,i.bF)(a.A,null,null)},A=(0,i.pM)({name:"PureContent",inheritAttrs:!1,props:["prefixCls","type","icon"],setup(t,e){let{slots:n}=e;return()=>{var e;return(0,i.bF)("div",{class:(0,h.A)(`${t.prefixCls}-custom-content`,`${t.prefixCls}-${t.type}`)},[t.icon||S[t.type],(0,i.bF)("span",null,[null===(e=n.default)||void 0===e?void 0:e.call(n)])])}}});(0,i.pM)({name:"PurePanel",inheritAttrs:!1,props:["prefixCls","class","type","icon","content"],setup(t,e){let{slots:n,attrs:r}=e;var o;const{getPrefixCls:a}=(0,O.OQ)(),s=(0,i.EW)((()=>t.prefixCls||a("message"))),[,l]=m(s);return(0,i.bF)(w.A,(0,y.A)((0,y.A)({},r),{},{prefixCls:s.value,class:(0,h.A)(l.value,`${s.value}-notice-pure-panel`),noticeKey:"pure",duration:null}),{default:()=>[(0,i.bF)(A,{prefixCls:s.value,type:t.type,icon:t.icon},{default:()=>[null===(o=n.default)||void 0===o?void 0:o.call(n)]})]})}});var k=n(1684),C=n(92389),M=n(3551),T=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n};const P=8,I=3,$=(0,i.pM)({name:"Holder",inheritAttrs:!1,props:["top","prefixCls","getContainer","maxCount","duration","rtl","transitionName","onAllRemoved"],setup(t,e){let{expose:n}=e;var o,a;const{getPrefixCls:s,getPopupContainer:l}=(0,M.A)("message",t),u=(0,i.EW)((()=>s("message",t.prefixCls))),[,c]=m(u),d=()=>{var e;const n=null!==(e=t.top)&&void 0!==e?e:P;return{left:"50%",transform:"translateX(-50%)",top:"number"===typeof n?`${n}px`:n}},p=()=>(0,h.A)(c.value,t.rtl?`${u.value}-rtl`:""),f=()=>{var e;return(0,k.V)({prefixCls:u.value,animation:null!==(e=t.animation)&&void 0!==e?e:"move-up",transitionName:t.transitionName})},g=(0,i.bF)("span",{class:`${u.value}-close-x`},[(0,i.bF)(x.A,{class:`${u.value}-close-icon`},null)]),[v,y]=(0,_.A)({getStyles:d,prefixCls:u.value,getClassName:p,motion:f,closable:!1,closeIcon:g,duration:null!==(o=t.duration)&&void 0!==o?o:I,getContainer:null!==(a=t.staticGetContainer)&&void 0!==a?a:l.value,maxCount:t.maxCount,onAllRemoved:t.onAllRemoved});return n((0,r.A)((0,r.A)({},v),{prefixCls:u,hashId:c})),y}});let E=0;function R(t){const e=(0,b.IJ)(null),n=Symbol("messageHolderKey"),o=t=>{var n;null===(n=e.value)||void 0===n||n.close(t)},a=t=>{if(!e.value){const t=()=>{};return t.then=()=>{},t}const{open:n,prefixCls:a,hashId:s}=e.value,l=`${a}-notice`,{content:u,icon:c,type:d,key:p,class:f,onClose:g}=t,v=T(t,["content","icon","type","key","class","onClose"]);let m=p;return void 0!==m&&null!==m||(E+=1,m=`antd-message-${E}`),(0,C.Ew)((t=>(n((0,r.A)((0,r.A)({},v),{key:m,content:()=>(0,i.bF)(A,{prefixCls:a,type:d,icon:"function"===typeof c?c():c},{default:()=>["function"===typeof u?u():u]}),placement:"top",class:(0,h.A)(d&&`${l}-${d}`,s,f),onClose:()=>{null===g||void 0===g||g(),t()}})),()=>{o(m)})))},s=t=>{var n;void 0!==t?o(t):null===(n=e.value)||void 0===n||n.destroy()},l={open:a,destroy:s},u=["info","success","warning","error","loading"];return u.forEach((t=>{const e=(e,n,i)=>{let o,s,l;o=e&&"object"===typeof e&&"content"in e?e:{content:e},"function"===typeof n?l=n:(s=n,l=i);const u=(0,r.A)((0,r.A)({onClose:l,duration:s},o),{type:t});return a(u)};l[t]=e})),[l,()=>(0,i.bF)($,(0,y.A)((0,y.A)({key:n},t),{},{ref:e}),null)]}function D(t){return R(t)}let L,N,z,B=3,F=1,W="",j="move-up",V=!1,Q=()=>document.body,H=!1;function Z(){return F++}function G(t){void 0!==t.top&&(L=t.top,N=null),void 0!==t.duration&&(B=t.duration),void 0!==t.prefixCls&&(W=t.prefixCls),void 0!==t.getContainer&&(Q=t.getContainer,N=null),void 0!==t.transitionName&&(j=t.transitionName,N=null,V=!0),void 0!==t.maxCount&&(z=t.maxCount,N=null),void 0!==t.rtl&&(H=t.rtl)}function X(t,e){N?e(N):o.A.newInstance({appContext:t.appContext,prefixCls:t.prefixCls||W,rootPrefixCls:t.rootPrefixCls,transitionName:j,hasTransitionName:V,style:{top:L},getContainer:Q||t.getPopupContainer,maxCount:z,name:"message",useStyle:m},(t=>{N?e(N):(N=t,e(t))}))}const U={info:c.A,success:u.A,error:l.A,warning:s.A,loading:a.A},Y=Object.keys(U);function q(t){const e=void 0!==t.duration?t.duration:B,n=t.key||Z(),r=new Promise((r=>{const o=()=>("function"===typeof t.onClose&&t.onClose(),r(!0));X(t,(r=>{r.notice({key:n,duration:e,style:t.style||{},class:t.class,content:e=>{let{prefixCls:n}=e;const r=U[t.type],o=r?(0,i.bF)(r,null,null):"",a=(0,h.A)(`${n}-custom-content`,{[`${n}-${t.type}`]:t.type,[`${n}-rtl`]:!0===H});return(0,i.bF)("div",{class:a},["function"===typeof t.icon?t.icon():t.icon||o,(0,i.bF)("span",null,["function"===typeof t.content?t.content():t.content])])},onClose:o,onClick:t.onClick})}))})),o=()=>{N&&N.removeNotice(n)};return o.then=(t,e)=>r.then(t,e),o.promise=r,o}function K(t){return"[object Object]"===Object.prototype.toString.call(t)&&!!t.content}const J={open:q,config:G,destroy(t){if(N)if(t){const{removeNotice:e}=N;e(t)}else{const{destroy:t}=N;t(),N=null}}};function tt(t,e){t[e]=(n,i,o)=>K(n)?t.open((0,r.A)((0,r.A)({},n),{type:e})):("function"===typeof i&&(o=i,i=void 0),t.open({content:n,duration:i,type:e,onClose:o}))}Y.forEach((t=>tt(J,t))),J.warn=J.warning,J.useMessage=D;var et=J},19559:function(t,e,n){"use strict";n.d(e,{L:function(){return a},l:function(){return s}});var r=n(98657),i=n(24619);let o=(0,r.A)({},i.A.Modal);function a(t){o=t?(0,r.A)((0,r.A)({},o),t):(0,r.A)({},i.A.Modal)}function s(){return o}},54183:function(t,e,n){"use strict";n.d(e,{D:function(){return c}});var r=n(98657),i=n(7672),o=n(41781),a=n(94471),s=n(96704),l=n(69729);function u(t){return{position:t,top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0}}const c=t=>{const{componentCls:e}=t;return[{[`${e}-root`]:{[`${e}${t.antCls}-zoom-enter, ${e}${t.antCls}-zoom-appear`]:{transform:"none",opacity:0,animationDuration:t.motionDurationSlow,userSelect:"none"},[`${e}${t.antCls}-zoom-leave ${e}-content`]:{pointerEvents:"none"},[`${e}-mask`]:(0,r.A)((0,r.A)({},u("fixed")),{zIndex:t.zIndexPopupBase,height:"100%",backgroundColor:t.colorBgMask,[`${e}-hidden`]:{display:"none"}}),[`${e}-wrap`]:(0,r.A)((0,r.A)({},u("fixed")),{overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"})}},{[`${e}-root`]:(0,i.p9)(t)}]},h=t=>{const{componentCls:e}=t;return[{[`${e}-root`]:{[`${e}-wrap`]:{zIndex:t.zIndexPopupBase,position:"fixed",inset:0,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"},[`${e}-wrap-rtl`]:{direction:"rtl"},[`${e}-centered`]:{textAlign:"center","&::before":{display:"inline-block",width:0,height:"100%",verticalAlign:"middle",content:'""'},[e]:{top:0,display:"inline-block",paddingBottom:0,textAlign:"start",verticalAlign:"middle"}},[`@media (max-width: ${t.screenSMMax})`]:{[e]:{maxWidth:"calc(100vw - 16px)",margin:`${t.marginXS} auto`},[`${e}-centered`]:{[e]:{flex:1}}}}},{[e]:(0,r.A)((0,r.A)({},(0,l.dF)(t)),{pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:`calc(100vw - ${2*t.margin}px)`,margin:"0 auto",paddingBottom:t.paddingLG,[`${e}-title`]:{margin:0,color:t.modalHeadingColor,fontWeight:t.fontWeightStrong,fontSize:t.modalHeaderTitleFontSize,lineHeight:t.modalHeaderTitleLineHeight,wordWrap:"break-word"},[`${e}-content`]:{position:"relative",backgroundColor:t.modalContentBg,backgroundClip:"padding-box",border:0,borderRadius:t.borderRadiusLG,boxShadow:t.boxShadowSecondary,pointerEvents:"auto",padding:`${t.paddingMD}px ${t.paddingContentHorizontalLG}px`},[`${e}-close`]:(0,r.A)({position:"absolute",top:(t.modalHeaderCloseSize-t.modalCloseBtnSize)/2,insetInlineEnd:(t.modalHeaderCloseSize-t.modalCloseBtnSize)/2,zIndex:t.zIndexPopupBase+10,padding:0,color:t.modalCloseColor,fontWeight:t.fontWeightStrong,lineHeight:1,textDecoration:"none",background:"transparent",borderRadius:t.borderRadiusSM,width:t.modalConfirmIconSize,height:t.modalConfirmIconSize,border:0,outline:0,cursor:"pointer",transition:`color ${t.motionDurationMid}, background-color ${t.motionDurationMid}`,"&-x":{display:"block",fontSize:t.fontSizeLG,fontStyle:"normal",lineHeight:`${t.modalCloseBtnSize}px`,textAlign:"center",textTransform:"none",textRendering:"auto"},"&:hover":{color:t.modalIconHoverColor,backgroundColor:t.wireframe?"transparent":t.colorFillContent,textDecoration:"none"},"&:active":{backgroundColor:t.wireframe?"transparent":t.colorFillContentHover}},(0,l.K8)(t)),[`${e}-header`]:{color:t.colorText,background:t.modalHeaderBg,borderRadius:`${t.borderRadiusLG}px ${t.borderRadiusLG}px 0 0`,marginBottom:t.marginXS},[`${e}-body`]:{fontSize:t.fontSize,lineHeight:t.lineHeight,wordWrap:"break-word"},[`${e}-footer`]:{textAlign:"end",background:t.modalFooterBg,marginTop:t.marginSM,[`${t.antCls}-btn + ${t.antCls}-btn:not(${t.antCls}-dropdown-trigger)`]:{marginBottom:0,marginInlineStart:t.marginXS}},[`${e}-open`]:{overflow:"hidden"}})},{[`${e}-pure-panel`]:{top:"auto",padding:0,display:"flex",flexDirection:"column",[`${e}-content,\n ${e}-body,\n ${e}-confirm-body-wrapper`]:{display:"flex",flexDirection:"column",flex:"auto"},[`${e}-confirm-body`]:{marginBottom:"auto"}}}]},d=t=>{const{componentCls:e}=t,n=`${e}-confirm`;return{[n]:{"&-rtl":{direction:"rtl"},[`${t.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:t.colorTextHeading,fontWeight:t.fontWeightStrong,fontSize:t.modalHeaderTitleFontSize,lineHeight:t.modalHeaderTitleLineHeight,[`+ ${n}-content`]:{marginBlockStart:t.marginXS,flexBasis:"100%",maxWidth:`calc(100% - ${t.modalConfirmIconSize+t.marginSM}px)`}},[`${n}-content`]:{color:t.colorText,fontSize:t.fontSize},[`> ${t.iconCls}`]:{flex:"none",marginInlineEnd:t.marginSM,fontSize:t.modalConfirmIconSize,[`+ ${n}-title`]:{flex:1},[`+ ${n}-title + ${n}-content`]:{marginInlineStart:t.modalConfirmIconSize+t.marginSM}}},[`${n}-btns`]:{textAlign:"end",marginTop:t.marginSM,[`${t.antCls}-btn + ${t.antCls}-btn`]:{marginBottom:0,marginInlineStart:t.marginXS}}},[`${n}-error ${n}-body > ${t.iconCls}`]:{color:t.colorError},[`${n}-warning ${n}-body > ${t.iconCls},\n ${n}-confirm ${n}-body > ${t.iconCls}`]:{color:t.colorWarning},[`${n}-info ${n}-body > ${t.iconCls}`]:{color:t.colorInfo},[`${n}-success ${n}-body > ${t.iconCls}`]:{color:t.colorSuccess},[`${e}-zoom-leave ${e}-btns`]:{pointerEvents:"none"}}},p=t=>{const{componentCls:e}=t;return{[`${e}-root`]:{[`${e}-wrap-rtl`]:{direction:"rtl",[`${e}-confirm-body`]:{direction:"rtl"}}}}},f=t=>{const{componentCls:e,antCls:n}=t,r=`${e}-confirm`;return{[e]:{[`${e}-content`]:{padding:0},[`${e}-header`]:{padding:t.modalHeaderPadding,borderBottom:`${t.modalHeaderBorderWidth}px ${t.modalHeaderBorderStyle} ${t.modalHeaderBorderColorSplit}`,marginBottom:0},[`${e}-body`]:{padding:t.modalBodyPadding},[`${e}-footer`]:{padding:`${t.modalFooterPaddingVertical}px ${t.modalFooterPaddingHorizontal}px`,borderTop:`${t.modalFooterBorderWidth}px ${t.modalFooterBorderStyle} ${t.modalFooterBorderColorSplit}`,borderRadius:`0 0 ${t.borderRadiusLG}px ${t.borderRadiusLG}px`,marginTop:0}},[r]:{[`${n}-modal-body`]:{padding:`${2*t.padding}px ${2*t.padding}px ${t.paddingLG}px`},[`${r}-body`]:{[`> ${t.iconCls}`]:{marginInlineEnd:t.margin,[`+ ${r}-title + ${r}-content`]:{marginInlineStart:t.modalConfirmIconSize+t.margin}}},[`${r}-btns`]:{marginTop:t.marginLG}}}};e.A=(0,a.A)("Modal",(t=>{const e=t.padding,n=t.fontSizeHeading5,r=t.lineHeightHeading5,i=(0,s.h1)(t,{modalBodyPadding:t.paddingLG,modalHeaderBg:t.colorBgElevated,modalHeaderPadding:`${e}px ${t.paddingLG}px`,modalHeaderBorderWidth:t.lineWidth,modalHeaderBorderStyle:t.lineType,modalHeaderTitleLineHeight:r,modalHeaderTitleFontSize:n,modalHeaderBorderColorSplit:t.colorSplit,modalHeaderCloseSize:r*n+2*e,modalContentBg:t.colorBgElevated,modalHeadingColor:t.colorTextHeading,modalCloseColor:t.colorTextDescription,modalFooterBg:"transparent",modalFooterBorderColorSplit:t.colorSplit,modalFooterBorderStyle:t.lineType,modalFooterPaddingVertical:t.paddingXS,modalFooterPaddingHorizontal:t.padding,modalFooterBorderWidth:t.lineWidth,modalConfirmTitleFontSize:t.fontSizeLG,modalIconHoverColor:t.colorIconHover,modalConfirmIconSize:t.fontSize*t.lineHeight,modalCloseBtnSize:.55*t.controlHeightLG});return[h(i),d(i),p(i),c(i),t.wireframe&&f(i),(0,o.aB)(i,"zoom")]}))},45776:function(t,e,n){"use strict";var r=n(69751),i=n(73913),o=n(78753),a=n(13389),s=n(5530),l=n(46808),u=n(3551),c=n(66041),h=n(35162),d=n(20352),p=n(3277);const f=()=>({prefixCls:String,value:s.A.any,size:(0,c.WO)(),options:(0,c.MY)(),disabled:(0,c.HE)(),name:String,buttonStyle:(0,c.WO)("outline"),id:String,optionType:(0,c.WO)("default"),onChange:(0,c.Fg)(),"onUpdate:value":(0,c.Fg)()});e.A=(0,i.pM)({compatConfig:{MODE:3},name:"ARadioGroup",inheritAttrs:!1,props:f(),setup(t,e){let{slots:n,emit:s,attrs:c}=e;const f=(0,h.db)(),{prefixCls:g,direction:v,size:m}=(0,u.A)("radio",t),[y,b]=(0,p.A)(g),_=(0,o.KR)(t.value),x=(0,o.KR)(!1);(0,i.wB)((()=>t.value),(t=>{_.value=t,x.value=!1}));const w=e=>{const n=_.value,{value:r}=e.target;"value"in t||(_.value=r),x.value||r===n||(x.value=!0,s("update:value",r),s("change",e),f.onFieldChange()),(0,i.dY)((()=>{x.value=!1}))};return(0,d.yz)({onChange:w,value:_,disabled:(0,i.EW)((()=>t.disabled)),name:(0,i.EW)((()=>t.name)),optionType:(0,i.EW)((()=>t.optionType))}),()=>{var e;const{options:o,buttonStyle:s,id:u=f.id.value}=t,h=`${g.value}-group`,d=(0,a.A)(h,`${h}-${s}`,{[`${h}-${m.value}`]:m.value,[`${h}-rtl`]:"rtl"===v.value},c.class,b.value);let p=null;return p=o&&o.length>0?o.map((e=>{if("string"===typeof e||"number"===typeof e)return(0,i.bF)(l.A,{key:e,prefixCls:g.value,disabled:t.disabled,value:e,checked:_.value===e},{default:()=>[e]});const{value:n,disabled:r,label:o}=e;return(0,i.bF)(l.A,{key:`radio-group-value-options-${n}`,prefixCls:g.value,disabled:r||t.disabled,value:n,checked:_.value===n},{default:()=>[o]})})):null===(e=n.default)||void 0===e?void 0:e.call(n),y((0,i.bF)("div",(0,r.A)((0,r.A)({},c),{},{class:d,id:u}),[p]))}}})},46808:function(t,e,n){"use strict";n.d(e,{q:function(){return y}});var r=n(69751),i=n(98657),o=n(73913),a=n(78753),s=n(5530),l=n(44942),u=n(13389),c=n(3551),h=n(35162),d=n(21244),p=n(20352),f=n(66041),g=n(3277),v=n(99415),m=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n};const y=()=>({prefixCls:String,checked:(0,f.HE)(),disabled:(0,f.HE)(),isGroup:(0,f.HE)(),value:s.A.any,name:String,id:String,autofocus:(0,f.HE)(),onChange:(0,f.Fg)(),onFocus:(0,f.Fg)(),onBlur:(0,f.Fg)(),onClick:(0,f.Fg)(),"onUpdate:checked":(0,f.Fg)(),"onUpdate:value":(0,f.Fg)()});e.A=(0,o.pM)({compatConfig:{MODE:3},name:"ARadio",inheritAttrs:!1,props:y(),setup(t,e){let{emit:n,expose:s,slots:f,attrs:y}=e;const b=(0,h.db)(),_=h.$W.useInject(),x=(0,p.c7)(),w=(0,p.yt)(),O=(0,v.p)(),S=(0,o.EW)((()=>{var t;return null!==(t=M.value)&&void 0!==t?t:O.value})),A=(0,a.KR)(),{prefixCls:k,direction:C,disabled:M}=(0,c.A)("radio",t),T=(0,o.EW)((()=>"button"===(null===w||void 0===w?void 0:w.optionType.value)||"button"===x?`${k.value}-button`:k.value)),P=(0,v.p)(),[I,$]=(0,g.A)(k),E=()=>{A.value.focus()},R=()=>{A.value.blur()};s({focus:E,blur:R});const D=t=>{const e=t.target.checked;n("update:checked",e),n("update:value",e),n("change",t),b.onFieldChange()},L=t=>{n("change",t),w&&w.onChange&&w.onChange(t)};return()=>{var e;const n=w,{prefixCls:a,id:s=b.id.value}=t,c=m(t,["prefixCls","id"]),h=(0,i.A)((0,i.A)({prefixCls:T.value,id:s},(0,d.A)(c,["onUpdate:checked","onUpdate:value"])),{disabled:null!==(e=M.value)&&void 0!==e?e:P.value});n?(h.name=n.name.value,h.onChange=L,h.checked=t.value===n.value.value,h.disabled=S.value||n.disabled.value):h.onChange=D;const p=(0,u.A)({[`${T.value}-wrapper`]:!0,[`${T.value}-wrapper-checked`]:h.checked,[`${T.value}-wrapper-disabled`]:h.disabled,[`${T.value}-wrapper-rtl`]:"rtl"===C.value,[`${T.value}-wrapper-in-form-item`]:_.isFormItemInput},y.class,$.value);return I((0,o.bF)("label",(0,r.A)((0,r.A)({},y),{},{class:p}),[(0,o.bF)(l.A,(0,r.A)((0,r.A)({},h),{},{type:"radio",ref:A}),null),f.default&&(0,o.bF)("span",null,[f.default()])]))}}})},15240:function(t,e,n){"use strict";var r=n(69751),i=n(73913),o=n(46808),a=n(3551),s=n(20352);e.A=(0,i.pM)({compatConfig:{MODE:3},name:"ARadioButton",inheritAttrs:!1,props:(0,o.q)(),setup(t,e){let{slots:n,attrs:l}=e;const{prefixCls:u}=(0,a.A)("radio",t);return(0,s.kT)("button"),()=>{var e;return(0,i.bF)(o.A,(0,r.A)((0,r.A)((0,r.A)({},l),t),{},{prefixCls:u.value}),{default:()=>[null===(e=n.default)||void 0===e?void 0:e.call(n)]})}}})},20352:function(t,e,n){"use strict";n.d(e,{c7:function(){return u},kT:function(){return l},yt:function(){return a},yz:function(){return o}});var r=n(73913);const i=Symbol("radioGroupContextKey"),o=t=>{(0,r.Gt)(i,t)},a=()=>(0,r.WQ)(i,void 0),s=Symbol("radioOptionTypeContextKey"),l=t=>{(0,r.Gt)(s,t)},u=()=>(0,r.WQ)(s,void 0)},3277:function(t,e,n){"use strict";var r=n(98657),i=n(97732),o=n(94471),a=n(96704),s=n(69729);const l=new i.A("antRadioEffect",{"0%":{transform:"scale(1)",opacity:.5},"100%":{transform:"scale(1.6)",opacity:0}}),u=t=>{const{componentCls:e,antCls:n}=t,i=`${e}-group`;return{[i]:(0,r.A)((0,r.A)({},(0,s.dF)(t)),{display:"inline-block",fontSize:0,[`&${i}-rtl`]:{direction:"rtl"},[`${n}-badge ${n}-badge-count`]:{zIndex:1},[`> ${n}-badge:not(:first-child) > ${n}-button-wrapper`]:{borderInlineStart:"none"}})}},c=t=>{const{componentCls:e,radioWrapperMarginRight:n,radioCheckedColor:i,radioSize:o,motionDurationSlow:a,motionDurationMid:u,motionEaseInOut:c,motionEaseInOutCirc:h,radioButtonBg:d,colorBorder:p,lineWidth:f,radioDotSize:g,colorBgContainerDisabled:v,colorTextDisabled:m,paddingXS:y,radioDotDisabledColor:b,lineType:_,radioDotDisabledSize:x,wireframe:w,colorWhite:O}=t,S=`${e}-inner`;return{[`${e}-wrapper`]:(0,r.A)((0,r.A)({},(0,s.dF)(t)),{position:"relative",display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:n,cursor:"pointer",[`&${e}-wrapper-rtl`]:{direction:"rtl"},"&-disabled":{cursor:"not-allowed",color:t.colorTextDisabled},"&::after":{display:"inline-block",width:0,overflow:"hidden",content:'"\\a0"'},[`${e}-checked::after`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"100%",border:`${f}px ${_} ${i}`,borderRadius:"50%",visibility:"hidden",animationName:l,animationDuration:a,animationTimingFunction:c,animationFillMode:"both",content:'""'},[e]:(0,r.A)((0,r.A)({},(0,s.dF)(t)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center"}),[`${e}-wrapper:hover &,\n &:hover ${S}`]:{borderColor:i},[`${e}-input:focus-visible + ${S}`]:(0,r.A)({},(0,s.jk)(t)),[`${e}:hover::after, ${e}-wrapper:hover &::after`]:{visibility:"visible"},[`${e}-inner`]:{"&::after":{boxSizing:"border-box",position:"absolute",insetBlockStart:"50%",insetInlineStart:"50%",display:"block",width:o,height:o,marginBlockStart:o/-2,marginInlineStart:o/-2,backgroundColor:w?i:O,borderBlockStart:0,borderInlineStart:0,borderRadius:o,transform:"scale(0)",opacity:0,transition:`all ${a} ${h}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:o,height:o,backgroundColor:d,borderColor:p,borderStyle:"solid",borderWidth:f,borderRadius:"50%",transition:`all ${u}`},[`${e}-input`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,insetBlockEnd:0,insetInlineStart:0,zIndex:1,cursor:"pointer",opacity:0},[`${e}-checked`]:{[S]:{borderColor:i,backgroundColor:w?d:i,"&::after":{transform:`scale(${g/o})`,opacity:1,transition:`all ${a} ${h}`}}},[`${e}-disabled`]:{cursor:"not-allowed",[S]:{backgroundColor:v,borderColor:p,cursor:"not-allowed","&::after":{backgroundColor:b}},[`${e}-input`]:{cursor:"not-allowed"},[`${e}-disabled + span`]:{color:m,cursor:"not-allowed"},[`&${e}-checked`]:{[S]:{"&::after":{transform:`scale(${x/o})`}}}},[`span${e} + *`]:{paddingInlineStart:y,paddingInlineEnd:y}})}},h=t=>{const{radioButtonColor:e,controlHeight:n,componentCls:i,lineWidth:o,lineType:a,colorBorder:l,motionDurationSlow:u,motionDurationMid:c,radioButtonPaddingHorizontal:h,fontSize:d,radioButtonBg:p,fontSizeLG:f,controlHeightLG:g,controlHeightSM:v,paddingXS:m,borderRadius:y,borderRadiusSM:b,borderRadiusLG:_,radioCheckedColor:x,radioButtonCheckedBg:w,radioButtonHoverColor:O,radioButtonActiveColor:S,radioSolidCheckedColor:A,colorTextDisabled:k,colorBgContainerDisabled:C,radioDisabledButtonCheckedColor:M,radioDisabledButtonCheckedBg:T}=t;return{[`${i}-button-wrapper`]:{position:"relative",display:"inline-block",height:n,margin:0,paddingInline:h,paddingBlock:0,color:e,fontSize:d,lineHeight:n-2*o+"px",background:p,border:`${o}px ${a} ${l}`,borderBlockStartWidth:o+.02,borderInlineStartWidth:0,borderInlineEndWidth:o,cursor:"pointer",transition:[`color ${c}`,`background ${c}`,`border-color ${c}`,`box-shadow ${c}`].join(","),a:{color:e},[`> ${i}-button`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:first-child)":{"&::before":{position:"absolute",insetBlockStart:-o,insetInlineStart:-o,display:"block",boxSizing:"content-box",width:1,height:"100%",paddingBlock:o,paddingInline:0,backgroundColor:l,transition:`background-color ${u}`,content:'""'}},"&:first-child":{borderInlineStart:`${o}px ${a} ${l}`,borderStartStartRadius:y,borderEndStartRadius:y},"&:last-child":{borderStartEndRadius:y,borderEndEndRadius:y},"&:first-child:last-child":{borderRadius:y},[`${i}-group-large &`]:{height:g,fontSize:f,lineHeight:g-2*o+"px","&:first-child":{borderStartStartRadius:_,borderEndStartRadius:_},"&:last-child":{borderStartEndRadius:_,borderEndEndRadius:_}},[`${i}-group-small &`]:{height:v,paddingInline:m-o,paddingBlock:0,lineHeight:v-2*o+"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)(t)),[`${i}-inner, input[type='checkbox'], input[type='radio']`]:{width:0,height:0,opacity:0,pointerEvents:"none"},[`&-checked:not(${i}-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}}},[`${i}-group-solid &-checked:not(${i}-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${i}-button-wrapper-checked`]:{color:M,backgroundColor:T,borderColor:l,boxShadow:"none"}}}};e.A=(0,o.A)("Radio",(t=>{const{padding:e,lineWidth:n,controlItemBgActiveDisabled:r,colorTextDisabled:i,colorBgContainer:o,fontSizeLG:s,controlOutline:l,colorPrimaryHover:d,colorPrimaryActive:p,colorText:f,colorPrimary:g,marginXS:v,controlOutlineWidth:m,colorTextLightSolid:y,wireframe:b}=t,_=`0 0 0 ${m}px ${l}`,x=_,w=s,O=4,S=w-2*O,A=b?S:w-2*(O+n),k=g,C=f,M=d,T=p,P=e-n,I=i,$=v,E=(0,a.h1)(t,{radioFocusShadow:_,radioButtonFocusShadow:x,radioSize:w,radioDotSize:A,radioDotDisabledSize:S,radioCheckedColor:k,radioDotDisabledColor:i,radioSolidCheckedColor:y,radioButtonBg:o,radioButtonCheckedBg:o,radioButtonColor:C,radioButtonHoverColor:M,radioButtonActiveColor:T,radioButtonPaddingHorizontal:P,radioDisabledButtonCheckedBg:r,radioDisabledButtonCheckedColor:I,radioWrapperMarginRight:$});return[u(E),c(E),h(E)]}))},83436:function(t,e,n){"use strict";n.d(e,{OQ:function(){return gn},Ay:function(){return vn}});var r=n(69751),i=n(98657),o=n(73913),a=n(78753),s=n(13389),l=(n(30381),n(85194),n(27092),n(68925),n(31796),n(21467),n(22064),n(92114),n(52002));function u(t,e){const{key:n}=t;let r;return"value"in t&&({value:r}=t),null!==n&&void 0!==n?n:void 0!==r?r:`rc-index-key-${e}`}function c(t,e){const{label:n,value:r,options:i}=t||{};return{label:n||(e?"children":"label"),value:r||"value",options:i||"options"}}function h(t){let{fieldNames:e,childrenAsData:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r=[],{label:i,value:o,options:a}=c(e,!1);function s(t,e){t.forEach((t=>{const l=t[i];if(e||!(a in t)){const n=t[o];r.push({key:u(t,r.length),groupOption:e,data:t,label:l,value:n})}else{let e=l;void 0===e&&n&&(e=t.label),r.push({key:u(t,r.length),group:!0,data:t,label:e}),s(t[a],!0)}}))}return s(t,!1),r}function d(t){const e=(0,i.A)({},t);return"props"in e||Object.defineProperty(e,"props",{get(){return(0,l.$e)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),e}}),e}function p(t,e){if(!e||!e.length)return null;let n=!1;function r(t,e){let[i,...o]=e;if(!i)return[t];const a=t.split(i);return n=n||a.length>1,a.reduce(((t,e)=>[...t,...r(e,o)]),[]).filter((t=>t))}const i=r(t,e);return n?i:null}var f=n(15928),g=n(5530),v=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n};const m=t=>{const e=!0===t?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:e,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:e,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:e,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:e,adjustY:1}}}},y=(0,o.pM)({name:"SelectTrigger",inheritAttrs:!1,props:{dropdownAlign:Object,visible:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},dropdownClassName:String,dropdownStyle:g.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:g.A.oneOfType([Number,Boolean]).def(!0),popupElement:g.A.any,direction:String,getTriggerDOMNode:Function,onPopupVisibleChange:Function,onPopupMouseEnter:Function,onPopupFocusin:Function,onPopupFocusout:Function},setup(t,e){let{slots:n,attrs:l,expose:u}=e;const c=(0,o.EW)((()=>{const{dropdownMatchSelectWidth:e}=t;return m(e)})),h=(0,a.KR)();return u({getPopupElement:()=>h.value}),()=>{const e=(0,i.A)((0,i.A)({},t),l),{empty:a=!1}=e,u=v(e,["empty"]),{visible:d,dropdownAlign:p,prefixCls:g,popupElement:m,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:$}=u,E=`${g}-dropdown`;let R=m;S&&(R=S({menuNode:m,props:t}));const D=A?`${E}-${A}`:k,L=(0,i.A)({minWidth:`${O}px`},b);return"number"===typeof w?L.width=`${w}px`:w&&(L.width=`${O}px`),(0,o.bF)(f.A,(0,r.A)((0,r.A)({},t),{},{showAction:T?["click"]:[],hideAction:T?["click"]:[],popupPlacement:x||("rtl"===_?"bottomRight":"bottomLeft"),builtinPlacements:c.value,prefixCls:E,popupTransitionName:D,popupAlign:p,popupVisible:d,getPopupContainer:C,popupClassName:(0,s.A)(y,{[`${E}-empty`]:a}),popupStyle:L,getTriggerDOMNode:M,onPopupVisibleChange:T}),{default:n.default,popup:()=>(0,o.bF)("div",{ref:h,onMouseenter:P,onFocusin:I,onFocusout:$},[R])})}}});var b=y,_=n(5347);const x=(t,e)=>{let{slots:n}=e;var r;const{class:i,customizeIcon:a,customizeIconProps:s,onMousedown:l,onClick:u}=t;let c;return c="function"===typeof a?a(s):(0,o.vv)(a)?(0,o.E3)(a):a,(0,o.bF)("span",{class:i,onMousedown:t=>{t.preventDefault(),l&&l(t)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:u,"aria-hidden":!0},[void 0!==c?c:(0,o.bF)("span",{class:i.split(/\s+/).map((t=>`${t}-icon`))},[null===(r=n.default)||void 0===r?void 0:r.call(n)])])};x.inheritAttrs=!1,x.displayName="TransBtn",x.props={class:String,customizeIcon:g.A.any,customizeIconProps:g.A.any,onMousedown:Function,onClick:Function};var w=x,O=n(87051),S=n(91949);const A={inputRef:g.A.any,prefixCls:String,id:String,inputElement:g.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:g.A.oneOfType([g.A.number,g.A.string]),attrs:g.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}},k=(0,o.pM)({compatConfig:{MODE:3},name:"SelectInput",inheritAttrs:!1,props:A,setup(t){let e=null;const n=(0,o.WQ)("VCSelectContainerEvent");return()=>{var r;const{prefixCls:a,id:l,inputElement:u,disabled:c,tabindex:h,autofocus:d,autocomplete:p,editable:f,activeDescendantId:g,value:v,onKeydown:m,onMousedown:y,onChange:b,onPaste:_,onCompositionstart:x,onCompositionend:w,onFocus:A,onBlur:k,open:C,inputRef:M,attrs:T}=t;let P=u||(0,o.bF)(S.A,null,null);const I=P.props||{},{onKeydown:$,onInput:E,onFocus:R,onBlur:D,onMousedown:L,onCompositionstart:N,onCompositionend:z,style:B}=I;return P=(0,O.Ob)(P,(0,i.A)((0,i.A)((0,i.A)((0,i.A)((0,i.A)({type:"search"},I),{id:l,ref:M,disabled:c,tabindex:h,lazy:!1,autocomplete:p||"off",autofocus:d,class:(0,s.A)(`${a}-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?v:"",readonly:!f,unselectable:f?null:"on",style:(0,i.A)((0,i.A)({},B),{opacity:f?null:0}),onKeydown:t=>{m(t),$&&$(t)},onMousedown:t=>{y(t),L&&L(t)},onInput:t=>{b(t),E&&E(t)},onCompositionstart(t){x(t),N&&N(t)},onCompositionend(t){w(t),z&&z(t)},onPaste:_,onFocus:function(){clearTimeout(e),R&&R(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 t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];e=setTimeout((()=>{D&&D(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 C=k,M=n(21330),T=n(6631);const P=Symbol("TreeSelectLegacyContextPropsKey");function I(){return(0,o.WQ)(P,{})}const $={id:String,prefixCls:String,values:g.A.array,open:{type:Boolean,default:void 0},searchValue:String,inputRef:g.A.any,placeholder:g.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:g.A.oneOfType([g.A.number,g.A.string]),compositionStatus:Boolean,removeIcon:g.A.any,choiceTransitionName:String,maxTagCount:g.A.oneOfType([g.A.number,g.A.string]),maxTagTextLength:Number,maxTagPlaceholder:g.A.any.def((()=>t=>`+ ${t.length} ...`)),tagRender:Function,onToggleOpen:{type:Function},onRemove:Function,onInputChange:Function,onInputPaste:Function,onInputKeyDown:Function,onInputMouseDown:Function,onInputCompositionStart:Function,onInputCompositionEnd:Function},E=t=>{t.preventDefault(),t.stopPropagation()},R=(0,o.pM)({name:"MultipleSelectSelector",inheritAttrs:!1,props:$,setup(t){const e=(0,a.IJ)(),n=(0,a.IJ)(0),r=(0,a.IJ)(!1),i=I(),l=(0,o.EW)((()=>`${t.prefixCls}-selection`)),u=(0,o.EW)((()=>t.open||"tags"===t.mode?t.searchValue:"")),c=(0,o.EW)((()=>"tags"===t.mode||t.showSearch&&(t.open||r.value))),h=(0,a.KR)("");function d(e,n,r,i,a){return(0,o.bF)("span",{class:(0,s.A)(`${l.value}-item`,{[`${l.value}-item-disabled`]:r}),title:"string"===typeof e||"number"===typeof e?e.toString():void 0},[(0,o.bF)("span",{class:`${l.value}-item-content`},[n]),i&&(0,o.bF)(w,{class:`${l.value}-item-remove`,onMousedown:E,onClick:a,customizeIcon:t.removeIcon},{default:()=>[(0,o.eW)("×")]})])}function p(e,n,r,a,s,l){var u;const c=e=>{E(e),t.onToggleOpen(!open)};let h=l;return i.keyEntities&&(h=(null===(u=i.keyEntities[e])||void 0===u?void 0:u.node)||{}),(0,o.bF)("span",{key:e,onMousedown:c},[t.tagRender({label:n,value:e,disabled:r,closable:a,onClose:s,option:h})])}function f(e){const{disabled:n,label:r,value:i,option:o}=e,a=!t.disabled&&!n;let s=r;if("number"===typeof t.maxTagTextLength&&("string"===typeof r||"number"===typeof r)){const e=String(s);e.length>t.maxTagTextLength&&(s=`${e.slice(0,t.maxTagTextLength)}...`)}const l=n=>{var r;n&&n.stopPropagation(),null===(r=t.onRemove)||void 0===r||r.call(t,e)};return"function"===typeof t.tagRender?p(i,s,n,a,l,o):d(r,s,n,a,l)}function g(e){const{maxTagPlaceholder:n=(t=>`+ ${t.length} ...`)}=t,r="function"===typeof n?n(e):n;return d(r,r,!1)}(0,o.nT)((()=>{h.value=u.value})),(0,o.sV)((()=>{(0,o.wB)(h,(()=>{n.value=e.value.scrollWidth}),{flush:"post",immediate:!0})}));const v=e=>{const n=e.target.composing;h.value=e.target.value,n||t.onInputChange(e)};return()=>{const{id:i,prefixCls:a,values:s,open:d,inputRef:p,placeholder:m,disabled:y,autofocus:b,autocomplete:_,activeDescendantId:x,tabindex:w,compositionStatus:O,onInputPaste:S,onInputKeyDown:A,onInputMouseDown:k,onInputCompositionStart:P,onInputCompositionEnd:I}=t,$=(0,o.bF)("div",{class:`${l.value}-search`,style:{width:n.value+"px"},key:"input"},[(0,o.bF)(C,{inputRef:p,open:d,prefixCls:a,id:i,inputElement:null,disabled:y,autofocus:b,autocomplete:_,editable:c.value,activeDescendantId:x,value:h.value,onKeydown:A,onMousedown:k,onChange:v,onPaste:S,onCompositionstart:P,onCompositionend:I,tabindex:w,attrs:(0,M.A)(t,!0),onFocus:()=>r.value=!0,onBlur:()=>r.value=!1},null),(0,o.bF)("span",{ref:e,class:`${l.value}-search-mirror`,"aria-hidden":!0},[h.value,(0,o.eW)(" ")])]),E=(0,o.bF)(T.A,{prefixCls:`${l.value}-overflow`,data:s,renderItem:f,renderRest:g,suffix:$,itemKey:"key",maxCount:t.maxTagCount,key:"overflow"},null);return(0,o.bF)(o.FK,null,[E,!s.length&&!u.value&&!O&&(0,o.bF)("span",{class:`${l.value}-placeholder`},[m])])}}});var D=R;const L={inputElement:g.A.any,id:String,prefixCls:String,values:g.A.array,open:{type:Boolean,default:void 0},searchValue:String,inputRef:g.A.any,placeholder:g.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:g.A.oneOfType([g.A.number,g.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,o.pM)({name:"SingleSelector",setup(t){const e=(0,a.IJ)(!1),n=(0,o.EW)((()=>"combobox"===t.mode)),r=(0,o.EW)((()=>n.value||t.showSearch)),i=(0,o.EW)((()=>{let r=t.searchValue||"";return n.value&&t.activeValue&&!e.value&&(r=t.activeValue),r})),s=I();(0,o.wB)([n,()=>t.activeValue],(()=>{n.value&&(e.value=!1)}),{immediate:!0});const l=(0,o.EW)((()=>!("combobox"!==t.mode&&!t.open&&!t.showSearch)&&(!!i.value||t.compositionStatus))),u=(0,o.EW)((()=>{const e=t.values[0];return!e||"string"!==typeof e.label&&"number"!==typeof e.label?void 0:e.label.toString()})),c=()=>{if(t.values[0])return null;const e=l.value?{visibility:"hidden"}:void 0;return(0,o.bF)("span",{class:`${t.prefixCls}-selection-placeholder`,style:e},[t.placeholder])},h=n=>{const r=n.target.composing;r||(e.value=!0,t.onInputChange(n))};return()=>{var e,a,d,p;const{inputElement:f,prefixCls:g,id:v,values:m,inputRef:y,disabled:b,autofocus:_,autocomplete:x,activeDescendantId:w,open:O,tabindex:S,optionLabelRender:A,onInputKeyDown:k,onInputMouseDown:T,onInputPaste:P,onInputCompositionStart:I,onInputCompositionEnd:$}=t,E=m[0];let R=null;if(E&&s.customSlots){const t=null!==(e=E.key)&&void 0!==e?e:E.value,n=(null===(a=s.keyEntities[t])||void 0===a?void 0:a.node)||{};R=s.customSlots[null===(d=n.slots)||void 0===d?void 0:d.title]||s.customSlots.title||E.label,"function"===typeof R&&(R=R(n))}else R=A&&E?A(E.option):null===E||void 0===E?void 0:E.label;return(0,o.bF)(o.FK,null,[(0,o.bF)("span",{class:`${g}-selection-search`},[(0,o.bF)(C,{inputRef:y,prefixCls:g,id:v,open:O,inputElement:f,disabled:b,autofocus:_,autocomplete:x,editable:r.value,activeDescendantId:w,value:i.value,onKeydown:k,onMousedown:T,onChange:h,onPaste:P,onCompositionstart:I,onCompositionend:$,tabindex:S,attrs:(0,M.A)(t,!0)},null)]),!n.value&&E&&!l.value&&(0,o.bF)("span",{class:`${g}-selection-item`,title:u.value},[(0,o.bF)(o.FK,{key:null!==(p=E.key)&&void 0!==p?p:E.value},[R])]),c()])}}});N.props=L,N.inheritAttrs=!1;var z=N;function B(t){return![_.A.ESC,_.A.SHIFT,_.A.BACKSPACE,_.A.TAB,_.A.WIN_KEY,_.A.ALT,_.A.META,_.A.WIN_KEY_RIGHT,_.A.CTRL,_.A.SEMICOLON,_.A.EQUALS,_.A.CAPS_LOCK,_.A.CONTEXT_MENU,_.A.F1,_.A.F2,_.A.F3,_.A.F4,_.A.F5,_.A.F6,_.A.F7,_.A.F8,_.A.F9,_.A.F10,_.A.F11,_.A.F12].includes(t)}function F(){let t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:250,n=null;function r(r){(r||null===n)&&(n=r),clearTimeout(t),t=setTimeout((()=>{n=null}),e)}return(0,o.xo)((()=>{clearTimeout(t)})),[()=>n,r]}function W(){const t=e=>{t.current=e};return t}var j=W;const V=(0,o.pM)({name:"Selector",inheritAttrs:!1,props:{id:String,prefixCls:String,showSearch:{type:Boolean,default:void 0},open:{type:Boolean,default:void 0},values:g.A.array,multiple:{type:Boolean,default:void 0},mode:String,searchValue:String,activeValue:String,inputElement:g.A.any,autofocus:{type:Boolean,default:void 0},activeDescendantId:String,tabindex:g.A.oneOfType([g.A.number,g.A.string]),disabled:{type:Boolean,default:void 0},placeholder:g.A.any,removeIcon:g.A.any,maxTagCount:g.A.oneOfType([g.A.number,g.A.string]),maxTagTextLength:Number,maxTagPlaceholder:g.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(t,e){let{expose:n}=e;const i=j(),s=(0,a.KR)(!1),[l,u]=F(0),c=e=>{const{which:n}=e;n!==_.A.UP&&n!==_.A.DOWN||e.preventDefault(),t.onInputKeyDown&&t.onInputKeyDown(e),n!==_.A.ENTER||"tags"!==t.mode||s.value||t.open||t.onSearchSubmit(e.target.value),B(n)&&t.onToggleOpen(!0)},h=()=>{u(!0)};let d=null;const p=e=>{!1!==t.onSearch(e,!0,s.value)&&t.onToggleOpen(!0)},f=()=>{s.value=!0},g=e=>{s.value=!1,"combobox"!==t.mode&&p(e.target.value)},v=e=>{let{target:{value:n}}=e;if(t.tokenWithEnter&&d&&/[\r\n]/.test(d)){const t=d.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");n=n.replace(t,d)}d=null,p(n)},m=t=>{const{clipboardData:e}=t,n=e.getData("text");d=n},y=t=>{let{target:e}=t;if(e!==i.current){const t=void 0!==document.body.style.msTouchAction;t?setTimeout((()=>{i.current.focus()})):i.current.focus()}},b=e=>{const n=l();e.target===i.current||n||e.preventDefault(),("combobox"===t.mode||t.showSearch&&n)&&t.open||(t.open&&t.onSearch("",!0,!1),t.onToggleOpen())};return n({focus:()=>{i.current.focus()},blur:()=>{i.current.blur()}}),()=>{const{prefixCls:e,domRef:n,mode:a}=t,l={inputRef:i,onInputKeyDown:c,onInputMouseDown:h,onInputChange:v,onInputPaste:m,compositionStatus:s.value,onInputCompositionStart:f,onInputCompositionEnd:g},u="multiple"===a||"tags"===a?(0,o.bF)(D,(0,r.A)((0,r.A)({},t),l),null):(0,o.bF)(z,(0,r.A)((0,r.A)({},t),l),null);return(0,o.bF)("div",{ref:n,class:`${e}-selector`,onClick:y,onMousedown:b},[u])}}});var Q=V;function H(t,e,n){function r(r){var i,o,a;let s=r.target;s.shadowRoot&&r.composed&&(s=r.composedPath()[0]||s);const l=[null===(i=t[0])||void 0===i?void 0:i.value,null===(a=null===(o=t[1])||void 0===o?void 0:o.value)||void 0===a?void 0:a.getPopupElement()];e.value&&l.every((t=>t&&!t.contains(s)&&t!==s))&&n(!1)}(0,o.sV)((()=>{window.addEventListener("mousedown",r)})),(0,o.xo)((()=>{window.removeEventListener("mousedown",r)}))}function Z(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10;const e=(0,a.IJ)(!1);let n;const r=()=>{clearTimeout(n)};(0,o.sV)((()=>{r()}));const i=(i,o)=>{r(),n=setTimeout((()=>{e.value=i,o&&o()}),t)};return[e,i,r]}const G=Symbol("BaseSelectContextKey");function X(t){return(0,o.Gt)(G,t)}function U(){return(0,o.WQ)(G,{})}var Y=n(47960),q=n(16155),K=n(72510);function J(t){if(!(0,a.i9)(t))return(0,a.Kh)(t);const e=new Proxy({},{get(e,n,r){return Reflect.get(t.value,n,r)},set(e,n,r){return t.value[n]=r,!0},deleteProperty(e,n){return Reflect.deleteProperty(t.value,n)},has(e,n){return Reflect.has(t.value,n)},ownKeys(){return Object.keys(t.value)},getOwnPropertyDescriptor(){return{enumerable:!0,configurable:!0}}});return(0,a.Kh)(e)}var tt=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n};const et=["value","onChange","removeIcon","placeholder","autofocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabindex","OptionList","notFoundContent"],nt=()=>({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:g.A.any,emptyOptions:Boolean}),rt=()=>({showSearch:{type:Boolean,default:void 0},tagRender:{type:Function},optionLabelRender:{type:Function},direction:{type:String},tabindex:Number,autofocus:Boolean,notFoundContent:g.A.any,placeholder:g.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:g.A.any,tokenSeparators:{type:Array},allowClear:{type:Boolean,default:void 0},showArrow:{type:Boolean,default:void 0},inputIcon:g.A.any,clearIcon:g.A.any,removeIcon:g.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}),it=()=>(0,i.A)((0,i.A)({},nt()),rt());function ot(t){return"tags"===t||"multiple"===t}var at=(0,o.pM)({compatConfig:{MODE:3},name:"BaseSelect",inheritAttrs:!1,props:(0,Y.A)(it(),{showAction:[],notFoundContent:"Not Found"}),setup(t,e){let{attrs:n,expose:l,slots:u}=e;const c=(0,o.EW)((()=>ot(t.mode))),h=(0,o.EW)((()=>void 0!==t.showSearch?t.showSearch:c.value||"combobox"===t.mode)),d=(0,a.IJ)(!1);(0,o.sV)((()=>{d.value=(0,K.A)()}));const f=I(),g=(0,a.IJ)(null),v=j(),m=(0,a.IJ)(null),y=(0,a.IJ)(null),x=(0,a.IJ)(null),S=(0,a.KR)(!1),[A,k,C]=Z(),M=()=>{var t;null===(t=y.value)||void 0===t||t.focus()},T=()=>{var t;null===(t=y.value)||void 0===t||t.blur()};l({focus:M,blur:T,scrollTo:t=>{var e;return null===(e=x.value)||void 0===e?void 0:e.scrollTo(t)}});const P=(0,o.EW)((()=>{var e;if("combobox"!==t.mode)return t.searchValue;const n=null===(e=t.displayValues[0])||void 0===e?void 0:e.value;return"string"===typeof n||"number"===typeof n?String(n):""})),$=void 0!==t.open?t.open:t.defaultOpen,E=(0,a.IJ)($),R=(0,a.IJ)($),D=e=>{E.value=void 0!==t.open?t.open:e,R.value=E.value};(0,o.wB)((()=>t.open),(()=>{D(t.open)}));const L=(0,o.EW)((()=>!t.notFoundContent&&t.emptyOptions));(0,o.nT)((()=>{R.value=E.value,(t.disabled||L.value&&R.value&&"combobox"===t.mode)&&(R.value=!1)}));const N=(0,o.EW)((()=>!L.value&&R.value)),z=e=>{const n=void 0!==e?e:!R.value;R.value===n||t.disabled||(D(n),t.onDropdownVisibleChange&&t.onDropdownVisibleChange(n))},B=(0,o.EW)((()=>(t.tokenSeparators||[]).some((t=>["\n","\r\n"].includes(t))))),W=(e,n,r)=>{var i,o;let a=!0,s=e;null===(i=t.onActiveValueChange)||void 0===i||i.call(t,null);const l=r?null:p(e,t.tokenSeparators);return"combobox"!==t.mode&&l&&(s="",null===(o=t.onSearchSplit)||void 0===o||o.call(t,l),z(!1),a=!1),t.onSearch&&P.value!==s&&t.onSearch(s,{source:n?"typing":"effect"}),a},V=e=>{var n;e&&e.trim()&&(null===(n=t.onSearch)||void 0===n||n.call(t,e,{source:"submit"}))};(0,o.wB)(R,(()=>{R.value||c.value||"combobox"===t.mode||W("",!1,!1)}),{immediate:!0,flush:"post"}),(0,o.wB)((()=>t.disabled),(()=>{E.value&&t.disabled&&D(!1),t.disabled&&!S.value&&k(!1)}),{immediate:!0});const[G,U]=F(),Y=function(e){var n;const r=G(),{which:i}=e;if(i===_.A.ENTER&&("combobox"!==t.mode&&e.preventDefault(),R.value||z(!0)),U(!!P.value),i===_.A.BACKSPACE&&!r&&c.value&&!P.value&&t.displayValues.length){const e=[...t.displayValues];let n=null;for(let t=e.length-1;t>=0;t-=1){const r=e[t];if(!r.disabled){e.splice(t,1),n=r;break}}n&&t.onDisplayValuesChange(e,{type:"remove",values:[n]})}for(var o=arguments.length,a=new Array(o>1?o-1:0),s=1;s<o;s++)a[s-1]=arguments[s];R.value&&x.value&&x.value.onKeydown(e,...a),null===(n=t.onKeydown)||void 0===n||n.call(t,e,...a)},nt=function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];R.value&&x.value&&x.value.onKeyup(e,...r),t.onKeyup&&t.onKeyup(e,...r)},rt=e=>{const n=t.displayValues.filter((t=>t!==e));t.onDisplayValuesChange(n,{type:"remove",values:[e]})},it=(0,a.IJ)(!1),at=function(){k(!0),t.disabled||(t.onFocus&&!it.value&&t.onFocus(...arguments),t.showAction&&t.showAction.includes("focus")&&z(!0)),it.value=!0},st=(0,a.KR)(!1),lt=function(){if(st.value)return;if(S.value=!0,k(!1,(()=>{it.value=!1,S.value=!1,z(!1)})),t.disabled)return;const e=P.value;e&&("tags"===t.mode?t.onSearch(e,{source:"submit"}):"multiple"===t.mode&&t.onSearch("",{source:"blur"})),t.onBlur&&t.onBlur(...arguments)},ut=()=>{st.value=!0},ct=()=>{st.value=!1};(0,o.Gt)("VCSelectContainerEvent",{focus:at,blur:lt});const ht=[];(0,o.sV)((()=>{ht.forEach((t=>clearTimeout(t))),ht.splice(0,ht.length)})),(0,o.xo)((()=>{ht.forEach((t=>clearTimeout(t))),ht.splice(0,ht.length)}));const dt=function(e){var n,r;const{target:i}=e,o=null===(n=m.value)||void 0===n?void 0:n.getPopupElement();if(o&&o.contains(i)){const t=setTimeout((()=>{var e;const n=ht.indexOf(t);-1!==n&&ht.splice(n,1),C(),d.value||o.contains(document.activeElement)||null===(e=y.value)||void 0===e||e.focus()}));ht.push(t)}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=t.onMousedown)||void 0===r||r.call(t,e,...s)},pt=(0,a.IJ)(null),ft=()=>{};return(0,o.sV)((()=>{(0,o.wB)(N,(()=>{var t;if(N.value){const e=Math.ceil(null===(t=g.value)||void 0===t?void 0:t.offsetWidth);pt.value===e||Number.isNaN(e)||(pt.value=e)}}),{immediate:!0,flush:"post"})})),H([g,m],N,z),X(J((0,i.A)((0,i.A)({},(0,a.QW)(t)),{open:R,triggerOpen:N,showSearch:h,multiple:c,toggleOpen:z}))),()=>{const e=(0,i.A)((0,i.A)({},t),n),{prefixCls:a,id:l,open:d,defaultOpen:p,mode:_,showSearch:S,searchValue:k,onSearch:C,allowClear:M,clearIcon:T,showArrow:I,inputIcon:$,disabled:E,loading:D,getInputElement:L,getPopupContainer:F,placement:j,animation:H,transitionName:Z,dropdownStyle:G,dropdownClassName:X,dropdownMatchSelectWidth:U,dropdownRender:K,dropdownAlign:J,showAction:it,direction:ot,tokenSeparators:at,tagRender:st,optionLabelRender:lt,onPopupScroll:ht,onDropdownVisibleChange:gt,onFocus:vt,onBlur:mt,onKeyup:yt,onKeydown:bt,onMousedown:_t,onClear:xt,omitDomProps:wt,getRawInputElement:Ot,displayValues:St,onDisplayValuesChange:At,emptyOptions:kt,activeDescendantId:Ct,activeValue:Mt,OptionList:Tt}=e,Pt=tt(e,["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"]),It="combobox"===_&&L&&L()||null,$t="function"===typeof Ot&&Ot(),Et=(0,i.A)({},Pt);let Rt;$t&&(Rt=t=>{z(t)}),et.forEach((t=>{delete Et[t]})),null===wt||void 0===wt||wt.forEach((t=>{delete Et[t]}));const Dt=void 0!==I?I:D||!c.value&&"combobox"!==_;let Lt,Nt;Dt&&(Lt=(0,o.bF)(w,{class:(0,s.A)(`${a}-arrow`,{[`${a}-arrow-loading`]:D}),customizeIcon:$,customizeIconProps:{loading:D,searchValue:P.value,open:R.value,focused:A.value,showSearch:h.value}},null));const zt=()=>{null===xt||void 0===xt||xt(),At([],{type:"clear",values:St}),W("",!1,!1)};!E&&M&&(St.length||P.value)&&(Nt=(0,o.bF)(w,{class:`${a}-clear`,onMousedown:zt,customizeIcon:T},{default:()=>[(0,o.eW)("×")]}));const Bt=(0,o.bF)(Tt,{ref:x},(0,i.A)((0,i.A)({},f.customSlots),{option:u.option})),Ft=(0,s.A)(a,n.class,{[`${a}-focused`]:A.value,[`${a}-multiple`]:c.value,[`${a}-single`]:!c.value,[`${a}-allow-clear`]:M,[`${a}-show-arrow`]:Dt,[`${a}-disabled`]:E,[`${a}-loading`]:D,[`${a}-open`]:R.value,[`${a}-customize-input`]:It,[`${a}-show-search`]:h.value}),Wt=(0,o.bF)(b,{ref:m,disabled:E,prefixCls:a,visible:N.value,popupElement:Bt,containerWidth:pt.value,animation:H,transitionName:Z,dropdownStyle:G,dropdownClassName:X,direction:ot,dropdownMatchSelectWidth:U,dropdownRender:K,dropdownAlign:J,placement:j,getPopupContainer:F,empty:kt,getTriggerDOMNode:()=>v.current,onPopupVisibleChange:Rt,onPopupMouseEnter:ft,onPopupFocusin:ut,onPopupFocusout:ct},{default:()=>$t?(0,q.zO)($t)&&(0,O.Ob)($t,{ref:v},!1,!0):(0,o.bF)(Q,(0,r.A)((0,r.A)({},t),{},{domRef:v,prefixCls:a,inputElement:It,ref:y,id:l,showSearch:h.value,mode:_,activeDescendantId:Ct,tagRender:st,optionLabelRender:lt,values:St,open:R.value,onToggleOpen:z,activeValue:Mt,searchValue:P.value,onSearch:W,onSearchSubmit:V,onRemove:rt,tokenWithEnter:B.value}),null)});let jt;return jt=$t?Wt:(0,o.bF)("div",(0,r.A)((0,r.A)({},Et),{},{class:Ft,ref:g,onMousedown:dt,onKeydown:Y,onKeyup:nt}),[A.value&&!R.value&&(0,o.bF)("span",{style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0},"aria-live":"polite"},[`${St.map((t=>{let{label:e,value:n}=t;return["number","string"].includes(typeof e)?e:n})).join(", ")}`]),Wt,Lt,Nt]),jt}}}),st=n(71555);const lt=(t,e)=>{let{height:n,offset:r,prefixCls:a,onInnerResize:l}=t,{slots:u}=e;var c;let h={},d={display:"flex",flexDirection:"column"};return void 0!==r&&(h={height:`${n}px`,position:"relative",overflow:"hidden"},d=(0,i.A)((0,i.A)({},d),{transform:`translateY(${r}px)`,position:"absolute",left:0,right:0,top:0})),(0,o.bF)("div",{style:h},[(0,o.bF)(st.A,{onResize:t=>{let{offsetHeight:e}=t;e&&l&&l()}},{default:()=>[(0,o.bF)("div",{style:d,class:(0,s.A)({[`${a}-holder-inner`]:a})},[null===(c=u.default)||void 0===c?void 0:c.call(u)])]})])};lt.displayName="Filter",lt.inheritAttrs=!1,lt.props={prefixCls:String,height:Number,offset:Number,onInnerResize:Function};var ut=lt;const ct=(t,e)=>{let{setRef:n}=t,{slots:r}=e;var i;const a=(0,q.MI)(null===(i=r.default)||void 0===i?void 0:i.call(r));return a&&a.length?(0,o.E3)(a[0],{ref:n}):a};ct.props={setRef:{type:Function,default:()=>{}}};var ht=ct,dt=n(38624),pt=n(36476);const ft=20;function gt(t){return"touches"in t?t.touches[0].pageY:t.pageY}var vt=(0,o.pM)({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,a.Kh)({dragging:!1,pageY:null,startTop:null,visible:!1})}},watch:{scrollTop:{handler(){this.delayHidden()},flush:"post"}},mounted(){var t,e;null===(t=this.scrollbarRef.current)||void 0===t||t.addEventListener("touchstart",this.onScrollbarTouchStart,!!pt.A&&{passive:!1}),null===(e=this.thumbRef.current)||void 0===e||e.addEventListener("touchstart",this.onMouseDown,!!pt.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(t){t.preventDefault()},onContainerMouseDown(t){t.stopPropagation(),t.preventDefault()},patchEvents(){window.addEventListener("mousemove",this.onMouseMove),window.addEventListener("mouseup",this.onMouseUp),this.thumbRef.current.addEventListener("touchmove",this.onMouseMove,!!pt.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,!!pt.A&&{passive:!1}),this.thumbRef.current&&(this.thumbRef.current.removeEventListener("touchstart",this.onMouseDown,!!pt.A&&{passive:!1}),this.thumbRef.current.removeEventListener("touchmove",this.onMouseMove,!!pt.A&&{passive:!1}),this.thumbRef.current.removeEventListener("touchend",this.onMouseUp)),dt.A.cancel(this.moveRaf)},onMouseDown(t){const{onStartMove:e}=this.$props;(0,i.A)(this.state,{dragging:!0,pageY:gt(t),startTop:this.getTop()}),e(),this.patchEvents(),t.stopPropagation(),t.preventDefault()},onMouseMove(t){const{dragging:e,pageY:n,startTop:r}=this.state,{onScroll:i}=this.$props;if(dt.A.cancel(this.moveRaf),e){const e=gt(t)-n,o=r+e,a=this.getEnableScrollRange(),s=this.getEnableHeightRange(),l=s?o/s:0,u=Math.ceil(l*a);this.moveRaf=(0,dt.A)((()=>{i(u)}))}},onMouseUp(){const{onStopMove:t}=this.$props;this.state.dragging=!1,t(),this.removeEvents()},getSpinHeight(){const{height:t,scrollHeight:e}=this.$props;let n=t/e*100;return n=Math.max(n,ft),n=Math.min(n,t/2),Math.floor(n)},getEnableScrollRange(){const{scrollHeight:t,height:e}=this.$props;return t-e||0},getEnableHeightRange(){const{height:t}=this.$props,e=this.getSpinHeight();return t-e||0},getTop(){const{scrollTop:t}=this.$props,e=this.getEnableScrollRange(),n=this.getEnableHeightRange();if(0===t||0===e)return 0;const r=t/e;return r*n},showScroll(){const{height:t,scrollHeight:e}=this.$props;return e>t}},render(){const{dragging:t,visible:e}=this.state,{prefixCls:n}=this.$props,r=this.getSpinHeight()+"px",i=this.getTop()+"px",a=this.showScroll(),l=a&&e;return(0,o.bF)("div",{ref:this.scrollbarRef,class:(0,s.A)(`${n}-scrollbar`,{[`${n}-scrollbar-show`]:a}),style:{width:"8px",top:0,bottom:0,right:0,position:"absolute",display:l?void 0:"none"},onMousedown:this.onContainerMouseDown,onMousemove:this.delayHidden},[(0,o.bF)("div",{ref:this.thumbRef,class:(0,s.A)(`${n}-scrollbar-thumb`,{[`${n}-scrollbar-thumb-moving`]:t}),style:{width:"100%",height:r,top:i,left:0,position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:"99px",cursor:"pointer",userSelect:"none"},onMousedown:this.onMouseDown},null)])}});function mt(t,e,n,r){const i=new Map,s=new Map,l=(0,a.KR)(Symbol("update"));let u;function c(){dt.A.cancel(u)}function h(){c(),u=(0,dt.A)((()=>{i.forEach(((t,e)=>{if(t&&t.offsetParent){const{offsetHeight:n}=t;s.get(e)!==n&&(l.value=Symbol("update"),s.set(e,t.offsetHeight))}}))}))}function d(t,o){const a=e(t),s=i.get(a);o?(i.set(a,o.$el||o),h()):i.delete(a),!s!==!o&&(o?null===n||void 0===n||n(t):null===r||void 0===r||r(t))}return(0,o.wB)(t,(()=>{l.value=Symbol("update")})),(0,o.hi)((()=>{c()})),[d,h,s,l]}function yt(t,e,n,r,i,o,a,s){let l;return u=>{if(null===u||void 0===u)return void s();dt.A.cancel(l);const c=e.value,h=r.itemHeight;if("number"===typeof u)a(u);else if(u&&"object"===typeof u){let e;const{align:r}=u;"index"in u?({index:e}=u):e=c.findIndex((t=>i(t)===u.key));const{offset:s=0}=u,d=(u,p)=>{if(u<0||!t.value)return;const f=t.value.clientHeight;let g=!1,v=p;if(f){const o=p||r;let l=0,u=0,d=0;const m=Math.min(c.length,e);for(let t=0;t<=m;t+=1){const r=i(c[t]);u=l;const o=n.get(r);d=u+(void 0===o?h:o),l=d,t===e&&void 0===o&&(g=!0)}const y=t.value.scrollTop;let b=null;switch(o){case"top":b=u-s;break;case"bottom":b=d-f+s;break;default:{const t=y+f;u<y?v="top":d>t&&(v="bottom")}}null!==b&&b!==y&&a(b)}l=(0,dt.A)((()=>{g&&o(),d(u-1,v)}),2)};d(5)}}}const bt="object"===typeof navigator&&/Firefox/i.test(navigator.userAgent);var _t=bt,xt=(t,e)=>{let n=!1,r=null;function i(){clearTimeout(r),n=!0,r=setTimeout((()=>{n=!1}),50)}return function(o){let a=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const s=o<0&&t.value||o>0&&e.value;return a&&s?(clearTimeout(r),n=!1):s&&!n||i(),!n&&s}};function wt(t,e,n,r){let i=0,o=null,a=null,s=!1;const l=xt(e,n);function u(e){if(!t.value)return;dt.A.cancel(o);const{deltaY:n}=e;i+=n,a=n,l(n)||(_t||e.preventDefault(),o=(0,dt.A)((()=>{const t=s?10:1;r(i*t),i=0})))}function c(e){t.value&&(s=e.detail===a)}return[u,c]}const Ot=14/15;function St(t,e,n){let r=!1,i=0,a=null,s=null;const l=()=>{a&&(a.removeEventListener("touchmove",u),a.removeEventListener("touchend",c))},u=t=>{if(r){const e=Math.ceil(t.touches[0].pageY);let r=i-e;i=e,n(r)&&t.preventDefault(),clearInterval(s),s=setInterval((()=>{r*=Ot,(!n(r,!0)||Math.abs(r)<=.1)&&clearInterval(s)}),16)}},c=()=>{r=!1,l()},h=t=>{l(),1!==t.touches.length||r||(r=!0,i=Math.ceil(t.touches[0].pageY),a=t.target,a.addEventListener("touchmove",u,{passive:!1}),a.addEventListener("touchend",c))},d=()=>{};(0,o.sV)((()=>{document.addEventListener("touchmove",d,{passive:!1}),(0,o.wB)(t,(t=>{e.value.removeEventListener("touchstart",h),l(),clearInterval(s),t&&e.value.addEventListener("touchstart",h,{passive:!1})}),{immediate:!0})})),(0,o.xo)((()=>{document.removeEventListener("touchmove",d)}))}var At=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n};const kt=[],Ct={overflowY:"auto",overflowAnchor:"none"};function Mt(t,e,n,r,i,a){let{getKey:s}=a;return t.slice(e,n+1).map(((t,n)=>{const a=e+n,l=i(t,a,{}),u=s(t);return(0,o.bF)(ht,{key:u,setRef:e=>r(t,e)},{default:()=>[l]})}))}const Tt=(0,o.pM)({compatConfig:{MODE:3},name:"List",inheritAttrs:!1,props:{prefixCls:String,data:g.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(t,e){let{expose:n}=e;const r=(0,o.EW)((()=>{const{height:e,itemHeight:n,virtual:r}=t;return!(!1===r||!e||!n)})),s=(0,o.EW)((()=>{const{height:e,itemHeight:n,data:i}=t;return r.value&&i&&n*i.length>e})),l=(0,a.Kh)({scrollTop:0,scrollMoving:!1}),u=(0,o.EW)((()=>t.data||kt)),c=(0,a.IJ)([]);(0,o.wB)(u,(()=>{c.value=(0,a.ux)(u.value).slice()}),{immediate:!0});const h=(0,a.IJ)((t=>{}));(0,o.wB)((()=>t.itemKey),(t=>{h.value="function"===typeof t?t:e=>null===e||void 0===e?void 0:e[t]}),{immediate:!0});const d=(0,a.IJ)(),p=(0,a.IJ)(),f=(0,a.IJ)(),g=t=>h.value(t),v={getKey:g};function m(t){let e;e="function"===typeof t?t(l.scrollTop):t;const n=A(e);d.value&&(d.value.scrollTop=n),l.scrollTop=n}const[y,b,_,x]=mt(c,g,null,null),w=(0,a.Kh)({scrollHeight:void 0,start:0,end:0,offset:void 0}),O=(0,a.IJ)(0);(0,o.sV)((()=>{(0,o.dY)((()=>{var t;O.value=(null===(t=p.value)||void 0===t?void 0:t.offsetHeight)||0}))})),(0,o.$u)((()=>{(0,o.dY)((()=>{var t;O.value=(null===(t=p.value)||void 0===t?void 0:t.offsetHeight)||0}))})),(0,o.wB)([r,c],(()=>{r.value||(0,i.A)(w,{scrollHeight:void 0,start:0,end:c.value.length-1,offset:void 0})}),{immediate:!0}),(0,o.wB)([r,c,O,s],(()=>{r.value&&!s.value&&(0,i.A)(w,{scrollHeight:O.value,start:0,end:c.value.length-1,offset:void 0}),d.value&&(l.scrollTop=d.value.scrollTop)}),{immediate:!0}),(0,o.wB)([s,r,()=>l.scrollTop,c,x,()=>t.height,O],(()=>{if(!r.value||!s.value)return;let e,n,o,a=0;const u=c.value.length,h=c.value,d=l.scrollTop,{itemHeight:p,height:f}=t,v=d+f;for(let t=0;t<u;t+=1){const r=h[t],i=g(r);let s=_.get(i);void 0===s&&(s=p);const l=a+s;void 0===e&&l>=d&&(e=t,n=a),void 0===o&&l>v&&(o=t),a=l}void 0===e&&(e=0,n=0,o=Math.ceil(f/p)),void 0===o&&(o=u-1),o=Math.min(o+1,u),(0,i.A)(w,{scrollHeight:a,start:e,end:o,offset:n})}),{immediate:!0});const S=(0,o.EW)((()=>w.scrollHeight-t.height));function A(t){let e=t;return Number.isNaN(S.value)||(e=Math.min(e,S.value)),e=Math.max(e,0),e}const k=(0,o.EW)((()=>l.scrollTop<=0)),C=(0,o.EW)((()=>l.scrollTop>=S.value)),M=xt(k,C);function T(t){const e=t;m(e)}function P(e){var n;const{scrollTop:r}=e.currentTarget;r!==l.scrollTop&&m(r),null===(n=t.onScroll)||void 0===n||n.call(t,e)}const[I,$]=wt(r,k,C,(t=>{m((e=>{const n=e+t;return n}))}));function E(t){r.value&&t.preventDefault()}St(r,d,((t,e)=>!M(t,e)&&(I({preventDefault(){},deltaY:t}),!0)));const R=()=>{d.value&&(d.value.removeEventListener("wheel",I,!!pt.A&&{passive:!1}),d.value.removeEventListener("DOMMouseScroll",$),d.value.removeEventListener("MozMousePixelScroll",E))};(0,o.nT)((()=>{(0,o.dY)((()=>{d.value&&(R(),d.value.addEventListener("wheel",I,!!pt.A&&{passive:!1}),d.value.addEventListener("DOMMouseScroll",$),d.value.addEventListener("MozMousePixelScroll",E))}))})),(0,o.xo)((()=>{R()}));const D=yt(d,c,_,t,g,b,m,(()=>{var t;null===(t=f.value)||void 0===t||t.delayHidden()}));n({scrollTo:D});const L=(0,o.EW)((()=>{let e=null;return t.height&&(e=(0,i.A)({[t.fullHeight?"height":"maxHeight"]:t.height+"px"},Ct),r.value&&(e.overflowY="hidden",l.scrollMoving&&(e.pointerEvents="none"))),e}));(0,o.wB)([()=>w.start,()=>w.end,c],(()=>{if(t.onVisibleChange){const e=c.value.slice(w.start,w.end+1);t.onVisibleChange(e,c.value)}}),{flush:"post"});const N=()=>{var t;null===(t=f.value)||void 0===t||t.delayHidden()};return{state:l,mergedData:c,componentStyle:L,onFallbackScroll:P,onScrollBar:T,componentRef:d,useVirtual:r,calRes:w,collectHeight:b,setInstance:y,sharedConfig:v,scrollBarRef:f,fillerInnerRef:p,delayHideScrollBar:N}},render(){const t=(0,i.A)((0,i.A)({},this.$props),this.$attrs),{prefixCls:e="rc-virtual-list",height:n,itemHeight:a,fullHeight:l,data:u,itemKey:c,virtual:h,component:d="div",onScroll:p,children:f=this.$slots.default,style:g,class:v}=t,m=At(t,["prefixCls","height","itemHeight","fullHeight","data","itemKey","virtual","component","onScroll","children","style","class"]),y=(0,s.A)(e,v),{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,o.bF)("div",(0,r.A)({style:(0,i.A)((0,i.A)({},g),{position:"relative"}),class:y},m),[(0,o.bF)(d,{class:`${e}-holder`,style:S,ref:"componentRef",onScroll:A,onMouseenter:$},{default:()=>[(0,o.bF)(ut,{prefixCls:e,height:_,offset:x,onInnerResize:M,ref:"fillerInnerRef"},{default:()=>Mt(I,w,O,P,f,T)})]}),C&&(0,o.bF)(vt,{ref:"scrollBarRef",prefixCls:e,scrollTop:b,height:n,scrollHeight:_,count:I.length,onScroll:k,onStartMove:()=>{this.state.scrollMoving=!0},onStopMove:()=>{this.state.scrollMoving=!1}},null)])}});var Pt=Tt,It=Pt;function $t(t,e,n){const r=(0,a.KR)(t());return(0,o.wB)(e,((e,i)=>{n?n(e,i)&&(r.value=t()):r.value=t()})),r}function Et(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var Rt=n(21244);const Dt=Symbol("SelectContextKey");function Lt(t){return(0,o.Gt)(Dt,t)}function Nt(){return(0,o.WQ)(Dt,{})}var zt=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n};function Bt(t){return"string"===typeof t||"number"===typeof t}const Ft=(0,o.pM)({compatConfig:{MODE:3},name:"OptionList",inheritAttrs:!1,setup(t,e){let{expose:n,slots:i}=e;const l=U(),u=Nt(),c=(0,o.EW)((()=>`${l.prefixCls}-item`)),h=$t((()=>u.flattenOptions),[()=>l.open,()=>u.flattenOptions],(t=>t[0])),d=j(),p=t=>{t.preventDefault()},f=t=>{d.current&&d.current.scrollTo("number"===typeof t?{index:t}:t)},g=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;const n=h.value.length;for(let r=0;r<n;r+=1){const i=(t+r*e+n)%n,{group:o,data:a}=h.value[i];if(!o&&!a.disabled)return i}return-1},v=(0,a.Kh)({activeIndex:g(0)}),m=function(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];v.activeIndex=t;const n={source:e?"keyboard":"mouse"},r=h.value[t];r?u.onActiveValue(r.value,t,n):u.onActiveValue(null,-1,n)};(0,o.wB)([()=>h.value.length,()=>l.searchValue],(()=>{m(!1!==u.defaultActiveFirstOption?g(0):-1)}),{immediate:!0});const y=t=>u.rawValues.has(t)&&"combobox"!==l.mode;(0,o.wB)([()=>l.open,()=>l.searchValue],(()=>{if(!l.multiple&&l.open&&1===u.rawValues.size){const t=Array.from(u.rawValues)[0],e=(0,a.ux)(h.value).findIndex((e=>{let{data:n}=e;return n[u.fieldNames.value]===t}));-1!==e&&(m(e),(0,o.dY)((()=>{f(e)})))}l.open&&(0,o.dY)((()=>{var t;null===(t=d.current)||void 0===t||t.scrollTo(void 0)}))}),{immediate:!0,flush:"post"});const b=t=>{void 0!==t&&u.onSelect(t,{selected:!u.rawValues.has(t)}),l.multiple||l.toggleOpen(!1)},x=t=>"function"===typeof t.label?t.label():t.label;function O(t){const e=h.value[t];if(!e)return null;const n=e.data||{},{value:i}=n,{group:a}=e,s=(0,M.A)(n,!0),u=x(e);return e?(0,o.bF)("div",(0,r.A)((0,r.A)({"aria-label":"string"!==typeof u||a?null:u},s),{},{key:t,role:a?"presentation":"option",id:`${l.id}_list_${t}`,"aria-selected":y(i)}),[i]):null}const S=t=>{const{which:e,ctrlKey:n}=t;switch(e){case _.A.N:case _.A.P:case _.A.UP:case _.A.DOWN:{let t=0;if(e===_.A.UP?t=-1:e===_.A.DOWN?t=1:Et()&&n&&(e===_.A.N?t=1:e===_.A.P&&(t=-1)),0!==t){const e=g(v.activeIndex+t,t);f(e),m(e,!0)}break}case _.A.ENTER:{const e=h.value[v.activeIndex];e&&!e.data.disabled?b(e.value):b(void 0),l.open&&t.preventDefault();break}case _.A.ESC:l.toggleOpen(!1),l.open&&t.stopPropagation()}},A=()=>{},k=t=>{f(t)};return n({onKeydown:S,onKeyup:A,scrollTo:k}),()=>{const{id:t,notFoundContent:e,onPopupScroll:n}=l,{menuItemSelectedIcon:a,fieldNames:f,virtual:g,listHeight:_,listItemHeight:S}=u,A=i.option,{activeIndex:k}=v,C=Object.keys(f).map((t=>f[t]));return 0===h.value.length?(0,o.bF)("div",{role:"listbox",id:`${t}_list`,class:`${c.value}-empty`,onMousedown:p},[e]):(0,o.bF)(o.FK,null,[(0,o.bF)("div",{role:"listbox",id:`${t}_list`,style:{height:0,width:0,overflow:"hidden"}},[O(k-1),O(k),O(k+1)]),(0,o.bF)(It,{itemKey:"key",ref:d,data:h.value,height:_,itemHeight:S,fullHeight:!1,onMousedown:p,onScroll:n,virtual:g},{default:(t,e)=>{var n;const{group:i,groupOption:l,data:u,value:h}=t,{key:d}=u,p="function"===typeof t.label?t.label():t.label;if(i){const t=null!==(n=u.title)&&void 0!==n?n:Bt(p)&&p;return(0,o.bF)("div",{class:(0,s.A)(c.value,`${c.value}-group`),title:t},[A?A(u):void 0!==p?p:d])}const{disabled:f,title:g,children:v,style:_,class:O,className:S}=u,M=zt(u,["disabled","title","children","style","class","className"]),T=(0,Rt.A)(M,C),P=y(h),I=`${c.value}-option`,$=(0,s.A)(c.value,I,O,S,{[`${I}-grouped`]:l,[`${I}-active`]:k===e&&!f,[`${I}-disabled`]:f,[`${I}-selected`]:P}),E=x(t),R=!a||"function"===typeof a||P,D="number"===typeof E?E:E||h;let L=Bt(D)?D.toString():void 0;return void 0!==g&&(L=g),(0,o.bF)("div",(0,r.A)((0,r.A)({},T),{},{"aria-selected":P,class:$,title:L,onMousemove:t=>{M.onMousemove&&M.onMousemove(t),k===e||f||m(e)},onClick:t=>{f||b(h),M.onClick&&M.onClick(t)},style:_}),[(0,o.bF)("div",{class:`${I}-content`},[A?A(u):D]),(0,q.zO)(a)||P,R&&(0,o.bF)(w,{class:`${c.value}-option-state`,customizeIcon:a,customizeIconProps:{isSelected:P}},{default:()=>[P?"✓":null]})])}})])}}});var Wt=Ft,jt=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n};function Vt(t){const e=t,{key:n,children:r}=e,o=e.props,{value:a,disabled:s}=o,l=jt(o,["value","disabled"]),u=null===r||void 0===r?void 0:r.default;return(0,i.A)({key:n,value:void 0!==a?a:n,children:u,disabled:s||""===s},l)}function Qt(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=(0,q.MI)(t).map(((t,n)=>{var r;if(!(0,q.zO)(t)||!t.type)return null;const{type:{isSelectOptGroup:o},key:a,children:s,props:l}=t;if(e||!o)return Vt(t);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,i.A)((0,i.A)({key:`__RC_SELECT_GRP__${null===a?n:String(a)}__`},l),{label:c,options:Qt(u||[])})})).filter((t=>t));return n}function Ht(t,e,n){const r=(0,a.IJ)(),i=(0,a.IJ)(),s=(0,a.IJ)(),l=(0,a.IJ)([]);return(0,o.wB)([t,e],(()=>{t.value?l.value=(0,a.ux)(t.value).slice():l.value=Qt(e.value)}),{immediate:!0,deep:!0}),(0,o.nT)((()=>{const t=l.value,e=new Map,o=new Map,a=n.value;function u(t){let n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];for(let r=0;r<t.length;r+=1){const i=t[r];!i[a.options]||n?(e.set(i[a.value],i),o.set(i[a.label],i)):u(i[a.options],!0)}}u(t),r.value=t,i.value=e,s.value=o})),{options:r,valueOptions:i,labelOptions:s}}var Zt=n(58590);let Gt=0;const Xt=(0,Zt.A)();function Ut(){let t;return Xt?(t=Gt,Gt+=1):t="TEST_OR_SSR",t}function Yt(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:(0,a.KR)("");const e=`rc_select_${Ut()}`;return t.value||e}function qt(t){return Array.isArray(t)?t:void 0!==t?[t]:[]}"undefined"!==typeof window&&window.document&&window.document.documentElement;function Kt(t,e){return qt(t).join("").toUpperCase().includes(e)}var Jt=(t,e,n,r,a)=>(0,o.EW)((()=>{const o=n.value,s=null===a||void 0===a?void 0:a.value,l=null===r||void 0===r?void 0:r.value;if(!o||!1===l)return t.value;const{options:u,label:c,value:h}=e.value,p=[],f="function"===typeof l,g=o.toUpperCase(),v=f?l:(t,e)=>s?Kt(e[s],g):e[u]?Kt(e["children"!==c?c:"label"],g):Kt(e[h],g),m=f?t=>d(t):t=>t;return t.value.forEach((t=>{if(t[u]){const e=v(o,m(t));if(e)p.push(t);else{const e=t[u].filter((t=>v(o,m(t))));e.length&&p.push((0,i.A)((0,i.A)({},t),{[u]:e}))}}else v(o,m(t))&&p.push(t)})),p})),te=(t,e)=>{const n=(0,a.IJ)({values:new Map,options:new Map}),r=(0,o.EW)((()=>{const{values:r,options:o}=n.value,a=t.value.map((t=>{var e;return void 0===t.label?(0,i.A)((0,i.A)({},t),{label:null===(e=r.get(t.value))||void 0===e?void 0:e.label}):t})),s=new Map,l=new Map;return a.forEach((t=>{s.set(t.value,t),l.set(t.value,e.value.get(t.value)||o.get(t.value))})),n.value.values=s,n.value.options=l,a})),s=t=>e.value.get(t)||n.value.options.get(t);return[r,s]},ee=n(68740),ne=n(6340);const re=["inputValue"];function ie(){return(0,i.A)((0,i.A)({},rt()),{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:g.A.any,mode:String,labelInValue:{type:Boolean,default:void 0},value:g.A.any,defaultValue:g.A.any,onChange:Function,children:Array})}function oe(t){return!t||"object"!==typeof t}var ae=(0,o.pM)({compatConfig:{MODE:3},name:"VcSelect",inheritAttrs:!1,props:(0,Y.A)(ie(),{prefixCls:"vc-select",autoClearSearchValue:!0,listHeight:200,listItemHeight:20,dropdownMatchSelectWidth:!0}),setup(t,e){let{expose:n,attrs:s,slots:l}=e;const u=Yt((0,a.lW)(t,"id")),p=(0,o.EW)((()=>ot(t.mode))),f=(0,o.EW)((()=>!(t.options||!t.children))),g=(0,o.EW)((()=>(void 0!==t.filterOption||"combobox"!==t.mode)&&t.filterOption)),v=(0,o.EW)((()=>c(t.fieldNames,f.value))),[m,y]=(0,ee.A)("",{value:(0,o.EW)((()=>void 0!==t.searchValue?t.searchValue:t.inputValue)),postState:t=>t||""}),b=Ht((0,a.lW)(t,"options"),(0,a.lW)(t,"children"),v),{valueOptions:_,labelOptions:x,options:w}=b,O=e=>{const n=qt(e);return n.map((e=>{var n,r;let i,o,a,s;oe(e)?i=e:(a=e.key,o=e.label,i=null!==(n=e.value)&&void 0!==n?n:a);const l=_.value.get(i);return l&&(void 0===o&&(o=null===l||void 0===l?void 0:l[t.optionLabelProp||v.value.label]),void 0===a&&(a=null!==(r=null===l||void 0===l?void 0:l.key)&&void 0!==r?r:i),s=null===l||void 0===l?void 0:l.disabled),{label:o,value:i,key:a,disabled:s,option:l}}))},[S,A]=(0,ee.A)(t.defaultValue,{value:(0,a.lW)(t,"value")}),k=(0,o.EW)((()=>{var e;const n=O(S.value);return"combobox"!==t.mode||(null===(e=n[0])||void 0===e?void 0:e.value)?n:[]})),[C,M]=te(k,_),T=(0,o.EW)((()=>{if(!t.mode&&1===C.value.length){const t=C.value[0];if(null===t.value&&(null===t.label||void 0===t.label))return[]}return C.value.map((t=>{var e;return(0,i.A)((0,i.A)({},t),{label:null!==(e="function"===typeof t.label?t.label():t.label)&&void 0!==e?e:t.value})}))})),P=(0,o.EW)((()=>new Set(C.value.map((t=>t.value)))));(0,o.nT)((()=>{var e;if("combobox"===t.mode){const t=null===(e=C.value[0])||void 0===e?void 0:e.value;void 0!==t&&null!==t&&y(String(t))}}),{flush:"post"});const I=(t,e)=>{const n=null!==e&&void 0!==e?e:t;return{[v.value.value]:t,[v.value.label]:n}},$=(0,a.IJ)();(0,o.nT)((()=>{if("tags"!==t.mode)return void($.value=w.value);const e=w.value.slice(),n=t=>_.value.has(t);[...C.value].sort(((t,e)=>t.value<e.value?-1:1)).forEach((t=>{const r=t.value;n(r)||e.push(I(r,t.label))})),$.value=e}));const E=Jt($,v,m,g,(0,a.lW)(t,"optionFilterProp")),R=(0,o.EW)((()=>"tags"!==t.mode||!m.value||E.value.some((e=>e[t.optionFilterProp||"value"]===m.value))?E.value:[I(m.value),...E.value])),D=(0,o.EW)((()=>t.filterSort?[...R.value].sort(((e,n)=>t.filterSort(e,n))):R.value)),L=(0,o.EW)((()=>h(D.value,{fieldNames:v.value,childrenAsData:f.value}))),N=e=>{const n=O(e);if(A(n),t.onChange&&(n.length!==C.value.length||n.some(((t,e)=>{var n;return(null===(n=C.value[e])||void 0===n?void 0:n.value)!==(null===t||void 0===t?void 0:t.value)})))){const e=t.labelInValue?n.map((t=>(0,i.A)((0,i.A)({},t),{originLabel:t.label,label:"function"===typeof t.label?t.label():t.label}))):n.map((t=>t.value)),r=n.map((t=>d(M(t.value))));t.onChange(p.value?e:e[0],p.value?r:r[0])}},[z,B]=(0,ne.A)(null),[F,W]=(0,ne.A)(0),j=(0,o.EW)((()=>void 0!==t.defaultActiveFirstOption?t.defaultActiveFirstOption:"combobox"!==t.mode)),V=function(e,n){let{source:r="keyboard"}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};W(n),t.backfill&&"combobox"===t.mode&&null!==e&&"keyboard"===r&&B(String(e))},Q=(e,n)=>{const r=()=>{var n;const r=M(e),i=null===r||void 0===r?void 0:r[v.value.label];return[t.labelInValue?{label:"function"===typeof i?i():i,originLabel:i,value:e,key:null!==(n=null===r||void 0===r?void 0:r.key)&&void 0!==n?n:e}:e,d(r)]};if(n&&t.onSelect){const[e,n]=r();t.onSelect(e,n)}else if(!n&&t.onDeselect){const[e,n]=r();t.onDeselect(e,n)}},H=(e,n)=>{let r;const i=!p.value||n.selected;r=i?p.value?[...C.value,e]:[e]:C.value.filter((t=>t.value!==e)),N(r),Q(e,i),"combobox"===t.mode?B(""):p.value&&!t.autoClearSearchValue||(y(""),B(""))},Z=(t,e)=>{N(t),"remove"!==e.type&&"clear"!==e.type||e.values.forEach((t=>{Q(t.value,!1)}))},G=(e,n)=>{var r;if(y(e),B(null),"submit"!==n.source)"blur"!==n.source&&("combobox"===t.mode&&N(e),null===(r=t.onSearch)||void 0===r||r.call(t,e));else{const t=(e||"").trim();if(t){const e=Array.from(new Set([...P.value,t]));N(e),Q(t,!0),y("")}}},X=e=>{let n=e;"tags"!==t.mode&&(n=e.map((t=>{const e=x.value.get(t);return null===e||void 0===e?void 0:e.value})).filter((t=>void 0!==t)));const r=Array.from(new Set([...P.value,...n]));N(r),r.forEach((t=>{Q(t,!0)}))},U=(0,o.EW)((()=>!1!==t.virtual&&!1!==t.dropdownMatchSelectWidth));Lt(J((0,i.A)((0,i.A)({},b),{flattenOptions:L,onActiveValue:V,defaultActiveFirstOption:j,onSelect:H,menuItemSelectedIcon:(0,a.lW)(t,"menuItemSelectedIcon"),rawValues:P,fieldNames:v,virtual:U,listHeight:(0,a.lW)(t,"listHeight"),listItemHeight:(0,a.lW)(t,"listItemHeight"),childrenAsData:f})));const Y=(0,a.KR)();n({focus(){var t;null===(t=Y.value)||void 0===t||t.focus()},blur(){var t;null===(t=Y.value)||void 0===t||t.blur()},scrollTo(t){var e;null===(e=Y.value)||void 0===e||e.scrollTo(t)}});const q=(0,o.EW)((()=>(0,Rt.A)(t,["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,o.bF)(at,(0,r.A)((0,r.A)((0,r.A)({},q.value),s),{},{id:u,prefixCls:t.prefixCls,ref:Y,omitDomProps:re,mode:t.mode,displayValues:T.value,onDisplayValuesChange:Z,searchValue:m.value,onSearch:G,onSearchSplit:X,dropdownMatchSelectWidth:t.dropdownMatchSelectWidth,OptionList:Wt,emptyOptions:!L.value.length,activeValue:z.value,activeDescendantId:`${u}_list_${F.value}`}),l)}});const se=()=>null;se.isSelectOption=!0,se.displayName="ASelectOption";var le=se;const ue=()=>null;ue.isSelectOptGroup=!0,ue.displayName="ASelectOptGroup";var ce=ue,he=ae,de=n(27577),pe=n(2167),fe={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"},ge=fe,ve=n(29847);function me(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?Object(arguments[e]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),r.forEach((function(e){ye(t,e,n[e])}))}return t}function ye(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var be=function(t,e){var n=me({},t,e.attrs);return(0,o.bF)(ve.A,me({},n,{icon:ge}),null)};be.displayName="CheckOutlined",be.inheritAttrs=!1;var _e=be,xe=n(23273),we=n(82339),Oe=n(82205);function Se(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{loading:n,multiple:r,prefixCls:i,hasFeedback:a,feedbackIcon:s,showArrow:l}=t,u=t.suffixIcon||e.suffixIcon&&e.suffixIcon(),c=t.clearIcon||e.clearIcon&&e.clearIcon(),h=t.menuItemSelectedIcon||e.menuItemSelectedIcon&&e.menuItemSelectedIcon(),d=t.removeIcon||e.removeIcon&&e.removeIcon(),p=null!==c&&void 0!==c?c:(0,o.bF)(we.A,null,null),f=t=>(0,o.bF)(o.FK,null,[!1!==l&&t,a&&s]);let g=null;if(void 0!==u)g=f(u);else if(n)g=f((0,o.bF)(pe.A,{spin:!0},null));else{const t=`${i}-suffix`;g=e=>{let{open:n,showSearch:r}=e;return f(n&&r?(0,o.bF)(Oe.A,{class:t},null):(0,o.bF)(de.A,{class:t},null))}}let v=null;v=void 0!==h?h:r?(0,o.bF)(_e,null,null):null;let m=null;return m=void 0!==d?d:(0,o.bF)(xe.A,null,null),{clearIcon:p,suffixIcon:g,itemIcon:v,removeIcon:m}}var Ae=n(3551),ke=n(40493),Ce=n(35162),Me=n(41038),Te=n(64854),Pe=n(66041),Ie=n(45507),$e=n(96704),Ee=n(94471),Re=n(67177),De=n(97732),Le=n(276);const Ne=new De.A("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),ze=new De.A("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),Be=new De.A("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Fe=new De.A("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),We=new De.A("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),je=new De.A("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),Ve=new De.A("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Qe=new De.A("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),He={"move-up":{inKeyframes:Ve,outKeyframes:Qe},"move-down":{inKeyframes:Ne,outKeyframes:ze},"move-left":{inKeyframes:Be,outKeyframes:Fe},"move-right":{inKeyframes:We,outKeyframes:je}},Ze=(t,e)=>{const{antCls:n}=t,r=`${n}-${e}`,{inKeyframes:i,outKeyframes:o}=He[e];return[(0,Le.b)(r,i,o,t.motionDurationMid),{[`\n ${r}-enter,\n ${r}-appear\n `]:{opacity:0,animationTimingFunction:t.motionEaseOutCirc},[`${r}-leave`]:{animationTimingFunction:t.motionEaseInOutCirc}}]};var Ge=n(69729);const Xe=t=>{const{controlPaddingHorizontal:e}=t;return{position:"relative",display:"block",minHeight:t.controlHeight,padding:`${(t.controlHeight-t.fontSize*t.lineHeight)/2}px ${e}px`,color:t.colorText,fontWeight:"normal",fontSize:t.fontSize,lineHeight:t.lineHeight,boxSizing:"border-box"}},Ue=t=>{const{antCls:e,componentCls:n}=t,r=`${n}-item`;return[{[`${n}-dropdown`]:(0,i.A)((0,i.A)({},(0,Ge.dF)(t)),{position:"absolute",top:-9999,zIndex:t.zIndexPopup,boxSizing:"border-box",padding:t.paddingXXS,overflow:"hidden",fontSize:t.fontSize,fontVariant:"initial",backgroundColor:t.colorBgElevated,borderRadius:t.borderRadiusLG,outline:"none",boxShadow:t.boxShadowSecondary,[`\n &${e}-slide-up-enter${e}-slide-up-enter-active${n}-dropdown-placement-bottomLeft,\n &${e}-slide-up-appear${e}-slide-up-appear-active${n}-dropdown-placement-bottomLeft\n `]:{animationName:Re.ox},[`\n &${e}-slide-up-enter${e}-slide-up-enter-active${n}-dropdown-placement-topLeft,\n &${e}-slide-up-appear${e}-slide-up-appear-active${n}-dropdown-placement-topLeft\n `]:{animationName:Re.nP},[`&${e}-slide-up-leave${e}-slide-up-leave-active${n}-dropdown-placement-bottomLeft`]:{animationName:Re.vR},[`&${e}-slide-up-leave${e}-slide-up-leave-active${n}-dropdown-placement-topLeft`]:{animationName:Re.YU},"&-hidden":{display:"none"},"&-empty":{color:t.colorTextDisabled},[`${r}-empty`]:(0,i.A)((0,i.A)({},Xe(t)),{color:t.colorTextDisabled}),[`${r}`]:(0,i.A)((0,i.A)({},Xe(t)),{cursor:"pointer",transition:`background ${t.motionDurationSlow} ease`,borderRadius:t.borderRadiusSM,"&-group":{color:t.colorTextDescription,fontSize:t.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":(0,i.A)({flex:"auto"},Ge.L9),"&-state":{flex:"none"},[`&-active:not(${r}-option-disabled)`]:{backgroundColor:t.controlItemBgHover},[`&-selected:not(${r}-option-disabled)`]:{color:t.colorText,fontWeight:t.fontWeightStrong,backgroundColor:t.controlItemBgActive,[`${r}-option-state`]:{color:t.colorPrimary}},"&-disabled":{[`&${r}-option-selected`]:{backgroundColor:t.colorBgContainerDisabled},color:t.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:2*t.controlPaddingHorizontal}}}),"&-rtl":{direction:"rtl"}})},(0,Re._j)(t,"slide-up"),(0,Re._j)(t,"slide-down"),Ze(t,"move-up"),Ze(t,"move-down")]};var Ye=Ue;const qe=2;function Ke(t){let{controlHeightSM:e,controlHeight:n,lineWidth:r}=t;const i=(n-e)/2-r,o=Math.ceil(i/2);return[i,o]}function Je(t,e){const{componentCls:n,iconCls:r}=t,o=`${n}-selection-overflow`,a=t.controlHeightSM,[s]=Ke(t),l=e?`${n}-${e}`:"";return{[`${n}-multiple${l}`]:{fontSize:t.fontSize,[o]:{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-qe}px ${2*qe}px`,borderRadius:t.borderRadius,[`${n}-show-search&`]:{cursor:"text"},[`${n}-disabled&`]:{background:t.colorBgContainerDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${qe}px 0`,lineHeight:`${a}px`,content:'"\\a0"'}},[`\n &${n}-show-arrow ${n}-selector,\n &${n}-allow-clear ${n}-selector\n `]:{paddingInlineEnd:t.fontSizeIcon+t.controlPaddingHorizontal},[`${n}-selection-item`]:{position:"relative",display:"flex",flex:"none",boxSizing:"border-box",maxWidth:"100%",height:a,marginTop:qe,marginBottom:qe,lineHeight:a-2*t.lineWidth+"px",background:t.colorFillSecondary,border:`${t.lineWidth}px solid ${t.colorSplit}`,borderRadius:t.borderRadiusSM,cursor:"default",transition:`font-size ${t.motionDurationSlow}, line-height ${t.motionDurationSlow}, height ${t.motionDurationSlow}`,userSelect:"none",marginInlineEnd:2*qe,paddingInlineStart:t.paddingXS,paddingInlineEnd:t.paddingXS/2,[`${n}-disabled&`]:{color:t.colorTextDisabled,borderColor:t.colorBorder,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:t.paddingXS/2,overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":(0,i.A)((0,i.A)({},(0,Ge.Nk)()),{display:"inline-block",color:t.colorIcon,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${r}`]:{verticalAlign:"-0.2em"},"&:hover":{color:t.colorIconHover}})},[`${o}-item + ${o}-item`]:{[`${n}-selection-search`]:{marginInlineStart:0}},[`${n}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:t.inputPaddingHorizontalBase-s,["\n &-input,\n &-mirror\n "]:{height:a,fontFamily:t.fontFamily,lineHeight:`${a}px`,transition:`all ${t.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:t.inputPaddingHorizontalBase,insetInlineEnd:t.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${t.motionDurationSlow}`}}}}function tn(t){const{componentCls:e}=t,n=(0,$e.h1)(t,{controlHeight:t.controlHeightSM,controlHeightSM:t.controlHeightXS,borderRadius:t.borderRadiusSM,borderRadiusSM:t.borderRadiusXS}),[,r]=Ke(t);return[Je(t),Je(n,"sm"),{[`${e}-multiple${e}-sm`]:{[`${e}-selection-placeholder`]:{insetInlineStart:t.controlPaddingHorizontalSM-t.lineWidth,insetInlineEnd:"auto"},[`${e}-selection-search`]:{marginInlineStart:r}}},Je((0,$e.h1)(t,{fontSize:t.fontSizeLG,controlHeight:t.controlHeightLG,controlHeightSM:t.controlHeight,borderRadius:t.borderRadiusLG,borderRadiusSM:t.borderRadius}),"lg")]}function en(t,e){const{componentCls:n,inputPaddingHorizontalBase:r,borderRadius:o}=t,a=t.controlHeight-2*t.lineWidth,s=Math.ceil(1.25*t.fontSize),l=e?`${n}-${e}`:"";return{[`${n}-single${l}`]:{fontSize:t.fontSize,[`${n}-selector`]:(0,i.A)((0,i.A)({},(0,Ge.dF)(t)),{display:"flex",borderRadius:o,[`${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 ${t.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:t.colorTextPlaceholder},[`&:not(${n}-customize-input)`]:{[`${n}-selector`]:{width:"100%",height:t.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 nn(t){const{componentCls:e}=t,n=t.controlPaddingHorizontalSM-t.lineWidth;return[en(t),en((0,$e.h1)(t,{controlHeight:t.controlHeightSM,borderRadius:t.borderRadiusSM}),"sm"),{[`${e}-single${e}-sm`]:{[`&:not(${e}-customize-input)`]:{[`${e}-selection-search`]:{insetInlineStart:n,insetInlineEnd:n},[`${e}-selector`]:{padding:`0 ${n}px`},[`&${e}-show-arrow ${e}-selection-search`]:{insetInlineEnd:n+1.5*t.fontSize},[`\n &${e}-show-arrow ${e}-selection-item,\n &${e}-show-arrow ${e}-selection-placeholder\n `]:{paddingInlineEnd:1.5*t.fontSize}}}},en((0,$e.h1)(t,{controlHeight:t.controlHeightLG,fontSize:t.fontSizeLG,borderRadius:t.borderRadiusLG}),"lg")]}var rn=n(31222);const on=t=>{const{componentCls:e}=t;return{position:"relative",backgroundColor:t.colorBgContainer,border:`${t.lineWidth}px ${t.lineType} ${t.colorBorder}`,transition:`all ${t.motionDurationMid} ${t.motionEaseInOut}`,input:{cursor:"pointer"},[`${e}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit"}},[`${e}-disabled&`]:{color:t.colorTextDisabled,background:t.colorBgContainerDisabled,cursor:"not-allowed",[`${e}-multiple&`]:{background:t.colorBgContainerDisabled},input:{cursor:"not-allowed"}}}},an=function(t,e){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const{componentCls:r,borderHoverColor:o,outlineColor:a,antCls:s}=e,l=n?{[`${r}-selector`]:{borderColor:o}}:{};return{[t]:{[`&:not(${r}-disabled):not(${r}-customize-input):not(${s}-pagination-size-changer)`]:(0,i.A)((0,i.A)({},l),{[`${r}-focused& ${r}-selector`]:{borderColor:o,boxShadow:`0 0 0 ${e.controlOutlineWidth}px ${a}`,borderInlineEndWidth:`${e.controlLineWidth}px !important`,outline:0},[`&:hover ${r}-selector`]:{borderColor:o,borderInlineEndWidth:`${e.controlLineWidth}px !important`}})}}},sn=t=>{const{componentCls:e}=t;return{[`${e}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none","&::-webkit-search-cancel-button":{display:"none","-webkit-appearance":"none"}}}},ln=t=>{const{componentCls:e,inputPaddingHorizontalBase:n,iconCls:r}=t;return{[e]:(0,i.A)((0,i.A)({},(0,Ge.dF)(t)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${e}-customize-input) ${e}-selector`]:(0,i.A)((0,i.A)({},on(t)),sn(t)),[`${e}-selection-item`]:(0,i.A)({flex:1,fontWeight:"normal"},Ge.L9),[`${e}-selection-placeholder`]:(0,i.A)((0,i.A)({},Ge.L9),{flex:1,color:t.colorTextPlaceholder,pointerEvents:"none"}),[`${e}-arrow`]:(0,i.A)((0,i.A)({},(0,Ge.Nk)()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:n,height:t.fontSizeIcon,marginTop:-t.fontSizeIcon/2,color:t.colorTextQuaternary,fontSize:t.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",[r]:{verticalAlign:"top",transition:`transform ${t.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${e}-suffix)`]:{pointerEvents:"auto"}},[`${e}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${e}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:n,zIndex:1,display:"inline-block",width:t.fontSizeIcon,height:t.fontSizeIcon,marginTop:-t.fontSizeIcon/2,color:t.colorTextQuaternary,fontSize:t.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",background:t.colorBgContainer,cursor:"pointer",opacity:0,transition:`color ${t.motionDurationMid} ease, opacity ${t.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:t.colorTextTertiary}},"&:hover":{[`${e}-clear`]:{opacity:1}}}),[`${e}-has-feedback`]:{[`${e}-clear`]:{insetInlineEnd:n+t.fontSize+t.paddingXXS}}}},un=t=>{const{componentCls:e}=t;return[{[e]:{[`&-borderless ${e}-selector`]:{backgroundColor:"transparent !important",borderColor:"transparent !important",boxShadow:"none !important"},[`&${e}-in-form-item`]:{width:"100%"}}},ln(t),nn(t),tn(t),Ye(t),{[`${e}-rtl`]:{direction:"rtl"}},an(e,(0,$e.h1)(t,{borderHoverColor:t.colorPrimaryHover,outlineColor:t.controlOutline})),an(`${e}-status-error`,(0,$e.h1)(t,{borderHoverColor:t.colorErrorHover,outlineColor:t.colorErrorOutline}),!0),an(`${e}-status-warning`,(0,$e.h1)(t,{borderHoverColor:t.colorWarningHover,outlineColor:t.colorWarningOutline}),!0),(0,rn.G)(t,{borderElCls:`${e}-selector`,focusElCls:`${e}-focused`})]};var cn=(0,Ee.A)("Select",((t,e)=>{let{rootPrefixCls:n}=e;const r=(0,$e.h1)(t,{rootPrefixCls:n,inputPaddingHorizontalBase:t.paddingSM-1});return[un(r)]}),(t=>({zIndexPopup:t.zIndexPopupBase+50}))),hn=n(99415);const dn=()=>(0,i.A)((0,i.A)({},(0,Rt.A)(ie(),["inputIcon","mode","getInputElement","getRawInputElement","backfill"])),{value:(0,Pe.tK)([Array,Object,String,Number]),defaultValue:(0,Pe.tK)([Array,Object,String,Number]),notFoundContent:g.A.any,suffixIcon:g.A.any,itemIcon:g.A.any,size:(0,Pe.WO)(),mode:(0,Pe.WO)(),bordered:(0,Pe.HE)(!0),transitionName:String,choiceTransitionName:(0,Pe.WO)(""),popupClassName:String,dropdownClassName:String,placement:(0,Pe.WO)(),status:(0,Pe.WO)(),"onUpdate:value":(0,Pe.Fg)()}),pn="SECRET_COMBOBOX_MODE_DO_NOT_USE",fn=(0,o.pM)({compatConfig:{MODE:3},name:"ASelect",Option:le,OptGroup:ce,inheritAttrs:!1,props:(0,Y.A)(dn(),{listHeight:256,listItemHeight:24}),SECRET_COMBOBOX_MODE_DO_NOT_USE:pn,slots:Object,setup(t,e){let{attrs:n,emit:l,slots:u,expose:c}=e;const h=(0,a.KR)(),d=(0,Ce.db)(),p=Ce.$W.useInject(),f=(0,o.EW)((()=>(0,Te.v)(p.status,t.status))),g=()=>{var t;null===(t=h.value)||void 0===t||t.focus()},v=()=>{var t;null===(t=h.value)||void 0===t||t.blur()},m=t=>{var e;null===(e=h.value)||void 0===e||e.scrollTo(t)},y=(0,o.EW)((()=>{const{mode:e}=t;if("combobox"!==e)return e===pn?"combobox":e}));const{prefixCls:b,direction:_,configProvider:x,renderEmpty:w,size:O,getPrefixCls:S,getPopupContainer:A,disabled:k,select:C}=(0,Ae.A)("select",t),{compactSize:M,compactItemClassnames:T}=(0,Ie.RQ)(b,_),P=(0,o.EW)((()=>M.value||O.value)),I=(0,hn.p)(),$=(0,o.EW)((()=>{var t;return null!==(t=k.value)&&void 0!==t?t:I.value})),[E,R]=cn(b),D=(0,o.EW)((()=>S())),L=(0,o.EW)((()=>void 0!==t.placement?t.placement:"rtl"===_.value?"bottomRight":"bottomLeft")),N=(0,o.EW)((()=>(0,Me.by)(D.value,(0,Me.TL)(L.value),t.transitionName))),z=(0,o.EW)((()=>(0,s.A)({[`${b.value}-lg`]:"large"===P.value,[`${b.value}-sm`]:"small"===P.value,[`${b.value}-rtl`]:"rtl"===_.value,[`${b.value}-borderless`]:!t.bordered,[`${b.value}-in-form-item`]:p.isFormItemInput},(0,Te.L)(b.value,f.value,p.hasFeedback),T.value,R.value))),B=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];l("update:value",e[0]),l("change",...e),d.onFieldChange()},F=t=>{l("blur",t),d.onFieldBlur()};c({blur:v,focus:g,scrollTo:m});const W=(0,o.EW)((()=>"multiple"===y.value||"tags"===y.value)),j=(0,o.EW)((()=>void 0!==t.showArrow?t.showArrow:t.loading||!(W.value||"combobox"===y.value)));return()=>{var e,a,l,c;const{notFoundContent:f,listHeight:g=256,listItemHeight:v=24,popupClassName:m,dropdownClassName:O,virtual:S,dropdownMatchSelectWidth:k,id:M=d.id.value,placeholder:T=(null===(e=u.placeholder)||void 0===e?void 0:e.call(u)),showArrow:P}=t,{hasFeedback:I,feedbackIcon:D}=p,{}=x;let L;L=void 0!==f?f:u.notFoundContent?u.notFoundContent():"combobox"===y.value?null:(null===w||void 0===w?void 0:w("Select"))||(0,o.bF)(ke.x,{componentName:"Select"},null);const{suffixIcon:V,itemIcon:Q,removeIcon:H,clearIcon:Z}=Se((0,i.A)((0,i.A)({},t),{multiple:W.value,prefixCls:b.value,hasFeedback:I,feedbackIcon:D,showArrow:j.value}),u),G=(0,Rt.A)(t,["prefixCls","suffixIcon","itemIcon","removeIcon","clearIcon","size","bordered","status"]),X=(0,s.A)(m||O,{[`${b.value}-dropdown-${_.value}`]:"rtl"===_.value},R.value);return E((0,o.bF)(he,(0,r.A)((0,r.A)((0,r.A)({ref:h,virtual:S,dropdownMatchSelectWidth:k},G),n),{},{showSearch:null!==(a=t.showSearch)&&void 0!==a?a:null===(l=null===C||void 0===C?void 0:C.value)||void 0===l?void 0:l.showSearch,placeholder:T,listHeight:g,listItemHeight:v,mode:y.value,prefixCls:b.value,direction:_.value,inputIcon:V,menuItemSelectedIcon:Q,removeIcon:H,clearIcon:Z,notFoundContent:L,class:[z.value,n.class],getPopupContainer:null===A||void 0===A?void 0:A.value,dropdownClassName:X,onChange:B,onBlur:F,id:M,dropdownRender:G.dropdownRender||u.dropdownRender,transitionName:N.value,children:null===(c=u.default)||void 0===c?void 0:c.call(u),tagRender:t.tagRender||u.tagRender,optionLabelRender:u.optionLabel,maxTagPlaceholder:t.maxTagPlaceholder||u.maxTagPlaceholder,showArrow:I||P,disabled:$.value}),{option:u.option}))}}});fn.install=function(t){return t.component(fn.name,fn),t.component(fn.Option.displayName,fn.Option),t.component(fn.OptGroup.displayName,fn.OptGroup),t};const gn=fn.Option;fn.OptGroup;var vn=fn},45507:function(t,e,n){"use strict";n.d(e,{K6:function(){return E},RQ:function(){return $}});var r=n(69751),i=n(73913),o=n(13389),a=n(2126),s=n(3551),l=n(94471);const u=t=>{const{componentCls:e}=t;return{[e]:{display:"inline-flex","&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"}}}};var c=u;const h=t=>{const{componentCls:e}=t;return{[e]:{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"}},[`${e}-item`]:{"&:empty":{display:"none"}}}}};var d=(0,l.A)("Space",(t=>[h(t),c(t)])),p=n(5530),f=n(66041),g=n(56732),v=n(93588),m=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(t){if(null==t)return!0;if((0,b.A)(t)&&((0,y.A)(t)||"string"==typeof t||"function"==typeof t.splice||(0,_.A)(t)||(0,w.A)(t)||(0,m.A)(t)))return!t.length;var e=(0,v.A)(t);if(e==O||e==S)return!t.size;if((0,x.A)(t))return!(0,g.A)(t).length;for(var n in t)if(k.call(t,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),$=(t,e)=>{const n=I.useInject(),r=(0,i.EW)((()=>{if(!n||M(n))return"";const{compactDirection:r,isFirstItem:i,isLastItem:a}=n,s="vertical"===r?"-vertical-":"-";return(0,o.A)({[`${t.value}-compact${s}item`]:!0,[`${t.value}-compact${s}first-item`]:i,[`${t.value}-compact${s}last-item`]:a,[`${t.value}-compact${s}item-rtl`]:"rtl"===e.value})}));return{compactSize:(0,i.EW)((()=>null===n||void 0===n?void 0:n.compactSize)),compactDirection:(0,i.EW)((()=>null===n||void 0===n?void 0:n.compactDirection)),compactItemClassnames:r}},E=(0,i.pM)({name:"NoCompactStyle",setup(t,e){let{slots:n}=e;return I.useProvide(null),()=>{var t;return null===(t=n.default)||void 0===t?void 0:t.call(n)}}}),R=()=>({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}}),D=(0,i.pM)({name:"CompactItem",props:P(),setup(t,e){let{slots:n}=e;return I.useProvide(t),()=>{var t;return null===(t=n.default)||void 0===t?void 0:t.call(n)}}});(0,i.pM)({name:"ASpaceCompact",inheritAttrs:!1,props:R(),setup(t,e){let{attrs:n,slots:a}=e;const{prefixCls:l,direction:u}=(0,s.A)("space-compact",t),c=I.useInject(),[h,p]=d(l),f=(0,i.EW)((()=>(0,o.A)(l.value,p.value,{[`${l.value}-rtl`]:"rtl"===u.value,[`${l.value}-block`]:t.block,[`${l.value}-vertical`]:"vertical"===t.direction})));return()=>{var e;const o=(0,T.MI)((null===(e=a.default)||void 0===e?void 0:e.call(a))||[]);return 0===o.length?null:h((0,i.bF)("div",(0,r.A)((0,r.A)({},n),{},{class:[f.value,n.class]}),[o.map(((e,n)=>{var r;const a=e&&e.key||`${l.value}-item-${n}`,s=!c||M(c);return(0,i.bF)(D,{key:a,compactSize:null!==(r=t.size)&&void 0!==r?r:"middle",compactDirection:t.direction,isFirstItem:0===n&&(s||(null===c||void 0===c?void 0:c.isFirstItem)),isLastItem:n===o.length-1&&(s||(null===c||void 0===c?void 0:c.isLastItem))},{default:()=>[e]})}))]))}}})},31222:function(t,e,n){"use strict";n.d(e,{G:function(){return a}});var r=n(98657);function i(t,e,n){const{focusElCls:i,focus:o,borderElCls:a}=n,s=a?"> *":"",l=["hover",o?"focus":null,"active"].filter(Boolean).map((t=>`&:${t} ${s}`)).join(",");return{[`&-item:not(${e}-last-item)`]:{marginInlineEnd:-t.lineWidth},"&-item":(0,r.A)((0,r.A)({[l]:{zIndex:2}},i?{[`&${i}`]:{zIndex:2}}:{}),{[`&[disabled] ${s}`]:{zIndex:0}})}}function o(t,e,n){const{borderElCls:r}=n,i=r?`> ${r}`:"";return{[`&-item:not(${e}-first-item):not(${e}-last-item) ${i}`]:{borderRadius:0},[`&-item:not(${e}-last-item)${e}-first-item`]:{[`& ${i}, &${t}-sm ${i}, &${t}-lg ${i}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${e}-first-item)${e}-last-item`]:{[`& ${i}, &${t}-sm ${i}, &${t}-lg ${i}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function a(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{focus:!0};const{componentCls:n}=t,a=`${n}-compact`;return{[a]:(0,r.A)((0,r.A)({},i(t,a,e)),o(n,a,e))}}},69729:function(t,e,n){"use strict";n.d(e,{K8:function(){return h},L9:function(){return i},Nk:function(){return a},av:function(){return l},dF:function(){return o},jk:function(){return c},t6:function(){return s},vj:function(){return u}});var r=n(98657);const i={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},o=t=>({boxSizing:"border-box",margin:0,padding:0,color:t.colorText,fontSize:t.fontSize,lineHeight:t.lineHeight,listStyle:"none",fontFamily:t.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=t=>({a:{color:t.colorLink,textDecoration:t.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${t.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:t.colorLinkHover},"&:active":{color:t.colorLinkActive},["&:active,\n &:hover"]:{textDecoration:t.linkHoverDecoration,outline:0},"&:focus":{textDecoration:t.linkFocusDecoration,outline:0},"&[disabled]":{color:t.colorTextDisabled,cursor:"not-allowed"}}}),u=(t,e)=>{const{fontFamily:n,fontSize:r}=t,i=`[class^="${e}"], [class*=" ${e}"]`;return{[i]:{fontFamily:n,fontSize:r,boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"},[i]:{boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}}}}},c=t=>({outline:`${t.lineWidthBold}px solid ${t.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),h=t=>({"&:focus-visible":(0,r.A)({},c(t))})},86049:function(t,e){"use strict";const n=t=>({[t.componentCls]:{[`${t.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${t.motionDurationMid} ${t.motionEaseInOut},\n opacity ${t.motionDurationMid} ${t.motionEaseInOut} !important`}},[`${t.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${t.motionDurationMid} ${t.motionEaseInOut},\n opacity ${t.motionDurationMid} ${t.motionEaseInOut} !important`}}});e.A=n},7672:function(t,e,n){"use strict";n.d(e,{p9:function(){return s}});var r=n(97732),i=n(276);const o=new r.A("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),a=new r.A("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),s=function(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const{antCls:n}=t,r=`${n}-fade`,s=e?"&":"";return[(0,i.b)(r,o,a,t.motionDurationMid,e),{[`\n ${s}${r}-enter,\n ${s}${r}-appear\n `]:{opacity:0,animationTimingFunction:"linear"},[`${s}${r}-leave`]:{animationTimingFunction:"linear"}}]}},276:function(t,e,n){"use strict";n.d(e,{b:function(){return a}});var r=n(98657);const i=t=>({animationDuration:t,animationFillMode:"both"}),o=t=>({animationDuration:t,animationFillMode:"both"}),a=function(t,e,n,a){let s=arguments.length>4&&void 0!==arguments[4]&&arguments[4];const l=s?"&":"";return{[`\n ${l}${t}-enter,\n ${l}${t}-appear\n `]:(0,r.A)((0,r.A)({},i(a)),{animationPlayState:"paused"}),[`${l}${t}-leave`]:(0,r.A)((0,r.A)({},o(a)),{animationPlayState:"paused"}),[`\n ${l}${t}-enter${t}-enter-active,\n ${l}${t}-appear${t}-appear-active\n `]:{animationName:e,animationPlayState:"running"},[`${l}${t}-leave${t}-leave-active`]:{animationName:n,animationPlayState:"running",pointerEvents:"none"}}}},67177:function(t,e,n){"use strict";n.d(e,{YU:function(){return l},_j:function(){return f},nP:function(){return s},ox:function(){return o},vR:function(){return a}});var r=n(97732),i=n(276);const o=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}}),h=new r.A("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),d=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:o,outKeyframes:a},"slide-down":{inKeyframes:s,outKeyframes:l},"slide-left":{inKeyframes:u,outKeyframes:c},"slide-right":{inKeyframes:h,outKeyframes:d}},f=(t,e)=>{const{antCls:n}=t,r=`${n}-${e}`,{inKeyframes:o,outKeyframes:a}=p[e];return[(0,i.b)(r,o,a,t.motionDurationMid),{[`\n ${r}-enter,\n ${r}-appear\n `]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:t.motionEaseOutQuint},[`${r}-leave`]:{animationTimingFunction:t.motionEaseInQuint}}]}},41781:function(t,e,n){"use strict";n.d(e,{aB:function(){return y},nF:function(){return o}});var r=n(97732),i=n(276);const o=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}}),h=new r.A("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),d=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%"}}),v=new r.A("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),m={zoom:{inKeyframes:o,outKeyframes:a},"zoom-big":{inKeyframes:s,outKeyframes:l},"zoom-big-fast":{inKeyframes:s,outKeyframes:l},"zoom-left":{inKeyframes:h,outKeyframes:d},"zoom-right":{inKeyframes:p,outKeyframes:f},"zoom-up":{inKeyframes:u,outKeyframes:c},"zoom-down":{inKeyframes:g,outKeyframes:v}},y=(t,e)=>{const{antCls:n}=t,r=`${n}-${e}`,{inKeyframes:o,outKeyframes:a}=m[e];return[(0,i.b)(r,o,a,"zoom-big-fast"===e?t.motionDurationFast:t.motionDurationMid),{[`\n ${r}-enter,\n ${r}-appear\n `]:{transform:"scale(0)",opacity:0,animationTimingFunction:t.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${r}-leave`]:{animationTimingFunction:t.motionEaseInOutCirc}}]}},59102:function(t,e,n){"use strict";n.d(e,{A:function(){return gn}});var r=n(69751),i=n(98657),o=n(73913),a=(n(30381),n(78753)),s=n(38624);function l(t){const e=(0,a.IJ)(),n=(0,a.IJ)(!1);function r(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];n.value||(s.A.cancel(e.value),e.value=(0,s.A)((()=>{t(...i)})))}return(0,o.xo)((()=>{n.value=!0,s.A.cancel(e.value)})),r}function u(t){const e=(0,a.IJ)([]),n=(0,a.IJ)("function"===typeof t?t():t),r=l((()=>{let t=n.value;e.value.forEach((e=>{t=e(t)})),e.value=[],n.value=t}));function i(t){e.value.push(t),r()}return[n,i]}var c=n(5347),h=n(13389),d=(0,o.pM)({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(t,e){let{expose:n,attrs:r}=e;const i=(0,a.KR)();function s(e){var n;(null===(n=t.tab)||void 0===n?void 0:n.disabled)||t.onClick(e)}function l(e){var n;e.preventDefault(),e.stopPropagation(),t.editable.onEdit("remove",{key:null===(n=t.tab)||void 0===n?void 0:n.key,event:e})}n({domRef:i});const u=(0,o.EW)((()=>{var e;return t.editable&&!1!==t.closable&&!(null===(e=t.tab)||void 0===e?void 0:e.disabled)}));return()=>{var e;const{prefixCls:n,id:a,active:d,tab:{key:p,tab:f,disabled:g,closeIcon:v},renderWrapper:m,removeAriaLabel:y,editable:b,onFocus:_}=t,x=`${n}-tab`,w=(0,o.bF)("div",{key:p,ref:i,class:(0,h.A)(x,{[`${x}-with-remove`]:u.value,[`${x}-active`]:d,[`${x}-disabled`]:g}),style:r.style,onClick:s},[(0,o.bF)("div",{role:"tab","aria-selected":d,id:a&&`${a}-tab-${p}`,class:`${x}-btn`,"aria-controls":a&&`${a}-panel-${p}`,"aria-disabled":g,tabindex:g?null:0,onClick:t=>{t.stopPropagation(),s(t)},onKeydown:t=>{[c.A.SPACE,c.A.ENTER].includes(t.which)&&(t.preventDefault(),s(t))},onFocus:_},["function"===typeof f?f():f]),u.value&&(0,o.bF)("button",{type:"button","aria-label":y||"remove",tabindex:0,class:`${x}-remove`,onClick:t=>{t.stopPropagation(),l(t)}},[(null===v||void 0===v?void 0:v())||(null===(e=b.removeIcon)||void 0===e?void 0:e.call(b))||"×"])]);return m?m(w):w}}});const p={width:0,height:0,left:0,top:0};function f(t,e){const n=(0,a.KR)(new Map);return(0,o.nT)((()=>{var r,o;const a=new Map,s=t.value,l=e.value.get(null===(r=s[0])||void 0===r?void 0:r.key)||p,u=l.left+l.width;for(let t=0;t<s.length;t+=1){const{key:n}=s[t];let r=e.value.get(n);r||(r=e.value.get(null===(o=s[t-1])||void 0===o?void 0:o.key)||p);const l=a.get(n)||(0,i.A)({},r);l.right=u-l.left-l.width,a.set(n,l)}n.value=new Map(a)})),n}function g(t,e,n,r){let i=n?n.call(r,t,e):void 0;if(void 0!==i)return!!i;if(t===e)return!0;if("object"!==typeof t||!t||"object"!==typeof e||!e)return!1;const o=Object.keys(t),a=Object.keys(e);if(o.length!==a.length)return!1;const s=Object.prototype.hasOwnProperty.bind(e);for(let l=0;l<o.length;l++){const a=o[l];if(!s(a))return!1;const u=t[a],c=e[a];if(i=n?n.call(r,u,c,a):void 0,!1===i||void 0===i&&u!==c)return!1}return!0}function v(t,e){return g((0,a.ux)(t),(0,a.ux)(e))}const m=Symbol("menuContextKey"),y=t=>{(0,o.Gt)(m,t)},b=()=>(0,o.WQ)(m),_=Symbol("ForceRenderKey"),x=t=>{(0,o.Gt)(_,t)},w=()=>(0,o.WQ)(_,!1),O=Symbol("menuFirstLevelContextKey"),S=t=>{(0,o.Gt)(O,t)},A=()=>(0,o.WQ)(O,!0),k=(0,o.pM)({compatConfig:{MODE:3},name:"MenuContextProvider",inheritAttrs:!1,props:{mode:{type:String,default:void 0},overflowDisabled:{type:Boolean,default:void 0}},setup(t,e){let{slots:n}=e;const r=b(),o=(0,i.A)({},r);return void 0!==t.mode&&(o.mode=(0,a.lW)(t,"mode")),void 0!==t.overflowDisabled&&(o.overflowDisabled=(0,a.lW)(t,"overflowDisabled")),y(o),()=>{var t;return null===(t=n.default)||void 0===t?void 0:t.call(n)}}});var C=y,M=n(3551),T=n(37205),P=n(51845),I=n(3960),$=n(31044),E=n(86864),R=n(27216);function D(){}var L=D,N=n(46708),z=1/0,B=R.A&&1/(0,N.A)(new R.A([,-0]))[1]==z?function(t){return new R.A(t)}:L,F=B,W=200;function j(t,e,n){var r=-1,i=I.A,o=t.length,a=!0,s=[],l=s;if(n)a=!1,i=$.A;else if(o>=W){var u=e?null:F(t);if(u)return(0,N.A)(u);a=!1,i=E.A,l=new P.A}else l=e?[]:s;t:while(++r<o){var c=t[r],h=e?e(c):c;if(c=n||0!==c?c:0,a&&h===h){var d=l.length;while(d--)if(l[d]===h)continue t;e&&l.push(h),s.push(c)}else i(l,h,n)||(l!==s&&l.push(h),s.push(c))}return s}var V=j;function Q(t){return t&&t.length?V(t):[]}var H=Q;const Z=Symbol("siderCollapsed");Symbol("siderHookProvider");var G=n(16155),X=n(6631),U=n(5530);const Y="$$__vc-menu-more__key",q=Symbol("KeyPathContext"),K=()=>(0,o.WQ)(q,{parentEventKeys:(0,o.EW)((()=>[])),parentKeys:(0,o.EW)((()=>[])),parentInfo:{}}),J=(t,e,n)=>{const{parentEventKeys:r,parentKeys:i}=K(),a=(0,o.EW)((()=>[...r.value,t])),s=(0,o.EW)((()=>[...i.value,e]));return(0,o.Gt)(q,{parentEventKeys:a,parentKeys:s,parentInfo:n}),s},tt=Symbol("measure"),et=(0,o.pM)({compatConfig:{MODE:3},setup(t,e){let{slots:n}=e;return(0,o.Gt)(tt,!0),()=>{var t;return null===(t=n.default)||void 0===t?void 0:t.call(n)}}}),nt=()=>(0,o.WQ)(tt,!1);var rt=J,it=n(87051),ot=n(9139);function at(t){const{mode:e,rtl:n,inlineIndent:r}=b();return(0,o.EW)((()=>"inline"!==e.value?null:n.value?{paddingRight:t.value*r.value+"px"}:{paddingLeft:t.value*r.value+"px"}))}var st=n(66041);let lt=0;const ut=()=>({id:String,role:String,disabled:Boolean,danger:Boolean,title:{type:[String,Boolean],default:void 0},icon:U.A.any,onMouseenter:Function,onMouseleave:Function,onClick:Function,onKeydown:Function,onFocus:Function,originItemValue:(0,st.ge)()});var ct=(0,o.pM)({compatConfig:{MODE:3},name:"AMenuItem",inheritAttrs:!1,props:ut(),slots:Object,setup(t,e){let{slots:n,emit:s,attrs:l}=e;const u=(0,o.nI)(),h=nt(),d="symbol"===typeof u.vnode.key?String(u.vnode.key):u.vnode.key;(0,T.A)("symbol"!==typeof u.vnode.key,"MenuItem",`MenuItem \`:key="${String(d)}"\` not support Symbol type`);const p=`menu_item_${++lt}_$$_${d}`,{parentEventKeys:f,parentKeys:g}=K(),{prefixCls:v,activeKeys:m,disabled:y,changeActiveKeys:_,rtl:x,inlineCollapsed:w,siderCollapsed:O,onItemClick:S,selectedKeys:k,registerMenuInfo:C,unRegisterMenuInfo:M}=b(),P=A(),I=(0,a.IJ)(!1),$=(0,o.EW)((()=>[...g.value,d])),E={eventKey:p,key:d,parentEventKeys:f,parentKeys:g,isLeaf:!0};C(p,E),(0,o.xo)((()=>{M(p)})),(0,o.wB)(m,(()=>{I.value=!!m.value.find((t=>t===d))}),{immediate:!0});const R=(0,o.EW)((()=>y.value||t.disabled)),D=(0,o.EW)((()=>k.value.includes(d))),L=(0,o.EW)((()=>{const e=`${v.value}-item`;return{[`${e}`]:!0,[`${e}-danger`]:t.danger,[`${e}-active`]:I.value,[`${e}-selected`]:D.value,[`${e}-disabled`]:R.value}})),N=e=>({key:d,eventKey:p,keyPath:$.value,eventKeyPath:[...f.value,p],domEvent:e,item:(0,i.A)((0,i.A)({},t),l)}),z=t=>{if(R.value)return;const e=N(t);s("click",t),S(e)},B=t=>{R.value||(_($.value),s("mouseenter",t))},F=t=>{R.value||(_([]),s("mouseleave",t))},W=t=>{if(s("keydown",t),t.which===c.A.ENTER){const e=N(t);s("click",t),S(e)}},j=t=>{_($.value),s("focus",t)},V=(t,e)=>{const n=(0,o.bF)("span",{class:`${v.value}-title-content`},[e]);return(!t||(0,G.zO)(e)&&"span"===e.type)&&e&&w.value&&P&&"string"===typeof e?(0,o.bF)("div",{class:`${v.value}-inline-collapsed-noicon`},[e.charAt(0)]):n},Q=at((0,o.EW)((()=>$.value.length)));return()=>{var e,a,s,u,c;if(h)return null;const p=null!==(e=t.title)&&void 0!==e?e:null===(a=n.title)||void 0===a?void 0:a.call(n),f=(0,G.MI)(null===(s=n.default)||void 0===s?void 0:s.call(n)),g=f.length;let m=p;"undefined"===typeof p?m=P&&g?f:"":!1===p&&(m="");const y={title:m};O.value||w.value||(y.title=null,y.open=!1);const b={};"option"===t.role&&(b["aria-selected"]=D.value);const _=null!==(u=t.icon)&&void 0!==u?u:null===(c=n.icon)||void 0===c?void 0:c.call(n,t);return(0,o.bF)(ot.A,(0,r.A)((0,r.A)({},y),{},{placement:x.value?"left":"right",overlayClassName:`${v.value}-inline-collapsed-tooltip`}),{default:()=>[(0,o.bF)(X.A.Item,(0,r.A)((0,r.A)((0,r.A)({component:"li"},l),{},{id:t.id,style:(0,i.A)((0,i.A)({},l.style||{}),Q.value),class:[L.value,{[`${l.class}`]:!!l.class,[`${v.value}-item-only-child`]:1===(_?g+1:g)}],role:t.role||"menuitem",tabindex:t.disabled?null:-1,"data-menu-id":d,"aria-disabled":t.disabled},b),{},{onMouseenter:B,onMouseleave:F,onClick:z,onKeydown:W,onFocus:j,title:"string"===typeof p?p:void 0}),{default:()=>[(0,it.Ob)("function"===typeof _?_(t.originItemValue):_,{class:`${v.value}-item-icon`},!1),V(_,f)]})]})}}}),ht=n(15928);const dt={adjustX:1,adjustY:1},pt={topLeft:{points:["bl","tl"],overflow:dt,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:dt,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:dt,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:dt,offset:[4,0]}},ft={topLeft:{points:["bl","tl"],overflow:dt,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:dt,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:dt,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:dt,offset:[4,0]}};var gt=n(41038);const vt={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};var mt=(0,o.pM)({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(t,e){let{slots:n,emit:r}=e;const l=(0,a.IJ)(!1),{getPopupContainer:u,rtl:c,subMenuOpenDelay:d,subMenuCloseDelay:p,builtinPlacements:f,triggerSubMenuAction:g,forceSubMenuRender:v,motion:m,defaultMotions:y,rootClassName:_}=b(),x=w(),O=(0,o.EW)((()=>c.value?(0,i.A)((0,i.A)({},ft),f.value):(0,i.A)((0,i.A)({},pt),f.value))),S=(0,o.EW)((()=>vt[t.mode])),A=(0,a.IJ)();(0,o.wB)((()=>t.visible),(t=>{s.A.cancel(A.value),A.value=(0,s.A)((()=>{l.value=t}))}),{immediate:!0}),(0,o.xo)((()=>{s.A.cancel(A.value)}));const k=t=>{r("visibleChange",t)},C=(0,o.EW)((()=>{var e,n;const r=m.value||(null===(e=y.value)||void 0===e?void 0:e[t.mode])||(null===(n=y.value)||void 0===n?void 0:n.other),i="function"===typeof r?r():r;return i?(0,gt.ce)(i.name,{css:!0}):void 0}));return()=>{const{prefixCls:e,popupClassName:r,mode:i,popupOffset:a,disabled:s}=t;return(0,o.bF)(ht.A,{prefixCls:e,popupClassName:(0,h.A)(`${e}-popup`,{[`${e}-rtl`]:c.value},r,_.value),stretch:"horizontal"===i?"minWidth":null,getPopupContainer:u.value,builtinPlacements:O.value,popupPlacement:S.value,popupVisible:l.value,popupAlign:a&&{offset:a},action:s?[]:[g.value],mouseEnterDelay:d.value,mouseLeaveDelay:p.value,onPopupVisibleChange:k,forceRender:x||v.value,popupAnimation:C.value},{popup:n.popup,default:n.default})}}});const yt=(t,e)=>{let{slots:n,attrs:i}=e;var a;const{prefixCls:s,mode:l}=b();return(0,o.bF)("ul",(0,r.A)((0,r.A)({},i),{},{class:(0,h.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)])};yt.displayName="SubMenuList";var bt=yt,_t=n(67874),xt=(0,o.pM)({compatConfig:{MODE:3},name:"InlineSubMenuList",inheritAttrs:!1,props:{id:String,open:Boolean,keyPath:Array},setup(t,e){let{slots:n}=e;const r=(0,o.EW)((()=>"inline")),{motion:s,mode:l,defaultMotions:u}=b(),c=(0,o.EW)((()=>l.value===r.value)),h=(0,a.KR)(!c.value),d=(0,o.EW)((()=>!!c.value&&t.open));(0,o.wB)(l,(()=>{c.value&&(h.value=!1)}),{flush:"post"});const p=(0,o.EW)((()=>{var e,n;const o=s.value||(null===(e=u.value)||void 0===e?void 0:e[r.value])||(null===(n=u.value)||void 0===n?void 0:n.other),a="function"===typeof o?o():o;return(0,i.A)((0,i.A)({},a),{appear:t.keyPath.length<=1})}));return()=>{var e;return h.value?null:(0,o.bF)(k,{mode:r.value},{default:()=>[(0,o.bF)(gt.Ay,p.value,{default:()=>[(0,o.bo)((0,o.bF)(bt,{id:t.id},{default:()=>[null===(e=n.default)||void 0===e?void 0:e.call(n)]}),[[_t.aG,d.value]])]})]})}}}),wt=n(95915);let Ot=0;const St=()=>({icon:U.A.any,title:U.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,st.ge)()});var At=(0,o.pM)({compatConfig:{MODE:3},name:"ASubMenu",inheritAttrs:!1,props:St(),slots:Object,setup(t,e){let{slots:n,attrs:s,emit:l}=e;var u,c;S(!1);const d=nt(),p=(0,o.nI)(),f="symbol"===typeof p.vnode.key?String(p.vnode.key):p.vnode.key;(0,T.A)("symbol"!==typeof p.vnode.key,"SubMenu",`SubMenu \`:key="${String(f)}"\` not support Symbol type`);const g=(0,wt.A)(f)?f:`sub_menu_${++Ot}_$$_not_set_key`,v=null!==(u=t.eventKey)&&void 0!==u?u:(0,wt.A)(f)?`sub_menu_${++Ot}_$$_${f}`:g,{parentEventKeys:m,parentInfo:y,parentKeys:_}=K(),O=(0,o.EW)((()=>[..._.value,g])),A=(0,a.IJ)([]),C={eventKey:v,key:g,parentEventKeys:m,childrenEventKeys:A,parentKeys:_};null===(c=y.childrenEventKeys)||void 0===c||c.value.push(v),(0,o.xo)((()=>{var t;y.childrenEventKeys&&(y.childrenEventKeys.value=null===(t=y.childrenEventKeys)||void 0===t?void 0:t.value.filter((t=>t!=v)))})),rt(v,g,C);const{prefixCls:M,activeKeys:P,disabled:I,changeActiveKeys:$,mode:E,inlineCollapsed:R,openKeys:D,overflowDisabled:L,onOpenChange:N,registerMenuInfo:z,unRegisterMenuInfo:B,selectedSubMenuKeys:F,expandIcon:W,theme:j}=b(),V=void 0!==f&&null!==f,Q=!d&&(w()||!V);x(Q),(d&&V||!d&&!V||Q)&&(z(v,C),(0,o.xo)((()=>{B(v)})));const H=(0,o.EW)((()=>`${M.value}-submenu`)),Z=(0,o.EW)((()=>I.value||t.disabled)),U=(0,a.IJ)(),Y=(0,a.IJ)(),q=(0,o.EW)((()=>D.value.includes(g))),J=(0,o.EW)((()=>!L.value&&q.value)),tt=(0,o.EW)((()=>F.value.includes(g))),et=(0,a.IJ)(!1);(0,o.wB)(P,(()=>{et.value=!!P.value.find((t=>t===g))}),{immediate:!0});const ot=t=>{Z.value||(l("titleClick",t,g),"inline"===E.value&&N(g,!q.value))},st=t=>{Z.value||($(O.value),l("mouseenter",t))},lt=t=>{Z.value||($([]),l("mouseleave",t))},ut=at((0,o.EW)((()=>O.value.length))),ct=t=>{"inline"!==E.value&&N(g,t)},ht=()=>{$(O.value)},dt=v&&`${v}-popup`,pt=(0,o.EW)((()=>(0,h.A)(M.value,`${M.value}-${t.theme||j.value}`,t.popupClassName))),ft=(e,n)=>{if(!n)return R.value&&!_.value.length&&e&&"string"===typeof e?(0,o.bF)("div",{class:`${M.value}-inline-collapsed-noicon`},[e.charAt(0)]):(0,o.bF)("span",{class:`${M.value}-title-content`},[e]);const r=(0,G.zO)(e)&&"span"===e.type;return(0,o.bF)(o.FK,null,[(0,it.Ob)("function"===typeof n?n(t.originItemValue):n,{class:`${M.value}-item-icon`},!1),r?e:(0,o.bF)("span",{class:`${M.value}-title-content`},[e])])},gt=(0,o.EW)((()=>"inline"!==E.value&&O.value.length>1?"vertical":E.value)),vt=(0,o.EW)((()=>"horizontal"===E.value?"vertical":E.value)),yt=(0,o.EW)((()=>"horizontal"===gt.value?"vertical":gt.value)),_t=()=>{var e,r;const a=H.value,s=null!==(e=t.icon)&&void 0!==e?e:null===(r=n.icon)||void 0===r?void 0:r.call(n,t),l=t.expandIcon||n.expandIcon||W.value,u=ft((0,G.rU)(n,t,"title"),s);return(0,o.bF)("div",{style:ut.value,class:`${a}-title`,tabindex:Z.value?null:-1,ref:U,title:"string"===typeof u?u:null,"data-menu-id":g,"aria-expanded":J.value,"aria-haspopup":!0,"aria-controls":dt,"aria-disabled":Z.value,onClick:ot,onFocus:ht},[u,"horizontal"!==E.value&&l?l((0,i.A)((0,i.A)({},t),{isOpen:J.value})):(0,o.bF)("i",{class:`${a}-arrow`},null)])};return()=>{var e;if(d)return V?null===(e=n.default)||void 0===e?void 0:e.call(n):null;const i=H.value;let a=()=>null;if(L.value||"inline"===E.value)a=()=>(0,o.bF)(mt,null,{default:_t});else{const e="horizontal"===E.value?[0,8]:[10,0];a=()=>(0,o.bF)(mt,{mode:gt.value,prefixCls:i,visible:!t.internalPopupClose&&J.value,popupClassName:pt.value,popupOffset:t.popupOffset||e,disabled:Z.value,onVisibleChange:ct},{default:()=>[_t()],popup:()=>(0,o.bF)(k,{mode:yt.value},{default:()=>[(0,o.bF)(bt,{id:dt,ref:Y},{default:n.default})]})})}return(0,o.bF)(k,{mode:vt.value},{default:()=>[(0,o.bF)(X.A.Item,(0,r.A)((0,r.A)({component:"li"},s),{},{role:"none",class:(0,h.A)(i,`${i}-${E.value}`,s.class,{[`${i}-open`]:J.value,[`${i}-active`]:et.value,[`${i}-selected`]:tt.value,[`${i}-disabled`]:Z.value}),onMouseenter:st,onMouseleave:lt,"data-submenu-id":g}),{default:()=>(0,o.bF)(o.FK,null,[a(),!L.value&&(0,o.bF)(xt,{id:dt,open:J.value,keyPath:O.value},{default:n.default})])})]})}}}),kt={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"},Ct=kt,Mt=n(29847);function Tt(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?Object(arguments[e]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),r.forEach((function(e){Pt(t,e,n[e])}))}return t}function Pt(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var It=function(t,e){var n=Tt({},t,e.attrs);return(0,o.bF)(Mt.A,Tt({},n,{icon:Ct}),null)};It.displayName="EllipsisOutlined",It.inheritAttrs=!1;var $t=It,Et=n(33063);const Rt=()=>({title:U.A.any,originItemValue:(0,st.ge)()});var Dt=(0,o.pM)({compatConfig:{MODE:3},name:"AMenuItemGroup",inheritAttrs:!1,props:Rt(),slots:Object,setup(t,e){let{slots:n,attrs:i}=e;const{prefixCls:a}=b(),s=(0,o.EW)((()=>`${a.value}-item-group`)),l=nt();return()=>{var e,a;return l?null===(e=n.default)||void 0===e?void 0:e.call(n):(0,o.bF)("li",(0,r.A)((0,r.A)({},i),{},{onClick:t=>t.stopPropagation(),class:s.value}),[(0,o.bF)("div",{title:"string"===typeof t.title?t.title:void 0,class:`${s.value}-title`},[(0,G.rU)(n,t,"title")]),(0,o.bF)("ul",{class:`${s.value}-list`},[null===(a=n.default)||void 0===a?void 0:a.call(n)])])}}});const Lt=()=>({prefixCls:String,dashed:Boolean});var Nt=(0,o.pM)({compatConfig:{MODE:3},name:"AMenuDivider",props:Lt(),setup(t){const{prefixCls:e}=b(),n=(0,o.EW)((()=>({[`${e.value}-item-divider`]:!0,[`${e.value}-item-divider-dashed`]:!!t.dashed})));return()=>(0,o.bF)("li",{class:n.value},null)}}),zt=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n};function Bt(t,e,n){return(t||[]).map(((t,i)=>{if(t&&"object"===typeof t){const s=t,{label:l,children:u,key:c,type:h}=s,d=zt(s,["label","children","key","type"]),p=null!==c&&void 0!==c?c:`tmp-${i}`,f=n?n.parentKeys.slice():[],g=[],v={eventKey:p,key:p,parentEventKeys:(0,a.KR)(f),parentKeys:(0,a.KR)(f),childrenEventKeys:(0,a.KR)(g),isLeaf:!1};if(u||"group"===h){if("group"===h){const i=Bt(u,e,n);return(0,o.bF)(Dt,(0,r.A)((0,r.A)({key:p},d),{},{title:l,originItemValue:t}),{default:()=>[i]})}e.set(p,v),n&&n.childrenEventKeys.push(p);const i=Bt(u,e,{childrenEventKeys:g,parentKeys:[].concat(f,p)});return(0,o.bF)(At,(0,r.A)((0,r.A)({key:p},d),{},{title:l,originItemValue:t}),{default:()=>[i]})}return"divider"===h?(0,o.bF)(Nt,(0,r.A)({key:p},d),null):(v.isLeaf=!0,e.set(p,v),(0,o.bF)(ct,(0,r.A)((0,r.A)({key:p},d),{},{originItemValue:t}),{default:()=>[l]}))}return null})).filter((t=>t))}function Ft(t){const e=(0,a.IJ)([]),n=(0,a.IJ)(!1),r=(0,a.IJ)(new Map);return(0,o.wB)((()=>t.items),(()=>{const i=new Map;n.value=!1,t.items?(n.value=!0,e.value=Bt(t.items,i)):e.value=void 0,r.value=i}),{immediate:!0,deep:!0}),{itemsNodes:e,store:r,hasItmes:n}}var Wt=n(78089),jt=n(86049),Vt=n(67177),Qt=n(41781),Ht=n(94471),Zt=n(96704);const Gt=t=>{const{componentCls:e,motionDurationSlow:n,menuHorizontalHeight:r,colorSplit:i,lineWidth:o,lineType:a,menuItemPaddingInline:s}=t;return{[`${e}-horizontal`]:{lineHeight:`${r}px`,border:0,borderBottom:`${o}px ${a} ${i}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${e}-item, ${e}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:s},[`> ${e}-item:hover,\n > ${e}-item-active,\n > ${e}-submenu ${e}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${e}-item, ${e}-submenu-title`]:{transition:[`border-color ${n}`,`background ${n}`].join(",")},[`${e}-submenu-arrow`]:{display:"none"}}}};var Xt=Gt;const Ut=t=>{let{componentCls:e,menuArrowOffset:n}=t;return{[`${e}-rtl`]:{direction:"rtl"},[`${e}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${e}-rtl${e}-vertical,\n ${e}-submenu-rtl ${e}-vertical`]:{[`${e}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${n})`},"&::after":{transform:`rotate(45deg) translateY(${n})`}}}}};var Yt=Ut,qt=n(69729);const Kt=t=>(0,i.A)({},(0,qt.jk)(t)),Jt=(t,e)=>{const{componentCls:n,colorItemText:r,colorItemTextSelected:o,colorGroupTitle:a,colorItemBg:s,colorSubItemBg:l,colorItemBgSelected:u,colorActiveBarHeight:c,colorActiveBarWidth:h,colorActiveBarBorderSize:d,motionDurationSlow:p,motionEaseInOut:f,motionEaseOut:g,menuItemPaddingInline:v,motionDurationMid:m,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}=t;return{[`${n}-${e}`]:{color:r,background:s,[`&${n}-root:focus-visible`]:(0,i.A)({},Kt(t)),[`${n}-item-group-title`]:{color:a},[`${n}-submenu-selected`]:{[`> ${n}-submenu-title`]:{color:o}},[`${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:o,[`&${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,i.A)({},Kt(t))},[`&${n}-submenu > ${n}`]:{backgroundColor:M},[`&${n}-popup > ${n}`]:{backgroundColor:s},[`&${n}-horizontal`]:(0,i.A)((0,i.A)({},"dark"===e?{borderBottom:0}:{}),{[`> ${n}-item, > ${n}-submenu`]:{top:d,marginTop:-d,marginBottom:0,borderRadius:0,"&::after":{position:"absolute",insetInline:v,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:`${d}px ${b} ${_}`}},[`&${n}-inline`]:{[`${n}-sub${n}-inline`]:{background:l},[`${n}-item, ${n}-submenu-title`]:d&&h?{width:`calc(100% + ${d}px)`}:{},[`${n}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${h}px solid ${o}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${m} ${g}`,`opacity ${m} ${g}`].join(","),content:'""'},[`&${n}-item-danger`]:{"&::after":{borderInlineEndColor:S}}},[`${n}-selected, ${n}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${m} ${f}`,`opacity ${m} ${f}`].join(",")}}}}}};var te=Jt;const ee=t=>{const{componentCls:e,menuItemHeight:n,itemMarginInline:r,padding:i,menuArrowSize:o,marginXS:a,marginXXS:s}=t,l=i+o+a;return{[`${e}-item`]:{position:"relative"},[`${e}-item, ${e}-submenu-title`]:{height:n,lineHeight:`${n}px`,paddingInline:i,overflow:"hidden",textOverflow:"ellipsis",marginInline:r,marginBlock:s,width:`calc(100% - ${2*r}px)`},[`${e}-submenu`]:{paddingBottom:.02},[`> ${e}-item,\n > ${e}-submenu > ${e}-submenu-title`]:{height:n,lineHeight:`${n}px`},[`${e}-item-group-list ${e}-submenu-title,\n ${e}-submenu-title`]:{paddingInlineEnd:l}}},ne=t=>{const{componentCls:e,iconCls:n,menuItemHeight:r,colorTextLightSolid:o,dropdownWidth:a,controlHeightLG:s,motionDurationMid:l,motionEaseOut:u,paddingXL:c,fontSizeSM:h,fontSizeLG:d,motionDurationSlow:p,paddingXS:f,boxShadowSecondary:g}=t,v={height:r,lineHeight:`${r}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[e]:{["&-inline, &-vertical"]:(0,i.A)({[`&${e}-root`]:{boxShadow:"none"}},ee(t))},[`${e}-submenu-popup`]:{[`${e}-vertical`]:(0,i.A)((0,i.A)({},ee(t)),{boxShadow:g})}},{[`${e}-submenu-popup ${e}-vertical${e}-sub`]:{minWidth:a,maxHeight:`calc(100vh - ${2.5*s}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${e}-inline`]:{width:"100%",[`&${e}-root`]:{[`${e}-item, ${e}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${p}`,`background ${p}`,`padding ${l} ${u}`].join(","),[`> ${e}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${e}-sub${e}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${e}-submenu > ${e}-submenu-title`]:v,[`& ${e}-item-group-title`]:{paddingInlineStart:c}},[`${e}-item`]:v}},{[`${e}-inline-collapsed`]:{width:2*r,[`&${e}-root`]:{[`${e}-item, ${e}-submenu ${e}-submenu-title`]:{[`> ${e}-inline-collapsed-noicon`]:{fontSize:d,textAlign:"center"}}},[`> ${e}-item,\n > ${e}-item-group > ${e}-item-group-list > ${e}-item,\n > ${e}-item-group > ${e}-item-group-list > ${e}-submenu > ${e}-submenu-title,\n > ${e}-submenu > ${e}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${h}px)`,textOverflow:"clip",[`\n ${e}-submenu-arrow,\n ${e}-submenu-expand-icon\n `]:{opacity:0},[`${e}-item-icon, ${n}`]:{margin:0,fontSize:d,lineHeight:`${r}px`,"+ span":{display:"inline-block",opacity:0}}},[`${e}-item-icon, ${n}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${e}-item-icon, ${n}`]:{display:"none"},"a, a:hover":{color:o}},[`${e}-item-group-title`]:(0,i.A)((0,i.A)({},qt.L9),{paddingInline:f})}}]};var re=ne;const ie=t=>{const{componentCls:e,fontSize:n,motionDurationSlow:r,motionDurationMid:o,motionEaseInOut:a,motionEaseOut:s,iconCls:l,controlHeightSM:u}=t;return{[`${e}-item, ${e}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${r}`,`background ${r}`,`padding ${r} ${a}`].join(","),[`${e}-item-icon, ${l}`]:{minWidth:n,fontSize:n,transition:[`font-size ${o} ${s}`,`margin ${r} ${a}`,`color ${r}`].join(","),"+ span":{marginInlineStart:u-n,opacity:1,transition:[`opacity ${r} ${a}`,`margin ${r}`,`color ${r}`].join(",")}},[`${e}-item-icon`]:(0,i.A)({},(0,qt.Nk)()),[`&${e}-item-only-child`]:{[`> ${l}, > ${e}-item-icon`]:{marginInlineEnd:0}}},[`${e}-item-disabled, ${e}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${e}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},oe=t=>{const{componentCls:e,motionDurationSlow:n,motionEaseInOut:r,borderRadius:i,menuArrowSize:o,menuArrowOffset:a}=t;return{[`${e}-submenu`]:{["&-expand-icon, &-arrow"]:{position:"absolute",top:"50%",insetInlineEnd:t.margin,width:o,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${n} ${r}, opacity ${n}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:.6*o,height:.15*o,backgroundColor:"currentcolor",borderRadius:i,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})`}}}}},ae=t=>{const{antCls:e,componentCls:n,fontSize:r,motionDurationSlow:o,motionDurationMid:a,motionEaseInOut:s,lineHeight:l,paddingXS:u,padding:c,colorSplit:h,lineWidth:d,zIndexPopup:p,borderRadiusLG:f,radiusSubMenuItem:g,menuArrowSize:v,menuArrowOffset:m,lineType:y,menuPanelMaskInset:b}=t;return[{"":{[`${n}`]:(0,i.A)((0,i.A)({},(0,qt.t6)()),{["&-hidden"]:{display:"none"}})},[`${n}-submenu-hidden`]:{display:"none"}},{[n]:(0,i.A)((0,i.A)((0,i.A)((0,i.A)((0,i.A)((0,i.A)((0,i.A)({},(0,qt.dF)(t)),(0,qt.t6)()),{marginBottom:0,paddingInlineStart:0,fontSize:r,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${o} 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:t.radiusItem},[`${n}-item-group-title`]:{padding:`${u}px ${c}px`,fontSize:r,lineHeight:l,transition:`all ${o}`},[`&-horizontal ${n}-submenu`]:{transition:[`border-color ${o} ${s}`,`background ${o} ${s}`].join(",")},[`${n}-submenu, ${n}-submenu-inline`]:{transition:[`border-color ${o} ${s}`,`background ${o} ${s}`,`padding ${a} ${s}`].join(",")},[`${n}-submenu ${n}-sub`]:{cursor:"initial",transition:[`background ${o} ${s}`,`padding ${o} ${s}`].join(",")},[`${n}-title-content`]:{transition:`color ${o}`},[`${n}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${n}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:h,borderStyle:y,borderWidth:0,borderTopWidth:d,marginBlock:d,padding:0,"&-dashed":{borderStyle:"dashed"}}}),ie(t)),{[`${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,i.A)((0,i.A)((0,i.A)({borderRadius:f},ie(t)),oe(t)),{[`${n}-item, ${n}-submenu > ${n}-submenu-title`]:{borderRadius:g},[`${n}-submenu-title::after`]:{transition:`transform ${o} ${s}`}})}}),oe(t)),{[`&-inline-collapsed ${n}-submenu-arrow,\n &-inline ${n}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${m})`},"&::after":{transform:`rotate(45deg) translateX(-${m})`}},[`${n}-submenu-open${n}-submenu-inline > ${n}-submenu-title > ${n}-submenu-arrow`]:{transform:`translateY(-${.2*v}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${m})`},"&::before":{transform:`rotate(45deg) translateX(${m})`}}})},{[`${e}-layout-header`]:{[n]:{lineHeight:"inherit"}}}]};var se=(t,e)=>{const n=(0,Ht.A)("Menu",((t,n)=>{let{overrideComponentToken:r}=n;if(!1===(null===e||void 0===e?void 0:e.value))return[];const{colorBgElevated:o,colorPrimary:a,colorError:s,colorErrorHover:l,colorTextLightSolid:u}=t,{controlHeightLG:c,fontSize:h}=t,d=h/7*5,p=(0,Zt.h1)(t,{menuItemHeight:c,menuItemPaddingInline:t.margin,menuArrowSize:d,menuHorizontalHeight:1.15*c,menuArrowOffset:.25*d+"px",menuPanelMaskInset:-7,menuSubMenuBg:o}),f=new Wt.q(u).setAlpha(.65).toRgbString(),g=(0,Zt.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 Wt.q(u).setAlpha(.25).toRgbString(),colorDangerItemText:s,colorDangerItemTextHover:l,colorDangerItemTextSelected:u,colorDangerItemBgActive:s,colorDangerItemBgSelected:s,menuSubMenuBg:"#001529",colorItemTextSelectedHorizontal:u,colorItemBgSelectedHorizontal:a},(0,i.A)({},r));return[ae(p),Xt(p),re(p),te(p,"light"),te(g,"dark"),Yt(p),(0,jt.A)(p),(0,Vt._j)(p,"slide-up"),(0,Vt._j)(p,"slide-down"),(0,Qt.aB)(p,"zoom-big")]}),(t=>{const{colorPrimary:e,colorError:n,colorTextDisabled:r,colorErrorBg:i,colorText:o,colorTextDescription:a,colorBgContainer:s,colorFillAlter:l,colorFillContent:u,lineWidth:c,lineWidthBold:h,controlItemBgActive:d,colorBgTextHover:p}=t;return{dropdownWidth:160,zIndexPopup:t.zIndexPopupBase+50,radiusItem:t.borderRadiusLG,radiusSubMenuItem:t.borderRadiusSM,colorItemText:o,colorItemTextHover:o,colorItemTextHoverHorizontal:e,colorGroupTitle:a,colorItemTextSelected:e,colorItemTextSelectedHorizontal:e,colorItemBg:s,colorItemBgHover:p,colorItemBgActive:u,colorSubItemBg:l,colorItemBgSelected:d,colorItemBgSelectedHorizontal:"transparent",colorActiveBarWidth:0,colorActiveBarHeight:h,colorActiveBarBorderSize:c,colorItemTextDisabled:r,colorDangerItemText:n,colorDangerItemTextHover:n,colorDangerItemTextSelected:n,colorDangerItemBgActive:i,colorDangerItemBgSelected:i,itemMarginInline:t.marginXXS}}));return n(t)};const le=Symbol("OverrideContextKey"),ue=()=>(0,o.WQ)(le,void 0),ce=t=>{var e,n,r;const{prefixCls:i,mode:a,selectable:s,validator:l,onClick:u,expandIcon:c}=ue()||{};(0,o.Gt)(le,{prefixCls:(0,o.EW)((()=>{var e,n;return null!==(n=null===(e=t.prefixCls)||void 0===e?void 0:e.value)&&void 0!==n?n:null===i||void 0===i?void 0:i.value})),mode:(0,o.EW)((()=>{var e,n;return null!==(n=null===(e=t.mode)||void 0===e?void 0:e.value)&&void 0!==n?n:null===a||void 0===a?void 0:a.value})),selectable:(0,o.EW)((()=>{var e,n;return null!==(n=null===(e=t.selectable)||void 0===e?void 0:e.value)&&void 0!==n?n:null===s||void 0===s?void 0:s.value})),validator:null!==(e=t.validator)&&void 0!==e?e:l,onClick:null!==(n=t.onClick)&&void 0!==n?n:u,expandIcon:null!==(r=t.expandIcon)&&void 0!==r?r:null===c||void 0===c?void 0:c.value})},he=()=>({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}),de=[];var pe=(0,o.pM)({compatConfig:{MODE:3},name:"AMenu",inheritAttrs:!1,props:he(),slots:Object,setup(t,e){let{slots:n,emit:s,attrs:l}=e;const{direction:u,getPrefixCls:c}=(0,M.A)("menu",t),h=ue(),d=(0,o.EW)((()=>{var e;return c("menu",t.prefixCls||(null===(e=null===h||void 0===h?void 0:h.prefixCls)||void 0===e?void 0:e.value))})),[p,f]=se(d,(0,o.EW)((()=>!h))),g=(0,a.IJ)(new Map),m=(0,o.WQ)(Z,(0,a.KR)(void 0)),y=(0,o.EW)((()=>void 0!==m.value?m.value:t.inlineCollapsed)),{itemsNodes:b}=Ft(t),_=(0,a.IJ)(!1);(0,o.sV)((()=>{_.value=!0})),(0,o.nT)((()=>{(0,T.A)(!(!0===t.inlineCollapsed&&"inline"!==t.mode),"Menu","`inlineCollapsed` should only be used when `mode` is inline."),(0,T.A)(!(void 0!==m.value&&!0===t.inlineCollapsed),"Menu","`inlineCollapsed` not control Menu under Sider. Should set `collapsed` on Sider instead.")}));const x=(0,a.KR)([]),w=(0,a.KR)([]),O=(0,a.KR)({});(0,o.wB)(g,(()=>{const t={};for(const e of g.value.values())t[e.key]=e;O.value=t}),{flush:"post"}),(0,o.nT)((()=>{if(void 0!==t.activeKey){let e=[];const n=t.activeKey?O.value[t.activeKey]:void 0;e=n&&void 0!==t.activeKey?H([].concat((0,a.R1)(n.parentKeys),t.activeKey)):[],v(x.value,e)||(x.value=e)}})),(0,o.wB)((()=>t.selectedKeys),(t=>{t&&(w.value=t.slice())}),{immediate:!0,deep:!0});const A=(0,a.KR)([]);(0,o.wB)([O,w],(()=>{let t=[];w.value.forEach((e=>{const n=O.value[e];n&&(t=t.concat((0,a.R1)(n.parentKeys)))})),t=H(t),v(A.value,t)||(A.value=t)}),{immediate:!0});const P=e=>{if(t.selectable){const{key:n}=e,r=w.value.includes(n);let o;o=t.multiple?r?w.value.filter((t=>t!==n)):[...w.value,n]:[n];const a=(0,i.A)((0,i.A)({},e),{selectedKeys:o});v(o,w.value)||(void 0===t.selectedKeys&&(w.value=o),s("update:selectedKeys",o),r&&t.multiple?s("deselect",a):s("select",a))}"inline"!==L.value&&!t.multiple&&I.value.length&&B(de)},I=(0,a.KR)([]);let $;(0,o.wB)((()=>t.openKeys),(function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:I.value;v(I.value,t)||(I.value=t.slice())}),{immediate:!0,deep:!0});const E=e=>{clearTimeout($),$=setTimeout((()=>{void 0===t.activeKey&&(x.value=e),s("update:activeKey",e[e.length-1])}))},R=(0,o.EW)((()=>!!t.disabled)),D=(0,o.EW)((()=>"rtl"===u.value)),L=(0,a.KR)("vertical"),N=(0,a.IJ)(!1);(0,o.nT)((()=>{var e;"inline"!==t.mode&&"vertical"!==t.mode||!y.value?(L.value=t.mode,N.value=!1):(L.value="vertical",N.value=y.value),(null===(e=null===h||void 0===h?void 0:h.mode)||void 0===e?void 0:e.value)&&(L.value=h.mode.value)}));const z=(0,o.EW)((()=>"inline"===L.value)),B=t=>{I.value=t,s("update:openKeys",t),s("openChange",t)},F=(0,a.KR)(I.value),W=(0,a.IJ)(!1);(0,o.wB)(I,(()=>{z.value&&(F.value=I.value)}),{immediate:!0}),(0,o.wB)(z,(()=>{W.value?z.value?I.value=F.value:B(de):W.value=!0}),{immediate:!0});const j=(0,o.EW)((()=>({[`${d.value}`]:!0,[`${d.value}-root`]:!0,[`${d.value}-${L.value}`]:!0,[`${d.value}-inline-collapsed`]:N.value,[`${d.value}-rtl`]:D.value,[`${d.value}-${t.theme}`]:!0}))),V=(0,o.EW)((()=>c())),Q=(0,o.EW)((()=>({horizontal:{name:`${V.value}-slide-up`},inline:(0,Et.A)(`${V.value}-motion-collapse`),other:{name:`${V.value}-zoom-big`}})));S(!0);const U=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];const e=[],n=g.value;return t.forEach((t=>{const{key:r,childrenEventKeys:i}=n.get(t);e.push(r,...U((0,a.R1)(i)))})),e},q=t=>{var e;s("click",t),P(t),null===(e=null===h||void 0===h?void 0:h.onClick)||void 0===e||e.call(h)},K=(t,e)=>{var n;const r=(null===(n=O.value[t])||void 0===n?void 0:n.childrenEventKeys)||[];let i=I.value.filter((e=>e!==t));if(e)i.push(t);else if("inline"!==L.value){const t=U((0,a.R1)(r));i=H(i.filter((e=>!t.includes(e))))}v(I,i)||B(i)},J=(t,e)=>{g.value.set(t,e),g.value=new Map(g.value)},tt=t=>{g.value.delete(t),g.value=new Map(g.value)},nt=(0,a.KR)(0),rt=(0,o.EW)((()=>{var e;return t.expandIcon||n.expandIcon||(null===(e=null===h||void 0===h?void 0:h.expandIcon)||void 0===e?void 0:e.value)?e=>{let r=t.expandIcon||n.expandIcon;return r="function"===typeof r?r(e):r,(0,it.Ob)(r,{class:`${d.value}-submenu-expand-icon`},!1)}:null}));C({prefixCls:d,activeKeys:x,openKeys:I,selectedKeys:w,changeActiveKeys:E,disabled:R,rtl:D,mode:L,inlineIndent:(0,o.EW)((()=>t.inlineIndent)),subMenuCloseDelay:(0,o.EW)((()=>t.subMenuCloseDelay)),subMenuOpenDelay:(0,o.EW)((()=>t.subMenuOpenDelay)),builtinPlacements:(0,o.EW)((()=>t.builtinPlacements)),triggerSubMenuAction:(0,o.EW)((()=>t.triggerSubMenuAction)),getPopupContainer:(0,o.EW)((()=>t.getPopupContainer)),inlineCollapsed:N,theme:(0,o.EW)((()=>t.theme)),siderCollapsed:m,defaultMotions:(0,o.EW)((()=>_.value?Q.value:null)),motion:(0,o.EW)((()=>_.value?t.motion:null)),overflowDisabled:(0,a.IJ)(void 0),onOpenChange:K,onItemClick:q,registerMenuInfo:J,unRegisterMenuInfo:tt,selectedSubMenuKeys:A,expandIcon:rt,forceSubMenuRender:(0,o.EW)((()=>t.forceSubMenuRender)),rootClassName:f});const ot=()=>{var t;return b.value||(0,G.MI)(null===(t=n.default)||void 0===t?void 0:t.call(n))};return()=>{var e;const i=ot(),a=nt.value>=i.length-1||"horizontal"!==L.value||t.disabledOverflow,s=e=>"horizontal"!==L.value||t.disabledOverflow?e:e.map(((t,e)=>(0,o.bF)(k,{key:t.key,overflowDisabled:e>nt.value},{default:()=>t}))),u=(null===(e=n.overflowedIndicator)||void 0===e?void 0:e.call(n))||(0,o.bF)($t,null,null);return p((0,o.bF)(X.A,(0,r.A)((0,r.A)({},l),{},{onMousedown:t.onMousedown,prefixCls:`${d.value}-overflow`,component:"ul",itemComponent:ct,class:[j.value,l.class,f.value],role:"menu",id:t.id,data:s(i),renderRawItem:t=>t,renderRawRest:t=>{const e=t.length,n=e?i.slice(-e):null;return(0,o.bF)(o.FK,null,[(0,o.bF)(At,{eventKey:Y,key:Y,title:u,disabled:a,internalPopupClose:0===e},{default:()=>n}),(0,o.bF)(et,null,{default:()=>[(0,o.bF)(At,{eventKey:Y,key:Y,title:u,disabled:a,internalPopupClose:0===e},{default:()=>n})]})])},maxCount:"horizontal"!==L.value||t.disabledOverflow?X.A.INVALIDATE:X.A.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:t=>{nt.value=t}}),{default:()=>[(0,o.bF)(o.Im,{to:"body"},{default:()=>[(0,o.bF)("div",{style:{display:"none"},"aria-hidden":!0},[(0,o.bF)(et,null,{default:()=>[s(ot())]})])]})]}))}}});pe.install=function(t){return t.component(pe.name,pe),t.component(ct.name,ct),t.component(At.name,At),t.component(Nt.name,Nt),t.component(Dt.name,Dt),t},pe.Item=ct,pe.Divider=Nt,pe.SubMenu=At,pe.ItemGroup=Dt;var fe=pe;const ge={adjustX:1,adjustY:1},ve=[0,0],me={topLeft:{points:["bl","tl"],overflow:ge,offset:[0,-4],targetOffset:ve},topCenter:{points:["bc","tc"],overflow:ge,offset:[0,-4],targetOffset:ve},topRight:{points:["br","tr"],overflow:ge,offset:[0,-4],targetOffset:ve},bottomLeft:{points:["tl","bl"],overflow:ge,offset:[0,4],targetOffset:ve},bottomCenter:{points:["tc","bc"],overflow:ge,offset:[0,4],targetOffset:ve},bottomRight:{points:["tr","br"],overflow:ge,offset:[0,4],targetOffset:ve}};var ye=me,be=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n},_e=(0,o.pM)({compatConfig:{MODE:3},props:{minOverlayWidthMatchTrigger:{type:Boolean,default:void 0},arrow:{type:Boolean,default:!1},prefixCls:U.A.string.def("rc-dropdown"),transitionName:String,overlayClassName:U.A.string.def(""),openClassName:String,animation:U.A.any,align:U.A.object,overlayStyle:{type:Object,default:void 0},placement:U.A.string.def("bottomLeft"),overlay:U.A.any,trigger:U.A.oneOfType([U.A.string,U.A.arrayOf(U.A.string)]).def("hover"),alignPoint:{type:Boolean,default:void 0},showAction:U.A.array,hideAction:U.A.array,getPopupContainer:Function,visible:{type:Boolean,default:void 0},defaultVisible:{type:Boolean,default:!1},mouseEnterDelay:U.A.number.def(.15),mouseLeaveDelay:U.A.number.def(.1)},emits:["visibleChange","overlayClick"],setup(t,e){let{slots:n,emit:i,expose:s}=e;const l=(0,a.KR)(!!t.visible);(0,o.wB)((()=>t.visible),(t=>{void 0!==t&&(l.value=t)}));const u=(0,a.KR)();s({triggerRef:u});const c=e=>{void 0===t.visible&&(l.value=!1),i("overlayClick",e)},d=e=>{void 0===t.visible&&(l.value=e),i("visibleChange",e)},p=()=>{var e;const r=null===(e=n.overlay)||void 0===e?void 0:e.call(n),i={prefixCls:`${t.prefixCls}-menu`,onClick:c};return(0,o.bF)(o.FK,{key:G.Py},[t.arrow&&(0,o.bF)("div",{class:`${t.prefixCls}-arrow`},null),(0,it.Ob)(r,i,!1)])},f=(0,o.EW)((()=>{const{minOverlayWidthMatchTrigger:e=!t.alignPoint}=t;return e})),g=()=>{var e;const r=null===(e=n.default)||void 0===e?void 0:e.call(n);return l.value&&r?(0,it.Ob)(r[0],{class:t.openClassName||`${t.prefixCls}-open`},!1):r},v=(0,o.EW)((()=>t.hideAction||-1===t.trigger.indexOf("contextmenu")?t.hideAction:["click"]));return()=>{const{prefixCls:e,arrow:n,showAction:i,overlayStyle:a,trigger:s,placement:c,align:m,getPopupContainer:y,transitionName:b,animation:_,overlayClassName:x}=t,w=be(t,["prefixCls","arrow","showAction","overlayStyle","trigger","placement","align","getPopupContainer","transitionName","animation","overlayClassName"]);return(0,o.bF)(ht.A,(0,r.A)((0,r.A)({},w),{},{prefixCls:e,ref:u,popupClassName:(0,h.A)(x,{[`${e}-show-arrow`]:n}),popupStyle:a,builtinPlacements:ye,action:s,showAction:i,hideAction:v.value||[],popupPlacement:c,popupAlign:m,popupTransitionName:b,popupAnimation:_,popupVisible:l.value,stretch:f.value?"minWidth":"",onPopupVisibleChange:d,getPopupContainer:y}),{popup:p,default:g})}}}),xe=_e,we=(0,o.pM)({compatConfig:{MODE:3},name:"AddButton",inheritAttrs:!1,props:{prefixCls:String,editable:{type:Object},locale:{type:Object,default:void 0}},setup(t,e){let{expose:n,attrs:r}=e;const i=(0,a.KR)();return n({domRef:i}),()=>{const{prefixCls:e,editable:n,locale:a}=t;return n&&!1!==n.showAdd?(0,o.bF)("button",{ref:i,type:"button",class:`${e}-nav-add`,style:r.style,"aria-label":(null===a||void 0===a?void 0:a.addAriaLabel)||"Add tab",onClick:t=>{n.onEdit("add",{event:t})}},[n.addIcon?n.addIcon():"+"]):null}}}),Oe=n(6340);const Se={prefixCls:{type:String},id:{type:String},tabs:{type:Object},rtl:{type:Boolean},tabBarGutter:{type:Number},activeKey:{type:[String,Number]},mobile:{type:Boolean},moreIcon:U.A.any,moreTransitionName:{type:String},editable:{type:Object},locale:{type:Object,default:void 0},removeAriaLabel:String,onTabClick:{type:Function},popupClassName:String,getPopupContainer:(0,st.Fg)()};var Ae=(0,o.pM)({compatConfig:{MODE:3},name:"OperationNode",inheritAttrs:!1,props:Se,emits:["tabClick"],slots:Object,setup(t,e){let{attrs:n,slots:r}=e;const[i,a]=(0,Oe.A)(!1),[s,l]=(0,Oe.A)(null),u=e=>{const n=t.tabs.filter((t=>!t.disabled));let r=n.findIndex((t=>t.key===s.value))||0;const i=n.length;for(let t=0;t<i;t+=1){r=(r+e+i)%i;const t=n[r];if(!t.disabled)return void l(t.key)}},d=e=>{const{which:n}=e;if(i.value)switch(n){case c.A.UP:u(-1),e.preventDefault();break;case c.A.DOWN:u(1),e.preventDefault();break;case c.A.ESC:a(!1);break;case c.A.SPACE:case c.A.ENTER:null!==s.value&&t.onTabClick(s.value,e);break}else[c.A.DOWN,c.A.SPACE,c.A.ENTER].includes(n)&&(a(!0),e.preventDefault())},p=(0,o.EW)((()=>`${t.id}-more-popup`)),f=(0,o.EW)((()=>null!==s.value?`${p.value}-${s.value}`:null)),g=(e,n)=>{e.preventDefault(),e.stopPropagation(),t.editable.onEdit("remove",{key:n,event:e})};return(0,o.sV)((()=>{(0,o.wB)(s,(()=>{const t=document.getElementById(f.value);t&&t.scrollIntoView&&t.scrollIntoView(!1)}),{flush:"post",immediate:!0})})),(0,o.wB)(i,(()=>{i.value||l(null)})),ce({}),()=>{var e;const{prefixCls:l,id:u,tabs:c,locale:v,mobile:m,moreIcon:y=(null===(e=r.moreIcon)||void 0===e?void 0:e.call(r))||(0,o.bF)($t,null,null),moreTransitionName:b,editable:_,tabBarGutter:x,rtl:w,onTabClick:O,popupClassName:S}=t;if(!c.length)return null;const A=`${l}-dropdown`,k=null===v||void 0===v?void 0:v.dropdownAriaLabel,C={[w?"marginRight":"marginLeft"]:x};c.length||(C.visibility="hidden",C.order=1);const M=(0,h.A)({[`${A}-rtl`]:w,[`${S}`]:!0}),T=m?null:(0,o.bF)(xe,{prefixCls:A,trigger:["hover"],visible:i.value,transitionName:b,onVisibleChange:a,overlayClassName:M,mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:t.getPopupContainer},{overlay:()=>(0,o.bF)(fe,{onClick:t=>{let{key:e,domEvent:n}=t;O(e,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:()=>[c.map((e=>{var n,r;const i=_&&!1!==e.closable&&!e.disabled;return(0,o.bF)(ct,{key:e.key,id:`${p.value}-${e.key}`,role:"option","aria-controls":u&&`${u}-panel-${e.key}`,disabled:e.disabled},{default:()=>[(0,o.bF)("span",null,["function"===typeof e.tab?e.tab():e.tab]),i&&(0,o.bF)("button",{type:"button","aria-label":t.removeAriaLabel||"remove",tabindex:0,class:`${A}-menu-item-remove`,onClick:t=>{t.stopPropagation(),g(t,e.key)}},[(null===(n=e.closeIcon)||void 0===n?void 0:n.call(e))||(null===(r=_.removeIcon)||void 0===r?void 0:r.call(_))||"×"])]})}))]}),default:()=>(0,o.bF)("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":i.value,onKeydown:d},[y])});return(0,o.bF)("div",{class:(0,h.A)(`${l}-nav-operations`,n.class),style:n.style},[T,(0,o.bF)(we,{prefixCls:l,locale:v,editable:_},null)])}}});const ke=Symbol("tabsContextKey"),Ce=t=>{(0,o.Gt)(ke,t)},Me=()=>(0,o.WQ)(ke,{tabs:(0,a.KR)([]),prefixCls:(0,a.KR)()});(0,o.pM)({compatConfig:{MODE:3},name:"TabsContextProvider",inheritAttrs:!1,props:{tabs:{type:Object,default:void 0},prefixCls:{type:String,default:void 0}},setup(t,e){let{slots:n}=e;return Ce((0,a.QW)(t)),()=>{var t;return null===(t=n.default)||void 0===t?void 0:t.call(n)}}});const Te=.1,Pe=.01,Ie=20,$e=Math.pow(.995,Ie);function Ee(t,e){const[n,r]=(0,Oe.A)(),[i,s]=(0,Oe.A)(0),[l,u]=(0,Oe.A)(0),[c,h]=(0,Oe.A)(),d=(0,a.KR)();function p(t){const{screenX:e,screenY:n}=t.touches[0];r({x:e,y:n}),clearInterval(d.value)}function f(t){if(!n.value)return;t.preventDefault();const{screenX:o,screenY:a}=t.touches[0],l=o-n.value.x,c=a-n.value.y;e(l,c),r({x:o,y:a});const d=Date.now();u(d-i.value),s(d),h({x:l,y:c})}function g(){if(!n.value)return;const t=c.value;if(r(null),h(null),t){const n=t.x/l.value,r=t.y/l.value,i=Math.abs(n),o=Math.abs(r);if(Math.max(i,o)<Te)return;let a=n,s=r;d.value=setInterval((()=>{Math.abs(a)<Pe&&Math.abs(s)<Pe?clearInterval(d.value):(a*=$e,s*=$e,e(a*Ie,s*Ie))}),Ie)}}const v=(0,a.KR)();function m(t){const{deltaX:n,deltaY:r}=t;let i=0;const o=Math.abs(n),a=Math.abs(r);o===a?i="x"===v.value?n:r:o>a?(i=n,v.value="x"):(i=r,v.value="y"),e(-i,-i)&&t.preventDefault()}const y=(0,a.KR)({onTouchStart:p,onTouchMove:f,onTouchEnd:g,onWheel:m});function b(t){y.value.onTouchStart(t)}function _(t){y.value.onTouchMove(t)}function x(t){y.value.onTouchEnd(t)}function w(t){y.value.onWheel(t)}(0,o.sV)((()=>{var e,n;document.addEventListener("touchmove",_,{passive:!1}),document.addEventListener("touchend",x,{passive:!1}),null===(e=t.value)||void 0===e||e.addEventListener("touchstart",b,{passive:!1}),null===(n=t.value)||void 0===n||n.addEventListener("wheel",w,{passive:!1})})),(0,o.xo)((()=>{document.removeEventListener("touchmove",_),document.removeEventListener("touchend",x)}))}function Re(t,e){const n=(0,a.KR)(t);function r(t){const r="function"===typeof t?t(n.value):t;r!==n.value&&e(r,n.value),n.value=r}return[n,r]}var De=n(71555),Le=n(92389);const Ne=()=>{const t=(0,a.KR)(new Map),e=e=>n=>{t.value.set(e,n)};return(0,o.Ic)((()=>{t.value=new Map})),[e,t]};var ze=Ne,Be=n(26714);const Fe={width:0,height:0,left:0,top:0,right:0},We=()=>({id:{type:String},tabPosition:{type:String},activeKey:{type:[String,Number]},rtl:{type:Boolean},animated:(0,st.ge)(),editable:(0,st.ge)(),moreIcon:U.A.any,moreTransitionName:{type:String},mobile:{type:Boolean},tabBarGutter:{type:Number},renderTabBar:{type:Function},locale:(0,st.ge)(),popupClassName:String,getPopupContainer:(0,st.Fg)(),onTabClick:{type:Function},onTabScroll:{type:Function}}),je=(t,e)=>{const{offsetWidth:n,offsetHeight:r,offsetTop:i,offsetLeft:o}=t,{width:a,height:s,x:l,y:u}=t.getBoundingClientRect();return Math.abs(a-n)<1?[a,s,l-e.x,u-e.y]:[n,r,o,i]};var Ve=(0,o.pM)({compatConfig:{MODE:3},name:"TabNavList",inheritAttrs:!1,props:We(),slots:Object,emits:["tabClick","tabScroll"],setup(t,e){let{attrs:n,slots:l}=e;const{tabs:c,prefixCls:p}=Me(),g=(0,a.IJ)(),v=(0,a.IJ)(),m=(0,a.IJ)(),y=(0,a.IJ)(),[b,_]=ze(),x=(0,o.EW)((()=>"top"===t.tabPosition||"bottom"===t.tabPosition)),[w,O]=Re(0,((e,n)=>{x.value&&t.onTabScroll&&t.onTabScroll({direction:e>n?"left":"right"})})),[S,A]=Re(0,((e,n)=>{!x.value&&t.onTabScroll&&t.onTabScroll({direction:e>n?"top":"bottom"})})),[k,C]=(0,Oe.A)(0),[M,T]=(0,Oe.A)(0),[P,I]=(0,Oe.A)(null),[$,E]=(0,Oe.A)(null),[R,D]=(0,Oe.A)(0),[L,N]=(0,Oe.A)(0),[z,B]=u(new Map),F=f(c,z),W=(0,o.EW)((()=>`${p.value}-nav-operations-hidden`)),j=(0,a.IJ)(0),V=(0,a.IJ)(0);(0,o.nT)((()=>{x.value?t.rtl?(j.value=0,V.value=Math.max(0,k.value-P.value)):(j.value=Math.min(0,P.value-k.value),V.value=0):(j.value=Math.min(0,$.value-M.value),V.value=0)}));const Q=t=>t<j.value?j.value:t>V.value?V.value:t,H=(0,a.IJ)(),[Z,G]=(0,Oe.A)(),X=()=>{G(Date.now())},U=()=>{clearTimeout(H.value)},Y=(t,e)=>{t((t=>{const n=Q(t+e);return n}))};Ee(g,((t,e)=>{if(x.value){if(P.value>=k.value)return!1;Y(O,t)}else{if($.value>=M.value)return!1;Y(A,e)}return U(),X(),!0})),(0,o.wB)(Z,(()=>{U(),Z.value&&(H.value=setTimeout((()=>{G(0)}),100))}));const q=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:t.activeKey;const n=F.value.get(e)||{width:0,height:0,left:0,right:0,top:0};if(x.value){let e=w.value;t.rtl?n.right<w.value?e=n.right:n.right+n.width>w.value+P.value&&(e=n.right+n.width-P.value):n.left<-w.value?e=-n.left:n.left+n.width>-w.value+P.value&&(e=-(n.left+n.width-P.value)),A(0),O(Q(e))}else{let t=S.value;n.top<-S.value?t=-n.top:n.top+n.height>-S.value+$.value&&(t=-(n.top+n.height-$.value)),O(0),A(Q(t))}},K=(0,a.IJ)(0),J=(0,a.IJ)(0);(0,o.nT)((()=>{let e,n,r,i,o,a;const s=F.value;["top","bottom"].includes(t.tabPosition)?(e="width",i=P.value,o=k.value,a=R.value,n=t.rtl?"right":"left",r=Math.abs(w.value)):(e="height",i=$.value,o=k.value,a=L.value,n="top",r=-S.value);let l=i;o+a>i&&o<i&&(l=i-a);const u=c.value;if(!u.length)return[K.value,J.value]=[0,0];const h=u.length;let d=h;for(let t=0;t<h;t+=1){const i=s.get(u[t].key)||Fe;if(i[n]+i[e]>r+l){d=t-1;break}}let p=0;for(let t=h-1;t>=0;t-=1){const e=s.get(u[t].key)||Fe;if(e[n]<r){p=t+1;break}}return[K.value,J.value]=[p,d]}));const tt=()=>{B((()=>{var t;const e=new Map,n=null===(t=v.value)||void 0===t?void 0:t.getBoundingClientRect();return c.value.forEach((t=>{let{key:r}=t;const i=_.value.get(r),o=(null===i||void 0===i?void 0:i.$el)||i;if(o){const[t,i,a,s]=je(o,n);e.set(r,{width:t,height:i,left:a,top:s})}})),e}))};(0,o.wB)((()=>c.value.map((t=>t.key)).join("%%")),(()=>{tt()}),{flush:"post"});const et=()=>{var t,e,n,r,i;const o=(null===(t=g.value)||void 0===t?void 0:t.offsetWidth)||0,a=(null===(e=g.value)||void 0===e?void 0:e.offsetHeight)||0,s=(null===(n=y.value)||void 0===n?void 0:n.$el)||{},l=s.offsetWidth||0,u=s.offsetHeight||0;I(o),E(a),D(l),N(u);const c=((null===(r=v.value)||void 0===r?void 0:r.offsetWidth)||0)-l,h=((null===(i=v.value)||void 0===i?void 0:i.offsetHeight)||0)-u;C(c),T(h),tt()},nt=(0,o.EW)((()=>[...c.value.slice(0,K.value),...c.value.slice(J.value+1)])),[rt,it]=(0,Oe.A)(),ot=(0,o.EW)((()=>F.value.get(t.activeKey))),at=(0,a.IJ)(),st=()=>{s.A.cancel(at.value)};(0,o.wB)([ot,x,()=>t.rtl],(()=>{const e={};ot.value&&(x.value?(t.rtl?e.right=(0,Le.cl)(ot.value.right):e.left=(0,Le.cl)(ot.value.left),e.width=(0,Le.cl)(ot.value.width)):(e.top=(0,Le.cl)(ot.value.top),e.height=(0,Le.cl)(ot.value.height))),st(),at.value=(0,s.A)((()=>{it(e)}))})),(0,o.wB)([()=>t.activeKey,ot,F,x],(()=>{q()}),{flush:"post"}),(0,o.wB)([()=>t.rtl,()=>t.tabBarGutter,()=>t.activeKey,()=>c.value],(()=>{et()}),{flush:"post"});const lt=t=>{let{position:e,prefixCls:n,extra:r}=t;if(!r)return null;const i=null===r||void 0===r?void 0:r({position:e});return i?(0,o.bF)("div",{class:`${n}-extra-content`},[i]):null};return(0,o.xo)((()=>{U(),st()})),()=>{const{id:e,animated:a,activeKey:s,rtl:u,editable:f,locale:_,tabPosition:O,tabBarGutter:A,onTabClick:C}=t,{class:T,style:I}=n,E=p.value,R=!!nt.value.length,D=`${E}-nav-wrap`;let L,N,z,B;x.value?u?(N=w.value>0,L=w.value+P.value<k.value):(L=w.value<0,N=-w.value+P.value<k.value):(z=S.value<0,B=-S.value+$.value<M.value);const F={};"top"===O||"bottom"===O?F[u?"marginRight":"marginLeft"]="number"===typeof A?`${A}px`:A:F.marginTop="number"===typeof A?`${A}px`:A;const j=c.value.map(((t,n)=>{const{key:r}=t;return(0,o.bF)(d,{id:e,prefixCls:E,key:r,tab:t,style:0===n?void 0:F,closable:t.closable,editable:f,active:r===s,removeAriaLabel:null===_||void 0===_?void 0:_.removeAriaLabel,ref:b(r),onClick:t=>{C(r,t)},onFocus:()=>{q(r),X(),g.value&&(u||(g.value.scrollLeft=0),g.value.scrollTop=0)}},l)}));return(0,o.bF)("div",{role:"tablist",class:(0,h.A)(`${E}-nav`,T),style:I,onKeydown:()=>{X()}},[(0,o.bF)(lt,{position:"left",prefixCls:E,extra:l.leftExtra},null),(0,o.bF)(De.A,{onResize:et},{default:()=>[(0,o.bF)("div",{class:(0,h.A)(D,{[`${D}-ping-left`]:L,[`${D}-ping-right`]:N,[`${D}-ping-top`]:z,[`${D}-ping-bottom`]:B}),ref:g},[(0,o.bF)(De.A,{onResize:et},{default:()=>[(0,o.bF)("div",{ref:v,class:`${E}-nav-list`,style:{transform:`translate(${w.value}px, ${S.value}px)`,transition:Z.value?"none":void 0}},[j,(0,o.bF)(we,{ref:y,prefixCls:E,locale:_,editable:f,style:(0,i.A)((0,i.A)({},0===j.length?void 0:F),{visibility:R?"hidden":null})},null),(0,o.bF)("div",{class:(0,h.A)(`${E}-ink-bar`,{[`${E}-ink-bar-animated`]:a.inkBar}),style:rt.value},null)])]})])]}),(0,o.bF)(Ae,(0,r.A)((0,r.A)({},t),{},{removeAriaLabel:null===_||void 0===_?void 0:_.removeAriaLabel,ref:m,prefixCls:E,tabs:nt.value,class:!R&&W.value}),(0,Be.A)(l,["moreIcon"])),(0,o.bF)(lt,{position:"right",prefixCls:E,extra:l.rightExtra},null),(0,o.bF)(lt,{position:"right",prefixCls:E,extra:l.tabBarExtraContent},null)])}}}),Qe=(0,o.pM)({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(t){const{tabs:e,prefixCls:n}=Me();return()=>{const{id:r,activeKey:i,animated:a,tabPosition:s,rtl:l,destroyInactiveTabPane:u}=t,c=a.tabPane,h=n.value,d=e.value.findIndex((t=>t.key===i));return(0,o.bF)("div",{class:`${h}-content-holder`},[(0,o.bF)("div",{class:[`${h}-content`,`${h}-content-${s}`,{[`${h}-content-animated`]:c}],style:d&&c?{[l?"marginRight":"marginLeft"]:`-${d}00%`}:null},[e.value.map((t=>(0,it.Ob)(t.node,{key:t.key,prefixCls:h,tabKey:t.key,id:r,animated:c,active:t.key===i,destroyInactiveTabPane:u})))])])}}}),He=n(47960),Ze=n(72510),Ge=n(68740),Xe=n(23273),Ue=n(78282),Ye=n(21244);const qe=t=>{const{componentCls:e,motionDurationSlow:n}=t;return[{[e]:{[`${e}-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,Vt._j)(t,"slide-up"),(0,Vt._j)(t,"slide-down")]]};var Ke=qe;const Je=t=>{const{componentCls:e,tabsCardHorizontalPadding:n,tabsCardHeadBackground:r,tabsCardGutter:i,colorSplit:o}=t;return{[`${e}-card`]:{[`> ${e}-nav, > div > ${e}-nav`]:{[`${e}-tab`]:{margin:0,padding:n,background:r,border:`${t.lineWidth}px ${t.lineType} ${o}`,transition:`all ${t.motionDurationSlow} ${t.motionEaseInOut}`},[`${e}-tab-active`]:{color:t.colorPrimary,background:t.colorBgContainer},[`${e}-ink-bar`]:{visibility:"hidden"}},[`&${e}-top, &${e}-bottom`]:{[`> ${e}-nav, > div > ${e}-nav`]:{[`${e}-tab + ${e}-tab`]:{marginLeft:{_skip_check_:!0,value:`${i}px`}}}},[`&${e}-top`]:{[`> ${e}-nav, > div > ${e}-nav`]:{[`${e}-tab`]:{borderRadius:`${t.borderRadiusLG}px ${t.borderRadiusLG}px 0 0`},[`${e}-tab-active`]:{borderBottomColor:t.colorBgContainer}}},[`&${e}-bottom`]:{[`> ${e}-nav, > div > ${e}-nav`]:{[`${e}-tab`]:{borderRadius:`0 0 ${t.borderRadiusLG}px ${t.borderRadiusLG}px`},[`${e}-tab-active`]:{borderTopColor:t.colorBgContainer}}},[`&${e}-left, &${e}-right`]:{[`> ${e}-nav, > div > ${e}-nav`]:{[`${e}-tab + ${e}-tab`]:{marginTop:`${i}px`}}},[`&${e}-left`]:{[`> ${e}-nav, > div > ${e}-nav`]:{[`${e}-tab`]:{borderRadius:{_skip_check_:!0,value:`${t.borderRadiusLG}px 0 0 ${t.borderRadiusLG}px`}},[`${e}-tab-active`]:{borderRightColor:{_skip_check_:!0,value:t.colorBgContainer}}}},[`&${e}-right`]:{[`> ${e}-nav, > div > ${e}-nav`]:{[`${e}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${t.borderRadiusLG}px ${t.borderRadiusLG}px 0`}},[`${e}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:t.colorBgContainer}}}}}}},tn=t=>{const{componentCls:e,tabsHoverColor:n,dropdownEdgeChildVerticalPadding:r}=t;return{[`${e}-dropdown`]:(0,i.A)((0,i.A)({},(0,qt.dF)(t)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:t.zIndexPopup,display:"block","&-hidden":{display:"none"},[`${e}-dropdown-menu`]:{maxHeight:t.tabsDropdownHeight,margin:0,padding:`${r}px 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:t.colorBgContainer,backgroundClip:"padding-box",borderRadius:t.borderRadiusLG,outline:"none",boxShadow:t.boxShadowSecondary,"&-item":(0,i.A)((0,i.A)({},qt.L9),{display:"flex",alignItems:"center",minWidth:t.tabsDropdownWidth,margin:0,padding:`${t.paddingXXS}px ${t.paddingSM}px`,color:t.colorText,fontWeight:"normal",fontSize:t.fontSize,lineHeight:t.lineHeight,cursor:"pointer",transition:`all ${t.motionDurationSlow}`,"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:!0,value:t.marginSM},color:t.colorTextDescription,fontSize:t.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:n}},"&:hover":{background:t.controlItemBgHover},"&-disabled":{"&, &:hover":{color:t.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}})}})}},en=t=>{const{componentCls:e,margin:n,colorSplit:r}=t;return{[`${e}-top, ${e}-bottom`]:{flexDirection:"column",[`> ${e}-nav, > div > ${e}-nav`]:{margin:`0 0 ${n}px 0`,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${t.lineWidth}px ${t.lineType} ${r}`,content:"''"},[`${e}-ink-bar`]:{height:t.lineWidthBold,"&-animated":{transition:`width ${t.motionDurationSlow}, left ${t.motionDurationSlow},\n right ${t.motionDurationSlow}`}},[`${e}-nav-wrap`]:{"&::before, &::after":{top:0,bottom:0,width:t.controlHeight},"&::before":{left:{_skip_check_:!0,value:0},boxShadow:t.boxShadowTabsOverflowLeft},"&::after":{right:{_skip_check_:!0,value:0},boxShadow:t.boxShadowTabsOverflowRight},[`&${e}-nav-wrap-ping-left::before`]:{opacity:1},[`&${e}-nav-wrap-ping-right::after`]:{opacity:1}}}},[`${e}-top`]:{[`> ${e}-nav,\n > div > ${e}-nav`]:{"&::before":{bottom:0},[`${e}-ink-bar`]:{bottom:0}}},[`${e}-bottom`]:{[`> ${e}-nav, > div > ${e}-nav`]:{order:1,marginTop:`${n}px`,marginBottom:0,"&::before":{top:0},[`${e}-ink-bar`]:{top:0}},[`> ${e}-content-holder, > div > ${e}-content-holder`]:{order:0}},[`${e}-left, ${e}-right`]:{[`> ${e}-nav, > div > ${e}-nav`]:{flexDirection:"column",minWidth:1.25*t.controlHeight,[`${e}-tab`]:{padding:`${t.paddingXS}px ${t.paddingLG}px`,textAlign:"center"},[`${e}-tab + ${e}-tab`]:{margin:`${t.margin}px 0 0 0`},[`${e}-nav-wrap`]:{flexDirection:"column","&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:t.controlHeight},"&::before":{top:0,boxShadow:t.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:t.boxShadowTabsOverflowBottom},[`&${e}-nav-wrap-ping-top::before`]:{opacity:1},[`&${e}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${e}-ink-bar`]:{width:t.lineWidthBold,"&-animated":{transition:`height ${t.motionDurationSlow}, top ${t.motionDurationSlow}`}},[`${e}-nav-list, ${e}-nav-operations`]:{flex:"1 0 auto",flexDirection:"column"}}},[`${e}-left`]:{[`> ${e}-nav, > div > ${e}-nav`]:{[`${e}-ink-bar`]:{right:{_skip_check_:!0,value:0}}},[`> ${e}-content-holder, > div > ${e}-content-holder`]:{marginLeft:{_skip_check_:!0,value:`-${t.lineWidth}px`},borderLeft:{_skip_check_:!0,value:`${t.lineWidth}px ${t.lineType} ${t.colorBorder}`},[`> ${e}-content > ${e}-tabpane`]:{paddingLeft:{_skip_check_:!0,value:t.paddingLG}}}},[`${e}-right`]:{[`> ${e}-nav, > div > ${e}-nav`]:{order:1,[`${e}-ink-bar`]:{left:{_skip_check_:!0,value:0}}},[`> ${e}-content-holder, > div > ${e}-content-holder`]:{order:0,marginRight:{_skip_check_:!0,value:-t.lineWidth},borderRight:{_skip_check_:!0,value:`${t.lineWidth}px ${t.lineType} ${t.colorBorder}`},[`> ${e}-content > ${e}-tabpane`]:{paddingRight:{_skip_check_:!0,value:t.paddingLG}}}}}},nn=t=>{const{componentCls:e,padding:n}=t;return{[e]:{"&-small":{[`> ${e}-nav`]:{[`${e}-tab`]:{padding:`${t.paddingXS}px 0`,fontSize:t.fontSize}}},"&-large":{[`> ${e}-nav`]:{[`${e}-tab`]:{padding:`${n}px 0`,fontSize:t.fontSizeLG}}}},[`${e}-card`]:{[`&${e}-small`]:{[`> ${e}-nav`]:{[`${e}-tab`]:{padding:`${1.5*t.paddingXXS}px ${n}px`}},[`&${e}-bottom`]:{[`> ${e}-nav ${e}-tab`]:{borderRadius:`0 0 ${t.borderRadius}px ${t.borderRadius}px`}},[`&${e}-top`]:{[`> ${e}-nav ${e}-tab`]:{borderRadius:`${t.borderRadius}px ${t.borderRadius}px 0 0`}},[`&${e}-right`]:{[`> ${e}-nav ${e}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${t.borderRadius}px ${t.borderRadius}px 0`}}},[`&${e}-left`]:{[`> ${e}-nav ${e}-tab`]:{borderRadius:{_skip_check_:!0,value:`${t.borderRadius}px 0 0 ${t.borderRadius}px`}}}},[`&${e}-large`]:{[`> ${e}-nav`]:{[`${e}-tab`]:{padding:`${t.paddingXS}px ${n}px ${1.5*t.paddingXXS}px`}}}}}},rn=t=>{const{componentCls:e,tabsActiveColor:n,tabsHoverColor:r,iconCls:o,tabsHorizontalGutter:a}=t,s=`${e}-tab`;return{[s]:{position:"relative",display:"inline-flex",alignItems:"center",padding:`${t.paddingSM}px 0`,fontSize:`${t.fontSize}px`,background:"transparent",border:0,outline:"none",cursor:"pointer","&-btn, &-remove":(0,i.A)({"&:focus:not(:focus-visible), &:active":{color:n}},(0,qt.K8)(t)),"&-btn":{outline:"none",transition:"all 0.3s"},"&-remove":{flex:"none",marginRight:{_skip_check_:!0,value:-t.marginXXS},marginLeft:{_skip_check_:!0,value:t.marginXS},color:t.colorTextDescription,fontSize:t.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${t.motionDurationSlow}`,"&:hover":{color:t.colorTextHeading}},"&:hover":{color:r},[`&${s}-active ${s}-btn`]:{color:t.colorPrimary,textShadow:t.tabsActiveTextShadow},[`&${s}-disabled`]:{color:t.colorTextDisabled,cursor:"not-allowed"},[`&${s}-disabled ${s}-btn, &${s}-disabled ${e}-remove`]:{"&:focus, &:active":{color:t.colorTextDisabled}},[`& ${s}-remove ${o}`]:{margin:0},[o]:{marginRight:{_skip_check_:!0,value:t.marginSM}}},[`${s} + ${s}`]:{margin:{_skip_check_:!0,value:`0 0 0 ${a}px`}}}},on=t=>{const{componentCls:e,tabsHorizontalGutter:n,iconCls:r,tabsCardGutter:i}=t,o=`${e}-rtl`;return{[o]:{direction:"rtl",[`${e}-nav`]:{[`${e}-tab`]:{margin:{_skip_check_:!0,value:`0 0 0 ${n}px`},[`${e}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[r]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:`${t.marginSM}px`}},[`${e}-tab-remove`]:{marginRight:{_skip_check_:!0,value:`${t.marginXS}px`},marginLeft:{_skip_check_:!0,value:`-${t.marginXXS}px`},[r]:{margin:0}}}},[`&${e}-left`]:{[`> ${e}-nav`]:{order:1},[`> ${e}-content-holder`]:{order:0}},[`&${e}-right`]:{[`> ${e}-nav`]:{order:0},[`> ${e}-content-holder`]:{order:1}},[`&${e}-card${e}-top, &${e}-card${e}-bottom`]:{[`> ${e}-nav, > div > ${e}-nav`]:{[`${e}-tab + ${e}-tab`]:{marginRight:{_skip_check_:!0,value:`${i}px`},marginLeft:{_skip_check_:!0,value:0}}}}},[`${e}-dropdown-rtl`]:{direction:"rtl"},[`${e}-menu-item`]:{[`${e}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},an=t=>{const{componentCls:e,tabsCardHorizontalPadding:n,tabsCardHeight:r,tabsCardGutter:o,tabsHoverColor:a,tabsActiveColor:s,colorSplit:l}=t;return{[e]:(0,i.A)((0,i.A)((0,i.A)((0,i.A)({},(0,qt.dF)(t)),{display:"flex",[`> ${e}-nav, > div > ${e}-nav`]:{position:"relative",display:"flex",flex:"none",alignItems:"center",[`${e}-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 ${t.motionDurationSlow}`,content:"''",pointerEvents:"none"}},[`${e}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${t.motionDurationSlow}`},[`${e}-nav-operations`]:{display:"flex",alignSelf:"stretch"},[`${e}-nav-operations-hidden`]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[`${e}-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:t.controlHeightLG/8,transform:"translateY(100%)",content:"''"}},[`${e}-nav-add`]:(0,i.A)({minWidth:`${r}px`,marginLeft:{_skip_check_:!0,value:`${o}px`},padding:`0 ${t.paddingXS}px`,background:"transparent",border:`${t.lineWidth}px ${t.lineType} ${l}`,borderRadius:`${t.borderRadiusLG}px ${t.borderRadiusLG}px 0 0`,outline:"none",cursor:"pointer",color:t.colorText,transition:`all ${t.motionDurationSlow} ${t.motionEaseInOut}`,"&:hover":{color:a},"&:active, &:focus:not(:focus-visible)":{color:s}},(0,qt.K8)(t))},[`${e}-extra-content`]:{flex:"none"},[`${e}-ink-bar`]:{position:"absolute",background:t.colorPrimary,pointerEvents:"none"}}),rn(t)),{[`${e}-content`]:{position:"relative",display:"flex",width:"100%",["&-animated"]:{transition:"margin 0.3s"}},[`${e}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${e}-tabpane`]:{outline:"none",flex:"none",width:"100%"}}),[`${e}-centered`]:{[`> ${e}-nav, > div > ${e}-nav`]:{[`${e}-nav-wrap`]:{[`&:not([class*='${e}-nav-wrap-ping'])`]:{justifyContent:"center"}}}}}};var sn=(0,Ht.A)("Tabs",(t=>{const e=t.controlHeightLG,n=(0,Zt.h1)(t,{tabsHoverColor:t.colorPrimaryHover,tabsActiveColor:t.colorPrimaryActive,tabsCardHorizontalPadding:`${(e-Math.round(t.fontSize*t.lineHeight))/2-t.lineWidth}px ${t.padding}px`,tabsCardHeight:e,tabsCardGutter:t.marginXXS/2,tabsHorizontalGutter:32,tabsCardHeadBackground:t.colorFillAlter,dropdownEdgeChildVerticalPadding:t.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120});return[nn(n),on(n),en(n),tn(n),Je(n),an(n),Ke(n)]}),(t=>({zIndexPopup:t.zIndexPopupBase+50})));let ln=0;const un=()=>({prefixCls:{type:String},id:{type:String},popupClassName:String,getPopupContainer:(0,st.Fg)(),activeKey:{type:[String,Number]},defaultActiveKey:{type:[String,Number]},direction:(0,st.WO)(),animated:(0,st.tK)([Boolean,Object]),renderTabBar:(0,st.Fg)(),tabBarGutter:{type:Number},tabBarStyle:(0,st.ge)(),tabPosition:(0,st.WO)(),destroyInactiveTabPane:(0,st.HE)(),hideAdd:Boolean,type:(0,st.WO)(),size:(0,st.WO)(),centered:Boolean,onEdit:(0,st.Fg)(),onChange:(0,st.Fg)(),onTabClick:(0,st.Fg)(),onTabScroll:(0,st.Fg)(),"onUpdate:activeKey":(0,st.Fg)(),locale:(0,st.ge)(),onPrevClick:(0,st.Fg)(),onNextClick:(0,st.Fg)(),tabBarExtraContent:U.A.any});function cn(t){return t.map((t=>{if((0,G.zO)(t)){const e=(0,i.A)({},t.props||{});for(const[t,i]of Object.entries(e))delete e[t],e[(0,Le.PT)(t)]=i;const n=t.children||{},r=void 0!==t.key?t.key:void 0,{tab:o=n.tab,disabled:a,forceRender:s,closable:l,animated:u,active:c,destroyInactiveTabPane:h}=e;return(0,i.A)((0,i.A)({key:r},e),{node:t,closeIcon:n.closeIcon,tab:o,disabled:""===a||a,forceRender:""===s||s,closable:""===l||l,animated:""===u||u,active:""===c||c,destroyInactiveTabPane:""===h||h})}return null})).filter((t=>t))}const hn=(0,o.pM)({compatConfig:{MODE:3},name:"InternalTabs",inheritAttrs:!1,props:(0,i.A)((0,i.A)({},(0,He.A)(un(),{tabPosition:"top",animated:{inkBar:!0,tabPane:!1}})),{tabs:(0,st.MY)()}),slots:Object,setup(t,e){let{attrs:n,slots:a}=e;(0,T.A)(!(void 0!==t.onPrevClick)&&!(void 0!==t.onNextClick),"Tabs","`onPrevClick / @prevClick` and `onNextClick / @nextClick` has been removed. Please use `onTabScroll / @tabScroll` instead."),(0,T.A)(!(void 0!==t.tabBarExtraContent),"Tabs","`tabBarExtraContent` prop has been removed. Please use `rightExtra` slot instead."),(0,T.A)(!(void 0!==a.tabBarExtraContent),"Tabs","`tabBarExtraContent` slot is deprecated. Please use `rightExtra` slot instead.");const{prefixCls:s,direction:l,size:u,rootPrefixCls:c,getPopupContainer:d}=(0,M.A)("tabs",t),[p,f]=sn(s),g=(0,o.EW)((()=>"rtl"===l.value)),v=(0,o.EW)((()=>{const{animated:e,tabPosition:n}=t;return!1===e||["left","right"].includes(n)?{inkBar:!1,tabPane:!1}:!0===e?{inkBar:!0,tabPane:!0}:(0,i.A)({inkBar:!0,tabPane:!1},"object"===typeof e?e:{})})),[m,y]=(0,Oe.A)(!1);(0,o.sV)((()=>{y((0,Ze.A)())}));const[b,_]=(0,Ge.A)((()=>{var e;return null===(e=t.tabs[0])||void 0===e?void 0:e.key}),{value:(0,o.EW)((()=>t.activeKey)),defaultValue:t.defaultActiveKey}),[x,w]=(0,Oe.A)((()=>t.tabs.findIndex((t=>t.key===b.value))));(0,o.nT)((()=>{var e;let n=t.tabs.findIndex((t=>t.key===b.value));-1===n&&(n=Math.max(0,Math.min(x.value,t.tabs.length-1)),_(null===(e=t.tabs[n])||void 0===e?void 0:e.key)),w(n)}));const[O,S]=(0,Ge.A)(null,{value:(0,o.EW)((()=>t.id))}),A=(0,o.EW)((()=>m.value&&!["left","right"].includes(t.tabPosition)?"top":t.tabPosition));(0,o.sV)((()=>{t.id||(S(`rc-tabs-${ln}`),ln+=1)}));const k=(e,n)=>{var r,i;null===(r=t.onTabClick)||void 0===r||r.call(t,e,n);const o=e!==b.value;_(e),o&&(null===(i=t.onChange)||void 0===i||i.call(t,e))};return Ce({tabs:(0,o.EW)((()=>t.tabs)),prefixCls:s}),()=>{const{id:e,type:l,tabBarGutter:y,tabBarStyle:_,locale:x,destroyInactiveTabPane:w,renderTabBar:S=a.renderTabBar,onTabScroll:C,hideAdd:M,centered:T}=t,P={id:O.value,activeKey:b.value,animated:v.value,tabPosition:A.value,rtl:g.value,mobile:m.value};let I,$;"editable-card"===l&&(I={onEdit:(e,n)=>{let{key:r,event:i}=n;var o;null===(o=t.onEdit)||void 0===o||o.call(t,"add"===e?i:r,e)},removeIcon:()=>(0,o.bF)(Xe.A,null,null),addIcon:a.addIcon?a.addIcon:()=>(0,o.bF)(Ue.A,null,null),showAdd:!0!==M});const E=(0,i.A)((0,i.A)({},P),{moreTransitionName:`${c.value}-slide-up`,editable:I,locale:x,tabBarGutter:y,onTabClick:k,onTabScroll:C,style:_,getPopupContainer:d.value,popupClassName:(0,h.A)(t.popupClassName,f.value)});$=S?S((0,i.A)((0,i.A)({},E),{DefaultTabBar:Ve})):(0,o.bF)(Ve,E,(0,Be.A)(a,["moreIcon","leftExtra","rightExtra","tabBarExtraContent"]));const R=s.value;return p((0,o.bF)("div",(0,r.A)((0,r.A)({},n),{},{id:e,class:(0,h.A)(R,`${R}-${A.value}`,{[f.value]:!0,[`${R}-${u.value}`]:u.value,[`${R}-card`]:["card","editable-card"].includes(l),[`${R}-editable-card`]:"editable-card"===l,[`${R}-centered`]:T,[`${R}-mobile`]:m.value,[`${R}-editable`]:"editable-card"===l,[`${R}-rtl`]:g.value},n.class)}),[$,(0,o.bF)(Qe,(0,r.A)((0,r.A)({destroyInactiveTabPane:w},P),{},{animated:v.value}),null)]))}}});var dn=(0,o.pM)({compatConfig:{MODE:3},name:"ATabs",inheritAttrs:!1,props:(0,He.A)(un(),{tabPosition:"top",animated:{inkBar:!0,tabPane:!1}}),slots:Object,setup(t,e){let{attrs:n,slots:i,emit:a}=e;const s=t=>{a("update:activeKey",t),a("change",t)};return()=>{var e;const a=cn((0,G.MI)(null===(e=i.default)||void 0===e?void 0:e.call(i)));return(0,o.bF)(hn,(0,r.A)((0,r.A)((0,r.A)({},(0,Ye.A)(t,["onUpdate:activeKey"])),n),{},{onChange:s,tabs:a}),i)}}}),pn=dn,fn=n(3640);pn.TabPane=fn.A,pn.install=function(t){return t.component(pn.name,pn),t.component(fn.A.name,fn.A),t};var gn=pn},3640:function(t,e,n){"use strict";var r=n(73913),i=n(78753),o=n(5530);const a=()=>({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}});e.A=(0,r.pM)({compatConfig:{MODE:3},name:"ATabPane",inheritAttrs:!1,__ANT_TAB_PANE:!0,props:a(),slots:Object,setup(t,e){let{attrs:n,slots:o}=e;const a=(0,i.KR)(t.forceRender);(0,r.wB)([()=>t.active,()=>t.destroyInactiveTabPane],(()=>{t.active?a.value=!0:t.destroyInactiveTabPane&&(a.value=!1)}),{immediate:!0});const s=(0,r.EW)((()=>t.active?{}:t.animated?{visibility:"hidden",height:0,overflowY:"hidden"}:{display:"none"}));return()=>{var e;const{prefixCls:i,forceRender:l,id:u,active:c,tabKey:h}=t;return(0,r.bF)("div",{id:u&&`${u}-panel-${h}`,role:"tabpanel",tabindex:c?0:-1,"aria-labelledby":u&&`${u}-tab-${h}`,"aria-hidden":!c,style:[s.value,n.style],class:[`${i}-tabpane`,c&&`${i}-tabpane-active`,n.class]},[(c||a.value||l)&&(null===(e=o.default)||void 0===e?void 0:e.call(o))])}}})},70213:function(t,e,n){"use strict";n.d(e,{n5:function(){return J},sb:function(){return U},rd:function(){return tt}});var r=n(98657),i=n(40730),o=n(5141),a=n(13877),s=n(3165),l=n(33621),u=n(78753),c=n(73913);const h={},d=!0,p=!1,f=d||p?"css":"css-dev-only-do-not-override",g=new Map;function v(t){g.set(t,(g.get(t)||0)+1)}function m(t,e){if("undefined"!==typeof document){const n=document.querySelectorAll(`style[${a.Oc}="${t}"]`);n.forEach((t=>{var n;t[a.oi]===e&&(null===(n=t.parentNode)||void 0===n||n.removeChild(t))}))}}const y=0;function b(t,e){g.set(t,(g.get(t)||0)-1);const n=Array.from(g.keys()),r=n.filter((t=>{const e=g.get(t)||0;return e<=0}));n.length-r.length>y&&r.forEach((t=>{m(t,e),g.delete(t)}))}const _=(t,e,n,i)=>{const o=n.getDerivativeToken(t);let a=(0,r.A)((0,r.A)({},o),e);return i&&(a=i(a)),a};function x(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:(0,u.KR)({});const i=(0,a.K6)(),d=(0,c.EW)((()=>(0,r.A)({},...e.value))),p=(0,c.EW)((()=>(0,l.g2)(d.value))),g=(0,c.EW)((()=>(0,l.g2)(n.value.override||h))),m=(0,s.A)("token",(0,c.EW)((()=>[n.value.salt||"",t.value.id,p.value,g.value])),(()=>{const{salt:e="",override:r=h,formatToken:i,getComputedToken:a}=n.value,s=a?a(d.value,r,t.value):_(d.value,r,t.value,i),u=(0,l.zw)(s,e);s._tokenKey=u,v(u);const c=`${f}-${(0,o.A)(u)}`;return s._hashId=c,[s,c]}),(t=>{var e;b(t[0]._tokenKey,null===(e=i.value)||void 0===e?void 0:e.cache.instanceId)}));return m}var w="4.2.3",O=w,S=n(30185);const A=t=>{const{controlHeight:e}=t;return{controlHeightSM:.75*e,controlHeightXS:.5*e,controlHeightLG:1.25*e}};var k=A;function C(t){const{sizeUnit:e,sizeStep:n}=t;return{sizeXXL:e*(n+8),sizeXL:e*(n+4),sizeLG:e*(n+2),sizeMD:e*(n+1),sizeMS:e*n,size:e*n,sizeSM:e*(n-1),sizeXS:e*(n-2),sizeXXS:e*(n-3)}}var M=n(34643),T=n(78089);function P(t,e){let{generateColorPalettes:n,generateNeutralColorPalettes:i}=e;const{colorSuccess:o,colorWarning:a,colorError:s,colorInfo:l,colorPrimary:u,colorBgBase:c,colorTextBase:h}=t,d=n(u),p=n(o),f=n(a),g=n(s),v=n(l),m=i(c,h);return(0,r.A)((0,r.A)({},m),{colorPrimaryBg:d[1],colorPrimaryBgHover:d[2],colorPrimaryBorder:d[3],colorPrimaryBorderHover:d[4],colorPrimaryHover:d[5],colorPrimary:d[6],colorPrimaryActive:d[7],colorPrimaryTextHover:d[8],colorPrimaryText:d[9],colorPrimaryTextActive:d[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:v[1],colorInfoBgHover:v[2],colorInfoBorder:v[3],colorInfoBorderHover:v[4],colorInfoHover:v[4],colorInfo:v[6],colorInfoActive:v[7],colorInfoTextHover:v[8],colorInfoText:v[9],colorInfoTextActive:v[10],colorBgMask:new T.q("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}const I=t=>{let e=t,n=t,r=t,i=t;return t<6&&t>=5?e=t+1:t<16&&t>=6?e=t+2:t>=16&&(e=16),t<7&&t>=5?n=4:t<8&&t>=7?n=5:t<14&&t>=8?n=6:t<16&&t>=14?n=7:t>=16&&(n=8),t<6&&t>=2?r=1:t>=6&&(r=2),t>4&&t<8?i=4:t>=8&&(i=6),{borderRadius:t>16?16:t,borderRadiusXS:r,borderRadiusSM:n,borderRadiusLG:e,borderRadiusOuter:i}};var $=I;function E(t){const{motionUnit:e,motionBase:n,borderRadius:i,lineWidth:o}=t;return(0,r.A)({motionDurationFast:`${(n+e).toFixed(1)}s`,motionDurationMid:`${(n+2*e).toFixed(1)}s`,motionDurationSlow:`${(n+3*e).toFixed(1)}s`,lineWidthBold:o+1},$(i))}const R=(t,e)=>new T.q(t).setAlpha(e).toRgbString(),D=(t,e)=>{const n=new T.q(t);return n.darken(e).toHexString()},L=t=>{const e=(0,S.cM)(t);return{1:e[0],2:e[1],3:e[2],4:e[3],5:e[4],6:e[5],7:e[6],8:e[4],9:e[5],10:e[6]}},N=(t,e)=>{const n=t||"#fff",r=e||"#000";return{colorBgBase:n,colorTextBase:r,colorText:R(r,.88),colorTextSecondary:R(r,.65),colorTextTertiary:R(r,.45),colorTextQuaternary:R(r,.25),colorFill:R(r,.15),colorFillSecondary:R(r,.06),colorFillTertiary:R(r,.04),colorFillQuaternary:R(r,.02),colorBgLayout:D(n,4),colorBgContainer:D(n,0),colorBgElevated:D(n,0),colorBgSpotlight:R(r,.85),colorBorder:D(n,15),colorBorderSecondary:D(n,6)}};function z(t){const e=new Array(10).fill(null).map(((e,n)=>{const r=n-1,i=t*Math.pow(2.71828,r/5),o=n>1?Math.floor(i):Math.ceil(i);return 2*Math.floor(o/2)}));return e[1]=t,e.map((t=>{const e=t+8;return{size:t,lineHeight:e/t}}))}const B=t=>{const e=z(t),n=e.map((t=>t.size)),r=e.map((t=>t.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 F=B;function W(t){const e=Object.keys(M.r).map((e=>{const n=(0,S.cM)(t[e]);return new Array(10).fill(1).reduce(((t,r,i)=>(t[`${e}-${i+1}`]=n[i],t)),{})})).reduce(((t,e)=>(t=(0,r.A)((0,r.A)({},t),e),t)),{});return(0,r.A)((0,r.A)((0,r.A)((0,r.A)((0,r.A)((0,r.A)((0,r.A)({},t),e),P(t,{generateColorPalettes:L,generateNeutralColorPalettes:N})),F(t.fontSize)),C(t)),k(t)),E(t))}function j(t){return t>=0&&t<=255}function V(t,e){const{r:n,g:r,b:i,a:o}=new T.q(t).toRgb();if(o<1)return t;const{r:a,g:s,b:l}=new T.q(e).toRgb();for(let u=.01;u<=1;u+=.01){const t=Math.round((n-a*(1-u))/u),e=Math.round((r-s*(1-u))/u),o=Math.round((i-l*(1-u))/u);if(j(t)&&j(e)&&j(o))return new T.q({r:t,g:e,b:o,a:Math.round(100*u)/100}).toRgbString()}return new T.q({r:n,g:r,b:i,a:1}).toRgbString()}var Q=V,H=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n};function Z(t){const{override:e}=t,n=H(t,["override"]),i=(0,r.A)({},e);Object.keys(M.A).forEach((t=>{delete i[t]}));const o=(0,r.A)((0,r.A)({},n),i),a=480,s=576,l=768,u=992,c=1200,h=1600,d=2e3,p=(0,r.A)((0,r.A)((0,r.A)({},o),{colorLink:o.colorInfoText,colorLinkHover:o.colorInfoHover,colorLinkActive:o.colorInfoActive,colorFillContent:o.colorFillSecondary,colorFillContentHover:o.colorFill,colorFillAlter:o.colorFillQuaternary,colorBgContainerDisabled:o.colorFillTertiary,colorBorderBg:o.colorBgContainer,colorSplit:Q(o.colorBorderSecondary,o.colorBgContainer),colorTextPlaceholder:o.colorTextQuaternary,colorTextDisabled:o.colorTextQuaternary,colorTextHeading:o.colorText,colorTextLabel:o.colorTextSecondary,colorTextDescription:o.colorTextTertiary,colorTextLightSolid:o.colorWhite,colorHighlight:o.colorError,colorBgTextHover:o.colorFillSecondary,colorBgTextActive:o.colorFill,colorIcon:o.colorTextTertiary,colorIconHover:o.colorText,colorErrorOutline:Q(o.colorErrorBg,o.colorBgContainer),colorWarningOutline:Q(o.colorWarningBg,o.colorBgContainer),fontSizeIcon:o.fontSizeSM,lineWidth:o.lineWidth,controlOutlineWidth:2*o.lineWidth,controlInteractiveSize:o.controlHeight/2,controlItemBgHover:o.colorFillTertiary,controlItemBgActive:o.colorPrimaryBg,controlItemBgActiveHover:o.colorPrimaryBgHover,controlItemBgActiveDisabled:o.colorFill,controlTmpOutline:o.colorFillQuaternary,controlOutline:Q(o.colorPrimaryBg,o.colorBgContainer),lineType:o.lineType,borderRadius:o.borderRadius,borderRadiusXS:o.borderRadiusXS,borderRadiusSM:o.borderRadiusSM,borderRadiusLG:o.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:o.sizeXXS,paddingXS:o.sizeXS,paddingSM:o.sizeSM,padding:o.size,paddingMD:o.sizeMD,paddingLG:o.sizeLG,paddingXL:o.sizeXL,paddingContentHorizontalLG:o.sizeLG,paddingContentVerticalLG:o.sizeMS,paddingContentHorizontal:o.sizeMS,paddingContentVertical:o.sizeSM,paddingContentHorizontalSM:o.size,paddingContentVerticalSM:o.sizeXS,marginXXS:o.sizeXXS,marginXS:o.sizeXS,marginSM:o.sizeSM,margin:o.size,marginMD:o.sizeMD,marginLG:o.sizeLG,marginXL:o.sizeXL,marginXXL:o.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:h-1,screenXXL:h,screenXXLMin:h,screenXXLMax:d-1,screenXXXL:d,screenXXXLMin:d,boxShadowPopoverArrow:"3px 3px 7px rgba(0, 0, 0, 0.1)",boxShadowCard:`\n 0 1px 2px -2px ${new T.q("rgba(0, 0, 0, 0.16)").toRgbString()},\n 0 3px 6px 0 ${new T.q("rgba(0, 0, 0, 0.12)").toRgbString()},\n 0 5px 12px 4px ${new T.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)"}),i);return p}var G=n(66041);const X=(0,i.A)(W),U={token:M.A,hashed:!0},Y=Symbol("DesignTokenContext"),q=(0,u.IJ)(),K=t=>{(0,c.Gt)(Y,t),(0,c.wB)(t,(()=>{q.value=(0,u.R1)(t),(0,u.mu)(q)}),{immediate:!0,deep:!0})},J=(0,c.pM)({props:{value:(0,G.ge)()},setup(t,e){let{slots:n}=e;return K((0,c.EW)((()=>t.value))),()=>{var t;return null===(t=n.default)||void 0===t?void 0:t.call(n)}}});function tt(){const t=(0,c.WQ)(Y,(0,c.EW)((()=>q.value||U))),e=(0,c.EW)((()=>`${O}-${t.value.hashed||""}`)),n=(0,c.EW)((()=>t.value.theme||X)),i=x(n,(0,c.EW)((()=>[M.A,t.value.token])),(0,c.EW)((()=>({salt:e.value,override:(0,r.A)({override:t.value.token},t.value.components),formatToken:Z}))));return[n,(0,c.EW)((()=>i.value[0])),(0,c.EW)((()=>t.value.hashed?i.value[1]:""))]}},34643:function(t,e,n){"use strict";n.d(e,{r:function(){return i}});var r=n(98657);const i={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"},o=(0,r.A)((0,r.A)({},i),{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});e.A=o},94471:function(t,e,n){"use strict";n.d(e,{A:function(){return c}});var r=n(98657),i=n(13234),o=n(69729),a=n(70213),s=n(96704),l=n(73913),u=n(90551);function c(t,e,n){return c=>{const h=(0,l.EW)((()=>null===c||void 0===c?void 0:c.value)),[d,p,f]=(0,a.rd)(),{getPrefixCls:g,iconPrefixCls:v}=(0,u.OQ)(),m=(0,l.EW)((()=>g())),y=(0,l.EW)((()=>({theme:d.value,token:p.value,hashId:f.value,path:["Shared",m.value]})));(0,i.Ay)(y,(()=>[{"&":(0,o.av)(p.value)}]));const b=(0,l.EW)((()=>({theme:d.value,token:p.value,hashId:f.value,path:[t,h.value,v.value]})));return[(0,i.Ay)(b,(()=>{const{token:i,flush:a}=(0,s.Ay)(p.value),l="function"===typeof n?n(i):n,u=(0,r.A)((0,r.A)({},l),p.value[t]),c=`.${h.value}`,d=(0,s.h1)(i,{componentCls:c,prefixCls:h.value,iconCls:`.${v.value}`,antCls:`.${m.value}`},u),g=e(d,{hashId:f.value,prefixCls:h.value,rootPrefixCls:m.value,iconPrefixCls:v.value,overrideComponentToken:p.value[t]});return a(t,u),[(0,o.vj)(p.value,h.value),g]})),f]}}},96704:function(t,e,n){"use strict";n.d(e,{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 i="undefined"!==typeof CSSINJS_STATISTIC;let o=!0;function a(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];if(!i)return(0,r.A)({},...e);o=!1;const a={};return e.forEach((t=>{const e=Object.keys(t);e.forEach((e=>{Object.defineProperty(a,e,{configurable:!0,enumerable:!0,get:()=>t[e]})}))})),o=!0,a}const s={};function l(){}function u(t){let e,n=t,r=l;return i&&(e=new Set,n=new Proxy(t,{get(t,n){return o&&e.add(n),t[n]}}),r=(t,n)=>{s[t]={global:Array.from(e),component:n}}),{token:n,keys:e,flush:r}}},32988:function(t,e,n){"use strict";n.d(e,{Ay:function(){return Y},yV:function(){return U}});var r=n(98657),i=n(73913),o=n(78753),a=n(5530),s=n(15928);const l={adjustX:1,adjustY:1},u=[0,0],c={left:{points:["cr","cl"],overflow:l,offset:[-4,0],targetOffset:u},right:{points:["cl","cr"],overflow:l,offset:[4,0],targetOffset:u},top:{points:["bc","tc"],overflow:l,offset:[0,-4],targetOffset:u},bottom:{points:["tc","bc"],overflow:l,offset:[0,4],targetOffset:u},topLeft:{points:["bl","tl"],overflow:l,offset:[0,-4],targetOffset:u},leftTop:{points:["tr","tl"],overflow:l,offset:[-4,0],targetOffset:u},topRight:{points:["br","tr"],overflow:l,offset:[0,-4],targetOffset:u},rightTop:{points:["tl","tr"],overflow:l,offset:[4,0],targetOffset:u},bottomRight:{points:["tr","br"],overflow:l,offset:[0,4],targetOffset:u},rightBottom:{points:["bl","br"],overflow:l,offset:[4,0],targetOffset:u},bottomLeft:{points:["tl","bl"],overflow:l,offset:[0,4],targetOffset:u},leftBottom:{points:["br","bl"],overflow:l,offset:[-4,0],targetOffset:u}};const h={prefixCls:String,id:String,overlayInnerStyle:a.A.any};var d=(0,i.pM)({compatConfig:{MODE:3},name:"TooltipContent",props:h,setup(t,e){let{slots:n}=e;return()=>{var e;return(0,i.bF)("div",{class:`${t.prefixCls}-inner`,id:t.id,role:"tooltip",style:t.overlayInnerStyle},[null===(e=n.overlay)||void 0===e?void 0:e.call(n)])}}}),p=n(16155),f=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n};function g(){}var v=(0,i.pM)({compatConfig:{MODE:3},name:"Tooltip",inheritAttrs:!1,props:{trigger:a.A.any.def(["hover"]),defaultVisible:{type:Boolean,default:void 0},visible:{type:Boolean,default:void 0},placement:a.A.string.def("right"),transitionName:String,animation:a.A.any,afterVisibleChange:a.A.func.def((()=>{})),overlayStyle:{type:Object,default:void 0},overlayClassName:String,prefixCls:a.A.string.def("rc-tooltip"),mouseEnterDelay:a.A.number.def(.1),mouseLeaveDelay:a.A.number.def(.1),getPopupContainer:Function,destroyTooltipOnHide:{type:Boolean,default:!1},align:a.A.object.def((()=>({}))),arrowContent:a.A.any.def(null),tipId:String,builtinPlacements:a.A.object,overlayInnerStyle:{type:Object,default:void 0},popupVisible:{type:Boolean,default:void 0},onVisibleChange:Function,onPopupAlign:Function,arrow:{type:Boolean,default:!0}},setup(t,e){let{slots:n,attrs:a,expose:l}=e;const u=(0,o.IJ)(),h=()=>{const{prefixCls:e,tipId:r,overlayInnerStyle:o}=t;return[t.arrow?(0,i.bF)("div",{class:`${e}-arrow`,key:"arrow"},[(0,p.rU)(n,t,"arrowContent")]):null,(0,i.bF)(d,{key:"content",prefixCls:e,id:r,overlayInnerStyle:o},{overlay:n.overlay})]},v=()=>u.value.getPopupDomNode();l({getPopupDomNode:v,triggerDOM:u,forcePopupAlign:()=>{var t;return null===(t=u.value)||void 0===t?void 0:t.forcePopupAlign()}});const m=(0,o.IJ)(!1),y=(0,o.IJ)(!1);return(0,i.nT)((()=>{const{destroyTooltipOnHide:e}=t;if("boolean"===typeof e)m.value=e;else if(e&&"object"===typeof e){const{keepParent:t}=e;m.value=!0===t,y.value=!1===t}})),()=>{const{overlayClassName:e,trigger:o,mouseEnterDelay:l,mouseLeaveDelay:d,overlayStyle:p,prefixCls:v,afterVisibleChange:b,transitionName:_,animation:x,placement:w,align:O,destroyTooltipOnHide:S,defaultVisible:A}=t,k=f(t,["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","afterVisibleChange","transitionName","animation","placement","align","destroyTooltipOnHide","defaultVisible"]),C=(0,r.A)({},k);void 0!==t.visible&&(C.popupVisible=t.visible);const M=(0,r.A)((0,r.A)((0,r.A)({popupClassName:e,prefixCls:v,action:o,builtinPlacements:c,popupPlacement:w,popupAlign:O,afterPopupVisibleChange:b,popupTransitionName:_,popupAnimation:x,defaultPopupVisible:A,destroyPopupOnHide:m.value,autoDestroy:y.value,mouseLeaveDelay:d,popupStyle:p,mouseEnterDelay:l},C),a),{onPopupVisibleChange:t.onVisibleChange||g,onPopupAlign:t.onPopupAlign||g,ref:u,arrow:!!t.arrow,popup:h()});return(0,i.bF)(s.A,M,{default:n.default})}}}),m=v,y=n(13389),b=n(47960),_=n(87051),x=n(66041),w=()=>({trigger:[String,Array],open:{type:Boolean,default:void 0},visible:{type:Boolean,default:void 0},placement:String,color:String,transitionName:String,overlayStyle:(0,x.ge)(),overlayInnerStyle:(0,x.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,x.ge)(),builtinPlacements:(0,x.ge)(),children:Array,onVisibleChange:Function,"onUpdate:visible":Function,onOpenChange:Function,"onUpdate:open":Function}),O=n(3551);const S={adjustX:1,adjustY:1},A={adjustX:0,adjustY:0},k=[0,0];function C(t){return"boolean"===typeof t?t?S:A:(0,r.A)((0,r.A)({},A),t)}function M(t){const{arrowWidth:e=4,horizontalArrowShift:n=16,verticalArrowShift:i=8,autoAdjustOverflow:o,arrowPointAtCenter:a}=t,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+e),-4]},leftTop:{points:["tr","cl"],offset:[-4,-(i+e)]},topRight:{points:["br","tc"],offset:[n+e,-4]},rightTop:{points:["tl","cr"],offset:[4,-(i+e)]},bottomRight:{points:["tr","bc"],offset:[n+e,4]},rightBottom:{points:["bl","cr"],offset:[4,i+e]},bottomLeft:{points:["tl","bc"],offset:[-(n+e),4]},leftBottom:{points:["br","cl"],offset:[-4,i+e]}};return Object.keys(s).forEach((t=>{s[t]=a?(0,r.A)((0,r.A)({},s[t]),{overflow:C(o),targetOffset:k}):(0,r.A)((0,r.A)({},c[t]),{overflow:C(o)}),s[t].ignoreShake=!0})),s}var T=n(32480),P=n(38624);const I=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"],$=I.map((t=>`${t}-inverse`));function E(t){let e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return e?[...$,...I].includes(t):I.includes(t)}function R(t,e){const n=E(e),r=(0,y.A)({[`${t}-${e}`]:e&&n}),i={},o={};return e&&!n&&(i.background=e,o["--antd-arrow-background-color"]=e),{className:r,overlayStyle:i,arrowStyle:o}}var D=n(41781),L=n(96704),N=n(94471),z=n(69729);function B(t,e){return I.reduce(((n,i)=>{const o=t[`${i}-1`],a=t[`${i}-3`],s=t[`${i}-6`],l=t[`${i}-7`];return(0,r.A)((0,r.A)({},n),e(i,{lightColor:o,lightBorderColor:a,darkColor:s,textColor:l}))}),{})}const F=(t,e,n,r,i)=>{const o=t/2,a=0,s=o,l=1*n/Math.sqrt(2),u=o-n*(1-1/Math.sqrt(2)),c=o-e*(1/Math.sqrt(2)),h=n*(Math.sqrt(2)-1)+e*(1/Math.sqrt(2)),d=2*o-c,p=h,f=2*o-l,g=u,v=2*o-a,m=s,y=o*Math.sqrt(2)+n*(Math.sqrt(2)-2),b=n*(Math.sqrt(2)-1);return{pointerEvents:"none",width:t,height:t,overflow:"hidden","&::after":{content:'""',position:"absolute",width:y,height:y,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${e}px 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:i,zIndex:0,background:"transparent"},"&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:t,height:t/2,background:r,clipPath:{_multi_value_:!0,value:[`polygon(${b}px 100%, 50% ${b}px, ${2*o-b}px 100%, ${b}px 100%)`,`path('M ${a} ${s} A ${n} ${n} 0 0 0 ${l} ${u} L ${c} ${h} A ${e} ${e} 0 0 1 ${d} ${p} L ${f} ${g} A ${n} ${n} 0 0 0 ${v} ${m} Z')`]},content:'""'}}};function W(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return t.map((t=>`${e}${t}`)).join(",")}const j=8;function V(t){const e=j,{sizePopupArrow:n,contentRadius:r,borderRadiusOuter:i,limitVerticalRadius:o}=t,a=n/2-Math.ceil(i*(Math.sqrt(2)-1)),s=(r>12?r+2:12)-a,l=o?e-a:s;return{dropdownArrowOffset:s,dropdownArrowOffsetVertical:l}}function Q(t,e){const{componentCls:n,sizePopupArrow:i,marginXXS:o,borderRadiusXS:a,borderRadiusOuter:s,boxShadowPopoverArrow:l}=t,{colorBg:u,showArrowCls:c,contentRadius:h=t.borderRadiusLG,limitVerticalRadius:d}=e,{dropdownArrowOffsetVertical:p,dropdownArrowOffset:f}=V({sizePopupArrow:i,contentRadius:h,borderRadiusOuter:s,limitVerticalRadius:d}),g=i/2+o;return{[n]:{[`${n}-arrow`]:[(0,r.A)((0,r.A)({position:"absolute",zIndex:1,display:"block"},F(i,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},[W(["&-placement-topLeft","&-placement-top","&-placement-topRight"].map((t=>t+":not(&-arrow-hidden)")),c)]:{paddingBottom:g},[W(["&-placement-bottomLeft","&-placement-bottom","&-placement-bottomRight"].map((t=>t+":not(&-arrow-hidden)")),c)]:{paddingTop:g},[W(["&-placement-leftTop","&-placement-left","&-placement-leftBottom"].map((t=>t+":not(&-arrow-hidden)")),c)]:{paddingRight:{_skip_check_:!0,value:g}},[W(["&-placement-rightTop","&-placement-right","&-placement-rightBottom"].map((t=>t+":not(&-arrow-hidden)")),c)]:{paddingLeft:{_skip_check_:!0,value:g}}}}}const H=t=>{const{componentCls:e,tooltipMaxWidth:n,tooltipColor:i,tooltipBg:o,tooltipBorderRadius:a,zIndexPopup:s,controlHeight:l,boxShadowSecondary:u,paddingSM:c,paddingXS:h,tooltipRadiusOuter:d}=t;return[{[e]:(0,r.A)((0,r.A)((0,r.A)((0,r.A)({},(0,z.dF)(t)),{position:"absolute",zIndex:s,display:"block","&":[{width:"max-content"},{width:"intrinsic"}],maxWidth:n,visibility:"visible","&-hidden":{display:"none"},"--antd-arrow-background-color":o,[`${e}-inner`]:{minWidth:l,minHeight:l,padding:`${c/2}px ${h}px`,color:i,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:o,borderRadius:a,boxShadow:u},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${e}-inner`]:{borderRadius:Math.min(a,j)}},[`${e}-content`]:{position:"relative"}}),B(t,((t,n)=>{let{darkColor:r}=n;return{[`&${e}-${t}`]:{[`${e}-inner`]:{backgroundColor:r},[`${e}-arrow`]:{"--antd-arrow-background-color":r}}}}))),{"&-rtl":{direction:"rtl"}})},Q((0,L.h1)(t,{borderRadiusOuter:d}),{colorBg:"var(--antd-arrow-background-color)",showArrowCls:"",contentRadius:a,limitVerticalRadius:!0}),{[`${e}-pure`]:{position:"relative",maxWidth:"none"}}]};var Z=(t,e)=>{const n=(0,N.A)("Tooltip",(t=>{if(!1===(null===e||void 0===e?void 0:e.value))return[];const{borderRadius:n,colorTextLightSolid:r,colorBgDefault:i,borderRadiusOuter:o}=t,a=(0,L.h1)(t,{tooltipMaxWidth:250,tooltipColor:r,tooltipBorderRadius:n,tooltipBg:i,tooltipRadiusOuter:o>4?4:o});return[H(a),(0,D.aB)(t,"zoom-big-fast")]}),(t=>{let{zIndexPopupBase:e,colorBgSpotlight:n}=t;return{zIndexPopup:e+70,colorBgDefault:n}}));return n(t)},G=n(41038);const X=(t,e)=>{const n={},i=(0,r.A)({},t);return e.forEach((e=>{t&&e in t&&(n[e]=t[e],delete i[e])})),{picked:n,omitted:i}},U=()=>(0,r.A)((0,r.A)({},w()),{title:a.A.any});var Y=(0,i.pM)({compatConfig:{MODE:3},name:"ATooltip",inheritAttrs:!1,props:(0,b.A)(U(),{trigger:"hover",align:{},placement:"top",mouseEnterDelay:.1,mouseLeaveDelay:.1,arrowPointAtCenter:!1,autoAdjustOverflow:!0}),slots:Object,setup(t,e){let{slots:n,emit:a,attrs:s,expose:l}=e;const{prefixCls:u,getPopupContainer:c,direction:h,rootPrefixCls:d}=(0,O.A)("tooltip",t),f=(0,i.EW)((()=>{var e;return null!==(e=t.open)&&void 0!==e?e:t.visible})),g=(0,o.KR)((0,T.A)([t.open,t.visible])),v=(0,o.KR)();let b;(0,i.wB)(f,(t=>{P.A.cancel(b),b=(0,P.A)((()=>{g.value=!!t}))}));const x=()=>{var e;const r=null!==(e=t.title)&&void 0!==e?e:n.title;return!r&&0!==r},w=t=>{const e=x();void 0===f.value&&(g.value=!e&&t),e||(a("update:visible",t),a("visibleChange",t),a("update:open",t),a("openChange",t))},S=()=>v.value.getPopupDomNode();l({getPopupDomNode:S,open:g,forcePopupAlign:()=>{var t;return null===(t=v.value)||void 0===t?void 0:t.forcePopupAlign()}});const A=(0,i.EW)((()=>{var e;const{builtinPlacements:n,autoAdjustOverflow:r,arrow:i,arrowPointAtCenter:o}=t;let a=o;return"object"===typeof i&&(a=null!==(e=i.pointAtCenter)&&void 0!==e?e:o),n||M({arrowPointAtCenter:a,autoAdjustOverflow:r})})),k=t=>t||""===t,C=t=>{const e=t.type;if("object"===typeof e&&t.props&&((!0===e.__ANT_BUTTON||"button"===e)&&k(t.props.disabled)||!0===e.__ANT_SWITCH&&(k(t.props.disabled)||k(t.props.loading))||!0===e.__ANT_RADIO&&k(t.props.disabled))){const{picked:e,omitted:n}=X((0,p.gd)(t),["position","left","right","top","bottom","float","display","zIndex"]),o=(0,r.A)((0,r.A)({display:"inline-block"},e),{cursor:"not-allowed",lineHeight:1,width:t.props&&t.props.block?"100%":void 0}),a=(0,r.A)((0,r.A)({},n),{pointerEvents:"none"}),s=(0,_.Ob)(t,{style:a},!0);return(0,i.bF)("span",{style:o,class:`${u.value}-disabled-compatible-wrapper`},[s])}return t},I=()=>{var e,r;return null!==(e=t.title)&&void 0!==e?e:null===(r=n.title)||void 0===r?void 0:r.call(n)},$=(t,e)=>{const n=A.value,r=Object.keys(n).find((t=>{var r,i;return n[t].points[0]===(null===(r=e.points)||void 0===r?void 0:r[0])&&n[t].points[1]===(null===(i=e.points)||void 0===i?void 0:i[1])}));if(r){const n=t.getBoundingClientRect(),i={top:"50%",left:"50%"};r.indexOf("top")>=0||r.indexOf("Bottom")>=0?i.top=n.height-e.offset[1]+"px":(r.indexOf("Top")>=0||r.indexOf("bottom")>=0)&&(i.top=-e.offset[1]+"px"),r.indexOf("left")>=0||r.indexOf("Right")>=0?i.left=n.width-e.offset[0]+"px":(r.indexOf("right")>=0||r.indexOf("Left")>=0)&&(i.left=-e.offset[0]+"px"),t.style.transformOrigin=`${i.left} ${i.top}`}},E=(0,i.EW)((()=>R(u.value,t.color))),D=(0,i.EW)((()=>s["data-popover-inject"])),[L,N]=Z(u,(0,i.EW)((()=>!D.value)));return()=>{var e,o;const{openClassName:a,overlayClassName:l,overlayStyle:b,overlayInnerStyle:O}=t;let S=null!==(o=(0,p.Gk)(null===(e=n.default)||void 0===e?void 0:e.call(n)))&&void 0!==o?o:null;S=1===S.length?S[0]:S;let k=g.value;if(void 0===f.value&&x()&&(k=!1),!S)return null;const M=C((0,p.zO)(S)&&!(0,p.zv)(S)?S:(0,i.bF)("span",null,[S])),T=(0,y.A)({[a||`${u.value}-open`]:!0,[M.props&&M.props.class]:M.props&&M.props.class}),P=(0,y.A)(l,{[`${u.value}-rtl`]:"rtl"===h.value},E.value.className,N.value),R=(0,r.A)((0,r.A)({},E.value.overlayStyle),O),D=E.value.arrowStyle,z=(0,r.A)((0,r.A)((0,r.A)({},s),t),{prefixCls:u.value,arrow:!!t.arrow,getPopupContainer:null===c||void 0===c?void 0:c.value,builtinPlacements:A.value,visible:k,ref:v,overlayClassName:P,overlayStyle:(0,r.A)((0,r.A)({},D),b),overlayInnerStyle:R,onVisibleChange:w,onPopupAlign:$,transitionName:(0,G.by)(d.value,"zoom-big-fast",t.transitionName)});return L((0,i.bF)(m,z,{default:()=>[g.value?(0,_.Ob)(M,{class:T}):M],arrowContent:()=>(0,i.bF)("span",{class:`${u.value}-arrow-content`},null),overlay:I}))}}})},9139:function(t,e,n){"use strict";var r=n(66041),i=n(32988);e.A=(0,r.GU)(i.Ay)},44942:function(t,e,n){"use strict";var r=n(69751),i=n(98657),o=n(73913),a=n(78753),s=n(13389),l=n(5530),u=n(47960),c=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n};const h={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:l.A.any,required:Boolean};e.A=(0,o.pM)({compatConfig:{MODE:3},name:"Checkbox",inheritAttrs:!1,props:(0,u.A)(h,{prefixCls:"rc-checkbox",type:"checkbox",defaultChecked:!1}),emits:["click","change"],setup(t,e){let{attrs:n,emit:l,expose:u}=e;const h=(0,a.KR)(void 0===t.checked?t.defaultChecked:t.checked),d=(0,a.KR)();(0,o.wB)((()=>t.checked),(()=>{h.value=t.checked})),u({focus(){var t;null===(t=d.value)||void 0===t||t.focus()},blur(){var t;null===(t=d.value)||void 0===t||t.blur()}});const p=(0,a.KR)(),f=e=>{if(t.disabled)return;void 0===t.checked&&(h.value=e.target.checked),e.shiftKey=p.value;const n={target:(0,i.A)((0,i.A)({},t),{checked:e.target.checked}),stopPropagation(){e.stopPropagation()},preventDefault(){e.preventDefault()},nativeEvent:e};void 0!==t.checked&&(d.value.checked=!!t.checked),l("change",n),p.value=!1},g=t=>{l("click",t),p.value=t.shiftKey};return()=>{const{prefixCls:e,name:a,id:l,type:u,disabled:p,readonly:v,tabindex:m,autofocus:y,value:b,required:_}=t,x=c(t,["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,i.A)((0,i.A)({},x),n),T=Object.keys(M).reduce(((t,e)=>((e.startsWith("data-")||e.startsWith("aria-")||"role"===e)&&(t[e]=M[e]),t)),{}),P=(0,s.A)(e,w,{[`${e}-checked`]:h.value,[`${e}-disabled`]:p}),I=(0,i.A)((0,i.A)({name:a,id:l,type:u,readonly:v,disabled:p,tabindex:m,class:`${e}-input`,checked:!!h.value,autofocus:y,value:b},T),{onChange:f,onClick:g,onFocus:O,onBlur:S,onKeydown:A,onKeypress:k,onKeyup:C,required:_});return(0,o.bF)("span",{class:P},[(0,o.bF)("input",(0,r.A)({ref:d},I),null),(0,o.bF)("span",{class:`${e}-inner`},null)])}}})},94379:function(t,e,n){"use strict";n.d(e,{j:function(){return i}});var r=n(5530);function i(){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}}e.A=i},1592:function(t,e,n){"use strict";n.d(e,{A:function(){return P}});var r=n(69751),i=n(98657),o=n(73913),a=n(78753),s=n(12648),l=n(13389),u=n(5347),c=n(21244),h=n(21330),d=n(47960),p=n(67874),f=n(41038),g=n(94379);function v(t,e,n){let r=e;return!r&&n&&(r=`${t}-${n}`),r}let m=-1;function y(){return m+=1,m}function b(t,e){let n=t[`page${e?"Y":"X"}Offset`];const r="scroll"+(e?"Top":"Left");if("number"!==typeof n){const e=t.document;n=e.documentElement[r],"number"!==typeof n&&(n=e.body[r])}return n}function _(t){const e=t.getBoundingClientRect(),n={left:e.left,top:e.top},r=t.ownerDocument,i=r.defaultView||r.parentWindow;return n.left+=b(i),n.top+=b(i,!0),n}const x={width:0,height:0,overflow:"hidden",outline:"none"};var w=(0,o.pM)({compatConfig:{MODE:3},name:"DialogContent",inheritAttrs:!1,props:(0,i.A)((0,i.A)({},(0,g.A)()),{motionName:String,ariaId:String,onVisibleChanged:Function,onMousedown:Function,onMouseup:Function}),setup(t,e){let{expose:n,slots:i,attrs:s}=e;const l=(0,a.KR)(),u=(0,a.KR)(),c=(0,a.KR)();n({focus:()=>{var t;null===(t=l.value)||void 0===t||t.focus()},changeActive:t=>{const{activeElement:e}=document;t&&e===u.value?l.value.focus():t||e!==l.value||u.value.focus()}});const h=(0,a.KR)(),d=(0,o.EW)((()=>{const{width:e,height:n}=t,r={};return void 0!==e&&(r.width="number"===typeof e?`${e}px`:e),void 0!==n&&(r.height="number"===typeof n?`${n}px`:n),h.value&&(r.transformOrigin=h.value),r})),g=()=>{(0,o.dY)((()=>{if(c.value){const e=_(c.value);h.value=t.mousePosition?`${t.mousePosition.x-e.left}px ${t.mousePosition.y-e.top}px`:""}}))},v=e=>{t.onVisibleChanged(e)};return()=>{var e,n,a,h;const{prefixCls:m,footer:y=(null===(e=i.footer)||void 0===e?void 0:e.call(i)),title:b=(null===(n=i.title)||void 0===n?void 0:n.call(i)),ariaId:_,closable:w,closeIcon:O=(null===(a=i.closeIcon)||void 0===a?void 0:a.call(i)),onClose:S,bodyStyle:A,bodyProps:k,onMousedown:C,onMouseup:M,visible:T,modalRender:P=i.modalRender,destroyOnClose:I,motionName:$}=t;let E,R,D;y&&(E=(0,o.bF)("div",{class:`${m}-footer`},[y])),b&&(R=(0,o.bF)("div",{class:`${m}-header`},[(0,o.bF)("div",{class:`${m}-title`,id:_},[b])])),w&&(D=(0,o.bF)("button",{type:"button",onClick:S,"aria-label":"Close",class:`${m}-close`},[O||(0,o.bF)("span",{class:`${m}-close-x`},null)]));const L=(0,o.bF)("div",{class:`${m}-content`},[D,R,(0,o.bF)("div",(0,r.A)({class:`${m}-body`,style:A},k),[null===(h=i.default)||void 0===h?void 0:h.call(i)]),E]),N=(0,f.ce)($);return(0,o.bF)(f.Ay,(0,r.A)((0,r.A)({},N),{},{onBeforeEnter:g,onAfterEnter:()=>v(!0),onAfterLeave:()=>v(!1)}),{default:()=>[T||!I?(0,o.bo)((0,o.bF)("div",(0,r.A)((0,r.A)({},s),{},{ref:c,key:"dialog-element",role:"document",style:[d.value,s.style],class:[m,s.class],onMousedown:C,onMouseup:M}),[(0,o.bF)("div",{tabindex:0,ref:l,style:x,"aria-hidden":"true"},null),P?P({originVNode:L}):L,(0,o.bF)("div",{tabindex:0,ref:u,style:x,"aria-hidden":"true"},null)]),[[p.aG,T]]):null]})}}}),O=(0,o.pM)({compatConfig:{MODE:3},name:"DialogMask",props:{prefixCls:String,visible:Boolean,motionName:String,maskProps:Object},setup(t,e){let{}=e;return()=>{const{prefixCls:e,visible:n,maskProps:i,motionName:a}=t,s=(0,f.ce)(a);return(0,o.bF)(f.Ay,s,{default:()=>[(0,o.bo)((0,o.bF)("div",(0,r.A)({class:`${e}-mask`},i),null),[[p.aG,n]])]})}}}),S=(0,o.pM)({compatConfig:{MODE:3},name:"VcDialog",inheritAttrs:!1,props:(0,d.A)((0,i.A)((0,i.A)({},(0,g.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(t,e){let{attrs:n,slots:d}=e;const p=(0,a.IJ)(),f=(0,a.IJ)(),g=(0,a.IJ)(),m=(0,a.IJ)(t.visible),b=(0,a.IJ)(`vcDialogTitle${y()}`),_=e=>{var n,r;if(e)(0,s.A)(f.value,document.activeElement)||(p.value=document.activeElement,null===(n=g.value)||void 0===n||n.focus());else{const e=m.value;if(m.value=!1,t.mask&&p.value&&t.focusTriggerAfterClose){try{p.value.focus({preventScroll:!0})}catch(i){}p.value=null}e&&(null===(r=t.afterClose)||void 0===r||r.call(t))}},x=e=>{var n;null===(n=t.onClose)||void 0===n||n.call(t,e)},S=(0,a.IJ)(!1),A=(0,a.IJ)(),k=()=>{clearTimeout(A.value),S.value=!0},C=()=>{A.value=setTimeout((()=>{S.value=!1}))},M=e=>{if(!t.maskClosable)return null;S.value?S.value=!1:f.value===e.target&&x(e)},T=e=>{if(t.keyboard&&e.keyCode===u.A.ESC)return e.stopPropagation(),void x(e);t.visible&&e.keyCode===u.A.TAB&&g.value.changeActive(!e.shiftKey)};return(0,o.wB)((()=>t.visible),(()=>{t.visible&&(m.value=!0)}),{flush:"post"}),(0,o.xo)((()=>{var e;clearTimeout(A.value),null===(e=t.scrollLocker)||void 0===e||e.unLock()})),(0,o.nT)((()=>{var e,n;null===(e=t.scrollLocker)||void 0===e||e.unLock(),m.value&&(null===(n=t.scrollLocker)||void 0===n||n.lock())})),()=>{const{prefixCls:e,mask:a,visible:s,maskTransitionName:u,maskAnimation:p,zIndex:y,wrapClassName:S,rootClassName:A,wrapStyle:P,closable:I,maskProps:$,maskStyle:E,transitionName:R,animation:D,wrapProps:L,title:N=d.title}=t,{style:z,class:B}=n;return(0,o.bF)("div",(0,r.A)({class:[`${e}-root`,A]},(0,h.A)(t,{data:!0})),[(0,o.bF)(O,{prefixCls:e,visible:a&&s,motionName:v(e,u,p),style:(0,i.A)({zIndex:y},E),maskProps:$},null),(0,o.bF)("div",(0,r.A)({tabIndex:-1,onKeydown:T,class:(0,l.A)(`${e}-wrap`,S),ref:f,onClick:M,role:"dialog","aria-labelledby":N?b.value:null,style:(0,i.A)((0,i.A)({zIndex:y},P),{display:m.value?null:"none"})},L),[(0,o.bF)(w,(0,r.A)((0,r.A)({},(0,c.A)(t,["scrollLocker"])),{},{style:z,class:B,onMousedown:k,onMouseup:C,ref:g,closable:I,ariaId:b.value,prefixCls:e,visible:s,onClose:x,onVisibleChanged:_,motionName:v(e,R,D)}),d)])])}}}),A=n(5956),k=n(42845);const C=(0,g.A)(),M=(0,o.pM)({compatConfig:{MODE:3},name:"DialogWrap",inheritAttrs:!1,props:(0,d.A)(C,{visible:!1}),setup(t,e){let{attrs:n,slots:s}=e;const l=(0,a.KR)(t.visible);return(0,k.T)({},{inTriggerContext:!1}),(0,o.wB)((()=>t.visible),(()=>{t.visible&&(l.value=!0)}),{flush:"post"}),()=>{const{visible:e,getContainer:a,forceRender:u,destroyOnClose:c=!1,afterClose:h}=t;let d=(0,i.A)((0,i.A)((0,i.A)({},t),n),{ref:"_component",key:"dialog"});return!1===a?(0,o.bF)(S,(0,r.A)((0,r.A)({},d),{},{getOpenCount:()=>2}),s):u||!c||l.value?(0,o.bF)(A.A,{autoLock:!0,visible:e,forceRender:u,getContainer:a},{default:t=>(d=(0,i.A)((0,i.A)((0,i.A)({},d),t),{afterClose:()=>{null===h||void 0===h||h(),l.value=!1}}),(0,o.bF)(S,d,s))}):null}}});var T=M,P=T},36657:function(t,e,n){"use strict";var r=n(69751),i=n(73913),o=n(13389);e.A=(0,i.pM)({name:"Notice",inheritAttrs:!1,props:["prefixCls","duration","updateMark","noticeKey","closeIcon","closable","props","onClick","onClose","holder","visible"],setup(t,e){let n,{attrs:a,slots:s}=e,l=!1;const u=(0,i.EW)((()=>void 0===t.duration?4.5:t.duration)),c=()=>{u.value&&!l&&(n=setTimeout((()=>{d()}),1e3*u.value))},h=()=>{n&&(clearTimeout(n),n=null)},d=e=>{e&&e.stopPropagation(),h();const{onClose:n,noticeKey:r}=t;n&&n(r)},p=()=>{h(),c()};return(0,i.sV)((()=>{c()})),(0,i.hi)((()=>{l=!0,h()})),(0,i.wB)([u,()=>t.updateMark,()=>t.visible],((t,e)=>{let[n,r,i]=t,[o,a,s]=e;(n!==o||r!==a||i!==s&&s)&&p()}),{flush:"post"}),()=>{var e,n;const{prefixCls:l,closable:u,closeIcon:p=(null===(e=s.closeIcon)||void 0===e?void 0:e.call(s)),onClick:f,holder:g}=t,{class:v,style:m}=a,y=`${l}-notice`,b=Object.keys(a).reduce(((t,e)=>((e.startsWith("data-")||e.startsWith("aria-")||"role"===e)&&(t[e]=a[e]),t)),{}),_=(0,i.bF)("div",(0,r.A)({class:(0,o.A)(y,v,{[`${y}-closable`]:u}),style:m,onMouseenter:h,onMouseleave:c,onClick:f},b),[(0,i.bF)("div",{class:`${y}-content`},[null===(n=s.default)||void 0===n?void 0:n.call(s)]),u?(0,i.bF)("a",{tabindex:0,onClick:d,class:`${y}-close`},[p||(0,i.bF)("span",{class:`${y}-close-x`},null)]):null]);return g?(0,i.bF)(i.Im,{to:g},{default:()=>_}):_}}})},31716:function(t,e,n){"use strict";n.d(e,{A:function(){return y}});n(30381);var r=n(69751),i=n(98657),o=n(73913),a=n(41038),s=n(78753),l=n(67874),u=n(36657),c=n(95835),h=n(13389),d=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n};let p=0;const f=Date.now();function g(){const t=p;return p+=1,`rcNotification_${f}_${t}`}const v=(0,o.pM)({name:"Notification",inheritAttrs:!1,props:["prefixCls","transitionName","animation","maxCount","closeIcon","hashId"],setup(t,e){let{attrs:n,expose:c,slots:d}=e;const p=new Map,f=(0,s.KR)([]),v=(0,o.EW)((()=>{const{prefixCls:e,animation:n="fade"}=t;let r=t.transitionName;return!r&&n&&(r=`${e}-${n}`),(0,a.zg)(r)})),m=(e,n)=>{const r=e.key||g(),o=(0,i.A)((0,i.A)({},e),{key:r}),{maxCount:a}=t,s=f.value.map((t=>t.notice.key)).indexOf(r),l=f.value.concat();-1!==s?l.splice(s,1,{notice:o,holderCallback:n}):(a&&f.value.length>=a&&(o.key=l[0].notice.key,o.updateMark=g(),o.userPassKey=r,l.shift()),l.push({notice:o,holderCallback:n})),f.value=l},y=t=>{f.value=f.value.filter((e=>{let{notice:{key:n,userPassKey:r}}=e;const i=r||n;return i!==t}))};return c({add:m,remove:y,notices:f}),()=>{var e;const{prefixCls:a,closeIcon:s=(null===(e=d.closeIcon)||void 0===e?void 0:e.call(d,{prefixCls:a}))}=t,c=f.value.map(((e,n)=>{let{notice:l,holderCallback:c}=e;const d=n===f.value.length-1?l.updateMark:void 0,{key:g,userPassKey:v}=l,{content:m}=l,b=(0,i.A)((0,i.A)((0,i.A)({prefixCls:a,closeIcon:"function"===typeof s?s({prefixCls:a}):s},l),l.props),{key:g,noticeKey:v||g,updateMark:d,onClose:t=>{var e;y(t),null===(e=l.onClose)||void 0===e||e.call(l)},onClick:l.onClick});return c?(0,o.bF)("div",{key:g,class:`${a}-hook-holder`,ref:t=>{"undefined"!==typeof g&&(t?(p.set(g,t),c(t,b)):p.delete(g))}},null):(0,o.bF)(u.A,(0,r.A)((0,r.A)({},b),{},{class:(0,h.A)(b.class,t.hashId)}),{default:()=>["function"===typeof m?m({prefixCls:a}):m]})})),g={[a]:1,[n.class]:!!n.class,[t.hashId]:!0};return(0,o.bF)("div",{class:g,style:n.style||{top:"65px",left:"50%"}},[(0,o.bF)(l.F,(0,r.A)({tag:"div"},v.value),{default:()=>[c]})])}}});v.newInstance=function(t,e){const n=t||{},{name:i="notification",getContainer:a,appContext:u,prefixCls:h,rootPrefixCls:p,transitionName:f,hasTransitionName:g,useStyle:m}=n,y=d(n,["name","getContainer","appContext","prefixCls","rootPrefixCls","transitionName","hasTransitionName","useStyle"]),b=document.createElement("div");if(a){const t=a();t.appendChild(b)}else document.body.appendChild(b);const _=(0,o.pM)({compatConfig:{MODE:3},name:"NotificationWrapper",setup(t,n){let{attrs:a}=n;const u=(0,s.IJ)(),d=(0,o.EW)((()=>c.Vm.getPrefixCls(i,h))),[,y]=m(d);return(0,o.sV)((()=>{e({notice(t){var e;null===(e=u.value)||void 0===e||e.add(t)},removeNotice(t){var e;null===(e=u.value)||void 0===e||e.remove(t)},destroy(){(0,l.XX)(null,b),b.parentNode&&b.parentNode.removeChild(b)},component:u})})),()=>{const t=c.Vm,e=t.getRootPrefixCls(p,d.value),n=g?f:`${d.value}-${f}`;return(0,o.bF)(c.Ay,(0,r.A)((0,r.A)({},t),{},{prefixCls:e}),{default:()=>[(0,o.bF)(v,(0,r.A)((0,r.A)({ref:u},a),{},{prefixCls:d.value,transitionName:n,hashId:y.value}),null)]})}}}),x=(0,o.bF)(_,y);x.appContext=u||x.appContext,(0,l.XX)(x,b)};var m=v,y=m},39375:function(t,e,n){"use strict";n.d(e,{A:function(){return x}});n(30381);var r=n(98657),i=n(73913),o=n(78753),a=n(69751),s=n(67874),l=n(36657),u=n(41038),c=n(13389),h=n(68955);let d=0;const p=Date.now();function f(){const t=d;return d+=1,`rcNotification_${p}_${t}`}const g=(0,i.pM)({name:"HookNotification",inheritAttrs:!1,props:["prefixCls","transitionName","animation","maxCount","closeIcon","hashId","remove","notices","getStyles","getClassName","onAllRemoved","getContainer"],setup(t,e){let{attrs:n,slots:d}=e;const p=new Map,f=(0,i.EW)((()=>t.notices)),g=(0,i.EW)((()=>{let e=t.transitionName;if(!e&&t.animation)switch(typeof t.animation){case"string":e=t.animation;break;case"function":e=t.animation().name;break;case"object":e=t.animation.name;break;default:e=`${t.prefixCls}-fade`;break}return(0,u.zg)(e)})),v=e=>t.remove(e),m=(0,o.KR)({});(0,i.wB)(f,(()=>{const e={};Object.keys(m.value).forEach((t=>{e[t]=[]})),t.notices.forEach((t=>{const{placement:n="topRight"}=t.notice;n&&(e[n]=e[n]||[],e[n].push(t))})),m.value=e}));const y=(0,i.EW)((()=>Object.keys(m.value)));return()=>{var e;const{prefixCls:o,closeIcon:u=(null===(e=d.closeIcon)||void 0===e?void 0:e.call(d,{prefixCls:o}))}=t,b=y.value.map((e=>{var h,d;const y=m.value[e],b=null===(h=t.getClassName)||void 0===h?void 0:h.call(t,e),_=null===(d=t.getStyles)||void 0===d?void 0:d.call(t,e),x=y.map(((e,n)=>{let{notice:s,holderCallback:h}=e;const d=n===f.value.length-1?s.updateMark:void 0,{key:g,userPassKey:m}=s,{content:y}=s,b=(0,r.A)((0,r.A)((0,r.A)({prefixCls:o,closeIcon:"function"===typeof u?u({prefixCls:o}):u},s),s.props),{key:g,noticeKey:m||g,updateMark:d,onClose:t=>{var e;v(t),null===(e=s.onClose)||void 0===e||e.call(s)},onClick:s.onClick});return h?(0,i.bF)("div",{key:g,class:`${o}-hook-holder`,ref:t=>{"undefined"!==typeof g&&(t?(p.set(g,t),h(t,b)):p.delete(g))}},null):(0,i.bF)(l.A,(0,a.A)((0,a.A)({},b),{},{class:(0,c.A)(b.class,t.hashId)}),{default:()=>["function"===typeof y?y({prefixCls:o}):y]})})),w={[o]:1,[`${o}-${e}`]:1,[n.class]:!!n.class,[t.hashId]:!0,[b]:!!b};function O(){var n;y.length>0||(Reflect.deleteProperty(m.value,e),null===(n=t.onAllRemoved)||void 0===n||n.call(t))}return(0,i.bF)("div",{key:e,class:w,style:n.style||_||{top:"65px",left:"50%"}},[(0,i.bF)(s.F,(0,a.A)((0,a.A)({tag:"div"},g.value),{},{onAfterLeave:O}),{default:()=>[x]})])}));return(0,i.bF)(h.A,{getContainer:t.getContainer},{default:()=>[b]})}}});var v=g,m=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n};const y=()=>document.body;let b=0;function _(){const t={};for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return n.forEach((e=>{e&&Object.keys(e).forEach((n=>{const r=e[n];void 0!==r&&(t[n]=r)}))})),t}function x(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{getContainer:e=y,motion:n,prefixCls:a,maxCount:s,getClassName:l,getStyles:u,onAllRemoved:c}=t,h=m(t,["getContainer","motion","prefixCls","maxCount","getClassName","getStyles","onAllRemoved"]),d=(0,o.IJ)([]),p=(0,o.IJ)(),g=(t,e)=>{const n=t.key||f(),i=(0,r.A)((0,r.A)({},t),{key:n}),o=d.value.map((t=>t.notice.key)).indexOf(n),a=d.value.concat();-1!==o?a.splice(o,1,{notice:i,holderCallback:e}):(s&&d.value.length>=s&&(i.key=a[0].notice.key,i.updateMark=f(),i.userPassKey=n,a.shift()),a.push({notice:i,holderCallback:e})),d.value=a},x=t=>{d.value=d.value.filter((e=>{let{notice:{key:n,userPassKey:r}}=e;const i=r||n;return i!==t}))},w=()=>{d.value=[]},O=()=>(0,i.bF)(v,{ref:p,prefixCls:a,maxCount:s,notices:d.value,remove:x,getClassName:l,getStyles:u,animation:n,hashId:t.hashId,onAllRemoved:c,getContainer:e},null),S=(0,o.IJ)([]),A={open:t=>{const e=_(h,t);null!==e.key&&void 0!==e.key||(e.key=`vc-notification-${b}`,b+=1),S.value=[...S.value,{type:"open",config:e}]},close:t=>{S.value=[...S.value,{type:"close",key:t}]},destroy:()=>{S.value=[...S.value,{type:"destroy"}]}};return(0,i.wB)(S,(()=>{S.value.length&&(S.value.forEach((t=>{switch(t.type){case"open":g(t.config);break;case"close":x(t.key);break;case"destroy":w();break}})),S.value=[])})),[A,O]}},6631:function(t,e,n){"use strict";n.d(e,{A:function(){return A}});var r=n(69751),i=n(98657),o=n(73913),a=n(78753),s=n(71555),l=n(13389),u=n(5530);const c=Symbol("OverflowContextProviderKey"),h=(0,o.pM)({compatConfig:{MODE:3},name:"OverflowContextProvider",inheritAttrs:!1,props:{value:{type:Object}},setup(t,e){let{slots:n}=e;return(0,o.Gt)(c,(0,o.EW)((()=>t.value))),()=>{var t;return null===(t=n.default)||void 0===t?void 0:t.call(n)}}}),d=()=>(0,o.WQ)(c,(0,o.EW)((()=>null)));var p=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n};const f=void 0;var g=(0,o.pM)({compatConfig:{MODE:3},name:"Item",props:{prefixCls:String,item:u.A.any,renderItem:Function,responsive:Boolean,itemKey:{type:[String,Number]},registerSize:Function,display:Boolean,order:Number,component:u.A.any,invalidate:Boolean},setup(t,e){let{slots:n,expose:i}=e;const u=(0,o.EW)((()=>t.responsive&&!t.display)),c=(0,a.KR)();function h(e){t.registerSize(t.itemKey,e)}return i({itemNodeRef:c}),(0,o.hi)((()=>{h(null)})),()=>{var e;const{prefixCls:i,invalidate:a,item:d,renderItem:g,responsive:v,registerSize:m,itemKey:y,display:b,order:_,component:x="div"}=t,w=p(t,["prefixCls","invalidate","item","renderItem","responsive","registerSize","itemKey","display","order","component"]),O=null===(e=n.default)||void 0===e?void 0:e.call(n),S=g&&d!==f?g(d):O;let A;a||(A={opacity:u.value?0:1,height:u.value?0:f,overflowY:u.value?"hidden":f,order:v?_:f,pointerEvents:u.value?"none":f,position:u.value?"absolute":f});const k={};return u.value&&(k["aria-hidden"]=!0),(0,o.bF)(s.A,{disabled:!v,onResize:t=>{let{offsetWidth:e}=t;h(e)}},{default:()=>(0,o.bF)(x,(0,r.A)((0,r.A)((0,r.A)({class:(0,l.A)(!a&&i),style:A},k),w),{},{ref:c}),{default:()=>[S]})})}}}),v=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n},m=(0,o.pM)({compatConfig:{MODE:3},name:"RawItem",inheritAttrs:!1,props:{component:u.A.any,title:u.A.any,id:String,onMouseenter:{type:Function},onMouseleave:{type:Function},onClick:{type:Function},onKeydown:{type:Function},onFocus:{type:Function},role:String,tabindex:Number},setup(t,e){let{slots:n,attrs:i}=e;const a=d();return()=>{var e;if(!a.value){const{component:a="div"}=t,s=v(t,["component"]);return(0,o.bF)(a,(0,r.A)((0,r.A)({},s),i),{default:()=>[null===(e=n.default)||void 0===e?void 0:e.call(n)]})}const s=a.value,{className:u}=s,c=v(s,["className"]),{class:d}=i,p=v(i,["class"]);return(0,o.bF)(h,{value:null},{default:()=>[(0,o.bF)(g,(0,r.A)((0,r.A)((0,r.A)({class:(0,l.A)(u,d)},c),p),t),n)]})}}}),y=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n};const b="responsive",_="invalidate";function x(t){return`+ ${t.length} ...`}const w=()=>({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:u.A.any,component:String,itemComponent:u.A.any,onVisibleChange:Function,ssr:String,onMousedown:Function}),O=(0,o.pM)({name:"Overflow",inheritAttrs:!1,props:w(),emits:["visibleChange"],setup(t,e){let{attrs:n,emit:u,slots:c}=e;const d=(0,o.EW)((()=>"full"===t.ssr)),p=(0,a.IJ)(null),f=(0,o.EW)((()=>p.value||0)),v=(0,a.IJ)(new Map),m=(0,a.IJ)(0),w=(0,a.IJ)(0),O=(0,a.IJ)(0),S=(0,a.IJ)(null),A=(0,a.IJ)(null),k=(0,o.EW)((()=>null===A.value&&d.value?Number.MAX_SAFE_INTEGER:A.value||0)),C=(0,a.IJ)(!1),M=(0,o.EW)((()=>`${t.prefixCls}-item`)),T=(0,o.EW)((()=>Math.max(m.value,w.value))),P=(0,o.EW)((()=>!(!t.data.length||t.maxCount!==b))),I=(0,o.EW)((()=>t.maxCount===_)),$=(0,o.EW)((()=>P.value||"number"===typeof t.maxCount&&t.data.length>t.maxCount)),E=(0,o.EW)((()=>{let e=t.data;return P.value?e=null===p.value&&d.value?t.data:t.data.slice(0,Math.min(t.data.length,f.value/t.itemWidth)):"number"===typeof t.maxCount&&(e=t.data.slice(0,t.maxCount)),e})),R=(0,o.EW)((()=>P.value?t.data.slice(k.value+1):t.data.slice(E.value.length))),D=(e,n)=>{var r;return"function"===typeof t.itemKey?t.itemKey(e):null!==(r=t.itemKey&&(null===e||void 0===e?void 0:e[t.itemKey]))&&void 0!==r?r:n},L=(0,o.EW)((()=>t.renderItem||(t=>t))),N=(e,n)=>{A.value=e,n||(C.value=e<t.data.length-1,u("visibleChange",e))},z=(t,e)=>{p.value=e.clientWidth},B=(t,e)=>{const n=new Map(v.value);null===e?n.delete(t):n.set(t,e),v.value=n},F=(t,e)=>{m.value=w.value,w.value=e},W=(t,e)=>{O.value=e},j=t=>v.value.get(D(E.value[t],t));return(0,o.wB)([f,v,w,O,()=>t.itemKey,E],(()=>{if(f.value&&T.value&&E.value){let e=O.value;const n=E.value.length,r=n-1;if(!n)return N(0),void(S.value=null);for(let t=0;t<n;t+=1){const n=j(t);if(void 0===n){N(t-1,!0);break}if(e+=n,0===r&&e<=f.value||t===r-1&&e+j(r)<=f.value){N(r),S.value=null;break}if(e+T.value>f.value){N(t-1),S.value=e-n-O.value+w.value;break}}t.suffix&&j(0)+O.value>f.value&&(S.value=null)}})),()=>{const e=C.value&&!!R.value.length,{itemComponent:a,renderRawItem:u,renderRawRest:d,renderRest:p,prefixCls:f="rc-overflow",suffix:v,component:m="div",id:b,onMousedown:_}=t,{class:w,style:O}=n,A=y(n,["class","style"]);let T={};null!==S.value&&P.value&&(T={position:"absolute",left:`${S.value}px`,top:0});const N={prefixCls:M.value,responsive:P.value,component:a,invalidate:I.value},j=u?(t,e)=>{const n=D(t,e);return(0,o.bF)(h,{key:n,value:(0,i.A)((0,i.A)({},N),{order:e,item:t,itemKey:n,registerSize:B,display:e<=k.value})},{default:()=>[u(t,e)]})}:(t,e)=>{const n=D(t,e);return(0,o.bF)(g,(0,r.A)((0,r.A)({},N),{},{order:e,key:n,item:t,renderItem:L.value,itemKey:n,registerSize:B,display:e<=k.value}),null)};let V=()=>null;const Q={order:e?k.value:Number.MAX_SAFE_INTEGER,className:`${M.value} ${M.value}-rest`,registerSize:F,display:e};if(d)d&&(V=()=>(0,o.bF)(h,{value:(0,i.A)((0,i.A)({},N),Q)},{default:()=>[d(R.value)]}));else{const t=p||x;V=()=>(0,o.bF)(g,(0,r.A)((0,r.A)({},N),Q),{default:()=>"function"===typeof t?t(R.value):t})}const H=()=>{var t;return(0,o.bF)(m,(0,r.A)({id:b,class:(0,l.A)(!I.value&&f,w),style:O,onMousedown:_},A),{default:()=>[E.value.map(j),$.value?V():null,v&&(0,o.bF)(g,(0,r.A)((0,r.A)({},N),{},{order:k.value,class:`${M.value}-suffix`,registerSize:W,display:!0,style:T}),{default:()=>v}),null===(t=c.default)||void 0===t?void 0:t.call(c)]})};return(0,o.bF)(s.A,{disabled:!P.value,onResize:z},{default:H})}}});O.Item=m,O.RESPONSIVE=b,O.INVALIDATE=_;var S=O,A=S},71555:function(t,e,n){"use strict";var r=n(98657),i=n(18667),o=n(73913),a=n(78753),s=n(16155);e.A=(0,o.pM)({compatConfig:{MODE:3},name:"ResizeObserver",props:{disabled:Boolean,onResize:Function},emits:["resize"],setup(t,e){let{slots:n}=e;const l=(0,a.Kh)({width:0,height:0,offsetHeight:0,offsetWidth:0});let u=null,c=null;const h=()=>{c&&(c.disconnect(),c=null)},d=e=>{const{onResize:n}=t,i=e[0].target,{width:o,height:a}=i.getBoundingClientRect(),{offsetWidth:s,offsetHeight:u}=i,c=Math.floor(o),h=Math.floor(a);if(l.width!==c||l.height!==h||l.offsetWidth!==s||l.offsetHeight!==u){const t={width:c,height:h,offsetWidth:s,offsetHeight:u};(0,r.A)(l,t),n&&Promise.resolve().then((()=>{n((0,r.A)((0,r.A)({},t),{offsetWidth:s,offsetHeight:u}),i)}))}},p=(0,o.nI)(),f=()=>{const{disabled:e}=t;if(e)return void h();const n=(0,s.oK)(p),r=n!==u;r&&(h(),u=n),!c&&n&&(c=new i.A(d),c.observe(n))};return(0,o.sV)((()=>{f()})),(0,o.$u)((()=>{f()})),(0,o.hi)((()=>{h()})),(0,o.wB)((()=>t.disabled),(()=>{f()}),{flush:"post"}),()=>{var t;return null===(t=n.default)||void 0===t?void 0:t.call(n)[0]}}})},42845:function(t,e,n){"use strict";n.d(e,{T:function(){return o},v:function(){return a}});var r=n(73913);const i=Symbol("PortalContextKey"),o=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{inTriggerContext:!0};(0,r.Gt)(i,{inTriggerContext:e.inTriggerContext,shouldRender:(0,r.EW)((()=>{const{sPopupVisible:e,popupRef:n,forceRender:r,autoDestroy:i}=t||{};let o=!1;return(e||n||r)&&(o=!0),!e&&i&&(o=!1),o}))})},a=()=>{o({},{inTriggerContext:!1});const t=(0,r.WQ)(i,{shouldRender:(0,r.EW)((()=>!1)),inTriggerContext:!1});return{shouldRender:(0,r.EW)((()=>t.shouldRender.value||!1===t.inTriggerContext))}}},15928:function(t,e,n){"use strict";n.d(e,{A:function(){return _e}});n(30381);var r=n(98657),i=n(73913),o=n(78753),a=n(5530);function s(){return""}function l(t){return t?t.ownerDocument:window.document}function u(){}const c=()=>({action:a.A.oneOfType([a.A.string,a.A.arrayOf(a.A.string)]).def([]),showAction:a.A.any.def([]),hideAction:a.A.any.def([]),getPopupClassNameFromAlign:a.A.any.def(s),onPopupVisibleChange:Function,afterPopupVisibleChange:a.A.func.def(u),popup:a.A.any,arrow:a.A.bool.def(!0),popupStyle:{type:Object,default:void 0},prefixCls:a.A.string.def("rc-trigger-popup"),popupClassName:a.A.string.def(""),popupPlacement:String,builtinPlacements:a.A.object,popupTransitionName:String,popupAnimation:a.A.any,mouseEnterDelay:a.A.number.def(0),mouseLeaveDelay:a.A.number.def(.1),zIndex:Number,focusDelay:a.A.number.def(0),blurDelay:a.A.number.def(.15),getPopupContainer:Function,getDocument:a.A.func.def(l),forceRender:{type:Boolean,default:void 0},destroyPopupOnHide:{type:Boolean,default:!1},mask:{type:Boolean,default:!1},maskClosable:{type:Boolean,default:!0},popupAlign:a.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 h=n(12648),d=n(38624),p=n(16155),f=n(74220),g=n(69751);const v={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)({},v),{mobile:{type:Object}}),y=(0,r.A)((0,r.A)({},v),{mask:Boolean,mobile:{type:Object},maskAnimation:String,maskTransitionName:String});var b=n(67874),_=n(1684);function x(t){const{prefixCls:e,visible:n,zIndex:r,mask:o,maskAnimation:a,maskTransitionName:s}=t;if(!o)return null;let l={};return(s||a)&&(l=(0,_.V)({prefixCls:e,transitionName:s,animation:a})),(0,i.bF)(b.eB,(0,g.A)({appear:!0},l),{default:()=>[(0,i.bo)((0,i.bF)("div",{style:{zIndex:r},class:`${e}-mask`},null),[[(0,i.gN)("if"),n]])]})}x.displayName="Mask";var w=n(13389),O=(0,i.pM)({compatConfig:{MODE:3},name:"MobilePopupInner",inheritAttrs:!1,props:m,emits:["mouseenter","mouseleave","mousedown","touchstart","align"],setup(t,e){let{expose:n,slots:a}=e;const s=(0,o.KR)();return n({forceAlign:()=>{},getElement:()=>s.value}),()=>{var e;const{zIndex:n,visible:o,prefixCls:l,mobile:{popupClassName:u,popupStyle:c,popupMotion:h={},popupRender:d}={}}=t,f=(0,r.A)({zIndex:n},c);let v=(0,p.MI)(null===(e=a.default)||void 0===e?void 0:e.call(a));if(v.length>1){(function(){})();v=(0,i.bF)("div",{class:`${l}-content`},[v])}d&&(v=d(v));const m=(0,w.A)(l,u);return(0,i.bF)(b.eB,(0,g.A)({ref:s},h),{default:()=>[o?(0,i.bF)("div",{class:m,style:f},[v]):null]})}}}),S=function(t,e,n,r){function i(t){return t instanceof n?t:new n((function(e){e(t)}))}return new(n||(n=Promise))((function(n,o){function a(t){try{l(r.next(t))}catch(e){o(e)}}function s(t){try{l(r["throw"](t))}catch(e){o(e)}}function l(t){t.done?n(t.value):i(t.value).then(a,s)}l((r=r.apply(t,e||[])).next())}))};const A=["measure","align",null,"motion"];var k,C=(t,e)=>{const n=(0,o.IJ)(null),r=(0,o.IJ)(),a=(0,o.IJ)(!1);function s(t){a.value||(n.value=t)}function l(){d.A.cancel(r.value)}function u(t){l(),r.value=(0,d.A)((()=>{let e=n.value;switch(n.value){case"align":e="motion";break;case"motion":e="stable";break;default:}s(e),null===t||void 0===t||t()}))}return(0,i.wB)(t,(()=>{s("measure")}),{immediate:!0,flush:"post"}),(0,i.sV)((()=>{(0,i.wB)(n,(()=>{switch(n.value){case"measure":e();break;default:}n.value&&(r.value=(0,d.A)((()=>S(void 0,void 0,void 0,(function*(){const t=A.indexOf(n.value),e=A[t+1];e&&-1!==t&&s(e)})))))}),{immediate:!0,flush:"post"})})),(0,i.xo)((()=>{a.value=!0,l()})),[n,u]},M=t=>{const e=(0,o.IJ)({width:0,height:0});function n(t){e.value={width:t.offsetWidth,height:t.offsetHeight}}const r=(0,i.EW)((()=>{const n={};if(t.value){const{width:r,height:i}=e.value;-1!==t.value.indexOf("height")&&i?n.height=`${i}px`:-1!==t.value.indexOf("minHeight")&&i&&(n.minHeight=`${i}px`),-1!==t.value.indexOf("width")&&r?n.width=`${r}px`:-1!==t.value.indexOf("minWidth")&&r&&(n.minWidth=`${r}px`)}return n}));return[r,n]};function T(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function P(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?T(Object(n),!0).forEach((function(e){$(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):T(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function I(t){return I="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},I(t)}function $(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var E={Webkit:"-webkit-",Moz:"-moz-",ms:"-ms-",O:"-o-"};function R(){if(void 0!==k)return k;k="";var t=document.createElement("p").style,e="Transform";for(var n in E)n+e in t&&(k=n);return k}function D(){return R()?"".concat(R(),"TransitionProperty"):"transitionProperty"}function L(){return R()?"".concat(R(),"Transform"):"transform"}function N(t,e){var n=D();n&&(t.style[n]=e,"transitionProperty"!==n&&(t.style.transitionProperty=e))}function z(t,e){var n=L();n&&(t.style[n]=e,"transform"!==n&&(t.style.transform=e))}function B(t){return t.style.transitionProperty||t.style[D()]}function F(t){var e=window.getComputedStyle(t,null),n=e.getPropertyValue("transform")||e.getPropertyValue(L());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 W=/matrix\((.*)\)/,j=/matrix3d\((.*)\)/;function V(t,e){var n=window.getComputedStyle(t,null),r=n.getPropertyValue("transform")||n.getPropertyValue(L());if(r&&"none"!==r){var i,o=r.match(W);if(o)o=o[1],i=o.split(",").map((function(t){return parseFloat(t,10)})),i[4]=e.x,i[5]=e.y,z(t,"matrix(".concat(i.join(","),")"));else{var a=r.match(j)[1];i=a.split(",").map((function(t){return parseFloat(t,10)})),i[12]=e.x,i[13]=e.y,z(t,"matrix3d(".concat(i.join(","),")"))}}else z(t,"translateX(".concat(e.x,"px) translateY(").concat(e.y,"px) translateZ(0)"))}var Q,H=/[\-+]?(?:\d*\.|)\d+(?:[eE][\-+]?\d+|)/.source;function Z(t){var e=t.style.display;t.style.display="none",t.offsetHeight,t.style.display=e}function G(t,e,n){var r=n;if("object"!==I(e))return"undefined"!==typeof r?("number"===typeof r&&(r="".concat(r,"px")),void(t.style[e]=r)):Q(t,e);for(var i in e)e.hasOwnProperty(i)&&G(t,i,e[i])}function X(t){var e,n,r,i=t.ownerDocument,o=i.body,a=i&&i.documentElement;return e=t.getBoundingClientRect(),n=Math.floor(e.left),r=Math.floor(e.top),n-=a.clientLeft||o.clientLeft||0,r-=a.clientTop||o.clientTop||0,{left:n,top:r}}function U(t,e){var n=t["page".concat(e?"Y":"X","Offset")],r="scroll".concat(e?"Top":"Left");if("number"!==typeof n){var i=t.document;n=i.documentElement[r],"number"!==typeof n&&(n=i.body[r])}return n}function Y(t){return U(t)}function q(t){return U(t,!0)}function K(t){var e=X(t),n=t.ownerDocument,r=n.defaultView||n.parentWindow;return e.left+=Y(r),e.top+=q(r),e}function J(t){return null!==t&&void 0!==t&&t==t.window}function tt(t){return J(t)?t.document:9===t.nodeType?t:t.ownerDocument}function et(t,e,n){var r=n,i="",o=tt(t);return r=r||o.defaultView.getComputedStyle(t,null),r&&(i=r.getPropertyValue(e)||r[e]),i}var nt=new RegExp("^(".concat(H,")(?!px)[a-z%]+$"),"i"),rt=/^(top|right|bottom|left)$/,it="currentStyle",ot="runtimeStyle",at="left",st="px";function lt(t,e){var n=t[it]&&t[it][e];if(nt.test(n)&&!rt.test(e)){var r=t.style,i=r[at],o=t[ot][at];t[ot][at]=t[it][at],r[at]="fontSize"===e?"1em":n||0,n=r.pixelLeft+st,r[at]=i,t[ot][at]=o}return""===n?"auto":n}function ut(t,e){return"left"===t?e.useCssRight?"right":t:e.useCssBottom?"bottom":t}function ct(t){return"left"===t?"right":"right"===t?"left":"top"===t?"bottom":"bottom"===t?"top":void 0}function ht(t,e,n){"static"===G(t,"position")&&(t.style.position="relative");var r=-999,i=-999,o=ut("left",n),a=ut("top",n),s=ct(o),l=ct(a);"left"!==o&&(r=999),"top"!==a&&(i=999);var u="",c=K(t);("left"in e||"top"in e)&&(u=B(t)||"",N(t,"none")),"left"in e&&(t.style[s]="",t.style[o]="".concat(r,"px")),"top"in e&&(t.style[l]="",t.style[a]="".concat(i,"px")),Z(t);var h=K(t),d={};for(var p in e)if(e.hasOwnProperty(p)){var f=ut(p,n),g="left"===p?r:i,v=c[p]-h[p];d[f]=f===p?g+v:g-v}G(t,d),Z(t),("left"in e||"top"in e)&&N(t,u);var m={};for(var y in e)if(e.hasOwnProperty(y)){var b=ut(y,n),_=e[y]-c[y];m[b]=y===b?d[b]+_:d[b]-_}G(t,m)}function dt(t,e){var n=K(t),r=F(t),i={x:r.x,y:r.y};"left"in e&&(i.x=r.x+e.left-n.left),"top"in e&&(i.y=r.y+e.top-n.top),V(t,i)}function pt(t,e,n){if(n.ignoreShake){var r=K(t),i=r.left.toFixed(0),o=r.top.toFixed(0),a=e.left.toFixed(0),s=e.top.toFixed(0);if(i===a&&o===s)return}n.useCssRight||n.useCssBottom?ht(t,e,n):n.useCssTransform&&L()in document.body.style?dt(t,e):ht(t,e,n)}function ft(t,e){for(var n=0;n<t.length;n++)e(t[n])}function gt(t){return"border-box"===Q(t,"boxSizing")}"undefined"!==typeof window&&(Q=window.getComputedStyle?et:lt);var vt=["margin","border","padding"],mt=-1,yt=2,bt=1,_t=0;function xt(t,e,n){var r,i={},o=t.style;for(r in e)e.hasOwnProperty(r)&&(i[r]=o[r],o[r]=e[r]);for(r in n.call(t),e)e.hasOwnProperty(r)&&(o[r]=i[r])}function wt(t,e,n){var r,i,o,a=0;for(i=0;i<e.length;i++)if(r=e[i],r)for(o=0;o<n.length;o++){var s=void 0;s="border"===r?"".concat(r).concat(n[o],"Width"):r+n[o],a+=parseFloat(Q(t,s))||0}return a}var Ot={getParent:function(t){var e=t;do{e=11===e.nodeType&&e.host?e.host:e.parentNode}while(e&&1!==e.nodeType&&9!==e.nodeType);return e}};function St(t,e,n){var r=n;if(J(t))return"width"===e?Ot.viewportWidth(t):Ot.viewportHeight(t);if(9===t.nodeType)return"width"===e?Ot.docWidth(t):Ot.docHeight(t);var i="width"===e?["Left","Right"]:["Top","Bottom"],o="width"===e?Math.floor(t.getBoundingClientRect().width):Math.floor(t.getBoundingClientRect().height),a=gt(t),s=0;(null===o||void 0===o||o<=0)&&(o=void 0,s=Q(t,e),(null===s||void 0===s||Number(s)<0)&&(s=t.style[e]||0),s=Math.floor(parseFloat(s))||0),void 0===r&&(r=a?bt:mt);var l=void 0!==o||a,u=o||s;return r===mt?l?u-wt(t,["border","padding"],i):s:l?r===bt?u:u+(r===yt?-wt(t,["border"],i):wt(t,["margin"],i)):s+wt(t,vt.slice(r),i)}ft(["Width","Height"],(function(t){Ot["doc".concat(t)]=function(e){var n=e.document;return Math.max(n.documentElement["scroll".concat(t)],n.body["scroll".concat(t)],Ot["viewport".concat(t)](n))},Ot["viewport".concat(t)]=function(e){var n="client".concat(t),r=e.document,i=r.body,o=r.documentElement,a=o[n];return"CSS1Compat"===r.compatMode&&a||i&&i[n]||a}}));var At={position:"absolute",visibility:"hidden",display:"block"};function kt(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var r,i=e[0];return 0!==i.offsetWidth?r=St.apply(void 0,e):xt(i,At,(function(){r=St.apply(void 0,e)})),r}function Ct(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}ft(["width","height"],(function(t){var e=t.charAt(0).toUpperCase()+t.slice(1);Ot["outer".concat(e)]=function(e,n){return e&&kt(e,t,n?_t:bt)};var n="width"===t?["Left","Right"]:["Top","Bottom"];Ot[t]=function(e,r){var i=r;if(void 0===i)return e&&kt(e,t,mt);if(e){var o=gt(e);return o&&(i+=wt(e,["padding","border"],n)),G(e,t,i)}}}));var Mt={getWindow:function(t){if(t&&t.document&&t.setTimeout)return t;var e=t.ownerDocument||t;return e.defaultView||e.parentWindow},getDocument:tt,offset:function(t,e,n){if("undefined"===typeof e)return K(t);pt(t,e,n||{})},isWindow:J,each:ft,css:G,clone:function(t){var e,n={};for(e in t)t.hasOwnProperty(e)&&(n[e]=t[e]);var r=t.overflow;if(r)for(e in t)t.hasOwnProperty(e)&&(n.overflow[e]=t.overflow[e]);return n},mix:Ct,getWindowScrollLeft:function(t){return Y(t)},getWindowScrollTop:function(t){return q(t)},merge:function(){for(var t={},e=0;e<arguments.length;e++)Mt.mix(t,e<0||arguments.length<=e?void 0:arguments[e]);return t},viewportWidth:0,viewportHeight:0};Ct(Mt,Ot);var Tt=Mt.getParent;function Pt(t){if(Mt.isWindow(t)||9===t.nodeType)return null;var e,n=Mt.getDocument(t),r=n.body,i=Mt.css(t,"position"),o="fixed"===i||"absolute"===i;if(!o)return"html"===t.nodeName.toLowerCase()?null:Tt(t);for(e=Tt(t);e&&e!==r&&9!==e.nodeType;e=Tt(e))if(i=Mt.css(e,"position"),"static"!==i)return e;return null}var It=Mt.getParent;function $t(t){if(Mt.isWindow(t)||9===t.nodeType)return!1;var e=Mt.getDocument(t),n=e.body,r=null;for(r=It(t);r&&r!==n&&r!==e;r=It(r)){var i=Mt.css(r,"position");if("fixed"===i)return!0}return!1}function Et(t,e){var n={left:0,right:1/0,top:0,bottom:1/0},r=Pt(t),i=Mt.getDocument(t),o=i.defaultView||i.parentWindow,a=i.body,s=i.documentElement;while(r){if(-1!==navigator.userAgent.indexOf("MSIE")&&0===r.clientWidth||r===a||r===s||"visible"===Mt.css(r,"overflow")){if(r===a||r===s)break}else{var l=Mt.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=Pt(r)}var u=null;if(!Mt.isWindow(t)&&9!==t.nodeType){u=t.style.position;var c=Mt.css(t,"position");"absolute"===c&&(t.style.position="fixed")}var h=Mt.getWindowScrollLeft(o),d=Mt.getWindowScrollTop(o),p=Mt.viewportWidth(o),f=Mt.viewportHeight(o),g=s.scrollWidth,v=s.scrollHeight,m=window.getComputedStyle(a);if("hidden"===m.overflowX&&(g=o.innerWidth),"hidden"===m.overflowY&&(v=o.innerHeight),t.style&&(t.style.position=u),e||$t(t))n.left=Math.max(n.left,h),n.top=Math.max(n.top,d),n.right=Math.min(n.right,h+p),n.bottom=Math.min(n.bottom,d+f);else{var y=Math.max(g,h+p);n.right=Math.min(n.right,y);var b=Math.max(v,d+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 Rt(t,e,n,r){var i=Mt.clone(t),o={width:e.width,height:e.height};return r.adjustX&&i.left<n.left&&(i.left=n.left),r.resizeWidth&&i.left>=n.left&&i.left+o.width>n.right&&(o.width-=i.left+o.width-n.right),r.adjustX&&i.left+o.width>n.right&&(i.left=Math.max(n.right-o.width,n.left)),r.adjustY&&i.top<n.top&&(i.top=n.top),r.resizeHeight&&i.top>=n.top&&i.top+o.height>n.bottom&&(o.height-=i.top+o.height-n.bottom),r.adjustY&&i.top+o.height>n.bottom&&(i.top=Math.max(n.bottom-o.height,n.top)),Mt.mix(i,o)}function Dt(t){var e,n,r;if(Mt.isWindow(t)||9===t.nodeType){var i=Mt.getWindow(t);e={left:Mt.getWindowScrollLeft(i),top:Mt.getWindowScrollTop(i)},n=Mt.viewportWidth(i),r=Mt.viewportHeight(i)}else e=Mt.offset(t),n=Mt.outerWidth(t),r=Mt.outerHeight(t);return e.width=n,e.height=r,e}function Lt(t,e){var n=e.charAt(0),r=e.charAt(1),i=t.width,o=t.height,a=t.left,s=t.top;return"c"===n?s+=o/2:"b"===n&&(s+=o),"c"===r?a+=i/2:"r"===r&&(a+=i),{left:a,top:s}}function Nt(t,e,n,r,i){var o=Lt(e,n[1]),a=Lt(t,n[0]),s=[a.left-o.left,a.top-o.top];return{left:Math.round(t.left-s[0]+r[0]-i[0]),top:Math.round(t.top-s[1]+r[1]-i[1])}}function zt(t,e,n){return t.left<n.left||t.left+e.width>n.right}function Bt(t,e,n){return t.top<n.top||t.top+e.height>n.bottom}function Ft(t,e,n){return t.left>n.right||t.left+e.width<n.left}function Wt(t,e,n){return t.top>n.bottom||t.top+e.height<n.top}function jt(t,e,n){var r=[];return Mt.each(t,(function(t){r.push(t.replace(e,(function(t){return n[t]})))})),r}function Vt(t,e){return t[e]=-t[e],t}function Qt(t,e){var n;return n=/%$/.test(t)?parseInt(t.substring(0,t.length-1),10)/100*e:parseInt(t,10),n||0}function Ht(t,e){t[0]=Qt(t[0],e.width),t[1]=Qt(t[1],e.height)}function Zt(t,e,n,r){var i=n.points,o=n.offset||[0,0],a=n.targetOffset||[0,0],s=n.overflow,l=n.source||t;o=[].concat(o),a=[].concat(a),s=s||{};var u={},c=0,h=!(!s||!s.alwaysByViewport),d=Et(l,h),p=Dt(l);Ht(o,p),Ht(a,e);var f=Nt(p,e,i,o,a),g=Mt.merge(p,f);if(d&&(s.adjustX||s.adjustY)&&r){if(s.adjustX&&zt(f,p,d)){var v=jt(i,/[lr]/gi,{l:"r",r:"l"}),m=Vt(o,0),y=Vt(a,0),b=Nt(p,e,v,m,y);Ft(b,p,d)||(c=1,i=v,o=m,a=y)}if(s.adjustY&&Bt(f,p,d)){var _=jt(i,/[tb]/gi,{t:"b",b:"t"}),x=Vt(o,1),w=Vt(a,1),O=Nt(p,e,_,x,w);Wt(O,p,d)||(c=1,i=_,o=x,a=w)}c&&(f=Nt(p,e,i,o,a),Mt.mix(g,f));var S=zt(f,p,d),A=Bt(f,p,d);if(S||A){var k=i;S&&(k=jt(i,/[lr]/gi,{l:"r",r:"l"})),A&&(k=jt(i,/[tb]/gi,{t:"b",b:"t"})),i=k,o=n.offset||[0,0],a=n.targetOffset||[0,0]}u.adjustX=s.adjustX&&S,u.adjustY=s.adjustY&&A,(u.adjustX||u.adjustY)&&(g=Rt(f,p,d,u))}return g.width!==p.width&&Mt.css(l,"width",Mt.width(l)+g.width-p.width),g.height!==p.height&&Mt.css(l,"height",Mt.height(l)+g.height-p.height),Mt.offset(l,{left:g.left,top:g.top},{useCssRight:n.useCssRight,useCssBottom:n.useCssBottom,useCssTransform:n.useCssTransform,ignoreShake:n.ignoreShake}),{points:i,offset:o,targetOffset:a,overflow:u}}function Gt(t,e){var n=Et(t,e),r=Dt(t);return!n||r.left+r.width<=n.left||r.top+r.height<=n.top||r.left>=n.right||r.top>=n.bottom}function Xt(t,e,n){var r=n.target||e,i=Dt(r),o=!Gt(r,n.overflow&&n.overflow.alwaysByViewport);return Zt(t,i,n,o)}function Ut(t,e,n){var r,i,o=Mt.getDocument(t),a=o.defaultView||o.parentWindow,s=Mt.getWindowScrollLeft(a),l=Mt.getWindowScrollTop(a),u=Mt.viewportWidth(a),c=Mt.viewportHeight(a);r="pageX"in e?e.pageX:s+e.clientX,i="pageY"in e?e.pageY:l+e.clientY;var h={left:r,top:i,width:0,height:0},d=r>=0&&r<=s+u&&i>=0&&i<=l+c,p=[n.points[0],"cc"];return Zt(t,h,P(P({},n),{},{points:p}),d)}Xt.__getOffsetParent=Pt,Xt.__getVisibleRectForElement=Et;var Yt=n(87051),qt=n(27987),Kt=n(18667);function Jt(t,e){return t===e||!(!t||!e)&&("pageX"in e&&"pageY"in e?t.pageX===e.pageX&&t.pageY===e.pageY:"clientX"in e&&"clientY"in e&&(t.clientX===e.clientX&&t.clientY===e.clientY))}function te(t,e){t!==document.activeElement&&(0,h.A)(e,t)&&"function"===typeof t.focus&&t.focus()}function ee(t,e){let n=null,r=null;function i(t){let[{target:i}]=t;if(!document.documentElement.contains(i))return;const{width:o,height:a}=i.getBoundingClientRect(),s=Math.floor(o),l=Math.floor(a);n===s&&r===l||Promise.resolve().then((()=>{e({width:s,height:l})})),n=s,r=l}const o=new Kt.A(i);return t&&o.observe(t),()=>{o.disconnect()}}var ne=(t,e)=>{let n=!1,r=null;function i(){clearTimeout(r)}function o(a){if(n&&!0!==a)i(),r=setTimeout((()=>{n=!1,o()}),e.value);else{if(!1===t())return;n=!0,i(),r=setTimeout((()=>{n=!1}),e.value)}}return[o,()=>{n=!1,i()}]},re=n(71415);const ie={align:Object,target:[Object,Function],onAlign:Function,monitorBufferTime:Number,monitorWindowResize:Boolean,disabled:Boolean};function oe(t){return"function"!==typeof t?null:t()}function ae(t){return"object"===typeof t&&t?t:null}var se=(0,i.pM)({compatConfig:{MODE:3},name:"Align",props:ie,emits:["align"],setup(t,e){let{expose:n,slots:r}=e;const a=(0,o.KR)({}),s=(0,o.KR)(),[l,u]=ne((()=>{const{disabled:e,target:n,align:r,onAlign:i}=t;if(!e&&n&&s.value){const t=s.value;let e;const o=oe(n),l=ae(n);a.value.element=o,a.value.point=l,a.value.align=r;const{activeElement:u}=document;return o&&(0,qt.A)(o)?e=Xt(t,o,r):l&&(e=Ut(t,l,r)),te(u,t),i&&e&&i(t,e),!0}return!1}),(0,i.EW)((()=>t.monitorBufferTime))),c=(0,o.KR)({cancel:()=>{}}),h=(0,o.KR)({cancel:()=>{}}),d=()=>{const e=t.target,n=oe(e),r=ae(e);s.value!==h.value.element&&(h.value.cancel(),h.value.element=s.value,h.value.cancel=ee(s.value,l)),a.value.element===n&&Jt(a.value.point,r)&&(0,re.A)(a.value.align,t.align)||(l(),c.value.element!==n&&(c.value.cancel(),c.value.element=n,c.value.cancel=ee(n,l)))};(0,i.sV)((()=>{(0,i.dY)((()=>{d()}))})),(0,i.$u)((()=>{(0,i.dY)((()=>{d()}))})),(0,i.wB)((()=>t.disabled),(t=>{t?u():l()}),{immediate:!0,flush:"post"});const p=(0,o.KR)(null);return(0,i.wB)((()=>t.monitorWindowResize),(t=>{t?p.value||(p.value=(0,f.A)(window,"resize",l)):p.value&&(p.value.remove(),p.value=null)}),{flush:"post"}),(0,i.hi)((()=>{c.value.cancel(),h.value.cancel(),p.value&&p.value.remove(),u()})),n({forceAlign:()=>l(!0)}),()=>{const t=null===r||void 0===r?void 0:r.default();return t?(0,Yt.Ob)(t[0],{ref:s},!0,!0):null}}}),le=n(41038),ue=n(36476),ce=(0,i.pM)({compatConfig:{MODE:3},name:"PopupInner",inheritAttrs:!1,props:v,emits:["mouseenter","mouseleave","mousedown","touchstart","align"],setup(t,e){let{expose:n,attrs:a,slots:s}=e;const l=(0,o.IJ)(),u=(0,o.IJ)(),c=(0,o.IJ)(),[h,d]=M((0,o.lW)(t,"stretch")),f=()=>{t.stretch&&d(t.getRootDomNode())},v=(0,o.IJ)(!1);let m;(0,i.wB)((()=>t.visible),(e=>{clearTimeout(m),e?m=setTimeout((()=>{v.value=t.visible})):v.value=!1}),{immediate:!0});const[y,x]=C(v,f),O=(0,o.IJ)(),S=()=>t.point?t.point:t.getRootDomNode,A=()=>{var t;null===(t=l.value)||void 0===t||t.forceAlign()},k=(e,n)=>{var r;const i=t.getClassNameFromAlign(n),o=c.value;c.value!==i&&(c.value=i),"align"===y.value&&(o!==i?Promise.resolve().then((()=>{A()})):x((()=>{var t;null===(t=O.value)||void 0===t||t.call(O)})),null===(r=t.onAlign)||void 0===r||r.call(t,e,n))},T=(0,i.EW)((()=>{const e="object"===typeof t.animation?t.animation:(0,_.V)(t);return["onAfterEnter","onAfterLeave"].forEach((t=>{const n=e[t];e[t]=t=>{x(),y.value="stable",null===n||void 0===n||n(t)}})),e})),P=()=>new Promise((t=>{O.value=t}));(0,i.wB)([T,y],(()=>{T.value||"motion"!==y.value||x()}),{immediate:!0}),n({forceAlign:A,getElement:()=>u.value.$el||u.value});const I=(0,i.EW)((()=>{var e;return!(null===(e=t.align)||void 0===e?void 0:e.points)||"align"!==y.value&&"stable"!==y.value}));return()=>{var e;const{zIndex:n,align:o,prefixCls:d,destroyPopupOnHide:f,onMouseenter:m,onMouseleave:_,onTouchstart:x=(()=>{}),onMousedown:O}=t,A=y.value,C=[(0,r.A)((0,r.A)({},h.value),{zIndex:n,opacity:"motion"!==A&&"stable"!==A&&v.value?0:null,pointerEvents:v.value||"stable"===A?null:"none"}),a.style];let M=(0,p.MI)(null===(e=s.default)||void 0===e?void 0:e.call(s,{visible:t.visible}));if(M.length>1){(function(){})();M=(0,i.bF)("div",{class:`${d}-content`},[M])}const $=(0,w.A)(d,a.class,c.value,!t.arrow&&`${d}-arrow-hidden`),E=v.value||!t.visible,R=E?(0,le.ce)(T.value.name,T.value):{};return(0,i.bF)(b.eB,(0,g.A)((0,g.A)({ref:u},R),{},{onBeforeEnter:P}),{default:()=>!f||t.visible?(0,i.bo)((0,i.bF)(se,{target:S(),key:"popup",ref:l,monitorWindowResize:!0,disabled:I.value,align:o,onAlign:k},{default:()=>(0,i.bF)("div",{class:$,onMouseenter:m,onMouseleave:_,onMousedown:(0,b.D$)(O,["capture"]),[ue.A?"onTouchstartPassive":"onTouchstart"]:(0,b.D$)(x,["capture"]),style:C},[M])}),[[b.aG,v.value]]):null})}}}),he=(0,i.pM)({compatConfig:{MODE:3},name:"Popup",inheritAttrs:!1,props:y,setup(t,e){let{attrs:n,slots:a,expose:s}=e;const l=(0,o.IJ)(!1),u=(0,o.IJ)(!1),c=(0,o.IJ)(),h=(0,o.IJ)();return(0,i.wB)([()=>t.visible,()=>t.mobile],(()=>{l.value=t.visible,t.visible&&t.mobile&&(u.value=!0)}),{immediate:!0,flush:"post"}),s({forceAlign:()=>{var t;null===(t=c.value)||void 0===t||t.forceAlign()},getElement:()=>{var t;return null===(t=c.value)||void 0===t?void 0:t.getElement()}}),()=>{const e=(0,r.A)((0,r.A)((0,r.A)({},t),n),{visible:l.value}),o=u.value?(0,i.bF)(O,(0,g.A)((0,g.A)({},e),{},{mobile:t.mobile,ref:c}),{default:a.default}):(0,i.bF)(ce,(0,g.A)((0,g.A)({},e),{},{ref:c}),{default:a.default});return(0,i.bF)("div",{ref:h},[(0,i.bF)(x,e,null),o])}}});function de(t,e,n){return n?t[0]===e[0]:t[0]===e[0]&&t[1]===e[1]}function pe(t,e,n){const i=t[e]||{};return(0,r.A)((0,r.A)({},i),n)}function fe(t,e,n,r){const{points:i}=n,o=Object.keys(t);for(let a=0;a<o.length;a+=1){const n=o[a];if(de(t[n].points,i,r))return`${e}-placement-${n}`}return""}var ge=n(207),ve=n(5956),me=n(42845);const ye=["onClick","onMousedown","onTouchstart","onMouseenter","onMouseleave","onFocus","onBlur","onContextmenu"];var be=(0,i.pM)({compatConfig:{MODE:3},name:"Trigger",mixins:[ge.A],inheritAttrs:!1,props:c(),setup(t){const e=(0,i.EW)((()=>{const{popupPlacement:e,popupAlign:n,builtinPlacements:r}=t;return e&&r?pe(r,e,n):n})),n=(0,o.IJ)(null),r=t=>{n.value=t};return{vcTriggerContext:(0,i.WQ)("vcTriggerContext",{}),popupRef:n,setPopupRef:r,triggerRef:(0,o.IJ)(null),align:e,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 t=this.$props;let e;return e=void 0!==this.popupVisible?!!t.popupVisible:!!t.defaultPopupVisible,ye.forEach((t=>{this[`fire${t}`]=e=>{this.fireEvents(t,e)}})),{prevPopupVisible:e,sPopupVisible:e,point:null}},watch:{popupVisible(t){void 0!==t&&(this.prevPopupVisible=this.sPopupVisible,this.sPopupVisible=t)}},created(){(0,i.Gt)("vcTriggerContext",{onPopupMouseDown:this.onPopupMouseDown,onPopupMouseenter:this.onPopupMouseenter,onPopupMouseleave:this.onPopupMouseleave}),(0,me.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 t=this.$props,e=this.$data;if(e.sPopupVisible){let e;this.clickOutsideHandler||!this.isClickToHide()&&!this.isContextmenuToShow()||(e=t.getDocument(this.getRootDomNode()),this.clickOutsideHandler=(0,f.A)(e,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(e=e||t.getDocument(this.getRootDomNode()),this.touchOutsideHandler=(0,f.A)(e,"touchstart",this.onDocumentClick,!!ue.A&&{passive:!1})),!this.contextmenuOutsideHandler1&&this.isContextmenuToShow()&&(e=e||t.getDocument(this.getRootDomNode()),this.contextmenuOutsideHandler1=(0,f.A)(e,"scroll",this.onContextmenuClose)),!this.contextmenuOutsideHandler2&&this.isContextmenuToShow()&&(this.contextmenuOutsideHandler2=(0,f.A)(window,"blur",this.onContextmenuClose))}else this.clearOutsideHandler()},onMouseenter(t){const{mouseEnterDelay:e}=this.$props;this.fireEvents("onMouseenter",t),this.delaySetPopupVisible(!0,e,e?null:t)},onMouseMove(t){this.fireEvents("onMousemove",t),this.setPoint(t)},onMouseleave(t){this.fireEvents("onMouseleave",t),this.delaySetPopupVisible(!1,this.$props.mouseLeaveDelay)},onPopupMouseenter(){const{vcTriggerContext:t={}}=this;t.onPopupMouseenter&&t.onPopupMouseenter(),this.clearDelayTimer()},onPopupMouseleave(t){var e;if(t&&t.relatedTarget&&!t.relatedTarget.setTimeout&&(0,h.A)(null===(e=this.popupRef)||void 0===e?void 0:e.getElement(),t.relatedTarget))return;this.isMouseLeaveToHide()&&this.delaySetPopupVisible(!1,this.$props.mouseLeaveDelay);const{vcTriggerContext:n={}}=this;n.onPopupMouseleave&&n.onPopupMouseleave(t)},onFocus(t){this.fireEvents("onFocus",t),this.clearDelayTimer(),this.isFocusToShow()&&(this.focusTime=Date.now(),this.delaySetPopupVisible(!0,this.$props.focusDelay))},onMousedown(t){this.fireEvents("onMousedown",t),this.preClickTime=Date.now()},onTouchstart(t){this.fireEvents("onTouchstart",t),this.preTouchTime=Date.now()},onBlur(t){(0,h.A)(t.target,t.relatedTarget||document.activeElement)||(this.fireEvents("onBlur",t),this.clearDelayTimer(),this.isBlurToHide()&&this.delaySetPopupVisible(!1,this.$props.blurDelay))},onContextmenu(t){t.preventDefault(),this.fireEvents("onContextmenu",t),this.setPopupVisible(!0,t)},onContextmenuClose(){this.isContextmenuToShow()&&this.close()},onClick(t){if(this.fireEvents("onClick",t),this.focusTime){let t;if(this.preClickTime&&this.preTouchTime?t=Math.min(this.preClickTime,this.preTouchTime):this.preClickTime?t=this.preClickTime:this.preTouchTime&&(t=this.preTouchTime),Math.abs(t-this.focusTime)<20)return;this.focusTime=0}this.preClickTime=0,this.preTouchTime=0,this.isClickToShow()&&(this.isClickToHide()||this.isBlurToHide())&&t&&t.preventDefault&&t.preventDefault(),t&&t.domEvent&&t.domEvent.preventDefault();const e=!this.$data.sPopupVisible;(this.isClickToHide()&&!e||e&&this.isClickToShow())&&this.setPopupVisible(!this.$data.sPopupVisible,t)},onPopupMouseDown(){const{vcTriggerContext:t={}}=this;this.hasPopupMouseDown=!0,clearTimeout(this.mouseDownTimeout),this.mouseDownTimeout=setTimeout((()=>{this.hasPopupMouseDown=!1}),0),t.onPopupMouseDown&&t.onPopupMouseDown(...arguments)},onDocumentClick(t){if(this.$props.mask&&!this.$props.maskClosable)return;const e=t.target,n=this.getRootDomNode(),r=this.getPopupDomNode();(0,h.A)(n,e)&&!this.isContextMenuOnly()||(0,h.A)(r,e)||this.hasPopupMouseDown||this.delaySetPopupVisible(!1,.1)},getPopupDomNode(){var t;return(null===(t=this.popupRef)||void 0===t?void 0:t.getElement())||null},getRootDomNode(){var t,e,n,r;const{getTriggerDOMNode:i}=this.$props;if(i){const n="#comment"===(null===(e=null===(t=this.triggerRef)||void 0===t?void 0:t.$el)||void 0===e?void 0:e.nodeName)?null:(0,p.oK)(this.triggerRef);return(0,p.oK)(i(n))}try{const t="#comment"===(null===(r=null===(n=this.triggerRef)||void 0===n?void 0:n.$el)||void 0===r?void 0:r.nodeName)?null:(0,p.oK)(this.triggerRef);if(t)return t}catch(o){}return(0,p.oK)(this)},handleGetPopupClassFromAlign(t){const e=[],n=this.$props,{popupPlacement:r,builtinPlacements:i,prefixCls:o,alignPoint:a,getPopupClassNameFromAlign:s}=n;return r&&i&&e.push(fe(i,o,t,a)),s&&e.push(s(t)),e.join(" ")},getPopupAlign(){const t=this.$props,{popupPlacement:e,popupAlign:n,builtinPlacements:r}=t;return e&&r?pe(r,e,n):n},getComponent(){const t={};this.isMouseEnterToShow()&&(t.onMouseenter=this.onPopupMouseenter),this.isMouseLeaveToHide()&&(t.onMouseleave=this.onPopupMouseleave),t.onMousedown=this.onPopupMouseDown,t[ue.A?"onTouchstartPassive":"onTouchstart"]=this.onPopupMouseDown;const{handleGetPopupClassFromAlign:e,getRootDomNode:n,$attrs:o}=this,{prefixCls:a,destroyPopupOnHide:s,popupClassName:l,popupAnimation:c,popupTransitionName:h,popupStyle:d,mask:f,maskAnimation:g,maskTransitionName:v,zIndex:m,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:e,stretch:y,getRootDomNode:n,mask:f,zIndex:m,transitionName:h,maskAnimation:g,maskTransitionName:v,class:l,style:d,onAlign:o.onPopupAlign||u},t),{ref:this.setPopupRef,mobile:_,forceRender:w});return(0,i.bF)(he,A,{default:this.$slots.popup||(()=>(0,p.QQ)(this,"popup"))})},attachParent(t){d.A.cancel(this.attachId);const{getPopupContainer:e,getDocument:n}=this.$props,r=this.getRootDomNode();let i;e?(r||0===e.length)&&(i=e(r)):i=n(this.getRootDomNode()).body,i?i.appendChild(t):this.attachId=(0,d.A)((()=>{this.attachParent(t)}))},getContainer(){const{$props:t}=this,{getDocument:e}=t,n=e(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(t,e){const{alignPoint:n,sPopupVisible:r,onPopupVisibleChange:i}=this;this.clearDelayTimer(),r!==t&&((0,p.cK)(this,"popupVisible")||this.setState({sPopupVisible:t,prevPopupVisible:r}),i&&i(t)),n&&e&&t&&this.setPoint(e)},setPoint(t){const{alignPoint:e}=this.$props;e&&t&&this.setState({point:{pageX:t.pageX,pageY:t.pageY}})},handlePortalUpdate(){this.prevPopupVisible!==this.sPopupVisible&&this.afterPopupVisibleChange(this.sPopupVisible)},delaySetPopupVisible(t,e,n){const r=1e3*e;if(this.clearDelayTimer(),r){const e=n?{pageX:n.pageX,pageY:n.pageY}:null;this.delayTimer=setTimeout((()=>{this.setPopupVisible(t,e),this.clearDelayTimer()}),r)}else this.setPopupVisible(t,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(t){let e=()=>{};const n=(0,p.kQ)(this);return this.childOriginEvents[t]&&n[t]?this[`fire${t}`]:(e=this.childOriginEvents[t]||n[t]||e,e)},isClickToShow(){const{action:t,showAction:e}=this.$props;return-1!==t.indexOf("click")||-1!==e.indexOf("click")},isContextMenuOnly(){const{action:t}=this.$props;return"contextmenu"===t||1===t.length&&"contextmenu"===t[0]},isContextmenuToShow(){const{action:t,showAction:e}=this.$props;return-1!==t.indexOf("contextmenu")||-1!==e.indexOf("contextmenu")},isClickToHide(){const{action:t,hideAction:e}=this.$props;return-1!==t.indexOf("click")||-1!==e.indexOf("click")},isMouseEnterToShow(){const{action:t,showAction:e}=this.$props;return-1!==t.indexOf("hover")||-1!==e.indexOf("mouseenter")},isMouseLeaveToHide(){const{action:t,hideAction:e}=this.$props;return-1!==t.indexOf("hover")||-1!==e.indexOf("mouseleave")},isFocusToShow(){const{action:t,showAction:e}=this.$props;return-1!==t.indexOf("focus")||-1!==e.indexOf("focus")},isBlurToHide(){const{action:t,hideAction:e}=this.$props;return-1!==t.indexOf("focus")||-1!==e.indexOf("blur")},forcePopupAlign(){var t;this.$data.sPopupVisible&&(null===(t=this.popupRef)||void 0===t||t.forceAlign())},fireEvents(t,e){this.childOriginEvents[t]&&this.childOriginEvents[t](e);const n=this.$props[t]||this.$attrs[t];n&&n(e)},close(){this.setPopupVisible(!1)}},render(){const{$attrs:t}=this,e=(0,p.Gk)((0,p.$c)(this)),{alignPoint:n,getPopupContainer:o}=this.$props,a=e[0];this.childOriginEvents=(0,p.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[ue.A?"onTouchstartPassive":"onTouchstart"]=this.onTouchstart):(s.onClick=this.createTwoChains("onClick"),s.onMousedown=this.createTwoChains("onMousedown"),s[ue.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=t=>{!t||t.relatedTarget&&(0,h.A)(t.target,t.relatedTarget)||this.createTwoChains("onBlur")(t)});const l=(0,w.A)(a&&a.props&&a.props.class,t.class);l&&(s.class=l);const u=(0,Yt.Ob)(a,(0,r.A)((0,r.A)({},s),{ref:"triggerRef"}),!0,!0),c=(0,i.bF)(ve.A,{key:"portal",getContainer:o&&(()=>o(this.getRootDomNode())),didUpdate:this.handlePortalUpdate,visible:this.$data.sPopupVisible},{default:this.getComponent});return(0,i.bF)(i.FK,null,[u,c])}}),_e=be},1684:function(t,e,n){"use strict";function r(t){let{prefixCls:e,animation:n,transitionName:r}=t;return n?{name:`${e}-${n}`}:r?{name:r}:{}}n.d(e,{V:function(){return r}})},74220:function(t,e,n){"use strict";n.d(e,{A:function(){return i}});var r=n(36476);function i(t,e,n,i){if(t&&t.addEventListener){let o=i;void 0!==o||!r.A||"touchstart"!==e&&"touchmove"!==e&&"wheel"!==e||(o={passive:!1}),t.addEventListener(e,n,o)}return{remove:()=>{t&&t.removeEventListener&&t.removeEventListener(e,n)}}}},12648:function(t,e,n){"use strict";function r(t,e){return!!t&&(!!t.contains&&t.contains(e))}n.d(e,{A:function(){return r}})},59662:function(t,e,n){"use strict";n.d(e,{A3:function(){return i},XV:function(){return r},Xf:function(){return o}});function r(){const t=document.documentElement.clientWidth,e=window.innerHeight||document.documentElement.clientHeight;return{width:t,height:e}}function i(t){const e=t.getBoundingClientRect(),n=document.documentElement;return{left:e.left+(window.scrollX||n.scrollLeft)-(n.clientLeft||document.body.clientLeft||0),top:e.top+(window.scrollY||n.scrollTop)-(n.clientTop||document.body.clientTop||0)}}function o(t){return Object.keys(t).reduce(((e,n)=>{const r=t[n];return"undefined"===typeof r||null===r||(e+=`${n}: ${t[n]};`),e}),"")}},92337:function(t,e,n){"use strict";n.d(e,{BD:function(){return v},m6:function(){return f}});var r=n(58590),i=n(12648);const o="data-vc-order",a="vc-util-key",s=new Map;function l(){let{mark:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return t?t.startsWith("data-")?t:`data-${t}`:a}function u(t){if(t.attachTo)return t.attachTo;const e=document.querySelector("head");return e||document.body}function c(t){return"queue"===t?"prependQueue":t?"prepend":"append"}function h(t){return Array.from((s.get(t)||t).children).filter((t=>"STYLE"===t.tagName))}function d(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!(0,r.A)())return null;const{csp:n,prepend:i}=e,a=document.createElement("style");a.setAttribute(o,c(i)),(null===n||void 0===n?void 0:n.nonce)&&(a.nonce=null===n||void 0===n?void 0:n.nonce),a.innerHTML=t;const s=u(e),{firstChild:l}=s;if(i){if("queue"===i){const t=h(s).filter((t=>["prepend","prependQueue"].includes(t.getAttribute(o))));if(t.length)return s.insertBefore(a,t[t.length-1].nextSibling),a}s.insertBefore(a,l)}else s.appendChild(a);return a}function p(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=u(e);return h(n).find((n=>n.getAttribute(l(e))===t))}function f(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=p(t,e);if(n){const t=u(e);t.removeChild(n)}}function g(t,e){const n=s.get(t);if(!n||!(0,i.A)(document,n)){const n=d("",e),{parentNode:r}=n;s.set(t,r),t.removeChild(n)}}function v(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};var r,i,o;const a=u(n);g(a,n);const s=p(e,n);if(s)return(null===(r=n.csp)||void 0===r?void 0:r.nonce)&&s.nonce!==(null===(i=n.csp)||void 0===i?void 0:i.nonce)&&(s.nonce=null===(o=n.csp)||void 0===o?void 0:o.nonce),s.innerHTML!==t&&(s.innerHTML=t),s;const c=d(t,n);return c.setAttribute(l(n),e),c}},27987:function(t,e){"use strict";e.A=t=>{if(!t)return!1;if(t.offsetParent)return!0;if(t.getBBox){const e=t.getBBox();if(e.width||e.height)return!0}if(t.getBoundingClientRect){const e=t.getBoundingClientRect();if(e.width||e.height)return!0}return!1}},37205:function(t,e,n){"use strict";var r=n(52002);e.A=(t,e,n)=>{(0,r.Ay)(t,`[ant-design-vue: ${e}] ${n}`)}},72510:function(t,e){"use strict";e.A=()=>{if("undefined"===typeof navigator||"undefined"===typeof window)return!1;const t=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(t)||/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===t||void 0===t?void 0:t.substring(0,4))}},52002:function(t,e,n){"use strict";n.d(e,{$e:function(){return i}});let r={};function i(t,e){0}function o(t,e,n){e||r[n]||(t(!1,n),r[n]=!0)}function a(t,e){o(i,t,e)}e.Ay=a},41647:function(t,e,n){"use strict";var r,i;function o(t,e,n){var r=function(e,n){return t.js_beautify(e,n)};return r.js=t.js_beautify,r.css=e.css_beautify,r.html=n.html_beautify,r.js_beautify=t.js_beautify,r.css_beautify=e.css_beautify,r.html_beautify=n.html_beautify,r}r=[n(37590),n(23028),n(90598)],i=function(t,e,n){return o(t,e,n)}.apply(e,r),void 0===i||(t.exports=i)},23028:function(t,e,n){var r,i;n(30381),function(){var n;(function(){"use strict";var t=[,,function(t){function e(t){this.__parent=t,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(t,e){this.__cache=[""],this.__indent_size=t.indent_size,this.__indent_string=t.indent_char,t.indent_with_tabs||(this.__indent_string=new Array(t.indent_size+1).join(t.indent_char)),e=e||"",t.indent_level>0&&(e=new Array(t.indent_level+1).join(this.__indent_string)),this.__base_string=e,this.__base_string_length=e.length}function r(t,r){this.__indent_cache=new n(t,r),this.raw=!1,this._end_with_newline=t.end_with_newline,this.indent_size=t.indent_size,this.wrap_line_length=t.wrap_line_length,this.indent_empty_lines=t.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new e(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}e.prototype.clone_empty=function(){var t=new e(this.__parent);return t.set_indent(this.__indent_count,this.__alignment_count),t},e.prototype.item=function(t){return t<0?this.__items[this.__items.length+t]:this.__items[t]},e.prototype.has_match=function(t){for(var e=this.__items.length-1;e>=0;e--)if(this.__items[e].match(t))return!0;return!1},e.prototype.set_indent=function(t,e){this.is_empty()&&(this.__indent_count=t||0,this.__alignment_count=e||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},e.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)},e.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},e.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var t=this.__parent.current_line;return t.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),t.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),t.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count," "===t.__items[0]&&(t.__items.splice(0,1),t.__character_count-=1),!0}return!1},e.prototype.is_empty=function(){return 0===this.__items.length},e.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},e.prototype.push=function(t){this.__items.push(t);var e=t.lastIndexOf("\n");-1!==e?this.__character_count=t.length-e:this.__character_count+=t.length},e.prototype.pop=function(){var t=null;return this.is_empty()||(t=this.__items.pop(),this.__character_count-=t.length),t},e.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},e.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},e.prototype.trim=function(){while(" "===this.last())this.__items.pop(),this.__character_count-=1},e.prototype.toString=function(){var t="";return this.is_empty()?this.__parent.indent_empty_lines&&(t=this.__parent.get_indent_string(this.__indent_count)):(t=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),t+=this.__items.join("")),t},n.prototype.get_indent_size=function(t,e){var n=this.__base_string_length;return e=e||0,t<0&&(n=0),n+=t*this.__indent_size,n+=e,n},n.prototype.get_indent_string=function(t,e){var n=this.__base_string;return e=e||0,t<0&&(t=0,n=""),e+=t*this.__indent_size,this.__ensure_cache(e),n+=this.__cache[e],n},n.prototype.__ensure_cache=function(t){while(t>=this.__cache.length)this.__add_column()},n.prototype.__add_column=function(){var t=this.__cache.length,e=0,n="";this.__indent_size&&t>=this.__indent_size&&(e=Math.floor(t/this.__indent_size),t-=e*this.__indent_size,n=new Array(e+1).join(this.__indent_string)),t&&(n+=new Array(t+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(t,e){return this.__indent_cache.get_indent_string(t,e)},r.prototype.get_indent_size=function(t,e){return this.__indent_cache.get_indent_size(t,e)},r.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},r.prototype.add_new_line=function(t){return!(this.is_empty()||!t&&this.just_added_newline())&&(this.raw||this.__add_outputline(),!0)},r.prototype.get_code=function(t){this.trim(!0);var e=this.current_line.pop();e&&("\n"===e[e.length-1]&&(e=e.replace(/\n+$/g,"")),this.current_line.push(e)),this._end_with_newline&&this.__add_outputline();var n=this.__lines.join("\n");return"\n"!==t&&(n=n.replace(/[\n]/g,t)),n},r.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},r.prototype.set_indent=function(t,e){return t=t||0,e=e||0,this.next_line.set_indent(t,e),this.__lines.length>1?(this.current_line.set_indent(t,e),!0):(this.current_line.set_indent(),!1)},r.prototype.add_raw_token=function(t){for(var e=0;e<t.newlines;e++)this.__add_outputline();this.current_line.set_indent(-1),this.current_line.push(t.whitespace_before),this.current_line.push(t.text),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1},r.prototype.add_token=function(t){this.__add_space_before_token(),this.current_line.push(t),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(t){var e=this.__lines.length;while(t<e)this.__lines[t]._remove_indent(),t++;this.current_line._remove_wrap_indent()},r.prototype.trim=function(t){t=void 0!==t&&t,this.current_line.trim();while(t&&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(t,n){var r=this.__lines.length-2;while(r>=0){var i=this.__lines[r];if(i.is_empty())break;if(0!==i.item(0).indexOf(t)&&i.item(-1)!==n){this.__lines.splice(r+1,0,new e(this)),this.previous_line=this.__lines[this.__lines.length-2];break}r--}},t.exports.Output=r},,,,function(t){function e(t,e){this.raw_options=n(t,e),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(t,e){var n,i={};for(n in t=r(t),t)n!==e&&(i[n]=t[n]);if(e&&t[e])for(n in t[e])i[n]=t[e][n];return i}function r(t){var e,n={};for(e in t){var r=e.replace(/-/g,"_");n[r]=t[e]}return n}e.prototype._get_array=function(t,e){var n=this.raw_options[t],r=e||[];return"object"===typeof n?null!==n&&"function"===typeof n.concat&&(r=n.concat()):"string"===typeof n&&(r=n.split(/[^a-zA-Z0-9_\/\-]+/)),r},e.prototype._get_boolean=function(t,e){var n=this.raw_options[t],r=void 0===n?!!e:!!n;return r},e.prototype._get_characters=function(t,e){var n=this.raw_options[t],r=e||"";return"string"===typeof n&&(r=n.replace(/\\r/,"\r").replace(/\\n/,"\n").replace(/\\t/,"\t")),r},e.prototype._get_number=function(t,e){var n=this.raw_options[t];e=parseInt(e,10),isNaN(e)&&(e=0);var r=parseInt(n,10);return isNaN(r)&&(r=e),r},e.prototype._get_selection=function(t,e,n){var r=this._get_selection_list(t,e,n);if(1!==r.length)throw new Error("Invalid Option Value: The option '"+t+"' can only be one of the following values:\n"+e+"\nYou passed in: '"+this.raw_options[t]+"'");return r[0]},e.prototype._get_selection_list=function(t,e,n){if(!e||0===e.length)throw new Error("Selection list cannot be empty.");if(n=n||[e[0]],!this._is_valid_selection(n,e))throw new Error("Invalid Default Value!");var r=this._get_array(t,n);if(!this._is_valid_selection(r,e))throw new Error("Invalid Option Value: The option '"+t+"' can contain only the following values:\n"+e+"\nYou passed in: '"+this.raw_options[t]+"'");return r},e.prototype._is_valid_selection=function(t,e){return t.length&&e.length&&!t.some((function(t){return-1===e.indexOf(t)}))},t.exports.Options=e,t.exports.normalizeOpts=r,t.exports.mergeOpts=n},,function(t){var e=RegExp.prototype.hasOwnProperty("sticky");function n(t){this.__input=t||"",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 t=null;return this.hasNext()&&(t=this.__input.charAt(this.__position),this.__position+=1),t},n.prototype.peek=function(t){var e=null;return t=t||0,t+=this.__position,t>=0&&t<this.__input_length&&(e=this.__input.charAt(t)),e},n.prototype.__match=function(t,n){t.lastIndex=n;var r=t.exec(this.__input);return!r||e&&t.sticky||r.index!==n&&(r=null),r},n.prototype.test=function(t,e){return e=e||0,e+=this.__position,e>=0&&e<this.__input_length&&!!this.__match(t,e)},n.prototype.testChar=function(t,e){var n=this.peek(e);return t.lastIndex=0,null!==n&&t.test(n)},n.prototype.match=function(t){var e=this.__match(t,this.__position);return e?this.__position+=e[0].length:e=null,e},n.prototype.read=function(t,e,n){var r,i="";return t&&(r=this.match(t),r&&(i+=r[0])),!e||!r&&t||(i+=this.readUntil(e,n)),i},n.prototype.readUntil=function(t,e){var n="",r=this.__position;t.lastIndex=this.__position;var i=t.exec(this.__input);return i?(r=i.index,e&&(r+=i[0].length)):r=this.__input_length,n=this.__input.substring(this.__position,r),this.__position=r,n},n.prototype.readUntilAfter=function(t){return this.readUntil(t,!0)},n.prototype.get_regexp=function(t,n){var r=null,i="g";return n&&e&&(i="y"),"string"===typeof t&&""!==t?r=new RegExp(t,i):t&&(r=new RegExp(t.source,i)),r},n.prototype.get_literal_regexp=function(t){return RegExp(t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},n.prototype.peekUntilAfter=function(t){var e=this.__position,n=this.readUntilAfter(t);return this.__position=e,n},n.prototype.lookBack=function(t){var e=this.__position-1;return e>=t.length&&this.__input.substring(e-t.length,e).toLowerCase()===t},t.exports.InputScanner=n},,,,,function(t){function e(t,e){t="string"===typeof t?t:t.source,e="string"===typeof e?e:e.source,this.__directives_block_pattern=new RegExp(t+/ beautify( \w+[:]\w+)+ /.source+e,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(t+/\sbeautify\signore:end\s/.source+e,"g")}e.prototype.get_directives=function(t){if(!t.match(this.__directives_block_pattern))return null;var e={};this.__directive_pattern.lastIndex=0;var n=this.__directive_pattern.exec(t);while(n)e[n[1]]=n[2],n=this.__directive_pattern.exec(t);return e},e.prototype.readIgnored=function(t){return t.readUntilAfter(this.__directives_end_ignore_pattern)},t.exports.Directives=e},,function(t,e,n){var r=n(16).Beautifier,i=n(17).Options;function o(t,e){var n=new r(t,e);return n.beautify()}t.exports=o,t.exports.defaultOptions=function(){return new i}},function(t,e,n){var r=n(17).Options,i=n(2).Output,o=n(8).InputScanner,a=n(13).Directives,s=new a(/\/\*/,/\*\//),l=/\r\n|[\r\n]/,u=/\r\n|[\r\n]/g,c=/\s/,h=/(?:\s|\n)+/g,d=/\/\*(?:[\s\S]*?)((?:\*\/)|$)/g,p=/\/\/(?:[^\n\r\u2028\u2029]*)/g;function f(t,e){this._source_text=t||"",this._options=new r(e),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(t){var e="";this._ch=this._input.next();while(this._ch){if(e+=this._ch,"\\"===this._ch)e+=this._input.next();else if(-1!==t.indexOf(this._ch)||"\n"===this._ch)break;this._ch=this._input.next()}return e},f.prototype.eatWhitespace=function(t){var e=c.test(this._input.peek()),n=0;while(c.test(this._input.peek()))this._ch=this._input.next(),t&&"\n"===this._ch&&(0===n||n<this._options.max_preserve_newlines)&&(n++,this._output.add_new_line(!0));return e},f.prototype.foundNestedPseudoClass=function(){var t=0,e=1,n=this._input.peek(e);while(n){if("{"===n)return!0;if("("===n)t+=1;else if(")"===n){if(0===t)return!1;t-=1}else if(";"===n||"}"===n)return!1;e++,n=this._input.peek(e)}return!1},f.prototype.print_string=function(t){this._output.set_indent(this._indentLevel),this._output.non_breaking_space=!0,this._output.add_token(t)},f.prototype.preserveSingleSpace=function(t){t&&(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 t=this._source_text,e=this._options.eol;"auto"===e&&(e="\n",t&&l.test(t||"")&&(e=t.match(l)[0])),t=t.replace(u,"\n");var n=t.match(/^[\t ]*/)[0];this._output=new i(this._options,n),this._input=new o(t),this._indentLevel=0,this._nestedLevel=0,this._ch=null;var r,a,f,g=0,v=!1,m=!1,y=!1,b=!1,_=!1,x=this._ch,w=!1;while(1){if(r=this._input.read(h),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(d),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(":")&&(m=!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(":")?(m=!0,this.indent()):k in this.NESTED_AT_RULE?(this._nestedLevel+=1,k in this.CONDITIONAL_GROUP_RULE&&(y=!0)):0!==g||m||(b=!0)}else if("#"===this._ch&&"{"===this._input.peek())this.preserveSingleSpace(a),this.print_string(this._ch+this.eatString("}"));else if("{"===this._ch)m&&(m=!1,this.outdent()),b=!1,y?(y=!1,v=this._indentLevel>=this._nestedLevel):v=this._indentLevel>=this._nestedLevel-1,this._options.newline_between_rules&&v&&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),m&&(this.outdent(),m=!1),this.print_string(this._ch),v=!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}!v&&!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(":"),m||(m=!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?(m&&(this.outdent(),m=!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),m&&"$"===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||m&&!_||0!==g||b?this._output.space_before_token=!0:this._output.add_new_line();else if(">"!==this._ch&&"+"!==this._ch&&"~"!==this._ch||m||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(e);return I},t.exports.Beautifier=f},function(t,e,n){var r=n(6).Options;function i(t){r.call(this,t,"css"),this.selector_separator_newline=this._get_boolean("selector_separator_newline",!0),this.newline_between_rules=this._get_boolean("newline_between_rules",!0);var e=this._get_boolean("space_around_selector_separator");this.space_around_combinator=this._get_boolean("space_around_combinator")||e;var n=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_style="collapse";for(var i=0;i<n.length;i++)"expand"!==n[i]?this.brace_style="collapse":this.brace_style=n[i]}i.prototype=new r,t.exports.Options=i}],e={};function r(n){var i=e[n];if(void 0!==i)return i.exports;var o=e[n]={exports:{}};return t[n](o,o.exports,r),o.exports}var i=r(15);n=i})();var o=n;r=[],i=function(){return{css_beautify:o}}.apply(e,r),void 0===i||(t.exports=i)}()},90598:function(t,e,n){var r,i;n(30381),function(){var o;(function(){"use strict";var t=[,,function(t){function e(t){this.__parent=t,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(t,e){this.__cache=[""],this.__indent_size=t.indent_size,this.__indent_string=t.indent_char,t.indent_with_tabs||(this.__indent_string=new Array(t.indent_size+1).join(t.indent_char)),e=e||"",t.indent_level>0&&(e=new Array(t.indent_level+1).join(this.__indent_string)),this.__base_string=e,this.__base_string_length=e.length}function r(t,r){this.__indent_cache=new n(t,r),this.raw=!1,this._end_with_newline=t.end_with_newline,this.indent_size=t.indent_size,this.wrap_line_length=t.wrap_line_length,this.indent_empty_lines=t.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new e(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}e.prototype.clone_empty=function(){var t=new e(this.__parent);return t.set_indent(this.__indent_count,this.__alignment_count),t},e.prototype.item=function(t){return t<0?this.__items[this.__items.length+t]:this.__items[t]},e.prototype.has_match=function(t){for(var e=this.__items.length-1;e>=0;e--)if(this.__items[e].match(t))return!0;return!1},e.prototype.set_indent=function(t,e){this.is_empty()&&(this.__indent_count=t||0,this.__alignment_count=e||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},e.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)},e.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},e.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var t=this.__parent.current_line;return t.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),t.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),t.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count," "===t.__items[0]&&(t.__items.splice(0,1),t.__character_count-=1),!0}return!1},e.prototype.is_empty=function(){return 0===this.__items.length},e.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},e.prototype.push=function(t){this.__items.push(t);var e=t.lastIndexOf("\n");-1!==e?this.__character_count=t.length-e:this.__character_count+=t.length},e.prototype.pop=function(){var t=null;return this.is_empty()||(t=this.__items.pop(),this.__character_count-=t.length),t},e.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},e.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},e.prototype.trim=function(){while(" "===this.last())this.__items.pop(),this.__character_count-=1},e.prototype.toString=function(){var t="";return this.is_empty()?this.__parent.indent_empty_lines&&(t=this.__parent.get_indent_string(this.__indent_count)):(t=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),t+=this.__items.join("")),t},n.prototype.get_indent_size=function(t,e){var n=this.__base_string_length;return e=e||0,t<0&&(n=0),n+=t*this.__indent_size,n+=e,n},n.prototype.get_indent_string=function(t,e){var n=this.__base_string;return e=e||0,t<0&&(t=0,n=""),e+=t*this.__indent_size,this.__ensure_cache(e),n+=this.__cache[e],n},n.prototype.__ensure_cache=function(t){while(t>=this.__cache.length)this.__add_column()},n.prototype.__add_column=function(){var t=this.__cache.length,e=0,n="";this.__indent_size&&t>=this.__indent_size&&(e=Math.floor(t/this.__indent_size),t-=e*this.__indent_size,n=new Array(e+1).join(this.__indent_string)),t&&(n+=new Array(t+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(t,e){return this.__indent_cache.get_indent_string(t,e)},r.prototype.get_indent_size=function(t,e){return this.__indent_cache.get_indent_size(t,e)},r.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},r.prototype.add_new_line=function(t){return!(this.is_empty()||!t&&this.just_added_newline())&&(this.raw||this.__add_outputline(),!0)},r.prototype.get_code=function(t){this.trim(!0);var e=this.current_line.pop();e&&("\n"===e[e.length-1]&&(e=e.replace(/\n+$/g,"")),this.current_line.push(e)),this._end_with_newline&&this.__add_outputline();var n=this.__lines.join("\n");return"\n"!==t&&(n=n.replace(/[\n]/g,t)),n},r.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},r.prototype.set_indent=function(t,e){return t=t||0,e=e||0,this.next_line.set_indent(t,e),this.__lines.length>1?(this.current_line.set_indent(t,e),!0):(this.current_line.set_indent(),!1)},r.prototype.add_raw_token=function(t){for(var e=0;e<t.newlines;e++)this.__add_outputline();this.current_line.set_indent(-1),this.current_line.push(t.whitespace_before),this.current_line.push(t.text),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1},r.prototype.add_token=function(t){this.__add_space_before_token(),this.current_line.push(t),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(t){var e=this.__lines.length;while(t<e)this.__lines[t]._remove_indent(),t++;this.current_line._remove_wrap_indent()},r.prototype.trim=function(t){t=void 0!==t&&t,this.current_line.trim();while(t&&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(t,n){var r=this.__lines.length-2;while(r>=0){var i=this.__lines[r];if(i.is_empty())break;if(0!==i.item(0).indexOf(t)&&i.item(-1)!==n){this.__lines.splice(r+1,0,new e(this)),this.previous_line=this.__lines[this.__lines.length-2];break}r--}},t.exports.Output=r},function(t){function e(t,e,n,r){this.type=t,this.text=e,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}t.exports.Token=e},,,function(t){function e(t,e){this.raw_options=n(t,e),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(t,e){var n,i={};for(n in t=r(t),t)n!==e&&(i[n]=t[n]);if(e&&t[e])for(n in t[e])i[n]=t[e][n];return i}function r(t){var e,n={};for(e in t){var r=e.replace(/-/g,"_");n[r]=t[e]}return n}e.prototype._get_array=function(t,e){var n=this.raw_options[t],r=e||[];return"object"===typeof n?null!==n&&"function"===typeof n.concat&&(r=n.concat()):"string"===typeof n&&(r=n.split(/[^a-zA-Z0-9_\/\-]+/)),r},e.prototype._get_boolean=function(t,e){var n=this.raw_options[t],r=void 0===n?!!e:!!n;return r},e.prototype._get_characters=function(t,e){var n=this.raw_options[t],r=e||"";return"string"===typeof n&&(r=n.replace(/\\r/,"\r").replace(/\\n/,"\n").replace(/\\t/,"\t")),r},e.prototype._get_number=function(t,e){var n=this.raw_options[t];e=parseInt(e,10),isNaN(e)&&(e=0);var r=parseInt(n,10);return isNaN(r)&&(r=e),r},e.prototype._get_selection=function(t,e,n){var r=this._get_selection_list(t,e,n);if(1!==r.length)throw new Error("Invalid Option Value: The option '"+t+"' can only be one of the following values:\n"+e+"\nYou passed in: '"+this.raw_options[t]+"'");return r[0]},e.prototype._get_selection_list=function(t,e,n){if(!e||0===e.length)throw new Error("Selection list cannot be empty.");if(n=n||[e[0]],!this._is_valid_selection(n,e))throw new Error("Invalid Default Value!");var r=this._get_array(t,n);if(!this._is_valid_selection(r,e))throw new Error("Invalid Option Value: The option '"+t+"' can contain only the following values:\n"+e+"\nYou passed in: '"+this.raw_options[t]+"'");return r},e.prototype._is_valid_selection=function(t,e){return t.length&&e.length&&!t.some((function(t){return-1===e.indexOf(t)}))},t.exports.Options=e,t.exports.normalizeOpts=r,t.exports.mergeOpts=n},,function(t){var e=RegExp.prototype.hasOwnProperty("sticky");function n(t){this.__input=t||"",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 t=null;return this.hasNext()&&(t=this.__input.charAt(this.__position),this.__position+=1),t},n.prototype.peek=function(t){var e=null;return t=t||0,t+=this.__position,t>=0&&t<this.__input_length&&(e=this.__input.charAt(t)),e},n.prototype.__match=function(t,n){t.lastIndex=n;var r=t.exec(this.__input);return!r||e&&t.sticky||r.index!==n&&(r=null),r},n.prototype.test=function(t,e){return e=e||0,e+=this.__position,e>=0&&e<this.__input_length&&!!this.__match(t,e)},n.prototype.testChar=function(t,e){var n=this.peek(e);return t.lastIndex=0,null!==n&&t.test(n)},n.prototype.match=function(t){var e=this.__match(t,this.__position);return e?this.__position+=e[0].length:e=null,e},n.prototype.read=function(t,e,n){var r,i="";return t&&(r=this.match(t),r&&(i+=r[0])),!e||!r&&t||(i+=this.readUntil(e,n)),i},n.prototype.readUntil=function(t,e){var n="",r=this.__position;t.lastIndex=this.__position;var i=t.exec(this.__input);return i?(r=i.index,e&&(r+=i[0].length)):r=this.__input_length,n=this.__input.substring(this.__position,r),this.__position=r,n},n.prototype.readUntilAfter=function(t){return this.readUntil(t,!0)},n.prototype.get_regexp=function(t,n){var r=null,i="g";return n&&e&&(i="y"),"string"===typeof t&&""!==t?r=new RegExp(t,i):t&&(r=new RegExp(t.source,i)),r},n.prototype.get_literal_regexp=function(t){return RegExp(t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},n.prototype.peekUntilAfter=function(t){var e=this.__position,n=this.readUntilAfter(t);return this.__position=e,n},n.prototype.lookBack=function(t){var e=this.__position-1;return e>=t.length&&this.__input.substring(e-t.length,e).toLowerCase()===t},t.exports.InputScanner=n},function(t,e,n){var r=n(8).InputScanner,i=n(3).Token,o=n(10).TokenStream,a=n(11).WhitespacePattern,s={START:"TK_START",RAW:"TK_RAW",EOF:"TK_EOF"},l=function(t,e){this._input=new r(t),this._options=e||{},this.__tokens=null,this._patterns={},this._patterns.whitespace=new a(this._input)};l.prototype.tokenize=function(){var t;this._input.restart(),this.__tokens=new o,this._reset();var e=new i(s.START,""),n=null,r=[],a=new o;while(e.type!==s.EOF){t=this._get_next_token(e,n);while(this._is_comment(t))a.add(t),t=this._get_next_token(e,n);a.isEmpty()||(t.comments_before=a,a=new o),t.parent=n,this._is_opening(t)?(r.push(n),n=t):n&&this._is_closing(t,n)&&(t.opened=n,n.closed=t,n=r.pop(),t.parent=n),t.previous=e,e.next=t,this.__tokens.add(t),e=t}return this.__tokens},l.prototype._is_first_token=function(){return this.__tokens.isEmpty()},l.prototype._reset=function(){},l.prototype._get_next_token=function(t,e){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(t){return!1},l.prototype._is_opening=function(t){return!1},l.prototype._is_closing=function(t,e){return!1},l.prototype._create_token=function(t,e){var n=new i(t,e,this._patterns.whitespace.newline_count,this._patterns.whitespace.whitespace_before_token);return n},l.prototype._readWhitespace=function(){return this._patterns.whitespace.read()},t.exports.Tokenizer=l,t.exports.TOKEN=s},function(t){function e(t){this.__tokens=[],this.__tokens_length=this.__tokens.length,this.__position=0,this.__parent_token=t}e.prototype.restart=function(){this.__position=0},e.prototype.isEmpty=function(){return 0===this.__tokens_length},e.prototype.hasNext=function(){return this.__position<this.__tokens_length},e.prototype.next=function(){var t=null;return this.hasNext()&&(t=this.__tokens[this.__position],this.__position+=1),t},e.prototype.peek=function(t){var e=null;return t=t||0,t+=this.__position,t>=0&&t<this.__tokens_length&&(e=this.__tokens[t]),e},e.prototype.add=function(t){this.__parent_token&&(t.parent=this.__parent_token),this.__tokens.push(t),this.__tokens_length+=1},t.exports.TokenStream=e},function(t,e,n){var r=n(12).Pattern;function i(t,e){r.call(this,t,e),e?this._line_regexp=this._input.get_regexp(e._line_regexp):this.__set_whitespace_patterns("",""),this.newline_count=0,this.whitespace_before_token=""}i.prototype=new r,i.prototype.__set_whitespace_patterns=function(t,e){t+="\\t ",e+="\\n\\r",this._match_pattern=this._input.get_regexp("["+t+e+"]+",!0),this._newline_regexp=this._input.get_regexp("\\r\\n|["+e+"]")},i.prototype.read=function(){this.newline_count=0,this.whitespace_before_token="";var t=this._input.read(this._match_pattern);if(" "===t)this.whitespace_before_token=" ";else if(t){var e=this.__split(this._newline_regexp,t);this.newline_count=e.length-1,this.whitespace_before_token=e[this.newline_count]}return t},i.prototype.matching=function(t,e){var n=this._create();return n.__set_whitespace_patterns(t,e),n._update(),n},i.prototype._create=function(){return new i(this._input,this)},i.prototype.__split=function(t,e){t.lastIndex=0;var n=0,r=[],i=t.exec(e);while(i)r.push(e.substring(n,i.index)),n=i.index+i[0].length,i=t.exec(e);return n<e.length?r.push(e.substring(n,e.length)):r.push(""),r},t.exports.WhitespacePattern=i},function(t){function e(t,e){this._input=t,this._starting_pattern=null,this._match_pattern=null,this._until_pattern=null,this._until_after=!1,e&&(this._starting_pattern=this._input.get_regexp(e._starting_pattern,!0),this._match_pattern=this._input.get_regexp(e._match_pattern,!0),this._until_pattern=this._input.get_regexp(e._until_pattern),this._until_after=e._until_after)}e.prototype.read=function(){var t=this._input.read(this._starting_pattern);return this._starting_pattern&&!t||(t+=this._input.read(this._match_pattern,this._until_pattern,this._until_after)),t},e.prototype.read_match=function(){return this._input.match(this._match_pattern)},e.prototype.until_after=function(t){var e=this._create();return e._until_after=!0,e._until_pattern=this._input.get_regexp(t),e._update(),e},e.prototype.until=function(t){var e=this._create();return e._until_after=!1,e._until_pattern=this._input.get_regexp(t),e._update(),e},e.prototype.starting_with=function(t){var e=this._create();return e._starting_pattern=this._input.get_regexp(t,!0),e._update(),e},e.prototype.matching=function(t){var e=this._create();return e._match_pattern=this._input.get_regexp(t,!0),e._update(),e},e.prototype._create=function(){return new e(this._input,this)},e.prototype._update=function(){},t.exports.Pattern=e},function(t){function e(t,e){t="string"===typeof t?t:t.source,e="string"===typeof e?e:e.source,this.__directives_block_pattern=new RegExp(t+/ beautify( \w+[:]\w+)+ /.source+e,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(t+/\sbeautify\signore:end\s/.source+e,"g")}e.prototype.get_directives=function(t){if(!t.match(this.__directives_block_pattern))return null;var e={};this.__directive_pattern.lastIndex=0;var n=this.__directive_pattern.exec(t);while(n)e[n[1]]=n[2],n=this.__directive_pattern.exec(t);return e},e.prototype.readIgnored=function(t){return t.readUntilAfter(this.__directives_end_ignore_pattern)},t.exports.Directives=e},function(t,e,n){var r=n(12).Pattern,i={django:!1,erb:!1,handlebars:!1,php:!1,smarty:!1,angular:!1};function o(t,e){r.call(this,t,e),this.__template_pattern=null,this._disabled=Object.assign({},i),this._excluded=Object.assign({},i),e&&(this.__template_pattern=this._input.get_regexp(e.__template_pattern),this._excluded=Object.assign(this._excluded,e._excluded),this._disabled=Object.assign(this._disabled,e._disabled));var n=new r(t);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}/)}}o.prototype=new r,o.prototype._create=function(){return new o(this._input,this)},o.prototype._update=function(){this.__set_templated_pattern()},o.prototype.disable=function(t){var e=this._create();return e._disabled[t]=!0,e._update(),e},o.prototype.read_options=function(t){var e=this._create();for(var n in i)e._disabled[n]=-1===t.templating.indexOf(n);return e._update(),e},o.prototype.exclude=function(t){var e=this._create();return e._excluded[t]=!0,e._update(),e},o.prototype.read=function(){var t="";t=this._match_pattern?this._input.read(this._starting_pattern):this._input.read(this._starting_pattern,this.__template_pattern);var e=this._read_template();while(e)this._match_pattern?e+=this._input.read(this._match_pattern):e+=this._input.readUntil(this.__template_pattern),t+=e,e=this._read_template();return this._until_after&&(t+=this._input.readUntilAfter(this._until_pattern)),t},o.prototype.__set_templated_pattern=function(){var t=[];this._disabled.php||t.push(this.__patterns.php._starting_pattern.source),this._disabled.handlebars||t.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.erb||t.push(this.__patterns.erb._starting_pattern.source),this._disabled.django||(t.push(this.__patterns.django._starting_pattern.source),t.push(this.__patterns.django_value._starting_pattern.source),t.push(this.__patterns.django_comment._starting_pattern.source)),this._disabled.smarty||t.push(this.__patterns.smarty._starting_pattern.source),this._until_pattern&&t.push(this._until_pattern.source),this.__template_pattern=this._input.get_regexp("(?:"+t.join("|")+")")},o.prototype._read_template=function(){var t="",e=this._input.peek();if("<"===e){var n=this._input.peek(1);this._disabled.php||this._excluded.php||"?"!==n||(t=t||this.__patterns.php.read()),this._disabled.erb||this._excluded.erb||"%"!==n||(t=t||this.__patterns.erb.read())}else"{"===e&&(this._disabled.handlebars||this._excluded.handlebars||(t=t||this.__patterns.handlebars_comment.read(),t=t||this.__patterns.handlebars_unescaped.read(),t=t||this.__patterns.handlebars.read()),this._disabled.django||(this._excluded.django||this._excluded.handlebars||(t=t||this.__patterns.django_value.read()),this._excluded.django||(t=t||this.__patterns.django_comment.read(),t=t||this.__patterns.django.read())),this._disabled.smarty||this._disabled.django&&this._disabled.handlebars&&(t=t||this.__patterns.smarty_comment.read(),t=t||this.__patterns.smarty_literal.read(),t=t||this.__patterns.smarty.read()));return t},t.exports.TemplatablePattern=o},,,,function(t,e,n){var r=n(19).Beautifier,i=n(20).Options;function o(t,e,n,i){var o=new r(t,e,n,i);return o.beautify()}t.exports=o,t.exports.defaultOptions=function(){return new i}},function(t,e,n){var r=n(20).Options,i=n(2).Output,o=n(21).Tokenizer,a=n(21).TOKEN,s=/\r\n|[\r\n]/,l=/\r\n|[\r\n]/g,u=function(t,e){this.indent_level=0,this.alignment_size=0,this.max_preserve_newlines=t.max_preserve_newlines,this.preserve_newlines=t.preserve_newlines,this._output=new i(t,e)};u.prototype.current_line_has_match=function(t){return this._output.current_line.has_match(t)},u.prototype.set_space_before_token=function(t,e){this._output.space_before_token=t,this._output.non_breaking_space=e},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(t){this._output.add_raw_token(t)},u.prototype.print_preserved_newlines=function(t){var e=0;t.type!==a.TEXT&&t.previous.type!==a.TEXT&&(e=t.newlines?1:0),this.preserve_newlines&&(e=t.newlines<this.max_preserve_newlines+1?t.newlines:this.max_preserve_newlines+1);for(var n=0;n<e;n++)this.print_newline(n>0);return 0!==e},u.prototype.traverse_whitespace=function(t){return!(!t.whitespace_before&&!t.newlines)&&(this.print_preserved_newlines(t)||(this._output.space_before_token=!0),!0)},u.prototype.previous_token_wrapped=function(){return this._output.previous_token_wrapped},u.prototype.print_newline=function(t){this._output.add_new_line(t)},u.prototype.print_token=function(t){t.text&&(this._output.set_indent(this.indent_level,this.alignment_size),this._output.add_token(t.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(t){return t=this.indent_level+(t||0),t<1?"":this._output.get_indent_string(t)};var c=function(t){var e=null,n=t.next;while(n.type!==a.EOF&&t.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&&(e=n.next.next.text);break}n=n.next}return e},h=function(t,e){var n=null,r=null;return e.closed?("script"===t?n="text/javascript":"style"===t&&(n="text/css"),n=c(e)||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 d(t,e){return-1!==e.indexOf(t)}function p(t,e,n){this.parent=t||null,this.tag=e?e.tag_name:"",this.indent_level=n||0,this.parser_token=e||null}function f(t){this._printer=t,this._current_frame=null}function g(t,e,n,i){this._source_text=t||"",e=e||{},this._js_beautify=n,this._css_beautify=i,this._tag_stack=null;var o=new r(e,"html");this._options=o,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(t){var e=new p(this._current_frame,t,this._printer.indent_level);this._current_frame=e},f.prototype._try_pop_frame=function(t){var e=null;return t&&(e=t.parser_token,this._printer.indent_level=t.indent_level,this._current_frame=t.parent),e},f.prototype._get_frame=function(t,e){var n=this._current_frame;while(n){if(-1!==t.indexOf(n.tag))break;if(e&&-1!==e.indexOf(n.tag)){n=null;break}n=n.parent}return n},f.prototype.try_pop=function(t,e){var n=this._get_frame([t],e);return this._try_pop_frame(n)},f.prototype.indent_to_tag=function(t){var e=this._get_frame(t);e&&(this._printer.indent_level=e.indent_level)},g.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var t=this._source_text,e=this._options.eol;"auto"===this._options.eol&&(e="\n",t&&s.test(t)&&(e=t.match(s)[0])),t=t.replace(l,"\n");var n=t.match(/^[\t ]*/)[0],r={text:"",type:""},i=new v,c=new u(this._options,n),h=new o(t,this._options).tokenize();this._tag_stack=new f(c);var d=null,p=h.next();while(p.type!==a.EOF)p.type===a.TAG_OPEN||p.type===a.COMMENT?(d=this._handle_tag_open(c,p,i,r,h),i=d):p.type===a.ATTRIBUTE||p.type===a.EQUALS||p.type===a.VALUE||p.type===a.TEXT&&!i.tag_complete?d=this._handle_inside_tag(c,p,i,r):p.type===a.TAG_CLOSE?d=this._handle_tag_close(c,p,i):p.type===a.TEXT?d=this._handle_text(c,p,i):p.type===a.CONTROL_FLOW_OPEN?d=this._handle_control_flow_open(c,p):p.type===a.CONTROL_FLOW_CLOSE?d=this._handle_control_flow_close(c,p):c.add_raw_token(p),r=d,p=h.next();var g=c._output.get_code(e);return g},g.prototype._handle_control_flow_open=function(t,e){var n={text:e.text,type:e.type};return t.set_space_before_token(e.newlines||""!==e.whitespace_before,!0),e.newlines?t.print_preserved_newlines(e):t.set_space_before_token(e.newlines||""!==e.whitespace_before,!0),t.print_token(e),t.indent(),n},g.prototype._handle_control_flow_close=function(t,e){var n={text:e.text,type:e.type};return t.deindent(),e.newlines?t.print_preserved_newlines(e):t.set_space_before_token(e.newlines||""!==e.whitespace_before,!0),t.print_token(e),n},g.prototype._handle_tag_close=function(t,e,n){var r={text:e.text,type:e.type};return t.alignment_size=0,n.tag_complete=!0,t.set_space_before_token(e.newlines||""!==e.whitespace_before,!0),n.is_unformatted?t.add_raw_token(e):("<"===n.tag_start_char&&(t.set_space_before_token("/"===e.text[0],!0),this._is_wrap_attributes_force_expand_multiline&&n.has_wrapped_attrs&&t.print_newline(!1)),t.print_token(e)),!n.indent_content||n.is_unformatted||n.is_content_unformatted||(t.indent(),n.indent_content=!1),n.is_inline_element||n.is_unformatted||n.is_content_unformatted||t.set_wrap_point(),r},g.prototype._handle_inside_tag=function(t,e,n,r){var i=n.has_wrapped_attrs,o={text:e.text,type:e.type};return t.set_space_before_token(e.newlines||""!==e.whitespace_before,!0),n.is_unformatted?t.add_raw_token(e):"{"===n.tag_start_char&&e.type===a.TEXT?t.print_preserved_newlines(e)?(e.newlines=0,t.add_raw_token(e)):t.print_token(e):(e.type===a.ATTRIBUTE?t.set_space_before_token(!0):(e.type===a.EQUALS||e.type===a.VALUE&&e.previous.type===a.EQUALS)&&t.set_space_before_token(!1),e.type===a.ATTRIBUTE&&"<"===n.tag_start_char&&((this._is_wrap_attributes_preserve||this._is_wrap_attributes_preserve_aligned)&&(t.traverse_whitespace(e),i=i||0!==e.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)&&(t.print_newline(!1),i=!0)),t.print_token(e),i=i||t.previous_token_wrapped(),n.has_wrapped_attrs=i),o},g.prototype._handle_text=function(t,e,n){var r={text:e.text,type:"TK_CONTENT"};return n.custom_beautifier_name?this._print_custom_beatifier_text(t,e,n):n.is_unformatted||n.is_content_unformatted?t.add_raw_token(e):(t.traverse_whitespace(e),t.print_token(e)),r},g.prototype._print_custom_beatifier_text=function(t,e,n){var r=this;if(""!==e.text){var i,o=e.text,a=1,s="",l="";"javascript"===n.custom_beautifier_name&&"function"===typeof this._js_beautify?i=this._js_beautify:"css"===n.custom_beautifier_name&&"function"===typeof this._css_beautify?i=this._css_beautify:"html"===n.custom_beautifier_name&&(i=function(t,e){var n=new g(t,e,r._js_beautify,r._css_beautify);return n.beautify()}),"keep"===this._options.indent_scripts?a=0:"separate"===this._options.indent_scripts&&(a=-t.indent_level);var u=t.get_full_indent(a);if(o=o.replace(/\n[ \t]*$/,""),"html"!==n.custom_beautifier_name&&"<"===o[0]&&o.match(/^(<!--|<!\[CDATA\[)/)){var c=/^(<!--[^\n]*|<!\[CDATA\[)(\n?)([ \t\n]*)([\s\S]*)(-->|]]>)$/.exec(o);if(!c)return void t.add_raw_token(e);s=u+c[1]+"\n",o=c[4],c[5]&&(l=u+c[5]),o=o.replace(/\n[ \t]*$/,""),(c[2]||-1!==c[3].indexOf("\n"))&&(c=c[3].match(/[ \t]+$/),c&&(e.whitespace_before=c[0]))}if(o)if(i){var h=function(){this.eol="\n"};h.prototype=this._options.raw_options;var d=new h;o=i(u+o,d)}else{var p=e.whitespace_before;p&&(o=o.replace(new RegExp("\n("+p+")?","g"),"\n")),o=u+o.replace(/\n/g,"\n"+u)}s&&(o=o?s+o+"\n"+l:s+l),t.print_newline(!1),o&&(e.text=o,e.whitespace_before="",e.newlines=0,t.add_raw_token(e),t.print_newline(!0))}},g.prototype._handle_tag_open=function(t,e,n,r,i){var o=this._get_tag_open_token(e);if(!n.is_unformatted&&!n.is_content_unformatted||n.is_empty_element||e.type!==a.TAG_OPEN||o.is_start_tag?(t.traverse_whitespace(e),this._set_tag_position(t,e,o,n,r),o.is_inline_element||t.set_wrap_point(),t.print_token(e)):(t.add_raw_token(e),o.start_tag_token=this._tag_stack.try_pop(o.tag_name)),o.is_start_tag&&this._is_wrap_attributes_force){var s,l=0;do{s=i.peek(l),s.type===a.ATTRIBUTE&&(o.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)&&(o.alignment_size=e.text.length+1),o.tag_complete||o.is_unformatted||(t.alignment_size=o.alignment_size),o};var v=function(t,e){if(this.parent=t||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="",e){var n;this.tag_start_char=e.text[0],this.text=e.text,"<"===this.tag_start_char?(n=e.text.match(/^<([^\s>]*)/),this.tag_check=n?n[1]:""):(n=e.text.match(/^{{~?(?:[\^]|#\*?)?([^\s}]+)/),this.tag_check=n?n[1]:"",(e.text.startsWith("{{#>")||e.text.startsWith("{{~#>"))&&">"===this.tag_check[0]&&(">"===this.tag_check&&null!==e.next?this.tag_check=e.next.text.split(" ")[0]:this.tag_check=e.text.split(">")[1])),this.tag_check=this.tag_check.toLowerCase(),e.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||e.closed&&"/>"===e.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(t){var e=new v(this._tag_stack.get_parser_token(),t);return e.alignment_size=this._options.wrap_attributes_indent_size,e.is_end_tag=e.is_end_tag||d(e.tag_check,this._options.void_elements),e.is_empty_element=e.tag_complete||e.is_start_tag&&e.is_end_tag,e.is_unformatted=!e.tag_complete&&d(e.tag_check,this._options.unformatted),e.is_content_unformatted=!e.is_empty_element&&d(e.tag_check,this._options.content_unformatted),e.is_inline_element=d(e.tag_name,this._options.inline)||this._options.inline_custom_elements&&e.tag_name.includes("-")||"{"===e.tag_start_char,e},g.prototype._set_tag_position=function(t,e,n,r,i){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||t.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=h(n.tag_check,e)))),d(n.tag_check,this._options.extra_liners)&&(t.print_newline(!1),t._output.just_added_blankline()||t.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 o=t.current_line_has_match(/{{#if/);o||t.print_newline(!1)}"!--"===n.tag_name&&i.type===a.TAG_CLOSE&&r.is_end_tag&&-1===n.text.indexOf("\n")||(n.is_inline_element||n.is_unformatted||t.print_newline(!1),this._calcluate_parent_multiline(t,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)&&!(i.type===a.TAG_CLOSE&&n.start_tag_token===r)&&"TK_CONTENT"!==i.type,(n.is_content_unformatted||n.is_unformatted)&&(s=!1),s&&t.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"===i.type&&!n.is_content_unformatted||t.print_newline(!1),this._calcluate_parent_multiline(t,n)},g.prototype._calcluate_parent_multiline=function(t,e){!e.parent||!t._output.just_added_newline()||(e.is_inline_element||e.is_unformatted)&&e.parent.is_inline_element||(e.parent.multiline_content=!0)};var m=["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(t){var e=null;if(!t.is_empty_element&&t.is_start_tag&&t.parent){if("body"===t.tag_name)e=e||this._tag_stack.try_pop("head");else if("li"===t.tag_name)e=e||this._tag_stack.try_pop("li",["ol","ul","menu"]);else if("dd"===t.tag_name||"dt"===t.tag_name)e=e||this._tag_stack.try_pop("dt",["dl"]),e=e||this._tag_stack.try_pop("dd",["dl"]);else if("p"===t.parent.tag_name&&-1!==m.indexOf(t.tag_name)){var n=t.parent.parent;n&&-1!==y.indexOf(n.tag_name)||(e=e||this._tag_stack.try_pop("p"))}else"rp"===t.tag_name||"rt"===t.tag_name?(e=e||this._tag_stack.try_pop("rt",["ruby","rtc"]),e=e||this._tag_stack.try_pop("rp",["ruby","rtc"])):"optgroup"===t.tag_name?e=e||this._tag_stack.try_pop("optgroup",["select"]):"option"===t.tag_name?e=e||this._tag_stack.try_pop("option",["select","datalist","optgroup"]):"colgroup"===t.tag_name?e=e||this._tag_stack.try_pop("caption",["table"]):"thead"===t.tag_name?(e=e||this._tag_stack.try_pop("caption",["table"]),e=e||this._tag_stack.try_pop("colgroup",["table"])):"tbody"===t.tag_name||"tfoot"===t.tag_name?(e=e||this._tag_stack.try_pop("caption",["table"]),e=e||this._tag_stack.try_pop("colgroup",["table"]),e=e||this._tag_stack.try_pop("thead",["table"]),e=e||this._tag_stack.try_pop("tbody",["table"])):"tr"===t.tag_name?(e=e||this._tag_stack.try_pop("caption",["table"]),e=e||this._tag_stack.try_pop("colgroup",["table"]),e=e||this._tag_stack.try_pop("tr",["table","thead","tbody","tfoot"])):"th"!==t.tag_name&&"td"!==t.tag_name||(e=e||this._tag_stack.try_pop("td",["table","thead","tbody","tfoot","tr"]),e=e||this._tag_stack.try_pop("th",["table","thead","tbody","tfoot","tr"]));return t.parent=this._tag_stack.get_parser_token(),e}},t.exports.Beautifier=g},function(t,e,n){var r=n(6).Options;function i(t){r.call(this,t,"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"])}i.prototype=new r,t.exports.Options=i},function(t,e,n){var r=n(9).Tokenizer,i=n(9).TOKEN,o=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:i.START,RAW:i.RAW,EOF:i.EOF},u=new o(/<\!--/,/-->/),c=function(t,e){r.call(this,t,e),this._current_tag_name="";var n=new a(this._input).read_options(this._options),i=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:i.matching(/\@[a-zA-Z]+[^({]*[({]/),handlebars_comment:i.starting_with(/{{!--/).until_after(/--}}/),handlebars:i.starting_with(/{{/).until_after(/}}/),handlebars_open:i.until(/[\n\r\t }]/),handlebars_raw_close:i.until(/}}/),comment:i.starting_with(/<!--/).until_after(/-->/),cdata:i.starting_with(/<!\[CDATA\[/).until_after(/]]>/),conditional_comment:i.starting_with(/<!\[/).until_after(/]>/),processing:i.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 o=this._input.get_literal_regexp(this._options.unformatted_content_delimiter);this.__patterns.unformatted_content_delimiter=i.matching(o).until_after(o)}};c.prototype=new r,c.prototype._is_comment=function(t){return!1},c.prototype._is_opening=function(t){return t.type===l.TAG_OPEN||t.type===l.CONTROL_FLOW_OPEN},c.prototype._is_closing=function(t,e){return t.type===l.TAG_CLOSE&&e&&((">"===t.text||"/>"===t.text)&&"<"===e.text[0]||"}}"===t.text&&"{"===e.text[0]&&"{"===e.text[1])||t.type===l.CONTROL_FLOW_CLOSE&&"}"===t.text&&e.text.endsWith("{")},c.prototype._reset=function(){this._current_tag_name=""},c.prototype._get_next_token=function(t,e){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,e),n=n||this._read_attribute(r,t,e),n=n||this._read_close(r,e),n=n||this._read_control_flows(r,e),n=n||this._read_raw_content(r,t,e),n=n||this._read_content_word(r,e),n=n||this._read_comment_or_cdata(r),n=n||this._read_processing(r),n=n||this._read_open(r,e),n=n||this._create_token(l.UNKNOWN,this._input.next()),n)},c.prototype._read_comment_or_cdata=function(t){var e=null,n=null,r=null;if("<"===t){var i=this._input.peek(1);"!"===i&&(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&&(e=this._create_token(l.COMMENT,n),e.directives=r)}return e},c.prototype._read_processing=function(t){var e=null,n=null,r=null;if("<"===t){var i=this._input.peek(1);"!"!==i&&"?"!==i||(n=this.__patterns.conditional_comment.read(),n=n||this.__patterns.processing.read()),n&&(e=this._create_token(l.COMMENT,n),e.directives=r)}return e},c.prototype._read_open=function(t,e){var n=null,r=null;return e&&e.type!==l.CONTROL_FLOW_OPEN||"<"===t&&(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(t,e){var n=null,r=null;return e&&e.type!==l.CONTROL_FLOW_OPEN||this._options.indent_handlebars&&"{"===t&&"{"===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(t,e){var n="",r=null;if(!this._options.templating.includes("angular")||!this._options.indent_handlebars)return r;if("@"===t){if(n=this.__patterns.angular_control_flow_start.read(),""===n)return r;var i=n.endsWith("(")?1:0,o=0;while(!n.endsWith("{")||i!==o){var a=this._input.next();if(null===a)break;"("===a?i++:")"===a&&o++,n+=a}r=this._create_token(l.CONTROL_FLOW_OPEN,n)}else"}"===t&&e&&e.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(t,e){var n=null,r=null;return e&&e.type===l.TAG_OPEN&&("<"===e.text[0]&&(">"===t||"/"===t&&">"===this._input.peek(1))?(n=this._input.next(),"/"===t&&(n+=this._input.next()),r=this._create_token(l.TAG_CLOSE,n)):"{"===e.text[0]&&"}"===t&&"}"===this._input.peek(1)&&(this._input.next(),this._input.next(),r=this._create_token(l.TAG_CLOSE,"}}"))),r},c.prototype._read_attribute=function(t,e,n){var r=null,i="";if(n&&"<"===n.text[0])if("="===t)r=this._create_token(l.EQUALS,this._input.next());else if('"'===t||"'"===t){var o=this._input.next();o+='"'===t?this.__patterns.double_quote.read():this.__patterns.single_quote.read(),r=this._create_token(l.VALUE,o)}else i=this.__patterns.attribute.read(),i&&(r=e.type===l.EQUALS?this._create_token(l.VALUE,i):this._create_token(l.ATTRIBUTE,i));return r},c.prototype._is_content_unformatted=function(t){return-1===this._options.void_elements.indexOf(t)&&(-1!==this._options.content_unformatted.indexOf(t)||-1!==this._options.unformatted.indexOf(t))},c.prototype._read_raw_content=function(t,e,n){var r="";if(n&&"{"===n.text[0])r=this.__patterns.handlebars_raw_close.read();else if(e.type===l.TAG_CLOSE&&"<"===e.opened.text[0]&&"/"!==e.text[0]){var i=e.opened.text.substr(1).toLowerCase();if("script"===i||"style"===i){var o=this._read_comment_or_cdata(t);if(o)return o.type=l.TEXT,o;r=this._input.readUntil(new RegExp("</"+i+"[\\n\\r\\t ]*?>","ig"))}else this._is_content_unformatted(i)&&(r=this._input.readUntil(new RegExp("</"+i+"[\\n\\r\\t ]*?>","ig")))}return r?this._create_token(l.TEXT,r):null},c.prototype._read_content_word=function(t,e){var n="";if(this._options.unformatted_content_delimiter&&t===this._options.unformatted_content_delimiter[0]&&(n=this.__patterns.unformatted_content_delimiter.read()),n||(n=e&&e.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)},t.exports.Tokenizer=c,t.exports.TOKEN=l}],e={};function n(r){var i=e[r];if(void 0!==i)return i.exports;var o=e[r]={exports:{}};return t[r](o,o.exports,n),o.exports}var r=n(18);o=r})();var a=o;r=[n,n(37590),n(23028)],i=function(t){var e=n(37590),r=n(23028);return{html_beautify:function(t,n){return a(t,n,e.js_beautify,r.css_beautify)}}}.apply(e,r),void 0===i||(t.exports=i)}()},37590:function(t,e,n){var r,i;n(30381),function(){var n;(function(){"use strict";var t=[function(t,e,n){var r=n(1).Beautifier,i=n(5).Options;function o(t,e){var n=new r(t,e);return n.beautify()}t.exports=o,t.exports.defaultOptions=function(){return new i}},function(t,e,n){var r=n(2).Output,i=n(3).Token,o=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 h(t,e){return-1!==e.indexOf(t)}function d(t){return t.replace(/^\s+/g,"")}function p(t){for(var e={},n=0;n<t.length;n++)e[t[n].replace(/-/g,"_")]=t[n];return e}function f(t,e){return t&&t.type===c.RESERVED&&t.text===e}function g(t,e){return t&&t.type===c.RESERVED&&h(t.text,e)}var v=["case","return","do","if","throw","else","await","break","continue","async"],m=["before-newline","after-newline","preserve-newline"],y=p(m),b=[y.before_newline,y.preserve_newline],_={BlockStatement:"BlockStatement",Statement:"Statement",ObjectLiteral:"ObjectLiteral",ArrayLiteral:"ArrayLiteral",ForInitializer:"ForInitializer",Conditional:"Conditional",Expression:"Expression"};function x(t,e){e.multiline_frame||e.mode===_.ForInitializer||e.mode===_.Conditional||t.remove_indent(e.start_line_index)}function w(t){t=t.replace(o.allLineBreaks,"\n");var e=[],n=t.indexOf("\n");while(-1!==n)e.push(t.substring(0,n)),t=t.substring(n+1),n=t.indexOf("\n");return t.length&&e.push(t),e}function O(t){return t===_.ArrayLiteral}function S(t){return h(t,[_.Expression,_.ForInitializer,_.Conditional])}function A(t,e){for(var n=0;n<t.length;n++){var r=t[n].trim();if(r.charAt(0)!==e)return!1}return!0}function k(t,e){for(var n,r=0,i=t.length;r<i;r++)if(n=t[r],n&&0!==n.indexOf(e))return!1;return!0}function C(t,e){e=e||{},this._source_text=t||"",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(e)}C.prototype.create_flags=function(t,e){var n=0;t&&(n=t.indentation_level,!this._output.just_added_newline()&&t.line_indent_level>n&&(n=t.line_indent_level));var r={mode:e,parent:t,last_token:t?t.last_token:new i(c.START_BLOCK,""),last_word:t?t.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:t?t.line_indent_level:n,start_line_index:this._output.get_line_number(),ternary_depth:0};return r},C.prototype._reset=function(t){var e=t.match(/^[\t ]*/)[0];this._last_last_text="",this._output=new r(this._options,e),this._output.raw=this._options.test_output_raw,this._flag_store=[],this.set_mode(_.BlockStatement);var n=new s(t,this._options);return this._tokens=n.tokenize(),t},C.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var t,e=this._reset(this._source_text),n=this._options.eol;"auto"===this._options.eol&&(n="\n",e&&o.lineBreak.test(e||"")&&(n=e.match(o.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 t=this._output.get_code(n),t},C.prototype.handle_token=function(t,e){t.type===c.START_EXPR?this.handle_start_expr(t):t.type===c.END_EXPR?this.handle_end_expr(t):t.type===c.START_BLOCK?this.handle_start_block(t):t.type===c.END_BLOCK?this.handle_end_block(t):t.type===c.WORD||t.type===c.RESERVED?this.handle_word(t):t.type===c.SEMICOLON?this.handle_semicolon(t):t.type===c.STRING?this.handle_string(t):t.type===c.EQUALS?this.handle_equals(t):t.type===c.OPERATOR?this.handle_operator(t):t.type===c.COMMA?this.handle_comma(t):t.type===c.BLOCK_COMMENT?this.handle_block_comment(t,e):t.type===c.COMMENT?this.handle_comment(t,e):t.type===c.DOT?this.handle_dot(t):t.type===c.EOF?this.handle_eof(t):(t.type,c.UNKNOWN,this.handle_unknown(t,e))},C.prototype.handle_whitespace_and_comments=function(t,e){var n=t.newlines,r=this._options.keep_array_indentation&&O(this._flags.mode);if(t.comments_before){var i=t.comments_before.next();while(i)this.handle_whitespace_and_comments(i,e),this.handle_token(i,e),i=t.comments_before.next()}if(r)for(var o=0;o<n;o+=1)this.print_newline(o>0,e);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,e);for(var a=1;a<n;a+=1)this.print_newline(!0,e)}};var M=["async","break","continue","return","throw","yield"];C.prototype.allow_wrap_or_preserved_newline=function(t,e){if(e=void 0!==e&&e,!this._output.just_added_newline()){var n=this._options.preserve_newlines&&t.newlines||e,r=h(this._flags.last_token.text,u)||h(t.text,u);if(r){var i=h(this._flags.last_token.text,u)&&h(this._options.operator_position,b)||h(t.text,u);n=n&&i}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(t,e){if(!e&&";"!==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(t)&&(this._flags.multiline_frame=!0)},C.prototype.print_token_line_indentation=function(t){this._output.just_added_newline()&&(this._options.keep_array_indentation&&t.newlines&&("["===t.text||O(this._flags.mode))?(this._output.current_line.set_indent(-1),this._output.current_line.push(t.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(t){if(this._output.raw)this._output.add_raw_token(t);else{if(this._options.comma_first&&t.previous&&t.previous.type===c.COMMA&&this._output.just_added_newline()&&","===this._output.previous_line.last()){var e=this._output.previous_line.pop();this._output.previous_line.is_empty()&&(this._output.previous_line.push(e),this._output.trim(!0),this._output.current_line.pop(),this._output.trim()),this.print_token_line_indentation(t),this._output.add_token(","),this._output.space_before_token=!0}this.print_token_line_indentation(t),this._output.non_breaking_space=!0,this._output.add_token(t.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(t){this._flags?(this._flag_store.push(this._flags),this._previous_flags=this._flags):this._previous_flags=this.create_flags(null,t),this._flags=this.create_flags(this._previous_flags,t),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(t){var e=!1;return e=e||g(this._flags.last_token,["var","let","const"])&&t.type===c.WORD,e=e||f(this._flags.last_token,"do"),e=e||!(this._flags.parent.mode===_.ObjectLiteral&&this._flags.mode===_.Statement)&&g(this._flags.last_token,M)&&!t.newlines,e=e||f(this._flags.last_token,"else")&&!(f(t,"if")&&!t.comments_before),e=e||this._flags.last_token.type===c.END_EXPR&&(this._previous_flags.mode===_.ForInitializer||this._previous_flags.mode===_.Conditional),e=e||this._flags.last_token.type===c.WORD&&this._flags.mode===_.BlockStatement&&!this._flags.in_case&&!("--"===t.text||"++"===t.text)&&"function"!==this._last_last_text&&t.type!==c.WORD&&t.type!==c.RESERVED,e=e||this._flags.mode===_.ObjectLiteral&&(":"===this._flags.last_token.text&&0===this._flags.ternary_depth||g(this._flags.last_token,["get","set"])),!!e&&(this.set_mode(_.Statement),this.indent(),this.handle_whitespace_and_comments(t,!0),this.start_of_object_property()||this.allow_wrap_or_preserved_newline(t,g(t,["do","for","if","while"])),!0)},C.prototype.handle_start_expr=function(t){this.start_of_statement(t)||this.handle_whitespace_and_comments(t);var e=_.Expression;if("["===t.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(t),this.set_mode(e),this.indent(),void(this._options.space_in_paren&&(this._output.space_before_token=!0));e=_.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()),h(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,e=_.ForInitializer):h(this._flags.last_token.text,["if","while","switch"])?(this._output.space_before_token=this._options.space_before_conditional,e=_.Conditional):h(this._flags.last_word,["await","async"])?this._output.space_before_token=!0:"import"===this._flags.last_token.text&&""===t.whitespace_before?this._output.space_before_token=!1:(h(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(t);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(t);(this._flags.last_token.type===c.RESERVED&&("function"===this._flags.last_word||"typeof"===this._flags.last_word)||"*"===this._flags.last_token.text&&(h(this._last_last_text,["function","yield"])||this._flags.mode===_.ObjectLiteral&&h(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(t,t.newlines),this.print_token(t),this.set_mode(e),this._options.space_in_paren&&(this._output.space_before_token=!0),this.indent()},C.prototype.handle_end_expr=function(t){while(this._flags.mode===_.Statement)this.restore_mode();this.handle_whitespace_and_comments(t),this._flags.multiline_frame&&this.allow_wrap_or_preserved_newline(t,"]"===t.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(t),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(t){this.handle_whitespace_and_comments(t);var e=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&&(h(n.text,[":",","])&&h(e.type,[c.STRING,c.WORD,c.RESERVED])||h(e.text,["get","set","..."])&&h(n.type,[c.WORD,c.RESERVED]))?h(this._last_last_text,["class","interface"])&&!h(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):h(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=!e.comments_before&&"}"===e.text,i=r&&"function"===this._flags.last_word&&this._flags.last_token.type===c.END_EXPR;if(this._options.brace_preserve_inline){var o=0,a=null;this._flags.inline_frame=!0;do{if(o+=1,a=this._tokens.peek(o-1),a.newlines){this._flags.inline_frame=!1;break}}while(a.type!==c.EOF&&(a.type!==c.END_BLOCK||a.opened!==t))}("expand"===this._options.brace_style||"none"===this._options.brace_style&&t.newlines)&&!this._flags.inline_frame?this._flags.last_token.type!==c.OPERATOR&&(i||this._flags.last_token.type===c.EQUALS||g(this._flags.last_token,v)&&"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(t),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&&(h(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(t),this.indent(),r||this._options.brace_preserve_inline&&this._flags.inline_frame||this.print_newline()},C.prototype.handle_end_block=function(t){this.handle_whitespace_and_comments(t);while(this._flags.mode===_.Statement)this.restore_mode();var e=this._flags.last_token.type===c.START_BLOCK;this._flags.inline_frame&&!e?this._output.space_before_token=!0:"expand"===this._options.brace_style?e||this.print_newline():e||(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(t)},C.prototype.handle_word=function(t){if(t.type===c.RESERVED)if(h(t.text,["set","get"])&&this._flags.mode!==_.ObjectLiteral)t.type=c.WORD;else if("import"===t.text&&h(this._tokens.peek().text,["(","."]))t.type=c.WORD;else if(h(t.text,["as","from"])&&!this._flags.import_block)t.type=c.WORD;else if(this._flags.mode===_.ObjectLiteral){var e=this._tokens.peek();":"===e.text&&(t.type=c.WORD)}if(this.start_of_statement(t)?g(this._flags.last_token,["var","let","const"])&&t.type===c.WORD&&(this._flags.declaration_statement=!0):!t.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(t):(this.handle_whitespace_and_comments(t),this.print_newline()),this._flags.do_block&&!this._flags.do_while){if(f(t,"while"))return this._output.space_before_token=!0,this.print_token(t),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(t,"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(t,["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(t),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()||h(this._flags.last_token.text,["+","-"])&&":"===this._last_last_text&&this._flags.parent.mode===_.ObjectLiteral||this.allow_wrap_or_preserved_newline(t),f(t,"function"))return(h(this._flags.last_token.text,["}",";"])||this._output.just_added_newline()&&!h(this._flags.last_token.text,["(","[","{",":","=",","])&&this._flags.last_token.type!==c.OPERATOR)&&(this._output.just_added_blankline()||t.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(t),void(this._flags.last_word=t.text);var n="NONE";if(this._flags.last_token.type===c.END_BLOCK?this._previous_flags.inline_frame?n="SPACE":g(t,["else","catch","finally","from"])?"expand"===this._options.brace_style||"end-expand"===this._options.brace_style||"none"===this._options.brace_style&&t.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&&(h(this._last_last_text,["function","yield"])||this._flags.mode===_.ObjectLiteral&&h(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(t,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(t,["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&&t.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,v)||"declare"===this._flags.last_token.text&&g(t,["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(t,["var","let","const"])||":"===this._flags.last_token.text||(f(t,"if")&&f(t.previous,"else")?this._output.space_before_token=!0:this.print_newline()):g(t,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);!t.previous||t.previous.type!==c.WORD&&t.previous.type!==c.RESERVED||(this._output.space_before_token=!0),this.print_token(t),this._flags.last_word=t.text,t.type===c.RESERVED&&("do"===t.text?this._flags.do_block=!0:"if"===t.text?this._flags.if_block=!0:"import"===t.text?this._flags.import_block=!0:this._flags.import_block&&f(t,"from")&&(this._flags.import_block=!1))},C.prototype.handle_semicolon=function(t){this.start_of_statement(t)?this._output.space_before_token=!1:this.handle_whitespace_and_comments(t);var e=this._tokens.peek();while(this._flags.mode===_.Statement&&(!this._flags.if_block||!f(e,"else"))&&!this._flags.do_block)this.restore_mode();this._flags.import_block&&(this._flags.import_block=!1),this.print_token(t)},C.prototype.handle_string=function(t){(!t.text.startsWith("`")||0!==t.newlines||""!==t.whitespace_before||")"!==t.previous.text&&this._flags.last_token.type!==c.WORD)&&(this.start_of_statement(t)?this._output.space_before_token=!0:(this.handle_whitespace_and_comments(t),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(t):!t.text.startsWith("`")||this._flags.last_token.type!==c.END_EXPR||"]"!==t.previous.text&&")"!==t.previous.text||0!==t.newlines?this.print_newline():this._output.space_before_token=!0)),this.print_token(t)},C.prototype.handle_equals=function(t){this.start_of_statement(t)||this.handle_whitespace_and_comments(t),this._flags.declaration_statement&&(this._flags.declaration_assignment=!0),this._output.space_before_token=!0,this.print_token(t),this._output.space_before_token=!0},C.prototype.handle_comma=function(t){this.handle_whitespace_and_comments(t,!0),this.print_token(t),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(t)):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(t)},C.prototype.handle_operator=function(t){var e="*"===t.text&&(g(this._flags.last_token,["function","yield"])||h(this._flags.last_token.type,[c.START_BLOCK,c.COMMA,c.END_BLOCK,c.SEMICOLON])),n=h(t.text,["-","+"])&&(h(this._flags.last_token.type,[c.START_BLOCK,c.START_EXPR,c.EQUALS,c.OPERATOR])||h(this._flags.last_token.text,l)||","===this._flags.last_token.text);if(this.start_of_statement(t));else{var r=!e;this.handle_whitespace_and_comments(t,r)}if("*"!==t.text||this._flags.last_token.type!==c.DOT)if("::"!==t.text)if(h(t.text,["-","+"])&&this.start_of_object_property())this.print_token(t);else{if(this._flags.last_token.type===c.OPERATOR&&h(this._options.operator_position,b)&&this.allow_wrap_or_preserved_newline(t),":"===t.text&&this._flags.in_case)return this.print_token(t),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 i=!0,o=!0,a=!1;if(":"===t.text?0===this._flags.ternary_depth?i=!1:(this._flags.ternary_depth-=1,a=!0):"?"===t.text&&(this._flags.ternary_depth+=1),!n&&!e&&this._options.preserve_newlines&&h(t.text,u)){var s=":"===t.text,d=s&&a,p=s&&!a;switch(this._options.operator_position){case y.before_newline:return this._output.space_before_token=!p,this.print_token(t),s&&!d||this.allow_wrap_or_preserved_newline(t),void(this._output.space_before_token=!0);case y.after_newline:return this._output.space_before_token=!0,!s||d?this._tokens.peek().newlines?this.print_newline(!1,!0):this.allow_wrap_or_preserved_newline(t):this._output.space_before_token=!1,this.print_token(t),void(this._output.space_before_token=!0);case y.preserve_newline:return p||this.allow_wrap_or_preserved_newline(t),i=!(this._output.just_added_newline()||p),this._output.space_before_token=i,this.print_token(t),void(this._output.space_before_token=!0)}}if(e){this.allow_wrap_or_preserved_newline(t),i=!1;var f=this._tokens.peek();o=f&&h(f.type,[c.WORD,c.RESERVED])}else if("..."===t.text)this.allow_wrap_or_preserved_newline(t),i=this._flags.last_token.type===c.START_BLOCK,o=!1;else if(h(t.text,["--","++","!","~"])||n){if(this._flags.last_token.type!==c.COMMA&&this._flags.last_token.type!==c.START_EXPR||this.allow_wrap_or_preserved_newline(t),i=!1,o=!1,t.newlines&&("--"===t.text||"++"===t.text||"~"===t.text)){var m=g(this._flags.last_token,v)&&t.newlines;m&&(this._previous_flags.if_block||this._previous_flags.else_block)&&this.restore_mode(),this.print_newline(m,!0)}";"===this._flags.last_token.text&&S(this._flags.mode)&&(i=!0),this._flags.last_token.type===c.RESERVED?i=!0:this._flags.last_token.type===c.END_EXPR?i=!("]"===this._flags.last_token.text&&("--"===t.text||"++"===t.text)):this._flags.last_token.type===c.OPERATOR&&(i=h(t.text,["--","-","++","+"])&&h(this._flags.last_token.text,["--","-","++","+"]),h(t.text,["+","-"])&&h(this._flags.last_token.text,["--","++"])&&(o=!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||i,this.print_token(t),this._output.space_before_token=o}else this.print_token(t);else this.print_token(t)},C.prototype.handle_block_comment=function(t,e){return this._output.raw?(this._output.add_raw_token(t),void(t.directives&&"end"===t.directives.preserve&&(this._output.raw=this._options.test_output_raw))):t.directives?(this.print_newline(!1,e),this.print_token(t),"start"===t.directives.preserve&&(this._output.raw=!0),void this.print_newline(!1,!0)):o.newline.test(t.text)||t.newlines?void this.print_block_commment(t,e):(this._output.space_before_token=!0,this.print_token(t),void(this._output.space_before_token=!0))},C.prototype.print_block_commment=function(t,e){var n,r=w(t.text),i=!1,o=!1,a=t.whitespace_before,s=a.length;if(this.print_newline(!1,e),this.print_token_line_indentation(t),this._output.add_token(r[0]),this.print_newline(!1,e),r.length>1){for(r=r.slice(1),i=A(r,"*"),o=k(r,a),i&&(this._flags.alignment=1),n=0;n<r.length;n++)i?(this.print_token_line_indentation(t),this._output.add_token(d(r[n]))):o&&r[n]?(this.print_token_line_indentation(t),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,e);this._flags.alignment=0}},C.prototype.handle_comment=function(t,e){t.newlines?this.print_newline(!1,e):this._output.trim(!0),this._output.space_before_token=!0,this.print_token(t),this.print_newline(!1,e)},C.prototype.handle_dot=function(t){this.start_of_statement(t)||this.handle_whitespace_and_comments(t,!0),this._flags.last_token.text.match("^[0-9]+$")&&(this._output.space_before_token=!0),g(this._flags.last_token,v)?this._output.space_before_token=!1:this.allow_wrap_or_preserved_newline(t,")"===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(t)},C.prototype.handle_unknown=function(t,e){this.print_token(t),"\n"===t.text[t.text.length-1]&&this.print_newline(!1,e)},C.prototype.handle_eof=function(t){while(this._flags.mode===_.Statement)this.restore_mode();this.handle_whitespace_and_comments(t)},t.exports.Beautifier=C},function(t){function e(t){this.__parent=t,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(t,e){this.__cache=[""],this.__indent_size=t.indent_size,this.__indent_string=t.indent_char,t.indent_with_tabs||(this.__indent_string=new Array(t.indent_size+1).join(t.indent_char)),e=e||"",t.indent_level>0&&(e=new Array(t.indent_level+1).join(this.__indent_string)),this.__base_string=e,this.__base_string_length=e.length}function r(t,r){this.__indent_cache=new n(t,r),this.raw=!1,this._end_with_newline=t.end_with_newline,this.indent_size=t.indent_size,this.wrap_line_length=t.wrap_line_length,this.indent_empty_lines=t.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new e(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}e.prototype.clone_empty=function(){var t=new e(this.__parent);return t.set_indent(this.__indent_count,this.__alignment_count),t},e.prototype.item=function(t){return t<0?this.__items[this.__items.length+t]:this.__items[t]},e.prototype.has_match=function(t){for(var e=this.__items.length-1;e>=0;e--)if(this.__items[e].match(t))return!0;return!1},e.prototype.set_indent=function(t,e){this.is_empty()&&(this.__indent_count=t||0,this.__alignment_count=e||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},e.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)},e.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},e.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var t=this.__parent.current_line;return t.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),t.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),t.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count," "===t.__items[0]&&(t.__items.splice(0,1),t.__character_count-=1),!0}return!1},e.prototype.is_empty=function(){return 0===this.__items.length},e.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},e.prototype.push=function(t){this.__items.push(t);var e=t.lastIndexOf("\n");-1!==e?this.__character_count=t.length-e:this.__character_count+=t.length},e.prototype.pop=function(){var t=null;return this.is_empty()||(t=this.__items.pop(),this.__character_count-=t.length),t},e.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},e.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},e.prototype.trim=function(){while(" "===this.last())this.__items.pop(),this.__character_count-=1},e.prototype.toString=function(){var t="";return this.is_empty()?this.__parent.indent_empty_lines&&(t=this.__parent.get_indent_string(this.__indent_count)):(t=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),t+=this.__items.join("")),t},n.prototype.get_indent_size=function(t,e){var n=this.__base_string_length;return e=e||0,t<0&&(n=0),n+=t*this.__indent_size,n+=e,n},n.prototype.get_indent_string=function(t,e){var n=this.__base_string;return e=e||0,t<0&&(t=0,n=""),e+=t*this.__indent_size,this.__ensure_cache(e),n+=this.__cache[e],n},n.prototype.__ensure_cache=function(t){while(t>=this.__cache.length)this.__add_column()},n.prototype.__add_column=function(){var t=this.__cache.length,e=0,n="";this.__indent_size&&t>=this.__indent_size&&(e=Math.floor(t/this.__indent_size),t-=e*this.__indent_size,n=new Array(e+1).join(this.__indent_string)),t&&(n+=new Array(t+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(t,e){return this.__indent_cache.get_indent_string(t,e)},r.prototype.get_indent_size=function(t,e){return this.__indent_cache.get_indent_size(t,e)},r.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},r.prototype.add_new_line=function(t){return!(this.is_empty()||!t&&this.just_added_newline())&&(this.raw||this.__add_outputline(),!0)},r.prototype.get_code=function(t){this.trim(!0);var e=this.current_line.pop();e&&("\n"===e[e.length-1]&&(e=e.replace(/\n+$/g,"")),this.current_line.push(e)),this._end_with_newline&&this.__add_outputline();var n=this.__lines.join("\n");return"\n"!==t&&(n=n.replace(/[\n]/g,t)),n},r.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},r.prototype.set_indent=function(t,e){return t=t||0,e=e||0,this.next_line.set_indent(t,e),this.__lines.length>1?(this.current_line.set_indent(t,e),!0):(this.current_line.set_indent(),!1)},r.prototype.add_raw_token=function(t){for(var e=0;e<t.newlines;e++)this.__add_outputline();this.current_line.set_indent(-1),this.current_line.push(t.whitespace_before),this.current_line.push(t.text),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1},r.prototype.add_token=function(t){this.__add_space_before_token(),this.current_line.push(t),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(t){var e=this.__lines.length;while(t<e)this.__lines[t]._remove_indent(),t++;this.current_line._remove_wrap_indent()},r.prototype.trim=function(t){t=void 0!==t&&t,this.current_line.trim();while(t&&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(t,n){var r=this.__lines.length-2;while(r>=0){var i=this.__lines[r];if(i.is_empty())break;if(0!==i.item(0).indexOf(t)&&i.item(-1)!==n){this.__lines.splice(r+1,0,new e(this)),this.previous_line=this.__lines[this.__lines.length-2];break}r--}},t.exports.Output=r},function(t){function e(t,e,n,r){this.type=t,this.text=e,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}t.exports.Token=e},function(t,e){var n="\\x23\\x24\\x40\\x41-\\x5a\\x5f\\x61-\\x7a",r="\\x24\\x30-\\x39\\x41-\\x5a\\x5f\\x61-\\x7a",i="\\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",o="\\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+i+"])",l="(?:"+a+"|["+r+i+o+"])*";e.identifier=new RegExp(s+l,"g"),e.identifierStart=new RegExp(s),e.identifierMatch=new RegExp("(?:"+a+"|["+r+i+o+"])+");e.newline=/[\n\r\u2028\u2029]/,e.lineBreak=new RegExp("\r\n|"+e.newline.source),e.allLineBreaks=new RegExp(e.lineBreak.source,"g")},function(t,e,n){var r=n(6).Options,i=["before-newline","after-newline","preserve-newline"];function o(t){r.call(this,t,"js");var e=this.raw_options.brace_style||null;"expand-strict"===e?this.raw_options.brace_style="expand":"collapse-preserve-inline"===e?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 o=0;o<n.length;o++)"preserve-inline"===n[o]?this.brace_preserve_inline=!0:this.brace_style=n[o];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",i),this.test_output_raw=this._get_boolean("test_output_raw"),this.jslint_happy&&(this.space_after_anon_function=!0)}o.prototype=new r,t.exports.Options=o},function(t){function e(t,e){this.raw_options=n(t,e),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(t,e){var n,i={};for(n in t=r(t),t)n!==e&&(i[n]=t[n]);if(e&&t[e])for(n in t[e])i[n]=t[e][n];return i}function r(t){var e,n={};for(e in t){var r=e.replace(/-/g,"_");n[r]=t[e]}return n}e.prototype._get_array=function(t,e){var n=this.raw_options[t],r=e||[];return"object"===typeof n?null!==n&&"function"===typeof n.concat&&(r=n.concat()):"string"===typeof n&&(r=n.split(/[^a-zA-Z0-9_\/\-]+/)),r},e.prototype._get_boolean=function(t,e){var n=this.raw_options[t],r=void 0===n?!!e:!!n;return r},e.prototype._get_characters=function(t,e){var n=this.raw_options[t],r=e||"";return"string"===typeof n&&(r=n.replace(/\\r/,"\r").replace(/\\n/,"\n").replace(/\\t/,"\t")),r},e.prototype._get_number=function(t,e){var n=this.raw_options[t];e=parseInt(e,10),isNaN(e)&&(e=0);var r=parseInt(n,10);return isNaN(r)&&(r=e),r},e.prototype._get_selection=function(t,e,n){var r=this._get_selection_list(t,e,n);if(1!==r.length)throw new Error("Invalid Option Value: The option '"+t+"' can only be one of the following values:\n"+e+"\nYou passed in: '"+this.raw_options[t]+"'");return r[0]},e.prototype._get_selection_list=function(t,e,n){if(!e||0===e.length)throw new Error("Selection list cannot be empty.");if(n=n||[e[0]],!this._is_valid_selection(n,e))throw new Error("Invalid Default Value!");var r=this._get_array(t,n);if(!this._is_valid_selection(r,e))throw new Error("Invalid Option Value: The option '"+t+"' can contain only the following values:\n"+e+"\nYou passed in: '"+this.raw_options[t]+"'");return r},e.prototype._is_valid_selection=function(t,e){return t.length&&e.length&&!t.some((function(t){return-1===e.indexOf(t)}))},t.exports.Options=e,t.exports.normalizeOpts=r,t.exports.mergeOpts=n},function(t,e,n){var r=n(8).InputScanner,i=n(9).Tokenizer,o=n(9).TOKEN,a=n(13).Directives,s=n(4),l=n(12).Pattern,u=n(14).TemplatablePattern;function c(t,e){return-1!==e.indexOf(t)}var h={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:o.START,RAW:o.RAW,EOF:o.EOF},d=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\.]/,v=">>> === !== &&= ??= ||= << && >= ** != == <= >> || ?? |> < / - + > : & % ? ^ | *".split(" "),m=">>>= ... >>= <<= === >>> !== **= &&= ??= ||= => ^= :: /= << <= == && -= >= >> != -- += ** || ?? ++ %= &= *= |= |> = ! ? > < : / ^ - + * & % ~ |";m=m.replace(/[-[\]{}()*+?.,\\^$|#]/g,"\\$&"),m="\\?\\.(?!\\d) "+m,m=m.replace(/ /g,"|");var y,b=new RegExp(m),_="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(t,e){i.call(this,t,e),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(t){var e="",n=0,i=new r(t),o=null;while(i.hasNext())if(o=i.match(/([\s]|[^\\]|\\\\)+/g),o&&(e+=o[0]),"\\"===i.peek()){if(i.next(),"x"===i.peek())o=i.match(/x([0-9A-Fa-f]{2})/g);else{if("u"!==i.peek()){e+="\\",i.hasNext()&&(e+=i.next());continue}o=i.match(/u([0-9A-Fa-f]{4})/g),o||(o=i.match(/u\{([0-9A-Fa-f]+)\}/g))}if(!o)return t;if(n=parseInt(o[1],16),n>126&&n<=255&&0===o[0].indexOf("x"))return t;e+=n>=0&&n<32||n>1114111?"\\"+o[0]:34===n||39===n||92===n?"\\"+String.fromCharCode(n):String.fromCharCode(n)}return e}O.prototype=new i,O.prototype._is_comment=function(t){return t.type===h.COMMENT||t.type===h.BLOCK_COMMENT||t.type===h.UNKNOWN},O.prototype._is_opening=function(t){return t.type===h.START_BLOCK||t.type===h.START_EXPR},O.prototype._is_closing=function(t,e){return(t.type===h.END_BLOCK||t.type===h.END_EXPR)&&e&&("]"===t.text&&"["===e.text||")"===t.text&&"("===e.text||"}"===t.text&&"{"===e.text)},O.prototype._reset=function(){y=!1},O.prototype._get_next_token=function(t,e){var n=null;this._readWhitespace();var r=this._input.peek();return null===r?this._create_token(h.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(t),n=n||this._read_singles(r),n=n||this._read_comment(r),n=n||this._read_regexp(r,t),n=n||this._read_xml(r,t),n=n||this._read_punctuation(),n=n||this._create_token(h.UNKNOWN,this._input.next()),n)},O.prototype._read_word=function(t){var e;return e=this.__patterns.identifier.read(),""!==e?(e=e.replace(s.allLineBreaks,"\n"),t.type!==h.DOT&&(t.type!==h.RESERVED||"set"!==t.text&&"get"!==t.text)&&w.test(e)?"in"!==e&&"of"!==e||t.type!==h.WORD&&t.type!==h.STRING?this._create_token(h.RESERVED,e):this._create_token(h.OPERATOR,e):this._create_token(h.WORD,e)):(e=this.__patterns.number.read(),""!==e?this._create_token(h.WORD,e):void 0)},O.prototype._read_singles=function(t){var e=null;return"("===t||"["===t?e=this._create_token(h.START_EXPR,t):")"===t||"]"===t?e=this._create_token(h.END_EXPR,t):"{"===t?e=this._create_token(h.START_BLOCK,t):"}"===t?e=this._create_token(h.END_BLOCK,t):";"===t?e=this._create_token(h.SEMICOLON,t):"."===t&&g.test(this._input.peek(1))?e=this._create_token(h.DOT,t):","===t&&(e=this._create_token(h.COMMA,t)),e&&this._input.next(),e},O.prototype._read_pair=function(t,e){var n=null;return"#"===t&&"{"===e&&(n=this._create_token(h.START_BLOCK,t+e)),n&&(this._input.next(),this._input.next()),n},O.prototype._read_punctuation=function(){var t=this.__patterns.punct.read();if(""!==t)return"="===t?this._create_token(h.EQUALS,t):"?."===t?this._create_token(h.DOT,t):this._create_token(h.OPERATOR,t)},O.prototype._read_non_javascript=function(t){var e="";if("#"===t){if(this._is_first_token()&&(e=this.__patterns.shebang.read(),e))return this._create_token(h.UNKNOWN,e.trim()+"\n");if(e=this.__patterns.include.read(),e)return this._create_token(h.UNKNOWN,e.trim()+"\n");t=this._input.next();var n="#";if(this._input.hasNext()&&this._input.testChar(f)){do{t=this._input.next(),n+=t}while(this._input.hasNext()&&"#"!==t&&"="!==t);return"#"===t||("["===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(h.WORD,n)}this._input.back()}else if("<"===t&&this._is_first_token()){if(e=this.__patterns.html_comment_start.read(),e){while(this._input.hasNext()&&!this._input.testChar(s.newline))e+=this._input.next();return y=!0,this._create_token(h.COMMENT,e)}}else if(y&&"-"===t&&(e=this.__patterns.html_comment_end.read(),e))return y=!1,this._create_token(h.COMMENT,e);return null},O.prototype._read_comment=function(t){var e=null;if("/"===t){var n="";if("*"===this._input.peek(1)){n=this.__patterns.block_comment.read();var r=d.get_directives(n);r&&"start"===r.ignore&&(n+=d.readIgnored(this._input)),n=n.replace(s.allLineBreaks,"\n"),e=this._create_token(h.BLOCK_COMMENT,n),e.directives=r}else"/"===this._input.peek(1)&&(n=this.__patterns.comment.read(),e=this._create_token(h.COMMENT,n))}return e},O.prototype._read_string=function(t){if("`"===t||"'"===t||'"'===t){var e=this._input.next();return this.has_char_escapes=!1,e+="`"===t?this._read_string_recursive("`",!0,"${"):this._read_string_recursive(t),this.has_char_escapes&&this._options.unescape_strings&&(e=S(e)),this._input.peek()===t&&(e+=this._input.next()),e=e.replace(s.allLineBreaks,"\n"),this._create_token(h.STRING,e)}return null},O.prototype._allow_regexp_or_xml=function(t){return t.type===h.RESERVED&&c(t.text,["return","case","throw","else","do","typeof","yield"])||t.type===h.END_EXPR&&")"===t.text&&t.opened.previous.type===h.RESERVED&&c(t.opened.previous.text,["if","while","for"])||c(t.type,[h.COMMENT,h.START_EXPR,h.START_BLOCK,h.START,h.END_BLOCK,h.OPERATOR,h.EQUALS,h.EOF,h.SEMICOLON,h.COMMA])},O.prototype._read_regexp=function(t,e){if("/"===t&&this._allow_regexp_or_xml(e)){var n=this._input.next(),r=!1,i=!1;while(this._input.hasNext()&&(r||i||this._input.peek()!==t)&&!this._input.testChar(s.newline))n+=this._input.peek(),r?r=!1:(r="\\"===this._input.peek(),"["===this._input.peek()?i=!0:"]"===this._input.peek()&&(i=!1)),this._input.next();return this._input.peek()===t&&(n+=this._input.next(),n+=this._input.read(s.identifier)),this._create_token(h.STRING,n)}return null},O.prototype._read_xml=function(t,e){if(this._options.e4x&&"<"===t&&this._allow_regexp_or_xml(e)){var n="",r=this.__patterns.xml.read_match();if(r){var i=r[2].replace(/^{\s+/,"{").replace(/\s+}$/,"}"),o=0===i.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===i||o&&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(h.STRING,n)}}return null},O.prototype._read_string_recursive=function(t,e,n){var r,i;"'"===t?i=this.__patterns.single_quote:'"'===t?i=this.__patterns.double_quote:"`"===t?i=this.__patterns.template_text:"}"===t&&(i=this.__patterns.template_expression);var o=i.read(),a="";while(this._input.hasNext()){if(a=this._input.next(),a===t||!e&&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+="`"===t?this._read_string_recursive("}",e,"`"):this._read_string_recursive("`",e,"${"),this._input.hasNext()&&(a+=this._input.next()))),a+=i.read(),o+=a}return o},t.exports.Tokenizer=O,t.exports.TOKEN=h,t.exports.positionable_operators=v.slice(),t.exports.line_starters=_.slice()},function(t){var e=RegExp.prototype.hasOwnProperty("sticky");function n(t){this.__input=t||"",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 t=null;return this.hasNext()&&(t=this.__input.charAt(this.__position),this.__position+=1),t},n.prototype.peek=function(t){var e=null;return t=t||0,t+=this.__position,t>=0&&t<this.__input_length&&(e=this.__input.charAt(t)),e},n.prototype.__match=function(t,n){t.lastIndex=n;var r=t.exec(this.__input);return!r||e&&t.sticky||r.index!==n&&(r=null),r},n.prototype.test=function(t,e){return e=e||0,e+=this.__position,e>=0&&e<this.__input_length&&!!this.__match(t,e)},n.prototype.testChar=function(t,e){var n=this.peek(e);return t.lastIndex=0,null!==n&&t.test(n)},n.prototype.match=function(t){var e=this.__match(t,this.__position);return e?this.__position+=e[0].length:e=null,e},n.prototype.read=function(t,e,n){var r,i="";return t&&(r=this.match(t),r&&(i+=r[0])),!e||!r&&t||(i+=this.readUntil(e,n)),i},n.prototype.readUntil=function(t,e){var n="",r=this.__position;t.lastIndex=this.__position;var i=t.exec(this.__input);return i?(r=i.index,e&&(r+=i[0].length)):r=this.__input_length,n=this.__input.substring(this.__position,r),this.__position=r,n},n.prototype.readUntilAfter=function(t){return this.readUntil(t,!0)},n.prototype.get_regexp=function(t,n){var r=null,i="g";return n&&e&&(i="y"),"string"===typeof t&&""!==t?r=new RegExp(t,i):t&&(r=new RegExp(t.source,i)),r},n.prototype.get_literal_regexp=function(t){return RegExp(t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},n.prototype.peekUntilAfter=function(t){var e=this.__position,n=this.readUntilAfter(t);return this.__position=e,n},n.prototype.lookBack=function(t){var e=this.__position-1;return e>=t.length&&this.__input.substring(e-t.length,e).toLowerCase()===t},t.exports.InputScanner=n},function(t,e,n){var r=n(8).InputScanner,i=n(3).Token,o=n(10).TokenStream,a=n(11).WhitespacePattern,s={START:"TK_START",RAW:"TK_RAW",EOF:"TK_EOF"},l=function(t,e){this._input=new r(t),this._options=e||{},this.__tokens=null,this._patterns={},this._patterns.whitespace=new a(this._input)};l.prototype.tokenize=function(){var t;this._input.restart(),this.__tokens=new o,this._reset();var e=new i(s.START,""),n=null,r=[],a=new o;while(e.type!==s.EOF){t=this._get_next_token(e,n);while(this._is_comment(t))a.add(t),t=this._get_next_token(e,n);a.isEmpty()||(t.comments_before=a,a=new o),t.parent=n,this._is_opening(t)?(r.push(n),n=t):n&&this._is_closing(t,n)&&(t.opened=n,n.closed=t,n=r.pop(),t.parent=n),t.previous=e,e.next=t,this.__tokens.add(t),e=t}return this.__tokens},l.prototype._is_first_token=function(){return this.__tokens.isEmpty()},l.prototype._reset=function(){},l.prototype._get_next_token=function(t,e){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(t){return!1},l.prototype._is_opening=function(t){return!1},l.prototype._is_closing=function(t,e){return!1},l.prototype._create_token=function(t,e){var n=new i(t,e,this._patterns.whitespace.newline_count,this._patterns.whitespace.whitespace_before_token);return n},l.prototype._readWhitespace=function(){return this._patterns.whitespace.read()},t.exports.Tokenizer=l,t.exports.TOKEN=s},function(t){function e(t){this.__tokens=[],this.__tokens_length=this.__tokens.length,this.__position=0,this.__parent_token=t}e.prototype.restart=function(){this.__position=0},e.prototype.isEmpty=function(){return 0===this.__tokens_length},e.prototype.hasNext=function(){return this.__position<this.__tokens_length},e.prototype.next=function(){var t=null;return this.hasNext()&&(t=this.__tokens[this.__position],this.__position+=1),t},e.prototype.peek=function(t){var e=null;return t=t||0,t+=this.__position,t>=0&&t<this.__tokens_length&&(e=this.__tokens[t]),e},e.prototype.add=function(t){this.__parent_token&&(t.parent=this.__parent_token),this.__tokens.push(t),this.__tokens_length+=1},t.exports.TokenStream=e},function(t,e,n){var r=n(12).Pattern;function i(t,e){r.call(this,t,e),e?this._line_regexp=this._input.get_regexp(e._line_regexp):this.__set_whitespace_patterns("",""),this.newline_count=0,this.whitespace_before_token=""}i.prototype=new r,i.prototype.__set_whitespace_patterns=function(t,e){t+="\\t ",e+="\\n\\r",this._match_pattern=this._input.get_regexp("["+t+e+"]+",!0),this._newline_regexp=this._input.get_regexp("\\r\\n|["+e+"]")},i.prototype.read=function(){this.newline_count=0,this.whitespace_before_token="";var t=this._input.read(this._match_pattern);if(" "===t)this.whitespace_before_token=" ";else if(t){var e=this.__split(this._newline_regexp,t);this.newline_count=e.length-1,this.whitespace_before_token=e[this.newline_count]}return t},i.prototype.matching=function(t,e){var n=this._create();return n.__set_whitespace_patterns(t,e),n._update(),n},i.prototype._create=function(){return new i(this._input,this)},i.prototype.__split=function(t,e){t.lastIndex=0;var n=0,r=[],i=t.exec(e);while(i)r.push(e.substring(n,i.index)),n=i.index+i[0].length,i=t.exec(e);return n<e.length?r.push(e.substring(n,e.length)):r.push(""),r},t.exports.WhitespacePattern=i},function(t){function e(t,e){this._input=t,this._starting_pattern=null,this._match_pattern=null,this._until_pattern=null,this._until_after=!1,e&&(this._starting_pattern=this._input.get_regexp(e._starting_pattern,!0),this._match_pattern=this._input.get_regexp(e._match_pattern,!0),this._until_pattern=this._input.get_regexp(e._until_pattern),this._until_after=e._until_after)}e.prototype.read=function(){var t=this._input.read(this._starting_pattern);return this._starting_pattern&&!t||(t+=this._input.read(this._match_pattern,this._until_pattern,this._until_after)),t},e.prototype.read_match=function(){return this._input.match(this._match_pattern)},e.prototype.until_after=function(t){var e=this._create();return e._until_after=!0,e._until_pattern=this._input.get_regexp(t),e._update(),e},e.prototype.until=function(t){var e=this._create();return e._until_after=!1,e._until_pattern=this._input.get_regexp(t),e._update(),e},e.prototype.starting_with=function(t){var e=this._create();return e._starting_pattern=this._input.get_regexp(t,!0),e._update(),e},e.prototype.matching=function(t){var e=this._create();return e._match_pattern=this._input.get_regexp(t,!0),e._update(),e},e.prototype._create=function(){return new e(this._input,this)},e.prototype._update=function(){},t.exports.Pattern=e},function(t){function e(t,e){t="string"===typeof t?t:t.source,e="string"===typeof e?e:e.source,this.__directives_block_pattern=new RegExp(t+/ beautify( \w+[:]\w+)+ /.source+e,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(t+/\sbeautify\signore:end\s/.source+e,"g")}e.prototype.get_directives=function(t){if(!t.match(this.__directives_block_pattern))return null;var e={};this.__directive_pattern.lastIndex=0;var n=this.__directive_pattern.exec(t);while(n)e[n[1]]=n[2],n=this.__directive_pattern.exec(t);return e},e.prototype.readIgnored=function(t){return t.readUntilAfter(this.__directives_end_ignore_pattern)},t.exports.Directives=e},function(t,e,n){var r=n(12).Pattern,i={django:!1,erb:!1,handlebars:!1,php:!1,smarty:!1,angular:!1};function o(t,e){r.call(this,t,e),this.__template_pattern=null,this._disabled=Object.assign({},i),this._excluded=Object.assign({},i),e&&(this.__template_pattern=this._input.get_regexp(e.__template_pattern),this._excluded=Object.assign(this._excluded,e._excluded),this._disabled=Object.assign(this._disabled,e._disabled));var n=new r(t);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}/)}}o.prototype=new r,o.prototype._create=function(){return new o(this._input,this)},o.prototype._update=function(){this.__set_templated_pattern()},o.prototype.disable=function(t){var e=this._create();return e._disabled[t]=!0,e._update(),e},o.prototype.read_options=function(t){var e=this._create();for(var n in i)e._disabled[n]=-1===t.templating.indexOf(n);return e._update(),e},o.prototype.exclude=function(t){var e=this._create();return e._excluded[t]=!0,e._update(),e},o.prototype.read=function(){var t="";t=this._match_pattern?this._input.read(this._starting_pattern):this._input.read(this._starting_pattern,this.__template_pattern);var e=this._read_template();while(e)this._match_pattern?e+=this._input.read(this._match_pattern):e+=this._input.readUntil(this.__template_pattern),t+=e,e=this._read_template();return this._until_after&&(t+=this._input.readUntilAfter(this._until_pattern)),t},o.prototype.__set_templated_pattern=function(){var t=[];this._disabled.php||t.push(this.__patterns.php._starting_pattern.source),this._disabled.handlebars||t.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.erb||t.push(this.__patterns.erb._starting_pattern.source),this._disabled.django||(t.push(this.__patterns.django._starting_pattern.source),t.push(this.__patterns.django_value._starting_pattern.source),t.push(this.__patterns.django_comment._starting_pattern.source)),this._disabled.smarty||t.push(this.__patterns.smarty._starting_pattern.source),this._until_pattern&&t.push(this._until_pattern.source),this.__template_pattern=this._input.get_regexp("(?:"+t.join("|")+")")},o.prototype._read_template=function(){var t="",e=this._input.peek();if("<"===e){var n=this._input.peek(1);this._disabled.php||this._excluded.php||"?"!==n||(t=t||this.__patterns.php.read()),this._disabled.erb||this._excluded.erb||"%"!==n||(t=t||this.__patterns.erb.read())}else"{"===e&&(this._disabled.handlebars||this._excluded.handlebars||(t=t||this.__patterns.handlebars_comment.read(),t=t||this.__patterns.handlebars_unescaped.read(),t=t||this.__patterns.handlebars.read()),this._disabled.django||(this._excluded.django||this._excluded.handlebars||(t=t||this.__patterns.django_value.read()),this._excluded.django||(t=t||this.__patterns.django_comment.read(),t=t||this.__patterns.django.read())),this._disabled.smarty||this._disabled.django&&this._disabled.handlebars&&(t=t||this.__patterns.smarty_comment.read(),t=t||this.__patterns.smarty_literal.read(),t=t||this.__patterns.smarty.read()));return t},t.exports.TemplatablePattern=o}],e={};function r(n){var i=e[n];if(void 0!==i)return i.exports;var o=e[n]={exports:{}};return t[n](o,o.exports,r),o.exports}var i=r(0);n=i})();var o=n;r=[],i=function(){return{js_beautify:o}}.apply(e,r),void 0===i||(t.exports=i)}()},43168:function(t,e,n){var r=n(70650),i=n(59905),o=r(i,"DataView");t.exports=o},5241:function(t,e,n){var r=n(35668),i=n(59170),o=n(36701),a=n(55569),s=n(86329);function l(t){var e=-1,n=null==t?0:t.length;this.clear();while(++e<n){var r=t[e];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype["delete"]=i,l.prototype.get=o,l.prototype.has=a,l.prototype.set=s,t.exports=l},47563:function(t,e,n){var r=n(4298),i=n(80748),o=n(24383),a=n(74979),s=n(94267);function l(t){var e=-1,n=null==t?0:t.length;this.clear();while(++e<n){var r=t[e];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype["delete"]=i,l.prototype.get=o,l.prototype.has=a,l.prototype.set=s,t.exports=l},63067:function(t,e,n){var r=n(70650),i=n(59905),o=r(i,"Map");t.exports=o},77737:function(t,e,n){var r=n(32612),i=n(44882),o=n(25773),a=n(30433),s=n(94601);function l(t){var e=-1,n=null==t?0:t.length;this.clear();while(++e<n){var r=t[e];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype["delete"]=i,l.prototype.get=o,l.prototype.has=a,l.prototype.set=s,t.exports=l},22784:function(t,e,n){var r=n(70650),i=n(59905),o=r(i,"Promise");t.exports=o},13109:function(t,e,n){var r=n(70650),i=n(59905),o=r(i,"Set");t.exports=o},29135:function(t,e,n){n(30381);var r=n(77737),i=n(48976),o=n(7055);function a(t){var e=-1,n=null==t?0:t.length;this.__data__=new r;while(++e<n)this.add(t[e])}a.prototype.add=a.prototype.push=i,a.prototype.has=o,t.exports=a},63341:function(t,e,n){var r=n(47563),i=n(88816),o=n(96310),a=n(79809),s=n(77165),l=n(48837);function u(t){var e=this.__data__=new r(t);this.size=e.size}u.prototype.clear=i,u.prototype["delete"]=o,u.prototype.get=a,u.prototype.has=s,u.prototype.set=l,t.exports=u},22965:function(t,e,n){var r=n(59905),i=r.Symbol;t.exports=i},40344:function(t,e,n){var r=n(59905),i=r.Uint8Array;t.exports=i},43195:function(t,e,n){var r=n(70650),i=n(59905),o=r(i,"WeakMap");t.exports=o},68213:function(t){function e(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}t.exports=e},23773:function(t){function e(t,e){var n=-1,r=null==t?0:t.length;while(++n<r)if(!1===e(t[n],n,t))break;return t}t.exports=e},56046:function(t){function e(t,e){var n=-1,r=null==t?0:t.length,i=0,o=[];while(++n<r){var a=t[n];e(a,n,t)&&(o[i++]=a)}return o}t.exports=e},29299:function(t,e,n){n(30381);var r=n(78148),i=n(78544),o=n(18965),a=n(59828),s=n(75317),l=n(77523),u=Object.prototype,c=u.hasOwnProperty;function h(t,e){var n=o(t),u=!n&&i(t),h=!n&&!u&&a(t),d=!n&&!u&&!h&&l(t),p=n||u||h||d,f=p?r(t.length,String):[],g=f.length;for(var v in t)!e&&!c.call(t,v)||p&&("length"==v||h&&("offset"==v||"parent"==v)||d&&("buffer"==v||"byteLength"==v||"byteOffset"==v)||s(v,g))||f.push(v);return f}t.exports=h},30220:function(t){function e(t,e){var n=-1,r=e.length,i=t.length;while(++n<r)t[i+n]=e[n];return t}t.exports=e},98452:function(t){function e(t,e){var n=-1,r=null==t?0:t.length;while(++n<r)if(e(t[n],n,t))return!0;return!1}t.exports=e},23289:function(t,e,n){var r=n(25948),i=n(3900);function o(t,e,n){(void 0!==n&&!i(t[e],n)||void 0===n&&!(e in t))&&r(t,e,n)}t.exports=o},58455:function(t,e,n){var r=n(25948),i=n(3900),o=Object.prototype,a=o.hasOwnProperty;function s(t,e,n){var o=t[e];a.call(t,e)&&i(o,n)&&(void 0!==n||e in t)||r(t,e,n)}t.exports=s},51701:function(t,e,n){var r=n(3900);function i(t,e){var n=t.length;while(n--)if(r(t[n][0],e))return n;return-1}t.exports=i},42785:function(t,e,n){var r=n(97867),i=n(97938);function o(t,e){return t&&r(e,i(e),t)}t.exports=o},44042:function(t,e,n){var r=n(97867),i=n(67477);function o(t,e){return t&&r(e,i(e),t)}t.exports=o},25948:function(t,e,n){var r=n(60071);function i(t,e,n){"__proto__"==e&&r?r(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}t.exports=i},47451:function(t,e,n){var r=n(63341),i=n(23773),o=n(58455),a=n(42785),s=n(44042),l=n(68382),u=n(43403),c=n(75843),h=n(95792),d=n(12510),p=n(68233),f=n(93033),g=n(22185),v=n(74699),m=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]",R="[object GeneratorFunction]",D="[object Map]",L="[object Number]",N="[object Object]",z="[object RegExp]",B="[object Set]",F="[object String]",W="[object Symbol]",j="[object WeakMap]",V="[object ArrayBuffer]",Q="[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]",tt={};function et(t,e,n,T,P,I){var $,D=e&A,L=e&k,z=e&C;if(n&&($=P?n(t,T,P,I):n(t)),void 0!==$)return $;if(!x(t))return t;var B=y(t);if(B){if($=g(t),!D)return u(t,$)}else{var F=f(t),W=F==E||F==R;if(b(t))return l(t,D);if(F==N||F==M||W&&!P){if($=L||W?{}:m(t),!D)return L?h(t,s($,t)):c(t,a($,t))}else{if(!tt[F])return P?t:{};$=v(t,F,D)}}I||(I=new r);var j=I.get(t);if(j)return j;I.set(t,$),w(t)?t.forEach((function(r){$.add(et(r,e,n,r,t,I))})):_(t)&&t.forEach((function(r,i){$.set(i,et(r,e,n,i,t,I))}));var V=z?L?p:d:L?S:O,Q=B?void 0:V(t);return i(Q||t,(function(r,i){Q&&(i=r,r=t[i]),o($,i,et(r,e,n,i,t,I))})),$}tt[M]=tt[T]=tt[V]=tt[Q]=tt[P]=tt[I]=tt[H]=tt[Z]=tt[G]=tt[X]=tt[U]=tt[D]=tt[L]=tt[N]=tt[z]=tt[B]=tt[F]=tt[W]=tt[Y]=tt[q]=tt[K]=tt[J]=!0,tt[$]=tt[E]=tt[j]=!1,t.exports=et},98204:function(t,e,n){var r=n(14369),i=Object.create,o=function(){function t(){}return function(e){if(!r(e))return{};if(i)return i(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();t.exports=o},13669:function(t,e,n){var r=n(14681),i=r();t.exports=i},25163:function(t,e,n){var r=n(30220),i=n(18965);function o(t,e,n){var o=e(t);return i(t)?o:r(o,n(t))}t.exports=o},60116:function(t,e,n){var r=n(22965),i=n(74183),o=n(24370),a="[object Null]",s="[object Undefined]",l=r?r.toStringTag:void 0;function u(t){return null==t?void 0===t?s:a:l&&l in Object(t)?i(t):o(t)}t.exports=u},58362:function(t,e,n){var r=n(60116),i=n(46238),o="[object Arguments]";function a(t){return i(t)&&r(t)==o}t.exports=a},50722:function(t,e,n){var r=n(75720),i=n(46238);function o(t,e,n,a,s){return t===e||(null==t||null==e||!i(t)&&!i(e)?t!==t&&e!==e:r(t,e,n,a,o,s))}t.exports=o},75720:function(t,e,n){var r=n(63341),i=n(60739),o=n(71094),a=n(83277),s=n(93033),l=n(18965),u=n(59828),c=n(77523),h=1,d="[object Arguments]",p="[object Array]",f="[object Object]",g=Object.prototype,v=g.hasOwnProperty;function m(t,e,n,g,m,y){var b=l(t),_=l(e),x=b?p:s(t),w=_?p:s(e);x=x==d?f:x,w=w==d?f:w;var O=x==f,S=w==f,A=x==w;if(A&&u(t)){if(!u(e))return!1;b=!0,O=!1}if(A&&!O)return y||(y=new r),b||c(t)?i(t,e,n,g,m,y):o(t,e,x,n,g,m,y);if(!(n&h)){var k=O&&v.call(t,"__wrapped__"),C=S&&v.call(e,"__wrapped__");if(k||C){var M=k?t.value():t,T=C?e.value():e;return y||(y=new r),m(M,T,n,g,y)}}return!!A&&(y||(y=new r),a(t,e,n,g,m,y))}t.exports=m},67928:function(t,e,n){var r=n(93033),i=n(46238),o="[object Map]";function a(t){return i(t)&&r(t)==o}t.exports=a},17007:function(t,e,n){var r=n(21798),i=n(740),o=n(14369),a=n(10965),s=/[\\^$.*+?()[\]{}|]/g,l=/^\[object .+?Constructor\]$/,u=Function.prototype,c=Object.prototype,h=u.toString,d=c.hasOwnProperty,p=RegExp("^"+h.call(d).replace(s,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function f(t){if(!o(t)||i(t))return!1;var e=r(t)?p:l;return e.test(a(t))}t.exports=f},86882:function(t,e,n){var r=n(93033),i=n(46238),o="[object Set]";function a(t){return i(t)&&r(t)==o}t.exports=a},6081:function(t,e,n){var r=n(60116),i=n(43178),o=n(46238),a="[object Arguments]",s="[object Array]",l="[object Boolean]",u="[object Date]",c="[object Error]",h="[object Function]",d="[object Map]",p="[object Number]",f="[object Object]",g="[object RegExp]",v="[object Set]",m="[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(t){return o(t)&&i(t.length)&&!!P[r(t)]}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[h]=P[d]=P[p]=P[f]=P[g]=P[v]=P[m]=P[y]=!1,t.exports=I},64052:function(t,e,n){n(30381);var r=n(7875),i=n(73318),o=Object.prototype,a=o.hasOwnProperty;function s(t){if(!r(t))return i(t);var e=[];for(var n in Object(t))a.call(t,n)&&"constructor"!=n&&e.push(n);return e}t.exports=s},58715:function(t,e,n){n(30381);var r=n(14369),i=n(7875),o=n(23473),a=Object.prototype,s=a.hasOwnProperty;function l(t){if(!r(t))return o(t);var e=i(t),n=[];for(var a in t)("constructor"!=a||!e&&s.call(t,a))&&n.push(a);return n}t.exports=l},82974:function(t,e,n){var r=n(63341),i=n(23289),o=n(13669),a=n(55692),s=n(14369),l=n(67477),u=n(99914);function c(t,e,n,h,d){t!==e&&o(e,(function(o,l){if(d||(d=new r),s(o))a(t,e,l,n,c,h,d);else{var p=h?h(u(t,l),o,l+"",t,e,d):void 0;void 0===p&&(p=o),i(t,l,p)}}),l)}t.exports=c},55692:function(t,e,n){var r=n(23289),i=n(68382),o=n(15237),a=n(43403),s=n(229),l=n(78544),u=n(18965),c=n(1337),h=n(59828),d=n(21798),p=n(14369),f=n(95759),g=n(77523),v=n(99914),m=n(94520);function y(t,e,n,y,b,_,x){var w=v(t,n),O=v(e,n),S=x.get(O);if(S)r(t,n,S);else{var A=_?_(w,O,n+"",t,e,x):void 0,k=void 0===A;if(k){var C=u(O),M=!C&&h(O),T=!C&&!M&&g(O);A=O,C||M||T?u(w)?A=w:c(w)?A=a(w):M?(k=!1,A=i(O,!0)):T?(k=!1,A=o(O,!0)):A=[]:f(O)||l(O)?(A=w,l(w)?A=m(w):p(w)&&!d(w)||(A=s(O))):k=!1}k&&(x.set(O,A),b(A,O,y,_,x),x["delete"](O)),r(t,n,A)}}t.exports=y},93018:function(t,e,n){var r=n(51252),i=n(24969),o=n(20605);function a(t,e){return o(i(t,e,r),t+"")}t.exports=a},34230:function(t,e,n){var r=n(47002),i=n(60071),o=n(51252),a=i?function(t,e){return i(t,"toString",{configurable:!0,enumerable:!1,value:r(e),writable:!0})}:o;t.exports=a},78148:function(t){function e(t,e){var n=-1,r=Array(t);while(++n<t)r[n]=e(n);return r}t.exports=e},2004:function(t,e,n){var r=n(99652),i=/^\s+/;function o(t){return t?t.slice(0,r(t)+1).replace(i,""):t}t.exports=o},49361:function(t){function e(t){return function(e){return t(e)}}t.exports=e},33847:function(t){function e(t,e){return t.has(e)}t.exports=e},67233:function(t,e,n){var r=n(40344);function i(t){var e=new t.constructor(t.byteLength);return new r(e).set(new r(t)),e}t.exports=i},68382:function(t,e,n){t=n.nmd(t);var r=n(59905),i=e&&!e.nodeType&&e,o=i&&t&&!t.nodeType&&t,a=o&&o.exports===i,s=a?r.Buffer:void 0,l=s?s.allocUnsafe:void 0;function u(t,e){if(e)return t.slice();var n=t.length,r=l?l(n):new t.constructor(n);return t.copy(r),r}t.exports=u},70421:function(t,e,n){var r=n(67233);function i(t,e){var n=e?r(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}t.exports=i},89309:function(t){var e=/\w*$/;function n(t){var n=new t.constructor(t.source,e.exec(t));return n.lastIndex=t.lastIndex,n}t.exports=n},29588:function(t,e,n){var r=n(22965),i=r?r.prototype:void 0,o=i?i.valueOf:void 0;function a(t){return o?Object(o.call(t)):{}}t.exports=a},15237:function(t,e,n){var r=n(67233);function i(t,e){var n=e?r(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}t.exports=i},43403:function(t){function e(t,e){var n=-1,r=t.length;e||(e=Array(r));while(++n<r)e[n]=t[n];return e}t.exports=e},97867:function(t,e,n){var r=n(58455),i=n(25948);function o(t,e,n,o){var a=!n;n||(n={});var s=-1,l=e.length;while(++s<l){var u=e[s],c=o?o(n[u],t[u],u,n,t):void 0;void 0===c&&(c=t[u]),a?i(n,u,c):r(n,u,c)}return n}t.exports=o},75843:function(t,e,n){var r=n(97867),i=n(8628);function o(t,e){return r(t,i(t),e)}t.exports=o},95792:function(t,e,n){var r=n(97867),i=n(60315);function o(t,e){return r(t,i(t),e)}t.exports=o},18565:function(t,e,n){var r=n(59905),i=r["__core-js_shared__"];t.exports=i},93859:function(t,e,n){var r=n(93018),i=n(41684);function o(t){return r((function(e,n){var r=-1,o=n.length,a=o>1?n[o-1]:void 0,s=o>2?n[2]:void 0;a=t.length>3&&"function"==typeof a?(o--,a):void 0,s&&i(n[0],n[1],s)&&(a=o<3?void 0:a,o=1),e=Object(e);while(++r<o){var l=n[r];l&&t(e,l,r,a)}return e}))}t.exports=o},14681:function(t){function e(t){return function(e,n,r){var i=-1,o=Object(e),a=r(e),s=a.length;while(s--){var l=a[t?s:++i];if(!1===n(o[l],l,o))break}return e}}t.exports=e},60071:function(t,e,n){var r=n(70650),i=function(){try{var t=r(Object,"defineProperty");return t({},"",{}),t}catch(e){}}();t.exports=i},60739:function(t,e,n){n(30381);var r=n(29135),i=n(98452),o=n(33847),a=1,s=2;function l(t,e,n,l,u,c){var h=n&a,d=t.length,p=e.length;if(d!=p&&!(h&&p>d))return!1;var f=c.get(t),g=c.get(e);if(f&&g)return f==e&&g==t;var v=-1,m=!0,y=n&s?new r:void 0;c.set(t,e),c.set(e,t);while(++v<d){var b=t[v],_=e[v];if(l)var x=h?l(_,b,v,e,t,c):l(b,_,v,t,e,c);if(void 0!==x){if(x)continue;m=!1;break}if(y){if(!i(e,(function(t,e){if(!o(y,e)&&(b===t||u(b,t,n,l,c)))return y.push(e)}))){m=!1;break}}else if(b!==_&&!u(b,_,n,l,c)){m=!1;break}}return c["delete"](t),c["delete"](e),m}t.exports=l},71094:function(t,e,n){var r=n(22965),i=n(40344),o=n(3900),a=n(60739),s=n(21473),l=n(68915),u=1,c=2,h="[object Boolean]",d="[object Date]",p="[object Error]",f="[object Map]",g="[object Number]",v="[object RegExp]",m="[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(t,e,n,r,w,S,A){switch(n){case x:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case _:return!(t.byteLength!=e.byteLength||!S(new i(t),new i(e)));case h:case d:case g:return o(+t,+e);case p:return t.name==e.name&&t.message==e.message;case v:case y:return t==e+"";case f:var k=s;case m:var C=r&u;if(k||(k=l),t.size!=e.size&&!C)return!1;var M=A.get(t);if(M)return M==e;r|=c,A.set(t,e);var T=a(k(t),k(e),r,w,S,A);return A["delete"](t),T;case b:if(O)return O.call(t)==O.call(e)}return!1}t.exports=S},83277:function(t,e,n){var r=n(12510),i=1,o=Object.prototype,a=o.hasOwnProperty;function s(t,e,n,o,s,l){var u=n&i,c=r(t),h=c.length,d=r(e),p=d.length;if(h!=p&&!u)return!1;var f=h;while(f--){var g=c[f];if(!(u?g in e:a.call(e,g)))return!1}var v=l.get(t),m=l.get(e);if(v&&m)return v==e&&m==t;var y=!0;l.set(t,e),l.set(e,t);var b=u;while(++f<h){g=c[f];var _=t[g],x=e[g];if(o)var w=u?o(x,_,g,e,t,l):o(_,x,g,t,e,l);if(!(void 0===w?_===x||s(_,x,n,o,l):w)){y=!1;break}b||(b="constructor"==g)}if(y&&!b){var O=t.constructor,S=e.constructor;O==S||!("constructor"in t)||!("constructor"in e)||"function"==typeof O&&O instanceof O&&"function"==typeof S&&S instanceof S||(y=!1)}return l["delete"](t),l["delete"](e),y}t.exports=s},53292:function(t,e,n){var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;t.exports=r},12510:function(t,e,n){var r=n(25163),i=n(8628),o=n(97938);function a(t){return r(t,o,i)}t.exports=a},68233:function(t,e,n){var r=n(25163),i=n(60315),o=n(67477);function a(t){return r(t,o,i)}t.exports=a},71335:function(t,e,n){var r=n(23238);function i(t,e){var n=t.__data__;return r(e)?n["string"==typeof e?"string":"hash"]:n.map}t.exports=i},70650:function(t,e,n){var r=n(17007),i=n(27564);function o(t,e){var n=i(t,e);return r(n)?n:void 0}t.exports=o},28539:function(t,e,n){var r=n(54131),i=r(Object.getPrototypeOf,Object);t.exports=i},74183:function(t,e,n){var r=n(22965),i=Object.prototype,o=i.hasOwnProperty,a=i.toString,s=r?r.toStringTag:void 0;function l(t){var e=o.call(t,s),n=t[s];try{t[s]=void 0;var r=!0}catch(l){}var i=a.call(t);return r&&(e?t[s]=n:delete t[s]),i}t.exports=l},8628:function(t,e,n){var r=n(56046),i=n(59877),o=Object.prototype,a=o.propertyIsEnumerable,s=Object.getOwnPropertySymbols,l=s?function(t){return null==t?[]:(t=Object(t),r(s(t),(function(e){return a.call(t,e)})))}:i;t.exports=l},60315:function(t,e,n){var r=n(30220),i=n(28539),o=n(8628),a=n(59877),s=Object.getOwnPropertySymbols,l=s?function(t){var e=[];while(t)r(e,o(t)),t=i(t);return e}:a;t.exports=l},93033:function(t,e,n){n(57836),n(39109),n(34381);var r=n(43168),i=n(63067),o=n(22784),a=n(13109),s=n(43195),l=n(60116),u=n(10965),c="[object Map]",h="[object Object]",d="[object Promise]",p="[object Set]",f="[object WeakMap]",g="[object DataView]",v=u(r),m=u(i),y=u(o),b=u(a),_=u(s),x=l;(r&&x(new r(new ArrayBuffer(1)))!=g||i&&x(new i)!=c||o&&x(o.resolve())!=d||a&&x(new a)!=p||s&&x(new s)!=f)&&(x=function(t){var e=l(t),n=e==h?t.constructor:void 0,r=n?u(n):"";if(r)switch(r){case v:return g;case m:return c;case y:return d;case b:return p;case _:return f}return e}),t.exports=x},27564:function(t){function e(t,e){return null==t?void 0:t[e]}t.exports=e},35668:function(t,e,n){var r=n(79574);function i(){this.__data__=r?r(null):{},this.size=0}t.exports=i},59170:function(t){function e(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}t.exports=e},36701:function(t,e,n){var r=n(79574),i="__lodash_hash_undefined__",o=Object.prototype,a=o.hasOwnProperty;function s(t){var e=this.__data__;if(r){var n=e[t];return n===i?void 0:n}return a.call(e,t)?e[t]:void 0}t.exports=s},55569:function(t,e,n){var r=n(79574),i=Object.prototype,o=i.hasOwnProperty;function a(t){var e=this.__data__;return r?void 0!==e[t]:o.call(e,t)}t.exports=a},86329:function(t,e,n){var r=n(79574),i="__lodash_hash_undefined__";function o(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=r&&void 0===e?i:e,this}t.exports=o},22185:function(t){var e=Object.prototype,n=e.hasOwnProperty;function r(t){var e=t.length,r=new t.constructor(e);return e&&"string"==typeof t[0]&&n.call(t,"index")&&(r.index=t.index,r.input=t.input),r}t.exports=r},74699:function(t,e,n){var r=n(67233),i=n(70421),o=n(89309),a=n(29588),s=n(15237),l="[object Boolean]",u="[object Date]",c="[object Map]",h="[object Number]",d="[object RegExp]",p="[object Set]",f="[object String]",g="[object Symbol]",v="[object ArrayBuffer]",m="[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(t,e,n){var C=t.constructor;switch(e){case v:return r(t);case l:case u:return new C(+t);case m:return i(t,n);case y:case b:case _:case x:case w:case O:case S:case A:case k:return s(t,n);case c:return new C;case h:case f:return new C(t);case d:return o(t);case p:return new C;case g:return a(t)}}t.exports=C},229:function(t,e,n){var r=n(98204),i=n(28539),o=n(7875);function a(t){return"function"!=typeof t.constructor||o(t)?{}:r(i(t))}t.exports=a},75317:function(t){var e=9007199254740991,n=/^(?:0|[1-9]\d*)$/;function r(t,r){var i=typeof t;return r=null==r?e:r,!!r&&("number"==i||"symbol"!=i&&n.test(t))&&t>-1&&t%1==0&&t<r}t.exports=r},41684:function(t,e,n){var r=n(3900),i=n(4834),o=n(75317),a=n(14369);function s(t,e,n){if(!a(n))return!1;var s=typeof e;return!!("number"==s?i(n)&&o(e,n.length):"string"==s&&e in n)&&r(n[e],t)}t.exports=s},23238:function(t){function e(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}t.exports=e},740:function(t,e,n){var r=n(18565),i=function(){var t=/[^.]+$/.exec(r&&r.keys&&r.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();function o(t){return!!i&&i in t}t.exports=o},7875:function(t){var e=Object.prototype;function n(t){var n=t&&t.constructor,r="function"==typeof n&&n.prototype||e;return t===r}t.exports=n},4298:function(t){function e(){this.__data__=[],this.size=0}t.exports=e},80748:function(t,e,n){var r=n(51701),i=Array.prototype,o=i.splice;function a(t){var e=this.__data__,n=r(e,t);if(n<0)return!1;var i=e.length-1;return n==i?e.pop():o.call(e,n,1),--this.size,!0}t.exports=a},24383:function(t,e,n){var r=n(51701);function i(t){var e=this.__data__,n=r(e,t);return n<0?void 0:e[n][1]}t.exports=i},74979:function(t,e,n){var r=n(51701);function i(t){return r(this.__data__,t)>-1}t.exports=i},94267:function(t,e,n){n(30381);var r=n(51701);function i(t,e){var n=this.__data__,i=r(n,t);return i<0?(++this.size,n.push([t,e])):n[i][1]=e,this}t.exports=i},32612:function(t,e,n){var r=n(5241),i=n(47563),o=n(63067);function a(){this.size=0,this.__data__={hash:new r,map:new(o||i),string:new r}}t.exports=a},44882:function(t,e,n){var r=n(71335);function i(t){var e=r(this,t)["delete"](t);return this.size-=e?1:0,e}t.exports=i},25773:function(t,e,n){var r=n(71335);function i(t){return r(this,t).get(t)}t.exports=i},30433:function(t,e,n){var r=n(71335);function i(t){return r(this,t).has(t)}t.exports=i},94601:function(t,e,n){var r=n(71335);function i(t,e){var n=r(this,t),i=n.size;return n.set(t,e),this.size+=n.size==i?0:1,this}t.exports=i},21473:function(t){function e(t){var e=-1,n=Array(t.size);return t.forEach((function(t,r){n[++e]=[r,t]})),n}t.exports=e},79574:function(t,e,n){var r=n(70650),i=r(Object,"create");t.exports=i},73318:function(t,e,n){var r=n(54131),i=r(Object.keys,Object);t.exports=i},23473:function(t,e,n){function r(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e}n(30381),t.exports=r},71725:function(t,e,n){t=n.nmd(t);var r=n(53292),i=e&&!e.nodeType&&e,o=i&&t&&!t.nodeType&&t,a=o&&o.exports===i,s=a&&r.process,l=function(){try{var t=o&&o.require&&o.require("util").types;return t||s&&s.binding&&s.binding("util")}catch(e){}}();t.exports=l},24370:function(t){var e=Object.prototype,n=e.toString;function r(t){return n.call(t)}t.exports=r},54131:function(t){function e(t,e){return function(n){return t(e(n))}}t.exports=e},24969:function(t,e,n){var r=n(68213),i=Math.max;function o(t,e,n){return e=i(void 0===e?t.length-1:e,0),function(){var o=arguments,a=-1,s=i(o.length-e,0),l=Array(s);while(++a<s)l[a]=o[e+a];a=-1;var u=Array(e+1);while(++a<e)u[a]=o[a];return u[e]=n(l),r(t,this,u)}}t.exports=o},59905:function(t,e,n){var r=n(53292),i="object"==typeof self&&self&&self.Object===Object&&self,o=r||i||Function("return this")();t.exports=o},99914:function(t){function e(t,e){if(("constructor"!==e||"function"!==typeof t[e])&&"__proto__"!=e)return t[e]}t.exports=e},48976:function(t){var e="__lodash_hash_undefined__";function n(t){return this.__data__.set(t,e),this}t.exports=n},7055:function(t){function e(t){return this.__data__.has(t)}t.exports=e},68915:function(t){function e(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n}t.exports=e},20605:function(t,e,n){var r=n(34230),i=n(58695),o=i(r);t.exports=o},58695:function(t){var e=800,n=16,r=Date.now;function i(t){var i=0,o=0;return function(){var a=r(),s=n-(a-o);if(o=a,s>0){if(++i>=e)return arguments[0]}else i=0;return t.apply(void 0,arguments)}}t.exports=i},88816:function(t,e,n){var r=n(47563);function i(){this.__data__=new r,this.size=0}t.exports=i},96310:function(t){function e(t){var e=this.__data__,n=e["delete"](t);return this.size=e.size,n}t.exports=e},79809:function(t){function e(t){return this.__data__.get(t)}t.exports=e},77165:function(t){function e(t){return this.__data__.has(t)}t.exports=e},48837:function(t,e,n){n(30381);var r=n(47563),i=n(63067),o=n(77737),a=200;function s(t,e){var n=this.__data__;if(n instanceof r){var s=n.__data__;if(!i||s.length<a-1)return s.push([t,e]),this.size=++n.size,this;n=this.__data__=new o(s)}return n.set(t,e),this.size=n.size,this}t.exports=s},10965:function(t){var e=Function.prototype,n=e.toString;function r(t){if(null!=t){try{return n.call(t)}catch(e){}try{return t+""}catch(e){}}return""}t.exports=r},99652:function(t){var e=/\s/;function n(t){var n=t.length;while(n--&&e.test(t.charAt(n)));return n}t.exports=n},52723:function(t,e,n){var r=n(47451),i=1,o=4;function a(t){return r(t,i|o)}t.exports=a},47002:function(t){function e(t){return function(){return t}}t.exports=e},15529:function(t,e,n){var r=n(14369),i=n(64392),o=n(3018),a="Expected a function",s=Math.max,l=Math.min;function u(t,e,n){var u,c,h,d,p,f,g=0,v=!1,m=!1,y=!0;if("function"!=typeof t)throw new TypeError(a);function b(e){var n=u,r=c;return u=c=void 0,g=e,d=t.apply(r,n),d}function _(t){return g=t,p=setTimeout(O,e),v?b(t):d}function x(t){var n=t-f,r=t-g,i=e-n;return m?l(i,h-r):i}function w(t){var n=t-f,r=t-g;return void 0===f||n>=e||n<0||m&&r>=h}function O(){var t=i();if(w(t))return S(t);p=setTimeout(O,x(t))}function S(t){return p=void 0,y&&u?b(t):(u=c=void 0,d)}function A(){void 0!==p&&clearTimeout(p),g=0,u=f=c=p=void 0}function k(){return void 0===p?d:S(i())}function C(){var t=i(),n=w(t);if(u=arguments,c=this,f=t,n){if(void 0===p)return _(f);if(m)return clearTimeout(p),p=setTimeout(O,e),b(f)}return void 0===p&&(p=setTimeout(O,e)),d}return e=o(e)||0,r(n)&&(v=!!n.leading,m="maxWait"in n,h=m?s(o(n.maxWait)||0,e):h,y="trailing"in n?!!n.trailing:y),C.cancel=A,C.flush=k,C}t.exports=u},3900:function(t){function e(t,e){return t===e||t!==t&&e!==e}t.exports=e},51252:function(t){function e(t){return t}t.exports=e},78544:function(t,e,n){var r=n(58362),i=n(46238),o=Object.prototype,a=o.hasOwnProperty,s=o.propertyIsEnumerable,l=r(function(){return arguments}())?r:function(t){return i(t)&&a.call(t,"callee")&&!s.call(t,"callee")};t.exports=l},18965:function(t){var e=Array.isArray;t.exports=e},4834:function(t,e,n){var r=n(21798),i=n(43178);function o(t){return null!=t&&i(t.length)&&!r(t)}t.exports=o},1337:function(t,e,n){var r=n(4834),i=n(46238);function o(t){return i(t)&&r(t)}t.exports=o},59828:function(t,e,n){t=n.nmd(t);var r=n(59905),i=n(39387),o=e&&!e.nodeType&&e,a=o&&t&&!t.nodeType&&t,s=a&&a.exports===o,l=s?r.Buffer:void 0,u=l?l.isBuffer:void 0,c=u||i;t.exports=c},86608:function(t,e,n){var r=n(50722);function i(t,e){return r(t,e)}t.exports=i},21798:function(t,e,n){var r=n(60116),i=n(14369),o="[object AsyncFunction]",a="[object Function]",s="[object GeneratorFunction]",l="[object Proxy]";function u(t){if(!i(t))return!1;var e=r(t);return e==a||e==s||e==o||e==l}t.exports=u},43178:function(t){var e=9007199254740991;function n(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=e}t.exports=n},85966:function(t,e,n){var r=n(67928),i=n(49361),o=n(71725),a=o&&o.isMap,s=a?i(a):r;t.exports=s},14369:function(t){function e(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}t.exports=e},46238:function(t){function e(t){return null!=t&&"object"==typeof t}t.exports=e},95759:function(t,e,n){var r=n(60116),i=n(28539),o=n(46238),a="[object Object]",s=Function.prototype,l=Object.prototype,u=s.toString,c=l.hasOwnProperty,h=u.call(Object);function d(t){if(!o(t)||r(t)!=a)return!1;var e=i(t);if(null===e)return!0;var n=c.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&u.call(n)==h}t.exports=d},93676:function(t,e,n){var r=n(86882),i=n(49361),o=n(71725),a=o&&o.isSet,s=a?i(a):r;t.exports=s},93774:function(t,e,n){var r=n(60116),i=n(46238),o="[object Symbol]";function a(t){return"symbol"==typeof t||i(t)&&r(t)==o}t.exports=a},77523:function(t,e,n){var r=n(6081),i=n(49361),o=n(71725),a=o&&o.isTypedArray,s=a?i(a):r;t.exports=s},97938:function(t,e,n){var r=n(29299),i=n(64052),o=n(4834);function a(t){return o(t)?r(t):i(t)}t.exports=a},67477:function(t,e,n){var r=n(29299),i=n(58715),o=n(4834);function a(t){return o(t)?r(t,!0):i(t)}t.exports=a},11059:function(t,e,n){var r;t=n.nmd(t),n(30381),n(57836),n(39109),n(34381),function(){var i,o="4.17.21",a=200,s="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",l="Expected a function",u="Invalid `variable` option passed into `_.template`",c="__lodash_hash_undefined__",h=500,d="__lodash_placeholder__",p=1,f=2,g=4,v=1,m=2,y=1,b=2,_=4,x=8,w=16,O=32,S=64,A=128,k=256,C=512,M=30,T="...",P=800,I=16,$=1,E=2,R=3,D=1/0,L=9007199254740991,N=17976931348623157e292,z=NaN,B=4294967295,F=B-1,W=B>>>1,j=[["ary",A],["bind",y],["bindKey",b],["curry",x],["curryRight",w],["flip",C],["partial",O],["partialRight",S],["rearg",k]],V="[object Arguments]",Q="[object Array]",H="[object AsyncFunction]",Z="[object Boolean]",G="[object Date]",X="[object DOMException]",U="[object Error]",Y="[object Function]",q="[object GeneratorFunction]",K="[object Map]",J="[object Number]",tt="[object Null]",et="[object Object]",nt="[object Promise]",rt="[object Proxy]",it="[object RegExp]",ot="[object Set]",at="[object String]",st="[object Symbol]",lt="[object Undefined]",ut="[object WeakMap]",ct="[object WeakSet]",ht="[object ArrayBuffer]",dt="[object DataView]",pt="[object Float32Array]",ft="[object Float64Array]",gt="[object Int8Array]",vt="[object Int16Array]",mt="[object Int32Array]",yt="[object Uint8Array]",bt="[object Uint8ClampedArray]",_t="[object Uint16Array]",xt="[object Uint32Array]",wt=/\b__p \+= '';/g,Ot=/\b(__p \+=) '' \+/g,St=/(__e\(.*?\)|\b__t\)) \+\n'';/g,At=/&(?:amp|lt|gt|quot|#39);/g,kt=/[&<>"']/g,Ct=RegExp(At.source),Mt=RegExp(kt.source),Tt=/<%-([\s\S]+?)%>/g,Pt=/<%([\s\S]+?)%>/g,It=/<%=([\s\S]+?)%>/g,$t=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Et=/^\w*$/,Rt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Dt=/[\\^$.*+?()[\]{}|]/g,Lt=RegExp(Dt.source),Nt=/^\s+/,zt=/\s/,Bt=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Ft=/\{\n\/\* \[wrapped with (.+)\] \*/,Wt=/,? & /,jt=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Vt=/[()=,{}\[\]\/\s]/,Qt=/\\(\\)?/g,Ht=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Zt=/\w*$/,Gt=/^[-+]0x[0-9a-f]+$/i,Xt=/^0b[01]+$/i,Ut=/^\[object .+?Constructor\]$/,Yt=/^0o[0-7]+$/i,qt=/^(?:0|[1-9]\d*)$/,Kt=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Jt=/($^)/,te=/['\n\r\u2028\u2029\\]/g,ee="\\ud800-\\udfff",ne="\\u0300-\\u036f",re="\\ufe20-\\ufe2f",ie="\\u20d0-\\u20ff",oe=ne+re+ie,ae="\\u2700-\\u27bf",se="a-z\\xdf-\\xf6\\xf8-\\xff",le="\\xac\\xb1\\xd7\\xf7",ue="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",ce="\\u2000-\\u206f",he=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",de="A-Z\\xc0-\\xd6\\xd8-\\xde",pe="\\ufe0e\\ufe0f",fe=le+ue+ce+he,ge="['’]",ve="["+ee+"]",me="["+fe+"]",ye="["+oe+"]",be="\\d+",_e="["+ae+"]",xe="["+se+"]",we="[^"+ee+fe+be+ae+se+de+"]",Oe="\\ud83c[\\udffb-\\udfff]",Se="(?:"+ye+"|"+Oe+")",Ae="[^"+ee+"]",ke="(?:\\ud83c[\\udde6-\\uddff]){2}",Ce="[\\ud800-\\udbff][\\udc00-\\udfff]",Me="["+de+"]",Te="\\u200d",Pe="(?:"+xe+"|"+we+")",Ie="(?:"+Me+"|"+we+")",$e="(?:"+ge+"(?:d|ll|m|re|s|t|ve))?",Ee="(?:"+ge+"(?:D|LL|M|RE|S|T|VE))?",Re=Se+"?",De="["+pe+"]?",Le="(?:"+Te+"(?:"+[Ae,ke,Ce].join("|")+")"+De+Re+")*",Ne="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",ze="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Be=De+Re+Le,Fe="(?:"+[_e,ke,Ce].join("|")+")"+Be,We="(?:"+[Ae+ye+"?",ye,ke,Ce,ve].join("|")+")",je=RegExp(ge,"g"),Ve=RegExp(ye,"g"),Qe=RegExp(Oe+"(?="+Oe+")|"+We+Be,"g"),He=RegExp([Me+"?"+xe+"+"+$e+"(?="+[me,Me,"$"].join("|")+")",Ie+"+"+Ee+"(?="+[me,Me+Pe,"$"].join("|")+")",Me+"?"+Pe+"+"+$e,Me+"+"+Ee,ze,Ne,be,Fe].join("|"),"g"),Ze=RegExp("["+Te+ee+oe+pe+"]"),Ge=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Xe=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Ue=-1,Ye={};Ye[pt]=Ye[ft]=Ye[gt]=Ye[vt]=Ye[mt]=Ye[yt]=Ye[bt]=Ye[_t]=Ye[xt]=!0,Ye[V]=Ye[Q]=Ye[ht]=Ye[Z]=Ye[dt]=Ye[G]=Ye[U]=Ye[Y]=Ye[K]=Ye[J]=Ye[et]=Ye[it]=Ye[ot]=Ye[at]=Ye[ut]=!1;var qe={};qe[V]=qe[Q]=qe[ht]=qe[dt]=qe[Z]=qe[G]=qe[pt]=qe[ft]=qe[gt]=qe[vt]=qe[mt]=qe[K]=qe[J]=qe[et]=qe[it]=qe[ot]=qe[at]=qe[st]=qe[yt]=qe[bt]=qe[_t]=qe[xt]=!0,qe[U]=qe[Y]=qe[ut]=!1;var Ke={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"},Je={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},tn={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},en={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},nn=parseFloat,rn=parseInt,on="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,an="object"==typeof self&&self&&self.Object===Object&&self,sn=on||an||Function("return this")(),ln=e&&!e.nodeType&&e,un=ln&&t&&!t.nodeType&&t,cn=un&&un.exports===ln,hn=cn&&on.process,dn=function(){try{var t=un&&un.require&&un.require("util").types;return t||hn&&hn.binding&&hn.binding("util")}catch(e){}}(),pn=dn&&dn.isArrayBuffer,fn=dn&&dn.isDate,gn=dn&&dn.isMap,vn=dn&&dn.isRegExp,mn=dn&&dn.isSet,yn=dn&&dn.isTypedArray;function bn(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}function _n(t,e,n,r){var i=-1,o=null==t?0:t.length;while(++i<o){var a=t[i];e(r,a,n(a),t)}return r}function xn(t,e){var n=-1,r=null==t?0:t.length;while(++n<r)if(!1===e(t[n],n,t))break;return t}function wn(t,e){var n=null==t?0:t.length;while(n--)if(!1===e(t[n],n,t))break;return t}function On(t,e){var n=-1,r=null==t?0:t.length;while(++n<r)if(!e(t[n],n,t))return!1;return!0}function Sn(t,e){var n=-1,r=null==t?0:t.length,i=0,o=[];while(++n<r){var a=t[n];e(a,n,t)&&(o[i++]=a)}return o}function An(t,e){var n=null==t?0:t.length;return!!n&&Nn(t,e,0)>-1}function kn(t,e,n){var r=-1,i=null==t?0:t.length;while(++r<i)if(n(e,t[r]))return!0;return!1}function Cn(t,e){var n=-1,r=null==t?0:t.length,i=Array(r);while(++n<r)i[n]=e(t[n],n,t);return i}function Mn(t,e){var n=-1,r=e.length,i=t.length;while(++n<r)t[i+n]=e[n];return t}function Tn(t,e,n,r){var i=-1,o=null==t?0:t.length;r&&o&&(n=t[++i]);while(++i<o)n=e(n,t[i],i,t);return n}function Pn(t,e,n,r){var i=null==t?0:t.length;r&&i&&(n=t[--i]);while(i--)n=e(n,t[i],i,t);return n}function In(t,e){var n=-1,r=null==t?0:t.length;while(++n<r)if(e(t[n],n,t))return!0;return!1}var $n=Wn("length");function En(t){return t.split("")}function Rn(t){return t.match(jt)||[]}function Dn(t,e,n){var r;return n(t,(function(t,n,i){if(e(t,n,i))return r=n,!1})),r}function Ln(t,e,n,r){var i=t.length,o=n+(r?1:-1);while(r?o--:++o<i)if(e(t[o],o,t))return o;return-1}function Nn(t,e,n){return e===e?pr(t,e,n):Ln(t,Bn,n)}function zn(t,e,n,r){var i=n-1,o=t.length;while(++i<o)if(r(t[i],e))return i;return-1}function Bn(t){return t!==t}function Fn(t,e){var n=null==t?0:t.length;return n?Hn(t,e)/n:z}function Wn(t){return function(e){return null==e?i:e[t]}}function jn(t){return function(e){return null==t?i:t[e]}}function Vn(t,e,n,r,i){return i(t,(function(t,i,o){n=r?(r=!1,t):e(n,t,i,o)})),n}function Qn(t,e){var n=t.length;t.sort(e);while(n--)t[n]=t[n].value;return t}function Hn(t,e){var n,r=-1,o=t.length;while(++r<o){var a=e(t[r]);a!==i&&(n=n===i?a:n+a)}return n}function Zn(t,e){var n=-1,r=Array(t);while(++n<t)r[n]=e(n);return r}function Gn(t,e){return Cn(e,(function(e){return[e,t[e]]}))}function Xn(t){return t?t.slice(0,mr(t)+1).replace(Nt,""):t}function Un(t){return function(e){return t(e)}}function Yn(t,e){return Cn(e,(function(e){return t[e]}))}function qn(t,e){return t.has(e)}function Kn(t,e){var n=-1,r=t.length;while(++n<r&&Nn(e,t[n],0)>-1);return n}function Jn(t,e){var n=t.length;while(n--&&Nn(e,t[n],0)>-1);return n}function tr(t,e){var n=t.length,r=0;while(n--)t[n]===e&&++r;return r}var er=jn(Ke),nr=jn(Je);function rr(t){return"\\"+en[t]}function ir(t,e){return null==t?i:t[e]}function or(t){return Ze.test(t)}function ar(t){return Ge.test(t)}function sr(t){var e,n=[];while(!(e=t.next()).done)n.push(e.value);return n}function lr(t){var e=-1,n=Array(t.size);return t.forEach((function(t,r){n[++e]=[r,t]})),n}function ur(t,e){return function(n){return t(e(n))}}function cr(t,e){var n=-1,r=t.length,i=0,o=[];while(++n<r){var a=t[n];a!==e&&a!==d||(t[n]=d,o[i++]=n)}return o}function hr(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n}function dr(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=[t,t]})),n}function pr(t,e,n){var r=n-1,i=t.length;while(++r<i)if(t[r]===e)return r;return-1}function fr(t,e,n){var r=n+1;while(r--)if(t[r]===e)return r;return r}function gr(t){return or(t)?br(t):$n(t)}function vr(t){return or(t)?_r(t):En(t)}function mr(t){var e=t.length;while(e--&&zt.test(t.charAt(e)));return e}var yr=jn(tn);function br(t){var e=Qe.lastIndex=0;while(Qe.test(t))++e;return e}function _r(t){return t.match(Qe)||[]}function xr(t){return t.match(He)||[]}var wr=function t(e){e=null==e?sn:Or.defaults(sn.Object(),e,Or.pick(sn,Xe));var n=e.Array,r=e.Date,zt=e.Error,jt=e.Function,ee=e.Math,ne=e.Object,re=e.RegExp,ie=e.String,oe=e.TypeError,ae=n.prototype,se=jt.prototype,le=ne.prototype,ue=e["__core-js_shared__"],ce=se.toString,he=le.hasOwnProperty,de=0,pe=function(){var t=/[^.]+$/.exec(ue&&ue.keys&&ue.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),fe=le.toString,ge=ce.call(ne),ve=sn._,me=re("^"+ce.call(he).replace(Dt,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ye=cn?e.Buffer:i,be=e.Symbol,_e=e.Uint8Array,xe=ye?ye.allocUnsafe:i,we=ur(ne.getPrototypeOf,ne),Oe=ne.create,Se=le.propertyIsEnumerable,Ae=ae.splice,ke=be?be.isConcatSpreadable:i,Ce=be?be.iterator:i,Me=be?be.toStringTag:i,Te=function(){try{var t=Ga(ne,"defineProperty");return t({},"",{}),t}catch(e){}}(),Pe=e.clearTimeout!==sn.clearTimeout&&e.clearTimeout,Ie=r&&r.now!==sn.Date.now&&r.now,$e=e.setTimeout!==sn.setTimeout&&e.setTimeout,Ee=ee.ceil,Re=ee.floor,De=ne.getOwnPropertySymbols,Le=ye?ye.isBuffer:i,Ne=e.isFinite,ze=ae.join,Be=ur(ne.keys,ne),Fe=ee.max,We=ee.min,Qe=r.now,He=e.parseInt,Ze=ee.random,Ge=ae.reverse,Ke=Ga(e,"DataView"),Je=Ga(e,"Map"),tn=Ga(e,"Promise"),en=Ga(e,"Set"),on=Ga(e,"WeakMap"),an=Ga(ne,"create"),ln=on&&new on,un={},hn=$s(Ke),dn=$s(Je),$n=$s(tn),En=$s(en),jn=$s(on),pr=be?be.prototype:i,br=pr?pr.valueOf:i,_r=pr?pr.toString:i;function wr(t){if(Ac(t)&&!lc(t)&&!(t instanceof Cr)){if(t instanceof kr)return t;if(he.call(t,"__wrapped__"))return Rs(t)}return new kr(t)}var Sr=function(){function t(){}return function(e){if(!Sc(e))return{};if(Oe)return Oe(e);t.prototype=e;var n=new t;return t.prototype=i,n}}();function Ar(){}function kr(t,e){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!e,this.__index__=0,this.__values__=i}function Cr(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=B,this.__views__=[]}function Mr(){var t=new Cr(this.__wrapped__);return t.__actions__=ia(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=ia(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=ia(this.__views__),t}function Tr(){if(this.__filtered__){var t=new Cr(this);t.__dir__=-1,t.__filtered__=!0}else t=this.clone(),t.__dir__*=-1;return t}function Pr(){var t=this.__wrapped__.value(),e=this.__dir__,n=lc(t),r=e<0,i=n?t.length:0,o=Ka(0,i,this.__views__),a=o.start,s=o.end,l=s-a,u=r?s:a-1,c=this.__iteratees__,h=c.length,d=0,p=We(l,this.__takeCount__);if(!n||!r&&i==l&&p==l)return Bo(t,this.__actions__);var f=[];t:while(l--&&d<p){u+=e;var g=-1,v=t[u];while(++g<h){var m=c[g],y=m.iteratee,b=m.type,_=y(v);if(b==E)v=_;else if(!_){if(b==$)continue t;break t}}f[d++]=v}return f}function Ir(t){var e=-1,n=null==t?0:t.length;this.clear();while(++e<n){var r=t[e];this.set(r[0],r[1])}}function $r(){this.__data__=an?an(null):{},this.size=0}function Er(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}function Rr(t){var e=this.__data__;if(an){var n=e[t];return n===c?i:n}return he.call(e,t)?e[t]:i}function Dr(t){var e=this.__data__;return an?e[t]!==i:he.call(e,t)}function Lr(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=an&&e===i?c:e,this}function Nr(t){var e=-1,n=null==t?0:t.length;this.clear();while(++e<n){var r=t[e];this.set(r[0],r[1])}}function zr(){this.__data__=[],this.size=0}function Br(t){var e=this.__data__,n=ci(e,t);if(n<0)return!1;var r=e.length-1;return n==r?e.pop():Ae.call(e,n,1),--this.size,!0}function Fr(t){var e=this.__data__,n=ci(e,t);return n<0?i:e[n][1]}function Wr(t){return ci(this.__data__,t)>-1}function jr(t,e){var n=this.__data__,r=ci(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this}function Vr(t){var e=-1,n=null==t?0:t.length;this.clear();while(++e<n){var r=t[e];this.set(r[0],r[1])}}function Qr(){this.size=0,this.__data__={hash:new Ir,map:new(Je||Nr),string:new Ir}}function Hr(t){var e=Ha(this,t)["delete"](t);return this.size-=e?1:0,e}function Zr(t){return Ha(this,t).get(t)}function Gr(t){return Ha(this,t).has(t)}function Xr(t,e){var n=Ha(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this}function Ur(t){var e=-1,n=null==t?0:t.length;this.__data__=new Vr;while(++e<n)this.add(t[e])}function Yr(t){return this.__data__.set(t,c),this}function qr(t){return this.__data__.has(t)}function Kr(t){var e=this.__data__=new Nr(t);this.size=e.size}function Jr(){this.__data__=new Nr,this.size=0}function ti(t){var e=this.__data__,n=e["delete"](t);return this.size=e.size,n}function ei(t){return this.__data__.get(t)}function ni(t){return this.__data__.has(t)}function ri(t,e){var n=this.__data__;if(n instanceof Nr){var r=n.__data__;if(!Je||r.length<a-1)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new Vr(r)}return n.set(t,e),this.size=n.size,this}function ii(t,e){var n=lc(t),r=!n&&sc(t),i=!n&&!r&&pc(t),o=!n&&!r&&!i&&Fc(t),a=n||r||i||o,s=a?Zn(t.length,ie):[],l=s.length;for(var u in t)!e&&!he.call(t,u)||a&&("length"==u||i&&("offset"==u||"parent"==u)||o&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||as(u,l))||s.push(u);return s}function oi(t){var e=t.length;return e?t[yo(0,e-1)]:i}function ai(t,e){return Ts(ia(t),vi(e,0,t.length))}function si(t){return Ts(ia(t))}function li(t,e,n){(n!==i&&!ic(t[e],n)||n===i&&!(e in t))&&fi(t,e,n)}function ui(t,e,n){var r=t[e];he.call(t,e)&&ic(r,n)&&(n!==i||e in t)||fi(t,e,n)}function ci(t,e){var n=t.length;while(n--)if(ic(t[n][0],e))return n;return-1}function hi(t,e,n,r){return wi(t,(function(t,i,o){e(r,t,n(t),o)})),r}function di(t,e){return t&&oa(e,wh(e),t)}function pi(t,e){return t&&oa(e,Oh(e),t)}function fi(t,e,n){"__proto__"==e&&Te?Te(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}function gi(t,e){var r=-1,o=e.length,a=n(o),s=null==t;while(++r<o)a[r]=s?i:vh(t,e[r]);return a}function vi(t,e,n){return t===t&&(n!==i&&(t=t<=n?t:n),e!==i&&(t=t>=e?t:e)),t}function mi(t,e,n,r,o,a){var s,l=e&p,u=e&f,c=e&g;if(n&&(s=o?n(t,r,o,a):n(t)),s!==i)return s;if(!Sc(t))return t;var h=lc(t);if(h){if(s=es(t),!l)return ia(t,s)}else{var d=qa(t),v=d==Y||d==q;if(pc(t))return Xo(t,l);if(d==et||d==V||v&&!o){if(s=u||v?{}:ns(t),!l)return u?sa(t,pi(s,t)):aa(t,di(s,t))}else{if(!qe[d])return o?t:{};s=rs(t,d,l)}}a||(a=new Kr);var m=a.get(t);if(m)return m;a.set(t,s),Nc(t)?t.forEach((function(r){s.add(mi(r,e,n,r,t,a))})):kc(t)&&t.forEach((function(r,i){s.set(i,mi(r,e,n,i,t,a))}));var y=c?u?Fa:Ba:u?Oh:wh,b=h?i:y(t);return xn(b||t,(function(r,i){b&&(i=r,r=t[i]),ui(s,i,mi(r,e,n,i,t,a))})),s}function yi(t){var e=wh(t);return function(n){return bi(n,t,e)}}function bi(t,e,n){var r=n.length;if(null==t)return!r;t=ne(t);while(r--){var o=n[r],a=e[o],s=t[o];if(s===i&&!(o in t)||!a(s))return!1}return!0}function _i(t,e,n){if("function"!=typeof t)throw new oe(l);return As((function(){t.apply(i,n)}),e)}function xi(t,e,n,r){var i=-1,o=An,s=!0,l=t.length,u=[],c=e.length;if(!l)return u;n&&(e=Cn(e,Un(n))),r?(o=kn,s=!1):e.length>=a&&(o=qn,s=!1,e=new Ur(e));t:while(++i<l){var h=t[i],d=null==n?h:n(h);if(h=r||0!==h?h:0,s&&d===d){var p=c;while(p--)if(e[p]===d)continue t;u.push(h)}else o(e,d,r)||u.push(h)}return u}wr.templateSettings={escape:Tt,evaluate:Pt,interpolate:It,variable:"",imports:{_:wr}},wr.prototype=Ar.prototype,wr.prototype.constructor=wr,kr.prototype=Sr(Ar.prototype),kr.prototype.constructor=kr,Cr.prototype=Sr(Ar.prototype),Cr.prototype.constructor=Cr,Ir.prototype.clear=$r,Ir.prototype["delete"]=Er,Ir.prototype.get=Rr,Ir.prototype.has=Dr,Ir.prototype.set=Lr,Nr.prototype.clear=zr,Nr.prototype["delete"]=Br,Nr.prototype.get=Fr,Nr.prototype.has=Wr,Nr.prototype.set=jr,Vr.prototype.clear=Qr,Vr.prototype["delete"]=Hr,Vr.prototype.get=Zr,Vr.prototype.has=Gr,Vr.prototype.set=Xr,Ur.prototype.add=Ur.prototype.push=Yr,Ur.prototype.has=qr,Kr.prototype.clear=Jr,Kr.prototype["delete"]=ti,Kr.prototype.get=ei,Kr.prototype.has=ni,Kr.prototype.set=ri;var wi=ca(Ii),Oi=ca($i,!0);function Si(t,e){var n=!0;return wi(t,(function(t,r,i){return n=!!e(t,r,i),n})),n}function Ai(t,e,n){var r=-1,o=t.length;while(++r<o){var a=t[r],s=e(a);if(null!=s&&(l===i?s===s&&!Bc(s):n(s,l)))var l=s,u=a}return u}function ki(t,e,n,r){var o=t.length;n=Xc(n),n<0&&(n=-n>o?0:o+n),r=r===i||r>o?o:Xc(r),r<0&&(r+=o),r=n>r?0:Uc(r);while(n<r)t[n++]=e;return t}function Ci(t,e){var n=[];return wi(t,(function(t,r,i){e(t,r,i)&&n.push(t)})),n}function Mi(t,e,n,r,i){var o=-1,a=t.length;n||(n=os),i||(i=[]);while(++o<a){var s=t[o];e>0&&n(s)?e>1?Mi(s,e-1,n,r,i):Mn(i,s):r||(i[i.length]=s)}return i}var Ti=ha(),Pi=ha(!0);function Ii(t,e){return t&&Ti(t,e,wh)}function $i(t,e){return t&&Pi(t,e,wh)}function Ei(t,e){return Sn(e,(function(e){return xc(t[e])}))}function Ri(t,e){e=Qo(e,t);var n=0,r=e.length;while(null!=t&&n<r)t=t[Is(e[n++])];return n&&n==r?t:i}function Di(t,e,n){var r=e(t);return lc(t)?r:Mn(r,n(t))}function Li(t){return null==t?t===i?lt:tt:Me&&Me in ne(t)?Xa(t):bs(t)}function Ni(t,e){return t>e}function zi(t,e){return null!=t&&he.call(t,e)}function Bi(t,e){return null!=t&&e in ne(t)}function Fi(t,e,n){return t>=We(e,n)&&t<Fe(e,n)}function Wi(t,e,r){var o=r?kn:An,a=t[0].length,s=t.length,l=s,u=n(s),c=1/0,h=[];while(l--){var d=t[l];l&&e&&(d=Cn(d,Un(e))),c=We(d.length,c),u[l]=!r&&(e||a>=120&&d.length>=120)?new Ur(l&&d):i}d=t[0];var p=-1,f=u[0];t:while(++p<a&&h.length<c){var g=d[p],v=e?e(g):g;if(g=r||0!==g?g:0,!(f?qn(f,v):o(h,v,r))){l=s;while(--l){var m=u[l];if(!(m?qn(m,v):o(t[l],v,r)))continue t}f&&f.push(v),h.push(g)}}return h}function ji(t,e,n,r){return Ii(t,(function(t,i,o){e(r,n(t),i,o)})),r}function Vi(t,e,n){e=Qo(e,t),t=xs(t,e);var r=null==t?t:t[Is(ol(e))];return null==r?i:bn(r,t,n)}function Qi(t){return Ac(t)&&Li(t)==V}function Hi(t){return Ac(t)&&Li(t)==ht}function Zi(t){return Ac(t)&&Li(t)==G}function Gi(t,e,n,r,i){return t===e||(null==t||null==e||!Ac(t)&&!Ac(e)?t!==t&&e!==e:Xi(t,e,n,r,Gi,i))}function Xi(t,e,n,r,i,o){var a=lc(t),s=lc(e),l=a?Q:qa(t),u=s?Q:qa(e);l=l==V?et:l,u=u==V?et:u;var c=l==et,h=u==et,d=l==u;if(d&&pc(t)){if(!pc(e))return!1;a=!0,c=!1}if(d&&!c)return o||(o=new Kr),a||Fc(t)?Da(t,e,n,r,i,o):La(t,e,l,n,r,i,o);if(!(n&v)){var p=c&&he.call(t,"__wrapped__"),f=h&&he.call(e,"__wrapped__");if(p||f){var g=p?t.value():t,m=f?e.value():e;return o||(o=new Kr),i(g,m,n,r,o)}}return!!d&&(o||(o=new Kr),Na(t,e,n,r,i,o))}function Ui(t){return Ac(t)&&qa(t)==K}function Yi(t,e,n,r){var o=n.length,a=o,s=!r;if(null==t)return!a;t=ne(t);while(o--){var l=n[o];if(s&&l[2]?l[1]!==t[l[0]]:!(l[0]in t))return!1}while(++o<a){l=n[o];var u=l[0],c=t[u],h=l[1];if(s&&l[2]){if(c===i&&!(u in t))return!1}else{var d=new Kr;if(r)var p=r(c,h,u,t,e,d);if(!(p===i?Gi(h,c,v|m,r,d):p))return!1}}return!0}function qi(t){if(!Sc(t)||hs(t))return!1;var e=xc(t)?me:Ut;return e.test($s(t))}function Ki(t){return Ac(t)&&Li(t)==it}function Ji(t){return Ac(t)&&qa(t)==ot}function to(t){return Ac(t)&&Oc(t.length)&&!!Ye[Li(t)]}function eo(t){return"function"==typeof t?t:null==t?Pd:"object"==typeof t?lc(t)?so(t[0],t[1]):ao(t):Vd(t)}function no(t){if(!ps(t))return Be(t);var e=[];for(var n in ne(t))he.call(t,n)&&"constructor"!=n&&e.push(n);return e}function ro(t){if(!Sc(t))return ys(t);var e=ps(t),n=[];for(var r in t)("constructor"!=r||!e&&he.call(t,r))&&n.push(r);return n}function io(t,e){return t<e}function oo(t,e){var r=-1,i=cc(t)?n(t.length):[];return wi(t,(function(t,n,o){i[++r]=e(t,n,o)})),i}function ao(t){var e=Za(t);return 1==e.length&&e[0][2]?gs(e[0][0],e[0][1]):function(n){return n===t||Yi(n,t,e)}}function so(t,e){return ls(t)&&fs(e)?gs(Is(t),e):function(n){var r=vh(n,t);return r===i&&r===e?yh(n,t):Gi(e,r,v|m)}}function lo(t,e,n,r,o){t!==e&&Ti(e,(function(a,s){if(o||(o=new Kr),Sc(a))uo(t,e,s,n,lo,r,o);else{var l=r?r(Os(t,s),a,s+"",t,e,o):i;l===i&&(l=a),li(t,s,l)}}),Oh)}function uo(t,e,n,r,o,a,s){var l=Os(t,n),u=Os(e,n),c=s.get(u);if(c)li(t,n,c);else{var h=a?a(l,u,n+"",t,e,s):i,d=h===i;if(d){var p=lc(u),f=!p&&pc(u),g=!p&&!f&&Fc(u);h=u,p||f||g?lc(l)?h=l:hc(l)?h=ia(l):f?(d=!1,h=Xo(u,!0)):g?(d=!1,h=Jo(u,!0)):h=[]:Rc(u)||sc(u)?(h=l,sc(l)?h=qc(l):Sc(l)&&!xc(l)||(h=ns(u))):d=!1}d&&(s.set(u,h),o(h,u,r,a,s),s["delete"](u)),li(t,n,h)}}function co(t,e){var n=t.length;if(n)return e+=e<0?n:0,as(e,n)?t[e]:i}function ho(t,e,n){e=e.length?Cn(e,(function(t){return lc(t)?function(e){return Ri(e,1===t.length?t[0]:t)}:t})):[Pd];var r=-1;e=Cn(e,Un(Qa()));var i=oo(t,(function(t,n,i){var o=Cn(e,(function(e){return e(t)}));return{criteria:o,index:++r,value:t}}));return Qn(i,(function(t,e){return ea(t,e,n)}))}function po(t,e){return fo(t,e,(function(e,n){return yh(t,n)}))}function fo(t,e,n){var r=-1,i=e.length,o={};while(++r<i){var a=e[r],s=Ri(t,a);n(s,a)&&So(o,Qo(a,t),s)}return o}function go(t){return function(e){return Ri(e,t)}}function vo(t,e,n,r){var i=r?zn:Nn,o=-1,a=e.length,s=t;t===e&&(e=ia(e)),n&&(s=Cn(t,Un(n)));while(++o<a){var l=0,u=e[o],c=n?n(u):u;while((l=i(s,c,l,r))>-1)s!==t&&Ae.call(s,l,1),Ae.call(t,l,1)}return t}function mo(t,e){var n=t?e.length:0,r=n-1;while(n--){var i=e[n];if(n==r||i!==o){var o=i;as(i)?Ae.call(t,i,1):Lo(t,i)}}return t}function yo(t,e){return t+Re(Ze()*(e-t+1))}function bo(t,e,r,i){var o=-1,a=Fe(Ee((e-t)/(r||1)),0),s=n(a);while(a--)s[i?a:++o]=t,t+=r;return s}function _o(t,e){var n="";if(!t||e<1||e>L)return n;do{e%2&&(n+=t),e=Re(e/2),e&&(t+=t)}while(e);return n}function xo(t,e){return ks(_s(t,e,Pd),t+"")}function wo(t){return oi(Wh(t))}function Oo(t,e){var n=Wh(t);return Ts(n,vi(e,0,n.length))}function So(t,e,n,r){if(!Sc(t))return t;e=Qo(e,t);var o=-1,a=e.length,s=a-1,l=t;while(null!=l&&++o<a){var u=Is(e[o]),c=n;if("__proto__"===u||"constructor"===u||"prototype"===u)return t;if(o!=s){var h=l[u];c=r?r(h,u,l):i,c===i&&(c=Sc(h)?h:as(e[o+1])?[]:{})}ui(l,u,c),l=l[u]}return t}var Ao=ln?function(t,e){return ln.set(t,e),t}:Pd,ko=Te?function(t,e){return Te(t,"toString",{configurable:!0,enumerable:!1,value:kd(e),writable:!0})}:Pd;function Co(t){return Ts(Wh(t))}function Mo(t,e,r){var i=-1,o=t.length;e<0&&(e=-e>o?0:o+e),r=r>o?o:r,r<0&&(r+=o),o=e>r?0:r-e>>>0,e>>>=0;var a=n(o);while(++i<o)a[i]=t[i+e];return a}function To(t,e){var n;return wi(t,(function(t,r,i){return n=e(t,r,i),!n})),!!n}function Po(t,e,n){var r=0,i=null==t?r:t.length;if("number"==typeof e&&e===e&&i<=W){while(r<i){var o=r+i>>>1,a=t[o];null!==a&&!Bc(a)&&(n?a<=e:a<e)?r=o+1:i=o}return i}return Io(t,e,Pd,n)}function Io(t,e,n,r){var o=0,a=null==t?0:t.length;if(0===a)return 0;e=n(e);var s=e!==e,l=null===e,u=Bc(e),c=e===i;while(o<a){var h=Re((o+a)/2),d=n(t[h]),p=d!==i,f=null===d,g=d===d,v=Bc(d);if(s)var m=r||g;else m=c?g&&(r||p):l?g&&p&&(r||!f):u?g&&p&&!f&&(r||!v):!f&&!v&&(r?d<=e:d<e);m?o=h+1:a=h}return We(a,F)}function $o(t,e){var n=-1,r=t.length,i=0,o=[];while(++n<r){var a=t[n],s=e?e(a):a;if(!n||!ic(s,l)){var l=s;o[i++]=0===a?0:a}}return o}function Eo(t){return"number"==typeof t?t:Bc(t)?z:+t}function Ro(t){if("string"==typeof t)return t;if(lc(t))return Cn(t,Ro)+"";if(Bc(t))return _r?_r.call(t):"";var e=t+"";return"0"==e&&1/t==-D?"-0":e}function Do(t,e,n){var r=-1,i=An,o=t.length,s=!0,l=[],u=l;if(n)s=!1,i=kn;else if(o>=a){var c=e?null:Ta(t);if(c)return hr(c);s=!1,i=qn,u=new Ur}else u=e?[]:l;t:while(++r<o){var h=t[r],d=e?e(h):h;if(h=n||0!==h?h:0,s&&d===d){var p=u.length;while(p--)if(u[p]===d)continue t;e&&u.push(d),l.push(h)}else i(u,d,n)||(u!==l&&u.push(d),l.push(h))}return l}function Lo(t,e){return e=Qo(e,t),t=xs(t,e),null==t||delete t[Is(ol(e))]}function No(t,e,n,r){return So(t,e,n(Ri(t,e)),r)}function zo(t,e,n,r){var i=t.length,o=r?i:-1;while((r?o--:++o<i)&&e(t[o],o,t));return n?Mo(t,r?0:o,r?o+1:i):Mo(t,r?o+1:0,r?i:o)}function Bo(t,e){var n=t;return n instanceof Cr&&(n=n.value()),Tn(e,(function(t,e){return e.func.apply(e.thisArg,Mn([t],e.args))}),n)}function Fo(t,e,r){var i=t.length;if(i<2)return i?Do(t[0]):[];var o=-1,a=n(i);while(++o<i){var s=t[o],l=-1;while(++l<i)l!=o&&(a[o]=xi(a[o]||s,t[l],e,r))}return Do(Mi(a,1),e,r)}function Wo(t,e,n){var r=-1,o=t.length,a=e.length,s={};while(++r<o){var l=r<a?e[r]:i;n(s,t[r],l)}return s}function jo(t){return hc(t)?t:[]}function Vo(t){return"function"==typeof t?t:Pd}function Qo(t,e){return lc(t)?t:ls(t,e)?[t]:Ps(Jc(t))}var Ho=xo;function Zo(t,e,n){var r=t.length;return n=n===i?r:n,!e&&n>=r?t:Mo(t,e,n)}var Go=Pe||function(t){return sn.clearTimeout(t)};function Xo(t,e){if(e)return t.slice();var n=t.length,r=xe?xe(n):new t.constructor(n);return t.copy(r),r}function Uo(t){var e=new t.constructor(t.byteLength);return new _e(e).set(new _e(t)),e}function Yo(t,e){var n=e?Uo(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}function qo(t){var e=new t.constructor(t.source,Zt.exec(t));return e.lastIndex=t.lastIndex,e}function Ko(t){return br?ne(br.call(t)):{}}function Jo(t,e){var n=e?Uo(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}function ta(t,e){if(t!==e){var n=t!==i,r=null===t,o=t===t,a=Bc(t),s=e!==i,l=null===e,u=e===e,c=Bc(e);if(!l&&!c&&!a&&t>e||a&&s&&u&&!l&&!c||r&&s&&u||!n&&u||!o)return 1;if(!r&&!a&&!c&&t<e||c&&n&&o&&!r&&!a||l&&n&&o||!s&&o||!u)return-1}return 0}function ea(t,e,n){var r=-1,i=t.criteria,o=e.criteria,a=i.length,s=n.length;while(++r<a){var l=ta(i[r],o[r]);if(l){if(r>=s)return l;var u=n[r];return l*("desc"==u?-1:1)}}return t.index-e.index}function na(t,e,r,i){var o=-1,a=t.length,s=r.length,l=-1,u=e.length,c=Fe(a-s,0),h=n(u+c),d=!i;while(++l<u)h[l]=e[l];while(++o<s)(d||o<a)&&(h[r[o]]=t[o]);while(c--)h[l++]=t[o++];return h}function ra(t,e,r,i){var o=-1,a=t.length,s=-1,l=r.length,u=-1,c=e.length,h=Fe(a-l,0),d=n(h+c),p=!i;while(++o<h)d[o]=t[o];var f=o;while(++u<c)d[f+u]=e[u];while(++s<l)(p||o<a)&&(d[f+r[s]]=t[o++]);return d}function ia(t,e){var r=-1,i=t.length;e||(e=n(i));while(++r<i)e[r]=t[r];return e}function oa(t,e,n,r){var o=!n;n||(n={});var a=-1,s=e.length;while(++a<s){var l=e[a],u=r?r(n[l],t[l],l,n,t):i;u===i&&(u=t[l]),o?fi(n,l,u):ui(n,l,u)}return n}function aa(t,e){return oa(t,Ua(t),e)}function sa(t,e){return oa(t,Ya(t),e)}function la(t,e){return function(n,r){var i=lc(n)?_n:hi,o=e?e():{};return i(n,t,Qa(r,2),o)}}function ua(t){return xo((function(e,n){var r=-1,o=n.length,a=o>1?n[o-1]:i,s=o>2?n[2]:i;a=t.length>3&&"function"==typeof a?(o--,a):i,s&&ss(n[0],n[1],s)&&(a=o<3?i:a,o=1),e=ne(e);while(++r<o){var l=n[r];l&&t(e,l,r,a)}return e}))}function ca(t,e){return function(n,r){if(null==n)return n;if(!cc(n))return t(n,r);var i=n.length,o=e?i:-1,a=ne(n);while(e?o--:++o<i)if(!1===r(a[o],o,a))break;return n}}function ha(t){return function(e,n,r){var i=-1,o=ne(e),a=r(e),s=a.length;while(s--){var l=a[t?s:++i];if(!1===n(o[l],l,o))break}return e}}function da(t,e,n){var r=e&y,i=ga(t);function o(){var e=this&&this!==sn&&this instanceof o?i:t;return e.apply(r?n:this,arguments)}return o}function pa(t){return function(e){e=Jc(e);var n=or(e)?vr(e):i,r=n?n[0]:e.charAt(0),o=n?Zo(n,1).join(""):e.slice(1);return r[t]()+o}}function fa(t){return function(e){return Tn(xd(Xh(e).replace(je,"")),t,"")}}function ga(t){return function(){var e=arguments;switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3]);case 5:return new t(e[0],e[1],e[2],e[3],e[4]);case 6:return new t(e[0],e[1],e[2],e[3],e[4],e[5]);case 7:return new t(e[0],e[1],e[2],e[3],e[4],e[5],e[6])}var n=Sr(t.prototype),r=t.apply(n,e);return Sc(r)?r:n}}function va(t,e,r){var o=ga(t);function a(){var s=arguments.length,l=n(s),u=s,c=Va(a);while(u--)l[u]=arguments[u];var h=s<3&&l[0]!==c&&l[s-1]!==c?[]:cr(l,c);if(s-=h.length,s<r)return Ca(t,e,ba,a.placeholder,i,l,h,i,i,r-s);var d=this&&this!==sn&&this instanceof a?o:t;return bn(d,this,l)}return a}function ma(t){return function(e,n,r){var o=ne(e);if(!cc(e)){var a=Qa(n,3);e=wh(e),n=function(t){return a(o[t],t,o)}}var s=t(e,n,r);return s>-1?o[a?e[s]:s]:i}}function ya(t){return za((function(e){var n=e.length,r=n,o=kr.prototype.thru;t&&e.reverse();while(r--){var a=e[r];if("function"!=typeof a)throw new oe(l);if(o&&!s&&"wrapper"==ja(a))var s=new kr([],!0)}r=s?r:n;while(++r<n){a=e[r];var u=ja(a),c="wrapper"==u?Wa(a):i;s=c&&cs(c[0])&&c[1]==(A|x|O|k)&&!c[4].length&&1==c[9]?s[ja(c[0])].apply(s,c[3]):1==a.length&&cs(a)?s[u]():s.thru(a)}return function(){var t=arguments,r=t[0];if(s&&1==t.length&&lc(r))return s.plant(r).value();var i=0,o=n?e[i].apply(this,t):r;while(++i<n)o=e[i].call(this,o);return o}}))}function ba(t,e,r,o,a,s,l,u,c,h){var d=e&A,p=e&y,f=e&b,g=e&(x|w),v=e&C,m=f?i:ga(t);function _(){var i=arguments.length,y=n(i),b=i;while(b--)y[b]=arguments[b];if(g)var x=Va(_),w=tr(y,x);if(o&&(y=na(y,o,a,g)),s&&(y=ra(y,s,l,g)),i-=w,g&&i<h){var O=cr(y,x);return Ca(t,e,ba,_.placeholder,r,y,O,u,c,h-i)}var S=p?r:this,A=f?S[t]:t;return i=y.length,u?y=ws(y,u):v&&i>1&&y.reverse(),d&&c<i&&(y.length=c),this&&this!==sn&&this instanceof _&&(A=m||ga(A)),A.apply(S,y)}return _}function _a(t,e){return function(n,r){return ji(n,t,e(r),{})}}function xa(t,e){return function(n,r){var o;if(n===i&&r===i)return e;if(n!==i&&(o=n),r!==i){if(o===i)return r;"string"==typeof n||"string"==typeof r?(n=Ro(n),r=Ro(r)):(n=Eo(n),r=Eo(r)),o=t(n,r)}return o}}function wa(t){return za((function(e){return e=Cn(e,Un(Qa())),xo((function(n){var r=this;return t(e,(function(t){return bn(t,r,n)}))}))}))}function Oa(t,e){e=e===i?" ":Ro(e);var n=e.length;if(n<2)return n?_o(e,t):e;var r=_o(e,Ee(t/gr(e)));return or(e)?Zo(vr(r),0,t).join(""):r.slice(0,t)}function Sa(t,e,r,i){var o=e&y,a=ga(t);function s(){var e=-1,l=arguments.length,u=-1,c=i.length,h=n(c+l),d=this&&this!==sn&&this instanceof s?a:t;while(++u<c)h[u]=i[u];while(l--)h[u++]=arguments[++e];return bn(d,o?r:this,h)}return s}function Aa(t){return function(e,n,r){return r&&"number"!=typeof r&&ss(e,n,r)&&(n=r=i),e=Gc(e),n===i?(n=e,e=0):n=Gc(n),r=r===i?e<n?1:-1:Gc(r),bo(e,n,r,t)}}function ka(t){return function(e,n){return"string"==typeof e&&"string"==typeof n||(e=Yc(e),n=Yc(n)),t(e,n)}}function Ca(t,e,n,r,o,a,s,l,u,c){var h=e&x,d=h?s:i,p=h?i:s,f=h?a:i,g=h?i:a;e|=h?O:S,e&=~(h?S:O),e&_||(e&=~(y|b));var v=[t,e,o,f,d,g,p,l,u,c],m=n.apply(i,v);return cs(t)&&Ss(m,v),m.placeholder=r,Cs(m,t,e)}function Ma(t){var e=ee[t];return function(t,n){if(t=Yc(t),n=null==n?0:We(Xc(n),292),n&&Ne(t)){var r=(Jc(t)+"e").split("e"),i=e(r[0]+"e"+(+r[1]+n));return r=(Jc(i)+"e").split("e"),+(r[0]+"e"+(+r[1]-n))}return e(t)}}var Ta=en&&1/hr(new en([,-0]))[1]==D?function(t){return new en(t)}:zd;function Pa(t){return function(e){var n=qa(e);return n==K?lr(e):n==ot?dr(e):Gn(e,t(e))}}function Ia(t,e,n,r,o,a,s,u){var c=e&b;if(!c&&"function"!=typeof t)throw new oe(l);var h=r?r.length:0;if(h||(e&=~(O|S),r=o=i),s=s===i?s:Fe(Xc(s),0),u=u===i?u:Xc(u),h-=o?o.length:0,e&S){var d=r,p=o;r=o=i}var f=c?i:Wa(t),g=[t,e,n,r,o,d,p,a,s,u];if(f&&ms(g,f),t=g[0],e=g[1],n=g[2],r=g[3],o=g[4],u=g[9]=g[9]===i?c?0:t.length:Fe(g[9]-h,0),!u&&e&(x|w)&&(e&=~(x|w)),e&&e!=y)v=e==x||e==w?va(t,e,u):e!=O&&e!=(y|O)||o.length?ba.apply(i,g):Sa(t,e,n,r);else var v=da(t,e,n);var m=f?Ao:Ss;return Cs(m(v,g),t,e)}function $a(t,e,n,r){return t===i||ic(t,le[n])&&!he.call(r,n)?e:t}function Ea(t,e,n,r,o,a){return Sc(t)&&Sc(e)&&(a.set(e,t),lo(t,e,i,Ea,a),a["delete"](e)),t}function Ra(t){return Rc(t)?i:t}function Da(t,e,n,r,o,a){var s=n&v,l=t.length,u=e.length;if(l!=u&&!(s&&u>l))return!1;var c=a.get(t),h=a.get(e);if(c&&h)return c==e&&h==t;var d=-1,p=!0,f=n&m?new Ur:i;a.set(t,e),a.set(e,t);while(++d<l){var g=t[d],y=e[d];if(r)var b=s?r(y,g,d,e,t,a):r(g,y,d,t,e,a);if(b!==i){if(b)continue;p=!1;break}if(f){if(!In(e,(function(t,e){if(!qn(f,e)&&(g===t||o(g,t,n,r,a)))return f.push(e)}))){p=!1;break}}else if(g!==y&&!o(g,y,n,r,a)){p=!1;break}}return a["delete"](t),a["delete"](e),p}function La(t,e,n,r,i,o,a){switch(n){case dt:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case ht:return!(t.byteLength!=e.byteLength||!o(new _e(t),new _e(e)));case Z:case G:case J:return ic(+t,+e);case U:return t.name==e.name&&t.message==e.message;case it:case at:return t==e+"";case K:var s=lr;case ot:var l=r&v;if(s||(s=hr),t.size!=e.size&&!l)return!1;var u=a.get(t);if(u)return u==e;r|=m,a.set(t,e);var c=Da(s(t),s(e),r,i,o,a);return a["delete"](t),c;case st:if(br)return br.call(t)==br.call(e)}return!1}function Na(t,e,n,r,o,a){var s=n&v,l=Ba(t),u=l.length,c=Ba(e),h=c.length;if(u!=h&&!s)return!1;var d=u;while(d--){var p=l[d];if(!(s?p in e:he.call(e,p)))return!1}var f=a.get(t),g=a.get(e);if(f&&g)return f==e&&g==t;var m=!0;a.set(t,e),a.set(e,t);var y=s;while(++d<u){p=l[d];var b=t[p],_=e[p];if(r)var x=s?r(_,b,p,e,t,a):r(b,_,p,t,e,a);if(!(x===i?b===_||o(b,_,n,r,a):x)){m=!1;break}y||(y="constructor"==p)}if(m&&!y){var w=t.constructor,O=e.constructor;w==O||!("constructor"in t)||!("constructor"in e)||"function"==typeof w&&w instanceof w&&"function"==typeof O&&O instanceof O||(m=!1)}return a["delete"](t),a["delete"](e),m}function za(t){return ks(_s(t,i,Xs),t+"")}function Ba(t){return Di(t,wh,Ua)}function Fa(t){return Di(t,Oh,Ya)}var Wa=ln?function(t){return ln.get(t)}:zd;function ja(t){var e=t.name+"",n=un[e],r=he.call(un,e)?n.length:0;while(r--){var i=n[r],o=i.func;if(null==o||o==t)return i.name}return e}function Va(t){var e=he.call(wr,"placeholder")?wr:t;return e.placeholder}function Qa(){var t=wr.iteratee||Id;return t=t===Id?eo:t,arguments.length?t(arguments[0],arguments[1]):t}function Ha(t,e){var n=t.__data__;return us(e)?n["string"==typeof e?"string":"hash"]:n.map}function Za(t){var e=wh(t),n=e.length;while(n--){var r=e[n],i=t[r];e[n]=[r,i,fs(i)]}return e}function Ga(t,e){var n=ir(t,e);return qi(n)?n:i}function Xa(t){var e=he.call(t,Me),n=t[Me];try{t[Me]=i;var r=!0}catch(a){}var o=fe.call(t);return r&&(e?t[Me]=n:delete t[Me]),o}var Ua=De?function(t){return null==t?[]:(t=ne(t),Sn(De(t),(function(e){return Se.call(t,e)})))}:Gd,Ya=De?function(t){var e=[];while(t)Mn(e,Ua(t)),t=we(t);return e}:Gd,qa=Li;function Ka(t,e,n){var r=-1,i=n.length;while(++r<i){var o=n[r],a=o.size;switch(o.type){case"drop":t+=a;break;case"dropRight":e-=a;break;case"take":e=We(e,t+a);break;case"takeRight":t=Fe(t,e-a);break}}return{start:t,end:e}}function Ja(t){var e=t.match(Ft);return e?e[1].split(Wt):[]}function ts(t,e,n){e=Qo(e,t);var r=-1,i=e.length,o=!1;while(++r<i){var a=Is(e[r]);if(!(o=null!=t&&n(t,a)))break;t=t[a]}return o||++r!=i?o:(i=null==t?0:t.length,!!i&&Oc(i)&&as(a,i)&&(lc(t)||sc(t)))}function es(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&he.call(t,"index")&&(n.index=t.index,n.input=t.input),n}function ns(t){return"function"!=typeof t.constructor||ps(t)?{}:Sr(we(t))}function rs(t,e,n){var r=t.constructor;switch(e){case ht:return Uo(t);case Z:case G:return new r(+t);case dt:return Yo(t,n);case pt:case ft:case gt:case vt:case mt:case yt:case bt:case _t:case xt:return Jo(t,n);case K:return new r;case J:case at:return new r(t);case it:return qo(t);case ot:return new r;case st:return Ko(t)}}function is(t,e){var n=e.length;if(!n)return t;var r=n-1;return e[r]=(n>1?"& ":"")+e[r],e=e.join(n>2?", ":" "),t.replace(Bt,"{\n/* [wrapped with "+e+"] */\n")}function os(t){return lc(t)||sc(t)||!!(ke&&t&&t[ke])}function as(t,e){var n=typeof t;return e=null==e?L:e,!!e&&("number"==n||"symbol"!=n&&qt.test(t))&&t>-1&&t%1==0&&t<e}function ss(t,e,n){if(!Sc(n))return!1;var r=typeof e;return!!("number"==r?cc(n)&&as(e,n.length):"string"==r&&e in n)&&ic(n[e],t)}function ls(t,e){if(lc(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!Bc(t))||(Et.test(t)||!$t.test(t)||null!=e&&t in ne(e))}function us(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}function cs(t){var e=ja(t),n=wr[e];if("function"!=typeof n||!(e in Cr.prototype))return!1;if(t===n)return!0;var r=Wa(n);return!!r&&t===r[0]}function hs(t){return!!pe&&pe in t}(Ke&&qa(new Ke(new ArrayBuffer(1)))!=dt||Je&&qa(new Je)!=K||tn&&qa(tn.resolve())!=nt||en&&qa(new en)!=ot||on&&qa(new on)!=ut)&&(qa=function(t){var e=Li(t),n=e==et?t.constructor:i,r=n?$s(n):"";if(r)switch(r){case hn:return dt;case dn:return K;case $n:return nt;case En:return ot;case jn:return ut}return e});var ds=ue?xc:Xd;function ps(t){var e=t&&t.constructor,n="function"==typeof e&&e.prototype||le;return t===n}function fs(t){return t===t&&!Sc(t)}function gs(t,e){return function(n){return null!=n&&(n[t]===e&&(e!==i||t in ne(n)))}}function vs(t){var e=Fu(t,(function(t){return n.size===h&&n.clear(),t})),n=e.cache;return e}function ms(t,e){var n=t[1],r=e[1],i=n|r,o=i<(y|b|A),a=r==A&&n==x||r==A&&n==k&&t[7].length<=e[8]||r==(A|k)&&e[7].length<=e[8]&&n==x;if(!o&&!a)return t;r&y&&(t[2]=e[2],i|=n&y?0:_);var s=e[3];if(s){var l=t[3];t[3]=l?na(l,s,e[4]):s,t[4]=l?cr(t[3],d):e[4]}return s=e[5],s&&(l=t[5],t[5]=l?ra(l,s,e[6]):s,t[6]=l?cr(t[5],d):e[6]),s=e[7],s&&(t[7]=s),r&A&&(t[8]=null==t[8]?e[8]:We(t[8],e[8])),null==t[9]&&(t[9]=e[9]),t[0]=e[0],t[1]=i,t}function ys(t){var e=[];if(null!=t)for(var n in ne(t))e.push(n);return e}function bs(t){return fe.call(t)}function _s(t,e,r){return e=Fe(e===i?t.length-1:e,0),function(){var i=arguments,o=-1,a=Fe(i.length-e,0),s=n(a);while(++o<a)s[o]=i[e+o];o=-1;var l=n(e+1);while(++o<e)l[o]=i[o];return l[e]=r(s),bn(t,this,l)}}function xs(t,e){return e.length<2?t:Ri(t,Mo(e,0,-1))}function ws(t,e){var n=t.length,r=We(e.length,n),o=ia(t);while(r--){var a=e[r];t[r]=as(a,n)?o[a]:i}return t}function Os(t,e){if(("constructor"!==e||"function"!==typeof t[e])&&"__proto__"!=e)return t[e]}var Ss=Ms(Ao),As=$e||function(t,e){return sn.setTimeout(t,e)},ks=Ms(ko);function Cs(t,e,n){var r=e+"";return ks(t,is(r,Es(Ja(r),n)))}function Ms(t){var e=0,n=0;return function(){var r=Qe(),o=I-(r-n);if(n=r,o>0){if(++e>=P)return arguments[0]}else e=0;return t.apply(i,arguments)}}function Ts(t,e){var n=-1,r=t.length,o=r-1;e=e===i?r:e;while(++n<e){var a=yo(n,o),s=t[a];t[a]=t[n],t[n]=s}return t.length=e,t}var Ps=vs((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(Rt,(function(t,n,r,i){e.push(r?i.replace(Qt,"$1"):n||t)})),e}));function Is(t){if("string"==typeof t||Bc(t))return t;var e=t+"";return"0"==e&&1/t==-D?"-0":e}function $s(t){if(null!=t){try{return ce.call(t)}catch(e){}try{return t+""}catch(e){}}return""}function Es(t,e){return xn(j,(function(n){var r="_."+n[0];e&n[1]&&!An(t,r)&&t.push(r)})),t.sort()}function Rs(t){if(t instanceof Cr)return t.clone();var e=new kr(t.__wrapped__,t.__chain__);return e.__actions__=ia(t.__actions__),e.__index__=t.__index__,e.__values__=t.__values__,e}function Ds(t,e,r){e=(r?ss(t,e,r):e===i)?1:Fe(Xc(e),0);var o=null==t?0:t.length;if(!o||e<1)return[];var a=0,s=0,l=n(Ee(o/e));while(a<o)l[s++]=Mo(t,a,a+=e);return l}function Ls(t){var e=-1,n=null==t?0:t.length,r=0,i=[];while(++e<n){var o=t[e];o&&(i[r++]=o)}return i}function Ns(){var t=arguments.length;if(!t)return[];var e=n(t-1),r=arguments[0],i=t;while(i--)e[i-1]=arguments[i];return Mn(lc(r)?ia(r):[r],Mi(e,1))}var zs=xo((function(t,e){return hc(t)?xi(t,Mi(e,1,hc,!0)):[]})),Bs=xo((function(t,e){var n=ol(e);return hc(n)&&(n=i),hc(t)?xi(t,Mi(e,1,hc,!0),Qa(n,2)):[]})),Fs=xo((function(t,e){var n=ol(e);return hc(n)&&(n=i),hc(t)?xi(t,Mi(e,1,hc,!0),i,n):[]}));function Ws(t,e,n){var r=null==t?0:t.length;return r?(e=n||e===i?1:Xc(e),Mo(t,e<0?0:e,r)):[]}function js(t,e,n){var r=null==t?0:t.length;return r?(e=n||e===i?1:Xc(e),e=r-e,Mo(t,0,e<0?0:e)):[]}function Vs(t,e){return t&&t.length?zo(t,Qa(e,3),!0,!0):[]}function Qs(t,e){return t&&t.length?zo(t,Qa(e,3),!0):[]}function Hs(t,e,n,r){var i=null==t?0:t.length;return i?(n&&"number"!=typeof n&&ss(t,e,n)&&(n=0,r=i),ki(t,e,n,r)):[]}function Zs(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var i=null==n?0:Xc(n);return i<0&&(i=Fe(r+i,0)),Ln(t,Qa(e,3),i)}function Gs(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var o=r-1;return n!==i&&(o=Xc(n),o=n<0?Fe(r+o,0):We(o,r-1)),Ln(t,Qa(e,3),o,!0)}function Xs(t){var e=null==t?0:t.length;return e?Mi(t,1):[]}function Us(t){var e=null==t?0:t.length;return e?Mi(t,D):[]}function Ys(t,e){var n=null==t?0:t.length;return n?(e=e===i?1:Xc(e),Mi(t,e)):[]}function qs(t){var e=-1,n=null==t?0:t.length,r={};while(++e<n){var i=t[e];r[i[0]]=i[1]}return r}function Ks(t){return t&&t.length?t[0]:i}function Js(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var i=null==n?0:Xc(n);return i<0&&(i=Fe(r+i,0)),Nn(t,e,i)}function tl(t){var e=null==t?0:t.length;return e?Mo(t,0,-1):[]}var el=xo((function(t){var e=Cn(t,jo);return e.length&&e[0]===t[0]?Wi(e):[]})),nl=xo((function(t){var e=ol(t),n=Cn(t,jo);return e===ol(n)?e=i:n.pop(),n.length&&n[0]===t[0]?Wi(n,Qa(e,2)):[]})),rl=xo((function(t){var e=ol(t),n=Cn(t,jo);return e="function"==typeof e?e:i,e&&n.pop(),n.length&&n[0]===t[0]?Wi(n,i,e):[]}));function il(t,e){return null==t?"":ze.call(t,e)}function ol(t){var e=null==t?0:t.length;return e?t[e-1]:i}function al(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var o=r;return n!==i&&(o=Xc(n),o=o<0?Fe(r+o,0):We(o,r-1)),e===e?fr(t,e,o):Ln(t,Bn,o,!0)}function sl(t,e){return t&&t.length?co(t,Xc(e)):i}var ll=xo(ul);function ul(t,e){return t&&t.length&&e&&e.length?vo(t,e):t}function cl(t,e,n){return t&&t.length&&e&&e.length?vo(t,e,Qa(n,2)):t}function hl(t,e,n){return t&&t.length&&e&&e.length?vo(t,e,i,n):t}var dl=za((function(t,e){var n=null==t?0:t.length,r=gi(t,e);return mo(t,Cn(e,(function(t){return as(t,n)?+t:t})).sort(ta)),r}));function pl(t,e){var n=[];if(!t||!t.length)return n;var r=-1,i=[],o=t.length;e=Qa(e,3);while(++r<o){var a=t[r];e(a,r,t)&&(n.push(a),i.push(r))}return mo(t,i),n}function fl(t){return null==t?t:Ge.call(t)}function gl(t,e,n){var r=null==t?0:t.length;return r?(n&&"number"!=typeof n&&ss(t,e,n)?(e=0,n=r):(e=null==e?0:Xc(e),n=n===i?r:Xc(n)),Mo(t,e,n)):[]}function vl(t,e){return Po(t,e)}function ml(t,e,n){return Io(t,e,Qa(n,2))}function yl(t,e){var n=null==t?0:t.length;if(n){var r=Po(t,e);if(r<n&&ic(t[r],e))return r}return-1}function bl(t,e){return Po(t,e,!0)}function _l(t,e,n){return Io(t,e,Qa(n,2),!0)}function xl(t,e){var n=null==t?0:t.length;if(n){var r=Po(t,e,!0)-1;if(ic(t[r],e))return r}return-1}function wl(t){return t&&t.length?$o(t):[]}function Ol(t,e){return t&&t.length?$o(t,Qa(e,2)):[]}function Sl(t){var e=null==t?0:t.length;return e?Mo(t,1,e):[]}function Al(t,e,n){return t&&t.length?(e=n||e===i?1:Xc(e),Mo(t,0,e<0?0:e)):[]}function kl(t,e,n){var r=null==t?0:t.length;return r?(e=n||e===i?1:Xc(e),e=r-e,Mo(t,e<0?0:e,r)):[]}function Cl(t,e){return t&&t.length?zo(t,Qa(e,3),!1,!0):[]}function Ml(t,e){return t&&t.length?zo(t,Qa(e,3)):[]}var Tl=xo((function(t){return Do(Mi(t,1,hc,!0))})),Pl=xo((function(t){var e=ol(t);return hc(e)&&(e=i),Do(Mi(t,1,hc,!0),Qa(e,2))})),Il=xo((function(t){var e=ol(t);return e="function"==typeof e?e:i,Do(Mi(t,1,hc,!0),i,e)}));function $l(t){return t&&t.length?Do(t):[]}function El(t,e){return t&&t.length?Do(t,Qa(e,2)):[]}function Rl(t,e){return e="function"==typeof e?e:i,t&&t.length?Do(t,i,e):[]}function Dl(t){if(!t||!t.length)return[];var e=0;return t=Sn(t,(function(t){if(hc(t))return e=Fe(t.length,e),!0})),Zn(e,(function(e){return Cn(t,Wn(e))}))}function Ll(t,e){if(!t||!t.length)return[];var n=Dl(t);return null==e?n:Cn(n,(function(t){return bn(e,i,t)}))}var Nl=xo((function(t,e){return hc(t)?xi(t,e):[]})),zl=xo((function(t){return Fo(Sn(t,hc))})),Bl=xo((function(t){var e=ol(t);return hc(e)&&(e=i),Fo(Sn(t,hc),Qa(e,2))})),Fl=xo((function(t){var e=ol(t);return e="function"==typeof e?e:i,Fo(Sn(t,hc),i,e)})),Wl=xo(Dl);function jl(t,e){return Wo(t||[],e||[],ui)}function Vl(t,e){return Wo(t||[],e||[],So)}var Ql=xo((function(t){var e=t.length,n=e>1?t[e-1]:i;return n="function"==typeof n?(t.pop(),n):i,Ll(t,n)}));function Hl(t){var e=wr(t);return e.__chain__=!0,e}function Zl(t,e){return e(t),t}function Gl(t,e){return e(t)}var Xl=za((function(t){var e=t.length,n=e?t[0]:0,r=this.__wrapped__,o=function(e){return gi(e,t)};return!(e>1||this.__actions__.length)&&r instanceof Cr&&as(n)?(r=r.slice(n,+n+(e?1:0)),r.__actions__.push({func:Gl,args:[o],thisArg:i}),new kr(r,this.__chain__).thru((function(t){return e&&!t.length&&t.push(i),t}))):this.thru(o)}));function Ul(){return Hl(this)}function Yl(){return new kr(this.value(),this.__chain__)}function ql(){this.__values__===i&&(this.__values__=Zc(this.value()));var t=this.__index__>=this.__values__.length,e=t?i:this.__values__[this.__index__++];return{done:t,value:e}}function Kl(){return this}function Jl(t){var e,n=this;while(n instanceof Ar){var r=Rs(n);r.__index__=0,r.__values__=i,e?o.__wrapped__=r:e=r;var o=r;n=n.__wrapped__}return o.__wrapped__=t,e}function tu(){var t=this.__wrapped__;if(t instanceof Cr){var e=t;return this.__actions__.length&&(e=new Cr(this)),e=e.reverse(),e.__actions__.push({func:Gl,args:[fl],thisArg:i}),new kr(e,this.__chain__)}return this.thru(fl)}function eu(){return Bo(this.__wrapped__,this.__actions__)}var nu=la((function(t,e,n){he.call(t,n)?++t[n]:fi(t,n,1)}));function ru(t,e,n){var r=lc(t)?On:Si;return n&&ss(t,e,n)&&(e=i),r(t,Qa(e,3))}function iu(t,e){var n=lc(t)?Sn:Ci;return n(t,Qa(e,3))}var ou=ma(Zs),au=ma(Gs);function su(t,e){return Mi(vu(t,e),1)}function lu(t,e){return Mi(vu(t,e),D)}function uu(t,e,n){return n=n===i?1:Xc(n),Mi(vu(t,e),n)}function cu(t,e){var n=lc(t)?xn:wi;return n(t,Qa(e,3))}function hu(t,e){var n=lc(t)?wn:Oi;return n(t,Qa(e,3))}var du=la((function(t,e,n){he.call(t,n)?t[n].push(e):fi(t,n,[e])}));function pu(t,e,n,r){t=cc(t)?t:Wh(t),n=n&&!r?Xc(n):0;var i=t.length;return n<0&&(n=Fe(i+n,0)),zc(t)?n<=i&&t.indexOf(e,n)>-1:!!i&&Nn(t,e,n)>-1}var fu=xo((function(t,e,r){var i=-1,o="function"==typeof e,a=cc(t)?n(t.length):[];return wi(t,(function(t){a[++i]=o?bn(e,t,r):Vi(t,e,r)})),a})),gu=la((function(t,e,n){fi(t,n,e)}));function vu(t,e){var n=lc(t)?Cn:oo;return n(t,Qa(e,3))}function mu(t,e,n,r){return null==t?[]:(lc(e)||(e=null==e?[]:[e]),n=r?i:n,lc(n)||(n=null==n?[]:[n]),ho(t,e,n))}var yu=la((function(t,e,n){t[n?0:1].push(e)}),(function(){return[[],[]]}));function bu(t,e,n){var r=lc(t)?Tn:Vn,i=arguments.length<3;return r(t,Qa(e,4),n,i,wi)}function _u(t,e,n){var r=lc(t)?Pn:Vn,i=arguments.length<3;return r(t,Qa(e,4),n,i,Oi)}function xu(t,e){var n=lc(t)?Sn:Ci;return n(t,Wu(Qa(e,3)))}function wu(t){var e=lc(t)?oi:wo;return e(t)}function Ou(t,e,n){e=(n?ss(t,e,n):e===i)?1:Xc(e);var r=lc(t)?ai:Oo;return r(t,e)}function Su(t){var e=lc(t)?si:Co;return e(t)}function Au(t){if(null==t)return 0;if(cc(t))return zc(t)?gr(t):t.length;var e=qa(t);return e==K||e==ot?t.size:no(t).length}function ku(t,e,n){var r=lc(t)?In:To;return n&&ss(t,e,n)&&(e=i),r(t,Qa(e,3))}var Cu=xo((function(t,e){if(null==t)return[];var n=e.length;return n>1&&ss(t,e[0],e[1])?e=[]:n>2&&ss(e[0],e[1],e[2])&&(e=[e[0]]),ho(t,Mi(e,1),[])})),Mu=Ie||function(){return sn.Date.now()};function Tu(t,e){if("function"!=typeof e)throw new oe(l);return t=Xc(t),function(){if(--t<1)return e.apply(this,arguments)}}function Pu(t,e,n){return e=n?i:e,e=t&&null==e?t.length:e,Ia(t,A,i,i,i,i,e)}function Iu(t,e){var n;if("function"!=typeof e)throw new oe(l);return t=Xc(t),function(){return--t>0&&(n=e.apply(this,arguments)),t<=1&&(e=i),n}}var $u=xo((function(t,e,n){var r=y;if(n.length){var i=cr(n,Va($u));r|=O}return Ia(t,r,e,n,i)})),Eu=xo((function(t,e,n){var r=y|b;if(n.length){var i=cr(n,Va(Eu));r|=O}return Ia(e,r,t,n,i)}));function Ru(t,e,n){e=n?i:e;var r=Ia(t,x,i,i,i,i,i,e);return r.placeholder=Ru.placeholder,r}function Du(t,e,n){e=n?i:e;var r=Ia(t,w,i,i,i,i,i,e);return r.placeholder=Du.placeholder,r}function Lu(t,e,n){var r,o,a,s,u,c,h=0,d=!1,p=!1,f=!0;if("function"!=typeof t)throw new oe(l);function g(e){var n=r,a=o;return r=o=i,h=e,s=t.apply(a,n),s}function v(t){return h=t,u=As(b,e),d?g(t):s}function m(t){var n=t-c,r=t-h,i=e-n;return p?We(i,a-r):i}function y(t){var n=t-c,r=t-h;return c===i||n>=e||n<0||p&&r>=a}function b(){var t=Mu();if(y(t))return _(t);u=As(b,m(t))}function _(t){return u=i,f&&r?g(t):(r=o=i,s)}function x(){u!==i&&Go(u),h=0,r=c=o=u=i}function w(){return u===i?s:_(Mu())}function O(){var t=Mu(),n=y(t);if(r=arguments,o=this,c=t,n){if(u===i)return v(c);if(p)return Go(u),u=As(b,e),g(c)}return u===i&&(u=As(b,e)),s}return e=Yc(e)||0,Sc(n)&&(d=!!n.leading,p="maxWait"in n,a=p?Fe(Yc(n.maxWait)||0,e):a,f="trailing"in n?!!n.trailing:f),O.cancel=x,O.flush=w,O}var Nu=xo((function(t,e){return _i(t,1,e)})),zu=xo((function(t,e,n){return _i(t,Yc(e)||0,n)}));function Bu(t){return Ia(t,C)}function Fu(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new oe(l);var n=function(){var r=arguments,i=e?e.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=t.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(Fu.Cache||Vr),n}function Wu(t){if("function"!=typeof t)throw new oe(l);return function(){var e=arguments;switch(e.length){case 0:return!t.call(this);case 1:return!t.call(this,e[0]);case 2:return!t.call(this,e[0],e[1]);case 3:return!t.call(this,e[0],e[1],e[2])}return!t.apply(this,e)}}function ju(t){return Iu(2,t)}Fu.Cache=Vr;var Vu=Ho((function(t,e){e=1==e.length&&lc(e[0])?Cn(e[0],Un(Qa())):Cn(Mi(e,1),Un(Qa()));var n=e.length;return xo((function(r){var i=-1,o=We(r.length,n);while(++i<o)r[i]=e[i].call(this,r[i]);return bn(t,this,r)}))})),Qu=xo((function(t,e){var n=cr(e,Va(Qu));return Ia(t,O,i,e,n)})),Hu=xo((function(t,e){var n=cr(e,Va(Hu));return Ia(t,S,i,e,n)})),Zu=za((function(t,e){return Ia(t,k,i,i,i,e)}));function Gu(t,e){if("function"!=typeof t)throw new oe(l);return e=e===i?e:Xc(e),xo(t,e)}function Xu(t,e){if("function"!=typeof t)throw new oe(l);return e=null==e?0:Fe(Xc(e),0),xo((function(n){var r=n[e],i=Zo(n,0,e);return r&&Mn(i,r),bn(t,this,i)}))}function Uu(t,e,n){var r=!0,i=!0;if("function"!=typeof t)throw new oe(l);return Sc(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),Lu(t,e,{leading:r,maxWait:e,trailing:i})}function Yu(t){return Pu(t,1)}function qu(t,e){return Qu(Vo(e),t)}function Ku(){if(!arguments.length)return[];var t=arguments[0];return lc(t)?t:[t]}function Ju(t){return mi(t,g)}function tc(t,e){return e="function"==typeof e?e:i,mi(t,g,e)}function ec(t){return mi(t,p|g)}function nc(t,e){return e="function"==typeof e?e:i,mi(t,p|g,e)}function rc(t,e){return null==e||bi(t,e,wh(e))}function ic(t,e){return t===e||t!==t&&e!==e}var oc=ka(Ni),ac=ka((function(t,e){return t>=e})),sc=Qi(function(){return arguments}())?Qi:function(t){return Ac(t)&&he.call(t,"callee")&&!Se.call(t,"callee")},lc=n.isArray,uc=pn?Un(pn):Hi;function cc(t){return null!=t&&Oc(t.length)&&!xc(t)}function hc(t){return Ac(t)&&cc(t)}function dc(t){return!0===t||!1===t||Ac(t)&&Li(t)==Z}var pc=Le||Xd,fc=fn?Un(fn):Zi;function gc(t){return Ac(t)&&1===t.nodeType&&!Rc(t)}function vc(t){if(null==t)return!0;if(cc(t)&&(lc(t)||"string"==typeof t||"function"==typeof t.splice||pc(t)||Fc(t)||sc(t)))return!t.length;var e=qa(t);if(e==K||e==ot)return!t.size;if(ps(t))return!no(t).length;for(var n in t)if(he.call(t,n))return!1;return!0}function mc(t,e){return Gi(t,e)}function yc(t,e,n){n="function"==typeof n?n:i;var r=n?n(t,e):i;return r===i?Gi(t,e,i,n):!!r}function bc(t){if(!Ac(t))return!1;var e=Li(t);return e==U||e==X||"string"==typeof t.message&&"string"==typeof t.name&&!Rc(t)}function _c(t){return"number"==typeof t&&Ne(t)}function xc(t){if(!Sc(t))return!1;var e=Li(t);return e==Y||e==q||e==H||e==rt}function wc(t){return"number"==typeof t&&t==Xc(t)}function Oc(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=L}function Sc(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function Ac(t){return null!=t&&"object"==typeof t}var kc=gn?Un(gn):Ui;function Cc(t,e){return t===e||Yi(t,e,Za(e))}function Mc(t,e,n){return n="function"==typeof n?n:i,Yi(t,e,Za(e),n)}function Tc(t){return Ec(t)&&t!=+t}function Pc(t){if(ds(t))throw new zt(s);return qi(t)}function Ic(t){return null===t}function $c(t){return null==t}function Ec(t){return"number"==typeof t||Ac(t)&&Li(t)==J}function Rc(t){if(!Ac(t)||Li(t)!=et)return!1;var e=we(t);if(null===e)return!0;var n=he.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&ce.call(n)==ge}var Dc=vn?Un(vn):Ki;function Lc(t){return wc(t)&&t>=-L&&t<=L}var Nc=mn?Un(mn):Ji;function zc(t){return"string"==typeof t||!lc(t)&&Ac(t)&&Li(t)==at}function Bc(t){return"symbol"==typeof t||Ac(t)&&Li(t)==st}var Fc=yn?Un(yn):to;function Wc(t){return t===i}function jc(t){return Ac(t)&&qa(t)==ut}function Vc(t){return Ac(t)&&Li(t)==ct}var Qc=ka(io),Hc=ka((function(t,e){return t<=e}));function Zc(t){if(!t)return[];if(cc(t))return zc(t)?vr(t):ia(t);if(Ce&&t[Ce])return sr(t[Ce]());var e=qa(t),n=e==K?lr:e==ot?hr:Wh;return n(t)}function Gc(t){if(!t)return 0===t?t:0;if(t=Yc(t),t===D||t===-D){var e=t<0?-1:1;return e*N}return t===t?t:0}function Xc(t){var e=Gc(t),n=e%1;return e===e?n?e-n:e:0}function Uc(t){return t?vi(Xc(t),0,B):0}function Yc(t){if("number"==typeof t)return t;if(Bc(t))return z;if(Sc(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=Sc(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=Xn(t);var n=Xt.test(t);return n||Yt.test(t)?rn(t.slice(2),n?2:8):Gt.test(t)?z:+t}function qc(t){return oa(t,Oh(t))}function Kc(t){return t?vi(Xc(t),-L,L):0===t?t:0}function Jc(t){return null==t?"":Ro(t)}var th=ua((function(t,e){if(ps(e)||cc(e))oa(e,wh(e),t);else for(var n in e)he.call(e,n)&&ui(t,n,e[n])})),eh=ua((function(t,e){oa(e,Oh(e),t)})),nh=ua((function(t,e,n,r){oa(e,Oh(e),t,r)})),rh=ua((function(t,e,n,r){oa(e,wh(e),t,r)})),ih=za(gi);function oh(t,e){var n=Sr(t);return null==e?n:di(n,e)}var ah=xo((function(t,e){t=ne(t);var n=-1,r=e.length,o=r>2?e[2]:i;o&&ss(e[0],e[1],o)&&(r=1);while(++n<r){var a=e[n],s=Oh(a),l=-1,u=s.length;while(++l<u){var c=s[l],h=t[c];(h===i||ic(h,le[c])&&!he.call(t,c))&&(t[c]=a[c])}}return t})),sh=xo((function(t){return t.push(i,Ea),bn(Ch,i,t)}));function lh(t,e){return Dn(t,Qa(e,3),Ii)}function uh(t,e){return Dn(t,Qa(e,3),$i)}function ch(t,e){return null==t?t:Ti(t,Qa(e,3),Oh)}function hh(t,e){return null==t?t:Pi(t,Qa(e,3),Oh)}function dh(t,e){return t&&Ii(t,Qa(e,3))}function ph(t,e){return t&&$i(t,Qa(e,3))}function fh(t){return null==t?[]:Ei(t,wh(t))}function gh(t){return null==t?[]:Ei(t,Oh(t))}function vh(t,e,n){var r=null==t?i:Ri(t,e);return r===i?n:r}function mh(t,e){return null!=t&&ts(t,e,zi)}function yh(t,e){return null!=t&&ts(t,e,Bi)}var bh=_a((function(t,e,n){null!=e&&"function"!=typeof e.toString&&(e=fe.call(e)),t[e]=n}),kd(Pd)),_h=_a((function(t,e,n){null!=e&&"function"!=typeof e.toString&&(e=fe.call(e)),he.call(t,e)?t[e].push(n):t[e]=[n]}),Qa),xh=xo(Vi);function wh(t){return cc(t)?ii(t):no(t)}function Oh(t){return cc(t)?ii(t,!0):ro(t)}function Sh(t,e){var n={};return e=Qa(e,3),Ii(t,(function(t,r,i){fi(n,e(t,r,i),t)})),n}function Ah(t,e){var n={};return e=Qa(e,3),Ii(t,(function(t,r,i){fi(n,r,e(t,r,i))})),n}var kh=ua((function(t,e,n){lo(t,e,n)})),Ch=ua((function(t,e,n,r){lo(t,e,n,r)})),Mh=za((function(t,e){var n={};if(null==t)return n;var r=!1;e=Cn(e,(function(e){return e=Qo(e,t),r||(r=e.length>1),e})),oa(t,Fa(t),n),r&&(n=mi(n,p|f|g,Ra));var i=e.length;while(i--)Lo(n,e[i]);return n}));function Th(t,e){return Ih(t,Wu(Qa(e)))}var Ph=za((function(t,e){return null==t?{}:po(t,e)}));function Ih(t,e){if(null==t)return{};var n=Cn(Fa(t),(function(t){return[t]}));return e=Qa(e),fo(t,n,(function(t,n){return e(t,n[0])}))}function $h(t,e,n){e=Qo(e,t);var r=-1,o=e.length;o||(o=1,t=i);while(++r<o){var a=null==t?i:t[Is(e[r])];a===i&&(r=o,a=n),t=xc(a)?a.call(t):a}return t}function Eh(t,e,n){return null==t?t:So(t,e,n)}function Rh(t,e,n,r){return r="function"==typeof r?r:i,null==t?t:So(t,e,n,r)}var Dh=Pa(wh),Lh=Pa(Oh);function Nh(t,e,n){var r=lc(t),i=r||pc(t)||Fc(t);if(e=Qa(e,4),null==n){var o=t&&t.constructor;n=i?r?new o:[]:Sc(t)&&xc(o)?Sr(we(t)):{}}return(i?xn:Ii)(t,(function(t,r,i){return e(n,t,r,i)})),n}function zh(t,e){return null==t||Lo(t,e)}function Bh(t,e,n){return null==t?t:No(t,e,Vo(n))}function Fh(t,e,n,r){return r="function"==typeof r?r:i,null==t?t:No(t,e,Vo(n),r)}function Wh(t){return null==t?[]:Yn(t,wh(t))}function jh(t){return null==t?[]:Yn(t,Oh(t))}function Vh(t,e,n){return n===i&&(n=e,e=i),n!==i&&(n=Yc(n),n=n===n?n:0),e!==i&&(e=Yc(e),e=e===e?e:0),vi(Yc(t),e,n)}function Qh(t,e,n){return e=Gc(e),n===i?(n=e,e=0):n=Gc(n),t=Yc(t),Fi(t,e,n)}function Hh(t,e,n){if(n&&"boolean"!=typeof n&&ss(t,e,n)&&(e=n=i),n===i&&("boolean"==typeof e?(n=e,e=i):"boolean"==typeof t&&(n=t,t=i)),t===i&&e===i?(t=0,e=1):(t=Gc(t),e===i?(e=t,t=0):e=Gc(e)),t>e){var r=t;t=e,e=r}if(n||t%1||e%1){var o=Ze();return We(t+o*(e-t+nn("1e-"+((o+"").length-1))),e)}return yo(t,e)}var Zh=fa((function(t,e,n){return e=e.toLowerCase(),t+(n?Gh(e):e)}));function Gh(t){return _d(Jc(t).toLowerCase())}function Xh(t){return t=Jc(t),t&&t.replace(Kt,er).replace(Ve,"")}function Uh(t,e,n){t=Jc(t),e=Ro(e);var r=t.length;n=n===i?r:vi(Xc(n),0,r);var o=n;return n-=e.length,n>=0&&t.slice(n,o)==e}function Yh(t){return t=Jc(t),t&&Mt.test(t)?t.replace(kt,nr):t}function qh(t){return t=Jc(t),t&&Lt.test(t)?t.replace(Dt,"\\$&"):t}var Kh=fa((function(t,e,n){return t+(n?"-":"")+e.toLowerCase()})),Jh=fa((function(t,e,n){return t+(n?" ":"")+e.toLowerCase()})),td=pa("toLowerCase");function ed(t,e,n){t=Jc(t),e=Xc(e);var r=e?gr(t):0;if(!e||r>=e)return t;var i=(e-r)/2;return Oa(Re(i),n)+t+Oa(Ee(i),n)}function nd(t,e,n){t=Jc(t),e=Xc(e);var r=e?gr(t):0;return e&&r<e?t+Oa(e-r,n):t}function rd(t,e,n){t=Jc(t),e=Xc(e);var r=e?gr(t):0;return e&&r<e?Oa(e-r,n)+t:t}function id(t,e,n){return n||null==e?e=0:e&&(e=+e),He(Jc(t).replace(Nt,""),e||0)}function od(t,e,n){return e=(n?ss(t,e,n):e===i)?1:Xc(e),_o(Jc(t),e)}function ad(){var t=arguments,e=Jc(t[0]);return t.length<3?e:e.replace(t[1],t[2])}var sd=fa((function(t,e,n){return t+(n?"_":"")+e.toLowerCase()}));function ld(t,e,n){return n&&"number"!=typeof n&&ss(t,e,n)&&(e=n=i),n=n===i?B:n>>>0,n?(t=Jc(t),t&&("string"==typeof e||null!=e&&!Dc(e))&&(e=Ro(e),!e&&or(t))?Zo(vr(t),0,n):t.split(e,n)):[]}var ud=fa((function(t,e,n){return t+(n?" ":"")+_d(e)}));function cd(t,e,n){return t=Jc(t),n=null==n?0:vi(Xc(n),0,t.length),e=Ro(e),t.slice(n,n+e.length)==e}function hd(t,e,n){var r=wr.templateSettings;n&&ss(t,e,n)&&(e=i),t=Jc(t),e=nh({},e,r,$a);var o,a,s=nh({},e.imports,r.imports,$a),l=wh(s),c=Yn(s,l),h=0,d=e.interpolate||Jt,p="__p += '",f=re((e.escape||Jt).source+"|"+d.source+"|"+(d===It?Ht:Jt).source+"|"+(e.evaluate||Jt).source+"|$","g"),g="//# sourceURL="+(he.call(e,"sourceURL")?(e.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Ue+"]")+"\n";t.replace(f,(function(e,n,r,i,s,l){return r||(r=i),p+=t.slice(h,l).replace(te,rr),n&&(o=!0,p+="' +\n__e("+n+") +\n'"),s&&(a=!0,p+="';\n"+s+";\n__p += '"),r&&(p+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),h=l+e.length,e})),p+="';\n";var v=he.call(e,"variable")&&e.variable;if(v){if(Vt.test(v))throw new zt(u)}else p="with (obj) {\n"+p+"\n}\n";p=(a?p.replace(wt,""):p).replace(Ot,"$1").replace(St,"$1;"),p="function("+(v||"obj")+") {\n"+(v?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(o?", __e = _.escape":"")+(a?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+p+"return __p\n}";var m=wd((function(){return jt(l,g+"return "+p).apply(i,c)}));if(m.source=p,bc(m))throw m;return m}function dd(t){return Jc(t).toLowerCase()}function pd(t){return Jc(t).toUpperCase()}function fd(t,e,n){if(t=Jc(t),t&&(n||e===i))return Xn(t);if(!t||!(e=Ro(e)))return t;var r=vr(t),o=vr(e),a=Kn(r,o),s=Jn(r,o)+1;return Zo(r,a,s).join("")}function gd(t,e,n){if(t=Jc(t),t&&(n||e===i))return t.slice(0,mr(t)+1);if(!t||!(e=Ro(e)))return t;var r=vr(t),o=Jn(r,vr(e))+1;return Zo(r,0,o).join("")}function vd(t,e,n){if(t=Jc(t),t&&(n||e===i))return t.replace(Nt,"");if(!t||!(e=Ro(e)))return t;var r=vr(t),o=Kn(r,vr(e));return Zo(r,o).join("")}function md(t,e){var n=M,r=T;if(Sc(e)){var o="separator"in e?e.separator:o;n="length"in e?Xc(e.length):n,r="omission"in e?Ro(e.omission):r}t=Jc(t);var a=t.length;if(or(t)){var s=vr(t);a=s.length}if(n>=a)return t;var l=n-gr(r);if(l<1)return r;var u=s?Zo(s,0,l).join(""):t.slice(0,l);if(o===i)return u+r;if(s&&(l+=u.length-l),Dc(o)){if(t.slice(l).search(o)){var c,h=u;o.global||(o=re(o.source,Jc(Zt.exec(o))+"g")),o.lastIndex=0;while(c=o.exec(h))var d=c.index;u=u.slice(0,d===i?l:d)}}else if(t.indexOf(Ro(o),l)!=l){var p=u.lastIndexOf(o);p>-1&&(u=u.slice(0,p))}return u+r}function yd(t){return t=Jc(t),t&&Ct.test(t)?t.replace(At,yr):t}var bd=fa((function(t,e,n){return t+(n?" ":"")+e.toUpperCase()})),_d=pa("toUpperCase");function xd(t,e,n){return t=Jc(t),e=n?i:e,e===i?ar(t)?xr(t):Rn(t):t.match(e)||[]}var wd=xo((function(t,e){try{return bn(t,i,e)}catch(n){return bc(n)?n:new zt(n)}})),Od=za((function(t,e){return xn(e,(function(e){e=Is(e),fi(t,e,$u(t[e],t))})),t}));function Sd(t){var e=null==t?0:t.length,n=Qa();return t=e?Cn(t,(function(t){if("function"!=typeof t[1])throw new oe(l);return[n(t[0]),t[1]]})):[],xo((function(n){var r=-1;while(++r<e){var i=t[r];if(bn(i[0],this,n))return bn(i[1],this,n)}}))}function Ad(t){return yi(mi(t,p))}function kd(t){return function(){return t}}function Cd(t,e){return null==t||t!==t?e:t}var Md=ya(),Td=ya(!0);function Pd(t){return t}function Id(t){return eo("function"==typeof t?t:mi(t,p))}function $d(t){return ao(mi(t,p))}function Ed(t,e){return so(t,mi(e,p))}var Rd=xo((function(t,e){return function(n){return Vi(n,t,e)}})),Dd=xo((function(t,e){return function(n){return Vi(t,n,e)}}));function Ld(t,e,n){var r=wh(e),i=Ei(e,r);null!=n||Sc(e)&&(i.length||!r.length)||(n=e,e=t,t=this,i=Ei(e,wh(e)));var o=!(Sc(n)&&"chain"in n)||!!n.chain,a=xc(t);return xn(i,(function(n){var r=e[n];t[n]=r,a&&(t.prototype[n]=function(){var e=this.__chain__;if(o||e){var n=t(this.__wrapped__),i=n.__actions__=ia(this.__actions__);return i.push({func:r,args:arguments,thisArg:t}),n.__chain__=e,n}return r.apply(t,Mn([this.value()],arguments))})})),t}function Nd(){return sn._===this&&(sn._=ve),this}function zd(){}function Bd(t){return t=Xc(t),xo((function(e){return co(e,t)}))}var Fd=wa(Cn),Wd=wa(On),jd=wa(In);function Vd(t){return ls(t)?Wn(Is(t)):go(t)}function Qd(t){return function(e){return null==t?i:Ri(t,e)}}var Hd=Aa(),Zd=Aa(!0);function Gd(){return[]}function Xd(){return!1}function Ud(){return{}}function Yd(){return""}function qd(){return!0}function Kd(t,e){if(t=Xc(t),t<1||t>L)return[];var n=B,r=We(t,B);e=Qa(e),t-=B;var i=Zn(r,e);while(++n<t)e(n);return i}function Jd(t){return lc(t)?Cn(t,Is):Bc(t)?[t]:ia(Ps(Jc(t)))}function tp(t){var e=++de;return Jc(t)+e}var ep=xa((function(t,e){return t+e}),0),np=Ma("ceil"),rp=xa((function(t,e){return t/e}),1),ip=Ma("floor");function op(t){return t&&t.length?Ai(t,Pd,Ni):i}function ap(t,e){return t&&t.length?Ai(t,Qa(e,2),Ni):i}function sp(t){return Fn(t,Pd)}function lp(t,e){return Fn(t,Qa(e,2))}function up(t){return t&&t.length?Ai(t,Pd,io):i}function cp(t,e){return t&&t.length?Ai(t,Qa(e,2),io):i}var hp=xa((function(t,e){return t*e}),1),dp=Ma("round"),pp=xa((function(t,e){return t-e}),0);function fp(t){return t&&t.length?Hn(t,Pd):0}function gp(t,e){return t&&t.length?Hn(t,Qa(e,2)):0}return wr.after=Tu,wr.ary=Pu,wr.assign=th,wr.assignIn=eh,wr.assignInWith=nh,wr.assignWith=rh,wr.at=ih,wr.before=Iu,wr.bind=$u,wr.bindAll=Od,wr.bindKey=Eu,wr.castArray=Ku,wr.chain=Hl,wr.chunk=Ds,wr.compact=Ls,wr.concat=Ns,wr.cond=Sd,wr.conforms=Ad,wr.constant=kd,wr.countBy=nu,wr.create=oh,wr.curry=Ru,wr.curryRight=Du,wr.debounce=Lu,wr.defaults=ah,wr.defaultsDeep=sh,wr.defer=Nu,wr.delay=zu,wr.difference=zs,wr.differenceBy=Bs,wr.differenceWith=Fs,wr.drop=Ws,wr.dropRight=js,wr.dropRightWhile=Vs,wr.dropWhile=Qs,wr.fill=Hs,wr.filter=iu,wr.flatMap=su,wr.flatMapDeep=lu,wr.flatMapDepth=uu,wr.flatten=Xs,wr.flattenDeep=Us,wr.flattenDepth=Ys,wr.flip=Bu,wr.flow=Md,wr.flowRight=Td,wr.fromPairs=qs,wr.functions=fh,wr.functionsIn=gh,wr.groupBy=du,wr.initial=tl,wr.intersection=el,wr.intersectionBy=nl,wr.intersectionWith=rl,wr.invert=bh,wr.invertBy=_h,wr.invokeMap=fu,wr.iteratee=Id,wr.keyBy=gu,wr.keys=wh,wr.keysIn=Oh,wr.map=vu,wr.mapKeys=Sh,wr.mapValues=Ah,wr.matches=$d,wr.matchesProperty=Ed,wr.memoize=Fu,wr.merge=kh,wr.mergeWith=Ch,wr.method=Rd,wr.methodOf=Dd,wr.mixin=Ld,wr.negate=Wu,wr.nthArg=Bd,wr.omit=Mh,wr.omitBy=Th,wr.once=ju,wr.orderBy=mu,wr.over=Fd,wr.overArgs=Vu,wr.overEvery=Wd,wr.overSome=jd,wr.partial=Qu,wr.partialRight=Hu,wr.partition=yu,wr.pick=Ph,wr.pickBy=Ih,wr.property=Vd,wr.propertyOf=Qd,wr.pull=ll,wr.pullAll=ul,wr.pullAllBy=cl,wr.pullAllWith=hl,wr.pullAt=dl,wr.range=Hd,wr.rangeRight=Zd,wr.rearg=Zu,wr.reject=xu,wr.remove=pl,wr.rest=Gu,wr.reverse=fl,wr.sampleSize=Ou,wr.set=Eh,wr.setWith=Rh,wr.shuffle=Su,wr.slice=gl,wr.sortBy=Cu,wr.sortedUniq=wl,wr.sortedUniqBy=Ol,wr.split=ld,wr.spread=Xu,wr.tail=Sl,wr.take=Al,wr.takeRight=kl,wr.takeRightWhile=Cl,wr.takeWhile=Ml,wr.tap=Zl,wr.throttle=Uu,wr.thru=Gl,wr.toArray=Zc,wr.toPairs=Dh,wr.toPairsIn=Lh,wr.toPath=Jd,wr.toPlainObject=qc,wr.transform=Nh,wr.unary=Yu,wr.union=Tl,wr.unionBy=Pl,wr.unionWith=Il,wr.uniq=$l,wr.uniqBy=El,wr.uniqWith=Rl,wr.unset=zh,wr.unzip=Dl,wr.unzipWith=Ll,wr.update=Bh,wr.updateWith=Fh,wr.values=Wh,wr.valuesIn=jh,wr.without=Nl,wr.words=xd,wr.wrap=qu,wr.xor=zl,wr.xorBy=Bl,wr.xorWith=Fl,wr.zip=Wl,wr.zipObject=jl,wr.zipObjectDeep=Vl,wr.zipWith=Ql,wr.entries=Dh,wr.entriesIn=Lh,wr.extend=eh,wr.extendWith=nh,Ld(wr,wr),wr.add=ep,wr.attempt=wd,wr.camelCase=Zh,wr.capitalize=Gh,wr.ceil=np,wr.clamp=Vh,wr.clone=Ju,wr.cloneDeep=ec,wr.cloneDeepWith=nc,wr.cloneWith=tc,wr.conformsTo=rc,wr.deburr=Xh,wr.defaultTo=Cd,wr.divide=rp,wr.endsWith=Uh,wr.eq=ic,wr.escape=Yh,wr.escapeRegExp=qh,wr.every=ru,wr.find=ou,wr.findIndex=Zs,wr.findKey=lh,wr.findLast=au,wr.findLastIndex=Gs,wr.findLastKey=uh,wr.floor=ip,wr.forEach=cu,wr.forEachRight=hu,wr.forIn=ch,wr.forInRight=hh,wr.forOwn=dh,wr.forOwnRight=ph,wr.get=vh,wr.gt=oc,wr.gte=ac,wr.has=mh,wr.hasIn=yh,wr.head=Ks,wr.identity=Pd,wr.includes=pu,wr.indexOf=Js,wr.inRange=Qh,wr.invoke=xh,wr.isArguments=sc,wr.isArray=lc,wr.isArrayBuffer=uc,wr.isArrayLike=cc,wr.isArrayLikeObject=hc,wr.isBoolean=dc,wr.isBuffer=pc,wr.isDate=fc,wr.isElement=gc,wr.isEmpty=vc,wr.isEqual=mc,wr.isEqualWith=yc,wr.isError=bc,wr.isFinite=_c,wr.isFunction=xc,wr.isInteger=wc,wr.isLength=Oc,wr.isMap=kc,wr.isMatch=Cc,wr.isMatchWith=Mc,wr.isNaN=Tc,wr.isNative=Pc,wr.isNil=$c,wr.isNull=Ic,wr.isNumber=Ec,wr.isObject=Sc,wr.isObjectLike=Ac,wr.isPlainObject=Rc,wr.isRegExp=Dc,wr.isSafeInteger=Lc,wr.isSet=Nc,wr.isString=zc,wr.isSymbol=Bc,wr.isTypedArray=Fc,wr.isUndefined=Wc,wr.isWeakMap=jc,wr.isWeakSet=Vc,wr.join=il,wr.kebabCase=Kh,wr.last=ol,wr.lastIndexOf=al,wr.lowerCase=Jh,wr.lowerFirst=td,wr.lt=Qc,wr.lte=Hc,wr.max=op,wr.maxBy=ap,wr.mean=sp,wr.meanBy=lp,wr.min=up,wr.minBy=cp,wr.stubArray=Gd,wr.stubFalse=Xd,wr.stubObject=Ud,wr.stubString=Yd,wr.stubTrue=qd,wr.multiply=hp,wr.nth=sl,wr.noConflict=Nd,wr.noop=zd,wr.now=Mu,wr.pad=ed,wr.padEnd=nd,wr.padStart=rd,wr.parseInt=id,wr.random=Hh,wr.reduce=bu,wr.reduceRight=_u,wr.repeat=od,wr.replace=ad,wr.result=$h,wr.round=dp,wr.runInContext=t,wr.sample=wu,wr.size=Au,wr.snakeCase=sd,wr.some=ku,wr.sortedIndex=vl,wr.sortedIndexBy=ml,wr.sortedIndexOf=yl,wr.sortedLastIndex=bl,wr.sortedLastIndexBy=_l,wr.sortedLastIndexOf=xl,wr.startCase=ud,wr.startsWith=cd,wr.subtract=pp,wr.sum=fp,wr.sumBy=gp,wr.template=hd,wr.times=Kd,wr.toFinite=Gc,wr.toInteger=Xc,wr.toLength=Uc,wr.toLower=dd,wr.toNumber=Yc,wr.toSafeInteger=Kc,wr.toString=Jc,wr.toUpper=pd,wr.trim=fd,wr.trimEnd=gd,wr.trimStart=vd,wr.truncate=md,wr.unescape=yd,wr.uniqueId=tp,wr.upperCase=bd,wr.upperFirst=_d,wr.each=cu,wr.eachRight=hu,wr.first=Ks,Ld(wr,function(){var t={};return Ii(wr,(function(e,n){he.call(wr.prototype,n)||(t[n]=e)})),t}(),{chain:!1}),wr.VERSION=o,xn(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(t){wr[t].placeholder=wr})),xn(["drop","take"],(function(t,e){Cr.prototype[t]=function(n){n=n===i?1:Fe(Xc(n),0);var r=this.__filtered__&&!e?new Cr(this):this.clone();return r.__filtered__?r.__takeCount__=We(n,r.__takeCount__):r.__views__.push({size:We(n,B),type:t+(r.__dir__<0?"Right":"")}),r},Cr.prototype[t+"Right"]=function(e){return this.reverse()[t](e).reverse()}})),xn(["filter","map","takeWhile"],(function(t,e){var n=e+1,r=n==$||n==R;Cr.prototype[t]=function(t){var e=this.clone();return e.__iteratees__.push({iteratee:Qa(t,3),type:n}),e.__filtered__=e.__filtered__||r,e}})),xn(["head","last"],(function(t,e){var n="take"+(e?"Right":"");Cr.prototype[t]=function(){return this[n](1).value()[0]}})),xn(["initial","tail"],(function(t,e){var n="drop"+(e?"":"Right");Cr.prototype[t]=function(){return this.__filtered__?new Cr(this):this[n](1)}})),Cr.prototype.compact=function(){return this.filter(Pd)},Cr.prototype.find=function(t){return this.filter(t).head()},Cr.prototype.findLast=function(t){return this.reverse().find(t)},Cr.prototype.invokeMap=xo((function(t,e){return"function"==typeof t?new Cr(this):this.map((function(n){return Vi(n,t,e)}))})),Cr.prototype.reject=function(t){return this.filter(Wu(Qa(t)))},Cr.prototype.slice=function(t,e){t=Xc(t);var n=this;return n.__filtered__&&(t>0||e<0)?new Cr(n):(t<0?n=n.takeRight(-t):t&&(n=n.drop(t)),e!==i&&(e=Xc(e),n=e<0?n.dropRight(-e):n.take(e-t)),n)},Cr.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},Cr.prototype.toArray=function(){return this.take(B)},Ii(Cr.prototype,(function(t,e){var n=/^(?:filter|find|map|reject)|While$/.test(e),r=/^(?:head|last)$/.test(e),o=wr[r?"take"+("last"==e?"Right":""):e],a=r||/^find/.test(e);o&&(wr.prototype[e]=function(){var e=this.__wrapped__,s=r?[1]:arguments,l=e instanceof Cr,u=s[0],c=l||lc(e),h=function(t){var e=o.apply(wr,Mn([t],s));return r&&d?e[0]:e};c&&n&&"function"==typeof u&&1!=u.length&&(l=c=!1);var d=this.__chain__,p=!!this.__actions__.length,f=a&&!d,g=l&&!p;if(!a&&c){e=g?e:new Cr(this);var v=t.apply(e,s);return v.__actions__.push({func:Gl,args:[h],thisArg:i}),new kr(v,d)}return f&&g?t.apply(this,s):(v=this.thru(h),f?r?v.value()[0]:v.value():v)})})),xn(["pop","push","shift","sort","splice","unshift"],(function(t){var e=ae[t],n=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",r=/^(?:pop|shift)$/.test(t);wr.prototype[t]=function(){var t=arguments;if(r&&!this.__chain__){var i=this.value();return e.apply(lc(i)?i:[],t)}return this[n]((function(n){return e.apply(lc(n)?n:[],t)}))}})),Ii(Cr.prototype,(function(t,e){var n=wr[e];if(n){var r=n.name+"";he.call(un,r)||(un[r]=[]),un[r].push({name:e,func:n})}})),un[ba(i,b).name]=[{name:"wrapper",func:i}],Cr.prototype.clone=Mr,Cr.prototype.reverse=Tr,Cr.prototype.value=Pr,wr.prototype.at=Xl,wr.prototype.chain=Ul,wr.prototype.commit=Yl,wr.prototype.next=ql,wr.prototype.plant=Jl,wr.prototype.reverse=tu,wr.prototype.toJSON=wr.prototype.valueOf=wr.prototype.value=eu,wr.prototype.first=wr.prototype.head,Ce&&(wr.prototype[Ce]=Kl),wr},Or=wr();sn._=Or,r=function(){return Or}.call(e,n,e,t),r===i||(t.exports=r)}.call(this)},74920:function(t,e,n){var r=n(82974),i=n(93859),o=i((function(t,e,n){r(t,e,n)}));t.exports=o},64392:function(t,e,n){var r=n(59905),i=function(){return r.Date.now()};t.exports=i},59877:function(t){function e(){return[]}t.exports=e},39387:function(t){function e(){return!1}t.exports=e},80434:function(t,e,n){var r=n(15529),i=n(14369),o="Expected a function";function a(t,e,n){var a=!0,s=!0;if("function"!=typeof t)throw new TypeError(o);return i(n)&&(a="leading"in n?!!n.leading:a,s="trailing"in n?!!n.trailing:s),r(t,e,{leading:a,maxWait:e,trailing:s})}t.exports=a},3018:function(t,e,n){var r=n(2004),i=n(14369),o=n(93774),a=NaN,s=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,u=/^0o[0-7]+$/i,c=parseInt;function h(t){if("number"==typeof t)return t;if(o(t))return a;if(i(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=i(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=r(t);var n=l.test(t);return n||u.test(t)?c(t.slice(2),n?2:8):s.test(t)?a:+t}t.exports=h},94520:function(t,e,n){var r=n(97867),i=n(67477);function o(t){return r(t,i(t))}t.exports=o},18667:function(t,e,n){"use strict";n(30381);var r=function(){if("undefined"!==typeof Map)return Map;function t(t,e){var n=-1;return t.some((function(t,r){return t[0]===e&&(n=r,!0)})),n}return function(){function e(){this.__entries__=[]}return Object.defineProperty(e.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),e.prototype.get=function(e){var n=t(this.__entries__,e),r=this.__entries__[n];return r&&r[1]},e.prototype.set=function(e,n){var r=t(this.__entries__,e);~r?this.__entries__[r][1]=n:this.__entries__.push([e,n])},e.prototype.delete=function(e){var n=this.__entries__,r=t(n,e);~r&&n.splice(r,1)},e.prototype.has=function(e){return!!~t(this.__entries__,e)},e.prototype.clear=function(){this.__entries__.splice(0)},e.prototype.forEach=function(t,e){void 0===e&&(e=null);for(var n=0,r=this.__entries__;n<r.length;n++){var i=r[n];t.call(e,i[1],i[0])}},e}()}(),i="undefined"!==typeof window&&"undefined"!==typeof document&&window.document===document,o=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(o):function(t){return setTimeout((function(){return t(Date.now())}),1e3/60)}}(),s=2;function l(t,e){var n=!1,r=!1,i=0;function o(){n&&(n=!1,t()),r&&u()}function l(){a(o)}function u(){var t=Date.now();if(n){if(t-i<s)return;r=!0}else n=!0,r=!1,setTimeout(l,e);i=t}return u}var u=20,c=["top","right","bottom","left","width","height","size","weight"],h="undefined"!==typeof MutationObserver,d=function(){function t(){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 t.prototype.addObserver=function(t){~this.observers_.indexOf(t)||this.observers_.push(t),this.connected_||this.connect_()},t.prototype.removeObserver=function(t){var e=this.observers_,n=e.indexOf(t);~n&&e.splice(n,1),!e.length&&this.connected_&&this.disconnect_()},t.prototype.refresh=function(){var t=this.updateObservers_();t&&this.refresh()},t.prototype.updateObservers_=function(){var t=this.observers_.filter((function(t){return t.gatherActive(),t.hasActive()}));return t.forEach((function(t){return t.broadcastActive()})),t.length>0},t.prototype.connect_=function(){i&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),h?(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)},t.prototype.disconnect_=function(){i&&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)},t.prototype.onTransitionEnd_=function(t){var e=t.propertyName,n=void 0===e?"":e,r=c.some((function(t){return!!~n.indexOf(t)}));r&&this.refresh()},t.getInstance=function(){return this.instance_||(this.instance_=new t),this.instance_},t.instance_=null,t}(),p=function(t,e){for(var n=0,r=Object.keys(e);n<r.length;n++){var i=r[n];Object.defineProperty(t,i,{value:e[i],enumerable:!1,writable:!1,configurable:!0})}return t},f=function(t){var e=t&&t.ownerDocument&&t.ownerDocument.defaultView;return e||o},g=A(0,0,0,0);function v(t){return parseFloat(t)||0}function m(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return e.reduce((function(e,n){var r=t["border-"+n+"-width"];return e+v(r)}),0)}function y(t){for(var e=["top","right","bottom","left"],n={},r=0,i=e;r<i.length;r++){var o=i[r],a=t["padding-"+o];n[o]=v(a)}return n}function b(t){var e=t.getBBox();return A(0,0,e.width,e.height)}function _(t){var e=t.clientWidth,n=t.clientHeight;if(!e&&!n)return g;var r=f(t).getComputedStyle(t),i=y(r),o=i.left+i.right,a=i.top+i.bottom,s=v(r.width),l=v(r.height);if("border-box"===r.boxSizing&&(Math.round(s+o)!==e&&(s-=m(r,"left","right")+o),Math.round(l+a)!==n&&(l-=m(r,"top","bottom")+a)),!w(t)){var u=Math.round(s+o)-e,c=Math.round(l+a)-n;1!==Math.abs(u)&&(s-=u),1!==Math.abs(c)&&(l-=c)}return A(i.left,i.top,s,l)}var x=function(){return"undefined"!==typeof SVGGraphicsElement?function(t){return t instanceof f(t).SVGGraphicsElement}:function(t){return t instanceof f(t).SVGElement&&"function"===typeof t.getBBox}}();function w(t){return t===f(t).document.documentElement}function O(t){return i?x(t)?b(t):_(t):g}function S(t){var e=t.x,n=t.y,r=t.width,i=t.height,o="undefined"!==typeof DOMRectReadOnly?DOMRectReadOnly:Object,a=Object.create(o.prototype);return p(a,{x:e,y:n,width:r,height:i,top:n,right:e+r,bottom:i+n,left:e}),a}function A(t,e,n,r){return{x:t,y:e,width:n,height:r}}var k=function(){function t(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=A(0,0,0,0),this.target=t}return t.prototype.isActive=function(){var t=O(this.target);return this.contentRect_=t,t.width!==this.broadcastWidth||t.height!==this.broadcastHeight},t.prototype.broadcastRect=function(){var t=this.contentRect_;return this.broadcastWidth=t.width,this.broadcastHeight=t.height,t},t}(),C=function(){function t(t,e){var n=S(e);p(this,{target:t,contentRect:n})}return t}(),M=function(){function t(t,e,n){if(this.activeObservations_=[],this.observations_=new r,"function"!==typeof t)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=t,this.controller_=e,this.callbackCtx_=n}return t.prototype.observe=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!==typeof Element&&Element instanceof Object){if(!(t instanceof f(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var e=this.observations_;e.has(t)||(e.set(t,new k(t)),this.controller_.addObserver(this),this.controller_.refresh())}},t.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!==typeof Element&&Element instanceof Object){if(!(t instanceof f(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var e=this.observations_;e.has(t)&&(e.delete(t),e.size||this.controller_.removeObserver(this))}},t.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},t.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach((function(e){e.isActive()&&t.activeObservations_.push(e)}))},t.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,e=this.activeObservations_.map((function(t){return new C(t.target,t.broadcastRect())}));this.callback_.call(t,e,t),this.clearActive()}},t.prototype.clearActive=function(){this.activeObservations_.splice(0)},t.prototype.hasActive=function(){return this.activeObservations_.length>0},t}(),T="undefined"!==typeof WeakMap?new WeakMap:new r,P=function(){function t(e){if(!(this instanceof t))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=d.getInstance(),r=new M(e,n,this);T.set(this,r)}return t}();["observe","unobserve","disconnect"].forEach((function(t){P.prototype[t]=function(){var e;return(e=T.get(this))[t].apply(e,arguments)}}));var I=function(){return"undefined"!==typeof o.ResizeObserver?o.ResizeObserver:P}();e.A=I},9008:function(t){
  25. /*!
  26. * screenfull
  27. * v5.2.0 - 2021-11-03
  28. * (c) Sindre Sorhus; MIT License
  29. */
  30. (function(){"use strict";var e="undefined"!==typeof window&&"undefined"!==typeof window.document?window.document:{},n=t.exports,r=function(){for(var t,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,i=n.length,o={};r<i;r++)if(t=n[r],t&&t[1]in e){for(r=0;r<t.length;r++)o[n[0][r]]=t[r];return o}return!1}(),i={change:r.fullscreenchange,error:r.fullscreenerror},o={request:function(t,n){return new Promise(function(i,o){var a=function(){this.off("change",a),i()}.bind(this);this.on("change",a),t=t||e.documentElement;var s=t[r.requestFullscreen](n);s instanceof Promise&&s.then(a).catch(o)}.bind(this))},exit:function(){return new Promise(function(t,n){if(this.isFullscreen){var i=function(){this.off("change",i),t()}.bind(this);this.on("change",i);var o=e[r.exitFullscreen]();o instanceof Promise&&o.then(i).catch(n)}else t()}.bind(this))},toggle:function(t,e){return this.isFullscreen?this.exit():this.request(t,e)},onchange:function(t){this.on("change",t)},onerror:function(t){this.on("error",t)},on:function(t,n){var r=i[t];r&&e.addEventListener(r,n,!1)},off:function(t,n){var r=i[t];r&&e.removeEventListener(r,n,!1)},raw:r};r?(Object.defineProperties(o,{isFullscreen:{get:function(){return Boolean(e[r.fullscreenElement])}},element:{enumerable:!0,get:function(){return e[r.fullscreenElement]}},isEnabled:{enumerable:!0,get:function(){return Boolean(e[r.fullscreenEnabled])}}}),n?t.exports=o:window.screenfull=o):n?t.exports={isEnabled:!1}:window.screenfull={isEnabled:!1}})()},23165:function(t,e){"use strict";e.A=(t,e)=>{const n=t.__vccOpts||t;for(const[r,i]of e)n[r]=i;return n}},72987:function(t,e,n){"use strict";n.d(e,{A:function(){return c}});var r=n(73913),i=n(78753),o=n(29611),a=n(35372),s=n(10148),l=(0,r.pM)({__name:"BasicBar",props:a.A,setup(t){const e=t,{options:n,loading:a}=(0,s.u)(e);return(t,e)=>((0,r.uX)(),(0,r.Wv)(o.A,{width:t.width,height:t.height,"echarts-options":(0,i.R1)(n),loading:(0,i.R1)(a)},null,8,["width","height","echarts-options","loading"]))}});const u=l;var c=u},29611:function(t,e,n){"use strict";n.d(e,{A:function(){return Q5}});var r={};n.r(r),n.d(r,{HashMap:function(){return he},RADIAN_TO_DEGREE:function(){return ye},assert:function(){return re},bind:function(){return Nt},clone:function(){return _t},concatArray:function(){return pe},createCanvas:function(){return At},createHashMap:function(){return de},createObject:function(){return fe},curry:function(){return zt},defaults:function(){return St},disableUserSelect:function(){return ge},each:function(){return Pt},eqNaN:function(){return qt},extend:function(){return Ot},filter:function(){return Et},find:function(){return Rt},guid:function(){return yt},hasOwn:function(){return ve},indexOf:function(){return kt},inherits:function(){return Ct},isArray:function(){return Bt},isArrayLike:function(){return Tt},isBuiltInObject:function(){return Ht},isDom:function(){return Gt},isFunction:function(){return Ft},isGradientObject:function(){return Xt},isImagePatternObject:function(){return Ut},isNumber:function(){return Vt},isObject:function(){return Qt},isPrimitive:function(){return se},isRegExp:function(){return Yt},isString:function(){return Wt},isStringSafe:function(){return jt},isTypedArray:function(){return Zt},keys:function(){return Dt},logError:function(){return bt},map:function(){return It},merge:function(){return xt},mergeAll:function(){return wt},mixin:function(){return Mt},noop:function(){return me},normalizeCssArray:function(){return ne},reduce:function(){return $t},retrieve:function(){return Kt},retrieve2:function(){return Jt},retrieve3:function(){return te},setAsPrimitive:function(){return ae},slice:function(){return ee},trim:function(){return ie}});var i={};n.r(i),n.d(i,{add:function(){return Oe},applyTransform:function(){return We},clone:function(){return xe},copy:function(){return _e},create:function(){return be},dist:function(){return Le},distSquare:function(){return ze},distance:function(){return De},distanceSquare:function(){return Ne},div:function(){return Ie},dot:function(){return $e},len:function(){return ke},lenSquare:function(){return Me},length:function(){return Ce},lengthSquare:function(){return Te},lerp:function(){return Fe},max:function(){return Ve},min:function(){return je},mul:function(){return Pe},negate:function(){return Be},normalize:function(){return Re},scale:function(){return Ee},scaleAndAdd:function(){return Se},set:function(){return we},sub:function(){return Ae}});var o={};n.r(o),n.d(o,{clone:function(){return En},copy:function(){return Cn},create:function(){return An},identity:function(){return kn},invert:function(){return $n},mul:function(){return Mn},rotate:function(){return Pn},scale:function(){return In},translate:function(){return Tn}});var a={};n.r(a),n.d(a,{fastLerp:function(){return Oi},fastMapToColor:function(){return Si},lerp:function(){return Ai},lift:function(){return xi},liftColor:function(){return Ei},lum:function(){return Pi},mapToColor:function(){return ki},modifyAlpha:function(){return Mi},modifyHSL:function(){return Ci},parse:function(){return yi},random:function(){return Ii},stringify:function(){return Ti},toHex:function(){return wi}});var s={};n.r(s),n.d(s,{dispose:function(){return Qa},disposeAll:function(){return Ha},getElementSSRData:function(){return Xa},getInstance:function(){return Za},init:function(){return Va},registerPainter:function(){return Ga},registerSSRDataGetter:function(){return Ua},version:function(){return Ya}});var l={};n.r(l),n.d(l,{Arc:function(){return lb},BezierCurve:function(){return ob},BoundingRect:function(){return Hn},Circle:function(){return yy},CompoundPath:function(){return cb},Ellipse:function(){return xy},Group:function(){return La},Image:function(){return vc},IncrementalDisplayable:function(){return Ab},Line:function(){return tb},LinearGradient:function(){return fb},OrientedBoundingRect:function(){return wb},Path:function(){return lc},Point:function(){return Dn},Polygon:function(){return Gy},Polyline:function(){return Yy},RadialGradient:function(){return vb},Rect:function(){return Ac},Ring:function(){return jy},Sector:function(){return By},Text:function(){return Vc},applyTransform:function(){return Vb},clipPointsByRect:function(){return Xb},clipRectByRect:function(){return Ub},createIcon:function(){return Yb},extendPath:function(){return Ib},extendShape:function(){return Tb},getShapeClass:function(){return Eb},getTransform:function(){return jb},groupTransition:function(){return Gb},initProps:function(){return ld},isElementRemoved:function(){return ud},lineLineIntersect:function(){return Kb},linePolygonIntersect:function(){return qb},makeImage:function(){return Db},makePath:function(){return Rb},mergePath:function(){return Nb},registerShape:function(){return $b},removeElement:function(){return cd},removeElementWithFadeOut:function(){return dd},resizePath:function(){return zb},setTooltipConfig:function(){return e_},subPixelOptimize:function(){return Wb},subPixelOptimizeLine:function(){return Bb},subPixelOptimizeRect:function(){return Fb},transformDirection:function(){return Qb},traverseElements:function(){return r_},updateProps:function(){return sd}});var u={};n.r(u),n.d(u,{createDimensions:function(){return XS},createList:function(){return zk},createScale:function(){return Fk},createSymbol:function(){return kx},createTextStyle:function(){return jk},dataStack:function(){return Bk},enableHoverEmphasis:function(){return Qh},getECData:function(){return Qc},getLayoutRect:function(){return af},mixinAxisModelCommonMethods:function(){return Wk}});var c={};n.r(c),n.d(c,{MAX_SAFE_INTEGER:function(){return cs},asc:function(){return rs},getPercentWithPrecision:function(){return ss},getPixelPrecision:function(){return as},getPrecision:function(){return is},getPrecisionSafe:function(){return os},isNumeric:function(){return xs},isRadianAroundZero:function(){return ds},linearMap:function(){return ts},nice:function(){return ms},numericToNumber:function(){return _s},parseDate:function(){return fs},quantile:function(){return ys},quantity:function(){return gs},quantityExponent:function(){return vs},reformIntervals:function(){return bs},remRadian:function(){return hs},round:function(){return ns}});var h={};n.r(h),n.d(h,{format:function(){return wp},parse:function(){return fs}});var d={};n.r(d),n.d(d,{Arc:function(){return lb},BezierCurve:function(){return ob},BoundingRect:function(){return Hn},Circle:function(){return yy},CompoundPath:function(){return cb},Ellipse:function(){return xy},Group:function(){return La},Image:function(){return vc},IncrementalDisplayable:function(){return Ab},Line:function(){return tb},LinearGradient:function(){return fb},Polygon:function(){return Gy},Polyline:function(){return Yy},RadialGradient:function(){return vb},Rect:function(){return Ac},Ring:function(){return jy},Sector:function(){return By},Text:function(){return Vc},clipPointsByRect:function(){return Xb},clipRectByRect:function(){return Ub},createIcon:function(){return Yb},extendPath:function(){return Ib},extendShape:function(){return Tb},getShapeClass:function(){return Eb},getTransform:function(){return jb},initProps:function(){return ld},makeImage:function(){return Db},makePath:function(){return Rb},mergePath:function(){return Nb},registerShape:function(){return $b},resizePath:function(){return zb},updateProps:function(){return sd}});var p={};n.r(p),n.d(p,{addCommas:function(){return Fp},capitalFirst:function(){return Yp},encodeHTML:function(){return ln},formatTime:function(){return Up},formatTpl:function(){return Zp},getTextRect:function(){return oC},getTooltipMarker:function(){return Xp},normalizeCssArray:function(){return jp},toCamelCase:function(){return Wp},truncateText:function(){return $l}});var f={};n.r(f),n.d(f,{bind:function(){return Nt},clone:function(){return _t},curry:function(){return zt},defaults:function(){return St},each:function(){return Pt},extend:function(){return Ot},filter:function(){return Et},indexOf:function(){return kt},inherits:function(){return Ct},isArray:function(){return Bt},isFunction:function(){return Ft},isObject:function(){return Qt},isString:function(){return Wt},map:function(){return It},merge:function(){return xt},reduce:function(){return $t}});var g={};n.r(g),n.d(g,{Axis:function(){return kC},ChartView:function(){return d_},ComponentModel:function(){return vf},ComponentView:function(){return Hm},List:function(){return GS},Model:function(){return Qd},PRIORITY:function(){return Hw},SeriesModel:function(){return Vm},color:function(){return a},connect:function(){return FO},dataTool:function(){return cS},dependencies:function(){return Mw},disConnect:function(){return jO},disconnect:function(){return WO},dispose:function(){return VO},env:function(){return U},extendChartView:function(){return PC},extendComponentModel:function(){return CC},extendComponentView:function(){return MC},extendSeriesModel:function(){return TC},format:function(){return p},getCoordinateSystemDimensions:function(){return tS},getInstanceByDom:function(){return QO},getInstanceById:function(){return HO},getMap:function(){return lS},graphic:function(){return d},helper:function(){return u},init:function(){return BO},innerDrawElementOnCanvas:function(){return uw},matrix:function(){return o},number:function(){return c},parseGeoJSON:function(){return iC},parseGeoJson:function(){return iC},registerAction:function(){return KO},registerCoordinateSystem:function(){return JO},registerLayout:function(){return eS},registerLoading:function(){return oS},registerLocale:function(){return ip},registerMap:function(){return sS},registerPostInit:function(){return UO},registerPostUpdate:function(){return YO},registerPreprocessor:function(){return GO},registerProcessor:function(){return XO},registerTheme:function(){return ZO},registerTransform:function(){return uS},registerUpdateLifecycle:function(){return qO},registerVisual:function(){return nS},setCanvasCreator:function(){return aS},setPlatformAPI:function(){return ot},throttle:function(){return v_},time:function(){return h},use:function(){return pS},util:function(){return f},vector:function(){return i},version:function(){return Cw},zrUtil:function(){return r},zrender:function(){return s}});var v=n(73913),m=n(78753),y=n(1980),b=n(69751);function _(t,e,n){var r,i=n||{},o=i.noTrailing,a=void 0!==o&&o,s=i.noLeading,l=void 0!==s&&s,u=i.debounceMode,c=void 0===u?void 0:u,h=!1,d=0;function p(){r&&clearTimeout(r)}function f(t){var e=t||{},n=e.upcomingOnly,r=void 0!==n&&n;p(),h=!r}function g(){for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];var s=this,u=Date.now()-d;function f(){d=Date.now(),e.apply(s,i)}function g(){r=void 0}h||(l||!c||r||f(),p(),void 0===c&&u>t?l?(d=Date.now(),a||(r=setTimeout(c?g:f,t))):f():!0!==a&&(r=setTimeout(c?g:f,void 0===c?t-u:t)))}return g.cancel=f,g}function x(t,e,n){var r=n||{},i=r.atBegin,o=void 0!==i&&i;return _(t,e,{debounceMode:!1!==o})}var w=n(5530),O=n(16155),S=n(47960),A=n(98657),k=n(97732),C=n(94471),M=n(96704),T=n(69729);const P=new k.A("antSpinMove",{to:{opacity:1}}),I=new k.A("antRotate",{to:{transform:"rotate(405deg)"}}),$=t=>({[`${t.componentCls}`]:(0,A.A)((0,A.A)({},(0,T.dF)(t)),{position:"absolute",display:"none",color:t.colorPrimary,textAlign:"center",verticalAlign:"middle",opacity:0,transition:`transform ${t.motionDurationSlow} ${t.motionEaseInOutCirc}`,"&-spinning":{position:"static",display:"inline-block",opacity:1},"&-nested-loading":{position:"relative",[`> div > ${t.componentCls}`]:{position:"absolute",top:0,insetInlineStart:0,zIndex:4,display:"block",width:"100%",height:"100%",maxHeight:t.contentHeight,[`${t.componentCls}-dot`]:{position:"absolute",top:"50%",insetInlineStart:"50%",margin:-t.spinDotSize/2},[`${t.componentCls}-text`]:{position:"absolute",top:"50%",width:"100%",paddingTop:(t.spinDotSize-t.fontSize)/2+2,textShadow:`0 1px 2px ${t.colorBgContainer}`},[`&${t.componentCls}-show-text ${t.componentCls}-dot`]:{marginTop:-t.spinDotSize/2-10},"&-sm":{[`${t.componentCls}-dot`]:{margin:-t.spinDotSizeSM/2},[`${t.componentCls}-text`]:{paddingTop:(t.spinDotSizeSM-t.fontSize)/2+2},[`&${t.componentCls}-show-text ${t.componentCls}-dot`]:{marginTop:-t.spinDotSizeSM/2-10}},"&-lg":{[`${t.componentCls}-dot`]:{margin:-t.spinDotSizeLG/2},[`${t.componentCls}-text`]:{paddingTop:(t.spinDotSizeLG-t.fontSize)/2+2},[`&${t.componentCls}-show-text ${t.componentCls}-dot`]:{marginTop:-t.spinDotSizeLG/2-10}}},[`${t.componentCls}-container`]:{position:"relative",transition:`opacity ${t.motionDurationSlow}`,"&::after":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:10,width:"100%",height:"100%",background:t.colorBgContainer,opacity:0,transition:`all ${t.motionDurationSlow}`,content:'""',pointerEvents:"none"}},[`${t.componentCls}-blur`]:{clear:"both",opacity:.5,userSelect:"none",pointerEvents:"none",["&::after"]:{opacity:.4,pointerEvents:"auto"}}},["&-tip"]:{color:t.spinDotDefault},[`${t.componentCls}-dot`]:{position:"relative",display:"inline-block",fontSize:t.spinDotSize,width:"1em",height:"1em","&-item":{position:"absolute",display:"block",width:(t.spinDotSize-t.marginXXS/2)/2,height:(t.spinDotSize-t.marginXXS/2)/2,backgroundColor:t.colorPrimary,borderRadius:"100%",transform:"scale(0.75)",transformOrigin:"50% 50%",opacity:.3,animationName:P,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:I,animationDuration:"1.2s",animationIterationCount:"infinite",animationTimingFunction:"linear"}},[`&-sm ${t.componentCls}-dot`]:{fontSize:t.spinDotSizeSM,i:{width:(t.spinDotSizeSM-t.marginXXS/2)/2,height:(t.spinDotSizeSM-t.marginXXS/2)/2}},[`&-lg ${t.componentCls}-dot`]:{fontSize:t.spinDotSizeLG,i:{width:(t.spinDotSizeLG-t.marginXXS)/2,height:(t.spinDotSizeLG-t.marginXXS)/2}},[`&${t.componentCls}-show-text ${t.componentCls}-text`]:{display:"block"}})});var E=(0,C.A)("Spin",(t=>{const e=(0,M.h1)(t,{spinDotDefault:t.colorTextDescription,spinDotSize:t.controlHeightLG/2,spinDotSizeSM:.35*t.controlHeightLG,spinDotSizeLG:t.controlHeight});return[$(e)]}),{contentHeight:400}),R=n(3551),D=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n};const L=()=>({prefixCls:String,spinning:{type:Boolean,default:void 0},size:String,wrapperClassName:String,tip:w.A.any,delay:Number,indicator:w.A.any});let N=null;function z(t,e){return!!t&&!!e&&!isNaN(Number(e))}function B(t){const e=t.indicator;N="function"===typeof e?e:()=>(0,v.bF)(e,null,null)}var F=(0,v.pM)({compatConfig:{MODE:3},name:"ASpin",inheritAttrs:!1,props:(0,S.A)(L(),{size:"default",spinning:!0,wrapperClassName:""}),setup(t,e){let{attrs:n,slots:r}=e;const{prefixCls:i,size:o,direction:a}=(0,R.A)("spin",t),[s,l]=E(i),u=(0,m.IJ)(t.spinning&&!z(t.spinning,t.delay));let c;return(0,v.wB)([()=>t.spinning,()=>t.delay],(()=>{null===c||void 0===c||c.cancel(),c=x(t.delay,(()=>{u.value=t.spinning})),null===c||void 0===c||c()}),{immediate:!0,flush:"post"}),(0,v.xo)((()=>{null===c||void 0===c||c.cancel()})),()=>{var e,c;const{class:h}=n,d=D(n,["class"]),{tip:p=(null===(e=r.tip)||void 0===e?void 0:e.call(r))}=t,f=null===(c=r.default)||void 0===c?void 0:c.call(r),g={[l.value]:!0,[i.value]:!0,[`${i.value}-sm`]:"small"===o.value,[`${i.value}-lg`]:"large"===o.value,[`${i.value}-spinning`]:u.value,[`${i.value}-show-text`]:!!p,[`${i.value}-rtl`]:"rtl"===a.value,[h]:!!h};function m(e){const n=`${e}-dot`;let i=(0,O.rU)(r,t,"indicator");return null===i?null:(Array.isArray(i)&&(i=1===i.length?i[0]:i),(0,v.vv)(i)?(0,v.E3)(i,{class:n}):N&&(0,v.vv)(N())?(0,v.E3)(N(),{class:n}):(0,v.bF)("span",{class:`${n} ${e}-dot-spin`},[(0,v.bF)("i",{class:`${e}-dot-item`},null),(0,v.bF)("i",{class:`${e}-dot-item`},null),(0,v.bF)("i",{class:`${e}-dot-item`},null),(0,v.bF)("i",{class:`${e}-dot-item`},null)]))}const y=(0,v.bF)("div",(0,b.A)((0,b.A)({},d),{},{class:g,"aria-live":"polite","aria-busy":u.value}),[m(i.value),p?(0,v.bF)("div",{class:`${i.value}-text`},[p]):null]);if(f&&(0,O.Gk)(f).length){const e={[`${i.value}-container`]:!0,[`${i.value}-blur`]:u.value};return s((0,v.bF)("div",{class:[`${i.value}-nested-loading`,t.wrapperClassName,l.value]},[u.value&&(0,v.bF)("div",{key:"loading"},[y]),(0,v.bF)("div",{class:e,key:"container"},[f])]))}return s(y)}}});F.setDefaultIndicator=B,F.install=function(t){return t.component(F.name,F),t};var W=F,j=n(2167),V=(n(30381),function(t,e){return V=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},V(t,e)});function Q(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}V(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}Object.create;Object.create;var H=function(){function t(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return t}(),Z=function(){function t(){this.browser=new H,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 t}(),G=new Z;function X(t,e){var n=e.browser,r=t.match(/Firefox\/([\d.]+)/),i=t.match(/MSIE\s([\d.]+)/)||t.match(/Trident\/.+?rv:(([\d.]+))/),o=t.match(/Edge?\/([\d.]+)/),a=/micromessenger/i.test(t);r&&(n.firefox=!0,n.version=r[1]),i&&(n.ie=!0,n.version=i[1]),o&&(n.edge=!0,n.version=o[1],n.newEdge=+o[1].split(".")[0]>18),a&&(n.weChat=!0),e.svgSupported="undefined"!==typeof SVGRect,e.touchEventsSupported="ontouchstart"in window&&!n.ie&&!n.edge,e.pointerEventsSupported="onpointerdown"in window&&(n.edge||n.ie&&+n.version>=11),e.domSupported="undefined"!==typeof document;var s=document.documentElement.style;e.transform3dSupported=(n.ie&&"transition"in s||n.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),e.transformSupported=e.transform3dSupported||n.ie&&+n.version>=9}"object"===typeof wx&&"function"===typeof wx.getSystemInfoSync?(G.wxa=!0,G.touchEventsSupported=!0):"undefined"===typeof document&&"undefined"!==typeof self?G.worker=!0:"undefined"===typeof navigator||0===navigator.userAgent.indexOf("Node.js")?(G.node=!0,G.svgSupported=!0):X(navigator.userAgent,G);var U=G,Y=12,q="sans-serif",K=Y+"px "+q,J=20,tt=100,et="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function nt(t){var e={};if("undefined"===typeof JSON)return e;for(var n=0;n<t.length;n++){var r=String.fromCharCode(n+32),i=(t.charCodeAt(n)-J)/tt;e[r]=i}return e}var rt=nt(et),it={createCanvas:function(){return"undefined"!==typeof document&&document.createElement("canvas")},measureText:function(){var t,e;return function(n,r){if(!t){var i=it.createCanvas();t=i&&i.getContext("2d")}if(t)return e!==r&&(e=t.font=r||K),t.measureText(n);n=n||"",r=r||K;var o=/((?:\d+)?\.?\d*)px/.exec(r),a=o&&+o[1]||Y,s=0;if(r.indexOf("mono")>=0)s=a*n.length;else for(var l=0;l<n.length;l++){var u=rt[n[l]];s+=null==u?a:u*a}return{width:s}}}(),loadImage:function(t,e,n){var r=new Image;return r.onload=e,r.onerror=n,r.src=t,r}};function ot(t){for(var e in it)t[e]&&(it[e]=t[e])}var at=$t(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],(function(t,e){return t["[object "+e+"]"]=!0,t}),{}),st=$t(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],(function(t,e){return t["[object "+e+"Array]"]=!0,t}),{}),lt=Object.prototype.toString,ut=Array.prototype,ct=ut.forEach,ht=ut.filter,dt=ut.slice,pt=ut.map,ft=function(){}.constructor,gt=ft?ft.prototype:null,vt="__proto__",mt=2311;function yt(){return mt++}function bt(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];"undefined"!==typeof console&&console.error.apply(console,t)}function _t(t){if(null==t||"object"!==typeof t)return t;var e=t,n=lt.call(t);if("[object Array]"===n){if(!se(t)){e=[];for(var r=0,i=t.length;r<i;r++)e[r]=_t(t[r])}}else if(st[n]){if(!se(t)){var o=t.constructor;if(o.from)e=o.from(t);else{e=new o(t.length);for(r=0,i=t.length;r<i;r++)e[r]=t[r]}}}else if(!at[n]&&!se(t)&&!Gt(t))for(var a in e={},t)t.hasOwnProperty(a)&&a!==vt&&(e[a]=_t(t[a]));return e}function xt(t,e,n){if(!Qt(e)||!Qt(t))return n?_t(e):t;for(var r in e)if(e.hasOwnProperty(r)&&r!==vt){var i=t[r],o=e[r];!Qt(o)||!Qt(i)||Bt(o)||Bt(i)||Gt(o)||Gt(i)||Ht(o)||Ht(i)||se(o)||se(i)?!n&&r in t||(t[r]=_t(e[r])):xt(i,o,n)}return t}function wt(t,e){for(var n=t[0],r=1,i=t.length;r<i;r++)n=xt(n,t[r],e);return n}function Ot(t,e){if(Object.assign)Object.assign(t,e);else for(var n in e)e.hasOwnProperty(n)&&n!==vt&&(t[n]=e[n]);return t}function St(t,e,n){for(var r=Dt(e),i=0;i<r.length;i++){var o=r[i];(n?null!=e[o]:null==t[o])&&(t[o]=e[o])}return t}var At=it.createCanvas;function kt(t,e){if(t){if(t.indexOf)return t.indexOf(e);for(var n=0,r=t.length;n<r;n++)if(t[n]===e)return n}return-1}function Ct(t,e){var n=t.prototype;function r(){}for(var i in r.prototype=e.prototype,t.prototype=new r,n)n.hasOwnProperty(i)&&(t.prototype[i]=n[i]);t.prototype.constructor=t,t.superClass=e}function Mt(t,e,n){if(t="prototype"in t?t.prototype:t,e="prototype"in e?e.prototype:e,Object.getOwnPropertyNames)for(var r=Object.getOwnPropertyNames(e),i=0;i<r.length;i++){var o=r[i];"constructor"!==o&&(n?null!=e[o]:null==t[o])&&(t[o]=e[o])}else St(t,e,n)}function Tt(t){return!!t&&("string"!==typeof t&&"number"===typeof t.length)}function Pt(t,e,n){if(t&&e)if(t.forEach&&t.forEach===ct)t.forEach(e,n);else if(t.length===+t.length)for(var r=0,i=t.length;r<i;r++)e.call(n,t[r],r,t);else for(var o in t)t.hasOwnProperty(o)&&e.call(n,t[o],o,t)}function It(t,e,n){if(!t)return[];if(!e)return ee(t);if(t.map&&t.map===pt)return t.map(e,n);for(var r=[],i=0,o=t.length;i<o;i++)r.push(e.call(n,t[i],i,t));return r}function $t(t,e,n,r){if(t&&e){for(var i=0,o=t.length;i<o;i++)n=e.call(r,n,t[i],i,t);return n}}function Et(t,e,n){if(!t)return[];if(!e)return ee(t);if(t.filter&&t.filter===ht)return t.filter(e,n);for(var r=[],i=0,o=t.length;i<o;i++)e.call(n,t[i],i,t)&&r.push(t[i]);return r}function Rt(t,e,n){if(t&&e)for(var r=0,i=t.length;r<i;r++)if(e.call(n,t[r],r,t))return t[r]}function Dt(t){if(!t)return[];if(Object.keys)return Object.keys(t);var e=[];for(var n in t)t.hasOwnProperty(n)&&e.push(n);return e}function Lt(t,e){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return function(){return t.apply(e,n.concat(dt.call(arguments)))}}var Nt=gt&&Ft(gt.bind)?gt.call.bind(gt.bind):Lt;function zt(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return function(){return t.apply(this,e.concat(dt.call(arguments)))}}function Bt(t){return Array.isArray?Array.isArray(t):"[object Array]"===lt.call(t)}function Ft(t){return"function"===typeof t}function Wt(t){return"string"===typeof t}function jt(t){return"[object String]"===lt.call(t)}function Vt(t){return"number"===typeof t}function Qt(t){var e=typeof t;return"function"===e||!!t&&"object"===e}function Ht(t){return!!at[lt.call(t)]}function Zt(t){return!!st[lt.call(t)]}function Gt(t){return"object"===typeof t&&"number"===typeof t.nodeType&&"object"===typeof t.ownerDocument}function Xt(t){return null!=t.colorStops}function Ut(t){return null!=t.image}function Yt(t){return"[object RegExp]"===lt.call(t)}function qt(t){return t!==t}function Kt(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n=0,r=t.length;n<r;n++)if(null!=t[n])return t[n]}function Jt(t,e){return null!=t?t:e}function te(t,e,n){return null!=t?t:null!=e?e:n}function ee(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return dt.apply(t,e)}function ne(t){if("number"===typeof t)return[t,t,t,t];var e=t.length;return 2===e?[t[0],t[1],t[0],t[1]]:3===e?[t[0],t[1],t[2],t[1]]:t}function re(t,e){if(!t)throw new Error(e)}function ie(t){return null==t?null:"function"===typeof t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var oe="__ec_primitive__";function ae(t){t[oe]=!0}function se(t){return t[oe]}var le=function(){function t(){this.data={}}return t.prototype["delete"]=function(t){var e=this.has(t);return e&&delete this.data[t],e},t.prototype.has=function(t){return this.data.hasOwnProperty(t)},t.prototype.get=function(t){return this.data[t]},t.prototype.set=function(t,e){return this.data[t]=e,this},t.prototype.keys=function(){return Dt(this.data)},t.prototype.forEach=function(t){var e=this.data;for(var n in e)e.hasOwnProperty(n)&&t(e[n],n)},t}(),ue="function"===typeof Map;function ce(){return ue?new Map:new le}var he=function(){function t(e){var n=Bt(e);this.data=ce();var r=this;function i(t,e){n?r.set(t,e):r.set(e,t)}e instanceof t?e.each(i):e&&Pt(e,i)}return t.prototype.hasKey=function(t){return this.data.has(t)},t.prototype.get=function(t){return this.data.get(t)},t.prototype.set=function(t,e){return this.data.set(t,e),e},t.prototype.each=function(t,e){this.data.forEach((function(n,r){t.call(e,n,r)}))},t.prototype.keys=function(){var t=this.data.keys();return ue?Array.from(t):t},t.prototype.removeKey=function(t){this.data["delete"](t)},t}();function de(t){return new he(t)}function pe(t,e){for(var n=new t.constructor(t.length+e.length),r=0;r<t.length;r++)n[r]=t[r];var i=t.length;for(r=0;r<e.length;r++)n[r+i]=e[r];return n}function fe(t,e){var n;if(Object.create)n=Object.create(t);else{var r=function(){};r.prototype=t,n=new r}return e&&Ot(n,e),n}function ge(t){var e=t.style;e.webkitUserSelect="none",e.userSelect="none",e.webkitTapHighlightColor="rgba(0,0,0,0)",e["-webkit-touch-callout"]="none"}function ve(t,e){return t.hasOwnProperty(e)}function me(){}var ye=180/Math.PI;function be(t,e){return null==t&&(t=0),null==e&&(e=0),[t,e]}function _e(t,e){return t[0]=e[0],t[1]=e[1],t}function xe(t){return[t[0],t[1]]}function we(t,e,n){return t[0]=e,t[1]=n,t}function Oe(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t}function Se(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t}function Ae(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t}function ke(t){return Math.sqrt(Me(t))}var Ce=ke;function Me(t){return t[0]*t[0]+t[1]*t[1]}var Te=Me;function Pe(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t}function Ie(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t}function $e(t,e){return t[0]*e[0]+t[1]*e[1]}function Ee(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t}function Re(t,e){var n=ke(e);return 0===n?(t[0]=0,t[1]=0):(t[0]=e[0]/n,t[1]=e[1]/n),t}function De(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}var Le=De;function Ne(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])}var ze=Ne;function Be(t,e){return t[0]=-e[0],t[1]=-e[1],t}function Fe(t,e,n,r){return t[0]=e[0]+r*(n[0]-e[0]),t[1]=e[1]+r*(n[1]-e[1]),t}function We(t,e,n){var r=e[0],i=e[1];return t[0]=n[0]*r+n[2]*i+n[4],t[1]=n[1]*r+n[3]*i+n[5],t}function je(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t}function Ve(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t}var Qe=function(){function t(t,e){this.target=t,this.topTarget=e&&e.topTarget}return t}(),He=function(){function t(t){this.handler=t,t.on("mousedown",this._dragStart,this),t.on("mousemove",this._drag,this),t.on("mouseup",this._dragEnd,this)}return t.prototype._dragStart=function(t){var e=t.target;while(e&&!e.draggable)e=e.parent||e.__hostTarget;e&&(this._draggingTarget=e,e.dragging=!0,this._x=t.offsetX,this._y=t.offsetY,this.handler.dispatchToElement(new Qe(e,t),"dragstart",t.event))},t.prototype._drag=function(t){var e=this._draggingTarget;if(e){var n=t.offsetX,r=t.offsetY,i=n-this._x,o=r-this._y;this._x=n,this._y=r,e.drift(i,o,t),this.handler.dispatchToElement(new Qe(e,t),"drag",t.event);var a=this.handler.findHover(n,r,e).target,s=this._dropTarget;this._dropTarget=a,e!==a&&(s&&a!==s&&this.handler.dispatchToElement(new Qe(s,t),"dragleave",t.event),a&&a!==s&&this.handler.dispatchToElement(new Qe(a,t),"dragenter",t.event))}},t.prototype._dragEnd=function(t){var e=this._draggingTarget;e&&(e.dragging=!1),this.handler.dispatchToElement(new Qe(e,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new Qe(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null},t}(),Ze=He,Ge=function(){function t(t){t&&(this._$eventProcessor=t)}return t.prototype.on=function(t,e,n,r){this._$handlers||(this._$handlers={});var i=this._$handlers;if("function"===typeof e&&(r=n,n=e,e=null),!n||!t)return this;var o=this._$eventProcessor;null!=e&&o&&o.normalizeQuery&&(e=o.normalizeQuery(e)),i[t]||(i[t]=[]);for(var a=0;a<i[t].length;a++)if(i[t][a].h===n)return this;var s={h:n,query:e,ctx:r||this,callAtLast:n.zrEventfulCallAtLast},l=i[t].length-1,u=i[t][l];return u&&u.callAtLast?i[t].splice(l,0,s):i[t].push(s),this},t.prototype.isSilent=function(t){var e=this._$handlers;return!e||!e[t]||!e[t].length},t.prototype.off=function(t,e){var n=this._$handlers;if(!n)return this;if(!t)return this._$handlers={},this;if(e){if(n[t]){for(var r=[],i=0,o=n[t].length;i<o;i++)n[t][i].h!==e&&r.push(n[t][i]);n[t]=r}n[t]&&0===n[t].length&&delete n[t]}else delete n[t];return this},t.prototype.trigger=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(!this._$handlers)return this;var r=this._$handlers[t],i=this._$eventProcessor;if(r)for(var o=e.length,a=r.length,s=0;s<a;s++){var l=r[s];if(!i||!i.filter||null==l.query||i.filter(t,l.query))switch(o){case 0:l.h.call(l.ctx);break;case 1:l.h.call(l.ctx,e[0]);break;case 2:l.h.call(l.ctx,e[0],e[1]);break;default:l.h.apply(l.ctx,e);break}}return i&&i.afterTrigger&&i.afterTrigger(t),this},t.prototype.triggerWithContext=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(!this._$handlers)return this;var r=this._$handlers[t],i=this._$eventProcessor;if(r)for(var o=e.length,a=e[o-1],s=r.length,l=0;l<s;l++){var u=r[l];if(!i||!i.filter||null==u.query||i.filter(t,u.query))switch(o){case 0:u.h.call(a);break;case 1:u.h.call(a,e[0]);break;case 2:u.h.call(a,e[0],e[1]);break;default:u.h.apply(a,e.slice(1,o-1));break}}return i&&i.afterTrigger&&i.afterTrigger(t),this},t}(),Xe=Ge,Ue=Math.log(2);function Ye(t,e,n,r,i,o){var a=r+"-"+i,s=t.length;if(o.hasOwnProperty(a))return o[a];if(1===e){var l=Math.round(Math.log((1<<s)-1&~i)/Ue);return t[n][l]}var u=r|1<<n,c=n+1;while(r&1<<c)c++;for(var h=0,d=0,p=0;d<s;d++){var f=1<<d;f&i||(h+=(p%2?-1:1)*t[n][d]*Ye(t,e-1,c,u,i|f,o),p++)}return o[a]=h,h}function qe(t,e){var n=[[t[0],t[1],1,0,0,0,-e[0]*t[0],-e[0]*t[1]],[0,0,0,t[0],t[1],1,-e[1]*t[0],-e[1]*t[1]],[t[2],t[3],1,0,0,0,-e[2]*t[2],-e[2]*t[3]],[0,0,0,t[2],t[3],1,-e[3]*t[2],-e[3]*t[3]],[t[4],t[5],1,0,0,0,-e[4]*t[4],-e[4]*t[5]],[0,0,0,t[4],t[5],1,-e[5]*t[4],-e[5]*t[5]],[t[6],t[7],1,0,0,0,-e[6]*t[6],-e[6]*t[7]],[0,0,0,t[6],t[7],1,-e[7]*t[6],-e[7]*t[7]]],r={},i=Ye(n,8,0,0,0,r);if(0!==i){for(var o=[],a=0;a<8;a++)for(var s=0;s<8;s++)null==o[s]&&(o[s]=0),o[s]+=((a+s)%2?-1:1)*Ye(n,7,0===a?1:0,1<<a,1<<s,r)/i*e[a];return function(t,e,n){var r=e*o[6]+n*o[7]+1;t[0]=(e*o[0]+n*o[1]+o[2])/r,t[1]=(e*o[3]+n*o[4]+o[5])/r}}}var Ke="___zrEVENTSAVED",Je=[];function tn(t,e,n,r,i){return en(Je,e,r,i,!0)&&en(t,n,Je[0],Je[1])}function en(t,e,n,r,i){if(e.getBoundingClientRect&&U.domSupported&&!on(e)){var o=e[Ke]||(e[Ke]={}),a=nn(e,o),s=rn(a,o,i);if(s)return s(t,n,r),!0}return!1}function nn(t,e){var n=e.markers;if(n)return n;n=e.markers=[];for(var r=["left","right"],i=["top","bottom"],o=0;o<4;o++){var a=document.createElement("div"),s=a.style,l=o%2,u=(o>>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",i[u]+":0",r[1-l]+":auto",i[1-u]+":auto",""].join("!important;"),t.appendChild(a),n.push(a)}return n}function rn(t,e,n){for(var r=n?"invTrans":"trans",i=e[r],o=e.srcCoords,a=[],s=[],l=!0,u=0;u<4;u++){var c=t[u].getBoundingClientRect(),h=2*u,d=c.left,p=c.top;a.push(d,p),l=l&&o&&d===o[h]&&p===o[h+1],s.push(t[u].offsetLeft,t[u].offsetTop)}return l&&i?i:(e.srcCoords=a,e[r]=n?qe(s,a):qe(a,s))}function on(t){return"CANVAS"===t.nodeName.toUpperCase()}var an=/([&<>"'])/g,sn={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function ln(t){return null==t?"":(t+"").replace(an,(function(t,e){return sn[e]}))}var un=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,cn=[],hn=U.browser.firefox&&+U.browser.version.split(".")[0]<39;function dn(t,e,n,r){return n=n||{},r?pn(t,e,n):hn&&null!=e.layerX&&e.layerX!==e.offsetX?(n.zrX=e.layerX,n.zrY=e.layerY):null!=e.offsetX?(n.zrX=e.offsetX,n.zrY=e.offsetY):pn(t,e,n),n}function pn(t,e,n){if(U.domSupported&&t.getBoundingClientRect){var r=e.clientX,i=e.clientY;if(on(t)){var o=t.getBoundingClientRect();return n.zrX=r-o.left,void(n.zrY=i-o.top)}if(en(cn,t,r,i))return n.zrX=cn[0],void(n.zrY=cn[1])}n.zrX=n.zrY=0}function fn(t){return t||window.event}function gn(t,e,n){if(e=fn(e),null!=e.zrX)return e;var r=e.type,i=r&&r.indexOf("touch")>=0;if(i){var o="touchend"!==r?e.targetTouches[0]:e.changedTouches[0];o&&dn(t,o,e,n)}else{dn(t,e,e,n);var a=vn(e);e.zrDelta=a?a/120:-(e.detail||0)/3}var s=e.button;return null==e.which&&void 0!==s&&un.test(e.type)&&(e.which=1&s?1:2&s?3:4&s?2:0),e}function vn(t){var e=t.wheelDelta;if(e)return e;var n=t.deltaX,r=t.deltaY;if(null==n||null==r)return e;var i=0!==r?Math.abs(r):Math.abs(n),o=r>0?-1:r<0?1:n>0?-1:1;return 3*i*o}function mn(t,e,n,r){t.addEventListener(e,n,r)}function yn(t,e,n,r){t.removeEventListener(e,n,r)}var bn=function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0};function _n(t){return 2===t.which||3===t.which}var xn=function(){function t(){this._track=[]}return t.prototype.recognize=function(t,e,n){return this._doTrack(t,e,n),this._recognize(t)},t.prototype.clear=function(){return this._track.length=0,this},t.prototype._doTrack=function(t,e,n){var r=t.touches;if(r){for(var i={points:[],touches:[],target:e,event:t},o=0,a=r.length;o<a;o++){var s=r[o],l=dn(n,s,{});i.points.push([l.zrX,l.zrY]),i.touches.push(s)}this._track.push(i)}},t.prototype._recognize=function(t){for(var e in Sn)if(Sn.hasOwnProperty(e)){var n=Sn[e](this._track,t);if(n)return n}},t}();function wn(t){var e=t[1][0]-t[0][0],n=t[1][1]-t[0][1];return Math.sqrt(e*e+n*n)}function On(t){return[(t[0][0]+t[1][0])/2,(t[0][1]+t[1][1])/2]}var Sn={pinch:function(t,e){var n=t.length;if(n){var r=(t[n-1]||{}).points,i=(t[n-2]||{}).points||r;if(i&&i.length>1&&r&&r.length>1){var o=wn(r)/wn(i);!isFinite(o)&&(o=1),e.pinchScale=o;var a=On(r);return e.pinchX=a[0],e.pinchY=a[1],{type:"pinch",target:t[0].target,event:e}}}}};function An(){return[1,0,0,1,0,0]}function kn(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function Cn(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}function Mn(t,e,n){var r=e[0]*n[0]+e[2]*n[1],i=e[1]*n[0]+e[3]*n[1],o=e[0]*n[2]+e[2]*n[3],a=e[1]*n[2]+e[3]*n[3],s=e[0]*n[4]+e[2]*n[5]+e[4],l=e[1]*n[4]+e[3]*n[5]+e[5];return t[0]=r,t[1]=i,t[2]=o,t[3]=a,t[4]=s,t[5]=l,t}function Tn(t,e,n){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4]+n[0],t[5]=e[5]+n[1],t}function Pn(t,e,n,r){void 0===r&&(r=[0,0]);var i=e[0],o=e[2],a=e[4],s=e[1],l=e[3],u=e[5],c=Math.sin(n),h=Math.cos(n);return t[0]=i*h+s*c,t[1]=-i*c+s*h,t[2]=o*h+l*c,t[3]=-o*c+h*l,t[4]=h*(a-r[0])+c*(u-r[1])+r[0],t[5]=h*(u-r[1])-c*(a-r[0])+r[1],t}function In(t,e,n){var r=n[0],i=n[1];return t[0]=e[0]*r,t[1]=e[1]*i,t[2]=e[2]*r,t[3]=e[3]*i,t[4]=e[4]*r,t[5]=e[5]*i,t}function $n(t,e){var n=e[0],r=e[2],i=e[4],o=e[1],a=e[3],s=e[5],l=n*a-o*r;return l?(l=1/l,t[0]=a*l,t[1]=-o*l,t[2]=-r*l,t[3]=n*l,t[4]=(r*s-a*i)*l,t[5]=(o*i-n*s)*l,t):null}function En(t){var e=An();return Cn(e,t),e}var Rn=function(){function t(t,e){this.x=t||0,this.y=e||0}return t.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},t.prototype.clone=function(){return new t(this.x,this.y)},t.prototype.set=function(t,e){return this.x=t,this.y=e,this},t.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},t.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},t.prototype.scale=function(t){this.x*=t,this.y*=t},t.prototype.scaleAndAdd=function(t,e){this.x+=t.x*e,this.y+=t.y*e},t.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},t.prototype.dot=function(t){return this.x*t.x+this.y*t.y},t.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},t.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},t.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},t.prototype.distance=function(t){var e=this.x-t.x,n=this.y-t.y;return Math.sqrt(e*e+n*n)},t.prototype.distanceSquare=function(t){var e=this.x-t.x,n=this.y-t.y;return e*e+n*n},t.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},t.prototype.transform=function(t){if(t){var e=this.x,n=this.y;return this.x=t[0]*e+t[2]*n+t[4],this.y=t[1]*e+t[3]*n+t[5],this}},t.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},t.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},t.set=function(t,e,n){t.x=e,t.y=n},t.copy=function(t,e){t.x=e.x,t.y=e.y},t.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},t.lenSquare=function(t){return t.x*t.x+t.y*t.y},t.dot=function(t,e){return t.x*e.x+t.y*e.y},t.add=function(t,e,n){t.x=e.x+n.x,t.y=e.y+n.y},t.sub=function(t,e,n){t.x=e.x-n.x,t.y=e.y-n.y},t.scale=function(t,e,n){t.x=e.x*n,t.y=e.y*n},t.scaleAndAdd=function(t,e,n,r){t.x=e.x+n.x*r,t.y=e.y+n.y*r},t.lerp=function(t,e,n,r){var i=1-r;t.x=i*e.x+r*n.x,t.y=i*e.y+r*n.y},t}(),Dn=Rn,Ln=Math.min,Nn=Math.max,zn=new Dn,Bn=new Dn,Fn=new Dn,Wn=new Dn,jn=new Dn,Vn=new Dn,Qn=function(){function t(t,e,n,r){n<0&&(t+=n,n=-n),r<0&&(e+=r,r=-r),this.x=t,this.y=e,this.width=n,this.height=r}return t.prototype.union=function(t){var e=Ln(t.x,this.x),n=Ln(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=Nn(t.x+t.width,this.x+this.width)-e:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=Nn(t.y+t.height,this.y+this.height)-n:this.height=t.height,this.x=e,this.y=n},t.prototype.applyTransform=function(e){t.applyTransform(this,this,e)},t.prototype.calculateTransform=function(t){var e=this,n=t.width/e.width,r=t.height/e.height,i=An();return Tn(i,i,[-e.x,-e.y]),In(i,i,[n,r]),Tn(i,i,[t.x,t.y]),i},t.prototype.intersect=function(e,n){if(!e)return!1;e instanceof t||(e=t.create(e));var r=this,i=r.x,o=r.x+r.width,a=r.y,s=r.y+r.height,l=e.x,u=e.x+e.width,c=e.y,h=e.y+e.height,d=!(o<l||u<i||s<c||h<a);if(n){var p=1/0,f=0,g=Math.abs(o-l),v=Math.abs(u-i),m=Math.abs(s-c),y=Math.abs(h-a),b=Math.min(g,v),_=Math.min(m,y);o<l||u<i?b>f&&(f=b,g<v?Dn.set(Vn,-g,0):Dn.set(Vn,v,0)):b<p&&(p=b,g<v?Dn.set(jn,g,0):Dn.set(jn,-v,0)),s<c||h<a?_>f&&(f=_,m<y?Dn.set(Vn,0,-m):Dn.set(Vn,0,y)):b<p&&(p=b,m<y?Dn.set(jn,0,m):Dn.set(jn,0,-y))}return n&&Dn.copy(n,d?jn:Vn),d},t.prototype.contain=function(t,e){var n=this;return t>=n.x&&t<=n.x+n.width&&e>=n.y&&e<=n.y+n.height},t.prototype.clone=function(){return new t(this.x,this.y,this.width,this.height)},t.prototype.copy=function(e){t.copy(this,e)},t.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},t.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},t.prototype.isZero=function(){return 0===this.width||0===this.height},t.create=function(e){return new t(e.x,e.y,e.width,e.height)},t.copy=function(t,e){t.x=e.x,t.y=e.y,t.width=e.width,t.height=e.height},t.applyTransform=function(e,n,r){if(r){if(r[1]<1e-5&&r[1]>-1e-5&&r[2]<1e-5&&r[2]>-1e-5){var i=r[0],o=r[3],a=r[4],s=r[5];return e.x=n.x*i+a,e.y=n.y*o+s,e.width=n.width*i,e.height=n.height*o,e.width<0&&(e.x+=e.width,e.width=-e.width),void(e.height<0&&(e.y+=e.height,e.height=-e.height))}zn.x=Fn.x=n.x,zn.y=Wn.y=n.y,Bn.x=Wn.x=n.x+n.width,Bn.y=Fn.y=n.y+n.height,zn.transform(r),Wn.transform(r),Bn.transform(r),Fn.transform(r),e.x=Ln(zn.x,Bn.x,Fn.x,Wn.x),e.y=Ln(zn.y,Bn.y,Fn.y,Wn.y);var l=Nn(zn.x,Bn.x,Fn.x,Wn.x),u=Nn(zn.y,Bn.y,Fn.y,Wn.y);e.width=l-e.x,e.height=u-e.y}else e!==n&&t.copy(e,n)},t}(),Hn=Qn,Zn="silent";function Gn(t,e,n){return{type:t,event:n,target:e.target,topTarget:e.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:Xn}}function Xn(){bn(this.event)}var Un=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.handler=null,e}return Q(e,t),e.prototype.dispose=function(){},e.prototype.setCursor=function(){},e}(Xe),Yn=function(){function t(t,e){this.x=t,this.y=e}return t}(),qn=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],Kn=new Hn(0,0,0,0),Jn=function(t){function e(e,n,r,i,o){var a=t.call(this)||this;return a._hovered=new Yn(0,0),a.storage=e,a.painter=n,a.painterRoot=i,a._pointerSize=o,r=r||new Un,a.proxy=null,a.setHandlerProxy(r),a._draggingMgr=new Ze(a),a}return Q(e,t),e.prototype.setHandlerProxy=function(t){this.proxy&&this.proxy.dispose(),t&&(Pt(qn,(function(e){t.on&&t.on(e,this[e],this)}),this),t.handler=this),this.proxy=t},e.prototype.mousemove=function(t){var e=t.zrX,n=t.zrY,r=nr(this,e,n),i=this._hovered,o=i.target;o&&!o.__zr&&(i=this.findHover(i.x,i.y),o=i.target);var a=this._hovered=r?new Yn(e,n):this.findHover(e,n),s=a.target,l=this.proxy;l.setCursor&&l.setCursor(s?s.cursor:"default"),o&&s!==o&&this.dispatchToElement(i,"mouseout",t),this.dispatchToElement(a,"mousemove",t),s&&s!==o&&this.dispatchToElement(a,"mouseover",t)},e.prototype.mouseout=function(t){var e=t.zrEventControl;"only_globalout"!==e&&this.dispatchToElement(this._hovered,"mouseout",t),"no_globalout"!==e&&this.trigger("globalout",{type:"globalout",event:t})},e.prototype.resize=function(){this._hovered=new Yn(0,0)},e.prototype.dispatch=function(t,e){var n=this[t];n&&n.call(this,e)},e.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},e.prototype.setCursorStyle=function(t){var e=this.proxy;e.setCursor&&e.setCursor(t)},e.prototype.dispatchToElement=function(t,e,n){t=t||{};var r=t.target;if(!r||!r.silent){var i="on"+e,o=Gn(e,t,n);while(r)if(r[i]&&(o.cancelBubble=!!r[i].call(r,o)),r.trigger(e,o),r=r.__hostTarget?r.__hostTarget:r.parent,o.cancelBubble)break;o.cancelBubble||(this.trigger(e,o),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer((function(t){"function"===typeof t[i]&&t[i].call(t,o),t.trigger&&t.trigger(e,o)})))}},e.prototype.findHover=function(t,e,n){var r=this.storage.getDisplayList(),i=new Yn(t,e);if(er(r,i,t,e,n),this._pointerSize&&!i.target){for(var o=[],a=this._pointerSize,s=a/2,l=new Hn(t-s,e-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||(Kn.copy(c.getBoundingRect()),c.transform&&Kn.applyTransform(c.transform),Kn.intersect(l)&&o.push(c))}if(o.length)for(var h=4,d=Math.PI/12,p=2*Math.PI,f=0;f<s;f+=h)for(var g=0;g<p;g+=d){var v=t+f*Math.cos(g),m=e+f*Math.sin(g);if(er(o,i,v,m,n),i.target)return i}}return i},e.prototype.processGesture=function(t,e){this._gestureMgr||(this._gestureMgr=new xn);var n=this._gestureMgr;"start"===e&&n.clear();var r=n.recognize(t,this.findHover(t.zrX,t.zrY,null).target,this.proxy.dom);if("end"===e&&n.clear(),r){var i=r.type;t.gestureEvent=i;var o=new Yn;o.target=r.target,this.dispatchToElement(o,i,r.event)}},e}(Xe);function tr(t,e,n){if(t[t.rectHover?"rectContain":"contain"](e,n)){var r=t,i=void 0,o=!1;while(r){if(r.ignoreClip&&(o=!0),!o){var a=r.getClipPath();if(a&&!a.contain(e,n))return!1}r.silent&&(i=!0);var s=r.__hostTarget;r=s||r.parent}return!i||Zn}return!1}function er(t,e,n,r,i){for(var o=t.length-1;o>=0;o--){var a=t[o],s=void 0;if(a!==i&&!a.ignore&&(s=tr(a,n,r))&&(!e.topTarget&&(e.topTarget=a),s!==Zn)){e.target=a;break}}}function nr(t,e,n){var r=t.painter;return e<0||e>r.getWidth()||n<0||n>r.getHeight()}Pt(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],(function(t){Jn.prototype[t]=function(e){var n,r,i=e.zrX,o=e.zrY,a=nr(this,i,o);if("mouseup"===t&&a||(n=this.findHover(i,o),r=n.target),"mousedown"===t)this._downEl=r,this._downPoint=[e.zrX,e.zrY],this._upEl=r;else if("mouseup"===t)this._upEl=r;else if("click"===t){if(this._downEl!==this._upEl||!this._downPoint||Le(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(n,t,e)}}));var rr=Jn,ir=32,or=7;function ar(t){var e=0;while(t>=ir)e|=1&t,t>>=1;return t+e}function sr(t,e,n,r){var i=e+1;if(i===n)return 1;if(r(t[i++],t[e])<0){while(i<n&&r(t[i],t[i-1])<0)i++;lr(t,e,i)}else while(i<n&&r(t[i],t[i-1])>=0)i++;return i-e}function lr(t,e,n){n--;while(e<n){var r=t[e];t[e++]=t[n],t[n--]=r}}function ur(t,e,n,r,i){for(r===e&&r++;r<n;r++){var o,a=t[r],s=e,l=r;while(s<l)o=s+l>>>1,i(a,t[o])<0?l=o:s=o+1;var u=r-s;switch(u){case 3:t[s+3]=t[s+2];case 2:t[s+2]=t[s+1];case 1:t[s+1]=t[s];break;default:while(u>0)t[s+u]=t[s+u-1],u--}t[s]=a}}function cr(t,e,n,r,i,o){var a=0,s=0,l=1;if(o(t,e[n+i])>0){s=r-i;while(l<s&&o(t,e[n+i+l])>0)a=l,l=1+(l<<1),l<=0&&(l=s);l>s&&(l=s),a+=i,l+=i}else{s=i+1;while(l<s&&o(t,e[n+i-l])<=0)a=l,l=1+(l<<1),l<=0&&(l=s);l>s&&(l=s);var u=a;a=i-l,l=i-u}a++;while(a<l){var c=a+(l-a>>>1);o(t,e[n+c])>0?a=c+1:l=c}return l}function hr(t,e,n,r,i,o){var a=0,s=0,l=1;if(o(t,e[n+i])<0){s=i+1;while(l<s&&o(t,e[n+i-l])<0)a=l,l=1+(l<<1),l<=0&&(l=s);l>s&&(l=s);var u=a;a=i-l,l=i-u}else{s=r-i;while(l<s&&o(t,e[n+i+l])>=0)a=l,l=1+(l<<1),l<=0&&(l=s);l>s&&(l=s),a+=i,l+=i}a++;while(a<l){var c=a+(l-a>>>1);o(t,e[n+c])<0?l=c:a=c+1}return l}function dr(t,e){var n,r,i=or,o=0,a=[];function s(t,e){n[o]=t,r[o]=e,o+=1}function l(){while(o>1){var t=o-2;if(t>=1&&r[t-1]<=r[t]+r[t+1]||t>=2&&r[t-2]<=r[t]+r[t-1])r[t-1]<r[t+1]&&t--;else if(r[t]>r[t+1])break;c(t)}}function u(){while(o>1){var t=o-2;t>0&&r[t-1]<r[t+1]&&t--,c(t)}}function c(i){var a=n[i],s=r[i],l=n[i+1],u=r[i+1];r[i]=s+u,i===o-3&&(n[i+1]=n[i+2],r[i+1]=r[i+2]),o--;var c=hr(t[l],t,a,s,0,e);a+=c,s-=c,0!==s&&(u=cr(t[a+s-1],t,l,u,u-1,e),0!==u&&(s<=u?h(a,s,l,u):d(a,s,l,u)))}function h(n,r,o,s){var l=0;for(l=0;l<r;l++)a[l]=t[n+l];var u=0,c=o,h=n;if(t[h++]=t[c++],0!==--s)if(1!==r){var d,p,f,g=i;while(1){d=0,p=0,f=!1;do{if(e(t[c],a[u])<0){if(t[h++]=t[c++],p++,d=0,0===--s){f=!0;break}}else if(t[h++]=a[u++],d++,p=0,1===--r){f=!0;break}}while((d|p)<g);if(f)break;do{if(d=hr(t[c],a,u,r,0,e),0!==d){for(l=0;l<d;l++)t[h+l]=a[u+l];if(h+=d,u+=d,r-=d,r<=1){f=!0;break}}if(t[h++]=t[c++],0===--s){f=!0;break}if(p=cr(a[u],t,c,s,0,e),0!==p){for(l=0;l<p;l++)t[h+l]=t[c+l];if(h+=p,c+=p,s-=p,0===s){f=!0;break}}if(t[h++]=a[u++],1===--r){f=!0;break}g--}while(d>=or||p>=or);if(f)break;g<0&&(g=0),g+=2}if(i=g,i<1&&(i=1),1===r){for(l=0;l<s;l++)t[h+l]=t[c+l];t[h+s]=a[u]}else{if(0===r)throw new Error;for(l=0;l<r;l++)t[h+l]=a[u+l]}}else{for(l=0;l<s;l++)t[h+l]=t[c+l];t[h+s]=a[u]}else for(l=0;l<r;l++)t[h+l]=a[u+l]}function d(n,r,o,s){var l=0;for(l=0;l<s;l++)a[l]=t[o+l];var u=n+r-1,c=s-1,h=o+s-1,d=0,p=0;if(t[h--]=t[u--],0!==--r)if(1!==s){var f=i;while(1){var g=0,v=0,m=!1;do{if(e(a[c],t[u])<0){if(t[h--]=t[u--],g++,v=0,0===--r){m=!0;break}}else if(t[h--]=a[c--],v++,g=0,1===--s){m=!0;break}}while((g|v)<f);if(m)break;do{if(g=r-hr(a[c],t,n,r,r-1,e),0!==g){for(h-=g,u-=g,r-=g,p=h+1,d=u+1,l=g-1;l>=0;l--)t[p+l]=t[d+l];if(0===r){m=!0;break}}if(t[h--]=a[c--],1===--s){m=!0;break}if(v=s-cr(t[u],a,0,s,s-1,e),0!==v){for(h-=v,c-=v,s-=v,p=h+1,d=c+1,l=0;l<v;l++)t[p+l]=a[d+l];if(s<=1){m=!0;break}}if(t[h--]=t[u--],0===--r){m=!0;break}f--}while(g>=or||v>=or);if(m)break;f<0&&(f=0),f+=2}if(i=f,i<1&&(i=1),1===s){for(h-=r,u-=r,p=h+1,d=u+1,l=r-1;l>=0;l--)t[p+l]=t[d+l];t[h]=a[c]}else{if(0===s)throw new Error;for(d=h-(s-1),l=0;l<s;l++)t[d+l]=a[l]}}else{for(h-=r,u-=r,p=h+1,d=u+1,l=r-1;l>=0;l--)t[p+l]=t[d+l];t[h]=a[c]}else for(d=h-(s-1),l=0;l<s;l++)t[d+l]=a[l]}return n=[],r=[],{mergeRuns:l,forceMergeRuns:u,pushRun:s}}function pr(t,e,n,r){n||(n=0),r||(r=t.length);var i=r-n;if(!(i<2)){var o=0;if(i<ir)return o=sr(t,n,r,e),void ur(t,n,r,n+o,e);var a=dr(t,e),s=ar(i);do{if(o=sr(t,n,r,e),o<s){var l=i;l>s&&(l=s),ur(t,n,n+l,n+o,e),o=l}a.pushRun(n,o),a.mergeRuns(),i-=o,n+=o}while(0!==i);a.forceMergeRuns()}}var fr=1,gr=2,vr=4,mr=!1;function yr(){mr||(mr=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function br(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}var _r,xr=function(){function t(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=br}return t.prototype.traverse=function(t,e){for(var n=0;n<this._roots.length;n++)this._roots[n].traverse(t,e)},t.prototype.getDisplayList=function(t,e){e=e||!1;var n=this._displayList;return!t&&n.length||this.updateDisplayList(e),n},t.prototype.updateDisplayList=function(t){this._displayListLen=0;for(var e=this._roots,n=this._displayList,r=0,i=e.length;r<i;r++)this._updateAndAddDisplayable(e[r],null,t);n.length=this._displayListLen,pr(n,br)},t.prototype._updateAndAddDisplayable=function(t,e,n){if(!t.ignore||n){t.beforeUpdate(),t.update(),t.afterUpdate();var r=t.getClipPath();if(t.ignoreClip)e=null;else if(r){e=e?e.slice():[];var i=r,o=t;while(i)i.parent=o,i.updateTransform(),e.push(i),o=i,i=i.getClipPath()}if(t.childrenRef){for(var a=t.childrenRef(),s=0;s<a.length;s++){var l=a[s];t.__dirty&&(l.__dirty|=fr),this._updateAndAddDisplayable(l,e,n)}t.__dirty=0}else{var u=t;e&&e.length?u.__clipPaths=e:u.__clipPaths&&u.__clipPaths.length>0&&(u.__clipPaths=[]),isNaN(u.z)&&(yr(),u.z=0),isNaN(u.z2)&&(yr(),u.z2=0),isNaN(u.zlevel)&&(yr(),u.zlevel=0),this._displayList[this._displayListLen++]=u}var c=t.getDecalElement&&t.getDecalElement();c&&this._updateAndAddDisplayable(c,e,n);var h=t.getTextGuideLine();h&&this._updateAndAddDisplayable(h,e,n);var d=t.getTextContent();d&&this._updateAndAddDisplayable(d,e,n)}},t.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},t.prototype.delRoot=function(t){if(t instanceof Array)for(var e=0,n=t.length;e<n;e++)this.delRoot(t[e]);else{var r=kt(this._roots,t);r>=0&&this._roots.splice(r,1)}},t.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},t.prototype.getRoots=function(){return this._roots},t.prototype.dispose=function(){this._displayList=null,this._roots=null},t}(),wr=xr;_r=U.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){return setTimeout(t,16)};var Or=_r,Sr={linear:function(t){return t},quadraticIn:function(t){return t*t},quadraticOut:function(t){return t*(2-t)},quadraticInOut:function(t){return(t*=2)<1?.5*t*t:-.5*(--t*(t-2)-1)},cubicIn:function(t){return t*t*t},cubicOut:function(t){return--t*t*t+1},cubicInOut:function(t){return(t*=2)<1?.5*t*t*t:.5*((t-=2)*t*t+2)},quarticIn:function(t){return t*t*t*t},quarticOut:function(t){return 1- --t*t*t*t},quarticInOut:function(t){return(t*=2)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)},quinticIn:function(t){return t*t*t*t*t},quinticOut:function(t){return--t*t*t*t*t+1},quinticInOut:function(t){return(t*=2)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)},sinusoidalIn:function(t){return 1-Math.cos(t*Math.PI/2)},sinusoidalOut:function(t){return Math.sin(t*Math.PI/2)},sinusoidalInOut:function(t){return.5*(1-Math.cos(Math.PI*t))},exponentialIn:function(t){return 0===t?0:Math.pow(1024,t-1)},exponentialOut:function(t){return 1===t?1:1-Math.pow(2,-10*t)},exponentialInOut:function(t){return 0===t?0:1===t?1:(t*=2)<1?.5*Math.pow(1024,t-1):.5*(2-Math.pow(2,-10*(t-1)))},circularIn:function(t){return 1-Math.sqrt(1-t*t)},circularOut:function(t){return Math.sqrt(1- --t*t)},circularInOut:function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},elasticIn:function(t){var e,n=.1,r=.4;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=r/4):e=r*Math.asin(1/n)/(2*Math.PI),-n*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/r))},elasticOut:function(t){var e,n=.1,r=.4;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=r/4):e=r*Math.asin(1/n)/(2*Math.PI),n*Math.pow(2,-10*t)*Math.sin((t-e)*(2*Math.PI)/r)+1)},elasticInOut:function(t){var e,n=.1,r=.4;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=r/4):e=r*Math.asin(1/n)/(2*Math.PI),(t*=2)<1?n*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/r)*-.5:n*Math.pow(2,-10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/r)*.5+1)},backIn:function(t){var e=1.70158;return t*t*((e+1)*t-e)},backOut:function(t){var e=1.70158;return--t*t*((e+1)*t+e)+1},backInOut:function(t){var e=2.5949095;return(t*=2)<1?t*t*((e+1)*t-e)*.5:.5*((t-=2)*t*((e+1)*t+e)+2)},bounceIn:function(t){return 1-Sr.bounceOut(1-t)},bounceOut:function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},bounceInOut:function(t){return t<.5?.5*Sr.bounceIn(2*t):.5*Sr.bounceOut(2*t-1)+.5}},Ar=Sr,kr=Math.pow,Cr=Math.sqrt,Mr=1e-8,Tr=1e-4,Pr=Cr(3),Ir=1/3,$r=be(),Er=be(),Rr=be();function Dr(t){return t>-Mr&&t<Mr}function Lr(t){return t>Mr||t<-Mr}function Nr(t,e,n,r,i){var o=1-i;return o*o*(o*t+3*i*e)+i*i*(i*r+3*o*n)}function zr(t,e,n,r,i){var o=1-i;return 3*(((e-t)*o+2*(n-e)*i)*o+(r-n)*i*i)}function Br(t,e,n,r,i,o){var a=r+3*(e-n)-t,s=3*(n-2*e+t),l=3*(e-t),u=t-i,c=s*s-3*a*l,h=s*l-9*a*u,d=l*l-3*s*u,p=0;if(Dr(c)&&Dr(h))if(Dr(s))o[0]=0;else{var f=-l/s;f>=0&&f<=1&&(o[p++]=f)}else{var g=h*h-4*c*d;if(Dr(g)){var v=h/c,m=(f=-s/a+v,-v/2);f>=0&&f<=1&&(o[p++]=f),m>=0&&m<=1&&(o[p++]=m)}else if(g>0){var y=Cr(g),b=c*s+1.5*a*(-h+y),_=c*s+1.5*a*(-h-y);b=b<0?-kr(-b,Ir):kr(b,Ir),_=_<0?-kr(-_,Ir):kr(_,Ir);f=(-s-(b+_))/(3*a);f>=0&&f<=1&&(o[p++]=f)}else{var x=(2*c*s-3*a*h)/(2*Cr(c*c*c)),w=Math.acos(x)/3,O=Cr(c),S=Math.cos(w),A=(f=(-s-2*O*S)/(3*a),m=(-s+O*(S+Pr*Math.sin(w)))/(3*a),(-s+O*(S-Pr*Math.sin(w)))/(3*a));f>=0&&f<=1&&(o[p++]=f),m>=0&&m<=1&&(o[p++]=m),A>=0&&A<=1&&(o[p++]=A)}}return p}function Fr(t,e,n,r,i){var o=6*n-12*e+6*t,a=9*e+3*r-3*t-9*n,s=3*e-3*t,l=0;if(Dr(a)){if(Lr(o)){var u=-s/o;u>=0&&u<=1&&(i[l++]=u)}}else{var c=o*o-4*a*s;if(Dr(c))i[0]=-o/(2*a);else if(c>0){var h=Cr(c),d=(u=(-o+h)/(2*a),(-o-h)/(2*a));u>=0&&u<=1&&(i[l++]=u),d>=0&&d<=1&&(i[l++]=d)}}return l}function Wr(t,e,n,r,i,o){var a=(e-t)*i+t,s=(n-e)*i+e,l=(r-n)*i+n,u=(s-a)*i+a,c=(l-s)*i+s,h=(c-u)*i+u;o[0]=t,o[1]=a,o[2]=u,o[3]=h,o[4]=h,o[5]=c,o[6]=l,o[7]=r}function jr(t,e,n,r,i,o,a,s,l,u,c){var h,d,p,f,g,v=.005,m=1/0;$r[0]=l,$r[1]=u;for(var y=0;y<1;y+=.05)Er[0]=Nr(t,n,i,a,y),Er[1]=Nr(e,r,o,s,y),f=ze($r,Er),f<m&&(h=y,m=f);m=1/0;for(var b=0;b<32;b++){if(v<Tr)break;d=h-v,p=h+v,Er[0]=Nr(t,n,i,a,d),Er[1]=Nr(e,r,o,s,d),f=ze(Er,$r),d>=0&&f<m?(h=d,m=f):(Rr[0]=Nr(t,n,i,a,p),Rr[1]=Nr(e,r,o,s,p),g=ze(Rr,$r),p<=1&&g<m?(h=p,m=g):v*=.5)}return c&&(c[0]=Nr(t,n,i,a,h),c[1]=Nr(e,r,o,s,h)),Cr(m)}function Vr(t,e,n,r,i,o,a,s,l){for(var u=t,c=e,h=0,d=1/l,p=1;p<=l;p++){var f=p*d,g=Nr(t,n,i,a,f),v=Nr(e,r,o,s,f),m=g-u,y=v-c;h+=Math.sqrt(m*m+y*y),u=g,c=v}return h}function Qr(t,e,n,r){var i=1-r;return i*(i*t+2*r*e)+r*r*n}function Hr(t,e,n,r){return 2*((1-r)*(e-t)+r*(n-e))}function Zr(t,e,n,r,i){var o=t-2*e+n,a=2*(e-t),s=t-r,l=0;if(Dr(o)){if(Lr(a)){var u=-s/a;u>=0&&u<=1&&(i[l++]=u)}}else{var c=a*a-4*o*s;if(Dr(c)){u=-a/(2*o);u>=0&&u<=1&&(i[l++]=u)}else if(c>0){var h=Cr(c),d=(u=(-a+h)/(2*o),(-a-h)/(2*o));u>=0&&u<=1&&(i[l++]=u),d>=0&&d<=1&&(i[l++]=d)}}return l}function Gr(t,e,n){var r=t+n-2*e;return 0===r?.5:(t-e)/r}function Xr(t,e,n,r,i){var o=(e-t)*r+t,a=(n-e)*r+e,s=(a-o)*r+o;i[0]=t,i[1]=o,i[2]=s,i[3]=s,i[4]=a,i[5]=n}function Ur(t,e,n,r,i,o,a,s,l){var u,c=.005,h=1/0;$r[0]=a,$r[1]=s;for(var d=0;d<1;d+=.05){Er[0]=Qr(t,n,i,d),Er[1]=Qr(e,r,o,d);var p=ze($r,Er);p<h&&(u=d,h=p)}h=1/0;for(var f=0;f<32;f++){if(c<Tr)break;var g=u-c,v=u+c;Er[0]=Qr(t,n,i,g),Er[1]=Qr(e,r,o,g);p=ze(Er,$r);if(g>=0&&p<h)u=g,h=p;else{Rr[0]=Qr(t,n,i,v),Rr[1]=Qr(e,r,o,v);var m=ze(Rr,$r);v<=1&&m<h?(u=v,h=m):c*=.5}}return l&&(l[0]=Qr(t,n,i,u),l[1]=Qr(e,r,o,u)),Cr(h)}function Yr(t,e,n,r,i,o,a){for(var s=t,l=e,u=0,c=1/a,h=1;h<=a;h++){var d=h*c,p=Qr(t,n,i,d),f=Qr(e,r,o,d),g=p-s,v=f-l;u+=Math.sqrt(g*g+v*v),s=p,l=f}return u}var qr=/cubic-bezier\(([0-9,\.e ]+)\)/;function Kr(t){var e=t&&qr.exec(t);if(e){var n=e[1].split(","),r=+ie(n[0]),i=+ie(n[1]),o=+ie(n[2]),a=+ie(n[3]);if(isNaN(r+i+o+a))return;var s=[];return function(t){return t<=0?0:t>=1?1:Br(0,r,o,1,t,s)&&Nr(0,i,a,1,s[0])}}}var Jr=function(){function t(t){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=t.life||1e3,this._delay=t.delay||0,this.loop=t.loop||!1,this.onframe=t.onframe||me,this.ondestroy=t.ondestroy||me,this.onrestart=t.onrestart||me,t.easing&&this.setEasing(t.easing)}return t.prototype.step=function(t,e){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),!this._paused){var n=this._life,r=t-this._startTime-this._pausedTime,i=r/n;i<0&&(i=0),i=Math.min(i,1);var o=this.easingFunc,a=o?o(i):i;if(this.onframe(a),1===i){if(!this.loop)return!0;var s=r%n;this._startTime=t-s,this._pausedTime=0,this.onrestart()}return!1}this._pausedTime+=e},t.prototype.pause=function(){this._paused=!0},t.prototype.resume=function(){this._paused=!1},t.prototype.setEasing=function(t){this.easing=t,this.easingFunc=Ft(t)?t:Ar[t]||Kr(t)},t}(),ti=Jr,ei=function(){function t(t){this.value=t}return t}(),ni=function(){function t(){this._len=0}return t.prototype.insert=function(t){var e=new ei(t);return this.insertEntry(e),e},t.prototype.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},t.prototype.remove=function(t){var e=t.prev,n=t.next;e?e.next=n:this.head=n,n?n.prev=e:this.tail=e,t.next=t.prev=null,this._len--},t.prototype.len=function(){return this._len},t.prototype.clear=function(){this.head=this.tail=null,this._len=0},t}(),ri=function(){function t(t){this._list=new ni,this._maxSize=10,this._map={},this._maxSize=t}return t.prototype.put=function(t,e){var n=this._list,r=this._map,i=null;if(null==r[t]){var o=n.len(),a=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var s=n.head;n.remove(s),delete r[s.key],i=s.value,this._lastRemovedEntry=s}a?a.value=e:a=new ei(e),a.key=t,n.insertEntry(a),r[t]=a}return i},t.prototype.get=function(t){var e=this._map[t],n=this._list;if(null!=e)return e!==n.tail&&(n.remove(e),n.insertEntry(e)),e.value},t.prototype.clear=function(){this._list.clear(),this._map={}},t.prototype.len=function(){return this._list.len()},t}(),ii=ri,oi={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 ai(t){return t=Math.round(t),t<0?0:t>255?255:t}function si(t){return t=Math.round(t),t<0?0:t>360?360:t}function li(t){return t<0?0:t>1?1:t}function ui(t){var e=t;return e.length&&"%"===e.charAt(e.length-1)?ai(parseFloat(e)/100*255):ai(parseInt(e,10))}function ci(t){var e=t;return e.length&&"%"===e.charAt(e.length-1)?li(parseFloat(e)/100):li(parseFloat(e))}function hi(t,e,n){return n<0?n+=1:n>1&&(n-=1),6*n<1?t+(e-t)*n*6:2*n<1?e:3*n<2?t+(e-t)*(2/3-n)*6:t}function di(t,e,n){return t+(e-t)*n}function pi(t,e,n,r,i){return t[0]=e,t[1]=n,t[2]=r,t[3]=i,t}function fi(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}var gi=new ii(20),vi=null;function mi(t,e){vi&&fi(vi,e),vi=gi.put(t,vi||e.slice())}function yi(t,e){if(t){e=e||[];var n=gi.get(t);if(n)return fi(e,n);t+="";var r=t.replace(/ /g,"").toLowerCase();if(r in oi)return fi(e,oi[r]),mi(t,e),e;var i=r.length;if("#"!==r.charAt(0)){var o=r.indexOf("("),a=r.indexOf(")");if(-1!==o&&a+1===i){var s=r.substr(0,o),l=r.substr(o+1,a-(o+1)).split(","),u=1;switch(s){case"rgba":if(4!==l.length)return 3===l.length?pi(e,+l[0],+l[1],+l[2],1):pi(e,0,0,0,1);u=ci(l.pop());case"rgb":return l.length>=3?(pi(e,ui(l[0]),ui(l[1]),ui(l[2]),3===l.length?u:ci(l[3])),mi(t,e),e):void pi(e,0,0,0,1);case"hsla":return 4!==l.length?void pi(e,0,0,0,1):(l[3]=ci(l[3]),bi(l,e),mi(t,e),e);case"hsl":return 3!==l.length?void pi(e,0,0,0,1):(bi(l,e),mi(t,e),e);default:return}}pi(e,0,0,0,1)}else{if(4===i||5===i){var c=parseInt(r.slice(1,4),16);return c>=0&&c<=4095?(pi(e,(3840&c)>>4|(3840&c)>>8,240&c|(240&c)>>4,15&c|(15&c)<<4,5===i?parseInt(r.slice(4),16)/15:1),mi(t,e),e):void pi(e,0,0,0,1)}if(7===i||9===i){c=parseInt(r.slice(1,7),16);return c>=0&&c<=16777215?(pi(e,(16711680&c)>>16,(65280&c)>>8,255&c,9===i?parseInt(r.slice(7),16)/255:1),mi(t,e),e):void pi(e,0,0,0,1)}}}}function bi(t,e){var n=(parseFloat(t[0])%360+360)%360/360,r=ci(t[1]),i=ci(t[2]),o=i<=.5?i*(r+1):i+r-i*r,a=2*i-o;return e=e||[],pi(e,ai(255*hi(a,o,n+1/3)),ai(255*hi(a,o,n)),ai(255*hi(a,o,n-1/3)),1),4===t.length&&(e[3]=t[3]),e}function _i(t){if(t){var e,n,r=t[0]/255,i=t[1]/255,o=t[2]/255,a=Math.min(r,i,o),s=Math.max(r,i,o),l=s-a,u=(s+a)/2;if(0===l)e=0,n=0;else{n=u<.5?l/(s+a):l/(2-s-a);var c=((s-r)/6+l/2)/l,h=((s-i)/6+l/2)/l,d=((s-o)/6+l/2)/l;r===s?e=d-h:i===s?e=1/3+c-d:o===s&&(e=2/3+h-c),e<0&&(e+=1),e>1&&(e-=1)}var p=[360*e,n,u];return null!=t[3]&&p.push(t[3]),p}}function xi(t,e){var n=yi(t);if(n){for(var r=0;r<3;r++)n[r]=e<0?n[r]*(1-e)|0:(255-n[r])*e+n[r]|0,n[r]>255?n[r]=255:n[r]<0&&(n[r]=0);return Ti(n,4===n.length?"rgba":"rgb")}}function wi(t){var e=yi(t);if(e)return((1<<24)+(e[0]<<16)+(e[1]<<8)+ +e[2]).toString(16).slice(1)}function Oi(t,e,n){if(e&&e.length&&t>=0&&t<=1){n=n||[];var r=t*(e.length-1),i=Math.floor(r),o=Math.ceil(r),a=e[i],s=e[o],l=r-i;return n[0]=ai(di(a[0],s[0],l)),n[1]=ai(di(a[1],s[1],l)),n[2]=ai(di(a[2],s[2],l)),n[3]=li(di(a[3],s[3],l)),n}}var Si=Oi;function Ai(t,e,n){if(e&&e.length&&t>=0&&t<=1){var r=t*(e.length-1),i=Math.floor(r),o=Math.ceil(r),a=yi(e[i]),s=yi(e[o]),l=r-i,u=Ti([ai(di(a[0],s[0],l)),ai(di(a[1],s[1],l)),ai(di(a[2],s[2],l)),li(di(a[3],s[3],l))],"rgba");return n?{color:u,leftIndex:i,rightIndex:o,value:r}:u}}var ki=Ai;function Ci(t,e,n,r){var i=yi(t);if(t)return i=_i(i),null!=e&&(i[0]=si(e)),null!=n&&(i[1]=ci(n)),null!=r&&(i[2]=ci(r)),Ti(bi(i),"rgba")}function Mi(t,e){var n=yi(t);if(n&&null!=e)return n[3]=li(e),Ti(n,"rgba")}function Ti(t,e){if(t&&t.length){var n=t[0]+","+t[1]+","+t[2];return"rgba"!==e&&"hsva"!==e&&"hsla"!==e||(n+=","+t[3]),e+"("+n+")"}}function Pi(t,e){var n=yi(t);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*e:0}function Ii(){return Ti([Math.round(255*Math.random()),Math.round(255*Math.random()),Math.round(255*Math.random())],"rgb")}var $i=new ii(100);function Ei(t){if(Wt(t)){var e=$i.get(t);return e||(e=xi(t,-.1),$i.put(t,e)),e}if(Xt(t)){var n=Ot({},t);return n.colorStops=It(t.colorStops,(function(t){return{offset:t.offset,color:xi(t.color,-.1)}})),n}return t}n(28360);var Ri=Math.round;function Di(t){var e;if(t&&"transparent"!==t){if("string"===typeof t&&t.indexOf("rgba")>-1){var n=yi(t);n&&(t="rgb("+n[0]+","+n[1]+","+n[2]+")",e=n[3])}}else t="none";return{color:t,opacity:null==e?1:e}}var Li=1e-4;function Ni(t){return t<Li&&t>-Li}function zi(t){return Ri(1e3*t)/1e3}function Bi(t){return Ri(1e4*t)/1e4}function Fi(t){return"matrix("+zi(t[0])+","+zi(t[1])+","+zi(t[2])+","+zi(t[3])+","+Bi(t[4])+","+Bi(t[5])+")"}var Wi={left:"start",right:"end",center:"middle",middle:"middle"};function ji(t,e,n){return"top"===n?t+=e/2:"bottom"===n&&(t-=e/2),t}function Vi(t){return t&&(t.shadowBlur||t.shadowOffsetX||t.shadowOffsetY)}function Qi(t){var e=t.style,n=t.getGlobalScale();return[e.shadowColor,(e.shadowBlur||0).toFixed(2),(e.shadowOffsetX||0).toFixed(2),(e.shadowOffsetY||0).toFixed(2),n[0],n[1]].join(",")}function Hi(t){return t&&!!t.image}function Zi(t){return t&&!!t.svgElement}function Gi(t){return Hi(t)||Zi(t)}function Xi(t){return"linear"===t.type}function Ui(t){return"radial"===t.type}function Yi(t){return t&&("linear"===t.type||"radial"===t.type)}function qi(t){return"url(#"+t+")"}function Ki(t){var e=t.getGlobalScale(),n=Math.max(e[0],e[1]);return Math.max(Math.ceil(Math.log(n)/Math.log(10)),1)}function Ji(t){var e=t.x||0,n=t.y||0,r=(t.rotation||0)*ye,i=Jt(t.scaleX,1),o=Jt(t.scaleY,1),a=t.skewX||0,s=t.skewY||0,l=[];return(e||n)&&l.push("translate("+e+"px,"+n+"px)"),r&&l.push("rotate("+r+")"),1===i&&1===o||l.push("scale("+i+","+o+")"),(a||s)&&l.push("skew("+Ri(a*ye)+"deg, "+Ri(s*ye)+"deg)"),l.join(" ")}var to=function(){return U.hasGlobalWindow&&Ft(window.btoa)?function(t){return window.btoa(unescape(encodeURIComponent(t)))}:"undefined"!==typeof Buffer?function(t){return Buffer.from(t).toString("base64")}:function(t){return null}}(),eo=Array.prototype.slice;function no(t,e,n){return(e-t)*n+t}function ro(t,e,n,r){for(var i=e.length,o=0;o<i;o++)t[o]=no(e[o],n[o],r);return t}function io(t,e,n,r){for(var i=e.length,o=i&&e[0].length,a=0;a<i;a++){t[a]||(t[a]=[]);for(var s=0;s<o;s++)t[a][s]=no(e[a][s],n[a][s],r)}return t}function oo(t,e,n,r){for(var i=e.length,o=0;o<i;o++)t[o]=e[o]+n[o]*r;return t}function ao(t,e,n,r){for(var i=e.length,o=i&&e[0].length,a=0;a<i;a++){t[a]||(t[a]=[]);for(var s=0;s<o;s++)t[a][s]=e[a][s]+n[a][s]*r}return t}function so(t,e){for(var n=t.length,r=e.length,i=n>r?e:t,o=Math.min(n,r),a=i[o-1]||{color:[0,0,0,0],offset:0},s=o;s<Math.max(n,r);s++)i.push({offset:a.offset,color:a.color.slice()})}function lo(t,e,n){var r=t,i=e;if(r.push&&i.push){var o=r.length,a=i.length;if(o!==a){var s=o>a;if(s)r.length=a;else for(var l=o;l<a;l++)r.push(1===n?i[l]:eo.call(i[l]))}var u=r[0]&&r[0].length;for(l=0;l<r.length;l++)if(1===n)isNaN(r[l])&&(r[l]=i[l]);else for(var c=0;c<u;c++)isNaN(r[l][c])&&(r[l][c]=i[l][c])}}function uo(t){if(Tt(t)){var e=t.length;if(Tt(t[0])){for(var n=[],r=0;r<e;r++)n.push(eo.call(t[r]));return n}return eo.call(t)}return t}function co(t){return t[0]=Math.floor(t[0])||0,t[1]=Math.floor(t[1])||0,t[2]=Math.floor(t[2])||0,t[3]=null==t[3]?1:t[3],"rgba("+t.join(",")+")"}function ho(t){return Tt(t&&t[0])?2:1}var po=0,fo=1,go=2,vo=3,mo=4,yo=5,bo=6;function _o(t){return t===mo||t===yo}function xo(t){return t===fo||t===go}var wo=[0,0,0,0],Oo=function(){function t(t){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=t}return t.prototype.isFinished=function(){return this._finished},t.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},t.prototype.needsAnimate=function(){return this.keyframes.length>=1},t.prototype.getAdditiveTrack=function(){return this._additiveTrack},t.prototype.addKeyframe=function(t,e,n){this._needsSort=!0;var r=this.keyframes,i=r.length,o=!1,a=bo,s=e;if(Tt(e)){var l=ho(e);a=l,(1===l&&!Vt(e[0])||2===l&&!Vt(e[0][0]))&&(o=!0)}else if(Vt(e)&&!qt(e))a=po;else if(Wt(e))if(isNaN(+e)){var u=yi(e);u&&(s=u,a=vo)}else a=po;else if(Xt(e)){var c=Ot({},s);c.colorStops=It(e.colorStops,(function(t){return{offset:t.offset,color:yi(t.color)}})),Xi(e)?a=mo:Ui(e)&&(a=yo),s=c}0===i?this.valType=a:a===this.valType&&a!==bo||(o=!0),this.discrete=this.discrete||o;var h={time:t,value:s,rawValue:e,percent:0};return n&&(h.easing=n,h.easingFunc=Ft(n)?n:Ar[n]||Kr(n)),r.push(h),h},t.prototype.prepare=function(t,e){var n=this.keyframes;this._needsSort&&n.sort((function(t,e){return t.time-e.time}));for(var r=this.valType,i=n.length,o=n[i-1],a=this.discrete,s=xo(r),l=_o(r),u=0;u<i;u++){var c=n[u],h=c.value,d=o.value;c.percent=c.time/t,a||(s&&u!==i-1?lo(h,d,r):l&&so(h.colorStops,d.colorStops))}if(!a&&r!==yo&&e&&this.needsAnimate()&&e.needsAnimate()&&r===e.valType&&!e._finished){this._additiveTrack=e;var p=n[0].value;for(u=0;u<i;u++)r===po?n[u].additiveValue=n[u].value-p:r===vo?n[u].additiveValue=oo([],n[u].value,p,-1):xo(r)&&(n[u].additiveValue=r===fo?oo([],n[u].value,p,-1):ao([],n[u].value,p,-1))}},t.prototype.step=function(t,e){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var n,r,i,o=null!=this._additiveTrack,a=o?"additiveValue":"value",s=this.valType,l=this.keyframes,u=l.length,c=this.propName,h=s===vo,d=this._lastFr,p=Math.min;if(1===u)r=i=l[0];else{if(e<0)n=0;else if(e<this._lastFrP){var f=p(d+1,u-1);for(n=f;n>=0;n--)if(l[n].percent<=e)break;n=p(n,u-2)}else{for(n=d;n<u;n++)if(l[n].percent>e)break;n=p(n-1,u-2)}i=l[n+1],r=l[n]}if(r&&i){this._lastFr=n,this._lastFrP=e;var g=i.percent-r.percent,v=0===g?1:p((e-r.percent)/g,1);i.easingFunc&&(v=i.easingFunc(v));var m=o?this._additiveValue:h?wo:t[c];if(!xo(s)&&!h||m||(m=this._additiveValue=[]),this.discrete)t[c]=v<1?r.rawValue:i.rawValue;else if(xo(s))s===fo?ro(m,r[a],i[a],v):io(m,r[a],i[a],v);else if(_o(s)){var y=r[a],b=i[a],_=s===mo;t[c]={type:_?"linear":"radial",x:no(y.x,b.x,v),y:no(y.y,b.y,v),colorStops:It(y.colorStops,(function(t,e){var n=b.colorStops[e];return{offset:no(t.offset,n.offset,v),color:co(ro([],t.color,n.color,v))}})),global:b.global},_?(t[c].x2=no(y.x2,b.x2,v),t[c].y2=no(y.y2,b.y2,v)):t[c].r=no(y.r,b.r,v)}else if(h)ro(m,r[a],i[a],v),o||(t[c]=co(m));else{var x=no(r[a],i[a],v);o?this._additiveValue=x:t[c]=x}o&&this._addToTarget(t)}}},t.prototype._addToTarget=function(t){var e=this.valType,n=this.propName,r=this._additiveValue;e===po?t[n]=t[n]+r:e===vo?(yi(t[n],wo),oo(wo,wo,r,1),t[n]=co(wo)):e===fo?oo(t[n],t[n],r,1):e===go&&ao(t[n],t[n],r,1)},t}(),So=function(){function t(t,e,n,r){this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=e,e&&r?bt("Can' use additive animation on looped animation."):(this._additiveAnimators=r,this._allowDiscrete=n)}return t.prototype.getMaxTime=function(){return this._maxTime},t.prototype.getDelay=function(){return this._delay},t.prototype.getLoop=function(){return this._loop},t.prototype.getTarget=function(){return this._target},t.prototype.changeTarget=function(t){this._target=t},t.prototype.when=function(t,e,n){return this.whenWithKeys(t,e,Dt(e),n)},t.prototype.whenWithKeys=function(t,e,n,r){for(var i=this._tracks,o=0;o<n.length;o++){var a=n[o],s=i[a];if(!s){s=i[a]=new Oo(a);var l=void 0,u=this._getAdditiveTrack(a);if(u){var c=u.keyframes,h=c[c.length-1];l=h&&h.value,u.valType===vo&&l&&(l=co(l))}else l=this._target[a];if(null==l)continue;t>0&&s.addKeyframe(0,uo(l),r),this._trackKeys.push(a)}s.addKeyframe(t,uo(e[a]),r)}return this._maxTime=Math.max(this._maxTime,t),this},t.prototype.pause=function(){this._clip.pause(),this._paused=!0},t.prototype.resume=function(){this._clip.resume(),this._paused=!1},t.prototype.isPaused=function(){return!!this._paused},t.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},t.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var e=t.length,n=0;n<e;n++)t[n].call(this)},t.prototype._abortedCallback=function(){this._setTracksFinished();var t=this.animation,e=this._abortedCbs;if(t&&t.removeClip(this._clip),this._clip=null,e)for(var n=0;n<e.length;n++)e[n].call(this)},t.prototype._setTracksFinished=function(){for(var t=this._tracks,e=this._trackKeys,n=0;n<e.length;n++)t[e[n]].setFinished()},t.prototype._getAdditiveTrack=function(t){var e,n=this._additiveAnimators;if(n)for(var r=0;r<n.length;r++){var i=n[r].getTrack(t);i&&(e=i)}return e},t.prototype.start=function(t){if(!(this._started>0)){this._started=1;for(var e=this,n=[],r=this._maxTime||0,i=0;i<this._trackKeys.length;i++){var o=this._trackKeys[i],a=this._tracks[o],s=this._getAdditiveTrack(o),l=a.keyframes,u=l.length;if(a.prepare(r,s),a.needsAnimate())if(!this._allowDiscrete&&a.discrete){var c=l[u-1];c&&(e._target[a.propName]=c.rawValue),a.setFinished()}else n.push(a)}if(n.length||this._force){var h=new ti({life:r,loop:this._loop,delay:this._delay||0,onframe:function(t){e._started=2;var r=e._additiveAnimators;if(r){for(var i=!1,o=0;o<r.length;o++)if(r[o]._clip){i=!0;break}i||(e._additiveAnimators=null)}for(o=0;o<n.length;o++)n[o].step(e._target,t);var a=e._onframeCbs;if(a)for(o=0;o<a.length;o++)a[o](e._target,t)},ondestroy:function(){e._doneCallback()}});this._clip=h,this.animation&&this.animation.addClip(h),t&&h.setEasing(t)}else this._doneCallback();return this}},t.prototype.stop=function(t){if(this._clip){var e=this._clip;t&&e.onframe(1),this._abortedCallback()}},t.prototype.delay=function(t){return this._delay=t,this},t.prototype.during=function(t){return t&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(t)),this},t.prototype.done=function(t){return t&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(t)),this},t.prototype.aborted=function(t){return t&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(t)),this},t.prototype.getClip=function(){return this._clip},t.prototype.getTrack=function(t){return this._tracks[t]},t.prototype.getTracks=function(){var t=this;return It(this._trackKeys,(function(e){return t._tracks[e]}))},t.prototype.stopTracks=function(t,e){if(!t.length||!this._clip)return!0;for(var n=this._tracks,r=this._trackKeys,i=0;i<t.length;i++){var o=n[t[i]];o&&!o.isFinished()&&(e?o.step(this._target,1):1===this._started&&o.step(this._target,0),o.setFinished())}var a=!0;for(i=0;i<r.length;i++)if(!n[r[i]].isFinished()){a=!1;break}return a&&this._abortedCallback(),a},t.prototype.saveTo=function(t,e,n){if(t){e=e||this._trackKeys;for(var r=0;r<e.length;r++){var i=e[r],o=this._tracks[i];if(o&&!o.isFinished()){var a=o.keyframes,s=a[n?0:a.length-1];s&&(t[i]=uo(s.rawValue))}}}},t.prototype.__changeFinalValue=function(t,e){e=e||Dt(t);for(var n=0;n<e.length;n++){var r=e[n],i=this._tracks[r];if(i){var o=i.keyframes;if(o.length>1){var a=o.pop();i.addKeyframe(a.time,t[r]),i.prepare(this._maxTime,i.getAdditiveTrack())}}}},t}(),Ao=So;function ko(){return(new Date).getTime()}var Co=function(t){function e(e){var n=t.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,e=e||{},n.stage=e.stage||{},n}return Q(e,t),e.prototype.addClip=function(t){t.animation&&this.removeClip(t),this._head?(this._tail.next=t,t.prev=this._tail,t.next=null,this._tail=t):this._head=this._tail=t,t.animation=this},e.prototype.addAnimator=function(t){t.animation=this;var e=t.getClip();e&&this.addClip(e)},e.prototype.removeClip=function(t){if(t.animation){var e=t.prev,n=t.next;e?e.next=n:this._head=n,n?n.prev=e:this._tail=e,t.next=t.prev=t.animation=null}},e.prototype.removeAnimator=function(t){var e=t.getClip();e&&this.removeClip(e),t.animation=null},e.prototype.update=function(t){var e=ko()-this._pausedTime,n=e-this._time,r=this._head;while(r){var i=r.next,o=r.step(e,n);o?(r.ondestroy(),this.removeClip(r),r=i):r=i}this._time=e,t||(this.trigger("frame",n),this.stage.update&&this.stage.update())},e.prototype._startLoop=function(){var t=this;function e(){t._running&&(Or(e),!t._paused&&t.update())}this._running=!0,Or(e)},e.prototype.start=function(){this._running||(this._time=ko(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=ko(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=ko()-this._pauseStart,this._paused=!1)},e.prototype.clear=function(){var t=this._head;while(t){var e=t.next;t.prev=t.next=t.animation=null,t=e}this._head=this._tail=null},e.prototype.isFinished=function(){return null==this._head},e.prototype.animate=function(t,e){e=e||{},this.start();var n=new Ao(t,e.loop);return this.addAnimator(n),n},e}(Xe),Mo=Co,To=300,Po=U.domSupported,Io=function(){var t=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],e=["touchstart","touchend","touchmove"],n={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},r=It(t,(function(t){var e=t.replace("mouse","pointer");return n.hasOwnProperty(e)?e:t}));return{mouse:t,touch:e,pointer:r}}(),$o={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},Eo=!1;function Ro(t){var e=t.pointerType;return"pen"===e||"touch"===e}function Do(t){t.touching=!0,null!=t.touchTimer&&(clearTimeout(t.touchTimer),t.touchTimer=null),t.touchTimer=setTimeout((function(){t.touching=!1,t.touchTimer=null}),700)}function Lo(t){t&&(t.zrByTouch=!0)}function No(t,e){return gn(t.dom,new Bo(t,e),!0)}function zo(t,e){var n=e,r=!1;while(n&&9!==n.nodeType&&!(r=n.domBelongToZr||n!==e&&n===t.painterRoot))n=n.parentNode;return r}var Bo=function(){function t(t,e){this.stopPropagation=me,this.stopImmediatePropagation=me,this.preventDefault=me,this.type=e.type,this.target=this.currentTarget=t.dom,this.pointerType=e.pointerType,this.clientX=e.clientX,this.clientY=e.clientY}return t}(),Fo={mousedown:function(t){t=gn(this.dom,t),this.__mayPointerCapture=[t.zrX,t.zrY],this.trigger("mousedown",t)},mousemove:function(t){t=gn(this.dom,t);var e=this.__mayPointerCapture;!e||t.zrX===e[0]&&t.zrY===e[1]||this.__togglePointerCapture(!0),this.trigger("mousemove",t)},mouseup:function(t){t=gn(this.dom,t),this.__togglePointerCapture(!1),this.trigger("mouseup",t)},mouseout:function(t){t=gn(this.dom,t);var e=t.toElement||t.relatedTarget;zo(this,e)||(this.__pointerCapturing&&(t.zrEventControl="no_globalout"),this.trigger("mouseout",t))},wheel:function(t){Eo=!0,t=gn(this.dom,t),this.trigger("mousewheel",t)},mousewheel:function(t){Eo||(t=gn(this.dom,t),this.trigger("mousewheel",t))},touchstart:function(t){t=gn(this.dom,t),Lo(t),this.__lastTouchMoment=new Date,this.handler.processGesture(t,"start"),Fo.mousemove.call(this,t),Fo.mousedown.call(this,t)},touchmove:function(t){t=gn(this.dom,t),Lo(t),this.handler.processGesture(t,"change"),Fo.mousemove.call(this,t)},touchend:function(t){t=gn(this.dom,t),Lo(t),this.handler.processGesture(t,"end"),Fo.mouseup.call(this,t),+new Date-+this.__lastTouchMoment<To&&Fo.click.call(this,t)},pointerdown:function(t){Fo.mousedown.call(this,t)},pointermove:function(t){Ro(t)||Fo.mousemove.call(this,t)},pointerup:function(t){Fo.mouseup.call(this,t)},pointerout:function(t){Ro(t)||Fo.mouseout.call(this,t)}};Pt(["click","dblclick","contextmenu"],(function(t){Fo[t]=function(e){e=gn(this.dom,e),this.trigger(t,e)}}));var Wo={pointermove:function(t){Ro(t)||Wo.mousemove.call(this,t)},pointerup:function(t){Wo.mouseup.call(this,t)},mousemove:function(t){this.trigger("mousemove",t)},mouseup:function(t){var e=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",t),e&&(t.zrEventControl="only_globalout",this.trigger("mouseout",t))}};function jo(t,e){var n=e.domHandlers;U.pointerEventsSupported?Pt(Io.pointer,(function(r){Qo(e,r,(function(e){n[r].call(t,e)}))})):(U.touchEventsSupported&&Pt(Io.touch,(function(r){Qo(e,r,(function(i){n[r].call(t,i),Do(e)}))})),Pt(Io.mouse,(function(r){Qo(e,r,(function(i){i=fn(i),e.touching||n[r].call(t,i)}))})))}function Vo(t,e){function n(n){function r(r){r=fn(r),zo(t,r.target)||(r=No(t,r),e.domHandlers[n].call(t,r))}Qo(e,n,r,{capture:!0})}U.pointerEventsSupported?Pt($o.pointer,n):U.touchEventsSupported||Pt($o.mouse,n)}function Qo(t,e,n,r){t.mounted[e]=n,t.listenerOpts[e]=r,mn(t.domTarget,e,n,r)}function Ho(t){var e=t.mounted;for(var n in e)e.hasOwnProperty(n)&&yn(t.domTarget,n,e[n],t.listenerOpts[n]);t.mounted={}}var Zo=function(){function t(t,e){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=e}return t}(),Go=function(t){function e(e,n){var r=t.call(this)||this;return r.__pointerCapturing=!1,r.dom=e,r.painterRoot=n,r._localHandlerScope=new Zo(e,Fo),Po&&(r._globalHandlerScope=new Zo(document,Wo)),jo(r,r._localHandlerScope),r}return Q(e,t),e.prototype.dispose=function(){Ho(this._localHandlerScope),Po&&Ho(this._globalHandlerScope)},e.prototype.setCursor=function(t){this.dom.style&&(this.dom.style.cursor=t||"default")},e.prototype.__togglePointerCapture=function(t){if(this.__mayPointerCapture=null,Po&&+this.__pointerCapturing^+t){this.__pointerCapturing=t;var e=this._globalHandlerScope;t?Vo(this,e):Ho(e)}},e}(Xe),Xo=Go,Uo=1;U.hasGlobalWindow&&(Uo=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var Yo=Uo,qo=.4,Ko="#333",Jo="#ccc",ta="#eee",ea=kn,na=5e-5;function ra(t){return t>na||t<-na}var ia=[],oa=[],aa=An(),sa=Math.abs,la=function(){function t(){}return t.prototype.getLocalTransform=function(e){return t.getLocalTransform(this,e)},t.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},t.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},t.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},t.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},t.prototype.needLocalTransform=function(){return ra(this.rotation)||ra(this.x)||ra(this.y)||ra(this.scaleX-1)||ra(this.scaleY-1)||ra(this.skewX)||ra(this.skewY)},t.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,e=this.needLocalTransform(),n=this.transform;e||t?(n=n||An(),e?this.getLocalTransform(n):ea(n),t&&(e?Mn(n,t,n):Cn(n,t)),this.transform=n,this._resolveGlobalScaleRatio(n)):n&&(ea(n),this.invTransform=null)},t.prototype._resolveGlobalScaleRatio=function(t){var e=this.globalScaleRatio;if(null!=e&&1!==e){this.getGlobalScale(ia);var n=ia[0]<0?-1:1,r=ia[1]<0?-1:1,i=((ia[0]-n)*e+n)/ia[0]||0,o=((ia[1]-r)*e+r)/ia[1]||0;t[0]*=i,t[1]*=i,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||An(),$n(this.invTransform,t)},t.prototype.getComputedTransform=function(){var t=this,e=[];while(t)e.push(t),t=t.parent;while(t=e.pop())t.updateTransform();return this.transform},t.prototype.setLocalTransform=function(t){if(t){var e=t[0]*t[0]+t[1]*t[1],n=t[2]*t[2]+t[3]*t[3],r=Math.atan2(t[1],t[0]),i=Math.PI/2+r-Math.atan2(t[3],t[2]);n=Math.sqrt(n)*Math.cos(i),e=Math.sqrt(e),this.skewX=i,this.skewY=0,this.rotation=-r,this.x=+t[4],this.y=+t[5],this.scaleX=e,this.scaleY=n,this.originX=0,this.originY=0}},t.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,e=this.transform;t&&t.transform&&(t.invTransform=t.invTransform||An(),Mn(oa,t.invTransform,e),e=oa);var n=this.originX,r=this.originY;(n||r)&&(aa[4]=n,aa[5]=r,Mn(oa,e,aa),oa[4]-=n,oa[5]-=r,e=oa),this.setLocalTransform(e)}},t.prototype.getGlobalScale=function(t){var e=this.transform;return t=t||[],e?(t[0]=Math.sqrt(e[0]*e[0]+e[1]*e[1]),t[1]=Math.sqrt(e[2]*e[2]+e[3]*e[3]),e[0]<0&&(t[0]=-t[0]),e[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},t.prototype.transformCoordToLocal=function(t,e){var n=[t,e],r=this.invTransform;return r&&We(n,n,r),n},t.prototype.transformCoordToGlobal=function(t,e){var n=[t,e],r=this.transform;return r&&We(n,n,r),n},t.prototype.getLineScale=function(){var t=this.transform;return t&&sa(t[0]-1)>1e-10&&sa(t[3]-1)>1e-10?Math.sqrt(sa(t[0]*t[3]-t[2]*t[1])):1},t.prototype.copyTransform=function(t){ca(this,t)},t.getLocalTransform=function(t,e){e=e||[];var n=t.originX||0,r=t.originY||0,i=t.scaleX,o=t.scaleY,a=t.anchorX,s=t.anchorY,l=t.rotation||0,u=t.x,c=t.y,h=t.skewX?Math.tan(t.skewX):0,d=t.skewY?Math.tan(-t.skewY):0;if(n||r||a||s){var p=n+a,f=r+s;e[4]=-p*i-h*f*o,e[5]=-f*o-d*p*i}else e[4]=e[5]=0;return e[0]=i,e[3]=o,e[1]=d*i,e[2]=h*o,l&&Pn(e,e,l),e[4]+=n+u,e[5]+=r+c,e},t.initDefaultProps=function(){var e=t.prototype;e.scaleX=e.scaleY=e.globalScaleRatio=1,e.x=e.y=e.originX=e.originY=e.skewX=e.skewY=e.rotation=e.anchorX=e.anchorY=0}(),t}(),ua=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function ca(t,e){for(var n=0;n<ua.length;n++){var r=ua[n];t[r]=e[r]}}var ha=la,da={};function pa(t,e){e=e||K;var n=da[e];n||(n=da[e]=new ii(500));var r=n.get(t);return null==r&&(r=it.measureText(t,e).width,n.put(t,r)),r}function fa(t,e,n,r){var i=pa(t,e),o=ya(e),a=va(0,i,n),s=ma(0,o,r),l=new Hn(a,s,i,o);return l}function ga(t,e,n,r){var i=((t||"")+"").split("\n"),o=i.length;if(1===o)return fa(i[0],e,n,r);for(var a=new Hn(0,0,0,0),s=0;s<i.length;s++){var l=fa(i[s],e,n,r);0===s?a.copy(l):a.union(l)}return a}function va(t,e,n){return"right"===n?t-=e:"center"===n&&(t-=e/2),t}function ma(t,e,n){return"middle"===n?t-=e/2:"bottom"===n&&(t-=e),t}function ya(t){return pa("国",t)}function ba(t,e){return"string"===typeof t?t.lastIndexOf("%")>=0?parseFloat(t)/100*e:parseFloat(t):t}function _a(t,e,n){var r=e.position||"inside",i=null!=e.distance?e.distance:5,o=n.height,a=n.width,s=o/2,l=n.x,u=n.y,c="left",h="top";if(r instanceof Array)l+=ba(r[0],n.width),u+=ba(r[1],n.height),c=null,h=null;else switch(r){case"left":l-=i,u+=s,c="right",h="middle";break;case"right":l+=i+a,u+=s,h="middle";break;case"top":l+=a/2,u-=i,c="center",h="bottom";break;case"bottom":l+=a/2,u+=o+i,c="center";break;case"inside":l+=a/2,u+=s,c="center",h="middle";break;case"insideLeft":l+=i,u+=s,h="middle";break;case"insideRight":l+=a-i,u+=s,c="right",h="middle";break;case"insideTop":l+=a/2,u+=i,c="center";break;case"insideBottom":l+=a/2,u+=o-i,c="center",h="bottom";break;case"insideTopLeft":l+=i,u+=i;break;case"insideTopRight":l+=a-i,u+=i,c="right";break;case"insideBottomLeft":l+=i,u+=o-i,h="bottom";break;case"insideBottomRight":l+=a-i,u+=o-i,c="right",h="bottom";break}return t=t||{},t.x=l,t.y=u,t.align=c,t.verticalAlign=h,t}var xa="__zr_normal__",wa=ua.concat(["ignore"]),Oa=$t(ua,(function(t,e){return t[e]=!0,t}),{ignore:!1}),Sa={},Aa=new Hn(0,0,0,0),ka=function(){function t(t){this.id=yt(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return t.prototype._init=function(t){this.attr(t)},t.prototype.drift=function(t,e,n){switch(this.draggable){case"horizontal":e=0;break;case"vertical":t=0;break}var r=this.transform;r||(r=this.transform=[1,0,0,1,0,0]),r[4]+=t,r[5]+=e,this.decomposeTransform(),this.markRedraw()},t.prototype.beforeUpdate=function(){},t.prototype.afterUpdate=function(){},t.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},t.prototype.updateInnerText=function(t){var e=this._textContent;if(e&&(!e.ignore||t)){this.textConfig||(this.textConfig={});var n=this.textConfig,r=n.local,i=e.innerTransformable,o=void 0,a=void 0,s=!1;i.parent=r?this:null;var l=!1;if(i.copyTransform(e),null!=n.position){var u=Aa;n.layoutRect?u.copy(n.layoutRect):u.copy(this.getBoundingRect()),r||u.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(Sa,n,u):_a(Sa,n,u),i.x=Sa.x,i.y=Sa.y,o=Sa.align,a=Sa.verticalAlign;var c=n.origin;if(c&&null!=n.rotation){var h=void 0,d=void 0;"center"===c?(h=.5*u.width,d=.5*u.height):(h=ba(c[0],u.width),d=ba(c[1],u.height)),l=!0,i.originX=-i.x+h+(r?0:u.x),i.originY=-i.y+d+(r?0:u.y)}}null!=n.rotation&&(i.rotation=n.rotation);var p=n.offset;p&&(i.x+=p[0],i.y+=p[1],l||(i.originX=-p[0],i.originY=-p[1]));var f=null==n.inside?"string"===typeof n.position&&n.position.indexOf("inside")>=0:n.inside,g=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),v=void 0,m=void 0,y=void 0;f&&this.canBeInsideText()?(v=n.insideFill,m=n.insideStroke,null!=v&&"auto"!==v||(v=this.getInsideTextFill()),null!=m&&"auto"!==m||(m=this.getInsideTextStroke(v),y=!0)):(v=n.outsideFill,m=n.outsideStroke,null!=v&&"auto"!==v||(v=this.getOutsideFill()),null!=m&&"auto"!==m||(m=this.getOutsideStroke(v),y=!0)),v=v||"#000",v===g.fill&&m===g.stroke&&y===g.autoStroke&&o===g.align&&a===g.verticalAlign||(s=!0,g.fill=v,g.stroke=m,g.autoStroke=y,g.align=o,g.verticalAlign=a,e.setDefaultTextStyle(g)),e.__dirty|=fr,s&&e.dirtyStyle(!0)}},t.prototype.canBeInsideText=function(){return!0},t.prototype.getInsideTextFill=function(){return"#fff"},t.prototype.getInsideTextStroke=function(t){return"#000"},t.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?Jo:Ko},t.prototype.getOutsideStroke=function(t){var e=this.__zr&&this.__zr.getBackgroundColor(),n="string"===typeof e&&yi(e);n||(n=[255,255,255,1]);for(var r=n[3],i=this.__zr.isDarkMode(),o=0;o<3;o++)n[o]=n[o]*r+(i?0:255)*(1-r);return n[3]=1,Ti(n,"rgba")},t.prototype.traverse=function(t,e){},t.prototype.attrKV=function(t,e){"textConfig"===t?this.setTextConfig(e):"textContent"===t?this.setTextContent(e):"clipPath"===t?this.setClipPath(e):"extra"===t?(this.extra=this.extra||{},Ot(this.extra,e)):this[t]=e},t.prototype.hide=function(){this.ignore=!0,this.markRedraw()},t.prototype.show=function(){this.ignore=!1,this.markRedraw()},t.prototype.attr=function(t,e){if("string"===typeof t)this.attrKV(t,e);else if(Qt(t))for(var n=t,r=Dt(n),i=0;i<r.length;i++){var o=r[i];this.attrKV(o,t[o])}return this.markRedraw(),this},t.prototype.saveCurrentToNormalState=function(t){this._innerSaveToNormal(t);for(var e=this._normalState,n=0;n<this.animators.length;n++){var r=this.animators[n],i=r.__fromStateTransition;if(!(r.getLoop()||i&&i!==xa)){var o=r.targetName,a=o?e[o]:e;r.saveTo(a)}}},t.prototype._innerSaveToNormal=function(t){var e=this._normalState;e||(e=this._normalState={}),t.textConfig&&!e.textConfig&&(e.textConfig=this.textConfig),this._savePrimaryToNormal(t,e,wa)},t.prototype._savePrimaryToNormal=function(t,e,n){for(var r=0;r<n.length;r++){var i=n[r];null==t[i]||i in e||(e[i]=this[i])}},t.prototype.hasState=function(){return this.currentStates.length>0},t.prototype.getState=function(t){return this.states[t]},t.prototype.ensureState=function(t){var e=this.states;return e[t]||(e[t]={}),e[t]},t.prototype.clearStates=function(t){this.useState(xa,!1,t)},t.prototype.useState=function(t,e,n,r){var i=t===xa,o=this.hasState();if(o||!i){var a=this.currentStates,s=this.stateTransition;if(!(kt(a,t)>=0)||!e&&1!==a.length){var l;if(this.stateProxy&&!i&&(l=this.stateProxy(t)),l||(l=this.states&&this.states[t]),l||i){i||this.saveCurrentToNormalState(l);var u=!!(l&&l.hoverLayer||r);u&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,l,this._normalState,e,!n&&!this.__inHover&&s&&s.duration>0,s);var c=this._textContent,h=this._textGuide;return c&&c.useState(t,e,n,u),h&&h.useState(t,e,n,u),i?(this.currentStates=[],this._normalState={}):e?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!u&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~fr),l}bt("State "+t+" not exists.")}}},t.prototype.useStates=function(t,e,n){if(t.length){var r=[],i=this.currentStates,o=t.length,a=o===i.length;if(a)for(var s=0;s<o;s++)if(t[s]!==i[s]){a=!1;break}if(a)return;for(s=0;s<o;s++){var l=t[s],u=void 0;this.stateProxy&&(u=this.stateProxy(l,t)),u||(u=this.states[l]),u&&r.push(u)}var c=r[o-1],h=!!(c&&c.hoverLayer||n);h&&this._toggleHoverLayerFlag(!0);var d=this._mergeStates(r),p=this.stateTransition;this.saveCurrentToNormalState(d),this._applyStateObj(t.join(","),d,this._normalState,!1,!e&&!this.__inHover&&p&&p.duration>0,p);var f=this._textContent,g=this._textGuide;f&&f.useStates(t,e,h),g&&g.useStates(t,e,h),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!h&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~fr)}else this.clearStates()},t.prototype.isSilent=function(){var t=this.silent,e=this.parent;while(!t&&e){if(e.silent){t=!0;break}e=e.parent}return t},t.prototype._updateAnimationTargets=function(){for(var t=0;t<this.animators.length;t++){var e=this.animators[t];e.targetName&&e.changeTarget(this[e.targetName])}},t.prototype.removeState=function(t){var e=kt(this.currentStates,t);if(e>=0){var n=this.currentStates.slice();n.splice(e,1),this.useStates(n)}},t.prototype.replaceState=function(t,e,n){var r=this.currentStates.slice(),i=kt(r,t),o=kt(r,e)>=0;i>=0?o?r.splice(i,1):r[i]=e:n&&!o&&r.push(e),this.useStates(r)},t.prototype.toggleState=function(t,e){e?this.useState(t,!0):this.removeState(t)},t.prototype._mergeStates=function(t){for(var e,n={},r=0;r<t.length;r++){var i=t[r];Ot(n,i),i.textConfig&&(e=e||{},Ot(e,i.textConfig))}return e&&(n.textConfig=e),n},t.prototype._applyStateObj=function(t,e,n,r,i,o){var a=!(e&&r);e&&e.textConfig?(this.textConfig=Ot({},r?this.textConfig:n.textConfig),Ot(this.textConfig,e.textConfig)):a&&n.textConfig&&(this.textConfig=n.textConfig);for(var s={},l=!1,u=0;u<wa.length;u++){var c=wa[u],h=i&&Oa[c];e&&null!=e[c]?h?(l=!0,s[c]=e[c]):this[c]=e[c]:a&&null!=n[c]&&(h?(l=!0,s[c]=n[c]):this[c]=n[c])}if(!i)for(u=0;u<this.animators.length;u++){var d=this.animators[u],p=d.targetName;d.getLoop()||d.__changeFinalValue(p?(e||n)[p]:e||n)}l&&this._transitionState(t,s,o)},t.prototype._attachComponent=function(t){if((!t.__zr||t.__hostTarget)&&t!==this){var e=this.__zr;e&&t.addSelfToZr(e),t.__zr=e,t.__hostTarget=this}},t.prototype._detachComponent=function(t){t.__zr&&t.removeSelfFromZr(t.__zr),t.__zr=null,t.__hostTarget=null},t.prototype.getClipPath=function(){return this._clipPath},t.prototype.setClipPath=function(t){this._clipPath&&this._clipPath!==t&&this.removeClipPath(),this._attachComponent(t),this._clipPath=t,this.markRedraw()},t.prototype.removeClipPath=function(){var t=this._clipPath;t&&(this._detachComponent(t),this._clipPath=null,this.markRedraw())},t.prototype.getTextContent=function(){return this._textContent},t.prototype.setTextContent=function(t){var e=this._textContent;e!==t&&(e&&e!==t&&this.removeTextContent(),t.innerTransformable=new ha,this._attachComponent(t),this._textContent=t,this.markRedraw())},t.prototype.setTextConfig=function(t){this.textConfig||(this.textConfig={}),Ot(this.textConfig,t),this.markRedraw()},t.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},t.prototype.removeTextContent=function(){var t=this._textContent;t&&(t.innerTransformable=null,this._detachComponent(t),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},t.prototype.getTextGuideLine=function(){return this._textGuide},t.prototype.setTextGuideLine=function(t){this._textGuide&&this._textGuide!==t&&this.removeTextGuideLine(),this._attachComponent(t),this._textGuide=t,this.markRedraw()},t.prototype.removeTextGuideLine=function(){var t=this._textGuide;t&&(this._detachComponent(t),this._textGuide=null,this.markRedraw())},t.prototype.markRedraw=function(){this.__dirty|=fr;var t=this.__zr;t&&(this.__inHover?t.refreshHover():t.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},t.prototype.dirty=function(){this.markRedraw()},t.prototype._toggleHoverLayerFlag=function(t){this.__inHover=t;var e=this._textContent,n=this._textGuide;e&&(e.__inHover=t),n&&(n.__inHover=t)},t.prototype.addSelfToZr=function(t){if(this.__zr!==t){this.__zr=t;var e=this.animators;if(e)for(var n=0;n<e.length;n++)t.animation.addAnimator(e[n]);this._clipPath&&this._clipPath.addSelfToZr(t),this._textContent&&this._textContent.addSelfToZr(t),this._textGuide&&this._textGuide.addSelfToZr(t)}},t.prototype.removeSelfFromZr=function(t){if(this.__zr){this.__zr=null;var e=this.animators;if(e)for(var n=0;n<e.length;n++)t.animation.removeAnimator(e[n]);this._clipPath&&this._clipPath.removeSelfFromZr(t),this._textContent&&this._textContent.removeSelfFromZr(t),this._textGuide&&this._textGuide.removeSelfFromZr(t)}},t.prototype.animate=function(t,e,n){var r=t?this[t]:this;var i=new Ao(r,e,n);return t&&(i.targetName=t),this.addAnimator(i,t),i},t.prototype.addAnimator=function(t,e){var n=this.__zr,r=this;t.during((function(){r.updateDuringAnimation(e)})).done((function(){var e=r.animators,n=kt(e,t);n>=0&&e.splice(n,1)})),this.animators.push(t),n&&n.animation.addAnimator(t),n&&n.wakeUp()},t.prototype.updateDuringAnimation=function(t){this.markRedraw()},t.prototype.stopAnimation=function(t,e){for(var n=this.animators,r=n.length,i=[],o=0;o<r;o++){var a=n[o];t&&t!==a.scope?i.push(a):a.stop(e)}return this.animators=i,this},t.prototype.animateTo=function(t,e,n){Ca(this,t,e,n)},t.prototype.animateFrom=function(t,e,n){Ca(this,t,e,n,!0)},t.prototype._transitionState=function(t,e,n,r){for(var i=Ca(this,e,n,r),o=0;o<i.length;o++)i[o].__fromStateTransition=t},t.prototype.getBoundingRect=function(){return null},t.prototype.getPaintRect=function(){return null},t.initDefaultProps=function(){var e=t.prototype;e.type="element",e.name="",e.ignore=e.silent=e.isGroup=e.draggable=e.dragging=e.ignoreClip=e.__inHover=!1,e.__dirty=fr;function n(t,n,r,i){function o(t,e){Object.defineProperty(e,0,{get:function(){return t[r]},set:function(e){t[r]=e}}),Object.defineProperty(e,1,{get:function(){return t[i]},set:function(e){t[i]=e}})}Object.defineProperty(e,t,{get:function(){if(!this[n]){var t=this[n]=[];o(this,t)}return this[n]},set:function(t){this[r]=t[0],this[i]=t[1],this[n]=t,o(this,t)}})}Object.defineProperty&&(n("position","_legacyPos","x","y"),n("scale","_legacyScale","scaleX","scaleY"),n("origin","_legacyOrigin","originX","originY"))}(),t}();function Ca(t,e,n,r,i){n=n||{};var o=[];Ea(t,"",t,e,n,r,o,i);var a=o.length,s=!1,l=n.done,u=n.aborted,c=function(){s=!0,a--,a<=0&&(s?l&&l():u&&u())},h=function(){a--,a<=0&&(s?l&&l():u&&u())};a||l&&l(),o.length>0&&n.during&&o[0].during((function(t,e){n.during(e)}));for(var d=0;d<o.length;d++){var p=o[d];c&&p.done(c),h&&p.aborted(h),n.force&&p.duration(n.duration),p.start(n.easing)}return o}function Ma(t,e,n){for(var r=0;r<n;r++)t[r]=e[r]}function Ta(t){return Tt(t[0])}function Pa(t,e,n){if(Tt(e[n]))if(Tt(t[n])||(t[n]=[]),Zt(e[n])){var r=e[n].length;t[n].length!==r&&(t[n]=new e[n].constructor(r),Ma(t[n],e[n],r))}else{var i=e[n],o=t[n],a=i.length;if(Ta(i))for(var s=i[0].length,l=0;l<a;l++)o[l]?Ma(o[l],i[l],s):o[l]=Array.prototype.slice.call(i[l]);else Ma(o,i,a);o.length=i.length}else t[n]=e[n]}function Ia(t,e){return t===e||Tt(t)&&Tt(e)&&$a(t,e)}function $a(t,e){var n=t.length;if(n!==e.length)return!1;for(var r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}function Ea(t,e,n,r,i,o,a,s){for(var l=Dt(r),u=i.duration,c=i.delay,h=i.additive,d=i.setToFinal,p=!Qt(o),f=t.animators,g=[],v=0;v<l.length;v++){var m=l[v],y=r[m];if(null!=y&&null!=n[m]&&(p||o[m]))if(!Qt(y)||Tt(y)||Xt(y))g.push(m);else{if(e){s||(n[m]=y,t.updateDuringAnimation(e));continue}Ea(t,m,n[m],y,i,o&&o[m],a,s)}else s||(n[m]=y,t.updateDuringAnimation(e),g.push(m))}var b=g.length;if(!h&&b)for(var _=0;_<f.length;_++){var x=f[_];if(x.targetName===e){var w=x.stopTracks(g);if(w){var O=kt(f,x);f.splice(O,1)}}}if(i.force||(g=Et(g,(function(t){return!Ia(r[t],n[t])})),b=g.length),b>0||i.force&&!a.length){var S=void 0,A=void 0,k=void 0;if(s){A={},d&&(S={});for(_=0;_<b;_++){m=g[_];A[m]=n[m],d?S[m]=r[m]:n[m]=r[m]}}else if(d){k={};for(_=0;_<b;_++){m=g[_];k[m]=uo(n[m]),Pa(n,r,m)}}x=new Ao(n,!1,!1,h?Et(f,(function(t){return t.targetName===e})):null);x.targetName=e,i.scope&&(x.scope=i.scope),d&&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),t.addAnimator(x,e),a.push(x)}}Mt(ka,Xe),Mt(ka,ha);var Ra=ka,Da=function(t){function e(e){var n=t.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(e),n}return Q(e,t),e.prototype.childrenRef=function(){return this._children},e.prototype.children=function(){return this._children.slice()},e.prototype.childAt=function(t){return this._children[t]},e.prototype.childOfName=function(t){for(var e=this._children,n=0;n<e.length;n++)if(e[n].name===t)return e[n]},e.prototype.childCount=function(){return this._children.length},e.prototype.add=function(t){return t&&t!==this&&t.parent!==this&&(this._children.push(t),this._doAdd(t)),this},e.prototype.addBefore=function(t,e){if(t&&t!==this&&t.parent!==this&&e&&e.parent===this){var n=this._children,r=n.indexOf(e);r>=0&&(n.splice(r,0,t),this._doAdd(t))}return this},e.prototype.replace=function(t,e){var n=kt(this._children,t);return n>=0&&this.replaceAt(e,n),this},e.prototype.replaceAt=function(t,e){var n=this._children,r=n[e];if(t&&t!==this&&t.parent!==this&&t!==r){n[e]=t,r.parent=null;var i=this.__zr;i&&r.removeSelfFromZr(i),this._doAdd(t)}return this},e.prototype._doAdd=function(t){t.parent&&t.parent.remove(t),t.parent=this;var e=this.__zr;e&&e!==t.__zr&&t.addSelfToZr(e),e&&e.refresh()},e.prototype.remove=function(t){var e=this.__zr,n=this._children,r=kt(n,t);return r<0||(n.splice(r,1),t.parent=null,e&&t.removeSelfFromZr(e),e&&e.refresh()),this},e.prototype.removeAll=function(){for(var t=this._children,e=this.__zr,n=0;n<t.length;n++){var r=t[n];e&&r.removeSelfFromZr(e),r.parent=null}return t.length=0,this},e.prototype.eachChild=function(t,e){for(var n=this._children,r=0;r<n.length;r++){var i=n[r];t.call(e,i,r)}return this},e.prototype.traverse=function(t,e){for(var n=0;n<this._children.length;n++){var r=this._children[n],i=t.call(e,r);r.isGroup&&!i&&r.traverse(t,e)}return this},e.prototype.addSelfToZr=function(e){t.prototype.addSelfToZr.call(this,e);for(var n=0;n<this._children.length;n++){var r=this._children[n];r.addSelfToZr(e)}},e.prototype.removeSelfFromZr=function(e){t.prototype.removeSelfFromZr.call(this,e);for(var n=0;n<this._children.length;n++){var r=this._children[n];r.removeSelfFromZr(e)}},e.prototype.getBoundingRect=function(t){for(var e=new Hn(0,0,0,0),n=t||this._children,r=[],i=null,o=0;o<n.length;o++){var a=n[o];if(!a.ignore&&!a.invisible){var s=a.getBoundingRect(),l=a.getLocalTransform(r);l?(Hn.applyTransform(e,s,l),i=i||e.clone(),i.union(e)):(i=i||s.clone(),i.union(s))}}return i||e},e}(Ra);Da.prototype.type="group";var La=Da,Na={},za={};function Ba(t){delete za[t]}function Fa(t){if(!t)return!1;if("string"===typeof t)return Pi(t,1)<qo;if(t.colorStops){for(var e=t.colorStops,n=0,r=e.length,i=0;i<r;i++)n+=Pi(e[i].color,1);return n/=r,n<qo}return!1}var Wa,ja=function(){function t(t,e,n){var r=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,n=n||{},this.dom=e,this.id=t;var i=new wr,o=n.renderer||"canvas";Na[o]||(o=Dt(Na)[0]),n.useDirtyRect=null!=n.useDirtyRect&&n.useDirtyRect;var a=new Na[o](e,i,n,t),s=n.ssr||a.ssrOnly;this.storage=i,this.painter=a;var l,u=U.node||U.worker||s?null:new Xo(a.getViewportRoot(),a.root),c=n.useCoarsePointer,h=null==c||"auto"===c?U.touchEventsSupported:!!c,d=44;h&&(l=Jt(n.pointerSize,d)),this.handler=new rr(i,a,u,a.root,l),this.animation=new Mo({stage:{update:s?null:function(){return r._flush(!0)}}}),s||this.animation.start()}return t.prototype.add=function(t){!this._disposed&&t&&(this.storage.addRoot(t),t.addSelfToZr(this),this.refresh())},t.prototype.remove=function(t){!this._disposed&&t&&(this.storage.delRoot(t),t.removeSelfFromZr(this),this.refresh())},t.prototype.configLayer=function(t,e){this._disposed||(this.painter.configLayer&&this.painter.configLayer(t,e),this.refresh())},t.prototype.setBackgroundColor=function(t){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(t),this.refresh(),this._backgroundColor=t,this._darkMode=Fa(t))},t.prototype.getBackgroundColor=function(){return this._backgroundColor},t.prototype.setDarkMode=function(t){this._darkMode=t},t.prototype.isDarkMode=function(){return this._darkMode},t.prototype.refreshImmediately=function(t){this._disposed||(t||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1)},t.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},t.prototype.flush=function(){this._disposed||this._flush(!1)},t.prototype._flush=function(t){var e,n=ko();this._needsRefresh&&(e=!0,this.refreshImmediately(t)),this._needsRefreshHover&&(e=!0,this.refreshHoverImmediately());var r=ko();e?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:r-n})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},t.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},t.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},t.prototype.refreshHover=function(){this._needsRefreshHover=!0},t.prototype.refreshHoverImmediately=function(){this._disposed||(this._needsRefreshHover=!1,this.painter.refreshHover&&"canvas"===this.painter.getType()&&this.painter.refreshHover())},t.prototype.resize=function(t){this._disposed||(t=t||{},this.painter.resize(t.width,t.height),this.handler.resize())},t.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},t.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},t.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},t.prototype.setCursorStyle=function(t){this._disposed||this.handler.setCursorStyle(t)},t.prototype.findHover=function(t,e){if(!this._disposed)return this.handler.findHover(t,e)},t.prototype.on=function(t,e,n){return this._disposed||this.handler.on(t,e,n),this},t.prototype.off=function(t,e){this._disposed||this.handler.off(t,e)},t.prototype.trigger=function(t,e){this._disposed||this.handler.trigger(t,e)},t.prototype.clear=function(){if(!this._disposed){for(var t=this.storage.getRoots(),e=0;e<t.length;e++)t[e]instanceof La&&t[e].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},t.prototype.dispose=function(){this._disposed||(this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,this._disposed=!0,Ba(this.id))},t}();function Va(t,e){var n=new ja(yt(),t,e);return za[n.id]=n,n}function Qa(t){t.dispose()}function Ha(){for(var t in za)za.hasOwnProperty(t)&&za[t].dispose();za={}}function Za(t){return za[t]}function Ga(t,e){Na[t]=e}function Xa(t){if("function"===typeof Wa)return Wa(t)}function Ua(t){Wa=t}var Ya="5.6.0",qa=1e-4,Ka=20;function Ja(t){return t.replace(/^\s+|\s+$/g,"")}function ts(t,e,n,r){var i=e[0],o=e[1],a=n[0],s=n[1],l=o-i,u=s-a;if(0===l)return 0===u?a:(a+s)/2;if(r)if(l>0){if(t<=i)return a;if(t>=o)return s}else{if(t>=i)return a;if(t<=o)return s}else{if(t===i)return a;if(t===o)return s}return(t-i)/l*u+a}function es(t,e){switch(t){case"center":case"middle":t="50%";break;case"left":case"top":t="0%";break;case"right":case"bottom":t="100%";break}return Wt(t)?Ja(t).match(/%$/)?parseFloat(t)/100*e:parseFloat(t):null==t?NaN:+t}function ns(t,e,n){return null==e&&(e=10),e=Math.min(Math.max(0,e),Ka),t=(+t).toFixed(e),n?t:+t}function rs(t){return t.sort((function(t,e){return t-e})),t}function is(t){if(t=+t,isNaN(t))return 0;if(t>1e-14)for(var e=1,n=0;n<15;n++,e*=10)if(Math.round(t*e)/e===t)return n;return os(t)}function os(t){var e=t.toString().toLowerCase(),n=e.indexOf("e"),r=n>0?+e.slice(n+1):0,i=n>0?n:e.length,o=e.indexOf("."),a=o<0?0:i-1-o;return Math.max(0,a-r)}function as(t,e){var n=Math.log,r=Math.LN10,i=Math.floor(n(t[1]-t[0])/r),o=Math.round(n(Math.abs(e[1]-e[0]))/r),a=Math.min(Math.max(-i+o,0),20);return isFinite(a)?a:20}function ss(t,e,n){if(!t[e])return 0;var r=ls(t,n);return r[e]||0}function ls(t,e){var n=$t(t,(function(t,e){return t+(isNaN(e)?0:e)}),0);if(0===n)return[];var r=Math.pow(10,e),i=It(t,(function(t){return(isNaN(t)?0:t)/n*r*100})),o=100*r,a=It(i,(function(t){return Math.floor(t)})),s=$t(a,(function(t,e){return t+e}),0),l=It(i,(function(t,e){return t-a[e]}));while(s<o){for(var u=Number.NEGATIVE_INFINITY,c=null,h=0,d=l.length;h<d;++h)l[h]>u&&(u=l[h],c=h);++a[c],l[c]=0,++s}return It(a,(function(t){return t/r}))}function us(t,e){var n=Math.max(is(t),is(e)),r=t+e;return n>Ka?r:ns(r,n)}var cs=9007199254740991;function hs(t){var e=2*Math.PI;return(t%e+e)%e}function ds(t){return t>-qa&&t<qa}var ps=/^(?:(\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 fs(t){if(t instanceof Date)return t;if(Wt(t)){var e=ps.exec(t);if(!e)return new Date(NaN);if(e[8]){var n=+e[4]||0;return"Z"!==e[8].toUpperCase()&&(n-=+e[8].slice(0,3)),new Date(Date.UTC(+e[1],+(e[2]||1)-1,+e[3]||1,n,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0))}return new Date(+e[1],+(e[2]||1)-1,+e[3]||1,+e[4]||0,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0)}return null==t?new Date(NaN):new Date(Math.round(t))}function gs(t){return Math.pow(10,vs(t))}function vs(t){if(0===t)return 0;var e=Math.floor(Math.log(t)/Math.LN10);return t/Math.pow(10,e)>=10&&e++,e}function ms(t,e){var n,r=vs(t),i=Math.pow(10,r),o=t/i;return n=e?o<1.5?1:o<2.5?2:o<4?3:o<7?5:10:o<1?1:o<2?2:o<3?3:o<5?5:10,t=n*i,r>=-20?+t.toFixed(r<0?-r:0):t}function ys(t,e){var n=(t.length-1)*e+1,r=Math.floor(n),i=+t[r-1],o=n-r;return o?i+o*(t[r]-i):i}function bs(t){t.sort((function(t,e){return s(t,e,0)?-1:1}));for(var e=-1/0,n=1,r=0;r<t.length;){for(var i=t[r].interval,o=t[r].close,a=0;a<2;a++)i[a]<=e&&(i[a]=e,o[a]=a?1:1-n),e=i[a],n=o[a];i[0]===i[1]&&o[0]*o[1]!==1?t.splice(r,1):r++}return t;function s(t,e,n){return t.interval[n]<e.interval[n]||t.interval[n]===e.interval[n]&&(t.close[n]-e.close[n]===(n?-1:1)||!n&&s(t,e,1))}}function _s(t){var e=parseFloat(t);return e==t&&(0!==e||!Wt(t)||t.indexOf("x")<=0)?e:NaN}function xs(t){return!isNaN(_s(t))}function ws(){return Math.round(9*Math.random())}function Os(t,e){return 0===e?t:Os(e,t%e)}function Ss(t,e){return null==t?e:null==e?t:t*e/Os(t,e)}function As(t,e,n){return(e-t)*n+t}var ks="series\0",Cs="\0_ec_\0";function Ms(t){return t instanceof Array?t:null==t?[]:[t]}function Ts(t,e,n){if(t){t[e]=t[e]||{},t.emphasis=t.emphasis||{},t.emphasis[e]=t.emphasis[e]||{};for(var r=0,i=n.length;r<i;r++){var o=n[r];!t.emphasis[e].hasOwnProperty(o)&&t[e].hasOwnProperty(o)&&(t.emphasis[e][o]=t[e][o])}}}var Ps=["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 Is(t){return!Qt(t)||Bt(t)||t instanceof Date?t:t.value}function $s(t){return Qt(t)&&!(t instanceof Array)}function Es(t,e,n){var r="normalMerge"===n,i="replaceMerge"===n,o="replaceAll"===n;t=t||[],e=(e||[]).slice();var a=de();Pt(e,(function(t,n){Qt(t)||(e[n]=null)}));var s=Rs(t,a,n);return(r||i)&&Ds(s,t,a,e),r&&Ls(s,e),r||i?Ns(s,e,i):o&&zs(s,e),Bs(s),s}function Rs(t,e,n){var r=[];if("replaceAll"===n)return r;for(var i=0;i<t.length;i++){var o=t[i];o&&null!=o.id&&e.set(o.id,i),r.push({existing:"replaceMerge"===n||Qs(o)?null:o,newOption:null,keyInfo:null,brandNew:null})}return r}function Ds(t,e,n,r){Pt(r,(function(i,o){if(i&&null!=i.id){var a=Ws(i.id),s=n.get(a);if(null!=s){var l=t[s];re(!l.newOption,'Duplicated option on id "'+a+'".'),l.newOption=i,l.existing=e[s],r[o]=null}}}))}function Ls(t,e){Pt(e,(function(n,r){if(n&&null!=n.name)for(var i=0;i<t.length;i++){var o=t[i].existing;if(!t[i].newOption&&o&&(null==o.id||null==n.id)&&!Qs(n)&&!Qs(o)&&Fs("name",o,n))return t[i].newOption=n,void(e[r]=null)}}))}function Ns(t,e,n){Pt(e,(function(e){if(e){var r,i=0;while((r=t[i])&&(r.newOption||Qs(r.existing)||r.existing&&null!=e.id&&!Fs("id",e,r.existing)))i++;r?(r.newOption=e,r.brandNew=n):t.push({newOption:e,brandNew:n,existing:null,keyInfo:null}),i++}}))}function zs(t,e){Pt(e,(function(e){t.push({newOption:e,brandNew:!0,existing:null,keyInfo:null})}))}function Bs(t){var e=de();Pt(t,(function(t){var n=t.existing;n&&e.set(n.id,t)})),Pt(t,(function(t){var n=t.newOption;re(!n||null==n.id||!e.get(n.id)||e.get(n.id)===t,"id duplicates: "+(n&&n.id)),n&&null!=n.id&&e.set(n.id,t),!t.keyInfo&&(t.keyInfo={})})),Pt(t,(function(t,n){var r=t.existing,i=t.newOption,o=t.keyInfo;if(Qt(i)){if(o.name=null!=i.name?Ws(i.name):r?r.name:ks+n,r)o.id=Ws(r.id);else if(null!=i.id)o.id=Ws(i.id);else{var a=0;do{o.id="\0"+o.name+"\0"+a++}while(e.get(o.id))}e.set(o.id,t)}}))}function Fs(t,e,n){var r=js(e[t],null),i=js(n[t],null);return null!=r&&null!=i&&r===i}function Ws(t){return js(t,"")}function js(t,e){return null==t?e:Wt(t)?t:Vt(t)||jt(t)?t+"":e}function Vs(t){var e=t.name;return!(!e||!e.indexOf(ks))}function Qs(t){return t&&null!=t.id&&0===Ws(t.id).indexOf(Cs)}function Hs(t){return Cs+t}function Zs(t,e,n){Pt(t,(function(t){var r=t.newOption;Qt(r)&&(t.keyInfo.mainType=e,t.keyInfo.subType=Gs(e,r,t.existing,n))}))}function Gs(t,e,n,r){var i=e.type?e.type:n?n.subType:r.determineSubType(t,e);return i}function Xs(t,e){var n={},r={};return i(t||[],n),i(e||[],r,n),[o(n),o(r)];function i(t,e,n){for(var r=0,i=t.length;r<i;r++){var o=js(t[r].seriesId,null);if(null==o)return;for(var a=Ms(t[r].dataIndex),s=n&&n[o],l=0,u=a.length;l<u;l++){var c=a[l];s&&s[c]?s[c]=null:(e[o]||(e[o]={}))[c]=1}}}function o(t,e){var n=[];for(var r in t)if(t.hasOwnProperty(r)&&null!=t[r])if(e)n.push(+r);else{var i=o(t[r],!0);i.length&&n.push({seriesId:r,dataIndex:i})}return n}}function Us(t,e){return null!=e.dataIndexInside?e.dataIndexInside:null!=e.dataIndex?Bt(e.dataIndex)?It(e.dataIndex,(function(e){return t.indexOfRawIndex(e)})):t.indexOfRawIndex(e.dataIndex):null!=e.name?Bt(e.name)?It(e.name,(function(e){return t.indexOfName(e)})):t.indexOfName(e.name):void 0}function Ys(){var t="__ec_inner_"+qs++;return function(e){return e[t]||(e[t]={})}}var qs=ws();function Ks(t,e,n){var r=Js(e,n),i=r.mainTypeSpecified,o=r.queryOptionMap,a=r.others,s=a,l=n?n.defaultMainType:null;return!i&&l&&o.set(l,{}),o.each((function(e,r){var i=nl(t,r,e,{useDefault:l===r,enableAll:!n||null==n.enableAll||n.enableAll,enableNone:!n||null==n.enableNone||n.enableNone});s[r+"Models"]=i.models,s[r+"Model"]=i.models[0]})),s}function Js(t,e){var n;if(Wt(t)){var r={};r[t+"Index"]=0,n=r}else n=t;var i=de(),o={},a=!1;return Pt(n,(function(t,n){if("dataIndex"!==n&&"dataIndexInside"!==n){var r=n.match(/^(\w+)(Index|Id|Name)$/)||[],s=r[1],l=(r[2]||"").toLowerCase();if(s&&l&&!(e&&e.includeMainTypes&&kt(e.includeMainTypes,s)<0)){a=a||!!s;var u=i.get(s)||i.set(s,{});u[l]=t}}else o[n]=t})),{mainTypeSpecified:a,queryOptionMap:i,others:o}}var tl={useDefault:!0,enableAll:!1,enableNone:!1},el={useDefault:!1,enableAll:!0,enableNone:!0};function nl(t,e,n,r){r=r||tl;var i=n.index,o=n.id,a=n.name,s={models:null,specified:null!=i||null!=o||null!=a};if(!s.specified){var l=void 0;return s.models=r.useDefault&&(l=t.getComponent(e))?[l]:[],s}return"none"===i||!1===i?(re(r.enableNone,'`"none"` or `false` is not a valid value on index option.'),s.models=[],s):("all"===i&&(re(r.enableAll,'`"all"` is not a valid value on index option.'),i=o=a=null),s.models=t.queryComponents({mainType:e,index:i,id:o,name:a}),s)}function rl(t,e,n){t.setAttribute?t.setAttribute(e,n):t[e]=n}function il(t,e){return t.getAttribute?t.getAttribute(e):t[e]}function ol(t){return"auto"===t?U.domSupported?"html":"richText":t||"html"}function al(t,e){var n=de(),r=[];return Pt(t,(function(t){var i=e(t);(n.get(i)||(r.push(i),n.set(i,[]))).push(t)})),{keys:r,buckets:n}}function sl(t,e,n,r,i){var o=null==e||"auto"===e;if(null==r)return r;if(Vt(r)){var a=As(n||0,r,i);return ns(a,o?Math.max(is(n||0),is(r)):e)}if(Wt(r))return i<1?n:r;for(var s=[],l=n,u=r,c=Math.max(l?l.length:0,u.length),h=0;h<c;++h){var d=t.getDimensionInfo(h);if(d&&"ordinal"===d.type)s[h]=(i<1&&l?l:u)[h];else{var p=l&&l[h]?l[h]:0,f=u[h];a=As(p,f,i);s[h]=ns(a,o?Math.max(is(p),is(f)):e)}}return s}var ll=".",ul="___EC__COMPONENT__CONTAINER___",cl="___EC__EXTENDED_CLASS___";function hl(t){var e={main:"",sub:""};if(t){var n=t.split(ll);e.main=n[0]||"",e.sub=n[1]||""}return e}function dl(t){re(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(t),'componentType "'+t+'" illegal')}function pl(t){return!(!t||!t[cl])}function fl(t,e){t.$constructor=t,t.extend=function(t){var e,n=this;return gl(n)?e=function(t){function e(){return t.apply(this,arguments)||this}return Q(e,t),e}(n):(e=function(){(t.$constructor||n).apply(this,arguments)},Ct(e,this)),Ot(e.prototype,t),e[cl]=!0,e.extend=this.extend,e.superCall=bl,e.superApply=_l,e.superClass=n,e}}function gl(t){return Ft(t)&&/^class\s/.test(Function.prototype.toString.call(t))}function vl(t,e){t.extend=e.extend}var ml=Math.round(10*Math.random());function yl(t){var e=["__\0is_clz",ml++].join("_");t.prototype[e]=!0,t.isInstance=function(t){return!(!t||!t[e])}}function bl(t,e){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return this.superClass.prototype[e].apply(t,n)}function _l(t,e,n){return this.superClass.prototype[e].apply(t,n)}function xl(t){var e={};function n(t){var n=e[t.main];return n&&n[ul]||(n=e[t.main]={},n[ul]=!0),n}t.registerClass=function(t){var r=t.type||t.prototype.type;if(r){dl(r),t.prototype.type=r;var i=hl(r);if(i.sub){if(i.sub!==ul){var o=n(i);o[i.sub]=t}}else e[i.main]=t}return t},t.getClass=function(t,n,r){var i=e[t];if(i&&i[ul]&&(i=n?i[n]:null),r&&!i)throw new Error(n?"Component "+t+"."+(n||"")+" is used but not imported.":t+".type should be specified.");return i},t.getClassesByMainType=function(t){var n=hl(t),r=[],i=e[n.main];return i&&i[ul]?Pt(i,(function(t,e){e!==ul&&r.push(t)})):r.push(i),r},t.hasClass=function(t){var n=hl(t);return!!e[n.main]},t.getAllClassMainTypes=function(){var t=[];return Pt(e,(function(e,n){t.push(n)})),t},t.hasSubTypes=function(t){var n=hl(t),r=e[n.main];return r&&r[ul]}}function wl(t,e){for(var n=0;n<t.length;n++)t[n][1]||(t[n][1]=t[n][0]);return e=e||!1,function(n,r,i){for(var o={},a=0;a<t.length;a++){var s=t[a][1];if(!(r&&kt(r,s)>=0||i&&kt(i,s)<0)){var l=n.getShallow(s,e);null!=l&&(o[t[a][0]]=l)}}return o}}var Ol=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],Sl=wl(Ol),Al=function(){function t(){}return t.prototype.getAreaStyle=function(t,e){return Sl(this,t,e)},t}(),kl=new ii(50);function Cl(t){if("string"===typeof t){var e=kl.get(t);return e&&e.image}return t}function Ml(t,e,n,r,i){if(t){if("string"===typeof t){if(e&&e.__zrImageSrc===t||!n)return e;var o=kl.get(t),a={hostEl:n,cb:r,cbPayload:i};return o?(e=o.image,!Pl(e)&&o.pending.push(a)):(e=it.loadImage(t,Tl,Tl),e.__zrImageSrc=t,kl.put(t,e.__cachedImgObj={image:e,pending:[a]})),e}return t}return e}function Tl(){var t=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e<t.pending.length;e++){var n=t.pending[e],r=n.cb;r&&r(this,n.cbPayload),n.hostEl.dirty()}t.pending.length=0}function Pl(t){return t&&t.width&&t.height}var Il=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function $l(t,e,n,r,i){if(!e)return"";var o=(t+"").split("\n");i=El(e,n,r,i);for(var a=0,s=o.length;a<s;a++)o[a]=Rl(o[a],i);return o.join("\n")}function El(t,e,n,r){r=r||{};var i=Ot({},r);i.font=e,n=Jt(n,"..."),i.maxIterations=Jt(r.maxIterations,2);var o=i.minChar=Jt(r.minChar,0);i.cnCharWidth=pa("国",e);var a=i.ascCharWidth=pa("a",e);i.placeholder=Jt(r.placeholder,"");for(var s=t=Math.max(0,t-1),l=0;l<o&&s>=a;l++)s-=a;var u=pa(n,e);return u>s&&(n="",u=0),s=t-u,i.ellipsis=n,i.ellipsisWidth=u,i.contentWidth=s,i.containerWidth=t,i}function Rl(t,e){var n=e.containerWidth,r=e.font,i=e.contentWidth;if(!n)return"";var o=pa(t,r);if(o<=n)return t;for(var a=0;;a++){if(o<=i||a>=e.maxIterations){t+=e.ellipsis;break}var s=0===a?Dl(t,i,e.ascCharWidth,e.cnCharWidth):o>0?Math.floor(t.length*i/o):0;t=t.substr(0,s),o=pa(t,r)}return""===t&&(t=e.placeholder),t}function Dl(t,e,n,r){for(var i=0,o=0,a=t.length;o<a&&i<e;o++){var s=t.charCodeAt(o);i+=0<=s&&s<=127?n:r}return o}function Ll(t,e){null!=t&&(t+="");var n,r=e.overflow,i=e.padding,o=e.font,a="truncate"===r,s=ya(o),l=Jt(e.lineHeight,s),u=!!e.backgroundColor,c="truncate"===e.lineOverflow,h=e.width;n=null==h||"break"!==r&&"breakAll"!==r?t?t.split("\n"):[]:t?Hl(t,e.font,h,"breakAll"===r,0).lines:[];var d=n.length*l,p=Jt(e.height,d);if(d>p&&c){var f=Math.floor(p/l);n=n.slice(0,f)}if(t&&a&&null!=h)for(var g=El(h,o,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),v=0;v<n.length;v++)n[v]=Rl(n[v],g);var m=p,y=0;for(v=0;v<n.length;v++)y=Math.max(pa(n[v],o),y);null==h&&(h=y);var b=y;return i&&(m+=i[0]+i[2],b+=i[1]+i[3],h+=i[1]+i[3]),u&&(b=h),{lines:n,height:p,outerWidth:b,outerHeight:m,lineHeight:l,calculatedLineHeight:s,contentWidth:y,contentHeight:d,width:h}}var Nl=function(){function t(){}return t}(),zl=function(){function t(t){this.tokens=[],t&&(this.tokens=t)}return t}(),Bl=function(){function t(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[]}return t}();function Fl(t,e){var n=new Bl;if(null!=t&&(t+=""),!t)return n;var r,i=e.width,o=e.height,a=e.overflow,s="break"!==a&&"breakAll"!==a||null==i?null:{width:i,accumWidth:0,breakAll:"breakAll"===a},l=Il.lastIndex=0;while(null!=(r=Il.exec(t))){var u=r.index;u>l&&Wl(n,t.substring(l,u),e,s),Wl(n,r[2],e,s,r[1]),l=Il.lastIndex}l<t.length&&Wl(n,t.substring(l,t.length),e,s);var c=[],h=0,d=0,p=e.padding,f="truncate"===a,g="truncate"===e.lineOverflow;function v(t,e,n){t.width=e,t.lineHeight=n,h+=n,d=Math.max(d,e)}t:for(var m=0;m<n.lines.length;m++){for(var y=n.lines[m],b=0,_=0,x=0;x<y.tokens.length;x++){var w=y.tokens[x],O=w.styleName&&e.rich[w.styleName]||{},S=w.textPadding=O.padding,A=S?S[1]+S[3]:0,k=w.font=O.font||e.font;w.contentHeight=ya(k);var C=Jt(O.height,w.contentHeight);if(w.innerHeight=C,S&&(C+=S[0]+S[2]),w.height=C,w.lineHeight=te(O.lineHeight,e.lineHeight,C),w.align=O&&O.align||e.align,w.verticalAlign=O&&O.verticalAlign||"middle",g&&null!=o&&h+w.lineHeight>o){x>0?(y.tokens=y.tokens.slice(0,x),v(y,_,b),n.lines=n.lines.slice(0,m+1)):n.lines=n.lines.slice(0,m);break t}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=pa(w.text,k);else{if(T){var P=O.backgroundColor,I=P&&P.image;I&&(I=Cl(I),Pl(I)&&(w.width=Math.max(w.width,I.width*C/I.height)))}var $=f&&null!=i?i-_:null;null!=$&&$<w.width?!T||$<A?(w.text="",w.width=w.contentWidth=0):(w.text=$l(w.text,$-A,k,e.ellipsis,{minChar:e.truncateMinChar}),w.width=w.contentWidth=pa(w.text,k)):w.contentWidth=pa(w.text,k)}w.width+=A,_+=w.width,O&&(b=Math.max(b,w.lineHeight))}v(y,_,b)}n.outerWidth=n.width=Jt(i,d),n.outerHeight=n.height=Jt(o,h),n.contentHeight=h,n.contentWidth=d,p&&(n.outerWidth+=p[1]+p[3],n.outerHeight+=p[0]+p[2]);for(m=0;m<c.length;m++){w=c[m];var E=w.percentWidth;w.width=parseInt(E,10)/100*n.width}return n}function Wl(t,e,n,r,i){var o,a,s=""===e,l=i&&n.rich[i]||{},u=t.lines,c=l.font||n.font,h=!1;if(r){var d=l.padding,p=d?d[1]+d[3]:0;if(null!=l.width&&"auto"!==l.width){var f=ba(l.width,r.width)+p;u.length>0&&f+r.accumWidth>r.width&&(o=e.split("\n"),h=!0),r.accumWidth=f}else{var g=Hl(e,c,r.width,r.breakAll,r.accumWidth);r.accumWidth=g.accumWidth+p,a=g.linesWidths,o=g.lines}}else o=e.split("\n");for(var v=0;v<o.length;v++){var m=o[v],y=new Nl;if(y.styleName=i,y.text=m,y.isLineHolder=!m&&!s,"number"===typeof l.width?y.width=l.width:y.width=a?a[v]:pa(m,c),v||h)u.push(new zl([y]));else{var b=(u[u.length-1]||(u[0]=new zl)).tokens,_=b.length;1===_&&b[0].isLineHolder?b[0]=y:(m||!_||s)&&b.push(y)}}}function jl(t){var e=t.charCodeAt(0);return e>=32&&e<=591||e>=880&&e<=4351||e>=4608&&e<=5119||e>=7680&&e<=8303}var Vl=$t(",&?/;] ".split(""),(function(t,e){return t[e]=!0,t}),{});function Ql(t){return!jl(t)||!!Vl[t]}function Hl(t,e,n,r,i){for(var o=[],a=[],s="",l="",u=0,c=0,h=0;h<t.length;h++){var d=t.charAt(h);if("\n"!==d){var p=pa(d,e),f=!r&&!Ql(d);(o.length?c+p>n:i+c+p>n)?c?(s||l)&&(f?(s||(s=l,l="",u=0,c=u),o.push(s),a.push(c-u),l+=d,u+=p,s="",c=u):(l&&(s+=l,l="",u=0),o.push(s),a.push(c),s=d,c=p)):f?(o.push(l),a.push(u),l=d,u=p):(o.push(d),a.push(p)):(c+=p,f?(l+=d,u+=p):(l&&(s+=l,l="",u=0),s+=d))}else l&&(s+=l,c+=u),o.push(s),a.push(c),s="",l="",u=0,c=0}return o.length||s||(s=t,l="",u=0),l&&(s+=l),s&&(o.push(s),a.push(c)),1===o.length&&(c+=i),{accumWidth:c,lines:o,linesWidths:a}}var Zl="__zr_style_"+Math.round(10*Math.random()),Gl={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},Xl={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};Gl[Zl]=!0;var Ul=["z","z2","invisible"],Yl=["invisible"],ql=function(t){function e(e){return t.call(this,e)||this}return Q(e,t),e.prototype._init=function(e){for(var n=Dt(e),r=0;r<n.length;r++){var i=n[r];"style"===i?this.useStyle(e[i]):t.prototype.attrKV.call(this,i,e[i])}this.style||this.useStyle({})},e.prototype.beforeBrush=function(){},e.prototype.afterBrush=function(){},e.prototype.innerBeforeBrush=function(){},e.prototype.innerAfterBrush=function(){},e.prototype.shouldBePainted=function(t,e,n,r){var i=this.transform;if(this.ignore||this.invisible||0===this.style.opacity||this.culling&&tu(this,t,e)||i&&!i[0]&&!i[3])return!1;if(n&&this.__clipPaths)for(var o=0;o<this.__clipPaths.length;++o)if(this.__clipPaths[o].isZeroArea())return!1;if(r&&this.parent){var a=this.parent;while(a){if(a.ignore)return!1;a=a.parent}}return!0},e.prototype.contain=function(t,e){return this.rectContain(t,e)},e.prototype.traverse=function(t,e){t.call(e,this)},e.prototype.rectContain=function(t,e){var n=this.transformCoordToLocal(t,e),r=this.getBoundingRect();return r.contain(n[0],n[1])},e.prototype.getPaintRect=function(){var t=this._paintRect;if(!this._paintRect||this.__dirty){var e=this.transform,n=this.getBoundingRect(),r=this.style,i=r.shadowBlur||0,o=r.shadowOffsetX||0,a=r.shadowOffsetY||0;t=this._paintRect||(this._paintRect=new Hn(0,0,0,0)),e?Hn.applyTransform(t,n,e):t.copy(n),(i||o||a)&&(t.width+=2*i+Math.abs(o),t.height+=2*i+Math.abs(a),t.x=Math.min(t.x,t.x+o-i),t.y=Math.min(t.y,t.y+a-i));var s=this.dirtyRectTolerance;t.isZero()||(t.x=Math.floor(t.x-s),t.y=Math.floor(t.y-s),t.width=Math.ceil(t.width+1+2*s),t.height=Math.ceil(t.height+1+2*s))}return t},e.prototype.setPrevPaintRect=function(t){t?(this._prevPaintRect=this._prevPaintRect||new Hn(0,0,0,0),this._prevPaintRect.copy(t)):this._prevPaintRect=null},e.prototype.getPrevPaintRect=function(){return this._prevPaintRect},e.prototype.animateStyle=function(t){return this.animate("style",t)},e.prototype.updateDuringAnimation=function(t){"style"===t?this.dirtyStyle():this.markRedraw()},e.prototype.attrKV=function(e,n){"style"!==e?t.prototype.attrKV.call(this,e,n):this.style?this.setStyle(n):this.useStyle(n)},e.prototype.setStyle=function(t,e){return"string"===typeof t?this.style[t]=e:Ot(this.style,t),this.dirtyStyle(),this},e.prototype.dirtyStyle=function(t){t||this.markRedraw(),this.__dirty|=gr,this._rect&&(this._rect=null)},e.prototype.dirty=function(){this.dirtyStyle()},e.prototype.styleChanged=function(){return!!(this.__dirty&gr)},e.prototype.styleUpdated=function(){this.__dirty&=~gr},e.prototype.createStyle=function(t){return fe(Gl,t)},e.prototype.useStyle=function(t){t[Zl]||(t=this.createStyle(t)),this.__inHover?this.__hoverStyle=t:this.style=t,this.dirtyStyle()},e.prototype.isStyleObject=function(t){return t[Zl]},e.prototype._innerSaveToNormal=function(e){t.prototype._innerSaveToNormal.call(this,e);var n=this._normalState;e.style&&!n.style&&(n.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(e,n,Ul)},e.prototype._applyStateObj=function(e,n,r,i,o,a){t.prototype._applyStateObj.call(this,e,n,r,i,o,a);var s,l=!(n&&i);if(n&&n.style?o?i?s=n.style:(s=this._mergeStyle(this.createStyle(),r.style),this._mergeStyle(s,n.style)):(s=this._mergeStyle(this.createStyle(),i?this.style:r.style),this._mergeStyle(s,n.style)):l&&(s=r.style),s)if(o){var u=this.style;if(this.style=this.createStyle(l?{}:u),l)for(var c=Dt(u),h=0;h<c.length;h++){var d=c[h];d in s&&(s[d]=s[d],this.style[d]=u[d])}var p=Dt(s);for(h=0;h<p.length;h++){d=p[h];this.style[d]=this.style[d]}this._transitionState(e,{style:s},a,this.getAnimationStyleProps())}else this.useStyle(s);var f=this.__inHover?Yl:Ul;for(h=0;h<f.length;h++){d=f[h];n&&null!=n[d]?this[d]=n[d]:l&&null!=r[d]&&(this[d]=r[d])}},e.prototype._mergeStates=function(e){for(var n,r=t.prototype._mergeStates.call(this,e),i=0;i<e.length;i++){var o=e[i];o.style&&(n=n||{},this._mergeStyle(n,o.style))}return n&&(r.style=n),r},e.prototype._mergeStyle=function(t,e){return Ot(t,e),t},e.prototype.getAnimationStyleProps=function(){return Xl},e.initDefaultProps=function(){var t=e.prototype;t.type="displayable",t.invisible=!1,t.z=0,t.z2=0,t.zlevel=0,t.culling=!1,t.cursor="pointer",t.rectHover=!1,t.incremental=!1,t._rect=null,t.dirtyRectTolerance=0,t.__dirty=fr|gr}(),e}(Ra),Kl=new Hn(0,0,0,0),Jl=new Hn(0,0,0,0);function tu(t,e,n){return Kl.copy(t.getBoundingRect()),t.transform&&Kl.applyTransform(t.transform),Jl.width=e,Jl.height=n,!Kl.intersect(Jl)}var eu=ql,nu=(n(57836),n(39109),n(34381),n(9878),n(46801),n(66462),Math.min),ru=Math.max,iu=Math.sin,ou=Math.cos,au=2*Math.PI,su=be(),lu=be(),uu=be();function cu(t,e,n){if(0!==t.length){for(var r=t[0],i=r[0],o=r[0],a=r[1],s=r[1],l=1;l<t.length;l++)r=t[l],i=nu(i,r[0]),o=ru(o,r[0]),a=nu(a,r[1]),s=ru(s,r[1]);e[0]=i,e[1]=a,n[0]=o,n[1]=s}}function hu(t,e,n,r,i,o){i[0]=nu(t,n),i[1]=nu(e,r),o[0]=ru(t,n),o[1]=ru(e,r)}var du=[],pu=[];function fu(t,e,n,r,i,o,a,s,l,u){var c=Fr,h=Nr,d=c(t,n,i,a,du);l[0]=1/0,l[1]=1/0,u[0]=-1/0,u[1]=-1/0;for(var p=0;p<d;p++){var f=h(t,n,i,a,du[p]);l[0]=nu(f,l[0]),u[0]=ru(f,u[0])}d=c(e,r,o,s,pu);for(p=0;p<d;p++){var g=h(e,r,o,s,pu[p]);l[1]=nu(g,l[1]),u[1]=ru(g,u[1])}l[0]=nu(t,l[0]),u[0]=ru(t,u[0]),l[0]=nu(a,l[0]),u[0]=ru(a,u[0]),l[1]=nu(e,l[1]),u[1]=ru(e,u[1]),l[1]=nu(s,l[1]),u[1]=ru(s,u[1])}function gu(t,e,n,r,i,o,a,s){var l=Gr,u=Qr,c=ru(nu(l(t,n,i),1),0),h=ru(nu(l(e,r,o),1),0),d=u(t,n,i,c),p=u(e,r,o,h);a[0]=nu(t,i,d),a[1]=nu(e,o,p),s[0]=ru(t,i,d),s[1]=ru(e,o,p)}function vu(t,e,n,r,i,o,a,s,l){var u=je,c=Ve,h=Math.abs(i-o);if(h%au<1e-4&&h>1e-4)return s[0]=t-n,s[1]=e-r,l[0]=t+n,void(l[1]=e+r);if(su[0]=ou(i)*n+t,su[1]=iu(i)*r+e,lu[0]=ou(o)*n+t,lu[1]=iu(o)*r+e,u(s,su,lu),c(l,su,lu),i%=au,i<0&&(i+=au),o%=au,o<0&&(o+=au),i>o&&!a?o+=au:i<o&&a&&(i+=au),a){var d=o;o=i,i=d}for(var p=0;p<o;p+=Math.PI/2)p>i&&(uu[0]=ou(p)*n+t,uu[1]=iu(p)*r+e,u(s,uu,s),c(l,uu,l))}var mu={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},yu=[],bu=[],_u=[],xu=[],wu=[],Ou=[],Su=Math.min,Au=Math.max,ku=Math.cos,Cu=Math.sin,Mu=Math.abs,Tu=Math.PI,Pu=2*Tu,Iu="undefined"!==typeof Float32Array,$u=[];function Eu(t){var e=Math.round(t/Tu*1e8)/1e8;return e%2*Tu}function Ru(t,e){var n=Eu(t[0]);n<0&&(n+=Pu);var r=n-t[0],i=t[1];i+=r,!e&&i-n>=Pu?i=n+Pu:e&&n-i>=Pu?i=n-Pu:!e&&n>i?i=n+(Pu-Eu(n-i)):e&&n<i&&(i=n-(Pu-Eu(i-n))),t[0]=n,t[1]=i}var Du=function(){function t(t){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,t&&(this._saveData=!1),this._saveData&&(this.data=[])}return t.prototype.increaseVersion=function(){this._version++},t.prototype.getVersion=function(){return this._version},t.prototype.setScale=function(t,e,n){n=n||0,n>0&&(this._ux=Mu(n/Yo/t)||0,this._uy=Mu(n/Yo/e)||0)},t.prototype.setDPR=function(t){this.dpr=t},t.prototype.setContext=function(t){this._ctx=t},t.prototype.getContext=function(){return this._ctx},t.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},t.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},t.prototype.moveTo=function(t,e){return this._drawPendingPt(),this.addData(mu.M,t,e),this._ctx&&this._ctx.moveTo(t,e),this._x0=t,this._y0=e,this._xi=t,this._yi=e,this},t.prototype.lineTo=function(t,e){var n=Mu(t-this._xi),r=Mu(e-this._yi),i=n>this._ux||r>this._uy;if(this.addData(mu.L,t,e),this._ctx&&i&&this._ctx.lineTo(t,e),i)this._xi=t,this._yi=e,this._pendingPtDist=0;else{var o=n*n+r*r;o>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=e,this._pendingPtDist=o)}return this},t.prototype.bezierCurveTo=function(t,e,n,r,i,o){return this._drawPendingPt(),this.addData(mu.C,t,e,n,r,i,o),this._ctx&&this._ctx.bezierCurveTo(t,e,n,r,i,o),this._xi=i,this._yi=o,this},t.prototype.quadraticCurveTo=function(t,e,n,r){return this._drawPendingPt(),this.addData(mu.Q,t,e,n,r),this._ctx&&this._ctx.quadraticCurveTo(t,e,n,r),this._xi=n,this._yi=r,this},t.prototype.arc=function(t,e,n,r,i,o){this._drawPendingPt(),$u[0]=r,$u[1]=i,Ru($u,o),r=$u[0],i=$u[1];var a=i-r;return this.addData(mu.A,t,e,n,n,r,a,0,o?0:1),this._ctx&&this._ctx.arc(t,e,n,r,i,o),this._xi=ku(i)*n+t,this._yi=Cu(i)*n+e,this},t.prototype.arcTo=function(t,e,n,r,i){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,e,n,r,i),this},t.prototype.rect=function(t,e,n,r){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,e,n,r),this.addData(mu.R,t,e,n,r),this},t.prototype.closePath=function(){this._drawPendingPt(),this.addData(mu.Z);var t=this._ctx,e=this._x0,n=this._y0;return t&&t.closePath(),this._xi=e,this._yi=n,this},t.prototype.fill=function(t){t&&t.fill(),this.toStatic()},t.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},t.prototype.len=function(){return this._len},t.prototype.setData=function(t){var e=t.length;this.data&&this.data.length===e||!Iu||(this.data=new Float32Array(e));for(var n=0;n<e;n++)this.data[n]=t[n];this._len=e},t.prototype.appendPath=function(t){t instanceof Array||(t=[t]);for(var e=t.length,n=0,r=this._len,i=0;i<e;i++)n+=t[i].len();Iu&&this.data instanceof Float32Array&&(this.data=new Float32Array(r+n));for(i=0;i<e;i++)for(var o=t[i].data,a=0;a<o.length;a++)this.data[r++]=o[a];this._len=r},t.prototype.addData=function(t,e,n,r,i,o,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]}},t.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},t.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],e=0;e<this._len;e++)t[e]=this.data[e];this.data=t}},t.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var t=this.data;t instanceof Array&&(t.length=this._len,Iu&&this._len>11&&(this.data=new Float32Array(t)))}},t.prototype.getBoundingRect=function(){_u[0]=_u[1]=wu[0]=wu[1]=Number.MAX_VALUE,xu[0]=xu[1]=Ou[0]=Ou[1]=-Number.MAX_VALUE;var t,e=this.data,n=0,r=0,i=0,o=0;for(t=0;t<this._len;){var a=e[t++],s=1===t;switch(s&&(n=e[t],r=e[t+1],i=n,o=r),a){case mu.M:n=i=e[t++],r=o=e[t++],wu[0]=i,wu[1]=o,Ou[0]=i,Ou[1]=o;break;case mu.L:hu(n,r,e[t],e[t+1],wu,Ou),n=e[t++],r=e[t++];break;case mu.C:fu(n,r,e[t++],e[t++],e[t++],e[t++],e[t],e[t+1],wu,Ou),n=e[t++],r=e[t++];break;case mu.Q:gu(n,r,e[t++],e[t++],e[t],e[t+1],wu,Ou),n=e[t++],r=e[t++];break;case mu.A:var l=e[t++],u=e[t++],c=e[t++],h=e[t++],d=e[t++],p=e[t++]+d;t+=1;var f=!e[t++];s&&(i=ku(d)*c+l,o=Cu(d)*h+u),vu(l,u,c,h,d,p,f,wu,Ou),n=ku(p)*c+l,r=Cu(p)*h+u;break;case mu.R:i=n=e[t++],o=r=e[t++];var g=e[t++],v=e[t++];hu(i,o,i+g,o+v,wu,Ou);break;case mu.Z:n=i,r=o;break}je(_u,_u,wu),Ve(xu,xu,Ou)}return 0===t&&(_u[0]=_u[1]=xu[0]=xu[1]=0),new Hn(_u[0],_u[1],xu[0]-_u[0],xu[1]-_u[1])},t.prototype._calculateLength=function(){var t=this.data,e=this._len,n=this._ux,r=this._uy,i=0,o=0,a=0,s=0;this._pathSegLen||(this._pathSegLen=[]);for(var l=this._pathSegLen,u=0,c=0,h=0;h<e;){var d=t[h++],p=1===h;p&&(i=t[h],o=t[h+1],a=i,s=o);var f=-1;switch(d){case mu.M:i=a=t[h++],o=s=t[h++];break;case mu.L:var g=t[h++],v=t[h++],m=g-i,y=v-o;(Mu(m)>n||Mu(y)>r||h===e-1)&&(f=Math.sqrt(m*m+y*y),i=g,o=v);break;case mu.C:var b=t[h++],_=t[h++],x=(g=t[h++],v=t[h++],t[h++]),w=t[h++];f=Vr(i,o,b,_,g,v,x,w,10),i=x,o=w;break;case mu.Q:b=t[h++],_=t[h++],g=t[h++],v=t[h++];f=Yr(i,o,b,_,g,v,10),i=g,o=v;break;case mu.A:var O=t[h++],S=t[h++],A=t[h++],k=t[h++],C=t[h++],M=t[h++],T=M+C;h+=1,p&&(a=ku(C)*A+O,s=Cu(C)*k+S),f=Au(A,k)*Su(Pu,Math.abs(M)),i=ku(T)*A+O,o=Cu(T)*k+S;break;case mu.R:a=i=t[h++],s=o=t[h++];var P=t[h++],I=t[h++];f=2*P+2*I;break;case mu.Z:m=a-i,y=s-o;f=Math.sqrt(m*m+y*y),i=a,o=s;break}f>=0&&(l[c++]=f,u+=f)}return this._pathLen=u,u},t.prototype.rebuildPath=function(t,e){var n,r,i,o,a,s,l,u,c,h,d,p=this.data,f=this._ux,g=this._uy,v=this._len,m=e<1,y=0,b=0,_=0;if(!m||(this._pathSegLen||this._calculateLength(),l=this._pathSegLen,u=this._pathLen,c=e*u,c))t:for(var x=0;x<v;){var w=p[x++],O=1===x;switch(O&&(i=p[x],o=p[x+1],n=i,r=o),w!==mu.L&&_>0&&(t.lineTo(h,d),_=0),w){case mu.M:n=i=p[x++],r=o=p[x++],t.moveTo(i,o);break;case mu.L:a=p[x++],s=p[x++];var S=Mu(a-i),A=Mu(s-o);if(S>f||A>g){if(m){var k=l[b++];if(y+k>c){var C=(c-y)/k;t.lineTo(i*(1-C)+a*C,o*(1-C)+s*C);break t}y+=k}t.lineTo(a,s),i=a,o=s,_=0}else{var M=S*S+A*A;M>_&&(h=a,d=s,_=M)}break;case mu.C:var T=p[x++],P=p[x++],I=p[x++],$=p[x++],E=p[x++],R=p[x++];if(m){k=l[b++];if(y+k>c){C=(c-y)/k;Wr(i,T,I,E,C,yu),Wr(o,P,$,R,C,bu),t.bezierCurveTo(yu[1],bu[1],yu[2],bu[2],yu[3],bu[3]);break t}y+=k}t.bezierCurveTo(T,P,I,$,E,R),i=E,o=R;break;case mu.Q:T=p[x++],P=p[x++],I=p[x++],$=p[x++];if(m){k=l[b++];if(y+k>c){C=(c-y)/k;Xr(i,T,I,C,yu),Xr(o,P,$,C,bu),t.quadraticCurveTo(yu[1],bu[1],yu[2],bu[2]);break t}y+=k}t.quadraticCurveTo(T,P,I,$),i=I,o=$;break;case mu.A:var D=p[x++],L=p[x++],N=p[x++],z=p[x++],B=p[x++],F=p[x++],W=p[x++],j=!p[x++],V=N>z?N:z,Q=Mu(N-z)>.001,H=B+F,Z=!1;if(m){k=l[b++];y+k>c&&(H=B+F*(c-y)/k,Z=!0),y+=k}if(Q&&t.ellipse?t.ellipse(D,L,N,z,W,B,H,j):t.arc(D,L,V,B,H,j),Z)break t;O&&(n=ku(B)*N+D,r=Cu(B)*z+L),i=ku(H)*N+D,o=Cu(H)*z+L;break;case mu.R:n=i=p[x],r=o=p[x+1],a=p[x++],s=p[x++];var G=p[x++],X=p[x++];if(m){k=l[b++];if(y+k>c){var U=c-y;t.moveTo(a,s),t.lineTo(a+Su(U,G),s),U-=G,U>0&&t.lineTo(a+G,s+Su(U,X)),U-=X,U>0&&t.lineTo(a+Au(G-U,0),s+X),U-=G,U>0&&t.lineTo(a,s+Au(X-U,0));break t}y+=k}t.rect(a,s,G,X);break;case mu.Z:if(m){k=l[b++];if(y+k>c){C=(c-y)/k;t.lineTo(i*(1-C)+n*C,o*(1-C)+r*C);break t}y+=k}t.closePath(),i=n,o=r}}},t.prototype.clone=function(){var e=new t,n=this.data;return e.data=n.slice?n.slice():Array.prototype.slice.call(n),e._len=this._len,e},t.CMD=mu,t.initDefaultProps=function(){var e=t.prototype;e._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,e._version=0}(),t}(),Lu=Du;function Nu(t,e,n,r,i,o,a){if(0===i)return!1;var s=i,l=0,u=t;if(a>e+s&&a>r+s||a<e-s&&a<r-s||o>t+s&&o>n+s||o<t-s&&o<n-s)return!1;if(t===n)return Math.abs(o-t)<=s/2;l=(e-r)/(t-n),u=(t*r-n*e)/(t-n);var c=l*o-a+u,h=c*c/(l*l+1);return h<=s/2*s/2}function zu(t,e,n,r,i,o,a,s,l,u,c){if(0===l)return!1;var h=l;if(c>e+h&&c>r+h&&c>o+h&&c>s+h||c<e-h&&c<r-h&&c<o-h&&c<s-h||u>t+h&&u>n+h&&u>i+h&&u>a+h||u<t-h&&u<n-h&&u<i-h&&u<a-h)return!1;var d=jr(t,e,n,r,i,o,a,s,u,c,null);return d<=h/2}function Bu(t,e,n,r,i,o,a,s,l){if(0===a)return!1;var u=a;if(l>e+u&&l>r+u&&l>o+u||l<e-u&&l<r-u&&l<o-u||s>t+u&&s>n+u&&s>i+u||s<t-u&&s<n-u&&s<i-u)return!1;var c=Ur(t,e,n,r,i,o,s,l,null);return c<=u/2}var Fu=2*Math.PI;function Wu(t){return t%=Fu,t<0&&(t+=Fu),t}var ju=2*Math.PI;function Vu(t,e,n,r,i,o,a,s,l){if(0===a)return!1;var u=a;s-=t,l-=e;var c=Math.sqrt(s*s+l*l);if(c-u>n||c+u<n)return!1;if(Math.abs(r-i)%ju<1e-4)return!0;if(o){var h=r;r=Wu(i),i=Wu(h)}else r=Wu(r),i=Wu(i);r>i&&(i+=ju);var d=Math.atan2(l,s);return d<0&&(d+=ju),d>=r&&d<=i||d+ju>=r&&d+ju<=i}function Qu(t,e,n,r,i,o){if(o>e&&o>r||o<e&&o<r)return 0;if(r===e)return 0;var a=(o-e)/(r-e),s=r<e?1:-1;1!==a&&0!==a||(s=r<e?.5:-.5);var l=a*(n-t)+t;return l===i?1/0:l>i?s:0}var Hu=Lu.CMD,Zu=2*Math.PI,Gu=1e-4;function Xu(t,e){return Math.abs(t-e)<Gu}var Uu=[-1,-1,-1],Yu=[-1,-1];function qu(){var t=Yu[0];Yu[0]=Yu[1],Yu[1]=t}function Ku(t,e,n,r,i,o,a,s,l,u){if(u>e&&u>r&&u>o&&u>s||u<e&&u<r&&u<o&&u<s)return 0;var c=Br(e,r,o,s,u,Uu);if(0===c)return 0;for(var h=0,d=-1,p=void 0,f=void 0,g=0;g<c;g++){var v=Uu[g],m=0===v||1===v?.5:1,y=Nr(t,n,i,a,v);y<l||(d<0&&(d=Fr(e,r,o,s,Yu),Yu[1]<Yu[0]&&d>1&&qu(),p=Nr(e,r,o,s,Yu[0]),d>1&&(f=Nr(e,r,o,s,Yu[1]))),2===d?v<Yu[0]?h+=p<e?m:-m:v<Yu[1]?h+=f<p?m:-m:h+=s<f?m:-m:v<Yu[0]?h+=p<e?m:-m:h+=s<p?m:-m)}return h}function Ju(t,e,n,r,i,o,a,s){if(s>e&&s>r&&s>o||s<e&&s<r&&s<o)return 0;var l=Zr(e,r,o,s,Uu);if(0===l)return 0;var u=Gr(e,r,o);if(u>=0&&u<=1){for(var c=0,h=Qr(e,r,o,u),d=0;d<l;d++){var p=0===Uu[d]||1===Uu[d]?.5:1,f=Qr(t,n,i,Uu[d]);f<a||(Uu[d]<u?c+=h<e?p:-p:c+=o<h?p:-p)}return c}p=0===Uu[0]||1===Uu[0]?.5:1,f=Qr(t,n,i,Uu[0]);return f<a?0:o<e?p:-p}function tc(t,e,n,r,i,o,a,s){if(s-=e,s>n||s<-n)return 0;var l=Math.sqrt(n*n-s*s);Uu[0]=-l,Uu[1]=l;var u=Math.abs(r-i);if(u<1e-4)return 0;if(u>=Zu-1e-4){r=0,i=Zu;var c=o?1:-1;return a>=Uu[0]+t&&a<=Uu[1]+t?c:0}if(r>i){var h=r;r=i,i=h}r<0&&(r+=Zu,i+=Zu);for(var d=0,p=0;p<2;p++){var f=Uu[p];if(f+t>a){var g=Math.atan2(s,f);c=o?1:-1;g<0&&(g=Zu+g),(g>=r&&g<=i||g+Zu>=r&&g+Zu<=i)&&(g>Math.PI/2&&g<1.5*Math.PI&&(c=-c),d+=c)}}return d}function ec(t,e,n,r,i){for(var o,a,s=t.data,l=t.len(),u=0,c=0,h=0,d=0,p=0,f=0;f<l;){var g=s[f++],v=1===f;switch(g===Hu.M&&f>1&&(n||(u+=Qu(c,h,d,p,r,i))),v&&(c=s[f],h=s[f+1],d=c,p=h),g){case Hu.M:d=s[f++],p=s[f++],c=d,h=p;break;case Hu.L:if(n){if(Nu(c,h,s[f],s[f+1],e,r,i))return!0}else u+=Qu(c,h,s[f],s[f+1],r,i)||0;c=s[f++],h=s[f++];break;case Hu.C:if(n){if(zu(c,h,s[f++],s[f++],s[f++],s[f++],s[f],s[f+1],e,r,i))return!0}else u+=Ku(c,h,s[f++],s[f++],s[f++],s[f++],s[f],s[f+1],r,i)||0;c=s[f++],h=s[f++];break;case Hu.Q:if(n){if(Bu(c,h,s[f++],s[f++],s[f],s[f+1],e,r,i))return!0}else u+=Ju(c,h,s[f++],s[f++],s[f],s[f+1],r,i)||0;c=s[f++],h=s[f++];break;case Hu.A:var m=s[f++],y=s[f++],b=s[f++],_=s[f++],x=s[f++],w=s[f++];f+=1;var O=!!(1-s[f++]);o=Math.cos(x)*b+m,a=Math.sin(x)*_+y,v?(d=o,p=a):u+=Qu(c,h,o,a,r,i);var S=(r-m)*_/b+m;if(n){if(Vu(m,y,_,x,x+w,O,e,S,i))return!0}else u+=tc(m,y,_,x,x+w,O,S,i);c=Math.cos(x+w)*b+m,h=Math.sin(x+w)*_+y;break;case Hu.R:d=c=s[f++],p=h=s[f++];var A=s[f++],k=s[f++];if(o=d+A,a=p+k,n){if(Nu(d,p,o,p,e,r,i)||Nu(o,p,o,a,e,r,i)||Nu(o,a,d,a,e,r,i)||Nu(d,a,d,p,e,r,i))return!0}else u+=Qu(o,p,o,a,r,i),u+=Qu(d,a,d,p,r,i);break;case Hu.Z:if(n){if(Nu(c,h,d,p,e,r,i))return!0}else u+=Qu(c,h,d,p,r,i);c=d,h=p;break}}return n||Xu(h,p)||(u+=Qu(c,h,d,p,r,i)||0),0!==u}function nc(t,e,n){return ec(t,0,!1,e,n)}function rc(t,e,n,r){return ec(t,e,!0,n,r)}var ic=St({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},Gl),oc={style:St({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Xl.style)},ac=ua.concat(["invisible","culling","z","z2","zlevel","parent"]),sc=function(t){function e(e){return t.call(this,e)||this}return Q(e,t),e.prototype.update=function(){var n=this;t.prototype.update.call(this);var r=this.style;if(r.decal){var i=this._decalEl=this._decalEl||new e;i.buildPath===e.prototype.buildPath&&(i.buildPath=function(t){n.buildPath(t,n.shape)}),i.silent=!0;var o=i.style;for(var a in r)o[a]!==r[a]&&(o[a]=r[a]);o.fill=r.fill?r.decal:null,o.decal=null,o.shadowColor=null,r.strokeFirst&&(o.stroke=null);for(var s=0;s<ac.length;++s)i[ac[s]]=this[ac[s]];i.__dirty|=fr}else this._decalEl&&(this._decalEl=null)},e.prototype.getDecalElement=function(){return this._decalEl},e.prototype._init=function(e){var n=Dt(e);this.shape=this.getDefaultShape();var r=this.getDefaultStyle();r&&this.useStyle(r);for(var i=0;i<n.length;i++){var o=n[i],a=e[o];"style"===o?this.style?Ot(this.style,a):this.useStyle(a):"shape"===o?Ot(this.shape,a):t.prototype.attrKV.call(this,o,a)}this.style||this.useStyle({})},e.prototype.getDefaultStyle=function(){return null},e.prototype.getDefaultShape=function(){return{}},e.prototype.canBeInsideText=function(){return this.hasFill()},e.prototype.getInsideTextFill=function(){var t=this.style.fill;if("none"!==t){if(Wt(t)){var e=Pi(t,0);return e>.5?Ko:e>.2?ta:Jo}if(t)return Jo}return Ko},e.prototype.getInsideTextStroke=function(t){var e=this.style.fill;if(Wt(e)){var n=this.__zr,r=!(!n||!n.isDarkMode()),i=Pi(t,0)<qo;if(r===i)return e}},e.prototype.buildPath=function(t,e,n){},e.prototype.pathUpdated=function(){this.__dirty&=~vr},e.prototype.getUpdatedPathProxy=function(t){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,t),this.path},e.prototype.createPathProxy=function(){this.path=new Lu(!1)},e.prototype.hasStroke=function(){var t=this.style,e=t.stroke;return!(null==e||"none"===e||!(t.lineWidth>0))},e.prototype.hasFill=function(){var t=this.style,e=t.fill;return null!=e&&"none"!==e},e.prototype.getBoundingRect=function(){var t=this._rect,e=this.style,n=!t;if(n){var r=!1;this.path||(r=!0,this.createPathProxy());var i=this.path;(r||this.__dirty&vr)&&(i.beginPath(),this.buildPath(i,this.shape,!1),this.pathUpdated()),t=i.getBoundingRect()}if(this._rect=t,this.hasStroke()&&this.path&&this.path.len()>0){var o=this._rectStroke||(this._rectStroke=t.clone());if(this.__dirty||n){o.copy(t);var a=e.strokeNoScale?this.getLineScale():1,s=e.lineWidth;if(!this.hasFill()){var l=this.strokeContainThreshold;s=Math.max(s,null==l?4:l)}a>1e-10&&(o.width+=s/a,o.height+=s/a,o.x-=s/a/2,o.y-=s/a/2)}return o}return t},e.prototype.contain=function(t,e){var n=this.transformCoordToLocal(t,e),r=this.getBoundingRect(),i=this.style;if(t=n[0],e=n[1],r.contain(t,e)){var o=this.path;if(this.hasStroke()){var a=i.lineWidth,s=i.strokeNoScale?this.getLineScale():1;if(s>1e-10&&(this.hasFill()||(a=Math.max(a,this.strokeContainThreshold)),rc(o,a/s,t,e)))return!0}if(this.hasFill())return nc(o,t,e)}return!1},e.prototype.dirtyShape=function(){this.__dirty|=vr,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},e.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},e.prototype.animateShape=function(t){return this.animate("shape",t)},e.prototype.updateDuringAnimation=function(t){"style"===t?this.dirtyStyle():"shape"===t?this.dirtyShape():this.markRedraw()},e.prototype.attrKV=function(e,n){"shape"===e?this.setShape(n):t.prototype.attrKV.call(this,e,n)},e.prototype.setShape=function(t,e){var n=this.shape;return n||(n=this.shape={}),"string"===typeof t?n[t]=e:Ot(n,t),this.dirtyShape(),this},e.prototype.shapeChanged=function(){return!!(this.__dirty&vr)},e.prototype.createStyle=function(t){return fe(ic,t)},e.prototype._innerSaveToNormal=function(e){t.prototype._innerSaveToNormal.call(this,e);var n=this._normalState;e.shape&&!n.shape&&(n.shape=Ot({},this.shape))},e.prototype._applyStateObj=function(e,n,r,i,o,a){t.prototype._applyStateObj.call(this,e,n,r,i,o,a);var s,l=!(n&&i);if(n&&n.shape?o?i?s=n.shape:(s=Ot({},r.shape),Ot(s,n.shape)):(s=Ot({},i?this.shape:r.shape),Ot(s,n.shape)):l&&(s=r.shape),s)if(o){this.shape=Ot({},this.shape);for(var u={},c=Dt(s),h=0;h<c.length;h++){var d=c[h];"object"===typeof s[d]?this.shape[d]=s[d]:u[d]=s[d]}this._transitionState(e,{shape:u},a)}else this.shape=s,this.dirtyShape()},e.prototype._mergeStates=function(e){for(var n,r=t.prototype._mergeStates.call(this,e),i=0;i<e.length;i++){var o=e[i];o.shape&&(n=n||{},this._mergeStyle(n,o.shape))}return n&&(r.shape=n),r},e.prototype.getAnimationStyleProps=function(){return oc},e.prototype.isZeroArea=function(){return!1},e.extend=function(t){var n=function(e){function n(n){var r=e.call(this,n)||this;return t.init&&t.init.call(r,n),r}return Q(n,e),n.prototype.getDefaultStyle=function(){return _t(t.style)},n.prototype.getDefaultShape=function(){return _t(t.shape)},n}(e);for(var r in t)"function"===typeof t[r]&&(n.prototype[r]=t[r]);return n},e.initDefaultProps=function(){var t=e.prototype;t.type="path",t.strokeContainThreshold=5,t.segmentIgnoreThreshold=0,t.subPixelOptimize=!1,t.autoBatch=!1,t.__dirty=fr|gr|vr}(),e}(eu),lc=sc,uc=St({strokeFirst:!0,font:K,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},ic),cc=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Q(e,t),e.prototype.hasStroke=function(){var t=this.style,e=t.stroke;return null!=e&&"none"!==e&&t.lineWidth>0},e.prototype.hasFill=function(){var t=this.style,e=t.fill;return null!=e&&"none"!==e},e.prototype.createStyle=function(t){return fe(uc,t)},e.prototype.setBoundingRect=function(t){this._rect=t},e.prototype.getBoundingRect=function(){var t=this.style;if(!this._rect){var e=t.text;null!=e?e+="":e="";var n=ga(e,t.font,t.textAlign,t.textBaseline);if(n.x+=t.x||0,n.y+=t.y||0,this.hasStroke()){var r=t.lineWidth;n.x-=r/2,n.y-=r/2,n.width+=r,n.height+=r}this._rect=n}return this._rect},e.initDefaultProps=function(){var t=e.prototype;t.dirtyRectTolerance=10}(),e}(eu);cc.prototype.type="tspan";var hc=cc,dc=St({x:0,y:0},Gl),pc={style:St({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},Xl.style)};function fc(t){return!!(t&&"string"!==typeof t&&t.width&&t.height)}var gc=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Q(e,t),e.prototype.createStyle=function(t){return fe(dc,t)},e.prototype._getSize=function(t){var e=this.style,n=e[t];if(null!=n)return n;var r=fc(e.image)?e.image:this.__image;if(!r)return 0;var i="width"===t?"height":"width",o=e[i];return null==o?r[t]:r[t]/r[i]*o},e.prototype.getWidth=function(){return this._getSize("width")},e.prototype.getHeight=function(){return this._getSize("height")},e.prototype.getAnimationStyleProps=function(){return pc},e.prototype.getBoundingRect=function(){var t=this.style;return this._rect||(this._rect=new Hn(t.x||0,t.y||0,this.getWidth(),this.getHeight())),this._rect},e}(eu);gc.prototype.type="image";var vc=gc;function mc(t,e){var n,r,i,o,a,s=e.x,l=e.y,u=e.width,c=e.height,h=e.r;u<0&&(s+=u,u=-u),c<0&&(l+=c,c=-c),"number"===typeof h?n=r=i=o=h:h instanceof Array?1===h.length?n=r=i=o=h[0]:2===h.length?(n=i=h[0],r=o=h[1]):3===h.length?(n=h[0],r=o=h[1],i=h[2]):(n=h[0],r=h[1],i=h[2],o=h[3]):n=r=i=o=0,n+r>u&&(a=n+r,n*=u/a,r*=u/a),i+o>u&&(a=i+o,i*=u/a,o*=u/a),r+i>c&&(a=r+i,r*=c/a,i*=c/a),n+o>c&&(a=n+o,n*=c/a,o*=c/a),t.moveTo(s+n,l),t.lineTo(s+u-r,l),0!==r&&t.arc(s+u-r,l+r,r,-Math.PI/2,0),t.lineTo(s+u,l+c-i),0!==i&&t.arc(s+u-i,l+c-i,i,0,Math.PI/2),t.lineTo(s+o,l+c),0!==o&&t.arc(s+o,l+c-o,o,Math.PI/2,Math.PI),t.lineTo(s,l+n),0!==n&&t.arc(s+n,l+n,n,Math.PI,1.5*Math.PI)}var yc=Math.round;function bc(t,e,n){if(e){var r=e.x1,i=e.x2,o=e.y1,a=e.y2;t.x1=r,t.x2=i,t.y1=o,t.y2=a;var s=n&&n.lineWidth;return s?(yc(2*r)===yc(2*i)&&(t.x1=t.x2=xc(r,s,!0)),yc(2*o)===yc(2*a)&&(t.y1=t.y2=xc(o,s,!0)),t):t}}function _c(t,e,n){if(e){var r=e.x,i=e.y,o=e.width,a=e.height;t.x=r,t.y=i,t.width=o,t.height=a;var s=n&&n.lineWidth;return s?(t.x=xc(r,s,!0),t.y=xc(i,s,!0),t.width=Math.max(xc(r+o,s,!1)-t.x,0===o?0:1),t.height=Math.max(xc(i+a,s,!1)-t.y,0===a?0:1),t):t}}function xc(t,e,n){if(!e)return t;var r=yc(2*t);return(r+yc(e))%2===0?r/2:(r+(n?1:-1))/2}var wc=function(){function t(){this.x=0,this.y=0,this.width=0,this.height=0}return t}(),Oc={},Sc=function(t){function e(e){return t.call(this,e)||this}return Q(e,t),e.prototype.getDefaultShape=function(){return new wc},e.prototype.buildPath=function(t,e){var n,r,i,o;if(this.subPixelOptimize){var a=_c(Oc,e,this.style);n=a.x,r=a.y,i=a.width,o=a.height,a.r=e.r,e=a}else n=e.x,r=e.y,i=e.width,o=e.height;e.r?mc(t,e):t.rect(n,r,i,o)},e.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},e}(lc);Sc.prototype.type="rect";var Ac=Sc,kc={fill:"#000"},Cc=2,Mc={style:St({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},Xl.style)},Tc=function(t){function e(e){var n=t.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=kc,n.attr(e),n}return Q(e,t),e.prototype.childrenRef=function(){return this._children},e.prototype.update=function(){t.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var e=0;e<this._children.length;e++){var n=this._children[e];n.zlevel=this.zlevel,n.z=this.z,n.z2=this.z2,n.culling=this.culling,n.cursor=this.cursor,n.invisible=this.invisible}},e.prototype.updateTransform=function(){var e=this.innerTransformable;e?(e.updateTransform(),e.transform&&(this.transform=e.transform)):t.prototype.updateTransform.call(this)},e.prototype.getLocalTransform=function(e){var n=this.innerTransformable;return n?n.getLocalTransform(e):t.prototype.getLocalTransform.call(this,e)},e.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),t.prototype.getComputedTransform.call(this)},e.prototype._updateSubTexts=function(){this._childCursor=0,Lc(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},e.prototype.addSelfToZr=function(e){t.prototype.addSelfToZr.call(this,e);for(var n=0;n<this._children.length;n++)this._children[n].__zr=e},e.prototype.removeSelfFromZr=function(e){t.prototype.removeSelfFromZr.call(this,e);for(var n=0;n<this._children.length;n++)this._children[n].__zr=null},e.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var t=new Hn(0,0,0,0),e=this._children,n=[],r=null,i=0;i<e.length;i++){var o=e[i],a=o.getBoundingRect(),s=o.getLocalTransform(n);s?(t.copy(a),t.applyTransform(s),r=r||t.clone(),r.union(t)):(r=r||a.clone(),r.union(a))}this._rect=r||t}return this._rect},e.prototype.setDefaultTextStyle=function(t){this._defaultStyle=t||kc},e.prototype.setTextContent=function(t){0},e.prototype._mergeStyle=function(t,e){if(!e)return t;var n=e.rich,r=t.rich||n&&{};return Ot(t,e),n&&r?(this._mergeRich(r,n),t.rich=r):r&&(t.rich=r),t},e.prototype._mergeRich=function(t,e){for(var n=Dt(e),r=0;r<n.length;r++){var i=n[r];t[i]=t[i]||{},Ot(t[i],e[i])}},e.prototype.getAnimationStyleProps=function(){return Mc},e.prototype._getOrCreateChild=function(t){var e=this._children[this._childCursor];return e&&e instanceof t||(e=new t),this._children[this._childCursor++]=e,e.__zr=this.__zr,e.parent=this,e},e.prototype._updatePlainTexts=function(){var t=this.style,e=t.font||K,n=t.padding,r=Wc(t),i=Ll(r,t),o=jc(t),a=!!t.backgroundColor,s=i.outerHeight,l=i.outerWidth,u=i.contentWidth,c=i.lines,h=i.lineHeight,d=this._defaultStyle,p=t.x||0,f=t.y||0,g=t.align||d.align||"left",v=t.verticalAlign||d.verticalAlign||"top",m=p,y=ma(f,i.contentHeight,v);if(o||n){var b=va(p,l,g),_=ma(f,s,v);o&&this._renderBackground(t,t,b,_,l,s)}y+=h/2,n&&(m=Fc(p,g,n),"top"===v?y+=n[0]:"bottom"===v&&(y-=n[2]));for(var x=0,w=!1,O=(Bc("fill"in t?t.fill:(w=!0,d.fill))),S=(zc("stroke"in t?t.stroke:a||d.autoStroke&&!w?null:(x=Cc,d.stroke))),A=t.textShadowBlur>0,k=null!=t.width&&("truncate"===t.overflow||"break"===t.overflow||"breakAll"===t.overflow),C=i.calculatedLineHeight,M=0;M<c.length;M++){var T=this._getOrCreateChild(hc),P=T.createStyle();T.useStyle(P),P.text=c[M],P.x=m,P.y=y,g&&(P.textAlign=g),P.textBaseline="middle",P.opacity=t.opacity,P.strokeFirst=!0,A&&(P.shadowBlur=t.textShadowBlur||0,P.shadowColor=t.textShadowColor||"transparent",P.shadowOffsetX=t.textShadowOffsetX||0,P.shadowOffsetY=t.textShadowOffsetY||0),P.stroke=S,P.fill=O,S&&(P.lineWidth=t.lineWidth||x,P.lineDash=t.lineDash,P.lineDashOffset=t.lineDashOffset||0),P.font=e,Rc(P,t),y+=h,k&&T.setBoundingRect(new Hn(va(P.x,t.width,P.textAlign),ma(P.y,C,P.textBaseline),u,C))}},e.prototype._updateRichTexts=function(){var t=this.style,e=Wc(t),n=Fl(e,t),r=n.width,i=n.outerWidth,o=n.outerHeight,a=t.padding,s=t.x||0,l=t.y||0,u=this._defaultStyle,c=t.align||u.align,h=t.verticalAlign||u.verticalAlign,d=va(s,i,c),p=ma(l,o,h),f=d,g=p;a&&(f+=a[3],g+=a[0]);var v=f+r;jc(t)&&this._renderBackground(t,t,d,p,i,o);for(var m=!!t.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=v,C=x-1,M=void 0;while(S<x&&(M=_[S],!M.align||"left"===M.align))this._placeToken(M,t,w,g,A,"left",m),O-=M.width,A+=M.width,S++;while(C>=0&&(M=_[C],"right"===M.align))this._placeToken(M,t,w,g,k,"right",m),O-=M.width,k-=M.width,C--;A+=(r-(A-f)-(v-k)-O)/2;while(S<=C)M=_[S],this._placeToken(M,t,w,g,A+M.width/2,"center",m),A+=M.width,S++;g+=w}},e.prototype._placeToken=function(t,e,n,r,i,o,a){var s=e.rich[t.styleName]||{};s.text=t.text;var l=t.verticalAlign,u=r+n/2;"top"===l?u=r+t.height/2:"bottom"===l&&(u=r+n-t.height/2);var c=!t.isLineHolder&&jc(s);c&&this._renderBackground(s,e,"right"===o?i-t.width:"center"===o?i-t.width/2:i,u-t.height/2,t.width,t.height);var h=!!s.backgroundColor,d=t.textPadding;d&&(i=Fc(i,o,d),u-=t.height/2-d[0]-t.innerHeight/2);var p=this._getOrCreateChild(hc),f=p.createStyle();p.useStyle(f);var g=this._defaultStyle,v=!1,m=0,y=Bc("fill"in s?s.fill:"fill"in e?e.fill:(v=!0,g.fill)),b=zc("stroke"in s?s.stroke:"stroke"in e?e.stroke:h||a||g.autoStroke&&!v?null:(m=Cc,g.stroke)),_=s.textShadowBlur>0||e.textShadowBlur>0;f.text=t.text,f.x=i,f.y=u,_&&(f.shadowBlur=s.textShadowBlur||e.textShadowBlur||0,f.shadowColor=s.textShadowColor||e.textShadowColor||"transparent",f.shadowOffsetX=s.textShadowOffsetX||e.textShadowOffsetX||0,f.shadowOffsetY=s.textShadowOffsetY||e.textShadowOffsetY||0),f.textAlign=o,f.textBaseline="middle",f.font=t.font||K,f.opacity=te(s.opacity,e.opacity,1),Rc(f,s),b&&(f.lineWidth=te(s.lineWidth,e.lineWidth,m),f.lineDash=Jt(s.lineDash,e.lineDash),f.lineDashOffset=e.lineDashOffset||0,f.stroke=b),y&&(f.fill=y);var x=t.contentWidth,w=t.contentHeight;p.setBoundingRect(new Hn(va(f.x,x,f.textAlign),ma(f.y,w,f.textBaseline),x,w))},e.prototype._renderBackground=function(t,e,n,r,i,o){var a,s,l=t.backgroundColor,u=t.borderWidth,c=t.borderColor,h=l&&l.image,d=l&&!h,p=t.borderRadius,f=this;if(d||t.lineHeight||u&&c){a=this._getOrCreateChild(Ac),a.useStyle(a.createStyle()),a.style.fill=null;var g=a.shape;g.x=n,g.y=r,g.width=i,g.height=o,g.r=p,a.dirtyShape()}if(d){var v=a.style;v.fill=l||null,v.fillOpacity=Jt(t.fillOpacity,1)}else if(h){s=this._getOrCreateChild(vc),s.onload=function(){f.dirtyStyle()};var m=s.style;m.image=l.image,m.x=n,m.y=r,m.width=i,m.height=o}if(u&&c){v=a.style;v.lineWidth=u,v.stroke=c,v.strokeOpacity=Jt(t.strokeOpacity,1),v.lineDash=t.borderDash,v.lineDashOffset=t.borderDashOffset||0,a.strokeContainThreshold=0,a.hasFill()&&a.hasStroke()&&(v.strokeFirst=!0,v.lineWidth*=2)}var y=(a||s).style;y.shadowBlur=t.shadowBlur||0,y.shadowColor=t.shadowColor||"transparent",y.shadowOffsetX=t.shadowOffsetX||0,y.shadowOffsetY=t.shadowOffsetY||0,y.opacity=te(t.opacity,e.opacity,1)},e.makeFont=function(t){var e="";return Dc(t)&&(e=[t.fontStyle,t.fontWeight,Ec(t.fontSize),t.fontFamily||"sans-serif"].join(" ")),e&&ie(e)||t.textFont||t.font},e}(eu),Pc={left:!0,right:1,center:1},Ic={top:1,bottom:1,middle:1},$c=["fontStyle","fontWeight","fontSize","fontFamily"];function Ec(t){return"string"!==typeof t||-1===t.indexOf("px")&&-1===t.indexOf("rem")&&-1===t.indexOf("em")?isNaN(+t)?Y+"px":t+"px":t}function Rc(t,e){for(var n=0;n<$c.length;n++){var r=$c[n],i=e[r];null!=i&&(t[r]=i)}}function Dc(t){return null!=t.fontSize||t.fontFamily||t.fontWeight}function Lc(t){return Nc(t),Pt(t.rich,Nc),t}function Nc(t){if(t){t.font=Tc.makeFont(t);var e=t.align;"middle"===e&&(e="center"),t.align=null==e||Pc[e]?e:"left";var n=t.verticalAlign;"center"===n&&(n="middle"),t.verticalAlign=null==n||Ic[n]?n:"top";var r=t.padding;r&&(t.padding=ne(t.padding))}}function zc(t,e){return null==t||e<=0||"transparent"===t||"none"===t?null:t.image||t.colorStops?"#000":t}function Bc(t){return null==t||"none"===t?null:t.image||t.colorStops?"#000":t}function Fc(t,e,n){return"right"===e?t-n[1]:"center"===e?t+n[3]/2-n[1]/2:t+n[3]}function Wc(t){var e=t.text;return null!=e&&(e+=""),e}function jc(t){return!!(t.backgroundColor||t.lineHeight||t.borderWidth&&t.borderColor)}var Vc=Tc,Qc=Ys(),Hc=function(t,e,n,r){if(r){var i=Qc(r);i.dataIndex=n,i.dataType=e,i.seriesIndex=t,i.ssrType="chart","group"===r.type&&r.traverse((function(r){var i=Qc(r);i.seriesIndex=t,i.dataIndex=n,i.dataType=e,i.ssrType="chart"}))}},Zc=1,Gc={},Xc=Ys(),Uc=Ys(),Yc=0,qc=1,Kc=2,Jc=["emphasis","blur","select"],th=["normal","emphasis","blur","select"],eh=10,nh=9,rh="highlight",ih="downplay",oh="select",ah="unselect",sh="toggleSelect";function lh(t){return null!=t&&"none"!==t}function uh(t,e,n){t.onHoverStateChange&&(t.hoverState||0)!==n&&t.onHoverStateChange(e),t.hoverState=n}function ch(t){uh(t,"emphasis",Kc)}function hh(t){t.hoverState===Kc&&uh(t,"normal",Yc)}function dh(t){uh(t,"blur",qc)}function ph(t){t.hoverState===qc&&uh(t,"normal",Yc)}function fh(t){t.selected=!0}function gh(t){t.selected=!1}function vh(t,e,n){e(t,n)}function mh(t,e,n){vh(t,e,n),t.isGroup&&t.traverse((function(t){vh(t,e,n)}))}function yh(t,e){switch(e){case"emphasis":t.hoverState=Kc;break;case"normal":t.hoverState=Yc;break;case"blur":t.hoverState=qc;break;case"select":t.selected=!0}}function bh(t,e,n,r){for(var i=t.style,o={},a=0;a<e.length;a++){var s=e[a],l=i[s];o[s]=null==l?r&&r[s]:l}for(a=0;a<t.animators.length;a++){var u=t.animators[a];u.__fromStateTransition&&u.__fromStateTransition.indexOf(n)<0&&"style"===u.targetName&&u.saveTo(o,e)}return o}function _h(t,e,n,r){var i=n&&kt(n,"select")>=0,o=!1;if(t instanceof lc){var a=Xc(t),s=i&&a.selectFill||a.normalFill,l=i&&a.selectStroke||a.normalStroke;if(lh(s)||lh(l)){r=r||{};var u=r.style||{};"inherit"===u.fill?(o=!0,r=Ot({},r),u=Ot({},u),u.fill=s):!lh(u.fill)&&lh(s)?(o=!0,r=Ot({},r),u=Ot({},u),u.fill=Ei(s)):!lh(u.stroke)&&lh(l)&&(o||(r=Ot({},r),u=Ot({},u)),u.stroke=Ei(l)),r.style=u}}if(r&&null==r.z2){o||(r=Ot({},r));var c=t.z2EmphasisLift;r.z2=t.z2+(null!=c?c:eh)}return r}function xh(t,e,n){if(n&&null==n.z2){n=Ot({},n);var r=t.z2SelectLift;n.z2=t.z2+(null!=r?r:nh)}return n}function wh(t,e,n){var r=kt(t.currentStates,e)>=0,i=t.style.opacity,o=r?null:bh(t,["opacity"],e,{opacity:1});n=n||{};var a=n.style||{};return null==a.opacity&&(n=Ot({},n),a=Ot({opacity:r?i:.1*o.opacity},a),n.style=a),n}function Oh(t,e){var n=this.states[t];if(this.style){if("emphasis"===t)return _h(this,t,e,n);if("blur"===t)return wh(this,t,n);if("select"===t)return xh(this,t,n)}return n}function Sh(t){t.stateProxy=Oh;var e=t.getTextContent(),n=t.getTextGuideLine();e&&(e.stateProxy=Oh),n&&(n.stateProxy=Oh)}function Ah(t,e){!Eh(t,e)&&!t.__highByOuter&&mh(t,ch)}function kh(t,e){!Eh(t,e)&&!t.__highByOuter&&mh(t,hh)}function Ch(t,e){t.__highByOuter|=1<<(e||0),mh(t,ch)}function Mh(t,e){!(t.__highByOuter&=~(1<<(e||0)))&&mh(t,hh)}function Th(t){mh(t,dh)}function Ph(t){mh(t,ph)}function Ih(t){mh(t,fh)}function $h(t){mh(t,gh)}function Eh(t,e){return t.__highDownSilentOnTouch&&e.zrByTouch}function Rh(t){var e=t.getModel(),n=[],r=[];e.eachComponent((function(e,i){var o=Uc(i),a="series"===e,s=a?t.getViewOfSeriesModel(i):t.getViewOfComponentModel(i);!a&&r.push(s),o.isBlured&&(s.group.traverse((function(t){ph(t)})),a&&n.push(i)),o.isBlured=!1})),Pt(r,(function(t){t&&t.toggleBlurSeries&&t.toggleBlurSeries(n,!1,e)}))}function Dh(t,e,n,r){var i=r.getModel();function o(t,e){for(var n=0;n<e.length;n++){var r=t.getItemGraphicEl(e[n]);r&&Ph(r)}}if(n=n||"coordinateSystem",null!=t&&e&&"none"!==e){var a=i.getSeriesByIndex(t),s=a.coordinateSystem;s&&s.master&&(s=s.master);var l=[];i.eachSeries((function(t){var i=a===t,u=t.coordinateSystem;u&&u.master&&(u=u.master);var c=u&&s?u===s:i;if(!("series"===n&&!i||"coordinateSystem"===n&&!c||"series"===e&&i)){var h=r.getViewOfSeriesModel(t);if(h.group.traverse((function(t){t.__highByOuter&&i&&"self"===e||dh(t)})),Tt(e))o(t.getData(),e);else if(Qt(e))for(var d=Dt(e),p=0;p<d.length;p++)o(t.getData(d[p]),e[d[p]]);l.push(t),Uc(t).isBlured=!0}})),i.eachComponent((function(t,e){if("series"!==t){var n=r.getViewOfComponentModel(e);n&&n.toggleBlurSeries&&n.toggleBlurSeries(l,!0,i)}}))}}function Lh(t,e,n){if(null!=t&&null!=e){var r=n.getModel().getComponent(t,e);if(r){Uc(r).isBlured=!0;var i=n.getViewOfComponentModel(r);i&&i.focusBlurEnabled&&i.group.traverse((function(t){dh(t)}))}}}function Nh(t,e,n){var r=t.seriesIndex,i=t.getData(e.dataType);if(i){var o=Us(i,e);o=(Bt(o)?o[0]:o)||0;var a=i.getItemGraphicEl(o);if(!a){var s=i.count(),l=0;while(!a&&l<s)a=i.getItemGraphicEl(l++)}if(a){var u=Qc(a);Dh(r,u.focus,u.blurScope,n)}else{var c=t.get(["emphasis","focus"]),h=t.get(["emphasis","blurScope"]);null!=c&&Dh(r,c,h,n)}}}function zh(t,e,n,r){var i={focusSelf:!1,dispatchers:null};if(null==t||"series"===t||null==e||null==n)return i;var o=r.getModel().getComponent(t,e);if(!o)return i;var a=r.getViewOfComponentModel(o);if(!a||!a.findHighDownDispatchers)return i;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 Bh(t,e,n){var r=Qc(t),i=zh(r.componentMainType,r.componentIndex,r.componentHighDownName,n),o=i.dispatchers,a=i.focusSelf;o?(a&&Lh(r.componentMainType,r.componentIndex,n),Pt(o,(function(t){return Ah(t,e)}))):(Dh(r.seriesIndex,r.focus,r.blurScope,n),"self"===r.focus&&Lh(r.componentMainType,r.componentIndex,n),Ah(t,e))}function Fh(t,e,n){Rh(n);var r=Qc(t),i=zh(r.componentMainType,r.componentIndex,r.componentHighDownName,n).dispatchers;i?Pt(i,(function(t){return kh(t,e)})):kh(t,e)}function Wh(t,e,n){if(ed(e)){var r=e.dataType,i=t.getData(r),o=Us(i,e);Bt(o)||(o=[o]),t[e.type===sh?"toggleSelect":e.type===oh?"select":"unselect"](o,r)}}function jh(t){var e=t.getAllData();Pt(e,(function(e){var n=e.data,r=e.type;n.eachItemGraphicEl((function(e,n){t.isSelected(n,r)?Ih(e):$h(e)}))}))}function Vh(t){var e=[];return t.eachSeries((function(t){var n=t.getAllData();Pt(n,(function(n){n.data;var r=n.type,i=t.getSelectedDataIndices();if(i.length>0){var o={dataIndex:i,seriesIndex:t.seriesIndex};null!=r&&(o.dataType=r),e.push(o)}}))})),e}function Qh(t,e,n){qh(t,!0),mh(t,Sh),Gh(t,e,n)}function Hh(t){qh(t,!1)}function Zh(t,e,n,r){r?Hh(t):Qh(t,e,n)}function Gh(t,e,n){var r=Qc(t);null!=e?(r.focus=e,r.blurScope=n):r.focus&&(r.focus=null)}var Xh=["emphasis","blur","select"],Uh={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function Yh(t,e,n,r){n=n||"itemStyle";for(var i=0;i<Xh.length;i++){var o=Xh[i],a=e.getModel([o,n]),s=t.ensureState(o);s.style=r?r(a):a[Uh[n]]()}}function qh(t,e){var n=!1===e,r=t;t.highDownSilentOnTouch&&(r.__highDownSilentOnTouch=t.highDownSilentOnTouch),n&&!r.__highDownDispatcher||(r.__highByOuter=r.__highByOuter||0,r.__highDownDispatcher=!n)}function Kh(t){return!(!t||!t.__highDownDispatcher)}function Jh(t,e,n){var r=Qc(t);r.componentMainType=e.mainType,r.componentIndex=e.componentIndex,r.componentHighDownName=n}function td(t){var e=Gc[t];return null==e&&Zc<=32&&(e=Gc[t]=Zc++),e}function ed(t){var e=t.type;return e===oh||e===ah||e===sh}function nd(t){var e=t.type;return e===rh||e===ih}function rd(t){var e=Xc(t);e.normalFill=t.style.fill,e.normalStroke=t.style.stroke;var n=t.states.select||{};e.selectFill=n.style&&n.style.fill||null,e.selectStroke=n.style&&n.style.stroke||null}var id=Ys();function od(t,e,n,r,i){var o;if(e&&e.ecModel){var a=e.ecModel.getUpdatePayload();o=a&&a.animation}var s=e&&e.isAnimationEnabled(),l="update"===t;if(s){var u=void 0,c=void 0,h=void 0;r?(u=Jt(r.duration,200),c=Jt(r.easing,"cubicOut"),h=0):(u=e.getShallow(l?"animationDurationUpdate":"animationDuration"),c=e.getShallow(l?"animationEasingUpdate":"animationEasing"),h=e.getShallow(l?"animationDelayUpdate":"animationDelay")),o&&(null!=o.duration&&(u=o.duration),null!=o.easing&&(c=o.easing),null!=o.delay&&(h=o.delay)),Ft(h)&&(h=h(n,i)),Ft(u)&&(u=u(n));var d={duration:u||0,delay:h,easing:c};return d}return null}function ad(t,e,n,r,i,o,a){var s,l=!1;Ft(i)?(a=o,o=i,i=null):Qt(i)&&(o=i.cb,a=i.during,l=i.isFrom,s=i.removeOpt,i=i.dataIndex);var u="leave"===t;u||e.stopAnimation("leave");var c=od(t,r,i,u?s||{}:null,r&&r.getAnimationDelayParams?r.getAnimationDelayParams(e,i):null);if(c&&c.duration>0){var h=c.duration,d=c.delay,p=c.easing,f={duration:h,delay:d||0,easing:p,done:o,force:!!o||!!a,setToFinal:!u,scope:t,during:a};l?e.animateFrom(n,f):e.animateTo(n,f)}else e.stopAnimation(),!l&&e.attr(n),a&&a(1),o&&o()}function sd(t,e,n,r,i,o){ad("update",t,e,n,r,i,o)}function ld(t,e,n,r,i,o){ad("enter",t,e,n,r,i,o)}function ud(t){if(!t.__zr)return!0;for(var e=0;e<t.animators.length;e++){var n=t.animators[e];if("leave"===n.scope)return!0}return!1}function cd(t,e,n,r,i,o){ud(t)||ad("leave",t,e,n,r,i,o)}function hd(t,e,n,r){t.removeTextContent(),t.removeTextGuideLine(),cd(t,{style:{opacity:0}},e,n,r)}function dd(t,e,n){function r(){t.parent&&t.parent.remove(t)}t.isGroup?t.traverse((function(t){t.isGroup||hd(t,e,n,r)})):hd(t,e,n,r)}function pd(t){id(t).oldStyle=t.style}function fd(t){return id(t).oldStyle}var gd={};function vd(t,e){for(var n=0;n<Jc.length;n++){var r=Jc[n],i=e[r],o=t.ensureState(r);o.style=o.style||{},o.style.text=i}var a=t.currentStates.slice();t.clearStates(!0),t.setStyle({text:e.normal}),t.useStates(a,!0)}function md(t,e,n){var r,i=t.labelFetcher,o=t.labelDataIndex,a=t.labelDimIndex,s=e.normal;i&&(r=i.getFormattedLabel(o,"normal",null,a,s&&s.get("formatter"),null!=n?{interpolatedValue:n}:null)),null==r&&(r=Ft(t.defaultText)?t.defaultText(o,t,n):t.defaultText);for(var l={normal:r},u=0;u<Jc.length;u++){var c=Jc[u],h=e[c];l[c]=Jt(i?i.getFormattedLabel(o,c,null,a,h&&h.get("formatter")):null,r)}return l}function yd(t,e,n,r){n=n||gd;for(var i=t instanceof Vc,o=!1,a=0;a<th.length;a++){var s=e[th[a]];if(s&&s.getShallow("show")){o=!0;break}}var l=i?t:t.getTextContent();if(o){i||(l||(l=new Vc,t.setTextContent(l)),t.stateProxy&&(l.stateProxy=t.stateProxy));var u=md(n,e),c=e.normal,h=!!c.getShallow("show"),d=_d(c,r&&r.normal,n,!1,!i);d.text=u.normal,i||t.setTextConfig(xd(c,n,!1));for(a=0;a<Jc.length;a++){var p=Jc[a];s=e[p];if(s){var f=l.ensureState(p),g=!!Jt(s.getShallow("show"),h);if(g!==h&&(f.ignore=!g),f.style=_d(s,r&&r[p],n,!0,!i),f.style.text=u[p],!i){var v=t.ensureState(p);v.textConfig=xd(s,n,!0)}}}l.silent=!!c.getShallow("silent"),null!=l.style.x&&(d.x=l.style.x),null!=l.style.y&&(d.y=l.style.y),l.ignore=!h,l.useStyle(d),l.dirty(),n.enableTextSetter&&(Td(l).setLabelText=function(t){var r=md(n,e,t);vd(l,r)})}else l&&(l.ignore=!0);t.dirty()}function bd(t,e){e=e||"label";for(var n={normal:t.getModel(e)},r=0;r<Jc.length;r++){var i=Jc[r];n[i]=t.getModel([i,e])}return n}function _d(t,e,n,r,i){var o={};return wd(o,t,n,r,i),e&&Ot(o,e),o}function xd(t,e,n){e=e||{};var r,i={},o=t.getShallow("rotate"),a=Jt(t.getShallow("distance"),n?null:5),s=t.getShallow("offset");return r=t.getShallow("position")||(n?null:"inside"),"outside"===r&&(r=e.defaultOutsidePosition||"top"),null!=r&&(i.position=r),null!=s&&(i.offset=s),null!=o&&(o*=Math.PI/180,i.rotation=o),null!=a&&(i.distance=a),i.outsideFill="inherit"===t.get("color")?e.inheritColor||null:"auto",i}function wd(t,e,n,r,i){n=n||gd;var o,a=e.ecModel,s=a&&a.option.textStyle,l=Od(e);if(l)for(var u in o={},l)if(l.hasOwnProperty(u)){var c=e.getModel(["rich",u]);Cd(o[u]={},c,s,n,r,i,!1,!0)}o&&(t.rich=o);var h=e.get("overflow");h&&(t.overflow=h);var d=e.get("minMargin");null!=d&&(t.margin=d),Cd(t,e,s,n,r,i,!0,!1)}function Od(t){var e;while(t&&t!==t.ecModel){var n=(t.option||gd).rich;if(n){e=e||{};for(var r=Dt(n),i=0;i<r.length;i++){var o=r[i];e[o]=1}}t=t.parentModel}return e}var Sd=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],Ad=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],kd=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function Cd(t,e,n,r,i,o,a,s){n=!i&&n||gd;var l=r&&r.inheritColor,u=e.getShallow("color"),c=e.getShallow("textBorderColor"),h=Jt(e.getShallow("opacity"),n.opacity);"inherit"!==u&&"auto"!==u||(u=l||null),"inherit"!==c&&"auto"!==c||(c=l||null),o||(u=u||n.color,c=c||n.textBorderColor),null!=u&&(t.fill=u),null!=c&&(t.stroke=c);var d=Jt(e.getShallow("textBorderWidth"),n.textBorderWidth);null!=d&&(t.lineWidth=d);var p=Jt(e.getShallow("textBorderType"),n.textBorderType);null!=p&&(t.lineDash=p);var f=Jt(e.getShallow("textBorderDashOffset"),n.textBorderDashOffset);null!=f&&(t.lineDashOffset=f),i||null!=h||s||(h=r&&r.defaultOpacity),null!=h&&(t.opacity=h),i||o||null==t.fill&&r.inheritColor&&(t.fill=r.inheritColor);for(var g=0;g<Sd.length;g++){var v=Sd[g],m=Jt(e.getShallow(v),n[v]);null!=m&&(t[v]=m)}for(g=0;g<Ad.length;g++){v=Ad[g],m=e.getShallow(v);null!=m&&(t[v]=m)}if(null==t.verticalAlign){var y=e.getShallow("baseline");null!=y&&(t.verticalAlign=y)}if(!a||!r.disableBox){for(g=0;g<kd.length;g++){v=kd[g],m=e.getShallow(v);null!=m&&(t[v]=m)}var b=e.getShallow("borderType");null!=b&&(t.borderDash=b),"auto"!==t.backgroundColor&&"inherit"!==t.backgroundColor||!l||(t.backgroundColor=l),"auto"!==t.borderColor&&"inherit"!==t.borderColor||!l||(t.borderColor=l)}}function Md(t,e){var n=e&&e.getModel("textStyle");return ie([t.fontStyle||n&&n.getShallow("fontStyle")||"",t.fontWeight||n&&n.getShallow("fontWeight")||"",(t.fontSize||n&&n.getShallow("fontSize")||12)+"px",t.fontFamily||n&&n.getShallow("fontFamily")||"sans-serif"].join(" "))}var Td=Ys();function Pd(t,e,n,r){if(t){var i=Td(t);i.prevValue=i.value,i.value=n;var o=e.normal;i.valueAnimation=o.get("valueAnimation"),i.valueAnimation&&(i.precision=o.get("precision"),i.defaultInterpolatedText=r,i.statesModels=e)}}function Id(t,e,n,r,i){var o=Td(t);if(o.valueAnimation&&o.prevValue!==o.value){var a=o.defaultInterpolatedText,s=Jt(o.interpolatedValue,o.prevValue),l=o.value;t.percent=0,(null==o.prevValue?ld:sd)(t,{percent:1},r,e,null,u)}function u(r){var u=sl(n,o.precision,s,l,r);o.interpolatedValue=1===r?null:u;var c=md({labelDataIndex:e,labelFetcher:i,defaultText:a?a(u):u+""},o.statesModels,u);vd(t,c)}}var $d=["textStyle","color"],Ed=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],Rd=new Vc,Dd=function(){function t(){}return t.prototype.getTextColor=function(t){var e=this.ecModel;return this.getShallow("color")||(!t&&e?e.get($d):null)},t.prototype.getFont=function(){return Md({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},t.prototype.getTextRect=function(t){for(var e={text:t,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},n=0;n<Ed.length;n++)e[Ed[n]]=this.getShallow(Ed[n]);return Rd.useStyle(e),Rd.update(),Rd.getBoundingRect()},t}(),Ld=Dd,Nd=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],zd=wl(Nd),Bd=function(){function t(){}return t.prototype.getLineStyle=function(t){return zd(this,t)},t}(),Fd=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],Wd=wl(Fd),jd=function(){function t(){}return t.prototype.getItemStyle=function(t,e){return Wd(this,t,e)},t}(),Vd=function(){function t(t,e,n){this.parentModel=e,this.ecModel=n,this.option=t}return t.prototype.init=function(t,e,n){for(var r=[],i=3;i<arguments.length;i++)r[i-3]=arguments[i]},t.prototype.mergeOption=function(t,e){xt(this.option,t,!0)},t.prototype.get=function(t,e){return null==t?this.option:this._doGet(this.parsePath(t),!e&&this.parentModel)},t.prototype.getShallow=function(t,e){var n=this.option,r=null==n?n:n[t];if(null==r&&!e){var i=this.parentModel;i&&(r=i.getShallow(t))}return r},t.prototype.getModel=function(e,n){var r=null!=e,i=r?this.parsePath(e):null,o=r?this._doGet(i):this.option;return n=n||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(i)),new t(o,n,this.ecModel)},t.prototype.isEmpty=function(){return null==this.option},t.prototype.restoreData=function(){},t.prototype.clone=function(){var t=this.constructor;return new t(_t(this.option))},t.prototype.parsePath=function(t){return"string"===typeof t?t.split("."):t},t.prototype.resolveParentPath=function(t){return t},t.prototype.isAnimationEnabled=function(){if(!U.node&&this.option){if(null!=this.option.animation)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},t.prototype._doGet=function(t,e){var n=this.option;if(!t)return n;for(var r=0;r<t.length;r++)if(t[r]&&(n=n&&"object"===typeof n?n[t[r]]:null,null==n))break;return null==n&&e&&(n=e._doGet(this.resolveParentPath(t),e.parentModel)),n},t}();fl(Vd),yl(Vd),Mt(Vd,Bd),Mt(Vd,jd),Mt(Vd,Al),Mt(Vd,Ld);var Qd=Vd,Hd=Math.round(10*Math.random());function Zd(t){return[t||"",Hd++].join("_")}function Gd(t){var e={};t.registerSubTypeDefaulter=function(t,n){var r=hl(t);e[r.main]=n},t.determineSubType=function(n,r){var i=r.type;if(!i){var o=hl(n).main;t.hasSubTypes(n)&&e[o]&&(i=e[o](r))}return i}}function Xd(t,e){function n(t){var n={},o=[];return Pt(t,(function(a){var s=r(n,a),l=s.originalDeps=e(a),u=i(l,t);s.entryCount=u.length,0===s.entryCount&&o.push(a),Pt(u,(function(t){kt(s.predecessor,t)<0&&s.predecessor.push(t);var e=r(n,t);kt(e.successor,t)<0&&e.successor.push(a)}))})),{graph:n,noEntryList:o}}function r(t,e){return t[e]||(t[e]={predecessor:[],successor:[]}),t[e]}function i(t,e){var n=[];return Pt(t,(function(t){kt(e,t)>=0&&n.push(t)})),n}t.topologicalTravel=function(t,e,r,i){if(t.length){var o=n(e),a=o.graph,s=o.noEntryList,l={};Pt(t,(function(t){l[t]=!0}));while(s.length){var u=s.pop(),c=a[u],h=!!l[u];h&&(r.call(i,u,c.originalDeps.slice()),delete l[u]),Pt(c.successor,h?p:d)}Pt(l,(function(){var t="";throw new Error(t)}))}function d(t){a[t].entryCount--,0===a[t].entryCount&&s.push(t)}function p(t){l[t]=!0,d(t)}}}function Ud(t,e){return xt(xt({},t,!0),e,!0)}var Yd={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:". "}}}},qd={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:""}}}},Kd="ZH",Jd="EN",tp=Jd,ep={},np={},rp=U.domSupported?function(){var t=(document.documentElement.lang||navigator.language||navigator.browserLanguage||tp).toUpperCase();return t.indexOf(Kd)>-1?Kd:tp}():tp;function ip(t,e){t=t.toUpperCase(),np[t]=new Qd(e),ep[t]=e}function op(t){if(Wt(t)){var e=ep[t.toUpperCase()]||{};return t===Kd||t===Jd?_t(e):xt(_t(e),_t(ep[tp]),!1)}return xt(_t(t),_t(ep[tp]),!1)}function ap(t){return np[t]}function sp(){return np[tp]}ip(Jd,Yd),ip(Kd,qd);var lp=1e3,up=60*lp,cp=60*up,hp=24*cp,dp=365*hp,pp={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}"},fp="{yyyy}-{MM}-{dd}",gp={year:"{yyyy}",month:"{yyyy}-{MM}",day:fp,hour:fp+" "+pp.hour,minute:fp+" "+pp.minute,second:fp+" "+pp.second,millisecond:pp.none},vp=["year","month","day","hour","minute","second","millisecond"],mp=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function yp(t,e){return t+="","0000".substr(0,e-t.length)+t}function bp(t){switch(t){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return t}}function _p(t){return t===bp(t)}function xp(t){switch(t){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function wp(t,e,n,r){var i=fs(t),o=i[kp(n)](),a=i[Cp(n)]()+1,s=Math.floor((a-1)/3)+1,l=i[Mp(n)](),u=i["get"+(n?"UTC":"")+"Day"](),c=i[Tp(n)](),h=(c-1)%12+1,d=i[Pp(n)](),p=i[Ip(n)](),f=i[$p(n)](),g=c>=12?"pm":"am",v=g.toUpperCase(),m=r instanceof Qd?r:ap(r||rp)||sp(),y=m.getModel("time"),b=y.get("month"),_=y.get("monthAbbr"),x=y.get("dayOfWeek"),w=y.get("dayOfWeekAbbr");return(e||"").replace(/{a}/g,g+"").replace(/{A}/g,v+"").replace(/{yyyy}/g,o+"").replace(/{yy}/g,yp(o%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,b[a-1]).replace(/{MMM}/g,_[a-1]).replace(/{MM}/g,yp(a,2)).replace(/{M}/g,a+"").replace(/{dd}/g,yp(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,x[u]).replace(/{ee}/g,w[u]).replace(/{e}/g,u+"").replace(/{HH}/g,yp(c,2)).replace(/{H}/g,c+"").replace(/{hh}/g,yp(h+"",2)).replace(/{h}/g,h+"").replace(/{mm}/g,yp(d,2)).replace(/{m}/g,d+"").replace(/{ss}/g,yp(p,2)).replace(/{s}/g,p+"").replace(/{SSS}/g,yp(f,3)).replace(/{S}/g,f+"")}function Op(t,e,n,r,i){var o=null;if(Wt(n))o=n;else if(Ft(n))o=n(t.value,e,{level:t.level});else{var a=Ot({},pp);if(t.level>0)for(var s=0;s<vp.length;++s)a[vp[s]]="{primary|"+a[vp[s]]+"}";var l=n?!1===n.inherit?n:St(n,a):a,u=Sp(t.value,i);if(l[u])o=l[u];else if(l.inherit){var c=mp.indexOf(u);for(s=c-1;s>=0;--s)if(l[u]){o=l[u];break}o=o||a.none}if(Bt(o)){var h=null==t.level?0:t.level>=0?t.level:o.length+t.level;h=Math.min(h,o.length-1),o=o[h]}}return wp(new Date(t.value),o,i,r)}function Sp(t,e){var n=fs(t),r=n[Cp(e)]()+1,i=n[Mp(e)](),o=n[Tp(e)](),a=n[Pp(e)](),s=n[Ip(e)](),l=n[$p(e)](),u=0===l,c=u&&0===s,h=c&&0===a,d=h&&0===o,p=d&&1===i,f=p&&1===r;return f?"year":p?"month":d?"day":h?"hour":c?"minute":u?"second":"millisecond"}function Ap(t,e,n){var r=Vt(t)?fs(t):t;switch(e=e||Sp(t,n),e){case"year":return r[kp(n)]();case"half-year":return r[Cp(n)]()>=6?1:0;case"quarter":return Math.floor((r[Cp(n)]()+1)/4);case"month":return r[Cp(n)]();case"day":return r[Mp(n)]();case"half-day":return r[Tp(n)]()/24;case"hour":return r[Tp(n)]();case"minute":return r[Pp(n)]();case"second":return r[Ip(n)]();case"millisecond":return r[$p(n)]()}}function kp(t){return t?"getUTCFullYear":"getFullYear"}function Cp(t){return t?"getUTCMonth":"getMonth"}function Mp(t){return t?"getUTCDate":"getDate"}function Tp(t){return t?"getUTCHours":"getHours"}function Pp(t){return t?"getUTCMinutes":"getMinutes"}function Ip(t){return t?"getUTCSeconds":"getSeconds"}function $p(t){return t?"getUTCMilliseconds":"getMilliseconds"}function Ep(t){return t?"setUTCFullYear":"setFullYear"}function Rp(t){return t?"setUTCMonth":"setMonth"}function Dp(t){return t?"setUTCDate":"setDate"}function Lp(t){return t?"setUTCHours":"setHours"}function Np(t){return t?"setUTCMinutes":"setMinutes"}function zp(t){return t?"setUTCSeconds":"setSeconds"}function Bp(t){return t?"setUTCMilliseconds":"setMilliseconds"}function Fp(t){if(!xs(t))return Wt(t)?t:"-";var e=(t+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}function Wp(t,e){return t=(t||"").toLowerCase().replace(/-(.)/g,(function(t,e){return e.toUpperCase()})),e&&t&&(t=t.charAt(0).toUpperCase()+t.slice(1)),t}var jp=ne;function Vp(t,e,n){var r="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function i(t){return t&&ie(t)?t:"-"}function o(t){return!(null==t||isNaN(t)||!isFinite(t))}var a="time"===e,s=t instanceof Date;if(a||s){var l=a?fs(t):t;if(!isNaN(+l))return wp(l,r,n);if(s)return"-"}if("ordinal"===e)return jt(t)?i(t):Vt(t)&&o(t)?t+"":"-";var u=_s(t);return o(u)?Fp(u):jt(t)?i(t):"boolean"===typeof t?t+"":"-"}var Qp=["a","b","c","d","e","f","g"],Hp=function(t,e){return"{"+t+(null==e?"":e)+"}"};function Zp(t,e,n){Bt(e)||(e=[e]);var r=e.length;if(!r)return"";for(var i=e[0].$vars||[],o=0;o<i.length;o++){var a=Qp[o];t=t.replace(Hp(a),Hp(a,0))}for(var s=0;s<r;s++)for(var l=0;l<i.length;l++){var u=e[s][i[l]];t=t.replace(Hp(Qp[l],s),n?ln(u):u)}return t}function Gp(t,e,n){return Pt(e,(function(e,r){t=t.replace("{"+r+"}",n?ln(e):e)})),t}function Xp(t,e){var n=Wt(t)?{color:t,extraCssText:e}:t||{},r=n.color,i=n.type;e=n.extraCssText;var o=n.renderMode||"html";if(!r)return"";if("html"===o)return"subItem"===i?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+ln(r)+";"+(e||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+ln(r)+";"+(e||"")+'"></span>';var a=n.markerId||"markerX";return{renderMode:o,content:"{"+a+"|} ",style:"subItem"===i?{width:4,height:4,borderRadius:2,backgroundColor:r}:{width:10,height:10,borderRadius:5,backgroundColor:r}}}function Up(t,e,n){"week"!==t&&"month"!==t&&"quarter"!==t&&"half-year"!==t&&"year"!==t||(t="MM-dd\nyyyy");var r=fs(e),i=n?"getUTC":"get",o=r[i+"FullYear"](),a=r[i+"Month"]()+1,s=r[i+"Date"](),l=r[i+"Hours"](),u=r[i+"Minutes"](),c=r[i+"Seconds"](),h=r[i+"Milliseconds"]();return t=t.replace("MM",yp(a,2)).replace("M",a).replace("yyyy",o).replace("yy",yp(o%100+"",2)).replace("dd",yp(s,2)).replace("d",s).replace("hh",yp(l,2)).replace("h",l).replace("mm",yp(u,2)).replace("m",u).replace("ss",yp(c,2)).replace("s",c).replace("SSS",yp(h,3)),t}function Yp(t){return t?t.charAt(0).toUpperCase()+t.substr(1):t}function qp(t,e){return e=e||"transparent",Wt(t)?t:Qt(t)&&t.colorStops&&(t.colorStops[0]||{}).color||e}function Kp(t,e){if("_blank"===e||"blank"===e){var n=window.open();n.opener=null,n.location.href=t}else window.open(t,e)}var Jp=Pt,tf=["left","right","top","bottom","width","height"],ef=[["width","left","right"],["height","top","bottom"]];function nf(t,e,n,r,i){var o=0,a=0;null==r&&(r=1/0),null==i&&(i=1/0);var s=0;e.eachChild((function(l,u){var c,h,d=l.getBoundingRect(),p=e.childAt(u+1),f=p&&p.getBoundingRect();if("horizontal"===t){var g=d.width+(f?-f.x+d.x:0);c=o+g,c>r||l.newline?(o=0,c=g,a+=s+n,s=d.height):s=Math.max(s,d.height)}else{var v=d.height+(f?-f.y+d.y:0);h=a+v,h>i||l.newline?(o+=s+n,a=0,h=v,s=d.width):s=Math.max(s,d.width)}l.newline||(l.x=o,l.y=a,l.markRedraw(),"horizontal"===t?o=c+n:a=h+n)}))}var rf=nf;zt(nf,"vertical"),zt(nf,"horizontal");function of(t,e,n){var r=e.width,i=e.height,o=es(t.left,r),a=es(t.top,i),s=es(t.right,r),l=es(t.bottom,i);return(isNaN(o)||isNaN(parseFloat(t.left)))&&(o=0),(isNaN(s)||isNaN(parseFloat(t.right)))&&(s=r),(isNaN(a)||isNaN(parseFloat(t.top)))&&(a=0),(isNaN(l)||isNaN(parseFloat(t.bottom)))&&(l=i),n=jp(n||0),{width:Math.max(s-o-n[1]-n[3],0),height:Math.max(l-a-n[0]-n[2],0)}}function af(t,e,n){n=jp(n||0);var r=e.width,i=e.height,o=es(t.left,r),a=es(t.top,i),s=es(t.right,r),l=es(t.bottom,i),u=es(t.width,r),c=es(t.height,i),h=n[2]+n[0],d=n[1]+n[3],p=t.aspect;switch(isNaN(u)&&(u=r-s-d-o),isNaN(c)&&(c=i-l-h-a),null!=p&&(isNaN(u)&&isNaN(c)&&(p>r/i?u=.8*r:c=.8*i),isNaN(u)&&(u=p*c),isNaN(c)&&(c=u/p)),isNaN(o)&&(o=r-s-u-d),isNaN(a)&&(a=i-l-c-h),t.left||t.right){case"center":o=r/2-u/2-n[3];break;case"right":o=r-u-d;break}switch(t.top||t.bottom){case"middle":case"center":a=i/2-c/2-n[0];break;case"bottom":a=i-c-h;break}o=o||0,a=a||0,isNaN(u)&&(u=r-d-o-(s||0)),isNaN(c)&&(c=i-h-a-(l||0));var f=new Hn(o+n[3],a+n[0],u,c);return f.margin=n,f}function sf(t,e,n,r,i,o){var a,s=!i||!i.hv||i.hv[0],l=!i||!i.hv||i.hv[1],u=i&&i.boundingMode||"all";if(o=o||t,o.x=t.x,o.y=t.y,!s&&!l)return!1;if("raw"===u)a="group"===t.type?new Hn(0,0,+e.width||0,+e.height||0):t.getBoundingRect();else if(a=t.getBoundingRect(),t.needLocalTransform()){var c=t.getLocalTransform();a=a.clone(),a.applyTransform(c)}var h=af(St({width:a.width,height:a.height},e),n,r),d=s?h.x-a.x:0,p=l?h.y-a.y:0;return"raw"===u?(o.x=d,o.y=p):(o.x+=d,o.y+=p),o===t&&t.markRedraw(),!0}function lf(t,e){return null!=t[ef[e][0]]||null!=t[ef[e][1]]&&null!=t[ef[e][2]]}function uf(t){var e=t.layoutMode||t.constructor.layoutMode;return Qt(e)?e:e?{type:e}:null}function cf(t,e,n){var r=n&&n.ignoreSize;!Bt(r)&&(r=[r,r]);var i=a(ef[0],0),o=a(ef[1],1);function a(n,i){var o={},a=0,u={},c=0,h=2;if(Jp(n,(function(e){u[e]=t[e]})),Jp(n,(function(t){s(e,t)&&(o[t]=u[t]=e[t]),l(o,t)&&a++,l(u,t)&&c++})),r[i])return l(e,n[1])?u[n[2]]=null:l(e,n[2])&&(u[n[1]]=null),u;if(c!==h&&a){if(a>=h)return o;for(var d=0;d<n.length;d++){var p=n[d];if(!s(o,p)&&s(t,p)){o[p]=t[p];break}}return o}return u}function s(t,e){return t.hasOwnProperty(e)}function l(t,e){return null!=t[e]&&"auto"!==t[e]}function u(t,e,n){Jp(t,(function(t){e[t]=n[t]}))}u(ef[0],t,i),u(ef[1],t,o)}function hf(t){return df({},t)}function df(t,e){return e&&t&&Jp(tf,(function(n){e.hasOwnProperty(n)&&(t[n]=e[n])})),t}var pf=Ys(),ff=function(t){function e(e,n,r){var i=t.call(this,e,n,r)||this;return i.uid=Zd("ec_cpt_model"),i}return Q(e,t),e.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n)},e.prototype.mergeDefaultAndTheme=function(t,e){var n=uf(this),r=n?hf(t):{},i=e.getTheme();xt(t,i.get(this.mainType)),xt(t,this.getDefaultOption()),n&&cf(t,r,n)},e.prototype.mergeOption=function(t,e){xt(this.option,t,!0);var n=uf(this);n&&cf(this.option,t,n)},e.prototype.optionUpdated=function(t,e){},e.prototype.getDefaultOption=function(){var t=this.constructor;if(!pl(t))return t.defaultOption;var e=pf(this);if(!e.defaultOption){var n=[],r=t;while(r){var i=r.prototype.defaultOption;i&&n.push(i),r=r.superClass}for(var o={},a=n.length-1;a>=0;a--)o=xt(o,n[a],!0);e.defaultOption=o}return e.defaultOption},e.prototype.getReferringComponents=function(t,e){var n=t+"Index",r=t+"Id";return nl(this.ecModel,t,{index:this.get(n,!0),id:this.get(r,!0)},e)},e.prototype.getBoxLayoutParams=function(){var t=this;return{left:t.get("left"),top:t.get("top"),right:t.get("right"),bottom:t.get("bottom"),width:t.get("width"),height:t.get("height")}},e.prototype.getZLevelKey=function(){return""},e.prototype.setZLevel=function(t){this.option.zlevel=t},e.protoInitialize=function(){var t=e.prototype;t.type="component",t.id="",t.name="",t.mainType="",t.subType="",t.componentIndex=0}(),e}(Qd);function gf(t){var e=[];return Pt(ff.getClassesByMainType(t),(function(t){e=e.concat(t.dependencies||t.prototype.dependencies||[])})),e=It(e,(function(t){return hl(t).main})),"dataset"!==t&&kt(e,"dataset")<=0&&e.unshift("dataset"),e}vl(ff,Qd),xl(ff),Gd(ff),Xd(ff,gf);var vf=ff,mf="";"undefined"!==typeof navigator&&(mf=navigator.platform||"");var yf="rgba(0, 0, 0, 0.2)",bf={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:yf,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:yf,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:yf,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:yf,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:yf,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:yf,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:mf.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},_f=de(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),xf="original",wf="arrayRows",Of="objectRows",Sf="keyedColumns",Af="typedArray",kf="unknown",Cf="column",Mf="row",Tf={Must:1,Might:2,Not:3},Pf=Ys();function If(t){Pf(t).datasetMap=de()}function $f(t,e,n){var r={},i=Rf(e);if(!i||!t)return r;var o,a,s=[],l=[],u=e.ecModel,c=Pf(u).datasetMap,h=i.uid+"_"+n.seriesLayoutBy;t=t.slice(),Pt(t,(function(e,n){var i=Qt(e)?e:t[n]={name:e};"ordinal"===i.type&&null==o&&(o=n,a=f(i)),r[i.name]=[]}));var d=c.get(h)||c.set(h,{categoryWayDim:a,valueWayDim:0});function p(t,e,n){for(var r=0;r<n;r++)t.push(e+r)}function f(t){var e=t.dimsDef;return e?e.length:1}return Pt(t,(function(t,e){var n=t.name,i=f(t);if(null==o){var a=d.valueWayDim;p(r[n],a,i),p(l,a,i),d.valueWayDim+=i}else if(o===e)p(r[n],0,i),p(s,0,i);else{a=d.categoryWayDim;p(r[n],a,i),p(l,a,i),d.categoryWayDim+=i}})),s.length&&(r.itemName=s),l.length&&(r.seriesName=l),r}function Ef(t,e,n){var r={},i=Rf(t);if(!i)return r;var o,a=e.sourceFormat,s=e.dimensionsDefine;a!==Of&&a!==Sf||Pt(s,(function(t,e){"name"===(Qt(t)?t.name:t)&&(o=e)}));var l=function(){for(var t={},r={},i=[],l=0,u=Math.min(5,n);l<u;l++){var c=Nf(e.data,a,e.seriesLayoutBy,s,e.startIndex,l);i.push(c);var h=c===Tf.Not;if(h&&null==t.v&&l!==o&&(t.v=l),(null==t.n||t.n===t.v||!h&&i[t.n]===Tf.Not)&&(t.n=l),d(t)&&i[t.n]!==Tf.Not)return t;h||(c===Tf.Might&&null==r.v&&l!==o&&(r.v=l),null!=r.n&&r.n!==r.v||(r.n=l))}function d(t){return null!=t.v&&null!=t.n}return d(t)?t:d(r)?r:null}();if(l){r.value=[l.v];var u=null!=o?o:l.n;r.itemName=[u],r.seriesName=[u]}return r}function Rf(t){var e=t.get("data",!0);if(!e)return nl(t.ecModel,"dataset",{index:t.get("datasetIndex",!0),id:t.get("datasetId",!0)},tl).models[0]}function Df(t){return t.get("transform",!0)||t.get("fromTransformResult",!0)?nl(t.ecModel,"dataset",{index:t.get("fromDatasetIndex",!0),id:t.get("fromDatasetId",!0)},tl).models:[]}function Lf(t,e){return Nf(t.data,t.sourceFormat,t.seriesLayoutBy,t.dimensionsDefine,t.startIndex,e)}function Nf(t,e,n,r,i,o){var a,s,l,u=5;if(Zt(t))return Tf.Not;if(r){var c=r[o];Qt(c)?(s=c.name,l=c.type):Wt(c)&&(s=c)}if(null!=l)return"ordinal"===l?Tf.Must:Tf.Not;if(e===wf){var h=t;if(n===Mf){for(var d=h[o],p=0;p<(d||[]).length&&p<u;p++)if(null!=(a=_(d[i+p])))return a}else for(p=0;p<h.length&&p<u;p++){var f=h[i+p];if(f&&null!=(a=_(f[o])))return a}}else if(e===Of){var g=t;if(!s)return Tf.Not;for(p=0;p<g.length&&p<u;p++){var v=g[p];if(v&&null!=(a=_(v[s])))return a}}else if(e===Sf){var m=t;if(!s)return Tf.Not;d=m[s];if(!d||Zt(d))return Tf.Not;for(p=0;p<d.length&&p<u;p++)if(null!=(a=_(d[p])))return a}else if(e===xf){var y=t;for(p=0;p<y.length&&p<u;p++){v=y[p];var b=Is(v);if(!Bt(b))return Tf.Not;if(null!=(a=_(b[o])))return a}}function _(t){var e=Wt(t);return null!=t&&Number.isFinite(Number(t))&&""!==t?e?Tf.Might:Tf.Not:e&&"-"!==t?Tf.Must:void 0}return Tf.Not}var zf=de();function Bf(t,e){re(null==zf.get(t)&&e),zf.set(t,e)}function Ff(t,e,n){var r=zf.get(e);if(!r)return n;var i=r(t);return i?n.concat(i):n}var Wf,jf,Vf,Qf=Ys(),Hf=Ys(),Zf=function(){function t(){}return t.prototype.getColorFromPalette=function(t,e,n){var r=Ms(this.get("color",!0)),i=this.get("colorLayer",!0);return Uf(this,Qf,r,i,t,e,n)},t.prototype.clearColorPalette=function(){Yf(this,Qf)},t}();function Gf(t,e,n,r){var i=Ms(t.get(["aria","decal","decals"]));return Uf(t,Hf,i,null,e,n,r)}function Xf(t,e){for(var n=t.length,r=0;r<n;r++)if(t[r].length>e)return t[r];return t[n-1]}function Uf(t,e,n,r,i,o,a){o=o||t;var s=e(o),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(i))return u[i];var c=null!=a&&r?Xf(r,a):n;if(c=c||n,c&&c.length){var h=c[l];return i&&(u[i]=h),s.paletteIdx=(l+1)%c.length,h}}function Yf(t,e){e(t).paletteIdx=0,e(t).paletteNameMap={}}var qf="\0_ec_inner",Kf=1;var Jf=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Q(e,t),e.prototype.init=function(t,e,n,r,i,o){r=r||{},this.option=null,this._theme=new Qd(r),this._locale=new Qd(i),this._optionManager=o},e.prototype.setOption=function(t,e,n){var r=ig(e);this._optionManager.setOption(t,n,r),this._resetOption(null,r)},e.prototype.resetOption=function(t,e){return this._resetOption(t,ig(e))},e.prototype._resetOption=function(t,e){var n=!1,r=this._optionManager;if(!t||"recreate"===t){var i=r.mountOption("recreate"===t);0,this.option&&"recreate"!==t?(this.restoreData(),this._mergeOption(i,e)):Vf(this,i),n=!0}if("timeline"!==t&&"media"!==t||this.restoreData(),!t||"recreate"===t||"timeline"===t){var o=r.getTimelineOption(this);o&&(n=!0,this._mergeOption(o,e))}if(!t||"recreate"===t||"media"===t){var a=r.getMediaOption(this);a.length&&Pt(a,(function(t){n=!0,this._mergeOption(t,e)}),this)}return n},e.prototype.mergeOption=function(t){this._mergeOption(t,null)},e.prototype._mergeOption=function(t,e){var n=this.option,r=this._componentsMap,i=this._componentsCount,o=[],a=de(),s=e&&e.replaceMergeMainTypeMap;function l(e){var o=Ff(this,e,Ms(t[e])),a=r.get(e),l=a?s&&s.get(e)?"replaceMerge":"normalMerge":"replaceAll",u=Es(a,o,l);Zs(u,e,vf),n[e]=null,r.set(e,null),i.set(e,0);var c,h=[],d=[],p=0;Pt(u,(function(t,n){var r=t.existing,i=t.newOption;if(i){var o="series"===e,a=vf.getClass(e,t.keyInfo.subType,!o);if(!a)return;if("tooltip"===e){if(c)return void 0;c=!0}if(r&&r.constructor===a)r.name=t.keyInfo.name,r.mergeOption(i,this),r.optionUpdated(i,!1);else{var s=Ot({componentIndex:n},t.keyInfo);r=new a(i,this,this,s),Ot(r,s),t.brandNew&&(r.__requireNewView=!0),r.init(i,this,this),r.optionUpdated(null,!0)}}else r&&(r.mergeOption({},this),r.optionUpdated({},!1));r?(h.push(r.option),d.push(r),p++):(h.push(void 0),d.push(void 0))}),this),n[e]=h,r.set(e,d),i.set(e,p),"series"===e&&Wf(this)}If(this),Pt(t,(function(t,e){null!=t&&(vf.hasClass(e)?e&&(o.push(e),a.set(e,!0)):n[e]=null==n[e]?_t(t):xt(n[e],t,!0))})),s&&s.each((function(t,e){vf.hasClass(e)&&!a.get(e)&&(o.push(e),a.set(e,!0))})),vf.topologicalTravel(o,vf.getAllClassMainTypes(),l,this),this._seriesIndices||Wf(this)},e.prototype.getOption=function(){var t=_t(this.option);return Pt(t,(function(e,n){if(vf.hasClass(n)){for(var r=Ms(e),i=r.length,o=!1,a=i-1;a>=0;a--)r[a]&&!Qs(r[a])?o=!0:(r[a]=null,!o&&i--);r.length=i,t[n]=r}})),delete t[qf],t},e.prototype.getTheme=function(){return this._theme},e.prototype.getLocaleModel=function(){return this._locale},e.prototype.setUpdatePayload=function(t){this._payload=t},e.prototype.getUpdatePayload=function(){return this._payload},e.prototype.getComponent=function(t,e){var n=this._componentsMap.get(t);if(n){var r=n[e||0];if(r)return r;if(null==e)for(var i=0;i<n.length;i++)if(n[i])return n[i]}},e.prototype.queryComponents=function(t){var e=t.mainType;if(!e)return[];var n,r=t.index,i=t.id,o=t.name,a=this._componentsMap.get(e);return a&&a.length?(null!=r?(n=[],Pt(Ms(r),(function(t){a[t]&&n.push(a[t])}))):n=null!=i?ng("id",i,a):null!=o?ng("name",o,a):Et(a,(function(t){return!!t})),rg(n,t)):[]},e.prototype.findComponents=function(t){var e=t.query,n=t.mainType,r=o(e),i=r?this.queryComponents(r):Et(this._componentsMap.get(n),(function(t){return!!t}));return a(rg(i,t));function o(t){var e=n+"Index",r=n+"Id",i=n+"Name";return!t||null==t[e]&&null==t[r]&&null==t[i]?null:{mainType:n,index:t[e],id:t[r],name:t[i]}}function a(e){return t.filter?Et(e,t.filter):e}},e.prototype.eachComponent=function(t,e,n){var r=this._componentsMap;if(Ft(t)){var i=e,o=t;r.each((function(t,e){for(var n=0;t&&n<t.length;n++){var r=t[n];r&&o.call(i,e,r,r.componentIndex)}}))}else for(var a=Wt(t)?r.get(t):Qt(t)?this.findComponents(t):null,s=0;a&&s<a.length;s++){var l=a[s];l&&e.call(n,l,l.componentIndex)}},e.prototype.getSeriesByName=function(t){var e=js(t,null);return Et(this._componentsMap.get("series"),(function(t){return!!t&&null!=e&&t.name===e}))},e.prototype.getSeriesByIndex=function(t){return this._componentsMap.get("series")[t]},e.prototype.getSeriesByType=function(t){return Et(this._componentsMap.get("series"),(function(e){return!!e&&e.subType===t}))},e.prototype.getSeries=function(){return Et(this._componentsMap.get("series"),(function(t){return!!t}))},e.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},e.prototype.eachSeries=function(t,e){jf(this),Pt(this._seriesIndices,(function(n){var r=this._componentsMap.get("series")[n];t.call(e,r,n)}),this)},e.prototype.eachRawSeries=function(t,e){Pt(this._componentsMap.get("series"),(function(n){n&&t.call(e,n,n.componentIndex)}))},e.prototype.eachSeriesByType=function(t,e,n){jf(this),Pt(this._seriesIndices,(function(r){var i=this._componentsMap.get("series")[r];i.subType===t&&e.call(n,i,r)}),this)},e.prototype.eachRawSeriesByType=function(t,e,n){return Pt(this.getSeriesByType(t),e,n)},e.prototype.isSeriesFiltered=function(t){return jf(this),null==this._seriesIndicesMap.get(t.componentIndex)},e.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},e.prototype.filterSeries=function(t,e){jf(this);var n=[];Pt(this._seriesIndices,(function(r){var i=this._componentsMap.get("series")[r];t.call(e,i,r)&&n.push(r)}),this),this._seriesIndices=n,this._seriesIndicesMap=de(n)},e.prototype.restoreData=function(t){Wf(this);var e=this._componentsMap,n=[];e.each((function(t,e){vf.hasClass(e)&&n.push(e)})),vf.topologicalTravel(n,vf.getAllClassMainTypes(),(function(n){Pt(e.get(n),(function(e){!e||"series"===n&&tg(e,t)||e.restoreData()}))}))},e.internalField=function(){Wf=function(t){var e=t._seriesIndices=[];Pt(t._componentsMap.get("series"),(function(t){t&&e.push(t.componentIndex)})),t._seriesIndicesMap=de(e)},jf=function(t){0},Vf=function(t,e){t.option={},t.option[qf]=Kf,t._componentsMap=de({series:[]}),t._componentsCount=de();var n=e.aria;Qt(n)&&null==n.enabled&&(n.enabled=!0),eg(e,t._theme.option),xt(e,bf,!1),t._mergeOption(e,null)}}(),e}(Qd);function tg(t,e){if(e){var n=e.seriesIndex,r=e.seriesId,i=e.seriesName;return null!=n&&t.componentIndex!==n||null!=r&&t.id!==r||null!=i&&t.name!==i}}function eg(t,e){var n=t.color&&!t.colorLayer;Pt(e,(function(e,r){"colorLayer"===r&&n||vf.hasClass(r)||("object"===typeof e?t[r]=t[r]?xt(t[r],e,!1):_t(e):null==t[r]&&(t[r]=e))}))}function ng(t,e,n){if(Bt(e)){var r=de();return Pt(e,(function(t){if(null!=t){var e=js(t,null);null!=e&&r.set(t,!0)}})),Et(n,(function(e){return e&&r.get(e[t])}))}var i=js(e,null);return Et(n,(function(e){return e&&null!=i&&e[t]===i}))}function rg(t,e){return e.hasOwnProperty("subType")?Et(t,(function(t){return t&&t.subType===e.subType})):t}function ig(t){var e=de();return t&&Pt(Ms(t.replaceMerge),(function(t){e.set(t,!0)})),{replaceMergeMainTypeMap:e}}Mt(Jf,Zf);var og=Jf,ag=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],sg=function(){function t(t){Pt(ag,(function(e){this[e]=Nt(t[e],t)}),this)}return t}(),lg=sg,ug={},cg=function(){function t(){this._coordinateSystems=[]}return t.prototype.create=function(t,e){var n=[];Pt(ug,(function(r,i){var o=r.create(t,e);n=n.concat(o||[])})),this._coordinateSystems=n},t.prototype.update=function(t,e){Pt(this._coordinateSystems,(function(n){n.update&&n.update(t,e)}))},t.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},t.register=function(t,e){ug[t]=e},t.get=function(t){return ug[t]},t}(),hg=cg,dg=/^(min|max)?(.+)$/,pg=function(){function t(t){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=t}return t.prototype.setOption=function(t,e,n){t&&(Pt(Ms(t.series),(function(t){t&&t.data&&Zt(t.data)&&ae(t.data)})),Pt(Ms(t.dataset),(function(t){t&&t.source&&Zt(t.source)&&ae(t.source)}))),t=_t(t);var r=this._optionBackup,i=fg(t,e,!r);this._newBaseOption=i.baseOption,r?(i.timelineOptions.length&&(r.timelineOptions=i.timelineOptions),i.mediaList.length&&(r.mediaList=i.mediaList),i.mediaDefault&&(r.mediaDefault=i.mediaDefault)):this._optionBackup=i},t.prototype.mountOption=function(t){var e=this._optionBackup;return this._timelineOptions=e.timelineOptions,this._mediaList=e.mediaList,this._mediaDefault=e.mediaDefault,this._currentMediaIndices=[],_t(t?e.baseOption:this._newBaseOption)},t.prototype.getTimelineOption=function(t){var e,n=this._timelineOptions;if(n.length){var r=t.getComponent("timeline");r&&(e=_t(n[r.getCurrentIndex()]))}return e},t.prototype.getMediaOption=function(t){var e=this._api.getWidth(),n=this._api.getHeight(),r=this._mediaList,i=this._mediaDefault,o=[],a=[];if(!r.length&&!i)return a;for(var s=0,l=r.length;s<l;s++)gg(r[s].query,e,n)&&o.push(s);return!o.length&&i&&(o=[-1]),o.length&&!mg(o,this._currentMediaIndices)&&(a=It(o,(function(t){return _t(-1===t?i.option:r[t].option)}))),this._currentMediaIndices=o,a},t}();function fg(t,e,n){var r,i,o=[],a=t.baseOption,s=t.timeline,l=t.options,u=t.media,c=!!t.media,h=!!(l||s||a&&a.timeline);function d(t){Pt(e,(function(e){e(t,n)}))}return a?(i=a,i.timeline||(i.timeline=s)):((h||c)&&(t.options=t.media=null),i=t),c&&Bt(u)&&Pt(u,(function(t){t&&t.option&&(t.query?o.push(t):r||(r=t))})),d(i),Pt(l,(function(t){return d(t)})),Pt(o,(function(t){return d(t.option)})),{baseOption:i,timelineOptions:l||[],mediaDefault:r,mediaList:o}}function gg(t,e,n){var r={width:e,height:n,aspectratio:e/n},i=!0;return Pt(t,(function(t,e){var n=e.match(dg);if(n&&n[1]&&n[2]){var o=n[1],a=n[2].toLowerCase();vg(r[a],t,o)||(i=!1)}})),i}function vg(t,e,n){return"min"===n?t>=e:"max"===n?t<=e:t===e}function mg(t,e){return t.join(",")===e.join(",")}var yg=pg,bg=Pt,_g=Qt,xg=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function wg(t){var e=t&&t.itemStyle;if(e)for(var n=0,r=xg.length;n<r;n++){var i=xg[n],o=e.normal,a=e.emphasis;o&&o[i]&&(t[i]=t[i]||{},t[i].normal?xt(t[i].normal,o[i]):t[i].normal=o[i],o[i]=null),a&&a[i]&&(t[i]=t[i]||{},t[i].emphasis?xt(t[i].emphasis,a[i]):t[i].emphasis=a[i],a[i]=null)}}function Og(t,e,n){if(t&&t[e]&&(t[e].normal||t[e].emphasis)){var r=t[e].normal,i=t[e].emphasis;r&&(n?(t[e].normal=t[e].emphasis=null,St(t[e],r)):t[e]=r),i&&(t.emphasis=t.emphasis||{},t.emphasis[e]=i,i.focus&&(t.emphasis.focus=i.focus),i.blurScope&&(t.emphasis.blurScope=i.blurScope))}}function Sg(t){Og(t,"itemStyle"),Og(t,"lineStyle"),Og(t,"areaStyle"),Og(t,"label"),Og(t,"labelLine"),Og(t,"upperLabel"),Og(t,"edgeLabel")}function Ag(t,e){var n=_g(t)&&t[e],r=_g(n)&&n.textStyle;if(r){0;for(var i=0,o=Ps.length;i<o;i++){var a=Ps[i];r.hasOwnProperty(a)&&(n[a]=r[a])}}}function kg(t){t&&(Sg(t),Ag(t,"label"),t.emphasis&&Ag(t.emphasis,"label"))}function Cg(t){if(_g(t)){wg(t),Sg(t),Ag(t,"label"),Ag(t,"upperLabel"),Ag(t,"edgeLabel"),t.emphasis&&(Ag(t.emphasis,"label"),Ag(t.emphasis,"upperLabel"),Ag(t.emphasis,"edgeLabel"));var e=t.markPoint;e&&(wg(e),kg(e));var n=t.markLine;n&&(wg(n),kg(n));var r=t.markArea;r&&kg(r);var i=t.data;if("graph"===t.type){i=i||t.nodes;var o=t.links||t.edges;if(o&&!Zt(o))for(var a=0;a<o.length;a++)kg(o[a]);Pt(t.categories,(function(t){Sg(t)}))}if(i&&!Zt(i))for(a=0;a<i.length;a++)kg(i[a]);if(e=t.markPoint,e&&e.data){var s=e.data;for(a=0;a<s.length;a++)kg(s[a])}if(n=t.markLine,n&&n.data){var l=n.data;for(a=0;a<l.length;a++)Bt(l[a])?(kg(l[a][0]),kg(l[a][1])):kg(l[a])}"gauge"===t.type?(Ag(t,"axisLabel"),Ag(t,"title"),Ag(t,"detail")):"treemap"===t.type?(Og(t.breadcrumb,"itemStyle"),Pt(t.levels,(function(t){Sg(t)}))):"tree"===t.type&&Sg(t.leaves)}}function Mg(t){return Bt(t)?t:t?[t]:[]}function Tg(t){return(Bt(t)?t[0]:t)||{}}function Pg(t,e){bg(Mg(t.series),(function(t){_g(t)&&Cg(t)}));var n=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];e&&n.push("valueAxis","categoryAxis","logAxis","timeAxis"),bg(n,(function(e){bg(Mg(t[e]),(function(t){t&&(Ag(t,"axisLabel"),Ag(t.axisPointer,"label"))}))})),bg(Mg(t.parallel),(function(t){var e=t&&t.parallelAxisDefault;Ag(e,"axisLabel"),Ag(e&&e.axisPointer,"label")})),bg(Mg(t.calendar),(function(t){Og(t,"itemStyle"),Ag(t,"dayLabel"),Ag(t,"monthLabel"),Ag(t,"yearLabel")})),bg(Mg(t.radar),(function(t){Ag(t,"name"),t.name&&null==t.axisName&&(t.axisName=t.name,delete t.name),null!=t.nameGap&&null==t.axisNameGap&&(t.axisNameGap=t.nameGap,delete t.nameGap)})),bg(Mg(t.geo),(function(t){_g(t)&&(kg(t),bg(Mg(t.regions),(function(t){kg(t)})))})),bg(Mg(t.timeline),(function(t){kg(t),Og(t,"label"),Og(t,"itemStyle"),Og(t,"controlStyle",!0);var e=t.data;Bt(e)&&Pt(e,(function(t){Qt(t)&&(Og(t,"label"),Og(t,"itemStyle"))}))})),bg(Mg(t.toolbox),(function(t){Og(t,"iconStyle"),bg(t.feature,(function(t){Og(t,"iconStyle")}))})),Ag(Tg(t.axisPointer),"label"),Ag(Tg(t.tooltip).axisPointer,"label")}function Ig(t,e){for(var n=e.split(","),r=t,i=0;i<n.length;i++)if(r=r&&r[n[i]],null==r)break;return r}function $g(t,e,n,r){for(var i,o=e.split(","),a=t,s=0;s<o.length-1;s++)i=o[s],null==a[i]&&(a[i]={}),a=a[i];(r||null==a[o[s]])&&(a[o[s]]=n)}function Eg(t){t&&Pt(Rg,(function(e){e[0]in t&&!(e[1]in t)&&(t[e[1]]=t[e[0]])}))}var Rg=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],Dg=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],Lg=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function Ng(t){var e=t&&t.itemStyle;if(e)for(var n=0;n<Lg.length;n++){var r=Lg[n][1],i=Lg[n][0];null!=e[r]&&(e[i]=e[r])}}function zg(t){t&&"edge"===t.alignTo&&null!=t.margin&&null==t.edgeDistance&&(t.edgeDistance=t.margin)}function Bg(t){t&&t.downplay&&!t.blur&&(t.blur=t.downplay)}function Fg(t){t&&null!=t.focusNodeAdjacency&&(t.emphasis=t.emphasis||{},null==t.emphasis.focus&&(t.emphasis.focus="adjacency"))}function Wg(t,e){if(t)for(var n=0;n<t.length;n++)e(t[n]),t[n]&&Wg(t[n].children,e)}function jg(t,e){Pg(t,e),t.series=Ms(t.series),Pt(t.series,(function(t){if(Qt(t)){var e=t.type;if("line"===e)null!=t.clipOverflow&&(t.clip=t.clipOverflow);else if("pie"===e||"gauge"===e){null!=t.clockWise&&(t.clockwise=t.clockWise),zg(t.label);var n=t.data;if(n&&!Zt(n))for(var r=0;r<n.length;r++)zg(n[r]);null!=t.hoverOffset&&(t.emphasis=t.emphasis||{},(t.emphasis.scaleSize=null)&&(t.emphasis.scaleSize=t.hoverOffset))}else if("gauge"===e){var i=Ig(t,"pointer.color");null!=i&&$g(t,"itemStyle.color",i)}else if("bar"===e){Ng(t),Ng(t.backgroundStyle),Ng(t.emphasis);n=t.data;if(n&&!Zt(n))for(r=0;r<n.length;r++)"object"===typeof n[r]&&(Ng(n[r]),Ng(n[r]&&n[r].emphasis))}else if("sunburst"===e){var o=t.highlightPolicy;o&&(t.emphasis=t.emphasis||{},t.emphasis.focus||(t.emphasis.focus=o)),Bg(t),Wg(t.data,Bg)}else"graph"===e||"sankey"===e?Fg(t):"map"===e&&(t.mapType&&!t.map&&(t.map=t.mapType),t.mapLocation&&St(t,t.mapLocation));null!=t.hoverAnimation&&(t.emphasis=t.emphasis||{},t.emphasis&&null==t.emphasis.scale&&(t.emphasis.scale=t.hoverAnimation)),Eg(t)}})),t.dataRange&&(t.visualMap=t.dataRange),Pt(Dg,(function(e){var n=t[e];n&&(Bt(n)||(n=[n]),Pt(n,(function(t){Eg(t)})))}))}function Vg(t){var e=de();t.eachSeries((function(t){var n=t.get("stack");if(n){var r=e.get(n)||e.set(n,[]),i=t.getData(),o={stackResultDimension:i.getCalculationInfo("stackResultDimension"),stackedOverDimension:i.getCalculationInfo("stackedOverDimension"),stackedDimension:i.getCalculationInfo("stackedDimension"),stackedByDimension:i.getCalculationInfo("stackedByDimension"),isStackedByIndex:i.getCalculationInfo("isStackedByIndex"),data:i,seriesModel:t};if(!o.stackedDimension||!o.isStackedByIndex&&!o.stackedByDimension)return;r.length&&i.setCalculationInfo("stackedOnSeries",r[r.length-1].seriesModel),r.push(o)}})),e.each(Qg)}function Qg(t){Pt(t,(function(e,n){var r=[],i=[NaN,NaN],o=[e.stackResultDimension,e.stackedOverDimension],a=e.data,s=e.isStackedByIndex,l=e.seriesModel.get("stackStrategy")||"samesign";a.modify(o,(function(o,u,c){var h,d,p=a.get(e.stackedDimension,c);if(isNaN(p))return i;s?d=a.getRawIndex(c):h=a.get(e.stackedByDimension,c);for(var f=NaN,g=n-1;g>=0;g--){var v=t[g];if(s||(d=v.data.rawIndexOf(v.stackedByDimension,h)),d>=0){var m=v.data.getByRawIndex(v.stackResultDimension,d);if("all"===l||"positive"===l&&m>0||"negative"===l&&m<0||"samesign"===l&&p>=0&&m>0||"samesign"===l&&p<=0&&m<0){p=us(p,m),f=m;break}}}return r[0]=p,r[1]=f,r}))}))}var Hg,Zg,Gg,Xg,Ug,Yg=function(){function t(t){this.data=t.data||(t.sourceFormat===Sf?{}:[]),this.sourceFormat=t.sourceFormat||kf,this.seriesLayoutBy=t.seriesLayoutBy||Cf,this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var e=this.dimensionsDefine=t.dimensionsDefine;if(e)for(var n=0;n<e.length;n++){var r=e[n];null==r.type&&Lf(this,n)===Tf.Must&&(r.type="ordinal")}}return t}();function qg(t){return t instanceof Yg}function Kg(t,e,n){n=n||ev(t);var r=e.seriesLayoutBy,i=nv(t,n,r,e.sourceHeader,e.dimensions),o=new Yg({data:t,sourceFormat:n,seriesLayoutBy:r,dimensionsDefine:i.dimensionsDefine,startIndex:i.startIndex,dimensionsDetectedCount:i.dimensionsDetectedCount,metaRawOption:_t(e)});return o}function Jg(t){return new Yg({data:t,sourceFormat:Zt(t)?Af:xf})}function tv(t){return new Yg({data:t.data,sourceFormat:t.sourceFormat,seriesLayoutBy:t.seriesLayoutBy,dimensionsDefine:_t(t.dimensionsDefine),startIndex:t.startIndex,dimensionsDetectedCount:t.dimensionsDetectedCount})}function ev(t){var e=kf;if(Zt(t))e=Af;else if(Bt(t)){0===t.length&&(e=wf);for(var n=0,r=t.length;n<r;n++){var i=t[n];if(null!=i){if(Bt(i)||Zt(i)){e=wf;break}if(Qt(i)){e=Of;break}}}}else if(Qt(t))for(var o in t)if(ve(t,o)&&Tt(t[o])){e=Sf;break}return e}function nv(t,e,n,r,i){var o,a;if(!t)return{dimensionsDefine:iv(i),startIndex:a,dimensionsDetectedCount:o};if(e===wf){var s=t;"auto"===r||null==r?ov((function(t){null!=t&&"-"!==t&&(Wt(t)?null==a&&(a=1):a=0)}),n,s,10):a=Vt(r)?r:r?1:0,i||1!==a||(i=[],ov((function(t,e){i[e]=null!=t?t+"":""}),n,s,1/0)),o=i?i.length:n===Mf?s.length:s[0]?s[0].length:null}else if(e===Of)i||(i=rv(t));else if(e===Sf)i||(i=[],Pt(t,(function(t,e){i.push(e)})));else if(e===xf){var l=Is(t[0]);o=Bt(l)&&l.length||1}return{startIndex:a,dimensionsDefine:iv(i),dimensionsDetectedCount:o}}function rv(t){var e,n=0;while(n<t.length&&!(e=t[n++]));if(e)return Dt(e)}function iv(t){if(t){var e=de();return It(t,(function(t,n){t=Qt(t)?t:{name:t};var r={name:t.name,displayName:t.displayName,type:t.type};if(null==r.name)return r;r.name+="",null==r.displayName&&(r.displayName=r.name);var i=e.get(r.name);return i?r.name+="-"+i.count++:e.set(r.name,{count:1}),r}))}}function ov(t,e,n,r){if(e===Mf)for(var i=0;i<n.length&&i<r;i++)t(n[i]?n[i][0]:null,i);else{var o=n[0]||[];for(i=0;i<o.length&&i<r;i++)t(o[i],i)}}function av(t){var e=t.sourceFormat;return e===Of||e===Sf}var sv=function(){function t(t,e){var n=qg(t)?t:Jg(t);this._source=n;var r=this._data=n.data;n.sourceFormat===Af&&(this._offset=0,this._dimSize=e,this._data=r),Ug(this,r,n)}return t.prototype.getSource=function(){return this._source},t.prototype.count=function(){return 0},t.prototype.getItem=function(t,e){},t.prototype.appendData=function(t){},t.prototype.clean=function(){},t.protoInitialize=function(){var e=t.prototype;e.pure=!1,e.persistent=!0}(),t.internalField=function(){var t;Ug=function(t,i,o){var a=o.sourceFormat,s=o.seriesLayoutBy,l=o.startIndex,u=o.dimensionsDefine,c=Xg[mv(a,s)];if(Ot(t,c),a===Af)t.getItem=e,t.count=r,t.fillStorage=n;else{var h=cv(a,s);t.getItem=Nt(h,null,i,l,u);var d=pv(a,s);t.count=Nt(d,null,i,l,u)}};var e=function(t,e){t-=this._offset,e=e||[];for(var n=this._data,r=this._dimSize,i=r*t,o=0;o<r;o++)e[o]=n[i+o];return e},n=function(t,e,n,r){for(var i=this._data,o=this._dimSize,a=0;a<o;a++){for(var s=r[a],l=null==s[0]?1/0:s[0],u=null==s[1]?-1/0:s[1],c=e-t,h=n[a],d=0;d<c;d++){var p=i[d*o+a];h[t+d]=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 i(t){for(var e=0;e<t.length;e++)this._data.push(t[e])}t={},t[wf+"_"+Cf]={pure:!0,appendData:i},t[wf+"_"+Mf]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[Of]={pure:!0,appendData:i},t[Sf]={pure:!0,appendData:function(t){var e=this._data;Pt(t,(function(t,n){for(var r=e[n]||(e[n]=[]),i=0;i<(t||[]).length;i++)r.push(t[i])}))}},t[xf]={appendData:i},t[Af]={persistent:!1,pure:!0,appendData:function(t){this._data=t},clean:function(){this._offset+=this.count(),this._data=null}},Xg=t}(),t}(),lv=function(t,e,n,r){return t[r]},uv=(Hg={},Hg[wf+"_"+Cf]=function(t,e,n,r){return t[r+e]},Hg[wf+"_"+Mf]=function(t,e,n,r,i){r+=e;for(var o=i||[],a=t,s=0;s<a.length;s++){var l=a[s];o[s]=l?l[r]:null}return o},Hg[Of]=lv,Hg[Sf]=function(t,e,n,r,i){for(var o=i||[],a=0;a<n.length;a++){var s=n[a].name;0;var l=t[s];o[a]=l?l[r]:null}return o},Hg[xf]=lv,Hg);function cv(t,e){var n=uv[mv(t,e)];return n}var hv=function(t,e,n){return t.length},dv=(Zg={},Zg[wf+"_"+Cf]=function(t,e,n){return Math.max(0,t.length-e)},Zg[wf+"_"+Mf]=function(t,e,n){var r=t[0];return r?Math.max(0,r.length-e):0},Zg[Of]=hv,Zg[Sf]=function(t,e,n){var r=n[0].name;var i=t[r];return i?i.length:0},Zg[xf]=hv,Zg);function pv(t,e){var n=dv[mv(t,e)];return n}var fv=function(t,e,n){return t[e]},gv=(Gg={},Gg[wf]=fv,Gg[Of]=function(t,e,n){return t[n]},Gg[Sf]=fv,Gg[xf]=function(t,e,n){var r=Is(t);return r instanceof Array?r[e]:r},Gg[Af]=fv,Gg);function vv(t){var e=gv[t];return e}function mv(t,e){return t===wf?t+"_"+e:t}function yv(t,e,n){if(t){var r=t.getRawDataItem(e);if(null!=r){var i=t.getStore(),o=i.getSource().sourceFormat;if(null!=n){var a=t.getDimensionIndex(n),s=i.getDimensionProperty(a);return vv(o)(r,a,s)}var l=r;return o===xf&&(l=Is(r)),l}}}var bv=/\{@(.+?)\}/g,_v=function(){function t(){}return t.prototype.getDataParams=function(t,e){var n=this.getData(e),r=this.getRawValue(t,e),i=n.getRawIndex(t),o=n.getName(t),a=n.getRawDataItem(t),s=n.getItemVisual(t,"style"),l=s&&s[n.getItemVisual(t,"drawType")||"fill"],u=s&&s.stroke,c=this.mainType,h="series"===c,d=n.userOutput&&n.userOutput.get();return{componentType:c,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:h?this.subType:null,seriesIndex:this.seriesIndex,seriesId:h?this.id:null,seriesName:h?this.name:null,name:o,dataIndex:i,data:a,dataType:e,value:r,color:l,borderColor:u,dimensionNames:d?d.fullDimensions:null,encode:d?d.encode:null,$vars:["seriesName","name","value"]}},t.prototype.getFormattedLabel=function(t,e,n,r,i,o){e=e||"normal";var a=this.getData(n),s=this.getDataParams(t,n);if(o&&(s.value=o.interpolatedValue),null!=r&&Bt(s.value)&&(s.value=s.value[r]),!i){var l=a.getItemModel(t);i=l.get("normal"===e?["label","formatter"]:[e,"label","formatter"])}if(Ft(i))return s.status=e,s.dimensionIndex=r,i(s);if(Wt(i)){var u=Zp(i,s);return u.replace(bv,(function(e,n){var r=n.length,i=n;"["===i.charAt(0)&&"]"===i.charAt(r-1)&&(i=+i.slice(1,r-1));var s=yv(a,t,i);if(o&&Bt(o.interpolatedValue)){var l=a.getDimensionIndex(i);l>=0&&(s=o.interpolatedValue[l])}return null!=s?s+"":""}))}},t.prototype.getRawValue=function(t,e){return yv(this.getData(e),t)},t.prototype.formatTooltip=function(t,e,n){},t}();function xv(t){var e,n;return Qt(t)?t.type&&(n=t):e=t,{text:e,frag:n}}function wv(t){return new Ov(t)}var Ov=function(){function t(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}return t.prototype.perform=function(t){var e,n=this._upstream,r=t&&t.skip;if(this._dirty&&n){var i=this.context;i.data=i.outputData=n.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this),this._plan&&!r&&(e=this._plan(this.context));var o,a=c(this._modBy),s=this._modDataCount||0,l=c(t&&t.modBy),u=t&&t.modDataCount||0;function c(t){return!(t>=1)&&(t=1),t}a===l&&s===u||(e="reset"),(this._dirty||"reset"===e)&&(this._dirty=!1,o=this._doReset(r)),this._modBy=l,this._modDataCount=u;var h=t&&t.step;if(this._dueEnd=n?n._outputDueEnd:this._count?this._count(this.context):1/0,this._progress){var d=this._dueIndex,p=Math.min(null!=h?this._dueIndex+h:1/0,this._dueEnd);if(!r&&(o||d<p)){var f=this._progress;if(Bt(f))for(var g=0;g<f.length;g++)this._doProgress(f[g],d,p,l,u);else this._doProgress(f,d,p,l,u)}this._dueIndex=p;var v=null!=this._settedOutputEnd?this._settedOutputEnd:p;0,this._outputDueEnd=v}else this._dueIndex=this._outputDueEnd=null!=this._settedOutputEnd?this._settedOutputEnd:this._dueEnd;return this.unfinished()},t.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},t.prototype._doProgress=function(t,e,n,r,i){Sv.reset(e,n,r,i),this._callingProgress=t,this._callingProgress({start:e,end:n,count:n-e,next:Sv.next},this.context)},t.prototype._doReset=function(t){var e,n;this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null,!t&&this._reset&&(e=this._reset(this.context),e&&e.progress&&(n=e.forceFirstProgress,e=e.progress),Bt(e)&&!e.length&&(e=null)),this._progress=e,this._modBy=this._modDataCount=null;var r=this._downstream;return r&&r.dirty(),n},t.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},t.prototype.pipe=function(t){(this._downstream!==t||this._dirty)&&(this._downstream=t,t._upstream=this,t.dirty())},t.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},t.prototype.getUpstream=function(){return this._upstream},t.prototype.getDownstream=function(){return this._downstream},t.prototype.setOutputEnd=function(t){this._outputDueEnd=this._settedOutputEnd=t},t}(),Sv=function(){var t,e,n,r,i,o={reset:function(l,u,c,h){e=l,t=u,n=c,r=h,i=Math.ceil(r/n),o.next=n>1&&r>0?s:a}};return o;function a(){return e<t?e++:null}function s(){var o=e%i*n+Math.ceil(e/i),a=e>=t?null:o<r?o:e;return e++,a}}();"undefined"!==typeof console&&console.warn&&console.log;function Av(t){0}function kv(t){throw new Error(t)}function Cv(t,e){var n=e&&e.type;return"ordinal"===n?t:("time"!==n||Vt(t)||null==t||"-"===t||(t=+fs(t)),null==t||""===t?NaN:Number(t))}var Mv=de({number:function(t){return parseFloat(t)},time:function(t){return+fs(t)},trim:function(t){return Wt(t)?ie(t):t}});function Tv(t){return Mv.get(t)}var Pv={lt:function(t,e){return t<e},lte:function(t,e){return t<=e},gt:function(t,e){return t>e},gte:function(t,e){return t>=e}},Iv=function(){function t(t,e){if(!Vt(e)){var n="";0,kv(n)}this._opFn=Pv[t],this._rvalFloat=_s(e)}return t.prototype.evaluate=function(t){return Vt(t)?this._opFn(t,this._rvalFloat):this._opFn(_s(t),this._rvalFloat)},t}(),$v=function(){function t(t,e){var n="desc"===t;this._resultLT=n?1:-1,null==e&&(e=n?"min":"max"),this._incomparable="min"===e?-1/0:1/0}return t.prototype.evaluate=function(t,e){var n=Vt(t)?t:_s(t),r=Vt(e)?e:_s(e),i=isNaN(n),o=isNaN(r);if(i&&(n=this._incomparable),o&&(r=this._incomparable),i&&o){var a=Wt(t),s=Wt(e);a&&(n=s?t:0),s&&(r=a?e:0)}return n<r?this._resultLT:n>r?-this._resultLT:0},t}(),Ev=function(){function t(t,e){this._rval=e,this._isEQ=t,this._rvalTypeof=typeof e,this._rvalFloat=_s(e)}return t.prototype.evaluate=function(t){var e=t===this._rval;if(!e){var n=typeof t;n===this._rvalTypeof||"number"!==n&&"number"!==this._rvalTypeof||(e=_s(t)===this._rvalFloat)}return this._isEQ?e:!e},t}();function Rv(t,e){return"eq"===t||"ne"===t?new Ev("eq"===t,e):ve(Pv,t)?new Iv(t,e):null}var Dv=function(){function t(){}return t.prototype.getRawData=function(){throw new Error("not supported")},t.prototype.getRawDataItem=function(t){throw new Error("not supported")},t.prototype.cloneRawData=function(){},t.prototype.getDimensionInfo=function(t){},t.prototype.cloneAllDimensionInfo=function(){},t.prototype.count=function(){},t.prototype.retrieveValue=function(t,e){},t.prototype.retrieveValueFromItem=function(t,e){},t.prototype.convertValue=function(t,e){return Cv(t,e)},t}();function Lv(t,e){var n=new Dv,r=t.data,i=n.sourceFormat=t.sourceFormat,o=t.startIndex,a="";t.seriesLayoutBy!==Cf&&kv(a);var s=[],l={},u=t.dimensionsDefine;if(u)Pt(u,(function(t,e){var n=t.name,r={index:e,name:n,displayName:t.displayName};if(s.push(r),null!=n){var i="";ve(l,n)&&kv(i),l[n]=r}}));else for(var c=0;c<t.dimensionsDetectedCount;c++)s.push({index:c});var h=cv(i,Cf);e.__isBuiltIn&&(n.getRawDataItem=function(t){return h(r,o,s,t)},n.getRawData=Nt(Nv,null,t)),n.cloneRawData=Nt(zv,null,t);var d=pv(i,Cf);n.count=Nt(d,null,r,o,s);var p=vv(i);n.retrieveValue=function(t,e){var n=h(r,o,s,t);return f(n,e)};var f=n.retrieveValueFromItem=function(t,e){if(null!=t){var n=s[e];return n?p(t,e,n.name):void 0}};return n.getDimensionInfo=Nt(Bv,null,s,l),n.cloneAllDimensionInfo=Nt(Fv,null,s),n}function Nv(t){var e=t.sourceFormat;if(!Hv(e)){var n="";0,kv(n)}return t.data}function zv(t){var e=t.sourceFormat,n=t.data;if(!Hv(e)){var r="";0,kv(r)}if(e===wf){for(var i=[],o=0,a=n.length;o<a;o++)i.push(n[o].slice());return i}if(e===Of){for(i=[],o=0,a=n.length;o<a;o++)i.push(Ot({},n[o]));return i}}function Bv(t,e,n){if(null!=n)return Vt(n)||!isNaN(n)&&!ve(e,n)?t[n]:ve(e,n)?e[n]:void 0}function Fv(t){return _t(t)}var Wv=de();function jv(t){t=_t(t);var e=t.type,n="";e||kv(n);var r=e.split(":");2!==r.length&&kv(n);var i=!1;"echarts"===r[0]&&(e=r[1],i=!0),t.__isBuiltIn=i,Wv.set(e,t)}function Vv(t,e,n){var r=Ms(t),i=r.length,o="";i||kv(o);for(var a=0,s=i;a<s;a++){var l=r[a];e=Qv(l,e,n,1===i?null:a),a!==s-1&&(e.length=Math.max(e.length,1))}return e}function Qv(t,e,n,r){var i="";e.length||kv(i),Qt(t)||kv(i);var o=t.type,a=Wv.get(o);a||kv(i);var s=It(e,(function(t){return Lv(t,a)})),l=Ms(a.transform({upstream:s[0],upstreamList:s,config:_t(t.config)}));return It(l,(function(t,n){var r="";Qt(t)||kv(r),t.data||kv(r);var i,o=ev(t.data);Hv(o)||kv(r);var a=e[0];if(a&&0===n&&!t.dimensions){var s=a.startIndex;s&&(t.data=a.data.slice(0,s).concat(t.data)),i={seriesLayoutBy:Cf,sourceHeader:s,dimensions:a.metaRawOption.dimensions}}else i={seriesLayoutBy:Cf,sourceHeader:0,dimensions:t.dimensions};return Kg(t.data,i,null)}))}function Hv(t){return t===wf||t===Of}var Zv,Gv="undefined",Xv=typeof Uint32Array===Gv?Array:Uint32Array,Uv=typeof Uint16Array===Gv?Array:Uint16Array,Yv=typeof Int32Array===Gv?Array:Int32Array,qv=typeof Float64Array===Gv?Array:Float64Array,Kv={float:qv,int:Yv,ordinal:Array,number:Array,time:qv};function Jv(t){return t>65535?Xv:Uv}function tm(){return[1/0,-1/0]}function em(t){var e=t.constructor;return e===Array?t.slice():new e(t)}function nm(t,e,n,r,i){var o=Kv[n||"float"];if(i){var a=t[e],s=a&&a.length;if(s!==r){for(var l=new o(r),u=0;u<s;u++)l[u]=a[u];t[e]=l}}else t[e]=new o(r)}var rm=function(){function t(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=de()}return t.prototype.initData=function(t,e,n){this._provider=t,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var r=t.getSource(),i=this.defaultDimValueGetter=Zv[r.sourceFormat];this._dimValueGetter=n||i,this._rawExtent=[];av(r);this._dimensions=It(e,(function(t){return{type:t.type,property:t.property}})),this._initDataFromProvider(0,t.count())},t.prototype.getProvider=function(){return this._provider},t.prototype.getSource=function(){return this._provider.getSource()},t.prototype.ensureCalculationDimension=function(t,e){var n=this._calcDimNameToIdx,r=this._dimensions,i=n.get(t);if(null!=i){if(r[i].type===e)return i}else i=r.length;return r[i]={type:e},n.set(t,i),this._chunks[i]=new Kv[e||"float"](this._rawCount),this._rawExtent[i]=tm(),i},t.prototype.collectOrdinalMeta=function(t,e){var n=this._chunks[t],r=this._dimensions[t],i=this._rawExtent,o=r.ordinalOffset||0,a=n.length;0===o&&(i[t]=tm());for(var s=i[t],l=o;l<a;l++){var u=n[l]=e.parseAndCollect(n[l]);isNaN(u)||(s[0]=Math.min(u,s[0]),s[1]=Math.max(u,s[1]))}r.ordinalMeta=e,r.ordinalOffset=a,r.type="ordinal"},t.prototype.getOrdinalMeta=function(t){var e=this._dimensions[t],n=e.ordinalMeta;return n},t.prototype.getDimensionProperty=function(t){var e=this._dimensions[t];return e&&e.property},t.prototype.appendData=function(t){var e=this._provider,n=this.count();e.appendData(t);var r=e.count();return e.persistent||(r+=n),n<r&&this._initDataFromProvider(n,r,!0),[n,r]},t.prototype.appendValues=function(t,e){for(var n=this._chunks,r=this._dimensions,i=r.length,o=this._rawExtent,a=this.count(),s=a+Math.max(t.length,e||0),l=0;l<i;l++){var u=r[l];nm(n,l,u.type,s,!0)}for(var c=[],h=a;h<s;h++)for(var d=h-a,p=0;p<i;p++){u=r[p];var f=Zv.arrayRows.call(this,t[d]||c,u.property,d,p);n[p][h]=f;var g=o[p];f<g[0]&&(g[0]=f),f>g[1]&&(g[1]=f)}return this._rawCount=this._count=s,{start:a,end:s}},t.prototype._initDataFromProvider=function(t,e,n){for(var r=this._provider,i=this._chunks,o=this._dimensions,a=o.length,s=this._rawExtent,l=It(o,(function(t){return t.property})),u=0;u<a;u++){var c=o[u];s[u]||(s[u]=tm()),nm(i,u,c.type,e,n)}if(r.fillStorage)r.fillStorage(t,e,i,s);else for(var h=[],d=t;d<e;d++){h=r.getItem(d,h);for(var p=0;p<a;p++){var f=i[p],g=this._dimValueGetter(h,l[p],d,p);f[d]=g;var v=s[p];g<v[0]&&(v[0]=g),g>v[1]&&(v[1]=g)}}!r.persistent&&r.clean&&r.clean(),this._rawCount=this._count=e,this._extent=[]},t.prototype.count=function(){return this._count},t.prototype.get=function(t,e){if(!(e>=0&&e<this._count))return NaN;var n=this._chunks[t];return n?n[this.getRawIndex(e)]:NaN},t.prototype.getValues=function(t,e){var n=[],r=[];if(null==e){e=t,t=[];for(var i=0;i<this._dimensions.length;i++)r.push(i)}else r=t;i=0;for(var o=r.length;i<o;i++)n.push(this.get(r[i],e));return n},t.prototype.getByRawIndex=function(t,e){if(!(e>=0&&e<this._rawCount))return NaN;var n=this._chunks[t];return n?n[e]:NaN},t.prototype.getSum=function(t){var e=this._chunks[t],n=0;if(e)for(var r=0,i=this.count();r<i;r++){var o=this.get(t,r);isNaN(o)||(n+=o)}return n},t.prototype.getMedian=function(t){var e=[];this.each([t],(function(t){isNaN(t)||e.push(t)}));var n=e.sort((function(t,e){return t-e})),r=this.count();return 0===r?0:r%2===1?n[(r-1)/2]:(n[r/2]+n[r/2-1])/2},t.prototype.indexOfRawIndex=function(t){if(t>=this._rawCount||t<0)return-1;if(!this._indices)return t;var e=this._indices,n=e[t];if(null!=n&&n<this._count&&n===t)return t;var r=0,i=this._count-1;while(r<=i){var o=(r+i)/2|0;if(e[o]<t)r=o+1;else{if(!(e[o]>t))return o;i=o-1}}return-1},t.prototype.indicesOfNearest=function(t,e,n){var r=this._chunks,i=r[t],o=[];if(!i)return o;null==n&&(n=1/0);for(var a=1/0,s=-1,l=0,u=0,c=this.count();u<c;u++){var h=this.getRawIndex(u),d=e-i[h],p=Math.abs(d);p<=n&&((p<a||p===a&&d>=0&&s<0)&&(a=p,s=d,l=0),d===s&&(o[l++]=u))}return o.length=l,o},t.prototype.getIndices=function(){var t,e=this._indices;if(e){var n=e.constructor,r=this._count;if(n===Array){t=new n(r);for(var i=0;i<r;i++)t[i]=e[i]}else t=new n(e.buffer,0,r)}else{n=Jv(this._rawCount);t=new n(this.count());for(i=0;i<t.length;i++)t[i]=i}return t},t.prototype.filter=function(t,e){if(!this._count)return this;for(var n=this.clone(),r=n.count(),i=Jv(n._rawCount),o=new i(r),a=[],s=t.length,l=0,u=t[0],c=n._chunks,h=0;h<r;h++){var d=void 0,p=n.getRawIndex(h);if(0===s)d=e(h);else if(1===s){var f=c[u][p];d=e(f,h)}else{for(var g=0;g<s;g++)a[g]=c[t[g]][p];a[g]=h,d=e.apply(null,a)}d&&(o[l++]=p)}return l<r&&(n._indices=o),n._count=l,n._extent=[],n._updateGetRawIdx(),n},t.prototype.selectRange=function(t){var e=this.clone(),n=e._count;if(!n)return this;var r=Dt(t),i=r.length;if(!i)return this;var o=e.count(),a=Jv(e._rawCount),s=new a(o),l=0,u=r[0],c=t[u][0],h=t[u][1],d=e._chunks,p=!1;if(!e._indices){var f=0;if(1===i){for(var g=d[r[0]],v=0;v<n;v++){var m=g[v];(m>=c&&m<=h||isNaN(m))&&(s[l++]=f),f++}p=!0}else if(2===i){g=d[r[0]];var y=d[r[1]],b=t[r[1]][0],_=t[r[1]][1];for(v=0;v<n;v++){m=g[v];var x=y[v];(m>=c&&m<=h||isNaN(m))&&(x>=b&&x<=_||isNaN(x))&&(s[l++]=f),f++}p=!0}}if(!p)if(1===i)for(v=0;v<o;v++){var w=e.getRawIndex(v);m=d[r[0]][w];(m>=c&&m<=h||isNaN(m))&&(s[l++]=w)}else for(v=0;v<o;v++){for(var O=!0,S=(w=e.getRawIndex(v),0);S<i;S++){var A=r[S];m=d[A][w];(m<t[A][0]||m>t[A][1])&&(O=!1)}O&&(s[l++]=e.getRawIndex(v))}return l<o&&(e._indices=s),e._count=l,e._extent=[],e._updateGetRawIdx(),e},t.prototype.map=function(t,e){var n=this.clone(t);return this._updateDims(n,t,e),n},t.prototype.modify=function(t,e){this._updateDims(this,t,e)},t.prototype._updateDims=function(t,e,n){for(var r=t._chunks,i=[],o=e.length,a=t.count(),s=[],l=t._rawExtent,u=0;u<e.length;u++)l[e[u]]=tm();for(var c=0;c<a;c++){for(var h=t.getRawIndex(c),d=0;d<o;d++)s[d]=r[e[d]][h];s[o]=c;var p=n&&n.apply(null,s);if(null!=p){"object"!==typeof p&&(i[0]=p,p=i);for(u=0;u<p.length;u++){var f=e[u],g=p[u],v=l[f],m=r[f];m&&(m[h]=g),g<v[0]&&(v[0]=g),g>v[1]&&(v[1]=g)}}}},t.prototype.lttbDownSample=function(t,e){var n,r,i,o=this.clone([t],!0),a=o._chunks,s=a[t],l=this.count(),u=0,c=Math.floor(1/e),h=this.getRawIndex(0),d=new(Jv(this._rawCount))(Math.min(2*(Math.ceil(l/c)+2),l));d[u++]=h;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),v=(g+f)/2,m=0,y=f;y<g;y++){var b=this.getRawIndex(y),_=s[b];isNaN(_)||(m+=_)}m/=g-f;var x=p,w=Math.min(p+c,l),O=p-1,S=s[h];n=-1,i=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-v)*(_-S)-(O-y)*(m-S)),r>n&&(n=r,i=b))}k>0&&k<w-x&&(d[u++]=Math.min(A,i),i=Math.max(A,i)),d[u++]=i,h=i}return d[u++]=this.getRawIndex(l-1),o._count=u,o._indices=d,o.getRawIndex=this._getRawIdx,o},t.prototype.downSample=function(t,e,n,r){for(var i=this.clone([t],!0),o=i._chunks,a=[],s=Math.floor(1/e),l=o[t],u=this.count(),c=i._rawExtent[t]=tm(),h=new(Jv(this._rawCount))(Math.ceil(u/s)),d=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 v=n(a),m=this.getRawIndex(Math.min(p+r(a,v)||0,u-1));l[m]=v,v<c[0]&&(c[0]=v),v>c[1]&&(c[1]=v),h[d++]=m}return i._count=d,i._indices=h,i._updateGetRawIdx(),i},t.prototype.each=function(t,e){if(this._count)for(var n=t.length,r=this._chunks,i=0,o=this.count();i<o;i++){var a=this.getRawIndex(i);switch(n){case 0:e(i);break;case 1:e(r[t[0]][a],i);break;case 2:e(r[t[0]][a],r[t[1]][a],i);break;default:for(var s=0,l=[];s<n;s++)l[s]=r[t[s]][a];l[s]=i,e.apply(null,l)}}},t.prototype.getDataExtent=function(t){var e=this._chunks[t],n=tm();if(!e)return n;var r,i=this.count(),o=!this._indices;if(o)return this._rawExtent[t].slice();if(r=this._extent[t],r)return r.slice();r=n;for(var a=r[0],s=r[1],l=0;l<i;l++){var u=this.getRawIndex(l),c=e[u];c<a&&(a=c),c>s&&(s=c)}return r=[a,s],this._extent[t]=r,r},t.prototype.getRawDataItem=function(t){var e=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(e);for(var n=[],r=this._chunks,i=0;i<r.length;i++)n.push(r[i][e]);return n},t.prototype.clone=function(e,n){var r=new t,i=this._chunks,o=e&&$t(e,(function(t,e){return t[e]=!0,t}),{});if(o)for(var a=0;a<i.length;a++)r._chunks[a]=o[a]?em(i[a]):i[a];else r._chunks=i;return this._copyCommonProps(r),n||(r._indices=this._cloneIndices()),r._updateGetRawIdx(),r},t.prototype._copyCommonProps=function(t){t._count=this._count,t._rawCount=this._rawCount,t._provider=this._provider,t._dimensions=this._dimensions,t._extent=_t(this._extent),t._rawExtent=_t(this._rawExtent)},t.prototype._cloneIndices=function(){if(this._indices){var t=this._indices.constructor,e=void 0;if(t===Array){var n=this._indices.length;e=new t(n);for(var r=0;r<n;r++)e[r]=this._indices[r]}else e=new t(this._indices);return e}return null},t.prototype._getRawIdxIdentity=function(t){return t},t.prototype._getRawIdx=function(t){return t<this._count&&t>=0?this._indices[t]:-1},t.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},t.internalField=function(){function t(t,e,n,r){return Cv(t[r],this._dimensions[r])}Zv={arrayRows:t,objectRows:function(t,e,n,r){return Cv(t[e],this._dimensions[r])},keyedColumns:t,original:function(t,e,n,r){var i=t&&(null==t.value?t:t.value);return Cv(i instanceof Array?i[r]:i,this._dimensions[r])},typedArray:function(t,e,n,r){return t[r]}}}(),t}(),im=rm,om=function(){function t(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}return t.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},t.prototype._setLocalSource=function(t,e){this._sourceList=t,this._upstreamSignList=e,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},t.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},t.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},t.prototype._createSource=function(){this._setLocalSource([],[]);var t,e,n=this._sourceHost,r=this._getUpstreamSourceManagers(),i=!!r.length;if(sm(n)){var o=n,a=void 0,s=void 0,l=void 0;if(i){var u=r[0];u.prepareSource(),l=u.getSource(),a=l.data,s=l.sourceFormat,e=[u._getVersionSign()]}else a=o.get("data",!0),s=Zt(a)?Af:xf,e=[];var c=this._getSourceMetaRawOption()||{},h=l&&l.metaRawOption||{},d=Jt(c.seriesLayoutBy,h.seriesLayoutBy)||null,p=Jt(c.sourceHeader,h.sourceHeader),f=Jt(c.dimensions,h.dimensions),g=d!==h.seriesLayoutBy||!!p!==!!h.sourceHeader||f;t=g?[Kg(a,{seriesLayoutBy:d,sourceHeader:p,dimensions:f},s)]:[]}else{var v=n;if(i){var m=this._applyTransform(r);t=m.sourceList,e=m.upstreamSignList}else{var y=v.get("source",!0);t=[Kg(y,this._getSourceMetaRawOption(),null)],e=[]}}this._setLocalSource(t,e)},t.prototype._applyTransform=function(t){var e,n=this._sourceHost,r=n.get("transform",!0),i=n.get("fromTransformResult",!0);if(null!=i){var o="";1!==t.length&&lm(o)}var a=[],s=[];return Pt(t,(function(t){t.prepareSource();var e=t.getSource(i||0),n="";null==i||e||lm(n),a.push(e),s.push(t._getVersionSign())})),r?e=Vv(r,a,{datasetIndex:n.componentIndex}):null!=i&&(e=[tv(a[0])]),{sourceList:e,upstreamSignList:s}},t.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),e=0;e<t.length;e++){var n=t[e];if(n._isDirty()||this._upstreamSignList[e]!==n._getVersionSign())return!0}},t.prototype.getSource=function(t){t=t||0;var e=this._sourceList[t];if(!e){var n=this._getUpstreamSourceManagers();return n[0]&&n[0].getSource(t)}return e},t.prototype.getSharedDataStore=function(t){var e=t.makeStoreSchema();return this._innerGetDataStore(e.dimensions,t.source,e.hash)},t.prototype._innerGetDataStore=function(t,e,n){var r=0,i=this._storeList,o=i[r];o||(o=i[r]={});var a=o[n];if(!a){var s=this._getUpstreamSourceManagers()[0];sm(this._sourceHost)&&s?a=s._innerGetDataStore(t,e,n):(a=new im,a.initData(new sv(e,t.length),t)),o[n]=a}return a},t.prototype._getUpstreamSourceManagers=function(){var t=this._sourceHost;if(sm(t)){var e=Rf(t);return e?[e.getSourceManager()]:[]}return It(Df(t),(function(t){return t.getSourceManager()}))},t.prototype._getSourceMetaRawOption=function(){var t,e,n,r=this._sourceHost;if(sm(r))t=r.get("seriesLayoutBy",!0),e=r.get("sourceHeader",!0),n=r.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var i=r;t=i.get("seriesLayoutBy",!0),e=i.get("sourceHeader",!0),n=i.get("dimensions",!0)}return{seriesLayoutBy:t,sourceHeader:e,dimensions:n}},t}();function am(t){var e=t.option.transform;e&&ae(t.option.transform)}function sm(t){return"series"===t.mainType}function lm(t){throw new Error(t)}var um="line-height:1";function cm(t,e){var n=t.color||"#6e7079",r=t.fontSize||12,i=t.fontWeight||"400",o=t.color||"#464646",a=t.fontSize||14,s=t.fontWeight||"900";return"html"===e?{nameStyle:"font-size:"+ln(r+"")+"px;color:"+ln(n)+";font-weight:"+ln(i+""),valueStyle:"font-size:"+ln(a+"")+"px;color:"+ln(o)+";font-weight:"+ln(s+"")}:{nameStyle:{fontSize:r,fill:n,fontWeight:i},valueStyle:{fontSize:a,fill:o,fontWeight:s}}}var hm=[0,10,20,30],dm=["","\n","\n\n","\n\n\n"];function pm(t,e){return e.type=t,e}function fm(t){return"section"===t.type}function gm(t){return fm(t)?mm:ym}function vm(t){if(fm(t)){var e=0,n=t.blocks.length,r=n>1||n>0&&!t.noHeader;return Pt(t.blocks,(function(t){var n=vm(t);n>=e&&(e=n+ +(r&&(!n||fm(t)&&!t.noHeader)))})),e}return 0}function mm(t,e,n,r){var i=e.noHeader,o=_m(vm(e)),a=[],s=e.blocks||[];re(!s||Bt(s)),s=s||[];var l=t.orderMode;if(e.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(ve(u,l)){var c=new $v(u[l],null);s.sort((function(t,e){return c.evaluate(t.sortParam,e.sortParam)}))}else"seriesDesc"===l&&s.reverse()}Pt(s,(function(n,i){var s=e.valueFormatter,l=gm(n)(s?Ot(Ot({},t),{valueFormatter:s}):t,n,i>0?o.html:0,r);null!=l&&a.push(l)}));var h="richText"===t.renderMode?a.join(o.richText):xm(a.join(""),i?n:o.html);if(i)return h;var d=Vp(e.header,"ordinal",t.useUTC),p=cm(r,t.renderMode).nameStyle;return"richText"===t.renderMode?Sm(t,d,p)+o.richText+h:xm('<div style="'+p+";"+um+';">'+ln(d)+"</div>"+h,n)}function ym(t,e,n,r){var i=t.renderMode,o=e.noName,a=e.noValue,s=!e.markerType,l=e.name,u=t.useUTC,c=e.valueFormatter||t.valueFormatter||function(t){return t=Bt(t)?t:[t],It(t,(function(t,e){return Vp(t,Bt(p)?p[e]:p,u)}))};if(!o||!a){var h=s?"":t.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||"#333",i),d=o?"":Vp(l,"ordinal",u),p=e.valueType,f=a?[]:c(e.value,e.dataIndex),g=!s||!o,v=!s&&o,m=cm(r,i),y=m.nameStyle,b=m.valueStyle;return"richText"===i?(s?"":h)+(o?"":Sm(t,d,y))+(a?"":Am(t,f,g,v,b)):xm((s?"":h)+(o?"":wm(d,!s,y))+(a?"":Om(f,g,v,b)),n)}}function bm(t,e,n,r,i,o){if(t){var a=gm(t),s={useUTC:i,renderMode:n,orderMode:r,markupStyleCreator:e,valueFormatter:t.valueFormatter};return a(s,t,0,o)}}function _m(t){return{html:hm[t],richText:dm[t]}}function xm(t,e){var n='<div style="clear:both"></div>',r="margin: "+e+"px 0 0";return'<div style="'+r+";"+um+';">'+t+n+"</div>"}function wm(t,e,n){var r=e?"margin-left:2px":"";return'<span style="'+n+";"+r+'">'+ln(t)+"</span>"}function Om(t,e,n,r){var i=n?"10px":"20px",o=e?"float:right;margin-left:"+i:"";return t=Bt(t)?t:[t],'<span style="'+o+";"+r+'">'+It(t,(function(t){return ln(t)})).join("&nbsp;&nbsp;")+"</span>"}function Sm(t,e,n){return t.markupStyleCreator.wrapRichTextStyle(e,n)}function Am(t,e,n,r,i){var o=[i],a=r?10:20;return n&&o.push({padding:[0,0,0,a],align:"right"}),t.markupStyleCreator.wrapRichTextStyle(Bt(e)?e.join(" "):e,o)}function km(t,e){var n=t.getData().getItemVisual(e,"style"),r=n[t.visualDrawType];return qp(r)}function Cm(t,e){var n=t.get("padding");return null!=n?n:"richText"===e?[8,10]:10}var Mm=function(){function t(){this.richTextStyles={},this._nextStyleNameId=ws()}return t.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},t.prototype.makeTooltipMarker=function(t,e,n){var r="richText"===n?this._generateStyleName():null,i=Xp({color:e,type:t,renderMode:n,markerId:r});return Wt(i)?i:(this.richTextStyles[r]=i.style,i.content)},t.prototype.wrapRichTextStyle=function(t,e){var n={};Bt(e)?Pt(e,(function(t){return Ot(n,t)})):Ot(n,e);var r=this._generateStyleName();return this.richTextStyles[r]=n,"{"+r+"|"+t+"}"},t}();function Tm(t){var e,n,r,i,o=t.series,a=t.dataIndex,s=t.multipleSeries,l=o.getData(),u=l.mapDimensionsAll("defaultedTooltip"),c=u.length,h=o.getRawValue(a),d=Bt(h),p=km(o,a);if(c>1||d&&!c){var f=Pm(h,o,a,u,p);e=f.inlineValues,n=f.inlineValueTypes,r=f.blocks,i=f.inlineValues[0]}else if(c){var g=l.getDimensionInfo(u[0]);i=e=yv(l,a,u[0]),n=g.type}else i=e=d?h[0]:h;var v=Vs(o),m=v&&o.name||"",y=l.getName(a),b=s?m:y;return pm("section",{header:m,noHeader:s||!v,sortParam:i,blocks:[pm("nameValue",{markerType:"item",markerColor:p,name:b,noName:!ie(b),value:e,valueType:n,dataIndex:a})].concat(r||[])})}function Pm(t,e,n,r,i){var o=e.getData(),a=$t(t,(function(t,e,n){var r=o.getDimensionInfo(n);return t||r&&!1!==r.tooltip&&null!=r.displayName}),!1),s=[],l=[],u=[];function c(t,e){var n=o.getDimensionInfo(e);n&&!1!==n.otherDims.tooltip&&(a?u.push(pm("nameValue",{markerType:"subItem",markerColor:i,name:n.displayName,value:t,valueType:n.type})):(s.push(t),l.push(n.type)))}return r.length?Pt(r,(function(t){c(yv(o,n,t),t)})):Pt(t,c),{inlineValues:s,inlineValueTypes:l,blocks:u}}var Im=Ys();function $m(t,e){return t.getName(e)||t.getId(e)}var Em="__universalTransitionEnabled",Rm=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._selectedDataIndicesMap={},e}return Q(e,t),e.prototype.init=function(t,e,n){this.seriesIndex=this.componentIndex,this.dataTask=wv({count:Nm,reset:zm}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(t,n);var r=Im(this).sourceManager=new om(this);r.prepareSource();var i=this.getInitialData(t,n);Fm(i,this),this.dataTask.context.data=i,Im(this).dataBeforeProcessed=i,Dm(this),this._initSelectedMapFromData(i)},e.prototype.mergeDefaultAndTheme=function(t,e){var n=uf(this),r=n?hf(t):{},i=this.subType;vf.hasClass(i)&&(i+="Series"),xt(t,e.getTheme().get(this.subType)),xt(t,this.getDefaultOption()),Ts(t,"label",["show"]),this.fillDataTextStyle(t.data),n&&cf(t,r,n)},e.prototype.mergeOption=function(t,e){t=xt(this.option,t,!0),this.fillDataTextStyle(t.data);var n=uf(this);n&&cf(this.option,t,n);var r=Im(this).sourceManager;r.dirty(),r.prepareSource();var i=this.getInitialData(t,e);Fm(i,this),this.dataTask.dirty(),this.dataTask.context.data=i,Im(this).dataBeforeProcessed=i,Dm(this),this._initSelectedMapFromData(i)},e.prototype.fillDataTextStyle=function(t){if(t&&!Zt(t))for(var e=["show"],n=0;n<t.length;n++)t[n]&&t[n].label&&Ts(t[n],"label",e)},e.prototype.getInitialData=function(t,e){},e.prototype.appendData=function(t){var e=this.getRawData();e.appendData(t.data)},e.prototype.getData=function(t){var e=jm(this);if(e){var n=e.context.data;return null!=t&&n.getLinkedData?n.getLinkedData(t):n}return Im(this).data},e.prototype.getAllData=function(){var t=this.getData();return t&&t.getLinkedDataAll?t.getLinkedDataAll():[{data:t}]},e.prototype.setData=function(t){var e=jm(this);if(e){var n=e.context;n.outputData=t,e!==this.dataTask&&(n.data=t)}Im(this).data=t},e.prototype.getEncode=function(){var t=this.get("encode",!0);if(t)return de(t)},e.prototype.getSourceManager=function(){return Im(this).sourceManager},e.prototype.getSource=function(){return this.getSourceManager().getSource()},e.prototype.getRawData=function(){return Im(this).dataBeforeProcessed},e.prototype.getColorBy=function(){var t=this.get("colorBy");return t||"series"},e.prototype.isColorBySeries=function(){return"series"===this.getColorBy()},e.prototype.getBaseAxis=function(){var t=this.coordinateSystem;return t&&t.getBaseAxis&&t.getBaseAxis()},e.prototype.formatTooltip=function(t,e,n){return Tm({series:this,dataIndex:t,multipleSeries:e})},e.prototype.isAnimationEnabled=function(){var t=this.ecModel;if(U.node&&(!t||!t.ssr))return!1;var e=this.getShallow("animation");return e&&this.getData().count()>this.getShallow("animationThreshold")&&(e=!1),!!e},e.prototype.restoreData=function(){this.dataTask.dirty()},e.prototype.getColorFromPalette=function(t,e,n){var r=this.ecModel,i=Zf.prototype.getColorFromPalette.call(this,t,e,n);return i||(i=r.getColorFromPalette(t,e,n)),i},e.prototype.coordDimToDataDim=function(t){return this.getRawData().mapDimensionsAll(t)},e.prototype.getProgressive=function(){return this.get("progressive")},e.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},e.prototype.select=function(t,e){this._innerSelect(this.getData(e),t)},e.prototype.unselect=function(t,e){var n=this.option.selectedMap;if(n){var r=this.option.selectedMode,i=this.getData(e);if("series"===r||"all"===n)return this.option.selectedMap={},void(this._selectedDataIndicesMap={});for(var o=0;o<t.length;o++){var a=t[o],s=$m(i,a);n[s]=!1,this._selectedDataIndicesMap[s]=-1}}},e.prototype.toggleSelect=function(t,e){for(var n=[],r=0;r<t.length;r++)n[0]=t[r],this.isSelected(t[r],e)?this.unselect(n,e):this.select(n,e)},e.prototype.getSelectedDataIndices=function(){if("all"===this.option.selectedMap)return[].slice.call(this.getData().getIndices());for(var t=this._selectedDataIndicesMap,e=Dt(t),n=[],r=0;r<e.length;r++){var i=t[e[r]];i>=0&&n.push(i)}return n},e.prototype.isSelected=function(t,e){var n=this.option.selectedMap;if(!n)return!1;var r=this.getData(e);return("all"===n||n[$m(r,t)])&&!r.getItemModel(t).get(["select","disabled"])},e.prototype.isUniversalTransitionEnabled=function(){if(this[Em])return!0;var t=this.option.universalTransition;return!!t&&(!0===t||t&&t.enabled)},e.prototype._innerSelect=function(t,e){var n,r,i=this.option,o=i.selectedMode,a=e.length;if(o&&a)if("series"===o)i.selectedMap="all";else if("multiple"===o){Qt(i.selectedMap)||(i.selectedMap={});for(var s=i.selectedMap,l=0;l<a;l++){var u=e[l],c=$m(t,u);s[c]=!0,this._selectedDataIndicesMap[c]=t.getRawIndex(u)}}else if("single"===o||!0===o){var h=e[a-1];c=$m(t,h);i.selectedMap=(n={},n[c]=!0,n),this._selectedDataIndicesMap=(r={},r[c]=t.getRawIndex(h),r)}},e.prototype._initSelectedMapFromData=function(t){if(!this.option.selectedMap){var e=[];t.hasItemOption&&t.each((function(n){var r=t.getRawDataItem(n);r&&r.selected&&e.push(n)})),e.length>0&&this._innerSelect(t,e)}},e.registerClass=function(t){return vf.registerClass(t)},e.protoInitialize=function(){var t=e.prototype;t.type="series.__base__",t.seriesIndex=0,t.ignoreStyleOnData=!1,t.hasSymbolVisual=!1,t.defaultSymbol="circle",t.visualStyleAccessPath="itemStyle",t.visualDrawType="fill"}(),e}(vf);function Dm(t){var e=t.name;Vs(t)||(t.name=Lm(t)||e)}function Lm(t){var e=t.getRawData(),n=e.mapDimensionsAll("seriesName"),r=[];return Pt(n,(function(t){var n=e.getDimensionInfo(t);n.displayName&&r.push(n.displayName)})),r.join(" ")}function Nm(t){return t.model.getRawData().count()}function zm(t){var e=t.model;return e.setData(e.getRawData().cloneShallow()),Bm}function Bm(t,e){e.outputData&&t.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function Fm(t,e){Pt(pe(t.CHANGABLE_METHODS,t.DOWNSAMPLE_METHODS),(function(n){t.wrapMethod(n,zt(Wm,e))}))}function Wm(t,e){var n=jm(t);return n&&n.setOutputEnd((e||this).count()),e}function jm(t){var e=(t.ecModel||{}).scheduler,n=e&&e.getPipeline(t.uid);if(n){var r=n.currentTask;if(r){var i=r.agentStubMap;i&&(r=i.get(t.uid))}return r}}Mt(Rm,_v),Mt(Rm,Zf),vl(Rm,vf);var Vm=Rm,Qm=function(){function t(){this.group=new La,this.uid=Zd("viewComponent")}return t.prototype.init=function(t,e){},t.prototype.render=function(t,e,n,r){},t.prototype.dispose=function(t,e){},t.prototype.updateView=function(t,e,n,r){},t.prototype.updateLayout=function(t,e,n,r){},t.prototype.updateVisual=function(t,e,n,r){},t.prototype.toggleBlurSeries=function(t,e,n){},t.prototype.eachRendered=function(t){var e=this.group;e&&e.traverse(t)},t}();fl(Qm),xl(Qm);var Hm=Qm;function Zm(){var t=Ys();return function(e){var n=t(e),r=e.pipelineContext,i=!!n.large,o=!!n.progressiveRender,a=n.large=!(!r||!r.large),s=n.progressiveRender=!(!r||!r.progressiveRender);return!(i===a&&o===s)&&"reset"}}var Gm=Lu.CMD,Xm=[[],[],[]],Um=Math.sqrt,Ym=Math.atan2;function qm(t,e){if(e){var n,r,i,o,a,s,l=t.data,u=t.len(),c=Gm.M,h=Gm.C,d=Gm.L,p=Gm.R,f=Gm.A,g=Gm.Q;for(i=0,o=0;i<u;){switch(n=l[i++],o=i,r=0,n){case c:r=1;break;case d:r=1;break;case h:r=3;break;case g:r=2;break;case f:var v=e[4],m=e[5],y=Um(e[0]*e[0]+e[1]*e[1]),b=Um(e[2]*e[2]+e[3]*e[3]),_=Ym(-e[1]/b,e[0]/y);l[i]*=y,l[i++]+=v,l[i]*=b,l[i++]+=m,l[i++]*=y,l[i++]*=b,l[i++]+=_,l[i++]+=_,i+=2,o=i;break;case p:s[0]=l[i++],s[1]=l[i++],We(s,s,e),l[o++]=s[0],l[o++]=s[1],s[0]+=l[i++],s[1]+=l[i++],We(s,s,e),l[o++]=s[0],l[o++]=s[1]}for(a=0;a<r;a++){var x=Xm[a];x[0]=l[i++],x[1]=l[i++],We(x,x,e),l[o++]=x[0],l[o++]=x[1]}}t.increaseVersion()}}var Km=Math.sqrt,Jm=Math.sin,ty=Math.cos,ey=Math.PI;function ny(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function ry(t,e){return(t[0]*e[0]+t[1]*e[1])/(ny(t)*ny(e))}function iy(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(ry(t,e))}function oy(t,e,n,r,i,o,a,s,l,u,c){var h=l*(ey/180),d=ty(h)*(t-n)/2+Jm(h)*(e-r)/2,p=-1*Jm(h)*(t-n)/2+ty(h)*(e-r)/2,f=d*d/(a*a)+p*p/(s*s);f>1&&(a*=Km(f),s*=Km(f));var g=(i===o?-1:1)*Km((a*a*(s*s)-a*a*(p*p)-s*s*(d*d))/(a*a*(p*p)+s*s*(d*d)))||0,v=g*a*p/s,m=g*-s*d/a,y=(t+n)/2+ty(h)*v-Jm(h)*m,b=(e+r)/2+Jm(h)*v+ty(h)*m,_=iy([1,0],[(d-v)/a,(p-m)/s]),x=[(d-v)/a,(p-m)/s],w=[(-1*d-v)/a,(-1*p-m)/s],O=iy(x,w);if(ry(x,w)<=-1&&(O=ey),ry(x,w)>=1&&(O=0),O<0){var S=Math.round(O/ey*1e6)/1e6;O=2*ey+S%2*ey}c.addData(u,y,b,a,s,_,O,h,o)}var ay=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,sy=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function ly(t){var e=new Lu;if(!t)return e;var n,r=0,i=0,o=r,a=i,s=Lu.CMD,l=t.match(ay);if(!l)return e;for(var u=0;u<l.length;u++){for(var c=l[u],h=c.charAt(0),d=void 0,p=c.match(sy)||[],f=p.length,g=0;g<f;g++)p[g]=parseFloat(p[g]);var v=0;while(v<f){var m=void 0,y=void 0,b=void 0,_=void 0,x=void 0,w=void 0,O=void 0,S=r,A=i,k=void 0,C=void 0;switch(h){case"l":r+=p[v++],i+=p[v++],d=s.L,e.addData(d,r,i);break;case"L":r=p[v++],i=p[v++],d=s.L,e.addData(d,r,i);break;case"m":r+=p[v++],i+=p[v++],d=s.M,e.addData(d,r,i),o=r,a=i,h="l";break;case"M":r=p[v++],i=p[v++],d=s.M,e.addData(d,r,i),o=r,a=i,h="L";break;case"h":r+=p[v++],d=s.L,e.addData(d,r,i);break;case"H":r=p[v++],d=s.L,e.addData(d,r,i);break;case"v":i+=p[v++],d=s.L,e.addData(d,r,i);break;case"V":i=p[v++],d=s.L,e.addData(d,r,i);break;case"C":d=s.C,e.addData(d,p[v++],p[v++],p[v++],p[v++],p[v++],p[v++]),r=p[v-2],i=p[v-1];break;case"c":d=s.C,e.addData(d,p[v++]+r,p[v++]+i,p[v++]+r,p[v++]+i,p[v++]+r,p[v++]+i),r+=p[v-2],i+=p[v-1];break;case"S":m=r,y=i,k=e.len(),C=e.data,n===s.C&&(m+=r-C[k-4],y+=i-C[k-3]),d=s.C,S=p[v++],A=p[v++],r=p[v++],i=p[v++],e.addData(d,m,y,S,A,r,i);break;case"s":m=r,y=i,k=e.len(),C=e.data,n===s.C&&(m+=r-C[k-4],y+=i-C[k-3]),d=s.C,S=r+p[v++],A=i+p[v++],r+=p[v++],i+=p[v++],e.addData(d,m,y,S,A,r,i);break;case"Q":S=p[v++],A=p[v++],r=p[v++],i=p[v++],d=s.Q,e.addData(d,S,A,r,i);break;case"q":S=p[v++]+r,A=p[v++]+i,r+=p[v++],i+=p[v++],d=s.Q,e.addData(d,S,A,r,i);break;case"T":m=r,y=i,k=e.len(),C=e.data,n===s.Q&&(m+=r-C[k-4],y+=i-C[k-3]),r=p[v++],i=p[v++],d=s.Q,e.addData(d,m,y,r,i);break;case"t":m=r,y=i,k=e.len(),C=e.data,n===s.Q&&(m+=r-C[k-4],y+=i-C[k-3]),r+=p[v++],i+=p[v++],d=s.Q,e.addData(d,m,y,r,i);break;case"A":b=p[v++],_=p[v++],x=p[v++],w=p[v++],O=p[v++],S=r,A=i,r=p[v++],i=p[v++],d=s.A,oy(S,A,r,i,w,O,b,_,x,d,e);break;case"a":b=p[v++],_=p[v++],x=p[v++],w=p[v++],O=p[v++],S=r,A=i,r+=p[v++],i+=p[v++],d=s.A,oy(S,A,r,i,w,O,b,_,x,d,e);break}}"z"!==h&&"Z"!==h||(d=s.Z,e.addData(d),r=o,i=a),n=d}return e.toStatic(),e}var uy=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Q(e,t),e.prototype.applyTransform=function(t){},e}(lc);function cy(t){return null!=t.setData}function hy(t,e){var n=ly(t),r=Ot({},e);return r.buildPath=function(t){if(cy(t)){t.setData(n.data);var e=t.getContext();e&&t.rebuildPath(e,1)}else{e=t;n.rebuildPath(e,1)}},r.applyTransform=function(t){qm(n,t),this.dirtyShape()},r}function dy(t,e){return new uy(hy(t,e))}function py(t,e){var n=hy(t,e),r=function(t){function e(e){var r=t.call(this,e)||this;return r.applyTransform=n.applyTransform,r.buildPath=n.buildPath,r}return Q(e,t),e}(uy);return r}function fy(t,e){for(var n=[],r=t.length,i=0;i<r;i++){var o=t[i];n.push(o.getUpdatedPathProxy(!0))}var a=new lc(e);return a.createPathProxy(),a.buildPath=function(t){if(cy(t)){t.appendPath(n);var e=t.getContext();e&&t.rebuildPath(e,1)}},a}function gy(t,e){e=e||{};var n=new lc;return t.shape&&n.setShape(t.shape),n.setStyle(t.style),e.bakeTransform?qm(n.path,t.getComputedTransform()):e.toLocal?n.setLocalTransform(t.getComputedTransform()):n.copyTransform(t),n.buildPath=t.buildPath,n.applyTransform=n.applyTransform,n.z=t.z,n.z2=t.z2,n.zlevel=t.zlevel,n}var vy=function(){function t(){this.cx=0,this.cy=0,this.r=0}return t}(),my=function(t){function e(e){return t.call(this,e)||this}return Q(e,t),e.prototype.getDefaultShape=function(){return new vy},e.prototype.buildPath=function(t,e){t.moveTo(e.cx+e.r,e.cy),t.arc(e.cx,e.cy,e.r,0,2*Math.PI)},e}(lc);my.prototype.type="circle";var yy=my,by=function(){function t(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return t}(),_y=function(t){function e(e){return t.call(this,e)||this}return Q(e,t),e.prototype.getDefaultShape=function(){return new by},e.prototype.buildPath=function(t,e){var n=.5522848,r=e.cx,i=e.cy,o=e.rx,a=e.ry,s=o*n,l=a*n;t.moveTo(r-o,i),t.bezierCurveTo(r-o,i-l,r-s,i-a,r,i-a),t.bezierCurveTo(r+s,i-a,r+o,i-l,r+o,i),t.bezierCurveTo(r+o,i+l,r+s,i+a,r,i+a),t.bezierCurveTo(r-s,i+a,r-o,i+l,r-o,i),t.closePath()},e}(lc);_y.prototype.type="ellipse";var xy=_y,wy=Math.PI,Oy=2*wy,Sy=Math.sin,Ay=Math.cos,ky=Math.acos,Cy=Math.atan2,My=Math.abs,Ty=Math.sqrt,Py=Math.max,Iy=Math.min,$y=1e-4;function Ey(t,e,n,r,i,o,a,s){var l=n-t,u=r-e,c=a-i,h=s-o,d=h*l-c*u;if(!(d*d<$y))return d=(c*(e-o)-h*(t-i))/d,[t+d*l,e+d*u]}function Ry(t,e,n,r,i,o,a){var s=t-n,l=e-r,u=(a?o:-o)/Ty(s*s+l*l),c=u*l,h=-u*s,d=t+c,p=e+h,f=n+c,g=r+h,v=(d+f)/2,m=(p+g)/2,y=f-d,b=g-p,_=y*y+b*b,x=i-o,w=d*g-f*p,O=(b<0?-1:1)*Ty(Py(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-v,T=A-m,P=k-v,I=C-m;return M*M+T*T>P*P+I*I&&(S=k,A=C),{cx:S,cy:A,x0:-c,y0:-h,x1:S*(i/x-1),y1:A*(i/x-1)}}function Dy(t){var e;if(Bt(t)){var n=t.length;if(!n)return t;e=1===n?[t[0],t[0],0,0]:2===n?[t[0],t[0],t[1],t[1]]:3===n?t.concat(t[2]):t}else e=[t,t,t,t];return e}function Ly(t,e){var n,r=Py(e.r,0),i=Py(e.r0||0,0),o=r>0,a=i>0;if(o||a){if(o||(r=i,i=0),i>r){var s=r;r=i,i=s}var l=e.startAngle,u=e.endAngle;if(!isNaN(l)&&!isNaN(u)){var c=e.cx,h=e.cy,d=!!e.clockwise,p=My(u-l),f=p>Oy&&p%Oy;if(f>$y&&(p=f),r>$y)if(p>Oy-$y)t.moveTo(c+r*Ay(l),h+r*Sy(l)),t.arc(c,h,r,l,u,!d),i>$y&&(t.moveTo(c+i*Ay(u),h+i*Sy(u)),t.arc(c,h,i,u,l,d));else{var g=void 0,v=void 0,m=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*Ay(l),$=r*Sy(l),E=i*Ay(u),R=i*Sy(u),D=p>$y;if(D){var L=e.cornerRadius;L&&(n=Dy(L),g=n[0],v=n[1],m=n[2],y=n[3]);var N=My(r-i)/2;if(b=Iy(N,m),_=Iy(N,y),x=Iy(N,g),w=Iy(N,v),A=O=Py(b,_),k=S=Py(x,w),(O>$y||S>$y)&&(C=r*Ay(u),M=r*Sy(u),T=i*Ay(l),P=i*Sy(l),p<wy)){var z=Ey(I,$,T,P,C,M,E,R);if(z){var B=I-z[0],F=$-z[1],W=C-z[0],j=M-z[1],V=1/Sy(ky((B*W+F*j)/(Ty(B*B+F*F)*Ty(W*W+j*j)))/2),Q=Ty(z[0]*z[0]+z[1]*z[1]);A=Iy(O,(r-Q)/(V+1)),k=Iy(S,(i-Q)/(V-1))}}}if(D)if(A>$y){var H=Iy(m,A),Z=Iy(y,A),G=Ry(T,P,I,$,r,H,d),X=Ry(C,M,E,R,r,Z,d);t.moveTo(c+G.cx+G.x0,h+G.cy+G.y0),A<O&&H===Z?t.arc(c+G.cx,h+G.cy,A,Cy(G.y0,G.x0),Cy(X.y0,X.x0),!d):(H>0&&t.arc(c+G.cx,h+G.cy,H,Cy(G.y0,G.x0),Cy(G.y1,G.x1),!d),t.arc(c,h,r,Cy(G.cy+G.y1,G.cx+G.x1),Cy(X.cy+X.y1,X.cx+X.x1),!d),Z>0&&t.arc(c+X.cx,h+X.cy,Z,Cy(X.y1,X.x1),Cy(X.y0,X.x0),!d))}else t.moveTo(c+I,h+$),t.arc(c,h,r,l,u,!d);else t.moveTo(c+I,h+$);if(i>$y&&D)if(k>$y){H=Iy(g,k),Z=Iy(v,k),G=Ry(E,R,C,M,i,-Z,d),X=Ry(I,$,T,P,i,-H,d);t.lineTo(c+G.cx+G.x0,h+G.cy+G.y0),k<S&&H===Z?t.arc(c+G.cx,h+G.cy,k,Cy(G.y0,G.x0),Cy(X.y0,X.x0),!d):(Z>0&&t.arc(c+G.cx,h+G.cy,Z,Cy(G.y0,G.x0),Cy(G.y1,G.x1),!d),t.arc(c,h,i,Cy(G.cy+G.y1,G.cx+G.x1),Cy(X.cy+X.y1,X.cx+X.x1),d),H>0&&t.arc(c+X.cx,h+X.cy,H,Cy(X.y1,X.x1),Cy(X.y0,X.x0),!d))}else t.lineTo(c+E,h+R),t.arc(c,h,i,u,l,d);else t.lineTo(c+E,h+R)}else t.moveTo(c,h);t.closePath()}}}var Ny=function(){function t(){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 t}(),zy=function(t){function e(e){return t.call(this,e)||this}return Q(e,t),e.prototype.getDefaultShape=function(){return new Ny},e.prototype.buildPath=function(t,e){Ly(t,e)},e.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},e}(lc);zy.prototype.type="sector";var By=zy,Fy=function(){function t(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return t}(),Wy=function(t){function e(e){return t.call(this,e)||this}return Q(e,t),e.prototype.getDefaultShape=function(){return new Fy},e.prototype.buildPath=function(t,e){var n=e.cx,r=e.cy,i=2*Math.PI;t.moveTo(n+e.r,r),t.arc(n,r,e.r,0,i,!1),t.moveTo(n+e.r0,r),t.arc(n,r,e.r0,0,i,!0)},e}(lc);Wy.prototype.type="ring";var jy=Wy;function Vy(t,e,n,r){var i,o,a,s,l=[],u=[],c=[],h=[];if(r){a=[1/0,1/0],s=[-1/0,-1/0];for(var d=0,p=t.length;d<p;d++)je(a,a,t[d]),Ve(s,s,t[d]);je(a,a,r[0]),Ve(s,s,r[1])}for(d=0,p=t.length;d<p;d++){var f=t[d];if(n)i=t[d?d-1:p-1],o=t[(d+1)%p];else{if(0===d||d===p-1){l.push(xe(t[d]));continue}i=t[d-1],o=t[d+1]}Ae(u,o,i),Ee(u,u,e);var g=De(f,i),v=De(f,o),m=g+v;0!==m&&(g/=m,v/=m),Ee(c,u,-g),Ee(h,u,v);var y=Oe([],f,c),b=Oe([],f,h);r&&(Ve(y,y,a),je(y,y,s),Ve(b,b,a),je(b,b,s)),l.push(y),l.push(b)}return n&&l.push(l.shift()),l}function Qy(t,e,n){var r=e.smooth,i=e.points;if(i&&i.length>=2){if(r){var o=Vy(i,r,n,e.smoothConstraint);t.moveTo(i[0][0],i[0][1]);for(var a=i.length,s=0;s<(n?a:a-1);s++){var l=o[2*s],u=o[2*s+1],c=i[(s+1)%a];t.bezierCurveTo(l[0],l[1],u[0],u[1],c[0],c[1])}}else{t.moveTo(i[0][0],i[0][1]);s=1;for(var h=i.length;s<h;s++)t.lineTo(i[s][0],i[s][1])}n&&t.closePath()}}var Hy=function(){function t(){this.points=null,this.smooth=0,this.smoothConstraint=null}return t}(),Zy=function(t){function e(e){return t.call(this,e)||this}return Q(e,t),e.prototype.getDefaultShape=function(){return new Hy},e.prototype.buildPath=function(t,e){Qy(t,e,!0)},e}(lc);Zy.prototype.type="polygon";var Gy=Zy,Xy=function(){function t(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return t}(),Uy=function(t){function e(e){return t.call(this,e)||this}return Q(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new Xy},e.prototype.buildPath=function(t,e){Qy(t,e,!1)},e}(lc);Uy.prototype.type="polyline";var Yy=Uy,qy={},Ky=function(){function t(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return t}(),Jy=function(t){function e(e){return t.call(this,e)||this}return Q(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new Ky},e.prototype.buildPath=function(t,e){var n,r,i,o;if(this.subPixelOptimize){var a=bc(qy,e,this.style);n=a.x1,r=a.y1,i=a.x2,o=a.y2}else n=e.x1,r=e.y1,i=e.x2,o=e.y2;var s=e.percent;0!==s&&(t.moveTo(n,r),s<1&&(i=n*(1-s)+i*s,o=r*(1-s)+o*s),t.lineTo(i,o))},e.prototype.pointAt=function(t){var e=this.shape;return[e.x1*(1-t)+e.x2*t,e.y1*(1-t)+e.y2*t]},e}(lc);Jy.prototype.type="line";var tb=Jy,eb=[],nb=function(){function t(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1}return t}();function rb(t,e,n){var r=t.cpx2,i=t.cpy2;return null!=r||null!=i?[(n?zr:Nr)(t.x1,t.cpx1,t.cpx2,t.x2,e),(n?zr:Nr)(t.y1,t.cpy1,t.cpy2,t.y2,e)]:[(n?Hr:Qr)(t.x1,t.cpx1,t.x2,e),(n?Hr:Qr)(t.y1,t.cpy1,t.y2,e)]}var ib=function(t){function e(e){return t.call(this,e)||this}return Q(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new nb},e.prototype.buildPath=function(t,e){var n=e.x1,r=e.y1,i=e.x2,o=e.y2,a=e.cpx1,s=e.cpy1,l=e.cpx2,u=e.cpy2,c=e.percent;0!==c&&(t.moveTo(n,r),null==l||null==u?(c<1&&(Xr(n,a,i,c,eb),a=eb[1],i=eb[2],Xr(r,s,o,c,eb),s=eb[1],o=eb[2]),t.quadraticCurveTo(a,s,i,o)):(c<1&&(Wr(n,a,l,i,c,eb),a=eb[1],l=eb[2],i=eb[3],Wr(r,s,u,o,c,eb),s=eb[1],u=eb[2],o=eb[3]),t.bezierCurveTo(a,s,l,u,i,o)))},e.prototype.pointAt=function(t){return rb(this.shape,t,!1)},e.prototype.tangentAt=function(t){var e=rb(this.shape,t,!0);return Re(e,e)},e}(lc);ib.prototype.type="bezier-curve";var ob=ib,ab=function(){function t(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0}return t}(),sb=function(t){function e(e){return t.call(this,e)||this}return Q(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new ab},e.prototype.buildPath=function(t,e){var n=e.cx,r=e.cy,i=Math.max(e.r,0),o=e.startAngle,a=e.endAngle,s=e.clockwise,l=Math.cos(o),u=Math.sin(o);t.moveTo(l*i+n,u*i+r),t.arc(n,r,i,o,a,!s)},e}(lc);sb.prototype.type="arc";var lb=sb,ub=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="compound",e}return Q(e,t),e.prototype._updatePathDirty=function(){for(var t=this.shape.paths,e=this.shapeChanged(),n=0;n<t.length;n++)e=e||t[n].shapeChanged();e&&this.dirtyShape()},e.prototype.beforeBrush=function(){this._updatePathDirty();for(var t=this.shape.paths||[],e=this.getGlobalScale(),n=0;n<t.length;n++)t[n].path||t[n].createPathProxy(),t[n].path.setScale(e[0],e[1],t[n].segmentIgnoreThreshold)},e.prototype.buildPath=function(t,e){for(var n=e.paths||[],r=0;r<n.length;r++)n[r].buildPath(t,n[r].shape,!0)},e.prototype.afterBrush=function(){for(var t=this.shape.paths||[],e=0;e<t.length;e++)t[e].pathUpdated()},e.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),lc.prototype.getBoundingRect.call(this)},e}(lc),cb=ub,hb=function(){function t(t){this.colorStops=t||[]}return t.prototype.addColorStop=function(t,e){this.colorStops.push({offset:t,color:e})},t}(),db=hb,pb=function(t){function e(e,n,r,i,o,a){var s=t.call(this,o)||this;return s.x=null==e?0:e,s.y=null==n?0:n,s.x2=null==r?1:r,s.y2=null==i?0:i,s.type="linear",s.global=a||!1,s}return Q(e,t),e}(db),fb=pb,gb=function(t){function e(e,n,r,i,o){var a=t.call(this,i)||this;return a.x=null==e?.5:e,a.y=null==n?.5:n,a.r=null==r?.5:r,a.type="radial",a.global=o||!1,a}return Q(e,t),e}(db),vb=gb,mb=[0,0],yb=[0,0],bb=new Dn,_b=new Dn,xb=function(){function t(t,e){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new Dn;for(n=0;n<2;n++)this._axes[n]=new Dn;t&&this.fromBoundingRect(t,e)}return t.prototype.fromBoundingRect=function(t,e){var n=this._corners,r=this._axes,i=t.x,o=t.y,a=i+t.width,s=o+t.height;if(n[0].set(i,o),n[1].set(a,o),n[2].set(a,s),n[3].set(i,s),e)for(var l=0;l<4;l++)n[l].transform(e);Dn.sub(r[0],n[1],n[0]),Dn.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])},t.prototype.intersect=function(t,e){var n=!0,r=!e;return bb.set(1/0,1/0),_b.set(0,0),!this._intersectCheckOneSide(this,t,bb,_b,r,1)&&(n=!1,r)||!this._intersectCheckOneSide(t,this,bb,_b,r,-1)&&(n=!1,r)||r||Dn.copy(e,n?bb:_b),n},t.prototype._intersectCheckOneSide=function(t,e,n,r,i,o){for(var a=!0,s=0;s<2;s++){var l=this._axes[s];if(this._getProjMinMaxOnAxis(s,t._corners,mb),this._getProjMinMaxOnAxis(s,e._corners,yb),mb[1]<yb[0]||mb[0]>yb[1]){if(a=!1,i)return a;var u=Math.abs(yb[0]-mb[1]),c=Math.abs(mb[0]-yb[1]);Math.min(u,c)>r.len()&&(u<c?Dn.scale(r,l,-u*o):Dn.scale(r,l,c*o))}else if(n){u=Math.abs(yb[0]-mb[1]),c=Math.abs(mb[0]-yb[1]);Math.min(u,c)<n.len()&&(u<c?Dn.scale(n,l,u*o):Dn.scale(n,l,-c*o))}}return a},t.prototype._getProjMinMaxOnAxis=function(t,e,n){for(var r=this._axes[t],i=this._origin,o=e[0].dot(r)+i[t],a=o,s=o,l=1;l<e.length;l++){var u=e[l].dot(r)+i[t];a=Math.min(u,a),s=Math.max(u,s)}n[0]=a,n[1]=s},t}(),wb=xb,Ob=[],Sb=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.notClear=!0,e.incremental=!0,e._displayables=[],e._temporaryDisplayables=[],e._cursor=0,e}return Q(e,t),e.prototype.traverse=function(t,e){t.call(e,this)},e.prototype.useStyle=function(){this.style={}},e.prototype.getCursor=function(){return this._cursor},e.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},e.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},e.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},e.prototype.addDisplayable=function(t,e){e?this._temporaryDisplayables.push(t):this._displayables.push(t),this.markRedraw()},e.prototype.addDisplayables=function(t,e){e=e||!1;for(var n=0;n<t.length;n++)this.addDisplayable(t[n],e)},e.prototype.getDisplayables=function(){return this._displayables},e.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},e.prototype.eachPendingDisplayable=function(t){for(var e=this._cursor;e<this._displayables.length;e++)t&&t(this._displayables[e]);for(e=0;e<this._temporaryDisplayables.length;e++)t&&t(this._temporaryDisplayables[e])},e.prototype.update=function(){this.updateTransform();for(var t=this._cursor;t<this._displayables.length;t++){var e=this._displayables[t];e.parent=this,e.update(),e.parent=null}for(t=0;t<this._temporaryDisplayables.length;t++){e=this._temporaryDisplayables[t];e.parent=this,e.update(),e.parent=null}},e.prototype.getBoundingRect=function(){if(!this._rect){for(var t=new Hn(1/0,1/0,-1/0,-1/0),e=0;e<this._displayables.length;e++){var n=this._displayables[e],r=n.getBoundingRect().clone();n.needLocalTransform()&&r.applyTransform(n.getLocalTransform(Ob)),t.union(r)}this._rect=t}return this._rect},e.prototype.contain=function(t,e){var n=this.transformCoordToLocal(t,e),r=this.getBoundingRect();if(r.contain(n[0],n[1]))for(var i=0;i<this._displayables.length;i++){var o=this._displayables[i];if(o.contain(t,e))return!0}return!1},e}(eu),Ab=Sb,kb=Math.max,Cb=Math.min,Mb={};function Tb(t){return lc.extend(t)}var Pb=py;function Ib(t,e){return Pb(t,e)}function $b(t,e){Mb[t]=e}function Eb(t){if(Mb.hasOwnProperty(t))return Mb[t]}function Rb(t,e,n,r){var i=dy(t,e);return n&&("center"===r&&(n=Lb(n,i.getBoundingRect())),zb(i,n)),i}function Db(t,e,n){var r=new vc({style:{image:t,x:e.x,y:e.y,width:e.width,height:e.height},onload:function(t){if("center"===n){var i={width:t.width,height:t.height};r.setStyle(Lb(e,i))}}});return r}function Lb(t,e){var n,r=e.width/e.height,i=t.height*r;i<=t.width?n=t.height:(i=t.width,n=i/r);var o=t.x+t.width/2,a=t.y+t.height/2;return{x:o-i/2,y:a-n/2,width:i,height:n}}var Nb=fy;function zb(t,e){if(t.applyTransform){var n=t.getBoundingRect(),r=n.calculateTransform(e);t.applyTransform(r)}}function Bb(t,e){return bc(t,t,{lineWidth:e}),t}function Fb(t){return _c(t.shape,t.shape,t.style),t}var Wb=xc;function jb(t,e){var n=kn([]);while(t&&t!==e)Mn(n,t.getLocalTransform(),n),t=t.parent;return n}function Vb(t,e,n){return e&&!Tt(e)&&(e=ha.getLocalTransform(e)),n&&(e=$n([],e)),We([],t,e)}function Qb(t,e,n){var r=0===e[4]||0===e[5]||0===e[0]?1:Math.abs(2*e[4]/e[0]),i=0===e[4]||0===e[5]||0===e[2]?1:Math.abs(2*e[4]/e[2]),o=["left"===t?-r:"right"===t?r:0,"top"===t?-i:"bottom"===t?i:0];return o=Vb(o,e,n),Math.abs(o[0])>Math.abs(o[1])?o[0]>0?"right":"left":o[1]>0?"bottom":"top"}function Hb(t){return!t.isGroup}function Zb(t){return null!=t.shape}function Gb(t,e,n){if(t&&e){var r=i(t);e.traverse((function(t){if(Hb(t)&&t.anid){var e=r[t.anid];if(e){var i=o(t);t.attr(o(e)),sd(t,i,n,Qc(t).dataIndex)}}}))}function i(t){var e={};return t.traverse((function(t){Hb(t)&&t.anid&&(e[t.anid]=t)})),e}function o(t){var e={x:t.x,y:t.y,rotation:t.rotation};return Zb(t)&&(e.shape=Ot({},t.shape)),e}}function Xb(t,e){return It(t,(function(t){var n=t[0];n=kb(n,e.x),n=Cb(n,e.x+e.width);var r=t[1];return r=kb(r,e.y),r=Cb(r,e.y+e.height),[n,r]}))}function Ub(t,e){var n=kb(t.x,e.x),r=Cb(t.x+t.width,e.x+e.width),i=kb(t.y,e.y),o=Cb(t.y+t.height,e.y+e.height);if(r>=n&&o>=i)return{x:n,y:i,width:r-n,height:o-i}}function Yb(t,e,n){var r=Ot({rectHover:!0},e),i=r.style={strokeNoScale:!0};if(n=n||{x:-1,y:-1,width:2,height:2},t)return 0===t.indexOf("image://")?(i.image=t.slice(8),St(i,n),new vc(r)):Rb(t.replace("path://",""),r,n,"center")}function qb(t,e,n,r,i){for(var o=0,a=i[i.length-1];o<i.length;o++){var s=i[o];if(Kb(t,e,n,r,s[0],s[1],a[0],a[1]))return!0;a=s}}function Kb(t,e,n,r,i,o,a,s){var l=n-t,u=r-e,c=a-i,h=s-o,d=Jb(c,h,l,u);if(t_(d))return!1;var p=t-i,f=e-o,g=Jb(p,f,l,u)/d;if(g<0||g>1)return!1;var v=Jb(p,f,c,h)/d;return!(v<0||v>1)}function Jb(t,e,n,r){return t*r-n*e}function t_(t){return t<=1e-6&&t>=-1e-6}function e_(t){var e=t.itemTooltipOption,n=t.componentModel,r=t.itemName,i=Wt(e)?{formatter:e}:e,o=n.mainType,a=n.componentIndex,s={componentType:o,name:r,$vars:["name"]};s[o+"Index"]=a;var l=t.formatterParamsExtra;l&&Pt(Dt(l),(function(t){ve(s,t)||(s[t]=l[t],s.$vars.push(t))}));var u=Qc(t.el);u.componentMainType=o,u.componentIndex=a,u.tooltipConfig={name:r,option:St({content:r,encodeHTMLContent:!0,formatterParams:s},i)}}function n_(t,e){var n;t.isGroup&&(n=e(t)),n||t.traverse(e)}function r_(t,e){if(t)if(Bt(t))for(var n=0;n<t.length;n++)n_(t[n],e);else n_(t,e)}$b("circle",yy),$b("ellipse",xy),$b("sector",By),$b("ring",jy),$b("polygon",Gy),$b("polyline",Yy),$b("rect",Ac),$b("line",tb),$b("bezierCurve",ob),$b("arc",lb);var i_=Ys(),o_=Zm(),a_=function(){function t(){this.group=new La,this.uid=Zd("viewChart"),this.renderTask=wv({plan:u_,reset:c_}),this.renderTask.context={view:this}}return t.prototype.init=function(t,e){},t.prototype.render=function(t,e,n,r){0},t.prototype.highlight=function(t,e,n,r){var i=t.getData(r&&r.dataType);i&&l_(i,r,"emphasis")},t.prototype.downplay=function(t,e,n,r){var i=t.getData(r&&r.dataType);i&&l_(i,r,"normal")},t.prototype.remove=function(t,e){this.group.removeAll()},t.prototype.dispose=function(t,e){},t.prototype.updateView=function(t,e,n,r){this.render(t,e,n,r)},t.prototype.updateLayout=function(t,e,n,r){this.render(t,e,n,r)},t.prototype.updateVisual=function(t,e,n,r){this.render(t,e,n,r)},t.prototype.eachRendered=function(t){r_(this.group,t)},t.markUpdateMethod=function(t,e){i_(t).updateMethod=e},t.protoInitialize=function(){var e=t.prototype;e.type="chart"}(),t}();function s_(t,e,n){t&&Kh(t)&&("emphasis"===e?Ch:Mh)(t,n)}function l_(t,e,n){var r=Us(t,e),i=e&&null!=e.highlightKey?td(e.highlightKey):null;null!=r?Pt(Ms(r),(function(e){s_(t.getItemGraphicEl(e),n,i)})):t.eachItemGraphicEl((function(t){s_(t,n,i)}))}function u_(t){return o_(t.model)}function c_(t){var e=t.model,n=t.ecModel,r=t.api,i=t.payload,o=e.pipelineContext.progressiveRender,a=t.view,s=i&&i_(i).updateMethod,l=o?"incrementalPrepareRender":s&&a[s]?s:"render";return"render"!==l&&a[l](e,n,r,i),h_[l]}fl(a_,["dispose"]),xl(a_);var h_={incrementalPrepareRender:{progress:function(t,e){e.view.incrementalRender(t,e.model,e.ecModel,e.api,e.payload)}},render:{forceFirstProgress:!0,progress:function(t,e){e.view.render(e.model,e.ecModel,e.api,e.payload)}}},d_=a_,p_="\0__throttleOriginMethod",f_="\0__throttleRate",g_="\0__throttleType";function v_(t,e,n){var r,i,o,a,s,l=0,u=0,c=null;function h(){u=(new Date).getTime(),c=null,t.apply(o,a||[])}e=e||0;var d=function(){for(var t=[],d=0;d<arguments.length;d++)t[d]=arguments[d];r=(new Date).getTime(),o=this,a=t;var p=s||e,f=s||n;s=null,i=r-(f?l:u)-p,clearTimeout(c),f?c=setTimeout(h,p):i>=0?h():c=setTimeout(h,-i),l=r};return d.clear=function(){c&&(clearTimeout(c),c=null)},d.debounceNextCall=function(t){s=t},d}function m_(t,e,n,r){var i=t[e];if(i){var o=i[p_]||i,a=i[g_],s=i[f_];if(s!==n||a!==r){if(null==n||!r)return t[e]=o;i=t[e]=v_(o,n,"debounce"===r),i[p_]=o,i[g_]=r,i[f_]=n}return i}}function y_(t,e){var n=t[e];n&&n[p_]&&(n.clear&&n.clear(),t[e]=n[p_])}var b_=Ys(),__={itemStyle:wl(Fd,!0),lineStyle:wl(Nd,!0)},x_={lineStyle:"stroke",itemStyle:"fill"};function w_(t,e){var n=t.visualStyleMapper||__[e];return n||(console.warn("Unknown style type '"+e+"'."),__.itemStyle)}function O_(t,e){var n=t.visualDrawType||x_[e];return n||(console.warn("Unknown style type '"+e+"'."),"fill")}var S_={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var n=t.getData(),r=t.visualStyleAccessPath||"itemStyle",i=t.getModel(r),o=w_(t,r),a=o(i),s=i.getShallow("decal");s&&(n.setVisual("decal",s),s.dirty=!0);var l=O_(t,r),u=a[l],c=Ft(u)?u:null,h="auto"===a.fill||"auto"===a.stroke;if(!a[l]||c||h){var d=t.getColorFromPalette(t.name,null,e.getSeriesCount());a[l]||(a[l]=d,n.setVisual("colorFromPalette",!0)),a.fill="auto"===a.fill||Ft(a.fill)?d:a.fill,a.stroke="auto"===a.stroke||Ft(a.stroke)?d:a.stroke}if(n.setVisual("style",a),n.setVisual("drawType",l),!e.isSeriesFiltered(t)&&c)return n.setVisual("colorFromPalette",!1),{dataEach:function(e,n){var r=t.getDataParams(n),i=Ot({},a);i[l]=c(r),e.setItemVisual(n,"style",i)}}}},A_=new Qd,k_={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(!t.ignoreStyleOnData&&!e.isSeriesFiltered(t)){var n=t.getData(),r=t.visualStyleAccessPath||"itemStyle",i=w_(t,r),o=n.getVisual("drawType");return{dataEach:n.hasItemOption?function(t,e){var n=t.getRawDataItem(e);if(n&&n[r]){A_.option=n[r];var a=i(A_),s=t.ensureUniqueItemVisual(e,"style");Ot(s,a),A_.option.decal&&(t.setItemVisual(e,"decal",A_.option.decal),A_.option.decal.dirty=!0),o in a&&t.setItemVisual(e,"colorFromPalette",!1)}}:null}}}},C_={performRawSeries:!0,overallReset:function(t){var e=de();t.eachSeries((function(t){var n=t.getColorBy();if(!t.isColorBySeries()){var r=t.type+"-"+n,i=e.get(r);i||(i={},e.set(r,i)),b_(t).scope=i}})),t.eachSeries((function(e){if(!e.isColorBySeries()&&!t.isSeriesFiltered(e)){var n=e.getRawData(),r={},i=e.getData(),o=b_(e).scope,a=e.visualStyleAccessPath||"itemStyle",s=O_(e,a);i.each((function(t){var e=i.getRawIndex(t);r[e]=t})),n.each((function(t){var a=r[t],l=i.getItemVisual(a,"colorFromPalette");if(l){var u=i.ensureUniqueItemVisual(a,"style"),c=n.getName(t)||t+"",h=n.count();u[s]=e.getColorFromPalette(c,o,h)}}))}}))}},M_=Math.PI;function T_(t,e){e=e||{},St(e,{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var n=new La,r=new Ac({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});n.add(r);var i,o=new Vc({style:{text:e.text,fill:e.textColor,fontSize:e.fontSize,fontWeight:e.fontWeight,fontStyle:e.fontStyle,fontFamily:e.fontFamily},zlevel:e.zlevel,z:10001}),a=new Ac({style:{fill:"none"},textContent:o,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});return n.add(a),e.showSpinner&&(i=new lb({shape:{startAngle:-M_/2,endAngle:-M_/2+.1,r:e.spinnerRadius},style:{stroke:e.color,lineCap:"round",lineWidth:e.lineWidth},zlevel:e.zlevel,z:10001}),i.animateShape(!0).when(1e3,{endAngle:3*M_/2}).start("circularInOut"),i.animateShape(!0).when(1e3,{startAngle:3*M_/2}).delay(300).start("circularInOut"),n.add(i)),n.resize=function(){var n=o.getBoundingRect().width,s=e.showSpinner?e.spinnerRadius:0,l=(t.getWidth()-2*s-(e.showSpinner&&n?10:0)-n)/2-(e.showSpinner&&n?0:5+n/2)+(e.showSpinner?0:n/2)+(n?0:s),u=t.getHeight()/2;e.showSpinner&&i.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:t.getWidth(),height:t.getHeight()})},n.resize(),n}var P_=function(){function t(t,e,n,r){this._stageTaskMap=de(),this.ecInstance=t,this.api=e,n=this._dataProcessorHandlers=n.slice(),r=this._visualHandlers=r.slice(),this._allHandlers=n.concat(r)}return t.prototype.restoreData=function(t,e){t.restoreData(e),this._stageTaskMap.each((function(t){var e=t.overallTask;e&&e.dirty()}))},t.prototype.getPerformArgs=function(t,e){if(t.__pipeline){var n=this._pipelineMap.get(t.__pipeline.id),r=n.context,i=!e&&n.progressiveEnabled&&(!r||r.progressiveRender)&&t.__idxInPipeline>n.blockIndex,o=i?n.step:null,a=r&&r.modDataCount,s=null!=a?Math.ceil(a/o):null;return{step:o,modBy:s,modDataCount:a}}},t.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},t.prototype.updateStreamModes=function(t,e){var n=this._pipelineMap.get(t.uid),r=t.getData(),i=r.count(),o=n.progressiveEnabled&&e.incrementalPrepareRender&&i>=n.threshold,a=t.get("large")&&i>=t.get("largeThreshold"),s="mod"===t.get("progressiveChunkMode")?i:null;t.pipelineContext=n.context={progressiveRender:o,modDataCount:s,large:a}},t.prototype.restorePipelines=function(t){var e=this,n=e._pipelineMap=de();t.eachSeries((function(t){var r=t.getProgressive(),i=t.uid;n.set(i,{id:i,head:null,tail:null,threshold:t.getProgressiveThreshold(),progressiveEnabled:r&&!(t.preventIncremental&&t.preventIncremental()),blockIndex:-1,step:Math.round(r||700),count:0}),e._pipe(t,t.dataTask)}))},t.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,e=this.api.getModel(),n=this.api;Pt(this._allHandlers,(function(r){var i=t.get(r.uid)||t.set(r.uid,{}),o="";re(!(r.reset&&r.overallReset),o),r.reset&&this._createSeriesStageTask(r,i,e,n),r.overallReset&&this._createOverallStageTask(r,i,e,n)}),this)},t.prototype.prepareView=function(t,e,n,r){var i=t.renderTask,o=i.context;o.model=e,o.ecModel=n,o.api=r,i.__block=!t.incrementalPrepareRender,this._pipe(e,i)},t.prototype.performDataProcessorTasks=function(t,e){this._performStageTasks(this._dataProcessorHandlers,t,e,{block:!0})},t.prototype.performVisualTasks=function(t,e,n){this._performStageTasks(this._visualHandlers,t,e,n)},t.prototype._performStageTasks=function(t,e,n,r){r=r||{};var i=!1,o=this;function a(t,e){return t.setDirty&&(!t.dirtyMap||t.dirtyMap.get(e.__pipeline.id))}Pt(t,(function(t,s){if(!r.visualType||r.visualType===t.visualType){var l=o._stageTaskMap.get(t.uid),u=l.seriesTaskMap,c=l.overallTask;if(c){var h,d=c.agentStubMap;d.each((function(t){a(r,t)&&(t.dirty(),h=!0)})),h&&c.dirty(),o.updatePayload(c,n);var p=o.getPerformArgs(c,r.block);d.each((function(t){t.perform(p)})),c.perform(p)&&(i=!0)}else u&&u.each((function(s,l){a(r,s)&&s.dirty();var u=o.getPerformArgs(s,r.block);u.skip=!t.performRawSeries&&e.isSeriesFiltered(s.context.model),o.updatePayload(s,n),s.perform(u)&&(i=!0)}))}})),this.unfinished=i||this.unfinished},t.prototype.performSeriesTasks=function(t){var e;t.eachSeries((function(t){e=t.dataTask.perform()||e})),this.unfinished=e||this.unfinished},t.prototype.plan=function(){this._pipelineMap.each((function(t){var e=t.tail;do{if(e.__block){t.blockIndex=e.__idxInPipeline;break}e=e.getUpstream()}while(e)}))},t.prototype.updatePayload=function(t,e){"remain"!==e&&(t.context.payload=e)},t.prototype._createSeriesStageTask=function(t,e,n,r){var i=this,o=e.seriesTaskMap,a=e.seriesTaskMap=de(),s=t.seriesType,l=t.getTargetSeries;function u(e){var s=e.uid,l=a.set(s,o&&o.get(s)||wv({plan:D_,reset:L_,count:B_}));l.context={model:e,ecModel:n,api:r,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:i},i._pipe(e,l)}t.createOnAllSeries?n.eachRawSeries(u):s?n.eachRawSeriesByType(s,u):l&&l(n,r).each(u)},t.prototype._createOverallStageTask=function(t,e,n,r){var i=this,o=e.overallTask=e.overallTask||wv({reset:I_});o.context={ecModel:n,api:r,overallReset:t.overallReset,scheduler:i};var a=o.agentStubMap,s=o.agentStubMap=de(),l=t.seriesType,u=t.getTargetSeries,c=!0,h=!1,d="";function p(t){var e=t.uid,n=s.set(e,a&&a.get(e)||(h=!0,wv({reset:$_,onDirty:R_})));n.context={model:t,overallProgress:c},n.agent=o,n.__block=c,i._pipe(t,n)}re(!t.createOnAllSeries,d),l?n.eachRawSeriesByType(l,p):u?u(n,r).each(p):(c=!1,Pt(n.getSeries(),p)),h&&o.dirty()},t.prototype._pipe=function(t,e){var n=t.uid,r=this._pipelineMap.get(n);!r.head&&(r.head=e),r.tail&&r.tail.pipe(e),r.tail=e,e.__idxInPipeline=r.count++,e.__pipeline=r},t.wrapStageHandler=function(t,e){return Ft(t)&&(t={overallReset:t,seriesType:F_(t)}),t.uid=Zd("stageHandler"),e&&(t.visualType=e),t},t}();function I_(t){t.overallReset(t.ecModel,t.api,t.payload)}function $_(t){return t.overallProgress&&E_}function E_(){this.agent.dirty(),this.getDownstream().dirty()}function R_(){this.agent&&this.agent.dirty()}function D_(t){return t.plan?t.plan(t.model,t.ecModel,t.api,t.payload):null}function L_(t){t.useClearVisual&&t.data.clearAllVisual();var e=t.resetDefines=Ms(t.reset(t.model,t.ecModel,t.api,t.payload));return e.length>1?It(e,(function(t,e){return z_(e)})):N_}var N_=z_(0);function z_(t){return function(e,n){var r=n.data,i=n.resetDefines[t];if(i&&i.dataEach)for(var o=e.start;o<e.end;o++)i.dataEach(r,o);else i&&i.progress&&i.progress(e,r)}}function B_(t){return t.data.count()}function F_(t){W_=null;try{t(j_,V_)}catch($y){}return W_}var W_,j_={},V_={};function Q_(t,e){for(var n in e.prototype)t[n]=me}Q_(j_,og),Q_(V_,lg),j_.eachSeriesByType=j_.eachRawSeriesByType=function(t){W_=t},j_.eachComponent=function(t){"series"===t.mainType&&t.subType&&(W_=t.subType)};var H_=P_,Z_=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"],G_={color:Z_,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],Z_]},X_="#B9B8CE",U_="#100C2A",Y_=function(){return{axisLine:{lineStyle:{color:X_}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}},q_=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],K_={darkMode:!0,color:q_,backgroundColor:U_,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:X_}},textStyle:{color:X_},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:X_}},dataZoom:{borderColor:"#71708A",textStyle:{color:X_},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:X_}},timeline:{lineStyle:{color:X_},label:{color:X_},controlStyle:{color:X_,borderColor:X_}},calendar:{itemStyle:{color:U_},dayLabel:{color:X_},monthLabel:{color:X_},yearLabel:{color:X_}},timeAxis:Y_(),logAxis:Y_(),valueAxis:Y_(),categoryAxis:Y_(),line:{symbol:"circle"},graph:{color:q_},gauge:{title:{color:X_},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:X_},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}};K_.categoryAxis.splitLine.show=!1;var J_=K_,tx=function(){function t(){}return t.prototype.normalizeQuery=function(t){var e={},n={},r={};if(Wt(t)){var i=hl(t);e.mainType=i.main||null,e.subType=i.sub||null}else{var o=["Index","Name","Id"],a={name:1,dataIndex:1,dataType:1};Pt(t,(function(t,i){for(var s=!1,l=0;l<o.length;l++){var u=o[l],c=i.lastIndexOf(u);if(c>0&&c===i.length-u.length){var h=i.slice(0,c);"data"!==h&&(e.mainType=h,e[u.toLowerCase()]=t,s=!0)}}a.hasOwnProperty(i)&&(n[i]=t,s=!0),s||(r[i]=t)}))}return{cptQuery:e,dataQuery:n,otherQuery:r}},t.prototype.filter=function(t,e){var n=this.eventInfo;if(!n)return!0;var r=n.targetEl,i=n.packedEvent,o=n.model,a=n.view;if(!o||!a)return!0;var s=e.cptQuery,l=e.dataQuery;return u(s,o,"mainType")&&u(s,o,"subType")&&u(s,o,"index","componentIndex")&&u(s,o,"name")&&u(s,o,"id")&&u(l,i,"name")&&u(l,i,"dataIndex")&&u(l,i,"dataType")&&(!a.filterForExposedEvent||a.filterForExposedEvent(t,e.otherQuery,r,i));function u(t,e,n,r){return null==t[n]||e[r||n]===t[n]}},t.prototype.afterTrigger=function(){this.eventInfo=null},t}(),ex=["symbol","symbolSize","symbolRotate","symbolOffset"],nx=ex.concat(["symbolKeepAspect"]),rx={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var n=t.getData();if(t.legendIcon&&n.setVisual("legendIcon",t.legendIcon),t.hasSymbolVisual){for(var r={},i={},o=!1,a=0;a<ex.length;a++){var s=ex[a],l=t.get(s);Ft(l)?(o=!0,i[s]=l):r[s]=l}if(r.symbol=r.symbol||t.defaultSymbol,n.setVisual(Ot({legendIcon:t.legendIcon||r.symbol,symbolKeepAspect:t.get("symbolKeepAspect")},r)),!e.isSeriesFiltered(t)){var u=Dt(i);return{dataEach:o?c:null}}}function c(e,n){for(var r=t.getRawValue(n),o=t.getDataParams(n),a=0;a<u.length;a++){var s=u[a];e.setItemVisual(n,s,i[s](r,o))}}}},ix={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(t.hasSymbolVisual&&!e.isSeriesFiltered(t)){var n=t.getData();return{dataEach:n.hasItemOption?r:null}}function r(t,e){for(var n=t.getItemModel(e),r=0;r<nx.length;r++){var i=nx[r],o=n.getShallow(i,!0);null!=o&&t.setItemVisual(e,i,o)}}}};function ox(t,e,n){switch(n){case"color":var r=t.getItemVisual(e,"style");return r[t.getVisual("drawType")];case"opacity":return t.getItemVisual(e,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getItemVisual(e,n);default:0}}function ax(t,e){switch(e){case"color":var n=t.getVisual("style");return n[t.getVisual("drawType")];case"opacity":return t.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getVisual(e);default:0}}function sx(t,e,n,r){switch(n){case"color":var i=t.ensureUniqueItemVisual(e,"style");i[t.getVisual("drawType")]=r,t.setItemVisual(e,"colorFromPalette",!1);break;case"opacity":t.ensureUniqueItemVisual(e,"style").opacity=r;break;case"symbol":case"symbolSize":case"liftZ":t.setItemVisual(e,n,r);break;default:0}}function lx(t,e){function n(e,n){var r=[];return e.eachComponent({mainType:"series",subType:t,query:n},(function(t){r.push(t.seriesIndex)})),r}Pt([[t+"ToggleSelect","toggleSelect"],[t+"Select","select"],[t+"UnSelect","unselect"]],(function(t){e(t[0],(function(e,r,i){e=Ot({},e),i.dispatchAction(Ot(e,{type:t[1],seriesIndex:n(r,e)}))}))}))}function ux(t,e,n,r,i){var o=t+e;n.isSilent(o)||r.eachComponent({mainType:"series",subType:"pie"},(function(t){for(var e=t.seriesIndex,r=t.option.selectedMap,a=i.selected,s=0;s<a.length;s++)if(a[s].seriesIndex===e){var l=t.getData(),u=Us(l,i.fromActionPayload);n.trigger(o,{type:o,seriesId:t.id,name:Bt(u)?l.getName(u[0]):l.getName(u),selected:Wt(r)?r:Ot({},r)})}}))}function cx(t,e,n){t.on("selectchanged",(function(t){var r=n.getModel();t.isFromClick?(ux("map","selectchanged",e,r,t),ux("pie","selectchanged",e,r,t)):"select"===t.fromAction?(ux("map","selected",e,r,t),ux("pie","selected",e,r,t)):"unselect"===t.fromAction&&(ux("map","unselected",e,r,t),ux("pie","unselected",e,r,t))}))}function hx(t,e,n){var r;while(t){if(e(t)&&(r=t,n))break;t=t.__hostTarget||t.parent}return r}var dx=Math.round(9*Math.random()),px="function"===typeof Object.defineProperty,fx=function(){function t(){this._id="__ec_inner_"+dx++}return t.prototype.get=function(t){return this._guard(t)[this._id]},t.prototype.set=function(t,e){var n=this._guard(t);return px?Object.defineProperty(n,this._id,{value:e,enumerable:!1,configurable:!0}):n[this._id]=e,this},t.prototype["delete"]=function(t){return!!this.has(t)&&(delete this._guard(t)[this._id],!0)},t.prototype.has=function(t){return!!this._guard(t)[this._id]},t.prototype._guard=function(t){if(t!==Object(t))throw TypeError("Value of WeakMap is not a non-null object.");return t},t}(),gx=fx,vx=lc.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var n=e.cx,r=e.cy,i=e.width/2,o=e.height/2;t.moveTo(n,r-o),t.lineTo(n+i,r+o),t.lineTo(n-i,r+o),t.closePath()}}),mx=lc.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var n=e.cx,r=e.cy,i=e.width/2,o=e.height/2;t.moveTo(n,r-o),t.lineTo(n+i,r),t.lineTo(n,r+o),t.lineTo(n-i,r),t.closePath()}}),yx=lc.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var n=e.x,r=e.y,i=e.width/5*3,o=Math.max(i,e.height),a=i/2,s=a*a/(o-a),l=r-o+a+s,u=Math.asin(s/a),c=Math.cos(u)*a,h=Math.sin(u),d=Math.cos(u),p=.6*a,f=.7*a;t.moveTo(n-c,l+s),t.arc(n,l,a,Math.PI-u,2*Math.PI+u),t.bezierCurveTo(n+c-h*p,l+s+d*p,n,r-f,n,r),t.bezierCurveTo(n,r-f,n-c+h*p,l+s+d*p,n-c,l+s),t.closePath()}}),bx=lc.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var n=e.height,r=e.width,i=e.x,o=e.y,a=r/3*2;t.moveTo(i,o),t.lineTo(i+a,o+n),t.lineTo(i,o+n/4*3),t.lineTo(i-a,o+n),t.lineTo(i,o),t.closePath()}}),_x={line:tb,rect:Ac,roundRect:Ac,square:Ac,circle:yy,diamond:mx,pin:yx,arrow:bx,triangle:vx},xx={line:function(t,e,n,r,i){i.x1=t,i.y1=e+r/2,i.x2=t+n,i.y2=e+r/2},rect:function(t,e,n,r,i){i.x=t,i.y=e,i.width=n,i.height=r},roundRect:function(t,e,n,r,i){i.x=t,i.y=e,i.width=n,i.height=r,i.r=Math.min(n,r)/4},square:function(t,e,n,r,i){var o=Math.min(n,r);i.x=t,i.y=e,i.width=o,i.height=o},circle:function(t,e,n,r,i){i.cx=t+n/2,i.cy=e+r/2,i.r=Math.min(n,r)/2},diamond:function(t,e,n,r,i){i.cx=t+n/2,i.cy=e+r/2,i.width=n,i.height=r},pin:function(t,e,n,r,i){i.x=t+n/2,i.y=e+r/2,i.width=n,i.height=r},arrow:function(t,e,n,r,i){i.x=t+n/2,i.y=e+r/2,i.width=n,i.height=r},triangle:function(t,e,n,r,i){i.cx=t+n/2,i.cy=e+r/2,i.width=n,i.height=r}},Ox={};Pt(_x,(function(t,e){Ox[e]=new t}));var Sx=lc.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(t,e,n){var r=_a(t,e,n),i=this.shape;return i&&"pin"===i.symbolType&&"inside"===e.position&&(r.y=n.y+.4*n.height),r},buildPath:function(t,e,n){var r=e.symbolType;if("none"!==r){var i=Ox[r];i||(r="rect",i=Ox[r]),xx[r](e.x,e.y,e.width,e.height,i.shape),i.buildPath(t,i.shape,n)}}});function Ax(t,e){if("image"!==this.type){var n=this.style;this.__isEmptyBrush?(n.stroke=t,n.fill=e||"#fff",n.lineWidth=2):"line"===this.shape.symbolType?n.stroke=t:n.fill=t,this.markRedraw()}}function kx(t,e,n,r,i,o,a){var s,l=0===t.indexOf("empty");return l&&(t=t.substr(5,1).toLowerCase()+t.substr(6)),s=0===t.indexOf("image://")?Db(t.slice(8),new Hn(e,n,r,i),a?"center":"cover"):0===t.indexOf("path://")?Rb(t.slice(7),{},new Hn(e,n,r,i),a?"center":"cover"):new Sx({shape:{symbolType:t,x:e,y:n,width:r,height:i}}),s.__isEmptyBrush=l,s.setColor=Ax,o&&s.setColor(o),s}function Cx(t){return Bt(t)||(t=[+t,+t]),[t[0]||0,t[1]||0]}function Mx(t,e){if(null!=t)return Bt(t)||(t=[t,t]),[es(t[0],e[0])||0,es(Jt(t[1],t[0]),e[1])||0]}function Tx(t){return isFinite(t)}function Px(t,e,n){var r=null==e.x?0:e.x,i=null==e.x2?1:e.x2,o=null==e.y?0:e.y,a=null==e.y2?0:e.y2;e.global||(r=r*n.width+n.x,i=i*n.width+n.x,o=o*n.height+n.y,a=a*n.height+n.y),r=Tx(r)?r:0,i=Tx(i)?i:1,o=Tx(o)?o:0,a=Tx(a)?a:0;var s=t.createLinearGradient(r,o,i,a);return s}function Ix(t,e,n){var r=n.width,i=n.height,o=Math.min(r,i),a=null==e.x?.5:e.x,s=null==e.y?.5:e.y,l=null==e.r?.5:e.r;e.global||(a=a*r+n.x,s=s*i+n.y,l*=o),a=Tx(a)?a:.5,s=Tx(s)?s:.5,l=l>=0&&Tx(l)?l:.5;var u=t.createRadialGradient(a,s,0,a,s,l);return u}function $x(t,e,n){for(var r="radial"===e.type?Ix(t,e,n):Px(t,e,n),i=e.colorStops,o=0;o<i.length;o++)r.addColorStop(i[o].offset,i[o].color);return r}function Ex(t,e){if(t===e||!t&&!e)return!1;if(!t||!e||t.length!==e.length)return!0;for(var n=0;n<t.length;n++)if(t[n]!==e[n])return!0;return!1}function Rx(t){return parseInt(t,10)}function Dx(t,e,n){var r=["width","height"][e],i=["clientWidth","clientHeight"][e],o=["paddingLeft","paddingTop"][e],a=["paddingRight","paddingBottom"][e];if(null!=n[r]&&"auto"!==n[r])return parseFloat(n[r]);var s=document.defaultView.getComputedStyle(t);return(t[i]||Rx(s[r])||Rx(t.style[r]))-(Rx(s[o])||0)-(Rx(s[a])||0)|0}function Lx(t,e){return t&&"solid"!==t&&e>0?"dashed"===t?[4*e,2*e]:"dotted"===t?[e]:Vt(t)?[t]:Bt(t)?t:null:null}function Nx(t){var e=t.style,n=e.lineDash&&e.lineWidth>0&&Lx(e.lineDash,e.lineWidth),r=e.lineDashOffset;if(n){var i=e.strokeNoScale&&t.getLineScale?t.getLineScale():1;i&&1!==i&&(n=It(n,(function(t){return t/i})),r/=i)}return[n,r]}var zx=new Lu(!0);function Bx(t){var e=t.stroke;return!(null==e||"none"===e||!(t.lineWidth>0))}function Fx(t){return"string"===typeof t&&"none"!==t}function Wx(t){var e=t.fill;return null!=e&&"none"!==e}function jx(t,e){if(null!=e.fillOpacity&&1!==e.fillOpacity){var n=t.globalAlpha;t.globalAlpha=e.fillOpacity*e.opacity,t.fill(),t.globalAlpha=n}else t.fill()}function Vx(t,e){if(null!=e.strokeOpacity&&1!==e.strokeOpacity){var n=t.globalAlpha;t.globalAlpha=e.strokeOpacity*e.opacity,t.stroke(),t.globalAlpha=n}else t.stroke()}function Qx(t,e,n){var r=Ml(e.image,e.__image,n);if(Pl(r)){var i=t.createPattern(r,e.repeat||"repeat");if("function"===typeof DOMMatrix&&i&&i.setTransform){var o=new DOMMatrix;o.translateSelf(e.x||0,e.y||0),o.rotateSelf(0,0,(e.rotation||0)*ye),o.scaleSelf(e.scaleX||1,e.scaleY||1),i.setTransform(o)}return i}}function Hx(t,e,n,r){var i,o=Bx(n),a=Wx(n),s=n.strokePercent,l=s<1,u=!e.path;e.silent&&!l||!u||e.createPathProxy();var c=e.path||zx,h=e.__dirty;if(!r){var d=n.fill,p=n.stroke,f=a&&!!d.colorStops,g=o&&!!p.colorStops,v=a&&!!d.image,m=o&&!!p.image,y=void 0,b=void 0,_=void 0,x=void 0,w=void 0;(f||g)&&(w=e.getBoundingRect()),f&&(y=h?$x(t,d,w):e.__canvasFillGradient,e.__canvasFillGradient=y),g&&(b=h?$x(t,p,w):e.__canvasStrokeGradient,e.__canvasStrokeGradient=b),v&&(_=h||!e.__canvasFillPattern?Qx(t,d,e):e.__canvasFillPattern,e.__canvasFillPattern=_),m&&(x=h||!e.__canvasStrokePattern?Qx(t,p,e):e.__canvasStrokePattern,e.__canvasStrokePattern=_),f?t.fillStyle=y:v&&(_?t.fillStyle=_:a=!1),g?t.strokeStyle=b:m&&(x?t.strokeStyle=x:o=!1)}var O,S,A=e.getGlobalScale();c.setScale(A[0],A[1],e.segmentIgnoreThreshold),t.setLineDash&&n.lineDash&&(i=Nx(e),O=i[0],S=i[1]);var k=!0;(u||h&vr)&&(c.setDPR(t.dpr),l?c.setContext(null):(c.setContext(t),k=!1),c.reset(),e.buildPath(c,e.shape,r),c.toStatic(),e.pathUpdated()),k&&c.rebuildPath(t,l?s:1),O&&(t.setLineDash(O),t.lineDashOffset=S),r||(n.strokeFirst?(o&&Vx(t,n),a&&jx(t,n)):(a&&jx(t,n),o&&Vx(t,n))),O&&t.setLineDash([])}function Zx(t,e,n){var r=e.__image=Ml(n.image,e.__image,e,e.onload);if(r&&Pl(r)){var i=n.x||0,o=n.y||0,a=e.getWidth(),s=e.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;t.drawImage(r,u,c,n.sWidth,n.sHeight,i,o,a,s)}else if(n.sx&&n.sy){u=n.sx,c=n.sy;var h=a-u,d=s-c;t.drawImage(r,u,c,h,d,i,o,a,s)}else t.drawImage(r,i,o,a,s)}}function Gx(t,e,n){var r,i=n.text;if(null!=i&&(i+=""),i){t.font=n.font||K,t.textAlign=n.textAlign,t.textBaseline=n.textBaseline;var o=void 0,a=void 0;t.setLineDash&&n.lineDash&&(r=Nx(e),o=r[0],a=r[1]),o&&(t.setLineDash(o),t.lineDashOffset=a),n.strokeFirst?(Bx(n)&&t.strokeText(i,n.x,n.y),Wx(n)&&t.fillText(i,n.x,n.y)):(Wx(n)&&t.fillText(i,n.x,n.y),Bx(n)&&t.strokeText(i,n.x,n.y)),o&&t.setLineDash([])}}var Xx=["shadowBlur","shadowOffsetX","shadowOffsetY"],Ux=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function Yx(t,e,n,r,i){var o=!1;if(!r&&(n=n||{},e===n))return!1;if(r||e.opacity!==n.opacity){sw(t,i),o=!0;var a=Math.max(Math.min(e.opacity,1),0);t.globalAlpha=isNaN(a)?Gl.opacity:a}(r||e.blend!==n.blend)&&(o||(sw(t,i),o=!0),t.globalCompositeOperation=e.blend||Gl.blend);for(var s=0;s<Xx.length;s++){var l=Xx[s];(r||e[l]!==n[l])&&(o||(sw(t,i),o=!0),t[l]=t.dpr*(e[l]||0))}return(r||e.shadowColor!==n.shadowColor)&&(o||(sw(t,i),o=!0),t.shadowColor=e.shadowColor||Gl.shadowColor),o}function qx(t,e,n,r,i){var o=lw(e,i.inHover),a=r?null:n&&lw(n,i.inHover)||{};if(o===a)return!1;var s=Yx(t,o,a,r,i);if((r||o.fill!==a.fill)&&(s||(sw(t,i),s=!0),Fx(o.fill)&&(t.fillStyle=o.fill)),(r||o.stroke!==a.stroke)&&(s||(sw(t,i),s=!0),Fx(o.stroke)&&(t.strokeStyle=o.stroke)),(r||o.opacity!==a.opacity)&&(s||(sw(t,i),s=!0),t.globalAlpha=null==o.opacity?1:o.opacity),e.hasStroke()){var l=o.lineWidth,u=l/(o.strokeNoScale&&e.getLineScale?e.getLineScale():1);t.lineWidth!==u&&(s||(sw(t,i),s=!0),t.lineWidth=u)}for(var c=0;c<Ux.length;c++){var h=Ux[c],d=h[0];(r||o[d]!==a[d])&&(s||(sw(t,i),s=!0),t[d]=o[d]||h[1])}return s}function Kx(t,e,n,r,i){return Yx(t,lw(e,i.inHover),n&&lw(n,i.inHover),r,i)}function Jx(t,e){var n=e.transform,r=t.dpr||1;n?t.setTransform(r*n[0],r*n[1],r*n[2],r*n[3],r*n[4],r*n[5]):t.setTransform(r,0,0,r,0,0)}function tw(t,e,n){for(var r=!1,i=0;i<t.length;i++){var o=t[i];r=r||o.isZeroArea(),Jx(e,o),e.beginPath(),o.buildPath(e,o.shape),e.clip()}n.allClipped=r}function ew(t,e){return t&&e?t[0]!==e[0]||t[1]!==e[1]||t[2]!==e[2]||t[3]!==e[3]||t[4]!==e[4]||t[5]!==e[5]:!(!t&&!e)}var nw=1,rw=2,iw=3,ow=4;function aw(t){var e=Wx(t),n=Bx(t);return!(t.lineDash||!(+e^+n)||e&&"string"!==typeof t.fill||n&&"string"!==typeof t.stroke||t.strokePercent<1||t.strokeOpacity<1||t.fillOpacity<1)}function sw(t,e){e.batchFill&&t.fill(),e.batchStroke&&t.stroke(),e.batchFill="",e.batchStroke=""}function lw(t,e){return e&&t.__hoverStyle||t.style}function uw(t,e){cw(t,e,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function cw(t,e,n,r){var i=e.transform;if(!e.shouldBePainted(n.viewWidth,n.viewHeight,!1,!1))return e.__dirty&=~fr,void(e.__isRendered=!1);var o=e.__clipPaths,a=n.prevElClipPaths,s=!1,l=!1;if(a&&!Ex(o,a)||(a&&a.length&&(sw(t,n),t.restore(),l=s=!0,n.prevElClipPaths=null,n.allClipped=!1,n.prevEl=null),o&&o.length&&(sw(t,n),t.save(),tw(o,t,n),s=!0),n.prevElClipPaths=o),n.allClipped)e.__isRendered=!1;else{e.beforeBrush&&e.beforeBrush(),e.innerBeforeBrush();var u=n.prevEl;u||(l=s=!0);var c=e instanceof lc&&e.autoBatch&&aw(e.style);s||ew(i,u.transform)?(sw(t,n),Jx(t,e)):c||sw(t,n);var h=lw(e,n.inHover);e instanceof lc?(n.lastDrawType!==nw&&(l=!0,n.lastDrawType=nw),qx(t,e,u,l,n),c&&(n.batchFill||n.batchStroke)||t.beginPath(),Hx(t,e,h,c),c&&(n.batchFill=h.fill||"",n.batchStroke=h.stroke||"")):e instanceof hc?(n.lastDrawType!==iw&&(l=!0,n.lastDrawType=iw),qx(t,e,u,l,n),Gx(t,e,h)):e instanceof vc?(n.lastDrawType!==rw&&(l=!0,n.lastDrawType=rw),Kx(t,e,u,l,n),Zx(t,e,h)):e.getTemporalDisplayables&&(n.lastDrawType!==ow&&(l=!0,n.lastDrawType=ow),hw(t,e,n)),c&&r&&sw(t,n),e.innerAfterBrush(),e.afterBrush&&e.afterBrush(),n.prevEl=e,e.__dirty=0,e.__isRendered=!0}}function hw(t,e,n){var r=e.getDisplayables(),i=e.getTemporalDisplayables();t.save();var o,a,s={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:n.viewWidth,viewHeight:n.viewHeight,inHover:n.inHover};for(o=e.getCursor(),a=r.length;o<a;o++){var l=r[o];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),cw(t,l,s,o===a-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),s.prevEl=l}for(var u=0,c=i.length;u<c;u++){l=i[u];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),cw(t,l,s,u===c-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),s.prevEl=l}e.clearTemporalDisplayables(),e.notClear=!0,t.restore()}var dw=new gx,pw=new ii(100),fw=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function gw(t,e){if("none"===t)return null;var n=e.getDevicePixelRatio(),r=e.getZr(),i="svg"===r.painter.type;t.dirty&&dw["delete"](t);var o=dw.get(t);if(o)return o;var a=St(t,{symbol:"rect",symbolSize:1,symbolKeepAspect:!0,color:"rgba(0, 0, 0, 0.2)",backgroundColor:null,dashArrayX:5,dashArrayY:5,rotation:0,maxTileWidth:512,maxTileHeight:512});"none"===a.backgroundColor&&(a.backgroundColor=null);var s={repeat:"repeat"};return l(s),s.rotation=a.rotation,s.scaleX=s.scaleY=i?1:1/n,dw.set(t,s),t.dirty=!1,s;function l(t){for(var e,o=[n],s=!0,l=0;l<fw.length;++l){var u=a[fw[l]];if(null!=u&&!Bt(u)&&!Wt(u)&&!Vt(u)&&"boolean"!==typeof u){s=!1;break}o.push(u)}if(s){e=o.join(",")+(i?"-svg":"");var c=pw.get(e);c&&(i?t.svgElement=c:t.image=c)}var h,d=mw(a.dashArrayX),p=yw(a.dashArrayY),f=vw(a.symbol),g=bw(d),v=_w(p),m=!i&&it.createCanvas(),y=i&&{tag:"g",attrs:{},key:"dcl",children:[]},b=_();function _(){for(var t=1,e=0,n=g.length;e<n;++e)t=Ss(t,g[e]);var r=1;for(e=0,n=f.length;e<n;++e)r=Ss(r,f[e].length);t*=r;var i=v*g.length*f.length;return{width:Math.max(1,Math.min(t,a.maxTileWidth)),height:Math.max(1,Math.min(i,a.maxTileHeight))}}function x(){h&&(h.clearRect(0,0,m.width,m.height),a.backgroundColor&&(h.fillStyle=a.backgroundColor,h.fillRect(0,0,m.width,m.height)));for(var t=0,e=0;e<p.length;++e)t+=p[e];if(!(t<=0)){var o=-v,s=0,l=0,u=0;while(o<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(e=0;e<d[u].length;++e)w+=d[u][e];if(w<=0)break;if(_%2===0){var O=.5*(1-a.symbolSize),S=g+d[u][_]*O,A=o+p[s]*O,k=d[u][_]*a.symbolSize,C=p[s]*a.symbolSize,M=x/2%f[c].length;T(S,A,k,C,f[c][M])}g+=d[u][_],++x,++_,_===d[u].length&&(_=0)}++u,u===d.length&&(u=0)}o+=p[s],++l,++s,s===p.length&&(s=0)}}function T(t,e,o,s,l){var u=i?1:n,c=kx(l,t*u,e*u,o*u,s*u,a.color,a.symbolKeepAspect);if(i){var d=r.painter.renderOneToVNode(c);d&&y.children.push(d)}else uw(h,c)}}m&&(m.width=b.width*n,m.height=b.height*n,h=m.getContext("2d")),x(),s&&pw.put(e,m||y),t.image=m,t.svgElement=y,t.svgWidth=b.width,t.svgHeight=b.height}}function vw(t){if(!t||0===t.length)return[["rect"]];if(Wt(t))return[[t]];for(var e=!0,n=0;n<t.length;++n)if(!Wt(t[n])){e=!1;break}if(e)return vw([t]);var r=[];for(n=0;n<t.length;++n)Wt(t[n])?r.push([t[n]]):r.push(t[n]);return r}function mw(t){if(!t||0===t.length)return[[0,0]];if(Vt(t)){var e=Math.ceil(t);return[[e,e]]}for(var n=!0,r=0;r<t.length;++r)if(!Vt(t[r])){n=!1;break}if(n)return mw([t]);var i=[];for(r=0;r<t.length;++r)if(Vt(t[r])){e=Math.ceil(t[r]);i.push([e,e])}else{e=It(t[r],(function(t){return Math.ceil(t)}));e.length%2===1?i.push(e.concat(e)):i.push(e)}return i}function yw(t){if(!t||"object"===typeof t&&0===t.length)return[0,0];if(Vt(t)){var e=Math.ceil(t);return[e,e]}var n=It(t,(function(t){return Math.ceil(t)}));return t.length%2?n.concat(n):n}function bw(t){return It(t,(function(t){return _w(t)}))}function _w(t){for(var e=0,n=0;n<t.length;++n)e+=t[n];return t.length%2===1?2*e:e}function xw(t,e){t.eachRawSeries((function(n){if(!t.isSeriesFiltered(n)){var r=n.getData();r.hasItemVisual()&&r.each((function(t){var n=r.getItemVisual(t,"decal");if(n){var i=r.ensureUniqueItemVisual(t,"style");i.decal=gw(n,e)}}));var i=r.getVisual("decal");if(i){var o=r.getVisual("style");o.decal=gw(i,e)}}}))}var ww=new Xe,Ow=ww,Sw={};function Aw(t,e){Sw[t]=e}function kw(t){return Sw[t]}var Cw="5.5.1",Mw={zrender:"5.6.0"},Tw=1,Pw=800,Iw=900,$w=1e3,Ew=2e3,Rw=5e3,Dw=1e3,Lw=1100,Nw=2e3,zw=3e3,Bw=4e3,Fw=4500,Ww=4600,jw=5e3,Vw=6e3,Qw=7e3,Hw={PROCESSOR:{FILTER:$w,SERIES_FILTER:Pw,STATISTIC:Rw},VISUAL:{LAYOUT:Dw,PROGRESSIVE_LAYOUT:Lw,GLOBAL:Nw,CHART:zw,POST_CHART_LAYOUT:Ww,COMPONENT:Bw,BRUSH:jw,CHART_ITEM:Fw,ARIA:Vw,DECAL:Qw}},Zw="__flagInMainProcess",Gw="__pendingUpdate",Xw="__needsUpdateStatus",Uw=/^[a-zA-Z0-9_]+$/,Yw="__connectUpdateStatus",qw=0,Kw=1,Jw=2;function tO(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];if(!this.isDisposed())return nO(this,t,e);kO(this.id)}}function eO(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return nO(this,t,e)}}function nO(t,e,n){return n[0]=n[0]&&n[0].toLowerCase(),Xe.prototype[e].apply(t,n)}var rO,iO,oO,aO,sO,lO,uO,cO,hO,dO,pO,fO,gO,vO,mO,yO,bO,_O,xO=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Q(e,t),e}(Xe),wO=xO.prototype;wO.on=eO("on"),wO.off=eO("off");var OO=function(t){function e(e,n,r){var i=t.call(this,new tx)||this;i._chartsViews=[],i._chartsMap={},i._componentsViews=[],i._componentsMap={},i._pendingActions=[],r=r||{},Wt(n)&&(n=$O[n]),i._dom=e;var o="canvas",a="auto",s=!1;r.ssr&&Ua((function(t){var e=Qc(t),n=e.dataIndex;if(null!=n){var r=de();return r.set("series_index",e.seriesIndex),r.set("data_index",n),e.ssrType&&r.set("ssr_type",e.ssrType),r}}));var l=i._zr=Va(e,{renderer:r.renderer||o,devicePixelRatio:r.devicePixelRatio,width:r.width,height:r.height,ssr:r.ssr,useDirtyRect:Jt(r.useDirtyRect,s),useCoarsePointer:Jt(r.useCoarsePointer,a),pointerSize:r.pointerSize});i._ssr=r.ssr,i._throttledZrFlush=v_(Nt(l.flush,l),17),n=_t(n),n&&jg(n,!0),i._theme=n,i._locale=op(r.locale||rp),i._coordSysMgr=new hg;var u=i._api=mO(i);function c(t,e){return t.__prio-e.__prio}return pr(IO,c),pr(TO,c),i._scheduler=new H_(i,u,TO,IO),i._messageCenter=new xO,i._initEvents(),i.resize=Nt(i.resize,i),l.animation.on("frame",i._onframe,i),dO(l,i),pO(l,i),ae(i),i}return Q(e,t),e.prototype._onframe=function(){if(!this._disposed){_O(this);var t=this._scheduler;if(this[Gw]){var e=this[Gw].silent;this[Zw]=!0;try{rO(this),aO.update.call(this,null,this[Gw].updateParams)}catch($y){throw this[Zw]=!1,this[Gw]=null,$y}this._zr.flush(),this[Zw]=!1,this[Gw]=null,cO.call(this,e),hO.call(this,e)}else if(t.unfinished){var n=Tw,r=this._model,i=this._api;t.unfinished=!1;do{var o=+new Date;t.performSeriesTasks(r),t.performDataProcessorTasks(r),lO(this,r),t.performVisualTasks(r),vO(this,this._model,i,"remain",{}),n-=+new Date-o}while(n>0&&t.unfinished);t.unfinished||this._zr.flush()}}},e.prototype.getDom=function(){return this._dom},e.prototype.getId=function(){return this.id},e.prototype.getZr=function(){return this._zr},e.prototype.isSSR=function(){return this._ssr},e.prototype.setOption=function(t,e,n){if(!this[Zw])if(this._disposed)kO(this.id);else{var r,i,o;if(Qt(e)&&(n=e.lazyUpdate,r=e.silent,i=e.replaceMerge,o=e.transition,e=e.notMerge),this[Zw]=!0,!this._model||e){var a=new yg(this._api),s=this._theme,l=this._model=new og;l.scheduler=this._scheduler,l.ssr=this._ssr,l.init(null,null,null,s,this._locale,a)}this._model.setOption(t,{replaceMerge:i},PO);var u={seriesTransition:o,optionChanged:!0};if(n)this[Gw]={silent:r,updateParams:u},this[Zw]=!1,this.getZr().wakeUp();else{try{rO(this),aO.update.call(this,null,u)}catch($y){throw this[Gw]=null,this[Zw]=!1,$y}this._ssr||this._zr.flush(),this[Gw]=null,this[Zw]=!1,cO.call(this,r),hO.call(this,r)}}},e.prototype.setTheme=function(){Av("ECharts#setTheme() is DEPRECATED in ECharts 3.0")},e.prototype.getModel=function(){return this._model},e.prototype.getOption=function(){return this._model&&this._model.getOption()},e.prototype.getWidth=function(){return this._zr.getWidth()},e.prototype.getHeight=function(){return this._zr.getHeight()},e.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||U.hasGlobalWindow&&window.devicePixelRatio||1},e.prototype.getRenderedCanvas=function(t){return this.renderToCanvas(t)},e.prototype.renderToCanvas=function(t){t=t||{};var e=this._zr.painter;return e.getRenderedCanvas({backgroundColor:t.backgroundColor||this._model.get("backgroundColor"),pixelRatio:t.pixelRatio||this.getDevicePixelRatio()})},e.prototype.renderToSVGString=function(t){t=t||{};var e=this._zr.painter;return e.renderToString({useViewBox:t.useViewBox})},e.prototype.getSvgDataURL=function(){if(U.svgSupported){var t=this._zr,e=t.storage.getDisplayList();return Pt(e,(function(t){t.stopAnimation(null,!0)})),t.painter.toDataURL()}},e.prototype.getDataURL=function(t){if(!this._disposed){t=t||{};var e=t.excludeComponents,n=this._model,r=[],i=this;Pt(e,(function(t){n.eachComponent({mainType:t},(function(t){var e=i._componentsMap[t.__viewId];e.group.ignore||(r.push(e),e.group.ignore=!0)}))}));var o="svg"===this._zr.painter.getType()?this.getSvgDataURL():this.renderToCanvas(t).toDataURL("image/"+(t&&t.type||"png"));return Pt(r,(function(t){t.group.ignore=!1})),o}kO(this.id)},e.prototype.getConnectedDataURL=function(t){if(!this._disposed){var e="svg"===t.type,n=this.group,r=Math.min,i=Math.max,o=1/0;if(DO[n]){var a=o,s=o,l=-o,u=-o,c=[],h=t&&t.pixelRatio||this.getDevicePixelRatio();Pt(RO,(function(o,h){if(o.group===n){var d=e?o.getZr().painter.getSvgDom().innerHTML:o.renderToCanvas(_t(t)),p=o.getDom().getBoundingClientRect();a=r(p.left,a),s=r(p.top,s),l=i(p.right,l),u=i(p.bottom,u),c.push({dom:d,left:p.left,top:p.top})}})),a*=h,s*=h,l*=h,u*=h;var d=l-a,p=u-s,f=it.createCanvas(),g=Va(f,{renderer:e?"svg":"canvas"});if(g.resize({width:d,height:p}),e){var v="";return Pt(c,(function(t){var e=t.left-a,n=t.top-s;v+='<g transform="translate('+e+","+n+')">'+t.dom+"</g>"})),g.painter.getSvgRoot().innerHTML=v,t.connectedBackgroundColor&&g.painter.setBackgroundColor(t.connectedBackgroundColor),g.refreshImmediately(),g.painter.toDataURL()}return t.connectedBackgroundColor&&g.add(new Ac({shape:{x:0,y:0,width:d,height:p},style:{fill:t.connectedBackgroundColor}})),Pt(c,(function(t){var e=new vc({style:{x:t.left*h-a,y:t.top*h-s,image:t.dom}});g.add(e)})),g.refreshImmediately(),f.toDataURL("image/"+(t&&t.type||"png"))}return this.getDataURL(t)}kO(this.id)},e.prototype.convertToPixel=function(t,e){return sO(this,"convertToPixel",t,e)},e.prototype.convertFromPixel=function(t,e){return sO(this,"convertFromPixel",t,e)},e.prototype.containPixel=function(t,e){if(!this._disposed){var n,r=this._model,i=Ks(r,t);return Pt(i,(function(t,r){r.indexOf("Models")>=0&&Pt(t,(function(t){var i=t.coordinateSystem;if(i&&i.containPoint)n=n||!!i.containPoint(e);else if("seriesModels"===r){var o=this._chartsMap[t.__viewId];o&&o.containPoint&&(n=n||o.containPoint(e,t))}else 0}),this)}),this),!!n}kO(this.id)},e.prototype.getVisual=function(t,e){var n=this._model,r=Ks(n,t,{defaultMainType:"series"}),i=r.seriesModel;var o=i.getData(),a=r.hasOwnProperty("dataIndexInside")?r.dataIndexInside:r.hasOwnProperty("dataIndex")?o.indexOfRawIndex(r.dataIndex):null;return null!=a?ox(o,a,e):ax(o,e)},e.prototype.getViewOfComponentModel=function(t){return this._componentsMap[t.__viewId]},e.prototype.getViewOfSeriesModel=function(t){return this._chartsMap[t.__viewId]},e.prototype._initEvents=function(){var t=this;Pt(AO,(function(e){var n=function(n){var r,i=t.getModel(),o=n.target,a="globalout"===e;if(a?r={}:o&&hx(o,(function(t){var e=Qc(t);if(e&&null!=e.dataIndex){var n=e.dataModel||i.getSeriesByIndex(e.seriesIndex);return r=n&&n.getDataParams(e.dataIndex,e.dataType,o)||{},!0}if(e.eventData)return r=Ot({},e.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&&i.getComponent(s,l),c=u&&t["series"===u.mainType?"_chartsMap":"_componentsMap"][u.__viewId];0,r.event=n,r.type=e,t._$eventProcessor.eventInfo={targetEl:o,packedEvent:r,model:u,view:c},t.trigger(e,r)}};n.zrEventfulCallAtLast=!0,t._zr.on(e,n,t)})),Pt(MO,(function(e,n){t._messageCenter.on(n,(function(t){this.trigger(n,t)}),t)})),Pt(["selectchanged"],(function(e){t._messageCenter.on(e,(function(t){this.trigger(e,t)}),t)})),cx(this._messageCenter,this,this._api)},e.prototype.isDisposed=function(){return this._disposed},e.prototype.clear=function(){this._disposed?kO(this.id):this.setOption({series:[]},!0)},e.prototype.dispose=function(){if(this._disposed)kO(this.id);else{this._disposed=!0;var t=this.getDom();t&&rl(this.getDom(),zO,"");var e=this,n=e._api,r=e._model;Pt(e._componentsViews,(function(t){t.dispose(r,n)})),Pt(e._chartsViews,(function(t){t.dispose(r,n)})),e._zr.dispose(),e._dom=e._model=e._chartsMap=e._componentsMap=e._chartsViews=e._componentsViews=e._scheduler=e._api=e._zr=e._throttledZrFlush=e._theme=e._coordSysMgr=e._messageCenter=null,delete RO[e.id]}},e.prototype.resize=function(t){if(!this[Zw])if(this._disposed)kO(this.id);else{this._zr.resize(t);var e=this._model;if(this._loadingFX&&this._loadingFX.resize(),e){var n=e.resetOption("media"),r=t&&t.silent;this[Gw]&&(null==r&&(r=this[Gw].silent),n=!0,this[Gw]=null),this[Zw]=!0;try{n&&rO(this),aO.update.call(this,{type:"resize",animation:Ot({duration:0},t&&t.animation)})}catch($y){throw this[Zw]=!1,$y}this[Zw]=!1,cO.call(this,r),hO.call(this,r)}}},e.prototype.showLoading=function(t,e){if(this._disposed)kO(this.id);else if(Qt(t)&&(e=t,t=""),t=t||"default",this.hideLoading(),EO[t]){var n=EO[t](this._api,e),r=this._zr;this._loadingFX=n,r.add(n)}},e.prototype.hideLoading=function(){this._disposed?kO(this.id):(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},e.prototype.makeActionFromEvent=function(t){var e=Ot({},t);return e.type=MO[t.type],e},e.prototype.dispatchAction=function(t,e){if(this._disposed)kO(this.id);else if(Qt(e)||(e={silent:!!e}),CO[t.type]&&this._model)if(this[Zw])this._pendingActions.push(t);else{var n=e.silent;uO.call(this,t,n);var r=e.flush;r?this._zr.flush():!1!==r&&U.browser.weChat&&this._throttledZrFlush(),cO.call(this,n),hO.call(this,n)}},e.prototype.updateLabelLayout=function(){Ow.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},e.prototype.appendData=function(t){if(this._disposed)kO(this.id);else{var e=t.seriesIndex,n=this.getModel(),r=n.getSeriesByIndex(e);0,r.appendData(t),this._scheduler.unfinished=!0,this.getZr().wakeUp()}},e.internalField=function(){function t(t){t.clearColorPalette(),t.eachSeries((function(t){t.clearColorPalette()}))}function e(t){var e=[],n=[],r=!1;if(t.eachComponent((function(t,i){var o=i.get("zlevel")||0,a=i.get("z")||0,s=i.getZLevelKey();r=r||!!s,("series"===t?n:e).push({zlevel:o,z:a,idx:i.componentIndex,type:t,key:s})})),r){var i,o,a=e.concat(n);pr(a,(function(t,e){return t.zlevel===e.zlevel?t.z-e.z:t.zlevel-e.zlevel})),Pt(a,(function(e){var n=t.getComponent(e.type,e.idx),r=e.zlevel,a=e.key;null!=i&&(r=Math.max(i,r)),a?(r===i&&a!==o&&r++,o=a):o&&(r===i&&r++,o=""),i=r,n.setZLevel(r)}))}}function n(t){for(var e=[],n=t.currentStates,r=0;r<n.length;r++){var i=n[r];"emphasis"!==i&&"blur"!==i&&"select"!==i&&e.push(i)}t.selected&&t.states.select&&e.push("select"),t.hoverState===Kc&&t.states.emphasis?e.push("emphasis"):t.hoverState===qc&&t.states.blur&&e.push("blur"),t.useStates(e)}function r(t,e){var n=t._zr,r=n.storage,i=0;r.traverse((function(t){t.isGroup||i++})),i>e.get("hoverLayerThreshold")&&!U.node&&!U.worker&&e.eachSeries((function(e){if(!e.preventUsingHoverLayer){var n=t._chartsMap[e.__viewId];n.__alive&&n.eachRendered((function(t){t.states.emphasis&&(t.states.emphasis.hoverLayer=!0)}))}}))}function i(t,e){var n=t.get("blendMode")||null;e.eachRendered((function(t){t.isGroup||(t.style.blend=n)}))}function o(t,e){if(!t.preventAutoZ){var n=t.get("z")||0,r=t.get("zlevel")||0;e.eachRendered((function(t){return a(t,n,r,-1/0),!0}))}}function a(t,e,n,r){var i=t.getTextContent(),o=t.getTextGuideLine(),s=t.isGroup;if(s)for(var l=t.childrenRef(),u=0;u<l.length;u++)r=Math.max(a(l[u],e,n,r),r);else t.z=e,t.zlevel=n,r=Math.max(t.z2,r);if(i&&(i.z=e,i.zlevel=n,isFinite(r)&&(i.z2=r+2)),o){var c=t.textGuideLineConfig;o.z=e,o.zlevel=n,isFinite(r)&&(o.z2=r+(c&&c.showAbove?1:-1))}return r}function s(t,e){e.eachRendered((function(t){if(!ud(t)){var e=t.getTextContent(),n=t.getTextGuideLine();t.stateTransition&&(t.stateTransition=null),e&&e.stateTransition&&(e.stateTransition=null),n&&n.stateTransition&&(n.stateTransition=null),t.hasState()?(t.prevStates=t.currentStates,t.clearStates()):t.prevStates&&(t.prevStates=null)}}))}function l(t,e){var r=t.getModel("stateAnimation"),i=t.isAnimationEnabled(),o=r.get("duration"),a=o>0?{duration:o,delay:r.get("delay"),easing:r.get("easing")}:null;e.eachRendered((function(t){if(t.states&&t.states.emphasis){if(ud(t))return;if(t instanceof lc&&rd(t),t.__dirty){var e=t.prevStates;e&&t.useStates(e)}if(i){t.stateTransition=a;var r=t.getTextContent(),o=t.getTextGuideLine();r&&(r.stateTransition=a),o&&(o.stateTransition=a)}t.__dirty&&n(t)}}))}rO=function(t){var e=t._scheduler;e.restorePipelines(t._model),e.prepareStageTasks(),iO(t,!0),iO(t,!1),e.plan()},iO=function(t,e){for(var n=t._model,r=t._scheduler,i=e?t._componentsViews:t._chartsViews,o=e?t._componentsMap:t._chartsMap,a=t._zr,s=t._api,l=0;l<i.length;l++)i[l].__alive=!1;function u(t){var l=t.__requireNewView;t.__requireNewView=!1;var u="_ec_"+t.id+"_"+t.type,c=!l&&o[u];if(!c){var h=hl(t.type),d=e?Hm.getClass(h.main,h.sub):d_.getClass(h.sub);0,c=new d,c.init(n,s),o[u]=c,i.push(c),a.add(c.group)}t.__viewId=c.__id=u,c.__alive=!0,c.__model=t,c.group.__ecComponentInfo={mainType:t.mainType,index:t.componentIndex},!e&&r.prepareView(c,t,n,s)}e?n.eachComponent((function(t,e){"series"!==t&&u(e)})):n.eachSeries(u);for(l=0;l<i.length;){var c=i[l];c.__alive?l++:(!e&&c.renderTask.dispose(),a.remove(c.group),c.dispose(n,s),i.splice(l,1),o[c.__id]===c&&delete o[c.__id],c.__id=c.group.__ecComponentInfo=null)}},oO=function(t,e,n,r,i){var o=t._model;if(o.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};i&&(s.subType=i);var l,u=n.excludeSeriesId;null!=u&&(l=de(),Pt(Ms(u),(function(t){var e=js(t,null);null!=e&&l.set(e,!0)}))),o&&o.eachComponent(s,(function(e){var r=l&&null!=l.get(e.id);if(!r)if(nd(n))if(e instanceof Vm)n.type!==rh||n.notBlur||e.get(["emphasis","disabled"])||Nh(e,n,t._api);else{var i=zh(e.mainType,e.componentIndex,n.name,t._api),o=i.focusSelf,a=i.dispatchers;n.type===rh&&o&&!n.notBlur&&Lh(e.mainType,e.componentIndex,t._api),a&&Pt(a,(function(t){n.type===rh?Ch(t):Mh(t)}))}else ed(n)&&e instanceof Vm&&(Wh(e,n,t._api),jh(e),bO(t))}),t),o&&o.eachComponent(s,(function(e){var n=l&&null!=l.get(e.id);n||c(t["series"===r?"_chartsMap":"_componentsMap"][e.__viewId])}),t)}else Pt([].concat(t._componentsViews).concat(t._chartsViews),c);function c(r){r&&r.__alive&&r[e]&&r[e](r.__model,o,t._api,n)}},aO={prepareAndUpdate:function(t){rO(this),aO.update.call(this,t,{optionChanged:null!=t.newOption})},update:function(e,n){var r=this._model,i=this._api,o=this._zr,a=this._coordSysMgr,s=this._scheduler;if(r){r.setUpdatePayload(e),s.restoreData(r,e),s.performSeriesTasks(r),a.create(r,i),s.performDataProcessorTasks(r,e),lO(this,r),a.update(r,i),t(r),s.performVisualTasks(r,e),fO(this,r,i,e,n);var l=r.get("backgroundColor")||"transparent",u=r.get("darkMode");o.setBackgroundColor(l),null!=u&&"auto"!==u&&o.setDarkMode(u),Ow.trigger("afterupdate",r,i)}},updateTransform:function(e){var n=this,r=this._model,i=this._api;if(r){r.setUpdatePayload(e);var o=[];r.eachComponent((function(t,a){if("series"!==t){var s=n.getViewOfComponentModel(a);if(s&&s.__alive)if(s.updateTransform){var l=s.updateTransform(a,r,i,e);l&&l.update&&o.push(s)}else o.push(s)}}));var a=de();r.eachSeries((function(t){var o=n._chartsMap[t.__viewId];if(o.updateTransform){var s=o.updateTransform(t,r,i,e);s&&s.update&&a.set(t.uid,1)}else a.set(t.uid,1)})),t(r),this._scheduler.performVisualTasks(r,e,{setDirty:!0,dirtyMap:a}),vO(this,r,i,e,{},a),Ow.trigger("afterupdate",r,i)}},updateView:function(e){var n=this._model;n&&(n.setUpdatePayload(e),d_.markUpdateMethod(e,"updateView"),t(n),this._scheduler.performVisualTasks(n,e,{setDirty:!0}),fO(this,n,this._api,e,{}),Ow.trigger("afterupdate",n,this._api))},updateVisual:function(e){var n=this,r=this._model;r&&(r.setUpdatePayload(e),r.eachSeries((function(t){t.getData().clearAllVisual()})),d_.markUpdateMethod(e,"updateVisual"),t(r),this._scheduler.performVisualTasks(r,e,{visualType:"visual",setDirty:!0}),r.eachComponent((function(t,i){if("series"!==t){var o=n.getViewOfComponentModel(i);o&&o.__alive&&o.updateVisual(i,r,n._api,e)}})),r.eachSeries((function(t){var i=n._chartsMap[t.__viewId];i.updateVisual(t,r,n._api,e)})),Ow.trigger("afterupdate",r,this._api))},updateLayout:function(t){aO.update.call(this,t)}},sO=function(t,e,n,r){if(t._disposed)kO(t.id);else{for(var i,o=t._model,a=t._coordSysMgr.getCoordinateSystems(),s=Ks(o,n),l=0;l<a.length;l++){var u=a[l];if(u[e]&&null!=(i=u[e](o,s,r)))return i}0}},lO=function(t,e){var n=t._chartsMap,r=t._scheduler;e.eachSeries((function(t){r.updateStreamModes(t,n[t.__viewId])}))},uO=function(t,e){var n=this,r=this.getModel(),i=t.type,o=t.escapeConnect,a=CO[i],s=a.actionInfo,l=(s.update||"update").split(":"),u=l.pop(),c=null!=l[0]&&hl(l[0]);this[Zw]=!0;var h=[t],d=!1;t.batch&&(d=!0,h=It(t.batch,(function(e){return e=St(Ot({},e),t),e.batch=null,e})));var p,f=[],g=ed(t),v=nd(t);if(v&&Rh(this._api),Pt(h,(function(e){if(p=a.action(e,n._model,n._api),p=p||Ot({},e),p.type=s.event||p.type,f.push(p),v){var r=Js(t),i=r.queryOptionMap,o=r.mainTypeSpecified,l=o?i.keys()[0]:"series";oO(n,u,e,l),bO(n)}else g?(oO(n,u,e,"series"),bO(n)):c&&oO(n,u,e,c.main,c.sub)})),"none"!==u&&!v&&!g&&!c)try{this[Gw]?(rO(this),aO.update.call(this,t),this[Gw]=null):aO[u].call(this,t)}catch($y){throw this[Zw]=!1,$y}if(p=d?{type:s.event||i,escapeConnect:o,batch:f}:f[0],this[Zw]=!1,!e){var m=this._messageCenter;if(m.trigger(p.type,p),g){var y={type:"selectchanged",escapeConnect:o,selected:Vh(r),isFromClick:t.isFromClick||!1,fromAction:t.type,fromActionPayload:t};m.trigger(y.type,y)}}},cO=function(t){var e=this._pendingActions;while(e.length){var n=e.shift();uO.call(this,n,t)}},hO=function(t){!t&&this.trigger("updated")},dO=function(t,e){t.on("rendered",(function(n){e.trigger("rendered",n),!t.animation.isFinished()||e[Gw]||e._scheduler.unfinished||e._pendingActions.length||e.trigger("finished")}))},pO=function(t,e){t.on("mouseover",(function(t){var n=t.target,r=hx(n,Kh);r&&(Bh(r,t,e._api),bO(e))})).on("mouseout",(function(t){var n=t.target,r=hx(n,Kh);r&&(Fh(r,t,e._api),bO(e))})).on("click",(function(t){var n=t.target,r=hx(n,(function(t){return null!=Qc(t).dataIndex}),!0);if(r){var i=r.selected?"unselect":"select",o=Qc(r);e._api.dispatchAction({type:i,dataType:o.dataType,dataIndexInside:o.dataIndex,seriesIndex:o.seriesIndex,isFromClick:!0})}}))},fO=function(t,n,r,i,o){e(n),gO(t,n,r,i,o),Pt(t._chartsViews,(function(t){t.__alive=!1})),vO(t,n,r,i,o),Pt(t._chartsViews,(function(t){t.__alive||t.remove(n,r)}))},gO=function(t,e,n,r,i,a){Pt(a||t._componentsViews,(function(t){var i=t.__model;s(i,t),t.render(i,e,n,r),o(i,t),l(i,t)}))},vO=function(t,e,n,a,u,c){var h=t._scheduler;u=Ot(u||{},{updatedSeries:e.getSeries()}),Ow.trigger("series:beforeupdate",e,n,u);var d=!1;e.eachSeries((function(e){var n=t._chartsMap[e.__viewId];n.__alive=!0;var r=n.renderTask;h.updatePayload(r,a),s(e,n),c&&c.get(e.uid)&&r.dirty(),r.perform(h.getPerformArgs(r))&&(d=!0),n.group.silent=!!e.get("silent"),i(e,n),jh(e)})),h.unfinished=d||h.unfinished,Ow.trigger("series:layoutlabels",e,n,u),Ow.trigger("series:transition",e,n,u),e.eachSeries((function(e){var n=t._chartsMap[e.__viewId];o(e,n),l(e,n)})),r(t,e),Ow.trigger("series:afterupdate",e,n,u)},bO=function(t){t[Xw]=!0,t.getZr().wakeUp()},_O=function(t){t[Xw]&&(t.getZr().storage.traverse((function(t){ud(t)||n(t)})),t[Xw]=!1)},mO=function(t){return new(function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return Q(n,e),n.prototype.getCoordinateSystems=function(){return t._coordSysMgr.getCoordinateSystems()},n.prototype.getComponentByElement=function(e){while(e){var n=e.__ecComponentInfo;if(null!=n)return t._model.getComponent(n.mainType,n.index);e=e.parent}},n.prototype.enterEmphasis=function(e,n){Ch(e,n),bO(t)},n.prototype.leaveEmphasis=function(e,n){Mh(e,n),bO(t)},n.prototype.enterBlur=function(e){Th(e),bO(t)},n.prototype.leaveBlur=function(e){Ph(e),bO(t)},n.prototype.enterSelect=function(e){Ih(e),bO(t)},n.prototype.leaveSelect=function(e){$h(e),bO(t)},n.prototype.getModel=function(){return t.getModel()},n.prototype.getViewOfComponentModel=function(e){return t.getViewOfComponentModel(e)},n.prototype.getViewOfSeriesModel=function(e){return t.getViewOfSeriesModel(e)},n}(lg))(t)},yO=function(t){function e(t,e){for(var n=0;n<t.length;n++){var r=t[n];r[Yw]=e}}Pt(MO,(function(n,r){t._messageCenter.on(r,(function(n){if(DO[t.group]&&t[Yw]!==qw){if(n&&n.escapeConnect)return;var r=t.makeActionFromEvent(n),i=[];Pt(RO,(function(e){e!==t&&e.group===t.group&&i.push(e)})),e(i,qw),Pt(i,(function(t){t[Yw]!==Kw&&t.dispatchAction(r)})),e(i,Jw)}}))}))}}(),e}(Xe),SO=OO.prototype;SO.on=tO("on"),SO.off=tO("off"),SO.one=function(t,e,n){var r=this;function i(){for(var n=[],o=0;o<arguments.length;o++)n[o]=arguments[o];e&&e.apply&&e.apply(this,n),r.off(t,i)}Av("ECharts#one is deprecated."),this.on.call(this,t,i,n)};var AO=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];function kO(t){0}var CO={},MO={},TO=[],PO=[],IO=[],$O={},EO={},RO={},DO={},LO=+new Date-0,NO=+new Date-0,zO="_echarts_instance_";function BO(t,e,n){var r=!(n&&n.ssr);if(r){0;var i=QO(t);if(i)return i;0}var o=new OO(t,e,n);return o.id="ec_"+LO++,RO[o.id]=o,r&&rl(t,zO,o.id),yO(o),Ow.trigger("afterinit",o),o}function FO(t){if(Bt(t)){var e=t;t=null,Pt(e,(function(e){null!=e.group&&(t=e.group)})),t=t||"g_"+NO++,Pt(e,(function(e){e.group=t}))}return DO[t]=!0,t}function WO(t){DO[t]=!1}var jO=WO;function VO(t){Wt(t)?t=RO[t]:t instanceof OO||(t=QO(t)),t instanceof OO&&!t.isDisposed()&&t.dispose()}function QO(t){return RO[il(t,zO)]}function HO(t){return RO[t]}function ZO(t,e){$O[t]=e}function GO(t){kt(PO,t)<0&&PO.push(t)}function XO(t,e){iS(TO,t,e,Ew)}function UO(t){qO("afterinit",t)}function YO(t){qO("afterupdate",t)}function qO(t,e){Ow.on(t,e)}function KO(t,e,n){Ft(e)&&(n=e,e="");var r=Qt(t)?t.type:[t,t={event:e}][0];t.event=(t.event||r).toLowerCase(),e=t.event,MO[e]||(re(Uw.test(r)&&Uw.test(e)),CO[r]||(CO[r]={action:n,actionInfo:t}),MO[e]=r)}function JO(t,e){hg.register(t,e)}function tS(t){var e=hg.get(t);if(e)return e.getDimensionsInfo?e.getDimensionsInfo():e.dimensions.slice()}function eS(t,e){iS(IO,t,e,Dw,"layout")}function nS(t,e){iS(IO,t,e,zw,"visual")}var rS=[];function iS(t,e,n,r,i){if((Ft(e)||Qt(e))&&(n=e,e=r),!(kt(rS,n)>=0)){rS.push(n);var o=H_.wrapStageHandler(n,i);o.__prio=e,o.__raw=n,t.push(o)}}function oS(t,e){EO[t]=e}function aS(t){ot({createCanvas:t})}function sS(t,e,n){var r=kw("registerMap");r&&r(t,e,n)}function lS(t){var e=kw("getMap");return e&&e(t)}var uS=jv;nS(Nw,S_),nS(Fw,k_),nS(Fw,C_),nS(Nw,rx),nS(Fw,ix),nS(Qw,xw),GO(jg),XO(Iw,Vg),oS("default",T_),KO({type:rh,event:rh,update:rh},me),KO({type:ih,event:ih,update:ih},me),KO({type:oh,event:oh,update:oh},me),KO({type:ah,event:ah,update:ah},me),KO({type:sh,event:sh,update:sh},me),ZO("light",G_),ZO("dark",J_);var cS={},hS=[],dS={registerPreprocessor:GO,registerProcessor:XO,registerPostInit:UO,registerPostUpdate:YO,registerUpdateLifecycle:qO,registerAction:KO,registerCoordinateSystem:JO,registerLayout:eS,registerVisual:nS,registerTransform:uS,registerLoading:oS,registerMap:sS,registerImpl:Aw,PRIORITY:Hw,ComponentModel:vf,ComponentView:Hm,SeriesModel:Vm,ChartView:d_,registerComponentModel:function(t){vf.registerClass(t)},registerComponentView:function(t){Hm.registerClass(t)},registerSeriesModel:function(t){Vm.registerClass(t)},registerChartView:function(t){d_.registerClass(t)},registerSubTypeDefaulter:function(t,e){vf.registerSubTypeDefaulter(t,e)},registerPainter:function(t,e){Ga(t,e)}};function pS(t){Bt(t)?Pt(t,(function(t){pS(t)})):kt(hS,t)>=0||(hS.push(t),Ft(t)&&(t={install:t}),t.install(dS))}function fS(t){return null==t?0:t.length||1}function gS(t){return t}var vS=function(){function t(t,e,n,r,i,o){this._old=t,this._new=e,this._oldKeyGetter=n||gS,this._newKeyGetter=r||gS,this.context=i,this._diffModeMultiple="multiple"===o}return t.prototype.add=function(t){return this._add=t,this},t.prototype.update=function(t){return this._update=t,this},t.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},t.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},t.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},t.prototype.remove=function(t){return this._remove=t,this},t.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},t.prototype._executeOneToOne=function(){var t=this._old,e=this._new,n={},r=new Array(t.length),i=new Array(e.length);this._initIndexMap(t,null,r,"_oldKeyGetter"),this._initIndexMap(e,n,i,"_newKeyGetter");for(var o=0;o<t.length;o++){var a=r[o],s=n[a],l=fS(s);if(l>1){var u=s.shift();1===s.length&&(n[a]=s[0]),this._update&&this._update(u,o)}else 1===l?(n[a]=null,this._update&&this._update(s,o)):this._remove&&this._remove(o)}this._performRestAdd(i,n)},t.prototype._executeMultiple=function(){var t=this._old,e=this._new,n={},r={},i=[],o=[];this._initIndexMap(t,n,i,"_oldKeyGetter"),this._initIndexMap(e,r,o,"_newKeyGetter");for(var a=0;a<i.length;a++){var s=i[a],l=n[s],u=r[s],c=fS(l),h=fS(u);if(c>1&&1===h)this._updateManyToOne&&this._updateManyToOne(u,l),r[s]=null;else if(1===c&&h>1)this._updateOneToMany&&this._updateOneToMany(u,l),r[s]=null;else if(1===c&&1===h)this._update&&this._update(u,l),r[s]=null;else if(c>1&&h>1)this._updateManyToMany&&this._updateManyToMany(u,l),r[s]=null;else if(c>1)for(var d=0;d<c;d++)this._remove&&this._remove(l[d]);else this._remove&&this._remove(l)}this._performRestAdd(o,r)},t.prototype._performRestAdd=function(t,e){for(var n=0;n<t.length;n++){var r=t[n],i=e[r],o=fS(i);if(o>1)for(var a=0;a<o;a++)this._add&&this._add(i[a]);else 1===o&&this._add&&this._add(i);e[r]=null}},t.prototype._initIndexMap=function(t,e,n,r){for(var i=this._diffModeMultiple,o=0;o<t.length;o++){var a="_ec_"+this[r](t[o],o);if(i||(n[o]=a),e){var s=e[a],l=fS(s);0===l?(e[a]=o,i&&n.push(a)):1===l?e[a]=[s,o]:s.push(o)}}},t}(),mS=vS,yS=function(){function t(t,e){this._encode=t,this._schema=e}return t.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},t.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},t}();function bS(t,e){var n={},r=n.encode={},i=de(),o=[],a=[],s={};Pt(t.dimensions,(function(e){var n=t.getDimensionInfo(e),l=n.coordDim;if(l){0;var u=n.coordDimIndex;_S(r,l)[u]=e,n.isExtraCoord||(i.set(l,1),wS(n.type)&&(o[0]=e),_S(s,l)[u]=t.getDimensionIndex(n.name)),n.defaultTooltip&&a.push(e)}_f.each((function(t,e){var i=_S(r,e),o=n.otherDims[e];null!=o&&!1!==o&&(i[o]=n.name)}))}));var l=[],u={};i.each((function(t,e){var n=r[e];u[e]=n[0],l=l.concat(n)})),n.dataDimsOnCoord=l,n.dataDimIndicesOnCoord=It(l,(function(e){return t.getDimensionInfo(e).storeDimIndex})),n.encodeFirstDimNotExtra=u;var c=r.label;c&&c.length&&(o=c.slice());var h=r.tooltip;return h&&h.length?a=h.slice():a.length||(a=o.slice()),r.defaultedLabel=o,r.defaultedTooltip=a,n.userOutput=new yS(s,e),n}function _S(t,e){return t.hasOwnProperty(e)||(t[e]=[]),t[e]}function xS(t){return"category"===t?"ordinal":"time"===t?"time":"float"}function wS(t){return!("ordinal"===t||"time"===t)}var OS=function(){function t(t){this.otherDims={},null!=t&&Ot(this,t)}return t}(),SS=OS,AS=Ys(),kS={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},CS=function(){function t(t){this.dimensions=t.dimensions,this._dimOmitted=t.dimensionOmitted,this.source=t.source,this._fullDimCount=t.fullDimensionCount,this._updateDimOmitted(t.dimensionOmitted)}return t.prototype.isDimensionOmitted=function(){return this._dimOmitted},t.prototype._updateDimOmitted=function(t){this._dimOmitted=t,t&&(this._dimNameMap||(this._dimNameMap=PS(this.source)))},t.prototype.getSourceDimensionIndex=function(t){return Jt(this._dimNameMap.get(t),-1)},t.prototype.getSourceDimension=function(t){var e=this.source.dimensionsDefine;if(e)return e[t]},t.prototype.makeStoreSchema=function(){for(var t=this._fullDimCount,e=av(this.source),n=!IS(t),r="",i=[],o=0,a=0;o<t;o++){var s=void 0,l=void 0,u=void 0,c=this.dimensions[a];if(c&&c.storeDimIndex===o)s=e?c.name:null,l=c.type,u=c.ordinalMeta,a++;else{var h=this.getSourceDimension(o);h&&(s=e?h.name:null,l=h.type)}i.push({property:s,type:l,ordinalMeta:u}),!e||null==s||c&&c.isCalculationCoord||(r+=n?s.replace(/\`/g,"`1").replace(/\$/g,"`2"):s),r+="$",r+=kS[l]||"f",u&&(r+=u.uid),r+="$"}var d=this.source,p=[d.seriesLayoutBy,d.startIndex,r].join("$$");return{dimensions:i,hash:p}},t.prototype.makeOutputDimensionNames=function(){for(var t=[],e=0,n=0;e<this._fullDimCount;e++){var r=void 0,i=this.dimensions[n];if(i&&i.storeDimIndex===e)i.isCalculationCoord||(r=i.name),n++;else{var o=this.getSourceDimension(e);o&&(r=o.name)}t.push(r)}return t},t.prototype.appendCalculationDimension=function(t){this.dimensions.push(t),t.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},t}();function MS(t){return t instanceof CS}function TS(t){for(var e=de(),n=0;n<(t||[]).length;n++){var r=t[n],i=Qt(r)?r.name:r;null!=i&&null==e.get(i)&&e.set(i,n)}return e}function PS(t){var e=AS(t);return e.dimNameMap||(e.dimNameMap=TS(t.dimensionsDefine))}function IS(t){return t>30}var $S,ES,RS,DS,LS,NS,zS,BS=Qt,FS=It,WS="undefined"===typeof Int32Array?Array:Int32Array,jS="e\0\0",VS=-1,QS=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],HS=["_approximateExtent"],ZS=function(){function t(t,e){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;MS(t)?(n=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(r=!0,n=t),n=n||["x","y"];for(var i={},o=[],a={},s=!1,l={},u=0;u<n.length;u++){var c=n[u],h=Wt(c)?new SS({name:c}):c instanceof SS?c:new SS(c),d=h.name;h.type=h.type||"float",h.coordDim||(h.coordDim=d,h.coordDimIndex=0);var p=h.otherDims=h.otherDims||{};o.push(d),i[d]=h,null!=l[d]&&(s=!0),h.createInvertedIndices&&(a[d]=[]),0===p.itemName&&(this._nameDimIdx=u),0===p.itemId&&(this._idDimIdx=u),r&&(h.storeDimIndex=u)}if(this.dimensions=o,this._dimInfos=i,this._initGetDimensionInfo(s),this.hostModel=e,this._invertedIndicesMap=a,this._dimOmitted){var f=this._dimIdxToName=de();Pt(o,(function(t){f.set(i[t].storeDimIndex,t)}))}}return t.prototype.getDimension=function(t){var e=this._recognizeDimIndex(t);if(null==e)return t;if(e=t,!this._dimOmitted)return this.dimensions[e];var n=this._dimIdxToName.get(e);if(null!=n)return n;var r=this._schema.getSourceDimension(e);return r?r.name:void 0},t.prototype.getDimensionIndex=function(t){var e=this._recognizeDimIndex(t);if(null!=e)return e;if(null==t)return-1;var n=this._getDimInfo(t);return n?n.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(t):-1},t.prototype._recognizeDimIndex=function(t){if(Vt(t)||null!=t&&!isNaN(t)&&!this._getDimInfo(t)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(t)<0))return+t},t.prototype._getStoreDimIndex=function(t){var e=this.getDimensionIndex(t);return e},t.prototype.getDimensionInfo=function(t){return this._getDimInfo(this.getDimension(t))},t.prototype._initGetDimensionInfo=function(t){var e=this._dimInfos;this._getDimInfo=t?function(t){return e.hasOwnProperty(t)?e[t]:void 0}:function(t){return e[t]}},t.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},t.prototype.mapDimension=function(t,e){var n=this._dimSummary;if(null==e)return n.encodeFirstDimNotExtra[t];var r=n.encode[t];return r?r[e]:null},t.prototype.mapDimensionsAll=function(t){var e=this._dimSummary,n=e.encode[t];return(n||[]).slice()},t.prototype.getStore=function(){return this._store},t.prototype.initData=function(t,e,n){var r,i=this;if(t instanceof im&&(r=t),!r){var o=this.dimensions,a=qg(t)||Tt(t)?new sv(t,o.length):t;r=new im;var s=FS(o,(function(t){return{type:i._dimInfos[t].type,property:t}}));r.initData(a,s,n)}this._store=r,this._nameList=(e||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,r.count()),this._dimSummary=bS(this,this._schema),this.userOutput=this._dimSummary.userOutput},t.prototype.appendData=function(t){var e=this._store.appendData(t);this._doInit(e[0],e[1])},t.prototype.appendValues=function(t,e){var n=this._store.appendValues(t,e.length),r=n.start,i=n.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),e)for(var a=r;a<i;a++){var s=a-r;this._nameList[a]=e[s],o&&zS(this,a)}},t.prototype._updateOrdinalMeta=function(){for(var t=this._store,e=this.dimensions,n=0;n<e.length;n++){var r=this._dimInfos[e[n]];r.ordinalMeta&&t.collectOrdinalMeta(r.storeDimIndex,r.ordinalMeta)}},t.prototype._shouldMakeIdFromName=function(){var t=this._store.getProvider();return null==this._idDimIdx&&t.getSource().sourceFormat!==Af&&!t.fillStorage},t.prototype._doInit=function(t,e){if(!(t>=e)){var n=this._store,r=n.getProvider();this._updateOrdinalMeta();var i=this._nameList,o=this._idList,a=r.getSource().sourceFormat,s=a===xf;if(s&&!r.pure)for(var l=[],u=t;u<e;u++){var c=r.getItem(u,l);if(!this.hasItemOption&&$s(c)&&(this.hasItemOption=!0),c){var h=c.name;null==i[u]&&null!=h&&(i[u]=js(h,null));var d=c.id;null==o[u]&&null!=d&&(o[u]=js(d,null))}}if(this._shouldMakeIdFromName())for(u=t;u<e;u++)zS(this,u);$S(this)}},t.prototype.getApproximateExtent=function(t){return this._approximateExtent[t]||this._store.getDataExtent(this._getStoreDimIndex(t))},t.prototype.setApproximateExtent=function(t,e){e=this.getDimension(e),this._approximateExtent[e]=t.slice()},t.prototype.getCalculationInfo=function(t){return this._calculationInfo[t]},t.prototype.setCalculationInfo=function(t,e){BS(t)?Ot(this._calculationInfo,t):this._calculationInfo[t]=e},t.prototype.getName=function(t){var e=this.getRawIndex(t),n=this._nameList[e];return null==n&&null!=this._nameDimIdx&&(n=RS(this,this._nameDimIdx,e)),null==n&&(n=""),n},t.prototype._getCategory=function(t,e){var n=this._store.get(t,e),r=this._store.getOrdinalMeta(t);return r?r.categories[n]:n},t.prototype.getId=function(t){return ES(this,this.getRawIndex(t))},t.prototype.count=function(){return this._store.count()},t.prototype.get=function(t,e){var n=this._store,r=this._dimInfos[t];if(r)return n.get(r.storeDimIndex,e)},t.prototype.getByRawIndex=function(t,e){var n=this._store,r=this._dimInfos[t];if(r)return n.getByRawIndex(r.storeDimIndex,e)},t.prototype.getIndices=function(){return this._store.getIndices()},t.prototype.getDataExtent=function(t){return this._store.getDataExtent(this._getStoreDimIndex(t))},t.prototype.getSum=function(t){return this._store.getSum(this._getStoreDimIndex(t))},t.prototype.getMedian=function(t){return this._store.getMedian(this._getStoreDimIndex(t))},t.prototype.getValues=function(t,e){var n=this,r=this._store;return Bt(t)?r.getValues(FS(t,(function(t){return n._getStoreDimIndex(t)})),e):r.getValues(t)},t.prototype.hasValue=function(t){for(var e=this._dimSummary.dataDimIndicesOnCoord,n=0,r=e.length;n<r;n++)if(isNaN(this._store.get(e[n],t)))return!1;return!0},t.prototype.indexOfName=function(t){for(var e=0,n=this._store.count();e<n;e++)if(this.getName(e)===t)return e;return-1},t.prototype.getRawIndex=function(t){return this._store.getRawIndex(t)},t.prototype.indexOfRawIndex=function(t){return this._store.indexOfRawIndex(t)},t.prototype.rawIndexOf=function(t,e){var n=t&&this._invertedIndicesMap[t];var r=n[e];return null==r||isNaN(r)?VS:r},t.prototype.indicesOfNearest=function(t,e,n){return this._store.indicesOfNearest(this._getStoreDimIndex(t),e,n)},t.prototype.each=function(t,e,n){Ft(t)&&(n=e,e=t,t=[]);var r=n||this,i=FS(DS(t),this._getStoreDimIndex,this);this._store.each(i,r?Nt(e,r):e)},t.prototype.filterSelf=function(t,e,n){Ft(t)&&(n=e,e=t,t=[]);var r=n||this,i=FS(DS(t),this._getStoreDimIndex,this);return this._store=this._store.filter(i,r?Nt(e,r):e),this},t.prototype.selectRange=function(t){var e=this,n={},r=Dt(t),i=[];return Pt(r,(function(r){var o=e._getStoreDimIndex(r);n[o]=t[r],i.push(o)})),this._store=this._store.selectRange(n),this},t.prototype.mapArray=function(t,e,n){Ft(t)&&(n=e,e=t,t=[]),n=n||this;var r=[];return this.each(t,(function(){r.push(e&&e.apply(this,arguments))}),n),r},t.prototype.map=function(t,e,n,r){var i=n||r||this,o=FS(DS(t),this._getStoreDimIndex,this),a=NS(this);return a._store=this._store.map(o,i?Nt(e,i):e),a},t.prototype.modify=function(t,e,n,r){var i=n||r||this;var o=FS(DS(t),this._getStoreDimIndex,this);this._store.modify(o,i?Nt(e,i):e)},t.prototype.downSample=function(t,e,n,r){var i=NS(this);return i._store=this._store.downSample(this._getStoreDimIndex(t),e,n,r),i},t.prototype.lttbDownSample=function(t,e){var n=NS(this);return n._store=this._store.lttbDownSample(this._getStoreDimIndex(t),e),n},t.prototype.getRawDataItem=function(t){return this._store.getRawDataItem(t)},t.prototype.getItemModel=function(t){var e=this.hostModel,n=this.getRawDataItem(t);return new Qd(n,e,e&&e.ecModel)},t.prototype.diff=function(t){var e=this;return new mS(t?t.getStore().getIndices():[],this.getStore().getIndices(),(function(e){return ES(t,e)}),(function(t){return ES(e,t)}))},t.prototype.getVisual=function(t){var e=this._visual;return e&&e[t]},t.prototype.setVisual=function(t,e){this._visual=this._visual||{},BS(t)?Ot(this._visual,t):this._visual[t]=e},t.prototype.getItemVisual=function(t,e){var n=this._itemVisuals[t],r=n&&n[e];return null==r?this.getVisual(e):r},t.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},t.prototype.ensureUniqueItemVisual=function(t,e){var n=this._itemVisuals,r=n[t];r||(r=n[t]={});var i=r[e];return null==i&&(i=this.getVisual(e),Bt(i)?i=i.slice():BS(i)&&(i=Ot({},i)),r[e]=i),i},t.prototype.setItemVisual=function(t,e,n){var r=this._itemVisuals[t]||{};this._itemVisuals[t]=r,BS(e)?Ot(r,e):r[e]=n},t.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},t.prototype.setLayout=function(t,e){BS(t)?Ot(this._layout,t):this._layout[t]=e},t.prototype.getLayout=function(t){return this._layout[t]},t.prototype.getItemLayout=function(t){return this._itemLayouts[t]},t.prototype.setItemLayout=function(t,e,n){this._itemLayouts[t]=n?Ot(this._itemLayouts[t]||{},e):e},t.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},t.prototype.setItemGraphicEl=function(t,e){var n=this.hostModel&&this.hostModel.seriesIndex;Hc(n,this.dataType,t,e),this._graphicEls[t]=e},t.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},t.prototype.eachItemGraphicEl=function(t,e){Pt(this._graphicEls,(function(n,r){n&&t&&t.call(e,n,r)}))},t.prototype.cloneShallow=function(e){return e||(e=new t(this._schema?this._schema:FS(this.dimensions,this._getDimInfo,this),this.hostModel)),LS(e,this),e._store=this._store,e},t.prototype.wrapMethod=function(t,e){var n=this[t];Ft(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var t=n.apply(this,arguments);return e.apply(this,[t].concat(ee(arguments)))})},t.internalField=function(){$S=function(t){var e=t._invertedIndicesMap;Pt(e,(function(n,r){var i=t._dimInfos[r],o=i.ordinalMeta,a=t._store;if(o){n=e[r]=new WS(o.categories.length);for(var s=0;s<n.length;s++)n[s]=VS;for(s=0;s<a.count();s++)n[a.get(i.storeDimIndex,s)]=s}}))},RS=function(t,e,n){return js(t._getCategory(e,n),null)},ES=function(t,e){var n=t._idList[e];return null==n&&null!=t._idDimIdx&&(n=RS(t,t._idDimIdx,e)),null==n&&(n=jS+e),n},DS=function(t){return Bt(t)||(t=null!=t?[t]:[]),t},NS=function(e){var n=new t(e._schema?e._schema:FS(e.dimensions,e._getDimInfo,e),e.hostModel);return LS(n,e),n},LS=function(t,e){Pt(QS.concat(e.__wrappedMethods||[]),(function(n){e.hasOwnProperty(n)&&(t[n]=e[n])})),t.__wrappedMethods=e.__wrappedMethods,Pt(HS,(function(n){t[n]=_t(e[n])})),t._calculationInfo=Ot({},e._calculationInfo)},zS=function(t,e){var n=t._nameList,r=t._idList,i=t._nameDimIdx,o=t._idDimIdx,a=n[e],s=r[e];if(null==a&&null!=i&&(n[e]=a=RS(t,i,e)),null==s&&null!=o&&(r[e]=s=RS(t,o,e)),null==s&&null!=a){var l=t._nameRepeatCount,u=l[a]=(l[a]||0)+1;s=a,u>1&&(s+="__ec__"+u),r[e]=s}}}(),t}(),GS=ZS;function XS(t,e){return US(t,e).dimensions}function US(t,e){qg(t)||(t=Jg(t)),e=e||{};var n=e.coordDimensions||[],r=e.dimensionsDefine||t.dimensionsDefine||[],i=de(),o=[],a=qS(t,n,r,e.dimensionsCount),s=e.canOmitUnusedDimensions&&IS(a),l=r===t.dimensionsDefine,u=l?PS(t):TS(r),c=e.encodeDefine;!c&&e.encodeDefaulter&&(c=e.encodeDefaulter(t,a));for(var h=de(c),d=new Yv(a),p=0;p<d.length;p++)d[p]=-1;function f(t){var e=d[t];if(e<0){var n=r[t],i=Qt(n)?n:{name:n},a=new SS,s=i.name;null!=s&&null!=u.get(s)&&(a.name=a.displayName=s),null!=i.type&&(a.type=i.type),null!=i.displayName&&(a.displayName=i.displayName);var l=o.length;return d[t]=l,a.storeDimIndex=t,o.push(a),a}return o[e]}if(!s)for(p=0;p<a;p++)f(p);h.each((function(t,e){var n=Ms(t).slice();if(1===n.length&&!Wt(n[0])&&n[0]<0)h.set(e,!1);else{var r=h.set(e,[]);Pt(n,(function(t,n){var i=Wt(t)?u.get(t):t;null!=i&&i<a&&(r[n]=i,v(f(i),e,n))}))}}));var g=0;function v(t,e,n){null!=_f.get(e)?t.otherDims[e]=n:(t.coordDim=e,t.coordDimIndex=n,i.set(e,!0))}Pt(n,(function(t){var e,n,r,i;if(Wt(t))e=t,i={};else{i=t,e=i.name;var o=i.ordinalMeta;i.ordinalMeta=null,i=Ot({},i),i.ordinalMeta=o,n=i.dimsDef,r=i.otherDims,i.name=i.coordDim=i.coordDimIndex=i.dimsDef=i.otherDims=null}var s=h.get(e);if(!1!==s){if(s=Ms(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++)}Pt(s,(function(t,o){var a=f(t);if(l&&null!=i.type&&(a.type=i.type),v(St(a,i),e,o),null==a.name&&n){var s=n[o];!Qt(s)&&(s={name:s}),a.name=a.displayName=s.name,a.defaultTooltip=s.defaultTooltip}r&&St(a.otherDims,r)}))}}));var m=e.generateCoord,y=e.generateCoordCount,b=null!=y;y=m?y||1:0;var _=m||"value";function x(t){null==t.name&&(t.name=t.coordDim)}if(s)Pt(o,(function(t){x(t)})),o.sort((function(t,e){return t.storeDimIndex-e.storeDimIndex}));else for(var w=0;w<a;w++){var O=f(w),S=O.coordDim;null==S&&(O.coordDim=KS(_,i,b),O.coordDimIndex=0,(!m||y<=0)&&(O.isExtraCoord=!0),y--),x(O),null!=O.type||Lf(t,w)!==Tf.Must&&(!O.isExtraCoord||null==O.otherDims.itemName&&null==O.otherDims.seriesName)||(O.type="ordinal")}return YS(o),new CS({source:t,dimensions:o,fullDimensionCount:a,dimensionOmitted:s})}function YS(t){for(var e=de(),n=0;n<t.length;n++){var r=t[n],i=r.name,o=e.get(i)||0;o>0&&(r.name=i+(o-1)),o++,e.set(i,o)}}function qS(t,e,n,r){var i=Math.max(t.dimensionsDetectedCount||1,e.length,n.length,r||0);return Pt(e,(function(t){var e;Qt(t)&&(e=t.dimsDef)&&(i=Math.max(i,e.length))})),i}function KS(t,e,n){if(n||e.hasKey(t)){var r=0;while(e.hasKey(t+r))r++;t+=r}return e.set(t,!0),t}var JS=function(){function t(t){this.coordSysDims=[],this.axisMap=de(),this.categoryAxisMap=de(),this.coordSysName=t}return t}();function tA(t){var e=t.get("coordinateSystem"),n=new JS(e),r=eA[e];if(r)return r(t,n,n.axisMap,n.categoryAxisMap),n}var eA={cartesian2d:function(t,e,n,r){var i=t.getReferringComponents("xAxis",tl).models[0],o=t.getReferringComponents("yAxis",tl).models[0];e.coordSysDims=["x","y"],n.set("x",i),n.set("y",o),nA(i)&&(r.set("x",i),e.firstCategoryDimIndex=0),nA(o)&&(r.set("y",o),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=1))},singleAxis:function(t,e,n,r){var i=t.getReferringComponents("singleAxis",tl).models[0];e.coordSysDims=["single"],n.set("single",i),nA(i)&&(r.set("single",i),e.firstCategoryDimIndex=0)},polar:function(t,e,n,r){var i=t.getReferringComponents("polar",tl).models[0],o=i.findAxisModel("radiusAxis"),a=i.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],n.set("radius",o),n.set("angle",a),nA(o)&&(r.set("radius",o),e.firstCategoryDimIndex=0),nA(a)&&(r.set("angle",a),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=1))},geo:function(t,e,n,r){e.coordSysDims=["lng","lat"]},parallel:function(t,e,n,r){var i=t.ecModel,o=i.getComponent("parallel",t.get("parallelIndex")),a=e.coordSysDims=o.dimensions.slice();Pt(o.parallelAxisIndex,(function(t,o){var s=i.getComponent("parallelAxis",t),l=a[o];n.set(l,s),nA(s)&&(r.set(l,s),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=o))}))}};function nA(t){return"category"===t.get("type")}function rA(t,e,n){n=n||{};var r,i,o,a=n.byIndex,s=n.stackedCoordDimension;iA(e)?r=e:(i=e.schema,r=i.dimensions,o=e.store);var l,u,c,h,d=!(!t||!t.get("stack"));if(Pt(r,(function(t,e){Wt(t)&&(r[e]=t={name:t}),d&&!t.isExtraCoord&&(a||l||!t.ordinalMeta||(l=t),u||"ordinal"===t.type||"time"===t.type||s&&s!==t.coordDim||(u=t))})),!u||a||l||(a=!0),u){c="__\0ecstackresult_"+t.id,h="__\0ecstackedover_"+t.id,l&&(l.createInvertedIndices=!0);var p=u.coordDim,f=u.type,g=0;Pt(r,(function(t){t.coordDim===p&&g++}));var v={name:c,coordDim:p,coordDimIndex:g,type:f,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:r.length},m={name:h,coordDim:h,coordDimIndex:g+1,type:f,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:r.length+1};i?(o&&(v.storeDimIndex=o.ensureCalculationDimension(h,f),m.storeDimIndex=o.ensureCalculationDimension(c,f)),i.appendCalculationDimension(v),i.appendCalculationDimension(m)):(r.push(v),r.push(m))}return{stackedDimension:u&&u.name,stackedByDimension:l&&l.name,isStackedByIndex:a,stackedOverDimension:h,stackResultDimension:c}}function iA(t){return!MS(t.schema)}function oA(t,e){return!!e&&e===t.getCalculationInfo("stackedDimension")}function aA(t,e){return oA(t,e)?t.getCalculationInfo("stackResultDimension"):e}function sA(t,e){var n,r=t.get("coordinateSystem"),i=hg.get(r);return e&&e.coordSysDims&&(n=It(e.coordSysDims,(function(t){var n={name:t},r=e.axisMap.get(t);if(r){var i=r.get("type");n.type=xS(i)}return n}))),n||(n=i&&(i.getDimensionsInfo?i.getDimensionsInfo():i.dimensions.slice())||["x","y"]),n}function lA(t,e,n){var r,i;return n&&Pt(t,(function(t,o){var a=t.coordDim,s=n.categoryAxisMap.get(a);s&&(null==r&&(r=o),t.ordinalMeta=s.getOrdinalMeta(),e&&(t.createInvertedIndices=!0)),null!=t.otherDims.itemName&&(i=!0)})),i||null==r||(t[r].otherDims.itemName=0),r}function uA(t,e,n){n=n||{};var r,i=e.getSourceManager(),o=!1;t?(o=!0,r=Jg(t)):(r=i.getSource(),o=r.sourceFormat===xf);var a=tA(e),s=sA(e,a),l=n.useEncodeDefaulter,u=Ft(l)?l:l?zt($f,s,e):null,c={coordDimensions:s,generateCoord:n.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!o},h=US(r,c),d=lA(h.dimensions,n.createInvertedIndices,a),p=o?null:i.getSharedDataStore(h),f=rA(e,{schema:h,store:p}),g=new GS(h,e);g.setCalculationInfo(f);var v=null!=d&&cA(r)?function(t,e,n,r){return r===d?n:this.defaultDimValueGetter(t,e,n,r)}:null;return g.hasItemOption=!1,g.initData(o?r:p,null,v),g}function cA(t){if(t.sourceFormat===xf){var e=hA(t.data||[]);return!Bt(Is(e))}}function hA(t){var e=0;while(e<t.length&&null==t[e])e++;return t[e]}var dA=uA,pA=function(){function t(t){this._setting=t||{},this._extent=[1/0,-1/0]}return t.prototype.getSetting=function(t){return this._setting[t]},t.prototype.unionExtent=function(t){var e=this._extent;t[0]<e[0]&&(e[0]=t[0]),t[1]>e[1]&&(e[1]=t[1])},t.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.setExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=t),isNaN(e)||(n[1]=e)},t.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},t.prototype.isBlank=function(){return this._isBlank},t.prototype.setBlank=function(t){this._isBlank=t},t}();xl(pA);var fA=pA,gA=0,vA=function(){function t(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++gA}return t.createByAxisModel=function(e){var n=e.option,r=n.data,i=r&&It(r,mA);return new t({categories:i,needCollect:!i,deduplication:!1!==n.dedplication})},t.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},t.prototype.parseAndCollect=function(t){var e,n=this._needCollect;if(!Wt(t)&&!n)return t;if(n&&!this._deduplication)return e=this.categories.length,this.categories[e]=t,e;var r=this._getOrCreateMap();return e=r.get(t),null==e&&(n?(e=this.categories.length,this.categories[e]=t,r.set(t,e)):e=NaN),e},t.prototype._getOrCreateMap=function(){return this._map||(this._map=de(this.categories))},t}();function mA(t){return Qt(t)&&null!=t.value?t.value:t+""}var yA=vA;function bA(t){return"interval"===t.type||"log"===t.type}function _A(t,e,n,r){var i={},o=t[1]-t[0],a=i.interval=ms(o/e,!0);null!=n&&a<n&&(a=i.interval=n),null!=r&&a>r&&(a=i.interval=r);var s=i.intervalPrecision=wA(a),l=i.niceTickExtent=[ns(Math.ceil(t[0]/a)*a,s),ns(Math.floor(t[1]/a)*a,s)];return SA(l,t),i}function xA(t){var e=Math.pow(10,vs(t)),n=t/e;return n?2===n?n=3:3===n?n=5:n*=2:n=1,ns(n*e)}function wA(t){return is(t)+2}function OA(t,e,n){t[e]=Math.max(Math.min(t[e],n[1]),n[0])}function SA(t,e){!isFinite(t[0])&&(t[0]=e[0]),!isFinite(t[1])&&(t[1]=e[1]),OA(t,0,e),OA(t,1,e),t[0]>t[1]&&(t[0]=t[1])}function AA(t,e){return t>=e[0]&&t<=e[1]}function kA(t,e){return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])}function CA(t,e){return t*(e[1]-e[0])+e[0]}var MA=function(t){function e(e){var n=t.call(this,e)||this;n.type="ordinal";var r=n.getSetting("ordinalMeta");return r||(r=new yA({})),Bt(r)&&(r=new yA({categories:It(r,(function(t){return Qt(t)?t.value:t}))})),n._ordinalMeta=r,n._extent=n.getSetting("extent")||[0,r.categories.length-1],n}return Q(e,t),e.prototype.parse=function(t){return null==t?NaN:Wt(t)?this._ordinalMeta.getOrdinal(t):Math.round(t)},e.prototype.contain=function(t){return t=this.parse(t),AA(t,this._extent)&&null!=this._ordinalMeta.categories[t]},e.prototype.normalize=function(t){return t=this._getTickNumber(this.parse(t)),kA(t,this._extent)},e.prototype.scale=function(t){return t=Math.round(CA(t,this._extent)),this.getRawOrdinalNumber(t)},e.prototype.getTicks=function(){var t=[],e=this._extent,n=e[0];while(n<=e[1])t.push({value:n}),n++;return t},e.prototype.getMinorTicks=function(t){},e.prototype.setSortInfo=function(t){if(null!=t){for(var e=t.ordinalNumbers,n=this._ordinalNumbersByTick=[],r=this._ticksByOrdinalNumber=[],i=0,o=this._ordinalMeta.categories.length,a=Math.min(o,e.length);i<a;++i){var s=e[i];n[i]=s,r[s]=i}for(var l=0;i<o;++i){while(null!=r[l])l++;n.push(l),r[l]=i}}else this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null},e.prototype._getTickNumber=function(t){var e=this._ticksByOrdinalNumber;return e&&t>=0&&t<e.length?e[t]:t},e.prototype.getRawOrdinalNumber=function(t){var e=this._ordinalNumbersByTick;return e&&t>=0&&t<e.length?e[t]:t},e.prototype.getLabel=function(t){if(!this.isBlank()){var e=this.getRawOrdinalNumber(t.value),n=this._ordinalMeta.categories[e];return null==n?"":n+""}},e.prototype.count=function(){return this._extent[1]-this._extent[0]+1},e.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},e.prototype.isInExtentRange=function(t){return t=this._getTickNumber(t),this._extent[0]<=t&&this._extent[1]>=t},e.prototype.getOrdinalMeta=function(){return this._ordinalMeta},e.prototype.calcNiceTicks=function(){},e.prototype.calcNiceExtent=function(){},e.type="ordinal",e}(fA);fA.registerClass(MA);var TA=MA,PA=ns,IA=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="interval",e._interval=0,e._intervalPrecision=2,e}return Q(e,t),e.prototype.parse=function(t){return t},e.prototype.contain=function(t){return AA(t,this._extent)},e.prototype.normalize=function(t){return kA(t,this._extent)},e.prototype.scale=function(t){return CA(t,this._extent)},e.prototype.setExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=parseFloat(t)),isNaN(e)||(n[1]=parseFloat(e))},e.prototype.unionExtent=function(t){var e=this._extent;t[0]<e[0]&&(e[0]=t[0]),t[1]>e[1]&&(e[1]=t[1]),this.setExtent(e[0],e[1])},e.prototype.getInterval=function(){return this._interval},e.prototype.setInterval=function(t){this._interval=t,this._niceExtent=this._extent.slice(),this._intervalPrecision=wA(t)},e.prototype.getTicks=function(t){var e=this._interval,n=this._extent,r=this._niceExtent,i=this._intervalPrecision,o=[];if(!e)return o;var a=1e4;n[0]<r[0]&&(t?o.push({value:PA(r[0]-e,i)}):o.push({value:n[0]}));var s=r[0];while(s<=r[1]){if(o.push({value:s}),s=PA(s+e,i),s===o[o.length-1].value)break;if(o.length>a)return[]}var l=o.length?o[o.length-1].value:r[1];return n[1]>l&&(t?o.push({value:PA(l+e,i)}):o.push({value:n[1]})),o},e.prototype.getMinorTicks=function(t){for(var e=this.getTicks(!0),n=[],r=this.getExtent(),i=1;i<e.length;i++){var o=e[i],a=e[i-1],s=0,l=[],u=o.value-a.value,c=u/t;while(s<t-1){var h=PA(a.value+(s+1)*c);h>r[0]&&h<r[1]&&l.push(h),s++}n.push(l)}return n},e.prototype.getLabel=function(t,e){if(null==t)return"";var n=e&&e.precision;null==n?n=is(t.value)||0:"auto"===n&&(n=this._intervalPrecision);var r=PA(t.value,n,!0);return Fp(r)},e.prototype.calcNiceTicks=function(t,e,n){t=t||5;var r=this._extent,i=r[1]-r[0];if(isFinite(i)){i<0&&(i=-i,r.reverse());var o=_A(r,t,e,n);this._intervalPrecision=o.intervalPrecision,this._interval=o.interval,this._niceExtent=o.niceTickExtent}},e.prototype.calcNiceExtent=function(t){var e=this._extent;if(e[0]===e[1])if(0!==e[0]){var n=Math.abs(e[0]);t.fixMax||(e[1]+=n/2),e[0]-=n/2}else e[1]=1;var r=e[1]-e[0];isFinite(r)||(e[0]=0,e[1]=1),this.calcNiceTicks(t.splitNumber,t.minInterval,t.maxInterval);var i=this._interval;t.fixMin||(e[0]=PA(Math.floor(e[0]/i)*i)),t.fixMax||(e[1]=PA(Math.ceil(e[1]/i)*i))},e.prototype.setNiceExtent=function(t,e){this._niceExtent=[t,e]},e.type="interval",e}(fA);fA.registerClass(IA);var $A=IA,EA="undefined"!==typeof Float32Array,RA=EA?Float32Array:Array;function DA(t){return Bt(t)?EA?new Float32Array(t):t:new RA(t)}var LA="__ec_stack_";function NA(t){return t.get("stack")||LA+t.seriesIndex}function zA(t){return t.dim+t.index}function BA(t){var e=[],n=t.axis,r="axis0";if("category"===n.type){for(var i=n.getBandWidth(),o=0;o<t.count;o++)e.push(St({bandWidth:i,axisKey:r,stackId:LA+o},t));var a=VA(e),s=[];for(o=0;o<t.count;o++){var l=a[r][LA+o];l.offsetCenter=l.offset+l.width/2,s.push(l)}return s}}function FA(t,e){var n=[];return e.eachSeriesByType(t,(function(t){GA(t)&&n.push(t)})),n}function WA(t){var e={};Pt(t,(function(t){var n=t.coordinateSystem,r=n.getBaseAxis();if("time"===r.type||"value"===r.type)for(var i=t.getData(),o=r.dim+"_"+r.index,a=i.getDimensionIndex(i.mapDimension(r.dim)),s=i.getStore(),l=0,u=s.count();l<u;++l){var c=s.get(a,l);e[o]?e[o].push(c):e[o]=[c]}}));var n={};for(var r in e)if(e.hasOwnProperty(r)){var i=e[r];if(i){i.sort((function(t,e){return t-e}));for(var o=null,a=1;a<i.length;++a){var s=i[a]-i[a-1];s>0&&(o=null===o?s:Math.min(o,s))}n[r]=o}}return n}function jA(t){var e=WA(t),n=[];return Pt(t,(function(t){var r,i=t.coordinateSystem,o=i.getBaseAxis(),a=o.getExtent();if("category"===o.type)r=o.getBandWidth();else if("value"===o.type||"time"===o.type){var s=o.dim+"_"+o.index,l=e[s],u=Math.abs(a[1]-a[0]),c=o.scale.getExtent(),h=Math.abs(c[1]-c[0]);r=l?u/h*l:u}else{var d=t.getData();r=Math.abs(a[1]-a[0])/d.count()}var p=es(t.get("barWidth"),r),f=es(t.get("barMaxWidth"),r),g=es(t.get("barMinWidth")||(XA(t)?.5:1),r),v=t.get("barGap"),m=t.get("barCategoryGap");n.push({bandWidth:r,barWidth:p,barMaxWidth:f,barMinWidth:g,barGap:v,barCategoryGap:m,axisKey:zA(o),stackId:NA(t)})})),VA(n)}function VA(t){var e={};Pt(t,(function(t,n){var r=t.axisKey,i=t.bandWidth,o=e[r]||{bandWidth:i,remainedWidth:i,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},a=o.stacks;e[r]=o;var s=t.stackId;a[s]||o.autoWidthCount++,a[s]=a[s]||{width:0,maxWidth:0};var l=t.barWidth;l&&!a[s].width&&(a[s].width=l,l=Math.min(o.remainedWidth,l),o.remainedWidth-=l);var u=t.barMaxWidth;u&&(a[s].maxWidth=u);var c=t.barMinWidth;c&&(a[s].minWidth=c);var h=t.barGap;null!=h&&(o.gap=h);var d=t.barCategoryGap;null!=d&&(o.categoryGap=d)}));var n={};return Pt(e,(function(t,e){n[e]={};var r=t.stacks,i=t.bandWidth,o=t.categoryGap;if(null==o){var a=Dt(r).length;o=Math.max(35-4*a,15)+"%"}var s=es(o,i),l=es(t.gap,1),u=t.remainedWidth,c=t.autoWidthCount,h=(u-s)/(c+(c-1)*l);h=Math.max(h,0),Pt(r,(function(t){var e=t.maxWidth,n=t.minWidth;if(t.width){r=t.width;e&&(r=Math.min(r,e)),n&&(r=Math.max(r,n)),t.width=r,u-=r+l*r,c--}else{var r=h;e&&e<r&&(r=Math.min(e,u)),n&&n>r&&(r=n),r!==h&&(t.width=r,u-=r+l*r,c--)}})),h=(u-s)/(c+(c-1)*l),h=Math.max(h,0);var d,p=0;Pt(r,(function(t,e){t.width||(t.width=h),d=t,p+=t.width*(1+l)})),d&&(p-=d.width*l);var f=-p/2;Pt(r,(function(t,r){n[e][r]=n[e][r]||{bandWidth:i,offset:f,width:t.width},f+=t.width*(1+l)}))})),n}function QA(t,e,n){if(t&&e){var r=t[zA(e)];return null!=r&&null!=n?r[NA(n)]:r}}function HA(t,e){var n=FA(t,e),r=jA(n);Pt(n,(function(t){var e=t.getData(),n=t.coordinateSystem,i=n.getBaseAxis(),o=NA(t),a=r[zA(i)][o],s=a.offset,l=a.width;e.setLayout({bandWidth:a.bandWidth,offset:s,size:l})}))}function ZA(t){return{seriesType:t,plan:Zm(),reset:function(t){if(GA(t)){var e=t.getData(),n=t.coordinateSystem,r=n.getBaseAxis(),i=n.getOtherAxis(r),o=e.getDimensionIndex(e.mapDimension(i.dim)),a=e.getDimensionIndex(e.mapDimension(r.dim)),s=t.get("showBackground",!0),l=e.mapDimension(i.dim),u=e.getCalculationInfo("stackResultDimension"),c=oA(e,l)&&!!e.getCalculationInfo("stackedOnSeries"),h=i.isHorizontal(),d=UA(r,i),p=XA(t),f=t.get("barMinHeight")||0,g=u&&e.getDimensionIndex(u),v=e.getLayout("size"),m=e.getLayout("offset");return{progress:function(t,e){var r,i=t.count,l=p&&DA(3*i),u=p&&s&&DA(3*i),y=p&&DA(i),b=n.master.getRect(),_=h?b.width:b.height,x=e.getStore(),w=0;while(null!=(r=t.next())){var O=x.get(c?g:o,r),S=x.get(a,r),A=d,k=void 0;c&&(k=+O-x.get(o,r));var C=void 0,M=void 0,T=void 0,P=void 0;if(h){var I=n.dataToPoint([O,S]);if(c){var $=n.dataToPoint([k,S]);A=$[0]}C=A,M=I[1]+m,T=I[0]-A,P=v,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]+m,M=A,T=v,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]=h?T:P,u&&(u[w]=h?b.x:C,u[w+1]=h?M:b.y,u[w+2]=_),y[r]=r):e.setItemLayout(r,{x:C,y:M,width:T,height:P}),w+=3}p&&e.setLayout({largePoints:l,largeDataIndices:y,largeBackgroundPoints:u,valueAxisHorizontal:h})}}}}}}function GA(t){return t.coordinateSystem&&"cartesian2d"===t.coordinateSystem.type}function XA(t){return t.pipelineContext&&t.pipelineContext.large}function UA(t,e){var n=e.model.get("startValue");return n||(n=0),e.toGlobalCoord(e.dataToCoord("log"===e.type?n>0?n:1:n))}var YA=function(t,e,n,r){while(n<r){var i=n+r>>>1;t[i][1]<e?n=i+1:r=i}return n},qA=function(t){function e(e){var n=t.call(this,e)||this;return n.type="time",n}return Q(e,t),e.prototype.getLabel=function(t){var e=this.getSetting("useUTC");return wp(t.value,gp[xp(bp(this._minLevelUnit))]||gp.second,e,this.getSetting("locale"))},e.prototype.getFormattedLabel=function(t,e,n){var r=this.getSetting("useUTC"),i=this.getSetting("locale");return Op(t,e,n,i,r)},e.prototype.getTicks=function(){var t=this._interval,e=this._extent,n=[];if(!t)return n;n.push({value:e[0],level:0});var r=this.getSetting("useUTC"),i=ak(this._minLevelUnit,this._approxInterval,r,e);return n=n.concat(i),n.push({value:e[1],level:0}),n},e.prototype.calcNiceExtent=function(t){var e=this._extent;if(e[0]===e[1]&&(e[0]-=hp,e[1]+=hp),e[1]===-1/0&&e[0]===1/0){var n=new Date;e[1]=+new Date(n.getFullYear(),n.getMonth(),n.getDate()),e[0]=e[1]-hp}this.calcNiceTicks(t.splitNumber,t.minInterval,t.maxInterval)},e.prototype.calcNiceTicks=function(t,e,n){t=t||10;var r=this._extent,i=r[1]-r[0];this._approxInterval=i/t,null!=e&&this._approxInterval<e&&(this._approxInterval=e),null!=n&&this._approxInterval>n&&(this._approxInterval=n);var o=KA.length,a=Math.min(YA(KA,this._approxInterval,0,o),o-1);this._interval=KA[a][1],this._minLevelUnit=KA[Math.max(a-1,0)][0]},e.prototype.parse=function(t){return Vt(t)?t:+fs(t)},e.prototype.contain=function(t){return AA(this.parse(t),this._extent)},e.prototype.normalize=function(t){return kA(this.parse(t),this._extent)},e.prototype.scale=function(t){return CA(t,this._extent)},e.type="time",e}($A),KA=[["second",lp],["minute",up],["hour",cp],["quarter-day",6*cp],["half-day",12*cp],["day",1.2*hp],["half-week",3.5*hp],["week",7*hp],["month",31*hp],["quarter",95*hp],["half-year",dp/2],["year",dp]];function JA(t,e,n,r){var i=fs(e),o=fs(n),a=function(t){return Ap(i,t,r)===Ap(o,t,r)},s=function(){return a("year")},l=function(){return s()&&a("month")},u=function(){return l()&&a("day")},c=function(){return u()&&a("hour")},h=function(){return c()&&a("minute")},d=function(){return h()&&a("second")},p=function(){return d()&&a("millisecond")};switch(t){case"year":return s();case"month":return l();case"day":return u();case"hour":return c();case"minute":return h();case"second":return d();case"millisecond":return p()}}function tk(t,e){return t/=hp,t>16?16:t>7.5?7:t>3.5?4:t>1.5?2:1}function ek(t){var e=30*hp;return t/=e,t>6?6:t>3?3:t>2?2:1}function nk(t){return t/=cp,t>12?12:t>6?6:t>3.5?4:t>2?2:1}function rk(t,e){return t/=e?up:lp,t>30?30:t>20?20:t>15?15:t>10?10:t>5?5:t>2?2:1}function ik(t){return ms(t,!0)}function ok(t,e,n){var r=new Date(t);switch(bp(e)){case"year":case"month":r[Rp(n)](0);case"day":r[Dp(n)](1);case"hour":r[Lp(n)](0);case"minute":r[Np(n)](0);case"second":r[zp(n)](0),r[Bp(n)](0)}return r.getTime()}function ak(t,e,n,r){var i=1e4,o=mp,a=0;function s(t,e,n,i,o,a,s){var l=new Date(e),u=e,c=l[i]();while(u<n&&u<=r[1])s.push({value:u}),c+=t,l[o](c),u=l.getTime();s.push({value:u,notAdd:!0})}function l(t,i,o){var a=[],l=!i.length;if(!JA(bp(t),r[0],r[1],n)){l&&(i=[{value:ok(new Date(r[0]),t,n)},{value:r[1]}]);for(var u=0;u<i.length-1;u++){var c=i[u].value,h=i[u+1].value;if(c!==h){var d=void 0,p=void 0,f=void 0,g=!1;switch(t){case"year":d=Math.max(1,Math.round(e/hp/365)),p=kp(n),f=Ep(n);break;case"half-year":case"quarter":case"month":d=ek(e),p=Cp(n),f=Rp(n);break;case"week":case"half-week":case"day":d=tk(e,31),p=Mp(n),f=Dp(n),g=!0;break;case"half-day":case"quarter-day":case"hour":d=nk(e),p=Tp(n),f=Lp(n);break;case"minute":d=rk(e,!0),p=Pp(n),f=Np(n);break;case"second":d=rk(e,!1),p=Ip(n),f=zp(n);break;case"millisecond":d=ik(e),p=$p(n),f=Bp(n);break}s(d,c,h,p,f,g,a),"year"===t&&o.length>1&&0===u&&o.unshift({value:o[0].value-d})}}for(u=0;u<a.length;u++)o.push(a[u]);return a}}for(var u=[],c=[],h=0,d=0,p=0;p<o.length&&a++<i;++p){var f=bp(o[p]);if(_p(o[p])){l(o[p],u[u.length-1]||[],c);var g=o[p+1]?bp(o[p+1]):null;if(f!==g){if(c.length){d=h,c.sort((function(t,e){return t.value-e.value}));for(var v=[],m=0;m<c.length;++m){var y=c[m].value;0!==m&&c[m-1].value===y||(v.push(c[m]),y>=r[0]&&y<=r[1]&&h++)}var b=(r[1]-r[0])/e;if(h>1.5*b&&d>b/1.5)break;if(u.push(v),h>b||t===o[p])break}c=[]}}}var _=Et(It(u,(function(t){return Et(t,(function(t){return t.value>=r[0]&&t.value<=r[1]&&!t.notAdd}))})),(function(t){return t.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(t,e){return t.value-e.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}fA.registerClass(qA);var sk=qA,lk=fA.prototype,uk=$A.prototype,ck=ns,hk=Math.floor,dk=Math.ceil,pk=Math.pow,fk=Math.log,gk=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="log",e.base=10,e._originalScale=new $A,e._interval=0,e}return Q(e,t),e.prototype.getTicks=function(t){var e=this._originalScale,n=this._extent,r=e.getExtent(),i=uk.getTicks.call(this,t);return It(i,(function(t){var e=t.value,i=ns(pk(this.base,e));return i=e===n[0]&&this._fixMin?mk(i,r[0]):i,i=e===n[1]&&this._fixMax?mk(i,r[1]):i,{value:i}}),this)},e.prototype.setExtent=function(t,e){var n=fk(this.base);t=fk(Math.max(0,t))/n,e=fk(Math.max(0,e))/n,uk.setExtent.call(this,t,e)},e.prototype.getExtent=function(){var t=this.base,e=lk.getExtent.call(this);e[0]=pk(t,e[0]),e[1]=pk(t,e[1]);var n=this._originalScale,r=n.getExtent();return this._fixMin&&(e[0]=mk(e[0],r[0])),this._fixMax&&(e[1]=mk(e[1],r[1])),e},e.prototype.unionExtent=function(t){this._originalScale.unionExtent(t);var e=this.base;t[0]=fk(t[0])/fk(e),t[1]=fk(t[1])/fk(e),lk.unionExtent.call(this,t)},e.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},e.prototype.calcNiceTicks=function(t){t=t||10;var e=this._extent,n=e[1]-e[0];if(!(n===1/0||n<=0)){var r=gs(n),i=t/n*r;i<=.5&&(r*=10);while(!isNaN(r)&&Math.abs(r)<1&&Math.abs(r)>0)r*=10;var o=[ns(dk(e[0]/r)*r),ns(hk(e[1]/r)*r)];this._interval=r,this._niceExtent=o}},e.prototype.calcNiceExtent=function(t){uk.calcNiceExtent.call(this,t),this._fixMin=t.fixMin,this._fixMax=t.fixMax},e.prototype.parse=function(t){return t},e.prototype.contain=function(t){return t=fk(t)/fk(this.base),AA(t,this._extent)},e.prototype.normalize=function(t){return t=fk(t)/fk(this.base),kA(t,this._extent)},e.prototype.scale=function(t){return t=CA(t,this._extent),pk(this.base,t)},e.type="log",e}(fA),vk=gk.prototype;function mk(t,e){return ck(t,is(e))}vk.getMinorTicks=uk.getMinorTicks,vk.getLabel=uk.getLabel,fA.registerClass(gk);var yk=gk,bk=function(){function t(t,e,n){this._prepareParams(t,e,n)}return t.prototype._prepareParams=function(t,e,n){n[1]<n[0]&&(n=[NaN,NaN]),this._dataMin=n[0],this._dataMax=n[1];var r=this._isOrdinal="ordinal"===t.type;this._needCrossZero="interval"===t.type&&e.getNeedCrossZero&&e.getNeedCrossZero();var i=e.get("min",!0);null==i&&(i=e.get("startValue",!0));var o=this._modelMinRaw=i;Ft(o)?this._modelMinNum=Ok(t,o({min:n[0],max:n[1]})):"dataMin"!==o&&(this._modelMinNum=Ok(t,o));var a=this._modelMaxRaw=e.get("max",!0);if(Ft(a)?this._modelMaxNum=Ok(t,a({min:n[0],max:n[1]})):"dataMax"!==a&&(this._modelMaxNum=Ok(t,a)),r)this._axisDataLen=e.getCategories().length;else{var s=e.get("boundaryGap"),l=Bt(s)?s:[s||0,s||0];"boolean"===typeof l[0]||"boolean"===typeof l[1]?this._boundaryGapInner=[0,0]:this._boundaryGapInner=[ba(l[0],1),ba(l[1],1)]}},t.prototype.calculate=function(){var t=this._isOrdinal,e=this._dataMin,n=this._dataMax,r=this._axisDataLen,i=this._boundaryGapInner,o=t?null:n-e||Math.abs(e),a="dataMin"===this._modelMinRaw?e:this._modelMinNum,s="dataMax"===this._modelMaxRaw?n:this._modelMaxNum,l=null!=a,u=null!=s;null==a&&(a=t?r?0:NaN:e-i[0]*o),null==s&&(s=t?r?r-1:NaN:n+i[1]*o),(null==a||!isFinite(a))&&(a=NaN),(null==s||!isFinite(s))&&(s=NaN);var c=qt(a)||qt(s)||t&&!r;this._needCrossZero&&(a>0&&s>0&&!l&&(a=0),a<0&&s<0&&!u&&(s=0));var h=this._determinedMin,d=this._determinedMax;return null!=h&&(a=h,l=!0),null!=d&&(s=d,u=!0),{min:a,max:s,minFixed:l,maxFixed:u,isBlank:c}},t.prototype.modifyDataMinMax=function(t,e){this[xk[t]]=e},t.prototype.setDeterminedMinMax=function(t,e){var n=_k[t];this[n]=e},t.prototype.freeze=function(){this.frozen=!0},t}(),_k={min:"_determinedMin",max:"_determinedMax"},xk={min:"_dataMin",max:"_dataMax"};function wk(t,e,n){var r=t.rawExtentInfo;return r||(r=new bk(t,e,n),t.rawExtentInfo=r,r)}function Ok(t,e){return null==e?null:qt(e)?NaN:t.parse(e)}function Sk(t,e){var n=t.type,r=wk(t,e,t.getExtent()).calculate();t.setBlank(r.isBlank);var i=r.min,o=r.max,a=e.ecModel;if(a&&"time"===n){var s=FA("bar",a),l=!1;if(Pt(s,(function(t){l=l||t.getBaseAxis()===e.axis})),l){var u=jA(s),c=Ak(i,o,e,u);i=c.min,o=c.max}}return{extent:[i,o],fixMin:r.minFixed,fixMax:r.maxFixed}}function Ak(t,e,n,r){var i=n.axis.getExtent(),o=i[1]-i[0],a=QA(r,n.axis);if(void 0===a)return{min:t,max:e};var s=1/0;Pt(a,(function(t){s=Math.min(t.offset,s)}));var l=-1/0;Pt(a,(function(t){l=Math.max(t.offset+t.width,l)})),s=Math.abs(s),l=Math.abs(l);var u=s+l,c=e-t,h=1-(s+l)/o,d=c/h-c;return e+=d*(l/u),t-=d*(s/u),{min:t,max:e}}function kk(t,e){var n=e,r=Sk(t,n),i=r.extent,o=n.get("splitNumber");t instanceof yk&&(t.base=n.get("logBase"));var a=t.type,s=n.get("interval"),l="interval"===a||"time"===a;t.setExtent(i[0],i[1]),t.calcNiceExtent({splitNumber:o,fixMin:r.fixMin,fixMax:r.fixMax,minInterval:l?n.get("minInterval"):null,maxInterval:l?n.get("maxInterval"):null}),null!=s&&t.setInterval&&t.setInterval(s)}function Ck(t,e){if(e=e||t.get("type"),e)switch(e){case"category":return new TA({ordinalMeta:t.getOrdinalMeta?t.getOrdinalMeta():t.getCategories(),extent:[1/0,-1/0]});case"time":return new sk({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC")});default:return new(fA.getClass(e)||$A)}}function Mk(t){var e=t.scale.getExtent(),n=e[0],r=e[1];return!(n>0&&r>0||n<0&&r<0)}function Tk(t){var e=t.getLabelModel().get("formatter"),n="category"===t.type?t.scale.getExtent()[0]:null;return"time"===t.scale.type?function(e){return function(n,r){return t.scale.getFormattedLabel(n,r,e)}}(e):Wt(e)?function(e){return function(n){var r=t.scale.getLabel(n),i=e.replace("{value}",null!=r?r:"");return i}}(e):Ft(e)?function(e){return function(r,i){return null!=n&&(i=r.value-n),e(Pk(t,r),i,null!=r.level?{level:r.level}:null)}}(e):function(e){return t.scale.getLabel(e)}}function Pk(t,e){return"category"===t.type?t.scale.getLabel(e):e.value}function Ik(t){var e=t.model,n=t.scale;if(e.get(["axisLabel","show"])&&!n.isBlank()){var r,i,o=n.getExtent();n instanceof TA?i=n.count():(r=n.getTicks(),i=r.length);var a,s=t.getLabelModel(),l=Tk(t),u=1;i>40&&(u=Math.ceil(i/40));for(var c=0;c<i;c+=u){var h=r?r[c]:{value:o[0]+c},d=l(h,c),p=s.getTextRect(d),f=$k(p,s.get("rotate")||0);a?a.union(f):a=f}return a}}function $k(t,e){var n=e*Math.PI/180,r=t.width,i=t.height,o=r*Math.abs(Math.cos(n))+Math.abs(i*Math.sin(n)),a=r*Math.abs(Math.sin(n))+Math.abs(i*Math.cos(n)),s=new Hn(t.x,t.y,o,a);return s}function Ek(t){var e=t.get("interval");return null==e?"auto":e}function Rk(t){return"category"===t.type&&0===Ek(t.getLabelModel())}function Dk(t,e){var n={};return Pt(t.mapDimensionsAll(e),(function(e){n[aA(t,e)]=!0})),Dt(n)}function Lk(t,e,n){e&&Pt(Dk(e,n),(function(n){var r=e.getApproximateExtent(n);r[0]<t[0]&&(t[0]=r[0]),r[1]>t[1]&&(t[1]=r[1])}))}var Nk=function(){function t(){}return t.prototype.getNeedCrossZero=function(){var t=this.option;return!t.scale},t.prototype.getCoordSysModel=function(){},t}();function zk(t){return dA(null,t)}var Bk={isDimensionStacked:oA,enableDataStack:rA,getStackedDimension:aA};function Fk(t,e){var n=e;e instanceof Qd||(n=new Qd(e));var r=Ck(n);return r.setExtent(t[0],t[1]),kk(r,n),r}function Wk(t){Mt(t,Nk)}function jk(t,e){return e=e||{},_d(t,null,null,"normal"!==e.state)}var Vk=1e-8;function Qk(t,e){return Math.abs(t-e)<Vk}function Hk(t,e,n){var r=0,i=t[0];if(!i)return!1;for(var o=1;o<t.length;o++){var a=t[o];r+=Qu(i[0],i[1],a[0],a[1],e,n),i=a}var s=t[0];return Qk(i[0],s[0])&&Qk(i[1],s[1])||(r+=Qu(i[0],i[1],s[0],s[1],e,n)),0!==r}var Zk=[];function Gk(t,e){for(var n=0;n<t.length;n++)We(t[n],t[n],e)}function Xk(t,e,n,r){for(var i=0;i<t.length;i++){var o=t[i];r&&(o=r.project(o)),o&&isFinite(o[0])&&isFinite(o[1])&&(je(e,e,o),Ve(n,n,o))}}function Uk(t){for(var e=0,n=0,r=0,i=t.length,o=t[i-1][0],a=t[i-1][1],s=0;s<i;s++){var l=t[s][0],u=t[s][1],c=o*u-l*a;e+=c,n+=(o+l)*c,r+=(a+u)*c,o=l,a=u}return e?[n/e/3,r/e/3,e]:[t[0][0]||0,t[0][1]||0]}var Yk=function(){function t(t){this.name=t}return t.prototype.setCenter=function(t){this._center=t},t.prototype.getCenter=function(){var t=this._center;return t||(t=this._center=this.calcCenter()),t},t}(),qk=function(){function t(t,e){this.type="polygon",this.exterior=t,this.interiors=e}return t}(),Kk=function(){function t(t){this.type="linestring",this.points=t}return t}(),Jk=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.type="geoJSON",i.geometries=n,i._center=r&&[r[0],r[1]],i}return Q(e,t),e.prototype.calcCenter=function(){for(var t,e=this.geometries,n=0,r=0;r<e.length;r++){var i=e[r],o=i.exterior,a=o&&o.length;a>n&&(t=i,n=a)}if(t)return Uk(t.exterior);var s=this.getBoundingRect();return[s.x+s.width/2,s.y+s.height/2]},e.prototype.getBoundingRect=function(t){var e=this._rect;if(e&&!t)return e;var n=[1/0,1/0],r=[-1/0,-1/0],i=this.geometries;return Pt(i,(function(e){"polygon"===e.type?Xk(e.exterior,n,r,t):Pt(e.points,(function(e){Xk(e,n,r,t)}))})),isFinite(n[0])&&isFinite(n[1])&&isFinite(r[0])&&isFinite(r[1])||(n[0]=n[1]=r[0]=r[1]=0),e=new Hn(n[0],n[1],r[0]-n[0],r[1]-n[1]),t||(this._rect=e),e},e.prototype.contain=function(t){var e=this.getBoundingRect(),n=this.geometries;if(!e.contain(t[0],t[1]))return!1;t:for(var r=0,i=n.length;r<i;r++){var o=n[r];if("polygon"===o.type){var a=o.exterior,s=o.interiors;if(Hk(a,t[0],t[1])){for(var l=0;l<(s?s.length:0);l++)if(Hk(s[l],t[0],t[1]))continue t;return!0}}}return!1},e.prototype.transformTo=function(t,e,n,r){var i=this.getBoundingRect(),o=i.width/i.height;n?r||(r=n/o):n=o*r;for(var a=new Hn(t,e,n,r),s=i.calculateTransform(a),l=this.geometries,u=0;u<l.length;u++){var c=l[u];"polygon"===c.type?(Gk(c.exterior,s),Pt(c.interiors,(function(t){Gk(t,s)}))):Pt(c.points,(function(t){Gk(t,s)}))}i=this._rect,i.copy(a),this._center=[i.x+i.width/2,i.y+i.height/2]},e.prototype.cloneShallow=function(t){null==t&&(t=this.name);var n=new e(t,this.geometries,this._center);return n._rect=this._rect,n.transformTo=null,n},e}(Yk),tC=function(t){function e(e,n){var r=t.call(this,e)||this;return r.type="geoSVG",r._elOnlyForCalculate=n,r}return Q(e,t),e.prototype.calcCenter=function(){var t=this._elOnlyForCalculate,e=t.getBoundingRect(),n=[e.x+e.width/2,e.y+e.height/2],r=kn(Zk),i=t;while(i&&!i.isGeoSVGGraphicRoot)Mn(r,i.getLocalTransform(),r),i=i.parent;return $n(r,r),We(n,n,r),n},e}(Yk);function eC(t){if(!t.UTF8Encoding)return t;var e=t,n=e.UTF8Scale;null==n&&(n=1024);var r=e.features;return Pt(r,(function(t){var e=t.geometry,r=e.encodeOffsets,i=e.coordinates;if(r)switch(e.type){case"LineString":e.coordinates=rC(i,r,n);break;case"Polygon":nC(i,r,n);break;case"MultiLineString":nC(i,r,n);break;case"MultiPolygon":Pt(i,(function(t,e){return nC(t,r[e],n)}))}})),e.UTF8Encoding=!1,e}function nC(t,e,n){for(var r=0;r<t.length;r++)t[r]=rC(t[r],e[r],n)}function rC(t,e,n){for(var r=[],i=e[0],o=e[1],a=0;a<t.length;a+=2){var s=t.charCodeAt(a)-64,l=t.charCodeAt(a+1)-64;s=s>>1^-(1&s),l=l>>1^-(1&l),s+=i,l+=o,i=s,o=l,r.push([s/n,l/n])}return r}function iC(t,e){return t=eC(t),It(Et(t.features,(function(t){return t.geometry&&t.properties&&t.geometry.coordinates.length>0})),(function(t){var n=t.properties,r=t.geometry,i=[];switch(r.type){case"Polygon":var o=r.coordinates;i.push(new qk(o[0],o.slice(1)));break;case"MultiPolygon":Pt(r.coordinates,(function(t){t[0]&&i.push(new qk(t[0],t.slice(1)))}));break;case"LineString":i.push(new Kk([r.coordinates]));break;case"MultiLineString":i.push(new Kk(r.coordinates))}var a=new Jk(n[e||"name"],i,n.cp);return a.properties=n,a}))}function oC(t,e,n,r,i,o,a,s){var l=new Vc({style:{text:t,font:e,align:n,verticalAlign:r,padding:i,rich:o,overflow:a?"truncate":null,lineHeight:s}});return l.getBoundingRect()}var aC=Ys();function sC(t,e){var n=It(e,(function(e){return t.scale.parse(e)}));return"time"===t.type&&n.length>0&&(n.sort(),n.unshift(n[0]),n.push(n[n.length-1])),n}function lC(t){var e=t.getLabelModel().get("customValues");if(e){var n=Tk(t);return{labels:sC(t,e).map((function(e){var r={value:e};return{formattedLabel:n(r),rawLabel:t.scale.getLabel(r),tickValue:e}}))}}return"category"===t.type?cC(t):pC(t)}function uC(t,e){var n=t.getTickModel().get("customValues");return n?{ticks:sC(t,n)}:"category"===t.type?dC(t,e):{ticks:It(t.scale.getTicks(),(function(t){return t.value}))}}function cC(t){var e=t.getLabelModel(),n=hC(t,e);return!e.get("show")||t.scale.isBlank()?{labels:[],labelCategoryInterval:n.labelCategoryInterval}:n}function hC(t,e){var n,r,i=fC(t,"labels"),o=Ek(e),a=gC(i,o);return a||(Ft(o)?n=xC(t,o):(r="auto"===o?mC(t):o,n=_C(t,r)),vC(i,o,{labels:n,labelCategoryInterval:r}))}function dC(t,e){var n,r,i=fC(t,"ticks"),o=Ek(e),a=gC(i,o);if(a)return a;if(e.get("show")&&!t.scale.isBlank()||(n=[]),Ft(o))n=xC(t,o,!0);else if("auto"===o){var s=hC(t,t.getLabelModel());r=s.labelCategoryInterval,n=It(s.labels,(function(t){return t.tickValue}))}else r=o,n=_C(t,r,!0);return vC(i,o,{ticks:n,tickCategoryInterval:r})}function pC(t){var e=t.scale.getTicks(),n=Tk(t);return{labels:It(e,(function(e,r){return{level:e.level,formattedLabel:n(e,r),rawLabel:t.scale.getLabel(e),tickValue:e.value}}))}}function fC(t,e){return aC(t)[e]||(aC(t)[e]=[])}function gC(t,e){for(var n=0;n<t.length;n++)if(t[n].key===e)return t[n].value}function vC(t,e,n){return t.push({key:e,value:n}),n}function mC(t){var e=aC(t).autoInterval;return null!=e?e:aC(t).autoInterval=t.calculateCategoryInterval()}function yC(t){var e=bC(t),n=Tk(t),r=(e.axisRotate-e.labelRotate)/180*Math.PI,i=t.scale,o=i.getExtent(),a=i.count();if(o[1]-o[0]<1)return 0;var s=1;a>40&&(s=Math.max(1,Math.floor(a/40)));for(var l=o[0],u=t.dataToCoord(l+1)-t.dataToCoord(l),c=Math.abs(u*Math.cos(r)),h=Math.abs(u*Math.sin(r)),d=0,p=0;l<=o[1];l+=s){var f=0,g=0,v=ga(n({value:l}),e.font,"center","top");f=1.3*v.width,g=1.3*v.height,d=Math.max(d,f,7),p=Math.max(p,g,7)}var m=d/c,y=p/h;isNaN(m)&&(m=1/0),isNaN(y)&&(y=1/0);var b=Math.max(0,Math.floor(Math.min(m,y))),_=aC(t.model),x=t.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 bC(t){var e=t.getLabelModel();return{axisRotate:t.getRotate?t.getRotate():t.isHorizontal&&!t.isHorizontal()?90:0,labelRotate:e.get("rotate")||0,font:e.getFont()}}function _C(t,e,n){var r=Tk(t),i=t.scale,o=i.getExtent(),a=t.getLabelModel(),s=[],l=Math.max((e||0)+1,1),u=o[0],c=i.count();0!==u&&l>1&&c/l>2&&(u=Math.round(Math.ceil(u/l)*l));var h=Rk(t),d=a.get("showMinLabel")||h,p=a.get("showMaxLabel")||h;d&&u!==o[0]&&g(o[0]);for(var f=u;f<=o[1];f+=l)g(f);function g(t){var e={value:t};s.push(n?t:{formattedLabel:r(e),rawLabel:i.getLabel(e),tickValue:t})}return p&&f-l!==o[1]&&g(o[1]),s}function xC(t,e,n){var r=t.scale,i=Tk(t),o=[];return Pt(r.getTicks(),(function(t){var a=r.getLabel(t),s=t.value;e(t.value,a)&&o.push(n?s:{formattedLabel:i(t),rawLabel:a,tickValue:s})})),o}var wC=[0,1],OC=function(){function t(t,e,n){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=e,this._extent=n||[0,0]}return t.prototype.contain=function(t){var e=this._extent,n=Math.min(e[0],e[1]),r=Math.max(e[0],e[1]);return t>=n&&t<=r},t.prototype.containData=function(t){return this.scale.contain(t)},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.getPixelPrecision=function(t){return as(t||this.scale.getExtent(),this._extent)},t.prototype.setExtent=function(t,e){var n=this._extent;n[0]=t,n[1]=e},t.prototype.dataToCoord=function(t,e){var n=this._extent,r=this.scale;return t=r.normalize(t),this.onBand&&"ordinal"===r.type&&(n=n.slice(),SC(n,r.count())),ts(t,wC,n,e)},t.prototype.coordToData=function(t,e){var n=this._extent,r=this.scale;this.onBand&&"ordinal"===r.type&&(n=n.slice(),SC(n,r.count()));var i=ts(t,n,wC,e);return this.scale.scale(i)},t.prototype.pointToData=function(t,e){},t.prototype.getTicksCoords=function(t){t=t||{};var e=t.tickModel||this.getTickModel(),n=uC(this,e),r=n.ticks,i=It(r,(function(t){return{coord:this.dataToCoord("ordinal"===this.scale.type?this.scale.getRawOrdinalNumber(t):t),tickValue:t}}),this),o=e.get("alignWithLabel");return AC(this,i,o,t.clamp),i},t.prototype.getMinorTicksCoords=function(){if("ordinal"===this.scale.type)return[];var t=this.model.getModel("minorTick"),e=t.get("splitNumber");e>0&&e<100||(e=5);var n=this.scale.getMinorTicks(e),r=It(n,(function(t){return It(t,(function(t){return{coord:this.dataToCoord(t),tickValue:t}}),this)}),this);return r},t.prototype.getViewLabels=function(){return lC(this).labels},t.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},t.prototype.getTickModel=function(){return this.model.getModel("axisTick")},t.prototype.getBandWidth=function(){var t=this._extent,e=this.scale.getExtent(),n=e[1]-e[0]+(this.onBand?1:0);0===n&&(n=1);var r=Math.abs(t[1]-t[0]);return Math.abs(r)/n},t.prototype.calculateCategoryInterval=function(){return yC(this)},t}();function SC(t,e){var n=t[1]-t[0],r=e,i=n/r/2;t[0]+=i,t[1]-=i}function AC(t,e,n,r){var i=e.length;if(t.onBand&&!n&&i){var o,a,s=t.getExtent();if(1===i)e[0].coord=s[0],o=e[1]={coord:s[1]};else{var l=e[i-1].tickValue-e[0].tickValue,u=(e[i-1].coord-e[0].coord)/l;Pt(e,(function(t){t.coord-=u/2}));var c=t.scale.getExtent();a=1+c[1]-e[i-1].tickValue,o={coord:e[i-1].coord+u*a},e.push(o)}var h=s[0]>s[1];d(e[0].coord,s[0])&&(r?e[0].coord=s[0]:e.shift()),r&&d(s[0],e[0].coord)&&e.unshift({coord:s[0]}),d(s[1],o.coord)&&(r?o.coord=s[1]:e.pop()),r&&d(o.coord,s[1])&&e.push({coord:s[1]})}function d(t,e){return t=ns(t),e=ns(e),h?t>e:t<e}}var kC=OC;function CC(t){var e=vf.extend(t);return vf.registerClass(e),e}function MC(t){var e=Hm.extend(t);return Hm.registerClass(e),e}function TC(t){var e=Vm.extend(t);return Vm.registerClass(e),e}function PC(t){var e=d_.extend(t);return d_.registerClass(e),e}var IC=2*Math.PI,$C=Lu.CMD,EC=["top","right","bottom","left"];function RC(t,e,n,r,i){var o=n.width,a=n.height;switch(t){case"top":r.set(n.x+o/2,n.y-e),i.set(0,-1);break;case"bottom":r.set(n.x+o/2,n.y+a+e),i.set(0,1);break;case"left":r.set(n.x-e,n.y+a/2),i.set(-1,0);break;case"right":r.set(n.x+o+e,n.y+a/2),i.set(1,0);break}}function DC(t,e,n,r,i,o,a,s,l){a-=t,s-=e;var u=Math.sqrt(a*a+s*s);a/=u,s/=u;var c=a*n+t,h=s*n+e;if(Math.abs(r-i)%IC<1e-4)return l[0]=c,l[1]=h,u-n;if(o){var d=r;r=Wu(i),i=Wu(d)}else r=Wu(r),i=Wu(i);r>i&&(i+=IC);var p=Math.atan2(s,a);if(p<0&&(p+=IC),p>=r&&p<=i||p+IC>=r&&p+IC<=i)return l[0]=c,l[1]=h,u-n;var f=n*Math.cos(r)+t,g=n*Math.sin(r)+e,v=n*Math.cos(i)+t,m=n*Math.sin(i)+e,y=(f-a)*(f-a)+(g-s)*(g-s),b=(v-a)*(v-a)+(m-s)*(m-s);return y<b?(l[0]=f,l[1]=g,Math.sqrt(y)):(l[0]=v,l[1]=m,Math.sqrt(b))}function LC(t,e,n,r,i,o,a,s){var l=i-t,u=o-e,c=n-t,h=r-e,d=Math.sqrt(c*c+h*h);c/=d,h/=d;var p=l*c+u*h,f=p/d;s&&(f=Math.min(Math.max(f,0),1)),f*=d;var g=a[0]=t+f*c,v=a[1]=e+f*h;return Math.sqrt((g-i)*(g-i)+(v-o)*(v-o))}function NC(t,e,n,r,i,o,a){n<0&&(t+=n,n=-n),r<0&&(e+=r,r=-r);var s=t+n,l=e+r,u=a[0]=Math.min(Math.max(i,t),s),c=a[1]=Math.min(Math.max(o,e),l);return Math.sqrt((u-i)*(u-i)+(c-o)*(c-o))}var zC=[];function BC(t,e,n){var r=NC(e.x,e.y,e.width,e.height,t.x,t.y,zC);return n.set(zC[0],zC[1]),r}function FC(t,e,n){for(var r,i,o=0,a=0,s=0,l=0,u=1/0,c=e.data,h=t.x,d=t.y,p=0;p<c.length;){var f=c[p++];1===p&&(o=c[p],a=c[p+1],s=o,l=a);var g=u;switch(f){case $C.M:s=c[p++],l=c[p++],o=s,a=l;break;case $C.L:g=LC(o,a,c[p],c[p+1],h,d,zC,!0),o=c[p++],a=c[p++];break;case $C.C:g=jr(o,a,c[p++],c[p++],c[p++],c[p++],c[p],c[p+1],h,d,zC),o=c[p++],a=c[p++];break;case $C.Q:g=Ur(o,a,c[p++],c[p++],c[p],c[p+1],h,d,zC),o=c[p++],a=c[p++];break;case $C.A:var v=c[p++],m=c[p++],y=c[p++],b=c[p++],_=c[p++],x=c[p++];p+=1;var w=!!(1-c[p++]);r=Math.cos(_)*y+v,i=Math.sin(_)*b+m,p<=1&&(s=r,l=i);var O=(h-v)*b/y+v;g=DC(v,m,b,_,_+x,w,O,d,zC),o=Math.cos(_+x)*y+v,a=Math.sin(_+x)*b+m;break;case $C.R:s=o=c[p++],l=a=c[p++];var S=c[p++],A=c[p++];g=NC(s,l,S,A,h,d,zC);break;case $C.Z:g=LC(o,a,s,l,h,d,zC,!0),o=s,a=l;break}g<u&&(u=g,n.set(zC[0],zC[1]))}return u}var WC=new Dn,jC=new Dn,VC=new Dn,QC=new Dn,HC=new Dn;function ZC(t,e){if(t){var n=t.getTextGuideLine(),r=t.getTextContent();if(r&&n){var i=t.textGuideLineConfig||{},o=[[0,0],[0,0],[0,0]],a=i.candidates||EC,s=r.getBoundingRect().clone();s.applyTransform(r.getComputedTransform());var l=1/0,u=i.anchor,c=t.getComputedTransform(),h=c&&$n([],c),d=e.get("length2")||0;u&&VC.copy(u);for(var p=0;p<a.length;p++){var f=a[p];RC(f,0,s,WC,QC),Dn.scaleAndAdd(jC,WC,QC,d),jC.transform(h);var g=t.getBoundingRect(),v=u?u.distance(jC):t instanceof lc?FC(jC,t.path,VC):BC(jC,g,VC);v<l&&(l=v,jC.transform(c),VC.transform(c),VC.toArray(o[0]),jC.toArray(o[1]),WC.toArray(o[2]))}UC(o,e.get("minTurnAngle")),n.setShape({points:o})}}}var GC=[],XC=new Dn;function UC(t,e){if(e<=180&&e>0){e=e/180*Math.PI,WC.fromArray(t[0]),jC.fromArray(t[1]),VC.fromArray(t[2]),Dn.sub(QC,WC,jC),Dn.sub(HC,VC,jC);var n=QC.len(),r=HC.len();if(!(n<.001||r<.001)){QC.scale(1/n),HC.scale(1/r);var i=QC.dot(HC),o=Math.cos(e);if(o<i){var a=LC(jC.x,jC.y,VC.x,VC.y,WC.x,WC.y,GC,!1);XC.fromArray(GC),XC.scaleAndAdd(HC,a/Math.tan(Math.PI-e));var s=VC.x!==jC.x?(XC.x-jC.x)/(VC.x-jC.x):(XC.y-jC.y)/(VC.y-jC.y);if(isNaN(s))return;s<0?Dn.copy(XC,jC):s>1&&Dn.copy(XC,VC),XC.toArray(t[1])}}}}function YC(t,e,n){if(n<=180&&n>0){n=n/180*Math.PI,WC.fromArray(t[0]),jC.fromArray(t[1]),VC.fromArray(t[2]),Dn.sub(QC,jC,WC),Dn.sub(HC,VC,jC);var r=QC.len(),i=HC.len();if(!(r<.001||i<.001)){QC.scale(1/r),HC.scale(1/i);var o=QC.dot(e),a=Math.cos(n);if(o<a){var s=LC(jC.x,jC.y,VC.x,VC.y,WC.x,WC.y,GC,!1);XC.fromArray(GC);var l=Math.PI/2,u=Math.acos(HC.dot(e)),c=l+u-n;if(c>=l)Dn.copy(XC,VC);else{XC.scaleAndAdd(HC,s/Math.tan(Math.PI/2-c));var h=VC.x!==jC.x?(XC.x-jC.x)/(VC.x-jC.x):(XC.y-jC.y)/(VC.y-jC.y);if(isNaN(h))return;h<0?Dn.copy(XC,jC):h>1&&Dn.copy(XC,VC)}XC.toArray(t[1])}}}}function qC(t,e,n,r){var i="normal"===n,o=i?t:t.ensureState(n);o.ignore=e;var a=r.get("smooth");a&&!0===a&&(a=.3),o.shape=o.shape||{},a>0&&(o.shape.smooth=a);var s=r.getModel("lineStyle").getLineStyle();i?t.useStyle(s):o.style=s}function KC(t,e){var n=e.smooth,r=e.points;if(r)if(t.moveTo(r[0][0],r[0][1]),n>0&&r.length>=3){var i=Le(r[0],r[1]),o=Le(r[1],r[2]);if(!i||!o)return t.lineTo(r[1][0],r[1][1]),void t.lineTo(r[2][0],r[2][1]);var a=Math.min(i,o)*n,s=Fe([],r[1],r[0],a/i),l=Fe([],r[1],r[2],a/o),u=Fe([],s,l,.5);t.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),t.bezierCurveTo(l[0],l[1],l[0],l[1],r[2][0],r[2][1])}else for(var c=1;c<r.length;c++)t.lineTo(r[c][0],r[c][1])}function JC(t,e,n){var r=t.getTextGuideLine(),i=t.getTextContent();if(i){for(var o=e.normal,a=o.get("show"),s=i.ignore,l=0;l<th.length;l++){var u=th[l],c=e[u],h="normal"===u;if(c){var d=c.get("show"),p=h?s:Jt(i.states[u]&&i.states[u].ignore,s);if(p||!Jt(d,a)){var f=h?r:r&&r.states[u];f&&(f.ignore=!0),r&&qC(r,!0,u,c);continue}r||(r=new Yy,t.setTextGuideLine(r),h||!s&&a||qC(r,!0,"normal",e.normal),t.stateProxy&&(r.stateProxy=t.stateProxy)),qC(r,!1,u,c)}}if(r){St(r.style,n),r.style.fill=null;var g=o.get("showAbove"),v=t.textGuideLineConfig=t.textGuideLineConfig||{};v.showAbove=g||!1,r.buildPath=KC}}else r&&t.removeTextGuideLine()}function tM(t,e){e=e||"labelLine";for(var n={normal:t.getModel(e)},r=0;r<Jc.length;r++){var i=Jc[r];n[i]=t.getModel([i,e])}return n}function eM(t){for(var e=[],n=0;n<t.length;n++){var r=t[n];if(!r.defaultAttr.ignore){var i=r.label,o=i.getComputedTransform(),a=i.getBoundingRect(),s=!o||o[1]<1e-5&&o[2]<1e-5,l=i.style.margin||0,u=a.clone();u.applyTransform(o),u.x-=l/2,u.y-=l/2,u.width+=l,u.height+=l;var c=s?new wb(a,o):null;e.push({label:i,labelLine:r.labelLine,rect:u,localRect:a,obb:c,priority:r.priority,defaultAttr:r.defaultAttr,layoutOption:r.computedLayoutOption,axisAligned:s,transform:o})}}return e}function nM(t,e,n,r,i,o){var a=t.length;if(!(a<2)){t.sort((function(t,n){return t.rect[e]-n.rect[e]}));for(var s,l=0,u=!1,c=[],h=0,d=0;d<a;d++){var p=t[d],f=p.rect;s=f[e]-l,s<0&&(f[e]-=s,p.label[e]-=s,u=!0);var g=Math.max(-s,0);c.push(g),h+=g,l=f[e]+f[n]}h>0&&o&&w(-h/a,0,a);var v,m,y=t[0],b=t[a-1];return _(),v<0&&O(-v,.8),m<0&&O(m,.8),_(),x(v,m,1),x(m,v,-1),_(),v<0&&S(-v),m<0&&S(m),u}function _(){v=y.rect[e]-r,m=i-b.rect[e]-b.rect[n]}function x(t,e,n){if(t<0){var r=Math.min(e,-t);if(r>0){w(r*n,0,a);var i=r+t;i<0&&O(-i*n,1)}else O(-t*n,1)}}function w(n,r,i){0!==n&&(u=!0);for(var o=r;o<i;o++){var a=t[o],s=a.rect;s[e]+=n,a.label[e]+=n}}function O(r,i){for(var o=[],s=0,l=1;l<a;l++){var u=t[l-1].rect,c=Math.max(t[l].rect[e]-u[e]-u[n],0);o.push(c),s+=c}if(s){var h=Math.min(Math.abs(r)/s,i);if(r>0)for(l=0;l<a-1;l++){var d=o[l]*h;w(d,0,l+1)}else for(l=a-1;l>0;l--){d=o[l-1]*h;w(-d,l,a)}}}function S(t){var e=t<0?-1:1;t=Math.abs(t);for(var n=Math.ceil(t/(a-1)),r=0;r<a-1;r++)if(e>0?w(n,0,r+1):w(-n,a-r-1,a),t-=n,t<=0)return}}function rM(t,e,n,r){return nM(t,"x","width",e,n,r)}function iM(t,e,n,r){return nM(t,"y","height",e,n,r)}function oM(t){var e=[];t.sort((function(t,e){return e.priority-t.priority}));var n=new Hn(0,0,0,0);function r(t){if(!t.ignore){var e=t.ensureState("emphasis");null==e.ignore&&(e.ignore=!1)}t.ignore=!0}for(var i=0;i<t.length;i++){var o=t[i],a=o.axisAligned,s=o.localRect,l=o.transform,u=o.label,c=o.labelLine;n.copy(o.rect),n.width-=.1,n.height-=.1,n.x+=.05,n.y+=.05;for(var h=o.obb,d=!1,p=0;p<e.length;p++){var f=e[p];if(n.intersect(f.rect)){if(a&&f.axisAligned){d=!0;break}if(f.obb||(f.obb=new wb(f.localRect,f.transform)),h||(h=new wb(s,l)),h.intersect(f.obb)){d=!0;break}}}d?(r(u),c&&r(c)):(u.attr("ignore",o.defaultAttr.ignore),c&&c.attr("ignore",o.defaultAttr.labelGuideIgnore),e.push(o))}}function aM(t){if(t){for(var e=[],n=0;n<t.length;n++)e.push(t[n].slice());return e}}function sM(t,e){var n=t.label,r=e&&e.getTextGuideLine();return{dataIndex:t.dataIndex,dataType:t.dataType,seriesIndex:t.seriesModel.seriesIndex,text:t.label.style.text,rect:t.hostRect,labelRect:t.rect,align:n.style.align,verticalAlign:n.style.verticalAlign,labelLinePoints:aM(r&&r.shape.points)}}var lM=["align","verticalAlign","width","height","fontSize"],uM=new ha,cM=Ys(),hM=Ys();function dM(t,e,n){for(var r=0;r<n.length;r++){var i=n[r];null!=e[i]&&(t[i]=e[i])}}var pM=["x","y","rotation"],fM=function(){function t(){this._labelList=[],this._chartViewList=[]}return t.prototype.clearLabels=function(){this._labelList=[],this._chartViewList=[]},t.prototype._addLabel=function(t,e,n,r,i){var o=r.style,a=r.__hostTarget,s=a.textConfig||{},l=r.getComputedTransform(),u=r.getBoundingRect().plain();Hn.applyTransform(u,u,l),l?uM.setLocalTransform(l):(uM.x=uM.y=uM.rotation=uM.originX=uM.originY=0,uM.scaleX=uM.scaleY=1),uM.rotation=Wu(uM.rotation);var c,h=r.__hostTarget;if(h){c=h.getBoundingRect().plain();var d=h.getComputedTransform();Hn.applyTransform(c,c,d)}var p=c&&h.getTextGuideLine();this._labelList.push({label:r,labelLine:p,seriesModel:n,dataIndex:t,dataType:e,layoutOption:i,computedLayoutOption:null,rect:u,hostRect:c,priority:c?c.width*c.height:0,defaultAttr:{ignore:r.ignore,labelGuideIgnore:p&&p.ignore,x:uM.x,y:uM.y,scaleX:uM.scaleX,scaleY:uM.scaleY,rotation:uM.rotation,style:{x:o.x,y:o.y,align:o.align,verticalAlign:o.verticalAlign,width:o.width,height:o.height,fontSize:o.fontSize},cursor:r.cursor,attachedPos:s.position,attachedRot:s.rotation}})},t.prototype.addLabelsOfSeries=function(t){var e=this;this._chartViewList.push(t);var n=t.__model,r=n.get("labelLayout");(Ft(r)||Dt(r).length)&&t.group.traverse((function(t){if(t.ignore)return!0;var i=t.getTextContent(),o=Qc(t);i&&!i.disableLabelLayout&&e._addLabel(o.dataIndex,o.dataType,n,i,r)}))},t.prototype.updateLayoutConfig=function(t){var e=t.getWidth(),n=t.getHeight();function r(t,e){return function(){ZC(t,e)}}for(var i=0;i<this._labelList.length;i++){var o=this._labelList[i],a=o.label,s=a.__hostTarget,l=o.defaultAttr,u=void 0;u=Ft(o.layoutOption)?o.layoutOption(sM(o,s)):o.layoutOption,u=u||{},o.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 h=!1;if(null!=u.x?(a.x=es(u.x,e),a.setStyle("x",0),h=!0):(a.x=l.x,a.setStyle("x",l.style.x)),null!=u.y?(a.y=es(u.y,n),a.setStyle("y",0),h=!0):(a.y=l.y,a.setStyle("y",l.style.y)),u.labelLinePoints){var d=s.getTextGuideLine();d&&(d.setShape({points:u.labelLinePoints}),h=!1)}var p=cM(a);p.needsUpdateLabelLine=h,a.rotation=null!=u.rotate?u.rotate*c:l.rotation,a.scaleX=l.scaleX,a.scaleY=l.scaleY;for(var f=0;f<lM.length;f++){var g=lM[f];a.setStyle(g,null!=u[g]?u[g]:l.style[g])}if(u.draggable){if(a.draggable=!0,a.cursor="move",s){var v=o.seriesModel;if(null!=o.dataIndex){var m=o.seriesModel.getData(o.dataType);v=m.getItemModel(o.dataIndex)}a.on("drag",r(s,v.getModel("labelLine")))}}else a.off("drag"),a.cursor=l.cursor}},t.prototype.layout=function(t){var e=t.getWidth(),n=t.getHeight(),r=eM(this._labelList),i=Et(r,(function(t){return"shiftX"===t.layoutOption.moveOverlap})),o=Et(r,(function(t){return"shiftY"===t.layoutOption.moveOverlap}));rM(i,0,e),iM(o,0,n);var a=Et(r,(function(t){return t.layoutOption.hideOverlap}));oM(a)},t.prototype.processLabelsOverall=function(){var t=this;Pt(this._chartViewList,(function(e){var n=e.__model,r=e.ignoreLabelLineUpdate,i=n.isAnimationEnabled();e.group.traverse((function(e){if(e.ignore&&!e.forceLabelAnimation)return!0;var o=!r,a=e.getTextContent();!o&&a&&(o=cM(a).needsUpdateLabelLine),o&&t._updateLabelLine(e,n),i&&t._animateLabels(e,n)}))}))},t.prototype._updateLabelLine=function(t,e){var n=t.getTextContent(),r=Qc(t),i=r.dataIndex;if(n&&null!=i){var o=e.getData(r.dataType),a=o.getItemModel(i),s={},l=o.getItemVisual(i,"style");if(l){var u=o.getVisual("drawType");s.stroke=l[u]}var c=a.getModel("labelLine");JC(t,tM(a),s),ZC(t,c)}},t.prototype._animateLabels=function(t,e){var n=t.getTextContent(),r=t.getTextGuideLine();if(n&&(t.forceLabelAnimation||!n.ignore&&!n.invisible&&!t.disableLabelAnimation&&!ud(t))){var i=cM(n),o=i.oldLayout,a=Qc(t),s=a.dataIndex,l={x:n.x,y:n.y,rotation:n.rotation},u=e.getData(a.dataType);if(o){n.attr(o);var c=t.prevStates;c&&(kt(c,"select")>=0&&n.attr(i.oldLayoutSelect),kt(c,"emphasis")>=0&&n.attr(i.oldLayoutEmphasis)),sd(n,l,e,s)}else if(n.attr(l),!Td(n).valueAnimation){var h=Jt(n.style.opacity,1);n.style.opacity=0,ld(n,{style:{opacity:h}},e,s)}if(i.oldLayout=l,n.states.select){var d=i.oldLayoutSelect={};dM(d,l,pM),dM(d,n.states.select,pM)}if(n.states.emphasis){var p=i.oldLayoutEmphasis={};dM(p,l,pM),dM(p,n.states.emphasis,pM)}Id(n,s,u,e,e)}if(r&&!r.ignore&&!r.invisible){i=hM(r),o=i.oldLayout;var f={points:r.shape.points};o?(r.attr({shape:o}),sd(r,{shape:f},e)):(r.setShape(f),r.style.strokePercent=0,ld(r,{style:{strokePercent:1}},e)),i.oldLayout=f}},t}(),gM=fM,vM=Ys();function mM(t){t.registerUpdateLifecycle("series:beforeupdate",(function(t,e,n){var r=vM(e).labelManager;r||(r=vM(e).labelManager=new gM),r.clearLabels()})),t.registerUpdateLifecycle("series:layoutlabels",(function(t,e,n){var r=vM(e).labelManager;n.updatedSeries.forEach((function(t){r.addLabelsOfSeries(e.getViewOfSeriesModel(t))})),r.updateLayoutConfig(e),r.layout(e),r.processLabelsOverall()}))}function yM(t,e,n){var r=it.createCanvas(),i=e.getWidth(),o=e.getHeight(),a=r.style;return a&&(a.position="absolute",a.left="0",a.top="0",a.width=i+"px",a.height=o+"px",r.setAttribute("data-zr-dom-id",t)),r.width=i*n,r.height=o*n,r}pS(mM);var bM=function(t){function e(e,n,r){var i,o=t.call(this)||this;o.motionBlur=!1,o.lastFrameAlpha=.7,o.dpr=1,o.virtual=!1,o.config={},o.incremental=!1,o.zlevel=0,o.maxRepaintRectCount=5,o.__dirty=!0,o.__firstTimePaint=!0,o.__used=!1,o.__drawIndex=0,o.__startIndex=0,o.__endIndex=0,o.__prevStartIndex=null,o.__prevEndIndex=null,r=r||Yo,"string"===typeof e?i=yM(e,n,r):Qt(e)&&(i=e,e=i.id),o.id=e,o.dom=i;var a=i.style;return a&&(ge(i),i.onselectstart=function(){return!1},a.padding="0",a.margin="0",a.borderWidth="0"),o.painter=n,o.dpr=r,o}return Q(e,t),e.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},e.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},e.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},e.prototype.setUnpainted=function(){this.__firstTimePaint=!0},e.prototype.createBackBuffer=function(){var t=this.dpr;this.domBack=yM("back-"+this.id,this.painter,t),this.ctxBack=this.domBack.getContext("2d"),1!==t&&this.ctxBack.scale(t,t)},e.prototype.createRepaintRects=function(t,e,n,r){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var i,o=[],a=this.maxRepaintRectCount,s=!1,l=new Hn(0,0,0,0);function u(t){if(t.isFinite()&&!t.isZero())if(0===o.length){var e=new Hn(0,0,0,0);e.copy(t),o.push(e)}else{for(var n=!1,r=1/0,i=0,u=0;u<o.length;++u){var c=o[u];if(c.intersect(t)){var h=new Hn(0,0,0,0);h.copy(c),h.union(t),o[u]=h,n=!0;break}if(s){l.copy(t),l.union(c);var d=t.width*t.height,p=c.width*c.height,f=l.width*l.height,g=f-d-p;g<r&&(r=g,i=u)}}if(s&&(o[i].union(t),n=!0),!n){e=new Hn(0,0,0,0);e.copy(t),o.push(e)}s||(s=o.length>=a)}}for(var c=this.__startIndex;c<this.__endIndex;++c){var h=t[c];if(h){var d=h.shouldBePainted(n,r,!0,!0),p=h.__isRendered&&(h.__dirty&fr||!d)?h.getPrevPaintRect():null;p&&u(p);var f=d&&(h.__dirty&fr||!h.__isRendered)?h.getPaintRect():null;f&&u(f)}}for(c=this.__prevStartIndex;c<this.__prevEndIndex;++c){h=e[c],d=h&&h.shouldBePainted(n,r,!0,!0);if(h&&(!d||!h.__zr)&&h.__isRendered){p=h.getPrevPaintRect();p&&u(p)}}do{i=!1;for(c=0;c<o.length;)if(o[c].isZero())o.splice(c,1);else{for(var g=c+1;g<o.length;)o[c].intersect(o[g])?(i=!0,o[c].union(o[g]),o.splice(g,1)):g++;c++}}while(i);return this._paintRects=o,o},e.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},e.prototype.resize=function(t,e){var n=this.dpr,r=this.dom,i=r.style,o=this.domBack;i&&(i.width=t+"px",i.height=e+"px"),r.width=t*n,r.height=e*n,o&&(o.width=t*n,o.height=e*n,1!==n&&this.ctxBack.scale(n,n))},e.prototype.clear=function(t,e,n){var r=this.dom,i=this.ctx,o=r.width,a=r.height;e=e||this.clearColor;var s=this.motionBlur&&!t,l=this.lastFrameAlpha,u=this.dpr,c=this;s&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(r,0,0,o/u,a/u));var h=this.domBack;function d(t,n,r,o){if(i.clearRect(t,n,r,o),e&&"transparent"!==e){var a=void 0;if(Xt(e)){var d=e.global||e.__width===r&&e.__height===o;a=d&&e.__canvasGradient||$x(i,e,{x:0,y:0,width:r,height:o}),e.__canvasGradient=a,e.__width=r,e.__height=o}else Ut(e)&&(e.scaleX=e.scaleX||u,e.scaleY=e.scaleY||u,a=Qx(i,e,{dirty:function(){c.setUnpainted(),c.painter.refresh()}}));i.save(),i.fillStyle=a||e,i.fillRect(t,n,r,o),i.restore()}s&&(i.save(),i.globalAlpha=l,i.drawImage(h,t,n,r,o),i.restore())}!n||s?d(0,0,o,a):n.length&&Pt(n,(function(t){d(t.x*u,t.y*u,t.width*u,t.height*u)}))},e}(Xe),_M=bM,xM=1e5,wM=314159,OM=.01,SM=.001;function AM(t){return!!t&&(!!t.__builtin__||"function"===typeof t.resize&&"function"===typeof t.refresh)}function kM(t,e){var n=document.createElement("div");return n.style.cssText=["position:relative","width:"+t+"px","height:"+e+"px","padding:0","margin:0","border-width:0"].join(";")+";",n}var CM=function(){function t(t,e,n,r){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var i=!t.nodeName||"CANVAS"===t.nodeName.toUpperCase();this._opts=n=Ot({},n||{}),this.dpr=n.devicePixelRatio||Yo,this._singleCanvas=i,this.root=t;var o=t.style;o&&(ge(t),t.innerHTML=""),this.storage=e;var a=this._zlevelList;this._prevDisplayList=[];var s=this._layers;if(i){var l=t,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 h=new _M(l,this,this.dpr);h.__builtin__=!0,h.initContext(),s[wM]=h,h.zlevel=wM,a.push(wM),this._domRoot=t}else{this._width=Dx(t,0,n),this._height=Dx(t,1,n);var d=this._domRoot=kM(this._width,this._height);t.appendChild(d)}}return t.prototype.getType=function(){return"canvas"},t.prototype.isSingleCanvas=function(){return this._singleCanvas},t.prototype.getViewportRoot=function(){return this._domRoot},t.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},t.prototype.refresh=function(t){var e=this.storage.getDisplayList(!0),n=this._prevDisplayList,r=this._zlevelList;this._redrawId=Math.random(),this._paintList(e,n,t,this._redrawId);for(var i=0;i<r.length;i++){var o=r[i],a=this._layers[o];if(!a.__builtin__&&a.refresh){var s=0===i?this._backgroundColor:null;a.refresh(s)}}return this._opts.useDirtyRect&&(this._prevDisplayList=e.slice()),this},t.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},t.prototype._paintHoverList=function(t){var e=t.length,n=this._hoverlayer;if(n&&n.clear(),e){for(var r,i={inHover:!0,viewWidth:this._width,viewHeight:this._height},o=0;o<e;o++){var a=t[o];a.__inHover&&(n||(n=this._hoverlayer=this.getLayer(xM)),r||(r=n.ctx,r.save()),cw(r,a,i,o===e-1))}r&&r.restore()}},t.prototype.getHoverLayer=function(){return this.getLayer(xM)},t.prototype.paintOne=function(t,e){uw(t,e)},t.prototype._paintList=function(t,e,n,r){if(this._redrawId===r){n=n||!1,this._updateLayerStatus(t);var i=this._doPaintList(t,e,n),o=i.finished,a=i.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),a&&this._paintHoverList(t),o)this.eachLayer((function(t){t.afterBrush&&t.afterBrush()}));else{var s=this;Or((function(){s._paintList(t,e,n,r)}))}}},t.prototype._compositeManually=function(){var t=this.getLayer(wM).ctx,e=this._domRoot.width,n=this._domRoot.height;t.clearRect(0,0,e,n),this.eachBuiltinLayer((function(r){r.virtual&&t.drawImage(r.dom,0,0,e,n)}))},t.prototype._doPaintList=function(t,e,n){for(var r=this,i=[],o=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)&&i.push(l)}for(var u=!0,c=!1,h=function(a){var s,l=i[a],h=l.ctx,p=o&&l.createRepaintRects(t,e,d._width,d._height),f=n?l.__startIndex:l.__drawIndex,g=!n&&l.incremental&&Date.now,v=g&&Date.now(),m=l.zlevel===d._zlevelList[0]?d._backgroundColor:null;if(l.__startIndex===l.__endIndex)l.clear(!1,m,p);else if(f===l.__startIndex){var y=t[f];y.incremental&&y.notClear&&!n||l.clear(!1,m,p)}-1===f&&(console.error("For some unknown reason. drawIndex is -1"),f=l.__startIndex);var b=function(e){var n={inHover:!1,allClipped:!1,prevEl:null,viewWidth:r._width,viewHeight:r._height};for(s=f;s<l.__endIndex;s++){var i=t[s];if(i.__inHover&&(c=!0),r._doPaintEl(i,l,o,e,n,s===l.__endIndex-1),g){var a=Date.now()-v;if(a>15)break}}n.prevElClipPaths&&h.restore()};if(p)if(0===p.length)s=l.__endIndex;else for(var _=d.dpr,x=0;x<p.length;++x){var w=p[x];h.save(),h.beginPath(),h.rect(w.x*_,w.y*_,w.width*_,w.height*_),h.clip(),b(w),h.restore()}else h.save(),b(),h.restore();l.__drawIndex=s,l.__drawIndex<l.__endIndex&&(u=!1)},d=this,p=0;p<i.length;p++)h(p);return U.wxa&&Pt(this._layers,(function(t){t&&t.ctx&&t.ctx.draw&&t.ctx.draw()})),{finished:u,needsRefreshHover:c}},t.prototype._doPaintEl=function(t,e,n,r,i,o){var a=e.ctx;if(n){var s=t.getPaintRect();(!r||s&&s.intersect(r))&&(cw(a,t,i,o),t.setPrevPaintRect(s))}else cw(a,t,i,o)},t.prototype.getLayer=function(t,e){this._singleCanvas&&!this._needsManuallyCompositing&&(t=wM);var n=this._layers[t];return n||(n=new _M("zr_"+t,this,this.dpr),n.zlevel=t,n.__builtin__=!0,this._layerConfig[t]?xt(n,this._layerConfig[t],!0):this._layerConfig[t-OM]&&xt(n,this._layerConfig[t-OM],!0),e&&(n.virtual=e),this.insertLayer(t,n),n.initContext()),n},t.prototype.insertLayer=function(t,e){var n=this._layers,r=this._zlevelList,i=r.length,o=this._domRoot,a=null,s=-1;if(!n[t]&&AM(e)){if(i>0&&t>r[0]){for(s=0;s<i-1;s++)if(r[s]<t&&r[s+1]>t)break;a=n[r[s]]}if(r.splice(s+1,0,t),n[t]=e,!e.virtual)if(a){var l=a.dom;l.nextSibling?o.insertBefore(e.dom,l.nextSibling):o.appendChild(e.dom)}else o.firstChild?o.insertBefore(e.dom,o.firstChild):o.appendChild(e.dom);e.painter||(e.painter=this)}},t.prototype.eachLayer=function(t,e){for(var n=this._zlevelList,r=0;r<n.length;r++){var i=n[r];t.call(e,this._layers[i],i)}},t.prototype.eachBuiltinLayer=function(t,e){for(var n=this._zlevelList,r=0;r<n.length;r++){var i=n[r],o=this._layers[i];o.__builtin__&&t.call(e,o,i)}},t.prototype.eachOtherLayer=function(t,e){for(var n=this._zlevelList,r=0;r<n.length;r++){var i=n[r],o=this._layers[i];o.__builtin__||t.call(e,o,i)}},t.prototype.getLayers=function(){return this._layers},t.prototype._updateLayerStatus=function(t){function e(t){a&&(a.__endIndex!==t&&(a.__dirty=!0),a.__endIndex=t)}if(this.eachBuiltinLayer((function(t,e){t.__dirty=t.__used=!1})),this._singleCanvas)for(var n=1;n<t.length;n++){var r=t[n];if(r.zlevel!==t[n-1].zlevel||r.incremental){this._needsManuallyCompositing=!0;break}}var i,o,a=null,s=0;for(o=0;o<t.length;o++){r=t[o];var l=r.zlevel,u=void 0;i!==l&&(i=l,s=0),r.incremental?(u=this.getLayer(l+SM,this._needsManuallyCompositing),u.incremental=!0,s=1):u=this.getLayer(l+(s>0?OM:0),this._needsManuallyCompositing),u.__builtin__||bt("ZLevel "+l+" has been used by unkown layer "+u.id),u!==a&&(u.__used=!0,u.__startIndex!==o&&(u.__dirty=!0),u.__startIndex=o,u.incremental?u.__drawIndex=-1:u.__drawIndex=o,e(o),a=u),r.__dirty&fr&&!r.__inHover&&(u.__dirty=!0,u.incremental&&u.__drawIndex<0&&(u.__drawIndex=o))}e(o),this.eachBuiltinLayer((function(t,e){!t.__used&&t.getElementCount()>0&&(t.__dirty=!0,t.__startIndex=t.__endIndex=t.__drawIndex=0),t.__dirty&&t.__drawIndex<0&&(t.__drawIndex=t.__startIndex)}))},t.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},t.prototype._clearLayer=function(t){t.clear()},t.prototype.setBackgroundColor=function(t){this._backgroundColor=t,Pt(this._layers,(function(t){t.setUnpainted()}))},t.prototype.configLayer=function(t,e){if(e){var n=this._layerConfig;n[t]?xt(n[t],e,!0):n[t]=e;for(var r=0;r<this._zlevelList.length;r++){var i=this._zlevelList[r];if(i===t||i===t+OM){var o=this._layers[i];xt(o,n[t],!0)}}}},t.prototype.delLayer=function(t){var e=this._layers,n=this._zlevelList,r=e[t];r&&(r.dom.parentNode.removeChild(r.dom),delete e[t],n.splice(kt(n,t),1))},t.prototype.resize=function(t,e){if(this._domRoot.style){var n=this._domRoot;n.style.display="none";var r=this._opts,i=this.root;if(null!=t&&(r.width=t),null!=e&&(r.height=e),t=Dx(i,0,r),e=Dx(i,1,r),n.style.display="",this._width!==t||e!==this._height){for(var o in n.style.width=t+"px",n.style.height=e+"px",this._layers)this._layers.hasOwnProperty(o)&&this._layers[o].resize(t,e);this.refresh(!0)}this._width=t,this._height=e}else{if(null==t||null==e)return;this._width=t,this._height=e,this.getLayer(wM).resize(t,e)}return this},t.prototype.clearLayer=function(t){var e=this._layers[t];e&&e.clear()},t.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},t.prototype.getRenderedCanvas=function(t){if(t=t||{},this._singleCanvas&&!this._compositeManually)return this._layers[wM].dom;var e=new _M("image",this,t.pixelRatio||this.dpr);e.initContext(),e.clear(!1,t.backgroundColor||this._backgroundColor);var n=e.ctx;if(t.pixelRatio<=this.dpr){this.refresh();var r=e.dom.width,i=e.dom.height;this.eachLayer((function(t){t.__builtin__?n.drawImage(t.dom,0,0,r,i):t.renderToCanvas&&(n.save(),t.renderToCanvas(n),n.restore())}))}else for(var o={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];cw(n,u,o,s===l-1)}return e.dom},t.prototype.getWidth=function(){return this._width},t.prototype.getHeight=function(){return this._height},t}(),MM=CM;function TM(t){t.registerPainter("canvas",MM)}var PM=Math.sin,IM=Math.cos,$M=Math.PI,EM=2*Math.PI,RM=180/$M,DM=function(){function t(){}return t.prototype.reset=function(t){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,t||4)},t.prototype.moveTo=function(t,e){this._add("M",t,e)},t.prototype.lineTo=function(t,e){this._add("L",t,e)},t.prototype.bezierCurveTo=function(t,e,n,r,i,o){this._add("C",t,e,n,r,i,o)},t.prototype.quadraticCurveTo=function(t,e,n,r){this._add("Q",t,e,n,r)},t.prototype.arc=function(t,e,n,r,i,o){this.ellipse(t,e,n,n,0,r,i,o)},t.prototype.ellipse=function(t,e,n,r,i,o,a,s){var l=a-o,u=!s,c=Math.abs(l),h=Ni(c-EM)||(u?l>=EM:-l>=EM),d=l>0?l%EM:l%EM+EM,p=!1;p=!!h||!Ni(c)&&d>=$M===!!u;var f=t+n*IM(o),g=e+r*PM(o);this._start&&this._add("M",f,g);var v=Math.round(i*RM);if(h){var m=1/this._p,y=(u?1:-1)*(EM-m);this._add("A",n,r,v,1,+u,t+n*IM(o+y),e+r*PM(o+y)),m>.01&&this._add("A",n,r,v,0,+u,f,g)}else{var b=t+n*IM(a),_=e+r*PM(a);this._add("A",n,r,v,+p,+u,b,_)}},t.prototype.rect=function(t,e,n,r){this._add("M",t,e),this._add("l",n,0),this._add("l",0,r),this._add("l",-n,0),this._add("Z")},t.prototype.closePath=function(){this._d.length>0&&this._add("Z")},t.prototype._add=function(t,e,n,r,i,o,a,s,l){for(var u=[],c=this._p,h=1;h<arguments.length;h++){var d=arguments[h];if(isNaN(d))return void(this._invalid=!0);u.push(Math.round(d*c)/c)}this._d.push(t+u.join(" ")),this._start="Z"===t},t.prototype.generateStr=function(){this._str=this._invalid?"":this._d.join(""),this._d=[]},t.prototype.getStr=function(){return this._str},t}(),LM=DM,NM="none",zM=Math.round;function BM(t){var e=t.fill;return null!=e&&e!==NM}function FM(t){var e=t.stroke;return null!=e&&e!==NM}var WM=["lineCap","miterLimit","lineJoin"],jM=It(WM,(function(t){return"stroke-"+t.toLowerCase()}));function VM(t,e,n,r){var i=null==e.opacity?1:e.opacity;if(n instanceof vc)t("opacity",i);else{if(BM(e)){var o=Di(e.fill);t("fill",o.color);var a=null!=e.fillOpacity?e.fillOpacity*o.opacity*i:o.opacity*i;(r||a<1)&&t("fill-opacity",a)}else t("fill",NM);if(FM(e)){var s=Di(e.stroke);t("stroke",s.color);var l=e.strokeNoScale?n.getLineScale():1,u=l?(e.lineWidth||0)/l:0,c=null!=e.strokeOpacity?e.strokeOpacity*s.opacity*i:s.opacity*i,h=e.strokeFirst;if((r||1!==u)&&t("stroke-width",u),(r||h)&&t("paint-order",h?"stroke":"fill"),(r||c<1)&&t("stroke-opacity",c),e.lineDash){var d=Nx(n),p=d[0],f=d[1];p&&(f=zM(f||0),t("stroke-dasharray",p.join(",")),(f||r)&&t("stroke-dashoffset",f))}else r&&t("stroke-dasharray",NM);for(var g=0;g<WM.length;g++){var v=WM[g];if(r||e[v]!==ic[v]){var m=e[v]||ic[v];m&&t(jM[g],m)}}}else r&&t("stroke",NM)}}var QM="http://www.w3.org/2000/svg",HM="http://www.w3.org/1999/xlink",ZM="http://www.w3.org/2000/xmlns/",GM="http://www.w3.org/XML/1998/namespace",XM="ecmeta_";function UM(t){return document.createElementNS(QM,t)}function YM(t,e,n,r,i){return{tag:t,attrs:n||{},children:r,text:i,key:e}}function qM(t,e){var n=[];if(e)for(var r in e){var i=e[r],o=r;!1!==i&&(!0!==i&&null!=i&&(o+='="'+i+'"'),n.push(o))}return"<"+t+" "+n.join(" ")+">"}function KM(t){return"</"+t+">"}function JM(t,e){e=e||{};var n=e.newline?"\n":"";function r(t){var e=t.children,i=t.tag,o=t.attrs,a=t.text;return qM(i,o)+("style"!==i?ln(a):a||"")+(e?""+n+It(e,(function(t){return r(t)})).join(n)+n:"")+KM(i)}return r(t)}function tT(t,e,n){n=n||{};var r=n.newline?"\n":"",i=" {"+r,o=r+"}",a=It(Dt(t),(function(e){return e+i+It(Dt(t[e]),(function(n){return n+":"+t[e][n]+";"})).join(r)+o})).join(r),s=It(Dt(e),(function(t){return"@keyframes "+t+i+It(Dt(e[t]),(function(n){return n+i+It(Dt(e[t][n]),(function(r){var i=e[t][n][r];return"d"===r&&(i='path("'+i+'")'),r+":"+i+";"})).join(r)+o})).join(r)+o})).join(r);return a||s?["<![CDATA[",a,s,"]]>"].join(r):""}function eT(t){return{zrId:t,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function nT(t,e,n,r){return YM("svg","root",{width:t,height:e,xmlns:QM,"xmlns:xlink":HM,version:"1.1",baseProfile:"full",viewBox:!!r&&"0 0 "+t+" "+e},n)}var rT=0;function iT(){return rT++}var oT={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"},aT="transform-origin";function sT(t,e,n){var r=Ot({},t.shape);Ot(r,e),t.buildPath(n,r);var i=new LM;return i.reset(Ki(t)),n.rebuildPath(i,1),i.generateStr(),i.getStr()}function lT(t,e){var n=e.originX,r=e.originY;(n||r)&&(t[aT]=n+"px "+r+"px")}var uT={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function cT(t,e){var n=e.zrId+"-ani-"+e.cssAnimIdx++;return e.cssAnims[n]=t,n}function hT(t,e,n){var r,i,o=t.shape.paths,a={};if(Pt(o,(function(t){var e=eT(n.zrId);e.animation=!0,pT(t,{},e,!0);var o=e.cssAnims,s=e.cssNodes,l=Dt(o),u=l.length;if(u){i=l[u-1];var c=o[i];for(var h in c){var d=c[h];a[h]=a[h]||{d:""},a[h].d+=d.d||""}for(var p in s){var f=s[p].animation;f.indexOf(i)>=0&&(r=f)}}})),r){e.d=!1;var s=cT(a,n);return r.replace(i,s)}}function dT(t){return Wt(t)?oT[t]?"cubic-bezier("+oT[t]+")":Kr(t)?t:"":""}function pT(t,e,n,r){var i=t.animators,o=i.length,a=[];if(t instanceof cb){var s=hT(t,e,n);if(s)a.push(s);else if(!o)return}else if(!o)return;for(var l={},u=0;u<o;u++){var c=i[u],h=[c.getMaxTime()/1e3+"s"],d=dT(c.getClip().easing),p=c.getDelay();d?h.push(d):h.push("linear"),p&&h.push(p/1e3+"s"),c.getLoop()&&h.push("infinite");var f=h.join(" ");l[f]=l[f]||[f,[]],l[f][1].push(c)}function g(i){var o,a=i[1],s=a.length,l={},u={},c={},h="animation-timing-function";function d(t,e,n){for(var r=t.getTracks(),i=t.getMaxTime(),o=0;o<r.length;o++){var a=r[o];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],d=Math.round(c.time/i*100)+"%",p=dT(c.easing),f=c.rawValue;(Wt(f)||Vt(f))&&(e[d]=e[d]||{},e[d][l]=c.rawValue,p&&(e[d][h]=p))}}}}for(var p=0;p<s;p++){var f=a[p],g=f.targetName;g?"shape"===g&&d(f,u):!r&&d(f,l)}for(var v in l){var m={};ca(m,t),Ot(m,l[v]);var y=Ji(m),b=l[v][h];c[v]=y?{transform:y}:{},lT(c[v],m),b&&(c[v][h]=b)}var _=!0;for(var v in u){c[v]=c[v]||{};var x=!o;b=u[v][h];x&&(o=new Lu);var w=o.len();o.reset(),c[v].d=sT(t,u[v],o);var O=o.len();if(!x&&w!==O){_=!1;break}b&&(c[v][h]=b)}if(!_)for(var v in c)delete c[v].d;if(!r)for(p=0;p<s;p++){f=a[p],g=f.targetName;"style"===g&&d(f,c,(function(t){return uT[t]}))}var S,A=Dt(c),k=!0;for(p=1;p<A.length;p++){var C=A[p-1],M=A[p];if(c[C][aT]!==c[M][aT]){k=!1;break}S=c[C][aT]}if(k&&S){for(var v in c)c[v][aT]&&delete c[v][aT];e[aT]=S}if(Et(A,(function(t){return Dt(c[t]).length>0})).length){var T=cT(c,n);return T+" "+i[0]+" both"}}for(var v in l){s=g(l[v]);s&&a.push(s)}if(a.length){var m=n.zrId+"-cls-"+iT();n.cssNodes["."+m]={animation:a.join(",")},e["class"]=m}}function fT(t,e,n){if(!t.ignore)if(t.isSilent()){var r={"pointer-events":"none"};gT(r,e,n,!0)}else{var i=t.states.emphasis&&t.states.emphasis.style?t.states.emphasis.style:{},o=i.fill;if(!o){var a=t.style&&t.style.fill,s=t.states.select&&t.states.select.style&&t.states.select.style.fill,l=t.currentStates.indexOf("select")>=0&&s||a;l&&(o=Ei(l))}var u=i.lineWidth;if(u){var c=!i.strokeNoScale&&t.transform?t.transform[0]:1;u/=c}r={cursor:"pointer"};o&&(r.fill=o),i.stroke&&(r.stroke=i.stroke),u&&(r["stroke-width"]=u),gT(r,e,n,!0)}}function gT(t,e,n,r){var i=JSON.stringify(t),o=n.cssStyleCache[i];o||(o=n.zrId+"-cls-"+iT(),n.cssStyleCache[i]=o,n.cssNodes["."+o+(r?":hover":"")]=t),e["class"]=e["class"]?e["class"]+" "+o:o}var vT=Math.round;function mT(t){return t&&Wt(t.src)}function yT(t){return t&&Ft(t.toDataURL)}function bT(t,e,n,r){VM((function(i,o){var a="fill"===i||"stroke"===i;a&&Yi(o)?RT(e,t,i,r):a&&Gi(o)?DT(n,t,i,r):t[i]=a&&"none"===o?"transparent":o}),e,n,!1),ET(n,t,r)}function _T(t,e){var n=Xa(e);n&&(n.each((function(e,n){null!=e&&(t[(XM+n).toLowerCase()]=e+"")})),e.isSilent()&&(t[XM+"silent"]="true"))}function xT(t){return Ni(t[0]-1)&&Ni(t[1])&&Ni(t[2])&&Ni(t[3]-1)}function wT(t){return Ni(t[4])&&Ni(t[5])}function OT(t,e,n){if(e&&(!wT(e)||!xT(e))){var r=n?10:1e4;t.transform=xT(e)?"translate("+vT(e[4]*r)/r+" "+vT(e[5]*r)/r+")":Fi(e)}}function ST(t,e,n){for(var r=t.points,i=[],o=0;o<r.length;o++)i.push(vT(r[o][0]*n)/n),i.push(vT(r[o][1]*n)/n);e.points=i.join(" ")}function AT(t){return!t.smooth}function kT(t){var e=It(t,(function(t){return"string"===typeof t?[t,t]:t}));return function(t,n,r){for(var i=0;i<e.length;i++){var o=e[i],a=t[o[0]];null!=a&&(n[o[1]]=vT(a*r)/r)}}}var CT={circle:[kT(["cx","cy","r"])],polyline:[ST,AT],polygon:[ST,AT]};function MT(t){for(var e=t.animators,n=0;n<e.length;n++)if("shape"===e[n].targetName)return!0;return!1}function TT(t,e){var n=t.style,r=t.shape,i=CT[t.type],o={},a=e.animation,s="path",l=t.style.strokePercent,u=e.compress&&Ki(t)||4;if(!i||e.willUpdate||i[1]&&!i[1](r)||a&&MT(t)||l<1){var c=!t.path||t.shapeChanged();t.path||t.createPathProxy();var h=t.path;c&&(h.beginPath(),t.buildPath(h,t.shape),t.pathUpdated());var d=h.getVersion(),p=t,f=p.__svgPathBuilder;p.__svgPathVersion===d&&f&&l===p.__svgPathStrokePercent||(f||(f=p.__svgPathBuilder=new LM),f.reset(u),h.rebuildPath(f,l),f.generateStr(),p.__svgPathVersion=d,p.__svgPathStrokePercent=l),o.d=f.getStr()}else{s=t.type;var g=Math.pow(10,u);i[0](r,o,g)}return OT(o,t.transform),bT(o,n,t,e),_T(o,t),e.animation&&pT(t,o,e),e.emphasis&&fT(t,o,e),YM(s,t.id+"",o)}function PT(t,e){var n=t.style,r=n.image;if(r&&!Wt(r)&&(mT(r)?r=r.src:yT(r)&&(r=r.toDataURL())),r){var i=n.x||0,o=n.y||0,a=n.width,s=n.height,l={href:r,width:a,height:s};return i&&(l.x=i),o&&(l.y=o),OT(l,t.transform),bT(l,n,t,e),_T(l,t),e.animation&&pT(t,l,e),YM("image",t.id+"",l)}}function IT(t,e){var n=t.style,r=n.text;if(null!=r&&(r+=""),r&&!isNaN(n.x)&&!isNaN(n.y)){var i=n.font||K,o=n.x||0,a=ji(n.y||0,ya(i),n.textBaseline),s=Wi[n.textAlign]||n.textAlign,l={"dominant-baseline":"central","text-anchor":s};if(Dc(n)){var u="",c=n.fontStyle,h=Ec(n.fontSize);if(!parseFloat(h))return;var d=n.fontFamily||q,p=n.fontWeight;u+="font-size:"+h+";font-family:"+d+";",c&&"normal"!==c&&(u+="font-style:"+c+";"),p&&"normal"!==p&&(u+="font-weight:"+p+";"),l.style=u}else l.style="font: "+i;return r.match(/\s/)&&(l["xml:space"]="preserve"),o&&(l.x=o),a&&(l.y=a),OT(l,t.transform),bT(l,n,t,e),_T(l,t),e.animation&&pT(t,l,e),YM("text",t.id+"",l,void 0,r)}}function $T(t,e){return t instanceof lc?TT(t,e):t instanceof vc?PT(t,e):t instanceof hc?IT(t,e):void 0}function ET(t,e,n){var r=t.style;if(Vi(r)){var i=Qi(t),o=n.shadowCache,a=o[i];if(!a){var s=t.getGlobalScale(),l=s[0],u=s[1];if(!l||!u)return;var c=r.shadowOffsetX||0,h=r.shadowOffsetY||0,d=r.shadowBlur,p=Di(r.shadowColor),f=p.opacity,g=p.color,v=d/2/l,m=d/2/u,y=v+" "+m;a=n.zrId+"-s"+n.shadowIdx++,n.defs[a]=YM("filter",a,{id:a,x:"-100%",y:"-100%",width:"300%",height:"300%"},[YM("feDropShadow","",{dx:c/l,dy:h/u,stdDeviation:y,"flood-color":g,"flood-opacity":f})]),o[i]=a}e.filter=qi(a)}}function RT(t,e,n,r){var i,o=t[n],a={gradientUnits:o.global?"userSpaceOnUse":"objectBoundingBox"};if(Xi(o))i="linearGradient",a.x1=o.x,a.y1=o.y,a.x2=o.x2,a.y2=o.y2;else{if(!Ui(o))return void 0;i="radialGradient",a.cx=Jt(o.x,.5),a.cy=Jt(o.y,.5),a.r=Jt(o.r,.5)}for(var s=o.colorStops,l=[],u=0,c=s.length;u<c;++u){var h=100*Bi(s[u].offset)+"%",d=s[u].color,p=Di(d),f=p.color,g=p.opacity,v={offset:h};v["stop-color"]=f,g<1&&(v["stop-opacity"]=g),l.push(YM("stop",u+"",v))}var m=YM(i,"",a,l),y=JM(m),b=r.gradientCache,_=b[y];_||(_=r.zrId+"-g"+r.gradientIdx++,b[y]=_,a.id=_,r.defs[_]=YM(i,_,a,l)),e[n]=qi(_)}function DT(t,e,n,r){var i,o=t.style[n],a=t.getBoundingRect(),s={},l=o.repeat,u="no-repeat"===l,c="repeat-x"===l,h="repeat-y"===l;if(Hi(o)){var d=o.imageWidth,p=o.imageHeight,f=void 0,g=o.image;if(Wt(g)?f=g:mT(g)?f=g.src:yT(g)&&(f=g.toDataURL()),"undefined"===typeof Image){var v="Image width/height must been given explictly in svg-ssr renderer.";re(d,v),re(p,v)}else if(null==d||null==p){var m=function(t,e){if(t){var n=t.elm,r=d||e.width,i=p||e.height;"pattern"===t.tag&&(c?(i=1,r/=a.width):h&&(r=1,i/=a.height)),t.attrs.width=r,t.attrs.height=i,n&&(n.setAttribute("width",r),n.setAttribute("height",i))}},y=Ml(f,null,t,(function(t){u||m(w,t),m(i,t)}));y&&y.width&&y.height&&(d=d||y.width,p=p||y.height)}i=YM("image","img",{href:f,width:d,height:p}),s.width=d,s.height=p}else o.svgElement&&(i=_t(o.svgElement),s.width=o.svgWidth,s.height=o.svgHeight);if(i){var b,_;u?b=_=1:c?(_=1,b=s.width/a.width):h?(b=1,_=s.height/a.height):s.patternUnits="userSpaceOnUse",null==b||isNaN(b)||(s.width=b),null==_||isNaN(_)||(s.height=_);var x=Ji(o);x&&(s.patternTransform=x);var w=YM("pattern","",s,[i]),O=JM(w),S=r.patternCache,A=S[O];A||(A=r.zrId+"-p"+r.patternIdx++,S[O]=A,s.id=A,w=r.defs[A]=YM("pattern",A,s,[i])),e[n]=qi(A)}}function LT(t,e,n){var r=n.clipPathCache,i=n.defs,o=r[t.id];if(!o){o=n.zrId+"-c"+n.clipPathIdx++;var a={id:o};r[t.id]=o,i[o]=YM("clipPath",o,a,[TT(t,n)])}e["clip-path"]=qi(o)}function NT(t){return document.createTextNode(t)}function zT(t,e,n){t.insertBefore(e,n)}function BT(t,e){t.removeChild(e)}function FT(t,e){t.appendChild(e)}function WT(t){return t.parentNode}function jT(t){return t.nextSibling}function VT(t,e){t.textContent=e}var QT=58,HT=120,ZT=YM("","");function GT(t){return void 0===t}function XT(t){return void 0!==t}function UT(t,e,n){for(var r={},i=e;i<=n;++i){var o=t[i].key;void 0!==o&&(r[o]=i)}return r}function YT(t,e){var n=t.key===e.key,r=t.tag===e.tag;return r&&n}function qT(t){var e,n=t.children,r=t.tag;if(XT(r)){var i=t.elm=UM(r);if(tP(ZT,t),Bt(n))for(e=0;e<n.length;++e){var o=n[e];null!=o&&FT(i,qT(o))}else XT(t.text)&&!Qt(t.text)&&FT(i,NT(t.text))}else t.elm=NT(t.text);return t.elm}function KT(t,e,n,r,i){for(;r<=i;++r){var o=n[r];null!=o&&zT(t,qT(o),e)}}function JT(t,e,n,r){for(;n<=r;++n){var i=e[n];if(null!=i)if(XT(i.tag)){var o=WT(i.elm);BT(o,i.elm)}else BT(t,i.elm)}}function tP(t,e){var n,r=e.elm,i=t&&t.attrs||{},o=e.attrs||{};if(i!==o){for(n in o){var a=o[n],s=i[n];s!==a&&(!0===a?r.setAttribute(n,""):!1===a?r.removeAttribute(n):"style"===n?r.style.cssText=a:n.charCodeAt(0)!==HT?r.setAttribute(n,a):"xmlns:xlink"===n||"xmlns"===n?r.setAttributeNS(ZM,n,a):n.charCodeAt(3)===QT?r.setAttributeNS(GM,n,a):n.charCodeAt(5)===QT?r.setAttributeNS(HM,n,a):r.setAttribute(n,a))}for(n in i)n in o||r.removeAttribute(n)}}function eP(t,e,n){var r,i,o,a,s=0,l=0,u=e.length-1,c=e[0],h=e[u],d=n.length-1,p=n[0],f=n[d];while(s<=u&&l<=d)null==c?c=e[++s]:null==h?h=e[--u]:null==p?p=n[++l]:null==f?f=n[--d]:YT(c,p)?(nP(c,p),c=e[++s],p=n[++l]):YT(h,f)?(nP(h,f),h=e[--u],f=n[--d]):YT(c,f)?(nP(c,f),zT(t,c.elm,jT(h.elm)),c=e[++s],f=n[--d]):YT(h,p)?(nP(h,p),zT(t,h.elm,c.elm),h=e[--u],p=n[++l]):(GT(r)&&(r=UT(e,s,u)),i=r[p.key],GT(i)?zT(t,qT(p),c.elm):(o=e[i],o.tag!==p.tag?zT(t,qT(p),c.elm):(nP(o,p),e[i]=void 0,zT(t,o.elm,c.elm))),p=n[++l]);(s<=u||l<=d)&&(s>u?(a=null==n[d+1]?null:n[d+1].elm,KT(t,a,n,l,d)):JT(t,e,s,u))}function nP(t,e){var n=e.elm=t.elm,r=t.children,i=e.children;t!==e&&(tP(t,e),GT(e.text)?XT(r)&&XT(i)?r!==i&&eP(n,r,i):XT(i)?(XT(t.text)&&VT(n,""),KT(n,null,i,0,i.length-1)):XT(r)?JT(n,r,0,r.length-1):XT(t.text)&&VT(n,""):t.text!==e.text&&(XT(r)&&JT(n,r,0,r.length-1),VT(n,e.text)))}function rP(t,e){if(YT(t,e))nP(t,e);else{var n=t.elm,r=WT(n);qT(e),null!==r&&(zT(r,e.elm,jT(n)),JT(r,[t],0,0))}return e}var iP=0,oP=function(){function t(t,e,n){if(this.type="svg",this.refreshHover=aP("refreshHover"),this.configLayer=aP("configLayer"),this.storage=e,this._opts=n=Ot({},n),this.root=t,this._id="zr"+iP++,this._oldVNode=nT(n.width,n.height),t&&!n.ssr){var r=this._viewport=document.createElement("div");r.style.cssText="position:relative;overflow:hidden";var i=this._svgDom=this._oldVNode.elm=UM("svg");tP(null,this._oldVNode),r.appendChild(i),t.appendChild(r)}this.resize(n.width,n.height)}return t.prototype.getType=function(){return this.type},t.prototype.getViewportRoot=function(){return this._viewport},t.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},t.prototype.getSvgDom=function(){return this._svgDom},t.prototype.refresh=function(){if(this.root){var t=this.renderToVNode({willUpdate:!0});t.attrs.style="position:absolute;left:0;top:0;user-select:none",rP(this._oldVNode,t),this._oldVNode=t}},t.prototype.renderOneToVNode=function(t){return $T(t,eT(this._id))},t.prototype.renderToVNode=function(t){t=t||{};var e=this.storage.getDisplayList(!0),n=this._width,r=this._height,i=eT(this._id);i.animation=t.animation,i.willUpdate=t.willUpdate,i.compress=t.compress,i.emphasis=t.emphasis;var o=[],a=this._bgVNode=sP(n,r,this._backgroundColor,i);a&&o.push(a);var s=t.compress?null:this._mainVNode=YM("g","main",{},[]);this._paintList(e,i,s?s.children:o),s&&o.push(s);var l=It(Dt(i.defs),(function(t){return i.defs[t]}));if(l.length&&o.push(YM("defs","defs",{},l)),t.animation){var u=tT(i.cssNodes,i.cssAnims,{newline:!0});if(u){var c=YM("style","stl",{},[],u);o.push(c)}}return nT(n,r,o,t.useViewBox)},t.prototype.renderToString=function(t){return t=t||{},JM(this.renderToVNode({animation:Jt(t.cssAnimation,!0),emphasis:Jt(t.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:Jt(t.useViewBox,!0)}),{newline:!0})},t.prototype.setBackgroundColor=function(t){this._backgroundColor=t},t.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},t.prototype._paintList=function(t,e,n){for(var r,i,o=t.length,a=[],s=0,l=0,u=0;u<o;u++){var c=t[u];if(!c.invisible){var h=c.__clipPaths,d=h&&h.length||0,p=i&&i.length||0,f=void 0;for(f=Math.max(d-1,p-1);f>=0;f--)if(h&&i&&h[f]===i[f])break;for(var g=p-1;g>f;g--)s--,r=a[s-1];for(var v=f+1;v<d;v++){var m={};LT(h[v],m,e);var y=YM("g","clip-g-"+l++,m,[]);(r?r.children:n).push(y),a[s++]=y,r=y}i=h;var b=$T(c,e);b&&(r?r.children:n).push(b)}}},t.prototype.resize=function(t,e){var n=this._opts,r=this.root,i=this._viewport;if(null!=t&&(n.width=t),null!=e&&(n.height=e),r&&i&&(i.style.display="none",t=Dx(r,0,n),e=Dx(r,1,n),i.style.display=""),this._width!==t||this._height!==e){if(this._width=t,this._height=e,i){var o=i.style;o.width=t+"px",o.height=e+"px"}if(Gi(this._backgroundColor))this.refresh();else{var a=this._svgDom;a&&(a.setAttribute("width",t),a.setAttribute("height",e));var s=this._bgVNode&&this._bgVNode.elm;s&&(s.setAttribute("width",t),s.setAttribute("height",e))}}},t.prototype.getWidth=function(){return this._width},t.prototype.getHeight=function(){return this._height},t.prototype.dispose=function(){this.root&&(this.root.innerHTML=""),this._svgDom=this._viewport=this.storage=this._oldVNode=this._bgVNode=this._mainVNode=null},t.prototype.clear=function(){this._svgDom&&(this._svgDom.innerHTML=null),this._oldVNode=null},t.prototype.toDataURL=function(t){var e=this.renderToString(),n="data:image/svg+xml;";return t?(e=to(e),e&&n+"base64,"+e):n+"charset=UTF-8,"+encodeURIComponent(e)},t}();function aP(t){return function(){0}}function sP(t,e,n,r){var i;if(n&&"none"!==n)if(i=YM("rect","bg",{width:t,height:e,x:"0",y:"0"}),Yi(n))RT({fill:n},i.attrs,"fill",r);else if(Gi(n))DT({style:{fill:n},dirty:me,getBoundingRect:function(){return{width:t,height:e}}},i.attrs,"fill",r);else{var o=Di(n),a=o.color,s=o.opacity;i.attrs.fill=a,s<1&&(i.attrs["fill-opacity"]=s)}return i}var lP=oP;function uP(t){t.registerPainter("svg",lP)}var cP=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n}return Q(e,t),e.prototype.getInitialData=function(t){return dA(null,this,{useEncodeDefaulter:!0})},e.prototype.getLegendIcon=function(t){var e=new La,n=kx("line",0,t.itemHeight/2,t.itemWidth,0,t.lineStyle.stroke,!1);e.add(n),n.setStyle(t.lineStyle);var r=this.getData().getVisual("symbol"),i=this.getData().getVisual("symbolRotate"),o="none"===r?"circle":r,a=.8*t.itemHeight,s=kx(o,(t.itemWidth-a)/2,(t.itemHeight-a)/2,a,a,t.itemStyle.fill);e.add(s),s.setStyle(t.itemStyle);var l="inherit"===t.iconRotate?i:t.iconRotate||0;return s.rotation=l*Math.PI/180,s.setOrigin([t.itemWidth/2,t.itemHeight/2]),o.indexOf("empty")>-1&&(s.style.stroke=s.style.fill,s.style.fill="#fff",s.style.lineWidth=2),e},e.type="series.line",e.dependencies=["grid","polar"],e.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},e}(Vm),hP=cP;function dP(t,e){var n=t.mapDimensionsAll("defaultedLabel"),r=n.length;if(1===r){var i=yv(t,e,n[0]);return null!=i?i+"":null}if(r){for(var o=[],a=0;a<n.length;a++)o.push(yv(t,e,n[a]));return o.join(" ")}}function pP(t,e){var n=t.mapDimensionsAll("defaultedLabel");if(!Bt(e))return e+"";for(var r=[],i=0;i<n.length;i++){var o=t.getDimensionIndex(n[i]);o>=0&&r.push(e[o])}return r.join(" ")}var fP=function(t){function e(e,n,r,i){var o=t.call(this)||this;return o.updateData(e,n,r,i),o}return Q(e,t),e.prototype._createSymbol=function(t,e,n,r,i){this.removeAll();var o=kx(t,-1,-1,2,2,null,i);o.attr({z2:100,culling:!0,scaleX:r[0]/2,scaleY:r[1]/2}),o.drift=gP,this._symbolType=t,this.add(o)},e.prototype.stopSymbolAnimation=function(t){this.childAt(0).stopAnimation(null,t)},e.prototype.getSymbolType=function(){return this._symbolType},e.prototype.getSymbolPath=function(){return this.childAt(0)},e.prototype.highlight=function(){Ch(this.childAt(0))},e.prototype.downplay=function(){Mh(this.childAt(0))},e.prototype.setZ=function(t,e){var n=this.childAt(0);n.zlevel=t,n.z=e},e.prototype.setDraggable=function(t,e){var n=this.childAt(0);n.draggable=t,n.cursor=!e&&t?"move":n.cursor},e.prototype.updateData=function(t,n,r,i){this.silent=!1;var o=t.getItemVisual(n,"symbol")||"circle",a=t.hostModel,s=e.getSymbolSize(t,n),l=o!==this._symbolType,u=i&&i.disableAnimation;if(l){var c=t.getItemVisual(n,"symbolKeepAspect");this._createSymbol(o,t,n,s,c)}else{var h=this.childAt(0);h.silent=!1;var d={scaleX:s[0]/2,scaleY:s[1]/2};u?h.attr(d):sd(h,d,a,n),pd(h)}if(this._updateCommon(t,n,s,r,i),l){h=this.childAt(0);if(!u){d={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:h.style.opacity}};h.scaleX=h.scaleY=0,h.style.opacity=0,ld(h,d,a,n)}}u&&this.childAt(0).stopAnimation("leave")},e.prototype._updateCommon=function(t,e,n,r,i){var o,a,s,l,u,c,h,d,p,f=this.childAt(0),g=t.hostModel;if(r&&(o=r.emphasisItemStyle,a=r.blurItemStyle,s=r.selectItemStyle,l=r.focus,u=r.blurScope,h=r.labelStatesModels,d=r.hoverScale,p=r.cursorStyle,c=r.emphasisDisabled),!r||t.hasItemOption){var v=r&&r.itemModel?r.itemModel:t.getItemModel(e),m=v.getModel("emphasis");o=m.getModel("itemStyle").getItemStyle(),s=v.getModel(["select","itemStyle"]).getItemStyle(),a=v.getModel(["blur","itemStyle"]).getItemStyle(),l=m.get("focus"),u=m.get("blurScope"),c=m.get("disabled"),h=bd(v),d=m.getShallow("scale"),p=v.getShallow("cursor")}var y=t.getItemVisual(e,"symbolRotate");f.attr("rotation",(y||0)*Math.PI/180||0);var b=Mx(t.getItemVisual(e,"symbolOffset"),n);b&&(f.x=b[0],f.y=b[1]),p&&f.attr("cursor",p);var _=t.getItemVisual(e,"style"),x=_.fill;if(f instanceof vc){var w=f.style;f.useStyle(Ot({image:w.image,x:w.x,y:w.y,width:w.width,height:w.height},_))}else f.__isEmptyBrush?f.useStyle(Ot({},_)):f.useStyle(_),f.style.decal=null,f.setColor(x,i&&i.symbolInnerColor),f.style.strokeNoScale=!0;var O=t.getItemVisual(e,"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=i&&i.useNameLabel;function k(e){return A?t.getName(e):dP(t,e)}yd(f,h,{labelFetcher:g,labelDataIndex:e,defaultText:k,inheritColor:x,defaultOpacity:_.opacity}),this._sizeX=n[0]/2,this._sizeY=n[1]/2;var C=f.ensureState("emphasis");C.style=o,f.ensureState("select").style=s,f.ensureState("blur").style=a;var M=null==d||!0===d?Math.max(1.1,3/this._sizeY):isFinite(d)&&d>0?+d:1;C.scaleX=this._sizeX*M,C.scaleY=this._sizeY*M,this.setSymbolScale(1),Zh(this,l,u,c)},e.prototype.setSymbolScale=function(t){this.scaleX=this.scaleY=t},e.prototype.fadeOut=function(t,e,n){var r=this.childAt(0),i=Qc(this).dataIndex,o=n&&n.animation;if(this.silent=r.silent=!0,n&&n.fadeLabel){var a=r.getTextContent();a&&cd(a,{style:{opacity:0}},e,{dataIndex:i,removeOpt:o,cb:function(){r.removeTextContent()}})}else r.removeTextContent();cd(r,{style:{opacity:0},scaleX:0,scaleY:0},e,{dataIndex:i,cb:t,removeOpt:o})},e.getSymbolSize=function(t,e){return Cx(t.getItemVisual(e,"symbolSize"))},e}(La);function gP(t,e){this.parent.drift(t,e)}var vP=fP;function mP(t,e,n,r){return e&&!isNaN(e[0])&&!isNaN(e[1])&&!(r.isIgnore&&r.isIgnore(n))&&!(r.clipShape&&!r.clipShape.contain(e[0],e[1]))&&"none"!==t.getItemVisual(n,"symbol")}function yP(t){return null==t||Qt(t)||(t={isIgnore:t}),t||{}}function bP(t){var e=t.hostModel,n=e.getModel("emphasis");return{emphasisItemStyle:n.getModel("itemStyle").getItemStyle(),blurItemStyle:e.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:e.getModel(["select","itemStyle"]).getItemStyle(),focus:n.get("focus"),blurScope:n.get("blurScope"),emphasisDisabled:n.get("disabled"),hoverScale:n.get("scale"),labelStatesModels:bd(e),cursorStyle:e.get("cursor")}}var _P=function(){function t(t){this.group=new La,this._SymbolCtor=t||vP}return t.prototype.updateData=function(t,e){this._progressiveEls=null,e=yP(e);var n=this.group,r=t.hostModel,i=this._data,o=this._SymbolCtor,a=e.disableAnimation,s=bP(t),l={disableAnimation:a},u=e.getSymbolPoint||function(e){return t.getItemLayout(e)};i||n.removeAll(),t.diff(i).add((function(r){var i=u(r);if(mP(t,i,r,e)){var a=new o(t,r,s,l);a.setPosition(i),t.setItemGraphicEl(r,a),n.add(a)}})).update((function(c,h){var d=i.getItemGraphicEl(h),p=u(c);if(mP(t,p,c,e)){var f=t.getItemVisual(c,"symbol")||"circle",g=d&&d.getSymbolType&&d.getSymbolType();if(!d||g&&g!==f)n.remove(d),d=new o(t,c,s,l),d.setPosition(p);else{d.updateData(t,c,s,l);var v={x:p[0],y:p[1]};a?d.attr(v):sd(d,v,r)}n.add(d),t.setItemGraphicEl(c,d)}else n.remove(d)})).remove((function(t){var e=i.getItemGraphicEl(t);e&&e.fadeOut((function(){n.remove(e)}),r)})).execute(),this._getSymbolPoint=u,this._data=t},t.prototype.updateLayout=function(){var t=this,e=this._data;e&&e.eachItemGraphicEl((function(e,n){var r=t._getSymbolPoint(n);e.setPosition(r),e.markRedraw()}))},t.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=bP(t),this._data=null,this.group.removeAll()},t.prototype.incrementalUpdate=function(t,e,n){function r(t){t.isGroup||(t.incremental=!0,t.ensureState("emphasis").hoverLayer=!0)}this._progressiveEls=[],n=yP(n);for(var i=t.start;i<t.end;i++){var o=e.getItemLayout(i);if(mP(e,o,i,n)){var a=new this._SymbolCtor(e,i,this._seriesScope);a.traverse(r),a.setPosition(o),this.group.add(a),e.setItemGraphicEl(i,a),this._progressiveEls.push(a)}}},t.prototype.eachRendered=function(t){r_(this._progressiveEls||this.group,t)},t.prototype.remove=function(t){var e=this.group,n=this._data;n&&t?n.eachItemGraphicEl((function(t){t.fadeOut((function(){e.remove(t)}),n.hostModel)})):e.removeAll()},t}(),xP=_P;function wP(t,e,n){var r=t.getBaseAxis(),i=t.getOtherAxis(r),o=OP(i,n),a=r.dim,s=i.dim,l=e.mapDimension(s),u=e.mapDimension(a),c="x"===s||"radius"===s?1:0,h=It(t.dimensions,(function(t){return e.mapDimension(t)})),d=!1,p=e.getCalculationInfo("stackResultDimension");return oA(e,h[0])&&(d=!0,h[0]=p),oA(e,h[1])&&(d=!0,h[1]=p),{dataDimsForPoint:h,valueStart:o,valueAxisDim:s,baseAxisDim:a,stacked:!!d,valueDim:l,baseDim:u,baseDataOffset:c,stackedOverDimension:e.getCalculationInfo("stackedOverDimension")}}function OP(t,e){var n=0,r=t.scale.getExtent();return"start"===e?n=r[0]:"end"===e?n=r[1]:Vt(e)&&!isNaN(e)?n=e:r[0]>0?n=r[0]:r[1]<0&&(n=r[1]),n}function SP(t,e,n,r){var i=NaN;t.stacked&&(i=n.get(n.getCalculationInfo("stackedOverDimension"),r)),isNaN(i)&&(i=t.valueStart);var o=t.baseDataOffset,a=[];return a[o]=n.get(t.baseDim,r),a[1-o]=i,e.dataToPoint(a)}function AP(t,e){var n=[];return e.diff(t).add((function(t){n.push({cmd:"+",idx:t})})).update((function(t,e){n.push({cmd:"=",idx:e,idx1:t})})).remove((function(t){n.push({cmd:"-",idx:t})})).execute(),n}function kP(t,e,n,r,i,o,a,s){for(var l=AP(t,e),u=[],c=[],h=[],d=[],p=[],f=[],g=[],v=wP(i,e,a),m=t.getLayout("points")||[],y=e.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=m[w],A=m[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),h.push(n[w],n[w+1]),d.push(r[O],r[O+1]),g.push(e.getRawIndex(_.idx1));break;case"+":var M=_.idx,T=v.dataDimsForPoint,P=i.dataToPoint([e.get(T[0],M),e.get(T[1],M)]);O=2*M,u.push(P[0],P[1]),c.push(y[O],y[O+1]);var I=SP(v,i,e,M);h.push(I[0],I[1]),d.push(r[O],r[O+1]),g.push(e.getRawIndex(M));break;case"-":x=!1}x&&(p.push(_),f.push(f.length))}f.sort((function(t,e){return g[t]-g[e]}));var $=u.length,E=DA($),R=DA($),D=DA($),L=DA($),N=[];for(b=0;b<f.length;b++){var z=f[b],B=2*b,F=2*z;E[B]=u[F],E[B+1]=u[F+1],R[B]=c[F],R[B+1]=c[F+1],D[B]=h[F],D[B+1]=h[F+1],L[B]=d[F],L[B+1]=d[F+1],N[b]=p[z]}return{current:E,next:R,stackedOnCurrent:D,stackedOnNext:L,status:N}}var CP=Math.min,MP=Math.max;function TP(t,e){return isNaN(t)||isNaN(e)}function PP(t,e,n,r,i,o,a,s,l){for(var u,c,h,d,p,f,g=n,v=0;v<r;v++){var m=e[2*g],y=e[2*g+1];if(g>=i||g<0)break;if(TP(m,y)){if(l){g+=o;continue}break}if(g===n)t[o>0?"moveTo":"lineTo"](m,y),h=m,d=y;else{var b=m-u,_=y-c;if(b*b+_*_<.5){g+=o;continue}if(a>0){var x=g+o,w=e[2*x],O=e[2*x+1];while(w===m&&O===y&&v<r)v++,x+=o,g+=o,w=e[2*x],O=e[2*x+1],m=e[2*g],y=e[2*g+1],b=m-u,_=y-c;var S=v+1;if(l)while(TP(w,O)&&S<r)S++,x+=o,w=e[2*x],O=e[2*x+1];var A=.5,k=0,C=0,M=void 0,T=void 0;if(S>=r||TP(w,O))p=m,f=y;else{k=w-u,C=O-c;var P=m-u,I=w-m,$=y-c,E=O-y,R=void 0,D=void 0;if("x"===s){R=Math.abs(P),D=Math.abs(I);var L=k>0?1:-1;p=m-L*R*a,f=y,M=m+L*D*a,T=y}else if("y"===s){R=Math.abs($),D=Math.abs(E);var N=C>0?1:-1;p=m,f=y-N*R*a,M=m,T=y+N*D*a}else R=Math.sqrt(P*P+$*$),D=Math.sqrt(I*I+E*E),A=D/(D+R),p=m-k*a*(1-A),f=y-C*a*(1-A),M=m+k*a*A,T=y+C*a*A,M=CP(M,MP(w,m)),T=CP(T,MP(O,y)),M=MP(M,CP(w,m)),T=MP(T,CP(O,y)),k=M-m,C=T-y,p=m-k*R/D,f=y-C*R/D,p=CP(p,MP(u,m)),f=CP(f,MP(c,y)),p=MP(p,CP(u,m)),f=MP(f,CP(c,y)),k=m-p,C=y-f,M=m+k*D/R,T=y+C*D/R}t.bezierCurveTo(h,d,p,f,m,y),h=M,d=T}else t.lineTo(m,y)}u=m,c=y,g+=o}return v}var IP=function(){function t(){this.smooth=0,this.smoothConstraint=!0}return t}(),$P=function(t){function e(e){var n=t.call(this,e)||this;return n.type="ec-polyline",n}return Q(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new IP},e.prototype.buildPath=function(t,e){var n=e.points,r=0,i=n.length/2;if(e.connectNulls){for(;i>0;i--)if(!TP(n[2*i-2],n[2*i-1]))break;for(;r<i;r++)if(!TP(n[2*r],n[2*r+1]))break}while(r<i)r+=PP(t,n,r,i,i,1,e.smooth,e.smoothMonotone,e.connectNulls)+1},e.prototype.getPointOn=function(t,e){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var n,r,i=this.path,o=i.data,a=Lu.CMD,s="x"===e,l=[],u=0;u<o.length;){var c=o[u++],h=void 0,d=void 0,p=void 0,f=void 0,g=void 0,v=void 0,m=void 0;switch(c){case a.M:n=o[u++],r=o[u++];break;case a.L:if(h=o[u++],d=o[u++],m=s?(t-n)/(h-n):(t-r)/(d-r),m<=1&&m>=0){var y=s?(d-r)*m+r:(h-n)*m+n;return s?[t,y]:[y,t]}n=h,r=d;break;case a.C:h=o[u++],d=o[u++],p=o[u++],f=o[u++],g=o[u++],v=o[u++];var b=s?Br(n,h,p,g,t,l):Br(r,d,f,v,t,l);if(b>0)for(var _=0;_<b;_++){var x=l[_];if(x<=1&&x>=0){y=s?Nr(r,d,f,v,x):Nr(n,h,p,g,x);return s?[t,y]:[y,t]}}n=g,r=v;break}}},e}(lc),EP=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Q(e,t),e}(IP),RP=function(t){function e(e){var n=t.call(this,e)||this;return n.type="ec-polygon",n}return Q(e,t),e.prototype.getDefaultShape=function(){return new EP},e.prototype.buildPath=function(t,e){var n=e.points,r=e.stackedOnPoints,i=0,o=n.length/2,a=e.smoothMonotone;if(e.connectNulls){for(;o>0;o--)if(!TP(n[2*o-2],n[2*o-1]))break;for(;i<o;i++)if(!TP(n[2*i],n[2*i+1]))break}while(i<o){var s=PP(t,n,i,o,o,1,e.smooth,a,e.connectNulls);PP(t,r,i+s-1,s,o,-1,e.stackedOnSmooth,a,e.connectNulls),i+=s+1,t.closePath()}},e}(lc);function DP(t,e,n,r,i){var o=t.getArea(),a=o.x,s=o.y,l=o.width,u=o.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 h=new Ac({shape:{x:a,y:s,width:l,height:u}});if(e){var d=t.getBaseAxis(),p=d.isHorizontal(),f=d.inverse;p?(f&&(h.shape.x+=l),h.shape.width=0):(f||(h.shape.y+=u),h.shape.height=0);var g=Ft(i)?function(t){i(t,h)}:null;ld(h,{shape:{width:l,height:u,x:a,y:s}},n,null,r,g)}return h}function LP(t,e,n){var r=t.getArea(),i=ns(r.r0,1),o=ns(r.r,1),a=new By({shape:{cx:ns(t.cx,1),cy:ns(t.cy,1),r0:i,r:o,startAngle:r.startAngle,endAngle:r.endAngle,clockwise:r.clockwise}});if(e){var s="angle"===t.getBaseAxis().dim;s?a.shape.endAngle=r.startAngle:a.shape.r=i,ld(a,{shape:{endAngle:r.endAngle,r:o}},n)}return a}function NP(t,e,n,r,i){return t?"polar"===t.type?LP(t,e,n):"cartesian2d"===t.type?DP(t,e,n,r,i):null:null}function zP(t,e){return t.type===e}function BP(t,e){if(t.length===e.length){for(var n=0;n<t.length;n++)if(t[n]!==e[n])return;return!0}}function FP(t){for(var e=1/0,n=1/0,r=-1/0,i=-1/0,o=0;o<t.length;){var a=t[o++],s=t[o++];isNaN(a)||(e=Math.min(a,e),r=Math.max(a,r)),isNaN(s)||(n=Math.min(s,n),i=Math.max(s,i))}return[[e,n],[r,i]]}function WP(t,e){var n=FP(t),r=n[0],i=n[1],o=FP(e),a=o[0],s=o[1];return Math.max(Math.abs(r[0]-a[0]),Math.abs(r[1]-a[1]),Math.abs(i[0]-s[0]),Math.abs(i[1]-s[1]))}function jP(t){return Vt(t)?t:t?.5:0}function VP(t,e,n){if(!n.valueDim)return[];for(var r=e.count(),i=DA(2*r),o=0;o<r;o++){var a=SP(n,t,e,o);i[2*o]=a[0],i[2*o+1]=a[1]}return i}function QP(t,e,n,r){var i=e.getBaseAxis(),o="x"===i.dim||"radius"===i.dim?0:1,a=[],s=0,l=[],u=[],c=[],h=[];if(r){for(s=0;s<t.length;s+=2)isNaN(t[s])||isNaN(t[s+1])||h.push(t[s],t[s+1]);t=h}for(s=0;s<t.length-2;s+=2)switch(c[0]=t[s+2],c[1]=t[s+3],u[0]=t[s],u[1]=t[s+1],a.push(u[0],u[1]),n){case"end":l[o]=c[o],l[1-o]=u[1-o],a.push(l[0],l[1]);break;case"middle":var d=(u[o]+c[o])/2,p=[];l[o]=p[o]=d,l[1-o]=u[1-o],p[1-o]=c[1-o],a.push(l[0],l[1]),a.push(p[0],p[1]);break;default:l[o]=u[o],l[1-o]=c[1-o],a.push(l[0],l[1])}return a.push(t[s++],t[s++]),a}function HP(t,e){var n,r,i=[],o=t.length;function a(t,e,n){var r=t.coord,i=(n-r)/(e.coord-r),o=Ai(i,[t.color,e.color]);return{coord:n,color:o}}for(var s=0;s<o;s++){var l=t[s],u=l.coord;if(u<0)n=l;else{if(u>e){r?i.push(a(r,l,e)):n&&i.push(a(n,l,0),a(n,l,e));break}n&&(i.push(a(n,l,0)),n=null),i.push(l),r=l}}return i}function ZP(t,e,n){var r=t.getVisual("visualMeta");if(r&&r.length&&t.count()&&"cartesian2d"===e.type){for(var i,o,a=r.length-1;a>=0;a--){var s=t.getDimensionInfo(r[a].dimension);if(i=s&&s.coordDim,"x"===i||"y"===i){o=r[a];break}}if(o){var l=e.getAxis(i),u=It(o.stops,(function(t){return{coord:l.toGlobalCoord(l.dataToCoord(t.value)),color:t.color}})),c=u.length,h=o.outerColors.slice();c&&u[0].coord>u[c-1].coord&&(u.reverse(),h.reverse());var d=HP(u,"x"===i?n.getWidth():n.getHeight()),p=d.length;if(!p&&c)return u[0].coord<0?h[1]?h[1]:u[c-1].color:h[0]?h[0]:u[0].color;var f=10,g=d[0].coord-f,v=d[p-1].coord+f,m=v-g;if(m<.001)return"transparent";Pt(d,(function(t){t.offset=(t.coord-g)/m})),d.push({offset:p?d[p-1].offset:.5,color:h[1]||"transparent"}),d.unshift({offset:p?d[0].offset:.5,color:h[0]||"transparent"});var y=new fb(0,0,0,0,d,!0);return y[i]=g,y[i+"2"]=v,y}}}function GP(t,e,n){var r=t.get("showAllSymbol"),i="auto"===r;if(!r||i){var o=n.getAxesByScale("ordinal")[0];if(o&&(!i||!XP(o,e))){var a=e.mapDimension(o.dim),s={};return Pt(o.getViewLabels(),(function(t){var e=o.scale.getRawOrdinalNumber(t.tickValue);s[e]=1})),function(t){return!s.hasOwnProperty(e.get(a,t))}}}}function XP(t,e){var n=t.getExtent(),r=Math.abs(n[1]-n[0])/t.scale.count();isNaN(r)&&(r=0);for(var i=e.count(),o=Math.max(1,Math.round(i/5)),a=0;a<i;a+=o)if(1.5*vP.getSymbolSize(e,a)[t.isHorizontal()?1:0]>r)return!1;return!0}function UP(t,e){return isNaN(t)||isNaN(e)}function YP(t){for(var e=t.length/2;e>0;e--)if(!UP(t[2*e-2],t[2*e-1]))break;return e-1}function qP(t,e){return[t[2*e],t[2*e+1]]}function KP(t,e,n){for(var r,i,o=t.length/2,a="x"===n?0:1,s=0,l=-1,u=0;u<o;u++)if(i=t[2*u+a],!isNaN(i)&&!isNaN(t[2*u+1-a]))if(0!==u){if(r<=e&&i>=e||r>=e&&i<=e){l=u;break}s=u,r=i}else r=i;return{range:[s,l],t:(e-r)/(i-r)}}function JP(t){if(t.get(["endLabel","show"]))return!0;for(var e=0;e<Jc.length;e++)if(t.get([Jc[e],"endLabel","show"]))return!0;return!1}function tI(t,e,n,r){if(zP(e,"cartesian2d")){var i=r.getModel("endLabel"),o=i.get("valueAnimation"),a=r.getData(),s={lastFrameIndex:0},l=JP(r)?function(n,r){t._endLabelOnDuring(n,r,a,s,o,i,e)}:null,u=e.getBaseAxis().isHorizontal(),c=DP(e,n,r,(function(){var e=t._endLabel;e&&n&&null!=s.originalX&&e.attr({x:s.originalX,y:s.originalY})}),l);if(!r.get("clip",!0)){var h=c.shape,d=Math.max(h.width,h.height);u?(h.y-=d,h.height+=2*d):(h.x-=d,h.width+=2*d)}return l&&l(1,c),c}return LP(e,n,r)}function eI(t,e){var n=e.getBaseAxis(),r=n.isHorizontal(),i=n.inverse,o=r?i?"right":"left":"center",a=r?"middle":i?"top":"bottom";return{normal:{align:t.get("align")||o,verticalAlign:t.get("verticalAlign")||a}}}var nI=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Q(e,t),e.prototype.init=function(){var t=new La,e=new xP;this.group.add(e.group),this._symbolDraw=e,this._lineGroup=t},e.prototype.render=function(t,e,n){var r=this,i=t.coordinateSystem,o=this.group,a=t.getData(),s=t.getModel("lineStyle"),l=t.getModel("areaStyle"),u=a.getLayout("points")||[],c="polar"===i.type,h=this._coordSys,d=this._symbolDraw,p=this._polyline,f=this._polygon,g=this._lineGroup,v=!e.ssr&&t.get("animation"),m=!l.isEmpty(),y=l.get("origin"),b=wP(i,a,y),_=m&&VP(i,a,b),x=t.get("showSymbol"),w=t.get("connectNulls"),O=x&&!c&&GP(t,a,i),S=this._data;S&&S.eachItemGraphicEl((function(t,e){t.__temp&&(o.remove(t),S.setItemGraphicEl(e,null))})),x||d.remove(),o.add(g);var A,k=!c&&t.get("step");i&&i.getArea&&t.get("clip",!0)&&(A=i.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=ZP(a,i,n)||a.getVisual("style")[a.getVisual("drawType")];if(p&&h.type===i.type&&k===this._step){m&&!f?f=this._newPolygon(u,_):f&&!m&&(g.remove(f),f=this._polygon=null),c||this._initOrUpdateEndLabel(t,i,qp(C));var M=g.getClipPath();if(M){var T=tI(this,i,!1,t);ld(M,{shape:T.shape},t)}else g.setClipPath(tI(this,i,!0,t));x&&d.updateData(a,{isIgnore:O,clipShape:A,disableAnimation:!0,getSymbolPoint:function(t){return[u[2*t],u[2*t+1]]}}),BP(this._stackedOnPoints,_)&&BP(this._points,u)||(v?this._doUpdateAnimation(a,_,i,n,k,y,w):(k&&(u=QP(u,i,k,w),_&&(_=QP(_,i,k,w))),p.setShape({points:u}),f&&f.setShape({points:u,stackedOnPoints:_})))}else x&&d.updateData(a,{isIgnore:O,clipShape:A,disableAnimation:!0,getSymbolPoint:function(t){return[u[2*t],u[2*t+1]]}}),v&&this._initSymbolLabelAnimation(a,i,A),k&&(u=QP(u,i,k,w),_&&(_=QP(_,i,k,w))),p=this._newPolyline(u),m?f=this._newPolygon(u,_):f&&(g.remove(f),f=this._polygon=null),c||this._initOrUpdateEndLabel(t,i,qp(C)),g.setClipPath(tI(this,i,!0,t));var P=t.getModel("emphasis"),I=P.get("focus"),$=P.get("blurScope"),E=P.get("disabled");if(p.useStyle(St(s.getLineStyle(),{fill:"none",stroke:C,lineJoin:"bevel"})),Yh(p,t,"lineStyle"),p.style.lineWidth>0&&"bolder"===t.get(["emphasis","lineStyle","width"])){var R=p.getState("emphasis").style;R.lineWidth=+p.style.lineWidth+1}Qc(p).seriesIndex=t.seriesIndex,Zh(p,I,$,E);var D=jP(t.get("smooth")),L=t.get("smoothMonotone");if(p.setShape({smooth:D,smoothMonotone:L,connectNulls:w}),f){var N=a.getCalculationInfo("stackedOnSeries"),z=0;f.useStyle(St(l.getAreaStyle(),{fill:C,opacity:.7,lineJoin:"bevel",decal:a.getVisual("style").decal})),N&&(z=jP(N.get("smooth"))),f.setShape({smooth:D,stackedOnSmooth:z,smoothMonotone:L,connectNulls:w}),Yh(f,t,"areaStyle"),Qc(f).seriesIndex=t.seriesIndex,Zh(f,I,$,E)}var B=function(t){r._changePolyState(t)};a.eachItemGraphicEl((function(t){t&&(t.onHoverStateChange=B)})),this._polyline.onHoverStateChange=B,this._data=a,this._coordSys=i,this._stackedOnPoints=_,this._points=u,this._step=k,this._valueOrigin=y,t.get("triggerLineEvent")&&(this.packEventData(t,p),f&&this.packEventData(t,f))},e.prototype.packEventData=function(t,e){Qc(e).eventData={componentType:"series",componentSubType:"line",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"line"}},e.prototype.highlight=function(t,e,n,r){var i=t.getData(),o=Us(i,r);if(this._changePolyState("emphasis"),!(o instanceof Array)&&null!=o&&o>=0){var a=i.getLayout("points"),s=i.getItemGraphicEl(o);if(!s){var l=a[2*o],u=a[2*o+1];if(isNaN(l)||isNaN(u))return;if(this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(l,u))return;var c=t.get("zlevel")||0,h=t.get("z")||0;s=new vP(i,o),s.x=l,s.y=u,s.setZ(c,h);var d=s.getSymbolPath().getTextContent();d&&(d.zlevel=c,d.z=h,d.z2=this._polyline.z2+1),s.__temp=!0,i.setItemGraphicEl(o,s),s.stopSymbolAnimation(!0),this.group.add(s)}s.highlight()}else d_.prototype.highlight.call(this,t,e,n,r)},e.prototype.downplay=function(t,e,n,r){var i=t.getData(),o=Us(i,r);if(this._changePolyState("normal"),null!=o&&o>=0){var a=i.getItemGraphicEl(o);a&&(a.__temp?(i.setItemGraphicEl(o,null),this.group.remove(a)):a.downplay())}else d_.prototype.downplay.call(this,t,e,n,r)},e.prototype._changePolyState=function(t){var e=this._polygon;yh(this._polyline,t),e&&yh(e,t)},e.prototype._newPolyline=function(t){var e=this._polyline;return e&&this._lineGroup.remove(e),e=new $P({shape:{points:t},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(e),this._polyline=e,e},e.prototype._newPolygon=function(t,e){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new RP({shape:{points:t,stackedOnPoints:e},segmentIgnoreThreshold:2}),this._lineGroup.add(n),this._polygon=n,n},e.prototype._initSymbolLabelAnimation=function(t,e,n){var r,i,o=e.getBaseAxis(),a=o.inverse;"cartesian2d"===e.type?(r=o.isHorizontal(),i=!1):"polar"===e.type&&(r="angle"===o.dim,i=!0);var s=t.hostModel,l=s.get("animationDuration");Ft(l)&&(l=l(null));var u=s.get("animationDelay")||0,c=Ft(u)?u(null):u;t.eachItemGraphicEl((function(t,o){var s=t;if(s){var h=[t.x,t.y],d=void 0,p=void 0,f=void 0;if(n)if(i){var g=n,v=e.pointToCoord(h);r?(d=g.startAngle,p=g.endAngle,f=-v[1]/180*Math.PI):(d=g.r0,p=g.r,f=v[0])}else{var m=n;r?(d=m.x,p=m.x+m.width,f=t.x):(d=m.y+m.height,p=m.y,f=t.y)}var y=p===d?0:(f-d)/(p-d);a&&(y=1-y);var b=Ft(u)?u(o):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}}))},e.prototype._initOrUpdateEndLabel=function(t,e,n){var r=t.getModel("endLabel");if(JP(t)){var i=t.getData(),o=this._polyline,a=i.getLayout("points");if(!a)return o.removeTextContent(),void(this._endLabel=null);var s=this._endLabel;s||(s=this._endLabel=new Vc({z2:200}),s.ignoreClip=!0,o.setTextContent(this._endLabel),o.disableLabelAnimation=!0);var l=YP(a);l>=0&&(yd(o,bd(t,"endLabel"),{inheritColor:n,labelFetcher:t,labelDataIndex:l,defaultText:function(t,e,n){return null!=n?pP(i,n):dP(i,t)},enableTextSetter:!0},eI(r,e)),o.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},e.prototype._endLabelOnDuring=function(t,e,n,r,i,o,a){var s=this._endLabel,l=this._polyline;if(s){t<1&&null==r.originalX&&(r.originalX=s.x,r.originalY=s.y);var u=n.getLayout("points"),c=n.hostModel,h=c.get("connectNulls"),d=o.get("precision"),p=o.get("distance")||0,f=a.getBaseAxis(),g=f.isHorizontal(),v=f.inverse,m=e.shape,y=v?g?m.x:m.y+m.height:g?m.x+m.width:m.y,b=(g?p:0)*(v?-1:1),_=(g?0:-p)*(v?-1:1),x=g?"x":"y",w=KP(u,y,x),O=w.range,S=O[1]-O[0],A=void 0;if(S>=1){if(S>1&&!h){var k=qP(u,O[0]);s.attr({x:k[0]+b,y:k[1]+_}),i&&(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]);i&&(A=sl(n,d,C,M,w.t))}r.lastFrameIndex=O[0]}else{var T=1===t||r.lastFrameIndex>0?O[0]:0;k=qP(u,T);i&&(A=c.getRawValue(T)),s.attr({x:k[0]+b,y:k[1]+_})}if(i){var P=Td(s);"function"===typeof P.setLabelText&&P.setLabelText(A)}}},e.prototype._doUpdateAnimation=function(t,e,n,r,i,o,a){var s=this._polyline,l=this._polygon,u=t.hostModel,c=kP(this._data,t,this._stackedOnPoints,e,this._coordSys,n,this._valueOrigin,o),h=c.current,d=c.stackedOnCurrent,p=c.next,f=c.stackedOnNext;if(i&&(h=QP(c.current,n,i,a),d=QP(c.stackedOnCurrent,n,i,a),p=QP(c.next,n,i,a),f=QP(c.stackedOnNext,n,i,a)),WP(h,p)>3e3||l&&WP(d,f)>3e3)return s.stopAnimation(),s.setShape({points:p}),void(l&&(l.stopAnimation(),l.setShape({points:p,stackedOnPoints:f})));s.shape.__points=c.current,s.shape.points=h;var g={shape:{points:p}};c.current!==h&&(g.shape.__points=c.next),s.stopAnimation(),sd(s,g,u),l&&(l.setShape({points:h,stackedOnPoints:d}),l.stopAnimation(),sd(l,{shape:{stackedOnPoints:f}},u),s.shape.points!==l.shape.points&&(l.shape.points=s.shape.points));for(var v=[],m=c.status,y=0;y<m.length;y++){var b=m[y].cmd;if("="===b){var _=t.getItemGraphicEl(m[y].idx1);_&&v.push({el:_,ptIdx:y})}}s.animators&&s.animators.length&&s.animators[0].during((function(){l&&l.dirtyShape();for(var t=s.shape.__points,e=0;e<v.length;e++){var n=v[e].el,r=2*v[e].ptIdx;n.x=t[r],n.y=t[r+1],n.markRedraw()}}))},e.prototype.remove=function(t){var e=this.group,n=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),n&&n.eachItemGraphicEl((function(t,r){t.__temp&&(e.remove(t),n.setItemGraphicEl(r,null))})),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},e.type="line",e}(d_),rI=nI;function iI(t,e){return{seriesType:t,plan:Zm(),reset:function(t){var n=t.getData(),r=t.coordinateSystem,i=t.pipelineContext,o=e||i.large;if(r){var a=It(r.dimensions,(function(t){return n.mapDimension(t)})).slice(0,2),s=a.length,l=n.getCalculationInfo("stackResultDimension");oA(n,a[0])&&(a[0]=l),oA(n,a[1])&&(a[1]=l);var u=n.getStore(),c=n.getDimensionIndex(a[0]),h=n.getDimensionIndex(a[1]);return s&&{progress:function(t,e){for(var n=t.end-t.start,i=o&&DA(n*s),a=[],l=[],d=t.start,p=0;d<t.end;d++){var f=void 0;if(1===s){var g=u.get(c,d);f=r.dataToPoint(g,null,l)}else a[0]=u.get(c,d),a[1]=u.get(h,d),f=r.dataToPoint(a,null,l);o?(i[p++]=f[0],i[p++]=f[1]):e.setItemLayout(d,f.slice())}o&&e.setLayout("points",i)}}}}}}var oI={average:function(t){for(var e=0,n=0,r=0;r<t.length;r++)isNaN(t[r])||(e+=t[r],n++);return 0===n?NaN:e/n},sum:function(t){for(var e=0,n=0;n<t.length;n++)e+=t[n]||0;return e},max:function(t){for(var e=-1/0,n=0;n<t.length;n++)t[n]>e&&(e=t[n]);return isFinite(e)?e:NaN},min:function(t){for(var e=1/0,n=0;n<t.length;n++)t[n]<e&&(e=t[n]);return isFinite(e)?e:NaN},minmax:function(t){for(var e=-1/0,n=-1/0,r=0;r<t.length;r++){var i=t[r],o=Math.abs(i);o>e&&(e=o,n=i)}return isFinite(n)?n:NaN},nearest:function(t){return t[0]}},aI=function(t){return Math.round(t.length/2)};function sI(t){return{seriesType:t,reset:function(t,e,n){var r=t.getData(),i=t.get("sampling"),o=t.coordinateSystem,a=r.count();if(a>10&&"cartesian2d"===o.type&&i){var s=o.getBaseAxis(),l=o.getOtherAxis(s),u=s.getExtent(),c=n.getDevicePixelRatio(),h=Math.abs(u[1]-u[0])*(c||1),d=Math.round(a/h);if(isFinite(d)&&d>1){"lttb"===i&&t.setData(r.lttbDownSample(r.mapDimension(l.dim),1/d));var p=void 0;Wt(i)?p=oI[i]:Ft(i)&&(p=i),p&&t.setData(r.downSample(r.mapDimension(l.dim),1/d,p,aI))}}}}}function lI(t){t.registerChartView(rI),t.registerSeriesModel(hP),t.registerLayout(iI("line",!0)),t.registerVisual({seriesType:"line",reset:function(t){var e=t.getData(),n=t.getModel("lineStyle").getLineStyle();n&&!n.stroke&&(n.stroke=e.getVisual("style").fill),e.setVisual("legendLineStyle",n)}}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,sI("line"))}var uI=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Q(e,t),e.prototype.getInitialData=function(t,e){return dA(null,this,{useEncodeDefaulter:!0})},e.prototype.getMarkerPosition=function(t,e,n){var r=this.coordinateSystem;if(r&&r.clampData){var i=r.clampData(t),o=r.dataToPoint(i);if(n)Pt(r.getAxes(),(function(t,n){if("category"===t.type&&null!=e){var r=t.getTicksCoords(),a=t.getTickModel().get("alignWithLabel"),s=i[n],l="x1"===e[n]||"y1"===e[n];if(l&&!a&&(s+=1),r.length<2)return;if(2===r.length)return void(o[n]=t.toGlobalCoord(t.getExtent()[l?1:0]));for(var u=void 0,c=void 0,h=1,d=0;d<r.length;d++){var p=r[d].coord,f=d===r.length-1?r[d-1].tickValue+h:r[d].tickValue;if(f===s){c=p;break}if(f<s)u=p;else if(null!=u&&f>s){c=(p+u)/2;break}1===d&&(h=f-r[0].tickValue)}null==c&&(u?u&&(c=r[r.length-1].coord):c=r[0].coord),o[n]=t.toGlobalCoord(c)}}));else{var a=this.getData(),s=a.getLayout("offset"),l=a.getLayout("size"),u=r.getBaseAxis().isHorizontal()?0:1;o[u]+=s+l/2}return o}return[NaN,NaN]},e.type="series.__base_bar__",e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},e}(Vm);Vm.registerClass(uI);var cI=uI,hI=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Q(e,t),e.prototype.getInitialData=function(){return dA(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},e.prototype.getProgressive=function(){return!!this.get("large")&&this.get("progressive")},e.prototype.getProgressiveThreshold=function(){var t=this.get("progressiveThreshold"),e=this.get("largeThreshold");return e>t&&(t=e),t},e.prototype.brushSelector=function(t,e,n){return n.rect(e.getItemLayout(t))},e.type="series.bar",e.dependencies=["grid","polar"],e.defaultOption=Ud(cI.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:"#212121"}},realtimeSort:!1}),e}(cI),dI=hI,pI=function(){function t(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0}return t}(),fI=function(t){function e(e){var n=t.call(this,e)||this;return n.type="sausage",n}return Q(e,t),e.prototype.getDefaultShape=function(){return new pI},e.prototype.buildPath=function(t,e){var n=e.cx,r=e.cy,i=Math.max(e.r0||0,0),o=Math.max(e.r,0),a=.5*(o-i),s=i+a,l=e.startAngle,u=e.endAngle,c=e.clockwise,h=2*Math.PI,d=c?u-l<h:l-u<h;d||(l=u-(c?h:-h));var p=Math.cos(l),f=Math.sin(l),g=Math.cos(u),v=Math.sin(u);d?(t.moveTo(p*i+n,f*i+r),t.arc(p*s+n,f*s+r,a,-Math.PI+l,l,!c)):t.moveTo(p*o+n,f*o+r),t.arc(n,r,o,l,u,!c),t.arc(g*s+n,v*s+r,a,u-2*Math.PI,u-Math.PI,!c),0!==i&&t.arc(n,r,i,u,l,c)},e}(lc),gI=fI;function vI(t,e){e=e||{};var n=e.isRoundCap;return function(e,r,i){var o=r.position;if(!o||o instanceof Array)return _a(e,r,i);var a=t(o),s=null!=r.distance?r.distance:5,l=this.shape,u=l.cx,c=l.cy,h=l.r,d=l.r0,p=(h+d)/2,f=l.startAngle,g=l.endAngle,v=(f+g)/2,m=n?Math.abs(h-d)/2:0,y=Math.cos,b=Math.sin,_=u+h*y(f),x=c+h*b(f),w="left",O="top";switch(a){case"startArc":_=u+(d-s)*y(v),x=c+(d-s)*b(v),w="center",O="top";break;case"insideStartArc":_=u+(d+s)*y(v),x=c+(d+s)*b(v),w="center",O="bottom";break;case"startAngle":_=u+p*y(f)+yI(f,s+m,!1),x=c+p*b(f)+bI(f,s+m,!1),w="right",O="middle";break;case"insideStartAngle":_=u+p*y(f)+yI(f,-s+m,!1),x=c+p*b(f)+bI(f,-s+m,!1),w="left",O="middle";break;case"middle":_=u+p*y(v),x=c+p*b(v),w="center",O="middle";break;case"endArc":_=u+(h+s)*y(v),x=c+(h+s)*b(v),w="center",O="bottom";break;case"insideEndArc":_=u+(h-s)*y(v),x=c+(h-s)*b(v),w="center",O="top";break;case"endAngle":_=u+p*y(g)+yI(g,s+m,!0),x=c+p*b(g)+bI(g,s+m,!0),w="left",O="middle";break;case"insideEndAngle":_=u+p*y(g)+yI(g,-s+m,!0),x=c+p*b(g)+bI(g,-s+m,!0),w="right",O="middle";break;default:return _a(e,r,i)}return e=e||{},e.x=_,e.y=x,e.align=w,e.verticalAlign=O,e}}function mI(t,e,n,r){if(Vt(r))t.setTextConfig({rotation:r});else if(Bt(e))t.setTextConfig({rotation:0});else{var i,o=t.shape,a=o.clockwise?o.startAngle:o.endAngle,s=o.clockwise?o.endAngle:o.startAngle,l=(a+s)/2,u=n(e);switch(u){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":i=l;break;case"startAngle":case"insideStartAngle":i=a;break;case"endAngle":case"insideEndAngle":i=s;break;default:return void t.setTextConfig({rotation:0})}var c=1.5*Math.PI-i;"middle"===u&&c>Math.PI/2&&c<1.5*Math.PI&&(c-=Math.PI),t.setTextConfig({rotation:c})}}function yI(t,e,n){return e*Math.sin(t)*(n?-1:1)}function bI(t,e,n){return e*Math.cos(t)*(n?1:-1)}function _I(t,e,n){var r=t.get("borderRadius");if(null==r)return n?{cornerRadius:0}:null;Bt(r)||(r=[r,r,r,r]);var i=Math.abs(e.r||0-e.r0||0);return{cornerRadius:It(r,(function(t){return ba(t,i)}))}}var xI=Math.max,wI=Math.min;function OI(t,e){var n=t.getArea&&t.getArea();if(zP(t,"cartesian2d")){var r=t.getBaseAxis();if("category"!==r.type||!r.onBand){var i=e.getLayout("bandWidth");r.isHorizontal()?(n.x-=i,n.width+=2*i):(n.y-=i,n.height+=2*i)}}return n}var SI=function(t){function e(){var n=t.call(this)||this;return n.type=e.type,n._isFirstFrame=!0,n}return Q(e,t),e.prototype.render=function(t,e,n,r){this._model=t,this._removeOnRenderedListener(n),this._updateDrawMode(t);var i=t.get("coordinateSystem");("cartesian2d"===i||"polar"===i)&&(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(t,e,n):this._renderNormal(t,e,n,r))},e.prototype.incrementalPrepareRender=function(t){this._clear(),this._updateDrawMode(t),this._updateLargeClip(t)},e.prototype.incrementalRender=function(t,e){this._progressiveEls=[],this._incrementalRenderLarge(t,e)},e.prototype.eachRendered=function(t){r_(this._progressiveEls||this.group,t)},e.prototype._updateDrawMode=function(t){var e=t.pipelineContext.large;null!=this._isLargeDraw&&e===this._isLargeDraw||(this._isLargeDraw=e,this._clear())},e.prototype._renderNormal=function(t,e,n,r){var i,o=this.group,a=t.getData(),s=this._data,l=t.coordinateSystem,u=l.getBaseAxis();"cartesian2d"===l.type?i=u.isHorizontal():"polar"===l.type&&(i="angle"===u.dim);var c=t.isAnimationEnabled()?t:null,h=CI(t,l);h&&this._enableRealtimeSort(h,a,n);var d=t.get("clip",!0)||h,p=OI(l,a);o.removeClipPath();var f=t.get("roundCap",!0),g=t.get("showBackground",!0),v=t.getModel("backgroundStyle"),m=v.get("borderRadius")||0,y=[],b=this._backgroundEls,_=r&&r.isInitSort,x=r&&"changeAxisOrder"===r.type;function w(t){var e=EI[l.type](a,t),n=QI(l,i,e);return n.useStyle(v.getItemStyle()),"cartesian2d"===l.type?n.setShape("r",m):n.setShape("cornerRadius",m),y[t]=n,n}a.diff(s).add((function(e){var n=a.getItemModel(e),r=EI[l.type](a,e,n);if(g&&w(e),a.hasValue(e)&&$I[l.type](r)){var s=!1;d&&(s=AI[l.type](p,r));var v=kI[l.type](t,a,e,r,i,c,u.model,!1,f);h&&(v.forceLabelAnimation=!0),LI(v,a,e,n,r,t,i,"polar"===l.type),_?v.attr({shape:r}):h?MI(h,c,v,r,e,i,!1,!1):ld(v,{shape:r},t,e),a.setItemGraphicEl(e,v),o.add(v),v.ignore=s}})).update((function(e,n){var r=a.getItemModel(e),O=EI[l.type](a,e,r);if(g){var S=void 0;0===b.length?S=w(n):(S=b[n],S.useStyle(v.getItemStyle()),"cartesian2d"===l.type?S.setShape("r",m):S.setShape("cornerRadius",m),y[e]=S);var A=EI[l.type](a,e),k=VI(i,A,l);sd(S,{shape:k},c,e)}var C=s.getItemGraphicEl(n);if(a.hasValue(e)&&$I[l.type](O)){var M=!1;if(d&&(M=AI[l.type](p,O),M&&o.remove(C)),C?pd(C):C=kI[l.type](t,a,e,O,i,c,u.model,!!C,f),h&&(C.forceLabelAnimation=!0),x){var T=C.getTextContent();if(T){var P=Td(T);null!=P.prevValue&&(P.prevValue=P.value)}}else LI(C,a,e,r,O,t,i,"polar"===l.type);_?C.attr({shape:O}):h?MI(h,c,C,O,e,i,!0,x):sd(C,{shape:O},t,e,null),a.setItemGraphicEl(e,C),C.ignore=M,o.add(C)}else o.remove(C)})).remove((function(e){var n=s.getItemGraphicEl(e);n&&dd(n,t,e)})).execute();var O=this._backgroundGroup||(this._backgroundGroup=new La);O.removeAll();for(var S=0;S<y.length;++S)O.add(y[S]);o.add(O),this._backgroundEls=y,this._data=a},e.prototype._renderLarge=function(t,e,n){this._clear(),FI(t,this.group),this._updateLargeClip(t)},e.prototype._incrementalRenderLarge=function(t,e){this._removeBackground(),FI(e,this.group,this._progressiveEls,!0)},e.prototype._updateLargeClip=function(t){var e=t.get("clip",!0)&&NP(t.coordinateSystem,!1,t),n=this.group;e?n.setClipPath(e):n.removeClipPath()},e.prototype._enableRealtimeSort=function(t,e,n){var r=this;if(e.count()){var i=t.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(e,t,n),this._isFirstFrame=!1;else{var o=function(t){var n=e.getItemGraphicEl(t),r=n&&n.shape;return r&&Math.abs(i.isHorizontal()?r.height:r.width)||0};this._onRendered=function(){r._updateSortWithinSameData(e,o,i,n)},n.getZr().on("rendered",this._onRendered)}}},e.prototype._dataSort=function(t,e,n){var r=[];return t.each(t.mapDimension(e.dim),(function(t,e){var i=n(e);i=null==i?NaN:i,r.push({dataIndex:e,mappedValue:i,ordinalNumber:t})})),r.sort((function(t,e){return e.mappedValue-t.mappedValue})),{ordinalNumbers:It(r,(function(t){return t.ordinalNumber}))}},e.prototype._isOrderChangedWithinSameData=function(t,e,n){for(var r=n.scale,i=t.mapDimension(n.dim),o=Number.MAX_VALUE,a=0,s=r.getOrdinalMeta().categories.length;a<s;++a){var l=t.rawIndexOf(i,r.getRawOrdinalNumber(a)),u=l<0?Number.MIN_VALUE:e(t.indexOfRawIndex(l));if(u>o)return!0;o=u}return!1},e.prototype._isOrderDifferentInView=function(t,e){for(var n=e.scale,r=n.getExtent(),i=Math.max(0,r[0]),o=Math.min(r[1],n.getOrdinalMeta().categories.length-1);i<=o;++i)if(t.ordinalNumbers[i]!==n.getRawOrdinalNumber(i))return!0},e.prototype._updateSortWithinSameData=function(t,e,n,r){if(this._isOrderChangedWithinSameData(t,e,n)){var i=this._dataSort(t,n,e);this._isOrderDifferentInView(i,n)&&(this._removeOnRenderedListener(r),r.dispatchAction({type:"changeAxisOrder",componentType:n.dim+"Axis",axisId:n.index,sortInfo:i}))}},e.prototype._dispatchInitSort=function(t,e,n){var r=e.baseAxis,i=this._dataSort(t,r,(function(n){return t.get(t.mapDimension(e.otherAxis.dim),n)}));n.dispatchAction({type:"changeAxisOrder",componentType:r.dim+"Axis",isInitSort:!0,axisId:r.index,sortInfo:i})},e.prototype.remove=function(t,e){this._clear(this._model),this._removeOnRenderedListener(e)},e.prototype.dispose=function(t,e){this._removeOnRenderedListener(e)},e.prototype._removeOnRenderedListener=function(t){this._onRendered&&(t.getZr().off("rendered",this._onRendered),this._onRendered=null)},e.prototype._clear=function(t){var e=this.group,n=this._data;t&&t.isAnimationEnabled()&&n&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],n.eachItemGraphicEl((function(e){dd(e,t,Qc(e).dataIndex)}))):e.removeAll(),this._data=null,this._isFirstFrame=!0},e.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},e.type="bar",e}(d_),AI={cartesian2d:function(t,e){var n=e.width<0?-1:1,r=e.height<0?-1:1;n<0&&(e.x+=e.width,e.width=-e.width),r<0&&(e.y+=e.height,e.height=-e.height);var i=t.x+t.width,o=t.y+t.height,a=xI(e.x,t.x),s=wI(e.x+e.width,i),l=xI(e.y,t.y),u=wI(e.y+e.height,o),c=s<a,h=u<l;return e.x=c&&a>i?s:a,e.y=h&&l>o?u:l,e.width=c?0:s-a,e.height=h?0:u-l,n<0&&(e.x+=e.width,e.width=-e.width),r<0&&(e.y+=e.height,e.height=-e.height),c||h},polar:function(t,e){var n=e.r0<=e.r?1:-1;if(n<0){var r=e.r;e.r=e.r0,e.r0=r}var i=wI(e.r,t.r),o=xI(e.r0,t.r0);e.r=i,e.r0=o;var a=i-o<0;if(n<0){r=e.r;e.r=e.r0,e.r0=r}return a}},kI={cartesian2d:function(t,e,n,r,i,o,a,s,l){var u=new Ac({shape:Ot({},r),z2:1});if(u.__dataIndex=n,u.name="item",o){var c=u.shape,h=i?"height":"width";c[h]=0}return u},polar:function(t,e,n,r,i,o,a,s,l){var u=!i&&l?gI:By,c=new u({shape:r,z2:1});c.name="item";var h=DI(i);if(c.calculateTextPosition=vI(h,{isRoundCap:u===gI}),o){var d=c.shape,p=i?"r":"endAngle",f={};d[p]=i?r.r0:r.startAngle,f[p]=r[p],(s?sd:ld)(c,{shape:f},o)}return c}};function CI(t,e){var n=t.get("realtimeSort",!0),r=e.getBaseAxis();if(n&&"category"===r.type&&"cartesian2d"===e.type)return{baseAxis:r,otherAxis:e.getOtherAxis(r)}}function MI(t,e,n,r,i,o,a,s){var l,u;o?(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?sd:ld)(n,{shape:l},e,i,null);var c=e?t.baseAxis.model:null;(a?sd:ld)(n,{shape:u},c,i)}function TI(t,e){for(var n=0;n<e.length;n++)if(!isFinite(t[e[n]]))return!0;return!1}var PI=["x","y","width","height"],II=["cx","cy","r","startAngle","endAngle"],$I={cartesian2d:function(t){return!TI(t,PI)},polar:function(t){return!TI(t,II)}},EI={cartesian2d:function(t,e,n){var r=t.getItemLayout(e),i=n?NI(n,r):0,o=r.width>0?1:-1,a=r.height>0?1:-1;return{x:r.x+o*i/2,y:r.y+a*i/2,width:r.width-o*i,height:r.height-a*i}},polar:function(t,e,n){var r=t.getItemLayout(e);return{cx:r.cx,cy:r.cy,r0:r.r0,r:r.r,startAngle:r.startAngle,endAngle:r.endAngle,clockwise:r.clockwise}}};function RI(t){return null!=t.startAngle&&null!=t.endAngle&&t.startAngle===t.endAngle}function DI(t){return function(t){var e=t?"Arc":"Angle";return function(t){switch(t){case"start":case"insideStart":case"end":case"insideEnd":return t+e;default:return t}}}(t)}function LI(t,e,n,r,i,o,a,s){var l=e.getItemVisual(n,"style");if(s){if(!o.get("roundCap")){var u=t.shape,c=_I(r.getModel("itemStyle"),u,!0);Ot(u,c),t.setShape(u)}}else{var h=r.get(["itemStyle","borderRadius"])||0;t.setShape("r",h)}t.useStyle(l);var d=r.getShallow("cursor");d&&t.attr("cursor",d);var p=s?a?i.r>=i.r0?"endArc":"startArc":i.endAngle>=i.startAngle?"endAngle":"startAngle":a?i.height>=0?"bottom":"top":i.width>=0?"right":"left",f=bd(r);yd(t,f,{labelFetcher:o,labelDataIndex:n,defaultText:dP(o.getData(),n),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:p});var g=t.getTextContent();if(s&&g){var v=r.get(["label","position"]);t.textConfig.inside="middle"===v||null,mI(t,"outside"===v?p:v,DI(a),r.get(["label","rotate"]))}Pd(g,f,o.getRawValue(n),(function(t){return pP(e,t)}));var m=r.getModel(["emphasis"]);Zh(t,m.get("focus"),m.get("blurScope"),m.get("disabled")),Yh(t,r),RI(i)&&(t.style.fill="none",t.style.stroke="none",Pt(t.states,(function(t){t.style&&(t.style.fill=t.style.stroke="none")})))}function NI(t,e){var n=t.get(["itemStyle","borderColor"]);if(!n||"none"===n)return 0;var r=t.get(["itemStyle","borderWidth"])||0,i=isNaN(e.width)?Number.MAX_VALUE:Math.abs(e.width),o=isNaN(e.height)?Number.MAX_VALUE:Math.abs(e.height);return Math.min(r,i,o)}var zI=function(){function t(){}return t}(),BI=function(t){function e(e){var n=t.call(this,e)||this;return n.type="largeBar",n}return Q(e,t),e.prototype.getDefaultShape=function(){return new zI},e.prototype.buildPath=function(t,e){for(var n=e.points,r=this.baseDimIdx,i=1-this.baseDimIdx,o=[],a=[],s=this.barWidth,l=0;l<n.length;l+=3)a[r]=s,a[i]=n[l+2],o[r]=n[l+r],o[i]=n[l+i],t.rect(o[0],o[1],a[0],a[1])},e}(lc);function FI(t,e,n,r){var i=t.getData(),o=i.getLayout("valueAxisHorizontal")?1:0,a=i.getLayout("largeDataIndices"),s=i.getLayout("size"),l=t.getModel("backgroundStyle"),u=i.getLayout("largeBackgroundPoints");if(u){var c=new BI({shape:{points:u},incremental:!!r,silent:!0,z2:0});c.baseDimIdx=o,c.largeDataIndices=a,c.barWidth=s,c.useStyle(l.getItemStyle()),e.add(c),n&&n.push(c)}var h=new BI({shape:{points:i.getLayout("largePoints")},incremental:!!r,ignoreCoarsePointer:!0,z2:1});h.baseDimIdx=o,h.largeDataIndices=a,h.barWidth=s,e.add(h),h.useStyle(i.getVisual("style")),Qc(h).seriesIndex=t.seriesIndex,t.get("silent")||(h.on("mousedown",WI),h.on("mousemove",WI)),n&&n.push(h)}var WI=v_((function(t){var e=this,n=jI(e,t.offsetX,t.offsetY);Qc(e).dataIndex=n>=0?n:null}),30,!1);function jI(t,e,n){for(var r=t.baseDimIdx,i=1-r,o=t.shape.points,a=t.largeDataIndices,s=[],l=[],u=t.barWidth,c=0,h=o.length/3;c<h;c++){var d=3*c;if(l[r]=u,l[i]=o[d+2],s[r]=o[d+r],s[i]=o[d+i],l[i]<0&&(s[i]+=l[i],l[i]=-l[i]),e>=s[0]&&e<=s[0]+l[0]&&n>=s[1]&&n<=s[1]+l[1])return a[c]}return-1}function VI(t,e,n){if(zP(n,"cartesian2d")){var r=e,i=n.getArea();return{x:t?r.x:i.x,y:t?i.y:r.y,width:t?r.width:i.width,height:t?i.height:r.height}}i=n.getArea();var o=e;return{cx:i.cx,cy:i.cy,r0:t?i.r0:o.r0,r:t?i.r:o.r,startAngle:t?o.startAngle:0,endAngle:t?o.endAngle:2*Math.PI}}function QI(t,e,n){var r="polar"===t.type?By:Ac;return new r({shape:VI(e,n,t),silent:!0,z2:0})}var HI=SI;function ZI(t){t.registerChartView(HI),t.registerSeriesModel(dI),t.registerLayout(t.PRIORITY.VISUAL.LAYOUT,zt(HA,"bar")),t.registerLayout(t.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,ZA("bar")),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,sI("bar")),t.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},(function(t,e){var n=t.componentType||"series";e.eachComponent({mainType:n,query:t},(function(e){t.sortInfo&&e.axis.setCategorySortInfo(t.sortInfo)}))}))}var GI=2*Math.PI,XI=Math.PI/180;function UI(t,e){return af(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function YI(t,e){var n=UI(t,e),r=t.get("center"),i=t.get("radius");Bt(i)||(i=[0,i]);var o,a,s=es(n.width,e.getWidth()),l=es(n.height,e.getHeight()),u=Math.min(s,l),c=es(i[0],u/2),h=es(i[1],u/2),d=t.coordinateSystem;if(d){var p=d.dataToPoint(r);o=p[0]||0,a=p[1]||0}else Bt(r)||(r=[r,r]),o=es(r[0],s)+n.x,a=es(r[1],l)+n.y;return{cx:o,cy:a,r0:c,r:h}}function qI(t,e,n){e.eachSeriesByType(t,(function(t){var e=t.getData(),r=e.mapDimension("value"),i=UI(t,n),o=YI(t,n),a=o.cx,s=o.cy,l=o.r,u=o.r0,c=-t.get("startAngle")*XI,h=t.get("endAngle"),d=t.get("padAngle")*XI;h="auto"===h?c-GI:-h*XI;var p=t.get("minAngle")*XI,f=p+d,g=0;e.each(r,(function(t){!isNaN(t)&&g++}));var v=e.getSum(r),m=Math.PI/(v||g)*2,y=t.get("clockwise"),b=t.get("roseType"),_=t.get("stillShowZeroSum"),x=e.getDataExtent(r);x[0]=0;var w=y?1:-1,O=[c,h],S=w*d/2;Ru(O,!y),c=O[0],h=O[1];var A=KI(t);A.startAngle=c,A.endAngle=h,A.clockwise=y;var k=Math.abs(h-c),C=k,M=0,T=c;if(e.setLayout({viewRect:i,r:l}),e.each(r,(function(t,n){var r;if(isNaN(t))e.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===v&&_?m:t*m:k/g,r<f?(r=f,C-=f):M+=t;var i=T+w*r,o=0,c=0;d>r?(o=T+w*r/2,c=o):(o=T+S,c=i-S),e.setItemLayout(n,{angle:r,startAngle:o,endAngle:c,clockwise:y,cx:a,cy:s,r0:u,r:b?ts(t,x,[u,l]):l}),T=i}})),C<GI&&g)if(C<=.001){var P=k/g;e.each(r,(function(t,n){if(!isNaN(t)){var r=e.getItemLayout(n);r.angle=P;var i=0,o=0;P<d?(i=c+w*(n+.5)*P,o=i):(i=c+w*n*P+S,o=c+w*(n+1)*P-S),r.startAngle=i,r.endAngle=o}}))}else m=C/M,T=c,e.each(r,(function(t,n){if(!isNaN(t)){var r=e.getItemLayout(n),i=r.angle===f?f:t*m,o=0,a=0;i<d?(o=T+w*i/2,a=o):(o=T+S,a=T+w*i-S),r.startAngle=o,r.endAngle=a,T+=w*i}}))}))}var KI=Ys();function JI(t){return{seriesType:t,reset:function(t,e){var n=e.findComponents({mainType:"legend"});if(n&&n.length){var r=t.getData();r.filterSelf((function(t){for(var e=r.getName(t),i=0;i<n.length;i++)if(!n[i].isSelected(e))return!1;return!0}))}}}}var t$=Math.PI/180;function e$(t,e,n,r,i,o,a,s,l,u){if(!(t.length<2)){for(var c=t.length,h=0;h<c;h++)if("outer"===t[h].position&&"labelLine"===t[h].labelAlignTo){var d=t[h].label.x-u;t[h].linePoints[1][0]+=d,t[h].label.x=u}iM(t,l,l+a)&&f(t)}function p(t){for(var o=t.rB,a=o*o,s=0;s<t.list.length;s++){var l=t.list[s],u=Math.abs(l.label.y-n),c=r+l.len,h=c*c,d=Math.sqrt((1-Math.abs(u*u/a))*h),p=e+(d+l.len2)*i,f=p-l.label.x,g=l.targetTextWidth-f*i;r$(l,g,!0),l.label.x=p}}function f(t){for(var o={list:[],maxY:0},a={list:[],maxY:0},s=0;s<t.length;s++)if("none"===t[s].labelAlignTo){var l=t[s],u=l.label.y>n?a:o,c=Math.abs(l.label.y-n);if(c>=u.maxY){var h=l.label.x-e-l.len2*i,d=r+l.len,f=Math.abs(h)<d?Math.sqrt(c*c/(1-h*h/d/d)):d;u.rB=f,u.maxY=c}u.list.push(l)}p(o),p(a)}}function n$(t,e,n,r,i,o,a,s){for(var l=[],u=[],c=Number.MAX_VALUE,h=-Number.MAX_VALUE,d=0;d<t.length;d++){var p=t[d].label;i$(t[d])||(p.x<e?(c=Math.min(c,p.x),l.push(t[d])):(h=Math.max(h,p.x),u.push(t[d])))}for(d=0;d<t.length;d++){var f=t[d];if(!i$(f)&&f.linePoints){if(null!=f.labelStyleWidth)continue;p=f.label;var g=f.linePoints,v=void 0;v="edge"===f.labelAlignTo?p.x<e?g[2][0]-f.labelDistance-a-f.edgeDistance:a+i-f.edgeDistance-g[2][0]-f.labelDistance:"labelLine"===f.labelAlignTo?p.x<e?c-a-f.bleedMargin:a+i-h-f.bleedMargin:p.x<e?p.x-a-f.bleedMargin:a+i-p.x-f.bleedMargin,f.targetTextWidth=v,r$(f,v)}}e$(u,e,n,r,1,i,o,a,s,h),e$(l,e,n,r,-1,i,o,a,s,c);for(d=0;d<t.length;d++){f=t[d];if(!i$(f)&&f.linePoints){p=f.label,g=f.linePoints;var m="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];m?p.x<e?g[2][0]=a+f.edgeDistance+x+f.labelDistance:g[2][0]=a+i-f.edgeDistance-x-f.labelDistance:(p.x<e?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 r$(t,e,n){if(void 0===n&&(n=!1),null==t.labelStyleWidth){var r=t.label,i=r.style,o=t.rect,a=i.backgroundColor,s=i.padding,l=s?s[1]+s[3]:0,u=i.overflow,c=o.width+(a?0:l);if(e<c||n){var h=o.height;if(u&&u.match("break")){r.setStyle("backgroundColor",null),r.setStyle("width",e-l);var d=r.getBoundingRect();r.setStyle("width",Math.ceil(d.width)),r.setStyle("backgroundColor",a)}else{var p=e-l,f=e<c?p:n?p>t.unconstrainedWidth?null:p:null;r.setStyle("width",f)}var g=r.getBoundingRect();o.width=g.width;var v=(r.style.margin||0)+2.1;o.height=g.height+v,o.y-=(o.height-h)/2}}}function i$(t){return"center"===t.position}function o$(t){var e,n,r=t.getData(),i=[],o=!1,a=(t.get("minShowLabelAngle")||0)*t$,s=r.getLayout("viewRect"),l=r.getLayout("r"),u=s.width,c=s.x,h=s.y,d=s.height;function p(t){t.ignore=!0}function f(t){if(!t.ignore)return!0;for(var e in t.states)if(!1===t.states[e].ignore)return!0;return!1}r.each((function(t){var s=r.getItemGraphicEl(t),h=s.shape,d=s.getTextContent(),g=s.getTextGuideLine(),v=r.getItemModel(t),m=v.getModel("label"),y=m.get("position")||v.get(["emphasis","label","position"]),b=m.get("distanceToLabelLine"),_=m.get("alignTo"),x=es(m.get("edgeDistance"),u),w=m.get("bleedMargin"),O=v.getModel("labelLine"),S=O.get("length");S=es(S,u);var A=O.get("length2");if(A=es(A,u),Math.abs(h.endAngle-h.startAngle)<a)return Pt(d.states,p),d.ignore=!0,void(g&&(Pt(g.states,p),g.ignore=!0));if(f(d)){var k,C,M,T,P=(h.startAngle+h.endAngle)/2,I=Math.cos(P),$=Math.sin(P);e=h.cx,n=h.cy;var E="inside"===y||"inner"===y;if("center"===y)k=h.cx,C=h.cy,T="center";else{var R=(E?(h.r+h.r0)/2*I:h.r*I)+e,D=(E?(h.r+h.r0)/2*$:h.r*$)+n;if(k=R+3*I,C=D+3*$,!E){var L=R+I*(S+l-h.r),N=D+$*(S+l-h.r),z=L+(I<0?-1:1)*A,B=N;k="edge"===_?I<0?c+x:c+u-x:z+(I<0?-b:b),C=B,M=[[R,D],[L,N],[z,B]]}T=E?"center":"edge"===_?I>0?"right":"left":I>0?"left":"right"}var F=Math.PI,W=0,j=m.get("rotate");if(Vt(j))W=j*(F/180);else if("center"===y)W=0;else if("radial"===j||!0===j){var V=I<0?-P+F:-P;W=V}else if("tangential"===j&&"outside"!==y&&"outer"!==y){var Q=Math.atan2(I,$);Q<0&&(Q=2*F+Q);var H=$>0;H&&(Q=F+Q),W=Q-F}if(o=!!W,d.x=k,d.y=C,d.rotation=W,d.setStyle({verticalAlign:"middle"}),E){d.setStyle({align:T});var Z=d.states.select;Z&&(Z.x+=d.x,Z.y+=d.y)}else{var G=d.getBoundingRect().clone();G.applyTransform(d.getComputedTransform());var X=(d.style.margin||0)+2.1;G.y-=X/2,G.height+=X,i.push({label:d,labelLine:g,position:y,len:S,len2:A,minTurnAngle:O.get("minTurnAngle"),maxSurfaceAngle:O.get("maxSurfaceAngle"),surfaceNormal:new Dn(I,$),linePoints:M,textAlign:T,labelDistance:b,labelAlignTo:_,edgeDistance:x,bleedMargin:w,rect:G,unconstrainedWidth:G.width,labelStyleWidth:d.style.width})}s.setTextConfig({inside:E})}})),!o&&t.get("avoidLabelOverlap")&&n$(i,e,n,l,u,d,c,h);for(var g=0;g<i.length;g++){var v=i[g],m=v.label,y=v.labelLine,b=isNaN(m.x)||isNaN(m.y);if(m){m.setStyle({align:v.textAlign}),b&&(Pt(m.states,p),m.ignore=!0);var _=m.states.select;_&&(_.x+=m.x,_.y+=m.y)}if(y){var x=v.linePoints;b||!x?(Pt(y.states,p),y.ignore=!0):(UC(x,v.minTurnAngle),YC(x,v.surfaceNormal,v.maxSurfaceAngle),y.setShape({points:x}),m.__hostTarget.textGuideLineConfig={anchor:new Dn(x[0][0],x[0][1])})}}}var a$=function(t){function e(e,n,r){var i=t.call(this)||this;i.z2=2;var o=new Vc;return i.setTextContent(o),i.updateData(e,n,r,!0),i}return Q(e,t),e.prototype.updateData=function(t,e,n,r){var i=this,o=t.hostModel,a=t.getItemModel(e),s=a.getModel("emphasis"),l=t.getItemLayout(e),u=Ot(_I(a.getModel("itemStyle"),l,!0),l);if(isNaN(u.startAngle))i.setShape(u);else{if(r){i.setShape(u);var c=o.getShallow("animationType");o.ecModel.ssr?(ld(i,{scaleX:0,scaleY:0},o,{dataIndex:e,isFrom:!0}),i.originX=u.cx,i.originY=u.cy):"scale"===c?(i.shape.r=l.r0,ld(i,{shape:{r:l.r}},o,e)):null!=n?(i.setShape({startAngle:n,endAngle:n}),ld(i,{shape:{startAngle:l.startAngle,endAngle:l.endAngle}},o,e)):(i.shape.endAngle=l.startAngle,sd(i,{shape:{endAngle:l.endAngle}},o,e))}else pd(i),sd(i,{shape:u},o,e);i.useStyle(t.getItemVisual(e,"style")),Yh(i,a);var h=(l.startAngle+l.endAngle)/2,d=o.get("selectedOffset"),p=Math.cos(h)*d,f=Math.sin(h)*d,g=a.getShallow("cursor");g&&i.attr("cursor",g),this._updateLabel(o,t,e),i.ensureState("emphasis").shape=Ot({r:l.r+(s.get("scale")&&s.get("scaleSize")||0)},_I(s.getModel("itemStyle"),l)),Ot(i.ensureState("select"),{x:p,y:f,shape:_I(a.getModel(["select","itemStyle"]),l)}),Ot(i.ensureState("blur"),{shape:_I(a.getModel(["blur","itemStyle"]),l)});var v=i.getTextGuideLine(),m=i.getTextContent();v&&Ot(v.ensureState("select"),{x:p,y:f}),Ot(m.ensureState("select"),{x:p,y:f}),Zh(this,s.get("focus"),s.get("blurScope"),s.get("disabled"))}},e.prototype._updateLabel=function(t,e,n){var r=this,i=e.getItemModel(n),o=i.getModel("labelLine"),a=e.getItemVisual(n,"style"),s=a&&a.fill,l=a&&a.opacity;yd(r,bd(i),{labelFetcher:e.hostModel,labelDataIndex:n,inheritColor:s,defaultOpacity:l,defaultText:t.getFormattedLabel(n,"normal")||e.getName(n)});var u=r.getTextContent();r.setTextConfig({position:null,rotation:null}),u.attr({z2:10});var c=t.get(["label","position"]);if("outside"!==c&&"outer"!==c)r.removeTextGuideLine();else{var h=this.getTextGuideLine();h||(h=new Yy,this.setTextGuideLine(h)),JC(this,tM(i),{stroke:s,opacity:te(o.get(["lineStyle","opacity"]),l,1)})}},e}(By),s$=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.ignoreLabelLineUpdate=!0,e}return Q(e,t),e.prototype.render=function(t,e,n,r){var i,o=t.getData(),a=this._data,s=this.group;if(!a&&o.count()>0){for(var l=o.getItemLayout(0),u=1;isNaN(l&&l.startAngle)&&u<o.count();++u)l=o.getItemLayout(u);l&&(i=l.startAngle)}if(this._emptyCircleSector&&s.remove(this._emptyCircleSector),0===o.count()&&t.get("showEmptyCircle")){var c=KI(t),h=new By({shape:Ot(YI(t,n),c)});h.useStyle(t.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=h,s.add(h)}o.diff(a).add((function(t){var e=new a$(o,t,i);o.setItemGraphicEl(t,e),s.add(e)})).update((function(t,e){var n=a.getItemGraphicEl(e);n.updateData(o,t,i),n.off("click"),s.add(n),o.setItemGraphicEl(t,n)})).remove((function(e){var n=a.getItemGraphicEl(e);dd(n,t,e)})).execute(),o$(t),"expansion"!==t.get("animationTypeUpdate")&&(this._data=o)},e.prototype.dispose=function(){},e.prototype.containPoint=function(t,e){var n=e.getData(),r=n.getItemLayout(0);if(r){var i=t[0]-r.cx,o=t[1]-r.cy,a=Math.sqrt(i*i+o*o);return a<=r.r&&a>=r.r0}},e.type="pie",e}(d_),l$=s$;function u$(t,e,n){e=Bt(e)&&{coordDimensions:e}||Ot({encodeDefine:t.getEncode()},e);var r=t.getSource(),i=US(r,e).dimensions,o=new GS(i,t);return o.initData(r,n),o}var c$=function(){function t(t,e){this._getDataWithEncodedVisual=t,this._getRawData=e}return t.prototype.getAllNames=function(){var t=this._getRawData();return t.mapArray(t.getName)},t.prototype.containName=function(t){var e=this._getRawData();return e.indexOfName(t)>=0},t.prototype.indexOfName=function(t){var e=this._getDataWithEncodedVisual();return e.indexOfName(t)},t.prototype.getItemVisual=function(t,e){var n=this._getDataWithEncodedVisual();return n.getItemVisual(t,e)},t}(),h$=c$,d$=Ys(),p$=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Q(e,t),e.prototype.init=function(e){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new h$(Nt(this.getData,this),Nt(this.getRawData,this)),this._defaultLabelLine(e)},e.prototype.mergeOption=function(){t.prototype.mergeOption.apply(this,arguments)},e.prototype.getInitialData=function(){return u$(this,{coordDimensions:["value"],encodeDefaulter:zt(Ef,this)})},e.prototype.getDataParams=function(e){var n=this.getData(),r=d$(n),i=r.seats;if(!i){var o=[];n.each(n.mapDimension("value"),(function(t){o.push(t)})),i=r.seats=ls(o,n.hostModel.get("percentPrecision"))}var a=t.prototype.getDataParams.call(this,e);return a.percent=i[e]||0,a.$vars.push("percent"),a},e.prototype._defaultLabelLine=function(t){Ts(t,"labelLine",["show"]);var e=t.labelLine,n=t.emphasis.labelLine;e.show=e.show&&t.label.show,n.show=n.show&&t.emphasis.label.show},e.type="series.pie",e.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,endAngle:"auto",padAngle:0,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},e}(Vm),f$=p$;function g$(t){return{seriesType:t,reset:function(t,e){var n=t.getData();n.filterSelf((function(t){var e=n.mapDimension("value"),r=n.get(e,t);return!(Vt(r)&&!isNaN(r)&&r<0)}))}}}function v$(t){t.registerChartView(l$),t.registerSeriesModel(f$),lx("pie",t.registerAction),t.registerLayout(zt(qI,"pie")),t.registerProcessor(JI("pie")),t.registerProcessor(g$("pie"))}var m$=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n}return Q(e,t),e.prototype.getInitialData=function(t,e){return dA(null,this,{useEncodeDefaulter:!0})},e.prototype.getProgressive=function(){var t=this.option.progressive;return null==t?this.option.large?5e3:this.get("progressive"):t},e.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return null==t?this.option.large?1e4:this.get("progressiveThreshold"):t},e.prototype.brushSelector=function(t,e,n){return n.point(e.getItemLayout(t))},e.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},e.type="series.scatter",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:"#212121"}},universalTransition:{divideShape:"clone"}},e}(Vm),y$=m$,b$=4,_$=function(){function t(){}return t}(),x$=function(t){function e(e){var n=t.call(this,e)||this;return n._off=0,n.hoverDataIdx=-1,n}return Q(e,t),e.prototype.getDefaultShape=function(){return new _$},e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.buildPath=function(t,e){var n,r=e.points,i=e.size,o=this.symbolProxy,a=o.shape,s=t.getContext?t.getContext():t,l=s&&i[0]<b$,u=this.softClipShape;if(l)this._ctx=s;else{for(this._ctx=null,n=this._off;n<r.length;){var c=r[n++],h=r[n++];isNaN(c)||isNaN(h)||(u&&!u.contain(c,h)||(a.x=c-i[0]/2,a.y=h-i[1]/2,a.width=i[0],a.height=i[1],o.buildPath(t,a,!0)))}this.incremental&&(this._off=n,this.notClear=!0)}},e.prototype.afterBrush=function(){var t,e=this.shape,n=e.points,r=e.size,i=this._ctx,o=this.softClipShape;if(i){for(t=this._off;t<n.length;){var a=n[t++],s=n[t++];isNaN(a)||isNaN(s)||(o&&!o.contain(a,s)||i.fillRect(a-r[0]/2,s-r[1]/2,r[0],r[1]))}this.incremental&&(this._off=t,this.notClear=!0)}},e.prototype.findDataIndex=function(t,e){for(var n=this.shape,r=n.points,i=n.size,o=Math.max(i[0],4),a=Math.max(i[1],4),s=r.length/2-1;s>=0;s--){var l=2*s,u=r[l]-o/2,c=r[l+1]-a/2;if(t>=u&&e>=c&&t<=u+o&&e<=c+a)return s}return-1},e.prototype.contain=function(t,e){var n=this.transformCoordToLocal(t,e),r=this.getBoundingRect();if(t=n[0],e=n[1],r.contain(t,e)){var i=this.hoverDataIdx=this.findDataIndex(t,e);return i>=0}return this.hoverDataIdx=-1,!1},e.prototype.getBoundingRect=function(){var t=this._rect;if(!t){for(var e=this.shape,n=e.points,r=e.size,i=r[0],o=r[1],a=1/0,s=1/0,l=-1/0,u=-1/0,c=0;c<n.length;){var h=n[c++],d=n[c++];a=Math.min(h,a),l=Math.max(h,l),s=Math.min(d,s),u=Math.max(d,u)}t=this._rect=new Hn(a-i/2,s-o/2,l-a+i,u-s+o)}return t},e}(lc),w$=function(){function t(){this.group=new La}return t.prototype.updateData=function(t,e){this._clear();var n=this._create();n.setShape({points:t.getLayout("points")}),this._setCommon(n,t,e)},t.prototype.updateLayout=function(t){var e=t.getLayout("points");this.group.eachChild((function(t){if(null!=t.startIndex){var n=2*(t.endIndex-t.startIndex),r=4*t.startIndex*2;e=new Float32Array(e.buffer,r,n)}t.setShape("points",e),t.reset()}))},t.prototype.incrementalPrepareUpdate=function(t){this._clear()},t.prototype.incrementalUpdate=function(t,e,n){var r=this._newAdded[0],i=e.getLayout("points"),o=r&&r.shape.points;if(o&&o.length<2e4){var a=o.length,s=new Float32Array(a+i.length);s.set(o),s.set(i,a),r.endIndex=t.end,r.setShape({points:s})}else{this._newAdded=[];var l=this._create();l.startIndex=t.start,l.endIndex=t.end,l.incremental=!0,l.setShape({points:i}),this._setCommon(l,e,n)}},t.prototype.eachRendered=function(t){this._newAdded[0]&&t(this._newAdded[0])},t.prototype._create=function(){var t=new x$({cursor:"default"});return t.ignoreCoarsePointer=!0,this.group.add(t),this._newAdded.push(t),t},t.prototype._setCommon=function(t,e,n){var r=e.hostModel;n=n||{};var i=e.getVisual("symbolSize");t.setShape("size",i instanceof Array?i:[i,i]),t.softClipShape=n.clipShape||null,t.symbolProxy=kx(e.getVisual("symbol"),0,0,0,0),t.setColor=t.symbolProxy.setColor;var o=t.shape.size[0]<b$;t.useStyle(r.getModel("itemStyle").getItemStyle(o?["color","shadowBlur","shadowColor"]:["color"]));var a=e.getVisual("style"),s=a&&a.fill;s&&t.setColor(s);var l=Qc(t);l.seriesIndex=r.seriesIndex,t.on("mousemove",(function(e){l.dataIndex=null;var n=t.hoverDataIdx;n>=0&&(l.dataIndex=n+(t.startIndex||0))}))},t.prototype.remove=function(){this._clear()},t.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},t}(),O$=w$,S$=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Q(e,t),e.prototype.render=function(t,e,n){var r=t.getData(),i=this._updateSymbolDraw(r,t);i.updateData(r,{clipShape:this._getClipShape(t)}),this._finished=!0},e.prototype.incrementalPrepareRender=function(t,e,n){var r=t.getData(),i=this._updateSymbolDraw(r,t);i.incrementalPrepareUpdate(r),this._finished=!1},e.prototype.incrementalRender=function(t,e,n){this._symbolDraw.incrementalUpdate(t,e.getData(),{clipShape:this._getClipShape(e)}),this._finished=t.end===e.getData().count()},e.prototype.updateTransform=function(t,e,n){var r=t.getData();if(this.group.dirty(),!this._finished||r.count()>1e4)return{update:!0};var i=iI("").reset(t,e,n);i.progress&&i.progress({start:0,end:r.count(),count:r.count()},r),this._symbolDraw.updateLayout(r)},e.prototype.eachRendered=function(t){this._symbolDraw&&this._symbolDraw.eachRendered(t)},e.prototype._getClipShape=function(t){if(t.get("clip",!0)){var e=t.coordinateSystem;return e&&e.getArea&&e.getArea(.1)}},e.prototype._updateSymbolDraw=function(t,e){var n=this._symbolDraw,r=e.pipelineContext,i=r.large;return n&&i===this._isLargeDraw||(n&&n.remove(),n=this._symbolDraw=i?new O$:new xP,this._isLargeDraw=i,this.group.removeAll()),this.group.add(n.group),n},e.prototype.remove=function(t,e){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},e.prototype.dispose=function(){},e.type="scatter",e}(d_),A$=S$,k$=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Q(e,t),e.type="grid",e.dependencies=["xAxis","yAxis"],e.layoutMode="box",e.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},e}(vf),C$=k$,M$=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Q(e,t),e.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",tl).models[0]},e.type="cartesian2dAxis",e}(vf);Mt(M$,Nk);var T$={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)"]}}},P$=xt({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},T$),I$=xt({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}}},T$),$$=xt({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},I$),E$=St({logBase:10},I$),R$={category:P$,value:I$,time:$$,log:E$},D$={value:1,category:1,time:1,log:1};function L$(t,e,n,r){Pt(D$,(function(i,o){var a=xt(xt({},R$[o],!0),r,!0),s=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e+"Axis."+o,n}return Q(n,t),n.prototype.mergeDefaultAndTheme=function(t,e){var n=uf(this),r=n?hf(t):{},i=e.getTheme();xt(t,i.get(o+"Axis")),xt(t,this.getDefaultOption()),t.type=N$(t),n&&cf(t,r,n)},n.prototype.optionUpdated=function(){var t=this.option;"category"===t.type&&(this.__ordinalMeta=yA.createByAxisModel(this))},n.prototype.getCategories=function(t){var e=this.option;if("category"===e.type)return t?e.data:this.__ordinalMeta.categories},n.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},n.type=e+"Axis."+o,n.defaultOption=a,n}(n);t.registerComponentModel(s)})),t.registerSubTypeDefaulter(e+"Axis",N$)}function N$(t){return t.type||(t.data?"category":"value")}var z$=function(){function t(t){this.type="cartesian",this._dimList=[],this._axes={},this.name=t||""}return t.prototype.getAxis=function(t){return this._axes[t]},t.prototype.getAxes=function(){return It(this._dimList,(function(t){return this._axes[t]}),this)},t.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),Et(this.getAxes(),(function(e){return e.scale.type===t}))},t.prototype.addAxis=function(t){var e=t.dim;this._axes[e]=t,this._dimList.push(e)},t}(),B$=z$,F$=["x","y"];function W$(t){return"interval"===t.type||"time"===t.type}var j$=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="cartesian2d",e.dimensions=F$,e}return Q(e,t),e.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var t=this.getAxis("x").scale,e=this.getAxis("y").scale;if(W$(t)&&W$(e)){var n=t.getExtent(),r=e.getExtent(),i=this.dataToPoint([n[0],r[0]]),o=this.dataToPoint([n[1],r[1]]),a=n[1]-n[0],s=r[1]-r[0];if(a&&s){var l=(o[0]-i[0])/a,u=(o[1]-i[1])/s,c=i[0]-n[0]*l,h=i[1]-r[0]*u,d=this._transform=[l,0,0,u,c,h];this._invTransform=$n([],d)}}},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},e.prototype.containPoint=function(t){var e=this.getAxis("x"),n=this.getAxis("y");return e.contain(e.toLocalCoord(t[0]))&&n.contain(n.toLocalCoord(t[1]))},e.prototype.containData=function(t){return this.getAxis("x").containData(t[0])&&this.getAxis("y").containData(t[1])},e.prototype.containZone=function(t,e){var n=this.dataToPoint(t),r=this.dataToPoint(e),i=this.getArea(),o=new Hn(n[0],n[1],r[0]-n[0],r[1]-n[1]);return i.intersect(o)},e.prototype.dataToPoint=function(t,e,n){n=n||[];var r=t[0],i=t[1];if(this._transform&&null!=r&&isFinite(r)&&null!=i&&isFinite(i))return We(n,t,this._transform);var o=this.getAxis("x"),a=this.getAxis("y");return n[0]=o.toGlobalCoord(o.dataToCoord(r,e)),n[1]=a.toGlobalCoord(a.dataToCoord(i,e)),n},e.prototype.clampData=function(t,e){var n=this.getAxis("x").scale,r=this.getAxis("y").scale,i=n.getExtent(),o=r.getExtent(),a=n.parse(t[0]),s=r.parse(t[1]);return e=e||[],e[0]=Math.min(Math.max(Math.min(i[0],i[1]),a),Math.max(i[0],i[1])),e[1]=Math.min(Math.max(Math.min(o[0],o[1]),s),Math.max(o[0],o[1])),e},e.prototype.pointToData=function(t,e){var n=[];if(this._invTransform)return We(n,t,this._invTransform);var r=this.getAxis("x"),i=this.getAxis("y");return n[0]=r.coordToData(r.toLocalCoord(t[0]),e),n[1]=i.coordToData(i.toLocalCoord(t[1]),e),n},e.prototype.getOtherAxis=function(t){return this.getAxis("x"===t.dim?"y":"x")},e.prototype.getArea=function(t){t=t||0;var e=this.getAxis("x").getGlobalExtent(),n=this.getAxis("y").getGlobalExtent(),r=Math.min(e[0],e[1])-t,i=Math.min(n[0],n[1])-t,o=Math.max(e[0],e[1])-r+t,a=Math.max(n[0],n[1])-i+t;return new Hn(r,i,o,a)},e}(B$),V$=j$,Q$=function(t){function e(e,n,r,i,o){var a=t.call(this,e,n,r)||this;return a.index=0,a.type=i||"value",a.position=o||"bottom",a}return Q(e,t),e.prototype.isHorizontal=function(){var t=this.position;return"top"===t||"bottom"===t},e.prototype.getGlobalExtent=function(t){var e=this.getExtent();return e[0]=this.toGlobalCoord(e[0]),e[1]=this.toGlobalCoord(e[1]),t&&e[0]>e[1]&&e.reverse(),e},e.prototype.pointToData=function(t,e){return this.coordToData(this.toLocalCoord(t["x"===this.dim?0:1]),e)},e.prototype.setCategorySortInfo=function(t){if("category"!==this.type)return!1;this.model.option.categorySortInfo=t,this.scale.setSortInfo(t)},e}(kC),H$=Q$;function Z$(t,e,n){n=n||{};var r=t.coordinateSystem,i=e.axis,o={},a=i.getAxesOnZeroOf()[0],s=i.position,l=a?"onZero":s,u=i.dim,c=r.getRect(),h=[c.x,c.x+c.width,c.y,c.y+c.height],d={left:0,right:1,top:0,bottom:1,onZero:2},p=e.get("offset")||0,f="x"===u?[h[2]-p,h[3]+p]:[h[0]-p,h[1]+p];if(a){var g=a.toGlobalCoord(a.dataToCoord(0));f[d.onZero]=Math.max(Math.min(g,f[1]),f[0])}o.position=["y"===u?f[d[l]]:h[0],"x"===u?f[d[l]]:h[3]],o.rotation=Math.PI/2*("x"===u?0:1);var v={top:-1,bottom:1,left:-1,right:1};o.labelDirection=o.tickDirection=o.nameDirection=v[s],o.labelOffset=a?f[d[s]]-f[d.onZero]:0,e.get(["axisTick","inside"])&&(o.tickDirection=-o.tickDirection),Kt(n.labelInside,e.get(["axisLabel","inside"]))&&(o.labelDirection=-o.labelDirection);var m=e.get(["axisLabel","rotate"]);return o.labelRotate="top"===l?-m:m,o.z2=1,o}function G$(t){return"cartesian2d"===t.get("coordinateSystem")}function X$(t){var e={xAxisModel:null,yAxisModel:null};return Pt(e,(function(n,r){var i=r.replace(/Model$/,""),o=t.getReferringComponents(i,tl).models[0];e[r]=o})),e}var U$=Math.log;function Y$(t,e,n){var r=$A.prototype,i=r.getTicks.call(n),o=r.getTicks.call(n,!0),a=i.length-1,s=r.getInterval.call(n),l=Sk(t,e),u=l.extent,c=l.fixMin,h=l.fixMax;if("log"===t.type){var d=U$(t.base);u=[U$(u[0])/d,U$(u[1])/d]}t.setExtent(u[0],u[1]),t.calcNiceExtent({splitNumber:a,fixMin:c,fixMax:h});var p=r.getExtent.call(t);c&&(u[0]=p[0]),h&&(u[1]=p[1]);var f=r.getInterval.call(t),g=u[0],v=u[1];if(c&&h)f=(v-g)/a;else if(c){v=u[0]+f*a;while(v<u[1]&&isFinite(v)&&isFinite(u[1]))f=xA(f),v=u[0]+f*a}else if(h){g=u[1]-f*a;while(g>u[0]&&isFinite(g)&&isFinite(u[0]))f=xA(f),g=u[1]-f*a}else{var m=t.getTicks().length-1;m>a&&(f=xA(f));var y=f*a;v=Math.ceil(u[1]/f)*f,g=ns(v-y),g<0&&u[0]>=0?(g=0,v=ns(y)):v>0&&u[1]<=0&&(v=0,g=-ns(y))}var b=(i[0].value-o[0].value)/s,_=(i[a].value-o[a].value)/s;r.setExtent.call(t,g+f*b,v+f*_),r.setInterval.call(t,f),(b||_)&&r.setNiceExtent.call(t,g+f,v-f)}var q$=function(){function t(t,e,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=F$,this._initCartesian(t,e,n),this.model=t}return t.prototype.getRect=function(){return this._rect},t.prototype.update=function(t,e){var n=this._axesMap;function r(t){var e,n=Dt(t),r=n.length;if(r){for(var i=[],o=r-1;o>=0;o--){var a=+n[o],s=t[a],l=s.model,u=s.scale;bA(u)&&l.get("alignTicks")&&null==l.get("interval")?i.push(s):(kk(u,l),bA(u)&&(e=s))}i.length&&(e||(e=i.pop(),kk(e.scale,e.model)),Pt(i,(function(t){Y$(t.scale,t.model,e.scale)})))}}this._updateScale(t,this.model),r(n.x),r(n.y);var i={};Pt(n.x,(function(t){J$(n,"y",t,i)})),Pt(n.y,(function(t){J$(n,"x",t,i)})),this.resize(this.model,e)},t.prototype.resize=function(t,e,n){var r=t.getBoxLayoutParams(),i=!n&&t.get("containLabel"),o=af(r,{width:e.getWidth(),height:e.getHeight()});this._rect=o;var a=this._axesList;function s(){Pt(a,(function(t){var e=t.isHorizontal(),n=e?[0,o.width]:[0,o.height],r=t.inverse?1:0;t.setExtent(n[r],n[1-r]),eE(t,e?o.x:o.y)}))}s(),i&&(Pt(a,(function(t){if(!t.model.get(["axisLabel","inside"])){var e=Ik(t);if(e){var n=t.isHorizontal()?"height":"width",r=t.model.get(["axisLabel","margin"]);o[n]-=e[n]+r,"top"===t.position?o.y+=e.height+r:"left"===t.position&&(o.x+=e.width+r)}}})),s()),Pt(this._coordsList,(function(t){t.calcAffineTransform()}))},t.prototype.getAxis=function(t,e){var n=this._axesMap[t];if(null!=n)return n[e||0]},t.prototype.getAxes=function(){return this._axesList.slice()},t.prototype.getCartesian=function(t,e){if(null!=t&&null!=e){var n="x"+t+"y"+e;return this._coordsMap[n]}Qt(t)&&(e=t.yAxisIndex,t=t.xAxisIndex);for(var r=0,i=this._coordsList;r<i.length;r++)if(i[r].getAxis("x").index===t||i[r].getAxis("y").index===e)return i[r]},t.prototype.getCartesians=function(){return this._coordsList.slice()},t.prototype.convertToPixel=function(t,e,n){var r=this._findConvertTarget(e);return r.cartesian?r.cartesian.dataToPoint(n):r.axis?r.axis.toGlobalCoord(r.axis.dataToCoord(n)):null},t.prototype.convertFromPixel=function(t,e,n){var r=this._findConvertTarget(e);return r.cartesian?r.cartesian.pointToData(n):r.axis?r.axis.coordToData(r.axis.toLocalCoord(n)):null},t.prototype._findConvertTarget=function(t){var e,n,r=t.seriesModel,i=t.xAxisModel||r&&r.getReferringComponents("xAxis",tl).models[0],o=t.yAxisModel||r&&r.getReferringComponents("yAxis",tl).models[0],a=t.gridModel,s=this._coordsList;if(r)e=r.coordinateSystem,kt(s,e)<0&&(e=null);else if(i&&o)e=this.getCartesian(i.componentIndex,o.componentIndex);else if(i)n=this.getAxis("x",i.componentIndex);else if(o)n=this.getAxis("y",o.componentIndex);else if(a){var l=a.coordinateSystem;l===this&&(e=this._coordsList[0])}return{cartesian:e,axis:n}},t.prototype.containPoint=function(t){var e=this._coordsList[0];if(e)return e.containPoint(t)},t.prototype._initCartesian=function(t,e,n){var r=this,i=this,o={left:!1,right:!1,top:!1,bottom:!1},a={x:{},y:{}},s={x:0,y:0};if(e.eachComponent("xAxis",l("x"),this),e.eachComponent("yAxis",l("y"),this),!s.x||!s.y)return this._axesMap={},void(this._axesList=[]);function l(e){return function(n,r){if(K$(n,t)){var l=n.get("position");"x"===e?"top"!==l&&"bottom"!==l&&(l=o.bottom?"top":"bottom"):"left"!==l&&"right"!==l&&(l=o.left?"right":"left"),o[l]=!0;var u=new H$(e,Ck(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=i,u.index=r,i._axesList.push(u),a[e][r]=u,s[e]++}}}this._axesMap=a,Pt(a.x,(function(e,n){Pt(a.y,(function(i,o){var a="x"+n+"y"+o,s=new V$(a);s.master=r,s.model=t,r._coordsMap[a]=s,r._coordsList.push(s),s.addAxis(e),s.addAxis(i)}))}))},t.prototype._updateScale=function(t,e){function n(t,e){Pt(Dk(t,e.dim),(function(n){e.scale.unionExtentFromData(t,n)}))}Pt(this._axesList,(function(t){if(t.scale.setExtent(1/0,-1/0),"category"===t.type){var e=t.model.get("categorySortInfo");t.scale.setSortInfo(e)}})),t.eachSeries((function(t){if(G$(t)){var r=X$(t),i=r.xAxisModel,o=r.yAxisModel;if(!K$(i,e)||!K$(o,e))return;var a=this.getCartesian(i.componentIndex,o.componentIndex),s=t.getData(),l=a.getAxis("x"),u=a.getAxis("y");n(s,l),n(s,u)}}),this)},t.prototype.getTooltipAxes=function(t){var e=[],n=[];return Pt(this.getCartesians(),(function(r){var i=null!=t&&"auto"!==t?r.getAxis(t):r.getBaseAxis(),o=r.getOtherAxis(i);kt(e,i)<0&&e.push(i),kt(n,o)<0&&n.push(o)})),{baseAxes:e,otherAxes:n}},t.create=function(e,n){var r=[];return e.eachComponent("grid",(function(i,o){var a=new t(i,e,n);a.name="grid_"+o,a.resize(i,n,!0),i.coordinateSystem=a,r.push(a)})),e.eachSeries((function(t){if(G$(t)){var e=X$(t),n=e.xAxisModel,r=e.yAxisModel,i=n.getCoordSysModel();0;var o=i.coordinateSystem;t.coordinateSystem=o.getCartesian(n.componentIndex,r.componentIndex)}})),r},t.dimensions=F$,t}();function K$(t,e){return t.getCoordSysModel()===e}function J$(t,e,n,r){n.getAxesOnZeroOf=function(){return i?[i]:[]};var i,o=t[e],a=n.model,s=a.get(["axisLine","onZero"]),l=a.get(["axisLine","onZeroAxisIndex"]);if(s){if(null!=l)tE(o[l])&&(i=o[l]);else for(var u in o)if(o.hasOwnProperty(u)&&tE(o[u])&&!r[c(o[u])]){i=o[u];break}i&&(r[c(i)]=!0)}function c(t){return t.dim+"_"+t.index}}function tE(t){return t&&"category"!==t.type&&"time"!==t.type&&Mk(t)}function eE(t,e){var n=t.getExtent(),r=n[0]+n[1];t.toGlobalCoord="x"===t.dim?function(t){return t+e}:function(t){return r-t+e},t.toLocalCoord="x"===t.dim?function(t){return t-e}:function(t){return r-t+e}}var nE=q$,rE=Math.PI,iE=function(){function t(t,e){this.group=new La,this.opt=e,this.axisModel=t,St(e,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var n=new La({x:e.position[0],y:e.position[1],rotation:e.rotation});n.updateTransform(),this._transformGroup=n}return t.prototype.hasBuilder=function(t){return!!oE[t]},t.prototype.add=function(t){oE[t](this.opt,this.axisModel,this.group,this._transformGroup)},t.prototype.getGroup=function(){return this.group},t.innerTextLayout=function(t,e,n){var r,i,o=hs(e-t);return ds(o)?(i=n>0?"top":"bottom",r="center"):ds(o-rE)?(i=n>0?"bottom":"top",r="center"):(i="middle",r=o>0&&o<rE?n>0?"right":"left":n>0?"left":"right"),{rotation:o,textAlign:r,textVerticalAlign:i}},t.makeAxisEventDataBase=function(t){var e={componentType:t.mainType,componentIndex:t.componentIndex};return e[t.mainType+"Index"]=t.componentIndex,e},t.isLabelSilent=function(t){var e=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||e&&e.show)},t}(),oE={axisLine:function(t,e,n,r){var i=e.get(["axisLine","show"]);if("auto"===i&&t.handleAutoShown&&(i=t.handleAutoShown("axisLine")),i){var o=e.axis.getExtent(),a=r.transform,s=[o[0],0],l=[o[1],0],u=s[0]>l[0];a&&(We(s,s,a),We(l,l,a));var c=Ot({lineCap:"round"},e.getModel(["axisLine","lineStyle"]).getLineStyle()),h=new tb({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:c,strokeContainThreshold:t.strokeContainThreshold||5,silent:!0,z2:1});Bb(h.shape,h.style.lineWidth),h.anid="line",n.add(h);var d=e.get(["axisLine","symbol"]);if(null!=d){var p=e.get(["axisLine","symbolSize"]);Wt(d)&&(d=[d,d]),(Wt(p)||Vt(p))&&(p=[p,p]);var f=Mx(e.get(["axisLine","symbolOffset"])||0,p),g=p[0],v=p[1];Pt([{rotate:t.rotation+Math.PI/2,offset:f[0],r:0},{rotate:t.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(e,r){if("none"!==d[r]&&null!=d[r]){var i=kx(d[r],-g/2,-v/2,g,v,c.stroke,!0),o=e.r+e.offset,a=u?l:s;i.attr({rotation:e.rotate,x:a[0]+o*Math.cos(t.rotation),y:a[1]-o*Math.sin(t.rotation),silent:!0,z2:11}),n.add(i)}}))}}},axisTickLabel:function(t,e,n,r){var i=dE(n,r,e,t),o=fE(n,r,e,t);if(sE(e,o,i),pE(n,r,e,t.tickDirection),e.get(["axisLabel","hideOverlap"])){var a=eM(It(o,(function(t){return{label:t,priority:t.z2,defaultAttr:{ignore:t.ignore}}})));oM(a)}},axisName:function(t,e,n,r){var i=Kt(t.axisName,e.get("name"));if(i){var o,a,s=e.get("nameLocation"),l=t.nameDirection,u=e.getModel("nameTextStyle"),c=e.get("nameGap")||0,h=e.axis.getExtent(),d=h[0]>h[1]?-1:1,p=["start"===s?h[0]-d*c:"end"===s?h[1]+d*c:(h[0]+h[1])/2,cE(s)?t.labelOffset+l*c:0],f=e.get("nameRotate");null!=f&&(f=f*rE/180),cE(s)?o=iE.innerTextLayout(t.rotation,null!=f?f:t.rotation,l):(o=aE(t.rotation,s,f||0,h),a=t.axisNameAvailableWidth,null!=a&&(a=Math.abs(a/Math.sin(o.rotation)),!isFinite(a)&&(a=null)));var g=u.getFont(),v=e.get("nameTruncate",!0)||{},m=v.ellipsis,y=Kt(t.nameTruncateMaxWidth,v.maxWidth,a),b=new Vc({x:p[0],y:p[1],rotation:o.rotation,silent:iE.isLabelSilent(e),style:_d(u,{text:i,font:g,overflow:"truncate",width:y,ellipsis:m,fill:u.getTextColor()||e.get(["axisLine","lineStyle","color"]),align:u.get("align")||o.textAlign,verticalAlign:u.get("verticalAlign")||o.textVerticalAlign}),z2:1});if(e_({el:b,componentModel:e,itemName:i}),b.__fullText=i,b.anid="name",e.get("triggerEvent")){var _=iE.makeAxisEventDataBase(e);_.targetType="axisName",_.name=i,Qc(b).eventData=_}r.add(b),b.updateTransform(),n.add(b),b.decomposeTransform()}}};function aE(t,e,n,r){var i,o,a=hs(n-t),s=r[0]>r[1],l="start"===e&&!s||"start"!==e&&s;return ds(a-rE/2)?(o=l?"bottom":"top",i="center"):ds(a-1.5*rE)?(o=l?"top":"bottom",i="center"):(o="middle",i=a<1.5*rE&&a>rE/2?l?"left":"right":l?"right":"left"),{rotation:a,textAlign:i,textVerticalAlign:o}}function sE(t,e,n){if(!Rk(t.axis)){var r=t.get(["axisLabel","showMinLabel"]),i=t.get(["axisLabel","showMaxLabel"]);e=e||[],n=n||[];var o=e[0],a=e[1],s=e[e.length-1],l=e[e.length-2],u=n[0],c=n[1],h=n[n.length-1],d=n[n.length-2];!1===r?(lE(o),lE(u)):uE(o,a)&&(r?(lE(a),lE(c)):(lE(o),lE(u))),!1===i?(lE(s),lE(h)):uE(l,s)&&(i?(lE(l),lE(d)):(lE(s),lE(h)))}}function lE(t){t&&(t.ignore=!0)}function uE(t,e){var n=t&&t.getBoundingRect().clone(),r=e&&e.getBoundingRect().clone();if(n&&r){var i=kn([]);return Pn(i,i,-t.rotation),n.applyTransform(Mn([],i,t.getLocalTransform())),r.applyTransform(Mn([],i,e.getLocalTransform())),n.intersect(r)}}function cE(t){return"middle"===t||"center"===t}function hE(t,e,n,r,i){for(var o=[],a=[],s=[],l=0;l<t.length;l++){var u=t[l].coord;a[0]=u,a[1]=0,s[0]=u,s[1]=n,e&&(We(a,a,e),We(s,s,e));var c=new tb({shape:{x1:a[0],y1:a[1],x2:s[0],y2:s[1]},style:r,z2:2,autoBatch:!0,silent:!0});Bb(c.shape,c.style.lineWidth),c.anid=i+"_"+t[l].tickValue,o.push(c)}return o}function dE(t,e,n,r){var i=n.axis,o=n.getModel("axisTick"),a=o.get("show");if("auto"===a&&r.handleAutoShown&&(a=r.handleAutoShown("axisTick")),a&&!i.scale.isBlank()){for(var s=o.getModel("lineStyle"),l=r.tickDirection*o.get("length"),u=i.getTicksCoords(),c=hE(u,e.transform,l,St(s.getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])}),"ticks"),h=0;h<c.length;h++)t.add(c[h]);return c}}function pE(t,e,n,r){var i=n.axis,o=n.getModel("minorTick");if(o.get("show")&&!i.scale.isBlank()){var a=i.getMinorTicksCoords();if(a.length)for(var s=o.getModel("lineStyle"),l=r*o.get("length"),u=St(s.getLineStyle(),St(n.getModel("axisTick").getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])})),c=0;c<a.length;c++)for(var h=hE(a[c],e.transform,l,u,"minorticks_"+c),d=0;d<h.length;d++)t.add(h[d])}}function fE(t,e,n,r){var i=n.axis,o=Kt(r.axisLabelShow,n.get(["axisLabel","show"]));if(o&&!i.scale.isBlank()){var a=n.getModel("axisLabel"),s=a.get("margin"),l=i.getViewLabels(),u=(Kt(r.labelRotate,a.get("rotate"))||0)*rE/180,c=iE.innerTextLayout(r.rotation,u,r.labelDirection),h=n.getCategories&&n.getCategories(!0),d=[],p=iE.isLabelSilent(n),f=n.get("triggerEvent");return Pt(l,(function(o,u){var g="ordinal"===i.scale.type?i.scale.getRawOrdinalNumber(o.tickValue):o.tickValue,v=o.formattedLabel,m=o.rawLabel,y=a;if(h&&h[g]){var b=h[g];Qt(b)&&b.textStyle&&(y=new Qd(b.textStyle,a,n.ecModel))}var _=y.getTextColor()||n.get(["axisLine","lineStyle","color"]),x=i.dataToCoord(g),w=y.getShallow("align",!0)||c.textAlign,O=Jt(y.getShallow("alignMinLabel",!0),w),S=Jt(y.getShallow("alignMaxLabel",!0),w),A=y.getShallow("verticalAlign",!0)||y.getShallow("baseline",!0)||c.textVerticalAlign,k=Jt(y.getShallow("verticalAlignMinLabel",!0),A),C=Jt(y.getShallow("verticalAlignMaxLabel",!0),A),M=new Vc({x:x,y:r.labelOffset+r.labelDirection*s,rotation:c.rotation,silent:p,z2:10+(o.level||0),style:_d(y,{text:v,align:0===u?O:u===l.length-1?S:w,verticalAlign:0===u?k:u===l.length-1?C:A,fill:Ft(_)?_("category"===i.type?m:"value"===i.type?g+"":g,u):_})});if(M.anid="label_"+g,f){var T=iE.makeAxisEventDataBase(n);T.targetType="axisLabel",T.value=m,T.tickIndex=u,"category"===i.type&&(T.dataIndex=g),Qc(M).eventData=T}e.add(M),M.updateTransform(),d.push(M),t.add(M),M.decomposeTransform()})),d}}var gE=iE;function vE(t,e){var n={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return mE(n,t,e),n.seriesInvolved&&bE(n,t),n}function mE(t,e,n){var r=e.getComponent("tooltip"),i=e.getComponent("axisPointer"),o=i.get("link",!0)||[],a=[];Pt(n.getCoordinateSystems(),(function(n){if(n.axisPointerEnabled){var s=kE(n.model),l=t.coordSysAxesInfo[s]={};t.coordSysMap[s]=n;var u=n.model,c=u.getModel("tooltip",r);if(Pt(n.getAxes(),zt(f,!1,null)),n.getTooltipAxes&&r&&c.get("show")){var h="axis"===c.get("trigger"),d="cross"===c.get(["axisPointer","type"]),p=n.getTooltipAxes(c.get(["axisPointer","axis"]));(h||d)&&Pt(p.baseAxes,zt(f,!d||"cross",h)),d&&Pt(p.otherAxes,zt(f,"cross",!1))}}function f(r,s,u){var h=u.model.getModel("axisPointer",i),d=h.get("show");if(d&&("auto"!==d||r||AE(h))){null==s&&(s=h.get("triggerTooltip")),h=r?yE(u,c,i,e,r,s):h;var p=h.get("snap"),f=h.get("triggerEmphasis"),g=kE(u.model),v=s||p||"category"===u.type,m=t.axesInfo[g]={key:g,axis:u,coordSys:n,axisPointerModel:h,triggerTooltip:s,triggerEmphasis:f,involveSeries:v,snap:p,useHandle:AE(h),seriesModels:[],linkGroup:null};l[g]=m,t.seriesInvolved=t.seriesInvolved||v;var y=_E(o,u);if(null!=y){var b=a[y]||(a[y]={axesInfo:{}});b.axesInfo[g]=m,b.mapper=o[y].mapper,m.linkGroup=b}}}}))}function yE(t,e,n,r,i,o){var a=e.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],l={};Pt(s,(function(t){l[t]=_t(a.get(t))})),l.snap="category"!==t.type&&!!o,"cross"===a.get("type")&&(l.type="line");var u=l.label||(l.label={});if(null==u.show&&(u.show=!1),"cross"===i){var c=a.get(["label","show"]);if(u.show=null==c||c,!o){var h=l.lineStyle=a.get("crossStyle");h&&St(u,h.textStyle)}}return t.model.getModel("axisPointer",new Qd(l,n,r))}function bE(t,e){e.eachSeries((function(e){var n=e.coordinateSystem,r=e.get(["tooltip","trigger"],!0),i=e.get(["tooltip","show"],!0);n&&"none"!==r&&!1!==r&&"item"!==r&&!1!==i&&!1!==e.get(["axisPointer","show"],!0)&&Pt(t.coordSysAxesInfo[kE(n.model)],(function(t){var r=t.axis;n.getAxis(r.dim)===r&&(t.seriesModels.push(e),null==t.seriesDataCount&&(t.seriesDataCount=0),t.seriesDataCount+=e.getData().count())}))}))}function _E(t,e){for(var n=e.model,r=e.dim,i=0;i<t.length;i++){var o=t[i]||{};if(xE(o[r+"AxisId"],n.id)||xE(o[r+"AxisIndex"],n.componentIndex)||xE(o[r+"AxisName"],n.name))return i}}function xE(t,e){return"all"===t||Bt(t)&&kt(t,e)>=0||t===e}function wE(t){var e=OE(t);if(e){var n=e.axisPointerModel,r=e.axis.scale,i=n.option,o=n.get("status"),a=n.get("value");null!=a&&(a=r.parse(a));var s=AE(n);null==o&&(i.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]),i.value=a,s&&(i.status=e.axis.scale.isBlank()?"hide":"show")}}function OE(t){var e=(t.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[kE(t)]}function SE(t){var e=OE(t);return e&&e.axisPointerModel}function AE(t){return!!t.get(["handle","show"])}function kE(t){return t.type+"||"+t.id}var CE={},ME=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Q(e,t),e.prototype.render=function(e,n,r,i){this.axisPointerClass&&wE(e),t.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(e,r,!0)},e.prototype.updateAxisPointer=function(t,e,n,r){this._doUpdateAxisPointerClass(t,n,!1)},e.prototype.remove=function(t,e){var n=this._axisPointer;n&&n.remove(e)},e.prototype.dispose=function(e,n){this._disposeAxisPointer(n),t.prototype.dispose.apply(this,arguments)},e.prototype._doUpdateAxisPointerClass=function(t,n,r){var i=e.getAxisPointerClass(this.axisPointerClass);if(i){var o=SE(t);o?(this._axisPointer||(this._axisPointer=new i)).render(t,o,n,r):this._disposeAxisPointer(n)}},e.prototype._disposeAxisPointer=function(t){this._axisPointer&&this._axisPointer.dispose(t),this._axisPointer=null},e.registerAxisPointerClass=function(t,e){CE[t]=e},e.getAxisPointerClass=function(t){return t&&CE[t]},e.type="axis",e}(Hm),TE=ME,PE=Ys();function IE(t,e,n,r){var i=n.axis;if(!i.scale.isBlank()){var o=n.getModel("splitArea"),a=o.getModel("areaStyle"),s=a.get("color"),l=r.coordinateSystem.getRect(),u=i.getTicksCoords({tickModel:o,clamp:!0});if(u.length){var c=s.length,h=PE(t).splitAreaColors,d=de(),p=0;if(h)for(var f=0;f<u.length;f++){var g=h.get(u[f].tickValue);if(null!=g){p=(g+(c-1)*f)%c;break}}var v=i.toGlobalCoord(u[0].coord),m=a.getAreaStyle();s=Bt(s)?s:[s];for(f=1;f<u.length;f++){var y=i.toGlobalCoord(u[f].coord),b=void 0,_=void 0,x=void 0,w=void 0;i.isHorizontal()?(b=v,_=l.y,x=y-b,w=l.height,v=b+x):(b=l.x,_=v,x=l.width,w=y-_,v=_+w);var O=u[f-1].tickValue;null!=O&&d.set(O,p),e.add(new Ac({anid:null!=O?"area_"+O:null,shape:{x:b,y:_,width:x,height:w},style:St({fill:s[p]},m),autoBatch:!0,silent:!0})),p=(p+1)%c}PE(t).splitAreaColors=d}}}function $E(t){PE(t).splitAreaColors=null}var EE=["axisLine","axisTickLabel","axisName"],RE=["splitArea","splitLine","minorSplitLine"],DE=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.axisPointerClass="CartesianAxisPointer",n}return Q(e,t),e.prototype.render=function(e,n,r,i){this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new La,this.group.add(this._axisGroup),e.get("show")){var a=e.getCoordSysModel(),s=Z$(a,e),l=new gE(e,Ot({handleAutoShown:function(t){for(var n=a.coordinateSystem.getCartesians(),r=0;r<n.length;r++)if(bA(n[r].getOtherAxis(e.axis).scale))return!0;return!1}},s));Pt(EE,l.add,l),this._axisGroup.add(l.getGroup()),Pt(RE,(function(t){e.get([t,"show"])&&LE[t](this,this._axisGroup,e,a)}),this);var u=i&&"changeAxisOrder"===i.type&&i.isInitSort;u||Gb(o,this._axisGroup,e),t.prototype.render.call(this,e,n,r,i)}},e.prototype.remove=function(){$E(this)},e.type="cartesianAxis",e}(TE),LE={splitLine:function(t,e,n,r){var i=n.axis;if(!i.scale.isBlank()){var o=n.getModel("splitLine"),a=o.getModel("lineStyle"),s=a.get("color");s=Bt(s)?s:[s];for(var l=r.coordinateSystem.getRect(),u=i.isHorizontal(),c=0,h=i.getTicksCoords({tickModel:o}),d=[],p=[],f=a.getLineStyle(),g=0;g<h.length;g++){var v=i.toGlobalCoord(h[g].coord);u?(d[0]=v,d[1]=l.y,p[0]=v,p[1]=l.y+l.height):(d[0]=l.x,d[1]=v,p[0]=l.x+l.width,p[1]=v);var m=c++%s.length,y=h[g].tickValue,b=new tb({anid:null!=y?"line_"+h[g].tickValue:null,autoBatch:!0,shape:{x1:d[0],y1:d[1],x2:p[0],y2:p[1]},style:St({stroke:s[m]},f),silent:!0});Bb(b.shape,f.lineWidth),e.add(b)}}},minorSplitLine:function(t,e,n,r){var i=n.axis,o=n.getModel("minorSplitLine"),a=o.getModel("lineStyle"),s=r.coordinateSystem.getRect(),l=i.isHorizontal(),u=i.getMinorTicksCoords();if(u.length)for(var c=[],h=[],d=a.getLineStyle(),p=0;p<u.length;p++)for(var f=0;f<u[p].length;f++){var g=i.toGlobalCoord(u[p][f].coord);l?(c[0]=g,c[1]=s.y,h[0]=g,h[1]=s.y+s.height):(c[0]=s.x,c[1]=g,h[0]=s.x+s.width,h[1]=g);var v=new tb({anid:"minor_line_"+u[p][f].tickValue,autoBatch:!0,shape:{x1:c[0],y1:c[1],x2:h[0],y2:h[1]},style:d,silent:!0});Bb(v.shape,d.lineWidth),e.add(v)}},splitArea:function(t,e,n,r){IE(t,e,n,r)}},NE=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Q(e,t),e.type="xAxis",e}(DE),zE=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=NE.type,e}return Q(e,t),e.type="yAxis",e}(DE),BE=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="grid",e}return Q(e,t),e.prototype.render=function(t,e){this.group.removeAll(),t.get("show")&&this.group.add(new Ac({shape:t.coordinateSystem.getRect(),style:St({fill:t.get("backgroundColor")},t.getItemStyle()),silent:!0,z2:-1}))},e.type="grid",e}(Hm),FE={offset:0};function WE(t){t.registerComponentView(BE),t.registerComponentModel(C$),t.registerCoordinateSystem("cartesian2d",nE),L$(t,"x",M$,FE),L$(t,"y",M$,FE),t.registerComponentView(NE),t.registerComponentView(zE),t.registerPreprocessor((function(t){t.xAxis&&t.yAxis&&!t.grid&&(t.grid={})}))}function jE(t){pS(WE),t.registerSeriesModel(y$),t.registerChartView(A$),t.registerLayout(iI("scatter"))}function VE(t){t.eachSeriesByType("radar",(function(t){var e=t.getData(),n=[],r=t.coordinateSystem;if(r){var i=r.getIndicatorAxes();Pt(i,(function(t,o){e.each(e.mapDimension(i[o].dim),(function(t,e){n[e]=n[e]||[];var i=r.dataToPoint(t,o);n[e][o]=QE(i)?i:HE(r)}))})),e.each((function(t){var i=Rt(n[t],(function(t){return QE(t)}))||HE(r);n[t].push(i.slice()),e.setItemLayout(t,n[t])}))}}))}function QE(t){return!isNaN(t[0])&&!isNaN(t[1])}function HE(t){return[t.cx,t.cy]}function ZE(t){var e=t.polar;if(e){Bt(e)||(e=[e]);var n=[];Pt(e,(function(e,r){e.indicator?(e.type&&!e.shape&&(e.shape=e.type),t.radar=t.radar||[],Bt(t.radar)||(t.radar=[t.radar]),t.radar.push(e)):n.push(e)})),t.polar=n}Pt(t.series,(function(t){t&&"radar"===t.type&&t.polarIndex&&(t.radarIndex=t.polarIndex)}))}var GE=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Q(e,t),e.prototype.render=function(t,e,n){var r=t.coordinateSystem,i=this.group,o=t.getData(),a=this._data;function s(t,e){var n=t.getItemVisual(e,"symbol")||"circle";if("none"!==n){var r=Cx(t.getItemVisual(e,"symbolSize")),i=kx(n,-1,-1,2,2),o=t.getItemVisual(e,"symbolRotate")||0;return i.attr({style:{strokeNoScale:!0},z2:100,scaleX:r[0]/2,scaleY:r[1]/2,rotation:o*Math.PI/180||0}),i}}function u(e,n,r,i,o,a){r.removeAll();for(var u=0;u<n.length-1;u++){var c=s(i,o);c&&(c.__dimIdx=u,e[u]?(c.setPosition(e[u]),l[a?"initProps":"updateProps"](c,{x:n[u][0],y:n[u][1]},t,o)):c.setPosition(n[u]),r.add(c))}}function c(t){return It(t,(function(t){return[r.cx,r.cy]}))}o.diff(a).add((function(e){var n=o.getItemLayout(e);if(n){var r=new Gy,i=new Yy,a={shape:{points:n}};r.shape.points=c(n),i.shape.points=c(n),ld(r,a,t,e),ld(i,a,t,e);var s=new La,l=new La;s.add(i),s.add(r),s.add(l),u(i.shape.points,n,l,o,e,!0),o.setItemGraphicEl(e,s)}})).update((function(e,n){var r=a.getItemGraphicEl(n),i=r.childAt(0),s=r.childAt(1),l=r.childAt(2),c={shape:{points:o.getItemLayout(e)}};c.shape.points&&(u(i.shape.points,c.shape.points,l,o,e,!1),pd(s),pd(i),sd(i,c,t),sd(s,c,t),o.setItemGraphicEl(e,r))})).remove((function(t){i.remove(a.getItemGraphicEl(t))})).execute(),o.eachItemGraphicEl((function(t,e){var n=o.getItemModel(e),r=t.childAt(0),a=t.childAt(1),s=t.childAt(2),l=o.getItemVisual(e,"style"),u=l.fill;i.add(t),r.useStyle(St(n.getModel("lineStyle").getLineStyle(),{fill:"none",stroke:u})),Yh(r,n,"lineStyle"),Yh(a,n,"areaStyle");var c=n.getModel("areaStyle"),h=c.isEmpty()&&c.parentModel.isEmpty();a.ignore=h,Pt(["emphasis","select","blur"],(function(t){var e=n.getModel([t,"areaStyle"]),r=e.isEmpty()&&e.parentModel.isEmpty();a.ensureState(t).ignore=r&&h})),a.useStyle(St(c.getAreaStyle(),{fill:u,opacity:.7,decal:l.decal}));var d=n.getModel("emphasis"),p=d.getModel("itemStyle").getItemStyle();s.eachChild((function(t){if(t instanceof vc){var r=t.style;t.useStyle(Ot({image:r.image,x:r.x,y:r.y,width:r.width,height:r.height},l))}else t.useStyle(l),t.setColor(u),t.style.strokeNoScale=!0;var i=t.ensureState("emphasis");i.style=_t(p);var a=o.getStore().get(o.getDimensionIndex(t.__dimIdx),e);(null==a||isNaN(a))&&(a=""),yd(t,bd(n),{labelFetcher:o.hostModel,labelDataIndex:e,labelDimIndex:t.__dimIdx,defaultText:a,inheritColor:u,defaultOpacity:l.opacity})})),Zh(t,d.get("focus"),d.get("blurScope"),d.get("disabled"))})),this._data=o},e.prototype.remove=function(){this.group.removeAll(),this._data=null},e.type="radar",e}(d_),XE=GE,UE=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n}return Q(e,t),e.prototype.init=function(e){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new h$(Nt(this.getData,this),Nt(this.getRawData,this))},e.prototype.getInitialData=function(t,e){return u$(this,{generateCoord:"indicator_",generateCoordCount:1/0})},e.prototype.formatTooltip=function(t,e,n){var r=this.getData(),i=this.coordinateSystem,o=i.getIndicatorAxes(),a=this.getData().getName(t),s=""===a?this.name:a,l=km(this,t);return pm("section",{header:s,sortBlocks:!0,blocks:It(o,(function(e){var n=r.get(r.mapDimension(e.dim),t);return pm("nameValue",{markerType:"subItem",markerColor:l,name:e.name,value:n,sortParam:n})}))})},e.prototype.getTooltipPosition=function(t){if(null!=t)for(var e=this.getData(),n=this.coordinateSystem,r=e.getValues(It(n.dimensions,(function(t){return e.mapDimension(t)})),t),i=0,o=r.length;i<o;i++)if(!isNaN(r[i])){var a=n.getIndicatorAxes();return n.coordToPoint(a[i].dataToCoord(r[i]),i)}},e.type="series.radar",e.dependencies=["radar"],e.defaultOption={z:2,colorBy:"data",coordinateSystem:"radar",legendHoverLink:!0,radarIndex:0,lineStyle:{width:2,type:"solid",join:"round"},label:{position:"top"},symbolSize:8},e}(Vm),YE=UE,qE=R$.value;function KE(t,e){return St({show:e},t)}var JE=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Q(e,t),e.prototype.optionUpdated=function(){var t=this.get("boundaryGap"),e=this.get("splitNumber"),n=this.get("scale"),r=this.get("axisLine"),i=this.get("axisTick"),o=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"),h=It(this.get("indicator")||[],(function(h){null!=h.max&&h.max>0&&!h.min?h.min=0:null!=h.min&&h.min<0&&!h.max&&(h.max=0);var d=a;null!=h.color&&(d=St({color:h.color},a));var p=xt(_t(h),{boundaryGap:t,splitNumber:e,scale:n,axisLine:r,axisTick:i,axisLabel:o,name:h.text,showName:s,nameLocation:"end",nameGap:u,nameTextStyle:d,triggerEvent:c},!1);if(Wt(l)){var f=p.name;p.name=l.replace("{value}",null!=f?f:"")}else Ft(l)&&(p.name=l(p.name,p));var g=new Qd(p,null,this.ecModel);return Mt(g,Nk.prototype),g.mainType="radar",g.componentIndex=this.componentIndex,g}),this);this._indicatorModels=h},e.prototype.getIndicatorModels=function(){return this._indicatorModels},e.type="radar",e.defaultOption={z:0,center:["50%","50%"],radius:"75%",startAngle:90,axisName:{show:!0},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:"polygon",axisLine:xt({lineStyle:{color:"#bbb"}},qE.axisLine),axisLabel:KE(qE.axisLabel,!1),axisTick:KE(qE.axisTick,!1),splitLine:KE(qE.splitLine,!0),splitArea:KE(qE.splitArea,!0),indicator:[]},e}(vf),tR=JE,eR=["axisLine","axisTickLabel","axisName"],nR=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Q(e,t),e.prototype.render=function(t,e,n){var r=this.group;r.removeAll(),this._buildAxes(t),this._buildSplitLineAndArea(t)},e.prototype._buildAxes=function(t){var e=t.coordinateSystem,n=e.getIndicatorAxes(),r=It(n,(function(t){var n=t.model.get("showName")?t.name:"",r=new gE(t.model,{axisName:n,position:[e.cx,e.cy],rotation:t.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return r}));Pt(r,(function(t){Pt(eR,t.add,t),this.group.add(t.getGroup())}),this)},e.prototype._buildSplitLineAndArea=function(t){var e=t.coordinateSystem,n=e.getIndicatorAxes();if(n.length){var r=t.get("shape"),i=t.getModel("splitLine"),o=t.getModel("splitArea"),a=i.getModel("lineStyle"),s=o.getModel("areaStyle"),l=i.get("show"),u=o.get("show"),c=a.get("color"),h=s.get("color"),d=Bt(c)?c:[c],p=Bt(h)?h:[h],f=[],g=[];if("circle"===r)for(var v=n[0].getTicksCoords(),m=e.cx,y=e.cy,b=0;b<v.length;b++){if(l){var _=M(f,d,b);f[_].push(new yy({shape:{cx:m,cy:y,r:v[b].coord}}))}if(u&&b<v.length-1){_=M(g,p,b);g[_].push(new jy({shape:{cx:m,cy:y,r0:v[b].coord,r:v[b+1].coord}}))}}else{var x,w=It(n,(function(t,n){var r=t.getTicksCoords();return x=null==x?r.length-1:Math.min(r.length-1,x),It(r,(function(t){return e.coordToPoint(t.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,d,b);f[_].push(new Yy({shape:{points:S}}))}if(u&&O){_=M(g,p,b-1);g[_].push(new Gy({shape:{points:S.concat(O)}}))}O=S.slice().reverse()}}var k=a.getLineStyle(),C=s.getAreaStyle();Pt(g,(function(t,e){this.group.add(Nb(t,{style:St({stroke:"none",fill:p[e%p.length]},C),silent:!0}))}),this),Pt(f,(function(t,e){this.group.add(Nb(t,{style:St({fill:"none",stroke:d[e%d.length]},k),silent:!0}))}),this)}function M(t,e,n){var r=n%e.length;return t[r]=t[r]||[],r}},e.type="radar",e}(Hm),rR=nR,iR=function(t){function e(e,n,r){var i=t.call(this,e,n,r)||this;return i.type="value",i.angle=0,i.name="",i}return Q(e,t),e}(kC),oR=iR,aR=function(){function t(t,e,n){this.dimensions=[],this._model=t,this._indicatorAxes=It(t.getIndicatorModels(),(function(t,e){var n="indicator_"+e,r=new oR(n,new $A);return r.name=t.get("name"),r.model=t,t.axis=r,this.dimensions.push(n),r}),this),this.resize(t,n)}return t.prototype.getIndicatorAxes=function(){return this._indicatorAxes},t.prototype.dataToPoint=function(t,e){var n=this._indicatorAxes[e];return this.coordToPoint(n.dataToCoord(t),e)},t.prototype.coordToPoint=function(t,e){var n=this._indicatorAxes[e],r=n.angle,i=this.cx+t*Math.cos(r),o=this.cy-t*Math.sin(r);return[i,o]},t.prototype.pointToData=function(t){var e=t[0]-this.cx,n=t[1]-this.cy,r=Math.sqrt(e*e+n*n);e/=r,n/=r;for(var i,o=Math.atan2(-n,e),a=1/0,s=-1,l=0;l<this._indicatorAxes.length;l++){var u=this._indicatorAxes[l],c=Math.abs(o-u.angle);c<a&&(i=u,s=l,a=c)}return[s,+(i&&i.coordToData(r))]},t.prototype.resize=function(t,e){var n=t.get("center"),r=e.getWidth(),i=e.getHeight(),o=Math.min(r,i)/2;this.cx=es(n[0],r),this.cy=es(n[1],i),this.startAngle=t.get("startAngle")*Math.PI/180;var a=t.get("radius");(Wt(a)||Vt(a))&&(a=[0,a]),this.r0=es(a[0],o),this.r=es(a[1],o),Pt(this._indicatorAxes,(function(t,e){t.setExtent(this.r0,this.r);var n=this.startAngle+e*Math.PI*2/this._indicatorAxes.length;n=Math.atan2(Math.sin(n),Math.cos(n)),t.angle=n}),this)},t.prototype.update=function(t,e){var n=this._indicatorAxes,r=this._model;Pt(n,(function(t){t.scale.setExtent(1/0,-1/0)})),t.eachSeriesByType("radar",(function(e,i){if("radar"===e.get("coordinateSystem")&&t.getComponent("radar",e.get("radarIndex"))===r){var o=e.getData();Pt(n,(function(t){t.scale.unionExtentFromData(o,o.mapDimension(t.dim))}))}}),this);var i=r.get("splitNumber"),o=new $A;o.setExtent(0,i),o.setInterval(1),Pt(n,(function(t,e){Y$(t.scale,t.model,o)}))},t.prototype.convertToPixel=function(t,e,n){return console.warn("Not implemented."),null},t.prototype.convertFromPixel=function(t,e,n){return console.warn("Not implemented."),null},t.prototype.containPoint=function(t){return console.warn("Not implemented."),!1},t.create=function(e,n){var r=[];return e.eachComponent("radar",(function(i){var o=new t(i,e,n);r.push(o),i.coordinateSystem=o})),e.eachSeriesByType("radar",(function(t){"radar"===t.get("coordinateSystem")&&(t.coordinateSystem=r[t.get("radarIndex")||0])})),r},t.dimensions=[],t}(),sR=aR;function lR(t){t.registerCoordinateSystem("radar",sR),t.registerComponentModel(tR),t.registerComponentView(rR),t.registerVisual({seriesType:"radar",reset:function(t){var e=t.getData();e.each((function(t){e.setItemVisual(t,"legendIcon","roundRect")})),e.setVisual("legendIcon","roundRect")}})}function uR(t){pS(lR),t.registerChartView(XE),t.registerSeriesModel(YE),t.registerLayout(VE),t.registerProcessor(JI("radar")),t.registerPreprocessor(ZE)}var cR="\0_ec_interaction_mutex";function hR(t,e,n){var r=fR(t);r[e]=n}function dR(t,e,n){var r=fR(t),i=r[e];i===n&&(r[e]=null)}function pR(t,e){return!!fR(t)[e]}function fR(t){return t[cR]||(t[cR]={})}KO({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},me);var gR=function(t){function e(e){var n=t.call(this)||this;n._zr=e;var r=Nt(n._mousedownHandler,n),i=Nt(n._mousemoveHandler,n),o=Nt(n._mouseupHandler,n),a=Nt(n._mousewheelHandler,n),s=Nt(n._pinchHandler,n);return n.enable=function(t,n){this.disable(),this._opt=St(_t(n)||{},{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),null==t&&(t=!0),!0!==t&&"move"!==t&&"pan"!==t||(e.on("mousedown",r),e.on("mousemove",i),e.on("mouseup",o)),!0!==t&&"scale"!==t&&"zoom"!==t||(e.on("mousewheel",a),e.on("pinch",s))},n.disable=function(){e.off("mousedown",r),e.off("mousemove",i),e.off("mouseup",o),e.off("mousewheel",a),e.off("pinch",s)},n}return Q(e,t),e.prototype.isDragging=function(){return this._dragging},e.prototype.isPinching=function(){return this._pinching},e.prototype.setPointerChecker=function(t){this.pointerChecker=t},e.prototype.dispose=function(){this.disable()},e.prototype._mousedownHandler=function(t){if(!_n(t)){var e=t.target;while(e){if(e.draggable)return;e=e.__hostTarget||e.parent}var n=t.offsetX,r=t.offsetY;this.pointerChecker&&this.pointerChecker(t,n,r)&&(this._x=n,this._y=r,this._dragging=!0)}},e.prototype._mousemoveHandler=function(t){if(this._dragging&&yR("moveOnMouseMove",t,this._opt)&&"pinch"!==t.gestureEvent&&!pR(this._zr,"globalPan")){var e=t.offsetX,n=t.offsetY,r=this._x,i=this._y,o=e-r,a=n-i;this._x=e,this._y=n,this._opt.preventDefaultMouseMove&&bn(t.event),mR(this,"pan","moveOnMouseMove",t,{dx:o,dy:a,oldX:r,oldY:i,newX:e,newY:n,isAvailableBehavior:null})}},e.prototype._mouseupHandler=function(t){_n(t)||(this._dragging=!1)},e.prototype._mousewheelHandler=function(t){var e=yR("zoomOnMouseWheel",t,this._opt),n=yR("moveOnMouseWheel",t,this._opt),r=t.wheelDelta,i=Math.abs(r),o=t.offsetX,a=t.offsetY;if(0!==r&&(e||n)){if(e){var s=i>3?1.4:i>1?1.2:1.1,l=r>0?s:1/s;vR(this,"zoom","zoomOnMouseWheel",t,{scale:l,originX:o,originY:a,isAvailableBehavior:null})}if(n){var u=Math.abs(r),c=(r>0?1:-1)*(u>3?.4:u>1?.15:.05);vR(this,"scrollMove","moveOnMouseWheel",t,{scrollDelta:c,originX:o,originY:a,isAvailableBehavior:null})}}},e.prototype._pinchHandler=function(t){if(!pR(this._zr,"globalPan")){var e=t.pinchScale>1?1.1:1/1.1;vR(this,"zoom",null,t,{scale:e,originX:t.pinchX,originY:t.pinchY,isAvailableBehavior:null})}},e}(Xe);function vR(t,e,n,r,i){t.pointerChecker&&t.pointerChecker(r,i.originX,i.originY)&&(bn(r.event),mR(t,e,n,r,i))}function mR(t,e,n,r,i){i.isAvailableBehavior=Nt(yR,null,n,r),t.trigger(e,i)}function yR(t,e,n){var r=n[t];return!t||r&&(!Wt(r)||e.event[r+"Key"])}var bR=gR;function _R(t,e,n){var r=t.target;r.x+=e,r.y+=n,r.dirty()}function xR(t,e,n,r){var i=t.target,o=t.zoomLimit,a=t.zoom=t.zoom||1;if(a*=e,o){var s=o.min||0,l=o.max||1/0;a=Math.max(Math.min(l,a),s)}var u=a/t.zoom;t.zoom=a,i.x-=(n-i.x)*(u-1),i.y-=(r-i.y)*(u-1),i.scaleX*=u,i.scaleY*=u,i.dirty()}var wR,OR={axisPointer:1,tooltip:1,brush:1};function SR(t,e,n){var r=e.getComponentByElement(t.topTarget),i=r&&r.coordinateSystem;return r&&r!==n&&!OR.hasOwnProperty(r.mainType)&&i&&i.model!==n}function AR(t){if(Wt(t)){var e=new DOMParser;t=e.parseFromString(t,"text/xml")}var n=t;9===n.nodeType&&(n=n.firstChild);while("svg"!==n.nodeName.toLowerCase()||1!==n.nodeType)n=n.nextSibling;return n}var kR={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"},CR=Dt(kR),MR={"alignment-baseline":"textBaseline","stop-color":"stopColor"},TR=Dt(MR),PR=function(){function t(){this._defs={},this._root=null}return t.prototype.parse=function(t,e){e=e||{};var n=AR(t);this._defsUsePending=[];var r=new La;this._root=r;var i=[],o=n.getAttribute("viewBox")||"",a=parseFloat(n.getAttribute("width")||e.width),s=parseFloat(n.getAttribute("height")||e.height);isNaN(a)&&(a=null),isNaN(s)&&(s=null),LR(n,r,null,!0,!1);var l,u,c=n.firstChild;while(c)this._parseNode(c,r,i,null,!1,!1),c=c.nextSibling;if(FR(this._defs,this._defsUsePending),this._defsUsePending=[],o){var h=jR(o);h.length>=4&&(l={x:parseFloat(h[0]||0),y:parseFloat(h[1]||0),width:parseFloat(h[2]),height:parseFloat(h[3])})}if(l&&null!=a&&null!=s&&(u=UR(l,{x:0,y:0,width:a,height:s}),!e.ignoreViewBox)){var d=r;r=new La,r.add(d),d.scaleX=d.scaleY=u.scale,d.x=u.x,d.y=u.y}return e.ignoreRootClip||null==a||null==s||r.setClipPath(new Ac({shape:{x:0,y:0,width:a,height:s}})),{root:r,width:a,height:s,viewBoxRect:l,viewBoxTransform:u,named:i}},t.prototype._parseNode=function(t,e,n,r,i,o){var a,s=t.nodeName.toLowerCase(),l=r;if("defs"===s&&(i=!0),"text"===s&&(o=!0),"defs"===s||"switch"===s)a=e;else{if(!i){var u=wR[s];if(u&&ve(wR,s)){a=u.call(this,t,e);var c=t.getAttribute("name");if(c){var h={name:c,namedFrom:null,svgNodeTagLower:s,el:a};n.push(h),"g"===s&&(l=h)}else r&&n.push({name:r.name,namedFrom:r,svgNodeTagLower:s,el:a});e.add(a)}}var d=IR[s];if(d&&ve(IR,s)){var p=d.call(this,t),f=t.getAttribute("id");f&&(this._defs[f]=p)}}if(a&&a.isGroup){var g=t.firstChild;while(g)1===g.nodeType?this._parseNode(g,a,n,l,i,o):3===g.nodeType&&o&&this._parseText(g,a),g=g.nextSibling}},t.prototype._parseText=function(t,e){var n=new hc({style:{text:t.textContent},silent:!0,x:this._textX||0,y:this._textY||0});RR(e,n),LR(t,n,this._defsUsePending,!1,!1),NR(n,e);var r=n.style,i=r.fontSize;i&&i<9&&(r.fontSize=9,n.scaleX*=i/9,n.scaleY*=i/9);var o=(r.fontSize||r.fontFamily)&&[r.fontStyle,r.fontWeight,(r.fontSize||12)+"px",r.fontFamily||"sans-serif"].join(" ");r.font=o;var a=n.getBoundingRect();return this._textX+=a.width,e.add(n),n},t.internalField=function(){wR={g:function(t,e){var n=new La;return RR(e,n),LR(t,n,this._defsUsePending,!1,!1),n},rect:function(t,e){var n=new Ac;return RR(e,n),LR(t,n,this._defsUsePending,!1,!1),n.setShape({x:parseFloat(t.getAttribute("x")||"0"),y:parseFloat(t.getAttribute("y")||"0"),width:parseFloat(t.getAttribute("width")||"0"),height:parseFloat(t.getAttribute("height")||"0")}),n.silent=!0,n},circle:function(t,e){var n=new yy;return RR(e,n),LR(t,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(t.getAttribute("cx")||"0"),cy:parseFloat(t.getAttribute("cy")||"0"),r:parseFloat(t.getAttribute("r")||"0")}),n.silent=!0,n},line:function(t,e){var n=new tb;return RR(e,n),LR(t,n,this._defsUsePending,!1,!1),n.setShape({x1:parseFloat(t.getAttribute("x1")||"0"),y1:parseFloat(t.getAttribute("y1")||"0"),x2:parseFloat(t.getAttribute("x2")||"0"),y2:parseFloat(t.getAttribute("y2")||"0")}),n.silent=!0,n},ellipse:function(t,e){var n=new xy;return RR(e,n),LR(t,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(t.getAttribute("cx")||"0"),cy:parseFloat(t.getAttribute("cy")||"0"),rx:parseFloat(t.getAttribute("rx")||"0"),ry:parseFloat(t.getAttribute("ry")||"0")}),n.silent=!0,n},polygon:function(t,e){var n,r=t.getAttribute("points");r&&(n=DR(r));var i=new Gy({shape:{points:n||[]},silent:!0});return RR(e,i),LR(t,i,this._defsUsePending,!1,!1),i},polyline:function(t,e){var n,r=t.getAttribute("points");r&&(n=DR(r));var i=new Yy({shape:{points:n||[]},silent:!0});return RR(e,i),LR(t,i,this._defsUsePending,!1,!1),i},image:function(t,e){var n=new vc;return RR(e,n),LR(t,n,this._defsUsePending,!1,!1),n.setStyle({image:t.getAttribute("xlink:href")||t.getAttribute("href"),x:+t.getAttribute("x"),y:+t.getAttribute("y"),width:+t.getAttribute("width"),height:+t.getAttribute("height")}),n.silent=!0,n},text:function(t,e){var n=t.getAttribute("x")||"0",r=t.getAttribute("y")||"0",i=t.getAttribute("dx")||"0",o=t.getAttribute("dy")||"0";this._textX=parseFloat(n)+parseFloat(i),this._textY=parseFloat(r)+parseFloat(o);var a=new La;return RR(e,a),LR(t,a,this._defsUsePending,!1,!0),a},tspan:function(t,e){var n=t.getAttribute("x"),r=t.getAttribute("y");null!=n&&(this._textX=parseFloat(n)),null!=r&&(this._textY=parseFloat(r));var i=t.getAttribute("dx")||"0",o=t.getAttribute("dy")||"0",a=new La;return RR(e,a),LR(t,a,this._defsUsePending,!1,!0),this._textX+=parseFloat(i),this._textY+=parseFloat(o),a},path:function(t,e){var n=t.getAttribute("d")||"",r=dy(n);return RR(e,r),LR(t,r,this._defsUsePending,!1,!1),r.silent=!0,r}}}(),t}(),IR={lineargradient:function(t){var e=parseInt(t.getAttribute("x1")||"0",10),n=parseInt(t.getAttribute("y1")||"0",10),r=parseInt(t.getAttribute("x2")||"10",10),i=parseInt(t.getAttribute("y2")||"0",10),o=new fb(e,n,r,i);return $R(t,o),ER(t,o),o},radialgradient:function(t){var e=parseInt(t.getAttribute("cx")||"0",10),n=parseInt(t.getAttribute("cy")||"0",10),r=parseInt(t.getAttribute("r")||"0",10),i=new vb(e,n,r);return $R(t,i),ER(t,i),i}};function $R(t,e){var n=t.getAttribute("gradientUnits");"userSpaceOnUse"===n&&(e.global=!0)}function ER(t,e){var n=t.firstChild;while(n){if(1===n.nodeType&&"stop"===n.nodeName.toLocaleLowerCase()){var r=n.getAttribute("offset"),i=void 0;i=r&&r.indexOf("%")>0?parseInt(r,10)/100:r?parseFloat(r):0;var o={};GR(n,o,o);var a=o.stopColor||n.getAttribute("stop-color")||"#000000";e.colorStops.push({offset:i,color:a})}n=n.nextSibling}}function RR(t,e){t&&t.__inheritedStyle&&(e.__inheritedStyle||(e.__inheritedStyle={}),St(e.__inheritedStyle,t.__inheritedStyle))}function DR(t){for(var e=jR(t),n=[],r=0;r<e.length;r+=2){var i=parseFloat(e[r]),o=parseFloat(e[r+1]);n.push([i,o])}return n}function LR(t,e,n,r,i){var o=e,a=o.__inheritedStyle=o.__inheritedStyle||{},s={};1===t.nodeType&&(HR(t,e),GR(t,a,s),r||XR(t,a,s)),o.style=o.style||{},null!=a.fill&&(o.style.fill=BR(o,"fill",a.fill,n)),null!=a.stroke&&(o.style.stroke=BR(o,"stroke",a.stroke,n)),Pt(["lineWidth","opacity","fillOpacity","strokeOpacity","miterLimit","fontSize"],(function(t){null!=a[t]&&(o.style[t]=parseFloat(a[t]))})),Pt(["lineDashOffset","lineCap","lineJoin","fontWeight","fontFamily","fontStyle","textAlign"],(function(t){null!=a[t]&&(o.style[t]=a[t])})),i&&(o.__selfStyle=s),a.lineDash&&(o.style.lineDash=It(jR(a.lineDash),(function(t){return parseFloat(t)}))),"hidden"!==a.visibility&&"collapse"!==a.visibility||(o.invisible=!0),"none"===a.display&&(o.ignore=!0)}function NR(t,e){var n=e.__selfStyle;if(n){var r=n.textBaseline,i=r;r&&"auto"!==r?"baseline"===r?i="alphabetic":"before-edge"===r||"text-before-edge"===r?i="top":"after-edge"===r||"text-after-edge"===r?i="bottom":"central"!==r&&"mathematical"!==r||(i="middle"):i="alphabetic",t.style.textBaseline=i}var o=e.__inheritedStyle;if(o){var a=o.textAlign,s=a;a&&("middle"===a&&(s="center"),t.style.textAlign=s)}}var zR=/^url\(\s*#(.*?)\)/;function BR(t,e,n,r){var i=n&&n.match(zR);if(!i)return"none"===n&&(n=null),n;var o=ie(i[1]);r.push([t,e,o])}function FR(t,e){for(var n=0;n<e.length;n++){var r=e[n];r[0].style[r[1]]=t[r[2]]}}var WR=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function jR(t){return t.match(WR)||[]}var VR=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.eE,]*)\)/g,QR=Math.PI/180;function HR(t,e){var n=t.getAttribute("transform");if(n){n=n.replace(/,/g," ");var r=[],i=null;n.replace(VR,(function(t,e,n){return r.push(e,n),""}));for(var o=r.length-1;o>0;o-=2){var a=r[o],s=r[o-1],l=jR(a);switch(i=i||An(),s){case"translate":Tn(i,i,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":In(i,i,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":Pn(i,i,-parseFloat(l[0])*QR,[parseFloat(l[1]||"0"),parseFloat(l[2]||"0")]);break;case"skewX":var u=Math.tan(parseFloat(l[0])*QR);Mn(i,[1,0,u,1,0,0],i);break;case"skewY":var c=Math.tan(parseFloat(l[0])*QR);Mn(i,[1,c,0,1,0,0],i);break;case"matrix":i[0]=parseFloat(l[0]),i[1]=parseFloat(l[1]),i[2]=parseFloat(l[2]),i[3]=parseFloat(l[3]),i[4]=parseFloat(l[4]),i[5]=parseFloat(l[5]);break}}e.setLocalTransform(i)}}var ZR=/([^\s:;]+)\s*:\s*([^:;]+)/g;function GR(t,e,n){var r=t.getAttribute("style");if(r){var i;ZR.lastIndex=0;while(null!=(i=ZR.exec(r))){var o=i[1],a=ve(kR,o)?kR[o]:null;a&&(e[a]=i[2]);var s=ve(MR,o)?MR[o]:null;s&&(n[s]=i[2])}}}function XR(t,e,n){for(var r=0;r<CR.length;r++){var i=CR[r],o=t.getAttribute(i);null!=o&&(e[kR[i]]=o)}for(r=0;r<TR.length;r++){i=TR[r],o=t.getAttribute(i);null!=o&&(n[MR[i]]=o)}}function UR(t,e){var n=e.width/t.width,r=e.height/t.height,i=Math.min(n,r);return{scale:i,x:-(t.x+t.width/2)*i+(e.x+e.width/2),y:-(t.y+t.height/2)*i+(e.y+e.height/2)}}function YR(t,e){var n=new PR;return n.parse(t,e)}var qR=de(["rect","circle","line","ellipse","polygon","polyline","path","text","tspan","g"]),KR=function(){function t(t,e){this.type="geoSVG",this._usedGraphicMap=de(),this._freedGraphics=[],this._mapName=t,this._parsedXML=AR(e)}return t.prototype.load=function(){var t=this._firstGraphic;if(!t){t=this._firstGraphic=this._buildGraphic(this._parsedXML),this._freedGraphics.push(t),this._boundingRect=this._firstGraphic.boundingRect.clone();var e=tD(t.named),n=e.regions,r=e.regionsMap;this._regions=n,this._regionsMap=r}return{boundingRect:this._boundingRect,regions:this._regions,regionsMap:this._regionsMap}},t.prototype._buildGraphic=function(t){var e,n;try{e=t&&YR(t,{ignoreViewBox:!0,ignoreRootClip:!0})||{},n=e.root,re(null!=n)}catch($y){throw new Error("Invalid svg format\n"+$y.message)}var r=new La;r.add(n),r.isGeoSVGGraphicRoot=!0;var i=e.width,o=e.height,a=e.viewBoxRect,s=this._boundingRect;if(!s){var l=void 0,u=void 0,c=void 0,h=void 0;if(null!=i?(l=0,c=i):a&&(l=a.x,c=a.width),null!=o?(u=0,h=o):a&&(u=a.y,h=a.height),null==l||null==u){var d=n.getBoundingRect();null==l&&(l=d.x,c=d.width),null==u&&(u=d.y,h=d.height)}s=this._boundingRect=new Hn(l,u,c,h)}if(a){var p=UR(a,s);n.scaleX=n.scaleY=p.scale,n.x=p.x,n.y=p.y}r.setClipPath(new Ac({shape:s.plain()}));var f=[];return Pt(e.named,(function(t){null!=qR.get(t.svgNodeTagLower)&&(f.push(t),JR(t.el))})),{root:r,boundingRect:s,named:f}},t.prototype.useGraphic=function(t){var e=this._usedGraphicMap,n=e.get(t);return n||(n=this._freedGraphics.pop()||this._buildGraphic(this._parsedXML),e.set(t,n),n)},t.prototype.freeGraphic=function(t){var e=this._usedGraphicMap,n=e.get(t);n&&(e.removeKey(t),this._freedGraphics.push(n))},t}();function JR(t){t.silent=!1,t.isGroup&&t.traverse((function(t){t.silent=!1}))}function tD(t){var e=[],n=de();return Pt(t,(function(t){if(null==t.namedFrom){var r=new tC(t.name,t.el);e.push(r),n.set(t.name,r)}})),{regions:e,regionsMap:n}}for(var eD=[126,25],nD="南海诸岛",rD=[[[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]]],iD=0;iD<rD.length;iD++)for(var oD=0;oD<rD[iD].length;oD++)rD[iD][oD][0]/=10.5,rD[iD][oD][1]/=-14,rD[iD][oD][0]+=eD[0],rD[iD][oD][1]+=eD[1];function aD(t,e){if("china"===t){for(var n=0;n<e.length;n++)if(e[n].name===nD)return;e.push(new Jk(nD,It(rD,(function(t){return{type:"polygon",exterior:t}})),eD))}}var sD={"南海诸岛":[32,80],"广东":[0,-10],"香港":[10,5],"澳门":[-10,10],"天津":[5,5]};function lD(t,e){if("china"===t){var n=sD[e.name];if(n){var r=e.getCenter();r[0]+=n[0]/10.5,r[1]+=-n[1]/14,e.setCenter(r)}}}var uD=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]];function cD(t,e){"china"===t&&"台湾"===e.name&&e.geometries.push({type:"polygon",exterior:uD[0]})}var hD="name",dD=function(){function t(t,e,n){this.type="geoJSON",this._parsedMap=de(),this._mapName=t,this._specialAreas=n,this._geoJSON=fD(e)}return t.prototype.load=function(t,e){e=e||hD;var n=this._parsedMap.get(e);if(!n){var r=this._parseToRegions(e);n=this._parsedMap.set(e,{regions:r,boundingRect:pD(r)})}var i=de(),o=[];return Pt(n.regions,(function(e){var n=e.name;t&&ve(t,n)&&(e=e.cloneShallow(n=t[n])),o.push(e),i.set(n,e)})),{regions:o,boundingRect:n.boundingRect||new Hn(0,0,0,0),regionsMap:i}},t.prototype._parseToRegions=function(t){var e,n=this._mapName,r=this._geoJSON;try{e=r?iC(r,t):[]}catch($y){throw new Error("Invalid geoJson format\n"+$y.message)}return aD(n,e),Pt(e,(function(t){var e=t.name;lD(n,t),cD(n,t);var r=this._specialAreas&&this._specialAreas[e];r&&t.transformTo(r.left,r.top,r.width,r.height)}),this),e},t.prototype.getMapForUser=function(){return{geoJson:this._geoJSON,geoJSON:this._geoJSON,specialAreas:this._specialAreas}},t}();function pD(t){for(var e,n=0;n<t.length;n++){var r=t[n].getBoundingRect();e=e||r.clone(),e.union(r)}return e}function fD(t){return Wt(t)?"undefined"!==typeof JSON&&JSON.parse?JSON.parse(t):new Function("return ("+t+");")():t}var gD=de(),vD={registerMap:function(t,e,n){if(e.svg){var r=new KR(t,e.svg);gD.set(t,r)}else{var i=e.geoJson||e.geoJSON;i&&!e.features?n=e.specialAreas:i=e;r=new dD(t,i,n);gD.set(t,r)}},getGeoResource:function(t){return gD.get(t)},getMapForUser:function(t){var e=gD.get(t);return e&&"geoJSON"===e.type&&e.getMapForUser()},load:function(t,e,n){var r=gD.get(t);if(r)return r.load(e,n)}},mD=["rect","circle","line","ellipse","polygon","polyline","path"],yD=de(mD),bD=de(mD.concat(["g"])),_D=de(mD.concat(["g"])),xD=Ys();function wD(t){var e=t.getItemStyle(),n=t.get("areaColor");return null!=n&&(e.fill=n),e}function OD(t){var e=t.style;e&&(e.stroke=e.stroke||e.fill,e.fill=null)}var SD=function(){function t(t){var e=new La;this.uid=Zd("ec_map_draw"),this._controller=new bR(t.getZr()),this._controllerHost={target:e},this.group=e,e.add(this._regionsGroup=new La),e.add(this._svgGroup=new La)}return t.prototype.draw=function(t,e,n,r,i){var o="geo"===t.mainType,a=t.getData&&t.getData();o&&e.eachComponent({mainType:"series",subType:"map"},(function(e){a||e.getHostGeoModel()!==t||(a=e.getData())}));var s=t.coordinateSystem,l=this._regionsGroup,u=this.group,c=s.getTransformInfo(),h=c.raw,d=c.roam,p=!l.childAt(0)||i;p?(u.x=d.x,u.y=d.y,u.scaleX=d.scaleX,u.scaleY=d.scaleY,u.dirty()):sd(u,d,t);var f=a&&a.getVisual("visualMeta")&&a.getVisual("visualMeta").length>0,g={api:n,geo:s,mapOrGeoModel:t,data:a,isVisualEncodedByVisualMap:f,isGeo:o,transformInfoRaw:h};"geoJSON"===s.resourceType?this._buildGeoJSON(g):"geoSVG"===s.resourceType&&this._buildSVG(g),this._updateController(t,e,n),this._updateMapSelectHandler(t,l,n,r)},t.prototype._buildGeoJSON=function(t){var e=this._regionsGroupByName=de(),n=de(),r=this._regionsGroup,i=t.transformInfoRaw,o=t.mapOrGeoModel,a=t.data,s=t.geo.projection,l=s&&s.stream;function u(t,e){return e&&(t=e(t)),t&&[t[0]*i.scaleX+i.x,t[1]*i.scaleY+i.y]}function c(t){for(var e=[],n=!l&&s&&s.project,r=0;r<t.length;++r){var i=u(t[r],n);i&&e.push(i)}return e}function h(t){return{shape:{points:c(t)}}}r.removeAll(),Pt(t.geo.regions,(function(i){var c=i.name,d=e.get(c),p=n.get(c)||{},f=p.dataIdx,g=p.regionModel;d||(d=e.set(c,new La),r.add(d),f=a?a.indexOfName(c):null,g=t.isGeo?o.getRegionModel(c):a?a.getItemModel(f):null,n.set(c,{dataIdx:f,regionModel:g}));var v=[],m=[];Pt(i.geometries,(function(t){if("polygon"===t.type){var e=[t.exterior].concat(t.interiors||[]);l&&(e=PD(e,l)),Pt(e,(function(t){v.push(new Gy(h(t)))}))}else{var n=t.points;l&&(n=PD(n,l,!0)),Pt(n,(function(t){m.push(new Yy(h(t)))}))}}));var y=u(i.getCenter(),s&&s.project);function b(e,n){if(e.length){var r=new cb({culling:!0,segmentIgnoreThreshold:1,shape:{paths:e}});d.add(r),AD(t,r,f,g),kD(t,r,c,g,o,f,y),n&&(OD(r),Pt(r.states,OD))}}b(v),b(m,!0)})),e.each((function(e,r){var i=n.get(r),a=i.dataIdx,s=i.regionModel;CD(t,e,r,s,o,a),MD(t,e,r,s,o),TD(t,e,r,s,o)}),this)},t.prototype._buildSVG=function(t){var e=t.geo.map,n=t.transformInfoRaw;this._svgGroup.x=n.x,this._svgGroup.y=n.y,this._svgGroup.scaleX=n.scaleX,this._svgGroup.scaleY=n.scaleY,this._svgResourceChanged(e)&&(this._freeSVG(),this._useSVG(e));var r=this._svgDispatcherMap=de(),i=!1;Pt(this._svgGraphicRecord.named,(function(e){var n=e.name,o=t.mapOrGeoModel,a=t.data,s=e.svgNodeTagLower,l=e.el,u=a?a.indexOfName(n):null,c=o.getRegionModel(n);if(null!=yD.get(s)&&l instanceof eu&&AD(t,l,u,c),l instanceof eu&&(l.culling=!0),l.z2EmphasisLift=0,!e.namedFrom&&(null!=_D.get(s)&&kD(t,l,n,c,o,u,null),CD(t,l,n,c,o,u),MD(t,l,n,c,o),null!=bD.get(s))){var h=TD(t,l,n,c,o);"self"===h&&(i=!0);var d=r.get(n)||r.set(n,[]);d.push(l)}}),this),this._enableBlurEntireSVG(i,t)},t.prototype._enableBlurEntireSVG=function(t,e){if(t&&e.isGeo){var n=e.mapOrGeoModel.getModel(["blur","itemStyle"]).getItemStyle(),r=n.opacity;this._svgGraphicRecord.root.traverse((function(t){if(!t.isGroup){Sh(t);var e=t.ensureState("blur").style||{};null==e.opacity&&null!=r&&(e.opacity=r),t.ensureState("emphasis")}}))}},t.prototype.remove=function(){this._regionsGroup.removeAll(),this._regionsGroupByName=null,this._svgGroup.removeAll(),this._freeSVG(),this._controller.dispose(),this._controllerHost=null},t.prototype.findHighDownDispatchers=function(t,e){if(null==t)return[];var n=e.coordinateSystem;if("geoJSON"===n.resourceType){var r=this._regionsGroupByName;if(r){var i=r.get(t);return i?[i]:[]}}else if("geoSVG"===n.resourceType)return this._svgDispatcherMap&&this._svgDispatcherMap.get(t)||[]},t.prototype._svgResourceChanged=function(t){return this._svgMapName!==t},t.prototype._useSVG=function(t){var e=vD.getGeoResource(t);if(e&&"geoSVG"===e.type){var n=e.useGraphic(this.uid);this._svgGroup.add(n.root),this._svgGraphicRecord=n,this._svgMapName=t}},t.prototype._freeSVG=function(){var t=this._svgMapName;if(null!=t){var e=vD.getGeoResource(t);e&&"geoSVG"===e.type&&e.freeGraphic(this.uid),this._svgGraphicRecord=null,this._svgDispatcherMap=null,this._svgGroup.removeAll(),this._svgMapName=null}},t.prototype._updateController=function(t,e,n){var r=t.coordinateSystem,i=this._controller,o=this._controllerHost;o.zoomLimit=t.get("scaleLimit"),o.zoom=r.getZoom(),i.enable(t.get("roam")||!1);var a=t.mainType;function s(){var e={type:"geoRoam",componentType:a};return e[a+"Id"]=t.id,e}i.off("pan").on("pan",(function(t){this._mouseDownFlag=!1,_R(o,t.dx,t.dy),n.dispatchAction(Ot(s(),{dx:t.dx,dy:t.dy,animation:{duration:0}}))}),this),i.off("zoom").on("zoom",(function(t){this._mouseDownFlag=!1,xR(o,t.scale,t.originX,t.originY),n.dispatchAction(Ot(s(),{totalZoom:o.zoom,zoom:t.scale,originX:t.originX,originY:t.originY,animation:{duration:0}}))}),this),i.setPointerChecker((function(e,i,o){return r.containPoint([i,o])&&!SR(e,n,t)}))},t.prototype.resetForLabelLayout=function(){this.group.traverse((function(t){var e=t.getTextContent();e&&(e.ignore=xD(e).ignore)}))},t.prototype._updateMapSelectHandler=function(t,e,n,r){var i=this;e.off("mousedown"),e.off("click"),t.get("selectedMode")&&(e.on("mousedown",(function(){i._mouseDownFlag=!0})),e.on("click",(function(t){i._mouseDownFlag&&(i._mouseDownFlag=!1)})))},t}();function AD(t,e,n,r){var i=r.getModel("itemStyle"),o=r.getModel(["emphasis","itemStyle"]),a=r.getModel(["blur","itemStyle"]),s=r.getModel(["select","itemStyle"]),l=wD(i),u=wD(o),c=wD(s),h=wD(a),d=t.data;if(d){var p=d.getItemVisual(n,"style"),f=d.getItemVisual(n,"decal");t.isVisualEncodedByVisualMap&&p.fill&&(l.fill=p.fill),f&&(l.decal=gw(f,t.api))}e.setStyle(l),e.style.strokeNoScale=!0,e.ensureState("emphasis").style=u,e.ensureState("select").style=c,e.ensureState("blur").style=h,Sh(e)}function kD(t,e,n,r,i,o,a){var s=t.data,l=t.isGeo,u=s&&isNaN(s.get(s.mapDimension("value"),o)),c=s&&s.getItemLayout(o);if(l||u||c&&c.showLabel){var h=l?n:o,d=void 0;(!s||o>=0)&&(d=i);var p=a?{normal:{align:"center",verticalAlign:"middle"}}:null;yd(e,bd(r),{labelFetcher:d,labelDataIndex:h,defaultText:n},p);var f=e.getTextContent();if(f&&(xD(f).ignore=f.ignore,e.textConfig&&a)){var g=e.getBoundingRect().clone();e.textConfig.layoutRect=g,e.textConfig.position=[(a[0]-g.x)/g.width*100+"%",(a[1]-g.y)/g.height*100+"%"]}e.disableLabelAnimation=!0}else e.removeTextContent(),e.removeTextConfig(),e.disableLabelAnimation=null}function CD(t,e,n,r,i,o){t.data?t.data.setItemGraphicEl(o,e):Qc(e).eventData={componentType:"geo",componentIndex:i.componentIndex,geoIndex:i.componentIndex,name:n,region:r&&r.option||{}}}function MD(t,e,n,r,i){t.data||e_({el:e,componentModel:i,itemName:n,itemTooltipOption:r.get("tooltip")})}function TD(t,e,n,r,i){e.highDownSilentOnTouch=!!i.get("selectedMode");var o=r.getModel("emphasis"),a=o.get("focus");return Zh(e,a,o.get("blurScope"),o.get("disabled")),t.isGeo&&Jh(e,i,n),a}function PD(t,e,n){var r,i=[];function o(){r=[]}function a(){r.length&&(i.push(r),r=[])}var s=e({polygonStart:o,polygonEnd:a,lineStart:o,lineEnd:a,point:function(t,e){isFinite(t)&&isFinite(e)&&r.push([t,e])},sphere:function(){}});return!n&&s.polygonStart(),Pt(t,(function(t){s.lineStart();for(var e=0;e<t.length;e++)s.point(t[e][0],t[e][1]);s.lineEnd()})),!n&&s.polygonEnd(),i}var ID=SD,$D=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Q(e,t),e.prototype.render=function(t,e,n,r){if(!r||"mapToggleSelect"!==r.type||r.from!==this.uid){var i=this.group;if(i.removeAll(),!t.getHostGeoModel()){if(this._mapDraw&&r&&"geoRoam"===r.type&&this._mapDraw.resetForLabelLayout(),r&&"geoRoam"===r.type&&"series"===r.componentType&&r.seriesId===t.id){o=this._mapDraw;o&&i.add(o.group)}else if(t.needsDrawMap){var o=this._mapDraw||new ID(n);i.add(o.group),o.draw(t,e,n,this,r),this._mapDraw=o}else this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;t.get("showLegendSymbol")&&e.getComponent("legend")&&this._renderSymbols(t,e,n)}}},e.prototype.remove=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null,this.group.removeAll()},e.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null},e.prototype._renderSymbols=function(t,e,n){var r=t.originalData,i=this.group;r.each(r.mapDimension("value"),(function(e,n){if(!isNaN(e)){var o=r.getItemLayout(n);if(o&&o.point){var a=o.point,s=o.offset,l=new yy({style:{fill:t.getData().getVisual("style").fill},shape:{cx:a[0]+9*s,cy:a[1],r:3},silent:!0,z2:8+(s?0:eh+1)});if(!s){var u=t.mainSeries.getData(),c=r.getName(n),h=u.indexOfName(c),d=r.getItemModel(n),p=d.getModel("label"),f=u.getItemGraphicEl(h);yd(l,bd(d),{labelFetcher:{getFormattedLabel:function(e,n){return t.getFormattedLabel(h,n)}},defaultText:c}),l.disableLabelAnimation=!0,p.get("position")||l.setTextConfig({position:"bottom"}),f.onHoverStateChange=function(t){yh(l,t)}}i.add(l)}}}))},e.type="map",e}(d_),ED=$D,RD=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.needsDrawMap=!1,n.seriesGroup=[],n.getTooltipPosition=function(t){if(null!=t){var e=this.getData().getName(t),n=this.coordinateSystem,r=n.getRegion(e);return r&&n.dataToPoint(r.getCenter())}},n}return Q(e,t),e.prototype.getInitialData=function(t){for(var e=u$(this,{coordDimensions:["value"],encodeDefaulter:zt(Ef,this)}),n=de(),r=[],i=0,o=e.count();i<o;i++){var a=e.getName(i);n.set(a,!0)}var s=vD.load(this.getMapType(),this.option.nameMap,this.option.nameProperty);return Pt(s.regions,(function(t){var e=t.name;n.get(e)||r.push(e)})),e.appendValues([],r),e},e.prototype.getHostGeoModel=function(){var t=this.option.geoIndex;return null!=t?this.ecModel.getComponent("geo",t):null},e.prototype.getMapType=function(){return(this.getHostGeoModel()||this).option.map},e.prototype.getRawValue=function(t){var e=this.getData();return e.get(e.mapDimension("value"),t)},e.prototype.getRegionModel=function(t){var e=this.getData();return e.getItemModel(e.indexOfName(t))},e.prototype.formatTooltip=function(t,e,n){for(var r=this.getData(),i=this.getRawValue(t),o=r.getName(t),a=this.seriesGroup,s=[],l=0;l<a.length;l++){var u=a[l].originalData.indexOfName(o),c=r.mapDimension("value");isNaN(a[l].originalData.get(c,u))||s.push(a[l].name)}return pm("section",{header:s.join(", "),noHeader:!s.length,blocks:[pm("nameValue",{name:o,value:i})]})},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.getLegendIcon=function(t){var e=t.icon||"roundRect",n=kx(e,0,0,t.itemWidth,t.itemHeight,t.itemStyle.fill);return n.setStyle(t.itemStyle),n.style.stroke="none",e.indexOf("empty")>-1&&(n.style.stroke=n.style.fill,n.style.fill="#fff",n.style.lineWidth=2),n},e.type="series.map",e.dependencies=["geo"],e.layoutMode="box",e.defaultOption={z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:null,showLegendSymbol:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,selectedMode:!0,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",areaColor:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{areaColor:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},nameProperty:"name"},e}(Vm),DD=RD;function LD(t,e){var n={};return Pt(t,(function(t){t.each(t.mapDimension("value"),(function(e,r){var i="ec-"+t.getName(r);n[i]=n[i]||[],isNaN(e)||n[i].push(e)}))})),t[0].map(t[0].mapDimension("value"),(function(r,i){for(var o,a="ec-"+t[0].getName(i),s=0,l=1/0,u=-1/0,c=n[a].length,h=0;h<c;h++)l=Math.min(l,n[a][h]),u=Math.max(u,n[a][h]),s+=n[a][h];return o="min"===e?l:"max"===e?u:"average"===e?s/c:s,0===c?NaN:o}))}function ND(t){var e={};t.eachSeriesByType("map",(function(t){var n=t.getHostGeoModel(),r=n?"o"+n.id:"i"+t.getMapType();(e[r]=e[r]||[]).push(t)})),Pt(e,(function(t,e){for(var n=LD(It(t,(function(t){return t.getData()})),t[0].get("mapValueCalculation")),r=0;r<t.length;r++)t[r].originalData=t[r].getData();for(r=0;r<t.length;r++)t[r].seriesGroup=t,t[r].needsDrawMap=0===r&&!t[r].getHostGeoModel(),t[r].setData(n.cloneShallow()),t[r].mainSeries=t[0]}))}function zD(t){var e={};t.eachSeriesByType("map",(function(n){var r=n.getMapType();if(!n.getHostGeoModel()&&!e[r]){var i={};Pt(n.seriesGroup,(function(e){var n=e.coordinateSystem,r=e.originalData;e.get("showLegendSymbol")&&t.getComponent("legend")&&r.each(r.mapDimension("value"),(function(t,e){var o=r.getName(e),a=n.getRegion(o);if(a&&!isNaN(t)){var s=i[o]||0,l=n.dataToPoint(a.getCenter());i[o]=s+1,r.setItemLayout(e,{point:l,offset:s})}}))}));var o=n.getData();o.each((function(t){var e=o.getName(t),n=o.getItemLayout(t)||{};n.showLabel=!i[e],o.setItemLayout(t,n)})),e[r]=!0}}))}var BD=We,FD=function(t){function e(e){var n=t.call(this)||this;return n.type="view",n.dimensions=["x","y"],n._roamTransformable=new ha,n._rawTransformable=new ha,n.name=e,n}return Q(e,t),e.prototype.setBoundingRect=function(t,e,n,r){return this._rect=new Hn(t,e,n,r),this._rect},e.prototype.getBoundingRect=function(){return this._rect},e.prototype.setViewRect=function(t,e,n,r){this._transformTo(t,e,n,r),this._viewRect=new Hn(t,e,n,r)},e.prototype._transformTo=function(t,e,n,r){var i=this.getBoundingRect(),o=this._rawTransformable;o.transform=i.calculateTransform(new Hn(t,e,n,r));var a=o.parent;o.parent=null,o.decomposeTransform(),o.parent=a,this._updateTransform()},e.prototype.setCenter=function(t,e){t&&(this._center=[es(t[0],e.getWidth()),es(t[1],e.getHeight())],this._updateCenterAndZoom())},e.prototype.setZoom=function(t){t=t||1;var e=this.zoomLimit;e&&(null!=e.max&&(t=Math.min(e.max,t)),null!=e.min&&(t=Math.max(e.min,t))),this._zoom=t,this._updateCenterAndZoom()},e.prototype.getDefaultCenter=function(){var t=this.getBoundingRect(),e=t.x+t.width/2,n=t.y+t.height/2;return[e,n]},e.prototype.getCenter=function(){return this._center||this.getDefaultCenter()},e.prototype.getZoom=function(){return this._zoom||1},e.prototype.getRoamTransform=function(){return this._roamTransformable.getLocalTransform()},e.prototype._updateCenterAndZoom=function(){var t=this._rawTransformable.getLocalTransform(),e=this._roamTransformable,n=this.getDefaultCenter(),r=this.getCenter(),i=this.getZoom();r=We([],r,t),n=We([],n,t),e.originX=r[0],e.originY=r[1],e.x=n[0]-r[0],e.y=n[1]-r[1],e.scaleX=e.scaleY=i,this._updateTransform()},e.prototype._updateTransform=function(){var t=this._roamTransformable,e=this._rawTransformable;e.parent=t,t.updateTransform(),e.updateTransform(),Cn(this.transform||(this.transform=[]),e.transform||An()),this._rawTransform=e.getLocalTransform(),this.invTransform=this.invTransform||[],$n(this.invTransform,this.transform),this.decomposeTransform()},e.prototype.getTransformInfo=function(){var t=this._rawTransformable,e=this._roamTransformable,n=new ha;return n.transform=e.transform,n.decomposeTransform(),{roam:{x:n.x,y:n.y,scaleX:n.scaleX,scaleY:n.scaleY},raw:{x:t.x,y:t.y,scaleX:t.scaleX,scaleY:t.scaleY}}},e.prototype.getViewRect=function(){return this._viewRect},e.prototype.getViewRectAfterRoam=function(){var t=this.getBoundingRect().clone();return t.applyTransform(this.transform),t},e.prototype.dataToPoint=function(t,e,n){var r=e?this._rawTransform:this.transform;return n=n||[],r?BD(n,t,r):_e(n,t)},e.prototype.pointToData=function(t){var e=this.invTransform;return e?BD([],t,e):[t[0],t[1]]},e.prototype.convertToPixel=function(t,e,n){var r=WD(e);return r===this?r.dataToPoint(n):null},e.prototype.convertFromPixel=function(t,e,n){var r=WD(e);return r===this?r.pointToData(n):null},e.prototype.containPoint=function(t){return this.getViewRectAfterRoam().contain(t[0],t[1])},e.dimensions=["x","y"],e}(ha);function WD(t){var e=t.seriesModel;return e?e.coordinateSystem:null}var jD=FD,VD={geoJSON:{aspectScale:.75,invertLongitute:!0},geoSVG:{aspectScale:1,invertLongitute:!1}},QD=["lng","lat"],HD=function(t){function e(e,n,r){var i=t.call(this,e)||this;i.dimensions=QD,i.type="geo",i._nameCoordMap=de(),i.map=n;var o,a=r.projection,s=vD.load(n,r.nameMap,r.nameProperty),l=vD.getGeoResource(n),u=(i.resourceType=l?l.type:null,i.regions=s.regions),c=VD[l.type];if(i._regionsMap=s.regionsMap,i.regions=s.regions,i.projection=a,a)for(var h=0;h<u.length;h++){var d=u[h].getBoundingRect(a);o=o||d.clone(),o.union(d)}else o=s.boundingRect;return i.setBoundingRect(o.x,o.y,o.width,o.height),i.aspectScale=a?1:Jt(r.aspectScale,c.aspectScale),i._invertLongitute=!a&&c.invertLongitute,i}return Q(e,t),e.prototype._transformTo=function(t,e,n,r){var i=this.getBoundingRect(),o=this._invertLongitute;i=i.clone(),o&&(i.y=-i.y-i.height);var a=this._rawTransformable;a.transform=i.calculateTransform(new Hn(t,e,n,r));var s=a.parent;a.parent=null,a.decomposeTransform(),a.parent=s,o&&(a.scaleY=-a.scaleY),this._updateTransform()},e.prototype.getRegion=function(t){return this._regionsMap.get(t)},e.prototype.getRegionByCoord=function(t){for(var e=this.regions,n=0;n<e.length;n++){var r=e[n];if("geoJSON"===r.type&&r.contain(t))return e[n]}},e.prototype.addGeoCoord=function(t,e){this._nameCoordMap.set(t,e)},e.prototype.getGeoCoord=function(t){var e=this._regionsMap.get(t);return this._nameCoordMap.get(t)||e&&e.getCenter()},e.prototype.dataToPoint=function(t,e,n){if(Wt(t)&&(t=this.getGeoCoord(t)),t){var r=this.projection;return r&&(t=r.project(t)),t&&this.projectedToPoint(t,e,n)}},e.prototype.pointToData=function(t){var e=this.projection;return e&&(t=e.unproject(t)),t&&this.pointToProjected(t)},e.prototype.pointToProjected=function(e){return t.prototype.pointToData.call(this,e)},e.prototype.projectedToPoint=function(e,n,r){return t.prototype.dataToPoint.call(this,e,n,r)},e.prototype.convertToPixel=function(t,e,n){var r=ZD(e);return r===this?r.dataToPoint(n):null},e.prototype.convertFromPixel=function(t,e,n){var r=ZD(e);return r===this?r.pointToData(n):null},e}(jD);function ZD(t){var e=t.geoModel,n=t.seriesModel;return e?e.coordinateSystem:n?n.coordinateSystem||(n.getReferringComponents("geo",tl).models[0]||{}).coordinateSystem:null}Mt(HD,jD);var GD=HD;function XD(t,e){var n=t.get("boundingCoords");if(null!=n){var r=n[0],i=n[1];if(isFinite(r[0])&&isFinite(r[1])&&isFinite(i[0])&&isFinite(i[1])){var o=this.projection;if(o){var a=r[0],s=r[1],l=i[0],u=i[1];r=[1/0,1/0],i=[-1/0,-1/0];var c=function(t,e,n,a){for(var s=n-t,l=a-e,u=0;u<=100;u++){var c=u/100,h=o.project([t+s*c,e+l*c]);je(r,r,h),Ve(i,i,h)}};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],i[0]-r[0],i[1]-r[1])}else 0}var h,d,p,f=this.getBoundingRect(),g=t.get("layoutCenter"),v=t.get("layoutSize"),m=e.getWidth(),y=e.getHeight(),b=f.width/f.height*this.aspectScale,_=!1;if(g&&v&&(h=[es(g[0],m),es(g[1],y)],d=es(v,Math.min(m,y)),isNaN(h[0])||isNaN(h[1])||isNaN(d)||(_=!0)),_)p={},b>1?(p.width=d,p.height=d/b):(p.height=d,p.width=d*b),p.y=h[1]-p.height/2,p.x=h[0]-p.width/2;else{var x=t.getBoxLayoutParams();x.aspect=b,p=af(x,{width:m,height:y})}this.setViewRect(p.x,p.y,p.width,p.height),this.setCenter(t.get("center"),e),this.setZoom(t.get("zoom"))}function UD(t,e){Pt(e.get("geoCoord"),(function(e,n){t.addGeoCoord(n,e)}))}var YD=function(){function t(){this.dimensions=QD}return t.prototype.create=function(t,e){var n=[];function r(t){return{nameProperty:t.get("nameProperty"),aspectScale:t.get("aspectScale"),projection:t.get("projection")}}t.eachComponent("geo",(function(t,i){var o=t.get("map"),a=new GD(o+i,o,Ot({nameMap:t.get("nameMap")},r(t)));a.zoomLimit=t.get("scaleLimit"),n.push(a),t.coordinateSystem=a,a.model=t,a.resize=XD,a.resize(t,e)})),t.eachSeries((function(t){var e=t.get("coordinateSystem");if("geo"===e){var r=t.get("geoIndex")||0;t.coordinateSystem=n[r]}}));var i={};return t.eachSeriesByType("map",(function(t){if(!t.getHostGeoModel()){var e=t.getMapType();i[e]=i[e]||[],i[e].push(t)}})),Pt(i,(function(t,i){var o=It(t,(function(t){return t.get("nameMap")})),a=new GD(i,i,Ot({nameMap:wt(o)},r(t[0])));a.zoomLimit=Kt.apply(null,It(t,(function(t){return t.get("scaleLimit")}))),n.push(a),a.resize=XD,a.resize(t[0],e),Pt(t,(function(t){t.coordinateSystem=a,UD(a,t)}))})),n},t.prototype.getFilledRegions=function(t,e,n,r){for(var i=(t||[]).slice(),o=de(),a=0;a<i.length;a++)o.set(i[a].name,i[a]);var s=vD.load(e,n,r);return Pt(s.regions,(function(t){var e=t.name;!o.get(e)&&i.push({name:e})})),i},t}(),qD=new YD,KD=qD,JD=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Q(e,t),e.prototype.init=function(t,e,n){var r=vD.getGeoResource(t.map);if(r&&"geoJSON"===r.type){var i=t.itemStyle=t.itemStyle||{};"color"in i||(i.color="#eee")}this.mergeDefaultAndTheme(t,n),Ts(t,"label",["show"])},e.prototype.optionUpdated=function(){var t=this,e=this.option;e.regions=KD.getFilledRegions(e.regions,e.map,e.nameMap,e.nameProperty);var n={};this._optionModelMap=$t(e.regions||[],(function(e,r){var i=r.name;return i&&(e.set(i,new Qd(r,t,t.ecModel)),r.selected&&(n[i]=!0)),e}),de()),e.selectedMap||(e.selectedMap=n)},e.prototype.getRegionModel=function(t){return this._optionModelMap.get(t)||new Qd(null,this,this.ecModel)},e.prototype.getFormattedLabel=function(t,e){var n=this.getRegionModel(t),r="normal"===e?n.get(["label","formatter"]):n.get(["emphasis","label","formatter"]),i={name:t};return Ft(r)?(i.status=e,r(i)):Wt(r)?r.replace("{a}",null!=t?t:""):void 0},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.select=function(t){var e=this.option,n=e.selectedMode;if(n){"multiple"!==n&&(e.selectedMap=null);var r=e.selectedMap||(e.selectedMap={});r[t]=!0}},e.prototype.unSelect=function(t){var e=this.option.selectedMap;e&&(e[t]=!1)},e.prototype.toggleSelected=function(t){this[this.isSelected(t)?"unSelect":"select"](t)},e.prototype.isSelected=function(t){var e=this.option.selectedMap;return!(!e||!e[t])},e.type="geo",e.layoutMode="box",e.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:[]},e}(vf),tL=JD;function eL(t,e){return t.pointToProjected?t.pointToProjected(e):t.pointToData(e)}function nL(t,e,n,r){var i=t.getZoom(),o=t.getCenter(),a=e.zoom,s=t.projectedToPoint?t.projectedToPoint(o):t.dataToPoint(o);if(null!=e.dx&&null!=e.dy&&(s[0]-=e.dx,s[1]-=e.dy,t.setCenter(eL(t,s),r)),null!=a){if(n){var l=n.min||0,u=n.max||1/0;a=Math.max(Math.min(i*a,u),l)/i}t.scaleX*=a,t.scaleY*=a;var c=(e.originX-t.x)*(a-1),h=(e.originY-t.y)*(a-1);t.x-=c,t.y-=h,t.updateTransform(),t.setCenter(eL(t,s),r),t.setZoom(a*i)}return{center:t.getCenter(),zoom:t.getZoom()}}var rL=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.focusBlurEnabled=!0,n}return Q(e,t),e.prototype.init=function(t,e){this._api=e},e.prototype.render=function(t,e,n,r){if(this._model=t,!t.get("show"))return this._mapDraw&&this._mapDraw.remove(),void(this._mapDraw=null);this._mapDraw||(this._mapDraw=new ID(n));var i=this._mapDraw;i.draw(t,e,n,this,r),i.group.on("click",this._handleRegionClick,this),i.group.silent=t.get("silent"),this.group.add(i.group),this.updateSelectStatus(t,e,n)},e.prototype._handleRegionClick=function(t){var e;hx(t.target,(function(t){return null!=(e=Qc(t).eventData)}),!0),e&&this._api.dispatchAction({type:"geoToggleSelect",geoId:this._model.id,name:e.name})},e.prototype.updateSelectStatus=function(t,e,n){var r=this;this._mapDraw.group.traverse((function(t){var e=Qc(t).eventData;if(e)return r._model.isSelected(e.name)?n.enterSelect(t):n.leaveSelect(t),!0}))},e.prototype.findHighDownDispatchers=function(t){return this._mapDraw&&this._mapDraw.findHighDownDispatchers(t,this._model)},e.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove()},e.type="geo",e}(Hm),iL=rL;function oL(t,e,n){vD.registerMap(t,e,n)}function aL(t){function e(e,n){n.update="geo:updateSelectStatus",t.registerAction(n,(function(t,n){var r={},i=[];return n.eachComponent({mainType:"geo",query:t},(function(n){n[e](t.name);var o=n.coordinateSystem;Pt(o.regions,(function(t){r[t.name]=n.isSelected(t.name)||!1}));var a=[];Pt(r,(function(t,e){r[e]&&a.push(e)})),i.push({geoIndex:n.componentIndex,name:a})})),{selected:r,allSelected:i,name:t.name}}))}t.registerCoordinateSystem("geo",KD),t.registerComponentModel(tL),t.registerComponentView(iL),t.registerImpl("registerMap",oL),t.registerImpl("getMap",(function(t){return vD.getMapForUser(t)})),e("toggleSelected",{type:"geoToggleSelect",event:"geoselectchanged"}),e("select",{type:"geoSelect",event:"geoselected"}),e("unSelect",{type:"geoUnSelect",event:"geounselected"}),t.registerAction({type:"geoRoam",event:"geoRoam",update:"updateTransform"},(function(t,e,n){var r=t.componentType||"series";e.eachComponent({mainType:r,query:t},(function(e){var i=e.coordinateSystem;if("geo"===i.type){var o=nL(i,t,e.get("scaleLimit"),n);e.setCenter&&e.setCenter(o.center),e.setZoom&&e.setZoom(o.zoom),"series"===r&&Pt(e.seriesGroup,(function(t){t.setCenter(o.center),t.setZoom(o.zoom)}))}}))}))}function sL(t){pS(aL),t.registerChartView(ED),t.registerSeriesModel(DD),t.registerLayout(zD),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,ND),lx("map",t.registerAction)}function lL(t){var e=t;e.hierNode={defaultAncestor:null,ancestor:e,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};var n,r,i=[e];while(n=i.pop())if(r=n.children,n.isExpand&&r.length)for(var o=r.length,a=o-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},i.push(s)}}function uL(t,e){var n=t.isExpand?t.children:[],r=t.parentNode.children,i=t.hierNode.i?r[t.hierNode.i-1]:null;if(n.length){fL(t);var o=(n[0].hierNode.prelim+n[n.length-1].hierNode.prelim)/2;i?(t.hierNode.prelim=i.hierNode.prelim+e(t,i),t.hierNode.modifier=t.hierNode.prelim-o):t.hierNode.prelim=o}else i&&(t.hierNode.prelim=i.hierNode.prelim+e(t,i));t.parentNode.hierNode.defaultAncestor=gL(t,i,t.parentNode.hierNode.defaultAncestor||r[0],e)}function cL(t){var e=t.hierNode.prelim+t.parentNode.hierNode.modifier;t.setLayout({x:e},!0),t.hierNode.modifier+=t.parentNode.hierNode.modifier}function hL(t){return arguments.length?t:_L}function dL(t,e){return t-=Math.PI/2,{x:e*Math.cos(t),y:e*Math.sin(t)}}function pL(t,e){return af(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function fL(t){var e=t.children,n=e.length,r=0,i=0;while(--n>=0){var o=e[n];o.hierNode.prelim+=r,o.hierNode.modifier+=r,i+=o.hierNode.change,r+=o.hierNode.shift+i}}function gL(t,e,n,r){if(e){var i=t,o=t,a=o.parentNode.children[0],s=e,l=i.hierNode.modifier,u=o.hierNode.modifier,c=a.hierNode.modifier,h=s.hierNode.modifier;while(s=vL(s),o=mL(o),s&&o){i=vL(i),a=mL(a),i.hierNode.ancestor=t;var d=s.hierNode.prelim+h-o.hierNode.prelim-u+r(s,o);d>0&&(bL(yL(s,t,n),t,d),u+=d,l+=d),h+=s.hierNode.modifier,u+=o.hierNode.modifier,l+=i.hierNode.modifier,c+=a.hierNode.modifier}s&&!vL(i)&&(i.hierNode.thread=s,i.hierNode.modifier+=h-l),o&&!mL(a)&&(a.hierNode.thread=o,a.hierNode.modifier+=u-c,n=t)}return n}function vL(t){var e=t.children;return e.length&&t.isExpand?e[e.length-1]:t.hierNode.thread}function mL(t){var e=t.children;return e.length&&t.isExpand?e[0]:t.hierNode.thread}function yL(t,e,n){return t.hierNode.ancestor.parentNode===e.parentNode?t.hierNode.ancestor:n}function bL(t,e,n){var r=n/(e.hierNode.i-t.hierNode.i);e.hierNode.change-=r,e.hierNode.shift+=n,e.hierNode.modifier+=n,e.hierNode.prelim+=n,t.hierNode.change+=r}function _L(t,e){return t.parentNode===e.parentNode?1:2}var xL=function(){function t(){this.parentPoint=[],this.childPoints=[]}return t}(),wL=function(t){function e(e){return t.call(this,e)||this}return Q(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new xL},e.prototype.buildPath=function(t,e){var n=e.childPoints,r=n.length,i=e.parentPoint,o=n[0],a=n[r-1];if(1===r)return t.moveTo(i[0],i[1]),void t.lineTo(o[0],o[1]);var s=e.orient,l="TB"===s||"BT"===s?0:1,u=1-l,c=es(e.forkPosition,1),h=[];h[l]=i[l],h[u]=i[u]+(a[u]-i[u])*c,t.moveTo(i[0],i[1]),t.lineTo(h[0],h[1]),t.moveTo(o[0],o[1]),h[l]=o[l],t.lineTo(h[0],h[1]),h[l]=a[l],t.lineTo(h[0],h[1]),t.lineTo(a[0],a[1]);for(var d=1;d<r-1;d++){var p=n[d];t.moveTo(p[0],p[1]),h[l]=p[l],t.lineTo(h[0],h[1])}},e}(lc),OL=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._mainGroup=new La,n}return Q(e,t),e.prototype.init=function(t,e){this._controller=new bR(e.getZr()),this._controllerHost={target:this.group},this.group.add(this._mainGroup)},e.prototype.render=function(t,e,n){var r=t.getData(),i=t.layoutInfo,o=this._mainGroup,a=t.get("layout");"radial"===a?(o.x=i.x+i.width/2,o.y=i.y+i.height/2):(o.x=i.x,o.y=i.y),this._updateViewCoordSys(t,n),this._updateController(t,e,n);var s=this._data;r.diff(s).add((function(e){SL(r,e)&&AL(r,e,null,o,t)})).update((function(e,n){var i=s.getItemGraphicEl(n);SL(r,e)?AL(r,e,i,o,t):i&&TL(s,n,i,o,t)})).remove((function(e){var n=s.getItemGraphicEl(e);n&&TL(s,e,n,o,t)})).execute(),this._nodeScaleRatio=t.get("nodeScaleRatio"),this._updateNodeAndLinkScale(t),!0===t.get("expandAndCollapse")&&r.eachItemGraphicEl((function(e,r){e.off("click").on("click",(function(){n.dispatchAction({type:"treeExpandAndCollapse",seriesId:t.id,dataIndex:r})}))})),this._data=r},e.prototype._updateViewCoordSys=function(t,e){var n=t.getData(),r=[];n.each((function(t){var e=n.getItemLayout(t);!e||isNaN(e.x)||isNaN(e.y)||r.push([+e.x,+e.y])}));var i=[],o=[];cu(r,i,o);var a=this._min,s=this._max;o[0]-i[0]===0&&(i[0]=a?a[0]:i[0]-1,o[0]=s?s[0]:o[0]+1),o[1]-i[1]===0&&(i[1]=a?a[1]:i[1]-1,o[1]=s?s[1]:o[1]+1);var l=t.coordinateSystem=new jD;l.zoomLimit=t.get("scaleLimit"),l.setBoundingRect(i[0],i[1],o[0]-i[0],o[1]-i[1]),l.setCenter(t.get("center"),e),l.setZoom(t.get("zoom")),this.group.attr({x:l.x,y:l.y,scaleX:l.scaleX,scaleY:l.scaleY}),this._min=i,this._max=o},e.prototype._updateController=function(t,e,n){var r=this,i=this._controller,o=this._controllerHost,a=this.group;i.setPointerChecker((function(e,r,i){var o=a.getBoundingRect();return o.applyTransform(a.transform),o.contain(r,i)&&!SR(e,n,t)})),i.enable(t.get("roam")),o.zoomLimit=t.get("scaleLimit"),o.zoom=t.coordinateSystem.getZoom(),i.off("pan").off("zoom").on("pan",(function(e){_R(o,e.dx,e.dy),n.dispatchAction({seriesId:t.id,type:"treeRoam",dx:e.dx,dy:e.dy})})).on("zoom",(function(e){xR(o,e.scale,e.originX,e.originY),n.dispatchAction({seriesId:t.id,type:"treeRoam",zoom:e.scale,originX:e.originX,originY:e.originY}),r._updateNodeAndLinkScale(t),n.updateLabelLayout()}))},e.prototype._updateNodeAndLinkScale=function(t){var e=t.getData(),n=this._getNodeGlobalScale(t);e.eachItemGraphicEl((function(t,e){t.setSymbolScale(n)}))},e.prototype._getNodeGlobalScale=function(t){var e=t.coordinateSystem;if("view"!==e.type)return 1;var n=this._nodeScaleRatio,r=e.scaleX||1,i=e.getZoom(),o=(i-1)*n+1;return o/r},e.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},e.prototype.remove=function(){this._mainGroup.removeAll(),this._data=null},e.type="tree",e}(d_);function SL(t,e){var n=t.getItemLayout(e);return n&&!isNaN(n.x)&&!isNaN(n.y)}function AL(t,e,n,r,i){var o=!n,a=t.tree.getNodeByDataIndex(e),s=a.getModel(),l=a.getVisual("style").fill,u=!1===a.isExpand&&0!==a.children.length?l:"#fff",c=t.tree.root,h=a.parentNode===c?a:a.parentNode||a,d=t.getItemGraphicEl(h.dataIndex),p=h.getLayout(),f=d?{x:d.__oldX,y:d.__oldY,rawX:d.__radialOldRawX,rawY:d.__radialOldRawY}:p,g=a.getLayout();o?(n=new vP(t,e,null,{symbolInnerColor:u,useNameLabel:!0}),n.x=f.x,n.y=f.y):n.updateData(t,e,null,{symbolInnerColor:u,useNameLabel:!0}),n.__radialOldRawX=n.__radialRawX,n.__radialOldRawY=n.__radialRawY,n.__radialRawX=g.rawX,n.__radialRawY=g.rawY,r.add(n),t.setItemGraphicEl(e,n),n.__oldX=n.x,n.__oldY=n.y,sd(n,{x:g.x,y:g.y},i);var v=n.getSymbolPath();if("radial"===i.get("layout")){var m=c.children[0],y=m.getLayout(),b=m.children.length,_=void 0,x=void 0;if(g.x===y.x&&!0===a.isExpand&&m.children.length){var w={x:(m.children[0].getLayout().x+m.children[b-1].getLayout().x)/2,y:(m.children[0].getLayout().y+m.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=v.getTextContent();C&&(v.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?pe(a.getAncestorsIndices(),a.getDescendantIndices()):"ancestor"===M?a.getAncestorsIndices():"descendant"===M?a.getDescendantIndices():null;T&&(Qc(n).focus=T),kL(i,a,c,n,f,p,g,r),n.__edge&&(n.onHoverStateChange=function(e){if("blur"!==e){var r=a.parentNode&&t.getItemGraphicEl(a.parentNode.dataIndex);r&&r.hoverState===qc||yh(n.__edge,e)}})}function kL(t,e,n,r,i,o,a,s){var l=e.getModel(),u=t.get("edgeShape"),c=t.get("layout"),h=t.getOrient(),d=t.get(["lineStyle","curveness"]),p=t.get("edgeForkPosition"),f=l.getModel("lineStyle").getLineStyle(),g=r.__edge;if("curve"===u)e.parentNode&&e.parentNode!==n&&(g||(g=r.__edge=new ob({shape:PL(c,h,d,i,i)})),sd(g,{shape:PL(c,h,d,o,a)},t));else if("polyline"===u)if("orthogonal"===c){if(e!==n&&e.children&&0!==e.children.length&&!0===e.isExpand){for(var v=e.children,m=[],y=0;y<v.length;y++){var b=v[y].getLayout();m.push([b.x,b.y])}g||(g=r.__edge=new wL({shape:{parentPoint:[a.x,a.y],childPoints:[[a.x,a.y]],orient:h,forkPosition:p}})),sd(g,{shape:{parentPoint:[a.x,a.y],childPoints:m}},t)}}else 0;g&&("polyline"!==u||e.isExpand)&&(g.useStyle(St({strokeNoScale:!0,fill:null},f)),Yh(g,l,"lineStyle"),Sh(g),s.add(g))}function CL(t,e,n,r,i){var o=e.tree.root,a=ML(o,t),s=a.source,l=a.sourceLayout,u=e.getItemGraphicEl(t.dataIndex);if(u){var c=e.getItemGraphicEl(s.dataIndex),h=c.__edge,d=u.__edge||(!1===s.isExpand||1===s.children.length?h:void 0),p=r.get("edgeShape"),f=r.get("layout"),g=r.get("orient"),v=r.get(["lineStyle","curveness"]);d&&("curve"===p?cd(d,{shape:PL(f,g,v,l,l),style:{opacity:0}},r,{cb:function(){n.remove(d)},removeOpt:i}):"polyline"===p&&"orthogonal"===r.get("layout")&&cd(d,{shape:{parentPoint:[l.x,l.y],childPoints:[[l.x,l.y]]},style:{opacity:0}},r,{cb:function(){n.remove(d)},removeOpt:i}))}}function ML(t,e){var n,r=e.parentNode===t?e:e.parentNode||e;while(n=r.getLayout(),null==n)r=r.parentNode===t?r:r.parentNode||r;return{source:r,sourceLayout:n}}function TL(t,e,n,r,i){var o=t.tree.getNodeByDataIndex(e),a=t.tree.root,s=ML(a,o).sourceLayout,l={duration:i.get("animationDurationUpdate"),easing:i.get("animationEasingUpdate")};cd(n,{x:s.x+1,y:s.y+1},i,{cb:function(){r.remove(n),t.setItemGraphicEl(e,null)},removeOpt:l}),n.fadeOut(null,t.hostModel,{fadeLabel:!0,animation:l}),o.children.forEach((function(e){CL(e,t,r,i,l)})),CL(o,t,r,i,l)}function PL(t,e,n,r,i){var o,a,s,l,u,c,h,d;if("radial"===t){u=r.rawX,h=r.rawY,c=i.rawX,d=i.rawY;var p=dL(u,h),f=dL(u,h+(d-h)*n),g=dL(c,d+(h-d)*n),v=dL(c,d);return{x1:p.x||0,y1:p.y||0,x2:v.x||0,y2:v.y||0,cpx1:f.x||0,cpy1:f.y||0,cpx2:g.x||0,cpy2:g.y||0}}return u=r.x,h=r.y,c=i.x,d=i.y,"LR"!==e&&"RL"!==e||(o=u+(c-u)*n,a=h,s=c+(u-c)*n,l=d),"TB"!==e&&"BT"!==e||(o=u,a=h+(d-h)*n,s=c,l=d+(h-d)*n),{x1:u,y1:h,x2:c,y2:d,cpx1:o,cpy1:a,cpx2:s,cpy2:l}}var IL=OL,$L=Ys();function EL(t){var e=t.mainData,n=t.datas;n||(n={main:e},t.datasAttr={main:"data"}),t.datas=t.mainData=null,FL(e,n,t),Pt(n,(function(n){Pt(e.TRANSFERABLE_METHODS,(function(e){n.wrapMethod(e,zt(RL,t))}))})),e.wrapMethod("cloneShallow",zt(LL,t)),Pt(e.CHANGABLE_METHODS,(function(n){e.wrapMethod(n,zt(DL,t))})),re(n[e.dataType]===e)}function RL(t,e){if(BL(this)){var n=Ot({},$L(this).datas);n[this.dataType]=e,FL(e,n,t)}else WL(e,this.dataType,$L(this).mainData,t);return e}function DL(t,e){return t.struct&&t.struct.update(),e}function LL(t,e){return Pt($L(e).datas,(function(n,r){n!==e&&WL(n.cloneShallow(),r,e,t)})),e}function NL(t){var e=$L(this).mainData;return null==t||null==e?e:$L(e).datas[t]}function zL(){var t=$L(this).mainData;return null==t?[{data:t}]:It(Dt($L(t).datas),(function(e){return{type:e,data:$L(t).datas[e]}}))}function BL(t){return $L(t).mainData===t}function FL(t,e,n){$L(t).datas={},Pt(e,(function(e,r){WL(e,r,t,n)}))}function WL(t,e,n,r){$L(n).datas[e]=t,$L(t).mainData=n,t.dataType=e,r.struct&&(t[r.structAttr]=r.struct,r.struct[r.datasAttr[e]]=t),t.getLinkedData=NL,t.getLinkedDataAll=zL}var jL=EL,VL=function(){function t(t,e){this.depth=0,this.height=0,this.dataIndex=-1,this.children=[],this.viewChildren=[],this.isExpand=!1,this.name=t||"",this.hostTree=e}return t.prototype.isRemoved=function(){return this.dataIndex<0},t.prototype.eachNode=function(t,e,n){Ft(t)&&(n=e,e=t,t=null),t=t||{},Wt(t)&&(t={order:t});var r,i=t.order||"preorder",o=this[t.attr||"children"];"preorder"===i&&(r=e.call(n,this));for(var a=0;!r&&a<o.length;a++)o[a].eachNode(t,e,n);"postorder"===i&&e.call(n,this)},t.prototype.updateDepthAndHeight=function(t){var e=0;this.depth=t;for(var n=0;n<this.children.length;n++){var r=this.children[n];r.updateDepthAndHeight(t+1),r.height>e&&(e=r.height)}this.height=e+1},t.prototype.getNodeById=function(t){if(this.getId()===t)return this;for(var e=0,n=this.children,r=n.length;e<r;e++){var i=n[e].getNodeById(t);if(i)return i}},t.prototype.contains=function(t){if(t===this)return!0;for(var e=0,n=this.children,r=n.length;e<r;e++){var i=n[e].contains(t);if(i)return i}},t.prototype.getAncestors=function(t){var e=[],n=t?this:this.parentNode;while(n)e.push(n),n=n.parentNode;return e.reverse(),e},t.prototype.getAncestorsIndices=function(){var t=[],e=this;while(e)t.push(e.dataIndex),e=e.parentNode;return t.reverse(),t},t.prototype.getDescendantIndices=function(){var t=[];return this.eachNode((function(e){t.push(e.dataIndex)})),t},t.prototype.getValue=function(t){var e=this.hostTree.data;return e.getStore().get(e.getDimensionIndex(t||"value"),this.dataIndex)},t.prototype.setLayout=function(t,e){this.dataIndex>=0&&this.hostTree.data.setItemLayout(this.dataIndex,t,e)},t.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},t.prototype.getModel=function(t){if(!(this.dataIndex<0)){var e=this.hostTree,n=e.data.getItemModel(this.dataIndex);return n.getModel(t)}},t.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},t.prototype.setVisual=function(t,e){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,t,e)},t.prototype.getVisual=function(t){return this.hostTree.data.getItemVisual(this.dataIndex,t)},t.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},t.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},t.prototype.getChildIndex=function(){if(this.parentNode){for(var t=this.parentNode.children,e=0;e<t.length;++e)if(t[e]===this)return e;return-1}return-1},t.prototype.isAncestorOf=function(t){var e=t.parentNode;while(e){if(e===this)return!0;e=e.parentNode}return!1},t.prototype.isDescendantOf=function(t){return t!==this&&t.isAncestorOf(this)},t}(),QL=function(){function t(t){this.type="tree",this._nodes=[],this.hostModel=t}return t.prototype.eachNode=function(t,e,n){this.root.eachNode(t,e,n)},t.prototype.getNodeByDataIndex=function(t){var e=this.data.getRawIndex(t);return this._nodes[e]},t.prototype.getNodeById=function(t){return this.root.getNodeById(t)},t.prototype.update=function(){for(var t=this.data,e=this._nodes,n=0,r=e.length;n<r;n++)e[n].dataIndex=-1;for(n=0,r=t.count();n<r;n++)e[t.getRawIndex(n)].dataIndex=n},t.prototype.clearLayouts=function(){this.data.clearItemLayouts()},t.createTree=function(e,n,r){var i=new t(n),o=[],a=1;function s(t,e){var n=t.value;a=Math.max(a,Bt(n)?n.length:1),o.push(t);var r=new VL(js(t.name,""),i);e?HL(r,e):i.root=r,i._nodes.push(r);var l=t.children;if(l)for(var u=0;u<l.length;u++)s(l[u],r)}s(e),i.root.updateDepthAndHeight(0);var l=US(o,{coordDimensions:["value"],dimensionsCount:a}).dimensions,u=new GS(l,n);return u.initData(o),r&&r(u),jL({mainData:u,struct:i,structAttr:"tree"}),i.update(),i},t}();function HL(t,e){var n=e.children;t.parentNode!==e&&(n.push(t),t.parentNode=e)}var ZL=QL;function GL(t,e,n){if(t&&kt(e,t.type)>=0){var r=n.getData().tree.root,i=t.targetNode;if(Wt(i)&&(i=r.getNodeById(i)),i&&r.contains(i))return{node:i};var o=t.targetNodeId;if(null!=o&&(i=r.getNodeById(o)))return{node:i}}}function XL(t){var e=[];while(t)t=t.parentNode,t&&e.push(t);return e.reverse()}function UL(t,e){var n=XL(t);return kt(n,e)>=0}function YL(t,e){var n=[];while(t){var r=t.dataIndex;n.push({name:t.name,dataIndex:r,value:e.getRawValue(r)}),t=t.parentNode}return n.reverse(),n}var qL=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.hasSymbolVisual=!0,e.ignoreStyleOnData=!0,e}return Q(e,t),e.prototype.getInitialData=function(t){var e={name:t.name,children:t.data},n=t.leaves||{},r=new Qd(n,this,this.ecModel),i=ZL.createTree(e,this,o);function o(t){t.wrapMethod("getItemModel",(function(t,e){var n=i.getNodeByDataIndex(e);return n&&n.children.length&&n.isExpand||(t.parentModel=r),t}))}var a=0;i.eachNode("preorder",(function(t){t.depth>a&&(a=t.depth)}));var s=t.expandAndCollapse,l=s&&t.initialTreeDepth>=0?t.initialTreeDepth:a;return i.root.eachNode("preorder",(function(t){var e=t.hostTree.data.getRawDataItem(t.dataIndex);t.isExpand=e&&null!=e.collapsed?!e.collapsed:t.depth<=l})),i.data},e.prototype.getOrient=function(){var t=this.get("orient");return"horizontal"===t?t="LR":"vertical"===t&&(t="TB"),t},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.formatTooltip=function(t,e,n){var r=this.getData().tree,i=r.root.children[0],o=r.getNodeByDataIndex(t),a=o.getValue(),s=o.name;while(o&&o!==i)s=o.parentNode.name+"."+s,o=o.parentNode;return pm("nameValue",{name:s,value:a,noValue:isNaN(a)||null==a})},e.prototype.getDataParams=function(e){var n=t.prototype.getDataParams.apply(this,arguments),r=this.getData().tree.getNodeByDataIndex(e);return n.treeAncestors=YL(r,this),n.collapsed=!r.isExpand,n},e.type="series.tree",e.layoutMode="box",e.defaultOption={z:2,coordinateSystem:"view",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",edgeShape:"curve",edgeForkPosition:"50%",roam:!1,nodeScaleRatio:.4,center:null,zoom:1,orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:"#ccc",width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderWidth:1.5},label:{show:!0},animationEasing:"linear",animationDuration:700,animationDurationUpdate:500},e}(Vm),KL=qL;function JL(t,e,n){var r,i=[t],o=[];while(r=i.pop())if(o.push(r),r.isExpand){var a=r.children;if(a.length)for(var s=0;s<a.length;s++)i.push(a[s])}while(r=o.pop())e(r,n)}function tN(t,e){var n,r=[t];while(n=r.pop())if(e(n),n.isExpand){var i=n.children;if(i.length)for(var o=i.length-1;o>=0;o--)r.push(i[o])}}function eN(t,e){t.eachSeriesByType("tree",(function(t){nN(t,e)}))}function nN(t,e){var n=pL(t,e);t.layoutInfo=n;var r=t.get("layout"),i=0,o=0,a=null;"radial"===r?(i=2*Math.PI,o=Math.min(n.height,n.width)/2,a=hL((function(t,e){return(t.parentNode===e.parentNode?1:2)/t.depth}))):(i=n.width,o=n.height,a=hL());var s=t.getData().tree.root,l=s.children[0];if(l){lL(s),JL(l,uL,a),s.hierNode.modifier=-l.hierNode.prelim,tN(l,cL);var u=l,c=l,h=l;tN(l,(function(t){var e=t.getLayout().x;e<u.getLayout().x&&(u=t),e>c.getLayout().x&&(c=t),t.depth>h.depth&&(h=t)}));var d=u===c?1:a(u,c)/2,p=d-u.getLayout().x,f=0,g=0,v=0,m=0;if("radial"===r)f=i/(c.getLayout().x+d+p),g=o/(h.depth-1||1),tN(l,(function(t){v=(t.getLayout().x+p)*f,m=(t.depth-1)*g;var e=dL(v,m);t.setLayout({x:e.x,y:e.y,rawX:v,rawY:m},!0)}));else{var y=t.getOrient();"RL"===y||"LR"===y?(g=o/(c.getLayout().x+d+p),f=i/(h.depth-1||1),tN(l,(function(t){m=(t.getLayout().x+p)*g,v="LR"===y?(t.depth-1)*f:i-(t.depth-1)*f,t.setLayout({x:v,y:m},!0)}))):"TB"!==y&&"BT"!==y||(f=i/(c.getLayout().x+d+p),g=o/(h.depth-1||1),tN(l,(function(t){v=(t.getLayout().x+p)*f,m="TB"===y?(t.depth-1)*g:o-(t.depth-1)*g,t.setLayout({x:v,y:m},!0)})))}}}function rN(t){t.eachSeriesByType("tree",(function(t){var e=t.getData(),n=e.tree;n.eachNode((function(t){var n=t.getModel(),r=n.getModel("itemStyle").getItemStyle(),i=e.ensureUniqueItemVisual(t.dataIndex,"style");Ot(i,r)}))}))}function iN(t){t.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},(function(t,e){e.eachComponent({mainType:"series",subType:"tree",query:t},(function(e){var n=t.dataIndex,r=e.getData().tree,i=r.getNodeByDataIndex(n);i.isExpand=!i.isExpand}))})),t.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},(function(t,e,n){e.eachComponent({mainType:"series",subType:"tree",query:t},(function(e){var r=e.coordinateSystem,i=nL(r,t,void 0,n);e.setCenter&&e.setCenter(i.center),e.setZoom&&e.setZoom(i.zoom)}))}))}function oN(t){t.registerChartView(IL),t.registerSeriesModel(KL),t.registerLayout(eN),t.registerVisual(rN),iN(t)}var aN=["treemapZoomToNode","treemapRender","treemapMove"];function sN(t){for(var e=0;e<aN.length;e++)t.registerAction({type:aN[e],update:"updateView"},me);t.registerAction({type:"treemapRootToNode",update:"updateView"},(function(t,e){function n(e,n){var r=["treemapZoomToNode","treemapRootToNode"],i=GL(t,r,e);if(i){var o=e.getViewRoot();o&&(t.direction=UL(o,i.node)?"rollUp":"drillDown"),e.resetViewRoot(i.node)}}e.eachComponent({mainType:"series",subType:"treemap",query:t},n)}))}function lN(t){var e=t.getData(),n=e.tree,r={};n.eachNode((function(e){var n=e;while(n&&n.depth>1)n=n.parentNode;var i=Gf(t.ecModel,n.name||n.dataIndex+"",r);e.setVisual("decal",i)}))}var uN=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.preventUsingHoverLayer=!0,n}return Q(e,t),e.prototype.getInitialData=function(t,e){var n={name:t.name,children:t.data};cN(n);var r=t.levels||[],i=this.designatedVisualItemStyle={},o=new Qd({itemStyle:i},this,e);r=t.levels=hN(r,e);var a=It(r||[],(function(t){return new Qd(t,o,e)}),this),s=ZL.createTree(n,this,l);function l(t){t.wrapMethod("getItemModel",(function(t,e){var n=s.getNodeByDataIndex(e),r=n?a[n.depth]:null;return t.parentModel=r||o,t}))}return s.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.formatTooltip=function(t,e,n){var r=this.getData(),i=this.getRawValue(t),o=r.getName(t);return pm("nameValue",{name:o,value:i})},e.prototype.getDataParams=function(e){var n=t.prototype.getDataParams.apply(this,arguments),r=this.getData().tree.getNodeByDataIndex(e);return n.treeAncestors=YL(r,this),n.treePathInfo=n.treeAncestors,n},e.prototype.setLayoutInfo=function(t){this.layoutInfo=this.layoutInfo||{},Ot(this.layoutInfo,t)},e.prototype.mapIdToIndex=function(t){var e=this._idIndexMap;e||(e=this._idIndexMap=de(),this._idIndexMapCount=0);var n=e.get(t);return null==n&&e.set(t,n=this._idIndexMapCount++),n},e.prototype.getViewRoot=function(){return this._viewRoot},e.prototype.resetViewRoot=function(t){t?this._viewRoot=t:t=this._viewRoot;var e=this.getRawData().tree.root;t&&(t===e||e.contains(t))||(this._viewRoot=e)},e.prototype.enableAriaDecal=function(){lN(this)},e.type="series.treemap",e.layoutMode="box",e.defaultOption={progressive:0,left:"center",top:"middle",width:"80%",height:"80%",sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"▶",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:[]},e}(Vm);function cN(t){var e=0;Pt(t.children,(function(t){cN(t);var n=t.value;Bt(n)&&(n=n[0]),e+=n}));var n=t.value;Bt(n)&&(n=n[0]),(null==n||isNaN(n))&&(n=e),n<0&&(n=0),Bt(t.value)?t.value[0]=n:t.value=n}function hN(t,e){var n=Ms(e.get("color")),r=Ms(e.get(["aria","decal","decals"]));if(n){var i,o;t=t||[],Pt(t,(function(t){var e=new Qd(t),n=e.get("color"),r=e.get("decal");(e.get(["itemStyle","color"])||n&&"none"!==n)&&(i=!0),(e.get(["itemStyle","decal"])||r&&"none"!==r)&&(o=!0)}));var a=t[0]||(t[0]={});return i||(a.color=n.slice()),!o&&r&&(a.decal=r.slice()),t}}var dN=uN,pN=8,fN=8,gN=5,vN=function(){function t(t){this.group=new La,t.add(this.group)}return t.prototype.render=function(t,e,n,r){var i=t.getModel("breadcrumb"),o=this.group;if(o.removeAll(),i.get("show")&&n){var a=i.getModel("itemStyle"),s=i.getModel("emphasis"),l=a.getModel("textStyle"),u=s.getModel(["itemStyle","textStyle"]),c={pos:{left:i.get("left"),right:i.get("right"),top:i.get("top"),bottom:i.get("bottom")},box:{width:e.getWidth(),height:e.getHeight()},emptyItemWidth:i.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(n,c,l),this._renderContent(t,c,a,s,l,u,r),sf(o,c.pos,c.box)}},t.prototype._prepare=function(t,e,n){for(var r=t;r;r=r.parentNode){var i=js(r.getModel().get("name"),""),o=n.getTextRect(i),a=Math.max(o.width+2*pN,e.emptyItemWidth);e.totalWidth+=a+fN,e.renderList.push({node:r,text:i,width:a})}},t.prototype._renderContent=function(t,e,n,r,i,o,a){for(var s=0,l=e.emptyItemWidth,u=t.get(["breadcrumb","height"]),c=of(e.pos,e.box),h=e.totalWidth,d=e.renderList,p=r.getModel("itemStyle").getItemStyle(),f=d.length-1;f>=0;f--){var g=d[f],v=g.node,m=g.width,y=g.text;h>c.width&&(h-=m-l,m=l,y=null);var b=new Gy({shape:{points:mN(s,0,m,u,f===d.length-1,0===f)},style:St(n.getItemStyle(),{lineJoin:"bevel"}),textContent:new Vc({style:_d(i,{text:y})}),textConfig:{position:"inside"},z2:1e4*eh,onclick:zt(a,v)});b.disableLabelAnimation=!0,b.getTextContent().ensureState("emphasis").style=_d(o,{text:y}),b.ensureState("emphasis").style=p,Zh(b,r.get("focus"),r.get("blurScope"),r.get("disabled")),this.group.add(b),yN(b,t,v),s+=m+fN}},t.prototype.remove=function(){this.group.removeAll()},t}();function mN(t,e,n,r,i,o){var a=[[i?t:t-gN,e],[t+n,e],[t+n,e+r],[i?t:t-gN,e+r]];return!o&&a.splice(2,0,[t+n+gN,e+r/2]),!i&&a.push([t,e+r/2]),a}function yN(t,e,n){Qc(t).eventData={componentType:"series",componentSubType:"treemap",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:n&&n.dataIndex,name:n&&n.name},treePathInfo:n&&YL(n,e)}}var bN=vN,_N=function(){function t(){this._storage=[],this._elExistsMap={}}return t.prototype.add=function(t,e,n,r,i){return!this._elExistsMap[t.id]&&(this._elExistsMap[t.id]=!0,this._storage.push({el:t,target:e,duration:n,delay:r,easing:i}),!0)},t.prototype.finished=function(t){return this._finishedCallback=t,this},t.prototype.start=function(){for(var t=this,e=this._storage.length,n=function(){e--,e<=0&&(t._storage.length=0,t._elExistsMap={},t._finishedCallback&&t._finishedCallback())},r=0,i=this._storage.length;r<i;r++){var o=this._storage[r];o.el.animateTo(o.target,{duration:o.duration,delay:o.delay,easing:o.easing,setToFinal:!0,done:n,aborted:n})}return this},t}();function xN(){return new _N}var wN=La,ON=Ac,SN=3,AN="label",kN="upperLabel",CN=10*eh,MN=2*eh,TN=3*eh,PN=wl([["fill","color"],["stroke","strokeColor"],["lineWidth","strokeWidth"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),IN=function(t){var e=PN(t);return e.stroke=e.fill=e.lineWidth=null,e},$N=Ys(),EN=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._state="ready",n._storage=RN(),n}return Q(e,t),e.prototype.render=function(t,e,n,r){var i=e.findComponents({mainType:"series",subType:"treemap",query:r});if(!(kt(i,t)<0)){this.seriesModel=t,this.api=n,this.ecModel=e;var o=["treemapZoomToNode","treemapRootToNode"],a=GL(r,o,t),s=r&&r.type,l=t.layoutInfo,u=!this._oldTree,c=this._storage,h="treemapRootToNode"===s&&a&&c?{rootNodeGroup:c.nodeGroup[a.node.getRawIndex()],direction:r.direction}:null,d=this._giveContainerGroup(l),p=t.get("animation"),f=this._doRender(d,t,h);!p||u||s&&"treemapZoomToNode"!==s&&"treemapRootToNode"!==s?f.renderFinally():this._doAnimation(d,f,t,h),this._resetController(n),this._renderBreadcrumb(t,n,a)}},e.prototype._giveContainerGroup=function(t){var e=this._containerGroup;return e||(e=this._containerGroup=new wN,this._initEvents(e),this.group.add(e)),e.x=t.x,e.y=t.y,e},e.prototype._doRender=function(t,e,n){var r=e.getData().tree,i=this._oldTree,o=RN(),a=RN(),s=this._storage,l=[];function u(t,r,i,u){return DN(e,a,s,n,o,l,t,r,i,u)}p(r.root?[r.root]:[],i&&i.root?[i.root]:[],t,r===i||!i,0);var c=f(s);if(this._oldTree=r,this._storage=a,this._controllerHost){var h=this.seriesModel.layoutInfo,d=r.root.getLayout();d.width===h.width&&d.height===h.height&&(this._controllerHost.zoom=1)}return{lastsForAnimation:o,willDeleteEls:c,renderFinally:g};function p(t,e,n,r,i){function o(t){return t.getId()}function a(o,a){var s=null!=o?t[o]:null,l=null!=a?e[a]:null,c=u(s,l,n,i);c&&p(s&&s.viewChildren||[],l&&l.viewChildren||[],c,r,i+1)}r?(e=t,Pt(t,(function(t,e){!t.isRemoved()&&a(e,e)}))):new mS(e,t,o,o).add(a).update(a).remove(zt(a,null)).execute()}function f(t){var e=RN();return t&&Pt(t,(function(t,n){var r=e[n];Pt(t,(function(t){t&&(r.push(t),$N(t).willDelete=!0)}))})),e}function g(){Pt(c,(function(t){Pt(t,(function(t){t.parent&&t.parent.remove(t)}))})),Pt(l,(function(t){t.invisible=!0,t.dirty()}))}},e.prototype._doAnimation=function(t,e,n,r){var i=n.get("animationDurationUpdate"),o=n.get("animationEasing"),a=(Ft(i)?0:i)||0,s=(Ft(o)?null:o)||"cubicOut",l=xN();Pt(e.willDeleteEls,(function(t,e){Pt(t,(function(t,n){if(!t.invisible){var i,o=t.parent,u=$N(o);if(r&&"drillDown"===r.direction)i=o===r.rootNodeGroup?{shape:{x:0,y:0,width:u.nodeWidth,height:u.nodeHeight},style:{opacity:0}}:{style:{opacity:0}};else{var c=0,h=0;u.willDelete||(c=u.nodeWidth/2,h=u.nodeHeight/2),i="nodeGroup"===e?{x:c,y:h,style:{opacity:0}}:{shape:{x:c,y:h,width:0,height:0},style:{opacity:0}}}i&&l.add(t,i,a,0,s)}}))})),Pt(this._storage,(function(t,n){Pt(t,(function(t,r){var i=e.lastsForAnimation[n][r],o={};i&&(t instanceof La?null!=i.oldX&&(o.x=t.x,o.y=t.y,t.x=i.oldX,t.y=i.oldY):(i.oldShape&&(o.shape=Ot({},t.shape),t.setShape(i.oldShape)),i.fadein?(t.setStyle("opacity",0),o.style={opacity:1}):1!==t.style.opacity&&(o.style={opacity:1})),l.add(t,o,a,0,s))}))}),this),this._state="animating",l.finished(Nt((function(){this._state="ready",e.renderFinally()}),this)).start()},e.prototype._resetController=function(t){var e=this._controller,n=this._controllerHost;n||(this._controllerHost={target:this.group},n=this._controllerHost),e||(e=this._controller=new bR(t.getZr()),e.enable(this.seriesModel.get("roam")),n.zoomLimit=this.seriesModel.get("scaleLimit"),n.zoom=this.seriesModel.get("zoom"),e.on("pan",Nt(this._onPan,this)),e.on("zoom",Nt(this._onZoom,this)));var r=new Hn(0,0,t.getWidth(),t.getHeight());e.setPointerChecker((function(t,e,n){return r.contain(e,n)}))},e.prototype._clearController=function(){var t=this._controller;this._controllerHost=null,t&&(t.dispose(),t=null)},e.prototype._onPan=function(t){if("animating"!==this._state&&(Math.abs(t.dx)>SN||Math.abs(t.dy)>SN)){var e=this.seriesModel.getData().tree.root;if(!e)return;var n=e.getLayout();if(!n)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:n.x+t.dx,y:n.y+t.dy,width:n.width,height:n.height}})}},e.prototype._onZoom=function(t){var e=t.originX,n=t.originY,r=t.scale;if("animating"!==this._state){var i=this.seriesModel.getData().tree.root;if(!i)return;var o=i.getLayout();if(!o)return;var a=new Hn(o.x,o.y,o.width,o.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,h=s.max||1/0;u=Math.max(Math.min(h,u),c)}var d=u/l.zoom;l.zoom=u;var p=this.seriesModel.layoutInfo;e-=p.x,n-=p.y;var f=An();Tn(f,f,[-e,-n]),In(f,f,[d,d]),Tn(f,f,[e,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}})}},e.prototype._initEvents=function(t){var e=this;t.on("click",(function(t){if("ready"===e._state){var n=e.seriesModel.get("nodeClick",!0);if(n){var r=e.findTarget(t.offsetX,t.offsetY);if(r){var i=r.node;if(i.getLayout().isLeafRoot)e._rootToNode(r);else if("zoomToNode"===n)e._zoomToNode(r);else if("link"===n){var o=i.hostTree.data.getItemModel(i.dataIndex),a=o.get("link",!0),s=o.get("target",!0)||"blank";a&&Kp(a,s)}}}}}),this)},e.prototype._renderBreadcrumb=function(t,e,n){var r=this;n||(n=null!=t.get("leafDepth",!0)?{node:t.getViewRoot()}:this.findTarget(e.getWidth()/2,e.getHeight()/2),n||(n={node:t.getData().tree.root})),(this._breadcrumb||(this._breadcrumb=new bN(this.group))).render(t,e,n.node,(function(e){"animating"!==r._state&&(UL(t.getViewRoot(),e)?r._rootToNode({node:e}):r._zoomToNode({node:e}))}))},e.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=RN(),this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},e.prototype.dispose=function(){this._clearController()},e.prototype._zoomToNode=function(t){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},e.prototype._rootToNode=function(t){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},e.prototype.findTarget=function(t,e){var n,r=this.seriesModel.getViewRoot();return r.eachNode({attr:"viewChildren",order:"preorder"},(function(r){var i=this._storage.background[r.getRawIndex()];if(i){var o=i.transformCoordToLocal(t,e),a=i.shape;if(!(a.x<=o[0]&&o[0]<=a.x+a.width&&a.y<=o[1]&&o[1]<=a.y+a.height))return!1;n={node:r,offsetX:o[0],offsetY:o[1]}}}),this),n},e.type="treemap",e}(d_);function RN(){return{nodeGroup:[],background:[],content:[]}}function DN(t,e,n,r,i,o,a,s,l,u){if(a){var c=a.getLayout(),h=t.getData(),d=a.getModel();if(h.setItemGraphicEl(a.dataIndex,null),c&&c.isInView){var p=c.width,f=c.height,g=c.borderWidth,v=c.invisible,m=a.getRawIndex(),y=s&&s.getRawIndex(),b=a.viewChildren,_=c.upperHeight,x=b&&b.length,w=d.getModel("itemStyle"),O=d.getModel(["emphasis","itemStyle"]),S=d.getModel(["blur","itemStyle"]),A=d.getModel(["select","itemStyle"]),k=w.get("borderRadius")||0,C=F("nodeGroup",wN);if(C){if(l.add(C),C.x=c.x||0,C.y=c.y||0,C.markRedraw(),$N(C).nodeWidth=p,$N(C).nodeHeight=f,c.isAboveViewRoot)return C;var M=F("background",ON,u,MN);M&&D(C,M,x&&c.upperLabelHeight);var T=d.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)Kh(C)&&qh(C,!1),M&&(qh(M,!$),h.setItemGraphicEl(a.dataIndex,M),Gh(M,E,I));else{var R=F("content",ON,u,TN);R&&L(C,R),M.disableMorphing=!0,M&&Kh(M)&&qh(M,!1),qh(C,!$),h.setItemGraphicEl(a.dataIndex,C),Gh(C,E,I)}return C}}}function D(e,n,r){var i=Qc(n);if(i.dataIndex=a.dataIndex,i.seriesIndex=t.seriesIndex,n.setShape({x:0,y:0,width:p,height:f,r:k}),v)N(n);else{n.invisible=!1;var o=a.getVisual("style"),s=o.stroke,l=IN(w);l.fill=s;var u=PN(O);u.fill=O.get("borderColor");var c=PN(S);c.fill=S.get("borderColor");var h=PN(A);if(h.fill=A.get("borderColor"),r){var d=p-2*g;z(n,s,o.opacity,{x:g,y:0,width:d,height:_})}else n.removeTextContent();n.setStyle(l),n.ensureState("emphasis").style=u,n.ensureState("blur").style=c,n.ensureState("select").style=h,Sh(n)}e.add(n)}function L(e,n){var r=Qc(n);r.dataIndex=a.dataIndex,r.seriesIndex=t.seriesIndex;var i=Math.max(p-2*g,0),o=Math.max(f-2*g,0);if(n.culling=!0,n.setShape({x:g,y:g,width:i,height:o,r:k}),v)N(n);else{n.invisible=!1;var s=a.getVisual("style"),l=s.fill,u=IN(w);u.fill=l,u.decal=s.decal;var c=PN(O),h=PN(S),d=PN(A);z(n,l,s.opacity,null),n.setStyle(u),n.ensureState("emphasis").style=c,n.ensureState("blur").style=h,n.ensureState("select").style=d,Sh(n)}e.add(n)}function N(t){!t.invisible&&o.push(t)}function z(e,n,r,i){var o=d.getModel(i?kN:AN),s=js(d.get("name"),null),l=o.getShallow("show");yd(e,bd(d,i?kN:AN),{defaultText:l?s:null,inheritColor:n,defaultOpacity:r,labelFetcher:t,labelDataIndex:a.dataIndex});var u=e.getTextContent();if(u){var h=u.style,p=ne(h.padding||0);i&&(e.setTextConfig({layoutRect:i}),u.disableLabelLayout=!0),u.beforeUpdate=function(){var t=Math.max((i?i.width:e.shape.width)-p[1]-p[3],0),n=Math.max((i?i.height:e.shape.height)-p[0]-p[2],0);h.width===t&&h.height===n||u.setStyle({width:t,height:n})},h.truncateMinChar=2,h.lineOverflow="truncate",B(h,i,c);var f=u.getState("emphasis");B(f?f.style:null,i,c)}}function B(e,n,r){var i=e?e.text:null;if(!n&&r.isLeafRoot&&null!=i){var o=t.get("drillDownIcon",!0);e.text=o?o+" "+i:i}}function F(t,r,o,a){var s=null!=y&&n[t][y],l=i[t];return s?(n[t][y]=null,W(l,s)):v||(s=new r,s instanceof eu&&(s.z2=LN(o,a)),j(l,s)),e[t][m]=s}function W(t,e){var n=t[m]={};e instanceof wN?(n.oldX=e.x,n.oldY=e.y):n.oldShape=Ot({},e.shape)}function j(t,e){var n=t[m]={},o=a.parentNode,s=e instanceof La;if(o&&(!r||"drillDown"===r.direction)){var l=0,u=0,c=i.background[o.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 LN(t,e){return t*CN+e}var NN=EN,zN=Pt,BN=Qt,FN=-1,WN=function(){function t(e){var n=e.mappingMethod,r=e.type,i=this.option=_t(e);this.type=r,this.mappingMethod=n,this._normalizeData=JN[n];var o=t.visualHandlers[r];this.applyVisual=o.applyVisual,this.getColorMapper=o.getColorMapper,this._normalizedToVisual=o._normalizedToVisual[n],"piecewise"===n?(QN(i),jN(i)):"category"===n?i.categories?VN(i):QN(i,!0):(re("linear"!==n||i.dataExtent),QN(i))}return t.prototype.mapValueToVisual=function(t){var e=this._normalizeData(t);return this._normalizedToVisual(e,t)},t.prototype.getNormalizer=function(){return Nt(this._normalizeData,this)},t.listVisualTypes=function(){return Dt(t.visualHandlers)},t.isValidType=function(e){return t.visualHandlers.hasOwnProperty(e)},t.eachVisual=function(t,e,n){Qt(t)?Pt(t,e,n):e.call(n,t)},t.mapVisual=function(e,n,r){var i,o=Bt(e)?[]:Qt(e)?{}:(i=!0,null);return t.eachVisual(e,(function(t,e){var a=n.call(r,t,e);i?o=a:o[e]=a})),o},t.retrieveVisuals=function(e){var n,r={};return e&&zN(t.visualHandlers,(function(t,i){e.hasOwnProperty(i)&&(r[i]=e[i],n=!0)})),n?r:null},t.prepareVisualTypes=function(t){if(Bt(t))t=t.slice();else{if(!BN(t))return[];var e=[];zN(t,(function(t,n){e.push(n)})),t=e}return t.sort((function(t,e){return"color"===e&&"color"!==t&&0===t.indexOf("color")?1:-1})),t},t.dependsOn=function(t,e){return"color"===e?!(!t||0!==t.indexOf(e)):t===e},t.findPieceIndex=function(t,e,n){for(var r,i=1/0,o=0,a=e.length;o<a;o++){var s=e[o].value;if(null!=s){if(s===t||Wt(s)&&s===t+"")return o;n&&h(s,o)}}for(o=0,a=e.length;o<a;o++){var l=e[o],u=l.interval,c=l.close;if(u){if(u[0]===-1/0){if(tz(c[1],t,u[1]))return o}else if(u[1]===1/0){if(tz(c[0],u[0],t))return o}else if(tz(c[0],u[0],t)&&tz(c[1],t,u[1]))return o;n&&h(u[0],o),n&&h(u[1],o)}}if(n)return t===1/0?e.length-1:t===-1/0?0:r;function h(e,n){var o=Math.abs(e-t);o<i&&(i=o,r=n)}},t.visualHandlers={color:{applyVisual:GN("color"),getColorMapper:function(){var t=this.option;return Nt("category"===t.mappingMethod?function(t,e){return!e&&(t=this._normalizeData(t)),XN.call(this,t)}:function(e,n,r){var i=!!r;return!n&&(e=this._normalizeData(e)),r=Oi(e,t.parsedVisual,r),i?r:Ti(r,"rgba")},this)},_normalizedToVisual:{linear:function(t){return Ti(Oi(t,this.option.parsedVisual),"rgba")},category:XN,piecewise:function(t,e){var n=qN.call(this,e);return null==n&&(n=Ti(Oi(t,this.option.parsedVisual),"rgba")),n},fixed:UN}},colorHue:HN((function(t,e){return Ci(t,e)})),colorSaturation:HN((function(t,e){return Ci(t,null,e)})),colorLightness:HN((function(t,e){return Ci(t,null,null,e)})),colorAlpha:HN((function(t,e){return Mi(t,e)})),decal:{applyVisual:GN("decal"),_normalizedToVisual:{linear:null,category:XN,piecewise:null,fixed:null}},opacity:{applyVisual:GN("opacity"),_normalizedToVisual:YN([0,1])},liftZ:{applyVisual:GN("liftZ"),_normalizedToVisual:{linear:UN,category:UN,piecewise:UN,fixed:UN}},symbol:{applyVisual:function(t,e,n){var r=this.mapValueToVisual(t);n("symbol",r)},_normalizedToVisual:{linear:ZN,category:XN,piecewise:function(t,e){var n=qN.call(this,e);return null==n&&(n=ZN.call(this,t)),n},fixed:UN}},symbolSize:{applyVisual:GN("symbolSize"),_normalizedToVisual:YN([0,1])}},t}();function jN(t){var e=t.pieceList;t.hasSpecialVisual=!1,Pt(e,(function(e,n){e.originIndex=n,null!=e.visual&&(t.hasSpecialVisual=!0)}))}function VN(t){var e=t.categories,n=t.categoryMap={},r=t.visual;if(zN(e,(function(t,e){n[t]=e})),!Bt(r)){var i=[];Qt(r)?zN(r,(function(t,e){var r=n[e];i[null!=r?r:FN]=t})):i[FN]=r,r=KN(t,i)}for(var o=e.length-1;o>=0;o--)null==r[o]&&(delete n[e[o]],e.pop())}function QN(t,e){var n=t.visual,r=[];Qt(n)?zN(n,(function(t){r.push(t)})):null!=n&&r.push(n);var i={color:1,symbol:1};e||1!==r.length||i.hasOwnProperty(t.type)||(r[1]=r[0]),KN(t,r)}function HN(t){return{applyVisual:function(e,n,r){var i=this.mapValueToVisual(e);r("color",t(n("color"),i))},_normalizedToVisual:YN([0,1])}}function ZN(t){var e=this.option.visual;return e[Math.round(ts(t,[0,1],[0,e.length-1],!0))]||{}}function GN(t){return function(e,n,r){r(t,this.mapValueToVisual(e))}}function XN(t){var e=this.option.visual;return e[this.option.loop&&t!==FN?t%e.length:t]}function UN(){return this.option.visual[0]}function YN(t){return{linear:function(e){return ts(e,t,this.option.visual,!0)},category:XN,piecewise:function(e,n){var r=qN.call(this,n);return null==r&&(r=ts(e,t,this.option.visual,!0)),r},fixed:UN}}function qN(t){var e=this.option,n=e.pieceList;if(e.hasSpecialVisual){var r=WN.findPieceIndex(t,n),i=n[r];if(i&&i.visual)return i.visual[this.type]}}function KN(t,e){return t.visual=e,"color"===t.type&&(t.parsedVisual=It(e,(function(t){var e=yi(t);return e||[0,0,0,1]}))),e}var JN={linear:function(t){return ts(t,this.option.dataExtent,[0,1],!0)},piecewise:function(t){var e=this.option.pieceList,n=WN.findPieceIndex(t,e,!0);if(null!=n)return ts(n,[0,e.length-1],[0,1],!0)},category:function(t){var e=this.option.categories?this.option.categoryMap[t]:t;return null==e?FN:e},fixed:me};function tz(t,e,n){return t?e<=n:e<n}var ez=WN,nz="itemStyle",rz=Ys(),iz={seriesType:"treemap",reset:function(t){var e=t.getData().tree,n=e.root;n.isRemoved()||oz(n,{},t.getViewRoot().getAncestors(),t)}};function oz(t,e,n,r){var i=t.getModel(),o=t.getLayout(),a=t.hostTree.data;if(o&&!o.invisible&&o.isInView){var s,l=i.getModel(nz),u=az(l,e,r),c=a.ensureUniqueItemVisual(t.dataIndex,"style"),h=l.get("borderColor"),d=l.get("borderColorSaturation");null!=d&&(s=sz(u),h=lz(d,s)),c.stroke=h;var p=t.viewChildren;if(p&&p.length){var f=cz(t,i,o,l,u,p);Pt(p,(function(t,e){if(t.depth>=n.length||t===n[t.depth]){var o=dz(i,u,t,e,f,r);oz(t,o,n,r)}}))}else s=sz(u),c.fill=s}}function az(t,e,n){var r=Ot({},e),i=n.designatedVisualItemStyle;return Pt(["color","colorAlpha","colorSaturation"],(function(n){i[n]=e[n];var o=t.get(n);i[n]=null,null!=o&&(r[n]=o)})),r}function sz(t){var e=uz(t,"color");if(e){var n=uz(t,"colorAlpha"),r=uz(t,"colorSaturation");return r&&(e=Ci(e,null,null,r)),n&&(e=Mi(e,n)),e}}function lz(t,e){return null!=e?Ci(e,null,null,t):null}function uz(t,e){var n=t[e];if(null!=n&&"none"!==n)return n}function cz(t,e,n,r,i,o){if(o&&o.length){var a=hz(e,"color")||null!=i.color&&"none"!==i.color&&(hz(e,"colorAlpha")||hz(e,"colorSaturation"));if(a){var s=e.get("visualMin"),l=e.get("visualMax"),u=n.dataExtent.slice();null!=s&&s<u[0]&&(u[0]=s),null!=l&&l>u[1]&&(u[1]=l);var c=e.get("colorMappingBy"),h={type:a.name,dataExtent:u,visual:a.range};"color"!==h.type||"index"!==c&&"id"!==c?h.mappingMethod="linear":(h.mappingMethod="category",h.loop=!0);var d=new ez(h);return rz(d).drColorMappingBy=c,d}}}function hz(t,e){var n=t.get(e);return Bt(n)&&n.length?{name:e,range:n}:null}function dz(t,e,n,r,i,o){var a=Ot({},e);if(i){var s=i.type,l="color"===s&&rz(i).drColorMappingBy,u="index"===l?r:"id"===l?o.mapIdToIndex(n.getId()):n.getValue(t.get("visualDimension"));a[s]=i.mapValueToVisual(u)}return a}var pz=Math.max,fz=Math.min,gz=Kt,vz=Pt,mz=["itemStyle","borderWidth"],yz=["itemStyle","gapWidth"],bz=["upperLabel","show"],_z=["upperLabel","height"],xz={seriesType:"treemap",reset:function(t,e,n,r){var i=n.getWidth(),o=n.getHeight(),a=t.option,s=af(t.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()}),l=a.size||[],u=es(gz(s.width,l[0]),i),c=es(gz(s.height,l[1]),o),h=r&&r.type,d=["treemapZoomToNode","treemapRootToNode"],p=GL(r,d,t),f="treemapRender"===h||"treemapMove"===h?r.rootRect:null,g=t.getViewRoot(),v=XL(g);if("treemapMove"!==h){var m="treemapZoomToNode"===h?Tz(t,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:m[0],height:m[1],area:m[0]*m[1]};g.setLayout(_),wz(g,b,!1,0),_=g.getLayout(),vz(v,(function(t,e){var n=(v[e+1]||g).getValue();t.setLayout(Ot({dataExtent:[n,n],borderWidth:0,upperHeight:0},_))}))}var x=t.getData().tree.root;x.setLayout(Pz(s,f,p),!0),t.setLayoutInfo(s),Iz(x,new Hn(-s.x,-s.y,i,o),v,g,0)}};function wz(t,e,n,r){var i,o;if(!t.isRemoved()){var a=t.getLayout();i=a.width,o=a.height;var s=t.getModel(),l=s.get(mz),u=s.get(yz)/2,c=$z(s),h=Math.max(l,c),d=l-u,p=h-u;t.setLayout({borderWidth:l,upperHeight:h,upperLabelHeight:c},!0),i=pz(i-2*d,0),o=pz(o-d-p,0);var f=i*o,g=Oz(t,s,f,e,n,r);if(g.length){var v={x:d,y:p,width:i,height:o},m=fz(i,o),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=Cz(b,m,e.squareRatio);O<=y?(_++,y=O):(b.area-=b.pop().getLayout().area,Mz(b,m,v,u,!1),m=fz(v.width,v.height),b.length=b.area=0,y=1/0)}if(b.length&&Mz(b,m,v,u,!0),!n){var S=s.get("childrenVisibleMin");null!=S&&f<S&&(n=!0)}for(_=0,x=g.length;_<x;_++)wz(g[_],e,n,r+1)}}}function Oz(t,e,n,r,i,o){var a=t.children||[],s=r.sort;"asc"!==s&&"desc"!==s&&(s=null);var l=null!=r.leafDepth&&r.leafDepth<=o;if(i&&!l)return t.viewChildren=[];a=Et(a,(function(t){return!t.isRemoved()})),Az(a,s);var u=kz(e,a,s);if(0===u.sum)return t.viewChildren=[];if(u.sum=Sz(e,n,u.sum,s,a),0===u.sum)return t.viewChildren=[];for(var c=0,h=a.length;c<h;c++){var d=a[c].getValue()/u.sum*n;a[c].setLayout({area:d})}return l&&(a.length&&t.setLayout({isLeafRoot:!0},!0),a.length=0),t.viewChildren=a,t.setLayout({dataExtent:u.dataExtent},!0),a}function Sz(t,e,n,r,i){if(!r)return n;for(var o=t.get("visibleMin"),a=i.length,s=a,l=a-1;l>=0;l--){var u=i["asc"===r?a-l-1:l].getValue();u/n*e<o&&(s=l,n-=u)}return"asc"===r?i.splice(0,a-s):i.splice(s,a-s),n}function Az(t,e){return e&&t.sort((function(t,n){var r="asc"===e?t.getValue()-n.getValue():n.getValue()-t.getValue();return 0===r?"asc"===e?t.dataIndex-n.dataIndex:n.dataIndex-t.dataIndex:r})),t}function kz(t,e,n){for(var r=0,i=0,o=e.length;i<o;i++)r+=e[i].getValue();var a,s=t.get("visualDimension");return e&&e.length?"value"===s&&n?(a=[e[e.length-1].getValue(),e[0].getValue()],"asc"===n&&a.reverse()):(a=[1/0,-1/0],vz(e,(function(t){var e=t.getValue(s);e<a[0]&&(a[0]=e),e>a[1]&&(a[1]=e)}))):a=[NaN,NaN],{sum:r,dataExtent:a}}function Cz(t,e,n){for(var r=0,i=1/0,o=0,a=void 0,s=t.length;o<s;o++)a=t[o].getLayout().area,a&&(a<i&&(i=a),a>r&&(r=a));var l=t.area*t.area,u=e*e*n;return l?pz(u*r/l,l/(u*i)):1/0}function Mz(t,e,n,r,i){var o=e===n.width?0:1,a=1-o,s=["x","y"],l=["width","height"],u=n[s[o]],c=e?t.area/e:0;(i||c>n[l[a]])&&(c=n[l[a]]);for(var h=0,d=t.length;h<d;h++){var p=t[h],f={},g=c?p.getLayout().area/c:0,v=f[l[a]]=pz(c-2*r,0),m=n[s[o]]+n[l[o]]-u,y=h===d-1||m<g?m:g,b=f[l[o]]=pz(y-2*r,0);f[s[a]]=n[s[a]]+fz(r,v/2),f[s[o]]=u+fz(r,b/2),u+=y,p.setLayout(f,!0)}n[s[a]]+=c,n[l[a]]-=c}function Tz(t,e,n,r,i){var o,a=(e||{}).node,s=[r,i];if(!a||a===n)return s;var l=r*i,u=l*t.option.zoomToNodeRatio;while(o=a.parentNode){for(var c=0,h=o.children,d=0,p=h.length;d<p;d++)c+=h[d].getValue();var f=a.getValue();if(0===f)return s;u*=c/f;var g=o.getModel(),v=g.get(mz),m=Math.max(v,$z(g));u+=4*v*v+(3*v+m)*Math.pow(u,.5),u>cs&&(u=cs),a=o}u<l&&(u=l);var y=Math.pow(u/l,.5);return[r*y,i*y]}function Pz(t,e,n){if(e)return{x:e.x,y:e.y};var r={x:0,y:0};if(!n)return r;var i=n.node,o=i.getLayout();if(!o)return r;var a=[o.width/2,o.height/2],s=i;while(s){var l=s.getLayout();a[0]+=l.x,a[1]+=l.y,s=s.parentNode}return{x:t.width/2-a[0],y:t.height/2-a[1]}}function Iz(t,e,n,r,i){var o=t.getLayout(),a=n[i],s=a&&a===t;if(!(a&&!s||i===n.length&&t!==r)){t.setLayout({isInView:!0,invisible:!s&&!e.intersect(o),isAboveViewRoot:s},!0);var l=new Hn(e.x-o.x,e.y-o.y,e.width,e.height);vz(t.viewChildren||[],(function(t){Iz(t,l,n,r,i+1)}))}}function $z(t){return t.get(bz)?t.get(_z):0}function Ez(t){t.registerSeriesModel(dN),t.registerChartView(NN),t.registerVisual(iz),t.registerLayout(xz),sN(t)}function Rz(t){var e=t.findComponents({mainType:"legend"});e&&e.length&&t.eachSeriesByType("graph",(function(t){var n=t.getCategoriesData(),r=t.getGraph(),i=r.data,o=n.mapArray(n.getName);i.filterSelf((function(t){var n=i.getItemModel(t),r=n.getShallow("category");if(null!=r){Vt(r)&&(r=o[r]);for(var a=0;a<e.length;a++)if(!e[a].isSelected(r))return!1}return!0}))}))}function Dz(t){var e={};t.eachSeriesByType("graph",(function(t){var n=t.getCategoriesData(),r=t.getData(),i={};n.each((function(r){var o=n.getName(r);i["ec-"+o]=r;var a=n.getItemModel(r),s=a.getModel("itemStyle").getItemStyle();s.fill||(s.fill=t.getColorFromPalette(o,e)),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(t){var e=r.getItemModel(t),o=e.getShallow("category");if(null!=o){Wt(o)&&(o=i["ec-"+o]);var a=n.getItemVisual(o,"style"),s=r.ensureUniqueItemVisual(t,"style");Ot(s,a);for(var l=["symbol","symbolSize","symbolKeepAspect"],u=0;u<l.length;u++)r.setItemVisual(t,l[u],n.getItemVisual(o,l[u]))}}))}))}function Lz(t){return t instanceof Array||(t=[t,t]),t}function Nz(t){t.eachSeriesByType("graph",(function(t){var e=t.getGraph(),n=t.getEdgeData(),r=Lz(t.get("edgeSymbol")),i=Lz(t.get("edgeSymbolSize"));n.setVisual("fromSymbol",r&&r[0]),n.setVisual("toSymbol",r&&r[1]),n.setVisual("fromSymbolSize",i&&i[0]),n.setVisual("toSymbolSize",i&&i[1]),n.setVisual("style",t.getModel("lineStyle").getLineStyle()),n.each((function(t){var r=n.getItemModel(t),i=e.getEdgeByIndex(t),o=Lz(r.getShallow("symbol",!0)),a=Lz(r.getShallow("symbolSize",!0)),s=r.getModel("lineStyle").getLineStyle(),l=n.ensureUniqueItemVisual(t,"style");switch(Ot(l,s),l.stroke){case"source":var u=i.node1.getVisual("style");l.stroke=u&&u.fill;break;case"target":u=i.node2.getVisual("style");l.stroke=u&&u.fill;break}o[0]&&i.setVisual("fromSymbol",o[0]),o[1]&&i.setVisual("toSymbol",o[1]),a[0]&&i.setVisual("fromSymbolSize",a[0]),a[1]&&i.setVisual("toSymbolSize",a[1])}))}))}var zz="--\x3e",Bz=function(t){return t.get("autoCurveness")||null},Fz=function(t,e){var n=Bz(t),r=20,i=[];if(Vt(n))r=n;else if(Bt(n))return void(t.__curvenessList=n);e>r&&(r=e);var o=r%2?r+2:r+3;i=[];for(var a=0;a<o;a++)i.push((a%2?a+1:a)/10*(a%2?-1:1));t.__curvenessList=i},Wz=function(t,e,n){var r=[t.id,t.dataIndex].join("."),i=[e.id,e.dataIndex].join(".");return[n.uid,r,i].join(zz)},jz=function(t){var e=t.split(zz);return[e[0],e[2],e[1]].join(zz)},Vz=function(t,e){var n=Wz(t.node1,t.node2,e);return e.__edgeMap[n]},Qz=function(t,e){var n=Hz(Wz(t.node1,t.node2,e),e),r=Hz(Wz(t.node2,t.node1,e),e);return n+r},Hz=function(t,e){var n=e.__edgeMap;return n[t]?n[t].length:0};function Zz(t){Bz(t)&&(t.__curvenessList=[],t.__edgeMap={},Fz(t))}function Gz(t,e,n,r){if(Bz(n)){var i=Wz(t,e,n),o=n.__edgeMap,a=o[jz(i)];o[i]&&!a?o[i].isForward=!0:a&&o[i]&&(a.isForward=!0,o[i].isForward=!1),o[i]=o[i]||[],o[i].push(r)}}function Xz(t,e,n,r){var i=Bz(e),o=Bt(i);if(!i)return null;var a=Vz(t,e);if(!a)return null;for(var s=-1,l=0;l<a.length;l++)if(a[l]===n){s=l;break}var u=Qz(t,e);Fz(e,u),t.lineStyle=t.lineStyle||{};var c=Wz(t.node1,t.node2,e),h=e.__curvenessList,d=o||u%2?0:1;if(a.isForward)return h[d+s];var p=jz(c),f=Hz(p,e),g=h[s+f+d];return r?o?i&&0===i[0]?(f+d)%2?g:-g:((f%2?0:1)+d)%2?g:-g:(f+d)%2?g:-g:h[s+f+d]}function Uz(t){var e=t.coordinateSystem;if(!e||"view"===e.type){var n=t.getGraph();n.eachNode((function(t){var e=t.getModel();t.setLayout([+e.get("x"),+e.get("y")])})),Yz(n,t)}}function Yz(t,e){t.eachEdge((function(t,n){var r=te(t.getModel().get(["lineStyle","curveness"]),-Xz(t,e,n,!0),0),i=xe(t.node1.getLayout()),o=xe(t.node2.getLayout()),a=[i,o];+r&&a.push([(i[0]+o[0])/2-(i[1]-o[1])*r,(i[1]+o[1])/2-(o[0]-i[0])*r]),t.setLayout(a)}))}function qz(t,e){t.eachSeriesByType("graph",(function(t){var e=t.get("layout"),n=t.coordinateSystem;if(n&&"view"!==n.type){var r=t.getData(),i=[];Pt(n.dimensions,(function(t){i=i.concat(r.mapDimensionsAll(t))}));for(var o=0;o<r.count();o++){for(var a=[],s=!1,l=0;l<i.length;l++){var u=r.get(i[l],o);isNaN(u)||(s=!0),a.push(u)}s?r.setItemLayout(o,n.dataToPoint(a)):r.setItemLayout(o,[NaN,NaN])}Yz(r.graph,t)}else e&&"none"!==e||Uz(t)}))}function Kz(t){var e=t.coordinateSystem;if("view"!==e.type)return 1;var n=t.option.nodeScaleRatio,r=e.scaleX,i=e.getZoom(),o=(i-1)*n+1;return o/r}function Jz(t){var e=t.getVisual("symbolSize");return e instanceof Array&&(e=(e[0]+e[1])/2),+e}var tB=Math.PI,eB=[];function nB(t,e,n,r){var i=t.coordinateSystem;if(!i||"view"===i.type){var o=i.getBoundingRect(),a=t.getData(),s=a.graph,l=o.width/2+o.x,u=o.height/2+o.y,c=Math.min(o.width,o.height)/2,h=a.count();if(a.setLayout({cx:l,cy:u}),h){if(n){var d=i.pointToData(r),p=d[0],f=d[1],g=[p-l,f-u];Re(g,g),Ee(g,g,c),n.setLayout([l+g[0],u+g[1]],!0);var v=t.get(["circular","rotateLabel"]);iB(n,v,l,u)}rB[e](t,s,a,c,l,u,h),s.eachEdge((function(e,n){var r,i=te(e.getModel().get(["lineStyle","curveness"]),Xz(e,t,n),0),o=xe(e.node1.getLayout()),a=xe(e.node2.getLayout()),s=(o[0]+a[0])/2,c=(o[1]+a[1])/2;+i&&(i*=3,r=[l*i+s*(1-i),u*i+c*(1-i)]),e.setLayout([o,a,r])}))}}}var rB={value:function(t,e,n,r,i,o,a){var s=0,l=n.getSum("value"),u=2*Math.PI/(l||a);e.eachNode((function(t){var e=t.getValue("value"),n=u*(l?e:1)/2;s+=n,t.setLayout([r*Math.cos(s)+i,r*Math.sin(s)+o]),s+=n}))},symbolSize:function(t,e,n,r,i,o,a){var s=0;eB.length=a;var l=Kz(t);e.eachNode((function(t){var e=Jz(t);isNaN(e)&&(e=2),e<0&&(e=0),e*=l;var n=Math.asin(e/2/r);isNaN(n)&&(n=tB/2),eB[t.dataIndex]=n,s+=2*n}));var u=(2*tB-s)/a/2,c=0;e.eachNode((function(t){var e=u+eB[t.dataIndex];c+=e,(!t.getLayout()||!t.getLayout().fixed)&&t.setLayout([r*Math.cos(c)+i,r*Math.sin(c)+o]),c+=e}))}};function iB(t,e,n,r){var i=t.getGraphicEl();if(i){var o=t.getModel(),a=o.get(["label","rotate"])||0,s=i.getSymbolPath();if(e){var l=t.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 h=c?"left":"right";s.setTextConfig({rotation:-u,position:h,origin:"center"});var d=s.ensureState("emphasis");Ot(d.textConfig||(d.textConfig={}),{position:h})}else s.setTextConfig({rotation:a*=Math.PI/180})}}function oB(t){t.eachSeriesByType("graph",(function(t){"circular"===t.get("layout")&&nB(t,"symbolSize")}))}var aB=Se;function sB(t,e,n){for(var r=t,i=e,o=n.rect,a=o.width,s=o.height,l=[o.x+a/2,o.y+s/2],u=null==n.gravity?.1:n.gravity,c=0;c<r.length;c++){var h=r[c];h.p||(h.p=be(a*(Math.random()-.5)+l[0],s*(Math.random()-.5)+l[1])),h.pp=xe(h.p),h.edges=null}var d,p,f=null==n.friction?.6:n.friction,g=f;return{warmUp:function(){g=.8*f},setFixed:function(t){r[t].fixed=!0},setUnfixed:function(t){r[t].fixed=!1},beforeStep:function(t){d=t},afterStep:function(t){p=t},step:function(t){d&&d(r,i);for(var e=[],n=r.length,o=0;o<i.length;o++){var a=i[o];if(!a.ignoreForceLayout){var s=a.n1,c=a.n2;Ae(e,c.p,s.p);var h=ke(e)-a.d,f=c.w/(s.w+c.w);isNaN(f)&&(f=0),Re(e,e),!s.fixed&&aB(s.p,s.p,e,f*h*g),!c.fixed&&aB(c.p,c.p,e,-(1-f)*h*g)}}for(o=0;o<n;o++){var v=r[o];v.fixed||(Ae(e,l,v.p),aB(v.p,v.p,e,u*g))}for(o=0;o<n;o++){s=r[o];for(var m=o+1;m<n;m++){c=r[m];Ae(e,c.p,s.p);h=ke(e);0===h&&(we(e,Math.random()-.5,Math.random()-.5),h=1);var y=(s.rep+c.rep)/h/h;!s.fixed&&aB(s.pp,s.pp,e,y),!c.fixed&&aB(c.pp,c.pp,e,-y)}}var b=[];for(o=0;o<n;o++){v=r[o];v.fixed||(Ae(b,v.p,v.pp),aB(v.p,v.p,b,g),_e(v.pp,v.p))}g*=.992;var _=g<.01;p&&p(r,i,_),t&&t(_)}}}function lB(t){t.eachSeriesByType("graph",(function(t){var e=t.coordinateSystem;if(!e||"view"===e.type)if("force"===t.get("layout")){var n=t.preservedPoints||{},r=t.getGraph(),i=r.data,o=r.edgeData,a=t.getModel("force"),s=a.get("initLayout");t.preservedPoints?i.each((function(t){var e=i.getId(t);i.setItemLayout(t,n[e]||[NaN,NaN])})):s&&"none"!==s?"circular"===s&&nB(t,"value"):Uz(t);var l=i.getDataExtent("value"),u=o.getDataExtent("value"),c=a.get("repulsion"),h=a.get("edgeLength"),d=Bt(c)?c:[c,c],p=Bt(h)?h:[h,h];p=[p[1],p[0]];var f=i.mapArray("value",(function(t,e){var n=i.getItemLayout(e),r=ts(t,l,d);return isNaN(r)&&(r=(d[0]+d[1])/2),{w:r,rep:r,fixed:i.getItemModel(e).get("fixed"),p:!n||isNaN(n[0])||isNaN(n[1])?null:n}})),g=o.mapArray("value",(function(e,n){var i=r.getEdgeByIndex(n),o=ts(e,u,p);isNaN(o)&&(o=(p[0]+p[1])/2);var a=i.getModel(),s=te(i.getModel().get(["lineStyle","curveness"]),-Xz(i,t,n,!0),0);return{n1:f[i.node1.dataIndex],n2:f[i.node2.dataIndex],d:o,curveness:s,ignoreForceLayout:a.get("ignoreForceLayout")}})),v=e.getBoundingRect(),m=sB(f,g,{rect:v,gravity:a.get("gravity"),friction:a.get("friction")});m.beforeStep((function(t,e){for(var n=0,i=t.length;n<i;n++)t[n].fixed&&_e(t[n].p,r.getNodeByIndex(n).getLayout())})),m.afterStep((function(t,e,o){for(var a=0,s=t.length;a<s;a++)t[a].fixed||r.getNodeByIndex(a).setLayout(t[a].p),n[i.getId(a)]=t[a].p;for(a=0,s=e.length;a<s;a++){var l=e[a],u=r.getEdgeByIndex(a),c=l.n1.p,h=l.n2.p,d=u.getLayout();d=d?d.slice():[],d[0]=d[0]||[],d[1]=d[1]||[],_e(d[0],c),_e(d[1],h),+l.curveness&&(d[2]=[(c[0]+h[0])/2-(c[1]-h[1])*l.curveness,(c[1]+h[1])/2-(h[0]-c[0])*l.curveness]),u.setLayout(d)}})),t.forceLayout=m,t.preservedPoints=n,m.step()}else t.forceLayout=null}))}function uB(t,e,n){var r=Ot(t.getBoxLayoutParams(),{aspect:n});return af(r,{width:e.getWidth(),height:e.getHeight()})}function cB(t,e){var n=[];return t.eachSeriesByType("graph",(function(t){var r=t.get("coordinateSystem");if(!r||"view"===r){var i=t.getData(),o=i.mapArray((function(t){var e=i.getItemModel(t);return[+e.get("x"),+e.get("y")]})),a=[],s=[];cu(o,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=uB(t,e,l);isNaN(l)&&(a=[u.x,u.y],s=[u.x+u.width,u.y+u.height]);var c=s[0]-a[0],h=s[1]-a[1],d=u.width,p=u.height,f=t.coordinateSystem=new jD;f.zoomLimit=t.get("scaleLimit"),f.setBoundingRect(a[0],a[1],c,h),f.setViewRect(u.x,u.y,d,p),f.setCenter(t.get("center"),e),f.setZoom(t.get("zoom")),n.push(f)}})),n}var hB=tb.prototype,dB=ob.prototype,pB=function(){function t(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return t}();(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}Q(e,t)})(pB);function fB(t){return isNaN(+t.cpx1)||isNaN(+t.cpy1)}var gB=function(t){function e(e){var n=t.call(this,e)||this;return n.type="ec-line",n}return Q(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new pB},e.prototype.buildPath=function(t,e){fB(e)?hB.buildPath.call(this,t,e):dB.buildPath.call(this,t,e)},e.prototype.pointAt=function(t){return fB(this.shape)?hB.pointAt.call(this,t):dB.pointAt.call(this,t)},e.prototype.tangentAt=function(t){var e=this.shape,n=fB(e)?[e.x2-e.x1,e.y2-e.y1]:dB.tangentAt.call(this,t);return Re(n,n)},e}(lc),vB=gB,mB=["fromSymbol","toSymbol"];function yB(t){return"_"+t+"Type"}function bB(t,e,n){var r=e.getItemVisual(n,t);if(!r||"none"===r)return r;var i=e.getItemVisual(n,t+"Size"),o=e.getItemVisual(n,t+"Rotate"),a=e.getItemVisual(n,t+"Offset"),s=e.getItemVisual(n,t+"KeepAspect"),l=Cx(i),u=Mx(a||0,l);return r+l+u+(o||"")+(s||"")}function _B(t,e,n){var r=e.getItemVisual(n,t);if(r&&"none"!==r){var i=e.getItemVisual(n,t+"Size"),o=e.getItemVisual(n,t+"Rotate"),a=e.getItemVisual(n,t+"Offset"),s=e.getItemVisual(n,t+"KeepAspect"),l=Cx(i),u=Mx(a||0,l),c=kx(r,-l[0]/2+u[0],-l[1]/2+u[1],l[0],l[1],null,s);return c.__specifiedRotation=null==o||isNaN(o)?void 0:+o*Math.PI/180||0,c.name=t,c}}function xB(t){var e=new vB({name:"line",subPixelOptimize:!0});return wB(e.shape,t),e}function wB(t,e){t.x1=e[0][0],t.y1=e[0][1],t.x2=e[1][0],t.y2=e[1][1],t.percent=1;var n=e[2];n?(t.cpx1=n[0],t.cpy1=n[1]):(t.cpx1=NaN,t.cpy1=NaN)}var OB=function(t){function e(e,n,r){var i=t.call(this)||this;return i._createLine(e,n,r),i}return Q(e,t),e.prototype._createLine=function(t,e,n){var r=t.hostModel,i=t.getItemLayout(e),o=xB(i);o.shape.percent=0,ld(o,{shape:{percent:1}},r,e),this.add(o),Pt(mB,(function(n){var r=_B(n,t,e);this.add(r),this[yB(n)]=bB(n,t,e)}),this),this._updateCommonStl(t,e,n)},e.prototype.updateData=function(t,e,n){var r=t.hostModel,i=this.childOfName("line"),o=t.getItemLayout(e),a={shape:{}};wB(a.shape,o),sd(i,a,r,e),Pt(mB,(function(n){var r=bB(n,t,e),i=yB(n);if(this[i]!==r){this.remove(this.childOfName(n));var o=_B(n,t,e);this.add(o)}this[i]=r}),this),this._updateCommonStl(t,e,n)},e.prototype.getLinePath=function(){return this.childAt(0)},e.prototype._updateCommonStl=function(t,e,n){var r=t.hostModel,i=this.childOfName("line"),o=n&&n.emphasisLineStyle,a=n&&n.blurLineStyle,s=n&&n.selectLineStyle,l=n&&n.labelStatesModels,u=n&&n.emphasisDisabled,c=n&&n.focus,h=n&&n.blurScope;if(!n||t.hasItemOption){var d=t.getItemModel(e),p=d.getModel("emphasis");o=p.getModel("lineStyle").getLineStyle(),a=d.getModel(["blur","lineStyle"]).getLineStyle(),s=d.getModel(["select","lineStyle"]).getLineStyle(),u=p.get("disabled"),c=p.get("focus"),h=p.get("blurScope"),l=bd(d)}var f=t.getItemVisual(e,"style"),g=f.stroke;i.useStyle(f),i.style.fill=null,i.style.strokeNoScale=!0,i.ensureState("emphasis").style=o,i.ensureState("blur").style=a,i.ensureState("select").style=s,Pt(mB,(function(t){var e=this.childOfName(t);if(e){e.setColor(g),e.style.opacity=f.opacity;for(var n=0;n<Jc.length;n++){var r=Jc[n],o=i.getState(r);if(o){var a=o.style||{},s=e.ensureState(r),l=s.style||(s.style={});null!=a.stroke&&(l[e.__isEmptyBrush?"stroke":"fill"]=a.stroke),null!=a.opacity&&(l.opacity=a.opacity)}}e.markRedraw()}}),this);var v=r.getRawValue(e);yd(this,l,{labelDataIndex:e,labelFetcher:{getFormattedLabel:function(e,n){return r.getFormattedLabel(e,n,t.dataType)}},inheritColor:g||"#000",defaultOpacity:f.opacity,defaultText:(null==v?t.getName(e):isFinite(v)?ns(v):v)+""});var m=this.getTextContent();if(m){var y=l.normal;m.__align=m.style.align,m.__verticalAlign=m.style.verticalAlign,m.__position=y.get("position")||"middle";var b=y.get("distance");Bt(b)||(b=[b,b]),m.__labelDistance=b}this.setTextConfig({position:null,local:!0,inside:!1}),Zh(this,c,h,u)},e.prototype.highlight=function(){Ch(this)},e.prototype.downplay=function(){Mh(this)},e.prototype.updateLayout=function(t,e){this.setLinePoints(t.getItemLayout(e))},e.prototype.setLinePoints=function(t){var e=this.childOfName("line");wB(e.shape,t),e.dirty()},e.prototype.beforeUpdate=function(){var t=this,e=t.childOfName("fromSymbol"),n=t.childOfName("toSymbol"),r=t.getTextContent();if(e||n||r&&!r.ignore){var i=1,o=this.parent;while(o)o.scaleX&&(i/=o.scaleX),o=o.parent;var a=t.childOfName("line");if(this.__dirty||a.__dirty){var s=a.shape.percent,l=a.pointAt(0),u=a.pointAt(s),c=Ae([],u,l);if(Re(c,c),e&&(e.setPosition(l),O(e,0),e.scaleX=e.scaleY=i*s,e.markRedraw()),n&&(n.setPosition(u),O(n,1),n.scaleX=n.scaleY=i*s,n.markRedraw()),r&&!r.ignore){r.x=r.y=0,r.originX=r.originY=0;var h=void 0,d=void 0,p=r.__labelDistance,f=p[0]*i,g=p[1]*i,v=s/2,m=a.tangentAt(v),y=[m[1],-m[0]],b=a.pointAt(v);y[1]>0&&(y[0]=-y[0],y[1]=-y[1]);var _=m[0]<0?-1:1;if("start"!==r.__position&&"end"!==r.__position){var x=-Math.atan2(m[1],m[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,d="bottom";break;case"insideStartBottom":case"insideMiddleBottom":case"insideEndBottom":w=g,d="top";break;default:w=0,d="middle"}switch(r.__position){case"end":r.x=c[0]*f+u[0],r.y=c[1]*g+u[1],h=c[0]>.8?"left":c[0]<-.8?"right":"center",d=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],h=c[0]>.8?"right":c[0]<-.8?"left":"center",d=c[1]>.8?"bottom":c[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":r.x=f*_+l[0],r.y=l[1]+w,h=m[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,h="center",r.originY=-w;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":r.x=-f*_+u[0],r.y=u[1]+w,h=m[0]>=0?"right":"left",r.originX=f*_,r.originY=-w;break}r.scaleX=r.scaleY=i,r.setStyle({verticalAlign:r.__verticalAlign||d,align:r.__align||h})}}}function O(t,e){var n=t.__specifiedRotation;if(null==n){var r=a.tangentAt(e);t.attr("rotation",(1===e?-1:1)*Math.PI/2-Math.atan2(r[1],r[0]))}else t.attr("rotation",n)}},e}(La),SB=OB,AB=function(){function t(t){this.group=new La,this._LineCtor=t||SB}return t.prototype.updateData=function(t){var e=this;this._progressiveEls=null;var n=this,r=n.group,i=n._lineData;n._lineData=t,i||r.removeAll();var o=CB(t);t.diff(i).add((function(n){e._doAdd(t,n,o)})).update((function(n,r){e._doUpdate(i,t,r,n,o)})).remove((function(t){r.remove(i.getItemGraphicEl(t))})).execute()},t.prototype.updateLayout=function(){var t=this._lineData;t&&t.eachItemGraphicEl((function(e,n){e.updateLayout(t,n)}),this)},t.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=CB(t),this._lineData=null,this.group.removeAll()},t.prototype.incrementalUpdate=function(t,e){function n(t){t.isGroup||kB(t)||(t.incremental=!0,t.ensureState("emphasis").hoverLayer=!0)}this._progressiveEls=[];for(var r=t.start;r<t.end;r++){var i=e.getItemLayout(r);if(TB(i)){var o=new this._LineCtor(e,r,this._seriesScope);o.traverse(n),this.group.add(o),e.setItemGraphicEl(r,o),this._progressiveEls.push(o)}}},t.prototype.remove=function(){this.group.removeAll()},t.prototype.eachRendered=function(t){r_(this._progressiveEls||this.group,t)},t.prototype._doAdd=function(t,e,n){var r=t.getItemLayout(e);if(TB(r)){var i=new this._LineCtor(t,e,n);t.setItemGraphicEl(e,i),this.group.add(i)}},t.prototype._doUpdate=function(t,e,n,r,i){var o=t.getItemGraphicEl(n);TB(e.getItemLayout(r))?(o?o.updateData(e,r,i):o=new this._LineCtor(e,r,i),e.setItemGraphicEl(r,o),this.group.add(o)):this.group.remove(o)},t}();function kB(t){return t.animators&&t.animators.length>0}function CB(t){var e=t.hostModel,n=e.getModel("emphasis");return{lineStyle:e.getModel("lineStyle").getLineStyle(),emphasisLineStyle:n.getModel(["lineStyle"]).getLineStyle(),blurLineStyle:e.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:e.getModel(["select","lineStyle"]).getLineStyle(),emphasisDisabled:n.get("disabled"),blurScope:n.get("blurScope"),focus:n.get("focus"),labelStatesModels:bd(e)}}function MB(t){return isNaN(t[0])||isNaN(t[1])}function TB(t){return t&&!MB(t[0])&&!MB(t[1])}var PB=AB,IB=[],$B=[],EB=[],RB=Qr,DB=ze,LB=Math.abs;function NB(t,e,n){for(var r,i=t[0],o=t[1],a=t[2],s=1/0,l=n*n,u=.1,c=.1;c<=.9;c+=.1){IB[0]=RB(i[0],o[0],a[0],c),IB[1]=RB(i[1],o[1],a[1],c);var h=LB(DB(IB,e)-l);h<s&&(s=h,r=c)}for(var d=0;d<32;d++){var p=r+u;$B[0]=RB(i[0],o[0],a[0],r),$B[1]=RB(i[1],o[1],a[1],r),EB[0]=RB(i[0],o[0],a[0],p),EB[1]=RB(i[1],o[1],a[1],p);h=DB($B,e)-l;if(LB(h)<.01)break;var f=DB(EB,e)-l;u/=2,h<0?f>=0?r+=u:r-=u:f>=0?r-=u:r+=u}return r}function zB(t,e){var n=[],r=Xr,i=[[],[],[]],o=[[],[]],a=[];e/=2,t.eachEdge((function(t,s){var l=t.getLayout(),u=t.getVisual("fromSymbol"),c=t.getVisual("toSymbol");l.__original||(l.__original=[xe(l[0]),xe(l[1])],l[2]&&l.__original.push(xe(l[2])));var h=l.__original;if(null!=l[2]){if(_e(i[0],h[0]),_e(i[1],h[2]),_e(i[2],h[1]),u&&"none"!==u){var d=Jz(t.node1),p=NB(i,h[0],d*e);r(i[0][0],i[1][0],i[2][0],p,n),i[0][0]=n[3],i[1][0]=n[4],r(i[0][1],i[1][1],i[2][1],p,n),i[0][1]=n[3],i[1][1]=n[4]}if(c&&"none"!==c){d=Jz(t.node2),p=NB(i,h[1],d*e);r(i[0][0],i[1][0],i[2][0],p,n),i[1][0]=n[1],i[2][0]=n[2],r(i[0][1],i[1][1],i[2][1],p,n),i[1][1]=n[1],i[2][1]=n[2]}_e(l[0],i[0]),_e(l[1],i[2]),_e(l[2],i[1])}else{if(_e(o[0],h[0]),_e(o[1],h[1]),Ae(a,o[1],o[0]),Re(a,a),u&&"none"!==u){d=Jz(t.node1);Se(o[0],o[0],a,d*e)}if(c&&"none"!==c){d=Jz(t.node2);Se(o[1],o[1],a,-d*e)}_e(l[0],o[0]),_e(l[1],o[1])}}))}function BB(t){return"view"===t.type}var FB=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Q(e,t),e.prototype.init=function(t,e){var n=new xP,r=new PB,i=this.group;this._controller=new bR(e.getZr()),this._controllerHost={target:i},i.add(n.group),i.add(r.group),this._symbolDraw=n,this._lineDraw=r,this._firstRender=!0},e.prototype.render=function(t,e,n){var r=this,i=t.coordinateSystem;this._model=t;var o=this._symbolDraw,a=this._lineDraw,s=this.group;if(BB(i)){var l={x:i.x,y:i.y,scaleX:i.scaleX,scaleY:i.scaleY};this._firstRender?s.attr(l):sd(s,l,t)}zB(t.getGraph(),Kz(t));var u=t.getData();o.updateData(u);var c=t.getEdgeData();a.updateData(c),this._updateNodeAndLinkScale(),this._updateController(t,e,n),clearTimeout(this._layoutTimeout);var h=t.forceLayout,d=t.get(["force","layoutAnimation"]);h&&this._startForceLayoutIteration(h,d);var p=t.get("layout");u.graph.eachNode((function(e){var n=e.dataIndex,i=e.getGraphicEl(),o=e.getModel();if(i){i.off("drag").off("dragend");var a=o.get("draggable");a&&i.on("drag",(function(o){switch(p){case"force":h.warmUp(),!r._layouting&&r._startForceLayoutIteration(h,d),h.setFixed(n),u.setItemLayout(n,[i.x,i.y]);break;case"circular":u.setItemLayout(n,[i.x,i.y]),e.setLayout({fixed:!0},!0),nB(t,"symbolSize",e,[o.offsetX,o.offsetY]),r.updateLayout(t);break;case"none":default:u.setItemLayout(n,[i.x,i.y]),Yz(t.getGraph(),t),r.updateLayout(t);break}})).on("dragend",(function(){h&&h.setUnfixed(n)})),i.setDraggable(a,!!o.get("cursor"));var s=o.get(["emphasis","focus"]);"adjacency"===s&&(Qc(i).focus=e.getAdjacentDataIndices())}})),u.graph.eachEdge((function(t){var e=t.getGraphicEl(),n=t.getModel().get(["emphasis","focus"]);e&&"adjacency"===n&&(Qc(e).focus={edge:[t.dataIndex],node:[t.node1.dataIndex,t.node2.dataIndex]})}));var f="circular"===t.get("layout")&&t.get(["circular","rotateLabel"]),g=u.getLayout("cx"),v=u.getLayout("cy");u.graph.eachNode((function(t){iB(t,f,g,v)})),this._firstRender=!1},e.prototype.dispose=function(){this.remove(),this._controller&&this._controller.dispose(),this._controllerHost=null},e.prototype._startForceLayoutIteration=function(t,e){var n=this;(function r(){t.step((function(t){n.updateLayout(n._model),(n._layouting=!t)&&(e?n._layoutTimeout=setTimeout(r,16):r())}))})()},e.prototype._updateController=function(t,e,n){var r=this,i=this._controller,o=this._controllerHost,a=this.group;i.setPointerChecker((function(e,r,i){var o=a.getBoundingRect();return o.applyTransform(a.transform),o.contain(r,i)&&!SR(e,n,t)})),BB(t.coordinateSystem)?(i.enable(t.get("roam")),o.zoomLimit=t.get("scaleLimit"),o.zoom=t.coordinateSystem.getZoom(),i.off("pan").off("zoom").on("pan",(function(e){_R(o,e.dx,e.dy),n.dispatchAction({seriesId:t.id,type:"graphRoam",dx:e.dx,dy:e.dy})})).on("zoom",(function(e){xR(o,e.scale,e.originX,e.originY),n.dispatchAction({seriesId:t.id,type:"graphRoam",zoom:e.scale,originX:e.originX,originY:e.originY}),r._updateNodeAndLinkScale(),zB(t.getGraph(),Kz(t)),r._lineDraw.updateLayout(),n.updateLabelLayout()}))):i.disable()},e.prototype._updateNodeAndLinkScale=function(){var t=this._model,e=t.getData(),n=Kz(t);e.eachItemGraphicEl((function(t,e){t&&t.setSymbolScale(n)}))},e.prototype.updateLayout=function(t){zB(t.getGraph(),Kz(t)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout()},e.prototype.remove=function(){clearTimeout(this._layoutTimeout),this._layouting=!1,this._layoutTimeout=null,this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove()},e.type="graph",e}(d_),WB=FB;function jB(t){return"_EC_"+t}var VB=function(){function t(t){this.type="graph",this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this._directed=t||!1}return t.prototype.isDirected=function(){return this._directed},t.prototype.addNode=function(t,e){t=null==t?""+e:""+t;var n=this._nodesMap;if(!n[jB(t)]){var r=new QB(t,e);return r.hostGraph=this,this.nodes.push(r),n[jB(t)]=r,r}},t.prototype.getNodeByIndex=function(t){var e=this.data.getRawIndex(t);return this.nodes[e]},t.prototype.getNodeById=function(t){return this._nodesMap[jB(t)]},t.prototype.addEdge=function(t,e,n){var r=this._nodesMap,i=this._edgesMap;if(Vt(t)&&(t=this.nodes[t]),Vt(e)&&(e=this.nodes[e]),t instanceof QB||(t=r[jB(t)]),e instanceof QB||(e=r[jB(e)]),t&&e){var o=t.id+"-"+e.id,a=new HB(t,e,n);return a.hostGraph=this,this._directed&&(t.outEdges.push(a),e.inEdges.push(a)),t.edges.push(a),t!==e&&e.edges.push(a),this.edges.push(a),i[o]=a,a}},t.prototype.getEdgeByIndex=function(t){var e=this.edgeData.getRawIndex(t);return this.edges[e]},t.prototype.getEdge=function(t,e){t instanceof QB&&(t=t.id),e instanceof QB&&(e=e.id);var n=this._edgesMap;return this._directed?n[t+"-"+e]:n[t+"-"+e]||n[e+"-"+t]},t.prototype.eachNode=function(t,e){for(var n=this.nodes,r=n.length,i=0;i<r;i++)n[i].dataIndex>=0&&t.call(e,n[i],i)},t.prototype.eachEdge=function(t,e){for(var n=this.edges,r=n.length,i=0;i<r;i++)n[i].dataIndex>=0&&n[i].node1.dataIndex>=0&&n[i].node2.dataIndex>=0&&t.call(e,n[i],i)},t.prototype.breadthFirstTraverse=function(t,e,n,r){if(e instanceof QB||(e=this._nodesMap[jB(e)]),e){for(var i="out"===n?"outEdges":"in"===n?"inEdges":"edges",o=0;o<this.nodes.length;o++)this.nodes[o].__visited=!1;if(!t.call(r,e,null)){var a=[e];while(a.length){var s=a.shift(),l=s[i];for(o=0;o<l.length;o++){var u=l[o],c=u.node1===s?u.node2:u.node1;if(!c.__visited){if(t.call(r,c,s))return;a.push(c),c.__visited=!0}}}}}},t.prototype.update=function(){for(var t=this.data,e=this.edgeData,n=this.nodes,r=this.edges,i=0,o=n.length;i<o;i++)n[i].dataIndex=-1;for(i=0,o=t.count();i<o;i++)n[t.getRawIndex(i)].dataIndex=i;e.filterSelf((function(t){var n=r[e.getRawIndex(t)];return n.node1.dataIndex>=0&&n.node2.dataIndex>=0}));for(i=0,o=r.length;i<o;i++)r[i].dataIndex=-1;for(i=0,o=e.count();i<o;i++)r[e.getRawIndex(i)].dataIndex=i},t.prototype.clone=function(){for(var e=new t(this._directed),n=this.nodes,r=this.edges,i=0;i<n.length;i++)e.addNode(n[i].id,n[i].dataIndex);for(i=0;i<r.length;i++){var o=r[i];e.addEdge(o.node1.id,o.node2.id,o.dataIndex)}return e},t}(),QB=function(){function t(t,e){this.inEdges=[],this.outEdges=[],this.edges=[],this.dataIndex=-1,this.id=null==t?"":t,this.dataIndex=null==e?-1:e}return t.prototype.degree=function(){return this.edges.length},t.prototype.inDegree=function(){return this.inEdges.length},t.prototype.outDegree=function(){return this.outEdges.length},t.prototype.getModel=function(t){if(!(this.dataIndex<0)){var e=this.hostGraph,n=e.data.getItemModel(this.dataIndex);return n.getModel(t)}},t.prototype.getAdjacentDataIndices=function(){for(var t={edge:[],node:[]},e=0;e<this.edges.length;e++){var n=this.edges[e];n.dataIndex<0||(t.edge.push(n.dataIndex),t.node.push(n.node1.dataIndex,n.node2.dataIndex))}return t},t.prototype.getTrajectoryDataIndices=function(){for(var t=de(),e=de(),n=0;n<this.edges.length;n++){var r=this.edges[n];if(!(r.dataIndex<0)){t.set(r.dataIndex,!0);var i=[r.node1],o=[r.node2],a=0;while(a<i.length){var s=i[a];a++,e.set(s.dataIndex,!0);for(var l=0;l<s.inEdges.length;l++)t.set(s.inEdges[l].dataIndex,!0),i.push(s.inEdges[l].node1)}a=0;while(a<o.length){var u=o[a];a++,e.set(u.dataIndex,!0);for(l=0;l<u.outEdges.length;l++)t.set(u.outEdges[l].dataIndex,!0),o.push(u.outEdges[l].node2)}}}return{edge:t.keys(),node:e.keys()}},t}(),HB=function(){function t(t,e,n){this.dataIndex=-1,this.node1=t,this.node2=e,this.dataIndex=null==n?-1:n}return t.prototype.getModel=function(t){if(!(this.dataIndex<0)){var e=this.hostGraph,n=e.edgeData.getItemModel(this.dataIndex);return n.getModel(t)}},t.prototype.getAdjacentDataIndices=function(){return{edge:[this.dataIndex],node:[this.node1.dataIndex,this.node2.dataIndex]}},t.prototype.getTrajectoryDataIndices=function(){var t=de(),e=de();t.set(this.dataIndex,!0);var n=[this.node1],r=[this.node2],i=0;while(i<n.length){var o=n[i];i++,e.set(o.dataIndex,!0);for(var a=0;a<o.inEdges.length;a++)t.set(o.inEdges[a].dataIndex,!0),n.push(o.inEdges[a].node1)}i=0;while(i<r.length){var s=r[i];i++,e.set(s.dataIndex,!0);for(a=0;a<s.outEdges.length;a++)t.set(s.outEdges[a].dataIndex,!0),r.push(s.outEdges[a].node2)}return{edge:t.keys(),node:e.keys()}},t}();function ZB(t,e){return{getValue:function(n){var r=this[t][e];return r.getStore().get(r.getDimensionIndex(n||"value"),this.dataIndex)},setVisual:function(n,r){this.dataIndex>=0&&this[t][e].setItemVisual(this.dataIndex,n,r)},getVisual:function(n){return this[t][e].getItemVisual(this.dataIndex,n)},setLayout:function(n,r){this.dataIndex>=0&&this[t][e].setItemLayout(this.dataIndex,n,r)},getLayout:function(){return this[t][e].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[t][e].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[t][e].getRawIndex(this.dataIndex)}}}Mt(QB,ZB("hostGraph","data")),Mt(HB,ZB("hostGraph","edgeData"));var GB=VB;function XB(t,e,n,r,i){for(var o=new GB(r),a=0;a<t.length;a++)o.addNode(Kt(t[a].id,t[a].name,a),a);var s=[],l=[],u=0;for(a=0;a<e.length;a++){var c=e[a],h=c.source,d=c.target;o.addEdge(h,d,u)&&(l.push(c),s.push(Kt(js(c.id,null),h+" > "+d)),u++)}var p,f=n.get("coordinateSystem");if("cartesian2d"===f||"polar"===f)p=dA(t,n);else{var g=hg.get(f),v=g&&g.dimensions||[];kt(v,"value")<0&&v.concat(["value"]);var m=US(t,{coordDimensions:v,encodeDefine:n.getEncode()}).dimensions;p=new GS(m,n),p.initData(t)}var y=new GS(["value"],n);return y.initData(l,s),i&&i(p,y),jL({mainData:p,struct:o,structAttr:"graph",datas:{node:p,edge:y},datasAttr:{node:"data",edge:"edgeData"}}),o.update(),o}var UB=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n}return Q(e,t),e.prototype.init=function(e){t.prototype.init.apply(this,arguments);var n=this;function r(){return n._categoriesData}this.legendVisualProvider=new h$(r,r),this.fillDataTextStyle(e.edges||e.links),this._updateCategoriesData()},e.prototype.mergeOption=function(e){t.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(e.edges||e.links),this._updateCategoriesData()},e.prototype.mergeDefaultAndTheme=function(e){t.prototype.mergeDefaultAndTheme.apply(this,arguments),Ts(e,"edgeLabel",["show"])},e.prototype.getInitialData=function(t,e){var n=t.edges||t.links||[],r=t.data||t.nodes||[],i=this;if(r&&n){Zz(this);var o=XB(r,n,this,!0,a);return Pt(o.edges,(function(t){Gz(t.node1,t.node2,this,t.dataIndex)}),this),o.data}function a(t,e){t.wrapMethod("getItemModel",(function(t){var e=i._categoriesModels,n=t.getShallow("category"),r=e[n];return r&&(r.parentModel=t.parentModel,t.parentModel=r),t}));var n=Qd.prototype.getModel;function r(t,e){var r=n.call(this,t,e);return r.resolveParentPath=o,r}function o(t){if(t&&("label"===t[0]||"label"===t[1])){var e=t.slice();return"label"===t[0]?e[0]="edgeLabel":"label"===t[1]&&(e[1]="edgeLabel"),e}return t}e.wrapMethod("getItemModel",(function(t){return t.resolveParentPath=o,t.getModel=r,t}))}},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.getCategoriesData=function(){return this._categoriesData},e.prototype.formatTooltip=function(t,e,n){if("edge"===n){var r=this.getData(),i=this.getDataParams(t,n),o=r.graph.getEdgeByIndex(t),a=r.getName(o.node1.dataIndex),s=r.getName(o.node2.dataIndex),l=[];return null!=a&&l.push(a),null!=s&&l.push(s),pm("nameValue",{name:l.join(" > "),value:i.value,noValue:null==i.value})}var u=Tm({series:this,dataIndex:t,multipleSeries:e});return u},e.prototype._updateCategoriesData=function(){var t=It(this.option.categories||[],(function(t){return null!=t.value?t:Ot({value:0},t)})),e=new GS(["value"],this);e.initData(t),this._categoriesData=e,this._categoriesModels=e.mapArray((function(t){return e.getItemModel(t)}))},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.isAnimationEnabled=function(){return t.prototype.isAnimationEnabled.call(this)&&!("force"===this.get("layout")&&this.get(["force","layoutAnimation"]))},e.type="series.graph",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={z:2,coordinateSystem:"view",legendHoverLink:!0,layout:null,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,friction:.6,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{position:"middle",distance:5},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:"{b}"},itemStyle:{},lineStyle:{color:"#aaa",width:1,opacity:.5},emphasis:{scale:!0,label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},e}(Vm),YB=UB,qB={type:"graphRoam",event:"graphRoam",update:"none"};function KB(t){t.registerChartView(WB),t.registerSeriesModel(YB),t.registerProcessor(Rz),t.registerVisual(Dz),t.registerVisual(Nz),t.registerLayout(qz),t.registerLayout(t.PRIORITY.VISUAL.POST_CHART_LAYOUT,oB),t.registerLayout(lB),t.registerCoordinateSystem("graphView",{dimensions:jD.dimensions,create:cB}),t.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},me),t.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},me),t.registerAction(qB,(function(t,e,n){e.eachComponent({mainType:"series",query:t},(function(e){var r=e.coordinateSystem,i=nL(r,t,void 0,n);e.setCenter&&e.setCenter(i.center),e.setZoom&&e.setZoom(i.zoom)}))}))}var JB=function(){function t(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return t}(),tF=function(t){function e(e){var n=t.call(this,e)||this;return n.type="pointer",n}return Q(e,t),e.prototype.getDefaultShape=function(){return new JB},e.prototype.buildPath=function(t,e){var n=Math.cos,r=Math.sin,i=e.r,o=e.width,a=e.angle,s=e.x-n(a)*o*(o>=i/3?1:2),l=e.y-r(a)*o*(o>=i/3?1:2);a=e.angle-Math.PI/2,t.moveTo(s,l),t.lineTo(e.x+n(a)*o,e.y+r(a)*o),t.lineTo(e.x+n(e.angle)*i,e.y+r(e.angle)*i),t.lineTo(e.x-n(a)*o,e.y-r(a)*o),t.lineTo(s,l)},e}(lc),eF=tF;function nF(t,e){var n=t.get("center"),r=e.getWidth(),i=e.getHeight(),o=Math.min(r,i),a=es(n[0],e.getWidth()),s=es(n[1],e.getHeight()),l=es(t.get("radius"),o/2);return{cx:a,cy:s,r:l}}function rF(t,e){var n=null==t?"":t+"";return e&&(Wt(e)?n=e.replace("{value}",n):Ft(e)&&(n=e(t))),n}var iF=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Q(e,t),e.prototype.render=function(t,e,n){this.group.removeAll();var r=t.get(["axisLine","lineStyle","color"]),i=nF(t,n);this._renderMain(t,e,n,r,i),this._data=t.getData()},e.prototype.dispose=function(){},e.prototype._renderMain=function(t,e,n,r,i){var o=this.group,a=t.get("clockwise"),s=-t.get("startAngle")/180*Math.PI,l=-t.get("endAngle")/180*Math.PI,u=t.getModel("axisLine"),c=u.get("roundCap"),h=c?gI:By,d=u.get("show"),p=u.getModel("lineStyle"),f=p.get("width"),g=[s,l];Ru(g,!a),s=g[0],l=g[1];for(var v=l-s,m=s,y=[],b=0;d&&b<r.length;b++){var _=Math.min(Math.max(r[b][0],0),1);l=s+v*_;var x=new h({shape:{startAngle:m,endAngle:l,cx:i.cx,cy:i.cy,clockwise:a,r0:i.r-f,r:i.r},silent:!0});x.setStyle({fill:r[b][1]}),x.setStyle(p.getLineStyle(["color","width"])),y.push(x),m=l}y.reverse(),Pt(y,(function(t){return o.add(t)}));var w=function(t){if(t<=0)return r[0][1];var e;for(e=0;e<r.length;e++)if(r[e][0]>=t&&(0===e?0:r[e-1][0])<t)return r[e][1];return r[e-1][1]};this._renderTicks(t,e,n,w,i,s,l,a,f),this._renderTitleAndDetail(t,e,n,w,i),this._renderAnchor(t,i),this._renderPointer(t,e,n,w,i,s,l,a,f)},e.prototype._renderTicks=function(t,e,n,r,i,o,a,s,l){for(var u,c,h=this.group,d=i.cx,p=i.cy,f=i.r,g=+t.get("min"),v=+t.get("max"),m=t.getModel("splitLine"),y=t.getModel("axisTick"),b=t.getModel("axisLabel"),_=t.get("splitNumber"),x=y.get("splitNumber"),w=es(m.get("length"),f),O=es(y.get("length"),f),S=o,A=(a-o)/_,k=A/x,C=m.getModel("lineStyle").getLineStyle(),M=y.getModel("lineStyle").getLineStyle(),T=m.get("distance"),P=0;P<=_;P++){if(u=Math.cos(S),c=Math.sin(S),m.get("show")){var I=T?T+l:l,$=new tb({shape:{x1:u*(f-I)+d,y1:c*(f-I)+p,x2:u*(f-w-I)+d,y2:c*(f-w-I)+p},style:C,silent:!0});"auto"===C.stroke&&$.setStyle({stroke:r(P/_)}),h.add($)}if(b.get("show")){I=b.get("distance")+T;var E=rF(ns(P/_*(v-g)+g),b.get("formatter")),R=r(P/_),D=u*(f-w-I)+d,L=c*(f-w-I)+p,N=b.get("rotate"),z=0;"radial"===N?(z=-S+2*Math.PI,z>Math.PI/2&&(z+=Math.PI)):"tangential"===N?z=-S-Math.PI/2:Vt(N)&&(z=N*Math.PI/180),0===z?h.add(new Vc({style:_d(b,{text:E,x:D,y:L,verticalAlign:c<-.8?"top":c>.8?"bottom":"middle",align:u<-.4?"left":u>.4?"right":"center"},{inheritColor:R}),silent:!0})):h.add(new Vc({style:_d(b,{text:E,x:D,y:L,verticalAlign:"middle",align:"center"},{inheritColor:R}),silent:!0,originX:D,originY:L,rotation:z}))}if(y.get("show")&&P!==_){I=y.get("distance");I=I?I+l:l;for(var B=0;B<=x;B++){u=Math.cos(S),c=Math.sin(S);var F=new tb({shape:{x1:u*(f-I)+d,y1:c*(f-I)+p,x2:u*(f-O-I)+d,y2:c*(f-O-I)+p},silent:!0,style:M});"auto"===M.stroke&&F.setStyle({stroke:r((P+B/x)/_)}),h.add(F),S+=k}S-=k}else S+=A}},e.prototype._renderPointer=function(t,e,n,r,i,o,a,s,l){var u=this.group,c=this._data,h=this._progressEls,d=[],p=t.get(["pointer","show"]),f=t.getModel("progress"),g=f.get("show"),v=t.getData(),m=v.mapDimension("value"),y=+t.get("min"),b=+t.get("max"),_=[y,b],x=[o,a];function w(e,n){var r,o=v.getItemModel(e),a=o.getModel("pointer"),s=es(a.get("width"),i.r),l=es(a.get("length"),i.r),u=t.get(["pointer","icon"]),c=a.get("offsetCenter"),h=es(c[0],i.r),d=es(c[1],i.r),p=a.get("keepAspect");return r=u?kx(u,h-s/2,d-l,s,l,null,p):new eF({shape:{angle:-Math.PI/2,width:s,r:l,x:h,y:d}}),r.rotation=-(n+Math.PI/2),r.x=i.cx,r.y=i.cy,r}function O(t,e){var n=f.get("roundCap"),r=n?gI:By,a=f.get("overlap"),u=a?f.get("width"):l/v.count(),c=a?i.r-u:i.r-(t+1)*u,h=a?i.r:i.r-t*u,d=new r({shape:{startAngle:o,endAngle:e,cx:i.cx,cy:i.cy,clockwise:s,r0:c,r:h}});return a&&(d.z2=b-v.get(m,t)%b),d}(g||p)&&(v.diff(c).add((function(e){var n=v.get(m,e);if(p){var r=w(e,o);ld(r,{rotation:-((isNaN(+n)?x[0]:ts(n,_,x,!0))+Math.PI/2)},t),u.add(r),v.setItemGraphicEl(e,r)}if(g){var i=O(e,o),a=f.get("clip");ld(i,{shape:{endAngle:ts(n,_,x,a)}},t),u.add(i),Hc(t.seriesIndex,v.dataType,e,i),d[e]=i}})).update((function(e,n){var r=v.get(m,e);if(p){var i=c.getItemGraphicEl(n),a=i?i.rotation:o,s=w(e,a);s.rotation=a,sd(s,{rotation:-((isNaN(+r)?x[0]:ts(r,_,x,!0))+Math.PI/2)},t),u.add(s),v.setItemGraphicEl(e,s)}if(g){var l=h[n],y=l?l.shape.endAngle:o,b=O(e,y),S=f.get("clip");sd(b,{shape:{endAngle:ts(r,_,x,S)}},t),u.add(b),Hc(t.seriesIndex,v.dataType,e,b),d[e]=b}})).execute(),v.each((function(t){var e=v.getItemModel(t),n=e.getModel("emphasis"),i=n.get("focus"),o=n.get("blurScope"),a=n.get("disabled");if(p){var s=v.getItemGraphicEl(t),l=v.getItemVisual(t,"style"),u=l.fill;if(s instanceof vc){var c=s.style;s.useStyle(Ot({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(e.getModel(["pointer","itemStyle"]).getItemStyle()),"auto"===s.style.fill&&s.setStyle("fill",r(ts(v.get(m,t),_,[0,1],!0))),s.z2EmphasisLift=0,Yh(s,e),Zh(s,i,o,a)}if(g){var h=d[t];h.useStyle(v.getItemVisual(t,"style")),h.setStyle(e.getModel(["progress","itemStyle"]).getItemStyle()),h.z2EmphasisLift=0,Yh(h,e),Zh(h,i,o,a)}})),this._progressEls=d)},e.prototype._renderAnchor=function(t,e){var n=t.getModel("anchor"),r=n.get("show");if(r){var i=n.get("size"),o=n.get("icon"),a=n.get("offsetCenter"),s=n.get("keepAspect"),l=kx(o,e.cx-i/2+es(a[0],e.r),e.cy-i/2+es(a[1],e.r),i,i,null,s);l.z2=n.get("showAbove")?1:0,l.setStyle(n.getModel("itemStyle").getItemStyle()),this.group.add(l)}},e.prototype._renderTitleAndDetail=function(t,e,n,r,i){var o=this,a=t.getData(),s=a.mapDimension("value"),l=+t.get("min"),u=+t.get("max"),c=new La,h=[],d=[],p=t.isAnimationEnabled(),f=t.get(["pointer","showAbove"]);a.diff(this._data).add((function(t){h[t]=new Vc({silent:!0}),d[t]=new Vc({silent:!0})})).update((function(t,e){h[t]=o._titleEls[e],d[t]=o._detailEls[e]})).execute(),a.each((function(e){var n=a.getItemModel(e),o=a.get(s,e),g=new La,v=r(ts(o,[l,u],[0,1],!0)),m=n.getModel("title");if(m.get("show")){var y=m.get("offsetCenter"),b=i.cx+es(y[0],i.r),_=i.cy+es(y[1],i.r),x=h[e];x.attr({z2:f?0:2,style:_d(m,{x:b,y:_,text:a.getName(e),align:"center",verticalAlign:"middle"},{inheritColor:v})}),g.add(x)}var w=n.getModel("detail");if(w.get("show")){var O=w.get("offsetCenter"),S=i.cx+es(O[0],i.r),A=i.cy+es(O[1],i.r),k=es(w.get("width"),i.r),C=es(w.get("height"),i.r),M=t.get(["progress","show"])?a.getItemVisual(e,"style").fill:v,T=(x=d[e],w.get("formatter"));x.attr({z2:f?0:2,style:_d(w,{x:S,y:A,text:rF(o,T),width:isNaN(k)?null:k,height:isNaN(C)?null:C,align:"center",verticalAlign:"middle"},{inheritColor:M})}),Pd(x,{normal:w},o,(function(t){return rF(t,T)})),p&&Id(x,e,a,t,{getFormattedLabel:function(t,e,n,r,i,a){return rF(a?a.interpolatedValue:o,T)}}),g.add(x)}c.add(g)})),this.group.add(c),this._titleEls=h,this._detailEls=d},e.type="gauge",e}(d_),oF=iF,aF=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.visualStyleAccessPath="itemStyle",n}return Q(e,t),e.prototype.getInitialData=function(t,e){return u$(this,["value"])},e.type="series.gauge",e.defaultOption={z:2,colorBy:"data",center:["50%","50%"],legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,roundCap:!1,lineStyle:{color:[[1,"#E6EBF8"]],width:10}},progress:{show:!1,overlap:!0,width:10,roundCap:!1,clip:!0},splitLine:{show:!0,length:10,distance:10,lineStyle:{color:"#63677A",width:3,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:6,distance:10,lineStyle:{color:"#63677A",width:1,type:"solid"}},axisLabel:{show:!0,distance:15,color:"#464646",fontSize:12,rotate:0},pointer:{icon:null,offsetCenter:[0,0],show:!0,showAbove:!0,length:"60%",width:6,keepAspect:!1},anchor:{show:!1,showAbove:!1,size:6,icon:"circle",offsetCenter:[0,0],keepAspect:!1,itemStyle:{color:"#fff",borderWidth:0,borderColor:"#5470c6"}},title:{show:!0,offsetCenter:[0,"20%"],color:"#464646",fontSize:16,valueAnimation:!1},detail:{show:!0,backgroundColor:"rgba(0,0,0,0)",borderWidth:0,borderColor:"#ccc",width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:"#464646",fontSize:30,fontWeight:"bold",lineHeight:30,valueAnimation:!1}},e}(Vm),sF=aF;function lF(t){t.registerChartView(oF),t.registerSeriesModel(sF)}var uF=["itemStyle","opacity"],cF=function(t){function e(e,n){var r=t.call(this)||this,i=r,o=new Yy,a=new Vc;return i.setTextContent(a),r.setTextGuideLine(o),r.updateData(e,n,!0),r}return Q(e,t),e.prototype.updateData=function(t,e,n){var r=this,i=t.hostModel,o=t.getItemModel(e),a=t.getItemLayout(e),s=o.getModel("emphasis"),l=o.get(uF);l=null==l?1:l,n||pd(r),r.useStyle(t.getItemVisual(e,"style")),r.style.lineJoin="round",n?(r.setShape({points:a.points}),r.style.opacity=0,ld(r,{style:{opacity:l}},i,e)):sd(r,{style:{opacity:l},shape:{points:a.points}},i,e),Yh(r,o),this._updateLabel(t,e),Zh(this,s.get("focus"),s.get("blurScope"),s.get("disabled"))},e.prototype._updateLabel=function(t,e){var n=this,r=this.getTextGuideLine(),i=n.getTextContent(),o=t.hostModel,a=t.getItemModel(e),s=t.getItemLayout(e),l=s.label,u=t.getItemVisual(e,"style"),c=u.fill;yd(i,bd(a),{labelFetcher:t.hostModel,labelDataIndex:e,defaultOpacity:u.opacity,defaultText:t.getName(e)},{normal:{align:l.textAlign,verticalAlign:l.verticalAlign}}),n.setTextConfig({local:!0,inside:!!l.inside,insideStroke:c,outsideFill:c});var h=l.linePoints;r.setShape({points:h}),n.textGuideLineConfig={anchor:h?new Dn(h[0][0],h[0][1]):null},sd(i,{style:{x:l.x,y:l.y}},o,e),i.attr({rotation:l.rotation,originX:l.x,originY:l.y,z2:10}),JC(n,tM(a),{stroke:c})},e}(Gy),hF=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.ignoreLabelLineUpdate=!0,n}return Q(e,t),e.prototype.render=function(t,e,n){var r=t.getData(),i=this._data,o=this.group;r.diff(i).add((function(t){var e=new cF(r,t);r.setItemGraphicEl(t,e),o.add(e)})).update((function(t,e){var n=i.getItemGraphicEl(e);n.updateData(r,t),o.add(n),r.setItemGraphicEl(t,n)})).remove((function(e){var n=i.getItemGraphicEl(e);dd(n,t,e)})).execute(),this._data=r},e.prototype.remove=function(){this.group.removeAll(),this._data=null},e.prototype.dispose=function(){},e.type="funnel",e}(d_),dF=hF,pF=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Q(e,t),e.prototype.init=function(e){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new h$(Nt(this.getData,this),Nt(this.getRawData,this)),this._defaultLabelLine(e)},e.prototype.getInitialData=function(t,e){return u$(this,{coordDimensions:["value"],encodeDefaulter:zt(Ef,this)})},e.prototype._defaultLabelLine=function(t){Ts(t,"labelLine",["show"]);var e=t.labelLine,n=t.emphasis.labelLine;e.show=e.show&&t.label.show,n.show=n.show&&t.emphasis.label.show},e.prototype.getDataParams=function(e){var n=this.getData(),r=t.prototype.getDataParams.call(this,e),i=n.mapDimension("value"),o=n.getSum(i);return r.percent=o?+(n.get(i,e)/o*100).toFixed(2):0,r.$vars.push("percent"),r},e.type="series.funnel",e.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",left:80,top:60,right:80,bottom:60,minSize:"0%",maxSize:"100%",sort:"descending",orient:"vertical",gap:0,funnelAlign:"center",label:{show:!0,position:"outer"},labelLine:{show:!0,length:20,lineStyle:{width:1}},itemStyle:{borderColor:"#fff",borderWidth:1},emphasis:{label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},e}(Vm),fF=pF;function gF(t,e){return af(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function vF(t,e){for(var n=t.mapDimension("value"),r=t.mapArray(n,(function(t){return t})),i=[],o="ascending"===e,a=0,s=t.count();a<s;a++)i[a]=a;return Ft(e)?i.sort(e):"none"!==e&&i.sort((function(t,e){return o?r[t]-r[e]:r[e]-r[t]})),i}function mF(t){var e=t.hostModel,n=e.get("orient");t.each((function(e){var r,i,o,a,s=t.getItemModel(e),l=s.getModel("label"),u=l.get("position"),c=s.getModel("labelLine"),h=t.getItemLayout(e),d=h.points,p="inner"===u||"inside"===u||"center"===u||"insideLeft"===u||"insideRight"===u;if(p)"insideLeft"===u?(i=(d[0][0]+d[3][0])/2+5,o=(d[0][1]+d[3][1])/2,r="left"):"insideRight"===u?(i=(d[1][0]+d[2][0])/2-5,o=(d[1][1]+d[2][1])/2,r="right"):(i=(d[0][0]+d[1][0]+d[2][0]+d[3][0])/4,o=(d[0][1]+d[1][1]+d[2][1]+d[3][1])/4,r="center"),a=[[i,o],[i,o]];else{var f=void 0,g=void 0,v=void 0,m=void 0,y=c.get("length");0,"left"===u?(f=(d[3][0]+d[0][0])/2,g=(d[3][1]+d[0][1])/2,v=f-y,i=v-5,r="right"):"right"===u?(f=(d[1][0]+d[2][0])/2,g=(d[1][1]+d[2][1])/2,v=f+y,i=v+5,r="left"):"top"===u?(f=(d[3][0]+d[0][0])/2,g=(d[3][1]+d[0][1])/2,m=g-y,o=m-5,r="center"):"bottom"===u?(f=(d[1][0]+d[2][0])/2,g=(d[1][1]+d[2][1])/2,m=g+y,o=m+5,r="center"):"rightTop"===u?(f="horizontal"===n?d[3][0]:d[1][0],g="horizontal"===n?d[3][1]:d[1][1],"horizontal"===n?(m=g-y,o=m-5,r="center"):(v=f+y,i=v+5,r="top")):"rightBottom"===u?(f=d[2][0],g=d[2][1],"horizontal"===n?(m=g+y,o=m+5,r="center"):(v=f+y,i=v+5,r="bottom")):"leftTop"===u?(f=d[0][0],g="horizontal"===n?d[0][1]:d[1][1],"horizontal"===n?(m=g-y,o=m-5,r="center"):(v=f-y,i=v-5,r="right")):"leftBottom"===u?(f="horizontal"===n?d[1][0]:d[3][0],g="horizontal"===n?d[1][1]:d[2][1],"horizontal"===n?(m=g+y,o=m+5,r="center"):(v=f-y,i=v-5,r="right")):(f=(d[1][0]+d[2][0])/2,g=(d[1][1]+d[2][1])/2,"horizontal"===n?(m=g+y,o=m+5,r="center"):(v=f+y,i=v+5,r="left")),"horizontal"===n?(v=f,i=v):(m=g,o=m),a=[[f,g],[v,m]]}h.label={linePoints:a,x:i,y:o,verticalAlign:"middle",textAlign:r,inside:p}}))}function yF(t,e){t.eachSeriesByType("funnel",(function(t){var n=t.getData(),r=n.mapDimension("value"),i=t.get("sort"),o=gF(t,e),a=t.get("orient"),s=o.width,l=o.height,u=vF(n,i),c=o.x,h=o.y,d="horizontal"===a?[es(t.get("minSize"),l),es(t.get("maxSize"),l)]:[es(t.get("minSize"),s),es(t.get("maxSize"),s)],p=n.getDataExtent(r),f=t.get("min"),g=t.get("max");null==f&&(f=Math.min(p[0],0)),null==g&&(g=p[1]);var v=t.get("funnelAlign"),m=t.get("gap"),y="horizontal"===a?s:l,b=(y-m*(n.count()-1))/n.count(),_=function(t,e){if("horizontal"===a){var i=n.get(r,t)||0,o=ts(i,[f,g],d,!0),u=void 0;switch(v){case"top":u=h;break;case"center":u=h+(l-o)/2;break;case"bottom":u=h+(l-o);break}return[[e,u],[e,u+o]]}var p,m=n.get(r,t)||0,y=ts(m,[f,g],d,!0);switch(v){case"left":p=c;break;case"center":p=c+(s-y)/2;break;case"right":p=c+s-y;break}return[[p,e],[p+y,e]]};"ascending"===i&&(b=-b,m=-m,"horizontal"===a?c+=s:h+=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=es(A,s),"ascending"===i&&(A=-A));var k=_(w,c),C=_(O,c+A);c+=A+m,n.setItemLayout(w,{points:k.concat(C.slice().reverse())})}else{var M=S.get(["itemStyle","height"]);null==M?M=b:(M=es(M,l),"ascending"===i&&(M=-M));k=_(w,h),C=_(O,h+M);h+=M+m,n.setItemLayout(w,{points:k.concat(C.slice().reverse())})}}mF(n)}))}function bF(t){t.registerChartView(dF),t.registerSeriesModel(fF),t.registerLayout(yF),t.registerProcessor(JI("funnel"))}var _F=.3,xF=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._dataGroup=new La,n._initialized=!1,n}return Q(e,t),e.prototype.init=function(){this.group.add(this._dataGroup)},e.prototype.render=function(t,e,n,r){this._progressiveEls=null;var i=this._dataGroup,o=t.getData(),a=this._data,s=t.coordinateSystem,l=s.dimensions,u=AF(t);function c(t){var e=SF(o,i,t,l,s);kF(e,o,t,u)}function h(e,n){var r=a.getItemGraphicEl(n),i=OF(o,e,l,s);o.setItemGraphicEl(e,r),sd(r,{shape:{points:i}},t,e),pd(r),kF(r,o,e,u)}function d(t){var e=a.getItemGraphicEl(t);i.remove(e)}if(o.diff(a).add(c).update(h).remove(d).execute(),!this._initialized){this._initialized=!0;var p=wF(s,t,(function(){setTimeout((function(){i.removeClipPath()}))}));i.setClipPath(p)}this._data=o},e.prototype.incrementalPrepareRender=function(t,e,n){this._initialized=!0,this._data=null,this._dataGroup.removeAll()},e.prototype.incrementalRender=function(t,e,n){for(var r=e.getData(),i=e.coordinateSystem,o=i.dimensions,a=AF(e),s=this._progressiveEls=[],l=t.start;l<t.end;l++){var u=SF(r,this._dataGroup,l,o,i);u.incremental=!0,kF(u,r,l,a),s.push(u)}},e.prototype.remove=function(){this._dataGroup&&this._dataGroup.removeAll(),this._data=null},e.type="parallel",e}(d_);function wF(t,e,n){var r=t.model,i=t.getRect(),o=new Ac({shape:{x:i.x,y:i.y,width:i.width,height:i.height}}),a="horizontal"===r.get("layout")?"width":"height";return o.setShape(a,0),ld(o,{shape:{width:i.width,height:i.height}},e,n),o}function OF(t,e,n,r){for(var i=[],o=0;o<n.length;o++){var a=n[o],s=t.get(t.mapDimension(a),e);CF(s,r.getAxis(a).type)||i.push(r.dataToPoint(s,a))}return i}function SF(t,e,n,r,i){var o=OF(t,n,r,i),a=new Yy({shape:{points:o},z2:10});return e.add(a),t.setItemGraphicEl(n,a),a}function AF(t){var e=t.get("smooth",!0);return!0===e&&(e=_F),e=_s(e),qt(e)&&(e=0),{smooth:e}}function kF(t,e,n,r){t.useStyle(e.getItemVisual(n,"style")),t.style.fill=null,t.setShape("smooth",r.smooth);var i=e.getItemModel(n),o=i.getModel("emphasis");Yh(t,i,"lineStyle"),Zh(t,o.get("focus"),o.get("blurScope"),o.get("disabled"))}function CF(t,e){return"category"===e?null==t:null==t||isNaN(t)}var MF=xF,TF=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.visualStyleAccessPath="lineStyle",n.visualDrawType="stroke",n}return Q(e,t),e.prototype.getInitialData=function(t,e){return dA(null,this,{useEncodeDefaulter:Nt(PF,null,this)})},e.prototype.getRawIndicesByActiveState=function(t){var e=this.coordinateSystem,n=this.getData(),r=[];return e.eachActiveState(n,(function(e,i){t===e&&r.push(n.getRawIndex(i))})),r},e.type="series.parallel",e.dependencies=["parallel"],e.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"},e}(Vm);function PF(t){var e=t.ecModel.getComponent("parallel",t.get("parallelIndex"));if(e){var n={};return Pt(e.dimensions,(function(t){var e=IF(t);n[t]=e})),n}}function IF(t){return+t.replace("dim","")}var $F=TF,EF=["lineStyle","opacity"],RF={seriesType:"parallel",reset:function(t,e){var n=t.coordinateSystem,r={normal:t.get(["lineStyle","opacity"]),active:t.get("activeOpacity"),inactive:t.get("inactiveOpacity")};return{progress:function(t,e){n.eachActiveState(e,(function(t,n){var i=r[t];if("normal"===t&&e.hasItemOption){var o=e.getItemModel(n).get(EF,!0);null!=o&&(i=o)}var a=e.ensureUniqueItemVisual(n,"style");a.opacity=i}),t.start,t.end)}}}},DF=RF;function LF(t){NF(t),zF(t)}function NF(t){if(!t.parallel){var e=!1;Pt(t.series,(function(t){t&&"parallel"===t.type&&(e=!0)})),e&&(t.parallel=[{}])}}function zF(t){var e=Ms(t.parallelAxis);Pt(e,(function(e){if(Qt(e)){var n=e.parallelIndex||0,r=Ms(t.parallel)[n];r&&r.parallelAxisDefault&&xt(e,r.parallelAxisDefault,!1)}}))}var BF=5,FF=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Q(e,t),e.prototype.render=function(t,e,n){this._model=t,this._api=n,this._handlers||(this._handlers={},Pt(WF,(function(t,e){n.getZr().on(e,this._handlers[e]=Nt(t,this))}),this)),m_(this,"_throttledDispatchExpand",t.get("axisExpandRate"),"fixRate")},e.prototype.dispose=function(t,e){y_(this,"_throttledDispatchExpand"),Pt(this._handlers,(function(t,n){e.getZr().off(n,t)})),this._handlers=null},e.prototype._throttledDispatchExpand=function(t){this._dispatchExpand(t)},e.prototype._dispatchExpand=function(t){t&&this._api.dispatchAction(Ot({type:"parallelAxisExpand"},t))},e.type="parallel",e}(Hm),WF={mousedown:function(t){jF(this,"click")&&(this._mouseDownPoint=[t.offsetX,t.offsetY])},mouseup:function(t){var e=this._mouseDownPoint;if(jF(this,"click")&&e){var n=[t.offsetX,t.offsetY],r=Math.pow(e[0]-n[0],2)+Math.pow(e[1]-n[1],2);if(r>BF)return;var i=this._model.coordinateSystem.getSlidedAxisExpandWindow([t.offsetX,t.offsetY]);"none"!==i.behavior&&this._dispatchExpand({axisExpandWindow:i.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(t){if(!this._mouseDownPoint&&jF(this,"mousemove")){var e=this._model,n=e.coordinateSystem.getSlidedAxisExpandWindow([t.offsetX,t.offsetY]),r=n.behavior;"jump"===r&&this._throttledDispatchExpand.debounceNextCall(e.get("axisExpandDebounce")),this._throttledDispatchExpand("none"===r?null:{axisExpandWindow:n.axisExpandWindow,animation:"jump"===r?null:{duration:0}})}}};function jF(t,e){var n=t._model;return n.get("axisExpandable")&&n.get("axisExpandTriggerOn")===e}var VF=FF,QF=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Q(e,t),e.prototype.init=function(){t.prototype.init.apply(this,arguments),this.mergeOption({})},e.prototype.mergeOption=function(t){var e=this.option;t&&xt(e,t,!0),this._initDimensions()},e.prototype.contains=function(t,e){var n=t.get("parallelIndex");return null!=n&&e.getComponent("parallel",n)===this},e.prototype.setAxisExpand=function(t){Pt(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],(function(e){t.hasOwnProperty(e)&&(this.option[e]=t[e])}),this)},e.prototype._initDimensions=function(){var t=this.dimensions=[],e=this.parallelAxisIndex=[],n=Et(this.ecModel.queryComponents({mainType:"parallelAxis"}),(function(t){return(t.get("parallelIndex")||0)===this.componentIndex}),this);Pt(n,(function(n){t.push("dim"+n.get("dim")),e.push(n.componentIndex)}))},e.type="parallel",e.dependencies=["parallelAxis"],e.layoutMode="box",e.defaultOption={z:0,left:80,top:60,right:80,bottom:60,layout:"horizontal",axisExpandable:!1,axisExpandCenter:null,axisExpandCount:0,axisExpandWidth:50,axisExpandRate:17,axisExpandDebounce:50,axisExpandSlideTriggerArea:[-.15,.05,.4],axisExpandTriggerOn:"click",parallelAxisDefault:null},e}(vf),HF=QF,ZF=function(t){function e(e,n,r,i,o){var a=t.call(this,e,n,r)||this;return a.type=i||"value",a.axisIndex=o,a}return Q(e,t),e.prototype.isHorizontal=function(){return"horizontal"!==this.coordinateSystem.getModel().get("layout")},e}(kC),GF=ZF;function XF(t,e,n,r,i,o){t=t||0;var a=n[1]-n[0];if(null!=i&&(i=YF(i,[0,a])),null!=o&&(o=Math.max(o,null!=i?i:0)),"all"===r){var s=Math.abs(e[1]-e[0]);s=YF(s,[0,a]),i=o=YF(s,[i,o]),r=0}e[0]=YF(e[0],n),e[1]=YF(e[1],n);var l=UF(e,r);e[r]+=t;var u,c=i||0,h=n.slice();return l.sign<0?h[0]+=c:h[1]-=c,e[r]=YF(e[r],h),u=UF(e,r),null!=i&&(u.sign!==l.sign||u.span<i)&&(e[1-r]=e[r]+l.sign*i),u=UF(e,r),null!=o&&u.span>o&&(e[1-r]=e[r]+u.sign*o),e}function UF(t,e){var n=t[e]-t[1-e];return{span:Math.abs(n),sign:n>0?-1:n<0?1:e?-1:1}}function YF(t,e){return Math.min(null!=e[1]?e[1]:1/0,Math.max(null!=e[0]?e[0]:-1/0,t))}var qF=Pt,KF=Math.min,JF=Math.max,tW=Math.floor,eW=Math.ceil,nW=ns,rW=Math.PI,iW=function(){function t(t,e,n){this.type="parallel",this._axesMap=de(),this._axesLayout={},this.dimensions=t.dimensions,this._model=t,this._init(t,e,n)}return t.prototype._init=function(t,e,n){var r=t.dimensions,i=t.parallelAxisIndex;qF(r,(function(t,n){var r=i[n],o=e.getComponent("parallelAxis",r),a=this._axesMap.set(t,new GF(t,Ck(o),[0,0],o.get("type"),r)),s="category"===a.type;a.onBand=s&&o.get("boundaryGap"),a.inverse=o.get("inverse"),o.axis=a,a.model=o,a.coordinateSystem=o.coordinateSystem=this}),this)},t.prototype.update=function(t,e){this._updateAxesFromSeries(this._model,t)},t.prototype.containPoint=function(t){var e=this._makeLayoutInfo(),n=e.axisBase,r=e.layoutBase,i=e.pixelDimIndex,o=t[1-i],a=t[i];return o>=n&&o<=n+e.axisLength&&a>=r&&a<=r+e.layoutLength},t.prototype.getModel=function(){return this._model},t.prototype._updateAxesFromSeries=function(t,e){e.eachSeries((function(n){if(t.contains(n,e)){var r=n.getData();qF(this.dimensions,(function(t){var e=this._axesMap.get(t);e.scale.unionExtentFromData(r,r.mapDimension(t)),kk(e.scale,e.model)}),this)}}),this)},t.prototype.resize=function(t,e){this._rect=af(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()}),this._layoutAxes()},t.prototype.getRect=function(){return this._rect},t.prototype._makeLayoutInfo=function(){var t,e=this._model,n=this._rect,r=["x","y"],i=["width","height"],o=e.get("layout"),a="horizontal"===o?0:1,s=n[i[a]],l=[0,s],u=this.dimensions.length,c=oW(e.get("axisExpandWidth"),l),h=oW(e.get("axisExpandCount")||0,[0,u]),d=e.get("axisExpandable")&&u>3&&u>h&&h>1&&c>0&&s>0,p=e.get("axisExpandWindow");if(p)t=oW(p[1]-p[0],l),p[1]=p[0]+t;else{t=oW(c*(h-1),l);var f=e.get("axisExpandCenter")||tW(u/2);p=[c*f-t/2],p[1]=p[0]+t}var g=(s-t)/(u-h);g<3&&(g=0);var v=[tW(nW(p[0]/c,1))+1,eW(nW(p[1]/c,1))-1],m=g/c*p[0];return{layout:o,pixelDimIndex:a,layoutBase:n[r[a]],layoutLength:s,axisBase:n[r[1-a]],axisLength:n[i[1-a]],axisExpandable:d,axisExpandWidth:c,axisCollapseWidth:g,axisExpandWindow:p,axisCount:u,winInnerIndices:v,axisExpandWindow0Pos:m}},t.prototype._layoutAxes=function(){var t=this._rect,e=this._axesMap,n=this.dimensions,r=this._makeLayoutInfo(),i=r.layout;e.each((function(t){var e=[0,r.axisLength],n=t.inverse?1:0;t.setExtent(e[n],e[1-n])})),qF(n,(function(e,n){var o=(r.axisExpandable?sW:aW)(n,r),a={horizontal:{x:o.position,y:r.axisLength},vertical:{x:0,y:o.position}},s={horizontal:rW/2,vertical:0},l=[a[i].x+t.x,a[i].y+t.y],u=s[i],c=An();Pn(c,c,u),Tn(c,c,l),this._axesLayout[e]={position:l,rotation:u,transform:c,axisNameAvailableWidth:o.axisNameAvailableWidth,axisLabelShow:o.axisLabelShow,nameTruncateMaxWidth:o.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}}),this)},t.prototype.getAxis=function(t){return this._axesMap.get(t)},t.prototype.dataToPoint=function(t,e){return this.axisCoordToPoint(this._axesMap.get(e).dataToCoord(t),e)},t.prototype.eachActiveState=function(t,e,n,r){null==n&&(n=0),null==r&&(r=t.count());var i=this._axesMap,o=this.dimensions,a=[],s=[];Pt(o,(function(e){a.push(t.mapDimension(e)),s.push(i.get(e).model)}));for(var l=this.hasAxisBrushed(),u=n;u<r;u++){var c=void 0;if(l){c="active";for(var h=t.getValues(a,u),d=0,p=o.length;d<p;d++){var f=s[d].getActiveState(h[d]);if("inactive"===f){c="inactive";break}}}else c="normal";e(c,u)}},t.prototype.hasAxisBrushed=function(){for(var t=this.dimensions,e=this._axesMap,n=!1,r=0,i=t.length;r<i;r++)"normal"!==e.get(t[r]).model.getActiveState()&&(n=!0);return n},t.prototype.axisCoordToPoint=function(t,e){var n=this._axesLayout[e];return Vb([t,0],n.transform)},t.prototype.getAxisLayout=function(t){return _t(this._axesLayout[t])},t.prototype.getSlidedAxisExpandWindow=function(t){var e=this._makeLayoutInfo(),n=e.pixelDimIndex,r=e.axisExpandWindow.slice(),i=r[1]-r[0],o=[0,e.axisExpandWidth*(e.axisCount-1)];if(!this.containPoint(t))return{behavior:"none",axisExpandWindow:r};var a,s=t[n]-e.layoutBase-e.axisExpandWindow0Pos,l="slide",u=e.axisCollapseWidth,c=this._model.get("axisExpandSlideTriggerArea"),h=null!=c[0];if(u)h&&u&&s<i*c[0]?(l="jump",a=s-i*c[2]):h&&u&&s>i*(1-c[0])?(l="jump",a=s-i*(1-c[2])):(a=s-i*c[1])>=0&&(a=s-i*(1-c[1]))<=0&&(a=0),a*=e.axisExpandWidth/u,a?XF(a,r,o,"all"):l="none";else{var d=r[1]-r[0],p=o[1]*s/d;r=[JF(0,p-d/2)],r[1]=KF(o[1],r[0]+d),r[0]=r[1]-d}return{axisExpandWindow:r,behavior:l}},t}();function oW(t,e){return KF(JF(t,e[0]),e[1])}function aW(t,e){var n=e.layoutLength/(e.axisCount-1);return{position:n*t,axisNameAvailableWidth:n,axisLabelShow:!0}}function sW(t,e){var n,r,i=e.layoutLength,o=e.axisExpandWidth,a=e.axisCount,s=e.axisCollapseWidth,l=e.winInnerIndices,u=s,c=!1;return t<l[0]?(n=t*s,r=s):t<=l[1]?(n=e.axisExpandWindow0Pos+t*o-e.axisExpandWindow[0],u=o,c=!0):(n=i-(a-1-t)*s,r=s),{position:n,axisNameAvailableWidth:u,axisLabelShow:c,nameTruncateMaxWidth:r}}var lW=iW;function uW(t,e){var n=[];return t.eachComponent("parallel",(function(r,i){var o=new lW(r,t,e);o.name="parallel_"+i,o.resize(r,e),r.coordinateSystem=o,o.model=r,n.push(o)})),t.eachSeries((function(t){if("parallel"===t.get("coordinateSystem")){var e=t.getReferringComponents("parallel",tl).models[0];t.coordinateSystem=e.coordinateSystem}})),n}var cW={create:uW},hW=cW,dW=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.activeIntervals=[],n}return Q(e,t),e.prototype.getAreaSelectStyle=function(){return wl([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["width","width"],["opacity","opacity"]])(this.getModel("areaSelectStyle"))},e.prototype.setActiveIntervals=function(t){var e=this.activeIntervals=_t(t);if(e)for(var n=e.length-1;n>=0;n--)rs(e[n])},e.prototype.getActiveState=function(t){var e=this.activeIntervals;if(!e.length)return"normal";if(null==t||isNaN(+t))return"inactive";if(1===e.length){var n=e[0];if(n[0]<=t&&t<=n[1])return"active"}else for(var r=0,i=e.length;r<i;r++)if(e[r][0]<=t&&t<=e[r][1])return"active";return"inactive"},e}(vf);Mt(dW,Nk);var pW=dW,fW=!0,gW=Math.min,vW=Math.max,mW=Math.pow,yW=1e4,bW=6,_W=6,xW="globalPan",wW={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},OW={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},SW={brushStyle:{lineWidth:2,stroke:"rgba(210,219,238,0.3)",fill:"#D2DBEE"},transformable:!0,brushMode:"single",removeOnClick:!1},AW=0,kW=function(t){function e(e){var n=t.call(this)||this;return n._track=[],n._covers=[],n._handlers={},n._zr=e,n.group=new La,n._uid="brushController_"+AW++,Pt(ij,(function(t,e){this._handlers[e]=Nt(t,this)}),n),n}return Q(e,t),e.prototype.enableBrush=function(t){return this._brushType&&this._doDisableBrush(),t.brushType&&this._doEnableBrush(t),this},e.prototype._doEnableBrush=function(t){var e=this._zr;this._enableGlobalPan||hR(e,xW,this._uid),Pt(this._handlers,(function(t,n){e.on(n,t)})),this._brushType=t.brushType,this._brushOption=xt(_t(SW),t,!0)},e.prototype._doDisableBrush=function(){var t=this._zr;dR(t,xW,this._uid),Pt(this._handlers,(function(e,n){t.off(n,e)})),this._brushType=this._brushOption=null},e.prototype.setPanels=function(t){if(t&&t.length){var e=this._panels={};Pt(t,(function(t){e[t.panelId]=_t(t)}))}else this._panels=null;return this},e.prototype.mount=function(t){t=t||{},this._enableGlobalPan=t.enableGlobalPan;var e=this.group;return this._zr.add(e),e.attr({x:t.x||0,y:t.y||0,rotation:t.rotation||0,scaleX:t.scaleX||1,scaleY:t.scaleY||1}),this._transform=e.getLocalTransform(),this},e.prototype.updateCovers=function(t){t=It(t,(function(t){return xt(_t(SW),t,!0)}));var e="\0-brush-index-",n=this._covers,r=this._covers=[],i=this,o=this._creatingCover;return new mS(n,t,s,a).add(l).update(l).remove(u).execute(),this;function a(t,n){return(null!=t.id?t.id:e+n)+"-"+t.brushType}function s(t,e){return a(t.__brushOption,e)}function l(e,a){var s=t[e];if(null!=a&&n[a]===o)r[e]=n[a];else{var l=r[e]=null!=a?(n[a].__brushOption=s,n[a]):MW(i,CW(i,s));IW(i,l)}}function u(t){n[t]!==o&&i.group.remove(n[t])}},e.prototype.unmount=function(){return this.enableBrush(!1),DW(this),this._zr.remove(this.group),this},e.prototype.dispose=function(){this.unmount(),this.off()},e}(Xe);function CW(t,e){var n=sj[e.brushType].createCover(t,e);return n.__brushOption=e,PW(n,e),t.group.add(n),n}function MW(t,e){var n=$W(e);return n.endCreating&&(n.endCreating(t,e),PW(e,e.__brushOption)),e}function TW(t,e){var n=e.__brushOption;$W(e).updateCoverShape(t,e,n.range,n)}function PW(t,e){var n=e.z;null==n&&(n=yW),t.traverse((function(t){t.z=n,t.z2=n}))}function IW(t,e){$W(e).updateCommon(t,e),TW(t,e)}function $W(t){return sj[t.__brushOption.brushType]}function EW(t,e,n){var r,i=t._panels;if(!i)return fW;var o=t._transform;return Pt(i,(function(t){t.isTargetByCursor(e,n,o)&&(r=t)})),r}function RW(t,e){var n=t._panels;if(!n)return fW;var r=e.__brushOption.panelId;return null!=r?n[r]:fW}function DW(t){var e=t._covers,n=e.length;return Pt(e,(function(e){t.group.remove(e)}),t),e.length=0,!!n}function LW(t,e){var n=It(t._covers,(function(t){var e=t.__brushOption,n=_t(e.range);return{brushType:e.brushType,panelId:e.panelId,range:n}}));t.trigger("brush",{areas:n,isEnd:!!e.isEnd,removeOnClick:!!e.removeOnClick})}function NW(t){var e=t._track;if(!e.length)return!1;var n=e[e.length-1],r=e[0],i=n[0]-r[0],o=n[1]-r[1],a=mW(i*i+o*o,.5);return a>bW}function zW(t){var e=t.length-1;return e<0&&(e=0),[t[0],t[e]]}function BW(t,e,n,r){var i=new La;return i.add(new Ac({name:"main",style:VW(n),silent:!0,draggable:!0,cursor:"move",drift:zt(XW,t,e,i,["n","s","w","e"]),ondragend:zt(LW,e,{isEnd:!0})})),Pt(r,(function(n){i.add(new Ac({name:n.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:zt(XW,t,e,i,n),ondragend:zt(LW,e,{isEnd:!0})}))})),i}function FW(t,e,n,r){var i=r.brushStyle.lineWidth||0,o=vW(i,_W),a=n[0][0],s=n[1][0],l=a-i/2,u=s-i/2,c=n[0][1],h=n[1][1],d=c-o+i/2,p=h-o+i/2,f=c-a,g=h-s,v=f+i,m=g+i;jW(t,e,"main",a,s,f,g),r.transformable&&(jW(t,e,"w",l,u,o,m),jW(t,e,"e",d,u,o,m),jW(t,e,"n",l,u,v,o),jW(t,e,"s",l,p,v,o),jW(t,e,"nw",l,u,o,o),jW(t,e,"ne",d,u,o,o),jW(t,e,"sw",l,p,o,o),jW(t,e,"se",d,p,o,o))}function WW(t,e){var n=e.__brushOption,r=n.transformable,i=e.childAt(0);i.useStyle(VW(n)),i.attr({silent:!r,cursor:r?"move":"default"}),Pt([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],(function(n){var i=e.childOfName(n.join("")),o=1===n.length?ZW(t,n[0]):GW(t,n);i&&i.attr({silent:!r,invisible:!r,cursor:r?OW[o]+"-resize":null})}))}function jW(t,e,n,r,i,o,a){var s=e.childOfName(n);s&&s.setShape(KW(qW(t,e,[[r,i],[r+o,i+a]])))}function VW(t){return St({strokeNoScale:!0},t.brushStyle)}function QW(t,e,n,r){var i=[gW(t,n),gW(e,r)],o=[vW(t,n),vW(e,r)];return[[i[0],o[0]],[i[1],o[1]]]}function HW(t){return jb(t.group)}function ZW(t,e){var n={w:"left",e:"right",n:"top",s:"bottom"},r={left:"w",right:"e",top:"n",bottom:"s"},i=Qb(n[e],HW(t));return r[i]}function GW(t,e){var n=[ZW(t,e[0]),ZW(t,e[1])];return("e"===n[0]||"w"===n[0])&&n.reverse(),n.join("")}function XW(t,e,n,r,i,o){var a=n.__brushOption,s=t.toRectRange(a.range),l=YW(e,i,o);Pt(r,(function(t){var e=wW[t];s[e[0]][e[1]]+=l[e[0]]})),a.range=t.fromRectRange(QW(s[0][0],s[1][0],s[0][1],s[1][1])),IW(e,n),LW(e,{isEnd:!1})}function UW(t,e,n,r){var i=e.__brushOption.range,o=YW(t,n,r);Pt(i,(function(t){t[0]+=o[0],t[1]+=o[1]})),IW(t,e),LW(t,{isEnd:!1})}function YW(t,e,n){var r=t.group,i=r.transformCoordToLocal(e,n),o=r.transformCoordToLocal(0,0);return[i[0]-o[0],i[1]-o[1]]}function qW(t,e,n){var r=RW(t,e);return r&&r!==fW?r.clipPath(n,t._transform):_t(n)}function KW(t){var e=gW(t[0][0],t[1][0]),n=gW(t[0][1],t[1][1]),r=vW(t[0][0],t[1][0]),i=vW(t[0][1],t[1][1]);return{x:e,y:n,width:r-e,height:i-n}}function JW(t,e,n){if(t._brushType&&!aj(t,e.offsetX,e.offsetY)){var r=t._zr,i=t._covers,o=EW(t,e,n);if(!t._dragging)for(var a=0;a<i.length;a++){var s=i[a].__brushOption;if(o&&(o===fW||s.panelId===o.panelId)&&sj[s.brushType].contain(i[a],n[0],n[1]))return}o&&r.setCursorStyle("crosshair")}}function tj(t){var e=t.event;e.preventDefault&&e.preventDefault()}function ej(t,e,n){return t.childOfName("main").contain(e,n)}function nj(t,e,n,r){var i,o=t._creatingCover,a=t._creatingPanel,s=t._brushOption;if(t._track.push(n.slice()),NW(t)||o){if(a&&!o){"single"===s.brushMode&&DW(t);var l=_t(s);l.brushType=rj(l.brushType,a),l.panelId=a===fW?null:a.panelId,o=t._creatingCover=CW(t,l),t._covers.push(o)}if(o){var u=sj[rj(t._brushType,a)],c=o.__brushOption;c.range=u.getCreatingRange(qW(t,o,t._track)),r&&(MW(t,o),u.updateCommon(t,o)),TW(t,o),i={isEnd:r}}}else r&&"single"===s.brushMode&&s.removeOnClick&&EW(t,e,n)&&DW(t)&&(i={isEnd:r,removeOnClick:!0});return i}function rj(t,e){return"auto"===t?e.defaultBrushType:t}var ij={mousedown:function(t){if(this._dragging)oj(this,t);else if(!t.target||!t.target.draggable){tj(t);var e=this.group.transformCoordToLocal(t.offsetX,t.offsetY);this._creatingCover=null;var n=this._creatingPanel=EW(this,t,e);n&&(this._dragging=!0,this._track=[e.slice()])}},mousemove:function(t){var e=t.offsetX,n=t.offsetY,r=this.group.transformCoordToLocal(e,n);if(JW(this,t,r),this._dragging){tj(t);var i=nj(this,t,r,!1);i&&LW(this,i)}},mouseup:function(t){oj(this,t)}};function oj(t,e){if(t._dragging){tj(e);var n=e.offsetX,r=e.offsetY,i=t.group.transformCoordToLocal(n,r),o=nj(t,e,i,!0);t._dragging=!1,t._track=[],t._creatingCover=null,o&&LW(t,o)}}function aj(t,e,n){var r=t._zr;return e<0||e>r.getWidth()||n<0||n>r.getHeight()}var sj={lineX:lj(0),lineY:lj(1),rect:{createCover:function(t,e){function n(t){return t}return BW({toRectRange:n,fromRectRange:n},t,e,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(t){var e=zW(t);return QW(e[1][0],e[1][1],e[0][0],e[0][1])},updateCoverShape:function(t,e,n,r){FW(t,e,n,r)},updateCommon:WW,contain:ej},polygon:{createCover:function(t,e){var n=new La;return n.add(new Yy({name:"main",style:VW(e),silent:!0})),n},getCreatingRange:function(t){return t},endCreating:function(t,e){e.remove(e.childAt(0)),e.add(new Gy({name:"main",draggable:!0,drift:zt(UW,t,e),ondragend:zt(LW,t,{isEnd:!0})}))},updateCoverShape:function(t,e,n,r){e.childAt(0).setShape({points:qW(t,e,n)})},updateCommon:WW,contain:ej}};function lj(t){return{createCover:function(e,n){return BW({toRectRange:function(e){var n=[e,[0,100]];return t&&n.reverse(),n},fromRectRange:function(e){return e[t]}},e,n,[[["w"],["e"]],[["n"],["s"]]][t])},getCreatingRange:function(e){var n=zW(e),r=gW(n[0][t],n[1][t]),i=vW(n[0][t],n[1][t]);return[r,i]},updateCoverShape:function(e,n,r,i){var o,a=RW(e,n);if(a!==fW&&a.getLinearBrushOtherExtent)o=a.getLinearBrushOtherExtent(t);else{var s=e._zr;o=[0,[s.getWidth(),s.getHeight()][1-t]]}var l=[r,o];t&&l.reverse(),FW(e,n,l,i)},updateCommon:WW,contain:ej}}var uj=kW;function cj(t){return t=pj(t),function(e){return Xb(e,t)}}function hj(t,e){return t=pj(t),function(n){var r=null!=e?e:n,i=r?t.width:t.height,o=r?t.x:t.y;return[o,o+(i||0)]}}function dj(t,e,n){var r=pj(t);return function(t,i){return r.contain(i[0],i[1])&&!SR(t,e,n)}}function pj(t){return Hn.create(t)}var fj=["axisLine","axisTickLabel","axisName"],gj=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Q(e,t),e.prototype.init=function(e,n){t.prototype.init.apply(this,arguments),(this._brushController=new uj(n.getZr())).on("brush",Nt(this._onBrush,this))},e.prototype.render=function(t,e,n,r){if(!vj(t,e,r)){this.axisModel=t,this.api=n,this.group.removeAll();var i=this._axisGroup;if(this._axisGroup=new La,this.group.add(this._axisGroup),t.get("show")){var o=yj(t,e),a=o.coordinateSystem,s=t.getAreaSelectStyle(),l=s.width,u=t.axis.dim,c=a.getAxisLayout(u),h=Ot({strokeContainThreshold:l},c),d=new gE(t,h);Pt(fj,d.add,d),this._axisGroup.add(d.getGroup()),this._refreshBrushController(h,s,t,o,l,n),Gb(i,this._axisGroup,t)}}},e.prototype._refreshBrushController=function(t,e,n,r,i,o){var a=n.axis.getExtent(),s=a[1]-a[0],l=Math.min(30,.1*Math.abs(s)),u=Hn.create({x:a[0],y:-i/2,width:s,height:i});u.x-=l,u.width+=2*l,this._brushController.mount({enableGlobalPan:!0,rotation:t.rotation,x:t.position[0],y:t.position[1]}).setPanels([{panelId:"pl",clipPath:cj(u),isTargetByCursor:dj(u,o,r),getLinearBrushOtherExtent:hj(u,0)}]).enableBrush({brushType:"lineX",brushStyle:e,removeOnClick:!0}).updateCovers(mj(n))},e.prototype._onBrush=function(t){var e=t.areas,n=this.axisModel,r=n.axis,i=It(e,(function(t){return[r.coordToData(t.range[0],!0),r.coordToData(t.range[1],!0)]}));(!n.option.realtime===t.isEnd||t.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:n.id,intervals:i})},e.prototype.dispose=function(){this._brushController.dispose()},e.type="parallelAxis",e}(Hm);function vj(t,e,n){return n&&"axisAreaSelect"===n.type&&e.findComponents({mainType:"parallelAxis",query:n})[0]===t}function mj(t){var e=t.axis;return It(t.activeIntervals,(function(t){return{brushType:"lineX",panelId:"pl",range:[e.dataToCoord(t[0],!0),e.dataToCoord(t[1],!0)]}}))}function yj(t,e){return e.getComponent("parallel",t.get("parallelIndex"))}var bj=gj,_j={type:"axisAreaSelect",event:"axisAreaSelected"};function xj(t){t.registerAction(_j,(function(t,e){e.eachComponent({mainType:"parallelAxis",query:t},(function(e){e.axis.model.setActiveIntervals(t.intervals)}))})),t.registerAction("parallelAxisExpand",(function(t,e){e.eachComponent({mainType:"parallel",query:t},(function(e){e.setAxisExpand(t)}))}))}var wj={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function Oj(t){t.registerComponentView(VF),t.registerComponentModel(HF),t.registerCoordinateSystem("parallel",hW),t.registerPreprocessor(LF),t.registerComponentModel(pW),t.registerComponentView(bj),L$(t,"parallel",pW,wj),xj(t)}function Sj(t){pS(Oj),t.registerChartView(MF),t.registerSeriesModel($F),t.registerVisual(t.PRIORITY.VISUAL.BRUSH,DF)}var Aj=function(){function t(){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 t}(),kj=function(t){function e(e){return t.call(this,e)||this}return Q(e,t),e.prototype.getDefaultShape=function(){return new Aj},e.prototype.buildPath=function(t,e){var n=e.extent;t.moveTo(e.x1,e.y1),t.bezierCurveTo(e.cpx1,e.cpy1,e.cpx2,e.cpy2,e.x2,e.y2),"vertical"===e.orient?(t.lineTo(e.x2+n,e.y2),t.bezierCurveTo(e.cpx2+n,e.cpy2,e.cpx1+n,e.cpy1,e.x1+n,e.y1)):(t.lineTo(e.x2,e.y2+n),t.bezierCurveTo(e.cpx2,e.cpy2+n,e.cpx1,e.cpy1+n,e.x1,e.y1+n)),t.closePath()},e.prototype.highlight=function(){Ch(this)},e.prototype.downplay=function(){Mh(this)},e}(lc),Cj=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._focusAdjacencyDisabled=!1,n}return Q(e,t),e.prototype.render=function(t,e,n){var r=this,i=t.getGraph(),o=this.group,a=t.layoutInfo,s=a.width,l=a.height,u=t.getData(),c=t.getData("edge"),h=t.get("orient");this._model=t,o.removeAll(),o.x=a.x,o.y=a.y,i.eachEdge((function(e){var n=new kj,r=Qc(n);r.dataIndex=e.dataIndex,r.seriesIndex=t.seriesIndex,r.dataType="edge";var i,a,u,d,p,f,g,v,m=e.getModel(),y=m.getModel("lineStyle"),b=y.get("curveness"),_=e.node1.getLayout(),x=e.node1.getModel(),w=x.get("localX"),O=x.get("localY"),S=e.node2.getLayout(),A=e.node2.getModel(),k=A.get("localX"),C=A.get("localY"),M=e.getLayout();n.shape.extent=Math.max(1,M.dy),n.shape.orient=h,"vertical"===h?(i=(null!=w?w*s:_.x)+M.sy,a=(null!=O?O*l:_.y)+_.dy,u=(null!=k?k*s:S.x)+M.ty,d=null!=C?C*l:S.y,p=i,f=a*(1-b)+d*b,g=u,v=a*b+d*(1-b)):(i=(null!=w?w*s:_.x)+_.dx,a=(null!=O?O*l:_.y)+M.sy,u=null!=k?k*s:S.x,d=(null!=C?C*l:S.y)+M.ty,p=i*(1-b)+u*b,f=a,g=i*b+u*(1-b),v=d),n.setShape({x1:i,y1:a,x2:u,y2:d,cpx1:p,cpy1:f,cpx2:g,cpy2:v}),n.useStyle(y.getItemStyle()),Mj(n.style,h,e);var T=""+m.get("value"),P=bd(m,"edgeLabel");yd(n,P,{labelFetcher:{getFormattedLabel:function(e,n,r,i,o,a){return t.getFormattedLabel(e,n,"edge",i,te(o,P.normal&&P.normal.get("formatter"),T),a)}},labelDataIndex:e.dataIndex,defaultText:T}),n.setTextConfig({position:"inside"});var I=m.getModel("emphasis");Yh(n,m,"lineStyle",(function(t){var n=t.getItemStyle();return Mj(n,h,e),n})),o.add(n),c.setItemGraphicEl(e.dataIndex,n);var $=I.get("focus");Zh(n,"adjacency"===$?e.getAdjacentDataIndices():"trajectory"===$?e.getTrajectoryDataIndices():$,I.get("blurScope"),I.get("disabled"))})),i.eachNode((function(e){var n=e.getLayout(),r=e.getModel(),i=r.get("localX"),a=r.get("localY"),c=r.getModel("emphasis"),h=r.get(["itemStyle","borderRadius"])||0,d=new Ac({shape:{x:null!=i?i*s:n.x,y:null!=a?a*l:n.y,width:n.dx,height:n.dy,r:h},style:r.getModel("itemStyle").getItemStyle(),z2:10});yd(d,bd(r),{labelFetcher:{getFormattedLabel:function(e,n){return t.getFormattedLabel(e,n,"node")}},labelDataIndex:e.dataIndex,defaultText:e.id}),d.disableLabelAnimation=!0,d.setStyle("fill",e.getVisual("color")),d.setStyle("decal",e.getVisual("style").decal),Yh(d,r),o.add(d),u.setItemGraphicEl(e.dataIndex,d),Qc(d).dataType="node";var p=c.get("focus");Zh(d,"adjacency"===p?e.getAdjacentDataIndices():"trajectory"===p?e.getTrajectoryDataIndices():p,c.get("blurScope"),c.get("disabled"))})),u.eachItemGraphicEl((function(e,i){var o=u.getItemModel(i);o.get("draggable")&&(e.drift=function(e,o){r._focusAdjacencyDisabled=!0,this.shape.x+=e,this.shape.y+=o,this.dirty(),n.dispatchAction({type:"dragNode",seriesId:t.id,dataIndex:u.getRawIndex(i),localX:this.shape.x/s,localY:this.shape.y/l})},e.ondragend=function(){r._focusAdjacencyDisabled=!1},e.draggable=!0,e.cursor="move")})),!this._data&&t.isAnimationEnabled()&&o.setClipPath(Tj(o.getBoundingRect(),t,(function(){o.removeClipPath()}))),this._data=t.getData()},e.prototype.dispose=function(){},e.type="sankey",e}(d_);function Mj(t,e,n){switch(t.fill){case"source":t.fill=n.node1.getVisual("color"),t.decal=n.node1.getVisual("style").decal;break;case"target":t.fill=n.node2.getVisual("color"),t.decal=n.node2.getVisual("style").decal;break;case"gradient":var r=n.node1.getVisual("color"),i=n.node2.getVisual("color");Wt(r)&&Wt(i)&&(t.fill=new fb(0,0,+("horizontal"===e),+("vertical"===e),[{color:r,offset:0},{color:i,offset:1}]))}}function Tj(t,e,n){var r=new Ac({shape:{x:t.x-10,y:t.y-10,width:0,height:t.height+20}});return ld(r,{shape:{width:t.width+20}},e,n),r}var Pj=Cj,Ij=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Q(e,t),e.prototype.getInitialData=function(t,e){var n=t.edges||t.links,r=t.data||t.nodes,i=t.levels;this.levelModels=[];for(var o=this.levelModels,a=0;a<i.length;a++)null!=i[a].depth&&i[a].depth>=0&&(o[i[a].depth]=new Qd(i[a],this,e));if(r&&n){var s=XB(r,n,this,!0,l);return s.data}function l(t,e){t.wrapMethod("getItemModel",(function(t,e){var n=t.parentModel,r=n.getData().getItemLayout(e);if(r){var i=r.depth,o=n.levelModels[i];o&&(t.parentModel=o)}return t})),e.wrapMethod("getItemModel",(function(t,e){var n=t.parentModel,r=n.getGraph().getEdgeByIndex(e),i=r.node1.getLayout();if(i){var o=i.depth,a=n.levelModels[o];a&&(t.parentModel=a)}return t}))}},e.prototype.setNodePosition=function(t,e){var n=this.option.data||this.option.nodes,r=n[t];r.localX=e[0],r.localY=e[1]},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.formatTooltip=function(t,e,n){function r(t){return isNaN(t)||null==t}if("edge"===n){var i=this.getDataParams(t,n),o=i.data,a=i.value,s=o.source+" -- "+o.target;return pm("nameValue",{name:s,value:a,noValue:r(a)})}var l=this.getGraph().getNodeByIndex(t),u=l.getLayout().value,c=this.getDataParams(t,n).data.name;return pm("nameValue",{name:null!=c?c+"":null,value:u,noValue:r(u)})},e.prototype.optionUpdated=function(){},e.prototype.getDataParams=function(e,n){var r=t.prototype.getDataParams.call(this,e,n);if(null==r.value&&"node"===n){var i=this.getGraph().getNodeByIndex(e),o=i.getLayout().value;r.value=o}return r},e.type="series.sankey",e.defaultOption={z:2,coordinateSystem:"view",left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,layoutIterations:32,label:{show:!0,position:"right",fontSize:12},edgeLabel:{show:!1,fontSize:12},levels:[],nodeAlign:"justify",lineStyle:{color:"#314656",opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},select:{itemStyle:{borderColor:"#212121"}},animationEasing:"linear",animationDuration:1e3},e}(Vm),$j=Ij;function Ej(t,e){t.eachSeriesByType("sankey",(function(t){var n=t.get("nodeWidth"),r=t.get("nodeGap"),i=Rj(t,e);t.layoutInfo=i;var o=i.width,a=i.height,s=t.getGraph(),l=s.nodes,u=s.edges;Lj(l);var c=Et(l,(function(t){return 0===t.getLayout().value})),h=0!==c.length?0:t.get("layoutIterations"),d=t.get("orient"),p=t.get("nodeAlign");Dj(l,u,n,r,o,a,h,d,p)}))}function Rj(t,e){return af(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function Dj(t,e,n,r,i,o,a,s,l){Nj(t,e,n,i,o,s,l),jj(t,e,o,i,r,a,s),eV(t,s)}function Lj(t){Pt(t,(function(t){var e=Jj(t.outEdges,Kj),n=Jj(t.inEdges,Kj),r=t.getValue()||0,i=Math.max(e,n,r);t.setLayout({value:i},!0)}))}function Nj(t,e,n,r,i,o,a){for(var s=[],l=[],u=[],c=[],h=0,d=0;d<e.length;d++)s[d]=1;for(d=0;d<t.length;d++)l[d]=t[d].inEdges.length,0===l[d]&&u.push(t[d]);var p=-1;while(u.length){for(var f=0;f<u.length;f++){var g=u[f],v=g.hostGraph.data.getRawDataItem(g.dataIndex),m=null!=v.depth&&v.depth>=0;m&&v.depth>p&&(p=v.depth),g.setLayout({depth:m?v.depth:h},!0),"vertical"===o?g.setLayout({dy:n},!0):g.setLayout({dx:n},!0);for(var y=0;y<g.outEdges.length;y++){var b=g.outEdges[y],_=e.indexOf(b);s[_]=0;var x=b.node2,w=t.indexOf(x);0===--l[w]&&c.indexOf(x)<0&&c.push(x)}}++h,u=c,c=[]}for(d=0;d<s.length;d++)if(1===s[d])throw new Error("Sankey is a DAG, the original data has cycle!");var O=p>h-1?p:h-1;a&&"left"!==a&&Bj(t,a,o,O);var S="vertical"===o?(i-n)/O:(r-n)/O;Wj(t,S,o)}function zj(t){var e=t.hostGraph.data.getRawDataItem(t.dataIndex);return null!=e.depth&&e.depth>=0}function Bj(t,e,n,r){if("right"===e){var i=[],o=t,a=0;while(o.length){for(var s=0;s<o.length;s++){var l=o[s];l.setLayout({skNodeHeight:a},!0);for(var u=0;u<l.inEdges.length;u++){var c=l.inEdges[u];i.indexOf(c.node1)<0&&i.push(c.node1)}}o=i,i=[],++a}Pt(t,(function(t){zj(t)||t.setLayout({depth:Math.max(0,r-t.getLayout().skNodeHeight)},!0)}))}else"justify"===e&&Fj(t,r)}function Fj(t,e){Pt(t,(function(t){zj(t)||t.outEdges.length||t.setLayout({depth:e},!0)}))}function Wj(t,e,n){Pt(t,(function(t){var r=t.getLayout().depth*e;"vertical"===n?t.setLayout({y:r},!0):t.setLayout({x:r},!0)}))}function jj(t,e,n,r,i,o,a){var s=Vj(t,a);Qj(s,e,n,r,i,a),Hj(s,i,n,r,a);for(var l=1;o>0;o--)l*=.99,Zj(s,l,a),Hj(s,i,n,r,a),tV(s,l,a),Hj(s,i,n,r,a)}function Vj(t,e){var n=[],r="vertical"===e?"y":"x",i=al(t,(function(t){return t.getLayout()[r]}));return i.keys.sort((function(t,e){return t-e})),Pt(i.keys,(function(t){n.push(i.buckets.get(t))})),n}function Qj(t,e,n,r,i,o){var a=1/0;Pt(t,(function(t){var e=t.length,s=0;Pt(t,(function(t){s+=t.getLayout().value}));var l="vertical"===o?(r-(e-1)*i)/s:(n-(e-1)*i)/s;l<a&&(a=l)})),Pt(t,(function(t){Pt(t,(function(t,e){var n=t.getLayout().value*a;"vertical"===o?(t.setLayout({x:e},!0),t.setLayout({dx:n},!0)):(t.setLayout({y:e},!0),t.setLayout({dy:n},!0))}))})),Pt(e,(function(t){var e=+t.getValue()*a;t.setLayout({dy:e},!0)}))}function Hj(t,e,n,r,i){var o="vertical"===i?"x":"y";Pt(t,(function(t){var a,s,l;t.sort((function(t,e){return t.getLayout()[o]-e.getLayout()[o]}));for(var u=0,c=t.length,h="vertical"===i?"dx":"dy",d=0;d<c;d++)s=t[d],l=u-s.getLayout()[o],l>0&&(a=s.getLayout()[o]+l,"vertical"===i?s.setLayout({x:a},!0):s.setLayout({y:a},!0)),u=s.getLayout()[o]+s.getLayout()[h]+e;var p="vertical"===i?r:n;if(l=u-e-p,l>0){a=s.getLayout()[o]-l,"vertical"===i?s.setLayout({x:a},!0):s.setLayout({y:a},!0),u=a;for(d=c-2;d>=0;--d)s=t[d],l=s.getLayout()[o]+s.getLayout()[h]+e-u,l>0&&(a=s.getLayout()[o]-l,"vertical"===i?s.setLayout({x:a},!0):s.setLayout({y:a},!0)),u=s.getLayout()[o]}}))}function Zj(t,e,n){Pt(t.slice().reverse(),(function(t){Pt(t,(function(t){if(t.outEdges.length){var r=Jj(t.outEdges,Gj,n)/Jj(t.outEdges,Kj);if(isNaN(r)){var i=t.outEdges.length;r=i?Jj(t.outEdges,Xj,n)/i:0}if("vertical"===n){var o=t.getLayout().x+(r-qj(t,n))*e;t.setLayout({x:o},!0)}else{var a=t.getLayout().y+(r-qj(t,n))*e;t.setLayout({y:a},!0)}}}))}))}function Gj(t,e){return qj(t.node2,e)*t.getValue()}function Xj(t,e){return qj(t.node2,e)}function Uj(t,e){return qj(t.node1,e)*t.getValue()}function Yj(t,e){return qj(t.node1,e)}function qj(t,e){return"vertical"===e?t.getLayout().x+t.getLayout().dx/2:t.getLayout().y+t.getLayout().dy/2}function Kj(t){return t.getValue()}function Jj(t,e,n){var r=0,i=t.length,o=-1;while(++o<i){var a=+e(t[o],n);isNaN(a)||(r+=a)}return r}function tV(t,e,n){Pt(t,(function(t){Pt(t,(function(t){if(t.inEdges.length){var r=Jj(t.inEdges,Uj,n)/Jj(t.inEdges,Kj);if(isNaN(r)){var i=t.inEdges.length;r=i?Jj(t.inEdges,Yj,n)/i:0}if("vertical"===n){var o=t.getLayout().x+(r-qj(t,n))*e;t.setLayout({x:o},!0)}else{var a=t.getLayout().y+(r-qj(t,n))*e;t.setLayout({y:a},!0)}}}))}))}function eV(t,e){var n="vertical"===e?"x":"y";Pt(t,(function(t){t.outEdges.sort((function(t,e){return t.node2.getLayout()[n]-e.node2.getLayout()[n]})),t.inEdges.sort((function(t,e){return t.node1.getLayout()[n]-e.node1.getLayout()[n]}))})),Pt(t,(function(t){var e=0,n=0;Pt(t.outEdges,(function(t){t.setLayout({sy:e},!0),e+=t.getLayout().dy})),Pt(t.inEdges,(function(t){t.setLayout({ty:n},!0),n+=t.getLayout().dy}))}))}function nV(t){t.eachSeriesByType("sankey",(function(t){var e=t.getGraph(),n=e.nodes,r=e.edges;if(n.length){var i=1/0,o=-1/0;Pt(n,(function(t){var e=t.getLayout().value;e<i&&(i=e),e>o&&(o=e)})),Pt(n,(function(e){var n=new ez({type:"color",mappingMethod:"linear",dataExtent:[i,o],visual:t.get("color")}),r=n.mapValueToVisual(e.getLayout().value),a=e.getModel().get(["itemStyle","color"]);null!=a?(e.setVisual("color",a),e.setVisual("style",{fill:a})):(e.setVisual("color",r),e.setVisual("style",{fill:r}))}))}r.length&&Pt(r,(function(t){var e=t.getModel().get("lineStyle");t.setVisual("style",e)}))}))}function rV(t){t.registerChartView(Pj),t.registerSeriesModel($j),t.registerLayout(Ej),t.registerVisual(nV),t.registerAction({type:"dragNode",event:"dragnode",update:"update"},(function(t,e){e.eachComponent({mainType:"series",subType:"sankey",query:t},(function(e){e.setNodePosition(t.dataIndex,[t.localX,t.localY])}))}))}var iV=function(){function t(){}return t.prototype.getInitialData=function(t,e){var n,r,i=e.getComponent("xAxis",this.get("xAxisIndex")),o=e.getComponent("yAxis",this.get("yAxisIndex")),a=i.get("type"),s=o.get("type");"category"===a?(t.layout="horizontal",n=i.getOrdinalMeta(),r=!0):"category"===s?(t.layout="vertical",n=o.getOrdinalMeta(),r=!0):t.layout=t.layout||"horizontal";var l=["x","y"],u="horizontal"===t.layout?0:1,c=this._baseAxisDim=l[u],h=l[1-u],d=[i,o],p=d[u].get("type"),f=d[1-u].get("type"),g=t.data;if(g&&r){var v=[];Pt(g,(function(t,e){var n;Bt(t)?(n=t.slice(),t.unshift(e)):Bt(t.value)?(n=Ot({},t),n.value=n.value.slice(),t.value.unshift(e)):n=t,v.push(n)})),t.data=v}var m=this.defaultValueDimensions,y=[{name:c,type:xS(p),ordinalMeta:n,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:h,type:xS(f),dimsDef:m.slice()}];return u$(this,{coordDimensions:y,dimensionsCount:m.length+1,encodeDefaulter:zt($f,y,this)})},t.prototype.getBaseAxis=function(){var t=this._baseAxisDim;return this.ecModel.getComponent(t+"Axis",this.get(t+"AxisIndex")).axis},t}(),oV=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.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(e,t),e.type="series.boxplot",e.dependencies=["xAxis","yAxis","grid"],e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,boxWidth:[7,50],itemStyle:{color:"#fff",borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}},animationDuration:800},e}(Vm);Mt(oV,iV,!0);var aV=oV,sV=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Q(e,t),e.prototype.render=function(t,e,n){var r=t.getData(),i=this.group,o=this._data;this._data||i.removeAll();var a="horizontal"===t.get("layout")?1:0;r.diff(o).add((function(t){if(r.hasValue(t)){var e=r.getItemLayout(t),n=cV(e,r,t,a,!0);r.setItemGraphicEl(t,n),i.add(n)}})).update((function(t,e){var n=o.getItemGraphicEl(e);if(r.hasValue(t)){var s=r.getItemLayout(t);n?(pd(n),hV(s,n,r,t)):n=cV(s,r,t,a),i.add(n),r.setItemGraphicEl(t,n)}else i.remove(n)})).remove((function(t){var e=o.getItemGraphicEl(t);e&&i.remove(e)})).execute(),this._data=r},e.prototype.remove=function(t){var e=this.group,n=this._data;this._data=null,n&&n.eachItemGraphicEl((function(t){t&&e.remove(t)}))},e.type="boxplot",e}(d_),lV=function(){function t(){}return t}(),uV=function(t){function e(e){var n=t.call(this,e)||this;return n.type="boxplotBoxPath",n}return Q(e,t),e.prototype.getDefaultShape=function(){return new lV},e.prototype.buildPath=function(t,e){var n=e.points,r=0;for(t.moveTo(n[r][0],n[r][1]),r++;r<4;r++)t.lineTo(n[r][0],n[r][1]);for(t.closePath();r<n.length;r++)t.moveTo(n[r][0],n[r][1]),r++,t.lineTo(n[r][0],n[r][1])},e}(lc);function cV(t,e,n,r,i){var o=t.ends,a=new uV({shape:{points:i?dV(o,r,t):o}});return hV(t,a,e,n,i),a}function hV(t,e,n,r,i){var o=n.hostModel,a=l[i?"initProps":"updateProps"];a(e,{shape:{points:t.ends}},o,r),e.useStyle(n.getItemVisual(r,"style")),e.style.strokeNoScale=!0,e.z2=100;var s=n.getItemModel(r),u=s.getModel("emphasis");Yh(e,s),Zh(e,u.get("focus"),u.get("blurScope"),u.get("disabled"))}function dV(t,e,n){return It(t,(function(t){return t=t.slice(),t[e]=n.initBaseline,t}))}var pV=sV,fV=Pt;function gV(t){var e=vV(t);fV(e,(function(t){var e=t.seriesModels;e.length&&(mV(t),fV(e,(function(e,n){yV(e,t.boxOffsetList[n],t.boxWidthList[n])})))}))}function vV(t){var e=[],n=[];return t.eachSeriesByType("boxplot",(function(t){var r=t.getBaseAxis(),i=kt(n,r);i<0&&(i=n.length,n[i]=r,e[i]={axis:r,seriesModels:[]}),e[i].seriesModels.push(t)})),e}function mV(t){var e,n=t.axis,r=t.seriesModels,i=r.length,o=t.boxWidthList=[],a=t.boxOffsetList=[],s=[];if("category"===n.type)e=n.getBandWidth();else{var l=0;fV(r,(function(t){l=Math.max(l,t.getData().count())}));var u=n.getExtent();e=Math.abs(u[1]-u[0])/l}fV(r,(function(t){var n=t.get("boxWidth");Bt(n)||(n=[n,n]),s.push([es(n[0],e)||0,es(n[1],e)||0])}));var c=.8*e-2,h=c/i*.3,d=(c-h*(i-1))/i,p=d/2-c/2;fV(r,(function(t,e){a.push(p),p+=h+d,o.push(Math.min(Math.max(d,s[e][0]),s[e][1]))}))}function yV(t,e,n){var r=t.coordinateSystem,i=t.getData(),o=n/2,a="horizontal"===t.get("layout")?0:1,s=1-a,l=["x","y"],u=i.mapDimension(l[a]),c=i.mapDimensionsAll(l[s]);if(!(null==u||c.length<5))for(var h=0;h<i.count();h++){var d=i.get(u,h),p=b(d,c[2],h),f=b(d,c[0],h),g=b(d,c[1],h),v=b(d,c[3],h),m=b(d,c[4],h),y=[];_(y,g,!1),_(y,v,!0),y.push(f,g,m,v),x(y,f),x(y,m),x(y,p),i.setItemLayout(h,{initBaseline:p[s],ends:y})}function b(t,n,o){var l,u=i.get(n,o),c=[];return c[a]=t,c[s]=u,isNaN(t)||isNaN(u)?l=[NaN,NaN]:(l=r.dataToPoint(c),l[a]+=e),l}function _(t,e,n){var r=e.slice(),i=e.slice();r[a]+=o,i[a]-=o,n?t.push(r,i):t.push(i,r)}function x(t,e){var n=e.slice(),r=e.slice();n[a]-=o,r[a]+=o,t.push(n,r)}}function bV(t,e){e=e||{};for(var n=[],r=[],i=e.boundIQR,o="none"===i||0===i,a=0;a<t.length;a++){var s=rs(t[a].slice()),l=ys(s,.25),u=ys(s,.5),c=ys(s,.75),h=s[0],d=s[s.length-1],p=(null==i?1.5:i)*(c-l),f=o?h:Math.max(h,l-p),g=o?d:Math.min(d,c+p),v=e.itemNameFormatter,m=Ft(v)?v({value:a}):Wt(v)?v.replace("{value}",a+""):a+"";n.push([m,f,l,u,c,g]);for(var y=0;y<s.length;y++){var b=s[y];if(b<f||b>g){var _=[m,b];r.push(_)}}}return{boxData:n,outliers:r}}var _V={type:"echarts:boxplot",transform:function(t){var e=t.upstream;if(e.sourceFormat!==wf){var n="";0,kv(n)}var r=bV(e.getRawData(),t.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:r.boxData},{data:r.outliers}]}};function xV(t){t.registerSeriesModel(aV),t.registerChartView(pV),t.registerLayout(gV),t.registerTransform(_V)}var wV=["color","borderColor"],OV=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Q(e,t),e.prototype.render=function(t,e,n){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(t),this._isLargeDraw?this._renderLarge(t):this._renderNormal(t)},e.prototype.incrementalPrepareRender=function(t,e,n){this._clear(),this._updateDrawMode(t)},e.prototype.incrementalRender=function(t,e,n,r){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(t,e):this._incrementalRenderNormal(t,e)},e.prototype.eachRendered=function(t){r_(this._progressiveEls||this.group,t)},e.prototype._updateDrawMode=function(t){var e=t.pipelineContext.large;null!=this._isLargeDraw&&e===this._isLargeDraw||(this._isLargeDraw=e,this._clear())},e.prototype._renderNormal=function(t){var e=t.getData(),n=this._data,r=this.group,i=e.getLayout("isSimpleBox"),o=t.get("clip",!0),a=t.coordinateSystem,s=a.getArea&&a.getArea();this._data||r.removeAll(),e.diff(n).add((function(n){if(e.hasValue(n)){var a=e.getItemLayout(n);if(o&&CV(s,a))return;var l=kV(a,n,!0);ld(l,{shape:{points:a.ends}},t,n),MV(l,e,n,i),r.add(l),e.setItemGraphicEl(n,l)}})).update((function(a,l){var u=n.getItemGraphicEl(l);if(e.hasValue(a)){var c=e.getItemLayout(a);o&&CV(s,c)?r.remove(u):(u?(sd(u,{shape:{points:c.ends}},t,a),pd(u)):u=kV(c,a),MV(u,e,a,i),r.add(u),e.setItemGraphicEl(a,u))}else r.remove(u)})).remove((function(t){var e=n.getItemGraphicEl(t);e&&r.remove(e)})).execute(),this._data=e},e.prototype._renderLarge=function(t){this._clear(),$V(t,this.group);var e=t.get("clip",!0)?NP(t.coordinateSystem,!1,t):null;e?this.group.setClipPath(e):this.group.removeClipPath()},e.prototype._incrementalRenderNormal=function(t,e){var n,r=e.getData(),i=r.getLayout("isSimpleBox");while(null!=(n=t.next())){var o=r.getItemLayout(n),a=kV(o,n);MV(a,r,n,i),a.incremental=!0,this.group.add(a),this._progressiveEls.push(a)}},e.prototype._incrementalRenderLarge=function(t,e){$V(e,this.group,this._progressiveEls,!0)},e.prototype.remove=function(t){this._clear()},e.prototype._clear=function(){this.group.removeAll(),this._data=null},e.type="candlestick",e}(d_),SV=function(){function t(){}return t}(),AV=function(t){function e(e){var n=t.call(this,e)||this;return n.type="normalCandlestickBox",n}return Q(e,t),e.prototype.getDefaultShape=function(){return new SV},e.prototype.buildPath=function(t,e){var n=e.points;this.__simpleBox?(t.moveTo(n[4][0],n[4][1]),t.lineTo(n[6][0],n[6][1])):(t.moveTo(n[0][0],n[0][1]),t.lineTo(n[1][0],n[1][1]),t.lineTo(n[2][0],n[2][1]),t.lineTo(n[3][0],n[3][1]),t.closePath(),t.moveTo(n[4][0],n[4][1]),t.lineTo(n[5][0],n[5][1]),t.moveTo(n[6][0],n[6][1]),t.lineTo(n[7][0],n[7][1]))},e}(lc);function kV(t,e,n){var r=t.ends;return new AV({shape:{points:n?TV(r,t):r},z2:100})}function CV(t,e){for(var n=!0,r=0;r<e.ends.length;r++)if(t.contain(e.ends[r][0],e.ends[r][1])){n=!1;break}return n}function MV(t,e,n,r){var i=e.getItemModel(n);t.useStyle(e.getItemVisual(n,"style")),t.style.strokeNoScale=!0,t.__simpleBox=r,Yh(t,i)}function TV(t,e){return It(t,(function(t){return t=t.slice(),t[1]=e.initBaseline,t}))}var PV=function(){function t(){}return t}(),IV=function(t){function e(e){var n=t.call(this,e)||this;return n.type="largeCandlestickBox",n}return Q(e,t),e.prototype.getDefaultShape=function(){return new PV},e.prototype.buildPath=function(t,e){for(var n=e.points,r=0;r<n.length;)if(this.__sign===n[r++]){var i=n[r++];t.moveTo(i,n[r++]),t.lineTo(i,n[r++])}else r+=3},e}(lc);function $V(t,e,n,r){var i=t.getData(),o=i.getLayout("largePoints"),a=new IV({shape:{points:o},__sign:1,ignoreCoarsePointer:!0});e.add(a);var s=new IV({shape:{points:o},__sign:-1,ignoreCoarsePointer:!0});e.add(s);var l=new IV({shape:{points:o},__sign:0,ignoreCoarsePointer:!0});e.add(l),EV(1,a,t,i),EV(-1,s,t,i),EV(0,l,t,i),r&&(a.incremental=!0,s.incremental=!0),n&&n.push(a,s)}function EV(t,e,n,r){var i=n.get(["itemStyle",t>0?"borderColor":"borderColor0"])||n.get(["itemStyle",t>0?"color":"color0"]);0===t&&(i=n.get(["itemStyle","borderColorDoji"]));var o=n.getModel("itemStyle").getItemStyle(wV);e.useStyle(o),e.style.fill=null,e.style.stroke=i}var RV=OV,DV=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.defaultValueDimensions=[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],n}return Q(e,t),e.prototype.getShadowDim=function(){return"open"},e.prototype.brushSelector=function(t,e,n){var r=e.getItemLayout(t);return r&&n.rect(r.brushRect)},e.type="series.candlestick",e.dependencies=["xAxis","yAxis","grid"],e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,clip:!0,itemStyle:{color:"#eb5454",color0:"#47b262",borderColor:"#eb5454",borderColor0:"#47b262",borderColorDoji:null,borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:"mod",animationEasing:"linear",animationDuration:300},e}(Vm);Mt(DV,iV,!0);var LV=DV;function NV(t){t&&Bt(t.series)&&Pt(t.series,(function(t){Qt(t)&&"k"===t.type&&(t.type="candlestick")}))}var zV=["itemStyle","borderColor"],BV=["itemStyle","borderColor0"],FV=["itemStyle","borderColorDoji"],WV=["itemStyle","color"],jV=["itemStyle","color0"],VV={seriesType:"candlestick",plan:Zm(),performRawSeries:!0,reset:function(t,e){function n(t,e){return e.get(t>0?WV:jV)}function r(t,e){return e.get(0===t?FV:t>0?zV:BV)}if(!e.isSeriesFiltered(t)){var i=t.pipelineContext.large;return!i&&{progress:function(t,e){var i;while(null!=(i=t.next())){var o=e.getItemModel(i),a=e.getItemLayout(i).sign,s=o.getItemStyle();s.fill=n(a,o),s.stroke=r(a,o)||s.fill;var l=e.ensureUniqueItemVisual(i,"style");Ot(l,s)}}}}}},QV=VV,HV={seriesType:"candlestick",plan:Zm(),reset:function(t){var e=t.coordinateSystem,n=t.getData(),r=GV(t,n),i=0,o=1,a=["x","y"],s=n.getDimensionIndex(n.mapDimension(a[i])),l=It(n.mapDimensionsAll(a[o]),n.getDimensionIndex,n),u=l[0],c=l[1],h=l[2],d=l[3];if(n.setLayout({candleWidth:r,isSimpleBox:r<=1.3}),!(s<0||l.length<4))return{progress:t.pipelineContext.large?f:p};function p(t,n){var a,l=n.getStore();while(null!=(a=t.next())){var p=l.get(s,a),f=l.get(u,a),g=l.get(c,a),v=l.get(h,a),m=l.get(d,a),y=Math.min(f,g),b=Math.max(f,g),_=C(y,p),x=C(b,p),w=C(v,p),O=C(m,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:ZV(l,a,f,g,c,k),initBaseline:f>g?x[o]:_[o],ends:S,brushRect:T(v,m,p)})}function C(t,n){var r=[];return r[i]=n,r[o]=t,isNaN(n)||isNaN(t)?[NaN,NaN]:e.dataToPoint(r)}function M(t,e,n){var o=e.slice(),a=e.slice();o[i]=Wb(o[i]+r/2,1,!1),a[i]=Wb(a[i]-r/2,1,!0),n?t.push(o,a):t.push(a,o)}function T(t,e,n){var a=C(t,n),s=C(e,n);return a[i]-=r/2,s[i]-=r/2,{x:a[0],y:a[1],width:o?r:s[0]-a[0],height:o?s[1]-a[1]:r}}function P(t){return t[i]=Wb(t[i],1),t}}function f(n,r){var a,l,p=DA(4*n.count),f=0,g=[],v=[],m=r.getStore(),y=!!t.get(["itemStyle","borderColorDoji"]);while(null!=(l=n.next())){var b=m.get(s,l),_=m.get(u,l),x=m.get(c,l),w=m.get(h,l),O=m.get(d,l);isNaN(b)||isNaN(w)||isNaN(O)?(p[f++]=NaN,f+=3):(p[f++]=ZV(m,l,_,x,c,y),g[i]=b,g[o]=w,a=e.dataToPoint(g,null,v),p[f++]=a?a[0]:NaN,p[f++]=a?a[1]:NaN,g[o]=O,a=e.dataToPoint(g,null,v),p[f++]=a?a[1]:NaN)}r.setLayout("largePoints",p)}}};function ZV(t,e,n,r,i,o){var a;return a=n>r?-1:n<r?1:o?0:e>0?t.get(i,e-1)<=r?1:-1:1,a}function GV(t,e){var n,r=t.getBaseAxis(),i="category"===r.type?r.getBandWidth():(n=r.getExtent(),Math.abs(n[1]-n[0])/e.count()),o=es(Jt(t.get("barMaxWidth"),i),i),a=es(Jt(t.get("barMinWidth"),1),i),s=t.get("barWidth");return null!=s?es(s,i):Math.max(Math.min(i/2,o),a)}var XV=HV;function UV(t){t.registerChartView(RV),t.registerSeriesModel(LV),t.registerPreprocessor(NV),t.registerVisual(QV),t.registerLayout(XV)}function YV(t,e){var n=e.rippleEffectColor||e.color;t.eachChild((function(t){t.attr({z:e.z,zlevel:e.zlevel,style:{stroke:"stroke"===e.brushType?n:null,fill:"fill"===e.brushType?n:null}})}))}var qV=function(t){function e(e,n){var r=t.call(this)||this,i=new vP(e,n),o=new La;return r.add(i),r.add(o),r.updateData(e,n),r}return Q(e,t),e.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},e.prototype.startEffectAnimation=function(t){for(var e=t.symbolType,n=t.color,r=t.rippleNumber,i=this.childAt(1),o=0;o<r;o++){var a=kx(e,-1,-1,2,2,n);a.attr({style:{strokeNoScale:!0},z2:99,silent:!0,scaleX:.5,scaleY:.5});var s=-o/r*t.period+t.effectOffset;a.animate("",!0).when(t.period,{scaleX:t.rippleScale/2,scaleY:t.rippleScale/2}).delay(s).start(),a.animateStyle(!0).when(t.period,{opacity:0}).delay(s).start(),i.add(a)}YV(i,t)},e.prototype.updateEffectAnimation=function(t){for(var e=this._effectCfg,n=this.childAt(1),r=["symbolType","period","rippleScale","rippleNumber"],i=0;i<r.length;i++){var o=r[i];if(e[o]!==t[o])return this.stopEffectAnimation(),void this.startEffectAnimation(t)}YV(n,t)},e.prototype.highlight=function(){Ch(this)},e.prototype.downplay=function(){Mh(this)},e.prototype.getSymbolType=function(){var t=this.childAt(0);return t&&t.getSymbolType()},e.prototype.updateData=function(t,e){var n=this,r=t.hostModel;this.childAt(0).updateData(t,e);var i=this.childAt(1),o=t.getItemModel(e),a=t.getItemVisual(e,"symbol"),s=Cx(t.getItemVisual(e,"symbolSize")),l=t.getItemVisual(e,"style"),u=l&&l.fill,c=o.getModel("emphasis");i.setScale(s),i.traverse((function(t){t.setStyle("fill",u)}));var h=Mx(t.getItemVisual(e,"symbolOffset"),s);h&&(i.x=h[0],i.y=h[1]);var d=t.getItemVisual(e,"symbolRotate");i.rotation=(d||0)*Math.PI/180||0;var p={};p.showEffectOn=r.get("showEffectOn"),p.rippleScale=o.get(["rippleEffect","scale"]),p.brushType=o.get(["rippleEffect","brushType"]),p.period=1e3*o.get(["rippleEffect","period"]),p.effectOffset=e/t.count(),p.z=r.getShallow("z")||0,p.zlevel=r.getShallow("zlevel")||0,p.symbolType=a,p.color=u,p.rippleEffectColor=o.get(["rippleEffect","color"]),p.rippleNumber=o.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(t){"emphasis"===t?"render"!==p.showEffectOn&&n.startEffectAnimation(p):"normal"===t&&"render"!==p.showEffectOn&&n.stopEffectAnimation()}),this._effectCfg=p,Zh(this,c.get("focus"),c.get("blurScope"),c.get("disabled"))},e.prototype.fadeOut=function(t){t&&t()},e}(La),KV=qV,JV=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Q(e,t),e.prototype.init=function(){this._symbolDraw=new xP(KV)},e.prototype.render=function(t,e,n){var r=t.getData(),i=this._symbolDraw;i.updateData(r,{clipShape:this._getClipShape(t)}),this.group.add(i.group)},e.prototype._getClipShape=function(t){var e=t.coordinateSystem,n=e&&e.getArea&&e.getArea();return t.get("clip",!0)?n:null},e.prototype.updateTransform=function(t,e,n){var r=t.getData();this.group.dirty();var i=iI("").reset(t,e,n);i.progress&&i.progress({start:0,end:r.count(),count:r.count()},r),this._symbolDraw.updateLayout()},e.prototype._updateGroupTransform=function(t){var e=t.coordinateSystem;e&&e.getRoamTransform&&(this.group.transform=En(e.getRoamTransform()),this.group.decomposeTransform())},e.prototype.remove=function(t,e){this._symbolDraw&&this._symbolDraw.remove(!0)},e.type="effectScatter",e}(d_),tQ=JV,eQ=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n}return Q(e,t),e.prototype.getInitialData=function(t,e){return dA(null,this,{useEncodeDefaulter:!0})},e.prototype.brushSelector=function(t,e,n){return n.point(e.getItemLayout(t))},e.type="series.effectScatter",e.dependencies=["grid","polar"],e.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},e}(Vm),nQ=eQ;function rQ(t){t.registerChartView(tQ),t.registerSeriesModel(nQ),t.registerLayout(iI("effectScatter"))}var iQ=function(t){function e(e,n,r){var i=t.call(this)||this;return i.add(i.createLine(e,n,r)),i._updateEffectSymbol(e,n),i}return Q(e,t),e.prototype.createLine=function(t,e,n){return new SB(t,e,n)},e.prototype._updateEffectSymbol=function(t,e){var n=t.getItemModel(e),r=n.getModel("effect"),i=r.get("symbolSize"),o=r.get("symbol");Bt(i)||(i=[i,i]);var a=t.getItemVisual(e,"style"),s=r.get("color")||a&&a.stroke,l=this.childAt(1);this._symbolType!==o&&(this.remove(l),l=kx(o,-.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=i[0],l.scaleY=i[1],l.setColor(s),this._symbolType=o,this._symbolScale=i,this._updateEffectAnimation(t,r,e))},e.prototype._updateEffectAnimation=function(t,e,n){var r=this.childAt(1);if(r){var i=t.getItemLayout(n),o=1e3*e.get("period"),a=e.get("loop"),s=e.get("roundTrip"),l=e.get("constantSpeed"),u=Kt(e.get("delay"),(function(e){return e/t.count()*o/3}));if(r.ignore=!0,this._updateAnimationPoints(r,i),l>0&&(o=this._getLineLength(r)/l*1e3),o!==this._period||a!==this._loop||s!==this._roundTrip){r.stopAnimation();var c=void 0;c=Ft(u)?u(n):u,r.__t>0&&(c=-o*r.__t),this._animateSymbol(r,o,c,a,s)}this._period=o,this._loop=a,this._roundTrip=s}},e.prototype._animateSymbol=function(t,e,n,r,i){if(e>0){t.__t=0;var o=this,a=t.animate("",r).when(i?2*e:e,{__t:i?2:1}).delay(n).during((function(){o._updateSymbolPosition(t)}));r||a.done((function(){o.remove(t)})),a.start()}},e.prototype._getLineLength=function(t){return Le(t.__p1,t.__cp1)+Le(t.__cp1,t.__p2)},e.prototype._updateAnimationPoints=function(t,e){t.__p1=e[0],t.__p2=e[1],t.__cp1=e[2]||[(e[0][0]+e[1][0])/2,(e[0][1]+e[1][1])/2]},e.prototype.updateData=function(t,e,n){this.childAt(0).updateData(t,e,n),this._updateEffectSymbol(t,e)},e.prototype._updateSymbolPosition=function(t){var e=t.__p1,n=t.__p2,r=t.__cp1,i=t.__t<1?t.__t:2-t.__t,o=[t.x,t.y],a=o.slice(),s=Qr,l=Hr;o[0]=s(e[0],r[0],n[0],i),o[1]=s(e[1],r[1],n[1],i);var u=t.__t<1?l(e[0],r[0],n[0],i):l(n[0],r[0],e[0],1-i),c=t.__t<1?l(e[1],r[1],n[1],i):l(n[1],r[1],e[1],1-i);t.rotation=-Math.atan2(c,u)-Math.PI/2,"line"!==this._symbolType&&"rect"!==this._symbolType&&"roundRect"!==this._symbolType||(void 0!==t.__lastT&&t.__lastT<t.__t?(t.scaleY=1.05*Le(a,o),1===i&&(o[0]=a[0]+(o[0]-a[0])/2,o[1]=a[1]+(o[1]-a[1])/2)):1===t.__lastT?t.scaleY=2*Le(e,o):t.scaleY=this._symbolScale[1]),t.__lastT=t.__t,t.ignore=!1,t.x=o[0],t.y=o[1]},e.prototype.updateLayout=function(t,e){this.childAt(0).updateLayout(t,e);var n=t.getItemModel(e).getModel("effect");this._updateEffectAnimation(t,n,e)},e}(La),oQ=iQ,aQ=function(t){function e(e,n,r){var i=t.call(this)||this;return i._createPolyline(e,n,r),i}return Q(e,t),e.prototype._createPolyline=function(t,e,n){var r=t.getItemLayout(e),i=new Yy({shape:{points:r}});this.add(i),this._updateCommonStl(t,e,n)},e.prototype.updateData=function(t,e,n){var r=t.hostModel,i=this.childAt(0),o={shape:{points:t.getItemLayout(e)}};sd(i,o,r,e),this._updateCommonStl(t,e,n)},e.prototype._updateCommonStl=function(t,e,n){var r=this.childAt(0),i=t.getItemModel(e),o=n&&n.emphasisLineStyle,a=n&&n.focus,s=n&&n.blurScope,l=n&&n.emphasisDisabled;if(!n||t.hasItemOption){var u=i.getModel("emphasis");o=u.getModel("lineStyle").getLineStyle(),l=u.get("disabled"),a=u.get("focus"),s=u.get("blurScope")}r.useStyle(t.getItemVisual(e,"style")),r.style.fill=null,r.style.strokeNoScale=!0;var c=r.ensureState("emphasis");c.style=o,Zh(this,a,s,l)},e.prototype.updateLayout=function(t,e){var n=this.childAt(0);n.setShape("points",t.getItemLayout(e))},e}(La),sQ=aQ,lQ=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._lastFrame=0,e._lastFramePercent=0,e}return Q(e,t),e.prototype.createLine=function(t,e,n){return new sQ(t,e,n)},e.prototype._updateAnimationPoints=function(t,e){this._points=e;for(var n=[0],r=0,i=1;i<e.length;i++){var o=e[i-1],a=e[i];r+=Le(o,a),n.push(r)}if(0!==r){for(i=0;i<n.length;i++)n[i]/=r;this._offsets=n,this._length=r}else this._length=0},e.prototype._getLineLength=function(){return this._length},e.prototype._updateSymbolPosition=function(t){var e=t.__t<1?t.__t:2-t.__t,n=this._points,r=this._offsets,i=n.length;if(r){var o,a=this._lastFrame;if(e<this._lastFramePercent){var s=Math.min(a+1,i-1);for(o=s;o>=0;o--)if(r[o]<=e)break;o=Math.min(o,i-2)}else{for(o=a;o<i;o++)if(r[o]>e)break;o=Math.min(o-1,i-2)}var l=(e-r[o])/(r[o+1]-r[o]),u=n[o],c=n[o+1];t.x=u[0]*(1-l)+l*c[0],t.y=u[1]*(1-l)+l*c[1];var h=t.__t<1?c[0]-u[0]:u[0]-c[0],d=t.__t<1?c[1]-u[1]:u[1]-c[1];t.rotation=-Math.atan2(d,h)-Math.PI/2,this._lastFrame=o,this._lastFramePercent=e,t.ignore=!1}},e}(oQ),uQ=lQ,cQ=function(){function t(){this.polyline=!1,this.curveness=0,this.segs=[]}return t}(),hQ=function(t){function e(e){var n=t.call(this,e)||this;return n._off=0,n.hoverDataIdx=-1,n}return Q(e,t),e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new cQ},e.prototype.buildPath=function(t,e){var n,r=e.segs,i=e.curveness;if(e.polyline)for(n=this._off;n<r.length;){var o=r[n++];if(o>0){t.moveTo(r[n++],r[n++]);for(var a=1;a<o;a++)t.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(t.moveTo(s,l),i>0){var h=(s+u)/2-(l-c)*i,d=(l+c)/2-(u-s)*i;t.quadraticCurveTo(h,d,u,c)}else t.lineTo(u,c)}this.incremental&&(this._off=n,this.notClear=!0)},e.prototype.findDataIndex=function(t,e){var n=this.shape,r=n.segs,i=n.curveness,o=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++],h=1;h<l;h++){var d=r[s++],p=r[s++];if(Nu(u,c,d,p,o,t,e))return a}a++}else for(a=0,s=0;s<r.length;){u=r[s++],c=r[s++],d=r[s++],p=r[s++];if(i>0){var f=(u+d)/2-(c-p)*i,g=(c+p)/2-(d-u)*i;if(Bu(u,c,f,g,d,p,o,t,e))return a}else if(Nu(u,c,d,p,o,t,e))return a;a++}return-1},e.prototype.contain=function(t,e){var n=this.transformCoordToLocal(t,e),r=this.getBoundingRect();if(t=n[0],e=n[1],r.contain(t,e)){var i=this.hoverDataIdx=this.findDataIndex(t,e);return i>=0}return this.hoverDataIdx=-1,!1},e.prototype.getBoundingRect=function(){var t=this._rect;if(!t){for(var e=this.shape,n=e.segs,r=1/0,i=1/0,o=-1/0,a=-1/0,s=0;s<n.length;){var l=n[s++],u=n[s++];r=Math.min(l,r),o=Math.max(l,o),i=Math.min(u,i),a=Math.max(u,a)}t=this._rect=new Hn(r,i,o,a)}return t},e}(lc),dQ=function(){function t(){this.group=new La}return t.prototype.updateData=function(t){this._clear();var e=this._create();e.setShape({segs:t.getLayout("linesPoints")}),this._setCommon(e,t)},t.prototype.incrementalPrepareUpdate=function(t){this.group.removeAll(),this._clear()},t.prototype.incrementalUpdate=function(t,e){var n=this._newAdded[0],r=e.getLayout("linesPoints"),i=n&&n.shape.segs;if(i&&i.length<2e4){var o=i.length,a=new Float32Array(o+r.length);a.set(i),a.set(r,o),n.setShape({segs:a})}else{this._newAdded=[];var s=this._create();s.incremental=!0,s.setShape({segs:r}),this._setCommon(s,e),s.__startIndex=t.start}},t.prototype.remove=function(){this._clear()},t.prototype.eachRendered=function(t){this._newAdded[0]&&t(this._newAdded[0])},t.prototype._create=function(){var t=new hQ({cursor:"default",ignoreCoarsePointer:!0});return this._newAdded.push(t),this.group.add(t),t},t.prototype._setCommon=function(t,e,n){var r=e.hostModel;t.setShape({polyline:r.get("polyline"),curveness:r.get(["lineStyle","curveness"])}),t.useStyle(r.getModel("lineStyle").getLineStyle()),t.style.strokeNoScale=!0;var i=e.getVisual("style");i&&i.stroke&&t.setStyle("stroke",i.stroke),t.setStyle("fill",null);var o=Qc(t);o.seriesIndex=r.seriesIndex,t.on("mousemove",(function(e){o.dataIndex=null;var n=t.hoverDataIdx;n>0&&(o.dataIndex=n+t.__startIndex)}))},t.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},t}(),pQ=dQ,fQ={seriesType:"lines",plan:Zm(),reset:function(t){var e=t.coordinateSystem;if(e){var n=t.get("polyline"),r=t.pipelineContext.large;return{progress:function(i,o){var a=[];if(r){var s=void 0,l=i.end-i.start;if(n){for(var u=0,c=i.start;c<i.end;c++)u+=t.getLineCoordsCount(c);s=new Float32Array(l+2*u)}else s=new Float32Array(4*l);var h=0,d=[];for(c=i.start;c<i.end;c++){var p=t.getLineCoords(c,a);n&&(s[h++]=p);for(var f=0;f<p;f++)d=e.dataToPoint(a[f],!1,d),s[h++]=d[0],s[h++]=d[1]}o.setLayout("linesPoints",s)}else for(c=i.start;c<i.end;c++){var g=o.getItemModel(c),v=(p=t.getLineCoords(c,a),[]);if(n)for(var m=0;m<p;m++)v.push(e.dataToPoint(a[m]));else{v[0]=e.dataToPoint(a[0]),v[1]=e.dataToPoint(a[1]);var y=g.get(["lineStyle","curveness"]);+y&&(v[2]=[(v[0][0]+v[1][0])/2-(v[0][1]-v[1][1])*y,(v[0][1]+v[1][1])/2-(v[1][0]-v[0][0])*y])}o.setItemLayout(c,v)}}}}}},gQ=fQ,vQ=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Q(e,t),e.prototype.render=function(t,e,n){var r=t.getData(),i=this._updateLineDraw(r,t),o=t.get("zlevel"),a=t.get(["effect","trailLength"]),s=n.getZr(),l="svg"===s.painter.getType();l||s.painter.getLayer(o).clear(!0),null==this._lastZlevel||l||s.configLayer(this._lastZlevel,{motionBlur:!1}),this._showEffect(t)&&a>0&&(l||s.configLayer(o,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(a/10+.9,1),0)})),i.updateData(r);var u=t.get("clip",!0)&&NP(t.coordinateSystem,!1,t);u?this.group.setClipPath(u):this.group.removeClipPath(),this._lastZlevel=o,this._finished=!0},e.prototype.incrementalPrepareRender=function(t,e,n){var r=t.getData(),i=this._updateLineDraw(r,t);i.incrementalPrepareUpdate(r),this._clearLayer(n),this._finished=!1},e.prototype.incrementalRender=function(t,e,n){this._lineDraw.incrementalUpdate(t,e.getData()),this._finished=t.end===e.getData().count()},e.prototype.eachRendered=function(t){this._lineDraw&&this._lineDraw.eachRendered(t)},e.prototype.updateTransform=function(t,e,n){var r=t.getData(),i=t.pipelineContext;if(!this._finished||i.large||i.progressiveRender)return{update:!0};var o=gQ.reset(t,e,n);o.progress&&o.progress({start:0,end:r.count(),count:r.count()},r),this._lineDraw.updateLayout(),this._clearLayer(n)},e.prototype._updateLineDraw=function(t,e){var n=this._lineDraw,r=this._showEffect(e),i=!!e.get("polyline"),o=e.pipelineContext,a=o.large;return n&&r===this._hasEffet&&i===this._isPolyline&&a===this._isLargeDraw||(n&&n.remove(),n=this._lineDraw=a?new pQ:new PB(i?r?uQ:sQ:r?oQ:SB),this._hasEffet=r,this._isPolyline=i,this._isLargeDraw=a),this.group.add(n.group),n},e.prototype._showEffect=function(t){return!!t.get(["effect","show"])},e.prototype._clearLayer=function(t){var e=t.getZr(),n="svg"===e.painter.getType();n||null==this._lastZlevel||e.painter.getLayer(this._lastZlevel).clear(!0)},e.prototype.remove=function(t,e){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(e)},e.prototype.dispose=function(t,e){this.remove(t,e)},e.type="lines",e}(d_),mQ=vQ,yQ="undefined"===typeof Uint32Array?Array:Uint32Array,bQ="undefined"===typeof Float64Array?Array:Float64Array;function _Q(t){var e=t.data;e&&e[0]&&e[0][0]&&e[0][0].coord&&(t.data=It(e,(function(t){var e=[t[0].coord,t[1].coord],n={coords:e};return t[0].name&&(n.fromName=t[0].name),t[1].name&&(n.toName=t[1].name),wt([n,t[0],t[1]])})))}var xQ=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.visualStyleAccessPath="lineStyle",n.visualDrawType="stroke",n}return Q(e,t),e.prototype.init=function(e){e.data=e.data||[],_Q(e);var n=this._processFlatCoordsArray(e.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(e.data=new Float32Array(n.count)),t.prototype.init.apply(this,arguments)},e.prototype.mergeOption=function(e){if(_Q(e),e.data){var n=this._processFlatCoordsArray(e.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(e.data=new Float32Array(n.count))}t.prototype.mergeOption.apply(this,arguments)},e.prototype.appendData=function(t){var e=this._processFlatCoordsArray(t.data);e.flatCoords&&(this._flatCoords?(this._flatCoords=pe(this._flatCoords,e.flatCoords),this._flatCoordsOffset=pe(this._flatCoordsOffset,e.flatCoordsOffset)):(this._flatCoords=e.flatCoords,this._flatCoordsOffset=e.flatCoordsOffset),t.data=new Float32Array(e.count)),this.getRawData().appendData(t.data)},e.prototype._getCoordsFromItemModel=function(t){var e=this.getData().getItemModel(t),n=e.option instanceof Array?e.option:e.getShallow("coords");return n},e.prototype.getLineCoordsCount=function(t){return this._flatCoordsOffset?this._flatCoordsOffset[2*t+1]:this._getCoordsFromItemModel(t).length},e.prototype.getLineCoords=function(t,e){if(this._flatCoordsOffset){for(var n=this._flatCoordsOffset[2*t],r=this._flatCoordsOffset[2*t+1],i=0;i<r;i++)e[i]=e[i]||[],e[i][0]=this._flatCoords[n+2*i],e[i][1]=this._flatCoords[n+2*i+1];return r}var o=this._getCoordsFromItemModel(t);for(i=0;i<o.length;i++)e[i]=e[i]||[],e[i][0]=o[i][0],e[i][1]=o[i][1];return o.length},e.prototype._processFlatCoordsArray=function(t){var e=0;if(this._flatCoords&&(e=this._flatCoords.length),Vt(t[0])){for(var n=t.length,r=new yQ(n),i=new bQ(n),o=0,a=0,s=0,l=0;l<n;){s++;var u=t[l++];r[a++]=o+e,r[a++]=u;for(var c=0;c<u;c++){var h=t[l++],d=t[l++];i[o++]=h,i[o++]=d}}return{flatCoordsOffset:new Uint32Array(r.buffer,0,a),flatCoords:i,count:s}}return{flatCoordsOffset:null,flatCoords:null,count:t.length}},e.prototype.getInitialData=function(t,e){var n=new GS(["value"],this);return n.hasItemOption=!1,n.initData(t.data,[],(function(t,e,r,i){if(t instanceof Array)return NaN;n.hasItemOption=!0;var o=t.value;return null!=o?o instanceof Array?o[i]:o:void 0})),n},e.prototype.formatTooltip=function(t,e,n){var r=this.getData(),i=r.getItemModel(t),o=i.get("name");if(o)return o;var a=i.get("fromName"),s=i.get("toName"),l=[];return null!=a&&l.push(a),null!=s&&l.push(s),pm("nameValue",{name:l.join(" > ")})},e.prototype.preventIncremental=function(){return!!this.get(["effect","show"])},e.prototype.getProgressive=function(){var t=this.option.progressive;return null==t?this.option.large?1e4:this.get("progressive"):t},e.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return null==t?this.option.large?2e4:this.get("progressiveThreshold"):t},e.prototype.getZLevelKey=function(){var t=this.getModel("effect"),e=t.get("trailLength");return this.getData().count()>this.getProgressiveThreshold()?this.id:t.get("show")&&e>0?e+"":""},e.type="series.lines",e.dependencies=["grid","polar","geo","calendar"],e.defaultOption={coordinateSystem:"geo",z:2,legendHoverLink:!0,xAxisIndex:0,yAxisIndex:0,symbol:["none","none"],symbolSize:[10,10],geoIndex:0,effect:{show:!1,period:4,constantSpeed:0,symbol:"circle",symbolSize:3,loop:!0,trailLength:.2},large:!1,largeThreshold:2e3,polyline:!1,clip:!0,label:{show:!1,position:"end"},lineStyle:{opacity:.5}},e}(Vm),wQ=xQ;function OQ(t){return t instanceof Array||(t=[t,t]),t}var SQ={seriesType:"lines",reset:function(t){var e=OQ(t.get("symbol")),n=OQ(t.get("symbolSize")),r=t.getData();function i(t,e){var n=t.getItemModel(e),r=OQ(n.getShallow("symbol",!0)),i=OQ(n.getShallow("symbolSize",!0));r[0]&&t.setItemVisual(e,"fromSymbol",r[0]),r[1]&&t.setItemVisual(e,"toSymbol",r[1]),i[0]&&t.setItemVisual(e,"fromSymbolSize",i[0]),i[1]&&t.setItemVisual(e,"toSymbolSize",i[1])}return r.setVisual("fromSymbol",e&&e[0]),r.setVisual("toSymbol",e&&e[1]),r.setVisual("fromSymbolSize",n&&n[0]),r.setVisual("toSymbolSize",n&&n[1]),{dataEach:r.hasItemOption?i:null}}},AQ=SQ;function kQ(t){t.registerChartView(mQ),t.registerSeriesModel(wQ),t.registerLayout(gQ),t.registerVisual(AQ)}var CQ=256,MQ=function(){function t(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var t=it.createCanvas();this.canvas=t}return t.prototype.update=function(t,e,n,r,i,o){var a=this._getBrush(),s=this._getGradient(i,"inRange"),l=this._getGradient(i,"outOfRange"),u=this.pointSize+this.blurSize,c=this.canvas,h=c.getContext("2d"),d=t.length;c.width=e,c.height=n;for(var p=0;p<d;++p){var f=t[p],g=f[0],v=f[1],m=f[2],y=r(m);h.globalAlpha=y,h.drawImage(a,g-u,v-u)}if(!c.width||!c.height)return c;var b=h.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*(CQ-1));if(y>0){var C=o(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 h.putImageData(b,0,0),c},t.prototype._getBrush=function(){var t=this._brushCanvas||(this._brushCanvas=it.createCanvas()),e=this.pointSize+this.blurSize,n=2*e;t.width=n,t.height=n;var r=t.getContext("2d");return r.clearRect(0,0,n,n),r.shadowOffsetX=n,r.shadowBlur=this.blurSize,r.shadowColor="#000",r.beginPath(),r.arc(-e,e,this.pointSize,0,2*Math.PI,!0),r.closePath(),r.fill(),t},t.prototype._getGradient=function(t,e){for(var n=this._gradientPixels,r=n[e]||(n[e]=new Uint8ClampedArray(1024)),i=[0,0,0,0],o=0,a=0;a<256;a++)t[e](a/255,!0,i),r[o++]=i[0],r[o++]=i[1],r[o++]=i[2],r[o++]=i[3];return r},t}(),TQ=MQ;function PQ(t,e,n){var r=t[1]-t[0];e=It(e,(function(e){return{interval:[(e.interval[0]-t[0])/r,(e.interval[1]-t[0])/r]}}));var i=e.length,o=0;return function(t){var r;for(r=o;r<i;r++){var a=e[r].interval;if(a[0]<=t&&t<=a[1]){o=r;break}}if(r===i)for(r=o-1;r>=0;r--){a=e[r].interval;if(a[0]<=t&&t<=a[1]){o=r;break}}return r>=0&&r<i&&n[r]}}function IQ(t,e){var n=t[1]-t[0];return e=[(e[0]-t[0])/n,(e[1]-t[0])/n],function(t){return t>=e[0]&&t<=e[1]}}function $Q(t){var e=t.dimensions;return"lng"===e[0]&&"lat"===e[1]}var EQ=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Q(e,t),e.prototype.render=function(t,e,n){var r;e.eachComponent("visualMap",(function(e){e.eachTargetSeries((function(n){n===t&&(r=e)}))})),this._progressiveEls=null,this.group.removeAll();var i=t.coordinateSystem;"cartesian2d"===i.type||"calendar"===i.type?this._renderOnCartesianAndCalendar(t,n,0,t.getData().count()):$Q(i)&&this._renderOnGeo(i,t,r,n)},e.prototype.incrementalPrepareRender=function(t,e,n){this.group.removeAll()},e.prototype.incrementalRender=function(t,e,n,r){var i=e.coordinateSystem;i&&($Q(i)?this.render(e,n,r):(this._progressiveEls=[],this._renderOnCartesianAndCalendar(e,r,t.start,t.end,!0)))},e.prototype.eachRendered=function(t){r_(this._progressiveEls||this.group,t)},e.prototype._renderOnCartesianAndCalendar=function(t,e,n,r,i){var o,a,s,l,u=t.coordinateSystem,c=zP(u,"cartesian2d");if(c){var h=u.getAxis("x"),d=u.getAxis("y");0,o=h.getBandWidth()+.5,a=d.getBandWidth()+.5,s=h.scale.getExtent(),l=d.scale.getExtent()}for(var p=this.group,f=t.getData(),g=t.getModel(["emphasis","itemStyle"]).getItemStyle(),v=t.getModel(["blur","itemStyle"]).getItemStyle(),m=t.getModel(["select","itemStyle"]).getItemStyle(),y=t.get(["itemStyle","borderRadius"]),b=bd(t),_=t.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 Ac({shape:{x:P[0]-o/2,y:P[1]-a/2,width:o,height:a},style:C})}else{if(isNaN(f.get(S[1],A)))continue;k=new Ac({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(),v=I.getModel(["blur","itemStyle"]).getItemStyle(),m=I.getModel(["select","itemStyle"]).getItemStyle(),y=I.get(["itemStyle","borderRadius"]),x=$.get("focus"),w=$.get("blurScope"),O=$.get("disabled"),b=bd(I)}k.shape.r=y;var E=t.getRawValue(A),R="-";E&&null!=E[2]&&(R=E[2]+""),yd(k,b,{labelFetcher:t,labelDataIndex:A,defaultOpacity:C.opacity,defaultText:R}),k.ensureState("emphasis").style=g,k.ensureState("blur").style=v,k.ensureState("select").style=m,Zh(k,x,w,O),k.incremental=i,i&&(k.states.emphasis.hoverLayer=!0),p.add(k),f.setItemGraphicEl(A,k),this._progressiveEls&&this._progressiveEls.push(k)}},e.prototype._renderOnGeo=function(t,e,n,r){var i=n.targetVisuals.inRange,o=n.targetVisuals.outOfRange,a=e.getData(),s=this._hmLayer||this._hmLayer||new TQ;s.blurSize=e.get("blurSize"),s.pointSize=e.get("pointSize"),s.minOpacity=e.get("minOpacity"),s.maxOpacity=e.get("maxOpacity");var l=t.getViewRect().clone(),u=t.getRoamTransform();l.applyTransform(u);var c=Math.max(l.x,0),h=Math.max(l.y,0),d=Math.min(l.width+l.x,r.getWidth()),p=Math.min(l.height+l.y,r.getHeight()),f=d-c,g=p-h,v=[a.mapDimension("lng"),a.mapDimension("lat"),a.mapDimension("value")],m=a.mapArray(v,(function(e,n,r){var i=t.dataToPoint([e,n]);return i[0]-=c,i[1]-=h,i.push(r),i})),y=n.getExtent(),b="visualMap.continuous"===n.type?IQ(y,n.option.range):PQ(y,n.getPieceList(),n.option.selected);s.update(m,f,g,i.color.getNormalizer(),{inRange:i.color.getColorMapper(),outOfRange:o.color.getColorMapper()},b);var _=new vc({style:{width:f,height:g,x:c,y:h,image:s.canvas},silent:!0});this.group.add(_)},e.type="heatmap",e}(d_),RQ=EQ,DQ=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Q(e,t),e.prototype.getInitialData=function(t,e){return dA(null,this,{generateCoord:"value"})},e.prototype.preventIncremental=function(){var t=hg.get(this.get("coordinateSystem"));if(t&&t.dimensions)return"lng"===t.dimensions[0]&&"lat"===t.dimensions[1]},e.type="series.heatmap",e.dependencies=["grid","geo","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:"#212121"}}},e}(Vm),LQ=DQ;function NQ(t){t.registerChartView(RQ),t.registerSeriesModel(LQ)}var zQ=["itemStyle","borderWidth"],BQ=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],FQ=new yy,WQ=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Q(e,t),e.prototype.render=function(t,e,n){var r=this.group,i=t.getData(),o=this._data,a=t.coordinateSystem,s=a.getBaseAxis(),l=s.isHorizontal(),u=a.master.getRect(),c={ecSize:{width:n.getWidth(),height:n.getHeight()},seriesModel:t,coordSys:a,coordSysExtent:[[u.x,u.x+u.width],[u.y,u.y+u.height]],isHorizontal:l,valueDim:BQ[+l],categoryDim:BQ[1-+l]};i.diff(o).add((function(t){if(i.hasValue(t)){var e=JQ(i,t),n=jQ(i,t,e,c),o=nH(i,c,n);i.setItemGraphicEl(t,o),r.add(o),lH(o,c,n)}})).update((function(t,e){var n=o.getItemGraphicEl(e);if(i.hasValue(t)){var a=JQ(i,t),s=jQ(i,t,a,c),l=oH(i,s);n&&l!==n.__pictorialShapeStr&&(r.remove(n),i.setItemGraphicEl(t,null),n=null),n?rH(n,c,s):n=nH(i,c,s,!0),i.setItemGraphicEl(t,n),n.__pictorialSymbolMeta=s,r.add(n),lH(n,c,s)}else r.remove(n)})).remove((function(t){var e=o.getItemGraphicEl(t);e&&iH(o,t,e.__pictorialSymbolMeta.animationModel,e)})).execute();var h=t.get("clip",!0)?NP(t.coordinateSystem,!1,t):null;return h?r.setClipPath(h):r.removeClipPath(),this._data=i,this.group},e.prototype.remove=function(t,e){var n=this.group,r=this._data;t.get("animation")?r&&r.eachItemGraphicEl((function(e){iH(r,Qc(e).dataIndex,t,e)})):n.removeAll()},e.type="pictorialBar",e}(d_);function jQ(t,e,n,r){var i=t.getItemLayout(e),o=n.get("symbolRepeat"),a=n.get("symbolClip"),s=n.get("symbolPosition")||"start",l=n.get("symbolRotate"),u=(l||0)*Math.PI/180||0,c=n.get("symbolPatternSize")||2,h=n.isAnimationEnabled(),d={dataIndex:e,layout:i,itemModel:n,symbolType:t.getItemVisual(e,"symbol")||"circle",style:t.getItemVisual(e,"style"),symbolClip:a,symbolRepeat:o,symbolRepeatDirection:n.get("symbolRepeatDirection"),symbolPatternSize:c,rotation:u,animationModel:h?n:null,hoverScale:h&&n.get(["emphasis","scale"]),z2:n.getShallow("z",!0)||0};VQ(n,o,i,r,d),HQ(t,e,i,o,a,d.boundingLength,d.pxSign,c,r,d),ZQ(n,d.symbolScale,u,r,d);var p=d.symbolSize,f=Mx(n.get("symbolOffset"),p);return GQ(n,p,i,o,a,f,s,d.valueLineWidth,d.boundingLength,d.repeatCutLength,r,d),d}function VQ(t,e,n,r,i){var o,a=r.valueDim,s=t.get("symbolBoundingData"),l=r.coordSys.getOtherAxis(r.coordSys.getBaseAxis()),u=l.toGlobalCoord(l.dataToCoord(0)),c=1-+(n[a.wh]<=0);if(Bt(s)){var h=[QQ(l,s[0])-u,QQ(l,s[1])-u];h[1]<h[0]&&h.reverse(),o=h[c]}else o=null!=s?QQ(l,s)-u:e?r.coordSysExtent[a.index][c]-u:n[a.wh];i.boundingLength=o,e&&(i.repeatCutLength=n[a.wh]),i.pxSign=o>0?1:-1}function QQ(t,e){return t.toGlobalCoord(t.dataToCoord(t.scale.parse(e)))}function HQ(t,e,n,r,i,o,a,s,l,u){var c,h=l.valueDim,d=l.categoryDim,p=Math.abs(n[d.wh]),f=t.getItemVisual(e,"symbolSize");c=Bt(f)?f.slice():null==f?["100%","100%"]:[f,f],c[d.index]=es(c[d.index],p),c[h.index]=es(c[h.index],r?p:Math.abs(o)),u.symbolSize=c;var g=u.symbolScale=[c[0]/s,c[1]/s];g[h.index]*=(l.isHorizontal?-1:1)*a}function ZQ(t,e,n,r,i){var o=t.get(zQ)||0;o&&(FQ.attr({scaleX:e[0],scaleY:e[1],rotation:n}),FQ.updateTransform(),o/=FQ.getLineScale(),o*=e[r.valueDim.index]),i.valueLineWidth=o||0}function GQ(t,e,n,r,i,o,a,s,l,u,c,h){var d=c.categoryDim,p=c.valueDim,f=h.pxSign,g=Math.max(e[p.index]+s,0),v=g;if(r){var m=Math.abs(l),y=Kt(t.get("symbolMargin"),"15%")+"",b=!1;y.lastIndexOf("!")===y.length-1&&(b=!0,y=y.slice(0,y.length-1));var _=es(y,e[p.index]),x=Math.max(g+2*_,0),w=b?0:2*_,O=xs(r),S=O?r:uH((m+w)/x),A=m-S*g;_=A/2/(b?S:Math.max(S-1,1)),x=g+2*_,w=b?0:2*_,O||"fixed"===r||(S=u?uH((Math.abs(u)+w)/x):0),v=S*x-w,h.repeatTimes=S,h.symbolMargin=_}var k=f*(v/2),C=h.pathPosition=[];C[d.index]=n[d.wh]/2,C[p.index]="start"===a?k:"end"===a?l-k:l/2,o&&(C[0]+=o[0],C[1]+=o[1]);var M=h.bundlePosition=[];M[d.index]=n[d.xy],M[p.index]=n[p.xy];var T=h.barRectShape=Ot({},n);T[p.wh]=f*Math.max(Math.abs(n[p.wh]),Math.abs(C[p.index]+k)),T[d.wh]=n[d.wh];var P=h.clipShape={};P[d.xy]=-n[d.xy],P[d.wh]=c.ecSize[d.wh],P[p.xy]=0,P[p.wh]=n[p.wh]}function XQ(t){var e=t.symbolPatternSize,n=kx(t.symbolType,-e/2,-e/2,e,e);return n.attr({culling:!0}),"image"!==n.type&&n.setStyle({strokeNoScale:!0}),n}function UQ(t,e,n,r){var i=t.__pictorialBundle,o=n.symbolSize,a=n.valueLineWidth,s=n.pathPosition,l=e.valueDim,u=n.repeatTimes||0,c=0,h=o[e.valueDim.index]+a+2*n.symbolMargin;for(aH(t,(function(t){t.__pictorialAnimationIndex=c,t.__pictorialRepeatTimes=u,c<u?sH(t,null,f(c),n,r):sH(t,null,{scaleX:0,scaleY:0},n,r,(function(){i.remove(t)})),c++}));c<u;c++){var d=XQ(n);d.__pictorialAnimationIndex=c,d.__pictorialRepeatTimes=u,i.add(d);var p=f(c);sH(d,{x:p.x,y:p.y,scaleX:0,scaleY:0},{scaleX:p.scaleX,scaleY:p.scaleY,rotation:p.rotation},n,r)}function f(t){var e=s.slice(),r=n.pxSign,i=t;return("start"===n.symbolRepeatDirection?r>0:r<0)&&(i=u-1-t),e[l.index]=h*(i-u/2+.5)+s[l.index],{x:e[0],y:e[1],scaleX:n.symbolScale[0],scaleY:n.symbolScale[1],rotation:n.rotation}}}function YQ(t,e,n,r){var i=t.__pictorialBundle,o=t.__pictorialMainPath;o?sH(o,null,{x:n.pathPosition[0],y:n.pathPosition[1],scaleX:n.symbolScale[0],scaleY:n.symbolScale[1],rotation:n.rotation},n,r):(o=t.__pictorialMainPath=XQ(n),i.add(o),sH(o,{x:n.pathPosition[0],y:n.pathPosition[1],scaleX:0,scaleY:0,rotation:n.rotation},{scaleX:n.symbolScale[0],scaleY:n.symbolScale[1]},n,r))}function qQ(t,e,n){var r=Ot({},e.barRectShape),i=t.__pictorialBarRect;i?sH(i,null,{shape:r},e,n):(i=t.__pictorialBarRect=new Ac({z2:2,shape:r,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),i.disableMorphing=!0,t.add(i))}function KQ(t,e,n,r){if(n.symbolClip){var i=t.__pictorialClipPath,o=Ot({},n.clipShape),a=e.valueDim,s=n.animationModel,u=n.dataIndex;if(i)sd(i,{shape:o},s,u);else{o[a.wh]=0,i=new Ac({shape:o}),t.__pictorialBundle.setClipPath(i),t.__pictorialClipPath=i;var c={};c[a.wh]=n.clipShape[a.wh],l[r?"updateProps":"initProps"](i,{shape:c},s,u)}}}function JQ(t,e){var n=t.getItemModel(e);return n.getAnimationDelayParams=tH,n.isAnimationEnabled=eH,n}function tH(t){return{index:t.__pictorialAnimationIndex,count:t.__pictorialRepeatTimes}}function eH(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function nH(t,e,n,r){var i=new La,o=new La;return i.add(o),i.__pictorialBundle=o,o.x=n.bundlePosition[0],o.y=n.bundlePosition[1],n.symbolRepeat?UQ(i,e,n):YQ(i,e,n),qQ(i,n,r),KQ(i,e,n,r),i.__pictorialShapeStr=oH(t,n),i.__pictorialSymbolMeta=n,i}function rH(t,e,n){var r=n.animationModel,i=n.dataIndex,o=t.__pictorialBundle;sd(o,{x:n.bundlePosition[0],y:n.bundlePosition[1]},r,i),n.symbolRepeat?UQ(t,e,n,!0):YQ(t,e,n,!0),qQ(t,n,!0),KQ(t,e,n,!0)}function iH(t,e,n,r){var i=r.__pictorialBarRect;i&&i.removeTextContent();var o=[];aH(r,(function(t){o.push(t)})),r.__pictorialMainPath&&o.push(r.__pictorialMainPath),r.__pictorialClipPath&&(n=null),Pt(o,(function(t){cd(t,{scaleX:0,scaleY:0},n,e,(function(){r.parent&&r.parent.remove(r)}))})),t.setItemGraphicEl(e,null)}function oH(t,e){return[t.getItemVisual(e.dataIndex,"symbol")||"none",!!e.symbolRepeat,!!e.symbolClip].join(":")}function aH(t,e,n){Pt(t.__pictorialBundle.children(),(function(r){r!==t.__pictorialBarRect&&e.call(n,r)}))}function sH(t,e,n,r,i,o){e&&t.attr(e),r.symbolClip&&!i?n&&t.attr(n):n&&l[i?"updateProps":"initProps"](t,n,r.animationModel,r.dataIndex,o)}function lH(t,e,n){var r=n.dataIndex,i=n.itemModel,o=i.getModel("emphasis"),a=o.getModel("itemStyle").getItemStyle(),s=i.getModel(["blur","itemStyle"]).getItemStyle(),l=i.getModel(["select","itemStyle"]).getItemStyle(),u=i.getShallow("cursor"),c=o.get("focus"),h=o.get("blurScope"),d=o.get("scale");aH(t,(function(t){if(t instanceof vc){var e=t.style;t.useStyle(Ot({image:e.image,x:e.x,y:e.y,width:e.width,height:e.height},n.style))}else t.useStyle(n.style);var r=t.ensureState("emphasis");r.style=a,d&&(r.scaleX=1.1*t.scaleX,r.scaleY=1.1*t.scaleY),t.ensureState("blur").style=s,t.ensureState("select").style=l,u&&(t.cursor=u),t.z2=n.z2}));var p=e.valueDim.posDesc[+(n.boundingLength>0)],f=t.__pictorialBarRect;f.ignoreClip=!0,yd(f,bd(i),{labelFetcher:e.seriesModel,labelDataIndex:r,defaultText:dP(e.seriesModel.getData(),r),inheritColor:n.style.fill,defaultOpacity:n.style.opacity,defaultOutsidePosition:p}),Zh(t,c,h,o.get("disabled"))}function uH(t){var e=Math.round(t);return Math.abs(t-e)<1e-4?e:Math.ceil(t)}var cH=WQ,hH=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n.defaultSymbol="roundRect",n}return Q(e,t),e.prototype.getInitialData=function(e){return e.stack=null,t.prototype.getInitialData.apply(this,arguments)},e.type="series.pictorialBar",e.dependencies=["grid"],e.defaultOption=Ud(cI.defaultOption,{symbol:"circle",symbolSize:null,symbolRotate:null,symbolPosition:null,symbolOffset:null,symbolMargin:null,symbolRepeat:!1,symbolRepeatDirection:"end",symbolClip:!1,symbolBoundingData:null,symbolPatternSize:400,barGap:"-100%",clip:!1,progressive:0,emphasis:{scale:!1},select:{itemStyle:{borderColor:"#212121"}}}),e}(cI),dH=hH;function pH(t){t.registerChartView(cH),t.registerSeriesModel(dH),t.registerLayout(t.PRIORITY.VISUAL.LAYOUT,zt(HA,"pictorialBar")),t.registerLayout(t.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,ZA("pictorialBar"))}var fH=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._layers=[],n}return Q(e,t),e.prototype.render=function(t,e,n){var r=t.getData(),i=this,o=this.group,a=t.getLayerSeries(),s=r.getLayout("layoutInfo"),l=s.rect,u=s.boundaryGap;function c(t){return t.name}o.x=0,o.y=l.y+u[0];var h=new mS(this._layersSeries||[],a,c,c),d=[];function p(e,n,s){var l=i._layers;if("remove"!==e){for(var u,c,h=[],p=[],f=a[n].indices,g=0;g<f.length;g++){var v=r.getItemLayout(f[g]),m=v.x,y=v.y0,b=v.y;h.push(m,y),p.push(m,y+b),u=r.getItemVisual(f[g],"style")}var _=r.getItemLayout(f[0]),x=t.getModel("label"),w=x.get("margin"),O=t.getModel("emphasis");if("add"===e){var S=d[n]=new La;c=new RP({shape:{points:h,stackedOnPoints:p,smooth:.4,stackedOnSmooth:.4,smoothConstraint:!1},z2:0}),S.add(c),o.add(S),t.isAnimationEnabled()&&c.setClipPath(gH(c.getBoundingRect(),t,(function(){c.removeClipPath()})))}else{S=l[s];c=S.childAt(0),o.add(S),d[n]=S,sd(c,{shape:{points:h,stackedOnPoints:p}},t),pd(c)}yd(c,bd(t),{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),Yh(c,t),Zh(c,O.get("focus"),O.get("blurScope"),O.get("disabled"))}else o.remove(l[n])}h.add(Nt(p,this,"add")).update(Nt(p,this,"update")).remove(Nt(p,this,"remove")).execute(),this._layersSeries=a,this._layers=d},e.type="themeRiver",e}(d_);function gH(t,e,n){var r=new Ac({shape:{x:t.x-10,y:t.y-10,width:0,height:t.height+20}});return ld(r,{shape:{x:t.x-50,width:t.width+100,height:t.height+20}},e,n),r}var vH=fH,mH=2,yH=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Q(e,t),e.prototype.init=function(e){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new h$(Nt(this.getData,this),Nt(this.getRawData,this))},e.prototype.fixData=function(t){var e=t.length,n={},r=al(t,(function(t){return n.hasOwnProperty(t[0]+"")||(n[t[0]+""]=-1),t[2]})),i=[];r.buckets.each((function(t,e){i.push({name:e,dataList:t})}));for(var o=i.length,a=0;a<o;++a){for(var s=i[a].name,l=0;l<i[a].dataList.length;++l){var u=i[a].dataList[l][0]+"";n[u]=a}for(var u in n)n.hasOwnProperty(u)&&n[u]!==a&&(n[u]=a,t[e]=[u,0,s],e++)}return t},e.prototype.getInitialData=function(t,e){for(var n=this.getReferringComponents("singleAxis",tl).models[0],r=n.get("type"),i=Et(t.data,(function(t){return void 0!==t[2]})),o=this.fixData(i||[]),a=[],s=this.nameMap=de(),l=0,u=0;u<o.length;++u)a.push(o[u][mH]),s.get(o[u][mH])||(s.set(o[u][mH],l),l++);var c=US(o,{coordDimensions:["single"],dimensionsDefine:[{name:"time",type:xS(r)},{name:"value",type:"float"},{name:"name",type:"ordinal"}],encodeDefine:{single:0,value:1,itemName:2}}).dimensions,h=new GS(c,this);return h.initData(o),h},e.prototype.getLayerSeries=function(){for(var t=this.getData(),e=t.count(),n=[],r=0;r<e;++r)n[r]=r;var i=t.mapDimension("single"),o=al(n,(function(e){return t.get("name",e)})),a=[];return o.buckets.each((function(e,n){e.sort((function(e,n){return t.get(i,e)-t.get(i,n)})),a.push({name:n,indices:e})})),a},e.prototype.getAxisTooltipData=function(t,e,n){Bt(t)||(t=t?[t]:[]);for(var r,i=this.getData(),o=this.getLayerSeries(),a=[],s=o.length,l=0;l<s;++l){for(var u=Number.MAX_VALUE,c=-1,h=o[l].indices.length,d=0;d<h;++d){var p=i.get(t[0],o[l].indices[d]),f=Math.abs(p-e);f<=u&&(r=p,u=f,c=o[l].indices[d])}a.push(c)}return{dataIndices:a,nestestValue:r}},e.prototype.formatTooltip=function(t,e,n){var r=this.getData(),i=r.getName(t),o=r.get(r.mapDimension("value"),t);return pm("nameValue",{name:i,value:o})},e.type="series.themeRiver",e.dependencies=["singleAxis"],e.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}}},e}(Vm),bH=yH;function _H(t,e){t.eachSeriesByType("themeRiver",(function(t){var e=t.getData(),n=t.coordinateSystem,r={},i=n.getRect();r.rect=i;var o=t.get("boundaryGap"),a=n.getAxis();if(r.boundaryGap=o,"horizontal"===a.orient){o[0]=es(o[0],i.height),o[1]=es(o[1],i.height);var s=i.height-o[0]-o[1];xH(e,t,s)}else{o[0]=es(o[0],i.width),o[1]=es(o[1],i.width);var l=i.width-o[0]-o[1];xH(e,t,l)}e.setLayout("layoutInfo",r)}))}function xH(t,e,n){if(t.count())for(var r,i=e.coordinateSystem,o=e.getLayerSeries(),a=t.mapDimension("single"),s=t.mapDimension("value"),l=It(o,(function(e){return It(e.indices,(function(e){var n=i.dataToPoint(t.get(a,e));return n[1]=t.get(s,e),n}))})),u=wH(l),c=u.y0,h=n/u.max,d=o.length,p=o[0].indices.length,f=0;f<p;++f){r=c[f]*h,t.setItemLayout(o[0].indices[f],{layerIndex:0,x:l[0][f][0],y0:r,y:l[0][f][1]*h});for(var g=1;g<d;++g)r+=l[g-1][f][1]*h,t.setItemLayout(o[g].indices[f],{layerIndex:g,x:l[g][f][0],y0:r,y:l[g][f][1]*h})}}function wH(t){for(var e=t.length,n=t[0].length,r=[],i=[],o=0,a=0;a<n;++a){for(var s=0,l=0;l<e;++l)s+=t[l][a][1];s>o&&(o=s),r.push(s)}for(var u=0;u<n;++u)i[u]=(o-r[u])/2;o=0;for(var c=0;c<n;++c){var h=r[c]+i[c];h>o&&(o=h)}return{y0:i,max:o}}function OH(t){t.registerChartView(vH),t.registerSeriesModel(bH),t.registerLayout(_H),t.registerProcessor(JI("themeRiver"))}var SH=2,AH=4,kH=function(t){function e(e,n,r,i){var o=t.call(this)||this;o.z2=SH,o.textConfig={inside:!0},Qc(o).seriesIndex=n.seriesIndex;var a=new Vc({z2:AH,silent:e.getModel().get(["label","silent"])});return o.setTextContent(a),o.updateData(!0,e,n,r,i),o}return Q(e,t),e.prototype.updateData=function(t,e,n,r,i){this.node=e,e.piece=this,n=n||this._seriesModel,r=r||this._ecModel;var o=this;Qc(o).dataIndex=e.dataIndex;var a=e.getModel(),s=a.getModel("emphasis"),l=e.getLayout(),u=Ot({},l);u.label=null;var c=e.getVisual("style");c.lineJoin="bevel";var h=e.getVisual("decal");h&&(c.decal=gw(h,i));var d=_I(a.getModel("itemStyle"),u,!0);Ot(u,d),Pt(Jc,(function(t){var e=o.ensureState(t),n=a.getModel([t,"itemStyle"]);e.style=n.getItemStyle();var r=_I(n,u);r&&(e.shape=r)})),t?(o.setShape(u),o.shape.r=l.r0,ld(o,{shape:{r:l.r}},n,e.dataIndex)):(sd(o,{shape:u},n),pd(o)),o.useStyle(c),this._updateLabel(n);var p=a.getShallow("cursor");p&&o.attr("cursor",p),this._seriesModel=n||this._seriesModel,this._ecModel=r||this._ecModel;var f=s.get("focus"),g="ancestor"===f?e.getAncestorsIndices():"descendant"===f?e.getDescendantIndices():f;Zh(this,g,s.get("blurScope"),s.get("disabled"))},e.prototype._updateLabel=function(t){var e=this,n=this.node.getModel(),r=n.getModel("label"),i=this.node.getLayout(),o=i.endAngle-i.startAngle,a=(i.startAngle+i.endAngle)/2,s=Math.cos(a),l=Math.sin(a),u=this,c=u.getTextContent(),h=this.node.dataIndex,d=r.get("minAngle")/180*Math.PI,p=r.get("show")&&!(null!=d&&Math.abs(o)<d);function f(t,e){var n=t.get(e);return null==n?r.get(e):n}c.ignore=!p,Pt(th,(function(r){var d="normal"===r?n.getModel("label"):n.getModel([r,"label"]),p="normal"===r,g=p?c:c.ensureState(r),v=t.getFormattedLabel(h,r);p&&(v=v||e.node.name),g.style=_d(d,{},null,"normal"!==r,!0),v&&(g.style.text=v);var m=d.get("show");null==m||p||(g.ignore=!m);var y,b=f(d,"position"),_=p?u:u.states[r],x=_.style.fill;_.textConfig={outsideFill:"inherit"===d.get("color")?x:null,inside:"outside"!==b};var w=f(d,"distance")||0,O=f(d,"align"),S=f(d,"rotate"),A=.5*Math.PI,k=1.5*Math.PI,C=Wu("tangential"===S?Math.PI/2-a:a),M=C>A&&!ds(C-A)&&C<k;"outside"===b?(y=i.r+w,O=M?"right":"left"):O&&"center"!==O?"left"===O?(y=i.r0+w,O=M?"right":"left"):"right"===O&&(y=i.r-w,O=M?"left":"right"):(y=o===2*Math.PI&&0===i.r0?0:(i.r+i.r0)/2,O="center"),g.style.align=O,g.style.verticalAlign=f(d,"verticalAlign")||"middle",g.x=y*s+i.cx,g.y=y*l+i.cy;var T=0;"radial"===S?T=Wu(-a)+(M?Math.PI:0):"tangential"===S?T=Wu(Math.PI/2-a)+(M?Math.PI:0):Vt(S)&&(T=S*Math.PI/180),g.rotation=Wu(T)})),c.dirtyStyle()},e}(By),CH=kH,MH="sunburstRootToNode",TH="sunburstHighlight",PH="sunburstUnhighlight";function IH(t){t.registerAction({type:MH,update:"updateView"},(function(t,e){function n(e,n){var r=GL(t,[MH],e);if(r){var i=e.getViewRoot();i&&(t.direction=UL(i,r.node)?"rollUp":"drillDown"),e.resetViewRoot(r.node)}}e.eachComponent({mainType:"series",subType:"sunburst",query:t},n)})),t.registerAction({type:TH,update:"none"},(function(t,e,n){function r(e){var n=GL(t,[TH],e);n&&(t.dataIndex=n.node.dataIndex)}t=Ot({},t),e.eachComponent({mainType:"series",subType:"sunburst",query:t},r),n.dispatchAction(Ot(t,{type:"highlight"}))})),t.registerAction({type:PH,update:"updateView"},(function(t,e,n){t=Ot({},t),n.dispatchAction(Ot(t,{type:"downplay"}))}))}var $H=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Q(e,t),e.prototype.render=function(t,e,n,r){var i=this;this.seriesModel=t,this.api=n,this.ecModel=e;var o=t.getData(),a=o.tree.root,s=t.getViewRoot(),l=this.group,u=t.get("renderLabelForZeroData"),c=[];s.eachNode((function(t){c.push(t)}));var h=this._oldChildren||[];function d(t,e){function n(t){return t.getId()}function r(n,r){var i=null==n?null:t[n],o=null==r?null:e[r];p(i,o)}0===t.length&&0===e.length||new mS(e,t,n,n).add(r).update(r).remove(zt(r,null)).execute()}function p(r,i){if(u||!r||r.getValue()||(r=null),r!==a&&i!==a)if(i&&i.piece)r?(i.piece.updateData(!1,r,t,e,n),o.setItemGraphicEl(r.dataIndex,i.piece)):f(i);else if(r){var s=new CH(r,t,e,n);l.add(s),o.setItemGraphicEl(r.dataIndex,s)}}function f(t){t&&t.piece&&(l.remove(t.piece),t.piece=null)}function g(r,o){o.depth>0?(i.virtualPiece?i.virtualPiece.updateData(!1,r,t,e,n):(i.virtualPiece=new CH(r,t,e,n),l.add(i.virtualPiece)),o.piece.off("click"),i.virtualPiece.on("click",(function(t){i._rootToNode(o.parentNode)}))):i.virtualPiece&&(l.remove(i.virtualPiece),i.virtualPiece=null)}d(c,h),g(a,s),this._initEvents(),this._oldChildren=c},e.prototype._initEvents=function(){var t=this;this.group.off("click"),this.group.on("click",(function(e){var n=!1,r=t.seriesModel.getViewRoot();r.eachNode((function(r){if(!n&&r.piece&&r.piece===e.target){var i=r.getModel().get("nodeClick");if("rootToNode"===i)t._rootToNode(r);else if("link"===i){var o=r.getModel(),a=o.get("link");if(a){var s=o.get("target",!0)||"_blank";Kp(a,s)}}n=!0}}))}))},e.prototype._rootToNode=function(t){t!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:MH,from:this.uid,seriesId:this.seriesModel.id,targetNode:t})},e.prototype.containPoint=function(t,e){var n=e.getData(),r=n.getItemLayout(0);if(r){var i=t[0]-r.cx,o=t[1]-r.cy,a=Math.sqrt(i*i+o*o);return a<=r.r&&a>=r.r0}},e.type="sunburst",e}(d_),EH=$H,RH=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.ignoreStyleOnData=!0,n}return Q(e,t),e.prototype.getInitialData=function(t,e){var n={name:t.name,children:t.data};DH(n);var r=this._levelModels=It(t.levels||[],(function(t){return new Qd(t,this,e)}),this),i=ZL.createTree(n,this,o);function o(t){t.wrapMethod("getItemModel",(function(t,e){var n=i.getNodeByDataIndex(e),o=r[n.depth];return o&&(t.parentModel=o),t}))}return i.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.getDataParams=function(e){var n=t.prototype.getDataParams.apply(this,arguments),r=this.getData().tree.getNodeByDataIndex(e);return n.treePathInfo=YL(r,this),n},e.prototype.getLevelModel=function(t){return this._levelModels&&this._levelModels[t.depth]},e.prototype.getViewRoot=function(){return this._viewRoot},e.prototype.resetViewRoot=function(t){t?this._viewRoot=t:t=this._viewRoot;var e=this.getRawData().tree.root;t&&(t===e||e.contains(t))||(this._viewRoot=e)},e.prototype.enableAriaDecal=function(){lN(this)},e.type="series.sunburst",e.defaultOption={z:2,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,stillShowZeroSum:!0,nodeClick:"rootToNode",renderLabelForZeroData:!1,label:{rotate:"radial",show:!0,opacity:1,align:"center",position:"inside",distance:5,silent:!0},itemStyle:{borderWidth:1,borderColor:"white",borderType:"solid",shadowBlur:0,shadowColor:"rgba(0, 0, 0, 0.2)",shadowOffsetX:0,shadowOffsetY:0,opacity:1},emphasis:{focus:"descendant"},blur:{itemStyle:{opacity:.2},label:{opacity:.1}},animationType:"expansion",animationDuration:1e3,animationDurationUpdate:500,data:[],sort:"desc"},e}(Vm);function DH(t){var e=0;Pt(t.children,(function(t){DH(t);var n=t.value;Bt(n)&&(n=n[0]),e+=n}));var n=t.value;Bt(n)&&(n=n[0]),(null==n||isNaN(n))&&(n=e),n<0&&(n=0),Bt(t.value)?t.value[0]=n:t.value=n}var LH=RH,NH=Math.PI/180;function zH(t,e,n){e.eachSeriesByType(t,(function(t){var e=t.get("center"),r=t.get("radius");Bt(r)||(r=[0,r]),Bt(e)||(e=[e,e]);var i=n.getWidth(),o=n.getHeight(),a=Math.min(i,o),s=es(e[0],i),l=es(e[1],o),u=es(r[0],a/2),c=es(r[1],a/2),h=-t.get("startAngle")*NH,d=t.get("minAngle")*NH,p=t.getData().tree.root,f=t.getViewRoot(),g=f.depth,v=t.get("sort");null!=v&&BH(f,v);var m=0;Pt(f.children,(function(t){!isNaN(t.getValue())&&m++}));var y=f.getValue(),b=Math.PI/(y||m)*2,_=f.depth>0,x=f.height-(_?-1:1),w=(c-u)/(x||1),O=t.get("clockwise"),S=t.get("stillShowZeroSum"),A=O?1:-1,k=function(e,n){if(e){var r=n;if(e!==p){var i=e.getValue(),o=0===y&&S?b:i*b;o<d&&(o=d),r=n+A*o;var c=e.depth-g-(_?-1:1),h=u+w*c,f=u+w*(c+1),v=t.getLevelModel(e);if(v){var m=v.get("r0",!0),x=v.get("r",!0),C=v.get("radius",!0);null!=C&&(m=C[0],x=C[1]),null!=m&&(h=es(m,a/2)),null!=x&&(f=es(x,a/2))}e.setLayout({angle:o,startAngle:n,endAngle:r,clockwise:O,cx:s,cy:l,r0:h,r:f})}if(e.children&&e.children.length){var M=0;Pt(e.children,(function(t){M+=k(t,n+M)}))}return r-n}};if(_){var C=u,M=u+w,T=2*Math.PI;p.setLayout({angle:T,startAngle:h,endAngle:h+T,clockwise:O,cx:s,cy:l,r0:C,r:M})}k(f,h)}))}function BH(t,e){var n=t.children||[];t.children=FH(n,e),n.length&&Pt(t.children,(function(t){BH(t,e)}))}function FH(t,e){if(Ft(e)){var n=It(t,(function(t,e){var n=t.getValue();return{params:{depth:t.depth,height:t.height,dataIndex:t.dataIndex,getValue:function(){return n}},index:e}}));return n.sort((function(t,n){return e(t.params,n.params)})),It(n,(function(e){return t[e.index]}))}var r="asc"===e;return t.sort((function(t,e){var n=(t.getValue()-e.getValue())*(r?1:-1);return 0===n?(t.dataIndex-e.dataIndex)*(r?-1:1):n}))}function WH(t){var e={};function n(t,n,r){var i=t;while(i&&i.depth>1)i=i.parentNode;var o=n.getColorFromPalette(i.name||i.dataIndex+"",e);return t.depth>1&&Wt(o)&&(o=xi(o,(t.depth-1)/(r-1)*.5)),o}t.eachSeriesByType("sunburst",(function(t){var e=t.getData(),r=e.tree;r.eachNode((function(i){var o=i.getModel(),a=o.getModel("itemStyle").getItemStyle();a.fill||(a.fill=n(i,t,r.root.height));var s=e.ensureUniqueItemVisual(i.dataIndex,"style");Ot(s,a)}))}))}function jH(t){t.registerChartView(EH),t.registerSeriesModel(LH),t.registerLayout(zt(zH,"sunburst")),t.registerProcessor(zt(JI,"sunburst")),t.registerVisual(WH),IH(t)}var VH={color:"fill",borderColor:"stroke"},QH={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},HH=Ys(),ZH=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Q(e,t),e.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},e.prototype.getInitialData=function(t,e){return dA(null,this)},e.prototype.getDataParams=function(e,n,r){var i=t.prototype.getDataParams.call(this,e,n);return r&&(i.info=HH(r).info),i},e.type="series.custom",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},e}(Vm),GH=ZH;function XH(t,e){return e=e||[0,0],It(["x","y"],(function(n,r){var i=this.getAxis(n),o=e[r],a=t[r]/2;return"category"===i.type?i.getBandWidth():Math.abs(i.dataToCoord(o-a)-i.dataToCoord(o+a))}),this)}function UH(t){var e=t.master.getRect();return{coordSys:{type:"cartesian2d",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(e){return t.dataToPoint(e)},size:Nt(XH,t)}}}function YH(t,e){return e=e||[0,0],It([0,1],(function(n){var r=e[n],i=t[n]/2,o=[],a=[];return o[n]=r-i,a[n]=r+i,o[1-n]=a[1-n]=e[1-n],Math.abs(this.dataToPoint(o)[n]-this.dataToPoint(a)[n])}),this)}function qH(t){var e=t.getBoundingRect();return{coordSys:{type:"geo",x:e.x,y:e.y,width:e.width,height:e.height,zoom:t.getZoom()},api:{coord:function(e){return t.dataToPoint(e)},size:Nt(YH,t)}}}function KH(t,e){var n=this.getAxis(),r=e instanceof Array?e[0]:e,i=(t instanceof Array?t[0]:t)/2;return"category"===n.type?n.getBandWidth():Math.abs(n.dataToCoord(r-i)-n.dataToCoord(r+i))}function JH(t){var e=t.getRect();return{coordSys:{type:"singleAxis",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(e){return t.dataToPoint(e)},size:Nt(KH,t)}}}function tZ(t,e){return e=e||[0,0],It(["Radius","Angle"],(function(n,r){var i="get"+n+"Axis",o=this[i](),a=e[r],s=t[r]/2,l="category"===o.type?o.getBandWidth():Math.abs(o.dataToCoord(a-s)-o.dataToCoord(a+s));return"Angle"===n&&(l=l*Math.PI/180),l}),this)}function eZ(t){var e=t.getRadiusAxis(),n=t.getAngleAxis(),r=e.getExtent();return r[0]>r[1]&&r.reverse(),{coordSys:{type:"polar",cx:t.cx,cy:t.cy,r:r[1],r0:r[0]},api:{coord:function(r){var i=e.dataToRadius(r[0]),o=n.dataToAngle(r[1]),a=t.coordToPoint([i,o]);return a.push(i,o*Math.PI/180),a},size:Nt(tZ,t)}}}function nZ(t){var e=t.getRect(),n=t.getRangeInfo();return{coordSys:{type:"calendar",x:e.x,y:e.y,width:e.width,height:e.height,cellWidth:t.getCellWidth(),cellHeight:t.getCellHeight(),rangeInfo:{start:n.start,end:n.end,weeks:n.weeks,dayCount:n.allDay}},api:{coord:function(e,n){return t.dataToPoint(e,n)}}}}function rZ(t,e,n,r){return t&&(t.legacy||!1!==t.legacy&&!n&&!r&&"tspan"!==e&&("text"===e||ve(t,"text")))}function iZ(t,e,n){var r,i,o,a=t;if("text"===e)o=a;else{o={},ve(a,"text")&&(o.text=a.text),ve(a,"rich")&&(o.rich=a.rich),ve(a,"textFill")&&(o.fill=a.textFill),ve(a,"textStroke")&&(o.stroke=a.textStroke),ve(a,"fontFamily")&&(o.fontFamily=a.fontFamily),ve(a,"fontSize")&&(o.fontSize=a.fontSize),ve(a,"fontStyle")&&(o.fontStyle=a.fontStyle),ve(a,"fontWeight")&&(o.fontWeight=a.fontWeight),i={type:"text",style:o,silent:!0},r={};var s=ve(a,"textPosition");n?r.position=s?a.textPosition:"inside":s&&(r.position=a.textPosition),ve(a,"textPosition")&&(r.position=a.textPosition),ve(a,"textOffset")&&(r.offset=a.textOffset),ve(a,"textRotation")&&(r.rotation=a.textRotation),ve(a,"textDistance")&&(r.distance=a.textDistance)}return oZ(o,t),Pt(o.rich,(function(t){oZ(t,t)})),{textConfig:r,textContent:i}}function oZ(t,e){e&&(e.font=e.textFont||e.font,ve(e,"textStrokeWidth")&&(t.lineWidth=e.textStrokeWidth),ve(e,"textAlign")&&(t.align=e.textAlign),ve(e,"textVerticalAlign")&&(t.verticalAlign=e.textVerticalAlign),ve(e,"textLineHeight")&&(t.lineHeight=e.textLineHeight),ve(e,"textWidth")&&(t.width=e.textWidth),ve(e,"textHeight")&&(t.height=e.textHeight),ve(e,"textBackgroundColor")&&(t.backgroundColor=e.textBackgroundColor),ve(e,"textPadding")&&(t.padding=e.textPadding),ve(e,"textBorderColor")&&(t.borderColor=e.textBorderColor),ve(e,"textBorderWidth")&&(t.borderWidth=e.textBorderWidth),ve(e,"textBorderRadius")&&(t.borderRadius=e.textBorderRadius),ve(e,"textBoxShadowColor")&&(t.shadowColor=e.textBoxShadowColor),ve(e,"textBoxShadowBlur")&&(t.shadowBlur=e.textBoxShadowBlur),ve(e,"textBoxShadowOffsetX")&&(t.shadowOffsetX=e.textBoxShadowOffsetX),ve(e,"textBoxShadowOffsetY")&&(t.shadowOffsetY=e.textBoxShadowOffsetY))}function aZ(t,e,n){var r=t;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 i=r.textPosition.indexOf("inside")>=0,o=t.fill||"#000";sZ(r,e);var a=null==r.textFill;return i?a&&(r.textFill=n.insideFill||"#fff",!r.textStroke&&n.insideStroke&&(r.textStroke=n.insideStroke),!r.textStroke&&(r.textStroke=o),null==r.textStrokeWidth&&(r.textStrokeWidth=2)):(a&&(r.textFill=t.fill||n.outsideFill||"#000"),!r.textStroke&&n.outsideStroke&&(r.textStroke=n.outsideStroke)),r.text=e.text,r.rich=e.rich,Pt(e.rich,(function(t){sZ(t,t)})),r}function sZ(t,e){e&&(ve(e,"fill")&&(t.textFill=e.fill),ve(e,"stroke")&&(t.textStroke=e.fill),ve(e,"lineWidth")&&(t.textStrokeWidth=e.lineWidth),ve(e,"font")&&(t.font=e.font),ve(e,"fontStyle")&&(t.fontStyle=e.fontStyle),ve(e,"fontWeight")&&(t.fontWeight=e.fontWeight),ve(e,"fontSize")&&(t.fontSize=e.fontSize),ve(e,"fontFamily")&&(t.fontFamily=e.fontFamily),ve(e,"align")&&(t.textAlign=e.align),ve(e,"verticalAlign")&&(t.textVerticalAlign=e.verticalAlign),ve(e,"lineHeight")&&(t.textLineHeight=e.lineHeight),ve(e,"width")&&(t.textWidth=e.width),ve(e,"height")&&(t.textHeight=e.height),ve(e,"backgroundColor")&&(t.textBackgroundColor=e.backgroundColor),ve(e,"padding")&&(t.textPadding=e.padding),ve(e,"borderColor")&&(t.textBorderColor=e.borderColor),ve(e,"borderWidth")&&(t.textBorderWidth=e.borderWidth),ve(e,"borderRadius")&&(t.textBorderRadius=e.borderRadius),ve(e,"shadowColor")&&(t.textBoxShadowColor=e.shadowColor),ve(e,"shadowBlur")&&(t.textBoxShadowBlur=e.shadowBlur),ve(e,"shadowOffsetX")&&(t.textBoxShadowOffsetX=e.shadowOffsetX),ve(e,"shadowOffsetY")&&(t.textBoxShadowOffsetY=e.shadowOffsetY),ve(e,"textShadowColor")&&(t.textShadowColor=e.textShadowColor),ve(e,"textShadowBlur")&&(t.textShadowBlur=e.textShadowBlur),ve(e,"textShadowOffsetX")&&(t.textShadowOffsetX=e.textShadowOffsetX),ve(e,"textShadowOffsetY")&&(t.textShadowOffsetY=e.textShadowOffsetY))}var lZ={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},uZ=Dt(lZ),cZ=($t(ua,(function(t,e){return t[e]=1,t}),{}),ua.join(", "),["","style","shape","extra"]),hZ=Ys();function dZ(t,e,n,r,i){var o=t+"Animation",a=od(t,r,i)||{},s=hZ(e).userDuring;return a.duration>0&&(a.during=s?Nt(wZ,{el:e,userDuring:s}):null,a.setToFinal=!0,a.scope=t),Ot(a,n[o]),a}function pZ(t,e,n,r){r=r||{};var i=r.dataIndex,o=r.isInit,a=r.clearStyle,s=n.isAnimationEnabled(),l=hZ(t),u=e.style;l.userDuring=e.during;var c={},h={};if(kZ(t,e,h),SZ("shape",e,h),SZ("extra",e,h),!o&&s&&(AZ(t,e,c),OZ("shape",t,e,c),OZ("extra",t,e,c),CZ(t,e,u,c)),h.style=u,mZ(t,h,a),bZ(t,e),s)if(o){var d={};Pt(cZ,(function(t){var n=t?e[t]:e;n&&n.enterFrom&&(t&&(d[t]=d[t]||{}),Ot(t?d[t]:d,n.enterFrom))}));var p=dZ("enter",t,e,n,i);p.duration>0&&t.animateFrom(d,p)}else yZ(t,e,i||0,n,c);fZ(t,e),u?t.dirty():t.markRedraw()}function fZ(t,e){for(var n=hZ(t).leaveToProps,r=0;r<cZ.length;r++){var i=cZ[r],o=i?e[i]:e;o&&o.leaveTo&&(n||(n=hZ(t).leaveToProps={}),i&&(n[i]=n[i]||{}),Ot(i?n[i]:n,o.leaveTo))}}function gZ(t,e,n,r){if(t){var i=t.parent,o=hZ(t).leaveToProps;if(o){var a=dZ("update",t,e,n,0);a.done=function(){i.remove(t),r&&r()},t.animateTo(o,a)}else i.remove(t),r&&r()}}function vZ(t){return"all"===t}function mZ(t,e,n){var r=e.style;if(!t.isGroup&&r){if(n){t.useStyle({});for(var i=t.animators,o=0;o<i.length;o++){var a=i[o];"style"===a.targetName&&a.changeTarget(t.style)}}t.setStyle(r)}e&&(e.style=null,e&&t.attr(e),e.style=r)}function yZ(t,e,n,r,i){if(i){var o=dZ("update",t,e,r,n);o.duration>0&&t.animateFrom(i,o)}}function bZ(t,e){ve(e,"silent")&&(t.silent=e.silent),ve(e,"ignore")&&(t.ignore=e.ignore),t instanceof eu&&ve(e,"invisible")&&(t.invisible=e.invisible),t instanceof lc&&ve(e,"autoBatch")&&(t.autoBatch=e.autoBatch)}var _Z={},xZ={setTransform:function(t,e){return _Z.el[t]=e,this},getTransform:function(t){return _Z.el[t]},setShape:function(t,e){var n=_Z.el,r=n.shape||(n.shape={});return r[t]=e,n.dirtyShape&&n.dirtyShape(),this},getShape:function(t){var e=_Z.el.shape;if(e)return e[t]},setStyle:function(t,e){var n=_Z.el,r=n.style;return r&&(r[t]=e,n.dirtyStyle&&n.dirtyStyle()),this},getStyle:function(t){var e=_Z.el.style;if(e)return e[t]},setExtra:function(t,e){var n=_Z.el.extra||(_Z.el.extra={});return n[t]=e,this},getExtra:function(t){var e=_Z.el.extra;if(e)return e[t]}};function wZ(){var t=this,e=t.el;if(e){var n=hZ(e).userDuring,r=t.userDuring;n===r?(_Z.el=e,r(xZ)):t.el=t.userDuring=null}}function OZ(t,e,n,r){var i=n[t];if(i){var o,a=e[t];if(a){var s=n.transition,l=i.transition;if(l)if(!o&&(o=r[t]={}),vZ(l))Ot(o,a);else for(var u=Ms(l),c=0;c<u.length;c++){var h=u[c],d=a[h];o[h]=d}else if(vZ(s)||kt(s,t)>=0){!o&&(o=r[t]={});var p=Dt(a);for(c=0;c<p.length;c++){h=p[c],d=a[h];MZ(i[h],d)&&(o[h]=d)}}}}}function SZ(t,e,n){var r=e[t];if(r)for(var i=n[t]={},o=Dt(r),a=0;a<o.length;a++){var s=o[a];i[s]=uo(r[s])}}function AZ(t,e,n){for(var r=e.transition,i=vZ(r)?ua:Ms(r||[]),o=0;o<i.length;o++){var a=i[o];if("style"!==a&&"shape"!==a&&"extra"!==a){var s=t[a];0,n[a]=s}}}function kZ(t,e,n){for(var r=0;r<uZ.length;r++){var i=uZ[r],o=lZ[i],a=e[i];a&&(n[o[0]]=a[0],n[o[1]]=a[1])}for(r=0;r<ua.length;r++){var s=ua[r];null!=e[s]&&(n[s]=e[s])}}function CZ(t,e,n,r){if(n){var i,o=t.style;if(o){var a=n.transition,s=e.transition;if(a&&!vZ(a)){var l=Ms(a);!i&&(i=r.style={});for(var u=0;u<l.length;u++){var c=l[u],h=o[c];i[c]=h}}else if(t.getAnimationStyleProps&&(vZ(s)||vZ(a)||kt(s,"style")>=0)){var d=t.getAnimationStyleProps(),p=d?d.style:null;if(p){!i&&(i=r.style={});var f=Dt(n);for(u=0;u<f.length;u++){c=f[u];if(p[c]){h=o[c];i[c]=h}}}}}}}function MZ(t,e){return Tt(t)?t!==e:null!=t&&isFinite(t)}var TZ=Ys(),PZ=["percent","easing","shape","style","extra"];function IZ(t){t.stopAnimation("keyframe"),t.attr(TZ(t))}function $Z(t,e,n){if(n.isAnimationEnabled()&&e)if(Bt(e))Pt(e,(function(e){$Z(t,e,n)}));else{var r=e.keyframes,i=e.duration;if(n&&null==i){var o=od("enter",n,0);i=o&&o.duration}if(r&&i){var a=TZ(t);Pt(cZ,(function(n){if(!n||t[n]){var o;r.sort((function(t,e){return t.percent-e.percent})),Pt(r,(function(r){var s=t.animators,l=n?r[n]:r;if(l){var u=Dt(l);if(n||(u=Et(u,(function(t){return kt(PZ,t)<0}))),u.length){o||(o=t.animate(n,e.loop,!0),o.scope="keyframe");for(var c=0;c<s.length;c++)s[c]!==o&&s[c].targetName===o.targetName&&s[c].stopTracks(u);n&&(a[n]=a[n]||{});var h=n?a[n]:a;Pt(u,(function(e){h[e]=((n?t[n]:t)||{})[e]})),o.whenWithKeys(i*r.percent,l,u,r.easing)}}})),o&&o.delay(e.delay||0).duration(i).start(e.easing)}}))}}}var EZ="emphasis",RZ="normal",DZ="blur",LZ="select",NZ=[RZ,EZ,DZ,LZ],zZ={normal:["itemStyle"],emphasis:[EZ,"itemStyle"],blur:[DZ,"itemStyle"],select:[LZ,"itemStyle"]},BZ={normal:["label"],emphasis:[EZ,"label"],blur:[DZ,"label"],select:[LZ,"label"]},FZ=["x","y"],WZ="e\0\0",jZ={normal:{},emphasis:{},blur:{},select:{}},VZ={cartesian2d:UH,geo:qH,single:JH,polar:eZ,calendar:nZ};function QZ(t){return t instanceof lc}function HZ(t){return t instanceof eu}function ZZ(t,e){e.copyTransform(t),HZ(e)&&HZ(t)&&(e.setStyle(t.style),e.z=t.z,e.z2=t.z2,e.zlevel=t.zlevel,e.invisible=t.invisible,e.ignore=t.ignore,QZ(e)&&QZ(t)&&e.setShape(t.shape))}var GZ=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Q(e,t),e.prototype.render=function(t,e,n,r){this._progressiveEls=null;var i=this._data,o=t.getData(),a=this.group,s=tG(t,o,e,n);i||a.removeAll(),o.diff(i).add((function(e){nG(n,null,e,s(e,r),t,a,o)})).remove((function(e){var n=i.getItemGraphicEl(e);n&&gZ(n,HH(n).option,t)})).update((function(e,l){var u=i.getItemGraphicEl(l);nG(n,u,e,s(e,r),t,a,o)})).execute();var l=t.get("clip",!0)?NP(t.coordinateSystem,!1,t):null;l?a.setClipPath(l):a.removeClipPath(),this._data=o},e.prototype.incrementalPrepareRender=function(t,e,n){this.group.removeAll(),this._data=null},e.prototype.incrementalRender=function(t,e,n,r,i){var o=e.getData(),a=tG(e,o,n,r),s=this._progressiveEls=[];function l(t){t.isGroup||(t.incremental=!0,t.ensureState("emphasis").hoverLayer=!0)}for(var u=t.start;u<t.end;u++){var c=nG(null,null,u,a(u,i),e,this.group,o);c&&(c.traverse(l),s.push(c))}},e.prototype.eachRendered=function(t){r_(this._progressiveEls||this.group,t)},e.prototype.filterForExposedEvent=function(t,e,n,r){var i=e.element;if(null==i||n.name===i)return!0;while((n=n.__hostTarget||n.parent)&&n!==this.group)if(n.name===i)return!0;return!1},e.type="custom",e}(d_),XZ=GZ;function UZ(t){var e,n=t.type;if("path"===n){var r=t.shape,i=null!=r.width&&null!=r.height?{x:r.x||0,y:r.y||0,width:r.width,height:r.height}:null,o=vG(r);e=Rb(o,null,i,r.layout||"center"),HH(e).customPathData=o}else if("image"===n)e=new vc({}),HH(e).customImagePath=t.style.image;else if("text"===n)e=new Vc({});else if("group"===n)e=new La;else{if("compoundPath"===n)throw new Error('"compoundPath" is not supported yet.');var a=Eb(n);if(!a){var s="";0,kv(s)}e=new a}return HH(e).customGraphicType=n,e.name=t.name,e.z2EmphasisLift=1,e.z2SelectLift=1,e}function YZ(t,e,n,r,i,o,a){IZ(e);var s=i&&i.normal.cfg;s&&e.setTextConfig(s),r&&null==r.transition&&(r.transition=FZ);var l=r&&r.style;if(l){if("text"===e.type){var u=l;ve(u,"textFill")&&(u.fill=u.textFill),ve(u,"textStroke")&&(u.stroke=u.textStroke)}var c=void 0,h=QZ(e)?l.decal:null;t&&h&&(h.dirty=!0,c=gw(h,t)),l.__decalPattern=c}if(HZ(e)&&l){c=l.__decalPattern;c&&(l.decal=c)}pZ(e,r,o,{dataIndex:n,isInit:a,clearStyle:!0}),$Z(e,r.keyframeAnimation,o)}function qZ(t,e,n,r,i){var o=e.isGroup?null:e,a=i&&i[t].cfg;if(o){var s=o.ensureState(t);if(!1===r){var l=o.getState(t);l&&(l.style=null)}else s.style=r||null;a&&(s.textConfig=a),Sh(o)}}function KZ(t,e,n){if(!t.isGroup){var r=t,i=n.currentZ,o=n.currentZLevel;r.z=i,r.zlevel=o;var a=e.z2;null!=a&&(r.z2=a||0);for(var s=0;s<NZ.length;s++)JZ(r,e,NZ[s])}}function JZ(t,e,n){var r,i=n===RZ,o=i?e:lG(e,n),a=o?o.z2:null;null!=a&&(r=i?t:t.ensureState(n),r.z2=a||0)}function tG(t,e,n,r){var i=t.get("renderItem"),o=t.coordinateSystem,a={};o&&(a=o.prepareCustoms?o.prepareCustoms(o):VZ[o.type](o));for(var s,l,u=St({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:t.id,seriesName:t.name,seriesIndex:t.seriesIndex,coordSys:a.coordSys,dataInsideLength:e.count(),encode:eG(t.getData())},h={},d={},p={},f={},g=0;g<NZ.length;g++){var v=NZ[g];p[v]=t.getModel(zZ[v]),f[v]=t.getModel(BZ[v])}function m(t){return t===s?l||(l=e.getItemModel(t)):e.getItemModel(t)}function y(t,n){return e.hasItemOption?t===s?h[n]||(h[n]=m(t).getModel(zZ[n])):m(t).getModel(zZ[n]):p[n]}function b(t,n){return e.hasItemOption?t===s?d[n]||(d[n]=m(t).getModel(BZ[n])):m(t).getModel(BZ[n]):f[n]}return function(t,n){return s=t,l=null,h={},d={},i&&i(St({dataIndexInside:t,dataIndex:e.getRawIndex(t),actionType:n?n.type:null},c),u)};function _(t,n){return null==n&&(n=s),e.getStore().get(e.getDimensionIndex(t||0),n)}function x(t,n){null==n&&(n=s),t=t||0;var r=e.getDimensionInfo(t);if(!r){var i=e.getDimensionIndex(t);return i>=0?e.getStore().get(i,n):void 0}var o=e.get(r.name,n),a=r&&r.ordinalMeta;return a?a.categories[o]:o}function w(n,r){null==r&&(r=s);var i=e.getItemVisual(r,"style"),o=i&&i.fill,a=i&&i.opacity,l=y(r,RZ).getItemStyle();null!=o&&(l.fill=o),null!=a&&(l.opacity=a);var u={inheritColor:Wt(o)?o:"#000"},c=b(r,RZ),h=_d(c,null,u,!1,!0);h.text=c.getShallow("show")?Jt(t.getFormattedLabel(r,RZ),dP(e,r)):null;var d=xd(c,u,!1);return A(n,l),l=aZ(l,h,d),n&&S(l,n),l.legacy=!0,l}function O(n,r){null==r&&(r=s);var i=y(r,EZ).getItemStyle(),o=b(r,EZ),a=_d(o,null,null,!0,!0);a.text=o.getShallow("show")?te(t.getFormattedLabel(r,EZ),t.getFormattedLabel(r,RZ),dP(e,r)):null;var l=xd(o,null,!0);return A(n,i),i=aZ(i,a,l),n&&S(i,n),i.legacy=!0,i}function S(t,e){for(var n in e)ve(e,n)&&(t[n]=e[n])}function A(t,e){t&&(t.textFill&&(e.textFill=t.textFill),t.textPosition&&(e.textPosition=t.textPosition))}function k(t,n){if(null==n&&(n=s),ve(VH,t)){var r=e.getItemVisual(n,"style");return r?r[VH[t]]:null}if(ve(QH,t))return e.getItemVisual(n,t)}function C(t){if("cartesian2d"===o.type){var e=o.getBaseAxis();return BA(St({axis:e},t))}}function M(){return n.getCurrentSeriesIndices()}function T(t){return Md(t,n)}}function eG(t){var e={};return Pt(t.dimensions,(function(n){var r=t.getDimensionInfo(n);if(!r.isExtraCoord){var i=r.coordDim,o=e[i]=e[i]||[];o[r.coordDimIndex]=t.getDimensionIndex(n)}})),e}function nG(t,e,n,r,i,o,a){if(r){var s=rG(t,e,n,r,i,o);return s&&a.setItemGraphicEl(n,s),s&&Zh(s,r.focus,r.blurScope,r.emphasisDisabled),s}o.remove(e)}function rG(t,e,n,r,i,o){var a=-1,s=e;e&&iG(e,r,i)&&(a=kt(o.childrenRef(),e),e=null);var l=!e,u=e;u?u.clearStates():(u=UZ(r),s&&ZZ(s,u)),!1===r.morph?u.disableMorphing=!0:u.disableMorphing&&(u.disableMorphing=!1),jZ.normal.cfg=jZ.normal.conOpt=jZ.emphasis.cfg=jZ.emphasis.conOpt=jZ.blur.cfg=jZ.blur.conOpt=jZ.select.cfg=jZ.select.conOpt=null,jZ.isLegacy=!1,aG(u,n,r,i,l,jZ),oG(u,n,r,i,l),YZ(t,u,n,r,jZ,i,l),ve(r,"info")&&(HH(u).info=r.info);for(var c=0;c<NZ.length;c++){var h=NZ[c];if(h!==RZ){var d=lG(r,h),p=uG(r,d,h);qZ(h,u,d,p,jZ)}}return KZ(u,r,i),"group"===r.type&&cG(t,u,n,r,i),a>=0?o.replaceAt(u,a):o.add(u),u}function iG(t,e,n){var r=HH(t),i=e.type,o=e.shape,a=e.style;return n.isUniversalTransitionEnabled()||null!=i&&i!==r.customGraphicType||"path"===i&&mG(o)&&vG(o)!==r.customPathData||"image"===i&&ve(a,"image")&&a.image!==r.customImagePath}function oG(t,e,n,r,i){var o=n.clipPath;if(!1===o)t&&t.getClipPath()&&t.removeClipPath();else if(o){var a=t.getClipPath();a&&iG(a,o,r)&&(a=null),a||(a=UZ(o),t.setClipPath(a)),YZ(null,a,e,o,null,r,i)}}function aG(t,e,n,r,i,o){if(!t.isGroup){sG(n,null,o),sG(n,EZ,o);var a=o.normal.conOpt,s=o.emphasis.conOpt,l=o.blur.conOpt,u=o.select.conOpt;if(null!=a||null!=s||null!=u||null!=l){var c=t.getTextContent();if(!1===a)c&&t.removeTextContent();else{a=o.normal.conOpt=a||{type:"text"},c?c.clearStates():(c=UZ(a),t.setTextContent(c)),YZ(null,c,e,a,null,r,i);for(var h=a&&a.style,d=0;d<NZ.length;d++){var p=NZ[d];if(p!==RZ){var f=o[p].conOpt;qZ(p,c,f,uG(a,f,p),null)}}h?c.dirty():c.markRedraw()}}}}function sG(t,e,n){var r=e?lG(t,e):t,i=e?uG(t,r,EZ):t.style,o=t.type,a=r?r.textConfig:null,s=t.textContent,l=s?e?lG(s,e):s:null;if(i&&(n.isLegacy||rZ(i,o,!!a,!!l))){n.isLegacy=!0;var u=iZ(i,o,!e);!a&&u.textConfig&&(a=u.textConfig),!l&&u.textContent&&(l=u.textContent)}if(!e&&l){var c=l;!c.type&&(c.type="text")}var h=e?n[e]:n.normal;h.cfg=a,h.conOpt=l}function lG(t,e){return e?t?t[e]:null:t}function uG(t,e,n){var r=e&&e.style;return null==r&&n===EZ&&t&&(r=t.styleEmphasis),r}function cG(t,e,n,r,i){var o=r.children,a=o?o.length:0,s=r.$mergeChildren,l="byName"===s||r.diffChildrenByName,u=!1===s;if(a||l||u)if(l)dG({api:t,oldChildren:e.children()||[],newChildren:o||[],dataIndex:n,seriesModel:i,group:e});else{u&&e.removeAll();for(var c=0;c<a;c++){var h=o[c],d=e.childAt(c);h?(null==h.ignore&&(h.ignore=!1),rG(t,d,n,h,i,e)):d.ignore=!0}for(var p=e.childCount()-1;p>=c;p--){var f=e.childAt(p);hG(e,f,i)}}}function hG(t,e,n){e&&gZ(e,HH(t).option,n)}function dG(t){new mS(t.oldChildren,t.newChildren,pG,pG,t).add(fG).update(fG).remove(gG).execute()}function pG(t,e){var n=t&&t.name;return null!=n?n:WZ+e}function fG(t,e){var n=this.context,r=null!=t?n.newChildren[t]:null,i=null!=e?n.oldChildren[e]:null;rG(n.api,i,n.dataIndex,r,n.seriesModel,n.group)}function gG(t){var e=this.context,n=e.oldChildren[t];n&&gZ(n,HH(n).option,e.seriesModel)}function vG(t){return t&&(t.pathData||t.d)}function mG(t){return t&&(ve(t,"pathData")||ve(t,"d"))}function yG(t){t.registerChartView(XZ),t.registerSeriesModel(GH)}var bG=Ys(),_G=_t,xG=Nt,wG=function(){function t(){this._dragging=!1,this.animationThreshold=15}return t.prototype.render=function(t,e,n,r){var i=e.get("value"),o=e.get("status");if(this._axisModel=t,this._axisPointerModel=e,this._api=n,r||this._lastValue!==i||this._lastStatus!==o){this._lastValue=i,this._lastStatus=o;var a=this._group,s=this._handle;if(!o||"hide"===o)return a&&a.hide(),void(s&&s.hide());a&&a.show(),s&&s.show();var l={};this.makeElOption(l,i,t,e,n);var u=l.graphicKey;u!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=u;var c=this._moveAnimation=this.determineAnimation(t,e);if(a){var h=zt(OG,e,c);this.updatePointerEl(a,l,h),this.updateLabelEl(a,l,h,e)}else a=this._group=new La,this.createPointerEl(a,l,t,e),this.createLabelEl(a,l,t,e),n.getZr().add(a);CG(a,e,!0),this._renderHandle(i)}},t.prototype.remove=function(t){this.clear(t)},t.prototype.dispose=function(t){this.clear(t)},t.prototype.determineAnimation=function(t,e){var n=e.get("animation"),r=t.axis,i="category"===r.type,o=e.get("snap");if(!o&&!i)return!1;if("auto"===n||null==n){var a=this.animationThreshold;if(i&&r.getBandWidth()>a)return!0;if(o){var s=OE(t).seriesDataCount,l=r.getExtent();return Math.abs(l[0]-l[1])/s>a}return!1}return!0===n},t.prototype.makeElOption=function(t,e,n,r,i){},t.prototype.createPointerEl=function(t,e,n,r){var i=e.pointer;if(i){var o=bG(t).pointerEl=new l[i.type](_G(e.pointer));t.add(o)}},t.prototype.createLabelEl=function(t,e,n,r){if(e.label){var i=bG(t).labelEl=new Vc(_G(e.label));t.add(i),AG(i,r)}},t.prototype.updatePointerEl=function(t,e,n){var r=bG(t).pointerEl;r&&e.pointer&&(r.setStyle(e.pointer.style),n(r,{shape:e.pointer.shape}))},t.prototype.updateLabelEl=function(t,e,n,r){var i=bG(t).labelEl;i&&(i.setStyle(e.label.style),n(i,{x:e.label.x,y:e.label.y}),AG(i,r))},t.prototype._renderHandle=function(t){if(!this._dragging&&this.updateHandleTransform){var e,n=this._axisPointerModel,r=this._api.getZr(),i=this._handle,o=n.getModel("handle"),a=n.get("status");if(!o.get("show")||!a||"hide"===a)return i&&r.remove(i),void(this._handle=null);this._handle||(e=!0,i=this._handle=Yb(o.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(t){bn(t.event)},onmousedown:xG(this._onHandleDragMove,this,0,0),drift:xG(this._onHandleDragMove,this),ondragend:xG(this._onHandleDragEnd,this)}),r.add(i)),CG(i,n,!1),i.setStyle(o.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var s=o.get("size");Bt(s)||(s=[s,s]),i.scaleX=s[0]/2,i.scaleY=s[1]/2,m_(this,"_doDispatchAxisPointer",o.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,e)}},t.prototype._moveHandleToValue=function(t,e){OG(this._axisPointerModel,!e&&this._moveAnimation,this._handle,kG(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},t.prototype._onHandleDragMove=function(t,e){var n=this._handle;if(n){this._dragging=!0;var r=this.updateHandleTransform(kG(n),[t,e],this._axisModel,this._axisPointerModel);this._payloadInfo=r,n.stopAnimation(),n.attr(kG(r)),bG(n).lastProp=null,this._doDispatchAxisPointer()}},t.prototype._doDispatchAxisPointer=function(){var t=this._handle;if(t){var e=this._payloadInfo,n=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:e.cursorPoint[0],y:e.cursorPoint[1],tooltipOption:e.tooltipOption,axesInfo:[{axisDim:n.axis.dim,axisIndex:n.componentIndex}]})}},t.prototype._onHandleDragEnd=function(){this._dragging=!1;var t=this._handle;if(t){var e=this._axisPointerModel.get("value");this._moveHandleToValue(e),this._api.dispatchAction({type:"hideTip"})}},t.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var e=t.getZr(),n=this._group,r=this._handle;e&&n&&(this._lastGraphicKey=null,n&&e.remove(n),r&&e.remove(r),this._group=null,this._handle=null,this._payloadInfo=null),y_(this,"_doDispatchAxisPointer")},t.prototype.doClear=function(){},t.prototype.buildLabel=function(t,e,n){return n=n||0,{x:t[n],y:t[1-n],width:e[n],height:e[1-n]}},t}();function OG(t,e,n,r){SG(bG(n).lastProp,r)||(bG(n).lastProp=r,e?sd(n,r,t):(n.stopAnimation(),n.attr(r)))}function SG(t,e){if(Qt(t)&&Qt(e)){var n=!0;return Pt(e,(function(e,r){n=n&&SG(t[r],e)})),!!n}return t===e}function AG(t,e){t[e.get(["label","show"])?"show":"hide"]()}function kG(t){return{x:t.x||0,y:t.y||0,rotation:t.rotation||0}}function CG(t,e,n){var r=e.get("z"),i=e.get("zlevel");t&&t.traverse((function(t){"group"!==t.type&&(null!=r&&(t.z=r),null!=i&&(t.zlevel=i),t.silent=n)}))}var MG=wG;function TG(t){var e,n=t.get("type"),r=t.getModel(n+"Style");return"line"===n?(e=r.getLineStyle(),e.fill=null):"shadow"===n&&(e=r.getAreaStyle(),e.stroke=null),e}function PG(t,e,n,r,i){var o=n.get("value"),a=$G(o,e.axis,e.ecModel,n.get("seriesDataIndices"),{precision:n.get(["label","precision"]),formatter:n.get(["label","formatter"])}),s=n.getModel("label"),l=jp(s.get("padding")||0),u=s.getFont(),c=ga(a,u),h=i.position,d=c.width+l[1]+l[3],p=c.height+l[0]+l[2],f=i.align;"right"===f&&(h[0]-=d),"center"===f&&(h[0]-=d/2);var g=i.verticalAlign;"bottom"===g&&(h[1]-=p),"middle"===g&&(h[1]-=p/2),IG(h,d,p,r);var v=s.get("backgroundColor");v&&"auto"!==v||(v=e.get(["axisLine","lineStyle","color"])),t.label={x:h[0],y:h[1],style:_d(s,{text:a,font:u,fill:s.getTextColor(),padding:l,backgroundColor:v}),z2:10}}function IG(t,e,n,r){var i=r.getWidth(),o=r.getHeight();t[0]=Math.min(t[0]+e,i)-e,t[1]=Math.min(t[1]+n,o)-n,t[0]=Math.max(t[0],0),t[1]=Math.max(t[1],0)}function $G(t,e,n,r,i){t=e.scale.parse(t);var o=e.scale.getLabel({value:t},{precision:i.precision}),a=i.formatter;if(a){var s={value:Pk(e,{value:t}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};Pt(r,(function(t){var e=n.getSeriesByIndex(t.seriesIndex),r=t.dataIndexInside,i=e&&e.getDataParams(r);i&&s.seriesData.push(i)})),Wt(a)?o=a.replace("{value}",o):Ft(a)&&(o=a(s))}return o}function EG(t,e,n){var r=An();return Pn(r,r,n.rotation),Tn(r,r,n.position),Vb([t.dataToCoord(e),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],r)}function RG(t,e,n,r,i,o){var a=gE.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=i.get(["label","margin"]),PG(e,r,i,o,{position:EG(r.axis,t,n),align:a.textAlign,verticalAlign:a.textVerticalAlign})}function DG(t,e,n){return n=n||0,{x1:t[n],y1:t[1-n],x2:e[n],y2:e[1-n]}}function LG(t,e,n){return n=n||0,{x:t[n],y:t[1-n],width:e[n],height:e[1-n]}}function NG(t,e,n,r,i,o){return{cx:t,cy:e,r0:n,r:r,startAngle:i,endAngle:o,clockwise:!0}}var zG=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Q(e,t),e.prototype.makeElOption=function(t,e,n,r,i){var o=n.axis,a=o.grid,s=r.get("type"),l=BG(a,o).getOtherAxis(o).getGlobalExtent(),u=o.toGlobalCoord(o.dataToCoord(e,!0));if(s&&"none"!==s){var c=TG(r),h=FG[s](o,u,l);h.style=c,t.graphicKey=h.type,t.pointer=h}var d=Z$(a.model,n);RG(e,t,d,n,r,i)},e.prototype.getHandleTransform=function(t,e,n){var r=Z$(e.axis.grid.model,e,{labelInside:!1});r.labelMargin=n.get(["handle","margin"]);var i=EG(e.axis,t,r);return{x:i[0],y:i[1],rotation:r.rotation+(r.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,e,n,r){var i=n.axis,o=i.grid,a=i.getGlobalExtent(!0),s=BG(o,i).getOtherAxis(i).getGlobalExtent(),l="x"===i.dim?0:1,u=[t.x,t.y];u[l]+=e[l],u[l]=Math.min(a[1],u[l]),u[l]=Math.max(a[0],u[l]);var c=(s[1]+s[0])/2,h=[c,c];h[l]=u[l];var d=[{verticalAlign:"middle"},{align:"center"}];return{x:u[0],y:u[1],rotation:t.rotation,cursorPoint:h,tooltipOption:d[l]}},e}(MG);function BG(t,e){var n={};return n[e.dim+"AxisIndex"]=e.index,t.getCartesian(n)}var FG={line:function(t,e,n){var r=DG([e,n[0]],[e,n[1]],WG(t));return{type:"Line",subPixelOptimize:!0,shape:r}},shadow:function(t,e,n){var r=Math.max(1,t.getBandWidth()),i=n[1]-n[0];return{type:"Rect",shape:LG([e-r/2,n[0]],[r,i],WG(t))}}};function WG(t){return"x"===t.dim?0:1}var jG=zG,VG=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Q(e,t),e.type="axisPointer",e.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}},e}(vf),QG=VG,HG=Ys(),ZG=Pt;function GG(t,e,n){if(!U.node){var r=e.getZr();HG(r).records||(HG(r).records={}),XG(r,e);var i=HG(r).records[t]||(HG(r).records[t]={});i.handler=n}}function XG(t,e){function n(n,r){t.on(n,(function(n){var i=KG(e);ZG(HG(t).records,(function(t){t&&r(t,n,i.dispatchAction)})),UG(i.pendings,e)}))}HG(t).initialized||(HG(t).initialized=!0,n("click",zt(qG,"click")),n("mousemove",zt(qG,"mousemove")),n("globalout",YG))}function UG(t,e){var n,r=t.showTip.length,i=t.hideTip.length;r?n=t.showTip[r-1]:i&&(n=t.hideTip[i-1]),n&&(n.dispatchAction=null,e.dispatchAction(n))}function YG(t,e,n){t.handler("leave",null,n)}function qG(t,e,n,r){e.handler(t,n,r)}function KG(t){var e={showTip:[],hideTip:[]},n=function(r){var i=e[r.type];i?i.push(r):(r.dispatchAction=n,t.dispatchAction(r))};return{dispatchAction:n,pendings:e}}function JG(t,e){if(!U.node){var n=e.getZr(),r=(HG(n).records||{})[t];r&&(HG(n).records[t]=null)}}var tX=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Q(e,t),e.prototype.render=function(t,e,n){var r=e.getComponent("tooltip"),i=t.get("triggerOn")||r&&r.get("triggerOn")||"mousemove|click";GG("axisPointer",n,(function(t,e,n){"none"!==i&&("leave"===t||i.indexOf(t)>=0)&&n({type:"updateAxisPointer",currTrigger:t,x:e&&e.offsetX,y:e&&e.offsetY})}))},e.prototype.remove=function(t,e){JG("axisPointer",e)},e.prototype.dispose=function(t,e){JG("axisPointer",e)},e.type="axisPointer",e}(Hm),eX=tX;function nX(t,e){var n,r=[],i=t.seriesIndex;if(null==i||!(n=e.getSeriesByIndex(i)))return{point:[]};var o=n.getData(),a=Us(o,t);if(null==a||a<0||Bt(a))return{point:[]};var s=o.getItemGraphicEl(a),l=n.coordinateSystem;if(n.getTooltipPosition)r=n.getTooltipPosition(a)||[];else if(l&&l.dataToPoint)if(t.isStacked){var u=l.getBaseAxis(),c=l.getOtherAxis(u),h=c.dim,d=u.dim,p="x"===h||"radius"===h?1:0,f=o.mapDimension(d),g=[];g[p]=o.get(f,a),g[1-p]=o.get(o.getCalculationInfo("stackResultDimension"),a),r=l.dataToPoint(g)||[]}else r=l.dataToPoint(o.getValues(It(l.dimensions,(function(t){return o.mapDimension(t)})),a))||[];else if(s){var v=s.getBoundingRect().clone();v.applyTransform(s.transform),r=[v.x+v.width/2,v.y+v.height/2]}return{point:r,el:s}}var rX=Ys();function iX(t,e,n){var r=t.currTrigger,i=[t.x,t.y],o=t,a=t.dispatchAction||Nt(n.dispatchAction,n),s=e.getComponent("axisPointer").coordSysAxesInfo;if(s){fX(i)&&(i=nX({seriesIndex:o.seriesIndex,dataIndex:o.dataIndex},e).point);var l=fX(i),u=o.axesInfo,c=s.axesInfo,h="leave"===r||fX(i),d={},p={},f={list:[],map:{}},g={showPointer:zt(sX,p),showTooltip:zt(lX,f)};Pt(s.coordSysMap,(function(t,e){var n=l||t.containPoint(i);Pt(s.coordSysAxesInfo[e],(function(t,e){var r=t.axis,o=dX(u,t);if(!h&&n&&(!u||o)){var a=o&&o.value;null!=a||l||(a=r.pointToData(i)),null!=a&&oX(t,a,g,!1,d)}}))}));var v={};return Pt(c,(function(t,e){var n=t.linkGroup;n&&!p[e]&&Pt(n.axesInfo,(function(e,r){var i=p[r];if(e!==t&&i){var o=i.value;n.mapper&&(o=t.axis.scale.parse(n.mapper(o,pX(e),pX(t)))),v[t.key]=o}}))})),Pt(v,(function(t,e){oX(c[e],t,g,!0,d)})),uX(p,c,d),cX(f,i,t,a),hX(c,a,n),d}}function oX(t,e,n,r,i){var o=t.axis;if(!o.scale.isBlank()&&o.containData(e))if(t.involveSeries){var a=aX(e,t),s=a.payloadBatch,l=a.snapToValue;s[0]&&null==i.seriesIndex&&Ot(i,s[0]),!r&&t.snap&&o.containData(l)&&null!=l&&(e=l),n.showPointer(t,e,s),n.showTooltip(t,a,l)}else n.showPointer(t,e)}function aX(t,e){var n=e.axis,r=n.dim,i=t,o=[],a=Number.MAX_VALUE,s=-1;return Pt(e.seriesModels,(function(e,l){var u,c,h=e.getData().mapDimensionsAll(r);if(e.getAxisTooltipData){var d=e.getAxisTooltipData(h,t,n);c=d.dataIndices,u=d.nestestValue}else{if(c=e.getData().indicesOfNearest(h[0],t,"category"===n.type?.5:null),!c.length)return;u=e.getData().get(h[0],c[0])}if(null!=u&&isFinite(u)){var p=t-u,f=Math.abs(p);f<=a&&((f<a||p>=0&&s<0)&&(a=f,s=p,i=u,o.length=0),Pt(c,(function(t){o.push({seriesIndex:e.seriesIndex,dataIndexInside:t,dataIndex:e.getData().getRawIndex(t)})})))}})),{payloadBatch:o,snapToValue:i}}function sX(t,e,n,r){t[e.key]={value:n,payloadBatch:r}}function lX(t,e,n,r){var i=n.payloadBatch,o=e.axis,a=o.model,s=e.axisPointerModel;if(e.triggerTooltip&&i.length){var l=e.coordSys.model,u=kE(l),c=t.map[u];c||(c=t.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},t.list.push(c)),c.dataByAxis.push({axisDim:o.dim,axisIndex:a.componentIndex,axisType:a.type,axisId:a.id,value:r,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:i.slice()})}}function uX(t,e,n){var r=n.axesInfo=[];Pt(e,(function(e,n){var i=e.axisPointerModel.option,o=t[n];o?(!e.useHandle&&(i.status="show"),i.value=o.value,i.seriesDataIndices=(o.payloadBatch||[]).slice()):!e.useHandle&&(i.status="hide"),"show"===i.status&&r.push({axisDim:e.axis.dim,axisIndex:e.axis.model.componentIndex,value:i.value})}))}function cX(t,e,n,r){if(!fX(e)&&t.list.length){var i=((t.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};r({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:n.tooltipOption,position:n.position,dataIndexInside:i.dataIndexInside,dataIndex:i.dataIndex,seriesIndex:i.seriesIndex,dataByCoordSys:t.list})}else r({type:"hideTip"})}function hX(t,e,n){var r=n.getZr(),i="axisPointerLastHighlights",o=rX(r)[i]||{},a=rX(r)[i]={};Pt(t,(function(t,e){var n=t.axisPointerModel.option;"show"===n.status&&t.triggerEmphasis&&Pt(n.seriesDataIndices,(function(t){var e=t.seriesIndex+" | "+t.dataIndex;a[e]=t}))}));var s=[],l=[];Pt(o,(function(t,e){!a[e]&&l.push(t)})),Pt(a,(function(t,e){!o[e]&&s.push(t)})),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 dX(t,e){for(var n=0;n<(t||[]).length;n++){var r=t[n];if(e.axis.dim===r.axisDim&&e.axis.model.componentIndex===r.axisIndex)return r}}function pX(t){var e=t.axis.model,n={},r=n.axisDim=t.axis.dim;return n.axisIndex=n[r+"AxisIndex"]=e.componentIndex,n.axisName=n[r+"AxisName"]=e.name,n.axisId=n[r+"AxisId"]=e.id,n}function fX(t){return!t||null==t[0]||isNaN(t[0])||null==t[1]||isNaN(t[1])}function gX(t){TE.registerAxisPointerClass("CartesianAxisPointer",jG),t.registerComponentModel(QG),t.registerComponentView(eX),t.registerPreprocessor((function(t){if(t){(!t.axisPointer||0===t.axisPointer.length)&&(t.axisPointer={});var e=t.axisPointer.link;e&&!Bt(e)&&(t.axisPointer.link=[e])}})),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,(function(t,e){t.getComponent("axisPointer").coordSysAxesInfo=vE(t,e)})),t.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},iX)}function vX(t){pS(WE),pS(gX)}var mX=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Q(e,t),e.prototype.makeElOption=function(t,e,n,r,i){var o=n.axis;"angle"===o.dim&&(this.animationThreshold=Math.PI/18);var a=o.polar,s=a.getOtherAxis(o),l=s.getExtent(),u=o.dataToCoord(e),c=r.get("type");if(c&&"none"!==c){var h=TG(r),d=bX[c](o,a,u,l);d.style=h,t.graphicKey=d.type,t.pointer=d}var p=r.get(["label","margin"]),f=yX(e,n,r,a,p);PG(t,n,r,i,f)},e}(MG);function yX(t,e,n,r,i){var o=e.axis,a=o.dataToCoord(t),s=r.getAngleAxis().getExtent()[0];s=s/180*Math.PI;var l,u,c,h=r.getRadiusAxis().getExtent();if("radius"===o.dim){var d=An();Pn(d,d,s),Tn(d,d,[r.cx,r.cy]),l=Vb([a,-i],d);var p=e.getModel("axisLabel").get("rotate")||0,f=gE.innerTextLayout(s,p*Math.PI/180,-1);u=f.textAlign,c=f.textVerticalAlign}else{var g=h[1];l=r.coordToPoint([g+i,a]);var v=r.cx,m=r.cy;u=Math.abs(l[0]-v)/g<.3?"center":l[0]>v?"left":"right",c=Math.abs(l[1]-m)/g<.3?"middle":l[1]>m?"top":"bottom"}return{position:l,align:u,verticalAlign:c}}var bX={line:function(t,e,n,r){return"angle"===t.dim?{type:"Line",shape:DG(e.coordToPoint([r[0],n]),e.coordToPoint([r[1],n]))}:{type:"Circle",shape:{cx:e.cx,cy:e.cy,r:n}}},shadow:function(t,e,n,r){var i=Math.max(1,t.getBandWidth()),o=Math.PI/180;return"angle"===t.dim?{type:"Sector",shape:NG(e.cx,e.cy,r[0],r[1],(-n-i/2)*o,(i/2-n)*o)}:{type:"Sector",shape:NG(e.cx,e.cy,n-i/2,n+i/2,0,2*Math.PI)}}},_X=mX,xX=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Q(e,t),e.prototype.findAxisModel=function(t){var e,n=this.ecModel;return n.eachComponent(t,(function(t){t.getCoordSysModel()===this&&(e=t)}),this),e},e.type="polar",e.dependencies=["radiusAxis","angleAxis"],e.defaultOption={z:0,center:["50%","50%"],radius:"80%"},e}(vf),wX=xX,OX=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Q(e,t),e.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",tl).models[0]},e.type="polarAxis",e}(vf);Mt(OX,Nk);var SX=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Q(e,t),e.type="angleAxis",e}(OX),AX=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Q(e,t),e.type="radiusAxis",e}(OX),kX=function(t){function e(e,n){return t.call(this,"radius",e,n)||this}return Q(e,t),e.prototype.pointToData=function(t,e){return this.polar.pointToData(t,e)["radius"===this.dim?0:1]},e}(kC);kX.prototype.dataToRadius=kC.prototype.dataToCoord,kX.prototype.radiusToData=kC.prototype.coordToData;var CX=kX,MX=Ys(),TX=function(t){function e(e,n){return t.call(this,"angle",e,n||[0,360])||this}return Q(e,t),e.prototype.pointToData=function(t,e){return this.polar.pointToData(t,e)["radius"===this.dim?0:1]},e.prototype.calculateCategoryInterval=function(){var t=this,e=t.getLabelModel(),n=t.scale,r=n.getExtent(),i=n.count();if(r[1]-r[0]<1)return 0;var o=r[0],a=t.dataToCoord(o+1)-t.dataToCoord(o),s=Math.abs(a),l=ga(null==o?"":o+"",e.getFont(),"center","top"),u=Math.max(l.height,7),c=u/s;isNaN(c)&&(c=1/0);var h=Math.max(0,Math.floor(c)),d=MX(t.model),p=d.lastAutoInterval,f=d.lastTickCount;return null!=p&&null!=f&&Math.abs(p-h)<=1&&Math.abs(f-i)<=1&&p>h?h=p:(d.lastTickCount=i,d.lastAutoInterval=h),h},e}(kC);TX.prototype.dataToAngle=kC.prototype.dataToCoord,TX.prototype.angleToData=kC.prototype.coordToData;var PX=TX,IX=["radius","angle"],$X=function(){function t(t){this.dimensions=IX,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new CX,this._angleAxis=new PX,this.axisPointerEnabled=!0,this.name=t||"",this._radiusAxis.polar=this._angleAxis.polar=this}return t.prototype.containPoint=function(t){var e=this.pointToCoord(t);return this._radiusAxis.contain(e[0])&&this._angleAxis.contain(e[1])},t.prototype.containData=function(t){return this._radiusAxis.containData(t[0])&&this._angleAxis.containData(t[1])},t.prototype.getAxis=function(t){var e="_"+t+"Axis";return this[e]},t.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},t.prototype.getAxesByScale=function(t){var e=[],n=this._angleAxis,r=this._radiusAxis;return n.scale.type===t&&e.push(n),r.scale.type===t&&e.push(r),e},t.prototype.getAngleAxis=function(){return this._angleAxis},t.prototype.getRadiusAxis=function(){return this._radiusAxis},t.prototype.getOtherAxis=function(t){var e=this._angleAxis;return t===e?this._radiusAxis:e},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},t.prototype.getTooltipAxes=function(t){var e=null!=t&&"auto"!==t?this.getAxis(t):this.getBaseAxis();return{baseAxes:[e],otherAxes:[this.getOtherAxis(e)]}},t.prototype.dataToPoint=function(t,e){return this.coordToPoint([this._radiusAxis.dataToRadius(t[0],e),this._angleAxis.dataToAngle(t[1],e)])},t.prototype.pointToData=function(t,e){var n=this.pointToCoord(t);return[this._radiusAxis.radiusToData(n[0],e),this._angleAxis.angleToData(n[1],e)]},t.prototype.pointToCoord=function(t){var e=t[0]-this.cx,n=t[1]-this.cy,r=this.getAngleAxis(),i=r.getExtent(),o=Math.min(i[0],i[1]),a=Math.max(i[0],i[1]);r.inverse?o=a-360:a=o+360;var s=Math.sqrt(e*e+n*n);e/=s,n/=s;var l=Math.atan2(-n,e)/Math.PI*180,u=l<o?1:-1;while(l<o||l>a)l+=360*u;return[s,l]},t.prototype.coordToPoint=function(t){var e=t[0],n=t[1]/180*Math.PI,r=Math.cos(n)*e+this.cx,i=-Math.sin(n)*e+this.cy;return[r,i]},t.prototype.getArea=function(){var t=this.getAngleAxis(),e=this.getRadiusAxis(),n=e.getExtent().slice();n[0]>n[1]&&n.reverse();var r=t.getExtent(),i=Math.PI/180;return{cx:this.cx,cy:this.cy,r0:n[0],r:n[1],startAngle:-r[0]*i,endAngle:-r[1]*i,clockwise:t.inverse,contain:function(t,e){var n=t-this.cx,r=e-this.cy,i=n*n+r*r-1e-4,o=this.r,a=this.r0;return i<=o*o&&i>=a*a}}},t.prototype.convertToPixel=function(t,e,n){var r=EX(e);return r===this?this.dataToPoint(n):null},t.prototype.convertFromPixel=function(t,e,n){var r=EX(e);return r===this?this.pointToData(n):null},t}();function EX(t){var e=t.seriesModel,n=t.polarModel;return n&&n.coordinateSystem||e&&e.coordinateSystem}var RX=$X;function DX(t,e,n){var r=e.get("center"),i=n.getWidth(),o=n.getHeight();t.cx=es(r[0],i),t.cy=es(r[1],o);var a=t.getRadiusAxis(),s=Math.min(i,o)/2,l=e.get("radius");null==l?l=[0,"100%"]:Bt(l)||(l=[0,l]);var u=[es(l[0],s),es(l[1],s)];a.inverse?a.setExtent(u[1],u[0]):a.setExtent(u[0],u[1])}function LX(t,e){var n=this,r=n.getAngleAxis(),i=n.getRadiusAxis();if(r.scale.setExtent(1/0,-1/0),i.scale.setExtent(1/0,-1/0),t.eachSeries((function(t){if(t.coordinateSystem===n){var e=t.getData();Pt(Dk(e,"radius"),(function(t){i.scale.unionExtentFromData(e,t)})),Pt(Dk(e,"angle"),(function(t){r.scale.unionExtentFromData(e,t)}))}})),kk(r.scale,r.model),kk(i.scale,i.model),"category"===r.type&&!r.onBand){var o=r.getExtent(),a=360/r.scale.count();r.inverse?o[1]+=a:o[1]-=a,r.setExtent(o[0],o[1])}}function NX(t){return"angleAxis"===t.mainType}function zX(t,e){var n;if(t.type=e.get("type"),t.scale=Ck(e),t.onBand=e.get("boundaryGap")&&"category"===t.type,t.inverse=e.get("inverse"),NX(e)){t.inverse=t.inverse!==e.get("clockwise");var r=e.get("startAngle"),i=null!==(n=e.get("endAngle"))&&void 0!==n?n:r+(t.inverse?-360:360);t.setExtent(r,i)}e.axis=t,t.model=e}var BX={dimensions:IX,create:function(t,e){var n=[];return t.eachComponent("polar",(function(t,r){var i=new RX(r+"");i.update=LX;var o=i.getRadiusAxis(),a=i.getAngleAxis(),s=t.findAxisModel("radiusAxis"),l=t.findAxisModel("angleAxis");zX(o,s),zX(a,l),DX(i,t,e),n.push(i),t.coordinateSystem=i,i.model=t})),t.eachSeries((function(t){if("polar"===t.get("coordinateSystem")){var e=t.getReferringComponents("polar",tl).models[0];0,t.coordinateSystem=e.coordinateSystem}})),n}},FX=BX,WX=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function jX(t,e,n){e[1]>e[0]&&(e=e.slice().reverse());var r=t.coordToPoint([e[0],n]),i=t.coordToPoint([e[1],n]);return{x1:r[0],y1:r[1],x2:i[0],y2:i[1]}}function VX(t){var e=t.getRadiusAxis();return e.inverse?0:1}function QX(t){var e=t[0],n=t[t.length-1];e&&n&&Math.abs(Math.abs(e.coord-n.coord)-360)<1e-4&&t.pop()}var HX=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.axisPointerClass="PolarAxisPointer",n}return Q(e,t),e.prototype.render=function(t,e){if(this.group.removeAll(),t.get("show")){var n=t.axis,r=n.polar,i=r.getRadiusAxis().getExtent(),o=n.getTicksCoords(),a=n.getMinorTicksCoords(),s=It(n.getViewLabels(),(function(t){t=_t(t);var e=n.scale,r="ordinal"===e.type?e.getRawOrdinalNumber(t.tickValue):t.tickValue;return t.coord=n.dataToCoord(r),t}));QX(s),QX(o),Pt(WX,(function(e){!t.get([e,"show"])||n.scale.isBlank()&&"axisLine"!==e||ZX[e](this.group,t,r,o,a,i,s)}),this)}},e.type="angleAxis",e}(TE),ZX={axisLine:function(t,e,n,r,i,o){var a,s=e.getModel(["axisLine","lineStyle"]),u=n.getAngleAxis(),c=Math.PI/180,h=u.getExtent(),d=VX(n),p=d?0:1,f=360===Math.abs(h[1]-h[0])?"Circle":"Arc";a=0===o[p]?new l[f]({shape:{cx:n.cx,cy:n.cy,r:o[d],startAngle:-h[0]*c,endAngle:-h[1]*c,clockwise:u.inverse},style:s.getLineStyle(),z2:1,silent:!0}):new jy({shape:{cx:n.cx,cy:n.cy,r:o[d],r0:o[p]},style:s.getLineStyle(),z2:1,silent:!0}),a.style.fill=null,t.add(a)},axisTick:function(t,e,n,r,i,o){var a=e.getModel("axisTick"),s=(a.get("inside")?-1:1)*a.get("length"),l=o[VX(n)],u=It(r,(function(t){return new tb({shape:jX(n,[l,l+s],t.coord)})}));t.add(Nb(u,{style:St(a.getModel("lineStyle").getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])})}))},minorTick:function(t,e,n,r,i,o){if(i.length){for(var a=e.getModel("axisTick"),s=e.getModel("minorTick"),l=(a.get("inside")?-1:1)*s.get("length"),u=o[VX(n)],c=[],h=0;h<i.length;h++)for(var d=0;d<i[h].length;d++)c.push(new tb({shape:jX(n,[u,u+l],i[h][d].coord)}));t.add(Nb(c,{style:St(s.getModel("lineStyle").getLineStyle(),St(a.getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])}))}))}},axisLabel:function(t,e,n,r,i,o,a){var s=e.getCategories(!0),l=e.getModel("axisLabel"),u=l.get("margin"),c=e.get("triggerEvent");Pt(a,(function(r,i){var a=l,h=r.tickValue,d=o[VX(n)],p=n.coordToPoint([d+u,r.coord]),f=n.cx,g=n.cy,v=Math.abs(p[0]-f)/d<.3?"center":p[0]>f?"left":"right",m=Math.abs(p[1]-g)/d<.3?"middle":p[1]>g?"top":"bottom";if(s&&s[h]){var y=s[h];Qt(y)&&y.textStyle&&(a=new Qd(y.textStyle,l,l.ecModel))}var b=new Vc({silent:gE.isLabelSilent(e),style:_d(a,{x:p[0],y:p[1],fill:a.getTextColor()||e.get(["axisLine","lineStyle","color"]),text:r.formattedLabel,align:v,verticalAlign:m})});if(t.add(b),c){var _=gE.makeAxisEventDataBase(e);_.targetType="axisLabel",_.value=r.rawLabel,Qc(b).eventData=_}}),this)},splitLine:function(t,e,n,r,i,o){var a=e.getModel("splitLine"),s=a.getModel("lineStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var c=[],h=0;h<r.length;h++){var d=u++%l.length;c[d]=c[d]||[],c[d].push(new tb({shape:jX(n,o,r[h].coord)}))}for(h=0;h<c.length;h++)t.add(Nb(c[h],{style:St({stroke:l[h%l.length]},s.getLineStyle()),silent:!0,z:e.get("z")}))},minorSplitLine:function(t,e,n,r,i,o){if(i.length){for(var a=e.getModel("minorSplitLine"),s=a.getModel("lineStyle"),l=[],u=0;u<i.length;u++)for(var c=0;c<i[u].length;c++)l.push(new tb({shape:jX(n,o,i[u][c].coord)}));t.add(Nb(l,{style:s.getLineStyle(),silent:!0,z:e.get("z")}))}},splitArea:function(t,e,n,r,i,o){if(r.length){var a=e.getModel("splitArea"),s=a.getModel("areaStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var c=[],h=Math.PI/180,d=-r[0].coord*h,p=Math.min(o[0],o[1]),f=Math.max(o[0],o[1]),g=e.get("clockwise"),v=1,m=r.length;v<=m;v++){var y=v===m?r[0].coord:r[v].coord,b=u++%l.length;c[b]=c[b]||[],c[b].push(new By({shape:{cx:n.cx,cy:n.cy,r0:p,r:f,startAngle:d,endAngle:-y*h,clockwise:g},silent:!0})),d=-y*h}for(v=0;v<c.length;v++)t.add(Nb(c[v],{style:St({fill:l[v%l.length]},s.getAreaStyle()),silent:!0}))}}},GX=HX,XX=["axisLine","axisTickLabel","axisName"],UX=["splitLine","splitArea","minorSplitLine"],YX=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.axisPointerClass="PolarAxisPointer",n}return Q(e,t),e.prototype.render=function(t,e){if(this.group.removeAll(),t.get("show")){var n=this._axisGroup,r=this._axisGroup=new La;this.group.add(r);var i=t.axis,o=i.polar,a=o.getAngleAxis(),s=i.getTicksCoords(),l=i.getMinorTicksCoords(),u=a.getExtent()[0],c=i.getExtent(),h=KX(o,t,u),d=new gE(t,h);Pt(XX,d.add,d),r.add(d.getGroup()),Gb(n,r,t),Pt(UX,(function(e){t.get([e,"show"])&&!i.scale.isBlank()&&qX[e](this.group,t,o,u,c,s,l)}),this)}},e.type="radiusAxis",e}(TE),qX={splitLine:function(t,e,n,r,i,o){var a=e.getModel("splitLine"),s=a.getModel("lineStyle"),u=s.get("color"),c=0,h=n.getAngleAxis(),d=Math.PI/180,p=h.getExtent(),f=360===Math.abs(p[1]-p[0])?"Circle":"Arc";u=u instanceof Array?u:[u];for(var g=[],v=0;v<o.length;v++){var m=c++%u.length;g[m]=g[m]||[],g[m].push(new l[f]({shape:{cx:n.cx,cy:n.cy,r:Math.max(o[v].coord,0),startAngle:-p[0]*d,endAngle:-p[1]*d,clockwise:h.inverse}}))}for(v=0;v<g.length;v++)t.add(Nb(g[v],{style:St({stroke:u[v%u.length],fill:null},s.getLineStyle()),silent:!0}))},minorSplitLine:function(t,e,n,r,i,o,a){if(a.length){for(var s=e.getModel("minorSplitLine"),l=s.getModel("lineStyle"),u=[],c=0;c<a.length;c++)for(var h=0;h<a[c].length;h++)u.push(new yy({shape:{cx:n.cx,cy:n.cy,r:a[c][h].coord}}));t.add(Nb(u,{style:St({fill:null},l.getLineStyle()),silent:!0}))}},splitArea:function(t,e,n,r,i,o){if(o.length){var a=e.getModel("splitArea"),s=a.getModel("areaStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var c=[],h=o[0].coord,d=1;d<o.length;d++){var p=u++%l.length;c[p]=c[p]||[],c[p].push(new By({shape:{cx:n.cx,cy:n.cy,r0:h,r:o[d].coord,startAngle:0,endAngle:2*Math.PI},silent:!0})),h=o[d].coord}for(d=0;d<c.length;d++)t.add(Nb(c[d],{style:St({fill:l[d%l.length]},s.getAreaStyle()),silent:!0}))}}};function KX(t,e,n){return{position:[t.cx,t.cy],rotation:n/180*Math.PI,labelDirection:-1,tickDirection:-1,nameDirection:1,labelRotate:e.getModel("axisLabel").get("rotate"),z2:1}}var JX=YX;function tU(t){return t.get("stack")||"__ec_stack_"+t.seriesIndex}function eU(t,e){return e.dim+t.model.componentIndex}function nU(t,e,n){var r={},i=rU(Et(e.getSeriesByType(t),(function(t){return!e.isSeriesFiltered(t)&&t.coordinateSystem&&"polar"===t.coordinateSystem.type})));e.eachSeriesByType(t,(function(t){if("polar"===t.coordinateSystem.type){var e=t.getData(),n=t.coordinateSystem,o=n.getBaseAxis(),a=eU(n,o),s=tU(t),l=i[a][s],u=l.offset,c=l.width,h=n.getOtherAxis(o),d=t.coordinateSystem.cx,p=t.coordinateSystem.cy,f=t.get("barMinHeight")||0,g=t.get("barMinAngle")||0;r[s]=r[s]||[];for(var v=e.mapDimension(h.dim),m=e.mapDimension(o.dim),y=oA(e,v),b="radius"!==o.dim||!t.get("roundCap",!0),_=h.model,x=_.get("startValue"),w=h.dataToCoord(x||0),O=0,S=e.count();O<S;O++){var A=e.get(v,O),k=e.get(m,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"===h.dim){var E=h.dataToCoord(A)-w,R=o.dataToCoord(k);Math.abs(E)<f&&(E=(E<0?-1:1)*f),T=M,P=M+E,I=R-u,$=I-c,y&&(r[s][k][C]=P)}else{var D=h.dataToCoord(A,b)-w,L=o.dataToCoord(k);Math.abs(D)<g&&(D=(D<0?-1:1)*g),T=L+u,P=T+c,I=M,$=M+D,y&&(r[s][k][C]=$)}e.setItemLayout(O,{cx:d,cy:p,r0:T,r:P,startAngle:-I*Math.PI/180,endAngle:-$*Math.PI/180,clockwise:I>=$})}}}))}function rU(t){var e={};Pt(t,(function(t,n){var r=t.getData(),i=t.coordinateSystem,o=i.getBaseAxis(),a=eU(i,o),s=o.getExtent(),l="category"===o.type?o.getBandWidth():Math.abs(s[1]-s[0])/r.count(),u=e[a]||{bandWidth:l,remainedWidth:l,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},c=u.stacks;e[a]=u;var h=tU(t);c[h]||u.autoWidthCount++,c[h]=c[h]||{width:0,maxWidth:0};var d=es(t.get("barWidth"),l),p=es(t.get("barMaxWidth"),l),f=t.get("barGap"),g=t.get("barCategoryGap");d&&!c[h].width&&(d=Math.min(u.remainedWidth,d),c[h].width=d,u.remainedWidth-=d),p&&(c[h].maxWidth=p),null!=f&&(u.gap=f),null!=g&&(u.categoryGap=g)}));var n={};return Pt(e,(function(t,e){n[e]={};var r=t.stacks,i=t.bandWidth,o=es(t.categoryGap,i),a=es(t.gap,1),s=t.remainedWidth,l=t.autoWidthCount,u=(s-o)/(l+(l-1)*a);u=Math.max(u,0),Pt(r,(function(t,e){var n=t.maxWidth;n&&n<u&&(n=Math.min(n,s),t.width&&(n=Math.min(n,t.width)),s-=n,t.width=n,l--)})),u=(s-o)/(l+(l-1)*a),u=Math.max(u,0);var c,h=0;Pt(r,(function(t,e){t.width||(t.width=u),c=t,h+=t.width*(1+a)})),c&&(h-=c.width*a);var d=-h/2;Pt(r,(function(t,r){n[e][r]=n[e][r]||{offset:d,width:t.width},d+=t.width*(1+a)}))})),n}var iU=nU,oU={startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:0}},aU={splitNumber:5},sU=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Q(e,t),e.type="polar",e}(Hm);function lU(t){pS(gX),TE.registerAxisPointerClass("PolarAxisPointer",_X),t.registerCoordinateSystem("polar",FX),t.registerComponentModel(wX),t.registerComponentView(sU),L$(t,"angle",SX,oU),L$(t,"radius",AX,aU),t.registerComponentView(GX),t.registerComponentView(JX),t.registerLayout(zt(iU,"bar"))}function uU(t,e){e=e||{};var n=t.coordinateSystem,r=t.axis,i={},o=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]}};i.position=["vertical"===a?u.vertical[o]:l[0],"horizontal"===a?u.horizontal[o]:l[3]];var c={horizontal:0,vertical:1};i.rotation=Math.PI/2*c[a];var h={top:-1,bottom:1,right:1,left:-1};i.labelDirection=i.tickDirection=i.nameDirection=h[o],t.get(["axisTick","inside"])&&(i.tickDirection=-i.tickDirection),Kt(e.labelInside,t.get(["axisLabel","inside"]))&&(i.labelDirection=-i.labelDirection);var d=e.rotate;return null==d&&(d=t.get(["axisLabel","rotate"])),i.labelRotation="top"===o?-d:d,i.z2=1,i}var cU=["axisLine","axisTickLabel","axisName"],hU=["splitArea","splitLine"],dU=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.axisPointerClass="SingleAxisPointer",n}return Q(e,t),e.prototype.render=function(e,n,r,i){var o=this.group;o.removeAll();var a=this._axisGroup;this._axisGroup=new La;var s=uU(e),l=new gE(e,s);Pt(cU,l.add,l),o.add(this._axisGroup),o.add(l.getGroup()),Pt(hU,(function(t){e.get([t,"show"])&&pU[t](this,this.group,this._axisGroup,e)}),this),Gb(a,this._axisGroup,e),t.prototype.render.call(this,e,n,r,i)},e.prototype.remove=function(){$E(this)},e.type="singleAxis",e}(TE),pU={splitLine:function(t,e,n,r){var i=r.axis;if(!i.scale.isBlank()){var o=r.getModel("splitLine"),a=o.getModel("lineStyle"),s=a.get("color");s=s instanceof Array?s:[s];for(var l=a.get("width"),u=r.coordinateSystem.getRect(),c=i.isHorizontal(),h=[],d=0,p=i.getTicksCoords({tickModel:o}),f=[],g=[],v=0;v<p.length;++v){var m=i.toGlobalCoord(p[v].coord);c?(f[0]=m,f[1]=u.y,g[0]=m,g[1]=u.y+u.height):(f[0]=u.x,f[1]=m,g[0]=u.x+u.width,g[1]=m);var y=new tb({shape:{x1:f[0],y1:f[1],x2:g[0],y2:g[1]},silent:!0});Bb(y.shape,l);var b=d++%s.length;h[b]=h[b]||[],h[b].push(y)}var _=a.getLineStyle(["color"]);for(v=0;v<h.length;++v)e.add(Nb(h[v],{style:St({stroke:s[v%s.length]},_),silent:!0}))}},splitArea:function(t,e,n,r){IE(t,n,r,r)}},fU=dU,gU=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Q(e,t),e.prototype.getCoordSysModel=function(){return this},e.type="singleAxis",e.layoutMode="box",e.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}}},e}(vf);Mt(gU,Nk.prototype);var vU=gU,mU=function(t){function e(e,n,r,i,o){var a=t.call(this,e,n,r)||this;return a.type=i||"value",a.position=o||"bottom",a}return Q(e,t),e.prototype.isHorizontal=function(){var t=this.position;return"top"===t||"bottom"===t},e.prototype.pointToData=function(t,e){return this.coordinateSystem.pointToData(t)[0]},e}(kC),yU=mU,bU=["single"],_U=function(){function t(t,e,n){this.type="single",this.dimension="single",this.dimensions=bU,this.axisPointerEnabled=!0,this.model=t,this._init(t,e,n)}return t.prototype._init=function(t,e,n){var r=this.dimension,i=new yU(r,Ck(t),[0,0],t.get("type"),t.get("position")),o="category"===i.type;i.onBand=o&&t.get("boundaryGap"),i.inverse=t.get("inverse"),i.orient=t.get("orient"),t.axis=i,i.model=t,i.coordinateSystem=this,this._axis=i},t.prototype.update=function(t,e){t.eachSeries((function(t){if(t.coordinateSystem===this){var e=t.getData();Pt(e.mapDimensionsAll(this.dimension),(function(t){this._axis.scale.unionExtentFromData(e,t)}),this),kk(this._axis.scale,this._axis.model)}}),this)},t.prototype.resize=function(t,e){this._rect=af({left:t.get("left"),top:t.get("top"),right:t.get("right"),bottom:t.get("bottom"),width:t.get("width"),height:t.get("height")},{width:e.getWidth(),height:e.getHeight()}),this._adjustAxis()},t.prototype.getRect=function(){return this._rect},t.prototype._adjustAxis=function(){var t=this._rect,e=this._axis,n=e.isHorizontal(),r=n?[0,t.width]:[0,t.height],i=e.inverse?1:0;e.setExtent(r[i],r[1-i]),this._updateAxisTransform(e,n?t.x:t.y)},t.prototype._updateAxisTransform=function(t,e){var n=t.getExtent(),r=n[0]+n[1],i=t.isHorizontal();t.toGlobalCoord=i?function(t){return t+e}:function(t){return r-t+e},t.toLocalCoord=i?function(t){return t-e}:function(t){return r-t+e}},t.prototype.getAxis=function(){return this._axis},t.prototype.getBaseAxis=function(){return this._axis},t.prototype.getAxes=function(){return[this._axis]},t.prototype.getTooltipAxes=function(){return{baseAxes:[this.getAxis()],otherAxes:[]}},t.prototype.containPoint=function(t){var e=this.getRect(),n=this.getAxis(),r=n.orient;return"horizontal"===r?n.contain(n.toLocalCoord(t[0]))&&t[1]>=e.y&&t[1]<=e.y+e.height:n.contain(n.toLocalCoord(t[1]))&&t[0]>=e.y&&t[0]<=e.y+e.height},t.prototype.pointToData=function(t){var e=this.getAxis();return[e.coordToData(e.toLocalCoord(t["horizontal"===e.orient?0:1]))]},t.prototype.dataToPoint=function(t){var e=this.getAxis(),n=this.getRect(),r=[],i="horizontal"===e.orient?0:1;return t instanceof Array&&(t=t[0]),r[i]=e.toGlobalCoord(e.dataToCoord(+t)),r[1-i]=0===i?n.y+n.height/2:n.x+n.width/2,r},t.prototype.convertToPixel=function(t,e,n){var r=xU(e);return r===this?this.dataToPoint(n):null},t.prototype.convertFromPixel=function(t,e,n){var r=xU(e);return r===this?this.pointToData(n):null},t}();function xU(t){var e=t.seriesModel,n=t.singleAxisModel;return n&&n.coordinateSystem||e&&e.coordinateSystem}var wU=_U;function OU(t,e){var n=[];return t.eachComponent("singleAxis",(function(r,i){var o=new wU(r,t,e);o.name="single_"+i,o.resize(r,e),r.coordinateSystem=o,n.push(o)})),t.eachSeries((function(t){if("singleAxis"===t.get("coordinateSystem")){var e=t.getReferringComponents("singleAxis",tl).models[0];t.coordinateSystem=e&&e.coordinateSystem}})),n}var SU={create:OU,dimensions:bU},AU=SU,kU=["x","y"],CU=["width","height"],MU=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Q(e,t),e.prototype.makeElOption=function(t,e,n,r,i){var o=n.axis,a=o.coordinateSystem,s=IU(a,1-PU(o)),l=a.dataToPoint(e)[0],u=r.get("type");if(u&&"none"!==u){var c=TG(r),h=TU[u](o,l,s);h.style=c,t.graphicKey=h.type,t.pointer=h}var d=uU(n);RG(e,t,d,n,r,i)},e.prototype.getHandleTransform=function(t,e,n){var r=uU(e,{labelInside:!1});r.labelMargin=n.get(["handle","margin"]);var i=EG(e.axis,t,r);return{x:i[0],y:i[1],rotation:r.rotation+(r.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,e,n,r){var i=n.axis,o=i.coordinateSystem,a=PU(i),s=IU(o,a),l=[t.x,t.y];l[a]+=e[a],l[a]=Math.min(s[1],l[a]),l[a]=Math.max(s[0],l[a]);var u=IU(o,1-a),c=(u[1]+u[0])/2,h=[c,c];return h[a]=l[a],{x:l[0],y:l[1],rotation:t.rotation,cursorPoint:h,tooltipOption:{verticalAlign:"middle"}}},e}(MG),TU={line:function(t,e,n){var r=DG([e,n[0]],[e,n[1]],PU(t));return{type:"Line",subPixelOptimize:!0,shape:r}},shadow:function(t,e,n){var r=t.getBandWidth(),i=n[1]-n[0];return{type:"Rect",shape:LG([e-r/2,n[0]],[r,i],PU(t))}}};function PU(t){return t.isHorizontal()?0:1}function IU(t,e){var n=t.getRect();return[n[kU[e]],n[kU[e]]+n[CU[e]]]}var $U=MU,EU=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Q(e,t),e.type="single",e}(Hm);function RU(t){pS(gX),TE.registerAxisPointerClass("SingleAxisPointer",$U),t.registerComponentView(EU),t.registerComponentView(fU),t.registerComponentModel(vU),L$(t,"single",vU,vU.defaultOption),t.registerCoordinateSystem("single",AU)}var DU=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Q(e,t),e.prototype.init=function(e,n,r){var i=hf(e);t.prototype.init.apply(this,arguments),LU(e,i)},e.prototype.mergeOption=function(e){t.prototype.mergeOption.apply(this,arguments),LU(this.option,e)},e.prototype.getCellSize=function(){return this.option.cellSize},e.type="calendar",e.defaultOption={z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:"#000",width:1,type:"solid"}},itemStyle:{color:"#fff",borderWidth:1,borderColor:"#ccc"},dayLabel:{show:!0,firstDay:0,position:"start",margin:"50%",color:"#000"},monthLabel:{show:!0,position:"start",margin:5,align:"center",formatter:null,color:"#000"},yearLabel:{show:!0,position:null,margin:30,formatter:null,color:"#ccc",fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},e}(vf);function LU(t,e){var n,r=t.cellSize;n=Bt(r)?r:t.cellSize=[r,r],1===n.length&&(n[1]=n[0]);var i=It([0,1],(function(t){return lf(e,t)&&(n[t]="auto"),null!=n[t]&&"auto"!==n[t]}));cf(t,e,{type:"box",ignoreSize:i})}var NU=DU,zU=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Q(e,t),e.prototype.render=function(t,e,n){var r=this.group;r.removeAll();var i=t.coordinateSystem,o=i.getRangeInfo(),a=i.getOrient(),s=e.getLocaleModel();this._renderDayRect(t,o,r),this._renderLines(t,o,a,r),this._renderYearText(t,o,a,r),this._renderMonthText(t,s,a,r),this._renderWeekText(t,s,o,a,r)},e.prototype._renderDayRect=function(t,e,n){for(var r=t.coordinateSystem,i=t.getModel("itemStyle").getItemStyle(),o=r.getCellWidth(),a=r.getCellHeight(),s=e.start.time;s<=e.end.time;s=r.getNextNDay(s,1).time){var l=r.dataToRect([s],!1).tl,u=new Ac({shape:{x:l[0],y:l[1],width:o,height:a},cursor:"default",style:i});n.add(u)}},e.prototype._renderLines=function(t,e,n,r){var i=this,o=t.coordinateSystem,a=t.getModel(["splitLine","lineStyle"]).getLineStyle(),s=t.get(["splitLine","show"]),l=a.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var u=e.start,c=0;u.time<=e.end.time;c++){d(u.formatedDate),0===c&&(u=o.getDateInfo(e.start.y+"-"+e.start.m));var h=u.date;h.setMonth(h.getMonth()+1),u=o.getDateInfo(h)}function d(e){i._firstDayOfMonth.push(o.getDateInfo(e)),i._firstDayPoints.push(o.dataToRect([e],!1).tl);var l=i._getLinePointsOfOneWeek(t,e,n);i._tlpoints.push(l[0]),i._blpoints.push(l[l.length-1]),s&&i._drawSplitline(l,a,r)}d(o.getNextNDay(e.end.time,1).formatedDate),s&&this._drawSplitline(i._getEdgesPoints(i._tlpoints,l,n),a,r),s&&this._drawSplitline(i._getEdgesPoints(i._blpoints,l,n),a,r)},e.prototype._getEdgesPoints=function(t,e,n){var r=[t[0].slice(),t[t.length-1].slice()],i="horizontal"===n?0:1;return r[0][i]=r[0][i]-e/2,r[1][i]=r[1][i]+e/2,r},e.prototype._drawSplitline=function(t,e,n){var r=new Yy({z2:20,shape:{points:t},style:e});n.add(r)},e.prototype._getLinePointsOfOneWeek=function(t,e,n){for(var r=t.coordinateSystem,i=r.getDateInfo(e),o=[],a=0;a<7;a++){var s=r.getNextNDay(i.time,a),l=r.dataToRect([s.time],!1);o[2*s.day]=l.tl,o[2*s.day+1]=l["horizontal"===n?"bl":"tr"]}return o},e.prototype._formatterLabel=function(t,e){return Wt(t)&&t?Gp(t,e):Ft(t)?t(e):e.nameMap},e.prototype._yearTextPositionControl=function(t,e,n,r,i){var o=e[0],a=e[1],s=["center","bottom"];"bottom"===r?(a+=i,s=["center","top"]):"left"===r?o-=i:"right"===r?(o+=i,s=["center","top"]):a-=i;var l=0;return"left"!==r&&"right"!==r||(l=Math.PI/2),{rotation:l,x:o,y:a,style:{align:s[0],verticalAlign:s[1]}}},e.prototype._renderYearText=function(t,e,n,r){var i=t.getModel("yearLabel");if(i.get("show")){var o=i.get("margin"),a=i.get("position");a||(a="horizontal"!==n?"top":"left");var s=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],l=(s[0][0]+s[1][0])/2,u=(s[0][1]+s[1][1])/2,c="horizontal"===n?0:1,h={top:[l,s[c][1]],bottom:[l,s[1-c][1]],left:[s[1-c][0],u],right:[s[c][0],u]},d=e.start.y;+e.end.y>+e.start.y&&(d=d+"-"+e.end.y);var p=i.get("formatter"),f={start:e.start.y,end:e.end.y,nameMap:d},g=this._formatterLabel(p,f),v=new Vc({z2:30,style:_d(i,{text:g})});v.attr(this._yearTextPositionControl(v,h[a],n,a,o)),r.add(v)}},e.prototype._monthTextPositionControl=function(t,e,n,r,i){var o="left",a="top",s=t[0],l=t[1];return"horizontal"===n?(l+=i,e&&(o="center"),"start"===r&&(a="bottom")):(s+=i,e&&(a="middle"),"start"===r&&(o="right")),{x:s,y:l,align:o,verticalAlign:a}},e.prototype._renderMonthText=function(t,e,n,r){var i=t.getModel("monthLabel");if(i.get("show")){var o=i.get("nameMap"),a=i.get("margin"),s=i.get("position"),l=i.get("align"),u=[this._tlpoints,this._blpoints];o&&!Wt(o)||(o&&(e=ap(o)||e),o=e.get(["time","monthAbbr"])||[]);var c="start"===s?0:1,h="horizontal"===n?0:1;a="start"===s?-a:a;for(var d="center"===l,p=0;p<u[c].length-1;p++){var f=u[c][p].slice(),g=this._firstDayOfMonth[p];if(d){var v=this._firstDayPoints[p];f[h]=(v[h]+u[0][p+1][h])/2}var m=i.get("formatter"),y=o[+g.m-1],b={yyyy:g.y,yy:(g.y+"").slice(2),MM:g.m,M:+g.m,nameMap:y},_=this._formatterLabel(m,b),x=new Vc({z2:30,style:Ot(_d(i,{text:_}),this._monthTextPositionControl(f,d,n,s,a))});r.add(x)}}},e.prototype._weekTextPositionControl=function(t,e,n,r,i){var o="center",a="middle",s=t[0],l=t[1],u="start"===n;return"horizontal"===e?(s=s+r+(u?1:-1)*i[0]/2,o=u?"right":"left"):(l=l+r+(u?1:-1)*i[1]/2,a=u?"bottom":"top"),{x:s,y:l,align:o,verticalAlign:a}},e.prototype._renderWeekText=function(t,e,n,r,i){var o=t.getModel("dayLabel");if(o.get("show")){var a=t.coordinateSystem,s=o.get("position"),l=o.get("nameMap"),u=o.get("margin"),c=a.getFirstDayOfWeek();if(!l||Wt(l)){l&&(e=ap(l)||e);var h=e.get(["time","dayOfWeekShort"]);l=h||It(e.get(["time","dayOfWeekAbbr"]),(function(t){return t[0]}))}var d=a.getNextNDay(n.end.time,7-n.lweek).time,p=[a.getCellWidth(),a.getCellHeight()];u=es(u,Math.min(p[1],p[0])),"start"===s&&(d=a.getNextNDay(n.start.time,-(7+n.fweek)).time,u=-u);for(var f=0;f<7;f++){var g=a.getNextNDay(d,f),v=a.dataToRect([g.time],!1).center,m=f;m=Math.abs((f+c)%7);var y=new Vc({z2:30,style:Ot(_d(o,{text:l[m]}),this._weekTextPositionControl(v,r,s,u,p))});i.add(y)}}},e.type="calendar",e}(Hm),BU=zU,FU=864e5,WU=function(){function t(e,n,r){this.type="calendar",this.dimensions=t.dimensions,this.getDimensionsInfo=t.getDimensionsInfo,this._model=e}return t.getDimensionsInfo=function(){return[{name:"time",type:"time"},"value"]},t.prototype.getRangeInfo=function(){return this._rangeInfo},t.prototype.getModel=function(){return this._model},t.prototype.getRect=function(){return this._rect},t.prototype.getCellWidth=function(){return this._sw},t.prototype.getCellHeight=function(){return this._sh},t.prototype.getOrient=function(){return this._orient},t.prototype.getFirstDayOfWeek=function(){return this._firstDayOfWeek},t.prototype.getDateInfo=function(t){t=fs(t);var e=t.getFullYear(),n=t.getMonth()+1,r=n<10?"0"+n:""+n,i=t.getDate(),o=i<10?"0"+i:""+i,a=t.getDay();return a=Math.abs((a+7-this.getFirstDayOfWeek())%7),{y:e+"",m:r,d:o,day:a,time:t.getTime(),formatedDate:e+"-"+r+"-"+o,date:t}},t.prototype.getNextNDay=function(t,e){return e=e||0,0===e||(t=new Date(this.getDateInfo(t).time),t.setDate(t.getDate()+e)),this.getDateInfo(t)},t.prototype.update=function(t,e){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"],i=this._model.getCellSize().slice(),o=this._model.getBoxLayoutParams(),a="horizontal"===this._orient?[n,7]:[7,n];Pt([0,1],(function(t){u(i,t)&&(o[r[t]]=i[t]*a[t])}));var s={width:e.getWidth(),height:e.getHeight()},l=this._rect=af(o,s);function u(t,e){return null!=t[e]&&"auto"!==t[e]}Pt([0,1],(function(t){u(i,t)||(i[t]=l[r[t]]/a[t])})),this._sw=i[0],this._sh=i[1]},t.prototype.dataToPoint=function(t,e){Bt(t)&&(t=t[0]),null==e&&(e=!0);var n=this.getDateInfo(t),r=this._rangeInfo,i=n.formatedDate;if(e&&!(n.time>=r.start.time&&n.time<r.end.time+FU))return[NaN,NaN];var o=n.day,a=this._getRangeInfo([r.start.time,i]).nthWeek;return"vertical"===this._orient?[this._rect.x+o*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+o*this._sh+this._sh/2]},t.prototype.pointToData=function(t){var e=this.pointToDate(t);return e&&e.time},t.prototype.dataToRect=function(t,e){var n=this.dataToPoint(t,e);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]}},t.prototype.pointToDate=function(t){var e=Math.floor((t[0]-this._rect.x)/this._sw)+1,n=Math.floor((t[1]-this._rect.y)/this._sh)+1,r=this._rangeInfo.range;return"vertical"===this._orient?this._getDateByWeeksAndDay(n,e-1,r):this._getDateByWeeksAndDay(e,n-1,r)},t.prototype.convertToPixel=function(t,e,n){var r=jU(e);return r===this?r.dataToPoint(n):null},t.prototype.convertFromPixel=function(t,e,n){var r=jU(e);return r===this?r.pointToData(n):null},t.prototype.containPoint=function(t){return console.warn("Not implemented."),!1},t.prototype._initRangeOption=function(){var t,e=this._model.get("range");if(Bt(e)&&1===e.length&&(e=e[0]),Bt(e))t=e;else{var n=e.toString();if(/^\d{4}$/.test(n)&&(t=[n+"-01-01",n+"-12-31"]),/^\d{4}[\/|-]\d{1,2}$/.test(n)){var r=this.getDateInfo(n),i=r.date;i.setMonth(i.getMonth()+1);var o=this.getNextNDay(i,-1);t=[r.formatedDate,o.formatedDate]}/^\d{4}[\/|-]\d{1,2}[\/|-]\d{1,2}$/.test(n)&&(t=[n,n])}if(!t)return e;var a=this._getRangeInfo(t);return a.start.time>a.end.time&&t.reverse(),t},t.prototype._getRangeInfo=function(t){var e,n=[this.getDateInfo(t[0]),this.getDateInfo(t[1])];n[0].time>n[1].time&&(e=!0,n.reverse());var r=Math.floor(n[1].time/FU)-Math.floor(n[0].time/FU)+1,i=new Date(n[0].time),o=i.getDate(),a=n[1].date.getDate();i.setDate(o+r-1);var s=i.getDate();if(s!==a){var l=i.getTime()-n[1].time>0?1:-1;while((s=i.getDate())!==a&&(i.getTime()-n[1].time)*l>0)r-=l,i.setDate(s-l)}var u=Math.floor((r+n[0].day+6)/7),c=e?1-u:u-1;return e&&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}},t.prototype._getDateByWeeksAndDay=function(t,e,n){var r=this._getRangeInfo(n);if(t>r.weeks||0===t&&e<r.fweek||t===r.weeks&&e>r.lweek)return null;var i=7*(t-1)-r.fweek+e,o=new Date(r.start.time);return o.setDate(+r.start.d+i),this.getDateInfo(o)},t.create=function(e,n){var r=[];return e.eachComponent("calendar",(function(i){var o=new t(i,e,n);r.push(o),i.coordinateSystem=o})),e.eachSeries((function(t){"calendar"===t.get("coordinateSystem")&&(t.coordinateSystem=r[t.get("calendarIndex")||0])})),r},t.dimensions=["time","value"],t}();function jU(t){var e=t.calendarModel,n=t.seriesModel,r=e?e.coordinateSystem:n?n.coordinateSystem:null;return r}var VU=WU;function QU(t){t.registerComponentModel(NU),t.registerComponentView(BU),t.registerCoordinateSystem("calendar",VU)}function HU(t,e){var n=t.existing;if(e.id=t.keyInfo.id,!e.type&&n&&(e.type=n.type),null==e.parentId){var r=e.parentOption;r?e.parentId=r.id:n&&(e.parentId=n.parentId)}e.parentOption=null}function ZU(t,e){var n;return Pt(e,(function(e){null!=t[e]&&"auto"!==t[e]&&(n=!0)})),n}function GU(t,e,n){var r=Ot({},n),i=t[e],o=n.$action||"merge";"merge"===o?i?(xt(i,r,!0),cf(i,r,{ignoreSize:!0}),df(n,i),YU(n,i),YU(n,i,"shape"),YU(n,i,"style"),YU(n,i,"extra"),n.clipPath=i.clipPath):t[e]=r:"replace"===o?t[e]=r:"remove"===o&&i&&(t[e]=null)}var XU=["transition","enterFrom","leaveTo"],UU=XU.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function YU(t,e,n){if(n&&(!t[n]&&e[n]&&(t[n]={}),t=t[n],e=e[n]),t&&e)for(var r=n?XU:UU,i=0;i<r.length;i++){var o=r[i];null==t[o]&&null!=e[o]&&(t[o]=e[o])}}function qU(t,e){if(t&&(t.hv=e.hv=[ZU(e,["left","right"]),ZU(e,["top","bottom"])],"group"===t.type)){var n=t,r=e;null==n.width&&(n.width=r.width=0),null==n.height&&(n.height=r.height=0)}}var KU=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.preventAutoZ=!0,n}return Q(e,t),e.prototype.mergeOption=function(e,n){var r=this.option.elements;this.option.elements=null,t.prototype.mergeOption.call(this,e,n),this.option.elements=r},e.prototype.optionUpdated=function(t,e){var n=this.option,r=(e?n:t).elements,i=n.elements=e?[]:n.elements,o=[];this._flatten(r,o,null);var a=Es(i,o,"normalMerge"),s=this._elOptionsToUpdate=[];Pt(a,(function(t,e){var n=t.newOption;n&&(s.push(n),HU(t,n),GU(i,e,n),qU(i[e],n))}),this),n.elements=Et(i,(function(t){return t&&delete t.$action,null!=t}))},e.prototype._flatten=function(t,e,n){Pt(t,(function(t){if(t){n&&(t.parentOption=n),e.push(t);var r=t.children;r&&r.length&&this._flatten(r,e,t),delete t.children}}),this)},e.prototype.useElOptionsToUpdate=function(){var t=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,t},e.type="graphic",e.defaultOption={elements:[]},e}(vf),JU={path:null,compoundPath:null,group:La,image:vc,text:Vc},tY=Ys(),eY=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Q(e,t),e.prototype.init=function(){this._elMap=de()},e.prototype.render=function(t,e,n){t!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=t,this._updateElements(t),this._relocate(t,n)},e.prototype._updateElements=function(t){var e=t.useElOptionsToUpdate();if(e){var n=this._elMap,r=this.group,i=t.get("z"),o=t.get("zlevel");Pt(e,(function(e){var a=js(e.id,null),s=null!=a?n.get(a):null,l=js(e.parentId,null),u=null!=l?n.get(l):r,c=e.type,h=e.style;"text"===c&&h&&e.hv&&e.hv[1]&&(h.textVerticalAlign=h.textBaseline=h.verticalAlign=h.align=null);var d=e.textContent,p=e.textConfig;if(h&&rZ(h,c,!!p,!!d)){var f=iZ(h,c,!0);!p&&f.textConfig&&(p=e.textConfig=f.textConfig),!d&&f.textContent&&(d=f.textContent)}var g=aY(e);var v=e.$action||"merge",m="merge"===v,y="replace"===v;if(m){var b=!s,_=s;b?_=rY(a,u,e.type,n):(_&&(tY(_).isNew=!1),IZ(_)),_&&(pZ(_,g,t,{isInit:b}),oY(_,e,i,o))}else if(y){iY(s,e,n,t);var x=rY(a,u,e.type,n);x&&(pZ(x,g,t,{isInit:!0}),oY(x,e,i,o))}else"remove"===v&&(fZ(s,e),iY(s,e,n,t));var w=n.get(a);if(w&&d)if(m){var O=w.getTextContent();O?O.attr(d):w.setTextContent(new Vc(d))}else y&&w.setTextContent(new Vc(d));if(w){var S=e.clipPath;if(S){var A=S.type,k=void 0;b=!1;if(m){var C=w.getClipPath();b=!C||tY(C).type!==A,k=b?nY(A):C}else y&&(b=!0,k=nY(A));w.setClipPath(k),pZ(k,S,t,{isInit:b}),$Z(k,S.keyframeAnimation,t)}var M=tY(w);w.setTextConfig(p),M.option=e,sY(w,t,e),e_({el:w,componentModel:t,itemName:w.name,itemTooltipOption:e.tooltip}),$Z(w,e.keyframeAnimation,t)}}))}},e.prototype._relocate=function(t,e){for(var n=t.option.elements,r=this.group,i=this._elMap,o=e.getWidth(),a=e.getHeight(),s=["x","y"],l=0;l<n.length;l++){var u=n[l],c=js(u.id,null),h=null!=c?i.get(c):null;if(h&&h.isGroup){var d=h.parent,p=d===r,f=tY(h),g=tY(d);f.width=es(f.option.width,p?o:g.width)||0,f.height=es(f.option.height,p?a:g.height)||0}}for(l=n.length-1;l>=0;l--){u=n[l],c=js(u.id,null),h=null!=c?i.get(c):null;if(h){d=h.parent,g=tY(d);var v=d===r?{width:o,height:a}:{width:g.width,height:g.height},m={},y=sf(h,u,v,null,{hv:u.hv,boundingMode:u.bounding},m);if(!tY(h).isNew&&y){for(var b=u.transition,_={},x=0;x<s.length;x++){var w=s[x],O=m[w];b&&(vZ(b)||kt(b,w)>=0)?_[w]=O:h[w]=O}sd(h,_,t,0)}else h.attr(m)}}},e.prototype._clear=function(){var t=this,e=this._elMap;e.each((function(n){iY(n,tY(n).option,e,t._lastGraphicModel)})),this._elMap=de()},e.prototype.dispose=function(){this._clear()},e.type="graphic",e}(Hm);function nY(t){var e=ve(JU,t)?JU[t]:Eb(t);var n=new e({});return tY(n).type=t,n}function rY(t,e,n,r){var i=nY(n);return e.add(i),r.set(t,i),tY(i).id=t,tY(i).isNew=!0,i}function iY(t,e,n,r){var i=t&&t.parent;i&&("group"===t.type&&t.traverse((function(t){iY(t,e,n,r)})),gZ(t,e,r),n.removeKey(tY(t).id))}function oY(t,e,n,r){t.isGroup||Pt([["cursor",eu.prototype.cursor],["zlevel",r||0],["z",n||0],["z2",0]],(function(n){var r=n[0];ve(e,r)?t[r]=Jt(e[r],n[1]):null==t[r]&&(t[r]=n[1])})),Pt(Dt(e),(function(n){if(0===n.indexOf("on")){var r=e[n];t[n]=Ft(r)?r:null}})),ve(e,"draggable")&&(t.draggable=e.draggable),null!=e.name&&(t.name=e.name),null!=e.id&&(t.id=e.id)}function aY(t){return t=Ot({},t),Pt(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(tf),(function(e){delete t[e]})),t}function sY(t,e,n){var r=Qc(t).eventData;t.silent||t.ignore||r||(r=Qc(t).eventData={componentType:"graphic",componentIndex:e.componentIndex,name:t.name}),r&&(r.info=n.info)}function lY(t){t.registerComponentModel(KU),t.registerComponentView(eY),t.registerPreprocessor((function(t){var e=t.graphic;Bt(e)?e[0]&&e[0].elements?t.graphic=[t.graphic[0]]:t.graphic=[{elements:e}]:e&&!e.elements&&(t.graphic=[{elements:[e]}])}))}var uY=["x","y","radius","angle","single"],cY=["cartesian2d","polar","singleAxis"];function hY(t){var e=t.get("coordinateSystem");return kt(cY,e)>=0}function dY(t){return t+"Axis"}function pY(t,e){var n,r=de(),i=[],o=de();t.eachComponent({mainType:"dataZoom",query:e},(function(t){o.get(t.uid)||s(t)}));do{n=!1,t.eachComponent("dataZoom",a)}while(n);function a(t){!o.get(t.uid)&&l(t)&&(s(t),n=!0)}function s(t){o.set(t.uid,!0),i.push(t),u(t)}function l(t){var e=!1;return t.eachTargetAxis((function(t,n){var i=r.get(t);i&&i[n]&&(e=!0)})),e}function u(t){t.eachTargetAxis((function(t,e){(r.get(t)||r.set(t,[]))[e]=!0}))}return i}function fY(t){var e=t.ecModel,n={infoList:[],infoMap:de()};return t.eachTargetAxis((function(t,r){var i=e.getComponent(dY(t),r);if(i){var o=i.getCoordSysModel();if(o){var a=o.uid,s=n.infoMap.get(a);s||(s={model:o,axisModels:[]},n.infoList.push(s),n.infoMap.set(a,s)),s.axisModels.push(i)}}})),n}var gY=function(){function t(){this.indexList=[],this.indexMap=[]}return t.prototype.add=function(t){this.indexMap[t]||(this.indexList.push(t),this.indexMap[t]=!0)},t}(),vY=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._autoThrottle=!0,n._noTarget=!0,n._rangePropMode=["percent","percent"],n}return Q(e,t),e.prototype.init=function(t,e,n){var r=mY(t);this.settledOption=r,this.mergeDefaultAndTheme(t,n),this._doInit(r)},e.prototype.mergeOption=function(t){var e=mY(t);xt(this.option,t,!0),xt(this.settledOption,e,!0),this._doInit(e)},e.prototype._doInit=function(t){var e=this.option;this._setDefaultThrottle(t),this._updateRangeUse(t);var n=this.settledOption;Pt([["start","startValue"],["end","endValue"]],(function(t,r){"value"===this._rangePropMode[r]&&(e[t[0]]=n[t[0]]=null)}),this),this._resetTarget()},e.prototype._resetTarget=function(){var t=this.get("orient",!0),e=this._targetAxisInfoMap=de(),n=this._fillSpecifiedTargetAxis(e);n?this._orient=t||this._makeAutoOrientByTargetAxis():(this._orient=t||"horizontal",this._fillAutoTargetAxisByOrient(e,this._orient)),this._noTarget=!0,e.each((function(t){t.indexList.length&&(this._noTarget=!1)}),this)},e.prototype._fillSpecifiedTargetAxis=function(t){var e=!1;return Pt(uY,(function(n){var r=this.getReferringComponents(dY(n),el);if(r.specified){e=!0;var i=new gY;Pt(r.models,(function(t){i.add(t.componentIndex)})),t.set(n,i)}}),this),e},e.prototype._fillAutoTargetAxisByOrient=function(t,e){var n=this.ecModel,r=!0;if(r){var i="vertical"===e?"y":"x",o=n.findComponents({mainType:i+"Axis"});a(o,i)}if(r){o=n.findComponents({mainType:"singleAxis",filter:function(t){return t.get("orient",!0)===e}});a(o,"single")}function a(e,n){var i=e[0];if(i){var o=new gY;if(o.add(i.componentIndex),t.set(n,o),r=!1,"x"===n||"y"===n){var a=i.getReferringComponents("grid",tl).models[0];a&&Pt(e,(function(t){i.componentIndex!==t.componentIndex&&a===t.getReferringComponents("grid",tl).models[0]&&o.add(t.componentIndex)}))}}}r&&Pt(uY,(function(e){if(r){var i=n.findComponents({mainType:dY(e),filter:function(t){return"category"===t.get("type",!0)}});if(i[0]){var o=new gY;o.add(i[0].componentIndex),t.set(e,o),r=!1}}}),this)},e.prototype._makeAutoOrientByTargetAxis=function(){var t;return this.eachTargetAxis((function(e){!t&&(t=e)}),this),"y"===t?"vertical":"horizontal"},e.prototype._setDefaultThrottle=function(t){if(t.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var e=this.ecModel.option;this.option.throttle=e.animation&&e.animationDurationUpdate>0?100:20}},e.prototype._updateRangeUse=function(t){var e=this._rangePropMode,n=this.get("rangeMode");Pt([["start","startValue"],["end","endValue"]],(function(r,i){var o=null!=t[r[0]],a=null!=t[r[1]];o&&!a?e[i]="percent":!o&&a?e[i]="value":n?e[i]=n[i]:o&&(e[i]="percent")}))},e.prototype.noTarget=function(){return this._noTarget},e.prototype.getFirstTargetAxisModel=function(){var t;return this.eachTargetAxis((function(e,n){null==t&&(t=this.ecModel.getComponent(dY(e),n))}),this),t},e.prototype.eachTargetAxis=function(t,e){this._targetAxisInfoMap.each((function(n,r){Pt(n.indexList,(function(n){t.call(e,r,n)}))}))},e.prototype.getAxisProxy=function(t,e){var n=this.getAxisModel(t,e);if(n)return n.__dzAxisProxy},e.prototype.getAxisModel=function(t,e){var n=this._targetAxisInfoMap.get(t);if(n&&n.indexMap[e])return this.ecModel.getComponent(dY(t),e)},e.prototype.setRawRange=function(t){var e=this.option,n=this.settledOption;Pt([["start","startValue"],["end","endValue"]],(function(r){null==t[r[0]]&&null==t[r[1]]||(e[r[0]]=n[r[0]]=t[r[0]],e[r[1]]=n[r[1]]=t[r[1]])}),this),this._updateRangeUse(t)},e.prototype.setCalculatedRange=function(t){var e=this.option;Pt(["start","startValue","end","endValue"],(function(n){e[n]=t[n]}))},e.prototype.getPercentRange=function(){var t=this.findRepresentativeAxisProxy();if(t)return t.getDataPercentWindow()},e.prototype.getValueRange=function(t,e){if(null!=t||null!=e)return this.getAxisProxy(t,e).getDataValueWindow();var n=this.findRepresentativeAxisProxy();return n?n.getDataValueWindow():void 0},e.prototype.findRepresentativeAxisProxy=function(t){if(t)return t.__dzAxisProxy;for(var e,n=this._targetAxisInfoMap.keys(),r=0;r<n.length;r++)for(var i=n[r],o=this._targetAxisInfoMap.get(i),a=0;a<o.indexList.length;a++){var s=this.getAxisProxy(i,o.indexList[a]);if(s.hostedBy(this))return s;e||(e=s)}return e},e.prototype.getRangePropMode=function(){return this._rangePropMode.slice()},e.prototype.getOrient=function(){return this._orient},e.type="dataZoom",e.dependencies=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","series","toolbox"],e.defaultOption={z:4,filterMode:"filter",start:0,end:100},e}(vf);function mY(t){var e={};return Pt(["start","end","startValue","endValue","throttle"],(function(n){t.hasOwnProperty(n)&&(e[n]=t[n])})),e}var yY=vY,bY=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Q(e,t),e.type="dataZoom.select",e}(yY),_Y=bY,xY=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Q(e,t),e.prototype.render=function(t,e,n,r){this.dataZoomModel=t,this.ecModel=e,this.api=n},e.type="dataZoom",e}(Hm),wY=xY,OY=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Q(e,t),e.type="dataZoom.select",e}(wY),SY=OY,AY=Pt,kY=rs,CY=function(){function t(t,e,n,r){this._dimName=t,this._axisIndex=e,this.ecModel=r,this._dataZoomModel=n}return t.prototype.hostedBy=function(t){return this._dataZoomModel===t},t.prototype.getDataValueWindow=function(){return this._valueWindow.slice()},t.prototype.getDataPercentWindow=function(){return this._percentWindow.slice()},t.prototype.getTargetSeriesModels=function(){var t=[];return this.ecModel.eachSeries((function(e){if(hY(e)){var n=dY(this._dimName),r=e.getReferringComponents(n,tl).models[0];r&&this._axisIndex===r.componentIndex&&t.push(e)}}),this),t},t.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},t.prototype.getMinMaxSpan=function(){return _t(this._minMaxSpan)},t.prototype.calculateDataWindow=function(t){var e,n=this._dataExtent,r=this.getAxisModel(),i=r.axis.scale,o=this._dataZoomModel.getRangePropMode(),a=[0,100],s=[],l=[];AY(["start","end"],(function(r,u){var c=t[r],h=t[r+"Value"];"percent"===o[u]?(null==c&&(c=a[u]),h=i.parse(ts(c,a,n))):(e=!0,h=null==h?n[u]:i.parse(h),c=ts(h,n,a)),l[u]=null==h||isNaN(h)?n[u]:h,s[u]=null==c||isNaN(c)?a[u]:c})),kY(l),kY(s);var u=this._minMaxSpan;function c(t,e,n,r,o){var a=o?"Span":"ValueSpan";XF(0,t,n,"all",u["min"+a],u["max"+a]);for(var s=0;s<2;s++)e[s]=ts(t[s],n,r,!0),o&&(e[s]=i.parse(e[s]))}return e?c(l,s,n,a,!1):c(s,l,a,n,!0),{valueWindow:l,percentWindow:s}},t.prototype.reset=function(t){if(t===this._dataZoomModel){var e=this.getTargetSeriesModels();this._dataExtent=MY(this,this._dimName,e),this._updateMinMaxSpan();var n=this.calculateDataWindow(t.settledOption);this._valueWindow=n.valueWindow,this._percentWindow=n.percentWindow,this._setAxisModel()}},t.prototype.filterData=function(t,e){if(t===this._dataZoomModel){var n=this._dimName,r=this.getTargetSeriesModels(),i=t.get("filterMode"),o=this._valueWindow;"none"!==i&&AY(r,(function(t){var e=t.getData(),r=e.mapDimensionsAll(n);if(r.length){if("weakFilter"===i){var s=e.getStore(),l=It(r,(function(t){return e.getDimensionIndex(t)}),e);e.filterSelf((function(t){for(var e,n,i,a=0;a<r.length;a++){var u=s.get(l[a],t),c=!isNaN(u),h=u<o[0],d=u>o[1];if(c&&!h&&!d)return!0;c&&(i=!0),h&&(e=!0),d&&(n=!0)}return i&&e&&n}))}else AY(r,(function(n){if("empty"===i)t.setData(e=e.map(n,(function(t){return a(t)?t:NaN})));else{var r={};r[n]=o,e.selectRange(r)}}));AY(r,(function(t){e.setApproximateExtent(o,t)}))}}))}function a(t){return t>=o[0]&&t<=o[1]}},t.prototype._updateMinMaxSpan=function(){var t=this._minMaxSpan={},e=this._dataZoomModel,n=this._dataExtent;AY(["min","max"],(function(r){var i=e.get(r+"Span"),o=e.get(r+"ValueSpan");null!=o&&(o=this.getAxisModel().axis.scale.parse(o)),null!=o?i=ts(n[0]+o,n,[0,100],!0):null!=i&&(o=ts(i,[0,100],n,!0)-n[0]),t[r+"Span"]=i,t[r+"ValueSpan"]=o}),this)},t.prototype._setAxisModel=function(){var t=this.getAxisModel(),e=this._percentWindow,n=this._valueWindow;if(e){var r=as(n,[0,500]);r=Math.min(r,20);var i=t.axis.scale.rawExtentInfo;0!==e[0]&&i.setDeterminedMinMax("min",+n[0].toFixed(r)),100!==e[1]&&i.setDeterminedMinMax("max",+n[1].toFixed(r)),i.freeze()}},t}();function MY(t,e,n){var r=[1/0,-1/0];AY(n,(function(t){Lk(r,t.getData(),e)}));var i=t.getAxisModel(),o=wk(i.axis.scale,i,r).calculate();return[o.min,o.max]}var TY=CY,PY={getTargetSeries:function(t){function e(e){t.eachComponent("dataZoom",(function(n){n.eachTargetAxis((function(r,i){var o=t.getComponent(dY(r),i);e(r,i,o,n)}))}))}e((function(t,e,n,r){n.__dzAxisProxy=null}));var n=[];e((function(e,r,i,o){i.__dzAxisProxy||(i.__dzAxisProxy=new TY(e,r,o,t),n.push(i.__dzAxisProxy))}));var r=de();return Pt(n,(function(t){Pt(t.getTargetSeriesModels(),(function(t){r.set(t.uid,t)}))})),r},overallReset:function(t,e){t.eachComponent("dataZoom",(function(t){t.eachTargetAxis((function(e,n){t.getAxisProxy(e,n).reset(t)})),t.eachTargetAxis((function(n,r){t.getAxisProxy(n,r).filterData(t,e)}))})),t.eachComponent("dataZoom",(function(t){var e=t.findRepresentativeAxisProxy();if(e){var n=e.getDataPercentWindow(),r=e.getDataValueWindow();t.setCalculatedRange({start:n[0],end:n[1],startValue:r[0],endValue:r[1]})}}))}},IY=PY;function $Y(t){t.registerAction("dataZoom",(function(t,e){var n=pY(e,t);Pt(n,(function(e){e.setRawRange({start:t.start,end:t.end,startValue:t.startValue,endValue:t.endValue})}))}))}var EY=!1;function RY(t){EY||(EY=!0,t.registerProcessor(t.PRIORITY.PROCESSOR.FILTER,IY),$Y(t),t.registerSubTypeDefaulter("dataZoom",(function(){return"slider"})))}function DY(t){t.registerComponentModel(_Y),t.registerComponentView(SY),RY(t)}var LY=function(){function t(){}return t}(),NY={};function zY(t,e){NY[t]=e}function BY(t){return NY[t]}var FY=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Q(e,t),e.prototype.optionUpdated=function(){t.prototype.optionUpdated.apply(this,arguments);var e=this.ecModel;Pt(this.option.feature,(function(t,n){var r=BY(n);r&&(r.getDefaultOption&&(r.defaultOption=r.getDefaultOption(e)),xt(t,r.defaultOption))}))},e.type="toolbox",e.layoutMode={type:"box",ignoreSize:!0},e.defaultOption={show:!0,z:6,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{borderColor:"#666",color:"none"},emphasis:{iconStyle:{borderColor:"#3E98C5"}},tooltip:{show:!1,position:"bottom"}},e}(vf),WY=FY;function jY(t,e,n){var r=e.getBoxLayoutParams(),i=e.get("padding"),o={width:n.getWidth(),height:n.getHeight()},a=af(r,o,i);rf(e.get("orient"),t,e.get("itemGap"),a.width,a.height),sf(t,r,o,i)}function VY(t,e){var n=jp(e.get("padding")),r=e.getItemStyle(["color","opacity"]);return r.fill=e.get("backgroundColor"),t=new Ac({shape:{x:t.x-n[3],y:t.y-n[0],width:t.width+n[1]+n[3],height:t.height+n[0]+n[2],r:e.get("borderRadius")},style:r,silent:!0,z2:-1}),t}var QY=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Q(e,t),e.prototype.render=function(t,e,n,r){var i=this.group;if(i.removeAll(),t.get("show")){var o=+t.get("itemSize"),a="vertical"===t.get("orient"),s=t.get("feature")||{},l=this._features||(this._features={}),u=[];Pt(s,(function(t,e){u.push(e)})),new mS(this._featureNames||[],u).add(c).update(c).remove(zt(c,null)).execute(),this._featureNames=u,jY(i,t,n),i.add(VY(i.getBoundingRect(),t)),a||i.eachChild((function(t){var e=t.__title,r=t.ensureState("emphasis"),a=r.textConfig||(r.textConfig={}),s=t.getTextContent(),l=s&&s.ensureState("emphasis");if(l&&!Ft(l)&&e){var u=l.style||(l.style={}),c=ga(e,Vc.makeFont(u)),h=t.x+i.x,d=t.y+i.y+o,p=!1;d+c.height>n.getHeight()&&(a.position="top",p=!0);var f=p?-5-c.height:o+10;h+c.width/2>n.getWidth()?(a.position=["100%",f],u.align="right"):h-c.width/2<0&&(a.position=[0,f],u.align="left")}}))}function c(i,o){var a,c=u[i],d=u[o],p=s[c],f=new Qd(p,t,t.ecModel);if(r&&null!=r.newTitle&&r.featureName===c&&(p.title=r.newTitle),c&&!d){if(HY(c))a={onclick:f.option.onclick,featureName:c};else{var g=BY(c);if(!g)return;a=new g}l[c]=a}else if(a=l[d],!a)return;a.uid=Zd("toolbox-feature"),a.model=f,a.ecModel=e,a.api=n;var v=a instanceof LY;c||!d?!f.get("show")||v&&a.unusable?v&&a.remove&&a.remove(e,n):(h(f,a,c),f.setIconStatus=function(t,e){var n=this.option,r=this.iconPaths;n.iconStatus=n.iconStatus||{},n.iconStatus[t]=e,r[t]&&("emphasis"===e?Ch:Mh)(r[t])},a instanceof LY&&a.render&&a.render(f,e,n,r)):v&&a.dispose&&a.dispose(e,n)}function h(r,s,l){var u,c,h=r.getModel("iconStyle"),d=r.getModel(["emphasis","iconStyle"]),p=s instanceof LY&&s.getIcons?s.getIcons():r.get("icon"),f=r.get("title")||{};Wt(p)?(u={},u[l]=p):u=p,Wt(f)?(c={},c[l]=f):c=f;var g=r.iconPaths={};Pt(u,(function(l,u){var p=Yb(l,{},{x:-o/2,y:-o/2,width:o,height:o});p.setStyle(h.getItemStyle());var f=p.ensureState("emphasis");f.style=d.getItemStyle();var v=new Vc({style:{text:c[u],align:d.get("textAlign"),borderRadius:d.get("textBorderRadius"),padding:d.get("textPadding"),fill:null,font:Md({fontStyle:d.get("textFontStyle"),fontFamily:d.get("textFontFamily"),fontSize:d.get("textFontSize"),fontWeight:d.get("textFontWeight")},e)},ignore:!0});p.setTextContent(v),e_({el:p,componentModel:t,itemName:u,formatterParamsExtra:{title:c[u]}}),p.__title=c[u],p.on("mouseover",(function(){var e=d.getItemStyle(),r=a?null==t.get("right")&&"right"!==t.get("left")?"right":"left":null==t.get("bottom")&&"bottom"!==t.get("top")?"bottom":"top";v.setStyle({fill:d.get("textFill")||e.fill||e.stroke||"#000",backgroundColor:d.get("textBackgroundColor")}),p.setTextConfig({position:d.get("textPosition")||r}),v.ignore=!t.get("showTitle"),n.enterEmphasis(this)})).on("mouseout",(function(){"emphasis"!==r.get(["iconStatus",u])&&n.leaveEmphasis(this),v.hide()})),("emphasis"===r.get(["iconStatus",u])?Ch:Mh)(p),i.add(p),p.on("click",Nt(s.onclick,s,e,n,u)),g[u]=p}))}},e.prototype.updateView=function(t,e,n,r){Pt(this._features,(function(t){t instanceof LY&&t.updateView&&t.updateView(t.model,e,n,r)}))},e.prototype.remove=function(t,e){Pt(this._features,(function(n){n instanceof LY&&n.remove&&n.remove(t,e)})),this.group.removeAll()},e.prototype.dispose=function(t,e){Pt(this._features,(function(n){n instanceof LY&&n.dispose&&n.dispose(t,e)}))},e.type="toolbox",e}(Hm);function HY(t){return 0===t.indexOf("my")}var ZY=QY,GY=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Q(e,t),e.prototype.onclick=function(t,e){var n=this.model,r=n.get("name")||t.get("title.0.text")||"echarts",i="svg"===e.getZr().painter.getType(),o=i?"svg":n.get("type",!0)||"png",a=e.getConnectedDataURL({type:o,backgroundColor:n.get("backgroundColor",!0)||t.get("backgroundColor")||"#fff",connectedBackgroundColor:n.get("connectedBackgroundColor"),excludeComponents:n.get("excludeComponents"),pixelRatio:n.get("pixelRatio")}),s=U.browser;if("function"!==typeof MouseEvent||!s.newEdge&&(s.ie||s.edge))if(window.navigator.msSaveOrOpenBlob||i){var l=a.split(","),u=l[0].indexOf("base64")>-1,c=i?decodeURIComponent(l[1]):l[1];u&&(c=window.atob(c));var h=r+"."+o;if(window.navigator.msSaveOrOpenBlob){var d=c.length,p=new Uint8Array(d);while(d--)p[d]=c.charCodeAt(d);var f=new Blob([p]);window.navigator.msSaveOrOpenBlob(f,h)}else{var g=document.createElement("iframe");document.body.appendChild(g);var v=g.contentWindow,m=v.document;m.open("image/svg+xml","replace"),m.write(c),m.close(),v.focus(),m.execCommand("SaveAs",!0,h),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+"."+o,x.target="_blank",x.href=a;var w=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});x.dispatchEvent(w)}},e.getDefaultOption=function(t){var e={show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:t.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:t.getLocaleModel().get(["toolbox","saveAsImage","lang"])};return e},e}(LY),XY=GY,UY="__ec_magicType_stack__",YY=[["line","bar"],["stack"]],qY=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Q(e,t),e.prototype.getIcons=function(){var t=this.model,e=t.get("icon"),n={};return Pt(t.get("type"),(function(t){e[t]&&(n[t]=e[t])})),n},e.getDefaultOption=function(t){var e={show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"},title:t.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}};return e},e.prototype.onclick=function(t,e,n){var r=this.model,i=r.get(["seriesIndex",n]);if(KY[n]){var o,a={series:[]},s=function(t){var e=t.subType,i=t.id,o=KY[n](e,i,t,r);o&&(St(o,t.option),a.series.push(o));var s=t.coordinateSystem;if(s&&"cartesian2d"===s.type&&("line"===n||"bar"===n)){var l=s.getAxesByScale("ordinal")[0];if(l){var u=l.dim,c=u+"Axis",h=t.getReferringComponents(c,tl).models[0],d=h.componentIndex;a[c]=a[c]||[];for(var p=0;p<=d;p++)a[c][d]=a[c][d]||{};a[c][d].boundaryGap="bar"===n}}};Pt(YY,(function(t){kt(t,n)>=0&&Pt(t,(function(t){r.setIconStatus(t,"normal")}))})),r.setIconStatus(n,"emphasis"),t.eachComponent({mainType:"series",query:null==i?null:{seriesIndex:i}},s);var l=n;"stack"===n&&(o=xt({stack:r.option.title.tiled,tiled:r.option.title.stack},r.option.title),"emphasis"!==r.get(["iconStatus",n])&&(l="tiled")),e.dispatchAction({type:"changeMagicType",currentType:l,newOption:a,newTitle:o,featureName:"magicType"})}},e}(LY),KY={line:function(t,e,n,r){if("bar"===t)return xt({id:e,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(t,e,n,r){if("line"===t)return xt({id:e,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(t,e,n,r){var i=n.get("stack")===UY;if("line"===t||"bar"===t)return r.setIconStatus("stack",i?"normal":"emphasis"),xt({id:e,stack:i?"":UY},r.get(["option","stack"])||{},!0)}};KO({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},(function(t,e){e.mergeOption(t.newOption)}));var JY=qY,tq=new Array(60).join("-"),eq="\t";function nq(t){var e={},n=[],r=[];return t.eachRawSeries((function(t){var i=t.coordinateSystem;if(!i||"cartesian2d"!==i.type&&"polar"!==i.type)n.push(t);else{var o=i.getBaseAxis();if("category"===o.type){var a=o.dim+"_"+o.index;e[a]||(e[a]={categoryAxis:o,valueAxis:i.getOtherAxis(o),series:[]},r.push({axisDim:o.dim,axisIndex:o.index})),e[a].series.push(t)}else n.push(t)}})),{seriesGroupByCategoryAxis:e,other:n,meta:r}}function rq(t){var e=[];return Pt(t,(function(t,n){var r=t.categoryAxis,i=t.valueAxis,o=i.dim,a=[" "].concat(It(t.series,(function(t){return t.name}))),s=[r.model.getCategories()];Pt(t.series,(function(t){var e=t.getRawData();s.push(t.getRawData().mapArray(e.mapDimension(o),(function(t){return t})))}));for(var l=[a.join(eq)],u=0;u<s[0].length;u++){for(var c=[],h=0;h<s.length;h++)c.push(s[h][u]);l.push(c.join(eq))}e.push(l.join("\n"))})),e.join("\n\n"+tq+"\n\n")}function iq(t){return It(t,(function(t){var e=t.getRawData(),n=[t.name],r=[];return e.each(e.dimensions,(function(){for(var t=arguments.length,i=arguments[t-1],o=e.getName(i),a=0;a<t-1;a++)r[a]=arguments[a];n.push((o?o+eq:"")+r.join(eq))})),n.join("\n")})).join("\n\n"+tq+"\n\n")}function oq(t){var e=nq(t);return{value:Et([rq(e.seriesGroupByCategoryAxis),iq(e.other)],(function(t){return!!t.replace(/[\n\t\s]/g,"")})).join("\n\n"+tq+"\n\n"),meta:e.meta}}function aq(t){return t.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function sq(t){var e=t.slice(0,t.indexOf("\n"));if(e.indexOf(eq)>=0)return!0}var lq=new RegExp("["+eq+"]+","g");function uq(t){for(var e=t.split(/\n+/g),n=aq(e.shift()).split(lq),r=[],i=It(n,(function(t){return{name:t,data:[]}})),o=0;o<e.length;o++){var a=aq(e[o]).split(lq);r.push(a.shift());for(var s=0;s<a.length;s++)i[s]&&(i[s].data[o]=a[s])}return{series:i,categories:r}}function cq(t){for(var e=t.split(/\n+/g),n=aq(e.shift()),r=[],i=0;i<e.length;i++){var o=aq(e[i]);if(o){var a=o.split(lq),s="",l=void 0,u=!1;isNaN(a[0])?(u=!0,s=a[0],a=a.slice(1),r[i]={name:s,value:[]},l=r[i].value):l=r[i]=[];for(var c=0;c<a.length;c++)l.push(+a[c]);1===l.length&&(u?r[i].value=l[0]:r[i]=l[0])}}return{name:n,data:r}}function hq(t,e){var n=t.split(new RegExp("\n*"+tq+"\n*","g")),r={series:[]};return Pt(n,(function(t,n){if(sq(t)){var i=uq(t),o=e[n],a=o.axisDim+"Axis";o&&(r[a]=r[a]||[],r[a][o.axisIndex]={data:i.categories},r.series=r.series.concat(i.series))}else{i=cq(t);r.series.push(i)}})),r}var dq=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Q(e,t),e.prototype.onclick=function(t,e){setTimeout((function(){e.dispatchAction({type:"hideTip"})}));var n=e.getDom(),r=this.model;this._dom&&n.removeChild(this._dom);var i=document.createElement("div");i.style.cssText="position:absolute;top:0;bottom:0;left:0;right:0;padding:5px",i.style.backgroundColor=r.get("backgroundColor")||"#fff";var o=document.createElement("h4"),a=r.get("lang")||[];o.innerHTML=a[0]||r.get("title"),o.style.cssText="margin:10px 20px",o.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"),h=oq(t);if(Ft(u)){var d=u(e.getOption());Wt(d)?s.innerHTML=d:Gt(d)&&s.appendChild(d)}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=h.value,s.appendChild(l)}var f=h.meta,g=document.createElement("div");g.style.cssText="position:absolute;bottom:5px;left:0;right:0";var v="float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px",m=document.createElement("div"),y=document.createElement("div");v+=";background-color:"+r.get("buttonColor"),v+=";color:"+r.get("buttonTextColor");var b=this;function _(){n.removeChild(i),b._dom=null}mn(m,"click",_),mn(y,"click",(function(){if(null==c&&null!=u||null!=c&&null==u)_();else{var t;try{t=Ft(c)?c(s,e.getOption()):hq(l.value,f)}catch($y){throw _(),new Error("Data view format error "+$y)}t&&e.dispatchAction({type:"changeDataView",newOption:t}),_()}})),m.innerHTML=a[1],y.innerHTML=a[2],y.style.cssText=m.style.cssText=v,!r.get("readOnly")&&g.appendChild(y),g.appendChild(m),i.appendChild(o),i.appendChild(s),i.appendChild(g),s.style.height=n.clientHeight-80+"px",n.appendChild(i),this._dom=i},e.prototype.remove=function(t,e){this._dom&&e.getDom().removeChild(this._dom)},e.prototype.dispose=function(t,e){this.remove(t,e)},e.getDefaultOption=function(t){var e={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:t.getLocaleModel().get(["toolbox","dataView","title"]),lang:t.getLocaleModel().get(["toolbox","dataView","lang"]),backgroundColor:"#fff",textColor:"#000",textareaColor:"#fff",textareaBorderColor:"#333",buttonColor:"#c23531",buttonTextColor:"#fff"};return e},e}(LY);function pq(t,e){return It(t,(function(t,n){var r=e&&e[n];if(Qt(r)&&!Bt(r)){var i=Qt(t)&&!Bt(t);i||(t={value:t});var o=null!=r.name&&null==t.name;return t=St(t,r),o&&delete t.name,t}return t}))}KO({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},(function(t,e){var n=[];Pt(t.newOption.series,(function(t){var r=e.getSeriesByName(t.name)[0];if(r){var i=r.get("data");n.push({name:t.name,data:pq(t.data,i)})}else n.push(Ot({type:"scatter"},t))})),e.mergeOption(St({series:n},t.newOption))}));var fq=dq,gq=Pt,vq=Ys();function mq(t,e){var n=xq(t);gq(e,(function(e,r){for(var i=n.length-1;i>=0;i--){var o=n[i];if(o[r])break}if(i<0){var a=t.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(e)}function yq(t){var e=xq(t),n=e[e.length-1];e.length>1&&e.pop();var r={};return gq(n,(function(t,n){for(var i=e.length-1;i>=0;i--)if(t=e[i][n],t){r[n]=t;break}})),r}function bq(t){vq(t).snapshots=null}function _q(t){return xq(t).length}function xq(t){var e=vq(t);return e.snapshots||(e.snapshots=[{}]),e.snapshots}var wq=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Q(e,t),e.prototype.onclick=function(t,e){bq(t),e.dispatchAction({type:"restore",from:this.uid})},e.getDefaultOption=function(t){var e={show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:t.getLocaleModel().get(["toolbox","restore","title"])};return e},e}(LY);KO({type:"restore",event:"restore",update:"prepareAndUpdate"},(function(t,e){e.resetOption("recreate")}));var Oq=wq,Sq=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],Aq=function(){function t(t,e,n){var r=this;this._targetInfoList=[];var i=Cq(e,t);Pt(Mq,(function(t,e){(!n||!n.include||kt(n.include,e)>=0)&&t(i,r._targetInfoList)}))}return t.prototype.setOutputRanges=function(t,e){return this.matchOutputRanges(t,e,(function(t,e,n){if((t.coordRanges||(t.coordRanges=[])).push(e),!t.coordRange){t.coordRange=e;var r=Iq[t.brushType](0,n,e);t.__rangeOffset={offset:Eq[t.brushType](r.values,t.range,[1,1]),xyMinMax:r.xyMinMax}}})),t},t.prototype.matchOutputRanges=function(t,e,n){Pt(t,(function(t){var r=this.findTargetInfo(t,e);r&&!0!==r&&Pt(r.coordSyses,(function(r){var i=Iq[t.brushType](1,r,t.range,!0);n(t,i.values,r,e)}))}),this)},t.prototype.setInputRanges=function(t,e){Pt(t,(function(t){var n=this.findTargetInfo(t,e);if(t.range=t.range||[],n&&!0!==n){t.panelId=n.panelId;var r=Iq[t.brushType](0,n.coordSys,t.coordRange),i=t.__rangeOffset;t.range=i?Eq[t.brushType](r.values,i.offset,Dq(r.xyMinMax,i.xyMinMax)):r.values}}),this)},t.prototype.makePanelOpts=function(t,e){return It(this._targetInfoList,(function(n){var r=n.getPanelRect();return{panelId:n.panelId,defaultBrushType:e?e(n):null,clipPath:cj(r),isTargetByCursor:dj(r,t,n.coordSysModel),getLinearBrushOtherExtent:hj(r)}}))},t.prototype.controlSeries=function(t,e,n){var r=this.findTargetInfo(t,n);return!0===r||r&&kt(r.coordSyses,e.coordinateSystem)>=0},t.prototype.findTargetInfo=function(t,e){for(var n=this._targetInfoList,r=Cq(e,t),i=0;i<n.length;i++){var o=n[i],a=t.panelId;if(a){if(o.panelId===a)return o}else for(var s=0;s<Tq.length;s++)if(Tq[s](r,o))return o}return!0},t}();function kq(t){return t[0]>t[1]&&t.reverse(),t}function Cq(t,e){return Ks(t,e,{includeMainTypes:Sq})}var Mq={grid:function(t,e){var n=t.xAxisModels,r=t.yAxisModels,i=t.gridModels,o=de(),a={},s={};(n||r||i)&&(Pt(n,(function(t){var e=t.axis.grid.model;o.set(e.id,e),a[e.id]=!0})),Pt(r,(function(t){var e=t.axis.grid.model;o.set(e.id,e),s[e.id]=!0})),Pt(i,(function(t){o.set(t.id,t),a[t.id]=!0,s[t.id]=!0})),o.each((function(t){var i=t.coordinateSystem,o=[];Pt(i.getCartesians(),(function(t,e){(kt(n,t.getAxis("x").model)>=0||kt(r,t.getAxis("y").model)>=0)&&o.push(t)})),e.push({panelId:"grid--"+t.id,gridModel:t,coordSysModel:t,coordSys:o[0],coordSyses:o,getPanelRect:Pq.grid,xAxisDeclared:a[t.id],yAxisDeclared:s[t.id]})})))},geo:function(t,e){Pt(t.geoModels,(function(t){var n=t.coordinateSystem;e.push({panelId:"geo--"+t.id,geoModel:t,coordSysModel:t,coordSys:n,coordSyses:[n],getPanelRect:Pq.geo})}))}},Tq=[function(t,e){var n=t.xAxisModel,r=t.yAxisModel,i=t.gridModel;return!i&&n&&(i=n.axis.grid.model),!i&&r&&(i=r.axis.grid.model),i&&i===e.gridModel},function(t,e){var n=t.geoModel;return n&&n===e.geoModel}],Pq={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var t=this.coordSys,e=t.getBoundingRect().clone();return e.applyTransform(jb(t)),e}},Iq={lineX:zt($q,0),lineY:zt($q,1),rect:function(t,e,n,r){var i=t?e.pointToData([n[0][0],n[1][0]],r):e.dataToPoint([n[0][0],n[1][0]],r),o=t?e.pointToData([n[0][1],n[1][1]],r):e.dataToPoint([n[0][1],n[1][1]],r),a=[kq([i[0],o[0]]),kq([i[1],o[1]])];return{values:a,xyMinMax:a}},polygon:function(t,e,n,r){var i=[[1/0,-1/0],[1/0,-1/0]],o=It(n,(function(n){var o=t?e.pointToData(n,r):e.dataToPoint(n,r);return i[0][0]=Math.min(i[0][0],o[0]),i[1][0]=Math.min(i[1][0],o[1]),i[0][1]=Math.max(i[0][1],o[0]),i[1][1]=Math.max(i[1][1],o[1]),o}));return{values:o,xyMinMax:i}}};function $q(t,e,n,r){var i=n.getAxis(["x","y"][t]),o=kq(It([0,1],(function(t){return e?i.coordToData(i.toLocalCoord(r[t]),!0):i.toGlobalCoord(i.dataToCoord(r[t]))}))),a=[];return a[t]=o,a[1-t]=[NaN,NaN],{values:o,xyMinMax:a}}var Eq={lineX:zt(Rq,0),lineY:zt(Rq,1),rect:function(t,e,n){return[[t[0][0]-n[0]*e[0][0],t[0][1]-n[0]*e[0][1]],[t[1][0]-n[1]*e[1][0],t[1][1]-n[1]*e[1][1]]]},polygon:function(t,e,n){return It(t,(function(t,r){return[t[0]-n[0]*e[r][0],t[1]-n[1]*e[r][1]]}))}};function Rq(t,e,n,r){return[e[0]-r[t]*n[0],e[1]-r[t]*n[1]]}function Dq(t,e){var n=Lq(t),r=Lq(e),i=[n[0]/r[0],n[1]/r[1]];return isNaN(i[0])&&(i[0]=1),isNaN(i[1])&&(i[1]=1),i}function Lq(t){return t?[t[0][1]-t[0][0],t[1][1]-t[1][0]]:[NaN,NaN]}var Nq=Aq,zq=Pt,Bq=Hs("toolbox-dataZoom_"),Fq=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Q(e,t),e.prototype.render=function(t,e,n,r){this._brushController||(this._brushController=new uj(n.getZr()),this._brushController.on("brush",Nt(this._onBrush,this)).mount()),Qq(t,e,this,r,n),Vq(t,e)},e.prototype.onclick=function(t,e,n){Wq[n].call(this)},e.prototype.remove=function(t,e){this._brushController&&this._brushController.unmount()},e.prototype.dispose=function(t,e){this._brushController&&this._brushController.dispose()},e.prototype._onBrush=function(t){var e=t.areas;if(t.isEnd&&e.length){var n={},r=this.ecModel;this._brushController.updateCovers([]);var i=new Nq(jq(this.model),r,{include:["grid"]});i.matchOutputRanges(e,r,(function(t,e,n){if("cartesian2d"===n.type){var r=t.brushType;"rect"===r?(o("x",n,e[0]),o("y",n,e[1])):o({lineX:"x",lineY:"y"}[r],n,e)}})),mq(r,n),this._dispatchZoomAction(n)}function o(t,e,i){var o=e.getAxis(t),s=o.model,l=a(t,s,r),u=l.findRepresentativeAxisProxy(s).getMinMaxSpan();null==u.minValueSpan&&null==u.maxValueSpan||(i=XF(0,i.slice(),o.scale.getExtent(),0,u.minValueSpan,u.maxValueSpan)),l&&(n[l.id]={dataZoomId:l.id,startValue:i[0],endValue:i[1]})}function a(t,e,n){var r;return n.eachComponent({mainType:"dataZoom",subType:"select"},(function(n){var i=n.getAxisModel(t,e.componentIndex);i&&(r=n)})),r}},e.prototype._dispatchZoomAction=function(t){var e=[];zq(t,(function(t,n){e.push(_t(t))})),e.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:e})},e.getDefaultOption=function(t){var e={show:!0,filterMode:"filter",icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:t.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}};return e},e}(LY),Wq={zoom:function(){var t=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:t})},back:function(){this._dispatchZoomAction(yq(this.ecModel))}};function jq(t){var e={xAxisIndex:t.get("xAxisIndex",!0),yAxisIndex:t.get("yAxisIndex",!0),xAxisId:t.get("xAxisId",!0),yAxisId:t.get("yAxisId",!0)};return null==e.xAxisIndex&&null==e.xAxisId&&(e.xAxisIndex="all"),null==e.yAxisIndex&&null==e.yAxisId&&(e.yAxisIndex="all"),e}function Vq(t,e){t.setIconStatus("back",_q(e)>1?"emphasis":"normal")}function Qq(t,e,n,r,i){var o=n._isZoomActive;r&&"takeGlobalCursor"===r.type&&(o="dataZoomSelect"===r.key&&r.dataZoomSelectActive),n._isZoomActive=o,t.setIconStatus("zoom",o?"emphasis":"normal");var a=new Nq(jq(t),e,{include:["grid"]}),s=a.makePanelOpts(i,(function(t){return t.xAxisDeclared&&!t.yAxisDeclared?"lineX":!t.xAxisDeclared&&t.yAxisDeclared?"lineY":"rect"}));n._brushController.setPanels(s).enableBrush(!(!o||!s.length)&&{brushType:"auto",brushStyle:t.getModel("brushStyle").getItemStyle()})}Bf("dataZoom",(function(t){var e=t.getComponent("toolbox",0),n=["feature","dataZoom"];if(e&&null!=e.get(n)){var r=e.getModel(n),i=[],o=jq(r),a=Ks(t,o);return zq(a.xAxisModels,(function(t){return s(t,"xAxis","xAxisIndex")})),zq(a.yAxisModels,(function(t){return s(t,"yAxis","yAxisIndex")})),i}function s(t,e,n){var o=t.componentIndex,a={type:"select",$fromToolbox:!0,filterMode:r.get("filterMode",!0)||"filter",id:Bq+e+o};a[n]=o,i.push(a)}}));var Hq=Fq;function Zq(t){t.registerComponentModel(WY),t.registerComponentView(ZY),zY("saveAsImage",XY),zY("magicType",JY),zY("dataView",fq),zY("dataZoom",Hq),zY("restore",Oq),pS(DY)}var Gq=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Q(e,t),e.type="tooltip",e.dependencies=["axisPointer"],e.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},e}(vf),Xq=Gq;function Uq(t){var e=t.get("confine");return null!=e?!!e:"richText"===t.get("renderMode")}function Yq(t){if(U.domSupported)for(var e=document.documentElement.style,n=0,r=t.length;n<r;n++)if(t[n]in e)return t[n]}var qq=Yq(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),Kq=Yq(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function Jq(t,e){if(!t)return e;e=Wp(e,!0);var n=t.indexOf(e);return t=-1===n?e:"-"+t.slice(0,n)+"-"+e,t.toLowerCase()}function tK(t,e){var n=t.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(t);return n?e?n[e]:n:null}var eK=Jq(Kq,"transition"),nK=Jq(qq,"transform"),rK="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(U.transform3dSupported?"will-change:transform;":"");function iK(t){return t="left"===t?"right":"right"===t?"left":"top"===t?"bottom":"top",t}function oK(t,e,n){if(!Wt(n)||"inside"===n)return"";var r=t.get("backgroundColor"),i=t.get("borderWidth");e=qp(e);var o,a=iK(n),s=Math.max(1.5*Math.round(i),6),l="",u=nK+":";kt(["left","right"],a)>-1?(l+="top:50%",u+="translateY(-50%) rotate("+(o="left"===a?-225:-45)+"deg)"):(l+="left:50%",u+="translateX(-50%) rotate("+(o="top"===a?225:45)+"deg)");var c=o*Math.PI/180,h=s+i,d=h*Math.abs(Math.cos(c))+h*Math.abs(Math.sin(c)),p=Math.round(100*((d-Math.SQRT2*i)/2+Math.SQRT2*i-(d-h)/2))/100;l+=";"+a+":-"+p+"px";var f=e+" solid "+i+"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 aK(t,e){var n="cubic-bezier(0.23,1,0.32,1)",r=" "+t/2+"s "+n,i="opacity"+r+",visibility"+r;return e||(r=" "+t+"s "+n,i+=U.transformSupported?","+nK+r:",left"+r+",top"+r),eK+":"+i}function sK(t,e,n){var r=t.toFixed(0)+"px",i=e.toFixed(0)+"px";if(!U.transformSupported)return n?"top:"+i+";left:"+r+";":[["top",i],["left",r]];var o=U.transform3dSupported,a="translate"+(o?"3d":"")+"("+r+","+i+(o?",0":"")+")";return n?"top:0;left:0;"+nK+":"+a+";":[["top",0],["left",0],[qq,a]]}function lK(t){var e=[],n=t.get("fontSize"),r=t.getTextColor();r&&e.push("color:"+r),e.push("font:"+t.getFont()),n&&e.push("line-height:"+Math.round(3*n/2)+"px");var i=t.get("textShadowColor"),o=t.get("textShadowBlur")||0,a=t.get("textShadowOffsetX")||0,s=t.get("textShadowOffsetY")||0;return i&&o&&e.push("text-shadow:"+a+"px "+s+"px "+o+"px "+i),Pt(["decoration","align"],(function(n){var r=t.get(n);r&&e.push("text-"+n+":"+r)})),e.join(";")}function uK(t,e,n){var r=[],i=t.get("transitionDuration"),o=t.get("backgroundColor"),a=t.get("shadowBlur"),s=t.get("shadowColor"),l=t.get("shadowOffsetX"),u=t.get("shadowOffsetY"),c=t.getModel("textStyle"),h=Cm(t,"html"),d=l+"px "+u+"px "+a+"px "+s;return r.push("box-shadow:"+d),e&&i&&r.push(aK(i,n)),o&&r.push("background-color:"+o),Pt(["width","color","radius"],(function(e){var n="border-"+e,i=Wp(n),o=t.get(i);null!=o&&r.push(n+":"+o+("color"===e?"":"px"))})),r.push(lK(c)),null!=h&&r.push("padding:"+jp(h).join("px ")+"px"),r.join(";")+";"}function cK(t,e,n,r,i){var o=e&&e.painter;if(n){var a=o&&o.getViewportRoot();a&&tn(t,a,n,r,i)}else{t[0]=r,t[1]=i;var s=o&&o.getViewportRootOffset();s&&(t[0]+=s.offsetLeft,t[1]+=s.offsetTop)}t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}var hK=function(){function t(t,e){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,U.wxa)return null;var n=document.createElement("div");n.domBelongToZr=!0,this.el=n;var r=this._zr=t.getZr(),i=e.appendTo,o=i&&(Wt(i)?document.querySelector(i):Gt(i)?i:Ft(i)&&i(t.getDom()));cK(this._styleCoord,r,o,t.getWidth()/2,t.getHeight()/2),(o||t.getDom()).appendChild(n),this._api=t,this._container=o;var a=this;n.onmouseenter=function(){a._enterable&&(clearTimeout(a._hideTimeout),a._show=!0),a._inContent=!0},n.onmousemove=function(t){if(t=t||window.event,!a._enterable){var e=r.handler,n=r.painter.getViewportRoot();gn(n,t,!0),e.dispatch("mousemove",t)}},n.onmouseleave=function(){a._inContent=!1,a._enterable&&a._show&&a.hideLater(a._hideDelay)}}return t.prototype.update=function(t){if(!this._container){var e=this._api.getDom(),n=tK(e,"position"),r=e.style;"absolute"!==r.position&&"absolute"!==n&&(r.position="relative")}var i=t.get("alwaysShowContent");i&&this._moveIfResized(),this._alwaysShowContent=i,this.el.className=t.get("className")||""},t.prototype.show=function(t,e){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,r=n.style,i=this._styleCoord;n.innerHTML?r.cssText=rK+uK(t,!this._firstShow,this._longHide)+sK(i[0],i[1],!0)+"border-color:"+qp(e)+";"+(t.get("extraCssText")||"")+";pointer-events:"+(this._enterable?"auto":"none"):r.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},t.prototype.setContent=function(t,e,n,r,i){var o=this.el;if(null!=t){var a="";if(Wt(i)&&"item"===n.get("trigger")&&!Uq(n)&&(a=oK(n,r,i)),Wt(t))o.innerHTML=t+a;else if(t){o.innerHTML="",Bt(t)||(t=[t]);for(var s=0;s<t.length;s++)Gt(t[s])&&t[s].parentNode!==o&&o.appendChild(t[s]);if(a&&o.childNodes.length){var l=document.createElement("div");l.innerHTML=a,o.appendChild(l)}}}else o.innerHTML=""},t.prototype.setEnterable=function(t){this._enterable=t},t.prototype.getSize=function(){var t=this.el;return[t.offsetWidth,t.offsetHeight]},t.prototype.moveTo=function(t,e){var n=this._styleCoord;if(cK(n,this._zr,this._container,t,e),null!=n[0]&&null!=n[1]){var r=this.el.style,i=sK(n[0],n[1]);Pt(i,(function(t){r[t[0]]=t[1]}))}},t.prototype._moveIfResized=function(){var t=this._styleCoord[2],e=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),e*this._zr.getHeight())},t.prototype.hide=function(){var t=this,e=this.el.style;e.visibility="hidden",e.opacity="0",U.transform3dSupported&&(e.willChange=""),this._show=!1,this._longHideTimeout=setTimeout((function(){return t._longHide=!0}),500)},t.prototype.hideLater=function(t){!this._show||this._inContent&&this._enterable||this._alwaysShowContent||(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(Nt(this.hide,this),t)):this.hide())},t.prototype.isShow=function(){return this._show},t.prototype.dispose=function(){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var t=this.el.parentNode;t&&t.removeChild(this.el),this.el=this._container=null},t}(),dK=hK,pK=function(){function t(t){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=t.getZr(),vK(this._styleCoord,this._zr,t.getWidth()/2,t.getHeight()/2)}return t.prototype.update=function(t){var e=t.get("alwaysShowContent");e&&this._moveIfResized(),this._alwaysShowContent=e},t.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},t.prototype.setContent=function(t,e,n,r,i){var o=this;Qt(t)&&kv(""),this.el&&this._zr.remove(this.el);var a=n.getModel("textStyle");this.el=new Vc({style:{rich:e.richTextStyles,text:t,lineHeight:22,borderWidth:1,borderColor:r,textShadowColor:a.get("textShadowColor"),fill:n.get(["textStyle","color"]),padding:Cm(n,"richText"),verticalAlign:"top",align:"left"},z:n.get("z")}),Pt(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],(function(t){o.el.style[t]=n.get(t)})),Pt(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],(function(t){o.el.style[t]=a.get(t)||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}))},t.prototype.setEnterable=function(t){this._enterable=t},t.prototype.getSize=function(){var t=this.el,e=this.el.getBoundingRect(),n=gK(t.style);return[e.width+n.left+n.right,e.height+n.top+n.bottom]},t.prototype.moveTo=function(t,e){var n=this.el;if(n){var r=this._styleCoord;vK(r,this._zr,t,e),t=r[0],e=r[1];var i=n.style,o=fK(i.borderWidth||0),a=gK(i);n.x=t+o+a.left,n.y=e+o+a.top,n.markRedraw()}},t.prototype._moveIfResized=function(){var t=this._styleCoord[2],e=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),e*this._zr.getHeight())},t.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},t.prototype.hideLater=function(t){!this._show||this._inContent&&this._enterable||this._alwaysShowContent||(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(Nt(this.hide,this),t)):this.hide())},t.prototype.isShow=function(){return this._show},t.prototype.dispose=function(){this._zr.remove(this.el)},t}();function fK(t){return Math.max(0,t)}function gK(t){var e=fK(t.shadowBlur||0),n=fK(t.shadowOffsetX||0),r=fK(t.shadowOffsetY||0);return{left:fK(e-n),right:fK(e+n),top:fK(e-r),bottom:fK(e+r)}}function vK(t,e,n,r){t[0]=n,t[1]=r,t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}var mK=pK,yK=new Ac({shape:{x:-1,y:-1,width:2,height:2}}),bK=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Q(e,t),e.prototype.init=function(t,e){if(!U.node&&e.getDom()){var n=t.getComponent("tooltip"),r=this._renderMode=ol(n.get("renderMode"));this._tooltipContent="richText"===r?new mK(e):new dK(e,{appendTo:n.get("appendToBody",!0)?"body":n.get("appendTo",!0)})}},e.prototype.render=function(t,e,n){if(!U.node&&n.getDom()){this.group.removeAll(),this._tooltipModel=t,this._ecModel=e,this._api=n;var r=this._tooltipContent;r.update(t),r.setEnterable(t.get("enterable")),this._initGlobalListener(),this._keepShow(),"richText"!==this._renderMode&&t.get("transitionDuration")?m_(this,"_updatePosition",50,"fixRate"):y_(this,"_updatePosition")}},e.prototype._initGlobalListener=function(){var t=this._tooltipModel,e=t.get("triggerOn");GG("itemTooltip",this._api,Nt((function(t,n,r){"none"!==e&&(e.indexOf(t)>=0?this._tryShow(n,r):"leave"===t&&this._hide(r))}),this))},e.prototype._keepShow=function(){var t=this._tooltipModel,e=this._ecModel,n=this._api,r=t.get("triggerOn");if(null!=this._lastX&&null!=this._lastY&&"none"!==r&&"click"!==r){var i=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout((function(){!n.isDisposed()&&i.manuallyShowTip(t,e,n,{x:i._lastX,y:i._lastY,dataByCoordSys:i._lastDataByCoordSys})}))}},e.prototype.manuallyShowTip=function(t,e,n,r){if(r.from!==this.uid&&!U.node&&n.getDom()){var i=xK(r,n);this._ticket="";var o=r.dataByCoordSys,a=kK(r,e,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"},i)}else if(r.tooltip&&null!=r.x&&null!=r.y){var l=yK;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},i)}else if(o)this._tryShow({offsetX:r.x,offsetY:r.y,position:r.position,dataByCoordSys:o,tooltipOption:r.tooltipOption},i);else if(null!=r.seriesIndex){if(this._manuallyAxisShowTip(t,e,n,r))return;var u=nX(r,e),c=u.point[0],h=u.point[1];null!=c&&null!=h&&this._tryShow({offsetX:c,offsetY:h,target:u.el,position:r.position,positionDefault:"bottom"},i)}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},i))}},e.prototype.manuallyHideTip=function(t,e,n,r){var i=this._tooltipContent;this._tooltipModel&&i.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,r.from!==this.uid&&this._hide(xK(r,n))},e.prototype._manuallyAxisShowTip=function(t,e,n,r){var i=r.seriesIndex,o=r.dataIndex,a=e.getComponent("axisPointer").coordSysAxesInfo;if(null!=i&&null!=o&&null!=a){var s=e.getSeriesByIndex(i);if(s){var l=s.getData(),u=_K([l.getItemModel(o),s,(s.coordinateSystem||{}).model],this._tooltipModel);if("axis"===u.get("trigger"))return n.dispatchAction({type:"updateAxisPointer",seriesIndex:i,dataIndex:o,position:r.position}),!0}}},e.prototype._tryShow=function(t,e){var n=t.target,r=this._tooltipModel;if(r){this._lastX=t.offsetX,this._lastY=t.offsetY;var i=t.dataByCoordSys;if(i&&i.length)this._showAxisTooltip(i,t);else if(n){var o,a,s=Qc(n);if("legend"===s.ssrType)return;this._lastDataByCoordSys=null,hx(n,(function(t){return null!=Qc(t).dataIndex?(o=t,!0):null!=Qc(t).tooltipConfig?(a=t,!0):void 0}),!0),o?this._showSeriesItemTooltip(t,o,e):a?this._showComponentItemTooltip(t,a,e):this._hide(e)}else this._lastDataByCoordSys=null,this._hide(e)}},e.prototype._showOrMove=function(t,e){var n=t.get("showDelay");e=Nt(e,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(e,n):e()},e.prototype._showAxisTooltip=function(t,e){var n=this._ecModel,r=this._tooltipModel,i=[e.offsetX,e.offsetY],o=_K([e.tooltipOption],r),a=this._renderMode,s=[],l=pm("section",{blocks:[],noHeader:!0}),u=[],c=new Mm;Pt(t,(function(t){Pt(t.dataByAxis,(function(t){var e=n.getComponent(t.axisDim+"Axis",t.axisIndex),i=t.value;if(e&&null!=i){var o=$G(i,e.axis,n,t.seriesDataIndices,t.valueLabelOpt),h=pm("section",{header:o,noHeader:!ie(o),sortBlocks:!0,blocks:[]});l.blocks.push(h),Pt(t.seriesDataIndices,(function(l){var d=n.getSeriesByIndex(l.seriesIndex),p=l.dataIndexInside,f=d.getDataParams(p);if(!(f.dataIndex<0)){f.axisDim=t.axisDim,f.axisIndex=t.axisIndex,f.axisType=t.axisType,f.axisId=t.axisId,f.axisValue=Pk(e.axis,{value:i}),f.axisValueLabel=o,f.marker=c.makeTooltipMarker("item",qp(f.color),a);var g=xv(d.formatTooltip(p,!0,null)),v=g.frag;if(v){var m=_K([d],r).get("valueFormatter");h.blocks.push(m?Ot({valueFormatter:m},v):v)}g.text&&u.push(g.text),s.push(f)}}))}}))})),l.blocks.reverse(),u.reverse();var h=e.position,d=o.get("order"),p=bm(l,c,a,d,n.get("useUTC"),o.get("textStyle"));p&&u.unshift(p);var f="richText"===a?"\n\n":"<br/>",g=u.join(f);this._showOrMove(o,(function(){this._updateContentNotChangedOnAxis(t,s)?this._updatePosition(o,h,i[0],i[1],this._tooltipContent,s):this._showTooltipContent(o,g,s,Math.random()+"",i[0],i[1],h,null,c)}))},e.prototype._showSeriesItemTooltip=function(t,e,n){var r=this._ecModel,i=Qc(e),o=i.seriesIndex,a=r.getSeriesByIndex(o),s=i.dataModel||a,l=i.dataIndex,u=i.dataType,c=s.getData(u),h=this._renderMode,d=t.positionDefault,p=_K([c.getItemModel(l),s,a&&(a.coordinateSystem||{}).model],this._tooltipModel,d?{position:d}:null),f=p.get("trigger");if(null==f||"item"===f){var g=s.getDataParams(l,u),v=new Mm;g.marker=v.makeTooltipMarker("item",qp(g.color),h);var m=xv(s.formatTooltip(l,!1,u)),y=p.get("order"),b=p.get("valueFormatter"),_=m.frag,x=_?bm(b?Ot({valueFormatter:b},_):_,v,h,y,r.get("useUTC"),p.get("textStyle")):m.text,w="item_"+s.name+"_"+l;this._showOrMove(p,(function(){this._showTooltipContent(p,x,g,w,t.offsetX,t.offsetY,t.position,t.target,v)})),n({type:"showTip",dataIndexInside:l,dataIndex:c.getRawIndex(l),seriesIndex:o,from:this.uid})}},e.prototype._showComponentItemTooltip=function(t,e,n){var r="html"===this._renderMode,i=Qc(e),o=i.tooltipConfig,a=o.option||{},s=a.encodeHTMLContent;if(Wt(a)){var l=a;a={content:l,formatter:l},s=!0}s&&r&&a.content&&(a=_t(a),a.content=ln(a.content));var u=[a],c=this._ecModel.getComponent(i.componentMainType,i.componentIndex);c&&u.push(c),u.push({formatter:a.content});var h=t.positionDefault,d=_K(u,this._tooltipModel,h?{position:h}:null),p=d.get("content"),f=Math.random()+"",g=new Mm;this._showOrMove(d,(function(){var n=_t(d.get("formatterParams")||{});this._showTooltipContent(d,p,n,f,t.offsetX,t.offsetY,t.position,e,g)})),n({type:"showTip",from:this.uid})},e.prototype._showTooltipContent=function(t,e,n,r,i,o,a,s,l){if(this._ticket="",t.get("showContent")&&t.get("show")){var u=this._tooltipContent;u.setEnterable(t.get("enterable"));var c=t.get("formatter");a=a||t.get("position");var h=e,d=this._getNearestPoint([i,o],n,t.get("trigger"),t.get("borderColor")),p=d.color;if(c)if(Wt(c)){var f=t.ecModel.get("useUTC"),g=Bt(n)?n[0]:n,v=g&&g.axisType&&g.axisType.indexOf("time")>=0;h=c,v&&(h=wp(g.axisValue,h,f)),h=Zp(h,n,!0)}else if(Ft(c)){var m=Nt((function(e,r){e===this._ticket&&(u.setContent(r,l,t,p,a),this._updatePosition(t,a,i,o,u,n,s))}),this);this._ticket=r,h=c(n,r,m)}else h=c;u.setContent(h,l,t,p,a),u.show(t,p),this._updatePosition(t,a,i,o,u,n,s)}},e.prototype._getNearestPoint=function(t,e,n,r){return"axis"===n||Bt(e)?{color:r||("html"===this._renderMode?"#fff":"none")}:Bt(e)?void 0:{color:r||e.color||e.borderColor}},e.prototype._updatePosition=function(t,e,n,r,i,o,a){var s=this._api.getWidth(),l=this._api.getHeight();e=e||t.get("position");var u=i.getSize(),c=t.get("align"),h=t.get("verticalAlign"),d=a&&a.getBoundingRect().clone();if(a&&d.applyTransform(a.transform),Ft(e)&&(e=e([n,r],o,i.el,d,{viewSize:[s,l],contentSize:u.slice()})),Bt(e))n=es(e[0],s),r=es(e[1],l);else if(Qt(e)){var p=e;p.width=u[0],p.height=u[1];var f=af(p,{width:s,height:l});n=f.x,r=f.y,c=null,h=null}else if(Wt(e)&&a){var g=SK(e,d,u,t.get("borderWidth"));n=g[0],r=g[1]}else{g=wK(n,r,i,s,l,c?null:20,h?null:20);n=g[0],r=g[1]}if(c&&(n-=AK(c)?u[0]/2:"right"===c?u[0]:0),h&&(r-=AK(h)?u[1]/2:"bottom"===h?u[1]:0),Uq(t)){g=OK(n,r,i,s,l);n=g[0],r=g[1]}i.moveTo(n,r)},e.prototype._updateContentNotChangedOnAxis=function(t,e){var n=this._lastDataByCoordSys,r=this._cbParamsList,i=!!n&&n.length===t.length;return i&&Pt(n,(function(n,o){var a=n.dataByAxis||[],s=t[o]||{},l=s.dataByAxis||[];i=i&&a.length===l.length,i&&Pt(a,(function(t,n){var o=l[n]||{},a=t.seriesDataIndices||[],s=o.seriesDataIndices||[];i=i&&t.value===o.value&&t.axisType===o.axisType&&t.axisId===o.axisId&&a.length===s.length,i&&Pt(a,(function(t,e){var n=s[e];i=i&&t.seriesIndex===n.seriesIndex&&t.dataIndex===n.dataIndex})),r&&Pt(t.seriesDataIndices,(function(t){var n=t.seriesIndex,o=e[n],a=r[n];o&&a&&a.data!==o.data&&(i=!1)}))}))})),this._lastDataByCoordSys=t,this._cbParamsList=e,!!i},e.prototype._hide=function(t){this._lastDataByCoordSys=null,t({type:"hideTip",from:this.uid})},e.prototype.dispose=function(t,e){!U.node&&e.getDom()&&(y_(this,"_updatePosition"),this._tooltipContent.dispose(),JG("itemTooltip",e))},e.type="tooltip",e}(Hm);function _K(t,e,n){var r,i=e.ecModel;n?(r=new Qd(n,i,i),r=new Qd(e.option,r,i)):r=e;for(var o=t.length-1;o>=0;o--){var a=t[o];a&&(a instanceof Qd&&(a=a.get("tooltip",!0)),Wt(a)&&(a={formatter:a}),a&&(r=new Qd(a,r,i)))}return r}function xK(t,e){return t.dispatchAction||Nt(e.dispatchAction,e)}function wK(t,e,n,r,i,o,a){var s=n.getSize(),l=s[0],u=s[1];return null!=o&&(t+l+o+2>r?t-=l+o:t+=o),null!=a&&(e+u+a>i?e-=u+a:e+=a),[t,e]}function OK(t,e,n,r,i){var o=n.getSize(),a=o[0],s=o[1];return t=Math.min(t+a,r)-a,e=Math.min(e+s,i)-s,t=Math.max(t,0),e=Math.max(e,0),[t,e]}function SK(t,e,n,r){var i=n[0],o=n[1],a=Math.ceil(Math.SQRT2*r)+8,s=0,l=0,u=e.width,c=e.height;switch(t){case"inside":s=e.x+u/2-i/2,l=e.y+c/2-o/2;break;case"top":s=e.x+u/2-i/2,l=e.y-o-a;break;case"bottom":s=e.x+u/2-i/2,l=e.y+c+a;break;case"left":s=e.x-i-a,l=e.y+c/2-o/2;break;case"right":s=e.x+u+a,l=e.y+c/2-o/2}return[s,l]}function AK(t){return"center"===t||"middle"===t}function kK(t,e,n){var r=Js(t).queryOptionMap,i=r.keys()[0];if(i&&"series"!==i){var o=nl(e,i,r.get(i),{useDefault:!1,enableAll:!1,enableNone:!1}),a=o.models[0];if(a){var s,l=n.getViewOfComponentModel(a);return l.group.traverse((function(e){var n=Qc(e).tooltipConfig;if(n&&n.name===t.name)return s=e,!0})),s?{componentMainType:i,componentIndex:a.componentIndex,el:s}:void 0}}}var CK=bK;function MK(t){pS(gX),t.registerComponentModel(Xq),t.registerComponentView(CK),t.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},me),t.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},me)}var TK=["rect","polygon","keep","clear"];function PK(t,e){var n=Ms(t?t.brush:[]);if(n.length){var r=[];Pt(n,(function(t){var e=t.hasOwnProperty("toolbox")?t.toolbox:[];e instanceof Array&&(r=r.concat(e))}));var i=t&&t.toolbox;Bt(i)&&(i=i[0]),i||(i={feature:{}},t.toolbox=[i]);var o=i.feature||(i.feature={}),a=o.brush||(o.brush={}),s=a.type||(a.type=[]);s.push.apply(s,r),IK(s),e&&!s.length&&s.push.apply(s,TK)}}function IK(t){var e={};Pt(t,(function(t){e[t]=1})),t.length=0,Pt(e,(function(e,n){t.push(n)}))}var $K=Pt;function EK(t){if(t)for(var e in t)if(t.hasOwnProperty(e))return!0}function RK(t,e,n){var r={};return $K(e,(function(e){var o=r[e]=i();$K(t[e],(function(t,r){if(ez.isValidType(r)){var i={type:r,visual:t};n&&n(i,e),o[r]=new ez(i),"opacity"===r&&(i=_t(i),i.type="colorAlpha",o.__hidden.__alphaForOpacity=new ez(i))}}))})),r;function i(){var t=function(){};t.prototype.__hidden=t.prototype;var e=new t;return e}}function DK(t,e,n){var r;Pt(n,(function(t){e.hasOwnProperty(t)&&EK(e[t])&&(r=!0)})),r&&Pt(n,(function(n){e.hasOwnProperty(n)&&EK(e[n])?t[n]=_t(e[n]):delete t[n]}))}function LK(t,e,n,r,i,o){var a,s={};function l(t){return ox(n,a,t)}function u(t,e){sx(n,a,t,e)}function c(t,c){a=null==o?t:c;var h=n.getRawDataItem(a);if(!h||!1!==h.visualMap)for(var d=r.call(i,t),p=e[d],f=s[d],g=0,v=f.length;g<v;g++){var m=f[g];p[m]&&p[m].applyVisual(t,l,u)}}Pt(t,(function(t){var n=ez.prepareVisualTypes(e[t]);s[t]=n})),null==o?n.each(c):n.each([o],c)}function NK(t,e,n,r){var i={};return Pt(t,(function(t){var n=ez.prepareVisualTypes(e[t]);i[t]=n})),{progress:function(t,o){var a,s;function l(t){return ox(o,s,t)}function u(t,e){sx(o,s,t,e)}null!=r&&(a=o.getDimensionIndex(r));var c=o.getStore();while(null!=(s=t.next())){var h=o.getRawDataItem(s);if(!h||!1!==h.visualMap)for(var d=null!=r?c.get(a,s):s,p=n(d),f=e[p],g=i[p],v=0,m=g.length;v<m;v++){var y=g[v];f[y]&&f[y].applyVisual(d,l,u)}}}}}function zK(t){var e=t.brushType,n={point:function(r){return BK[e].point(r,n,t)},rect:function(r){return BK[e].rect(r,n,t)}};return n}var BK={lineX:FK(0),lineY:FK(1),rect:{point:function(t,e,n){return t&&n.boundingRect.contain(t[0],t[1])},rect:function(t,e,n){return t&&n.boundingRect.intersect(t)}},polygon:{point:function(t,e,n){return t&&n.boundingRect.contain(t[0],t[1])&&Hk(n.range,t[0],t[1])},rect:function(t,e,n){var r=n.range;if(!t||r.length<=1)return!1;var i=t.x,o=t.y,a=t.width,s=t.height,l=r[0];return!!(Hk(r,i,o)||Hk(r,i+a,o)||Hk(r,i,o+s)||Hk(r,i+a,o+s)||Hn.create(t).contain(l[0],l[1])||qb(i,o,i+a,o,r)||qb(i,o,i,o+s,r)||qb(i+a,o,i+a,o+s,r)||qb(i,o+s,i+a,o+s,r))||void 0}}};function FK(t){var e=["x","y"],n=["width","height"];return{point:function(e,n,r){if(e){var i=r.range,o=e[t];return WK(o,i)}},rect:function(r,i,o){if(r){var a=o.range,s=[r[e[t]],r[e[t]]+r[n[t]]];return s[1]<s[0]&&s.reverse(),WK(s[0],a)||WK(s[1],a)||WK(a[0],s)||WK(a[1],s)}}}}function WK(t,e){return e[0]<=t&&t<=e[1]}var jK=["inBrush","outOfBrush"],VK="__ecBrushSelect",QK="__ecInBrushSelectEvent";function HK(t){t.eachComponent({mainType:"brush"},(function(e){var n=e.brushTargetManager=new Nq(e.option,t);n.setInputRanges(e.areas,t)}))}function ZK(t,e,n){var r,i,o=[];t.eachComponent({mainType:"brush"},(function(t){n&&"takeGlobalCursor"===n.type&&t.setBrushOption("brush"===n.key?n.brushOption:{brushType:!1})})),HK(t),t.eachComponent({mainType:"brush"},(function(e,n){var a={brushId:e.id,brushIndex:n,brushName:e.name,areas:_t(e.areas),selected:[]};o.push(a);var s=e.option,l=s.brushLink,u=[],c=[],h=[],d=!1;n||(r=s.throttleType,i=s.throttleDelay);var p=It(e.areas,(function(t){var e=qK[t.brushType],n=St({boundingRect:e?e(t):void 0},t);return n.selectors=zK(n),n})),f=RK(e.option,jK,(function(t){t.mappingMethod="fixed"}));function g(t){return"all"===l||!!u[t]}function v(t){return!!t.length}function m(t,e){var n=t.coordinateSystem;d=d||n.hasAxisBrushed(),g(e)&&n.eachActiveState(t.getData(),(function(t,e){"active"===t&&(c[e]=1)}))}function y(n,r,i){if(n.brushSelector&&!YK(e,r)&&(Pt(p,(function(r){e.brushTargetManager.controlSeries(r,n,t)&&i.push(r),d=d||v(i)})),g(r)&&v(i))){var o=n.getData();o.each((function(t){UK(n,i,o,t)&&(c[t]=1)}))}}Bt(l)&&Pt(l,(function(t){u[t]=1})),t.eachSeries((function(t,e){var n=h[e]=[];"parallel"===t.subType?m(t,e):y(t,e,n)})),t.eachSeries((function(t,e){var n={seriesId:t.id,seriesIndex:e,seriesName:t.name,dataIndex:[]};a.selected.push(n);var r=h[e],i=t.getData(),o=g(e)?function(t){return c[t]?(n.dataIndex.push(i.getRawIndex(t)),"inBrush"):"outOfBrush"}:function(e){return UK(t,r,i,e)?(n.dataIndex.push(i.getRawIndex(e)),"inBrush"):"outOfBrush"};(g(e)?d:v(r))&&LK(jK,f,i,o)}))})),GK(e,r,i,o,n)}function GK(t,e,n,r,i){if(i){var o=t.getZr();if(!o[QK]){o[VK]||(o[VK]=XK);var a=m_(o,VK,n,e);a(t,r)}}}function XK(t,e){if(!t.isDisposed()){var n=t.getZr();n[QK]=!0,t.dispatchAction({type:"brushSelect",batch:e}),n[QK]=!1}}function UK(t,e,n,r){for(var i=0,o=e.length;i<o;i++){var a=e[i];if(t.brushSelector(r,n,a.selectors,a))return!0}}function YK(t,e){var n=t.option.seriesIndex;return null!=n&&"all"!==n&&(Bt(n)?kt(n,e)<0:e!==n)}var qK={rect:function(t){return KK(t.range)},polygon:function(t){for(var e,n=t.range,r=0,i=n.length;r<i;r++){e=e||[[1/0,-1/0],[1/0,-1/0]];var o=n[r];o[0]<e[0][0]&&(e[0][0]=o[0]),o[0]>e[0][1]&&(e[0][1]=o[0]),o[1]<e[1][0]&&(e[1][0]=o[1]),o[1]>e[1][1]&&(e[1][1]=o[1])}return e&&KK(e)}};function KK(t){return new Hn(t[0][0],t[1][0],t[0][1]-t[0][0],t[1][1]-t[1][0])}var JK=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Q(e,t),e.prototype.init=function(t,e){this.ecModel=t,this.api=e,this.model,(this._brushController=new uj(e.getZr())).on("brush",Nt(this._onBrush,this)).mount()},e.prototype.render=function(t,e,n,r){this.model=t,this._updateController(t,e,n,r)},e.prototype.updateTransform=function(t,e,n,r){HK(e),this._updateController(t,e,n,r)},e.prototype.updateVisual=function(t,e,n,r){this.updateTransform(t,e,n,r)},e.prototype.updateView=function(t,e,n,r){this._updateController(t,e,n,r)},e.prototype._updateController=function(t,e,n,r){(!r||r.$from!==t.id)&&this._brushController.setPanels(t.brushTargetManager.makePanelOpts(n)).enableBrush(t.brushOption).updateCovers(t.areas.slice())},e.prototype.dispose=function(){this._brushController.dispose()},e.prototype._onBrush=function(t){var e=this.model.id,n=this.model.brushTargetManager.setOutputRanges(t.areas,this.ecModel);(!t.isEnd||t.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:e,areas:_t(n),$from:e}),t.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:e,areas:_t(n),$from:e})},e.type="brush",e}(Hm),tJ=JK,eJ="#ddd",nJ=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.areas=[],n.brushOption={},n}return Q(e,t),e.prototype.optionUpdated=function(t,e){var n=this.option;!e&&DK(n,t,["inBrush","outOfBrush"]);var r=n.inBrush=n.inBrush||{};n.outOfBrush=n.outOfBrush||{color:eJ},r.hasOwnProperty("liftZ")||(r.liftZ=5)},e.prototype.setAreas=function(t){t&&(this.areas=It(t,(function(t){return rJ(this.option,t)}),this))},e.prototype.setBrushOption=function(t){this.brushOption=rJ(this.option,t),this.brushType=this.brushOption.brushType},e.type="brush",e.dependencies=["geo","grid","xAxis","yAxis","parallel","series"],e.defaultOption={seriesIndex:"all",brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:"rgba(210,219,238,0.3)",borderColor:"#D2DBEE"},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4},e}(vf);function rJ(t,e){return xt({brushType:t.brushType,brushMode:t.brushMode,transformable:t.transformable,brushStyle:new Qd(t.brushStyle).getItemStyle(),removeOnClick:t.removeOnClick,z:t.z},e,!0)}var iJ=nJ,oJ=["rect","polygon","lineX","lineY","keep","clear"],aJ=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Q(e,t),e.prototype.render=function(t,e,n){var r,i,o;e.eachComponent({mainType:"brush"},(function(t){r=t.brushType,i=t.brushOption.brushMode||"single",o=o||!!t.areas.length})),this._brushType=r,this._brushMode=i,Pt(t.get("type",!0),(function(e){t.setIconStatus(e,("keep"===e?"multiple"===i:"clear"===e?o:e===r)?"emphasis":"normal")}))},e.prototype.updateView=function(t,e,n){this.render(t,e,n)},e.prototype.getIcons=function(){var t=this.model,e=t.get("icon",!0),n={};return Pt(t.get("type",!0),(function(t){e[t]&&(n[t]=e[t])})),n},e.prototype.onclick=function(t,e,n){var r=this._brushType,i=this._brushMode;"clear"===n?(e.dispatchAction({type:"axisAreaSelect",intervals:[]}),e.dispatchAction({type:"brush",command:"clear",areas:[]})):e.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:"keep"===n?r:r!==n&&n,brushMode:"keep"===n?"multiple"===i?"single":"multiple":i}})},e.getDefaultOption=function(t){var e={show:!0,type:oJ.slice(),icon:{rect:"M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13",polygon:"M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2",lineX:"M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4",lineY:"M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4",keep:"M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z",clear:"M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2"},title:t.getLocaleModel().get(["toolbox","brush","title"])};return e},e}(LY),sJ=aJ;function lJ(t){t.registerComponentView(tJ),t.registerComponentModel(iJ),t.registerPreprocessor(PK),t.registerVisual(t.PRIORITY.VISUAL.BRUSH,ZK),t.registerAction({type:"brush",event:"brush",update:"updateVisual"},(function(t,e){e.eachComponent({mainType:"brush",query:t},(function(e){e.setAreas(t.areas)}))})),t.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},me),t.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},me),zY("brush",sJ)}var uJ=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.layoutMode={type:"box",ignoreSize:!0},n}return Q(e,t),e.type="title",e.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}},e}(vf),cJ=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Q(e,t),e.prototype.render=function(t,e,n){if(this.group.removeAll(),t.get("show")){var r=this.group,i=t.getModel("textStyle"),o=t.getModel("subtextStyle"),a=t.get("textAlign"),s=Jt(t.get("textBaseline"),t.get("textVerticalAlign")),l=new Vc({style:_d(i,{text:t.get("text"),fill:i.getTextColor()},{disableBox:!0}),z2:10}),u=l.getBoundingRect(),c=t.get("subtext"),h=new Vc({style:_d(o,{text:c,fill:o.getTextColor(),y:u.height+t.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),d=t.get("link"),p=t.get("sublink"),f=t.get("triggerEvent",!0);l.silent=!d&&!f,h.silent=!p&&!f,d&&l.on("click",(function(){Kp(d,"_"+t.get("target"))})),p&&h.on("click",(function(){Kp(p,"_"+t.get("subtarget"))})),Qc(l).eventData=Qc(h).eventData=f?{componentType:"title",componentIndex:t.componentIndex}:null,r.add(l),c&&r.add(h);var g=r.getBoundingRect(),v=t.getBoxLayoutParams();v.width=g.width,v.height=g.height;var m=af(v,{width:n.getWidth(),height:n.getHeight()},t.get("padding"));a||(a=t.get("left")||t.get("right"),"middle"===a&&(a="center"),"right"===a?m.x+=m.width:"center"===a&&(m.x+=m.width/2)),s||(s=t.get("top")||t.get("bottom"),"center"===s&&(s="middle"),"bottom"===s?m.y+=m.height:"middle"===s&&(m.y+=m.height/2),s=s||"top"),r.x=m.x,r.y=m.y,r.markRedraw();var y={align:a,verticalAlign:s};l.setStyle(y),h.setStyle(y),g=r.getBoundingRect();var b=m.margin,_=t.getItemStyle(["color","opacity"]);_.fill=t.get("backgroundColor");var x=new Ac({shape:{x:g.x-b[3],y:g.y-b[0],width:g.width+b[1]+b[3],height:g.height+b[0]+b[2],r:t.get("borderRadius")},style:_,subPixelOptimize:!0,silent:!0});r.add(x)}},e.type="title",e}(Hm);function hJ(t){t.registerComponentModel(uJ),t.registerComponentView(cJ)}var dJ=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.layoutMode="box",n}return Q(e,t),e.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n),this._initData()},e.prototype.mergeOption=function(e){t.prototype.mergeOption.apply(this,arguments),this._initData()},e.prototype.setCurrentIndex=function(t){null==t&&(t=this.option.currentIndex);var e=this._data.count();this.option.loop?t=(t%e+e)%e:(t>=e&&(t=e-1),t<0&&(t=0)),this.option.currentIndex=t},e.prototype.getCurrentIndex=function(){return this.option.currentIndex},e.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},e.prototype.setPlayState=function(t){this.option.autoPlay=!!t},e.prototype.getPlayState=function(){return!!this.option.autoPlay},e.prototype._initData=function(){var t,e=this.option,n=e.data||[],r=e.axisType,i=this._names=[];"category"===r?(t=[],Pt(n,(function(e,n){var r,o=js(Is(e),"");Qt(e)?(r=_t(e),r.value=n):r=n,t.push(r),i.push(o)}))):t=n;var o={category:"ordinal",time:"time",value:"number"}[r]||"number",a=this._data=new GS([{name:"value",type:o}],this);a.initData(t,i)},e.prototype.getData=function(){return this._data},e.prototype.getCategories=function(){if("category"===this.get("axisType"))return this._names.slice()},e.type="timeline",e.defaultOption={z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:5,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:"#000"},data:[]},e}(vf),pJ=dJ,fJ=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Q(e,t),e.type="timeline.slider",e.defaultOption=Ud(pJ.defaultOption,{backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"circle",symbolSize:12,lineStyle:{show:!0,width:2,color:"#DAE1F5"},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:"#A4B1D7"},itemStyle:{color:"#A4B1D7",borderWidth:1},checkpointStyle:{symbol:"circle",symbolSize:15,color:"#316bf3",borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0, 0, 0, 0.3)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:24,itemGap:12,position:"left",playIcon:"path://M31.6,53C17.5,53,6,41.5,6,27.4S17.5,1.8,31.6,1.8C45.7,1.8,57.2,13.3,57.2,27.4S45.7,53,31.6,53z M31.6,3.3 C18.4,3.3,7.5,14.1,7.5,27.4c0,13.3,10.8,24.1,24.1,24.1C44.9,51.5,55.7,40.7,55.7,27.4C55.7,14.1,44.9,3.3,31.6,3.3z M24.9,21.3 c0-2.2,1.6-3.1,3.5-2l10.5,6.1c1.899,1.1,1.899,2.9,0,4l-10.5,6.1c-1.9,1.1-3.5,0.2-3.5-2V21.3z",stopIcon:"path://M30.9,53.2C16.8,53.2,5.3,41.7,5.3,27.6S16.8,2,30.9,2C45,2,56.4,13.5,56.4,27.6S45,53.2,30.9,53.2z M30.9,3.5C17.6,3.5,6.8,14.4,6.8,27.6c0,13.3,10.8,24.1,24.101,24.1C44.2,51.7,55,40.9,55,27.6C54.9,14.4,44.1,3.5,30.9,3.5z M36.9,35.8c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H36c0.5,0,0.9,0.4,0.9,1V35.8z M27.8,35.8 c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H27c0.5,0,0.9,0.4,0.9,1L27.8,35.8L27.8,35.8z",nextIcon:"M2,18.5A1.52,1.52,0,0,1,.92,18a1.49,1.49,0,0,1,0-2.12L7.81,9.36,1,3.11A1.5,1.5,0,1,1,3,.89l8,7.34a1.48,1.48,0,0,1,.49,1.09,1.51,1.51,0,0,1-.46,1.1L3,18.08A1.5,1.5,0,0,1,2,18.5Z",prevIcon:"M10,.5A1.52,1.52,0,0,1,11.08,1a1.49,1.49,0,0,1,0,2.12L4.19,9.64,11,15.89a1.5,1.5,0,1,1-2,2.22L1,10.77A1.48,1.48,0,0,1,.5,9.68,1.51,1.51,0,0,1,1,8.58L9,.92A1.5,1.5,0,0,1,10,.5Z",prevBtnSize:18,nextBtnSize:18,color:"#A4B1D7",borderColor:"#A4B1D7",borderWidth:1},emphasis:{label:{show:!0,color:"#6f778d"},itemStyle:{color:"#316BF3"},controlStyle:{color:"#316BF3",borderColor:"#316BF3",borderWidth:2}},progress:{lineStyle:{color:"#316BF3"},itemStyle:{color:"#316BF3"},label:{color:"#6f778d"}},data:[]}),e}(pJ);Mt(fJ,_v.prototype);var gJ=fJ,vJ=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Q(e,t),e.type="timeline",e}(Hm),mJ=vJ,yJ=function(t){function e(e,n,r,i){var o=t.call(this,e,n,r)||this;return o.type=i||"value",o}return Q(e,t),e.prototype.getLabelModel=function(){return this.model.getModel("label")},e.prototype.isHorizontal=function(){return"horizontal"===this.model.get("orient")},e}(kC),bJ=yJ,_J=Math.PI,xJ=Ys(),wJ=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Q(e,t),e.prototype.init=function(t,e){this.api=e},e.prototype.render=function(t,e,n){if(this.model=t,this.api=n,this.ecModel=e,this.group.removeAll(),t.get("show",!0)){var r=this._layout(t,n),i=this._createGroup("_mainGroup"),o=this._createGroup("_labelGroup"),a=this._axis=this._createAxis(r,t);t.formatTooltip=function(t){var e=a.scale.getLabel({value:t});return pm("nameValue",{noName:!0,value:e})},Pt(["AxisLine","AxisTick","Control","CurrentPointer"],(function(e){this["_render"+e](r,i,a,t)}),this),this._renderAxisLabel(r,o,a,t),this._position(r,t)}this._doPlayStop(),this._updateTicksStatus()},e.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},e.prototype.dispose=function(){this._clearTimer()},e.prototype._layout=function(t,e){var n,r=t.get(["label","position"]),i=t.get("orient"),o=SJ(t,e);n=null==r||"auto"===r?"horizontal"===i?o.y+o.height/2<e.getHeight()/2?"-":"+":o.x+o.width/2<e.getWidth()/2?"+":"-":Wt(r)?{horizontal:{top:"-",bottom:"+"},vertical:{left:"-",right:"+"}}[i][r]:r;var a,s,l,u={horizontal:"center",vertical:n>=0||"+"===n?"left":"right"},c={horizontal:n>=0||"+"===n?"top":"bottom",vertical:"middle"},h={horizontal:0,vertical:_J/2},d="vertical"===i?o.height:o.width,p=t.getModel("controlStyle"),f=p.get("show",!0),g=f?p.get("itemSize"):0,v=f?p.get("itemGap"):0,m=g+v,y=t.get(["label","rotate"])||0;y=y*_J/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=d;"left"===b||"bottom"===b?(_&&(a=[0,0],O+=m),x&&(s=[O,0],O+=m),w&&(l=[S-g,0],S-=m)):(_&&(a=[S-g,0],S-=m),x&&(s=[0,0],O+=m),w&&(l=[S-g,0],S-=m));var A=[O,S];return t.get("inverse")&&A.reverse(),{viewRect:o,mainLength:d,orient:i,rotation:h[i],labelRotation:y,labelPosOpt:n,labelAlign:t.get(["label","align"])||u[i],labelBaseline:t.get(["label","verticalAlign"])||t.get(["label","baseline"])||c[i],playPosition:a,prevBtnPosition:s,nextBtnPosition:l,axisExtent:A,controlSize:g,controlGap:v}},e.prototype._position=function(t,e){var n=this._mainGroup,r=this._labelGroup,i=t.viewRect;if("vertical"===t.orient){var o=An(),a=i.x,s=i.y+i.height;Tn(o,o,[-a,-s]),Pn(o,o,-_J/2),Tn(o,o,[a,s]),i=i.clone(),i.applyTransform(o)}var l=v(i),u=v(n.getBoundingRect()),c=v(r.getBoundingRect()),h=[n.x,n.y],d=[r.x,r.y];d[0]=h[0]=l[0][0];var p=t.labelPosOpt;if(null==p||Wt(p)){var f="+"===p?0:1;m(h,u,l,1,f),m(d,c,l,1,1-f)}else{f=p>=0?0:1;m(h,u,l,1,f),d[1]=h[1]+p}function g(t){t.originX=l[0][0]-t.x,t.originY=l[1][0]-t.y}function v(t){return[[t.x,t.x+t.width],[t.y,t.y+t.height]]}function m(t,e,n,r,i){t[r]+=n[r][i]-e[r][i]}n.setPosition(h),r.setPosition(d),n.rotation=r.rotation=t.rotation,g(n),g(r)},e.prototype._createAxis=function(t,e){var n=e.getData(),r=e.get("axisType"),i=OJ(e,r);i.getTicks=function(){return n.mapArray(["value"],(function(t){return{value:t}}))};var o=n.getDataExtent("value");i.setExtent(o[0],o[1]),i.calcNiceTicks();var a=new bJ("value",i,t.axisExtent,r);return a.model=e,a},e.prototype._createGroup=function(t){var e=this[t]=new La;return this.group.add(e),e},e.prototype._renderAxisLine=function(t,e,n,r){var i=n.getExtent();if(r.get(["lineStyle","show"])){var o=new tb({shape:{x1:i[0],y1:0,x2:i[1],y2:0},style:Ot({lineCap:"round"},r.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});e.add(o);var a=this._progressLine=new tb({shape:{x1:i[0],x2:this._currentPointer?this._currentPointer.x:i[0],y1:0,y2:0},style:St({lineCap:"round",lineWidth:o.style.lineWidth},r.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});e.add(a)}},e.prototype._renderAxisTick=function(t,e,n,r){var i=this,o=r.getData(),a=n.scale.getTicks();this._tickSymbols=[],Pt(a,(function(t){var a=n.dataToCoord(t.value),s=o.getItemModel(t.value),l=s.getModel("itemStyle"),u=s.getModel(["emphasis","itemStyle"]),c=s.getModel(["progress","itemStyle"]),h={x:a,y:0,onclick:Nt(i._changeTimeline,i,t.value)},d=kJ(s,l,e,h);d.ensureState("emphasis").style=u.getItemStyle(),d.ensureState("progress").style=c.getItemStyle(),Qh(d);var p=Qc(d);s.get("tooltip")?(p.dataIndex=t.value,p.dataModel=r):p.dataIndex=p.dataModel=null,i._tickSymbols.push(d)}))},e.prototype._renderAxisLabel=function(t,e,n,r){var i=this,o=n.getLabelModel();if(o.get("show")){var a=r.getData(),s=n.getViewLabels();this._tickLabels=[],Pt(s,(function(r){var o=r.tickValue,s=a.getItemModel(o),l=s.getModel("label"),u=s.getModel(["emphasis","label"]),c=s.getModel(["progress","label"]),h=n.dataToCoord(r.tickValue),d=new Vc({x:h,y:0,rotation:t.labelRotation-t.rotation,onclick:Nt(i._changeTimeline,i,o),silent:!1,style:_d(l,{text:r.formattedLabel,align:t.labelAlign,verticalAlign:t.labelBaseline})});d.ensureState("emphasis").style=_d(u),d.ensureState("progress").style=_d(c),e.add(d),Qh(d),xJ(d).dataIndex=o,i._tickLabels.push(d)}))}},e.prototype._renderControl=function(t,e,n,r){var i=t.controlSize,o=t.rotation,a=r.getModel("controlStyle").getItemStyle(),s=r.getModel(["emphasis","controlStyle"]).getItemStyle(),l=r.getPlayState(),u=r.get("inverse",!0);function c(t,n,l,u){if(t){var c=ba(Jt(r.get(["controlStyle",n+"BtnSize"]),i),i),h=[0,-c/2,c,c],d=AJ(r,n+"Icon",h,{x:t[0],y:t[1],originX:i/2,originY:0,rotation:u?-o:0,rectHover:!0,style:a,onclick:l});d.ensureState("emphasis").style=s,e.add(d),Qh(d)}}c(t.nextBtnPosition,"next",Nt(this._changeTimeline,this,u?"-":"+")),c(t.prevBtnPosition,"prev",Nt(this._changeTimeline,this,u?"+":"-")),c(t.playPosition,l?"stop":"play",Nt(this._handlePlayClick,this,!l),!0)},e.prototype._renderCurrentPointer=function(t,e,n,r){var i=r.getData(),o=r.getCurrentIndex(),a=i.getItemModel(o).getModel("checkpointStyle"),s=this,l={onCreate:function(t){t.draggable=!0,t.drift=Nt(s._handlePointerDrag,s),t.ondragend=Nt(s._handlePointerDragend,s),CJ(t,s._progressLine,o,n,r,!0)},onUpdate:function(t){CJ(t,s._progressLine,o,n,r)}};this._currentPointer=kJ(a,a,this._mainGroup,{},this._currentPointer,l)},e.prototype._handlePlayClick=function(t){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:t,from:this.uid})},e.prototype._handlePointerDrag=function(t,e,n){this._clearTimer(),this._pointerChangeTimeline([n.offsetX,n.offsetY])},e.prototype._handlePointerDragend=function(t){this._pointerChangeTimeline([t.offsetX,t.offsetY],!0)},e.prototype._pointerChangeTimeline=function(t,e){var n=this._toAxisCoord(t)[0],r=this._axis,i=rs(r.getExtent().slice());n>i[1]&&(n=i[1]),n<i[0]&&(n=i[0]),this._currentPointer.x=n,this._currentPointer.markRedraw();var o=this._progressLine;o&&(o.shape.x2=n,o.dirty());var a=this._findNearestTick(n),s=this.model;(e||a!==s.getCurrentIndex()&&s.get("realtime"))&&this._changeTimeline(a)},e.prototype._doPlayStop=function(){var t=this;this._clearTimer(),this.model.getPlayState()&&(this._timer=setTimeout((function(){var e=t.model;t._changeTimeline(e.getCurrentIndex()+(e.get("rewind",!0)?-1:1))}),this.model.get("playInterval")))},e.prototype._toAxisCoord=function(t){var e=this._mainGroup.getLocalTransform();return Vb(t,e,!0)},e.prototype._findNearestTick=function(t){var e,n=this.model.getData(),r=1/0,i=this._axis;return n.each(["value"],(function(n,o){var a=i.dataToCoord(n),s=Math.abs(a-t);s<r&&(r=s,e=o)})),e},e.prototype._clearTimer=function(){this._timer&&(clearTimeout(this._timer),this._timer=null)},e.prototype._changeTimeline=function(t){var e=this.model.getCurrentIndex();"+"===t?t=e+1:"-"===t&&(t=e-1),this.api.dispatchAction({type:"timelineChange",currentIndex:t,from:this.uid})},e.prototype._updateTicksStatus=function(){var t=this.model.getCurrentIndex(),e=this._tickSymbols,n=this._tickLabels;if(e)for(var r=0;r<e.length;r++)e&&e[r]&&e[r].toggleState("progress",r<t);if(n)for(r=0;r<n.length;r++)n&&n[r]&&n[r].toggleState("progress",xJ(n[r]).dataIndex<=t)},e.type="timeline.slider",e}(mJ);function OJ(t,e){if(e=e||t.get("type"),e)switch(e){case"category":return new TA({ordinalMeta:t.getCategories(),extent:[1/0,-1/0]});case"time":return new sk({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC")});default:return new $A}}function SJ(t,e){return af(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()},t.get("padding"))}function AJ(t,e,n,r){var i=r.style,o=Yb(t.get(["controlStyle",e]),r||{},new Hn(n[0],n[1],n[2],n[3]));return i&&o.setStyle(i),o}function kJ(t,e,n,r,i,o){var a=e.get("color");if(i)i.setColor(a),n.add(i),o&&o.onUpdate(i);else{var s=t.get("symbol");i=kx(s,-1,-1,2,2,a),i.setStyle("strokeNoScale",!0),n.add(i),o&&o.onCreate(i)}var l=e.getItemStyle(["color"]);i.setStyle(l),r=xt({rectHover:!0,z2:100},r,!0);var u=Cx(t.get("symbolSize"));r.scaleX=u[0]/2,r.scaleY=u[1]/2;var c=Mx(t.get("symbolOffset"),u);c&&(r.x=(r.x||0)+c[0],r.y=(r.y||0)+c[1]);var h=t.get("symbolRotate");return r.rotation=(h||0)*Math.PI/180||0,i.attr(r),i.updateTransform(),i}function CJ(t,e,n,r,i,o){if(!t.dragging){var a=i.getModel("checkpointStyle"),s=r.dataToCoord(i.getData().get("value",n));if(o||!a.get("animation",!0))t.attr({x:s,y:0}),e&&e.attr({shape:{x2:s}});else{var l={duration:a.get("animationDuration",!0),easing:a.get("animationEasing",!0)};t.stopAnimation(null,!0),t.animateTo({x:s,y:0},l),e&&e.animateTo({shape:{x2:s}},l)}}}var MJ=wJ;function TJ(t){t.registerAction({type:"timelineChange",event:"timelineChanged",update:"prepareAndUpdate"},(function(t,e,n){var r=e.getComponent("timeline");return r&&null!=t.currentIndex&&(r.setCurrentIndex(t.currentIndex),!r.get("loop",!0)&&r.isIndexMax()&&r.getPlayState()&&(r.setPlayState(!1),n.dispatchAction({type:"timelinePlayChange",playState:!1,from:t.from}))),e.resetOption("timeline",{replaceMerge:r.get("replaceMerge",!0)}),St({currentIndex:r.option.currentIndex},t)})),t.registerAction({type:"timelinePlayChange",event:"timelinePlayChanged",update:"update"},(function(t,e){var n=e.getComponent("timeline");n&&null!=t.playState&&n.setPlayState(t.playState)}))}function PJ(t){var e=t&&t.timeline;Bt(e)||(e=e?[e]:[]),Pt(e,(function(t){t&&IJ(t)}))}function IJ(t){var e=t.type,n={number:"value",time:"time"};if(n[e]&&(t.axisType=n[e],delete t.type),$J(t),EJ(t,"controlPosition")){var r=t.controlStyle||(t.controlStyle={});EJ(r,"position")||(r.position=t.controlPosition),"none"!==r.position||EJ(r,"show")||(r.show=!1,delete r.position),delete t.controlPosition}Pt(t.data||[],(function(t){Qt(t)&&!Bt(t)&&(!EJ(t,"value")&&EJ(t,"name")&&(t.value=t.name),$J(t))}))}function $J(t){var e=t.itemStyle||(t.itemStyle={}),n=e.emphasis||(e.emphasis={}),r=t.label||t.label||{},i=r.normal||(r.normal={}),o={normal:1,emphasis:1};Pt(r,(function(t,e){o[e]||EJ(i,e)||(i[e]=t)})),n.label&&!EJ(r,"emphasis")&&(r.emphasis=n.label,delete n.label)}function EJ(t,e){return t.hasOwnProperty(e)}function RJ(t){t.registerComponentModel(gJ),t.registerComponentView(MJ),t.registerSubTypeDefaulter("timeline",(function(){return"slider"})),TJ(t),t.registerPreprocessor(PJ)}function DJ(t,e){if(!t)return!1;for(var n=Bt(t)?t:[t],r=0;r<n.length;r++)if(n[r]&&n[r][e])return!0;return!1}function LJ(t){Ts(t,"label",["show"])}var NJ=Ys(),zJ=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.createdBySelf=!1,n}return Q(e,t),e.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n),this._mergeOption(t,n,!1,!0)},e.prototype.isAnimationEnabled=function(){if(U.node)return!1;var t=this.__hostSeries;return this.getShallow("animation")&&t&&t.isAnimationEnabled()},e.prototype.mergeOption=function(t,e){this._mergeOption(t,e,!1,!1)},e.prototype._mergeOption=function(t,e,n,r){var i=this.mainType;n||e.eachSeries((function(t){var n=t.get(this.mainType,!0),o=NJ(t)[i];n&&n.data?(o?o._mergeOption(n,e,!0):(r&&LJ(n),Pt(n.data,(function(t){t instanceof Array?(LJ(t[0]),LJ(t[1])):LJ(t)})),o=this.createMarkerModelFromSeries(n,this,e),Ot(o,{mainType:this.mainType,seriesIndex:t.seriesIndex,name:t.name,createdBySelf:!0}),o.__hostSeries=t),NJ(t)[i]=o):NJ(t)[i]=null}),this)},e.prototype.formatTooltip=function(t,e,n){var r=this.getData(),i=this.getRawValue(t),o=r.getName(t);return pm("section",{header:this.name,blocks:[pm("nameValue",{name:o,value:i,noName:!o,noValue:null==i})]})},e.prototype.getData=function(){return this._data},e.prototype.setData=function(t){this._data=t},e.prototype.getDataParams=function(t,e){var n=_v.prototype.getDataParams.call(this,t,e),r=this.__hostSeries;return r&&(n.seriesId=r.id,n.seriesName=r.name,n.seriesType=r.subType),n},e.getMarkerModelFromSeries=function(t,e){return NJ(t)[e]},e.type="marker",e.dependencies=["series","grid","polar","geo"],e}(vf);Mt(zJ,_v.prototype);var BJ=zJ,FJ=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Q(e,t),e.prototype.createMarkerModelFromSeries=function(t,n,r){return new e(t,n,r)},e.type="markPoint",e.defaultOption={z:5,symbol:"pin",symbolSize:50,tooltip:{trigger:"item"},label:{show:!0,position:"inside"},itemStyle:{borderWidth:2},emphasis:{label:{show:!0}}},e}(BJ),WJ=FJ;function jJ(t){return!(isNaN(parseFloat(t.x))&&isNaN(parseFloat(t.y)))}function VJ(t){return!isNaN(parseFloat(t.x))&&!isNaN(parseFloat(t.y))}function QJ(t,e,n,r,i,o){var a=[],s=oA(e,r),l=s?e.getCalculationInfo("stackResultDimension"):r,u=KJ(e,l,t),c=e.indicesOfNearest(l,u)[0];a[i]=e.get(n,c),a[o]=e.get(l,c);var h=e.get(r,c),d=is(e.get(r,c));return d=Math.min(d,20),d>=0&&(a[o]=+a[o].toFixed(d)),[a,h]}var HJ={min:zt(QJ,"min"),max:zt(QJ,"max"),average:zt(QJ,"average"),median:zt(QJ,"median")};function ZJ(t,e){if(e){var n=t.getData(),r=t.coordinateSystem,i=r&&r.dimensions;if(!VJ(e)&&!Bt(e.coord)&&Bt(i)){var o=GJ(e,n,r,t);if(e=_t(e),e.type&&HJ[e.type]&&o.baseAxis&&o.valueAxis){var a=kt(i,o.baseAxis.dim),s=kt(i,o.valueAxis.dim),l=HJ[e.type](n,o.baseDataDim,o.valueDataDim,a,s);e.coord=l[0],e.value=l[1]}else e.coord=[null!=e.xAxis?e.xAxis:e.radiusAxis,null!=e.yAxis?e.yAxis:e.angleAxis]}if(null!=e.coord&&Bt(i))for(var u=e.coord,c=0;c<2;c++)HJ[u[c]]&&(u[c]=KJ(n,n.mapDimension(i[c]),u[c]));else e.coord=[];return e}}function GJ(t,e,n,r){var i={};return null!=t.valueIndex||null!=t.valueDim?(i.valueDataDim=null!=t.valueIndex?e.getDimension(t.valueIndex):t.valueDim,i.valueAxis=n.getAxis(XJ(r,i.valueDataDim)),i.baseAxis=n.getOtherAxis(i.valueAxis),i.baseDataDim=e.mapDimension(i.baseAxis.dim)):(i.baseAxis=r.getBaseAxis(),i.valueAxis=n.getOtherAxis(i.baseAxis),i.baseDataDim=e.mapDimension(i.baseAxis.dim),i.valueDataDim=e.mapDimension(i.valueAxis.dim)),i}function XJ(t,e){var n=t.getData().getDimensionInfo(e);return n&&n.coordDim}function UJ(t,e){return!(t&&t.containData&&e.coord&&!jJ(e))||t.containData(e.coord)}function YJ(t,e,n){return!(t&&t.containZone&&e.coord&&n.coord&&!jJ(e)&&!jJ(n))||t.containZone(e.coord,n.coord)}function qJ(t,e){return t?function(t,n,r,i){var o=i<2?t.coord&&t.coord[i]:t.value;return Cv(o,e[i])}:function(t,n,r,i){return Cv(t.value,e[i])}}function KJ(t,e,n){if("average"===n){var r=0,i=0;return t.each(e,(function(t,e){isNaN(t)||(r+=t,i++)})),r/i}return"median"===n?t.getMedian(e):t.getDataExtent(e)["max"===n?1:0]}var JJ=Ys(),t0=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Q(e,t),e.prototype.init=function(){this.markerGroupMap=de()},e.prototype.render=function(t,e,n){var r=this,i=this.markerGroupMap;i.each((function(t){JJ(t).keep=!1})),e.eachSeries((function(t){var i=BJ.getMarkerModelFromSeries(t,r.type);i&&r.renderSeries(t,i,e,n)})),i.each((function(t){!JJ(t).keep&&r.group.remove(t.group)}))},e.prototype.markKeep=function(t){JJ(t).keep=!0},e.prototype.toggleBlurSeries=function(t,e){var n=this;Pt(t,(function(t){var r=BJ.getMarkerModelFromSeries(t,n.type);if(r){var i=r.getData();i.eachItemGraphicEl((function(t){t&&(e?Th(t):Ph(t))}))}}))},e.type="marker",e}(Hm),e0=t0;function n0(t,e,n){var r=e.coordinateSystem;t.each((function(i){var o,a=t.getItemModel(i),s=es(a.get("x"),n.getWidth()),l=es(a.get("y"),n.getHeight());if(isNaN(s)||isNaN(l)){if(e.getMarkerPosition)o=e.getMarkerPosition(t.getValues(t.dimensions,i));else if(r){var u=t.get(r.dimensions[0],i),c=t.get(r.dimensions[1],i);o=r.dataToPoint([u,c])}}else o=[s,l];isNaN(s)||(o[0]=s),isNaN(l)||(o[1]=l),t.setItemLayout(i,o)}))}var r0=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Q(e,t),e.prototype.updateTransform=function(t,e,n){e.eachSeries((function(t){var e=BJ.getMarkerModelFromSeries(t,"markPoint");e&&(n0(e.getData(),t,n),this.markerGroupMap.get(t.id).updateLayout())}),this)},e.prototype.renderSeries=function(t,e,n,r){var i=t.coordinateSystem,o=t.id,a=t.getData(),s=this.markerGroupMap,l=s.get(o)||s.set(o,new xP),u=i0(i,t,e);e.setData(u),n0(e.getData(),t,r),u.each((function(t){var n=u.getItemModel(t),r=n.getShallow("symbol"),i=n.getShallow("symbolSize"),o=n.getShallow("symbolRotate"),s=n.getShallow("symbolOffset"),l=n.getShallow("symbolKeepAspect");if(Ft(r)||Ft(i)||Ft(o)||Ft(s)){var c=e.getRawValue(t),h=e.getDataParams(t);Ft(r)&&(r=r(c,h)),Ft(i)&&(i=i(c,h)),Ft(o)&&(o=o(c,h)),Ft(s)&&(s=s(c,h))}var d=n.getModel("itemStyle").getItemStyle(),p=ax(a,"color");d.fill||(d.fill=p),u.setItemVisual(t,{symbol:r,symbolSize:i,symbolRotate:o,symbolOffset:s,symbolKeepAspect:l,style:d})})),l.updateData(u),this.group.add(l.group),u.eachItemGraphicEl((function(t){t.traverse((function(t){Qc(t).dataModel=e}))})),this.markKeep(l),l.group.silent=e.get("silent")||t.get("silent")},e.type="markPoint",e}(e0);function i0(t,e,n){var r;r=t?It(t&&t.dimensions,(function(t){var n=e.getData().getDimensionInfo(e.getData().mapDimension(t))||{};return Ot(Ot({},n),{name:t,ordinalMeta:null})})):[{name:"value",type:"float"}];var i=new GS(r,n),o=It(n.get("data"),zt(ZJ,e));t&&(o=Et(o,zt(UJ,t)));var a=qJ(!!t,r);return i.initData(o,null,a),i}var o0=r0;function a0(t){t.registerComponentModel(WJ),t.registerComponentView(o0),t.registerPreprocessor((function(t){DJ(t.series,"markPoint")&&(t.markPoint=t.markPoint||{})}))}var s0=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Q(e,t),e.prototype.createMarkerModelFromSeries=function(t,n,r){return new e(t,n,r)},e.type="markLine",e.defaultOption={z:5,symbol:["circle","arrow"],symbolSize:[8,16],symbolOffset:0,precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end",distance:5},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"},e}(BJ),l0=s0,u0=Ys(),c0=function(t,e,n,r){var i,o=t.getData();if(Bt(r))i=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=e.getAxis(null!=r.yAxis?"y":"x"),l=Kt(r.yAxis,r.xAxis);else{var u=GJ(r,o,e,t);s=u.valueAxis;var c=aA(o,u.valueDataDim);l=KJ(o,c,a)}var h="x"===s.dim?0:1,d=1-h,p=_t(r),f={coord:[]};p.type=null,p.coord=[],p.coord[d]=-1/0,f.coord[d]=1/0;var g=n.get("precision");g>=0&&Vt(l)&&(l=+l.toFixed(Math.min(g,20))),p.coord[h]=f.coord[h]=l,i=[p,f,{type:a,valueIndex:r.valueIndex,value:l}]}else i=[]}var v=[ZJ(t,i[0]),ZJ(t,i[1]),Ot({},i[2])];return v[2].type=v[2].type||null,xt(v[2],v[0]),xt(v[2],v[1]),v};function h0(t){return!isNaN(t)&&!isFinite(t)}function d0(t,e,n,r){var i=1-t,o=r.dimensions[t];return h0(e[i])&&h0(n[i])&&e[t]===n[t]&&r.getAxis(o).containData(e[t])}function p0(t,e){if("cartesian2d"===t.type){var n=e[0].coord,r=e[1].coord;if(n&&r&&(d0(1,n,r,t)||d0(0,n,r,t)))return!0}return UJ(t,e[0])&&UJ(t,e[1])}function f0(t,e,n,r,i){var o,a=r.coordinateSystem,s=t.getItemModel(e),l=es(s.get("x"),i.getWidth()),u=es(s.get("y"),i.getHeight());if(isNaN(l)||isNaN(u)){if(r.getMarkerPosition)o=r.getMarkerPosition(t.getValues(t.dimensions,e));else{var c=a.dimensions,h=t.get(c[0],e),d=t.get(c[1],e);o=a.dataToPoint([h,d])}if(zP(a,"cartesian2d")){var p=a.getAxis("x"),f=a.getAxis("y");c=a.dimensions;h0(t.get(c[0],e))?o[0]=p.toGlobalCoord(p.getExtent()[n?0:1]):h0(t.get(c[1],e))&&(o[1]=f.toGlobalCoord(f.getExtent()[n?0:1]))}isNaN(l)||(o[0]=l),isNaN(u)||(o[1]=u)}else o=[l,u];t.setItemLayout(e,o)}var g0=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Q(e,t),e.prototype.updateTransform=function(t,e,n){e.eachSeries((function(t){var e=BJ.getMarkerModelFromSeries(t,"markLine");if(e){var r=e.getData(),i=u0(e).from,o=u0(e).to;i.each((function(e){f0(i,e,!0,t,n),f0(o,e,!1,t,n)})),r.each((function(t){r.setItemLayout(t,[i.getItemLayout(t),o.getItemLayout(t)])})),this.markerGroupMap.get(t.id).updateLayout()}}),this)},e.prototype.renderSeries=function(t,e,n,r){var i=t.coordinateSystem,o=t.id,a=t.getData(),s=this.markerGroupMap,l=s.get(o)||s.set(o,new PB);this.group.add(l.group);var u=v0(i,t,e),c=u.from,h=u.to,d=u.line;u0(e).from=c,u0(e).to=h,e.setData(d);var p=e.get("symbol"),f=e.get("symbolSize"),g=e.get("symbolRotate"),v=e.get("symbolOffset");function m(e,n,i){var o=e.getItemModel(n);f0(e,n,i,t,r);var s=o.getModel("itemStyle").getItemStyle();null==s.fill&&(s.fill=ax(a,"color")),e.setItemVisual(n,{symbolKeepAspect:o.get("symbolKeepAspect"),symbolOffset:Jt(o.get("symbolOffset",!0),v[i?0:1]),symbolRotate:Jt(o.get("symbolRotate",!0),g[i?0:1]),symbolSize:Jt(o.get("symbolSize"),f[i?0:1]),symbol:Jt(o.get("symbol",!0),p[i?0:1]),style:s})}Bt(p)||(p=[p,p]),Bt(f)||(f=[f,f]),Bt(g)||(g=[g,g]),Bt(v)||(v=[v,v]),u.from.each((function(t){m(c,t,!0),m(h,t,!1)})),d.each((function(t){var e=d.getItemModel(t).getModel("lineStyle").getLineStyle();d.setItemLayout(t,[c.getItemLayout(t),h.getItemLayout(t)]),null==e.stroke&&(e.stroke=c.getItemVisual(t,"style").fill),d.setItemVisual(t,{fromSymbolKeepAspect:c.getItemVisual(t,"symbolKeepAspect"),fromSymbolOffset:c.getItemVisual(t,"symbolOffset"),fromSymbolRotate:c.getItemVisual(t,"symbolRotate"),fromSymbolSize:c.getItemVisual(t,"symbolSize"),fromSymbol:c.getItemVisual(t,"symbol"),toSymbolKeepAspect:h.getItemVisual(t,"symbolKeepAspect"),toSymbolOffset:h.getItemVisual(t,"symbolOffset"),toSymbolRotate:h.getItemVisual(t,"symbolRotate"),toSymbolSize:h.getItemVisual(t,"symbolSize"),toSymbol:h.getItemVisual(t,"symbol"),style:e})})),l.updateData(d),u.line.eachItemGraphicEl((function(t){Qc(t).dataModel=e,t.traverse((function(t){Qc(t).dataModel=e}))})),this.markKeep(l),l.group.silent=e.get("silent")||t.get("silent")},e.type="markLine",e}(e0);function v0(t,e,n){var r;r=t?It(t&&t.dimensions,(function(t){var n=e.getData().getDimensionInfo(e.getData().mapDimension(t))||{};return Ot(Ot({},n),{name:t,ordinalMeta:null})})):[{name:"value",type:"float"}];var i=new GS(r,n),o=new GS(r,n),a=new GS([],n),s=It(n.get("data"),zt(c0,e,t,n));t&&(s=Et(s,zt(p0,t)));var l=qJ(!!t,r);return i.initData(It(s,(function(t){return t[0]})),null,l),o.initData(It(s,(function(t){return t[1]})),null,l),a.initData(It(s,(function(t){return t[2]}))),a.hasItemOption=!0,{from:i,to:o,line:a}}var m0=g0;function y0(t){t.registerComponentModel(l0),t.registerComponentView(m0),t.registerPreprocessor((function(t){DJ(t.series,"markLine")&&(t.markLine=t.markLine||{})}))}var b0=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Q(e,t),e.prototype.createMarkerModelFromSeries=function(t,n,r){return new e(t,n,r)},e.type="markArea",e.defaultOption={z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}},e}(BJ),_0=b0,x0=Ys(),w0=function(t,e,n,r){var i=r[0],o=r[1];if(i&&o){var a=ZJ(t,i),s=ZJ(t,o),l=a.coord,u=s.coord;l[0]=Kt(l[0],-1/0),l[1]=Kt(l[1],-1/0),u[0]=Kt(u[0],1/0),u[1]=Kt(u[1],1/0);var c=wt([{},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 O0(t){return!isNaN(t)&&!isFinite(t)}function S0(t,e,n,r){var i=1-t;return O0(e[i])&&O0(n[i])}function A0(t,e){var n=e.coord[0],r=e.coord[1],i={coord:n,x:e.x0,y:e.y0},o={coord:r,x:e.x1,y:e.y1};return zP(t,"cartesian2d")?!(!n||!r||!S0(1,n,r,t)&&!S0(0,n,r,t))||YJ(t,i,o):UJ(t,i)||UJ(t,o)}function k0(t,e,n,r,i){var o,a=r.coordinateSystem,s=t.getItemModel(e),l=es(s.get(n[0]),i.getWidth()),u=es(s.get(n[1]),i.getHeight());if(isNaN(l)||isNaN(u)){if(r.getMarkerPosition){var c=t.getValues(["x0","y0"],e),h=t.getValues(["x1","y1"],e),d=a.clampData(c),p=a.clampData(h),f=[];"x0"===n[0]?f[0]=d[0]>p[0]?h[0]:c[0]:f[0]=d[0]>p[0]?c[0]:h[0],"y0"===n[1]?f[1]=d[1]>p[1]?h[1]:c[1]:f[1]=d[1]>p[1]?c[1]:h[1],o=r.getMarkerPosition(f,n,!0)}else{var g=t.get(n[0],e),v=t.get(n[1],e),m=[g,v];a.clampData&&a.clampData(m,m),o=a.dataToPoint(m,!0)}if(zP(a,"cartesian2d")){var y=a.getAxis("x"),b=a.getAxis("y");g=t.get(n[0],e),v=t.get(n[1],e);O0(g)?o[0]=y.toGlobalCoord(y.getExtent()["x0"===n[0]?0:1]):O0(v)&&(o[1]=b.toGlobalCoord(b.getExtent()["y0"===n[1]?0:1]))}isNaN(l)||(o[0]=l),isNaN(u)||(o[1]=u)}else o=[l,u];return o}var C0=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],M0=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Q(e,t),e.prototype.updateTransform=function(t,e,n){e.eachSeries((function(t){var e=BJ.getMarkerModelFromSeries(t,"markArea");if(e){var r=e.getData();r.each((function(e){var i=It(C0,(function(i){return k0(r,e,i,t,n)}));r.setItemLayout(e,i);var o=r.getItemGraphicEl(e);o.setShape("points",i)}))}}),this)},e.prototype.renderSeries=function(t,e,n,r){var i=t.coordinateSystem,o=t.id,a=t.getData(),s=this.markerGroupMap,l=s.get(o)||s.set(o,{group:new La});this.group.add(l.group),this.markKeep(l);var u=T0(i,t,e);e.setData(u),u.each((function(e){var n=It(C0,(function(n){return k0(u,e,n,t,r)})),o=i.getAxis("x").scale,s=i.getAxis("y").scale,l=o.getExtent(),c=s.getExtent(),h=[o.parse(u.get("x0",e)),o.parse(u.get("x1",e))],d=[s.parse(u.get("y0",e)),s.parse(u.get("y1",e))];rs(h),rs(d);var p=!(l[0]>h[1]||l[1]<h[0]||c[0]>d[1]||c[1]<d[0]),f=!p;u.setItemLayout(e,{points:n,allClipped:f});var g=u.getItemModel(e).getModel("itemStyle").getItemStyle(),v=ax(a,"color");g.fill||(g.fill=v,Wt(g.fill)&&(g.fill=Mi(g.fill,.4))),g.stroke||(g.stroke=v),u.setItemVisual(e,"style",g)})),u.diff(x0(l).data).add((function(t){var e=u.getItemLayout(t);if(!e.allClipped){var n=new Gy({shape:{points:e.points}});u.setItemGraphicEl(t,n),l.group.add(n)}})).update((function(t,n){var r=x0(l).data.getItemGraphicEl(n),i=u.getItemLayout(t);i.allClipped?r&&l.group.remove(r):(r?sd(r,{shape:{points:i.points}},e,t):r=new Gy({shape:{points:i.points}}),u.setItemGraphicEl(t,r),l.group.add(r))})).remove((function(t){var e=x0(l).data.getItemGraphicEl(t);l.group.remove(e)})).execute(),u.eachItemGraphicEl((function(t,n){var r=u.getItemModel(n),i=u.getItemVisual(n,"style");t.useStyle(u.getItemVisual(n,"style")),yd(t,bd(r),{labelFetcher:e,labelDataIndex:n,defaultText:u.getName(n)||"",inheritColor:Wt(i.fill)?Mi(i.fill,1):"#000"}),Yh(t,r),Zh(t,null,null,r.get(["emphasis","disabled"])),Qc(t).dataModel=e})),x0(l).data=u,l.group.silent=e.get("silent")||t.get("silent")},e.type="markArea",e}(e0);function T0(t,e,n){var r,i,o=["x0","y0","x1","y1"];if(t){var a=It(t&&t.dimensions,(function(t){var n=e.getData(),r=n.getDimensionInfo(n.mapDimension(t))||{};return Ot(Ot({},r),{name:t,ordinalMeta:null})}));i=It(o,(function(t,e){return{name:t,type:a[e%2].type}})),r=new GS(i,n)}else i=[{name:"value",type:"float"}],r=new GS(i,n);var s=It(n.get("data"),zt(w0,e,t,n));t&&(s=Et(s,zt(A0,t)));var l=t?function(t,e,n,r){var o=t.coord[Math.floor(r/2)][r%2];return Cv(o,i[r])}:function(t,e,n,r){return Cv(t.value,i[r])};return r.initData(s,null,l),r.hasItemOption=!0,r}var P0=M0;function I0(t){t.registerComponentModel(_0),t.registerComponentView(P0),t.registerPreprocessor((function(t){DJ(t.series,"markArea")&&(t.markArea=t.markArea||{})}))}var $0=function(t,e){return"all"===e?{type:"all",title:t.getLocaleModel().get(["legend","selector","all"])}:"inverse"===e?{type:"inverse",title:t.getLocaleModel().get(["legend","selector","inverse"])}:void 0},E0=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.layoutMode={type:"box",ignoreSize:!0},n}return Q(e,t),e.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n),t.selected=t.selected||{},this._updateSelector(t)},e.prototype.mergeOption=function(e,n){t.prototype.mergeOption.call(this,e,n),this._updateSelector(e)},e.prototype._updateSelector=function(t){var e=t.selector,n=this.ecModel;!0===e&&(e=t.selector=["all","inverse"]),Bt(e)&&Pt(e,(function(t,r){Wt(t)&&(t={type:t}),e[r]=xt(t,$0(n,t.type))}))},e.prototype.optionUpdated=function(){this._updateData(this.ecModel);var t=this._data;if(t[0]&&"single"===this.get("selectedMode")){for(var e=!1,n=0;n<t.length;n++){var r=t[n].get("name");if(this.isSelected(r)){this.select(r),e=!0;break}}!e&&this.select(t[0].get("name"))}},e.prototype._updateData=function(t){var e=[],n=[];t.eachRawSeries((function(r){var i,o=r.name;if(n.push(o),r.legendVisualProvider){var a=r.legendVisualProvider,s=a.getAllNames();t.isSeriesFiltered(r)||(n=n.concat(s)),s.length?e=e.concat(s):i=!0}else i=!0;i&&Vs(r)&&e.push(r.name)})),this._availableNames=n;var r=this.get("data")||e,i=de(),o=It(r,(function(t){return(Wt(t)||Vt(t))&&(t={name:t}),i.get(t.name)?null:(i.set(t.name,!0),new Qd(t,this,this.ecModel))}),this);this._data=Et(o,(function(t){return!!t}))},e.prototype.getData=function(){return this._data},e.prototype.select=function(t){var e=this.option.selected,n=this.get("selectedMode");if("single"===n){var r=this._data;Pt(r,(function(t){e[t.get("name")]=!1}))}e[t]=!0},e.prototype.unSelect=function(t){"single"!==this.get("selectedMode")&&(this.option.selected[t]=!1)},e.prototype.toggleSelected=function(t){var e=this.option.selected;e.hasOwnProperty(t)||(e[t]=!0),this[e[t]?"unSelect":"select"](t)},e.prototype.allSelect=function(){var t=this._data,e=this.option.selected;Pt(t,(function(t){e[t.get("name",!0)]=!0}))},e.prototype.inverseSelect=function(){var t=this._data,e=this.option.selected;Pt(t,(function(t){var n=t.get("name",!0);e.hasOwnProperty(n)||(e[n]=!0),e[n]=!e[n]}))},e.prototype.isSelected=function(t){var e=this.option.selected;return!(e.hasOwnProperty(t)&&!e[t])&&kt(this._availableNames,t)>=0},e.prototype.getOrient=function(){return"vertical"===this.get("orient")?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},e.type="legend.plain",e.dependencies=["series"],e.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},e}(vf),R0=E0,D0=zt,L0=Pt,N0=La,z0=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.newlineDisabled=!1,n}return Q(e,t),e.prototype.init=function(){this.group.add(this._contentGroup=new N0),this.group.add(this._selectorGroup=new N0),this._isFirstRender=!0},e.prototype.getContentGroup=function(){return this._contentGroup},e.prototype.getSelectorGroup=function(){return this._selectorGroup},e.prototype.render=function(t,e,n){var r=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),t.get("show",!0)){var i=t.get("align"),o=t.get("orient");i&&"auto"!==i||(i="right"===t.get("left")&&"vertical"===o?"right":"left");var a=t.get("selector",!0),s=t.get("selectorPosition",!0);!a||s&&"auto"!==s||(s="horizontal"===o?"end":"start"),this.renderInner(i,t,e,n,a,o,s);var l=t.getBoxLayoutParams(),u={width:n.getWidth(),height:n.getHeight()},c=t.get("padding"),h=af(l,u,c),d=this.layoutInner(t,i,h,r,a,s),p=af(St({width:d.width,height:d.height},l),u,c);this.group.x=p.x-d.x,this.group.y=p.y-d.y,this.group.markRedraw(),this.group.add(this._backgroundEl=VY(d,t))}},e.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},e.prototype.renderInner=function(t,e,n,r,i,o,a){var s=this.getContentGroup(),l=de(),u=e.get("selectedMode"),c=[];n.eachRawSeries((function(t){!t.get("legendHoverLink")&&c.push(t.id)})),L0(e.getData(),(function(i,o){var a=i.get("name");if(!this.newlineDisabled&&(""===a||"\n"===a)){var h=new N0;return h.newline=!0,void s.add(h)}var d=n.getSeriesByName(a)[0];if(!l.get(a)){if(d){var p=d.getData(),f=p.getVisual("legendLineStyle")||{},g=p.getVisual("legendIcon"),v=p.getVisual("style"),m=this._createItem(d,a,o,i,e,t,f,v,g,u,r);m.on("click",D0(W0,a,null,r,c)).on("mouseover",D0(V0,d.name,null,r,c)).on("mouseout",D0(Q0,d.name,null,r,c)),n.ssr&&m.eachChild((function(t){var e=Qc(t);e.seriesIndex=d.seriesIndex,e.dataIndex=o,e.ssrType="legend"})),l.set(a,!0)}else n.eachRawSeries((function(s){if(!l.get(a)&&s.legendVisualProvider){var h=s.legendVisualProvider;if(!h.containName(a))return;var d=h.indexOfName(a),p=h.getItemVisual(d,"style"),f=h.getItemVisual(d,"legendIcon"),g=yi(p.fill);g&&0===g[3]&&(g[3]=.2,p=Ot(Ot({},p),{fill:Ti(g,"rgba")}));var v=this._createItem(s,a,o,i,e,t,{},p,f,u,r);v.on("click",D0(W0,null,a,r,c)).on("mouseover",D0(V0,null,a,r,c)).on("mouseout",D0(Q0,null,a,r,c)),n.ssr&&v.eachChild((function(t){var e=Qc(t);e.seriesIndex=s.seriesIndex,e.dataIndex=o,e.ssrType="legend"})),l.set(a,!0)}}),this);0}}),this),i&&this._createSelector(i,e,r,o,a)},e.prototype._createSelector=function(t,e,n,r,i){var o=this.getSelectorGroup();L0(t,(function(t){var r=t.type,i=new Vc({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){n.dispatchAction({type:"all"===r?"legendAllSelect":"legendInverseSelect"})}});o.add(i);var a=e.getModel("selectorLabel"),s=e.getModel(["emphasis","selectorLabel"]);yd(i,{normal:a,emphasis:s},{defaultText:t.title}),Qh(i)}))},e.prototype._createItem=function(t,e,n,r,i,o,a,s,l,u,c){var h=t.visualDrawType,d=i.get("itemWidth"),p=i.get("itemHeight"),f=i.isSelected(e),g=r.get("symbolRotate"),v=r.get("symbolKeepAspect"),m=r.get("icon");l=m||l||"roundRect";var y=B0(l,r,a,s,h,f,c),b=new N0,_=r.getModel("textStyle");if(!Ft(t.getLegendIcon)||m&&"inherit"!==m){var x="inherit"===m&&t.getData().getVisual("symbol")?"inherit"===g?t.getData().getVisual("symbolRotate"):g:0;b.add(F0({itemWidth:d,itemHeight:p,icon:l,iconRotate:x,itemStyle:y.itemStyle,lineStyle:y.lineStyle,symbolKeepAspect:v}))}else b.add(t.getLegendIcon({itemWidth:d,itemHeight:p,icon:l,iconRotate:g,itemStyle:y.itemStyle,lineStyle:y.lineStyle,symbolKeepAspect:v}));var w="left"===o?d+5:-5,O=o,S=i.get("formatter"),A=e;Wt(S)&&S?A=S.replace("{name}",null!=e?e:""):Ft(S)&&(A=S(e));var k=f?_.getTextColor():r.get("inactiveColor");b.add(new Vc({style:_d(_,{text:A,x:w,y:p/2,fill:k,align:O,verticalAlign:"middle"},{inheritColor:k})}));var C=new Ac({shape:b.getBoundingRect(),style:{fill:"transparent"}}),M=r.getModel("tooltip");return M.get("show")&&e_({el:C,componentModel:i,itemName:e,itemTooltipOption:M.option}),b.add(C),b.eachChild((function(t){t.silent=!0})),C.silent=!u,this.getContentGroup().add(b),Qh(b),b.__legendDataIndex=n,b},e.prototype.layoutInner=function(t,e,n,r,i,o){var a=this.getContentGroup(),s=this.getSelectorGroup();rf(t.get("orient"),a,t.get("itemGap"),n.width,n.height);var l=a.getBoundingRect(),u=[-l.x,-l.y];if(s.markRedraw(),a.markRedraw(),i){rf("horizontal",s,t.get("selectorItemGap",!0));var c=s.getBoundingRect(),h=[-c.x,-c.y],d=t.get("selectorButtonGap",!0),p=t.getOrient().index,f=0===p?"width":"height",g=0===p?"height":"width",v=0===p?"y":"x";"end"===o?h[p]+=l[f]+d:u[p]+=c[f]+d,h[1-p]+=l[g]/2-c[g]/2,s.x=h[0],s.y=h[1],a.x=u[0],a.y=u[1];var m={x:0,y:0};return m[f]=l[f]+d+c[f],m[g]=Math.max(l[g],c[g]),m[v]=Math.min(0,c[v]+h[1-p]),m}return a.x=u[0],a.y=u[1],this.group.getBoundingRect()},e.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},e.type="legend.plain",e}(Hm);function B0(t,e,n,r,i,o,a){function s(t,e){"auto"===t.lineWidth&&(t.lineWidth=e.lineWidth>0?2:0),L0(t,(function(n,r){"inherit"===t[r]&&(t[r]=e[r])}))}var l=e.getModel("itemStyle"),u=l.getItemStyle(),c=0===t.lastIndexOf("empty",0)?"fill":"stroke",h=l.getShallow("decal");u.decal=h&&"inherit"!==h?gw(h,a):r.decal,"inherit"===u.fill&&(u.fill=r[i]),"inherit"===u.stroke&&(u.stroke=r[c]),"inherit"===u.opacity&&(u.opacity=("fill"===i?r:n).opacity),s(u,r);var d=e.getModel("lineStyle"),p=d.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),!o){var f=e.get("inactiveBorderWidth"),g=u[c];u.lineWidth="auto"===f?r.lineWidth>0&&g?2:0:u.lineWidth,u.fill=e.get("inactiveColor"),u.stroke=e.get("inactiveBorderColor"),p.stroke=d.get("inactiveColor"),p.lineWidth=d.get("inactiveWidth")}return{itemStyle:u,lineStyle:p}}function F0(t){var e=t.icon||"roundRect",n=kx(e,0,0,t.itemWidth,t.itemHeight,t.itemStyle.fill,t.symbolKeepAspect);return n.setStyle(t.itemStyle),n.rotation=(t.iconRotate||0)*Math.PI/180,n.setOrigin([t.itemWidth/2,t.itemHeight/2]),e.indexOf("empty")>-1&&(n.style.stroke=n.style.fill,n.style.fill="#fff",n.style.lineWidth=2),n}function W0(t,e,n,r){Q0(t,e,n,r),n.dispatchAction({type:"legendToggleSelect",name:null!=t?t:e}),V0(t,e,n,r)}function j0(t){var e,n=t.getZr().storage.getDisplayList(),r=0,i=n.length;while(r<i&&!(e=n[r].states.emphasis))r++;return e&&e.hoverLayer}function V0(t,e,n,r){j0(n)||n.dispatchAction({type:"highlight",seriesName:t,name:e,excludeSeriesId:r})}function Q0(t,e,n,r){j0(n)||n.dispatchAction({type:"downplay",seriesName:t,name:e,excludeSeriesId:r})}var H0=z0;function Z0(t){var e=t.findComponents({mainType:"legend"});e&&e.length&&t.filterSeries((function(t){for(var n=0;n<e.length;n++)if(!e[n].isSelected(t.name))return!1;return!0}))}function G0(t,e,n){var r,i={},o="toggleSelected"===t;return n.eachComponent("legend",(function(n){o&&null!=r?n[r?"select":"unSelect"](e.name):"allSelect"===t||"inverseSelect"===t?n[t]():(n[t](e.name),r=n.isSelected(e.name));var a=n.getData();Pt(a,(function(t){var e=t.get("name");if("\n"!==e&&""!==e){var r=n.isSelected(e);i.hasOwnProperty(e)?i[e]=i[e]&&r:i[e]=r}}))})),"allSelect"===t||"inverseSelect"===t?{selected:i}:{name:e.name,selected:i}}function X0(t){t.registerAction("legendToggleSelect","legendselectchanged",zt(G0,"toggleSelected")),t.registerAction("legendAllSelect","legendselectall",zt(G0,"allSelect")),t.registerAction("legendInverseSelect","legendinverseselect",zt(G0,"inverseSelect")),t.registerAction("legendSelect","legendselected",zt(G0,"select")),t.registerAction("legendUnSelect","legendunselected",zt(G0,"unSelect"))}function U0(t){t.registerComponentModel(R0),t.registerComponentView(H0),t.registerProcessor(t.PRIORITY.PROCESSOR.SERIES_FILTER,Z0),t.registerSubTypeDefaulter("legend",(function(){return"plain"})),X0(t)}var Y0=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Q(e,t),e.prototype.setScrollDataIndex=function(t){this.option.scrollDataIndex=t},e.prototype.init=function(e,n,r){var i=hf(e);t.prototype.init.call(this,e,n,r),q0(this,e,i)},e.prototype.mergeOption=function(e,n){t.prototype.mergeOption.call(this,e,n),q0(this,this.option,e)},e.type="legend.scroll",e.defaultOption=Ud(R0.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}),e}(R0);function q0(t,e,n){var r=t.getOrient(),i=[1,1];i[r.index]=0,cf(e,n,{type:"box",ignoreSize:!!i})}var K0=Y0,J0=La,t1=["width","height"],e1=["x","y"],n1=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.newlineDisabled=!0,n._currentIndex=0,n}return Q(e,t),e.prototype.init=function(){t.prototype.init.call(this),this.group.add(this._containerGroup=new J0),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new J0)},e.prototype.resetInner=function(){t.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},e.prototype.renderInner=function(e,n,r,i,o,a,s){var l=this;t.prototype.renderInner.call(this,e,n,r,i,o,a,s);var u=this._controllerGroup,c=n.get("pageIconSize",!0),h=Bt(c)?c:[c,c];p("pagePrev",0);var d=n.getModel("pageTextStyle");function p(t,e){var r=t+"DataIndex",o=Yb(n.get("pageIcons",!0)[n.getOrient().name][e],{onclick:Nt(l._pageGo,l,r,n,i)},{x:-h[0]/2,y:-h[1]/2,width:h[0],height:h[1]});o.name=t,u.add(o)}u.add(new Vc({name:"pageText",style:{text:"xx/xx",fill:d.getTextColor(),font:d.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),p("pageNext",1)},e.prototype.layoutInner=function(t,e,n,r,i,o){var a=this.getSelectorGroup(),s=t.getOrient().index,l=t1[s],u=e1[s],c=t1[1-s],h=e1[1-s];i&&rf("horizontal",a,t.get("selectorItemGap",!0));var d=t.get("selectorButtonGap",!0),p=a.getBoundingRect(),f=[-p.x,-p.y],g=_t(n);i&&(g[l]=n[l]-p[l]-d);var v=this._layoutContentAndController(t,r,g,s,l,c,h,u);if(i){if("end"===o)f[s]+=v[l]+d;else{var m=p[l]+d;f[s]-=m,v[u]-=m}v[l]+=p[l]+d,f[1-s]+=v[h]+v[c]/2-p[c]/2,v[c]=Math.max(v[c],p[c]),v[h]=Math.min(v[h],p[h]+f[1-s]),a.x=f[0],a.y=f[1],a.markRedraw()}return v},e.prototype._layoutContentAndController=function(t,e,n,r,i,o,a,s){var l=this.getContentGroup(),u=this._containerGroup,c=this._controllerGroup;rf(t.get("orient"),l,t.get("itemGap"),r?n.width:null,r?null:n.height),rf("horizontal",c,t.get("pageButtonItemGap",!0));var h=l.getBoundingRect(),d=c.getBoundingRect(),p=this._showController=h[i]>n[i],f=[-h.x,-h.y];e||(f[r]=l[s]);var g=[0,0],v=[-d.x,-d.y],m=Jt(t.get("pageButtonGap",!0),t.get("itemGap",!0));if(p){var y=t.get("pageButtonPosition",!0);"end"===y?v[r]+=n[i]-d[i]:g[r]+=d[i]+m}v[1-r]+=h[o]/2-d[o]/2,l.setPosition(f),u.setPosition(g),c.setPosition(v);var b={x:0,y:0};if(b[i]=p?n[i]:h[i],b[o]=Math.max(h[o],d[o]),b[a]=Math.min(0,d[a]+v[1-r]),u.__rectSize=n[i],p){var _={x:0,y:0};_[i]=Math.max(n[i]-d[i]-m,0),_[o]=b[o],u.setClipPath(new Ac({shape:_})),u.__rectSize=_[i]}else c.eachChild((function(t){t.attr({invisible:!0,silent:!0})}));var x=this._getPageInfo(t);return null!=x.pageIndex&&sd(l,{x:x.contentPosition[0],y:x.contentPosition[1]},p?t:null),this._updatePageInfoView(t,x),b},e.prototype._pageGo=function(t,e,n){var r=this._getPageInfo(e)[t];null!=r&&n.dispatchAction({type:"legendScroll",scrollDataIndex:r,legendId:e.id})},e.prototype._updatePageInfoView=function(t,e){var n=this._controllerGroup;Pt(["pagePrev","pageNext"],(function(r){var i=r+"DataIndex",o=null!=e[i],a=n.childOfName(r);a&&(a.setStyle("fill",o?t.get("pageIconColor",!0):t.get("pageIconInactiveColor",!0)),a.cursor=o?"pointer":"default")}));var r=n.childOfName("pageText"),i=t.get("pageFormatter"),o=e.pageIndex,a=null!=o?o+1:0,s=e.pageCount;r&&i&&r.setStyle("text",Wt(i)?i.replace("{current}",null==a?"":a+"").replace("{total}",null==s?"":s+""):i({current:a,total:s}))},e.prototype._getPageInfo=function(t){var e=t.get("scrollDataIndex",!0),n=this.getContentGroup(),r=this._containerGroup.__rectSize,i=t.getOrient().index,o=t1[i],a=e1[i],s=this._findTargetItemIndex(e),l=n.children(),u=l[s],c=l.length,h=c?1:0,d={contentPosition:[n.x,n.y],pageCount:h,pageIndex:h-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!u)return d;var p=y(u);d.contentPosition[i]=-p.s;for(var f=s+1,g=p,v=p,m=null;f<=c;++f)m=y(l[f]),(!m&&v.e>g.s+r||m&&!b(m,g.s))&&(g=v.i>g.i?v:m,g&&(null==d.pageNextDataIndex&&(d.pageNextDataIndex=g.i),++d.pageCount)),v=m;for(f=s-1,g=p,v=p,m=null;f>=-1;--f)m=y(l[f]),m&&b(v,m.s)||!(g.i<v.i)||(v=g,null==d.pagePrevDataIndex&&(d.pagePrevDataIndex=g.i),++d.pageCount,++d.pageIndex),g=m;return d;function y(t){if(t){var e=t.getBoundingRect(),n=e[a]+t[a];return{s:n,e:n+e[o],i:t.__legendDataIndex}}}function b(t,e){return t.e>=e&&t.s<=e+r}},e.prototype._findTargetItemIndex=function(t){if(!this._showController)return 0;var e,n,r=this.getContentGroup();return r.eachChild((function(r,i){var o=r.__legendDataIndex;null==n&&null!=o&&(n=i),o===t&&(e=i)})),null!=e?e:n},e.type="legend.scroll",e}(H0),r1=n1;function i1(t){t.registerAction("legendScroll","legendscroll",(function(t,e){var n=t.scrollDataIndex;null!=n&&e.eachComponent({mainType:"legend",subType:"scroll",query:t},(function(t){t.setScrollDataIndex(n)}))}))}function o1(t){pS(U0),t.registerComponentModel(K0),t.registerComponentView(r1),i1(t)}function a1(t){pS(U0),pS(o1)}var s1=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Q(e,t),e.type="dataZoom.inside",e.defaultOption=Ud(yY.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),e}(yY),l1=s1,u1=Ys();function c1(t,e,n){u1(t).coordSysRecordMap.each((function(t){var r=t.dataZoomInfoMap.get(e.uid);r&&(r.getRange=n)}))}function h1(t,e){for(var n=u1(t).coordSysRecordMap,r=n.keys(),i=0;i<r.length;i++){var o=r[i],a=n.get(o),s=a.dataZoomInfoMap;if(s){var l=e.uid,u=s.get(l);u&&(s.removeKey(l),s.keys().length||d1(n,a))}}}function d1(t,e){if(e){t.removeKey(e.model.uid);var n=e.controller;n&&n.dispose()}}function p1(t,e){var n={model:e,containsPoint:zt(g1,e),dispatchAction:zt(f1,t),dataZoomInfoMap:null,controller:null},r=n.controller=new bR(t.getZr());return Pt(["pan","zoom","scrollMove"],(function(t){r.on(t,(function(e){var r=[];n.dataZoomInfoMap.each((function(i){if(e.isAvailableBehavior(i.model.option)){var o=(i.getRange||{})[t],a=o&&o(i.dzReferCoordSysInfo,n.model.mainType,n.controller,e);!i.model.get("disabled",!0)&&a&&r.push({dataZoomId:i.model.id,start:a[0],end:a[1]})}})),r.length&&n.dispatchAction(r)}))})),n}function f1(t,e){t.isDisposed()||t.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:e})}function g1(t,e,n,r){return t.coordinateSystem.containPoint([n,r])}function v1(t){var e,n="type_",r={type_true:2,type_move:1,type_false:0,type_undefined:-1},i=!0;return t.each((function(t){var o=t.model,a=!o.get("disabled",!0)&&(!o.get("zoomLock",!0)||"move");r[n+a]>r[n+e]&&(e=a),i=i&&o.get("preventDefaultMouseMove",!0)})),{controlType:e,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!i}}}function m1(t){t.registerProcessor(t.PRIORITY.PROCESSOR.FILTER,(function(t,e){var n=u1(e),r=n.coordSysRecordMap||(n.coordSysRecordMap=de());r.each((function(t){t.dataZoomInfoMap=null})),t.eachComponent({mainType:"dataZoom",subType:"inside"},(function(t){var n=fY(t);Pt(n.infoList,(function(n){var i=n.model.uid,o=r.get(i)||r.set(i,p1(e,n.model)),a=o.dataZoomInfoMap||(o.dataZoomInfoMap=de());a.set(t.uid,{dzReferCoordSysInfo:n,model:t,getRange:null})}))})),r.each((function(t){var e,n=t.controller,i=t.dataZoomInfoMap;if(i){var o=i.keys()[0];null!=o&&(e=i.get(o))}if(e){var a=v1(i);n.enable(a.controlType,a.opt),n.setPointerChecker(t.containsPoint),m_(t,"dispatchAction",e.model.get("throttle",!0),"fixRate")}else d1(r,t)}))}))}var y1=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="dataZoom.inside",e}return Q(e,t),e.prototype.render=function(e,n,r){t.prototype.render.apply(this,arguments),e.noTarget()?this._clear():(this.range=e.getPercentRange(),c1(r,e,{pan:Nt(b1.pan,this),zoom:Nt(b1.zoom,this),scrollMove:Nt(b1.scrollMove,this)}))},e.prototype.dispose=function(){this._clear(),t.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){h1(this.api,this.dataZoomModel),this.range=null},e.type="dataZoom.inside",e}(wY),b1={zoom:function(t,e,n,r){var i=this.range,o=i.slice(),a=t.axisModels[0];if(a){var s=x1[e](null,[r.originX,r.originY],a,n,t),l=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(o[1]-o[0])+o[0],u=Math.max(1/r.scale,0);o[0]=(o[0]-l)*u+l,o[1]=(o[1]-l)*u+l;var c=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();return XF(0,o,[0,100],0,c.minSpan,c.maxSpan),this.range=o,i[0]!==o[0]||i[1]!==o[1]?o:void 0}},pan:_1((function(t,e,n,r,i,o){var a=x1[r]([o.oldX,o.oldY],[o.newX,o.newY],e,i,n);return a.signal*(t[1]-t[0])*a.pixel/a.pixelLength})),scrollMove:_1((function(t,e,n,r,i,o){var a=x1[r]([0,0],[o.scrollDelta,o.scrollDelta],e,i,n);return a.signal*(t[1]-t[0])*o.scrollDelta}))};function _1(t){return function(e,n,r,i){var o=this.range,a=o.slice(),s=e.axisModels[0];if(s){var l=t(a,s,e,n,r,i);return XF(l,a,[0,100],"all"),this.range=a,o[0]!==a[0]||o[1]!==a[1]?a:void 0}}}var x1={grid:function(t,e,n,r,i){var o=n.axis,a={},s=i.model.coordinateSystem.getRect();return t=t||[0,0],"x"===o.dim?(a.pixel=e[0]-t[0],a.pixelLength=s.width,a.pixelStart=s.x,a.signal=o.inverse?1:-1):(a.pixel=e[1]-t[1],a.pixelLength=s.height,a.pixelStart=s.y,a.signal=o.inverse?-1:1),a},polar:function(t,e,n,r,i){var o=n.axis,a={},s=i.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=s.getAngleAxis().getExtent();return t=t?s.pointToCoord(t):[0,0],e=s.pointToCoord(e),"radiusAxis"===n.mainType?(a.pixel=e[0]-t[0],a.pixelLength=l[1]-l[0],a.pixelStart=l[0],a.signal=o.inverse?1:-1):(a.pixel=e[1]-t[1],a.pixelLength=u[1]-u[0],a.pixelStart=u[0],a.signal=o.inverse?-1:1),a},singleAxis:function(t,e,n,r,i){var o=n.axis,a=i.model.coordinateSystem.getRect(),s={};return t=t||[0,0],"horizontal"===o.orient?(s.pixel=e[0]-t[0],s.pixelLength=a.width,s.pixelStart=a.x,s.signal=o.inverse?1:-1):(s.pixel=e[1]-t[1],s.pixelLength=a.height,s.pixelStart=a.y,s.signal=o.inverse?-1:1),s}},w1=y1;function O1(t){RY(t),t.registerComponentModel(l1),t.registerComponentView(w1),m1(t)}var S1=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Q(e,t),e.type="dataZoom.slider",e.layoutMode="box",e.defaultOption=Ud(yY.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:"#d2dbee",borderRadius:3,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#d2dbee",width:.5},areaStyle:{color:"#d2dbee",opacity:.2}},selectedDataBackground:{lineStyle:{color:"#8fb0f7",width:.5},areaStyle:{color:"#8fb0f7",opacity:.2}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:"#fff",borderColor:"#ACB8D1"},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:"#D2DBEE",opacity:.7},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#6E7079"},brushSelect:!0,brushStyle:{color:"rgba(135,175,274,0.15)"},emphasis:{handleStyle:{borderColor:"#8FB0F7"},moveHandleStyle:{color:"#8FB0F7"}}}),e}(yY),A1=S1,k1=Ac,C1=7,M1=1,T1=30,P1=7,I1="horizontal",$1="vertical",E1=5,R1=["line","bar","candlestick","scatter"],D1={easing:"cubicOut",duration:100,delay:0},L1=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._displayables={},n}return Q(e,t),e.prototype.init=function(t,e){this.api=e,this._onBrush=Nt(this._onBrush,this),this._onBrushEnd=Nt(this._onBrushEnd,this)},e.prototype.render=function(e,n,r,i){if(t.prototype.render.apply(this,arguments),m_(this,"_dispatchZoomAction",e.get("throttle"),"fixRate"),this._orient=e.getOrient(),!1!==e.get("show")){if(e.noTarget())return this._clear(),void this.group.removeAll();i&&"dataZoom"===i.type&&i.from===this.uid||this._buildView(),this._updateView()}else this.group.removeAll()},e.prototype.dispose=function(){this._clear(),t.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){y_(this,"_dispatchZoomAction");var t=this.api.getZr();t.off("mousemove",this._onBrush),t.off("mouseup",this._onBrushEnd)},e.prototype._buildView=function(){var t=this.group;t.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var e=this._displayables.sliderGroup=new La;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),t.add(e),this._positionGroup()},e.prototype._resetLocation=function(){var t=this.dataZoomModel,e=this.api,n=t.get("brushSelect"),r=n?P1:0,i=this._findCoordRect(),o={width:e.getWidth(),height:e.getHeight()},a=this._orient===I1?{right:o.width-i.x-i.width,top:o.height-T1-C1-r,width:i.width,height:T1}:{right:C1,top:i.y,width:T1,height:i.height},s=hf(t.option);Pt(["right","top","width","height"],(function(t){"ph"===s[t]&&(s[t]=a[t])}));var l=af(s,o);this._location={x:l.x,y:l.y},this._size=[l.width,l.height],this._orient===$1&&this._size.reverse()},e.prototype._positionGroup=function(){var t=this.group,e=this._location,n=this._orient,r=this.dataZoomModel.getFirstTargetAxisModel(),i=r&&r.get("inverse"),o=this._displayables.sliderGroup,a=(this._dataShadowInfo||{}).otherAxisInverse;o.attr(n!==I1||i?n===I1&&i?{scaleY:a?1:-1,scaleX:-1}:n!==$1||i?{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=t.getBoundingRect([o]);t.x=e.x-s.x,t.y=e.y-s.y,t.markRedraw()},e.prototype._getViewExtent=function(){return[0,this._size[0]]},e.prototype._renderBackground=function(){var t=this.dataZoomModel,e=this._size,n=this._displayables.sliderGroup,r=t.get("brushSelect");n.add(new k1({silent:!0,shape:{x:0,y:0,width:e[0],height:e[1]},style:{fill:t.get("backgroundColor")},z2:-40}));var i=new k1({shape:{x:0,y:0,width:e[0],height:e[1]},style:{fill:"transparent"},z2:0,onclick:Nt(this._onClickPanel,this)}),o=this.api.getZr();r?(i.on("mousedown",this._onBrushStart,this),i.cursor="crosshair",o.on("mousemove",this._onBrush),o.on("mouseup",this._onBrushEnd)):(o.off("mousemove",this._onBrush),o.off("mouseup",this._onBrushEnd)),n.add(i)},e.prototype._renderDataShadow=function(){var t=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],t){var e=this._size,n=this._shadowSize||[],r=t.series,i=r.getRawData(),o=r.getShadowDim&&r.getShadowDim(),a=o&&i.getDimensionInfo(o)?r.getShadowDim():t.otherDim;if(null!=a){var s=this._shadowPolygonPts,l=this._shadowPolylinePts;if(i!==this._shadowData||a!==this._shadowDim||e[0]!==n[0]||e[1]!==n[1]){var u=i.getDataExtent(a),c=.3*(u[1]-u[0]);u=[u[0]-c,u[1]+c];var h,d=[0,e[1]],p=[0,e[0]],f=[[e[0],0],[0,0]],g=[],v=p[1]/(i.count()-1),m=0,y=Math.round(i.count()/e[0]);i.each([a],(function(t,e){if(y>0&&e%y)m+=v;else{var n=null==t||isNaN(t)||""===t,r=n?0:ts(t,u,d,!0);n&&!h&&e?(f.push([f[f.length-1][0],0]),g.push([g[g.length-1][0],0])):!n&&h&&(f.push([m,0]),g.push([m,0])),f.push([m,r]),g.push([m,r]),m+=v,h=n}})),s=this._shadowPolygonPts=f,l=this._shadowPolylinePts=g}this._shadowData=i,this._shadowDim=a,this._shadowSize=[e[0],e[1]];for(var b=this.dataZoomModel,_=0;_<3;_++){var x=w(1===_);this._displayables.sliderGroup.add(x),this._displayables.dataShadowSegs.push(x)}}}function w(t){var e=b.getModel(t?"selectedDataBackground":"dataBackground"),n=new La,r=new Gy({shape:{points:s},segmentIgnoreThreshold:1,style:e.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),i=new Yy({shape:{points:l},segmentIgnoreThreshold:1,style:e.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return n.add(r),n.add(i),n}},e.prototype._prepareDataShadowInfo=function(){var t=this.dataZoomModel,e=t.get("showDataShadow");if(!1!==e){var n,r=this.ecModel;return t.eachTargetAxis((function(i,o){var a=t.getAxisProxy(i,o).getTargetSeriesModels();Pt(a,(function(t){if(!n&&!(!0!==e&&kt(R1,t.get("type"))<0)){var a,s=r.getComponent(dY(i),o).axis,l=N1(i),u=t.coordinateSystem;null!=l&&u.getOtherAxis&&(a=u.getOtherAxis(s).inverse),l=t.getData().mapDimension(l),n={thisAxis:s,series:t,thisDim:i,otherDim:l,otherAxisInverse:a}}}),this)}),this),n}},e.prototype._renderHandle=function(){var t=this.group,e=this._displayables,n=e.handles=[null,null],r=e.handleLabels=[null,null],i=this._displayables.sliderGroup,o=this._size,a=this.dataZoomModel,s=this.api,l=a.get("borderRadius")||0,u=a.get("brushSelect"),c=e.filler=new k1({silent:u,style:{fill:a.get("fillerColor")},textConfig:{position:"inside"}});i.add(c),i.add(new k1({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:o[0],height:o[1],r:l},style:{stroke:a.get("dataBackgroundColor")||a.get("borderColor"),lineWidth:M1,fill:"rgba(0,0,0,0)"}})),Pt([0,1],(function(e){var o=a.get("handleIcon");!Ox[o]&&o.indexOf("path://")<0&&o.indexOf("image://")<0&&(o="path://"+o);var s=kx(o,-1,0,2,2,null,!0);s.attr({cursor:z1(this._orient),draggable:!0,drift:Nt(this._onDragMove,this,e),ondragend:Nt(this._onDragEnd,this),onmouseover:Nt(this._showDataInfo,this,!0),onmouseout:Nt(this._showDataInfo,this,!1),z2:5});var l=s.getBoundingRect(),u=a.get("handleSize");this._handleHeight=es(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(),Qh(s);var c=a.get("handleColor");null!=c&&(s.style.fill=c),i.add(n[e]=s);var h=a.getModel("textStyle");t.add(r[e]=new Vc({silent:!0,invisible:!0,style:_d(h,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:h.getTextColor(),font:h.getFont()}),z2:10}))}),this);var h=c;if(u){var d=es(a.get("moveHandleSize"),o[1]),p=e.moveHandle=new Ac({style:a.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:o[1]-.5,height:d}}),f=.8*d,g=e.moveHandleIcon=kx(a.get("moveHandleIcon"),-f/2,-f/2,f,f,"#fff",!0);g.silent=!0,g.y=o[1]+d/2-.5,p.ensureState("emphasis").style=a.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var v=Math.min(o[1]/2,Math.max(d,10));h=e.moveZone=new Ac({invisible:!0,shape:{y:o[1]-v,height:d+v}}),h.on("mouseover",(function(){s.enterEmphasis(p)})).on("mouseout",(function(){s.leaveEmphasis(p)})),i.add(p),i.add(g),i.add(h)}h.attr({draggable:!0,cursor:z1(this._orient),drift:Nt(this._onDragMove,this,"all"),ondragstart:Nt(this._showDataInfo,this,!0),ondragend:Nt(this._onDragEnd,this),onmouseover:Nt(this._showDataInfo,this,!0),onmouseout:Nt(this._showDataInfo,this,!1)})},e.prototype._resetInterval=function(){var t=this._range=this.dataZoomModel.getPercentRange(),e=this._getViewExtent();this._handleEnds=[ts(t[0],[0,100],e,!0),ts(t[1],[0,100],e,!0)]},e.prototype._updateInterval=function(t,e){var n=this.dataZoomModel,r=this._handleEnds,i=this._getViewExtent(),o=n.findRepresentativeAxisProxy().getMinMaxSpan(),a=[0,100];XF(e,r,i,n.get("zoomLock")?"all":t,null!=o.minSpan?ts(o.minSpan,a,i,!0):null,null!=o.maxSpan?ts(o.maxSpan,a,i,!0):null);var s=this._range,l=this._range=rs([ts(r[0],i,a,!0),ts(r[1],i,a,!0)]);return!s||s[0]!==l[0]||s[1]!==l[1]},e.prototype._updateView=function(t){var e=this._displayables,n=this._handleEnds,r=rs(n.slice()),i=this._size;Pt([0,1],(function(t){var r=e.handles[t],o=this._handleHeight;r.attr({scaleX:o/2,scaleY:o/2,x:n[t]+(t?-1:1),y:i[1]/2-o/2})}),this),e.filler.setShape({x:r[0],y:0,width:r[1]-r[0],height:i[1]});var o={x:r[0],width:r[1]-r[0]};e.moveHandle&&(e.moveHandle.setShape(o),e.moveZone.setShape(o),e.moveZone.getBoundingRect(),e.moveHandleIcon&&e.moveHandleIcon.attr("x",o.x+o.width/2));for(var a=e.dataShadowSegs,s=[0,r[0],r[1],i[0]],l=0;l<a.length;l++){var u=a[l],c=u.getClipPath();c||(c=new Ac,u.setClipPath(c)),c.setShape({x:s[l],y:0,width:s[l+1]-s[l],height:i[1]})}this._updateDataInfo(t)},e.prototype._updateDataInfo=function(t){var e=this.dataZoomModel,n=this._displayables,r=n.handleLabels,i=this._orient,o=["",""];if(e.get("showDetail")){var a=e.findRepresentativeAxisProxy();if(a){var s=a.getAxisModel().axis,l=this._range,u=t?a.calculateDataWindow({start:l[0],end:l[1]}).valueWindow:a.getDataValueWindow();o=[this._formatLabel(u[0],s),this._formatLabel(u[1],s)]}}var c=rs(this._handleEnds.slice());function h(t){var e=jb(n.handles[t].parent,this.group),a=Qb(0===t?"right":"left",e),s=this._handleWidth/2+E1,l=Vb([c[t]+(0===t?-s:s),this._size[1]/2],e);r[t].setStyle({x:l[0],y:l[1],verticalAlign:i===I1?"middle":a,align:i===I1?a:"center",text:o[t]})}h.call(this,0),h.call(this,1)},e.prototype._formatLabel=function(t,e){var n=this.dataZoomModel,r=n.get("labelFormatter"),i=n.get("labelPrecision");null!=i&&"auto"!==i||(i=e.getPixelPrecision());var o=null==t||isNaN(t)?"":"category"===e.type||"time"===e.type?e.scale.getLabel({value:Math.round(t)}):t.toFixed(Math.min(i,20));return Ft(r)?r(t,o):Wt(r)?r.replace("{value}",o):o},e.prototype._showDataInfo=function(t){t=this._dragging||t;var e=this._displayables,n=e.handleLabels;n[0].attr("invisible",!t),n[1].attr("invisible",!t),e.moveHandle&&this.api[t?"enterEmphasis":"leaveEmphasis"](e.moveHandle,1)},e.prototype._onDragMove=function(t,e,n,r){this._dragging=!0,bn(r.event);var i=this._displayables.sliderGroup.getLocalTransform(),o=Vb([e,n],i,!0),a=this._updateInterval(t,o[0]),s=this.dataZoomModel.get("realtime");this._updateView(!s),a&&s&&this._dispatchZoomAction(!0)},e.prototype._onDragEnd=function(){this._dragging=!1,this._showDataInfo(!1);var t=this.dataZoomModel.get("realtime");!t&&this._dispatchZoomAction(!1)},e.prototype._onClickPanel=function(t){var e=this._size,n=this._displayables.sliderGroup.transformCoordToLocal(t.offsetX,t.offsetY);if(!(n[0]<0||n[0]>e[0]||n[1]<0||n[1]>e[1])){var r=this._handleEnds,i=(r[0]+r[1])/2,o=this._updateInterval("all",n[0]-i);this._updateView(),o&&this._dispatchZoomAction(!1)}},e.prototype._onBrushStart=function(t){var e=t.offsetX,n=t.offsetY;this._brushStart=new Dn(e,n),this._brushing=!0,this._brushStartTime=+new Date},e.prototype._onBrushEnd=function(t){if(this._brushing){var e=this._displayables.brushRect;if(this._brushing=!1,e){e.attr("ignore",!0);var n=e.shape,r=+new Date;if(!(r-this._brushStartTime<200&&Math.abs(n.width)<5)){var i=this._getViewExtent(),o=[0,100];this._range=rs([ts(n.x,i,o,!0),ts(n.x+n.width,i,o,!0)]),this._handleEnds=[n.x,n.x+n.width],this._updateView(),this._dispatchZoomAction(!1)}}}},e.prototype._onBrush=function(t){this._brushing&&(bn(t.event),this._updateBrushRect(t.offsetX,t.offsetY))},e.prototype._updateBrushRect=function(t,e){var n=this._displayables,r=this.dataZoomModel,i=n.brushRect;i||(i=n.brushRect=new k1({silent:!0,style:r.getModel("brushStyle").getItemStyle()}),n.sliderGroup.add(i)),i.attr("ignore",!1);var o=this._brushStart,a=this._displayables.sliderGroup,s=a.transformCoordToLocal(t,e),l=a.transformCoordToLocal(o.x,o.y),u=this._size;s[0]=Math.max(Math.min(u[0],s[0]),0),i.setShape({x:l[0],y:0,width:s[0]-l[0],height:u[1]})},e.prototype._dispatchZoomAction=function(t){var e=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:t?D1:null,start:e[0],end:e[1]})},e.prototype._findCoordRect=function(){var t,e=fY(this.dataZoomModel).infoList;if(!t&&e.length){var n=e[0].model.coordinateSystem;t=n.getRect&&n.getRect()}if(!t){var r=this.api.getWidth(),i=this.api.getHeight();t={x:.2*r,y:.2*i,width:.6*r,height:.6*i}}return t},e.type="dataZoom.slider",e}(wY);function N1(t){var e={x:"y",y:"x",radius:"angle",angle:"radius"};return e[t]}function z1(t){return"vertical"===t?"ns-resize":"ew-resize"}var B1=L1;function F1(t){t.registerComponentModel(A1),t.registerComponentView(B1),RY(t)}function W1(t){pS(O1),pS(F1)}var j1={get:function(t,e,n){var r=_t((V1[t]||{})[e]);return n&&Bt(r)?r[r.length-1]:r}},V1={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=j1,H1=ez.mapVisual,Z1=ez.eachVisual,G1=Bt,X1=Pt,U1=rs,Y1=ts,q1=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.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(e,t),e.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n)},e.prototype.optionUpdated=function(t,e){var n=this.option;!e&&DK(n,t,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},e.prototype.resetVisual=function(t){var e=this.stateList;t=Nt(t,this),this.controllerVisuals=RK(this.option.controller,e,t),this.targetVisuals=RK(this.option.target,e,t)},e.prototype.getItemSymbol=function(){return null},e.prototype.getTargetSeriesIndices=function(){var t=this.option.seriesIndex,e=[];return null==t||"all"===t?this.ecModel.eachSeries((function(t,n){e.push(n)})):e=Ms(t),e},e.prototype.eachTargetSeries=function(t,e){Pt(this.getTargetSeriesIndices(),(function(n){var r=this.ecModel.getSeriesByIndex(n);r&&t.call(e,r)}),this)},e.prototype.isTargetSeries=function(t){var e=!1;return this.eachTargetSeries((function(n){n===t&&(e=!0)})),e},e.prototype.formatValueText=function(t,e,n){var r,i=this.option,o=i.precision,a=this.dataBound,s=i.formatter;n=n||["<",">"],Bt(t)&&(t=t.slice(),r=!0);var l=e?t:r?[u(t[0]),u(t[1])]:u(t);return Wt(s)?s.replace("{value}",r?l[0]:l).replace("{value2}",r?l[1]:l):Ft(s)?r?s(t[0],t[1]):s(t):r?t[0]===a[0]?n[0]+" "+l[1]:t[1]===a[1]?n[1]+" "+l[0]:l[0]+" - "+l[1]:l;function u(t){return t===a[0]?"min":t===a[1]?"max":(+t).toFixed(Math.min(o,20))}},e.prototype.resetExtent=function(){var t=this.option,e=U1([t.min,t.max]);this._dataExtent=e},e.prototype.getDataDimensionIndex=function(t){var e=this.option.dimension;if(null!=e)return t.getDimensionIndex(e);for(var n=t.dimensions,r=n.length-1;r>=0;r--){var i=n[r],o=t.getDimensionInfo(i);if(!o.isCalculationCoord)return o.storeDimIndex}},e.prototype.getExtent=function(){return this._dataExtent.slice()},e.prototype.completeVisualOption=function(){var t=this.ecModel,e=this.option,n={inRange:e.inRange,outOfRange:e.outOfRange},r=e.target||(e.target={}),i=e.controller||(e.controller={});xt(r,n),xt(i,n);var o=this.isCategory();function a(n){G1(e.color)&&!n.inRange&&(n.inRange={color:e.color.slice().reverse()}),n.inRange=n.inRange||{color:t.get("gradientColor")}}function s(t,e,n){var r=t[e],i=t[n];r&&!i&&(i=t[n]={},X1(r,(function(t,e){if(ez.isValidType(e)){var n=Q1.get(e,"inactive",o);null!=n&&(i[e]=n,"color"!==e||i.hasOwnProperty("opacity")||i.hasOwnProperty("colorAlpha")||(i.opacity=[0,0]))}})))}function l(t){var e=(t.inRange||{}).symbol||(t.outOfRange||{}).symbol,n=(t.inRange||{}).symbolSize||(t.outOfRange||{}).symbolSize,r=this.get("inactiveColor"),i=this.getItemSymbol(),a=i||"roundRect";X1(this.stateList,(function(i){var s=this.itemSize,l=t[i];l||(l=t[i]={color:o?r:[r]}),null==l.symbol&&(l.symbol=e&&_t(e)||(o?a:[a])),null==l.symbolSize&&(l.symbolSize=n&&_t(n)||(o?s[0]:[s[0],s[0]])),l.symbol=H1(l.symbol,(function(t){return"none"===t?a:t}));var u=l.symbolSize;if(null!=u){var c=-1/0;Z1(u,(function(t){t>c&&(c=t)})),l.symbolSize=H1(u,(function(t){return Y1(t,[0,c],[0,s[0]],!0)}))}}),this)}a.call(this,r),a.call(this,i),s.call(this,r,"inRange","outOfRange"),l.call(this,i)},e.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},e.prototype.isCategory=function(){return!!this.option.categories},e.prototype.setSelected=function(t){},e.prototype.getSelected=function(){return null},e.prototype.getValueState=function(t){return null},e.prototype.getVisualMeta=function(t){return null},e.type="visualMap",e.dependencies=["series"],e.defaultOption={show:!0,z:4,seriesIndex:"all",min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",contentColor:"#5793f3",inactiveColor:"#aaa",borderWidth:0,padding:5,textGap:10,precision:0,textStyle:{color:"#333"}},e}(vf),K1=q1,J1=[20,140],t2=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Q(e,t),e.prototype.optionUpdated=function(e,n){t.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual((function(t){t.mappingMethod="linear",t.dataExtent=this.getExtent()})),this._resetRange()},e.prototype.resetItemSize=function(){t.prototype.resetItemSize.apply(this,arguments);var e=this.itemSize;(null==e[0]||isNaN(e[0]))&&(e[0]=J1[0]),(null==e[1]||isNaN(e[1]))&&(e[1]=J1[1])},e.prototype._resetRange=function(){var t=this.getExtent(),e=this.option.range;!e||e.auto?(t.auto=1,this.option.range=t):Bt(e)&&(e[0]>e[1]&&e.reverse(),e[0]=Math.max(e[0],t[0]),e[1]=Math.min(e[1],t[1]))},e.prototype.completeVisualOption=function(){t.prototype.completeVisualOption.apply(this,arguments),Pt(this.stateList,(function(t){var e=this.option.controller[t].symbolSize;e&&e[0]!==e[1]&&(e[0]=e[1]/3)}),this)},e.prototype.setSelected=function(t){this.option.range=t.slice(),this._resetRange()},e.prototype.getSelected=function(){var t=this.getExtent(),e=rs((this.get("range")||[]).slice());return e[0]>t[1]&&(e[0]=t[1]),e[1]>t[1]&&(e[1]=t[1]),e[0]<t[0]&&(e[0]=t[0]),e[1]<t[0]&&(e[1]=t[0]),e},e.prototype.getValueState=function(t){var e=this.option.range,n=this.getExtent();return(e[0]<=n[0]||e[0]<=t)&&(e[1]>=n[1]||t<=e[1])?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var e=[];return this.eachTargetSeries((function(n){var r=[],i=n.getData();i.each(this.getDataDimensionIndex(i),(function(e,n){t[0]<=e&&e<=t[1]&&r.push(n)}),this),e.push({seriesId:n.id,dataIndex:r})}),this),e},e.prototype.getVisualMeta=function(t){var e=e2(this,"outOfRange",this.getExtent()),n=e2(this,"inRange",this.option.range.slice()),r=[];function i(e,n){r.push({value:e,color:t(e,n)})}for(var o=0,a=0,s=n.length,l=e.length;a<l&&(!n.length||e[a]<=n[0]);a++)e[a]<n[o]&&i(e[a],"outOfRange");for(var u=1;o<s;o++,u=0)u&&r.length&&i(n[o],"outOfRange"),i(n[o],"inRange");for(u=1;a<l;a++)(!n.length||n[n.length-1]<e[a])&&(u&&(r.length&&i(r[r.length-1].value,"outOfRange"),u=0),i(e[a],"outOfRange"));var c=r.length;return{stops:r,outerColors:[c?r[0].color:"transparent",c?r[c-1].color:"transparent"]}},e.type="visualMap.continuous",e.defaultOption=Ud(K1.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)"}}),e}(K1);function e2(t,e,n){if(n[0]===n[1])return n.slice();for(var r=200,i=(n[1]-n[0])/r,o=n[0],a=[],s=0;s<=r&&o<n[1];s++)a.push(o),o+=i;return a.push(n[1]),a}var n2=t2,r2=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.autoPositionValues={left:1,right:1,top:1,bottom:1},n}return Q(e,t),e.prototype.init=function(t,e){this.ecModel=t,this.api=e},e.prototype.render=function(t,e,n,r){this.visualMapModel=t,!1!==t.get("show")?this.doRender(t,e,n,r):this.group.removeAll()},e.prototype.renderBackground=function(t){var e=this.visualMapModel,n=jp(e.get("padding")||0),r=t.getBoundingRect();t.add(new Ac({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:e.get("backgroundColor"),stroke:e.get("borderColor"),lineWidth:e.get("borderWidth")}}))},e.prototype.getControllerVisual=function(t,e,n){n=n||{};var r=n.forceState,i=this.visualMapModel,o={};if("color"===e){var a=i.get("contentColor");o.color=a}function s(t){return o[t]}function l(t,e){o[t]=e}var u=i.controllerVisuals[r||i.getValueState(t)],c=ez.prepareVisualTypes(u);return Pt(c,(function(r){var i=u[r];n.convertOpacityToAlpha&&"opacity"===r&&(r="colorAlpha",i=u.__alphaForOpacity),ez.dependsOn(r,e)&&i&&i.applyVisual(t,s,l)})),o[e]},e.prototype.positionGroup=function(t){var e=this.visualMapModel,n=this.api;sf(t,e.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()})},e.prototype.doRender=function(t,e,n,r){},e.type="visualMap",e}(Hm),i2=r2,o2=[["left","right","width"],["top","bottom","height"]];function a2(t,e,n){var r=t.option,i=r.align;if(null!=i&&"auto"!==i)return i;for(var o={width:e.getWidth(),height:e.getHeight()},a="horizontal"===r.orient?1:0,s=o2[a],l=[0,null,10],u={},c=0;c<3;c++)u[o2[1-a][c]]=l[c],u[s[c]]=2===c?n[0]:r[s[c]];var h=[["x","width",3],["y","height",0]][a],d=af(u,o,r.padding);return s[(d.margin[h[2]]||0)+d[h[0]]+.5*d[h[1]]<.5*o[h[1]]?0:1]}function s2(t,e){return Pt(t||[],(function(t){null!=t.dataIndex&&(t.dataIndexInside=t.dataIndex,t.dataIndex=null),t.highlightKey="visualMap"+(e?e.componentIndex:"")})),t}var l2=ts,u2=Pt,c2=Math.min,h2=Math.max,d2=12,p2=6,f2=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._shapes={},n._dataInterval=[],n._handleEnds=[],n._hoverLinkDataIndices=[],n}return Q(e,t),e.prototype.init=function(e,n){t.prototype.init.call(this,e,n),this._hoverLinkFromSeriesMouseOver=Nt(this._hoverLinkFromSeriesMouseOver,this),this._hideIndicator=Nt(this._hideIndicator,this)},e.prototype.doRender=function(t,e,n,r){r&&"selectDataRange"===r.type&&r.from===this.uid||this._buildView()},e.prototype._buildView=function(){this.group.removeAll();var t=this.visualMapModel,e=this.group;this._orient=t.get("orient"),this._useHandle=t.get("calculable"),this._resetInterval(),this._renderBar(e);var n=t.get("text");this._renderEndsText(e,n,0),this._renderEndsText(e,n,1),this._updateView(!0),this.renderBackground(e),this._updateView(),this._enableHoverLinkToSeries(),this._enableHoverLinkFromSeries(),this.positionGroup(e)},e.prototype._renderEndsText=function(t,e,n){if(e){var r=e[1-n];r=null!=r?r+"":"";var i=this.visualMapModel,o=i.get("textGap"),a=i.itemSize,s=this._shapes.mainGroup,l=this._applyTransform([a[0]/2,0===n?-o:a[1]+o],s),u=this._applyTransform(0===n?"bottom":"top",s),c=this._orient,h=this.visualMapModel.textStyleModel;this.group.add(new Vc({style:_d(h,{x:l[0],y:l[1],verticalAlign:"horizontal"===c?"middle":u,align:"horizontal"===c?u:"center",text:r})}))}},e.prototype._renderBar=function(t){var e=this.visualMapModel,n=this._shapes,r=e.itemSize,i=this._orient,o=this._useHandle,a=a2(e,this.api,r),s=n.mainGroup=this._createBarGroup(a),l=new La;s.add(l),l.add(n.outOfRange=g2()),l.add(n.inRange=g2(null,o?y2(this._orient):null,Nt(this._dragHandle,this,"all",!1),Nt(this._dragHandle,this,"all",!0))),l.setClipPath(new Ac({shape:{x:0,y:0,width:r[0],height:r[1],r:3}}));var u=e.textStyleModel.getTextRect("国"),c=h2(u.width,u.height);o&&(n.handleThumbs=[],n.handleLabels=[],n.handleLabelPoints=[],this._createHandle(e,s,0,r,c,i),this._createHandle(e,s,1,r,c,i)),this._createIndicator(e,s,r,c,i),t.add(s)},e.prototype._createHandle=function(t,e,n,r,i,o){var a=Nt(this._dragHandle,this,n,!1),s=Nt(this._dragHandle,this,n,!0),l=ba(t.get("handleSize"),r[0]),u=kx(t.get("handleIcon"),-l/2,-l/2,l,l,null,!0),c=y2(this._orient);u.attr({cursor:c,draggable:!0,drift:a,ondragend:s,onmousemove:function(t){bn(t.event)}}),u.x=r[0]/2,u.useStyle(t.getModel("handleStyle").getItemStyle()),u.setStyle({strokeNoScale:!0,strokeFirst:!0}),u.style.lineWidth*=2,u.ensureState("emphasis").style=t.getModel(["emphasis","handleStyle"]).getItemStyle(),qh(u,!0),e.add(u);var h=this.visualMapModel.textStyleModel,d=new Vc({cursor:c,draggable:!0,drift:a,onmousemove:function(t){bn(t.event)},ondragend:s,style:_d(h,{x:0,y:0,text:""})});d.ensureState("blur").style={opacity:.1},d.stateTransition={duration:200},this.group.add(d);var p=[l,0],f=this._shapes;f.handleThumbs[n]=u,f.handleLabelPoints[n]=p,f.handleLabels[n]=d},e.prototype._createIndicator=function(t,e,n,r,i){var o=ba(t.get("indicatorSize"),n[0]),a=kx(t.get("indicatorIcon"),-o/2,-o/2,o,o,null,!0);a.attr({cursor:"move",invisible:!0,silent:!0,x:n[0]/2});var s=t.getModel("indicatorStyle").getItemStyle();if(a instanceof vc){var l=a.style;a.useStyle(Ot({image:l.image,x:l.x,y:l.y,width:l.width,height:l.height},s))}else a.useStyle(s);e.add(a);var u=this.visualMapModel.textStyleModel,c=new Vc({silent:!0,invisible:!0,style:_d(u,{x:0,y:0,text:""})});this.group.add(c);var h=[("horizontal"===i?r/2:p2)+n[0]/2,0],d=this._shapes;d.indicator=a,d.indicatorLabel=c,d.indicatorLabelPoint=h,this._firstShowIndicator=!0},e.prototype._dragHandle=function(t,e,n,r){if(this._useHandle){if(this._dragging=!e,!e){var i=this._applyTransform([n,r],this._shapes.mainGroup,!0);this._updateInterval(t,i[1]),this._hideIndicator(),this._updateView()}e===!this.visualMapModel.get("realtime")&&this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:this._dataInterval.slice()}),e?!this._hovering&&this._clearHoverLinkToSeries():m2(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[t],!1)}},e.prototype._resetInterval=function(){var t=this.visualMapModel,e=this._dataInterval=t.getSelected(),n=t.getExtent(),r=[0,t.itemSize[1]];this._handleEnds=[l2(e[0],n,r,!0),l2(e[1],n,r,!0)]},e.prototype._updateInterval=function(t,e){e=e||0;var n=this.visualMapModel,r=this._handleEnds,i=[0,n.itemSize[1]];XF(e,r,i,t,0);var o=n.getExtent();this._dataInterval=[l2(r[0],i,o,!0),l2(r[1],i,o,!0)]},e.prototype._updateView=function(t){var e=this.visualMapModel,n=e.getExtent(),r=this._shapes,i=[0,e.itemSize[1]],o=t?i:this._handleEnds,a=this._createBarVisual(this._dataInterval,n,o,"inRange"),s=this._createBarVisual(n,n,i,"outOfRange");r.inRange.setStyle({fill:a.barColor}).setShape("points",a.barPoints),r.outOfRange.setStyle({fill:s.barColor}).setShape("points",s.barPoints),this._updateHandle(o,a)},e.prototype._createBarVisual=function(t,e,n,r){var i={forceState:r,convertOpacityToAlpha:!0},o=this._makeColorGradient(t,i),a=[this.getControllerVisual(t[0],"symbolSize",i),this.getControllerVisual(t[1],"symbolSize",i)],s=this._createBarPoints(n,a);return{barColor:new fb(0,0,0,1,o),barPoints:s,handlesColor:[o[0].color,o[o.length-1].color]}},e.prototype._makeColorGradient=function(t,e){var n=100,r=[],i=(t[1]-t[0])/n;r.push({color:this.getControllerVisual(t[0],"color",e),offset:0});for(var o=1;o<n;o++){var a=t[0]+i*o;if(a>t[1])break;r.push({color:this.getControllerVisual(a,"color",e),offset:o/n})}return r.push({color:this.getControllerVisual(t[1],"color",e),offset:1}),r},e.prototype._createBarPoints=function(t,e){var n=this.visualMapModel.itemSize;return[[n[0]-e[0],t[0]],[n[0],t[0]],[n[0],t[1]],[n[0]-e[1],t[1]]]},e.prototype._createBarGroup=function(t){var e=this._orient,n=this.visualMapModel.get("inverse");return new La("horizontal"!==e||n?"horizontal"===e&&n?{scaleX:"bottom"===t?-1:1,rotation:-Math.PI/2}:"vertical"!==e||n?{scaleX:"left"===t?1:-1}:{scaleX:"left"===t?1:-1,scaleY:-1}:{scaleX:"bottom"===t?1:-1,rotation:Math.PI/2})},e.prototype._updateHandle=function(t,e){if(this._useHandle){var n=this._shapes,r=this.visualMapModel,i=n.handleThumbs,o=n.handleLabels,a=r.itemSize,s=r.getExtent();u2([0,1],(function(l){var u=i[l];u.setStyle("fill",e.handlesColor[l]),u.y=t[l];var c=l2(t[l],[0,a[1]],s,!0),h=this.getControllerVisual(c,"symbolSize");u.scaleX=u.scaleY=h/a[0],u.x=a[0]-h/2;var d=Vb(n.handleLabelPoints[l],jb(u,this.group));o[l].setStyle({x:d[0],y:d[1],text:r.formatValueText(this._dataInterval[l]),verticalAlign:"middle",align:"vertical"===this._orient?this._applyTransform("left",n.mainGroup):"center"})}),this)}},e.prototype._showIndicator=function(t,e,n,r){var i=this.visualMapModel,o=i.getExtent(),a=i.itemSize,s=[0,a[1]],l=this._shapes,u=l.indicator;if(u){u.attr("invisible",!1);var c={convertOpacityToAlpha:!0},h=this.getControllerVisual(t,"color",c),d=this.getControllerVisual(t,"symbolSize"),p=l2(t,o,s,!0),f=a[0]-d/2,g={x:u.x,y:u.y};u.y=p,u.x=f;var v=Vb(l.indicatorLabelPoint,jb(u,this.group)),m=l.indicatorLabel;m.attr("invisible",!1);var y=this._applyTransform("left",l.mainGroup),b=this._orient,_="horizontal"===b;m.setStyle({text:(n||"")+i.formatValueText(e),verticalAlign:_?y:"middle",align:_?"center":y});var x={x:f,y:p,style:{fill:h}},w={style:{x:v[0],y:v[1]}};if(i.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var O={duration:100,easing:"cubicInOut",additive:!0};u.x=g.x,u.y=g.y,u.animateTo(x,O),m.animateTo(w,O)}else u.attr(x),m.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])}},e.prototype._enableHoverLinkToSeries=function(){var t=this;this._shapes.mainGroup.on("mousemove",(function(e){if(t._hovering=!0,!t._dragging){var n=t.visualMapModel.itemSize,r=t._applyTransform([e.offsetX,e.offsetY],t._shapes.mainGroup,!0,!0);r[1]=c2(h2(0,r[1]),n[1]),t._doHoverLinkToSeries(r[1],0<=r[0]&&r[0]<=n[0])}})).on("mouseout",(function(){t._hovering=!1,!t._dragging&&t._clearHoverLinkToSeries()}))},e.prototype._enableHoverLinkFromSeries=function(){var t=this.api.getZr();this.visualMapModel.option.hoverLink?(t.on("mouseover",this._hoverLinkFromSeriesMouseOver,this),t.on("mouseout",this._hideIndicator,this)):this._clearHoverLinkFromSeries()},e.prototype._doHoverLinkToSeries=function(t,e){var n=this.visualMapModel,r=n.itemSize;if(n.option.hoverLink){var i=[0,r[1]],o=n.getExtent();t=c2(h2(i[0],t),i[1]);var a=v2(n,o,i),s=[t-a,t+a],l=l2(t,i,o,!0),u=[l2(s[0],i,o,!0),l2(s[1],i,o,!0)];s[0]<i[0]&&(u[0]=-1/0),s[1]>i[1]&&(u[1]=1/0),e&&(u[0]===-1/0?this._showIndicator(l,u[1],"< ",a):u[1]===1/0?this._showIndicator(l,u[0],"> ",a):this._showIndicator(l,l,"≈ ",a));var c=this._hoverLinkDataIndices,h=[];(e||m2(n))&&(h=this._hoverLinkDataIndices=n.findTargetDataIndices(u));var d=Xs(c,h);this._dispatchHighDown("downplay",s2(d[0],n)),this._dispatchHighDown("highlight",s2(d[1],n))}},e.prototype._hoverLinkFromSeriesMouseOver=function(t){var e;if(hx(t.target,(function(t){var n=Qc(t);if(null!=n.dataIndex)return e=n,!0}),!0),e){var n=this.ecModel.getSeriesByIndex(e.seriesIndex),r=this.visualMapModel;if(r.isTargetSeries(n)){var i=n.getData(e.dataType),o=i.getStore().get(r.getDataDimensionIndex(i),e.dataIndex);isNaN(o)||this._showIndicator(o,o)}}},e.prototype._hideIndicator=function(){var t=this._shapes;t.indicator&&t.indicator.attr("invisible",!0),t.indicatorLabel&&t.indicatorLabel.attr("invisible",!0);var e=this._shapes.handleLabels;if(e)for(var n=0;n<e.length;n++)this.api.leaveBlur(e[n])},e.prototype._clearHoverLinkToSeries=function(){this._hideIndicator();var t=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",s2(t,this.visualMapModel)),t.length=0},e.prototype._clearHoverLinkFromSeries=function(){this._hideIndicator();var t=this.api.getZr();t.off("mouseover",this._hoverLinkFromSeriesMouseOver),t.off("mouseout",this._hideIndicator)},e.prototype._applyTransform=function(t,e,n,r){var i=jb(e,r?null:this.group);return Bt(t)?Vb(t,i,n):Qb(t,i,n)},e.prototype._dispatchHighDown=function(t,e){e&&e.length&&this.api.dispatchAction({type:t,batch:e})},e.prototype.dispose=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},e.type="visualMap.continuous",e}(i2);function g2(t,e,n,r){return new Gy({shape:{points:t},draggable:!!n,cursor:e,drift:n,onmousemove:function(t){bn(t.event)},ondragend:r})}function v2(t,e,n){var r=d2/2,i=t.get("hoverLinkDataSize");return i&&(r=l2(i,e,n,!0)/2),r}function m2(t){var e=t.get("hoverLinkOnHandle");return!!(null==e?t.get("realtime"):e)}function y2(t){return"vertical"===t?"ns-resize":"ew-resize"}var b2=f2,_2={type:"selectDataRange",event:"dataRangeSelected",update:"update"},x2=function(t,e){e.eachComponent({mainType:"visualMap",query:t},(function(e){e.setSelected(t.selected)}))},w2=[{createOnAllSeries:!0,reset:function(t,e){var n=[];return e.eachComponent("visualMap",(function(e){var r=t.pipelineContext;!e.isTargetSeries(t)||r&&r.large||n.push(NK(e.stateList,e.targetVisuals,Nt(e.getValueState,e),e.getDataDimensionIndex(t.getData())))})),n}},{createOnAllSeries:!0,reset:function(t,e){var n=t.getData(),r=[];e.eachComponent("visualMap",(function(e){if(e.isTargetSeries(t)){var i=e.getVisualMeta(Nt(O2,null,t,e))||{stops:[],outerColors:[]},o=e.getDataDimensionIndex(n);o>=0&&(i.dimension=o,r.push(i))}})),t.getData().setVisual("visualMeta",r)}}];function O2(t,e,n,r){for(var i=e.targetVisuals[r],o=ez.prepareVisualTypes(i),a={color:ax(t.getData(),"color")},s=0,l=o.length;s<l;s++){var u=o[s],c=i["opacity"===u?"__alphaForOpacity":u];c&&c.applyVisual(n,h,d)}return a.color;function h(t){return a[t]}function d(t,e){a[t]=e}}var S2=Pt;function A2(t){var e=t&&t.visualMap;Bt(e)||(e=e?[e]:[]),S2(e,(function(t){if(t){k2(t,"splitList")&&!k2(t,"pieces")&&(t.pieces=t.splitList,delete t.splitList);var e=t.pieces;e&&Bt(e)&&S2(e,(function(t){Qt(t)&&(k2(t,"start")&&!k2(t,"min")&&(t.min=t.start),k2(t,"end")&&!k2(t,"max")&&(t.max=t.end))}))}}))}function k2(t,e){return t&&t.hasOwnProperty&&t.hasOwnProperty(e)}var C2=!1;function M2(t){C2||(C2=!0,t.registerSubTypeDefaulter("visualMap",(function(t){return t.categories||(t.pieces?t.pieces.length>0:t.splitNumber>0)&&!t.calculable?"piecewise":"continuous"})),t.registerAction(_2,x2),Pt(w2,(function(e){t.registerVisual(t.PRIORITY.VISUAL.COMPONENT,e)})),t.registerPreprocessor(A2))}function T2(t){t.registerComponentModel(n2),t.registerComponentView(b2),M2(t)}var P2=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._pieceList=[],n}return Q(e,t),e.prototype.optionUpdated=function(e,n){t.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var r=this._mode=this._determineMode();this._pieceList=[],I2[this._mode].call(this,this._pieceList),this._resetSelected(e,n);var i=this.option.categories;this.resetVisual((function(t,e){"categories"===r?(t.mappingMethod="category",t.categories=_t(i)):(t.dataExtent=this.getExtent(),t.mappingMethod="piecewise",t.pieceList=It(this._pieceList,(function(t){return t=_t(t),"inRange"!==e&&(t.visual=null),t})))}))},e.prototype.completeVisualOption=function(){var e=this.option,n={},r=ez.listVisualTypes(),i=this.isCategory();function o(t,e,n){return t&&t[e]&&t[e].hasOwnProperty(n)}Pt(e.pieces,(function(t){Pt(r,(function(e){t.hasOwnProperty(e)&&(n[e]=1)}))})),Pt(n,(function(t,n){var r=!1;Pt(this.stateList,(function(t){r=r||o(e,t,n)||o(e.target,t,n)}),this),!r&&Pt(this.stateList,(function(t){(e[t]||(e[t]={}))[n]=Q1.get(n,"inRange"===t?"active":"inactive",i)}))}),this),t.prototype.completeVisualOption.apply(this,arguments)},e.prototype._resetSelected=function(t,e){var n=this.option,r=this._pieceList,i=(e?n:t).selected||{};if(n.selected=i,Pt(r,(function(t,e){var n=this.getSelectedMapKey(t);i.hasOwnProperty(n)||(i[n]=!0)}),this),"single"===n.selectedMode){var o=!1;Pt(r,(function(t,e){var n=this.getSelectedMapKey(t);i[n]&&(o?i[n]=!1:o=!0)}),this)}},e.prototype.getItemSymbol=function(){return this.get("itemSymbol")},e.prototype.getSelectedMapKey=function(t){return"categories"===this._mode?t.value+"":t.index+""},e.prototype.getPieceList=function(){return this._pieceList},e.prototype._determineMode=function(){var t=this.option;return t.pieces&&t.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},e.prototype.setSelected=function(t){this.option.selected=_t(t)},e.prototype.getValueState=function(t){var e=ez.findPieceIndex(t,this._pieceList);return null!=e&&this.option.selected[this.getSelectedMapKey(this._pieceList[e])]?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var e=[],n=this._pieceList;return this.eachTargetSeries((function(r){var i=[],o=r.getData();o.each(this.getDataDimensionIndex(o),(function(e,r){var o=ez.findPieceIndex(e,n);o===t&&i.push(r)}),this),e.push({seriesId:r.id,dataIndex:i})}),this),e},e.prototype.getRepresentValue=function(t){var e;if(this.isCategory())e=t.value;else if(null!=t.value)e=t.value;else{var n=t.interval||[];e=n[0]===-1/0&&n[1]===1/0?0:(n[0]+n[1])/2}return e},e.prototype.getVisualMeta=function(t){if(!this.isCategory()){var e=[],n=["",""],r=this,i=this._pieceList.slice();if(i.length){var o=i[0].interval[0];o!==-1/0&&i.unshift({interval:[-1/0,o]}),o=i[i.length-1].interval[1],o!==1/0&&i.push({interval:[o,1/0]})}else i.push({interval:[-1/0,1/0]});var a=-1/0;return Pt(i,(function(t){var e=t.interval;e&&(e[0]>a&&s([a,e[0]],"outOfRange"),s(e.slice()),a=e[1])}),this),{stops:e,outerColors:n}}function s(i,o){var a=r.getRepresentValue({interval:i});o||(o=r.getValueState(a));var s=t(a,o);i[0]===-1/0?n[0]=s:i[1]===1/0?n[1]=s:e.push({value:i[0],color:s},{value:i[1],color:s})}},e.type="visualMap.piecewise",e.defaultOption=Ud(K1.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieces:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0}),e}(K1),I2={splitNumber:function(t){var e=this.option,n=Math.min(e.precision,20),r=this.getExtent(),i=e.splitNumber;i=Math.max(parseInt(i,10),1),e.splitNumber=i;var o=(r[1]-r[0])/i;while(+o.toFixed(n)!==o&&n<5)n++;e.precision=n,o=+o.toFixed(n),e.minOpen&&t.push({interval:[-1/0,r[0]],close:[0,0]});for(var a=0,s=r[0];a<i;s+=o,a++){var l=a===i-1?r[1]:s+o;t.push({interval:[s,l],close:[1,1]})}e.maxOpen&&t.push({interval:[r[1],1/0],close:[0,0]}),bs(t),Pt(t,(function(t,e){t.index=e,t.text=this.formatValueText(t.interval)}),this)},categories:function(t){var e=this.option;Pt(e.categories,(function(e){t.push({text:this.formatValueText(e,!0),value:e})}),this),$2(e,t)},pieces:function(t){var e=this.option;Pt(e.pieces,(function(e,n){Qt(e)||(e={value:e});var r={text:"",index:n};if(null!=e.label&&(r.text=e.label),e.hasOwnProperty("value")){var i=r.value=e.value;r.interval=[i,i],r.close=[1,1]}else{for(var o=r.interval=[],a=r.close=[0,0],s=[1,0,1],l=[-1/0,1/0],u=[],c=0;c<2;c++){for(var h=[["gte","gt","min"],["lte","lt","max"]][c],d=0;d<3&&null==o[c];d++)o[c]=e[h[d]],a[c]=s[d],u[c]=2===d;null==o[c]&&(o[c]=l[c])}u[0]&&o[1]===1/0&&(a[0]=0),u[1]&&o[0]===-1/0&&(a[1]=0),o[0]===o[1]&&a[0]&&a[1]&&(r.value=o[0])}r.visual=ez.retrieveVisuals(e),t.push(r)}),this),$2(e,t),bs(t),Pt(t,(function(t){var e=t.close,n=[["<","≤"][e[1]],[">","≥"][e[0]]];t.text=t.text||this.formatValueText(null!=t.value?t.value:t.interval,!1,n)}),this)}};function $2(t,e){var n=t.inverse;("vertical"===t.orient?!n:n)&&e.reverse()}var E2=P2,R2=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Q(e,t),e.prototype.doRender=function(){var t=this.group;t.removeAll();var e=this.visualMapModel,n=e.get("textGap"),r=e.textStyleModel,i=r.getFont(),o=r.getTextColor(),a=this._getItemAlign(),s=e.itemSize,l=this._getViewData(),u=l.endsText,c=Kt(e.get("showLabel",!0),!u);u&&this._renderEndsText(t,u[0],s,c,a),Pt(l.viewPieceList,(function(r){var l=r.piece,u=new La;u.onclick=Nt(this._onItemClick,this,l),this._enableHoverLink(u,r.indexInModelPieceList);var h=e.getRepresentValue(l);if(this._createItemSymbol(u,h,[0,0,s[0],s[1]]),c){var d=this.visualMapModel.getValueState(h);u.add(new Vc({style:{x:"right"===a?-n:s[0]+n,y:s[1]/2,text:l.text,verticalAlign:"middle",align:a,font:i,fill:o,opacity:"outOfRange"===d?.5:1}}))}t.add(u)}),this),u&&this._renderEndsText(t,u[1],s,c,a),rf(e.get("orient"),t,e.get("itemGap")),this.renderBackground(t),this.positionGroup(t)},e.prototype._enableHoverLink=function(t,e){var n=this;t.on("mouseover",(function(){return r("highlight")})).on("mouseout",(function(){return r("downplay")}));var r=function(t){var r=n.visualMapModel;r.option.hoverLink&&n.api.dispatchAction({type:t,batch:s2(r.findTargetDataIndices(e),r)})}},e.prototype._getItemAlign=function(){var t=this.visualMapModel,e=t.option;if("vertical"===e.orient)return a2(t,this.api,t.itemSize);var n=e.align;return n&&"auto"!==n||(n="left"),n},e.prototype._renderEndsText=function(t,e,n,r,i){if(e){var o=new La,a=this.visualMapModel.textStyleModel;o.add(new Vc({style:_d(a,{x:r?"right"===i?n[0]:0:n[0]/2,y:n[1]/2,verticalAlign:"middle",align:r?i:"center",text:e})})),t.add(o)}},e.prototype._getViewData=function(){var t=this.visualMapModel,e=It(t.getPieceList(),(function(t,e){return{piece:t,indexInModelPieceList:e}})),n=t.get("text"),r=t.get("orient"),i=t.get("inverse");return("horizontal"===r?i:!i)?e.reverse():n&&(n=n.slice().reverse()),{viewPieceList:e,endsText:n}},e.prototype._createItemSymbol=function(t,e,n){t.add(kx(this.getControllerVisual(e,"symbol"),n[0],n[1],n[2],n[3],this.getControllerVisual(e,"color")))},e.prototype._onItemClick=function(t){var e=this.visualMapModel,n=e.option,r=n.selectedMode;if(r){var i=_t(n.selected),o=e.getSelectedMapKey(t);"single"===r||!0===r?(i[o]=!0,Pt(i,(function(t,e){i[e]=e===o}))):i[o]=!i[o],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:i})}},e.type="visualMap.piecewise",e}(i2),D2=R2;function L2(t){t.registerComponentModel(E2),t.registerComponentView(D2),M2(t)}function N2(t){pS(T2),pS(L2)}var z2={label:{enabled:!0},decal:{show:!1}},B2=Ys(),F2={};function W2(t,e){var n=t.getModel("aria");if(n.get("enabled")){var r=_t(z2);xt(r.label,t.getLocaleModel().get("aria"),!1),xt(n.option,r,!1),i(),o()}function i(){var e=n.getModel("decal"),r=e.get("show");if(r){var i=de();t.eachSeries((function(t){if(!t.isColorBySeries()){var e=i.get(t.type);e||(e={},i.set(t.type,e)),B2(t).scope=e}})),t.eachRawSeries((function(e){if(!t.isSeriesFiltered(e))if(Ft(e.enableAriaDecal))e.enableAriaDecal();else{var n=e.getData();if(e.isColorBySeries()){var r=Gf(e.ecModel,e.name,F2,t.getSeriesCount()),i=n.getVisual("decal");n.setVisual("decal",u(i,r))}else{var o=e.getRawData(),a={},s=B2(e).scope;n.each((function(t){var e=n.getRawIndex(t);a[e]=t}));var l=o.count();o.each((function(t){var r=a[t],i=o.getName(t)||t+"",c=Gf(e.ecModel,i,s,l),h=n.getItemVisual(r,"decal");n.setItemVisual(r,"decal",u(h,c))}))}}function u(t,e){var n=t?Ot(Ot({},e),t):e;return n.dirty=!0,n}}))}}function o(){var r=e.getZr().dom;if(r){var i=t.getLocaleModel().get("aria"),o=n.getModel("label");if(o.option=St(o.option,i),o.get("enabled"))if(o.get("description"))r.setAttribute("aria-label",o.get("description"));else{var u,c=t.getSeriesCount(),h=o.get(["data","maxCount"])||10,d=o.get(["series","maxCount"])||10,p=Math.min(c,d);if(!(c<1)){var f=s();if(f){var g=o.get(["general","withTitle"]);u=a(g,{title:f})}else u=o.get(["general","withoutTitle"]);var v=[],m=c>1?o.get(["series","multiple","prefix"]):o.get(["series","single","prefix"]);u+=a(m,{seriesCount:c}),t.eachSeries((function(t,e){if(e<p){var n=void 0,r=t.get("name"),i=r?"withName":"withoutName";n=c>1?o.get(["series","multiple",i]):o.get(["series","single",i]),n=a(n,{seriesId:t.seriesIndex,seriesName:t.get("name"),seriesType:l(t.subType)});var s=t.getData();if(s.count()>h){var u=o.get(["data","partialData"]);n+=a(u,{displayCnt:h})}else n+=o.get(["data","allData"]);for(var d=o.get(["data","separator","middle"]),f=o.get(["data","separator","end"]),g=[],m=0;m<s.count();m++)if(m<h){var y=s.getName(m),b=s.getValues(m),_=o.get(["data",y?"withName":"withoutName"]);g.push(a(_,{name:y,value:b.join(d)}))}n+=g.join(d)+f,v.push(n)}}));var y=o.getModel(["series","multiple","separator"]),b=y.get("middle"),_=y.get("end");u+=v.join(b)+_,r.setAttribute("aria-label",u)}}}}function a(t,e){if(!Wt(t))return t;var n=t;return Pt(e,(function(t,e){n=n.replace(new RegExp("\\{\\s*"+e+"\\s*\\}","g"),t)})),n}function s(){var e=t.get("title");return e&&e.length&&(e=e[0]),e&&e.text}function l(e){var n=t.getLocaleModel().get(["series","typeNames"]);return n[e]||n.chart}}function j2(t){if(t&&t.aria){var e=t.aria;null!=e.show&&(e.enabled=e.show),e.label=e.label||{},Pt(["description","general","series","data"],(function(t){null!=e[t]&&(e.label[t]=e[t])}))}}function V2(t){t.registerPreprocessor(j2),t.registerVisual(t.PRIORITY.VISUAL.ARIA,W2)}var Q2={value:"eq","<":"lt","<=":"lte",">":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},H2=function(){function t(t){var e=this._condVal=Wt(t)?new RegExp(t):Yt(t)?t:null;if(null==e){var n="";0,kv(n)}}return t.prototype.evaluate=function(t){var e=typeof t;return Wt(e)?this._condVal.test(t):!!Vt(e)&&this._condVal.test(t+"")},t}(),Z2=function(){function t(){}return t.prototype.evaluate=function(){return this.value},t}(),G2=function(){function t(){}return t.prototype.evaluate=function(){for(var t=this.children,e=0;e<t.length;e++)if(!t[e].evaluate())return!1;return!0},t}(),X2=function(){function t(){}return t.prototype.evaluate=function(){for(var t=this.children,e=0;e<t.length;e++)if(t[e].evaluate())return!0;return!1},t}(),U2=function(){function t(){}return t.prototype.evaluate=function(){return!this.child.evaluate()},t}(),Y2=function(){function t(){}return t.prototype.evaluate=function(){for(var t=!!this.valueParser,e=this.getValue,n=e(this.valueGetterParam),r=t?this.valueParser(n):null,i=0;i<this.subCondList.length;i++)if(!this.subCondList[i].evaluate(t?r:n))return!1;return!0},t}();function q2(t,e){if(!0===t||!1===t){var n=new Z2;return n.value=t,n}var r="";return e3(t)||kv(r),t.and?K2("and",t,e):t.or?K2("or",t,e):t.not?J2(t,e):t3(t,e)}function K2(t,e,n){var r=e[t],i="";Bt(r)||kv(i),r.length||kv(i);var o="and"===t?new G2:new X2;return o.children=It(r,(function(t){return q2(t,n)})),o.children.length||kv(i),o}function J2(t,e){var n=t.not,r="";e3(n)||kv(r);var i=new U2;return i.child=q2(n,e),i.child||kv(r),i}function t3(t,e){for(var n="",r=e.prepareGetValue(t),i=[],o=Dt(t),a=t.parser,s=a?Tv(a):null,l=0;l<o.length;l++){var u=o[l];if("parser"!==u&&!e.valueGetterAttrMap.get(u)){var c=ve(Q2,u)?Q2[u]:u,h=t[u],d=s?s(h):h,p=Rv(c,d)||"reg"===c&&new H2(d);p||kv(n),i.push(p)}}i.length||kv(n);var f=new Y2;return f.valueGetterParam=r,f.valueParser=s,f.getValue=e.getValue,f.subCondList=i,f}function e3(t){return Qt(t)&&!Tt(t)}var n3=function(){function t(t,e){this._cond=q2(t,e)}return t.prototype.evaluate=function(){return this._cond.evaluate()},t}();function r3(t,e){return new n3(t,e)}var i3={type:"echarts:filter",transform:function(t){for(var e,n=t.upstream,r=r3(t.config,{valueGetterAttrMap:de({dimension:!0}),prepareGetValue:function(t){var e="",r=t.dimension;ve(t,"dimension")||kv(e);var i=n.getDimensionInfo(r);return i||kv(e),{dimIdx:i.index}},getValue:function(t){return n.retrieveValueFromItem(e,t.dimIdx)}}),i=[],o=0,a=n.count();o<a;o++)e=n.getRawDataItem(o),r.evaluate()&&i.push(e);return{data:i}}};var o3={type:"echarts:sort",transform:function(t){var e=t.upstream,n=t.config,r="",i=Ms(n);i.length||kv(r);var o=[];Pt(i,(function(t){var n=t.dimension,i=t.order,a=t.parser,s=t.incomparable;if(null==n&&kv(r),"asc"!==i&&"desc"!==i&&kv(r),s&&"min"!==s&&"max"!==s){var l="";0,kv(l)}if("asc"!==i&&"desc"!==i){var u="";0,kv(u)}var c=e.getDimensionInfo(n);c||kv(r);var h=a?Tv(a):null;a&&!h&&kv(r),o.push({dimIdx:c.index,parser:h,comparator:new $v(i,s)})}));var a=e.sourceFormat;a!==wf&&a!==Of&&kv(r);for(var s=[],l=0,u=e.count();l<u;l++)s.push(e.getRawDataItem(l));return s.sort((function(t,n){for(var r=0;r<o.length;r++){var i=o[r],a=e.retrieveValueFromItem(t,i.dimIdx),s=e.retrieveValueFromItem(n,i.dimIdx);i.parser&&(a=i.parser(a),s=i.parser(s));var l=i.comparator.evaluate(a,s);if(0!==l)return l}return 0})),{data:s}}};function a3(t){t.registerTransform(i3),t.registerTransform(o3)}var s3=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="dataset",e}return Q(e,t),e.prototype.init=function(e,n,r){t.prototype.init.call(this,e,n,r),this._sourceManager=new om(this),am(this)},e.prototype.mergeOption=function(e,n){t.prototype.mergeOption.call(this,e,n),am(this)},e.prototype.optionUpdated=function(){this._sourceManager.dirty()},e.prototype.getSourceManager=function(){return this._sourceManager},e.type="dataset",e.defaultOption={seriesLayoutBy:Cf},e}(vf),l3=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="dataset",e}return Q(e,t),e.type="dataset",e}(Hm);function u3(t){t.registerComponentModel(s3),t.registerComponentView(l3)}var c3=Lu.CMD;function h3(t,e){return Math.abs(t-e)<1e-5}function d3(t){var e,n,r,i,o,a=t.data,s=t.len(),l=[],u=0,c=0,h=0,d=0;function p(t,n){e&&e.length>2&&l.push(e),e=[t,n]}function f(t,n,r,i){h3(t,r)&&h3(n,i)||e.push(t,n,r,i,r,i)}function g(t,n,r,i,o,a){var s=Math.abs(n-t),l=4*Math.tan(s/4)/3,u=n<t?-1:1,c=Math.cos(t),h=Math.sin(t),d=Math.cos(n),p=Math.sin(n),f=c*o+r,g=h*a+i,v=d*o+r,m=p*a+i,y=o*l*u,b=a*l*u;e.push(f-y*h,g+b*c,v+y*p,m-b*d,v,m)}for(var v=0;v<s;){var m=a[v++],y=1===v;switch(y&&(u=a[v],c=a[v+1],h=u,d=c,m!==c3.L&&m!==c3.C&&m!==c3.Q||(e=[h,d])),m){case c3.M:u=h=a[v++],c=d=a[v++],p(h,d);break;case c3.L:n=a[v++],r=a[v++],f(u,c,n,r),u=n,c=r;break;case c3.C:e.push(a[v++],a[v++],a[v++],a[v++],u=a[v++],c=a[v++]);break;case c3.Q:n=a[v++],r=a[v++],i=a[v++],o=a[v++],e.push(u+2/3*(n-u),c+2/3*(r-c),i+2/3*(n-i),o+2/3*(r-o),i,o),u=i,c=o;break;case c3.A:var b=a[v++],_=a[v++],x=a[v++],w=a[v++],O=a[v++],S=a[v++]+O;v+=1;var A=!a[v++];n=Math.cos(O)*x+b,r=Math.sin(O)*w+_,y?(h=n,d=r,p(h,d)):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 c3.R:h=u=a[v++],d=c=a[v++],n=h+a[v++],r=d+a[v++],p(n,d),f(n,d,n,r),f(n,r,h,r),f(h,r,h,d),f(h,d,n,d);break;case c3.Z:e&&f(u,c,h,d),u=h,c=d;break}}return e&&e.length>2&&l.push(e),l}function p3(t,e,n,r,i,o,a,s,l,u){if(h3(t,n)&&h3(e,r)&&h3(i,a)&&h3(o,s))l.push(a,s);else{var c=2/u,h=c*c,d=a-t,p=s-e,f=Math.sqrt(d*d+p*p);d/=f,p/=f;var g=n-t,v=r-e,m=i-a,y=o-s,b=g*g+v*v,_=m*m+y*y;if(b<h&&_<h)l.push(a,s);else{var x=d*g+p*v,w=-d*m-p*y,O=b-x*x,S=_-w*w;if(O<h&&x>=0&&S<h&&w>=0)l.push(a,s);else{var A=[],k=[];Wr(t,n,i,a,.5,A),Wr(e,r,o,s,.5,k),p3(A[0],k[0],A[1],k[1],A[2],k[2],A[3],k[3],l,u),p3(A[4],k[4],A[5],k[5],A[6],k[6],A[7],k[7],l,u)}}}}function f3(t,e){var n=d3(t),r=[];e=e||1;for(var i=0;i<n.length;i++){var o=n[i],a=[],s=o[0],l=o[1];a.push(s,l);for(var u=2;u<o.length;){var c=o[u++],h=o[u++],d=o[u++],p=o[u++],f=o[u++],g=o[u++];p3(s,l,c,h,d,p,f,g,a,e),s=f,l=g}r.push(a)}return r}function g3(t,e,n){var r=t[e],i=t[1-e],o=Math.abs(r/i),a=Math.ceil(Math.sqrt(o*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,h=n-c;if(h>0)for(u=0;u<h;u++)l[u%a]+=1;return l}function v3(t,e,n){for(var r=t.r0,i=t.r,o=t.startAngle,a=t.endAngle,s=Math.abs(a-o),l=s*i,u=i-r,c=l>Math.abs(u),h=g3([l,u],c?0:1,e),d=(c?s:u)/h.length,p=0;p<h.length;p++)for(var f=(c?u:s)/h[p],g=0;g<h[p];g++){var v={};c?(v.startAngle=o+d*p,v.endAngle=o+d*(p+1),v.r0=r+f*g,v.r=r+f*(g+1)):(v.startAngle=o+f*g,v.endAngle=o+f*(g+1),v.r0=r+d*p,v.r=r+d*(p+1)),v.clockwise=t.clockwise,v.cx=t.cx,v.cy=t.cy,n.push(v)}}function m3(t,e,n){for(var r=t.width,i=t.height,o=r>i,a=g3([r,i],o?0:1,e),s=o?"width":"height",l=o?"height":"width",u=o?"x":"y",c=o?"y":"x",h=t[s]/a.length,d=0;d<a.length;d++)for(var p=t[l]/a[d],f=0;f<a[d];f++){var g={};g[u]=d*h,g[c]=f*p,g[s]=h,g[l]=p,g.x+=t.x,g.y+=t.y,n.push(g)}}function y3(t,e,n,r){return t*r-n*e}function b3(t,e,n,r,i,o,a,s){var l=n-t,u=r-e,c=a-i,h=s-o,d=y3(c,h,l,u);if(Math.abs(d)<1e-6)return null;var p=t-i,f=e-o,g=y3(p,f,c,h)/d;return g<0||g>1?null:new Dn(g*l+t,g*u+e)}function _3(t,e,n){var r=new Dn;Dn.sub(r,n,e),r.normalize();var i=new Dn;Dn.sub(i,t,e);var o=i.dot(r);return o}function x3(t,e){var n=t[t.length-1];n&&n[0]===e[0]&&n[1]===e[1]||t.push(e)}function w3(t,e,n){for(var r=t.length,i=[],o=0;o<r;o++){var a=t[o],s=t[(o+1)%r],l=b3(a[0],a[1],s[0],s[1],e.x,e.y,n.x,n.y);l&&i.push({projPt:_3(l,e,n),pt:l,idx:o})}if(i.length<2)return[{points:t},{points:t}];i.sort((function(t,e){return t.projPt-e.projPt}));var u=i[0],c=i[i.length-1];if(c.idx<u.idx){var h=u;u=c,c=h}var d=[u.pt.x,u.pt.y],p=[c.pt.x,c.pt.y],f=[d],g=[p];for(o=u.idx+1;o<=c.idx;o++)x3(f,t[o].slice());x3(f,p),x3(f,d);for(o=c.idx+1;o<=u.idx+r;o++)x3(g,t[o%r].slice());return x3(g,d),x3(g,p),[{points:f},{points:g}]}function O3(t){var e=t.points,n=[],r=[];cu(e,n,r);var i=new Hn(n[0],n[1],r[0]-n[0],r[1]-n[1]),o=i.width,a=i.height,s=i.x,l=i.y,u=new Dn,c=new Dn;return o>a?(u.x=c.x=s+o/2,u.y=l,c.y=l+a):(u.y=c.y=l+a/2,u.x=s,c.x=s+o),w3(e,u,c)}function S3(t,e,n,r){if(1===n)r.push(e);else{var i=Math.floor(n/2),o=t(e);S3(t,o[0],i,r),S3(t,o[1],n-i,r)}return r}function A3(t,e){for(var n=[],r=0;r<e;r++)n.push(gy(t));return n}function k3(t,e){e.setStyle(t.style),e.z=t.z,e.z2=t.z2,e.zlevel=t.zlevel}function C3(t){for(var e=[],n=0;n<t.length;)e.push([t[n++],t[n++]]);return e}function M3(t,e){var n,r=[],i=t.shape;switch(t.type){case"rect":m3(i,e,r),n=Ac;break;case"sector":v3(i,e,r),n=By;break;case"circle":v3({r0:0,r:i.r,startAngle:0,endAngle:2*Math.PI,cx:i.cx,cy:i.cy},e,r),n=By;break;default:var o=t.getComputedTransform(),a=o?Math.sqrt(Math.max(o[0]*o[0]+o[1]*o[1],o[2]*o[2]+o[3]*o[3])):1,s=It(f3(t.getUpdatedPathProxy(),a),(function(t){return C3(t)})),l=s.length;if(0===l)S3(O3,{points:s[0]},e,r);else if(l===e)for(var u=0;u<l;u++)r.push({points:s[u]});else{var c=0,h=It(s,(function(t){var e=[],n=[];cu(t,e,n);var r=(n[1]-e[1])*(n[0]-e[0]);return c+=r,{poly:t,area:r}}));h.sort((function(t,e){return e.area-t.area}));var d=e;for(u=0;u<l;u++){var p=h[u];if(d<=0)break;var f=u===l-1?d:Math.ceil(p.area/c*e);f<0||(S3(O3,{points:p.poly},f,r),d-=f)}}n=Gy;break}if(!n)return A3(t,e);var g=[];for(u=0;u<r.length;u++){var v=new n;v.setShape(r[u]),k3(t,v),g.push(v)}return g}function T3(t,e){var n=t.length,r=e.length;if(n===r)return[t,e];for(var i=[],o=[],a=n<r?t:e,s=Math.min(n,r),l=Math.abs(r-n)/6,u=(s-2)/6,c=Math.ceil(l/u)+1,h=[a[0],a[1]],d=l,p=2;p<s;){var f=a[p-2],g=a[p-1],v=a[p++],m=a[p++],y=a[p++],b=a[p++],_=a[p++],x=a[p++];if(d<=0)h.push(v,m,y,b,_,x);else{for(var w=Math.min(d,c-1)+1,O=1;O<=w;O++){var S=O/w;Wr(f,v,y,_,S,i),Wr(g,m,b,x,S,o),f=i[3],g=o[3],h.push(i[1],o[1],i[2],o[2],f,g),v=i[5],m=o[5],y=i[6],b=o[6]}d-=w-1}}return a===t?[h,e]:[t,h]}function P3(t,e){for(var n=t.length,r=t[n-2],i=t[n-1],o=[],a=0;a<e.length;)o[a++]=r,o[a++]=i;return o}function I3(t,e){for(var n,r,i,o=[],a=[],s=0;s<Math.max(t.length,e.length);s++){var l=t[s],u=e[s],c=void 0,h=void 0;l?u?(n=T3(l,u),c=n[0],h=n[1],r=c,i=h):(h=P3(i||l,l),c=l):(c=P3(r||u,u),h=u),o.push(c),a.push(h)}return[o,a]}function $3(t){for(var e=0,n=0,r=0,i=t.length,o=0,a=i-2;o<i;a=o,o+=2){var s=t[a],l=t[a+1],u=t[o],c=t[o+1],h=s*c-u*l;e+=h,n+=(s+u)*h,r+=(l+c)*h}return 0===e?[t[0]||0,t[1]||0]:[n/e/3,r/e/3,e]}function E3(t,e,n,r){for(var i=(t.length-2)/6,o=1/0,a=0,s=t.length,l=s-2,u=0;u<i;u++){for(var c=6*u,h=0,d=0;d<s;d+=2){var p=0===d?c:(c+d-2)%l+2,f=t[p]-n[0],g=t[p+1]-n[1],v=e[d]-r[0],m=e[d+1]-r[1],y=v-f,b=m-g;h+=y*y+b*b}h<o&&(o=h,a=u)}return a}function R3(t){for(var e=[],n=t.length,r=0;r<n;r+=2)e[r]=t[n-r-2],e[r+1]=t[n-r-1];return e}function D3(t,e,n,r){for(var i,o=[],a=0;a<t.length;a++){var s=t[a],l=e[a],u=$3(s),c=$3(l);null==i&&(i=u[2]<0!==c[2]<0);var h=[],d=[],p=0,f=1/0,g=[],v=s.length;i&&(s=R3(s));for(var m=6*E3(s,l,u,c),y=v-2,b=0;b<y;b+=2){var _=(m+b)%y+2;h[b+2]=s[_]-u[0],h[b+3]=s[_+1]-u[1]}if(h[0]=s[m]-u[0],h[1]=s[m+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=h[b],C=h[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 R=0;R<g.length;R++)d[R]=g[R]}}else for(var D=0;D<v;D+=2)d[D]=l[D]-c[0],d[D+1]=l[D+1]-c[1];o.push({from:h,to:d,fromCp:u,toCp:c,rotation:-p})}return o}function L3(t){return t.__isCombineMorphing}var N3="__mOriginal_";function z3(t,e,n){var r=N3+e,i=t[r]||t[e];t[r]||(t[r]=t[e]);var o=n.replace,a=n.after,s=n.before;t[e]=function(){var t,e=arguments;return s&&s.apply(this,e),t=o?o.apply(this,e):i.apply(this,e),a&&a.apply(this,e),t}}function B3(t,e){var n=N3+e;t[n]&&(t[e]=t[n],t[n]=null)}function F3(t,e){for(var n=0;n<t.length;n++)for(var r=t[n],i=0;i<r.length;){var o=r[i],a=r[i+1];r[i++]=e[0]*o+e[2]*a+e[4],r[i++]=e[1]*o+e[3]*a+e[5]}}function W3(t,e){var n=t.getUpdatedPathProxy(),r=e.getUpdatedPathProxy(),i=I3(d3(n),d3(r)),o=i[0],a=i[1],s=t.getComputedTransform(),l=e.getComputedTransform();function u(){this.transform=null}s&&F3(o,s),l&&F3(a,l),z3(e,"updateTransform",{replace:u}),e.transform=null;var c=D3(o,a,10,Math.PI),h=[];z3(e,"buildPath",{replace:function(t){for(var n=e.__morphT,r=1-n,i=[],o=0;o<c.length;o++){var a=c[o],s=a.from,l=a.to,u=a.rotation*n,d=a.fromCp,p=a.toCp,f=Math.sin(u),g=Math.cos(u);Fe(i,d,p,n);for(var v=0;v<s.length;v+=2){var m=s[v],y=s[v+1],b=l[v],_=l[v+1],x=m*r+b*n,w=y*r+_*n;h[v]=x*g-w*f+i[0],h[v+1]=x*f+w*g+i[1]}var O=h[0],S=h[1];t.moveTo(O,S);for(v=2;v<s.length;){b=h[v++],_=h[v++];var A=h[v++],k=h[v++],C=h[v++],M=h[v++];O===b&&S===_&&A===C&&k===M?t.lineTo(C,M):t.bezierCurveTo(b,_,A,k,C,M),O=C,S=M}}}})}function j3(t,e,n){if(!t||!e)return e;var r=n.done,i=n.during;function o(){B3(e,"buildPath"),B3(e,"updateTransform"),e.__morphT=-1,e.createPathProxy(),e.dirtyShape()}return W3(t,e),e.__morphT=0,e.animateTo({__morphT:1},St({during:function(t){e.dirtyShape(),i&&i(t)},done:function(){o(),r&&r()}},n)),e}function V3(t,e,n,r,i,o){var a=16;t=i===n?0:Math.round(32767*(t-n)/(i-n)),e=o===r?0:Math.round(32767*(e-r)/(o-r));for(var s,l=0,u=(1<<a)/2;u>0;u/=2){var c=0,h=0;(t&u)>0&&(c=1),(e&u)>0&&(h=1),l+=u*u*(3*c^h),0===h&&(1===c&&(t=u-1-t,e=u-1-e),s=t,t=e,e=s)}return l}function Q3(t){var e=1/0,n=1/0,r=-1/0,i=-1/0,o=It(t,(function(t){var o=t.getBoundingRect(),a=t.getComputedTransform(),s=o.x+o.width/2+(a?a[4]:0),l=o.y+o.height/2+(a?a[5]:0);return e=Math.min(s,e),n=Math.min(l,n),r=Math.max(s,r),i=Math.max(l,i),[s,l]})),a=It(o,(function(o,a){return{cp:o,z:V3(o[0],o[1],e,n,r,i),path:t[a]}}));return a.sort((function(t,e){return t.z-e.z})).map((function(t){return t.path}))}function H3(t){return M3(t.path,t.count)}function Z3(){return{fromIndividuals:[],toIndividuals:[],count:0}}function G3(t,e,n){var r=[];function i(t){for(var e=0;e<t.length;e++){var n=t[e];L3(n)?i(n.childrenRef()):n instanceof lc&&r.push(n)}}i(t);var o=r.length;if(!o)return Z3();var a=n.dividePath||H3,s=a({path:e,count:o});if(s.length!==o)return console.error("Invalid morphing: unmatched splitted path"),Z3();r=Q3(r),s=Q3(s);for(var l=n.done,u=n.during,c=n.individualDelay,h=new ha,d=0;d<o;d++){var p=r[d],f=s[d];f.parent=e,f.copyTransform(h),c||W3(p,f)}function g(t){for(var e=0;e<s.length;e++)s[e].addSelfToZr(t)}function v(){e.__isCombineMorphing=!1,e.__morphT=-1,e.childrenRef=null,B3(e,"addSelfToZr"),B3(e,"removeSelfFromZr")}e.__isCombineMorphing=!0,e.childrenRef=function(){return s},z3(e,"addSelfToZr",{after:function(t){g(t)}}),z3(e,"removeSelfFromZr",{after:function(t){for(var e=0;e<s.length;e++)s[e].removeSelfFromZr(t)}});var m=s.length;if(c){var y=m,b=function(){y--,0===y&&(v(),l&&l())};for(d=0;d<m;d++){var _=c?St({delay:(n.delay||0)+c(d,m,r[d],s[d]),done:b},n):n;j3(r[d],s[d],_)}}else e.__morphT=0,e.animateTo({__morphT:1},St({during:function(t){for(var n=0;n<m;n++){var r=s[n];r.__morphT=e.__morphT,r.dirtyShape()}u&&u(t)},done:function(){v();for(var e=0;e<t.length;e++)B3(t[e],"updateTransform");l&&l()}},n));return e.__zr&&g(e.__zr),{fromIndividuals:r,toIndividuals:s,count:m}}function X3(t,e,n){var r=e.length,i=[],o=n.dividePath||H3;function a(t){for(var e=0;e<t.length;e++){var n=t[e];L3(n)?a(n.childrenRef()):n instanceof lc&&i.push(n)}}if(L3(t)){a(t.childrenRef());var s=i.length;if(s<r)for(var l=0,u=s;u<r;u++)i.push(gy(i[l++%s]));i.length=r}else{i=o({path:t,count:r});var c=t.getComputedTransform();for(u=0;u<i.length;u++)i[u].setLocalTransform(c);if(i.length!==r)return console.error("Invalid morphing: unmatched splitted path"),Z3()}i=Q3(i),e=Q3(e);var h=n.individualDelay;for(u=0;u<r;u++){var d=h?St({delay:(n.delay||0)+h(u,r,i[u],e[u])},n):n;j3(i[u],e[u],d)}return{fromIndividuals:i,toIndividuals:e,count:e.length}}function U3(t){return Bt(t[0])}function Y3(t,e){for(var n=[],r=t.length,i=0;i<r;i++)n.push({one:t[i],many:[]});for(i=0;i<e.length;i++){var o=e[i].length,a=void 0;for(a=0;a<o;a++)n[a%r].many.push(e[i][a])}var s=0;for(i=r-1;i>=0;i--)if(!n[i].many.length){var l=n[s].many;if(l.length<=1){if(!s)return n;s=0}o=l.length;var u=Math.ceil(o/2);n[i].many=l.slice(u,o),n[s].many=l.slice(0,u),s++}return n}var q3={clone:function(t){for(var e=[],n=1-Math.pow(1-t.path.style.opacity,1/t.count),r=0;r<t.count;r++){var i=gy(t.path);i.setStyle("opacity",n),e.push(i)}return e},split:null};function K3(t,e,n,r,i,o){if(t.length&&e.length){var a=od("update",r,i);if(a&&a.duration>0){var s,l,u=r.getModel("universalTransition").get("delay"),c=Object.assign({setToFinal:!0},a);U3(t)&&(s=t,l=e),U3(e)&&(s=e,l=t);for(var h=s?s===t:t.length>e.length,d=s?Y3(l,s):Y3(h?e:t,[h?t:e]),p=0,f=0;f<d.length;f++)p+=d[f].many.length;var g=0;for(f=0;f<d.length;f++)v(d[f],h,g,p),g+=d[f].many.length}}function v(t,e,r,i,a){var s=t.many,l=t.one;if(1!==s.length||a)for(var h=St({dividePath:q3[n],individualDelay:u&&function(t,e,n,o){return u(t+r,i)}},c),d=e?G3(s,l,h):X3(l,s,h),p=d.fromIndividuals,f=d.toIndividuals,g=p.length,m=0;m<g;m++){_=u?St({delay:u(m,g)},c):c;o(p[m],f[m],e?s[m]:t.one,e?t.one:s[m],_)}else{var y=e?s[0]:l,b=e?l:s[0];if(L3(y))v({many:[y],one:b},!0,r,i,!0);else{var _=u?St({delay:u(r,i)},c):c;j3(y,b,_),o(y,b,y,b,_)}}}}function J3(t){if(!t)return[];if(Bt(t)){for(var e=[],n=0;n<t.length;n++)e.push(J3(t[n]));return e}var r=[];return t.traverse((function(t){t instanceof lc&&!t.disableMorphing&&!t.invisible&&!t.ignore&&r.push(t)})),r}var t5=1e4,e5=0,n5=1,r5=2,i5=Ys();function o5(t,e){for(var n=t.dimensions,r=0;r<n.length;r++){var i=t.getDimensionInfo(n[r]);if(i&&0===i.otherDims[e])return n[r]}}function a5(t,e,n){var r=t.getDimensionInfo(n),i=r&&r.ordinalMeta;if(r){var o=t.get(r.name,e);return i&&i.categories[o]||o+""}}function s5(t,e,n,r){var i=r?"itemChildGroupId":"itemGroupId",o=o5(t,i);if(o){var a=a5(t,e,o);return a}var s=t.getRawDataItem(e),l=r?"childGroupId":"groupId";return s&&s[l]?s[l]+"":r?void 0:n||t.getId(e)}function l5(t){var e=[];return Pt(t,(function(t){var n=t.data,r=t.dataGroupId;if(!(n.count()>t5))for(var i=n.getIndices(),o=0;o<i.length;o++)e.push({data:n,groupId:s5(n,o,r,!1),childGroupId:s5(n,o,r,!0),divide:t.divide,dataIndex:o})})),e}function u5(t,e,n){t.traverse((function(t){t instanceof lc&&ld(t,{style:{opacity:0}},e,{dataIndex:n,isFrom:!0})}))}function c5(t){if(t.parent){var e=t.getComputedTransform();t.setLocalTransform(e),t.parent.remove(t)}}function h5(t){t.stopAnimation(),t.isGroup&&t.traverse((function(t){t.stopAnimation()}))}function d5(t,e,n){var r=od("update",n,e);r&&t.traverse((function(t){if(t instanceof eu){var e=fd(t);e&&t.animateFrom({style:e},r)}}))}function p5(t,e){var n=t.length;if(n!==e.length)return!1;for(var r=0;r<n;r++){var i=t[r],o=e[r];if(i.data.getId(i.dataIndex)!==o.data.getId(o.dataIndex))return!1}return!0}function f5(t,e,n){var r=l5(t),i=l5(e);function o(t,e,n,r,i){(n||t)&&e.animateFrom({style:n&&n!==t?Ot(Ot({},n.style),t.style):t.style},i)}var a=!1,s=e5,l=de(),u=de();r.forEach((function(t){t.groupId&&l.set(t.groupId,!0),t.childGroupId&&u.set(t.childGroupId,!0)}));for(var c=0;c<i.length;c++){var h=i[c].groupId;if(u.get(h)){s=n5;break}var d=i[c].childGroupId;if(d&&l.get(d)){s=r5;break}}function p(t,e){return function(n){var r=n.data,i=n.dataIndex;return e?r.getId(i):t?s===n5?n.childGroupId:n.groupId:s===r5?n.childGroupId:n.groupId}}var f=p5(r,i),g={};if(!f)for(c=0;c<i.length;c++){var v=i[c],m=v.data.getItemGraphicEl(v.dataIndex);m&&(g[m.id]=!0)}function y(t,e){var n=r[e],s=i[t],l=s.data.hostModel,u=n.data.getItemGraphicEl(n.dataIndex),c=s.data.getItemGraphicEl(s.dataIndex);u!==c?u&&g[u.id]||c&&(h5(c),u?(h5(u),c5(u),a=!0,K3(J3(u),J3(c),s.divide,l,t,o)):u5(c,l,t)):c&&d5(c,s.dataIndex,l)}new mS(r,i,p(!0,f),p(!1,f),null,"multiple").update(y).updateManyToOne((function(t,e){var n=i[t],s=n.data,l=s.hostModel,u=s.getItemGraphicEl(n.dataIndex),c=Et(It(e,(function(t){return r[t].data.getItemGraphicEl(r[t].dataIndex)})),(function(t){return t&&t!==u&&!g[t.id]}));u&&(h5(u),c.length?(Pt(c,(function(t){h5(t),c5(t)})),a=!0,K3(J3(c),J3(u),n.divide,l,t,o)):u5(u,l,n.dataIndex))})).updateOneToMany((function(t,e){var n=r[e],s=n.data.getItemGraphicEl(n.dataIndex);if(!s||!g[s.id]){var l=Et(It(t,(function(t){return i[t].data.getItemGraphicEl(i[t].dataIndex)})),(function(t){return t&&t!==s})),u=i[t[0]].data.hostModel;l.length&&(Pt(l,(function(t){return h5(t)})),s?(h5(s),c5(s),a=!0,K3(J3(s),J3(l),n.divide,u,t[0],o)):Pt(l,(function(e){return u5(e,u,t[0])})))}})).updateManyToMany((function(t,e){new mS(e,t,(function(t){return r[t].data.getId(r[t].dataIndex)}),(function(t){return i[t].data.getId(i[t].dataIndex)})).update((function(n,r){y(t[n],e[r])})).execute()})).execute(),a&&Pt(e,(function(t){var e=t.data,r=e.hostModel,i=r&&n.getViewOfSeriesModel(r),o=od("update",r,0);i&&r.isAnimationEnabled()&&o&&o.duration>0&&i.group.traverse((function(t){t instanceof lc&&!t.animators.length&&t.animateFrom({style:{opacity:0}},o)}))}))}function g5(t){var e=t.getModel("universalTransition").get("seriesKey");return e||t.id}function v5(t){return Bt(t)?t.sort().join(","):t}function m5(t){if(t.hostModel)return t.hostModel.getModel("universalTransition").get("divideShape")}function y5(t,e){var n=de(),r=de(),i=de();return Pt(t.oldSeries,(function(e,n){var o=t.oldDataGroupIds[n],a=t.oldData[n],s=g5(e),l=v5(s);r.set(l,{dataGroupId:o,data:a}),Bt(s)&&Pt(s,(function(t){i.set(t,{key:l,dataGroupId:o,data:a})}))})),Pt(e.updatedSeries,(function(t){if(t.isUniversalTransitionEnabled()&&t.isAnimationEnabled()){var e=t.get("dataGroupId"),o=t.getData(),a=g5(t),s=v5(a),l=r.get(s);if(l)n.set(s,{oldSeries:[{dataGroupId:l.dataGroupId,divide:m5(l.data),data:l.data}],newSeries:[{dataGroupId:e,divide:m5(o),data:o}]});else if(Bt(a)){0;var u=[];Pt(a,(function(t){var e=r.get(t);e.data&&u.push({dataGroupId:e.dataGroupId,divide:m5(e.data),data:e.data})})),u.length&&n.set(s,{oldSeries:u,newSeries:[{dataGroupId:e,data:o,divide:m5(o)}]})}else{var c=i.get(a);if(c){var h=n.get(c.key);h||(h={oldSeries:[{dataGroupId:c.dataGroupId,data:c.data,divide:m5(c.data)}],newSeries:[]},n.set(c.key,h)),h.newSeries.push({dataGroupId:e,data:o,divide:m5(o)})}}}})),n}function b5(t,e){for(var n=0;n<t.length;n++){var r=null!=e.seriesIndex&&e.seriesIndex===t[n].seriesIndex||null!=e.seriesId&&e.seriesId===t[n].id;if(r)return n}}function _5(t,e,n,r){var i=[],o=[];Pt(Ms(t.from),(function(t){var n=b5(e.oldSeries,t);n>=0&&i.push({dataGroupId:e.oldDataGroupIds[n],data:e.oldData[n],divide:m5(e.oldData[n]),groupIdDim:t.dimension})})),Pt(Ms(t.to),(function(t){var r=b5(n.updatedSeries,t);if(r>=0){var i=n.updatedSeries[r].getData();o.push({dataGroupId:e.oldDataGroupIds[r],data:i,divide:m5(i),groupIdDim:t.dimension})}})),i.length>0&&o.length>0&&f5(i,o,r)}function x5(t){t.registerUpdateLifecycle("series:beforeupdate",(function(t,e,n){Pt(Ms(n.seriesTransition),(function(t){Pt(Ms(t.to),(function(t){for(var e=n.updatedSeries,r=0;r<e.length;r++)(null!=t.seriesIndex&&t.seriesIndex===e[r].seriesIndex||null!=t.seriesId&&t.seriesId===e[r].id)&&(e[r][Em]=!0)}))}))})),t.registerUpdateLifecycle("series:transition",(function(t,e,n){var r=i5(e);if(r.oldSeries&&n.updatedSeries&&n.optionChanged){var i=n.seriesTransition;if(i)Pt(Ms(i),(function(t){_5(t,r,n,e)}));else{var o=y5(r,n);Pt(o.keys(),(function(t){var n=o.get(t);f5(n.oldSeries,n.newSeries,e)}))}Pt(n.updatedSeries,(function(t){t[Em]&&(t[Em]=!1)}))}for(var a=t.getSeries(),s=r.oldSeries=[],l=r.oldDataGroupIds=[],u=r.oldData=[],c=0;c<a.length;c++){var h=a[c].getData();h.count()<t5&&(s.push(a[c]),l.push(a[c].get("dataGroupId")),u.push(h))}}))}pS([TM]),pS([uP]),pS([lI,ZI,v$,jE,uR,sL,oN,Ez,KB,lF,bF,Sj,rV,xV,UV,rQ,kQ,NQ,pH,OH,jH,yG]),pS(vX),pS(lU),pS(aL),pS(RU),pS(Oj),pS(QU),pS(lY),pS(Zq),pS(MK),pS(gX),pS(lJ),pS(hJ),pS(RJ),pS(a0),pS(y0),pS(I0),pS(a1),pS(W1),pS(O1),pS(F1),pS(N2),pS(T2),pS(L2),pS(V2),pS(a3),pS(u3),pS(x5),pS(mM);n(85194),n(27092),n(68925),n(31796),n(21467),n(22064),n(92114);var w5=n(57352);function O5(t){return!!(0,m.o5)()&&((0,m.jr)(t),!0)}function S5(t){return"function"===typeof t?t():(0,m.R1)(t)}const A5="undefined"!==typeof window&&"undefined"!==typeof document,k5=("undefined"!==typeof WorkerGlobalScope&&(globalThis,WorkerGlobalScope),Object.prototype.toString),C5=t=>"[object Object]"===k5.call(t),M5=()=>{};function T5(t,e){function n(...n){return new Promise(((r,i)=>{Promise.resolve(t((()=>e.apply(this,n)),{fn:e,thisArg:this,args:n})).then(r).catch(i)}))}return n}function P5(t,e={}){let n,r,i=M5;const o=t=>{clearTimeout(t),i(),i=M5},a=a=>{const s=S5(t),l=S5(e.maxWait);return n&&o(n),s<=0||void 0!==l&&l<=0?(r&&(o(r),r=null),Promise.resolve(a())):new Promise(((t,u)=>{i=e.rejectOnCancel?u:t,l&&!r&&(r=setTimeout((()=>{n&&o(n),r=null,t(a())}),l)),n=setTimeout((()=>{r&&o(r),r=null,t(a())}),s)}))};return a}w5.Sg,w5.Sg,w5.Sg;function I5(t){const e=Object.create(null);return n=>{const r=e[n];return r||(e[n]=t(n))}}const $5=/\B([A-Z])/g,E5=(I5((t=>t.replace($5,"-$1").toLowerCase())),/-(\w)/g);I5((t=>t.replace(E5,((t,e)=>e?e.toUpperCase():""))));function R5(t){return t||(0,v.nI)()}function D5(t,e=200,n={}){return T5(P5(e,n),t)}function L5(t,e){const n=R5(e);n&&(0,v.hi)(t,e)}n(60726),n(82765),n(13312);function N5(t){var e;const n=S5(t);return null!=(e=null==n?void 0:n.$el)?e:n}const z5=A5?window:void 0;A5&&window.document,A5&&window.navigator,A5&&window.location;function B5(...t){let e,n,r,i;if("string"===typeof t[0]||Array.isArray(t[0])?([n,r,i]=t,e=z5):[e,n,r,i]=t,!e)return M5;Array.isArray(n)||(n=[n]),Array.isArray(r)||(r=[r]);const o=[],a=()=>{o.forEach((t=>t())),o.length=0},s=(t,e,n,r)=>(t.addEventListener(e,n,r),()=>t.removeEventListener(e,n,r)),l=(0,v.wB)((()=>[N5(e),S5(i)]),(([t,e])=>{if(a(),!t)return;const i=C5(e)?{...e}:e;o.push(...n.flatMap((e=>r.map((n=>s(t,e,n,i))))))}),{immediate:!0,flush:"post"}),u=()=>{l(),a()};return O5(u),u}"undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window?window:"undefined"!==typeof global?global:"undefined"!==typeof self&&self;Number.POSITIVE_INFINITY;function F5(t,e="default"){let n=null,r=s;const i=(0,m.KR)({});let o;const a=(0,v.EW)((()=>i.value));function s(){n?.resize({animation:{duration:300,easing:"quadraticIn"}})}function l(i=e){const a=(0,m.R1)(t);if(!a||!(0,m.R1)(a))return;n=BO(a,i);const s=B5(window,"resize",r);o=s}function u(e,r=!0){return i.value=e,new Promise((e=>{0===(0,m.R1)(t)?.offsetHeight&&setTimeout((()=>{u((0,m.R1)(a)),e(null)}),30),(0,v.dY)((()=>{setTimeout((()=>{(n||(l("default"),n))&&(r&&n?.clear(),n?.setOption((0,m.R1)(a)),e(null))}),30)}))}))}function c(){return n||l("default"),n}return r=D5(s,200),(0,v.wB)((()=>e),(t=>{n&&(n.dispose(),l(t),u(i.value))})),L5((()=>{n&&(o(),n.dispose(),n=null)})),{setOptions:u,resize:s,echarts:g,getInstance:c}}var W5=n(11059),j5=(0,v.pM)({__name:"Charts",props:{echartsOptions:{},width:{},height:{},loading:{type:Boolean}},setup(t){const e=t,n=(0,m.KR)(null),{setOptions:r,resize:i}=F5(n),o=(0,v.h)(j.A,{style:{fontSize:"24px"}});return(0,v.wB)((()=>[e.width,e.height]),(0,W5.throttle)((async()=>{i()}),200)),(0,v.wB)((()=>e),(async()=>{await(0,v.dY)();const{echartsOptions:t}=e;r(t)}),{immediate:!0,deep:!0}),(t,e)=>((0,v.uX)(),(0,v.Wv)((0,m.R1)(W),{spinning:t.loading,indicator:(0,m.R1)(o)},{default:(0,v.k6)((()=>[(0,v.Lk)("div",{ref_key:"chartRef",ref:n,style:(0,y.Tr)({width:t.width+"px",height:t.height+"px"})},null,4)])),_:1},8,["spinning","indicator"]))}});const V5=j5;var Q5=V5},55673:function(t,e,n){"use strict";n.d(e,{A:function(){return U_}});var r=n(73913),i=n(78753),o=n(79357),a=n(83436),s=n(18918),l=n(58412),u=n(45776),c=n(46808),h=n(15240);c.A.Group=u.A,c.A.Button=h.A,c.A.install=function(t){return t.component(c.A.name,c.A),t.component(c.A.Group.name,c.A.Group),t.component(c.A.Button.name,c.A.Button),t};var d=c.A,p=n(26347),f=n(83848),g=n(98657),v=n(69751),m=n(13389),y=n(1592),b=n(5530),_=n(74220),x=n(23273),w=n(85545),O=n(53775),S=n(47960),A=n(66041),k=n(97369),C=n(3551),M=n(41038),T=n(18765),P=n(54183),I=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n};let $;const E=t=>{$={x:t.pageX,y:t.pageY},setTimeout((()=>$=null),100)};(0,k.qz)()&&(0,_.A)(document.documentElement,"click",E,!0);const R=()=>({prefixCls:String,visible:{type:Boolean,default:void 0},open:{type:Boolean,default:void 0},confirmLoading:{type:Boolean,default:void 0},title:b.A.any,closable:{type:Boolean,default:void 0},closeIcon:b.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:b.A.any,okText:b.A.any,okType:String,cancelText:b.A.any,icon:b.A.any,maskClosable:{type:Boolean,default:void 0},forceRender:{type:Boolean,default:void 0},okButtonProps:(0,A.ge)(),cancelButtonProps:(0,A.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,A.ge)(),maskStyle:(0,A.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,A.ge)()});var D=(0,r.pM)({compatConfig:{MODE:3},name:"AModal",inheritAttrs:!1,props:(0,S.A)(R(),{width:520,confirmLoading:!1,okType:"primary"}),setup(t,e){let{emit:n,slots:i,attrs:o}=e;const[a]=(0,O.n)("Modal"),{prefixCls:l,rootPrefixCls:u,direction:c,getPopupContainer:h}=(0,C.A)("modal",t),[d,p]=(0,P.A)(l);(0,T.Ay)(void 0===t.visible,"Modal","`visible` will be removed in next major version, please use `open` instead.");const f=t=>{n("update:visible",!1),n("update:open",!1),n("cancel",t),n("change",!1)},b=t=>{n("ok",t)},_=()=>{var e,n;const{okText:o=(null===(e=i.okText)||void 0===e?void 0:e.call(i)),okType:l,cancelText:u=(null===(n=i.cancelText)||void 0===n?void 0:n.call(i)),confirmLoading:c}=t;return(0,r.bF)(r.FK,null,[(0,r.bF)(s.A,(0,v.A)({onClick:f},t.cancelButtonProps),{default:()=>[u||a.value.cancelText]}),(0,r.bF)(s.A,(0,v.A)((0,v.A)({},(0,w.DU)(l)),{},{loading:c,onClick:b},t.okButtonProps),{default:()=>[o||a.value.okText]})])};return()=>{var e,n;const{prefixCls:a,visible:s,open:b,wrapClassName:w,centered:O,getContainer:S,closeIcon:A=(null===(e=i.closeIcon)||void 0===e?void 0:e.call(i)),focusTriggerAfterClose:k=!0}=t,C=I(t,["prefixCls","visible","open","wrapClassName","centered","getContainer","closeIcon","focusTriggerAfterClose"]),T=(0,m.A)(w,{[`${l.value}-centered`]:!!O,[`${l.value}-wrap-rtl`]:"rtl"===c.value});return d((0,r.bF)(y.A,(0,v.A)((0,v.A)((0,v.A)({},C),o),{},{rootClassName:p.value,class:(0,m.A)(p.value,o.class),getContainer:S||(null===h||void 0===h?void 0:h.value),prefixCls:l.value,wrapClassName:T,visible:null!==b&&void 0!==b?b:s,onClose:f,focusTriggerAfterClose:k,transitionName:(0,M.by)(u.value,"zoom",t.transitionName),maskTransitionName:(0,M.by)(u.value,"fade",t.maskTransitionName),mousePosition:null!==(n=C.mousePosition)&&void 0!==n?n:$}),(0,g.A)((0,g.A)({},i),{footer:i.footer||_,closeIcon:()=>(0,r.bF)("span",{class:`${l.value}-close-x`},[A||(0,r.bF)(x.A,{class:`${l.value}-close-icon`},null)])})))}}}),L=(n(30381),n(67874)),N=n(46299),z=n(82339),B=n(51911),F=n(33684);const W=()=>{const t=(0,i.IJ)(!1);return(0,r.xo)((()=>{t.value=!0})),t};var j=W,V=n(16155);const Q={type:{type:String},actionFn:Function,close:Function,autofocus:Boolean,prefixCls:String,buttonProps:(0,A.ge)(),emitEvent:Boolean,quitOnNullishReturnValue:Boolean};function H(t){return!(!t||!t.then)}var Z=(0,r.pM)({compatConfig:{MODE:3},name:"ActionButton",props:Q,setup(t,e){let{slots:n}=e;const o=(0,i.IJ)(!1),a=(0,i.IJ)(),l=(0,i.IJ)(!1);let u;const c=j();(0,r.sV)((()=>{t.autofocus&&(u=setTimeout((()=>{var t,e;return null===(e=null===(t=(0,V.oK)(a.value))||void 0===t?void 0:t.focus)||void 0===e?void 0:e.call(t)})))})),(0,r.xo)((()=>{clearTimeout(u)}));const h=function(){for(var e,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];null===(e=t.close)||void 0===e||e.call(t,...r)},d=t=>{H(t)&&(l.value=!0,t.then((function(){c.value||(l.value=!1),h(...arguments),o.value=!1}),(t=>(c.value||(l.value=!1),o.value=!1,Promise.reject(t)))))},p=e=>{const{actionFn:n}=t;if(o.value)return;if(o.value=!0,!n)return void h();let r;if(t.emitEvent){if(r=n(e),t.quitOnNullishReturnValue&&!H(r))return o.value=!1,void h(e)}else if(n.length)r=n(t.close),o.value=!1;else if(r=n(),!r)return void h();d(r)};return()=>{const{type:e,prefixCls:i,buttonProps:o}=t;return(0,r.bF)(s.A,(0,v.A)((0,v.A)((0,v.A)({},(0,w.DU)(e)),{},{onClick:p,loading:l.value,prefixCls:i},o),{},{ref:a}),n)}}});function G(t){return"function"===typeof t?t():t}var X=(0,r.pM)({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(t,e){let{attrs:n}=e;const[i]=(0,O.n)("Modal");return()=>{const{icon:e,onCancel:o,onOk:a,close:s,okText:l,closable:u=!1,zIndex:c,afterClose:h,keyboard:d,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:C,closeIcon:T,modalRender:P,focusTriggerAfterClose:I,rootPrefixCls:$,bodyStyle:E,wrapClassName:R,footer:L}=t;let W=e;if(!e&&null!==e)switch(O){case"info":W=(0,r.bF)(F.A,null,null);break;case"success":W=(0,r.bF)(N.A,null,null);break;case"error":W=(0,r.bF)(z.A,null,null);break;default:W=(0,r.bF)(B.A,null,null)}const j=t.okType||"primary",V=t.prefixCls||"ant-modal",Q=`${V}-confirm`,H=n.style||{},X=null!==b&&void 0!==b?b:"confirm"===O,U=null!==t.autoFocusButton&&(t.autoFocusButton||"ok"),Y=`${V}-confirm`,q=(0,m.A)(Y,`${Y}-${t.type}`,{[`${Y}-rtl`]:"rtl"===C},n.class),K=i.value,J=X&&(0,r.bF)(Z,{actionFn:o,close:s,autofocus:"cancel"===U,buttonProps:y,prefixCls:`${$}-btn`},{default:()=>[G(t.cancelText)||K.cancelText]});return(0,r.bF)(D,{prefixCls:V,class:q,wrapClassName:(0,m.A)({[`${Y}-centered`]:!!p},R),onCancel:t=>null===s||void 0===s?void 0:s({triggerCancel:!0},t),open:S,title:"",footer:"",transitionName:(0,M.by)($,"zoom",t.transitionName),maskTransitionName:(0,M.by)($,"fade",t.maskTransitionName),mask:x,maskClosable:w,maskStyle:g,style:H,bodyStyle:E,width:_,zIndex:c,afterClose:h,keyboard:d,centered:p,getContainer:f,closable:u,closeIcon:T,modalRender:P,focusTriggerAfterClose:I},{default:()=>[(0,r.bF)("div",{class:`${Q}-body-wrapper`},[(0,r.bF)("div",{class:`${Q}-body`},[G(W),void 0===A?null:(0,r.bF)("span",{class:`${Q}-title`},[G(A)]),(0,r.bF)("div",{class:`${Q}-content`},[G(k)])]),void 0!==L?G(L):(0,r.bF)("div",{class:`${Q}-btns`},[J,(0,r.bF)(Z,{type:j,actionFn:a,close:s,autofocus:"ok"===U,buttonProps:v,prefixCls:`${$}-btn`},{default:()=>[G(l)||(X?K.okText:K.justOkText)]})])])]})}}}),U=n(95835),Y=n(21244),q=n(87051),K=n(19559);const J=[];var tt=J;const et=t=>{const e=document.createDocumentFragment();let n=(0,g.A)((0,g.A)({},(0,Y.A)(t,["parentContext","appContext"])),{close:a,open:!0}),i=null;function o(){i&&((0,L.XX)(null,e),i=null);for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];const s=r.some((t=>t&&t.triggerCancel));t.onCancel&&s&&t.onCancel((()=>{}),...r.slice(1));for(let t=0;t<tt.length;t++){const e=tt[t];if(e===a){tt.splice(t,1);break}}}function a(){for(var e=arguments.length,r=new Array(e),i=0;i<e;i++)r[i]=arguments[i];n=(0,g.A)((0,g.A)({},n),{open:!1,afterClose:()=>{"function"===typeof t.afterClose&&t.afterClose(),o.apply(this,r)}}),n.visible&&delete n.visible,s(n)}function s(t){n="function"===typeof t?t(n):(0,g.A)((0,g.A)({},n),t),i&&(0,q.OJ)(i,n,e)}const l=t=>{const e=U.Vm,n=e.prefixCls,i=t.prefixCls||`${n}-modal`,o=e.iconPrefixCls,a=(0,K.l)();return(0,r.bF)(U.Ay,(0,v.A)((0,v.A)({},e),{},{prefixCls:n}),{default:()=>[(0,r.bF)(X,(0,v.A)((0,v.A)({},t),{},{rootPrefixCls:n,prefixCls:i,iconPrefixCls:o,locale:a,cancelText:t.cancelText||a.cancelText}),null)]})};function u(n){const i=(0,r.bF)(l,(0,g.A)({},n));return i.appContext=t.parentContext||t.appContext||i.appContext,(0,L.XX)(i,e),i}return i=u(n),tt.push(a),{destroy:a,update:s}};var nt=et;function rt(t){return(0,g.A)((0,g.A)({},t),{type:"warning"})}function it(t){return(0,g.A)((0,g.A)({},t),{type:"info"})}function ot(t){return(0,g.A)((0,g.A)({},t),{type:"success"})}function at(t){return(0,g.A)((0,g.A)({},t),{type:"error"})}function st(t){return(0,g.A)((0,g.A)({},t),{type:"confirm"})}var lt=n(90551),ut=n(24619);const ct=()=>({config:Object,afterClose:Function,destroyAction:Function,open:Boolean});var ht=(0,r.pM)({name:"HookModal",inheritAttrs:!1,props:(0,S.A)(ct(),{config:{width:520,okType:"primary"}}),setup(t,e){let{expose:n}=e;var i;const o=(0,r.EW)((()=>t.open)),a=(0,r.EW)((()=>t.config)),{direction:s,getPrefixCls:l}=(0,lt.OQ)(),u=l("modal"),c=l(),h=()=>{var e,n;null===t||void 0===t||t.afterClose(),null===(n=(e=a.value).afterClose)||void 0===n||n.call(e)},d=function(){t.destroyAction(...arguments)};n({destroy:d});const p=null!==(i=a.value.okCancel)&&void 0!==i?i:"confirm"===a.value.type,[f]=(0,O.n)("Modal",ut.A.Modal);return()=>(0,r.bF)(X,(0,v.A)((0,v.A)({prefixCls:u,rootPrefixCls:c},a.value),{},{close:d,open:o.value,afterClose:h,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 dt=0;const pt=(0,r.pM)({name:"ElementsHolder",inheritAttrs:!1,setup(t,e){let{expose:n}=e;const r=(0,i.IJ)([]),o=t=>(r.value.push(t),r.value=r.value.slice(),()=>{r.value=r.value.filter((e=>e!==t))});return n({addModal:o}),()=>r.value.map((t=>t()))}});function ft(){const t=(0,i.IJ)(null),e=(0,i.IJ)([]);(0,r.wB)(e,(()=>{if(e.value.length){const t=[...e.value];t.forEach((t=>{t()})),e.value=[]}}),{immediate:!0});const n=n=>function(o){var a;dt+=1;const s=(0,i.IJ)(!0),l=(0,i.IJ)(null),u=(0,i.IJ)((0,i.R1)(o)),c=(0,i.IJ)({});(0,r.wB)((()=>o),(t=>{f((0,g.A)((0,g.A)({},(0,i.i9)(t)?t.value:t),c.value))}));const h=function(){s.value=!1;for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];const r=e.some((t=>t&&t.triggerCancel));u.value.onCancel&&r&&u.value.onCancel((()=>{}),...e.slice(1))};let d;const p=()=>(0,r.bF)(ht,{key:`modal-${dt}`,config:n(u.value),ref:l,open:s.value,destroyAction:h,afterClose:()=>{null===d||void 0===d||d()}},null);d=null===(a=t.value)||void 0===a?void 0:a.addModal(p),d&&tt.push(d);const f=t=>{u.value=(0,g.A)((0,g.A)({},u.value),t)},v=()=>{l.value?h():e.value=[...e.value,h]},m=t=>{c.value=t,l.value?f(t):e.value=[...e.value,()=>f(t)]};return{destroy:v,update:m}},o=(0,r.EW)((()=>({info:n(it),success:n(ot),error:n(at),warning:n(rt),confirm:n(st)}))),a=Symbol("modalHolderKey");return[o.value,()=>(0,r.bF)(pt,{key:a,ref:t},null)]}var gt=ft;function vt(t){return nt(rt(t))}D.useModal=gt,D.info=function(t){return nt(it(t))},D.success=function(t){return nt(ot(t))},D.error=function(t){return nt(at(t))},D.warning=vt,D.warn=vt,D.confirm=function(t){return nt(st(t))},D.destroyAll=function(){while(tt.length){const t=tt.pop();t&&t()}},D.install=function(t){return t.component(D.name,D),t};var mt=D;n(82432),n(85194),n(27092),n(68925),n(31796),n(21467),n(22064),n(92114);class yt{lineAt(t){if(t<0||t>this.length)throw new RangeError(`Invalid position ${t} in document of length ${this.length}`);return this.lineInner(t,!1,1,0)}line(t){if(t<1||t>this.lines)throw new RangeError(`Invalid line number ${t} in ${this.lines}-line document`);return this.lineInner(t,!0,1,0)}replace(t,e,n){[t,e]=Mt(this,t,e);let r=[];return this.decompose(0,t,r,2),n.length&&n.decompose(0,n.length,r,3),this.decompose(e,this.length,r,1),_t.from(r,this.length-(e-t)+n.length)}append(t){return this.replace(this.length,this.length,t)}slice(t,e=this.length){[t,e]=Mt(this,t,e);let n=[];return this.decompose(t,e,n,0),_t.from(n,e-t)}eq(t){if(t==this)return!0;if(t.length!=this.length||t.lines!=this.lines)return!1;let e=this.scanIdentical(t,1),n=this.length-this.scanIdentical(t,-1),r=new St(this),i=new St(t);for(let o=e,a=e;;){if(r.next(o),i.next(o),o=0,r.lineBreak!=i.lineBreak||r.done!=i.done||r.value!=i.value)return!1;if(a+=r.value.length,r.done||a>=n)return!0}}iter(t=1){return new St(this,t)}iterRange(t,e=this.length){return new At(this,t,e)}iterLines(t,e){let n;if(null==t)n=this.iter();else{null==e&&(e=this.lines+1);let r=this.line(t).from;n=this.iterRange(r,Math.max(r,e==this.lines+1?this.length:e<=1?0:this.line(e-1).to))}return new kt(n)}toString(){return this.sliceString(0)}toJSON(){let t=[];return this.flatten(t),t}constructor(){}static of(t){if(0==t.length)throw new RangeError("A document must have at least one line");return 1!=t.length||t[0]?t.length<=32?new bt(t):_t.from(bt.split(t,[])):yt.empty}}class bt extends yt{constructor(t,e=xt(t)){super(),this.text=t,this.length=e}get lines(){return this.text.length}get children(){return null}lineInner(t,e,n,r){for(let i=0;;i++){let o=this.text[i],a=r+o.length;if((e?n:a)>=t)return new Ct(r,a,n,o);r=a+1,n++}}decompose(t,e,n,r){let i=t<=0&&e>=this.length?this:new bt(Ot(this.text,t,e),Math.min(e,this.length)-Math.max(0,t));if(1&r){let t=n.pop(),e=wt(i.text,t.text.slice(),0,i.length);if(e.length<=32)n.push(new bt(e,t.length+i.length));else{let t=e.length>>1;n.push(new bt(e.slice(0,t)),new bt(e.slice(t)))}}else n.push(i)}replace(t,e,n){if(!(n instanceof bt))return super.replace(t,e,n);[t,e]=Mt(this,t,e);let r=wt(this.text,wt(n.text,Ot(this.text,0,t)),e),i=this.length+n.length-(e-t);return r.length<=32?new bt(r,i):_t.from(bt.split(r,[]),i)}sliceString(t,e=this.length,n="\n"){[t,e]=Mt(this,t,e);let r="";for(let i=0,o=0;i<=e&&o<this.text.length;o++){let a=this.text[o],s=i+a.length;i>t&&o&&(r+=n),t<s&&e>i&&(r+=a.slice(Math.max(0,t-i),e-i)),i=s+1}return r}flatten(t){for(let e of this.text)t.push(e)}scanIdentical(){return 0}static split(t,e){let n=[],r=-1;for(let i of t)n.push(i),r+=i.length+1,32==n.length&&(e.push(new bt(n,r)),n=[],r=-1);return r>-1&&e.push(new bt(n,r)),e}}class _t extends yt{constructor(t,e){super(),this.children=t,this.length=e,this.lines=0;for(let n of t)this.lines+=n.lines}lineInner(t,e,n,r){for(let i=0;;i++){let o=this.children[i],a=r+o.length,s=n+o.lines-1;if((e?s:a)>=t)return o.lineInner(t,e,n,r);r=a+1,n=s+1}}decompose(t,e,n,r){for(let i=0,o=0;o<=e&&i<this.children.length;i++){let a=this.children[i],s=o+a.length;if(t<=s&&e>=o){let i=r&((o<=t?1:0)|(s>=e?2:0));o>=t&&s<=e&&!i?n.push(a):a.decompose(t-o,e-o,n,i)}o=s+1}}replace(t,e,n){if([t,e]=Mt(this,t,e),n.lines<this.lines)for(let r=0,i=0;r<this.children.length;r++){let o=this.children[r],a=i+o.length;if(t>=i&&e<=a){let s=o.replace(t-i,e-i,n),l=this.lines-o.lines+s.lines;if(s.lines<l>>4&&s.lines>l>>6){let i=this.children.slice();return i[r]=s,new _t(i,this.length-(e-t)+n.length)}return super.replace(i,a,s)}i=a+1}return super.replace(t,e,n)}sliceString(t,e=this.length,n="\n"){[t,e]=Mt(this,t,e);let r="";for(let i=0,o=0;i<this.children.length&&o<=e;i++){let a=this.children[i],s=o+a.length;o>t&&i&&(r+=n),t<s&&e>o&&(r+=a.sliceString(t-o,e-o,n)),o=s+1}return r}flatten(t){for(let e of this.children)e.flatten(t)}scanIdentical(t,e){if(!(t instanceof _t))return 0;let n=0,[r,i,o,a]=e>0?[0,0,this.children.length,t.children.length]:[this.children.length-1,t.children.length-1,-1,-1];for(;;r+=e,i+=e){if(r==o||i==a)return n;let s=this.children[r],l=t.children[i];if(s!=l)return n+s.scanIdentical(l,e);n+=s.length+1}}static from(t,e=t.reduce(((t,e)=>t+e.length+1),-1)){let n=0;for(let d of t)n+=d.lines;if(n<32){let n=[];for(let e of t)e.flatten(n);return new bt(n,e)}let r=Math.max(32,n>>5),i=r<<1,o=r>>1,a=[],s=0,l=-1,u=[];function c(t){let e;if(t.lines>i&&t instanceof _t)for(let n of t.children)c(n);else t.lines>o&&(s>o||!s)?(h(),a.push(t)):t instanceof bt&&s&&(e=u[u.length-1])instanceof bt&&t.lines+e.lines<=32?(s+=t.lines,l+=t.length+1,u[u.length-1]=new bt(e.text.concat(t.text),e.length+1+t.length)):(s+t.lines>r&&h(),s+=t.lines,l+=t.length+1,u.push(t))}function h(){0!=s&&(a.push(1==u.length?u[0]:_t.from(u,l)),l=-1,s=u.length=0)}for(let d of t)c(d);return h(),1==a.length?a[0]:new _t(a,e)}}function xt(t){let e=-1;for(let n of t)e+=n.length+1;return e}function wt(t,e,n=0,r=1e9){for(let i=0,o=0,a=!0;o<t.length&&i<=r;o++){let s=t[o],l=i+s.length;l>=n&&(l>r&&(s=s.slice(0,r-i)),i<n&&(s=s.slice(n-i)),a?(e[e.length-1]+=s,a=!1):e.push(s)),i=l+1}return e}function Ot(t,e,n){return wt(t,[""],e,n)}yt.empty=new bt([""],0);class St{constructor(t,e=1){this.dir=e,this.done=!1,this.lineBreak=!1,this.value="",this.nodes=[t],this.offsets=[e>0?1:(t instanceof bt?t.text.length:t.children.length)<<1]}nextInner(t,e){for(this.done=this.lineBreak=!1;;){let n=this.nodes.length-1,r=this.nodes[n],i=this.offsets[n],o=i>>1,a=r instanceof bt?r.text.length:r.children.length;if(o==(e>0?a:0)){if(0==n)return this.done=!0,this.value="",this;e>0&&this.offsets[n-1]++,this.nodes.pop(),this.offsets.pop()}else if((1&i)==(e>0?0:1)){if(this.offsets[n]+=e,0==t)return this.lineBreak=!0,this.value="\n",this;t--}else if(r instanceof bt){let i=r.text[o+(e<0?-1:0)];if(this.offsets[n]+=e,i.length>Math.max(0,t))return this.value=0==t?i:e>0?i.slice(t):i.slice(0,i.length-t),this;t-=i.length}else{let i=r.children[o+(e<0?-1:0)];t>i.length?(t-=i.length,this.offsets[n]+=e):(e<0&&this.offsets[n]--,this.nodes.push(i),this.offsets.push(e>0?1:(i instanceof bt?i.text.length:i.children.length)<<1))}}}next(t=0){return t<0&&(this.nextInner(-t,-this.dir),t=this.value.length),this.nextInner(t,this.dir)}}class At{constructor(t,e,n){this.value="",this.done=!1,this.cursor=new St(t,e>n?-1:1),this.pos=e>n?t.length:0,this.from=Math.min(e,n),this.to=Math.max(e,n)}nextInner(t,e){if(e<0?this.pos<=this.from:this.pos>=this.to)return this.value="",this.done=!0,this;t+=Math.max(0,e<0?this.pos-this.to:this.from-this.pos);let n=e<0?this.pos-this.from:this.to-this.pos;t>n&&(t=n),n-=t;let{value:r}=this.cursor.next(t);return this.pos+=(r.length+t)*e,this.value=r.length<=n?r:e<0?r.slice(r.length-n):r.slice(0,n),this.done=!this.value,this}next(t=0){return t<0?t=Math.max(t,this.from-this.pos):t>0&&(t=Math.min(t,this.to-this.pos)),this.nextInner(t,this.cursor.dir)}get lineBreak(){return this.cursor.lineBreak&&""!=this.value}}class kt{constructor(t){this.inner=t,this.afterBreak=!0,this.value="",this.done=!1}next(t=0){let{done:e,lineBreak:n,value:r}=this.inner.next(t);return e&&this.afterBreak?(this.value="",this.afterBreak=!1):e?(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&&(yt.prototype[Symbol.iterator]=function(){return this.iter()},St.prototype[Symbol.iterator]=At.prototype[Symbol.iterator]=kt.prototype[Symbol.iterator]=function(){return this});class Ct{constructor(t,e,n,r){this.from=t,this.to=e,this.number=n,this.text=r}get length(){return this.to-this.from}}function Mt(t,e,n){return e=Math.max(0,Math.min(t.length,e)),[e,Math.max(e,Math.min(t.length,n))]}let Tt="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((t=>t?parseInt(t,36):1));for(let q_=1;q_<Tt.length;q_++)Tt[q_]+=Tt[q_-1];function Pt(t){for(let e=1;e<Tt.length;e+=2)if(Tt[e]>t)return Tt[e-1]<=t;return!1}function It(t){return t>=127462&&t<=127487}const $t=8205;function Et(t,e,n=!0,r=!0){return(n?Rt:Dt)(t,e,r)}function Rt(t,e,n){if(e==t.length)return e;e&&Lt(t.charCodeAt(e))&&Nt(t.charCodeAt(e-1))&&e--;let r=zt(t,e);e+=Ft(r);while(e<t.length){let i=zt(t,e);if(r==$t||i==$t||n&&Pt(i))e+=Ft(i),r=i;else{if(!It(i))break;{let n=0,r=e-2;while(r>=0&&It(zt(t,r)))n++,r-=2;if(n%2==0)break;e+=2}}}return e}function Dt(t,e,n){while(e>0){let r=Rt(t,e-2,n);if(r<e)return r;e--}return 0}function Lt(t){return t>=56320&&t<57344}function Nt(t){return t>=55296&&t<56320}function zt(t,e){let n=t.charCodeAt(e);if(!Nt(n)||e+1==t.length)return n;let r=t.charCodeAt(e+1);return Lt(r)?r-56320+(n-55296<<10)+65536:n}function Bt(t){return t<=65535?String.fromCharCode(t):(t-=65536,String.fromCharCode(55296+(t>>10),56320+(1023&t)))}function Ft(t){return t<65536?1:2}const Wt=/\r\n?|\n/;var jt=function(t){return t[t["Simple"]=0]="Simple",t[t["TrackDel"]=1]="TrackDel",t[t["TrackBefore"]=2]="TrackBefore",t[t["TrackAfter"]=3]="TrackAfter",t}(jt||(jt={}));class Vt{constructor(t){this.sections=t}get length(){let t=0;for(let e=0;e<this.sections.length;e+=2)t+=this.sections[e];return t}get newLength(){let t=0;for(let e=0;e<this.sections.length;e+=2){let n=this.sections[e+1];t+=n<0?this.sections[e]:n}return t}get empty(){return 0==this.sections.length||2==this.sections.length&&this.sections[1]<0}iterGaps(t){for(let e=0,n=0,r=0;e<this.sections.length;){let i=this.sections[e++],o=this.sections[e++];o<0?(t(n,r,i),r+=i):r+=o,n+=i}}iterChangedRanges(t,e=!1){Gt(this,t,e)}get invertedDesc(){let t=[];for(let e=0;e<this.sections.length;){let n=this.sections[e++],r=this.sections[e++];r<0?t.push(n,r):t.push(r,n)}return new Vt(t)}composeDesc(t){return this.empty?t:t.empty?this:Ut(this,t)}mapDesc(t,e=!1){return t.empty?this:Xt(this,t,e)}mapPos(t,e=-1,n=jt.Simple){let r=0,i=0;for(let o=0;o<this.sections.length;){let a=this.sections[o++],s=this.sections[o++],l=r+a;if(s<0){if(l>t)return i+(t-r);i+=a}else{if(n!=jt.Simple&&l>=t&&(n==jt.TrackDel&&r<t&&l>t||n==jt.TrackBefore&&r<t||n==jt.TrackAfter&&l>t))return null;if(l>t||l==t&&e<0&&!a)return t==r||e<0?i:i+s;i+=s}r=l}if(t>r)throw new RangeError(`Position ${t} is out of range for changeset of length ${r}`);return i}touchesRange(t,e=t){for(let n=0,r=0;n<this.sections.length&&r<=e;){let i=this.sections[n++],o=this.sections[n++],a=r+i;if(o>=0&&r<=e&&a>=t)return!(r<t&&a>e)||"cover";r=a}return!1}toString(){let t="";for(let e=0;e<this.sections.length;){let n=this.sections[e++],r=this.sections[e++];t+=(t?" ":"")+n+(r>=0?":"+r:"")}return t}toJSON(){return this.sections}static fromJSON(t){if(!Array.isArray(t)||t.length%2||t.some((t=>"number"!=typeof t)))throw new RangeError("Invalid JSON representation of ChangeDesc");return new Vt(t)}static create(t){return new Vt(t)}}class Qt extends Vt{constructor(t,e){super(t),this.inserted=e}apply(t){if(this.length!=t.length)throw new RangeError("Applying change set to a document with the wrong length");return Gt(this,((e,n,r,i,o)=>t=t.replace(r,r+(n-e),o)),!1),t}mapDesc(t,e=!1){return Xt(this,t,e,!0)}invert(t){let e=this.sections.slice(),n=[];for(let r=0,i=0;r<e.length;r+=2){let o=e[r],a=e[r+1];if(a>=0){e[r]=a,e[r+1]=o;let s=r>>1;while(n.length<s)n.push(yt.empty);n.push(o?t.slice(i,i+o):yt.empty)}i+=o}return new Qt(e,n)}compose(t){return this.empty?t:t.empty?this:Ut(this,t,!0)}map(t,e=!1){return t.empty?this:Xt(this,t,e,!0)}iterChanges(t,e=!1){Gt(this,t,e)}get desc(){return Vt.create(this.sections)}filter(t){let e=[],n=[],r=[],i=new Yt(this);t:for(let o=0,a=0;;){let s=o==t.length?1e9:t[o++];while(a<s||a==s&&0==i.len){if(i.done)break t;let t=Math.min(i.len,s-a);Ht(r,t,-1);let o=-1==i.ins?-1:0==i.off?i.ins:0;Ht(e,t,o),o>0&&Zt(n,e,i.text),i.forward(t),a+=t}let l=t[o++];while(a<l){if(i.done)break t;let t=Math.min(i.len,l-a);Ht(e,t,-1),Ht(r,t,-1==i.ins?-1:0==i.off?i.ins:0),i.forward(t),a+=t}}return{changes:new Qt(e,n),filtered:Vt.create(r)}}toJSON(){let t=[];for(let e=0;e<this.sections.length;e+=2){let n=this.sections[e],r=this.sections[e+1];r<0?t.push(n):0==r?t.push([n]):t.push([n].concat(this.inserted[e>>1].toJSON()))}return t}static of(t,e,n){let r=[],i=[],o=0,a=null;function s(t=!1){if(!t&&!r.length)return;o<e&&Ht(r,e-o,-1);let n=new Qt(r,i);a=a?a.compose(n.map(a)):n,r=[],i=[],o=0}function l(t){if(Array.isArray(t))for(let e of t)l(e);else if(t instanceof Qt){if(t.length!=e)throw new RangeError(`Mismatched change set length (got ${t.length}, expected ${e})`);s(),a=a?a.compose(t.map(a)):t}else{let{from:a,to:l=a,insert:u}=t;if(a>l||a<0||l>e)throw new RangeError(`Invalid change range ${a} to ${l} (in doc of length ${e})`);let c=u?"string"==typeof u?yt.of(u.split(n||Wt)):u:yt.empty,h=c.length;if(a==l&&0==h)return;a<o&&s(),a>o&&Ht(r,a-o,-1),Ht(r,l-a,h),Zt(i,r,c),o=l}}return l(t),s(!a),a}static empty(t){return new Qt(t?[t,-1]:[],[])}static fromJSON(t){if(!Array.isArray(t))throw new RangeError("Invalid JSON representation of ChangeSet");let e=[],n=[];for(let r=0;r<t.length;r++){let i=t[r];if("number"==typeof i)e.push(i,-1);else{if(!Array.isArray(i)||"number"!=typeof i[0]||i.some(((t,e)=>e&&"string"!=typeof t)))throw new RangeError("Invalid JSON representation of ChangeSet");if(1==i.length)e.push(i[0],0);else{while(n.length<r)n.push(yt.empty);n[r]=yt.of(i.slice(1)),e.push(i[0],n[r].length)}}}return new Qt(e,n)}static createSet(t,e){return new Qt(t,e)}}function Ht(t,e,n,r=!1){if(0==e&&n<=0)return;let i=t.length-2;i>=0&&n<=0&&n==t[i+1]?t[i]+=e:0==e&&0==t[i]?t[i+1]+=n:r?(t[i]+=e,t[i+1]+=n):t.push(e,n)}function Zt(t,e,n){if(0==n.length)return;let r=e.length-2>>1;if(r<t.length)t[t.length-1]=t[t.length-1].append(n);else{while(t.length<r)t.push(yt.empty);t.push(n)}}function Gt(t,e,n){let r=t.inserted;for(let i=0,o=0,a=0;a<t.sections.length;){let s=t.sections[a++],l=t.sections[a++];if(l<0)i+=s,o+=s;else{let u=i,c=o,h=yt.empty;for(;;){if(u+=s,c+=l,l&&r&&(h=h.append(r[a-2>>1])),n||a==t.sections.length||t.sections[a+1]<0)break;s=t.sections[a++],l=t.sections[a++]}e(i,u,o,c,h),i=u,o=c}}}function Xt(t,e,n,r=!1){let i=[],o=r?[]:null,a=new Yt(t),s=new Yt(e);for(let l=-1;;)if(-1==a.ins&&-1==s.ins){let t=Math.min(a.len,s.len);Ht(i,t,-1),a.forward(t),s.forward(t)}else if(s.ins>=0&&(a.ins<0||l==a.i||0==a.off&&(s.len<a.len||s.len==a.len&&!n))){let t=s.len;Ht(i,s.ins,-1);while(t){let e=Math.min(a.len,t);a.ins>=0&&l<a.i&&a.len<=e&&(Ht(i,0,a.ins),o&&Zt(o,i,a.text),l=a.i),a.forward(e),t-=e}s.next()}else{if(!(a.ins>=0)){if(a.done&&s.done)return o?Qt.createSet(i,o):Vt.create(i);throw new Error("Mismatched change set lengths")}{let t=0,e=a.len;while(e)if(-1==s.ins){let n=Math.min(e,s.len);t+=n,e-=n,s.forward(n)}else{if(!(0==s.ins&&s.len<e))break;e-=s.len,s.next()}Ht(i,t,l<a.i?a.ins:0),o&&l<a.i&&Zt(o,i,a.text),l=a.i,a.forward(a.len-e)}}}function Ut(t,e,n=!1){let r=[],i=n?[]:null,o=new Yt(t),a=new Yt(e);for(let s=!1;;){if(o.done&&a.done)return i?Qt.createSet(r,i):Vt.create(r);if(0==o.ins)Ht(r,o.len,0,s),o.next();else if(0!=a.len||a.done){if(o.done||a.done)throw new Error("Mismatched change set lengths");{let t=Math.min(o.len2,a.len),e=r.length;if(-1==o.ins){let e=-1==a.ins?-1:a.off?0:a.ins;Ht(r,t,e,s),i&&e&&Zt(i,r,a.text)}else-1==a.ins?(Ht(r,o.off?0:o.len,t,s),i&&Zt(i,r,o.textBit(t))):(Ht(r,o.off?0:o.len,a.off?0:a.ins,s),i&&!a.off&&Zt(i,r,a.text));s=(o.ins>t||a.ins>=0&&a.len>t)&&(s||r.length>e),o.forward2(t),a.forward(t)}}else Ht(r,0,a.ins,s),i&&Zt(i,r,a.text),a.next()}}class Yt{constructor(t){this.set=t,this.i=0,this.next()}next(){let{sections:t}=this.set;this.i<t.length?(this.len=t[this.i++],this.ins=t[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:t}=this.set,e=this.i-2>>1;return e>=t.length?yt.empty:t[e]}textBit(t){let{inserted:e}=this.set,n=this.i-2>>1;return n>=e.length&&!t?yt.empty:e[n].slice(this.off,null==t?void 0:this.off+t)}forward(t){t==this.len?this.next():(this.len-=t,this.off+=t)}forward2(t){-1==this.ins?this.forward(t):t==this.ins?this.next():(this.ins-=t,this.off+=t)}}class qt{constructor(t,e,n){this.from=t,this.to=e,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 t=7&this.flags;return 7==t?null:t}get goalColumn(){let t=this.flags>>6;return 16777215==t?void 0:t}map(t,e=-1){let n,r;return this.empty?n=r=t.mapPos(this.from,e):(n=t.mapPos(this.from,1),r=t.mapPos(this.to,-1)),n==this.from&&r==this.to?this:new qt(n,r,this.flags)}extend(t,e=t){if(t<=this.anchor&&e>=this.anchor)return Kt.range(t,e);let n=Math.abs(t-this.anchor)>Math.abs(e-this.anchor)?t:e;return Kt.range(this.anchor,n)}eq(t,e=!1){return this.anchor==t.anchor&&this.head==t.head&&(!e||!this.empty||this.assoc==t.assoc)}toJSON(){return{anchor:this.anchor,head:this.head}}static fromJSON(t){if(!t||"number"!=typeof t.anchor||"number"!=typeof t.head)throw new RangeError("Invalid JSON representation for SelectionRange");return Kt.range(t.anchor,t.head)}static create(t,e,n){return new qt(t,e,n)}}class Kt{constructor(t,e){this.ranges=t,this.mainIndex=e}map(t,e=-1){return t.empty?this:Kt.create(this.ranges.map((n=>n.map(t,e))),this.mainIndex)}eq(t,e=!1){if(this.ranges.length!=t.ranges.length||this.mainIndex!=t.mainIndex)return!1;for(let n=0;n<this.ranges.length;n++)if(!this.ranges[n].eq(t.ranges[n],e))return!1;return!0}get main(){return this.ranges[this.mainIndex]}asSingle(){return 1==this.ranges.length?this:new Kt([this.main],0)}addRange(t,e=!0){return Kt.create([t].concat(this.ranges),e?0:this.mainIndex+1)}replaceRange(t,e=this.mainIndex){let n=this.ranges.slice();return n[e]=t,Kt.create(n,this.mainIndex)}toJSON(){return{ranges:this.ranges.map((t=>t.toJSON())),main:this.mainIndex}}static fromJSON(t){if(!t||!Array.isArray(t.ranges)||"number"!=typeof t.main||t.main>=t.ranges.length)throw new RangeError("Invalid JSON representation for EditorSelection");return new Kt(t.ranges.map((t=>qt.fromJSON(t))),t.main)}static single(t,e=t){return new Kt([Kt.range(t,e)],0)}static create(t,e=0){if(0==t.length)throw new RangeError("A selection needs at least one range");for(let n=0,r=0;r<t.length;r++){let i=t[r];if(i.empty?i.from<=n:i.from<n)return Kt.normalized(t.slice(),e);n=i.to}return new Kt(t,e)}static cursor(t,e=0,n,r){return qt.create(t,t,(0==e?0:e<0?8:16)|(null==n?7:Math.min(6,n))|(null!==r&&void 0!==r?r:16777215)<<6)}static range(t,e,n,r){let i=(null!==n&&void 0!==n?n:16777215)<<6|(null==r?7:Math.min(6,r));return e<t?qt.create(e,t,48|i):qt.create(t,e,(e>t?8:0)|i)}static normalized(t,e=0){let n=t[e];t.sort(((t,e)=>t.from-e.from)),e=t.indexOf(n);for(let r=1;r<t.length;r++){let n=t[r],i=t[r-1];if(n.empty?n.from<=i.to:n.from<i.to){let o=i.from,a=Math.max(n.to,i.to);r<=e&&e--,t.splice(--r,2,n.anchor>n.head?Kt.range(a,o):Kt.range(o,a))}}return new Kt(t,e)}}function Jt(t,e){for(let n of t.ranges)if(n.to>e)throw new RangeError("Selection points outside of document")}let te=0;class ee{constructor(t,e,n,r,i){this.combine=t,this.compareInput=e,this.compare=n,this.isStatic=r,this.id=te++,this.default=t([]),this.extensions="function"==typeof i?i(this):i}get reader(){return this}static define(t={}){return new ee(t.combine||(t=>t),t.compareInput||((t,e)=>t===e),t.compare||(t.combine?(t,e)=>t===e:ne),!!t.static,t.enables)}of(t){return new re([],this,0,t)}compute(t,e){if(this.isStatic)throw new Error("Can't compute a static facet");return new re(t,this,1,e)}computeN(t,e){if(this.isStatic)throw new Error("Can't compute a static facet");return new re(t,this,2,e)}from(t,e){return e||(e=t=>t),this.compute([t],(n=>e(n.field(t))))}}function ne(t,e){return t==e||t.length==e.length&&t.every(((t,n)=>t===e[n]))}class re{constructor(t,e,n,r){this.dependencies=t,this.facet=e,this.type=n,this.value=r,this.id=te++}dynamicSlot(t){var e;let n=this.value,r=this.facet.compareInput,i=this.id,o=t[i]>>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!==(e=t[c.id])&&void 0!==e?e:1))&&u.push(t[c.id]);return{create(t){return t.values[o]=n(t),1},update(t,e){if(s&&e.docChanged||l&&(e.docChanged||e.selection)||oe(t,u)){let e=n(t);if(a?!ie(e,t.values[o],r):!r(e,t.values[o]))return t.values[o]=e,1}return 0},reconfigure:(t,e)=>{let s,l=e.config.address[i];if(null!=l){let i=ye(e,l);if(this.dependencies.every((n=>n instanceof ee?e.facet(n)===t.facet(n):!(n instanceof le)||e.field(n,!1)==t.field(n,!1)))||(a?ie(s=n(t),i,r):r(s=n(t),i)))return t.values[o]=i,0}else s=n(t);return t.values[o]=s,1}}}}function ie(t,e,n){if(t.length!=e.length)return!1;for(let r=0;r<t.length;r++)if(!n(t[r],e[r]))return!1;return!0}function oe(t,e){let n=!1;for(let r of e)1&me(t,r)&&(n=!0);return n}function ae(t,e,n){let r=n.map((e=>t[e.id])),i=n.map((t=>t.type)),o=r.filter((t=>!(1&t))),a=t[e.id]>>1;function s(t){let n=[];for(let e=0;e<r.length;e++){let o=ye(t,r[e]);if(2==i[e])for(let t of o)n.push(t);else n.push(o)}return e.combine(n)}return{create(t){for(let e of r)me(t,e);return t.values[a]=s(t),1},update(t,n){if(!oe(t,o))return 0;let r=s(t);return e.compare(r,t.values[a])?0:(t.values[a]=r,1)},reconfigure(t,i){let o=oe(t,r),l=i.config.facets[e.id],u=i.facet(e);if(l&&!o&&ne(n,l))return t.values[a]=u,0;let c=s(t);return e.compare(c,u)?(t.values[a]=u,0):(t.values[a]=c,1)}}}const se=ee.define({static:!0});class le{constructor(t,e,n,r,i){this.id=t,this.createF=e,this.updateF=n,this.compareF=r,this.spec=i,this.provides=void 0}static define(t){let e=new le(te++,t.create,t.update,t.compare||((t,e)=>t===e),t);return t.provide&&(e.provides=t.provide(e)),e}create(t){let e=t.facet(se).find((t=>t.field==this));return((null===e||void 0===e?void 0:e.create)||this.createF)(t)}slot(t){let e=t[this.id]>>1;return{create:t=>(t.values[e]=this.create(t),1),update:(t,n)=>{let r=t.values[e],i=this.updateF(r,n);return this.compareF(r,i)?0:(t.values[e]=i,1)},reconfigure:(t,n)=>null!=n.config.address[this.id]?(t.values[e]=n.field(this),0):(t.values[e]=this.create(t),1)}}init(t){return[this,se.of({field:this,create:t})]}get extension(){return this}}const ue={lowest:4,low:3,default:2,high:1,highest:0};function ce(t){return e=>new de(e,t)}const he={highest:ce(ue.highest),high:ce(ue.high),default:ce(ue.default),low:ce(ue.low),lowest:ce(ue.lowest)};class de{constructor(t,e){this.inner=t,this.prec=e}}class pe{of(t){return new fe(this,t)}reconfigure(t){return pe.reconfigure.of({compartment:this,extension:t})}get(t){return t.config.compartments.get(this)}}class fe{constructor(t,e){this.compartment=t,this.inner=e}}class ge{constructor(t,e,n,r,i,o){this.base=t,this.compartments=e,this.dynamicSlots=n,this.address=r,this.staticValues=i,this.facets=o,this.statusTemplate=[];while(this.statusTemplate.length<n.length)this.statusTemplate.push(0)}staticFacet(t){let e=this.address[t.id];return null==e?t.default:this.staticValues[e>>1]}static resolve(t,e,n){let r=[],i=Object.create(null),o=new Map;for(let h of ve(t,e,o))h instanceof le?r.push(h):(i[h.facet.id]||(i[h.facet.id]=[])).push(h);let a=Object.create(null),s=[],l=[];for(let h of r)a[h.id]=l.length<<1,l.push((t=>h.slot(t)));let u=null===n||void 0===n?void 0:n.config.facets;for(let h in i){let t=i[h],e=t[0].facet,r=u&&u[h]||[];if(t.every((t=>0==t.type)))if(a[e.id]=s.length<<1|1,ne(r,t))s.push(n.facet(e));else{let r=e.combine(t.map((t=>t.value)));s.push(n&&e.compare(r,n.facet(e))?n.facet(e):r)}else{for(let e of t)0==e.type?(a[e.id]=s.length<<1|1,s.push(e.value)):(a[e.id]=l.length<<1,l.push((t=>e.dynamicSlot(t))));a[e.id]=l.length<<1,l.push((n=>ae(n,e,t)))}}let c=l.map((t=>t(a)));return new ge(t,o,c,a,s,i)}}function ve(t,e,n){let r=[[],[],[],[],[]],i=new Map;function o(t,a){let s=i.get(t);if(null!=s){if(s<=a)return;let e=r[s].indexOf(t);e>-1&&r[s].splice(e,1),t instanceof fe&&n.delete(t.compartment)}if(i.set(t,a),Array.isArray(t))for(let e of t)o(e,a);else if(t instanceof fe){if(n.has(t.compartment))throw new RangeError("Duplicate use of compartment in extensions");let r=e.get(t.compartment)||t.inner;n.set(t.compartment,r),o(r,a)}else if(t instanceof de)o(t.inner,t.prec);else if(t instanceof le)r[a].push(t),t.provides&&o(t.provides,a);else if(t instanceof re)r[a].push(t),t.facet.extensions&&o(t.facet.extensions,ue.default);else{let e=t.extension;if(!e)throw new Error(`Unrecognized extension value in extension set (${t}). This sometimes happens because multiple instances of @codemirror/state are loaded, breaking instanceof checks.`);o(e,a)}}return o(t,ue.default),r.reduce(((t,e)=>t.concat(e)))}function me(t,e){if(1&e)return 2;let n=e>>1,r=t.status[n];if(4==r)throw new Error("Cyclic dependency between fields and/or facets");if(2&r)return r;t.status[n]=4;let i=t.computeSlot(t,t.config.dynamicSlots[n]);return t.status[n]=2|i}function ye(t,e){return 1&e?t.config.staticValues[e>>1]:t.values[e>>1]}const be=ee.define(),_e=ee.define({combine:t=>t.some((t=>t)),static:!0}),xe=ee.define({combine:t=>t.length?t[0]:void 0,static:!0}),we=ee.define(),Oe=ee.define(),Se=ee.define(),Ae=ee.define({combine:t=>!!t.length&&t[0]});class ke{constructor(t,e){this.type=t,this.value=e}static define(){return new Ce}}class Ce{of(t){return new ke(this,t)}}class Me{constructor(t){this.map=t}of(t){return new Te(this,t)}}class Te{constructor(t,e){this.type=t,this.value=e}map(t){let e=this.type.map(this.value,t);return void 0===e?void 0:e==this.value?this:new Te(this.type,e)}is(t){return this.type==t}static define(t={}){return new Me(t.map||(t=>t))}static mapEffects(t,e){if(!t.length)return t;let n=[];for(let r of t){let t=r.map(e);t&&n.push(t)}return n}}Te.reconfigure=Te.define(),Te.appendConfig=Te.define();class Pe{constructor(t,e,n,r,i,o){this.startState=t,this.changes=e,this.selection=n,this.effects=r,this.annotations=i,this.scrollIntoView=o,this._doc=null,this._state=null,n&&Jt(n,e.newLength),i.some((t=>t.type==Pe.time))||(this.annotations=i.concat(Pe.time.of(Date.now())))}static create(t,e,n,r,i,o){return new Pe(t,e,n,r,i,o)}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(t){for(let e of this.annotations)if(e.type==t)return e.value}get docChanged(){return!this.changes.empty}get reconfigured(){return this.startState.config!=this.state.config}isUserEvent(t){let e=this.annotation(Pe.userEvent);return!(!e||!(e==t||e.length>t.length&&e.slice(0,t.length)==t&&"."==e[t.length]))}}function Ie(t,e){let n=[];for(let r=0,i=0;;){let o,a;if(r<t.length&&(i==e.length||e[i]>=t[r]))o=t[r++],a=t[r++];else{if(!(i<e.length))return n;o=e[i++],a=e[i++]}!n.length||n[n.length-1]<o?n.push(o,a):n[n.length-1]<a&&(n[n.length-1]=a)}}function $e(t,e,n){var r;let i,o,a;return n?(i=e.changes,o=Qt.empty(e.changes.length),a=t.changes.compose(e.changes)):(i=e.changes.map(t.changes),o=t.changes.mapDesc(e.changes,!0),a=t.changes.compose(i)),{changes:a,selection:e.selection?e.selection.map(o):null===(r=t.selection)||void 0===r?void 0:r.map(i),effects:Te.mapEffects(t.effects,i).concat(Te.mapEffects(e.effects,o)),annotations:t.annotations.length?t.annotations.concat(e.annotations):e.annotations,scrollIntoView:t.scrollIntoView||e.scrollIntoView}}function Ee(t,e,n){let r=e.selection,i=ze(e.annotations);return e.userEvent&&(i=i.concat(Pe.userEvent.of(e.userEvent))),{changes:e.changes instanceof Qt?e.changes:Qt.of(e.changes||[],n,t.facet(xe)),selection:r&&(r instanceof Kt?r:Kt.single(r.anchor,r.head)),effects:ze(e.effects),annotations:i,scrollIntoView:!!e.scrollIntoView}}function Re(t,e,n){let r=Ee(t,e.length?e[0]:{},t.doc.length);e.length&&!1===e[0].filter&&(n=!1);for(let o=1;o<e.length;o++){!1===e[o].filter&&(n=!1);let i=!!e[o].sequential;r=$e(r,Ee(t,e[o],i?r.changes.newLength:t.doc.length),i)}let i=Pe.create(t,r.changes,r.selection,r.effects,r.annotations,r.scrollIntoView);return Le(n?De(i):i)}function De(t){let e=t.startState,n=!0;for(let i of e.facet(we)){let e=i(t);if(!1===e){n=!1;break}Array.isArray(e)&&(n=!0===n?e:Ie(n,e))}if(!0!==n){let r,i;if(!1===n)i=t.changes.invertedDesc,r=Qt.empty(e.doc.length);else{let e=t.changes.filter(n);r=e.changes,i=e.filtered.mapDesc(e.changes).invertedDesc}t=Pe.create(e,r,t.selection&&t.selection.map(i),Te.mapEffects(t.effects,i),t.annotations,t.scrollIntoView)}let r=e.facet(Oe);for(let i=r.length-1;i>=0;i--){let n=r[i](t);t=n instanceof Pe?n:Array.isArray(n)&&1==n.length&&n[0]instanceof Pe?n[0]:Re(e,ze(n),!1)}return t}function Le(t){let e=t.startState,n=e.facet(Se),r=t;for(let i=n.length-1;i>=0;i--){let o=n[i](t);o&&Object.keys(o).length&&(r=$e(r,Ee(e,o,t.changes.newLength),!0))}return r==t?t:Pe.create(e,t.changes,t.selection,r.effects,r.annotations,r.scrollIntoView)}Pe.time=ke.define(),Pe.userEvent=ke.define(),Pe.addToHistory=ke.define(),Pe.remote=ke.define();const Ne=[];function ze(t){return null==t?Ne:Array.isArray(t)?t:[t]}var Be=function(t){return t[t["Word"]=0]="Word",t[t["Space"]=1]="Space",t[t["Other"]=2]="Other",t}(Be||(Be={}));const Fe=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;let We;try{We=new RegExp("[\\p{Alphabetic}\\p{Number}_]","u")}catch(Y_){}function je(t){if(We)return We.test(t);for(let e=0;e<t.length;e++){let n=t[e];if(/\w/.test(n)||n>"€"&&(n.toUpperCase()!=n.toLowerCase()||Fe.test(n)))return!0}return!1}function Ve(t){return e=>{if(!/\S/.test(e))return Be.Space;if(je(e))return Be.Word;for(let n=0;n<t.length;n++)if(e.indexOf(t[n])>-1)return Be.Word;return Be.Other}}class Qe{constructor(t,e,n,r,i,o){this.config=t,this.doc=e,this.selection=n,this.values=r,this.status=t.statusTemplate.slice(),this.computeSlot=i,o&&(o._state=this);for(let a=0;a<this.config.dynamicSlots.length;a++)me(this,a<<1);this.computeSlot=null}field(t,e=!0){let n=this.config.address[t.id];if(null!=n)return me(this,n),ye(this,n);if(e)throw new RangeError("Field is not present in this state")}update(...t){return Re(this,t,!0)}applyTransaction(t){let e,n=this.config,{base:r,compartments:i}=n;for(let a of t.effects)a.is(pe.reconfigure)?(n&&(i=new Map,n.compartments.forEach(((t,e)=>i.set(e,t))),n=null),i.set(a.value.compartment,a.value.extension)):a.is(Te.reconfigure)?(n=null,r=a.value):a.is(Te.appendConfig)&&(n=null,r=ze(r).concat(a.value));if(n)e=t.startState.values.slice();else{n=ge.resolve(r,i,this);let t=new Qe(n,this.doc,this.selection,n.dynamicSlots.map((()=>null)),((t,e)=>e.reconfigure(t,this)),null);e=t.values}let o=t.startState.facet(_e)?t.newSelection:t.newSelection.asSingle();new Qe(n,t.newDoc,o,e,((e,n)=>n.update(e,t)),t)}replaceSelection(t){return"string"==typeof t&&(t=this.toText(t)),this.changeByRange((e=>({changes:{from:e.from,to:e.to,insert:t},range:Kt.cursor(e.from+t.length)})))}changeByRange(t){let e=this.selection,n=t(e.ranges[0]),r=this.changes(n.changes),i=[n.range],o=ze(n.effects);for(let a=1;a<e.ranges.length;a++){let n=t(e.ranges[a]),s=this.changes(n.changes),l=s.map(r);for(let t=0;t<a;t++)i[t]=i[t].map(l);let u=r.mapDesc(s,!0);i.push(n.range.map(u)),r=r.compose(l),o=Te.mapEffects(o,l).concat(Te.mapEffects(ze(n.effects),u))}return{changes:r,selection:Kt.create(i,e.mainIndex),effects:o}}changes(t=[]){return t instanceof Qt?t:Qt.of(t,this.doc.length,this.facet(Qe.lineSeparator))}toText(t){return yt.of(t.split(this.facet(Qe.lineSeparator)||Wt))}sliceDoc(t=0,e=this.doc.length){return this.doc.sliceString(t,e,this.lineBreak)}facet(t){let e=this.config.address[t.id];return null==e?t.default:(me(this,e),ye(this,e))}toJSON(t){let e={doc:this.sliceDoc(),selection:this.selection.toJSON()};if(t)for(let n in t){let r=t[n];r instanceof le&&null!=this.config.address[r.id]&&(e[n]=r.spec.toJSON(this.field(t[n]),this))}return e}static fromJSON(t,e={},n){if(!t||"string"!=typeof t.doc)throw new RangeError("Invalid JSON representation for EditorState");let r=[];if(n)for(let i in n)if(Object.prototype.hasOwnProperty.call(t,i)){let e=n[i],o=t[i];r.push(e.init((t=>e.spec.fromJSON(o,t))))}return Qe.create({doc:t.doc,selection:Kt.fromJSON(t.selection),extensions:e.extensions?r.concat([e.extensions]):r})}static create(t={}){let e=ge.resolve(t.extensions||[],new Map),n=t.doc instanceof yt?t.doc:yt.of((t.doc||"").split(e.staticFacet(Qe.lineSeparator)||Wt)),r=t.selection?t.selection instanceof Kt?t.selection:Kt.single(t.selection.anchor,t.selection.head):Kt.single(0);return Jt(r,n.length),e.staticFacet(_e)||(r=r.asSingle()),new Qe(e,n,r,e.dynamicSlots.map((()=>null)),((t,e)=>e.create(t)),null)}get tabSize(){return this.facet(Qe.tabSize)}get lineBreak(){return this.facet(Qe.lineSeparator)||"\n"}get readOnly(){return this.facet(Ae)}phrase(t,...e){for(let n of this.facet(Qe.phrases))if(Object.prototype.hasOwnProperty.call(n,t)){t=n[t];break}return e.length&&(t=t.replace(/\$(\$|\d*)/g,((t,n)=>{if("$"==n)return"$";let r=+(n||1);return!r||r>e.length?t:e[r-1]}))),t}languageDataAt(t,e,n=-1){let r=[];for(let i of this.facet(be))for(let o of i(this,e,n))Object.prototype.hasOwnProperty.call(o,t)&&r.push(o[t]);return r}charCategorizer(t){return Ve(this.languageDataAt("wordChars",t).join(""))}wordAt(t){let{text:e,from:n,length:r}=this.doc.lineAt(t),i=this.charCategorizer(t),o=t-n,a=t-n;while(o>0){let t=Et(e,o,!1);if(i(e.slice(t,o))!=Be.Word)break;o=t}while(a<r){let t=Et(e,a);if(i(e.slice(a,t))!=Be.Word)break;a=t}return o==a?null:Kt.range(o+n,a+n)}}function He(t,e,n={}){let r={};for(let i of t)for(let t of Object.keys(i)){let e=i[t],o=r[t];if(void 0===o)r[t]=e;else if(o===e||void 0===e);else{if(!Object.hasOwnProperty.call(n,t))throw new Error("Config merge conflict for field "+t);r[t]=n[t](o,e)}}for(let i in e)void 0===r[i]&&(r[i]=e[i]);return r}Qe.allowMultipleSelections=_e,Qe.tabSize=ee.define({combine:t=>t.length?t[0]:4}),Qe.lineSeparator=xe,Qe.readOnly=Ae,Qe.phrases=ee.define({compare(t,e){let n=Object.keys(t),r=Object.keys(e);return n.length==r.length&&n.every((n=>t[n]==e[n]))}}),Qe.languageData=be,Qe.changeFilter=we,Qe.transactionFilter=Oe,Qe.transactionExtender=Se,pe.reconfigure=Te.define();class Ze{eq(t){return this==t}range(t,e=t){return Ge.create(t,e,this)}}Ze.prototype.startSide=Ze.prototype.endSide=0,Ze.prototype.point=!1,Ze.prototype.mapMode=jt.TrackDel;class Ge{constructor(t,e,n){this.from=t,this.to=e,this.value=n}static create(t,e,n){return new Ge(t,e,n)}}function Xe(t,e){return t.from-e.from||t.value.startSide-e.value.startSide}class Ue{constructor(t,e,n,r){this.from=t,this.to=e,this.value=n,this.maxPoint=r}get length(){return this.to[this.to.length-1]}findIndex(t,e,n,r=0){let i=n?this.to:this.from;for(let o=r,a=i.length;;){if(o==a)return o;let r=o+a>>1,s=i[r]-t||(n?this.value[r].endSide:this.value[r].startSide)-e;if(r==o)return s>=0?o:a;s>=0?a=r:o=r+1}}between(t,e,n,r){for(let i=this.findIndex(e,-1e9,!0),o=this.findIndex(n,1e9,!1,i);i<o;i++)if(!1===r(this.from[i]+t,this.to[i]+t,this.value[i]))return!1}map(t,e){let n=[],r=[],i=[],o=-1,a=-1;for(let s=0;s<this.value.length;s++){let l,u,c=this.value[s],h=this.from[s]+t,d=this.to[s]+t;if(h==d){let t=e.mapPos(h,c.startSide,c.mapMode);if(null==t)continue;if(l=u=t,c.startSide!=c.endSide&&(u=e.mapPos(h,c.endSide),u<l))continue}else if(l=e.mapPos(h,c.startSide),u=e.mapPos(d,c.endSide),l>u||l==u&&c.startSide>0&&c.endSide<=0)continue;(u-l||c.endSide-c.startSide)<0||(o<0&&(o=l),c.point&&(a=Math.max(a,u-l)),n.push(c),r.push(l-o),i.push(u-o))}return{mapped:n.length?new Ue(r,i,n,a):null,pos:o}}}class Ye{constructor(t,e,n,r){this.chunkPos=t,this.chunk=e,this.nextLayer=n,this.maxPoint=r}static create(t,e,n,r){return new Ye(t,e,n,r)}get length(){let t=this.chunk.length-1;return t<0?0:Math.max(this.chunkEnd(t),this.nextLayer.length)}get size(){if(this.isEmpty)return 0;let t=this.nextLayer.size;for(let e of this.chunk)t+=e.value.length;return t}chunkEnd(t){return this.chunkPos[t]+this.chunk[t].length}update(t){let{add:e=[],sort:n=!1,filterFrom:r=0,filterTo:i=this.length}=t,o=t.filter;if(0==e.length&&!o)return this;if(n&&(e=e.slice().sort(Xe)),this.isEmpty)return e.length?Ye.of(e):this;let a=new tn(this,null,-1).goto(0),s=0,l=[],u=new Ke;while(a.value||s<e.length)if(s<e.length&&(a.from-e[s].from||a.startSide-e[s].value.startSide)>=0){let t=e[s++];u.addInner(t.from,t.to,t.value)||l.push(t)}else 1==a.rangeIndex&&a.chunkIndex<this.chunk.length&&(s==e.length||this.chunkEnd(a.chunkIndex)<e[s].from)&&(!o||r>this.chunkEnd(a.chunkIndex)||i<this.chunkPos[a.chunkIndex])&&u.addChunk(this.chunkPos[a.chunkIndex],this.chunk[a.chunkIndex])?a.nextChunk():((!o||r>a.to||i<a.from||o(a.from,a.to,a.value))&&(u.addInner(a.from,a.to,a.value)||l.push(Ge.create(a.from,a.to,a.value))),a.next());return u.finishInner(this.nextLayer.isEmpty&&!l.length?Ye.empty:this.nextLayer.update({add:l,filter:o,filterFrom:r,filterTo:i}))}map(t){if(t.empty||this.isEmpty)return this;let e=[],n=[],r=-1;for(let o=0;o<this.chunk.length;o++){let i=this.chunkPos[o],a=this.chunk[o],s=t.touchesRange(i,i+a.length);if(!1===s)r=Math.max(r,a.maxPoint),e.push(a),n.push(t.mapPos(i));else if(!0===s){let{mapped:o,pos:s}=a.map(i,t);o&&(r=Math.max(r,o.maxPoint),e.push(o),n.push(s))}}let i=this.nextLayer.map(t);return 0==e.length?i:new Ye(n,e,i||Ye.empty,r)}between(t,e,n){if(!this.isEmpty){for(let r=0;r<this.chunk.length;r++){let i=this.chunkPos[r],o=this.chunk[r];if(e>=i&&t<=i+o.length&&!1===o.between(i,t-i,e-i,n))return}this.nextLayer.between(t,e,n)}}iter(t=0){return en.from([this]).goto(t)}get isEmpty(){return this.nextLayer==this}static iter(t,e=0){return en.from(t).goto(e)}static compare(t,e,n,r,i=-1){let o=t.filter((t=>t.maxPoint>0||!t.isEmpty&&t.maxPoint>=i)),a=e.filter((t=>t.maxPoint>0||!t.isEmpty&&t.maxPoint>=i)),s=Je(o,a,n),l=new rn(o,s,i),u=new rn(a,s,i);n.iterGaps(((t,e,n)=>on(l,t,u,e,n,r))),n.empty&&0==n.length&&on(l,0,u,0,0,r)}static eq(t,e,n=0,r){null==r&&(r=999999999);let i=t.filter((t=>!t.isEmpty&&e.indexOf(t)<0)),o=e.filter((e=>!e.isEmpty&&t.indexOf(e)<0));if(i.length!=o.length)return!1;if(!i.length)return!0;let a=Je(i,o),s=new rn(i,a,0).goto(n),l=new rn(o,a,0).goto(n);for(;;){if(s.to!=l.to||!an(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(t,e,n,r,i=-1){let o=new rn(t,null,i).goto(e),a=e,s=o.openStart;for(;;){let t=Math.min(o.to,n);if(o.point){let n=o.activeForPoint(o.to),i=o.pointFrom<e?n.length+1:o.point.startSide<0?n.length:Math.min(n.length,s);r.point(a,t,o.point,n,i,o.pointRank),s=Math.min(o.openEnd(t),n.length)}else t>a&&(r.span(a,t,o.active,s),s=o.openEnd(t));if(o.to>n)return s+(o.point&&o.to>n?1:0);a=o.to,o.next()}}static of(t,e=!1){let n=new Ke;for(let r of t instanceof Ge?[t]:e?qe(t):t)n.add(r.from,r.to,r.value);return n.finish()}static join(t){if(!t.length)return Ye.empty;let e=t[t.length-1];for(let n=t.length-2;n>=0;n--)for(let r=t[n];r!=Ye.empty;r=r.nextLayer)e=new Ye(r.chunkPos,r.chunk,e,Math.max(r.maxPoint,e.maxPoint));return e}}function qe(t){if(t.length>1)for(let e=t[0],n=1;n<t.length;n++){let r=t[n];if(Xe(e,r)>0)return t.slice().sort(Xe);e=r}return t}Ye.empty=new Ye([],[],null,-1),Ye.empty.nextLayer=Ye.empty;class Ke{finishChunk(t){this.chunks.push(new Ue(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,t&&(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(t,e,n){this.addInner(t,e,n)||(this.nextLayer||(this.nextLayer=new Ke)).add(t,e,n)}addInner(t,e,n){let r=t-this.lastTo||n.startSide-this.last.endSide;if(r<=0&&(t-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=t),this.from.push(t-this.chunkStart),this.to.push(e-this.chunkStart),this.last=n,this.lastFrom=t,this.lastTo=e,this.value.push(n),n.point&&(this.maxPoint=Math.max(this.maxPoint,e-t)),!0)}addChunk(t,e){if((t-this.lastTo||e.value[0].startSide-this.last.endSide)<0)return!1;this.from.length&&this.finishChunk(!0),this.setMaxPoint=Math.max(this.setMaxPoint,e.maxPoint),this.chunks.push(e),this.chunkPos.push(t);let n=e.value.length-1;return this.last=e.value[n],this.lastFrom=e.from[n]+t,this.lastTo=e.to[n]+t,!0}finish(){return this.finishInner(Ye.empty)}finishInner(t){if(this.from.length&&this.finishChunk(!1),0==this.chunks.length)return t;let e=Ye.create(this.chunkPos,this.chunks,this.nextLayer?this.nextLayer.finishInner(t):t,this.setMaxPoint);return this.from=null,e}}function Je(t,e,n){let r=new Map;for(let o of t)for(let t=0;t<o.chunk.length;t++)o.chunk[t].maxPoint<=0&&r.set(o.chunk[t],o.chunkPos[t]);let i=new Set;for(let o of e)for(let t=0;t<o.chunk.length;t++){let e=r.get(o.chunk[t]);null==e||(n?n.mapPos(e):e)!=o.chunkPos[t]||(null===n||void 0===n?void 0:n.touchesRange(e,e+o.chunk[t].length))||i.add(o.chunk[t])}return i}class tn{constructor(t,e,n,r=0){this.layer=t,this.skip=e,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(t,e=-1e9){return this.chunkIndex=this.rangeIndex=0,this.gotoInner(t,e,!1),this}gotoInner(t,e,n){while(this.chunkIndex<this.layer.chunk.length){let e=this.layer.chunk[this.chunkIndex];if(!(this.skip&&this.skip.has(e)||this.layer.chunkEnd(this.chunkIndex)<t||e.maxPoint<this.minPoint))break;this.chunkIndex++,n=!1}if(this.chunkIndex<this.layer.chunk.length){let r=this.layer.chunk[this.chunkIndex].findIndex(t-this.layer.chunkPos[this.chunkIndex],e,!0);(!n||this.rangeIndex<r)&&this.setRangeIndex(r)}this.next()}forward(t,e){(this.to-t||this.endSide-e)<0&&this.gotoInner(t,e,!0)}next(){for(;;){if(this.chunkIndex==this.layer.chunk.length){this.from=this.to=1e9,this.value=null;break}{let t=this.layer.chunkPos[this.chunkIndex],e=this.layer.chunk[this.chunkIndex],n=t+e.from[this.rangeIndex];if(this.from=n,this.to=t+e.to[this.rangeIndex],this.value=e.value[this.rangeIndex],this.setRangeIndex(this.rangeIndex+1),this.minPoint<0||this.value.point&&this.to-this.from>=this.minPoint)break}}}setRangeIndex(t){if(t==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=t}nextChunk(){this.chunkIndex++,this.rangeIndex=0,this.next()}compare(t){return this.from-t.from||this.startSide-t.startSide||this.rank-t.rank||this.to-t.to||this.endSide-t.endSide}}class en{constructor(t){this.heap=t}static from(t,e=null,n=-1){let r=[];for(let i=0;i<t.length;i++)for(let o=t[i];!o.isEmpty;o=o.nextLayer)o.maxPoint>=n&&r.push(new tn(o,e,n,i));return 1==r.length?r[0]:new en(r)}get startSide(){return this.value?this.value.startSide:0}goto(t,e=-1e9){for(let n of this.heap)n.goto(t,e);for(let n=this.heap.length>>1;n>=0;n--)nn(this.heap,n);return this.next(),this}forward(t,e){for(let n of this.heap)n.forward(t,e);for(let n=this.heap.length>>1;n>=0;n--)nn(this.heap,n);(this.to-t||this.value.endSide-e)<0&&this.next()}next(){if(0==this.heap.length)this.from=this.to=1e9,this.value=null,this.rank=-1;else{let t=this.heap[0];this.from=t.from,this.to=t.to,this.value=t.value,this.rank=t.rank,t.value&&t.next(),nn(this.heap,0)}}}function nn(t,e){for(let n=t[e];;){let r=1+(e<<1);if(r>=t.length)break;let i=t[r];if(r+1<t.length&&i.compare(t[r+1])>=0&&(i=t[r+1],r++),n.compare(i)<0)break;t[r]=n,t[e]=i,e=r}}class rn{constructor(t,e,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=en.from(t,e,n)}goto(t,e=-1e9){return this.cursor.goto(t,e),this.active.length=this.activeTo.length=this.activeRank.length=0,this.minActive=-1,this.to=t,this.endSide=e,this.openStart=-1,this.next(),this}forward(t,e){while(this.minActive>-1&&(this.activeTo[this.minActive]-t||this.active[this.minActive].endSide-e)<0)this.removeActive(this.minActive);this.cursor.forward(t,e)}removeActive(t){sn(this.active,t),sn(this.activeTo,t),sn(this.activeRank,t),this.minActive=un(this.active,this.activeTo)}addActive(t){let e=0,{value:n,to:r,rank:i}=this.cursor;while(e<this.activeRank.length&&(i-this.activeRank[e]||r-this.activeTo[e])>0)e++;ln(this.active,e,n),ln(this.activeTo,e,r),ln(this.activeRank,e,i),t&&ln(t,e,this.cursor.from),this.minActive=un(this.active,this.activeTo)}next(){let t=this.to,e=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]>t){this.to=this.activeTo[r],this.endSide=this.active[r].endSide;break}this.removeActive(r),n&&sn(n,r)}else{if(!this.cursor.value){this.to=this.endSide=1e9;break}if(this.cursor.from>t){this.to=this.cursor.from,this.endSide=this.cursor.startSide;break}{let t=this.cursor.value;if(t.point){if(!(e&&this.cursor.to==this.to&&this.cursor.from<this.cursor.to)){this.point=t,this.pointFrom=this.cursor.from,this.pointRank=this.cursor.rank,this.to=this.cursor.to,this.endSide=t.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 e=n.length-1;e>=0&&n[e]<t;e--)this.openStart++}}activeForPoint(t){if(!this.active.length)return this.active;let e=[];for(let n=this.active.length-1;n>=0;n--){if(this.activeRank[n]<this.pointRank)break;(this.activeTo[n]>t||this.activeTo[n]==t&&this.active[n].endSide>=this.point.endSide)&&e.push(this.active[n])}return e.reverse()}openEnd(t){let e=0;for(let n=this.activeTo.length-1;n>=0&&this.activeTo[n]>t;n--)e++;return e}}function on(t,e,n,r,i,o){t.goto(e),n.goto(r);let a=r+i,s=r,l=r-e;for(;;){let e=t.to+l-n.to||t.endSide-n.endSide,r=e<0?t.to+l:n.to,i=Math.min(r,a);if(t.point||n.point?t.point&&n.point&&(t.point==n.point||t.point.eq(n.point))&&an(t.activeForPoint(t.to),n.activeForPoint(n.to))||o.comparePoint(s,i,t.point,n.point):i>s&&!an(t.active,n.active)&&o.compareRange(s,i,t.active,n.active),r>a)break;s=r,e<=0&&t.next(),e>=0&&n.next()}}function an(t,e){if(t.length!=e.length)return!1;for(let n=0;n<t.length;n++)if(t[n]!=e[n]&&!t[n].eq(e[n]))return!1;return!0}function sn(t,e){for(let n=e,r=t.length-1;n<r;n++)t[n]=t[n+1];t.pop()}function ln(t,e,n){for(let r=t.length-1;r>=e;r--)t[r+1]=t[r];t[e]=n}function un(t,e){let n=-1,r=1e9;for(let i=0;i<e.length;i++)(e[i]-r||t[i].endSide-t[n].endSide)<0&&(n=i,r=e[i]);return n}function cn(t,e,n=t.length){let r=0;for(let i=0;i<n;)9==t.charCodeAt(i)?(r+=e-r%e,i++):(r++,i=Et(t,i));return r}function hn(t,e,n,r){for(let i=0,o=0;;){if(o>=e)return i;if(i==t.length)break;o+=9==t.charCodeAt(i)?n-o%n:1,i=Et(t,i)}return!0===r?-1:t.length}const dn="ͼ",pn="undefined"==typeof Symbol?"__"+dn:Symbol.for(dn),fn="undefined"==typeof Symbol?"__styleSet"+Math.floor(1e8*Math.random()):Symbol("styleSet"),gn="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:{};class vn{constructor(t,e){this.rules=[];let{finish:n}=e||{};function r(t){return/^@/.test(t)?[t]:t.split(/,\s*/)}function i(t,e,o,a){let s=[],l=/^@(\w+)\b/.exec(t[0]),u=l&&"keyframes"==l[1];if(l&&null==e)return o.push(t[0]+";");for(let n in e){let a=e[n];if(/&/.test(n))i(n.split(/,\s*/).map((e=>t.map((t=>e.replace(/&/,t))))).reduce(((t,e)=>t.concat(e))),a,o);else if(a&&"object"==typeof a){if(!l)throw new RangeError("The value of a property ("+n+") should be a primitive value.");i(r(n),a,s,u)}else null!=a&&s.push(n.replace(/_.*/,"").replace(/[A-Z]/g,(t=>"-"+t.toLowerCase()))+": "+a+";")}(s.length||u)&&o.push((!n||l||a?t:t.map(n)).join(", ")+" {"+s.join(" ")+"}")}for(let o in t)i(r(o),t[o],this.rules)}getRules(){return this.rules.join("\n")}static newName(){let t=gn[pn]||1;return gn[pn]=t+1,dn+t.toString(36)}static mount(t,e,n){let r=t[fn],i=n&&n.nonce;r?i&&r.setNonce(i):r=new yn(t,i),r.mount(Array.isArray(e)?e:[e],t)}}let mn=new Map;class yn{constructor(t,e){let n=t.ownerDocument||t,r=n.defaultView;if(!t.head&&t.adoptedStyleSheets&&r.CSSStyleSheet){let e=mn.get(n);if(e)return t[fn]=e;this.sheet=new r.CSSStyleSheet,mn.set(n,this)}else this.styleTag=n.createElement("style"),e&&this.styleTag.setAttribute("nonce",e);this.modules=[],t[fn]=this}mount(t,e){let n=this.sheet,r=0,i=0;for(let o=0;o<t.length;o++){let e=t[o],a=this.modules.indexOf(e);if(a<i&&a>-1&&(this.modules.splice(a,1),i--,a=-1),-1==a){if(this.modules.splice(i++,0,e),n)for(let t=0;t<e.rules.length;t++)n.insertRule(e.rules[t],r++)}else{while(i<a)r+=this.modules[i++].rules.length;r+=e.rules.length,i++}}if(n)e.adoptedStyleSheets.indexOf(this.sheet)<0&&(e.adoptedStyleSheets=[this.sheet,...e.adoptedStyleSheets]);else{let t="";for(let e=0;e<this.modules.length;e++)t+=this.modules[e].getRules()+"\n";this.styleTag.textContent=t;let n=e.head||e;this.styleTag.parentNode!=n&&n.insertBefore(this.styleTag,n.firstChild)}}setNonce(t){this.styleTag&&this.styleTag.getAttribute("nonce")!=t&&this.styleTag.setAttribute("nonce",t)}}for(var bn={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:"'"},_n={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},xn="undefined"!=typeof navigator&&/Mac/.test(navigator.platform),wn="undefined"!=typeof navigator&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),On=0;On<10;On++)bn[48+On]=bn[96+On]=String(On);for(On=1;On<=24;On++)bn[On+111]="F"+On;for(On=65;On<=90;On++)bn[On]=String.fromCharCode(On+32),_n[On]=String.fromCharCode(On);for(var Sn in bn)_n.hasOwnProperty(Sn)||(_n[Sn]=bn[Sn]);function An(t){var e=xn&&t.metaKey&&t.shiftKey&&!t.ctrlKey&&!t.altKey||wn&&t.shiftKey&&t.key&&1==t.key.length||"Unidentified"==t.key,n=!e&&t.key||(t.shiftKey?_n:bn)[t.keyCode]||t.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 kn(t){let e;return e=11==t.nodeType?t.getSelection?t:t.ownerDocument:t,e.getSelection()}function Cn(t,e){return!!e&&(t==e||t.contains(1!=e.nodeType?e.parentNode:e))}function Mn(t){let e=t.activeElement;while(e&&e.shadowRoot)e=e.shadowRoot.activeElement;return e}function Tn(t,e){if(!e.anchorNode)return!1;try{return Cn(t,e.anchorNode)}catch(Y_){return!1}}function Pn(t){return 3==t.nodeType?Hn(t,0,t.nodeValue.length).getClientRects():1==t.nodeType?t.getClientRects():[]}function In(t,e,n,r){return!!n&&(Rn(t,e,n,r,-1)||Rn(t,e,n,r,1))}function $n(t){for(var e=0;;e++)if(t=t.previousSibling,!t)return e}function En(t){return 1==t.nodeType&&/^(DIV|P|LI|UL|OL|BLOCKQUOTE|DD|DT|H\d|SECTION|PRE)$/.test(t.nodeName)}function Rn(t,e,n,r,i){for(;;){if(t==n&&e==r)return!0;if(e==(i<0?0:Dn(t))){if("DIV"==t.nodeName)return!1;let n=t.parentNode;if(!n||1!=n.nodeType)return!1;e=$n(t)+(i<0?0:1),t=n}else{if(1!=t.nodeType)return!1;if(t=t.childNodes[e+(i<0?-1:0)],1==t.nodeType&&"false"==t.contentEditable)return!1;e=i<0?Dn(t):0}}}function Dn(t){return 3==t.nodeType?t.nodeValue.length:t.childNodes.length}function Ln(t,e){let n=e?t.left:t.right;return{left:n,right:n,top:t.top,bottom:t.bottom}}function Nn(t){let e=t.visualViewport;return e?{left:0,right:e.width,top:0,bottom:e.height}:{left:0,right:t.innerWidth,top:0,bottom:t.innerHeight}}function zn(t,e){let n=e.width/t.offsetWidth,r=e.height/t.offsetHeight;return(n>.995&&n<1.005||!isFinite(n)||Math.abs(e.width-t.offsetWidth)<1)&&(n=1),(r>.995&&r<1.005||!isFinite(r)||Math.abs(e.height-t.offsetHeight)<1)&&(r=1),{scaleX:n,scaleY:r}}function Bn(t,e,n,r,i,o,a,s){let l=t.ownerDocument,u=l.defaultView||window;for(let c=t,h=!1;c&&!h;)if(1==c.nodeType){let t,d=c==l.body,p=1,f=1;if(d)t=Nn(u);else{if(/^(fixed|sticky)$/.test(getComputedStyle(c).position)&&(h=!0),c.scrollHeight<=c.clientHeight&&c.scrollWidth<=c.clientWidth){c=c.assignedSlot||c.parentNode;continue}let e=c.getBoundingClientRect();({scaleX:p,scaleY:f}=zn(c,e)),t={left:e.left,right:e.left+c.clientWidth*p,top:e.top,bottom:e.top+c.clientHeight*f}}let g=0,v=0;if("nearest"==i)e.top<t.top?(v=-(t.top-e.top+a),n>0&&e.bottom>t.bottom+v&&(v=e.bottom-t.bottom+v+a)):e.bottom>t.bottom&&(v=e.bottom-t.bottom+a,n<0&&e.top-v<t.top&&(v=-(t.top+v-e.top+a)));else{let r=e.bottom-e.top,o=t.bottom-t.top,s="center"==i&&r<=o?e.top+r/2-o/2:"start"==i||"center"==i&&n<0?e.top-a:e.bottom-o+a;v=s-t.top}if("nearest"==r)e.left<t.left?(g=-(t.left-e.left+o),n>0&&e.right>t.right+g&&(g=e.right-t.right+g+o)):e.right>t.right&&(g=e.right-t.right+o,n<0&&e.left<t.left+g&&(g=-(t.left+g-e.left+o)));else{let n="center"==r?e.left+(e.right-e.left)/2-(t.right-t.left)/2:"start"==r==s?e.left-o:e.right-(t.right-t.left)+o;g=n-t.left}if(g||v)if(d)u.scrollBy(g,v);else{let t=0,n=0;if(v){let t=c.scrollTop;c.scrollTop+=v/f,n=(c.scrollTop-t)*f}if(g){let e=c.scrollLeft;c.scrollLeft+=g/p,t=(c.scrollLeft-e)*p}e={left:e.left-t,top:e.top-n,right:e.right-t,bottom:e.bottom-n},t&&Math.abs(t-g)<1&&(r="nearest"),n&&Math.abs(n-v)<1&&(i="nearest")}if(d)break;c=c.assignedSlot||c.parentNode}else{if(11!=c.nodeType)break;c=c.host}}function Fn(t){let e=t.ownerDocument;for(let n=t.parentNode;n;){if(n==e.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 Wn{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}eq(t){return this.anchorNode==t.anchorNode&&this.anchorOffset==t.anchorOffset&&this.focusNode==t.focusNode&&this.focusOffset==t.focusOffset}setRange(t){let{anchorNode:e,focusNode:n}=t;this.set(e,Math.min(t.anchorOffset,e?Dn(e):0),n,Math.min(t.focusOffset,n?Dn(n):0))}set(t,e,n,r){this.anchorNode=t,this.anchorOffset=e,this.focusNode=n,this.focusOffset=r}}let jn,Vn=null;function Qn(t){if(t.setActive)return t.setActive();if(Vn)return t.focus(Vn);let e=[];for(let n=t;n;n=n.parentNode)if(e.push(n,n.scrollTop,n.scrollLeft),n==n.ownerDocument)break;if(t.focus(null==Vn?{get preventScroll(){return Vn={preventScroll:!0},!0}}:void 0),!Vn){Vn=!1;for(let t=0;t<e.length;){let n=e[t++],r=e[t++],i=e[t++];n.scrollTop!=r&&(n.scrollTop=r),n.scrollLeft!=i&&(n.scrollLeft=i)}}}function Hn(t,e,n=e){let r=jn||(jn=document.createRange());return r.setEnd(t,n),r.setStart(t,e),r}function Zn(t,e,n,r){let i={key:e,code:e,keyCode:n,which:n,cancelable:!0};r&&({altKey:i.altKey,ctrlKey:i.ctrlKey,shiftKey:i.shiftKey,metaKey:i.metaKey}=r);let o=new KeyboardEvent("keydown",i);o.synthetic=!0,t.dispatchEvent(o);let a=new KeyboardEvent("keyup",i);return a.synthetic=!0,t.dispatchEvent(a),o.defaultPrevented||a.defaultPrevented}function Gn(t){while(t){if(t&&(9==t.nodeType||11==t.nodeType&&t.host))return t;t=t.assignedSlot||t.parentNode}return null}function Xn(t){while(t.attributes.length)t.removeAttributeNode(t.attributes[0])}function Un(t,e){let n=e.focusNode,r=e.focusOffset;if(!n||e.anchorNode!=n||e.anchorOffset!=r)return!1;for(r=Math.min(r,Dn(n));;)if(r){if(1!=n.nodeType)return!1;let t=n.childNodes[r-1];"false"==t.contentEditable?r--:(n=t,r=Dn(n))}else{if(n==t)return!0;r=$n(n),n=n.parentNode}}function Yn(t){return t.scrollTop>Math.max(1,t.scrollHeight-t.clientHeight-4)}function qn(t,e){for(let n=t,r=e;;){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=Dn(n)}else{if(!n.parentNode||En(n))return null;r=$n(n),n=n.parentNode}}}function Kn(t,e){for(let n=t,r=e;;){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||En(n))return null;r=$n(n)+1,n=n.parentNode}}}class Jn{constructor(t,e,n=!0){this.node=t,this.offset=e,this.precise=n}static before(t,e){return new Jn(t.parentNode,$n(t),e)}static after(t,e){return new Jn(t.parentNode,$n(t)+1,e)}}const tr=[];class er{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(t){let e=this.posAtStart;for(let n of this.children){if(n==t)return e;e+=n.length+n.breakAfter}throw new RangeError("Invalid child in posBefore")}posAfter(t){return this.posBefore(t)+t.length}sync(t,e){if(2&this.flags){let n,r=this.dom,i=null;for(let o of this.children){if(7&o.flags){if(!o.dom&&(n=i?i.nextSibling:r.firstChild)){let t=er.get(n);(!t||!t.parent&&t.canReuseDOM(o))&&o.reuseDOM(n)}o.sync(t,e),o.flags&=-8}if(n=i?i.nextSibling:r.firstChild,e&&!e.written&&e.node==r&&n!=o.dom&&(e.written=!0),o.dom.parentNode==r)while(n&&n!=o.dom)n=nr(n);else r.insertBefore(o.dom,n);i=o.dom}n=i?i.nextSibling:r.firstChild,n&&e&&e.node==r&&(e.written=!0);while(n)n=nr(n)}else if(1&this.flags)for(let n of this.children)7&n.flags&&(n.sync(t,e),n.flags&=-8)}reuseDOM(t){}localPosFromDOM(t,e){let n;if(t==this.dom)n=this.dom.childNodes[e];else{let r=0==Dn(t)?0:0==e?-1:1;for(;;){let e=t.parentNode;if(e==this.dom)break;0==r&&e.firstChild!=e.lastChild&&(r=t==e.firstChild?-1:1),t=e}n=r<0?t:t.nextSibling}if(n==this.dom.firstChild)return 0;while(n&&!er.get(n))n=n.nextSibling;if(!n)return this.length;for(let r=0,i=0;;r++){let t=this.children[r];if(t.dom==n)return i;i+=t.length+t.breakAfter}}domBoundsAround(t,e,n=0){let r=-1,i=-1,o=-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<t&&c>e)return n.domBoundsAround(t,e,l);if(c>=t&&-1==r&&(r=s,i=l),l>e&&n.dom.parentNode==this.dom){o=s,a=u;break}u=c,l=c+n.breakAfter}return{from:i,to:a<0?n+this.length:a,startDOM:(r?this.children[r-1].dom.nextSibling:null)||this.dom.firstChild,endDOM:o<this.children.length&&o>=0?this.children[o].dom:null}}markDirty(t=!1){this.flags|=2,this.markParentsDirty(t)}markParentsDirty(t){for(let e=this.parent;e;e=e.parent){if(t&&(e.flags|=2),1&e.flags)return;e.flags|=1,t=!1}}setParent(t){this.parent!=t&&(this.parent=t,7&this.flags&&this.markParentsDirty(!0))}setDOM(t){this.dom!=t&&(this.dom&&(this.dom.cmView=null),this.dom=t,t.cmView=this)}get rootView(){for(let t=this;;){let e=t.parent;if(!e)return t;t=e}}replaceChildren(t,e,n=tr){this.markDirty();for(let r=t;r<e;r++){let t=this.children[r];t.parent==this&&n.indexOf(t)<0&&t.destroy()}this.children.splice(t,e-t,...n);for(let r=0;r<n.length;r++)n[r].setParent(this)}ignoreMutation(t){return!1}ignoreEvent(t){return!1}childCursor(t=this.length){return new rr(this.children,t,this.children.length)}childPos(t,e=1){return this.childCursor().findPos(t,e)}toString(){let t=this.constructor.name.replace("View","");return t+(this.children.length?"("+this.children.join()+")":this.length?"["+("Text"==t?this.text:this.length)+"]":"")+(this.breakAfter?"#":"")}static get(t){return t.cmView}get isEditable(){return!0}get isWidget(){return!1}get isHidden(){return!1}merge(t,e,n,r,i,o){return!1}become(t){return!1}canReuseDOM(t){return t.constructor==this.constructor&&!(8&(this.flags|t.flags))}getSide(){return 0}destroy(){for(let t of this.children)t.parent==this&&t.destroy();this.parent=null}}function nr(t){let e=t.nextSibling;return t.parentNode.removeChild(t),e}er.prototype.breakAfter=0;class rr{constructor(t,e,n){this.children=t,this.pos=e,this.i=n,this.off=0}findPos(t,e=1){for(;;){if(t>this.pos||t==this.pos&&(e>0||0==this.i||this.children[this.i-1].breakAfter))return this.off=t-this.pos,this;let n=this.children[--this.i];this.pos-=n.length+n.breakAfter}}}function ir(t,e,n,r,i,o,a,s,l){let{children:u}=t,c=u.length?u[e]:null,h=o.length?o[o.length-1]:null,d=h?h.breakAfter:a;if(!(e==r&&c&&!a&&!d&&o.length<2&&c.merge(n,i,o.length?h:null,0==n,s,l))){if(r<u.length){let t=u[r];t&&(i<t.length||t.breakAfter&&(null===h||void 0===h?void 0:h.breakAfter))?(e==r&&(t=t.split(i),i=0),!d&&h&&t.merge(0,i,h,!0,0,l)?o[o.length-1]=t:((i||t.children.length&&!t.children[0].length)&&t.merge(0,i,null,!1,0,l),o.push(t))):(null===t||void 0===t?void 0:t.breakAfter)&&(h?h.breakAfter=1:a=1),r++}c&&(c.breakAfter=a,n>0&&(!a&&o.length&&c.merge(n,c.length,o[0],!1,s,0)?c.breakAfter=o.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),e++));while(e<r&&o.length)if(u[r-1].become(o[o.length-1]))r--,o.pop(),l=o.length?0:s;else{if(!u[e].become(o[0]))break;e++,o.shift(),s=o.length?0:l}!o.length&&e&&r<u.length&&!u[e-1].breakAfter&&u[r].merge(0,0,u[e-1],!1,s,l)&&e--,(e<r||o.length)&&t.replaceChildren(e,r,o)}}function or(t,e,n,r,i,o){let a=t.childCursor(),{i:s,off:l}=a.findPos(n,1),{i:u,off:c}=a.findPos(e,-1),h=e-n;for(let d of r)h+=d.length;t.length+=h,ir(t,u,c,s,l,r,0,i,o)}let ar="undefined"!=typeof navigator?navigator:{userAgent:"",vendor:"",platform:""},sr="undefined"!=typeof document?document:{documentElement:{style:{}}};const lr=/Edge\/(\d+)/.exec(ar.userAgent),ur=/MSIE \d/.test(ar.userAgent),cr=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(ar.userAgent),hr=!!(ur||cr||lr),dr=!hr&&/gecko\/(\d+)/i.test(ar.userAgent),pr=!hr&&/Chrome\/(\d+)/.exec(ar.userAgent),fr="webkitFontSmoothing"in sr.documentElement.style,gr=!hr&&/Apple Computer/.test(ar.vendor),vr=gr&&(/Mobile\/\w+/.test(ar.userAgent)||ar.maxTouchPoints>2);var mr={mac:vr||/Mac/.test(ar.platform),windows:/Win/.test(ar.platform),linux:/Linux|X11/.test(ar.platform),ie:hr,ie_version:ur?sr.documentMode||6:cr?+cr[1]:lr?+lr[1]:0,gecko:dr,gecko_version:dr?+(/Firefox\/(\d+)/.exec(ar.userAgent)||[0,0])[1]:0,chrome:!!pr,chrome_version:pr?+pr[1]:0,ios:vr,android:/Android\b/.test(ar.userAgent),webkit:fr,safari:gr,webkit_version:fr?+(/\bAppleWebKit\/(\d+)/.exec(ar.userAgent)||[0,0])[1]:0,tabSize:null!=sr.documentElement.style.tabSize?"tab-size":"-moz-tab-size"};const yr=256;class br extends er{constructor(t){super(),this.text=t}get length(){return this.text.length}createDOM(t){this.setDOM(t||document.createTextNode(this.text))}sync(t,e){this.dom||this.createDOM(),this.dom.nodeValue!=this.text&&(e&&e.node==this.dom&&(e.written=!0),this.dom.nodeValue=this.text)}reuseDOM(t){3==t.nodeType&&this.createDOM(t)}merge(t,e,n){return!(8&this.flags||n&&(!(n instanceof br)||this.length-(e-t)+n.length>yr||8&n.flags))&&(this.text=this.text.slice(0,t)+(n?n.text:"")+this.text.slice(e),this.markDirty(),!0)}split(t){let e=new br(this.text.slice(t));return this.text=this.text.slice(0,t),this.markDirty(),e.flags|=8&this.flags,e}localPosFromDOM(t,e){return t==this.dom?e:e?this.text.length:0}domAtPos(t){return new Jn(this.dom,t)}domBoundsAround(t,e,n){return{from:n,to:n+this.length,startDOM:this.dom,endDOM:this.dom.nextSibling}}coordsAt(t,e){return xr(this.dom,t,e)}}class _r extends er{constructor(t,e=[],n=0){super(),this.mark=t,this.children=e,this.length=n;for(let r of e)r.setParent(this)}setAttrs(t){if(Xn(t),this.mark.class&&(t.className=this.mark.class),this.mark.attrs)for(let e in this.mark.attrs)t.setAttribute(e,this.mark.attrs[e]);return t}canReuseDOM(t){return super.canReuseDOM(t)&&!(8&(this.flags|t.flags))}reuseDOM(t){t.nodeName==this.mark.tagName.toUpperCase()&&(this.setDOM(t),this.flags|=6)}sync(t,e){this.dom?4&this.flags&&this.setAttrs(this.dom):this.setDOM(this.setAttrs(document.createElement(this.mark.tagName))),super.sync(t,e)}merge(t,e,n,r,i,o){return(!n||!(!(n instanceof _r&&n.mark.eq(this.mark))||t&&i<=0||e<this.length&&o<=0))&&(or(this,t,e,n?n.children.slice():[],i-1,o-1),this.markDirty(),!0)}split(t){let e=[],n=0,r=-1,i=0;for(let a of this.children){let o=n+a.length;o>t&&e.push(n<t?a.split(t-n):a),r<0&&n>=t&&(r=i),n=o,i++}let o=this.length-t;return this.length=t,r>-1&&(this.children.length=r,this.markDirty()),new _r(this.mark,e,o)}domAtPos(t){return Sr(this,t)}coordsAt(t,e){return kr(this,t,e)}}function xr(t,e,n){let r=t.nodeValue.length;e>r&&(e=r);let i=e,o=e,a=0;0==e&&n<0||e==r&&n>=0?mr.chrome||mr.gecko||(e?(i--,a=1):o<r&&(o++,a=-1)):n<0?i--:o<r&&o++;let s=Hn(t,i,o).getClientRects();if(!s.length)return null;let l=s[(a?a<0:n>=0)?0:s.length-1];return mr.safari&&!a&&0==l.width&&(l=Array.prototype.find.call(s,(t=>t.width))||l),a?Ln(l,a<0):l||null}class wr extends er{static create(t,e,n){return new wr(t,e,n)}constructor(t,e,n){super(),this.widget=t,this.length=e,this.side=n,this.prevWidget=null}split(t){let e=wr.create(this.widget,this.length-t,this.side);return this.length-=t,e}sync(t){this.dom&&this.widget.updateDOM(this.dom,t)||(this.dom&&this.prevWidget&&this.prevWidget.destroy(this.dom),this.prevWidget=null,this.setDOM(this.widget.toDOM(t)),this.widget.editable||(this.dom.contentEditable="false"))}getSide(){return this.side}merge(t,e,n,r,i,o){return!(n&&(!(n instanceof wr&&this.widget.compare(n.widget))||t>0&&i<=0||e<this.length&&o<=0))&&(this.length=t+(n?n.length:0)+(this.length-e),!0)}become(t){return t instanceof wr&&t.side==this.side&&this.widget.constructor==t.widget.constructor&&(this.widget.compare(t.widget)||this.markDirty(!0),this.dom&&!this.prevWidget&&(this.prevWidget=this.widget),this.widget=t.widget,this.length=t.length,!0)}ignoreMutation(){return!0}ignoreEvent(t){return this.widget.ignoreEvent(t)}get overrideDOMText(){if(0==this.length)return yt.empty;let t=this;while(t.parent)t=t.parent;let{view:e}=t,n=e&&e.state.doc,r=this.posAtStart;return n?n.slice(r,r+this.length):yt.empty}domAtPos(t){return(this.length?0==t:this.side>0)?Jn.before(this.dom):Jn.after(this.dom,t==this.length)}domBoundsAround(){return null}coordsAt(t,e){let n=this.widget.coordsAt(this.dom,t,e);if(n)return n;let r=this.dom.getClientRects(),i=null;if(!r.length)return null;let o=this.side?this.side<0:t>0;for(let a=o?r.length-1:0;;a+=o?-1:1)if(i=r[a],t>0?0==a:a==r.length-1||i.top<i.bottom)break;return Ln(i,!o)}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 Or extends er{constructor(t){super(),this.side=t}get length(){return 0}merge(){return!1}become(t){return t instanceof Or&&t.side==this.side}split(){return new Or(this.side)}sync(){if(!this.dom){let t=document.createElement("img");t.className="cm-widgetBuffer",t.setAttribute("aria-hidden","true"),this.setDOM(t)}}getSide(){return this.side}domAtPos(t){return this.side>0?Jn.before(this.dom):Jn.after(this.dom)}localPosFromDOM(){return 0}domBoundsAround(){return null}coordsAt(t){return this.dom.getBoundingClientRect()}get overrideDOMText(){return yt.empty}get isHidden(){return!0}}function Sr(t,e){let n=t.dom,{children:r}=t,i=0;for(let o=0;i<r.length;i++){let t=r[i],a=o+t.length;if(!(a==o&&t.getSide()<=0)){if(e>o&&e<a&&t.dom.parentNode==n)return t.domAtPos(e-o);if(e<=o)break;o=a}}for(let o=i;o>0;o--){let t=r[o-1];if(t.dom.parentNode==n)return t.domAtPos(t.length)}for(let o=i;o<r.length;o++){let t=r[o];if(t.dom.parentNode==n)return t.domAtPos(0)}return new Jn(n,0)}function Ar(t,e,n){let r,{children:i}=t;n>0&&e instanceof _r&&i.length&&(r=i[i.length-1])instanceof _r&&r.mark.eq(e.mark)?Ar(r,e.children[0],n-1):(i.push(e),e.setParent(t)),t.length+=e.length}function kr(t,e,n){let r=null,i=-1,o=null,a=-1;function s(t,e){for(let l=0,u=0;l<t.children.length&&u<=e;l++){let c=t.children[l],h=u+c.length;h>=e&&(c.children.length?s(c,e-u):(!o||o.isHidden&&n>0)&&(h>e||u==h&&c.getSide()>0)?(o=c,a=e-u):(u<e||u==h&&c.getSide()<0&&!c.isHidden)&&(r=c,i=e-u)),u=h}}s(t,e);let l=(n<0?r:o)||r||o;return l?l.coordsAt(Math.max(0,l==r?i:a),n):Cr(t)}function Cr(t){let e=t.dom.lastChild;if(!e)return t.dom.getBoundingClientRect();let n=Pn(e);return n[n.length-1]||null}function Mr(t,e){for(let n in t)"class"==n&&e.class?e.class+=" "+t.class:"style"==n&&e.style?e.style+=";"+t.style:e[n]=t[n];return e}br.prototype.children=wr.prototype.children=Or.prototype.children=tr;const Tr=Object.create(null);function Pr(t,e,n){if(t==e)return!0;t||(t=Tr),e||(e=Tr);let r=Object.keys(t),i=Object.keys(e);if(r.length-(n&&r.indexOf(n)>-1?1:0)!=i.length-(n&&i.indexOf(n)>-1?1:0))return!1;for(let o of r)if(o!=n&&(-1==i.indexOf(o)||t[o]!==e[o]))return!1;return!0}function Ir(t,e,n){let r=!1;if(e)for(let i in e)n&&i in n||(r=!0,"style"==i?t.style.cssText="":t.removeAttribute(i));if(n)for(let i in n)e&&e[i]==n[i]||(r=!0,"style"==i?t.style.cssText=n[i]:t.setAttribute(i,n[i]));return r}function $r(t){let e=Object.create(null);for(let n=0;n<t.attributes.length;n++){let r=t.attributes[n];e[r.name]=r.value}return e}class Er extends er{constructor(){super(...arguments),this.children=[],this.length=0,this.prevAttrs=void 0,this.attrs=null,this.breakAfter=0}merge(t,e,n,r,i,o){if(n){if(!(n instanceof Er))return!1;this.dom||n.transferDOM(this)}return r&&this.setDeco(n?n.attrs:null),or(this,t,e,n?n.children.slice():[],i,o),!0}split(t){let e=new Er;if(e.breakAfter=this.breakAfter,0==this.length)return e;let{i:n,off:r}=this.childPos(t);r&&(e.append(this.children[n].split(r),0),this.children[n].merge(r,this.children[n].length,null,!1,0,0),n++);for(let i=n;i<this.children.length;i++)e.append(this.children[i],0);while(n>0&&0==this.children[n-1].length)this.children[--n].destroy();return this.children.length=n,this.markDirty(),this.length=t,e}transferDOM(t){this.dom&&(this.markDirty(),t.setDOM(this.dom),t.prevAttrs=void 0===this.prevAttrs?this.attrs:this.prevAttrs,this.prevAttrs=void 0,this.dom=null)}setDeco(t){Pr(this.attrs,t)||(this.dom&&(this.prevAttrs=this.attrs,this.markDirty()),this.attrs=t)}append(t,e){Ar(this,t,e)}addLineDeco(t){let e=t.spec.attributes,n=t.spec.class;e&&(this.attrs=Mr(e,this.attrs||{})),n&&(this.attrs=Mr({class:n},this.attrs||{}))}domAtPos(t){return Sr(this,t)}reuseDOM(t){"DIV"==t.nodeName&&(this.setDOM(t),this.flags|=6)}sync(t,e){var n;this.dom?4&this.flags&&(Xn(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&&(Ir(this.dom,this.prevAttrs,this.attrs),this.dom.classList.add("cm-line"),this.prevAttrs=void 0),super.sync(t,e);let r=this.dom.lastChild;while(r&&er.get(r)instanceof _r)r=r.lastChild;if(!r||!this.length||"BR"!=r.nodeName&&0==(null===(n=er.get(r))||void 0===n?void 0:n.isEditable)&&(!mr.ios||!this.children.some((t=>t instanceof br)))){let t=document.createElement("BR");t.cmIgnore=!0,this.dom.appendChild(t)}}measureTextSize(){if(0==this.children.length||this.length>20)return null;let t,e=0;for(let n of this.children){if(!(n instanceof br)||/[^ -~]/.test(n.text))return null;let r=Pn(n.dom);if(1!=r.length)return null;e+=r[0].width,t=r[0].height}return e?{lineHeight:this.dom.getBoundingClientRect().height,charWidth:e/this.length,textHeight:t}:null}coordsAt(t,e){let n=kr(this,t,e);if(!this.children.length&&n&&this.parent){let{heightOracle:t}=this.parent.view.viewState,e=n.bottom-n.top;if(Math.abs(e-t.lineHeight)<2&&t.textHeight<e){let r=(e-t.textHeight)/2;return{top:n.top+r,bottom:n.bottom-r,left:n.left,right:n.left}}}return n}become(t){return t instanceof Er&&0==this.children.length&&0==t.children.length&&Pr(this.attrs,t.attrs)&&this.breakAfter==t.breakAfter}covers(){return!0}static find(t,e){for(let n=0,r=0;n<t.children.length;n++){let i=t.children[n],o=r+i.length;if(o>=e){if(i instanceof Er)return i;if(o>e)break}r=o+i.breakAfter}return null}}class Rr extends er{constructor(t,e,n){super(),this.widget=t,this.length=e,this.deco=n,this.breakAfter=0,this.prevWidget=null}merge(t,e,n,r,i,o){return!(n&&(!(n instanceof Rr&&this.widget.compare(n.widget))||t>0&&i<=0||e<this.length&&o<=0))&&(this.length=t+(n?n.length:0)+(this.length-e),!0)}domAtPos(t){return 0==t?Jn.before(this.dom):Jn.after(this.dom,t==this.length)}split(t){let e=this.length-t;this.length=t;let n=new Rr(this.widget,e,this.deco);return n.breakAfter=this.breakAfter,n}get children(){return tr}sync(t){this.dom&&this.widget.updateDOM(this.dom,t)||(this.dom&&this.prevWidget&&this.prevWidget.destroy(this.dom),this.prevWidget=null,this.setDOM(this.widget.toDOM(t)),this.widget.editable||(this.dom.contentEditable="false"))}get overrideDOMText(){return this.parent?this.parent.view.state.doc.slice(this.posAtStart,this.posAtEnd):yt.empty}domBoundsAround(){return null}become(t){return t instanceof Rr&&t.widget.constructor==this.widget.constructor&&(t.widget.compare(this.widget)||this.markDirty(!0),this.dom&&!this.prevWidget&&(this.prevWidget=this.widget),this.widget=t.widget,this.length=t.length,this.deco=t.deco,this.breakAfter=t.breakAfter,!0)}ignoreMutation(){return!0}ignoreEvent(t){return this.widget.ignoreEvent(t)}get isEditable(){return!1}get isWidget(){return!0}coordsAt(t,e){return this.widget.coordsAt(this.dom,t,e)}destroy(){super.destroy(),this.dom&&this.widget.destroy(this.dom)}covers(t){let{startSide:e,endSide:n}=this.deco;return e!=n&&(t<0?e<0:n>0)}}class Dr{eq(t){return!1}updateDOM(t,e){return!1}compare(t){return this==t||this.constructor==t.constructor&&this.eq(t)}get estimatedHeight(){return-1}get lineBreaks(){return 0}ignoreEvent(t){return!0}coordsAt(t,e,n){return null}get isHidden(){return!1}get editable(){return!1}destroy(t){}}var Lr=function(t){return t[t["Text"]=0]="Text",t[t["WidgetBefore"]=1]="WidgetBefore",t[t["WidgetAfter"]=2]="WidgetAfter",t[t["WidgetRange"]=3]="WidgetRange",t}(Lr||(Lr={}));class Nr extends Ze{constructor(t,e,n,r){super(),this.startSide=t,this.endSide=e,this.widget=n,this.spec=r}get heightRelevant(){return!1}static mark(t){return new zr(t)}static widget(t){let e=Math.max(-1e4,Math.min(1e4,t.side||0)),n=!!t.block;return e+=n&&!t.inlineOrder?e>0?3e8:-4e8:e>0?1e8:-1e8,new Fr(t,e,e,n,t.widget||null,!1)}static replace(t){let e,n,r=!!t.block;if(t.isBlockGap)e=-5e8,n=4e8;else{let{start:i,end:o}=Wr(t,r);e=(i?r?-3e8:-1:5e8)-1,n=1+(o?r?2e8:1:-6e8)}return new Fr(t,e,n,r,t.widget||null,!0)}static line(t){return new Br(t)}static set(t,e=!1){return Ye.of(t,e)}hasHeight(){return!!this.widget&&this.widget.estimatedHeight>-1}}Nr.none=Ye.empty;class zr extends Nr{constructor(t){let{start:e,end:n}=Wr(t);super(e?-1:5e8,n?1:-6e8,null,t),this.tagName=t.tagName||"span",this.class=t.class||"",this.attrs=t.attributes||null}eq(t){var e,n;return this==t||t instanceof zr&&this.tagName==t.tagName&&(this.class||(null===(e=this.attrs)||void 0===e?void 0:e.class))==(t.class||(null===(n=t.attrs)||void 0===n?void 0:n.class))&&Pr(this.attrs,t.attrs,"class")}range(t,e=t){if(t>=e)throw new RangeError("Mark decorations may not be empty");return super.range(t,e)}}zr.prototype.point=!1;class Br extends Nr{constructor(t){super(-2e8,-2e8,null,t)}eq(t){return t instanceof Br&&this.spec.class==t.spec.class&&Pr(this.spec.attributes,t.spec.attributes)}range(t,e=t){if(e!=t)throw new RangeError("Line decoration ranges must be zero-length");return super.range(t,e)}}Br.prototype.mapMode=jt.TrackBefore,Br.prototype.point=!0;class Fr extends Nr{constructor(t,e,n,r,i,o){super(e,n,i,t),this.block=r,this.isReplace=o,this.mapMode=r?e<=0?jt.TrackBefore:jt.TrackAfter:jt.TrackDel}get type(){return this.startSide!=this.endSide?Lr.WidgetRange:this.startSide<=0?Lr.WidgetBefore:Lr.WidgetAfter}get heightRelevant(){return this.block||!!this.widget&&(this.widget.estimatedHeight>=5||this.widget.lineBreaks>0)}eq(t){return t instanceof Fr&&jr(this.widget,t.widget)&&this.block==t.block&&this.startSide==t.startSide&&this.endSide==t.endSide}range(t,e=t){if(this.isReplace&&(t>e||t==e&&this.startSide>0&&this.endSide<=0))throw new RangeError("Invalid range for replacement decoration");if(!this.isReplace&&e!=t)throw new RangeError("Widget decorations can only have zero-length ranges");return super.range(t,e)}}function Wr(t,e=!1){let{inclusiveStart:n,inclusiveEnd:r}=t;return null==n&&(n=t.inclusive),null==r&&(r=t.inclusive),{start:null!==n&&void 0!==n?n:e,end:null!==r&&void 0!==r?r:e}}function jr(t,e){return t==e||!!(t&&e&&t.compare(e))}function Vr(t,e,n,r=0){let i=n.length-1;i>=0&&n[i]+r>=t?n[i]=Math.max(n[i],e):n.push(t,e)}Fr.prototype.point=!0;class Qr{constructor(t,e,n,r){this.doc=t,this.pos=e,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=t.iter(),this.skip=e}posCovered(){if(0==this.content.length)return!this.breakAtStart&&this.doc.lineAt(this.pos).from!=this.pos;let t=this.content[this.content.length-1];return!(t.breakAfter||t instanceof Rr&&t.deco.endSide<0)}getLine(){return this.curLine||(this.content.push(this.curLine=new Er),this.atCursorPos=!0),this.curLine}flushBuffer(t=this.bufferMarks){this.pendingBuffer&&(this.curLine.append(Hr(new Or(-1),t),t.length),this.pendingBuffer=0)}addBlockWidget(t){this.flushBuffer(),this.curLine=null,this.content.push(t)}finish(t){this.pendingBuffer&&t<=this.bufferMarks.length?this.flushBuffer():this.pendingBuffer=0,this.posCovered()||t&&this.content.length&&this.content[this.content.length-1]instanceof Rr||this.getLine()}buildText(t,e,n){while(t>0){if(this.textOff==this.text.length){let{value:e,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,t--;continue}this.text=e,this.textOff=0}let r=Math.min(this.text.length-this.textOff,t,512);this.flushBuffer(e.slice(e.length-n)),this.getLine().append(Hr(new br(this.text.slice(this.textOff,this.textOff+r)),e),n),this.atCursorPos=!0,this.textOff+=r,t-=r,n=0}}span(t,e,n,r){this.buildText(e-t,n,r),this.pos=e,this.openStart<0&&(this.openStart=r)}point(t,e,n,r,i,o){if(this.disallowBlockEffectsFor[o]&&n instanceof Fr){if(n.block)throw new RangeError("Block decorations may not be specified via plugins");if(e>this.doc.lineAt(this.pos).to)throw new RangeError("Decorations that replace line breaks may not be specified via plugins")}let a=e-t;if(n instanceof Fr)if(n.block)n.startSide>0&&!this.posCovered()&&this.getLine(),this.addBlockWidget(new Rr(n.widget||Zr.block,a,n));else{let o=wr.create(n.widget||Zr.inline,a,a?0:n.startSide),s=this.atCursorPos&&!o.isEditable&&i<=r.length&&(t<e||n.startSide>0),l=!o.isEditable&&(t<e||i>r.length||n.startSide<=0),u=this.getLine();2!=this.pendingBuffer||s||o.isEditable||(this.pendingBuffer=0),this.flushBuffer(r),s&&(u.append(Hr(new Or(1),r),i),i=r.length+Math.max(0,i-r.length)),u.append(Hr(o,r),i),this.atCursorPos=l,this.pendingBuffer=l?t<e||i>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=e),this.openStart<0&&(this.openStart=i)}static build(t,e,n,r,i){let o=new Qr(t,e,n,i);return o.openEnd=Ye.spans(r,e,n,o),o.openStart<0&&(o.openStart=o.openEnd),o.finish(o.openEnd),o}}function Hr(t,e){for(let n of e)t=new _r(n,[t],t.length);return t}class Zr extends Dr{constructor(t){super(),this.tag=t}eq(t){return t.tag==this.tag}toDOM(){return document.createElement(this.tag)}updateDOM(t){return t.nodeName.toLowerCase()==this.tag}get isHidden(){return!0}}Zr.inline=new Zr("span"),Zr.block=new Zr("div");var Gr=function(t){return t[t["LTR"]=0]="LTR",t[t["RTL"]=1]="RTL",t}(Gr||(Gr={}));const Xr=Gr.LTR,Ur=Gr.RTL;function Yr(t){let e=[];for(let n=0;n<t.length;n++)e.push(1<<+t[n]);return e}const qr=Yr("88888888888888888888888888888888888666888888787833333333337888888000000000000000000000000008888880000000000000000000000000088888888888888888888888888888888888887866668888088888663380888308888800000000000000000000000800000000000000000000000000000008"),Kr=Yr("4444448826627288999999999992222222222222222222222222222222222222222222222229999999999999999999994444444444644222822222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222999999949999999229989999223333333333"),Jr=Object.create(null),ti=[];for(let q_ of["()","[]","{}"]){let t=q_.charCodeAt(0),e=q_.charCodeAt(1);Jr[t]=e,Jr[e]=-t}function ei(t){return t<=247?qr[t]:1424<=t&&t<=1524?2:1536<=t&&t<=1785?Kr[t-1536]:1774<=t&&t<=2220?4:8192<=t&&t<=8204?256:64336<=t&&t<=65023?4:1}const ni=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac\ufb50-\ufdff]/;class ri{get dir(){return this.level%2?Ur:Xr}constructor(t,e,n){this.from=t,this.to=e,this.level=n}side(t,e){return this.dir==e==t?this.to:this.from}forward(t,e){return t==(this.dir==e)}static find(t,e,n,r){let i=-1;for(let o=0;o<t.length;o++){let a=t[o];if(a.from<=e&&a.to>=e){if(a.level==n)return o;(i<0||(0!=r?r<0?a.from<e:a.to>e:t[i].level>a.level))&&(i=o)}}if(i<0)throw new RangeError("Index out of range");return i}}function ii(t,e){if(t.length!=e.length)return!1;for(let n=0;n<t.length;n++){let r=t[n],i=e[n];if(r.from!=i.from||r.to!=i.to||r.direction!=i.direction||!ii(r.inner,i.inner))return!1}return!0}const oi=[];function ai(t,e,n,r,i){for(let o=0;o<=r.length;o++){let a=o?r[o-1].to:e,s=o<r.length?r[o].from:n,l=o?256:i;for(let e=a,n=l,r=l;e<s;e++){let i=ei(t.charCodeAt(e));512==i?i=n:8==i&&4==r&&(i=16),oi[e]=4==i?2:i,7&i&&(r=i),n=i}for(let t=a,e=l,r=l;t<s;t++){let i=oi[t];if(128==i)t<s-1&&e==oi[t+1]&&24&e?i=oi[t]=e:oi[t]=256;else if(64==i){let i=t+1;while(i<s&&64==oi[i])i++;let o=t&&8==e||i<n&&8==oi[i]?1==r?1:8:256;for(let e=t;e<i;e++)oi[e]=o;t=i-1}else 8==i&&1==r&&(oi[t]=1);e=i,7&i&&(r=i)}}}function si(t,e,n,r,i){let o=1==i?2:1;for(let a=0,s=0,l=0;a<=r.length;a++){let u=a?r[a-1].to:e,c=a<r.length?r[a].from:n;for(let e,n,r,a=u;a<c;a++)if(n=Jr[e=t.charCodeAt(a)])if(n<0){for(let t=s-3;t>=0;t-=3)if(ti[t+1]==-n){let e=ti[t+2],n=2&e?i:4&e?1&e?o:i:0;n&&(oi[a]=oi[ti[t]]=n),s=t;break}}else{if(189==ti.length)break;ti[s++]=a,ti[s++]=e,ti[s++]=l}else if(2==(r=oi[a])||1==r){let t=r==i;l=t?0:1;for(let e=s-3;e>=0;e-=3){let n=ti[e+2];if(2&n)break;if(t)ti[e+2]|=2;else{if(4&n)break;ti[e+2]|=4}}}}}function li(t,e,n,r){for(let i=0,o=r;i<=n.length;i++){let a=i?n[i-1].to:t,s=i<n.length?n[i].from:e;for(let l=a;l<s;){let a=oi[l];if(256==a){let a=l+1;for(;;)if(a==s){if(i==n.length)break;a=n[i++].to,s=i<n.length?n[i].from:e}else{if(256!=oi[a])break;a++}let u=1==o,c=1==(a<e?oi[a]:r),h=u==c?u?1:2:r;for(let e=a,r=i,o=r?n[r-1].to:t;e>l;)e==o&&(e=n[--r].from,o=r?n[r-1].to:t),oi[--e]=h;l=a}else o=a,l++}}}function ui(t,e,n,r,i,o,a){let s=r%2?2:1;if(r%2==i%2)for(let l=e,u=0;l<n;){let e=!0,c=!1;if(u==o.length||l<o[u].from){let t=oi[l];t!=s&&(e=!1,c=16==t)}let h=e||1!=s?null:[],d=e?r:r+1,p=l;t:for(;;)if(u<o.length&&p==o[u].from){if(c)break t;let f=o[u];if(!e)for(let t=f.to,e=u+1;;){if(t==n)break t;if(!(e<o.length&&o[e].from==t)){if(oi[t]==s)break t;break}t=o[e++].to}if(u++,h)h.push(f);else{f.from>l&&a.push(new ri(l,f.from,d));let e=f.direction==Xr!=!(d%2);ci(t,e?r+1:r,i,f.inner,f.from,f.to,a),l=f.to}p=f.to}else{if(p==n||(e?oi[p]!=s:oi[p]==s))break;p++}h?ui(t,l,p,r+1,i,h,a):l<p&&a.push(new ri(l,p,d)),l=p}else for(let l=n,u=o.length;l>e;){let n=!0,c=!1;if(!u||l>o[u-1].to){let t=oi[l-1];t!=s&&(n=!1,c=16==t)}let h=n||1!=s?null:[],d=n?r:r+1,p=l;t:for(;;)if(u&&p==o[u-1].to){if(c)break t;let f=o[--u];if(!n)for(let t=f.from,n=u;;){if(t==e)break t;if(!n||o[n-1].to!=t){if(oi[t-1]==s)break t;break}t=o[--n].from}if(h)h.push(f);else{f.to<l&&a.push(new ri(f.to,l,d));let e=f.direction==Xr!=!(d%2);ci(t,e?r+1:r,i,f.inner,f.from,f.to,a),l=f.from}p=f.from}else{if(p==e||(n?oi[p-1]!=s:oi[p-1]==s))break;p--}h?ui(t,p,l,r+1,i,h,a):p<l&&a.push(new ri(p,l,d)),l=p}}function ci(t,e,n,r,i,o,a){let s=e%2?2:1;ai(t,i,o,r,s),si(t,i,o,r,s),li(i,o,r,s),ui(t,i,o,e,n,r,a)}function hi(t,e,n){if(!t)return[new ri(0,0,e==Ur?1:0)];if(e==Xr&&!n.length&&!ni.test(t))return di(t.length);if(n.length)while(t.length>oi.length)oi[oi.length]=256;let r=[],i=e==Xr?0:1;return ci(t,i,i,n,0,t.length,r),r}function di(t){return[new ri(0,t,0)]}let pi="";function fi(t,e,n,r,i){var o;let a=r.head-t.from,s=ri.find(e,a,null!==(o=r.bidiLevel)&&void 0!==o?o:-1,r.assoc),l=e[s],u=l.side(i,n);if(a==u){let t=s+=i?1:-1;if(t<0||t>=e.length)return null;l=e[s=t],a=l.side(!i,n),u=l.side(i,n)}let c=Et(t.text,a,l.forward(i,n));(c<l.from||c>l.to)&&(c=u),pi=t.text.slice(Math.min(a,c),Math.max(a,c));let h=s==(i?e.length-1:0)?null:e[s+(i?1:-1)];return h&&c==u&&h.level+(i?0:1)<l.level?Kt.cursor(h.side(!i,n)+t.from,h.forward(i,n)?1:-1,h.level):Kt.cursor(c+t.from,l.forward(i,n)?-1:1,l.level)}function gi(t,e,n){for(let r=e;r<n;r++){let e=ei(t.charCodeAt(r));if(1==e)return Xr;if(2==e||4==e)return Ur}return Xr}const vi=ee.define(),mi=ee.define(),yi=ee.define(),bi=ee.define(),_i=ee.define(),xi=ee.define(),wi=ee.define(),Oi=ee.define({combine:t=>t.some((t=>t))}),Si=ee.define({combine:t=>t.some((t=>t))}),Ai=ee.define();class ki{constructor(t,e="nearest",n="nearest",r=5,i=5,o=!1){this.range=t,this.y=e,this.x=n,this.yMargin=r,this.xMargin=i,this.isSnapshot=o}map(t){return t.empty?this:new ki(this.range.map(t),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}clip(t){return this.range.to<=t.doc.length?this:new ki(Kt.cursor(t.doc.length),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}}const Ci=Te.define({map:(t,e)=>t.map(e)}),Mi=Te.define();function Ti(t,e,n){let r=t.facet(bi);r.length?r[0](e):window.onerror?window.onerror(String(e),n,void 0,void 0,e):n?console.error(n+":",e):console.error(e)}const Pi=ee.define({combine:t=>!t.length||t[0]});let Ii=0;const $i=ee.define();class Ei{constructor(t,e,n,r,i){this.id=t,this.create=e,this.domEventHandlers=n,this.domEventObservers=r,this.extension=i(this)}static define(t,e){const{eventHandlers:n,eventObservers:r,provide:i,decorations:o}=e||{};return new Ei(Ii++,t,n,r,(t=>{let e=[$i.of(t)];return o&&e.push(Ni.of((e=>{let n=e.plugin(t);return n?o(n):Nr.none}))),i&&e.push(i(t)),e}))}static fromClass(t,e){return Ei.define((e=>new t(e)),e)}}class Ri{constructor(t){this.spec=t,this.mustUpdate=null,this.value=null}update(t){if(this.value){if(this.mustUpdate){let t=this.mustUpdate;if(this.mustUpdate=null,this.value.update)try{this.value.update(t)}catch(e){if(Ti(t.state,e,"CodeMirror plugin crashed"),this.value.destroy)try{this.value.destroy()}catch(Y_){}this.deactivate()}}}else if(this.spec)try{this.value=this.spec.create(t)}catch(e){Ti(t.state,e,"CodeMirror plugin crashed"),this.deactivate()}return this}destroy(t){var e;if(null===(e=this.value)||void 0===e?void 0:e.destroy)try{this.value.destroy()}catch(n){Ti(t.state,n,"CodeMirror plugin crashed")}}deactivate(){this.spec=this.value=null}}const Di=ee.define(),Li=ee.define(),Ni=ee.define(),zi=ee.define(),Bi=ee.define(),Fi=ee.define();function Wi(t,e){let n=t.state.facet(Fi);if(!n.length)return n;let r=n.map((e=>e instanceof Function?e(t):e)),i=[];return Ye.spans(r,e.from,e.to,{point(){},span(t,n,r,o){let a=t-e.from,s=n-e.from,l=i;for(let i=r.length-1;i>=0;i--,o--){let t,n=r[i].spec.bidiIsolate;if(null==n&&(n=gi(e.text,a,s)),o>0&&l.length&&(t=l[l.length-1]).to==a&&t.direction==n)t.to=s,l=t.inner;else{let t={from:a,to:s,direction:n,inner:[]};l.push(t),l=t.inner}}}}),i}const ji=ee.define();function Vi(t){let e=0,n=0,r=0,i=0;for(let o of t.state.facet(ji)){let a=o(t);a&&(null!=a.left&&(e=Math.max(e,a.left)),null!=a.right&&(n=Math.max(n,a.right)),null!=a.top&&(r=Math.max(r,a.top)),null!=a.bottom&&(i=Math.max(i,a.bottom)))}return{left:e,right:n,top:r,bottom:i}}const Qi=ee.define();class Hi{constructor(t,e,n,r){this.fromA=t,this.toA=e,this.fromB=n,this.toB=r}join(t){return new Hi(Math.min(this.fromA,t.fromA),Math.max(this.toA,t.toA),Math.min(this.fromB,t.fromB),Math.max(this.toB,t.toB))}addToSet(t){let e=t.length,n=this;for(;e>0;e--){let r=t[e-1];if(!(r.fromA>n.toA)){if(r.toA<n.fromA)break;n=n.join(r),t.splice(e-1,1)}}return t.splice(e,0,n),t}static extendWithRanges(t,e){if(0==e.length)return t;let n=[];for(let r=0,i=0,o=0,a=0;;r++){let s=r==t.length?null:t[r],l=o-a,u=s?s.fromB:1e9;while(i<e.length&&e[i]<u){let t=e[i],r=e[i+1],o=Math.max(a,t),s=Math.min(u,r);if(o<=s&&new Hi(o+l,s+l,o,s).addToSet(n),r>u)break;i+=2}if(!s)return n;new Hi(s.fromA,s.toA,s.fromB,s.toB).addToSet(n),o=s.toA,a=s.toB}}}class Zi{constructor(t,e,n){this.view=t,this.state=e,this.transactions=n,this.flags=0,this.startState=t.state,this.changes=Qt.empty(this.startState.doc.length);for(let i of n)this.changes=this.changes.compose(i.changes);let r=[];this.changes.iterChangedRanges(((t,e,n,i)=>r.push(new Hi(t,e,n,i)))),this.changedRanges=r}static create(t,e,n){return new Zi(t,e,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((t=>t.selection))}get empty(){return 0==this.flags&&0==this.transactions.length}}class Gi extends er{get length(){return this.view.state.doc.length}constructor(t){super(),this.view=t,this.decorations=[],this.dynamicDecorationMap=[!1],this.domChanged=null,this.hasComposition=null,this.markedForComposition=new Set,this.editContextFormatting=Nr.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(t.contentDOM),this.children=[new Er],this.children[0].setParent(this),this.updateDeco(),this.updateInner([new Hi(0,0,0,t.state.doc.length)],0,null)}update(t){var e;let n=t.changedRanges;this.minWidth>0&&n.length&&(n.every((({fromA:t,toA:e})=>e<this.minWidthFrom||t>this.minWidthTo))?(this.minWidthFrom=t.changes.mapPos(this.minWidthFrom,1),this.minWidthTo=t.changes.mapPos(this.minWidthTo,1)):this.minWidth=this.minWidthFrom=this.minWidthTo=0),this.updateEditContextFormatting(t);let r=-1;this.view.inputState.composing>=0&&!this.view.observer.editContext&&((null===(e=this.domChanged)||void 0===e?void 0:e.newSel)?r=this.domChanged.newSel.head:no(t.changes,this.hasComposition)||t.selectionSet||(r=t.state.selection.main.head));let i=r>-1?qi(this.view,t.changes,r):null;if(this.domChanged=null,this.hasComposition){this.markedForComposition.clear();let{from:e,to:r}=this.hasComposition;n=new Hi(e,r,t.changes.mapPos(e,-1),t.changes.mapPos(r,1)).addToSet(n.slice())}this.hasComposition=i?{from:i.range.fromB,to:i.range.toB}:null,(mr.ie||mr.chrome)&&!i&&t&&t.state.doc.lines!=t.startState.doc.lines&&(this.forceSelection=!0);let o=this.decorations,a=this.updateDeco(),s=to(o,a,t.changes);return n=Hi.extendWithRanges(n,s),!!(7&this.flags||0!=n.length)&&(this.updateInner(n,t.startState.doc.length,i),t.transactions.length&&(this.lastUpdate=Date.now()),!0)}updateInner(t,e,n){this.view.viewState.mustMeasureContent=!0,this.updateChildren(t,e,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 t=mr.chrome||mr.ios?{node:r.selectionRange.focusNode,written:!1}:void 0;this.sync(this.view,t),this.flags&=-8,t&&(t.written||r.selectionRange.focusNode!=t.node)&&(this.forceSelection=!0),this.dom.style.height=""})),this.markedForComposition.forEach((t=>t.flags&=-9));let i=[];if(this.view.viewport.from||this.view.viewport.to<this.view.state.doc.length)for(let o of this.children)o instanceof Rr&&o.widget instanceof Ui&&i.push(o.dom);r.updateGaps(i)}updateChildren(t,e,n){let r=n?n.range.addToSet(t.slice()):t,i=this.childCursor(e);for(let o=r.length-1;;o--){let t=o>=0?r[o]:null;if(!t)break;let e,a,s,l,{fromA:u,toA:c,fromB:h,toB:d}=t;if(n&&n.range.fromB<d&&n.range.toB>h){let t=Qr.build(this.view.state.doc,h,n.range.fromB,this.decorations,this.dynamicDecorationMap),r=Qr.build(this.view.state.doc,n.range.toB,d,this.decorations,this.dynamicDecorationMap);a=t.breakAtStart,s=t.openStart,l=r.openEnd;let i=this.compositionView(n);r.breakAtStart?i.breakAfter=1:r.content.length&&i.merge(i.length,i.length,r.content[0],!1,r.openStart,0)&&(i.breakAfter=r.content[0].breakAfter,r.content.shift()),t.content.length&&i.merge(0,0,t.content[t.content.length-1],!0,0,t.openEnd)&&t.content.pop(),e=t.content.concat(i).concat(r.content)}else({content:e,breakAtStart:a,openStart:s,openEnd:l}=Qr.build(this.view.state.doc,h,d,this.decorations,this.dynamicDecorationMap));let{i:p,off:f}=i.findPos(c,1),{i:g,off:v}=i.findPos(u,-1);ir(this,g,v,p,f,e,a,s,l)}n&&this.fixCompositionDOM(n)}updateEditContextFormatting(t){this.editContextFormatting=this.editContextFormatting.map(t.changes);for(let e of t.transactions)for(let t of e.effects)t.is(Mi)&&(this.editContextFormatting=t.value)}compositionView(t){let e=new br(t.text.nodeValue);e.flags|=8;for(let{deco:r}of t.marks)e=new _r(r,[e],e.length);let n=new Er;return n.append(e,0),n}fixCompositionDOM(t){let e=(t,e)=>{e.flags|=8|(e.children.some((t=>7&t.flags))?1:0),this.markedForComposition.add(e);let n=er.get(t);n&&n!=e&&(n.dom=null),e.setDOM(t)},n=this.childPos(t.range.fromB,1),r=this.children[n.i];e(t.line,r);for(let i=t.marks.length-1;i>=-1;i--)n=r.childPos(n.off,1),r=r.children[n.i],e(i>=0?t.marks[i].node:t.text,r)}updateSelection(t=!1,e=!1){!t&&this.view.observer.selectionRange.focusNode||this.view.observer.readSelectionRange();let n=this.view.root.activeElement,r=n==this.dom,i=!r&&Tn(this.dom,this.view.observer.selectionRange)&&!(n&&this.dom.contains(n));if(!(r||e||i))return;let o=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(mr.gecko&&a.empty&&!this.hasComposition&&Xi(s)){let t=document.createTextNode("");this.view.observer.ignore((()=>s.node.insertBefore(t,s.node.childNodes[s.offset]||null))),s=l=new Jn(t,0),o=!0}let u=this.view.observer.selectionRange;!o&&u.focusNode&&(In(s.node,s.offset,u.anchorNode,u.anchorOffset)&&In(l.node,l.offset,u.focusNode,u.focusOffset)||this.suppressWidgetCursorChange(u,a))||(this.view.observer.ignore((()=>{mr.android&&mr.chrome&&this.dom.contains(u.focusNode)&&eo(u.focusNode,this.dom)&&(this.dom.blur(),this.dom.focus({preventScroll:!0}));let t=kn(this.view.root);if(t)if(a.empty){if(mr.gecko){let t=Ki(s.node,s.offset);if(t&&3!=t){let e=(1==t?qn:Kn)(s.node,s.offset);e&&(s=new Jn(e.node,e.offset))}}t.collapse(s.node,s.offset),null!=a.bidiLevel&&void 0!==t.caretBidiLevel&&(t.caretBidiLevel=a.bidiLevel)}else if(t.extend){t.collapse(s.node,s.offset);try{t.extend(l.node,l.offset)}catch(Y_){}}else{let e=document.createRange();a.anchor>a.head&&([s,l]=[l,s]),e.setEnd(l.node,l.offset),e.setStart(s.node,s.offset),t.removeAllRanges(),t.addRange(e)}else;i&&this.view.root.activeElement==this.dom&&(this.dom.blur(),n&&n.focus())})),this.view.observer.setSelectionRange(s,l)),this.impreciseAnchor=s.precise?null:new Jn(u.anchorNode,u.anchorOffset),this.impreciseHead=l.precise?null:new Jn(u.focusNode,u.focusOffset)}suppressWidgetCursorChange(t,e){return this.hasComposition&&e.empty&&In(t.focusNode,t.focusOffset,t.anchorNode,t.anchorOffset)&&this.posFromDOM(t.focusNode,t.focusOffset)==e.head}enforceCursorAssoc(){if(this.hasComposition)return;let{view:t}=this,e=t.state.selection.main,n=kn(t.root),{anchorNode:r,anchorOffset:i}=t.observer.selectionRange;if(!n||!e.empty||!e.assoc||!n.modify)return;let o=Er.find(this,e.head);if(!o)return;let a=o.posAtStart;if(e.head==a||e.head==a+o.length)return;let s=this.coordsAt(e.head,-1),l=this.coordsAt(e.head,1);if(!s||!l||s.bottom>l.top)return;let u=this.domAtPos(e.head+e.assoc);n.collapse(u.node,u.offset),n.modify("move",e.assoc<0?"forward":"backward","lineboundary"),t.observer.readSelectionRange();let c=t.observer.selectionRange;t.docView.posFromDOM(c.anchorNode,c.anchorOffset)!=e.from&&n.collapse(r,i)}moveToLine(t){let e,n=this.dom;if(t.node!=n)return t;for(let r=t.offset;!e&&r<n.childNodes.length;r++){let t=er.get(n.childNodes[r]);t instanceof Er&&(e=t.domAtPos(0))}for(let r=t.offset-1;!e&&r>=0;r--){let t=er.get(n.childNodes[r]);t instanceof Er&&(e=t.domAtPos(t.length))}return e?new Jn(e.node,e.offset,!0):t}nearest(t){for(let e=t;e;){let t=er.get(e);if(t&&t.rootView==this)return t;e=e.parentNode}return null}posFromDOM(t,e){let n=this.nearest(t);if(!n)throw new RangeError("Trying to find position for a DOM position outside of the document");return n.localPosFromDOM(t,e)+n.posAtStart}domAtPos(t){let{i:e,off:n}=this.childCursor().findPos(t,-1);for(;e<this.children.length-1;){let t=this.children[e];if(n<t.length||t instanceof Er)break;e++,n=0}return this.children[e].domAtPos(n)}coordsAt(t,e){let n=null,r=0;for(let i=this.length,o=this.children.length-1;o>=0;o--){let a=this.children[o],s=i-a.breakAfter,l=s-a.length;if(s<t)break;if(l<=t&&(l<t||a.covers(-1))&&(s>t||a.covers(1))&&(!n||a instanceof Er&&!(n instanceof Er&&e>=0)))n=a,r=l;else if(n&&l==t&&s==t&&a instanceof Rr&&Math.abs(e)<2){if(a.deco.startSide<0)break;o&&(n=null)}i=l}return n?n.coordsAt(t-r,e):null}coordsForChar(t){let{i:e,off:n}=this.childPos(t,1),r=this.children[e];if(!(r instanceof Er))return null;while(r.children.length){let{i:t,off:e}=r.childPos(n,1);for(;;t++){if(t==r.children.length)return null;if((r=r.children[t]).length)break}n=e}if(!(r instanceof br))return null;let i=Et(r.text,n);if(i==n)return null;let o=Hn(r.dom,n,i).getClientRects();for(let a=0;a<o.length;a++){let t=o[a];if(a==o.length-1||t.top<t.bottom&&t.left<t.right)return t}return null}measureVisibleLineHeights(t){let e=[],{from:n,to:r}=t,i=this.view.contentDOM.clientWidth,o=i>Math.max(this.view.scrollDOM.clientWidth,this.minWidth)+1,a=-1,s=this.view.textDirection==Gr.LTR;for(let l=0,u=0;u<this.children.length;u++){let t=this.children[u],c=l+t.length;if(c>r)break;if(l>=n){let n=t.dom.getBoundingClientRect();if(e.push(n.height),o){let e=t.dom.lastChild,r=e?Pn(e):[];if(r.length){let t=r[r.length-1],e=s?t.right-n.left:n.right-t.left;e>a&&(a=e,this.minWidth=i,this.minWidthFrom=l,this.minWidthTo=c)}}}l=c+t.breakAfter}return e}textDirectionAt(t){let{i:e}=this.childPos(t,1);return"rtl"==getComputedStyle(this.children[e].dom).direction?Gr.RTL:Gr.LTR}measureTextSize(){for(let i of this.children)if(i instanceof Er){let t=i.measureTextSize();if(t)return t}let t,e,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 i=Pn(r.firstChild)[0];t=r.getBoundingClientRect().height,e=i?i.width/27:7,n=i?i.height:t,r.remove()})),{lineHeight:t,charWidth:e,textHeight:n}}childCursor(t=this.length){let e=this.children.length;return e&&(t-=this.children[--e].length),new rr(this.children,t,e)}computeBlockGapDeco(){let t=[],e=this.view.viewState;for(let n=0,r=0;;r++){let i=r==e.viewports.length?null:e.viewports[r],o=i?i.from-1:this.length;if(o>n){let r=(e.lineBlockAt(o).bottom-e.lineBlockAt(n).top)/this.view.scaleY;t.push(Nr.replace({widget:new Ui(r),block:!0,inclusive:!0,isBlockGap:!0}).range(n,o))}if(!i)break;n=i.to+1}return Nr.set(t)}updateDeco(){let t=1,e=this.view.state.facet(Ni).map((e=>{let n=this.dynamicDecorationMap[t++]="function"==typeof e;return n?e(this.view):e})),n=!1,r=this.view.state.facet(zi).map(((t,e)=>{let r="function"==typeof t;return r&&(n=!0),r?t(this.view):t}));r.length&&(this.dynamicDecorationMap[t++]=n,e.push(Ye.join(r))),this.decorations=[this.editContextFormatting,...e,this.computeBlockGapDeco(),this.view.viewState.lineGapDeco];while(t<this.decorations.length)this.dynamicDecorationMap[t++]=!1;return this.decorations}scrollIntoView(t){if(t.isSnapshot){let e=this.view.viewState.lineBlockAt(t.range.head);return this.view.scrollDOM.scrollTop=e.top-t.yMargin,void(this.view.scrollDOM.scrollLeft=t.xMargin)}for(let u of this.view.state.facet(Ai))try{if(u(this.view,t.range,t))return!0}catch(l){Ti(this.view.state,l,"scroll handler")}let e,{range:n}=t,r=this.coordsAt(n.head,n.empty?n.assoc:n.head>n.anchor?-1:1);if(!r)return;!n.empty&&(e=this.coordsAt(n.anchor,n.anchor>n.head?-1:1))&&(r={left:Math.min(r.left,e.left),top:Math.min(r.top,e.top),right:Math.max(r.right,e.right),bottom:Math.max(r.bottom,e.bottom)});let i=Vi(this.view),o={left:r.left-i.left,top:r.top-i.top,right:r.right+i.right,bottom:r.bottom+i.bottom},{offsetWidth:a,offsetHeight:s}=this.view.scrollDOM;Bn(this.view.scrollDOM,o,n.head<n.anchor?-1:1,t.x,t.y,Math.max(Math.min(t.xMargin,a),-a),Math.max(Math.min(t.yMargin,s),-s),this.view.textDirection==Gr.LTR)}}function Xi(t){return 1==t.node.nodeType&&t.node.firstChild&&(0==t.offset||"false"==t.node.childNodes[t.offset-1].contentEditable)&&(t.offset==t.node.childNodes.length||"false"==t.node.childNodes[t.offset].contentEditable)}class Ui extends Dr{constructor(t){super(),this.height=t}toDOM(){let t=document.createElement("div");return t.className="cm-gap",this.updateDOM(t),t}eq(t){return t.height==this.height}updateDOM(t){return t.style.height=this.height+"px",!0}get editable(){return!0}get estimatedHeight(){return this.height}ignoreEvent(){return!1}}function Yi(t,e){let n=t.observer.selectionRange;if(!n.focusNode)return null;let r=qn(n.focusNode,n.focusOffset),i=Kn(n.focusNode,n.focusOffset),o=r||i;if(i&&r&&i.node!=r.node){let e=er.get(i.node);if(!e||e instanceof br&&e.text!=i.node.nodeValue)o=i;else if(t.docView.lastCompositionAfterCursor){let t=er.get(r.node);!t||t instanceof br&&t.text!=r.node.nodeValue||(o=i)}}if(t.docView.lastCompositionAfterCursor=o!=r,!o)return null;let a=e-o.offset;return{from:a,to:a+o.node.nodeValue.length,node:o.node}}function qi(t,e,n){let r=Yi(t,n);if(!r)return null;let{node:i,from:o,to:a}=r,s=i.nodeValue;if(/[\n\r]/.test(s))return null;if(t.state.doc.sliceString(r.from,r.to)!=s)return null;let l=e.invertedDesc,u=new Hi(l.mapPos(o),l.mapPos(a),o,a),c=[];for(let h=i.parentNode;;h=h.parentNode){let e=er.get(h);if(e instanceof _r)c.push({node:h,deco:e.mark});else{if(e instanceof Er||"DIV"==h.nodeName&&h.parentNode==t.contentDOM)return{range:u,text:i,marks:c,line:h};if(h==t.contentDOM)return null;c.push({node:h,deco:new zr({inclusive:!0,attributes:$r(h),tagName:h.tagName.toLowerCase()})})}}}function Ki(t,e){return 1!=t.nodeType?0:(e&&"false"==t.childNodes[e-1].contentEditable?1:0)|(e<t.childNodes.length&&"false"==t.childNodes[e].contentEditable?2:0)}let Ji=class{constructor(){this.changes=[]}compareRange(t,e){Vr(t,e,this.changes)}comparePoint(t,e){Vr(t,e,this.changes)}};function to(t,e,n){let r=new Ji;return Ye.compare(t,e,n,r),r.changes}function eo(t,e){for(let n=t;n&&n!=e;n=n.assignedSlot||n.parentNode)if(1==n.nodeType&&"false"==n.contentEditable)return!0;return!1}function no(t,e){let n=!1;return e&&t.iterChangedRanges(((t,r)=>{t<e.to&&r>e.from&&(n=!0)})),n}function ro(t,e,n=1){let r=t.charCategorizer(e),i=t.doc.lineAt(e),o=e-i.from;if(0==i.length)return Kt.cursor(e);0==o?n=1:o==i.length&&(n=-1);let a=o,s=o;n<0?a=Et(i.text,o,!1):s=Et(i.text,o);let l=r(i.text.slice(a,s));while(a>0){let t=Et(i.text,a,!1);if(r(i.text.slice(t,a))!=l)break;a=t}while(s<i.length){let t=Et(i.text,s);if(r(i.text.slice(s,t))!=l)break;s=t}return Kt.range(a+i.from,s+i.from)}function io(t,e){return e.left>t?e.left-t:Math.max(0,t-e.right)}function oo(t,e){return e.top>t?e.top-t:Math.max(0,t-e.bottom)}function ao(t,e){return t.top<e.bottom-1&&t.bottom>e.top+1}function so(t,e){return e<t.top?{top:e,left:t.left,right:t.right,bottom:t.bottom}:t}function lo(t,e){return e>t.bottom?{top:t.top,left:t.left,right:t.right,bottom:e}:t}function uo(t,e,n){let r,i,o,a,s,l,u,c,h=!1;for(let f=t.firstChild;f;f=f.nextSibling){let t=Pn(f);for(let d=0;d<t.length;d++){let p=t[d];i&&ao(i,p)&&(p=so(lo(p,i.bottom),i.top));let g=io(e,p),v=oo(n,p);if(0==g&&0==v)return 3==f.nodeType?co(f,e,n):uo(f,e,n);if(!r||a>v||a==v&&o>g){r=f,i=p,o=g,a=v;let s=v?n<p.top?-1:1:g?e<p.left?-1:1:0;h=!s||(s>0?d<t.length-1:d>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&&ao(u,p)?u=lo(u,p.bottom):c&&ao(c,p)&&(c=so(c,p.top))}}if(u&&u.bottom>=n?(r=s,i=u):c&&c.top<=n&&(r=l,i=c),!r)return{node:t,offset:0};let d=Math.max(i.left,Math.min(i.right,e));if(3==r.nodeType)return co(r,d,n);if(h&&"false"!=r.contentEditable)return uo(r,d,n);let p=Array.prototype.indexOf.call(t.childNodes,r)+(e>=(i.left+i.right)/2?1:0);return{node:t,offset:p}}function co(t,e,n){let r=t.nodeValue.length,i=-1,o=1e9,a=0;for(let s=0;s<r;s++){let r=Hn(t,s,s+1).getClientRects();for(let l=0;l<r.length;l++){let u=r[l];if(u.top==u.bottom)continue;a||(a=e-u.left);let c=(u.top>n?u.top-n:n-u.bottom)-1;if(u.left-1<=e&&u.right+1>=e&&c<o){let n=e>=(u.left+u.right)/2,r=n;if(mr.chrome||mr.gecko){let e=Hn(t,s).getBoundingClientRect();e.left==u.right&&(r=!n)}if(c<=0)return{node:t,offset:s+(r?1:0)};i=s+(r?1:0),o=c}}}return{node:t,offset:i>-1?i:a>0?t.nodeValue.length:0}}function ho(t,e,n,r=-1){var i,o;let a,s=t.contentDOM.getBoundingClientRect(),l=s.top+t.viewState.paddingTop,{docHeight:u}=t.viewState,{x:c,y:h}=e,d=h-l;if(d<0)return 0;if(d>u)return t.state.doc.length;for(let _=t.viewState.heightOracle.textHeight/2,x=!1;;){if(a=t.elementAtHeight(d),a.type==Lr.Text)break;for(;;){if(d=r>0?a.bottom+_:a.top-_,d>=0&&d<=u)break;if(x)return n?null:0;x=!0,r=-r}}h=l+d;let p=a.from;if(p<t.viewport.from)return 0==t.viewport.from?0:n?null:po(t,s,a,c,h);if(p>t.viewport.to)return t.viewport.to==t.state.doc.length?t.state.doc.length:n?null:po(t,s,a,c,h);let f=t.dom.ownerDocument,g=t.root.elementFromPoint?t.root:f,v=g.elementFromPoint(c,h);v&&!t.contentDOM.contains(v)&&(v=null),v||(c=Math.max(s.left+1,Math.min(s.right-1,c)),v=g.elementFromPoint(c,h),v&&!t.contentDOM.contains(v)&&(v=null));let m,y=-1;if(v&&0!=(null===(i=t.docView.nearest(v))||void 0===i?void 0:i.isEditable))if(f.caretPositionFromPoint){let t=f.caretPositionFromPoint(c,h);t&&({offsetNode:m,offset:y}=t)}else if(f.caretRangeFromPoint){let e=f.caretRangeFromPoint(c,h);e&&(({startContainer:m,startOffset:y}=e),(!t.contentDOM.contains(m)||mr.safari&&fo(m,y,c)||mr.chrome&&go(m,y,c))&&(m=void 0))}if(!m||!t.docView.dom.contains(m)){let e=Er.find(t.docView,p);if(!e)return d>a.top+a.height/2?a.to:a.from;({node:m,offset:y}=uo(e.dom,c,h))}let b=t.docView.nearest(m);if(!b)return null;if(b.isWidget&&1==(null===(o=b.dom)||void 0===o?void 0:o.nodeType)){let t=b.dom.getBoundingClientRect();return e.y<t.top||e.y<=t.bottom&&e.x<=(t.left+t.right)/2?b.posAtStart:b.posAtEnd}return b.localPosFromDOM(m,y)+b.posAtStart}function po(t,e,n,r,i){let o=Math.round((r-e.left)*t.defaultCharacterWidth);if(t.lineWrapping&&n.height>1.5*t.defaultLineHeight){let e=t.viewState.heightOracle.textHeight,r=Math.floor((i-n.top-.5*(t.defaultLineHeight-e))/e);o+=r*t.viewState.heightOracle.lineLength}let a=t.state.sliceDoc(n.from,n.to);return n.from+hn(a,o,t.state.tabSize)}function fo(t,e,n){let r;if(3!=t.nodeType||e!=(r=t.nodeValue.length))return!1;for(let i=t.nextSibling;i;i=i.nextSibling)if(1!=i.nodeType||"BR"!=i.nodeName)return!1;return Hn(t,r-1,r).getBoundingClientRect().left>n}function go(t,e,n){if(0!=e)return!1;for(let i=t;;){let t=i.parentNode;if(!t||1!=t.nodeType||t.firstChild!=i)return!1;if(t.classList.contains("cm-line"))break;i=t}let r=1==t.nodeType?t.getBoundingClientRect():Hn(t,0,Math.max(t.nodeValue.length,1)).getBoundingClientRect();return n-r.left>5}function vo(t,e){let n=t.lineBlockAt(e);if(Array.isArray(n.type))for(let r of n.type)if(r.to>e||r.to==e&&(r.to==n.to||r.type==Lr.Text))return r;return n}function mo(t,e,n,r){let i=vo(t,e.head),o=r&&i.type==Lr.Text&&(t.lineWrapping||i.widgetLineBreaks)?t.coordsAtPos(e.assoc<0&&e.head>i.from?e.head-1:e.head):null;if(o){let e=t.dom.getBoundingClientRect(),r=t.textDirectionAt(i.from),a=t.posAtCoords({x:n==(r==Gr.LTR)?e.right-1:e.left+1,y:(o.top+o.bottom)/2});if(null!=a)return Kt.cursor(a,n?-1:1)}return Kt.cursor(n?i.to:i.from,n?-1:1)}function yo(t,e,n,r){let i=t.state.doc.lineAt(e.head),o=t.bidiSpans(i),a=t.textDirectionAt(i.from);for(let s=e,l=null;;){let e=fi(i,o,a,s,n),u=pi;if(!e){if(i.number==(n?t.state.doc.lines:1))return s;u="\n",i=t.state.doc.line(i.number+(n?1:-1)),o=t.bidiSpans(i),e=t.visualLineSide(i,!n)}if(l){if(!l(u))return s}else{if(!r)return e;l=r(u)}s=e}}function bo(t,e,n){let r=t.state.charCategorizer(e),i=r(n);return t=>{let e=r(t);return i==Be.Space&&(i=e),i==e}}function _o(t,e,n,r){let i=e.head,o=n?1:-1;if(i==(n?t.state.doc.length:0))return Kt.cursor(i,e.assoc);let a,s=e.goalColumn,l=t.contentDOM.getBoundingClientRect(),u=t.coordsAtPos(i,e.assoc||-1),c=t.documentTop;if(u)null==s&&(s=u.left-l.left),a=o<0?u.top:u.bottom;else{let e=t.viewState.lineBlockAt(i);null==s&&(s=Math.min(l.right-l.left,t.defaultCharacterWidth*(i-e.from))),a=(o<0?e.top:e.bottom)+c}let h=l.left+s,d=null!==r&&void 0!==r?r:t.viewState.heightOracle.textHeight>>1;for(let p=0;;p+=10){let e=a+(d+p)*o,n=ho(t,{x:h,y:e},!1,o);if(e<l.top||e>l.bottom||(o<0?n<i:n>i)){let r=t.docView.coordsForChar(n),i=!r||e<r.top?-1:1;return Kt.cursor(n,i,void 0,s)}}}function xo(t,e,n){for(;;){let r=0;for(let i of t)i.between(e-1,e+1,((t,i,o)=>{if(e>t&&e<i){let o=r||n||(e-t<i-e?-1:1);e=o<0?t:i,r=o}}));if(!r)return e}}function wo(t,e,n){let r=xo(t.state.facet(Bi).map((e=>e(t))),n.from,e.head>n.from?-1:1);return r==n.from?n:Kt.cursor(r,r<n.from?1:-1)}class Oo{setSelectionOrigin(t){this.lastSelectionOrigin=t,this.lastSelectionTime=Date.now()}constructor(t){this.view=t,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=t.hasFocus,mr.safari&&t.contentDOM.addEventListener("input",(()=>null)),mr.gecko&&la(t.contentDOM.ownerDocument)}handleEvent(t){Lo(this.view,t)&&!this.ignoreDuringComposition(t)&&("keydown"==t.type&&this.keydown(t)||this.runHandlers(t.type,t))}runHandlers(t,e){let n=this.handlers[t];if(n){for(let t of n.observers)t(this.view,e);for(let t of n.handlers){if(e.defaultPrevented)break;if(t(this.view,e)){e.preventDefault();break}}}}ensureHandlers(t){let e=Ao(t),n=this.handlers,r=this.view.contentDOM;for(let i in e)if("scroll"!=i){let t=!e[i].handlers.length,o=n[i];o&&t!=!o.handlers.length&&(r.removeEventListener(i,this.handleEvent),o=null),o||r.addEventListener(i,this.handleEvent,{passive:t})}for(let i in n)"scroll"==i||e[i]||r.removeEventListener(i,this.handleEvent);this.handlers=e}keydown(t){if(this.lastKeyCode=t.keyCode,this.lastKeyTime=Date.now(),9==t.keyCode&&this.tabFocusMode>-1&&(!this.tabFocusMode||Date.now()<=this.tabFocusMode))return!0;if(this.tabFocusMode>0&&27!=t.keyCode&&Mo.indexOf(t.keyCode)<0&&(this.tabFocusMode=-1),mr.android&&mr.chrome&&!t.synthetic&&(13==t.keyCode||8==t.keyCode))return this.view.observer.delayAndroidKey(t.key,t.keyCode),!0;let e;return!mr.ios||t.synthetic||t.altKey||t.metaKey||!((e=ko.find((e=>e.keyCode==t.keyCode)))&&!t.ctrlKey||Co.indexOf(t.key)>-1&&t.ctrlKey&&!t.shiftKey)?(229!=t.keyCode&&this.view.observer.forceFlush(),!1):(this.pendingIOSKey=e||t,setTimeout((()=>this.flushIOSKey()),250),!0)}flushIOSKey(t){let e=this.pendingIOSKey;return!!e&&(!("Enter"==e.key&&t&&t.from<t.to&&/^\S+$/.test(t.insert.toString()))&&(this.pendingIOSKey=void 0,Zn(this.view.contentDOM,e.key,e.keyCode,e instanceof KeyboardEvent?e:void 0)))}ignoreDuringComposition(t){return!!/^key/.test(t.type)&&(this.composing>0||!!(mr.safari&&!mr.ios&&this.compositionPendingKey&&Date.now()-this.compositionEndedAt<100)&&(this.compositionPendingKey=!1,!0))}startMouseSelection(t){this.mouseSelection&&this.mouseSelection.destroy(),this.mouseSelection=t}update(t){this.view.observer.update(t),this.mouseSelection&&this.mouseSelection.update(t),this.draggedContent&&t.docChanged&&(this.draggedContent=this.draggedContent.map(t.changes)),t.transactions.length&&(this.lastKeyCode=this.lastSelectionTime=0)}destroy(){this.mouseSelection&&this.mouseSelection.destroy()}}function So(t,e){return(n,r)=>{try{return e.call(t,r,n)}catch(i){Ti(n.state,i)}}}function Ao(t){let e=Object.create(null);function n(t){return e[t]||(e[t]={observers:[],handlers:[]})}for(let r of t){let t=r.spec;if(t&&t.domEventHandlers)for(let e in t.domEventHandlers){let i=t.domEventHandlers[e];i&&n(e).handlers.push(So(r.value,i))}if(t&&t.domEventObservers)for(let e in t.domEventObservers){let i=t.domEventObservers[e];i&&n(e).observers.push(So(r.value,i))}}for(let r in No)n(r).handlers.push(No[r]);for(let r in zo)n(r).observers.push(zo[r]);return e}const ko=[{key:"Backspace",keyCode:8,inputType:"deleteContentBackward"},{key:"Enter",keyCode:13,inputType:"insertParagraph"},{key:"Enter",keyCode:13,inputType:"insertLineBreak"},{key:"Delete",keyCode:46,inputType:"deleteContentForward"}],Co="dthko",Mo=[16,17,18,20,91,92,224,225],To=6;function Po(t){return.7*Math.max(0,t)+8}function Io(t,e){return Math.max(Math.abs(t.clientX-e.clientX),Math.abs(t.clientY-e.clientY))}class $o{constructor(t,e,n,r){this.view=t,this.startEvent=e,this.style=n,this.mustSelect=r,this.scrollSpeed={x:0,y:0},this.scrolling=-1,this.lastEvent=e,this.scrollParent=Fn(t.contentDOM),this.atoms=t.state.facet(Bi).map((e=>e(t)));let i=t.contentDOM.ownerDocument;i.addEventListener("mousemove",this.move=this.move.bind(this)),i.addEventListener("mouseup",this.up=this.up.bind(this)),this.extend=e.shiftKey,this.multiple=t.state.facet(Qe.allowMultipleSelections)&&Eo(t,e),this.dragging=!(!Do(t,e)||1!=qo(e))&&null}start(t){!1===this.dragging&&this.select(t)}move(t){var e;if(0==t.buttons)return this.destroy();if(this.dragging||null==this.dragging&&Io(this.startEvent,t)<10)return;this.select(this.lastEvent=t);let n=0,r=0,i=(null===(e=this.scrollParent)||void 0===e?void 0:e.getBoundingClientRect())||{left:0,top:0,right:this.view.win.innerWidth,bottom:this.view.win.innerHeight},o=Vi(this.view);t.clientX-o.left<=i.left+To?n=-Po(i.left-t.clientX):t.clientX+o.right>=i.right-To&&(n=Po(t.clientX-i.right)),t.clientY-o.top<=i.top+To?r=-Po(i.top-t.clientY):t.clientY+o.bottom>=i.bottom-To&&(r=Po(t.clientY-i.bottom)),this.setScrollSpeed(n,r)}up(t){null==this.dragging&&this.select(this.lastEvent),this.dragging||t.preventDefault(),this.destroy()}destroy(){this.setScrollSpeed(0,0);let t=this.view.contentDOM.ownerDocument;t.removeEventListener("mousemove",this.move),t.removeEventListener("mouseup",this.up),this.view.inputState.mouseSelection=this.view.inputState.draggedContent=null}setScrollSpeed(t,e){this.scrollSpeed={x:t,y:e},t||e?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(t){let e=null;for(let n=0;n<t.ranges.length;n++){let r=t.ranges[n],i=null;if(r.empty){let t=xo(this.atoms,r.from,0);t!=r.from&&(i=Kt.cursor(t,-1))}else{let t=xo(this.atoms,r.from,-1),e=xo(this.atoms,r.to,1);t==r.from&&e==r.to||(i=Kt.range(r.from==r.anchor?t:e,r.from==r.head?t:e))}i&&(e||(e=t.ranges.slice()),e[n]=i)}return e?Kt.create(e,t.mainIndex):t}select(t){let{view:e}=this,n=this.skipAtoms(this.style.get(t,this.extend,this.multiple));!this.mustSelect&&n.eq(e.state.selection,!1===this.dragging)||this.view.dispatch({selection:n,userEvent:"select.pointer"}),this.mustSelect=!1}update(t){t.transactions.some((t=>t.isUserEvent("input.type")))?this.destroy():this.style.update(t)&&setTimeout((()=>this.select(this.lastEvent)),20)}}function Eo(t,e){let n=t.state.facet(vi);return n.length?n[0](e):mr.mac?e.metaKey:e.ctrlKey}function Ro(t,e){let n=t.state.facet(mi);return n.length?n[0](e):mr.mac?!e.altKey:!e.ctrlKey}function Do(t,e){let{main:n}=t.state.selection;if(n.empty)return!1;let r=kn(t.root);if(!r||0==r.rangeCount)return!0;let i=r.getRangeAt(0).getClientRects();for(let o=0;o<i.length;o++){let t=i[o];if(t.left<=e.clientX&&t.right>=e.clientX&&t.top<=e.clientY&&t.bottom>=e.clientY)return!0}return!1}function Lo(t,e){if(!e.bubbles)return!0;if(e.defaultPrevented)return!1;for(let n,r=e.target;r!=t.contentDOM;r=r.parentNode)if(!r||11==r.nodeType||(n=er.get(r))&&n.ignoreEvent(e))return!1;return!0}const No=Object.create(null),zo=Object.create(null),Bo=mr.ie&&mr.ie_version<15||mr.ios&&mr.webkit_version<604;function Fo(t){let e=t.dom.parentNode;if(!e)return;let n=e.appendChild(document.createElement("textarea"));n.style.cssText="position: fixed; left: -10000px; top: 10px",n.focus(),setTimeout((()=>{t.focus(),n.remove(),Wo(t,n.value)}),50)}function Wo(t,e){let n,{state:r}=t,i=1,o=r.toText(e),a=o.lines==r.selection.ranges.length,s=null!=ra&&r.selection.ranges.every((t=>t.empty))&&ra==o.toString();if(s){let t=-1;n=r.changeByRange((n=>{let s=r.doc.lineAt(n.from);if(s.from==t)return{range:n};t=s.from;let l=r.toText((a?o.line(i++).text:e)+r.lineBreak);return{changes:{from:s.from,insert:l},range:Kt.cursor(n.from+l.length)}}))}else n=a?r.changeByRange((t=>{let e=o.line(i++);return{changes:{from:t.from,to:t.to,insert:e.text},range:Kt.cursor(t.from+e.length)}})):r.replaceSelection(o);t.dispatch(n,{userEvent:"input.paste",scrollIntoView:!0})}function jo(t,e,n,r){if(1==r)return Kt.cursor(e,n);if(2==r)return ro(t.state,e,n);{let n=Er.find(t.docView,e),r=t.state.doc.lineAt(n?n.posAtEnd:e),i=n?n.posAtStart:r.from,o=n?n.posAtEnd:r.to;return o<t.state.doc.length&&o==r.to&&o++,Kt.range(i,o)}}zo.scroll=t=>{t.inputState.lastScrollTop=t.scrollDOM.scrollTop,t.inputState.lastScrollLeft=t.scrollDOM.scrollLeft},No.keydown=(t,e)=>(t.inputState.setSelectionOrigin("select"),27==e.keyCode&&0!=t.inputState.tabFocusMode&&(t.inputState.tabFocusMode=Date.now()+2e3),!1),zo.touchstart=(t,e)=>{t.inputState.lastTouchTime=Date.now(),t.inputState.setSelectionOrigin("select.pointer")},zo.touchmove=t=>{t.inputState.setSelectionOrigin("select.pointer")},No.mousedown=(t,e)=>{if(t.observer.flush(),t.inputState.lastTouchTime>Date.now()-2e3)return!1;let n=null;for(let r of t.state.facet(yi))if(n=r(t,e),n)break;if(n||0!=e.button||(n=Ko(t,e)),n){let r=!t.hasFocus;t.inputState.startMouseSelection(new $o(t,e,n,r)),r&&t.observer.ignore((()=>{Qn(t.contentDOM);let e=t.root.activeElement;e&&!e.contains(t.contentDOM)&&e.blur()}));let i=t.inputState.mouseSelection;if(i)return i.start(e),!1===i.dragging}return!1};let Vo=(t,e)=>t>=e.top&&t<=e.bottom,Qo=(t,e,n)=>Vo(e,n)&&t>=n.left&&t<=n.right;function Ho(t,e,n,r){let i=Er.find(t.docView,e);if(!i)return 1;let o=e-i.posAtStart;if(0==o)return 1;if(o==i.length)return-1;let a=i.coordsAt(o,-1);if(a&&Qo(n,r,a))return-1;let s=i.coordsAt(o,1);return s&&Qo(n,r,s)?1:a&&Vo(r,a)?-1:1}function Zo(t,e){let n=t.posAtCoords({x:e.clientX,y:e.clientY},!1);return{pos:n,bias:Ho(t,n,e.clientX,e.clientY)}}const Go=mr.ie&&mr.ie_version<=11;let Xo=null,Uo=0,Yo=0;function qo(t){if(!Go)return t.detail;let e=Xo,n=Yo;return Xo=t,Yo=Date.now(),Uo=!e||n>Date.now()-400&&Math.abs(e.clientX-t.clientX)<2&&Math.abs(e.clientY-t.clientY)<2?(Uo+1)%3:1}function Ko(t,e){let n=Zo(t,e),r=qo(e),i=t.state.selection;return{update(t){t.docChanged&&(n.pos=t.changes.mapPos(n.pos),i=i.map(t.changes))},get(e,o,a){let s,l=Zo(t,e),u=jo(t,l.pos,l.bias,r);if(n.pos!=l.pos&&!o){let e=jo(t,n.pos,n.bias,r),i=Math.min(e.from,u.from),o=Math.max(e.to,u.to);u=i<u.from?Kt.range(i,o):Kt.range(o,i)}return o?i.replaceRange(i.main.extend(u.from,u.to)):a&&1==r&&i.ranges.length>1&&(s=Jo(i,l.pos))?s:a?i.addRange(u):Kt.create([u])}}}function Jo(t,e){for(let n=0;n<t.ranges.length;n++){let{from:r,to:i}=t.ranges[n];if(r<=e&&i>=e)return Kt.create(t.ranges.slice(0,n).concat(t.ranges.slice(n+1)),t.mainIndex==n?0:t.mainIndex-(t.mainIndex>n?1:0))}return null}function ta(t,e,n,r){if(!n)return;let i=t.posAtCoords({x:e.clientX,y:e.clientY},!1),{draggedContent:o}=t.inputState,a=r&&o&&Ro(t,e)?{from:o.from,to:o.to}:null,s={from:i,insert:n},l=t.state.changes(a?[a,s]:s);t.focus(),t.dispatch({changes:l,selection:{anchor:l.mapPos(i,-1),head:l.mapPos(i,1)},userEvent:a?"move.drop":"input.drop"}),t.inputState.draggedContent=null}function ea(t,e){let n=t.dom.parentNode;if(!n)return;let r=n.appendChild(document.createElement("textarea"));r.style.cssText="position: fixed; left: -10000px; top: 10px",r.value=e,r.focus(),r.selectionEnd=e.length,r.selectionStart=0,setTimeout((()=>{r.remove(),t.focus()}),50)}function na(t){let e=[],n=[],r=!1;for(let i of t.selection.ranges)i.empty||(e.push(t.sliceDoc(i.from,i.to)),n.push(i));if(!e.length){let i=-1;for(let{from:r}of t.selection.ranges){let o=t.doc.lineAt(r);o.number>i&&(e.push(o.text),n.push({from:o.from,to:Math.min(t.doc.length,o.to+1)})),i=o.number}r=!0}return{text:e.join(t.lineBreak),ranges:n,linewise:r}}No.dragstart=(t,e)=>{let{selection:{main:n}}=t.state;if(e.target.draggable){let r=t.docView.nearest(e.target);if(r&&r.isWidget){let t=r.posAtStart,e=t+r.length;(t>=n.to||e<=n.from)&&(n=Kt.range(t,e))}}let{inputState:r}=t;return r.mouseSelection&&(r.mouseSelection.dragging=!0),r.draggedContent=n,e.dataTransfer&&(e.dataTransfer.setData("Text",t.state.sliceDoc(n.from,n.to)),e.dataTransfer.effectAllowed="copyMove"),!1},No.dragend=t=>(t.inputState.draggedContent=null,!1),No.drop=(t,e)=>{if(!e.dataTransfer)return!1;if(t.state.readOnly)return!0;let n=e.dataTransfer.files;if(n&&n.length){let r=Array(n.length),i=0,o=()=>{++i==n.length&&ta(t,e,r.filter((t=>null!=t)).join(t.state.lineBreak),!1)};for(let t=0;t<n.length;t++){let e=new FileReader;e.onerror=o,e.onload=()=>{/[\x00-\x08\x0e-\x1f]{2}/.test(e.result)||(r[t]=e.result),o()},e.readAsText(n[t])}return!0}{let n=e.dataTransfer.getData("Text");if(n)return ta(t,e,n,!0),!0}return!1},No.paste=(t,e)=>{if(t.state.readOnly)return!0;t.observer.flush();let n=Bo?null:e.clipboardData;return n?(Wo(t,n.getData("text/plain")||n.getData("text/uri-list")),!0):(Fo(t),!1)};let ra=null;No.copy=No.cut=(t,e)=>{let{text:n,ranges:r,linewise:i}=na(t.state);if(!n&&!i)return!1;ra=i?n:null,"cut"!=e.type||t.state.readOnly||t.dispatch({changes:r,scrollIntoView:!0,userEvent:"delete.cut"});let o=Bo?null:e.clipboardData;return o?(o.clearData(),o.setData("text/plain",n),!0):(ea(t,n),!1)};const ia=ke.define();function oa(t,e){let n=[];for(let r of t.facet(wi)){let i=r(t,e);i&&n.push(i)}return n?t.update({effects:n,annotations:ia.of(!0)}):null}function aa(t){setTimeout((()=>{let e=t.hasFocus;if(e!=t.inputState.notifiedFocused){let n=oa(t.state,e);n?t.dispatch(n):t.update([])}}),10)}zo.focus=t=>{t.inputState.lastFocusTime=Date.now(),t.scrollDOM.scrollTop||!t.inputState.lastScrollTop&&!t.inputState.lastScrollLeft||(t.scrollDOM.scrollTop=t.inputState.lastScrollTop,t.scrollDOM.scrollLeft=t.inputState.lastScrollLeft),aa(t)},zo.blur=t=>{t.observer.clearSelectionRange(),aa(t)},zo.compositionstart=zo.compositionupdate=t=>{t.observer.editContext||(null==t.inputState.compositionFirstChange&&(t.inputState.compositionFirstChange=!0),t.inputState.composing<0&&(t.inputState.composing=0))},zo.compositionend=t=>{t.observer.editContext||(t.inputState.composing=-1,t.inputState.compositionEndedAt=Date.now(),t.inputState.compositionPendingKey=!0,t.inputState.compositionPendingChange=t.observer.pendingRecords().length>0,t.inputState.compositionFirstChange=null,mr.chrome&&mr.android?t.observer.flushSoon():t.inputState.compositionPendingChange?Promise.resolve().then((()=>t.observer.flush())):setTimeout((()=>{t.inputState.composing<0&&t.docView.hasComposition&&t.update([])}),50))},zo.contextmenu=t=>{t.inputState.lastContextMenu=Date.now()},No.beforeinput=(t,e)=>{var n;let r;if(mr.chrome&&mr.android&&(r=ko.find((t=>t.inputType==e.inputType)))&&(t.observer.delayAndroidKey(r.key,r.keyCode),"Backspace"==r.key||"Delete"==r.key)){let e=(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)>e+10&&t.hasFocus&&(t.contentDOM.blur(),t.focus())}),100)}return mr.ios&&"deleteContentForward"==e.inputType&&t.observer.flushSoon(),mr.safari&&"insertText"==e.inputType&&t.inputState.composing>=0&&setTimeout((()=>zo.compositionend(t,e)),20),!1};const sa=new Set;function la(t){sa.has(t)||(sa.add(t),t.addEventListener("copy",(()=>{})),t.addEventListener("cut",(()=>{})))}const ua=["pre-wrap","normal","pre-line","break-spaces"];class ca{constructor(t){this.lineWrapping=t,this.doc=yt.empty,this.heightSamples={},this.lineHeight=14,this.charWidth=7,this.textHeight=14,this.lineLength=30,this.heightChanged=!1}heightForGap(t,e){let n=this.doc.lineAt(e).number-this.doc.lineAt(t).number+1;return this.lineWrapping&&(n+=Math.max(0,Math.ceil((e-t-n*this.lineLength*.5)/this.lineLength))),this.lineHeight*n}heightForLine(t){if(!this.lineWrapping)return this.lineHeight;let e=1+Math.max(0,Math.ceil((t-this.lineLength)/(this.lineLength-5)));return e*this.lineHeight}setDoc(t){return this.doc=t,this}mustRefreshForWrapping(t){return ua.indexOf(t)>-1!=this.lineWrapping}mustRefreshForHeights(t){let e=!1;for(let n=0;n<t.length;n++){let r=t[n];r<0?n++:this.heightSamples[Math.floor(10*r)]||(e=!0,this.heightSamples[Math.floor(10*r)]=!0)}return e}refresh(t,e,n,r,i,o){let a=ua.indexOf(t)>-1,s=Math.round(e)!=Math.round(this.lineHeight)||this.lineWrapping!=a;if(this.lineWrapping=a,this.lineHeight=e,this.charWidth=n,this.textHeight=r,this.lineLength=i,s){this.heightSamples={};for(let t=0;t<o.length;t++){let e=o[t];e<0?t++:this.heightSamples[Math.floor(10*e)]=!0}}return s}}class ha{constructor(t,e){this.from=t,this.heights=e,this.index=0}get more(){return this.index<this.heights.length}}class da{constructor(t,e,n,r,i){this.from=t,this.length=e,this.top=n,this.height=r,this._content=i}get type(){return"number"==typeof this._content?Lr.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 Fr?this._content.widget:null}get widgetLineBreaks(){return"number"==typeof this._content?this._content:0}join(t){let e=(Array.isArray(this._content)?this._content:[this]).concat(Array.isArray(t._content)?t._content:[t]);return new da(this.from,this.length+t.length,this.top,this.height+t.height,e)}}var pa=function(t){return t[t["ByPos"]=0]="ByPos",t[t["ByHeight"]=1]="ByHeight",t[t["ByPosNoHeight"]=2]="ByPosNoHeight",t}(pa||(pa={}));const fa=.001;class ga{constructor(t,e,n=2){this.length=t,this.height=e,this.flags=n}get outdated(){return(2&this.flags)>0}set outdated(t){this.flags=(t?2:0)|-3&this.flags}setHeight(t,e){this.height!=e&&(Math.abs(this.height-e)>fa&&(t.heightChanged=!0),this.height=e)}replace(t,e,n){return ga.of(n)}decomposeLeft(t,e){e.push(this)}decomposeRight(t,e){e.push(this)}applyChanges(t,e,n,r){let i=this,o=n.doc;for(let a=r.length-1;a>=0;a--){let{fromA:s,toA:l,fromB:u,toB:c}=r[a],h=i.lineAt(s,pa.ByPosNoHeight,n.setDoc(e),0,0),d=h.to>=l?h:i.lineAt(l,pa.ByPosNoHeight,n,0,0);c+=d.to-l,l=d.to;while(a>0&&h.from<=r[a-1].toA)s=r[a-1].fromA,u=r[a-1].fromB,a--,s<h.from&&(h=i.lineAt(s,pa.ByPosNoHeight,n,0,0));u+=h.from-s,s=h.from;let p=wa.build(n.setDoc(o),t,u,c);i=i.replace(s,l,p)}return i.updateHeight(n,0)}static empty(){return new ma(0,0)}static of(t){if(1==t.length)return t[0];let e=0,n=t.length,r=0,i=0;for(;;)if(e==n)if(r>2*i){let i=t[e-1];i.break?t.splice(--e,1,i.left,null,i.right):t.splice(--e,1,i.left,i.right),n+=1+i.break,r-=i.size}else{if(!(i>2*r))break;{let e=t[n];e.break?t.splice(n,1,e.left,null,e.right):t.splice(n,1,e.left,e.right),n+=2+e.break,i-=e.size}}else if(r<i){let n=t[e++];n&&(r+=n.size)}else{let e=t[--n];e&&(i+=e.size)}let o=0;return null==t[e-1]?(o=1,e--):null==t[e]&&(o=1,n++),new ba(ga.of(t.slice(0,e)),o,ga.of(t.slice(n)))}}ga.prototype.size=1;class va extends ga{constructor(t,e,n){super(t,e),this.deco=n}blockAt(t,e,n,r){return new da(r,this.length,n,this.height,this.deco||0)}lineAt(t,e,n,r,i){return this.blockAt(0,n,r,i)}forEachLine(t,e,n,r,i,o){t<=i+this.length&&e>=i&&o(this.blockAt(0,n,r,i))}updateHeight(t,e=0,n=!1,r){return r&&r.from<=e&&r.more&&this.setHeight(t,r.heights[r.index++]),this.outdated=!1,this}toString(){return`block(${this.length})`}}class ma extends va{constructor(t,e){super(t,e,null),this.collapsed=0,this.widgetHeight=0,this.breaks=0}blockAt(t,e,n,r){return new da(r,this.length,n,this.height,this.breaks)}replace(t,e,n){let r=n[0];return 1==n.length&&(r instanceof ma||r instanceof ya&&4&r.flags)&&Math.abs(this.length-r.length)<10?(r instanceof ya?r=new ma(r.length,this.height):r.height=this.height,this.outdated||(r.outdated=!1),r):ga.of(n)}updateHeight(t,e=0,n=!1,r){return r&&r.from<=e&&r.more?this.setHeight(t,r.heights[r.index++]):(n||this.outdated)&&this.setHeight(t,Math.max(this.widgetHeight,t.heightForLine(this.length-this.collapsed))+this.breaks*t.lineHeight),this.outdated=!1,this}toString(){return`line(${this.length}${this.collapsed?-this.collapsed:""}${this.widgetHeight?":"+this.widgetHeight:""})`}}class ya extends ga{constructor(t){super(t,0)}heightMetrics(t,e){let n,r=t.doc.lineAt(e).number,i=t.doc.lineAt(e+this.length).number,o=i-r+1,a=0;if(t.lineWrapping){let e=Math.min(this.height,t.lineHeight*o);n=e/o,this.length>o+1&&(a=(this.height-e)/(this.length-o-1))}else n=this.height/o;return{firstLine:r,lastLine:i,perLine:n,perChar:a}}blockAt(t,e,n,r){let{firstLine:i,lastLine:o,perLine:a,perChar:s}=this.heightMetrics(e,r);if(e.lineWrapping){let i=r+(t<e.lineHeight?0:Math.round(Math.max(0,Math.min(1,(t-n)/this.height))*this.length)),o=e.doc.lineAt(i),l=a+o.length*s,u=Math.max(n,t-l/2);return new da(o.from,o.length,u,l,0)}{let r=Math.max(0,Math.min(o-i,Math.floor((t-n)/a))),{from:s,length:l}=e.doc.line(i+r);return new da(s,l,n+a*r,a,0)}}lineAt(t,e,n,r,i){if(e==pa.ByHeight)return this.blockAt(t,n,r,i);if(e==pa.ByPosNoHeight){let{from:e,to:r}=n.doc.lineAt(t);return new da(e,r-e,0,0,0)}let{firstLine:o,perLine:a,perChar:s}=this.heightMetrics(n,i),l=n.doc.lineAt(t),u=a+l.length*s,c=l.number-o,h=r+a*c+s*(l.from-i-c);return new da(l.from,l.length,Math.max(r,Math.min(h,r+this.height-u)),u,0)}forEachLine(t,e,n,r,i,o){t=Math.max(t,i),e=Math.min(e,i+this.length);let{firstLine:a,perLine:s,perChar:l}=this.heightMetrics(n,i);for(let u=t,c=r;u<=e;){let e=n.doc.lineAt(u);if(u==t){let n=e.number-a;c+=s*n+l*(t-i-n)}let r=s+l*e.length;o(new da(e.from,e.length,c,r,0)),c+=r,u=e.to+1}}replace(t,e,n){let r=this.length-e;if(r>0){let t=n[n.length-1];t instanceof ya?n[n.length-1]=new ya(t.length+r):n.push(null,new ya(r-1))}if(t>0){let e=n[0];e instanceof ya?n[0]=new ya(t+e.length):n.unshift(new ya(t-1),null)}return ga.of(n)}decomposeLeft(t,e){e.push(new ya(t-1),null)}decomposeRight(t,e){e.push(null,new ya(this.length-t-1))}updateHeight(t,e=0,n=!1,r){let i=e+this.length;if(r&&r.from<=e+this.length&&r.more){let n=[],o=Math.max(e,r.from),a=-1;r.from>e&&n.push(new ya(r.from-e-1).updateHeight(t,e));while(o<=i&&r.more){let e=t.doc.lineAt(o).length;n.length&&n.push(null);let i=r.heights[r.index++];-1==a?a=i:Math.abs(i-a)>=fa&&(a=-2);let s=new ma(e,i);s.outdated=!1,n.push(s),o+=e+1}o<=i&&n.push(null,new ya(i-o).updateHeight(t,o));let s=ga.of(n);return(a<0||Math.abs(s.height-this.height)>=fa||Math.abs(a-this.heightMetrics(t,e).perLine)>=fa)&&(t.heightChanged=!0),s}return(n||this.outdated)&&(this.setHeight(t,t.heightForGap(e,e+this.length)),this.outdated=!1),this}toString(){return`gap(${this.length})`}}class ba extends ga{constructor(t,e,n){super(t.length+e+n.length,t.height+n.height,e|(t.outdated||n.outdated?2:0)),this.left=t,this.right=n,this.size=t.size+n.size}get break(){return 1&this.flags}blockAt(t,e,n,r){let i=n+this.left.height;return t<i?this.left.blockAt(t,e,n,r):this.right.blockAt(t,e,i,r+this.left.length+this.break)}lineAt(t,e,n,r,i){let o=r+this.left.height,a=i+this.left.length+this.break,s=e==pa.ByHeight?t<o:t<a,l=s?this.left.lineAt(t,e,n,r,i):this.right.lineAt(t,e,n,o,a);if(this.break||(s?l.to<a:l.from>a))return l;let u=e==pa.ByPosNoHeight?pa.ByPosNoHeight:pa.ByPos;return s?l.join(this.right.lineAt(a,u,n,o,a)):this.left.lineAt(a,u,n,r,i).join(l)}forEachLine(t,e,n,r,i,o){let a=r+this.left.height,s=i+this.left.length+this.break;if(this.break)t<s&&this.left.forEachLine(t,e,n,r,i,o),e>=s&&this.right.forEachLine(t,e,n,a,s,o);else{let l=this.lineAt(s,pa.ByPos,n,r,i);t<l.from&&this.left.forEachLine(t,l.from-1,n,r,i,o),l.to>=t&&l.from<=e&&o(l),e>l.to&&this.right.forEachLine(l.to+1,e,n,a,s,o)}}replace(t,e,n){let r=this.left.length+this.break;if(e<r)return this.balanced(this.left.replace(t,e,n),this.right);if(t>this.left.length)return this.balanced(this.left,this.right.replace(t-r,e-r,n));let i=[];t>0&&this.decomposeLeft(t,i);let o=i.length;for(let a of n)i.push(a);if(t>0&&_a(i,o-1),e<this.length){let t=i.length;this.decomposeRight(e,i),_a(i,t)}return ga.of(i)}decomposeLeft(t,e){let n=this.left.length;if(t<=n)return this.left.decomposeLeft(t,e);e.push(this.left),this.break&&(n++,t>=n&&e.push(null)),t>n&&this.right.decomposeLeft(t-n,e)}decomposeRight(t,e){let n=this.left.length,r=n+this.break;if(t>=r)return this.right.decomposeRight(t-r,e);t<n&&this.left.decomposeRight(t,e),this.break&&t<r&&e.push(null),e.push(this.right)}balanced(t,e){return t.size>2*e.size||e.size>2*t.size?ga.of(this.break?[t,null,e]:[t,e]):(this.left=t,this.right=e,this.height=t.height+e.height,this.outdated=t.outdated||e.outdated,this.size=t.size+e.size,this.length=t.length+this.break+e.length,this)}updateHeight(t,e=0,n=!1,r){let{left:i,right:o}=this,a=e+i.length+this.break,s=null;return r&&r.from<=e+i.length&&r.more?s=i=i.updateHeight(t,e,n,r):i.updateHeight(t,e,n),r&&r.from<=a+o.length&&r.more?s=o=o.updateHeight(t,a,n,r):o.updateHeight(t,a,n),s?this.balanced(i,o):(this.height=this.left.height+this.right.height,this.outdated=!1,this)}toString(){return this.left+(this.break?" ":"-")+this.right}}function _a(t,e){let n,r;null==t[e]&&(n=t[e-1])instanceof ya&&(r=t[e+1])instanceof ya&&t.splice(e-1,3,new ya(n.length+1+r.length))}const xa=5;class wa{constructor(t,e){this.pos=t,this.oracle=e,this.nodes=[],this.lineStart=-1,this.lineEnd=-1,this.covering=null,this.writtenTo=t}get isCovered(){return this.covering&&this.nodes[this.nodes.length-1]==this.covering}span(t,e){if(this.lineStart>-1){let t=Math.min(e,this.lineEnd),n=this.nodes[this.nodes.length-1];n instanceof ma?n.length+=t-this.pos:(t>this.pos||!this.isCovered)&&this.nodes.push(new ma(t-this.pos,-1)),this.writtenTo=t,e>t&&(this.nodes.push(null),this.writtenTo++,this.lineStart=-1)}this.pos=e}point(t,e,n){if(t<e||n.heightRelevant){let r=n.widget?n.widget.estimatedHeight:0,i=n.widget?n.widget.lineBreaks:0;r<0&&(r=this.oracle.lineHeight);let o=e-t;n.block?this.addBlock(new va(o,r,n)):(o||i||r>=xa)&&this.addLineDeco(r,i,o)}else e>t&&this.span(t,e);this.lineEnd>-1&&this.lineEnd<this.pos&&(this.lineEnd=this.oracle.doc.lineAt(this.pos).to)}enterLine(){if(this.lineStart>-1)return;let{from:t,to:e}=this.oracle.doc.lineAt(this.pos);this.lineStart=t,this.lineEnd=e,this.writtenTo<t&&((this.writtenTo<t-1||null==this.nodes[this.nodes.length-1])&&this.nodes.push(this.blankContent(this.writtenTo,t-1)),this.nodes.push(null)),this.pos>t&&this.nodes.push(new ma(this.pos-t,-1)),this.writtenTo=this.pos}blankContent(t,e){let n=new ya(e-t);return this.oracle.doc.lineAt(t).to==e&&(n.flags|=4),n}ensureLine(){this.enterLine();let t=this.nodes.length?this.nodes[this.nodes.length-1]:null;if(t instanceof ma)return t;let e=new ma(0,-1);return this.nodes.push(e),e}addBlock(t){this.enterLine();let e=t.deco;e&&e.startSide>0&&!this.isCovered&&this.ensureLine(),this.nodes.push(t),this.writtenTo=this.pos=this.pos+t.length,e&&e.endSide>0&&(this.covering=t)}addLineDeco(t,e,n){let r=this.ensureLine();r.length+=n,r.collapsed+=n,r.widgetHeight=Math.max(r.widgetHeight,t),r.breaks+=e,this.writtenTo=this.pos=this.pos+n}finish(t){let e=0==this.nodes.length?null:this.nodes[this.nodes.length-1];!(this.lineStart>-1)||e instanceof ma||this.isCovered?(this.writtenTo<this.pos||null==e)&&this.nodes.push(this.blankContent(this.writtenTo,this.pos)):this.nodes.push(new ma(0,-1));let n=t;for(let r of this.nodes)r instanceof ma&&r.updateHeight(this.oracle,n),n+=r?r.length:1;return this.nodes}static build(t,e,n,r){let i=new wa(n,t);return Ye.spans(e,n,r,i,0),i.finish(n)}}function Oa(t,e,n){let r=new Sa;return Ye.compare(t,e,n,r,0),r.changes}class Sa{constructor(){this.changes=[]}compareRange(){}comparePoint(t,e,n,r){(t<e||n&&n.heightRelevant||r&&r.heightRelevant)&&Vr(t,e,this.changes,5)}}function Aa(t,e){let n=t.getBoundingClientRect(),r=t.ownerDocument,i=r.defaultView||window,o=Math.max(0,n.left),a=Math.min(i.innerWidth,n.right),s=Math.max(0,n.top),l=Math.min(i.innerHeight,n.bottom);for(let u=t.parentNode;u&&u!=r.body;)if(1==u.nodeType){let e=u,n=window.getComputedStyle(e);if((e.scrollHeight>e.clientHeight||e.scrollWidth>e.clientWidth)&&"visible"!=n.overflow){let n=e.getBoundingClientRect();o=Math.max(o,n.left),a=Math.min(a,n.right),s=Math.max(s,n.top),l=u==t.parentNode?n.bottom:Math.min(l,n.bottom)}u="absolute"==n.position||"fixed"==n.position?e.offsetParent:e.parentNode}else{if(11!=u.nodeType)break;u=u.host}return{left:o-n.left,right:Math.max(o,a)-n.left,top:s-(n.top+e),bottom:Math.max(s,l)-(n.top+e)}}function ka(t,e){let n=t.getBoundingClientRect();return{left:0,right:n.right-n.left,top:e,bottom:n.bottom-(n.top+e)}}class Ca{constructor(t,e,n){this.from=t,this.to=e,this.size=n}static same(t,e){if(t.length!=e.length)return!1;for(let n=0;n<t.length;n++){let r=t[n],i=e[n];if(r.from!=i.from||r.to!=i.to||r.size!=i.size)return!1}return!0}draw(t,e){return Nr.replace({widget:new Ma(this.size*(e?t.scaleY:t.scaleX),e)}).range(this.from,this.to)}}class Ma extends Dr{constructor(t,e){super(),this.size=t,this.vertical=e}eq(t){return t.size==this.size&&t.vertical==this.vertical}toDOM(){let t=document.createElement("div");return this.vertical?t.style.height=this.size+"px":(t.style.width=this.size+"px",t.style.height="2px",t.style.display="inline-block"),t}get estimatedHeight(){return this.vertical?this.size:-1}}class Ta{constructor(t){this.state=t,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=Da,this.scrollTarget=null,this.printing=!1,this.mustMeasureContent=!0,this.defaultTextDirection=Gr.LTR,this.visibleRanges=[],this.mustEnforceCursorAssoc=!1;let e=t.facet(Li).some((t=>"function"!=typeof t&&"cm-lineWrapping"==t.class));this.heightOracle=new ca(e),this.stateDeco=t.facet(Ni).filter((t=>"function"!=typeof t)),this.heightMap=ga.empty().applyChanges(this.stateDeco,yt.empty,this.heightOracle.setDoc(t.doc),[new Hi(0,0,0,t.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=Nr.set(this.lineGaps.map((t=>t.draw(this,!1)))),this.computeVisibleRanges()}updateForViewport(){let t=[this.viewport],{main:e}=this.state.selection;for(let n=0;n<=1;n++){let r=n?e.head:e.anchor;if(!t.some((({from:t,to:e})=>r>=t&&r<=e))){let{from:e,to:n}=this.lineBlockAt(r);t.push(new Pa(e,n))}}return this.viewports=t.sort(((t,e)=>t.from-e.from)),this.updateScaler()}updateScaler(){let t=this.scaler;return this.scaler=this.heightMap.height<=7e6?Da:new La(this.heightOracle,this.heightMap,this.viewports),t.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,(t=>{this.viewportLines.push(Na(t,this.scaler))}))}update(t,e=null){this.state=t.state;let n=this.stateDeco;this.stateDeco=this.state.facet(Ni).filter((t=>"function"!=typeof t));let r=t.changedRanges,i=Hi.extendWithRanges(r,Oa(n,this.stateDeco,t?t.changes:Qt.empty(this.state.doc.length))),o=this.heightMap.height,a=this.scrolledToBottom?null:this.scrollAnchorAt(this.scrollTop);this.heightMap=this.heightMap.applyChanges(this.stateDeco,t.startState.doc,this.heightOracle.setDoc(this.state.doc),i),this.heightMap.height!=o&&(t.flags|=2),a?(this.scrollAnchorPos=t.changes.mapPos(a.from,-1),this.scrollAnchorHeight=a.top):(this.scrollAnchorPos=-1,this.scrollAnchorHeight=this.heightMap.height);let s=i.length?this.mapViewport(this.viewport,t.changes):this.viewport;(e&&(e.range.head<s.from||e.range.head>s.to)||!this.viewportIsAppropriate(s))&&(s=this.getViewport(0,e));let l=s.from!=this.viewport.from||s.to!=this.viewport.to;this.viewport=s,t.flags|=this.updateForViewport(),(l||!t.changes.empty||2&t.flags)&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(this.mapLineGaps(this.lineGaps,t.changes))),t.flags|=this.computeVisibleRanges(),e&&(this.scrollTarget=e),!this.mustEnforceCursorAssoc&&t.selectionSet&&t.view.lineWrapping&&t.state.selection.main.empty&&t.state.selection.main.assoc&&!t.state.facet(Si)&&(this.mustEnforceCursorAssoc=!0)}measure(t){let e=t.contentDOM,n=window.getComputedStyle(e),r=this.heightOracle,i=n.whiteSpace;this.defaultTextDirection="rtl"==n.direction?Gr.RTL:Gr.LTR;let o=this.heightOracle.mustRefreshForWrapping(i),a=e.getBoundingClientRect(),s=o||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:t,scaleY:n}=zn(e,a);(t>.005&&Math.abs(this.scaleX-t)>.005||n>.005&&Math.abs(this.scaleY-n)>.005)&&(this.scaleX=t,this.scaleY=n,l|=8,o=s=!0)}let c=(parseInt(n.paddingTop)||0)*this.scaleY,h=(parseInt(n.paddingBottom)||0)*this.scaleY;this.paddingTop==c&&this.paddingBottom==h||(this.paddingTop=c,this.paddingBottom=h,l|=10),this.editorWidth!=t.scrollDOM.clientWidth&&(r.lineWrapping&&(s=!0),this.editorWidth=t.scrollDOM.clientWidth,l|=8);let d=t.scrollDOM.scrollTop*this.scaleY;this.scrollTop!=d&&(this.scrollAnchorHeight=-1,this.scrollTop=d),this.scrolledToBottom=Yn(t.scrollDOM);let p=(this.printing?ka:Aa)(e,this.paddingTop),f=p.top-this.pixelViewport.top,g=p.bottom-this.pixelViewport.bottom;this.pixelViewport=p;let v=this.pixelViewport.bottom>this.pixelViewport.top&&this.pixelViewport.right>this.pixelViewport.left;if(v!=this.inView&&(this.inView=v,v&&(s=!0)),!this.inView&&!this.scrollTarget)return 0;let m=a.width;if(this.contentDOMWidth==m&&this.editorHeight==t.scrollDOM.clientHeight||(this.contentDOMWidth=a.width,this.editorHeight=t.scrollDOM.clientHeight,l|=8),s){let e=t.docView.measureVisibleLineHeights(this.viewport);if(r.mustRefreshForHeights(e)&&(o=!0),o||r.lineWrapping&&Math.abs(m-this.contentDOMWidth)>r.charWidth){let{lineHeight:n,charWidth:a,textHeight:s}=t.docView.measureTextSize();o=n>0&&r.refresh(i,n,a,s,m/a,e),o&&(t.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 i=n.from==this.viewport.from?e:t.docView.measureVisibleLineHeights(n);this.heightMap=(o?ga.empty().applyChanges(this.stateDeco,yt.empty,this.heightOracle,[new Hi(0,0,0,t.state.doc.length)]):this.heightMap).updateHeight(r,0,o,new ha(n.from,i))}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(o?[]:this.lineGaps,t)),l|=this.computeVisibleRanges(),this.mustEnforceCursorAssoc&&(this.mustEnforceCursorAssoc=!1,t.docView.enforceCursorAssoc()),l}get visibleTop(){return this.scaler.fromDOM(this.pixelViewport.top)}get visibleBottom(){return this.scaler.fromDOM(this.pixelViewport.bottom)}getViewport(t,e){let n=.5-Math.max(-.5,Math.min(.5,t/1e3/2)),r=this.heightMap,i=this.heightOracle,{visibleTop:o,visibleBottom:a}=this,s=new Pa(r.lineAt(o-1e3*n,pa.ByHeight,i,0,0).from,r.lineAt(a+1e3*(1-n),pa.ByHeight,i,0,0).to);if(e){let{head:t}=e.range;if(t<s.from||t>s.to){let n,o=Math.min(this.editorHeight,this.pixelViewport.bottom-this.pixelViewport.top),a=r.lineAt(t,pa.ByPos,i,0,0);n="center"==e.y?(a.top+a.bottom)/2-o/2:"start"==e.y||"nearest"==e.y&&t<s.from?a.top:a.bottom-o,s=new Pa(r.lineAt(n-500,pa.ByHeight,i,0,0).from,r.lineAt(n+o+500,pa.ByHeight,i,0,0).to)}}return s}mapViewport(t,e){let n=e.mapPos(t.from,-1),r=e.mapPos(t.to,1);return new Pa(this.heightMap.lineAt(n,pa.ByPos,this.heightOracle,0,0).from,this.heightMap.lineAt(r,pa.ByPos,this.heightOracle,0,0).to)}viewportIsAppropriate({from:t,to:e},n=0){if(!this.inView)return!0;let{top:r}=this.heightMap.lineAt(t,pa.ByPos,this.heightOracle,0,0),{bottom:i}=this.heightMap.lineAt(e,pa.ByPos,this.heightOracle,0,0),{visibleTop:o,visibleBottom:a}=this;return(0==t||r<=o-Math.max(10,Math.min(-n,250)))&&(e==this.state.doc.length||i>=a+Math.max(10,Math.min(n,250)))&&r>o-2e3&&i<a+2e3}mapLineGaps(t,e){if(!t.length||e.empty)return t;let n=[];for(let r of t)e.touchesRange(r.from,r.to)||n.push(new Ca(e.mapPos(r.from),e.mapPos(r.to),r.size));return n}ensureLineGaps(t,e){let n=this.heightOracle.lineWrapping,r=n?1e4:2e3,i=r>>1,o=r<<1;if(this.defaultTextDirection!=Gr.LTR&&!n)return[];let a=[],s=(r,o,l,u)=>{if(o-r<i)return;let c=this.state.selection.main,h=[c.from];c.empty||h.push(c.to);for(let t of h)if(t>r&&t<o)return s(r,t-10,l,u),void s(t+10,o,l,u);let d=Ra(t,(t=>t.from>=l.from&&t.to<=l.to&&Math.abs(t.from-r)<i&&Math.abs(t.to-o)<i&&!h.some((e=>t.from<e&&t.to>e))));if(!d){if(o<l.to&&e&&n&&e.visibleRanges.some((t=>t.from<=o&&t.to>=o))){let t=e.moveToLineBoundary(Kt.cursor(o),!1,!0).head;t>r&&(o=t)}d=new Ca(r,o,this.gapSize(l,r,o,u))}a.push(d)},l=t=>{if(t.length<o||t.type!=Lr.Text)return;let e=Ia(t.from,t.to,this.stateDeco);if(e.total<o)return;let i,a,l=this.scrollTarget?this.scrollTarget.range.head:null;if(n){let n,o,s=r/this.heightOracle.lineLength*this.heightOracle.lineHeight;if(null!=l){let r=Ea(e,l),i=((this.visibleBottom-this.visibleTop)/2+s)/t.height;n=r-i,o=r+i}else n=(this.visibleTop-t.top-s)/t.height,o=(this.visibleBottom-t.top+s)/t.height;i=$a(e,n),a=$a(e,o)}else{let t,n,o=e.total*this.heightOracle.charWidth,s=r*this.heightOracle.charWidth;if(null!=l){let r=Ea(e,l),i=((this.pixelViewport.right-this.pixelViewport.left)/2+s)/o;t=r-i,n=r+i}else t=(this.pixelViewport.left-s)/o,n=(this.pixelViewport.right+s)/o;i=$a(e,t),a=$a(e,n)}i>t.from&&s(t.from,i,t,e),a<t.to&&s(a,t.to,t,e)};for(let u of this.viewportLines)Array.isArray(u.type)?u.type.forEach(l):l(u);return a}gapSize(t,e,n,r){let i=Ea(r,n)-Ea(r,e);return this.heightOracle.lineWrapping?t.height*i:r.total*this.heightOracle.charWidth*i}updateLineGaps(t){Ca.same(t,this.lineGaps)||(this.lineGaps=t,this.lineGapDeco=Nr.set(t.map((t=>t.draw(this,this.heightOracle.lineWrapping)))))}computeVisibleRanges(){let t=this.stateDeco;this.lineGaps.length&&(t=t.concat(this.lineGapDeco));let e=[];Ye.spans(t,this.viewport.from,this.viewport.to,{span(t,n){e.push({from:t,to:n})},point(){}},20);let n=e.length!=this.visibleRanges.length||this.visibleRanges.some(((t,n)=>t.from!=e[n].from||t.to!=e[n].to));return this.visibleRanges=e,n?4:0}lineBlockAt(t){return t>=this.viewport.from&&t<=this.viewport.to&&this.viewportLines.find((e=>e.from<=t&&e.to>=t))||Na(this.heightMap.lineAt(t,pa.ByPos,this.heightOracle,0,0),this.scaler)}lineBlockAtHeight(t){return t>=this.viewportLines[0].top&&t<=this.viewportLines[this.viewportLines.length-1].bottom&&this.viewportLines.find((e=>e.top<=t&&e.bottom>=t))||Na(this.heightMap.lineAt(this.scaler.fromDOM(t),pa.ByHeight,this.heightOracle,0,0),this.scaler)}scrollAnchorAt(t){let e=this.lineBlockAtHeight(t+8);return e.from>=this.viewport.from||this.viewportLines[0].top-t>200?e:this.viewportLines[0]}elementAtHeight(t){return Na(this.heightMap.blockAt(this.scaler.fromDOM(t),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 Pa{constructor(t,e){this.from=t,this.to=e}}function Ia(t,e,n){let r=[],i=t,o=0;return Ye.spans(n,t,e,{span(){},point(t,e){t>i&&(r.push({from:i,to:t}),o+=t-i),i=e}},20),i<e&&(r.push({from:i,to:e}),o+=e-i),{total:o,ranges:r}}function $a({total:t,ranges:e},n){if(n<=0)return e[0].from;if(n>=1)return e[e.length-1].to;let r=Math.floor(t*n);for(let i=0;;i++){let{from:t,to:n}=e[i],o=n-t;if(r<=o)return t+r;r-=o}}function Ea(t,e){let n=0;for(let{from:r,to:i}of t.ranges){if(e<=i){n+=e-r;break}n+=i-r}return n/t.total}function Ra(t,e){for(let n of t)if(e(n))return n}const Da={toDOM(t){return t},fromDOM(t){return t},scale:1,eq(t){return t==this}};class La{constructor(t,e,n){let r=0,i=0,o=0;this.viewports=n.map((({from:n,to:i})=>{let o=e.lineAt(n,pa.ByPos,t,0,0).top,a=e.lineAt(i,pa.ByPos,t,0,0).bottom;return r+=a-o,{from:n,to:i,top:o,bottom:a,domTop:0,domBottom:0}})),this.scale=(7e6-r)/(e.height-r);for(let a of this.viewports)a.domTop=o+(a.top-i)*this.scale,o=a.domBottom=a.domTop+(a.bottom-a.top),i=a.bottom}toDOM(t){for(let e=0,n=0,r=0;;e++){let i=e<this.viewports.length?this.viewports[e]:null;if(!i||t<i.top)return r+(t-n)*this.scale;if(t<=i.bottom)return i.domTop+(t-i.top);n=i.bottom,r=i.domBottom}}fromDOM(t){for(let e=0,n=0,r=0;;e++){let i=e<this.viewports.length?this.viewports[e]:null;if(!i||t<i.domTop)return n+(t-r)/this.scale;if(t<=i.domBottom)return i.top+(t-i.domTop);n=i.bottom,r=i.domBottom}}eq(t){return t instanceof La&&(this.scale==t.scale&&this.viewports.length==t.viewports.length&&this.viewports.every(((e,n)=>e.from==t.viewports[n].from&&e.to==t.viewports[n].to)))}}function Na(t,e){if(1==e.scale)return t;let n=e.toDOM(t.top),r=e.toDOM(t.bottom);return new da(t.from,t.length,n,r-n,Array.isArray(t._content)?t._content.map((t=>Na(t,e))):t._content)}const za=ee.define({combine:t=>t.join(" ")}),Ba=ee.define({combine:t=>t.indexOf(!0)>-1}),Fa=vn.newName(),Wa=vn.newName(),ja=vn.newName(),Va={"&light":"."+Wa,"&dark":"."+ja};function Qa(t,e,n){return new vn(e,{finish(e){return/&/.test(e)?e.replace(/&\w*/,(e=>{if("&"==e)return t;if(!n||!n[e])throw new RangeError(`Unsupported selector: ${e}`);return n[e]})):t+" "+e}})}const Ha=Qa("."+Fa,{"&":{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"}},Va),Za="￿";class Ga{constructor(t,e){this.points=t,this.text="",this.lineSeparator=e.facet(Qe.lineSeparator)}append(t){this.text+=t}lineBreak(){this.text+=Za}readRange(t,e){if(!t)return this;let n=t.parentNode;for(let r=t;;){this.findPointBefore(n,r);let t=this.text.length;this.readNode(r);let i=r.nextSibling;if(i==e)break;let o=er.get(r),a=er.get(i);(o&&a?o.breakAfter:(o?o.breakAfter:En(r))||En(i)&&("BR"!=r.nodeName||r.cmIgnore)&&this.text.length>t)&&this.lineBreak(),r=i}return this.findPointBefore(n,e),this}readTextNode(t){let e=t.nodeValue;for(let n of this.points)n.node==t&&(n.pos=this.text.length+Math.min(n.offset,e.length));for(let n=0,r=this.lineSeparator?null:/\r\n?|\n/g;;){let i,o=-1,a=1;if(this.lineSeparator?(o=e.indexOf(this.lineSeparator,n),a=this.lineSeparator.length):(i=r.exec(e))&&(o=i.index,a=i[0].length),this.append(e.slice(n,o<0?e.length:o)),o<0)break;if(this.lineBreak(),a>1)for(let e of this.points)e.node==t&&e.pos>this.text.length&&(e.pos-=a-1);n=o+a}}readNode(t){if(t.cmIgnore)return;let e=er.get(t),n=e&&e.overrideDOMText;if(null!=n){this.findPointInside(t,n.length);for(let t=n.iter();!t.next().done;)t.lineBreak?this.lineBreak():this.append(t.value)}else 3==t.nodeType?this.readTextNode(t):"BR"==t.nodeName?t.nextSibling&&this.lineBreak():1==t.nodeType&&this.readRange(t.firstChild,null)}findPointBefore(t,e){for(let n of this.points)n.node==t&&t.childNodes[n.offset]==e&&(n.pos=this.text.length)}findPointInside(t,e){for(let n of this.points)(3==t.nodeType?n.node==t:t.contains(n.node))&&(n.pos=this.text.length+(Xa(t,n.node,n.offset)?e:0))}}function Xa(t,e,n){for(;;){if(!e||n<Dn(e))return!1;if(e==t)return!0;n=$n(e)+1,e=e.parentNode}}class Ua{constructor(t,e){this.node=t,this.offset=e,this.pos=-1}}class Ya{constructor(t,e,n,r){this.typeOver=r,this.bounds=null,this.text="",this.domChanged=e>-1;let{impreciseHead:i,impreciseAnchor:o}=t.docView;if(t.state.readOnly&&e>-1)this.newSel=null;else if(e>-1&&(this.bounds=t.docView.domBoundsAround(e,n,0))){let e=i||o?[]:es(t),n=new Ga(e,t.state);n.readRange(this.bounds.startDOM,this.bounds.endDOM),this.text=n.text,this.newSel=ns(e,this.bounds.from)}else{let e=t.observer.selectionRange,n=i&&i.node==e.focusNode&&i.offset==e.focusOffset||!Cn(t.contentDOM,e.focusNode)?t.state.selection.main.head:t.docView.posFromDOM(e.focusNode,e.focusOffset),r=o&&o.node==e.anchorNode&&o.offset==e.anchorOffset||!Cn(t.contentDOM,e.anchorNode)?t.state.selection.main.anchor:t.docView.posFromDOM(e.anchorNode,e.anchorOffset),a=t.viewport;if((mr.ios||mr.chrome)&&t.state.selection.main.empty&&n!=r&&(a.from>0||a.to<t.state.doc.length)){let e=Math.min(n,r),i=Math.max(n,r),o=a.from-e,s=a.to-i;0!=o&&1!=o&&0!=e||0!=s&&-1!=s&&i!=t.state.doc.length||(n=0,r=t.state.doc.length)}this.newSel=Kt.single(r,n)}}}function qa(t,e){let n,{newSel:r}=e,i=t.state.selection.main,o=t.inputState.lastKeyTime>Date.now()-100?t.inputState.lastKeyCode:-1;if(e.bounds){let{from:r,to:a}=e.bounds,s=i.from,l=null;(8===o||mr.android&&e.text.length<a-r)&&(s=i.to,l="end");let u=ts(t.state.doc.sliceString(r,a,Za),e.text,s-r,l);u&&(mr.chrome&&13==o&&u.toB==u.from+2&&e.text.slice(u.from,u.toB)==Za+Za&&u.toB--,n={from:r+u.from,to:r+u.toA,insert:yt.of(e.text.slice(u.from,u.toB).split(Za))})}else r&&(!t.hasFocus&&t.state.facet(Pi)||r.main.eq(i))&&(r=null);if(!n&&!r)return!1;if(!n&&e.typeOver&&!i.empty&&r&&r.main.empty?n={from:i.from,to:i.to,insert:t.state.doc.slice(i.from,i.to)}:n&&n.from>=i.from&&n.to<=i.to&&(n.from!=i.from||n.to!=i.to)&&i.to-i.from-(n.to-n.from)<=4?n={from:i.from,to:i.to,insert:t.state.doc.slice(i.from,n.from).append(n.insert).append(t.state.doc.slice(n.to,i.to))}:(mr.mac||mr.android)&&n&&n.from==n.to&&n.from==i.head-1&&/^\. ?$/.test(n.insert.toString())&&"off"==t.contentDOM.getAttribute("autocorrect")?(r&&2==n.insert.length&&(r=Kt.single(r.main.anchor-1,r.main.head-1)),n={from:i.from,to:i.to,insert:yt.of([" "])}):mr.chrome&&n&&n.from==n.to&&n.from==i.head&&"\n "==n.insert.toString()&&t.lineWrapping&&(r&&(r=Kt.single(r.main.anchor-1,r.main.head-1)),n={from:i.from,to:i.to,insert:yt.of([" "])}),n)return Ka(t,n,r,o);if(r&&!r.main.eq(i)){let e=!1,n="select";return t.inputState.lastSelectionTime>Date.now()-50&&("select"==t.inputState.lastSelectionOrigin&&(e=!0),n=t.inputState.lastSelectionOrigin),t.dispatch({selection:r,scrollIntoView:e,userEvent:n}),!0}return!1}function Ka(t,e,n,r=-1){if(mr.ios&&t.inputState.flushIOSKey(e))return!0;let i=t.state.selection.main;if(mr.android&&(e.to==i.to&&(e.from==i.from||e.from==i.from-1&&" "==t.state.sliceDoc(e.from,i.from))&&1==e.insert.length&&2==e.insert.lines&&Zn(t.contentDOM,"Enter",13)||(e.from==i.from-1&&e.to==i.to&&0==e.insert.length||8==r&&e.insert.length<e.to-e.from&&e.to>i.head)&&Zn(t.contentDOM,"Backspace",8)||e.from==i.from&&e.to==i.to+1&&0==e.insert.length&&Zn(t.contentDOM,"Delete",46)))return!0;let o,a=e.insert.toString();t.inputState.composing>=0&&t.inputState.composing++;let s=()=>o||(o=Ja(t,e,n));return t.state.facet(xi).some((n=>n(t,e.from,e.to,a,s)))||t.dispatch(s()),!0}function Ja(t,e,n){let r,i=t.state,o=i.selection.main;if(e.from>=o.from&&e.to<=o.to&&e.to-e.from>=(o.to-o.from)/3&&(!n||n.main.empty&&n.main.from==e.from+e.insert.length)&&t.inputState.composing<0){let n=o.from<e.from?i.sliceDoc(o.from,e.from):"",a=o.to>e.to?i.sliceDoc(e.to,o.to):"";r=i.replaceSelection(t.state.toText(n+e.insert.sliceString(0,void 0,t.state.lineBreak)+a))}else{let a=i.changes(e),s=n&&n.main.to<=a.newLength?n.main:void 0;if(i.selection.ranges.length>1&&t.inputState.composing>=0&&e.to<=o.to&&e.to>=o.to-10){let l,u=t.state.sliceDoc(e.from,e.to),c=n&&Yi(t,n.main.head);if(c){let t=e.insert.length-(e.to-e.from);l={from:c.from,to:c.to-t}}else l=t.state.doc.lineAt(o.head);let h=o.to-e.to,d=o.to-o.from;r=i.changeByRange((n=>{if(n.from==o.from&&n.to==o.to)return{changes:a,range:s||n.map(a)};let r=n.to-h,c=r-u.length;if(n.to-n.from!=d||t.state.sliceDoc(c,r)!=u||n.to>=l.from&&n.from<=l.to)return{range:n};let p=i.changes({from:c,to:r,insert:e.insert}),f=n.to-o.to;return{changes:p,range:s?Kt.range(Math.max(0,s.anchor+f),Math.max(0,s.head+f)):n.map(p)}}))}else r={changes:a,selection:s&&i.selection.replaceRange(s)}}let a="input.type";return(t.composing||t.inputState.compositionPendingChange&&t.inputState.compositionEndedAt>Date.now()-50)&&(t.inputState.compositionPendingChange=!1,a+=".compose",t.inputState.compositionFirstChange&&(a+=".start",t.inputState.compositionFirstChange=!1)),i.update(r,{userEvent:a,scrollIntoView:!0})}function ts(t,e,n,r){let i=Math.min(t.length,e.length),o=0;while(o<i&&t.charCodeAt(o)==e.charCodeAt(o))o++;if(o==i&&t.length==e.length)return null;let a=t.length,s=e.length;while(a>0&&s>0&&t.charCodeAt(a-1)==e.charCodeAt(s-1))a--,s--;if("end"==r){let t=Math.max(0,o-Math.min(a,s));n-=a+t-o}if(a<o&&t.length<e.length){let t=n<=o&&n>=a?o-n:0;o-=t,s=o+(s-a),a=o}else if(s<o){let t=n<=o&&n>=s?o-n:0;o-=t,a=o+(a-s),s=o}return{from:o,toA:a,toB:s}}function es(t){let e=[];if(t.root.activeElement!=t.contentDOM)return e;let{anchorNode:n,anchorOffset:r,focusNode:i,focusOffset:o}=t.observer.selectionRange;return n&&(e.push(new Ua(n,r)),i==n&&o==r||e.push(new Ua(i,o))),e}function ns(t,e){if(0==t.length)return null;let n=t[0].pos,r=2==t.length?t[1].pos:n;return n>-1&&r>-1?Kt.single(n+e,r+e):null}const rs={childList:!0,characterData:!0,subtree:!0,attributes:!0,characterDataOldValue:!0},is=mr.ie&&mr.ie_version<=11;class os{constructor(t){this.view=t,this.active=!1,this.editContext=null,this.selectionRange=new Wn,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=t.contentDOM,this.observer=new MutationObserver((e=>{for(let t of e)this.queue.push(t);(mr.ie&&mr.ie_version<=11||mr.ios&&t.composing)&&e.some((t=>"childList"==t.type&&t.removedNodes.length||"characterData"==t.type&&t.oldValue.length>t.target.nodeValue.length))?this.flushSoon():this.flush()})),!window.EditContext||!1===t.constructor.EDIT_CONTEXT||mr.chrome&&mr.chrome_version<126||(this.editContext=new us(t),t.state.facet(Pi)&&(t.contentDOM.editContext=this.editContext.editContext)),is&&(this.onCharData=t=>{this.queue.push({target:t.target,type:"characterData",oldValue:t.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 t;(null===(t=this.view.docView)||void 0===t?void 0:t.lastUpdate)<Date.now()-75&&this.onResize()})),this.resizeScroll.observe(t.scrollDOM)),this.addWindowListeners(this.win=t.win),this.start(),"function"==typeof IntersectionObserver&&(this.intersection=new IntersectionObserver((t=>{this.parentCheck<0&&(this.parentCheck=setTimeout(this.listenForScroll.bind(this),1e3)),t.length>0&&t[t.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((t=>{t.length>0&&t[t.length-1].intersectionRatio>0&&this.onScrollChanged(document.createEvent("Event"))}),{})),this.listenForScroll(),this.readSelectionRange()}onScrollChanged(t){this.view.inputState.runHandlers("scroll",t),this.intersecting&&this.view.measure()}onScroll(t){this.intersecting&&this.flush(!1),this.editContext&&this.view.requestMeasure(this.editContext.measureReq),this.onScrollChanged(t)}onResize(){this.resizeTimeout<0&&(this.resizeTimeout=setTimeout((()=>{this.resizeTimeout=-1,this.view.requestMeasure()}),50))}onPrint(t){("change"!=t.type||t.matches)&&(this.view.viewState.printing=!0,this.view.measure(),setTimeout((()=>{this.view.viewState.printing=!1,this.view.requestMeasure()}),500))}updateGaps(t){if(this.gapIntersection&&(t.length!=this.gaps.length||this.gaps.some(((e,n)=>e!=t[n])))){this.gapIntersection.disconnect();for(let e of t)this.gapIntersection.observe(e);this.gaps=t}}onSelectionChange(t){let e=this.selectionChanged;if(!this.readSelectionRange()||this.delayedAndroidKey)return;let{view:n}=this,r=this.selectionRange;if(n.state.facet(Pi)?n.root.activeElement!=this.dom:!Tn(n.dom,r))return;let i=r.anchorNode&&n.docView.nearest(r.anchorNode);i&&i.ignoreEvent(t)?e||(this.selectionChanged=!1):(mr.ie&&mr.ie_version<=11||mr.android&&mr.chrome)&&!n.state.selection.main.empty&&r.focusNode&&In(r.focusNode,r.focusOffset,r.anchorNode,r.anchorOffset)?this.flushSoon():this.flush(!1)}readSelectionRange(){let{view:t}=this,e=kn(t.root);if(!e)return!1;let n=mr.safari&&11==t.root.nodeType&&Mn(this.dom.ownerDocument)==this.dom&&ls(this.view,e)||e;if(!n||this.selectionRange.eq(n))return!1;let r=Tn(this.dom,n);return r&&!this.selectionChanged&&t.inputState.lastFocusTime>Date.now()-200&&t.inputState.lastTouchTime<Date.now()-300&&Un(this.dom,n)?(this.view.inputState.lastFocusTime=0,t.docView.updateSelection(),!1):(this.selectionRange.setRange(n),r&&(this.selectionChanged=!0),!0)}setSelectionRange(t,e){this.selectionRange.set(t.node,t.offset,e.node,e.offset),this.selectionChanged=!1}clearSelectionRange(){this.selectionRange.set(null,0,null,0)}listenForScroll(){this.parentCheck=-1;let t=0,e=null;for(let n=this.dom;n;)if(1==n.nodeType)!e&&t<this.scrollTargets.length&&this.scrollTargets[t]==n?t++:e||(e=this.scrollTargets.slice(0,t)),e&&e.push(n),n=n.assignedSlot||n.parentNode;else{if(11!=n.nodeType)break;n=n.host}if(t<this.scrollTargets.length&&!e&&(e=this.scrollTargets.slice(0,t)),e){for(let t of this.scrollTargets)t.removeEventListener("scroll",this.onScroll);for(let t of this.scrollTargets=e)t.addEventListener("scroll",this.onScroll)}}ignore(t){if(!this.active)return t();try{return this.stop(),t()}finally{this.start(),this.clear()}}start(){this.active||(this.observer.observe(this.dom,rs),is&&this.dom.addEventListener("DOMCharacterDataModified",this.onCharData),this.active=!0)}stop(){this.active&&(this.active=!1,this.observer.disconnect(),is&&this.dom.removeEventListener("DOMCharacterDataModified",this.onCharData))}clear(){this.processRecords(),this.queue.length=0,this.selectionChanged=!1}delayAndroidKey(t,e){var n;if(!this.delayedAndroidKey){let t=()=>{let t=this.delayedAndroidKey;if(t){this.clearDelayedAndroidKey(),this.view.inputState.lastKeyCode=t.keyCode,this.view.inputState.lastKeyTime=Date.now();let e=this.flush();!e&&t.force&&Zn(this.dom,t.key,t.keyCode)}};this.flushingAndroidKey=this.view.win.requestAnimationFrame(t)}this.delayedAndroidKey&&"Enter"!=t||(this.delayedAndroidKey={key:t,keyCode:e,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 t of this.observer.takeRecords())this.queue.push(t);return this.queue}processRecords(){let t=this.pendingRecords();t.length&&(this.queue=[]);let e=-1,n=-1,r=!1;for(let i of t){let t=this.readMutation(i);t&&(t.typeOver&&(r=!0),-1==e?({from:e,to:n}=t):(e=Math.min(t.from,e),n=Math.max(t.to,n)))}return{from:e,to:n,typeOver:r}}readChange(){let{from:t,to:e,typeOver:n}=this.processRecords(),r=this.selectionChanged&&Tn(this.dom,this.selectionRange);if(t<0&&!r)return null;t>-1&&(this.lastChange=Date.now()),this.view.inputState.lastFocusTime=0,this.selectionChanged=!1;let i=new Ya(this.view,t,e,n);return this.view.docView.domChanged={newSel:i.newSel?i.newSel.main:null},i}flush(t=!0){if(this.delayedFlush>=0||this.delayedAndroidKey)return!1;t&&this.readSelectionRange();let e=this.readChange();if(!e)return this.view.requestMeasure(),!1;let n=this.view.state,r=qa(this.view,e);return this.view.state==n&&(e.domChanged||e.newSel&&!e.newSel.main.eq(this.view.state.selection.main))&&this.view.update([]),r}readMutation(t){let e=this.view.docView.nearest(t.target);if(!e||e.ignoreMutation(t))return null;if(e.markDirty("attributes"==t.type),"attributes"==t.type&&(e.flags|=4),"childList"==t.type){let n=as(e,t.previousSibling||t.target.previousSibling,-1),r=as(e,t.nextSibling||t.target.nextSibling,1);return{from:n?e.posAfter(n):e.posAtStart,to:r?e.posBefore(r):e.posAtEnd,typeOver:!1}}return"characterData"==t.type?{from:e.posAtStart,to:e.posAtEnd,typeOver:t.target.nodeValue==t.oldValue}:null}setWindow(t){t!=this.win&&(this.removeWindowListeners(this.win),this.win=t,this.addWindowListeners(this.win))}addWindowListeners(t){t.addEventListener("resize",this.onResize),this.printQuery?this.printQuery.addEventListener("change",this.onPrint):t.addEventListener("beforeprint",this.onPrint),t.addEventListener("scroll",this.onScroll),t.document.addEventListener("selectionchange",this.onSelectionChange)}removeWindowListeners(t){t.removeEventListener("scroll",this.onScroll),t.removeEventListener("resize",this.onResize),this.printQuery?this.printQuery.removeEventListener("change",this.onPrint):t.removeEventListener("beforeprint",this.onPrint),t.document.removeEventListener("selectionchange",this.onSelectionChange)}update(t){this.editContext&&(this.editContext.update(t),t.startState.facet(Pi)!=t.state.facet(Pi)&&(t.view.contentDOM.editContext=t.state.facet(Pi)?this.editContext.editContext:null))}destroy(){var t,e,n;this.stop(),null===(t=this.intersection)||void 0===t||t.disconnect(),null===(e=this.gapIntersection)||void 0===e||e.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 as(t,e,n){while(e){let r=er.get(e);if(r&&r.parent==t)return r;let i=e.parentNode;e=i!=t.dom?i:n>0?e.nextSibling:e.previousSibling}return null}function ss(t,e){let n=e.startContainer,r=e.startOffset,i=e.endContainer,o=e.endOffset,a=t.docView.domAtPos(t.state.selection.main.anchor);return In(a.node,a.offset,i,o)&&([n,r,i,o]=[i,o,n,r]),{anchorNode:n,anchorOffset:r,focusNode:i,focusOffset:o}}function ls(t,e){if(e.getComposedRanges){let n=e.getComposedRanges(t.root)[0];if(n)return ss(t,n)}let n=null;function r(t){t.preventDefault(),t.stopImmediatePropagation(),n=t.getTargetRanges()[0]}return t.contentDOM.addEventListener("beforeinput",r,!0),t.dom.ownerDocument.execCommand("indent"),t.contentDOM.removeEventListener("beforeinput",r,!0),n?ss(t,n):null}class us{constructor(t){this.from=0,this.to=0,this.pendingContextChange=null,this.resetRange(t.state);let e=this.editContext=new window.EditContext({text:t.state.doc.sliceString(this.from,this.to),selectionStart:this.toContextPos(Math.max(this.from,Math.min(this.to,t.state.selection.main.anchor))),selectionEnd:this.toContextPos(t.state.selection.main.head)});e.addEventListener("textupdate",(e=>{let{anchor:n}=t.state.selection.main,r={from:this.toEditorPos(e.updateRangeStart),to:this.toEditorPos(e.updateRangeEnd),insert:yt.of(e.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,Ka(t,r,Kt.single(this.toEditorPos(e.selectionStart),this.toEditorPos(e.selectionEnd))),this.pendingContextChange&&this.revertPending(t.state))})),e.addEventListener("characterboundsupdate",(n=>{let r=[],i=null;for(let e=this.toEditorPos(n.rangeStart),o=this.toEditorPos(n.rangeEnd);e<o;e++){let n=t.coordsForChar(e);i=n&&new DOMRect(n.left,n.top,n.right-n.left,n.bottom-n.top)||i||new DOMRect,r.push(i)}e.updateCharacterBounds(n.rangeStart,r)})),e.addEventListener("textformatupdate",(e=>{let n=[];for(let t of e.getTextFormats()){let e=t.underlineStyle,r=t.underlineThickness;if("None"!=e&&"None"!=r){let i=`text-decoration: underline ${"Dashed"==e?"dashed ":"Squiggle"==e?"wavy ":""}${"Thin"==r?1:2}px`;n.push(Nr.mark({attributes:{style:i}}).range(this.toEditorPos(t.rangeStart),this.toEditorPos(t.rangeEnd)))}}t.dispatch({effects:Mi.of(Nr.set(n))})})),e.addEventListener("compositionstart",(()=>{t.inputState.composing<0&&(t.inputState.composing=0,t.inputState.compositionFirstChange=!0)})),e.addEventListener("compositionend",(()=>{t.inputState.composing=-1,t.inputState.compositionFirstChange=null})),this.measureReq={read:t=>{this.editContext.updateControlBounds(t.contentDOM.getBoundingClientRect());let e=kn(t.root);e&&e.rangeCount&&this.editContext.updateSelectionBounds(e.getRangeAt(0).getBoundingClientRect())}}}applyEdits(t){let e=0,n=!1,r=this.pendingContextChange;return t.changes.iterChanges(((i,o,a,s,l)=>{if(n)return;let u=l.length-(o-i);if(r&&o>=r.to){if(r.from==i&&r.to==o&&r.insert.eq(l))return r=this.pendingContextChange=null,void(e+=u);r=null,this.revertPending(t.state)}if(i+=e,o+=e,o<=this.from)this.from+=u,this.to+=u;else if(i<this.to){if(i<this.from||o>this.to||this.to-this.from+l.length>3e4)return void(n=!0);this.editContext.updateText(this.toContextPos(i),this.toContextPos(o),l.toString()),this.to+=u}e+=u})),r&&!n&&this.revertPending(t.state),!n}update(t){this.applyEdits(t)&&this.rangeIsValid(t.state)?(t.docChanged||t.selectionSet)&&this.setSelection(t.state):(this.pendingContextChange=null,this.resetRange(t.state),this.editContext.updateText(0,this.editContext.text.length,t.state.doc.sliceString(this.from,this.to)),this.setSelection(t.state)),(t.geometryChanged||t.docChanged||t.selectionSet)&&t.view.requestMeasure(this.measureReq)}resetRange(t){let{head:e}=t.selection.main;this.from=Math.max(0,e-1e4),this.to=Math.min(t.doc.length,e+1e4)}revertPending(t){let e=this.pendingContextChange;this.pendingContextChange=null,this.editContext.updateText(this.toContextPos(e.from),this.toContextPos(e.to+e.insert.length),t.doc.sliceString(e.from,e.to))}setSelection(t){let{main:e}=t.selection,n=this.toContextPos(Math.max(this.from,Math.min(this.to,e.anchor))),r=this.toContextPos(e.head);this.editContext.selectionStart==n&&this.editContext.selectionEnd==r||this.editContext.updateSelection(n,r)}rangeIsValid(t){let{head:e}=t.selection.main;return!(this.from>0&&e-this.from<500||this.to<t.doc.length&&this.to-e<500||this.to-this.from>3e4)}toEditorPos(t){return t+this.from}toContextPos(t){return t-this.from}}class cs{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(t={}){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),t.parent&&t.parent.appendChild(this.dom);let{dispatch:e}=t;this.dispatchTransactions=t.dispatchTransactions||e&&(t=>t.forEach((t=>e(t,this))))||(t=>this.update(t)),this.dispatch=this.dispatch.bind(this),this._root=t.root||Gn(t.parent)||document,this.viewState=new Ta(t.state||Qe.create(t)),t.scrollTo&&t.scrollTo.is(Ci)&&(this.viewState.scrollTarget=t.scrollTo.value.clip(this.viewState.state)),this.plugins=this.state.facet($i).map((t=>new Ri(t)));for(let n of this.plugins)n.update(this);this.observer=new os(this),this.inputState=new Oo(this),this.inputState.ensureHandlers(this.plugins),this.docView=new Gi(this),this.mountStyles(),this.updateAttrs(),this.updateState=0,this.requestMeasure()}dispatch(...t){let e=1==t.length&&t[0]instanceof Pe?t:1==t.length&&Array.isArray(t[0])?t[0]:[this.state.update(...t)];this.dispatchTransactions(e,this)}update(t){if(0!=this.updateState)throw new Error("Calls to EditorView.update are not allowed while an update is in progress");let e,n=!1,r=!1,i=this.state;for(let d of t){if(d.startState!=i)throw new RangeError("Trying to update state with a transaction that doesn't start from the previous state.");i=d.state}if(this.destroyed)return void(this.viewState.state=i);let o=this.hasFocus,a=0,s=null;t.some((t=>t.annotation(ia)))?(this.inputState.notifiedFocused=o,a=1):o!=this.inputState.notifiedFocused&&(this.inputState.notifiedFocused=o,s=oa(i,o),s||(a=1));let l=this.observer.delayedAndroidKey,u=null;if(l?(this.observer.clearDelayedAndroidKey(),u=this.observer.readChange(),(u&&!this.state.doc.eq(i.doc)||!this.state.selection.eq(i.selection))&&(u=null)):this.observer.clear(),i.facet(Qe.phrases)!=this.state.facet(Qe.phrases))return this.setState(i);e=Zi.create(this,i,t),e.flags|=a;let c=this.viewState.scrollTarget;try{this.updateState=2;for(let e of t){if(c&&(c=c.map(e.changes)),e.scrollIntoView){let{main:t}=e.state.selection;c=new ki(t.empty?t:Kt.cursor(t.head,t.head>t.anchor?-1:1))}for(let t of e.effects)t.is(Ci)&&(c=t.value.clip(this.state))}this.viewState.update(e,c),this.bidiCache=ps.update(this.bidiCache,e.changes),e.empty||(this.updatePlugins(e),this.inputState.update(e)),n=this.docView.update(e),this.state.facet(Qi)!=this.styleModules&&this.mountStyles(),r=this.updateAttrs(),this.showAnnouncements(t),this.docView.updateSelection(n,t.some((t=>t.isUserEvent("select.pointer"))))}finally{this.updateState=0}if(e.startState.facet(za)!=e.state.facet(za)&&(this.viewState.mustMeasureContent=!0),(n||r||c||this.viewState.mustEnforceCursorAssoc||this.viewState.mustMeasureContent)&&this.requestMeasure(),n&&this.docViewUpdate(),!e.empty)for(let d of this.state.facet(_i))try{d(e)}catch(h){Ti(this.state,h,"update listener")}(s||u)&&Promise.resolve().then((()=>{s&&this.state==s.startState&&this.dispatch(s),u&&!qa(this,u)&&l.force&&Zn(this.contentDOM,l.key,l.keyCode)}))}setState(t){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=t);this.updateState=2;let e=this.hasFocus;try{for(let t of this.plugins)t.destroy(this);this.viewState=new Ta(t),this.plugins=t.facet($i).map((t=>new Ri(t))),this.pluginMap.clear();for(let t of this.plugins)t.update(this);this.docView.destroy(),this.docView=new Gi(this),this.inputState.ensureHandlers(this.plugins),this.mountStyles(),this.updateAttrs(),this.bidiCache=[]}finally{this.updateState=0}e&&this.focus(),this.requestMeasure()}updatePlugins(t){let e=t.startState.facet($i),n=t.state.facet($i);if(e!=n){let r=[];for(let i of n){let n=e.indexOf(i);if(n<0)r.push(new Ri(i));else{let e=this.plugins[n];e.mustUpdate=t,r.push(e)}}for(let e of this.plugins)e.mustUpdate!=t&&e.destroy(this);this.plugins=r,this.pluginMap.clear()}else for(let r of this.plugins)r.mustUpdate=t;for(let r=0;r<this.plugins.length;r++)this.plugins[r].update(this);e!=n&&this.inputState.ensureHandlers(this.plugins)}docViewUpdate(){for(let e of this.plugins){let n=e.value;if(n&&n.docViewUpdate)try{n.docViewUpdate(this)}catch(t){Ti(this.state,t,"doc view update listener")}}}measure(t=!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,t&&this.observer.forceFlush();let e=null,n=this.scrollDOM,r=n.scrollTop*this.scaleY,{scrollAnchorPos:i,scrollAnchorHeight:o}=this.viewState;Math.abs(r-this.viewState.scrollTop)>1&&(o=-1),this.viewState.scrollAnchorHeight=-1;try{for(let t=0;;t++){if(o<0)if(Yn(n))i=-1,o=this.viewState.heightMap.height;else{let t=this.viewState.scrollAnchorAt(r);i=t.from,o=t.top}this.updateState=1;let s=this.viewState.measure(this);if(!s&&!this.measureRequests.length&&null==this.viewState.scrollTarget)break;if(t>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((t=>{try{return t.read(this)}catch(e){return Ti(this.state,e),ds}})),c=Zi.create(this,this.state,[]),h=!1;c.flags|=s,e?e.flags|=s:e=c,this.updateState=2,c.empty||(this.updatePlugins(c),this.inputState.update(c),this.updateAttrs(),h=this.docView.update(c),h&&this.docViewUpdate());for(let t=0;t<l.length;t++)if(u[t]!=ds)try{let e=l[t];e.write&&e.write(u[t],this)}catch(a){Ti(this.state,a)}if(h&&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,o=-1;continue}{let t=i<0?this.viewState.heightMap.height:this.viewState.lineBlockAt(i).top,e=t-o;if(e>1||e<-1){r+=e,n.scrollTop=r/this.scaleY,o=-1;continue}}}break}}}finally{this.updateState=0,this.measureScheduled=-1}if(e&&!e.empty)for(let s of this.state.facet(_i))s(e)}get themeClasses(){return Fa+" "+(this.state.facet(Ba)?ja:Wa)+" "+this.state.facet(za)}updateAttrs(){let t=fs(this,Di,{class:"cm-editor"+(this.hasFocus?" cm-focused ":" ")+this.themeClasses}),e={spellcheck:"false",autocorrect:"off",autocapitalize:"off",translate:"no",contenteditable:this.state.facet(Pi)?"true":"false",class:"cm-content",style:`${mr.tabSize}: ${this.state.tabSize}`,role:"textbox","aria-multiline":"true"};this.state.readOnly&&(e["aria-readonly"]="true"),fs(this,Li,e);let n=this.observer.ignore((()=>{let n=Ir(this.contentDOM,this.contentAttrs,e),r=Ir(this.dom,this.editorAttrs,t);return n||r}));return this.editorAttrs=t,this.contentAttrs=e,n}showAnnouncements(t){let e=!0;for(let n of t)for(let t of n.effects)if(t.is(cs.announce)){e&&(this.announceDOM.textContent=""),e=!1;let n=this.announceDOM.appendChild(document.createElement("div"));n.textContent=t.value}}mountStyles(){this.styleModules=this.state.facet(Qi);let t=this.state.facet(cs.cspNonce);vn.mount(this.root,this.styleModules.concat(Ha).reverse(),t?{nonce:t}: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(t){if(this.measureScheduled<0&&(this.measureScheduled=this.win.requestAnimationFrame((()=>this.measure()))),t){if(this.measureRequests.indexOf(t)>-1)return;if(null!=t.key)for(let e=0;e<this.measureRequests.length;e++)if(this.measureRequests[e].key===t.key)return void(this.measureRequests[e]=t);this.measureRequests.push(t)}}plugin(t){let e=this.pluginMap.get(t);return(void 0===e||e&&e.spec!=t)&&this.pluginMap.set(t,e=this.plugins.find((e=>e.spec==t))||null),e&&e.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(t){return this.readMeasured(),this.viewState.elementAtHeight(t)}lineBlockAtHeight(t){return this.readMeasured(),this.viewState.lineBlockAtHeight(t)}get viewportLineBlocks(){return this.viewState.viewportLines}lineBlockAt(t){return this.viewState.lineBlockAt(t)}get contentHeight(){return this.viewState.contentHeight}moveByChar(t,e,n){return wo(this,t,yo(this,t,e,n))}moveByGroup(t,e){return wo(this,t,yo(this,t,e,(e=>bo(this,t.head,e))))}visualLineSide(t,e){let n=this.bidiSpans(t),r=this.textDirectionAt(t.from),i=n[e?n.length-1:0];return Kt.cursor(i.side(e,r)+t.from,i.forward(!e,r)?1:-1)}moveToLineBoundary(t,e,n=!0){return mo(this,t,e,n)}moveVertically(t,e,n){return wo(this,t,_o(this,t,e,n))}domAtPos(t){return this.docView.domAtPos(t)}posAtDOM(t,e=0){return this.docView.posFromDOM(t,e)}posAtCoords(t,e=!0){return this.readMeasured(),ho(this,t,e)}coordsAtPos(t,e=1){this.readMeasured();let n=this.docView.coordsAt(t,e);if(!n||n.left==n.right)return n;let r=this.state.doc.lineAt(t),i=this.bidiSpans(r),o=i[ri.find(i,t-r.from,-1,e)];return Ln(n,o.dir==Gr.LTR==e>0)}coordsForChar(t){return this.readMeasured(),this.docView.coordsForChar(t)}get defaultCharacterWidth(){return this.viewState.heightOracle.charWidth}get defaultLineHeight(){return this.viewState.heightOracle.lineHeight}get textDirection(){return this.viewState.defaultTextDirection}textDirectionAt(t){let e=this.state.facet(Oi);return!e||t<this.viewport.from||t>this.viewport.to?this.textDirection:(this.readMeasured(),this.docView.textDirectionAt(t))}get lineWrapping(){return this.viewState.heightOracle.lineWrapping}bidiSpans(t){if(t.length>hs)return di(t.length);let e,n=this.textDirectionAt(t.from);for(let i of this.bidiCache)if(i.from==t.from&&i.dir==n&&(i.fresh||ii(i.isolates,e=Wi(this,t))))return i.order;e||(e=Wi(this,t));let r=hi(t.text,n,e);return this.bidiCache.push(new ps(t.from,t.to,n,e,!0,r)),r}get hasFocus(){var t;return(this.dom.ownerDocument.hasFocus()||mr.safari&&(null===(t=this.inputState)||void 0===t?void 0:t.lastContextMenu)>Date.now()-3e4)&&this.root.activeElement==this.contentDOM}focus(){this.observer.ignore((()=>{Qn(this.contentDOM),this.docView.updateSelection()}))}setRoot(t){this._root!=t&&(this._root=t,this.observer.setWindow((9==t.nodeType?t:t.ownerDocument).defaultView||window),this.mountStyles())}destroy(){this.root.activeElement==this.contentDOM&&this.contentDOM.blur();for(let t of this.plugins)t.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(t,e={}){return Ci.of(new ki("number"==typeof t?Kt.cursor(t):t,e.y,e.x,e.yMargin,e.xMargin))}scrollSnapshot(){let{scrollTop:t,scrollLeft:e}=this.scrollDOM,n=this.viewState.scrollAnchorAt(t);return Ci.of(new ki(Kt.cursor(n.from),"start","start",n.top-t,e,!0))}setTabFocusMode(t){null==t?this.inputState.tabFocusMode=this.inputState.tabFocusMode<0?0:-1:"boolean"==typeof t?this.inputState.tabFocusMode=t?0:-1:0!=this.inputState.tabFocusMode&&(this.inputState.tabFocusMode=Date.now()+t)}static domEventHandlers(t){return Ei.define((()=>({})),{eventHandlers:t})}static domEventObservers(t){return Ei.define((()=>({})),{eventObservers:t})}static theme(t,e){let n=vn.newName(),r=[za.of(n),Qi.of(Qa(`.${n}`,t))];return e&&e.dark&&r.push(Ba.of(!0)),r}static baseTheme(t){return he.lowest(Qi.of(Qa("."+Fa,t,Va)))}static findFromDOM(t){var e;let n=t.querySelector(".cm-content"),r=n&&er.get(n)||er.get(t);return(null===(e=null===r||void 0===r?void 0:r.rootView)||void 0===e?void 0:e.view)||null}}cs.styleModule=Qi,cs.inputHandler=xi,cs.scrollHandler=Ai,cs.focusChangeEffect=wi,cs.perLineTextDirection=Oi,cs.exceptionSink=bi,cs.updateListener=_i,cs.editable=Pi,cs.mouseSelectionStyle=yi,cs.dragMovesSelection=mi,cs.clickAddsSelectionRange=vi,cs.decorations=Ni,cs.outerDecorations=zi,cs.atomicRanges=Bi,cs.bidiIsolatedRanges=Fi,cs.scrollMargins=ji,cs.darkTheme=Ba,cs.cspNonce=ee.define({combine:t=>t.length?t[0]:""}),cs.contentAttributes=Li,cs.editorAttributes=Di,cs.lineWrapping=cs.contentAttributes.of({class:"cm-lineWrapping"}),cs.announce=Te.define();const hs=4096,ds={};class ps{constructor(t,e,n,r,i,o){this.from=t,this.to=e,this.dir=n,this.isolates=r,this.fresh=i,this.order=o}static update(t,e){if(e.empty&&!t.some((t=>t.fresh)))return t;let n=[],r=t.length?t[t.length-1].dir:Gr.LTR;for(let i=Math.max(0,t.length-10);i<t.length;i++){let o=t[i];o.dir!=r||e.touchesRange(o.from,o.to)||n.push(new ps(e.mapPos(o.from,1),e.mapPos(o.to,-1),o.dir,o.isolates,!1,o.order))}return n}}function fs(t,e,n){for(let r=t.state.facet(e),i=r.length-1;i>=0;i--){let e=r[i],o="function"==typeof e?e(t):e;o&&Mr(o,n)}return n}const gs=mr.mac?"mac":mr.windows?"win":mr.linux?"linux":"key";function vs(t,e){const n=t.split(/-(?!$)/);let r,i,o,a,s=n[n.length-1];"Space"==s&&(s=" ");for(let l=0;l<n.length-1;++l){const t=n[l];if(/^(cmd|meta|m)$/i.test(t))a=!0;else if(/^a(lt)?$/i.test(t))r=!0;else if(/^(c|ctrl|control)$/i.test(t))i=!0;else if(/^s(hift)?$/i.test(t))o=!0;else{if(!/^mod$/i.test(t))throw new Error("Unrecognized modifier name: "+t);"mac"==e?a=!0:i=!0}}return r&&(s="Alt-"+s),i&&(s="Ctrl-"+s),a&&(s="Meta-"+s),o&&(s="Shift-"+s),s}function ms(t,e,n){return e.altKey&&(t="Alt-"+t),e.ctrlKey&&(t="Ctrl-"+t),e.metaKey&&(t="Meta-"+t),!1!==n&&e.shiftKey&&(t="Shift-"+t),t}const ys=he.default(cs.domEventHandlers({keydown(t,e){return Cs(xs(e.state),t,e,"editor")}})),bs=ee.define({enables:ys}),_s=new WeakMap;function xs(t){let e=t.facet(bs),n=_s.get(e);return n||_s.set(e,n=As(e.reduce(((t,e)=>t.concat(e)),[]))),n}function ws(t,e,n){return Cs(xs(t.state),e,t,n)}let Os=null;const Ss=4e3;function As(t,e=gs){let n=Object.create(null),r=Object.create(null),i=(t,e)=>{let n=r[t];if(null==n)r[t]=e;else if(n!=e)throw new Error("Key binding "+t+" is used both as a regular binding and as a multi-stroke prefix")},o=(t,r,o,a,s)=>{var l,u;let c=n[t]||(n[t]=Object.create(null)),h=r.split(/ (?!$)/).map((t=>vs(t,e)));for(let e=1;e<h.length;e++){let n=h.slice(0,e).join(" ");i(n,!0),c[n]||(c[n]={preventDefault:!0,stopPropagation:!1,run:[e=>{let r=Os={view:e,prefix:n,scope:t};return setTimeout((()=>{Os==r&&(Os=null)}),Ss),!0}]})}let d=h.join(" ");i(d,!1);let p=c[d]||(c[d]={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())||[]});o&&p.run.push(o),a&&(p.preventDefault=!0),s&&(p.stopPropagation=!0)};for(let a of t){let t=a.scope?a.scope.split(" "):["editor"];if(a.any)for(let e of t){let t=n[e]||(n[e]=Object.create(null));t._any||(t._any={preventDefault:!1,stopPropagation:!1,run:[]});let{any:r}=a;for(let e in t)t[e].run.push((t=>r(t,ks)))}let r=a[e]||a.key;if(r)for(let e of t)o(e,r,a.run,a.preventDefault,a.stopPropagation),a.shift&&o(e,"Shift-"+r,a.shift,a.preventDefault,a.stopPropagation)}return n}let ks=null;function Cs(t,e,n,r){ks=e;let i=An(e),o=zt(i,0),a=Ft(o)==i.length&&" "!=i,s="",l=!1,u=!1,c=!1;Os&&Os.view==n&&Os.scope==r&&(s=Os.prefix+" ",Mo.indexOf(e.keyCode)<0&&(u=!0,Os=null));let h,d,p=new Set,f=t=>{if(t){for(let e of t.run)if(!p.has(e)&&(p.add(e),e(n)))return t.stopPropagation&&(c=!0),!0;t.preventDefault&&(t.stopPropagation&&(c=!0),u=!0)}return!1},g=t[r];return g&&(f(g[s+ms(i,e,!a)])?l=!0:a&&(e.altKey||e.metaKey||e.ctrlKey)&&!(mr.windows&&e.ctrlKey&&e.altKey)&&(h=bn[e.keyCode])&&h!=i?(f(g[s+ms(h,e,!0)])||e.shiftKey&&(d=_n[e.keyCode])!=i&&d!=h&&f(g[s+ms(d,e,!1)]))&&(l=!0):a&&e.shiftKey&&f(g[s+ms(i,e,!0)])&&(l=!0),!l&&f(g._any)&&(l=!0)),u&&(l=!0),l&&c&&e.stopPropagation(),ks=null,l}class Ms{constructor(t,e,n,r,i){this.className=t,this.left=e,this.top=n,this.width=r,this.height=i}draw(){let t=document.createElement("div");return t.className=this.className,this.adjust(t),t}update(t,e){return e.className==this.className&&(this.adjust(t),!0)}adjust(t){t.style.left=this.left+"px",t.style.top=this.top+"px",null!=this.width&&(t.style.width=this.width+"px"),t.style.height=this.height+"px"}eq(t){return this.left==t.left&&this.top==t.top&&this.width==t.width&&this.height==t.height&&this.className==t.className}static forRange(t,e,n){if(n.empty){let r=t.coordsAtPos(n.head,n.assoc||1);if(!r)return[];let i=Ts(t);return[new Ms(e,r.left-i.left,r.top-i.top,null,r.bottom-r.top)]}return Is(t,e,n)}}function Ts(t){let e=t.scrollDOM.getBoundingClientRect(),n=t.textDirection==Gr.LTR?e.left:e.right-t.scrollDOM.clientWidth*t.scaleX;return{left:n-t.scrollDOM.scrollLeft*t.scaleX,top:e.top-t.scrollDOM.scrollTop*t.scaleY}}function Ps(t,e,n,r){let i=t.coordsAtPos(e,2*n);if(!i)return r;let o=t.dom.getBoundingClientRect(),a=(i.top+i.bottom)/2,s=t.posAtCoords({x:o.left+1,y:a}),l=t.posAtCoords({x:o.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 Is(t,e,n){if(n.to<=t.viewport.from||n.from>=t.viewport.to)return[];let r=Math.max(n.from,t.viewport.from),i=Math.min(n.to,t.viewport.to),o=t.textDirection==Gr.LTR,a=t.contentDOM,s=a.getBoundingClientRect(),l=Ts(t),u=a.querySelector(".cm-line"),c=u&&window.getComputedStyle(u),h=s.left+(c?parseInt(c.paddingLeft)+Math.min(0,parseInt(c.textIndent)):0),d=s.right-(c?parseInt(c.paddingRight):0),p=vo(t,r),f=vo(t,i),g=p.type==Lr.Text?p:null,v=f.type==Lr.Text?f:null;if(g&&(t.lineWrapping||p.widgetLineBreaks)&&(g=Ps(t,r,1,g)),v&&(t.lineWrapping||f.widgetLineBreaks)&&(v=Ps(t,i,-1,v)),g&&v&&g.from==v.from&&g.to==v.to)return y(b(n.from,n.to,g));{let e=g?b(n.from,null,g):_(p,!1),r=v?b(null,n.to,v):_(f,!0),i=[];return(g||p).to<(v||f).from-(g&&v?1:0)||p.widgetLineBreaks>1&&e.bottom+t.defaultLineHeight/2<r.top?i.push(m(h,e.bottom,d,r.top)):e.bottom<r.top&&t.elementAtHeight((e.bottom+r.top)/2).type==Lr.Text&&(e.bottom=r.top=(e.bottom+r.top)/2),y(e).concat(i).concat(y(r))}function m(t,n,r,i){return new Ms(e,t-l.left,n-l.top-.01,r-t,i-n+.01)}function y({top:t,bottom:e,horizontal:n}){let r=[];for(let i=0;i<n.length;i+=2)r.push(m(n[i],t,n[i+1],e));return r}function b(e,n,r){let i=1e9,a=-1e9,s=[];function l(e,n,l,u,c){let p=t.coordsAtPos(e,e==r.to?-2:2),f=t.coordsAtPos(l,l==r.from?2:-2);p&&f&&(i=Math.min(p.top,f.top,i),a=Math.max(p.bottom,f.bottom,a),c==Gr.LTR?s.push(o&&n?h:p.left,o&&u?d:f.right):s.push(!o&&u?h:f.left,!o&&n?d:p.right))}let u=null!==e&&void 0!==e?e:r.from,c=null!==n&&void 0!==n?n:r.to;for(let o of t.visibleRanges)if(o.to>u&&o.from<c)for(let r=Math.max(o.from,u),i=Math.min(o.to,c);;){let o=t.state.doc.lineAt(r);for(let a of t.bidiSpans(o)){let t=a.from+o.from,s=a.to+o.from;if(t>=i)break;s>r&&l(Math.max(t,r),null==e&&t<=u,Math.min(s,i),null==n&&s>=c,a.dir)}if(r=o.to+1,r>=i)break}return 0==s.length&&l(u,null==e,c,null==n,t.textDirection),{top:i,bottom:a,horizontal:s}}function _(t,e){let n=s.top+(e?t.top:t.bottom);return{top:n,bottom:n,horizontal:[]}}}function $s(t,e){return t.constructor==e.constructor&&t.eq(e)}class Es{constructor(t,e){this.view=t,this.layer=e,this.drawn=[],this.scaleX=1,this.scaleY=1,this.measureReq={read:this.measure.bind(this),write:this.draw.bind(this)},this.dom=t.scrollDOM.appendChild(document.createElement("div")),this.dom.classList.add("cm-layer"),e.above&&this.dom.classList.add("cm-layer-above"),e.class&&this.dom.classList.add(e.class),this.scale(),this.dom.setAttribute("aria-hidden","true"),this.setOrder(t.state),t.requestMeasure(this.measureReq),e.mount&&e.mount(this.dom,t)}update(t){t.startState.facet(Rs)!=t.state.facet(Rs)&&this.setOrder(t.state),(this.layer.update(t,this.dom)||t.geometryChanged)&&(this.scale(),t.view.requestMeasure(this.measureReq))}docViewUpdate(t){!1!==this.layer.updateOnDocViewUpdate&&t.requestMeasure(this.measureReq)}setOrder(t){let e=0,n=t.facet(Rs);while(e<n.length&&n[e]!=this.layer)e++;this.dom.style.zIndex=String((this.layer.above?150:-1)-e)}measure(){return this.layer.markers(this.view)}scale(){let{scaleX:t,scaleY:e}=this.view;t==this.scaleX&&e==this.scaleY||(this.scaleX=t,this.scaleY=e,this.dom.style.transform=`scale(${1/t}, ${1/e})`)}draw(t){if(t.length!=this.drawn.length||t.some(((t,e)=>!$s(t,this.drawn[e])))){let e=this.dom.firstChild,n=0;for(let r of t)r.update&&e&&r.constructor&&this.drawn[n].constructor&&r.update(e,this.drawn[n])?(e=e.nextSibling,n++):this.dom.insertBefore(r.draw(),e);while(e){let t=e.nextSibling;e.remove(),e=t}this.drawn=t}}destroy(){this.layer.destroy&&this.layer.destroy(this.dom,this.view),this.dom.remove()}}const Rs=ee.define();function Ds(t){return[Ei.define((e=>new Es(e,t))),Rs.of(t)]}const Ls=!mr.ios,Ns=ee.define({combine(t){return He(t,{cursorBlinkRate:1200,drawRangeCursor:!0},{cursorBlinkRate:(t,e)=>Math.min(t,e),drawRangeCursor:(t,e)=>t||e})}});function zs(t={}){return[Ns.of(t),Fs,js,Qs,Si.of(!0)]}function Bs(t){return t.startState.facet(Ns)!=t.state.facet(Ns)}const Fs=Ds({above:!0,markers(t){let{state:e}=t,n=e.facet(Ns),r=[];for(let i of e.selection.ranges){let o=i==e.selection.main;if(i.empty?!o||Ls:n.drawRangeCursor){let e=o?"cm-cursor cm-cursor-primary":"cm-cursor cm-cursor-secondary",n=i.empty?i:Kt.cursor(i.head,i.head>i.anchor?-1:1);for(let i of Ms.forRange(t,e,n))r.push(i)}}return r},update(t,e){t.transactions.some((t=>t.selection))&&(e.style.animationName="cm-blink"==e.style.animationName?"cm-blink2":"cm-blink");let n=Bs(t);return n&&Ws(t.state,e),t.docChanged||t.selectionSet||n},mount(t,e){Ws(e.state,t)},class:"cm-cursorLayer"});function Ws(t,e){e.style.animationDuration=t.facet(Ns).cursorBlinkRate+"ms"}const js=Ds({above:!1,markers(t){return t.state.selection.ranges.map((e=>e.empty?[]:Ms.forRange(t,"cm-selectionBackground",e))).reduce(((t,e)=>t.concat(e)))},update(t,e){return t.docChanged||t.selectionSet||t.viewportChanged||Bs(t)},class:"cm-selectionLayer"}),Vs={".cm-line":{"& ::selection, &::selection":{backgroundColor:"transparent !important"}},".cm-content":{"& :focus":{caretColor:"initial !important","&::selection, & ::selection":{backgroundColor:"Highlight !important"}}}};Ls&&(Vs[".cm-line"].caretColor=Vs[".cm-content"].caretColor="transparent !important");const Qs=he.highest(cs.theme(Vs)),Hs=Te.define({map(t,e){return null==t?null:e.mapPos(t)}}),Zs=le.define({create(){return null},update(t,e){return null!=t&&(t=e.changes.mapPos(t)),e.effects.reduce(((t,e)=>e.is(Hs)?e.value:t),t)}}),Gs=Ei.fromClass(class{constructor(t){this.view=t,this.cursor=null,this.measureReq={read:this.readPos.bind(this),write:this.drawCursor.bind(this)}}update(t){var e;let n=t.state.field(Zs);null==n?null!=this.cursor&&(null===(e=this.cursor)||void 0===e||e.remove(),this.cursor=null):(this.cursor||(this.cursor=this.view.scrollDOM.appendChild(document.createElement("div")),this.cursor.className="cm-dropCursor"),(t.startState.field(Zs)!=n||t.docChanged||t.geometryChanged)&&this.view.requestMeasure(this.measureReq))}readPos(){let{view:t}=this,e=t.state.field(Zs),n=null!=e&&t.coordsAtPos(e);if(!n)return null;let r=t.scrollDOM.getBoundingClientRect();return{left:n.left-r.left+t.scrollDOM.scrollLeft*t.scaleX,top:n.top-r.top+t.scrollDOM.scrollTop*t.scaleY,height:n.bottom-n.top}}drawCursor(t){if(this.cursor){let{scaleX:e,scaleY:n}=this.view;t?(this.cursor.style.left=t.left/e+"px",this.cursor.style.top=t.top/n+"px",this.cursor.style.height=t.height/n+"px"):this.cursor.style.left="-100000px"}}destroy(){this.cursor&&this.cursor.remove()}setDropPos(t){this.view.state.field(Zs)!=t&&this.view.dispatch({effects:Hs.of(t)})}},{eventObservers:{dragover(t){this.setDropPos(this.view.posAtCoords({x:t.clientX,y:t.clientY}))},dragleave(t){t.target!=this.view.contentDOM&&this.view.contentDOM.contains(t.relatedTarget)||this.setDropPos(null)},dragend(){this.setDropPos(null)},drop(){this.setDropPos(null)}}});function Xs(){return[Zs,Gs]}function Us(t,e,n,r,i){e.lastIndex=0;for(let o,a=t.iterRange(n,r),s=n;!a.next().done;s+=a.value.length)if(!a.lineBreak)while(o=e.exec(a.value))i(s+o.index,o)}function Ys(t,e){let n=t.visibleRanges;if(1==n.length&&n[0].from==t.viewport.from&&n[0].to==t.viewport.to)return n;let r=[];for(let{from:i,to:o}of n)i=Math.max(t.state.doc.lineAt(i).from,i-e),o=Math.min(t.state.doc.lineAt(o).to,o+e),r.length&&r[r.length-1].to>=i?r[r.length-1].to=o:r.push({from:i,to:o});return r}class qs{constructor(t){const{regexp:e,decoration:n,decorate:r,boundary:i,maxLength:o=1e3}=t;if(!e.global)throw new RangeError("The regular expression given to MatchDecorator should have its 'g' flag set");if(this.regexp=e,r)this.addMatch=(t,e,n,i)=>r(i,n,n+t[0].length,t,e);else if("function"==typeof n)this.addMatch=(t,e,r,i)=>{let o=n(t,e,r);o&&i(r,r+t[0].length,o)};else{if(!n)throw new RangeError("Either 'decorate' or 'decoration' should be provided to MatchDecorator");this.addMatch=(t,e,r,i)=>i(r,r+t[0].length,n)}this.boundary=i,this.maxLength=o}createDeco(t){let e=new Ke,n=e.add.bind(e);for(let{from:r,to:i}of Ys(t,this.maxLength))Us(t.state.doc,this.regexp,r,i,((e,r)=>this.addMatch(r,t,e,n)));return e.finish()}updateDeco(t,e){let n=1e9,r=-1;return t.docChanged&&t.changes.iterChanges(((e,i,o,a)=>{a>t.view.viewport.from&&o<t.view.viewport.to&&(n=Math.min(o,n),r=Math.max(a,r))})),t.viewportChanged||r-n>1e3?this.createDeco(t.view):r>-1?this.updateRange(t.view,e.map(t.changes),n,r):e}updateRange(t,e,n,r){for(let i of t.visibleRanges){let o=Math.max(i.from,n),a=Math.min(i.to,r);if(a>o){let n=t.state.doc.lineAt(o),r=n.to<a?t.state.doc.lineAt(a):n,s=Math.max(i.from,n.from),l=Math.min(i.to,r.to);if(this.boundary){for(;o>n.from;o--)if(this.boundary.test(n.text[o-1-n.from])){s=o;break}for(;a<r.to;a++)if(this.boundary.test(r.text[a-r.from])){l=a;break}}let u,c=[],h=(t,e,n)=>c.push(n.range(t,e));if(n==r){this.regexp.lastIndex=s-n.from;while((u=this.regexp.exec(n.text))&&u.index<l-n.from)this.addMatch(u,t,u.index+n.from,h)}else Us(t.state.doc,this.regexp,s,l,((e,n)=>this.addMatch(n,t,e,h)));e=e.update({filterFrom:s,filterTo:l,filter:(t,e)=>t<s||e>l,add:c})}}return e}}const Ks=null!=/x/.unicode?"gu":"g",Js=new RegExp("[\0-\b\n--Ÿ­؜​‎‏\u2028\u2029‭‮⁦⁧⁩\ufeff-]",Ks),tl={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 el=null;function nl(){var t;if(null==el&&"undefined"!=typeof document&&document.body){let e=document.body.style;el=null!=(null!==(t=e.tabSize)&&void 0!==t?t:e.MozTabSize)}return el||!1}const rl=ee.define({combine(t){let e=He(t,{render:null,specialChars:Js,addSpecialChars:null});return(e.replaceTabs=!nl())&&(e.specialChars=new RegExp("\t|"+e.specialChars.source,Ks)),e.addSpecialChars&&(e.specialChars=new RegExp(e.specialChars.source+"|"+e.addSpecialChars.source,Ks)),e}});function il(t={}){return[rl.of(t),al()]}let ol=null;function al(){return ol||(ol=Ei.fromClass(class{constructor(t){this.view=t,this.decorations=Nr.none,this.decorationCache=Object.create(null),this.decorator=this.makeDecorator(t.state.facet(rl)),this.decorations=this.decorator.createDeco(t)}makeDecorator(t){return new qs({regexp:t.specialChars,decoration:(e,n,r)=>{let{doc:i}=n.state,o=zt(e[0],0);if(9==o){let t=i.lineAt(r),e=n.state.tabSize,o=cn(t.text,e,r-t.from);return Nr.replace({widget:new cl((e-o%e)*this.view.defaultCharacterWidth/this.view.scaleX)})}return this.decorationCache[o]||(this.decorationCache[o]=Nr.replace({widget:new ul(t,o)}))},boundary:t.replaceTabs?void 0:/[^]/})}update(t){let e=t.state.facet(rl);t.startState.facet(rl)!=e?(this.decorator=this.makeDecorator(e),this.decorations=this.decorator.createDeco(t.view)):this.decorations=this.decorator.updateDeco(t,this.decorations)}},{decorations:t=>t.decorations}))}const sl="•";function ll(t){return t>=32?sl:10==t?"␤":String.fromCharCode(9216+t)}class ul extends Dr{constructor(t,e){super(),this.options=t,this.code=e}eq(t){return t.code==this.code}toDOM(t){let e=ll(this.code),n=t.state.phrase("Control character")+" "+(tl[this.code]||"0x"+this.code.toString(16)),r=this.options.render&&this.options.render(this.code,n,e);if(r)return r;let i=document.createElement("span");return i.textContent=e,i.title=n,i.setAttribute("aria-label",n),i.className="cm-specialChar",i}ignoreEvent(){return!1}}class cl extends Dr{constructor(t){super(),this.width=t}eq(t){return t.width==this.width}toDOM(){let t=document.createElement("span");return t.textContent="\t",t.className="cm-tab",t.style.width=this.width+"px",t}ignoreEvent(){return!1}}function hl(){return pl}const dl=Nr.line({class:"cm-activeLine"}),pl=Ei.fromClass(class{constructor(t){this.decorations=this.getDeco(t)}update(t){(t.docChanged||t.selectionSet)&&(this.decorations=this.getDeco(t.view))}getDeco(t){let e=-1,n=[];for(let r of t.state.selection.ranges){let i=t.lineBlockAt(r.head);i.from>e&&(n.push(dl.range(i.from)),e=i.from)}return Nr.set(n)}},{decorations:t=>t.decorations});class fl extends Dr{constructor(t){super(),this.content=t}toDOM(){let t=document.createElement("span");return t.className="cm-placeholder",t.style.pointerEvents="none",t.appendChild("string"==typeof this.content?document.createTextNode(this.content):this.content),"string"==typeof this.content?t.setAttribute("aria-label","placeholder "+this.content):t.setAttribute("aria-hidden","true"),t}coordsAt(t){let e=t.firstChild?Pn(t.firstChild):[];if(!e.length)return null;let n=window.getComputedStyle(t.parentNode),r=Ln(e[0],"rtl"!=n.direction),i=parseInt(n.lineHeight);return r.bottom-r.top>1.5*i?{left:r.left,right:r.right,top:r.top,bottom:r.top+i}:r}ignoreEvent(){return!1}}function gl(t){return Ei.fromClass(class{constructor(e){this.view=e,this.placeholder=t?Nr.set([Nr.widget({widget:new fl(t),side:1}).range(0)]):Nr.none}get decorations(){return this.view.state.doc.length?Nr.none:this.placeholder}},{decorations:t=>t.decorations})}const vl=2e3;function ml(t,e,n){let r=Math.min(e.line,n.line),i=Math.max(e.line,n.line),o=[];if(e.off>vl||n.off>vl||e.col<0||n.col<0){let a=Math.min(e.off,n.off),s=Math.max(e.off,n.off);for(let e=r;e<=i;e++){let n=t.doc.line(e);n.length<=s&&o.push(Kt.range(n.from+a,n.to+s))}}else{let a=Math.min(e.col,n.col),s=Math.max(e.col,n.col);for(let e=r;e<=i;e++){let n=t.doc.line(e),r=hn(n.text,a,t.tabSize,!0);if(r<0)o.push(Kt.cursor(n.to));else{let e=hn(n.text,s,t.tabSize);o.push(Kt.range(n.from+r,n.from+e))}}}return o}function yl(t,e){let n=t.coordsAtPos(t.viewport.from);return n?Math.round(Math.abs((n.left-e)/t.defaultCharacterWidth)):-1}function bl(t,e){let n=t.posAtCoords({x:e.clientX,y:e.clientY},!1),r=t.state.doc.lineAt(n),i=n-r.from,o=i>vl?-1:i==r.length?yl(t,e.clientX):cn(r.text,t.state.tabSize,n-r.from);return{line:r.number,col:o,off:i}}function _l(t,e){let n=bl(t,e),r=t.state.selection;return n?{update(t){if(t.docChanged){let e=t.changes.mapPos(t.startState.doc.line(n.line).from),i=t.state.doc.lineAt(e);n={line:i.number,col:n.col,off:Math.min(n.off,i.length)},r=r.map(t.changes)}},get(e,i,o){let a=bl(t,e);if(!a)return r;let s=ml(t.state,n,a);return s.length?o?Kt.create(s.concat(r.ranges)):Kt.create(s):r}}:null}function xl(t){let e=(null===t||void 0===t?void 0:t.eventFilter)||(t=>t.altKey&&0==t.button);return cs.mouseSelectionStyle.of(((t,n)=>e(n)?_l(t,n):null))}const wl={Alt:[18,t=>!!t.altKey],Control:[17,t=>!!t.ctrlKey],Shift:[16,t=>!!t.shiftKey],Meta:[91,t=>!!t.metaKey]},Ol={style:"cursor: crosshair"};function Sl(t={}){let[e,n]=wl[t.key||"Alt"],r=Ei.fromClass(class{constructor(t){this.view=t,this.isDown=!1}set(t){this.isDown!=t&&(this.isDown=t,this.view.update([]))}},{eventObservers:{keydown(t){this.set(t.keyCode==e||n(t))},keyup(t){t.keyCode!=e&&n(t)||this.set(!1)},mousemove(t){this.set(n(t))}}});return[r,cs.contentAttributes.of((t=>{var e;return(null===(e=t.plugin(r))||void 0===e?void 0:e.isDown)?Ol:null}))]}const Al="-10000px";class kl{constructor(t,e,n,r){this.facet=e,this.createTooltipView=n,this.removeTooltipView=r,this.input=t.state.facet(e),this.tooltips=this.input.filter((t=>t));let i=null;this.tooltipViews=this.tooltips.map((t=>i=n(t,i)))}update(t,e){var n;let r=t.state.facet(this.facet),i=r.filter((t=>t));if(r===this.input){for(let e of this.tooltipViews)e.update&&e.update(t);return!1}let o=[],a=e?[]:null;for(let s=0;s<i.length;s++){let n=i[s],r=-1;if(n){for(let t=0;t<this.tooltips.length;t++){let e=this.tooltips[t];e&&e.create==n.create&&(r=t)}if(r<0)o[s]=this.createTooltipView(n,s?o[s-1]:null),a&&(a[s]=!!n.above);else{let n=o[s]=this.tooltipViews[r];a&&(a[s]=e[r]),n.update&&n.update(t)}}}for(let s of this.tooltipViews)o.indexOf(s)<0&&(this.removeTooltipView(s),null===(n=s.destroy)||void 0===n||n.call(s));return e&&(a.forEach(((t,n)=>e[n]=t)),e.length=a.length),this.input=r,this.tooltips=i,this.tooltipViews=o,!0}}function Cl(t){let{win:e}=t;return{top:0,left:0,bottom:e.innerHeight,right:e.innerWidth}}const Ml=ee.define({combine:t=>{var e,n,r;return{position:mr.ios?"absolute":(null===(e=t.find((t=>t.position)))||void 0===e?void 0:e.position)||"fixed",parent:(null===(n=t.find((t=>t.parent)))||void 0===n?void 0:n.parent)||null,tooltipSpace:(null===(r=t.find((t=>t.tooltipSpace)))||void 0===r?void 0:r.tooltipSpace)||Cl}}}),Tl=new WeakMap,Pl=Ei.fromClass(class{constructor(t){this.view=t,this.above=[],this.inView=!0,this.madeAbsolute=!1,this.lastTransaction=0,this.measureTimeout=-1;let e=t.state.facet(Ml);this.position=e.position,this.parent=e.parent,this.classes=t.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 kl(t,El,((t,e)=>this.createTooltip(t,e)),(t=>{this.resizeObserver&&this.resizeObserver.unobserve(t.dom),t.dom.remove()})),this.above=this.manager.tooltips.map((t=>!!t.above)),this.intersectionObserver="function"==typeof IntersectionObserver?new IntersectionObserver((t=>{Date.now()>this.lastTransaction-50&&t.length>0&&t[t.length-1].intersectionRatio<1&&this.measureSoon()}),{threshold:[1]}):null,this.observeIntersection(),t.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 t of this.manager.tooltipViews)this.intersectionObserver.observe(t.dom)}}measureSoon(){this.measureTimeout<0&&(this.measureTimeout=setTimeout((()=>{this.measureTimeout=-1,this.maybeMeasure()}),50))}update(t){t.transactions.length&&(this.lastTransaction=Date.now());let e=this.manager.update(t,this.above);e&&this.observeIntersection();let n=e||t.geometryChanged,r=t.state.facet(Ml);if(r.position!=this.position&&!this.madeAbsolute){this.position=r.position;for(let t of this.manager.tooltipViews)t.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 t of this.manager.tooltipViews)this.container.appendChild(t.dom);n=!0}else this.parent&&this.view.themeClasses!=this.classes&&(this.classes=this.container.className=this.view.themeClasses);n&&this.maybeMeasure()}createTooltip(t,e){let n=t.create(this.view),r=e?e.dom:null;if(n.dom.classList.add("cm-tooltip"),t.arrow&&!n.dom.querySelector(".cm-tooltip > .cm-tooltip-arrow")){let t=document.createElement("div");t.className="cm-tooltip-arrow",n.dom.appendChild(t)}return n.dom.style.position=this.position,n.dom.style.top=Al,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 t,e,n;this.view.win.removeEventListener("resize",this.measureSoon);for(let r of this.manager.tooltipViews)r.dom.remove(),null===(t=r.destroy)||void 0===t||t.call(r);this.parent&&this.container.remove(),null===(e=this.resizeObserver)||void 0===e||e.disconnect(),null===(n=this.intersectionObserver)||void 0===n||n.disconnect(),clearTimeout(this.measureTimeout)}readMeasure(){let t=this.view.dom.getBoundingClientRect(),e=1,n=1,r=!1;if("fixed"==this.position&&this.manager.tooltipViews.length){let{dom:t}=this.manager.tooltipViews[0];if(mr.gecko)r=t.offsetParent!=this.container.ownerDocument.body;else if(t.style.top==Al&&"0px"==t.style.left){let e=t.getBoundingClientRect();r=Math.abs(e.top+1e4)>1||Math.abs(e.left)>1}}if(r||"absolute"==this.position)if(this.parent){let t=this.parent.getBoundingClientRect();t.width&&t.height&&(e=t.width/this.parent.offsetWidth,n=t.height/this.parent.offsetHeight)}else({scaleX:e,scaleY:n}=this.view.viewState);return{editor:t,parent:this.parent?this.container.getBoundingClientRect():t,pos:this.manager.tooltips.map(((t,e)=>{let n=this.manager.tooltipViews[e];return n.getCoords?n.getCoords(t.pos):this.view.coordsAtPos(t.pos)})),size:this.manager.tooltipViews.map((({dom:t})=>t.getBoundingClientRect())),space:this.view.state.facet(Ml).tooltipSpace(this.view),scaleX:e,scaleY:n,makeAbsolute:r}}writeMeasure(t){var e;if(t.makeAbsolute){this.madeAbsolute=!0,this.position="absolute";for(let t of this.manager.tooltipViews)t.dom.style.position="absolute"}let{editor:n,space:r,scaleX:i,scaleY:o}=t,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,h=t.pos[s],d=t.size[s];if(!h||h.bottom<=Math.max(n.top,r.top)||h.top>=Math.min(n.bottom,r.bottom)||h.right<Math.max(n.left,r.left)-.1||h.left>Math.min(n.right,r.right)+.1){c.style.top=Al;continue}let p=l.arrow?u.dom.querySelector(".cm-tooltip-arrow"):null,f=p?7:0,g=d.right-d.left,v=null!==(e=Tl.get(u))&&void 0!==e?e:d.bottom-d.top,m=u.offset||$l,y=this.view.textDirection==Gr.LTR,b=d.width>r.right-r.left?y?r.left:r.right-d.width:y?Math.min(h.left-(p?14:0)+m.x,r.right-g):Math.max(r.left,h.left-g+(p?14:0)-m.x),_=this.above[s];!l.strictSide&&(_?h.top-(d.bottom-d.top)-m.y<r.top:h.bottom+(d.bottom-d.top)+m.y>r.bottom)&&_==r.bottom-h.bottom>h.top-r.top&&(_=this.above[s]=!_);let x=(_?h.top-r.top:r.bottom-h.bottom)-f;if(x<v&&!1!==u.resize){if(x<this.view.defaultLineHeight){c.style.top=Al;continue}Tl.set(u,v),c.style.height=(v=x)/o+"px"}else c.style.height&&(c.style.height="");let w=_?h.top-v-f-m.y:h.bottom+f+m.y,O=b+g;if(!0!==u.overlap)for(let t of a)t.left<O&&t.right>b&&t.top<w+v&&t.bottom>w&&(w=_?t.top-v-2-f:t.bottom+f+2);if("absolute"==this.position?(c.style.top=(w-t.parent.top)/o+"px",c.style.left=(b-t.parent.left)/i+"px"):(c.style.top=w/o+"px",c.style.left=b/i+"px"),p){let t=h.left+(y?m.x:-m.x)-(b+14-7);p.style.left=t/i+"px"}!0!==u.overlap&&a.push({left:b,top:w,right:O,bottom:w+v}),c.classList.toggle("cm-tooltip-above",_),c.classList.toggle("cm-tooltip-below",!_),u.positioned&&u.positioned(t.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 t of this.manager.tooltipViews)t.dom.style.top=Al}},{eventObservers:{scroll(){this.maybeMeasure()}}}),Il=cs.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"}}}),$l={x:0,y:0},El=ee.define({enables:[Pl,Il]}),Rl=ee.define({combine:t=>t.reduce(((t,e)=>t.concat(e)),[])});class Dl{static create(t){return new Dl(t)}constructor(t){this.view=t,this.mounted=!1,this.dom=document.createElement("div"),this.dom.classList.add("cm-tooltip-hover"),this.manager=new kl(t,Rl,((t,e)=>this.createHostedView(t,e)),(t=>t.dom.remove()))}createHostedView(t,e){let n=t.create(this.view);return n.dom.classList.add("cm-tooltip-section"),this.dom.insertBefore(n.dom,e?e.dom.nextSibling:this.dom.firstChild),this.mounted&&n.mount&&n.mount(this.view),n}mount(t){for(let e of this.manager.tooltipViews)e.mount&&e.mount(t);this.mounted=!0}positioned(t){for(let e of this.manager.tooltipViews)e.positioned&&e.positioned(t)}update(t){this.manager.update(t)}destroy(){var t;for(let e of this.manager.tooltipViews)null===(t=e.destroy)||void 0===t||t.call(e)}passProp(t){let e;for(let n of this.manager.tooltipViews){let r=n[t];if(void 0!==r)if(void 0===e)e=r;else if(e!==r)return}return e}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 Ll=El.compute([Rl],(t=>{let e=t.facet(Rl);return 0===e.length?null:{pos:Math.min(...e.map((t=>t.pos))),end:Math.max(...e.map((t=>{var e;return null!==(e=t.end)&&void 0!==e?e:t.pos}))),create:Dl.create,above:e[0].above,arrow:e.some((t=>t.arrow))}}));class Nl{constructor(t,e,n,r,i){this.view=t,this.source=e,this.field=n,this.setHover=r,this.hoverTime=i,this.hoverTimeout=-1,this.restartTimeout=-1,this.pending=null,this.lastMove={x:0,y:0,target:t.dom,time:0},this.checkHover=this.checkHover.bind(this),t.dom.addEventListener("mouseleave",this.mouseleave=this.mouseleave.bind(this)),t.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 t=Date.now()-this.lastMove.time;t<this.hoverTime?this.hoverTimeout=setTimeout(this.checkHover,this.hoverTime-t):this.startHover()}startHover(){clearTimeout(this.restartTimeout);let{view:t,lastMove:e}=this,n=t.docView.nearest(e.target);if(!n)return;let r,i=1;if(n instanceof wr)r=n.posAtStart;else{if(r=t.posAtCoords(e),null==r)return;let n=t.coordsAtPos(r);if(!n||e.y<n.top||e.y>n.bottom||e.x<n.left-t.defaultCharacterWidth||e.x>n.right+t.defaultCharacterWidth)return;let o=t.bidiSpans(t.state.doc.lineAt(r)).find((t=>t.from<=r&&t.to>=r)),a=o&&o.dir==Gr.RTL?-1:1;i=e.x<n.left?-a:a}let o=this.source(t,r,i);if(null===o||void 0===o?void 0:o.then){let e=this.pending={pos:r};o.then((n=>{this.pending==e&&(this.pending=null,!n||Array.isArray(n)&&!n.length||t.dispatch({effects:this.setHover.of(Array.isArray(n)?n:[n])}))}),(e=>Ti(t.state,e,"hover tooltip")))}else!o||Array.isArray(o)&&!o.length||t.dispatch({effects:this.setHover.of(Array.isArray(o)?o:[o])})}get tooltip(){let t=this.view.plugin(Pl),e=t?t.manager.tooltips.findIndex((t=>t.create==Dl.create)):-1;return e>-1?t.manager.tooltipViews[e]:null}mousemove(t){var e,n;this.lastMove={x:t.clientX,y:t.clientY,target:t.target,time:Date.now()},this.hoverTimeout<0&&(this.hoverTimeout=setTimeout(this.checkHover,this.hoverTime));let{active:r,tooltip:i}=this;if(r.length&&i&&!Bl(i.dom,t)||this.pending){let{pos:i}=r[0]||this.pending,o=null!==(n=null===(e=r[0])||void 0===e?void 0:e.end)&&void 0!==n?n:i;(i==o?this.view.posAtCoords(this.lastMove)==i:Fl(this.view,i,o,t.clientX,t.clientY))||(this.view.dispatch({effects:this.setHover.of([])}),this.pending=null)}}mouseleave(t){clearTimeout(this.hoverTimeout),this.hoverTimeout=-1;let{active:e}=this;if(e.length){let{tooltip:e}=this,n=e&&e.dom.contains(t.relatedTarget);n?this.watchTooltipLeave(e.dom):this.view.dispatch({effects:this.setHover.of([])})}}watchTooltipLeave(t){let e=n=>{t.removeEventListener("mouseleave",e),this.active.length&&!this.view.dom.contains(n.relatedTarget)&&this.view.dispatch({effects:this.setHover.of([])})};t.addEventListener("mouseleave",e)}destroy(){clearTimeout(this.hoverTimeout),this.view.dom.removeEventListener("mouseleave",this.mouseleave),this.view.dom.removeEventListener("mousemove",this.mousemove)}}const zl=4;function Bl(t,e){let n=t.getBoundingClientRect();return e.clientX>=n.left-zl&&e.clientX<=n.right+zl&&e.clientY>=n.top-zl&&e.clientY<=n.bottom+zl}function Fl(t,e,n,r,i,o){let a=t.scrollDOM.getBoundingClientRect(),s=t.documentTop+t.documentPadding.top+t.contentHeight;if(a.left>r||a.right<r||a.top>i||Math.min(a.bottom,s)<i)return!1;let l=t.posAtCoords({x:r,y:i},!1);return l>=e&&l<=n}function Wl(t,e={}){let n=Te.define(),r=le.define({create(){return[]},update(t,r){if(t.length&&(e.hideOnChange&&(r.docChanged||r.selection)?t=[]:e.hideOn&&(t=t.filter((t=>!e.hideOn(r,t)))),r.docChanged)){let e=[];for(let n of t){let t=r.changes.mapPos(n.pos,-1,jt.TrackDel);if(null!=t){let i=Object.assign(Object.create(null),n);i.pos=t,null!=i.end&&(i.end=r.changes.mapPos(i.end)),e.push(i)}}t=e}for(let e of r.effects)e.is(n)&&(t=e.value),e.is(Vl)&&(t=[]);return t},provide:t=>Rl.from(t)});return[r,Ei.define((i=>new Nl(i,t,r,n,e.hoverTime||300))),Ll]}function jl(t,e){let n=t.plugin(Pl);if(!n)return null;let r=n.manager.tooltips.indexOf(e);return r<0?null:n.manager.tooltipViews[r]}const Vl=Te.define();const Ql=ee.define({combine(t){let e,n;for(let r of t)e=e||r.topContainer,n=n||r.bottomContainer;return{topContainer:e,bottomContainer:n}}});function Hl(t,e){let n=t.plugin(Zl),r=n?n.specs.indexOf(e):-1;return r>-1?n.panels[r]:null}const Zl=Ei.fromClass(class{constructor(t){this.input=t.state.facet(Ul),this.specs=this.input.filter((t=>t)),this.panels=this.specs.map((e=>e(t)));let e=t.state.facet(Ql);this.top=new Gl(t,!0,e.topContainer),this.bottom=new Gl(t,!1,e.bottomContainer),this.top.sync(this.panels.filter((t=>t.top))),this.bottom.sync(this.panels.filter((t=>!t.top)));for(let n of this.panels)n.dom.classList.add("cm-panel"),n.mount&&n.mount()}update(t){let e=t.state.facet(Ql);this.top.container!=e.topContainer&&(this.top.sync([]),this.top=new Gl(t.view,!0,e.topContainer)),this.bottom.container!=e.bottomContainer&&(this.bottom.sync([]),this.bottom=new Gl(t.view,!1,e.bottomContainer)),this.top.syncClasses(),this.bottom.syncClasses();let n=t.state.facet(Ul);if(n!=this.input){let e=n.filter((t=>t)),r=[],i=[],o=[],a=[];for(let n of e){let e,s=this.specs.indexOf(n);s<0?(e=n(t.view),a.push(e)):(e=this.panels[s],e.update&&e.update(t)),r.push(e),(e.top?i:o).push(e)}this.specs=e,this.panels=r,this.top.sync(i),this.bottom.sync(o);for(let t of a)t.dom.classList.add("cm-panel"),t.mount&&t.mount()}else for(let r of this.panels)r.update&&r.update(t)}destroy(){this.top.sync([]),this.bottom.sync([])}},{provide:t=>cs.scrollMargins.of((e=>{let n=e.plugin(t);return n&&{top:n.top.scrollMargin(),bottom:n.bottom.scrollMargin()}}))});class Gl{constructor(t,e,n){this.view=t,this.top=e,this.container=n,this.dom=void 0,this.classes="",this.panels=[],this.syncClasses()}sync(t){for(let e of this.panels)e.destroy&&t.indexOf(e)<0&&e.destroy();this.panels=t,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 t=this.container||this.view.dom;t.insertBefore(this.dom,this.top?t.firstChild:null)}let t=this.dom.firstChild;for(let e of this.panels)if(e.dom.parentNode==this.dom){while(t!=e.dom)t=Xl(t);t=t.nextSibling}else this.dom.insertBefore(e.dom,t);while(t)t=Xl(t)}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 t of this.classes.split(" "))t&&this.container.classList.remove(t);for(let t of(this.classes=this.view.themeClasses).split(" "))t&&this.container.classList.add(t)}}}function Xl(t){let e=t.nextSibling;return t.remove(),e}const Ul=ee.define({enables:Zl});class Yl extends Ze{compare(t){return this==t||this.constructor==t.constructor&&this.eq(t)}eq(t){return!1}destroy(t){}}Yl.prototype.elementClass="",Yl.prototype.toDOM=void 0,Yl.prototype.mapMode=jt.TrackBefore,Yl.prototype.startSide=Yl.prototype.endSide=-1,Yl.prototype.point=!0;const ql=ee.define(),Kl={class:"",renderEmptyElements:!1,elementStyle:"",markers:()=>Ye.empty,lineMarker:()=>null,widgetMarker:()=>null,lineMarkerChange:null,initialSpacer:null,updateSpacer:null,domEventHandlers:{}},Jl=ee.define();function tu(t){return[nu(),Jl.of(Object.assign(Object.assign({},Kl),t))]}const eu=ee.define({combine:t=>t.some((t=>t))});function nu(t){let e=[ru];return t&&!1===t.fixed&&e.push(eu.of(!0)),e}const ru=Ei.fromClass(class{constructor(t){this.view=t,this.prevViewport=t.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=t.state.facet(Jl).map((e=>new su(t,e)));for(let e of this.gutters)this.dom.appendChild(e.dom);this.fixed=!t.state.facet(eu),this.fixed&&(this.dom.style.position="sticky"),this.syncGutters(!1),t.scrollDOM.insertBefore(this.dom,t.contentDOM)}update(t){if(this.updateGutters(t)){let e=this.prevViewport,n=t.view.viewport,r=Math.min(e.to,n.to)-Math.max(e.from,n.from);this.syncGutters(r<.8*(n.to-n.from))}t.geometryChanged&&(this.dom.style.minHeight=this.view.contentHeight/this.view.scaleY+"px"),this.view.state.facet(eu)!=!this.fixed&&(this.fixed=!this.fixed,this.dom.style.position=this.fixed?"sticky":""),this.prevViewport=t.view.viewport}syncGutters(t){let e=this.dom.nextSibling;t&&this.dom.remove();let n=Ye.iter(this.view.state.facet(ql),this.view.viewport.from),r=[],i=this.gutters.map((t=>new au(t,this.view.viewport,-this.view.documentPadding.top)));for(let o of this.view.viewportLineBlocks)if(r.length&&(r=[]),Array.isArray(o.type)){let t=!0;for(let e of o.type)if(e.type==Lr.Text&&t){ou(n,r,e.from);for(let t of i)t.line(this.view,e,r);t=!1}else if(e.widget)for(let t of i)t.widget(this.view,e)}else if(o.type==Lr.Text){ou(n,r,o.from);for(let t of i)t.line(this.view,o,r)}else if(o.widget)for(let t of i)t.widget(this.view,o);for(let o of i)o.finish();t&&this.view.scrollDOM.insertBefore(this.dom,e)}updateGutters(t){let e=t.startState.facet(Jl),n=t.state.facet(Jl),r=t.docChanged||t.heightChanged||t.viewportChanged||!Ye.eq(t.startState.facet(ql),t.state.facet(ql),t.view.viewport.from,t.view.viewport.to);if(e==n)for(let i of this.gutters)i.update(t)&&(r=!0);else{r=!0;let i=[];for(let r of n){let n=e.indexOf(r);n<0?i.push(new su(this.view,r)):(this.gutters[n].update(t),i.push(this.gutters[n]))}for(let t of this.gutters)t.dom.remove(),i.indexOf(t)<0&&t.destroy();for(let t of i)this.dom.appendChild(t.dom);this.gutters=i}return r}destroy(){for(let t of this.gutters)t.destroy();this.dom.remove()}},{provide:t=>cs.scrollMargins.of((e=>{let n=e.plugin(t);return n&&0!=n.gutters.length&&n.fixed?e.textDirection==Gr.LTR?{left:n.dom.offsetWidth*e.scaleX}:{right:n.dom.offsetWidth*e.scaleX}:null}))});function iu(t){return Array.isArray(t)?t:[t]}function ou(t,e,n){while(t.value&&t.from<=n)t.from==n&&e.push(t.value),t.next()}class au{constructor(t,e,n){this.gutter=t,this.height=n,this.i=0,this.cursor=Ye.iter(t.markers,e.from)}addElement(t,e,n){let{gutter:r}=this,i=(e.top-this.height)/t.scaleY,o=e.height/t.scaleY;if(this.i==r.elements.length){let e=new lu(t,o,i,n);r.elements.push(e),r.dom.appendChild(e.dom)}else r.elements[this.i].update(t,o,i,n);this.height=e.bottom,this.i++}line(t,e,n){let r=[];ou(this.cursor,r,e.from),n.length&&(r=r.concat(n));let i=this.gutter.config.lineMarker(t,e,r);i&&r.unshift(i);let o=this.gutter;(0!=r.length||o.config.renderEmptyElements)&&this.addElement(t,e,r)}widget(t,e){let n=this.gutter.config.widgetMarker(t,e.widget,e);n&&this.addElement(t,e,[n])}finish(){let t=this.gutter;while(t.elements.length>this.i){let e=t.elements.pop();t.dom.removeChild(e.dom),e.destroy()}}}class su{constructor(t,e){this.view=t,this.config=e,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 e.domEventHandlers)this.dom.addEventListener(n,(r=>{let i,o=r.target;if(o!=this.dom&&this.dom.contains(o)){while(o.parentNode!=this.dom)o=o.parentNode;let t=o.getBoundingClientRect();i=(t.top+t.bottom)/2}else i=r.clientY;let a=t.lineBlockAtHeight(i-t.documentTop);e.domEventHandlers[n](t,a,r)&&r.preventDefault()}));this.markers=iu(e.markers(t)),e.initialSpacer&&(this.spacer=new lu(t,0,0,[e.initialSpacer(t)]),this.dom.appendChild(this.spacer.dom),this.spacer.dom.style.cssText+="visibility: hidden; pointer-events: none")}update(t){let e=this.markers;if(this.markers=iu(this.config.markers(t.view)),this.spacer&&this.config.updateSpacer){let e=this.config.updateSpacer(this.spacer.markers[0],t);e!=this.spacer.markers[0]&&this.spacer.update(t.view,0,0,[e])}let n=t.view.viewport;return!Ye.eq(this.markers,e,n.from,n.to)||!!this.config.lineMarkerChange&&this.config.lineMarkerChange(t)}destroy(){for(let t of this.elements)t.destroy()}}class lu{constructor(t,e,n,r){this.height=-1,this.above=0,this.markers=[],this.dom=document.createElement("div"),this.dom.className="cm-gutterElement",this.update(t,e,n,r)}update(t,e,n,r){this.height!=e&&(this.height=e,this.dom.style.height=e+"px"),this.above!=n&&(this.dom.style.marginTop=(this.above=n)?n+"px":""),uu(this.markers,r)||this.setMarkers(t,r)}setMarkers(t,e){let n="cm-gutterElement",r=this.dom.firstChild;for(let i=0,o=0;;){let a=o,s=i<e.length?e[i++]:null,l=!1;if(s){let t=s.elementClass;t&&(n+=" "+t);for(let e=o;e<this.markers.length;e++)if(this.markers[e].compare(s)){a=e,l=!0;break}}else a=this.markers.length;while(o<a){let t=this.markers[o++];if(t.toDOM){t.destroy(r);let e=r.nextSibling;r.remove(),r=e}}if(!s)break;s.toDOM&&(l?r=r.nextSibling:this.dom.insertBefore(s.toDOM(t),r)),l&&o++}this.dom.className=n,this.markers=e}destroy(){this.setMarkers(null,[])}}function uu(t,e){if(t.length!=e.length)return!1;for(let n=0;n<t.length;n++)if(!t[n].compare(e[n]))return!1;return!0}const cu=ee.define(),hu=ee.define({combine(t){return He(t,{formatNumber:String,domEventHandlers:{}},{domEventHandlers(t,e){let n=Object.assign({},t);for(let r in e){let t=n[r],i=e[r];n[r]=t?(e,n,r)=>t(e,n,r)||i(e,n,r):i}return n}})}});class du extends Yl{constructor(t){super(),this.number=t}eq(t){return this.number==t.number}toDOM(){return document.createTextNode(this.number)}}function pu(t,e){return t.state.facet(hu).formatNumber(e,t.state)}const fu=Jl.compute([hu],(t=>({class:"cm-lineNumbers",renderEmptyElements:!1,markers(t){return t.state.facet(cu)},lineMarker(t,e,n){return n.some((t=>t.toDOM))?null:new du(pu(t,t.state.doc.lineAt(e.from).number))},widgetMarker:()=>null,lineMarkerChange:t=>t.startState.facet(hu)!=t.state.facet(hu),initialSpacer(t){return new du(pu(t,vu(t.state.doc.lines)))},updateSpacer(t,e){let n=pu(e.view,vu(e.view.state.doc.lines));return n==t.number?t:new du(n)},domEventHandlers:t.facet(hu).domEventHandlers})));function gu(t={}){return[hu.of(t),nu(),fu]}function vu(t){let e=9;while(e<t)e=10*e+9;return e}const mu=new class extends Yl{constructor(){super(...arguments),this.elementClass="cm-activeLineGutter"}},yu=ql.compute(["selection"],(t=>{let e=[],n=-1;for(let r of t.selection.ranges){let i=t.doc.lineAt(r.head).from;i>n&&(n=i,e.push(mu.range(i)))}return Ye.of(e)}));function bu(){return yu}n(57836),n(39109),n(34381),n(9878),n(46801),n(66462);const _u=1024;let xu=0;class wu{constructor(t,e){this.from=t,this.to=e}}class Ou{constructor(t={}){this.id=xu++,this.perNode=!!t.perNode,this.deserialize=t.deserialize||(()=>{throw new Error("This node type doesn't define a deserialize function")})}add(t){if(this.perNode)throw new RangeError("Can't add per-node props to node types");return"function"!=typeof t&&(t=ku.match(t)),e=>{let n=t(e);return void 0===n?null:[this,n]}}}Ou.closedBy=new Ou({deserialize:t=>t.split(" ")}),Ou.openedBy=new Ou({deserialize:t=>t.split(" ")}),Ou.group=new Ou({deserialize:t=>t.split(" ")}),Ou.isolate=new Ou({deserialize:t=>{if(t&&"rtl"!=t&&"ltr"!=t&&"auto"!=t)throw new RangeError("Invalid value for isolate: "+t);return t||"auto"}}),Ou.contextHash=new Ou({perNode:!0}),Ou.lookAhead=new Ou({perNode:!0}),Ou.mounted=new Ou({perNode:!0});class Su{constructor(t,e,n){this.tree=t,this.overlay=e,this.parser=n}static get(t){return t&&t.props&&t.props[Ou.mounted.id]}}const Au=Object.create(null);class ku{constructor(t,e,n,r=0){this.name=t,this.props=e,this.id=n,this.flags=r}static define(t){let e=t.props&&t.props.length?Object.create(null):Au,n=(t.top?1:0)|(t.skipped?2:0)|(t.error?4:0)|(null==t.name?8:0),r=new ku(t.name||"",e,t.id,n);if(t.props)for(let i of t.props)if(Array.isArray(i)||(i=i(r)),i){if(i[0].perNode)throw new RangeError("Can't store a per-node prop on a node type");e[i[0].id]=i[1]}return r}prop(t){return this.props[t.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(t){if("string"==typeof t){if(this.name==t)return!0;let e=this.prop(Ou.group);return!!e&&e.indexOf(t)>-1}return this.id==t}static match(t){let e=Object.create(null);for(let n in t)for(let r of n.split(" "))e[r]=t[n];return t=>{for(let n=t.prop(Ou.group),r=-1;r<(n?n.length:0);r++){let i=e[r<0?t.name:n[r]];if(i)return i}}}}ku.none=new ku("",Object.create(null),0,8);class Cu{constructor(t){this.types=t;for(let e=0;e<t.length;e++)if(t[e].id!=e)throw new RangeError("Node type ids should correspond to array positions when creating a node set")}extend(...t){let e=[];for(let n of this.types){let r=null;for(let e of t){let t=e(n);t&&(r||(r=Object.assign({},n.props)),r[t[0].id]=t[1])}e.push(r?new ku(n.name,r,n.id,n.flags):n)}return new Cu(e)}}const Mu=new WeakMap,Tu=new WeakMap;var Pu;(function(t){t[t["ExcludeBuffers"]=1]="ExcludeBuffers",t[t["IncludeAnonymous"]=2]="IncludeAnonymous",t[t["IgnoreMounts"]=4]="IgnoreMounts",t[t["IgnoreOverlays"]=8]="IgnoreOverlays"})(Pu||(Pu={}));class Iu{constructor(t,e,n,r,i){if(this.type=t,this.children=e,this.positions=n,this.length=r,this.props=null,i&&i.length){this.props=Object.create(null);for(let[t,e]of i)this.props["number"==typeof t?t:t.id]=e}}toString(){let t=Su.get(this);if(t&&!t.overlay)return t.tree.toString();let e="";for(let n of this.children){let t=n.toString();t&&(e&&(e+=","),e+=t)}return this.type.name?(/\W/.test(this.type.name)&&!this.type.isError?JSON.stringify(this.type.name):this.type.name)+(e.length?"("+e+")":""):e}cursor(t=0){return new Hu(this.topNode,t)}cursorAt(t,e=0,n=0){let r=Mu.get(this)||this.topNode,i=new Hu(r);return i.moveTo(t,e),Mu.set(this,i._tree),i}get topNode(){return new Nu(this,0,0,null)}resolve(t,e=0){let n=Du(Mu.get(this)||this.topNode,t,e,!1);return Mu.set(this,n),n}resolveInner(t,e=0){let n=Du(Tu.get(this)||this.topNode,t,e,!0);return Tu.set(this,n),n}resolveStack(t,e=0){return Qu(this,t,e)}iterate(t){let{enter:e,leave:n,from:r=0,to:i=this.length}=t,o=t.mode||0,a=(o&Pu.IncludeAnonymous)>0;for(let s=this.cursor(o|Pu.IncludeAnonymous);;){let t=!1;if(s.from<=i&&s.to>=r&&(!a&&s.type.isAnonymous||!1!==e(s))){if(s.firstChild())continue;t=!0}for(;;){if(t&&n&&(a||!s.type.isAnonymous)&&n(s),s.nextSibling())break;if(!s.parent())return;t=!0}}}prop(t){return t.perNode?this.props?this.props[t.id]:void 0:this.type.prop(t)}get propValues(){let t=[];if(this.props)for(let e in this.props)t.push([+e,this.props[e]]);return t}balance(t={}){return this.children.length<=8?this:Yu(ku.none,this.children,this.positions,0,this.children.length,0,this.length,((t,e,n)=>new Iu(this.type,t,e,n,this.propValues)),t.makeTree||((t,e,n)=>new Iu(ku.none,t,e,n)))}static build(t){return Gu(t)}}Iu.empty=new Iu(ku.none,[],[],0);class $u{constructor(t,e){this.buffer=t,this.index=e}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 $u(this.buffer,this.index)}}class Eu{constructor(t,e,n){this.buffer=t,this.length=e,this.set=n}get type(){return ku.none}toString(){let t=[];for(let e=0;e<this.buffer.length;)t.push(this.childString(e)),e=this.buffer[e+3];return t.join(",")}childString(t){let e=this.buffer[t],n=this.buffer[t+3],r=this.set.types[e],i=r.name;if(/\W/.test(i)&&!r.isError&&(i=JSON.stringify(i)),t+=4,n==t)return i;let o=[];while(t<n)o.push(this.childString(t)),t=this.buffer[t+3];return i+"("+o.join(",")+")"}findChild(t,e,n,r,i){let{buffer:o}=this,a=-1;for(let s=t;s!=e;s=o[s+3])if(Ru(i,r,o[s+1],o[s+2])&&(a=s,n>0))break;return a}slice(t,e,n){let r=this.buffer,i=new Uint16Array(e-t),o=0;for(let a=t,s=0;a<e;){i[s++]=r[a++],i[s++]=r[a++]-n;let e=i[s++]=r[a++]-n;i[s++]=r[a++]-t,o=Math.max(o,e)}return new Eu(i,o,this.set)}}function Ru(t,e,n,r){switch(t){case-2:return n<e;case-1:return r>=e&&n<e;case 0:return n<e&&r>e;case 1:return n<=e&&r>e;case 2:return r>e;case 4:return!0}}function Du(t,e,n,r){var i;while(t.from==t.to||(n<1?t.from>=e:t.from>e)||(n>-1?t.to<=e:t.to<e)){let e=!r&&t instanceof Nu&&t.index<0?null:t.parent;if(!e)return t;t=e}let o=r?0:Pu.IgnoreOverlays;if(r)for(let a=t,s=a.parent;s;a=s,s=a.parent)a instanceof Nu&&a.index<0&&(null===(i=s.enter(e,n,o))||void 0===i?void 0:i.from)!=a.from&&(t=s);for(;;){let r=t.enter(e,n,o);if(!r)return t;t=r}}class Lu{cursor(t=0){return new Hu(this,t)}getChild(t,e=null,n=null){let r=zu(this,t,e,n);return r.length?r[0]:null}getChildren(t,e=null,n=null){return zu(this,t,e,n)}resolve(t,e=0){return Du(this,t,e,!1)}resolveInner(t,e=0){return Du(this,t,e,!0)}matchContext(t){return Bu(this,t)}enterUnfinishedNodesBefore(t){let e=this.childBefore(t),n=this;while(e){let t=e.lastChild;if(!t||t.to!=e.to)break;t.type.isError&&t.from==t.to?(n=e,e=t.prevSibling):e=t}return n}get node(){return this}get next(){return this.parent}}class Nu extends Lu{constructor(t,e,n,r){super(),this._tree=t,this.from=e,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(t,e,n,r,i=0){for(let o=this;;){for(let{children:a,positions:s}=o._tree,l=e>0?a.length:-1;t!=l;t+=e){let l=a[t],u=s[t]+o.from;if(Ru(r,n,u,u+l.length))if(l instanceof Eu){if(i&Pu.ExcludeBuffers)continue;let a=l.findChild(0,l.buffer.length,e,n-u,r);if(a>-1)return new Wu(new Fu(o,l,t,u),null,a)}else if(i&Pu.IncludeAnonymous||!l.type.isAnonymous||Zu(l)){let a;if(!(i&Pu.IgnoreMounts)&&(a=Su.get(l))&&!a.overlay)return new Nu(a.tree,u,t,o);let s=new Nu(l,u,t,o);return i&Pu.IncludeAnonymous||!s.type.isAnonymous?s:s.nextChild(e<0?l.children.length-1:0,e,n,r)}}if(i&Pu.IncludeAnonymous||!o.type.isAnonymous)return null;if(t=o.index>=0?o.index+e:e<0?-1:o._parent._tree.children.length,o=o._parent,!o)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(t){return this.nextChild(0,1,t,2)}childBefore(t){return this.nextChild(this._tree.children.length-1,-1,t,-2)}enter(t,e,n=0){let r;if(!(n&Pu.IgnoreOverlays)&&(r=Su.get(this._tree))&&r.overlay){let n=t-this.from;for(let{from:t,to:i}of r.overlay)if((e>0?t<=n:t<n)&&(e<0?i>=n:i>n))return new Nu(r.tree,r.overlay[0].from+this.from,-1,this)}return this.nextChild(0,1,t,e,n)}nextSignificantParent(){let t=this;while(t.type.isAnonymous&&t._parent)t=t._parent;return t}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 zu(t,e,n,r){let i=t.cursor(),o=[];if(!i.firstChild())return o;if(null!=n)for(let a=!1;!a;)if(a=i.type.is(n),!i.nextSibling())return o;for(;;){if(null!=r&&i.type.is(r))return o;if(i.type.is(e)&&o.push(i.node),!i.nextSibling())return null==r?o:[]}}function Bu(t,e,n=e.length-1){for(let r=t.parent;n>=0;r=r.parent){if(!r)return!1;if(!r.type.isAnonymous){if(e[n]&&e[n]!=r.name)return!1;n--}}return!0}class Fu{constructor(t,e,n,r){this.parent=t,this.buffer=e,this.index=n,this.start=r}}class Wu extends Lu{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(t,e,n){super(),this.context=t,this._parent=e,this.index=n,this.type=t.buffer.set.types[t.buffer.buffer[n]]}child(t,e,n){let{buffer:r}=this.context,i=r.findChild(this.index+4,r.buffer[this.index+3],t,e-this.context.start,n);return i<0?null:new Wu(this.context,this,i)}get firstChild(){return this.child(1,0,4)}get lastChild(){return this.child(-1,0,4)}childAfter(t){return this.child(1,t,2)}childBefore(t){return this.child(-1,t,-2)}enter(t,e,n=0){if(n&Pu.ExcludeBuffers)return null;let{buffer:r}=this.context,i=r.findChild(this.index+4,r.buffer[this.index+3],e>0?1:-1,t-this.context.start,e);return i<0?null:new Wu(this.context,this,i)}get parent(){return this._parent||this.context.parent.nextSignificantParent()}externalSibling(t){return this._parent?null:this.context.parent.nextChild(this.context.index+t,t,0,4)}get nextSibling(){let{buffer:t}=this.context,e=t.buffer[this.index+3];return e<(this._parent?t.buffer[this._parent.index+3]:t.buffer.length)?new Wu(this.context,this._parent,e):this.externalSibling(1)}get prevSibling(){let{buffer:t}=this.context,e=this._parent?this._parent.index+4:0;return this.index==e?this.externalSibling(-1):new Wu(this.context,this._parent,t.findChild(e,this.index,-1,0,4))}get tree(){return null}toTree(){let t=[],e=[],{buffer:n}=this.context,r=this.index+4,i=n.buffer[this.index+3];if(i>r){let o=n.buffer[this.index+1];t.push(n.slice(r,i,o)),e.push(0)}return new Iu(this.type,t,e,this.to-this.from)}toString(){return this.context.buffer.childString(this.index)}}function ju(t){if(!t.length)return null;let e=0,n=t[0];for(let o=1;o<t.length;o++){let r=t[o];(r.from>n.from||r.to<n.to)&&(n=r,e=o)}let r=n instanceof Nu&&n.index<0?null:n.parent,i=t.slice();return r?i[e]=r:i.splice(e,1),new Vu(i,n)}class Vu{constructor(t,e){this.heads=t,this.node=e}get next(){return ju(this.heads)}}function Qu(t,e,n){let r=t.resolveInner(e,n),i=null;for(let o=r instanceof Nu?r:r.context.parent;o;o=o.parent)if(o.index<0){let t=o.parent;(i||(i=[r])).push(t.resolve(e,n)),o=t}else{let t=Su.get(o.tree);if(t&&t.overlay&&t.overlay[0].from<=e&&t.overlay[t.overlay.length-1].to>=e){let a=new Nu(t.tree,t.overlay[0].from+o.from,-1,o);(i||(i=[r])).push(Du(a,e,n,!1))}}return i?ju(i):r}class Hu{get name(){return this.type.name}constructor(t,e=0){if(this.mode=e,this.buffer=null,this.stack=[],this.index=0,this.bufferNode=null,t instanceof Nu)this.yieldNode(t);else{this._tree=t.context.parent,this.buffer=t.context;for(let e=t._parent;e;e=e._parent)this.stack.unshift(e.index);this.bufferNode=t,this.yieldBuf(t.index)}}yieldNode(t){return!!t&&(this._tree=t,this.type=t.type,this.from=t.from,this.to=t.to,!0)}yieldBuf(t,e){this.index=t;let{start:n,buffer:r}=this.buffer;return this.type=e||r.set.types[r.buffer[t]],this.from=n+r.buffer[t+1],this.to=n+r.buffer[t+2],!0}yield(t){return!!t&&(t instanceof Nu?(this.buffer=null,this.yieldNode(t)):(this.buffer=t.context,this.yieldBuf(t.index,t.type)))}toString(){return this.buffer?this.buffer.buffer.childString(this.index):this._tree.toString()}enterChild(t,e,n){if(!this.buffer)return this.yield(this._tree.nextChild(t<0?this._tree._tree.children.length-1:0,t,e,n,this.mode));let{buffer:r}=this.buffer,i=r.findChild(this.index+4,r.buffer[this.index+3],t,e-this.buffer.start,n);return!(i<0)&&(this.stack.push(this.index),this.yieldBuf(i))}firstChild(){return this.enterChild(1,0,4)}lastChild(){return this.enterChild(-1,0,4)}childAfter(t){return this.enterChild(1,t,2)}childBefore(t){return this.enterChild(-1,t,-2)}enter(t,e,n=this.mode){return this.buffer?!(n&Pu.ExcludeBuffers)&&this.enterChild(1,t,e):this.yield(this._tree.enter(t,e,n))}parent(){if(!this.buffer)return this.yieldNode(this.mode&Pu.IncludeAnonymous?this._tree._parent:this._tree.parent);if(this.stack.length)return this.yieldBuf(this.stack.pop());let t=this.mode&Pu.IncludeAnonymous?this.buffer.parent:this.buffer.parent.nextSignificantParent();return this.buffer=null,this.yieldNode(t)}sibling(t){if(!this.buffer)return!!this._tree._parent&&this.yield(this._tree.index<0?null:this._tree._parent.nextChild(this._tree.index+t,t,0,4,this.mode));let{buffer:e}=this.buffer,n=this.stack.length-1;if(t<0){let t=n<0?0:this.stack[n]+4;if(this.index!=t)return this.yieldBuf(e.findChild(t,this.index,-1,0,4))}else{let t=e.buffer[this.index+3];if(t<(n<0?e.buffer.length:e.buffer[this.stack[n]+3]))return this.yieldBuf(t)}return n<0&&this.yield(this.buffer.parent.nextChild(this.buffer.index+t,t,0,4,this.mode))}nextSibling(){return this.sibling(1)}prevSibling(){return this.sibling(-1)}atLastNode(t){let e,n,{buffer:r}=this;if(r){if(t>0){if(this.index<r.buffer.buffer.length)return!1}else for(let t=0;t<this.index;t++)if(r.buffer.buffer[t+3]<this.index)return!1;({index:e,parent:n}=r)}else({index:e,_parent:n}=this._tree);for(;n;({index:e,_parent:n}=n))if(e>-1)for(let r=e+t,i=t<0?-1:n._tree.children.length;r!=i;r+=t){let t=n._tree.children[r];if(this.mode&Pu.IncludeAnonymous||t instanceof Eu||!t.type.isAnonymous||Zu(t))return!1}return!0}move(t,e){if(e&&this.enterChild(t,0,4))return!0;for(;;){if(this.sibling(t))return!0;if(this.atLastNode(t)||!this.parent())return!1}}next(t=!0){return this.move(1,t)}prev(t=!0){return this.move(-1,t)}moveTo(t,e=0){while(this.from==this.to||(e<1?this.from>=t:this.from>t)||(e>-1?this.to<=t:this.to<t))if(!this.parent())break;while(this.enterChild(1,t,e));return this}get node(){if(!this.buffer)return this._tree;let t=this.bufferNode,e=null,n=0;if(t&&t.context==this.buffer)t:for(let r=this.index,i=this.stack.length;i>=0;){for(let o=t;o;o=o._parent)if(o.index==r){if(r==this.index)return o;e=o,n=i+1;break t}r=this.stack[--i]}for(let r=n;r<this.stack.length;r++)e=new Wu(this.buffer,e,this.stack[r]);return this.bufferNode=new Wu(this.buffer,e,this.index)}get tree(){return this.buffer?null:this._tree._tree}iterate(t,e){for(let n=0;;){let r=!1;if(this.type.isAnonymous||!1!==t(this)){if(this.firstChild()){n++;continue}this.type.isAnonymous||(r=!0)}for(;;){if(r&&e&&e(this),r=this.type.isAnonymous,this.nextSibling())break;if(!n)return;this.parent(),n--,r=!0}}}matchContext(t){if(!this.buffer)return Bu(this.node,t);let{buffer:e}=this.buffer,{types:n}=e.set;for(let r=t.length-1,i=this.stack.length-1;r>=0;i--){if(i<0)return Bu(this.node,t,r);let o=n[e.buffer[this.stack[i]]];if(!o.isAnonymous){if(t[r]&&t[r]!=o.name)return!1;r--}}return!0}}function Zu(t){return t.children.some((t=>t instanceof Eu||!t.type.isAnonymous||Zu(t)))}function Gu(t){var e;let{buffer:n,nodeSet:r,maxBufferLength:i=_u,reused:o=[],minRepeatType:a=r.types.length}=t,s=Array.isArray(n)?new $u(n,n.length):n,l=r.types,u=0,c=0;function h(t,e,n,y,b,_){let{id:x,start:w,end:O,size:S}=s,A=c;while(S<0){if(s.next(),-1==S){let e=o[x];return n.push(e),void y.push(w-t)}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-t;if(O-w<=i&&(C=v(s.pos-e,b))){let e=new Uint16Array(C.size-C.skip),n=s.pos-C.size,i=e.length;while(s.pos>n)i=m(C.start,e,i);k=new Eu(e,O-C.start,r),T=C.start-t}else{let t=s.pos-S;s.next();let e=[],n=[],r=x>=a?x:-1,o=0,l=O;while(s.pos>t)r>=0&&s.id==r&&s.size>=0?(s.end<=l-i&&(f(e,n,w,o,s.end,l,r,A),o=e.length,l=s.end),s.next()):_>2500?d(w,t,e,n):h(w,t,e,n,r,_+1);if(r>=0&&o>0&&o<e.length&&f(e,n,w,o,w,l,r,A),e.reverse(),n.reverse(),r>-1&&o>0){let t=p(M);k=Yu(M,e,n,0,e.length,0,O-w,t,t)}else k=g(M,e,n,O-w,A-O)}n.push(k),y.push(T)}function d(t,e,n,o){let a=[],l=0,u=-1;while(s.pos>e){let{id:t,start:e,end:n,size:r}=s;if(r>4)s.next();else{if(u>-1&&e<u)break;u<0&&(u=n-i),a.push(t,e,n),l++,s.next()}}if(l){let e=new Uint16Array(4*l),i=a[a.length-2];for(let t=a.length-3,n=0;t>=0;t-=3)e[n++]=a[t],e[n++]=a[t+1]-i,e[n++]=a[t+2]-i,e[n++]=n;n.push(new Eu(e,a[2]-i,r)),o.push(i-t)}}function p(t){return(e,n,r)=>{let i,o,a=0,s=e.length-1;if(s>=0&&(i=e[s])instanceof Iu){if(!s&&i.type==t&&i.length==r)return i;(o=i.prop(Ou.lookAhead))&&(a=n[s]+i.length+o)}return g(t,e,n,r,a)}}function f(t,e,n,i,o,a,s,l){let u=[],c=[];while(t.length>i)u.push(t.pop()),c.push(e.pop()+n-o);t.push(g(r.types[s],u,c,a-o,l-a)),e.push(o-n)}function g(t,e,n,r,i=0,o){if(u){let t=[Ou.contextHash,u];o=o?[t].concat(o):[t]}if(i>25){let t=[Ou.lookAhead,i];o=o?[t].concat(o):[t]}return new Iu(t,e,n,r,o)}function v(t,e){let n=s.fork(),r=0,o=0,l=0,u=n.end-i,c={size:0,start:0,skip:0};t:for(let i=n.pos-t;n.pos>i;){let t=n.size;if(n.id==e&&t>=0){c.size=r,c.start=o,c.skip=l,l+=4,r+=4,n.next();continue}let s=n.pos-t;if(t<0||s<i||n.start<u)break;let h=n.id>=a?4:0,d=n.start;n.next();while(n.pos>s){if(n.size<0){if(-3!=n.size)break t;h+=4}else n.id>=a&&(h+=4);n.next()}o=d,r+=t,l+=h}return(e<0||r==t)&&(c.size=r,c.start=o,c.skip=l),c.size>4?c:void 0}function m(t,e,n){let{id:r,start:i,end:o,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=m(t,e,n)}e[--n]=a,e[--n]=o-t,e[--n]=i-t,e[--n]=r}else-3==l?u=r:-4==l&&(c=r);return n}let y=[],b=[];while(s.pos>0)h(t.start||0,t.bufferStart||0,y,b,-1,0);let _=null!==(e=t.length)&&void 0!==e?e:y.length?b[0]+y[0].length:0;return new Iu(l[t.topID],y.reverse(),b.reverse(),_)}const Xu=new WeakMap;function Uu(t,e){if(!t.isAnonymous||e instanceof Eu||e.type!=t)return 1;let n=Xu.get(e);if(null==n){n=1;for(let r of e.children){if(r.type!=t||!(r instanceof Iu)){n=1;break}n+=Uu(t,r)}Xu.set(e,n)}return n}function Yu(t,e,n,r,i,o,a,s,l){let u=0;for(let f=r;f<i;f++)u+=Uu(t,e[f]);let c=Math.ceil(1.5*u/8),h=[],d=[];function p(e,n,r,i,a){for(let s=r;s<i;){let r=s,u=n[s],f=Uu(t,e[s]);for(s++;s<i;s++){let n=Uu(t,e[s]);if(f+n>=c)break;f+=n}if(s==r+1){if(f>c){let t=e[r];p(t.children,t.positions,0,t.children.length,n[r]+a);continue}h.push(e[r])}else{let i=n[s-1]+e[s-1].length-u;h.push(Yu(t,e,n,r,s,u,i,null,l))}d.push(u+a-o)}}return p(e,n,r,i,0),(s||l)(h,d,a)}class qu{constructor(){this.map=new WeakMap}setBuffer(t,e,n){let r=this.map.get(t);r||this.map.set(t,r=new Map),r.set(e,n)}getBuffer(t,e){let n=this.map.get(t);return n&&n.get(e)}set(t,e){t instanceof Wu?this.setBuffer(t.context.buffer,t.index,e):t instanceof Nu&&this.map.set(t.tree,e)}get(t){return t instanceof Wu?this.getBuffer(t.context.buffer,t.index):t instanceof Nu?this.map.get(t.tree):void 0}cursorSet(t,e){t.buffer?this.setBuffer(t.buffer.buffer,t.index,e):this.map.set(t.tree,e)}cursorGet(t){return t.buffer?this.getBuffer(t.buffer.buffer,t.index):this.map.get(t.tree)}}class Ku{constructor(t,e,n,r,i=!1,o=!1){this.from=t,this.to=e,this.tree=n,this.offset=r,this.open=(i?1:0)|(o?2:0)}get openStart(){return(1&this.open)>0}get openEnd(){return(2&this.open)>0}static addTree(t,e=[],n=!1){let r=[new Ku(0,t.length,t,0,!1,n)];for(let i of e)i.to>t.length&&r.push(i);return r}static applyChanges(t,e,n=128){if(!e.length)return t;let r=[],i=1,o=t.length?t[0]:null;for(let a=0,s=0,l=0;;a++){let u=a<e.length?e[a]:null,c=u?u.fromA:1e9;if(c-s>=n)while(o&&o.from<c){let e=o;if(s>=e.from||c<=e.to||l){let t=Math.max(e.from,s)-l,n=Math.min(e.to,c)-l;e=t>=n?null:new Ku(t,n,e.tree,e.offset+l,a>0,!!u)}if(e&&r.push(e),o.to>c)break;o=i<t.length?t[i++]:null}if(!u)break;s=u.toA,l=u.toA-u.toB}return r}}class Ju{startParse(t,e,n){return"string"==typeof t&&(t=new tc(t)),n=n?n.length?n.map((t=>new wu(t.from,t.to))):[new wu(0,0)]:[new wu(0,t.length)],this.createParse(t,e||[],n)}parse(t,e,n){let r=this.startParse(t,e,n);for(;;){let t=r.advance();if(t)return t}}}class tc{constructor(t){this.string=t}get length(){return this.string.length}chunk(t){return this.string.slice(t)}get lineChunks(){return!1}read(t,e){return this.string.slice(t,e)}}new Ou({perNode:!0});let ec=0;class nc{constructor(t,e,n){this.set=t,this.base=e,this.modified=n,this.id=ec++}static define(t){if(null===t||void 0===t?void 0:t.base)throw new Error("Can not derive from a modified tag");let e=new nc([],null,[]);if(e.set.push(e),t)for(let n of t.set)e.set.push(n);return e}static defineModifier(){let t=new ic;return e=>e.modified.indexOf(t)>-1?e:ic.get(e.base||e,e.modified.concat(t).sort(((t,e)=>t.id-e.id)))}}let rc=0;class ic{constructor(){this.instances=[],this.id=rc++}static get(t,e){if(!e.length)return t;let n=e[0].instances.find((n=>n.base==t&&oc(e,n.modified)));if(n)return n;let r=[],i=new nc(r,t,e);for(let a of e)a.instances.push(i);let o=ac(e);for(let a of t.set)if(!a.modified.length)for(let t of o)r.push(ic.get(a,t));return i}}function oc(t,e){return t.length==e.length&&t.every(((t,n)=>t==e[n]))}function ac(t){let e=[[]];for(let n=0;n<t.length;n++)for(let r=0,i=e.length;r<i;r++)e.push(e[r].concat(t[n]));return e.sort(((t,e)=>e.length-t.length))}function sc(t){let e=Object.create(null);for(let n in t){let r=t[n];Array.isArray(r)||(r=[r]);for(let t of n.split(" "))if(t){let n=[],i=2,o=t;for(let e=0;;){if("..."==o&&e>0&&e+3==t.length){i=1;break}let r=/^"(?:[^"\\]|\\.)*?"|[^\/!]+/.exec(o);if(!r)throw new RangeError("Invalid path: "+t);if(n.push("*"==r[0]?"":'"'==r[0][0]?JSON.parse(r[0]):r[0]),e+=r[0].length,e==t.length)break;let a=t[e++];if(e==t.length&&"!"==a){i=0;break}if("/"!=a)throw new RangeError("Invalid path: "+t);o=t.slice(e)}let a=n.length-1,s=n[a];if(!s)throw new RangeError("Invalid path: "+t);let l=new uc(r,i,a>0?n.slice(0,a):null);e[s]=l.sort(e[s])}}return lc.add(e)}const lc=new Ou;class uc{constructor(t,e,n,r){this.tags=t,this.mode=e,this.context=n,this.next=r}get opaque(){return 0==this.mode}get inherit(){return 1==this.mode}sort(t){return!t||t.depth<this.depth?(this.next=t,this):(t.next=this.sort(t.next),t)}get depth(){return this.context?this.context.length:0}}function cc(t,e){let n=Object.create(null);for(let o of t)if(Array.isArray(o.tag))for(let t of o.tag)n[t.id]=o.class;else n[o.tag.id]=o.class;let{scope:r,all:i=null}=e||{};return{style:t=>{let e=i;for(let r of t)for(let t of r.set){let r=n[t.id];if(r){e=e?e+" "+r:r;break}}return e},scope:r}}function hc(t,e){let n=null;for(let r of t){let t=r.style(e);t&&(n=n?n+" "+t:t)}return n}function dc(t,e,n,r=0,i=t.length){let o=new pc(r,Array.isArray(e)?e:[e],n);o.highlightRange(t.cursor(),r,i,"",o.highlighters),o.flush(i)}uc.empty=new uc([],2,null);class pc{constructor(t,e,n){this.at=t,this.highlighters=e,this.span=n,this.class=""}startSpan(t,e){e!=this.class&&(this.flush(t),t>this.at&&(this.at=t),this.class=e)}flush(t){t>this.at&&this.class&&this.span(this.at,t,this.class)}highlightRange(t,e,n,r,i){let{type:o,from:a,to:s}=t;if(a>=n||s<=e)return;o.isTop&&(i=this.highlighters.filter((t=>!t.scope||t.scope(o))));let l=r,u=fc(t)||uc.empty,c=hc(i,u.tags);if(c&&(l&&(l+=" "),l+=c,1==u.mode&&(r+=(r?" ":"")+c)),this.startSpan(Math.max(e,a),l),u.opaque)return;let h=t.tree&&t.tree.prop(Ou.mounted);if(h&&h.overlay){let o=t.node.enter(h.overlay[0].from+a,1),u=this.highlighters.filter((t=>!t.scope||t.scope(h.tree.type))),c=t.firstChild();for(let d=0,p=a;;d++){let f=d<h.overlay.length?h.overlay[d]:null,g=f?f.from+a:s,v=Math.max(e,p),m=Math.min(n,g);if(v<m&&c)while(t.from<m)if(this.highlightRange(t,v,m,r,i),this.startSpan(Math.min(m,t.to),l),t.to>=g||!t.nextSibling())break;if(!f||g>n)break;p=f.to+a,p>e&&(this.highlightRange(o.cursor(),Math.max(e,f.from+a),Math.min(n,p),"",u),this.startSpan(Math.min(n,p),l))}c&&t.parent()}else if(t.firstChild()){h&&(r="");do{if(!(t.to<=e)){if(t.from>=n)break;this.highlightRange(t,e,n,r,i),this.startSpan(Math.min(n,t.to),l)}}while(t.nextSibling());t.parent()}}}function fc(t){let e=t.type.prop(lc);while(e&&e.context&&!t.matchContext(e.context))e=e.next;return e||null}const gc=nc.define,vc=gc(),mc=gc(),yc=gc(mc),bc=gc(mc),_c=gc(),xc=gc(_c),wc=gc(_c),Oc=gc(),Sc=gc(Oc),Ac=gc(),kc=gc(),Cc=gc(),Mc=gc(Cc),Tc=gc(),Pc={comment:vc,lineComment:gc(vc),blockComment:gc(vc),docComment:gc(vc),name:mc,variableName:gc(mc),typeName:yc,tagName:gc(yc),propertyName:bc,attributeName:gc(bc),className:gc(mc),labelName:gc(mc),namespace:gc(mc),macroName:gc(mc),literal:_c,string:xc,docString:gc(xc),character:gc(xc),attributeValue:gc(xc),number:wc,integer:gc(wc),float:gc(wc),bool:gc(_c),regexp:gc(_c),escape:gc(_c),color:gc(_c),url:gc(_c),keyword:Ac,self:gc(Ac),null:gc(Ac),atom:gc(Ac),unit:gc(Ac),modifier:gc(Ac),operatorKeyword:gc(Ac),controlKeyword:gc(Ac),definitionKeyword:gc(Ac),moduleKeyword:gc(Ac),operator:kc,derefOperator:gc(kc),arithmeticOperator:gc(kc),logicOperator:gc(kc),bitwiseOperator:gc(kc),compareOperator:gc(kc),updateOperator:gc(kc),definitionOperator:gc(kc),typeOperator:gc(kc),controlOperator:gc(kc),punctuation:Cc,separator:gc(Cc),bracket:Mc,angleBracket:gc(Mc),squareBracket:gc(Mc),paren:gc(Mc),brace:gc(Mc),content:Oc,heading:Sc,heading1:gc(Sc),heading2:gc(Sc),heading3:gc(Sc),heading4:gc(Sc),heading5:gc(Sc),heading6:gc(Sc),contentSeparator:gc(Oc),list:gc(Oc),quote:gc(Oc),emphasis:gc(Oc),strong:gc(Oc),link:gc(Oc),monospace:gc(Oc),strikethrough:gc(Oc),inserted:gc(),deleted:gc(),changed:gc(),invalid:gc(),meta:Tc,documentMeta:gc(Tc),annotation:gc(Tc),processingInstruction:gc(Tc),definition:nc.defineModifier(),constant:nc.defineModifier(),function:nc.defineModifier(),standard:nc.defineModifier(),local:nc.defineModifier(),special:nc.defineModifier()};cc([{tag:Pc.link,class:"tok-link"},{tag:Pc.heading,class:"tok-heading"},{tag:Pc.emphasis,class:"tok-emphasis"},{tag:Pc.strong,class:"tok-strong"},{tag:Pc.keyword,class:"tok-keyword"},{tag:Pc.atom,class:"tok-atom"},{tag:Pc.bool,class:"tok-bool"},{tag:Pc.url,class:"tok-url"},{tag:Pc.labelName,class:"tok-labelName"},{tag:Pc.inserted,class:"tok-inserted"},{tag:Pc.deleted,class:"tok-deleted"},{tag:Pc.literal,class:"tok-literal"},{tag:Pc.string,class:"tok-string"},{tag:Pc.number,class:"tok-number"},{tag:[Pc.regexp,Pc.escape,Pc.special(Pc.string)],class:"tok-string2"},{tag:Pc.variableName,class:"tok-variableName"},{tag:Pc.local(Pc.variableName),class:"tok-variableName tok-local"},{tag:Pc.definition(Pc.variableName),class:"tok-variableName tok-definition"},{tag:Pc.special(Pc.variableName),class:"tok-variableName2"},{tag:Pc.definition(Pc.propertyName),class:"tok-propertyName tok-definition"},{tag:Pc.typeName,class:"tok-typeName"},{tag:Pc.namespace,class:"tok-namespace"},{tag:Pc.className,class:"tok-className"},{tag:Pc.macroName,class:"tok-macroName"},{tag:Pc.propertyName,class:"tok-propertyName"},{tag:Pc.operator,class:"tok-operator"},{tag:Pc.comment,class:"tok-comment"},{tag:Pc.meta,class:"tok-meta"},{tag:Pc.invalid,class:"tok-invalid"},{tag:Pc.punctuation,class:"tok-punctuation"}]);var Ic;const $c=new Ou;function Ec(t){return ee.define({combine:t?e=>e.concat(t):void 0})}const Rc=new Ou;class Dc{constructor(t,e,n=[],r=""){this.data=t,this.name=r,Qe.prototype.hasOwnProperty("tree")||Object.defineProperty(Qe.prototype,"tree",{get(){return zc(this)}}),this.parser=e,this.extension=[Gc.of(this),Qe.languageData.of(((t,e,n)=>{let r=Lc(t,e,n),i=r.type.prop($c);if(!i)return[];let o=t.facet(i),a=r.type.prop(Rc);if(a){let i=r.resolve(e-r.from,n);for(let e of a)if(e.test(i,t)){let n=t.facet(e.facet);return"replace"==e.type?n:n.concat(o)}}return o}))].concat(n)}isActiveAt(t,e,n=-1){return Lc(t,e,n).type.prop($c)==this.data}findRegions(t){let e=t.facet(Gc);if((null===e||void 0===e?void 0:e.data)==this.data)return[{from:0,to:t.doc.length}];if(!e||!e.allowsNesting)return[];let n=[],r=(t,e)=>{if(t.prop($c)==this.data)return void n.push({from:e,to:e+t.length});let i=t.prop(Ou.mounted);if(i){if(i.tree.prop($c)==this.data){if(i.overlay)for(let t of i.overlay)n.push({from:t.from+e,to:t.to+e});else n.push({from:e,to:e+t.length});return}if(i.overlay){let t=n.length;if(r(i.tree,i.overlay[0].from+e),n.length>t)return}}for(let n=0;n<t.children.length;n++){let i=t.children[n];i instanceof Iu&&r(i,t.positions[n]+e)}};return r(zc(t),0),n}get allowsNesting(){return!0}}function Lc(t,e,n){let r=t.facet(Gc),i=zc(t).topNode;if(!r||r.allowsNesting)for(let o=i;o;o=o.enter(e,n,Pu.ExcludeBuffers))o.type.isTop&&(i=o);return i}Dc.setState=Te.define();class Nc extends Dc{constructor(t,e,n){super(t,e,[],n),this.parser=e}static define(t){let e=Ec(t.languageData);return new Nc(e,t.parser.configure({props:[$c.add((t=>t.isTop?e:void 0))]}),t.name)}configure(t,e){return new Nc(this.data,this.parser.configure(t),e||this.name)}get allowsNesting(){return this.parser.hasWrappers()}}function zc(t){let e=t.field(Dc.state,!1);return e?e.tree:Iu.empty}class Bc{constructor(t){this.doc=t,this.cursorPos=0,this.string="",this.cursor=t.iter()}get length(){return this.doc.length}syncTo(t){return this.string=this.cursor.next(t-this.cursorPos).value,this.cursorPos=t+this.string.length,this.cursorPos-this.string.length}chunk(t){return this.syncTo(t),this.string}get lineChunks(){return!0}read(t,e){let n=this.cursorPos-this.string.length;return t<n||e>=this.cursorPos?this.doc.sliceString(t,e):this.string.slice(t-n,e-n)}}let Fc=null;class Wc{constructor(t,e,n=[],r,i,o,a,s){this.parser=t,this.state=e,this.fragments=n,this.tree=r,this.treeLen=i,this.viewport=o,this.skipped=a,this.scheduleOn=s,this.parse=null,this.tempSkipped=[]}static create(t,e,n){return new Wc(t,e,[],Iu.empty,0,n,[],null)}startParse(){return this.parser.startParse(new Bc(this.state.doc),this.fragments)}work(t,e){return null!=e&&e>=this.state.doc.length&&(e=void 0),this.tree!=Iu.empty&&this.isDone(null!==e&&void 0!==e?e:this.state.doc.length)?(this.takeTree(),!0):this.withContext((()=>{var n;if("number"==typeof t){let e=Date.now()+t;t=()=>Date.now()>e}for(this.parse||(this.parse=this.startParse()),null!=e&&(null==this.parse.stoppedAt||this.parse.stoppedAt>e)&&e<this.state.doc.length&&this.parse.stopAt(e);;){let r=this.parse.advance();if(r){if(this.fragments=this.withoutTempSkipped(Ku.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!==e&&void 0!==e?e:this.state.doc.length)))return!0;this.parse=this.startParse()}if(t())return!1}}))}takeTree(){let t,e;this.parse&&(t=this.parse.parsedPos)>=this.treeLen&&((null==this.parse.stoppedAt||this.parse.stoppedAt>t)&&this.parse.stopAt(t),this.withContext((()=>{while(!(e=this.parse.advance()));})),this.treeLen=t,this.tree=e,this.fragments=this.withoutTempSkipped(Ku.addTree(this.tree,this.fragments,!0)),this.parse=null)}withContext(t){let e=Fc;Fc=this;try{return t()}finally{Fc=e}}withoutTempSkipped(t){for(let e;e=this.tempSkipped.pop();)t=jc(t,e.from,e.to);return t}changes(t,e){let{fragments:n,tree:r,treeLen:i,viewport:o,skipped:a}=this;if(this.takeTree(),!t.empty){let e=[];if(t.iterChangedRanges(((t,n,r,i)=>e.push({fromA:t,toA:n,fromB:r,toB:i}))),n=Ku.applyChanges(n,e),r=Iu.empty,i=0,o={from:t.mapPos(o.from,-1),to:t.mapPos(o.to,1)},this.skipped.length){a=[];for(let e of this.skipped){let n=t.mapPos(e.from,1),r=t.mapPos(e.to,-1);n<r&&a.push({from:n,to:r})}}}return new Wc(this.parser,e,n,r,i,o,a,this.scheduleOn)}updateViewport(t){if(this.viewport.from==t.from&&this.viewport.to==t.to)return!1;this.viewport=t;let e=this.skipped.length;for(let n=0;n<this.skipped.length;n++){let{from:e,to:r}=this.skipped[n];e<t.to&&r>t.from&&(this.fragments=jc(this.fragments,e,r),this.skipped.splice(n--,1))}return!(this.skipped.length>=e)&&(this.reset(),!0)}reset(){this.parse&&(this.takeTree(),this.parse=null)}skipUntilInView(t,e){this.skipped.push({from:t,to:e})}static getSkippingParser(t){return new class extends Ju{createParse(e,n,r){let i=r[0].from,o=r[r.length-1].to,a={parsedPos:i,advance(){let e=Fc;if(e){for(let t of r)e.tempSkipped.push(t);t&&(e.scheduleOn=e.scheduleOn?Promise.all([e.scheduleOn,t]):t)}return this.parsedPos=o,new Iu(ku.none,[],[],o-i)},stoppedAt:null,stopAt(){}};return a}}}isDone(t){t=Math.min(t,this.state.doc.length);let e=this.fragments;return this.treeLen>=t&&e.length&&0==e[0].from&&e[0].to>=t}static get(){return Fc}}function jc(t,e,n){return Ku.applyChanges(t,[{fromA:e,toA:n,fromB:e,toB:n}])}class Vc{constructor(t){this.context=t,this.tree=t.tree}apply(t){if(!t.docChanged&&this.tree==this.context.tree)return this;let e=this.context.changes(t.changes,t.state),n=this.context.treeLen==t.startState.doc.length?void 0:Math.max(t.changes.mapPos(this.context.treeLen),e.viewport.to);return e.work(20,n)||e.takeTree(),new Vc(e)}static init(t){let e=Math.min(3e3,t.doc.length),n=Wc.create(t.facet(Gc).parser,t,{from:0,to:e});return n.work(20,e)||n.takeTree(),new Vc(n)}}Dc.state=le.define({create:Vc.init,update(t,e){for(let n of e.effects)if(n.is(Dc.setState))return n.value;return e.startState.facet(Gc)!=e.state.facet(Gc)?Vc.init(e.state):t.apply(e)}});let Qc=t=>{let e=setTimeout((()=>t()),500);return()=>clearTimeout(e)};"undefined"!=typeof requestIdleCallback&&(Qc=t=>{let e=-1,n=setTimeout((()=>{e=requestIdleCallback(t,{timeout:400})}),100);return()=>e<0?clearTimeout(n):cancelIdleCallback(e)});const Hc="undefined"!=typeof navigator&&(null===(Ic=navigator.scheduling)||void 0===Ic?void 0:Ic.isInputPending)?()=>navigator.scheduling.isInputPending():null,Zc=Ei.fromClass(class{constructor(t){this.view=t,this.working=null,this.workScheduled=0,this.chunkEnd=-1,this.chunkBudget=-1,this.work=this.work.bind(this),this.scheduleWork()}update(t){let e=this.view.state.field(Dc.state).context;(e.updateViewport(t.view.viewport)||this.view.viewport.to>e.treeLen)&&this.scheduleWork(),(t.docChanged||t.selectionSet)&&(this.view.hasFocus&&(this.chunkBudget+=50),this.scheduleWork()),this.checkAsyncSchedule(e)}scheduleWork(){if(this.working)return;let{state:t}=this.view,e=t.field(Dc.state);e.tree==e.context.tree&&e.context.isDone(t.doc.length)||(this.working=Qc(this.work))}work(t){this.working=null;let e=Date.now();if(this.chunkEnd<e&&(this.chunkEnd<0||this.view.hasFocus)&&(this.chunkEnd=e+3e4,this.chunkBudget=3e3),this.chunkBudget<=0)return;let{state:n,viewport:{to:r}}=this.view,i=n.field(Dc.state);if(i.tree==i.context.tree&&i.context.isDone(r+1e5))return;let o=Date.now()+Math.min(this.chunkBudget,100,t&&!Hc?Math.max(25,t.timeRemaining()-5):1e9),a=i.context.treeLen<r&&n.doc.length>r+1e3,s=i.context.work((()=>Hc&&Hc()||Date.now()>o),r+(a?0:1e5));this.chunkBudget-=Date.now()-e,(s||this.chunkBudget<=0)&&(i.context.takeTree(),this.view.dispatch({effects:Dc.setState.of(new Vc(i.context))})),this.chunkBudget>0&&(!s||a)&&this.scheduleWork(),this.checkAsyncSchedule(i.context)}checkAsyncSchedule(t){t.scheduleOn&&(this.workScheduled++,t.scheduleOn.then((()=>this.scheduleWork())).catch((t=>Ti(this.view.state,t))).then((()=>this.workScheduled--)),t.scheduleOn=null)}destroy(){this.working&&this.working()}isWorking(){return!!(this.working||this.workScheduled>0)}},{eventHandlers:{focus(){this.scheduleWork()}}}),Gc=ee.define({combine(t){return t.length?t[0]:null},enables:t=>[Dc.state,Zc,cs.contentAttributes.compute([t],(e=>{let n=e.facet(t);return n&&n.name?{"data-language":n.name}:{}}))]});class Xc{constructor(t,e=[]){this.language=t,this.support=e,this.extension=[t,e]}}const Uc=ee.define(),Yc=ee.define({combine:t=>{if(!t.length)return" ";let e=t[0];if(!e||/\S/.test(e)||Array.from(e).some((t=>t!=e[0])))throw new Error("Invalid indent unit: "+JSON.stringify(t[0]));return e}});function qc(t){let e=t.facet(Yc);return 9==e.charCodeAt(0)?t.tabSize*e.length:e.length}function Kc(t,e){let n="",r=t.tabSize,i=t.facet(Yc)[0];if("\t"==i){while(e>=r)n+="\t",e-=r;i=" "}for(let o=0;o<e;o++)n+=i;return n}function Jc(t,e){t instanceof Qe&&(t=new th(t));for(let r of t.state.facet(Uc)){let n=r(t,e);if(void 0!==n)return n}let n=zc(t.state);return n.length>=e?nh(t,n,e):null}class th{constructor(t,e={}){this.state=t,this.options=e,this.unit=qc(t)}lineAt(t,e=1){let n=this.state.doc.lineAt(t),{simulateBreak:r,simulateDoubleBreak:i}=this.options;return null!=r&&r>=n.from&&r<=n.to?i&&r==t?{text:"",from:t}:(e<0?r<t:r<=t)?{text:n.text.slice(r-n.from),from:r}:{text:n.text.slice(0,r-n.from),from:n.from}:n}textAfterPos(t,e=1){if(this.options.simulateDoubleBreak&&t==this.options.simulateBreak)return"";let{text:n,from:r}=this.lineAt(t,e);return n.slice(t-r,Math.min(n.length,t+100-r))}column(t,e=1){let{text:n,from:r}=this.lineAt(t,e),i=this.countColumn(n,t-r),o=this.options.overrideIndentation?this.options.overrideIndentation(r):-1;return o>-1&&(i+=o-this.countColumn(n,n.search(/\S|$/))),i}countColumn(t,e=t.length){return cn(t,this.state.tabSize,e)}lineIndent(t,e=1){let{text:n,from:r}=this.lineAt(t,e),i=this.options.overrideIndentation;if(i){let t=i(r);if(t>-1)return t}return this.countColumn(n,n.search(/\S|$/))}get simulatedBreak(){return this.options.simulateBreak||null}}const eh=new Ou;function nh(t,e,n){let r=e.resolveStack(n),i=r.node.enterUnfinishedNodesBefore(n);if(i!=r.node){let t=[];for(let e=i;e!=r.node;e=e.parent)t.push(e);for(let e=t.length-1;e>=0;e--)r={node:t[e],next:r}}return rh(r,t,n)}function rh(t,e,n){for(let r=t;r;r=r.next){let t=oh(r.node);if(t)return t(sh.create(e,n,r))}return 0}function ih(t){return t.pos==t.options.simulateBreak&&t.options.simulateDoubleBreak}function oh(t){let e=t.type.prop(eh);if(e)return e;let n,r=t.firstChild;if(r&&(n=r.type.prop(Ou.closedBy))){let e=t.lastChild,r=e&&n.indexOf(e.name)>-1;return t=>hh(t,!0,1,void 0,r&&!ih(t)?e.from:void 0)}return null==t.parent?ah:null}function ah(){return 0}class sh extends th{constructor(t,e,n){super(t.state,t.options),this.base=t,this.pos=e,this.context=n}get node(){return this.context.node}static create(t,e,n){return new sh(t,e,n)}get textAfter(){return this.textAfterPos(this.pos)}get baseIndent(){return this.baseIndentFor(this.node)}baseIndentFor(t){let e=this.state.doc.lineAt(t.from);for(;;){let n=t.resolve(e.from);while(n.parent&&n.parent.from==n.from)n=n.parent;if(lh(n,t))break;e=this.state.doc.lineAt(n.from)}return this.lineIndent(e.from)}continue(){return rh(this.context.next,this.base,this.pos)}}function lh(t,e){for(let n=e;n;n=n.parent)if(t==n)return!0;return!1}function uh(t){let e=t.node,n=e.childAfter(e.from),r=e.lastChild;if(!n)return null;let i=t.options.simulateBreak,o=t.state.doc.lineAt(n.from),a=null==i||i<=o.from?o.to:Math.min(o.to,i);for(let s=n.to;;){let t=e.childAfter(s);if(!t||t==r)return null;if(!t.type.isSkipped)return t.from<a?n:null;s=t.to}}function ch({closing:t,align:e=!0,units:n=1}){return r=>hh(r,e,n,t)}function hh(t,e,n,r,i){let o=t.textAfter,a=o.match(/^\s*/)[0].length,s=r&&o.slice(a,a+r.length)==r||i==t.pos+a,l=e?uh(t):null;return l?s?t.column(l.from):t.column(l.to):t.baseIndent+(s?0:t.unit*n)}const dh=t=>t.baseIndent;function ph({except:t,units:e=1}={}){return n=>{let r=t&&t.test(n.textAfter);return n.baseIndent+(r?0:e*n.unit)}}const fh=200;function gh(){return Qe.transactionFilter.of((t=>{if(!t.docChanged||!t.isUserEvent("input.type")&&!t.isUserEvent("input.complete"))return t;let e=t.startState.languageDataAt("indentOnInput",t.startState.selection.main.head);if(!e.length)return t;let n=t.newDoc,{head:r}=t.newSelection.main,i=n.lineAt(r);if(r>i.from+fh)return t;let o=n.sliceString(i.from,r);if(!e.some((t=>t.test(o))))return t;let{state:a}=t,s=-1,l=[];for(let{head:u}of a.selection.ranges){let t=a.doc.lineAt(u);if(t.from==s)continue;s=t.from;let e=Jc(a,t.from);if(null==e)continue;let n=/^\s*/.exec(t.text)[0],r=Kc(a,e);n!=r&&l.push({from:t.from,to:t.from+n.length,insert:r})}return l.length?[t,{changes:l,sequential:!0}]:t}))}const vh=ee.define(),mh=new Ou;function yh(t){let e=t.firstChild,n=t.lastChild;return e&&e.to<n.from?{from:e.to,to:n.type.isError?t.to:n.from}:null}function bh(t,e,n){let r=zc(t);if(r.length<n)return null;let i=r.resolveStack(n,1),o=null;for(let a=i;a;a=a.next){let i=a.node;if(i.to<=n||i.from>n)continue;if(o&&i.from<e)break;let s=i.type.prop(mh);if(s&&(i.to<r.length-50||r.length==t.doc.length||!_h(i))){let r=s(i,t);r&&r.from<=n&&r.from>=e&&r.to>n&&(o=r)}}return o}function _h(t){let e=t.lastChild;return e&&e.to==t.to&&e.type.isError}function xh(t,e,n){for(let r of t.facet(vh)){let i=r(t,e,n);if(i)return i}return bh(t,e,n)}function wh(t,e){let n=e.mapPos(t.from,1),r=e.mapPos(t.to,-1);return n>=r?void 0:{from:n,to:r}}const Oh=Te.define({map:wh}),Sh=Te.define({map:wh});function Ah(t){let e=[];for(let{head:n}of t.state.selection.ranges)e.some((t=>t.from<=n&&t.to>=n))||e.push(t.lineBlockAt(n));return e}const kh=le.define({create(){return Nr.none},update(t,e){t=t.map(e.changes);for(let n of e.effects)if(n.is(Oh)&&!Mh(t,n.value.from,n.value.to)){let{preparePlaceholder:r}=e.state.facet(Nh),i=r?Nr.replace({widget:new Wh(r(e.state,n.value))}):Fh;t=t.update({add:[i.range(n.value.from,n.value.to)]})}else n.is(Sh)&&(t=t.update({filter:(t,e)=>n.value.from!=t||n.value.to!=e,filterFrom:n.value.from,filterTo:n.value.to}));if(e.selection){let n=!1,{head:r}=e.selection.main;t.between(r,r,((t,e)=>{t<r&&e>r&&(n=!0)})),n&&(t=t.update({filterFrom:r,filterTo:r,filter:(t,e)=>e<=r||t>=r}))}return t},provide:t=>cs.decorations.from(t),toJSON(t,e){let n=[];return t.between(0,e.doc.length,((t,e)=>{n.push(t,e)})),n},fromJSON(t){if(!Array.isArray(t)||t.length%2)throw new RangeError("Invalid JSON for fold state");let e=[];for(let n=0;n<t.length;){let r=t[n++],i=t[n++];if("number"!=typeof r||"number"!=typeof i)throw new RangeError("Invalid JSON for fold state");e.push(Fh.range(r,i))}return Nr.set(e,!0)}});function Ch(t,e,n){var r;let i=null;return null===(r=t.field(kh,!1))||void 0===r||r.between(e,n,((t,e)=>{(!i||i.from>t)&&(i={from:t,to:e})})),i}function Mh(t,e,n){let r=!1;return t.between(e,e,((t,i)=>{t==e&&i==n&&(r=!0)})),r}function Th(t,e){return t.field(kh,!1)?e:e.concat(Te.appendConfig.of(zh()))}const Ph=t=>{for(let e of Ah(t)){let n=xh(t.state,e.from,e.to);if(n)return t.dispatch({effects:Th(t.state,[Oh.of(n),$h(t,n)])}),!0}return!1},Ih=t=>{if(!t.state.field(kh,!1))return!1;let e=[];for(let n of Ah(t)){let r=Ch(t.state,n.from,n.to);r&&e.push(Sh.of(r),$h(t,r,!1))}return e.length&&t.dispatch({effects:e}),e.length>0};function $h(t,e,n=!0){let r=t.state.doc.lineAt(e.from).number,i=t.state.doc.lineAt(e.to).number;return cs.announce.of(`${t.state.phrase(n?"Folded lines":"Unfolded lines")} ${r} ${t.state.phrase("to")} ${i}.`)}const Eh=t=>{let{state:e}=t,n=[];for(let r=0;r<e.doc.length;){let i=t.lineBlockAt(r),o=xh(e,i.from,i.to);o&&n.push(Oh.of(o)),r=(o?t.lineBlockAt(o.to):i).to+1}return n.length&&t.dispatch({effects:Th(t.state,n)}),!!n.length},Rh=t=>{let e=t.state.field(kh,!1);if(!e||!e.size)return!1;let n=[];return e.between(0,t.state.doc.length,((t,e)=>{n.push(Sh.of({from:t,to:e}))})),t.dispatch({effects:n}),!0};const Dh=[{key:"Ctrl-Shift-[",mac:"Cmd-Alt-[",run:Ph},{key:"Ctrl-Shift-]",mac:"Cmd-Alt-]",run:Ih},{key:"Ctrl-Alt-[",run:Eh},{key:"Ctrl-Alt-]",run:Rh}],Lh={placeholderDOM:null,preparePlaceholder:null,placeholderText:"…"},Nh=ee.define({combine(t){return He(t,Lh)}});function zh(t){let e=[kh,Hh];return t&&e.push(Nh.of(t)),e}function Bh(t,e){let{state:n}=t,r=n.facet(Nh),i=e=>{let n=t.lineBlockAt(t.posAtDOM(e.target)),r=Ch(t.state,n.from,n.to);r&&t.dispatch({effects:Sh.of(r)}),e.preventDefault()};if(r.placeholderDOM)return r.placeholderDOM(t,i,e);let o=document.createElement("span");return o.textContent=r.placeholderText,o.setAttribute("aria-label",n.phrase("folded code")),o.title=n.phrase("unfold"),o.className="cm-foldPlaceholder",o.onclick=i,o}const Fh=Nr.replace({widget:new class extends Dr{toDOM(t){return Bh(t,null)}}});class Wh extends Dr{constructor(t){super(),this.value=t}eq(t){return this.value==t.value}toDOM(t){return Bh(t,this.value)}}const jh={openText:"⌄",closedText:"›",markerDOM:null,domEventHandlers:{},foldingChanged:()=>!1};class Vh extends Yl{constructor(t,e){super(),this.config=t,this.open=e}eq(t){return this.config==t.config&&this.open==t.open}toDOM(t){if(this.config.markerDOM)return this.config.markerDOM(this.open);let e=document.createElement("span");return e.textContent=this.open?this.config.openText:this.config.closedText,e.title=t.state.phrase(this.open?"Fold line":"Unfold line"),e}}function Qh(t={}){let e=Object.assign(Object.assign({},jh),t),n=new Vh(e,!0),r=new Vh(e,!1),i=Ei.fromClass(class{constructor(t){this.from=t.viewport.from,this.markers=this.buildMarkers(t)}update(t){(t.docChanged||t.viewportChanged||t.startState.facet(Gc)!=t.state.facet(Gc)||t.startState.field(kh,!1)!=t.state.field(kh,!1)||zc(t.startState)!=zc(t.state)||e.foldingChanged(t))&&(this.markers=this.buildMarkers(t.view))}buildMarkers(t){let e=new Ke;for(let i of t.viewportLineBlocks){let o=Ch(t.state,i.from,i.to)?r:xh(t.state,i.from,i.to)?n:null;o&&e.add(i.from,i.from,o)}return e.finish()}}),{domEventHandlers:o}=e;return[i,tu({class:"cm-foldGutter",markers(t){var e;return(null===(e=t.plugin(i))||void 0===e?void 0:e.markers)||Ye.empty},initialSpacer(){return new Vh(e,!1)},domEventHandlers:Object.assign(Object.assign({},o),{click:(t,e,n)=>{if(o.click&&o.click(t,e,n))return!0;let r=Ch(t.state,e.from,e.to);if(r)return t.dispatch({effects:Sh.of(r)}),!0;let i=xh(t.state,e.from,e.to);return!!i&&(t.dispatch({effects:Oh.of(i)}),!0)}})}),zh()]}const Hh=cs.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 Zh{constructor(t,e){let n;function r(t){let e=vn.newName();return(n||(n=Object.create(null)))["."+e]=t,e}this.specs=t;const i="string"==typeof e.all?e.all:e.all?r(e.all):void 0,o=e.scope;this.scope=o instanceof Dc?t=>t.prop($c)==o.data:o?t=>t==o:void 0,this.style=cc(t.map((t=>({tag:t.tag,class:t.class||r(Object.assign({},t,{tag:null}))}))),{all:i}).style,this.module=n?new vn(n):null,this.themeType=e.themeType}static define(t,e){return new Zh(t,e||{})}}const Gh=ee.define(),Xh=ee.define({combine(t){return t.length?[t[0]]:null}});function Uh(t){let e=t.facet(Gh);return e.length?e:t.facet(Xh)}function Yh(t,e){let n,r=[Kh];return t instanceof Zh&&(t.module&&r.push(cs.styleModule.of(t.module)),n=t.themeType),(null===e||void 0===e?void 0:e.fallback)?r.push(Xh.of(t)):n?r.push(Gh.computeN([cs.darkTheme],(e=>e.facet(cs.darkTheme)==("dark"==n)?[t]:[]))):r.push(Gh.of(t)),r}class qh{constructor(t){this.markCache=Object.create(null),this.tree=zc(t.state),this.decorations=this.buildDeco(t,Uh(t.state)),this.decoratedTo=t.viewport.to}update(t){let e=zc(t.state),n=Uh(t.state),r=n!=Uh(t.startState),{viewport:i}=t.view,o=t.changes.mapPos(this.decoratedTo,1);e.length<i.to&&!r&&e.type==this.tree.type&&o>=i.to?(this.decorations=this.decorations.map(t.changes),this.decoratedTo=o):(e!=this.tree||t.viewportChanged||r)&&(this.tree=e,this.decorations=this.buildDeco(t.view,n),this.decoratedTo=i.to)}buildDeco(t,e){if(!e||!this.tree.length)return Nr.none;let n=new Ke;for(let{from:r,to:i}of t.visibleRanges)dc(this.tree,e,((t,e,r)=>{n.add(t,e,this.markCache[r]||(this.markCache[r]=Nr.mark({class:r})))}),r,i);return n.finish()}}const Kh=he.high(Ei.fromClass(qh,{decorations:t=>t.decorations})),Jh=Zh.define([{tag:Pc.meta,color:"#404740"},{tag:Pc.link,textDecoration:"underline"},{tag:Pc.heading,textDecoration:"underline",fontWeight:"bold"},{tag:Pc.emphasis,fontStyle:"italic"},{tag:Pc.strong,fontWeight:"bold"},{tag:Pc.strikethrough,textDecoration:"line-through"},{tag:Pc.keyword,color:"#708"},{tag:[Pc.atom,Pc.bool,Pc.url,Pc.contentSeparator,Pc.labelName],color:"#219"},{tag:[Pc.literal,Pc.inserted],color:"#164"},{tag:[Pc.string,Pc.deleted],color:"#a11"},{tag:[Pc.regexp,Pc.escape,Pc.special(Pc.string)],color:"#e40"},{tag:Pc.definition(Pc.variableName),color:"#00f"},{tag:Pc.local(Pc.variableName),color:"#30a"},{tag:[Pc.typeName,Pc.namespace],color:"#085"},{tag:Pc.className,color:"#167"},{tag:[Pc.special(Pc.variableName),Pc.macroName],color:"#256"},{tag:Pc.definition(Pc.propertyName),color:"#00c"},{tag:Pc.comment,color:"#940"},{tag:Pc.invalid,color:"#f00"}]),td=cs.baseTheme({"&.cm-focused .cm-matchingBracket":{backgroundColor:"#328c8252"},"&.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bb555544"}}),ed=1e4,nd="()[]{}",rd=ee.define({combine(t){return He(t,{afterCursor:!0,brackets:nd,maxScanDistance:ed,renderMatch:ad})}}),id=Nr.mark({class:"cm-matchingBracket"}),od=Nr.mark({class:"cm-nonmatchingBracket"});function ad(t){let e=[],n=t.matched?id:od;return e.push(n.range(t.start.from,t.start.to)),t.end&&e.push(n.range(t.end.from,t.end.to)),e}const sd=le.define({create(){return Nr.none},update(t,e){if(!e.docChanged&&!e.selection)return t;let n=[],r=e.state.facet(rd);for(let i of e.state.selection.ranges){if(!i.empty)continue;let t=pd(e.state,i.head,-1,r)||i.head>0&&pd(e.state,i.head-1,1,r)||r.afterCursor&&(pd(e.state,i.head,1,r)||i.head<e.state.doc.length&&pd(e.state,i.head+1,-1,r));t&&(n=n.concat(r.renderMatch(t,e.state)))}return Nr.set(n,!0)},provide:t=>cs.decorations.from(t)}),ld=[sd,td];function ud(t={}){return[rd.of(t),ld]}const cd=new Ou;function hd(t,e,n){let r=t.prop(e<0?Ou.openedBy:Ou.closedBy);if(r)return r;if(1==t.name.length){let r=n.indexOf(t.name);if(r>-1&&r%2==(e<0?1:0))return[n[r+e]]}return null}function dd(t){let e=t.type.prop(cd);return e?e(t.node):t}function pd(t,e,n,r={}){let i=r.maxScanDistance||ed,o=r.brackets||nd,a=zc(t),s=a.resolveInner(e,n);for(let l=s;l;l=l.parent){let r=hd(l.type,n,o);if(r&&l.from<l.to){let i=dd(l);if(i&&(n>0?e>=i.from&&e<i.to:e>i.from&&e<=i.to))return fd(t,e,n,l,i,r,o)}}return gd(t,e,n,a,s.type,i,o)}function fd(t,e,n,r,i,o,a){let s=r.parent,l={from:i.from,to:i.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&&o.indexOf(c.type.name)>-1&&c.from<c.to){let t=dd(c);return{start:l,end:t?{from:t.from,to:t.to}:void 0,matched:!0}}if(hd(c.type,n,a))u++;else if(hd(c.type,-n,a)){if(0==u){let t=dd(c);return{start:l,end:t&&t.from<t.to?{from:t.from,to:t.to}:void 0,matched:!1}}u--}}}while(n<0?c.prevSibling():c.nextSibling());return{start:l,matched:!1}}function gd(t,e,n,r,i,o,a){let s=n<0?t.sliceDoc(e-1,e):t.sliceDoc(e,e+1),l=a.indexOf(s);if(l<0||l%2==0!=n>0)return null;let u={from:n<0?e-1:e,to:n>0?e+1:e},c=t.doc.iterRange(e,n>0?t.doc.length:0),h=0;for(let d=0;!c.next().done&&d<=o;){let t=c.value;n<0&&(d+=t.length);let o=e+d*n;for(let e=n>0?0:t.length-1,s=n>0?t.length:-1;e!=s;e+=n){let s=a.indexOf(t[e]);if(!(s<0||r.resolveInner(o+e,1).type!=i))if(s%2==0==n>0)h++;else{if(1==h)return{start:u,end:{from:o+e,to:o+e+1},matched:s>>1==l>>1};h--}}n>0&&(d+=t.length)}return c.done?{start:u,matched:!1}:null}const vd=Object.create(null),md=[ku.none],yd=[],bd=Object.create(null),_d=Object.create(null);for(let[q_,K_]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"]])_d[q_]=wd(vd,K_);function xd(t,e){yd.indexOf(t)>-1||(yd.push(t),console.warn(e))}function wd(t,e){let n=[];for(let s of e.split(" ")){let e=[];for(let n of s.split(".")){let r=t[n]||Pc[n];r?"function"==typeof r?e.length?e=e.map(r):xd(n,`Modifier ${n} used at start of tag`):e.length?xd(n,`Tag ${n} used as modifier`):e=Array.isArray(r)?r:[r]:xd(n,`Unknown highlighting tag ${n}`)}for(let t of e)n.push(t)}if(!n.length)return 0;let r=e.replace(/ /g,"_"),i=r+" "+n.map((t=>t.id)),o=bd[i];if(o)return o.id;let a=bd[i]=ku.define({id:md.length,name:r,props:[sc({[r]:n})]});return md.push(a),a.id}Gr.RTL,Gr.LTR;const Od=t=>{let{state:e}=t,n=e.doc.lineAt(e.selection.main.from),r=Md(t.state,n.from);return r.line?Ad(t):!!r.block&&Cd(t)};function Sd(t,e){return({state:n,dispatch:r})=>{if(n.readOnly)return!1;let i=t(e,n);return!!i&&(r(n.update(i)),!0)}}const Ad=Sd(Ed,0),kd=Sd($d,0),Cd=Sd(((t,e)=>$d(t,e,Id(e))),0);function Md(t,e){let n=t.languageDataAt("commentTokens",e);return n.length?n[0]:{}}const Td=50;function Pd(t,{open:e,close:n},r,i){let o,a,s=t.sliceDoc(r-Td,r),l=t.sliceDoc(i,i+Td),u=/\s*$/.exec(s)[0].length,c=/^\s*/.exec(l)[0].length,h=s.length-u;if(s.slice(h-e.length,h)==e&&l.slice(c,c+n.length)==n)return{open:{pos:r-u,margin:u&&1},close:{pos:i+c,margin:c&&1}};i-r<=2*Td?o=a=t.sliceDoc(r,i):(o=t.sliceDoc(r,r+Td),a=t.sliceDoc(i-Td,i));let d=/^\s*/.exec(o)[0].length,p=/\s*$/.exec(a)[0].length,f=a.length-p-n.length;return o.slice(d,d+e.length)==e&&a.slice(f,f+n.length)==n?{open:{pos:r+d+e.length,margin:/\s/.test(o.charAt(d+e.length))?1:0},close:{pos:i-p-n.length,margin:/\s/.test(a.charAt(f-1))?1:0}}:null}function Id(t){let e=[];for(let n of t.selection.ranges){let r=t.doc.lineAt(n.from),i=n.to<=r.to?r:t.doc.lineAt(n.to),o=e.length-1;o>=0&&e[o].to>r.from?e[o].to=i.to:e.push({from:r.from+/^\s*/.exec(r.text)[0].length,to:i.to})}return e}function $d(t,e,n=e.selection.ranges){let r=n.map((t=>Md(e,t.from).block));if(!r.every((t=>t)))return null;let i=n.map(((t,n)=>Pd(e,r[n],t.from,t.to)));if(2!=t&&!i.every((t=>t)))return{changes:e.changes(n.map(((t,e)=>i[e]?[]:[{from:t.from,insert:r[e].open+" "},{from:t.to,insert:" "+r[e].close}])))};if(1!=t&&i.some((t=>t))){let t=[];for(let e,n=0;n<i.length;n++)if(e=i[n]){let i=r[n],{open:o,close:a}=e;t.push({from:o.pos-i.open.length,to:o.pos+o.margin},{from:a.pos-a.margin,to:a.pos+i.close.length})}return{changes:t}}return null}function Ed(t,e,n=e.selection.ranges){let r=[],i=-1;for(let{from:o,to:a}of n){let t=r.length,n=1e9,s=Md(e,o).line;if(s){for(let t=o;t<=a;){let l=e.doc.lineAt(t);if(l.from>i&&(o==a||a>l.from)){i=l.from;let t=/^\s*/.exec(l.text)[0].length,e=t==l.length,o=l.text.slice(t,t+s.length)==s?t:-1;t<l.text.length&&t<n&&(n=t),r.push({line:l,comment:o,token:s,indent:t,empty:e,single:!1})}t=l.to+1}if(n<1e9)for(let e=t;e<r.length;e++)r[e].indent<r[e].line.text.length&&(r[e].indent=n);r.length==t+1&&(r[t].single=!0)}}if(2!=t&&r.some((t=>t.comment<0&&(!t.empty||t.single)))){let t=[];for(let{line:e,token:i,indent:o,empty:a,single:s}of r)!s&&a||t.push({from:e.from+o,insert:i+" "});let n=e.changes(t);return{changes:n,selection:e.selection.map(n,1)}}if(1!=t&&r.some((t=>t.comment>=0))){let t=[];for(let{line:e,comment:n,token:i}of r)if(n>=0){let r=e.from+n,o=r+i.length;" "==e.text[o-e.from]&&o++,t.push({from:r,to:o})}return{changes:t}}return null}const Rd=ke.define(),Dd=ke.define(),Ld=ee.define(),Nd=ee.define({combine(t){return He(t,{minDepth:100,newGroupDelay:500,joinToEvent:(t,e)=>e},{minDepth:Math.max,newGroupDelay:Math.min,joinToEvent:(t,e)=>(n,r)=>t(n,r)||e(n,r)})}}),zd=le.define({create(){return rp.empty},update(t,e){let n=e.state.facet(Nd),r=e.annotation(Rd);if(r){let i=Hd.fromTransaction(e,r.selection),o=r.side,a=0==o?t.undone:t.done;return a=i?Zd(a,a.length,n.minDepth,i):Kd(a,e.startState.selection),new rp(0==o?r.rest:a,0==o?a:r.rest)}let i=e.annotation(Dd);if("full"!=i&&"before"!=i||(t=t.isolate()),!1===e.annotation(Pe.addToHistory))return e.changes.empty?t:t.addMapping(e.changes.desc);let o=Hd.fromTransaction(e),a=e.annotation(Pe.time),s=e.annotation(Pe.userEvent);return o?t=t.addChanges(o,a,s,n,e):e.selection&&(t=t.addSelection(e.startState.selection,a,s,n.newGroupDelay)),"full"!=i&&"after"!=i||(t=t.isolate()),t},toJSON(t){return{done:t.done.map((t=>t.toJSON())),undone:t.undone.map((t=>t.toJSON()))}},fromJSON(t){return new rp(t.done.map(Hd.fromJSON),t.undone.map(Hd.fromJSON))}});function Bd(t={}){return[zd,Nd.of(t),cs.domEventHandlers({beforeinput(t,e){let n="historyUndo"==t.inputType?Wd:"historyRedo"==t.inputType?jd:null;return!!n&&(t.preventDefault(),n(e))}})]}function Fd(t,e){return function({state:n,dispatch:r}){if(!e&&n.readOnly)return!1;let i=n.field(zd,!1);if(!i)return!1;let o=i.pop(t,n,e);return!!o&&(r(o),!0)}}const Wd=Fd(0,!1),jd=Fd(1,!1),Vd=Fd(0,!0),Qd=Fd(1,!0);class Hd{constructor(t,e,n,r,i){this.changes=t,this.effects=e,this.mapped=n,this.startSelection=r,this.selectionsAfter=i}setSelAfter(t){return new Hd(this.changes,this.effects,this.mapped,this.startSelection,t)}toJSON(){var t,e,n;return{changes:null===(t=this.changes)||void 0===t?void 0:t.toJSON(),mapped:null===(e=this.mapped)||void 0===e?void 0:e.toJSON(),startSelection:null===(n=this.startSelection)||void 0===n?void 0:n.toJSON(),selectionsAfter:this.selectionsAfter.map((t=>t.toJSON()))}}static fromJSON(t){return new Hd(t.changes&&Qt.fromJSON(t.changes),[],t.mapped&&Vt.fromJSON(t.mapped),t.startSelection&&Kt.fromJSON(t.startSelection),t.selectionsAfter.map(Kt.fromJSON))}static fromTransaction(t,e){let n=Yd;for(let r of t.startState.facet(Ld)){let e=r(t);e.length&&(n=n.concat(e))}return!n.length&&t.changes.empty?null:new Hd(t.changes.invert(t.startState.doc),n,void 0,e||t.startState.selection,Yd)}static selection(t){return new Hd(void 0,Yd,void 0,void 0,t)}}function Zd(t,e,n,r){let i=e+1>n+20?e-n-1:0,o=t.slice(i,e);return o.push(r),o}function Gd(t,e){let n=[],r=!1;return t.iterChangedRanges(((t,e)=>n.push(t,e))),e.iterChangedRanges(((t,e,i,o)=>{for(let a=0;a<n.length;){let t=n[a++],e=n[a++];o>=t&&i<=e&&(r=!0)}})),r}function Xd(t,e){return t.ranges.length==e.ranges.length&&0===t.ranges.filter(((t,n)=>t.empty!=e.ranges[n].empty)).length}function Ud(t,e){return t.length?e.length?t.concat(e):t:e}const Yd=[],qd=200;function Kd(t,e){if(t.length){let n=t[t.length-1],r=n.selectionsAfter.slice(Math.max(0,n.selectionsAfter.length-qd));return r.length&&r[r.length-1].eq(e)?t:(r.push(e),Zd(t,t.length-1,1e9,n.setSelAfter(r)))}return[Hd.selection([e])]}function Jd(t){let e=t[t.length-1],n=t.slice();return n[t.length-1]=e.setSelAfter(e.selectionsAfter.slice(0,e.selectionsAfter.length-1)),n}function tp(t,e){if(!t.length)return t;let n=t.length,r=Yd;while(n){let i=ep(t[n-1],e,r);if(i.changes&&!i.changes.empty||i.effects.length){let e=t.slice(0,n);return e[n-1]=i,e}e=i.mapped,n--,r=i.selectionsAfter}return r.length?[Hd.selection(r)]:Yd}function ep(t,e,n){let r=Ud(t.selectionsAfter.length?t.selectionsAfter.map((t=>t.map(e))):Yd,n);if(!t.changes)return Hd.selection(r);let i=t.changes.map(e),o=e.mapDesc(t.changes,!0),a=t.mapped?t.mapped.composeDesc(o):o;return new Hd(i,Te.mapEffects(t.effects,e),a,t.startSelection.map(o),r)}const np=/^(input\.type|delete)($|\.)/;class rp{constructor(t,e,n=0,r=void 0){this.done=t,this.undone=e,this.prevTime=n,this.prevUserEvent=r}isolate(){return this.prevTime?new rp(this.done,this.undone):this}addChanges(t,e,n,r,i){let o=this.done,a=o[o.length-1];return o=a&&a.changes&&!a.changes.empty&&t.changes&&(!n||np.test(n))&&(!a.selectionsAfter.length&&e-this.prevTime<r.newGroupDelay&&r.joinToEvent(i,Gd(a.changes,t.changes))||"input.type.compose"==n)?Zd(o,o.length-1,r.minDepth,new Hd(t.changes.compose(a.changes),Ud(t.effects,a.effects),a.mapped,a.startSelection,Yd)):Zd(o,o.length,r.minDepth,t),new rp(o,Yd,e,n)}addSelection(t,e,n,r){let i=this.done.length?this.done[this.done.length-1].selectionsAfter:Yd;return i.length>0&&e-this.prevTime<r&&n==this.prevUserEvent&&n&&/^select($|\.)/.test(n)&&Xd(i[i.length-1],t)?this:new rp(Kd(this.done,t),this.undone,e,n)}addMapping(t){return new rp(tp(this.done,t),tp(this.undone,t),this.prevTime,this.prevUserEvent)}pop(t,e,n){let r=0==t?this.done:this.undone;if(0==r.length)return null;let i=r[r.length-1],o=i.selectionsAfter[0]||e.selection;if(n&&i.selectionsAfter.length)return e.update({selection:i.selectionsAfter[i.selectionsAfter.length-1],annotations:Rd.of({side:t,rest:Jd(r),selection:o}),userEvent:0==t?"select.undo":"select.redo",scrollIntoView:!0});if(i.changes){let n=1==r.length?Yd:r.slice(0,r.length-1);return i.mapped&&(n=tp(n,i.mapped)),e.update({changes:i.changes,selection:i.startSelection,effects:i.effects,annotations:Rd.of({side:t,rest:n,selection:o}),filter:!1,userEvent:0==t?"undo":"redo",scrollIntoView:!0})}return null}}rp.empty=new rp(Yd,Yd);const ip=[{key:"Mod-z",run:Wd,preventDefault:!0},{key:"Mod-y",mac:"Mod-Shift-z",run:jd,preventDefault:!0},{linux:"Ctrl-Shift-z",run:jd,preventDefault:!0},{key:"Mod-u",run:Vd,preventDefault:!0},{key:"Alt-u",mac:"Mod-Shift-u",run:Qd,preventDefault:!0}];function op(t,e){return Kt.create(t.ranges.map(e),t.mainIndex)}function ap(t,e){return t.update({selection:e,scrollIntoView:!0,userEvent:"select"})}function sp({state:t,dispatch:e},n){let r=op(t.selection,n);return!r.eq(t.selection,!0)&&(e(ap(t,r)),!0)}function lp(t,e){return Kt.cursor(e?t.to:t.from)}function up(t,e){return sp(t,(n=>n.empty?t.moveByChar(n,e):lp(n,e)))}function cp(t){return t.textDirectionAt(t.state.selection.main.head)==Gr.LTR}const hp=t=>up(t,!cp(t)),dp=t=>up(t,cp(t));function pp(t,e){return sp(t,(n=>n.empty?t.moveByGroup(n,e):lp(n,e)))}const fp=t=>pp(t,!cp(t)),gp=t=>pp(t,cp(t));"undefined"!=typeof Intl&&Intl.Segmenter;function vp(t,e,n){if(e.type.prop(n))return!0;let r=e.to-e.from;return r&&(r>2||/[^\s,.;:]/.test(t.sliceDoc(e.from,e.to)))||e.firstChild}function mp(t,e,n){let r=zc(t).resolveInner(e.head),i=n?Ou.closedBy:Ou.openedBy;for(let l=e.head;;){let e=n?r.childAfter(l):r.childBefore(l);if(!e)break;vp(t,e,i)?r=e:l=n?e.to:e.from}let o,a,s=r.type.prop(i);return a=s&&(o=n?pd(t,r.from,1):pd(t,r.to,-1))&&o.matched?n?o.end.to:o.end.from:n?r.to:r.from,Kt.cursor(a,n?-1:1)}const yp=t=>sp(t,(e=>mp(t.state,e,!cp(t)))),bp=t=>sp(t,(e=>mp(t.state,e,cp(t))));function _p(t,e){return sp(t,(n=>{if(!n.empty)return lp(n,e);let r=t.moveVertically(n,e);return r.head!=n.head?r:t.moveToLineBoundary(n,e)}))}const xp=t=>_p(t,!1),wp=t=>_p(t,!0);function Op(t){let e,n=t.scrollDOM.clientHeight<t.scrollDOM.scrollHeight-2,r=0,i=0;if(n){for(let e of t.state.facet(cs.scrollMargins)){let n=e(t);(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)&&(i=Math.max(null===n||void 0===n?void 0:n.bottom,i))}e=t.scrollDOM.clientHeight-r-i}else e=(t.dom.ownerDocument.defaultView||window).innerHeight;return{marginTop:r,marginBottom:i,selfScroll:n,height:Math.max(t.defaultLineHeight,e-5)}}function Sp(t,e){let n,r=Op(t),{state:i}=t,o=op(i.selection,(n=>n.empty?t.moveVertically(n,e,r.height):lp(n,e)));if(o.eq(i.selection))return!1;if(r.selfScroll){let e=t.coordsAtPos(i.selection.main.head),a=t.scrollDOM.getBoundingClientRect(),s=a.top+r.marginTop,l=a.bottom-r.marginBottom;e&&e.top>s&&e.bottom<l&&(n=cs.scrollIntoView(o.main.head,{y:"start",yMargin:e.top-s}))}return t.dispatch(ap(i,o),{effects:n}),!0}const Ap=t=>Sp(t,!1),kp=t=>Sp(t,!0);function Cp(t,e,n){let r=t.lineBlockAt(e.head),i=t.moveToLineBoundary(e,n);if(i.head==e.head&&i.head!=(n?r.to:r.from)&&(i=t.moveToLineBoundary(e,n,!1)),!n&&i.head==r.from&&r.length){let n=/^\s*/.exec(t.state.sliceDoc(r.from,Math.min(r.from+100,r.to)))[0].length;n&&e.head!=r.from+n&&(i=Kt.cursor(r.from+n))}return i}const Mp=t=>sp(t,(e=>Cp(t,e,!0))),Tp=t=>sp(t,(e=>Cp(t,e,!1))),Pp=t=>sp(t,(e=>Cp(t,e,!cp(t)))),Ip=t=>sp(t,(e=>Cp(t,e,cp(t)))),$p=t=>sp(t,(e=>Kt.cursor(t.lineBlockAt(e.head).from,1))),Ep=t=>sp(t,(e=>Kt.cursor(t.lineBlockAt(e.head).to,-1)));function Rp(t,e,n){let r=!1,i=op(t.selection,(e=>{let i=pd(t,e.head,-1)||pd(t,e.head,1)||e.head>0&&pd(t,e.head-1,1)||e.head<t.doc.length&&pd(t,e.head+1,-1);if(!i||!i.end)return e;r=!0;let o=i.start.from==e.head?i.end.to:i.end.from;return n?Kt.range(e.anchor,o):Kt.cursor(o)}));return!!r&&(e(ap(t,i)),!0)}const Dp=({state:t,dispatch:e})=>Rp(t,e,!1);function Lp(t,e){let n=op(t.state.selection,(t=>{let n=e(t);return Kt.range(t.anchor,n.head,n.goalColumn,n.bidiLevel||void 0)}));return!n.eq(t.state.selection)&&(t.dispatch(ap(t.state,n)),!0)}function Np(t,e){return Lp(t,(n=>t.moveByChar(n,e)))}const zp=t=>Np(t,!cp(t)),Bp=t=>Np(t,cp(t));function Fp(t,e){return Lp(t,(n=>t.moveByGroup(n,e)))}const Wp=t=>Fp(t,!cp(t)),jp=t=>Fp(t,cp(t));const Vp=t=>Lp(t,(e=>mp(t.state,e,!cp(t)))),Qp=t=>Lp(t,(e=>mp(t.state,e,cp(t))));function Hp(t,e){return Lp(t,(n=>t.moveVertically(n,e)))}const Zp=t=>Hp(t,!1),Gp=t=>Hp(t,!0);function Xp(t,e){return Lp(t,(n=>t.moveVertically(n,e,Op(t).height)))}const Up=t=>Xp(t,!1),Yp=t=>Xp(t,!0),qp=t=>Lp(t,(e=>Cp(t,e,!0))),Kp=t=>Lp(t,(e=>Cp(t,e,!1))),Jp=t=>Lp(t,(e=>Cp(t,e,!cp(t)))),tf=t=>Lp(t,(e=>Cp(t,e,cp(t)))),ef=t=>Lp(t,(e=>Kt.cursor(t.lineBlockAt(e.head).from))),nf=t=>Lp(t,(e=>Kt.cursor(t.lineBlockAt(e.head).to))),rf=({state:t,dispatch:e})=>(e(ap(t,{anchor:0})),!0),of=({state:t,dispatch:e})=>(e(ap(t,{anchor:t.doc.length})),!0),af=({state:t,dispatch:e})=>(e(ap(t,{anchor:t.selection.main.anchor,head:0})),!0),sf=({state:t,dispatch:e})=>(e(ap(t,{anchor:t.selection.main.anchor,head:t.doc.length})),!0),lf=({state:t,dispatch:e})=>(e(t.update({selection:{anchor:0,head:t.doc.length},userEvent:"select"})),!0),uf=({state:t,dispatch:e})=>{let n=Af(t).map((({from:e,to:n})=>Kt.range(e,Math.min(n+1,t.doc.length))));return e(t.update({selection:Kt.create(n),userEvent:"select"})),!0},cf=({state:t,dispatch:e})=>{let n=op(t.selection,(e=>{var n;let r=zc(t).resolveStack(e.from,1);for(let t=r;t;t=t.next){let{node:r}=t;if((r.from<e.from&&r.to>=e.to||r.to>e.to&&r.from<=e.from)&&(null===(n=r.parent)||void 0===n?void 0:n.parent))return Kt.range(r.to,r.from)}return e}));return e(ap(t,n)),!0},hf=({state:t,dispatch:e})=>{let n=t.selection,r=null;return n.ranges.length>1?r=Kt.create([n.main]):n.main.empty||(r=Kt.create([Kt.cursor(n.main.head)])),!!r&&(e(ap(t,r)),!0)};function df(t,e){if(t.state.readOnly)return!1;let n="delete.selection",{state:r}=t,i=r.changeByRange((r=>{let{from:i,to:o}=r;if(i==o){let a=e(r);a<i?(n="delete.backward",a=pf(t,a,!1)):a>i&&(n="delete.forward",a=pf(t,a,!0)),i=Math.min(i,a),o=Math.max(o,a)}else i=pf(t,i,!1),o=pf(t,o,!0);return i==o?{range:r}:{changes:{from:i,to:o},range:Kt.cursor(i,i<r.head?-1:1)}}));return!i.changes.empty&&(t.dispatch(r.update(i,{scrollIntoView:!0,userEvent:n,effects:"delete.selection"==n?cs.announce.of(r.phrase("Selection deleted")):void 0})),!0)}function pf(t,e,n){if(t instanceof cs)for(let r of t.state.facet(cs.atomicRanges).map((e=>e(t))))r.between(e,e,((t,r)=>{t<e&&r>e&&(e=n?r:t)}));return e}const ff=(t,e,n)=>df(t,(r=>{let i,o,a=r.from,{state:s}=t,l=s.doc.lineAt(a);if(n&&!e&&a>l.from&&a<l.from+200&&!/[^ \t]/.test(i=l.text.slice(0,a-l.from))){if("\t"==i[i.length-1])return a-1;let t=cn(i,s.tabSize),e=t%qc(s)||qc(s);for(let n=0;n<e&&" "==i[i.length-1-n];n++)a--;o=a}else o=Et(l.text,a-l.from,e,e)+l.from,o==a&&l.number!=(e?s.doc.lines:1)?o+=e?1:-1:!e&&/[\ufe00-\ufe0f]/.test(l.text.slice(o-l.from,a-l.from))&&(o=Et(l.text,o-l.from,!1,!1)+l.from);return o})),gf=t=>ff(t,!1,!0),vf=t=>ff(t,!0,!1),mf=(t,e)=>df(t,(n=>{let r=n.head,{state:i}=t,o=i.doc.lineAt(r),a=i.charCategorizer(r);for(let t=null;;){if(r==(e?o.to:o.from)){r==n.head&&o.number!=(e?i.doc.lines:1)&&(r+=e?1:-1);break}let s=Et(o.text,r-o.from,e)+o.from,l=o.text.slice(Math.min(r,s)-o.from,Math.max(r,s)-o.from),u=a(l);if(null!=t&&u!=t)break;" "==l&&r==n.head||(t=u),r=s}return r})),yf=t=>mf(t,!1),bf=t=>mf(t,!0),_f=t=>df(t,(e=>{let n=t.lineBlockAt(e.head).to;return e.head<n?n:Math.min(t.state.doc.length,e.head+1)})),xf=t=>df(t,(e=>{let n=t.moveToLineBoundary(e,!1).head;return e.head>n?n:Math.max(0,e.head-1)})),wf=t=>df(t,(e=>{let n=t.moveToLineBoundary(e,!0).head;return e.head<n?n:Math.min(t.state.doc.length,e.head+1)})),Of=({state:t,dispatch:e})=>{if(t.readOnly)return!1;let n=t.changeByRange((t=>({changes:{from:t.from,to:t.to,insert:yt.of(["",""])},range:Kt.cursor(t.from)})));return e(t.update(n,{scrollIntoView:!0,userEvent:"input"})),!0},Sf=({state:t,dispatch:e})=>{if(t.readOnly)return!1;let n=t.changeByRange((e=>{if(!e.empty||0==e.from||e.from==t.doc.length)return{range:e};let n=e.from,r=t.doc.lineAt(n),i=n==r.from?n-1:Et(r.text,n-r.from,!1)+r.from,o=n==r.to?n+1:Et(r.text,n-r.from,!0)+r.from;return{changes:{from:i,to:o,insert:t.doc.slice(n,o).append(t.doc.slice(i,n))},range:Kt.cursor(o)}}));return!n.changes.empty&&(e(t.update(n,{scrollIntoView:!0,userEvent:"move.character"})),!0)};function Af(t){let e=[],n=-1;for(let r of t.selection.ranges){let i=t.doc.lineAt(r.from),o=t.doc.lineAt(r.to);if(r.empty||r.to!=o.from||(o=t.doc.lineAt(r.to-1)),n>=i.number){let t=e[e.length-1];t.to=o.to,t.ranges.push(r)}else e.push({from:i.from,to:o.to,ranges:[r]});n=o.number+1}return e}function kf(t,e,n){if(t.readOnly)return!1;let r=[],i=[];for(let o of Af(t)){if(n?o.to==t.doc.length:0==o.from)continue;let e=t.doc.lineAt(n?o.to+1:o.from-1),a=e.length+1;if(n){r.push({from:o.to,to:e.to},{from:o.from,insert:e.text+t.lineBreak});for(let e of o.ranges)i.push(Kt.range(Math.min(t.doc.length,e.anchor+a),Math.min(t.doc.length,e.head+a)))}else{r.push({from:e.from,to:o.from},{from:o.to,insert:t.lineBreak+e.text});for(let t of o.ranges)i.push(Kt.range(t.anchor-a,t.head-a))}}return!!r.length&&(e(t.update({changes:r,scrollIntoView:!0,selection:Kt.create(i,t.selection.mainIndex),userEvent:"move.line"})),!0)}const Cf=({state:t,dispatch:e})=>kf(t,e,!1),Mf=({state:t,dispatch:e})=>kf(t,e,!0);function Tf(t,e,n){if(t.readOnly)return!1;let r=[];for(let i of Af(t))n?r.push({from:i.from,insert:t.doc.slice(i.from,i.to)+t.lineBreak}):r.push({from:i.to,insert:t.lineBreak+t.doc.slice(i.from,i.to)});return e(t.update({changes:r,scrollIntoView:!0,userEvent:"input.copyline"})),!0}const Pf=({state:t,dispatch:e})=>Tf(t,e,!1),If=({state:t,dispatch:e})=>Tf(t,e,!0),$f=t=>{if(t.state.readOnly)return!1;let{state:e}=t,n=e.changes(Af(e).map((({from:t,to:n})=>(t>0?t--:n<e.doc.length&&n++,{from:t,to:n})))),r=op(e.selection,(e=>{let n;if(t.lineWrapping){let r=t.lineBlockAt(e.head),i=t.coordsAtPos(e.head,e.assoc||1);i&&(n=r.bottom+t.documentTop-i.bottom+t.defaultLineHeight/2)}return t.moveVertically(e,!0,n)})).map(n);return t.dispatch({changes:n,selection:r,scrollIntoView:!0,userEvent:"delete.line"}),!0};function Ef(t,e){if(/\(\)|\[\]|\{\}/.test(t.sliceDoc(e-1,e+1)))return{from:e,to:e};let n,r=zc(t).resolveInner(e),i=r.childBefore(e),o=r.childAfter(e);return i&&o&&i.to<=e&&o.from>=e&&(n=i.type.prop(Ou.closedBy))&&n.indexOf(o.name)>-1&&t.doc.lineAt(i.to).from==t.doc.lineAt(o.from).from&&!/\S/.test(t.sliceDoc(i.to,o.from))?{from:i.to,to:o.from}:null}const Rf=Lf(!1),Df=Lf(!0);function Lf(t){return({state:e,dispatch:n})=>{if(e.readOnly)return!1;let r=e.changeByRange((n=>{let{from:r,to:i}=n,o=e.doc.lineAt(r),a=!t&&r==i&&Ef(e,r);t&&(r=i=(i<=o.to?o:e.doc.lineAt(i)).to);let s=new th(e,{simulateBreak:r,simulateDoubleBreak:!!a}),l=Jc(s,r);null==l&&(l=cn(/^\s*/.exec(e.doc.lineAt(r).text)[0],e.tabSize));while(i<o.to&&/\s/.test(o.text[i-o.from]))i++;a?({from:r,to:i}=a):r>o.from&&r<o.from+100&&!/\S/.test(o.text.slice(0,r))&&(r=o.from);let u=["",Kc(e,l)];return a&&u.push(Kc(e,s.lineIndent(o.from,-1))),{changes:{from:r,to:i,insert:yt.of(u)},range:Kt.cursor(r+1+u[1].length)}}));return n(e.update(r,{scrollIntoView:!0,userEvent:"input"})),!0}}function Nf(t,e){let n=-1;return t.changeByRange((r=>{let i=[];for(let a=r.from;a<=r.to;){let o=t.doc.lineAt(a);o.number>n&&(r.empty||r.to>o.from)&&(e(o,i,r),n=o.number),a=o.to+1}let o=t.changes(i);return{changes:i,range:Kt.range(o.mapPos(r.anchor,1),o.mapPos(r.head,1))}}))}const zf=({state:t,dispatch:e})=>{if(t.readOnly)return!1;let n=Object.create(null),r=new th(t,{overrideIndentation:t=>{let e=n[t];return null==e?-1:e}}),i=Nf(t,((e,i,o)=>{let a=Jc(r,e.from);if(null==a)return;/\S/.test(e.text)||(a=0);let s=/^\s*/.exec(e.text)[0],l=Kc(t,a);(s!=l||o.from<e.from+s.length)&&(n[e.from]=a,i.push({from:e.from,to:e.from+s.length,insert:l}))}));return i.changes.empty||e(t.update(i,{userEvent:"indent"})),!0},Bf=({state:t,dispatch:e})=>!t.readOnly&&(e(t.update(Nf(t,((e,n)=>{n.push({from:e.from,insert:t.facet(Yc)})})),{userEvent:"input.indent"})),!0),Ff=({state:t,dispatch:e})=>!t.readOnly&&(e(t.update(Nf(t,((e,n)=>{let r=/^\s*/.exec(e.text)[0];if(!r)return;let i=cn(r,t.tabSize),o=0,a=Kc(t,Math.max(0,i-qc(t)));while(o<r.length&&o<a.length&&r.charCodeAt(o)==a.charCodeAt(o))o++;n.push({from:e.from+o,to:e.from+r.length,insert:a.slice(o)})})),{userEvent:"delete.dedent"})),!0),Wf=t=>(t.setTabFocusMode(),!0),jf=[{key:"Ctrl-b",run:hp,shift:zp,preventDefault:!0},{key:"Ctrl-f",run:dp,shift:Bp},{key:"Ctrl-p",run:xp,shift:Zp},{key:"Ctrl-n",run:wp,shift:Gp},{key:"Ctrl-a",run:$p,shift:ef},{key:"Ctrl-e",run:Ep,shift:nf},{key:"Ctrl-d",run:vf},{key:"Ctrl-h",run:gf},{key:"Ctrl-k",run:_f},{key:"Ctrl-Alt-h",run:yf},{key:"Ctrl-o",run:Of},{key:"Ctrl-t",run:Sf},{key:"Ctrl-v",run:kp}],Vf=[{key:"ArrowLeft",run:hp,shift:zp,preventDefault:!0},{key:"Mod-ArrowLeft",mac:"Alt-ArrowLeft",run:fp,shift:Wp,preventDefault:!0},{mac:"Cmd-ArrowLeft",run:Pp,shift:Jp,preventDefault:!0},{key:"ArrowRight",run:dp,shift:Bp,preventDefault:!0},{key:"Mod-ArrowRight",mac:"Alt-ArrowRight",run:gp,shift:jp,preventDefault:!0},{mac:"Cmd-ArrowRight",run:Ip,shift:tf,preventDefault:!0},{key:"ArrowUp",run:xp,shift:Zp,preventDefault:!0},{mac:"Cmd-ArrowUp",run:rf,shift:af},{mac:"Ctrl-ArrowUp",run:Ap,shift:Up},{key:"ArrowDown",run:wp,shift:Gp,preventDefault:!0},{mac:"Cmd-ArrowDown",run:of,shift:sf},{mac:"Ctrl-ArrowDown",run:kp,shift:Yp},{key:"PageUp",run:Ap,shift:Up},{key:"PageDown",run:kp,shift:Yp},{key:"Home",run:Tp,shift:Kp,preventDefault:!0},{key:"Mod-Home",run:rf,shift:af},{key:"End",run:Mp,shift:qp,preventDefault:!0},{key:"Mod-End",run:of,shift:sf},{key:"Enter",run:Rf},{key:"Mod-a",run:lf},{key:"Backspace",run:gf,shift:gf},{key:"Delete",run:vf},{key:"Mod-Backspace",mac:"Alt-Backspace",run:yf},{key:"Mod-Delete",mac:"Alt-Delete",run:bf},{mac:"Mod-Backspace",run:xf},{mac:"Mod-Delete",run:wf}].concat(jf.map((t=>({mac:t.key,run:t.run,shift:t.shift})))),Qf=[{key:"Alt-ArrowLeft",mac:"Ctrl-ArrowLeft",run:yp,shift:Vp},{key:"Alt-ArrowRight",mac:"Ctrl-ArrowRight",run:bp,shift:Qp},{key:"Alt-ArrowUp",run:Cf},{key:"Shift-Alt-ArrowUp",run:Pf},{key:"Alt-ArrowDown",run:Mf},{key:"Shift-Alt-ArrowDown",run:If},{key:"Escape",run:hf},{key:"Mod-Enter",run:Df},{key:"Alt-l",mac:"Ctrl-l",run:uf},{key:"Mod-i",run:cf,preventDefault:!0},{key:"Mod-[",run:Ff},{key:"Mod-]",run:Bf},{key:"Mod-Alt-\\",run:zf},{key:"Shift-Mod-k",run:$f},{key:"Shift-Mod-\\",run:Dp},{key:"Mod-/",run:Od},{key:"Alt-A",run:kd},{key:"Ctrl-m",mac:"Shift-Alt-m",run:Wf}].concat(Vf),Hf={key:"Tab",run:Bf,shift:Ff};function Zf(){var t=arguments[0];"string"==typeof t&&(t=document.createElement(t));var e=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 i=n[r];"string"==typeof i?t.setAttribute(r,i):null!=i&&(t[r]=i)}e++}for(;e<arguments.length;e++)Gf(t,arguments[e]);return t}function Gf(t,e){if("string"==typeof e)t.appendChild(document.createTextNode(e));else if(null==e);else if(null!=e.nodeType)t.appendChild(e);else{if(!Array.isArray(e))throw new RangeError("Unsupported child node: "+e);for(var n=0;n<e.length;n++)Gf(t,e[n])}}const Xf="function"==typeof String.prototype.normalize?t=>t.normalize("NFKD"):t=>t;class Uf{constructor(t,e,n=0,r=t.length,i,o){this.test=o,this.value={from:0,to:0},this.done=!1,this.matches=[],this.buffer="",this.bufferPos=0,this.iter=t.iterRange(n,r),this.bufferStart=n,this.normalize=i?t=>i(Xf(t)):Xf,this.query=this.normalize(e)}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 zt(this.buffer,this.bufferPos)}next(){while(this.matches.length)this.matches.pop();return this.nextOverlapping()}nextOverlapping(){for(;;){let t=this.peek();if(t<0)return this.done=!0,this;let e=Bt(t),n=this.bufferStart+this.bufferPos;this.bufferPos+=Ft(t);let r=this.normalize(e);for(let i=0,o=n;;i++){let t=r.charCodeAt(i),a=this.match(t,o,this.bufferPos+this.bufferStart);if(i==r.length-1){if(a)return this.value=a,this;break}o==n&&i<e.length&&e.charCodeAt(i)==t&&o++}}}match(t,e,n){let r=null;for(let i=0;i<this.matches.length;i+=2){let e=this.matches[i],o=!1;this.query.charCodeAt(e)==t&&(e==this.query.length-1?r={from:this.matches[i+1],to:n}:(this.matches[i]++,o=!0)),o||(this.matches.splice(i,2),i-=2)}return this.query.charCodeAt(0)==t&&(1==this.query.length?r={from:e,to:n}:this.matches.push(1,e)),r&&this.test&&!this.test(r.from,r.to,this.buffer,this.bufferStart)&&(r=null),r}}"undefined"!=typeof Symbol&&(Uf.prototype[Symbol.iterator]=function(){return this});const Yf={from:-1,to:-1,match:/.*/.exec("")},qf="gm"+(null==/x/.unicode?"":"u");class Kf{constructor(t,e,n,r=0,i=t.length){if(this.text=t,this.to=i,this.curLine="",this.done=!1,this.value=Yf,/\\[sWDnr]|\n|\r|\[\^/.test(e))return new eg(t,e,n,r,i);this.re=new RegExp(e,qf+((null===n||void 0===n?void 0:n.ignoreCase)?"i":"")),this.test=null===n||void 0===n?void 0:n.test,this.iter=t.iter();let o=t.lineAt(r);this.curLineStart=o.from,this.matchPos=rg(t,r),this.getLine(this.curLineStart)}getLine(t){this.iter.next(t),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 t=this.matchPos-this.curLineStart;;){this.re.lastIndex=t;let e=this.matchPos<=this.to&&this.re.exec(this.curLine);if(e){let n=this.curLineStart+e.index,r=n+e[0].length;if(this.matchPos=rg(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,e)))return this.value={from:n,to:r,match:e},this;t=this.matchPos-this.curLineStart}else{if(!(this.curLineStart+this.curLine.length<this.to))return this.done=!0,this;this.nextLine(),t=0}}}}const Jf=new WeakMap;class tg{constructor(t,e){this.from=t,this.text=e}get to(){return this.from+this.text.length}static get(t,e,n){let r=Jf.get(t);if(!r||r.from>=n||r.to<=e){let r=new tg(e,t.sliceString(e,n));return Jf.set(t,r),r}if(r.from==e&&r.to==n)return r;let{text:i,from:o}=r;return o>e&&(i=t.sliceString(e,o)+i,o=e),r.to<n&&(i+=t.sliceString(r.to,n)),Jf.set(t,new tg(o,i)),new tg(e,i.slice(e-o,n-o))}}class eg{constructor(t,e,n,r,i){this.text=t,this.to=i,this.done=!1,this.value=Yf,this.matchPos=rg(t,r),this.re=new RegExp(e,qf+((null===n||void 0===n?void 0:n.ignoreCase)?"i":"")),this.test=null===n||void 0===n?void 0:n.test,this.flat=tg.get(t,r,this.chunkEnd(r+5e3))}chunkEnd(t){return t>=this.to?this.to:this.text.lineAt(t).to}next(){for(;;){let t=this.re.lastIndex=this.matchPos-this.flat.from,e=this.re.exec(this.flat.text);if(e&&!e[0]&&e.index==t&&(this.re.lastIndex=t+1,e=this.re.exec(this.flat.text)),e){let t=this.flat.from+e.index,n=t+e[0].length;if((this.flat.to>=this.to||e.index+e[0].length<=this.flat.text.length-10)&&(!this.test||this.test(t,n,e)))return this.value={from:t,to:n,match:e},this.matchPos=rg(this.text,n+(t==n?1:0)),this}if(this.flat.to==this.to)return this.done=!0,this;this.flat=tg.get(this.text,this.flat.from,this.chunkEnd(this.flat.from+2*this.flat.text.length))}}}function ng(t){try{return new RegExp(t,qf),!0}catch(Ic){return!1}}function rg(t,e){if(e>=t.length)return e;let n,r=t.lineAt(e);while(e<r.to&&(n=r.text.charCodeAt(e-r.from))>=56320&&n<57344)e++;return e}function ig(t){let e=String(t.state.doc.lineAt(t.state.selection.main.head).number),n=Zf("input",{class:"cm-textfield",name:"line",value:e}),r=Zf("form",{class:"cm-gotoLine",onkeydown:e=>{27==e.keyCode?(e.preventDefault(),t.dispatch({effects:og.of(!1)}),t.focus()):13==e.keyCode&&(e.preventDefault(),i())},onsubmit:t=>{t.preventDefault(),i()}},Zf("label",t.state.phrase("Go to line"),": ",n)," ",Zf("button",{class:"cm-button",type:"submit"},t.state.phrase("go")));function i(){let e=/^([+-])?(\d+)?(:\d+)?(%)?$/.exec(n.value);if(!e)return;let{state:r}=t,i=r.doc.lineAt(r.selection.main.head),[,o,a,s,l]=e,u=s?+s.slice(1):0,c=a?+a:i.number;if(a&&l){let t=c/100;o&&(t=t*("-"==o?-1:1)+i.number/r.doc.lines),c=Math.round(r.doc.lines*t)}else a&&o&&(c=c*("-"==o?-1:1)+i.number);let h=r.doc.line(Math.max(1,Math.min(r.doc.lines,c))),d=Kt.cursor(h.from+Math.max(0,Math.min(u,h.length)));t.dispatch({effects:[og.of(!1),cs.scrollIntoView(d.from,{y:"center"})],selection:d}),t.focus()}return{dom:r}}"undefined"!=typeof Symbol&&(Kf.prototype[Symbol.iterator]=eg.prototype[Symbol.iterator]=function(){return this});const og=Te.define(),ag=le.define({create(){return!0},update(t,e){for(let n of e.effects)n.is(og)&&(t=n.value);return t},provide:t=>Ul.from(t,(t=>t?ig:null))}),sg=t=>{let e=Hl(t,ig);if(!e){let n=[og.of(!0)];null==t.state.field(ag,!1)&&n.push(Te.appendConfig.of([ag,lg])),t.dispatch({effects:n}),e=Hl(t,ig)}return e&&e.dom.querySelector("input").select(),!0},lg=cs.baseTheme({".cm-panel.cm-gotoLine":{padding:"2px 6px 4px","& label":{fontSize:"80%"}}}),ug={highlightWordAroundCursor:!1,minSelectionLength:1,maxMatches:100,wholeWords:!1},cg=ee.define({combine(t){return He(t,ug,{highlightWordAroundCursor:(t,e)=>t||e,minSelectionLength:Math.min,maxMatches:Math.min})}});function hg(t){let e=[mg,vg];return t&&e.push(cg.of(t)),e}const dg=Nr.mark({class:"cm-selectionMatch"}),pg=Nr.mark({class:"cm-selectionMatch cm-selectionMatch-main"});function fg(t,e,n,r){return(0==n||t(e.sliceDoc(n-1,n))!=Be.Word)&&(r==e.doc.length||t(e.sliceDoc(r,r+1))!=Be.Word)}function gg(t,e,n,r){return t(e.sliceDoc(n,n+1))==Be.Word&&t(e.sliceDoc(r-1,r))==Be.Word}const vg=Ei.fromClass(class{constructor(t){this.decorations=this.getDeco(t)}update(t){(t.selectionSet||t.docChanged||t.viewportChanged)&&(this.decorations=this.getDeco(t.view))}getDeco(t){let e=t.state.facet(cg),{state:n}=t,r=n.selection;if(r.ranges.length>1)return Nr.none;let i,o=r.main,a=null;if(o.empty){if(!e.highlightWordAroundCursor)return Nr.none;let t=n.wordAt(o.head);if(!t)return Nr.none;a=n.charCategorizer(o.head),i=n.sliceDoc(t.from,t.to)}else{let t=o.to-o.from;if(t<e.minSelectionLength||t>200)return Nr.none;if(e.wholeWords){if(i=n.sliceDoc(o.from,o.to),a=n.charCategorizer(o.head),!fg(a,n,o.from,o.to)||!gg(a,n,o.from,o.to))return Nr.none}else if(i=n.sliceDoc(o.from,o.to),!i)return Nr.none}let s=[];for(let l of t.visibleRanges){let t=new Uf(n.doc,i,l.from,l.to);while(!t.next().done){let{from:r,to:i}=t.value;if((!a||fg(a,n,r,i))&&(o.empty&&r<=o.from&&i>=o.to?s.push(pg.range(r,i)):(r>=o.to||i<=o.from)&&s.push(dg.range(r,i)),s.length>e.maxMatches))return Nr.none}}return Nr.set(s)}},{decorations:t=>t.decorations}),mg=cs.baseTheme({".cm-selectionMatch":{backgroundColor:"#99ff7780"},".cm-searchMatch .cm-selectionMatch":{backgroundColor:"transparent"}}),yg=({state:t,dispatch:e})=>{let{selection:n}=t,r=Kt.create(n.ranges.map((e=>t.wordAt(e.head)||Kt.cursor(e.head))),n.mainIndex);return!r.eq(n)&&(e(t.update({selection:r})),!0)};function bg(t,e){let{main:n,ranges:r}=t.selection,i=t.wordAt(n.head),o=i&&i.from==n.from&&i.to==n.to;for(let a=!1,s=new Uf(t.doc,e,r[r.length-1].to);;){if(s.next(),!s.done){if(a&&r.some((t=>t.from==s.value.from)))continue;if(o){let e=t.wordAt(s.value.from);if(!e||e.from!=s.value.from||e.to!=s.value.to)continue}return s.value}if(a)return null;s=new Uf(t.doc,e,0,Math.max(0,r[r.length-1].from-1)),a=!0}}const _g=({state:t,dispatch:e})=>{let{ranges:n}=t.selection;if(n.some((t=>t.from===t.to)))return yg({state:t,dispatch:e});let r=t.sliceDoc(n[0].from,n[0].to);if(t.selection.ranges.some((e=>t.sliceDoc(e.from,e.to)!=r)))return!1;let i=bg(t,r);return!!i&&(e(t.update({selection:t.selection.addRange(Kt.range(i.from,i.to),!1),effects:cs.scrollIntoView(i.to)})),!0)},xg=ee.define({combine(t){return He(t,{top:!1,caseSensitive:!1,literal:!1,regexp:!1,wholeWord:!1,createPanel:t=>new Jg(t),scrollToMatch:t=>cs.scrollIntoView(t)})}});class wg{constructor(t){this.search=t.search,this.caseSensitive=!!t.caseSensitive,this.literal=!!t.literal,this.regexp=!!t.regexp,this.replace=t.replace||"",this.valid=!!this.search&&(!this.regexp||ng(this.search)),this.unquoted=this.unquote(this.search),this.wholeWord=!!t.wholeWord}unquote(t){return this.literal?t:t.replace(/\\([nrt\\])/g,((t,e)=>"n"==e?"\n":"r"==e?"\r":"t"==e?"\t":"\\"))}eq(t){return this.search==t.search&&this.replace==t.replace&&this.caseSensitive==t.caseSensitive&&this.regexp==t.regexp&&this.wholeWord==t.wholeWord}create(){return this.regexp?new Ig(this):new kg(this)}getCursor(t,e=0,n){let r=t.doc?t:Qe.create({doc:t});return null==n&&(n=r.doc.length),this.regexp?Cg(this,r,e,n):Sg(this,r,e,n)}}class Og{constructor(t){this.spec=t}}function Sg(t,e,n,r){return new Uf(e.doc,t.unquoted,n,r,t.caseSensitive?void 0:t=>t.toLowerCase(),t.wholeWord?Ag(e.doc,e.charCategorizer(e.selection.main.head)):void 0)}function Ag(t,e){return(n,r,i,o)=>((o>n||o+i.length<r)&&(o=Math.max(0,n-2),i=t.sliceString(o,Math.min(t.length,r+2))),(e(Mg(i,n-o))!=Be.Word||e(Tg(i,n-o))!=Be.Word)&&(e(Tg(i,r-o))!=Be.Word||e(Mg(i,r-o))!=Be.Word))}class kg extends Og{constructor(t){super(t)}nextMatch(t,e,n){let r=Sg(this.spec,t,n,t.doc.length).nextOverlapping();return r.done&&(r=Sg(this.spec,t,0,e).nextOverlapping()),r.done?null:r.value}prevMatchInRange(t,e,n){for(let r=n;;){let n=Math.max(e,r-1e4-this.spec.unquoted.length),i=Sg(this.spec,t,n,r),o=null;while(!i.nextOverlapping().done)o=i.value;if(o)return o;if(n==e)return null;r-=1e4}}prevMatch(t,e,n){return this.prevMatchInRange(t,0,e)||this.prevMatchInRange(t,n,t.doc.length)}getReplacement(t){return this.spec.unquote(this.spec.replace)}matchAll(t,e){let n=Sg(this.spec,t,0,t.doc.length),r=[];while(!n.next().done){if(r.length>=e)return null;r.push(n.value)}return r}highlight(t,e,n,r){let i=Sg(this.spec,t,Math.max(0,e-this.spec.unquoted.length),Math.min(n+this.spec.unquoted.length,t.doc.length));while(!i.next().done)r(i.value.from,i.value.to)}}function Cg(t,e,n,r){return new Kf(e.doc,t.search,{ignoreCase:!t.caseSensitive,test:t.wholeWord?Pg(e.charCategorizer(e.selection.main.head)):void 0},n,r)}function Mg(t,e){return t.slice(Et(t,e,!1),e)}function Tg(t,e){return t.slice(e,Et(t,e))}function Pg(t){return(e,n,r)=>!r[0].length||(t(Mg(r.input,r.index))!=Be.Word||t(Tg(r.input,r.index))!=Be.Word)&&(t(Tg(r.input,r.index+r[0].length))!=Be.Word||t(Mg(r.input,r.index+r[0].length))!=Be.Word)}class Ig extends Og{nextMatch(t,e,n){let r=Cg(this.spec,t,n,t.doc.length).next();return r.done&&(r=Cg(this.spec,t,0,e).next()),r.done?null:r.value}prevMatchInRange(t,e,n){for(let r=1;;r++){let i=Math.max(e,n-1e4*r),o=Cg(this.spec,t,i,n),a=null;while(!o.next().done)a=o.value;if(a&&(i==e||a.from>i+10))return a;if(i==e)return null}}prevMatch(t,e,n){return this.prevMatchInRange(t,0,e)||this.prevMatchInRange(t,n,t.doc.length)}getReplacement(t){return this.spec.unquote(this.spec.replace).replace(/\$([$&\d+])/g,((e,n)=>"$"==n?"$":"&"==n?t.match[0]:"0"!=n&&+n<t.match.length?t.match[n]:e))}matchAll(t,e){let n=Cg(this.spec,t,0,t.doc.length),r=[];while(!n.next().done){if(r.length>=e)return null;r.push(n.value)}return r}highlight(t,e,n,r){let i=Cg(this.spec,t,Math.max(0,e-250),Math.min(n+250,t.doc.length));while(!i.next().done)r(i.value.from,i.value.to)}}const $g=Te.define(),Eg=Te.define(),Rg=le.define({create(t){return new Dg(Gg(t).create(),null)},update(t,e){for(let n of e.effects)n.is($g)?t=new Dg(n.value.create(),t.panel):n.is(Eg)&&(t=new Dg(t.query,n.value?Zg:null));return t},provide:t=>Ul.from(t,(t=>t.panel))});class Dg{constructor(t,e){this.query=t,this.panel=e}}const Lg=Nr.mark({class:"cm-searchMatch"}),Ng=Nr.mark({class:"cm-searchMatch cm-searchMatch-selected"}),zg=Ei.fromClass(class{constructor(t){this.view=t,this.decorations=this.highlight(t.state.field(Rg))}update(t){let e=t.state.field(Rg);(e!=t.startState.field(Rg)||t.docChanged||t.selectionSet||t.viewportChanged)&&(this.decorations=this.highlight(e))}highlight({query:t,panel:e}){if(!e||!t.spec.valid)return Nr.none;let{view:n}=this,r=new Ke;for(let i=0,o=n.visibleRanges,a=o.length;i<a;i++){let{from:e,to:s}=o[i];while(i<a-1&&s>o[i+1].from-500)s=o[++i].to;t.highlight(n.state,e,s,((t,e)=>{let i=n.state.selection.ranges.some((n=>n.from==t&&n.to==e));r.add(t,e,i?Ng:Lg)}))}return r.finish()}},{decorations:t=>t.decorations});function Bg(t){return e=>{let n=e.state.field(Rg,!1);return n&&n.query.spec.valid?t(e,n):Yg(e)}}const Fg=Bg(((t,{query:e})=>{let{to:n}=t.state.selection.main,r=e.nextMatch(t.state,n,n);if(!r)return!1;let i=Kt.single(r.from,r.to),o=t.state.facet(xg);return t.dispatch({selection:i,effects:[rv(t,r),o.scrollToMatch(i.main,t)],userEvent:"select.search"}),Ug(t),!0})),Wg=Bg(((t,{query:e})=>{let{state:n}=t,{from:r}=n.selection.main,i=e.prevMatch(n,r,r);if(!i)return!1;let o=Kt.single(i.from,i.to),a=t.state.facet(xg);return t.dispatch({selection:o,effects:[rv(t,i),a.scrollToMatch(o.main,t)],userEvent:"select.search"}),Ug(t),!0})),jg=Bg(((t,{query:e})=>{let n=e.matchAll(t.state,1e3);return!(!n||!n.length)&&(t.dispatch({selection:Kt.create(n.map((t=>Kt.range(t.from,t.to)))),userEvent:"select.search.matches"}),!0)})),Vg=({state:t,dispatch:e})=>{let n=t.selection;if(n.ranges.length>1||n.main.empty)return!1;let{from:r,to:i}=n.main,o=[],a=0;for(let s=new Uf(t.doc,t.sliceDoc(r,i));!s.next().done;){if(o.length>1e3)return!1;s.value.from==r&&(a=o.length),o.push(Kt.range(s.value.from,s.value.to))}return e(t.update({selection:Kt.create(o,a),userEvent:"select.search.matches"})),!0},Qg=Bg(((t,{query:e})=>{let{state:n}=t,{from:r,to:i}=n.selection.main;if(n.readOnly)return!1;let o=e.nextMatch(n,r,r);if(!o)return!1;let a,s,l=[],u=[];if(o.from==r&&o.to==i&&(s=n.toText(e.getReplacement(o)),l.push({from:o.from,to:o.to,insert:s}),o=e.nextMatch(n,o.from,o.to),u.push(cs.announce.of(n.phrase("replaced match on line $",n.doc.lineAt(r).number)+"."))),o){let e=0==l.length||l[0].from>=o.to?0:o.to-o.from-s.length;a=Kt.single(o.from-e,o.to-e),u.push(rv(t,o)),u.push(n.facet(xg).scrollToMatch(a.main,t))}return t.dispatch({changes:l,selection:a,effects:u,userEvent:"input.replace"}),!0})),Hg=Bg(((t,{query:e})=>{if(t.state.readOnly)return!1;let n=e.matchAll(t.state,1e9).map((t=>{let{from:n,to:r}=t;return{from:n,to:r,insert:e.getReplacement(t)}}));if(!n.length)return!1;let r=t.state.phrase("replaced $ matches",n.length)+".";return t.dispatch({changes:n,effects:cs.announce.of(r),userEvent:"input.replace.all"}),!0}));function Zg(t){return t.state.facet(xg).createPanel(t)}function Gg(t,e){var n,r,i,o,a;let s=t.selection.main,l=s.empty||s.to>s.from+100?"":t.sliceDoc(s.from,s.to);if(e&&!l)return e;let u=t.facet(xg);return new wg({search:(null!==(n=null===e||void 0===e?void 0:e.literal)&&void 0!==n?n:u.literal)?l:l.replace(/\n/g,"\\n"),caseSensitive:null!==(r=null===e||void 0===e?void 0:e.caseSensitive)&&void 0!==r?r:u.caseSensitive,literal:null!==(i=null===e||void 0===e?void 0:e.literal)&&void 0!==i?i:u.literal,regexp:null!==(o=null===e||void 0===e?void 0:e.regexp)&&void 0!==o?o:u.regexp,wholeWord:null!==(a=null===e||void 0===e?void 0:e.wholeWord)&&void 0!==a?a:u.wholeWord})}function Xg(t){let e=Hl(t,Zg);return e&&e.dom.querySelector("[main-field]")}function Ug(t){let e=Xg(t);e&&e==t.root.activeElement&&e.select()}const Yg=t=>{let e=t.state.field(Rg,!1);if(e&&e.panel){let n=Xg(t);if(n&&n!=t.root.activeElement){let r=Gg(t.state,e.query.spec);r.valid&&t.dispatch({effects:$g.of(r)}),n.focus(),n.select()}}else t.dispatch({effects:[Eg.of(!0),e?$g.of(Gg(t.state,e.query.spec)):Te.appendConfig.of(ov)]});return!0},qg=t=>{let e=t.state.field(Rg,!1);if(!e||!e.panel)return!1;let n=Hl(t,Zg);return n&&n.dom.contains(t.root.activeElement)&&t.focus(),t.dispatch({effects:Eg.of(!1)}),!0},Kg=[{key:"Mod-f",run:Yg,scope:"editor search-panel"},{key:"F3",run:Fg,shift:Wg,scope:"editor search-panel",preventDefault:!0},{key:"Mod-g",run:Fg,shift:Wg,scope:"editor search-panel",preventDefault:!0},{key:"Escape",run:qg,scope:"editor search-panel"},{key:"Mod-Shift-l",run:Vg},{key:"Mod-Alt-g",run:sg},{key:"Mod-d",run:_g,preventDefault:!0}];class Jg{constructor(t){this.view=t;let e=this.query=t.state.field(Rg).query.spec;function n(t,e,n){return Zf("button",{class:"cm-button",name:t,onclick:e,type:"button"},n)}this.commit=this.commit.bind(this),this.searchField=Zf("input",{value:e.search,placeholder:tv(t,"Find"),"aria-label":tv(t,"Find"),class:"cm-textfield",name:"search",form:"","main-field":"true",onchange:this.commit,onkeyup:this.commit}),this.replaceField=Zf("input",{value:e.replace,placeholder:tv(t,"Replace"),"aria-label":tv(t,"Replace"),class:"cm-textfield",name:"replace",form:"",onchange:this.commit,onkeyup:this.commit}),this.caseField=Zf("input",{type:"checkbox",name:"case",form:"",checked:e.caseSensitive,onchange:this.commit}),this.reField=Zf("input",{type:"checkbox",name:"re",form:"",checked:e.regexp,onchange:this.commit}),this.wordField=Zf("input",{type:"checkbox",name:"word",form:"",checked:e.wholeWord,onchange:this.commit}),this.dom=Zf("div",{onkeydown:t=>this.keydown(t),class:"cm-search"},[this.searchField,n("next",(()=>Fg(t)),[tv(t,"next")]),n("prev",(()=>Wg(t)),[tv(t,"previous")]),n("select",(()=>jg(t)),[tv(t,"all")]),Zf("label",null,[this.caseField,tv(t,"match case")]),Zf("label",null,[this.reField,tv(t,"regexp")]),Zf("label",null,[this.wordField,tv(t,"by word")]),...t.state.readOnly?[]:[Zf("br"),this.replaceField,n("replace",(()=>Qg(t)),[tv(t,"replace")]),n("replaceAll",(()=>Hg(t)),[tv(t,"replace all")])],Zf("button",{name:"close",onclick:()=>qg(t),"aria-label":tv(t,"close"),type:"button"},["×"])])}commit(){let t=new wg({search:this.searchField.value,caseSensitive:this.caseField.checked,regexp:this.reField.checked,wholeWord:this.wordField.checked,replace:this.replaceField.value});t.eq(this.query)||(this.query=t,this.view.dispatch({effects:$g.of(t)}))}keydown(t){ws(this.view,t,"search-panel")?t.preventDefault():13==t.keyCode&&t.target==this.searchField?(t.preventDefault(),(t.shiftKey?Wg:Fg)(this.view)):13==t.keyCode&&t.target==this.replaceField&&(t.preventDefault(),Qg(this.view))}update(t){for(let e of t.transactions)for(let t of e.effects)t.is($g)&&!t.value.eq(this.query)&&this.setQuery(t.value)}setQuery(t){this.query=t,this.searchField.value=t.search,this.replaceField.value=t.replace,this.caseField.checked=t.caseSensitive,this.reField.checked=t.regexp,this.wordField.checked=t.wholeWord}mount(){this.searchField.select()}get pos(){return 80}get top(){return this.view.state.facet(xg).top}}function tv(t,e){return t.state.phrase(e)}const ev=30,nv=/[\s\.,:;?!]/;function rv(t,{from:e,to:n}){let r=t.state.doc.lineAt(e),i=t.state.doc.lineAt(n).to,o=Math.max(r.from,e-ev),a=Math.min(i,n+ev),s=t.state.sliceDoc(o,a);if(o!=r.from)for(let l=0;l<ev;l++)if(!nv.test(s[l+1])&&nv.test(s[l])){s=s.slice(l);break}if(a!=i)for(let l=s.length-1;l>s.length-ev;l--)if(!nv.test(s[l-1])&&nv.test(s[l])){s=s.slice(0,l);break}return cs.announce.of(`${t.state.phrase("current match")}. ${s} ${t.state.phrase("on line")} ${r.number}.`)}const iv=cs.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"}}),ov=[Rg,he.low(zg),iv];class av{constructor(t,e,n){this.state=t,this.pos=e,this.explicit=n,this.abortListeners=[]}tokenBefore(t){let e=zc(this.state).resolveInner(this.pos,-1);while(e&&t.indexOf(e.name)<0)e=e.parent;return e?{from:e.from,to:this.pos,text:this.state.sliceDoc(e.from,this.pos),type:e.type}:null}matchBefore(t){let e=this.state.doc.lineAt(this.pos),n=Math.max(e.from,this.pos-250),r=e.text.slice(n-e.from,this.pos-e.from),i=r.search(pv(t,!1));return i<0?null:{from:n+i,to:this.pos,text:r.slice(i)}}get aborted(){return null==this.abortListeners}addEventListener(t,e){"abort"==t&&this.abortListeners&&this.abortListeners.push(e)}}function sv(t){let e=Object.keys(t).join(""),n=/\w/.test(e);return n&&(e=e.replace(/\w/g,"")),`[${n?"\\w":""}${e.replace(/[^\w\s]/g,"\\$&")}]`}function lv(t){let e=Object.create(null),n=Object.create(null);for(let{label:i}of t){e[i[0]]=!0;for(let t=1;t<i.length;t++)n[i[t]]=!0}let r=sv(e)+sv(n)+"*$";return[new RegExp("^"+r),new RegExp(r)]}function uv(t){let e=t.map((t=>"string"==typeof t?{label:t}:t)),[n,r]=e.every((t=>/^\w+$/.test(t.label)))?[/\w*$/,/\w+$/]:lv(e);return t=>{let i=t.matchBefore(r);return i||t.explicit?{from:i?i.from:t.pos,options:e,validFor:n}:null}}function cv(t,e){return n=>{for(let e=zc(n.state).resolveInner(n.pos,-1);e;e=e.parent){if(t.indexOf(e.name)>-1)return null;if(e.type.isTop)break}return e(n)}}class hv{constructor(t,e,n,r){this.completion=t,this.source=e,this.match=n,this.score=r}}function dv(t){return t.selection.main.from}function pv(t,e){var n;let{source:r}=t,i=e&&"^"!=r[0],o="$"!=r[r.length-1];return i||o?new RegExp(`${i?"^":""}(?:${r})${o?"$":""}`,null!==(n=t.flags)&&void 0!==n?n:t.ignoreCase?"i":""):t}const fv=ke.define();function gv(t,e,n,r){let{main:i}=t.selection,o=n-i.from,a=r-i.from;return Object.assign(Object.assign({},t.changeByRange((s=>s!=i&&n!=r&&t.sliceDoc(s.from+o,s.from+a)!=t.sliceDoc(n,r)?{range:s}:{changes:{from:s.from+o,to:r==i.from?s.to:s.from+a,insert:e},range:Kt.cursor(s.from+o+e.length)}))),{scrollIntoView:!0,userEvent:"input.complete"})}const vv=new WeakMap;function mv(t){if(!Array.isArray(t))return t;let e=vv.get(t);return e||vv.set(t,e=uv(t)),e}const yv=Te.define(),bv=Te.define();class _v{constructor(t){this.pattern=t,this.chars=[],this.folded=[],this.any=[],this.precise=[],this.byWord=[],this.score=0,this.matched=[];for(let e=0;e<t.length;){let n=zt(t,e),r=Ft(n);this.chars.push(n);let i=t.slice(e,e+r),o=i.toUpperCase();this.folded.push(zt(o==i?i.toLowerCase():o,0)),e+=r}this.astral=t.length!=this.chars.length}ret(t,e){return this.score=t,this.matched=e,this}match(t){if(0==this.pattern.length)return this.ret(-100,[]);if(t.length<this.pattern.length)return null;let{chars:e,folded:n,any:r,precise:i,byWord:o}=this;if(1==e.length){let r=zt(t,0),i=Ft(r),o=i==t.length?0:-100;if(r==e[0]);else{if(r!=n[0])return null;o+=-200}return this.ret(o,[0,i])}let a=t.indexOf(this.pattern);if(0==a)return this.ret(t.length==this.pattern.length?0:-100,[0,this.pattern.length]);let s=e.length,l=0;if(a<0){for(let i=0,o=Math.min(t.length,200);i<o&&l<s;){let o=zt(t,i);o!=e[l]&&o!=n[l]||(r[l++]=i),i+=Ft(o)}if(l<s)return null}let u=0,c=0,h=!1,d=0,p=-1,f=-1,g=/[a-z]/.test(t),v=!0;for(let m=0,y=Math.min(t.length,200),b=0;m<y&&c<s;){let r=zt(t,m);a<0&&(u<s&&r==e[u]&&(i[u++]=m),d<s&&(r==e[d]||r==n[d]?(0==d&&(p=m),f=m+1,d++):d=0));let l,y=r<255?r>=48&&r<=57||r>=97&&r<=122?2:r>=65&&r<=90?1:0:(l=Bt(r))!=l.toLowerCase()?1:l!=l.toUpperCase()?2:0;(!m||1==y&&g||0==b&&0!=y)&&(e[c]==r||n[c]==r&&(h=!0)?o[c++]=m:o.length&&(v=!1)),b=y,m+=Ft(r)}return c==s&&0==o[0]&&v?this.result((h?-200:0)-100,o,t):d==s&&0==p?this.ret(-200-t.length+(f==t.length?0:-100),[0,f]):a>-1?this.ret(-700-t.length,[a,a+this.pattern.length]):d==s?this.ret(-900-t.length,[p,f]):c==s?this.result((h?-200:0)-100-700+(v?0:-1100),o,t):2==e.length?null:this.result((r[0]?-700:0)-200-1100,r,t)}result(t,e,n){let r=[],i=0;for(let o of e){let t=o+(this.astral?Ft(zt(n,o)):1);i&&r[i-1]==o?r[i-1]=t:(r[i++]=o,r[i++]=t)}return this.ret(t-n.length,r)}}class xv{constructor(t){this.pattern=t,this.matched=[],this.score=0,this.folded=t.toLowerCase()}match(t){if(t.length<this.pattern.length)return null;let e=t.slice(0,this.pattern.length),n=e==this.pattern?0:e.toLowerCase()==this.folded?-200:null;return null==n?null:(this.matched=[0,e.length],this.score=n+(t.length==this.pattern.length?0:-100),this)}}const wv=ee.define({combine(t){return He(t,{activateOnTyping:!0,activateOnCompletion:()=>!1,activateOnTypingDelay:100,selectOnOpen:!0,override:null,closeOnBlur:!0,maxRenderedOptions:100,defaultKeymap:!0,tooltipClass:()=>"",optionClass:()=>"",aboveCursor:!1,icons:!0,addToOptions:[],positionInfo:Sv,filterStrict:!1,compareCompletions:(t,e)=>t.label.localeCompare(e.label),interactionDelay:75,updateSyncTime:100},{defaultKeymap:(t,e)=>t&&e,closeOnBlur:(t,e)=>t&&e,icons:(t,e)=>t&&e,tooltipClass:(t,e)=>n=>Ov(t(n),e(n)),optionClass:(t,e)=>n=>Ov(t(n),e(n)),addToOptions:(t,e)=>t.concat(e),filterStrict:(t,e)=>t||e})}});function Ov(t,e){return t?e?t+" "+e:t:e}function Sv(t,e,n,r,i,o){let a,s,l=t.textDirection==Gr.RTL,u=l,c=!1,h="top",d=e.left-i.left,p=i.right-e.right,f=r.right-r.left,g=r.bottom-r.top;if(u&&d<Math.min(f,p)?u=!1:!u&&p<Math.min(f,d)&&(u=!0),f<=(u?d:p))a=Math.max(i.top,Math.min(n.top,i.bottom-g))-e.top,s=Math.min(400,u?d:p);else{c=!0,s=Math.min(400,(l?e.right:i.right-e.left)-30);let t=i.bottom-e.bottom;t>=g||t>e.top?a=n.bottom-e.top:(h="bottom",a=e.bottom-n.top)}let v=(e.bottom-e.top)/o.offsetHeight,m=(e.right-e.left)/o.offsetWidth;return{style:`${h}: ${a/v}px; max-width: ${s/m}px`,class:"cm-completionInfo-"+(c?l?"left-narrow":"right-narrow":u?"left":"right")}}function Av(t){let e=t.addToOptions.slice();return t.icons&&e.push({render(t){let e=document.createElement("div");return e.classList.add("cm-completionIcon"),t.type&&e.classList.add(...t.type.split(/\s+/g).map((t=>"cm-completionIcon-"+t))),e.setAttribute("aria-hidden","true"),e},position:20}),e.push({render(t,e,n,r){let i=document.createElement("span");i.className="cm-completionLabel";let o=t.displayLabel||t.label,a=0;for(let s=0;s<r.length;){let t=r[s++],e=r[s++];t>a&&i.appendChild(document.createTextNode(o.slice(a,t)));let n=i.appendChild(document.createElement("span"));n.appendChild(document.createTextNode(o.slice(t,e))),n.className="cm-completionMatchedText",a=e}return a<o.length&&i.appendChild(document.createTextNode(o.slice(a))),i},position:50},{render(t){if(!t.detail)return null;let e=document.createElement("span");return e.className="cm-completionDetail",e.textContent=t.detail,e},position:80}),e.sort(((t,e)=>t.position-e.position)).map((t=>t.render))}function kv(t,e,n){if(t<=n)return{from:0,to:t};if(e<0&&(e=0),e<=t>>1){let t=Math.floor(e/n);return{from:t*n,to:(t+1)*n}}let r=Math.floor((t-e)/n);return{from:t-(r+1)*n,to:t-r*n}}class Cv{constructor(t,e,n){this.view=t,this.stateField=e,this.applyCompletion=n,this.info=null,this.infoDestroy=null,this.placeInfoReq={read:()=>this.measureInfo(),write:t=>this.placeInfo(t),key:this},this.space=null,this.currentClass="";let r=t.state.field(e),{options:i,selected:o}=r.open,a=t.state.facet(wv);this.optionContent=Av(a),this.optionClass=a.optionClass,this.tooltipClass=a.tooltipClass,this.range=kv(i.length,o,a.maxRenderedOptions),this.dom=document.createElement("div"),this.dom.className="cm-tooltip-autocomplete",this.updateTooltipClass(t.state),this.dom.addEventListener("mousedown",(n=>{let{options:r}=t.state.field(e).open;for(let e,i=n.target;i&&i!=this.dom;i=i.parentNode)if("LI"==i.nodeName&&(e=/-(\d+)$/.exec(i.id))&&+e[1]<r.length)return this.applyCompletion(t,r[+e[1]]),void n.preventDefault()})),this.dom.addEventListener("focusout",(e=>{let n=t.state.field(this.stateField,!1);n&&n.tooltip&&t.state.facet(wv).closeOnBlur&&e.relatedTarget!=t.contentDOM&&t.dispatch({effects:bv.of(null)})})),this.showOptions(i,r.id)}mount(){this.updateSel()}showOptions(t,e){this.list&&this.list.remove(),this.list=this.dom.appendChild(this.createListBox(t,e,this.range)),this.list.addEventListener("scroll",(()=>{this.info&&this.view.requestMeasure(this.placeInfoReq)}))}update(t){var e;let n=t.state.field(this.stateField),r=t.startState.field(this.stateField);if(this.updateTooltipClass(t.state),n!=r){let{options:i,selected:o,disabled:a}=n.open;r.open&&r.open.options==i||(this.range=kv(i.length,o,t.state.facet(wv).maxRenderedOptions),this.showOptions(i,n.id)),this.updateSel(),a!=(null===(e=r.open)||void 0===e?void 0:e.disabled)&&this.dom.classList.toggle("cm-tooltip-autocomplete-disabled",!!a)}}updateTooltipClass(t){let e=this.tooltipClass(t);if(e!=this.currentClass){for(let t of this.currentClass.split(" "))t&&this.dom.classList.remove(t);for(let t of e.split(" "))t&&this.dom.classList.add(t);this.currentClass=e}}positioned(t){this.space=t,this.info&&this.view.requestMeasure(this.placeInfoReq)}updateSel(){let t=this.view.state.field(this.stateField),e=t.open;if((e.selected>-1&&e.selected<this.range.from||e.selected>=this.range.to)&&(this.range=kv(e.options.length,e.selected,this.view.state.facet(wv).maxRenderedOptions),this.showOptions(e.options,t.id)),this.updateSelectedOption(e.selected)){this.destroyInfo();let{completion:n}=e.options[e.selected],{info:r}=n;if(!r)return;let i="string"===typeof r?document.createTextNode(r):r(n);if(!i)return;"then"in i?i.then((e=>{e&&this.view.state.field(this.stateField,!1)==t&&this.addInfoPane(e,n)})).catch((t=>Ti(this.view.state,t,"completion info"))):this.addInfoPane(i,n)}}addInfoPane(t,e){this.destroyInfo();let n=this.info=document.createElement("div");if(n.className="cm-tooltip cm-completionInfo",null!=t.nodeType)n.appendChild(t),this.infoDestroy=null;else{let{dom:e,destroy:r}=t;n.appendChild(e),this.infoDestroy=r||null}this.dom.appendChild(n),this.view.requestMeasure(this.placeInfoReq)}updateSelectedOption(t){let e=null;for(let n=this.list.firstChild,r=this.range.from;n;n=n.nextSibling,r++)"LI"==n.nodeName&&n.id?r==t?n.hasAttribute("aria-selected")||(n.setAttribute("aria-selected","true"),e=n):n.hasAttribute("aria-selected")&&n.removeAttribute("aria-selected"):r--;return e&&Tv(this.list,e),e}measureInfo(){let t=this.dom.querySelector("[aria-selected]");if(!t||!this.info)return null;let e=this.dom.getBoundingClientRect(),n=this.info.getBoundingClientRect(),r=t.getBoundingClientRect(),i=this.space;if(!i){let t=this.dom.ownerDocument.defaultView||window;i={left:0,top:0,right:t.innerWidth,bottom:t.innerHeight}}return r.top>Math.min(i.bottom,e.bottom)-10||r.bottom<Math.max(i.top,e.top)+10?null:this.view.state.facet(wv).positionInfo(this.view,e,r,n,i,this.dom)}placeInfo(t){this.info&&(t?(t.style&&(this.info.style.cssText=t.style),this.info.className="cm-tooltip cm-completionInfo "+(t.class||"")):this.info.style.cssText="top: -1e6px")}createListBox(t,e,n){const r=document.createElement("ul");r.id=e,r.setAttribute("role","listbox"),r.setAttribute("aria-expanded","true"),r.setAttribute("aria-label",this.view.state.phrase("Completions"));let i=null;for(let o=n.from;o<n.to;o++){let{completion:a,match:s}=t[o],{section:l}=a;if(l){let t="string"==typeof l?l:l.name;if(t!=i&&(o>n.from||0==n.from))if(i=t,"string"!=typeof l&&l.header)r.appendChild(l.header(l));else{let e=r.appendChild(document.createElement("completion-section"));e.textContent=t}}const u=r.appendChild(document.createElement("li"));u.id=e+"-"+o,u.setAttribute("role","option");let c=this.optionClass(a);c&&(u.className=c);for(let t of this.optionContent){let e=t(a,this.view.state,this.view,s);e&&u.appendChild(e)}}return n.from&&r.classList.add("cm-completionListIncompleteTop"),n.to<t.length&&r.classList.add("cm-completionListIncompleteBottom"),r}destroyInfo(){this.info&&(this.infoDestroy&&this.infoDestroy(),this.info.remove(),this.info=null)}destroy(){this.destroyInfo()}}function Mv(t,e){return n=>new Cv(n,t,e)}function Tv(t,e){let n=t.getBoundingClientRect(),r=e.getBoundingClientRect(),i=n.height/t.offsetHeight;r.top<n.top?t.scrollTop-=(n.top-r.top)/i:r.bottom>n.bottom&&(t.scrollTop+=(r.bottom-n.bottom)/i)}function Pv(t){return 100*(t.boost||0)+(t.apply?10:0)+(t.info?5:0)+(t.type?1:0)}function Iv(t,e){let n=[],r=null,i=t=>{n.push(t);let{section:e}=t.completion;if(e){r||(r=[]);let t="string"==typeof e?e:e.name;r.some((e=>e.name==t))||r.push("string"==typeof e?{name:t}:e)}},o=e.facet(wv);for(let u of t)if(u.hasResult()){let t=u.result.getMatch;if(!1===u.result.filter)for(let e of u.result.options)i(new hv(e,u.source,t?t(e):[],1e9-n.length));else{let n,r=e.sliceDoc(u.from,u.to),a=o.filterStrict?new xv(r):new _v(r);for(let e of u.result.options)if(n=a.match(e.label)){let r=e.displayLabel?t?t(e,n.matched):[]:n.matched;i(new hv(e,u.source,r,n.score+(e.boost||0)))}}}if(r){let t=Object.create(null),e=0,i=(t,e)=>{var n,r;return(null!==(n=t.rank)&&void 0!==n?n:1e9)-(null!==(r=e.rank)&&void 0!==r?r:1e9)||(t.name<e.name?-1:1)};for(let n of r.sort(i))e-=1e5,t[n.name]=e;for(let r of n){let{section:e}=r.completion;e&&(r.score+=t["string"==typeof e?e:e.name])}}let a=[],s=null,l=o.compareCompletions;for(let u of n.sort(((t,e)=>e.score-t.score||l(t.completion,e.completion)))){let t=u.completion;!s||s.label!=t.label||s.detail!=t.detail||null!=s.type&&null!=t.type&&s.type!=t.type||s.apply!=t.apply||s.boost!=t.boost?a.push(u):Pv(u.completion)>Pv(s)&&(a[a.length-1]=u),s=u.completion}return a}class $v{constructor(t,e,n,r,i,o){this.options=t,this.attrs=e,this.tooltip=n,this.timestamp=r,this.selected=i,this.disabled=o}setSelected(t,e){return t==this.selected||t>=this.options.length?this:new $v(this.options,Nv(e,t),this.tooltip,this.timestamp,t,this.disabled)}static build(t,e,n,r,i){let o=Iv(t,e);if(!o.length)return r&&t.some((t=>1==t.state))?new $v(r.options,r.attrs,r.tooltip,r.timestamp,r.selected,!0):null;let a=e.facet(wv).selectOnOpen?0:-1;if(r&&r.selected!=a&&-1!=r.selected){let t=r.options[r.selected].completion;for(let e=0;e<o.length;e++)if(o[e].completion==t){a=e;break}}return new $v(o,Nv(n,a),{pos:t.reduce(((t,e)=>e.hasResult()?Math.min(t,e.from):t),1e8),create:Gv,above:i.aboveCursor},r?r.timestamp:Date.now(),a,!1)}map(t){return new $v(this.options,this.attrs,Object.assign(Object.assign({},this.tooltip),{pos:t.mapPos(this.tooltip.pos)}),this.timestamp,this.selected,this.disabled)}}class Ev{constructor(t,e,n){this.active=t,this.id=e,this.open=n}static start(){return new Ev(zv,"cm-ac-"+Math.floor(2e6*Math.random()).toString(36),null)}update(t){let{state:e}=t,n=e.facet(wv),r=n.override||e.languageDataAt("autocomplete",dv(e)).map(mv),i=r.map((e=>{let r=this.active.find((t=>t.source==e))||new Fv(e,this.active.some((t=>0!=t.state))?1:0);return r.update(t,n)}));i.length==this.active.length&&i.every(((t,e)=>t==this.active[e]))&&(i=this.active);let o=this.open;o&&t.docChanged&&(o=o.map(t.changes)),t.selection||i.some((e=>e.hasResult()&&t.changes.touchesRange(e.from,e.to)))||!Rv(i,this.active)?o=$v.build(i,e,this.id,o,n):o&&o.disabled&&!i.some((t=>1==t.state))&&(o=null),!o&&i.every((t=>1!=t.state))&&i.some((t=>t.hasResult()))&&(i=i.map((t=>t.hasResult()?new Fv(t.source,0):t)));for(let a of t.effects)a.is(Qv)&&(o=o&&o.setSelected(a.value,this.id));return i==this.active&&o==this.open?this:new Ev(i,this.id,o)}get tooltip(){return this.open?this.open.tooltip:null}get attrs(){return this.open?this.open.attrs:this.active.length?Dv:Lv}}function Rv(t,e){if(t==e)return!0;for(let n=0,r=0;;){while(n<t.length&&!t[n].hasResult)n++;while(r<e.length&&!e[r].hasResult)r++;let i=n==t.length,o=r==e.length;if(i||o)return i==o;if(t[n++].result!=e[r++].result)return!1}}const Dv={"aria-autocomplete":"list"},Lv={};function Nv(t,e){let n={"aria-autocomplete":"list","aria-haspopup":"listbox","aria-controls":t};return e>-1&&(n["aria-activedescendant"]=t+"-"+e),n}const zv=[];function Bv(t,e){if(t.isUserEvent("input.complete")){let n=t.annotation(fv);if(n&&e.activateOnCompletion(n))return"input"}return t.isUserEvent("input.type")?"input":t.isUserEvent("delete.backward")?"delete":null}class Fv{constructor(t,e,n=-1){this.source=t,this.state=e,this.explicitPos=n}hasResult(){return!1}update(t,e){let n=Bv(t,e),r=this;n?r=r.handleUserEvent(t,n,e):t.docChanged?r=r.handleChange(t):t.selection&&0!=r.state&&(r=new Fv(r.source,0));for(let i of t.effects)if(i.is(yv))r=new Fv(r.source,1,i.value?dv(t.state):-1);else if(i.is(bv))r=new Fv(r.source,0);else if(i.is(Vv))for(let t of i.value)t.source==r.source&&(r=t);return r}handleUserEvent(t,e,n){return"delete"!=e&&n.activateOnTyping?new Fv(this.source,1):this.map(t.changes)}handleChange(t){return t.changes.touchesRange(dv(t.startState))?new Fv(this.source,0):this.map(t.changes)}map(t){return t.empty||this.explicitPos<0?this:new Fv(this.source,this.state,t.mapPos(this.explicitPos))}}class Wv extends Fv{constructor(t,e,n,r,i){super(t,2,e),this.result=n,this.from=r,this.to=i}hasResult(){return!0}handleUserEvent(t,e,n){var r;let i=this.result;i.map&&!t.changes.empty&&(i=i.map(i,t.changes));let o=t.changes.mapPos(this.from),a=t.changes.mapPos(this.to,1),s=dv(t.state);if((this.explicitPos<0?s<=o:s<this.from)||s>a||!i||"delete"==e&&dv(t.startState)==this.from)return new Fv(this.source,"input"==e&&n.activateOnTyping?1:0);let l=this.explicitPos<0?-1:t.changes.mapPos(this.explicitPos);return jv(i.validFor,t.state,o,a)?new Wv(this.source,l,i,o,a):i.update&&(i=i.update(i,o,a,new av(t.state,s,l>=0)))?new Wv(this.source,l,i,i.from,null!==(r=i.to)&&void 0!==r?r:dv(t.state)):new Fv(this.source,1,l)}handleChange(t){return t.changes.touchesRange(this.from,this.to)?new Fv(this.source,0):this.map(t.changes)}map(t){if(t.empty)return this;let e=this.result.map?this.result.map(this.result,t):this.result;return e?new Wv(this.source,this.explicitPos<0?-1:t.mapPos(this.explicitPos),this.result,t.mapPos(this.from),t.mapPos(this.to,1)):new Fv(this.source,0)}}function jv(t,e,n,r){if(!t)return!1;let i=e.sliceDoc(n,r);return"function"==typeof t?t(i,n,r,e):pv(t,!0).test(i)}const Vv=Te.define({map(t,e){return t.map((t=>t.map(e)))}}),Qv=Te.define(),Hv=le.define({create(){return Ev.start()},update(t,e){return t.update(e)},provide:t=>[El.from(t,(t=>t.tooltip)),cs.contentAttributes.from(t,(t=>t.attrs))]});function Zv(t,e){const n=e.completion.apply||e.completion.label;let r=t.state.field(Hv).active.find((t=>t.source==e.source));return r instanceof Wv&&("string"==typeof n?t.dispatch(Object.assign(Object.assign({},gv(t.state,n,r.from,r.to)),{annotations:fv.of(e.completion)})):n(t,e.completion,r.from,r.to),!0)}const Gv=Mv(Hv,Zv);function Xv(t,e="option"){return n=>{let r=n.state.field(Hv,!1);if(!r||!r.open||r.open.disabled||Date.now()-r.open.timestamp<n.state.facet(wv).interactionDelay)return!1;let i,o=1;"page"==e&&(i=jl(n,r.open.tooltip))&&(o=Math.max(2,Math.floor(i.dom.offsetHeight/i.dom.querySelector("li").offsetHeight)-1));let{length:a}=r.open.options,s=r.open.selected>-1?r.open.selected+o*(t?1:-1):t?0:a-1;return s<0?s="page"==e?0:a-1:s>=a&&(s="page"==e?a-1:0),n.dispatch({effects:Qv.of(s)}),!0}}const Uv=t=>{let e=t.state.field(Hv,!1);return!(t.state.readOnly||!e||!e.open||e.open.selected<0||e.open.disabled||Date.now()-e.open.timestamp<t.state.facet(wv).interactionDelay)&&Zv(t,e.open.options[e.open.selected])},Yv=t=>{let e=t.state.field(Hv,!1);return!!e&&(t.dispatch({effects:yv.of(!0)}),!0)},qv=t=>{let e=t.state.field(Hv,!1);return!(!e||!e.active.some((t=>0!=t.state)))&&(t.dispatch({effects:bv.of(null)}),!0)};class Kv{constructor(t,e){this.active=t,this.context=e,this.time=Date.now(),this.updates=[],this.done=void 0}}const Jv=50,tm=1e3,em=Ei.fromClass(class{constructor(t){this.view=t,this.debounceUpdate=-1,this.running=[],this.debounceAccept=-1,this.pendingStart=!1,this.composing=0;for(let e of t.state.field(Hv).active)1==e.state&&this.startQuery(e)}update(t){let e=t.state.field(Hv),n=t.state.facet(wv);if(!t.selectionSet&&!t.docChanged&&t.startState.field(Hv)==e)return;let r=t.transactions.some((t=>(t.selection||t.docChanged)&&!Bv(t,n)));for(let a=0;a<this.running.length;a++){let e=this.running[a];if(r||e.updates.length+t.transactions.length>Jv&&Date.now()-e.time>tm){for(let t of e.context.abortListeners)try{t()}catch(o){Ti(this.view.state,o)}e.context.abortListeners=null,this.running.splice(a--,1)}else e.updates.push(...t.transactions)}this.debounceUpdate>-1&&clearTimeout(this.debounceUpdate),t.transactions.some((t=>t.effects.some((t=>t.is(yv)))))&&(this.pendingStart=!0);let i=this.pendingStart?50:n.activateOnTypingDelay;if(this.debounceUpdate=e.active.some((t=>1==t.state&&!this.running.some((e=>e.active.source==t.source))))?setTimeout((()=>this.startUpdate()),i):-1,0!=this.composing)for(let a of t.transactions)"input"==Bv(a,n)?this.composing=2:2==this.composing&&a.selection&&(this.composing=3)}startUpdate(){this.debounceUpdate=-1,this.pendingStart=!1;let{state:t}=this.view,e=t.field(Hv);for(let n of e.active)1!=n.state||this.running.some((t=>t.active.source==n.source))||this.startQuery(n)}startQuery(t){let{state:e}=this.view,n=dv(e),r=new av(e,n,t.explicitPos==n),i=new Kv(t,r);this.running.push(i),Promise.resolve(t.source(r)).then((t=>{i.context.aborted||(i.done=t||null,this.scheduleAccept())}),(t=>{this.view.dispatch({effects:bv.of(null)}),Ti(this.view.state,t)}))}scheduleAccept(){this.running.every((t=>void 0!==t.done))?this.accept():this.debounceAccept<0&&(this.debounceAccept=setTimeout((()=>this.accept()),this.view.state.facet(wv).updateSyncTime))}accept(){var t;this.debounceAccept>-1&&clearTimeout(this.debounceAccept),this.debounceAccept=-1;let e=[],n=this.view.state.facet(wv);for(let r=0;r<this.running.length;r++){let i=this.running[r];if(void 0===i.done)continue;if(this.running.splice(r--,1),i.done){let r=new Wv(i.active.source,i.active.explicitPos,i.done,i.done.from,null!==(t=i.done.to)&&void 0!==t?t:dv(i.updates.length?i.updates[0].startState:this.view.state));for(let t of i.updates)r=r.update(t,n);if(r.hasResult()){e.push(r);continue}}let o=this.view.state.field(Hv).active.find((t=>t.source==i.active.source));if(o&&1==o.state)if(null==i.done){let t=new Fv(i.active.source,0);for(let e of i.updates)t=t.update(e,n);1!=t.state&&e.push(t)}else this.startQuery(o)}e.length&&this.view.dispatch({effects:Vv.of(e)})}},{eventHandlers:{blur(t){let e=this.view.state.field(Hv,!1);if(e&&e.tooltip&&this.view.state.facet(wv).closeOnBlur){let n=e.open&&jl(this.view,e.open.tooltip);n&&n.dom.contains(t.relatedTarget)||setTimeout((()=>this.view.dispatch({effects:bv.of(null)})),10)}},compositionstart(){this.composing=1},compositionend(){3==this.composing&&setTimeout((()=>this.view.dispatch({effects:yv.of(!1)})),20),this.composing=0}}}),nm="object"==typeof navigator&&/Win/.test(navigator.platform),rm=he.highest(cs.domEventHandlers({keydown(t,e){let n=e.state.field(Hv,!1);if(!n||!n.open||n.open.disabled||n.open.selected<0||t.key.length>1||t.ctrlKey&&(!nm||!t.altKey)||t.metaKey)return!1;let r=n.open.options[n.open.selected],i=n.active.find((t=>t.source==r.source)),o=r.completion.commitCharacters||i.result.commitCharacters;return o&&o.indexOf(t.key)>-1&&Zv(e,r),!1}})),im=cs.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 om{constructor(t,e,n,r){this.field=t,this.line=e,this.from=n,this.to=r}}class am{constructor(t,e,n){this.field=t,this.from=e,this.to=n}map(t){let e=t.mapPos(this.from,-1,jt.TrackDel),n=t.mapPos(this.to,1,jt.TrackDel);return null==e||null==n?null:new am(this.field,e,n)}}class sm{constructor(t,e){this.lines=t,this.fieldPositions=e}instantiate(t,e){let n=[],r=[e],i=t.doc.lineAt(e),o=/^\s*/.exec(i.text)[0];for(let s of this.lines){if(n.length){let n=o,i=/^\t*/.exec(s)[0].length;for(let e=0;e<i;e++)n+=t.facet(Yc);r.push(e+n.length-i),s=n+s.slice(i)}n.push(s),e+=s.length+1}let a=this.fieldPositions.map((t=>new am(t.field,r[t.line]+t.from,r[t.line]+t.to)));return{text:n,ranges:a}}static parse(t){let e,n=[],r=[],i=[];for(let o of t.split(/\r\n?|\n/)){while(e=/[#$]\{(?:(\d+)(?::([^}]*))?|((?:\\[{}]|[^}])*))\}/.exec(o)){let t=e[1]?+e[1]:null,a=e[2]||e[3]||"",s=-1,l=a.replace(/\\[{}]/g,(t=>t[1]));for(let e=0;e<n.length;e++)(null!=t?n[e].seq==t:l&&n[e].name==l)&&(s=e);if(s<0){let e=0;while(e<n.length&&(null==t||null!=n[e].seq&&n[e].seq<t))e++;n.splice(e,0,{seq:t,name:l}),s=e;for(let t of i)t.field>=s&&t.field++}i.push(new om(s,r.length,e.index,e.index+l.length)),o=o.slice(0,e.index)+a+o.slice(e.index+e[0].length)}o=o.replace(/\\([{}])/g,((t,e,n)=>{for(let o of i)o.line==r.length&&o.from>n&&(o.from--,o.to--);return e})),r.push(o)}return new sm(r,i)}}let lm=Nr.widget({widget:new class extends Dr{toDOM(){let t=document.createElement("span");return t.className="cm-snippetFieldPosition",t}ignoreEvent(){return!1}}}),um=Nr.mark({class:"cm-snippetField"});class cm{constructor(t,e){this.ranges=t,this.active=e,this.deco=Nr.set(t.map((t=>(t.from==t.to?lm:um).range(t.from,t.to))))}map(t){let e=[];for(let n of this.ranges){let r=n.map(t);if(!r)return null;e.push(r)}return new cm(e,this.active)}selectionInsideField(t){return t.ranges.every((t=>this.ranges.some((e=>e.field==this.active&&e.from<=t.from&&e.to>=t.to))))}}const hm=Te.define({map(t,e){return t&&t.map(e)}}),dm=Te.define(),pm=le.define({create(){return null},update(t,e){for(let n of e.effects){if(n.is(hm))return n.value;if(n.is(dm)&&t)return new cm(t.ranges,n.value)}return t&&e.docChanged&&(t=t.map(e.changes)),t&&e.selection&&!t.selectionInsideField(e.selection)&&(t=null),t},provide:t=>cs.decorations.from(t,(t=>t?t.deco:Nr.none))});function fm(t,e){return Kt.create(t.filter((t=>t.field==e)).map((t=>Kt.range(t.from,t.to))))}function gm(t){let e=sm.parse(t);return(t,n,r,i)=>{let{text:o,ranges:a}=e.instantiate(t.state,r),s={changes:{from:r,to:i,insert:yt.of(o)},scrollIntoView:!0,annotations:n?[fv.of(n),Pe.userEvent.of("input.complete")]:void 0};if(a.length&&(s.selection=fm(a,0)),a.some((t=>t.field>0))){let e=new cm(a,0),n=s.effects=[hm.of(e)];void 0===t.state.field(pm,!1)&&n.push(Te.appendConfig.of([pm,wm,Sm,im]))}t.dispatch(t.state.update(s))}}function vm(t){return({state:e,dispatch:n})=>{let r=e.field(pm,!1);if(!r||t<0&&0==r.active)return!1;let i=r.active+t,o=t>0&&!r.ranges.some((e=>e.field==i+t));return n(e.update({selection:fm(r.ranges,i),effects:hm.of(o?null:new cm(r.ranges,i)),scrollIntoView:!0})),!0}}const mm=({state:t,dispatch:e})=>{let n=t.field(pm,!1);return!!n&&(e(t.update({effects:hm.of(null)})),!0)},ym=vm(1),bm=vm(-1);const _m=[{key:"Tab",run:ym,shift:bm},{key:"Escape",run:mm}],xm=ee.define({combine(t){return t.length?t[0]:_m}}),wm=he.highest(bs.compute([xm],(t=>t.facet(xm))));function Om(t,e){return Object.assign(Object.assign({},e),{apply:gm(t)})}const Sm=cs.domEventHandlers({mousedown(t,e){let n,r=e.state.field(pm,!1);if(!r||null==(n=e.posAtCoords({x:t.clientX,y:t.clientY})))return!1;let i=r.ranges.find((t=>t.from<=n&&t.to>=n));return!(!i||i.field==r.active)&&(e.dispatch({selection:fm(r.ranges,i.field),effects:hm.of(r.ranges.some((t=>t.field>i.field))?new cm(r.ranges,i.field):null),scrollIntoView:!0}),!0)}});const Am={brackets:["(","[","{","'",'"'],before:")]}:;>",stringPrefixes:[]},km=Te.define({map(t,e){let n=e.mapPos(t,-1,jt.TrackAfter);return null==n?void 0:n}}),Cm=new class extends Ze{};Cm.startSide=1,Cm.endSide=-1;const Mm=le.define({create(){return Ye.empty},update(t,e){if(t=t.map(e.changes),e.selection){let n=e.state.doc.lineAt(e.selection.main.head);t=t.update({filter:t=>t>=n.from&&t<=n.to})}for(let n of e.effects)n.is(km)&&(t=t.update({add:[Cm.range(n.value,n.value+1)]}));return t}});function Tm(){return[Rm,Mm]}const Pm="()[]{}<>";function Im(t){for(let e=0;e<Pm.length;e+=2)if(Pm.charCodeAt(e)==t)return Pm.charAt(e+1);return Bt(t<128?t:t+1)}function $m(t,e){return t.languageDataAt("closeBrackets",e)[0]||Am}const Em="object"==typeof navigator&&/Android\b/.test(navigator.userAgent),Rm=cs.inputHandler.of(((t,e,n,r)=>{if((Em?t.composing:t.compositionStarted)||t.state.readOnly)return!1;let i=t.state.selection.main;if(r.length>2||2==r.length&&1==Ft(zt(r,0))||e!=i.from||n!=i.to)return!1;let o=Nm(t.state,r);return!!o&&(t.dispatch(o),!0)})),Dm=({state:t,dispatch:e})=>{if(t.readOnly)return!1;let n=$m(t,t.selection.main.head),r=n.brackets||Am.brackets,i=null,o=t.changeByRange((e=>{if(e.empty){let n=Fm(t.doc,e.head);for(let i of r)if(i==n&&Bm(t.doc,e.head)==Im(zt(i,0)))return{changes:{from:e.head-i.length,to:e.head+i.length},range:Kt.cursor(e.head-i.length)}}return{range:i=e}}));return i||e(t.update(o,{scrollIntoView:!0,userEvent:"delete.backward"})),!i},Lm=[{key:"Backspace",run:Dm}];function Nm(t,e){let n=$m(t,t.selection.main.head),r=n.brackets||Am.brackets;for(let i of r){let o=Im(zt(i,0));if(e==i)return o==i?Vm(t,i,r.indexOf(i+i+i)>-1,n):Wm(t,i,o,n.before||Am.before);if(e==o&&zm(t,t.selection.main.from))return jm(t,i,o)}return null}function zm(t,e){let n=!1;return t.field(Mm).between(0,t.doc.length,(t=>{t==e&&(n=!0)})),n}function Bm(t,e){let n=t.sliceString(e,e+2);return n.slice(0,Ft(zt(n,0)))}function Fm(t,e){let n=t.sliceString(e-2,e);return Ft(zt(n,0))==n.length?n:n.slice(1)}function Wm(t,e,n,r){let i=null,o=t.changeByRange((o=>{if(!o.empty)return{changes:[{insert:e,from:o.from},{insert:n,from:o.to}],effects:km.of(o.to+e.length),range:Kt.range(o.anchor+e.length,o.head+e.length)};let a=Bm(t.doc,o.head);return!a||/\s/.test(a)||r.indexOf(a)>-1?{changes:{insert:e+n,from:o.head},effects:km.of(o.head+e.length),range:Kt.cursor(o.head+e.length)}:{range:i=o}}));return i?null:t.update(o,{scrollIntoView:!0,userEvent:"input.type"})}function jm(t,e,n){let r=null,i=t.changeByRange((e=>e.empty&&Bm(t.doc,e.head)==n?{changes:{from:e.head,to:e.head+n.length,insert:n},range:Kt.cursor(e.head+n.length)}:r={range:e}));return r?null:t.update(i,{scrollIntoView:!0,userEvent:"input.type"})}function Vm(t,e,n,r){let i=r.stringPrefixes||Am.stringPrefixes,o=null,a=t.changeByRange((r=>{if(!r.empty)return{changes:[{insert:e,from:r.from},{insert:e,from:r.to}],effects:km.of(r.to+e.length),range:Kt.range(r.anchor+e.length,r.head+e.length)};let a,s=r.head,l=Bm(t.doc,s);if(l==e){if(Qm(t,s))return{changes:{insert:e+e,from:s},effects:km.of(s+e.length),range:Kt.cursor(s+e.length)};if(zm(t,s)){let r=n&&t.sliceDoc(s,s+3*e.length)==e+e+e,i=r?e+e+e:e;return{changes:{from:s,to:s+i.length,insert:i},range:Kt.cursor(s+i.length)}}}else{if(n&&t.sliceDoc(s-2*e.length,s)==e+e&&(a=Zm(t,s-2*e.length,i))>-1&&Qm(t,a))return{changes:{insert:e+e+e+e,from:s},effects:km.of(s+e.length),range:Kt.cursor(s+e.length)};if(t.charCategorizer(s)(l)!=Be.Word&&Zm(t,s,i)>-1&&!Hm(t,s,e,i))return{changes:{insert:e+e,from:s},effects:km.of(s+e.length),range:Kt.cursor(s+e.length)}}return{range:o=r}}));return o?null:t.update(a,{scrollIntoView:!0,userEvent:"input.type"})}function Qm(t,e){let n=zc(t).resolveInner(e+1);return n.parent&&n.from==e}function Hm(t,e,n,r){let i=zc(t).resolveInner(e,-1),o=r.reduce(((t,e)=>Math.max(t,e.length)),0);for(let a=0;a<5;a++){let a=t.sliceDoc(i.from,Math.min(i.to,i.from+n.length+o)),s=a.indexOf(n);if(!s||s>-1&&r.indexOf(a.slice(0,s))>-1){let e=i.firstChild;while(e&&e.from==i.from&&e.to-e.from>n.length+s){if(t.sliceDoc(e.to-n.length,e.to)==n)return!1;e=e.firstChild}return!0}let l=i.to==e&&i.parent;if(!l)break;i=l}return!1}function Zm(t,e,n){let r=t.charCategorizer(e);if(r(t.sliceDoc(e-1,e))!=Be.Word)return e;for(let i of n){let n=e-i.length;if(t.sliceDoc(n,e)==i&&r(t.sliceDoc(n-1,n))!=Be.Word)return n}return-1}function Gm(t={}){return[rm,Hv,wv.of(t),em,Um,im]}const Xm=[{key:"Ctrl-Space",run:Yv},{key:"Escape",run:qv},{key:"ArrowDown",run:Xv(!0)},{key:"ArrowUp",run:Xv(!1)},{key:"PageDown",run:Xv(!0,"page")},{key:"PageUp",run:Xv(!1,"page")},{key:"Enter",run:Uv}],Um=he.highest(bs.computeN([wv],(t=>t.facet(wv).defaultKeymap?[Xm]:[])));class Ym{constructor(t,e,n){this.from=t,this.to=e,this.diagnostic=n}}class qm{constructor(t,e,n){this.diagnostics=t,this.panel=e,this.selected=n}static init(t,e,n){let r=t,i=n.facet(dy).markerFilter;i&&(r=i(r,n));let o=Nr.set(r.map((t=>t.from==t.to||t.from==t.to-1&&n.doc.lineAt(t.from).to==t.from?Nr.widget({widget:new gy(t),diagnostic:t}).range(t.from):Nr.mark({attributes:{class:"cm-lintRange cm-lintRange-"+t.severity+(t.markClass?" "+t.markClass:"")},diagnostic:t}).range(t.from,t.to))),!0);return new qm(o,e,Km(o))}}function Km(t,e=null,n=0){let r=null;return t.between(n,1e9,((t,n,{spec:i})=>{if(!e||i.diagnostic==e)return r=new Ym(t,n,i.diagnostic),!1})),r}function Jm(t,e){let n=e.pos,r=e.end||n,i=t.state.facet(dy).hideOn(t,n,r);if(null!=i)return i;let o=t.startState.doc.lineAt(e.pos);return!(!t.effects.some((t=>t.is(ey)))&&!t.changes.touchesRange(o.from,Math.max(o.to,r)))}function ty(t,e){return t.field(iy,!1)?e:e.concat(Te.appendConfig.of(xy))}const ey=Te.define(),ny=Te.define(),ry=Te.define(),iy=le.define({create(){return new qm(Nr.none,null,null)},update(t,e){if(e.docChanged&&t.diagnostics.size){let n=t.diagnostics.map(e.changes),r=null,i=t.panel;if(t.selected){let i=e.changes.mapPos(t.selected.from,1);r=Km(n,t.selected.diagnostic,i)||Km(n,null,i)}!n.size&&i&&e.state.facet(dy).autoPanel&&(i=null),t=new qm(n,i,r)}for(let n of e.effects)if(n.is(ey)){let r=e.state.facet(dy).autoPanel?n.value.length?my.open:null:t.panel;t=qm.init(n.value,r,e.state)}else n.is(ny)?t=new qm(t.diagnostics,n.value?my.open:null,t.selected):n.is(ry)&&(t=new qm(t.diagnostics,t.panel,n.value));return t},provide:t=>[Ul.from(t,(t=>t.panel)),cs.decorations.from(t,(t=>t.diagnostics))]});const oy=Nr.mark({class:"cm-lintRange cm-lintRange-active"});function ay(t,e,n){let{diagnostics:r}=t.state.field(iy),i=[],o=2e8,a=0;r.between(e-(n<0?1:0),e+(n>0?1:0),((t,r,{spec:s})=>{e>=t&&e<=r&&(t==r||(e>t||n>0)&&(e<r||n<0))&&(i.push(s.diagnostic),o=Math.min(t,o),a=Math.max(r,a))}));let s=t.state.facet(dy).tooltipFilter;return s&&(i=s(i,t.state)),i.length?{pos:o,end:a,above:t.state.doc.lineAt(o).to<a,create(){return{dom:sy(t,i)}}}:null}function sy(t,e){return Zf("ul",{class:"cm-tooltip-lint"},e.map((e=>fy(t,e,!1))))}const ly=t=>{let e=t.state.field(iy,!1);e&&e.panel||t.dispatch({effects:ty(t.state,[ny.of(!0)])});let n=Hl(t,my.open);return n&&n.dom.querySelector(".cm-panel-lint ul").focus(),!0},uy=t=>{let e=t.state.field(iy,!1);return!(!e||!e.panel)&&(t.dispatch({effects:ny.of(!1)}),!0)},cy=t=>{let e=t.state.field(iy,!1);if(!e)return!1;let n=t.state.selection.main,r=e.diagnostics.iter(n.to+1);return!(!r.value&&(r=e.diagnostics.iter(0),!r.value||r.from==n.from&&r.to==n.to))&&(t.dispatch({selection:{anchor:r.from,head:r.to},scrollIntoView:!0}),!0)},hy=[{key:"Mod-Shift-m",run:ly,preventDefault:!0},{key:"F8",run:cy}],dy=ee.define({combine(t){return Object.assign({sources:t.map((t=>t.source)).filter((t=>null!=t))},He(t.map((t=>t.config)),{delay:750,markerFilter:null,tooltipFilter:null,needsRefresh:null,hideOn:()=>null},{needsRefresh:(t,e)=>t?e?n=>t(n)||e(n):t:e}))}});function py(t){let e=[];if(t)t:for(let{name:n}of t){for(let t=0;t<n.length;t++){let r=n[t];if(/[a-zA-Z]/.test(r)&&!e.some((t=>t.toLowerCase()==r.toLowerCase()))){e.push(r);continue t}}e.push("")}return e}function fy(t,e,n){var r;let i=n?py(e.actions):[];return Zf("li",{class:"cm-diagnostic cm-diagnostic-"+e.severity},Zf("span",{class:"cm-diagnosticText"},e.renderMessage?e.renderMessage(t):e.message),null===(r=e.actions)||void 0===r?void 0:r.map(((n,r)=>{let o=!1,a=r=>{if(r.preventDefault(),o)return;o=!0;let i=Km(t.state.field(iy).diagnostics,e);i&&n.apply(t,i.from,i.to)},{name:s}=n,l=i[r]?s.indexOf(i[r]):-1,u=l<0?s:[s.slice(0,l),Zf("u",s.slice(l,l+1)),s.slice(l+1)];return Zf("button",{type:"button",class:"cm-diagnosticAction",onclick:a,onmousedown:a,"aria-label":` Action: ${s}${l<0?"":` (access key "${i[r]})"`}.`},u)})),e.source&&Zf("div",{class:"cm-diagnosticSource"},e.source))}class gy extends Dr{constructor(t){super(),this.diagnostic=t}eq(t){return t.diagnostic==this.diagnostic}toDOM(){return Zf("span",{class:"cm-lintPoint cm-lintPoint-"+this.diagnostic.severity})}}class vy{constructor(t,e){this.diagnostic=e,this.id="item_"+Math.floor(4294967295*Math.random()).toString(16),this.dom=fy(t,e,!0),this.dom.id=this.id,this.dom.setAttribute("role","option")}}class my{constructor(t){this.view=t,this.items=[];let e=e=>{if(27==e.keyCode)uy(this.view),this.view.focus();else if(38==e.keyCode||33==e.keyCode)this.moveSelection((this.selectedIndex-1+this.items.length)%this.items.length);else if(40==e.keyCode||34==e.keyCode)this.moveSelection((this.selectedIndex+1)%this.items.length);else if(36==e.keyCode)this.moveSelection(0);else if(35==e.keyCode)this.moveSelection(this.items.length-1);else if(13==e.keyCode)this.view.focus();else{if(!(e.keyCode>=65&&e.keyCode<=90&&this.selectedIndex>=0))return;{let{diagnostic:n}=this.items[this.selectedIndex],r=py(n.actions);for(let i=0;i<r.length;i++)if(r[i].toUpperCase().charCodeAt(0)==e.keyCode){let e=Km(this.view.state.field(iy).diagnostics,n);e&&n.actions[i].apply(t,e.from,e.to)}}}e.preventDefault()},n=t=>{for(let e=0;e<this.items.length;e++)this.items[e].dom.contains(t.target)&&this.moveSelection(e)};this.list=Zf("ul",{tabIndex:0,role:"listbox","aria-label":this.view.state.phrase("Diagnostics"),onkeydown:e,onclick:n}),this.dom=Zf("div",{class:"cm-panel-lint"},this.list,Zf("button",{type:"button",name:"close","aria-label":this.view.state.phrase("close"),onclick:()=>uy(this.view)},"×")),this.update()}get selectedIndex(){let t=this.view.state.field(iy).selected;if(!t)return-1;for(let e=0;e<this.items.length;e++)if(this.items[e].diagnostic==t.diagnostic)return e;return-1}update(){let{diagnostics:t,selected:e}=this.view.state.field(iy),n=0,r=!1,i=null;t.between(0,this.view.state.doc.length,((t,o,{spec:a})=>{let s,l=-1;for(let e=n;e<this.items.length;e++)if(this.items[e].diagnostic==a.diagnostic){l=e;break}l<0?(s=new vy(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)),e&&s.diagnostic==e.diagnostic?s.dom.hasAttribute("aria-selected")||(s.dom.setAttribute("aria-selected","true"),i=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 vy(this.view,{from:-1,to:-1,severity:"info",message:this.view.state.phrase("No diagnostics")})),r=!0),i?(this.list.setAttribute("aria-activedescendant",i.id),this.view.requestMeasure({key:this,read:()=>({sel:i.dom.getBoundingClientRect(),panel:this.list.getBoundingClientRect()}),write:({sel:t,panel:e})=>{let n=e.height/this.list.offsetHeight;t.top<e.top?this.list.scrollTop-=(e.top-t.top)/n:t.bottom>e.bottom&&(this.list.scrollTop+=(t.bottom-e.bottom)/n)}})):this.selectedIndex<0&&this.list.removeAttribute("aria-activedescendant"),r&&this.sync()}sync(){let t=this.list.firstChild;function e(){let e=t;t=e.nextSibling,e.remove()}for(let n of this.items)if(n.dom.parentNode==this.list){while(t!=n.dom)e();t=n.dom.nextSibling}else this.list.insertBefore(n.dom,t);while(t)e()}moveSelection(t){if(this.selectedIndex<0)return;let e=this.view.state.field(iy),n=Km(e.diagnostics,this.items[t].diagnostic);n&&this.view.dispatch({selection:{anchor:n.from,head:n.to},scrollIntoView:!0,effects:ry.of(n)})}static open(t){return new my(t)}}function yy(t,e='viewBox="0 0 40 40"'){return`url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" ${e}>${encodeURIComponent(t)}</svg>')`}function by(t){return yy(`<path d="m0 2.5 l2 -1.5 l1 0 l2 1.5 l1 0" stroke="${t}" fill="none" stroke-width=".7"/>`,'width="6" height="3"')}const _y=cs.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:by("#d11")},".cm-lintRange-warning":{backgroundImage:by("orange")},".cm-lintRange-info":{backgroundImage:by("#999")},".cm-lintRange-hint":{backgroundImage:by("#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 xy=[iy,cs.decorations.compute([iy],(t=>{let{selected:e,panel:n}=t.field(iy);return e&&n&&e.from!=e.to?Nr.set([oy.range(e.from,e.to)]):Nr.none})),Wl(ay,{hideOn:Jm}),_y];const wy=(()=>[gu(),bu(),il(),Bd(),Qh(),zs(),Xs(),Qe.allowMultipleSelections.of(!0),gh(),Yh(Jh,{fallback:!0}),ud(),Tm(),Gm(),xl(),Sl(),hl(),hg(),bs.of([...Lm,...Qf,...Kg,...ip,...Dh,...Xm,...hy])])();
  31. /*!
  32. * VueCodemirror v6.1.1
  33. * Copyright (c) Surmon. All rights reserved.
  34. * Released under the MIT License.
  35. * Surmon
  36. */
  37. var Oy,Sy=Object.freeze({autofocus:!1,disabled:!1,indentWithTab:!0,tabSize:2,placeholder:"",autoDestroy:!0,extensions:[wy]}),Ay=Symbol("vue-codemirror-global-config"),ky=function(t){var e=t.onUpdate,n=t.onChange,r=t.onFocus,i=t.onBlur,o=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n}(t,["onUpdate","onChange","onFocus","onBlur"]);return Qe.create({doc:o.doc,selection:o.selection,extensions:(Array.isArray(o.extensions)?o.extensions:[o.extensions]).concat([cs.updateListener.of((function(t){e(t),t.docChanged&&n(t.state.doc.toString(),t),t.focusChanged&&(t.view.hasFocus?r(t):i(t))}))])})},Cy=function(t){var e=new pe;return{compartment:e,run:function(n){e.get(t.state)?t.dispatch({effects:e.reconfigure(n)}):t.dispatch({effects:Te.appendConfig.of(e.of(n))})}}},My=function(t,e){var n=Cy(t),r=n.compartment,i=n.run;return function(n){var o=r.get(t.state);i((null!=n?n:o!==e)?e:[])}},Ty={type:Boolean,default:void 0},Py={autofocus:Ty,disabled:Ty,indentWithTab:Ty,tabSize:Number,placeholder:String,style:Object,autoDestroy:Ty,phrases:Object,root:Object,extensions:Array,selection:Object},Iy={modelValue:{type:String,default:""}},$y=Object.assign(Object.assign({},Py),Iy);!function(t){t.Change="change",t.Update="update",t.Focus="focus",t.Blur="blur",t.Ready="ready",t.ModelUpdate="update:modelValue"}(Oy||(Oy={}));var Ey={};Ey[Oy.Change]=function(t,e){return!0},Ey[Oy.Update]=function(t){return!0},Ey[Oy.Focus]=function(t){return!0},Ey[Oy.Blur]=function(t){return!0},Ey[Oy.Ready]=function(t){return!0};var Ry={};Ry[Oy.ModelUpdate]=Ey[Oy.Change];var Dy=Object.assign(Object.assign({},Ey),Ry),Ly=(0,r.pM)({name:"VueCodemirror",props:Object.assign({},$y),emits:Object.assign({},Dy),setup:function(t,e){var n=(0,i.IJ)(),o=(0,i.IJ)(),a=(0,i.IJ)(),s=Object.assign(Object.assign({},Sy),(0,r.WQ)(Ay,{})),l=(0,r.EW)((function(){var e={};return Object.keys((0,i.ux)(t)).forEach((function(n){var r;"modelValue"!==n&&(e[n]=null!==(r=t[n])&&void 0!==r?r:s[n])})),e}));return(0,r.sV)((function(){var i;o.value=ky({doc:t.modelValue,selection:l.value.selection,extensions:null!==(i=s.extensions)&&void 0!==i?i:[],onFocus:function(t){return e.emit(Oy.Focus,t)},onBlur:function(t){return e.emit(Oy.Blur,t)},onUpdate:function(t){return e.emit(Oy.Update,t)},onChange:function(n,r){n!==t.modelValue&&(e.emit(Oy.Change,n,r),e.emit(Oy.ModelUpdate,n,r))}}),a.value=function(t){return new cs(Object.assign({},t))}({state:o.value,parent:n.value,root:l.value.root});var u=function(t){var e=function(){return t.state.doc.toString()},n=Cy(t).run,r=My(t,[cs.editable.of(!1),Qe.readOnly.of(!0)]),i=My(t,bs.of([Hf])),o=Cy(t).run,a=Cy(t).run,s=Cy(t).run,l=Cy(t).run;return{focus:function(){return t.focus()},getDoc:e,setDoc:function(n){n!==e()&&t.dispatch({changes:{from:0,to:t.state.doc.length,insert:n}})},reExtensions:n,toggleDisabled:r,toggleIndentWithTab:i,setTabSize:function(t){o([Qe.tabSize.of(t),Yc.of(" ".repeat(t))])},setPhrases:function(t){a([Qe.phrases.of(t)])},setPlaceholder:function(t){s(gl(t))},setStyle:function(t){void 0===t&&(t={}),l(cs.theme({"&":Object.assign({},t)}))}}}(a.value);(0,r.wB)((function(){return t.modelValue}),(function(t){t!==u.getDoc()&&u.setDoc(t)})),(0,r.wB)((function(){return t.extensions}),(function(t){return u.reExtensions(t||[])}),{immediate:!0}),(0,r.wB)((function(){return l.value.disabled}),(function(t){return u.toggleDisabled(t)}),{immediate:!0}),(0,r.wB)((function(){return l.value.indentWithTab}),(function(t){return u.toggleIndentWithTab(t)}),{immediate:!0}),(0,r.wB)((function(){return l.value.tabSize}),(function(t){return u.setTabSize(t)}),{immediate:!0}),(0,r.wB)((function(){return l.value.phrases}),(function(t){return u.setPhrases(t||{})}),{immediate:!0}),(0,r.wB)((function(){return l.value.placeholder}),(function(t){return u.setPlaceholder(t)}),{immediate:!0}),(0,r.wB)((function(){return l.value.style}),(function(t){return u.setStyle(t)}),{immediate:!0}),l.value.autofocus&&u.focus(),e.emit(Oy.Ready,{state:o.value,view:a.value,container:n.value})})),(0,r.xo)((function(){l.value.autoDestroy&&a.value&&function(t){t.destroy()}(a.value)})),function(){return(0,r.h)("div",{class:"v-codemirror",style:{display:"contents"},ref:n})}}}),Ny=Ly;const zy="#e5c07b",By="#e06c75",Fy="#56b6c2",Wy="#ffffff",jy="#abb2bf",Vy="#7d8799",Qy="#61afef",Hy="#98c379",Zy="#d19a66",Gy="#c678dd",Xy="#21252b",Uy="#2c313a",Yy="#282c34",qy="#353a42",Ky="#3E4451",Jy="#528bff",tb=cs.theme({"&":{color:jy,backgroundColor:Yy},".cm-content":{caretColor:Jy},".cm-cursor, .cm-dropCursor":{borderLeftColor:Jy},"&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection":{backgroundColor:Ky},".cm-panels":{backgroundColor:Xy,color:jy},".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:Yy,color:Vy,border:"none"},".cm-activeLineGutter":{backgroundColor:Uy},".cm-foldPlaceholder":{backgroundColor:"transparent",border:"none",color:"#ddd"},".cm-tooltip":{border:"none",backgroundColor:qy},".cm-tooltip .cm-tooltip-arrow:before":{borderTopColor:"transparent",borderBottomColor:"transparent"},".cm-tooltip .cm-tooltip-arrow:after":{borderTopColor:qy,borderBottomColor:qy},".cm-tooltip-autocomplete":{"& > ul > li[aria-selected]":{backgroundColor:Uy,color:jy}}},{dark:!0}),eb=Zh.define([{tag:Pc.keyword,color:Gy},{tag:[Pc.name,Pc.deleted,Pc.character,Pc.propertyName,Pc.macroName],color:By},{tag:[Pc.function(Pc.variableName),Pc.labelName],color:Qy},{tag:[Pc.color,Pc.constant(Pc.name),Pc.standard(Pc.name)],color:Zy},{tag:[Pc.definition(Pc.name),Pc.separator],color:jy},{tag:[Pc.typeName,Pc.className,Pc.number,Pc.changed,Pc.annotation,Pc.modifier,Pc.self,Pc.namespace],color:zy},{tag:[Pc.operator,Pc.operatorKeyword,Pc.url,Pc.escape,Pc.regexp,Pc.link,Pc.special(Pc.string)],color:Fy},{tag:[Pc.meta,Pc.comment],color:Vy},{tag:Pc.strong,fontWeight:"bold"},{tag:Pc.emphasis,fontStyle:"italic"},{tag:Pc.strikethrough,textDecoration:"line-through"},{tag:Pc.link,color:Vy,textDecoration:"underline"},{tag:Pc.heading,fontWeight:"bold",color:By},{tag:[Pc.atom,Pc.bool,Pc.special(Pc.variableName)],color:Zy},{tag:[Pc.processingInstruction,Pc.string,Pc.inserted],color:Hy},{tag:Pc.invalid,color:Wy}]),nb=[tb,Yh(eb)];class rb{constructor(t,e,n,r,i,o,a,s,l,u=0,c){this.p=t,this.stack=e,this.state=n,this.reducePos=r,this.pos=i,this.score=o,this.buffer=a,this.bufferBase=s,this.curContext=l,this.lookAhead=u,this.parent=c}toString(){return`[${this.stack.filter(((t,e)=>e%3==0)).concat(this.state)}]@${this.pos}${this.score?"!"+this.score:""}`}static start(t,e,n=0){let r=t.parser.context;return new rb(t,[],e,n,n,0,[],0,r?new ib(r,r.start):null,0,null)}get context(){return this.curContext?this.curContext.context:null}pushState(t,e){this.stack.push(this.state,e,this.bufferBase+this.buffer.length),this.state=t}reduce(t){var e;let n=t>>19,r=65535&t,{parser:i}=this.p;this.reducePos<this.pos-25&&this.setLookAhead(this.pos);let o=i.dynamicPrecedence(r);if(o&&(this.score+=o),0==n)return this.pushState(i.getGoto(this.state,r,!0),this.reducePos),r<i.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&t?6:0),s=a?this.stack[a-2]:this.p.ranges[0].from,l=this.reducePos-s;l>=2e3&&!(null===(e=this.p.parser.nodeSet.types[r])||void 0===e?void 0:e.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<i.minRepeatTerm||131072&t){let t=i.stateFlag(this.state,1)?this.pos:this.reducePos;this.storeNode(r,s,t,c+4,!0)}if(262144&t)this.state=this.stack[a];else{let t=this.stack[a-3];this.state=i.getGoto(t,r,!0)}while(this.stack.length>a)this.stack.pop();this.reduceContext(r,s)}storeNode(t,e,n,r=4,i=!1){if(0==t&&(!this.stack.length||this.stack[this.stack.length-1]<this.buffer.length+this.bufferBase)){let t=this,r=this.buffer.length;if(0==r&&t.parent&&(r=t.bufferBase-t.parent.bufferBase,t=t.parent),r>0&&0==t.buffer[r-4]&&t.buffer[r-1]>-1){if(e==n)return;if(t.buffer[r-2]>=e)return void(t.buffer[r-2]=n)}}if(i&&this.pos!=n){let i=this.buffer.length;if(i>0&&0!=this.buffer[i-4])while(i>0&&this.buffer[i-2]>n)this.buffer[i]=this.buffer[i-4],this.buffer[i+1]=this.buffer[i-3],this.buffer[i+2]=this.buffer[i-2],this.buffer[i+3]=this.buffer[i-1],i-=4,r>4&&(r-=4);this.buffer[i]=t,this.buffer[i+1]=e,this.buffer[i+2]=n,this.buffer[i+3]=r}else this.buffer.push(t,e,n,r)}shift(t,e,n,r){if(131072&t)this.pushState(65535&t,this.pos);else if(0==(262144&t)){let i=t,{parser:o}=this.p;(r>this.pos||e<=o.maxNode)&&(this.pos=r,o.stateFlag(i,1)||(this.reducePos=r)),this.pushState(i,n),this.shiftContext(e,n),e<=o.maxNode&&this.buffer.push(e,n,r,4)}else this.pos=r,this.shiftContext(e,n),e<=this.p.parser.maxNode&&this.buffer.push(e,n,r,4)}apply(t,e,n,r){65536&t?this.reduce(t):this.shift(t,e,n,r)}useNode(t,e){let n=this.p.reused.length-1;(n<0||this.p.reused[n]!=t)&&(this.p.reused.push(t),n++);let r=this.pos;this.reducePos=this.pos=r+t.length,this.pushState(e,r),this.buffer.push(n,r,this.reducePos,-1),this.curContext&&this.updateContext(this.curContext.tracker.reuse(this.curContext.context,t,this,this.p.stream.reset(this.pos-t.length)))}split(){let t=this,e=t.buffer.length;while(e>0&&t.buffer[e-2]>t.reducePos)e-=4;let n=t.buffer.slice(e),r=t.bufferBase+e;while(t&&r==t.bufferBase)t=t.parent;return new rb(this.p,this.stack.slice(),this.state,this.reducePos,this.pos,this.score,n,r,this.curContext,this.lookAhead,t)}recoverByDelete(t,e){let n=t<=this.p.parser.maxNode;n&&this.storeNode(t,this.pos,e,4),this.storeNode(0,this.pos,e,n?8:4),this.pos=this.reducePos=e,this.score-=190}canShift(t){for(let e=new ob(this);;){let n=this.p.parser.stateSlot(e.state,4)||this.p.parser.hasAction(e.state,t);if(0==n)return!1;if(0==(65536&n))return!0;e.reduce(n)}}recoverByInsert(t){if(this.stack.length>=300)return[];let e=this.p.parser.nextStates(this.state);if(e.length>8||this.stack.length>=120){let n=[];for(let r,i=0;i<e.length;i+=2)(r=e[i+1])!=this.state&&this.p.parser.hasAction(r,t)&&n.push(e[i],r);if(this.stack.length<120)for(let t=0;n.length<8&&t<e.length;t+=2){let r=e[t+1];n.some(((t,e)=>1&e&&t==r))||n.push(e[t],r)}e=n}let n=[];for(let r=0;r<e.length&&n.length<4;r+=2){let t=e[r+1];if(t==this.state)continue;let i=this.split();i.pushState(t,this.pos),i.storeNode(0,i.pos,i.pos,4,!0),i.shiftContext(e[r],this.pos),i.reducePos=this.pos,i.score-=200,n.push(i)}return n}forceReduce(){let{parser:t}=this.p,e=t.stateSlot(this.state,5);if(0==(65536&e))return!1;if(!t.validAction(this.state,e)){let n=e>>19,r=65535&e,i=this.stack.length-3*n;if(i<0||t.getGoto(this.stack[i],r,!1)<0){let t=this.findForcedReduction();if(null==t)return!1;e=t}this.storeNode(0,this.pos,this.pos,4,!0),this.score-=100}return this.reducePos=this.pos,this.reduce(e),!0}findForcedReduction(){let{parser:t}=this.p,e=[],n=(r,i)=>{if(!e.includes(r))return e.push(r),t.allActions(r,(e=>{if(393216&e);else if(65536&e){let n=(e>>19)-i;if(n>1){let r=65535&e,i=this.stack.length-3*n;if(i>=0&&t.getGoto(this.stack[i],r,!1)>=0)return n<<19|65536|r}}else{let t=n(e,i+1);if(null!=t)return t}}))};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:t}=this.p;return 65535==t.data[t.stateSlot(this.state,1)]&&!t.stateSlot(this.state,4)}restart(){this.storeNode(0,this.pos,this.pos,4,!0),this.state=this.stack[0],this.stack.length=0}sameState(t){if(this.state!=t.state||this.stack.length!=t.stack.length)return!1;for(let e=0;e<this.stack.length;e+=3)if(this.stack[e]!=t.stack[e])return!1;return!0}get parser(){return this.p.parser}dialectEnabled(t){return this.p.parser.dialect.flags[t]}shiftContext(t,e){this.curContext&&this.updateContext(this.curContext.tracker.shift(this.curContext.context,t,this,this.p.stream.reset(e)))}reduceContext(t,e){this.curContext&&this.updateContext(this.curContext.tracker.reduce(this.curContext.context,t,this,this.p.stream.reset(e)))}emitContext(){let t=this.buffer.length-1;(t<0||-3!=this.buffer[t])&&this.buffer.push(this.curContext.hash,this.pos,this.pos,-3)}emitLookAhead(){let t=this.buffer.length-1;(t<0||-4!=this.buffer[t])&&this.buffer.push(this.lookAhead,this.pos,this.pos,-4)}updateContext(t){if(t!=this.curContext.context){let e=new ib(this.curContext.tracker,t);e.hash!=this.curContext.hash&&this.emitContext(),this.curContext=e}}setLookAhead(t){t>this.lookAhead&&(this.emitLookAhead(),this.lookAhead=t)}close(){this.curContext&&this.curContext.tracker.strict&&this.emitContext(),this.lookAhead>0&&this.emitLookAhead()}}class ib{constructor(t,e){this.tracker=t,this.context=e,this.hash=t.strict?t.hash(e):0}}class ob{constructor(t){this.start=t,this.state=t.state,this.stack=t.stack,this.base=this.stack.length}reduce(t){let e=65535&t,n=t>>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],e,!0);this.state=r}}class ab{constructor(t,e,n){this.stack=t,this.pos=e,this.index=n,this.buffer=t.buffer,0==this.index&&this.maybeNext()}static create(t,e=t.bufferBase+t.buffer.length){return new ab(t,e,e-t.bufferBase)}maybeNext(){let t=this.stack.parent;null!=t&&(this.index=this.stack.bufferBase-t.bufferBase,this.stack=t,this.buffer=t.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 ab(this.stack,this.pos,this.index)}}function sb(t,e=Uint16Array){if("string"!=typeof t)return t;let n=null;for(let r=0,i=0;r<t.length;){let o=0;for(;;){let e=t.charCodeAt(r++),n=!1;if(126==e){o=65535;break}e>=92&&e--,e>=34&&e--;let i=e-32;if(i>=46&&(i-=46,n=!0),o+=i,n)break;o*=46}n?n[i++]=o:n=new e(o)}return n}class lb{constructor(){this.start=-1,this.value=-1,this.end=-1,this.extended=-1,this.lookAhead=0,this.mask=0,this.context=0}}const ub=new lb;class cb{constructor(t,e){this.input=t,this.ranges=e,this.chunk="",this.chunkOff=0,this.chunk2="",this.chunk2Pos=0,this.next=-1,this.token=ub,this.rangeIndex=0,this.pos=this.chunkPos=e[0].from,this.range=e[0],this.end=e[e.length-1].to,this.readNext()}resolveOffset(t,e){let n=this.range,r=this.rangeIndex,i=this.pos+t;while(i<n.from){if(!r)return null;let t=this.ranges[--r];i-=n.from-t.to,n=t}while(e<0?i>n.to:i>=n.to){if(r==this.ranges.length-1)return null;let t=this.ranges[++r];i+=t.from-n.to,n=t}return i}clipPos(t){if(t>=this.range.from&&t<this.range.to)return t;for(let e of this.ranges)if(e.to>t)return Math.max(t,e.from);return this.end}peek(t){let e,n,r=this.chunkOff+t;if(r>=0&&r<this.chunk.length)e=this.pos+t,n=this.chunk.charCodeAt(r);else{let r=this.resolveOffset(t,1);if(null==r)return-1;if(e=r,e>=this.chunk2Pos&&e<this.chunk2Pos+this.chunk2.length)n=this.chunk2.charCodeAt(e-this.chunk2Pos);else{let t=this.rangeIndex,r=this.range;while(r.to<=e)r=this.ranges[++t];this.chunk2=this.input.chunk(this.chunk2Pos=e),e+this.chunk2.length>r.to&&(this.chunk2=this.chunk2.slice(0,r.to-e)),n=this.chunk2.charCodeAt(0)}}return e>=this.token.lookAhead&&(this.token.lookAhead=e+1),n}acceptToken(t,e=0){let n=e?this.resolveOffset(e,-1):this.pos;if(null==n||n<this.token.start)throw new RangeError("Token end out of bounds");this.token.value=t,this.token.end=n}acceptTokenTo(t,e){this.token.value=t,this.token.end=e}getChunk(){if(this.pos>=this.chunk2Pos&&this.pos<this.chunk2Pos+this.chunk2.length){let{chunk:t,chunkPos:e}=this;this.chunk=this.chunk2,this.chunkPos=this.chunk2Pos,this.chunk2=t,this.chunk2Pos=e,this.chunkOff=this.pos-this.chunkPos}else{this.chunk2=this.chunk,this.chunk2Pos=this.chunkPos;let t=this.input.chunk(this.pos),e=this.pos+t.length;this.chunk=e>this.range.to?t.slice(0,this.range.to-this.pos):t,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(t=1){this.chunkOff+=t;while(this.pos+t>=this.range.to){if(this.rangeIndex==this.ranges.length-1)return this.setDone();t-=this.range.to-this.pos,this.range=this.ranges[++this.rangeIndex],this.pos=this.range.from}return this.pos+=t,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(t,e){if(e?(this.token=e,e.start=t,e.lookAhead=t+1,e.value=e.extended=-1):this.token=ub,this.pos!=t){if(this.pos=t,t==this.end)return this.setDone(),this;while(t<this.range.from)this.range=this.ranges[--this.rangeIndex];while(t>=this.range.to)this.range=this.ranges[++this.rangeIndex];t>=this.chunkPos&&t<this.chunkPos+this.chunk.length?this.chunkOff=t-this.chunkPos:(this.chunk="",this.chunkOff=0),this.readNext()}return this}read(t,e){if(t>=this.chunkPos&&e<=this.chunkPos+this.chunk.length)return this.chunk.slice(t-this.chunkPos,e-this.chunkPos);if(t>=this.chunk2Pos&&e<=this.chunk2Pos+this.chunk2.length)return this.chunk2.slice(t-this.chunk2Pos,e-this.chunk2Pos);if(t>=this.range.from&&e<=this.range.to)return this.input.read(t,e);let n="";for(let r of this.ranges){if(r.from>=e)break;r.to>t&&(n+=this.input.read(Math.max(r.from,t),Math.min(r.to,e)))}return n}}class hb{constructor(t,e){this.data=t,this.id=e}token(t,e){let{parser:n}=e.p;fb(this.data,t,e,this.id,n.data,n.tokenPrecTable)}}hb.prototype.contextual=hb.prototype.fallback=hb.prototype.extend=!1;class db{constructor(t,e,n){this.precTable=e,this.elseToken=n,this.data="string"==typeof t?sb(t):t}token(t,e){let n=t.pos,r=0;for(;;){let n=t.next<0,i=t.resolveOffset(1,1);if(fb(this.data,t,e,0,this.data,this.precTable),t.token.value>-1)break;if(null==this.elseToken)return;if(n||r++,null==i)break;t.reset(i,t.token)}r&&(t.reset(n,t.token),t.acceptToken(this.elseToken,r))}}db.prototype.contextual=hb.prototype.fallback=hb.prototype.extend=!1;class pb{constructor(t,e={}){this.token=t,this.contextual=!!e.contextual,this.fallback=!!e.fallback,this.extend=!!e.extend}}function fb(t,e,n,r,i,o){let a=0,s=1<<r,{dialect:l}=n.p.parser;t:for(;;){if(0==(s&t[a]))break;let n=t[a+1];for(let h=a+3;h<n;h+=2)if((t[h+1]&s)>0){let n=t[h];if(l.allows(n)&&(-1==e.token.value||e.token.value==n||vb(n,e.token.value,i,o))){e.acceptToken(n);break}}let r=e.next,u=0,c=t[a+2];if(!(e.next<0&&c>u&&65535==t[n+3*c-3])){for(;u<c;){let i=u+c>>1,o=n+i+(i<<1),s=t[o],l=t[o+1]||65536;if(r<s)c=i;else{if(!(r>=l)){a=t[o+2],e.advance();continue t}u=i+1}}break}a=t[n+3*c-1]}}function gb(t,e,n){for(let r,i=e;65535!=(r=t[i]);i++)if(r==n)return i-e;return-1}function vb(t,e,n,r){let i=gb(n,r,e);return i<0||gb(n,r,t)<i}const mb="undefined"!=typeof process&&{NODE_ENV:"production",BASE_URL:"/"}&&/\bparse\b/.test({NODE_ENV:"production",BASE_URL:"/"}.LOG);let yb=null;function bb(t,e,n){let r=t.cursor(Pu.IncludeAnonymous);for(r.moveTo(e);;)if(!(n<0?r.childBefore(e):r.childAfter(e)))for(;;){if((n<0?r.to<e:r.from>e)&&!r.type.isError)return n<0?Math.max(0,Math.min(r.to-1,e-25)):Math.min(t.length,Math.max(r.from+1,e+25));if(n<0?r.prevSibling():r.nextSibling())break;if(!r.parent())return n<0?0:t.length}}class _b{constructor(t,e){this.fragments=t,this.nodeSet=e,this.i=0,this.fragment=null,this.safeFrom=-1,this.safeTo=-1,this.trees=[],this.start=[],this.index=[],this.nextFragment()}nextFragment(){let t=this.fragment=this.i==this.fragments.length?null:this.fragments[this.i++];if(t){this.safeFrom=t.openStart?bb(t.tree,t.from+t.offset,1)-t.offset:t.from,this.safeTo=t.openEnd?bb(t.tree,t.to+t.offset,-1)-t.offset:t.to;while(this.trees.length)this.trees.pop(),this.start.pop(),this.index.pop();this.trees.push(t.tree),this.start.push(-t.offset),this.index.push(0),this.nextStart=this.safeFrom}else this.nextStart=1e9}nodeAt(t){if(t<this.nextStart)return null;while(this.fragment&&this.safeTo<=t)this.nextFragment();if(!this.fragment)return null;for(;;){let e=this.trees.length-1;if(e<0)return this.nextFragment(),null;let n=this.trees[e],r=this.index[e];if(r==n.children.length){this.trees.pop(),this.start.pop(),this.index.pop();continue}let i=n.children[r],o=this.start[e]+n.positions[r];if(o>t)return this.nextStart=o,null;if(i instanceof Iu){if(o==t){if(o<this.safeFrom)return null;let t=o+i.length;if(t<=this.safeTo){let e=i.prop(Ou.lookAhead);if(!e||t+e<this.fragment.to)return i}}this.index[e]++,o+i.length>=Math.max(this.safeFrom,t)&&(this.trees.push(i),this.start.push(o),this.index.push(0))}else this.index[e]++,this.nextStart=o+i.length}}}class xb{constructor(t,e){this.stream=e,this.tokens=[],this.mainToken=null,this.actions=[],this.tokens=t.tokenizers.map((t=>new lb))}getActions(t){let e=0,n=null,{parser:r}=t.p,{tokenizers:i}=r,o=r.stateSlot(t.state,3),a=t.curContext?t.curContext.hash:0,s=0;for(let l=0;l<i.length;l++){if(0==(1<<l&o))continue;let r=i[l],u=this.tokens[l];if((!n||r.fallback)&&((r.contextual||u.start!=t.pos||u.mask!=o||u.context!=a)&&(this.updateCachedToken(u,r,t),u.mask=o,u.context=a),u.lookAhead>u.end+25&&(s=Math.max(u.lookAhead,s)),0!=u.value)){let i=e;if(u.extended>-1&&(e=this.addActions(t,u.extended,u.end,e)),e=this.addActions(t,u.value,u.end,e),!r.extend&&(n=u,e>i))break}}while(this.actions.length>e)this.actions.pop();return s&&t.setLookAhead(s),n||t.pos!=this.stream.end||(n=new lb,n.value=t.p.parser.eofTerm,n.start=n.end=t.pos,e=this.addActions(t,n.value,n.end,e)),this.mainToken=n,this.actions}getMainToken(t){if(this.mainToken)return this.mainToken;let e=new lb,{pos:n,p:r}=t;return e.start=n,e.end=Math.min(n+1,r.stream.end),e.value=n==r.stream.end?r.parser.eofTerm:0,e}updateCachedToken(t,e,n){let r=this.stream.clipPos(n.pos);if(e.token(this.stream.reset(r,t),n),t.value>-1){let{parser:e}=n.p;for(let r=0;r<e.specialized.length;r++)if(e.specialized[r]==t.value){let i=e.specializers[r](this.stream.read(t.start,t.end),n);if(i>=0&&n.p.parser.dialect.allows(i>>1)){0==(1&i)?t.value=i>>1:t.extended=i>>1;break}}}else t.value=0,t.end=this.stream.clipPos(r+1)}putAction(t,e,n,r){for(let i=0;i<r;i+=3)if(this.actions[i]==t)return r;return this.actions[r++]=t,this.actions[r++]=e,this.actions[r++]=n,r}addActions(t,e,n,r){let{state:i}=t,{parser:o}=t.p,{data:a}=o;for(let s=0;s<2;s++)for(let t=o.stateSlot(i,s?2:1);;t+=3){if(65535==a[t]){if(1!=a[t+1]){0==r&&2==a[t+1]&&(r=this.putAction(Mb(a,t+2),e,n,r));break}t=Mb(a,t+2)}a[t]==e&&(r=this.putAction(Mb(a,t+1),e,n,r))}return r}}class wb{constructor(t,e,n,r){this.parser=t,this.input=e,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 cb(e,r),this.tokens=new xb(t,this.stream),this.topTerm=t.top[1];let{from:i}=r[0];this.stacks=[rb.start(this,t.top[0],i)],this.fragments=n.length&&this.stream.end-i>4*t.bufferLength?new _b(n,t.nodeSet):null}get parsedPos(){return this.minStackPos}advance(){let t,e,n=this.stacks,r=this.minStackPos,i=this.stacks=[];if(this.bigReductionCount>300&&1==n.length){let[t]=n;while(t.forceReduce()&&t.stack.length&&t.stack[t.stack.length-2]>=this.lastBigReductionStart);this.bigReductionCount=this.lastBigReductionSize=0}for(let o=0;o<n.length;o++){let a=n[o];for(;;){if(this.tokens.mainToken=null,a.pos>r)i.push(a);else{if(this.advanceStack(a,i,n))continue;{t||(t=[],e=[]),t.push(a);let n=this.tokens.getMainToken(a);e.push(n.value,n.end)}}break}}if(!i.length){let e=t&&Tb(t);if(e)return mb&&console.log("Finish with "+this.stackID(e)),this.stackToTree(e);if(this.parser.strict)throw mb&&t&&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&&t){let n=null!=this.stoppedAt&&t[0].pos>this.stoppedAt?t[0]:this.runRecovery(t,e,i);if(n)return mb&&console.log("Force-finish "+this.stackID(n)),this.stackToTree(n.forceAll())}if(this.recovering){let t=1==this.recovering?1:3*this.recovering;if(i.length>t){i.sort(((t,e)=>e.score-t.score));while(i.length>t)i.pop()}i.some((t=>t.reducePos>r))&&this.recovering--}else if(i.length>1){t:for(let t=0;t<i.length-1;t++){let e=i[t];for(let n=t+1;n<i.length;n++){let r=i[n];if(e.sameState(r)||e.buffer.length>500&&r.buffer.length>500){if(!((e.score-r.score||e.buffer.length-r.buffer.length)>0)){i.splice(t--,1);continue t}i.splice(n--,1)}}}i.length>12&&i.splice(12,i.length-12)}this.minStackPos=i[0].pos;for(let o=1;o<i.length;o++)i[o].pos<this.minStackPos&&(this.minStackPos=i[o].pos);return null}stopAt(t){if(null!=this.stoppedAt&&this.stoppedAt<t)throw new RangeError("Can't move stoppedAt forward");this.stoppedAt=t}advanceStack(t,e,n){let r=t.pos,{parser:i}=this,o=mb?this.stackID(t)+" -> ":"";if(null!=this.stoppedAt&&r>this.stoppedAt)return t.forceReduce()?t:null;if(this.fragments){let e=t.curContext&&t.curContext.tracker.strict,n=e?t.curContext.hash:0;for(let a=this.fragments.nodeAt(r);a;){let r=this.parser.nodeSet.types[a.type.id]==a.type?i.getGoto(t.state,a.type.id):-1;if(r>-1&&a.length&&(!e||(a.prop(Ou.contextHash)||0)==n))return t.useNode(a,r),mb&&console.log(o+this.stackID(t)+` (via reuse of ${i.getName(a.type.id)})`),!0;if(!(a instanceof Iu)||0==a.children.length||a.positions[0]>0)break;let s=a.children[0];if(!(s instanceof Iu&&0==a.positions[0]))break;a=s}}let a=i.stateSlot(t.state,4);if(a>0)return t.reduce(a),mb&&console.log(o+this.stackID(t)+` (via always-reduce ${i.getName(65535&a)})`),!0;if(t.stack.length>=8400)while(t.stack.length>6e3&&t.forceReduce());let s=this.tokens.getActions(t);for(let l=0;l<s.length;){let a=s[l++],u=s[l++],c=s[l++],h=l==s.length||!n,d=h?t:t.split(),p=this.tokens.mainToken;if(d.apply(a,u,p?p.start:d.pos,c),mb&&console.log(o+this.stackID(d)+` (via ${0==(65536&a)?"shift":`reduce of ${i.getName(65535&a)}`} for ${i.getName(u)} @ ${r}${d==t?"":", split"})`),h)return!0;d.pos>r?e.push(d):n.push(d)}return!1}advanceFully(t,e){let n=t.pos;for(;;){if(!this.advanceStack(t,null,null))return!1;if(t.pos>n)return Ob(t,e),!0}}runRecovery(t,e,n){let r=null,i=!1;for(let o=0;o<t.length;o++){let a=t[o],s=e[o<<1],l=e[1+(o<<1)],u=mb?this.stackID(a)+" -> ":"";if(a.deadEnd){if(i)continue;i=!0,a.restart(),mb&&console.log(u+this.stackID(a)+" (restarted)");let t=this.advanceFully(a,n);if(t)continue}let c=a.split(),h=u;for(let t=0;c.forceReduce()&&t<10;t++){mb&&console.log(h+this.stackID(c)+" (via force-reduce)");let t=this.advanceFully(c,n);if(t)break;mb&&(h=this.stackID(c)+" -> ")}for(let t of a.recoverByInsert(s))mb&&console.log(u+this.stackID(t)+" (via recover-insert)"),this.advanceFully(t,n);this.stream.end>a.pos?(l==a.pos&&(l++,s=0),a.recoverByDelete(s,l),mb&&console.log(u+this.stackID(a)+` (via recover-delete ${this.parser.getName(s)})`),Ob(a,n)):(!r||r.score<a.score)&&(r=a)}return r}stackToTree(t){return t.close(),Iu.build({buffer:ab.create(t),nodeSet:this.parser.nodeSet,topID:this.topTerm,maxBufferLength:this.parser.bufferLength,reused:this.reused,start:this.ranges[0].from,length:t.pos-this.ranges[0].from,minRepeatType:this.parser.minRepeatTerm})}stackID(t){let e=(yb||(yb=new WeakMap)).get(t);return e||yb.set(t,e=String.fromCodePoint(this.nextStackID++)),e+t}}function Ob(t,e){for(let n=0;n<e.length;n++){let r=e[n];if(r.pos==t.pos&&r.sameState(t))return void(e[n].score<t.score&&(e[n]=t))}e.push(t)}class Sb{constructor(t,e,n){this.source=t,this.flags=e,this.disabled=n}allows(t){return!this.disabled||0==this.disabled[t]}}const Ab=t=>t;class kb{constructor(t){this.start=t.start,this.shift=t.shift||Ab,this.reduce=t.reduce||Ab,this.reuse=t.reuse||Ab,this.hash=t.hash||(()=>0),this.strict=!1!==t.strict}}class Cb extends Ju{constructor(t){if(super(),this.wrappers=[],14!=t.version)throw new RangeError(`Parser version (${t.version}) doesn't match runtime version (14)`);let e=t.nodeNames.split(" ");this.minRepeatTerm=e.length;for(let a=0;a<t.repeatNodeCount;a++)e.push("");let n=Object.keys(t.topRules).map((e=>t.topRules[e][1])),r=[];for(let a=0;a<e.length;a++)r.push([]);function i(t,e,n){r[t].push([e,e.deserialize(String(n))])}if(t.nodeProps)for(let a of t.nodeProps){let t=a[0];"string"==typeof t&&(t=Ou[t]);for(let e=1;e<a.length;){let n=a[e++];if(n>=0)i(n,t,a[e++]);else{let r=a[e+-n];for(let o=-n;o>0;o--)i(a[e++],t,r);e++}}}this.nodeSet=new Cu(e.map(((e,i)=>ku.define({name:i>=this.minRepeatTerm?void 0:e,id:i,props:r[i],top:n.indexOf(i)>-1,error:0==i,skipped:t.skippedNodes&&t.skippedNodes.indexOf(i)>-1})))),t.propSources&&(this.nodeSet=this.nodeSet.extend(...t.propSources)),this.strict=!1,this.bufferLength=_u;let o=sb(t.tokenData);this.context=t.context,this.specializerSpecs=t.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(Pb),this.states=sb(t.states,Uint32Array),this.data=sb(t.stateData),this.goto=sb(t.goto),this.maxTerm=t.maxTerm,this.tokenizers=t.tokenizers.map((t=>"number"==typeof t?new hb(o,t):t)),this.topRules=t.topRules,this.dialects=t.dialects||{},this.dynamicPrecedences=t.dynamicPrecedences||null,this.tokenPrecTable=t.tokenPrec,this.termNames=t.termNames||null,this.maxNode=this.nodeSet.types.length-1,this.dialect=this.parseDialect(),this.top=this.topRules[Object.keys(this.topRules)[0]]}createParse(t,e,n){let r=new wb(this,t,e,n);for(let i of this.wrappers)r=i(r,t,e,n);return r}getGoto(t,e,n=!1){let r=this.goto;if(e>=r[0])return-1;for(let i=r[e+1];;){let e=r[i++],o=1&e,a=r[i++];if(o&&n)return a;for(let n=i+(e>>1);i<n;i++)if(r[i]==t)return a;if(o)return-1}}hasAction(t,e){let n=this.data;for(let r=0;r<2;r++)for(let i,o=this.stateSlot(t,r?2:1);;o+=3){if(65535==(i=n[o])){if(1!=n[o+1]){if(2==n[o+1])return Mb(n,o+2);break}i=n[o=Mb(n,o+2)]}if(i==e||0==i)return Mb(n,o+1)}return 0}stateSlot(t,e){return this.states[6*t+e]}stateFlag(t,e){return(this.stateSlot(t,0)&e)>0}validAction(t,e){return!!this.allActions(t,(t=>t==e||null))}allActions(t,e){let n=this.stateSlot(t,4),r=n?e(n):void 0;for(let i=this.stateSlot(t,1);null==r;i+=3){if(65535==this.data[i]){if(1!=this.data[i+1])break;i=Mb(this.data,i+2)}r=e(Mb(this.data,i+1))}return r}nextStates(t){let e=[];for(let n=this.stateSlot(t,1);;n+=3){if(65535==this.data[n]){if(1!=this.data[n+1])break;n=Mb(this.data,n+2)}if(0==(1&this.data[n+2])){let t=this.data[n+1];e.some(((e,n)=>1&n&&e==t))||e.push(this.data[n],t)}}return e}configure(t){let e=Object.assign(Object.create(Cb.prototype),this);if(t.props&&(e.nodeSet=this.nodeSet.extend(...t.props)),t.top){let n=this.topRules[t.top];if(!n)throw new RangeError(`Invalid top rule name ${t.top}`);e.top=n}return t.tokenizers&&(e.tokenizers=this.tokenizers.map((e=>{let n=t.tokenizers.find((t=>t.from==e));return n?n.to:e}))),t.specializers&&(e.specializers=this.specializers.slice(),e.specializerSpecs=this.specializerSpecs.map(((n,r)=>{let i=t.specializers.find((t=>t.from==n.external));if(!i)return n;let o=Object.assign(Object.assign({},n),{external:i.to});return e.specializers[r]=Pb(o),o}))),t.contextTracker&&(e.context=t.contextTracker),t.dialect&&(e.dialect=this.parseDialect(t.dialect)),null!=t.strict&&(e.strict=t.strict),t.wrap&&(e.wrappers=e.wrappers.concat(t.wrap)),null!=t.bufferLength&&(e.bufferLength=t.bufferLength),e}hasWrappers(){return this.wrappers.length>0}getName(t){return this.termNames?this.termNames[t]:String(t<=this.maxNode&&this.nodeSet.types[t].name||t)}get eofTerm(){return this.maxNode+1}get topNode(){return this.nodeSet.types[this.top[1]]}dynamicPrecedence(t){let e=this.dynamicPrecedences;return null==e?0:e[t]||0}parseDialect(t){let e=Object.keys(this.dialects),n=e.map((()=>!1));if(t)for(let i of t.split(" ")){let t=e.indexOf(i);t>=0&&(n[t]=!0)}let r=null;for(let i=0;i<e.length;i++)if(!n[i])for(let t,n=this.dialects[e[i]];65535!=(t=this.data[n++]);)(r||(r=new Uint8Array(this.maxTerm+1)))[t]=1;return new Sb(t,n,r)}static deserialize(t){return new Cb(t)}}function Mb(t,e){return t[e]|t[e+1]<<16}function Tb(t){let e=null;for(let n of t){let t=n.p.stoppedAt;(n.pos==n.p.stream.end||null!=t&&n.pos>t)&&n.p.parser.stateFlag(n.state,2)&&(!e||e.score<n.score)&&(e=n)}return e}function Pb(t){if(t.external){let e=t.extend?1:0;return(n,r)=>t.external(n,r)<<1|e}return t.get}const Ib=312,$b=1,Eb=2,Rb=3,Db=4,Lb=313,Nb=315,zb=316,Bb=5,Fb=6,Wb=0,jb=[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],Vb=125,Qb=59,Hb=47,Zb=42,Gb=43,Xb=45,Ub=60,Yb=44,qb=63,Kb=46,Jb=new kb({start:!1,shift(t,e){return e==Bb||e==Fb||e==Nb?t:e==zb},strict:!1}),t_=new pb(((t,e)=>{let{next:n}=t;(n==Vb||-1==n||e.context)&&t.acceptToken(Lb)}),{contextual:!0,fallback:!0}),e_=new pb(((t,e)=>{let n,{next:r}=t;jb.indexOf(r)>-1||(r!=Hb||(n=t.peek(1))!=Hb&&n!=Zb)&&(r==Vb||r==Qb||-1==r||e.context||t.acceptToken(Ib))}),{contextual:!0}),n_=new pb(((t,e)=>{let{next:n}=t;if(n==Gb||n==Xb){if(t.advance(),n==t.next){t.advance();let n=!e.context&&e.canShift($b);t.acceptToken(n?$b:Eb)}}else n==qb&&t.peek(1)==Kb&&(t.advance(),t.advance(),(t.next<48||t.next>57)&&t.acceptToken(Rb))}),{contextual:!0});function r_(t,e){return t>=65&&t<=90||t>=97&&t<=122||95==t||t>=192||!e&&t>=48&&t<=57}const i_=new pb(((t,e)=>{if(t.next!=Ub||!e.dialectEnabled(Wb))return;if(t.advance(),t.next==Hb)return;let n=0;while(jb.indexOf(t.next)>-1)t.advance(),n++;if(r_(t.next,!0)){t.advance(),n++;while(r_(t.next,!1))t.advance(),n++;while(jb.indexOf(t.next)>-1)t.advance(),n++;if(t.next==Yb)return;for(let e=0;;e++){if(7==e){if(!r_(t.next,!0))return;break}if(t.next!="extends".charCodeAt(e))break;t.advance(),n++}}t.acceptToken(Db,-n)})),o_=sc({"get set async static":Pc.modifier,"for while do if else switch try catch finally return throw break continue default case":Pc.controlKeyword,"in of await yield void typeof delete instanceof":Pc.operatorKeyword,"let var const using function class extends":Pc.definitionKeyword,"import export from":Pc.moduleKeyword,"with debugger as new":Pc.keyword,TemplateString:Pc.special(Pc.string),super:Pc.atom,BooleanLiteral:Pc.bool,this:Pc.self,null:Pc.null,Star:Pc.modifier,VariableName:Pc.variableName,"CallExpression/VariableName TaggedTemplateExpression/VariableName":Pc.function(Pc.variableName),VariableDefinition:Pc.definition(Pc.variableName),Label:Pc.labelName,PropertyName:Pc.propertyName,PrivatePropertyName:Pc.special(Pc.propertyName),"CallExpression/MemberExpression/PropertyName":Pc.function(Pc.propertyName),"FunctionDeclaration/VariableDefinition":Pc.function(Pc.definition(Pc.variableName)),"ClassDeclaration/VariableDefinition":Pc.definition(Pc.className),PropertyDefinition:Pc.definition(Pc.propertyName),PrivatePropertyDefinition:Pc.definition(Pc.special(Pc.propertyName)),UpdateOp:Pc.updateOperator,"LineComment Hashbang":Pc.lineComment,BlockComment:Pc.blockComment,Number:Pc.number,String:Pc.string,Escape:Pc.escape,ArithOp:Pc.arithmeticOperator,LogicOp:Pc.logicOperator,BitOp:Pc.bitwiseOperator,CompareOp:Pc.compareOperator,RegExp:Pc.regexp,Equals:Pc.definitionOperator,Arrow:Pc.function(Pc.punctuation),": Spread":Pc.punctuation,"( )":Pc.paren,"[ ]":Pc.squareBracket,"{ }":Pc.brace,"InterpolationStart InterpolationEnd":Pc.special(Pc.brace),".":Pc.derefOperator,", ;":Pc.separator,"@":Pc.meta,TypeName:Pc.typeName,TypeDefinition:Pc.definition(Pc.typeName),"type enum interface implements namespace module declare":Pc.definitionKeyword,"abstract global Privacy readonly override":Pc.modifier,"is keyof unique infer":Pc.operatorKeyword,JSXAttributeValue:Pc.attributeValue,JSXText:Pc.content,"JSXStartTag JSXStartCloseTag JSXSelfCloseEndTag JSXEndTag":Pc.angleBracket,"JSXIdentifier JSXNameSpacedName":Pc.tagName,"JSXAttribute/JSXIdentifier JSXAttribute/JSXNameSpacedName":Pc.attributeName,"JSXBuiltin/JSXIdentifier":Pc.standard(Pc.tagName)}),a_={__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},s_={__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},l_={__proto__:null,"<":187},u_=Cb.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:Jb,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:[o_],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:[e_,n_,i_,2,3,4,5,6,7,8,9,10,11,12,13,14,t_,new db("$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 db("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:t=>a_[t]||-1},{term:338,get:t=>s_[t]||-1},{term:92,get:t=>l_[t]||-1}],tokenPrec:14749}),c_=[Om("function ${name}(${params}) {\n\t${}\n}",{label:"function",detail:"definition",type:"keyword"}),Om("for (let ${index} = 0; ${index} < ${bound}; ${index}++) {\n\t${}\n}",{label:"for",detail:"loop",type:"keyword"}),Om("for (let ${name} of ${collection}) {\n\t${}\n}",{label:"for",detail:"of loop",type:"keyword"}),Om("do {\n\t${}\n} while (${})",{label:"do",detail:"loop",type:"keyword"}),Om("while (${}) {\n\t${}\n}",{label:"while",detail:"loop",type:"keyword"}),Om("try {\n\t${}\n} catch (${error}) {\n\t${}\n}",{label:"try",detail:"/ catch block",type:"keyword"}),Om("if (${}) {\n\t${}\n}",{label:"if",detail:"block",type:"keyword"}),Om("if (${}) {\n\t${}\n} else {\n\t${}\n}",{label:"if",detail:"/ else block",type:"keyword"}),Om("class ${name} {\n\tconstructor(${params}) {\n\t\t${}\n\t}\n}",{label:"class",detail:"definition",type:"keyword"}),Om('import {${names}} from "${module}"\n${}',{label:"import",detail:"named",type:"keyword"}),Om('import ${name} from "${module}"\n${}',{label:"import",detail:"default",type:"keyword"})],h_=c_.concat([Om("interface ${name} {\n\t${}\n}",{label:"interface",detail:"definition",type:"keyword"}),Om("type ${name} = ${type}",{label:"type",detail:"definition",type:"keyword"}),Om("enum ${name} {\n\t${}\n}",{label:"enum",detail:"definition",type:"keyword"})]),d_=new qu,p_=new Set(["Script","Block","FunctionExpression","FunctionDeclaration","ArrowFunction","MethodDeclaration","ForStatement"]);function f_(t){return(e,n)=>{let r=e.node.getChild("VariableDefinition");return r&&n(r,t),!0}}const g_=["FunctionDeclaration"],v_={FunctionDeclaration:f_("function"),ClassDeclaration:f_("class"),ClassExpression:()=>!0,EnumDeclaration:f_("constant"),TypeAliasDeclaration:f_("type"),NamespaceDeclaration:f_("namespace"),VariableDefinition(t,e){t.matchContext(g_)||e(t,"variable")},TypeDefinition(t,e){e(t,"type")},__proto__:null};function m_(t,e){let n=d_.get(e);if(n)return n;let r=[],i=!0;function o(e,n){let i=t.sliceString(e.from,e.to);r.push({label:i,type:n})}return e.cursor(Pu.IncludeAnonymous).iterate((e=>{if(i)i=!1;else if(e.name){let t=v_[e.name];if(t&&t(e,o)||p_.has(e.name))return!1}else if(e.to-e.from>8192){for(let n of m_(t,e.node))r.push(n);return!1}})),d_.set(e,r),r}const y_=/^[\w$\xa1-\uffff][\w$\d\xa1-\uffff]*$/,b_=["TemplateString","String","RegExp","LineComment","BlockComment","VariableDefinition","TypeDefinition","Label","PropertyDefinition","PropertyName","PrivatePropertyDefinition","PrivatePropertyName",".","?."];function __(t){let e=zc(t.state).resolveInner(t.pos,-1);if(b_.indexOf(e.name)>-1)return null;let n="VariableName"==e.name||e.to-e.from<20&&y_.test(t.state.sliceDoc(e.from,e.to));if(!n&&!t.explicit)return null;let r=[];for(let i=e;i;i=i.parent)p_.has(i.name)&&(r=r.concat(m_(t.state.doc,i)));return{options:r,from:n?e.from:t.pos,validFor:y_}}const x_=Nc.define({name:"javascript",parser:u_.configure({props:[eh.add({IfStatement:ph({except:/^\s*({|else\b)/}),TryStatement:ph({except:/^\s*({|catch\b|finally\b)/}),LabeledStatement:dh,SwitchBody:t=>{let e=t.textAfter,n=/^\s*\}/.test(e),r=/^\s*(case|default)\b/.test(e);return t.baseIndent+(n?0:r?1:2)*t.unit},Block:ch({closing:"}"}),ArrowFunction:t=>t.baseIndent+t.unit,"TemplateString BlockComment":()=>null,"Statement Property":ph({except:/^{/}),JSXElement(t){let e=/^\s*<\//.test(t.textAfter);return t.lineIndent(t.node.from)+(e?0:t.unit)},JSXEscape(t){let e=/\s*\}/.test(t.textAfter);return t.lineIndent(t.node.from)+(e?0:t.unit)},"JSXOpenTag JSXSelfClosingTag"(t){return t.column(t.node.from)+t.unit}}),mh.add({"Block ClassBody SwitchBody EnumBody ObjectExpression ArrayExpression ObjectType":yh,BlockComment(t){return{from:t.from+2,to:t.to-2}}})]}),languageData:{closeBrackets:{brackets:["(","[","{","'",'"',"`"]},commentTokens:{line:"//",block:{open:"/*",close:"*/"}},indentOnInput:/^\s*(?:case |default:|\{|\}|<\/)$/,wordChars:"$"}}),w_={test:t=>/^JSX/.test(t.name),facet:Ec({commentTokens:{block:{open:"{/*",close:"*/}"}}})},O_=x_.configure({dialect:"ts"},"typescript"),S_=x_.configure({dialect:"jsx",props:[Rc.add((t=>t.isTop?[w_]:void 0))]}),A_=x_.configure({dialect:"jsx ts",props:[Rc.add((t=>t.isTop?[w_]:void 0))]},"typescript");let k_=t=>({label:t,type:"keyword"});const C_="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(k_),M_=C_.concat(["declare","implements","private","protected","public"].map(k_));function T_(t={}){let e=t.jsx?t.typescript?A_:S_:t.typescript?O_:x_,n=t.typescript?h_.concat(M_):c_.concat(C_);return new Xc(e,[x_.data.of({autocomplete:cv(b_,uv(n))}),x_.data.of({autocomplete:__}),t.jsx?E_:[]])}function P_(t){for(;;){if("JSXOpenTag"==t.name||"JSXSelfClosingTag"==t.name||"JSXFragmentTag"==t.name)return t;if("JSXEscape"==t.name||!t.parent)return null;t=t.parent}}function I_(t,e,n=t.length){for(let r=null===e||void 0===e?void 0:e.firstChild;r;r=r.nextSibling)if("JSXIdentifier"==r.name||"JSXBuiltin"==r.name||"JSXNamespacedName"==r.name||"JSXMemberExpression"==r.name)return t.sliceString(r.from,Math.min(r.to,n));return""}const $_="object"==typeof navigator&&/Android\b/.test(navigator.userAgent),E_=cs.inputHandler.of(((t,e,n,r,i)=>{if(($_?t.composing:t.compositionStarted)||t.state.readOnly||e!=n||">"!=r&&"/"!=r||!x_.isActiveAt(t.state,e,-1))return!1;let o=i(),{state:a}=o,s=a.changeByRange((t=>{var e;let n,{head:i}=t,o=zc(a).resolveInner(i-1,-1);if("JSXStartTag"==o.name&&(o=o.parent),a.doc.sliceString(i-1,i)!=r||"JSXAttributeValue"==o.name&&o.to>i);else{if(">"==r&&"JSXFragmentTag"==o.name)return{range:t,changes:{from:i,insert:"</>"}};if("/"==r&&"JSXStartCloseTag"==o.name){let t=o.parent,r=t.parent;if(r&&t.from==i-2&&((n=I_(a.doc,r.firstChild,i))||"JSXFragmentTag"==(null===(e=r.firstChild)||void 0===e?void 0:e.name))){let t=`${n}>`;return{range:Kt.cursor(i+t.length,-1),changes:{from:i,insert:t}}}}else if(">"==r){let e=P_(o);if(e&&"JSXOpenTag"==e.name&&!/^\/?>|^<\//.test(a.doc.sliceString(i,i+2))&&(n=I_(a.doc,e,i)))return{range:t,changes:{from:i,insert:`</${n}>`}}}}return{range:t}}));return!s.changes.empty&&(t.dispatch([o,a.update(s,{userEvent:"input.complete",scrollIntoView:!0})]),!0)}));const R_=sc({String:Pc.string,Number:Pc.number,"True False":Pc.bool,PropertyName:Pc.propertyName,Null:Pc.null,",":Pc.separator,"[ ]":Pc.squareBracket,"{ }":Pc.brace}),D_=Cb.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:[R_],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 L_=Nc.define({name:"json",parser:D_.configure({props:[eh.add({Object:ph({except:/^\s*\}/}),Array:ph({except:/^\s*\]/})}),mh.add({"Object Array":yh})]}),languageData:{closeBrackets:{brackets:["[","{",'"']},indentOnInput:/^\s*[\}\]]$/}});function N_(){return new Xc(L_)}var z_=n(41647),B_=n.n(z_),F_=(0,r.pM)({__name:"Editor",props:{code:{type:String,default:""}},emits:["update:code","change"],setup(t,{emit:e}){const n=t,o=e,a=(0,i.KR)(null),s=(0,i.KR)(n.code);(0,r.wB)((()=>n.code),(t=>{s.value=B_().js(t,{indent_size:2})}),{immediate:!0});const l=t=>{try{o("update:code",t),o("change",t)}catch(e){return void console.error(e)}};return(t,e)=>((0,r.uX)(),(0,r.Wv)((0,i.R1)(Ny),{ref_key:"editorRef",ref:a,placeholder:"请输入",style:{height:"500px"},"model-value":s.value,"tab-size":2,"auto-focus":!0,"indent-with-tabs":!0,extensions:[(0,i.R1)(nb),(0,i.R1)(T_)(),(0,i.R1)(N_)()],onChange:l},null,8,["model-value","extensions"]))}});const W_=F_;var j_=W_,V_=(0,r.pM)({__name:"index",props:{title:{default:"编辑"},width:{default:800}},emits:["ok"],setup(t,{expose:e,emit:n}){const o=n,a=(0,i.KR)(!1),s=(0,i.KR)(""),l=()=>{o("ok",s.value),a.value=!1};return e({open:t=>{a.value=!0,s.value=t},close:()=>{a.value=!1}}),(t,e)=>((0,r.uX)(),(0,r.Wv)((0,i.R1)(mt),{open:a.value,"onUpdate:open":e[1]||(e[1]=t=>a.value=t),title:t.title,width:t.width,onOk:l},{default:(0,r.k6)((()=>[(0,r.bF)(j_,{code:s.value,"onUpdate:code":e[0]||(e[0]=t=>s.value=t)},null,8,["code"])])),_:1},8,["open","title","width"]))}});const Q_=V_;var H_=Q_;const Z_=(0,r.Lk)("span",{class:"text-gray-500"},"秒",-1);var G_=(0,r.pM)({__name:"DataConfig",props:{dataSource:{}},emits:["change"],setup(t,{emit:e}){const n=e,c=t,h=(0,i.KR)({sourceType:f.o.STATIC,data:"",url:"",method:"",params:{},headers:{},refreshTime:0,dataProcess:""}),g=t=>{h.value.refreshTime=0===t||t>=60?t:60};let v;const m=(0,i.KR)(null),y=t=>{v=t,m.value?.open(JSON.stringify(h.value[t]))},b=t=>{h.value[v]=JSON.parse(t)};return(0,r.wB)((()=>c.dataSource),(t=>{Object.assign(h.value,t||{})}),{immediate:!0}),(0,r.wB)((()=>h.value),(t=>{n("change",t)}),{deep:!0}),(t,e)=>((0,r.uX)(),(0,r.CE)(r.FK,null,[(0,r.bF)((0,i.R1)(o.Ay),{size:"small",layout:"horizontal",model:h.value,"label-col":{span:8},"wrapper-col":{span:16}},{default:(0,r.k6)((()=>[(0,r.bF)((0,i.R1)(o.Ay).Item,{label:"类型",name:"sourceType"},{default:(0,r.k6)((()=>[(0,r.bF)((0,i.R1)(a.Ay),{value:h.value.sourceType,"onUpdate:value":e[0]||(e[0]=t=>h.value.sourceType=t)},{default:(0,r.k6)((()=>[(0,r.bF)((0,i.R1)(a.OQ),{value:(0,i.R1)(f.o).STATIC},{default:(0,r.k6)((()=>[(0,r.eW)("静态数据")])),_:1},8,["value"]),(0,r.bF)((0,i.R1)(a.OQ),{value:(0,i.R1)(f.o).API},{default:(0,r.k6)((()=>[(0,r.eW)("动态数据")])),_:1},8,["value"])])),_:1},8,["value"])])),_:1}),h.value.sourceType===(0,i.R1)(f.o).STATIC?((0,r.uX)(),(0,r.Wv)((0,i.R1)(o.Ay).Item,{key:0,label:"数据",name:"data"},{default:(0,r.k6)((()=>[(0,r.bF)((0,i.R1)(s.A),{type:"default",size:"small",onClick:e[1]||(e[1]=t=>y("data"))},{default:(0,r.k6)((()=>[(0,r.eW)("编辑")])),_:1})])),_:1})):h.value.sourceType===(0,i.R1)(f.o).API?((0,r.uX)(),(0,r.CE)(r.FK,{key:1},[(0,r.bF)((0,i.R1)(o.Ay).Item,{label:"接口地址",name:"url"},{default:(0,r.k6)((()=>[(0,r.bF)((0,i.R1)(l.Ay).TextArea,{"auto-size":{minRows:5},placeholder:"请输入接口地址",value:h.value.url,"onUpdate:value":e[2]||(e[2]=t=>h.value.url=t)},null,8,["value"])])),_:1}),(0,r.bF)((0,i.R1)(o.Ay).Item,{label:"请求方式",name:"method"},{default:(0,r.k6)((()=>[(0,r.bF)((0,i.R1)(u.A),{value:h.value.method,"onUpdate:value":e[3]||(e[3]=t=>h.value.method=t)},{default:(0,r.k6)((()=>[(0,r.bF)((0,i.R1)(d),{value:"GET"},{default:(0,r.k6)((()=>[(0,r.eW)("GET")])),_:1}),(0,r.bF)((0,i.R1)(d),{value:"POST"},{default:(0,r.k6)((()=>[(0,r.eW)("POST")])),_:1})])),_:1},8,["value"])])),_:1}),(0,r.bF)((0,i.R1)(o.Ay).Item,{label:"刷新时间",name:"refreshTime"},{default:(0,r.k6)((()=>[(0,r.bF)((0,i.R1)(p.A),{value:h.value.refreshTime,"onUpdate:value":e[4]||(e[4]=t=>h.value.refreshTime=t),step:1,style:{width:"100%"},onChange:g},{addonAfter:(0,r.k6)((()=>[Z_])),_:1},8,["value"])])),_:1}),(0,r.bF)((0,i.R1)(o.Ay).Item,{label:"请求参数",name:"params"},{default:(0,r.k6)((()=>[(0,r.bF)((0,i.R1)(s.A),{type:"default",size:"small",onClick:e[5]||(e[5]=t=>y("params"))},{default:(0,r.k6)((()=>[(0,r.eW)("编辑")])),_:1})])),_:1}),(0,r.bF)((0,i.R1)(o.Ay).Item,{label:"请求头",name:"headers"},{default:(0,r.k6)((()=>[(0,r.bF)((0,i.R1)(s.A),{type:"default",size:"small",onClick:e[6]||(e[6]=t=>y("headers"))},{default:(0,r.k6)((()=>[(0,r.eW)("编辑")])),_:1})])),_:1}),(0,r.bF)((0,i.R1)(o.Ay).Item,{label:"数据处理",name:"dataProcess"},{default:(0,r.k6)((()=>[(0,r.bF)((0,i.R1)(s.A),{type:"default",size:"small",onClick:e[7]||(e[7]=t=>y("dataProcess"))},{default:(0,r.k6)((()=>[(0,r.eW)("编辑")])),_:1})])),_:1})],64)):(0,r.Q3)("",!0)])),_:1},8,["model"]),(0,r.bF)((0,i.R1)(H_),{ref_key:"codeEditorRef",ref:m,title:"编辑数据",onOk:b},null,512)],64))}});const X_=G_;var U_=X_},10419:function(t,e,n){"use strict";var r=n(26822),i=n(57716),o=TypeError;t.exports=function(t){if(r(t))return t;throw new o(i(t)+" is not a function")}},92679:function(t,e,n){"use strict";var r=n(58905),i=String,o=TypeError;t.exports=function(t){if(r(t))return t;throw new o("Can't set "+i(t)+" as a prototype")}},55707:function(t,e,n){"use strict";var r=n(99517).has;t.exports=function(t){return r(t),t}},9792:function(t,e,n){"use strict";var r=n(27948),i=TypeError;t.exports=function(t,e){if(r(e,t))return t;throw new i("Incorrect invocation")}},25852:function(t,e,n){"use strict";var r=n(23489),i=String,o=TypeError;t.exports=function(t){if(r(t))return t;throw new o(i(t)+" is not an object")}},31294:function(t){"use strict";t.exports="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView},17359:function(t,e,n){"use strict";var r=n(48259),i=n(53515),o=TypeError;t.exports=r(ArrayBuffer.prototype,"byteLength","get")||function(t){if("ArrayBuffer"!==i(t))throw new o("ArrayBuffer expected");return t.byteLength}},57927:function(t,e,n){"use strict";var r=n(71671),i=n(17359),o=r(ArrayBuffer.prototype.slice);t.exports=function(t){if(0!==i(t))return!1;try{return o(t,0,0),!1}catch(e){return!0}}},70759:function(t,e,n){"use strict";var r=n(82750),i=n(71671),o=n(48259),a=n(74853),s=n(57927),l=n(17359),u=n(46604),c=n(13353),h=r.structuredClone,d=r.ArrayBuffer,p=r.DataView,f=r.TypeError,g=Math.min,v=d.prototype,m=p.prototype,y=i(v.slice),b=o(v,"resizable","get"),_=o(v,"maxByteLength","get"),x=i(m.getInt8),w=i(m.setInt8);t.exports=(c||u)&&function(t,e,n){var r,i=l(t),o=void 0===e?i:a(e),v=!b||!b(t);if(s(t))throw new f("ArrayBuffer is detached");if(c&&(t=h(t,{transfer:[t]}),i===o&&(n||v)))return t;if(i>=o&&(!n||v))r=y(t,0,o);else{var m=n&&!v&&_?{maxByteLength:_(t)}:void 0;r=new d(o,m);for(var O=new p(t),S=new p(r),A=g(o,i),k=0;k<A;k++)w(S,k,x(O,k))}return c||u(t),r}},58501:function(t,e,n){"use strict";var r,i,o,a=n(31294),s=n(72667),l=n(82750),u=n(26822),c=n(23489),h=n(26072),d=n(52152),p=n(57716),f=n(32398),g=n(50579),v=n(7263),m=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"),R=x("TYPED_ARRAY_TAG"),D="TypedArrayConstructor",L=a&&!!b&&"Opera"!==d(l.opera),N=!1,z={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},B={BigInt64Array:8,BigUint64Array:8},F=function(t){if(!c(t))return!1;var e=d(t);return"DataView"===e||h(z,e)||h(B,e)},W=function(t){var e=y(t);if(c(e)){var n=S(e);return n&&h(n,D)?n[D]:W(e)}},j=function(t){if(!c(t))return!1;var e=d(t);return h(z,e)||h(B,e)},V=function(t){if(j(t))return t;throw new $("Target is not a typed array")},Q=function(t){if(u(t)&&(!b||m(T,t)))return t;throw new $(p(t)+" is not a typed array constructor")},H=function(t,e,n,r){if(s){if(n)for(var i in z){var o=l[i];if(o&&h(o.prototype,t))try{delete o.prototype[t]}catch(a){try{o.prototype[t]=e}catch(u){}}}P[t]&&!n||g(P,t,n?e:L&&k[t]||e,r)}},Z=function(t,e,n){var r,i;if(s){if(b){if(n)for(r in z)if(i=l[r],i&&h(i,t))try{delete i[t]}catch(o){}if(T[t]&&!n)return;try{return g(T,t,n?e:L&&T[t]||e)}catch(o){}}for(r in z)i=l[r],!i||i[t]&&!n||g(i,t,e)}};for(r in z)i=l[r],o=i&&i.prototype,o?O(o)[D]=i:L=!1;for(r in B)i=l[r],o=i&&i.prototype,o&&(O(o)[D]=i);if((!L||!u(T)||T===Function.prototype)&&(T=function(){throw new $("Incorrect invocation")},L))for(r in z)l[r]&&b(l[r],T);if((!L||!P||P===I)&&(P=T.prototype,L))for(r in z)l[r]&&b(l[r].prototype,P);if(L&&y(M)!==P&&b(M,P),s&&!h(P,E))for(r in N=!0,v(P,E,{configurable:!0,get:function(){return c(this)?this[R]:void 0}}),z)l[r]&&f(l[r],R,r);t.exports={NATIVE_ARRAY_BUFFER_VIEWS:L,TYPED_ARRAY_TAG:N&&R,aTypedArray:V,aTypedArrayConstructor:Q,exportTypedArrayMethod:H,exportTypedArrayStaticMethod:Z,getTypedArrayConstructor:W,isView:F,isTypedArray:j,TypedArray:T,TypedArrayPrototype:P}},6529:function(t,e,n){"use strict";var r=n(52843);t.exports=function(t,e,n){var i=0,o=arguments.length>2?n:r(e),a=new t(o);while(o>i)a[i]=e[i++];return a}},62672:function(t,e,n){"use strict";var r=n(7282),i=n(43429),o=n(52843),a=function(t){return function(e,n,a){var s=r(e),l=o(s);if(0===l)return!t&&-1;var u,c=i(a,l);if(t&&n!==n){while(l>c)if(u=s[c++],u!==u)return!0}else for(;l>c;c++)if((t||c in s)&&s[c]===n)return t||c||0;return!t&&-1}};t.exports={includes:a(!0),indexOf:a(!1)}},25950:function(t,e,n){"use strict";var r=n(72667),i=n(87829),o=TypeError,a=Object.getOwnPropertyDescriptor,s=r&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(t){return t instanceof TypeError}}();t.exports=s?function(t,e){if(i(t)&&!a(t,"length").writable)throw new o("Cannot set read only .length");return t.length=e}:function(t,e){return t.length=e}},98907:function(t,e,n){"use strict";var r=n(52843);t.exports=function(t,e){for(var n=r(t),i=new e(n),o=0;o<n;o++)i[o]=t[n-o-1];return i}},52057:function(t,e,n){"use strict";var r=n(52843),i=n(83790),o=RangeError;t.exports=function(t,e,n,a){var s=r(t),l=i(n),u=l<0?s+l:l;if(u>=s||u<0)throw new o("Incorrect index");for(var c=new e(s),h=0;h<s;h++)c[h]=h===u?a:t[h];return c}},53515:function(t,e,n){"use strict";var r=n(71671),i=r({}.toString),o=r("".slice);t.exports=function(t){return o(i(t),8,-1)}},52152:function(t,e,n){"use strict";var r=n(91515),i=n(26822),o=n(53515),a=n(36772),s=a("toStringTag"),l=Object,u="Arguments"===o(function(){return arguments}()),c=function(t,e){try{return t[e]}catch(n){}};t.exports=r?o:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=c(e=l(t),s))?n:u?o(e):"Object"===(r=o(e))&&i(e.callee)?"Arguments":r}},96055:function(t,e,n){"use strict";var r=n(26072),i=n(29814),o=n(53570),a=n(21152);t.exports=function(t,e,n){for(var s=i(e),l=a.f,u=o.f,c=0;c<s.length;c++){var h=s[c];r(t,h)||n&&r(n,h)||l(t,h,u(e,h))}}},33226:function(t,e,n){"use strict";var r=n(20560);t.exports=!r((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))},32398:function(t,e,n){"use strict";var r=n(72667),i=n(21152),o=n(97477);t.exports=r?function(t,e,n){return i.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},97477:function(t){"use strict";t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},7263:function(t,e,n){"use strict";var r=n(13660),i=n(21152);t.exports=function(t,e,n){return n.get&&r(n.get,e,{getter:!0}),n.set&&r(n.set,e,{setter:!0}),i.f(t,e,n)}},50579:function(t,e,n){"use strict";var r=n(26822),i=n(21152),o=n(13660),a=n(21328);t.exports=function(t,e,n,s){s||(s={});var l=s.enumerable,u=void 0!==s.name?s.name:e;if(r(n)&&o(n,u,s),s.global)l?t[e]=n:a(e,n);else{try{s.unsafe?t[e]&&(l=!0):delete t[e]}catch(c){}l?t[e]=n:i.f(t,e,{value:n,enumerable:!1,configurable:!s.nonConfigurable,writable:!s.nonWritable})}return t}},21328:function(t,e,n){"use strict";var r=n(82750),i=Object.defineProperty;t.exports=function(t,e){try{i(r,t,{value:e,configurable:!0,writable:!0})}catch(n){r[t]=e}return e}},72667:function(t,e,n){"use strict";var r=n(20560);t.exports=!r((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},46604:function(t,e,n){"use strict";var r,i,o,a,s=n(82750),l=n(23303),u=n(13353),c=s.structuredClone,h=s.ArrayBuffer,d=s.MessageChannel,p=!1;if(u)p=function(t){c(t,{transfer:[t]})};else if(h)try{d||(r=l("worker_threads"),r&&(d=r.MessageChannel)),d&&(i=new d,o=new h(2),a=function(t){i.port1.postMessage(null,[t])},2===o.byteLength&&(a(o),0===o.byteLength&&(p=a)))}catch(f){}t.exports=p},88956:function(t,e,n){"use strict";var r=n(82750),i=n(23489),o=r.document,a=i(o)&&i(o.createElement);t.exports=function(t){return a?o.createElement(t):{}}},31756:function(t){"use strict";var e=TypeError,n=9007199254740991;t.exports=function(t){if(t>n)throw e("Maximum allowed index exceeded");return t}},8917:function(t){"use strict";t.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(t,e,n){"use strict";var r=n(17021),i=n(6265);t.exports=!r&&!i&&"object"==typeof window&&"object"==typeof document},17021:function(t){"use strict";t.exports="object"==typeof Deno&&Deno&&"object"==typeof Deno.version},6265:function(t,e,n){"use strict";var r=n(82750),i=n(53515);t.exports="process"===i(r.process)},17055:function(t){"use strict";t.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},4567:function(t,e,n){"use strict";var r,i,o=n(82750),a=n(17055),s=o.process,l=o.Deno,u=s&&s.versions||l&&l.version,c=u&&u.v8;c&&(r=c.split("."),i=r[0]>0&&r[0]<4?1:+(r[0]+r[1])),!i&&a&&(r=a.match(/Edge\/(\d+)/),(!r||r[1]>=74)&&(r=a.match(/Chrome\/(\d+)/),r&&(i=+r[1]))),t.exports=i},13108:function(t){"use strict";t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},86846:function(t,e,n){"use strict";var r=n(71671),i=Error,o=r("".replace),a=function(t){return String(new i(t).stack)}("zxcasd"),s=/\n\s*at [^:]*:[^\n]*/,l=s.test(a);t.exports=function(t,e){if(l&&"string"==typeof t&&!i.prepareStackTrace)while(e--)t=o(t,s,"");return t}},96071:function(t,e,n){"use strict";var r=n(82750),i=n(53570).f,o=n(32398),a=n(50579),s=n(21328),l=n(96055),u=n(73859);t.exports=function(t,e){var n,c,h,d,p,f,g=t.target,v=t.global,m=t.stat;if(c=v?r:m?r[g]||s(g,{}):r[g]&&r[g].prototype,c)for(h in e){if(p=e[h],t.dontCallGetSet?(f=i(c,h),d=f&&f.value):d=c[h],n=u(v?h:g+(m?".":"#")+h,t.forced),!n&&void 0!==d){if(typeof p==typeof d)continue;l(p,d)}(t.sham||d&&d.sham)&&o(p,"sham",!0),a(c,h,p,t)}}},20560:function(t){"use strict";t.exports=function(t){try{return!!t()}catch(e){return!0}}},91693:function(t,e,n){"use strict";var r=n(20560);t.exports=!r((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))},12486:function(t,e,n){"use strict";var r=n(91693),i=Function.prototype.call;t.exports=r?i.bind(i):function(){return i.apply(i,arguments)}},72565:function(t,e,n){"use strict";var r=n(72667),i=n(26072),o=Function.prototype,a=r&&Object.getOwnPropertyDescriptor,s=i(o,"name"),l=s&&"something"===function(){}.name,u=s&&(!r||r&&a(o,"name").configurable);t.exports={EXISTS:s,PROPER:l,CONFIGURABLE:u}},48259:function(t,e,n){"use strict";var r=n(71671),i=n(10419);t.exports=function(t,e,n){try{return r(i(Object.getOwnPropertyDescriptor(t,e)[n]))}catch(o){}}},71671:function(t,e,n){"use strict";var r=n(91693),i=Function.prototype,o=i.call,a=r&&i.bind.bind(o,o);t.exports=r?a:function(t){return function(){return o.apply(t,arguments)}}},67522:function(t,e,n){"use strict";var r=n(82750),i=n(26822),o=function(t){return i(t)?t:void 0};t.exports=function(t,e){return arguments.length<2?o(r[t]):r[t]&&r[t][e]}},67512:function(t){"use strict";t.exports=function(t){return{iterator:t,next:t.next,done:!1}}},17147:function(t,e,n){"use strict";var r=n(10419),i=n(10636);t.exports=function(t,e){var n=t[e];return i(n)?void 0:r(n)}},31864:function(t,e,n){"use strict";var r=n(10419),i=n(25852),o=n(12486),a=n(83790),s=n(67512),l="Invalid size",u=RangeError,c=TypeError,h=Math.max,d=function(t,e){this.set=t,this.size=h(e,0),this.has=r(t.has),this.keys=r(t.keys)};d.prototype={getIterator:function(){return s(i(o(this.keys,this.set)))},includes:function(t){return o(this.has,this.set,t)}},t.exports=function(t){i(t);var e=+t.size;if(e!==e)throw new c(l);var n=a(e);if(n<0)throw new u(l);return new d(t,n)}},82750:function(t,e,n){"use strict";var r=function(t){return t&&t.Math===Math&&t};t.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(t,e,n){"use strict";var r=n(71671),i=n(60310),o=r({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return o(i(t),e)}},38646:function(t){"use strict";t.exports={}},4468:function(t,e,n){"use strict";var r=n(72667),i=n(20560),o=n(88956);t.exports=!r&&!i((function(){return 7!==Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},81286:function(t,e,n){"use strict";var r=n(71671),i=n(20560),o=n(53515),a=Object,s=r("".split);t.exports=i((function(){return!a("z").propertyIsEnumerable(0)}))?function(t){return"String"===o(t)?s(t,""):a(t)}:a},52952:function(t,e,n){"use strict";var r=n(26822),i=n(23489),o=n(33508);t.exports=function(t,e,n){var a,s;return o&&r(a=e.constructor)&&a!==n&&i(s=a.prototype)&&s!==n.prototype&&o(t,s),t}},4459:function(t,e,n){"use strict";var r=n(71671),i=n(26822),o=n(95404),a=r(Function.toString);i(o.inspectSource)||(o.inspectSource=function(t){return a(t)}),t.exports=o.inspectSource},11528:function(t,e,n){"use strict";var r,i,o,a=n(72891),s=n(82750),l=n(23489),u=n(32398),c=n(26072),h=n(95404),d=n(98310),p=n(38646),f="Object already initialized",g=s.TypeError,v=s.WeakMap,m=function(t){return o(t)?i(t):r(t,{})},y=function(t){return function(e){var n;if(!l(e)||(n=i(e)).type!==t)throw new g("Incompatible receiver, "+t+" required");return n}};if(a||h.state){var b=h.state||(h.state=new v);b.get=b.get,b.has=b.has,b.set=b.set,r=function(t,e){if(b.has(t))throw new g(f);return e.facade=t,b.set(t,e),e},i=function(t){return b.get(t)||{}},o=function(t){return b.has(t)}}else{var _=d("state");p[_]=!0,r=function(t,e){if(c(t,_))throw new g(f);return e.facade=t,u(t,_,e),e},i=function(t){return c(t,_)?t[_]:{}},o=function(t){return c(t,_)}}t.exports={set:r,get:i,has:o,enforce:m,getterFor:y}},87829:function(t,e,n){"use strict";var r=n(53515);t.exports=Array.isArray||function(t){return"Array"===r(t)}},10442:function(t,e,n){"use strict";var r=n(52152);t.exports=function(t){var e=r(t);return"BigInt64Array"===e||"BigUint64Array"===e}},26822:function(t){"use strict";var e="object"==typeof document&&document.all;t.exports="undefined"==typeof e&&void 0!==e?function(t){return"function"==typeof t||t===e}:function(t){return"function"==typeof t}},73859:function(t,e,n){"use strict";var r=n(20560),i=n(26822),o=/#|\.prototype\./,a=function(t,e){var n=l[s(t)];return n===c||n!==u&&(i(e)?r(e):!!e)},s=a.normalize=function(t){return String(t).replace(o,".").toLowerCase()},l=a.data={},u=a.NATIVE="N",c=a.POLYFILL="P";t.exports=a},10636:function(t){"use strict";t.exports=function(t){return null===t||void 0===t}},23489:function(t,e,n){"use strict";var r=n(26822);t.exports=function(t){return"object"==typeof t?null!==t:r(t)}},58905:function(t,e,n){"use strict";var r=n(23489);t.exports=function(t){return r(t)||null===t}},252:function(t){"use strict";t.exports=!1},57646:function(t,e,n){"use strict";var r=n(67522),i=n(26822),o=n(27948),a=n(6043),s=Object;t.exports=a?function(t){return"symbol"==typeof t}:function(t){var e=r("Symbol");return i(e)&&o(e.prototype,s(t))}},1274:function(t,e,n){"use strict";var r=n(12486);t.exports=function(t,e,n){var i,o,a=n?t:t.iterator,s=t.next;while(!(i=r(s,a)).done)if(o=e(i.value),void 0!==o)return o}},87766:function(t,e,n){"use strict";var r=n(12486),i=n(25852),o=n(17147);t.exports=function(t,e,n){var a,s;i(t);try{if(a=o(t,"return"),!a){if("throw"===e)throw n;return n}a=r(a,t)}catch(l){s=!0,a=l}if("throw"===e)throw n;if(s)throw a;return i(a),n}},52843:function(t,e,n){"use strict";var r=n(87157);t.exports=function(t){return r(t.length)}},13660:function(t,e,n){"use strict";var r=n(71671),i=n(20560),o=n(26822),a=n(26072),s=n(72667),l=n(72565).CONFIGURABLE,u=n(4459),c=n(11528),h=c.enforce,d=c.get,p=String,f=Object.defineProperty,g=r("".slice),v=r("".replace),m=r([].join),y=s&&!i((function(){return 8!==f((function(){}),"length",{value:8}).length})),b=String(String).split("String"),_=t.exports=function(t,e,n){"Symbol("===g(p(e),0,7)&&(e="["+v(p(e),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),n&&n.getter&&(e="get "+e),n&&n.setter&&(e="set "+e),(!a(t,"name")||l&&t.name!==e)&&(s?f(t,"name",{value:e,configurable:!0}):t.name=e),y&&n&&a(n,"arity")&&t.length!==n.arity&&f(t,"length",{value:n.arity});try{n&&a(n,"constructor")&&n.constructor?s&&f(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(i){}var r=h(t);return a(r,"source")||(r.source=m(b,"string"==typeof e?e:"")),t};Function.prototype.toString=_((function(){return o(this)&&d(this).source||u(this)}),"toString")},10868:function(t){"use strict";var e=Math.ceil,n=Math.floor;t.exports=Math.trunc||function(t){var r=+t;return(r>0?n:e)(r)}},90036:function(t,e,n){"use strict";var r=n(52148);t.exports=function(t,e){return void 0===t?arguments.length<2?"":e:r(t)}},21152:function(t,e,n){"use strict";var r=n(72667),i=n(4468),o=n(43145),a=n(25852),s=n(59242),l=TypeError,u=Object.defineProperty,c=Object.getOwnPropertyDescriptor,h="enumerable",d="configurable",p="writable";e.f=r?o?function(t,e,n){if(a(t),e=s(e),a(n),"function"===typeof t&&"prototype"===e&&"value"in n&&p in n&&!n[p]){var r=c(t,e);r&&r[p]&&(t[e]=n.value,n={configurable:d in n?n[d]:r[d],enumerable:h in n?n[h]:r[h],writable:!1})}return u(t,e,n)}:u:function(t,e,n){if(a(t),e=s(e),a(n),i)try{return u(t,e,n)}catch(r){}if("get"in n||"set"in n)throw new l("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},53570:function(t,e,n){"use strict";var r=n(72667),i=n(12486),o=n(28658),a=n(97477),s=n(7282),l=n(59242),u=n(26072),c=n(4468),h=Object.getOwnPropertyDescriptor;e.f=r?h:function(t,e){if(t=s(t),e=l(e),c)try{return h(t,e)}catch(n){}if(u(t,e))return a(!i(o.f,t,e),t[e])}},65719:function(t,e,n){"use strict";var r=n(27401),i=n(13108),o=i.concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},63694:function(t,e){"use strict";e.f=Object.getOwnPropertySymbols},2232:function(t,e,n){"use strict";var r=n(26072),i=n(26822),o=n(60310),a=n(98310),s=n(33226),l=a("IE_PROTO"),u=Object,c=u.prototype;t.exports=s?u.getPrototypeOf:function(t){var e=o(t);if(r(e,l))return e[l];var n=e.constructor;return i(n)&&e instanceof n?n.prototype:e instanceof u?c:null}},27948:function(t,e,n){"use strict";var r=n(71671);t.exports=r({}.isPrototypeOf)},27401:function(t,e,n){"use strict";var r=n(71671),i=n(26072),o=n(7282),a=n(62672).indexOf,s=n(38646),l=r([].push);t.exports=function(t,e){var n,r=o(t),u=0,c=[];for(n in r)!i(s,n)&&i(r,n)&&l(c,n);while(e.length>u)i(r,n=e[u++])&&(~a(c,n)||l(c,n));return c}},28658:function(t,e){"use strict";var n={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,i=r&&!n.call({1:2},1);e.f=i?function(t){var e=r(this,t);return!!e&&e.enumerable}:n},33508:function(t,e,n){"use strict";var r=n(48259),i=n(23489),o=n(68939),a=n(92679);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{t=r(Object.prototype,"__proto__","set"),t(n,[]),e=n instanceof Array}catch(s){}return function(n,r){return o(n),a(r),i(n)?(e?t(n,r):n.__proto__=r,n):n}}():void 0)},64481:function(t,e,n){"use strict";var r=n(12486),i=n(26822),o=n(23489),a=TypeError;t.exports=function(t,e){var n,s;if("string"===e&&i(n=t.toString)&&!o(s=r(n,t)))return s;if(i(n=t.valueOf)&&!o(s=r(n,t)))return s;if("string"!==e&&i(n=t.toString)&&!o(s=r(n,t)))return s;throw new a("Can't convert object to primitive value")}},29814:function(t,e,n){"use strict";var r=n(67522),i=n(71671),o=n(65719),a=n(63694),s=n(25852),l=i([].concat);t.exports=r("Reflect","ownKeys")||function(t){var e=o.f(s(t)),n=a.f;return n?l(e,n(t)):e}},85578:function(t,e,n){"use strict";var r=n(25852);t.exports=function(){var t=r(this),e="";return t.hasIndices&&(e+="d"),t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.unicodeSets&&(e+="v"),t.sticky&&(e+="y"),e}},68939:function(t,e,n){"use strict";var r=n(10636),i=TypeError;t.exports=function(t){if(r(t))throw new i("Can't call method on "+t);return t}},43181:function(t,e,n){"use strict";var r=n(99517),i=n(37726),o=r.Set,a=r.add;t.exports=function(t){var e=new o;return i(t,(function(t){a(e,t)})),e}},62557:function(t,e,n){"use strict";var r=n(55707),i=n(99517),o=n(43181),a=n(61739),s=n(31864),l=n(37726),u=n(1274),c=i.has,h=i.remove;t.exports=function(t){var e=r(this),n=s(t),i=o(e);return a(e)<=n.size?l(e,(function(t){n.includes(t)&&h(i,t)})):u(n.getIterator(),(function(t){c(e,t)&&h(i,t)})),i}},99517:function(t,e,n){"use strict";var r=n(71671),i=Set.prototype;t.exports={Set:Set,add:r(i.add),has:r(i.has),remove:r(i["delete"]),proto:i}},111:function(t,e,n){"use strict";var r=n(55707),i=n(99517),o=n(61739),a=n(31864),s=n(37726),l=n(1274),u=i.Set,c=i.add,h=i.has;t.exports=function(t){var e=r(this),n=a(t),i=new u;return o(e)>n.size?l(n.getIterator(),(function(t){h(e,t)&&c(i,t)})):s(e,(function(t){n.includes(t)&&c(i,t)})),i}},5568:function(t,e,n){"use strict";var r=n(55707),i=n(99517).has,o=n(61739),a=n(31864),s=n(37726),l=n(1274),u=n(87766);t.exports=function(t){var e=r(this),n=a(t);if(o(e)<=n.size)return!1!==s(e,(function(t){if(n.includes(t))return!1}),!0);var c=n.getIterator();return!1!==l(c,(function(t){if(i(e,t))return u(c,"normal",!1)}))}},88671:function(t,e,n){"use strict";var r=n(55707),i=n(61739),o=n(37726),a=n(31864);t.exports=function(t){var e=r(this),n=a(t);return!(i(e)>n.size)&&!1!==o(e,(function(t){if(!n.includes(t))return!1}),!0)}},85126:function(t,e,n){"use strict";var r=n(55707),i=n(99517).has,o=n(61739),a=n(31864),s=n(1274),l=n(87766);t.exports=function(t){var e=r(this),n=a(t);if(o(e)<n.size)return!1;var u=n.getIterator();return!1!==s(u,(function(t){if(!i(e,t))return l(u,"normal",!1)}))}},37726:function(t,e,n){"use strict";var r=n(71671),i=n(1274),o=n(99517),a=o.Set,s=o.proto,l=r(s.forEach),u=r(s.keys),c=u(new a).next;t.exports=function(t,e,n){return n?i({iterator:u(t),next:c},e):l(t,e)}},26041:function(t,e,n){"use strict";var r=n(67522),i=function(t){return{size:t,has:function(){return!1},keys:function(){return{next:function(){return{done:!0}}}}}};t.exports=function(t){var e=r("Set");try{(new e)[t](i(0));try{return(new e)[t](i(-1)),!1}catch(n){return!0}}catch(o){return!1}}},61739:function(t,e,n){"use strict";var r=n(48259),i=n(99517);t.exports=r(i.proto,"size","get")||function(t){return t.size}},98855:function(t,e,n){"use strict";var r=n(55707),i=n(99517),o=n(43181),a=n(31864),s=n(1274),l=i.add,u=i.has,c=i.remove;t.exports=function(t){var e=r(this),n=a(t).getIterator(),i=o(e);return s(n,(function(t){u(e,t)?c(i,t):l(i,t)})),i}},57843:function(t,e,n){"use strict";var r=n(55707),i=n(99517).add,o=n(43181),a=n(31864),s=n(1274);t.exports=function(t){var e=r(this),n=a(t).getIterator(),l=o(e);return s(n,(function(t){i(l,t)})),l}},98310:function(t,e,n){"use strict";var r=n(31300),i=n(62599),o=r("keys");t.exports=function(t){return o[t]||(o[t]=i(t))}},95404:function(t,e,n){"use strict";var r=n(252),i=n(82750),o=n(21328),a="__core-js_shared__",s=t.exports=i[a]||o(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(t,e,n){"use strict";var r=n(95404);t.exports=function(t,e){return r[t]||(r[t]=e||{})}},13353:function(t,e,n){"use strict";var r=n(82750),i=n(20560),o=n(4567),a=n(78817),s=n(17021),l=n(6265),u=r.structuredClone;t.exports=!!u&&!i((function(){if(s&&o>92||l&&o>94||a&&o>97)return!1;var t=new ArrayBuffer(8),e=u(t,{transfer:[t]});return 0!==t.byteLength||8!==e.byteLength}))},79474:function(t,e,n){"use strict";var r=n(4567),i=n(20560),o=n(82750),a=o.String;t.exports=!!Object.getOwnPropertySymbols&&!i((function(){var t=Symbol("symbol detection");return!a(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},43429:function(t,e,n){"use strict";var r=n(83790),i=Math.max,o=Math.min;t.exports=function(t,e){var n=r(t);return n<0?i(n+e,0):o(n,e)}},29311:function(t,e,n){"use strict";var r=n(38864),i=TypeError;t.exports=function(t){var e=r(t,"number");if("number"==typeof e)throw new i("Can't convert number to bigint");return BigInt(e)}},74853:function(t,e,n){"use strict";var r=n(83790),i=n(87157),o=RangeError;t.exports=function(t){if(void 0===t)return 0;var e=r(t),n=i(e);if(e!==n)throw new o("Wrong length or index");return n}},7282:function(t,e,n){"use strict";var r=n(81286),i=n(68939);t.exports=function(t){return r(i(t))}},83790:function(t,e,n){"use strict";var r=n(10868);t.exports=function(t){var e=+t;return e!==e||0===e?0:r(e)}},87157:function(t,e,n){"use strict";var r=n(83790),i=Math.min;t.exports=function(t){var e=r(t);return e>0?i(e,9007199254740991):0}},60310:function(t,e,n){"use strict";var r=n(68939),i=Object;t.exports=function(t){return i(r(t))}},38864:function(t,e,n){"use strict";var r=n(12486),i=n(23489),o=n(57646),a=n(17147),s=n(64481),l=n(36772),u=TypeError,c=l("toPrimitive");t.exports=function(t,e){if(!i(t)||o(t))return t;var n,l=a(t,c);if(l){if(void 0===e&&(e="default"),n=r(l,t,e),!i(n)||o(n))return n;throw new u("Can't convert object to primitive value")}return void 0===e&&(e="number"),s(t,e)}},59242:function(t,e,n){"use strict";var r=n(38864),i=n(57646);t.exports=function(t){var e=r(t,"string");return i(e)?e:e+""}},91515:function(t,e,n){"use strict";var r=n(36772),i=r("toStringTag"),o={};o[i]="z",t.exports="[object z]"===String(o)},52148:function(t,e,n){"use strict";var r=n(52152),i=String;t.exports=function(t){if("Symbol"===r(t))throw new TypeError("Cannot convert a Symbol value to a string");return i(t)}},23303:function(t,e,n){"use strict";var r=n(6265);t.exports=function(t){try{if(r)return Function('return require("'+t+'")')()}catch(e){}}},57716:function(t){"use strict";var e=String;t.exports=function(t){try{return e(t)}catch(n){return"Object"}}},62599:function(t,e,n){"use strict";var r=n(71671),i=0,o=Math.random(),a=r(1..toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+a(++i+o,36)}},6043:function(t,e,n){"use strict";var r=n(79474);t.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},43145:function(t,e,n){"use strict";var r=n(72667),i=n(20560);t.exports=r&&i((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},51031:function(t){"use strict";var e=TypeError;t.exports=function(t,n){if(t<n)throw new e("Not enough arguments");return t}},72891:function(t,e,n){"use strict";var r=n(82750),i=n(26822),o=r.WeakMap;t.exports=i(o)&&/native code/.test(String(o))},36772:function(t,e,n){"use strict";var r=n(82750),i=n(31300),o=n(26072),a=n(62599),s=n(79474),l=n(6043),u=r.Symbol,c=i("wks"),h=l?u["for"]||u:u&&u.withoutSetter||a;t.exports=function(t){return o(c,t)||(c[t]=s&&o(u,t)?u[t]:h("Symbol."+t)),c[t]}},57836:function(t,e,n){"use strict";var r=n(72667),i=n(7263),o=n(57927),a=ArrayBuffer.prototype;r&&!("detached"in a)&&i(a,"detached",{configurable:!0,get:function(){return o(this)}})},34381:function(t,e,n){"use strict";var r=n(96071),i=n(70759);i&&r({target:"ArrayBuffer",proto:!0},{transferToFixedLength:function(){return i(this,arguments.length?arguments[0]:void 0,!1)}})},39109:function(t,e,n){"use strict";var r=n(96071),i=n(70759);i&&r({target:"ArrayBuffer",proto:!0},{transfer:function(){return i(this,arguments.length?arguments[0]:void 0,!0)}})},30381:function(t,e,n){"use strict";var r=n(96071),i=n(60310),o=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(t){return t instanceof TypeError}},h=u||!c();r({target:"Array",proto:!0,arity:1,forced:h},{push:function(t){var e=i(this),n=o(e),r=arguments.length;s(n+r);for(var l=0;l<r;l++)e[n]=arguments[l],n++;return a(e,n),n}})},82432:function(t,e,n){"use strict";var r=n(82750),i=n(72667),o=n(7263),a=n(85578),s=n(20560),l=r.RegExp,u=l.prototype,c=i&&s((function(){var t=!0;try{l(".","d")}catch(c){t=!1}var e={},n="",r=t?"dgimsy":"gimsy",i=function(t,r){Object.defineProperty(e,t,{get:function(){return n+=r,!0}})},o={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(var a in t&&(o.hasIndices="d"),o)i(a,o[a]);var s=Object.getOwnPropertyDescriptor(u,"flags").get.call(e);return s!==r||n!==r}));c&&o(u,"flags",{configurable:!0,get:a})},32651:function(t,e,n){"use strict";var r=n(96071),i=n(62557),o=n(26041);r({target:"Set",proto:!0,real:!0,forced:!o("difference")},{difference:i})},21701:function(t,e,n){"use strict";var r=n(96071),i=n(20560),o=n(111),a=n(26041),s=!a("intersection")||i((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:o})},33840:function(t,e,n){"use strict";var r=n(96071),i=n(5568),o=n(26041);r({target:"Set",proto:!0,real:!0,forced:!o("isDisjointFrom")},{isDisjointFrom:i})},53797:function(t,e,n){"use strict";var r=n(96071),i=n(88671),o=n(26041);r({target:"Set",proto:!0,real:!0,forced:!o("isSubsetOf")},{isSubsetOf:i})},42662:function(t,e,n){"use strict";var r=n(96071),i=n(85126),o=n(26041);r({target:"Set",proto:!0,real:!0,forced:!o("isSupersetOf")},{isSupersetOf:i})},45277:function(t,e,n){"use strict";var r=n(96071),i=n(98855),o=n(26041);r({target:"Set",proto:!0,real:!0,forced:!o("symmetricDifference")},{symmetricDifference:i})},35313:function(t,e,n){"use strict";var r=n(96071),i=n(57843),o=n(26041);r({target:"Set",proto:!0,real:!0,forced:!o("union")},{union:i})},9878:function(t,e,n){"use strict";var r=n(98907),i=n(58501),o=i.aTypedArray,a=i.exportTypedArrayMethod,s=i.getTypedArrayConstructor;a("toReversed",(function(){return r(o(this),s(this))}))},46801:function(t,e,n){"use strict";var r=n(58501),i=n(71671),o=n(10419),a=n(6529),s=r.aTypedArray,l=r.getTypedArrayConstructor,u=r.exportTypedArrayMethod,c=i(r.TypedArrayPrototype.sort);u("toSorted",(function(t){void 0!==t&&o(t);var e=s(this),n=a(l(e),e);return c(n,t)}))},66462:function(t,e,n){"use strict";var r=n(52057),i=n(58501),o=n(10442),a=n(83790),s=n(29311),l=i.aTypedArray,u=i.getTypedArrayConstructor,c=i.exportTypedArrayMethod,h=!!function(){try{new Int8Array(1)["with"](2,{valueOf:function(){throw 8}})}catch(t){return 8===t}}();c("with",{with:function(t,e){var n=l(this),i=a(t),c=o(n)?s(e):+e;return r(n,u(n),i,c)}}["with"],!h)},85194:function(t,e,n){"use strict";n(32651)},27092:function(t,e,n){"use strict";n(21701)},68925:function(t,e,n){"use strict";n(33840)},31796:function(t,e,n){"use strict";n(53797)},21467:function(t,e,n){"use strict";n(42662)},22064:function(t,e,n){"use strict";n(45277)},92114:function(t,e,n){"use strict";n(35313)},28360:function(t,e,n){"use strict";var r=n(96071),i=n(82750),o=n(67522),a=n(97477),s=n(21152).f,l=n(26072),u=n(9792),c=n(52952),h=n(90036),d=n(8917),p=n(86846),f=n(72667),g=n(252),v="DOMException",m=o("Error"),y=o(v),b=function(){u(this,_);var t=arguments.length,e=h(t<1?void 0:arguments[0]),n=h(t<2?void 0:arguments[1],"Error"),r=new y(e,n),i=new m(e);return i.name=v,s(r,"stack",a(1,p(i.stack,1))),c(r,this,b),r},_=b.prototype=y.prototype,x="stack"in new m(v),w="stack"in new y(1,2),O=y&&f&&Object.getOwnPropertyDescriptor(i,v),S=!!O&&!(O.writable&&O.configurable),A=x&&!S&&!w;r({global:!0,constructor:!0,forced:g||A},{DOMException:A?b:y});var k=o(v),C=k.prototype;if(C.constructor!==k)for(var M in g||s(C,"constructor",a(1,k)),d)if(l(d,M)){var T=d[M],P=T.s;l(k,P)||s(k,P,a(6,T.c))}},60726:function(t,e,n){"use strict";var r=n(50579),i=n(71671),o=n(52148),a=n(51031),s=URLSearchParams,l=s.prototype,u=i(l.append),c=i(l["delete"]),h=i(l.forEach),d=i([].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(t){var e=arguments.length,n=e<2?void 0:arguments[1];if(e&&void 0===n)return c(this,t);var r=[];h(this,(function(t,e){d(r,{key:e,value:t})})),a(e,1);var i,s=o(t),l=o(n),p=0,f=0,g=!1,v=r.length;while(p<v)i=r[p++],g||i.key===s?(g=!0,c(this,i.key)):f++;while(f<v)i=r[f++],i.key===s&&i.value===l||u(this,i.key,i.value)}),{enumerable:!0,unsafe:!0})},82765:function(t,e,n){"use strict";var r=n(50579),i=n(71671),o=n(52148),a=n(51031),s=URLSearchParams,l=s.prototype,u=i(l.getAll),c=i(l.has),h=new s("a=1");!h.has("a",2)&&h.has("a",void 0)||r(l,"has",(function(t){var e=arguments.length,n=e<2?void 0:arguments[1];if(e&&void 0===n)return c(this,t);var r=u(this,t);a(e,1);var i=o(n),s=0;while(s<r.length)if(r[s++]===i)return!0;return!1}),{enumerable:!0,unsafe:!0})},13312:function(t,e,n){"use strict";var r=n(72667),i=n(71671),o=n(7263),a=URLSearchParams.prototype,s=i(a.forEach);r&&!("size"in a)&&o(a,"size",{get:function(){var t=0;return s(this,(function(){t++})),t},configurable:!0,enumerable:!0})},98657:function(t,e,n){"use strict";function r(){return r=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)({}).hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},r.apply(null,arguments)}n.d(e,{A:function(){return r}})},69751:function(t,e,n){"use strict";n.d(e,{A:function(){return l}});n(30381);function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}function i(t,e){if("object"!=r(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=r(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}function o(t){var e=i(t,"string");return"symbol"==r(e)?e:e+""}function a(t,e,n){return(e=o(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function s(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function l(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?s(Object(n),!0).forEach((function(e){a(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}},91291:function(t,e,n){"use strict";function r(){this.__data__=[],this.size=0}n.d(e,{A:function(){return b}});var i=r,o=n(55453);function a(t,e){var n=t.length;while(n--)if((0,o.A)(t[n][0],e))return n;return-1}var s=a,l=Array.prototype,u=l.splice;function c(t){var e=this.__data__,n=s(e,t);if(n<0)return!1;var r=e.length-1;return n==r?e.pop():u.call(e,n,1),--this.size,!0}var h=c;function d(t){var e=this.__data__,n=s(e,t);return n<0?void 0:e[n][1]}var p=d;function f(t){return s(this.__data__,t)>-1}var g=f;n(30381);function v(t,e){var n=this.__data__,r=s(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this}var m=v;function y(t){var e=-1,n=null==t?0:t.length;this.clear();while(++e<n){var r=t[e];this.set(r[0],r[1])}}y.prototype.clear=i,y.prototype["delete"]=h,y.prototype.get=p,y.prototype.has=g,y.prototype.set=m;var b=y},24522:function(t,e,n){"use strict";var r=n(3149),i=n(93966),o=(0,r.A)(i.A,"Map");e.A=o},94475:function(t,e,n){"use strict";n.d(e,{A:function(){return W}});var r=n(3149),i=(0,r.A)(Object,"create"),o=i;function a(){this.__data__=o?o(null):{},this.size=0}var s=a;function l(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}var u=l,c="__lodash_hash_undefined__",h=Object.prototype,d=h.hasOwnProperty;function p(t){var e=this.__data__;if(o){var n=e[t];return n===c?void 0:n}return d.call(e,t)?e[t]:void 0}var f=p,g=Object.prototype,v=g.hasOwnProperty;function m(t){var e=this.__data__;return o?void 0!==e[t]:v.call(e,t)}var y=m,b="__lodash_hash_undefined__";function _(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=o&&void 0===e?b:e,this}var x=_;function w(t){var e=-1,n=null==t?0:t.length;this.clear();while(++e<n){var r=t[e];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(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}var T=M;function P(t,e){var n=t.__data__;return T(e)?n["string"==typeof e?"string":"hash"]:n.map}var I=P;function $(t){var e=I(this,t)["delete"](t);return this.size-=e?1:0,e}var E=$;function R(t){return I(this,t).get(t)}var D=R;function L(t){return I(this,t).has(t)}var N=L;function z(t,e){var n=I(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this}var B=z;function F(t){var e=-1,n=null==t?0:t.length;this.clear();while(++e<n){var r=t[e];this.set(r[0],r[1])}}F.prototype.clear=C,F.prototype["delete"]=E,F.prototype.get=D,F.prototype.has=N,F.prototype.set=B;var W=F},27216:function(t,e,n){"use strict";var r=n(3149),i=n(93966),o=(0,r.A)(i.A,"Set");e.A=o},51845:function(t,e,n){"use strict";n.d(e,{A:function(){return c}});n(30381);var r=n(94475),i="__lodash_hash_undefined__";function o(t){return this.__data__.set(t,i),this}var a=o;function s(t){return this.__data__.has(t)}var l=s;function u(t){var e=-1,n=null==t?0:t.length;this.__data__=new r.A;while(++e<n)this.add(t[e])}u.prototype.add=u.prototype.push=a,u.prototype.has=l;var c=u},74381:function(t,e,n){"use strict";n.d(e,{A:function(){return y}});var r=n(91291);function i(){this.__data__=new r.A,this.size=0}var o=i;function a(t){var e=this.__data__,n=e["delete"](t);return this.size=e.size,n}var s=a;function l(t){return this.__data__.get(t)}var u=l;function c(t){return this.__data__.has(t)}var h=c,d=(n(30381),n(24522)),p=n(94475),f=200;function g(t,e){var n=this.__data__;if(n instanceof r.A){var i=n.__data__;if(!d.A||i.length<f-1)return i.push([t,e]),this.size=++n.size,this;n=this.__data__=new p.A(i)}return n.set(t,e),this.size=n.size,this}var v=g;function m(t){var e=this.__data__=new r.A(t);this.size=e.size}m.prototype.clear=o,m.prototype["delete"]=s,m.prototype.get=u,m.prototype.has=h,m.prototype.set=v;var y=m},4770:function(t,e,n){"use strict";var r=n(93966),i=r.A.Symbol;e.A=i},85559:function(t,e,n){"use strict";var r=n(93966),i=r.A.Uint8Array;e.A=i},3960:function(t,e,n){"use strict";n.d(e,{A:function(){return h}});var r=n(44690);function i(t){return t!==t}var o=i;function a(t,e,n){var r=n-1,i=t.length;while(++r<i)if(t[r]===e)return r;return-1}var s=a;function l(t,e,n){return e===e?s(t,e,n):(0,r.A)(t,o,n)}var u=l;function c(t,e){var n=null==t?0:t.length;return!!n&&u(t,e,0)>-1}var h=c},31044:function(t,e){"use strict";function n(t,e,n){var r=-1,i=null==t?0:t.length;while(++r<i)if(n(e,t[r]))return!0;return!1}e.A=n},80238:function(t,e,n){"use strict";n.d(e,{A:function(){return p}});n(30381);function r(t,e){var n=-1,r=Array(t);while(++n<t)r[n]=e(n);return r}var i=r,o=n(12213),a=n(9670),s=n(62652),l=n(49808),u=n(45261),c=Object.prototype,h=c.hasOwnProperty;function d(t,e){var n=(0,a.A)(t),r=!n&&(0,o.A)(t),c=!n&&!r&&(0,s.A)(t),d=!n&&!r&&!c&&(0,u.A)(t),p=n||r||c||d,f=p?i(t.length,String):[],g=f.length;for(var v in t)!e&&!h.call(t,v)||p&&("length"==v||c&&("offset"==v||"parent"==v)||d&&("buffer"==v||"byteLength"==v||"byteOffset"==v)||(0,l.A)(v,g))||f.push(v);return f}var p=d},24871:function(t,e){"use strict";function n(t,e){var n=-1,r=null==t?0:t.length,i=Array(r);while(++n<r)i[n]=e(t[n],n,t);return i}e.A=n},17865:function(t,e){"use strict";function n(t,e){var n=-1,r=e.length,i=t.length;while(++n<r)t[i+n]=e[n];return t}e.A=n},50062:function(t,e,n){"use strict";var r=n(55937),i=n(55453),o=Object.prototype,a=o.hasOwnProperty;function s(t,e,n){var o=t[e];a.call(t,e)&&(0,i.A)(o,n)&&(void 0!==n||e in t)||(0,r.A)(t,e,n)}e.A=s},55937:function(t,e,n){"use strict";var r=n(85988);function i(t,e,n){"__proto__"==e&&r.A?(0,r.A)(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}e.A=i},98586:function(t,e,n){"use strict";n.d(e,{A:function(){return xe}});var r=n(74381);function i(t,e){var n=-1,r=null==t?0:t.length;while(++n<r)if(!1===e(t[n],n,t))break;return t}var o=i,a=n(50062),s=n(34824),l=n(99915);function u(t,e){return t&&(0,s.A)(e,(0,l.A)(e),t)}var c=u,h=n(23607);function d(t,e){return t&&(0,s.A)(e,(0,h.A)(e),t)}var p=d,f=n(93966),g="object"==typeof exports&&exports&&!exports.nodeType&&exports,v=g&&"object"==typeof module&&module&&!module.nodeType&&module,m=v&&v.exports===g,y=m?f.A.Buffer:void 0,b=y?y.allocUnsafe:void 0;function _(t,e){if(e)return t.slice();var n=t.length,r=b?b(n):new t.constructor(n);return t.copy(r),r}var x=_;function w(t,e){var n=-1,r=t.length;e||(e=Array(r));while(++n<r)e[n]=t[n];return e}var O=w,S=n(37111);function A(t,e){return(0,s.A)(t,(0,S.A)(t),e)}var k=A,C=n(17592);function M(t,e){return(0,s.A)(t,(0,C.A)(t),e)}var T=M,P=n(1305),I=n(75650),$=n(93588),E=Object.prototype,R=E.hasOwnProperty;function D(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&R.call(t,"index")&&(n.index=t.index,n.input=t.input),n}var L=D,N=n(85559);function z(t){var e=new t.constructor(t.byteLength);return new N.A(e).set(new N.A(t)),e}var B=z;function F(t,e){var n=e?B(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}var W=F,j=/\w*$/;function V(t){var e=new t.constructor(t.source,j.exec(t));return e.lastIndex=t.lastIndex,e}var Q=V,H=n(4770),Z=H.A?H.A.prototype:void 0,G=Z?Z.valueOf:void 0;function X(t){return G?Object(G.call(t)):{}}var U=X;function Y(t,e){var n=e?B(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}var q=Y,K="[object Boolean]",J="[object Date]",tt="[object Map]",et="[object Number]",nt="[object RegExp]",rt="[object Set]",it="[object String]",ot="[object Symbol]",at="[object ArrayBuffer]",st="[object DataView]",lt="[object Float32Array]",ut="[object Float64Array]",ct="[object Int8Array]",ht="[object Int16Array]",dt="[object Int32Array]",pt="[object Uint8Array]",ft="[object Uint8ClampedArray]",gt="[object Uint16Array]",vt="[object Uint32Array]";function mt(t,e,n){var r=t.constructor;switch(e){case at:return B(t);case K:case J:return new r(+t);case st:return W(t,n);case lt:case ut:case ct:case ht:case dt:case pt:case ft:case gt:case vt:return q(t,n);case tt:return new r;case et:case it:return new r(t);case nt:return Q(t);case rt:return new r;case ot:return U(t)}}var yt=mt,bt=n(48508),_t=Object.create,xt=function(){function t(){}return function(e){if(!(0,bt.A)(e))return{};if(_t)return _t(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}(),wt=xt,Ot=n(53776),St=n(74754);function At(t){return"function"!=typeof t.constructor||(0,St.A)(t)?{}:wt((0,Ot.A)(t))}var kt=At,Ct=n(9670),Mt=n(62652),Tt=n(24275),Pt="[object Map]";function It(t){return(0,Tt.A)(t)&&(0,$.A)(t)==Pt}var $t=It,Et=n(27716),Rt=n(55602),Dt=Rt.A&&Rt.A.isMap,Lt=Dt?(0,Et.A)(Dt):$t,Nt=Lt,zt="[object Set]";function Bt(t){return(0,Tt.A)(t)&&(0,$.A)(t)==zt}var Ft=Bt,Wt=Rt.A&&Rt.A.isSet,jt=Wt?(0,Et.A)(Wt):Ft,Vt=jt,Qt=1,Ht=2,Zt=4,Gt="[object Arguments]",Xt="[object Array]",Ut="[object Boolean]",Yt="[object Date]",qt="[object Error]",Kt="[object Function]",Jt="[object GeneratorFunction]",te="[object Map]",ee="[object Number]",ne="[object Object]",re="[object RegExp]",ie="[object Set]",oe="[object String]",ae="[object Symbol]",se="[object WeakMap]",le="[object ArrayBuffer]",ue="[object DataView]",ce="[object Float32Array]",he="[object Float64Array]",de="[object Int8Array]",pe="[object Int16Array]",fe="[object Int32Array]",ge="[object Uint8Array]",ve="[object Uint8ClampedArray]",me="[object Uint16Array]",ye="[object Uint32Array]",be={};function _e(t,e,n,i,s,u){var d,f=e&Qt,g=e&Ht,v=e&Zt;if(n&&(d=s?n(t,i,s,u):n(t)),void 0!==d)return d;if(!(0,bt.A)(t))return t;var m=(0,Ct.A)(t);if(m){if(d=L(t),!f)return O(t,d)}else{var y=(0,$.A)(t),b=y==Kt||y==Jt;if((0,Mt.A)(t))return x(t,f);if(y==ne||y==Gt||b&&!s){if(d=g||b?{}:kt(t),!f)return g?T(t,p(d,t)):k(t,c(d,t))}else{if(!be[y])return s?t:{};d=yt(t,y,f)}}u||(u=new r.A);var _=u.get(t);if(_)return _;u.set(t,d),Vt(t)?t.forEach((function(r){d.add(_e(r,e,n,r,t,u))})):Nt(t)&&t.forEach((function(r,i){d.set(i,_e(r,e,n,i,t,u))}));var w=v?g?I.A:P.A:g?h.A:l.A,S=m?void 0:w(t);return o(S||t,(function(r,i){S&&(i=r,r=t[i]),(0,a.A)(d,i,_e(r,e,n,i,t,u))})),d}be[Gt]=be[Xt]=be[le]=be[ue]=be[Ut]=be[Yt]=be[ce]=be[he]=be[de]=be[pe]=be[fe]=be[te]=be[ee]=be[ne]=be[re]=be[ie]=be[oe]=be[ae]=be[ge]=be[ve]=be[me]=be[ye]=!0,be[qt]=be[Kt]=be[se]=!1;var xe=_e},44690:function(t,e){"use strict";function n(t,e,n,r){var i=t.length,o=n+(r?1:-1);while(r?o--:++o<i)if(e(t[o],o,t))return o;return-1}e.A=n},13267:function(t,e,n){"use strict";var r=n(71595),i=n(65864);function o(t,e){e=(0,r.A)(e,t);var n=0,o=e.length;while(null!=t&&n<o)t=t[(0,i.A)(e[n++])];return n&&n==o?t:void 0}e.A=o},15876:function(t,e,n){"use strict";var r=n(17865),i=n(9670);function o(t,e,n){var o=e(t);return(0,i.A)(t)?o:(0,r.A)(o,n(t))}e.A=o},6003:function(t,e,n){"use strict";n.d(e,{A:function(){return y}});var r=n(4770),i=Object.prototype,o=i.hasOwnProperty,a=i.toString,s=r.A?r.A.toStringTag:void 0;function l(t){var e=o.call(t,s),n=t[s];try{t[s]=void 0;var r=!0}catch(l){}var i=a.call(t);return r&&(e?t[s]=n:delete t[s]),i}var u=l,c=Object.prototype,h=c.toString;function d(t){return h.call(t)}var p=d,f="[object Null]",g="[object Undefined]",v=r.A?r.A.toStringTag:void 0;function m(t){return null==t?void 0===t?g:f:v&&v in Object(t)?u(t):p(t)}var y=m},13796:function(t,e,n){"use strict";n.d(e,{A:function(){return et}});var r=n(74381),i=(n(30381),n(51845));function o(t,e){var n=-1,r=null==t?0:t.length;while(++n<r)if(e(t[n],n,t))return!0;return!1}var a=o,s=n(86864),l=1,u=2;function c(t,e,n,r,o,c){var h=n&l,d=t.length,p=e.length;if(d!=p&&!(h&&p>d))return!1;var f=c.get(t),g=c.get(e);if(f&&g)return f==e&&g==t;var v=-1,m=!0,y=n&u?new i.A:void 0;c.set(t,e),c.set(e,t);while(++v<d){var b=t[v],_=e[v];if(r)var x=h?r(_,b,v,e,t,c):r(b,_,v,t,e,c);if(void 0!==x){if(x)continue;m=!1;break}if(y){if(!a(e,(function(t,e){if(!(0,s.A)(y,e)&&(b===t||o(b,t,n,r,c)))return y.push(e)}))){m=!1;break}}else if(b!==_&&!o(b,_,n,r,c)){m=!1;break}}return c["delete"](t),c["delete"](e),m}var h=c,d=n(4770),p=n(85559),f=n(55453);function g(t){var e=-1,n=Array(t.size);return t.forEach((function(t,r){n[++e]=[r,t]})),n}var v=g,m=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=d.A?d.A.prototype:void 0,$=I?I.valueOf:void 0;function E(t,e,n,r,i,o,a){switch(n){case P:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case T:return!(t.byteLength!=e.byteLength||!o(new p.A(t),new p.A(e)));case _:case x:case S:return(0,f.A)(+t,+e);case w:return t.name==e.name&&t.message==e.message;case A:case C:return t==e+"";case O:var s=v;case k:var l=r&y;if(s||(s=m.A),t.size!=e.size&&!l)return!1;var u=a.get(t);if(u)return u==e;r|=b,a.set(t,e);var c=h(s(t),s(e),r,i,o,a);return a["delete"](t),c;case M:if($)return $.call(t)==$.call(e)}return!1}var R=E,D=n(1305),L=1,N=Object.prototype,z=N.hasOwnProperty;function B(t,e,n,r,i,o){var a=n&L,s=(0,D.A)(t),l=s.length,u=(0,D.A)(e),c=u.length;if(l!=c&&!a)return!1;var h=l;while(h--){var d=s[h];if(!(a?d in e:z.call(e,d)))return!1}var p=o.get(t),f=o.get(e);if(p&&f)return p==e&&f==t;var g=!0;o.set(t,e),o.set(e,t);var v=a;while(++h<l){d=s[h];var m=t[d],y=e[d];if(r)var b=a?r(y,m,d,e,t,o):r(m,y,d,t,e,o);if(!(void 0===b?m===y||i(m,y,n,r,o):b)){g=!1;break}v||(v="constructor"==d)}if(g&&!v){var _=t.constructor,x=e.constructor;_==x||!("constructor"in t)||!("constructor"in e)||"function"==typeof _&&_ instanceof _&&"function"==typeof x&&x instanceof x||(g=!1)}return o["delete"](t),o["delete"](e),g}var F=B,W=n(93588),j=n(9670),V=n(62652),Q=n(45261),H=1,Z="[object Arguments]",G="[object Array]",X="[object Object]",U=Object.prototype,Y=U.hasOwnProperty;function q(t,e,n,i,o,a){var s=(0,j.A)(t),l=(0,j.A)(e),u=s?G:(0,W.A)(t),c=l?G:(0,W.A)(e);u=u==Z?X:u,c=c==Z?X:c;var d=u==X,p=c==X,f=u==c;if(f&&(0,V.A)(t)){if(!(0,V.A)(e))return!1;s=!0,d=!1}if(f&&!d)return a||(a=new r.A),s||(0,Q.A)(t)?h(t,e,n,i,o,a):R(t,e,u,n,i,o,a);if(!(n&H)){var g=d&&Y.call(t,"__wrapped__"),v=p&&Y.call(e,"__wrapped__");if(g||v){var m=g?t.value():t,y=v?e.value():e;return a||(a=new r.A),o(m,y,n,i,a)}}return!!f&&(a||(a=new r.A),F(t,e,n,i,o,a))}var K=q,J=n(24275);function tt(t,e,n,r,i){return t===e||(null==t||null==e||!(0,J.A)(t)&&!(0,J.A)(e)?t!==t&&e!==e:K(t,e,n,r,tt,i))}var et=tt},56732:function(t,e,n){"use strict";n.d(e,{A:function(){return c}});n(30381);var r=n(74754),i=n(42726),o=(0,i.A)(Object.keys,Object),a=o,s=Object.prototype,l=s.hasOwnProperty;function u(t){if(!(0,r.A)(t))return a(t);var e=[];for(var n in Object(t))l.call(t,n)&&"constructor"!=n&&e.push(n);return e}var c=u},27716:function(t,e){"use strict";function n(t){return function(e){return t(e)}}e.A=n},86864:function(t,e){"use strict";function n(t,e){return t.has(e)}e.A=n},71595:function(t,e,n){"use strict";n.d(e,{A:function(){return C}});var r=n(9670),i=n(50259),o=(n(30381),n(94475)),a="Expected a function";function s(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError(a);var n=function(){var r=arguments,i=e?e.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=t.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(s.Cache||o.A),n}s.Cache=o.A;var l=s,u=500;function c(t){var e=l(t,(function(t){return n.size===u&&n.clear(),t})),n=e.cache;return e}var h=c,d=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,p=/\\(\\)?/g,f=h((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(d,(function(t,n,r,i){e.push(r?i.replace(p,"$1"):n||t)})),e})),g=f,v=n(4770),m=n(24871),y=n(67427),b=1/0,_=v.A?v.A.prototype:void 0,x=_?_.toString:void 0;function w(t){if("string"==typeof t)return t;if((0,r.A)(t))return(0,m.A)(t,w)+"";if((0,y.A)(t))return x?x.call(t):"";var e=t+"";return"0"==e&&1/t==-b?"-0":e}var O=w;function S(t){return null==t?"":O(t)}var A=S;function k(t,e){return(0,r.A)(t)?t:(0,i.A)(t,e)?[t]:g(A(t))}var C=k},34824:function(t,e,n){"use strict";var r=n(50062),i=n(55937);function o(t,e,n,o){var a=!n;n||(n={});var s=-1,l=e.length;while(++s<l){var u=e[s],c=o?o(n[u],t[u],u,n,t):void 0;void 0===c&&(c=t[u]),a?(0,i.A)(n,u,c):(0,r.A)(n,u,c)}return n}e.A=o},85988:function(t,e,n){"use strict";var r=n(3149),i=function(){try{var t=(0,r.A)(Object,"defineProperty");return t({},"",{}),t}catch(e){}}();e.A=i},45472:function(t,e,n){"use strict";n.d(e,{A:function(){return m}});var r=n(17865),i=n(4770),o=n(12213),a=n(9670),s=i.A?i.A.isConcatSpreadable:void 0;function l(t){return(0,a.A)(t)||(0,o.A)(t)||!!(s&&t&&t[s])}var u=l;function c(t,e,n,i,o){var a=-1,s=t.length;n||(n=u),o||(o=[]);while(++a<s){var l=t[a];e>0&&n(l)?e>1?c(l,e-1,n,i,o):(0,r.A)(o,l):i||(o[o.length]=l)}return o}var h=c;function d(t){var e=null==t?0:t.length;return e?h(t,1):[]}var p=d,f=n(3644),g=n(55629);function v(t){return(0,g.A)((0,f.A)(t,void 0,p),t+"")}var m=v},49895:function(t,e){"use strict";var n="object"==typeof global&&global&&global.Object===Object&&global;e.A=n},1305:function(t,e,n){"use strict";var r=n(15876),i=n(37111),o=n(99915);function a(t){return(0,r.A)(t,o.A,i.A)}e.A=a},75650:function(t,e,n){"use strict";var r=n(15876),i=n(17592),o=n(23607);function a(t){return(0,r.A)(t,o.A,i.A)}e.A=a},3149:function(t,e,n){"use strict";n.d(e,{A:function(){return S}});var r=n(7015),i=n(93966),o=i.A["__core-js_shared__"],a=o,s=function(){var t=/[^.]+$/.exec(a&&a.keys&&a.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();function l(t){return!!s&&s in t}var u=l,c=n(48508),h=n(70450),d=/[\\^$.*+?()[\]{}|]/g,p=/^\[object .+?Constructor\]$/,f=Function.prototype,g=Object.prototype,v=f.toString,m=g.hasOwnProperty,y=RegExp("^"+v.call(m).replace(d,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function b(t){if(!(0,c.A)(t)||u(t))return!1;var e=(0,r.A)(t)?y:p;return e.test((0,h.A)(t))}var _=b;function x(t,e){return null==t?void 0:t[e]}var w=x;function O(t,e){var n=w(t,e);return _(n)?n:void 0}var S=O},53776:function(t,e,n){"use strict";var r=n(42726),i=(0,r.A)(Object.getPrototypeOf,Object);e.A=i},37111:function(t,e,n){"use strict";function r(t,e){var n=-1,r=null==t?0:t.length,i=0,o=[];while(++n<r){var a=t[n];e(a,n,t)&&(o[i++]=a)}return o}n.d(e,{A:function(){return c}});var i=r,o=n(64122),a=Object.prototype,s=a.propertyIsEnumerable,l=Object.getOwnPropertySymbols,u=l?function(t){return null==t?[]:(t=Object(t),i(l(t),(function(e){return s.call(t,e)})))}:o.A,c=u},17592:function(t,e,n){"use strict";var r=n(17865),i=n(53776),o=n(37111),a=n(64122),s=Object.getOwnPropertySymbols,l=s?function(t){var e=[];while(t)(0,r.A)(e,(0,o.A)(t)),t=(0,i.A)(t);return e}:a.A;e.A=l},93588:function(t,e,n){"use strict";n.d(e,{A:function(){return C}});n(57836),n(39109),n(34381);var r=n(3149),i=n(93966),o=(0,r.A)(i.A,"DataView"),a=o,s=n(24522),l=(0,r.A)(i.A,"Promise"),u=l,c=n(27216),h=(0,r.A)(i.A,"WeakMap"),d=h,p=n(6003),f=n(70450),g="[object Map]",v="[object Object]",m="[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)(d),k=p.A;(a&&k(new a(new ArrayBuffer(1)))!=_||s.A&&k(new s.A)!=g||u&&k(u.resolve())!=m||c.A&&k(new c.A)!=y||d&&k(new d)!=b)&&(k=function(t){var e=(0,p.A)(t),n=e==v?t.constructor:void 0,r=n?(0,f.A)(n):"";if(r)switch(r){case x:return _;case w:return g;case O:return m;case S:return y;case A:return b}return e});var C=k},49808:function(t,e){"use strict";var n=9007199254740991,r=/^(?:0|[1-9]\d*)$/;function i(t,e){var i=typeof t;return e=null==e?n:e,!!e&&("number"==i||"symbol"!=i&&r.test(t))&&t>-1&&t%1==0&&t<e}e.A=i},50259:function(t,e,n){"use strict";var r=n(9670),i=n(67427),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;function s(t,e){if((0,r.A)(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!(0,i.A)(t))||(a.test(t)||!o.test(t)||null!=e&&t in Object(e))}e.A=s},74754:function(t,e){"use strict";var n=Object.prototype;function r(t){var e=t&&t.constructor,r="function"==typeof e&&e.prototype||n;return t===r}e.A=r},55602:function(t,e,n){"use strict";var r=n(49895),i="object"==typeof exports&&exports&&!exports.nodeType&&exports,o=i&&"object"==typeof module&&module&&!module.nodeType&&module,a=o&&o.exports===i,s=a&&r.A.process,l=function(){try{var t=o&&o.require&&o.require("util").types;return t||s&&s.binding&&s.binding("util")}catch(e){}}();e.A=l},42726:function(t,e){"use strict";function n(t,e){return function(n){return t(e(n))}}e.A=n},3644:function(t,e,n){"use strict";function r(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}n.d(e,{A:function(){return s}});var i=r,o=Math.max;function a(t,e,n){return e=o(void 0===e?t.length-1:e,0),function(){var r=arguments,a=-1,s=o(r.length-e,0),l=Array(s);while(++a<s)l[a]=r[e+a];a=-1;var u=Array(e+1);while(++a<e)u[a]=r[a];return u[e]=n(l),i(t,this,u)}}var s=a},93966:function(t,e,n){"use strict";var r=n(49895),i="object"==typeof self&&self&&self.Object===Object&&self,o=r.A||i||Function("return this")();e.A=o},46708:function(t,e){"use strict";function n(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n}e.A=n},55629:function(t,e,n){"use strict";function r(t){return function(){return t}}n.d(e,{A:function(){return g}});var i=r,o=n(85988),a=n(14101),s=o.A?function(t,e){return(0,o.A)(t,"toString",{configurable:!0,enumerable:!1,value:i(e),writable:!0})}:a.A,l=s,u=800,c=16,h=Date.now;function d(t){var e=0,n=0;return function(){var r=h(),i=c-(r-n);if(n=r,i>0){if(++e>=u)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}var p=d,f=p(l),g=f},65864:function(t,e,n){"use strict";var r=n(67427),i=1/0;function o(t){if("string"==typeof t||(0,r.A)(t))return t;var e=t+"";return"0"==e&&1/t==-i?"-0":e}e.A=o},70450:function(t,e){"use strict";var n=Function.prototype,r=n.toString;function i(t){if(null!=t){try{return r.call(t)}catch(e){}try{return t+""}catch(e){}}return""}e.A=i},4908:function(t,e,n){"use strict";var r=n(98586),i=1,o=4;function a(t){return(0,r.A)(t,i|o)}e.A=a},58554:function(t,e,n){"use strict";n.d(e,{A:function(){return d}});var r=n(48508),i=n(93966),o=function(){return i.A.Date.now()},a=o,s=n(98704),l="Expected a function",u=Math.max,c=Math.min;function h(t,e,n){var i,o,h,d,p,f,g=0,v=!1,m=!1,y=!0;if("function"!=typeof t)throw new TypeError(l);function b(e){var n=i,r=o;return i=o=void 0,g=e,d=t.apply(r,n),d}function _(t){return g=t,p=setTimeout(O,e),v?b(t):d}function x(t){var n=t-f,r=t-g,i=e-n;return m?c(i,h-r):i}function w(t){var n=t-f,r=t-g;return void 0===f||n>=e||n<0||m&&r>=h}function O(){var t=a();if(w(t))return S(t);p=setTimeout(O,x(t))}function S(t){return p=void 0,y&&i?b(t):(i=o=void 0,d)}function A(){void 0!==p&&clearTimeout(p),g=0,i=f=o=p=void 0}function k(){return void 0===p?d:S(a())}function C(){var t=a(),n=w(t);if(i=arguments,o=this,f=t,n){if(void 0===p)return _(f);if(m)return clearTimeout(p),p=setTimeout(O,e),b(f)}return void 0===p&&(p=setTimeout(O,e)),d}return e=(0,s.A)(e)||0,(0,r.A)(n)&&(v=!!n.leading,m="maxWait"in n,h=m?u((0,s.A)(n.maxWait)||0,e):h,y="trailing"in n?!!n.trailing:y),C.cancel=A,C.flush=k,C}var d=h},55453:function(t,e){"use strict";function n(t,e){return t===e||t!==t&&e!==e}e.A=n},83067:function(t,e,n){"use strict";var r=n(13267);function i(t,e,n){var i=null==t?void 0:(0,r.A)(t,e);return void 0===i?n:i}e.A=i},92324:function(t,e,n){"use strict";function r(t,e){return null!=t&&e in Object(t)}n.d(e,{A:function(){return f}});var i=r,o=n(71595),a=n(12213),s=n(9670),l=n(49808),u=n(83099),c=n(65864);function h(t,e,n){e=(0,o.A)(e,t);var r=-1,i=e.length,h=!1;while(++r<i){var d=(0,c.A)(e[r]);if(!(h=null!=t&&n(t,d)))break;t=t[d]}return h||++r!=i?h:(i=null==t?0:t.length,!!i&&(0,u.A)(i)&&(0,l.A)(d,i)&&((0,s.A)(t)||(0,a.A)(t)))}var d=h;function p(t,e){return null!=t&&d(t,e,i)}var f=p},14101:function(t,e){"use strict";function n(t){return t}e.A=n},12213:function(t,e,n){"use strict";n.d(e,{A:function(){return d}});var r=n(6003),i=n(24275),o="[object Arguments]";function a(t){return(0,i.A)(t)&&(0,r.A)(t)==o}var s=a,l=Object.prototype,u=l.hasOwnProperty,c=l.propertyIsEnumerable,h=s(function(){return arguments}())?s:function(t){return(0,i.A)(t)&&u.call(t,"callee")&&!c.call(t,"callee")},d=h},9670:function(t,e){"use strict";var n=Array.isArray;e.A=n},58977:function(t,e,n){"use strict";var r=n(7015),i=n(83099);function o(t){return null!=t&&(0,i.A)(t.length)&&!(0,r.A)(t)}e.A=o},62652:function(t,e,n){"use strict";n.d(e,{A:function(){return d}});var r=n(93966);function i(){return!1}var o=i,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,h=c||o,d=h},71415:function(t,e,n){"use strict";var r=n(13796);function i(t,e){return(0,r.A)(t,e)}e.A=i},7015:function(t,e,n){"use strict";var r=n(6003),i=n(48508),o="[object AsyncFunction]",a="[object Function]",s="[object GeneratorFunction]",l="[object Proxy]";function u(t){if(!(0,i.A)(t))return!1;var e=(0,r.A)(t);return e==a||e==s||e==o||e==l}e.A=u},83099:function(t,e){"use strict";var n=9007199254740991;function r(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=n}e.A=r},48508:function(t,e){"use strict";function n(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}e.A=n},24275:function(t,e){"use strict";function n(t){return null!=t&&"object"==typeof t}e.A=n},77688:function(t,e,n){"use strict";var r=n(6003),i=n(53776),o=n(24275),a="[object Object]",s=Function.prototype,l=Object.prototype,u=s.toString,c=l.hasOwnProperty,h=u.call(Object);function d(t){if(!(0,o.A)(t)||(0,r.A)(t)!=a)return!1;var e=(0,i.A)(t);if(null===e)return!0;var n=c.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&u.call(n)==h}e.A=d},67427:function(t,e,n){"use strict";var r=n(6003),i=n(24275),o="[object Symbol]";function a(t){return"symbol"==typeof t||(0,i.A)(t)&&(0,r.A)(t)==o}e.A=a},45261:function(t,e,n){"use strict";n.d(e,{A:function(){return N}});var r=n(6003),i=n(83099),o=n(24275),a="[object Arguments]",s="[object Array]",l="[object Boolean]",u="[object Date]",c="[object Error]",h="[object Function]",d="[object Map]",p="[object Number]",f="[object Object]",g="[object RegExp]",v="[object Set]",m="[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(t){return(0,o.A)(t)&&(0,i.A)(t.length)&&!!P[(0,r.A)(t)]}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[h]=P[d]=P[p]=P[f]=P[g]=P[v]=P[m]=P[y]=!1;var $=I,E=n(27716),R=n(55602),D=R.A&&R.A.isTypedArray,L=D?(0,E.A)(D):$,N=L},99915:function(t,e,n){"use strict";var r=n(80238),i=n(56732),o=n(58977);function a(t){return(0,o.A)(t)?(0,r.A)(t):(0,i.A)(t)}e.A=a},23607:function(t,e,n){"use strict";n.d(e,{A:function(){return f}});var r=n(80238),i=(n(30381),n(48508)),o=n(74754);function a(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e}var s=a,l=Object.prototype,u=l.hasOwnProperty;function c(t){if(!(0,i.A)(t))return s(t);var e=(0,o.A)(t),n=[];for(var r in t)("constructor"!=r||!e&&u.call(t,r))&&n.push(r);return n}var h=c,d=n(58977);function p(t){return(0,d.A)(t)?(0,r.A)(t,!0):h(t)}var f=p},26714:function(t,e,n){"use strict";n.d(e,{A:function(){return y}});var r=n(13267),i=n(50062),o=n(71595),a=n(49808),s=n(48508),l=n(65864);function u(t,e,n,r){if(!(0,s.A)(t))return t;e=(0,o.A)(e,t);var u=-1,c=e.length,h=c-1,d=t;while(null!=d&&++u<c){var p=(0,l.A)(e[u]),f=n;if("__proto__"===p||"constructor"===p||"prototype"===p)return t;if(u!=h){var g=d[p];f=r?r(g,p,d):void 0,void 0===f&&(f=(0,s.A)(g)?g:(0,a.A)(e[u+1])?[]:{})}(0,i.A)(d,p,f),d=d[p]}return t}var c=u;function h(t,e,n){var i=-1,a=e.length,s={};while(++i<a){var l=e[i],u=(0,r.A)(t,l);n(u,l)&&c(s,(0,o.A)(l,t),u)}return s}var d=h,p=n(92324);function f(t,e){return d(t,e,(function(e,n){return(0,p.A)(t,n)}))}var g=f,v=n(45472),m=(0,v.A)((function(t,e){return null==t?{}:g(t,e)})),y=m},64122:function(t,e){"use strict";function n(){return[]}e.A=n},98704:function(t,e,n){"use strict";n.d(e,{A:function(){return m}});var r=/\s/;function i(t){var e=t.length;while(e--&&r.test(t.charAt(e)));return e}var o=i,a=/^\s+/;function s(t){return t?t.slice(0,o(t)+1).replace(a,""):t}var l=s,u=n(48508),c=n(67427),h=NaN,d=/^[-+]0x[0-9a-f]+$/i,p=/^0b[01]+$/i,f=/^0o[0-7]+$/i,g=parseInt;function v(t){if("number"==typeof t)return t;if((0,c.A)(t))return h;if((0,u.A)(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=(0,u.A)(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=l(t);var n=p.test(t);return n||f.test(t)?g(t.slice(2),n?2:8):d.test(t)?h:+t}var m=v},57352:function(t,e,n){"use strict";n.d(e,{Sg:function(){return r}});var r=!0}},e={};function n(r){var i=e[r];if(void 0!==i)return i.exports;var o=e[r]={id:r,loaded:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.loaded=!0,o.exports}!function(){n.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return n.d(e,{a:e}),e}}(),function(){n.d=function(t,e){for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})}}(),function(){n.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"===typeof window)return window}}()}(),function(){n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)}}(),function(){n.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}}(),function(){n.nmd=function(t){return t.paths=[],t.children||(t.children=[]),t}}(),function(){n.p=""}();var r={};return function(){"use strict";if(n.r(r),n.d(r,{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},CusForm:function(){return u.O},DataSourceType:function(){return i.o},Title:function(){return o["default"]},asyncComponentAll:function(){return c},components:function(){return h},install:function(){return d}}),"undefined"!==typeof window){var t=window.document.currentScript,e=t&&t.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);e&&(n.p=e[1])}var i=n(83848),o=n(96653),a=n(63393),s=n(72987),l=n(92751),u=n(42667);const c={Title:()=>Promise.resolve().then(n.bind(n,96653)),BasicLine:()=>Promise.resolve().then(n.bind(n,63393)),BasicBar:()=>Promise.resolve().then(n.bind(n,92751))},h={BasicLine:a["default"],BasicBar:s.A,Title:o["default"]},d=function(t){return Object.keys(h).forEach((e=>{const n=h[e];n?.install&&(console.log("注册组件:",e),t.use(n))})),t}}(),r}()}));
  38. //# sourceMappingURL=shaluDashBoardUi.umd.min.js.map