feat: 1. 增加可选插件仓库镜像配置;

2. 仪表盘更新;
This commit is contained in:
Soulter committed 2024-11-13 17:20:07 +08:00
1 parent f59de87a31
commit 4976e81ea4
31 files changed
+844 -859

No files matched your search

+1
View File
@@ -0,0 +1 @@
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-3360c831.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{q as e,o as a,c as t,w as o,d as s,x as n,U as r,X as c}from"./index-a2f0b905.js";const f=e({__name:"BlankLayout",setup(p){return(u,_)=>(a(),t(r,null,{default:o(()=>[s(n(c))]),_:1}))}});export{f as default};
+1
View File
@@ -0,0 +1 @@
import{k as Be,s as te,X as x,a6 as Le,a7 as F,a8 as X,a9 as ve,v 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,y as B,f as Se,e as b,ad as Ue,D as Me,B as G,a2 as ze,q 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-3360c831.js";import{_ as Ie}from"./_plugin-vue_export-helper-c27b6911.js";import{W as Oe}from"./WaitingForRestart-dd7c3e40.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 @@
import{o as d,l as _,t as K,g as w,d as n,w as o,F as p,n as M,c as s,O as W,K as N,a2 as G,a3 as I,e as J,m as R,u as k,I as q,k as F,G as X,D as Y,a4 as Z,z,a6 as O,J as S,a as j,a7 as D,a0 as A,a1 as E}from"./index-a2f0b905.js";import{_ as $}from"./_plugin-vue_export-helper-c27b6911.js";const x={props:{metadata:Object,iterable:Object,metadataKey:String}},aa={key:0,style:{"margin-bottom":"8px"}};function ea(f,a,e,B,T,t){var m,u;return d(),_(p,null,[e.iterable&&((m=e.metadata[e.metadataKey])==null?void 0:m.type)==="object"?(d(),_("h3",aa,K((u=e.metadata[e.metadataKey])==null?void 0:u.description),1)):w("",!0),n(q,null,{default:o(()=>[(d(!0),_(p,null,M(e.iterable,(g,l)=>(d(),s(W,{key:l,style:{"margin-bottom":"0.5px"}},{default:o(()=>{var v,y,h,C,i,U,L,P,b;return[((v=e.metadata[e.metadataKey].items[l])==null?void 0:v.type)==="string"&&l!=="name"?(d(),s(N,{key:0,modelValue:e.iterable[l],"onUpdate:modelValue":r=>e.iterable[l]=r,label:((y=e.metadata[e.metadataKey].items[l])==null?void 0:y.description)+"("+l+")",variant:"outlined",dense:""},null,8,["modelValue","onUpdate:modelValue","label"])):w("",!0),(((h=e.metadata[e.metadataKey].items[l])==null?void 0:h.type)==="int"||((C=e.metadata[e.metadataKey].items[l])==null?void 0:C.type)==="float")&&l!=="name"?(d(),s(N,{key:1,modelValue:e.iterable[l],"onUpdate:modelValue":r=>e.iterable[l]=r,label:((i=e.metadata[e.metadataKey].items[l])==null?void 0:i.description)+"("+l+")",variant:"outlined",dense:""},null,8,["modelValue","onUpdate:modelValue","label"])):((U=e.metadata[e.metadataKey].items[l])==null?void 0:U.type)==="bool"?(d(),s(G,{key:2,modelValue:e.iterable[l],"onUpdate:modelValue":r=>e.iterable[l]=r,label:((L=e.metadata[e.metadataKey].items[l])==null?void 0:L.description)+"("+l+")",color:"primary",inset:""},null,8,["modelValue","onUpdate:modelValue","label"])):((P=e.metadata[e.metadataKey].items[l])==null?void 0:P.type)==="list"?(d(),s(I,{key:3,variant:"outlined",modelValue:e.iterable[l],"onUpdate:modelValue":r=>e.iterable[l]=r,chips:"",clearable:"",label:((b=e.metadata[e.metadataKey].items[l])==null?void 0:b.description)+"("+l+")",multiple:"","prepend-icon":"mdi-tag-multiple-outline"},{selection:o(({attrs:r,item:V,select:H,selected:Q})=>[n(J,R(r,{"model-value":Q,closable:"",onClick:H,"onClick:close":ma=>f.remove(V)}),{default:o(()=>[k("strong",null,K(V),1)]),_:2},1040,["model-value","onClick","onClick:close"])]),_:2},1032,["modelValue","onUpdate:modelValue","label"])):w("",!0)]}),_:2},1024))),128))]),_:1})],64)}const c=$(x,[["render",ea]]);const ta=k("h2",null,"消息平台",-1),la=k("h2",{style:{"margin-bottom":"16px","margin-top":"16px"}},"通用配置",-1),oa=k("h2",null,"LLM",-1),da=k("h2",{style:{"margin-bottom":"16px"}},"通用配置",-1),na={name:"ConfigPage",components:{AstrBotConfig:c},data(){return{config_data:{config:{platform:[],llm:[],platform_settings:{},content_safety:{},llm_settings:{}}},metadata:{},save_message_snack:!1,save_message:"",save_message_success:"",namespace:"",tab:0,tabPlatform:0,tabLLM:0,tabs_key:["消息平台","大语言模型","其他配置"],common_configs_key:[]}},mounted(){this.getConfig()},methods:{getConfig(){z.get("/api/config/get").then(f=>{this.config_data=f.data.data.config,this.metadata=f.data.data.metadata;for(let a in this.config_data)a!="platform"&&a!="llm"&&a!="platform_settings"&&a!="llm_settings"&&a!="content_safety"&&this.common_configs_key.push(a)}).catch(f=>{save_message=f,save_message_snack=!0,save_message_success="error"})},updateConfig(){z.post("/api/config/astrbot/update",this.config_data).then(f=>{f.data.status==="success"?(this.save_message=f.data.message,this.save_message_snack=!0,this.save_message_success="success"):(this.save_message=f.data.message,this.save_message_snack=!0,this.save_message_success="error")}).catch(f=>{this.save_message=f,this.save_message_snack=!0,this.save_message_success="error"})}}},ua=Object.assign(na,{setup(f){return(a,e)=>{const B=F("v-tabs-window-item"),T=F("v-tabs-window");return d(),_(p,null,[n(X,null,{default:o(()=>[n(O,{modelValue:a.tab,"onUpdate:modelValue":e[0]||(e[0]=t=>a.tab=t),"align-tabs":"center",color:"deep-purple-accent-4"},{default:o(()=>[(d(!0),_(p,null,M(a.tabs_key,(t,m)=>(d(),s(D,{key:m,value:m},{default:o(()=>[j(K(t),1)]),_:2},1032,["value"]))),128))]),_:1},8,["modelValue"]),n(T,{modelValue:a.tab,"onUpdate:modelValue":e[5]||(e[5]=t=>a.tab=t)},{default:o(()=>[a.tab===0?(d(),s(B,{key:0},{default:o(()=>[n(S,{fluid:""},{default:o(()=>{var t,m,u,g,l,v,y,h,C,i,U,L,P;return[ta,n(O,{style:{"margin-top":"16px"},modelValue:a.tabPlatform,"onUpdate:modelValue":e[1]||(e[1]=b=>a.tabPlatform=b),"align-tabs":"left",color:"deep-purple-accent-4"},{default:o(()=>{var b;return[(d(!0),_(p,null,M((b=a.config_data)==null?void 0:b.platform,(r,V)=>(d(),s(D,{key:V,value:V},{default:o(()=>[j(K(r.id)+"("+K(r.name)+") ",1)]),_:2},1032,["value"]))),128))]}),_:1},8,["modelValue"]),n(T,{modelValue:a.tabPlatform,"onUpdate:modelValue":e[2]||(e[2]=b=>a.tabPlatform=b)},{default:o(()=>{var b;reLine truncated
@@ -1,4 +1,4 @@
import{o as Ce,l as be,u as he,t as ge,d as ye,w as we,D as Ee,F as ke,a as Le}from"./index-a2f0b905.js";var pe={exports:{}};(function(Q,ne){(function(ce,oe){Q.exports=oe()})(self,()=>(()=>{var ce={4567:function(I,r,a){var l=this&&this.__decorate||function(i,o,c,v){var m,h=arguments.length,g=h<3?o:v===null?v=Object.getOwnPropertyDescriptor(o,c):v;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")g=Reflect.decorate(i,o,c,v);else for(var b=i.length-1;b>=0;b--)(m=i[b])&&(g=(h<3?m(g):h>3?m(o,c,g):m(o,c))||g);return h>3&&g&&Object.defineProperty(o,c,g),g},u=this&&this.__param||function(i,o){return function(c,v){o(c,v,i)}};Object.defineProperty(r,"__esModule",{value:!0}),r.AccessibilityManager=void 0;const n=a(9042),d=a(6114),f=a(9924),p=a(844),_=a(5596),e=a(4725),s=a(3656);let t=r.AccessibilityManager=class extends p.Disposable{constructor(i,o){super(),this._terminal=i,this._renderService=o,this._liveRegionLineCount=0,this._charsToConsume=[],this._charsToAnnounce="",this._accessibilityContainer=document.createElement("div"),this._accessibilityContainer.classList.add("xterm-accessibility"),this._rowContainer=document.createElement("div"),this._rowContainer.setAttribute("role","list"),this._rowContainer.classList.add("xterm-accessibility-tree"),this._rowElements=[];for(let c=0;c<this._terminal.rows;c++)this._rowElements[c]=this._createAccessibilityTreeNode(),this._rowContainer.appendChild(this._rowElements[c]);if(this._topBoundaryFocusListener=c=>this._handleBoundaryFocus(c,0),this._bottomBoundaryFocusListener=c=>this._handleBoundaryFocus(c,1),this._rowElements[0].addEventListener("focus",this._topBoundaryFocusListener),this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._refreshRowsDimensions(),this._accessibilityContainer.appendChild(this._rowContainer),this._liveRegion=document.createElement("div"),this._liveRegion.classList.add("live-region"),this._liveRegion.setAttribute("aria-live","assertive"),this._accessibilityContainer.appendChild(this._liveRegion),this._liveRegionDebouncer=this.register(new f.TimeBasedDebouncer(this._renderRows.bind(this))),!this._terminal.element)throw new Error("Cannot enable accessibility before Terminal.open");this._terminal.element.insertAdjacentElement("afterbegin",this._accessibilityContainer),this.register(this._terminal.onResize(c=>this._handleResize(c.rows))),this.register(this._terminal.onRender(c=>this._refreshRows(c.start,c.end))),this.register(this._terminal.onScroll(()=>this._refreshRows())),this.register(this._terminal.onA11yChar(c=>this._handleChar(c))),this.register(this._terminal.onLineFeed(()=>this._handleChar(`
import{o as Ce,l as be,n as he,t as ge,b as ye,w as we,y as Ee,F as ke,e as Le}from"./index-3360c831.js";var pe={exports:{}};(function(Q,ne){(function(ce,oe){Q.exports=oe()})(self,()=>(()=>{var ce={4567:function(I,r,a){var l=this&&this.__decorate||function(i,o,c,v){var m,h=arguments.length,g=h<3?o:v===null?v=Object.getOwnPropertyDescriptor(o,c):v;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")g=Reflect.decorate(i,o,c,v);else for(var b=i.length-1;b>=0;b--)(m=i[b])&&(g=(h<3?m(g):h>3?m(o,c,g):m(o,c))||g);return h>3&&g&&Object.defineProperty(o,c,g),g},u=this&&this.__param||function(i,o){return function(c,v){o(c,v,i)}};Object.defineProperty(r,"__esModule",{value:!0}),r.AccessibilityManager=void 0;const n=a(9042),d=a(6114),f=a(9924),p=a(844),_=a(5596),e=a(4725),s=a(3656);let t=r.AccessibilityManager=class extends p.Disposable{constructor(i,o){super(),this._terminal=i,this._renderService=o,this._liveRegionLineCount=0,this._charsToConsume=[],this._charsToAnnounce="",this._accessibilityContainer=document.createElement("div"),this._accessibilityContainer.classList.add("xterm-accessibility"),this._rowContainer=document.createElement("div"),this._rowContainer.setAttribute("role","list"),this._rowContainer.classList.add("xterm-accessibility-tree"),this._rowElements=[];for(let c=0;c<this._terminal.rows;c++)this._rowElements[c]=this._createAccessibilityTreeNode(),this._rowContainer.appendChild(this._rowElements[c]);if(this._topBoundaryFocusListener=c=>this._handleBoundaryFocus(c,0),this._bottomBoundaryFocusListener=c=>this._handleBoundaryFocus(c,1),this._rowElements[0].addEventListener("focus",this._topBoundaryFocusListener),this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._refreshRowsDimensions(),this._accessibilityContainer.appendChild(this._rowContainer),this._liveRegion=document.createElement("div"),this._liveRegion.classList.add("live-region"),this._liveRegion.setAttribute("aria-live","assertive"),this._accessibilityContainer.appendChild(this._liveRegion),this._liveRegionDebouncer=this.register(new f.TimeBasedDebouncer(this._renderRows.bind(this))),!this._terminal.element)throw new Error("Cannot enable accessibility before Terminal.open");this._terminal.element.insertAdjacentElement("afterbegin",this._accessibilityContainer),this.register(this._terminal.onResize(c=>this._handleResize(c.rows))),this.register(this._terminal.onRender(c=>this._refreshRows(c.start,c.end))),this.register(this._terminal.onScroll(()=>this._refreshRows())),this.register(this._terminal.onA11yChar(c=>this._handleChar(c))),this.register(this._terminal.onLineFeed(()=>this._handleChar(`
`))),this.register(this._terminal.onA11yTab(c=>this._handleTab(c))),this.register(this._terminal.onKey(c=>this._handleKey(c.key))),this.register(this._terminal.onBlur(()=>this._clearLiveRegion())),this.register(this._renderService.onDimensionsChange(()=>this._refreshRowsDimensions())),this._screenDprMonitor=new _.ScreenDprMonitor(window),this.register(this._screenDprMonitor),this._screenDprMonitor.setListener(()=>this._refreshRowsDimensions()),this.register((0,s.addDisposableDomListener)(window,"resize",()=>this._refreshRowsDimensions())),this._refreshRows(),this.register((0,p.toDisposable)(()=>{this._accessibilityContainer.remove(),this._rowElements.length=0}))}_handleTab(i){for(let o=0;o<i;o++)this._handleChar(" ")}_handleChar(i){this._liveRegionLineCount<21&&(this._charsToConsume.length>0?this._charsToConsume.shift()!==i&&(this._charsToAnnounce+=i):this._charsToAnnounce+=i,i===`
`&&(this._liveRegionLineCount++,this._liveRegionLineCount===21&&(this._liveRegion.textContent+=n.tooMuchOutput)),d.isMac&&this._liveRegion.textContent&&this._liveRegion.textContent.length>0&&!this._liveRegion.parentNode&&setTimeout(()=>{this._accessibilityContainer.appendChild(this._liveRegion)},0))}_clearLiveRegion(){this._liveRegion.textContent="",this._liveRegionLineCount=0,d.isMac&&this._liveRegion.remove()}_handleKey(i){this._clearLiveRegion(),/\p{Control}/u.test(i)||this._charsToConsume.push(i)}_refreshRows(i,o){this._liveRegionDebouncer.refresh(i,o,this._terminal.rows)}_renderRows(i,o){const c=this._terminal.buffer,v=c.lines.length.toString();for(let m=i;m<=o;m++){const h=c.translateBufferLineToString(c.ydisp+m,!0),g=(c.ydisp+m+1).toString(),b=this._rowElements[m];b&&(h.length===0?b.innerText=" ":b.textContent=h,b.setAttribute("aria-posinset",g),b.setAttribute("aria-setsize",v))}this._announceCharacters()}_announceCharacters(){this._charsToAnnounce.length!==0&&(this._liveRegion.textContent+=this._charsToAnnounce,this._charsToAnnounce="")}_handleBoundaryFocus(i,o){const c=i.target,v=this._rowElements[o===0?1:this._rowElements.length-2];if(c.getAttribute("aria-posinset")===(o===0?"1":`${this._terminal.buffer.lines.length}`)||i.relatedTarget!==v)return;let m,h;if(o===0?(m=c,h=this._rowElements.pop(),this._rowContainer.removeChild(h)):(m=this._rowElements.shift(),h=c,this._rowContainer.removeChild(m)),m.removeEventListener("focus",this._topBoundaryFocusListener),h.removeEventListener("focus",this._bottomBoundaryFocusListener),o===0){const g=this._createAccessibilityTreeNode();this._rowElements.unshift(g),this._rowContainer.insertAdjacentElement("afterbegin",g)}else{const g=this._createAccessibilityTreeNode();this._rowElements.push(g),this._rowContainer.appendChild(g)}this._rowElements[0].addEventListener("focus",this._topBoundaryFocusListener),this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._terminal.scrollLines(o===0?-1:1),this._rowElements[o===0?1:this._rowElements.length-2].focus(),i.preventDefault(),i.stopImmediatePropagation()}_handleResize(i){this._rowElements[this._rowElements.length-1].removeEventListener("focus",this._bottomBoundaryFocusListener);for(let o=this._rowContainer.children.length;o<this._terminal.rows;o++)this._rowElements[o]=this._createAccessibilityTreeNode(),this._rowContainer.appendChild(this._rowElements[o]);for(;this._rowElements.length>i;)this._rowContainer.removeChild(this._rowElements.pop());this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._refreshRowsDimensions()}_createAccessibilityTreeNode(){const i=document.createElement("div");return i.setAttribute("role","listitem"),i.tabIndex=-1,this._refreshRowDimensions(i),i}_refreshRowsDimensions(){if(this._renderService.dimensions.css.cell.height){this._accessibilityContainer.style.width=`${this._renderService.dimensions.css.canvas.width}px`,this._rowElements.length!==this._terminal.rows&&this._handleResize(this._terminal.rows);for(let i=0;i<this._terminal.rows;i++)this._refreshRowDimensions(this._rowElements[i])}}_refreshRowDimensions(i){i.style.height=`${this._renderService.dimensions.css.cell.height}px`}};r.AccessibilityManager=t=l([u(1,e.IRenderService)],t)},3614:(I,r)=>{function a(d){return d.replace(/\r?\n/g,"\r")}function l(d,f){return f?"\x1B[200~"+d+"\x1B[201~":d}function u(d,f,p,_){d=l(d=a(d),p.decPrivateModes.bracketedPasteMode&&_.rawOptions.ignoreBracketedPasteMode!==!0),p.triggerDataEvent(d,!0),f.value=""}function n(d,f,p){const _=p.getBoundingClientRect(),e=d.clientX-_.left-10,s=d.clientY-_.top-10;f.style.width="20px",f.style.height="20px",f.style.left=`${e}px`,f.style.top=`${s}px`,f.style.zIndex="1000",f.focus()}Object.defineProperty(r,"__esModule",{value:!0}),r.rightClickHandler=r.moveTextAreaUnderMouseCursor=r.paste=r.handlePasteEvent=r.copyHandler=r.bracketTextForPaste=r.prepareTextForTerminal=void 0,r.prepareTextForTerminal=a,r.bracketTextForPaste=l,r.copyHandler=function(d,f){d.clipboardData&&d.clipboardData.setData("text/plain",f.selectionText),d.preventDefault()},r.handlePasteEvent=function(d,f,p,_){d.stopPropagation(),d.clipboardData&&u(d.clipboardData.getData("text/plain"),f,p,_)},r.paste=u,r.moveTextAreaUnderMouseCursor=n,r.rightClickHandler=function(d,f,p,_,e){n(d,f,p),e&&_.rightClickSelect(d),f.value=_.selectionText,f.select()}},7239:(I,r,a)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.ColorContrastCache=void 0;const l=a(1505);r.ColorContrastCache=class{constructor(){this._color=new l.TwoKeyMap,this._css=new l.TwoKeyMap}setCss(u,n,d){this._css.set(u,n,d)}getCss(u,n){return this._css.get(u,n)}setColor(u,n,d){this._color.set(u,n,d)}getColor(u,n){return this._color.get(u,n)}clear(){this._color.clear(),this._css.clear()}}},3656:(I,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.addDisposableDomListener=void 0,r.addDisposableDomListener=function(a,l,u,n){a.addEventListe Line truncated
@@ -6,6 +6,6 @@ WARNING: This link could potentially be dangerous`)){const s=window.open();if(s)
`:`
`)}clearSelection(){this._model.clearSelection(),this._removeMouseDownListeners(),this.refresh(),this._onSelectionChange.fire()}refresh(h){this._refreshAnimationFrame||(this._refreshAnimationFrame=this._coreBrowserService.window.requestAnimationFrame(()=>this._refresh())),s.isLinux&&h&&this.selectionText.length&&this._onLinuxMouseSelection.fire(this.selectionText)}_refresh(){this._refreshAnimationFrame=void 0,this._onRedrawRequest.fire({start:this._model.finalSelectionStart,end:this._model.finalSelectionEnd,columnSelectMode:this._activeSelectionMode===3})}_isClickInSelection(h){const g=this._getMouseBufferCoords(h),b=this._model.finalSelectionStart,L=this._model.finalSelectionEnd;return!!(b&&L&&g)&&this._areCoordsInSelection(g,b,L)}isCellInSelection(h,g){const b=this._model.finalSelectionStart,L=this._model.finalSelectionEnd;return!(!b||!L)&&this._areCoordsInSelection([h,g],b,L)}_areCoordsInSelection(h,g,b){return h[1]>g[1]&&h[1]<b[1]||g[1]===b[1]&&h[1]===g[1]&&h[0]>=g[0]&&h[0]<b[0]||g[1]<b[1]&&h[1]===b[1]&&h[0]<b[0]||g[1]<b[1]&&h[1]===g[1]&&h[0]>=g[0]}_selectWordAtCursor(h,g){var b,L;const y=(L=(b=this._linkifier.currentLink)===null||b===void 0?void 0:b.link)===null||L===void 0?void 0:L.range;if(y)return this._model.selectionStart=[y.start.x-1,y.start.y-1],this._model.selectionStartLength=(0,t.getRangeLength)(y,this._bufferService.cols),this._model.selectionEnd=void 0,!0;const k=this._getMouseBufferCoords(h);return!!k&&(this._selectWordAt(k,g),this._model.selectionEnd=void 0,!0)}selectAll(){this._model.isSelectAllActive=!0,this.refresh(),this._onSelectionChange.fire()}selectLines(h,g){this._model.clearSelection(),h=Math.max(h,0),g=Math.min(g,this._bufferService.buffer.lines.length-1),this._model.selectionStart=[0,h],this._model.selectionEnd=[this._bufferService.cols,g],this.refresh(),this._onSelectionChange.fire()}_handleTrim(h){this._model.handleTrim(h)&&this.refresh()}_getMouseBufferCoords(h){const g=this._mouseService.getCoords(h,this._screenElement,this._bufferService.cols,this._bufferService.rows,!0);if(g)return g[0]--,g[1]--,g[1]+=this._bufferService.buffer.ydisp,g}_getMouseEventScrollAmount(h){let g=(0,n.getCoordsRelativeToElement)(this._coreBrowserService.window,h,this._screenElement)[1];const b=this._renderService.dimensions.css.canvas.height;return g>=0&&g<=b?0:(g>b&&(g-=b),g=Math.min(Math.max(g,-50),50),g/=50,g/Math.abs(g)+Math.round(14*g))}shouldForceSelection(h){return s.isMac?h.altKey&&this._optionsService.rawOptions.macOptionClickForcesSelection:h.shiftKey}handleMouseDown(h){if(this._mouseDownTimeStamp=h.timeStamp,(h.button!==2||!this.hasSelection)&&h.button===0){if(!this._enabled){if(!this.shouldForceSelection(h))return;h.stopPropagation()}h.preventDefault(),this._dragScrollAmount=0,this._enabled&&h.shiftKey?this._handleIncrementalClick(h):h.detail===1?this._handleSingleClick(h):h.detail===2?this._handleDoubleClick(h):h.detail===3&&this._handleTripleClick(h),this._addMouseDownListeners(),this.refresh(!0)}}_addMouseDownListeners(){this._screenElement.ownerDocument&&(this._screenElement.ownerDocument.addEventListener("mousemove",this._mouseMoveListener),this._screenElement.ownerDocument.addEventListener("mouseup",this._mouseUpListener)),this._dragScrollIntervalTimer=this._coreBrowserService.window.setInterval(()=>this._dragScroll(),50)}_removeMouseDownListeners(){this._screenElement.ownerDocument&&(this._screenElement.ownerDocument.removeEventListener("mousemove",this._mouseMoveListener),this._screenElement.ownerDocument.removeEventListener("mouseup",this._mouseUpListener)),this._coreBrowserService.window.clearInterval(this._dragScrollIntervalTimer),this._dragScrollIntervalTimer=void 0}_handleIncrementalClick(h){this._model.selectionStart&&(this._model.selectionEnd=this._getMouseBufferCoords(h))}_handleSingleClick(h){if(this._model.selectionStartLength=0,this._model.isSelectAllActive=!1,this._activeSelectionMode=this.shouldColumnSelect(h)?3:0,this._model.selectionStart=this._getMouseBufferCoords(h),!this._model.selectionStart)return;this._model.selectionEnd=void 0;const g=this._bufferService.buffer.lines.get(this._model.selectionStart[1]);g&&g.length!==this._model.selectionStart[0]&&g.hasWidth(this._model.selectionStart[0])===0&&this._model.selectionStart[0]++}_handleDoubleClick(h){this._selectWordAtCursor(h,!0)&&(this._activeSelectionMode=1)}_handleTripleClick(h){const g=this._getMouseBufferCoords(h);g&&(this._activeSelectionMode=2,this._selectLineAt(g[1]))}shouldColumnSelect(h){return h.altKey&&!(s.isMac&&this._optionsService.rawOptions.macOptionClickForcesSelection)}_handleMouseMove(h){if(h.stopImmediatePropagation(),!this._model.selectionStart)return;const g=this._model.selectionEnd?[this._model.selectionEnd[0],this._model.selectionEnd[1]]:null;if(this._model.selectionEnd=this._getMouseBufferCoords(h),!this._model.selectionEnd)return void this.refresh(!0);this._activeSelectionMode===2?this._model.selectionEnd[1]<this._model.selectionStart[1]?this._model.selectionEnd[0]=0:this._model.sele Line truncated
`,n.VT="\v",n.FF="\f",n.CR="\r",n.SO="",n.SI="",n.DLE="",n.DC1="",n.DC2="",n.DC3="",n.DC4="",n.NAK="",n.SYN="",n.ETB="",n.CAN="",n.EM="",n.SUB="",n.ESC="\x1B",n.FS="",n.GS="",n.RS="",n.US="",n.SP=" ",n.DEL=""}(a||(r.C0=a={})),function(n){n.PAD="€",n.HOP="",n.BPH="‚",n.NBH="ƒ",n.IND="„",n.NEL="…",n.SSA="†",n.ESA="‡",n.HTS="ˆ",n.HTJ="‰",n.VTS="Š",n.PLD="‹",n.PLU="Œ",n.RI="",n.SS2="Ž",n.SS3="",n.DCS="",n.PU1="‘",n.PU2="’",n.STS="“",n.CCH="”",n.MW="•",n.SPA="–",n.EPA="—",n.SOS="˜",n.SGCI="™",n.SCI="š",n.CSI="›",n.ST="œ",n.OSC="",n.PM="ž",n.APC="Ÿ"}(l||(r.C1=l={})),function(n){n.ST=`${a.ESC}\\`}(u||(r.C1_ESCAPED=u={}))},7399:(I,r,a)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.evaluateKeyboardEvent=void 0;const l=a(2584),u={48:["0",")"],49:["1","!"],50:["2","@"],51:["3","#"],52:["4","$"],53:["5","%"],54:["6","^"],55:["7","&"],56:["8","*"],57:["9","("],186:[";",":"],187:["=","+"],188:[",","<"],189:["-","_"],190:[".",">"],191:["/","?"],192:["`","~"],219:["[","{"],220:["\\","|"],221:["]","}"],222:["'",'"']};r.evaluateKeyboardEvent=function(n,d,f,p){const _={type:0,cancel:!1,key:void 0},e=(n.shiftKey?1:0)|(n.altKey?2:0)|(n.ctrlKey?4:0)|(n.metaKey?8:0);switch(n.keyCode){case 0:n.key==="UIKeyInputUpArrow"?_.key=d?l.C0.ESC+"OA":l.C0.ESC+"[A":n.key==="UIKeyInputLeftArrow"?_.key=d?l.C0.ESC+"OD":l.C0.ESC+"[D":n.key==="UIKeyInputRightArrow"?_.key=d?l.C0.ESC+"OC":l.C0.ESC+"[C":n.key==="UIKeyInputDownArrow"&&(_.key=d?l.C0.ESC+"OB":l.C0.ESC+"[B");break;case 8:if(n.altKey){_.key=l.C0.ESC+l.C0.DEL;break}_.key=l.C0.DEL;break;case 9:if(n.shiftKey){_.key=l.C0.ESC+"[Z";break}_.key=l.C0.HT,_.cancel=!0;break;case 13:_.key=n.altKey?l.C0.ESC+l.C0.CR:l.C0.CR,_.cancel=!0;break;case 27:_.key=l.C0.ESC,n.altKey&&(_.key=l.C0.ESC+l.C0.ESC),_.cancel=!0;break;case 37:if(n.metaKey)break;e?(_.key=l.C0.ESC+"[1;"+(e+1)+"D",_.key===l.C0.ESC+"[1;3D"&&(_.key=l.C0.ESC+(f?"b":"[1;5D"))):_.key=d?l.C0.ESC+"OD":l.C0.ESC+"[D";break;case 39:if(n.metaKey)break;e?(_.key=l.C0.ESC+"[1;"+(e+1)+"C",_.key===l.C0.ESC+"[1;3C"&&(_.key=l.C0.ESC+(f?"f":"[1;5C"))):_.key=d?l.C0.ESC+"OC":l.C0.ESC+"[C";break;case 38:if(n.metaKey)break;e?(_.key=l.C0.ESC+"[1;"+(e+1)+"A",f||_.key!==l.C0.ESC+"[1;3A"||(_.key=l.C0.ESC+"[1;5A")):_.key=d?l.C0.ESC+"OA":l.C0.ESC+"[A";break;case 40:if(n.metaKey)break;e?(_.key=l.C0.ESC+"[1;"+(e+1)+"B",f||_.key!==l.C0.ESC+"[1;3B"||(_.key=l.C0.ESC+"[1;5B")):_.key=d?l.C0.ESC+"OB":l.C0.ESC+"[B";break;case 45:n.shiftKey||n.ctrlKey||(_.key=l.C0.ESC+"[2~");break;case 46:_.key=e?l.C0.ESC+"[3;"+(e+1)+"~":l.C0.ESC+"[3~";break;case 36:_.key=e?l.C0.ESC+"[1;"+(e+1)+"H":d?l.C0.ESC+"OH":l.C0.ESC+"[H";break;case 35:_.key=e?l.C0.ESC+"[1;"+(e+1)+"F":d?l.C0.ESC+"OF":l.C0.ESC+"[F";break;case 33:n.shiftKey?_.type=2:n.ctrlKey?_.key=l.C0.ESC+"[5;"+(e+1)+"~":_.key=l.C0.ESC+"[5~";break;case 34:n.shiftKey?_.type=3:n.ctrlKey?_.key=l.C0.ESC+"[6;"+(e+1)+"~":_.key=l.C0.ESC+"[6~";break;case 112:_.key=e?l.C0.ESC+"[1;"+(e+1)+"P":l.C0.ESC+"OP";break;case 113:_.key=e?l.C0.ESC+"[1;"+(e+1)+"Q":l.C0.ESC+"OQ";break;case 114:_.key=e?l.C0.ESC+"[1;"+(e+1)+"R":l.C0.ESC+"OR";break;case 115:_.key=e?l.C0.ESC+"[1;"+(e+1)+"S":l.C0.ESC+"OS";break;case 116:_.key=e?l.C0.ESC+"[15;"+(e+1)+"~":l.C0.ESC+"[15~";break;case 117:_.key=e?l.C0.ESC+"[17;"+(e+1)+"~":l.C0.ESC+"[17~";break;case 118:_.key=e?l.C0.ESC+"[18;"+(e+1)+"~":l.C0.ESC+"[18~";break;case 119:_.key=e?l.C0.ESC+"[19;"+(e+1)+"~":l.C0.ESC+"[19~";break;case 120:_.key=e?l.C0.ESC+"[20;"+(e+1)+"~":l.C0.ESC+"[20~";break;case 121:_.key=e?l.C0.ESC+"[21;"+(e+1)+"~":l.C0.ESC+"[21~";break;case 122:_.key=e?l.C0.ESC+"[23;"+(e+1)+"~":l.C0.ESC+"[23~";break;case 123:_.key=e?l.C0.ESC+"[24;"+(e+1)+"~":l.C0.ESC+"[24~";break;default:if(!n.ctrlKey||n.shiftKey||n.altKey||n.metaKey)if(f&&!p||!n.altKey||n.metaKey)!f||n.altKey||n.ctrlKey||n.shiftKey||!n.metaKey?n.key&&!n.ctrlKey&&!n.altKey&&!n.metaKey&&n.keyCode>=48&&n.key.length===1?_.key=n.key:n.key&&n.ctrlKey&&(n.key==="_"&&(_.key=l.C0.US),n.key==="@"&&(_.key=l.C0.NUL)):n.keyCode===65&&(_.type=1);else{const s=u[n.keyCode],t=s==null?void 0:s[n.shiftKey?1:0];if(t)_.key=l.C0.ESC+t;else if(n.keyCode>=65&&n.keyCode<=90){const i=n.ctrlKey?n.keyCode-64:n.keyCode+32;let o=String.fromCharCode(i);n.shiftKey&&(o=o.toUpperCase()),_.key=l.C0.ESC+o}else if(n.keyCode===32)_.key=l.C0.ESC+(n.ctrlKey?l.C0.NUL:" ");else if(n.key==="Dead"&&n.code.startsWith("Key")){let i=n.code.slice(3,4);n.shiftKey||(i=i.toLowerCase()),_.key=l.C0.ESC+i,_.cancel=!0}}else n.keyCode>=65&&n.keyCode<=90?_.key=String.fromCharCode(n.keyCode-64):n.keyCode===32?_.key=l.C0.NUL:n.keyCode>=51&&n.keyCode<=55?_.key=String.fromCharCode(n.keyCode-51+27):n.keyCode===56?_.key=l.C0.DEL:n.keyCode===219?_.key=l.C0.ESC:n.keyCode===220?_.key=l.C0.FS:n.keyCode===221&&(_.key=l.C0.GS)}return _}},482:(I,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.Utf8ToUtf32=r.StringToUtf32=r.utf32ToString=r.stringFromCodePoint=void 0,r.stringFromCodePoint=function(a){return a>65535?(a-=65536,String.fromCharCode(55296+(a>>10Line truncated
`,t)}paste(s){this._core.paste(s)}refresh(s,t){this._verifyIntegers(s,t),this._core.refresh(s,t)}reset(){this._core.reset()}clearTextureAtlas(){this._core.clearTextureAtlas()}loadAddon(s){this._addonManager.loadAddon(this,s)}static get strings(){return r}_verifyIntegers(...s){for(const t of s)if(t===1/0||isNaN(t)||t%1!=0)throw new Error("This API only accepts integers")}_verifyPositiveIntegers(...s){for(const t of s)if(t&&(t===1/0||isNaN(t)||t%1!=0||t<0))throw new Error("This API only accepts positive integers")}}I.Terminal=_})(),ve})())})(pe);var De=pe.exports;const Re={style:{"background-color":"white",width:"100%",padding:"8px","padding-left":"16px","border-radius":"10px","margin-bottom":"16px",display:"flex","flex-direction":"row","align-items":"center","justify-content":"space-between"}},xe=he("div",{style:{width:"100%",height:"100%","background-color":"#fff",padding:"16px","border-radius":"10px"}},[he("div",{id:"terminal",style:{}})],-1),Ae={name:"ConsolePage",components:{},data(){return{term:null,websocket:null,status:"",connection_status:"连接"}},mounted(){this.term=new De.Terminal({rendererType:"canvas",rows:28,cols:100,theme:{foreground:"#000",background:"#ffffff",cursor:"#000",convertEol:!0}}),this.term.open(document.getElementById("terminal")),this.createWebSocket()},methods:{createWebSocket(){this.status="正在连接",this.websocket=new WebSocket("ws://"+window.location.hostname+":6185/api/live-log"),this.status="已连接",this.connection_status="断开",this.websocket.onopen=()=>{console.log("WebSocket连接已打开")},this.websocket.onerror=Q=>{console.error("WebSocket发生错误:",Q)},this.websocket.onclose=()=>{console.log("WebSocket连接已关闭")},this.websocket.onmessage=Q=>{this.term.write(Q.data+`\r
`,t)}paste(s){this._core.paste(s)}refresh(s,t){this._verifyIntegers(s,t),this._core.refresh(s,t)}reset(){this._core.reset()}clearTextureAtlas(){this._core.clearTextureAtlas()}loadAddon(s){this._addonManager.loadAddon(this,s)}static get strings(){return r}_verifyIntegers(...s){for(const t of s)if(t===1/0||isNaN(t)||t%1!=0)throw new Error("This API only accepts integers")}_verifyPositiveIntegers(...s){for(const t of s)if(t&&(t===1/0||isNaN(t)||t%1!=0||t<0))throw new Error("This API only accepts positive integers")}}I.Terminal=_})(),ve})())})(pe);var De=pe.exports;const Re={style:{"background-color":"white",width:"100%",padding:"8px","padding-left":"16px","border-radius":"10px","margin-bottom":"16px",display:"flex","flex-direction":"row","align-items":"center","justify-content":"space-between"}},xe=he("div",{style:{width:"100%",height:"100%","background-color":"#fff",padding:"16px","border-radius":"10px"}},[he("div",{id:"terminal",style:{height:"100%"}})],-1),Ae={name:"ConsolePage",components:{},data(){return{term:null,websocket:null,status:"",connection_status:"连接"}},mounted(){this.term=new De.Terminal({rendererType:"canvas",rows:35,cols:150,theme:{foreground:"#000",background:"#ffffff",cursor:"#000",convertEol:!0}}),this.term.open(document.getElementById("terminal")),this.createWebSocket()},methods:{createWebSocket(){this.status="正在连接",this.websocket=new WebSocket("ws://"+window.location.hostname+":6185/api/live-log"),this.status="已连接",this.connection_status="断开",this.websocket.onopen=()=>{console.log("WebSocket连接已打开")},this.websocket.onerror=Q=>{console.error("WebSocket发生错误:",Q)},this.websocket.onclose=()=>{console.log("WebSocket连接已关闭")},this.websocket.onmessage=Q=>{this.term.write(Q.data+`\r
`)}},handleConnection(){this.connection_status==="连接"?this.createWebSocket():(this.websocket.close(),this.term.write(`已手动断开连接。\r
`),this.status="未连接",this.connection_status="连接")}},beforeUnmount(){this.websocket.close()}},Te=Object.assign(Ae,{setup(Q){return(ne,ce)=>(Ce(),be(ke,null,[he("div",Re,[he("h3",null,ge(ne.status),1),ye(Ee,{color:"primary",variant:"text",onClick:ne.handleConnection},{default:we(()=>[Le(ge(ne.connection_status),1)]),_:1},8,["onClick"])]),xe],64))}});export{Te as default};
-1
View File
@@ -1 +0,0 @@
import{o as i,c as _,w as e,d as t,u as a,D as m,f as p,O as x,P as l,t as u,I as h,G as d,l as y,E as S,F as w,k as c,Y as T,Z as C,v as M,n as L,a as P,j,z as D}from"./index-a2f0b905.js";import{_ as $}from"./_plugin-vue_export-helper-c27b6911.js";const B={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(),_(d,{elevation:"0",class:"bg-secondary overflow-hidden bubble-shape bubble-secondary-shape"},{default:e(()=>[t(h,null,{default:e(()=>[a("div",B,[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"},E={class:"text-h1 font-weight-medium"},H=a("span",{class:"text-subtitle-1 text-medium-emphasis text-white"},"消息平台数",-1),G={name:"TotalSession",props:["stat"],data:()=>({stat:{platform_count:0}})},U=Object.assign(G,{setup(s){return(o,n)=>(i(),_(d,{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",E,u(s.stat.platform_count),1),H]),_:1})]),_:1})]),_:1})]),_:1}))}}),Y={name:"OnlineTime",components:{},props:["stat"],watch:{},data:()=>({stat:{memory:"Loading",running:"Loading"}}),mounted(){}},Z={class:"d-flex align-center gap-3"},q={class:"text-h4 font-weight-medium"},A=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 W(s,o,n,f,r,v){return i(),y(w,null,[t(d,{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",Z,[t(m,{color:"darkprimary",icon:"",rounded:"sm",variant:"flat"},{default:e(()=>[t(p,{icon:"mdi-clock"})]),_:1}),a("div",null,[a("h4",q,u(n.stat.running),1),A]),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(d,{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 X=$(Y,[["render",W]]),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(),_(d,{elevation:"0"},{default:e(()=>[t(d,{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]=r=>o.select=r),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"},dt={class:"ml-auto text-subtitle-1 text-medium-emphasis font-weight-bold"},rt={class:"text-cLine truncated
+1
View File
@@ -0,0 +1 @@
import{o as i,c as _,w as e,b as t,n as a,y 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,q as D}from"./index-3360c831.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),q={name:"TotalSession",props:["stat"],data:()=>({stat:{platform_count:0}})},E=Object.assign(q,{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}))}}),W={name:"OnlineTime",components:{},props:["stat"],watch:{},data:()=>({stat:{memory:"Loading",running:"Loading"}}),mounted(){}},X={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",X,[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=$(W,[["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
View File
@@ -1 +0,0 @@
import{q as P,o as d,c as r,w as a,d as e,u as i,H as v,a as u,t as c,E as k,D as p,_ as B,A as E,$ as y,I as V,G as x,l as g,a0 as H,a1 as N,F as f,n as b,a2 as T,K as w,a3 as q,e as O,m as j,g as U,O as C,N as S,a4 as J,z as _,P as m,J as M,M as A,a5 as K,f as I}from"./index-a2f0b905.js";const L={class:"d-sm-flex align-center justify-space-between"},D=P({__name:"ExtensionCard",props:{title:String,link:String},setup(n){const t=n,o=l=>{window.open(l,"_blank")};return(l,s)=>(d(),r(x,{variant:"outlined",elevation:"0",class:"withbg"},{default:a(()=>[e(B,{style:{padding:"10px 14px"}},{default:a(()=>[i("div",L,[e(v,{style:{"font-size":"17px"}},{default:a(()=>[u(c(t.title),1)]),_:1}),e(k),e(p,{variant:"plain",onClick:s[0]||(s[0]=h=>o(t.link))},{default:a(()=>[u("仓库")]),_:1})])]),_:1}),e(E),e(V,null,{default:a(()=>[y(l.$slots,"default")]),_:3})]),_:3}))}}),R={class:"d-sm-flex align-center justify-space-between"},Z=P({__name:"UiParentCard",props:{title:String},setup(n){const t=n;return(o,l)=>(d(),r(x,{variant:"outlined",elevation:"0",class:"withbg"},{default:a(()=>[e(B,null,{default:a(()=>[i("div",R,[e(v,null,{default:a(()=>[u(c(t.title),1)]),_:1}),y(o.$slots,"action")])]),_:3}),e(E),e(V,null,{default:a(()=>[y(o.$slots,"default")]),_:3})]),_:3}))}}),z={__name:"ConfigDetailCard",props:{config:Array},setup(n){return(t,o)=>(d(),g(f,null,[H(i("a",null,"该插件没有配置",512),[[N,n.config.length===0]]),(d(!0),g(f,null,b(n.config,l=>(d(),r(Z,{key:l.name,title:l.name,style:{"margin-bottom":"16px"}},{default:a(()=>[(d(!0),g(f,null,b(l.body,s=>(d(),g(f,null,[s.config_type==="item"?(d(),g(f,{key:0},[s.val_type==="bool"?(d(),r(T,{key:0,modelValue:s.value,"onUpdate:modelValue":h=>s.value=h,label:s.name,hint:s.description,color:"primary",inset:""},null,8,["modelValue","onUpdate:modelValue","label","hint"])):s.val_type==="str"?(d(),r(w,{key:1,modelValue:s.value,"onUpdate:modelValue":h=>s.value=h,label:s.name,hint:s.description,style:{"margin-bottom":"8px"},variant:"outlined"},null,8,["modelValue","onUpdate:modelValue","label","hint"])):s.val_type==="int"?(d(),r(w,{key:2,modelValue:s.value,"onUpdate:modelValue":h=>s.value=h,label:s.name,hint:s.description,style:{"margin-bottom":"8px"},variant:"outlined"},null,8,["modelValue","onUpdate:modelValue","label","hint"])):s.val_type==="list"?(d(),g(f,{key:3},[i("span",null,c(s.name),1),e(q,{modelValue:s.value,"onUpdate:modelValue":h=>s.value=h,chips:"",clearable:"",label:"请添加",multiple:"","prepend-icon":"mdi-tag-multiple-outline"},{selection:a(({attrs:h,item:$,select:F,selected:G})=>[e(O,j(h,{"model-value":G,closable:"",onClick:F,"onClick:close":rt=>t.remove($)}),{default:a(()=>[i("strong",null,c($),1)]),_:2},1040,["model-value","onClick","onClick:close"])]),_:2},1032,["modelValue","onUpdate:modelValue"])],64)):U("",!0)],64)):s.config_type==="divider"?(d(),r(E,{key:1,style:{"margin-top":"8px","margin-bottom":"8px"}})):U("",!0)],64))),256))]),_:2},1032,["title"]))),128))],64))}},Q=i("div",{style:{"background-color":"white",width:"100%",padding:"16px","border-radius":"10px"}},[i("h3",null,"🧩 已安装的插件")],-1),W={style:{"min-height":"150px","max-height":"150px",overflow:"hidden"}},X={class:"d-flex align-center gap-2"},Y=i("div",{style:{"background-color":"white",width:"100%",padding:"16px","border-radius":"10px"}},[i("h3",null,"🧩 插件市场")],-1),tt={style:{"min-height":"150px","max-height":"150px",overflow:"hidden"}},at={class:"d-flex align-center gap-2"},et=i("span",{class:"text-h5"},"插件配置",-1),lt=i("span",{class:"text-h5"},"安装插件",-1),nt=i("h3",null,"从 GitHub 上在线下载",-1),st=i("small",null,"请输入合法的 GitHub 仓库链接,当前仅支持 GitHub。如:https://github.com/Soulter/astrbot_plugin_aiocqhttp",-1),ot=i("h3",null,"从本机上传 .zip 压缩包",-1),it=i("small",null,"请保证插件文件存在压缩包根目录中的第一个文件夹中(即类似于从 GitHub 仓库页上下载的 Zip 压缩包的格式)。",-1),dt=i("br",null,null,-1),ut={name:"ExtensionPage",components:{ExtensionCard:D,ConfigDetailCard:z},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:{}}},mounted(){this.getExtensions(),this.fetchPluginCollection()},methods:{toast(n,t){this.snack_message=n,this.snack_show=!0,this.snack_success=t},getExtensions(){_.get("/api/plugin/get").then(n=>{this.extension_data.data=n.data.data,this.checkAlreadyInstalled()})},newExtension(){if(this.extension_url===""&&this.upload_file===null){this.toast("请填写插件链接或上传插件文件","error");return}if(this.extension_url!==""&&this.upload_file!==null){this.toast("请不要同时填写插件链接和上传插件文件","error");return}if(this.loading_=!0,this.upload_file!==null){const n=new FormData;n.append("file",this.upload_file[0]),_.post("/api/plugin/install-upload",n,{headers:{"ContenLine truncated
+1
View File
@@ -0,0 +1 @@
import{k as A,o as i,c as r,w as e,b as a,n as d,C as V,e as u,t as p,z as k,y as g,Y as z,G as R,Z as U,D as y,B as C,l as c,_ as j,$ as G,F as f,r as x,a0 as H,H as M,a1 as q,V as N,A as B,g as v,L as b,K as w,a2 as O,q as m,a3 as W,M as _,E as $,J as E,a4 as Z,f as D,a5 as J}from"./index-3360c831.js";import{W as P}from"./WaitingForRestart-dd7c3e40.js";import"./_plugin-vue_export-helper-c27b6911.js";const K={class:"d-sm-flex align-center justify-space-between"},L=A({__name:"ExtensionCard",props:{title:String,link:String},setup(n){const t=n,o=l=>{window.open(l,"_blank")};return(l,s)=>(i(),r(C,{variant:"outlined",elevation:"0",class:"withbg"},{default:e(()=>[a(z,{style:{padding:"10px 14px"}},{default:e(()=>[d("div",K,[a(V,{style:{"font-size":"17px"}},{default:e(()=>[u(p(t.title),1)]),_:1}),a(k),a(g,{variant:"plain",onClick:s[0]||(s[0]=h=>o(t.link))},{default:e(()=>[u("仓库")]),_:1})])]),_:1}),a(R),a(y,null,{default:e(()=>[U(l.$slots,"default")]),_:3})]),_:3}))}}),Y={class:"d-sm-flex align-center justify-space-between"},Q=A({__name:"UiParentCard",props:{title:String},setup(n){const t=n;return(o,l)=>(i(),r(C,{variant:"outlined",elevation:"0",class:"withbg"},{default:e(()=>[a(z,null,{default:e(()=>[d("div",Y,[a(V,null,{default:e(()=>[u(p(t.title),1)]),_:1}),U(o.$slots,"action")])]),_:3}),a(R),a(y,null,{default:e(()=>[U(o.$slots,"default")]),_:3})]),_:3}))}}),F={__name:"ConfigDetailCard",props:{config:Array},setup(n){return(t,o)=>(i(),c(f,null,[j(d("a",null,"该插件没有配置",512),[[G,n.config.length===0]]),(i(!0),c(f,null,x(n.config,l=>(i(),r(Q,{key:l.name,title:l.name,style:{"margin-bottom":"16px"}},{default:e(()=>[(i(!0),c(f,null,x(l.body,s=>(i(),c(f,null,[s.config_type==="item"?(i(),c(f,{key:0},[s.val_type==="bool"?(i(),r(H,{key:0,modelValue:s.value,"onUpdate:modelValue":h=>s.value=h,label:s.name,hint:s.description,color:"primary",inset:""},null,8,["modelValue","onUpdate:modelValue","label","hint"])):s.val_type==="str"?(i(),r(M,{key:1,modelValue:s.value,"onUpdate:modelValue":h=>s.value=h,label:s.name,hint:s.description,style:{"margin-bottom":"8px"},variant:"outlined"},null,8,["modelValue","onUpdate:modelValue","label","hint"])):s.val_type==="int"?(i(),r(M,{key:2,modelValue:s.value,"onUpdate:modelValue":h=>s.value=h,label:s.name,hint:s.description,style:{"margin-bottom":"8px"},variant:"outlined"},null,8,["modelValue","onUpdate:modelValue","label","hint"])):s.val_type==="list"?(i(),c(f,{key:3},[d("span",null,p(s.name),1),a(q,{modelValue:s.value,"onUpdate:modelValue":h=>s.value=h,chips:"",clearable:"",label:"请添加",multiple:"","prepend-icon":"mdi-tag-multiple-outline"},{selection:e(({attrs:h,item:S,select:I,selected:T})=>[a(N,B(h,{"model-value":T,closable:"",onClick:I,"onClick:close":mt=>t.remove(S)}),{default:e(()=>[d("strong",null,p(S),1)]),_:2},1040,["model-value","onClick","onClick:close"])]),_:2},1032,["modelValue","onUpdate:modelValue"])],64)):v("",!0)],64)):s.config_type==="divider"?(i(),r(R,{key:1,style:{"margin-top":"8px","margin-bottom":"8px"}})):v("",!0)],64))),256))]),_:2},1032,["title"]))),128))],64))}},X=d("div",{style:{"background-color":"white",width:"100%",padding:"16px","border-radius":"10px"}},[d("h3",null,"🧩 已安装的插件")],-1),tt={style:{"min-height":"150px","max-height":"150px",overflow:"hidden"}},at={class:"d-flex align-center gap-2"},et=d("div",{style:{"background-color":"white",width:"100%",padding:"16px","border-radius":"10px"}},[d("h3",null,"🧩 插件市场")],-1),lt={style:{"min-height":"150px","max-height":"150px",overflow:"hidden"}},nt={class:"d-flex align-center gap-2"},ot=d("span",{class:"text-h5"},"插件配置",-1),st=d("span",{class:"text-h5"},"安装插件",-1),it=d("h3",null,"从 GitHub 上在线下载",-1),dt=d("small",null,"请输入合法的 GitHub 仓库链接,当前仅支持 GitHub。如:https://github.com/Soulter/astrbot_plugin_aiocqhttp",-1),ut=d("h3",null,"从本机上传 .zip 压缩包",-1),rt=d("small",null,"请保证插件文件存在压缩包根目录中的第一个文件夹中(即类似于从 GitHub 仓库页上下载的 Zip 压缩包的格式)。",-1),gt=d("br",null,null,-1),pt={class:"text-h5"},ht={key:0,class:"py-12 text-center"},ct={class:"text-h4 font-weight-bold"},ft={name:"ExtensionPage",components:{ExtensionCard:L,ConfigDetailCard:F,WaitingForRestart:P},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,statusMessage:"",result:""}}},mounted(){this.getExtensions(),this.fetchPluginCollection()},methods:{toast(n,t){this.snack_message=n,this.snack_show=!0,this.snack_success=t},onLoadingDialogResult(n,t,o=2e3){this.loadingDialog.statusCode=n,this.loadingDialog.result=t,setTimeout(()=>{this.loadingDialog={show:!1,title:"加载中...",statusCode:0,statusMessage:"",result:""}},o)},getExtensions(){m.get("/api/plugLine truncated
+1
View File
@@ -0,0 +1 @@
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-3360c831.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
@@ -0,0 +1 @@
import{d as J,o as v,c as V,a as K,w as t,b as e,V as O,e as d,t as w,f as B,g as D,h as Q,i as X,j as Y,k as A,s as Z,l as T,r as ee,F as te,m as ae,n as o,u as i,p as le,q as x,v as h,x as L,y as p,z as k,A as P,B as U,C as M,D as F,E as I,G as se,H as z,I as b,J as $,K as q,L as ie,M as oe,N as ne,O as de,P as re,Q as ue,R as me,S as ce,T as fe}from"./index-3360c831.js";import{m as H}from"./md5-f9642456.js";const y={Sidebar_drawer:!0,Customizer_drawer:!1,mini_sidebar:!1,fontTheme:"Roboto",inputBg:!1},E=J({id:"customizer",state:()=>({Sidebar_drawer:y.Sidebar_drawer,Customizer_drawer:y.Customizer_drawer,mini_sidebar:y.mini_sidebar,fontTheme:"Poppins",inputBg:y.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}}}),pe=[{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"}],W={__name:"NavItem",props:{item:Object,level:Number},setup(a){return(c,r)=>(v(),V(Y,{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":""},K({prepend:t(()=>[a.item.icon?(v(),V(B,{key:0,size:a.item.iconSize,class:"hide-menu",icon:a.item.icon},null,8,["size","icon"])):D("",!0)]),default:t(()=>[e(Q,null,{default:t(()=>[d(w(a.item.title),1)]),_:1}),a.item.subCaption?(v(),V(X,{key:0,class:"text-caption mt-n1 hide-menu"},{default:t(()=>[d(w(a.item.subCaption),1)]),_:1})):D("",!0)]),_:2},[a.item.chip?{name:"append",fn:t(()=>[e(O,{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(()=>[d(w(a.item.chip),1)]),_:1},8,["color","size","variant","prepend-icon"])]),key:"0"}:void 0]),1032,["to","href","disabled","target"]))}},ve={class:"text-center"},he={name:"VerticalSidebar",components:{NavItem:W},data:()=>({version:"-"}),mounted(){this.get_version()},methods:{get_version(){x.get("/api/stat/version").then(a=>{this.version=a.data.data.version}).catch(a=>{console.log(a)})}}},_e=A({...he,setup(a){const c=E(),r=Z(pe);return(f,u)=>(v(),V(le,{left:"",modelValue:i(c).Sidebar_drawer,"onUpdate:modelValue":u[0]||(u[0]=m=>i(c).Sidebar_drawer=m),elevation:"0","rail-width":"80","mobile-breakpoint":"960",app:"",class:"leftSidebar",rail:i(c).mini_sidebar},{default:t(()=>[e(ae,{class:"pa-4 listitem",style:{height:"auto"}},{default:t(()=>[(v(!0),T(te,null,ee(r.value,(m,g)=>(v(),V(W,{key:g,item:m,class:"leftPadding"},null,8,["item"]))),128))]),_:1}),o("div",ve,[e(O,{color:"inputBorder",size:"small"},{default:t(()=>[d(" v"+w(f.version),1)]),_:1})])]),_:1},8,["modelValue","rail"]))}}),be=o("span",{style:{"margin-left":"16px","font-size":"24px","font-weight":"1000"}},[d("Astr"),o("span",{style:{"font-weight":"normal"}},"Bot")],-1),Ve={class:"mr-4"},ge={key:0},we={key:1},Se=o("span",{class:"text-h5"},"更新项目",-1),ye=o("h3",{class:"mb-4"},"升级到最新版本",-1),xe={style:{"margin-top":"16px"}},Ce=o("h3",{class:"mb-4"},"切换到指定版本或指定提交",-1),ke=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),ze=o("span",{class:"text-h5"},"密码修改",-1),Be=o("small",null,"如果是第一次修改密码,原密码请留空。",-1),Te=o("br",null,null,-1),Ie=A({__name:"VerticalHeader",setup(a){const c=E();h(!1);let r=h(!1),f=h(!1),u=h(""),m=h(""),g=h(""),_=h(""),C=h(!1),S=h("");const j=n=>{window.open(n,"_blank")};function G(){u.value!=""&&(u.value=H.md5(u.value)),m.value=H.md5(m.value),x.post("/api/auth/password/reset",{password:u.value,new_password:m.value}).then(n=>{if(n.data.status=="error"){g.value=n.data.message,u.value="",m.value="";return}r.value=!r.value,g.value=n.data.message,setTimeout(()=>{de().logout()},1e3)}).catch(n=>{console.log(n),g.value=n,u.value="",m.value=""})}function R(){_.value="正在检查更新...",x.get("/api/update/check").then(n=>{C.value=n.data.data.has_new_version,_.value=n.data.message}).catch(n=>{console.log(n),_.value=n})}function N(n){_.value="正在切换版本...",x.post("/api/update/do",{version:n}).then(l=>{_.value=l.data.message,l.data.status=="success"&&setTimeout(()=>{window.location.reload()},1e3)}).catch(l=>{console.log(l),_.value=l})}return R(),(n,l)=>(v(),V(ne,{elevation:"0",height:"70"},{default:t(()=>[e(p,{style:{"margin-left":"22px"},class:"hidden-md-and-down text-secondary",color:"lightsecondary",icon:"",rounded:"sm",variant:"flat",onClick:l[0]||(l[0]=L(s=>i(c).SET_MINI_SIDEBAR(!i(c).mini_sidebar),["stop"])Line truncated
-1
View File
@@ -1 +0,0 @@
import{o,c as r,w as e,a as f,t as g,V as se,b as oe,d as t,e as H,f as I,g as B,h as W,i as J,j as K,r as U,k as Q,m as T,l as k,F as w,n as X,p as ne,q as A,s as ie,u,v as re,x as i,y as ue,z as x,A as Y,B as V,C as P,D as h,E as N,G as M,H as j,I as G,J as L,K as z,L as y,M as O,N as q,O as de,P as ce,Q as me,R as fe,S as ve,T as pe,U as _e,W as he,X as be}from"./index-a2f0b905.js";import{_ as Ve,u as $,m as F}from"./md5-f95c7b53.js";const ge=[{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"}],Z={__name:"NavGroup",props:{item:Object},setup(a){const n=a;return(d,_)=>(o(),r(se,{color:"darkText",class:"smallCap"},{default:e(()=>[f(g(n.item.header),1)]),_:1}))}},D={__name:"NavItem",props:{item:Object,level:Number},setup(a){return(n,d)=>(o(),r(K,{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":""},oe({prepend:e(()=>[a.item.icon?(o(),r(I,{key:0,color:a.item.iconColor,size:a.item.iconSize,class:"hide-menu",icon:a.item.icon},null,8,["color","size","icon"])):B("",!0)]),default:e(()=>[t(W,null,{default:e(()=>[f(g(a.item.title),1)]),_:1}),a.item.subCaption?(o(),r(J,{key:0,class:"text-caption mt-n1 hide-menu"},{default:e(()=>[f(g(a.item.subCaption),1)]),_:1})):B("",!0)]),_:2},[a.item.chip?{name:"append",fn:e(()=>[t(H,{color:a.item.chipColor,class:"sidebarchip hide-menu",size:a.item.chipIcon?"small":"default",variant:a.item.chipVariant,"prepend-icon":a.item.chipIcon},{default:e(()=>[f(g(a.item.chip),1)]),_:1},8,["color","size","variant","prepend-icon"])]),key:"0"}:void 0]),1032,["to","href","disabled","target"]))}},ye={__name:"IconSet",props:{item:Object,level:Number},setup(a){const n=a;return(d,_)=>n.level>0?(o(),r(U(n.item),{key:0,size:"5",fill:"currentColor","stroke-width":"1.5",class:"iconClass"})):(o(),r(U(n.item),{key:1,size:"20","stroke-width":"1.5",class:"iconClass"}))}},ee={__name:"NavCollapse",props:{item:Object,level:Number},setup(a){const n=a;return(d,_)=>{const p=Q("NavCollapse",!0);return o(),r(ne,{"no-action":""},{activator:e(({props:c})=>[t(K,T(c,{value:a.item.title,rounded:"",class:"mb-1",color:"secondary"}),{prepend:e(()=>[t(ye,{item:a.item.icon,level:a.level},null,8,["item","level"])]),default:e(()=>[t(W,{class:"mr-auto"},{default:e(()=>[f(g(a.item.title),1)]),_:1}),a.item.subCaption?(o(),r(J,{key:0,class:"text-caption mt-n1 hide-menu"},{default:e(()=>[f(g(a.item.subCaption),1)]),_:1})):B("",!0)]),_:2},1040,["value"])]),default:e(()=>[(o(!0),k(w,null,X(a.item.children,(c,v)=>(o(),k(w,{key:v},[c.children?(o(),r(p,{key:0,item:c,level:n.level+1},null,8,["item","level"])):(o(),r(D,{key:1,item:c,level:n.level+1},null,8,["item","level"]))],64))),128))]),_:1})}}},te={__name:"LogoMain",setup(a){return(n,d)=>(o(),r(Ve))}},ke={class:"pa-5"},Ce={class:"pa-4 text-center"},xe={name:"VerticalSidebar",components:{NavGroup:Z,NavItem:D,NavCollapse:ee,Logo:te},data:()=>({version:"-"}),mounted(){this.get_version()},methods:{get_version(){x.get("/api/stat/version").then(a=>{this.version=a.data.data.version}).catch(a=>{console.log(a)})}}},we=A({...xe,setup(a){const n=$(),d=ie(ge);return(_,p)=>{const c=Q("perfect-scrollbar");return o(),r(ue,{left:"",modelValue:i(n).Sidebar_drawer,"onUpdate:modelValue":p[0]||(p[0]=v=>i(n).Sidebar_drawer=v),elevation:"0","rail-width":"105","mobile-breakpoint":"960",app:"",class:"leftSidebar",rail:i(n).mini_sidebar,"expand-on-hover":""},{default:e(()=>[u("div",ke,[t(te)]),t(c,{class:"scrollnavbar"},{default:e(()=>[t(re,{class:"pa-4"},{default:e(()=>[(o(!0),k(w,null,X(d.value,(v,b)=>(o(),k(w,{key:b},[v.header?(o(),r(Z,{item:v,key:v.title},null,8,["item"])):v.divider?(o(),r(Y,{key:1,class:"my-3"})):v.children?(o(),r(ee,{key:2,class:"leftPadding",item:v,level:0},null,8,["item"])):(o(),r(D,{key:3,item:v,class:"leftPadding"},null,8,["item"]))],64))),128))]),_:1}),u("div",Ce,[t(H,{color:"inputBorder",size:"small"},{default:e(()=>[f(" v"+g(_.version),1)]),_:1})])]),_:1})]),_:1},8,["modelValue","rail"])}}}),Se={class:"mr-4"},Ne={key:0},ze={key:1},Ie=u("span",{class:"text-h5"},"更新项目",-1),Be=u("h3",{class:"mb-4"},"升级到最新版本",-1),Te={style:{"margin-top":"16px"}},Le=u("h3",{class:"mb-4"},"切换到指定版本或指定提交",-1),Ae=u("div",{class:"mb-4"},[u("small",null,"如 v3.3.16 (不带 SHA) 或 42e5ec5d80b93b6bfe8b566754d45ffac4c3fe0b"),u("br"),u("a",{href:"https://github.com/Soulter/AstrBot/commits/master"},[u("small",null,"查看 master 分支提交记录(点击右边的 copy 即可复制)")])],-1),$e=u("span",{class:"text-h5"},"密码修改",-1),De=u("small",null,"如果是第一次修改密码,原密码请留空。",-1),Re=u("br",null,null,-1),Ee=A({__name:"VerticalHeader",setup(a){const n=$();V(!1);let d=V(!1),_=V(!1),p=V(""),c=V(""),v=V(""),b=V(""),S=V(!1),C=Line truncated
-5
View File
@@ -1,5 +0,0 @@
import{a as _t,_ as Ot}from"./md5-f95c7b53.js";import{q as Me,a8 as we,r as Vt,a9 as St,B,aa as Be,Z as F,x as I,ab as Z,ac as Et,L as Ne,ad as Ie,ae as At,af as jt,ag as wt,ah as q,s as Ft,o as Re,c as tt,w as P,d as A,K as He,a as qe,D as Pt,l as Tt,t as Ct,ai as Bt,g as Nt,u as ge,R as It,J as Rt,O as Fe,P as Pe,G as Ke,I as Mt}from"./index-a2f0b905.js";/**
* vee-validate v4.11.3
* (c) 2023 Abdelrahman Awad
* @license MIT
*/function R(e){return typeof e=="function"}function nt(e){return e==null}const X=e=>e!==null&&!!e&&typeof e=="object"&&!Array.isArray(e);function ke(e){return Number(e)>=0}function kt(e){return typeof e=="object"&&e!==null}function Ut(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}function Dt(e){if(!kt(e)||Ut(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(Dt(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 zt={};function Lt(e){return zt[e]}const $t=Symbol("vee-validate-form"),xt=typeof window<"u";function Gt(e){return R(e)&&!!e.__locatorRef}function ee(e){return!!e&&R(e.parse)&&e.__type==="VVTypedSchema"}function rt(e){return!!e&&R(e.validate)}function Ht(e){return e==="checkbox"||e==="radio"}function qt(e){return X(e)||Array.isArray(e)}function Kt(e){return Array.isArray(e)?e.length===0:X(e)&&Object.keys(e).length===0}function be(e){return/^\[.+\]$/i.test(e)}function Wt(e){return at(e)&&e.multiple}function at(e){return e.tagName==="SELECT"}function it(e){return Ue(e)&&e.target&&"submit"in e.target}function Ue(e){return e?!!(typeof Event<"u"&&R(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(We(e)&&We(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 We(e){return xt?e instanceof File:!1}function Ye(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++)Ye(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]||Ye(l,n,Object.getOwnPropertyDescriptor(e,n))}return l||e}function De(e){return be(e)?e.replace(/\[|\]/gi,""):e}function D(e,t,n){return e?be(t)?e[De(t)]:(t||"").split(/\.|\[(\d+)\]/).filter(Boolean).reduce((l,o)=>qt(l)&&o in l?l[o]:n,e):n}function K(e,t,n){if(be(t)){e[De(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)||nt(l[i[o]]))&&(l[i[o]]=ke(i[o+1])?[]:{}),l=l[i[o]]}}function Te(e,t){if(Array.isArray(e)&&ke(t)){e.splice(Number(t),1);return}X(e)&&delete e[t]}function Je(e,t){if(be(t)){delete e[De(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){Te(i,n[o]);break}if(!(n[o]in i)||nt(i[n[o]]))break;i=i[n[o]]}const l=n.map((o,c)=>D(e,n.slice(0,c).join(".")));for(let o=l.length-1;o>=0;o--)if(Kt(l[o])){if(o===0){Te(e,n[0]);continue}Te(l[o-1],n[o-1])}}function U(e){return Object.keys(e)}function Ze(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 Yt(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 Qe(e){return Array.isArray(e)?e:e?[e]:[]}function ue(e,t){const n={};forLine truncated
+5
View File
@@ -0,0 +1,5 @@
import{k as Ie,al as we,am as yt,a8 as gt,v 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 x,H as $e,e as He,y 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-3360c831.js";import{a as Nt}from"./md5-f9642456.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 Lt(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 xt(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
@@ -0,0 +1 @@
import{q 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 f,n as l,l as r,f as w,g as n,t as o,K as S}from"./index-3360c831.js";import{_ as g}from"./_plugin-vue_export-helper-c27b6911.js";const v={name:"WaitingForRestart",data(){return{visible:!1,startTime:-1,newStartTime:-1,status:"",cnt:0,intervalId:null}},methods:{async check(){this.newStartTime=-1,this.startTime=-1,this.visible=!0,this.status="",console.log("start wfr"),await this.getStartTime(),this.intervalId=setInterval(()=>{if(this.newStartTime===-1&&this.cnt<10&&this.visible)this.checkStartTime(),this.cnt++;else{this.cnt==10&&(this.status="拉取状态达到最大次数,请手动检查。"),this.cnt=0,setTimeout(()=>{this.visible=!1},1e3),clearInterval(this.intervalId);return}},1e3)},async getStartTime(){m.get("/api/stat/start-time").then(i=>{this.startTime=i.data.data.start_time})},async checkStartTime(){let i=await m.get("/api/stat/start-time");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))}}},V={style:{"margin-top":"16px"}},k={key:0,class:"py-12 text-center"},y=l("p",null,"重启成功!",-1),x={key:1},b={key:2},B={key:3};function C(i,c,I,N,t,D){return e(),u(S,{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(f,{indeterminate:"",color:"primary"}),l("div",V,[t.newStartTime!=-1?(e(),r("div",k,[s(w,{class:"mb-6",color:"success",icon:"mdi-check-circle-outline",size:"128"}),y])):n("",!0),t.startTime!=-1?(e(),r("p",x,"当前实例标识:"+o(t.startTime),1)):n("",!0),t.newStartTime!=-1?(e(),r("p",b,"检查到新实例:"+o(t.newStartTime)+",即将自动刷新页面",1)):n("",!0),t.status?(e(),r("p",B,o(t.status),1)):n("",!0),l("p",null,"次数:"+o(t.cnt),1)])]),_:1})]),_:1})]),_:1},8,["modelValue"])}const R=g(v,[["render",C]]);export{R as W};
+727
View File
@@ -0,0 +1,727 @@
(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,UI as p,$k as q,n0 as r,Xe as s,Ay as t,_t as u,Oe as v,Pu as w,$w as x,cn as y,kI as z};
-716
View File
@@ -1,716 +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 d of l)if(d.type==="childList")for(const f of d.addedNodes)f.tagName==="LINK"&&f.rel==="modulepreload"&&r(f)}).observe(document,{childList:!0,subtree:!0});function i(l){const d={};return l.integrity&&(d.integrity=l.integrity),l.referrerPolicy&&(d.referrerPolicy=l.referrerPolicy),l.crossOrigin==="use-credentials"?d.credentials="include":l.crossOrigin==="anonymous"?d.credentials="omit":d.credentials="same-origin",d}function r(l){if(l.ep)return;l.ep=!0;const d=i(l);fetch(l.href,d)}})();function Db(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 zb=()=>{},Gc=Object.assign,Nb=Object.prototype.hasOwnProperty,uo=(e,a)=>Nb.call(e,a),ca=Array.isArray,Nr=e=>Nf(e)==="[object Map]",Uc=e=>typeof e=="function",Hb=e=>typeof e=="string",qc=e=>typeof e=="symbol",tr=e=>e!==null&&typeof e=="object",Xb=Object.prototype.toString,Nf=e=>Xb.call(e),Yb=e=>Nf(e).slice(8,-1),Kc=e=>Hb(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Zc=(e,a)=>!Object.is(e,a),Wb=(e,a,i)=>{Object.defineProperty(e,a,{configurable:!0,enumerable:!1,value:i})};let bn;class Jc{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 Ji(e){return new Jc(e)}function Hf(e,a=bn){a&&a.active&&a.effects.push(e)}function Qc(){return bn}function nn(e){bn&&bn.cleanups.push(e)}const eu=e=>{const a=new Set(e);return a.w=0,a.n=0,a},Xf=e=>(e.w&Ba)>0,Yf=e=>(e.n&Ba)>0,$b=({deps:e})=>{if(e.length)for(let a=0;a<e.length;a++)e[a].w|=Ba},jb=e=>{const{deps:a}=e;if(a.length){let i=0;for(let r=0;r<a.length;r++){const l=a[r];Xf(l)&&!Yf(l)?l.delete(e):a[i++]=l,l.w&=~Ba,l.n&=~Ba}a.length=i}},qr=new WeakMap;let ys=0,Ba=1;const Ol=30;let zn;const ri=Symbol(""),Fl=Symbol("");class nr{constructor(a,i=null,r){this.fn=a,this.scheduler=i,this.active=!0,this.deps=[],this.parent=void 0,Hf(this,r)}run(){if(!this.active)return this.fn();let a=zn,i=Oa;for(;a;){if(a===this)return;a=a.parent}try{return this.parent=zn,zn=this,Oa=!0,Ba=1<<++ys,ys<=Ol?$b(this):Ed(this),this.fn()}finally{ys<=Ol&&jb(this),Ba=1<<--ys,zn=this.parent,Oa=i,this.parent=void 0,this.deferStop&&this.stop()}}stop(){zn===this?this.deferStop=!0:this.active&&(Ed(this),this.onStop&&this.onStop(),this.active=!1)}}function Ed(e){const{deps:a}=e;if(a.length){for(let i=0;i<a.length;i++)a[i].delete(e);a.length=0}}function Gb(e,a){e.effect&&(e=e.effect.fn);const i=new nr(e);a&&(Gc(i,a),a.scope&&Hf(i,a.scope)),(!a||!a.lazy)&&i.run();const r=i.run.bind(i);return r.effect=i,r}function Ub(e){e.effect.stop()}let Oa=!0;const Wf=[];function Qi(){Wf.push(Oa),Oa=!1}function es(){const e=Wf.pop();Oa=e===void 0?!0:e}function fn(e,a,i){if(Oa&&zn){let r=qr.get(e);r||qr.set(e,r=new Map);let l=r.get(i);l||r.set(i,l=eu()),$f(l)}}function $f(e,a){let i=!1;ys<=Ol?Yf(e)||(e.n|=Ba,i=!Xf(e)):i=!e.has(zn),i&&(e.add(zn),zn.deps.push(e))}function fa(e,a,i,r,l,d){const f=qr.get(e);if(!f)return;let p=[];if(a==="clear")p=[...f.values()];else if(i==="length"&&ca(e)){const y=Number(r);f.forEach((k,C)=>{(C==="length"||C>=y)&&p.push(k)})}else switch(i!==void 0&&p.push(f.get(i)),a){case"add":ca(e)?Kc(i)&&p.push(f.get("length")):(p.push(f.get(ri)),Nr(e)&&p.push(f.get(Fl)));break;case"delete":ca(e)||(p.push(f.get(ri)),Nr(e)&&p.push(f.get(Fl)));break;case"set":Nr(e)&&p.push(f.get(ri));break}if(p.length===1)p[0]&&Bl(p[0]);else{const y=[];for(const k of p)k&&y.push(...k);Bl(eu(y))}}function Bl(e,a){const i=ca(e)?e:[...e];for(const r of i)r.computed&&Td(r);for(const r of i)r.computed||Td(r)}function Td(e,a){(e!==zn||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}function qb(e,a){var i;return(i=qr.get(e))==null?void 0:i.get(a)}const Kb=Db("__proto__,__v_isRef,__isVue"),jf=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(qc)),Zb=ho(),Jb=ho(!1,!0),Qb=ho(!0),ex=ho(!0,!0),Id=tx();function tx(){const e={};return["includes","indexOf","lastIndexOf"].forEach(a=>{e[a]=function(...i){const r=nt(this);for(let d=0,f=this.length;d<f;d++)fn(r,"get",d+"");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 kv;const Ro=e=>kv=e,Cv=Symbol();function sc(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var _s;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(_s||(_s={}));function kw(){const e=Ji(!0),a=e.run(()=>Re({}));let i=[],r=[];const l=ar({install(d){Ro(l),l._a=d,d.provide(Cv,l),d.config.globalProperties.$pinia=l,r.forEach(f=>i.push(f)),r=[]},use(d){return!this._a&&!Sw?r.push(d):i.push(d),this},_p:i,_a:null,_e:e,_s:new Map,state:a});return l}const Av=()=>{};function fh(e,a,i,r=Av){e.push(a);const l=()=>{const d=e.indexOf(a);d>-1&&(e.splice(d,1),r())};return!i&&Qc()&&nn(l),l}function Li(e,...a){e.slice().forEach(i=>{i(...a)})}const Cw=e=>e();function rc(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];sc(l)&&sc(r)&&e.hasOwnProperty(i)&&!yt(r)&&!ua(r)?e[i]=rc(l,r):e[i]=r}return e}const Aw=Symbol();function Pw(e){return!sc(e)||!e.hasOwnProperty(Aw)}const{assign:La}=Object;function Ew(e){return!!(yt(e)&&e.effect)}function Tw(e,a,i,r){const{state:l,actions:d,getters:f}=a,p=i.state.value[e];let y;function k(){p||(i.state.value[e]=l?l():{});const C=ir(i.state.value[e]);return La(C,d,Object.keys(f||{}).reduce((A,E)=>(A[E]=ar(X(()=>{Ro(i);const _=i._s.get(e);return f[E].call(_,_)})),A),{}))}return y=Pv(e,k,a,i,r,!0),y}function Pv(e,a,i={},r,l,d){let f;const p=La({actions:{}},i),y={deep:!0};let k,C,A=[],E=[],_;const M=r.state.value[e];!d&&!M&&(r.state.value[e]={}),Re({});let F;function $(W){let j;k=C=!1,typeof W=="function"?(W(r.state.value[e]),j={type:_s.patchFunction,storeId:e,events:_}):(rc(r.state.value[e],W),j={type:_s.patchObject,payload:W,storeId:e,events:_});const Q=F=Symbol();gt().then(()=>{F===Q&&(k=!0)}),C=!0,Li(A,j,r.state.value[e])}const B=d?function(){const{state:j}=i,Q=j?j():{};this.$patch(ie=>{La(ie,Q)})}:Av;function L(){f.stop(),A=[],E=[],r._s.delete(e)}function q(W,j){return function(){Ro(r);const Q=Array.from(arguments),ie=[],ne=[];function oe(ye){ie.push(ye)}function le(ye){ne.push(ye)}Li(E,{args:Q,name:W,store:H,after:oe,onError:le});let Ce;try{Ce=j.apply(this&&this.$id===e?this:H,Q)}catch(ye){throw Li(ne,ye),ye}return Ce instanceof Promise?Ce.then(ye=>(Li(ie,ye),ye)).catch(ye=>(Li(ne,ye),Promise.reject(ye))):(Li(ie,Ce),Ce)}}const Y={_p:r,$id:e,$onAction:fh.bind(null,E),$patch:$,$reset:B,$subscribe(W,j={}){const Q=fh(A,W,j.detached,()=>ie()),ie=f.run(()=>He(()=>r.state.value[e],ne=>{(j.flush==="sync"?C:k)&&W({storeId:e,type:_s.direct,events:_},ne)},La({},y,j)));return Q},$dispose:L},H=Gt(Y);r._s.set(e,H);const J=r._a&&r._a.runWithContext||Cw,ee=r._e.run(()=>(f=Ji(),J(()=>f.run(a))));for(const W in ee){const j=ee[W];if(yt(j)&&!Ew(j)||ua(j))d||(M&&Pw(j)&&(yt(j)?j.value=M[W]:rc(j,M[W])),r.state.value[e][W]=j);else if(typeof j=="function"){const Q=q(W,j);ee[W]=Q,p.actions[W]=j}}return La(H,ee),La(nt(H),ee),Object.defineProperty(H,"$state",{get:()=>r.state.value[e],set:W=>{$(j=>{La(j,W)})}}),r._p.forEach(W=>{La(H,f.run(()=>W({store:H,app:r._a,pinia:r,options:p})))}),M&&d&&i.hydrate&&i.hydrate(H.$state,M),k=!0,C=!0,H}function Iw(e,a,i){let r,l;const d=typeof a=="function";typeof e=="string"?(r=e,l=d?i:a):(l=e,r=e.id);function f(p,y){const k=_g();return p=p||(k?ct(Cv,null):null),p&&Ro(p),p=kv,p._s.has(r)||(d?Pv(r,a,l,p):Tw(r,l,p)),p._s.get(r)}return f.$id=r,f}/*!
* vue-router v4.2.4
* (c) 2023 Eduardo San Martin Morote
* @license MIT
*/const Fi=typeof window<"u";function Lw(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const mt=Object.assign;function yl(e,a){const i={};for(const r in a){const l=a[r];i[r]=$n(l)?l.map(e):e(l)}return i}const Vs=()=>{},$n=Array.isArray,_w=/\/$/,Vw=e=>e.replace(_w,"");function wl(e,a,i="/"){let r,l={},d="",f="";const p=a.indexOf("#");let y=a.indexOf("?");return p<y&&p>=0&&(y=-1),y>-1&&(r=a.slice(0,y),d=a.slice(y+1,p>-1?p:a.length),l=e(d)),p>-1&&(r=r||a.slice(0,p),f=a.slice(p,a.length)),r=Fw(r??a,i),{fullPath:r+(d&&"?")+d+f,path:r,query:l,hash:f}}function Rw(e,a){const i=a.query?e(a.query):"";return a.path+(i&&"?")+i+(a.hash||"")}function gh(e,a){return!a||!e.toLowerCase().startsWith(a.toLowerCase())?e:e.slice(a.length)||"/"}function Mw(e,a,i){const r=a.matched.length-1,l=i.matched.length-1;return r>-1&&r===l&&$i(a.matched[r],i.matched[l])&&Ev(a.params,i.params)&&e(a.query)===e(i.query)&&a.hash===i.hash}function $i(e,a){return(e.aliasOf||e)===(a.aliasOf||a)}function Ev(e,a){if(Object.keys(e).length!==Object.keys(a).length)return!1;for(const i in e)if(!Ow(e[i],a[i]))return!1;return!0}function Ow(e,a){return $n(e)?vh(e,a):$n(a)?vh(a,e):e===a}function vh(e,a){return $n(a)?e.length===a.length&&e.every((i,r)=>i===a[r]):e.length===1&&e[0]===a}function Fw(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 d=i.length-1,f,p;for(f=0;f<r.length;f++)if(p=r[f],p!==".")if(p==="..")d>1&&d--;else break;return i.slice(0,d).join("/")+"/"+r.slice(f-(f===r.length?1:0)).join("/")}var js;(function(e){e.pop="pop",e.push="push"})(js||(js={}));var Rs;(function(e){e.back="back",e.forward="forward",e.unknown=""})(Rs||(Rs={}));function Bw(e){if(!e)if(Fi){const a=document.querySelector("base");e=a&&a.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),Vw(e)}const Dw=/^[^#]+#/;function zw(e,a){return e.replace(Dw,"#")+a}function Nw(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 Mo=()=>({left:window.pageXOffset,top:window.pageYOffset});function Hw(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=Nw(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 mh(e,a){return(history.state?history.state.position-a:-1)+e}const oc=new Map;function Xw(e,a){oc.set(e,a)}function Yw(e){const a=oc.get(e);return oc.delete(e),a}let Ww=()=>location.protocol+"//"+location.host;function Tv(e,a){const{pathname:i,search:r,hash:l}=a,d=e.indexOf("#");if(d>-1){let p=l.includes(e.slice(d))?e.slice(d).length:1,y=l.slice(p);return y[0]!=="/"&&(y="/"+y),gh(y,"")}return gh(i,e)+r+l}function $w(e,a,i,r){let l=[],d=[],f=null;const p=({state:E})=>{const _=Tv(e,location),M=i.value,F=a.value;let $=0;if(E){if(i.value=_,a.value=E,f&&f===M){f=null;return}$=F?E.position-F.position:0}else r(_);l.forEach(B=>{B(i.value,M,{delta:$,type:js.pop,direction:$?$>0?Rs.forward:Rs.back:Rs.unknown})})};function y(){f=i.value}function k(E){l.push(E);const _=()=>{const M=l.indexOf(E);M>-1&&l.splice(M,1)};return d.push(_),_}function C(){const{history:E}=window;E.state&&E.replaceState(mt({},E.state,{scroll:Mo()}),"")}function A(){for(const E of d)E();d=[],window.removeEventListener("popstate",p),window.removeEventListener("beforeunload",C)}return window.addEventListener("popstate",p),window.addEventListener("beforeunload",C,{passive:!0}),{pauseListeners:y,listen:k,destroy:A}}function ph(e,a,i,r=!1,l=!1){return{back:e,current:a,forward:i,replaced:r,position:window.history.length,scroll:l?Mo():null}}function jw(e){const{history:a,location:i}=window,r={value:Tv(e,i)},l={value:a.state};l.value||d(r.value,{back:null,current:r.value,forward:null,position:a.length-1,replaced:!0,scroll:null},!0);function d(y,k,C){const A=e.indexOf("#"),E=A>-1?(i.host&&document.querySelector("base")?e:e.slice(A))+y:Ww()+e+y;try{a[C?"replaceState":"pushState"](k,"",E),l.value=k}catch(_){console.error(_),i[C?"replace":"assign"](E)}}function f(y,k){const C=mt({},a.state,ph(l.value.back,y,l.value.forward,!0),k,{position:l.value.position});d(y,C,!0),r.value=y}function p(y,k){const C=mt({},l.value,a.state,{forward:y,scroll:Mo()});d(C.current,C,!0);const A=mt({},ph(r.value,y,null),{position:C.position+1},k);d(y,A,!1),r.value=y}return{location:r,state:l,push:p,replace:f}}function Gw(e){e=Bw(e);const a=jw(e),i=$w(e,a.state,a.location,a.replace);function r(d,f=!0){f||i.pauseListeners(),history.go(d)}const l=mt({location:"",base:e,go:r,createHref:zw.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]&&RS[i])&&(i==="set-cookie"?a[i]?a[i].push(r):a[i]=[r]:a[i]=a[i]?a[i]+", "+r:r)}),a},Fh=Symbol("internals");function ps(e){return e&&String(e).trim().toLowerCase()}function Wr(e){return e===!1||e==null?e:Ae.isArray(e)?e.map(Wr):String(e)}function OS(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 FS=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Cl(e,a,i,r,l){if(Ae.isFunction(r))return r.call(this,a,i);if(l&&(a=i),!!Ae.isString(a)){if(Ae.isString(r))return a.indexOf(r)!==-1;if(Ae.isRegExp(r))return r.test(a)}}function BS(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(a,i,r)=>i.toUpperCase()+r)}function DS(e,a){const i=Ae.toCamelCase(" "+a);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+i,{value:function(l,d,f){return this[r].call(this,a,l,d,f)},configurable:!0})})}class zo{constructor(a){a&&this.set(a)}set(a,i,r){const l=this;function d(p,y,k){const C=ps(y);if(!C)throw new Error("header name must be a non-empty string");const A=Ae.findKey(l,C);(!A||l[A]===void 0||k===!0||k===void 0&&l[A]!==!1)&&(l[A||y]=Wr(p))}const f=(p,y)=>Ae.forEach(p,(k,C)=>d(k,C,y));return Ae.isPlainObject(a)||a instanceof this.constructor?f(a,i):Ae.isString(a)&&(a=a.trim())&&!FS(a)?f(MS(a),i):a!=null&&d(i,a,r),this}get(a,i){if(a=ps(a),a){const r=Ae.findKey(this,a);if(r){const l=this[r];if(!i)return l;if(i===!0)return OS(l);if(Ae.isFunction(i))return i.call(this,l,r);if(Ae.isRegExp(i))return i.exec(l);throw new TypeError("parser must be boolean|regexp|function")}}}has(a,i){if(a=ps(a),a){const r=Ae.findKey(this,a);return!!(r&&this[r]!==void 0&&(!i||Cl(this,this[r],r,i)))}return!1}delete(a,i){const r=this;let l=!1;function d(f){if(f=ps(f),f){const p=Ae.findKey(r,f);p&&(!i||Cl(r,r[p],p,i))&&(delete r[p],l=!0)}}return Ae.isArray(a)?a.forEach(d):d(a),l}clear(a){const i=Object.keys(this);let r=i.length,l=!1;for(;r--;){const d=i[r];(!a||Cl(this,this[d],d,a,!0))&&(delete this[d],l=!0)}return l}normalize(a){const i=this,r={};return Ae.forEach(this,(l,d)=>{const f=Ae.findKey(r,d);if(f){i[f]=Wr(l),delete i[d];return}const p=a?BS(d):String(d).trim();p!==d&&delete i[d],i[p]=Wr(l),r[p]=!0}),this}concat(...a){return this.constructor.concat(this,...a)}toJSON(a){const i=Object.create(null);return Ae.forEach(this,(r,l)=>{r!=null&&r!==!1&&(i[l]=a&&Ae.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[Fh]=this[Fh]={accessors:{}}).accessors,l=this.prototype;function d(f){const p=ps(f);r[p]||(DS(l,f),r[p]=!0)}return Ae.isArray(a)?a.forEach(d):d(a),this}}zo.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);Ae.reduceDescriptors(zo.prototype,({value:e},a)=>{let i=a[0].toUpperCase()+a.slice(1);return{get:()=>e,set(r){this[i]=r}}});Ae.freezeMethods(zo);const ha=zo;function Al(e,a){const i=this||Ou,r=a||i,l=ha.from(r.headers);let d=r.data;return Ae.forEach(e,function(p){d=p.call(i,d,l.normalize(),a?a.status:void 0)}),l.normalize(),d}function tm(e){return!!(e&&e.__CANCEL__)}function gr(e,a,i){ht.call(this,e??"canceled",ht.ERR_CANCELED,a,i),this.name="CanceledError"}Ae.inherits(gr,ht,{__CANCEL__:!0});function zS(e,a,i){const r=i.config.validateStatus;!i.status||!r||r(i.status)?e(i):a(new ht("Request failed with status code "+i.status,[ht.ERR_BAD_REQUEST,ht.ERR_BAD_RESPONSE][Math.floor(i.status/100)-4],i.config,i.request,i))}const NS=Zn.hasStandardBrowserEnv?{write(e,a,i,r,l,d){const f=[e+"="+encodeURIComponent(a)];Ae.isNumber(i)&&f.push("expires="+new Date(i).toGMTString()),Ae.isString(r)&&f.push("path="+r),Ae.isString(l)&&f.push("domain="+l),d===!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 HS(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function XS(e,a){return a?e.replace(/\/+$/,"")+"/"+a.replace(/^\/+/,""):e}function nm(e,a){return e&&!HS(a)?XS(e,a):a}const YS=Zn.hasStandardBrowserEnv?function(){const a=/(msie|trident)/i.test(navigator.userAgent),i=document.createElement("a");let r;function l(d){let f=d;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 p=Ae.isString(f)?l(f):f;return p.protocol===r.protocol&&p.host===r.host}}():function(){return function(){return!0}}();function WS(e){const a=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return a&&a[1]||""}function $S(e,a){e=e||10;const i=new Array(e),r=new Array(e);let l=0,d=0,f;return a=a!==void 0?a:1e3,function(y){const k=Date.now(),C=r[d];f||(f=k),i[l]=y,r[l]=k;let A=d,E=0;for(;A!==l;)E+=i[A++],A=A%e;if(l=(l+1)%e,l===d&&(d=(d+1)%e),k-f<a)return;const _=C&&k-C;return _?Math.round(E*1e3/_):void 0}}function Bh(e,a){let i=0;const r=$S(50,250);return l=>{const d=l.loaded,f=l.lengthComputable?l.total:void 0,p=d-i,y=r(p),k=d<=f;i=d;const C={loaded:d,total:f,progress:f?d/f:void 0,bytes:p,rate:y||void 0,estimated:y&&f&&k?(f-d)/y:void 0,event:l};C[a?"download":"upload"]=!0,e(C)}}const jS=typeof XMLHttpRequest<"u",GS=jS&&function(e){return new Promise(function(i,r){let l=e.data;const d=ha.from(e.headers).normalize();let{responseType:f,withXSRFToken:p}=e,y;function k(){e.cancelToken&&e.cancelToken.unsubscribe(y),e.signal&&e.signal.removeEventListener("abort",y)}let C;if(Ae.isFormData(l)){if(Zn.hasStandardBrowserEnv||Zn.hasStandardBrowserWebWorkerEnv)d.setContentType(!1);else if((C=d.getContentType())!==!1){const[F,...$]=C?C.split(";").map(B=>B.trim()).filter(Boolean):[];d.setContentType([F||"multipart/form-data",...$].join("; "))}}let A=new XMLHttpRequest;if(e.auth){const F=e.auth.username||"",$=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";d.set("Authorization","Basic "+btoa(F+":"+$))}const E=nm(e.baseURL,e.url);A.open(e.method.toUpperCase(),Zv(E,e.params,e.paramsSerializer),!0),A.timeout=e.timeout;function _(){if(!A)return;const F=ha.from("getAllResponseHeaders"in A&&A.getAllResponseHeaders()),B={data:!f||f==="text"||f==="json"?A.responseText:A.response,status:A.status,statusText:A.statusText,headers:F,config:e,request:A};zS(function(q){i(q),k()},function(q){r(q),k()},B),A=null}if("onloadend"in A?A.onloadend=_:A.onreadystatechange=function(){!A||A.readyState!==4||A.status===0&&!(A.responseURL&&A.responseURL.indexOf("file:")===0)||setTimeout(_)},A.onabort=function(){A&&(r(new ht("Request aborted",ht.ECONNABORTED,e,A)),A=null)},A.onerror=function(){r(new ht("Network Error",ht.ERR_NETWORK,e,A)),A=null},A.ontimeout=function(){let $=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const B=e.transitional||Jv;e.timeoutErrorMessage&&($=e.timeoutErrorMessage),r(new ht($,B.clarifyTimeoutError?ht.ETIMEDOUT:ht.ECONNABORTED,e,A)),A=null},Zn.hasStandardBrowserEnv&&(p&&Ae.isFunction(p)&&(p=p(e)),p||p!==!1&&YS(E))){const F=e.xsrfHeaderName&&e.xsrfCookieName&&NS Line truncated
`+d.map(Dh).join(`
`):" "+Dh(d[0]):"as no adapter specified";throw new ht("There is no suitable adapter to dispatch the request "+f,"ERR_NOT_SUPPORT")}return r},adapters:hc};function Pl(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new gr(null,e)}function zh(e){return Pl(e),e.headers=ha.from(e.headers),e.data=Al.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),am.getAdapter(e.adapter||Ou.adapter)(e).then(function(r){return Pl(e),r.data=Al.call(e,e.transformResponse,r),r.headers=ha.from(r.headers),r},function(r){return tm(r)||(Pl(e),r&&r.response&&(r.response.data=Al.call(e,e.transformResponse,r.response),r.response.headers=ha.from(r.response.headers))),Promise.reject(r)})}const Nh=e=>e instanceof ha?e.toJSON():e;function Gi(e,a){a=a||{};const i={};function r(k,C,A){return Ae.isPlainObject(k)&&Ae.isPlainObject(C)?Ae.merge.call({caseless:A},k,C):Ae.isPlainObject(C)?Ae.merge({},C):Ae.isArray(C)?C.slice():C}function l(k,C,A){if(Ae.isUndefined(C)){if(!Ae.isUndefined(k))return r(void 0,k,A)}else return r(k,C,A)}function d(k,C){if(!Ae.isUndefined(C))return r(void 0,C)}function f(k,C){if(Ae.isUndefined(C)){if(!Ae.isUndefined(k))return r(void 0,k)}else return r(void 0,C)}function p(k,C,A){if(A in a)return r(k,C);if(A in e)return r(void 0,k)}const y={url:d,method:d,data:d,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:p,headers:(k,C)=>l(Nh(k),Nh(C),!0)};return Ae.forEach(Object.keys(Object.assign({},e,a)),function(C){const A=y[C]||l,E=A(e[C],a[C],C);Ae.isUndefined(E)&&A!==p||(i[C]=E)}),i}const im="1.6.2",Fu={};["object","boolean","number","function","string","symbol"].forEach((e,a)=>{Fu[e]=function(r){return typeof r===e||"a"+(a<1?"n ":" ")+e}});const Hh={};Fu.transitional=function(a,i,r){function l(d,f){return"[Axios v"+im+"] Transitional option '"+d+"'"+f+(r?". "+r:"")}return(d,f,p)=>{if(a===!1)throw new ht(l(f," has been removed"+(i?" in "+i:"")),ht.ERR_DEPRECATED);return i&&!Hh[f]&&(Hh[f]=!0,console.warn(l(f," has been deprecated since v"+i+" and will be removed in the near future"))),a?a(d,f,p):!0}};function qS(e,a,i){if(typeof e!="object")throw new ht("options must be an object",ht.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let l=r.length;for(;l-- >0;){const d=r[l],f=a[d];if(f){const p=e[d],y=p===void 0||f(p,d,e);if(y!==!0)throw new ht("option "+d+" must be "+y,ht.ERR_BAD_OPTION_VALUE);continue}if(i!==!0)throw new ht("Unknown option "+d,ht.ERR_BAD_OPTION)}}const fc={assertOptions:qS,validators:Fu},Ta=fc.validators;class to{constructor(a){this.defaults=a,this.interceptors={request:new Oh,response:new Oh}}request(a,i){typeof a=="string"?(i=i||{},i.url=a):i=a||{},i=Gi(this.defaults,i);const{transitional:r,paramsSerializer:l,headers:d}=i;r!==void 0&&fc.assertOptions(r,{silentJSONParsing:Ta.transitional(Ta.boolean),forcedJSONParsing:Ta.transitional(Ta.boolean),clarifyTimeoutError:Ta.transitional(Ta.boolean)},!1),l!=null&&(Ae.isFunction(l)?i.paramsSerializer={serialize:l}:fc.assertOptions(l,{encode:Ta.function,serialize:Ta.function},!0)),i.method=(i.method||this.defaults.method||"get").toLowerCase();let f=d&&Ae.merge(d.common,d[i.method]);d&&Ae.forEach(["delete","get","head","post","put","patch","common"],M=>{delete d[M]}),i.headers=ha.concat(f,d);const p=[];let y=!0;this.interceptors.request.forEach(function(F){typeof F.runWhen=="function"&&F.runWhen(i)===!1||(y=y&&F.synchronous,p.unshift(F.fulfilled,F.rejected))});const k=[];this.interceptors.response.forEach(function(F){k.push(F.fulfilled,F.rejected)});let C,A=0,E;if(!y){const M=[zh.bind(this),void 0];for(M.unshift.apply(M,p),M.push.apply(M,k),E=M.length,C=Promise.resolve(i);A<E;)C=C.then(M[A++],M[A++]);return C}E=p.length;let _=i;for(A=0;A<E;){const M=p[A++],F=p[A++];try{_=M(_)}catch($){F.call(this,$);break}}try{C=zh.call(this,_)}catch(M){return Promise.reject(M)}for(A=0,E=k.length;A<E;)C=C.then(k[A++],k[A++]);return C}getUri(a){a=Gi(this.defaults,a);const i=nm(a.baseURL,a.url);return Zv(i,a.params,a.paramsSerializer)}}Ae.forEach(["delete","get","head","options"],function(a){to.prototype[a]=function(i,r){return this.request(Gi(r||{},{method:a,url:i,data:(r||{}).data}))}});Ae.forEach(["post","put","patch"],function(a){function i(r){return function(d,f,p){return this.request(Gi(p||{},{method:a,headers:r?{"Content-Type":"multipart/form-data"}:{},url:d,data:f}))}}to.prototype[a]=i(),to.prototype[a+"Form"]=i(!0)});const $r=to;class Bu{constructor(a){if(typeof a!="function")throw new TypeError("executor must be a function.");let i;this.promise=new Promise(function(d){i=d});const r=this;this.promise.then(l=>{if(!r._list Line truncated
Expected #hex, #hexa, rgb(), rgba(), hsl(), hsla(), object or number`)}function ga(e){const{h:a,s:i,v:r,a:l}=e,d=p=>{const y=(p+a/60)%6;return r-r*i*Math.max(Math.min(y,4-y,1),0)},f=[d(5),d(3),d(1)].map(p=>Math.round(p*255));return{r:f[0],g:f[1],b:f[2],a:l}}function lf(e){return ga(Wu(e))}function No(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),d=Math.min(a,i,r);let f=0;l!==d&&(l===a?f=60*(0+(i-r)/(l-d)):l===i?f=60*(2+(r-a)/(l-d)):l===r&&(f=60*(4+(a-i)/(l-d)))),f<0&&(f=f+360);const p=l===0?0:(l-d)/l,y=[f,p,l];return{h:y[0],s:y[1],v:y[2],a:e.a}}function bm(e){const{h:a,s:i,v:r,a:l}=e,d=r-r*i/2,f=d===1||d===0?0:(r-d)/Math.min(d,1-d);return{h:a,s:f,l:d,a:l}}function Wu(e){const{h:a,s:i,l:r,a:l}=e,d=r+i*Math.min(r,1-r),f=d===0?0:2-2*r/d;return{h:a,s:f,v:d,a:l}}function xm(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 ym(e){return xm(ga(e))}function Dr(e){const a=Math.round(e).toString(16);return("00".substr(0,2-a.length)+a).toUpperCase()}function wm(e){let{r:a,g:i,b:r,a:l}=e;return`#${[Dr(a),Dr(i),Dr(r),l!==void 0?Dr(Math.round(l*255)):""].join("")}`}function Sm(e){e=Lk(e);let[a,i,r,l]=lk(e,2).map(d=>parseInt(d,16));return l=l===void 0?l:l/255,{r:a,g:i,b:r,a:l}}function Ik(e){const a=Sm(e);return No(a)}function km(e){return wm(ga(e))}function Lk(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=$h($h(e,6),8,"F")),e}function _k(e,a){const i=vm(Yu(e));return i[0]=i[0]+a*10,pm(mm(i))}function Vk(e,a){const i=vm(Yu(e));return i[0]=i[0]-a*10,pm(mm(i))}function wc(e){const a=Hn(e);return Yu(a)[1]}function Rk(e,a){const i=wc(e),r=wc(a),l=Math.max(i,r),d=Math.min(i,r);return(l+.05)/(d+.05)}function Cm(e){const a=Math.abs(sf(Hn(0),Hn(e)));return Math.abs(sf(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 Vn(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 gi(r,a,["class","style"])},e.props._as=String,e.setup=function(r,l){const d=Gu();if(!d.value)return e._setup(r,l);const{props:f,provideSubDefaults:p}=Hk(r,r._as??e.name,d),y=e._setup(f,l);return p(),y}}return e}function Te(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return a=>(e?Vn:xi)(a)}function Gn(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??pa(Sn(e.replace(/__/g,"-"))),props:{tag:{type:String,default:a},...We()},setup(r,l){let{slots:d}=l;return()=>{var f;return jn(r.tag,{class:[e,r.class],style:r.style},(f=d.default)==null?void 0:f.call(d))}}})}function Am(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)",Mk="cubic-bezier(0.0, 0, 0.2, 1)",Ok="cubic-bezier(0.4, 0, 1, 1)";function Wt(e,a){const i=ta();if(!i)throw new Error(`[Vuetify] ${e} ${a||"must be called from inside a setup function"}`);return i}function xa(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"composables";const a=Wt(e).type;return ci((a==null?void 0:a.aliasName)||(a==null?void 0:a.name))}let Pm=0,Gr=new WeakMap;function sn(){const e=Wt("getUid");if(Gr.has(e))return Gr.get(e);{const a=Pm++;return Gr.set(e,a),a}}sn.reset=()=>{Pm=0,Gr=new WeakMap};function $u(e){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;for(;e;){if(a?Fk(e):ju(e))return e;e=e.parentElement}return document.scrollingElement}function ro(e,a){const i=[];if(a&&e&&!a.contains(e))return i;for(;e&&(ju(e)&&i.push(e),e!==a);)e=e.parentElement;return i}function ju(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 Fk(e){if(!e||e.nodeType!==Node.ELEMENT_NODE)return!1;const a=window.getComputedStyle(e);return["scroll","auto"].includes(a.overflowY)}function Bk(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 Dk(e){for(;e;){if(window.getComputedStyle(e).position==="fixed")return!0;e=e.offsetParent}return!1}function Me(e){const a=Wt("useRender");a.render=e}const qi=Symbol.for("vuetify:defaults");function zk(e){return Re(e)}function Gu(){const e=ct(qi);if(!e)throw new Error("[Vuetify] Could not find defaults instance");return e}function Bt(e,a){const i=Gu(),r=Re(e),l=X( Line truncated
`,...i.map(r=>` ${r};
`),`}
`)}function vf(e){const a=e.dark?2:1,i=e.dark?1:2,r=[];for(const[l,d]of Object.entries(e.colors)){const f=Hn(d);r.push(`--v-theme-${l}: ${f.r},${f.g},${f.b}`),l.startsWith("on-")||r.push(`--v-theme-${l}-overlay-multiplier: ${wc(d)>.18?a:i}`)}for(const[l,d]of Object.entries(e.variables)){const f=typeof d=="string"&&d.startsWith("#")?Hn(d):void 0,p=f?`${f.r}, ${f.g}, ${f.b}`:void 0;r.push(`--v-${l}: ${p??d}`)}return r}const Ac={"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 rC(e,a){const i=[];let r=[];const l=_m(e),d=Vm(e),f=l.getDay()-Ac[a.slice(-2).toUpperCase()],p=d.getDay()-Ac[a.slice(-2).toUpperCase()];for(let y=0;y<f;y++){const k=new Date(l);k.setDate(k.getDate()-(f-y)),r.push(k)}for(let y=1;y<=d.getDate();y++){const k=new Date(e.getFullYear(),e.getMonth(),y);r.push(k),r.length===7&&(i.push(r),r=[])}for(let y=1;y<7-p;y++){const k=new Date(d);k.setDate(k.getDate()+y),r.push(k)}return i.push(r),i}function _m(e){return new Date(e.getFullYear(),e.getMonth(),1)}function Vm(e){return new Date(e.getFullYear(),e.getMonth()+1,0)}function oC(e){const a=e.split("-").map(Number);return new Date(a[0],a[1]-1,a[2])}const lC=/([12]\d{3}-([1-9]|0[1-9]|1[0-2])-([1-9]|0[1-9]|[12]\d|3[01]))/;function cC(e){if(e==null)return new Date;if(e instanceof Date)return e;if(typeof e=="string"){let a;if(lC.test(e))return oC(e);if(a=Date.parse(e),!isNaN(a))return new Date(a)}return null}const mf=new Date(2e3,0,2);function uC(e){const a=Ac[e.slice(-2).toUpperCase()];return la(7).map(i=>{const r=new Date(mf);return r.setDate(mf.getDate()+a+i),new Intl.DateTimeFormat(e,{weekday:"narrow"}).format(r)})}function dC(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 hC(e,a){const i=new Date(e);return i.setDate(i.getDate()+a),i}function fC(e,a){const i=new Date(e);return i.setMonth(i.getMonth()+a),i}function gC(e){return e.getFullYear()}function vC(e){return e.getMonth()}function mC(e){return new Date(e.getFullYear(),0,1)}function pC(e){return new Date(e.getFullYear(),11,31)}function bC(e,a){return Pc(e,a[0])&&yC(e,a[1])}function xC(e){const a=new Date(e);return a instanceof Date&&!isNaN(a.getTime())}function Pc(e,a){return e.getTime()>a.getTime()}function yC(e,a){return e.getTime()<a.getTime()}function pf(e,a){return e.getTime()===a.getTime()}function wC(e,a){return e.getDate()===a.getDate()&&e.getMonth()===a.getMonth()&&e.getFullYear()===a.getFullYear()}function SC(e,a){return e.getMonth()===a.getMonth()&&e.getFullYear()===a.getFullYear()}function kC(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 CC(e,a){const i=new Date(e);return i.setFullYear(a),i}class AC{constructor(a){this.locale=a.locale}date(a){return cC(a)}toJsDate(a){return a}addDays(a,i){return hC(a,i)}addMonths(a,i){return fC(a,i)}getWeekArray(a){return rC(a,this.locale)}startOfMonth(a){return _m(a)}endOfMonth(a){return Vm(a)}format(a,i){return dC(a,i,this.locale)}isEqual(a,i){return pf(a,i)}isValid(a){return xC(a)}isWithinRange(a,i){return bC(a,i)}isAfter(a,i){return Pc(a,i)}isBefore(a,i){return!Pc(a,i)&&!pf(a,i)}isSameDay(a,i){return wC(a,i)}isSameMonth(a,i){return SC(a,i)}setYear(a,i){return CC(a,i)}getDiff(a,i,r){return kC(a,i,r)}getWeekdays(){return uC(this.locale)}getYear(a){return gC(a)}getMonth(a){return vC(a)}startOfYear(a){return mC(a)}endOfYear(a){return pC(a)}}const bf=Symbol.for("vuetify:date-adapter");function PC(e){return En({adapter:AC,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 Df;function oL(){return Df||(Df=1,function(e,a){function i(D,t){var n=Object.keys(D);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(D);t&&(s=s.filter(function(o){return Object.getOwnPropertyDescriptor(D,o).enumerable})),n.push.apply(n,s)}return n}function r(D){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?i(Object(n),!0).forEach(function(s){y(D,s,n[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(D,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach(function(s){Object.defineProperty(D,s,Object.getOwnPropertyDescriptor(n,s))})}return D}function l(D){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(D)}function d(D,t){if(!(D instanceof t))throw new TypeError("Cannot call a class as a function")}function f(D,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(D,s.key,s)}}function p(D,t,n){return t&&f(D.prototype,t),n&&f(D,n),D}function y(D,t,n){return t in D?Object.defineProperty(D,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):D[t]=n,D}function k(D,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");D.prototype=Object.create(t&&t.prototype,{constructor:{value:D,writable:!0,configurable:!0}}),t&&A(D,t)}function C(D){return C=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},C(D)}function A(D,t){return A=Object.setPrototypeOf||function(n,s){return n.__proto__=s,n},A(D,t)}function E(D,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}(D)}function _(D){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(D);if(t){var o=C(this).constructor;n=Reflect.construct(s,arguments,o)}else n=s.apply(this,arguments);return E(this,n)}}function M(D,t){return function(n){if(Array.isArray(n))return n}(D)||function(n,s){var o=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(o!=null){var c,u,h=[],g=!0,m=!1;try{for(o=o.call(n);!(g=(c=o.next()).done)&&(h.push(c.value),!s||h.length!==s);g=!0);}catch(b){m=!0,u=b}finally{try{g||o.return==null||o.return()}finally{if(m)throw u}}return h}}(D,t)||$(D,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 F(D){return function(t){if(Array.isArray(t))return B(t)}(D)||function(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}(D)||$(D)||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 $(D,t){if(D){if(typeof D=="string")return B(D,t);var n=Object.prototype.toString.call(D).slice(8,-1);return n==="Object"&&D.constructor&&(n=D.constructor.name),n==="Map"||n==="Set"?Array.from(D):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?B(D,t):void 0}}function B(D,t){(t==null||t>D.length)&&(t=D.length);for(var n=0,s=new Array(t);n<t;n++)s[n]=D[n];return s}var L=function(){function D(){d(this,D)}return p(D,[{key:"shadeRGBColor",value:function(t,n){var s=n.split(","),o=t<0?0:255,c=t<0?-1*t:t,u=parseInt(s[0].slice(4),10),h=parseInt(s[1],10),g=parseInt(s[2],10);return"rgb("+(Math.round((o-u)*c)+u)+","+(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,u=s>>16,h=s>>8&255,g=255&s;return"#"+(16777216+65536*(Math.round((o-u)*c)+u)+256*(Math.round((o-h)*c)+h)+(Math.round((o-g)*c)+g)).toString(16).slice(1)}},{key:"shadeColor",value:function(t,n){return D.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 u=Object(c),h=1;h<arguments.length;h++){var g=arguments[h];if(g!=null)for(var m in g)g.hasOwnProperty(m)&&(u[m]=g[m])}return u});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,y({},c,n[c]))}),o}},{key:"extendArray",value:function(t,n){var s=[];return t.map(function(o){s.push(D.extend(n,o))}),t=s}},{key:"monthMod",value:function(t){return t%12}},{key:"clone",value:function(t){if(D.is("Array",t)){for(var n=[],s=0;s<t.length;s++)n[s]=this.clone(t[s]);return n}if(D.is("Null",t))return null;if(D.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(".",""),u=Number(n[1])+1;if(u<0){for(s=o+"0.";u++;)s+="0";return s+c.replace(/^-/,"")}for(u-=c.length;u--;)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 u={};u.x=t*Math.sin(c*o),u.y=-t*Math.cos(c*o),s.push(u)}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> "+(D.w.globals.comboCharts?D.w.config.series[u].type==="rangeArea"||D.w.config.series[u].type==="rangeBar"?b:"<span>".concat(m,"</span>"):b)+" </div></div>"},he=function(){function D(t){d(this,D),this.opts=t}return p(D,[{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,u=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"?u():t:u()},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=ye(r(r({},n),{},{isTimeline:!0})),o=s.color,c=s.seriesName,u=s.ylabel,h=s.startVal,g=s.endVal;return fe(r(r({},n),{},{color:o,seriesName:c,ylabel:u,start:h,end:g}))}(t):function(n){var s=ye(n),o=s.color,c=s.seriesName,u=s.ylabel,h=s.start,g=s.end;return fe(r(r({},n),{},{color:o,seriesName:c,ylabel:u,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=ye(n),o=s.color,c=s.seriesName,u=s.ylabel,h=s.start,g=s.end;return fe(r(r({},n),{},{color:o,seriesName:c,ylabel:u,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">')+u+"</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">')+m+"</span></div>"+"<div>".concat(o[4],': <span class="value">')+b+"</span></div></div>"}}]),D}(),Se=function(){function D(t){d(this,D),this.opts=t}return p(D,[{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 u=o.init(),h={};if(s&&l(s)==="object"){var g,m,b,x,w,P,T,V,O={};O=["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&&(m=g.bar)!==null&&m!==void 0&&m.isFunnel&&(O=c.funnel()),s.chart.stacked&&s.chart.type==="bar"&&(O=c.stackedBars()),(b=s.chart.brush)!==null&&b!==void 0&&b.enabled&&(O=c.brush(O)),s.chart.stacked&&s.chart.stackType==="100%"&&(s=c.stacked100(s)),(x=s.plotOptions)!==null&&x!==void 0&&(w=x.bar)!==null&&w!==void 0&&w.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,O,s)).chart.sparkline)!==null&&P!==void 0&&P.enabled||(T=window.Apex.chart)!==null&&T!==void 0&&(V=T.sparkline)!==null&&V!==void 0&&V.enabled)&&(O=c.sparkline(O)),h=L.extend(u,O)}var N=L.extend(h,window.Apex);return u=L.extend(N,s),u=this.handleUserInputErrors(u)}},{key:"checkForCatToNumericXAxis",value:function(t,n,s){var o,c,u=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",m=s.xaxis.type!=="datetime"&&s.xaxis.type!=="numeric",b=s.xaxis.tickPlacement?s.xaxis.tickPlacement:n.xaxis&&n.xaxis.tickPlacement;return h||g||!m||b==="between"||(s=u.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(u){u.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(u,h){if(u.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,m=this.w;s||(s=m.config.series);var b=[],x=[],w="",P=m.globals.series.map(function(v,S){return m.globals.collapsedSeriesIndices.indexOf(S)===-1?v:[]}),T=Math.max.apply(Math,F(s.map(function(v){return v.data?v.data.length:0}))),V=new de(this.ctx),O=new Le(this.ctx),N=function(v){var S="";if(m.globals.axisCharts){if(m.config.xaxis.type==="category"||m.config.xaxis.convertedCatToNumeric)if(m.globals.isBarHorizontal){var I=m.globals.yLabelFormatters[0],z=new ue(n.ctx).getActiveConfigSeriesIndex();S=I(m.globals.labels[v],{seriesIndex:z,dataPointIndex:v,w:m})}else S=O.getLabel(m.globals.labels,m.globals.timescaleLabels,0,v).text;m.config.xaxis.type==="datetime"&&(m.config.xaxis.categories.length?S=m.config.xaxis.categories[v]:m.config.labels.length&&(S=m.config.labels[v]))}else S=m.config.labels[v];return Array.isArray(S)&&(S=S.join(" ")),L.isNumber(S)?S:S.split(u).join("")},G=function(v,S){if(b.length&&S===0&&x.push(b.join(u)),v.data){v.data=v.data.length&&v.data||F(Array(T)).map(function(){return""});for(var I=0;I<v.data.length;I++){b=[];var z=N(I);if(z||(V.isFormatXY()?z=s[S].data[I].x:V.isFormat2DArray()&&(z=s[S].data[I]?s[S].data[I][0]:"")),S===0){b.push((ae=z,m.config.xaxis.type==="datetime"&&String(ae).length>=10?m.config.chart.toolbar.export.csv.dateFormatter(z):L.isNumber(z)?z:z.split(u).join("")));for(var U=0;U<m.globals.series.length;U++){var K;V.isFormatXY()?b.push((K=s[U].data[I])===null||K===void 0?void 0:K.y):b.push(P[U][I])}}(m.config.chart.type==="candlestick"||v.type&&v.type==="candlestick")&&(b.pop(),b.push(m.globals.seriesCandleO[S][I]),b.push(m.globals.seriesCandleH[S][I]),b.push(m.globals.seriesCandleL[S][I]),b.push(m.globals.seriesCandleC[S][I])),(m.config.chart.type==="boxPlot"||v.type&&v.type==="boxPlot")&&(b.pop(),b.push(m.globals.seriesCandleO[S][I]),b.push(m.globals.seriesCandleH[S][I]),b.push(m.globals.seriesCandleM[S][I]),b.push(m.globals.seriesCandleL[S][I]),b.push(m.globals.seriesCandleC[S][I])),m.config.chart.type==="rangeBar"&&(b.pop(),b.push(m.globals.seriesRangeStart[S][I]),b.push(m.globals.seriesRangeEnd[S][I])),b.length&&x.push(b.join(u))}}var ae};b.push(m.config.chart.toolbar.export.csv.headerCategory),m.config.chart.type==="boxPlot"?(b.push("minimum"),b.push("q1"),b.push("median"),b.push("q3"),b.push("maximum")):m.config.chart.type==="candlestick"?(b.push("open"),b.push("high"),b.push("low"),b.push("close")):m.config.chart.type==="rangeBar"?(b.push("minimum"),b.push("maximum")):s.map(function(v,S){var I=(v.name?v.name:"series-".concat(S))+"";m.globals.axisCharts&&b.push(I.split(u).join("")?I.split(u).join(""):"series-".concat(S))}),m.globals.axisCharts||(b.push(m.config.chart.toolbar.export.csv.headerValue),x.push(b.join(u))),s.map(function(v,S){m.globals.axisCharts?G(v,S):((b=[]).push(m.globals.labels[S].split(u).join("")),b.push(P[S]),x.push(b.join(u)))}),w+=x.join(g),this.triggerDownload("data:text/csv; charset=utf-8,"+encodeURIComponent("\uFEFF"+w),o||m.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)}}]),D}(),be=function(){function D(t,n){d(this,D),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 p(D,[{key:"drawXaxis",value:function(){var t=this.w,n=new H(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=[],u=0;u<this.xaxisLabels.length;u++)c.push(this.xaxisLabels[u]);if(this.drawXAxisLabelAndGroup(!0,n,o,c,t.globals.isXNumeric,function(T,V){return V}),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,u=null;o.globals.risingSeries=[],o.globals.axisCharts?(c=o.globals.dom.baseEl.querySelector(".apexcharts-series[data\\:realIndex='".concat(t,"']")),u=parseInt(c.getAttribute("data:realIndex"),10)):(c=o.globals.dom.baseEl.querySelector(".apexcharts-series[rel='".concat(t+1,"']")),u=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,u)}):this.hideSeries({seriesEl:c,realIndex:u})}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 m=o.config.plotOptions.pie.donut.labels;new H(this.lgCtx.ctx).pathMouseDown(h.members[0],null),this.lgCtx.ctx.pie.printDataLabelsInner(h.members[0].node,m)}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 u=!1;if(o.config.yaxis[s]&&o.config.yaxis[s].show&&o.config.yaxis[s].showAlways&&(u=!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))),!u){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,m=0;m<g.length;m++)g[m].classList.contains("apexcharts-series-markers-wrap")&&(g[m].classList.contains("apexcharts-hide")?g[m].classList.remove("apexcharts-hide"):g[m].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 u=0;u<t.length;u++)t[u].index===s&&(o.globals.axisCharts?(c[s].data=t[u].data.slice(),t.splice(u,1),n.splice(u,1),o.globals.risingSeries.push(s)):(c[s]=t[u].data,t.splice(u,1),n.splice(u,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}}]),D}(),ft=function(){function D(t){d(this,D),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 p(D,[{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 u=n.config.plotOptions.heatmap.colorScale.ranges;o=u.map(function(xe){return xe.name?xe.name:xe.from+" - "+xe.to}),c=u.map(function(xe){return xe.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,m=g?o.length-1:0;g?m>=0:m<=o.length-1;g?m--:m++){var b,x=h(o[m],{seriesIndex:m,w:n}),w=!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(x){t.t[x]&&n.config.chart[x].enabled&&u.push({el:x==="zoom"?t.elZoom:t.elSelection,icon:typeof t.t[x]=="string"?t.t[x]:x==="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[x==="zoom"?"selectionZoom":"selection"],class:n.globals.isTouchDevice?"apexcharts-element-hidden":"apexcharts-".concat(x,"-icon")})};g("zoom"),g("selection"),this.t.pan&&n.config.chart.zoom.enabled&&u.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&&u.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 m=0;m<this.elCustomIcons.length;m++)u.push({el:this.elCustomIcons[m],icon:this.t.customIcons[m].icon,title:this.t.customIcons[m].title,index:this.t.customIcons[m].index,class:"apexcharts-toolbar-custom-icon "+this.t.customIcons[m].class});u.forEach(function(x,w){x.index&&L.moveIndexInArray(u,w,x.index)});for(var b=0;b<u.length;b++)H.setAttrs(u[b].el,{class:u[b].class,title:u[b].title}),u[b].el.innerHTML=u[b].icon,o.appendChild(u[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),H.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,H.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,m=h?parseFloat(h.getAttribute("cy")):0,b=h?parseFloat(h.getAttribute("barWidth")):0,x=o.getElGrid().getBoundingClientRect(),w=h&&(h.classList.contains("apexcharts-candlestick-area")||h.classList.contains("apexcharts-boxPlot-area"));s.globals.isXNumeric?(h&&!w&&(g-=c%2!=0?b/2:0),h&&w&&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?m-=o.tooltipRect.ttHeight:s.config.tooltip.followCursor?m=o.e.clientY-x.top-o.tooltipRect.ttHeight/2:m+o.tooltipRect.ttHeight+15>s.globals.gridHeight&&(m=s.globals.gridHeight),s.globals.isBarHorizontal||this.moveXCrosshairs(g),o.fixedTooltip||this.moveTooltip(g,m||s.globals.gridHeight)}}]),D}(),Sr=function(){function D(t){d(this,D),this.w=t.w,this.ttCtx=t,this.ctx=t.ctx,this.tooltipPosition=new ka(t)}return p(D,[{key:"drawDynamicPoints",value:function(){var t=this.w,n=new H(this.ctx),s=new Ze(this.ctx),o=t.globals.dom.baseEl.querySelectorAll(".apexcharts-series");o=F(o),t.config.chart.stacked&&o.sort(function(x,w){return parseFloat(x.getAttribute("data:realIndex"))-parseFloat(w.getAttribute("data:realIndex"))});for(var c=0;c<o.length;c++){var u=o[c].querySelector(".apexcharts-series-markers-wrap");if(u!==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 m=s.getMarkerConfig({cssClass:g,seriesIndex:Number(u.getAttribute("data:realIndex"))});(h=n.drawMarker(0,0,m)).node.setAttribute("default-marker-size",0);var b=document.createElementNS(t.globals.SVGNS,"g");b.classList.add("apexcharts-series-markers"),b.appendChild(h.node),u.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 u=n.getAttribute("cx"),h=n.getAttribute("cy");if(s!==null&&o!==null&&(u=s,h=o),this.tooltipPosition.moveXCrosshairs(u),!this.fixedTooltip){if(c.config.chart.type==="radar"){var g=this.ttCtx.getElGrid().getBoundingClientRect();u=this.ttCtx.e.clientX-g.left}this.tooltipPosition.moveTooltip(u,h,c.config.markers.hover.size)}}},{key:"enlargePoints",value:function(t){for(var n=this.w,s=this,o=this.ttCtx,c=t,u=n.globals.dom.baseEl.querySelectorAll(".apexcharts-series:not(.apexcharts-series-collapsed) .apexcharts-marker"),h=n.config.markers.hover.size,g=0;g<u.length;g++){var m=u[g].getAttribute("rel"),b=u[g].getAttribute("index");if(h===void 0&&(h=n.globals.markers.size[b]+n.config.markers.hover.sizeOffset),c===parseInt(m,10)){s.newPointSize(c,u[g]);var x=u[g].getAttribute("cx"),w=u[g].getAttribute("cy");s.tooltipPosition.moveXCrosshairs(x),o.fixedTooltip||s.tooltipPosition.moveTooltip(x,w,h)}else s.oldPointSize(u[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 u=parseInt(c.getAttribute("index"),10);o===void 0&&(o=s.globals.markers.size[u]+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)}}}]),D}(),on=function(){function D(t){d(this,D),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 p(D,[{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,u=t.type,h=this.ttCtx,g=this.w;if(n.target.classList.contains("apexcharts-".concat(u,"-rect"))){var m=this.getAttr(n,"i"),b=this.getAttr(n,"j"),x=this.getAttr(n,"cx"),w=this.getAttr(n,"cy"),P=this.getAttr(n,"width"),T=this.getAttr(n,"height");if(h.tooltipLabels.drawSeriesTexts({ttItems:s.ttItems,i:m,j:b,shared:!1,e:n}),g.globals.capturedSeriesIndex=m,g.globals.capturedDataPointIndex=b,o=x+h.tooltipRect.ttWidth/2+P,c=w+h.tooltipRect.ttHeight/2-T/2,h.tooltipPosition.moveXCrosshairs(x+P/2),o>g.globals.gridWidth/2&&(o=x-h.tooltipRect.ttWidth/2+P),h.w.config.tooltip.followCursor){var V=g.globals.dom.elWrap.getBoundingClientRect();o=g.globals.clientX-V.left-(Line truncated
`),v+=S[I].textContent;return v}if(this.clear().build(!0),typeof v=="function")v.call(this,this);else{I=0;for(var U=(v=v.split(`
`)).length;I<U;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,S=n.utils.map(n.utils.filterSVGElements(v.childNodes),function(I){return n.adopt(I)});return new n.Set(S)},rebuild:function(v){if(typeof v=="boolean"&&(this._rebuild=v),this._rebuild){var S=this,I=0,z=this.dom.leading*new n.Number(this.attr("font-size"));this.lines().each(function(){this.dom.newLined&&(S.textPath()||this.attr("x",S.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 S=(this.textPath&&this.textPath()||this).node,I=new n.Tspan;return this._build===!1&&this.clear(),S.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 S=this.track(),I=null;return S&&(I=S.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,S){return S=="color"?v:v+"-"+S}};function g(v,S,I,z){return I+z.replace(n.regex.dots," .")}function m(v){return v.toLowerCase().replace(/-(.)/g,function(S,I){return I.toUpperCase()})}function b(v){return v.charAt(0).toUpperCase()+v.slice(1)}function x(v){var S=v.toString(16);return S.length==1?"0"+S:S}function w(v,S,I){if(S==null||I==null){var z=v.bbox();S==null?S=z.width/z.height*I:I==null&&(I=z.height/z.width*S)}return{width:S,height:I}}function P(v,S,I){return{x:S*v.a+I*v.c+0,y:S*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 V(v){for(var S=v.childNodes.length-1;S>=0;S--)v.childNodes[S]instanceof D.SVGElement&&V(v.childNodes[S]);return n.adopt(v).id(n.eid(v.nodeName))}function O(v){return Math.abs(v)>1e-37?v:0}["fill","stroke"].forEach(function(v){var S={};S[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,S)}),n.extend(n.Element,n.FX,{translate:function(v,S){return this.transform({x:v,y:S})},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),S=0,I=v.length;S<I;S++)this.members.push(v[S]);return this},remove:function(v){var S=this.index(v);return S>-1&&this.members.splice(S,1),this},each:function(v){for(var S=0,I=this.members.length;S<I;S++)v.apply(this.members[S],[S,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 S in n.Shape.prototype)typeof n.Shape.prototype[S]=="function"&&typeof n.Set.prototype[S]!="function"&&v.push(S);for(var S in v.forEach(function(z){n.Set.prototype[z]=function(){for(var U=0,K=this.members.length;U<K;U++)this.members[U]&&typeof this.members[U][z]=="function"&&this.members[U][z].apply(this.members[U],arguments);return z=="animate"?this.fx||(this.fx=new n.FX.Set(this)):this}}),v=[],n.FX.prototype)typeof n.FX.prototype[S]=="function"&&typeof n.FX.Set.prototype[S]!="function"&&v.push(S);v.forEach(function(I){n.FX.Set.prototype[I]=function(){for(var z=0,U=this.set.members.length;z<U;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,S){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]=S}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
}`,u?c.prepend(t.css):h.head.appendChild(t.css))}var m=t.create(t.w.config.series,{});if(!m)return n(t);t.mount(m).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(m)}).catch(function(b){s(b)})}else s(new Error("Element not found"))})}},{key:"create",value:function(t,n){var s=this.w;new Cd(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 u=t.every(function(b){return b.data&&b.data.length===0});(t.length===0||u)&&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),m=new ze(this);return m.bringForward(),s.config.dataLabels.background.enabled&&m.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,u){if(s.el===null)return u(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,m=s.grid.drawGrid();if(s.annotations=new oe(s),s.annotations.drawImageAnnos(),s.annotations.drawTextAnnos(),o.config.grid.position==="back"&&(m&&o.globals.dom.elGraphical.add(m.el),m!=null&&(h=m.elGridBorders)!==null&&h!==void 0&&h.node&&o.globals.dom.elGraphical.add(m.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"&&(m&&o.globals.dom.elGraphical.add(m.el),m!=null&&(g=m.elGridBorders)!==null&&g!==void 0&&g.node&&o.globals.dom.elGraphical.add(m.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,m);var x=new be(t.ctx,m),w=new se(t.ctx,m);if(m!==null&&(x.xAxisLabelCorrections(m.xAxisTickWidth),w.setYAxisTextAlignments(),o.config.yaxis.map(function(T,V){o.globals.ignoreYAxisIndexes.indexOf(V)===-1&&w.yAxisTitleRotate(V,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=ol.get(t))&&(n.disconnect(),ol.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 Ad(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],u=!(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
@@ -1,5 +1,5 @@
@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
@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
*/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{aj as L,q as $,B as J,o as q,l as X,d as G,w as Z,a0 as O,a1 as R,x as S,u as m,ak as Q,al as t0,am as r0,an as e0}from"./index-a2f0b905.js";const E={Sidebar_drawer:!0,Customizer_drawer:!1,mini_sidebar:!1,fontTheme:"Roboto",inputBg:!1},i0=L({id:"customizer",state:()=>({Sidebar_drawer:E.Sidebar_drawer,Customizer_drawer:E.Customizer_drawer,mini_sidebar:E.mini_sidebar,fontTheme:"Poppins",inputBg:E.inputBg}),getters:{},actions:{SET_SIDEBAR_DRAWER(){this.Sidebar_drawer=!this.Sidebar_drawer},SET_MINI_SIDEBAR(p){this.mini_sidebar=p},SET_FONT(p){this.fontTheme=p}}}),s0={class:"logo",style:{display:"flex","align-items":"center"}},a0={style:{"font-size":"24px","font-weight":"1000"}},f0={style:{"font-size":"20px","font-weight":"1000"}},o0={style:{"font-size":"20px"}},l0=$({__name:"LogoDark",setup(p){J("rgb(var(--v-theme-primary))"),J("rgb(var(--v-theme-secondary))");const d=i0();return(M,y)=>(q(),X("div",s0,[G(S(Q),{to:"/",style:{"text-decoration":"none",color:"black"}},{default:Z(()=>[O(m("span",a0,"AstrBot 仪表盘",512),[[R,!S(d).mini_sidebar]]),O(m("span",f0,"Astr",512),[[R,S(d).mini_sidebar]]),O(m("span",o0,"Bot",512),[[R,S(d).mini_sidebar]])]),_:1})]))}});var P={exports:{}};const n0={},h0=Object.freeze(Object.defineProperty({__proto__:null,default:n0},Symbol.toStringTag,{value:"Module"})),H=t0(h0);/**
* [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(p){(function(){var d="input is invalid type",M="finalize already called",y=typeof window=="object",c=y?window:{};c.JS_MD5_NO_WINDOW&&(y=!1);var W=!y&&typeof self=="object",z=!c.JS_MD5_NO_NODE_JS&&typeof process=="object"&&process.versions&&process.versions.node;z?c=r0:W&&(c=self);var g=!c.JS_MD5_NO_COMMON_JS&&!0&&p.exports,_=!c.JS_MD5_NO_ARRAY_BUFFER&&typeof ArrayBuffer<"u",n="0123456789abcdef".split(""),k=[128,32768,8388608,-2147483648],l=[0,8,16,24],b=["hex","array","digest","buffer","arrayBuffer","base64"],F="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),u=[],N;if(_){var D=new ArrayBuffer(68);N=new Uint8Array(D),u=new Uint32Array(D)}var w=Array.isArray;(c.JS_MD5_NO_NODE_JS||!w)&&(w=function(t){return Object.prototype.toString.call(t)==="[object Array]"});var A=ArrayBuffer.isView;_&&(c.JS_MD5_NO_ARRAY_BUFFER_IS_VIEW||!A)&&(A=function(t){return typeof t=="object"&&t.buffer&&t.buffer.constructor===ArrayBuffer});var C=function(t){var e=typeof t;if(e==="string")return[t,!0];if(e!=="object"||t===null)throw new Error(d);if(_&&t.constructor===ArrayBuffer)return[new Uint8Array(t),!1];if(!w(t)&&!A(t))throw new Error(d);return[t,!1]},I=function(t){return function(e){return new h(!0).update(e)[t]()}},K=function(){var t=I("hex");z&&(t=V(t)),t.create=function(){return new h},t.update=function(r){return t.create().update(r)};for(var e=0;e<b.length;++e){var i=b[e];t[i]=I(i)}return t},V=function(t){var e=H,i=H.Buffer,r;i.from&&!c.JS_MD5_NO_BUFFER_FROM?r=i.from:r=function(a){return new i(a)};var f=function(a){if(typeof a=="string")return e.createHash("md5").update(a,"utf8").digest("hex");if(a==null)throw new Error(d);return a.constructor===ArrayBuffer&&(a=new Uint8Array(a)),w(a)||A(a)||a.constructor===i?e.createHash("md5").update(r(a)).digest("hex"):t(a)};return f},T=function(t){return function(e,i){return new B(e,!0).update(i)[t]()}},Y=function(){var t=T("hex");t.create=function(r){return new B(r)},t.update=function(r,f){return t.create(r).update(f)};for(var e=0;e<b.length;++e){var i=b[e];t[i]=T(i)}return t};function h(t){if(t)u[0]=u[16]=u[1]=u[2]=u[3]=u[4]=u[5]=u[6]=u[7]=u[8]=u[9]=u[10]=u[11]=u[12]=u[13]=u[14]=u[15]=0,this.blocks=u,this.buffer8=N;else if(_){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}h.prototype.update=function(t){if(this.finalized)throw new Error(M);var e=C(t);t=e[0];for(var i=e[1],r,f=0,a,s=t.length,o=this.blocks,x=this.buffer8;f<s;){if(this.hashed&&(this.hashed=!1,o[0]=o[16],o[16]=o[1]=o[2]=o[3]=o[4]=o[5]=o[6]=o[7]=o[8]=o[9]=o[10]=o[11]=o[12]=o[13]=o[14]=o[15]=0),i)if(_)for(a=this.start;f<s&&a<64;++f)r=t.charCodeAt(f),r<128?x[a++]=r:r<2048?(x[a++]=192|r>>>6,x[a++]=128|r&63):r<55296||r>=57344?(x[a++]=224|r>>>12,x[a++]=128|r>>>6&63,x[a++]=128|r&63):(r=65536+((r&1023)<<10|t.charCodeAt(++f)&1023),x[a++]=240|r>>>18,x[a++]=128|r>>>12&63,x[a++]=128|r>>>6&63,x[a++]=128|r&63);else for(a=this.start;f<s&&a<64;++f)r=t.charCodeAt(f),r<128?o[a>>>2]|=r<<l[a++&3]:r<2048?(o[a>>>2]|=(192|r>>>6)<<l[a++&3],o[a>>>2]|=(128|r&63)<<l[a++&3]):r<55296||r>=57344?(o[a>>>2]|=(224|r>>>12)<<l[a++&3],o[a>>>2]|=(128|r>>>6&63)<<l[a++&3],o[a>>>2]|=(128|r&63)<<l[a++&3]):(r=65536+((r&1023)<<10|t.charCodeAt(++f)&1023),o[a>>>2]|=(240|r>>>18)<<l[a++&3],o[a>>>2]|=(128|r>>>12&63)<<l[a++&3],o[a>>>2]|=(128|r>>>6&63)<<l[a++&3],o[a>>>2]|=(128|r&63)<<l[a++&3]);else if(_)for(a=this.start;f<s&&a<64;++f)x[a++]=t[f];else for(a=this.start;f<s&&a<64;++f)o[a>>>2]|=t[f]<<l[a++&3];this.lastByteIndex=a,this.bytes+=a-this.start,a>=64?(this.start=a-64,this.hash(),this.hashed=!0):this.start=a}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this},h.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var t=this.blocks,e=this.lastByteIndex;t[e>>>2]|=k[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()}},h.prototype.hash=function(){var t,e,i,r,f,a,s=this.blocks;this.first?(t=s[0]-680876937,t=(t<<7|t>>>25)-271733879<<0,r=(-1732584194^t&2004318071)+s[1]-117830708,r=(r<<12|r>>>20)+t<<0,i=(-271733879^r&(t^-271733879))+s[2]-1126478375,i=(i<<17|i>>>15)+r<<0,e=(t^i&(r^t))+s[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))+s[0]-680876936,t=(t<<7|t>>>25)+e<<0,r+=(i^t&(e^i))+s[1]-389564586,r=(r<<12|r>>>20)+t<<0,i+=(e^r&(t^e))+s[2]+606105819,i=(i<<17|i>>>15)+r<<0,e+=(t^i&(r^t))+s[3]-1044525330,e=(e<<22|e>>>10)+i<<0),t+=(r^e&(i^r))+s[4]-176418897,t=(t<<7|t>>>25)+e<<0,r+=(i^t&(e^i))+s[5]+1200080426,r=(r<<12|r>>>20)+t<<0,i+=(e^r&(t^e))+s[6]-1473231341,i=(i<<17|i>>>15)+r<<0,e+=(t^i&(r^t))+s[7]-45705983,e=(e<<22|e>>>10)+i<<0,t+=(r^e&(i^r))+s[8]+1770035416,t=(t<<7|Line truncated
+9
View File
@@ -0,0 +1,9 @@
import{as as K,at as Y,au as V}from"./index-3360c831.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
+2 -2
View File
@@ -11,8 +11,8 @@
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-a2f0b905.js"></script>
<link rel="stylesheet" href="/assets/index-86dd25ba.css">
<script type="module" crossorigin src="/assets/index-3360c831.js"></script>
<link rel="stylesheet" href="/assets/index-d7da5bd1.css">
</head>
<body>
<div id="app"></div>
+2
View File
@@ -14,6 +14,8 @@ class Broker:
await connection.send(message)
except Exception as e:
logger.warning(f"发送日志失败: {e.__str__()}")
connection.close()
del connection
class LogRoute:
+6
View File
@@ -11,6 +11,7 @@ class StatRoute(Route):
self.routes = {
'/stat/get': ('GET', self.get_stat),
'/stat/version': ('GET', self.get_version),
'/stat/start-time': ('GET', self.get_start_time)
}
self.db_helper = db_helper
self.register_routes()
@@ -24,6 +25,11 @@ class StatRoute(Route):
return Response().ok({
"version": VERSION
}).__dict__
async def get_start_time(self):
return Response().ok({
"start_time": self.context._start_running,
}).__dict__
async def get_stat(self):
offset_sec = request.args.get('offset_sec', 86400)
+3 -1
View File
@@ -21,6 +21,8 @@ def get_default_val_by_type(type_: str):
return False
elif type_ == "string":
return ""
elif type_ == "text":
return ""
elif type_ == "list":
return []
elif type_ == "object":
@@ -57,7 +59,7 @@ def validate_config(data, context: Context):
data[key] = casted
elif meta["type"] == "bool" and not isinstance(value, bool):
errors.append(f"错误的类型 {path}{key}: 期望是 bool, 得到了 {type(value).__name__}")
elif meta["type"] == "string" and not isinstance(value, str):
elif meta["type"] in ["string", "text"] and not isinstance(value, str):
errors.append(f"错误的类型 {path}{key}: 期望是 string, 得到了 {type(value).__name__}")
elif meta["type"] == "list" and not isinstance(value, list):
errors.append(f"错误的类型 {path}{key}: 期望是 list, 得到了 {type(value).__name__}")
+12 -61
View File
@@ -21,7 +21,7 @@ logger: Logger = LogManager.GetLogger(log_name='astrbot')
class PluginManager():
def __init__(self, context: Context):
self.updator = PluginUpdator()
self.updator = PluginUpdator(context.config_helper.plugin_repo_mirror)
self.plugin_store_path = self.updator.get_plugin_store_path()
self.context = context
@@ -80,75 +80,26 @@ class PluginManager():
plugin_path = os.path.join(plugin_dir, p)
if os.path.exists(os.path.join(plugin_path, "requirements.txt")):
pth = os.path.join(plugin_path, "requirements.txt")
logger.info(f"正在检查更新插件 {p} 的依赖: {pth}")
self.update_plugin_dept(os.path.join(plugin_path, "requirements.txt"))
logger.info(f"正在检查插件 {p} 的依赖: {pth}")
try:
self.update_plugin_dept(os.path.join(plugin_path, "requirements.txt"))
except Exception as e:
logger.error(f"更新插件 {p} 的依赖失败。Code: {str(e)}")
def update_plugin_dept(self, path):
pip_main(['install', '-r', path, '--trusted-host', 'mirrors.aliyun.com', '-i', 'https://mirrors.aliyun.com/pypi/simple/'])
# mirror = "https://mirrors.aliyun.com/pypi/simple/"
# py = sys.executable
# cmd = f"{py} -m pip install -r {path} -i {mirror} --trusted-host mirrors.aliyun.com"
# if break_system_package:
# cmd += " --break-system-package"
# process = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE, shell=True, universal_newlines=True)
# while True:
# output = process.stdout.readline()
# err = process.stderr.readline()
# if err:
# err = err.strip()
# logger.error(err)
# if "no such option: --break-system-package" in err:
# self.update_plugin_dept(path, break_system_package=False)
# break
# if output == '' and process.poll() is not None:
# break
# if output:
# output = output.strip()
# if output.startswith("Requirement already satisfied"):
# continue
# if output.startswith("Using cached"):
# continue
# if output.startswith("Looking in indexes"):
# continue
# logger.info(output)
# rc = process.poll()
args = ['install', '-r', path, '--trusted-host', 'mirrors.aliyun.com', '-i', 'https://mirrors.aliyun.com/pypi/simple/', '--break-system-package']
if self.context.config_helper.pip_install_arg:
args.extend(self.context.config_helper.pip_install_arg)
result_code = pip_main(args)
if result_code != 0:
raise Exception(str(result_code))
async def install_plugin(self, repo_url: str):
ppath = self.plugin_store_path
# we no longer use Git anymore :)
# Repo.clone_from(repo_url, to_path=plugin_path, branch='master')
plugin_path = await self.updator.update(repo_url)
with open(os.path.join(plugin_path, "REPO"), "w", encoding='utf-8') as f:
f.write(repo_url)
# self.check_plugin_dept_update()
return plugin_path
# ok, err = self.plugin_reload()
# if not ok:
# raise Exception(err)
async def download_from_repo_url(self, target_path: str, repo_url: str):
repo_namespace = repo_url.split("/")[-2:]
author = repo_namespace[0]
repo = repo_namespace[1]
logger.info(f"正在下载插件 {repo} ...")
release_url = f"https://api.github.com/repos/{author}/{repo}/releases"
releases = await self.updator.fetch_release_info(url=release_url)
if not releases:
# download from the default branch directly.
logger.warn(f"未在插件 {author}/{repo} 中找到任何发布版本,将从默认分支下载。")
release_url = f"https://github.com/{author}/{repo}/archive/refs/heads/master.zip"
else:
release_url = releases[0]['zipball_url']
await download_file(release_url, target_path + ".zip")
def get_registered_plugin(self, plugin_name: str) -> RegisteredPlugin:
for p in self.context.cached_plugins:
+47 -41
View File
@@ -1,4 +1,4 @@
VERSION = '3.3.17'
VERSION = '3.3.19'
DB_PATH = 'data/data_v2.db'
# 新版本配置文件,摈弃旧版本令人困惑的配置项 :D
@@ -99,6 +99,8 @@ DEFAULT_CONFIG_VERSION_2 = {
},
"log_level": "INFO",
"t2i_endpoint": "",
"pip_install_arg": "",
"plugin_repo_mirror": "default",
}
# 这个是用于迁移旧版本配置文件的映射表
@@ -165,55 +167,57 @@ CONFIG_METADATA_2 = {
"description": "平台配置",
"type": "list",
"items": {
"name": {"description": "平台名称", "type": "string"},
"enable": {"description": "启用", "type": "bool"},
"appid": {"description": "appid", "type": "string"},
"secret": {"description": "secret", "type": "string"},
"enable_group_c2c": {"description": "启用消息列表单聊", "type": "bool"},
"enable_guild_direct_message": {"description": "启用频道私聊", "type": "bool"},
"host": {"description": "主机地址", "type": "string"},
"port": {"description": "端口", "type": "int"},
"websocket_port": {"description": "Websocket 端口", "type": "int"},
"ws_reverse_host": {"description": "反向 Websocket 主机地址", "type": "string"},
"ws_reverse_port": {"description": "反向 Websocket 端口", "type": "int"},
"enable_group": {"description": "接收群组消息", "type": "bool"},
"enable_guild": {"description": "接收频道消息", "type": "bool"},
"enable_direct_message": {"description": "接收频道私聊", "type": "bool"},
"enable_group_increase": {"description": "接收群组成员增加事件", "type": "bool"},
"id": {"description": "ID", "type": "string", "hint": "提供商 ID 名,用于在多实例下方便管理和识别。自定义,ID 不能重复。"},
"name": {"description": "适配器类型", "type": "string", "hint": "当前版本下,支持 `qq_official`(QQ 官方机器人), `aiocqhttp`(Onebot 适用), `nakuru` 三种适配器类型。", "options": ["qq_official", "aiocqhttp", "nakuru"]},
"enable": {"description": "启用", "type": "bool", "hint": "是否启用该适配器。未启用的适配器对应的消息平台将不会接收到消息。"},
"appid": {"description": "appid", "type": "string", "hint": "必填项。QQ 官方机器人平台的 appid。如何获取请参考文档。"},
"secret": {"description": "secret", "type": "string", "hint": "必填项。QQ 官方机器人平台的 secret。如何获取请参考文档。"},
"enable_group_c2c": {"description": "启用消息列表单聊", "type": "bool", "hint": "启用后,机器人可以接收到 QQ 消息列表中的私聊消息。你可能需要在 QQ 机器人平台上通过扫描二维码的方式添加机器人为你的好友。详见文档。"},
"enable_guild_direct_message": {"description": "启用频道私聊", "type": "bool", "hint": "启用后,机器人可以接收到频道的私聊消息。"},
"host": {"description": "主机地址", "type": "string", "hint": "Nakuru 适配器的服务器 IP 地址,不包含端口号。"},
"port": {"description": "端口", "type": "int", "hint": "Nakuru 适配器的 HTTP 端口。"},
"websocket_port": {"description": "Websocket 端口", "type": "int", "hint": "Nakuru 适配器的 Websocket 端口。"},
"ws_reverse_host": {"description": "反向 Websocket 主机地址", "type": "string", "hint": "aiocqhttp 适配器的反向 Websocket 服务器 IP 地址,不包含端口号。"},
"ws_reverse_port": {"description": "反向 Websocket 端口", "type": "int", "hint": "aiocqhttp 适配器的反向 Websocket 端口。"},
"enable_group": {"description": "接收群组消息", "type": "bool", "hint": "启用后,机器人可以接收到群组消息。"},
"enable_guild": {"description": "接收频道消息", "type": "bool", "hint": "启用后,机器人可以接收到频道消息。"},
"enable_direct_message": {"description": "接收频道私聊", "type": "bool", "hint": "启用后,机器人可以接收到频道的私聊消息。"},
}
},
"platform_settings": {
"description": "平台设置",
"type": "object",
"items": {
"unique_session": {"description": "会话隔离到单个人", "type": "bool"},
"unique_session": {"description": "会话隔离", "type": "bool", "hint": "启用后,在群组或者频道中,每个人的消息上下文都是独立的。"},
"rate_limit": {
"description": "速率限制",
"hint": "每个会话在 `time` 秒内最多只能发送 `count` 条消息。",
"type": "object",
"items": {
"time": {"description": "消息速率限制时间", "type": "int"},
"count": {"description": "消息速率限制计数", "type": "int"},
}
},
"reply_prefix": {"description": "回复前缀", "type": "string"},
"forward_threshold": {"description": "转发消息的字数阈值", "type": "int"},
"reply_prefix": {"description": "回复前缀", "type": "string", "hint": "机器人回复消息时带有的前缀。"},
"forward_threshold": {"description": "转发消息的字数阈值", "type": "int", "hint": "超过一定字数后,机器人会将消息折叠成 QQ 群聊的 “转发消息”,以防止刷屏。目前仅 QQ 平台适配器适用。"},
}
},
"llm": {
"description": "大语言模型配置",
"type": "list",
"items": {
"name": {"description": "模型名称", "type": "string"},
"enable": {"description": "启用", "type": "bool"},
"key": {"description": "API Key", "type": "list", "items": {"type": "string"}},
"api_base": {"description": "API Base URL", "type": "string"},
"prompt_prefix": {"description": "Prompt 前缀", "type": "string"},
"default_personality": {"description": "默认人格", "type": "string"},
"id": {"description": "ID", "type": "string", "hint": "提供商 ID 名,用于在多实例下方便管理和识别。自定义,ID 不能重复。"},
"name": {"description": "模型提供商类型", "type": "string", "hint": "当前版本下,支持 `openai` 一个模型提供商。", "options": ["openai"]},
"enable": {"description": "启用", "type": "bool", "hint": "是否启用该模型。未启用的模型将不会被使用。"},
"key": {"description": "API Key", "type": "list", "items": {"type": "string"}, "hint": "API Key 列表。填写好后输入回车即可添加 API Key。支持多个 API Key。"},
"api_base": {"description": "API Base URL", "type": "string", "hint": "API Base URL 请在在模型提供商处获得。支持 Ollama 开放的 API 地址。如果您确认填写正确但是使用时出现了 404 异常,可以尝试在地址末尾加上 `/v1`。"},
"prompt_prefix": {"description": "Prompt 前缀", "type": "text", "hint": "每次与 LLM 对话时在对话前加上的自定义文本。默认为空。"},
"default_personality": {"description": "默认人格", "type": "text", "hint": "在当前版本下,默认人格文本会被添加到 LLM 对话的 `system` 字段中。"},
"model_config": {
"description": "模型配置",
"type": "object",
"items": {
"model": {"description": "模型名称", "type": "string"},
"model": {"description": "模型名称", "type": "string", "hint": "大语言模型的名称,一般是小写的英文。如 gpt-4o-mini, deepseek-chat 等。"},
"max_tokens": {"description": "最大令牌数", "type": "int"},
"temperature": {"description": "温度", "type": "float"},
"top_p": {"description": "Top P值", "type": "float"},
@@ -225,8 +229,8 @@ CONFIG_METADATA_2 = {
"description": "图像生成模型配置",
"type": "object",
"items": {
"enable": {"description": "启用(需要该提供商支持图像生成模型)", "type": "bool"},
"model": {"description": "模型名称", "type": "string"},
"enable": {"description": "启用", "type": "bool", "hint": "启用该功能需要提供商支持图像生成。如 dall-e-3"},
"model": {"description": "模型名称", "type": "string", "hint": "图像生成模型的名称,一般是小写的英文。如 dall-e-3"},
"size": {"description": "图像尺寸", "type": "string"},
"style": {"description": "图像风格", "type": "string"},
"quality": {"description": "图像质量", "type": "string"},
@@ -238,9 +242,9 @@ CONFIG_METADATA_2 = {
"description": "大语言模型设置",
"type": "object",
"items": {
"wake_prefix": {"description": "LLM 聊天额外唤醒前缀", "type": "string"},
"web_search": {"description": "启用网页搜索(能访问 Google 时效果最佳)", "type": "bool"},
"identifier": {"description": "启动识别群员(略微增加token开销)", "type": "bool"},
"wake_prefix": {"description": "LLM 聊天额外唤醒前缀", "type": "string", "hint": "使用 LLM 聊天额外的触发条件。如填写 `chat`,则需要消息前缀加上 `/chat` 才能触发 LLM 聊天,是一个防止滥用的手段。"},
"web_search": {"description": "启用网页搜索", "type": "bool", "hint": "能访问 Google 时效果最佳。如果 Google 访问失败,程序会依次访问 Bing, Sogo 搜索引擎。"},
"identifier": {"description": "启动识别群员", "type": "bool", "hint": "在 Prompt 前加上群成员的名字以让模型更好地了解群聊状态。启用将略微增加 token 开销,"},
}
},
"content_safety": {
@@ -251,7 +255,7 @@ CONFIG_METADATA_2 = {
"description": "百度内容审核配置",
"type": "object",
"items": {
"enable": {"description": "启用百度内容审核(需手动安装 baidu-aip 库)", "type": "bool"},
"enable": {"description": "启用百度内容审核", "type": "bool", "hint": "启用此功能前,您需要手动在设备中安装 baidu-aip 库。一般来说,安装指令如下: `pip3 install baidu-aip`"},
"app_id": {"description": "APP ID", "type": "string"},
"api_key": {"description": "API Key", "type": "string"},
"secret_key": {"description": "Secret Key", "type": "string"},
@@ -262,17 +266,17 @@ CONFIG_METADATA_2 = {
"type": "object",
"items": {
"enable": {"description": "启用内部关键词过滤", "type": "bool"},
"extra_keywords": {"description": "额外关键词(支持正则)", "type": "list", "items": {"type": "string"}},
"extra_keywords": {"description": "额外关键词", "type": "list", "items": {"type": "string"}, "hint": "额外的屏蔽关键词列表,支持正则表达式。"},
}
}
}
},
"wake_prefix": {"description": "唤醒前缀列表", "type": "list", "items": {"type": "string"}},
"t2i": {"description": "文本转图像功能", "type": "bool"},
"dump_history_interval": {"description": "历史记录转储间隔", "type": "int"},
"admins_id": {"description": "管理员ID列表", "type": "list", "items": {"type": "int"}},
"https_proxy": {"description": "HTTPS代理", "type": "string"},
"http_proxy": {"description": "HTTP代理", "type": "string"},
"wake_prefix": {"description": "机器人唤醒前缀", "type": "list", "items": {"type": "string"}, "hint": "在不 @ 机器人的情况下,可以通过外加消息前缀来唤醒机器人。"},
"t2i": {"description": "文本转图像", "type": "bool", "hint": "启用后,超出一定长度的文本将会通过 AstrBot API 渲染成 Markdown 图片发送。可以缓解审核和消息过长刷屏的问题,并提高 Markdown 文本的可读性。"},
"dump_history_interval": {"description": "历史记录保存间隔", "type": "int", "hint": "每隔多少分钟将 LLM 聊天的历史记录转储到数据库。"},
"admins_id": {"description": "管理员 ID", "type": "list", "items": {"type": "int"}, "hint": "管理员 ID 列表,管理员可以使用一些特权命令,如 `update`, `plugin` 等。ID 可以通过 `/myid` 指令获得。回车添加,可添加多个。"},
"https_proxy": {"description": "HTTPS 代理", "type": "string", "hint": "启用后,会以添加环境变量的方式设置代理。格式为 `http://ip:port`"},
"http_proxy": {"description": "HTTP 代理", "type": "string", "hint": "启用后,会以添加环境变量的方式设置代理。格式为 `http://ip:port`"},
"dashboard": {
"description": "仪表盘配置",
"type": "object",
@@ -282,6 +286,8 @@ CONFIG_METADATA_2 = {
"password": {"description": "密码", "type": "string"},
}
},
"log_level": {"description": "控制台日志级别(DEBUG, INFO, WARNING, ERROR)", "type": "string"},
"t2i_endpoint": {"description": "文本转图像服务接口(为空时使用公共服务器)", "type": "string"},
"log_level": {"description": "控制台日志级别", "type": "string", "hint": "控制台输出日志的级别。", "options": ["DEBUG", "INFO", "WARNING", "ERROR", "CRITICAL"]},
"t2i_endpoint": {"description": "文本转图像服务接口", "type": "string", "hint": "为空时使用 AstrBot API 服务"},
"pip_install_arg": {"description": "pip 安装参数", "type": "string", "hint": "安装插件依赖时,会使用 Python 的 pip 工具。这里可以填写额外的参数,如 `--break-system-package` 等。"},
"plugin_repo_mirror": {"description": "插件仓库镜像", "type": "string", "hint": "插件仓库的镜像地址,用于加速插件的下载。", "options": ["default", "https://github-mirror.us.kg/"]},
}
-9
View File
@@ -30,12 +30,6 @@ class Context:
self.llms: List[RegisteredLLM] = []
self.default_personality: dict = None
# self.unique_session = False # 独立会话
# self.version: str = None # 机器人版本
# self.nick: tuple = None # gocq 的唤醒词
# self.t2i_mode = False
# self.web_search = False # 是否开启了网页搜索
self.metrics_uploader = None
self.updator: AstrBotUpdator = None
self.plugin_updator: PluginUpdator = None
@@ -53,9 +47,6 @@ class Context:
self._log_queue = CachedQueue()
# useless
# self.reply_prefix = ""
def register_commands(self,
plugin_name: str,
command_name: str,
+5
View File
@@ -136,6 +136,8 @@ class AstrBotConfig():
wake_prefix: List[str] = field(default_factory=list)
log_level: str = "INFO"
t2i_endpoint: str = ""
pip_install_arg: str = ""
plugin_repo_mirror: str = ""
def __init__(self) -> None:
self.init_configs()
@@ -179,6 +181,9 @@ class AstrBotConfig():
self.wake_prefix=data.get("wake_prefix", ["/"])
self.log_level=data.get("log_level", "INFO")
self.t2i_endpoint=data.get("t2i_endpoint", "")
self.pip_install_arg=data.get("pip_install_arg", "")
self.plugin_repo_mirror=data.get("plugin_repo_mirror", "")
def migrate_config_1_2(self, old: dict) -> dict:
'''将配置文件从版本 1 迁移至版本 2'''
+2 -1
View File
@@ -8,7 +8,8 @@ from util.io import on_error, download_file
logger: Logger = LogManager.GetLogger(log_name='astrbot')
class AstrBotUpdator(RepoZipUpdator):
def __init__(self):
def __init__(self, repo_mirror: str = "") -> None:
super().__init__(repo_mirror)
self.MAIN_PATH = os.path.abspath(os.path.join(os.path.dirname(os.path.abspath(__file__)), "../../"))
self.ASTRBOT_RELEASE_API = "https://api.github.com/repos/Soulter/AstrBot/releases"
+2 -1
View File
@@ -12,7 +12,8 @@ logger: Logger = LogManager.GetLogger(log_name='astrbot')
class PluginUpdator(RepoZipUpdator):
def __init__(self) -> None:
def __init__(self, repo_mirror: str = "") -> None:
super().__init__(repo_mirror)
self.plugin_store_path = os.path.abspath(os.path.join(os.path.dirname(os.path.abspath(__file__)), "../../data/plugins"))
def get_plugin_store_path(self) -> str:
+11 -4
View File
@@ -19,8 +19,8 @@ class ReleaseInfo():
return f"新版本: {self.version}, 发布于: {self.published_at}, 详细内容: {self.body}"
class RepoZipUpdator():
def __init__(self, path):
self.path = path
def __init__(self, repo_mirror: str = "") -> None:
self.repo_mirror = repo_mirror
self.rm_on_error = on_error
async def fetch_release_info(self, url: str, latest: bool = True) -> list:
@@ -38,8 +38,8 @@ class RepoZipUpdator():
else:
ret = self.github_api_release_parser(result)
except BaseException as e:
logger.error(f"解析版本信息失败: {result}")
raise Exception(f"解析版本信息失败: {result}")
logger.error(f"解析版本信息失败")
raise Exception(f"解析版本信息失败")
return ret
def github_api_release_parser(self, releases: list) -> list:
@@ -113,6 +113,13 @@ class RepoZipUpdator():
release_url = f"https://github.com/{author}/{repo}/archive/refs/heads/master.zip"
else:
release_url = releases[0]['zipball_url']
# 镜像站点
if self.repo_mirror:
if self.repo_mirror == 'default':
pass
elif self.repo_mirror == 'https://github-mirror.us.kg/':
release_url = self.repo_mirror + release_url
await download_file(release_url, target_path + ".zip")