perf: 不再内嵌管理面板构建文件

This commit is contained in:
Soulter committed 2024-11-29 17:09:04 +08:00
1 parent bd40404f58
commit ba12d65792
27 files changed
+50 -785

No files matched your search

-1
View File
@@ -1 +0,0 @@
/* /index.html 200
-1
View File
@@ -1 +0,0 @@
import{k as e,o as a,c as t,w as o,b as s,u as n,R as r,T as c}from"./index-d089162b.js";const f=e({__name:"BlankLayout",setup(u){return(p,_)=>(a(),t(r,null,{default:o(()=>[s(n(c))]),_:1}))}});export{f as default};
-1
View File
@@ -1 +0,0 @@
import{k as Be,s as te,X as x,a6 as Le,a7 as F,a8 as X,a9 as ve,x as _e,aa as oe,ab as be,U as ee,o as d,l as h,t as C,g as S,b as o,w as n,F as M,r as j,n as v,c as f,W as he,H,ac as pe,a0 as Ve,a1 as ye,V as we,A as Ce,p as B,f as Se,e as b,ad as Ue,D as Me,B as G,a2 as ze,v as de,ae as Ne,af as Y,E as D,ag as Q,ah as I,ai as k,aj as A,u as De,ak as Z,_ as se,$ as ue}from"./index-d089162b.js";import{_ as Ie}from"./_plugin-vue_export-helper-c27b6911.js";import{W as Oe}from"./WaitingForRestart-cde6f809.js";var ke=Object.defineProperty,Ae=Object.defineProperties,Fe=Object.getOwnPropertyDescriptors,re=Object.getOwnPropertySymbols,qe=Object.prototype.hasOwnProperty,We=Object.prototype.propertyIsEnumerable,me=(l,e,a)=>e in l?ke(l,e,{enumerable:!0,configurable:!0,writable:!0,value:a}):l[e]=a,R=(l,e)=>{for(var a in e||(e={}))qe.call(e,a)&&me(l,a,e[a]);if(re)for(var a of re(e))We.call(e,a)&&me(l,a,e[a]);return l},He=(l,e)=>Ae(l,Fe(e));const $={wrapper:{display:"flex",position:"relative",textAlign:"initial"},fullWidth:{width:"100%"},hide:{display:"none"}};function Je(l,e){const a=x(()=>{const{width:u,height:t}=l;return He(R({},$.wrapper),{width:u,height:t})}),m=x(()=>R(R({},$.fullWidth),!e.value&&$.hide));return{wrapperStyle:a,containerStyle:m}}function Xe(){const l=te(oe.__getMonacoInstance()),e=_e(!1);let a;return ve(()=>{l.value||(a=oe.init(),a.then(u=>l.value=u).catch(u=>{(u==null?void 0:u.type)!=="cancelation"&&(e.value=!0,console.error("Monaco initialization error:",u))}))}),{monacoRef:l,unload:()=>a==null?void 0:a.cancel(),isLoadFailed:e}}function fe(l){return typeof l=="function"?l():l}function ae(l){return l===void 0}function Pe(l,e,a,m){return Ge(l,m)||Ye(l,e,a,m)}function Ge(l,e){return l.editor.getModel(Ke(l,e))}function Ye(l,e,a,m){return l.editor.createModel(e,a,m?Ke(l,m):void 0)}function Ke(l,e){return l.Uri.parse(e)}var Qe=Object.defineProperty,ce=Object.getOwnPropertySymbols,Ze=Object.prototype.hasOwnProperty,Re=Object.prototype.propertyIsEnumerable,ge=(l,e,a)=>e in l?Qe(l,e,{enumerable:!0,configurable:!0,writable:!0,value:a}):l[e]=a,$e=(l,e)=>{for(var a in e||(e={}))Ze.call(e,a)&&ge(l,a,e[a]);if(ce)for(var a of ce(e))Re.call(e,a)&&ge(l,a,e[a]);return l};const xe={display:"flex",height:"100%",width:"100%",justifyContent:"center",alignItems:"center"};var Ee=Be({name:"VueMonacoEditor",model:{prop:"value",event:"update:value"},props:{defaultValue:String,defaultPath:String,defaultLanguage:String,value:String,language:String,path:String,theme:{type:String,default:"vs"},line:Number,options:{type:Object,default:()=>({})},overrideServices:{type:Object,default:()=>({})},saveViewState:{type:Boolean,default:!0},width:{type:[Number,String],default:"100%"},height:{type:[Number,String],default:"100%"},className:String},emits:["update:value","beforeMount","mount","change","validate"],setup(l,e){const a=new Map,m=te(null),{monacoRef:u,unload:t,isLoadFailed:r}=Xe(),{editorRef:s}=ea(e,l,u,m),{disposeValidator:p}=aa(e,l,u,s),V=x(()=>!!u.value&&!!s.value),{wrapperStyle:i,containerStyle:O}=Je(l,V);return Le(()=>{var c,y;(c=p.value)==null||c.call(p),s.value?((y=s.value.getModel())==null||y.dispose(),s.value.dispose()):t()}),F([()=>l.path,()=>l.value,()=>l.language,()=>l.line],([c,y,U,w],[P,L,K,E])=>{if(V.value){if(c!==P){const T=Pe(u.value,y||l.defaultValue||"",U||l.defaultLanguage||"",c||l.defaultPath||"");l.saveViewState&&a.set(P,s.value.saveViewState()),s.value.setModel(T),l.saveViewState&&s.value.restoreViewState(a.get(c)),ae(w)||s.value.revealLine(w);return}s.value.getValue()!==y&&s.value.setValue(y),U!==K&&u.value.editor.setModelLanguage(s.value.getModel(),U),!ae(w)&&w!==E&&s.value.revealLine(w)}}),F(()=>l.options,c=>s.value&&s.value.updateOptions(c),{deep:!0}),F(()=>l.theme,c=>u.value&&u.value.editor.setTheme(c)),{containerRef:m,isEditorReady:V,isLoadFailed:r,wrapperStyle:i,containerStyle:O}},render(){const{$slots:l,isEditorReady:e,isLoadFailed:a,wrapperStyle:m,containerStyle:u,className:t}=this;return X("div",{style:m},[!e&&X("div",{style:xe},a?l.failure?fe(l.failure):"load failed":l.default?fe(l.default):"loading..."),X("div",{ref:"containerRef",key:"monaco_editor_container",style:u,class:t})])}});function ea({emit:l},e,a,m){const u=te(null);ve(()=>{const r=F(a,()=>{m.value&&a.value&&(be(()=>r()),t())},{immediate:!0})});function t(){var r;if(!m.value||!a.value||u.value)return;l("beforeMount",a.value);const s=e.path||e.defaultPath,p=Pe(a.value,e.value||e.defaultValue||"",e.language||e.defaultLanguage||"",s||"");u.value=a.value.editor.create(m.value,$e({model:p,theme:e.theme,automaticLayout:!0,autoIndent:"brackets",formatOnPaste:!0,formatOnType:!0},e.options),e.overrideServices),(r=u.value)==null||r.onDidChangeModelContent(V=>{const i=u.value.getValue();i!==e.value&&(l("update:value",i),l("change",i,V))}),u.value&&!ae(e.line)&&u.value.revealLine(e.line),l("mount",u.value,a.value)}return{editorRef:u}}function aa({emit:l},e,a,m){const u=_e(null),t=F([a,m],()=>{if(a.value&&m.value){be(()=>t());const r=a.value.editoLine truncated
-1
View File
@@ -1 +0,0 @@
.v-tab{text-transform:none!important}
@@ -1 +0,0 @@
import{u as s}from"./common-40607810.js";import{o as i,l as n}from"./index-d089162b.js";const a={id:"term",style:{"background-color":"#1e1e1e",padding:"16px","border-radius":"8px","overflow-y":"scroll"}},h={name:"ConsoleDisplayer",data(){return{logColorAnsiMap:{"\x1B[1;34m":"color: #0000FF; font-weight: bold;","\x1B[1;36m":"color: #00FFFF; font-weight: bold;","\x1B[1;33m":"color: #FFFF00; font-weight: bold;","\x1B[31m":"color: #FF0000;","\x1B[1;31m":"color: #FF0000; font-weight: bold;","\x1B[0m":"color: inherit; font-weight: normal;","\x1B[32m":"color: #00FF00;",default:"color: #FFFFFF;"},logCache:s().getLogCache(),historyNum_:-1}},props:{historyNum:{type:String,default:-1}},watch:{logCache:{handler(o){this.printLog(o[this.logCache.length-1])},deep:!0}},mounted(){this.historyNum_=parseInt(this.historyNum);let o=0;for(let t of this.logCache)this.historyNum_!=-1&&o>=this.logCache.length-this.historyNum_?(this.printLog(t),++o):this.historyNum_==-1&&this.printLog(t)},methods:{printLog(o){let t=document.getElementById("term"),e=document.createElement("span"),r=this.logColorAnsiMap.default;for(let l in this.logColorAnsiMap)if(o.startsWith(l)){r=this.logColorAnsiMap[l],o=o.replace(l,"").replace("\x1B[0m","");break}e.style=r+"display: block; font-size: 12px; font-family: Consolas, monospace;",e.classList.add("fade-in"),e.innerText=o,t.appendChild(e),t.scrollTop=t.scrollHeight}}},p=Object.assign(h,{setup(o){return(t,e)=>(i(),n("div",a))}});export{p as _};
-1
View File
@@ -1 +0,0 @@
import{_ as t}from"./ConsoleDisplayer-721c13f2.js";import{o,l as s,b as n,n as e}from"./index-d089162b.js";import"./common-40607810.js";const a={style:{height:"100%"}},c=e("div",{style:{"background-color":"white",padding:"8px","padding-left":"16px","border-radius":"8px","margin-bottom":"16px",display:"flex","flex-direction":"row","align-items":"center","justify-content":"space-between"}},[e("h4",null,"控制台")],-1),i={name:"ConsolePage",components:{ConsoleDisplayer:t}},g=Object.assign(i,{setup(l){return(r,_)=>(o(),s("div",a,[c,n(t,{style:{height:"calc(100vh - 160px)"}})]))}});export{g as default};
@@ -1 +0,0 @@
@keyframes fadeIn{0%{opacity:0}to{opacity:1}}.fade-in{animation:fadeIn .2s ease-in-out}
@@ -1 +0,0 @@
import{o as i,c as _,w as e,b as t,n as a,p as m,f as p,L as x,M as l,t as u,D as h,B as r,l as y,z as S,F as w,U as c,W as T,X as C,m as M,r as L,e as j,j as B,v as D}from"./index-d089162b.js";import{_ as $}from"./_plugin-vue_export-helper-c27b6911.js";const P={class:"d-flex align-start mb-3"},F={class:"text-h1 font-weight-medium"},I=a("span",{class:"text-subtitle-1 text-medium-emphasis text-white"},"消息总数",-1),N={name:"TotalMessage",props:["stat"],data:()=>({stat:{message_count:0}}),mounted(){}},R=Object.assign(N,{setup(s){return(o,n)=>(i(),_(r,{elevation:"0",class:"bg-secondary overflow-hidden bubble-shape bubble-secondary-shape"},{default:e(()=>[t(h,null,{default:e(()=>[a("div",P,[t(m,{icon:"",rounded:"sm",color:"darksecondary",variant:"flat"},{default:e(()=>[t(p,{icon:"mdi-account-multiple-outline"})]),_:1})]),t(x,null,{default:e(()=>[t(l,{cols:"6"},{default:e(()=>[a("h2",F,u(s.stat.message_count),1),I]),_:1})]),_:1})]),_:1})]),_:1}))}}),z={class:"d-flex align-start mb-3"},H={class:"text-h1 font-weight-medium"},U=a("span",{class:"text-subtitle-1 text-medium-emphasis text-white"},"消息平台数",-1),E={name:"TotalSession",props:["stat"],data:()=>({stat:{platform_count:0}})},W=Object.assign(E,{setup(s){return(o,n)=>(i(),_(r,{elevation:"0",class:"bg-primary overflow-hidden bubble-shape bubble-primary-shape"},{default:e(()=>[t(h,null,{default:e(()=>[a("div",z,[t(m,{icon:"",rounded:"sm",color:"darkprimary",variant:"flat"},{default:e(()=>[t(p,{icon:"mdi-account-multiple-outline"})]),_:1})]),t(x,null,{default:e(()=>[t(l,{cols:"6"},{default:e(()=>[a("h2",H,u(s.stat.platform_count),1),U]),_:1})]),_:1})]),_:1})]),_:1}))}}),X={name:"OnlineTime",components:{},props:["stat"],watch:{},data:()=>({stat:{memory:"Loading",running:"Loading"}}),mounted(){}},q={class:"d-flex align-center gap-3"},A={class:"text-h4 font-weight-medium"},G=a("span",{class:"text-subtitle-2 text-medium-emphasis text-white"},"运行时间",-1),J={class:"d-flex align-center gap-3"},K={class:"text-h4 font-weight-medium"},Q=a("span",{class:"text-subtitle-2 text-disabled font-weight-medium"},"占用内存",-1);function Y(s,o,n,f,d,v){return i(),y(w,null,[t(r,{elevation:"0",class:"bg-primary overflow-hidden bubble-shape-sm bubble-primary mb-6"},{default:e(()=>[t(h,{class:"pa-5"},{default:e(()=>[a("div",q,[t(m,{color:"darkprimary",icon:"",rounded:"sm",variant:"flat"},{default:e(()=>[t(p,{icon:"mdi-clock"})]),_:1}),a("div",null,[a("h4",A,u(n.stat.running),1),G]),t(S),a("div",null,[t(m,{icon:"",rounded:"sm",variant:"plain"},{default:e(()=>[t(p,{color:"black",icon:"mdi-stop",size:"32"})]),_:1})])])]),_:1})]),_:1}),t(r,{elevation:"0",class:"bubble-shape-sm overflow-hidden bubble-warning"},{default:e(()=>[t(h,{class:"pa-5"},{default:e(()=>{var b,g;return[a("div",J,[t(m,{color:"lightwarning",icon:"",rounded:"sm",variant:"flat"},{default:e(()=>[t(p,{icon:"mdi-memory"})]),_:1}),a("div",null,[a("h4",K,u((b=n.stat.memory)==null?void 0:b.process)+" / "+u((g=n.stat.memory)==null?void 0:g.system)+" MiB",1),Q])])]}),_:1})]),_:1})],64)}const Z=$(X,[["render",Y]]),tt=a("span",{class:"text-subtitle-2 text-disabled font-weight-bold"},"总消息趋势",-1),et={class:"mt-4"},at={name:"MessageStat",components:{},props:["stat"],data:()=>({total_cnt:0,select:{state:"Today",abbr:"FL"},items:[{state:"过去 1 天",abbr:"FL"}],chartOptions1:{chart:{type:"area",height:400,fontFamily:"inherit",foreColor:"#a1aab2"},colors:["#5e35b1"],dataLabels:{enabled:!1},stroke:{curve:"smooth",width:1},tooltip:{fixed:{enabled:!1},x:{show:!0,format:"yyyy-MM-dd HH:mm"},y:{title:{formatter:()=>"消息条数 "}}},xaxis:{type:"datetime",title:{text:"时间"}},yaxis:{title:{text:"消息条数"}},grid:{show:!0}},lineChart1:{series:[{name:"消息条数",data:[]}]}}),watch:{stat:{handler:function(s,o){s=s.message_time_series,this.lineChart1.series[0].data=s.map(n=>[new Date(n[0]*1e3).getTime(),n[1]])},deep:!0}}},st=Object.assign(at,{setup(s){return(o,n)=>{const f=c("apexchart");return i(),_(r,{elevation:"0"},{default:e(()=>[t(r,{variant:"outlined"},{default:e(()=>[t(h,null,{default:e(()=>[t(x,null,{default:e(()=>[t(l,{cols:"12",sm:"7"},{default:e(()=>[tt]),_:1}),t(l,{cols:"12",sm:"5"},{default:e(()=>[t(T,{color:"primary",variant:"outlined","hide-details":"",modelValue:o.select,"onUpdate:modelValue":n[0]||(n[0]=d=>o.select=d),items:o.items,"item-title":"state","item-value":"abbr",label:"Select","persistent-hint":"","return-object":"","single-line":""},null,8,["modelValue","items"])]),_:1})]),_:1}),a("div",et,[t(f,{type:"area",height:"280",options:o.chartOptions1,series:o.lineChart1.series,ref:"rtchart"},null,8,["options","series"])])]),_:1})]),_:1})]),_:1})}}}),ot=a("div",{class:"d-flex align-center"},[a("h4",{class:"text-h4 mt-1"},"各平台消息数")],-1),nt={class:"mt-4"},lt={class:"d-inline-flex align-center justify-space-between w-100"},it={class:"text-subtitle-1 text-medium-emphasis font-weight-bold"},rt={class:"ml-auto text-subtitle-1 text-medium-emphasis font-weight-bold"},dt={class:"tLine truncated
@@ -1 +0,0 @@
import{k as A,o as d,c as r,w as a,b as e,n as s,C as V,e as u,t as p,z as k,p as g,Y as z,G as M,Z as L,D as y,B as C,l as c,_ as H,$ as N,F as f,r as x,a0 as T,H as U,a1 as q,V as O,A as B,g as v,L as b,K as w,a2 as W,v as m,a3 as Z,M as _,E as $,J as E,a4 as J,f as D,a5 as K}from"./index-d089162b.js";import{W as P}from"./WaitingForRestart-cde6f809.js";import{_ as F}from"./ConsoleDisplayer-721c13f2.js";import"./_plugin-vue_export-helper-c27b6911.js";import"./common-40607810.js";const Y={class:"d-sm-flex align-center justify-space-between"},R=A({__name:"ExtensionCard",props:{title:String,link:String},setup(n){const t=n,o=l=>{window.open(l,"_blank")};return(l,i)=>(d(),r(C,{variant:"outlined",elevation:"0",class:"withbg"},{default:a(()=>[e(z,{style:{padding:"10px 14px"}},{default:a(()=>[s("div",Y,[e(V,{style:{"font-size":"17px"}},{default:a(()=>[u(p(t.title),1)]),_:1}),e(k),e(g,{variant:"plain",onClick:i[0]||(i[0]=h=>o(t.link))},{default:a(()=>[u("仓库")]),_:1})])]),_:1}),e(M),e(y,null,{default:a(()=>[L(l.$slots,"default")]),_:3})]),_:3}))}}),Q={class:"d-sm-flex align-center justify-space-between"},X=A({__name:"UiParentCard",props:{title:String},setup(n){const t=n;return(o,l)=>(d(),r(C,{variant:"outlined",elevation:"0",class:"withbg"},{default:a(()=>[e(z,null,{default:a(()=>[s("div",Q,[e(V,null,{default:a(()=>[u(p(t.title),1)]),_:1}),L(o.$slots,"action")])]),_:3}),e(M),e(y,null,{default:a(()=>[L(o.$slots,"default")]),_:3})]),_:3}))}}),I={__name:"ConfigDetailCard",props:{config:Array},setup(n){return(t,o)=>(d(),c(f,null,[H(s("a",null,"该插件没有配置",512),[[N,n.config.length===0]]),(d(!0),c(f,null,x(n.config,l=>(d(),r(X,{key:l.name,title:l.name,style:{"margin-bottom":"16px"}},{default:a(()=>[(d(!0),c(f,null,x(l.body,i=>(d(),c(f,null,[i.config_type==="item"?(d(),c(f,{key:0},[i.val_type==="bool"?(d(),r(T,{key:0,modelValue:i.value,"onUpdate:modelValue":h=>i.value=h,label:i.name,hint:i.description,color:"primary",inset:""},null,8,["modelValue","onUpdate:modelValue","label","hint"])):i.val_type==="str"?(d(),r(U,{key:1,modelValue:i.value,"onUpdate:modelValue":h=>i.value=h,label:i.name,hint:i.description,style:{"margin-bottom":"8px"},variant:"outlined"},null,8,["modelValue","onUpdate:modelValue","label","hint"])):i.val_type==="int"?(d(),r(U,{key:2,modelValue:i.value,"onUpdate:modelValue":h=>i.value=h,label:i.name,hint:i.description,style:{"margin-bottom":"8px"},variant:"outlined"},null,8,["modelValue","onUpdate:modelValue","label","hint"])):i.val_type==="list"?(d(),c(f,{key:3},[s("span",null,p(i.name),1),e(q,{modelValue:i.value,"onUpdate:modelValue":h=>i.value=h,chips:"",clearable:"",label:"请添加",multiple:"","prepend-icon":"mdi-tag-multiple-outline"},{selection:a(({attrs:h,item:S,select:j,selected:G})=>[e(O,B(h,{"model-value":G,closable:"",onClick:j,"onClick:close":vt=>t.remove(S)}),{default:a(()=>[s("strong",null,p(S),1)]),_:2},1040,["model-value","onClick","onClick:close"])]),_:2},1032,["modelValue","onUpdate:modelValue"])],64)):v("",!0)],64)):i.config_type==="divider"?(d(),r(M,{key:1,style:{"margin-top":"8px","margin-bottom":"8px"}})):v("",!0)],64))),256))]),_:2},1032,["title"]))),128))],64))}},tt=s("div",{style:{"background-color":"white",width:"100%",padding:"16px","border-radius":"10px"}},[s("h3",null,"🧩 已安装的插件")],-1),et={style:{"min-height":"150px","max-height":"150px",overflow:"hidden"}},at={class:"d-flex align-center gap-2"},lt=s("div",{style:{"background-color":"white",width:"100%",padding:"16px","border-radius":"10px"}},[s("h3",null,"🧩 插件市场")],-1),nt={style:{"min-height":"150px","max-height":"150px",overflow:"hidden"}},ot={class:"d-flex align-center gap-2"},it=s("span",{class:"text-h5"},"插件配置",-1),st=s("span",{class:"text-h5"},"安装插件",-1),dt=s("h3",null,"从 GitHub 上在线下载",-1),ut=s("small",null,"请输入合法的 GitHub 仓库链接,当前仅支持 GitHub。如:https://github.com/Soulter/astrbot_plugin_aiocqhttp",-1),rt=s("h3",null,"从本机上传 .zip 压缩包",-1),gt=s("small",null,"请保证插件文件存在压缩包根目录中的第一个文件夹中(即类似于从 GitHub 仓库页上下载的 Zip 压缩包的格式)。",-1),pt=s("br",null,null,-1),ht={class:"text-h5"},ct={key:0,class:"py-12 text-center"},ft={class:"text-h4 font-weight-bold"},mt={style:{"margin-top":"32px"}},_t=s("h3",null,"日志",-1),kt={name:"ExtensionPage",components:{ExtensionCard:R,ConfigDetailCard:I,WaitingForRestart:P,ConsoleDisplayer:F},data(){return{extension_data:{data:[]},extension_url:"",status:"",dialog:!1,snack_message:"",snack_show:!1,snack_success:"success",loading_:!1,configDialog:!1,extension_config:{},upload_file:null,pluginMarketData:{},loadingDialog:{show:!1,title:"加载中...",statusCode:0,result:""}}},mounted(){this.getExtensions(),this.fetchPluginCollection()},methods:{toast(n,t){this.snack_message=n,this.snack_show=!0,this.snack_success=t},resetLoadingDialog(){this.loadingDialog={show:!1,title:"加载中...",statusCode:0,result:""Line truncated
@@ -1 +0,0 @@
import{_ as n}from"./_plugin-vue_export-helper-c27b6911.js";import{o as t,c as a,w as l,B as o,b as s,D as c,n as e}from"./index-d089162b.js";const r={},u=e("div",{style:{display:"flex","flex-direction":"column","justify-content":"center",padding:"24px"}},[e("h3",null,"即将支持。"),e("p",null,"AstrBot 将会支持使用消息记录微调 LLM,并强化人格功能,包括但不限于:"),e("ul",null,[e("li",null,"更像人类的回答"),e("li",null,"长期记忆"),e("li",null,"表情包理解与回复"),e("li",null,"基于兴趣的主动话题展开")])],-1);function i(d,_){return t(),a(o,null,{default:l(()=>[s(c,null,{default:l(()=>[u]),_:1})]),_:1})}const x=n(r,[["render",i]]);export{x as default};
-1
View File
@@ -1 +0,0 @@
import{d as K,o as p,c as v,a as Q,w as t,b as e,V as W,e as r,t as g,f as I,g as C,h as X,i as Y,j as O,k as E,s as Z,l as x,r as ee,F as te,m as ae,n as o,u as i,p as h,q as le,v as k,x as _,y as $,z as B,A as L,B as P,C as U,D as M,E as A,G as se,H as T,I as V,J as F,K as q,L as ie,M as oe,N as ne,O as re,P as de,Q as ue,R as me,S as ce,T as fe}from"./index-d089162b.js";import{m as H}from"./md5-cf2f62a3.js";import{u as pe}from"./common-40607810.js";const S={Sidebar_drawer:!0,Customizer_drawer:!1,mini_sidebar:!1,fontTheme:"Roboto",inputBg:!1},R=K({id:"customizer",state:()=>({Sidebar_drawer:S.Sidebar_drawer,Customizer_drawer:S.Customizer_drawer,mini_sidebar:S.mini_sidebar,fontTheme:"Poppins",inputBg:S.inputBg}),getters:{},actions:{SET_SIDEBAR_DRAWER(){this.Sidebar_drawer=!this.Sidebar_drawer},SET_MINI_SIDEBAR(a){this.mini_sidebar=a},SET_FONT(a){this.fontTheme=a}}}),he=[{title:"面板",icon:"mdi-view-dashboard",to:"/dashboard/default"},{title:"配置",icon:"mdi-cog",to:"/config"},{title:"插件",icon:"mdi-puzzle",to:"/extension"},{title:"控制台",icon:"mdi-console",to:"/console"},{title:"模型微调",icon:"mdi-grain",to:"/fine-tune"}],j={__name:"NavItem",props:{item:Object,level:Number},setup(a){return(d,u)=>(p(),v(O,{to:a.item.type==="external"?"":a.item.to,href:a.item.type==="external"?a.item.to:"",rounded:"",class:"mb-1",color:"secondary",disabled:a.item.disabled,target:a.item.type==="external"?"_blank":""},Q({prepend:t(()=>[a.item.icon?(p(),v(I,{key:0,size:a.item.iconSize,class:"hide-menu",icon:a.item.icon},null,8,["size","icon"])):C("",!0)]),default:t(()=>[e(X,null,{default:t(()=>[r(g(a.item.title),1)]),_:1}),a.item.subCaption?(p(),v(Y,{key:0,class:"text-caption mt-n1 hide-menu"},{default:t(()=>[r(g(a.item.subCaption),1)]),_:1})):C("",!0)]),_:2},[a.item.chip?{name:"append",fn:t(()=>[e(W,{color:a.item.chipColor,class:"sidebarchip hide-menu",size:a.item.chipIcon?"small":"default",variant:a.item.chipVariant,"prepend-icon":a.item.chipIcon},{default:t(()=>[r(g(a.item.chip),1)]),_:1},8,["color","size","variant","prepend-icon"])]),key:"0"}:void 0]),1032,["to","href","disabled","target"]))}},_e={class:"text-center"},ve={style:{position:"absolute",bottom:"32px",width:"100%"},class:"text-center"},be={key:1,style:{display:"block"}},Ve={key:2,style:{display:"block"}},ge=o("small",{style:{display:"block","margin-top":"8px"}},"© 2024 AstrBot",-1),ye={name:"VerticalSidebar",components:{NavItem:j},data:()=>({version:"",buildVer:""}),mounted(){this.get_version(),fetch("/assets/version").then(a=>a.text()).then(a=>{a.length>10||(this.buildVer=a)})},methods:{get_version(){k.get("/api/stat/version").then(a=>{this.version=a.data.data.version}).catch(a=>{console.log(a)})}}},we=E({...ye,setup(a){const d=R(),u=Z(he);return(f,m)=>(p(),v(le,{left:"",modelValue:i(d).Sidebar_drawer,"onUpdate:modelValue":m[0]||(m[0]=c=>i(d).Sidebar_drawer=c),elevation:"0","rail-width":"80","mobile-breakpoint":"960",app:"",class:"leftSidebar",rail:i(d).mini_sidebar},{default:t(()=>[e(ae,{class:"pa-4 listitem",style:{height:"auto"}},{default:t(()=>[(p(!0),x(te,null,ee(u.value,(c,y)=>(p(),v(j,{key:y,item:c,class:"leftPadding"},null,8,["item"]))),128))]),_:1}),o("div",_e,[e(W,{color:"inputBorder",size:"small"},{default:t(()=>[r(" v"+g(f.version),1)]),_:1})]),o("div",ve,[i(d).mini_sidebar?C("",!0):(p(),v(O,{key:0,href:"https://astrbot.soulter.top/"},{default:t(()=>[e(h,{variant:"plain",size:"small"},{default:t(()=>[r(" 🤔 初次使用?点击查看文档! ")]),_:1})]),_:1})),f.buildVer?(p(),x("small",be,"构建: "+g(f.buildVer),1)):(p(),x("small",Ve,"构建: embedded")),ge])]),_:1},8,["modelValue","rail"]))}}),Se=o("span",{style:{"margin-left":"16px","font-size":"24px","font-weight":"1000"}},[r("Astr"),o("span",{style:{"font-weight":"normal"}},"Bot")],-1),xe={class:"mr-4"},ke={key:0},Ce=o("span",{class:"text-h5"},"更新项目",-1),ze=o("h3",{class:"mb-4"},"升级到最新版本",-1),Be={style:{"margin-top":"16px"}},Te=o("h3",{class:"mb-4"},"切换到指定版本或指定提交",-1),Ie=o("div",{class:"mb-4"},[o("small",null,"如 v3.3.16 (不带 SHA) 或 42e5ec5d80b93b6bfe8b566754d45ffac4c3fe0b"),o("br"),o("a",{href:"https://github.com/Soulter/AstrBot/commits/master"},[o("small",null,"查看 master 分支提交记录(点击右边的 copy 即可复制)")])],-1),Ae=o("span",{class:"text-h5"},"密码修改",-1),Ee=o("small",null,"如果是第一次修改密码,原密码请留空。",-1),Re=o("br",null,null,-1),Ne=E({__name:"VerticalHeader",setup(a){const d=R();let u=_(!1),f=_(!1),m=_(""),c=_(""),y=_(""),b=_(""),z=_(!1),w=_("");const G=n=>{window.open(n,"_blank")};function J(){m.value!=""&&(m.value=H.md5(m.value)),c.value=H.md5(c.value),k.post("/api/auth/password/reset",{password:m.value,new_password:c.value}).then(n=>{if(n.data.status=="error"){y.value=n.data.message,m.value="",c.value="";return}u.value=!u.value,y.value=n.data.message,setTimeout(()=>{re().logout()},1e3)}).catch(n=>{console.log(n),y.value=n,m.value="",c.value=""})}function N(Line truncated
-5
View File
@@ -1,5 +0,0 @@
import{k as Ie,al as we,am as yt,a8 as gt,x as T,an as Te,X as w,u as B,ab as X,a9 as bt,I as Ce,a7 as Be,ao as _t,ap as Ot,aq as Vt,ar as q,s as St,o as Ne,c as Et,w as oe,b as L,H as $e,e as He,p as At,l as Qe,t as jt,a3 as wt,g as Ft,n as ge,O as Pt,U as Tt,D as Ct,B as Bt}from"./index-d089162b.js";import{a as Nt}from"./md5-cf2f62a3.js";/**
* vee-validate v4.11.3
* (c) 2023 Abdelrahman Awad
* @license MIT
*/function N(e){return typeof e=="function"}function Ze(e){return e==null}const Q=e=>e!==null&&!!e&&typeof e=="object"&&!Array.isArray(e);function ke(e){return Number(e)>=0}function It(e){return typeof e=="object"&&e!==null}function kt(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}function Rt(e){if(!It(e)||kt(e)!=="[object Object]")return!1;if(Object.getPrototypeOf(e)===null)return!0;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function ye(e,t){return Object.keys(t).forEach(n=>{if(Rt(t[n])){e[n]||(e[n]={}),ye(e[n],t[n]);return}e[n]=t[n]}),e}function pe(e){const t=e.split(".");if(!t.length)return"";let n=String(t[0]);for(let i=1;i<t.length;i++){if(ke(t[i])){n+=`[${t[i]}]`;continue}n+=`.${t[i]}`}return n}const Mt={};function Ut(e){return Mt[e]}const Dt=Symbol("vee-validate-form"),zt=typeof window<"u";function xt(e){return N(e)&&!!e.__locatorRef}function Z(e){return!!e&&N(e.parse)&&e.__type==="VVTypedSchema"}function et(e){return!!e&&N(e.validate)}function Lt(e){return e==="checkbox"||e==="radio"}function $t(e){return Q(e)||Array.isArray(e)}function Ht(e){return Array.isArray(e)?e.length===0:Q(e)&&Object.keys(e).length===0}function be(e){return/^\[.+\]$/i.test(e)}function qt(e){return tt(e)&&e.multiple}function tt(e){return e.tagName==="SELECT"}function nt(e){return Re(e)&&e.target&&"submit"in e.target}function Re(e){return e?!!(typeof Event<"u"&&N(Event)&&e instanceof Event||e&&e.srcElement):!1}function se(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var n,i,l;if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(i=n;i--!==0;)if(!se(e[i],t[i]))return!1;return!0}if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(i of e.entries())if(!t.has(i[0]))return!1;for(i of e.entries())if(!se(i[1],t.get(i[0])))return!1;return!0}if(qe(e)&&qe(t))return!(e.size!==t.size||e.name!==t.name||e.lastModified!==t.lastModified||e.type!==t.type);if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(i of e.entries())if(!t.has(i[0]))return!1;return!0}if(ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(n=e.length,n!=t.length)return!1;for(i=n;i--!==0;)if(e[i]!==t[i])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();for(l=Object.keys(e),n=l.length,i=n;i--!==0;){var o=l[i];if(!se(e[o],t[o]))return!1}return!0}return e!==e&&t!==t}function qe(e){return zt?e instanceof File:!1}function Ge(e,t,n){typeof n.value=="object"&&(n.value=O(n.value)),!n.enumerable||n.get||n.set||!n.configurable||!n.writable||t==="__proto__"?Object.defineProperty(e,t,n):e[t]=n.value}function O(e){if(typeof e!="object")return e;var t=0,n,i,l,o=Object.prototype.toString.call(e);if(o==="[object Object]"?l=Object.create(e.__proto__||null):o==="[object Array]"?l=Array(e.length):o==="[object Set]"?(l=new Set,e.forEach(function(c){l.add(O(c))})):o==="[object Map]"?(l=new Map,e.forEach(function(c,v){l.set(O(v),O(c))})):o==="[object Date]"?l=new Date(+e):o==="[object RegExp]"?l=new RegExp(e.source,e.flags):o==="[object DataView]"?l=new e.constructor(O(e.buffer)):o==="[object ArrayBuffer]"?l=e.slice(0):o.slice(-6)==="Array]"&&(l=new e.constructor(e)),l){for(i=Object.getOwnPropertySymbols(e);t<i.length;t++)Ge(l,i[t],Object.getOwnPropertyDescriptor(e,i[t]));for(t=0,i=Object.getOwnPropertyNames(e);t<i.length;t++)Object.hasOwnProperty.call(l,n=i[t])&&l[n]===e[n]||Ge(l,n,Object.getOwnPropertyDescriptor(e,n))}return l||e}function Me(e){return be(e)?e.replace(/\[|\]/gi,""):e}function M(e,t,n){return e?be(t)?e[Me(t)]:(t||"").split(/\.|\[(\d+)\]/).filter(Boolean).reduce((l,o)=>$t(l)&&o in l?l[o]:n,e):n}function G(e,t,n){if(be(t)){e[Me(t)]=n;return}const i=t.split(/\.|\[(\d+)\]/).filter(Boolean);let l=e;for(let o=0;o<i.length;o++){if(o===i.length-1){l[i[o]]=n;return}(!(i[o]in l)||Ze(l[i[o]]))&&(l[i[o]]=ke(i[o+1])?[]:{}),l=l[i[o]]}}function Fe(e,t){if(Array.isArray(e)&&ke(t)){e.splice(Number(t),1);return}Q(e)&&delete e[t]}function We(e,t){if(be(t)){delete e[Me(t)];return}const n=t.split(/\.|\[(\d+)\]/).filter(Boolean);let i=e;for(let o=0;o<n.length;o++){if(o===n.length-1){Fe(i,n[o]);break}if(!(n[o]in i)||Ze(i[n[o]]))break;i=i[n[o]]}const l=n.map((o,c)=>M(e,n.slice(0,c).join(".")));for(let o=l.length-1;o>=0;o--)if(Ht(l[o])){if(o===0){Fe(e,n[0]);continue}Fe(l[o-1],n[o-1])}}function R(e){return Object.keys(e)}function Ye(e,t=0){let n=null,i=[];return function(...l){return n&&clearTimeout(n),n=setTimeout(()=>{const o=e(...l);i.forEach(c=>c(o)),i=[]},t),new Promise(o=>i.push(o))}}function Gt(e,t){let n;return async function(...l){const o=e(...l);n=o;const c=await o;return o!==n||(n=void 0,t(c,l)),c}}function Ke(e){return Array.isArray(e)?e:e?[e]:[]}function le(e,t){const n={};for(Line truncated
-1
View File
@@ -1 +0,0 @@
.custom-devider{border-color:#00000014!important}.googleBtn{border-color:#00000014;margin:30px 0 20px}.outlinedInput .v-field{border:1px solid rgba(0,0,0,.08);box-shadow:none}.orbtn{padding:2px 40px;border-color:#00000014;margin:20px 15px}.pwdInput{position:relative}.pwdInput .v-input__append{position:absolute;right:10px;top:50%;transform:translateY(-50%)}.loginForm .v-text-field .v-field--active input{font-weight:500}.loginBox{max-width:475px;margin:0 auto}
@@ -1 +0,0 @@
import{v as m,o as e,c as u,w as a,b as s,B as d,C as T,e as _,D as p,a5 as w,n,l as r,f,g as o,t as l,K as y}from"./index-d089162b.js";import{_ as S}from"./_plugin-vue_export-helper-c27b6911.js";const k={name:"WaitingForRestart",data(){return{visible:!1,startTime:-1,newStartTime:-1,status:"",cnt:0}},methods:{async check(){this.newStartTime=-1,this.startTime=-1,this.visible=!0,this.status="",console.log("start wfr"),await this.getStartTime(),setTimeout(()=>{this.timeoutInternal()},1e3)},timeoutInternal(){console.log("wfr: timeoutInternal",this.newStartTime,this.startTime),this.newStartTime===-1&&this.cnt<15&&this.visible?(this.checkStartTime(),this.cnt++,setTimeout(()=>{this.timeoutInternal()},1e3)):(this.cnt==10&&(this.status="拉取状态达到最大次数,请手动检查。"),this.cnt=0,setTimeout(()=>{this.visible=!1},1e3))},async getStartTime(){m.get("/api/stat/start-time",{timeout:3e3}).then(i=>{this.startTime=i.data.data.start_time})},async checkStartTime(){let i=await m.get("/api/stat/start-time",{timeout:3e3});return this.newStartTime=i.data.data.start_time,console.log("wfr: checkStartTime",this.newStartTime,this.startTime),this.newStartTime!==this.startTime&&(console.log("wfr: restarted"),setTimeout(()=>{this.visible=!1,window.location.reload()},2e3)),this.newStartTime}}},g={style:{"margin-top":"16px"}},b={key:0,class:"py-12 text-center"},V=n("p",null,"重启成功!",-1),v={key:1,style:{display:"block"}},x={key:2,style:{display:"block"}},B={key:3,style:{display:"block"}},C={style:{display:"block"}};function I(i,c,N,D,t,W){return e(),u(y,{modelValue:t.visible,"onUpdate:modelValue":c[0]||(c[0]=h=>t.visible=h),persistent:"","max-width":"400"},{default:a(()=>[s(d,null,{default:a(()=>[s(T,null,{default:a(()=>[_("正在等待 AstrBot 重启...")]),_:1}),s(p,null,{default:a(()=>[s(w,{indeterminate:"",color:"primary"}),n("div",g,[t.newStartTime!=-1?(e(),r("div",b,[s(f,{class:"mb-6",color:"success",icon:"mdi-check-circle-outline",size:"128"}),V])):o("",!0),t.startTime!=-1?(e(),r("small",v,"当前实例标识:"+l(t.startTime),1)):o("",!0),t.newStartTime!=-1?(e(),r("small",x,"检查到新实例:"+l(t.newStartTime)+",即将自动刷新页面",1)):o("",!0),t.status?(e(),r("small",B,l(t.status),1)):o("",!0),n("small",C,"次数:"+l(t.cnt)+" / 15",1)])]),_:1})]),_:1})]),_:1},8,["modelValue"])}const z=S(k,[["render",I]]);export{z as W};
@@ -1 +0,0 @@
const s=(t,r)=>{const o=t.__vccOpts||t;for(const[c,e]of r)o[c]=e;return o};export{s as _};
-1
View File
@@ -1 +0,0 @@
import{d as l}from"./index-d089162b.js";const i=l({id:"common",state:()=>({websocket:null,log_cache:[],log_cache_max_len:1e3}),actions:{createWebSocket(){if(this.websocket)return;let e=window.location.protocol==="https:"?"wss":"ws",t="/api/live-log",c=window.location.port,o=`${e}://${window.location.hostname}:${c}${t}`;console.log("websocket url:",o),this.websocket=new WebSocket(o),this.websocket.onmessage=s=>{this.log_cache.push(s.data),this.log_cache.length>this.log_cache_max_len&&this.log_cache.shift()}},getLogCache(){return this.log_cache}}});export{i as u};
-727
View File
@@ -1,727 +0,0 @@
(function(){const a=document.createElement("link").relList;if(a&&a.supports&&a.supports("modulepreload"))return;for(const l of document.querySelectorAll('link[rel="modulepreload"]'))r(l);new MutationObserver(l=>{for(const u of l)if(u.type==="childList")for(const f of u.addedNodes)f.tagName==="LINK"&&f.rel==="modulepreload"&&r(f)}).observe(document,{childList:!0,subtree:!0});function i(l){const u={};return l.integrity&&(u.integrity=l.integrity),l.referrerPolicy&&(u.referrerPolicy=l.referrerPolicy),l.crossOrigin==="use-credentials"?u.credentials="include":l.crossOrigin==="anonymous"?u.credentials="omit":u.credentials="same-origin",u}function r(l){if(l.ep)return;l.ep=!0;const u=i(l);fetch(l.href,u)}})();function mx(e,a){const i=Object.create(null),r=e.split(",");for(let l=0;l<r.length;l++)i[r[l]]=!0;return a?l=>!!i[l.toLowerCase()]:l=>!!i[l]}const px=()=>{},lu=Object.assign,bx=Object.prototype.hasOwnProperty,yo=(e,a)=>bx.call(e,a),da=Array.isArray,$r=e=>dg(e)==="[object Map]",cu=e=>typeof e=="function",xx=e=>typeof e=="string",uu=e=>typeof e=="symbol",rr=e=>e!==null&&typeof e=="object",yx=Object.prototype.toString,dg=e=>yx.call(e),wx=e=>dg(e).slice(8,-1),du=e=>xx(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,hu=(e,a)=>!Object.is(e,a),Sx=(e,a,i)=>{Object.defineProperty(e,a,{configurable:!0,enumerable:!1,value:i})};let bn;class fu{constructor(a=!1){this.detached=a,this._active=!0,this.effects=[],this.cleanups=[],this.parent=bn,!a&&bn&&(this.index=(bn.scopes||(bn.scopes=[])).push(this)-1)}get active(){return this._active}run(a){if(this._active){const i=bn;try{return bn=this,a()}finally{bn=i}}}on(){bn=this}off(){bn=this.parent}stop(a){if(this._active){let i,r;for(i=0,r=this.effects.length;i<r;i++)this.effects[i].stop();for(i=0,r=this.cleanups.length;i<r;i++)this.cleanups[i]();if(this.scopes)for(i=0,r=this.scopes.length;i<r;i++)this.scopes[i].stop(!0);if(!this.detached&&this.parent&&!a){const l=this.parent.scopes.pop();l&&l!==this&&(this.parent.scopes[this.index]=l,l.index=this.index)}this.parent=void 0,this._active=!1}}}function es(e){return new fu(e)}function hg(e,a=bn){a&&a.active&&a.effects.push(e)}function gu(){return bn}function nn(e){bn&&bn.cleanups.push(e)}const vu=e=>{const a=new Set(e);return a.w=0,a.n=0,a},fg=e=>(e.w&Da)>0,gg=e=>(e.n&Da)>0,kx=({deps:e})=>{if(e.length)for(let a=0;a<e.length;a++)e[a].w|=Da},Cx=e=>{const{deps:a}=e;if(a.length){let i=0;for(let r=0;r<a.length;r++){const l=a[r];fg(l)&&!gg(l)?l.delete(e):a[i++]=l,l.w&=~Da,l.n&=~Da}a.length=i}},to=new WeakMap;let ks=0,Da=1;const Ul=30;let zn;const li=Symbol(""),ql=Symbol("");class or{constructor(a,i=null,r){this.fn=a,this.scheduler=i,this.active=!0,this.deps=[],this.parent=void 0,hg(this,r)}run(){if(!this.active)return this.fn();let a=zn,i=Ma;for(;a;){if(a===this)return;a=a.parent}try{return this.parent=zn,zn=this,Ma=!0,Da=1<<++ks,ks<=Ul?kx(this):Yd(this),this.fn()}finally{ks<=Ul&&Cx(this),Da=1<<--ks,zn=this.parent,Ma=i,this.parent=void 0,this.deferStop&&this.stop()}}stop(){zn===this?this.deferStop=!0:this.active&&(Yd(this),this.onStop&&this.onStop(),this.active=!1)}}function Yd(e){const{deps:a}=e;if(a.length){for(let i=0;i<a.length;i++)a[i].delete(e);a.length=0}}function Ax(e,a){e.effect&&(e=e.effect.fn);const i=new or(e);a&&(lu(i,a),a.scope&&hg(i,a.scope)),(!a||!a.lazy)&&i.run();const r=i.run.bind(i);return r.effect=i,r}function Px(e){e.effect.stop()}let Ma=!0;const vg=[];function ts(){vg.push(Ma),Ma=!1}function ns(){const e=vg.pop();Ma=e===void 0?!0:e}function fn(e,a,i){if(Ma&&zn){let r=to.get(e);r||to.set(e,r=new Map);let l=r.get(i);l||r.set(i,l=vu()),mg(l)}}function mg(e,a){let i=!1;ks<=Ul?gg(e)||(e.n|=Da,i=!fg(e)):i=!e.has(zn),i&&(e.add(zn),zn.deps.push(e))}function ga(e,a,i,r,l,u){const f=to.get(e);if(!f)return;let m=[];if(a==="clear")m=[...f.values()];else if(i==="length"&&da(e)){const x=Number(r);f.forEach((w,C)=>{(C==="length"||C>=x)&&m.push(w)})}else switch(i!==void 0&&m.push(f.get(i)),a){case"add":da(e)?du(i)&&m.push(f.get("length")):(m.push(f.get(li)),$r(e)&&m.push(f.get(ql)));break;case"delete":da(e)||(m.push(f.get(li)),$r(e)&&m.push(f.get(ql)));break;case"set":$r(e)&&m.push(f.get(li));break}if(m.length===1)m[0]&&Kl(m[0]);else{const x=[];for(const w of m)w&&x.push(...w);Kl(vu(x))}}function Kl(e,a){const i=da(e)?e:[...e];for(const r of i)r.computed&&Wd(r);for(const r of i)r.computed||Wd(r)}function Wd(e,a){(e!==zn||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}function Ex(e,a){var i;return(i=to.get(e))==null?void 0:i.get(a)}const Tx=mx("__proto__,__v_isRef,__isVue"),pg=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(uu)),Ix=wo(),Lx=wo(!1,!0),_x=wo(!0),Rx=wo(!0,!0),jd=Ox();function Ox(){const e={};return["includes","indexOf","lastIndexOf"].forEach(a=>{e[a]=function(...i){const r=nt(this);for(let u=0,f=this.length;u<f;u++)fn(r,"get",u+"");const l=r[a](...i);return l===-1||l===!1?r[a](...i.map(nt)):l}}),["push","pop","shift","unshift","splice"].forEach(a=>{e[a]=funLine truncated
* pinia v2.1.6
* (c) 2023 Eduardo San Martin Morote
* @license MIT
*/let Uv;const Xo=e=>Uv=e,qv=Symbol();function bc(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var Ms;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(Ms||(Ms={}));function t1(){const e=es(!0),a=e.run(()=>Oe({}));let i=[],r=[];const l=lr({install(u){Xo(l),l._a=u,u.provide(qv,l),u.config.globalProperties.$pinia=l,r.forEach(f=>i.push(f)),r=[]},use(u){return!this._a&&!e1?r.push(u):i.push(u),this},_p:i,_a:null,_e:e,_s:new Map,state:a});return l}const Kv=()=>{};function Ih(e,a,i,r=Kv){e.push(a);const l=()=>{const u=e.indexOf(a);u>-1&&(e.splice(u,1),r())};return!i&&gu()&&nn(l),l}function Oi(e,...a){e.slice().forEach(i=>{i(...a)})}const n1=e=>e();function xc(e,a){e instanceof Map&&a instanceof Map&&a.forEach((i,r)=>e.set(r,i)),e instanceof Set&&a instanceof Set&&a.forEach(e.add,e);for(const i in a){if(!a.hasOwnProperty(i))continue;const r=a[i],l=e[i];bc(l)&&bc(r)&&e.hasOwnProperty(i)&&!yt(r)&&!ha(r)?e[i]=xc(l,r):e[i]=r}return e}const a1=Symbol();function i1(e){return!bc(e)||!e.hasOwnProperty(a1)}const{assign:_a}=Object;function s1(e){return!!(yt(e)&&e.effect)}function r1(e,a,i,r){const{state:l,actions:u,getters:f}=a,m=i.state.value[e];let x;function w(){m||(i.state.value[e]=l?l():{});const C=cr(i.state.value[e]);return _a(C,u,Object.keys(f||{}).reduce((A,E)=>(A[E]=lr($(()=>{Xo(i);const _=i._s.get(e);return f[E].call(_,_)})),A),{}))}return x=Zv(e,w,a,i,r,!0),x}function Zv(e,a,i={},r,l,u){let f;const m=_a({actions:{}},i),x={deep:!0};let w,C,A=[],E=[],_;const V=r.state.value[e];!u&&!V&&(r.state.value[e]={}),Oe({});let D;function X(j){let G;w=C=!1,typeof j=="function"?(j(r.state.value[e]),G={type:Ms.patchFunction,storeId:e,events:_}):(xc(r.state.value[e],j),G={type:Ms.patchObject,payload:j,storeId:e,events:_});const ee=D=Symbol();gt().then(()=>{D===ee&&(w=!0)}),C=!0,Oi(A,G,r.state.value[e])}const B=u?function(){const{state:G}=i,ee=G?G():{};this.$patch(ie=>{_a(ie,ee)})}:Kv;function L(){f.stop(),A=[],E=[],r._s.delete(e)}function W(j,G){return function(){Xo(r);const ee=Array.from(arguments),ie=[],ne=[];function oe(we){ie.push(we)}function le(we){ne.push(we)}Oi(E,{args:ee,name:j,store:N,after:oe,onError:le});let Ae;try{Ae=G.apply(this&&this.$id===e?this:N,ee)}catch(we){throw Oi(ne,we),we}return Ae instanceof Promise?Ae.then(we=>(Oi(ie,we),we)).catch(we=>(Oi(ne,we),Promise.reject(we))):(Oi(ie,Ae),Ae)}}const Y={_p:r,$id:e,$onAction:Ih.bind(null,E),$patch:X,$reset:B,$subscribe(j,G={}){const ee=Ih(A,j,G.detached,()=>ie()),ie=f.run(()=>He(()=>r.state.value[e],ne=>{(G.flush==="sync"?C:w)&&j({storeId:e,type:Ms.direct,events:_},ne)},_a({},x,G)));return ee},$dispose:L},N=Gt(Y);r._s.set(e,N);const J=r._a&&r._a.runWithContext||n1,Q=r._e.run(()=>(f=es(),J(()=>f.run(a))));for(const j in Q){const G=Q[j];if(yt(G)&&!s1(G)||ha(G))u||(V&&i1(G)&&(yt(G)?G.value=V[j]:xc(G,V[j])),r.state.value[e][j]=G);else if(typeof G=="function"){const ee=W(j,G);Q[j]=ee,m.actions[j]=G}}return _a(N,Q),_a(nt(N),Q),Object.defineProperty(N,"$state",{get:()=>r.state.value[e],set:j=>{X(G=>{_a(G,j)})}}),r._p.forEach(j=>{_a(N,f.run(()=>j({store:N,app:r._a,pinia:r,options:m})))}),V&&u&&i.hydrate&&i.hydrate(N.$state,V),w=!0,C=!0,N}function o1(e,a,i){let r,l;const u=typeof a=="function";typeof e=="string"?(r=e,l=u?i:a):(l=e,r=e.id);function f(m,x){const w=nv();return m=m||(w?ut(qv,null):null),m&&Xo(m),m=Uv,m._s.has(r)||(u?Zv(r,a,l,m):r1(r,l,m)),m._s.get(r)}return f.$id=r,f}/*!
* vue-router v4.2.4
* (c) 2023 Eduardo San Martin Morote
* @license MIT
*/const zi=typeof window<"u";function l1(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const mt=Object.assign;function _l(e,a){const i={};for(const r in a){const l=a[r];i[r]=Gn(l)?l.map(e):e(l)}return i}const Fs=()=>{},Gn=Array.isArray,c1=/\/$/,u1=e=>e.replace(c1,"");function Rl(e,a,i="/"){let r,l={},u="",f="";const m=a.indexOf("#");let x=a.indexOf("?");return m<x&&m>=0&&(x=-1),x>-1&&(r=a.slice(0,x),u=a.slice(x+1,m>-1?m:a.length),l=e(u)),m>-1&&(r=r||a.slice(0,m),f=a.slice(m,a.length)),r=g1(r??a,i),{fullPath:r+(u&&"?")+u+f,path:r,query:l,hash:f}}function d1(e,a){const i=a.query?e(a.query):"";return a.path+(i&&"?")+i+(a.hash||"")}function Lh(e,a){return!a||!e.toLowerCase().startsWith(a.toLowerCase())?e:e.slice(a.length)||"/"}function h1(e,a,i){const r=a.matched.length-1,l=i.matched.length-1;return r>-1&&r===l&&Ui(a.matched[r],i.matched[l])&&Jv(a.params,i.params)&&e(a.query)===e(i.query)&&a.hash===i.hash}function Ui(e,a){return(e.aliasOf||e)===(a.aliasOf||a)}function Jv(e,a){if(Object.keys(e).length!==Object.keys(a).length)return!1;for(const i in e)if(!f1(e[i],a[i]))return!1;return!0}function f1(e,a){return Gn(e)?_h(e,a):Gn(a)?_h(a,e):e===a}function _h(e,a){return Gn(a)?e.length===a.length&&e.every((i,r)=>i===a[r]):e.length===1&&e[0]===a}function g1(e,a){if(e.startsWith("/"))return e;if(!e)return a;const i=a.split("/"),r=e.split("/"),l=r[r.length-1];(l===".."||l===".")&&r.push("");let u=i.length-1,f,m;for(f=0;f<r.length;f++)if(m=r[f],m!==".")if(m==="..")u>1&&u--;else break;return i.slice(0,u).join("/")+"/"+r.slice(f-(f===r.length?1:0)).join("/")}var Ks;(function(e){e.pop="pop",e.push="push"})(Ks||(Ks={}));var Bs;(function(e){e.back="back",e.forward="forward",e.unknown=""})(Bs||(Bs={}));function v1(e){if(!e)if(zi){const a=document.querySelector("base");e=a&&a.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),u1(e)}const m1=/^[^#]+#/;function p1(e,a){return e.replace(m1,"#")+a}function b1(e,a){const i=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:a.behavior,left:r.left-i.left-(a.left||0),top:r.top-i.top-(a.top||0)}}const Yo=()=>({left:window.pageXOffset,top:window.pageYOffset});function x1(e){let a;if("el"in e){const i=e.el,r=typeof i=="string"&&i.startsWith("#"),l=typeof i=="string"?r?document.getElementById(i.slice(1)):document.querySelector(i):i;if(!l)return;a=b1(l,e)}else a=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(a):window.scrollTo(a.left!=null?a.left:window.pageXOffset,a.top!=null?a.top:window.pageYOffset)}function Rh(e,a){return(history.state?history.state.position-a:-1)+e}const yc=new Map;function y1(e,a){yc.set(e,a)}function w1(e){const a=yc.get(e);return yc.delete(e),a}let S1=()=>location.protocol+"//"+location.host;function Qv(e,a){const{pathname:i,search:r,hash:l}=a,u=e.indexOf("#");if(u>-1){let m=l.includes(e.slice(u))?e.slice(u).length:1,x=l.slice(m);return x[0]!=="/"&&(x="/"+x),Lh(x,"")}return Lh(i,e)+r+l}function k1(e,a,i,r){let l=[],u=[],f=null;const m=({state:E})=>{const _=Qv(e,location),V=i.value,D=a.value;let X=0;if(E){if(i.value=_,a.value=E,f&&f===V){f=null;return}X=D?E.position-D.position:0}else r(_);l.forEach(B=>{B(i.value,V,{delta:X,type:Ks.pop,direction:X?X>0?Bs.forward:Bs.back:Bs.unknown})})};function x(){f=i.value}function w(E){l.push(E);const _=()=>{const V=l.indexOf(E);V>-1&&l.splice(V,1)};return u.push(_),_}function C(){const{history:E}=window;E.state&&E.replaceState(mt({},E.state,{scroll:Yo()}),"")}function A(){for(const E of u)E();u=[],window.removeEventListener("popstate",m),window.removeEventListener("beforeunload",C)}return window.addEventListener("popstate",m),window.addEventListener("beforeunload",C,{passive:!0}),{pauseListeners:x,listen:w,destroy:A}}function Oh(e,a,i,r=!1,l=!1){return{back:e,current:a,forward:i,replaced:r,position:window.history.length,scroll:l?Yo():null}}function C1(e){const{history:a,location:i}=window,r={value:Qv(e,i)},l={value:a.state};l.value||u(r.value,{back:null,current:r.value,forward:null,position:a.length-1,replaced:!0,scroll:null},!0);function u(x,w,C){const A=e.indexOf("#"),E=A>-1?(i.host&&document.querySelector("base")?e:e.slice(A))+x:S1()+e+x;try{a[C?"replaceState":"pushState"](w,"",E),l.value=w}catch(_){console.error(_),i[C?"replace":"assign"](E)}}function f(x,w){const C=mt({},a.state,Oh(l.value.back,x,l.value.forward,!0),w,{position:l.value.position});u(x,C,!0),r.value=x}function m(x,w){const C=mt({},l.value,a.state,{forward:x,scroll:Yo()});u(C.current,C,!0);const A=mt({},Oh(r.value,x,null),{position:C.position+1},w);u(x,A,!1),r.value=x}return{location:r,state:l,push:m,replace:f}}function A1(e){e=v1(e);const a=C1(e),i=k1(e,a.state,a.location,a.replace);function r(u,f=!0){f||i.pauseListeners(),history.go(u)}const l=mt({location:"",base:e,go:r,createHref:p1.bind(null,e)},a,i);return Object.defineProperty(l,"location",{enumerable:!0,get:()=>a.location.value}),Object.defineProperty(l,"state",{enumerLine truncated
`).forEach(function(f){l=f.indexOf(":"),i=f.substring(0,l).trim().toLowerCase(),r=f.substring(l+1).trim(),!(!i||a[i]&&pk[i])&&(i==="set-cookie"?a[i]?a[i].push(r):a[i]=[r]:a[i]=a[i]?a[i]+", "+r:r)}),a},Jh=Symbol("internals");function ys(e){return e&&String(e).trim().toLowerCase()}function Kr(e){return e===!1||e==null?e:xe.isArray(e)?e.map(Kr):String(e)}function xk(e){const a=Object.create(null),i=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=i.exec(e);)a[r[1]]=r[2];return a}const yk=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Ml(e,a,i,r,l){if(xe.isFunction(r))return r.call(this,a,i);if(l&&(a=i),!!xe.isString(a)){if(xe.isString(r))return a.indexOf(r)!==-1;if(xe.isRegExp(r))return r.test(a)}}function wk(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(a,i,r)=>i.toUpperCase()+r)}function Sk(e,a){const i=xe.toCamelCase(" "+a);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+i,{value:function(l,u,f){return this[r].call(this,a,l,u,f)},configurable:!0})})}class Uo{constructor(a){a&&this.set(a)}set(a,i,r){const l=this;function u(m,x,w){const C=ys(x);if(!C)throw new Error("header name must be a non-empty string");const A=xe.findKey(l,C);(!A||l[A]===void 0||w===!0||w===void 0&&l[A]!==!1)&&(l[A||x]=Kr(m))}const f=(m,x)=>xe.forEach(m,(w,C)=>u(w,C,x));if(xe.isPlainObject(a)||a instanceof this.constructor)f(a,i);else if(xe.isString(a)&&(a=a.trim())&&!yk(a))f(bk(a),i);else if(xe.isHeaders(a))for(const[m,x]of a.entries())u(x,m,r);else a!=null&&u(i,a,r);return this}get(a,i){if(a=ys(a),a){const r=xe.findKey(this,a);if(r){const l=this[r];if(!i)return l;if(i===!0)return xk(l);if(xe.isFunction(i))return i.call(this,l,r);if(xe.isRegExp(i))return i.exec(l);throw new TypeError("parser must be boolean|regexp|function")}}}has(a,i){if(a=ys(a),a){const r=xe.findKey(this,a);return!!(r&&this[r]!==void 0&&(!i||Ml(this,this[r],r,i)))}return!1}delete(a,i){const r=this;let l=!1;function u(f){if(f=ys(f),f){const m=xe.findKey(r,f);m&&(!i||Ml(r,r[m],m,i))&&(delete r[m],l=!0)}}return xe.isArray(a)?a.forEach(u):u(a),l}clear(a){const i=Object.keys(this);let r=i.length,l=!1;for(;r--;){const u=i[r];(!a||Ml(this,this[u],u,a,!0))&&(delete this[u],l=!0)}return l}normalize(a){const i=this,r={};return xe.forEach(this,(l,u)=>{const f=xe.findKey(r,u);if(f){i[f]=Kr(l),delete i[u];return}const m=a?wk(u):String(u).trim();m!==u&&delete i[u],i[m]=Kr(l),r[m]=!0}),this}concat(...a){return this.constructor.concat(this,...a)}toJSON(a){const i=Object.create(null);return xe.forEach(this,(r,l)=>{r!=null&&r!==!1&&(i[l]=a&&xe.isArray(r)?r.join(", "):r)}),i}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([a,i])=>a+": "+i).join(`
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(a){return a instanceof this?a:new this(a)}static concat(a,...i){const r=new this(a);return i.forEach(l=>r.set(l)),r}static accessor(a){const r=(this[Jh]=this[Jh]={accessors:{}}).accessors,l=this.prototype;function u(f){const m=ys(f);r[m]||(Sk(l,f),r[m]=!0)}return xe.isArray(a)?a.forEach(u):u(a),this}}Uo.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);xe.reduceDescriptors(Uo.prototype,({value:e},a)=>{let i=a[0].toUpperCase()+a.slice(1);return{get:()=>e,set(r){this[i]=r}}});xe.freezeMethods(Uo);const Wn=Uo;function Fl(e,a){const i=this||Zu,r=a||i,l=Wn.from(r.headers);let u=r.data;return xe.forEach(e,function(m){u=m.call(i,u,l.normalize(),a?a.status:void 0)}),l.normalize(),u}function Am(e){return!!(e&&e.__CANCEL__)}function ss(e,a,i){it.call(this,e??"canceled",it.ERR_CANCELED,a,i),this.name="CanceledError"}xe.inherits(ss,it,{__CANCEL__:!0});function Pm(e,a,i){const r=i.config.validateStatus;!i.status||!r||r(i.status)?e(i):a(new it("Request failed with status code "+i.status,[it.ERR_BAD_REQUEST,it.ERR_BAD_RESPONSE][Math.floor(i.status/100)-4],i.config,i.request,i))}function kk(e){const a=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return a&&a[1]||""}function Ck(e,a){e=e||10;const i=new Array(e),r=new Array(e);let l=0,u=0,f;return a=a!==void 0?a:1e3,function(x){const w=Date.now(),C=r[u];f||(f=w),i[l]=x,r[l]=w;let A=u,E=0;for(;A!==l;)E+=i[A++],A=A%e;if(l=(l+1)%e,l===u&&(u=(u+1)%e),w-f<a)return;const _=C&&w-C;return _?Math.round(E*1e3/_):void 0}}function Ak(e,a){let i=0,r=1e3/a,l,u;const f=(w,C=Date.now())=>{i=C,l=null,u&&(clearTimeout(u),u=null),e.apply(null,w)};return[(...w)=>{const C=Date.now(),A=C-i;A>=r?f(w,C):(l=w,u||(u=setTimeout(()=>{u=null,f(l)},r-A)))},()=>l&&f(l)]}const oo=(e,a,i=3)=>{let r=0;const l=Ck(50,250);return Ak(u=>{const f=u.loaded,m=u.lengthComputable?u.total:void 0,x=f-r,w=l(x),C=f<=m;r=f;const A={loaded:f,total:m,progress:m?f/m:void 0,bytes:x,rate:w||void 0,estimated:w&&m&&C?(m-f)/w:void 0,event:u,lengthComputable:m!=null,[a?"download":"upload"]:!0};e(A)},i)},Qh=(e,a)=>{const i=e!=null;return[r=>a[0]({lengthComputable:i,total:e,loaded:r}),a[1]]},ef=e=>(...a)=>xe.asap(()=>e(...a)),Pk=Yn.hasStandardBrowserEnv?function(){const a=/(msie|trident)/i.test(navigator.userAgent),i=document.createElement("a");let r;function l(u){let f=u;return a&&(i.setAttribute("href",f),f=i.href),i.setAttribute("href",f),{href:i.href,protocol:i.protocol?i.protocol.replace(/:$/,""):"",host:i.host,search:i.search?i.search.replace(/^\?/,""):"",hash:i.hash?i.hash.replace(/^#/,""):"",hostname:i.hostname,port:i.port,pathname:i.pathname.charAt(0)==="/"?i.pathname:"/"+i.pathname}}return r=l(window.location.href),function(f){const m=xe.isString(f)?l(f):f;return m.protocol===r.protocol&&m.host===r.host}}():function(){return function(){return!0}}(),Ek=Yn.hasStandardBrowserEnv?{write(e,a,i,r,l,u){const f=[e+"="+encodeURIComponent(a)];xe.isNumber(i)&&f.push("expires="+new Date(i).toGMTString()),xe.isString(r)&&f.push("path="+r),xe.isString(l)&&f.push("domain="+l),u===!0&&f.push("secure"),document.cookie=f.join("; ")},read(e){const a=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return a?decodeURIComponent(a[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function Tk(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Ik(e,a){return a?e.replace(/\/?\/$/,"")+"/"+a.replace(/^\/+/,""):e}function Em(e,a){return e&&!Tk(a)?Ik(e,a):a}const tf=e=>e instanceof Wn?{...e}:e;function mi(e,a){a=a||{};const i={};function r(w,C,A){return xe.isPlainObject(w)&&xe.isPlainObject(C)?xe.merge.call({caseless:A},w,C):xe.isPlainObject(C)?xe.merge({},C):xe.isArray(C)?C.slice():C}function l(w,C,A){if(xe.isUndefined(C)){if(!xe.isUndefined(w))return r(void 0,w,A)}else return r(w,C,A)}function u(w,C){if(!xe.isUndefined(C))return r(void 0,C)}function f(w,C){if(xe.isUndefined(C)){if(!xe.isUndefined(w))return r(void 0,w)}else return r(void 0,C)}function m(w,C,A){if(A in a)return r(w,C);if(A in e)return r(void 0,w)}const x={url:u,method:u,data:u,baseURL:f,transformRequest:f,transformResponse:f,paramsSerializer:f,timeout:f,timeoutMessage:f,withCredentials:f,withXSRFToken:f,adapter:f,responseType:f,xsrfCookieName:f,xsrfHeaderName:f,onUploadProgress:f,onDownloadProgress:f,decompress:f,maxContentLength:f,maxBodyLength:f,beforeRedirect:f,transport:f,httpAgent:f,httpsAgent:f,cancelToken:f,socketPath:f,responseEncoding:f,validateStatus:m,headers:(w,C)=>l(tf(w),tf(C),!0)};return xe.forEach(Object.keys(Object.assign({},e,a)),function(C){const A=x[C]||l,E=A(e[C],a[C],C);xe.isUndefined(E)&&A!==m||(i[C]=E)}),i}const Tm=e=>{const a=mi({},e);let{data:i,withXSRFToken:r,xsrfHeaderName:l,xsrfCookieName:u,headers:f,auth:m}=a;a.headers=f=Wn.from(f),a.url=Sm(Em(a.baseURL,a.url),e.params,e.paramsSerializer),m&&f.set("Authorization","Basic "+btoa((m.username||"")+":"+(m.password?unescape(encodeURIComponent(m. Line truncated
`+u.map(sf).join(`
`):" "+sf(u[0]):"as no adapter specified";throw new it("There is no suitable adapter to dispatch the request "+f,"ERR_NOT_SUPPORT")}return r},adapters:Ec};function Bl(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new ss(null,e)}function rf(e){return Bl(e),e.headers=Wn.from(e.headers),e.data=Fl.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),_m.getAdapter(e.adapter||Zu.adapter)(e).then(function(r){return Bl(e),r.data=Fl.call(e,e.transformResponse,r),r.headers=Wn.from(r.headers),r},function(r){return Am(r)||(Bl(e),r&&r.response&&(r.response.data=Fl.call(e,e.transformResponse,r.response),r.response.headers=Wn.from(r.response.headers))),Promise.reject(r)})}const Rm="1.7.3",Ju={};["object","boolean","number","function","string","symbol"].forEach((e,a)=>{Ju[e]=function(r){return typeof r===e||"a"+(a<1?"n ":" ")+e}});const of={};Ju.transitional=function(a,i,r){function l(u,f){return"[Axios v"+Rm+"] Transitional option '"+u+"'"+f+(r?". "+r:"")}return(u,f,m)=>{if(a===!1)throw new it(l(f," has been removed"+(i?" in "+i:"")),it.ERR_DEPRECATED);return i&&!of[f]&&(of[f]=!0,console.warn(l(f," has been deprecated since v"+i+" and will be removed in the near future"))),a?a(u,f,m):!0}};function Hk(e,a,i){if(typeof e!="object")throw new it("options must be an object",it.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let l=r.length;for(;l-- >0;){const u=r[l],f=a[u];if(f){const m=e[u],x=m===void 0||f(m,u,e);if(x!==!0)throw new it("option "+u+" must be "+x,it.ERR_BAD_OPTION_VALUE);continue}if(i!==!0)throw new it("Unknown option "+u,it.ERR_BAD_OPTION)}}const Tc={assertOptions:Hk,validators:Ju},Ia=Tc.validators;class co{constructor(a){this.defaults=a,this.interceptors={request:new Zh,response:new Zh}}async request(a,i){try{return await this._request(a,i)}catch(r){if(r instanceof Error){let l;Error.captureStackTrace?Error.captureStackTrace(l={}):l=new Error;const u=l.stack?l.stack.replace(/^.+\n/,""):"";try{r.stack?u&&!String(r.stack).endsWith(u.replace(/^.+\n.+\n/,""))&&(r.stack+=`
`+u):r.stack=u}catch{}}throw r}}_request(a,i){typeof a=="string"?(i=i||{},i.url=a):i=a||{},i=mi(this.defaults,i);const{transitional:r,paramsSerializer:l,headers:u}=i;r!==void 0&&Tc.assertOptions(r,{silentJSONParsing:Ia.transitional(Ia.boolean),forcedJSONParsing:Ia.transitional(Ia.boolean),clarifyTimeoutError:Ia.transitional(Ia.boolean)},!1),l!=null&&(xe.isFunction(l)?i.paramsSerializer={serialize:l}:Tc.assertOptions(l,{encode:Ia.function,serialize:Ia.function},!0)),i.method=(i.method||this.defaults.method||"get").toLowerCase();let f=u&&xe.merge(u.common,u[i.method]);u&&xe.forEach(["delete","get","head","post","put","patch","common"],V=>{delete u[V]}),i.headers=Wn.concat(f,u);const m=[];let x=!0;this.interceptors.request.forEach(function(D){typeof D.runWhen=="function"&&D.runWhen(i)===!1||(x=x&&D.synchronous,m.unshift(D.fulfilled,D.rejected))});const w=[];this.interceptors.response.forEach(function(D){w.push(D.fulfilled,D.rejected)});let C,A=0,E;if(!x){const V=[rf.bind(this),void 0];for(V.unshift.apply(V,m),V.push.apply(V,w),E=V.length,C=Promise.resolve(i);A<E;)C=C.then(V[A++],V[A++]);return C}E=m.length;let _=i;for(A=0;A<E;){const V=m[A++],D=m[A++];try{_=V(_)}catch(X){D.call(this,X);break}}try{C=rf.call(this,_)}catch(V){return Promise.reject(V)}for(A=0,E=w.length;A<E;)C=C.then(w[A++],w[A++]);return C}getUri(a){a=mi(this.defaults,a);const i=Em(a.baseURL,a.url);return Sm(i,a.params,a.paramsSerializer)}}xe.forEach(["delete","get","head","options"],function(a){co.prototype[a]=function(i,r){return this.request(mi(r||{},{method:a,url:i,data:(r||{}).data}))}});xe.forEach(["post","put","patch"],function(a){function i(r){return function(u,f,m){return this.request(mi(m||{},{method:a,headers:r?{"Content-Type":"multipart/form-data"}:{},url:u,data:f}))}}co.prototype[a]=i(),co.prototype[a+"Form"]=i(!0)});const Zr=co;class Qu{constructor(a){if(typeof a!="function")throw new TypeError("executor must be a function.");let i;this.promise=new Promise(function(u){i=u});const r=this;this.promise.then(l=>{if(!r._listeners)return;let u=r._listeners.length;for(;u-- >0;)r._listeners[u](l);r._listeners=null}),this.promise.then=l=>{let u;const f=new Promise(m=>{r.subscribe(m),u=m}).then(l);return f.cancel=function(){r.unsubscribe(u)},f},a(function(u,f,m){r.reason||(r.reason=new ss(u,f,m),i(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(a){if(this.reason){a(this.reason);return}this._listeners?this._listeners.push(a):this._listeners=[a]}unsubscribe(a){if(!this._listeners)return;const i=this._listeners.indexOf(a);i!==-1&&this._listeners.splice(i,1)}static source(){let a;return{token:new Qu(function(l){a=l}),cancel:a}}}const Xk=Qu;function Yk(e){return function(i){return e.apply(null,i)}}function Wk(e){return xe.isObject(e)&&e.isAxiosError===!0}const Ic={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Ic).forEach(([e,a])=>{Ic[a]=e});const jk=Ic;function Om(e){const a=new Zr(e),i=um(Zr.prototype.request,a);return xe.extend(i,Zr.prototype,a,{allOwnKeys:!0}),xe.extend(i,a,null,{allOwnKeys:!0}),i.create=function(l){return Om(mi(e,l))},i}const Ft=Om(Zu);Ft.Axios=Zr;Ft.CanceledError=ss;Ft.CancelToken=Xk;Ft.isCancel=Am;Ft.VERSION=Rm;Ft.toFormData=Go;Ft.AxiosError=it;Ft.Cancel=Ft.CanceledError;Ft.all=function(a){return Promise.all(a)};Ft.spread=Yk;Ft.isAxiosError=Wk;Ft.mergeConfig=mi;Ft.AxiosHeaders=Wn;Ft.formToJSON=e=>Cm(xe.isHTMLForm(e)?new FormData(e):e);Ft.getAdapter=_m.getAdapter;Ft.HttpStatusCode=jk;Ft.default=Ft;const $k=Ft,Gk=o1({id:"auth",state:()=>({user:JSON.parse(localStorage.getItem("user")),returnUrl:null}),actions:{async login(e,a){try{const i=await $k.post("/api/auth/login",{username:e,password:a});if(i.data.status==="error")return Promise.reject(i.data.message);this.user=i.data.data,localStorage.setItem("user",JSON.stringify(this.user)),uo.push(this.returnUrl||"/ Line truncated
Expected #hex, #hexa, rgb(), rgba(), hsl(), hsla(), object or number`)}function va(e){const{h:a,s:i,v:r,a:l}=e,u=m=>{const x=(m+a/60)%6;return r-r*i*Math.max(Math.min(x,4-x,1),0)},f=[u(5),u(3),u(1)].map(m=>Math.round(m*255));return{r:f[0],g:f[1],b:f[2],a:l}}function Ef(e){return va(rd(e))}function Ko(e){if(!e)return{h:0,s:1,v:1,a:1};const a=e.r/255,i=e.g/255,r=e.b/255,l=Math.max(a,i,r),u=Math.min(a,i,r);let f=0;l!==u&&(l===a?f=60*(0+(i-r)/(l-u)):l===i?f=60*(2+(r-a)/(l-u)):l===r&&(f=60*(4+(a-i)/(l-u)))),f<0&&(f=f+360);const m=l===0?0:(l-u)/l,x=[f,m,l];return{h:x[0],s:x[1],v:x[2],a:e.a}}function $m(e){const{h:a,s:i,v:r,a:l}=e,u=r-r*i/2,f=u===1||u===0?0:(r-u)/Math.min(u,1-u);return{h:a,s:f,l:u,a:l}}function rd(e){const{h:a,s:i,l:r,a:l}=e,u=r+i*Math.min(r,1-r),f=u===0?0:2-2*r/u;return{h:a,s:f,v:u,a:l}}function Gm(e){let{r:a,g:i,b:r,a:l}=e;return l===void 0?`rgb(${a}, ${i}, ${r})`:`rgba(${a}, ${i}, ${r}, ${l})`}function Um(e){return Gm(va(e))}function Yr(e){const a=Math.round(e).toString(16);return("00".substr(0,2-a.length)+a).toUpperCase()}function qm(e){let{r:a,g:i,b:r,a:l}=e;return`#${[Yr(a),Yr(i),Yr(r),l!==void 0?Yr(Math.round(l*255)):""].join("")}`}function Km(e){e=SC(e);let[a,i,r,l]=eC(e,2).map(u=>parseInt(u,16));return l=l===void 0?l:l/255,{r:a,g:i,b:r,a:l}}function wC(e){const a=Km(e);return Ko(a)}function Zm(e){return qm(va(e))}function SC(e){return e.startsWith("#")&&(e=e.slice(1)),e=e.replace(/([^0-9a-f])/gi,"F"),(e.length===3||e.length===4)&&(e=e.split("").map(a=>a+a).join("")),e.length!==6&&(e=df(df(e,6),8,"F")),e}function kC(e,a){const i=Ym(sd(e));return i[0]=i[0]+a*10,jm(Wm(i))}function CC(e,a){const i=Ym(sd(e));return i[0]=i[0]-a*10,jm(Wm(i))}function Fc(e){const a=Hn(e);return sd(a)[1]}function AC(e,a){const i=Fc(e),r=Fc(a),l=Math.max(i,r),u=Math.min(i,r);return(l+.05)/(u+.05)}function Jm(e){const a=Math.abs(Cf(Hn(0),Hn(e)));return Math.abs(Cf(Hn(16777215),Hn(e)))>Math.min(a,50)?"#fff":"#000"}function me(e,a){return i=>Object.keys(e).reduce((r,l)=>{const f=typeof e[l]=="object"&&e[l]!=null&&!Array.isArray(e[l])?e[l]:{type:e[l]};return i&&l in i?r[l]={...f,default:i[l]}:r[l]=f,a&&!r[l].source&&(r[l].source=a),r},{})}const We=me({class:[String,Array],style:{type:[String,Array,Object],default:null}},"component");function Rn(e){if(e._setup=e._setup??e.setup,!e.name)return e;if(e._setup){e.props=me(e.props??{},e.name)();const a=Object.keys(e.props);e.filterProps=function(r){return pi(r,a,["class","style"])},e.props._as=String,e.setup=function(r,l){const u=cd();if(!u.value)return e._setup(r,l);const{props:f,provideSubDefaults:m}=OC(r,r._as??e.name,u),x=e._setup(f,l);return m(),x}}return e}function Te(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return a=>(e?Rn:Si)(a)}function Kn(e){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"div",i=arguments.length>2?arguments[2]:void 0;return Te()({name:i??ba(kn(e.replace(/__/g,"-"))),props:{tag:{type:String,default:a},...We()},setup(r,l){let{slots:u}=l;return()=>{var f;return Un(r.tag,{class:[e,r.class],style:r.style},(f=u.default)==null?void 0:f.call(u))}}})}function Qm(e){if(typeof e.getRootNode!="function"){for(;e.parentNode;)e=e.parentNode;return e!==document?null:document}const a=e.getRootNode();return a!==document&&a.getRootNode({composed:!0})!==document?null:a}const Qs="cubic-bezier(0.4, 0, 0.2, 1)",PC="cubic-bezier(0.0, 0, 0.2, 1)",EC="cubic-bezier(0.4, 0, 1, 1)";function Wt(e,a){const i=aa();if(!i)throw new Error(`[Vuetify] ${e} ${a||"must be called from inside a setup function"}`);return i}function ya(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"composables";const a=Wt(e).type;return di((a==null?void 0:a.aliasName)||(a==null?void 0:a.name))}let ep=0,Qr=new WeakMap;function sn(){const e=Wt("getUid");if(Qr.has(e))return Qr.get(e);{const a=ep++;return Qr.set(e,a),a}}sn.reset=()=>{ep=0,Qr=new WeakMap};function od(e){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;for(;e;){if(a?TC(e):ld(e))return e;e=e.parentElement}return document.scrollingElement}function vo(e,a){const i=[];if(a&&e&&!a.contains(e))return i;for(;e&&(ld(e)&&i.push(e),e!==a);)e=e.parentElement;return i}function ld(e){if(!e||e.nodeType!==Node.ELEMENT_NODE)return!1;const a=window.getComputedStyle(e);return a.overflowY==="scroll"||a.overflowY==="auto"&&e.scrollHeight>e.clientHeight}function TC(e){if(!e||e.nodeType!==Node.ELEMENT_NODE)return!1;const a=window.getComputedStyle(e);return["scroll","auto"].includes(a.overflowY)}function IC(e){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Wt("injectSelf");const{provides:i}=a;if(i&&e in i)return i[e]}function LC(e){for(;e;){if(window.getComputedStyle(e).position==="fixed")return!0;e=e.offsetParent}return!1}function Ve(e){const a=Wt("useRender");a.render=e}const Zi=Symbol.for("vuetify:defaults");function _C(e){return Oe(e)}function cd(){const e=ut(Zi);if(!e)throw new Error("[Vuetify] Could not find defaults instance");return e}function Bt(e,a){const i=cd(),r=Oe(e),l=$( Line truncated
`,...i.map(r=>` ${r};
`),`}
`)}function Vf(e){const a=e.dark?2:1,i=e.dark?1:2,r=[];for(const[l,u]of Object.entries(e.colors)){const f=Hn(u);r.push(`--v-theme-${l}: ${f.r},${f.g},${f.b}`),l.startsWith("on-")||r.push(`--v-theme-${l}-overlay-multiplier: ${Fc(u)>.18?a:i}`)}for(const[l,u]of Object.entries(e.variables)){const f=typeof u=="string"&&u.startsWith("#")?Hn(u):void 0,m=f?`${f.r}, ${f.g}, ${f.b}`:void 0;r.push(`--v-${l}: ${m??u}`)}return r}const Nc={"001":1,AD:1,AE:6,AF:6,AG:0,AI:1,AL:1,AM:1,AN:1,AR:1,AS:0,AT:1,AU:1,AX:1,AZ:1,BA:1,BD:0,BE:1,BG:1,BH:6,BM:1,BN:1,BR:0,BS:0,BT:0,BW:0,BY:1,BZ:0,CA:0,CH:1,CL:1,CM:1,CN:1,CO:0,CR:1,CY:1,CZ:1,DE:1,DJ:6,DK:1,DM:0,DO:0,DZ:6,EC:1,EE:1,EG:6,ES:1,ET:0,FI:1,FJ:1,FO:1,FR:1,GB:1,"GB-alt-variant":0,GE:1,GF:1,GP:1,GR:1,GT:0,GU:0,HK:0,HN:0,HR:1,HU:1,ID:0,IE:1,IL:0,IN:0,IQ:6,IR:6,IS:1,IT:1,JM:0,JO:6,JP:0,KE:0,KG:1,KH:0,KR:0,KW:6,KZ:1,LA:0,LB:1,LI:1,LK:1,LT:1,LU:1,LV:1,LY:6,MC:1,MD:1,ME:1,MH:0,MK:1,MM:0,MN:1,MO:0,MQ:1,MT:0,MV:5,MX:0,MY:1,MZ:0,NI:0,NL:1,NO:1,NP:0,NZ:1,OM:6,PA:0,PE:0,PH:0,PK:0,PL:1,PR:0,PT:0,PY:0,QA:6,RE:1,RO:1,RS:1,RU:1,SA:0,SD:6,SE:1,SG:0,SI:1,SK:1,SM:1,SV:0,SY:6,TH:0,TJ:1,TM:1,TR:1,TT:0,TW:0,UA:1,UM:0,US:0,UY:1,UZ:1,VA:1,VE:0,VI:0,VN:1,WS:0,XK:1,YE:0,ZA:0,ZW:0};function JC(e,a){const i=[];let r=[];const l=sp(e),u=rp(e),f=l.getDay()-Nc[a.slice(-2).toUpperCase()],m=u.getDay()-Nc[a.slice(-2).toUpperCase()];for(let x=0;x<f;x++){const w=new Date(l);w.setDate(w.getDate()-(f-x)),r.push(w)}for(let x=1;x<=u.getDate();x++){const w=new Date(e.getFullYear(),e.getMonth(),x);r.push(w),r.length===7&&(i.push(r),r=[])}for(let x=1;x<7-m;x++){const w=new Date(u);w.setDate(w.getDate()+x),r.push(w)}return i.push(r),i}function sp(e){return new Date(e.getFullYear(),e.getMonth(),1)}function rp(e){return new Date(e.getFullYear(),e.getMonth()+1,0)}function QC(e){const a=e.split("-").map(Number);return new Date(a[0],a[1]-1,a[2])}const eA=/([12]\d{3}-([1-9]|0[1-9]|1[0-2])-([1-9]|0[1-9]|[12]\d|3[01]))/;function tA(e){if(e==null)return new Date;if(e instanceof Date)return e;if(typeof e=="string"){let a;if(eA.test(e))return QC(e);if(a=Date.parse(e),!isNaN(a))return new Date(a)}return null}const Mf=new Date(2e3,0,2);function nA(e){const a=Nc[e.slice(-2).toUpperCase()];return ua(7).map(i=>{const r=new Date(Mf);return r.setDate(Mf.getDate()+a+i),new Intl.DateTimeFormat(e,{weekday:"narrow"}).format(r)})}function aA(e,a,i){const r=new Date(e);let l={};switch(a){case"fullDateWithWeekday":l={weekday:"long",day:"numeric",month:"long",year:"numeric"};break;case"normalDateWithWeekday":l={weekday:"short",day:"numeric",month:"short"};break;case"keyboardDate":l={};break;case"monthAndDate":l={month:"long",day:"numeric"};break;case"monthAndYear":l={month:"long",year:"numeric"};break;case"dayOfMonth":l={day:"numeric"};break;default:l={timeZone:"UTC",timeZoneName:"short"}}return new Intl.DateTimeFormat(i,l).format(r)}function iA(e,a){const i=new Date(e);return i.setDate(i.getDate()+a),i}function sA(e,a){const i=new Date(e);return i.setMonth(i.getMonth()+a),i}function rA(e){return e.getFullYear()}function oA(e){return e.getMonth()}function lA(e){return new Date(e.getFullYear(),0,1)}function cA(e){return new Date(e.getFullYear(),11,31)}function uA(e,a){return Hc(e,a[0])&&hA(e,a[1])}function dA(e){const a=new Date(e);return a instanceof Date&&!isNaN(a.getTime())}function Hc(e,a){return e.getTime()>a.getTime()}function hA(e,a){return e.getTime()<a.getTime()}function Ff(e,a){return e.getTime()===a.getTime()}function fA(e,a){return e.getDate()===a.getDate()&&e.getMonth()===a.getMonth()&&e.getFullYear()===a.getFullYear()}function gA(e,a){return e.getMonth()===a.getMonth()&&e.getFullYear()===a.getFullYear()}function vA(e,a,i){const r=new Date(e),l=new Date(a);return i==="month"?r.getMonth()-l.getMonth()+(r.getFullYear()-l.getFullYear())*12:Math.floor((r.getTime()-l.getTime())/(1e3*60*60*24))}function mA(e,a){const i=new Date(e);return i.setFullYear(a),i}class pA{constructor(a){this.locale=a.locale}date(a){return tA(a)}toJsDate(a){return a}addDays(a,i){return iA(a,i)}addMonths(a,i){return sA(a,i)}getWeekArray(a){return JC(a,this.locale)}startOfMonth(a){return sp(a)}endOfMonth(a){return rp(a)}format(a,i){return aA(a,i,this.locale)}isEqual(a,i){return Ff(a,i)}isValid(a){return dA(a)}isWithinRange(a,i){return uA(a,i)}isAfter(a,i){return Hc(a,i)}isBefore(a,i){return!Hc(a,i)&&!Ff(a,i)}isSameDay(a,i){return fA(a,i)}isSameMonth(a,i){return gA(a,i)}setYear(a,i){return mA(a,i)}getDiff(a,i,r){return vA(a,i,r)}getWeekdays(){return nA(this.locale)}getYear(a){return rA(a)}getMonth(a){return oA(a)}startOfYear(a){return lA(a)}endOfYear(a){return cA(a)}}const Bf=Symbol.for("vuetify:date-adapter");function bA(e){return Tn({adapter:pA,locale:{af:"af-ZA",bg:"bg-BG",ca:"ca-ES",ckb:"",cs:"",de:"de-DE",el:"el-GR",en:"en-US",et:"et-EE",fa:"fa-IR",fi:"fi-FI",hr:"hr-HR",hu:"hu-HU",he:"he-IL",id:"id-ID",it:"it-IT",ja:"ja-JP",ko:"ko-KR",lv:"lv-LV",lt:"lt-LT",nl:"nl-NL",no:"nn-NO",pl:"pl-PL",pt:"pt-PT",ro:"ro-RO",ru:"ru-RU",sk:"sk-SK",sl:"sl-SI",srCyrl:"sr-SP",srLatn Line truncated
* ApexCharts v3.42.0
* (c) 2018-2023 ApexCharts
* Released under the MIT License.
*/var ag;function QL(){return ag||(ag=1,function(e,a){function i(F,t){var n=Object.keys(F);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(F);t&&(s=s.filter(function(o){return Object.getOwnPropertyDescriptor(F,o).enumerable})),n.push.apply(n,s)}return n}function r(F){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?i(Object(n),!0).forEach(function(s){x(F,s,n[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(F,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach(function(s){Object.defineProperty(F,s,Object.getOwnPropertyDescriptor(n,s))})}return F}function l(F){return l=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},l(F)}function u(F,t){if(!(F instanceof t))throw new TypeError("Cannot call a class as a function")}function f(F,t){for(var n=0;n<t.length;n++){var s=t[n];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(F,s.key,s)}}function m(F,t,n){return t&&f(F.prototype,t),n&&f(F,n),F}function x(F,t,n){return t in F?Object.defineProperty(F,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):F[t]=n,F}function w(F,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");F.prototype=Object.create(t&&t.prototype,{constructor:{value:F,writable:!0,configurable:!0}}),t&&A(F,t)}function C(F){return C=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},C(F)}function A(F,t){return A=Object.setPrototypeOf||function(n,s){return n.__proto__=s,n},A(F,t)}function E(F,t){if(t&&(typeof t=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}(F)}function _(F){var t=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var n,s=C(F);if(t){var o=C(this).constructor;n=Reflect.construct(s,arguments,o)}else n=s.apply(this,arguments);return E(this,n)}}function V(F,t){return function(n){if(Array.isArray(n))return n}(F)||function(n,s){var o=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(o!=null){var c,d,h=[],g=!0,p=!1;try{for(o=o.call(n);!(g=(c=o.next()).done)&&(h.push(c.value),!s||h.length!==s);g=!0);}catch(b){p=!0,d=b}finally{try{g||o.return==null||o.return()}finally{if(p)throw d}}return h}}(F,t)||X(F,t)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function D(F){return function(t){if(Array.isArray(t))return B(t)}(F)||function(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}(F)||X(F)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function X(F,t){if(F){if(typeof F=="string")return B(F,t);var n=Object.prototype.toString.call(F).slice(8,-1);return n==="Object"&&F.constructor&&(n=F.constructor.name),n==="Map"||n==="Set"?Array.from(F):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?B(F,t):void 0}}function B(F,t){(t==null||t>F.length)&&(t=F.length);for(var n=0,s=new Array(t);n<t;n++)s[n]=F[n];return s}var L=function(){function F(){u(this,F)}return m(F,[{key:"shadeRGBColor",value:function(t,n){var s=n.split(","),o=t<0?0:255,c=t<0?-1*t:t,d=parseInt(s[0].slice(4),10),h=parseInt(s[1],10),g=parseInt(s[2],10);return"rgb("+(Math.round((o-d)*c)+d)+","+(Math.round((o-h)*c)+h)+","+(Math.round((o-g)*c)+g)+")"}},{key:"shadeHexColor",value:function(t,n){var s=parseInt(n.slice(1),16),o=t<0?0:255,c=t<0?-1*t:t,d=s>>16,h=s>>8&255,g=255&s;return"#"+(16777216+65536*(Math.round((o-d)*c)+d)+256*(Math.round((o-h)*c)+h)+(Math.round((o-g)*c)+g)).toString(16).slice(1)}},{key:"shadeColor",value:function(t,n){return F.isColorHex(n)?this.shadeHexColor(t,n):this.shadeRGBColor(t,n)}}],[{key:"bind",value:function(t,n){return function(){return t.apply(n,arguments)}}},{key:"isObject",value:function(t){return t&&l(t)==="object"&&!Array.isArray(t)&&t!=null}},{key:"is",value:function(t,n){return Object.prototype.toString.call(n)==="[object "+t+"]"}},{key:"listToArray",value:function(t){var n,s=[];for(n=0;n<t.length;n++)s[n]=t[n];return s}},{key:"extend",value:function(t,n){var s=this;typeof Object.assign!="function"&&(Object.assign=function(c){if(c==null)throw new TypeError("Cannot convert undefined or null to object");for(var d=Object(c),h=1;h<arguments.length;h++){var g=arguments[h];if(g!=null)for(var p in g)g.hasOwnProperty(p)&&(d[p]=g[p])}return d});var o=Object.assign({},t);return this.isObject(t)&&this.isObject(n)&&Object.keys(n).forEach(function(c){s.isObject(n[c])&&c in t?o[c]=s.extend(t[c],n[c]):Object.assign(o,x({},c,n[c]))}),o}},{key:"extendArray",value:function(t,n){var s=[];return t.map(function(o){s.push(F.extend(n,o))}),t=s}},{key:"monthMod",value:function(t){return t%12}},{key:"clone",value:function(t){if(F.is("Array",t)){for(var n=[],s=0;s<t.length;s++)n[s]=this.clone(t[s]);return n}if(F.is("Null",t))return null;if(F.is("Date",t))return t;if(l(t)==="object"){var o={};for(var c in t)t.hasOwnProperty(c)&&(o[c]=this.clone(t[c]));return o}return t}},{key:"log10",value:function(t){return Math.log(t)/Math.LN10}},{key:"roundToBase10",value:function(t){return Math.pow(10,Math.floor(Math.log10(t)))}},{key:"roundToBase",value:function(t,n){return Math.pow(n,Math.floor(Math.log(t)/Math.log(n)))}},{key:"parseNumber",value:function(t){return t===null?t:parseFloat(t)}},{key:"stripNumber",value:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;return parseFloat(t.toPrecision(n))}},{key:"randomId",value:function(){return(Math.random()+1).toString(36).substring(4)}},{key:"noExponents",value:function(t){var n=String(t).split(/[eE]/);if(n.length===1)return n[0];var s="",o=t<0?"-":"",c=n[0].replace(".",""),d=Number(n[1])+1;if(d<0){for(s=o+"0.";d++;)s+="0";return s+c.replace(/^-/,"")}for(d-=c.length;d--;)s+="0";return c+s}},{key:"getDimensions",value:function(t){var n=getComputedStyle(t,null),s=t.clientHeight,o=t.clientWidth;return s-=parseFloat(n.paddingTop)+parseFloat(n.paddingBottom),[o-=parseFloat(n.paddingLeft)+parseFloat(n.paddingRight),s]}},{key:"getBoundingClientRect",value:function(t){var n=t.getBoundingClientRect();return{top:n.top,right:n.right,bottom:n.bottom,left:n.left,width:t.clientWidth,height:t.clientHeight,x:n.left,y:n.top}}},{key:"getLargestStringFromArr",value:function(t){return t.reduce(function(n,s){return Array.isArray(s)&&(s=s.reduce(function(o,c){return o.length>c.length?o:c})),n.length>s.length?n:s},0)}},{key:"hexToRgba",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"#999999",n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:.6;t.substring(0,1)!=="#"&&(t="#999999");var s=t.replace("#","");s=s.match(new RegExp("(.{"+s.length/3+"})","g"));for(var o=0;o<s.length;o++)s[o]=parseInt(s[o].length===1?s[o]+s[o]:s[o],16);return n!==void 0&&s.push(n),"rgba("+s.join(",")+")"}},{key:"getOpacityFromRGBA",value:function(t){return parseFloat(t.replace(/^.*,(.+)\)/,"$1"))}},{key:"rgb2hex",value:function(t){return(t=t.match(/^rgba?[\s+]?\([\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?/i))&&t.length===4?"#"+("0"+parseInt(t[1],10).toString(16)).slice(-2)+("0"+parseInt(t[2],10).toString(16)).slice(-2)+("0"+parseInt(t[3],10).toString(16)).slice(-2):""}},{key:"isColorHex",value:function(t){return/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)|(^#[0-9A-F]{8}$)/i.test(t)}},{key:"getPolygonPos",value:function(t,n){for(var s=[],o=2*Math.PI/n,c=0;c<n;c++){var d={};d.x=t*Math.sin(c*o),d.y=-t*Math.cos(c*o),s.push(d)}return s}},{key:"polarToCartesian",value:function(t,n,s,o){var c=(o-90)*Math.PI/180;return{x:t+s*Math.c Line truncated
`.concat(o,`
</span> <span class="separator">-</span> <span class="value end-value">
`).concat(c,`
</span>`);return'<div class="apexcharts-tooltip-rangebar"><div> <span class="series-name" style="color: '+t+'">'+(n||"")+'</span></div><div> <span class="category">'+s+": </span> "+(F.w.globals.comboCharts?F.w.config.series[d].type==="rangeArea"||F.w.config.series[d].type==="rangeBar"?b:"<span>".concat(p,"</span>"):b)+" </div></div>"},he=function(){function F(t){u(this,F),this.opts=t}return m(F,[{key:"hideYAxis",value:function(){this.opts.yaxis[0].show=!1,this.opts.yaxis[0].title.text="",this.opts.yaxis[0].axisBorder.show=!1,this.opts.yaxis[0].axisTicks.show=!1,this.opts.yaxis[0].floating=!0}},{key:"line",value:function(){return{chart:{animations:{easing:"swing"}},dataLabels:{enabled:!1},stroke:{width:5,curve:"straight"},markers:{size:0,hover:{sizeOffset:6}},xaxis:{crosshairs:{width:1}}}}},{key:"sparkline",value:function(t){return this.hideYAxis(),L.extend(t,{grid:{show:!1,padding:{left:0,right:0,top:0,bottom:0}},legend:{show:!1},xaxis:{labels:{show:!1},tooltip:{enabled:!1},axisBorder:{show:!1},axisTicks:{show:!1}},chart:{toolbar:{show:!1},zoom:{enabled:!1}},dataLabels:{enabled:!1}})}},{key:"bar",value:function(){return{chart:{stacked:!1,animations:{easing:"swing"}},plotOptions:{bar:{dataLabels:{position:"center"}}},dataLabels:{style:{colors:["#fff"]},background:{enabled:!1}},stroke:{width:0,lineCap:"round"},fill:{opacity:.85},legend:{markers:{shape:"square",radius:2,size:8}},tooltip:{shared:!1,intersect:!0},xaxis:{tooltip:{enabled:!1},tickPlacement:"between",crosshairs:{width:"barWidth",position:"back",fill:{type:"gradient"},dropShadow:{enabled:!1},stroke:{width:0}}}}}},{key:"funnel",value:function(){return this.hideYAxis(),r(r({},this.bar()),{},{chart:{animations:{easing:"linear",speed:800,animateGradually:{enabled:!1}}},plotOptions:{bar:{horizontal:!0,borderRadiusApplication:"around",borderRadius:0,dataLabels:{position:"center"}}},grid:{show:!1,padding:{left:0,right:0}},xaxis:{labels:{show:!1},tooltip:{enabled:!1},axisBorder:{show:!1},axisTicks:{show:!1}}})}},{key:"candlestick",value:function(){var t=this;return{stroke:{width:1,colors:["#333"]},fill:{opacity:1},dataLabels:{enabled:!1},tooltip:{shared:!0,custom:function(n){var s=n.seriesIndex,o=n.dataPointIndex,c=n.w;return t._getBoxTooltip(c,s,o,["Open","High","","Low","Close"],"candlestick")}},states:{active:{filter:{type:"none"}}},xaxis:{crosshairs:{width:1}}}}},{key:"boxPlot",value:function(){var t=this;return{chart:{animations:{dynamicAnimation:{enabled:!1}}},stroke:{width:1,colors:["#24292e"]},dataLabels:{enabled:!1},tooltip:{shared:!0,custom:function(n){var s=n.seriesIndex,o=n.dataPointIndex,c=n.w;return t._getBoxTooltip(c,s,o,["Minimum","Q1","Median","Q3","Maximum"],"boxPlot")}},markers:{size:5,strokeWidth:1,strokeColors:"#111"},xaxis:{crosshairs:{width:1}}}}},{key:"rangeBar",value:function(){return{chart:{animations:{animateGradually:!1}},stroke:{width:0,lineCap:"square"},plotOptions:{bar:{borderRadius:0,dataLabels:{position:"center"}}},dataLabels:{enabled:!1,formatter:function(t,n){n.ctx;var s=n.seriesIndex,o=n.dataPointIndex,c=n.w,d=function(){var h=c.globals.seriesRangeStart[s][o];return c.globals.seriesRangeEnd[s][o]-h};return c.globals.comboCharts?c.config.series[s].type==="rangeBar"||c.config.series[s].type==="rangeArea"?d():t:d()},background:{enabled:!1},style:{colors:["#fff"]}},markers:{size:10},tooltip:{shared:!1,followCursor:!0,custom:function(t){return t.w.config.plotOptions&&t.w.config.plotOptions.bar&&t.w.config.plotOptions.bar.horizontal?function(n){var s=we(r(r({},n),{},{isTimeline:!0})),o=s.color,c=s.seriesName,d=s.ylabel,h=s.startVal,g=s.endVal;return fe(r(r({},n),{},{color:o,seriesName:c,ylabel:d,start:h,end:g}))}(t):function(n){var s=we(n),o=s.color,c=s.seriesName,d=s.ylabel,h=s.start,g=s.end;return fe(r(r({},n),{},{color:o,seriesName:c,ylabel:d,start:h,end:g}))}(t)}},xaxis:{tickPlacement:"between",tooltip:{enabled:!1},crosshairs:{stroke:{width:0}}}}}},{key:"dumbbell",value:function(t){var n,s;return(n=t.plotOptions.bar)!==null&&n!==void 0&&n.barHeight||(t.plotOptions.bar.barHeight=2),(s=t.plotOptions.bar)!==null&&s!==void 0&&s.columnWidth||(t.plotOptions.bar.columnWidth=2),t}},{key:"area",value:function(){return{stroke:{width:4,fill:{type:"solid",gradient:{inverseColors:!1,shade:"light",type:"vertical",opacityFrom:.65,opacityTo:.5,stops:[0,100,100]}}},fill:{type:"gradient",gradient:{inverseColors:!1,shade:"light",type:"vertical",opacityFrom:.65,opacityTo:.5,stops:[0,100,100]}},markers:{size:0,hover:{sizeOffset:6}},tooltip:{followCursor:!1}}}},{key:"rangeArea",value:function(){return{stroke:{curve:"straight",width:0},fill:{type:"solid",opacity:.6},markers:{size:0},states:{hover:{filter:{type:"none"}},active:{filter:{type:"none"}}},tooltip:{intersect:!1,shared:!0,followCursor:!0,custom:function(t){return function(n){var s=we(n),o=s.color,c=s.seriesName,d=s.ylabel,h=s.start,g=s.end;return fe(r(r({},n),{},{color:o,seriesName:c,ylabel:d,start:h,end:g}))}(t)}}}}},{key:"brush",value:function(t){return L.extend(t,{chart:{toolbar:{aLine truncated
`.concat(t.config.series[n].name?t.config.series[n].name:"series-"+(n+1),": <strong>").concat(t.globals.series[n][s],`</strong>
</div>`):'<div class="apexcharts-tooltip-box apexcharts-tooltip-'.concat(t.config.chart.type,'">')+"<div>".concat(o[0],': <span class="value">')+d+"</span></div>"+"<div>".concat(o[1],': <span class="value">')+h+"</span></div>"+(g?"<div>".concat(o[2],': <span class="value">')+g+"</span></div>":"")+"<div>".concat(o[3],': <span class="value">')+p+"</span></div>"+"<div>".concat(o[4],': <span class="value">')+b+"</span></div></div>"}}]),F}(),ke=function(){function F(t){u(this,F),this.opts=t}return m(F,[{key:"init",value:function(t){var n=t.responsiveOverride,s=this.opts,o=new ne,c=new he(s);this.chartType=s.chart.type,s=this.extendYAxis(s),s=this.extendAnnotations(s);var d=o.init(),h={};if(s&&l(s)==="object"){var g,p,b,y,S,P,T,R,M={};M=["line","area","bar","candlestick","boxPlot","rangeBar","rangeArea","bubble","scatter","heatmap","treemap","pie","polarArea","donut","radar","radialBar"].indexOf(s.chart.type)!==-1?c[s.chart.type]():c.line(),(g=s.plotOptions)!==null&&g!==void 0&&(p=g.bar)!==null&&p!==void 0&&p.isFunnel&&(M=c.funnel()),s.chart.stacked&&s.chart.type==="bar"&&(M=c.stackedBars()),(b=s.chart.brush)!==null&&b!==void 0&&b.enabled&&(M=c.brush(M)),s.chart.stacked&&s.chart.stackType==="100%"&&(s=c.stacked100(s)),(y=s.plotOptions)!==null&&y!==void 0&&(S=y.bar)!==null&&S!==void 0&&S.isDumbbell&&(s=c.dumbbell(s)),this.checkForDarkTheme(window.Apex),this.checkForDarkTheme(s),s.xaxis=s.xaxis||window.Apex.xaxis||{},n||(s.xaxis.convertedCatToNumeric=!1),((P=(s=this.checkForCatToNumericXAxis(this.chartType,M,s)).chart.sparkline)!==null&&P!==void 0&&P.enabled||(T=window.Apex.chart)!==null&&T!==void 0&&(R=T.sparkline)!==null&&R!==void 0&&R.enabled)&&(M=c.sparkline(M)),h=L.extend(d,M)}var H=L.extend(h,window.Apex);return d=L.extend(H,s),d=this.handleUserInputErrors(d)}},{key:"checkForCatToNumericXAxis",value:function(t,n,s){var o,c,d=new he(s),h=(t==="bar"||t==="boxPlot")&&((o=s.plotOptions)===null||o===void 0||(c=o.bar)===null||c===void 0?void 0:c.horizontal),g=t==="pie"||t==="polarArea"||t==="donut"||t==="radar"||t==="radialBar"||t==="heatmap",p=s.xaxis.type!=="datetime"&&s.xaxis.type!=="numeric",b=s.xaxis.tickPlacement?s.xaxis.tickPlacement:n.xaxis&&n.xaxis.tickPlacement;return h||g||!p||b==="between"||(s=d.convertCatToNumeric(s)),s}},{key:"extendYAxis",value:function(t,n){var s=new ne;(t.yaxis===void 0||!t.yaxis||Array.isArray(t.yaxis)&&t.yaxis.length===0)&&(t.yaxis={}),t.yaxis.constructor!==Array&&window.Apex.yaxis&&window.Apex.yaxis.constructor!==Array&&(t.yaxis=L.extend(t.yaxis,window.Apex.yaxis)),t.yaxis.constructor!==Array?t.yaxis=[L.extend(s.yAxis,t.yaxis)]:t.yaxis=L.extendArray(t.yaxis,s.yAxis);var o=!1;t.yaxis.forEach(function(d){d.logarithmic&&(o=!0)});var c=t.series;return n&&!c&&(c=n.config.series),o&&c.length!==t.yaxis.length&&c.length&&(t.yaxis=c.map(function(d,h){if(d.name||(c[h].name="series-".concat(h+1)),t.yaxis[h])return t.yaxis[h].seriesName=c[h].name,t.yaxis[h];var g=L.extend(s.yAxis,t.yaxis[0]);return g.show=!1,g})),o&&c.length>1&&c.length!==t.yaxis.length&&console.warn("A multi-series logarithmic chart should have equal number of series and y-axes. Please make sure to equalize both."),t}},{key:"extendAnnotations",value:function(t){return t.annotations===void 0&&(t.annotations={},t.annotations.yaxis=[],t.annotations.xaxis=[],t.annotations.points=[]),t=this.extendYAxisAnnotations(t),t=this.extendXAxisAnnotations(t),t=this.extendPointAnnotations(t)}},{key:"extendYAxisAnnotations",value:function(t){var n=new ne;return t.annotations.yaxis=L.extendArray(t.annotations.yaxis!==void 0?t.annotations.yaxis:[],n.yAxisAnnotation),t}},{key:"extendXAxisAnnotations",value:function(t){var n=new ne;return t.annotations.xaxis=L.extendArray(t.annotations.xaxis!==void 0?t.annotations.xaxis:[],n.xAxisAnnotation),t}},{key:"extendPointAnnotations",value:function(t){var n=new ne;return t.annotations.points=L.extendArray(t.annotations.points!==void 0?t.annotations.points:[],n.pointAnnotation),t}},{key:"checkForDarkTheme",value:function(t){t.theme&&t.theme.mode==="dark"&&(t.tooltip||(t.tooltip={}),t.tooltip.theme!=="light"&&(t.tooltip.theme="dark"),t.chart.foreColor||(t.chart.foreColor="#f6f7f8"),t.chart.background||(t.chart.background="#424242"),t.theme.palette||(t.theme.palette="palette4"))}},{key:"handleUserInputErrors",value:function(t){var n=t;if(n.tooltip.shared&&n.tooltip.intersect)throw new Error("tooltip.shared cannot be enabled when tooltip.intersect is true. Turn off any other option by setting it to false.");if(n.chart.type==="bar"&&n.plotOptions.bar.horizontal){if(n.yaxis.length>1)throw new Error("Multiple Y Axis for bars are not supported. Switch to column chart by setting plotOptions.bar.horizontal=false");n.yaxis[0].reversed&&(n.yaxis[0].opposite=!0),n.xaxis.tooltip.enabled=!1,n.yaxis[0].tooltip.enabled=!1,n.chart.zoom.enabled=!1}return n.chart.type!=="bar"&&n.chart.type!=="rangeBar"||n.tooltip.shared&&n.xaxis.crosshairs.width==="barWidth"&&n.series.length>1&&(n.xaxis.crosshairs.width="tickWidtLine truncated
`:h,p=this.w;s||(s=p.config.series);var b=[],y=[],S="",P=p.globals.series.map(function(v,k){return p.globals.collapsedSeriesIndices.indexOf(k)===-1?v:[]}),T=Math.max.apply(Math,D(s.map(function(v){return v.data?v.data.length:0}))),R=new de(this.ctx),M=new Le(this.ctx),H=function(v){var k="";if(p.globals.axisCharts){if(p.config.xaxis.type==="category"||p.config.xaxis.convertedCatToNumeric)if(p.globals.isBarHorizontal){var I=p.globals.yLabelFormatters[0],z=new ue(n.ctx).getActiveConfigSeriesIndex();k=I(p.globals.labels[v],{seriesIndex:z,dataPointIndex:v,w:p})}else k=M.getLabel(p.globals.labels,p.globals.timescaleLabels,0,v).text;p.config.xaxis.type==="datetime"&&(p.config.xaxis.categories.length?k=p.config.xaxis.categories[v]:p.config.labels.length&&(k=p.config.labels[v]))}else k=p.config.labels[v];return Array.isArray(k)&&(k=k.join(" ")),L.isNumber(k)?k:k.split(d).join("")},U=function(v,k){if(b.length&&k===0&&y.push(b.join(d)),v.data){v.data=v.data.length&&v.data||D(Array(T)).map(function(){return""});for(var I=0;I<v.data.length;I++){b=[];var z=H(I);if(z||(R.isFormatXY()?z=s[k].data[I].x:R.isFormat2DArray()&&(z=s[k].data[I]?s[k].data[I][0]:"")),k===0){b.push((ae=z,p.config.xaxis.type==="datetime"&&String(ae).length>=10?p.config.chart.toolbar.export.csv.dateFormatter(z):L.isNumber(z)?z:z.split(d).join("")));for(var q=0;q<p.globals.series.length;q++){var K;R.isFormatXY()?b.push((K=s[q].data[I])===null||K===void 0?void 0:K.y):b.push(P[q][I])}}(p.config.chart.type==="candlestick"||v.type&&v.type==="candlestick")&&(b.pop(),b.push(p.globals.seriesCandleO[k][I]),b.push(p.globals.seriesCandleH[k][I]),b.push(p.globals.seriesCandleL[k][I]),b.push(p.globals.seriesCandleC[k][I])),(p.config.chart.type==="boxPlot"||v.type&&v.type==="boxPlot")&&(b.pop(),b.push(p.globals.seriesCandleO[k][I]),b.push(p.globals.seriesCandleH[k][I]),b.push(p.globals.seriesCandleM[k][I]),b.push(p.globals.seriesCandleL[k][I]),b.push(p.globals.seriesCandleC[k][I])),p.config.chart.type==="rangeBar"&&(b.pop(),b.push(p.globals.seriesRangeStart[k][I]),b.push(p.globals.seriesRangeEnd[k][I])),b.length&&y.push(b.join(d))}}var ae};b.push(p.config.chart.toolbar.export.csv.headerCategory),p.config.chart.type==="boxPlot"?(b.push("minimum"),b.push("q1"),b.push("median"),b.push("q3"),b.push("maximum")):p.config.chart.type==="candlestick"?(b.push("open"),b.push("high"),b.push("low"),b.push("close")):p.config.chart.type==="rangeBar"?(b.push("minimum"),b.push("maximum")):s.map(function(v,k){var I=(v.name?v.name:"series-".concat(k))+"";p.globals.axisCharts&&b.push(I.split(d).join("")?I.split(d).join(""):"series-".concat(k))}),p.globals.axisCharts||(b.push(p.config.chart.toolbar.export.csv.headerValue),y.push(b.join(d))),s.map(function(v,k){p.globals.axisCharts?U(v,k):((b=[]).push(p.globals.labels[k].split(d).join("")),b.push(P[k]),y.push(b.join(d)))}),S+=y.join(g),this.triggerDownload("data:text/csv; charset=utf-8,"+encodeURIComponent("\uFEFF"+S),o||p.config.chart.toolbar.export.csv.filename,".csv")}},{key:"triggerDownload",value:function(t,n,s){var o=document.createElement("a");o.href=t,o.download=(n||this.w.globals.chartID)+s,document.body.appendChild(o),o.click(),document.body.removeChild(o)}}]),F}(),be=function(){function F(t,n){u(this,F),this.ctx=t,this.elgrid=n,this.w=t.w;var s=this.w;this.axesUtils=new Le(t),this.xaxisLabels=s.globals.labels.slice(),s.globals.timescaleLabels.length>0&&!s.globals.isBarHorizontal&&(this.xaxisLabels=s.globals.timescaleLabels.slice()),s.config.xaxis.overwriteCategories&&(this.xaxisLabels=s.config.xaxis.overwriteCategories),this.drawnLabels=[],this.drawnLabelsRects=[],s.config.xaxis.position==="top"?this.offY=0:this.offY=s.globals.gridHeight+1,this.offY=this.offY+s.config.xaxis.axisBorder.offsetY,this.isCategoryBarHorizontal=s.config.chart.type==="bar"&&s.config.plotOptions.bar.horizontal,this.xaxisFontSize=s.config.xaxis.labels.style.fontSize,this.xaxisFontFamily=s.config.xaxis.labels.style.fontFamily,this.xaxisForeColors=s.config.xaxis.labels.style.colors,this.xaxisBorderWidth=s.config.xaxis.axisBorder.width,this.isCategoryBarHorizontal&&(this.xaxisBorderWidth=s.config.yaxis[0].axisBorder.width.toString()),this.xaxisBorderWidth.indexOf("%")>-1?this.xaxisBorderWidth=s.globals.gridWidth*parseInt(this.xaxisBorderWidth,10)/100:this.xaxisBorderWidth=parseInt(this.xaxisBorderWidth,10),this.xaxisBorderHeight=s.config.xaxis.axisBorder.height,this.yaxis=s.config.yaxis[0]}return m(F,[{key:"drawXaxis",value:function(){var t=this.w,n=new N(this.ctx),s=n.group({class:"apexcharts-xaxis",transform:"translate(".concat(t.config.xaxis.offsetX,", ").concat(t.config.xaxis.offsetY,")")}),o=n.group({class:"apexcharts-xaxis-texts-g",transform:"translate(".concat(t.globals.translateXAxisX,", ").concat(t.globals.translateXAxisY,")")});s.add(o);for(var c=[],d=0;d<this.xaxisLabels.length;d++)c.push(this.xaxisLabels[d]);if(this.drawXAxisLabelAndGroup(!0,n,o,c,t.globals.isXNumeric,function(T,R){return R}),t.globals.hasXaxisGroups){var h=t.globals.groups; Line truncated
.apexcharts-legend {
display: flex;
overflow: auto;
padding: 0 10px;
}
.apexcharts-legend.apx-legend-position-bottom, .apexcharts-legend.apx-legend-position-top {
flex-wrap: wrap
}
.apexcharts-legend.apx-legend-position-right, .apexcharts-legend.apx-legend-position-left {
flex-direction: column;
bottom: 0;
}
.apexcharts-legend.apx-legend-position-bottom.apexcharts-align-left, .apexcharts-legend.apx-legend-position-top.apexcharts-align-left, .apexcharts-legend.apx-legend-position-right, .apexcharts-legend.apx-legend-position-left {
justify-content: flex-start;
}
.apexcharts-legend.apx-legend-position-bottom.apexcharts-align-center, .apexcharts-legend.apx-legend-position-top.apexcharts-align-center {
justify-content: center;
}
.apexcharts-legend.apx-legend-position-bottom.apexcharts-align-right, .apexcharts-legend.apx-legend-position-top.apexcharts-align-right {
justify-content: flex-end;
}
.apexcharts-legend-series {
cursor: pointer;
line-height: normal;
}
.apexcharts-legend.apx-legend-position-bottom .apexcharts-legend-series, .apexcharts-legend.apx-legend-position-top .apexcharts-legend-series{
display: flex;
align-items: center;
}
.apexcharts-legend-text {
position: relative;
font-size: 14px;
}
.apexcharts-legend-text *, .apexcharts-legend-marker * {
pointer-events: none;
}
.apexcharts-legend-marker {
position: relative;
display: inline-block;
cursor: pointer;
margin-right: 3px;
border-style: solid;
}
.apexcharts-legend.apexcharts-align-right .apexcharts-legend-series, .apexcharts-legend.apexcharts-align-left .apexcharts-legend-series{
display: inline-block;
}
.apexcharts-legend-series.apexcharts-no-click {
cursor: auto;
}
.apexcharts-legend .apexcharts-hidden-zero-series, .apexcharts-legend .apexcharts-hidden-null-series {
display: none !important;
}
.apexcharts-inactive-legend {
opacity: 0.45;
}`);return t.appendChild(n),t}},{key:"getLegendBBox",value:function(){var t=this.w.globals.dom.baseEl.querySelector(".apexcharts-legend").getBoundingClientRect(),n=t.width;return{clwh:t.height,clww:n}}},{key:"appendToForeignObject",value:function(){this.w.globals.dom.elLegendForeign.appendChild(this.getLegendStyles())}},{key:"toggleDataSeries",value:function(t,n){var s=this,o=this.w;if(o.globals.axisCharts||o.config.chart.type==="radialBar"){o.globals.resized=!0;var c=null,d=null;o.globals.risingSeries=[],o.globals.axisCharts?(c=o.globals.dom.baseEl.querySelector(".apexcharts-series[data\\:realIndex='".concat(t,"']")),d=parseInt(c.getAttribute("data:realIndex"),10)):(c=o.globals.dom.baseEl.querySelector(".apexcharts-series[rel='".concat(t+1,"']")),d=parseInt(c.getAttribute("rel"),10)-1),n?[{cs:o.globals.collapsedSeries,csi:o.globals.collapsedSeriesIndices},{cs:o.globals.ancillaryCollapsedSeries,csi:o.globals.ancillaryCollapsedSeriesIndices}].forEach(function(b){s.riseCollapsedSeries(b.cs,b.csi,d)}):this.hideSeries({seriesEl:c,realIndex:d})}else{var h=o.globals.dom.Paper.select(" .apexcharts-series[rel='".concat(t+1,"'] path")),g=o.config.chart.type;if(g==="pie"||g==="polarArea"||g==="donut"){var p=o.config.plotOptions.pie.donut.labels;new N(this.lgCtx.ctx).pathMouseDown(h.members[0],null),this.lgCtx.ctx.pie.printDataLabelsInner(h.members[0].node,p)}h.fire("click")}}},{key:"hideSeries",value:function(t){var n=t.seriesEl,s=t.realIndex,o=this.w,c=L.clone(o.config.series);if(o.globals.axisCharts){var d=!1;if(o.config.yaxis[s]&&o.config.yaxis[s].show&&o.config.yaxis[s].showAlways&&(d=!0,o.globals.ancillaryCollapsedSeriesIndices.indexOf(s)<0&&(o.globals.ancillaryCollapsedSeries.push({index:s,data:c[s].data.slice(),type:n.parentNode.className.baseVal.split("-")[1]}),o.globals.ancillaryCollapsedSeriesIndices.push(s))),!d){o.globals.collapsedSeries.push({index:s,data:c[s].data.slice(),type:n.parentNode.className.baseVal.split("-")[1]}),o.globals.collapsedSeriesIndices.push(s);var h=o.globals.risingSeries.indexOf(s);o.globals.risingSeries.splice(h,1)}}else o.globals.collapsedSeries.push({index:s,data:c[s]}),o.globals.collapsedSeriesIndices.push(s);for(var g=n.childNodes,p=0;p<g.length;p++)g[p].classList.contains("apexcharts-series-markers-wrap")&&(g[p].classList.contains("apexcharts-hide")?g[p].classList.remove("apexcharts-hide"):g[p].classList.add("apexcharts-hide"));o.globals.allSeriesCollapsed=o.globals.collapsedSeries.length===o.config.series.length,c=this._getSeriesBasedOnCollapsedState(c),this.lgCtx.ctx.updateHelpers._updateSeries(c,o.config.chart.animations.dynamicAnimation.enabled)}},{key:"riseCollapsedSeries",value:function(t,n,s){var o=this.w,c=L.clone(o.config.series);if(t.length>0){for(var d=0;d<t.length;d++)t[d].index===s&&(o.globals.axisCharts?(c[s].data=t[d].data.slice(),t.splice(d,1),n.splice(d,1),o.globals.risingSeries.push(s)):(c[s]=t[d].data,t.splice(d,1),n.splice(d,1),o.globals.risingSeries.push(s)));c=this._getSeriesBasedOnCollapsedState(c),this.lgCtx.ctx.updateHelpers._updateSeries(c,o.config.chart.animations.dynamicAnimation.enabled)}}},{key:"_getSeriesBasedOnCollapsedState",value:function(t){var n=this.w;return n.globals.axisCharts?t.forEach(function(s,o){n.globals.collapsedSeriesIndices.indexOf(o)>-1&&(t[o].data=[])}):t.forEach(function(s,o){n.globals.collapsedSeriesIndices.indexOf(o)>-1&&(t[o]=0)}),t}}]),F}(),ft=function(){function F(t){u(this,F),this.ctx=t,this.w=t.w,this.onLegendClick=this.onLegendClick.bind(this),this.onLegendHovered=this.onLegendHovered.bind(this),this.isBarsDistributed=this.w.config.chart.type==="bar"&&this.w.config.plotOptions.bar.distributed&&this.w.config.series.length===1,this.legendHelpers=new xt(this)}return m(F,[{key:"init",value:function(){var t=this.w,n=t.globals,s=t.config;if((s.legend.showForSingleSeries&&n.series.length===1||this.isBarsDistributed||n.series.length>1||!n.axisCharts)&&s.legend.show){for(;n.dom.elLegendWrap.firstChild;)n.dom.elLegendWrap.removeChild(n.dom.elLegendWrap.firstChild);this.drawLegends(),L.isIE11()?document.getElementsByTagName("head")[0].appendChild(this.legendHelpers.getLegendStyles()):this.legendHelpers.appendToForeignObject(),s.legend.position==="bottom"||s.legend.position==="top"?this.legendAlignHorizontal():s.legend.position!=="right"&&s.legend.position!=="left"||this.legendAlignVertical()}}},{key:"drawLegends",value:function(){var t=this,n=this.w,s=n.config.legend.fontFamily,o=n.globals.seriesNames,c=n.globals.colors.slice();if(n.config.chart.type==="heatmap"){var d=n.config.plotOptions.heatmap.colorScale.ranges;o=d.map(function(ye){return ye.name?ye.name:ye.from+" - "+ye.to}),c=d.map(function(ye){return ye.color})}else this.isBarsDistributed&&(o=n.globals.labels.slice());n.config.legend.customLegendItems.length&&(o=n.config.legend.customLegendItems);for(var h=n.globals.legendFormatter,g=n.config.legend.inverseOrder,p=g?o.length-1:0;g?p>=0:p<=o.length-1;g?p--:p++){var b,y=h(o[p],{seriesIndex:p,w:n}),S=!1,P=!1;if(n.globa Line truncated
<path d="M0 0h24v24H0z" fill="none"/>
<path d="M13 7h-2v4H7v2h4v4h2v-4h4v-2h-4V7zm-1-5C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"/>
</svg>
`),h("zoomOut",this.elZoomOut,`<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
<path d="M0 0h24v24H0z" fill="none"/>
<path d="M7 11v2h10v-2H7zm5-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"/>
</svg>
`);var g=function(y){t.t[y]&&n.config.chart[y].enabled&&d.push({el:y==="zoom"?t.elZoom:t.elSelection,icon:typeof t.t[y]=="string"?t.t[y]:y==="zoom"?`<svg xmlns="http://www.w3.org/2000/svg" fill="#000000" height="24" viewBox="0 0 24 24" width="24">
<path d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"/>
<path d="M0 0h24v24H0V0z" fill="none"/>
<path d="M12 10h-2v2H9v-2H7V9h2V7h1v2h2v1z"/>
</svg>`:`<svg fill="#6E8192" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg">
<path d="M0 0h24v24H0z" fill="none"/>
<path d="M3 5h2V3c-1.1 0-2 .9-2 2zm0 8h2v-2H3v2zm4 8h2v-2H7v2zM3 9h2V7H3v2zm10-6h-2v2h2V3zm6 0v2h2c0-1.1-.9-2-2-2zM5 21v-2H3c0 1.1.9 2 2 2zm-2-4h2v-2H3v2zM9 3H7v2h2V3zm2 18h2v-2h-2v2zm8-8h2v-2h-2v2zm0 8c1.1 0 2-.9 2-2h-2v2zm0-12h2V7h-2v2zm0 8h2v-2h-2v2zm-4 4h2v-2h-2v2zm0-16h2V3h-2v2z"/>
</svg>`,title:t.localeValues[y==="zoom"?"selectionZoom":"selection"],class:n.globals.isTouchDevice?"apexcharts-element-hidden":"apexcharts-".concat(y,"-icon")})};g("zoom"),g("selection"),this.t.pan&&n.config.chart.zoom.enabled&&d.push({el:this.elPan,icon:typeof this.t.pan=="string"?this.t.pan:`<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" fill="#000000" height="24" viewBox="0 0 24 24" width="24">
<defs>
<path d="M0 0h24v24H0z" id="a"/>
</defs>
<clipPath id="b">
<use overflow="visible" xlink:href="#a"/>
</clipPath>
<path clip-path="url(#b)" d="M23 5.5V20c0 2.2-1.8 4-4 4h-7.3c-1.08 0-2.1-.43-2.85-1.19L1 14.83s1.26-1.23 1.3-1.25c.22-.19.49-.29.79-.29.22 0 .42.06.6.16.04.01 4.31 2.46 4.31 2.46V4c0-.83.67-1.5 1.5-1.5S11 3.17 11 4v7h1V1.5c0-.83.67-1.5 1.5-1.5S15 .67 15 1.5V11h1V2.5c0-.83.67-1.5 1.5-1.5s1.5.67 1.5 1.5V11h1V5.5c0-.83.67-1.5 1.5-1.5s1.5.67 1.5 1.5z"/>
</svg>`,title:this.localeValues.pan,class:n.globals.isTouchDevice?"apexcharts-element-hidden":"apexcharts-pan-icon"}),h("reset",this.elZoomReset,`<svg fill="#000000" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg">
<path d="M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z"/>
<path d="M0 0h24v24H0z" fill="none"/>
</svg>`),this.t.download&&d.push({el:this.elMenuIcon,icon:typeof this.t.download=="string"?this.t.download:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"/></svg>',title:this.localeValues.menu,class:"apexcharts-menu-icon"});for(var p=0;p<this.elCustomIcons.length;p++)d.push({el:this.elCustomIcons[p],icon:this.t.customIcons[p].icon,title:this.t.customIcons[p].title,index:this.t.customIcons[p].index,class:"apexcharts-toolbar-custom-icon "+this.t.customIcons[p].class});d.forEach(function(y,S){y.index&&L.moveIndexInArray(d,S,y.index)});for(var b=0;b<d.length;b++)N.setAttrs(d[b].el,{class:d[b].class,title:d[b].title}),d[b].el.innerHTML=d[b].icon,o.appendChild(d[b].el);this._createHamburgerMenu(o),n.globals.zoomEnabled?this.elZoom.classList.add(this.selectedClass):n.globals.panEnabled?this.elPan.classList.add(this.selectedClass):n.globals.selectionEnabled&&this.elSelection.classList.add(this.selectedClass),this.addToolbarEventListeners()}},{key:"_createHamburgerMenu",value:function(t){this.elMenuItems=[],t.appendChild(this.elMenu),N.setAttrs(this.elMenu,{class:"apexcharts-menu"});var n=[{name:"exportSVG",title:this.localeValues.exportToSVG},{name:"exportPNG",title:this.localeValues.exportToPNG},{name:"exportCSV",title:this.localeValues.exportToCSV}];this.w.globals.allSeriesHasEqualX||n.splice(2,1);for(var s=0;s<n.length;s++)this.elMenuItems.push(document.createElement("div")),this.elMenuItems[s].innerHTML=n[s].title,N.setAttrs(this.elMenuItems[s],{class:"apexcharts-menu-item ".concat(n[s].name),title:n[s].title}),this.elMenu.appendChild(this.elMenuItems[s])}},{key:"addToolbarEventListeners",value:function(){var t=this;this.elZoomReset.addEventListener("click",this.handleZoomReset.bind(this)),this.elSelection.addEventListener("click",this.toggleZoomSelection.bind(this,"selection")),this.elZoom.addEventListener("click",this.toggleZoomSelection.bind(this,"zoom")),this.elZoomIn.addEventListener("click",this.handleZoomIn.bind(this)),this.elZoomOut.addEventListener("click",this.handleZoomOut.bind(this)),this.elPan.addEventListener("click",this.togglePanning.bind(this)),this.elMenuIcon.addEventListener("click",this.toggleMenu.bind(this)),this.elMenuItems.forEach(function(s){s.classList.contains("exportSVG")?s.addEventListener("click",t.handleDownload.bind(t,"svg")):s.classList.contains("exportPNG")?s.addEventListener("click",t.handleDownload.bind(t,"png")):s.classList.contains("exportCSV")&&s.addEventListener("click",t.handleDownload.bind(t,"csv"))});for(var n=0;n<this.t.customIcons.length;n++)this.elCustomIcons[n].addEventListener("click",this.t.customIcons[n].click.bind(this,this.ctx,this.ctx.w))}},{key:"toggleZoomSelection",value:function(t){this.ctx.getSyncedCharts().forEach(function(n){n.ctx.toolbar.toggleOtherControls();var s=t==="selection"?n.ctx.toolbar.elSelection:n.ctx.toolbar.elZoom,o=t==="selection"?"selectionEnabled":"zoomEnabled";n.w.globals[o]=!n.w.globals[o],s.classList.contains(n.ctx.toolbar.selectedClass)?s.classList.remove(n.ctx.toolbar.selectedClass):s.classList.add(n.ctx.toolbar.selectedClass)})}},{key:"getToolbarIconsReference",value:function(){var t=this.w;this.elZoom||(this.elZoom=t.globals.dom.baseEl.querySelector(".apexcharts-zoom-icon")),this.elPan||(this.elPan=t.globals.dom.baseEl.querySelector(".apexcharts-pan-icon")),this.elSelection||(this.elSelection=t.globals.dom.baseEl.querySelector(".apexcharts-selection-icon"))}},{key:"enableZoomPanFromToolbar",value:function(t){this.toggleOtherControls(),t==="pan"?this.w.globals.panEnabled=!0:this.w.globals.zoomEnabled=!0;var n=t==="pan"?this.elPan:this.elZoom,s=t==="pan"?this.elZoom:this.elPan;n&&n.classList.add(this.selectedClass),s&&s.classList.remove(this.selectedClass)}},{key:"togglePanning",value:function(){this.ctx.getSyncedCharts().forEach(function(t){t.ctx.toolbar.toggleOtherControls(),t.w.globals.panEnabled=!t.w.globals.panEnabled,t.ctx.toolbar.elPan.classList.contains(t.ctx.toolbar.selectedClass)?t.ctx.toolbar.elPan.classList.remove(t.ctx.toolbar.selectedClass):t.ctx.toolbar.elPan.classList.add(t.ctx.toolbar.selectedClass)})}},{key:"toggleOtherControls",value:function(){var t=this,n=this.w;n.globals.panEnabled=!1,n.globals.zoomEnabled=!1,n.globals.selectionEnabled=!1,this.getToolbarIconsReference(),[this.elPan,this.elSelection,this.elZoom].forEach(function(s){s&&s.classList.remove(t.selectedClass)})}},{key:"handleZoomIn",value:function(){var t=this.w;t.globals.isRangeBar&&(this.minX=t.globals.minY,this.maxX=t.globals.maxY);var n=(this.minX+this.maxX)/2,s=(this.minX+n)/2,o=(this.maxX+n)/2,c=this._getNewMinXMaxX(s,o);t.globals.disableZoomIn||this.zoomUpdateOptions(c.minX,c.maxX)}},{key:"handleZoomOut",value:function(){var t=this.w;if(t.globals.isRangeBar&&(this.minX=t.globals.minY,this.maxX=t.globals.maxY),!(t.config.xaxis.type==="datetime"&&new Date(this.minX).getUTCFullYear()<1e3)){var n=(this.minX+this.maxX)/Line truncated
.apexcharts-candlestick-series .apexcharts-series[data\\:realIndex='`).concat(n,"'] path[j='").concat(t,`'],
.apexcharts-boxPlot-series .apexcharts-series[data\\:realIndex='`).concat(n,"'] path[j='").concat(t,`'],
.apexcharts-rangebar-series .apexcharts-series[data\\:realIndex='`).concat(n,"'] path[j='").concat(t,"']")));var g=h?parseFloat(h.getAttribute("cx")):0,p=h?parseFloat(h.getAttribute("cy")):0,b=h?parseFloat(h.getAttribute("barWidth")):0,y=o.getElGrid().getBoundingClientRect(),S=h&&(h.classList.contains("apexcharts-candlestick-area")||h.classList.contains("apexcharts-boxPlot-area"));s.globals.isXNumeric?(h&&!S&&(g-=c%2!=0?b/2:0),h&&S&&s.globals.comboCharts&&(g-=b/2)):s.globals.isBarHorizontal||(g=o.xAxisTicksPositions[t-1]+o.dataPointsDividedWidth/2,isNaN(g)&&(g=o.xAxisTicksPositions[t]-o.dataPointsDividedWidth/2)),s.globals.isBarHorizontal?p-=o.tooltipRect.ttHeight:s.config.tooltip.followCursor?p=o.e.clientY-y.top-o.tooltipRect.ttHeight/2:p+o.tooltipRect.ttHeight+15>s.globals.gridHeight&&(p=s.globals.gridHeight),s.globals.isBarHorizontal||this.moveXCrosshairs(g),o.fixedTooltip||this.moveTooltip(g,p||s.globals.gridHeight)}}]),F}(),Er=function(){function F(t){u(this,F),this.w=t.w,this.ttCtx=t,this.ctx=t.ctx,this.tooltipPosition=new Ca(t)}return m(F,[{key:"drawDynamicPoints",value:function(){var t=this.w,n=new N(this.ctx),s=new Ze(this.ctx),o=t.globals.dom.baseEl.querySelectorAll(".apexcharts-series");o=D(o),t.config.chart.stacked&&o.sort(function(y,S){return parseFloat(y.getAttribute("data:realIndex"))-parseFloat(S.getAttribute("data:realIndex"))});for(var c=0;c<o.length;c++){var d=o[c].querySelector(".apexcharts-series-markers-wrap");if(d!==null){var h=void 0,g="apexcharts-marker w".concat((Math.random()+1).toString(36).substring(4));t.config.chart.type!=="line"&&t.config.chart.type!=="area"||t.globals.comboCharts||t.config.tooltip.intersect||(g+=" no-pointer-events");var p=s.getMarkerConfig({cssClass:g,seriesIndex:Number(d.getAttribute("data:realIndex"))});(h=n.drawMarker(0,0,p)).node.setAttribute("default-marker-size",0);var b=document.createElementNS(t.globals.SVGNS,"g");b.classList.add("apexcharts-series-markers"),b.appendChild(h.node),d.appendChild(b)}}}},{key:"enlargeCurrentPoint",value:function(t,n){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null,c=this.w;c.config.chart.type!=="bubble"&&this.newPointSize(t,n);var d=n.getAttribute("cx"),h=n.getAttribute("cy");if(s!==null&&o!==null&&(d=s,h=o),this.tooltipPosition.moveXCrosshairs(d),!this.fixedTooltip){if(c.config.chart.type==="radar"){var g=this.ttCtx.getElGrid().getBoundingClientRect();d=this.ttCtx.e.clientX-g.left}this.tooltipPosition.moveTooltip(d,h,c.config.markers.hover.size)}}},{key:"enlargePoints",value:function(t){for(var n=this.w,s=this,o=this.ttCtx,c=t,d=n.globals.dom.baseEl.querySelectorAll(".apexcharts-series:not(.apexcharts-series-collapsed) .apexcharts-marker"),h=n.config.markers.hover.size,g=0;g<d.length;g++){var p=d[g].getAttribute("rel"),b=d[g].getAttribute("index");if(h===void 0&&(h=n.globals.markers.size[b]+n.config.markers.hover.sizeOffset),c===parseInt(p,10)){s.newPointSize(c,d[g]);var y=d[g].getAttribute("cx"),S=d[g].getAttribute("cy");s.tooltipPosition.moveXCrosshairs(y),o.fixedTooltip||s.tooltipPosition.moveTooltip(y,S,h)}else s.oldPointSize(d[g])}}},{key:"newPointSize",value:function(t,n){var s=this.w,o=s.config.markers.hover.size,c=t===0?n.parentNode.firstChild:n.parentNode.lastChild;if(c.getAttribute("default-marker-size")!=="0"){var d=parseInt(c.getAttribute("index"),10);o===void 0&&(o=s.globals.markers.size[d]+s.config.markers.hover.sizeOffset),o<0&&(o=0),c.setAttribute("r",o)}}},{key:"oldPointSize",value:function(t){var n=parseFloat(t.getAttribute("default-marker-size"));t.setAttribute("r",n)}},{key:"resetPointsSize",value:function(){for(var t=this.w.globals.dom.baseEl.querySelectorAll(".apexcharts-series:not(.apexcharts-series-collapsed) .apexcharts-marker"),n=0;n<t.length;n++){var s=parseFloat(t[n].getAttribute("default-marker-size"));L.isNumber(s)&&s>=0?t[n].setAttribute("r",s):t[n].setAttribute("r",0)}}}]),F}(),on=function(){function F(t){u(this,F),this.w=t.w;var n=this.w;this.ttCtx=t,this.isVerticalGroupedRangeBar=!n.globals.isBarHorizontal&&n.config.chart.type==="rangeBar"&&n.config.plotOptions.bar.rangeBarGroupRows}return m(F,[{key:"getAttr",value:function(t,n){return parseFloat(t.target.getAttribute(n))}},{key:"handleHeatTreeTooltip",value:function(t){var n=t.e,s=t.opt,o=t.x,c=t.y,d=t.type,h=this.ttCtx,g=this.w;if(n.target.classList.contains("apexcharts-".concat(d,"-rect"))){var p=this.getAttr(n,"i"),b=this.getAttr(n,"j"),y=this.getAttr(n,"cx"),S=this.getAttr(n,"cy"),P=this.getAttr(n,"width"),T=this.getAttr(n,"height");if(h.tooltipLabels.drawSeriesTexts({ttItems:s.ttItems,i:p,j:b,shared:!1,e:n}),g.globals.capturedSeriesIndex=p,g.globals.capturedDataPointIndex=b,o=y+h.tooltipRect.ttWidth/2+P,c=S+h.tooltipRect.ttHeight/2-T/2,h.tooltipPosition.moveXCrosshairs(y+P/2),o>g.globals.gridWidth/2&&(o=y-h.tooltipRect.ttWidth/2+P),h.w.config.tooltip.followCursor){var R=g.globals.dom.elWrap.getBoundingClientRect();o=g.globals.clientX-R.left-(Line truncated
`),v+=k[I].textContent;return v}if(this.clear().build(!0),typeof v=="function")v.call(this,this);else{I=0;for(var q=(v=v.split(`
`)).length;I<q;I++)this.tspan(v[I]).newLine()}return this.build(!1).rebuild()},size:function(v){return this.attr("font-size",v).rebuild()},leading:function(v){return v==null?this.dom.leading:(this.dom.leading=new n.Number(v),this.rebuild())},lines:function(){var v=(this.textPath&&this.textPath()||this).node,k=n.utils.map(n.utils.filterSVGElements(v.childNodes),function(I){return n.adopt(I)});return new n.Set(k)},rebuild:function(v){if(typeof v=="boolean"&&(this._rebuild=v),this._rebuild){var k=this,I=0,z=this.dom.leading*new n.Number(this.attr("font-size"));this.lines().each(function(){this.dom.newLined&&(k.textPath()||this.attr("x",k.attr("x")),this.text()==`
`?I+=z:(this.attr("dy",z+I),I=0))}),this.fire("rebuild")}return this},build:function(v){return this._build=!!v,this},setData:function(v){return this.dom=v,this.dom.leading=new n.Number(v.leading||1.3),this}},construct:{text:function(v){return this.put(new n.Text).text(v)},plain:function(v){return this.put(new n.Text).plain(v)}}}),n.Tspan=n.invent({create:"tspan",inherit:n.Shape,extend:{text:function(v){return v==null?this.node.textContent+(this.dom.newLined?`
`:""):(typeof v=="function"?v.call(this,this):this.plain(v),this)},dx:function(v){return this.attr("dx",v)},dy:function(v){return this.attr("dy",v)},newLine:function(){var v=this.parent(n.Text);return this.dom.newLined=!0,this.dy(v.dom.leading*v.attr("font-size")).attr("x",v.x())}}}),n.extend(n.Text,n.Tspan,{plain:function(v){return this._build===!1&&this.clear(),this.node.appendChild(t.createTextNode(v)),this},tspan:function(v){var k=(this.textPath&&this.textPath()||this).node,I=new n.Tspan;return this._build===!1&&this.clear(),k.appendChild(I.node),I.text(v)},clear:function(){for(var v=(this.textPath&&this.textPath()||this).node;v.hasChildNodes();)v.removeChild(v.lastChild);return this},length:function(){return this.node.getComputedTextLength()}}),n.TextPath=n.invent({create:"textPath",inherit:n.Parent,parent:n.Text,construct:{morphArray:n.PathArray,array:function(){var v=this.track();return v?v.array():null},plot:function(v){var k=this.track(),I=null;return k&&(I=k.plot(v)),v==null?I:this},track:function(){var v=this.textPath();if(v)return v.reference("href")},textPath:function(){if(this.node.firstChild&&this.node.firstChild.nodeName=="textPath")return n.adopt(this.node.firstChild)}}}),n.Nested=n.invent({create:function(){this.constructor.call(this,n.create("svg")),this.style("overflow","visible")},inherit:n.Container,construct:{nested:function(){return this.put(new n.Nested)}}});var h={stroke:["color","width","opacity","linecap","linejoin","miterlimit","dasharray","dashoffset"],fill:["color","opacity","rule"],prefix:function(v,k){return k=="color"?v:v+"-"+k}};function g(v,k,I,z){return I+z.replace(n.regex.dots," .")}function p(v){return v.toLowerCase().replace(/-(.)/g,function(k,I){return I.toUpperCase()})}function b(v){return v.charAt(0).toUpperCase()+v.slice(1)}function y(v){var k=v.toString(16);return k.length==1?"0"+k:k}function S(v,k,I){if(k==null||I==null){var z=v.bbox();k==null?k=z.width/z.height*I:I==null&&(I=z.height/z.width*k)}return{width:k,height:I}}function P(v,k,I){return{x:k*v.a+I*v.c+0,y:k*v.b+I*v.d+0}}function T(v){return{a:v[0],b:v[1],c:v[2],d:v[3],e:v[4],f:v[5]}}function R(v){for(var k=v.childNodes.length-1;k>=0;k--)v.childNodes[k]instanceof F.SVGElement&&R(v.childNodes[k]);return n.adopt(v).id(n.eid(v.nodeName))}function M(v){return Math.abs(v)>1e-37?v:0}["fill","stroke"].forEach(function(v){var k={};k[v]=function(I){if(I===void 0)return this;if(typeof I=="string"||n.Color.isRgb(I)||I&&typeof I.fill=="function")this.attr(v,I);else for(var z=h[v].length-1;z>=0;z--)I[h[v][z]]!=null&&this.attr(h.prefix(v,h[v][z]),I[h[v][z]]);return this},n.extend(n.Element,n.FX,k)}),n.extend(n.Element,n.FX,{translate:function(v,k){return this.transform({x:v,y:k})},matrix:function(v){return this.attr("transform",new n.Matrix(arguments.length==6?[].slice.call(arguments):v))},opacity:function(v){return this.attr("opacity",v)},dx:function(v){return this.x(new n.Number(v).plus(this instanceof n.FX?0:this.x()),!0)},dy:function(v){return this.y(new n.Number(v).plus(this instanceof n.FX?0:this.y()),!0)}}),n.extend(n.Path,{length:function(){return this.node.getTotalLength()},pointAt:function(v){return this.node.getPointAtLength(v)}}),n.Set=n.invent({create:function(v){Array.isArray(v)?this.members=v:this.clear()},extend:{add:function(){for(var v=[].slice.call(arguments),k=0,I=v.length;k<I;k++)this.members.push(v[k]);return this},remove:function(v){var k=this.index(v);return k>-1&&this.members.splice(k,1),this},each:function(v){for(var k=0,I=this.members.length;k<I;k++)v.apply(this.members[k],[k,this.members]);return this},clear:function(){return this.members=[],this},length:function(){return this.members.length},has:function(v){return this.index(v)>=0},index:function(v){return this.members.indexOf(v)},get:function(v){return this.members[v]},first:function(){return this.get(0)},last:function(){return this.get(this.members.length-1)},valueOf:function(){return this.members}},construct:{set:function(v){return new n.Set(v)}}}),n.FX.Set=n.invent({create:function(v){this.set=v}}),n.Set.inherit=function(){var v=[];for(var k in n.Shape.prototype)typeof n.Shape.prototype[k]=="function"&&typeof n.Set.prototype[k]!="function"&&v.push(k);for(var k in v.forEach(function(z){n.Set.prototype[z]=function(){for(var q=0,K=this.members.length;q<K;q++)this.members[q]&&typeof this.members[q][z]=="function"&&this.members[q][z].apply(this.members[q],arguments);return z=="animate"?this.fx||(this.fx=new n.FX.Set(this)):this}}),v=[],n.FX.prototype)typeof n.FX.prototype[k]=="function"&&typeof n.FX.Set.prototype[k]!="function"&&v.push(k);v.forEach(function(I){n.FX.Set.prototype[I]=function(){for(var z=0,q=this.set.members.length;z<q;z++)this.set.members[z].fx[I].apply(this.set.members[z].fx,arguments);return this}})},n.extend(n.Element,{}),n.extend(n.Element,{remember:function(v,k){if(l(arguments[0])==="object")for(var I in v)this.remember(I,v[I]);else{if(arguments.length==1)return this.memory()[v];this.memory()[v]=k}return this},forget:fun Line truncated
0% {
opacity: 0
}
to {
opacity: 1
}
}
@keyframes resizeanim {
0%,to {
opacity: 0
}
}
.apexcharts-canvas {
position: relative;
user-select: none
}
.apexcharts-canvas ::-webkit-scrollbar {
-webkit-appearance: none;
width: 6px
}
.apexcharts-canvas ::-webkit-scrollbar-thumb {
border-radius: 4px;
background-color: rgba(0,0,0,.5);
box-shadow: 0 0 1px rgba(255,255,255,.5);
-webkit-box-shadow: 0 0 1px rgba(255,255,255,.5)
}
.apexcharts-inner {
position: relative
}
.apexcharts-text tspan {
font-family: inherit
}
.legend-mouseover-inactive {
transition: .15s ease all;
opacity: .2
}
.apexcharts-legend-text {
padding-left: 15px;
margin-left: -15px;
}
.apexcharts-series-collapsed {
opacity: 0
}
.apexcharts-tooltip {
border-radius: 5px;
box-shadow: 2px 2px 6px -4px #999;
cursor: default;
font-size: 14px;
left: 62px;
opacity: 0;
pointer-events: none;
position: absolute;
top: 20px;
display: flex;
flex-direction: column;
overflow: hidden;
white-space: nowrap;
z-index: 12;
transition: .15s ease all
}
.apexcharts-tooltip.apexcharts-active {
opacity: 1;
transition: .15s ease all
}
.apexcharts-tooltip.apexcharts-theme-light {
border: 1px solid #e3e3e3;
background: rgba(255,255,255,.96)
}
.apexcharts-tooltip.apexcharts-theme-dark {
color: #fff;
background: rgba(30,30,30,.8)
}
.apexcharts-tooltip * {
font-family: inherit
}
.apexcharts-tooltip-title {
padding: 6px;
font-size: 15px;
margin-bottom: 4px
}
.apexcharts-tooltip.apexcharts-theme-light .apexcharts-tooltip-title {
background: #eceff1;
border-bottom: 1px solid #ddd
}
.apexcharts-tooltip.apexcharts-theme-dark .apexcharts-tooltip-title {
background: rgba(0,0,0,.7);
border-bottom: 1px solid #333
}
.apexcharts-tooltip-text-goals-value,.apexcharts-tooltip-text-y-value,.apexcharts-tooltip-text-z-value {
display: inline-block;
margin-left: 5px;
font-weight: 600
}
.apexcharts-tooltip-text-goals-label:empty,.apexcharts-tooltip-text-goals-value:empty,.apexcharts-tooltip-text-y-label:empty,.apexcharts-tooltip-text-y-value:empty,.apexcharts-tooltip-text-z-value:empty,.apexcharts-tooltip-title:empty {
display: none
}
.apexcharts-tooltip-text-goals-label,.apexcharts-tooltip-text-goals-value {
padding: 6px 0 5px
}
.apexcharts-tooltip-goals-group,.apexcharts-tooltip-text-goals-label,.apexcharts-tooltip-text-goals-value {
display: flex
}
.apexcharts-tooltip-text-goals-label:not(:empty),.apexcharts-tooltip-text-goals-value:not(:empty) {
margin-top: -6px
}
.apexcharts-tooltip-marker {
width: 12px;
height: 12px;
position: relative;
top: 0;
margin-right: 10px;
border-radius: 50%
}
.apexcharts-tooltip-series-group {
padding: 0 10px;
display: none;
text-align: left;
justify-content: left;
align-items: center
}
.apexcharts-tooltip-series-group.apexcharts-active .apexcharts-tooltip-marker {
opacity: 1
}
.apexcharts-tooltip-series-group.apexcharts-active,.apexcharts-tooltip-series-group:last-child {
padding-bottom: 4px
}
.apexcharts-tooltip-series-group-hidden {
opacity: 0;
height: 0;
line-height: 0;
padding: 0!important
}
.apexcharts-tooltip-y-group {
padding: 6px 0 5px
}
.apexcharts-custom-tooltip,.apexcharts-tooltip-box {
padding: 4px 8px
}
.apexcharts-tooltip-boxPlot {
display: flex;
flex-direction: column-reverse
}
.apexcharts-tooltip-box>div {
margin: 4px 0
}
.apexcharts-tooltip-box span.value {
font-weight: 700
}
.apexcharts-tooltip-rangebar {
padding: 5px 8px
}
.apexcharts-tooltip-rangebar .category {
font-weight: 600;
color: #777
}
.apexcharts-tooltip-rangebar .series-name {
font-weight: 700;
display: block;
margin-bottom: 5px
}
.apexcharts-xaxistooltip,.apexcharts-yaxistooltip {
opacity: 0;
pointer-events: none;
color: #373d3f;
font-size: 13px;
text-align: center;
border-radius: 2px;
position: absolute;
z-index: 10;
background: #eceff1;
border: 1px solid #90a4ae
}
.apexcharts-xaxistooltip {
padding: 9px 10px;
transition: .15s ease all
}
.apexcharts-xaxistooltip.apexcharts-theme-dark {
background: rgba(0,0,0,.7);
border: 1px solid rgba(0,0,0,.5);
color: #fff
}
.apexcharts-xaxistooltip:after,.apexcharts-xaxistooltip:before {
left: 50%;
border: solid transparent;
content: " ";
height: 0;
width: 0;
position: absolute;
pointer-events: none
}
.apexcharts-xaxistooltip:after {
border-color: transparent;
border-width: 6px;
margin-left: -6px
}
.apexcharts-xaxistooltip:before {
border-color: transparent;
border-width: 7px;
margin-left: -7px
}
.apexcharts-xaxistooltip-bottom:after,.apexcharts-xaxistooltip-bottom:before {
bottom: 100%
}
.apexcharts-xaxistooltip-top:after,.apexcharts-xaxistooltip-top:before {
top: 100%
}
.apexcharts-xaxistooltip-bottom:after {
border-bottom-color: #eceff1
}
.apexcharts-xaxistooltip-bottom:before {
border-bottom-color: #90a4ae
}
.apexcharts-xaxistooltip-bottom.apexcharts-theme-dark:after,.apexcharts-xaxistooltip-bottom.apexcharts-theme-dark:before {
border-bottom-color: rgba(0,0,0,.5)
}
.apexcharts-xaxistooltip-top:after {
border-top-color: #eceff1
}
.apexcharts-xaxistooltip-top:before {
border-top-color: #90a4ae
}
.apexcharts-xaxistooltip-top.apexcharts-theme-dark:after,.apexcharts-xaxistooltip-top.apexcharts-theme-dark:before {
border-top-color: rgba(0,0,0,.5)
}
.apexcharts-xaxistooltip.apexcharts-active {
opacity: 1;
transition: .15s ease all
}
.apexcharts-yaxistooltip {
padding: 4px 10px
}
.apexcharts-yaxistooltip.apexcharts-theme-dark {
background: rgba(0,0,0,.7);
border: 1px solid rgba(0,0,0,.5);
color: #fff
}
.apexcharts-yaxistooltip:after,.apexcharts-yaxistooltip:before {
top: 50%;
border: solid transparent;
content: " ";
height: 0;
width: 0;
position: absolute;
pointer-events: none
}
.apexcharts-yaxistooltip:after {
border-color: transparent;
border-width: 6px;
margin-top: -6px
}
.apexcharts-yaxistooltip:before {
border-color: transparent;
border-width: 7px;
margin-top: -7px
}
.apexcharts-yaxistooltip-left:after,.apexcharts-yaxistooltip-left:before {
left: 100%
}
.apexcharts-yaxistooltip-right:after,.apexcharts-yaxistooltip-right:before {
right: 100%
}
.apexcharts-yaxistooltip-left:after {
border-left-color: #eceff1
}
.apexcharts-yaxistooltip-left:before {
border-left-color: #90a4ae
}
.apexcharts-yaxistooltip-left.apexcharts-theme-dark:after,.apexcharts-yaxistooltip-left.apexcharts-theme-dark:before {
border-left-color: rgba(0,0,0,.5)
}
.apexcharts-yaxistooltip-right:after {
border-right-color: #eceff1
}
.apexcharts-yaxistooltip-right:before {
border-right-color: #90a4ae
}
.apexcharts-yaxistooltip-right.apexcharts-theme-dark:after,.apexcharts-yaxistooltip-right.apexcharts-theme-dark:before {
border-right-color: rgba(0,0,0,.5)
}
.apexcharts-yaxistooltip.apexcharts-active {
opacity: 1
}
.apexcharts-yaxistooltip-hidden {
display: none
}
.apexcharts-xcrosshairs,.apexcharts-ycrosshairs {
pointer-events: none;
opacity: 0;
transition: .15s ease all
}
.apexcharts-xcrosshairs.apexcharts-active,.apexcharts-ycrosshairs.apexcharts-active {
opacity: 1;
transition: .15s ease all
}
.apexcharts-ycrosshairs-hidden {
opacity: 0
}
.apexcharts-selection-rect {
cursor: move
}
.svg_select_boundingRect,.svg_select_points_rot {
pointer-events: none;
opacity: 0;
visibility: hidden
}
.apexcharts-selection-rect+g .svg_select_boundingRect,.apexcharts-selection-rect+g .svg_select_points_rot {
opacity: 0;
visibility: hidden
}
.apexcharts-selection-rect+g .svg_select_points_l,.apexcharts-selection-rect+g .svg_select_points_r {
cursor: ew-resize;
opacity: 1;
visibility: visible
}
.svg_select_points {
fill: #efefef;
stroke: #333;
rx: 2
}
.apexcharts-svg.apexcharts-zoomable.hovering-zoom {
cursor: crosshair
}
.apexcharts-svg.apexcharts-zoomable.hovering-pan {
cursor: move
}
.apexcharts-menu-icon,.apexcharts-pan-icon,.apexcharts-reset-icon,.apexcharts-selection-icon,.apexcharts-toolbar-custom-icon,.apexcharts-zoom-icon,.apexcharts-zoomin-icon,.apexcharts-zoomout-icon {
cursor: pointer;
width: 20px;
height: 20px;
line-height: 24px;
color: #6e8192;
text-align: center
}
.apexcharts-menu-icon svg,.apexcharts-reset-icon svg,.apexcharts-zoom-icon svg,.apexcharts-zoomin-icon svg,.apexcharts-zoomout-icon svg {
fill: #6e8192
}
.apexcharts-selection-icon svg {
fill: #444;
transform: scale(.76)
}
.apexcharts-theme-dark .apexcharts-menu-icon svg,.apexcharts-theme-dark .apexcharts-pan-icon svg,.apexcharts-theme-dark .apexcharts-reset-icon svg,.apexcharts-theme-dark .apexcharts-selection-icon svg,.apexcharts-theme-dark .apexcharts-toolbar-custom-icon svg,.apexcharts-theme-dark .apexcharts-zoom-icon svg,.apexcharts-theme-dark .apexcharts-zoomin-icon svg,.apexcharts-theme-dark .apexcharts-zoomout-icon svg {
fill: #f3f4f5
}
.apexcharts-canvas .apexcharts-reset-zoom-icon.apexcharts-selected svg,.apexcharts-canvas .apexcharts-selection-icon.apexcharts-selected svg,.apexcharts-canvas .apexcharts-zoom-icon.apexcharts-selected svg {
fill: #008ffb
}
.apexcharts-theme-light .apexcharts-menu-icon:hover svg,.apexcharts-theme-light .apexcharts-reset-icon:hover svg,.apexcharts-theme-light .apexcharts-selection-icon:not(.apexcharts-selected):hover svg,.apexcharts-theme-light .apexcharts-zoom-icon:not(.apexcharts-selected):hover svg,.apexcharts-theme-light .apexcharts-zoomin-icon:hover svg,.apexcharts-theme-light .apexcharts-zoomout-icon:hover svg {
fill: #333
}
.apexcharts-menu-icon,.apexcharts-selection-icon {
position: relative
}
.apexcharts-reset-icon {
margin-left: 5px
}
.apexcharts-menu-icon,.apexcharts-reset-icon,.apexcharts-zoom-icon {
transform: scale(.85)
}
.apexcharts-zoomin-icon,.apexcharts-zoomout-icon {
transform: scale(.7)
}
.apexcharts-zoomout-icon {
margin-right: 3px
}
.apexcharts-pan-icon {
transform: scale(.62);
position: relative;
left: 1px;
top: 0
}
.apexcharts-pan-icon svg {
fill: #fff;
stroke: #6e8192;
stroke-width: 2
}
.apexcharts-pan-icon.apexcharts-selected svg {
stroke: #008ffb
}
.apexcharts-pan-icon:not(.apexcharts-selected):hover svg {
stroke: #333
}
.apexcharts-toolbar {
position: absolute;
z-index: 11;
max-width: 176px;
text-align: right;
border-radius: 3px;
padding: 0 6px 2px;
display: flex;
justify-content: space-between;
align-items: center
}
.apexcharts-menu {
background: #fff;
position: absolute;
top: 100%;
border: 1px solid #ddd;
border-radius: 3px;
padding: 3px;
right: 10px;
opacity: 0;
min-width: 110px;
transition: .15s ease all;
pointer-events: none
}
.apexcharts-menu.apexcharts-menu-open {
opacity: 1;
pointer-events: all;
transition: .15s ease all
}
.apexcharts-menu-item {
padding: 6px 7px;
font-size: 12px;
cursor: pointer
}
.apexcharts-theme-light .apexcharts-menu-item:hover {
background: #eee
}
.apexcharts-theme-dark .apexcharts-menu {
background: rgba(0,0,0,.7);
color: #fff
}
@media screen and (min-width:768px) {
.apexcharts-canvas:hover .apexcharts-toolbar {
opacity: 1
}
}
.apexcharts-canvas .apexcharts-element-hidden,.apexcharts-datalabel.apexcharts-element-hidden,.apexcharts-hide .apexcharts-series-points {
opacity: 0
}
.apexcharts-hidden-element-shown {
opacity: 1;
transition: 0.25s ease all;
}
.apexcharts-datalabel,.apexcharts-datalabel-label,.apexcharts-datalabel-value,.apexcharts-datalabels,.apexcharts-pie-label {
cursor: default;
pointer-events: none
}
.apexcharts-pie-label-delay {
opacity: 0;
animation-name: opaque;
animation-duration: .3s;
animation-fill-mode: forwards;
animation-timing-function: ease
}
.apexcharts-annotation-rect,.apexcharts-area-series .apexcharts-area,.apexcharts-area-series .apexcharts-series-markers .apexcharts-marker.no-pointer-events,.apexcharts-gridline,.apexcharts-line,.apexcharts-line-series .apexcharts-series-markers .apexcharts-marker.no-pointer-events,.apexcharts-point-annotation-label,.apexcharts-radar-series path,.apexcharts-radar-series polygon,.apexcharts-toolbar svg,.apexcharts-tooltip .apexcharts-marker,.apexcharts-xaxis-annotation-label,.apexcharts-yaxis-annotation-label,.apexcharts-zoom-rect {
pointer-events: none
}
.apexcharts-marker {
transition: .15s ease all
}
.resize-triggers {
animation: 1ms resizeanim;
visibility: hidden;
opacity: 0;
height: 100%;
width: 100%;
overflow: hidden
}
.contract-trigger:before,.resize-triggers,.resize-triggers>div {
content: " ";
display: block;
position: absolute;
top: 0;
left: 0
}
.resize-triggers>div {
height: 100%;
width: 100%;
background: #eee;
overflow: auto
}
.contract-trigger:before {
overflow: hidden;
width: 200%;
height: 200%
}
.apexcharts-bar-goals-markers{
pointer-events: none
}
.apexcharts-bar-shadows{
pointer-events: none
}
.apexcharts-rangebar-goals-markers{
pointer-events: none
}`,d?c.prepend(t.css):h.head.appendChild(t.css))}var p=t.create(t.w.config.series,{});if(!p)return n(t);t.mount(p).then(function(){typeof t.w.config.chart.events.mounted=="function"&&t.w.config.chart.events.mounted(t,t.w),t.events.fireEvent("mounted",[t,t.w]),n(p)}).catch(function(b){s(b)})}else s(new Error("Element not found"))})}},{key:"create",value:function(t,n){var s=this.w;new Nd(this).initModules();var o=this.w.globals;if(o.noData=!1,o.animationEnded=!1,this.responsive.checkResponsiveConfig(n),s.config.xaxis.convertedCatToNumeric&&new he(s.config).convertCatToNumericXaxis(s.config,this.ctx),this.el===null||(this.core.setupElements(),s.config.chart.type==="treemap"&&(s.config.grid.show=!1,s.config.yaxis[0].show=!1),o.svgWidth===0))return o.animationEnded=!0,null;var c=J.checkComboSeries(t);o.comboCharts=c.comboCharts,o.comboBarCount=c.comboBarCount;var d=t.every(function(b){return b.data&&b.data.length===0});(t.length===0||d)&&this.series.handleNoData(),this.events.setupEventHandlers(),this.data.parseData(t),this.theme.init(),new Ze(this).setGlobalMarkerSize(),this.formatters.setLabelFormatters(),this.titleSubtitle.draw(),o.noData&&o.collapsedSeries.length!==o.series.length&&!s.config.legend.showForSingleSeries||this.legend.init(),this.series.hasAllSeriesEqualX(),o.axisCharts&&(this.core.coreCalculations(),s.config.xaxis.type!=="category"&&this.formatters.setLabelFormatters(),this.ctx.toolbar.minX=s.globals.minX,this.ctx.toolbar.maxX=s.globals.maxX),this.formatters.heatmapLabelFormatters(),new J(this).getLargestMarkerSize(),this.dimensions.plotCoords();var h=this.core.xySettings();this.grid.createGridMask();var g=this.core.plotChartType(t,h),p=new ze(this);return p.bringForward(),s.config.dataLabels.background.enabled&&p.dataLabelsBackground(),this.core.shiftGraphPosition(),{elGraph:g,xyRatios:h,dimensions:{plot:{left:s.globals.translateX,top:s.globals.translateY,width:s.globals.gridWidth,height:s.globals.gridHeight}}}}},{key:"mount",value:function(){var t=this,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,s=this,o=s.w;return new Promise(function(c,d){if(s.el===null)return d(new Error("Not enough data to display or target element not found"));(n===null||o.globals.allSeriesCollapsed)&&s.series.handleNoData(),s.grid=new ve(s);var h,g,p=s.grid.drawGrid();if(s.annotations=new oe(s),s.annotations.drawImageAnnos(),s.annotations.drawTextAnnos(),o.config.grid.position==="back"&&(p&&o.globals.dom.elGraphical.add(p.el),p!=null&&(h=p.elGridBorders)!==null&&h!==void 0&&h.node&&o.globals.dom.elGraphical.add(p.elGridBorders)),Array.isArray(n.elGraph))for(var b=0;b<n.elGraph.length;b++)o.globals.dom.elGraphical.add(n.elGraph[b]);else o.globals.dom.elGraphical.add(n.elGraph);o.config.grid.position==="front"&&(p&&o.globals.dom.elGraphical.add(p.el),p!=null&&(g=p.elGridBorders)!==null&&g!==void 0&&g.node&&o.globals.dom.elGraphical.add(p.elGridBorders)),o.config.xaxis.crosshairs.position==="front"&&s.crosshairs.drawXCrosshairs(),o.config.yaxis[0].crosshairs.position==="front"&&s.crosshairs.drawYCrosshairs(),o.config.chart.type!=="treemap"&&s.axes.drawAxis(o.config.chart.type,p);var y=new be(t.ctx,p),S=new se(t.ctx,p);if(p!==null&&(y.xAxisLabelCorrections(p.xAxisTickWidth),S.setYAxisTextAlignments(),o.config.yaxis.map(function(T,R){o.globals.ignoreYAxisIndexes.indexOf(R)===-1&&S.yAxisTitleRotate(R,T.opposite)})),s.annotations.drawAxesAnnotations(),!o.globals.noData){if(o.config.tooltip.enabled&&!o.globals.noData&&s.w.globals.tooltip.drawTooltip(n.xyRatios),o.globals.axisCharts&&(o.globals.isXNumeric||o.config.xaxis.convertedCatToNumeric||o.globals.isRangeBar))(o.config.chart.zoom.enabled||o.config.chart.selection&&o.config.chart.selection.enabled||o.config.chart.pan&&o.config.chart.pan.enabled)&&s.zoomPanSelection.init({xyRatios:n.xyRatios});else{var P=o.config.chart.toolbar.tools;["zoom","zoomin","zoomout","selection","pan","reset"].forEach(function(T){P[T]=!1})}o.config.chart.toolbar.show&&!o.globals.allSeriesCollapsed&&s.toolbar.createToolbar()}o.globals.memory.methodsToExec.length>0&&o.globals.memory.methodsToExec.forEach(function(T){T.method(T.params,!1,T.context)}),o.globals.axisCharts||o.globals.noData||s.core.resizeNonAxisCharts(),c(s)})}},{key:"destroy",value:function(){var t,n;window.removeEventListener("resize",this.windowResizeHandler),this.el.parentNode,t=this.parentResizeHandler,(n=bl.get(t))&&(n.disconnect(),bl.delete(t));var s=this.w.config.chart.id;s&&Apex._chartInstances.forEach(function(o,c){o.id===L.escapeString(s)&&Apex._chartInstances.splice(c,1)}),new Hd(this.ctx).clear({isUpdating:!1})}},{key:"updateOptions",value:function(t){var n=this,s=arguments.length>1&&arguments[1]!==void 0&&arguments[1],o=!(arguments.length>2&&arguments[2]!==void 0)||arguments[2],c=!(arguments.length>3&&arguments[3]!==void 0)||arguments[3],d=!(arguments.length>4&&arguments[4]!==void 0)||arguments[4],h=this.w;return h.globals.selection=void 0,t.series&&(this.series.resetSeries(!1,!0,!1),t.series.length&&t.se Line truncated
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function d2(e,a,i){return a in e?Object.defineProperty(e,a,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[a]=i,e}function og(e,a){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);a&&(r=r.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),i.push.apply(i,r)}return i}function lg(e){for(var a=1;a<arguments.length;a++){var i=arguments[a]!=null?arguments[a]:{};a%2?og(Object(i),!0).forEach(function(r){d2(e,r,i[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):og(Object(i)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(i,r))})}return e}function h2(){for(var e=arguments.length,a=new Array(e),i=0;i<e;i++)a[i]=arguments[i];return function(r){return a.reduceRight(function(l,u){return u(l)},r)}}function Es(e){return function a(){for(var i=this,r=arguments.length,l=new Array(r),u=0;u<r;u++)l[u]=arguments[u];return l.length>=e.length?e.apply(this,l):function(){for(var f=arguments.length,m=new Array(f),x=0;x<f;x++)m[x]=arguments[x];return a.apply(i,[].concat(l,m))}}}function xo(e){return{}.toString.call(e).includes("Object")}function f2(e){return!Object.keys(e).length}function sr(e){return typeof e=="function"}function g2(e,a){return Object.prototype.hasOwnProperty.call(e,a)}function v2(e,a){return xo(a)||Ba("changeType"),Object.keys(a).some(function(i){return!g2(e,i)})&&Ba("changeField"),a}function m2(e){sr(e)||Ba("selectorType")}function p2(e){sr(e)||xo(e)||Ba("handlerType"),xo(e)&&Object.values(e).some(function(a){return!sr(a)})&&Ba("handlersType")}function b2(e){e||Ba("initialIsRequired"),xo(e)||Ba("initialType"),f2(e)&&Ba("initialContent")}function x2(e,a){throw new Error(e[a]||e.default)}var y2={initialIsRequired:"initial state is required",initialType:"initial state should be an object",initialContent:"initial state shouldn't be an empty object",handlerType:"handler should be an object or a function",handlersType:"all handlers should be a functions",selectorType:"selector should be a function",changeType:"provided value of changes should be an object",changeField:'it seams you want to change a field in the state which is not specified in the "initial" state',default:"an unknown error accured in `state-local` package"},Ba=Es(x2)(y2),jr={changes:v2,selector:m2,handler:p2,initial:b2};function w2(e){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};jr.initial(e),jr.handler(a);var i={current:e},r=Es(C2)(i,a),l=Es(k2)(i),u=Es(jr.changes)(e),f=Es(S2)(i);function m(){var w=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(C){return C};return jr.selector(w),w(i.current)}function x(w){h2(r,l,u,f)(w)}return[m,x]}function S2(e,a){return sr(a)?a(e.current):a}function k2(e,a){return e.current=lg(lg({},e.current),a),a}function C2(e,a,i){return sr(a)?a(e.current):Object.keys(i).forEach(function(r){var l;return(l=a[r])===null||l===void 0?void 0:l.call(a,e.current[r])}),i}var A2={create:w2},P2={paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.43.0/min/vs"}};function E2(e){return function a(){for(var i=this,r=arguments.length,l=new Array(r),u=0;u<r;u++)l[u]=arguments[u];return l.length>=e.length?e.apply(this,l):function(){for(var f=arguments.length,m=new Array(f),x=0;x<f;x++)m[x]=arguments[x];return a.apply(i,[].concat(l,m))}}}function T2(e){return{}.toString.call(e).includes("Object")}function I2(e){return e||cg("configIsRequired"),T2(e)||cg("configType"),e.urls?(L2(),{paths:{vs:e.urls.monacoBase}}):e}function L2(){console.warn(Jb.deprecation)}function _2(e,a){throw new Error(e[a]||e.default)}var Jb={configIsRequired:"the configuration object is required",configType:"the configuration object should be an object",default:"an unknown error accured in `@monaco-editor/loader` package",deprecation:`Deprecation warning!
You are using deprecated way of configuration.
Instead of using
monaco.config({ urls: { monacoBase: '...' } })
use
monaco.config({ paths: { vs: '...' } })
For more please check the link https://github.com/suren-atoyan/monaco-loader#config
`},cg=E2(_2)(Jb),R2={config:I2},O2=function(){for(var a=arguments.length,i=new Array(a),r=0;r<a;r++)i[r]=arguments[r];return function(l){return i.reduceRight(function(u,f){return f(u)},l)}};function Qb(e,a){return Object.keys(a).forEach(function(i){a[i]instanceof Object&&e[i]&&Object.assign(a[i],Qb(e[i],a[i]))}),sg(sg({},e),a)}var V2={type:"cancelation",msg:"operation is manually canceled"};function $l(e){var a=!1,i=new Promise(function(r,l){e.then(function(u){return a?l(V2):r(u)}),e.catch(l)});return i.cancel=function(){return a=!0},i}var M2=A2.create({config:P2,isInitialized:!1,resolve:null,reject:null,monaco:null}),ex=r2(M2,2),Cr=ex[0],fl=ex[1];function F2(e){var a=R2.config(e),i=a.monaco,r=s2(a,["monaco"]);fl(function(l){return{config:Qb(l.config,r),monaco:i}})}function B2(){var e=Cr(function(a){var i=a.monaco,r=a.isInitialized,l=a.resolve;return{monaco:i,isInitialized:r,resolve:l}});if(!e.isInitialized){if(fl({isInitialized:!0}),e.monaco)return e.resolve(e.monaco),$l(Gl);if(window.monaco&&window.monaco.editor)return tx(window.monaco),e.resolve(window.monaco),$l(Gl);O2(D2,N2)(H2)}return $l(Gl)}function D2(e){return document.body.appendChild(e)}function z2(e){var a=document.createElement("script");return e&&(a.src=e),a}function N2(e){var a=Cr(function(r){var l=r.config,u=r.reject;return{config:l,reject:u}}),i=z2("".concat(a.config.paths.vs,"/loader.js"));return i.onload=function(){return e()},i.onerror=a.reject,i}function H2(){var e=Cr(function(i){var r=i.config,l=i.resolve,u=i.reject;return{config:r,resolve:l,reject:u}}),a=window.require;a.config(e.config),a(["vs/editor/editor.main"],function(i){tx(i),e.resolve(i)},function(i){e.reject(i)})}function tx(e){Cr().monaco||fl({monaco:e})}function X2(){return Cr(function(e){var a=e.monaco;return a})}var Gl=new Promise(function(e,a){return fl({resolve:e,reject:a})}),Y2={config:F2,init:B2,__getMonacoInstance:X2};const Ar=$v(uS);Ar.use(uo);Ar.use(t1());Ar.use(Zb);Ar.use(t2);Ar.use(qL).mount("#app");Y2.config({paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.43.0/min/vs"}});export{Ln as $,Ye as A,$E as B,mb as C,bb as D,dI as E,Ke as F,qp as G,yi as H,yt as I,gb as J,ZT as K,SI as L,vI as M,YA as N,Gk as O,zI as P,dr as Q,kA as R,BI as S,cm as T,t0 as U,wr as V,EE as W,$ as X,pb as Y,i0 as Z,Et as _,a0 as a,vL as a0,qT as a1,fL as a2,fP as a3,sI as a4,yd as a5,Fo as a6,He as a7,Un as a8,zt as a9,Y2 as aa,gt as ab,AL as ac,BL as ad,jc as ae,wL as af,eI as ag,aI as ah,_b as ai,Ib as aj,$b as ak,Ie as al,Zg as am,Gt as an,Pt as ao,as as ap,vn as aq,ny as ar,ZL as as,W2 as at,KL as au,O as b,Bo as c,o1 as d,ki as e,wt as f,X0 as g,Gp as h,$p as i,ma as j,Si as k,D0 as l,rl as m,zu as n,vr as o,cn as p,UI as q,n0 as r,Xe as s,Ay as t,_t as u,$k as v,Pu as w,Oe as x,$w as y,kI as z};
-5
View File
@@ -1,5 +0,0 @@
@charset "UTF-8";@font-face{font-family:Material Design Icons;src:url(/assets/materialdesignicons-webfont-67d24abe.eot?v=7.2.96);src:url(/assets/materialdesignicons-webfont-67d24abe.eot?#iefix&v=7.2.96) format("embedded-opentype"),url(/assets/materialdesignicons-webfont-c1c004a9.woff2?v=7.2.96) format("woff2"),url(/assets/materialdesignicons-webfont-80bb28b3.woff?v=7.2.96) format("woff"),url(/assets/materialdesignicons-webfont-a58ecb54.ttf?v=7.2.96) format("truetype");font-weight:400;font-style:normal}.mdi:before,.mdi-set{display:inline-block;font: 24px/1 Material Design Icons;font-size:inherit;text-rendering:auto;line-height:inherit;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.mdi-ab-testing:before{content:"󰇉"}.mdi-abacus:before{content:"󱛠"}.mdi-abjad-arabic:before{content:"󱌨"}.mdi-abjad-hebrew:before{content:"󱌩"}.mdi-abugida-devanagari:before{content:"󱌪"}.mdi-abugida-thai:before{content:"󱌫"}.mdi-access-point:before{content:"󰀃"}.mdi-access-point-check:before{content:"󱔸"}.mdi-access-point-minus:before{content:"󱔹"}.mdi-access-point-network:before{content:"󰀂"}.mdi-access-point-network-off:before{content:"󰯡"}.mdi-access-point-off:before{content:"󱔑"}.mdi-access-point-plus:before{content:"󱔺"}.mdi-access-point-remove:before{content:"󱔻"}.mdi-account:before{content:"󰀄"}.mdi-account-alert:before{content:"󰀅"}.mdi-account-alert-outline:before{content:"󰭐"}.mdi-account-arrow-down:before{content:"󱡨"}.mdi-account-arrow-down-outline:before{content:"󱡩"}.mdi-account-arrow-left:before{content:"󰭑"}.mdi-account-arrow-left-outline:before{content:"󰭒"}.mdi-account-arrow-right:before{content:"󰭓"}.mdi-account-arrow-right-outline:before{content:"󰭔"}.mdi-account-arrow-up:before{content:"󱡧"}.mdi-account-arrow-up-outline:before{content:"󱡪"}.mdi-account-badge:before{content:"󱬊"}.mdi-account-badge-outline:before{content:"󱬋"}.mdi-account-box:before{content:"󰀆"}.mdi-account-box-multiple:before{content:"󰤴"}.mdi-account-box-multiple-outline:before{content:"󱀊"}.mdi-account-box-outline:before{content:"󰀇"}.mdi-account-cancel:before{content:"󱋟"}.mdi-account-cancel-outline:before{content:"󱋠"}.mdi-account-card:before{content:"󱮤"}.mdi-account-card-outline:before{content:"󱮥"}.mdi-account-cash:before{content:"󱂗"}.mdi-account-cash-outline:before{content:"󱂘"}.mdi-account-check:before{content:"󰀈"}.mdi-account-check-outline:before{content:"󰯢"}.mdi-account-child:before{content:"󰪉"}.mdi-account-child-circle:before{content:"󰪊"}.mdi-account-child-outline:before{content:"󱃈"}.mdi-account-circle:before{content:"󰀉"}.mdi-account-circle-outline:before{content:"󰭕"}.mdi-account-clock:before{content:"󰭖"}.mdi-account-clock-outline:before{content:"󰭗"}.mdi-account-cog:before{content:"󱍰"}.mdi-account-cog-outline:before{content:"󱍱"}.mdi-account-convert:before{content:"󰀊"}.mdi-account-convert-outline:before{content:"󱌁"}.mdi-account-cowboy-hat:before{content:"󰺛"}.mdi-account-cowboy-hat-outline:before{content:"󱟳"}.mdi-account-credit-card:before{content:"󱮦"}.mdi-account-credit-card-outline:before{content:"󱮧"}.mdi-account-details:before{content:"󰘱"}.mdi-account-details-outline:before{content:"󱍲"}.mdi-account-edit:before{content:"󰚼"}.mdi-account-edit-outline:before{content:"󰿻"}.mdi-account-eye:before{content:"󰐠"}.mdi-account-eye-outline:before{content:"󱉻"}.mdi-account-filter:before{content:"󰤶"}.mdi-account-filter-outline:before{content:"󰾝"}.mdi-account-group:before{content:"󰡉"}.mdi-account-group-outline:before{content:"󰭘"}.mdi-account-hard-hat:before{content:"󰖵"}.mdi-account-hard-hat-outline:before{content:"󱨟"}.mdi-account-heart:before{content:"󰢙"}.mdi-account-heart-outline:before{content:"󰯣"}.mdi-account-injury:before{content:"󱠕"}.mdi-account-injury-outline:before{content:"󱠖"}.mdi-account-key:before{content:"󰀋"}.mdi-account-key-outline:before{content:"󰯤"}.mdi-account-lock:before{content:"󱅞"}.mdi-account-lock-open:before{content:"󱥠"}.mdi-account-lock-open-outline:before{content:"󱥡"}.mdi-account-lock-outline:before{content:"󱅟"}.mdi-account-minus:before{content:"󰀍"}.mdi-account-minus-outline:before{content:"󰫬"}.mdi-account-multiple:before{content:"󰀎"}.mdi-account-multiple-check:before{content:"󰣅"}.mdi-account-multiple-check-outline:before{content:"󱇾"}.mdi-account-multiple-minus:before{content:"󰗓"}.mdi-account-multiple-minus-outline:before{content:"󰯥"}.mdi-account-multiple-outline:before{content:"󰀏"}.mdi-account-multiple-plus:before{content:"󰀐"}.mdi-account-multiple-plus-outline:before{content:"󰠀"}.mdi-account-multiple-remove:before{content:"󱈊"}.mdi-account-multiple-remove-outline:before{content:"󱈋"}.mdi-account-music:before{content:"󰠃"}.mdi-account-music-outline:before{content:"󰳩"}.mdi-account-network:before{content:"󰀑"}.mdi-account-network-off:before{content:"󱫱"}.mdi-account-network-Line truncated
* ress.css • v2.0.4
* MIT License
* github.com/filipelinhares/ress
*/html{box-sizing:border-box;overflow-y:scroll;-webkit-text-size-adjust:100%;word-break:normal;-moz-tab-size:4;tab-size:4}*,:before,:after{background-repeat:no-repeat;box-sizing:inherit}:before,:after{text-decoration:inherit;vertical-align:inherit}*{padding:0;margin:0}hr{overflow:visible;height:0}details,main{display:block}summary{display:list-item}small{font-size:80%}[hidden]{display:none}abbr[title]{border-bottom:none;text-decoration:underline;text-decoration:underline dotted}a{background-color:transparent}a:active,a:hover{outline-width:0}code,kbd,pre,samp{font-family:monospace,monospace}pre{font-size:1em}b,strong{font-weight:bolder}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}input{border-radius:0}[disabled]{cursor:default}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-cancel-button,[type=search]::-webkit-search-decoration{-webkit-appearance:none}textarea{overflow:auto;resize:vertical}button,input,optgroup,select,textarea{font:inherit}optgroup{font-weight:700}button{overflow:visible}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit],[role=button]{cursor:pointer;color:inherit}button::-moz-focus-inner,[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner{outline:1px dotted ButtonText}button,html [type=button],[type=reset],[type=submit]{-webkit-appearance:button}button,input,select,textarea{background-color:transparent;border-style:none}select{-moz-appearance:none;-webkit-appearance:none}select::-ms-expand{display:none}select::-ms-value{color:currentColor}legend{border:0;color:inherit;display:table;white-space:normal;max-width:100%}::-webkit-file-upload-button{-webkit-appearance:button;color:inherit;font:inherit}::-ms-clear,::-ms-reveal{display:none}img{border-style:none}progress{vertical-align:baseline}@media screen{[hidden~=screen]{display:inherit}[hidden~=screen]:not(:active):not(:focus):not(:target){position:absolute!important;clip:rect(0 0 0 0)!important}}[aria-busy=true]{cursor:progress}[aria-controls]{cursor:pointer}[aria-disabled=true]{cursor:default}.dialog-transition-enter-active,.dialog-bottom-transition-enter-active,.dialog-top-transition-enter-active{transition-duration:225ms!important;transition-timing-function:cubic-bezier(0,0,.2,1)!important}.dialog-transition-leave-active,.dialog-bottom-transition-leave-active,.dialog-top-transition-leave-active{transition-duration:125ms!important;transition-timing-function:cubic-bezier(.4,0,1,1)!important}.dialog-transition-enter-active,.dialog-transition-leave-active,.dialog-bottom-transition-enter-active,.dialog-bottom-transition-leave-active,.dialog-top-transition-enter-active,.dialog-top-transition-leave-active{transition-property:transform,opacity!important;pointer-events:none}.dialog-transition-enter-from,.dialog-transition-leave-to{transform:scale(.9);opacity:0}.dialog-transition-enter-to,.dialog-transition-leave-from{opacity:1}.dialog-bottom-transition-enter-from,.dialog-bottom-transition-leave-to{transform:translateY(calc(50vh + 50%))}.dialog-top-transition-enter-from,.dialog-top-transition-leave-to{transform:translateY(calc(-50vh - 50%))}.picker-transition-enter-active,.picker-reverse-transition-enter-active,.picker-transition-leave-active,.picker-reverse-transition-leave-active{transition-duration:.3s!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.picker-transition-move,.picker-reverse-transition-move{transition-duration:.5s!important;transition-property:transform!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.picker-transition-enter-from,.picker-transition-leave-to,.picker-reverse-transition-enter-from,.picker-reverse-transition-leave-to{opacity:0}.picker-transition-leave-from,.picker-transition-leave-active,.picker-transition-leave-to,.picker-reverse-transition-leave-from,.picker-reverse-transition-leave-active,.picker-reverse-transition-leave-to{position:absolute!important}.picker-transition-enter-active,.picker-transition-leave-active,.picker-reverse-transition-enter-active,.picker-reverse-transition-leave-active{transition-property:transform,opacity!important}.picker-transition-enter-active,.picker-transition-leave-active{transition-duration:.3s!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.picker-transition-move{transition-duration:.5s!important;transition-property:transform!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.picker-transition-enter-from{transform:translateY(100%)}.picker-transition-leave-to{transform:translateY(-100%)}.picker-reverse-transition-enter-active,.picker-reverse-transition-leave-active{transition-duraLine truncated
-9
View File
@@ -1,9 +0,0 @@
import{as as K,at as Y,au as V}from"./index-d089162b.js";var C={exports:{}};const $={},k=Object.freeze(Object.defineProperty({__proto__:null,default:$},Symbol.toStringTag,{value:"Module"})),z=K(k);/**
* [js-md5]{@link https://github.com/emn178/js-md5}
*
* @namespace md5
* @version 0.8.3
* @author Chen, Yi-Cyuan [emn178@gmail.com]
* @copyright Chen, Yi-Cyuan 2014-2023
* @license MIT
*/(function(E){(function(){var b="input is invalid type",J="finalize already called",w=typeof window=="object",c=w?window:{};c.JS_MD5_NO_WINDOW&&(w=!1);var j=!w&&typeof self=="object",O=!c.JS_MD5_NO_NODE_JS&&typeof process=="object"&&process.versions&&process.versions.node;O?c=Y:j&&(c=self);var I=!c.JS_MD5_NO_COMMON_JS&&!0&&E.exports,p=!c.JS_MD5_NO_ARRAY_BUFFER&&typeof ArrayBuffer<"u",n="0123456789abcdef".split(""),H=[128,32768,8388608,-2147483648],l=[0,8,16,24],y=["hex","array","digest","buffer","arrayBuffer","base64"],F="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),x=[],B;if(p){var S=new ArrayBuffer(68);B=new Uint8Array(S),x=new Uint32Array(S)}var d=Array.isArray;(c.JS_MD5_NO_NODE_JS||!d)&&(d=function(t){return Object.prototype.toString.call(t)==="[object Array]"});var _=ArrayBuffer.isView;p&&(c.JS_MD5_NO_ARRAY_BUFFER_IS_VIEW||!_)&&(_=function(t){return typeof t=="object"&&t.buffer&&t.buffer.constructor===ArrayBuffer});var M=function(t){var e=typeof t;if(e==="string")return[t,!0];if(e!=="object"||t===null)throw new Error(b);if(p&&t.constructor===ArrayBuffer)return[new Uint8Array(t),!1];if(!d(t)&&!_(t))throw new Error(b);return[t,!1]},R=function(t){return function(e){return new o(!0).update(e)[t]()}},P=function(){var t=R("hex");O&&(t=W(t)),t.create=function(){return new o},t.update=function(r){return t.create().update(r)};for(var e=0;e<y.length;++e){var i=y[e];t[i]=R(i)}return t},W=function(t){var e=z,i=z.Buffer,r;i.from&&!c.JS_MD5_NO_BUFFER_FROM?r=i.from:r=function(h){return new i(h)};var a=function(h){if(typeof h=="string")return e.createHash("md5").update(h,"utf8").digest("hex");if(h==null)throw new Error(b);return h.constructor===ArrayBuffer&&(h=new Uint8Array(h)),d(h)||_(h)||h.constructor===i?e.createHash("md5").update(r(h)).digest("hex"):t(h)};return a},N=function(t){return function(e,i){return new A(e,!0).update(i)[t]()}},T=function(){var t=N("hex");t.create=function(r){return new A(r)},t.update=function(r,a){return t.create(r).update(a)};for(var e=0;e<y.length;++e){var i=y[e];t[i]=N(i)}return t};function o(t){if(t)x[0]=x[16]=x[1]=x[2]=x[3]=x[4]=x[5]=x[6]=x[7]=x[8]=x[9]=x[10]=x[11]=x[12]=x[13]=x[14]=x[15]=0,this.blocks=x,this.buffer8=B;else if(p){var e=new ArrayBuffer(68);this.buffer8=new Uint8Array(e),this.blocks=new Uint32Array(e)}else this.blocks=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];this.h0=this.h1=this.h2=this.h3=this.start=this.bytes=this.hBytes=0,this.finalized=this.hashed=!1,this.first=!0}o.prototype.update=function(t){if(this.finalized)throw new Error(J);var e=M(t);t=e[0];for(var i=e[1],r,a=0,h,f=t.length,s=this.blocks,u=this.buffer8;a<f;){if(this.hashed&&(this.hashed=!1,s[0]=s[16],s[16]=s[1]=s[2]=s[3]=s[4]=s[5]=s[6]=s[7]=s[8]=s[9]=s[10]=s[11]=s[12]=s[13]=s[14]=s[15]=0),i)if(p)for(h=this.start;a<f&&h<64;++a)r=t.charCodeAt(a),r<128?u[h++]=r:r<2048?(u[h++]=192|r>>>6,u[h++]=128|r&63):r<55296||r>=57344?(u[h++]=224|r>>>12,u[h++]=128|r>>>6&63,u[h++]=128|r&63):(r=65536+((r&1023)<<10|t.charCodeAt(++a)&1023),u[h++]=240|r>>>18,u[h++]=128|r>>>12&63,u[h++]=128|r>>>6&63,u[h++]=128|r&63);else for(h=this.start;a<f&&h<64;++a)r=t.charCodeAt(a),r<128?s[h>>>2]|=r<<l[h++&3]:r<2048?(s[h>>>2]|=(192|r>>>6)<<l[h++&3],s[h>>>2]|=(128|r&63)<<l[h++&3]):r<55296||r>=57344?(s[h>>>2]|=(224|r>>>12)<<l[h++&3],s[h>>>2]|=(128|r>>>6&63)<<l[h++&3],s[h>>>2]|=(128|r&63)<<l[h++&3]):(r=65536+((r&1023)<<10|t.charCodeAt(++a)&1023),s[h>>>2]|=(240|r>>>18)<<l[h++&3],s[h>>>2]|=(128|r>>>12&63)<<l[h++&3],s[h>>>2]|=(128|r>>>6&63)<<l[h++&3],s[h>>>2]|=(128|r&63)<<l[h++&3]);else if(p)for(h=this.start;a<f&&h<64;++a)u[h++]=t[a];else for(h=this.start;a<f&&h<64;++a)s[h>>>2]|=t[a]<<l[h++&3];this.lastByteIndex=h,this.bytes+=h-this.start,h>=64?(this.start=h-64,this.hash(),this.hashed=!0):this.start=h}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this},o.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var t=this.blocks,e=this.lastByteIndex;t[e>>>2]|=H[e&3],e>=56&&(this.hashed||this.hash(),t[0]=t[16],t[16]=t[1]=t[2]=t[3]=t[4]=t[5]=t[6]=t[7]=t[8]=t[9]=t[10]=t[11]=t[12]=t[13]=t[14]=t[15]=0),t[14]=this.bytes<<3,t[15]=this.hBytes<<3|this.bytes>>>29,this.hash()}},o.prototype.hash=function(){var t,e,i,r,a,h,f=this.blocks;this.first?(t=f[0]-680876937,t=(t<<7|t>>>25)-271733879<<0,r=(-1732584194^t&2004318071)+f[1]-117830708,r=(r<<12|r>>>20)+t<<0,i=(-271733879^r&(t^-271733879))+f[2]-1126478375,i=(i<<17|i>>>15)+r<<0,e=(t^i&(r^t))+f[3]-1316259209,e=(e<<22|e>>>10)+i<<0):(t=this.h0,e=this.h1,i=this.h2,r=this.h3,t+=(r^e&(i^r))+f[0]-680876936,t=(t<<7|t>>>25)+e<<0,r+=(i^t&(e^i))+f[1]-389564586,r=(r<<12|r>>>20)+t<<0,i+=(e^r&(t^e))+f[2]+606105819,i=(i<<17|i>>>15)+r<<0,e+=(t^i&(r^t))+f[3]-1044525330,e=(e<<22|e>>>10)+i<<0),t+=(r^e&(i^r))+f[4]-176418897,t=(t<<7|t>>>25)+e<<0,r+=(i^t&(e^i))+f[5]+1200080426,r=(r<<12|r>>>20)+t<<0,i+=(e^r&(t^e))+f[6]-1473231341,i=(i<<17|i>>>15)+r<<0,e+=(t^i&(r^t))+f[7]-45705983,e=(e<<22|e>>>10)+i<<0,t+=(r^e&(i^r))+f[8]+1770035416,t=(t<<7|tLine truncated
-1
View File
@@ -1 +0,0 @@
<svg t="1702013028016" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="1541" width="200" height="200"><path d="M0 0m204.8 0l614.4 0q204.8 0 204.8 204.8l0 614.4q0 204.8-204.8 204.8l-614.4 0q-204.8 0-204.8-204.8l0-614.4q0-204.8 204.8-204.8Z" fill="#FFEC9C" p-id="1542"></path><path d="M819.2 0H534.272A756.48 756.48 0 0 0 0 483.584V819.2a204.8 204.8 0 0 0 204.8 204.8h614.4a204.8 204.8 0 0 0 204.8-204.8V204.8a204.8 204.8 0 0 0-204.8-204.8z" fill="#FFE98A" p-id="1543"></path><path d="M819.2 0h-3.84a755.2 755.2 0 0 0-539.392 1024H819.2a204.8 204.8 0 0 0 204.8-204.8V204.8a204.8 204.8 0 0 0-204.8-204.8z" fill="#FFE471" p-id="1544"></path><path d="M497.152 721.152A752.384 752.384 0 0 0 560.384 1024H819.2a204.8 204.8 0 0 0 204.8-204.8V204.8a204.8 204.8 0 0 0-89.088-168.96 755.2 755.2 0 0 0-437.76 685.312z" fill="#FFE161" p-id="1545"></path><path d="M526.08 140.032l98.304 199.168L844.8 371.2a15.616 15.616 0 0 1 8.704 25.6l-159.744 156.16 37.632 219.136a15.616 15.616 0 0 1-22.528 16.384l-196.608-102.4-196.608 102.4a15.616 15.616 0 0 1-22.528-16.384l37.12-219.136-159.232-155.136a15.616 15.616 0 0 1 8.704-25.6l219.904-32 98.304-199.168a15.616 15.616 0 0 1 28.16-1.024z" fill="#FFF5CC" p-id="1546"></path><path d="M665.6 409.6a444.16 444.16 0 0 0 25.6-61.44l-65.536-9.472-99.584-198.656a15.616 15.616 0 0 0-27.904 0l-98.304 199.168L179.2 371.2a15.616 15.616 0 0 0-8.704 25.6l159.744 156.16-15.104 87.04A407.808 407.808 0 0 0 665.6 409.6z" fill="#FFFFFF" p-id="1547"></path></svg>

Before

Width:  |  Height:  |  Size: 1.5 KiB

-21
View File
@@ -1,21 +0,0 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" href="/favicon.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="keywords" content="AstrBot Soulter" />
<meta name="description" content="AstrBot Dashboard" />
<link
rel="stylesheet"
href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Poppins:wght@400;500;600;700&family=Roboto:wght@400;500;700&display=swap"
/>
<title>AstrBot - 仪表盘</title>
<script type="module" crossorigin src="/assets/index-d089162b.js"></script>
<link rel="stylesheet" href="/assets/index-d7da5bd1.css">
</head>
<body>
<div id="app"></div>
</body>
</html>
+2 -1
View File
@@ -1,5 +1,5 @@
import logging
import asyncio
import asyncio, os
from quart import Quart
from quart.logging import default_handler
from core.core_lifecycle import AstrBotCoreLifecycle
@@ -16,6 +16,7 @@ class AstrBotDashboard():
def __init__(self, core_lifecycle: AstrBotCoreLifecycle, db: BaseDatabase) -> None:
self.core_lifecycle = core_lifecycle
self.config = core_lifecycle.astrbot_config
self.data_path = os.path.abspath(os.path.join(os.path.dirname(os.path.abspath(__file__)), "../../data/dist"))
self.app = Quart("dashboard", static_folder="dist", static_url_path="/")
self.app.json.sort_keys = False
+48 -1
View File
@@ -3,7 +3,9 @@ import os
import asyncio
import sys
import mimetypes
import aiohttp
import zipfile
from typing import List
from core.core_lifecycle import AstrBotCoreLifecycle
from core.db.sqlite import SQLiteDatabase
from core.config import DB_PATH
@@ -37,6 +39,48 @@ def check_env():
mimetypes.add_type("text/javascript", ".js")
mimetypes.add_type("text/javascript", ".mjs")
mimetypes.add_type("application/json", ".json")
async def check_dashboard_files():
'''下载管理面板文件'''
if os.path.exists("data/dist"):
return
dashboard_release_url = "https://api.github.com/repos/Soulter/AstrBot-Dashboard/releases/latest"
logger.info("正在获取管理面板最新版本信息,请稍等片刻...")
async with aiohttp.ClientSession() as session:
async with session.get(dashboard_release_url) as resp:
if resp.status != 200:
logger.error(f"获取管理面板最新版本信息失败: {resp.status}")
return
release_info = await resp.json()
download_url = release_info["assets"][0]["browser_download_url"]
mirrors = ["https://ghp.ci/"]
for i in range(len(mirrors)):
mirrors[i] += download_url
mirrors.append(download_url)
ok = False
for mirror in mirrors:
logger.info(f"正在从 GitHub 下载管理面板文件: {mirror}")
async with aiohttp.ClientSession() as session:
async with session.get(mirror) as resp:
if resp.status != 200:
logger.error(f"下载管理面板文件失败: {resp.status}")
continue
with open("data/dashboard.zip", "wb") as f:
f.write(await resp.read())
logger.info("管理面板文件下载完成。")
ok = True
break
if not ok:
logger.fatal(f"下载管理面板文件失败,请手动前往 {download_url} 下载,并将其中的 dist 文件夹解压到 data 目录下。")
return
# unzip
with zipfile.ZipFile("data/dashboard.zip", "r") as z:
z.extractall("data")
logger.info("管理面板下载完成。")
if __name__ == "__main__":
check_env()
@@ -45,6 +89,9 @@ if __name__ == "__main__":
log_broker = LogBroker()
LogManager.set_queue_handler(logger, log_broker)
# check dashboard files
asyncio.run(check_dashboard_files())
# start db
db = SQLiteDatabase(DB_PATH)