(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{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{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])} /*! js-cookie v3.0.5 | MIT */ function nt(t){for(var e=1;e{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{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&&ir)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{(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({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({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(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`${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(++et,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}}; /*! Element Plus Icons Vue v2.3.1 */ 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(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{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((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{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 tr}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{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.sValue1&&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[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[r]&&(n=r);return Math.abs(e[n+1]-t)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=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[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"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=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=0||(i[n]=t[n]);return i}function N(t){for(var e=1;et.length)&&(e=t.length);for(var n=0,r=new Array(e);nt.length)&&(e=t.length);for(var n=0,r=new Array(e);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=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.5?u/(2-i-o):u/(i+o),i){case t:a=(e-n)/u+(e1&&(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>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=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;a1)&&(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=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{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{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,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>>1,i=h[r],o=k(i);od&&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;nk(t)-k(e)));if(p.length=0,f)return void f.push(...t);for(f=t,g=0;gnull==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(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;et.__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;oe(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(0,i.X$)({name:t.name},e,{setup:t}))():t}const gt=t=>!!t.type.__asyncLoader /*! #__NO_SIDE_EFFECTS__ */;function vt(t,e,n={},r,i){if($.isCE||$.parent&>($.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;n1)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{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-1,r[1]=n<0||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{for(let u=l;u{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{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{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&>(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;ph?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=tp)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{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;tl.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;a6&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>1,t[n[s]]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{{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{$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;o1)for(let o=0;ot.__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;i0?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;nQn||$;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); /** * @vue/runtime-dom v3.4.31 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/ 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?`${t}`:"mathml"===r?`${t}`: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(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.lengthT(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;iJ||(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} /*! #__NO_SIDE_EFFECTS__ */ /*! #__NO_SIDE_EFFECTS__ */ "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{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{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); /** * @vue/shared v3.4.31 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/ /*! #__NO_SIDE_EFFECTS__ */ 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{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{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;nnt(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{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);it.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=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-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;r0?m(T,--C):0,A--,10===M&&(A=1,S--),M}function E(){return M=C2||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;x0?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;n1&&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]{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{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;r1&&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;a0&&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{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=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||"<>",{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;r0&&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{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);it.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{(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({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{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;rt.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-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{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({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.clientHeighte||o>t&&a=e&&s>=n?o-t-r:a>e&&sn?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=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(++hi?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(++r1),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;o1&&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({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{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;e1?e-1:0),r=1;r=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()\[\]\\.,;:\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&&ut.max?r.push(g(i.messages[c].max,t.fullField,t.max)):a&&s&&(ut.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{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{(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;tpt(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;r3&&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;rp(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;eNumber.MAX_SAFE_INTEGER)return String(v()?BigInt(t).toString():Number.MAX_SAFE_INTEGER);if(tNumber.MAX_SAFE_INTEGER)return new O(Number.MAX_SAFE_INTEGER);if(n0&&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);it||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(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);it.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(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{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||""].lengthr&&(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;et?(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);is("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({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{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{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({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;s1?n-1:0),i=1;i{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{};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;ut&&(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{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=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`${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;r1&&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);i1&&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;r0&&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{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;e1&&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{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{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{(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(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({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{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);it.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{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){Math.abs(a)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=>tV.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.rightw.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&&or+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]{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{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{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{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{})),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);it.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{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);idocument.body;let b=0;function _(){const t={};for(var e=arguments.length,n=new Array(e),r=0;r{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);it.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{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({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{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;tf.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=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+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+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.leftn.right}function Bt(t,e,n){return t.topn.bottom}function Ft(t,e,n){return t.left>n.right||t.left+e.widthn.bottom||t.top+e.height=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{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;e1&&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=0&&t=0&&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||n0&&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._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;i0&&(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;e1&&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=0&&t=0&&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=0&&t/),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.newlines0);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(/^(|]]>)$/.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(//),cdata:i.starting_with(//),conditional_comment:i.starting_with(//),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("","ig"))}else this._is_content_unformatted(i)&&(r=this._input.readUntil(new RegExp("","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;nn&&(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;o0,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;a0&&(!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;n0&&(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;e1&&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>> === !== &&= ??= ||= << && >= ** != == <= >> || ?? |> < / - + > : & % ? ^ | *".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(//),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=0&&t=0&&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=0&&t/),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(++e1?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(++rd))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-1&&t%1==0&&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(++a0){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=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={"&":"&","<":"<",">":">",'"':""","'":"'"},tn={"&":"&","<":"<",">":">",""":'"',"'":"'"},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-1}function kn(t,e,n){var r=-1,i=null==t?0:t.length;while(++r-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-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=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(++io?0:o+n),r=r===i||r>o?o:Xc(r),r<0&&(r+=o),r=n>r?0:Uc(r);while(n0&&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&&ne}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=120&&d.length>=120)?new Ur(l&&d):i}d=t[0];var p=-1,f=u[0];t:while(++p-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&&++oo?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>>1,a=t[o];null!==a&&!Bc(a)&&(n?a<=e:a=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=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=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(++l1?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-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(++r1&&y.reverse(),d&&cl))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(++d1?"& ":"")+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&&t0){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(++n1?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=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(++n1),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(++re){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>>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(++rL)return[];var n=B,r=We(t,B);e=Qa(e),t-=B;var i=Zn(r,e);while(++n0||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__;n0},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);n0},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){ /*! * screenfull * v5.2.0 - 2021-11-03 * (c) Sindre Sorhus; MIT License */ (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{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;ot?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({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=0)s=a*n.length;else for(var l=0;l>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",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={"&":"&","<":"<",">":">",'"':""","'":"'"};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;o1&&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=!(of&&(f=b,gf&&(f=_,m=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=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=0)i++;return i-e}function lr(t,e,n){n--;while(e>>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(l0)a=l,l=1+(l<<1),l<=0&&(l=s);l>s&&(l=s),a+=i,l+=i}else{s=i+1;while(ls&&(l=s);var u=a;a=i-l,l=i-u}a++;while(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(ls&&(l=s);var u=a;a=i-l,l=i-u}else{s=r-i;while(l=0)a=l,l=1+(l<<1),l<=0&&(l=s);l>s&&(l=s),a+=i,l+=i}a++;while(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])break;c(t)}}function u(){while(o>1){var t=o-2;t>0&&r[t-1]=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=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=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=0;l--)t[p+l]=t[d+l];t[h]=a[c]}else for(d=h-(s-1),l=0;ls&&(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;n0&&(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=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&&tMr||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=0&&f=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=0&&p=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}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;or?e:t,o=Math.min(n,r),a=i[o-1]||{color:[0,0,0,0],offset:0},s=o;sa;if(s)r.length=a;else for(var l=o;l=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=0;n--)if(l[n].percent<=e)break;n=p(n,u-2)}else{for(n=d;ne)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;o0&&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;n0)){this._started=1;for(var e=this,n=[],r=this._maxTime||0,i=0;i1){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.__lastTouchMomentna||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=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;i0},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;s0,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=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=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;o0&&n.during&&o[0].during((function(t,e){n.during(e)}));for(var d=0;d0||i.force&&!a.length){var S=void 0,A=void 0,k=void 0;if(s){A={},d&&(S={});for(_=0;_=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;n0&&(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;e0){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(su&&(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=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=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=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;op&&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;vl&&Wl(n,t.substring(l,u),e,s),Wl(n,r[2],e,s,r[1]),l=Il.lastIndex}lo){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!=$&&$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=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;hn: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;r1e-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:ii&&(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&&n0&&(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;nu.length&&(this._expandData(),u=this.data);for(var c=0;c0&&(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;e11&&(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;tn||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;x0&&(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||at+s&&o>n+s||oe+h&&c>r+h&&c>o+h&&c>s+h||ct+h&&u>n+h&&u>i+h&&u>a+h||ue+u&&l>r+u&&l>o+u||lt+u&&s>n+u&&s>i+u||sn||c+ui&&(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||oi?s:0}var Hu=Lu.CMD,Zu=2*Math.PI,Gu=1e-4;function Xu(t,e){return Math.abs(t-e)e&&u>r&&u>o&&u>s||u1&&qu(),p=Nr(e,r,o,s,Yu[0]),d>1&&(f=Nr(e,r,o,s,Yu[1]))),2===d?ve&&s>r&&s>o||s=0&&u<=1){for(var c=0,h=Qr(e,r,o,u),d=0;dn||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;f1&&(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.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)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;h0},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;e0,k=null!=t.width&&("truncate"===t.overflow||"break"===t.overflow||"breakAll"===t.overflow),C=i.calculatedLineHeight,M=0;M=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=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;n0){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;i0){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=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=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':'';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=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;re)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=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=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;nu&&(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=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||d1&&r>0?s:a}};return o;function a(){return e=t?null:oe},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 nr?-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;c65535?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;ug[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;uv[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=0&&e=this._rawCount||t<0)return-1;if(!this._indices)return t;var e=this._indices,n=e[t];if(null!=n&&nt))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=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=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=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=c&&m<=h||isNaN(m))&&(s[l++]=w)}else for(v=0;vt[A][1])&&(O=!1)}O&&(s[l++]=e.getRawIndex(v))}return lv[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;pn&&(n=r,i=b))}k>0&&ku-p&&(s=u-p,a.length=s);for(var f=0;fc[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();is&&(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=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;e1||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('
'+ln(d)+"
"+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='
',r="margin: "+e+"px 0 0";return'
'+t+n+"
"}function wm(t,e,n){var r=e?"margin-left:2px":"";return''+ln(t)+""}function Om(t,e,n,r){var i=n?"10px":"20px",o=e?"float:right;margin-left:"+i:"";return t=Bt(t)?t:[t],''+It(t,(function(t){return ln(t)})).join("  ")+""}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;nthis.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=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;l0&&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;i1&&(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;uP*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$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),A0&&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),k0&&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=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;syb[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()&&(uMath.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];o1)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=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;o0&&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=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;o0?"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;s0&&t.unfinished);t.unfinished||this._zr.flush()}}},e.prototype.getDom=function(){return this._dom},e.prototype.getId=function(){return this.id},e.prototype.getZr=function(){return this._zr},e.prototype.isSSR=function(){return this._ssr},e.prototype.setOption=function(t,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+=''+t.dom+""})),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;re.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;u0?{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=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;o1){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;a1&&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;d1)for(var a=0;a30}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=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;u0},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;s1&&(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;p0&&(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(ee[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&&ar&&(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=0&&t=0&&t=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[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]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;ir[0]&&h0&&(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&&er&&(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)0?n:1:n))}var YA=function(t,e,n,r){while(n>>1;t[i][1]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(u1&&0===u&&o.unshift({value:o[0].value-d})}}for(u=0;u=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;S0)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]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;ct[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)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>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;n40&&(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:ti&&(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 y0){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(o1&&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=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;c0&&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;o0)for(l=0;l0;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;r0?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=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=a)}}for(var c=this.__startIndex;c15)break}}n.prevElClipPaths&&h.restore()};if(p)if(0===p.length)s=l.__endIndex;else for(var _=d.dpr,x=0;x0&&t>r[0]){for(s=0;st)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;r0?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=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"}function KM(t){return""}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?[""].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;u0})).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;ou?(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=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-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=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;i0?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=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||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=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;_=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(;ie){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;ar)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=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;e0&&"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;ye&&(e=t[n]);return isFinite(e)?e:NaN},min:function(t){for(var e=1/0,n=0;ne&&(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;ds){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-lMath.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;So)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=si?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;n0?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=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=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,rr?(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}})),Cn?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)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)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;g0){for(var l=o.getItemLayout(0),u=1;isNaN(l&&l.startAngle)&&u=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]=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=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(vu[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;r0?"top":"bottom",r="center"):ds(o-rE)?(i=n>0?"bottom":"top",r="center"):(i="middle",r=o>0&&o0?"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=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]),a0&&!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;b3?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;r0;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;r0,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=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-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;h1?(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=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;dy.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;ye&&(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=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=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=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;ec.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;e1)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;rSN||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=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.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&&su[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;_=0;l--){var u=i["asc"===r?a-l-1:l].getValue();u/n*ea[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;or&&(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;hcs&&(u=cs),a=o}ur&&(r=e);var o=r%2?r+2:r+3;i=[];for(var a=0;a0&&(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].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;r0}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=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=0&&t.call(e,n[i],i)},t.prototype.eachEdge=function(t,e){for(var n=this.edges,r=n.length,i=0;i=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=0&&n.node2.dataIndex>=0}));for(i=0,o=r.length;i=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 "+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=t&&(0===e?0:r[e-1][0])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();aBF)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.spano&&(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;ui*(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=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;rbW}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;ar.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=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=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;yh-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;s0;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;l0&&(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(++oo&&(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();rg){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;r0?"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:n0?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;o0&&(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=0;o--)if(r[o]<=e)break;o=Math.min(o,i-2)}else{for(o=a;oe)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;n0){t.moveTo(r[n++],r[n++]);for(var a=1;a0){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;s0)for(var u=r[s++],c=r[s++],h=1;h0){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;s0&&(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;c0&&(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 ")})},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;p0){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=0;r--){a=e[r].interval;if(a[0]<=t&&t<=a[1]){o=r;break}}return r>=0&&r=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;As[1]||Tl[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]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,c0: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;go&&(o=s),r.push(s)}for(var u=0;uo&&(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)A&&!ds(C-A)&&C0?(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;o1)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;r0&&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=0){!o&&(o=r[t]={});var p=Dt(a);for(c=0;c=0)){var d=t.getAnimationStyleProps(),p=d?d.style:null;if(p){!i&&(i=r.style={});var f=Dt(n);for(u=0;u=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=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=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=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=la)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;hf?"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=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)=$})}}}))}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=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=r.start.time&&n.timea.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&&er.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=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=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;ro[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='',_=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=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=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;it[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-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'
'}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=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":"
",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;ge[0][1]&&(e[0][1]=o[0]),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=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=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]d[1]||c[1]=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(rn[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=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;ir[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;le[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]=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;at[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;Ai[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=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;s0: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","≥"][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(e1?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":"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;e2&&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=nS:C2&&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=0&&S=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;i0)for(u=0;uMath.abs(u),h=g3([l,u],c?0:1,e),d=(c?s:u)/h.length,p=0;pi,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;d1?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;oa?(u.x=c.x=s+o/2,u.y=l,c.y=l+a):(u.y=c.y=l+a/2,u.x=s,c.x=s+o),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;r0)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;b0;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=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;r0){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;ft5))for(var i=n.getIndices(),o=0;o0&&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=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"[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{$={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{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;ot&&t.triggerCancel));t.onCancel&&s&&t.onCancel((()=>{}),...r.slice(1));for(let t=0;t{"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;nt&&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&&ot&&o&&(r+=n),ti&&(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=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=i&&e<=a){let s=o.replace(t-i,e-i,n),l=this.lines-o.lines+s.lines;if(s.lines>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;it&&i&&(r+=n),to&&(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=n&&(l>r&&(s=s.slice(0,r-i)),i0?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_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=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=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;et)return i+(t-r);i+=a}else{if(n!=jt.Simple&&l>=t&&(n==jt.TrackDel&&rt||n==jt.TrackBefore&&rt))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=0&&r<=e&&a>=t)return!(re)||"cover";r=a}return!1}toString(){let t="";for(let e=0;e=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=0){e[r]=a,e[r+1]=o;let s=r>>1;while(n.length0&&Zt(n,e,i.text),i.forward(t),a+=t}let l=t[o++];while(a>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;ol||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;ao&&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;re&&"string"!=typeof t)))throw new RangeError("Invalid JSON representation of ChangeSet");if(1==i.length)e.push(i[0],0);else{while(n.length=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>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=0&&l=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.lent||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>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;nt.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;rt?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;rn.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;rt[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;et===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>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[r]))o=t[r++],a=t[r++];else{if(!(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"€"&&(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-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;ai.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;ae.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(at.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);iu||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=0){let t=e[s++];u.addInner(t.from,t.to,t.value)||l.push(t)}else 1==a.rangeIndex&&a.chunkIndexthis.chunkEnd(a.chunkIndex)||ia.to||i=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.pointFroma&&(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;n0)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=this.minPoint)break}}}setRangeIndex(t){if(t==this.layer.chunk[this.chunkIndex].value.length){if(this.chunkIndex++,this.skip)while(this.chunkIndex=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=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(e0)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=0&&n[e]=0;n--){if(this.activeRank[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=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)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-1&&(this.modules.splice(a,1),i--,a=-1),-1==a){if(this.modules.splice(i++,0,e),n)for(let t=0;t",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.top0&&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-v0&&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.leftn.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;tMath.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&&re)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=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;rthis.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(r0&&(!a&&o.length&&c.merge(n,c.length,o[0],!1,s,0)?c.breakAfter=o.shift().breakAfter:(n2);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||et&&e.push(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=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||e0)?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.top0?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;io&&e0;o--){let t=r[o-1];if(t.dom.parentNode==n)return t.domAtPos(t.length)}for(let o=i;o0&&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=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-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;n0&&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){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||e0)}}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&&(t0),l=!o.isEditable&&(tr.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?tr.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=e){if(a.level==n)return o;(i<0||(0!=r?r<0?a.frome: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=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=il;)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;ll&&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):le;){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.tooi.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));(cl.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)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.toAu)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})=>ethis.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=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.fromBh){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=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=0;o--){let a=this.children[o],s=i-a.breakAfter,l=s-a.length;if(st||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;aMath.max(this.view.scrollDOM.clientWidth,this.minWidth)+1,a=-1,s=this.view.textDirection==Gr.LTR;for(let l=0,u=0;ur)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(tn.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{te.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(st?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.tope.top+1}function so(t,e){return et.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;dv||a==v&&o>g){r=f,i=p,o=g,a=v;let s=v?n0?d0)}0==g?n>p.bottom&&(!u||u.bottomp.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;sn?u.top-n:n-u.bottom)-1;if(u.left-1<=e&&u.right+1>=e&&c=(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(pt.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.y1.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(el.bottom||(o<0?ni)){let r=t.docView.coordsForChar(n),i=!r||e{if(e>t&&ee(t))),n.from,e.head>n.from?-1:1);return r==n.from?n:Kt.cursor(r,rnull)),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.from0||!!(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;nt.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=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.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=i1&&(s=Jo(i,l.pos))?s:a?i.addRange(u):Kt.create([u])}}}function Jo(t,e){for(let n=0;n=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{/[\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-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;t0}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--,s2*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&&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+(t0){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 ta))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.right.forEachLine(t,e,n,a,s,o);else{let l=this.lineAt(s,pa.ByPos,n,r,i);t=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(ethis.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=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);t2*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=xa)&&this.addLineDeco(r,i,o)}else e>t&&this.span(t,e);this.lineEnd>-1&&this.lineEnd-1)return;let{from:t,to:e}=this.oracle.doc.lineAt(this.pos);this.lineStart=t,this.lineEnd=e,this.writtenTot&&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.writtenToe.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"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.heads.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.headthis.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(ts.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=a+Math.max(10,Math.min(n,250)))&&r>o-2e3&&i>1,o=r<<1;if(this.defaultTextDirection!=Gr.LTR&&!n)return[];let a=[],s=(r,o,l,u)=>{if(o-rr&&tt.from>=l.from&&t.to<=l.to&&Math.abs(t.from-r)t.frome))));if(!d){if(ot.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.lengtht.from&&s(t.from,i,t,e),at.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=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=ee.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,\')',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-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.toDate.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=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.lengthi.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.frome.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(o0&&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=a?o-n:0;o-=t,s=o+(s-a),a=o}else if(s=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){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{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{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&&nthis.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{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(ithis.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.to3e4)}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-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;t1||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;ee.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||tthis.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=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;lt.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{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/2u&&o.from=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!$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&&o1e3?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.ton.from;o--)if(this.boundary.test(n.text[o-1-n.from])){s=o;break}for(;ac.push(n.range(t,e));if(n==r){this.regexp.lastIndex=s-n.from;while((u=this.regexp.exec(n.text))&&u.indexthis.addMatch(n,t,e,h)));e=e.update({filterFrom:s,filterTo:l,filter:(t,e)=>tl,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;se[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=Math.min(n.bottom,r.bottom)||h.rightMath.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.yr.bottom)&&_==r.bottom-h.bottom>h.top-r.top&&(_=this.above[s]=!_);let x=(_?h.top-r.top:r.bottom-h.bottom)-f;if(xb&&t.topw&&(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;tn.bottom||e.xn.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{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.righti||Math.min(a.bottom,s)=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=it(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{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;e0;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;e0))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&&ne;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.to0?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: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;on.from||r.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-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=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=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-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=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=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&&r4){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=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=n)while(o&&o.from=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=inew 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;ne.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{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=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;nt.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=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.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);nt.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.chunkEndr+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?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-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.fromhh(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.ton)continue;if(o&&i.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)=>{tr&&(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{(!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{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?(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.headcs.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.from0?e>=i.from&&ei.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.from0)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;ni&&(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;tt.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=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.prevTime0&&e-this.prevTimen.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.clientHeightn.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.bottomSp(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.headRp(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.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);ai&&(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,ie(t))))r.between(e,e,((t,r)=>{te&&(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&&aff(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.headdf(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{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{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(io.from&&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!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(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(;et.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&&ithis.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(),(nthis.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=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=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=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(t200)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=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=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;io[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;ls.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"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=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!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=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;sa&&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 at.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]{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.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.bottomn.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.tonew Cv(n,t,e)}function Tv(t,e){let n=t.getBoundingClientRect(),r=e.getBoundingClientRect(),i=n.height/t.offsetHeight;r.topn.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.namee.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;ee.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-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:sa||!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-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{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;aJv&&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;rt.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;enew 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=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{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)&&(efy(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;tt.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{for(let e=0;euy(this.view)},"×")),this.update()}get selectedIndex(){let t=this.view.state.field(iy).selected;if(!t)return-1;for(let e=0;e{let s,l=-1;for(let e=n;en&&(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({sel:i.dom.getBoundingClientRect(),panel:this.list.getBoundingClientRect()}),write:({sel:t,panel:e})=>{let n=e.height/this.list.offsetHeight;t.tope.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,${encodeURIComponent(t)}')`}function by(t){return yy(``,'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])])(); /*! * VueCodemirror v6.1.1 * Copyright (c) Surmon. All rights reserved. * Released under the MIT License. * Surmon */ 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 .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=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.lastBigReductionSizea)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]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;i1&e&&t==r))||n.push(e[t],r)}e=n}let n=[];for(let r=0;r>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;ethis.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=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(in.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&&tt)return Math.max(t,e.from);return this.end}peek(t){let e,n,r=this.chunkOff+t;if(r>=0&&r=this.chunk2Pos&&er.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.chunk2Pos&&this.posthis.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.to)this.range=this.ranges[++this.rangeIndex];t>=this.chunkPos&&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<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>1,o=n+i+(i<<1),s=t[o],l=t[o+1]||65536;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)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(tt)return this.nextStart=o,null;if(i instanceof Iu){if(o==t){if(o=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;lu.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=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;i4*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;or)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;t500&&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 ":"";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;lr?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 ":"";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.scoret;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;at.topRules[e][1])),r=[];for(let a=0;a=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"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);i0}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;it)&&n.p.parser.stateFlag(n.state,2)&&(!e||e.scoret.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'#HOOVQWO'#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-EpOOQU'#Jc'#JcOOQU,5>q,5>qOOQU-EtQWO'#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-EzO+}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-EuQ?NdO1G0|O#>|Q?NdO1G0|O#AZQ07bO'#CiO#CUQ07bO1G1_O#C]Q07bO'#JnO#CpQ?NdO,5?WOOQ?Mp-EoQWO1G3oO$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$tQWO1G0qO!A}Q`O1G0qO!BVQ7[O1G0qOOQ?Mp1G5w1G5wO!ArQ?MxO1G0ZOOQO1G0j1G0jO%[Q^O1G0jO$=aQ?MxO1G0jO$=lQ?MxO1G0jO!A}Q`O1G0ZOCrQ`O1G0ZO$=zQ?MxO1G0jOOQO1G0Z1G0ZO$>`Q?NdO1G0jPOOO-EjQpO,5rQrO1G4fOOQO1G4l1G4lO%[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[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-EtQWO7+&]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<|O%[Q^O,5>|OOQO-E<`-E<`O%FwQWO1G5xOOQ?Mr<]OOQU,5>_,5>_O&8uQWO1G3|O9WQWO7+&cO!(oQ^O7+&cOOQO7+%[7+%[O&8zQ07bO1G6UO>tQWO7+%[OOQ?Mr<tQWO<`Q?NdO<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,5tQWO7+)hO'(OQWO<`Q?NdOAN?[OOQOAN>{AN>{O%[Q^OAN?[OOQO<`Q?NdOG24vO#&wQWOLD,nOOQULD,nLD,nO!&_Q7[OLD,nO'5TQrOLD,nO'5[Q07bO7+'xO'6}Q07bO,5?]O'8}Q07bO,5?_O':}Q07bO7+'zO'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;POSfOdkOg'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(OQ#>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;{ < 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$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`#P#o`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^!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|#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^!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!^!LYP;=`<%l!KS>^!L`P;=`<%l!_#c#d#Bq#d#l%Z#l#m#Es#m#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#_#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-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:``}}}}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;k2?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=s||u<0)throw new o("Incorrect index");for(var c=new e(s),h=0;hn)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)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-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-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(++rd))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(++v0&&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-1&&t%1==0&&t0){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-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&&++uPromise.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}()})); //# sourceMappingURL=shaluDashBoardUi.umd.min.js.map