diff --git a/dashboard/public/200.html b/dashboard/public/200.html index 1364828..dbad10c 100644 --- a/dashboard/public/200.html +++ b/dashboard/public/200.html @@ -1 +1 @@ -MetaCubeXD
\ No newline at end of file +MetaCubeXD
\ No newline at end of file diff --git a/dashboard/public/404.html b/dashboard/public/404.html index 1364828..dbad10c 100644 --- a/dashboard/public/404.html +++ b/dashboard/public/404.html @@ -1 +1 @@ -MetaCubeXD
\ No newline at end of file +MetaCubeXD
\ No newline at end of file diff --git a/dashboard/public/_nuxt/C_E54F3Z.js b/dashboard/public/_nuxt/--pNTB9Q.js similarity index 98% rename from dashboard/public/_nuxt/C_E54F3Z.js rename to dashboard/public/_nuxt/--pNTB9Q.js index dcdfcca..675ff85 100644 --- a/dashboard/public/_nuxt/C_E54F3Z.js +++ b/dashboard/public/_nuxt/--pNTB9Q.js @@ -1 +1 @@ -import{$ as e,Dt as t,E as n,Et as r,G as i,H as a,J as o,K as s,L as c,M as l,Mt as u,O as d,Ot as f,Q as p,R as m,U as h,V as g,W as _,Y as v,Z as y,at as b,ct as x,et as S,ft as C,j as w,kt as T,lt as E,pt as D,q as O,st as k,x as A,yt as j,z as M}from"./DOvCTup-.js";import{d as N,p as P}from"./_v7-ePgP.js";import{t as F}from"./DaqTEuJW.js";import"./4rydX2E6.js";import{L as I,N as L,T as ee,p as R,r as z,u as B}from"./DkKkiaBA.js";import{a as V,i as H,n as U,o as W,r as G,t as K}from"./Cqvf2RiX.js";import{c as q,d as J,f as te,i as ne,m as Y,p as X,s as re,u as ie}from"./CZdbW3fS.js";import{n as ae,t as oe}from"./BlP2MkkZ.js";import{c as se,f as ce,h as le,n as ue,r as de,s as fe,t as pe,u as me}from"./BpDbz5Be.js";import{t as he}from"./DdPOBIP_.js";import{t as Z}from"./NIr0cT37.js";import{t as ge}from"./CJ3kh3xA.js";const Q=l(`proxies`,()=>{let e=F(),t=ae(),r=j([]),i=j([]),a=j({}),o=j({}),s=j({}),c=j({}),l=j({}),u=j({}),d=j(!1),f=n(`collapsedMap`,{}),p=(t,n=!0)=>{let r=t.extra||{},i=Object.keys(r).reduce((t,n)=>{let i=r[n],a=i?.history?.at(-1)?.delay??e.latencyQualityMap.NOT_CONNECTED;return t.allTestUrlLatency[n]=a,t.allTestUrlLatencyHistory[n]=i?.history,t},{allTestUrlLatency:{},allTestUrlLatencyHistory:{}});if(n){let n=t.testUrl||e.urlForLatencyTest;if(!(n in i.allTestUrlLatency)){let r=t.history?.at(-1)?.delay??e.latencyQualityMap.NOT_CONNECTED;i.allTestUrlLatency[n]=r,i.allTestUrlLatencyHistory[n]=t.history}}return i},m=e=>{let t={...o.value},n={...a.value};e.forEach(e=>{let{allTestUrlLatency:r,allTestUrlLatencyHistory:i}=p(e),{udp:a,xudp:o,type:s,now:c,name:l,tfo:u,provider:d=``}=e;t[e.name]={udp:a,xudp:o,type:s,latency:c,latencyTestHistory:i,name:l,tfo:u,provider:d},n[e.name]=r}),o.value=t,a.value=n},h=async()=>{let[{providers:e},{proxies:t}]=await Promise.all([q(),re()]),n=Object.values(t).map(t=>{if(t.all?.length&&!t.testUrl){let{testUrl:n,timeout:r}=e?.[t.name]||{};return{...t,testUrl:n,timeout:r}}return t}),a=[...t.GLOBAL?.all??[],`GLOBAL`],o=Object.values(n).filter(e=>e.all?.length).sort((e,t)=>a.indexOf(e.name)-a.indexOf(t.name)),s=Object.values(e).filter(e=>e.name!==`default`&&e.vehicleType!==`Compatible`),c=[...n,...s.flatMap(e=>e.proxies.filter(e=>!(e.name in t)).map(t=>({...t,provider:e.name})))];r.value=o,i.value=s,m(c)},g=async(n,r)=>{if(await X(n.name,r),await h(),e.autoCloseConns){let e=t.restructRawMsgToConnection(t.latestConnectionMsg?.connections??[],[]);e.length>0&&e.forEach(({id:e,chains:t})=>{t.includes(n.name)&&ne(e)})}},_=e=>{let t=o.value[e];if(!e||!t)return e;for(;t&&t.latency&&t.latency!==t.name;){let e=o.value[t.latency];if(!e)return t.name;t=e}return t?.name??e};return{proxies:r,proxyProviders:i,latencyMap:a,proxyNodeMap:o,proxyLatencyTestingMap:s,proxyGroupLatencyTestingMap:c,proxyProviderLatencyTestingMap:l,updatingMap:u,isAllProviderUpdating:d,collapsedMap:f,fetchProxies:h,selectProxyInGroup:g,getNowProxyNodeName:_,getLatencyByName:(t,n)=>{let r=n||e.urlForLatencyTest,i=a.value,o=_(t),s=i[o]?.[r],c=i[t]?.[r];if(s!=null)return s;if(c!=null)return c;let l=i[o];if(l&&Object.keys(l).length>0){let e=Object.keys(l),t=l[r]==null?e[0]:r;if(t)return l[t]}let u=i[t];if(u&&Object.keys(u).length>0){let e=Object.keys(u);if(e[0])return u[e[0]]}return e.latencyQualityMap.NOT_CONNECTED},getLatencyHistoryByName:(t,n)=>{let r=o.value[t],i=_(t),a=o.value[i],s=n||e.urlForLatencyTest,c=a?.latencyTestHistory[s]||r?.latencyTestHistory[s];if(c&&c.length)return c;let l=a?.latencyTestHistory||{},u=Object.keys(l)[0];if(u){let e=l[u];if(e&&e.length)return e}let d=r?.latencyTestHistory||{},f=Object.keys(d)[0];if(f){let e=d[f];if(e&&e.length)return e}return[]},isProxyGroup:e=>{let t=o.value[e];return t?[`direct`,`reject`,`loadbalance`].includes(t.type.toLowerCase())||!!t.latency:!1},proxyLatencyTest:async(t,n,r,i)=>{let o=_(t);s.value[o]=!0;try{let t=r||e.urlForLatencyTest,s=a.value?.[o]||{},{delay:c}=await J(o,n,t,i??e.latencyTestTimeoutDuration);s[t]=c,a.value={...a.value,[o]:s}}catch{let t=r||e.urlForLatencyTest,n=a.value?.[o]||{};n[t]=e.latencyQualityMap.NOT_CONNECTED,a.value={...a.value,[o]:n}}finally{s.value[o]=!1}},proxyGroupLatencyTest:async t=>{c.value[t]=!0;try{let n=r.value.find(e=>e.name===t);await ie(t,n?.testUrl||e.urlForLatencyTest,n?.timeout??e.latencyTestTimeoutDuration),await h()}finally{c.value[t]=!1}},updateProviderByProviderName:async e=>{u.value[e]=!0;try{await Y(e)}catch{}await h(),u.value[e]=!1},updateAllProvider:async()=>{d.value=!0;try{await Promise.allSettled(i.value.map(e=>Y(e.name))),await h()}finally{d.value=!1}},proxyProviderLatencyTest:async e=>{l.value[e]=!0;try{await te(e),await h()}finally{l.value[e]=!1}}}});var _e={key:0,class:`loading loading-sm loading-infinity`},ve=e({__name:`Latency`,props:{proxyName:{},testUrl:{},class:{}},emits:[`click`],setup(e){let n=e,i=Q(),s=F(),c=_(()=>n.class||``),l=_(()=>i.getLatencyByName(n.proxyName,n.testUrl)),u=_(()=>i.proxyLatencyTestingMap[n.proxyName]||!1),d=_(()=>me(l.value,s.latencyQualityMap)),f=_(()=>l.value||`---`);return(e,n)=>(k(),o(`span`,{class:t([`badge flex w-11 items-center justify-center whitespace-nowrap`,[r(d),r(c)]]),onClick:n[0]||=t=>e.$emit(`click`,t)},[r(u)?(k(),o(`span`,_e)):(k(),o(a,{key:1},[y(T(r(f)),1)],64))],2))}}),$=Object.assign(ve,{__name:`Latency`}),ye={class:`flex items-center gap-2`},be={class:`my-1 flex flex-1 items-center justify-center overflow-hidden rounded-2xl *:h-2`},xe=e({__name:`ProxyPreviewBar`,props:{proxyNameList:{},testUrl:{},now:{}},setup(e){let t=e,n=Q(),a=F(),c=_(()=>t.proxyNameList.map(e=>n.getLatencyByName(e,t.testUrl))),l=_(()=>c.value.length||1),u=_(()=>c.value.filter(e=>e>a.latencyQualityMap.NOT_CONNECTED&&e<=a.latencyQualityMap.MEDIUM).length),d=_(()=>c.value.filter(e=>e>a.latencyQualityMap.MEDIUM&&e<=a.latencyQualityMap.HIGH).length),p=_(()=>c.value.filter(e=>e>a.latencyQualityMap.HIGH).length),m=_(()=>c.value.filter(e=>e===a.latencyQualityMap.NOT_CONNECTED).length),h=_(()=>u.value*100/l.value),g=_(()=>d.value*100/l.value),v=_(()=>p.value*100/l.value),y=_(()=>m.value*100/l.value);return(t,n)=>{let a=$;return k(),o(`div`,ye,[i(`div`,be,[i(`div`,{class:`bg-green-600`,style:f({width:`${r(h)}%`})},null,4),i(`div`,{class:`bg-yellow-500`,style:f({width:`${r(g)}%`})},null,4),i(`div`,{class:`bg-red-500`,style:f({width:`${r(v)}%`})},null,4),i(`div`,{class:`bg-neutral`,style:f({width:`${r(y)}%`})},null,4)]),e.now?(k(),s(a,{key:0,"proxy-name":e.now,"test-url":e.testUrl},null,8,[`proxy-name`,`test-url`])):O(``,!0)])}}}),Se=Object.assign(xe,{__name:`ProxyPreviewBar`}),Ce={class:`flex items-center gap-2`},we={class:`flex flex-1 flex-wrap items-center gap-1`},Te=[`title`,`onClick`],Ee=e({__name:`ProxyPreviewDots`,props:{proxyNameList:{},testUrl:{},now:{},onSelect:{type:Function}},setup(e){let n=e,c=Q(),l=F(),u=_(()=>n.proxyNameList.map(e=>[e,c.getLatencyByName(e,n.testUrl)]));function d(e,t){let n=l.latencyQualityMap.NOT_CONNECTED,r=l.latencyQualityMap.MEDIUM,i=l.latencyQualityMap.HIGH;return typeof e!=`number`||e===n?t?`bg-white border-4 border-neutral`:`bg-neutral`:e>i?t?`bg-white border-4 border-red-500`:`bg-red-500`:e>r?t?`bg-white border-4 border-yellow-500`:`bg-yellow-500`:t?`bg-white border-4 border-green-600`:`bg-green-600`}return(n,c)=>{let l=$;return k(),o(`div`,Ce,[i(`div`,we,[(k(!0),o(a,null,x(r(u),([n,r])=>(k(),o(`div`,{key:n,class:t([`h-4 w-4 rounded-full`,[d(r,n===e.now),e.onSelect&&`cursor-pointer transition-transform hover:scale-125`]]),title:n,onClick:g(t=>e.onSelect&&e.onSelect(n),[`stop`])},null,10,Te))),128))]),e.now?(k(),s(l,{key:0,"proxy-name":e.now,"test-url":e.testUrl},null,8,[`proxy-name`,`test-url`])):O(``,!0)])}}}),De=Object.assign(Ee,{__name:`ProxyPreviewDots`}),Oe=e({__name:`ProxyNodePreview`,props:{proxyNameList:{},testUrl:{},now:{},onSelect:{type:Function}},setup(e){let t=e,n=F(),i=_(()=>n.proxiesPreviewType===P.OFF),c=_(()=>t.proxyNameList.length<=10),l=_(()=>{let e=n.proxiesPreviewType;return e===P.BAR||e===P.Auto&&!c.value}),u=_(()=>{let e=n.proxiesPreviewType;return e===P.DOTS||e===P.Auto&&c.value});return(t,n)=>{let c=Se,d=De;return r(i)?O(``,!0):(k(),o(a,{key:0},[r(l)?(k(),s(c,{key:0,"proxy-name-list":e.proxyNameList,"test-url":e.testUrl,now:e.now},null,8,[`proxy-name-list`,`test-url`,`now`])):r(u)?(k(),s(d,{key:1,"proxy-name-list":e.proxyNameList,"test-url":e.testUrl,now:e.now,"on-select":e.onSelect},null,8,[`proxy-name-list`,`test-url`,`now`,`on-select`])):O(``,!0)],64))}}}),ke=Object.assign(Oe,{__name:`ProxyNodePreview`}),Ae=u(le(),1),je={class:`min-w-0 flex-1 truncate text-sm font-medium`},Me={key:1,class:`badge shrink-0 badge-xs badge-info`},Ne={key:2,class:`hidden text-xs uppercase opacity-60 sm:inline`},Pe={class:`hidden text-xs uppercase opacity-75 sm:inline`},Fe={class:`flex flex-col items-center gap-2`},Ie={class:`text-lg font-bold`},Le={key:0,class:`w-full text-xs uppercase`},Re={key:1,class:`timeline timeline-vertical timeline-compact max-h-60 overflow-y-auto timeline-snap-icon`},ze={key:0},Be={class:`timeline-start space-y-2`},Ve={class:`text-sm italic`},He={class:`timeline-middle`},Ue={key:1},We={key:2,class:`text-sm opacity-75`},Ge=e({__name:`ProxyNodeListItem`,props:{proxyName:{},testUrl:{},timeout:{},isSelected:{type:Boolean,default:!1}},emits:[`click`],setup(e,{emit:n}){let c=e,l=n,u=Q(),d=F(),{t:m}=A(),v=_(()=>u.proxyNodeMap[c.proxyName]),y=_(()=>fe(v.value?.type||``,m)),b=_(()=>v.value?.xudp||v.value?.udp),S=_(()=>u.proxyLatencyTestingMap[c.proxyName]||!1),C=_(()=>!v.value||!de(v.value.type)?null:[v.value.xudp&&`xudp`,v.value.udp&&`udp`,v.value.tfo&&`TFO`].filter(Boolean).join(` / `)),w=_(()=>u.getLatencyHistoryByName(c.proxyName,c.testUrl).toReversed()),E=j(null),D=j(null),M=j(null),N=j(!1),{floatingStyles:P,middlewareData:I,placement:L}=U(E,D,{placement:`top`,middleware:[V(10),H(),W({padding:8}),K({element:M})],whileElementsMounted:G}),ee=_(()=>{let e=I.value.arrow,t={top:`bottom`,right:`left`,bottom:`top`,left:`right`}[L.value.split(`-`)[0]||`top`]||`bottom`;return{left:e?.x==null?``:`${e.x}px`,top:e?.y==null?``:`${e.y}px`,[t]:`-4px`}}),R=null,B=null;function q(){R&&=(clearTimeout(R),null),B&&=(clearTimeout(B),null)}function J(){q(),R=setTimeout(()=>{N.value=!0},300)}function te(){q(),B=setTimeout(()=>{N.value=!1},100)}function ne(){q()}function Y(){q(),N.value=!1}function X(){l(`click`)}function re(){u.proxyLatencyTest(c.proxyName,v.value?.provider||``,c.testUrl,c.timeout)}return(n,c)=>{let l=$;return k(),o(`div`,{class:t([`relative`,e.isSelected?`z-10`:`z-0`])},[i(`div`,{ref_key:`reference`,ref:E,class:t([`relative rounded-lg transition-all duration-300`,[e.isSelected?`animate-glow-pulse bg-primary text-primary-content`:`bg-neutral text-neutral-content hover:shadow-md`]]),onMouseenter:J,onMouseleave:te},[i(`div`,{class:t([`flex items-center gap-2 px-3 py-1.5`,{"cursor-pointer hover:opacity-80":!!X}]),onClick:X},[e.isSelected?(k(),s(r(z),{key:0,class:`size-4 shrink-0`})):O(``,!0),i(`span`,je,T(e.proxyName),1),r(b)?(k(),o(`span`,Me,`U`)):O(``,!0),r(C)?(k(),o(`span`,Ne,T(r(C)),1)):O(``,!0),i(`span`,Pe,T(r(y)),1),p(l,{"proxy-name":e.proxyName,"test-url":e.testUrl,class:t([`shrink-0`,{"animate-pulse":r(S)}]),onClick:g(re,[`stop`])},null,8,[`proxy-name`,`test-url`,`class`])],2),(k(),s(h,{to:`body`},[r(N)?(k(),o(`div`,{key:0,ref_key:`floating`,ref:D,style:f(r(P)),class:`z-50 w-max max-w-xs rounded-box bg-primary p-2.5 text-primary-content shadow-lg`,onMouseenter:ne,onMouseleave:Y},[i(`div`,{ref_key:`floatingArrow`,ref:M,class:`absolute size-2 rotate-45 bg-primary`,style:f(r(ee))},null,4),i(`div`,Fe,[i(`h2`,Ie,T(e.proxyName),1),r(C)?(k(),o(`div`,Le,` (`+T(r(C))+`) `,1)):O(``,!0),r(w).length>0?(k(),o(`ul`,Re,[(k(!0),o(a,null,x(r(w),(e,n)=>(k(),o(`li`,{key:n},[n>0?(k(),o(`hr`,ze)):O(``,!0),i(`div`,Be,[i(`time`,Ve,T(r(Ae.default)(e.time).format(`YYYY-MM-DD HH:mm:ss`)),1),i(`div`,{class:t([`badge block`,r(me)(e.delay,r(d).latencyQualityMap)])},T(e.delay||`---`),3)]),i(`div`,He,[p(r(z),{class:`size-4`})]),n===r(w).length-1?O(``,!0):(k(),o(`hr`,Ue))]))),128))])):(k(),o(`div`,We,T(r(m)(`noLatencyHistory`)),1))])],36)):O(``,!0)]))],34)],2)}}}),Ke=Object.assign(Ge,{__name:`ProxyNodeListItem`}),qe=u(le(),1),Je={key:0,class:`indicator-item badge badge-xs badge-info`},Ye={class:`card-title line-clamp-1 text-start text-sm break-all`},Xe={class:`card-actions items-end justify-between gap-1`},Ze={class:`flex flex-col gap-0.5`},Qe={class:`text-xs font-semibold uppercase opacity-75`},$e={class:`flex flex-col items-center gap-2`},et={class:`text-lg font-bold`},tt={key:0,class:`w-full text-xs uppercase`},nt={key:1,class:`timeline timeline-vertical timeline-compact max-h-60 overflow-y-auto timeline-snap-icon`},rt={key:0},it={class:`timeline-start space-y-2`},at={class:`text-sm italic`},ot={class:`timeline-middle`},st={key:1},ct={key:2,class:`text-sm opacity-75`},lt=e({__name:`ProxyNodeCard`,props:{proxyName:{},testUrl:{},timeout:{},isSelected:{type:Boolean,default:!1}},emits:[`click`],setup(e,{emit:n}){let c=e,l=n,u=Q(),d=F(),{t:m}=A(),v=_(()=>u.proxyNodeMap[c.proxyName]),y=_(()=>fe(v.value?.type||``,m)),b=_(()=>v.value?.xudp||v.value?.udp),S=_(()=>u.proxyLatencyTestingMap[c.proxyName]||!1),C=_(()=>de(v.value?.type)?`(${[v.value?.xudp&&`xudp`,v.value?.udp&&`udp`,v.value?.tfo&&`TFO`].filter(Boolean).join(` / `)})`:null),w=_(()=>u.getLatencyHistoryByName(c.proxyName,c.testUrl).toReversed()),E=j(null),D=j(null),M=j(null),N=j(!1),{floatingStyles:P,middlewareData:I,placement:L}=U(E,D,{placement:`top`,middleware:[V(10),H(),W({padding:8}),K({element:M})],whileElementsMounted:G}),ee=_(()=>{let e=I.value.arrow,t={top:`bottom`,right:`left`,bottom:`top`,left:`right`}[L.value.split(`-`)[0]||`top`]||`bottom`;return{left:e?.x==null?``:`${e.x}px`,top:e?.y==null?``:`${e.y}px`,[t]:`-4px`}}),R=null,B=null;function q(){R&&=(clearTimeout(R),null),B&&=(clearTimeout(B),null)}function J(){q(),R=setTimeout(()=>{N.value=!0},300)}function te(){q(),B=setTimeout(()=>{N.value=!1},100)}function ne(){q()}function Y(){q(),N.value=!1}function X(){l(`click`)}function re(){u.proxyLatencyTest(c.proxyName,v.value?.provider||``,c.testUrl,c.timeout)}return(n,c)=>{let l=$;return k(),o(`div`,{class:t([`relative`,e.isSelected?`z-10`:`z-0`])},[i(`div`,{ref_key:`reference`,ref:E,class:t([`indicator card relative w-full transition-all duration-300`,[e.isSelected?`animate-glow-pulse scale-[1.02] bg-primary text-primary-content`:`bg-neutral text-neutral-content hover:scale-[1.01] hover:shadow-md`]]),onMouseenter:J,onMouseleave:te},[r(b)?(k(),o(`div`,Je,`U`)):O(``,!0),i(`div`,{class:t([`card-body gap-1 space-y-1 p-2.5`,{"cursor-pointer":!!X}]),onClick:X},[i(`h2`,Ye,T(e.proxyName),1),i(`div`,Xe,[i(`div`,Ze,[i(`div`,Qe,T(r(y)),1)]),p(l,{"proxy-name":e.proxyName,"test-url":e.testUrl,class:t({"animate-pulse":r(S)}),onClick:g(re,[`stop`])},null,8,[`proxy-name`,`test-url`,`class`])])],2),(k(),s(h,{to:`body`},[r(N)?(k(),o(`div`,{key:0,ref_key:`floating`,ref:D,style:f(r(P)),class:`z-50 w-max max-w-xs rounded-box bg-primary p-2.5 text-primary-content shadow-lg`,onMouseenter:ne,onMouseleave:Y},[i(`div`,{ref_key:`floatingArrow`,ref:M,class:`absolute size-2 rotate-45 bg-primary`,style:f(r(ee))},null,4),i(`div`,$e,[i(`h2`,et,T(e.proxyName),1),r(C)?(k(),o(`div`,tt,T(r(C)),1)):O(``,!0),r(w).length>0?(k(),o(`ul`,nt,[(k(!0),o(a,null,x(r(w),(e,n)=>(k(),o(`li`,{key:n},[n>0?(k(),o(`hr`,rt)):O(``,!0),i(`div`,it,[i(`time`,at,T(r(qe.default)(e.time).format(`YYYY-MM-DD HH:mm:ss`)),1),i(`div`,{class:t([`badge block`,r(me)(e.delay,r(d).latencyQualityMap)])},T(e.delay||`---`),3)]),i(`div`,ot,[p(r(z),{class:`size-4`})]),n===r(w).length-1?O(``,!0):(k(),o(`hr`,st))]))),128))])):(k(),o(`div`,ct,T(r(m)(`noLatencyHistory`)),1))])],36)):O(``,!0)]))],34)],2)}}}),ut=Object.assign(lt,{__name:`ProxyNodeCard`}),dt=u(le(),1),ft={class:`flex items-center gap-2 pt-1`},pt=[`value`],mt={class:`badge badge-sm badge-secondary`},ht={class:`flex flex-wrap items-center justify-between`},gt={class:`text-sm text-slate-500`},_t={class:`text-sm text-slate-500`},vt=e({__name:`SubscriptionInfo`,props:{subscriptionInfo:{}},setup(e){let t=e,{t:n}=A(),s=_(()=>t.subscriptionInfo?oe(t.subscriptionInfo.Total||0,{units:`iec`}).toString():`0 B`),c=_(()=>{if(!t.subscriptionInfo)return`0 B`;let{Download:e=0,Upload:n=0}=t.subscriptionInfo;return oe(e+n,{units:`iec`}).toString()}),l=_(()=>{if(!t.subscriptionInfo?.Total)return 0;let{Download:e=0,Upload:n=0,Total:r=1}=t.subscriptionInfo;return Math.min(Number(((e+n)/r*100).toFixed(1)),999)}),u=_(()=>t.subscriptionInfo?.Expire?(0,dt.default)(t.subscriptionInfo.Expire*1e3).format(`YYYY-MM-DD`):n(`noExpire`));return(t,d)=>e.subscriptionInfo?(k(),o(a,{key:0},[i(`div`,ft,[i(`progress`,{class:`progress`,value:r(l),max:`100`},null,8,pt),i(`div`,mt,T(r(l))+`%`,1)]),i(`div`,ht,[i(`div`,gt,T(r(c))+` / `+T(r(s)),1),i(`div`,_t,T(r(n)(`expire`))+`: `+T(r(u)),1)])],64)):O(``,!0)}}),yt=Object.assign(vt,{__name:`SubscriptionInfo`}),bt=e({__name:`Collapse`,props:{isOpen:{type:Boolean,default:!1}},emits:[`collapse`],setup(e,{emit:n}){let a=n,s=F(),c=_(()=>s.proxiesDisplayMode===N.LIST);return(n,s)=>(k(),o(`div`,{class:t([`collapse-arrow collapse border-secondary bg-base-200 shadow-md select-none`,e.isOpen?`collapse-open`:`collapse-close`])},[i(`div`,{class:`collapse-title pr-4 text-xl font-medium after:top-8!`,onClick:s[0]||=t=>a(`collapse`,!e.isOpen)},[E(n.$slots,`title`)]),i(`div`,{class:t([`collapse-content transition-opacity duration-1000`,[e.isOpen?`opacity-100`:`opacity-0`,r(c)?`isolate flex flex-col gap-2`:`isolate grid gap-2`]]),style:f(r(c)?void 0:`grid-template-columns: repeat(auto-fill, minmax(200px, 1fr))`)},[e.isOpen?E(n.$slots,`default`,{key:0}):O(``,!0)],6)],2))}}),xt=Object.assign(bt,{__name:`Collapse`}),St={key:0,class:`flex gap-2`},Ct={class:`isolate flex-1 space-y-2`},wt={class:`isolate flex-1 space-y-2`},Tt={key:1,class:`isolate space-y-2`},Et=e({__name:`ProxiesRenderWrapper`,setup(e,{expose:t}){let n=F(),{width:a}=d(),s=_(()=>a.value>480),c=_(()=>n.renderProxiesInTwoColumns&&s.value);return t({isTwoColumns:c}),(e,t)=>r(c)?(k(),o(`div`,St,[i(`div`,Ct,[E(e.$slots,`even`)]),i(`div`,wt,[E(e.$slots,`odd`)])])):(k(),o(`div`,Tt,[E(e.$slots,`default`)]))}}),Dt=Object.assign(Et,{__name:`ProxiesRenderWrapper`}),Ot={class:`flex h-full flex-col gap-2 overflow-y-auto`},kt={class:`flex items-center gap-2`},At={class:`tabs-box tabs gap-2 tabs-sm`},jt=[`onClick`],Mt={class:`badge badge-sm`},Nt={class:`ml-auto`},Pt={key:0,class:`flex-1 overflow-y-auto`},Ft={key:1,class:`flex-1 overflow-y-auto`},It={class:`flex flex-col gap-4`},Lt={class:`flex w-full justify-center`},Rt={class:`flex flex-col`},zt={value:`orderNatural`},Bt={value:`orderLatency_asc`},Vt={value:`orderLatency_desc`},Ht={value:`orderName_asc`},Ut={value:`orderName_desc`},Wt={class:`flex w-full justify-center`},Gt={class:`flex w-full justify-center`},Kt={value:`cardMode`},qt={value:`listMode`},Jt={value:`auto`},Yt={value:`dots`},Xt={value:`bar`},Zt={value:`off`},Qt=e({__name:`proxies`,setup(n){let{t:l,locale:u}=A();w({title:_(()=>l(`proxies`))});let d=Q(),f=ae(),h=F(),g=j(`proxies`),E=j(),N=j(),P=j(),z=e=>oe(e).toString(),V=_(()=>d.proxies.filter(e=>!e.hidden)),H=_(()=>[{type:`proxies`,name:l(`proxies`),count:V.value.length},{type:`proxyProviders`,name:l(`proxyProviders`),count:d.proxyProviders.length}]);function U(e){return ue({proxyNames:ce({proxyNames:e.all??[],orderingType:h.proxiesOrderingType,testUrl:e.testUrl||null,getLatencyByName:d.getLatencyByName,latencyQualityMap:h.latencyQualityMap,urlForLatencyTest:h.urlForLatencyTest}),enabled:h.hideUnAvailableProxies,testUrl:e.testUrl||null,getLatencyByName:d.getLatencyByName,isProxyGroup:d.isProxyGroup,latencyQualityMap:h.latencyQualityMap,urlForLatencyTest:h.urlForLatencyTest})}function W(e){return ce({proxyNames:e.proxies.map(e=>e.name),orderingType:h.proxiesOrderingType,testUrl:e.testUrl,getLatencyByName:d.getLatencyByName,latencyQualityMap:h.latencyQualityMap,urlForLatencyTest:h.urlForLatencyTest})}b(()=>{d.fetchProxies()});let G=e({props:{proxyGroup:{type:Object,required:!0},sortedProxyNames:{type:Array,required:!0}},setup(e){return()=>S(`div`,{class:`space-y-2`},[S(`div`,{class:`flex items-center justify-between pr-8`},[S(`div`,{class:`flex items-center`},[e.proxyGroup.icon&&(e.proxyGroup.icon.startsWith(`data:image/svg+xml`)?S(`div`,{style:{height:`${h.iconHeight}px`,width:`${h.iconHeight}px`,color:`oklch(var(--p) / var(--tw-bg-opacity))`,backgroundColor:`currentColor`,marginRight:`${h.iconMarginRight}px`,maskImage:`url('${pe(e.proxyGroup.icon)}')`,maskSize:`100% 100%`}}):S(`img`,{src:e.proxyGroup.icon,style:{height:`${h.iconHeight}px`,marginRight:`${h.iconMarginRight}px`}})),S(`span`,e.proxyGroup.name),S(`div`,{class:`badge badge-sm ml-2`},e.proxyGroup.all?.length)]),S(Z,{class:`btn-circle btn-sm`,disabled:d.proxyGroupLatencyTestingMap[e.proxyGroup.name],onClick:t=>{t.stopPropagation(),d.proxyGroupLatencyTest(e.proxyGroup.name)}},()=>S(I,{class:{"animate-pulse text-success":d.proxyGroupLatencyTestingMap[e.proxyGroup.name]}}))]),S(`div`,{class:`flex flex-wrap items-center justify-between gap-2`},[S(`div`,{class:`badge badge-primary badge-sm`},[S(`span`,{class:`font-bold`},fe(e.proxyGroup.type,l)),e.proxyGroup.now?.length>0&&[S(L,{size:18}),S(`span`,{class:`whitespace-nowrap`},e.proxyGroup.now)]]),S(`div`,{class:`badge badge-secondary badge-sm`},`${z(f.speedGroupByName[e.proxyGroup.name]||0)}/s`)]),!d.collapsedMap[e.proxyGroup.name]&&S(ke,{proxyNameList:e.sortedProxyNames,now:e.proxyGroup.now,testUrl:e.proxyGroup.testUrl||null,onSelect:t=>d.selectProxyInGroup(e.proxyGroup,t)})])}}),K=e({props:{proxyGroup:{type:Object,required:!0},sortedProxyNames:{type:Array,required:!0}},setup(e){return()=>e.sortedProxyNames.map(t=>h.proxiesDisplayMode===`listMode`?S(Ke,{key:t,proxyName:t,testUrl:e.proxyGroup.testUrl||null,timeout:e.proxyGroup.timeout??null,isSelected:e.proxyGroup.now===t,onClick:()=>d.selectProxyInGroup(e.proxyGroup,t)}):S(ut,{key:t,proxyName:t,testUrl:e.proxyGroup.testUrl||null,timeout:e.proxyGroup.timeout??null,isSelected:e.proxyGroup.now===t,onClick:()=>d.selectProxyInGroup(e.proxyGroup,t)}))}}),q=e({props:{provider:{type:Object,required:!0},sortedProxyNames:{type:Array,required:!0}},setup(e){return()=>S(`div`,[S(`div`,{class:`flex items-center justify-between pr-8`},[S(`div`,{class:`flex flex-wrap items-center gap-1`},[S(`span`,{class:`line-clamp-1 break-all`},e.provider.name),S(`div`,{class:`badge badge-sm`},e.provider.proxies.length),S(`div`,{class:`badge badge-sm`},e.provider.vehicleType)]),S(`div`,{class:`flex items-center gap-2`},[S(Z,{class:`btn btn-circle btn-sm`,disabled:d.updatingMap[e.provider.name],onClick:t=>{t.stopPropagation(),d.updateProviderByProviderName(e.provider.name)}},()=>S(R,{class:{"animate-spin text-success":d.updatingMap[e.provider.name]}})),S(Z,{class:`btn btn-circle btn-sm`,disabled:d.proxyProviderLatencyTestingMap[e.provider.name],onClick:t=>{t.stopPropagation(),d.proxyProviderLatencyTest(e.provider.name)}},()=>S(I,{class:{"animate-pulse text-success":d.proxyProviderLatencyTestingMap[e.provider.name]}}))])]),S(yt,{subscriptionInfo:e.provider.subscriptionInfo}),S(`div`,{class:`flex flex-col gap-2`},[S(`div`,{class:`text-sm text-slate-500`},`${l(`updated`)} ${se(e.provider.updatedAt,u.value)}`),!d.collapsedMap[e.provider.name]&&S(ke,{proxyNameList:e.sortedProxyNames,testUrl:e.provider.testUrl})])])}}),J=e({props:{provider:{type:Object,required:!0},sortedProxyNames:{type:Array,required:!0}},setup(e){return()=>e.sortedProxyNames.map(t=>h.proxiesDisplayMode===`listMode`?S(Ke,{key:t,proxyName:t,testUrl:e.provider.testUrl,timeout:e.provider.timeout??null}):S(ut,{key:t,proxyName:t,testUrl:e.provider.testUrl,timeout:e.provider.timeout??null}))}});return(e,n)=>{let u=xt,f=Dt,_=he,b=ge;return k(),o(`div`,Ot,[i(`div`,kt,[i(`div`,At,[(k(!0),o(a,null,x(r(H),e=>(k(),o(`button`,{key:e.type,class:t([`sm:tab-md tab gap-2 px-2`,{"bg-primary text-neutral!":r(g)===e.type}]),onClick:t=>g.value=e.type},[i(`span`,null,T(e.name),1),i(`div`,Mt,T(e.count),1)],10,jt))),128))]),r(g)===`proxyProviders`?(k(),s(Z,{key:0,class:`btn btn-circle btn-sm`,disabled:r(d).isAllProviderUpdating,onClick:r(d).updateAllProvider},{default:C(()=>[p(r(R),{class:t({"animate-spin text-success":r(d).isAllProviderUpdating})},null,8,[`class`])]),_:1},8,[`disabled`,`onClick`])):O(``,!0),i(`div`,Nt,[p(Z,{class:`btn-circle btn-sm btn-primary`,onClick:n[0]||=e=>r(E)?.open()},{default:C(()=>[p(r(B))]),_:1})])]),r(g)===`proxies`?(k(),o(`div`,Pt,[p(f,{ref_key:`proxyGroupsWrapper`,ref:N},v({_:2},[r(N)?.isTwoColumns?{name:`even`,fn:C(()=>[(k(!0),o(a,null,x(r(V).filter((e,t)=>t%2==0),(e,t)=>(k(),s(u,{key:e.name,"is-open":r(d).collapsedMap[e.name]||!1,onCollapse:t=>r(d).collapsedMap[e.name]=t},{title:C(()=>[p(r(G),{"proxy-group":e,"sorted-proxy-names":U(e)},null,8,[`proxy-group`,`sorted-proxy-names`])]),default:C(()=>[p(r(K),{"proxy-group":e,"sorted-proxy-names":U(e)},null,8,[`proxy-group`,`sorted-proxy-names`])]),_:2},1032,[`is-open`,`onCollapse`]))),128))]),key:`0`}:void 0,r(N)?.isTwoColumns?{name:`odd`,fn:C(()=>[(k(!0),o(a,null,x(r(V).filter((e,t)=>t%2==1),(e,t)=>(k(),s(u,{key:e.name,"is-open":r(d).collapsedMap[e.name]||!1,onCollapse:t=>r(d).collapsedMap[e.name]=t},{title:C(()=>[p(r(G),{"proxy-group":e,"sorted-proxy-names":U(e)},null,8,[`proxy-group`,`sorted-proxy-names`])]),default:C(()=>[p(r(K),{"proxy-group":e,"sorted-proxy-names":U(e)},null,8,[`proxy-group`,`sorted-proxy-names`])]),_:2},1032,[`is-open`,`onCollapse`]))),128))]),key:`1`}:void 0,r(N)?.isTwoColumns?void 0:{name:`default`,fn:C(()=>[(k(!0),o(a,null,x(r(V),e=>(k(),s(u,{key:e.name,"is-open":r(d).collapsedMap[e.name]||!1,onCollapse:t=>r(d).collapsedMap[e.name]=t},{title:C(()=>[p(r(G),{"proxy-group":e,"sorted-proxy-names":U(e)},null,8,[`proxy-group`,`sorted-proxy-names`])]),default:C(()=>[p(r(K),{"proxy-group":e,"sorted-proxy-names":U(e)},null,8,[`proxy-group`,`sorted-proxy-names`])]),_:2},1032,[`is-open`,`onCollapse`]))),128))]),key:`2`}]),1536)])):(k(),o(`div`,Ft,[p(f,{ref_key:`providersWrapper`,ref:P},v({_:2},[r(P)?.isTwoColumns?{name:`even`,fn:C(()=>[(k(!0),o(a,null,x(r(d).proxyProviders.filter((e,t)=>t%2==0),e=>(k(),s(u,{key:e.name,"is-open":r(d).collapsedMap[e.name]||!1,onCollapse:t=>r(d).collapsedMap[e.name]=t},{title:C(()=>[p(r(q),{provider:e,"sorted-proxy-names":W(e)},null,8,[`provider`,`sorted-proxy-names`])]),default:C(()=>[p(r(J),{provider:e,"sorted-proxy-names":W(e)},null,8,[`provider`,`sorted-proxy-names`])]),_:2},1032,[`is-open`,`onCollapse`]))),128))]),key:`0`}:void 0,r(P)?.isTwoColumns?{name:`odd`,fn:C(()=>[(k(!0),o(a,null,x(r(d).proxyProviders.filter((e,t)=>t%2==1),e=>(k(),s(u,{key:e.name,"is-open":r(d).collapsedMap[e.name]||!1,onCollapse:t=>r(d).collapsedMap[e.name]=t},{title:C(()=>[p(r(q),{provider:e,"sorted-proxy-names":W(e)},null,8,[`provider`,`sorted-proxy-names`])]),default:C(()=>[p(r(J),{provider:e,"sorted-proxy-names":W(e)},null,8,[`provider`,`sorted-proxy-names`])]),_:2},1032,[`is-open`,`onCollapse`]))),128))]),key:`1`}:void 0,r(P)?.isTwoColumns?void 0:{name:`default`,fn:C(()=>[(k(!0),o(a,null,x(r(d).proxyProviders,e=>(k(),s(u,{key:e.name,"is-open":r(d).collapsedMap[e.name]||!1,onCollapse:t=>r(d).collapsedMap[e.name]=t},{title:C(()=>[p(r(q),{provider:e,"sorted-proxy-names":W(e)},null,8,[`provider`,`sorted-proxy-names`])]),default:C(()=>[p(r(J),{provider:e,"sorted-proxy-names":W(e)},null,8,[`provider`,`sorted-proxy-names`])]),_:2},1032,[`is-open`,`onCollapse`]))),128))]),key:`2`}]),1536)])),p(b,{ref_key:`settingsModal`,ref:E,title:r(l)(`proxiesSettings`)},{icon:C(()=>[p(r(ee),{size:24})]),default:C(()=>[i(`div`,It,[i(`div`,null,[p(_,{"with-divider":``},{default:C(()=>[y(T(r(l)(`autoCloseConns`)),1)]),_:1}),i(`div`,Lt,[D(i(`input`,{"onUpdate:modelValue":n[1]||=e=>r(h).autoCloseConns=e,class:`toggle`,type:`checkbox`},null,512),[[c,r(h).autoCloseConns]])])]),i(`div`,Rt,[p(_,{"with-divider":``},{default:C(()=>[y(T(r(l)(`urlForLatencyTest`)),1)]),_:1}),D(i(`input`,{"onUpdate:modelValue":n[2]||=e=>r(h).urlForLatencyTest=e,class:`input w-full`,type:`text`},null,512),[[M,r(h).urlForLatencyTest]])]),i(`div`,null,[p(_,{"with-divider":``},{default:C(()=>[y(T(r(l)(`latencyTestTimeoutDuration`))+` (`+T(r(l)(`ms`))+`) `,1)]),_:1}),D(i(`input`,{"onUpdate:modelValue":n[3]||=e=>r(h).latencyTestTimeoutDuration=e,class:`input w-full`,type:`number`},null,512),[[M,r(h).latencyTestTimeoutDuration,void 0,{number:!0}]])]),i(`div`,null,[p(_,{"with-divider":``},{default:C(()=>[y(T(r(l)(`proxiesSorting`)),1)]),_:1}),D(i(`select`,{"onUpdate:modelValue":n[4]||=e=>r(h).proxiesOrderingType=e,class:`select w-full`},[i(`option`,zt,T(r(l)(`orderNatural`)),1),i(`option`,Bt,T(r(l)(`orderLatency_asc`)),1),i(`option`,Vt,T(r(l)(`orderLatency_desc`)),1),i(`option`,Ht,T(r(l)(`orderName_asc`)),1),i(`option`,Ut,T(r(l)(`orderName_desc`)),1)],512),[[m,r(h).proxiesOrderingType]])]),i(`div`,null,[p(_,{"with-divider":``},{default:C(()=>[y(T(r(l)(`hideUnavailableProxies`)),1)]),_:1}),i(`div`,Wt,[D(i(`input`,{"onUpdate:modelValue":n[5]||=e=>r(h).hideUnAvailableProxies=e,class:`toggle`,type:`checkbox`},null,512),[[c,r(h).hideUnAvailableProxies]])])]),i(`div`,null,[p(_,{"with-divider":``},{default:C(()=>[y(T(r(l)(`renderInTwoColumns`)),1)]),_:1}),i(`div`,Gt,[D(i(`input`,{"onUpdate:modelValue":n[6]||=e=>r(h).renderProxiesInTwoColumns=e,class:`toggle`,type:`checkbox`},null,512),[[c,r(h).renderProxiesInTwoColumns]])])]),i(`div`,null,[p(_,{"with-divider":``},{default:C(()=>[y(T(r(l)(`proxiesDisplayMode`)),1)]),_:1}),D(i(`select`,{"onUpdate:modelValue":n[7]||=e=>r(h).proxiesDisplayMode=e,class:`select w-full`},[i(`option`,Kt,T(r(l)(`cardMode`)),1),i(`option`,qt,T(r(l)(`listMode`)),1)],512),[[m,r(h).proxiesDisplayMode]])]),i(`div`,null,[p(_,{"with-divider":``},{default:C(()=>[y(T(r(l)(`proxiesPreviewType`)),1)]),_:1}),D(i(`select`,{"onUpdate:modelValue":n[8]||=e=>r(h).proxiesPreviewType=e,class:`select w-full`},[i(`option`,Jt,T(r(l)(`auto`)),1),i(`option`,Yt,T(r(l)(`dots`)),1),i(`option`,Xt,T(r(l)(`bar`)),1),i(`option`,Zt,T(r(l)(`off`)),1)],512),[[m,r(h).proxiesPreviewType]])]),i(`div`,null,[p(_,{"with-divider":``},{default:C(()=>[y(T(r(l)(`iconHeight`)),1)]),_:1}),D(i(`input`,{"onUpdate:modelValue":n[9]||=e=>r(h).iconHeight=e,class:`input w-full`,type:`number`},null,512),[[M,r(h).iconHeight,void 0,{number:!0}]]),p(_,{"with-divider":``},{default:C(()=>[y(T(r(l)(`iconMarginRight`)),1)]),_:1}),D(i(`input`,{"onUpdate:modelValue":n[10]||=e=>r(h).iconMarginRight=e,class:`input w-full`,type:`number`},null,512),[[M,r(h).iconMarginRight,void 0,{number:!0}]])]),i(`div`,null,[i(`button`,{class:`btn w-full btn-error`,onClick:n[11]||=e=>r(h).resetProxiesSettings()},T(r(l)(`resetSettings`)),1)])])]),_:1},8,[`title`])])}}});export{Qt as default}; \ No newline at end of file +import{$ as e,Dt as t,E as n,Et as r,G as i,H as a,J as o,K as s,L as c,M as l,Mt as u,O as d,Ot as f,Q as p,R as m,U as h,V as g,W as _,Y as v,Z as y,at as b,ct as x,et as S,ft as C,j as w,kt as T,lt as E,pt as D,q as O,st as k,x as A,yt as j,z as M}from"./CxatB1L6.js";import{d as N,p as P}from"./_v7-ePgP.js";import{t as F}from"./BxUO6acX.js";import"./Dnb7sY_Q.js";import{L as I,N as L,T as ee,p as R,r as z,u as B}from"./BlFRk3uc.js";import{a as V,i as H,n as U,o as W,r as G,t as K}from"./B_unqUh-.js";import{c as q,d as J,f as te,i as ne,m as Y,p as X,s as re,u as ie}from"./DRJWd5jk.js";import{n as ae,t as oe}from"./4_-5c3is.js";import{c as se,f as ce,h as le,n as ue,r as de,s as fe,t as pe,u as me}from"./D8VGDxpn.js";import{t as he}from"./B_hS8f_s.js";import{t as Z}from"./DP7SiUGW.js";import{t as ge}from"./D4Jc__Wf.js";const Q=l(`proxies`,()=>{let e=F(),t=ae(),r=j([]),i=j([]),a=j({}),o=j({}),s=j({}),c=j({}),l=j({}),u=j({}),d=j(!1),f=n(`collapsedMap`,{}),p=(t,n=!0)=>{let r=t.extra||{},i=Object.keys(r).reduce((t,n)=>{let i=r[n],a=i?.history?.at(-1)?.delay??e.latencyQualityMap.NOT_CONNECTED;return t.allTestUrlLatency[n]=a,t.allTestUrlLatencyHistory[n]=i?.history,t},{allTestUrlLatency:{},allTestUrlLatencyHistory:{}});if(n){let n=t.testUrl||e.urlForLatencyTest;if(!(n in i.allTestUrlLatency)){let r=t.history?.at(-1)?.delay??e.latencyQualityMap.NOT_CONNECTED;i.allTestUrlLatency[n]=r,i.allTestUrlLatencyHistory[n]=t.history}}return i},m=e=>{let t={...o.value},n={...a.value};e.forEach(e=>{let{allTestUrlLatency:r,allTestUrlLatencyHistory:i}=p(e),{udp:a,xudp:o,type:s,now:c,name:l,tfo:u,provider:d=``}=e;t[e.name]={udp:a,xudp:o,type:s,latency:c,latencyTestHistory:i,name:l,tfo:u,provider:d},n[e.name]=r}),o.value=t,a.value=n},h=async()=>{let[{providers:e},{proxies:t}]=await Promise.all([q(),re()]),n=Object.values(t).map(t=>{if(t.all?.length&&!t.testUrl){let{testUrl:n,timeout:r}=e?.[t.name]||{};return{...t,testUrl:n,timeout:r}}return t}),a=[...t.GLOBAL?.all??[],`GLOBAL`],o=Object.values(n).filter(e=>e.all?.length).sort((e,t)=>a.indexOf(e.name)-a.indexOf(t.name)),s=Object.values(e).filter(e=>e.name!==`default`&&e.vehicleType!==`Compatible`),c=[...n,...s.flatMap(e=>e.proxies.filter(e=>!(e.name in t)).map(t=>({...t,provider:e.name})))];r.value=o,i.value=s,m(c)},g=async(n,r)=>{if(await X(n.name,r),await h(),e.autoCloseConns){let e=t.restructRawMsgToConnection(t.latestConnectionMsg?.connections??[],[]);e.length>0&&e.forEach(({id:e,chains:t})=>{t.includes(n.name)&&ne(e)})}},_=e=>{let t=o.value[e];if(!e||!t)return e;for(;t&&t.latency&&t.latency!==t.name;){let e=o.value[t.latency];if(!e)return t.name;t=e}return t?.name??e};return{proxies:r,proxyProviders:i,latencyMap:a,proxyNodeMap:o,proxyLatencyTestingMap:s,proxyGroupLatencyTestingMap:c,proxyProviderLatencyTestingMap:l,updatingMap:u,isAllProviderUpdating:d,collapsedMap:f,fetchProxies:h,selectProxyInGroup:g,getNowProxyNodeName:_,getLatencyByName:(t,n)=>{let r=n||e.urlForLatencyTest,i=a.value,o=_(t),s=i[o]?.[r],c=i[t]?.[r];if(s!=null)return s;if(c!=null)return c;let l=i[o];if(l&&Object.keys(l).length>0){let e=Object.keys(l),t=l[r]==null?e[0]:r;if(t)return l[t]}let u=i[t];if(u&&Object.keys(u).length>0){let e=Object.keys(u);if(e[0])return u[e[0]]}return e.latencyQualityMap.NOT_CONNECTED},getLatencyHistoryByName:(t,n)=>{let r=o.value[t],i=_(t),a=o.value[i],s=n||e.urlForLatencyTest,c=a?.latencyTestHistory[s]||r?.latencyTestHistory[s];if(c&&c.length)return c;let l=a?.latencyTestHistory||{},u=Object.keys(l)[0];if(u){let e=l[u];if(e&&e.length)return e}let d=r?.latencyTestHistory||{},f=Object.keys(d)[0];if(f){let e=d[f];if(e&&e.length)return e}return[]},isProxyGroup:e=>{let t=o.value[e];return t?[`direct`,`reject`,`loadbalance`].includes(t.type.toLowerCase())||!!t.latency:!1},proxyLatencyTest:async(t,n,r,i)=>{let o=_(t);s.value[o]=!0;try{let t=r||e.urlForLatencyTest,s=a.value?.[o]||{},{delay:c}=await J(o,n,t,i??e.latencyTestTimeoutDuration);s[t]=c,a.value={...a.value,[o]:s}}catch{let t=r||e.urlForLatencyTest,n=a.value?.[o]||{};n[t]=e.latencyQualityMap.NOT_CONNECTED,a.value={...a.value,[o]:n}}finally{s.value[o]=!1}},proxyGroupLatencyTest:async t=>{c.value[t]=!0;try{let n=r.value.find(e=>e.name===t);await ie(t,n?.testUrl||e.urlForLatencyTest,n?.timeout??e.latencyTestTimeoutDuration),await h()}finally{c.value[t]=!1}},updateProviderByProviderName:async e=>{u.value[e]=!0;try{await Y(e)}catch{}await h(),u.value[e]=!1},updateAllProvider:async()=>{d.value=!0;try{await Promise.allSettled(i.value.map(e=>Y(e.name))),await h()}finally{d.value=!1}},proxyProviderLatencyTest:async e=>{l.value[e]=!0;try{await te(e),await h()}finally{l.value[e]=!1}}}});var _e={key:0,class:`loading loading-sm loading-infinity`},ve=e({__name:`Latency`,props:{proxyName:{},testUrl:{},class:{}},emits:[`click`],setup(e){let n=e,i=Q(),s=F(),c=_(()=>n.class||``),l=_(()=>i.getLatencyByName(n.proxyName,n.testUrl)),u=_(()=>i.proxyLatencyTestingMap[n.proxyName]||!1),d=_(()=>me(l.value,s.latencyQualityMap)),f=_(()=>l.value||`---`);return(e,n)=>(k(),o(`span`,{class:t([`badge flex w-11 items-center justify-center whitespace-nowrap`,[r(d),r(c)]]),onClick:n[0]||=t=>e.$emit(`click`,t)},[r(u)?(k(),o(`span`,_e)):(k(),o(a,{key:1},[y(T(r(f)),1)],64))],2))}}),$=Object.assign(ve,{__name:`Latency`}),ye={class:`flex items-center gap-2`},be={class:`my-1 flex flex-1 items-center justify-center overflow-hidden rounded-2xl *:h-2`},xe=e({__name:`ProxyPreviewBar`,props:{proxyNameList:{},testUrl:{},now:{}},setup(e){let t=e,n=Q(),a=F(),c=_(()=>t.proxyNameList.map(e=>n.getLatencyByName(e,t.testUrl))),l=_(()=>c.value.length||1),u=_(()=>c.value.filter(e=>e>a.latencyQualityMap.NOT_CONNECTED&&e<=a.latencyQualityMap.MEDIUM).length),d=_(()=>c.value.filter(e=>e>a.latencyQualityMap.MEDIUM&&e<=a.latencyQualityMap.HIGH).length),p=_(()=>c.value.filter(e=>e>a.latencyQualityMap.HIGH).length),m=_(()=>c.value.filter(e=>e===a.latencyQualityMap.NOT_CONNECTED).length),h=_(()=>u.value*100/l.value),g=_(()=>d.value*100/l.value),v=_(()=>p.value*100/l.value),y=_(()=>m.value*100/l.value);return(t,n)=>{let a=$;return k(),o(`div`,ye,[i(`div`,be,[i(`div`,{class:`bg-green-600`,style:f({width:`${r(h)}%`})},null,4),i(`div`,{class:`bg-yellow-500`,style:f({width:`${r(g)}%`})},null,4),i(`div`,{class:`bg-red-500`,style:f({width:`${r(v)}%`})},null,4),i(`div`,{class:`bg-neutral`,style:f({width:`${r(y)}%`})},null,4)]),e.now?(k(),s(a,{key:0,"proxy-name":e.now,"test-url":e.testUrl},null,8,[`proxy-name`,`test-url`])):O(``,!0)])}}}),Se=Object.assign(xe,{__name:`ProxyPreviewBar`}),Ce={class:`flex items-center gap-2`},we={class:`flex flex-1 flex-wrap items-center gap-1`},Te=[`title`,`onClick`],Ee=e({__name:`ProxyPreviewDots`,props:{proxyNameList:{},testUrl:{},now:{},onSelect:{type:Function}},setup(e){let n=e,c=Q(),l=F(),u=_(()=>n.proxyNameList.map(e=>[e,c.getLatencyByName(e,n.testUrl)]));function d(e,t){let n=l.latencyQualityMap.NOT_CONNECTED,r=l.latencyQualityMap.MEDIUM,i=l.latencyQualityMap.HIGH;return typeof e!=`number`||e===n?t?`bg-white border-4 border-neutral`:`bg-neutral`:e>i?t?`bg-white border-4 border-red-500`:`bg-red-500`:e>r?t?`bg-white border-4 border-yellow-500`:`bg-yellow-500`:t?`bg-white border-4 border-green-600`:`bg-green-600`}return(n,c)=>{let l=$;return k(),o(`div`,Ce,[i(`div`,we,[(k(!0),o(a,null,x(r(u),([n,r])=>(k(),o(`div`,{key:n,class:t([`h-4 w-4 rounded-full`,[d(r,n===e.now),e.onSelect&&`cursor-pointer transition-transform hover:scale-125`]]),title:n,onClick:g(t=>e.onSelect&&e.onSelect(n),[`stop`])},null,10,Te))),128))]),e.now?(k(),s(l,{key:0,"proxy-name":e.now,"test-url":e.testUrl},null,8,[`proxy-name`,`test-url`])):O(``,!0)])}}}),De=Object.assign(Ee,{__name:`ProxyPreviewDots`}),Oe=e({__name:`ProxyNodePreview`,props:{proxyNameList:{},testUrl:{},now:{},onSelect:{type:Function}},setup(e){let t=e,n=F(),i=_(()=>n.proxiesPreviewType===P.OFF),c=_(()=>t.proxyNameList.length<=10),l=_(()=>{let e=n.proxiesPreviewType;return e===P.BAR||e===P.Auto&&!c.value}),u=_(()=>{let e=n.proxiesPreviewType;return e===P.DOTS||e===P.Auto&&c.value});return(t,n)=>{let c=Se,d=De;return r(i)?O(``,!0):(k(),o(a,{key:0},[r(l)?(k(),s(c,{key:0,"proxy-name-list":e.proxyNameList,"test-url":e.testUrl,now:e.now},null,8,[`proxy-name-list`,`test-url`,`now`])):r(u)?(k(),s(d,{key:1,"proxy-name-list":e.proxyNameList,"test-url":e.testUrl,now:e.now,"on-select":e.onSelect},null,8,[`proxy-name-list`,`test-url`,`now`,`on-select`])):O(``,!0)],64))}}}),ke=Object.assign(Oe,{__name:`ProxyNodePreview`}),Ae=u(le(),1),je={class:`min-w-0 flex-1 truncate text-sm font-medium`},Me={key:1,class:`badge shrink-0 badge-xs badge-info`},Ne={key:2,class:`hidden text-xs uppercase opacity-60 sm:inline`},Pe={class:`hidden text-xs uppercase opacity-75 sm:inline`},Fe={class:`flex flex-col items-center gap-2`},Ie={class:`text-lg font-bold`},Le={key:0,class:`w-full text-xs uppercase`},Re={key:1,class:`timeline timeline-vertical timeline-compact max-h-60 overflow-y-auto timeline-snap-icon`},ze={key:0},Be={class:`timeline-start space-y-2`},Ve={class:`text-sm italic`},He={class:`timeline-middle`},Ue={key:1},We={key:2,class:`text-sm opacity-75`},Ge=e({__name:`ProxyNodeListItem`,props:{proxyName:{},testUrl:{},timeout:{},isSelected:{type:Boolean,default:!1}},emits:[`click`],setup(e,{emit:n}){let c=e,l=n,u=Q(),d=F(),{t:m}=A(),v=_(()=>u.proxyNodeMap[c.proxyName]),y=_(()=>fe(v.value?.type||``,m)),b=_(()=>v.value?.xudp||v.value?.udp),S=_(()=>u.proxyLatencyTestingMap[c.proxyName]||!1),C=_(()=>!v.value||!de(v.value.type)?null:[v.value.xudp&&`xudp`,v.value.udp&&`udp`,v.value.tfo&&`TFO`].filter(Boolean).join(` / `)),w=_(()=>u.getLatencyHistoryByName(c.proxyName,c.testUrl).toReversed()),E=j(null),D=j(null),M=j(null),N=j(!1),{floatingStyles:P,middlewareData:I,placement:L}=U(E,D,{placement:`top`,middleware:[V(10),H(),W({padding:8}),K({element:M})],whileElementsMounted:G}),ee=_(()=>{let e=I.value.arrow,t={top:`bottom`,right:`left`,bottom:`top`,left:`right`}[L.value.split(`-`)[0]||`top`]||`bottom`;return{left:e?.x==null?``:`${e.x}px`,top:e?.y==null?``:`${e.y}px`,[t]:`-4px`}}),R=null,B=null;function q(){R&&=(clearTimeout(R),null),B&&=(clearTimeout(B),null)}function J(){q(),R=setTimeout(()=>{N.value=!0},300)}function te(){q(),B=setTimeout(()=>{N.value=!1},100)}function ne(){q()}function Y(){q(),N.value=!1}function X(){l(`click`)}function re(){u.proxyLatencyTest(c.proxyName,v.value?.provider||``,c.testUrl,c.timeout)}return(n,c)=>{let l=$;return k(),o(`div`,{class:t([`relative`,e.isSelected?`z-10`:`z-0`])},[i(`div`,{ref_key:`reference`,ref:E,class:t([`relative rounded-lg transition-all duration-300`,[e.isSelected?`animate-glow-pulse bg-primary text-primary-content`:`bg-neutral text-neutral-content hover:shadow-md`]]),onMouseenter:J,onMouseleave:te},[i(`div`,{class:t([`flex items-center gap-2 px-3 py-1.5`,{"cursor-pointer hover:opacity-80":!!X}]),onClick:X},[e.isSelected?(k(),s(r(z),{key:0,class:`size-4 shrink-0`})):O(``,!0),i(`span`,je,T(e.proxyName),1),r(b)?(k(),o(`span`,Me,`U`)):O(``,!0),r(C)?(k(),o(`span`,Ne,T(r(C)),1)):O(``,!0),i(`span`,Pe,T(r(y)),1),p(l,{"proxy-name":e.proxyName,"test-url":e.testUrl,class:t([`shrink-0`,{"animate-pulse":r(S)}]),onClick:g(re,[`stop`])},null,8,[`proxy-name`,`test-url`,`class`])],2),(k(),s(h,{to:`body`},[r(N)?(k(),o(`div`,{key:0,ref_key:`floating`,ref:D,style:f(r(P)),class:`z-50 w-max max-w-xs rounded-box bg-primary p-2.5 text-primary-content shadow-lg`,onMouseenter:ne,onMouseleave:Y},[i(`div`,{ref_key:`floatingArrow`,ref:M,class:`absolute size-2 rotate-45 bg-primary`,style:f(r(ee))},null,4),i(`div`,Fe,[i(`h2`,Ie,T(e.proxyName),1),r(C)?(k(),o(`div`,Le,` (`+T(r(C))+`) `,1)):O(``,!0),r(w).length>0?(k(),o(`ul`,Re,[(k(!0),o(a,null,x(r(w),(e,n)=>(k(),o(`li`,{key:n},[n>0?(k(),o(`hr`,ze)):O(``,!0),i(`div`,Be,[i(`time`,Ve,T(r(Ae.default)(e.time).format(`YYYY-MM-DD HH:mm:ss`)),1),i(`div`,{class:t([`badge block`,r(me)(e.delay,r(d).latencyQualityMap)])},T(e.delay||`---`),3)]),i(`div`,He,[p(r(z),{class:`size-4`})]),n===r(w).length-1?O(``,!0):(k(),o(`hr`,Ue))]))),128))])):(k(),o(`div`,We,T(r(m)(`noLatencyHistory`)),1))])],36)):O(``,!0)]))],34)],2)}}}),Ke=Object.assign(Ge,{__name:`ProxyNodeListItem`}),qe=u(le(),1),Je={key:0,class:`indicator-item badge badge-xs badge-info`},Ye={class:`card-title line-clamp-1 text-start text-sm break-all`},Xe={class:`card-actions items-end justify-between gap-1`},Ze={class:`flex flex-col gap-0.5`},Qe={class:`text-xs font-semibold uppercase opacity-75`},$e={class:`flex flex-col items-center gap-2`},et={class:`text-lg font-bold`},tt={key:0,class:`w-full text-xs uppercase`},nt={key:1,class:`timeline timeline-vertical timeline-compact max-h-60 overflow-y-auto timeline-snap-icon`},rt={key:0},it={class:`timeline-start space-y-2`},at={class:`text-sm italic`},ot={class:`timeline-middle`},st={key:1},ct={key:2,class:`text-sm opacity-75`},lt=e({__name:`ProxyNodeCard`,props:{proxyName:{},testUrl:{},timeout:{},isSelected:{type:Boolean,default:!1}},emits:[`click`],setup(e,{emit:n}){let c=e,l=n,u=Q(),d=F(),{t:m}=A(),v=_(()=>u.proxyNodeMap[c.proxyName]),y=_(()=>fe(v.value?.type||``,m)),b=_(()=>v.value?.xudp||v.value?.udp),S=_(()=>u.proxyLatencyTestingMap[c.proxyName]||!1),C=_(()=>de(v.value?.type)?`(${[v.value?.xudp&&`xudp`,v.value?.udp&&`udp`,v.value?.tfo&&`TFO`].filter(Boolean).join(` / `)})`:null),w=_(()=>u.getLatencyHistoryByName(c.proxyName,c.testUrl).toReversed()),E=j(null),D=j(null),M=j(null),N=j(!1),{floatingStyles:P,middlewareData:I,placement:L}=U(E,D,{placement:`top`,middleware:[V(10),H(),W({padding:8}),K({element:M})],whileElementsMounted:G}),ee=_(()=>{let e=I.value.arrow,t={top:`bottom`,right:`left`,bottom:`top`,left:`right`}[L.value.split(`-`)[0]||`top`]||`bottom`;return{left:e?.x==null?``:`${e.x}px`,top:e?.y==null?``:`${e.y}px`,[t]:`-4px`}}),R=null,B=null;function q(){R&&=(clearTimeout(R),null),B&&=(clearTimeout(B),null)}function J(){q(),R=setTimeout(()=>{N.value=!0},300)}function te(){q(),B=setTimeout(()=>{N.value=!1},100)}function ne(){q()}function Y(){q(),N.value=!1}function X(){l(`click`)}function re(){u.proxyLatencyTest(c.proxyName,v.value?.provider||``,c.testUrl,c.timeout)}return(n,c)=>{let l=$;return k(),o(`div`,{class:t([`relative`,e.isSelected?`z-10`:`z-0`])},[i(`div`,{ref_key:`reference`,ref:E,class:t([`indicator card relative w-full transition-all duration-300`,[e.isSelected?`animate-glow-pulse scale-[1.02] bg-primary text-primary-content`:`bg-neutral text-neutral-content hover:scale-[1.01] hover:shadow-md`]]),onMouseenter:J,onMouseleave:te},[r(b)?(k(),o(`div`,Je,`U`)):O(``,!0),i(`div`,{class:t([`card-body gap-1 space-y-1 p-2.5`,{"cursor-pointer":!!X}]),onClick:X},[i(`h2`,Ye,T(e.proxyName),1),i(`div`,Xe,[i(`div`,Ze,[i(`div`,Qe,T(r(y)),1)]),p(l,{"proxy-name":e.proxyName,"test-url":e.testUrl,class:t({"animate-pulse":r(S)}),onClick:g(re,[`stop`])},null,8,[`proxy-name`,`test-url`,`class`])])],2),(k(),s(h,{to:`body`},[r(N)?(k(),o(`div`,{key:0,ref_key:`floating`,ref:D,style:f(r(P)),class:`z-50 w-max max-w-xs rounded-box bg-primary p-2.5 text-primary-content shadow-lg`,onMouseenter:ne,onMouseleave:Y},[i(`div`,{ref_key:`floatingArrow`,ref:M,class:`absolute size-2 rotate-45 bg-primary`,style:f(r(ee))},null,4),i(`div`,$e,[i(`h2`,et,T(e.proxyName),1),r(C)?(k(),o(`div`,tt,T(r(C)),1)):O(``,!0),r(w).length>0?(k(),o(`ul`,nt,[(k(!0),o(a,null,x(r(w),(e,n)=>(k(),o(`li`,{key:n},[n>0?(k(),o(`hr`,rt)):O(``,!0),i(`div`,it,[i(`time`,at,T(r(qe.default)(e.time).format(`YYYY-MM-DD HH:mm:ss`)),1),i(`div`,{class:t([`badge block`,r(me)(e.delay,r(d).latencyQualityMap)])},T(e.delay||`---`),3)]),i(`div`,ot,[p(r(z),{class:`size-4`})]),n===r(w).length-1?O(``,!0):(k(),o(`hr`,st))]))),128))])):(k(),o(`div`,ct,T(r(m)(`noLatencyHistory`)),1))])],36)):O(``,!0)]))],34)],2)}}}),ut=Object.assign(lt,{__name:`ProxyNodeCard`}),dt=u(le(),1),ft={class:`flex items-center gap-2 pt-1`},pt=[`value`],mt={class:`badge badge-sm badge-secondary`},ht={class:`flex flex-wrap items-center justify-between`},gt={class:`text-sm text-slate-500`},_t={class:`text-sm text-slate-500`},vt=e({__name:`SubscriptionInfo`,props:{subscriptionInfo:{}},setup(e){let t=e,{t:n}=A(),s=_(()=>t.subscriptionInfo?oe(t.subscriptionInfo.Total||0,{units:`iec`}).toString():`0 B`),c=_(()=>{if(!t.subscriptionInfo)return`0 B`;let{Download:e=0,Upload:n=0}=t.subscriptionInfo;return oe(e+n,{units:`iec`}).toString()}),l=_(()=>{if(!t.subscriptionInfo?.Total)return 0;let{Download:e=0,Upload:n=0,Total:r=1}=t.subscriptionInfo;return Math.min(Number(((e+n)/r*100).toFixed(1)),999)}),u=_(()=>t.subscriptionInfo?.Expire?(0,dt.default)(t.subscriptionInfo.Expire*1e3).format(`YYYY-MM-DD`):n(`noExpire`));return(t,d)=>e.subscriptionInfo?(k(),o(a,{key:0},[i(`div`,ft,[i(`progress`,{class:`progress`,value:r(l),max:`100`},null,8,pt),i(`div`,mt,T(r(l))+`%`,1)]),i(`div`,ht,[i(`div`,gt,T(r(c))+` / `+T(r(s)),1),i(`div`,_t,T(r(n)(`expire`))+`: `+T(r(u)),1)])],64)):O(``,!0)}}),yt=Object.assign(vt,{__name:`SubscriptionInfo`}),bt=e({__name:`Collapse`,props:{isOpen:{type:Boolean,default:!1}},emits:[`collapse`],setup(e,{emit:n}){let a=n,s=F(),c=_(()=>s.proxiesDisplayMode===N.LIST);return(n,s)=>(k(),o(`div`,{class:t([`collapse-arrow collapse border-secondary bg-base-200 shadow-md select-none`,e.isOpen?`collapse-open`:`collapse-close`])},[i(`div`,{class:`collapse-title pr-4 text-xl font-medium after:top-8!`,onClick:s[0]||=t=>a(`collapse`,!e.isOpen)},[E(n.$slots,`title`)]),i(`div`,{class:t([`collapse-content transition-opacity duration-1000`,[e.isOpen?`opacity-100`:`opacity-0`,r(c)?`isolate flex flex-col gap-2`:`isolate grid gap-2`]]),style:f(r(c)?void 0:`grid-template-columns: repeat(auto-fill, minmax(200px, 1fr))`)},[e.isOpen?E(n.$slots,`default`,{key:0}):O(``,!0)],6)],2))}}),xt=Object.assign(bt,{__name:`Collapse`}),St={key:0,class:`flex gap-2`},Ct={class:`isolate flex-1 space-y-2`},wt={class:`isolate flex-1 space-y-2`},Tt={key:1,class:`isolate space-y-2`},Et=e({__name:`ProxiesRenderWrapper`,setup(e,{expose:t}){let n=F(),{width:a}=d(),s=_(()=>a.value>480),c=_(()=>n.renderProxiesInTwoColumns&&s.value);return t({isTwoColumns:c}),(e,t)=>r(c)?(k(),o(`div`,St,[i(`div`,Ct,[E(e.$slots,`even`)]),i(`div`,wt,[E(e.$slots,`odd`)])])):(k(),o(`div`,Tt,[E(e.$slots,`default`)]))}}),Dt=Object.assign(Et,{__name:`ProxiesRenderWrapper`}),Ot={class:`flex h-full flex-col gap-2 overflow-y-auto`},kt={class:`flex items-center gap-2`},At={class:`tabs-box tabs gap-2 tabs-sm`},jt=[`onClick`],Mt={class:`badge badge-sm`},Nt={class:`ml-auto`},Pt={key:0,class:`flex-1 overflow-y-auto`},Ft={key:1,class:`flex-1 overflow-y-auto`},It={class:`flex flex-col gap-4`},Lt={class:`flex w-full justify-center`},Rt={class:`flex flex-col`},zt={value:`orderNatural`},Bt={value:`orderLatency_asc`},Vt={value:`orderLatency_desc`},Ht={value:`orderName_asc`},Ut={value:`orderName_desc`},Wt={class:`flex w-full justify-center`},Gt={class:`flex w-full justify-center`},Kt={value:`cardMode`},qt={value:`listMode`},Jt={value:`auto`},Yt={value:`dots`},Xt={value:`bar`},Zt={value:`off`},Qt=e({__name:`proxies`,setup(n){let{t:l,locale:u}=A();w({title:_(()=>l(`proxies`))});let d=Q(),f=ae(),h=F(),g=j(`proxies`),E=j(),N=j(),P=j(),z=e=>oe(e).toString(),V=_(()=>d.proxies.filter(e=>!e.hidden)),H=_(()=>[{type:`proxies`,name:l(`proxies`),count:V.value.length},{type:`proxyProviders`,name:l(`proxyProviders`),count:d.proxyProviders.length}]);function U(e){return ue({proxyNames:ce({proxyNames:e.all??[],orderingType:h.proxiesOrderingType,testUrl:e.testUrl||null,getLatencyByName:d.getLatencyByName,latencyQualityMap:h.latencyQualityMap,urlForLatencyTest:h.urlForLatencyTest}),enabled:h.hideUnAvailableProxies,testUrl:e.testUrl||null,getLatencyByName:d.getLatencyByName,isProxyGroup:d.isProxyGroup,latencyQualityMap:h.latencyQualityMap,urlForLatencyTest:h.urlForLatencyTest})}function W(e){return ce({proxyNames:e.proxies.map(e=>e.name),orderingType:h.proxiesOrderingType,testUrl:e.testUrl,getLatencyByName:d.getLatencyByName,latencyQualityMap:h.latencyQualityMap,urlForLatencyTest:h.urlForLatencyTest})}b(()=>{d.fetchProxies()});let G=e({props:{proxyGroup:{type:Object,required:!0},sortedProxyNames:{type:Array,required:!0}},setup(e){return()=>S(`div`,{class:`space-y-2`},[S(`div`,{class:`flex items-center justify-between pr-8`},[S(`div`,{class:`flex items-center`},[e.proxyGroup.icon&&(e.proxyGroup.icon.startsWith(`data:image/svg+xml`)?S(`div`,{style:{height:`${h.iconHeight}px`,width:`${h.iconHeight}px`,color:`oklch(var(--p) / var(--tw-bg-opacity))`,backgroundColor:`currentColor`,marginRight:`${h.iconMarginRight}px`,maskImage:`url('${pe(e.proxyGroup.icon)}')`,maskSize:`100% 100%`}}):S(`img`,{src:e.proxyGroup.icon,style:{height:`${h.iconHeight}px`,marginRight:`${h.iconMarginRight}px`}})),S(`span`,e.proxyGroup.name),S(`div`,{class:`badge badge-sm ml-2`},e.proxyGroup.all?.length)]),S(Z,{class:`btn-circle btn-sm`,disabled:d.proxyGroupLatencyTestingMap[e.proxyGroup.name],onClick:t=>{t.stopPropagation(),d.proxyGroupLatencyTest(e.proxyGroup.name)}},()=>S(I,{class:{"animate-pulse text-success":d.proxyGroupLatencyTestingMap[e.proxyGroup.name]}}))]),S(`div`,{class:`flex flex-wrap items-center justify-between gap-2`},[S(`div`,{class:`badge badge-primary badge-sm`},[S(`span`,{class:`font-bold`},fe(e.proxyGroup.type,l)),e.proxyGroup.now?.length>0&&[S(L,{size:18}),S(`span`,{class:`whitespace-nowrap`},e.proxyGroup.now)]]),S(`div`,{class:`badge badge-secondary badge-sm`},`${z(f.speedGroupByName[e.proxyGroup.name]||0)}/s`)]),!d.collapsedMap[e.proxyGroup.name]&&S(ke,{proxyNameList:e.sortedProxyNames,now:e.proxyGroup.now,testUrl:e.proxyGroup.testUrl||null,onSelect:t=>d.selectProxyInGroup(e.proxyGroup,t)})])}}),K=e({props:{proxyGroup:{type:Object,required:!0},sortedProxyNames:{type:Array,required:!0}},setup(e){return()=>e.sortedProxyNames.map(t=>h.proxiesDisplayMode===`listMode`?S(Ke,{key:t,proxyName:t,testUrl:e.proxyGroup.testUrl||null,timeout:e.proxyGroup.timeout??null,isSelected:e.proxyGroup.now===t,onClick:()=>d.selectProxyInGroup(e.proxyGroup,t)}):S(ut,{key:t,proxyName:t,testUrl:e.proxyGroup.testUrl||null,timeout:e.proxyGroup.timeout??null,isSelected:e.proxyGroup.now===t,onClick:()=>d.selectProxyInGroup(e.proxyGroup,t)}))}}),q=e({props:{provider:{type:Object,required:!0},sortedProxyNames:{type:Array,required:!0}},setup(e){return()=>S(`div`,[S(`div`,{class:`flex items-center justify-between pr-8`},[S(`div`,{class:`flex flex-wrap items-center gap-1`},[S(`span`,{class:`line-clamp-1 break-all`},e.provider.name),S(`div`,{class:`badge badge-sm`},e.provider.proxies.length),S(`div`,{class:`badge badge-sm`},e.provider.vehicleType)]),S(`div`,{class:`flex items-center gap-2`},[S(Z,{class:`btn btn-circle btn-sm`,disabled:d.updatingMap[e.provider.name],onClick:t=>{t.stopPropagation(),d.updateProviderByProviderName(e.provider.name)}},()=>S(R,{class:{"animate-spin text-success":d.updatingMap[e.provider.name]}})),S(Z,{class:`btn btn-circle btn-sm`,disabled:d.proxyProviderLatencyTestingMap[e.provider.name],onClick:t=>{t.stopPropagation(),d.proxyProviderLatencyTest(e.provider.name)}},()=>S(I,{class:{"animate-pulse text-success":d.proxyProviderLatencyTestingMap[e.provider.name]}}))])]),S(yt,{subscriptionInfo:e.provider.subscriptionInfo}),S(`div`,{class:`flex flex-col gap-2`},[S(`div`,{class:`text-sm text-slate-500`},`${l(`updated`)} ${se(e.provider.updatedAt,u.value)}`),!d.collapsedMap[e.provider.name]&&S(ke,{proxyNameList:e.sortedProxyNames,testUrl:e.provider.testUrl})])])}}),J=e({props:{provider:{type:Object,required:!0},sortedProxyNames:{type:Array,required:!0}},setup(e){return()=>e.sortedProxyNames.map(t=>h.proxiesDisplayMode===`listMode`?S(Ke,{key:t,proxyName:t,testUrl:e.provider.testUrl,timeout:e.provider.timeout??null}):S(ut,{key:t,proxyName:t,testUrl:e.provider.testUrl,timeout:e.provider.timeout??null}))}});return(e,n)=>{let u=xt,f=Dt,_=he,b=ge;return k(),o(`div`,Ot,[i(`div`,kt,[i(`div`,At,[(k(!0),o(a,null,x(r(H),e=>(k(),o(`button`,{key:e.type,class:t([`sm:tab-md tab gap-2 px-2`,{"bg-primary text-neutral!":r(g)===e.type}]),onClick:t=>g.value=e.type},[i(`span`,null,T(e.name),1),i(`div`,Mt,T(e.count),1)],10,jt))),128))]),r(g)===`proxyProviders`?(k(),s(Z,{key:0,class:`btn btn-circle btn-sm`,disabled:r(d).isAllProviderUpdating,onClick:r(d).updateAllProvider},{default:C(()=>[p(r(R),{class:t({"animate-spin text-success":r(d).isAllProviderUpdating})},null,8,[`class`])]),_:1},8,[`disabled`,`onClick`])):O(``,!0),i(`div`,Nt,[p(Z,{class:`btn-circle btn-sm btn-primary`,onClick:n[0]||=e=>r(E)?.open()},{default:C(()=>[p(r(B))]),_:1})])]),r(g)===`proxies`?(k(),o(`div`,Pt,[p(f,{ref_key:`proxyGroupsWrapper`,ref:N},v({_:2},[r(N)?.isTwoColumns?{name:`even`,fn:C(()=>[(k(!0),o(a,null,x(r(V).filter((e,t)=>t%2==0),(e,t)=>(k(),s(u,{key:e.name,"is-open":r(d).collapsedMap[e.name]||!1,onCollapse:t=>r(d).collapsedMap[e.name]=t},{title:C(()=>[p(r(G),{"proxy-group":e,"sorted-proxy-names":U(e)},null,8,[`proxy-group`,`sorted-proxy-names`])]),default:C(()=>[p(r(K),{"proxy-group":e,"sorted-proxy-names":U(e)},null,8,[`proxy-group`,`sorted-proxy-names`])]),_:2},1032,[`is-open`,`onCollapse`]))),128))]),key:`0`}:void 0,r(N)?.isTwoColumns?{name:`odd`,fn:C(()=>[(k(!0),o(a,null,x(r(V).filter((e,t)=>t%2==1),(e,t)=>(k(),s(u,{key:e.name,"is-open":r(d).collapsedMap[e.name]||!1,onCollapse:t=>r(d).collapsedMap[e.name]=t},{title:C(()=>[p(r(G),{"proxy-group":e,"sorted-proxy-names":U(e)},null,8,[`proxy-group`,`sorted-proxy-names`])]),default:C(()=>[p(r(K),{"proxy-group":e,"sorted-proxy-names":U(e)},null,8,[`proxy-group`,`sorted-proxy-names`])]),_:2},1032,[`is-open`,`onCollapse`]))),128))]),key:`1`}:void 0,r(N)?.isTwoColumns?void 0:{name:`default`,fn:C(()=>[(k(!0),o(a,null,x(r(V),e=>(k(),s(u,{key:e.name,"is-open":r(d).collapsedMap[e.name]||!1,onCollapse:t=>r(d).collapsedMap[e.name]=t},{title:C(()=>[p(r(G),{"proxy-group":e,"sorted-proxy-names":U(e)},null,8,[`proxy-group`,`sorted-proxy-names`])]),default:C(()=>[p(r(K),{"proxy-group":e,"sorted-proxy-names":U(e)},null,8,[`proxy-group`,`sorted-proxy-names`])]),_:2},1032,[`is-open`,`onCollapse`]))),128))]),key:`2`}]),1536)])):(k(),o(`div`,Ft,[p(f,{ref_key:`providersWrapper`,ref:P},v({_:2},[r(P)?.isTwoColumns?{name:`even`,fn:C(()=>[(k(!0),o(a,null,x(r(d).proxyProviders.filter((e,t)=>t%2==0),e=>(k(),s(u,{key:e.name,"is-open":r(d).collapsedMap[e.name]||!1,onCollapse:t=>r(d).collapsedMap[e.name]=t},{title:C(()=>[p(r(q),{provider:e,"sorted-proxy-names":W(e)},null,8,[`provider`,`sorted-proxy-names`])]),default:C(()=>[p(r(J),{provider:e,"sorted-proxy-names":W(e)},null,8,[`provider`,`sorted-proxy-names`])]),_:2},1032,[`is-open`,`onCollapse`]))),128))]),key:`0`}:void 0,r(P)?.isTwoColumns?{name:`odd`,fn:C(()=>[(k(!0),o(a,null,x(r(d).proxyProviders.filter((e,t)=>t%2==1),e=>(k(),s(u,{key:e.name,"is-open":r(d).collapsedMap[e.name]||!1,onCollapse:t=>r(d).collapsedMap[e.name]=t},{title:C(()=>[p(r(q),{provider:e,"sorted-proxy-names":W(e)},null,8,[`provider`,`sorted-proxy-names`])]),default:C(()=>[p(r(J),{provider:e,"sorted-proxy-names":W(e)},null,8,[`provider`,`sorted-proxy-names`])]),_:2},1032,[`is-open`,`onCollapse`]))),128))]),key:`1`}:void 0,r(P)?.isTwoColumns?void 0:{name:`default`,fn:C(()=>[(k(!0),o(a,null,x(r(d).proxyProviders,e=>(k(),s(u,{key:e.name,"is-open":r(d).collapsedMap[e.name]||!1,onCollapse:t=>r(d).collapsedMap[e.name]=t},{title:C(()=>[p(r(q),{provider:e,"sorted-proxy-names":W(e)},null,8,[`provider`,`sorted-proxy-names`])]),default:C(()=>[p(r(J),{provider:e,"sorted-proxy-names":W(e)},null,8,[`provider`,`sorted-proxy-names`])]),_:2},1032,[`is-open`,`onCollapse`]))),128))]),key:`2`}]),1536)])),p(b,{ref_key:`settingsModal`,ref:E,title:r(l)(`proxiesSettings`)},{icon:C(()=>[p(r(ee),{size:24})]),default:C(()=>[i(`div`,It,[i(`div`,null,[p(_,{"with-divider":``},{default:C(()=>[y(T(r(l)(`autoCloseConns`)),1)]),_:1}),i(`div`,Lt,[D(i(`input`,{"onUpdate:modelValue":n[1]||=e=>r(h).autoCloseConns=e,class:`toggle`,type:`checkbox`},null,512),[[c,r(h).autoCloseConns]])])]),i(`div`,Rt,[p(_,{"with-divider":``},{default:C(()=>[y(T(r(l)(`urlForLatencyTest`)),1)]),_:1}),D(i(`input`,{"onUpdate:modelValue":n[2]||=e=>r(h).urlForLatencyTest=e,class:`input w-full`,type:`text`},null,512),[[M,r(h).urlForLatencyTest]])]),i(`div`,null,[p(_,{"with-divider":``},{default:C(()=>[y(T(r(l)(`latencyTestTimeoutDuration`))+` (`+T(r(l)(`ms`))+`) `,1)]),_:1}),D(i(`input`,{"onUpdate:modelValue":n[3]||=e=>r(h).latencyTestTimeoutDuration=e,class:`input w-full`,type:`number`},null,512),[[M,r(h).latencyTestTimeoutDuration,void 0,{number:!0}]])]),i(`div`,null,[p(_,{"with-divider":``},{default:C(()=>[y(T(r(l)(`proxiesSorting`)),1)]),_:1}),D(i(`select`,{"onUpdate:modelValue":n[4]||=e=>r(h).proxiesOrderingType=e,class:`select w-full`},[i(`option`,zt,T(r(l)(`orderNatural`)),1),i(`option`,Bt,T(r(l)(`orderLatency_asc`)),1),i(`option`,Vt,T(r(l)(`orderLatency_desc`)),1),i(`option`,Ht,T(r(l)(`orderName_asc`)),1),i(`option`,Ut,T(r(l)(`orderName_desc`)),1)],512),[[m,r(h).proxiesOrderingType]])]),i(`div`,null,[p(_,{"with-divider":``},{default:C(()=>[y(T(r(l)(`hideUnavailableProxies`)),1)]),_:1}),i(`div`,Wt,[D(i(`input`,{"onUpdate:modelValue":n[5]||=e=>r(h).hideUnAvailableProxies=e,class:`toggle`,type:`checkbox`},null,512),[[c,r(h).hideUnAvailableProxies]])])]),i(`div`,null,[p(_,{"with-divider":``},{default:C(()=>[y(T(r(l)(`renderInTwoColumns`)),1)]),_:1}),i(`div`,Gt,[D(i(`input`,{"onUpdate:modelValue":n[6]||=e=>r(h).renderProxiesInTwoColumns=e,class:`toggle`,type:`checkbox`},null,512),[[c,r(h).renderProxiesInTwoColumns]])])]),i(`div`,null,[p(_,{"with-divider":``},{default:C(()=>[y(T(r(l)(`proxiesDisplayMode`)),1)]),_:1}),D(i(`select`,{"onUpdate:modelValue":n[7]||=e=>r(h).proxiesDisplayMode=e,class:`select w-full`},[i(`option`,Kt,T(r(l)(`cardMode`)),1),i(`option`,qt,T(r(l)(`listMode`)),1)],512),[[m,r(h).proxiesDisplayMode]])]),i(`div`,null,[p(_,{"with-divider":``},{default:C(()=>[y(T(r(l)(`proxiesPreviewType`)),1)]),_:1}),D(i(`select`,{"onUpdate:modelValue":n[8]||=e=>r(h).proxiesPreviewType=e,class:`select w-full`},[i(`option`,Jt,T(r(l)(`auto`)),1),i(`option`,Yt,T(r(l)(`dots`)),1),i(`option`,Xt,T(r(l)(`bar`)),1),i(`option`,Zt,T(r(l)(`off`)),1)],512),[[m,r(h).proxiesPreviewType]])]),i(`div`,null,[p(_,{"with-divider":``},{default:C(()=>[y(T(r(l)(`iconHeight`)),1)]),_:1}),D(i(`input`,{"onUpdate:modelValue":n[9]||=e=>r(h).iconHeight=e,class:`input w-full`,type:`number`},null,512),[[M,r(h).iconHeight,void 0,{number:!0}]]),p(_,{"with-divider":``},{default:C(()=>[y(T(r(l)(`iconMarginRight`)),1)]),_:1}),D(i(`input`,{"onUpdate:modelValue":n[10]||=e=>r(h).iconMarginRight=e,class:`input w-full`,type:`number`},null,512),[[M,r(h).iconMarginRight,void 0,{number:!0}]])]),i(`div`,null,[i(`button`,{class:`btn w-full btn-error`,onClick:n[11]||=e=>r(h).resetProxiesSettings()},T(r(l)(`resetSettings`)),1)])])]),_:1},8,[`title`])])}}});export{Qt as default}; \ No newline at end of file diff --git a/dashboard/public/_nuxt/BeSoyRdk.js b/dashboard/public/_nuxt/0ZQUESsj.js similarity index 97% rename from dashboard/public/_nuxt/BeSoyRdk.js rename to dashboard/public/_nuxt/0ZQUESsj.js index c7f3c61..0503cb1 100644 --- a/dashboard/public/_nuxt/BeSoyRdk.js +++ b/dashboard/public/_nuxt/0ZQUESsj.js @@ -1 +1 @@ -import"./B7D9IcDw.js";import{$ as e,B as t,C as n,D as r,Dt as i,E as a,Et as o,G as s,H as c,I as l,J as u,K as d,Mt as f,N as p,Ot as m,Q as h,S as g,U as _,V as v,W as y,at as b,ct as x,dt as S,ft as C,it as w,kt as T,lt as E,ot as D,pt as O,q as k,rt as A,st as j,ut as M,x as N,yt as P}from"./DOvCTup-.js";import{h as F}from"./_v7-ePgP.js";import{t as I}from"./DaqTEuJW.js";import{t as L}from"./4rydX2E6.js";import{D as R,M as z,R as B,S as ee,T as V,_ as te,b as H,f as U,i as ne,j as W,u as G,v as K,w as re,y as ie,z as q}from"./DkKkiaBA.js";import{a as ae,i as J,n as Y,o as X,r as Z}from"./Cqvf2RiX.js";import{t as Q}from"./DGEvsBiX.js";import{g as $,v as oe}from"./CZdbW3fS.js";import{n as se,t as ce}from"./BlP2MkkZ.js";import{t as le}from"./BrukVZU9.js";import{t as ue}from"./BLyUHixQ.js";import{l as de}from"./BpDbz5Be.js";var fe={class:`flex min-w-0 items-center gap-1 text-sm font-bold whitespace-nowrap uppercase sm:text-xl`},pe=e({__name:`LogoText`,setup(e){let t=n(),r=y(()=>!!t.currentEndpoint);return(e,t)=>{let n=g;return j(),u(`div`,fe,[h(n,{class:`bg-linear-to-br from-primary to-secondary bg-clip-text text-transparent`,to:o(r)?`/`:`/setup`},{default:C(()=>[...t[0]||=[s(`span`,{class:`hidden min-[400px]:inline`},`metacube`,-1),s(`span`,{class:`min-[400px]:hidden`},`mcx`,-1)]]),_:1},8,[`to`]),t[1]||=s(`span`,null,`(`,-1),t[2]||=s(`a`,{class:`text-primary transition-transform hover:scale-125 hover:rotate-90`,href:`https://github.com/metacubex/metacubexd`,target:`_blank`},` xd `,-1),t[3]||=s(`span`,null,`)`,-1)])}}}),me=Object.assign(pe,{__name:`LogoText`}),he={class:`dropdown dropdown-end`},ge={tabindex:`0`,role:`button`,class:`btn btn-circle btn-ghost`,"aria-label":`Change language`},_e={tabindex:`0`,class:`dropdown-content menu z-50 mt-2 w-40 rounded-box bg-base-200 p-2 shadow-lg`},ve=[`onClick`],ye=e({__name:`LangSwitcher`,setup(e){let{locale:t,locales:n,setLocale:r}=N(),a=y(()=>n.value.map(e=>typeof e==`string`?{code:e,name:e}:e));return(e,n)=>(j(),u(`div`,he,[s(`div`,ge,[h(o(H),{size:20})]),s(`ul`,_e,[(j(!0),u(c,null,x(o(a),e=>(j(),u(`li`,{key:e.code},[s(`button`,{class:i({"menu-active":o(t)===e.code}),onClick:t=>o(r)(e.code)},T(e.name),11,ve)]))),128))])]))}}),be=Object.assign(ye,{__name:`LangSwitcher`}),xe=[`data-theme`],Se=[`onClick`],Ce=e({__name:`ThemeSwitcher`,setup(e){let t=I(),n=P(null),r=P(null),a=P(!1),{floatingStyles:l}=Y(n,r,{placement:`top`,middleware:[ae(10),J(),X({padding:8})],whileElementsMounted:Z});function f(){a.value=!a.value}function p(e){t.curTheme=e,document.documentElement.setAttribute(`data-theme`,e),a.value=!1}function g(e){let t=e.target;!n.value?.contains(t)&&!r.value?.contains(t)&&(a.value=!1)}return b(()=>{document.addEventListener(`click`,g)}),D(()=>{document.removeEventListener(`click`,g)}),(e,g)=>(j(),u(`div`,null,[s(`button`,{ref_key:`reference`,ref:n,class:`btn btn-circle btn-sm btn-primary`,onClick:v(f,[`stop`])},[h(o(te))],512),(j(),d(_,{to:`body`},[o(a)?(j(),u(`ul`,{key:0,ref_key:`floating`,ref:r,style:m(o(l)),class:`menu z-70 max-h-64 w-40 flex-nowrap overflow-y-auto rounded-box bg-base-300 p-2 shadow-lg`},[(j(!0),u(c,null,x(o(F),e=>(j(),u(`li`,{key:e,"data-theme":e,class:`rounded-btn`},[s(`button`,{class:i([`btn justify-start btn-xs`,{"btn-active":o(t).curTheme===e}]),onClick:t=>p(e)},T(e),11,Se)],8,xe))),128))],4)):k(``,!0)]))]))}}),we=Object.assign(Ce,{__name:`ThemeSwitcher`}),Te={class:`mx-2 mb-2 overflow-hidden rounded-2xl border border-base-content/10 bg-base-300/90 shadow-lg backdrop-blur-md`},Ee={class:`grid h-16 grid-cols-6`},De={class:`sr-only`},Oe=e({__name:`MobileBottomNav`,props:{navItems:{}},setup(e){let t=p(),n=e=>t.path===e,r=P(!1);b(()=>{a(),window.addEventListener(`resize`,a),requestAnimationFrame(()=>{r.value=!0})}),D(()=>{document.body.style.paddingBottom=`0`,window.removeEventListener(`resize`,a)});function a(){document.body.style.paddingBottom=window.innerWidth<1024?`4.5rem`:`0`}return(t,a)=>{let l=g;return j(),u(`nav`,{"aria-label":`Mobile bottom navigation`,class:i([`fixed inset-x-0 bottom-0 z-50 transform transition-all duration-500 ease-out lg:hidden`,[o(r)?`translate-y-0 opacity-100`:`translate-y-full opacity-0`]])},[s(`div`,Te,[s(`div`,Ee,[(j(!0),u(c,null,x(e.navItems,e=>(j(),d(l,{key:e.href,to:e.href,class:i([`group relative flex flex-col items-center justify-center gap-0.5 transition-all duration-300`,[n(e.href)?`text-primary`:`text-base-content/60 hover:text-base-content active:scale-90`]])},{default:C(()=>[s(`div`,{class:i([`absolute inset-1 rounded-xl transition-all duration-300`,[n(e.href)?`bg-primary/10`:`bg-transparent group-hover:bg-base-content/5`]])},null,2),s(`div`,{class:i([`absolute top-1 h-1 rounded-full bg-primary transition-all duration-300`,[n(e.href)?`w-8 opacity-100`:`w-0 opacity-0`]])},null,2),s(`div`,{class:i([`relative z-10 transition-all duration-300`,[n(e.href)?`scale-110 text-xl`:`scale-100 text-lg group-hover:scale-105`]])},[(j(),d(M(e.icon)))],2),s(`span`,De,T(`Navigate to ${e.name}`),1),s(`span`,{"aria-hidden":`true`,class:i([`relative z-10 text-[10px] font-medium transition-all duration-300`,[n(e.href)?`translate-y-0 opacity-100`:`translate-y-0 opacity-80 group-hover:opacity-100 group-focus-visible:opacity-100`]])},T(e.name),3)]),_:2},1032,[`to`,`class`]))),128))])])],2)}}}),ke=Object.assign(Oe,{__name:`MobileBottomNav`}),Ae={class:`drawer-content flex h-full flex-col`},je={class:`z-50 flex h-14 w-full shrink-0 items-center gap-2 bg-base-300 px-2 shadow-lg sm:px-4 lg:hidden`},Me={key:0,for:`main-drawer`,class:`btn btn-ghost btn-sm`,"aria-label":`open sidebar`},Ne={class:`min-w-0 shrink`},Pe={class:`ml-auto flex shrink-0 items-center gap-1`},Fe={class:`flex min-h-0 flex-1 flex-col p-2 sm:p-4`},Ie={key:0,class:`drawer-side z-60`},Le={class:`flex shrink-0 flex-col gap-2 border-b border-base-content/10 p-3`},Re={class:`menu w-full flex-1 gap-1 px-2`},ze=e({__name:`Sidebar`,setup(e){let n=p(),{t:r}=N(),a=I(),l=y(()=>[{href:`/overview`,name:r(`overview`),icon:ee},{href:`/proxies`,name:r(`proxies`),icon:V},{href:`/rules`,name:r(`rules`),icon:U},{href:`/connections`,name:r(`connections`),icon:K},{href:`/logs`,name:r(`logs`),icon:R},{href:`/config`,name:r(`config`),icon:G}]),f=e=>n.path===e,m=P(null);S(()=>n.path,()=>{m.value&&(m.value.checked=!1)});let _=()=>{a.sidebarExpanded=!a.sidebarExpanded};return(e,p)=>{let v=me,y=be,b=we,S=g,w=Q,D=ke;return j(),u(`div`,{class:i([`drawer h-full`,{"lg:drawer-open":o(n).path!==`/setup`}])},[s(`input`,{id:`main-drawer`,ref_key:`drawerCheckbox`,ref:m,type:`checkbox`,class:`drawer-toggle`},null,512),s(`div`,Ae,[s(`header`,je,[o(n).path!==`/setup`&&!o(a).useMobileBottomNav?(j(),u(`label`,Me,[h(o(ie),{class:`size-5`})])):k(``,!0),s(`div`,Ne,[h(v)]),s(`div`,Pe,[p[0]||=s(`div`,{id:`header-traffic-indicator`,class:`flex items-center`},null,-1),h(y),h(b)])]),s(`div`,Fe,[E(e.$slots,`default`)])]),o(n).path===`/setup`?k(``,!0):(j(),u(`div`,Ie,[p[1]||=s(`label`,{for:`main-drawer`,"aria-label":`close sidebar`,class:`drawer-overlay`},null,-1),s(`div`,{class:i([`flex h-full w-52 flex-col bg-base-200 transition-all duration-300`,o(a).sidebarExpanded?``:`lg:w-16`])},[s(`div`,Le,[s(`div`,{class:i([`flex items-center`,o(a).sidebarExpanded?``:`lg:justify-center`])},[O(h(v,{class:`lg:block`},null,512),[[t,o(a).sidebarExpanded]]),h(v,{class:`lg:hidden`})],2),s(`button`,{class:i([`btn hidden w-full btn-ghost btn-sm lg:flex`,o(a).sidebarExpanded?``:`lg:btn-square`]),onClick:_},[o(a).sidebarExpanded?(j(),d(o(z),{key:1,class:`size-5`})):(j(),d(o(W),{key:0,class:`size-5`})),s(`span`,{class:i(o(a).sidebarExpanded?``:`lg:hidden`)},T(o(r)(`collapse`)),3)],2)]),s(`ul`,Re,[(j(!0),u(c,null,x(o(l),e=>(j(),u(`li`,{key:e.href,class:`w-full`},[h(S,{to:e.href,class:i([`flex w-full items-center gap-3`,[{"menu-active":f(e.href)},o(a).sidebarExpanded?``:`lg:justify-center lg:px-0`]]),title:o(a).sidebarExpanded?void 0:e.name},{default:C(()=>[(j(),d(M(e.icon),{class:`size-5 shrink-0`})),s(`span`,{class:i(o(a).sidebarExpanded?``:`lg:hidden`)},T(e.name),3)]),_:2},1032,[`to`,`class`,`title`])]))),128))]),s(`div`,{class:i([`shrink-0 border-t border-base-content/10 p-2`,o(a).sidebarExpanded?``:`lg:flex lg:flex-col lg:items-center`])},[s(`div`,{id:`sidebar-traffic-expanded`,class:i([`mb-2 hidden w-full`,o(a).sidebarExpanded?`lg:block`:``])},null,2),s(`div`,{id:`sidebar-traffic-indicator`,class:i([`mb-2 hidden w-full lg:block`,o(a).sidebarExpanded?`lg:hidden`:``])},null,2),s(`div`,{class:i([`mb-2 hidden items-center gap-1`,o(a).sidebarExpanded?`lg:flex`:`lg:flex lg:flex-col`])},[h(y),h(b)],2),h(w,{collapsed:!o(a).sidebarExpanded},null,8,[`collapsed`])],2)],2)])),o(a).useMobileBottomNav&&o(n).path!==`/setup`?(j(),d(D,{key:1,"nav-items":o(l)},null,8,[`nav-items`])):k(``,!0)],2)}}}),Be=Object.assign(ze,{__name:`Sidebar`});const Ve=globalThis.setInterval;function He(){let e=n(),t=se(),r=L(),i=le(),a=I(),o=null,s=null,c=null,l=null,u=null,d=(t,n)=>{let r=e.currentEndpoint;if(!r)return null;let i=e.wsEndpointURL,a=r.secret,o=new URLSearchParams;a&&o.set(`token`,a);let s=new WebSocket(`${i}/${t}?${o.toString()}`);return s.onmessage=e=>{try{n(JSON.parse(e.data))}catch{}},s.onerror=e=>{console.error(`WebSocket error for ${t}:`,e)},s};return{connect:()=>{if($()){let e=oe();t.updateFromWsMsg({connections:e.mockConnections,uploadTotal:e.mockTrafficStats.up,downloadTotal:e.mockTrafficStats.down}),r.setLatestTraffic(e.mockTrafficStats),r.setLatestMemory(e.mockMemory);let n=Date.now(),a=e.mockConnections.length;for(let t=30;t>=0;t--){let i=n-t*1e3,o=e.mockTrafficStats.down+Math.floor(Math.random()*1e5)-5e4,s=e.mockTrafficStats.up+Math.floor(Math.random()*2e4)-1e4,c=e.mockMemory.inuse+Math.floor(Math.random()*5e6)-25e5,l=a+Math.floor(Math.random()*10)-5;r.addTrafficDataPoint(i,o,s),r.addMemoryDataPoint(i,c),r.addConnectionCountDataPoint(i,l)}e.mockLogs.forEach(e=>{i.addLog(e)}),u=Ve(()=>{let t=Date.now(),n={up:e.mockTrafficStats.up+Math.floor(Math.random()*1e4),down:e.mockTrafficStats.down+Math.floor(Math.random()*5e4)};r.setLatestTraffic(n),r.addTrafficDataPoint(t,n.down,n.up);let i={inuse:e.mockMemory.inuse+Math.floor(Math.random()*5e6)-25e5,oslimit:e.mockMemory.oslimit};r.setLatestMemory(i),r.addMemoryDataPoint(t,i.inuse);let a=e.mockConnections.length+Math.floor(Math.random()*10)-5;r.addConnectionCountDataPoint(t,a)},1e3);return}o=d(`connections`,e=>{let n=e;if(t.updateFromWsMsg(n),n){let e=n.connections?.length??0;r.addConnectionCountDataPoint(Date.now(),e)}}),s=d(`traffic`,e=>{let t=e;r.setLatestTraffic(t),r.addTrafficDataPoint(Date.now(),t.down,t.up)}),c=d(`memory`,e=>{let t=e;r.setLatestMemory(t),r.addMemoryDataPoint(Date.now(),t.inuse)});let n=e.currentEndpoint;if(n){let t=e.wsEndpointURL,r=new URLSearchParams;n.secret&&r.set(`token`,n.secret),r.set(`level`,a.logLevel),l=new WebSocket(`${t}/logs?${r.toString()}`),l.onmessage=e=>{try{let t=JSON.parse(e.data);i.addLog(t)}catch{}}}},disconnect:()=>{u&&=(clearInterval(u),null),o?.close(),s?.close(),c?.close(),l?.close(),o=null,s=null,c=null,l=null},reconnectLogs:()=>{l?.close();let t=e.currentEndpoint;if(t){let n=e.wsEndpointURL,r=new URLSearchParams;t.secret&&r.set(`token`,t.secret),r.set(`level`,a.logLevel),l=new WebSocket(`${n}/logs?${r.toString()}`),l.onmessage=e=>{try{let t=JSON.parse(e.data);i.addLog(t)}catch{}}}}}}var Ue={class:`hidden`},We=e({__name:`ProtectedResources`,setup(e){let{connect:t,disconnect:n,reconnectLogs:r}=He(),i=I();return b(()=>{t()}),D(()=>{n()}),S(()=>i.logLevel,()=>{r()}),(e,t)=>(j(),u(`div`,Ue))}}),Ge=Object.assign(We,{__name:`ProtectedResources`}),Ke=f(ue(),1),qe={class:`flex items-center gap-1`},Je={class:`font-mono text-xs`},Ye={class:`flex items-center gap-1`},Xe={class:`font-mono text-xs`},Ze={class:`flex items-center justify-center gap-1`},Qe={class:`font-mono text-xs`},$e={class:`flex items-center justify-center gap-1`},et={class:`font-mono text-xs`},tt={key:0,class:`rounded-btn w-full bg-base-100/50 p-2`},nt={class:`grid grid-cols-2 gap-1 text-xs`},rt={class:`flex items-center gap-1`},it={class:`truncate font-mono`},at={class:`flex items-center gap-1`},ot={class:`truncate font-mono`},st={class:`flex items-center gap-1`},ct={class:`font-mono text-xs`},lt={class:`flex items-center gap-1`},ut={class:`font-mono text-xs`},dt=[`title`],ft={class:`flex flex-col gap-2 p-3`},pt={class:`flex items-center justify-between gap-2`},mt={class:`text-xs font-semibold uppercase opacity-60`},ht={class:`flex items-center gap-1`},gt=[`title`],_t=[`title`],vt={class:`grid grid-cols-2 gap-x-4 gap-y-1 text-xs`},yt={class:`flex items-center gap-1.5`},bt={class:`font-mono font-medium`},xt={class:`flex items-center gap-1.5`},St={class:`font-mono font-medium`},Ct={class:`flex items-center gap-1.5 opacity-70`},wt={class:`font-mono`},Tt={class:`flex items-center gap-1.5 opacity-70`},Et={class:`font-mono`},Dt=e({__name:`GlobalTrafficIndicator`,setup(e){let t=L(),n=se(),r=I(),f=a(`globalTrafficIndicatorVisible`,!0),p=a(`globalTrafficIndicatorCollapsed`,!0),g=a(`globalTrafficIndicatorPosition`,{x:-1,y:-1}),v=P(!1),x=P({x:0,y:0}),E=P(null),D=P(null),O,M=y(()=>t.latestTraffic?.down??0),N=y(()=>t.latestTraffic?.up??0),F=y(()=>t.latestMemory?.inuse??0),R=y(()=>n.latestConnectionMsg?.connections?.length??0),z=e=>ce(e).toString(),ee=y(()=>g.value.x===-1||g.value.y===-1?{right:`16px`,bottom:`16px`}:{left:`${g.value.x}px`,top:`${g.value.y}px`});function V(){f.value=!f.value}function te(){p.value=!p.value}function H(){p.value=!1,g.value={x:-1,y:-1}}function U(e){if(!E.value)return;v.value=!0;let t=E.value.getBoundingClientRect(),n=`touches`in e?e.touches[0].clientX:e.clientX,r=`touches`in e?e.touches[0].clientY:e.clientY;x.value={x:n-t.left,y:r-t.top},g.value.x===-1&&(g.value.x=t.left,g.value.y=t.top),document.addEventListener(`mousemove`,W),document.addEventListener(`mouseup`,G),document.addEventListener(`touchmove`,W),document.addEventListener(`touchend`,G)}function W(e){if(!v.value)return;let t=`touches`in e?e.touches[0].clientX:e.clientX,n=`touches`in e?e.touches[0].clientY:e.clientY,r=t-x.value.x,i=n-x.value.y,a=E.value?.getBoundingClientRect(),o=a?.width||200,s=a?.height||150;r=Math.max(0,Math.min(window.innerWidth-o,r)),i=Math.max(0,Math.min(window.innerHeight-s,i)),g.value.x=r,g.value.y=i}function G(){v.value&&(v.value=!1,document.removeEventListener(`mousemove`,W),document.removeEventListener(`mouseup`,G),document.removeEventListener(`touchmove`,W),document.removeEventListener(`touchend`,G))}function K(){if(!D.value)return;O&&=(O.destroy(),void 0);let e=de(),n=D.value.offsetWidth||200;O=Ke.default.chart(D.value,{chart:{type:`areaspline`,backgroundColor:`transparent`,spacing:[0,0,0,0],margin:[0,0,0,0],animation:!1,width:n,height:48},credits:{enabled:!1},accessibility:{enabled:!1},title:{text:void 0},legend:{enabled:!1},xAxis:{visible:!1,type:`datetime`},yAxis:{visible:!1,min:0},tooltip:{enabled:!1},plotOptions:{areaspline:{lineWidth:1.5,marker:{enabled:!1},fillOpacity:.2,animation:!1}},series:[{type:`areaspline`,name:`Download`,color:e.seriesColors[0],data:t.trafficChartHistory.download.length>0?[...t.trafficChartHistory.download].slice(-30):[[Date.now(),0]]},{type:`areaspline`,name:`Upload`,color:e.seriesColors[1],data:t.trafficChartHistory.upload.length>0?[...t.trafficChartHistory.upload].slice(-30):[[Date.now(),0]]}]})}function ie(){if(!O)return;let e=[...t.trafficChartHistory.download].slice(-30),n=[...t.trafficChartHistory.upload].slice(-30);O.series[0]?.setData(e,!1),O.series[1]?.setData(n,!0)}function ae(){if(!$)return;let e=[...t.trafficChartHistory.download].slice(-30),n=[...t.trafficChartHistory.upload].slice(-30);$.series[0]?.setData(e,!1),$.series[1]?.setData(n,!0)}function J(){if(!Q.value)return;$&&=($.destroy(),void 0);let e=de();$=Ke.default.chart(Q.value,{chart:{type:`areaspline`,backgroundColor:`transparent`,spacing:[0,0,0,0],margin:[0,0,0,0],animation:!1,height:40},credits:{enabled:!1},accessibility:{enabled:!1},title:{text:void 0},legend:{enabled:!1},xAxis:{visible:!1,type:`datetime`},yAxis:{visible:!1,min:0},tooltip:{enabled:!1},plotOptions:{areaspline:{lineWidth:1.5,marker:{enabled:!1},fillOpacity:.2,animation:!1}},series:[{type:`areaspline`,name:`Download`,color:e.seriesColors[0],data:t.trafficChartHistory.download.length>0?[...t.trafficChartHistory.download].slice(-30):[[Date.now(),0]]},{type:`areaspline`,name:`Upload`,color:e.seriesColors[1],data:t.trafficChartHistory.upload.length>0?[...t.trafficChartHistory.upload].slice(-30):[[Date.now(),0]]}]})}S(()=>t.latestTraffic,e=>{e&&(O?ie():D.value&&f.value&&!p.value&&K(),$?ae():Q.value&&J())}),S(()=>r.curTheme,()=>{D.value&&!p.value&&f.value&&K(),Q.value&&J()}),S(p,e=>{!e&&f.value?A(()=>{setTimeout(()=>{D.value&&t.latestTraffic&&K()},50)}):e&&O&&(O.destroy(),O=void 0)}),S(f,e=>{e&&!p.value?A(()=>{setTimeout(()=>{D.value&&t.latestTraffic&&K()},50)}):!e&&O&&(O.destroy(),O=void 0)}),S(()=>r.sidebarExpanded,e=>{e&&A(()=>{setTimeout(()=>{Q.value&&t.latestTraffic&&J()},100)})});let Y=P(!1),X=P(!1),Z=P(!1),Q=P(null),$;return b(()=>{A(()=>{Y.value=!!document.getElementById(`header-traffic-indicator`),X.value=!!document.getElementById(`sidebar-traffic-indicator`),Z.value=!!document.getElementById(`sidebar-traffic-expanded`)}),f.value&&!p.value&&t.latestTraffic&&setTimeout(()=>{D.value&&K()},100),t.latestTraffic&&setTimeout(()=>{Q.value&&J()},150)}),w(()=>{O&&=(O.destroy(),void 0),$&&=($.destroy(),void 0)}),(e,n)=>(j(),u(c,null,[o(Y)?(j(),d(_,{key:0,to:`#header-traffic-indicator`},[o(f)&&o(p)&&o(t).latestTraffic?(j(),u(`div`,{key:0,class:`rounded-btn flex cursor-pointer items-center gap-2 bg-base-100/50 px-2 py-1 transition-colors hover:bg-base-100`,onClick:H},[s(`div`,qe,[h(o(q),{class:`size-3 text-success`}),s(`span`,Je,T(z(o(M)))+`/s`,1)]),n[0]||=s(`div`,{class:`h-3 w-px bg-base-content/20`},null,-1),s(`div`,Ye,[h(o(B),{class:`size-3 text-info`}),s(`span`,Xe,T(z(o(N)))+`/s`,1)])])):k(``,!0)])):k(``,!0),o(X)?(j(),d(_,{key:1,to:`#sidebar-traffic-indicator`},[o(t).latestTraffic?(j(),u(`div`,{key:0,class:`rounded-btn w-full cursor-pointer bg-base-100/50 px-2 py-2 transition-colors hover:bg-base-100`,onClick:H},[s(`div`,Ze,[h(o(q),{class:`size-3 text-success`}),s(`span`,Qe,T(z(o(M)))+`/s`,1)]),s(`div`,$e,[h(o(B),{class:`size-3 text-info`}),s(`span`,et,T(z(o(N)))+`/s`,1)])])):k(``,!0)])):k(``,!0),o(Z)?(j(),d(_,{key:2,to:`#sidebar-traffic-expanded`},[o(t).latestTraffic?(j(),u(`div`,tt,[s(`div`,{ref_key:`sidebarChartContainer`,ref:Q,class:`mb-2 h-10 w-full`},null,512),s(`div`,nt,[s(`div`,rt,[h(o(q),{class:`size-3 shrink-0 text-success`}),s(`span`,it,T(z(o(M)))+`/s`,1)]),s(`div`,at,[h(o(B),{class:`size-3 shrink-0 text-info`}),s(`span`,ot,T(z(o(N)))+`/s`,1)])])])):k(``,!0)])):k(``,!0),o(f)&&o(p)&&o(t).latestTraffic&&!o(Y)&&!o(X)?(j(),u(`div`,{key:3,class:`fixed right-4 bottom-4 z-50 flex cursor-pointer items-center gap-2 rounded-box bg-base-200 px-3 py-2 shadow-lg`,onClick:H},[s(`div`,st,[h(o(q),{class:`size-3 text-success`}),s(`span`,ct,T(z(o(M)))+`/s`,1)]),n[1]||=s(`div`,{class:`h-3 w-px bg-base-content/20`},null,-1),s(`div`,lt,[h(o(B),{class:`size-3 text-info`}),s(`span`,ut,T(z(o(N)))+`/s`,1)])])):k(``,!0),o(f)?k(``,!0):(j(),u(`button`,{key:4,class:`btn fixed right-4 bottom-4 z-50 btn-circle shadow-lg btn-sm btn-primary`,title:e.$t(`showTrafficIndicator`),onClick:V},[h(o(B),{class:`size-4`})],8,dt)),h(l,{"enter-active-class":`transition-all duration-300 ease-out`,"enter-from-class":`opacity-0 scale-95`,"enter-to-class":`opacity-100 scale-100`,"leave-active-class":`transition-all duration-200 ease-in`,"leave-from-class":`opacity-100 scale-100`,"leave-to-class":`opacity-0 scale-95`},{default:C(()=>[o(f)&&!o(p)&&o(t).latestTraffic?(j(),u(`div`,{key:0,ref_key:`containerRef`,ref:E,class:i([`fixed z-50 min-w-56 rounded-box bg-base-200 shadow-lg select-none`,{"cursor-grabbing":o(v)}]),style:m(o(ee))},[s(`div`,ft,[s(`div`,pt,[s(`div`,{class:`flex cursor-grab items-center gap-1 active:cursor-grabbing`,onMousedown:U,onTouchstart:U},[h(o(re),{class:`size-4 opacity-40`}),s(`span`,mt,T(e.$t(`traffic`)),1)],32),s(`div`,ht,[s(`button`,{class:`btn btn-circle btn-ghost btn-xs`,title:e.$t(`hideTrafficIndicator`),onClick:te},[...n[2]||=[s(`span`,{class:`text-xs`},`−`,-1)]],8,gt),s(`button`,{class:`btn btn-circle btn-ghost btn-xs`,title:e.$t(`hideTrafficIndicator`),onClick:V},[h(o(ne),{class:`size-3`})],8,_t)])]),s(`div`,{ref_key:`chartContainer`,ref:D,class:`h-12 w-full`},null,512),s(`div`,vt,[s(`div`,yt,[h(o(q),{class:`size-3 text-success`}),s(`span`,bt,T(z(o(M)))+`/s `,1)]),s(`div`,xt,[h(o(B),{class:`size-3 text-info`}),s(`span`,St,T(z(o(N)))+`/s `,1)]),s(`div`,Ct,[s(`span`,null,T(e.$t(`memory`))+`:`,1),s(`span`,wt,T(z(o(F))),1)]),s(`div`,Tt,[s(`span`,null,T(e.$t(`connections`))+`:`,1),s(`span`,Et,T(o(R)),1)])])])],6)):k(``,!0)]),_:1})],64))}}),Ot=Object.assign(Dt,{__name:`GlobalTrafficIndicator`}),kt=[`data-theme`],At=e({__name:`default`,setup(e){let t=I(),a=n(),s=L(),c=P(null);S(c,e=>{e&&(s.rootElement=e)}),S([()=>t.autoSwitchTheme,r()],([e,n])=>{e&&(t.curTheme=n?t.favNightTheme:t.favDayTheme)},{immediate:!0}),S(()=>t.curTheme,e=>{document.documentElement.setAttribute(`data-theme`,e)},{immediate:!0});let l=y(()=>$()||!!a.currentEndpoint);return(e,n)=>{let r=Be,a=Ge,s=Ot;return j(),u(`div`,{ref_key:`rootElement`,ref:c,class:i([`relative h-screen overscroll-y-none bg-base-100 subpixel-antialiased`,o(t).enableTwemoji?`font-twemoji`:`font-default`]),"data-theme":o(t).curTheme},[h(r,null,{default:C(()=>[E(e.$slots,`default`)]),_:3}),o(l)?(j(),d(a,{key:0})):k(``,!0),o(l)?(j(),d(s,{key:1})):k(``,!0)],10,kt)}}});export{At as default}; \ No newline at end of file +import"./ftm_ukHF.js";import{$ as e,B as t,C as n,D as r,Dt as i,E as a,Et as o,G as s,H as c,I as l,J as u,K as d,Mt as f,N as p,Ot as m,Q as h,S as g,U as _,V as v,W as y,at as b,ct as x,dt as S,ft as C,it as w,kt as T,lt as E,ot as D,pt as O,q as k,rt as A,st as j,ut as M,x as N,yt as P}from"./CxatB1L6.js";import{h as F}from"./_v7-ePgP.js";import{t as I}from"./BxUO6acX.js";import{t as L}from"./Dnb7sY_Q.js";import{D as R,M as z,R as B,S as ee,T as V,_ as te,b as H,f as U,i as ne,j as W,u as G,v as K,w as re,y as ie,z as q}from"./BlFRk3uc.js";import{a as ae,i as J,n as Y,o as X,r as Z}from"./B_unqUh-.js";import{t as Q}from"./xQuiMcB-.js";import{g as $,v as oe}from"./DRJWd5jk.js";import{n as se,t as ce}from"./4_-5c3is.js";import{t as le}from"./DimqLJ3H.js";import{t as ue}from"./B3gVVFQn.js";import{l as de}from"./D8VGDxpn.js";var fe={class:`flex min-w-0 items-center gap-1 text-sm font-bold whitespace-nowrap uppercase sm:text-xl`},pe=e({__name:`LogoText`,setup(e){let t=n(),r=y(()=>!!t.currentEndpoint);return(e,t)=>{let n=g;return j(),u(`div`,fe,[h(n,{class:`bg-linear-to-br from-primary to-secondary bg-clip-text text-transparent`,to:o(r)?`/`:`/setup`},{default:C(()=>[...t[0]||=[s(`span`,{class:`hidden min-[400px]:inline`},`metacube`,-1),s(`span`,{class:`min-[400px]:hidden`},`mcx`,-1)]]),_:1},8,[`to`]),t[1]||=s(`span`,null,`(`,-1),t[2]||=s(`a`,{class:`text-primary transition-transform hover:scale-125 hover:rotate-90`,href:`https://github.com/metacubex/metacubexd`,target:`_blank`},` xd `,-1),t[3]||=s(`span`,null,`)`,-1)])}}}),me=Object.assign(pe,{__name:`LogoText`}),he={class:`dropdown dropdown-end`},ge={tabindex:`0`,role:`button`,class:`btn btn-circle btn-ghost`,"aria-label":`Change language`},_e={tabindex:`0`,class:`dropdown-content menu z-50 mt-2 w-40 rounded-box bg-base-200 p-2 shadow-lg`},ve=[`onClick`],ye=e({__name:`LangSwitcher`,setup(e){let{locale:t,locales:n,setLocale:r}=N(),a=y(()=>n.value.map(e=>typeof e==`string`?{code:e,name:e}:e));return(e,n)=>(j(),u(`div`,he,[s(`div`,ge,[h(o(H),{size:20})]),s(`ul`,_e,[(j(!0),u(c,null,x(o(a),e=>(j(),u(`li`,{key:e.code},[s(`button`,{class:i({"menu-active":o(t)===e.code}),onClick:t=>o(r)(e.code)},T(e.name),11,ve)]))),128))])]))}}),be=Object.assign(ye,{__name:`LangSwitcher`}),xe=[`data-theme`],Se=[`onClick`],Ce=e({__name:`ThemeSwitcher`,setup(e){let t=I(),n=P(null),r=P(null),a=P(!1),{floatingStyles:l}=Y(n,r,{placement:`top`,middleware:[ae(10),J(),X({padding:8})],whileElementsMounted:Z});function f(){a.value=!a.value}function p(e){t.curTheme=e,document.documentElement.setAttribute(`data-theme`,e),a.value=!1}function g(e){let t=e.target;!n.value?.contains(t)&&!r.value?.contains(t)&&(a.value=!1)}return b(()=>{document.addEventListener(`click`,g)}),D(()=>{document.removeEventListener(`click`,g)}),(e,g)=>(j(),u(`div`,null,[s(`button`,{ref_key:`reference`,ref:n,class:`btn btn-circle btn-sm btn-primary`,onClick:v(f,[`stop`])},[h(o(te))],512),(j(),d(_,{to:`body`},[o(a)?(j(),u(`ul`,{key:0,ref_key:`floating`,ref:r,style:m(o(l)),class:`menu z-70 max-h-64 w-40 flex-nowrap overflow-y-auto rounded-box bg-base-300 p-2 shadow-lg`},[(j(!0),u(c,null,x(o(F),e=>(j(),u(`li`,{key:e,"data-theme":e,class:`rounded-btn`},[s(`button`,{class:i([`btn justify-start btn-xs`,{"btn-active":o(t).curTheme===e}]),onClick:t=>p(e)},T(e),11,Se)],8,xe))),128))],4)):k(``,!0)]))]))}}),we=Object.assign(Ce,{__name:`ThemeSwitcher`}),Te={class:`mx-2 mb-2 overflow-hidden rounded-2xl border border-base-content/10 bg-base-300/90 shadow-lg backdrop-blur-md`},Ee={class:`grid h-16 grid-cols-6`},De={class:`sr-only`},Oe=e({__name:`MobileBottomNav`,props:{navItems:{}},setup(e){let t=p(),n=e=>t.path===e,r=P(!1);b(()=>{a(),window.addEventListener(`resize`,a),requestAnimationFrame(()=>{r.value=!0})}),D(()=>{document.body.style.paddingBottom=`0`,window.removeEventListener(`resize`,a)});function a(){document.body.style.paddingBottom=window.innerWidth<1024?`4.5rem`:`0`}return(t,a)=>{let l=g;return j(),u(`nav`,{"aria-label":`Mobile bottom navigation`,class:i([`fixed inset-x-0 bottom-0 z-50 transform transition-all duration-500 ease-out lg:hidden`,[o(r)?`translate-y-0 opacity-100`:`translate-y-full opacity-0`]])},[s(`div`,Te,[s(`div`,Ee,[(j(!0),u(c,null,x(e.navItems,e=>(j(),d(l,{key:e.href,to:e.href,class:i([`group relative flex flex-col items-center justify-center gap-0.5 transition-all duration-300`,[n(e.href)?`text-primary`:`text-base-content/60 hover:text-base-content active:scale-90`]])},{default:C(()=>[s(`div`,{class:i([`absolute inset-1 rounded-xl transition-all duration-300`,[n(e.href)?`bg-primary/10`:`bg-transparent group-hover:bg-base-content/5`]])},null,2),s(`div`,{class:i([`absolute top-1 h-1 rounded-full bg-primary transition-all duration-300`,[n(e.href)?`w-8 opacity-100`:`w-0 opacity-0`]])},null,2),s(`div`,{class:i([`relative z-10 transition-all duration-300`,[n(e.href)?`scale-110 text-xl`:`scale-100 text-lg group-hover:scale-105`]])},[(j(),d(M(e.icon)))],2),s(`span`,De,T(`Navigate to ${e.name}`),1),s(`span`,{"aria-hidden":`true`,class:i([`relative z-10 text-[10px] font-medium transition-all duration-300`,[n(e.href)?`translate-y-0 opacity-100`:`translate-y-0 opacity-80 group-hover:opacity-100 group-focus-visible:opacity-100`]])},T(e.name),3)]),_:2},1032,[`to`,`class`]))),128))])])],2)}}}),ke=Object.assign(Oe,{__name:`MobileBottomNav`}),Ae={class:`drawer-content flex h-full flex-col`},je={class:`z-50 flex h-14 w-full shrink-0 items-center gap-2 bg-base-300 px-2 shadow-lg sm:px-4 lg:hidden`},Me={key:0,for:`main-drawer`,class:`btn btn-ghost btn-sm`,"aria-label":`open sidebar`},Ne={class:`min-w-0 shrink`},Pe={class:`ml-auto flex shrink-0 items-center gap-1`},Fe={class:`flex min-h-0 flex-1 flex-col p-2 sm:p-4`},Ie={key:0,class:`drawer-side z-60`},Le={class:`flex shrink-0 flex-col gap-2 border-b border-base-content/10 p-3`},Re={class:`menu w-full flex-1 gap-1 px-2`},ze=e({__name:`Sidebar`,setup(e){let n=p(),{t:r}=N(),a=I(),l=y(()=>[{href:`/overview`,name:r(`overview`),icon:ee},{href:`/proxies`,name:r(`proxies`),icon:V},{href:`/rules`,name:r(`rules`),icon:U},{href:`/connections`,name:r(`connections`),icon:K},{href:`/logs`,name:r(`logs`),icon:R},{href:`/config`,name:r(`config`),icon:G}]),f=e=>n.path===e,m=P(null);S(()=>n.path,()=>{m.value&&(m.value.checked=!1)});let _=()=>{a.sidebarExpanded=!a.sidebarExpanded};return(e,p)=>{let v=me,y=be,b=we,S=g,w=Q,D=ke;return j(),u(`div`,{class:i([`drawer h-full`,{"lg:drawer-open":o(n).path!==`/setup`}])},[s(`input`,{id:`main-drawer`,ref_key:`drawerCheckbox`,ref:m,type:`checkbox`,class:`drawer-toggle`},null,512),s(`div`,Ae,[s(`header`,je,[o(n).path!==`/setup`&&!o(a).useMobileBottomNav?(j(),u(`label`,Me,[h(o(ie),{class:`size-5`})])):k(``,!0),s(`div`,Ne,[h(v)]),s(`div`,Pe,[p[0]||=s(`div`,{id:`header-traffic-indicator`,class:`flex items-center`},null,-1),h(y),h(b)])]),s(`div`,Fe,[E(e.$slots,`default`)])]),o(n).path===`/setup`?k(``,!0):(j(),u(`div`,Ie,[p[1]||=s(`label`,{for:`main-drawer`,"aria-label":`close sidebar`,class:`drawer-overlay`},null,-1),s(`div`,{class:i([`flex h-full w-52 flex-col bg-base-200 transition-all duration-300`,o(a).sidebarExpanded?``:`lg:w-16`])},[s(`div`,Le,[s(`div`,{class:i([`flex items-center`,o(a).sidebarExpanded?``:`lg:justify-center`])},[O(h(v,{class:`lg:block`},null,512),[[t,o(a).sidebarExpanded]]),h(v,{class:`lg:hidden`})],2),s(`button`,{class:i([`btn hidden w-full btn-ghost btn-sm lg:flex`,o(a).sidebarExpanded?``:`lg:btn-square`]),onClick:_},[o(a).sidebarExpanded?(j(),d(o(z),{key:1,class:`size-5`})):(j(),d(o(W),{key:0,class:`size-5`})),s(`span`,{class:i(o(a).sidebarExpanded?``:`lg:hidden`)},T(o(r)(`collapse`)),3)],2)]),s(`ul`,Re,[(j(!0),u(c,null,x(o(l),e=>(j(),u(`li`,{key:e.href,class:`w-full`},[h(S,{to:e.href,class:i([`flex w-full items-center gap-3`,[{"menu-active":f(e.href)},o(a).sidebarExpanded?``:`lg:justify-center lg:px-0`]]),title:o(a).sidebarExpanded?void 0:e.name},{default:C(()=>[(j(),d(M(e.icon),{class:`size-5 shrink-0`})),s(`span`,{class:i(o(a).sidebarExpanded?``:`lg:hidden`)},T(e.name),3)]),_:2},1032,[`to`,`class`,`title`])]))),128))]),s(`div`,{class:i([`shrink-0 border-t border-base-content/10 p-2`,o(a).sidebarExpanded?``:`lg:flex lg:flex-col lg:items-center`])},[s(`div`,{id:`sidebar-traffic-expanded`,class:i([`mb-2 hidden w-full`,o(a).sidebarExpanded?`lg:block`:``])},null,2),s(`div`,{id:`sidebar-traffic-indicator`,class:i([`mb-2 hidden w-full lg:block`,o(a).sidebarExpanded?`lg:hidden`:``])},null,2),s(`div`,{class:i([`mb-2 hidden items-center gap-1`,o(a).sidebarExpanded?`lg:flex`:`lg:flex lg:flex-col`])},[h(y),h(b)],2),h(w,{collapsed:!o(a).sidebarExpanded},null,8,[`collapsed`])],2)],2)])),o(a).useMobileBottomNav&&o(n).path!==`/setup`?(j(),d(D,{key:1,"nav-items":o(l)},null,8,[`nav-items`])):k(``,!0)],2)}}}),Be=Object.assign(ze,{__name:`Sidebar`});const Ve=globalThis.setInterval;function He(){let e=n(),t=se(),r=L(),i=le(),a=I(),o=null,s=null,c=null,l=null,u=null,d=(t,n)=>{let r=e.currentEndpoint;if(!r)return null;let i=e.wsEndpointURL,a=r.secret,o=new URLSearchParams;a&&o.set(`token`,a);let s=new WebSocket(`${i}/${t}?${o.toString()}`);return s.onmessage=e=>{try{n(JSON.parse(e.data))}catch{}},s.onerror=e=>{console.error(`WebSocket error for ${t}:`,e)},s};return{connect:()=>{if($()){let e=oe();t.updateFromWsMsg({connections:e.mockConnections,uploadTotal:e.mockTrafficStats.up,downloadTotal:e.mockTrafficStats.down}),r.setLatestTraffic(e.mockTrafficStats),r.setLatestMemory(e.mockMemory);let n=Date.now(),a=e.mockConnections.length;for(let t=30;t>=0;t--){let i=n-t*1e3,o=e.mockTrafficStats.down+Math.floor(Math.random()*1e5)-5e4,s=e.mockTrafficStats.up+Math.floor(Math.random()*2e4)-1e4,c=e.mockMemory.inuse+Math.floor(Math.random()*5e6)-25e5,l=a+Math.floor(Math.random()*10)-5;r.addTrafficDataPoint(i,o,s),r.addMemoryDataPoint(i,c),r.addConnectionCountDataPoint(i,l)}e.mockLogs.forEach(e=>{i.addLog(e)}),u=Ve(()=>{let t=Date.now(),n={up:e.mockTrafficStats.up+Math.floor(Math.random()*1e4),down:e.mockTrafficStats.down+Math.floor(Math.random()*5e4)};r.setLatestTraffic(n),r.addTrafficDataPoint(t,n.down,n.up);let i={inuse:e.mockMemory.inuse+Math.floor(Math.random()*5e6)-25e5,oslimit:e.mockMemory.oslimit};r.setLatestMemory(i),r.addMemoryDataPoint(t,i.inuse);let a=e.mockConnections.length+Math.floor(Math.random()*10)-5;r.addConnectionCountDataPoint(t,a)},1e3);return}o=d(`connections`,e=>{let n=e;if(t.updateFromWsMsg(n),n){let e=n.connections?.length??0;r.addConnectionCountDataPoint(Date.now(),e)}}),s=d(`traffic`,e=>{let t=e;r.setLatestTraffic(t),r.addTrafficDataPoint(Date.now(),t.down,t.up)}),c=d(`memory`,e=>{let t=e;r.setLatestMemory(t),r.addMemoryDataPoint(Date.now(),t.inuse)});let n=e.currentEndpoint;if(n){let t=e.wsEndpointURL,r=new URLSearchParams;n.secret&&r.set(`token`,n.secret),r.set(`level`,a.logLevel),l=new WebSocket(`${t}/logs?${r.toString()}`),l.onmessage=e=>{try{let t=JSON.parse(e.data);i.addLog(t)}catch{}}}},disconnect:()=>{u&&=(clearInterval(u),null),o?.close(),s?.close(),c?.close(),l?.close(),o=null,s=null,c=null,l=null},reconnectLogs:()=>{l?.close();let t=e.currentEndpoint;if(t){let n=e.wsEndpointURL,r=new URLSearchParams;t.secret&&r.set(`token`,t.secret),r.set(`level`,a.logLevel),l=new WebSocket(`${n}/logs?${r.toString()}`),l.onmessage=e=>{try{let t=JSON.parse(e.data);i.addLog(t)}catch{}}}}}}var Ue={class:`hidden`},We=e({__name:`ProtectedResources`,setup(e){let{connect:t,disconnect:n,reconnectLogs:r}=He(),i=I();return b(()=>{t()}),D(()=>{n()}),S(()=>i.logLevel,()=>{r()}),(e,t)=>(j(),u(`div`,Ue))}}),Ge=Object.assign(We,{__name:`ProtectedResources`}),Ke=f(ue(),1),qe={class:`flex items-center gap-1`},Je={class:`font-mono text-xs`},Ye={class:`flex items-center gap-1`},Xe={class:`font-mono text-xs`},Ze={class:`flex items-center justify-center gap-1`},Qe={class:`font-mono text-xs`},$e={class:`flex items-center justify-center gap-1`},et={class:`font-mono text-xs`},tt={key:0,class:`rounded-btn w-full bg-base-100/50 p-2`},nt={class:`grid grid-cols-2 gap-1 text-xs`},rt={class:`flex items-center gap-1`},it={class:`truncate font-mono`},at={class:`flex items-center gap-1`},ot={class:`truncate font-mono`},st={class:`flex items-center gap-1`},ct={class:`font-mono text-xs`},lt={class:`flex items-center gap-1`},ut={class:`font-mono text-xs`},dt=[`title`],ft={class:`flex flex-col gap-2 p-3`},pt={class:`flex items-center justify-between gap-2`},mt={class:`text-xs font-semibold uppercase opacity-60`},ht={class:`flex items-center gap-1`},gt=[`title`],_t=[`title`],vt={class:`grid grid-cols-2 gap-x-4 gap-y-1 text-xs`},yt={class:`flex items-center gap-1.5`},bt={class:`font-mono font-medium`},xt={class:`flex items-center gap-1.5`},St={class:`font-mono font-medium`},Ct={class:`flex items-center gap-1.5 opacity-70`},wt={class:`font-mono`},Tt={class:`flex items-center gap-1.5 opacity-70`},Et={class:`font-mono`},Dt=e({__name:`GlobalTrafficIndicator`,setup(e){let t=L(),n=se(),r=I(),f=a(`globalTrafficIndicatorVisible`,!0),p=a(`globalTrafficIndicatorCollapsed`,!0),g=a(`globalTrafficIndicatorPosition`,{x:-1,y:-1}),v=P(!1),x=P({x:0,y:0}),E=P(null),D=P(null),O,M=y(()=>t.latestTraffic?.down??0),N=y(()=>t.latestTraffic?.up??0),F=y(()=>t.latestMemory?.inuse??0),R=y(()=>n.latestConnectionMsg?.connections?.length??0),z=e=>ce(e).toString(),ee=y(()=>g.value.x===-1||g.value.y===-1?{right:`16px`,bottom:`16px`}:{left:`${g.value.x}px`,top:`${g.value.y}px`});function V(){f.value=!f.value}function te(){p.value=!p.value}function H(){p.value=!1,g.value={x:-1,y:-1}}function U(e){if(!E.value)return;v.value=!0;let t=E.value.getBoundingClientRect(),n=`touches`in e?e.touches[0].clientX:e.clientX,r=`touches`in e?e.touches[0].clientY:e.clientY;x.value={x:n-t.left,y:r-t.top},g.value.x===-1&&(g.value.x=t.left,g.value.y=t.top),document.addEventListener(`mousemove`,W),document.addEventListener(`mouseup`,G),document.addEventListener(`touchmove`,W),document.addEventListener(`touchend`,G)}function W(e){if(!v.value)return;let t=`touches`in e?e.touches[0].clientX:e.clientX,n=`touches`in e?e.touches[0].clientY:e.clientY,r=t-x.value.x,i=n-x.value.y,a=E.value?.getBoundingClientRect(),o=a?.width||200,s=a?.height||150;r=Math.max(0,Math.min(window.innerWidth-o,r)),i=Math.max(0,Math.min(window.innerHeight-s,i)),g.value.x=r,g.value.y=i}function G(){v.value&&(v.value=!1,document.removeEventListener(`mousemove`,W),document.removeEventListener(`mouseup`,G),document.removeEventListener(`touchmove`,W),document.removeEventListener(`touchend`,G))}function K(){if(!D.value)return;O&&=(O.destroy(),void 0);let e=de(),n=D.value.offsetWidth||200;O=Ke.default.chart(D.value,{chart:{type:`areaspline`,backgroundColor:`transparent`,spacing:[0,0,0,0],margin:[0,0,0,0],animation:!1,width:n,height:48},credits:{enabled:!1},accessibility:{enabled:!1},title:{text:void 0},legend:{enabled:!1},xAxis:{visible:!1,type:`datetime`},yAxis:{visible:!1,min:0},tooltip:{enabled:!1},plotOptions:{areaspline:{lineWidth:1.5,marker:{enabled:!1},fillOpacity:.2,animation:!1}},series:[{type:`areaspline`,name:`Download`,color:e.seriesColors[0],data:t.trafficChartHistory.download.length>0?[...t.trafficChartHistory.download].slice(-30):[[Date.now(),0]]},{type:`areaspline`,name:`Upload`,color:e.seriesColors[1],data:t.trafficChartHistory.upload.length>0?[...t.trafficChartHistory.upload].slice(-30):[[Date.now(),0]]}]})}function ie(){if(!O)return;let e=[...t.trafficChartHistory.download].slice(-30),n=[...t.trafficChartHistory.upload].slice(-30);O.series[0]?.setData(e,!1),O.series[1]?.setData(n,!0)}function ae(){if(!$)return;let e=[...t.trafficChartHistory.download].slice(-30),n=[...t.trafficChartHistory.upload].slice(-30);$.series[0]?.setData(e,!1),$.series[1]?.setData(n,!0)}function J(){if(!Q.value)return;$&&=($.destroy(),void 0);let e=de();$=Ke.default.chart(Q.value,{chart:{type:`areaspline`,backgroundColor:`transparent`,spacing:[0,0,0,0],margin:[0,0,0,0],animation:!1,height:40},credits:{enabled:!1},accessibility:{enabled:!1},title:{text:void 0},legend:{enabled:!1},xAxis:{visible:!1,type:`datetime`},yAxis:{visible:!1,min:0},tooltip:{enabled:!1},plotOptions:{areaspline:{lineWidth:1.5,marker:{enabled:!1},fillOpacity:.2,animation:!1}},series:[{type:`areaspline`,name:`Download`,color:e.seriesColors[0],data:t.trafficChartHistory.download.length>0?[...t.trafficChartHistory.download].slice(-30):[[Date.now(),0]]},{type:`areaspline`,name:`Upload`,color:e.seriesColors[1],data:t.trafficChartHistory.upload.length>0?[...t.trafficChartHistory.upload].slice(-30):[[Date.now(),0]]}]})}S(()=>t.latestTraffic,e=>{e&&(O?ie():D.value&&f.value&&!p.value&&K(),$?ae():Q.value&&J())}),S(()=>r.curTheme,()=>{D.value&&!p.value&&f.value&&K(),Q.value&&J()}),S(p,e=>{!e&&f.value?A(()=>{setTimeout(()=>{D.value&&t.latestTraffic&&K()},50)}):e&&O&&(O.destroy(),O=void 0)}),S(f,e=>{e&&!p.value?A(()=>{setTimeout(()=>{D.value&&t.latestTraffic&&K()},50)}):!e&&O&&(O.destroy(),O=void 0)}),S(()=>r.sidebarExpanded,e=>{e&&A(()=>{setTimeout(()=>{Q.value&&t.latestTraffic&&J()},100)})});let Y=P(!1),X=P(!1),Z=P(!1),Q=P(null),$;return b(()=>{A(()=>{Y.value=!!document.getElementById(`header-traffic-indicator`),X.value=!!document.getElementById(`sidebar-traffic-indicator`),Z.value=!!document.getElementById(`sidebar-traffic-expanded`)}),f.value&&!p.value&&t.latestTraffic&&setTimeout(()=>{D.value&&K()},100),t.latestTraffic&&setTimeout(()=>{Q.value&&J()},150)}),w(()=>{O&&=(O.destroy(),void 0),$&&=($.destroy(),void 0)}),(e,n)=>(j(),u(c,null,[o(Y)?(j(),d(_,{key:0,to:`#header-traffic-indicator`},[o(f)&&o(p)&&o(t).latestTraffic?(j(),u(`div`,{key:0,class:`rounded-btn flex cursor-pointer items-center gap-2 bg-base-100/50 px-2 py-1 transition-colors hover:bg-base-100`,onClick:H},[s(`div`,qe,[h(o(q),{class:`size-3 text-success`}),s(`span`,Je,T(z(o(M)))+`/s`,1)]),n[0]||=s(`div`,{class:`h-3 w-px bg-base-content/20`},null,-1),s(`div`,Ye,[h(o(B),{class:`size-3 text-info`}),s(`span`,Xe,T(z(o(N)))+`/s`,1)])])):k(``,!0)])):k(``,!0),o(X)?(j(),d(_,{key:1,to:`#sidebar-traffic-indicator`},[o(t).latestTraffic?(j(),u(`div`,{key:0,class:`rounded-btn w-full cursor-pointer bg-base-100/50 px-2 py-2 transition-colors hover:bg-base-100`,onClick:H},[s(`div`,Ze,[h(o(q),{class:`size-3 text-success`}),s(`span`,Qe,T(z(o(M)))+`/s`,1)]),s(`div`,$e,[h(o(B),{class:`size-3 text-info`}),s(`span`,et,T(z(o(N)))+`/s`,1)])])):k(``,!0)])):k(``,!0),o(Z)?(j(),d(_,{key:2,to:`#sidebar-traffic-expanded`},[o(t).latestTraffic?(j(),u(`div`,tt,[s(`div`,{ref_key:`sidebarChartContainer`,ref:Q,class:`mb-2 h-10 w-full`},null,512),s(`div`,nt,[s(`div`,rt,[h(o(q),{class:`size-3 shrink-0 text-success`}),s(`span`,it,T(z(o(M)))+`/s`,1)]),s(`div`,at,[h(o(B),{class:`size-3 shrink-0 text-info`}),s(`span`,ot,T(z(o(N)))+`/s`,1)])])])):k(``,!0)])):k(``,!0),o(f)&&o(p)&&o(t).latestTraffic&&!o(Y)&&!o(X)?(j(),u(`div`,{key:3,class:`fixed right-4 bottom-4 z-50 flex cursor-pointer items-center gap-2 rounded-box bg-base-200 px-3 py-2 shadow-lg`,onClick:H},[s(`div`,st,[h(o(q),{class:`size-3 text-success`}),s(`span`,ct,T(z(o(M)))+`/s`,1)]),n[1]||=s(`div`,{class:`h-3 w-px bg-base-content/20`},null,-1),s(`div`,lt,[h(o(B),{class:`size-3 text-info`}),s(`span`,ut,T(z(o(N)))+`/s`,1)])])):k(``,!0),o(f)?k(``,!0):(j(),u(`button`,{key:4,class:`btn fixed right-4 bottom-4 z-50 btn-circle shadow-lg btn-sm btn-primary`,title:e.$t(`showTrafficIndicator`),onClick:V},[h(o(B),{class:`size-4`})],8,dt)),h(l,{"enter-active-class":`transition-all duration-300 ease-out`,"enter-from-class":`opacity-0 scale-95`,"enter-to-class":`opacity-100 scale-100`,"leave-active-class":`transition-all duration-200 ease-in`,"leave-from-class":`opacity-100 scale-100`,"leave-to-class":`opacity-0 scale-95`},{default:C(()=>[o(f)&&!o(p)&&o(t).latestTraffic?(j(),u(`div`,{key:0,ref_key:`containerRef`,ref:E,class:i([`fixed z-50 min-w-56 rounded-box bg-base-200 shadow-lg select-none`,{"cursor-grabbing":o(v)}]),style:m(o(ee))},[s(`div`,ft,[s(`div`,pt,[s(`div`,{class:`flex cursor-grab items-center gap-1 active:cursor-grabbing`,onMousedown:U,onTouchstart:U},[h(o(re),{class:`size-4 opacity-40`}),s(`span`,mt,T(e.$t(`traffic`)),1)],32),s(`div`,ht,[s(`button`,{class:`btn btn-circle btn-ghost btn-xs`,title:e.$t(`hideTrafficIndicator`),onClick:te},[...n[2]||=[s(`span`,{class:`text-xs`},`−`,-1)]],8,gt),s(`button`,{class:`btn btn-circle btn-ghost btn-xs`,title:e.$t(`hideTrafficIndicator`),onClick:V},[h(o(ne),{class:`size-3`})],8,_t)])]),s(`div`,{ref_key:`chartContainer`,ref:D,class:`h-12 w-full`},null,512),s(`div`,vt,[s(`div`,yt,[h(o(q),{class:`size-3 text-success`}),s(`span`,bt,T(z(o(M)))+`/s `,1)]),s(`div`,xt,[h(o(B),{class:`size-3 text-info`}),s(`span`,St,T(z(o(N)))+`/s `,1)]),s(`div`,Ct,[s(`span`,null,T(e.$t(`memory`))+`:`,1),s(`span`,wt,T(z(o(F))),1)]),s(`div`,Tt,[s(`span`,null,T(e.$t(`connections`))+`:`,1),s(`span`,Et,T(o(R)),1)])])])],6)):k(``,!0)]),_:1})],64))}}),Ot=Object.assign(Dt,{__name:`GlobalTrafficIndicator`}),kt=[`data-theme`],At=e({__name:`default`,setup(e){let t=I(),a=n(),s=L(),c=P(null);S(c,e=>{e&&(s.rootElement=e)}),S([()=>t.autoSwitchTheme,r()],([e,n])=>{e&&(t.curTheme=n?t.favNightTheme:t.favDayTheme)},{immediate:!0}),S(()=>t.curTheme,e=>{document.documentElement.setAttribute(`data-theme`,e)},{immediate:!0});let l=y(()=>$()||!!a.currentEndpoint);return(e,n)=>{let r=Be,a=Ge,s=Ot;return j(),u(`div`,{ref_key:`rootElement`,ref:c,class:i([`relative h-screen overscroll-y-none bg-base-100 subpixel-antialiased`,o(t).enableTwemoji?`font-twemoji`:`font-default`]),"data-theme":o(t).curTheme},[h(r,null,{default:C(()=>[E(e.$slots,`default`)]),_:3}),o(l)?(j(),d(a,{key:0})):k(``,!0),o(l)?(j(),d(s,{key:1})):k(``,!0)],10,kt)}}});export{At as default}; \ No newline at end of file diff --git a/dashboard/public/_nuxt/BlP2MkkZ.js b/dashboard/public/_nuxt/4_-5c3is.js similarity index 97% rename from dashboard/public/_nuxt/BlP2MkkZ.js rename to dashboard/public/_nuxt/4_-5c3is.js index 71d9b63..0dd90c2 100644 --- a/dashboard/public/_nuxt/BlP2MkkZ.js +++ b/dashboard/public/_nuxt/4_-5c3is.js @@ -1 +1 @@ -import{E as e,M as t,W as n,yt as r}from"./DOvCTup-.js";import{a as i}from"./_v7-ePgP.js";import{t as a}from"./4rydX2E6.js";var o=typeof global==`object`&&global&&global.Object===Object&&global,s=typeof self==`object`&&self&&self.Object===Object&&self,c=o||s||Function(`return this`)(),l=c.Symbol,u=Object.prototype,d=u.hasOwnProperty,f=u.toString,p=l?l.toStringTag:void 0;function m(e){var t=d.call(e,p),n=e[p];try{e[p]=void 0;var r=!0}catch{}var i=f.call(e);return r&&(t?e[p]=n:delete e[p]),i}var h=m,g=Object.prototype.toString;function _(e){return g.call(e)}var v=_,y=`[object Null]`,b=`[object Undefined]`,x=l?l.toStringTag:void 0;function S(e){return e==null?e===void 0?b:y:x&&x in Object(e)?h(e):v(e)}var C=S;function w(e){return typeof e==`object`&&!!e}var T=w,E=`[object Number]`;function D(e){return typeof e==`number`||T(e)&&C(e)==E}var O=D;const k=t(`connections`,()=>{let t=a(),i=r([]),o=r([]),s=r([]),c=r(null),l=r(!1),u=e(`dataUsageMap`,{}),d=e(`dataUsageBaseline`,{upload:0,download:0}),f=0,p=0,m=new Map,h=!1,g=(e,t)=>{let n=new Map;return t.forEach(e=>n.set(e.id,e)),e.map(e=>{let t=n.get(e.id);if(!t||!O(t.download)||!O(t.upload)){let t=e;return{...e,downloadSpeed:t.downloadSpeed??0,uploadSpeed:t.uploadSpeed??0}}return{...e,downloadSpeed:e.download-t.download,uploadSpeed:e.upload-t.upload}})},_=e=>{let t=new Set,n=[];for(let e of i.value)t.has(e.id)||(t.add(e.id),n.push(e));for(let r of e)t.has(r.id)||(t.add(r.id),n.push(r));let r=e.length+200;i.value=r>0&&n.length>r?n.slice(-r):n},v=(e,t)=>{let n=new Set(e.map(e=>e.id));return t.filter(e=>!n.has(e.id))},y=()=>{m.clear(),d.value={upload:0,download:0},h=!1,console.log(`[Data Usage] Connection tracking reset due to service restart`)},b=()=>{u.value={},m.clear()},x=e=>{let t={...u.value};delete t[e],u.value=t},S=e=>{let t=e?new Set(e.map(e=>e.id)):new Set(i.value.map(e=>e.id));m.forEach((e,n)=>{t.has(n)||m.delete(n)})},C=e=>{c.value=e;let n=e?.connections,r=e?.uploadTotal||0,a=e?.downloadTotal||0;if((r{let t=c.value;t?.uploadTotal,t?.downloadTotal,h||=!0;let n={...u.value},r=Date.now(),i=new Map;e.forEach(e=>{let t=e.metadata.sourceIP;if(!t)return;let n=e.upload||0,r=e.download||0;i.has(t)||i.set(t,{upload:0,download:0,connectionIds:new Set});let a=i.get(t);a.connectionIds.add(e.id);let o=m.get(e.id);if(o){let e=Math.max(0,n-o.upload),t=Math.max(0,r-o.download);a.upload+=e,a.download+=t}else a.upload+=n,a.download+=r;m.set(e.id,{upload:n,download:r})}),i.forEach((e,t)=>{let i=n[t];i?e.upload>0||e.download>0?n[t]={...i,upload:i.upload+e.upload,download:i.download+e.download,total:i.upload+e.upload+(i.download+e.download),firstSeen:i.firstSeen||r,lastSeen:r}:n[t]={...i,lastSeen:r}:(e.upload>0||e.download>0)&&(n[t]={sourceIP:t,macAddress:``,upload:e.upload,download:e.download,total:e.upload+e.download,firstSeen:r,lastSeen:r})}),u.value=n};return{allConnections:i,activeConnections:o,closedConnections:s,latestConnectionMsg:c,paused:l,dataUsageMap:u,speedGroupByName:n(()=>{let e={};return o.value.forEach(t=>{t.chains.forEach(n=>{e[n]||(e[n]=0),e[n]+=t.downloadSpeed})}),e}),updateFromWsMsg:C,clearDataUsage:b,removeDataUsageEntry:x,restructRawMsgToConnection:g}});var A={},j=new WeakMap,M={metric:[{from:0,to:1e3,unit:`B`,long:`bytes`},{from:1e3,to:1e6,unit:`kB`,long:`kilobytes`},{from:1e6,to:1e9,unit:`MB`,long:`megabytes`},{from:1e9,to:0xe8d4a51000,unit:`GB`,long:`gigabytes`},{from:0xe8d4a51000,to:0x38d7ea4c68000,unit:`TB`,long:`terabytes`},{from:0x38d7ea4c68000,to:0xde0b6b3a7640000,unit:`PB`,long:`petabytes`},{from:0xde0b6b3a7640000,to:1e21,unit:`EB`,long:`exabytes`},{from:1e21,to:1e24,unit:`ZB`,long:`zettabytes`},{from:1e24,to:1e27,unit:`YB`,long:`yottabytes`}],metric_octet:[{from:0,to:1e3,unit:`o`,long:`octets`},{from:1e3,to:1e6,unit:`ko`,long:`kilooctets`},{from:1e6,to:1e9,unit:`Mo`,long:`megaoctets`},{from:1e9,to:0xe8d4a51000,unit:`Go`,long:`gigaoctets`},{from:0xe8d4a51000,to:0x38d7ea4c68000,unit:`To`,long:`teraoctets`},{from:0x38d7ea4c68000,to:0xde0b6b3a7640000,unit:`Po`,long:`petaoctets`},{from:0xde0b6b3a7640000,to:1e21,unit:`Eo`,long:`exaoctets`},{from:1e21,to:1e24,unit:`Zo`,long:`zettaoctets`},{from:1e24,to:1e27,unit:`Yo`,long:`yottaoctets`}],iec:[{from:0,to:1024**1,unit:`B`,long:`bytes`},{from:1024**1,to:1024**2,unit:`KiB`,long:`kibibytes`},{from:1024**2,to:1024**3,unit:`MiB`,long:`mebibytes`},{from:1024**3,to:1024**4,unit:`GiB`,long:`gibibytes`},{from:1024**4,to:1024**5,unit:`TiB`,long:`tebibytes`},{from:1024**5,to:1024**6,unit:`PiB`,long:`pebibytes`},{from:1024**6,to:1024**7,unit:`EiB`,long:`exbibytes`},{from:1024**7,to:1024**8,unit:`ZiB`,long:`zebibytes`},{from:1024**8,to:1024**9,unit:`YiB`,long:`yobibytes`}],iec_octet:[{from:0,to:1024**1,unit:`o`,long:`octets`},{from:1024**1,to:1024**2,unit:`Kio`,long:`kibioctets`},{from:1024**2,to:1024**3,unit:`Mio`,long:`mebioctets`},{from:1024**3,to:1024**4,unit:`Gio`,long:`gibioctets`},{from:1024**4,to:1024**5,unit:`Tio`,long:`tebioctets`},{from:1024**5,to:1024**6,unit:`Pio`,long:`pebioctets`},{from:1024**6,to:1024**7,unit:`Eio`,long:`exbioctets`},{from:1024**7,to:1024**8,unit:`Zio`,long:`zebioctets`},{from:1024**8,to:1024**9,unit:`Yio`,long:`yobioctets`}]},N=class{constructor(e,t){t=Object.assign({units:`metric`,precision:1,locale:void 0},A,t),j.set(this,t),Object.assign(M,t.customUnits);let n=e<0?`-`:``;e=Math.abs(e);let r=M[t.units];if(r){let i=r.find(t=>e>=t.from&&e{let t=a(),i=r([]),o=r([]),s=r([]),c=r(null),l=r(!1),u=e(`dataUsageMap`,{}),d=e(`dataUsageBaseline`,{upload:0,download:0}),f=0,p=0,m=new Map,h=!1,g=(e,t)=>{let n=new Map;return t.forEach(e=>n.set(e.id,e)),e.map(e=>{let t=n.get(e.id);if(!t||!O(t.download)||!O(t.upload)){let t=e;return{...e,downloadSpeed:t.downloadSpeed??0,uploadSpeed:t.uploadSpeed??0}}return{...e,downloadSpeed:e.download-t.download,uploadSpeed:e.upload-t.upload}})},_=e=>{let t=new Set,n=[];for(let e of i.value)t.has(e.id)||(t.add(e.id),n.push(e));for(let r of e)t.has(r.id)||(t.add(r.id),n.push(r));let r=e.length+200;i.value=r>0&&n.length>r?n.slice(-r):n},v=(e,t)=>{let n=new Set(e.map(e=>e.id));return t.filter(e=>!n.has(e.id))},y=()=>{m.clear(),d.value={upload:0,download:0},h=!1,console.log(`[Data Usage] Connection tracking reset due to service restart`)},b=()=>{u.value={},m.clear()},x=e=>{let t={...u.value};delete t[e],u.value=t},S=e=>{let t=e?new Set(e.map(e=>e.id)):new Set(i.value.map(e=>e.id));m.forEach((e,n)=>{t.has(n)||m.delete(n)})},C=e=>{c.value=e;let n=e?.connections,r=e?.uploadTotal||0,a=e?.downloadTotal||0;if((r{let t=c.value;t?.uploadTotal,t?.downloadTotal,h||=!0;let n={...u.value},r=Date.now(),i=new Map;e.forEach(e=>{let t=e.metadata.sourceIP;if(!t)return;let n=e.upload||0,r=e.download||0;i.has(t)||i.set(t,{upload:0,download:0,connectionIds:new Set});let a=i.get(t);a.connectionIds.add(e.id);let o=m.get(e.id);if(o){let e=Math.max(0,n-o.upload),t=Math.max(0,r-o.download);a.upload+=e,a.download+=t}else a.upload+=n,a.download+=r;m.set(e.id,{upload:n,download:r})}),i.forEach((e,t)=>{let i=n[t];i?e.upload>0||e.download>0?n[t]={...i,upload:i.upload+e.upload,download:i.download+e.download,total:i.upload+e.upload+(i.download+e.download),firstSeen:i.firstSeen||r,lastSeen:r}:n[t]={...i,lastSeen:r}:(e.upload>0||e.download>0)&&(n[t]={sourceIP:t,macAddress:``,upload:e.upload,download:e.download,total:e.upload+e.download,firstSeen:r,lastSeen:r})}),u.value=n};return{allConnections:i,activeConnections:o,closedConnections:s,latestConnectionMsg:c,paused:l,dataUsageMap:u,speedGroupByName:n(()=>{let e={};return o.value.forEach(t=>{t.chains.forEach(n=>{e[n]||(e[n]=0),e[n]+=t.downloadSpeed})}),e}),updateFromWsMsg:C,clearDataUsage:b,removeDataUsageEntry:x,restructRawMsgToConnection:g}});var A={},j=new WeakMap,M={metric:[{from:0,to:1e3,unit:`B`,long:`bytes`},{from:1e3,to:1e6,unit:`kB`,long:`kilobytes`},{from:1e6,to:1e9,unit:`MB`,long:`megabytes`},{from:1e9,to:0xe8d4a51000,unit:`GB`,long:`gigabytes`},{from:0xe8d4a51000,to:0x38d7ea4c68000,unit:`TB`,long:`terabytes`},{from:0x38d7ea4c68000,to:0xde0b6b3a7640000,unit:`PB`,long:`petabytes`},{from:0xde0b6b3a7640000,to:1e21,unit:`EB`,long:`exabytes`},{from:1e21,to:1e24,unit:`ZB`,long:`zettabytes`},{from:1e24,to:1e27,unit:`YB`,long:`yottabytes`}],metric_octet:[{from:0,to:1e3,unit:`o`,long:`octets`},{from:1e3,to:1e6,unit:`ko`,long:`kilooctets`},{from:1e6,to:1e9,unit:`Mo`,long:`megaoctets`},{from:1e9,to:0xe8d4a51000,unit:`Go`,long:`gigaoctets`},{from:0xe8d4a51000,to:0x38d7ea4c68000,unit:`To`,long:`teraoctets`},{from:0x38d7ea4c68000,to:0xde0b6b3a7640000,unit:`Po`,long:`petaoctets`},{from:0xde0b6b3a7640000,to:1e21,unit:`Eo`,long:`exaoctets`},{from:1e21,to:1e24,unit:`Zo`,long:`zettaoctets`},{from:1e24,to:1e27,unit:`Yo`,long:`yottaoctets`}],iec:[{from:0,to:1024**1,unit:`B`,long:`bytes`},{from:1024**1,to:1024**2,unit:`KiB`,long:`kibibytes`},{from:1024**2,to:1024**3,unit:`MiB`,long:`mebibytes`},{from:1024**3,to:1024**4,unit:`GiB`,long:`gibibytes`},{from:1024**4,to:1024**5,unit:`TiB`,long:`tebibytes`},{from:1024**5,to:1024**6,unit:`PiB`,long:`pebibytes`},{from:1024**6,to:1024**7,unit:`EiB`,long:`exbibytes`},{from:1024**7,to:1024**8,unit:`ZiB`,long:`zebibytes`},{from:1024**8,to:1024**9,unit:`YiB`,long:`yobibytes`}],iec_octet:[{from:0,to:1024**1,unit:`o`,long:`octets`},{from:1024**1,to:1024**2,unit:`Kio`,long:`kibioctets`},{from:1024**2,to:1024**3,unit:`Mio`,long:`mebioctets`},{from:1024**3,to:1024**4,unit:`Gio`,long:`gibioctets`},{from:1024**4,to:1024**5,unit:`Tio`,long:`tebioctets`},{from:1024**5,to:1024**6,unit:`Pio`,long:`pebioctets`},{from:1024**6,to:1024**7,unit:`Eio`,long:`exbioctets`},{from:1024**7,to:1024**8,unit:`Zio`,long:`zebioctets`},{from:1024**8,to:1024**9,unit:`Yio`,long:`yobioctets`}]},N=class{constructor(e,t){t=Object.assign({units:`metric`,precision:1,locale:void 0},A,t),j.set(this,t),Object.assign(M,t.customUnits);let n=e<0?`-`:``;e=Math.abs(e);let r=M[t.units];if(r){let i=r.find(t=>e>=t.from&&e{(function(n,r){typeof e==`object`&&typeof t==`object`?(n._Highcharts=r(),t.exports=n._Highcharts):typeof define==`function`&&define.amd?define(`highcharts/highcharts`,[],r):typeof e==`object`?(n._Highcharts=r(),e.highcharts=n._Highcharts):(n.Highcharts&&n.Highcharts.error(16,!0),n.Highcharts=r())})(typeof window>`u`?e:window,()=>(()=>{let e,t;var n,r,i,a,o,s,c,l,u,d,f,p,m,h,g,_,v,y,b={};b.d=(e,t)=>{for(var n in t)b.o(t,n)&&!b.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},b.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var x={};b.d(x,{default:()=>md}),function(e){e.SVG_NS=`http://www.w3.org/2000/svg`,e.product=`Highcharts`,e.version=`12.4.0`,e.win=typeof window<`u`?window:{},e.doc=e.win.document,e.svg=!!e.doc?.createElementNS?.(e.SVG_NS,`svg`)?.createSVGRect,e.pageLang=e.doc?.documentElement?.closest(`[lang]`)?.lang,e.userAgent=e.win.navigator?.userAgent||``,e.isChrome=e.win.chrome,e.isFirefox=e.userAgent.indexOf(`Firefox`)!==-1,e.isMS=/(edge|msie|trident)/i.test(e.userAgent)&&!e.win.opera,e.isSafari=!e.isChrome&&e.userAgent.indexOf(`Safari`)!==-1,e.isTouchDevice=/(Mobile|Android|Windows Phone)/.test(e.userAgent),e.isWebKit=e.userAgent.indexOf(`AppleWebKit`)!==-1,e.deg2rad=2*Math.PI/360,e.marginNames=[`plotTop`,`marginRight`,`marginBottom`,`plotLeft`],e.noop=function(){},e.supportsPassiveEvents=function(){let t=!1;if(!e.isMS){let n=Object.defineProperty({},`passive`,{get:function(){t=!0}});e.win.addEventListener&&e.win.removeEventListener&&(e.win.addEventListener(`testPassive`,e.noop,n),e.win.removeEventListener(`testPassive`,e.noop,n))}return t}(),e.charts=[],e.composed=[],e.dateFormats={},e.seriesTypes={},e.symbolSizes={},e.chartCount=0}(n||={});let S=n,{charts:C,doc:w,win:T}=S;function E(e,t,n,r){let i=t?`Highcharts error`:`Highcharts warning`;e===32&&(e=`${i}: Deprecated member`);let a=te(e),o=a?`${i} #${e}: www.highcharts.com/errors/${e}/`:e.toString();if(r!==void 0){let e=``;a&&(o+=`?`),de(r,function(t,n){e+=` +import{At as e}from"./CxatB1L6.js";var t=e(((e,t)=>{(function(n,r){typeof e==`object`&&typeof t==`object`?(n._Highcharts=r(),t.exports=n._Highcharts):typeof define==`function`&&define.amd?define(`highcharts/highcharts`,[],r):typeof e==`object`?(n._Highcharts=r(),e.highcharts=n._Highcharts):(n.Highcharts&&n.Highcharts.error(16,!0),n.Highcharts=r())})(typeof window>`u`?e:window,()=>(()=>{let e,t;var n,r,i,a,o,s,c,l,u,d,f,p,m,h,g,_,v,y,b={};b.d=(e,t)=>{for(var n in t)b.o(t,n)&&!b.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},b.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var x={};b.d(x,{default:()=>md}),function(e){e.SVG_NS=`http://www.w3.org/2000/svg`,e.product=`Highcharts`,e.version=`12.4.0`,e.win=typeof window<`u`?window:{},e.doc=e.win.document,e.svg=!!e.doc?.createElementNS?.(e.SVG_NS,`svg`)?.createSVGRect,e.pageLang=e.doc?.documentElement?.closest(`[lang]`)?.lang,e.userAgent=e.win.navigator?.userAgent||``,e.isChrome=e.win.chrome,e.isFirefox=e.userAgent.indexOf(`Firefox`)!==-1,e.isMS=/(edge|msie|trident)/i.test(e.userAgent)&&!e.win.opera,e.isSafari=!e.isChrome&&e.userAgent.indexOf(`Safari`)!==-1,e.isTouchDevice=/(Mobile|Android|Windows Phone)/.test(e.userAgent),e.isWebKit=e.userAgent.indexOf(`AppleWebKit`)!==-1,e.deg2rad=2*Math.PI/360,e.marginNames=[`plotTop`,`marginRight`,`marginBottom`,`plotLeft`],e.noop=function(){},e.supportsPassiveEvents=function(){let t=!1;if(!e.isMS){let n=Object.defineProperty({},`passive`,{get:function(){t=!0}});e.win.addEventListener&&e.win.removeEventListener&&(e.win.addEventListener(`testPassive`,e.noop,n),e.win.removeEventListener(`testPassive`,e.noop,n))}return t}(),e.charts=[],e.composed=[],e.dateFormats={},e.seriesTypes={},e.symbolSizes={},e.chartCount=0}(n||={});let S=n,{charts:C,doc:w,win:T}=S;function E(e,t,n,r){let i=t?`Highcharts error`:`Highcharts warning`;e===32&&(e=`${i}: Deprecated member`);let a=te(e),o=a?`${i} #${e}: www.highcharts.com/errors/${e}/`:e.toString();if(r!==void 0){let e=``;a&&(o+=`?`),de(r,function(t,n){e+=` - ${n}: ${t}`,a&&(o+=encodeURI(n)+`=`+encodeURI(t))}),o+=e}pe(S,`displayError`,{chart:n,code:e,message:o,params:r},function(){if(t)throw Error(o);T.console&&E.messages.indexOf(o)===-1&&console.warn(o)}),E.messages.push(o)}function D(e,t){return parseInt(e,t||10)}function O(e){return typeof e==`string`}function k(e){let t=Object.prototype.toString.call(e);return t===`[object Array]`||t===`[object Array Iterator]`}function A(e,t){return!!e&&typeof e==`object`&&(!t||!k(e))}function ee(e){return A(e)&&typeof e.nodeType==`number`}function j(e){let t=e?.constructor;return!!(A(e,!0)&&!ee(e)&&t?.name&&t.name!==`Object`)}function te(e){return typeof e==`number`&&!isNaN(e)&&e<1/0&&e>-1/0}function ne(e){return e!=null}function re(e,t,n){let r,i=O(t)&&!ne(n),a=(t,n)=>{ne(t)?e.setAttribute(n,t):i?(r=e.getAttribute(n))||n!==`class`||(r=e.getAttribute(n+`Name`)):e.removeAttribute(n)};return O(t)?a(n,t):de(t,a),r}function ie(e){return k(e)?e:[e]}function ae(e,t){let n;for(n in e||={},t)e[n]=t[n];return e}function oe(){let e=arguments,t=e.length;for(let n=0;n0x5af3107a4000?e:parseFloat(e.toPrecision(t||14))}(E||={}).messages=[],Math.easeInOutSine=function(e){return-.5*(Math.cos(Math.PI*e)-1)};let ue=Array.prototype.find?function(e,t){return e.find(t)}:function(e,t){let n,r=e.length;for(n=0;ne.order-t.order),r.forEach(t=>{!1===t.fn.call(e,n)&&n.preventDefault()})}r&&!n.defaultPrevented&&r.call(e,n)}let me=function(){let t=Math.random().toString(36).substring(2,9)+`-`,n=0;return function(){return`highcharts-`+(e?``:t)+ n++}}();T.jQuery&&(T.jQuery.fn.highcharts=function(){let e=[].slice.call(arguments);if(this[0])return e[0]?(new S[O(e[0])?e.shift():`Chart`](this[0],e[0],e[1]),this):C[re(this[0],`data-highcharts-chart`)]});let M={addEvent:function(e,t,n,r={}){let i=typeof e==`function`&&e.prototype||e;Object.hasOwnProperty.call(i,`hcEvents`)||(i.hcEvents={});let a=i.hcEvents;S.Point&&e instanceof S.Point&&e.series&&e.series.chart&&(e.series.chart.runTrackerClick=!0);let o=e.addEventListener;o&&o.call(e,t,n,!!S.supportsPassiveEvents&&{passive:r.passive===void 0?t.indexOf(`touch`)!==-1:r.passive,capture:!1}),a[t]||(a[t]=[]);let s={fn:n,order:typeof r.order==`number`?r.order:1/0};return a[t].push(s),a[t].sort((e,t)=>e.order-t.order),function(){fe(e,t,n)}},arrayMax:function(e){let t=e.length,n=e[0];for(;t--;)e[t]>n&&(n=e[t]);return n},arrayMin:function(e){let t=e.length,n=e[0];for(;t--;)e[t]t?e-1&&i[c]){n=ie(n),a[c]=[];for(let t=0;t({center:.5,right:1,middle:.5,bottom:1})[e]||0,getClosestDistance:function(e,t){let n,r,i,a=!t;return e.forEach(e=>{if(e.length>1)for(i=e.length-1;i>0;i--)(r=e[i]-e[i-1])<0&&!a?(t?.(),t=void 0):r&&(n===void 0||r=n-1&&(n=Math.floor(r)),Math.max(0,n-(e(t,`padding-left`,!0)||0)-(e(t,`padding-right`,!0)||0))}if(n===`height`)return Math.max(0,Math.min(t.offsetHeight,t.scrollHeight)-(e(t,`padding-top`,!0)||0)-(e(t,`padding-bottom`,!0)||0));let a=T.getComputedStyle(t,void 0);return a&&(i=a.getPropertyValue(n),oe(r,n!==`opacity`)&&(i=D(i))),i},insertItem:function(e,t){let n,r=e.options.index,i=t.length;for(n=e.options.isInternal?i:0;n=e))&&(i||!(s<=(t[a]+(t[a+1]||t[a]))/2)));a++);return le(o*n,-Math.round(Math.log(.001)/Math.LN10))},objectEach:de,offset:function(e){let t=w.documentElement,n=e.parentElement||e.parentNode?e.getBoundingClientRect():{top:0,left:0,width:0,height:0};return{top:n.top+(T.pageYOffset||t.scrollTop)-(t.clientTop||0),left:n.left+(T.pageXOffset||t.scrollLeft)-(t.clientLeft||0),width:n.width,height:n.height}},pad:function(e,t,n){return Array((t||2)+1-String(e).replace(`-`,``).length).join(n||`0`)+e},pick:oe,pInt:D,pushUnique:function(e,t){return 0>e.indexOf(t)&&!!e.push(t)},relativeLength:function(e,t,n){return/%$/.test(e)?t*parseFloat(e)/100+(n||0):parseFloat(e)},removeEvent:fe,replaceNested:function(e,...t){let n,r;do for(r of(n=e,t))e=e.replace(r[0],r[1]);while(e!==n);return e},splat:ie,stableSort:function(e,t){let n,r,i=e.length;for(r=0;r0?setTimeout(e,t,n):(e.call(0,n),-1)},timeUnits:{millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5,month:24192e5,year:314496e5},ucfirst:function(e){return O(e)?e.substring(0,1).toUpperCase()+e.substring(1):String(e)},uniqueKey:me,useSerialIds:function(t){return e=oe(t,e)},wrap:function(e,t,n){let r=e[t];e[t]=function(){let e=arguments,t=this;return n.apply(this,[function(){return r.apply(t,arguments.length?arguments:e)}].concat([].slice.call(arguments)))}}},{pageLang:he,win:ge}=S,{defined:_e,error:ve,extend:ye,isNumber:be,isObject:xe,isString:Se,merge:Ce,objectEach:we,pad:Te,splat:Ee,timeUnits:De,ucfirst:Oe}=M,ke=S.isSafari&&ge.Intl&&!ge.Intl.DateTimeFormat.prototype.formatRange,Ae=e=>e.main===void 0,je=class{constructor(e,t){this.options={timezone:`UTC`},this.variableTimezone=!1,this.Date=ge.Date,this.update(e),this.lang=t}update(e={}){this.dTLCache={},this.options=e=Ce(!0,this.options,e);let{timezoneOffset:t,useUTC:n,locale:r}=e;this.Date=e.Date||ge.Date||Date;let i=e.timezone;_e(n)&&(i=n?`UTC`:void 0),t&&t%60==0&&(i=`Etc/GMT`+(t>0?`+`:``)+t/60),this.variableTimezone=i!==`UTC`&&i?.indexOf(`Etc/GMT`)!==0,this.timezone=i,this.lang&&r&&(this.lang.locale=r),[`months`,`shortMonths`,`weekdays`,`shortWeekdays`].forEach(e=>{let t=/months/i.test(e),n=/short/.test(e),r={timeZone:`UTC`};r[t?`month`:`weekday`]=n?`short`:`long`,this[e]=(t?[0,1,2,3,4,5,6,7,8,9,10,11]:[3,4,5,6,7,8,9]).map(e=>this.dateFormat(r,(t?31:1)*24*36e5*e))})}toParts(e){let[t,n,r,i,a,o,s]=this.dateTimeFormat({weekday:`narrow`,day:`numeric`,month:`numeric`,year:`numeric`,hour:`numeric`,minute:`numeric`,second:`numeric`},e,`es`).split(/(?:, | |\/|:)/g);return[i,r-1,n,a,o,s,Math.floor(Number(e)||0)%1e3,`DLMXJVS`.indexOf(t)].map(Number)}dateTimeFormat(e,t,n=this.options.locale||he){let r=JSON.stringify(e)+n;Se(e)&&(e=this.str2dtf(e));let i=this.dTLCache[r];if(!i){e.timeZone??=this.timezone;try{i=new Intl.DateTimeFormat(n,e)}catch(t){/Invalid time zone/i.test(t.message)?(ve(34),e.timeZone=`UTC`,i=new Intl.DateTimeFormat(n,e)):ve(t.message,!1)}}return this.dTLCache[r]=i,i?.format(t)||``}str2dtf(e,t={}){let n={L:{fractionalSecondDigits:3},S:{second:`2-digit`},M:{minute:`numeric`},H:{hour:`2-digit`},k:{hour:`numeric`},E:{weekday:`narrow`},a:{weekday:`short`},A:{weekday:`long`},d:{day:`2-digit`},e:{day:`numeric`},b:{month:`short`},B:{month:`long`},m:{month:`2-digit`},o:{month:`numeric`},y:{year:`2-digit`},Y:{year:`numeric`}};return Object.keys(n).forEach(r=>{e.indexOf(r)!==-1&&ye(t,n[r])}),t}makeTime(e,t,n=1,r=0,i,a,o){let s=this.Date.UTC(e,t,n,r,i||0,a||0,o||0);if(this.timezone!==`UTC`){let e=this.getTimezoneOffset(s);if(s+=e,[2,3,8,9,10,11].indexOf(t)!==-1&&(r<5||r>20)){let t=this.getTimezoneOffset(s);e===t?e-36e5!==this.getTimezoneOffset(s-36e5)||ke||(s-=36e5):s+=t-e}}return s}parse(e){if(!Se(e))return e??void 0;let t=(e=e.replace(/\//g,`-`).replace(/(GMT|UTC)/,``)).indexOf(`Z`)>-1||/([+-][0-9]{2}):?[0-9]{2}$/.test(e),n=/^[0-9]{4}-[0-9]{2}(-[0-9]{2}|)$/.test(e);t||n||(e+=`Z`);let r=Date.parse(e);if(be(r))return r+(!t||n?this.getTimezoneOffset(r):0)}getTimezoneOffset(e){if(this.timezone!==`UTC`){let[t,n,r,i,a=0]=this.dateTimeFormat({timeZoneName:`shortOffset`},e,`en`).split(/(GMT|:)/).map(Number),o=-(60*(r+a/60)*6e4);if(be(o))return o}return 0}dateFormat(e,t,n){let r=this.lang;if(!_e(t)||isNaN(t))return r?.invalidDate||``;if(Se(e??=`%Y-%m-%d %H:%M:%S`)){let n,i=/%\[([a-zA-Z]+)\]/g;for(;n=i.exec(e);)e=e.replace(n[0],this.dateTimeFormat(n[1],t,r?.locale))}if(Se(e)&&e.indexOf(`%`)!==-1){let n=this,[i,a,o,s,c,l,u,d]=this.toParts(t),f=r?.weekdays||this.weekdays,p=r?.shortWeekdays||this.shortWeekdays,m=r?.months||this.months,h=r?.shortMonths||this.shortMonths;we(ye({a:p?p[d]:f[d].substr(0,3),A:f[d],d:Te(o),e:Te(o,2,` `),w:d,v:r?.weekFrom??``,b:h[a],B:m[a],m:Te(a+1),o:a+1,y:i.toString().substr(2,2),Y:i,H:Te(s),k:s,I:Te(s%12||12),l:s%12||12,M:Te(c),p:s<12?`AM`:`PM`,P:s<12?`am`:`pm`,S:Te(l),L:Te(u,3)},S.dateFormats),function(r,i){if(Se(e))for(;e.indexOf(`%`+i)!==-1;)e=e.replace(`%`+i,typeof r==`function`?r.call(n,t):r)})}else if(xe(e)){let n=(this.getTimezoneOffset(t)||0)/36e5,r=this.timezone||`Etc/GMT`+(n>=0?`+`:``)+n,{prefix:i=``,suffix:a=``}=e;e=i+this.dateTimeFormat(ye({timeZone:r},e),t)+a}return n?Oe(e):e}resolveDTLFormat(e){return xe(e,!0)?xe(e,!0)&&Ae(e)?{main:e}:e:{main:(e=Ee(e))[0],from:e[1],to:e[2]}}getDateFormat(e,t,n,r){let i=this.dateFormat(`%m-%d %H:%M:%S.%L`,t),a=`01-01 00:00:00.000`,o={millisecond:15,second:12,minute:9,hour:6,day:3},s=`millisecond`,c=s;for(s in De){if(e&&e===De.week&&+this.dateFormat(`%w`,t)===n&&i.substr(6)===a.substr(6)){s=`week`;break}if(e&&De[s]>e){s=c;break}if(o[s]&&i.substr(o[s])!==a.substr(o[s]))break;s!==`week`&&(c=s)}return this.resolveDTLFormat(r[s]).main}},{defined:Me,extend:Ne,timeUnits:N}=M,Pe=class extends je{getTimeTicks(e,t,n,r){let i=this,a=[],o={},{count:s=1,unitRange:c}=e,[l,u,d,f,p,m]=i.toParts(t),h=(t||0)%1e3,g;if(r??=1,Me(t)){if(h=c>=N.second?0:s*Math.floor(h/s),c>=N.second&&(m=c>=N.minute?0:s*Math.floor(m/s)),c>=N.minute&&(p=c>=N.hour?0:s*Math.floor(p/s)),c>=N.hour&&(f=c>=N.day?0:s*Math.floor(f/s)),c>=N.day&&(d=c>=N.month?1:Math.max(1,s*Math.floor(d/s))),c>=N.month&&(u=c>=N.year?0:s*Math.floor(u/s)),c>=N.year&&(l-=l%s),c===N.week){s&&(t=i.makeTime(l,u,d,f,p,m,h));let e=this.dateTimeFormat({timeZone:this.timezone,weekday:`narrow`},t,`es`),n=`DLMXJVS`.indexOf(e);d+=-n+r+(n4*N.month||i.getTimezoneOffset(t)!==i.getTimezoneOffset(n));let e=t,_=1;for(;e1?e=i.makeTime(l,u,d,f+_*s):e+=c*s,_++;a.push(e),c<=N.hour&&a.length<1e4&&a.forEach(e=>{e%18e5==0&&i.dateFormat(`%H%M%S%L`,e)===`000000000`&&(o[e]=`day`)})}return a.info=Ne(e,{higherRanks:o,totalRange:c*s}),a}},{isTouchDevice:Fe}=S,{fireEvent:Ie,merge:Le}=M,Re={colors:[`#2caffe`,`#544fc5`,`#00e272`,`#fe6a35`,`#6b8abc`,`#d568fb`,`#2ee0ca`,`#fa4b42`,`#feb56a`,`#91e8e1`],symbols:[`circle`,`diamond`,`square`,`triangle`,`triangle-down`],lang:{weekFrom:`week from`,chartTitle:`Chart title`,locale:void 0,loading:`Loading...`,months:void 0,seriesName:`Series {add index 1}`,shortMonths:void 0,weekdays:void 0,numericSymbols:[`k`,`M`,`G`,`T`,`P`,`E`],pieSliceName:`Slice`,resetZoom:`Reset zoom`,yAxisTitle:`Values`,resetZoomTitle:`Reset zoom level 1:1`},global:{buttonTheme:{fill:`#f7f7f7`,padding:8,r:2,stroke:`#cccccc`,"stroke-width":1,style:{color:`#333333`,cursor:`pointer`,fontSize:`0.8em`,fontWeight:`normal`},states:{hover:{fill:`#e6e6e6`},select:{fill:`#e6e9ff`,style:{color:`#000000`,fontWeight:`bold`}},disabled:{style:{color:`#cccccc`}}}}},time:{Date:void 0,timezone:`UTC`,timezoneOffset:0,useUTC:void 0},chart:{alignThresholds:!1,panning:{enabled:!1,type:`x`},styledMode:!1,borderRadius:0,colorCount:10,allowMutatingData:!0,ignoreHiddenSeries:!0,spacing:[10,10,15,10],resetZoomButton:{theme:{},position:{}},reflow:!0,type:`line`,zooming:{singleTouch:!1,resetButton:{theme:{zIndex:6},position:{align:`right`,x:-10,y:10}}},width:null,height:null,borderColor:`#334eff`,backgroundColor:`#ffffff`,plotBorderColor:`#cccccc`},title:{style:{color:`#333333`,fontWeight:`bold`},text:`Chart title`,margin:15,minScale:.67},subtitle:{style:{color:`#666666`,fontSize:`0.8em`},text:``},caption:{margin:15,style:{color:`#666666`,fontSize:`0.8em`},text:``,align:`left`,verticalAlign:`bottom`},plotOptions:{},legend:{enabled:!0,align:`center`,alignColumns:!0,className:`highcharts-no-tooltip`,events:{},layout:`horizontal`,itemMarginBottom:2,itemMarginTop:2,labelFormatter:function(){return this.name},borderColor:`#999999`,borderRadius:0,navigation:{style:{fontSize:`0.8em`},activeColor:`#0022ff`,inactiveColor:`#cccccc`},itemStyle:{color:`#333333`,cursor:`pointer`,fontSize:`0.8em`,textDecoration:`none`,textOverflow:`ellipsis`},itemHoverStyle:{color:`#000000`},itemHiddenStyle:{color:`#666666`,textDecoration:`line-through`},shadow:!1,itemCheckboxStyle:{position:`absolute`,width:`13px`,height:`13px`},squareSymbol:!0,symbolPadding:5,verticalAlign:`bottom`,x:0,y:0,title:{style:{color:`#333333`,fontSize:`0.8em`,fontWeight:`bold`}}},loading:{labelStyle:{fontWeight:`bold`,position:`relative`,top:`45%`},style:{position:`absolute`,backgroundColor:`#ffffff`,opacity:.5,textAlign:`center`}},tooltip:{enabled:!0,animation:{duration:300,easing:e=>Math.sqrt(1-(e-1)**2)},borderRadius:3,dateTimeLabelFormats:{millisecond:`%[AebHMSL]`,second:`%[AebHMS]`,minute:`%[AebHM]`,hour:`%[AebHM]`,day:`%[AebY]`,week:`%v %[AebY]`,month:`%[BY]`,year:`%Y`},footerFormat:``,headerShape:`callout`,hideDelay:500,padding:8,position:{x:0,y:3},shared:!1,snap:Fe?25:10,headerFormat:`{ucfirst point.key}
`,pointFormat:` {series.name}: {point.y}
`,backgroundColor:`#ffffff`,borderWidth:void 0,stickOnContact:!1,style:{color:`#333333`,cursor:`default`,fontSize:`0.8em`},useHTML:!1},credits:{enabled:!0,href:`https://www.highcharts.com?credits`,position:{align:`right`,x:-10,verticalAlign:`bottom`,y:-5},style:{cursor:`pointer`,color:`#999999`,fontSize:`0.6em`},text:`Highcharts.com`}},ze=new Pe(Re.time,Re.lang),Be={defaultOptions:Re,defaultTime:ze,getOptions:function(){return Re},setOptions:function(e){return Ie(S,`setOptions`,{options:e}),Le(!0,Re,e),e.time&&ze.update(Re.time),e.lang&&`locale`in e.lang&&ze.update({locale:e.lang.locale}),e.lang?.chartTitle&&(Re.title={...Re.title,text:e.lang.chartTitle}),Re}},{win:Ve}=S,{isNumber:He,isString:Ue,merge:We,pInt:P,defined:Ge}=M,Ke=(e,t,n)=>`color-mix(in srgb,${e},${t} ${100*n}%)`,qe=e=>Ue(e)&&!!e&&e!==`none`;class F{static parse(e){return e?new F(e):F.None}constructor(e){let t,n,r,i;this.rgba=[NaN,NaN,NaN,NaN],this.input=e;let a=S.Color;if(a&&a!==F)return new a(e);if(typeof e==`object`&&e.stops!==void 0)this.stops=e.stops.map(e=>new F(e[1]));else if(typeof e==`string`)for(this.input=e=F.names[e.toLowerCase()]||e,r=F.parsers.length;r--&&!n;)(t=(i=F.parsers[r]).regex.exec(e))&&(n=i.parse(t));n&&(this.rgba=n)}get(e){let t=this.input,n=this.rgba;if(this.output)return this.output;if(typeof t==`object`&&this.stops!==void 0){let n=We(t);return n.stops=[].slice.call(n.stops),this.stops.forEach((t,r)=>{n.stops[r]=[n.stops[r][0],t.get(e)]}),n}return n&&He(n[0])?e!==`rgb`&&(e||n[3]!==1)?e===`a`?`${n[3]}`:`rgba(`+n.join(`,`)+`)`:`rgb(`+n[0]+`,`+n[1]+`,`+n[2]+`)`:t}brighten(e){let t=this.rgba;if(this.stops)this.stops.forEach(function(t){t.brighten(e)});else if(He(e)&&e!==0)if(He(t[0]))for(let n=0;n<3;n++)t[n]+=P(255*e),t[n]<0&&(t[n]=0),t[n]>255&&(t[n]=255);else F.useColorMix&&qe(this.input)&&(this.output=Ke(this.input,e>0?`white`:`black`,Math.abs(e)));return this}setOpacity(e){return this.rgba[3]=e,this}tweenTo(e,t){let n=this.rgba,r=e.rgba;if(!He(n[0])||!He(r[0]))return F.useColorMix&&qe(this.input)&&qe(e.input)&&t<.99?Ke(this.input,e.input,t):e.input||`none`;let i=r[3]!==1||n[3]!==1,a=(e,r)=>e+(n[r]-e)*(1-t),o=r.slice(0,3).map(a).map(Math.round);return i&&o.push(a(r[3],3)),(i?`rgba(`:`rgb(`)+o.join(`,`)+`)`}}F.names={white:`#ffffff`,black:`#000000`},F.parsers=[{regex:/rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d?(?:\.\d+)?)\s*\)/,parse:function(e){return[P(e[1]),P(e[2]),P(e[3]),parseFloat(e[4],10)]}},{regex:/rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)/,parse:function(e){return[P(e[1]),P(e[2]),P(e[3]),1]}},{regex:/^#([a-f0-9])([a-f0-9])([a-f0-9])([a-f0-9])?$/i,parse:function(e){return[P(e[1]+e[1],16),P(e[2]+e[2],16),P(e[3]+e[3],16),Ge(e[4])?P(e[4]+e[4],16)/255:1]}},{regex:/^#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})?$/i,parse:function(e){return[P(e[1],16),P(e[2],16),P(e[3],16),Ge(e[4])?P(e[4],16)/255:1]}}],F.useColorMix=Ve.CSS?.supports(`color`,`color-mix(in srgb,red,blue 9%)`),F.None=new F(``);let{parse:Je}=F,{win:Ye}=S,{isNumber:Xe,objectEach:Ze}=M;class I{constructor(e,t,n){this.pos=NaN,this.options=t,this.elem=e,this.prop=n}dSetter(){let e=this.paths,t=e?.[0],n=e?.[1],r=this.now||0,i=[];if(r!==1&&t&&n)if(t.length===n.length&&r<1)for(let e=0;e=s+this.startTime?(this.now=this.end,this.pos=1,this.update(),c[this.prop]=!0,n=!0,Ze(c,function(e){!0!==e&&(n=!1)}),n&&o&&o.call(a),t=!1):(this.pos=i.easing((r-this.startTime)/s),this.now=this.start+(this.end-this.start)*this.pos,this.update(),t=!0),t}initPath(e,t,n){let r=e.startX,i=e.endX,a=n.slice(),o=e.isArea,s=o?2:1,c=t&&n.length>t.length&&n.hasStackedCliffs,l,u,d,f,p=t?.slice();if(!p||c)return[a,a];function m(e,t){for(;e.length{let n=ot(e.options.animation);a=nt(t)&&Qe(t.defer)?r.defer:Math.max(a,n.duration+n.defer),o=Math.min(r.duration,n.duration)}),e.renderer.forExport&&(a=0),{defer:Math.max(0,a-o),duration:Math.min(a,o)}},setAnimation:function(e,t){t.renderer.globalAnimation=at(e,t.options.chart.animation,!0)},stop:st},{SVG_NS:ct,win:lt}=S,{attr:ut,createElement:dt,css:ft,error:pt,isFunction:mt,isString:ht,objectEach:gt,splat:_t}=M,{trustedTypes:vt}=lt,yt=vt&&mt(vt.createPolicy)&&vt.createPolicy(`highcharts`,{createHTML:e=>e}),bt=yt?yt.createHTML(``):``;class R{static filterUserAttributes(e){return gt(e,(t,n)=>{let r=!0;R.allowedAttributes.indexOf(n)===-1&&(r=!1),[`background`,`dynsrc`,`href`,`lowsrc`,`src`].indexOf(n)!==-1&&(r=ht(t)&&R.allowedReferences.some(e=>t.indexOf(e)===0)),r||(pt(33,!1,void 0,{"Invalid attribute in config":`${n}`}),delete e[n]),ht(t)&&e[n]&&(e[n]=t.replace(/{let n=t.split(`:`).map(e=>e.trim()),r=n.shift();return r&&n.length&&(e[r.replace(/-([a-z])/g,e=>e[1].toUpperCase())]=n.join(`:`)),e},{})}static setElementHTML(e,t){e.innerHTML=R.emptyHTML,t&&new R(t).addToDOM(e)}constructor(e){this.nodes=typeof e==`string`?this.parseMarkup(e):e}addToDOM(e){return function e(t,n){let r;return _t(t).forEach(function(t){let i,a=t.tagName,o=t.textContent?S.doc.createTextNode(t.textContent):void 0,s=R.bypassHTMLFiltering;if(a)if(a===`#text`)i=o;else if(R.allowedTags.indexOf(a)!==-1||s){let r=a===`svg`?ct:n.namespaceURI||ct,c=S.doc.createElementNS(r,a),l=t.attributes||{};gt(t,function(e,t){t!==`tagName`&&t!==`attributes`&&t!==`children`&&t!==`style`&&t!==`textContent`&&(l[t]=e)}),ut(c,s?l:R.filterUserAttributes(l)),t.style&&ft(c,t.style),o&&c.appendChild(o),e(t.children||[],c),i=c}else pt(33,!1,void 0,{"Invalid tagName in config":a});i&&n.appendChild(i),r=i}),r}(this.nodes,e)}parseMarkup(e){let t,n=[];e=e.trim().replace(/ style=(["'])/g,` data-style=$1`);try{t=new DOMParser().parseFromString(yt?yt.createHTML(e):e,`text/html`)}catch{}if(!t){let n=dt(`div`);n.innerHTML=e,t={body:n}}let r=(e,t)=>{let n=e.nodeName.toLowerCase(),i={tagName:n};n===`#text`&&(i.textContent=e.textContent||``);let a=e.attributes;if(a){let e={};[].forEach.call(a,t=>{t.name===`data-style`?i.style=R.parseStyle(t.value):e[t.name]=t.value}),i.attributes=e}if(e.childNodes.length){let t=[];[].forEach.call(e.childNodes,e=>{r(e,t)}),t.length&&(i.children=t)}t.push(i)};return[].forEach.call(t.body.childNodes,e=>r(e,n)),n}}R.allowedAttributes=`alt.aria-controls.aria-describedby.aria-expanded.aria-haspopup.aria-hidden.aria-label.aria-labelledby.aria-live.aria-pressed.aria-readonly.aria-roledescription.aria-selected.class.clip-path.color.colspan.cx.cy.d.disabled.dx.dy.fill.filterUnits.flood-color.flood-opacity.height.href.id.in.in2.markerHeight.markerWidth.offset.opacity.operator.orient.padding.paddingLeft.paddingRight.patternUnits.r.radius.refX.refY.result.role.rowspan.scope.slope.src.startOffset.stdDeviation.stroke-linecap.stroke-width.stroke.style.summary.tabindex.tableValues.target.text-align.text-anchor.textAnchor.textLength.title.type.valign.width.x.x1.x2.xlink:href.y.y1.y2.zIndex`.split(`.`),R.allowedReferences=[`https://`,`http://`,`mailto:`,`/`,`../`,`./`,`#`],R.allowedTags=`#text.a.abbr.b.br.button.caption.circle.clipPath.code.dd.defs.div.dl.dt.em.feComponentTransfer.feComposite.feDropShadow.feFlood.feFuncA.feFuncB.feFuncG.feFuncR.feGaussianBlur.feMerge.feMergeNode.feMorphology.feOffset.filter.h1.h2.h3.h4.h5.h6.hr.i.img.li.linearGradient.marker.ol.p.path.pattern.pre.rect.small.span.stop.strong.style.sub.sup.svg.table.tbody.td.text.textPath.th.thead.title.tr.tspan.u.ul`.split(`.`),R.emptyHTML=bt,R.bypassHTMLFiltering=!1;let{defaultOptions:xt,defaultTime:St}=Be,{pageLang:Ct}=S,{extend:wt,getNestedProperty:Tt,isArray:Et,isNumber:Dt,isObject:Ot,isString:kt,pick:At,ucfirst:jt}=M,Mt={add:(e,t)=>e+t,divide:(e,t)=>t===0?``:e/t,eq:(e,t)=>e==t,each:function(e){let t=arguments[arguments.length-1];return!!Et(e)&&e.map((n,r)=>Ft(t.body,wt(Ot(n)?n:{"@this":n},{"@index":r,"@first":r===0,"@last":r===e.length-1}))).join(``)},ge:(e,t)=>e>=t,gt:(e,t)=>e>t,if:e=>!!e,le:(e,t)=>e<=t,lt:(e,t)=>ee*t,ne:(e,t)=>e!=t,subtract:(e,t)=>e-t,ucfirst:jt,unless:e=>!e},Nt={},Pt=e=>/^["'].+["']$/.test(e);function Ft(e=``,t,n){let r=/\{([a-zA-Z\u00C0-\u017F\d:\.,;\-\/<>\[\]%_@+"'’= #\(\)]+)\}/g,i=/\(([a-zA-Z\u00C0-\u017F\d:\.,;\-\/<>\[\]%_@+"'= ]+)\)/g,a=[],o=/f$/,s=/\.(\d)/,c=n?.options?.lang||xt.lang,l=n?.time||St,u=n?.numberFormatter||It.bind(n),d=(e=``)=>{let n;return e===`true`||e!==`false`&&((n=Number(e)).toString()===e?n:Pt(e)?e.slice(1,-1):Tt(e,t))},f,p,m=0,h;for(;(f=r.exec(e))!==null;){let n=f,r=i.exec(f[1]);r&&(f=r,h=!0),p?.isBlock||(p={ctx:t,expression:f[1],find:f[0],isBlock:f[1].charAt(0)===`#`,start:f.index,startInner:f.index+f[0].length,length:f[0].length});let o=(p.isBlock?n:f)[1].split(` `)[0].replace(`#`,``);Mt[o]&&(p.isBlock&&o===p.fn&&m++,p.fn||=o);let s=f[1]===`else`;if(p.isBlock&&p.fn&&(f[1]===`/${p.fn}`||s))if(m)!s&&m--;else{let t=p.startInner,n=e.substr(t,f.index-t);p.body===void 0?(p.body=n,p.startInner=f.index+f[0].length):p.elseBody=n,p.find+=n+f[0],s||(a.push(p),p=void 0)}else p.isBlock||a.push(p);if(r&&!p?.isBlock)break}return a.forEach(r=>{let a,f,{body:p,elseBody:m,expression:h,fn:g}=r;if(g){let e=[r],i=[],o=h.length,s=0,c;for(f=0;f<=o;f++){let e=h.charAt(f);c||e!==`"`&&e!==`'`?c===e&&(c=``):c=e,c||e!==` `&&f!==o||(i.push(h.substr(s,f-s)),s=f+1)}for(f=Mt[g].length;f--;)e.unshift(d(i[f+1]));a=Mt[g].apply(t,e),r.isBlock&&typeof a==`boolean`&&(a=Ft(a?p:m,t,n))}else{let e=Pt(h)?[h]:h.split(`:`),t=(a=d(e.shift()||``))%1!=0;if(typeof a==`number`&&(e.length||t)){let n=e.join(`:`);if(o.test(n)||t){let e=parseInt((n.match(s)||[``,`-1`])[1],10);a!==null&&(a=u(a,e,c.decimalPoint,n.indexOf(`,`)>-1?c.thousandsSep:``))}else a=l.dateFormat(n,a)}i.lastIndex=0,i.test(r.find)&&kt(a)&&(a=`"${a}"`)}e=e.replace(r.find,At(a,``))}),h?Ft(e,t,n):e}function It(e,t,n,r){t*=1;let i,a,[o,s]=(e=+e||0).toString().split(`e`).map(Number),c=this?.options?.lang||xt.lang,l=(e.toString().split(`.`)[1]||``).split(`e`)[0].length,u=t,d={};n??=c.decimalPoint,r??=c.thousandsSep,t===-1?t=Math.min(l,20):Dt(t)?t&&s<0&&((a=t+s)>=0?(o=+o.toExponential(a).split(`e`)[0],t=a):(o=Math.floor(o),e=t<20?+(o*10**s).toFixed(t):0,s=0)):t=2,s&&(t??=2,e=o),Dt(t)&&t>=0&&(d.minimumFractionDigits=t,d.maximumFractionDigits=t),r===``&&(d.useGrouping=!1);let f=r||n,p=f?`en`:this?.locale||c.locale||Ct,m=JSON.stringify(d)+p;return i=(Nt[m]??(Nt[m]=new Intl.NumberFormat(p,d))).format(e),f&&(i=i.replace(/([,\.])/g,`_$1`).replace(/_\,/g,r??`,`).replace(`_.`,n??`.`)),(t||+i!=0)&&(!(s<0)||u)||(i=`0`),s&&+i!=0&&(i+=`e`+(s<0?``:`+`)+s),i}let Lt={dateFormat:function(e,t,n){return St.dateFormat(e,t,n)},format:Ft,helpers:Mt,numberFormat:It};(function(e){let t;e.rendererTypes={},e.getRendererType=function(n=t){return e.rendererTypes[n]||e.rendererTypes[t]},e.registerRendererType=function(n,r,i){e.rendererTypes[n]=r,(!t||i)&&(t=n,S.Renderer=r)}})(r||={});let Rt=r,{clamp:zt,pick:Bt,pushUnique:Vt,stableSort:Ht}=M;(i||={}).distribute=function e(t,n,r){let i=t,a=i.reducedLen||n,o=(e,t)=>e.target-t.target,s=[],c=t.length,l=[],u=s.push,d,f,p,m=!0,h,g,_=0,v;for(d=c;d--;)_+=t[d].size;if(_>a){for(Ht(t,(e,t)=>(t.rank||0)-(e.rank||0)),p=(v=t[0].rank===t[t.length-1].rank)?c/2:-1,f=v?p:c-1;p&&_>a;)h=t[d=Math.floor(f)],Vt(l,d)&&(_-=h.size),f+=p,v&&f>=t.length&&(p/=2,f=p);l.sort((e,t)=>t-e).forEach(e=>u.apply(s,t.splice(e,1)))}for(Ht(t,o),t=t.map(e=>({size:e.size,targets:[e.target],align:Bt(e.align,.5)}));m;){for(d=t.length;d--;)h=t[d],g=(Math.min.apply(0,h.targets)+Math.max.apply(0,h.targets))/2,h.pos=zt(g-h.size*h.align,0,n-h.size);for(d=t.length,m=!1;d--;)d>0&&t[d-1].pos+t[d-1].size>t[d].pos&&(t[d-1].size+=t[d].size,t[d-1].targets=t[d-1].targets.concat(t[d].targets),t[d-1].align=.5,t[d-1].pos+t[d-1].size>n&&(t[d-1].pos=n-t[d-1].size),t.splice(d,1),m=!0)}return u.apply(i,s),d=0,t.some(t=>{let a=0;return(t.targets||[]).some(()=>(i[d].pos=t.pos+a,r!==void 0&&Math.abs(i[d].pos-i[d].target)>r?(i.slice(0,d+1).forEach(e=>delete e.pos),i.reducedLen=(i.reducedLen||n)-.1*n,i.reducedLen>.1*n&&e(i,n,r),!0):(a+=i[d].size,d++,!1)))}),Ht(i,o),i};let Ut=i,{animate:Wt,animObject:Gt,stop:Kt}=L,{deg2rad:qt,doc:Jt,svg:Yt,SVG_NS:Xt,win:Zt,isFirefox:Qt}=S,{addEvent:$t,attr:en,createElement:tn,crisp:nn,css:rn,defined:an,erase:on,extend:sn,fireEvent:cn,getAlignFactor:ln,isArray:un,isFunction:dn,isNumber:fn,isObject:pn,isString:mn,merge:hn,objectEach:gn,pick:_n,pInt:vn,pushUnique:yn,replaceNested:bn,syncTimeout:xn,uniqueKey:Sn}=M;class z{_defaultGetter(e){let t=_n(this[e+`Value`],this[e],this.element?this.element.getAttribute(e):null,0);return/^-?[\d\.]+$/.test(t)&&(t=parseFloat(t)),t}_defaultSetter(e,t,n){n.setAttribute(t,e)}add(e){let t,n=this.renderer,r=this.element;return e&&(this.parentGroup=e),this.textStr!==void 0&&this.element.nodeName===`text`&&n.buildText(this),this.added=!0,(!e||e.handleZ||this.zIndex)&&(t=this.zIndexSetter()),t||(e?e.element:n.box).appendChild(r),this.onAdd&&this.onAdd(),this}addClass(e,t){let n=t?``:this.attr(`class`)||``;return(e=(e||``).split(/ /g).reduce(function(e,t){return n.indexOf(t)===-1&&e.push(t),e},n?[n]:[]).join(` `))!==n&&this.attr(`class`,e),this}afterSetters(){this.doTransform&&=(this.updateTransform(),!1)}align(e,t,n,r=!0){let i=this.renderer,a=i.alignedObjects,o=!!e;e?(this.alignOptions=e,this.alignByTranslate=t,this.alignTo=n):(e=this.alignOptions||{},t=this.alignByTranslate,n=this.alignTo);let s=!n||mn(n)?n||`renderer`:void 0;s&&(o&&yn(a,this),n=void 0);let c=_n(n,i[s],i),l=(c.x||0)+(e.x||0)+((c.width||0)-(e.width||0))*ln(e.align),u=(c.y||0)+(e.y||0)+((c.height||0)-(e.height||0))*ln(e.verticalAlign),d={"text-align":e?.align};return d[t?`translateX`:`x`]=Math.round(l),d[t?`translateY`:`y`]=Math.round(u),r&&(this[this.placed?`animate`:`attr`](d),this.placed=!0),this.alignAttr=d,this}alignSetter(e){let t={left:`start`,center:`middle`,right:`end`};t[e]&&(this.alignValue=e,this.element.setAttribute(`text-anchor`,t[e]))}animate(e,t,n){let r=Gt(_n(t,this.renderer.globalAnimation,!0)),i=r.defer;return Jt.hidden&&(r.duration=0),r.duration===0?(this.attr(e,void 0,n||r.complete),gn(e,function(e,t){r.step&&r.step.call(this,e,{prop:t,pos:1,elem:this})},this)):(n&&(r.complete=n),xn(()=>{this.element&&Wt(this,e,r)},i)),this}applyTextOutline(e){let t=this.element;e.indexOf(`contrast`)!==-1&&(e=e.replace(/contrast/g,this.renderer.getContrast(t.style.fill)));let n=e.indexOf(` `),r=e.substring(n+1),i=e.substring(0,n);if(i&&i!==`none`&&S.svg){this.fakeTS=!0,i=i.replace(/(^[\d\.]+)(.*?)$/g,function(e,t,n){return 2*Number(t)+n}),this.removeTextOutline();let e=Jt.createElementNS(Xt,`tspan`);en(e,{class:`highcharts-text-outline`,fill:r,stroke:r,"stroke-width":i,"stroke-linejoin":`round`});let n=t.querySelector(`textPath`)||t;[].forEach.call(n.childNodes,t=>{let n=t.cloneNode(!0);n.removeAttribute&&[`fill`,`stroke`,`stroke-width`,`stroke`].forEach(e=>n.removeAttribute(e)),e.appendChild(n)});let a=0;[].forEach.call(n.querySelectorAll(`text tspan`),e=>{a+=Number(e.getAttribute(`dy`))});let o=Jt.createElementNS(Xt,`tspan`);o.textContent=`​`,en(o,{x:Number(t.getAttribute(`x`)),dy:-a}),e.appendChild(o),n.insertBefore(e,n.firstChild)}}attr(e,t,n,r){let{element:i}=this,a=z.symbolCustomAttribs,o,s,c=this,l;return typeof e==`string`&&t!==void 0&&(o=e,(e={})[o]=t),typeof e==`string`?c=(this[e+`Getter`]||this._defaultGetter).call(this,e,i):(gn(e,function(t,n){l=!1,r||Kt(this,n),this.symbolName&&a.indexOf(n)!==-1&&(s||=(this.symbolAttr(e),!0),l=!0),this.rotation&&(n===`x`||n===`y`)&&(this.doTransform=!0),l||(this[n+`Setter`]||this._defaultSetter).call(this,t,n,i)},this),this.afterSetters()),n&&n.call(this),c}clip(e){if(e&&!e.clipPath){let t=Sn()+`-`,n=this.renderer.createElement(`clipPath`).attr({id:t}).add(this.renderer.defs);sn(e,{clipPath:n,id:t,count:0}),e.add(n)}return this.attr(`clip-path`,e?`url(${this.renderer.url}#${e.id})`:`none`)}crisp(e,t){t=Math.round(t||e.strokeWidth||0);let n=e.x||this.x||0,r=e.y||this.y||0,i=(e.width||this.width||0)+n,a=(e.height||this.height||0)+r,o=nn(n,t),s=nn(r,t);return sn(e,{x:o,y:s,width:nn(i,t)-o,height:nn(a,t)-s}),an(e.strokeWidth)&&(e.strokeWidth=t),e}complexColor(e,t,n){let r=this.renderer,i,a,o,s,c,l,u,d,f,p,m=[],h;cn(this.renderer,`complexColor`,{args:arguments},function(){if(e.radialGradient?a=`radialGradient`:e.linearGradient&&(a=`linearGradient`),a){if(o=e[a],c=r.gradients,l=e.stops,f=n.radialReference,un(o)&&(e[a]=o={x1:o[0],y1:o[1],x2:o[2],y2:o[3],gradientUnits:`userSpaceOnUse`}),a===`radialGradient`&&f&&!an(o.gradientUnits)&&(s=o,o=hn(o,r.getRadialAttr(f,s),{gradientUnits:`userSpaceOnUse`})),gn(o,function(e,t){t!==`id`&&m.push(t,e)}),gn(l,function(e){m.push(e)}),c[m=m.join(`,`)])p=c[m].attr(`id`);else{o.id=p=Sn();let e=c[m]=r.createElement(a).attr(o).add(r.defs);e.radAttr=s,e.stops=[],l.forEach(function(t){t[1].indexOf(`rgba`)===0?(u=(i=F.parse(t[1])).get(`rgb`),d=i.get(`a`)):(u=t[1],d=1);let n=r.createElement(`stop`).attr({offset:t[0],"stop-color":u,"stop-opacity":d}).add(e);e.stops.push(n)})}h=`url(`+r.url+`#`+p+`)`,n.setAttribute(t,h),n.gradient=m,e.toString=function(){return h}}})}css(e){let t=this.styles,n={},r=this.element,i,a=!t;if(t&&gn(e,function(e,r){t&&t[r]!==e&&(n[r]=e,a=!0)}),a){t&&(e=sn(t,n)),e.width===null||e.width===`auto`?delete this.textWidth:r.nodeName.toLowerCase()===`text`&&e.width&&(i=this.textWidth=vn(e.width)),sn(this.styles,e),i&&!Yt&&this.renderer.forExport&&delete e.width;let a=Qt&&e.fontSize||null;a&&(fn(a)||/^\d+$/.test(a))&&(e.fontSize+=`px`);let o=hn(e);r.namespaceURI===this.SVG_NS&&([`textOutline`,`textOverflow`,`whiteSpace`,`width`].forEach(e=>o&&delete o[e]),o.color&&(o.fill=o.color,delete o.color)),rn(r,o)}return this.added&&(this.element.nodeName===`text`&&this.renderer.buildText(this),e.textOutline&&this.applyTextOutline(e.textOutline)),this}dashstyleSetter(e){let t,n=this[`stroke-width`];if(n===`inherit`&&(n=1),e){let r=(e=e.toLowerCase()).replace(`shortdashdotdot`,`3,1,1,1,1,1,`).replace(`shortdashdot`,`3,1,1,1`).replace(`shortdot`,`1,1,`).replace(`shortdash`,`3,1,`).replace(`longdash`,`8,3,`).replace(/dot/g,`1,3,`).replace(`dash`,`4,3,`).replace(/,$/,``).split(`,`);for(t=r.length;t--;)r[t]=``+vn(r[t])*_n(n,NaN);e=r.join(`,`).replace(/NaN/g,`none`),this.element.setAttribute(`stroke-dasharray`,e)}}destroy(){let e=this,t=e.element||{},n=e.renderer,r=t.ownerSVGElement,i=t.nodeName===`SPAN`&&e.parentGroup||void 0,a,o;if(t.onclick=t.onmouseout=t.onmouseover=t.onmousemove=t.point=null,Kt(e),e.clipPath&&r){let t=e.clipPath;[].forEach.call(r.querySelectorAll(`[clip-path],[CLIP-PATH]`),function(e){e.getAttribute(`clip-path`).indexOf(t.element.id)>-1&&e.removeAttribute(`clip-path`)}),e.clipPath=t.destroy()}if(e.stops){for(o=0;o{(e[n]?.parentGroup===e||[`connector`,`foreignObject`].indexOf(n)!==-1)&&e[n]?.destroy?.(),delete e[n]})}dSetter(e,t,n){un(e)&&(typeof e[0]==`string`&&(e=this.renderer.pathToSegments(e)),this.pathArray=e,e=e.reduce((e,t,n)=>t?.join?(n?e+` `:``)+t.join(` `):(t||``).toString(),``)),/(NaN| {2}|^$)/.test(e)&&(e=`M 0 0`),this[t]!==e&&(n.setAttribute(t,e),this[t]=e)}fillSetter(e,t,n){typeof e==`string`?n.setAttribute(t,e):e&&this.complexColor(e,t,n)}hrefSetter(e,t,n){n.setAttributeNS(`http://www.w3.org/1999/xlink`,t,e)}getBBox(e,t){let n,r,i,a,{alignValue:o,element:s,renderer:c,styles:l,textStr:u}=this,{cache:d,cacheKeys:f}=c,p=s.namespaceURI===this.SVG_NS,m=_n(t,this.rotation,0),h=c.styledMode?s&&z.prototype.getStyle.call(s,`font-size`):l.fontSize;if(an(u)&&((a=u.toString()).indexOf(`<`)===-1&&(a=a.replace(/\d/g,`0`)),a+=[``,c.rootFontSize,h,m,this.textWidth,o,l.lineClamp,l.textOverflow,l.fontWeight].join(`,`)),a&&!e&&(n=d[a]),!n||n.polygon){if(p||c.forExport){try{i=this.fakeTS&&function(e){let t=s.querySelector(`.highcharts-text-outline`);t&&rn(t,{display:e})},dn(i)&&i(`none`),n=s.getBBox?sn({},s.getBBox()):{width:s.offsetWidth,height:s.offsetHeight,x:0,y:0},dn(i)&&i(``)}catch{}(!n||n.width<0)&&(n={x:0,y:0,width:0,height:0})}else n=this.htmlGetBBox();r=n.height,p&&(n.height=r={"11px,17":14,"13px,20":16}[`${h||``},${Math.round(r)}`]||r),m&&(n=this.getRotatedBox(n,m));let e={bBox:n};cn(this,`afterGetBBox`,e),n=e.bBox}if(a&&(u===``||n.height>0)){for(;f.length>250;)delete d[f.shift()];d[a]||f.push(a),d[a]=n}return n}getRotatedBox(e,t){let{x:n,y:r,width:i,height:a}=e,{alignValue:o,translateY:s,rotationOriginX:c=0,rotationOriginY:l=0}=this,u=ln(o),d=Number(this.element.getAttribute(`y`)||0)-(s?0:r),f=t*qt,p=(t-90)*qt,m=Math.cos(f),h=Math.sin(f),g=i*m,_=i*h,v=Math.cos(p),y=Math.sin(p),[[b,x],[S,C]]=[c,l].map(e=>[e-e*m,e*h]),w=n+u*(i-g)+b+C+d*v,T=w+g,E=T-a*v,D=E-g,O=r+d-u*_-x+S+d*y,k=O+_,A=k-a*y,ee=A-_,j=Math.min(w,T,E,D),te=Math.min(O,k,A,ee);return{x:j,y:te,width:Math.max(w,T,E,D)-j,height:Math.max(O,k,A,ee)-te,polygon:[[w,O],[T,k],[E,A],[D,ee]]}}getStyle(e){return Zt.getComputedStyle(this.element||this,``).getPropertyValue(e)}hasClass(e){return(``+this.attr(`class`)).split(` `).indexOf(e)!==-1}hide(){return this.attr({visibility:`hidden`})}htmlGetBBox(){return{height:0,width:0,x:0,y:0}}constructor(e,t){this.onEvents={},this.opacity=1,this.SVG_NS=Xt,this.element=t===`span`||t===`body`?tn(t):Jt.createElementNS(this.SVG_NS,t),this.renderer=e,this.styles={},cn(this,`afterInit`)}on(e,t){let{onEvents:n}=this;return n[e]&&n[e](),n[e]=$t(this.element,e,t),this}opacitySetter(e,t,n){let r=Number(Number(e).toFixed(3));this.opacity=r,n.setAttribute(t,r)}reAlign(){this.alignOptions?.width&&this.alignOptions.align!==`left`&&(this.alignOptions.width=this.getBBox().width,this.placed=!1,this.align())}removeClass(e){return this.attr(`class`,(``+this.attr(`class`)).replace(mn(e)?RegExp(`(^| )${e}( |$)`):e,` `).replace(/ +/g,` `).trim())}removeTextOutline(){let e=this.element.querySelector(`tspan.highcharts-text-outline`);e&&this.safeRemoveChild(e)}safeRemoveChild(e){let t=e.parentNode;t&&t.removeChild(e)}setRadialReference(e){let t=this.element.gradient&&this.renderer.gradients[this.element.gradient]||void 0;return this.element.radialReference=e,t?.radAttr&&t.animate(this.renderer.getRadialAttr(e,t.radAttr)),this}shadow(e){let{renderer:t}=this,n=hn(this.parentGroup?.rotation===90?{offsetX:-1,offsetY:-1}:{},pn(e)?e:{}),r=t.shadowDefinition(n);return this.attr({filter:e?`url(${t.url}#${r})`:`none`})}show(e=!0){return this.attr({visibility:e?`inherit`:`visible`})}"stroke-widthSetter"(e,t,n){this[t]=e,n.setAttribute(t,e)}strokeWidth(){if(!this.renderer.styledMode)return this[`stroke-width`]||0;let e=this.getStyle(`stroke-width`),t=0,n;return/px$/.test(e)?t=vn(e):e!==``&&(en(n=Jt.createElementNS(Xt,`rect`),{width:e,"stroke-width":0}),this.element.parentNode.appendChild(n),t=n.getBBox().width,n.parentNode.removeChild(n)),t}symbolAttr(e){let t=this;z.symbolCustomAttribs.forEach(function(n){t[n]=_n(e[n],t[n])}),t.attr({d:t.renderer.symbols[t.symbolName](t.x,t.y,t.width,t.height,t)})}textSetter(e){e!==this.textStr&&(delete this.textPxLength,this.textStr=e,this.added&&this.renderer.buildText(this),this.reAlign())}titleSetter(e){let t=this.element,n=t.getElementsByTagName(`title`)[0]||Jt.createElementNS(this.SVG_NS,`title`);t.insertBefore?t.insertBefore(n,t.firstChild):t.appendChild(n),n.textContent=bn(_n(e,``),[/<[^>]*>/g,``]).replace(/</g,`<`).replace(/>/g,`>`)}toFront(){let e=this.element;return e.parentNode.appendChild(e),this}translate(e,t){return this.attr({translateX:e,translateY:t})}updateTransform(e=`transform`){let{element:t,foreignObject:n,matrix:r,padding:i,rotation:a=0,rotationOriginX:o,rotationOriginY:s,scaleX:c,scaleY:l,text:u,translateX:d=0,translateY:f=0}=this,p=[`translate(`+d+`,`+f+`)`];an(r)&&p.push(`matrix(`+r.join(`,`)+`)`),a&&(p.push(`rotate(`+a+` `+(o??t.getAttribute(`x`)??this.x??0)+` `+(s??t.getAttribute(`y`)??this.y??0)+`)`),u?.element.tagName!==`SPAN`||u?.foreignObject||u.attr({rotation:a,rotationOriginX:(o||0)-i,rotationOriginY:(s||0)-i})),(an(c)||an(l))&&p.push(`scale(`+_n(c,1)+` `+_n(l,1)+`)`),p.length&&!(u||this).textPath&&(n?.element||t).setAttribute(e,p.join(` `))}visibilitySetter(e,t,n){e===`inherit`?n.removeAttribute(t):this[t]!==e&&n.setAttribute(t,e),this[t]=e}xGetter(e){return this.element.nodeName===`circle`&&(e===`x`?e=`cx`:e===`y`&&(e=`cy`)),this._defaultGetter(e)}zIndexSetter(e,t){let n=this.renderer,r=this.parentGroup,i=(r||n).element||n.box,a=this.element,o=i===n.box,s,c,l,u=!1,d,f=this.added,p;if(an(e)?(a.setAttribute(`data-z-index`,e),e*=1,this[t]===e&&(f=!1)):an(this[t])&&a.removeAttribute(`data-z-index`),this[t]=e,f){for((e=this.zIndex)&&r&&(r.handleZ=!0),p=(s=i.childNodes).length-1;p>=0&&!u;p--)d=!an(l=(c=s[p]).getAttribute(`data-z-index`)),c!==a&&(e<0&&d&&!o&&!p?(i.insertBefore(a,s[p]),u=!0):(vn(l)<=e||d&&(!an(e)||e>=0))&&(i.insertBefore(a,s[p+1]),u=!0));u||=(i.insertBefore(a,s[3*!!o]),!0)}return u}}z.symbolCustomAttribs=[`anchorX`,`anchorY`,`clockwise`,`end`,`height`,`innerR`,`r`,`start`,`width`,`x`,`y`],z.prototype.strokeSetter=z.prototype.fillSetter,z.prototype.yGetter=z.prototype.xGetter,z.prototype.matrixSetter=z.prototype.rotationOriginXSetter=z.prototype.rotationOriginYSetter=z.prototype.rotationSetter=z.prototype.scaleXSetter=z.prototype.scaleYSetter=z.prototype.translateXSetter=z.prototype.translateYSetter=z.prototype.verticalAlignSetter=function(e,t){this[t]=e,this.doTransform=!0};let Cn=z,{defined:wn,extend:Tn,getAlignFactor:En,isNumber:Dn,merge:On,pick:kn,removeEvent:An}=M;class jn extends Cn{constructor(e,t,n,r,i,a,o,s,c,l){let u;super(e,`g`),this.paddingLeftSetter=this.paddingSetter,this.paddingRightSetter=this.paddingSetter,this.doUpdate=!1,this.textStr=t,this.x=n,this.y=r,this.anchorX=a,this.anchorY=o,this.baseline=c,this.className=l,this.addClass(l===`button`?`highcharts-no-tooltip`:`highcharts-label`),l&&this.addClass(`highcharts-`+l),this.text=e.text(void 0,0,0,s).attr({zIndex:1}),typeof i==`string`&&((u=/^url\((.*?)\)$/.test(i))||this.renderer.symbols[i])&&(this.symbolKey=i),this.bBox=jn.emptyBBox,this.padding=3,this.baselineOffset=0,this.needsBox=e.styledMode||u,this.deferredAttr={},this.alignFactor=0}alignSetter(e){let t=En(e);this.textAlign=e,t!==this.alignFactor&&(this.alignFactor=t,this.bBox&&Dn(this.xSetting)&&this.attr({x:this.xSetting}))}anchorXSetter(e,t){this.anchorX=e,this.boxAttr(t,Math.round(e)-this.getCrispAdjust()-this.xSetting)}anchorYSetter(e,t){this.anchorY=e,this.boxAttr(t,e-this.ySetting)}boxAttr(e,t){this.box?this.box.attr(e,t):this.deferredAttr[e]=t}css(e){if(e){let t={};e=On(e),jn.textProps.forEach(n=>{e[n]!==void 0&&(t[n]=e[n],delete e[n])}),this.text.css(t),`fontSize`in t||`fontWeight`in t?this.updateTextPadding():(`width`in t||`textOverflow`in t)&&this.updateBoxSize()}return Cn.prototype.css.call(this,e)}destroy(){An(this.element,`mouseenter`),An(this.element,`mouseleave`),this.text&&this.text.destroy(),this.box&&=this.box.destroy(),Cn.prototype.destroy.call(this)}fillSetter(e,t){e&&(this.needsBox=!0),this.fill=e,this.boxAttr(t,e)}getBBox(e,t){this.textStr&&this.bBox.width===0&&this.bBox.height===0&&this.updateBoxSize();let{padding:n,height:r=0,translateX:i=0,translateY:a=0,width:o=0}=this,s=kn(this.paddingLeft,n),c=t??(this.rotation||0),l={width:o,height:r,x:i+this.bBox.x-s,y:a+this.bBox.y-n+this.baselineOffset};return c&&(l=this.getRotatedBox(l,c)),l}getCrispAdjust(){return(this.renderer.styledMode&&this.box?this.box.strokeWidth():this[`stroke-width`]?parseInt(this[`stroke-width`],10):0)%2/2}heightSetter(e){this.heightSetting=e,this.doUpdate=!0}afterSetters(){super.afterSetters(),this.doUpdate&&=(this.updateBoxSize(),!1)}onAdd(){this.text.add(this),this.attr({text:kn(this.textStr,``),x:this.x||0,y:this.y||0}),this.box&&wn(this.anchorX)&&this.attr({anchorX:this.anchorX,anchorY:this.anchorY})}paddingSetter(e,t){Dn(e)?e!==this[t]&&(this[t]=e,this.updateTextPadding()):this[t]=void 0}rSetter(e,t){this.boxAttr(t,e)}strokeSetter(e,t){this.stroke=e,this.boxAttr(t,e)}"stroke-widthSetter"(e,t){e&&(this.needsBox=!0),this[`stroke-width`]=e,this.boxAttr(t,e)}"text-alignSetter"(e){this.textAlign=this[`text-align`]=e,this.updateTextPadding()}textSetter(e){e!==void 0&&this.text.attr({text:e}),this.updateTextPadding(),this.reAlign()}updateBoxSize(){let e,t=this.text,n={},r=this.padding,i=this.bBox=(!Dn(this.widthSetting)||!Dn(this.heightSetting)||this.textAlign)&&wn(t.textStr)?t.getBBox(void 0,0):jn.emptyBBox;this.width=this.getPaddedWidth(),this.height=(this.heightSetting||i.height||0)+2*r;let a=this.renderer.fontMetrics(t);if(this.baselineOffset=r+Math.min((this.text.firstLineMetrics||a).b,i.height||1/0),this.heightSetting&&(this.baselineOffset+=(this.heightSetting-a.h)/2),this.needsBox&&!t.textPath){if(!this.box){let e=this.box=this.symbolKey?this.renderer.symbol(this.symbolKey):this.renderer.rect();e.addClass((this.className===`button`?``:`highcharts-label-box`)+(this.className?` highcharts-`+this.className+`-box`:``)),e.add(this)}n.x=e=this.getCrispAdjust(),n.y=(this.baseline?-this.baselineOffset:0)+e,n.width=Math.round(this.width),n.height=Math.round(this.height),this.box.attr(Tn(n,this.deferredAttr)),this.deferredAttr={}}}updateTextPadding(){let e=this.text,t=e.styles.textAlign||this.textAlign;if(!e.textPath){this.updateBoxSize();let n=this.baseline?0:this.baselineOffset,r=(this.paddingLeft??this.padding)+En(t)*(this.widthSetting??this.bBox.width);(r!==e.x||n!==e.y)&&(e.attr({align:t,x:r}),n!==void 0&&e.attr(`y`,n)),e.x=r,e.y=n}}widthSetter(e){this.widthSetting=Dn(e)?e:void 0,this.doUpdate=!0}getPaddedWidth(){let e=this.padding,t=kn(this.paddingLeft,e),n=kn(this.paddingRight,e);return(this.widthSetting||this.bBox.width||0)+t+n}xSetter(e){this.x=e,this.alignFactor&&(e-=this.alignFactor*this.getPaddedWidth(),this[`forceAnimate:x`]=!0),this.anchorX&&(this[`forceAnimate:anchorX`]=!0),this.xSetting=Math.round(e),this.attr(`translateX`,this.xSetting)}ySetter(e){this.anchorY&&(this[`forceAnimate:anchorY`]=!0),this.ySetting=this.y=Math.round(e),this.attr(`translateY`,this.ySetting)}}jn.emptyBBox={width:0,height:0,x:0,y:0},jn.textProps=[`color`,`direction`,`fontFamily`,`fontSize`,`fontStyle`,`fontWeight`,`lineClamp`,`lineHeight`,`textAlign`,`textDecoration`,`textOutline`,`textOverflow`,`whiteSpace`,`width`];let{defined:Mn,isNumber:Nn,pick:Pn}=M;function Fn(e,t,n,r,i){let a=[];if(i){let o=i.start||0,s=i.end||0,c=Pn(i.r,n),l=Pn(i.r,r||n),u=2e-4/(i.borderRadius?1:Math.max(c,1)),d=Math.abs(s-o-2*Math.PI)0&&c0)return l;if(e+s>n-o)if(c>t+o&&ct+o&&c0){let n=cr&&so&&l.splice(1,1,[`L`,s-6,t],[`L`,s,t-6],[`L`,s+6,t],[`L`,n-a,t]);return l},circle:function(e,t,n,r){return Fn(e+n/2,t+r/2,n/2,r/2,{start:.5*Math.PI,end:2.5*Math.PI,open:!1})},diamond:function(e,t,n,r){return[[`M`,e+n/2,t],[`L`,e+n,t+r/2],[`L`,e+n/2,t+r],[`L`,e,t+r/2],[`Z`]]},rect:In,roundedRect:Ln,square:In,triangle:function(e,t,n,r){return[[`M`,e+n/2,t],[`L`,e+n,t+r],[`L`,e,t+r],[`Z`]]},"triangle-down":function(e,t,n,r){return[[`M`,e,t],[`L`,e+n,t],[`L`,e+n/2,t+r],[`Z`]]}},{doc:zn,SVG_NS:Bn,win:Vn}=S,{attr:Hn,extend:Un,fireEvent:Wn,isString:Gn,objectEach:Kn,pick:qn}=M,Jn=(e,t)=>e.substring(0,t)+`…`,Yn=class{constructor(e){let t=e.styles;this.renderer=e.renderer,this.svgElement=e,this.width=e.textWidth,this.textLineHeight=t?.lineHeight,this.textOutline=t?.textOutline,this.ellipsis=t?.textOverflow===`ellipsis`,this.lineClamp=t?.lineClamp,this.noWrap=t?.whiteSpace===`nowrap`}buildSVG(){let e=this.svgElement,t=e.element,n=e.renderer,r=qn(e.textStr,``).toString(),i=r.indexOf(`<`)!==-1,a=t.childNodes,o=!e.added&&n.box,s=[r,this.ellipsis,this.noWrap,this.textLineHeight,this.textOutline,e.getStyle(`font-size`),e.styles.lineClamp,this.width].join(`,`);if(s!==e.textCache){e.textCache=s,delete e.actualWidth;for(let e=a.length;e--;)t.removeChild(a[e]);if(i||this.ellipsis||this.width||e.textPath||r.indexOf(` `)!==-1&&(!this.noWrap||//g.test(r))){if(r!==``){o&&o.appendChild(t);let n=new R(r);this.modifyTree(n.nodes),n.addToDOM(t),this.modifyDOM(),this.ellipsis&&(t.textContent||``).indexOf(`…`)!==-1&&e.attr(`title`,this.unescapeEntities(e.textStr||``,[`<`,`>`])),o&&o.removeChild(t)}}else t.appendChild(zn.createTextNode(this.unescapeEntities(r)));Gn(this.textOutline)&&e.applyTextOutline&&e.applyTextOutline(this.textOutline)}}modifyDOM(){let e,t=this.svgElement,n=Hn(t.element,`x`);for(t.firstLineMetrics=void 0;(e=t.element.firstChild)&&/^[\s\u200B]*$/.test(e.textContent||` `);)t.element.removeChild(e);[].forEach.call(t.element.querySelectorAll(`tspan.highcharts-br`),(e,r)=>{e.nextSibling&&e.previousSibling&&(r===0&&e.previousSibling.nodeType===1&&(t.firstLineMetrics=t.renderer.fontMetrics(e.previousSibling)),Hn(e,{dy:this.getLineHeight(e.nextSibling),x:n}))});let r=this.width||0;if(!r)return;let i=(e,i)=>{let a=e.textContent||``,o=a.replace(/([^\^])-/g,`$1- `).split(` `),s=!this.noWrap&&(o.length>1||t.element.childNodes.length>1),c=this.getLineHeight(i),l=Math.max(0,r-.8*c),u=0,d=t.actualWidth;if(s){let a=[],s=[];for(;i.firstChild&&i.firstChild!==e;)s.push(i.firstChild),i.removeChild(i.firstChild);for(;o.length;)if(o.length&&!this.noWrap&&u>0&&(a.push(e.textContent||``),e.textContent=o.join(` `).replace(/- /g,`-`)),this.truncate(e,void 0,o,u===0&&d||0,r,l,(e,t)=>o.slice(0,t).join(` `).replace(/- /g,`-`)),d=t.actualWidth,u++,this.lineClamp&&u>=this.lineClamp){o.length&&(this.truncate(e,e.textContent||``,void 0,0,r,l,Jn),e.textContent=e.textContent?.replace(`…`,``)+`…`);break}s.forEach(t=>{i.insertBefore(t,e)}),a.forEach(t=>{i.insertBefore(zn.createTextNode(t),e);let r=zn.createElementNS(Bn,`tspan`);r.textContent=`​`,Hn(r,{dy:c,x:n}),i.insertBefore(r,e)})}else this.ellipsis&&a&&this.truncate(e,a,void 0,0,r,l,Jn)},a=e=>{[].slice.call(e.childNodes).forEach(n=>{n.nodeType===Vn.Node.TEXT_NODE?i(n,e):(n.className.baseVal.indexOf(`highcharts-br`)!==-1&&(t.actualWidth=0),a(n))})};a(t.element)}getLineHeight(e){let t=e.nodeType===Vn.Node.TEXT_NODE?e.parentElement:e;return this.textLineHeight?parseInt(this.textLineHeight.toString(),10):this.renderer.fontMetrics(t||this.svgElement.element).h}modifyTree(e){let t=(n,r)=>{let{attributes:i={},children:a,style:o={},tagName:s}=n,c=this.renderer.styledMode;if(s===`b`||s===`strong`?c?i.class=`highcharts-strong`:o.fontWeight=`bold`:(s===`i`||s===`em`)&&(c?i.class=`highcharts-emphasized`:o.fontStyle=`italic`),o?.color&&(o.fill=o.color),s===`br`){i.class=`highcharts-br`,n.textContent=`​`;let t=e[r+1];t?.textContent&&(t.textContent=t.textContent.replace(/^ +/gm,``))}else s===`a`&&a&&a.some(e=>e.tagName===`#text`)&&(n.children=[{children:a,tagName:`tspan`}]);s!==`#text`&&s!==`a`&&(n.tagName=`tspan`),Un(n,{attributes:i,style:o}),a&&a.filter(e=>e.tagName!==`#text`).forEach(t)};e.forEach(t),Wn(this.svgElement,`afterModifyTree`,{nodes:e})}truncate(e,t,n,r,i,a,o){let s,c,l=this.svgElement,{rotation:u}=l,d=[],f=n&&!r?1:0,p=(t||n||``).length,m=p;n||(i=a);let h=function(t,i){let a=i||t,o=e.parentNode;if(o&&d[a]===void 0&&o.getSubStringLength)try{d[a]=r+o.getSubStringLength(0,n?a+1:a)}catch{}return d[a]};if(l.rotation=0,r+(c=h(e.textContent.length))>i){for(;f<=p;)m=Math.ceil((f+p)/2),n&&(s=o(n,m)),c=h(m,s&&s.length-1),f===p?f=p+1:c>i?p=m-1:f=m;p===0?e.textContent=``:t&&p===t.length-1||(e.textContent=s||o(t||n,m)),this.ellipsis&&c>i&&this.truncate(e,e.textContent||``,void 0,0,i,a,Jn)}n&&n.splice(0,m),l.actualWidth=c,l.rotation=u}unescapeEntities(e,t){return Kn(this.renderer.escapes,function(n,r){t&&t.indexOf(n)!==-1||(e=e.toString().replace(RegExp(n,`g`),r))}),e}},{defaultOptions:Xn}=Be,{charts:Zn,deg2rad:Qn,doc:$n,isFirefox:er,isMS:tr,isWebKit:nr,noop:rr,SVG_NS:ir,symbolSizes:ar,win:or}=S,{addEvent:sr,attr:cr,createElement:lr,crisp:ur,css:dr,defined:fr,destroyObjectProperties:pr,extend:mr,isArray:hr,isNumber:gr,isObject:_r,isString:vr,merge:yr,pick:br,pInt:xr,replaceNested:Sr,uniqueKey:Cr}=M;class wr{constructor(e,t,n,r,i,a,o){let s,c;this.x=0,this.y=0;let l=this.createElement(`svg`).attr({version:`1.1`,class:`highcharts-root`}),u=l.element;o||l.css(this.getStyle(r||{})),e.appendChild(u),cr(e,`dir`,`ltr`),e.innerHTML.indexOf(`xmlns`)===-1&&cr(u,`xmlns`,this.SVG_NS),this.box=u,this.boxWrapper=l,this.alignedObjects=[],this.url=this.getReferenceURL(),this.createElement(`desc`).add().element.appendChild($n.createTextNode(`Created with Highcharts 12.4.0`)),this.defs=this.createElement(`defs`).add(),this.allowHTML=a,this.forExport=i,this.styledMode=o,this.gradients={},this.cache={},this.cacheKeys=[],this.imgCount=0,this.rootFontSize=l.getStyle(`font-size`),this.setSize(t,n,!1),er&&e.getBoundingClientRect&&((s=function(){dr(e,{left:0,top:0}),c=e.getBoundingClientRect(),dr(e,{left:Math.ceil(c.left)-c.left+`px`,top:Math.ceil(c.top)-c.top+`px`})})(),this.unSubPixelFix=sr(or,`resize`,s))}definition(e){return new R([e]).addToDOM(this.defs.element)}getReferenceURL(){if((er||nr)&&$n.getElementsByTagName(`base`).length){if(!fr(t)){let e=Cr(),n=new R([{tagName:`svg`,attributes:{width:8,height:8},children:[{tagName:`defs`,children:[{tagName:`clipPath`,attributes:{id:e},children:[{tagName:`rect`,attributes:{width:4,height:4}}]}]},{tagName:`rect`,attributes:{id:`hitme`,width:8,height:8,"clip-path":`url(#${e})`,fill:`rgba(0,0,0,0.001)`}}]}]).addToDOM($n.body);dr(n,{position:`fixed`,top:0,left:0,zIndex:9e5}),t=$n.elementFromPoint(6,6)?.id===`hitme`,$n.body.removeChild(n)}if(t)return Sr(or.location.href.split(`#`)[0],[/<[^>]*>/g,``],[/([\('\)])/g,`\\$1`],[/ /g,`%20`])}return``}getStyle(e){return this.style=mr({fontFamily:`-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif`,fontSize:`1rem`},e),this.style}setStyle(e){this.boxWrapper.css(this.getStyle(e))}isHidden(){return!this.boxWrapper.getBBox().width}destroy(){let e=this.defs;return this.box=null,this.boxWrapper=this.boxWrapper.destroy(),pr(this.gradients||{}),this.gradients=null,this.defs=e.destroy(),this.unSubPixelFix&&this.unSubPixelFix(),this.alignedObjects=null,null}createElement(e){return new this.Element(this,e)}getRadialAttr(e,t){return{cx:e[0]-e[2]/2+(t.cx||0)*e[2],cy:e[1]-e[2]/2+(t.cy||0)*e[2],r:(t.r||0)*e[2]}}shadowDefinition(e){let t=[`highcharts-drop-shadow-${this.chartIndex}`,...Object.keys(e).map(t=>`${t}-${e[t]}`)].join(`-`).toLowerCase().replace(/[^a-z\d\-]/g,``),n=yr({color:`#000000`,offsetX:1,offsetY:1,opacity:.15,width:5},e);return this.defs.element.querySelector(`#${t}`)||this.definition({tagName:`filter`,attributes:{id:t,filterUnits:n.filterUnits},children:this.getShadowFilterContent(n)}),t}getShadowFilterContent(e){return[{tagName:`feDropShadow`,attributes:{dx:e.offsetX,dy:e.offsetY,"flood-color":e.color,"flood-opacity":Math.min(5*e.opacity,1),stdDeviation:e.width/2}}]}buildText(e){new Yn(e).buildSVG()}getContrast(e){if(e===`transparent`)return`#000000`;let t=F.parse(e).rgba;if(gr(t[0])||!F.useColorMix){let e=t.map(e=>{let t=e/255;return t<=.04?t/12.92:((t+.055)/1.055)**2.4}),n=.2126*e[0]+.7152*e[1]+.0722*e[2];return 1.05/(n+.05)>(n+.05)/.05?`#FFFFFF`:`#000000`}return`color(from `+e+` srgb clamp(0,calc(9e9*(0.5 - (0.2126*r + 0.7152*g + 0.0722*b))),1) clamp(0,calc(9e9*(0.5 - (0.2126*r + 0.7152*g + 0.0722*b))),1) clamp(0,calc(9e9*(0.5 - (0.2126*r + 0.7152*g + 0.0722*b))),1))`}button(e,t,n,r,i={},a,o,s,c,l){let u=this.label(e,t,n,c,void 0,void 0,l,void 0,`button`),d=this.styledMode,f=arguments,p=0;i=yr(Xn.global.buttonTheme,i),d&&(delete i.fill,delete i.stroke,delete i[`stroke-width`]);let m=i.states||{},h=i.style||{};delete i.states,delete i.style;let g=[R.filterUserAttributes(i)],_=[h];return d||[`hover`,`select`,`disabled`].forEach((e,t)=>{g.push(yr(g[0],R.filterUserAttributes(f[t+5]||m[e]||{}))),_.push(g[t+1].style),delete g[t+1].style}),sr(u.element,tr?`mouseover`:`mouseenter`,function(){p!==3&&u.setState(1)}),sr(u.element,tr?`mouseout`:`mouseleave`,function(){p!==3&&u.setState(p)}),u.setState=(e=0)=>{if(e!==1&&(u.state=p=e),u.removeClass(/highcharts-button-(normal|hover|pressed|disabled)/).addClass(`highcharts-button-`+[`normal`,`hover`,`pressed`,`disabled`][e]),!d){u.attr(g[e]);let t=_[e];_r(t)&&u.css(t)}},u.attr(g[0]),!d&&(u.css(mr({cursor:`default`},h)),l&&u.text.css({pointerEvents:`none`})),u.on(`touchstart`,e=>e.stopPropagation()).on(`click`,function(e){p!==3&&r?.call(u,e)})}crispLine(e,t){let[n,r]=e;return fr(n[1])&&n[1]===r[1]&&(n[1]=r[1]=ur(n[1],t)),fr(n[2])&&n[2]===r[2]&&(n[2]=r[2]=ur(n[2],t)),e}path(e){let t=this.styledMode?{}:{fill:`none`};return hr(e)?t.d=e:_r(e)&&mr(t,e),this.createElement(`path`).attr(t)}circle(e,t,n){let r=_r(e)?e:e===void 0?{}:{x:e,y:t,r:n},i=this.createElement(`circle`);return i.xSetter=i.ySetter=function(e,t,n){n.setAttribute(`c`+t,e)},i.attr(r)}arc(e,t,n,r,i,a){let o;_r(e)?(t=(o=e).y,n=o.r,r=o.innerR,i=o.start,a=o.end,e=o.x):o={innerR:r,start:i,end:a};let s=this.symbol(`arc`,e,t,n,n,o);return s.r=n,s}rect(e,t,n,r,i,a){let o=_r(e)?e:e===void 0?{}:{x:e,y:t,r:i,width:Math.max(n||0,0),height:Math.max(r||0,0)},s=this.createElement(`rect`);return this.styledMode||(a!==void 0&&(o[`stroke-width`]=a,mr(o,s.crisp(o))),o.fill=`none`),s.rSetter=function(e,t,n){s.r=e,cr(n,{rx:e,ry:e})},s.rGetter=function(){return s.r||0},s.attr(o)}roundedRect(e){return this.symbol(`roundedRect`).attr(e)}setSize(e,t,n){this.width=e,this.height=t,this.boxWrapper.animate({width:e,height:t},{step:function(){this.attr({viewBox:`0 0 `+this.attr(`width`)+` `+this.attr(`height`)})},duration:br(n,!0)?void 0:0}),this.alignElements()}g(e){let t=this.createElement(`g`);return e?t.attr({class:`highcharts-`+e}):t}image(e,t,n,r,i,a){let o={preserveAspectRatio:`none`};gr(t)&&(o.x=t),gr(n)&&(o.y=n),gr(r)&&(o.width=r),gr(i)&&(o.height=i);let s=this.createElement(`image`).attr(o),c=function(t){s.attr({href:e}),a.call(s,t)};if(a){s.attr({href:`data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==`});let t=new or.Image;sr(t,`load`,c),t.src=e,t.complete&&c({})}else s.attr({href:e});return s}symbol(e,t,n,r,i,a){let o,s,c,l,u=this,d=/^url\((.*?)\)$/,f=d.test(e),p=!f&&(this.symbols[e]?e:`circle`),m=p&&this.symbols[p];if(m)typeof t==`number`&&(s=m.call(this.symbols,t||0,n||0,r||0,i||0,a)),o=this.path(s),u.styledMode||o.attr(`fill`,`none`),mr(o,{symbolName:p||void 0,x:t,y:n,width:r,height:i}),a&&mr(o,a);else if(f){c=e.match(d)[1];let r=o=this.image(c);r.imgwidth=br(a?.width,ar[c]?.width),r.imgheight=br(a?.height,ar[c]?.height),l=e=>e.attr({width:e.width,height:e.height}),[`width`,`height`].forEach(e=>{r[`${e}Setter`]=function(e,t){this[t]=e;let{alignByTranslate:n,element:r,width:i,height:o,imgwidth:s,imgheight:c}=this,l=t===`width`?s:c,u=1;a&&a.backgroundSize===`within`&&i&&o&&s&&c?(u=Math.min(i/s,o/c),cr(r,{width:Math.round(s*u),height:Math.round(c*u)})):r&&l&&r.setAttribute(t,l),!n&&s&&c&&this.translate(((i||0)-s*u)/2,((o||0)-c*u)/2)}}),fr(t)&&r.attr({x:t,y:n}),r.isImg=!0,r.symbolUrl=e,fr(r.imgwidth)&&fr(r.imgheight)?l(r):(r.attr({width:0,height:0}),lr(`img`,{onload:function(){let e=Zn[u.chartIndex];this.width===0&&(dr(this,{position:`absolute`,top:`-999em`}),$n.body.appendChild(this)),ar[c]={width:this.width,height:this.height},r.imgwidth=this.width,r.imgheight=this.height,r.element&&l(r),this.parentNode&&this.parentNode.removeChild(this),u.imgCount--,u.imgCount||!e||e.hasLoaded||e.onload()},src:c}),this.imgCount++)}return o}clipRect(e,t,n,r){return this.rect(e,t,n,r,0)}text(e,t,n,r){let i={};if(r&&(this.allowHTML||!this.forExport))return this.html(e,t,n);i.x=Math.round(t||0),n&&(i.y=Math.round(n)),fr(e)&&(i.text=e);let a=this.createElement(`text`).attr(i);return r&&(!this.forExport||this.allowHTML)||(a.xSetter=function(e,t,n){let r=n.getElementsByTagName(`tspan`),i=n.getAttribute(t);for(let n=0,a;ne.align())}}mr(wr.prototype,{Element:Cn,SVG_NS:ir,escapes:{"&":`&`,"<":`<`,">":`>`,"'":`'`,'"':`"`},symbols:Rn,draw:rr}),Rt.registerRendererType(`svg`,wr,!0);let{composed:Tr,isFirefox:Er}=S,{attr:Dr,css:Or,createElement:kr,defined:Ar,extend:jr,getAlignFactor:Mr,isNumber:Nr,pInt:Pr,pushUnique:Fr}=M;function Ir(e,t,n){let r=this.div?.style;Cn.prototype[`${t}Setter`].call(this,e,t,n),r&&(n.style[t]=r[t]=e)}let Lr=(e,t)=>{if(!e.div){let n=Dr(e.element,`class`),r=e.css,i=kr(`div`,n?{className:n}:void 0,{position:`absolute`,left:`${e.translateX||0}px`,top:`${e.translateY||0}px`,...e.styles,display:e.display,opacity:e.opacity,visibility:e.visibility},e.parentGroup?.div||t);e.classSetter=(e,t,n)=>{n.setAttribute(`class`,e),i.className=e},e.translateXSetter=e.translateYSetter=(t,n)=>{e[n]=t,i.style[n===`translateX`?`left`:`top`]=`${t}px`,e.doTransform=!0},e.scaleXSetter=e.scaleYSetter=(t,n)=>{e[n]=t,e.doTransform=!0},e.opacitySetter=e.visibilitySetter=Ir,e.css=t=>(r.call(e,t),t.cursor&&(i.style.cursor=t.cursor),t.pointerEvents&&(i.style.pointerEvents=t.pointerEvents),e),e.on=function(){return Cn.prototype.on.apply({element:i,onEvents:e.onEvents},arguments),e},e.div=i}return e.div};class Rr extends Cn{static compose(e){Fr(Tr,this.compose)&&(e.prototype.html=function(e,t,n){return new Rr(this,`span`).attr({text:e,x:Math.round(t),y:Math.round(n)})})}constructor(e,t){super(e,t),Rr.useForeignObject?this.foreignObject=e.createElement(`foreignObject`).attr({zIndex:2}):this.css({position:`absolute`,...e.styledMode?{}:{fontFamily:e.style.fontFamily,fontSize:e.style.fontSize}}),this.element.style.whiteSpace=`nowrap`}getSpanCorrection(e,t,n){this.xCorr=-e*n,this.yCorr=-t}css(e){let t,{element:n}=this,r=n.tagName===`SPAN`&&e&&`width`in e,i=r&&e.width;return r&&(delete e.width,this.textWidth=Pr(i)||void 0,t=!0),e?.textOverflow===`ellipsis`&&(e.overflow=`hidden`,e.whiteSpace=`nowrap`),e?.lineClamp&&(e.display=`-webkit-box`,e.WebkitLineClamp=e.lineClamp,e.WebkitBoxOrient=`vertical`,e.overflow=`hidden`),Nr(Number(e?.fontSize))&&(e.fontSize+=`px`),jr(this.styles,e),Or(n,e),t&&this.updateTransform(),this}htmlGetBBox(){let{element:e}=this;return{x:e.offsetLeft,y:e.offsetTop,width:e.offsetWidth,height:e.offsetHeight}}updateTransform(){if(!this.added){this.alignOnAdd=!0;return}let{element:e,foreignObject:t,oldTextWidth:n,renderer:r,rotation:i,rotationOriginX:a,rotationOriginY:o,scaleX:s,scaleY:c,styles:{display:l=`inline-block`,whiteSpace:u},textAlign:d=`left`,textWidth:f,translateX:p=0,translateY:m=0,x:h=0,y:g=0}=this;if(t||Or(e,{marginLeft:`${p}px`,marginTop:`${m}px`}),e.tagName===`SPAN`){let p,m=[i,d,e.innerHTML,f,this.textAlign].join(`,`),_=-(this.parentGroup?.padding*1)||0;if(f!==n){let t=this.textPxLength?this.textPxLength:(Or(e,{width:``,whiteSpace:u||`nowrap`}),e.offsetWidth),a=f||0,o=!r.styledMode&&e.style.textOverflow===``&&e.style.webkitLineClamp;(a>n||t>a||o)&&(/[\-\s\u00AD]/.test(e.textContent||e.innerText)||e.style.textOverflow===`ellipsis`)&&(Or(e,{width:(i||s||t>a||o)&&Nr(f)?f+`px`:`auto`,display:l,whiteSpace:u||`normal`}),this.oldTextWidth=f)}t&&(Or(e,{display:`inline-block`,verticalAlign:`top`}),t.attr({width:r.width,height:r.height})),m!==this.cTT&&(p=r.fontMetrics(e).b,Ar(i)&&!t&&(i!==(this.oldRotation||0)||d!==this.oldAlign)&&Or(e,{transform:`rotate(${i}deg)`,transformOrigin:`${_}% ${_}px`}),this.getSpanCorrection(!Ar(i)&&!this.textWidth&&this.textPxLength||e.offsetWidth,p,Mr(d)));let{xCorr:v=0,yCorr:y=0}=this,b={left:`${h+v}px`,top:`${g+y}px`,textAlign:d,transformOrigin:`${(a??h)-v-h-_}px ${(o??g)-y-g-_}px`};(s||c)&&(b.transform=`scale(${s??1},${c??1})`),t?(super.updateTransform(),Nr(h)&&Nr(g)?(t.attr({x:h+v,y:g+y,width:e.offsetWidth+3,height:e.offsetHeight,"transform-origin":e.getAttribute(`transform-origin`)||`0 0`}),Or(e,{display:l,textAlign:d})):Er&&t.attr({width:0,height:0})):Or(e,b),this.cTT=m,this.oldRotation=i,this.oldAlign=d}}add(e){let{foreignObject:t,renderer:n}=this,r=n.box.parentNode,i=[];if(t)t.add(e),super.add(n.createElement(`body`).attr({xmlns:`http://www.w3.org/1999/xhtml`}).css({background:`transparent`,margin:`0 3px 0 0`}).add(t));else{let t;if(this.parentGroup=e,e&&!(t=e.div)){let n=e;for(;n;)i.push(n),n=n.parentGroup;for(let e of i.reverse())t=Lr(e,r)}(t||r).appendChild(this.element)}return this.added=!0,this.alignOnAdd&&this.updateTransform(),this}textSetter(e){e!==this.textStr&&(delete this.bBox,delete this.oldTextWidth,R.setElementHTML(this.element,e??``),this.textStr=e,this.doTransform=!0)}alignSetter(e){this.alignValue=this.textAlign=e,this.doTransform=!0}xSetter(e,t){this[t]=e,this.doTransform=!0}}let zr=Rr.prototype;zr.visibilitySetter=zr.opacitySetter=Ir,zr.ySetter=zr.rotationSetter=zr.rotationOriginXSetter=zr.rotationOriginYSetter=zr.xSetter,function(e){e.xAxis={alignTicks:!0,allowDecimals:void 0,panningEnabled:!0,zIndex:2,zoomEnabled:!0,dateTimeLabelFormats:{millisecond:{main:`%[HMSL]`,range:!1},second:{main:`%[HMS]`,range:!1},minute:{main:`%[HM]`,range:!1},hour:{main:`%[HM]`,range:!1},day:{main:`%[eb]`},week:{main:`%[eb]`},month:{main:`%[bY]`},year:{main:`%Y`}},endOnTick:!1,gridLineDashStyle:`Solid`,gridZIndex:1,labels:{autoRotationLimit:80,distance:15,enabled:!0,indentation:10,overflow:`justify`,reserveSpace:void 0,rotation:void 0,staggerLines:0,step:0,useHTML:!1,zIndex:7,style:{color:`#333333`,cursor:`default`,fontSize:`0.8em`,textOverflow:`ellipsis`}},maxPadding:.01,minorGridLineDashStyle:`Solid`,minorTickLength:2,minorTickPosition:`outside`,minorTicksPerMajor:5,minPadding:.01,offset:void 0,reversed:void 0,reversedStacks:!1,showEmpty:!0,showFirstLabel:!0,showLastLabel:!0,startOfWeek:1,startOnTick:!1,tickLength:10,tickPixelInterval:100,tickmarkPlacement:`between`,tickPosition:`outside`,title:{align:`middle`,useHTML:!1,x:0,y:0,style:{color:`#666666`,fontSize:`0.8em`}},visible:!0,minorGridLineColor:`#f2f2f2`,minorGridLineWidth:1,minorTickColor:`#999999`,lineColor:`#333333`,lineWidth:1,gridLineColor:`#e6e6e6`,gridLineWidth:void 0,tickColor:`#333333`},e.yAxis={reversedStacks:!0,endOnTick:!0,maxPadding:.05,minPadding:.05,tickPixelInterval:72,showLastLabel:!0,labels:{x:void 0},startOnTick:!0,title:{},stackLabels:{animation:{},allowOverlap:!1,enabled:!1,crop:!0,overflow:`justify`,formatter:function(){let{numberFormatter:e}=this.axis.chart;return e(this.total||0,-1)},style:{color:`#000000`,fontSize:`0.7em`,fontWeight:`bold`,textOutline:`1px contrast`}},gridLineWidth:1,lineWidth:0}}(a||={});let Br=a,{addEvent:Vr,isFunction:Hr,objectEach:Ur,removeEvent:Wr}=M;(o||={}).registerEventOptions=function(e,t){e.eventOptions=e.eventOptions||{},Ur(t.events,function(t,n){e.eventOptions[n]!==t&&(e.eventOptions[n]&&(Wr(e,n,e.eventOptions[n]),delete e.eventOptions[n]),Hr(t)&&(e.eventOptions[n]=t,Vr(e,n,t,{order:0})))})};let Gr=o,{deg2rad:Kr}=S,{clamp:qr,correctFloat:Jr,defined:Yr,destroyObjectProperties:Xr,extend:Zr,fireEvent:Qr,getAlignFactor:$r,isNumber:ei,merge:ti,objectEach:ni,pick:ri}=M,ii=class{constructor(e,t,n,r,i){this.isNew=!0,this.isNewLabel=!0,this.axis=e,this.pos=t,this.type=n||``,this.parameters=i||{},this.tickmarkOffset=this.parameters.tickmarkOffset,this.options=this.parameters.options,Qr(this,`init`),n||r||this.addLabel()}addLabel(){let e=this,t=e.axis,n=t.options,r=t.chart,i=t.categories,a=t.logarithmic,o=t.names,s=e.pos,c=ri(e.options?.labels,n.labels),l=t.tickPositions,u=s===l[0],d=s===l[l.length-1],f=(!c.step||c.step===1)&&t.tickInterval===1,p=l.info,m=e.label,h,g,_,v=this.parameters.category||(i?ri(i[s],o[s],s):s);a&&ei(v)&&(v=Jr(a.lin2log(v))),t.dateTime&&(p?h=(g=r.time.resolveDTLFormat(n.dateTimeLabelFormats[!n.grid?.enabled&&p.higherRanks[s]||p.unitName])).main:ei(v)&&(h=t.dateTime.getXDateFormat(v,n.dateTimeLabelFormats||{}))),e.isFirst=u,e.isLast=d;let y={axis:t,chart:r,dateTimeLabelFormat:h,isFirst:u,isLast:d,pos:s,tick:e,tickPositionInfo:p,value:v};Qr(this,`labelFormat`,y);let b=e=>c.formatter?c.formatter.call(e,e):c.format?(e.text=t.defaultLabelFormatter.call(e),Lt.format(c.format,e,r)):t.defaultLabelFormatter.call(e),x=b.call(y,y),S=g?.list;S?e.shortenLabel=function(){for(_=0;_0&&r+u*d>s&&(h=Math.round((i-r)/Math.cos(l*Kr))):(r-u*ds&&(p=s-e.x+p*u,m=-1),(p=Math.min(f,p))p||t.autoRotation&&c?.styles?.width)&&(h=p)),h&&c&&(this.shortenLabel?this.shortenLabel():c.css(Zr({},{width:Math.floor(h)+`px`,lineClamp:+!t.isRadial})))}moveLabel(e,t){let n=this,r=n.label,i=n.axis,a=!1,o;r&&r.textStr===e?(n.movedLabel=r,a=!0,delete n.label):ni(i.ticks,function(t){a||t.isNew||t===n||!t.label||t.label.textStr!==e||(n.movedLabel=t.label,a=!0,t.labelPos=n.movedLabel.xy,delete t.label)}),!a&&(n.labelPos||r)&&(o=n.labelPos||r.xy,n.movedLabel=n.createLabel(e,t,o),n.movedLabel&&n.movedLabel.attr({opacity:0}))}render(e,t,n){let r=this.axis,i=r.horiz,a=this.pos,o=ri(this.tickmarkOffset,r.tickmarkOffset),s=this.getPosition(i,a,o,t),c=s.x,l=s.y,u=r.pos,d=u+r.len,f=i?c:l,p=ri(n,this.label?.newOpacity,1);!r.chart.polar&&(Jr(f)d)&&(n=0),n??=1,this.isActive=!0,this.renderGridLine(t,n),this.renderMark(s,n),this.renderLabel(s,t,p,e),this.isNew=!1,Qr(this,`afterRender`)}renderGridLine(e,t){let n=this.axis,r=n.options,i={},a=this.pos,o=this.type,s=ri(this.tickmarkOffset,n.tickmarkOffset),c=n.chart.renderer,l=this.gridLine,u,d=r.gridLineWidth,f=r.gridLineColor,p=r.gridLineDashStyle;this.type===`minor`&&(d=r.minorGridLineWidth,f=r.minorGridLineColor,p=r.minorGridLineDashStyle),l||(n.chart.styledMode||(i.stroke=f,i[`stroke-width`]=d||0,i.dashstyle=p),o||(i.zIndex=1),e&&(t=0),this.gridLine=l=c.path().attr(i).addClass(`highcharts-`+(o?o+`-`:``)+`grid-line`).add(n.gridGroup)),l&&(u=n.getPlotLinePath({value:a+s,lineWidth:l.strokeWidth(),force:`pass`,old:e,acrossPanes:!1}))&&l[e||this.isNew?`attr`:`animate`]({d:u,opacity:t})}renderMark(e,t){let n=this.axis,r=n.options,i=n.chart.renderer,a=this.type,o=n.tickSize(a?a+`Tick`:`tick`),s=e.x,c=e.y,l=ri(r[a===`minor`?`minorTickWidth`:`tickWidth`],!a&&n.isXAxis?1:0),u=r[a===`minor`?`minorTickColor`:`tickColor`],d=this.mark,f=!d;o&&(n.opposite&&(o[0]=-o[0]),!d&&(this.mark=d=i.path().addClass(`highcharts-`+(a?a+`-`:``)+`tick`).add(n.axisGroup),n.chart.styledMode||d.attr({stroke:u,"stroke-width":l})),d[f?`attr`:`animate`]({d:this.getMarkPath(s,c,o[0],d.strokeWidth(),n.horiz,i),opacity:t}))}renderLabel(e,t,n,r){let i=this.axis,a=i.horiz,o=i.options,s=this.label,c=o.labels,l=c.step,u=ri(this.tickmarkOffset,i.tickmarkOffset),d=e.x,f=e.y,p=!0;s&&ei(d)&&(s.xy=e=this.getLabelPosition(d,f,s,a,c,u,r,l),(!this.isFirst||this.isLast||o.showFirstLabel)&&(!this.isLast||this.isFirst||o.showLastLabel)?!a||c.step||c.rotation||t||n===0||this.handleOverflow(e):p=!1,l&&r%l&&(p=!1),p&&ei(e.y)?(e.opacity=n,s[this.isNewLabel?`attr`:`animate`](e).show(!0),this.isNewLabel=!1):(s.hide(),this.isNewLabel=!0))}replaceMovedLabel(){let e=this.label,t=this.axis;e&&!this.isNew&&(e.animate({opacity:0},void 0,e.destroy),delete this.label),t.isDirty=!0,this.label=this.movedLabel,delete this.movedLabel}},{animObject:ai}=L,{xAxis:oi,yAxis:si}=Br,{defaultOptions:ci}=Be,{registerEventOptions:li}=Gr,{deg2rad:ui}=S,{arrayMax:di,arrayMin:fi,clamp:pi,correctFloat:B,defined:V,destroyObjectProperties:mi,erase:hi,error:gi,extend:_i,fireEvent:H,getClosestDistance:vi,insertItem:yi,isArray:bi,isNumber:U,isString:xi,merge:Si,normalizeTickInterval:Ci,objectEach:wi,pick:W,relativeLength:Ti,removeEvent:Ei,splat:Di,syncTimeout:Oi}=M,ki=(e,t)=>Ci(t,void 0,void 0,W(e.options.allowDecimals,t<.5||e.tickAmount!==void 0),!!e.tickAmount);_i(ci,{xAxis:oi,yAxis:Si(oi,si)});class Ai{constructor(e,t,n){this.init(e,t,n)}init(e,t,n=this.coll){let r=n===`xAxis`,i=this.isZAxis||(e.inverted?!r:r);this.chart=e,this.horiz=i,this.isXAxis=r,this.coll=n,H(this,`init`,{userOptions:t}),this.opposite=W(t.opposite,this.opposite),this.side=W(t.side,this.side,i?2*!this.opposite:this.opposite?1:3),this.setOptions(t);let a=this.options,o=a.labels;this.type??=a.type||`linear`,this.uniqueNames??=a.uniqueNames??!0,H(this,`afterSetType`),this.userOptions=t,this.minPixelPadding=0,this.reversed=W(a.reversed,this.reversed),this.visible=a.visible,this.zoomEnabled=a.zoomEnabled,this.hasNames=this.type===`category`||!0===a.categories,this.categories=bi(a.categories)&&a.categories||(this.hasNames?[]:void 0),this.names||(this.names=[],this.names.keys={}),this.plotLinesAndBandsGroups={},this.positiveValuesOnly=!!this.logarithmic,this.isLinked=V(a.linkedTo),this.ticks={},this.labelEdge=[],this.minorTicks={},this.plotLinesAndBands=[],this.alternateBands={},this.len??=0,this.minRange=this.userMinRange=a.minRange||a.maxZoom,this.range=a.range,this.offset=a.offset||0,this.max=void 0,this.min=void 0;let s=W(a.crosshair,Di(e.options.tooltip.crosshairs)[+!r]);this.crosshair=!0===s?{}:s,e.axes.indexOf(this)===-1&&(r?e.axes.splice(e.xAxis.length,0,this):e.axes.push(this),yi(this,e[this.coll])),e.orderItems(this.coll),this.series=this.series||[],e.inverted&&!this.isZAxis&&r&&!V(this.reversed)&&(this.reversed=!0),this.labelRotation=U(o.rotation)?o.rotation:void 0,li(this,a),H(this,`afterInit`)}setOptions(e){this.options=Si(this.horiz?{labels:{autoRotation:[-45],padding:3},margin:15}:{labels:{padding:1},title:{rotation:90*this.side}},this.coll===`yAxis`?{title:{text:this.chart.options.lang.yAxisTitle}}:{},ci[this.coll],e),H(this,`afterSetOptions`,{userOptions:e})}defaultLabelFormatter(){let e=this.axis,{numberFormatter:t}=this.chart,n=U(this.value)?this.value:NaN,r=e.chart.time,i=e.categories,a=this.dateTimeLabelFormat,o=ci.lang,s=o.numericSymbols,c=o.numericSymbolMagnitude||1e3,l=e.logarithmic?Math.abs(n):e.tickInterval,u=s?.length,d,f;if(i)f=`${this.value}`;else if(a)f=r.dateFormat(a,n,!0);else if(u&&s&&l>=1e3)for(;u--&&f===void 0;)l>=(d=c**+(u+1))&&10*n%d==0&&s[u]!==null&&n!==0&&(f=t(n/d,-1)+s[u]);return f===void 0&&(f=Math.abs(n)>=1e4?t(n,-1):t(n,-1,void 0,``)),f}getSeriesExtremes(){let e,t=this;H(this,`getSeriesExtremes`,null,function(){t.hasVisibleSeries=!1,t.dataMin=t.dataMax=t.threshold=void 0,t.softThreshold=!t.isXAxis,t.series.forEach(n=>{if(n.reserveSpace()){let r=n.options,i,a=r.threshold,o,s;if(t.hasVisibleSeries=!0,t.positiveValuesOnly&&0>=(a||0)&&(a=void 0),t.isXAxis)(i=n.getColumn(`x`)).length&&(i=t.logarithmic?i.filter(e=>e>0):i,o=(e=n.getXExtremes(i)).min,s=e.max,U(o)||o instanceof Date||(i=i.filter(U),o=(e=n.getXExtremes(i)).min,s=e.max),i.length&&(t.dataMin=Math.min(W(t.dataMin,o),o),t.dataMax=Math.max(W(t.dataMax,s),s)));else{let e=n.applyExtremes();U(e.dataMin)&&(o=e.dataMin,t.dataMin=Math.min(W(t.dataMin,o),o)),U(e.dataMax)&&(s=e.dataMax,t.dataMax=Math.max(W(t.dataMax,s),s)),V(a)&&(t.threshold=a),(!r.softThreshold||t.positiveValuesOnly)&&(t.softThreshold=!1)}}})}),H(this,`afterGetSeriesExtremes`)}translate(e,t,n,r,i,a){let o=this.linkedParent||this,s=r&&o.old?o.old.min:o.min;if(!U(s))return NaN;let c=o.minPixelPadding,l=(o.isOrdinal||o.brokenAxis?.hasBreaks||o.logarithmic&&i)&&!!o.lin2val,u=1,d=0,f=r&&o.old?o.old.transA:o.transA,p=0;return f||=o.transA,n&&(u*=-1,d=o.len),o.reversed&&(u*=-1,d-=u*(o.sector||o.len)),t?(p=(e=e*u+d-c)/f+s,l&&(p=o.lin2val(p))):(l&&(e=o.val2lin(e)),p=u*(e-s)*f+d+u*c+(U(a)?f*a:0),o.isRadial||(p=B(p))),p}toPixels(e,t){return this.translate(this.chart?.time.parse(e)??NaN,!1,!this.horiz,void 0,!0)+(t?0:this.pos)}toValue(e,t){return this.translate(e-(t?0:this.pos),!0,!this.horiz,void 0,!0)}getPlotLinePath(e){let t=this,n=t.chart,r=t.left,i=t.top,a=e.old,o=e.value,s=e.lineWidth,c=a&&n.oldChartHeight||n.chartHeight,l=a&&n.oldChartWidth||n.chartWidth,u=t.transB,d=e.translatedValue,f=e.force,p,m,h,g,_;function v(e,t,n){return f!==`pass`&&(en)&&(f?e=pi(e,t,n):_=!0),e}let y={value:o,lineWidth:s,old:a,force:f,acrossPanes:e.acrossPanes,translatedValue:d};return H(this,`getPlotLinePath`,y,function(e){p=h=(d=pi(d=W(d,t.translate(o,void 0,void 0,a)),-1e9,1e9))+u,m=g=c-d-u,U(d)?t.horiz?(m=i,g=c-t.bottom+(t.options.isInternal?0:n.scrollablePixelsY||0),p=h=v(p,r,r+t.width)):(p=r,h=l-t.right+(n.scrollablePixelsX||0),m=g=v(m,i,i+t.height)):(_=!0,f=!1),e.path=_&&!f?void 0:n.renderer.crispLine([[`M`,p,m],[`L`,h,g]],s||1)}),y.path}getLinearTickPositions(e,t,n){let r,i,a,o=B(Math.floor(t/e)*e),s=B(Math.ceil(n/e)*e),c=[];if(B(o+e)===o&&(a=20),this.single)return[t];for(r=o;r<=s&&(c.push(r),(r=B(r+e,a))!==i);)i=r;return c}getMinorTickInterval(){let{minorTicks:e,minorTickInterval:t}=this.options;return!0===e?W(t,`auto`):!1===e?void 0:t}getMinorTickPositions(){let e=this.options,t=this.tickPositions,n=this.minorTickInterval,r=this.pointRangePadding||0,i=(this.min||0)-r,a=(this.max||0)+r,o=this.brokenAxis?.hasBreaks?this.brokenAxis.unitLength:a-i,s=[],c;if(o&&o/n{let t=e.getColumn(`x`);return e.xIncrement?t.slice(0,2):t}))||0),this.dataMax-this.dataMin)),U(r)&&U(i)&&U(a)&&r-i=a,o=(a-r+i)/2,c=[i-o,n.parse(e.min)??i-o],s&&(c[2]=t?t.log2lin(this.dataMin):this.dataMin),l=[(i=di(c))+a,n.parse(e.max)??i+a],s&&(l[2]=t?t.log2lin(this.dataMax):this.dataMax),(r=fi(l))-ie-t),e=vi([n]))}return e&&t?Math.min(e,t):e||t}nameToX(e){let t=bi(this.options.categories),n=t?this.categories:this.names,r=e.options.x,i;return e.series.requireSorting=!1,V(r)||(r=this.uniqueNames&&n?t?n.indexOf(e.name):W(n.keys[e.name],-1):e.series.autoIncrement()),r===-1?!t&&n&&(i=n.length):U(r)&&(i=r),i===void 0?e.x&&(i=e.x):(this.names[i]=e.name,this.names.keys[e.name]=i),i}updateNames(){let e=this,t=this.names;t.length>0&&(Object.keys(t.keys).forEach(function(e){delete t.keys[e]}),t.length=0,this.minRange=this.userMinRange,(this.series||[]).forEach(t=>{t.xIncrement=null,(!t.points||t.isDirtyData)&&(e.max=Math.max(e.max||0,t.dataTable.rowCount-1),t.processData(),t.generatePoints());let n=t.getColumn(`x`).slice();t.data.forEach((t,r)=>{let i=n[r];t?.options&&t.name!==void 0&&(i=e.nameToX(t))!==void 0&&i!==t.x&&(n[r]=t.x=i)}),t.dataTable.setColumn(`x`,n)}))}setAxisTranslation(){let e=this,t=e.max-e.min,n=e.linkedParent,r=!!e.categories,i=e.isXAxis,a=e.axisPointRange||0,o,s=0,c=0,l,u=e.transA;(i||r||a)&&(o=e.getClosest(),n?(s=n.minPointOffset,c=n.pointRangePadding):e.series.forEach(function(t){let n=r?1:i?W(t.options.pointRange,o,0):e.axisPointRange||0,l=t.options.pointPlacement;if(a=Math.max(a,n),!e.single||r){let e=t.is(`xrange`)?!i:i;s=Math.max(s,e&&xi(l)?0:n/2),c=Math.max(c,e&&l===`on`?0:n)}}),l=e.ordinal?.slope&&o?e.ordinal.slope/o:1,e.minPointOffset=s*=l,e.pointRangePadding=c*=l,e.pointRange=Math.min(a,e.single&&r?1:t),i&&(e.closestPointRange=o)),e.translationSlope=e.transA=u=e.staticScale||e.len/(t+c||1),e.transB=e.horiz?e.left:e.bottom,e.minPixelPadding=u*s,H(this,`afterSetAxisTranslation`)}minFromRange(){let{max:e,min:t}=this;return U(e)&&U(t)&&e-t||void 0}setTickInterval(e){let{categories:t,chart:n,dataMax:r,dataMin:i,dateTime:a,isXAxis:o,logarithmic:s,options:c,softThreshold:l}=this,u=n.time,d=U(this.threshold)?this.threshold:void 0,f=this.minRange||0,{ceiling:p,floor:m,linkedTo:h,softMax:g,softMin:_}=c,v=U(h)&&n[this.coll]?.[h],y=c.tickPixelInterval,b=c.maxPadding,x=c.minPadding,S=0,C,w=U(c.tickInterval)&&c.tickInterval>=0?c.tickInterval:void 0,T,E,D,O;if(a||t||v||this.getTickAmount(),D=W(this.userMin,u.parse(c.min)),O=W(this.userMax,u.parse(c.max)),v?(this.linkedParent=v,C=v.getExtremes(),this.min=W(C.min,C.dataMin),this.max=W(C.max,C.dataMax),this.type!==v.type&&gi(11,!0,n)):(l&&V(d)&&U(r)&&U(i)&&(i>=d?(T=d,x=0):r<=d&&(E=d,b=0)),this.min=W(D,T,i),this.max=W(O,E,r)),U(this.max)&&U(this.min)&&(s&&(this.positiveValuesOnly&&!e&&0>=Math.min(this.min,W(i,this.min))&&gi(10,!0,n),this.min=B(s.log2lin(this.min),16),this.max=B(s.log2lin(this.max),16)),this.range&&U(i)&&(this.userMin=this.min=D=Math.max(i,this.minFromRange()||0),this.userMax=O=this.max,this.range=void 0)),H(this,`foundExtremes`),this.adjustForMinRange(),U(this.min)&&U(this.max)){if(!U(this.userMin)&&U(_)&&_this.max&&(this.max=O=g),t||this.axisPointRange||this.stacking?.usePercentage||v||(S=this.max-this.min)&&(!V(D)&&x&&(this.min-=S*x),!V(O)&&b&&(this.max+=S*b)),!U(this.userMin)&&U(m)&&(this.min=Math.max(this.min,m)),!U(this.userMax)&&U(p)&&(this.max=Math.min(this.max,p)),l&&U(i)&&U(r)){let e=d||0;!V(D)&&this.min=e?this.min=c.minRange?Math.min(e,this.max-f):e:!V(O)&&this.max>e&&r<=e&&(this.max=c.minRange?Math.max(e,this.min+f):e)}!n.polar&&this.min>this.max&&(V(c.min)?this.max=this.min:V(c.max)&&(this.min=this.max)),S=this.max-this.min}if(this.min!==this.max&&U(this.min)&&U(this.max)?v&&!w&&y===v.options.tickPixelInterval?this.tickInterval=w=v.tickInterval:this.tickInterval=W(w,this.tickAmount?S/Math.max(this.tickAmount-1,1):void 0,t?1:S*y/Math.max(this.len,y)):this.tickInterval=1,o&&!e){let e=this.min!==this.old?.min||this.max!==this.old?.max;this.series.forEach(function(t){t.forceCrop=t.forceCropping?.(),t.processData(e)}),H(this,`postProcessData`,{hasExtremesChanged:e})}this.setAxisTranslation(),H(this,`initialAxisTranslation`),this.pointRange&&!w&&(this.tickInterval=Math.max(this.pointRange,this.tickInterval));let k=W(c.minTickInterval,a&&!this.series.some(e=>!e.sorted)?this.closestPointRange:0);!w&&k&&this.tickIntervalMath.max(2*this.len,200))s=[this.min,this.max],gi(19,!1,this.chart);else if(this.dateTime)s=this.getTimeTicks(this.dateTime.normalizeTimeTickInterval(this.tickInterval,e.units),this.min,this.max,e.startOfWeek,this.ordinal?.positions,this.closestPointRange,!0);else if(this.logarithmic)s=this.logarithmic.getLogTickPositions(this.tickInterval,this.min,this.max);else{let e=this.tickInterval,t=e;for(;t<=2*e&&(s=this.getLinearTickPositions(this.tickInterval,this.min,this.max),this.tickAmount&&s.length>this.tickAmount);)this.tickInterval=ki(this,t*=1.1)}s.length>this.len&&(s=[s[0],s[s.length-1]])[0]===s[1]&&(s.length=1),n&&(this.tickPositions=s,(c=n.apply(this,[this.min,this.max]))&&(s=c))}this.tickPositions=s,this.minorTickInterval=r===`auto`&&this.tickInterval?this.tickInterval/e.minorTicksPerMajor:r,this.paddedTicks=s.slice(0),this.trimTicks(s,a,o),!this.isLinked&&U(this.min)&&U(this.max)&&(this.single&&s.length<2&&!this.categories&&!this.series.some(e=>e.is(`heatmap`)&&e.options.pointPlacement===`between`)&&(this.min-=.5,this.max+=.5),t||c||this.adjustTickAmount()),H(this,`afterSetTickPositions`)}trimTicks(e,t,n){let r=e[0],i=e[e.length-1],a=!this.isOrdinal&&this.minPointOffset||0;if(H(this,`trimTicks`),!this.isLinked||!this.grid){if(t&&r!==-1/0)this.min=r;else for(;this.min-a>e[0];)e.shift();if(n)this.max=i;else for(;this.max+a{let{horiz:t,options:n}=e;return[t?n.left:n.top,n.width,n.height,n.pane].join(`,`)},a=i(this);n[this.coll].forEach(function(n){let{series:o}=n;o.length&&o.some(e=>e.visible)&&n!==t&&i(n)===a&&(e=!0,r.push(n))})}if(e&&o){r.forEach(e=>{let n=e.getThresholdAlignment(t);U(n)&&s.push(n)});let e=s.length>1?s.reduce((e,t)=>e+=t,0)/s.length:void 0;r.forEach(t=>{t.thresholdAlignment=e})}return e}getThresholdAlignment(e){if((!U(this.dataMin)||this!==e&&this.series.some(e=>e.isDirty||e.isDirtyData))&&this.getSeriesExtremes(),U(this.threshold)){let e=pi((this.threshold-(this.dataMin||0))/((this.dataMax||0)-(this.dataMin||0)),0,1);return this.options.reversed&&(e=1-e),e}}getTickAmount(){let e=this.options,t=e.tickPixelInterval,n=e.tickAmount;V(e.tickInterval)||n||!(this.lena.push(B(a[a.length-1]+f)),h=()=>a.unshift(B(a[0]-f));if(U(s)&&(p=s<.5?Math.ceil(s*(o-1)):Math.floor(s*(o-1)),i.reversed&&(p=o-1-p)),e.hasData()&&U(r)&&U(n)){let s=()=>{e.transA*=(c-1)/(o-1),e.min=i.startOnTick?a[0]:Math.min(r,a[0]),e.max=i.endOnTick?a[a.length-1]:Math.max(n,a[a.length-1])};if(U(p)&&U(e.threshold)){for(;a[p]!==l||a.length!==o||a[0]>r||a[a.length-1]e.threshold?h():m();if(f>8*e.tickInterval)break;f*=2}s()}else if(c0&&d{n=n||e.isDirtyData||e.isDirty,r=r||e.xAxis?.isDirty||!1}),this.setAxisSize();let i=this.len!==this.old?.len;i||n||r||this.isLinked||this.forceRedraw||this.userMin!==this.old?.userMin||this.userMax!==this.old?.userMax||this.alignToOthers()?(t&&e===`yAxis`&&t.buildStacks(),this.forceRedraw=!1,this.userMinRange||(this.minRange=void 0),this.getSeriesExtremes(),this.setTickInterval(),t&&e===`xAxis`&&t.buildStacks(),this.isDirty||=i||this.min!==this.old?.min||this.max!==this.old?.max):t&&t.cleanStacks(),n&&delete this.allExtremes,H(this,`afterSetScale`)}setExtremes(e,t,n=!0,r,i){let a=this.chart;this.series.forEach(e=>{delete e.kdTree}),e=a.time.parse(e),t=a.time.parse(t),H(this,`setExtremes`,i=_i(i,{min:e,max:t}),e=>{this.userMin=e.min,this.userMax=e.max,this.eventArgs=e,n&&a.redraw(r)})}setAxisSize(){let e=this.chart,t=this.options,n=t.offsets||[0,0,0,0],r=this.horiz,i=this.width=Math.round(Ti(W(t.width,e.plotWidth-n[3]+n[1]),e.plotWidth)),a=this.height=Math.round(Ti(W(t.height,e.plotHeight-n[0]+n[2]),e.plotHeight)),o=this.top=Math.round(Ti(W(t.top,e.plotTop+n[0]),e.plotHeight,e.plotTop)),s=this.left=Math.round(Ti(W(t.left,e.plotLeft+n[3]),e.plotWidth,e.plotLeft));this.bottom=e.chartHeight-a-o,this.right=e.chartWidth-i-s,this.len=Math.max(r?i:a,0),this.pos=r?s:o}getExtremes(){let e=this.logarithmic;return{min:e?B(e.lin2log(this.min)):this.min,max:e?B(e.lin2log(this.max)):this.max,dataMin:this.dataMin,dataMax:this.dataMax,userMin:this.userMin,userMax:this.userMax}}getThreshold(e){let t=this.logarithmic,n=t?t.lin2log(this.min):this.min,r=t?t.lin2log(this.max):this.max;return e===null||e===-1/0?e=n:e===1/0?e=r:n>e?e=n:r15&&t<165?e.align=`right`:t>195&&t<345&&(e.align=`left`)}),n.align}tickSize(e){let t=this.options,n=W(t[e===`tick`?`tickWidth`:`minorTickWidth`],e===`tick`&&this.isXAxis&&!this.categories?1:0),r=t[e===`tick`?`tickLength`:`minorTickLength`],i;n&&r&&(t[e+`Position`]===`inside`&&(r=-r),i=[r,n]);let a={tickSize:i};return H(this,`afterTickSize`,a),a.tickSize}labelMetrics(){let e=this.chart.renderer,t=this.ticks,n=t[Object.keys(t)[0]]||{};return this.chart.renderer.fontMetrics(n.label||n.movedLabel||e.box)}unsquish(){let e=this.options.labels,t=e.padding||0,n=this.horiz,r=this.tickInterval,i=this.len/((+!!this.categories+this.max-this.min)/r),a=e.rotation,o=B(.8*this.labelMetrics().h),s=Math.max(this.max-this.min,0),c=function(e){let n=(e+2*t)/(i||1);return(n=n>1?Math.ceil(n):1)*r>s&&e!==1/0&&i!==1/0&&s&&(n=Math.ceil(s/r)),B(n*r)},l=r,u,d=Number.MAX_VALUE,f;if(n){if(!e.staggerLines&&(U(a)?f=[a]:i=-90&&n<=90)&&(t=(e=c(Math.abs(o/Math.sin(ui*n))))+Math.abs(n/360))m&&(m=n)}),this.maxLabelLength=m,this.autoRotation?m>c&&m>u.h?l.rotation=this.labelRotation:this.labelRotation=0:s&&(f=c),l.rotation&&(f=m>.5*e.chartHeight?.33*e.chartHeight:m,d||(p=1)),this.labelAlign=i.align||this.autoLabelAlign(this.labelRotation),this.labelAlign&&(l.align=this.labelAlign),n.forEach(function(e){let t=r[e],n=t?.label,i=a.width,o={};n&&(n.attr(l),t.shortenLabel?t.shortenLabel():f&&!i&&a.whiteSpace!==`nowrap`&&(f<(n.textPxLength||0)||n.element.tagName===`SPAN`)?n.css(_i(o,{width:`${f}px`,lineClamp:p})):!n.styles.width||o.width||i||n.css({width:`auto`}),t.rotation=l.rotation)},this),this.tickRotCorr=t.rotCorr(u.b,this.labelRotation||0,this.side!==0)}hasData(){return this.series.some(function(e){return e.hasData()})||this.options.showEmpty&&V(this.min)&&V(this.max)}addTitle(e){let t,n=this.chart.renderer,r=this.horiz,i=this.opposite,a=this.options.title,o=this.chart.styledMode;this.axisTitle||((t=a.textAlign)||(t=(r?{low:`left`,middle:`center`,high:`right`}:{low:i?`right`:`left`,middle:`center`,high:i?`left`:`right`})[a.align]),this.axisTitle=n.text(a.text||``,0,0,a.useHTML).attr({zIndex:7,rotation:a.rotation||0,align:t}).addClass(`highcharts-axis-title`),o||this.axisTitle.css(Si(a.style)),this.axisTitle.add(this.axisGroup),this.axisTitle.isNew=!0),o||a.style.width||this.isRadial||this.axisTitle.css({width:this.len+`px`}),this.axisTitle[e?`show`:`hide`](e)}generateTick(e){let t=this.ticks;t[e]?t[e].addLabel():t[e]=new ii(this,e)}createGroups(){let{axisParent:e,chart:t,coll:n,options:r}=this,i=t.renderer,a=(t,a,o)=>i.g(t).attr({zIndex:o}).addClass(`highcharts-${n.toLowerCase()}${a} `+(this.isRadial?`highcharts-radial-axis${a} `:``)+(r.className||``)).add(e);this.axisGroup||(this.gridGroup=a(`grid`,`-grid`,r.gridZIndex),this.axisGroup=a(`axis`,``,r.zIndex),this.labelGroup=a(`axis-labels`,`-labels`,r.labels.zIndex))}getOffset(){let e=this,{chart:t,horiz:n,options:r,side:i,ticks:a,tickPositions:o,coll:s}=e,c=t.inverted&&!e.isZAxis?[1,0,3,2][i]:i,l=e.hasData(),u=r.title,d=r.labels,f=U(r.crossing),p=t.axisOffset,m=t.clipOffset,h=[-1,1,1,-1][i],g,_=0,v,y=0,b=0,x,S;if(e.showAxis=g=l||r.showEmpty,e.staggerLines=e.horiz&&d.staggerLines||void 0,e.createGroups(),l||e.isLinked?(o.forEach(function(t){e.generateTick(t)}),e.renderUnsquish(),e.reserveSpaceDefault=i===0||i===2||{1:`left`,3:`right`}[i]===e.labelAlign,W(d.reserveSpace,!f&&null,e.labelAlign===`center`||null,e.reserveSpaceDefault)&&o.forEach(function(e){b=Math.max(a[e].getLabelSize(),b)}),e.staggerLines&&(b*=e.staggerLines),e.labelOffset=b*(e.opposite?-1:1)):wi(a,function(e,t){e.destroy(),delete a[t]}),u?.text&&!1!==u.enabled&&(e.addTitle(g),g&&!f&&!1!==u.reserveSpace&&(e.titleOffset=_=e.axisTitle.getBBox()[n?`height`:`width`],y=V(v=u.offset)?0:W(u.margin,n?5:10))),e.renderLine(),e.offset=h*W(r.offset,p[i]?p[i]+(r.margin||0):0),e.tickRotCorr=e.tickRotCorr||{x:0,y:0},S=i===0?-e.labelMetrics().h:i===2?e.tickRotCorr.y:0,x=Math.abs(b)+y,b&&(x-=S,x+=h*(n?W(d.y,e.tickRotCorr.y+h*d.distance):W(d.x,h*d.distance))),e.axisTitleMargin=W(v,x),e.getMaxLabelDimensions&&(e.maxLabelDimensions=e.getMaxLabelDimensions(a,o)),s!==`colorAxis`&&m){let t=this.tickSize(`tick`);p[i]=Math.max(p[i],(e.axisTitleMargin||0)+_+h*e.offset,x,o?.length&&t?t[0]+h*e.offset:0);let n=!e.axisLine||r.offset?0:e.axisLine.strokeWidth()/2;m[c]=Math.max(m[c],n)}H(this,`afterGetOffset`)}getLinePath(e){let t=this.chart,n=this.opposite,r=this.offset,i=this.horiz,a=this.left+(n?this.width:0)+r,o=t.chartHeight-this.bottom-(n?this.height:0)+r;return n&&(e*=-1),t.renderer.crispLine([[`M`,i?this.left:a,i?o:this.top],[`L`,i?t.chartWidth-this.right:a,i?o:t.chartHeight-this.bottom]],e)}renderLine(){!this.axisLine&&(this.axisLine=this.chart.renderer.path().addClass(`highcharts-axis-line`).add(this.axisGroup),this.chart.styledMode||this.axisLine.attr({stroke:this.options.lineColor,"stroke-width":this.options.lineWidth,zIndex:7}))}getTitlePosition(e){let t=this.horiz,n=this.left,r=this.top,i=this.len,a=this.options.title,o=t?n:r,s=this.opposite,c=this.offset,l=a.x,u=a.y,d=this.chart.renderer.fontMetrics(e),f=e?Math.max(e.getBBox(!1,0).height-d.h-1,0):0,p={low:o+(t?0:i),middle:o+i/2,high:o+(t?i:0)}[a.align],m=(t?r+this.height:n)+(t?1:-1)*(s?-1:1)*(this.axisTitleMargin||0)+[-f,f,d.f,-f][this.side],h={x:t?p+l:m+(s?this.width:0)+c+l,y:t?m+u-(s?this.height:0)+c:p+u};return H(this,`afterGetTitlePosition`,{titlePosition:h}),h}renderMinorTick(e,t){let n=this.minorTicks;n[e]||(n[e]=new ii(this,e,`minor`)),t&&n[e].isNew&&n[e].render(null,!0),n[e].render(null,!1,1)}renderTick(e,t,n){let r=this.isLinked,i=this.ticks;(!r||e>=this.min&&e<=this.max||this.grid?.isColumn)&&(i[e]||(i[e]=new ii(this,e)),n&&i[e].isNew&&i[e].render(t,!0,-1),i[e].render(t))}render(){let e,t,n=this,r=n.chart,i=n.logarithmic,a=r.renderer,o=n.options,s=n.isLinked,c=n.tickPositions,l=n.axisTitle,u=n.ticks,d=n.minorTicks,f=n.alternateBands,p=o.stackLabels,m=o.alternateGridColor,h=o.crossing,g=n.tickmarkOffset,_=n.axisLine,v=n.showAxis,y=ai(a.globalAnimation);if(n.labelEdge.length=0,n.overlap=!1,[u,d,f].forEach(function(e){wi(e,function(e){e.isActive=!1})}),U(h)){let e=this.isXAxis?r.yAxis[0]:r.xAxis[0],t=[1,-1,-1,1][this.side];if(e){let r=e.toPixels(h,!0);n.horiz&&(r=e.len-r),n.offset=t*r}}if(n.hasData()||s){let a=n.chart.hasRendered&&n.old&&U(n.old.min);n.minorTickInterval&&!n.categories&&n.getMinorTickPositions().forEach(function(e){n.renderMinorTick(e,a)}),c.length&&(c.forEach(function(e,t){n.renderTick(e,t,a)}),g&&(n.min===0||n.single)&&(u[-1]||=new ii(n,-1,null,!0),u[-1].render(-1))),m&&c.forEach(function(a,o){t=c[o+1]===void 0?n.max-g:c[o+1]+g,o%2==0&&a=.5)e=Math.round(e),s=i.getLinearTickPositions(e,t,n);else if(e>=.08){let i,a,o,c,l,u,d,f=Math.floor(t);for(i=e>.3?[1,2,4]:e>.15?[1,2,4,6,8]:[1,2,3,4,5,6,7,8,9],a=f;at&&(!r||u<=n)&&u!==void 0&&s.push(u),u>n&&(d=!0),u=l}else{let c=this.lin2log(t),l=this.lin2log(n),u=r?i.getMinorTickInterval():o.tickInterval,d=o.tickPixelInterval/(r?5:1),f=r?a/i.tickPositions.length:a;e=Li(e=Ri(u===`auto`?null:u,this.minorAutoInterval,(l-c)*d/(f||1))),s=i.getLinearTickPositions(e,c,l).map(this.log2lin),r||(this.minorAutoInterval=e/5)}return r||(i.tickInterval=e),s}lin2log(e){return 10**e}log2lin(e){return Math.log(e)/Math.LN10}}e.Additions=r})(c||={});let zi=c,{erase:Bi,extend:Vi,isNumber:Hi}=M;(function(e){let t;function n(e){return this.addPlotBandOrLine(e,`plotBands`)}function r(e,n){let r=this.userOptions,i=new t(this,e);if(this.visible&&(i=i.render()),i){if(this._addedPlotLB||(this._addedPlotLB=!0,(r.plotLines||[]).concat(r.plotBands||[]).forEach(e=>{this.addPlotBandOrLine(e)})),n){let t=r[n]||[];t.push(e),r[n]=t}this.plotLinesAndBands.push(i)}return i}function i(e){return this.addPlotBandOrLine(e,`plotLines`)}function a(e,t,n){n||=this.options;let r=this.getPlotLinePath({value:t,force:!0,acrossPanes:n.acrossPanes}),i=[],a=this.horiz,o=!Hi(this.min)||!Hi(this.max)||ethis.max&&t>this.max,s=this.getPlotLinePath({value:e,force:!0,acrossPanes:n.acrossPanes}),c,l=1,u;if(s&&r)for(o&&(u=s.toString()===r.toString(),l=0),c=0;c{let e=[];for(let t of this.axes)for(let{label:n,options:r}of t.plotLinesAndBands)n&&!r?.label?.allowOverlap&&e.push(n);return e})}),Ui.compose(ea,t)}constructor(e,t){this.axis=e,this.options=t,this.id=t.id}render(){Xi(this,`render`);let{axis:e,options:t}=this,{horiz:n,logarithmic:r}=e,{color:i,events:a,zIndex:o=0}=t,{renderer:s,time:c}=e.chart,l={},u=c.parse(t.to),d=c.parse(t.from),f=c.parse(t.value),p=t.borderWidth,m=t.label,{label:h,svgElem:g}=this,_=[],v,y=qi(d)&&qi(u),b=qi(f),x=!g,S={class:`highcharts-plot-`+(y?`band `:`line `)+(t.className||``)},C=y?`bands`:`lines`;if(!e.chart.styledMode&&(b?(S.stroke=i||`#999999`,S[`stroke-width`]=$i(t.width,1),t.dashStyle&&(S.dashstyle=t.dashStyle)):y&&(S.fill=i||`#e6e9ff`,p&&(S.stroke=t.borderColor,S[`stroke-width`]=p))),l.zIndex=o,C+=`-`+o,(v=e.plotLinesAndBandsGroups[C])||(e.plotLinesAndBandsGroups[C]=v=s.g(`plot-`+C).attr(l).add()),g||(this.svgElem=g=s.path().attr(S).add(v)),qi(f))_=e.getPlotLinePath({value:r?.log2lin(f)??f,lineWidth:g.strokeWidth(),acrossPanes:t.acrossPanes});else{if(!(qi(d)&&qi(u)))return;_=e.getPlotBandPath(r?.log2lin(d)??d,r?.log2lin(u)??u,t)}return!this.eventsAdded&&a&&(Qi(a,(e,t)=>{g?.on(t,e=>{a[t].apply(this,[e])})}),this.eventsAdded=!0),(x||!g.d)&&_?.length?g.attr({d:_}):g&&(_?(g.show(),g.animate({d:_})):g.d&&(g.hide(),h&&(this.label=h=h.destroy()))),m&&(qi(m.text)||qi(m.formatter))&&_?.length&&e.width>0&&e.height>0&&!_.isFlat?(m=Zi({align:n&&y?`center`:void 0,x:n?!y&&4:10,verticalAlign:!n&&y?`middle`:void 0,y:n?y?16:10:y?6:-4,rotation:n&&!y?90:0,...y?{inside:!0}:{}},m),this.renderLabel(m,_,y,o)):h&&h.hide(),this}renderLabel(e,t,n,r){let i=this.axis,a=i.chart.renderer,o=e.inside,s=this.label;s||(this.label=s=a.text(this.getLabelText(e),0,0,e.useHTML).attr({align:e.textAlign||e.align,rotation:e.rotation,class:`highcharts-plot-`+(n?`band`:`line`)+`-label `+(e.className||``),zIndex:r}),i.chart.styledMode||s.css(Zi({color:i.chart.options.title?.style?.color,fontSize:`0.8em`,textOverflow:n&&!o?``:`ellipsis`},e.style)),s.add());let c=t.xBounds||[t[0][1],t[1][1],n?t[2][1]:t[0][1]],l=t.yBounds||[t[0][2],t[1][2],n?t[2][2]:t[0][2]],u=Ki(c),d=Ki(l),f=Gi(c)-u;s.align(e,!1,{x:u,y:d,width:f,height:Gi(l)-d}),s.alignAttr.y-=a.fontMetrics(s).b,(!s.alignValue||s.alignValue===`left`||qi(o))&&s.css({width:(e.style?.width||(n&&o?f:s.rotation===90?i.height-(s.alignAttr.y-i.top):(e.clip?i.width:i.chart.chartWidth)-(s.alignAttr.x-i.left)))+`px`}),s.show(!0)}getLabelText(e){return qi(e.formatter)?e.formatter.call(this):e.text}destroy(){Yi(this.axis.plotLinesAndBands,this),delete this.axis,Ji(this)}}let{animObject:ta}=L,{format:na}=Lt,{composed:ra,dateFormats:ia,doc:aa,isSafari:oa}=S,{distribute:sa}=Ut,{addEvent:ca,clamp:la,css:ua,discardElement:da,extend:fa,fireEvent:pa,getAlignFactor:ma,isArray:ha,isNumber:ga,isObject:_a,isString:va,merge:ya,pick:ba,pushUnique:xa,splat:Sa,syncTimeout:Ca}=M;class wa{constructor(e,t,n){this.allowShared=!0,this.crosshairs=[],this.distance=0,this.isHidden=!0,this.isSticky=!1,this.options={},this.outside=!1,this.chart=e,this.init(e,t),this.pointer=n}bodyFormatter(e){return e.map(e=>{let t=e.series.tooltipOptions,n=e.formatPrefix||`point`;return(t[n+`Formatter`]||e.tooltipFormatter).call(e,t[n+`Format`]||``)})}cleanSplit(e){this.chart.series.forEach(function(t){let n=t?.tt;n&&(!n.isActive||e?t.tt=n.destroy():n.isActive=!1)})}defaultFormatter(e){let t,n=this.points||Sa(this);return(t=(t=[e.headerFooterFormatter(n[0])]).concat(e.bodyFormatter(n))).push(e.headerFooterFormatter(n[0],!0)),t}destroy(){this.label&&=this.label.destroy(),this.split&&(this.cleanSplit(!0),this.tt&&=this.tt.destroy()),this.renderer&&(this.renderer=this.renderer.destroy(),da(this.container)),M.clearTimeout(this.hideTimer)}getAnchor(e,t){let n,{chart:r,pointer:i}=this,a=r.inverted,o=r.plotTop,s=r.plotLeft;if(e=Sa(e),e[0].series?.yAxis&&!e[0].series.yAxis.options.reversedStacks&&(e=e.slice().reverse()),this.followPointer&&t)t.chartX===void 0&&(t=i.normalize(t)),n=[t.chartX-s,t.chartY-o];else if(e[0].tooltipPos)n=e[0].tooltipPos;else{let r=0,i=0;e.forEach(function(e){let t=e.pos(!0);t&&(r+=t[0],i+=t[1])}),r/=e.length,i/=e.length,this.shared&&e.length>1&&t&&(a?r=t.chartX:i=t.chartY),n=[r-s,i-o]}let c={point:e[0],ret:n};return pa(this,`getAnchor`,c),c.ret.map(Math.round)}getClassName(e,t,n){let r=this.options,i=e.series,a=i.options;return[r.className,`highcharts-label`,n&&`highcharts-tooltip-header`,t?`highcharts-tooltip-box`:`highcharts-tooltip`,!n&&`highcharts-color-`+ba(e.colorIndex,i.colorIndex),a?.className].filter(va).join(` `)}getLabel({anchorX:e,anchorY:t}={anchorX:0,anchorY:0}){let n=this,r=this.chart.styledMode,i=this.options,a=this.split&&this.allowShared,o=this.container,s=this.chart.renderer;if(this.label){let e=!this.label.hasClass(`highcharts-label`);(!a&&e||a&&!e)&&this.destroy()}if(!this.label){if(this.outside){let e=this.chart,t=e.options.chart.style,n=Rt.getRendererType();this.container=o=S.doc.createElement(`div`),o.className=`highcharts-tooltip-container `+(e.renderTo.className.match(/(highcharts[a-zA-Z0-9-]+)\s?/gm)||``),ua(o,{position:`absolute`,top:`1px`,pointerEvents:`none`,zIndex:Math.max(this.options.style.zIndex||0,(t?.zIndex||0)+3)}),this.renderer=s=new n(o,0,0,t,void 0,void 0,s.styledMode)}if(a?this.label=s.g(`tooltip`):(this.label=s.label(``,e,t,i.shape||`callout`,void 0,void 0,i.useHTML,void 0,`tooltip`).attr({padding:i.padding,r:i.borderRadius}),r||this.label.attr({fill:i.backgroundColor,"stroke-width":i.borderWidth||0}).css(i.style).css({pointerEvents:i.style.pointerEvents||(this.shouldStickOnContact()?`auto`:`none`)})),n.outside){let e=this.label;[e.xSetter,e.ySetter].forEach((t,r)=>{e[r?`ySetter`:`xSetter`]=i=>{t.call(e,n.distance),e[r?`y`:`x`]=i,o&&(o.style[r?`top`:`left`]=`${i}px`)}})}this.label.attr({zIndex:8}).shadow(i.shadow??!i.fixed).add()}return o&&!o.parentElement&&S.doc.body.appendChild(o),this.label}getPlayingField(){let{body:e,documentElement:t}=aa,{chart:n,distance:r,outside:i}=this;return{width:i?Math.max(e.scrollWidth,t.scrollWidth,e.offsetWidth,t.offsetWidth,t.clientWidth)-2*r-2:n.chartWidth,height:i?Math.max(e.scrollHeight,t.scrollHeight,e.offsetHeight,t.offsetHeight,t.clientHeight):n.chartHeight}}getPosition(e,t,n){let{distance:r,chart:i,outside:a,pointer:o}=this,{inverted:s,plotLeft:c,plotTop:l,polar:u}=i,{plotX:d=0,plotY:f=0}=n,p={},m=s&&n.h||0,{height:h,width:g}=this.getPlayingField(),_=o.getChartPosition(),v=e=>e*_.scaleX,y=e=>e*_.scaleY,b=n=>{let o=n===`x`;return[n,o?g:h,o?e:t].concat(a?[o?v(e):y(t),o?_.left-r+v(d+c):_.top-r+y(f+l),0,o?g:h]:[o?e:t,o?d+c:f+l,o?c:l,o?c+i.plotWidth:l+i.plotHeight])},x=b(`y`),S=b(`x`),C,w=!!n.negative;!u&&i.hoverSeries?.yAxis?.reversed&&(w=!w);let T=!this.followPointer&&ba(n.ttBelow,!u&&!s===w),E=function(e,t,n,i,o,s,c){let l=a?e===`y`?y(r):v(r):r,u=(n-i)/2,d=it?g:g+m)}},D=function(e,t,n,i,a){if(at-r)return!1;at-i/2?p[e]=t-i-2:p[e]=a-n/2},O=function(e){[x,S]=[S,x],C=e},k=()=>{!1===E.apply(0,x)?C?p.x=p.y=0:(O(!0),k()):!1!==D.apply(0,S)||C||(O(!0),k())};return(s&&!u||this.len>1)&&O(),k(),p}getFixedPosition(e,t,n){let r=n.series,{chart:i,options:a,split:o}=this,s=a.position,c=s.relativeTo,l=a.shared||r?.yAxis?.isRadial&&(c===`pane`||!c)?`plotBox`:c,u=l===`chart`?i.renderer:i[l]||i.getClipBox(r,!0);return{x:u.x+(u.width-e)*ma(s.align)+s.x,y:u.y+(u.height-t)*ma(s.verticalAlign)+(!o&&s.y||0)}}hide(e){let t=this;M.clearTimeout(this.hideTimer),e=ba(e,this.options.hideDelay),this.isHidden||(this.hideTimer=Ca(function(){let n=t.getLabel();t.getLabel().animate({opacity:0},{duration:e&&150,complete:()=>{n.hide(),t.container&&t.container.remove()}}),t.isHidden=!0},e))}init(e,t){this.chart=e,this.options=t,this.crosshairs=[],this.isHidden=!0,this.split=t.split&&!e.inverted&&!e.polar,this.shared=t.shared||this.split,this.outside=ba(t.outside,!!(e.scrollablePixelsX||e.scrollablePixelsY))}shouldStickOnContact(e){return!!(!this.followPointer&&this.options.stickOnContact&&(!e||this.pointer.inClass(e.target,`highcharts-tooltip`)))}move(e,t,n,r){let{followPointer:i,options:a}=this,o=ta(!i&&!this.isHidden&&!a.fixed&&a.animation),s=i||(this.len||0)>1,c={x:e,y:t};s?c.anchorX=c.anchorY=NaN:(c.anchorX=n,c.anchorY=r),o.step=()=>this.drawTracker(),this.getLabel().animate(c,o)}refresh(e,t){let{chart:n,options:r,pointer:i,shared:a}=this,o=Sa(e),s=o[0],c=r.format,l=r.formatter||this.defaultFormatter,u=n.styledMode,d=this.allowShared;if(!r.enabled||!s.series)return;M.clearTimeout(this.hideTimer),this.allowShared=!(!ha(e)&&e.series&&e.series.noSharedTooltip),d&&=!this.allowShared,this.followPointer=!this.split&&s.series.tooltipOptions.followPointer;let f=this.getAnchor(e,t),p=f[0],m=f[1];a&&this.allowShared&&(i.applyInactiveState(o),o.forEach(e=>e.setState(`hover`)),s.points=o),this.len=o.length;let h=va(c)?na(c,s,n):l.call(s,this);s.points=void 0;let g=s.series;if(this.distance=ba(g.tooltipOptions.distance,16),!1===h)this.hide();else{if(this.split&&this.allowShared)this.renderSplit(h,o);else{let e=p,a=m;if(t&&i.isDirectTouch&&(e=t.chartX-n.plotLeft,a=t.chartY-n.plotTop),!(n.polar||!1===g.options.clip||o.some(t=>i.isDirectTouch||t.series.shouldShowTooltip(e,a))))return void this.hide();{let e=this.getLabel(d&&this.tt||{});(!r.style.width||u)&&e.css({width:(this.outside?this.getPlayingField():n.spacingBox).width+`px`}),e.attr({class:this.getClassName(s),text:h&&h.join?h.join(``):h}),this.outside&&e.attr({x:la(e.x||0,0,this.getPlayingField().width-(e.width||0)-1)}),u||e.attr({stroke:r.borderColor||s.color||g.color||`#666666`}),this.updatePosition({plotX:p,plotY:m,negative:s.negative,ttBelow:s.ttBelow,series:g,h:f[2]||0})}}this.isHidden&&this.label&&this.label.attr({opacity:1}).show(),this.isHidden=!1}pa(this,`refresh`)}renderSplit(e,t){let n=this,{chart:r,chart:{chartWidth:i,chartHeight:a,plotHeight:o,plotLeft:s,plotTop:c,scrollablePixelsY:l=0,scrollablePixelsX:u,styledMode:d},distance:f,options:p,options:{fixed:m,position:h,positioner:g},pointer:_}=n,{scrollLeft:v=0,scrollTop:y=0}=r.scrollablePlotArea?.scrollingContainer||{},b=n.outside&&typeof u!=`number`?aa.documentElement.getBoundingClientRect():{left:v,right:v+i,top:y,bottom:y+a},x=n.getLabel(),S=this.renderer||r.renderer,C=!!r.xAxis[0]?.opposite,{left:w,top:T}=_.getChartPosition(),E=g||m,D=c+y,O=0,k=o-l,A=function(e,t,r,i=[0,0],a=!0){let o,s;if(r.isHeader)s=C?0:k,o=la(i[0]-e/2,b.left,b.right-e-(n.outside?w:0));else if(m&&r){let i=n.getFixedPosition(e,t,r);o=i.x,s=i.y-D}else s=i[1]-D,o=la(o=a?i[0]-e-f:i[0]+f,a?o:b.left,b.right);return{x:o,y:s}};va(e)&&(e=[!1,e]);let ee=e.slice(0,t.length+1).reduce(function(e,r,i){if(!1!==r&&r!==``){let a=t[i-1]||{isHeader:!0,plotX:t[0].plotX,plotY:o,series:{}},l=a.isHeader,u=l?n:a.series,h=u.tt=function(e,t,r){let i=e,{isHeader:a,series:o}=t,s=o.tooltipOptions||p;if(!i){let e={padding:s.padding,r:s.borderRadius};d||(e.fill=s.backgroundColor,e[`stroke-width`]=s.borderWidth??(m&&!a?0:1)),i=S.label(``,0,0,s[a?`headerShape`:`shape`]||(m&&!a?`rect`:`callout`),void 0,void 0,s.useHTML).addClass(n.getClassName(t,!0,a)).attr(e).add(x)}return i.isActive=!0,i.attr({text:r}),d||i.css(s.style).attr({stroke:s.borderColor||t.color||o.color||`#333333`}),i}(u.tt,a,r.toString()),_=h.getBBox(),v=_.width+h.strokeWidth();l&&(O=_.height,k+=O,C&&(D-=O));let{anchorX:y,anchorY:w}=function(e){let t,n,{isHeader:r,plotX:i=0,plotY:a=0,series:l}=e;if(r)t=Math.max(s+i,s),n=c+o/2;else{let{xAxis:e,yAxis:r}=l;t=e.pos+la(i,-f,e.len+f),l.shouldShowTooltip(0,r.pos-c+a,{ignoreX:!0})&&(n=r.pos+a)}return{anchorX:t=la(t,b.left-f,b.right+f),anchorY:n}}(a);if(typeof w==`number`){let t=_.height+1,r=(g||A).call(n,v,t,a,[y,w]);e.push({align:E?0:void 0,anchorX:y,anchorY:w,boxWidth:v,point:a,rank:ba(r.rank,+!!l),size:t,target:r.y,tt:h,x:r.x})}else h.isActive=!1}return e},[]);!E&&ee.some(e=>{let{outside:t}=n,r=(t?w:0)+e.anchorX;return rr})&&(ee=ee.map(e=>{let{x:t,y:n}=A.call(this,e.boxWidth,e.size,e.point,[e.anchorX,e.anchorY],!1);return fa(e,{target:n,x:t})})),n.cleanSplit(),sa(ee,k);let j={left:w,right:w};ee.forEach(function(e){let{x:t,boxWidth:r,isHeader:i}=e;!i&&(n.outside&&w+tj.right&&(j.right=w+t))}),ee.forEach(function(e){let{x:t,anchorX:r,anchorY:i,pos:a,point:{isHeader:o}}=e,s={visibility:a===void 0?`hidden`:`inherit`,x:t,y:(a||0)+D+(m&&h.y||0),anchorX:r,anchorY:i};if(n.outside&&t0&&(o||(s.x=t+e,s.anchorX=r+e),o&&(s.x=(j.right-j.left)/2,s.anchorX=r+e))}e.tt.attr(s)});let{container:te,outside:ne,renderer:re}=n;if(ne&&te&&re){let{width:e,height:t,x:n,y:r}=x.getBBox();re.setSize(e+n,t+r,!1),te.style.left=j.left+`px`,te.style.top=T+`px`}oa&&x.attr({opacity:x.opacity===1?.999:1})}drawTracker(){if(!this.shouldStickOnContact()){this.tracker&&=this.tracker.destroy();return}let e=this.chart,t=this.label,n=this.shared?e.hoverPoints:e.hoverPoint;if(!t||!n)return;let r={x:0,y:0,width:0,height:0},i=this.getAnchor(n),a=t.getBBox();i[0]+=e.plotLeft-(t.translateX||0),i[1]+=e.plotTop-(t.translateY||0),r.x=Math.min(0,i[0]),r.y=Math.min(0,i[1]),r.width=i[0]<0?Math.max(Math.abs(i[0]),a.width-i[0]):Math.max(Math.abs(i[0]),a.width),r.height=i[1]<0?Math.max(Math.abs(i[1]),a.height-Math.abs(i[1])):Math.max(Math.abs(i[1]),a.height),this.tracker?this.tracker.attr(r):(this.tracker=t.renderer.rect(r).addClass(`highcharts-tracker`).add(t),e.styledMode||this.tracker.attr({fill:`rgba(0,0,0,0)`}))}styledModeFormat(e){return e.replace(`style="font-size: 0.8em"`,`class="highcharts-header"`).replace(/style="color:{(point|series)\.color}"/g,`class="highcharts-color-{$1.colorIndex} {series.options.className} {point.options.className}"`)}headerFooterFormatter(e,t){let n=e.series,r=n.tooltipOptions,i=n.xAxis?.dateTime,a={isFooter:t,point:e},o=r.xDateFormat||``,s=r[t?`footerFormat`:`headerFormat`];return pa(this,`headerFormatter`,a,function(t){if(i&&!o&&ga(e.key)&&(o=i.getXDateFormat(e.key,r.dateTimeLabelFormats)),i&&o){if(_a(o)){let e=o;ia[0]=t=>n.chart.time.dateFormat(e,t),o=`%0`}(e.tooltipDateKeys||[`key`]).forEach(e=>{s=s.replace(RegExp(`point\\.`+e+`([ \\)}])`),`(point.${e}:${o})$1`)})}n.chart.styledMode&&(s=this.styledModeFormat(s)),t.text=na(s,e,this.chart)}),a.text||``}update(e){this.destroy(),this.init(this.chart,ya(!0,this.options,e))}updatePosition(e){let{chart:t,container:n,distance:r,options:i,pointer:a,renderer:o}=this,{height:s=0,width:c=0}=this.getLabel(),{fixed:l,positioner:u}=i,{left:d,top:f,scaleX:p,scaleY:m}=a.getChartPosition(),h=(u||l&&this.getFixedPosition||this.getPosition).call(this,c,s,e),g=S.doc,_=(e.plotX||0)+t.plotLeft,v=(e.plotY||0)+t.plotTop,y;if(o&&n){if(u||l){let{scrollLeft:e=0,scrollTop:n=0}=t.scrollablePlotArea?.scrollingContainer||{};h.x+=e+d-r,h.y+=n+f-r}y=(i.borderWidth||0)+2*r+2,o.setSize(la(c+y,0,g.documentElement.clientWidth)-1,s+y,!1),(p!==1||m!==1)&&(ua(n,{transform:`scale(${p}, ${m})`}),_*=p,v*=m),_+=d-h.x,v+=f-h.y}this.move(Math.round(h.x),Math.round(h.y||0),_,v)}}(function(e){e.compose=function(t){xa(ra,`Core.Tooltip`)&&ca(t,`afterInit`,function(){let t=this.chart;t.options.tooltip&&(t.tooltip=new e(t,t.options.tooltip,this))})}})(wa||={});let Ta=wa,{animObject:Ea}=L,{defaultOptions:Da}=Be,{format:Oa}=Lt,{addEvent:ka,crisp:Aa,erase:ja,extend:Ma,fireEvent:Na,getNestedProperty:Pa,isArray:Fa,isFunction:Ia,isNumber:La,isObject:Ra,merge:za,pick:Ba,syncTimeout:Va,removeEvent:Ha,uniqueKey:Ua}=M;class Wa{animateBeforeDestroy(){let e=this,t={x:e.startXPos,opacity:0},n=e.getGraphicalProps();n.singular.forEach(function(n){e[n]=e[n].animate(n===`dataLabel`?{x:e[n].startXPos,y:e[n].startYPos,opacity:0}:t)}),n.plural.forEach(function(t){e[t].forEach(function(t){t.element&&t.animate(Ma({x:e.startXPos},t.startYPos?{x:t.startXPos,y:t.startYPos}:{}))})})}applyOptions(e,t){let n=this.series,r=n.options.pointValKey||n.pointValKey;return Ma(this,e=Wa.prototype.optionsToObject.call(this,e)),this.options=this.options?Ma(this.options,e):e,e.group&&delete this.group,e.dataLabels&&delete this.dataLabels,r&&(this.y=Wa.prototype.getNestedProperty.call(this,r)),this.selected&&(this.state=`select`),`name`in this&&t===void 0&&n.xAxis&&n.xAxis.hasNames&&(this.x=n.xAxis.nameToX(this)),this.x===void 0&&n?this.x=t??n.autoIncrement():La(e.x)&&n.options.relativeXValue?this.x=n.autoIncrement(e.x):typeof this.x==`string`&&(t??=n.chart.time.parse(this.x),La(t)&&(this.x=t)),this.isNull=this.isValid&&!this.isValid(),this.formatPrefix=this.isNull?`null`:`point`,this}destroy(){if(!this.destroyed){let e=this,t=e.series,n=t.chart,r=t.options.dataSorting,i=n.hoverPoints,a=Ea(e.series.chart.renderer.globalAnimation),o=()=>{for(let t in(e.graphic||e.graphics||e.dataLabel||e.dataLabels)&&(Ha(e),e.destroyElements()),e)delete e[t]};e.legendItem&&n.legend.destroyItem(e),i&&(e.setState(),ja(i,e),i.length||(n.hoverPoints=null)),e===n.hoverPoint&&e.onMouseOut(),r?.enabled?(this.animateBeforeDestroy(),Va(o,a.duration)):o(),n.pointCount--}this.destroyed=!0}destroyElements(e){let t=this,n=t.getGraphicalProps(e);n.singular.forEach(function(e){t[e]=t[e].destroy()}),n.plural.forEach(function(e){t[e].forEach(function(e){e?.element&&e.destroy()}),delete t[e]})}firePointEvent(e,t,n){let r=this,i=this.series.options;r.manageEvent(e),e===`click`&&i.allowPointSelect&&(n=function(e){!r.destroyed&&r.select&&r.select(null,e.ctrlKey||e.metaKey||e.shiftKey)}),Na(r,e,t,n)}getClassName(){return`highcharts-point`+(this.selected?` highcharts-point-select`:``)+(this.negative?` highcharts-negative`:``)+(this.isNull?` highcharts-null-point`:``)+(this.colorIndex===void 0?``:` highcharts-color-`+this.colorIndex)+(this.options.className?` `+this.options.className:``)+(this.zone?.className?` `+this.zone.className.replace(`highcharts-negative`,``):``)}getGraphicalProps(e){let t,n,r=this,i=[],a={singular:[],plural:[]};for((e||={graphic:1,dataLabel:1}).graphic&&i.push(`graphic`,`connector`),e.dataLabel&&i.push(`dataLabel`,`dataLabelPath`,`dataLabelUpper`),n=i.length;n--;)r[t=i[n]]&&a.singular.push(t);return[`graphic`,`dataLabel`].forEach(function(t){let n=t+`s`;e[t]&&r[n]&&a.plural.push(n)}),a}getNestedProperty(e){if(e)return e.indexOf(`custom.`)===0?Pa(e,this.options):this[e]}getZone(){let e=this.series,t=e.zones,n=e.zoneAxis||`y`,r,i=0;for(r=t[0];this[n]>=r.value;)r=t[++i];return this.nonZonedColor||=this.color,r?.color&&!this.options.color?this.color=r.color:this.color=this.nonZonedColor,r}hasNewShapeType(){return(this.graphic&&(this.graphic.symbolName||this.graphic.element.nodeName))!==this.shapeType}constructor(e,t,n){this.formatPrefix=`point`,this.visible=!0,this.point=this,this.series=e,this.applyOptions(t,n),this.id??=Ua(),this.resolveColor(),this.dataLabelOnNull??=e.options.nullInteraction,e.chart.pointCount++,Na(this,`afterInit`)}isValid(){return(La(this.x)||this.x instanceof Date)&&La(this.y)}optionsToObject(e){let t=this.series,n=t.options.keys,r=n||t.pointArrayMap||[`y`],i=r.length,a={},o,s=0,c=0;if(La(e)||e===null)a[r[0]]=e;else if(Fa(e))for(!n&&e.length>i&&((o=typeof e[0])==`string`?t.xAxis?.dateTime?a.x=t.chart.time.parse(e[0]):a.name=e[0]:o===`number`&&(a.x=e[0]),s++);c0?Wa.prototype.setNestedProperty(a,e[s],r[c]):a[r[c]]=e[s]),s++,c++;else typeof e==`object`&&(a=e,e.dataLabels&&(t.hasDataLabels=()=>!0),e.marker&&(t._hasPointMarkers=!0));return a}pos(e,t=this.plotY){if(!this.destroyed){let{plotX:n,series:r}=this,{chart:i,xAxis:a,yAxis:o}=r,s=0,c=0;if(La(n)&&La(t))return e&&(s=a?a.pos:i.plotLeft,c=o?o.pos:i.plotTop),i.inverted&&a&&o?[o.len-t+c,a.len-n+s]:[n+s,t+c]}}resolveColor(){let e=this.series,t=e.chart.options.chart,n=e.chart.styledMode,r,i,a=t.colorCount,o;delete this.nonZonedColor,e.options.colorByPoint?(n||(r=(i=e.options.colors||e.chart.options.colors)[e.colorCounter],a=i.length),o=e.colorCounter,e.colorCounter++,e.colorCounter===a&&(e.colorCounter=0)):(n||(r=e.color),o=e.colorIndex),this.colorIndex=Ba(this.options.colorIndex,o),this.color=Ba(this.options.color,r)}setNestedProperty(e,t,n){return n.split(`.`).reduce(function(e,n,r,i){return e[n]=i.length-1===r?t:Ra(e[n],!0)?e[n]:{},e[n]},e),e}shouldDraw(){return!this.isNull}tooltipFormatter(e){let{chart:t,pointArrayMap:n=[`y`],tooltipOptions:r}=this.series,{valueDecimals:i=``,valuePrefix:a=``,valueSuffix:o=``}=r;return t.styledMode&&(e=t.tooltip?.styledModeFormat(e)||e),n.forEach(t=>{t=`{point.`+t,(a||o)&&(e=e.replace(RegExp(t+`}`,`g`),a+t+`}`+o)),e=e.replace(RegExp(t+`}`,`g`),t+`:,.`+i+`f}`)}),Oa(e,this,t)}update(e,t,n,r){let i,a=this,o=a.series,s=a.graphic,c=o.chart,l=o.options;function u(){a.applyOptions(e);let r=s&&a.hasMockGraphic,u=a.y===null?!r:r;s&&u&&(a.graphic=s.destroy(),delete a.hasMockGraphic),Ra(e,!0)&&(s?.element&&e&&e.marker&&e.marker.symbol!==void 0&&(a.graphic=s.destroy()),e?.dataLabels&&a.dataLabel&&(a.dataLabel=a.dataLabel.destroy())),i=a.index;let d={};for(let e of o.dataColumnKeys())d[e]=a[e];o.dataTable.setRow(d,i),l.data[i]=Ra(l.data[i],!0)||Ra(e,!0)?a.options:Ba(e,l.data[i]),o.isDirty=o.isDirtyData=!0,!o.fixedBox&&o.hasCartesianSeries&&(c.isDirtyBox=!0),l.legendType===`point`&&(c.isDirtyLegend=!0),t&&c.redraw(n)}t=Ba(t,!0),!1===r?u():a.firePointEvent(`update`,{options:e},u)}remove(e,t){this.series.removePoint(this.series.data.indexOf(this),e,t)}select(e,t){let n=this,r=n.series,i=r.chart;e=Ba(e,!n.selected),this.selectedStaging=e,n.firePointEvent(e?`select`:`unselect`,{accumulate:t},function(){n.selected=n.options.selected=e,r.options.data[r.data.indexOf(n)]=n.options,n.setState(e&&`select`),t||i.getSelectedPoints().forEach(function(e){let t=e.series;e.selected&&e!==n&&(e.selected=e.options.selected=!1,t.options.data[t.data.indexOf(e)]=e.options,e.setState(i.hoverPoints&&t.options.inactiveOtherPoints?`inactive`:``),e.firePointEvent(`unselect`))})}),delete this.selectedStaging}onMouseOver(e){let{inverted:t,pointer:n}=this.series.chart;n&&(e=e?n.normalize(e):n.getChartCoordinatesFromPoint(this,t),n.runPointActions(e,this))}onMouseOut(){let e=this.series.chart;this.firePointEvent(`mouseOut`),this.series.options.inactiveOtherPoints||(e.hoverPoints||[]).forEach(function(e){e.setState()}),e.hoverPoints=e.hoverPoint=null}manageEvent(e){let t=za(this.series.options.point,this.options).events?.[e];Ia(t)&&(!this.hcEvents?.[e]||this.hcEvents?.[e]?.map(e=>e.fn).indexOf(t)===-1)?(this.importedUserEvent?.(),this.importedUserEvent=ka(this,e,t),this.hcEvents&&(this.hcEvents[e].userEvent=!0)):this.importedUserEvent&&!t&&this.hcEvents?.[e]&&this.hcEvents?.[e].userEvent&&(Ha(this,e),delete this.hcEvents[e],Object.keys(this.hcEvents)||delete this.importedUserEvent)}setState(e,t){let n=this.series,r=this.state,i=n.options.states[e||`normal`]||{},a=Da.plotOptions[n.type].marker&&n.options.marker,o=a&&!1===a.enabled,s=a?.states?.[e||`normal`]||{},c=!1===s.enabled,l=this.marker||{},u=n.chart,d=a&&n.markerAttribs,f=n.halo,p,m,h,g=n.stateMarkerGraphic,_;if((e||=``)===this.state&&!t||this.selected&&e!==`select`||!1===i.enabled||e&&(c||o&&!1===s.enabled)||e&&l.states&&l.states[e]&&!1===l.states[e].enabled)return;if(this.state=e,d&&(p=n.markerAttribs(this,e)),this.graphic&&!this.hasMockGraphic){if(r&&this.graphic.removeClass(`highcharts-point-`+r),e&&this.graphic.addClass(`highcharts-point-`+e),!u.styledMode){m=n.pointAttribs(this,e),h=Ba(u.options.chart.animation,i.animation);let t=m.opacity;n.options.inactiveOtherPoints&&La(t)&&(this.dataLabels||[]).forEach(function(e){e&&!e.hasClass(`highcharts-data-label-hidden`)&&(e.animate({opacity:t},h),e.connector&&e.connector.animate({opacity:t},h))}),this.graphic.animate(m,h)}p&&this.graphic.animate(p,Ba(u.options.chart.animation,s.animation,a.animation)),g&&g.hide()}else e&&s&&(_=l.symbol||n.symbol,g&&g.currentSymbol!==_&&(g=g.destroy()),p&&(g?g[t?`animate`:`attr`]({x:p.x,y:p.y}):_&&(n.stateMarkerGraphic=g=u.renderer.symbol(_,p.x,p.y,p.width,p.height,za(a,s)).add(n.markerGroup),g.currentSymbol=_)),!u.styledMode&&g&&this.state!==`inactive`&&g.attr(n.pointAttribs(this,e))),g&&(g[e&&this.isInside?`show`:`hide`](),g.element.point=this,g.addClass(this.getClassName(),!0));let v=i.halo,y=this.graphic||g,b=y?.visibility||`inherit`;v?.size&&y&&b!==`hidden`&&!this.isCluster?(f||(n.halo=f=u.renderer.path().add(y.parentGroup)),f.show()[t?`animate`:`attr`]({d:this.haloPath(v.size)}),f.attr({class:`highcharts-halo highcharts-color-`+Ba(this.colorIndex,n.colorIndex)+(this.className?` `+this.className:``),visibility:b,zIndex:-1}),f.point=this,u.styledMode||f.attr(Ma({fill:this.color||n.color,"fill-opacity":v.opacity},R.filterUserAttributes(v.attributes||{})))):f?.point?.haloPath&&!f.point.destroyed&&f.animate({d:f.point.haloPath(0)},null,f.hide),Na(this,`afterSetState`,{state:e})}haloPath(e){let t=this.pos();return t?this.series.chart.renderer.symbols.circle(Aa(t[0],1)-e,t[1]-e,2*e,2*e):[]}}let Ga=Wa,{parse:Ka}=F,{charts:qa,composed:Ja,isTouchDevice:Ya}=S,{addEvent:Xa,attr:Za,css:Qa,extend:$a,find:eo,fireEvent:to,isNumber:no,isObject:ro,objectEach:io,offset:ao,pick:oo,pushUnique:so,splat:co}=M;class G{applyInactiveState(e=[]){let t=[];for(let n of(e.forEach(e=>{let n=e.series;t.push(n),n.linkedParent&&t.push(n.linkedParent),n.linkedSeries&&t.push.apply(t,n.linkedSeries),n.navigatorSeries&&t.push(n.navigatorSeries),n.boosted&&n.markerGroup&&t.push.apply(t,this.chart.series.filter(e=>e.markerGroup===n.markerGroup))}),this.chart.series)){let e=n.options;e.states?.inactive?.enabled!==!1&&(t.indexOf(n)===-1?n.setState(`inactive`,!0):e.inactiveOtherPoints&&n.setAllPointsToState(`inactive`))}}destroy(){let e=this;this.eventsToUnbind.forEach(e=>e()),this.eventsToUnbind=[],!S.chartCount&&(G.unbindDocumentMouseUp.forEach(e=>e.unbind()),G.unbindDocumentMouseUp.length=0,G.unbindDocumentTouchEnd&&=G.unbindDocumentTouchEnd()),clearInterval(e.tooltipTimeout),io(e,function(t,n){e[n]=void 0})}getSelectionMarkerAttrs(e,t){let n={args:{chartX:e,chartY:t},attrs:{},shapeType:`rect`};return to(this,`getSelectionMarkerAttrs`,n,n=>{let r,{chart:i,zoomHor:a,zoomVert:o}=this,{mouseDownX:s=0,mouseDownY:c=0}=i,l=n.attrs;l.x=i.plotLeft,l.y=i.plotTop,l.width=a?1:i.plotWidth,l.height=o?1:i.plotHeight,a&&(l.width=Math.max(1,Math.abs(r=e-s)),l.x=(r>0?0:r)+s),o&&(l.height=Math.max(1,Math.abs(r=t-c)),l.y=(r>0?0:r)+c)}),n}drag(e){let{chart:t}=this,{mouseDownX:n=0,mouseDownY:r=0}=t,{panning:i,panKey:a,selectionMarkerFill:o}=t.options.chart,s=t.plotLeft,c=t.plotTop,l=t.plotWidth,u=t.plotHeight,d=ro(i)?i.enabled:i,f=a&&e[`${a}Key`],p=e.chartX,m=e.chartY,h,g=this.selectionMarker;if((!g||!g.touch)&&(ps+l&&(p=s+l),mc+u&&(m=c+u),this.hasDragged=Math.sqrt((n-p)**2+(r-m)**2),this.hasDragged>10)){h=t.isInsidePlot(n-s,r-c,{visiblePlotOnly:!0});let{shapeType:a,attrs:l}=this.getSelectionMarkerAttrs(p,m);this.hasZoom&&h&&!f&&!g&&(this.selectionMarker=g=t.renderer[a](),g.attr({class:`highcharts-selection-marker`,zIndex:7}).add(),t.styledMode||g.attr({fill:o||Ka(`#334eff`).setOpacity(.25).get()})),g&&g.attr(l),h&&!g&&d&&t.pan(e,i)}}dragStart(e){let t=this.chart;t.mouseIsDown=e.type,t.cancelClick=!1,t.mouseDownX=e.chartX,t.mouseDownY=e.chartY}getSelectionBox(e){let t={args:{marker:e},result:e.getBBox()};return to(this,`getSelectionBox`,t),t.result}drop(e){let t,{chart:n,selectionMarker:r}=this;for(let e of n.axes)e.isPanning&&(e.isPanning=!1,(e.options.startOnTick||e.options.endOnTick||e.series.some(e=>e.boosted))&&(e.forceRedraw=!0,e.setExtremes(e.userMin,e.userMax,!1),t=!0));if(t&&n.redraw(),r&&e){if(this.hasDragged){let t=this.getSelectionBox(r);n.transform({axes:n.axes.filter(e=>e.zoomEnabled&&(e.coll===`xAxis`&&this.zoomX||e.coll===`yAxis`&&this.zoomY)),selection:{originalEvent:e,xAxis:[],yAxis:[],...t},from:t})}no(n.index)&&(this.selectionMarker=r.destroy())}n&&no(n.index)&&(Qa(n.container,{cursor:n._cursor}),n.cancelClick=this.hasDragged>10,n.mouseIsDown=!1,this.hasDragged=0,this.pinchDown=[],this.hasPinchMoved=!1)}findNearestKDPoint(e,t,n){let r;return e.forEach(function(e){let i=!(e.noSharedTooltip&&t)&&0>e.options.findNearestPointBy.indexOf(`y`),a=e.searchPoint(n,i);ro(a,!0)&&a.series&&(!ro(r,!0)||function(e,n){let r=e.distX-n.distX,i=e.dist-n.dist,a=n.series.group?.zIndex-e.series.group?.zIndex;return r!==0&&t?r:i===0?a===0?e.series.index>n.series.index?-1:1:a:i}(r,a)>0)&&(r=a)}),r}getChartCoordinatesFromPoint(e,t){let{xAxis:n,yAxis:r}=e.series,i=e.shapeArgs;if(n&&r){let a=e.clientX??e.plotX??0,o=e.plotY||0;return e.isNode&&i&&no(i.x)&&no(i.y)&&(a=i.x,o=i.y),t?{chartX:r.len+r.pos-o,chartY:n.len+n.pos-a}:{chartX:a+n.pos,chartY:o+r.pos}}if(i?.x&&i.y)return{chartX:i.x,chartY:i.y}}getChartPosition(){if(this.chartPosition)return this.chartPosition;let{container:e}=this.chart,t=ao(e);this.chartPosition={left:t.left,top:t.top,scaleX:1,scaleY:1};let{offsetHeight:n,offsetWidth:r}=e;return r>2&&n>2&&(this.chartPosition.scaleX=t.width/r,this.chartPosition.scaleY=t.height/n),this.chartPosition}getCoordinates(e){let t={xAxis:[],yAxis:[]};for(let n of this.chart.axes)t[n.isXAxis?`xAxis`:`yAxis`].push({axis:n,value:n.toValue(e[n.horiz?`chartX`:`chartY`])});return t}getHoverData(e,t,n,r,i,a){let o=[],s=function(e){return e.visible&&!(!i&&e.directTouch)&&oo(e.options.enableMouseTracking,!0)},c=t,l,u={chartX:a?a.chartX:void 0,chartY:a?a.chartY:void 0,shared:i};to(this,`beforeGetHoverData`,u),l=c&&!c.stickyTracking?[c]:n.filter(e=>e.stickyTracking&&(u.filter||s)(e));let d=r&&e||!a?e:this.findNearestKDPoint(l,i,a);return c=d?.series,d&&(i&&!c.noSharedTooltip?(l=n.filter(function(e){return u.filter?u.filter(e):s(e)&&!e.noSharedTooltip})).forEach(function(e){let t=e.options?.nullInteraction,n=eo(e.points,function(e){return e.x===d.x&&(!e.isNull||!!t)});ro(n)&&(e.boosted&&e.boost&&(n=e.boost.getPoint(n)),o.push(n))}):o.push(d)),to(this,`afterGetHoverData`,u={hoverPoint:d}),{hoverPoint:u.hoverPoint,hoverSeries:c,hoverPoints:o}}getPointFromEvent(e){let t=e.target,n;for(;t&&!n;)n=t.point,t=t.parentNode;return n}onTrackerMouseOut(e){let t=this.chart,n=e.relatedTarget,r=t.hoverSeries;this.isDirectTouch=!1,!r||!n||r.stickyTracking||this.inClass(n,`highcharts-tooltip`)||this.inClass(n,`highcharts-series-`+r.index)&&this.inClass(n,`highcharts-tracker`)||r.onMouseOut()}inClass(e,t){let n=e,r;for(;n;){if(r=Za(n,`class`)){if(r.indexOf(t)!==-1)return!0;if(r.indexOf(`highcharts-container`)!==-1)return!1}n=n.parentElement}}constructor(e,t){this.hasDragged=0,this.pointerCaptureEventsToUnbind=[],this.eventsToUnbind=[],this.options=t,this.chart=e,this.runChartClick=!!t.chart.events?.click,this.pinchDown=[],this.setDOMEvents(),to(this,`afterInit`)}normalize(e,t){let n=e.touches,r=n?n.length?n.item(0):oo(n.changedTouches,e.changedTouches)[0]:e;t||=this.getChartPosition();let i=r.pageX-t.left,a=r.pageY-t.top;return $a(e,{chartX:Math.round(i/=t.scaleX),chartY:Math.round(a/=t.scaleY)})}onContainerClick(e){let t=this.chart,n=t.hoverPoint,r=this.normalize(e),i=t.plotLeft,a=t.plotTop;!t.cancelClick&&(n&&this.inClass(r.target,`highcharts-tracker`)?(to(n.series,`click`,$a(r,{point:n})),t.hoverPoint&&n.firePointEvent(`click`,r)):($a(r,this.getCoordinates(r)),t.isInsidePlot(r.chartX-i,r.chartY-a,{visiblePlotOnly:!0})&&to(t,`click`,r)))}onContainerMouseDown(e){let t=(1&(e.buttons||e.button))==1;e=this.normalize(e),S.isFirefox&&e.button!==0&&this.onContainerMouseMove(e),(e.button===void 0||t)&&(this.zoomOption(e),t&&e.preventDefault?.(),this.dragStart(e))}onContainerMouseLeave(e){let{pointer:t}=qa[oo(G.hoverChartIndex,-1)]||{};e=this.normalize(e),this.onContainerMouseMove(e),t&&!this.inClass(e.relatedTarget,`highcharts-tooltip`)&&(t.reset(),t.chartPosition=void 0)}onContainerMouseEnter(){delete this.chartPosition}onContainerMouseMove(e){let t=this.chart,n=t.tooltip,r=this.normalize(e);this.setHoverChartIndex(e),(t.mouseIsDown===`mousedown`||this.touchSelect(r))&&this.drag(r),!t.exporting?.openMenu&&(this.inClass(r.target,`highcharts-tracker`)||t.isInsidePlot(r.chartX-t.plotLeft,r.chartY-t.plotTop,{visiblePlotOnly:!0}))&&!n?.shouldStickOnContact(r)&&(this.inClass(r.target,`highcharts-no-tooltip`)?this.reset(!1,0):this.runPointActions(r))}onDocumentTouchEnd(e){this.onDocumentMouseUp(e)}onContainerTouchMove(e){this.touchSelect(e)?this.onContainerMouseMove(e):this.touch(e)}onContainerTouchStart(e){this.touchSelect(e)?this.onContainerMouseDown(e):(this.zoomOption(e),this.touch(e,!0))}onDocumentMouseMove(e){let t=this.chart,n=t.tooltip,r=this.chartPosition,i=this.normalize(e,r);!r||t.isInsidePlot(i.chartX-t.plotLeft,i.chartY-t.plotTop,{visiblePlotOnly:!0})||n?.shouldStickOnContact(i)||i.target!==t.container.ownerDocument&&this.inClass(i.target,`highcharts-tracker`)||this.reset()}onDocumentMouseUp(e){e?.touches&&this.hasPinchMoved&&e?.preventDefault?.(),qa[oo(G.hoverChartIndex,-1)]?.pointer?.drop(e)}pinch(e){let t=this,{chart:n,hasZoom:r,lastTouches:i}=t,a=[].map.call(e.touches||[],e=>t.normalize(e)),o=a.length,s=o===1&&(t.inClass(e.target,`highcharts-tracker`)&&n.runTrackerClick||t.runChartClick),c=n.tooltip,l=o===1&&oo(c?.options.followTouchMove,!0);o>1?t.initiated=!0:l&&(t.initiated=!1),r&&t.initiated&&!s&&!1!==e.cancelable&&e.preventDefault(),e.type===`touchstart`?(t.pinchDown=a,t.res=!0,n.mouseDownX=e.chartX):l?this.runPointActions(t.normalize(e)):i&&(to(n,`touchpan`,{originalEvent:e,touches:a},()=>{let t=e=>{let t=e[0],n=e[1]||t;return{x:t.chartX,y:t.chartY,width:n.chartX-t.chartX,height:n.chartY-t.chartY}};n.transform({axes:n.axes.filter(e=>e.zoomEnabled&&(this.zoomHor&&e.horiz||this.zoomVert&&!e.horiz)),to:t(a),from:t(i),trigger:e.type})}),t.res&&(t.res=!1,this.reset(!1,0))),t.lastTouches=a}reset(e,t){let n=this.chart,r=n.hoverSeries,i=n.hoverPoint,a=n.hoverPoints,o=n.tooltip,s=o?.shared?a:i;e&&s&&co(s).forEach(function(t){t.series.isCartesian&&t.plotX===void 0&&(e=!1)}),e?o&&s&&co(s).length&&(o.refresh(s),o.shared&&a?a.forEach(function(e){e.setState(e.state,!0),e.series.isCartesian&&(e.series.xAxis.crosshair&&e.series.xAxis.drawCrosshair(null,e),e.series.yAxis.crosshair&&e.series.yAxis.drawCrosshair(null,e))}):i&&(i.setState(i.state,!0),n.axes.forEach(function(e){e.crosshair&&i.series[e.coll]===e&&e.drawCrosshair(null,i)}))):(i&&i.onMouseOut(),a&&a.forEach(function(e){e.setState()}),r&&r.onMouseOut(),o&&o.hide(t),this.unDocMouseMove&&=this.unDocMouseMove(),n.axes.forEach(function(e){e.hideCrosshair()}),n.hoverPoints=n.hoverPoint=void 0)}runPointActions(e,t,n){let r=this.chart,i=r.series,a=r.tooltip?.options.enabled?r.tooltip:void 0,o=!!a&&a.shared,s=t||r.hoverPoint,c=s?.series||r.hoverSeries,l=(!e||e.type!==`touchmove`)&&(!!t||c?.directTouch&&this.isDirectTouch),u=this.getHoverData(s,c,i,l,o,e);s=u.hoverPoint,c=u.hoverSeries;let d=u.hoverPoints,f=c?.tooltipOptions.followPointer&&!c.tooltipOptions.split,p=o&&c&&!c.noSharedTooltip;if(s&&(n||s!==r.hoverPoint||a?.isHidden)){if((r.hoverPoints||[]).forEach(function(e){d.indexOf(e)===-1&&e.setState()}),r.hoverSeries!==c&&c.onMouseOver(),this.applyInactiveState(d),(d||[]).forEach(function(e){e.setState(`hover`)}),r.hoverPoint&&r.hoverPoint.firePointEvent(`mouseOut`),!s.series)return;r.hoverPoints=d,r.hoverPoint=s,s.firePointEvent(`mouseOver`,void 0,()=>{a&&s&&a.refresh(p?d:s,e)})}else if(f&&a&&!a.isHidden){let t=a.getAnchor([{}],e);r.isInsidePlot(t[0],t[1],{visiblePlotOnly:!0})&&a.updatePosition({plotX:t[0],plotY:t[1]})}this.unDocMouseMove||(this.unDocMouseMove=Xa(r.container.ownerDocument,`mousemove`,e=>qa[G.hoverChartIndex??-1]?.pointer?.onDocumentMouseMove(e)),this.eventsToUnbind.push(this.unDocMouseMove)),r.axes.forEach(function(t){let n,i=t.crosshair?.snap??!0;i&&((n=r.hoverPoint)&&n.series[t.coll]===t||(n=eo(d,e=>e.series?.[t.coll]===t))),n||!i?t.drawCrosshair(e,n):t.hideCrosshair()})}setDOMEvents(){let e=this.chart.container,t=e.ownerDocument;e.onmousedown=this.onContainerMouseDown.bind(this),e.onmousemove=this.onContainerMouseMove.bind(this),e.onclick=this.onContainerClick.bind(this),this.eventsToUnbind.push(Xa(e,`mouseenter`,this.onContainerMouseEnter.bind(this)),Xa(e,`mouseleave`,this.onContainerMouseLeave.bind(this))),G.unbindDocumentMouseUp.some(e=>e.doc===t)||G.unbindDocumentMouseUp.push({doc:t,unbind:Xa(t,`mouseup`,this.onDocumentMouseUp.bind(this))});let n=this.chart.renderTo.parentElement;for(;n&&n.tagName!==`BODY`;)this.eventsToUnbind.push(Xa(n,`scroll`,()=>{delete this.chartPosition})),n=n.parentElement;this.eventsToUnbind.push(Xa(e,`touchstart`,this.onContainerTouchStart.bind(this),{passive:!1}),Xa(e,`touchmove`,this.onContainerTouchMove.bind(this),{passive:!1})),G.unbindDocumentTouchEnd||=Xa(t,`touchend`,this.onDocumentTouchEnd.bind(this),{passive:!1}),this.setPointerCapture(),Xa(this.chart,`redraw`,this.setPointerCapture.bind(this))}setPointerCapture(){if(!Ya)return;let e=this.pointerCaptureEventsToUnbind,t=this.chart,n=t.container,r=oo(t.options.tooltip?.followTouchMove,!0)&&t.series.some(e=>e.options.findNearestPointBy.indexOf(`y`)>-1);!this.hasPointerCapture&&r?(e.push(Xa(n,`pointerdown`,e=>{e.target?.hasPointerCapture(e.pointerId)&&e.target?.releasePointerCapture(e.pointerId)}),Xa(n,`pointermove`,e=>{t.pointer?.getPointFromEvent(e)?.onMouseOver(e)})),t.styledMode||Qa(n,{"touch-action":`none`}),n.className+=` highcharts-no-touch-action`,this.hasPointerCapture=!0):this.hasPointerCapture&&!r&&(e.forEach(e=>e()),e.length=0,t.styledMode||Qa(n,{"touch-action":oo(t.options.chart.style?.[`touch-action`],`manipulation`)}),n.className=n.className.replace(` highcharts-no-touch-action`,``),this.hasPointerCapture=!1)}setHoverChartIndex(e){let t=this.chart,n=S.charts[oo(G.hoverChartIndex,-1)];if(n&&n!==t){let r={relatedTarget:t.container};e&&!e?.relatedTarget&&Object.assign({},e,r),n.pointer?.onContainerMouseLeave(e||r)}n?.mouseIsDown||(G.hoverChartIndex=t.index)}touch(e,t){let n,{chart:r,pinchDown:i=[]}=this;this.setHoverChartIndex(),(e=this.normalize(e)).touches.length===1?r.isInsidePlot(e.chartX-r.plotLeft,e.chartY-r.plotTop,{visiblePlotOnly:!0})&&!r.exporting?.openMenu?(t&&this.runPointActions(e),e.type===`touchmove`&&(this.hasPinchMoved=n=!!i[0]&&(i[0].chartX-e.chartX)**2+(i[0].chartY-e.chartY)**2>=16),oo(n,!0)&&this.pinch(e)):t&&this.reset():e.touches.length===2&&this.pinch(e)}touchSelect(e){return!!(this.chart.zooming.singleTouch&&e.touches&&e.touches.length===1)}zoomOption(e){let t=this.chart,n=t.inverted,r=t.zooming.type||``,i,a;/touch/.test(e.type)&&(r=oo(t.zooming.pinchType,r)),this.zoomX=i=/x/.test(r),this.zoomY=a=/y/.test(r),this.zoomHor=i&&!n||a&&n,this.zoomVert=a&&!n||i&&n,this.hasZoom=i||a}}G.unbindDocumentMouseUp=[],function(e){e.compose=function(t){so(Ja,`Core.Pointer`)&&Xa(t,`beforeRender`,function(){this.pointer=new e(this,this.options)})}}(G||={});let lo=G;(function(e){e.setLength=function(e,t,n){return Array.isArray(e)?(e.length=t,e):e[n?`subarray`:`slice`](0,t)},e.splice=function(e,t,n,r,i=[]){if(Array.isArray(e))return Array.isArray(i)||(i=Array.from(i)),{removed:e.splice(t,n,...i),array:e};let a=Object.getPrototypeOf(e).constructor,o=e[r?`subarray`:`slice`](t,t+n),s=new a(e.length-n+i.length);return s.set(e.subarray(0,t),0),s.set(i,t),s.set(e.subarray(t+n),t+i.length),{removed:o,array:s}}})(u||={});let{setLength:uo,splice:fo}=u,{fireEvent:po,objectEach:mo,uniqueKey:ho}=M,go=class{constructor(e={}){this.autoId=!e.id,this.columns={},this.id=e.id||ho(),this.modified=this,this.rowCount=0,this.versionTag=ho();let t=0;mo(e.columns||{},(e,n)=>{this.columns[n]=e.slice(),t=Math.max(t,e.length)}),this.applyRowCount(t)}applyRowCount(e){this.rowCount=e,mo(this.columns,(t,n)=>{t.length!==e&&(this.columns[n]=uo(t,e))})}deleteRows(e,t=1){if(t>0&&e{this.columns[i]=fo(r,e,t).array,n=r.length}),this.rowCount=n}po(this,`afterDeleteRows`,{rowIndex:e,rowCount:t}),this.versionTag=ho()}getColumn(e,t){return this.columns[e]}getColumns(e,t){return(e||Object.keys(this.columns)).reduce((e,t)=>(e[t]=this.columns[t],e),{})}getRow(e,t){return(t||Object.keys(this.columns)).map(t=>this.columns[t]?.[e])}setColumn(e,t=[],n=0,r){this.setColumns({[e]:t},n,r)}setColumns(e,t,n){let r=this.rowCount;mo(e,(e,t)=>{this.columns[t]=e.slice(),r=e.length}),this.applyRowCount(r),n?.silent||(po(this,`afterSetColumns`),this.versionTag=ho())}setRow(e,t=this.rowCount,n,r){let{columns:i}=this,a=n?this.rowCount+1:t+1;mo(e,(e,o)=>{let s=i[o]||r?.addColumns!==!1&&Array(a);s&&(n?s=fo(s,t,0,!0,[e]).array:s[t]=e,i[o]=s)}),a>this.rowCount&&this.applyRowCount(a),r?.silent||(po(this,`afterSetRows`),this.versionTag=ho())}},{extend:_o,merge:vo,pick:yo}=M;(function(e){function t(e,t,n){let r=this.legendItem=this.legendItem||{},{chart:i,options:a}=this,{baseline:o=0,symbolWidth:s,symbolHeight:c}=e,l=this.symbol||`circle`,u=c/2,d=i.renderer,f=r.group,p=o-Math.round((e.fontMetrics?.b||c)*(n?.4:.3)),m={},h,g=a.marker,_=0;if(i.styledMode||(m[`stroke-width`]=Math.min(a.lineWidth||0,24),a.dashStyle?m.dashstyle=a.dashStyle:a.linecap!==`square`&&(m[`stroke-linecap`]=`round`)),r.line=d.path().addClass(`highcharts-graph`).attr(m).add(f),n&&(r.area=d.path().addClass(`highcharts-area`).add(f)),m[`stroke-linecap`]&&(_=Math.min(r.line.strokeWidth(),s)/2),s){let e=[[`M`,_,p],[`L`,s-_,p]];r.line.attr({d:e}),r.area?.attr({d:[...e,[`L`,s-_,o],[`L`,_,o]]})}if(g&&!1!==g.enabled&&s){let e=Math.min(yo(g.radius,u),u);l.indexOf(`url`)===0&&(g=vo(g,{width:c,height:c}),e=0),r.symbol=h=d.symbol(l,s/2-e,p-e,2*e,2*e,_o({context:`legend`},g)).addClass(`highcharts-point`).add(f),h.isMarker=!0}}e.areaMarker=function(e,n){t.call(this,e,n,!0)},e.lineMarker=t,e.rectangle=function(e,t){let n=t.legendItem||{},r=e.options,i=e.symbolHeight,a=r.squareSymbol,o=a?i:e.symbolWidth;n.symbol=this.chart.renderer.rect(a?(e.symbolWidth-i)/2:0,e.baseline-i+1,o,i,yo(e.options.symbolRadius,i/2)).addClass(`highcharts-point`).attr({zIndex:3}).add(n.group)}})(d||={});let bo=d,{defaultOptions:xo}=Be,{extend:So,extendClass:Co,merge:wo}=M;(function(e){function t(t,n){let r=xo.plotOptions||{},i=n.defaultOptions,a=n.prototype;return a.type=t,a.pointClass||=Ga,!e.seriesTypes[t]&&(i&&(r[t]=i),e.seriesTypes[t]=n,!0)}e.seriesTypes=S.seriesTypes,e.registerSeriesType=t,e.seriesType=function(n,r,i,a,o){let s=xo.plotOptions||{};if(r||=``,s[n]=wo(s[r],i),delete e.seriesTypes[n],t(n,Co(e.seriesTypes[r]||Z,a)),e.seriesTypes[n].prototype.type=n,o){class t extends Ga{}So(t.prototype,o),e.seriesTypes[n].prototype.pointClass=t}return e.seriesTypes[n]}})(f||={});let K=f,{animObject:To,setAnimation:Eo}=L,{defaultOptions:Do}=Be,{registerEventOptions:Oo}=Gr,{svg:ko,win:Ao}=S,{seriesTypes:jo}=K,{format:Mo}=Lt,{arrayMax:No,arrayMin:Po,clamp:Fo,correctFloat:Io,crisp:Lo,defined:q,destroyObjectProperties:Ro,diffObjects:zo,erase:Bo,error:Vo,extend:Ho,find:Uo,fireEvent:J,getClosestDistance:Wo,getNestedProperty:Go,insertItem:Ko,isArray:qo,isNumber:Y,isString:Jo,merge:Yo,objectEach:Xo,pick:X,removeEvent:Zo,syncTimeout:Qo}=M;class $o{constructor(){this.zoneAxis=`y`}init(e,t){let n;J(this,`init`,{options:t}),this.dataTable??=new go;let r=e.series;this.eventsToUnbind=[],this.chart=e,this.options=this.setOptions(t);let i=this.options,a=!1!==i.visible;this.linkedSeries=[],this.bindAxes(),Ho(this,{name:i.name,state:``,visible:a,selected:!0===i.selected}),Oo(this,i),(i.events?.click||i.point?.events?.click||i.allowPointSelect)&&(e.runTrackerClick=!0),this.getColor(),this.getSymbol(),this.isCartesian&&(e.hasCartesianSeries=!0),r.length&&(n=r[r.length-1]),this._i=X(n?._i,-1)+1,this.opacity=this.options.opacity,e.orderItems(`series`,Ko(this,r)),i.dataSorting?.enabled?this.setDataSortingOptions():this.points||this.data||this.setData(i.data,!1),J(this,`afterInit`)}is(e){return jo[e]&&this instanceof jo[e]}bindAxes(){let e,t=this,n=t.options,r=t.chart;J(this,`bindAxes`,null,function(){(t.axisTypes||[]).forEach(function(i){(r[i]||[]).forEach(function(r){e=r.options,(X(n[i],0)===r.index||n[i]!==void 0&&n[i]===e.id)&&(Ko(t,r.series),t[i]=r,r.isDirty=!0)}),t[i]||t.optionalAxis===i||Vo(18,!0,r)})}),J(this,`afterBindAxes`)}hasData(){return this.visible&&this.dataMax!==void 0&&this.dataMin!==void 0||this.visible&&this.dataTable.rowCount>0}hasMarkerChanged(e,t){let n=e.marker,r=t.marker||{};return n&&(r.enabled&&!n.enabled||r.symbol!==n.symbol||r.height!==n.height||r.width!==n.width)}autoIncrement(e){let t,n=this.options,{pointIntervalUnit:r,relativeXValue:i}=this.options,a=this.chart.time,o=this.xIncrement??a.parse(n.pointStart)??0;if(this.pointInterval=t=X(this.pointInterval,n.pointInterval,1),i&&Y(e)&&(t*=e),r){let e=a.toParts(o);r===`day`?e[2]+=t:r===`month`?e[1]+=t:r===`year`&&(e[0]+=t),t=a.makeTime.apply(a,e)-o}return i&&Y(e)?o+t:(this.xIncrement=o+t,o)}setDataSortingOptions(){let e=this.options;Ho(this,{requireSorting:!1,sorted:!1,enabledDataSorting:!0,allowDG:!1}),q(e.pointRange)||(e.pointRange=1)}setOptions(e){let t,n=this.chart,r=n.options.plotOptions,i=n.userOptions||{},a=Yo(e),o=n.styledMode,s={plotOptions:r,userOptions:a};J(this,`setOptions`,s);let c=s.plotOptions[this.type],l=i.plotOptions||{},u=l.series||{},d=Do.plotOptions[this.type]||{},f=l[this.type]||{};c.dataLabels=this.mergeArrays(d.dataLabels,c.dataLabels),this.userOptions=s.userOptions;let p=Yo(c,r.series,f,a);this.tooltipOptions=Yo(Do.tooltip,Do.plotOptions.series?.tooltip,d?.tooltip,n.userOptions.tooltip,l.series?.tooltip,f.tooltip,a.tooltip),this.stickyTracking=X(a.stickyTracking,f.stickyTracking,u.stickyTracking,!!this.tooltipOptions.shared&&!this.noSharedTooltip||p.stickyTracking),c.marker===null&&delete p.marker,this.zoneAxis=p.zoneAxis||`y`;let m=this.zones=(p.zones||[]).map(e=>({...e}));return(p.negativeColor||p.negativeFillColor)&&!p.zones&&(t={value:p[this.zoneAxis+`Threshold`]||p.threshold||0,className:`highcharts-negative`},o||(t.color=p.negativeColor,t.fillColor=p.negativeFillColor),m.push(t)),m.length&&q(m[m.length-1].value)&&m.push(o?{}:{color:this.color,fillColor:this.fillColor}),J(this,`afterSetOptions`,{options:p}),p}getName(){return this.options.name??Mo(this.chart.options.lang.seriesName,this,this.chart)}getCyclic(e,t,n){let r,i,a=this.chart,o=`${e}Index`,s=`${e}Counter`,c=n?.length||a.options.chart.colorCount;!t&&(q(i=X(e===`color`?this.options.colorIndex:void 0,this[o]))?r=i:(a.series.length||(a[s]=0),r=a[s]%c,a[s]+=1),n&&(t=n[r])),r!==void 0&&(this[o]=r),this[e]=t}getColor(){this.chart.styledMode?this.getCyclic(`color`):this.options.colorByPoint?this.color=`#cccccc`:this.getCyclic(`color`,this.options.color||Do.plotOptions[this.type].color,this.chart.options.colors)}getPointsCollection(){return(this.hasGroupedData?this.points:this.data)||[]}getSymbol(){let e=this.options.marker;this.getCyclic(`symbol`,e.symbol,this.chart.options.symbols)}getColumn(e,t){return(t?this.dataTable.modified:this.dataTable).getColumn(e,!0)||[]}findPointIndex(e,t){let n,r,i,{id:a,x:o}=e,s=this.points,c=this.options.dataSorting,l=this.cropStart||0;if(a){let e=this.chart.get(a);e instanceof Ga&&(n=e)}else if(this.linkedParent||this.enabledDataSorting||this.options.relativeXValue){let t=t=>!t.touched&&t.index===e.index;if(c?.matchByName?t=t=>!t.touched&&t.name===e.name:this.options.relativeXValue&&(t=t=>!t.touched&&t.options.x===e.x),!(n=Uo(s,t)))return}return n&&(i=n?.index)!==void 0&&(r=!0),i===void 0&&Y(o)&&(i=this.getColumn(`x`).indexOf(o,t)),i!==-1&&i!==void 0&&this.cropped&&(i=i>=l?i-l:i),!r&&Y(i)&&s[i]?.touched&&(i=void 0),i}updateData(e,t){let{options:n,requireSorting:r}=this,i=n.dataSorting,a=this.points,o=[],s=e.length===a.length,c,l,u,d,f=!0;if(this.xIncrement=null,e.forEach((e,t)=>{let l,u=q(e)&&this.pointClass.prototype.optionsToObject.call({series:this},e)||{},{id:f,x:p}=u;f||Y(p)?((l=this.findPointIndex(u,d))===-1||l===void 0?o.push(e):a[l]&&e!==n.data?.[l]?(a[l].update(e,!1,void 0,!1),a[l].touched=!0,r&&(d=l+1)):a[l]&&(a[l].touched=!0),(!s||t!==l||i?.enabled||this.hasDerivedData)&&(c=!0)):o.push(e)},this),c)for(l=a.length;l--;)(u=a[l])&&!u.touched&&u.remove?.(!1,t);else s&&!i?.enabled?(e.forEach((e,t)=>{e===a[t].y||a[t].destroyed||a[t].update(e,!1,void 0,!1)}),o.length=0):f=!1;if(a.forEach(e=>{e&&(e.touched=!1)}),!f)return!1;o.forEach(e=>{this.addPoint(e,!1,void 0,void 0,!1)},this);let p=this.getColumn(`x`);return this.xIncrement===null&&p.length&&(this.xIncrement=No(p),this.autoIncrement()),!0}dataColumnKeys(){return[`x`,...this.pointArrayMap||[`y`]]}setData(e,t=!0,n,r){let i=this.points,a=i?.length||0,o=this.options,s=this.chart,c=o.dataSorting,l=this.xAxis,u=o.turboThreshold,d=this.dataTable,f=this.dataColumnKeys(),p=this.pointValKey||`y`,m=(this.pointArrayMap||[]).length,h=o.keys,g,_,v=0,y=1,b;s.options.chart.allowMutatingData||(o.data&&delete this.options.data,this.userOptions.data&&delete this.userOptions.data,b=Yo(!0,e));let x=(e=b||e||[]).length;if(c?.enabled&&(e=this.sortData(e)),s.options.chart.allowMutatingData&&!1!==r&&x&&a&&!this.cropped&&!this.hasGroupedData&&this.visible&&!this.boosted&&(_=this.updateData(e,n)),!_){this.xIncrement=null,this.colorCounter=0;let t=u&&!o.relativeXValue&&x>u;if(t){let n=this.getFirstValidPoint(e),r=this.getFirstValidPoint(e,x-1,-1),i=e=>!!(qo(e)&&(h||Y(e[0])));if(Y(n)&&Y(r)){let t=[],n=[];for(let r of e)t.push(this.autoIncrement()),n.push(r);d.setColumns({x:t,[p]:n})}else if(i(n)&&i(r))if(m){let t=+(n.length===m),r=Array(f.length).fill(0).map(()=>[]);for(let n of e){t&&r[0].push(this.autoIncrement());for(let e=t;e<=m;e++)r[e]?.push(n[e-t])}d.setColumns(f.reduce((e,t,n)=>(e[t]=r[n],e),{}))}else{h&&(v=h.indexOf(`x`),y=h.indexOf(`y`),v=v>=0?v:0,y=y>=0?y:1),n.length===1&&(y=0);let t=[],r=[];if(v===y)for(let n of e)t.push(this.autoIncrement()),r.push(n[y]);else for(let n of e)t.push(n[v]),r.push(n[y]);d.setColumns({x:t,[p]:r})}else t=!1}if(!t){let t=f.reduce((e,t)=>(e[t]=[],e),{});for(g=0;g{let r=Go(n,e),i=Go(n,t);return ir)}).forEach(function(e,t){e.x=t},this),t.linkedSeries&&t.linkedSeries.forEach(function(t){let n=t.options,i=n.data;!n.dataSorting?.enabled&&i&&(i.forEach(function(n,a){i[a]=r(t,n),e[a]&&(i[a].x=e[a].x,i[a].index=a)}),t.setData(i,!1))}),e}getProcessedData(e){let t=this,{dataTable:n,isCartesian:r,options:i,xAxis:a}=t,o=i.cropThreshold,s=e||t.getExtremesFromAll,c=a?.logarithmic,l=n.rowCount,u,d,f=0,p,m,h,g=t.getColumn(`x`),_=n,v=!1;return a&&(m=(p=a.getExtremes()).min,h=p.max,v=!!(a.categories&&!a.names.length),r&&t.sorted&&!s&&(!o||l>o||t.forceCrop)&&(g[l-1]h?_=new go:t.getColumn(t.pointValKey||`y`).length&&(g[0]h)&&(_=(u=this.cropData(n,m,h)).modified,f=u.start,d=!0))),g=_.getColumn(`x`)||[],{modified:_,cropped:d,cropStart:f,closestPointRange:Wo([c?g.map(c.log2lin):g],()=>t.requireSorting&&!v&&Vo(15,!1,t.chart))}}processData(e){let t=this.xAxis,n=this.dataTable;if(this.isCartesian&&!this.isDirty&&!t.isDirty&&!this.yAxis.isDirty&&!e)return!1;let r=this.getProcessedData();n.modified=r.modified,this.cropped=r.cropped,this.cropStart=r.cropStart,this.closestPointRange=this.basePointRange=r.closestPointRange,J(this,`afterProcessData`)}cropData(e,t,n){let r=e.getColumn(`x`,!0)||[],i=r.length,a={},o,s,c=0,l=i;for(o=0;o=t){c=Math.max(0,o-1);break}for(s=o;sn){l=s+1;break}for(let t of this.dataColumnKeys()){let n=e.getColumn(t,!0);n&&(a[t]=n.slice(c,l))}return{modified:new go({columns:a}),start:c,end:l}}generatePoints(){let e=this.options,t=this.processedData||e.data,n=this.dataTable.modified,r=this.getColumn(`x`,!0),i=this.pointClass,a=n.rowCount,o=this.cropStart||0,s=this.hasGroupedData,c=e.keys,l=[],u=e.dataGrouping?.groupAll?o:0,d=this.xAxis?.categories,f=this.pointArrayMap||[`y`],p=this.dataColumnKeys(),m,h,g,_,v=this.data,y;if(!v&&!s){let e=[];e.length=t?.length||0,v=this.data=e}for(c&&s&&(this.options.keys=!1),_=0;_a.getColumn(e,!0)||[])||[],l=this.getColumn(`x`,!0),u=[],d=this.requireSorting&&!this.is(`column`)?1:0,f=!!r&&r.positiveValuesOnly,p=i||this.cropped||!n,m,h,g,_=0,v=0;for(n&&(_=(m=n.getExtremes()).min,v=m.max),g=0;g=_&&(l[g-d]||h)<=v)for(let e of c){let t=e[g];Y(t)&&(t>0||!f)&&u.push(t)}let y={activeYData:u,dataMin:Po(u),dataMax:No(u)};return J(this,`afterGetExtremes`,{dataExtremes:y}),y}applyExtremes(){let e=this.getExtremes();return this.dataMin=e.dataMin,this.dataMax=e.dataMax,e}getFirstValidPoint(e,t=0,n=1){let r=e.length,i=t;for(;i>=0&&i1)&&(a.step=function(e,t){n&&n.apply(t,arguments),t.prop===`width`&&c?.element&&c.attr(i?`height`:`width`,e+99)}),s.addClass(`highcharts-animating`).animate(e,a)}}afterAnimate(){this.setClip(),Xo(this.chart.sharedClips,(e,t,n)=>{e&&!this.chart.container.querySelector(`[clip-path="url(#${e.id})"]`)&&(e.destroy(),delete n[t])}),this.finishedAnimating=!0,J(this,`afterAnimate`)}drawPoints(e=this.points){let t,n,r,i,a,o,s,c=this.chart,l=c.styledMode,{colorAxis:u,options:d}=this,f=d.marker,p=d.nullInteraction,m=this[this.specialGroup||`markerGroup`],h=this.xAxis,g=X(f.enabled,!h||!!h.isRadial||null,this.closestPointRangePx>=f.enabledThreshold*f.radius);if(!1!==f.enabled||this._hasPointMarkers)for(t=0;t0||n.hasImage)&&(n.graphic=r=c.renderer.symbol(e,s.x,s.y,s.width,s.height,o?a:f).add(m),this.enabledDataSorting&&c.hasRendered&&(r.attr({x:n.startXPos}),i=`animate`)),r&&i===`animate`&&r[t?`show`:`hide`](t).animate(s),r){let e=this.pointAttribs(n,l||!n.selected?void 0:`select`);l?u&&r.css({fill:e.fill}):r[i](e)}r&&r.addClass(n.getClassName(),!0)}else r&&(n.graphic=r.destroy())}}markerAttribs(e,t){let n=this.options,r=n.marker,i=e.marker||{},a=i.symbol||r.symbol,o={},s,c,l=X(i.radius,r?.radius);t&&(s=r.states[t],c=i.states&&i.states[t],l=X(c?.radius,s?.radius,l&&l+(s?.radiusPlus||0))),e.hasImage=a&&a.indexOf(`url`)===0,e.hasImage&&(l=0);let u=e.pos();return Y(l)&&u&&(n.crisp&&(u[0]=Lo(u[0],e.hasImage?0:a===`rect`?r?.lineWidth||0:1)),o.x=u[0]-l,o.y=u[1]-l),l&&(o.width=o.height=2*l),o}pointAttribs(e,t){let n=this.options,r=n.marker,i=e?.options,a=i?.marker||{},o=i?.color,s=e?.color,c=e?.zone?.color,l,u,d=this.color,f,p,m=X(a.lineWidth,r.lineWidth),h=e?.isNull&&n.nullInteraction?0:1;return d=o||c||s||d,f=a.fillColor||r.fillColor||d,p=a.lineColor||r.lineColor||d,t||=`normal`,l=r.states[t]||{},m=X((u=a.states&&a.states[t]||{}).lineWidth,l.lineWidth,m+X(u.lineWidthPlus,l.lineWidthPlus,0)),f=u.fillColor||l.fillColor||f,p=u.lineColor||l.lineColor||p,{stroke:p,"stroke-width":m,fill:f,opacity:h=X(u.opacity,l.opacity,h)}}destroy(e){let t,n,r=this,i=r.chart,a=/AppleWebKit\/533/.test(Ao.navigator.userAgent),o=r.data||[];for(J(r,`destroy`,{keepEventsForUpdate:e}),this.removeEvents(e),(r.axisTypes||[]).forEach(function(e){n=r[e],n?.series&&(Bo(n.series,r),n.isDirty=n.forceRedraw=!0)}),r.legendItem&&r.chart.legend.destroyItem(r),t=o.length;t--;)o[t]?.destroy?.();for(let e of r.zones)Ro(e,void 0,!0);M.clearTimeout(r.animationTimeout),Xo(r,function(e,t){e instanceof Cn&&!e.survive&&e[a&&t===`group`?`hide`:`destroy`]()}),i.hoverSeries===r&&(i.hoverSeries=void 0),Bo(i.series,r),i.orderItems(`series`),Xo(r,function(t,n){e&&n===`hcEvents`||delete r[n]})}applyZones(){let{area:e,chart:t,graph:n,zones:r,points:i,xAxis:a,yAxis:o,zoneAxis:s}=this,{inverted:c,renderer:l}=t,u=this[`${s}Axis`],{isXAxis:d,len:f=0,minPointOffset:p=0}=u||{},m=(n?.strokeWidth()||0)/2+1,h=(e,t=0,n=0)=>{c&&(n=f-n);let{translated:r=0,lineClip:i}=e,a=n-r;i?.push([`L`,t,Math.abs(a){e.forEach((t,n)=>{(t[0]===`M`||t[0]===`L`)&&(e[n]=[t[0],d?f-t[1]:t[1],d?t[2]:f-t[2]])})};if(r.forEach(e=>{e.lineClip=[],e.translated=Fo(u.toPixels(X(e.value,t),!0)||0,0,f)}),n&&!this.showLine&&n.hide(),e&&e.hide(),s===`y`&&i.length{let r=t.lineClip||[],i=Math.round(t.translated||0);a.reversed&&r.reverse();let{clip:s,simpleClip:u}=t,f=0,p=0,h=a.len,v=o.len;d?(f=i,h=_):(p=i,v=_);let y=[[`M`,f,p],[`L`,h,p],[`L`,h,v],[`L`,f,v],[`Z`]],b=[y[0],...r,y[1],y[2],...g,y[3],y[4]];g=r.reverse(),_=i,c&&(m(b),e&&m(y)),s?(s.animate({d:b}),u?.animate({d:y})):(s=t.clip=l.path(b),e&&(u=t.simpleClip=l.path(y))),n&&t.graph?.clip(s),e&&t.area?.clip(u)})}else this.visible&&(n&&n.show(),e&&e.show())}plotGroup(e,t,n,r,i){let a=this[e],o=!a,s={visibility:n,zIndex:r||.1};return q(this.opacity)&&!this.chart.styledMode&&this.state!==`inactive`&&(s.opacity=this.opacity),a||(this[e]=a=this.chart.renderer.g().add(i)),a.addClass(`highcharts-`+t+` highcharts-series-`+this.index+` highcharts-`+this.type+`-series `+(q(this.colorIndex)?`highcharts-color-`+this.colorIndex+` `:``)+(this.options.className||``)+(a.hasClass(`highcharts-tracker`)?` highcharts-tracker`:``),!0),a.attr(s)[o?`attr`:`animate`](this.getPlotBox(t)),a}getPlotBox(e){let t=this.xAxis,n=this.yAxis,r=this.chart,i=r.inverted&&!r.polar&&t&&this.invertible&&e===`series`;r.inverted&&(t=n,n=this.xAxis);let a={scale:1,translateX:t?t.left:r.plotLeft,translateY:n?n.top:r.plotTop,name:e};J(this,`getPlotBox`,a);let{scale:o,translateX:s,translateY:c}=a;return{translateX:s,translateY:c,rotation:90*!!i,rotationOriginX:i?o*(t.len-n.len)/2:0,rotationOriginY:i?o*(t.len+n.len)/2:0,scaleX:i?-o:o,scaleY:o}}removeEvents(e){let{eventsToUnbind:t}=this;e||Zo(this),t.length&&=(t.forEach(e=>{e()}),0)}render(){let e=this,{chart:t,options:n,hasRendered:r}=e,i=To(n.animation),a=e.visible?`inherit`:`hidden`,o=n.zIndex,s=t.seriesGroup,c=e.finishedAnimating?0:i.duration;J(this,`render`),e.plotGroup(`group`,`series`,a,o,s),e.markerGroup=e.plotGroup(`markerGroup`,`markers`,a,o,s),!1!==n.clip&&e.setClip(),c&&e.animate?.(!0),e.drawGraph&&(e.drawGraph(),e.applyZones()),e.visible&&e.drawPoints(),e.drawDataLabels?.(),e.redrawPoints?.(),n.enableMouseTracking&&e.drawTracker?.(),c&&e.animate?.(),r||(c&&i.defer&&(c+=i.defer),e.animationTimeout=Qo(()=>{e.afterAnimate()},c||0)),e.isDirty=!1,e.hasRendered=!0,J(e,`afterRender`)}redraw(){let e=this.isDirty||this.isDirtyData;this.translate(),this.render(),e&&delete this.kdTree}reserveSpace(){return this.visible||!this.chart.options.chart.ignoreHiddenSeries}searchPoint(e,t){let{xAxis:n,yAxis:r}=this,i=this.chart.inverted;return this.searchKDTree({clientX:i?n.len-e.chartY+n.pos:e.chartX-n.pos,plotY:i?r.len-e.chartX+r.pos:e.chartY-r.pos},t,e)}buildKDTree(e){this.buildingKdTree=!0;let t=this,n=t.options,r=n.findNearestPointBy.indexOf(`y`)>-1?2:1;delete t.kdTree,Qo(function(){t.kdTree=function e(n,r,i){let a,o,s=n?.length;if(s)return a=t.kdAxisArray[r%i],n.sort((e,t)=>(e[a]||0)-(t[a]||0)),{point:n[o=Math.floor(s/2)],left:e(n.slice(0,o),r+1,i),right:e(n.slice(o+1),r+1,i)}}(t.getValidPoints(void 0,!t.directTouch,n?.nullInteraction),r,r),t.buildingKdTree=!1},n.kdNow||e?.type===`touchstart`?0:1)}searchKDTree(e,t,n,r,i){let a=this,[o,s]=this.kdAxisArray,c=t?`distX`:`dist`,l=(a.options.findNearestPointBy||``).indexOf(`y`)>-1?2:1,u=!!a.isBubble,d=r||((e,t,n)=>{let r=e[n]||0,i=t[n]||0;return[r===i&&e.index>t.index||re=0&&a<=(r?r.len:t.plotHeight)&&i>=0&&i<=(n?n.len:t.plotWidth)}drawTracker(){let e=this,t=e.options,n=t.trackByArea,r=[].concat((n?e.areaPath:e.graphPath)||[]),i=e.chart,a=i.pointer,o=i.renderer,s=i.options.tooltip?.snap||0,c=()=>{t.enableMouseTracking&&i.hoverSeries!==e&&e.onMouseOver()},l=`rgba(192,192,192,`+(ko?1e-4:.002)+`)`,u=e.tracker;u?u.attr({d:r}):e.graph&&(e.tracker=u=o.path(r).attr({visibility:e.visible?`inherit`:`hidden`,zIndex:2}).addClass(n?`highcharts-tracker-area`:`highcharts-tracker-line`).add(e.group),i.styledMode||u.attr({"stroke-linecap":`round`,"stroke-linejoin":`round`,stroke:l,fill:n?l:`none`,"stroke-width":e.graph.strokeWidth()+(n?0:2*s)}),[e.tracker,e.markerGroup,e.dataLabelsGroup].forEach(e=>{e&&(e.addClass(`highcharts-tracker`).on(`mouseover`,c).on(`mouseout`,e=>{a?.onTrackerMouseOut(e)}),t.cursor&&!i.styledMode&&e.css({cursor:t.cursor}),e.on(`touchstart`,c))})),J(this,`afterDrawTracker`)}addPoint(e,t,n,r,i){let a,o,s=this.options,{chart:c,data:l,dataTable:u,xAxis:d}=this,f=d?.hasNames&&d.names,p=s.data,m=this.getColumn(`x`);t=X(t,!0);let h={series:this};this.pointClass.prototype.applyOptions.apply(h,[e]);let g=h.x;if(o=m.length,this.requireSorting&&gg;)o--;u.setRow(h,o,!0,{addColumns:!1}),f&&h.name&&(f[g]=h.name),p?.splice(o,0,e),(a||this.processedData)&&(this.data.splice(o,0,null),this.processData()),s.legendType===`point`&&this.generatePoints(),n&&(l[0]&&l[0].remove?l[0].remove(!1):([l,p].filter(q).forEach(e=>{e.shift()}),u.deleteRows(0))),!1!==i&&J(this,`addPoint`,{point:h}),this.isDirty=!0,this.isDirtyData=!0,t&&c.redraw(r)}removePoint(e,t,n){let r=this,{chart:i,data:a,points:o,dataTable:s}=r,c=a[e],l=function(){[o?.length===a.length?o:void 0,a,r.options.data].filter(q).forEach(t=>{t.splice(e,1)}),s.deleteRows(e),c?.destroy(),r.isDirty=!0,r.isDirtyData=!0,t&&i.redraw()};Eo(n,i),t=X(t,!0),c?c.firePointEvent(`remove`,null,l):l()}remove(e,t,n,r){let i=this,a=i.chart;function o(){i.destroy(r),a.isDirtyLegend=a.isDirtyBox=!0,a.linkSeries(r),X(e,!0)&&a.redraw(t)}!1===n?o():J(i,`remove`,null,o)}update(e,t){J(this,`update`,{options:e=zo(e,this.userOptions)});let n=this,r=n.chart,i=n.userOptions,a=n.initialType||n.type,o=r.options.plotOptions,s=jo[a].prototype,c=n.finishedAnimating&&{animation:!1},l={},u,d,f=$o.keepProps.slice(),p=e.type||i.type||r.options.chart.type,m=!(this.hasDerivedData||p&&p!==this.type||e.keys!==void 0||e.pointStart!==void 0||e.pointInterval!==void 0||e.relativeXValue!==void 0||e.joinBy||e.mapData||[`dataGrouping`,`pointStart`,`pointInterval`,`pointIntervalUnit`,`keys`].some(e=>n.hasOptionChanged(e)));p||=a,m?(f.push.apply(f,$o.keepPropsForPoints),!1!==e.visible&&f.push(`area`,`graph`),n.parallelArrays.forEach(function(e){f.push(e+`Data`)}),e.data&&(e.dataSorting&&Ho(n.options.dataSorting,e.dataSorting),this.setData(e.data,!1))):this.dataTable.modified=this.dataTable,e=Yo(i,{index:i.index===void 0?n.index:i.index,pointStart:o?.series?.pointStart??i.pointStart??n.getColumn(`x`)[0]},!m&&{data:n.options.data},e,c),m&&e.data&&(e.data=n.options.data),(f=[`group`,`markerGroup`,`dataLabelsGroup`,`transformGroup`].concat(f)).forEach(function(e){f[e]=n[e],delete n[e]});let h=!1;if(jo[p]){if(h=p!==n.type,n.remove(!1,!1,!1,!0),h)if(r.propFromSeries(),Object.setPrototypeOf)Object.setPrototypeOf(n,jo[p].prototype);else{let e=Object.hasOwnProperty.call(n,`hcEvents`)&&n.hcEvents;for(d in s)n[d]=void 0;Ho(n,jo[p].prototype),e?n.hcEvents=e:delete n.hcEvents}}else Vo(17,!0,r,{missingModuleFor:p});if(f.forEach(function(e){n[e]=f[e]}),n.init(r,e),m&&this.points)for(let e of(!1===(u=n.options).visible?(l.graphic=1,l.dataLabel=1):(this.hasMarkerChanged(u,i)&&(l.graphic=1),n.hasDataLabels?.()||(l.dataLabel=1)),this.points))e?.series&&(e.resolveColor(),Object.keys(l).length&&e.destroyElements(l),!1===u.showInLegend&&e.legendItem&&r.legend.destroyItem(e));n.initialType=a,r.linkSeries(),r.setSortedData(),h&&n.linkedSeries.length&&(n.isDirtyData=!0),J(this,`afterUpdate`),X(t,!0)&&r.redraw(!!m&&void 0)}setName(e){this.name=this.options.name=this.userOptions.name=e,this.chart.isDirtyLegend=!0}hasOptionChanged(e){let t=this.chart,n=this.options[e],r=t.options.plotOptions,i=this.userOptions[e],a=X(r?.[this.type]?.[e],r?.series?.[e]);return i&&!q(a)?n!==i:n!==X(a,n)}onMouseOver(){let e=this.chart,t=e.hoverSeries;e.pointer?.setHoverChartIndex(),t&&t!==this&&t.onMouseOut(),this.options.events.mouseOver&&J(this,`mouseOver`),this.setState(`hover`),e.hoverSeries=this}onMouseOut(){let e=this.options,t=this.chart,n=t.tooltip,r=t.hoverPoint;t.hoverSeries=null,r&&r.onMouseOut(),this&&e.events.mouseOut&&J(this,`mouseOut`),n&&!this.stickyTracking&&(!n.shared||this.noSharedTooltip)&&n.hide(),t.series.forEach(function(e){e.setState(``,!0)})}setState(e,t){let n=this,r=n.options,i=n.graph,a=r.inactiveOtherPoints,o=r.states,s=X(o[e||`normal`]&&o[e||`normal`].animation,n.chart.options.chart.animation),c=r.lineWidth,l=r.opacity;if(e||=``,n.state!==e&&([n.group,n.markerGroup,n.dataLabelsGroup].forEach(function(t){t&&(n.state&&t.removeClass(`highcharts-series-`+n.state),e&&t.addClass(`highcharts-series-`+e))}),n.state=e,!n.chart.styledMode)){if(o[e]&&!1===o[e].enabled)return;if(e&&(c=o[e].lineWidth||c+(o[e].lineWidthPlus||0),l=X(o[e].opacity,l)),i&&!i.dashstyle&&Y(c))for(let e of[i,...this.zones.map(e=>e.graph)])e?.animate({"stroke-width":c},s);a||[n.group,n.markerGroup,n.dataLabelsGroup,n.labelBySeries].forEach(function(e){e&&e.animate({opacity:l},s)})}t&&a&&n.points&&n.setAllPointsToState(e||void 0)}setAllPointsToState(e){this.points.forEach(function(t){t.setState&&t.setState(e)})}setVisible(e,t){let n=this,r=n.chart,i=r.options.chart.ignoreHiddenSeries,a=n.visible;n.visible=e=n.options.visible=n.userOptions.visible=e===void 0?!a:e;let o=e?`show`:`hide`;[`group`,`dataLabelsGroup`,`markerGroup`,`tracker`,`tt`].forEach(e=>{n[e]?.[o]()}),(r.hoverSeries===n||r.hoverPoint?.series===n)&&n.onMouseOut(),n.legendItem&&r.legend.colorizeItem(n,e),n.isDirty=!0,n.options.stacking&&r.series.forEach(e=>{e.options.stacking&&e.visible&&(e.isDirty=!0)}),n.linkedSeries.forEach(t=>{t.setVisible(e,!1)}),i&&(r.isDirtyBox=!0),J(n,o),!1!==t&&r.redraw()}show(){this.setVisible(!0)}hide(){this.setVisible(!1)}select(e){this.selected=e=this.options.selected=e===void 0?!this.selected:e,this.checkbox&&(this.checkbox.checked=e),J(this,e?`select`:`unselect`)}shouldShowTooltip(e,t,n={}){return n.series=this,n.visiblePlotOnly=!0,this.chart.isInsidePlot(e,t,n)}drawLegendSymbol(e,t){bo[this.options.legendSymbol||`rectangle`]?.call(this,e,t)}}$o.defaultOptions={lineWidth:2,allowPointSelect:!1,crisp:!0,showCheckbox:!1,animation:{duration:1e3},enableMouseTracking:!0,events:{},marker:{enabledThreshold:2,lineColor:`#ffffff`,lineWidth:0,radius:4,states:{normal:{animation:!0},hover:{animation:{duration:150},enabled:!0,radiusPlus:2,lineWidthPlus:1},select:{fillColor:`#cccccc`,lineColor:`#000000`,lineWidth:2}}},point:{events:{}},dataLabels:{animation:{},align:`center`,borderWidth:0,defer:!0,formatter:function(){let{numberFormatter:e}=this.series.chart;return typeof this.y==`number`?e(this.y,-1):``},padding:5,style:{fontSize:`0.7em`,fontWeight:`bold`,color:`contrast`,textOutline:`1px contrast`},verticalAlign:`bottom`,x:0,y:0},cropThreshold:300,opacity:1,pointRange:0,softThreshold:!0,states:{normal:{animation:!0},hover:{animation:{duration:150},lineWidthPlus:1,marker:{},halo:{size:10,opacity:.25}},select:{animation:{duration:0}},inactive:{animation:{duration:150},opacity:.2}},stickyTracking:!0,turboThreshold:1e3,findNearestPointBy:`x`},$o.types=K.seriesTypes,$o.registerType=K.registerSeriesType,$o.keepProps=[`colorIndex`,`eventOptions`,`navigatorSeries`,`symbolIndex`,`baseSeries`],$o.keepPropsForPoints=[`data`,`isDirtyData`,`isDirtyCanvas`,`points`,`dataTable`,`processedData`,`xIncrement`,`cropped`,`_hasPointMarkers`,`hasDataLabels`,`nodes`,`layout`,`level`,`mapMap`,`mapData`,`minY`,`maxY`,`minX`,`maxX`,`transformGroups`],Ho($o.prototype,{axisTypes:[`xAxis`,`yAxis`],coll:`series`,colorCounter:0,directTouch:!1,invertible:!0,isCartesian:!0,kdAxisArray:[`clientX`,`plotY`],parallelArrays:[`x`,`y`],pointClass:Ga,requireSorting:!0,sorted:!0}),K.series=$o;let Z=$o,{animObject:es,setAnimation:ts}=L,{registerEventOptions:ns}=Gr,{composed:rs,marginNames:is}=S,{distribute:as}=Ut,{format:os}=Lt,{addEvent:ss,createElement:cs,css:ls,defined:us,discardElement:ds,find:fs,fireEvent:ps,isNumber:ms,merge:hs,pick:gs,pushUnique:_s,relativeLength:vs,stableSort:ys,syncTimeout:bs}=M;class xs{constructor(e,t){this.allItems=[],this.initialItemY=0,this.itemHeight=0,this.itemMarginBottom=0,this.itemMarginTop=0,this.itemX=0,this.itemY=0,this.lastItemY=0,this.lastLineHeight=0,this.legendHeight=0,this.legendWidth=0,this.maxItemWidth=0,this.maxLegendWidth=0,this.offsetWidth=0,this.padding=0,this.pages=[],this.symbolHeight=0,this.symbolWidth=0,this.titleHeight=0,this.totalItemWidth=0,this.widthOption=0,this.chart=e,this.setOptions(t),t.enabled&&(this.render(),ns(this,t),ss(this.chart,`endResize`,function(){this.legend.positionCheckboxes()})),ss(this.chart,`render`,()=>{this.options.enabled&&this.proximate&&(this.proximatePositions(),this.positionItems())})}setOptions(e){let t=gs(e.padding,8);this.options=e,this.chart.styledMode||(this.itemStyle=e.itemStyle,this.itemHiddenStyle=hs(this.itemStyle,e.itemHiddenStyle)),this.itemMarginTop=e.itemMarginTop,this.itemMarginBottom=e.itemMarginBottom,this.padding=t,this.initialItemY=t-5,this.symbolWidth=gs(e.symbolWidth,16),this.pages=[],this.proximate=e.layout===`proximate`&&!this.chart.inverted,this.baseline=void 0}update(e,t){let n=this.chart;this.setOptions(hs(!0,this.options,e)),`events`in this.options&&ns(this,this.options),this.destroy(),n.isDirtyLegend=n.isDirtyBox=!0,gs(t,!0)&&n.redraw(),ps(this,`afterUpdate`,{redraw:t})}colorizeItem(e,t){let n=e.color,{area:r,group:i,label:a,line:o,symbol:s}=e.legendItem||{};if((e instanceof Z||e instanceof Ga)&&(e.color=e.options?.legendSymbolColor||n),i?.[t?`removeClass`:`addClass`](`highcharts-legend-item-hidden`),!this.chart.styledMode){let{itemHiddenStyle:n={}}=this,i=n.color,{fillColor:c,fillOpacity:l,lineColor:u,marker:d}=e.options,f=e=>(!t&&(e.fill&&=i,e.stroke&&=i),e);a?.css(hs(t?this.itemStyle:n)),o?.attr(f({stroke:u||e.color})),s&&s.attr(f(d&&s.isMarker?e.pointAttribs():{fill:e.color})),r?.attr(f({fill:c||e.color,"fill-opacity":c?1:l??.75}))}e.color=n,ps(this,`afterColorizeItem`,{item:e,visible:t})}positionItems(){this.allItems.forEach(this.positionItem,this),this.chart.isResizing||this.positionCheckboxes()}positionItem(e){let{group:t,x:n=0,y:r=0}=e.legendItem||{},i=this.options,a=i.symbolPadding,o=!i.rtl,s=e.checkbox;if(t?.element){let i={translateX:o?n:this.legendWidth-n-2*a-4,translateY:r};t[us(t.translateY)?`animate`:`attr`](i,void 0,()=>{ps(this,`afterPositionItem`,{item:e})})}s&&(s.x=n,s.y=r)}destroyItem(e){let t=e.legendItem||{};for(let e of[`group`,`label`,`line`,`symbol`])t[e]&&(t[e]=t[e].destroy());e.checkbox=ds(e.checkbox),e.legendItem=void 0}destroy(){for(let e of this.getAllItems())this.destroyItem(e);for(let e of[`clipRect`,`up`,`down`,`pager`,`nav`,`box`,`title`,`group`])this[e]&&(this[e]=this[e].destroy());this.display=null}positionCheckboxes(){let e,t=this.group?.alignAttr,n=this.clipHeight||this.legendHeight,r=this.titleHeight;t&&(e=t.translateY,this.allItems.forEach(function(i){let a,o=i.checkbox;o&&(a=e+r+o.y+(this.scrollOffset||0)+3,ls(o,{left:t.translateX+i.checkboxOffset+o.x-20+`px`,top:a+`px`,display:this.proximate||a>e-6&&a1.5*x?b.height:x))}layoutItem(e){let t=this.options,n=this.padding,r=t.layout===`horizontal`,i=e.itemHeight,a=this.itemMarginBottom,o=this.itemMarginTop,s=r?gs(t.itemDistance,20):0,c=this.maxLegendWidth,l=t.alignColumns&&this.totalItemWidth>c?this.maxItemWidth:e.itemWidth,u=e.legendItem||{};r&&this.itemX-n+l>c&&(this.itemX=n,this.lastLineHeight&&(this.itemY+=o+this.lastLineHeight+a),this.lastLineHeight=0),this.lastItemY=o+this.itemY+a,this.lastLineHeight=Math.max(i,this.lastLineHeight),u.x=this.itemX,u.y=this.itemY,r?this.itemX+=l:(this.itemY+=o+i+a,this.lastLineHeight=i),this.offsetWidth=this.widthOption||Math.max((r?this.itemX-n-(e.checkbox?0:s):l)+n,this.offsetWidth)}getAllItems(){let e=[];return this.chart.series.forEach(function(t){let n=t?.options;t&&gs(n.showInLegend,!us(n.linkedTo)&&void 0,!0)&&(e=e.concat(t.legendItem?.labels||(n.legendType===`point`?t.data:t)))}),ps(this,`afterGetAllItems`,{allItems:e}),e}getAlignment(){let e=this.options;return this.proximate?e.align.charAt(0)+`tv`:e.floating?``:e.align.charAt(0)+e.verticalAlign.charAt(0)+e.layout.charAt(0)}adjustMargins(e,t){let n=this.chart,r=this.options,i=this.getAlignment();i&&[/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/].forEach((a,o)=>{a.test(i)&&!us(e[o])&&(n[is[o]]=Math.max(n[is[o]],n.legend[(o+1)%2?`legendHeight`:`legendWidth`]+[1,-1,-1,1][o]*r[o%2?`x`:`y`]+(r.margin??12)+t[o]+(n.titleOffset[o]||0)))})}proximatePositions(){let e,t=this.chart,n=[],r=this.options.align===`left`;for(let i of(this.allItems.forEach(function(e){let i,a,o=r,s,c;e.yAxis&&(e.xAxis.options.reversed&&(o=!o),e.points&&(i=fs(o?e.points:e.points.slice(0).reverse(),function(e){return ms(e.plotY)})),a=this.itemMarginTop+e.legendItem.label.getBBox().height+this.itemMarginBottom,c=e.yAxis.top-t.plotTop,s=e.visible?(i?i.plotY:e.yAxis.height)+(c-.3*a):c+e.yAxis.height,n.push({target:s,size:a,item:e}))},this),as(n,t.plotHeight)))e=i.item.legendItem||{},ms(i.pos)&&(e.y=t.plotTop-t.spacing[0]+i.pos)}render(){let e=this.chart,t=e.renderer,n=this.options,r=this.padding,i=this.getAllItems(),a,o,s,c=this.group,l,u=this.box;this.itemX=r,this.itemY=this.initialItemY,this.offsetWidth=0,this.lastItemY=0,this.widthOption=vs(n.width,e.spacingBox.width-r),l=e.spacingBox.width-2*r-n.x,[`rm`,`lm`].indexOf(this.getAlignment().substring(0,2))>-1&&(l/=2),this.maxLegendWidth=this.widthOption||l,c||(this.group=c=t.g(`legend`).addClass(n.className||``).attr({zIndex:7}).add(),this.contentGroup=t.g().attr({zIndex:1}).add(c),this.scrollGroup=t.g().add(this.contentGroup)),this.renderTitle(),ys(i,(e,t)=>(e.options?.legendIndex||0)-(t.options?.legendIndex||0)),n.reversed&&i.reverse(),this.allItems=i,this.display=a=!!i.length,this.lastLineHeight=0,this.maxItemWidth=0,this.totalItemWidth=0,this.itemHeight=0,i.forEach(this.renderItem,this),i.forEach(this.layoutItem,this),o=(this.widthOption||this.offsetWidth)+r,s=this.lastItemY+this.lastLineHeight+this.titleHeight,s=this.handleOverflow(s)+r,u||(this.box=u=t.rect().addClass(`highcharts-legend-box`).attr({r:n.borderRadius}).add(c)),e.styledMode||u.attr({stroke:n.borderColor,"stroke-width":n.borderWidth||0,fill:n.backgroundColor||`none`}).shadow(n.shadow),o>0&&s>0&&u[u.placed?`animate`:`attr`](u.crisp.call({},{x:0,y:0,width:o,height:s},u.strokeWidth())),c[a?`show`:`hide`](),e.styledMode&&c.getStyle(`display`)===`none`&&(o=s=0),this.legendWidth=o,this.legendHeight=s,a&&this.align(),this.proximate||this.positionItems(),ps(this,`afterRender`)}align(e=this.chart.spacingBox){let t=this.chart,n=this.options,r=e.y;/(lth|ct|rth)/.test(this.getAlignment())&&t.titleOffset[0]>0?r+=t.titleOffset[0]:/(lbh|cb|rbh)/.test(this.getAlignment())&&t.titleOffset[2]>0&&(r-=t.titleOffset[2]),r!==e.y&&(e=hs(e,{y:r})),t.hasRendered||(this.group.placed=!1),this.group.align(hs(n,{width:this.legendWidth,height:this.legendHeight,verticalAlign:this.proximate?`top`:n.verticalAlign}),!0,e)}handleOverflow(e){let t=this,n=this.chart,r=n.renderer,i=this.options,a=i.y,o=i.verticalAlign===`top`,s=this.padding,c=i.maxHeight,l=i.navigation,u=gs(l.animation,!0),d=l.arrowSize||12,f=this.pages,p=this.allItems,m=function(e){typeof e==`number`?S.attr({height:e}):S&&(t.clipRect=S.destroy(),t.contentGroup.clip()),t.contentGroup.div&&(t.contentGroup.div.style.clip=e?`rect(`+s+`px,9999px,`+(s+e)+`px,0)`:`auto`)},h=function(e){return t[e]=r.circle(0,0,1.3*d).translate(d/2,d/2).add(x),n.styledMode||t[e].attr(`fill`,`rgba(0,0,0,0.0001)`),t[e]},g,_,v,y,b=n.spacingBox.height+(o?-a:a)-s,x=this.nav,S=this.clipRect;return i.layout!==`horizontal`||i.verticalAlign===`middle`||i.floating||(b/=2),c&&(b=Math.min(b,c)),f.length=0,e&&b>0&&e>b&&!1!==l.enabled?(this.clipHeight=g=Math.max(b-20-this.titleHeight-s,0),this.currentPage=gs(this.currentPage,1),this.fullHeight=e,p.forEach((e,t)=>{let n=(v=e.legendItem||{}).y||0,r=Math.round(v.label.getBBox().height),i=f.length;(!i||n-f[i-1]>g&&(_||n)!==f[i-1])&&(f.push(_||n),i++),v.pageIx=i-1,_&&y&&(y.pageIx=i-1),t===p.length-1&&n+r-f[i-1]>g&&n>f[i-1]&&(f.push(n),v.pageIx=i),n!==_&&(_=n),y=v}),S||(S=t.clipRect=r.clipRect(0,s-2,9999,0),t.contentGroup.clip(S)),m(g),x||(this.nav=x=r.g().attr({zIndex:1}).add(this.group),this.up=r.symbol(`triangle`,0,0,d,d).add(x),h(`upTracker`).on(`click`,function(){t.scroll(-1,u)}),this.pager=r.text(``,15,10).addClass(`highcharts-legend-navigation`),!n.styledMode&&l.style&&this.pager.css(l.style),this.pager.add(x),this.down=r.symbol(`triangle-down`,0,0,d,d).add(x),h(`downTracker`).on(`click`,function(){t.scroll(1,u)})),t.scroll(0),e=b):x&&(m(),this.nav=x.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0),e}scroll(e,t){let n=this.chart,r=this.pages,i=r.length,a=this.clipHeight,o=this.options.navigation,s=this.pager,c=this.padding,l=this.currentPage+e;l>i&&(l=i),l>0&&(t!==void 0&&ts(t,n),this.nav.attr({translateX:c,translateY:a+this.padding+7+this.titleHeight,visibility:`inherit`}),[this.up,this.upTracker].forEach(function(e){e.attr({class:l===1?`highcharts-legend-nav-inactive`:`highcharts-legend-nav-active`})}),s.attr({text:l+`/`+i}),[this.down,this.downTracker].forEach(function(e){e.attr({x:18+this.pager.getBBox().width,class:l===i?`highcharts-legend-nav-inactive`:`highcharts-legend-nav-active`})},this),n.styledMode||(this.up.attr({fill:l===1?o.inactiveColor:o.activeColor}),this.upTracker.css({cursor:l===1?`default`:`pointer`}),this.down.attr({fill:l===i?o.inactiveColor:o.activeColor}),this.downTracker.css({cursor:l===i?`default`:`pointer`})),this.scrollOffset=-r[l-1]+this.initialItemY,this.scrollGroup.animate({translateY:this.scrollOffset}),this.currentPage=l,this.positionCheckboxes(),bs(()=>{ps(this,`afterScroll`,{currentPage:l})},es(gs(t,n.renderer.globalAnimation,!0)).duration))}setItemEvents(e,t,n){let r=this,i=e.legendItem||{},a=r.chart.renderer.boxWrapper,o=e instanceof Ga,s=e instanceof Z,c=`highcharts-legend-`+(o?`point`:`series`)+`-active`,l=r.chart.styledMode,u=n?[t,i.symbol]:[i.group],d=t=>{r.allItems.forEach(n=>{e!==n&&[n].concat(n.linkedSeries||[]).forEach(e=>{e.setState(t,!o)})})};for(let n of u)n&&n.on(`mouseover`,function(){e.visible&&d(`inactive`),e.setState(`hover`),e.visible&&a.addClass(c),l||t.css(r.options.itemHoverStyle)}).on(`mouseout`,function(){r.chart.styledMode||t.css(hs(e.visible?r.itemStyle:r.itemHiddenStyle)),d(``),a.removeClass(c),e.setState()}).on(`click`,function(t){a.removeClass(c),ps(r,`itemClick`,{browserEvent:t,legendItem:e},function(){e.setVisible&&e.setVisible(),d(e.visible?`inactive`:``)}),o?e.firePointEvent(`legendItemClick`,{browserEvent:t}):s&&ps(e,`legendItemClick`,{browserEvent:t})})}createCheckboxForItem(e){e.checkbox=cs(`input`,{type:`checkbox`,className:`highcharts-legend-checkbox`,checked:e.selected,defaultChecked:e.selected},this.options.itemCheckboxStyle,this.chart.container),ss(e.checkbox,`click`,function(t){let n=t.target;ps(e.series||e,`checkboxClick`,{checked:n.checked,item:e},function(){e.select()})})}}(function(e){e.compose=function(t){_s(rs,`Core.Legend`)&&ss(t,`beforeMargins`,function(){this.legend=new e(this,this.options.legend)})}})(xs||={});let Ss=xs,{animate:Cs,animObject:ws,setAnimation:Ts}=L,{defaultOptions:Es}=Be,{numberFormat:Ds}=Lt,{registerEventOptions:Os}=Gr,{charts:ks,doc:As,marginNames:js,svg:Ms,win:Ns}=S,{seriesTypes:Ps}=K,{addEvent:Fs,attr:Is,createElement:Ls,css:Rs,defined:zs,diffObjects:Bs,discardElement:Vs,erase:Hs,error:Us,extend:Ws,find:Gs,fireEvent:Q,getAlignFactor:Ks,getStyle:qs,isArray:Js,isNumber:Ys,isObject:Xs,isString:Zs,merge:Qs,objectEach:$s,pick:$,pInt:ec,relativeLength:tc,removeEvent:nc,splat:rc,syncTimeout:ic,uniqueKey:ac}=M;class oc{static chart(e,t,n){return new oc(e,t,n)}constructor(e,t,n){this.sharedClips={};let r=[...arguments];(Zs(e)||e.nodeName)&&(this.renderTo=r.shift()),this.init(r[0],r[1])}setZoomOptions(){let e=this.options.chart,t=e.zooming;this.zooming={...t,type:$(e.zoomType,t.type),key:$(e.zoomKey,t.key),pinchType:$(e.pinchType,t.pinchType),singleTouch:$(e.zoomBySingleTouch,t.singleTouch,!1),resetButton:Qs(t.resetButton,e.resetZoomButton)}}init(e,t){Q(this,`init`,{args:arguments},function(){let n=Qs(Es,e),r=n.chart,i=this.renderTo||r.renderTo;this.userOptions=Ws({},e),(this.renderTo=Zs(i)?As.getElementById(i):i)||Us(13,!0,this),this.margin=[],this.spacing=[],this.labelCollectors=[],this.callback=t,this.isResizing=0,this.options=n,this.axes=[],this.series=[],this.locale=n.lang.locale??this.renderTo.closest(`[lang]`)?.lang,this.time=new Pe(Ws(n.time||{},{locale:this.locale}),n.lang),n.time=this.time.options,this.numberFormatter=(r.numberFormatter||Ds).bind(this),this.styledMode=r.styledMode,this.hasCartesianSeries=r.showAxes,this.index=ks.length,ks.push(this),S.chartCount++,Os(this,r),this.xAxis=[],this.yAxis=[],this.pointCount=this.colorCounter=this.symbolCounter=0,this.setZoomOptions(),Q(this,`afterInit`),this.firstRender()})}initSeries(e){let t=this.options.chart,n=e.type||t.type,r=Ps[n];r||Us(17,!0,this,{missingModuleFor:n});let i=new r;return typeof i.init==`function`&&i.init(this,e),i}setSortedData(){this.getSeriesOrderByLinks().forEach(function(e){e.points||e.data||!e.enabledDataSorting||e.setData(e.options.data,!1)})}getSeriesOrderByLinks(){return this.series.concat().sort(function(e,t){return e.linkedSeries.length||t.linkedSeries.length?t.linkedSeries.length-e.linkedSeries.length:0})}orderItems(e,t=0){let n=this[e],r=this.options[e]=rc(this.options[e]).slice(),i=this.userOptions[e]=this.userOptions[e]?rc(this.userOptions[e]).slice():[];if(this.hasRendered&&(r.splice(t),i.splice(t)),n)for(let e=t,a=n.length;e=Math.max(c+a,e.pos)&&t<=Math.min(c+a+d.width,e.pos+e.len)||(m.isInsidePlot=!1)}if(!n.ignoreY&&m.isInsidePlot){let e=!r&&n.axis&&!n.axis.isXAxis&&n.axis||u&&(r?u.xAxis:u.yAxis)||{pos:o,len:1/0},t=n.paneCoordinates?e.pos+p:o+p;t>=Math.max(l+o,e.pos)&&t<=Math.min(l+o+d.height,e.pos+e.len)||(m.isInsidePlot=!1)}return Q(this,`afterIsInsidePlot`,m),m.isInsidePlot}redraw(e){Q(this,`beforeRedraw`);let t=this.hasCartesianSeries?this.axes:this.colorAxis||[],n=this.series,r=this.pointer,i=this.legend,a=this.userOptions.legend,o=this.renderer,s=o.isHidden(),c=[],l,u,d,f=this.isDirtyBox,p=this.isDirtyLegend,m;for(o.rootFontSize=o.boxWrapper.getStyle(`font-size`),this.setResponsive&&this.setResponsive(!1),Ts(!!this.hasRendered&&e,this),s&&this.temporaryDisplay(),this.layOutTitles(!1),d=n.length;d--;)if(((m=n[d]).options.stacking||m.options.centerInCategory)&&(u=!0,m.isDirty)){l=!0;break}if(l)for(d=n.length;d--;)(m=n[d]).options.stacking&&(m.isDirty=!0);n.forEach(function(e){e.isDirty&&(e.options.legendType===`point`?(typeof e.updateTotals==`function`&&e.updateTotals(),p=!0):a&&(a.labelFormatter||a.labelFormat)&&(p=!0)),e.isDirtyData&&Q(e,`updatedData`)}),p&&i&&i.options.enabled&&(i.render(),this.isDirtyLegend=!1),u&&this.getStacks(),t.forEach(function(e){e.updateNames(),e.setScale()}),this.getMargins(),t.forEach(function(e){e.isDirty&&(f=!0)}),t.forEach(function(e){let t=e.min+`,`+e.max;e.extKey!==t&&(e.extKey=t,c.push(function(){Q(e,`afterSetExtremes`,Ws(e.eventArgs,e.getExtremes())),delete e.eventArgs})),(f||u)&&e.redraw()}),f&&this.drawChartBox(),Q(this,`predraw`),n.forEach(function(e){(f||e.isDirty)&&e.visible&&e.redraw(),e.isDirtyData=!1}),r&&r.reset(!0),o.draw(),Q(this,`redraw`),Q(this,`render`),s&&this.temporaryDisplay(!0),c.forEach(function(e){e.call()})}get(e){let t=this.series;function n(t){return t.id===e||t.options&&t.options.id===e}let r=Gs(this.axes,n)||Gs(this.series,n);for(let e=0;!r&&e(t.getPointsCollection().forEach(t=>{$(t.selectedStaging,t.selected)&&e.push(t)}),e),[])}getSelectedSeries(){return this.series.filter(e=>e.selected)}setTitle(e,t,n){this.applyDescription(`title`,e),this.applyDescription(`subtitle`,t),this.applyDescription(`caption`,void 0),this.layOutTitles(n)}applyDescription(e,t){let n=this,r=this.options[e]=Qs(this.options[e],t),i=this[e];i&&t&&(this[e]=i=i.destroy()),r&&!i&&((i=this.renderer.text(r.text,0,0,r.useHTML).attr({align:r.align,class:`highcharts-`+e,zIndex:r.zIndex||4}).css({textOverflow:`ellipsis`,whiteSpace:`nowrap`}).add()).update=function(t,r){n.applyDescription(e,t),n.layOutTitles(r)},this.styledMode||i.css(Ws(e===`title`?{fontSize:this.options.isStock?`1em`:`1.2em`}:{},r.style)),i.textPxLength=i.getBBox().width,i.css({whiteSpace:r.style?.whiteSpace}),this[e]=i)}layOutTitles(e=!0){let t=[0,0,0],{options:n,renderer:r,spacingBox:i}=this;[`title`,`subtitle`,`caption`].forEach(e=>{let n=this[e],a=this.options[e],o=Qs(i),s=n?.textPxLength||0;if(n&&a){Q(this,`layOutTitle`,{alignTo:o,key:e,textPxLength:s});let i=r.fontMetrics(n),c=i.b,l=i.h,u=a.verticalAlign||`top`,d=u===`top`,f=d&&a.minScale||1,p=e===`title`?d?-3:0:d?t[0]+2:0,m=Math.min(o.width/s,1),h=Math.max(f,m),g=Qs({y:u===`bottom`?c:p+c},{align:e===`title`?mf?this.chartWidth:o.width)/h)+`px`;n.alignValue!==g.align&&(n.placed=!1);let v=Math.round(n.css({width:_}).getBBox(a.useHTML).height);if(g.height=v,n.align(g,!1,o).attr({align:g.align,scaleX:h,scaleY:h,"transform-origin":`${o.x+s*h*Ks(g.align)} ${l}`}),!a.floating){let e=v*(v<1.2*l?1:h);u===`top`?t[0]=Math.ceil(t[0]+e):u===`bottom`&&(t[2]=Math.ceil(t[2]+e))}}},this),t[0]&&(n.title?.verticalAlign||`top`)===`top`&&(t[0]+=n.title?.margin||0),t[2]&&n.caption?.verticalAlign===`bottom`&&(t[2]+=n.caption?.margin||0);let a=!this.titleOffset||this.titleOffset.join(`,`)!==t.join(`,`);this.titleOffset=t,Q(this,`afterLayOutTitles`),!this.isDirtyBox&&a&&(this.isDirtyBox=this.isDirtyLegend=a,this.hasRendered&&e&&this.isDirtyBox&&this.redraw())}getContainerBox(){let e=[].map.call(this.renderTo.children,e=>{if(e!==this.container){let t=e.style.display;return e.style.display=`none`,[e,t]}}),t={width:qs(this.renderTo,`width`,!0)||0,height:qs(this.renderTo,`height`,!0)||0};return e.filter(Boolean).forEach(([e,t])=>{e.style.display=t}),t}getChartSize(){let e=this.options.chart,t=e.width,n=e.height,r=this.getContainerBox(),i=r.height<=1||!this.renderTo.parentElement?.style.height&&this.renderTo.style.height===`100%`;this.chartWidth=Math.max(0,t||r.width||600),this.chartHeight=Math.max(0,tc(n,this.chartWidth)||(i?400:r.height)),this.containerBox=r}temporaryDisplay(e){let t=this.renderTo,n;if(e)for(;t?.style;)t.hcOrigStyle&&(Rs(t,t.hcOrigStyle),delete t.hcOrigStyle),t.hcOrigDetached&&=(As.body.removeChild(t),!1),t=t.parentNode;else for(;t?.style&&(As.body.contains(t)||t.parentNode||(t.hcOrigDetached=!0,As.body.appendChild(t)),(qs(t,`display`,!1)===`none`||t.hcOricDetached)&&(t.hcOrigStyle={display:t.style.display,height:t.style.height,overflow:t.style.overflow},n={display:`block`,overflow:`hidden`},t!==this.renderTo&&(n.height=0),Rs(t,n),t.offsetWidth||t.style.setProperty(`display`,`block`,`important`)),(t=t.parentNode)!==As.body););}setClassName(e){this.container.className=`highcharts-container `+(e||``)}getContainer(){let e,t=this.options,n=t.chart,r=`data-highcharts-chart`,i=ac(),a=this.renderTo,o=ec(Is(a,r));Ys(o)&&ks[o]&&ks[o].hasRendered&&ks[o].destroy(),Is(a,r,this.index),a.innerHTML=R.emptyHTML,n.skipClone||a.offsetWidth||this.temporaryDisplay(),this.getChartSize();let s=this.chartHeight,c=this.chartWidth;Rs(a,{overflow:`hidden`}),this.styledMode||(e=Ws({position:`relative`,overflow:`hidden`,width:c+`px`,height:s+`px`,textAlign:`left`,lineHeight:`normal`,zIndex:0,"-webkit-tap-highlight-color":`rgba(0,0,0,0)`,userSelect:`none`,"touch-action":`manipulation`,outline:`none`,padding:`0px`},n.style||{}));let l=Ls(`div`,{id:i},e,a);if(this.container=l,this.getChartSize(),c!==this.chartWidth&&(c=this.chartWidth,this.styledMode||Rs(l,{width:$(n.style?.width,c+`px`)})),this.containerBox=this.getContainerBox(),this._cursor=l.style.cursor,this.renderer=new(n.renderer||!Ms?Rt.getRendererType(n.renderer):wr)(l,c,s,void 0,n.forExport,t.exporting?.allowHTML,this.styledMode),Ts(void 0,this),this.setClassName(n.className),this.styledMode)for(let e in t.defs)this.renderer.definition(t.defs[e]);else this.renderer.setStyle(n.style);this.renderer.chartIndex=this.index,Q(this,`afterGetContainer`)}getMargins(e){let{spacing:t,margin:n,titleOffset:r}=this;this.resetMargins(),r[0]&&!zs(n[0])&&(this.plotTop=Math.max(this.plotTop,r[0]+t[0])),r[2]&&!zs(n[2])&&(this.marginBottom=Math.max(this.marginBottom,r[2]+t[2])),this.legend?.display&&this.legend.adjustMargins(n,t),Q(this,`getMargins`),e||this.getAxisMargins()}getAxisMargins(){let e=this,t=e.axisOffset=[0,0,0,0],n=e.colorAxis,r=e.margin,i=e=>{e.forEach(e=>{e.visible&&e.getOffset()})};e.hasCartesianSeries?i(e.axes):n?.length&&i(n),js.forEach((n,i)=>{zs(r[i])||(e[n]+=t[i])}),e.setChartSize()}getOptions(){return Bs(this.userOptions,Es)}reflow(e){let t=this,n=t.containerBox,r=t.getContainerBox();delete t.pointer?.chartPosition,!t.exporting?.isPrinting&&!t.isResizing&&n&&r.width&&((r.width!==n.width||r.height!==n.height)&&(M.clearTimeout(t.reflowTimeout),t.reflowTimeout=ic(function(){t.container&&t.setSize(void 0,void 0,!1)},100*!!e)),t.containerBox=r)}setReflow(){let e=this,t=t=>{e.options?.chart.reflow&&e.hasLoaded&&e.reflow(t)};if(typeof ResizeObserver==`function`)new ResizeObserver(t).observe(e.renderTo);else{let e=Fs(Ns,`resize`,t);Fs(this,`destroy`,e)}}setSize(e,t,n){let r=this,i=r.renderer;r.isResizing+=1,Ts(n,r);let a=i.globalAnimation;r.oldChartHeight=r.chartHeight,r.oldChartWidth=r.chartWidth,e!==void 0&&(r.options.chart.width=e),t!==void 0&&(r.options.chart.height=t),r.getChartSize();let{chartWidth:o,chartHeight:s,scrollablePixelsX:c=0,scrollablePixelsY:l=0}=r;(r.isDirtyBox||o!==r.oldChartWidth||s!==r.oldChartHeight)&&(r.styledMode||(a?Cs:Rs)(r.container,{width:`${o+c}px`,height:`${s+l}px`},a),r.setChartSize(!0),i.setSize(o,s,a),r.axes.forEach(function(e){e.isDirty=!0,e.setScale()}),r.isDirtyLegend=!0,r.isDirtyBox=!0,r.layOutTitles(),r.getMargins(),r.redraw(a),r.oldChartHeight=void 0,Q(r,`resize`),setTimeout(()=>{r&&Q(r,`endResize`)},ws(a).duration)),--r.isResizing}setChartSize(e){let t,n,r,i,{chartHeight:a,chartWidth:o,inverted:s,spacing:c,renderer:l}=this,u=this.clipOffset,d=Math[s?`floor`:`round`];this.plotLeft=t=Math.round(this.plotLeft),this.plotTop=n=Math.round(this.plotTop),this.plotWidth=r=Math.max(0,Math.round(o-t-(this.marginRight??0))),this.plotHeight=i=Math.max(0,Math.round(a-n-(this.marginBottom??0))),this.plotSizeX=s?i:r,this.plotSizeY=s?r:i,this.spacingBox=l.spacingBox={x:c[3],y:c[0],width:o-c[3]-c[1],height:a-c[0]-c[2]},this.plotBox=l.plotBox={x:t,y:n,width:r,height:i},u&&(this.clipBox={x:d(u[3]),y:d(u[0]),width:d(this.plotSizeX-u[1]-u[3]),height:d(this.plotSizeY-u[0]-u[2])}),e||(this.axes.forEach(function(e){e.setAxisSize(),e.setAxisTranslation()}),l.alignElements()),Q(this,`afterSetChartSize`,{skipAxes:e})}resetMargins(){Q(this,`resetMargins`);let e=this,t=e.options.chart,n=t.plotBorderWidth||0,r=Math.round(n)/2;[`margin`,`spacing`].forEach(n=>{let r=t[n],i=Xs(r)?r:[r,r,r,r];[`Top`,`Right`,`Bottom`,`Left`].forEach((r,a)=>{e[n][a]=t[`${n}${r}`]??i[a]})}),js.forEach((t,n)=>{e[t]=e.margin[n]??e.spacing[n]}),e.axisOffset=[0,0,0,0],e.clipOffset=[r,r,r,r],e.plotBorderWidth=n}drawChartBox(){let e=this.options.chart,t=this.renderer,n=this.chartWidth,r=this.chartHeight,i=this.styledMode,a=this.plotBGImage,o=e.backgroundColor,s=e.plotBackgroundColor,c=e.plotBackgroundImage,l=this.plotLeft,u=this.plotTop,d=this.plotWidth,f=this.plotHeight,p=this.plotBox,m=this.clipRect,h=this.clipBox,g=this.chartBackground,_=this.plotBackground,v=this.plotBorder,y,b,x,S=`animate`;g||(this.chartBackground=g=t.rect().addClass(`highcharts-background`).add(),S=`attr`),i?y=b=g.strokeWidth():(b=(y=e.borderWidth||0)+8*!!e.shadow,x={fill:o||`none`},(y||g[`stroke-width`])&&(x.stroke=e.borderColor,x[`stroke-width`]=y),g.attr(x).shadow(e.shadow)),g[S]({x:b/2,y:b/2,width:n-b-y%2,height:r-b-y%2,r:e.borderRadius}),S=`animate`,_||(S=`attr`,this.plotBackground=_=t.rect().addClass(`highcharts-plot-background`).add()),_[S](p),!i&&(_.attr({fill:s||`none`}).shadow(e.plotShadow),c&&(a?(c!==a.attr(`href`)&&a.attr(`href`,c),a.animate(p)):this.plotBGImage=t.image(c,l,u,d,f).add())),m?m.animate({width:h.width,height:h.height}):this.clipRect=t.clipRect(h),S=`animate`,v||(S=`attr`,this.plotBorder=v=t.rect().addClass(`highcharts-plot-border`).attr({zIndex:1}).add()),i||v.attr({stroke:e.plotBorderColor,"stroke-width":e.plotBorderWidth||0,fill:`none`}),v[S](v.crisp(p,-v.strokeWidth())),this.isDirtyBox=!1,Q(this,`afterDrawChartBox`)}propFromSeries(){let e,t,n,r=this,i=r.options.chart,a=r.options.series;[`inverted`,`angular`,`polar`].forEach(function(o){for(t=Ps[i.type],n=i[o]||t&&t.prototype[o],e=a?.length;!n&&e--;)(t=Ps[a[e].type])&&t.prototype[o]&&(n=!0);r[o]=n})}linkSeries(e){let t=this,n=t.series;n.forEach(function(e){e.linkedSeries.length=0}),n.forEach(function(e){let{linkedTo:n}=e.options;if(Zs(n)){let r;(r=n===`:previous`?t.series[e.index-1]:t.get(n))&&r.linkedParent!==e&&(r.linkedSeries.push(e),e.linkedParent=r,r.enabledDataSorting&&e.setDataSortingOptions(),e.visible=$(e.options.visible,r.options.visible,e.visible))}}),Q(this,`afterLinkSeries`,{isUpdating:e})}renderSeries(){this.series.forEach(function(e){e.translate(),e.render()})}render(){let e=this.axes,t=this.colorAxis,n=this.renderer,r=this.options.chart.axisLayoutRuns||2,i=e=>{e.forEach(e=>{e.visible&&e.render()})},a=0,o=!0,s,c=0;for(let t of(this.setTitle(),Q(this,`beforeMargins`),this.getStacks?.(),this.getMargins(!0),this.setChartSize(),e)){let{options:e}=t,{labels:n}=e;if(this.hasCartesianSeries&&t.horiz&&t.visible&&n.enabled&&t.series.length&&t.coll!==`colorAxis`&&!this.polar){a=e.tickLength,t.createGroups();let r=new ii(t,0,``,!0),i=r.createLabel(`x`,n);if(r.destroy(),i&&$(n.reserveSpace,!Ys(e.crossing))&&(a=i.getBBox().height+n.distance+Math.max(e.offset||0,0)),a){i?.destroy();break}}}for(this.plotHeight=Math.max(this.plotHeight-a,0);(o||s||r>1)&&c(c?1:1.1),s=n/this.plotHeight>(c?1:1.05),c++}this.drawChartBox(),this.hasCartesianSeries?i(e):t?.length&&i(t),this.seriesGroup||=n.g(`series-group`).attr({zIndex:3}).shadow(this.options.chart.seriesGroupShadow).add(),this.dataLabelsGroup||=n.g(`datalabels-group`).attr({zIndex:6}).add(),this.renderSeries(),this.addCredits(),this.setResponsive&&this.setResponsive(),this.hasRendered=!0}addCredits(e){let t=this,n=Qs(!0,this.options.credits,e);n.enabled&&!this.credits&&(this.credits=this.renderer.text(n.text+(this.mapCredits||``),0,0).addClass(`highcharts-credits`).on(`click`,function(){n.href&&(Ns.location.href=n.href)}).attr({align:n.position.align,zIndex:8}),t.styledMode||this.credits.css(n.style),this.credits.add().align(n.position),this.credits.update=function(e){t.credits=t.credits.destroy(),t.addCredits(e)})}destroy(){let e,t=this,n=t.axes,r=t.series,i=t.container,a=i?.parentNode;for(Q(t,`destroy`),t.renderer.forExport?Hs(ks,t):ks[t.index]=void 0,S.chartCount--,t.renderTo.removeAttribute(`data-highcharts-chart`),nc(t),e=n.length;e--;)n[e]=n[e].destroy();for(this.scroller?.destroy?.(),e=r.length;e--;)r[e]=r[e].destroy();[`title`,`subtitle`,`chartBackground`,`plotBackground`,`plotBGImage`,`plotBorder`,`seriesGroup`,`clipRect`,`credits`,`pointer`,`rangeSelector`,`legend`,`resetZoomButton`,`tooltip`,`renderer`].forEach(e=>{t[e]=t[e]?.destroy?.()}),i&&(i.innerHTML=R.emptyHTML,nc(i),a&&Vs(i)),$s(t,function(e,n){delete t[n]})}firstRender(){let e=this,t=e.options;e.getContainer(),e.resetMargins(),e.setChartSize(),e.propFromSeries(),e.createAxes();let n=Js(t.series)?t.series:[];t.series=[],n.forEach(function(t){e.initSeries(t)}),e.linkSeries(),e.setSortedData(),Q(e,`beforeRender`),e.render(),e.pointer?.getChartPosition(),e.renderer.imgCount||e.hasLoaded||e.onload(),e.temporaryDisplay(!0)}onload(){this.callbacks.concat([this.callback]).forEach(function(e){e&&this.index!==void 0&&e.apply(this,[this])},this),Q(this,`load`),Q(this,`render`),zs(this.index)&&this.setReflow(),this.warnIfA11yModuleNotLoaded(),this.hasLoaded=!0}warnIfA11yModuleNotLoaded(){let{options:e,title:t}=this;e&&!this.accessibility&&(this.renderer.boxWrapper.attr({role:`img`,"aria-label":(t?.element.textContent||``).replace(/this.transform({reset:!0,trigger:`zoom`}))}pan(e,t){let n=this,r=typeof t==`object`?t:{enabled:t,type:`x`},i=r.type,a=i&&n[{x:`xAxis`,xy:`axes`,y:`yAxis`}[i]].filter(e=>e.options.panningEnabled&&!e.options.isInternal),o=n.options.chart;o?.panning&&(o.panning=r),Q(this,`pan`,{originalEvent:e},()=>{n.transform({axes:a,event:e,to:{x:e.chartX-(n.mouseDownX||0),y:e.chartY-(n.mouseDownY||0)},trigger:`pan`}),Rs(n.container,{cursor:`move`})})}transform(e){let{axes:t=this.axes,event:n,from:r={},reset:i,selection:a,to:o={},trigger:s}=e,{inverted:c,time:l}=this;this.hoverPoints?.forEach(e=>e.setState()),Q(this,`transform`,e);let u=e.hasZoomed||!1,d,f;for(let e of t){let{horiz:t,len:p,minPointOffset:m=0,options:h,reversed:g}=e,_=t?`width`:`height`,v=t?`x`:`y`,y=$(o[_],e.len),b=$(r[_],e.len),x=10>Math.abs(y)?1:y/b,S=(r[v]||0)+b/2-e.pos,C=S-((o[v]??e.pos)+y/2-e.pos)/x,w=g&&!c||!g&&c?-1:1;if(!i&&(S<0||S>e.len))continue;let T=e.chart.polar||e.isOrdinal?0:m*w||0,E=e.toValue(C,!0),D=e.toValue(C+p/x,!0),O=E+T,k=D-T,A=e.allExtremes;if(a&&a[e.coll].push({axis:e,min:Math.min(E,D),max:Math.max(E,D)}),O>k&&([O,k]=[k,O]),x===1&&!i&&e.coll===`yAxis`&&!A){for(let t of e.series){let e=t.getExtremes(t.getProcessedData(!0).modified.getColumn(`y`)||[],!0);A??={dataMin:Number.MAX_VALUE,dataMax:-Number.MAX_VALUE},Ys(e.dataMin)&&Ys(e.dataMax)&&(A.dataMin=Math.min(e.dataMin,A.dataMin),A.dataMax=Math.max(e.dataMax,A.dataMax))}e.allExtremes=A}let{dataMin:ee,dataMax:j,min:te,max:ne}=Ws(e.getExtremes(),A||{}),re=l.parse(h.min),ie=l.parse(h.max),ae=ee??re,oe=j??ie,se=k-O,ce=e.categories?0:Math.min(se,oe-ae),le=ae-ce*(zs(re)?0:h.minPadding),ue=oe+ce*(zs(ie)?0:h.maxPadding),de=e.allowZoomOutside||x===1||s!==`zoom`&&x>1,fe=Math.min(re??le,le,de?te:le),pe=Math.max(ie??ue,ue,de?ne:ue);(!e.isOrdinal||x!==1||i)&&(O=1&&(k=O+se)),k>pe&&(k=pe,x>=1&&(O=k-se)),(i||e.series.length&&(O!==te||k!==ne)&&O>=fe&&k<=pe)&&(a?a[e.coll].push({axis:e,min:O,max:k}):(e.isPanning=s!==`zoom`,e.isPanning&&(f=!0),e.setExtremes(i?void 0:O,i?void 0:k,!1,!1,{move:C,trigger:s,scale:x}),!i&&(O>fe||k{delete e.selection,e.trigger=`zoom`,this.transform(e)}):(!d||f||this.resetZoomButton?!d&&this.resetZoomButton&&(this.resetZoomButton=this.resetZoomButton.destroy()):this.showResetZoom(),this.redraw(s===`zoom`&&(this.options.chart.animation??this.pointCount<100)))),u}}Ws(oc.prototype,{callbacks:[],collectionsWithInit:{xAxis:[oc.prototype.addAxis,[!0]],yAxis:[oc.prototype.addAxis,[!1]],series:[oc.prototype.addSeries]},collectionsWithUpdate:[`xAxis`,`yAxis`,`series`],propsRequireDirtyBox:[`backgroundColor`,`borderColor`,`borderWidth`,`borderRadius`,`plotBackgroundColor`,`plotBackgroundImage`,`plotBorderColor`,`plotBorderWidth`,`plotShadow`,`shadow`],propsRequireReflow:[`margin`,`marginTop`,`marginRight`,`marginBottom`,`marginLeft`,`spacing`,`spacingTop`,`spacingRight`,`spacingBottom`,`spacingLeft`],propsRequireUpdateSeries:[`chart.inverted`,`chart.polar`,`chart.ignoreHiddenSeries`,`chart.type`,`colors`,`plotOptions`,`time`,`tooltip`]});let{stop:sc}=L,{composed:cc}=S,{addEvent:lc,createElement:uc,css:dc,defined:fc,erase:pc,merge:mc,pushUnique:hc}=M;function gc(){let e=this.scrollablePlotArea;(this.scrollablePixelsX||this.scrollablePixelsY)&&!e&&(this.scrollablePlotArea=e=new vc(this)),e?.applyFixed()}function _c(){this.chart.scrollablePlotArea&&(this.chart.scrollablePlotArea.isDirty=!0)}class vc{static compose(e,t,n){hc(cc,this.compose)&&(lc(e,`afterInit`,_c),lc(t,`afterSetChartSize`,e=>this.afterSetSize(e.target,e)),lc(t,`render`,gc),lc(n,`show`,_c))}static afterSetSize(e,t){let n,r,i,{minWidth:a,minHeight:o}=e.options.chart.scrollablePlotArea||{},{clipBox:s,plotBox:c,inverted:l,renderer:u}=e;if(!u.forExport)if(a?(e.scrollablePixelsX=n=Math.max(0,a-e.chartWidth),n&&(e.scrollablePlotBox=mc(e.plotBox),c.width=e.plotWidth+=n,s[l?`height`:`width`]+=n,i=!0)):o&&(e.scrollablePixelsY=r=Math.max(0,o-e.chartHeight),fc(r)&&(e.scrollablePlotBox=mc(e.plotBox),c.height=e.plotHeight+=r,s[l?`width`:`height`]+=r,i=!1)),fc(i)){if(!t.skipAxes)for(let t of e.axes)(t.horiz===i||e.hasParallelCoordinates&&t.coll===`yAxis`)&&(t.setAxisSize(),t.setAxisTranslation())}else delete e.scrollablePlotBox}constructor(e){let t,n=e.options.chart,r=Rt.getRendererType(),i=n.scrollablePlotArea||{},a=this.moveFixedElements.bind(this),o={WebkitOverflowScrolling:`touch`,overflowX:`hidden`,overflowY:`hidden`};e.scrollablePixelsX&&(o.overflowX=`auto`),e.scrollablePixelsY&&(o.overflowY=`auto`),this.chart=e;let s=this.scrollingContainer=uc(`div`,{className:`highcharts-scrolling`},o,this.parentDiv=uc(`div`,{className:`highcharts-scrolling-parent`},{position:`relative`},e.renderTo)),c=this.innerContainer=uc(`div`,{className:`highcharts-inner-container`},void 0,s),l=this.fixedDiv=uc(`div`,{className:`highcharts-fixed`},{position:`absolute`,overflow:`hidden`,pointerEvents:`none`,zIndex:(n.style?.zIndex||0)+2,top:0},void 0,!0);this.mask=(this.fixedRenderer=new r(l,e.chartWidth,e.chartHeight,n.style)).path().attr({fill:n.backgroundColor||`#fff`,"fill-opacity":i.opacity??.85,zIndex:-1}).addClass(`highcharts-scrollable-mask`).add(),s.parentNode.insertBefore(l,s),dc(e.renderTo,{overflow:`visible`}),lc(e,`afterShowResetZoom`,a),lc(e,`afterApplyDrilldown`,a),lc(e,`afterLayOutTitles`,a),lc(s,`scroll`,()=>{let{pointer:n,hoverPoint:r}=e;n&&(delete n.chartPosition,r&&(t=r),n.runPointActions(void 0,t,!0))}),c.appendChild(e.container)}applyFixed(){let{chart:e,fixedRenderer:t,isDirty:n,scrollingContainer:r}=this,{axisOffset:i,chartWidth:a,chartHeight:o,container:s,plotHeight:c,plotLeft:l,plotTop:u,plotWidth:d,scrollablePixelsX:f=0,scrollablePixelsY:p=0}=e,{scrollPositionX:m=0,scrollPositionY:h=0}=e.options.chart.scrollablePlotArea||{},g=a+f,_=o+p;t.setSize(a,o),(n??!0)&&(this.isDirty=!1,this.moveFixedElements()),sc(e.container),dc(s,{width:`${g}px`,height:`${_}px`}),e.renderer.boxWrapper.attr({width:g,height:_,viewBox:[0,0,g,_].join(` `)}),e.chartBackground?.attr({width:g,height:_}),dc(r,{width:`${a}px`,height:`${o}px`}),fc(n)||(r.scrollLeft=f*m,r.scrollTop=p*h);let v=u-i[0]-1,y=l-i[3]-1,b=u+c+i[2]+1,x=l+d+i[1]+1,S=l+d-f,C=u+c-p,w=[[`M`,0,0]];f?w=[[`M`,0,v],[`L`,l-1,v],[`L`,l-1,b],[`L`,0,b],[`Z`],[`M`,S,v],[`L`,a,v],[`L`,a,b],[`L`,S,b],[`Z`]]:p&&(w=[[`M`,y,0],[`L`,y,u-1],[`L`,x,u-1],[`L`,x,0],[`Z`],[`M`,y,C],[`L`,y,o],[`L`,x,o],[`L`,x,C],[`Z`]]),e.redrawTrigger!==`adjustHeight`&&this.mask.attr({d:w})}moveFixedElements(){let e,{container:t,inverted:n,scrollablePixelsX:r,scrollablePixelsY:i}=this.chart,a=this.fixedRenderer,o=vc.fixedSelectors;if(r&&!n?e=`.highcharts-yaxis`:r&&n||i&&!n?e=`.highcharts-xaxis`:i&&n&&(e=`.highcharts-yaxis`),e&&!(this.chart.hasParallelCoordinates&&e===`.highcharts-yaxis`))for(let t of[`${e}:not(.highcharts-radial-axis)`,`${e}-labels:not(.highcharts-radial-axis-labels)`])hc(o,t);else for(let e of[`.highcharts-xaxis`,`.highcharts-yaxis`])for(let t of[`${e}:not(.highcharts-radial-axis)`,`${e}-labels:not(.highcharts-radial-axis-labels)`])pc(o,t);for(let e of o)[].forEach.call(t.querySelectorAll(e),e=>{(e.namespaceURI===a.SVG_NS?a.box:a.box.parentNode).appendChild(e),e.style.pointerEvents=`auto`})}}vc.fixedSelectors=[`.highcharts-breadcrumbs-group`,`.highcharts-contextbutton`,`.highcharts-caption`,`.highcharts-credits`,`.highcharts-drillup-button`,`.highcharts-legend`,`.highcharts-legend-checkbox`,`.highcharts-navigator-series`,`.highcharts-navigator-xaxis`,`.highcharts-navigator-yaxis`,`.highcharts-navigator`,`.highcharts-range-selector-group`,`.highcharts-reset-zoom`,`.highcharts-scrollbar`,`.highcharts-subtitle`,`.highcharts-title`];let{format:yc}=Lt,{series:bc}=K,{destroyObjectProperties:xc,fireEvent:Sc,getAlignFactor:Cc,isNumber:wc,pick:Tc}=M,Ec=class{constructor(e,t,n,r,i){let a=e.chart.inverted,o=e.reversed;this.axis=e;let s=this.isNegative=!!n!=!!o;this.options=t||={},this.x=r,this.total=null,this.cumulative=null,this.points={},this.hasValidPoints=!1,this.stack=i,this.leftCliff=0,this.rightCliff=0,this.alignOptions={align:t.align||(a?s?`left`:`right`:`center`),verticalAlign:t.verticalAlign||(a?`middle`:s?`bottom`:`top`),y:t.y,x:t.x},this.textAlign=t.textAlign||(a?s?`right`:`left`:`center`)}destroy(){xc(this,this.axis)}render(e){let t=this.axis.chart,n=this.options,r=n.format,i=r?yc(r,this,t):n.formatter.call(this);if(this.label)this.label.attr({text:i,visibility:`hidden`});else{this.label=t.renderer.label(i,null,void 0,n.shape,void 0,void 0,n.useHTML,!1,`stack-labels`);let r={r:n.borderRadius||0,text:i,padding:Tc(n.padding,5),visibility:`hidden`};t.styledMode||(r.fill=n.backgroundColor,r.stroke=n.borderColor,r[`stroke-width`]=n.borderWidth,this.label.css(n.style||{})),this.label.attr(r),this.label.added||this.label.add(e)}this.label.labelrank=t.plotSizeY,Sc(this,`afterRender`)}setOffset(e,t,n,r,i,a){let{alignOptions:o,axis:s,label:c,options:l,textAlign:u}=this,d=s.chart,f=this.getStackBox({xOffset:e,width:t,boxBottom:n,boxTop:r,defaultX:i,xAxis:a}),{verticalAlign:p}=o;if(c&&f){let e=c.getBBox(void 0,0),t=c.padding,n=Tc(l.overflow,`justify`)===`justify`,r;o.x=l.x||0,o.y=l.y||0;let{x:i,y:a}=this.adjustStackPosition({labelBox:e,verticalAlign:p,textAlign:u});f.x-=i,f.y-=a,c.align(o,!1,f),(r=d.isInsidePlot(c.alignAttr.x+o.x+i,c.alignAttr.y+o.y+a))||(n=!1),n&&bc.prototype.justifyDataLabel.call(s,c,o,c.alignAttr,e,f),c.attr({x:c.alignAttr.x,y:c.alignAttr.y,rotation:l.rotation,rotationOriginX:e.width*Cc(l.textAlign||`center`),rotationOriginY:e.height/2}),Tc(!n&&l.crop,!0)&&(r=wc(c.x)&&wc(c.y)&&d.isInsidePlot(c.x-t+(c.width||0),c.y)&&d.isInsidePlot(c.x+t,c.y)),c[r?`show`:`hide`]()}Sc(this,`afterSetOffset`,{xOffset:e,width:t})}adjustStackPosition({labelBox:e,verticalAlign:t,textAlign:n}){return{x:e.width/2+e.width/2*(2*Cc(n)-1),y:e.height/2*2*(1-Cc(t))}}getStackBox(e){let t=this.axis,n=t.chart,{boxTop:r,defaultX:i,xOffset:a,width:o,boxBottom:s}=e,c=t.stacking.usePercentage?100:Tc(r,this.total,0),l=t.toPixels(c),u=e.xAxis||n.xAxis[0],d=Tc(i,u.translate(this.x))+a,f=Math.abs(l-t.toPixels(s||wc(t.min)&&t.logarithmic&&t.logarithmic.lin2log(t.min)||0)),p=n.inverted,m=this.isNegative;return p?{x:(m?l:l-f)-n.plotLeft,y:u.height-d-o+u.top-n.plotTop,width:f,height:o}:{x:d+u.transB-n.plotLeft,y:(m?l-f:l)-n.plotTop,width:o,height:f}}},{getDeferredAnimation:Dc}=L,{series:{prototype:Oc}}=K,{addEvent:kc,correctFloat:Ac,defined:jc,destroyObjectProperties:Mc,fireEvent:Nc,isNumber:Pc,objectEach:Fc,pick:Ic}=M;function Lc(){let e=this.inverted;this.axes.forEach(e=>{e.stacking?.stacks&&e.hasVisibleSeries&&(e.stacking.oldStacks=e.stacking.stacks)}),this.series.forEach(t=>{let n=t.xAxis?.options||{};t.options.stacking&&t.reserveSpace()&&(t.stackKey=[t.type,Ic(t.options.stack,``),e?n.top:n.left,e?n.height:n.width].join(`,`))})}function Rc(){let e=this.stacking;if(e){let t=e.stacks;Fc(t,(e,n)=>{Mc(e),delete t[n]}),e.stackTotalGroup?.destroy()}}function zc(){this.stacking||=new Gc(this)}function Bc(e,t,n,r){return!jc(e)||e.x!==t||r&&e.stackKey!==r?e={x:t,index:0,key:r,stackKey:r}:e.index++,e.key=[n,t,e.index].join(`,`),e}function Vc(){let e,t=this,n=t.yAxis,r=t.stackKey||``,i=n.stacking.stacks,a=t.getColumn(`x`,!0),o=t[t.options.stacking+`Stacker`];o&&[r,`-`+r].forEach(n=>{let r=a.length,s,c,l;for(;r--;)s=a[r],e=t.getStackIndicator(e,s,t.index,n),c=i[n]?.[s],(l=c?.points[e.key||``])&&o.call(t,l,c,r)})}function Hc(e,t,n){let r=t.total?100/t.total:0;e[0]=Ac(e[0]*r),e[1]=Ac(e[1]*r),this.stackedYData[n]=e[1]}function Uc(e){(this.is(`column`)||this.is(`columnrange`))&&(this.options.centerInCategory&&this.chart.series.length>1?Oc.setStackedPoints.call(this,e,`group`):e.stacking.resetStacks())}function Wc(e,t){let n,r,i,a,o,s,c,l=t||this.options.stacking;if(!l||!this.reserveSpace()||({group:`xAxis`}[l]||`yAxis`)!==e.coll)return;let u=this.getColumn(`x`,!0),d=this.getColumn(this.pointValKey||`y`,!0),f=[],p=d.length,m=this.options,h=m.threshold||0,g=m.startFromThreshold?h:0,_=m.stack,v=t?`${this.type},${l}`:this.stackKey||``,y=`-`+v,b=this.negStacks,x=e.stacking,S=x.stacks,C=x.oldStacks;for(x.stacksTouched+=1,c=0;c0&&!1===this.singleStacks&&(i.points[s][0]=i.points[this.index+`,`+t+`,0`][0]));let w=i.total||0;l===`percent`?(a=r?v:y,w=b&&S[a]?.[t]?(a=S[a][t]).total=Math.max(a.total||0,w)+Math.abs(m):Ac(w+Math.abs(m))):l===`group`?Pc(p)&&w++:w=Ac(w+m),l===`group`?i.cumulative=(w||1)-1:i.cumulative=Ac(Ic(i.cumulative,g)+m),i.total=w,p!==null&&(i.points[s].push(i.cumulative),f[c]=i.cumulative,i.hasValidPoints=!0)}l===`percent`&&(x.usePercentage=!0),l!==`group`&&(this.stackedYData=f),x.oldStacks={}}class Gc{constructor(e){this.oldStacks={},this.stacks={},this.stacksTouched=0,this.axis=e}buildStacks(){let e,t,n=this.axis,r=n.series,i=n.coll===`xAxis`,a=n.options.reversedStacks,o=r.length;for(this.resetStacks(),this.usePercentage=!1,t=o;t--;)e=r[a?t:o-t-1],i&&e.setGroupedPoints(n),e.setStackedPoints(n);if(!i)for(t=0;t{Fc(e,e=>{e.cumulative=e.total})}))}resetStacks(){Fc(this.stacks,e=>{Fc(e,(t,n)=>{Pc(t.touched)&&t.touched{Fc(e,e=>{e.render(a)})}),a.animate({opacity:1},i)}}(p||={}).compose=function(e,t,n){let r=t.prototype,i=n.prototype;r.getStacks||(kc(e,`init`,zc),kc(e,`destroy`,Rc),r.getStacks=Lc,i.getStackIndicator=Bc,i.modifyStacks=Vc,i.percentStacker=Hc,i.setGroupedPoints=Uc,i.setStackedPoints=Wc)};let Kc=p,{defined:qc,merge:Jc,isObject:Yc}=M;class Xc extends Z{drawGraph(){let e=this.options,t=(this.gappedPath||this.getGraphPath).call(this),n=this.chart.styledMode;[this,...this.zones].forEach((r,i)=>{let a,o=r.graph,s=o?`animate`:`attr`,c=r.dashStyle||e.dashStyle;o?(o.endX=this.preventGraphAnimation?null:t.xMap,o.animate({d:t})):t.length&&(r.graph=o=this.chart.renderer.path(t).addClass(`highcharts-graph`+(i?` highcharts-zone-graph-${i-1} `:` `)+(i&&r.className||``)).attr({zIndex:1}).add(this.group)),o&&!n&&(a={stroke:!i&&e.lineColor||r.color||this.color||`#cccccc`,"stroke-width":e.lineWidth||0,fill:this.fillGraph&&this.color||`none`},c?a.dashstyle=c:e.linecap!==`square`&&(a[`stroke-linecap`]=a[`stroke-linejoin`]=`round`),o[s](a).shadow(e.shadow&&Jc({filterUnits:`userSpaceOnUse`},Yc(e.shadow)?e.shadow:{}))),o&&(o.startX=t.xMap,o.isArea=t.isArea)})}getGraphPath(e,t,n){let r=this,i=r.options,a=[],o=[],s,c=i.step,l=(e||=r.points).reversed;return l&&e.reverse(),(c={right:1,center:2}[c]||c&&3)&&l&&(c=4-c),(e=this.getValidPoints(e,!1,i.nullInteraction||!(i.connectNulls&&!t&&!n))).forEach(function(l,u){let d,f=l.plotX,p=l.plotY,m=e[u-1],h=l.isNull||typeof p!=`number`;(l.leftCliff||m?.rightCliff)&&!n&&(s=!0),h&&!qc(t)&&u>0?s=!i.connectNulls:h&&!t?s=!0:(u===0||s?d=[[`M`,l.plotX,l.plotY]]:r.getPointSpline?d=[r.getPointSpline(e,l,u)]:c?(d=c===1?[[`L`,m.plotX,p]]:c===2?[[`L`,(m.plotX+f)/2,m.plotY],[`L`,(m.plotX+f)/2,p]]:[[`L`,f,m.plotY]]).push([`L`,f,p]):d=[[`L`,f,p]],o.push(l.x),c&&(o.push(l.x),c===2&&o.push(l.x)),a.push.apply(a,d),s=!1)}),a.xMap=o,r.graphPath=a,a}}Xc.defaultOptions=Jc(Z.defaultOptions,{legendSymbol:`lineMarker`}),K.registerSeriesType(`line`,Xc);let{seriesTypes:{line:Zc}}=K,{extend:Qc,merge:$c,objectEach:el,pick:tl}=M;class nl extends Zc{drawGraph(){this.areaPath=[],super.drawGraph.apply(this);let{areaPath:e,options:t}=this;[this,...this.zones].forEach((n,r)=>{let i={},a=n.fillColor||t.fillColor,o=n.area,s=o?`animate`:`attr`;o?(o.endX=this.preventGraphAnimation?null:e.xMap,o.animate({d:e})):(i.zIndex=0,(o=n.area=this.chart.renderer.path(e).addClass(`highcharts-area`+(r?` highcharts-zone-area-${r-1} `:` `)+(r&&n.className||``)).add(this.group)).isArea=!0),this.chart.styledMode||(i.fill=a||n.color||this.color,i[`fill-opacity`]=a?1:t.fillOpacity??.75,o.css({pointerEvents:this.stickyTracking?`none`:`auto`})),o[s](i),o.startX=e.xMap,o.shiftUnit=t.step?2:1})}getGraphPath(e){let t,n,r,i=Zc.prototype.getGraphPath,a=this.options,o=a.stacking,s=this.yAxis,c=[],l=[],u=this.index,d=s.stacking.stacks[this.stackKey],f=a.threshold,p=Math.round(s.getThreshold(a.threshold)),m=tl(a.connectNulls,o===`percent`),h=function(n,r,i){let a=e[n],m=o&&d[a.x].points[u],h=a[i+`Null`]||0,g=a[i+`Cliff`]||0,_,v,y=!0;g||h?(_=(h?m[0]:m[1])+g,v=m[0]+g,y=!!h):!o&&e[r]&&e[r].isNull&&(_=v=f),_!==void 0&&(l.push({plotX:t,plotY:_===null?p:s.getThreshold(_),isNull:y,isCliff:!0}),c.push({plotX:t,plotY:v===null?p:s.getThreshold(v),doCurve:!1}))};e||=this.points,o&&(e=this.getStackPoints(e));for(let i=0,a=e.length;i1&&o&&l.some(e=>e.isCliff)&&(y.hasStackedCliffs=b.hasStackedCliffs=!0),y.xMap=g.xMap,this.areaPath=y,b}getStackPoints(e){let t=this,n=[],r=[],i=this.xAxis,a=this.yAxis,o=a.stacking.stacks[this.stackKey],s={},c=a.series,l=c.length,u=a.options.reversedStacks?1:-1,d=c.indexOf(t);if(e||=this.points,this.options.stacking){for(let t=0;te.visible);r.forEach(function(e,p){let m=0,h,g;if(s[e]&&!s[e].isNull)n.push(s[e]),[-1,1].forEach(function(n){let i=n===1?`rightNull`:`leftNull`,a=o[r[p+n]],m=0;if(a){let n=d;for(;n>=0&&n=0&&tn&&i>c?(i=Math.max(n,c),o=2*c-i):if&&o>c?(o=Math.max(f,c),i=2*c-o):o1){let i=this.xAxis.series.filter(e=>e.visible).map(e=>e.index),a=0,o=0;Tl(this.xAxis.stacking?.stacks,e=>{let t=typeof n.x==`number`?e[n.x.toString()]?.points:void 0,r=t?.[this.index],s={};if(t&&xl(r)){let e=this.index,n=Object.keys(t).filter(e=>!e.match(`,`)&&t[e]&&t[e].length>1).map(parseFloat).filter(e=>i.indexOf(e)!==-1).filter(t=>{let n=this.chart.series[t].options,r=n.stacking&&n.stack;if(vl(r)){if(Sl(s[r]))return e===t&&(e=s[r]),!1;s[r]=t}return!0}).sort((e,t)=>t-e);a=n.indexOf(e),o=n.length}}),a=this.xAxis.reversed?o-1-a:a;let s=(o-1)*r.paddedWidth+t;e=(n.plotX||0)+s/2-t-a*r.paddedWidth}return e}translate(){let e=this,t=e.chart,n=e.options,r=e.dense=e.closestPointRange*e.xAxis.transA<2,i=e.borderWidth=wl(n.borderWidth,+!r),a=e.xAxis,o=e.yAxis,s=n.threshold,c=wl(n.minPointLength,5),l=e.getColumnMetrics(),u=l.width,d=e.pointXOffset=l.offset,f=e.dataMin,p=e.dataMax,m=e.translatedThreshold=o.getThreshold(s),h=e.barW=Math.max(u,1+2*i);n.pointPadding&&n.crisp&&(h=Math.ceil(h)),Z.prototype.translate.apply(e),e.points.forEach(function(r){let i=wl(r.yBottom,m),g=999+Math.abs(i),_=r.plotX||0,v=gl(r.plotY,-g,o.len+g),y,b=Math.min(v,i),x=Math.max(v,i)-b,S=u,C=_+d,w=h;c&&Math.abs(x)c?i-c:m-(y?c:0)),vl(r.options.pointWidth)&&(C-=Math.round(((S=w=Math.ceil(r.options.pointWidth))-u)/2)),n.centerInCategory&&(C=e.adjustForMissingColumns(C,S,r,l)),r.barX=C,r.pointWidth=S,r.tooltipPos=t.inverted?[gl(o.len+o.pos-t.plotLeft-v,o.pos-t.plotLeft,o.len+o.pos-t.plotLeft),a.len+a.pos-t.plotTop-C-w/2,x]:[a.left-t.plotLeft+C+w/2,gl(v+o.pos-t.plotTop,o.pos-t.plotTop,o.len+o.pos-t.plotTop),x],r.shapeType=e.pointClass.prototype.shapeType||`roundedRect`,r.shapeArgs=e.crispCol(C,b,w,r.isNull?0:x)}),bl(this,`afterColumnTranslate`)}drawGraph(){this.group[this.dense?`addClass`:`removeClass`](`highcharts-dense-data`)}pointAttribs(e,t){let n=this.options,r=this.pointAttrToOptions||{},i=r.stroke||`borderColor`,a=r[`stroke-width`]||`borderWidth`,o,s,c,l=e&&e.color||this.color,u=e&&e[i]||n[i]||l,d=e&&e.options.dashStyle||n.dashStyle,f=e&&e[a]||n[a]||this[a]||0,p=e?.isNull&&n.nullInteraction?0:e?.opacity??n.opacity??1;e&&this.zones.length&&(s=e.getZone(),l=e.options.color||s&&(s.color||e.nonZonedColor)||this.color,s&&(u=s.borderColor||u,d=s.dashStyle||d,f=s.borderWidth||f)),t&&e&&(c=(o=Cl(n.states[t],e.options.states&&e.options.states[t]||{})).brightness,l=o.color||c!==void 0&&ml(l).brighten(o.brightness).get()||l,u=o[i]||u,f=o[a]||f,d=o.dashStyle||d,p=wl(o.opacity,p));let m={fill:l,stroke:u,"stroke-width":f,opacity:p};return d&&(m.dashstyle=d),m}drawPoints(e=this.points){let t,n=this,r=this.chart,i=n.options,a=i.nullInteraction,o=r.renderer,s=i.animationLimit||250;e.forEach(function(e){let c=e.plotY,l=e.graphic,u=!!l,d=l&&r.pointCounte?.enabled)}function n(e,t,n,r,i){let{chart:a,enabledDataSorting:o}=this,s=this.isCartesian&&a.inverted,c=e.plotX,l=e.plotY,u=n.rotation||0,d=Al(c)&&Al(l)&&a.isInsidePlot(c,Math.round(l),{inverted:s,paneCoordinates:!0,series:this}),f=u===0&&Rl(n.overflow,o?`none`:`justify`)===`justify`,p=this.visible&&!1!==e.visible&&Al(c)&&(e.series.forceDL||o&&!f||d||Rl(n.inside,!!this.options.stacking)&&r&&a.isInsidePlot(c,s?r.x+1:r.y+r.height-1,{inverted:s,paneCoordinates:!0,series:this})),m=e.pos();if(p&&m){var h;let c=t.getBBox(),l=t.getBBox(void 0,0);if(r=jl({x:m[0],y:Math.round(m[1]),width:0,height:0},r||{}),n.alignTo===`plotEdges`&&this.isCartesian&&(r[s?`x`:`y`]=0,r[s?`width`:`height`]=this.yAxis?.len||0),jl(n,{width:c.width,height:c.height}),h=r,o&&this.xAxis&&!f&&this.setDataLabelStartPos(e,t,i,d,h),t.align(Il(n,{width:l.width,height:l.height}),!1,r,!1),t.alignAttr.x+=Nl(n.align)*(l.width-c.width),t.alignAttr.y+=Nl(n.verticalAlign)*(l.height-c.height),t[t.placed?`animate`:`attr`]({"text-align":t.alignAttr[`text-align`]||`center`,x:t.alignAttr.x+(c.width-l.width)/2,y:t.alignAttr.y+(c.height-l.height)/2,rotationOriginX:(t.width||0)/2,rotationOriginY:(t.height||0)/2}),f&&r.height>=0)this.justifyDataLabel(t,n,t.alignAttr,c,r,i);else if(Rl(n.crop,!0)){let{x:e,y:n}=t.alignAttr;p=a.isInsidePlot(e,n,{paneCoordinates:!0,series:this})&&a.isInsidePlot(e+c.width-1,n+c.height-1,{paneCoordinates:!0,series:this})}n.shape&&!u&&t[i?`attr`:`animate`]({anchorX:m[0],anchorY:m[1]})}i&&o&&(t.placed=!1),p||o&&!f?(t.show(),t.placed=!0):(t.hide(),t.placed=!1)}function r(){return this.plotGroup(`dataLabelsGroup`,`data-labels`,this.hasRendered?`inherit`:`hidden`,this.options.dataLabels.zIndex||6,this.chart.dataLabelsGroup)}function i(e){let t=this.hasRendered||0,n=this.initDataLabelsGroup().attr({opacity:+t});return!t&&n&&(this.visible&&n.show(),this.options.animation?n.animate({opacity:1},e):n.attr({opacity:1})),n}function a(e){let t;e||=this.points;let n=this,r=n.chart,i=n.options,a=r.renderer,{backgroundColor:o,plotBackgroundColor:l}=r.options.chart,u=a.getContrast(Fl(l)&&l||Fl(o)&&o||`#000000`),d=c(n),{animation:f,defer:p}=d[0],m=p?Ol(r,f,n):{defer:0,duration:0};Ml(this,`drawDataLabels`),n.hasDataLabels?.()&&(t=this.initDataLabels(m),e.forEach(e=>{let o=e.dataLabels||[],c=e.color||n.color;Bl(s(d,e.dlOptions||e.options?.dataLabels)).forEach((s,l)=>{let d=s.enabled&&(e.visible||e.dataLabelOnHidden)&&(!e.isNull||e.dataLabelOnNull)&&function(e,t){let n=t.filter;if(n){let t=n.operator,r=e[n.property],i=n.value;return t===`>`&&r>i||t===`<`&&r=`&&r>=i||t===`<=`&&r<=i||t===`==`&&r==i||t===`===`&&r===i||t===`!=`&&r!=i||t===`!==`&&r!==i||!1}return!0}(e,s),{backgroundColor:f,borderColor:p,distance:m,style:h={}}=s,g,_,v,y={},b=o[l],x=!b,S;d&&(_=Al(g=Rl(s[e.formatPrefix+`Format`],s.format))?kl(g,e,r):(s[e.formatPrefix+`Formatter`]||s.formatter).call(e,s),v=s.rotation,!r.styledMode&&(h.color=Rl(s.color,h.color,Fl(n.color)?n.color:void 0,`#000000`),h.color===`contrast`?(f!==`none`&&(S=f),e.contrastColor=a.getContrast(S!==`auto`&&Fl(S)&&S||(Fl(c)?c:``)),h.color=S||!Al(m)&&s.inside||0>zl(m||0)||i.stacking?e.contrastColor:u):delete e.contrastColor,i.cursor&&(h.cursor=i.cursor)),y={r:s.borderRadius||0,rotation:v,padding:s.padding,zIndex:1},r.styledMode||(y.fill=f===`auto`?e.color:f,y.stroke=p===`auto`?e.color:p,y[`stroke-width`]=s.borderWidth),Ll(y,(e,t)=>{e===void 0&&delete y[t]})),!b||d&&Al(_)&&!!(b.div||b.text?.foreignObject)==!!s.useHTML&&(b.rotation&&s.rotation||b.rotation===s.rotation)||(b=void 0,x=!0),d&&Al(_)&&_!==``&&(b?y.text=_:(b=a.label(_,0,0,s.shape,void 0,void 0,s.useHTML,void 0,`data-label`)).addClass(` highcharts-data-label-color-`+e.colorIndex+` `+(s.className||``)+(s.useHTML?` highcharts-tracker`:``)),b&&(b.options=s,b.attr(y),r.styledMode?h.width&&b.css({width:h.width,textOverflow:h.textOverflow,whiteSpace:h.whiteSpace}):b.css(h).shadow(s.shadow),Ml(b,`beforeAddingDataLabel`,{labelOptions:s,point:e}),b.added||b.add(t),n.alignDataLabel(e,b,s,void 0,x),b.isActive=!0,o[l]&&o[l]!==b&&o[l].destroy(),o[l]=b))});let l=o.length;for(;l--;)o[l]?.isActive?o[l].isActive=!1:(o[l]?.destroy(),o.splice(l,1));e.dataLabel=o[0],e.dataLabels=o})),Ml(this,`afterDrawDataLabels`)}function o(e,t,n,r,i,a){let o=this.chart,s=t.align,c=t.verticalAlign,l=e.box?0:e.padding||0,u=o.inverted?this.yAxis:this.xAxis,d=u?u.left-o.plotLeft:0,f=o.inverted?this.xAxis:this.yAxis,p=f?f.top-o.plotTop:0,{x:m=0,y:h=0}=t,g,_;return(g=(n.x||0)+l+d)<0&&(s===`right`&&m>=0?(t.align=`left`,t.inside=!0):m-=g,_=!0),(g=(n.x||0)+r.width-l+d)>o.plotWidth&&(s===`left`&&m<=0?(t.align=`right`,t.inside=!0):m+=o.plotWidth-g,_=!0),(g=n.y+l+p)<0&&(c===`bottom`&&h>=0?(t.verticalAlign=`top`,t.inside=!0):h-=g,_=!0),(g=(n.y||0)+r.height-l+p)>o.plotHeight&&(c===`top`&&h<=0?(t.verticalAlign=`bottom`,t.inside=!0):h+=o.plotHeight-g,_=!0),_&&(t.x=m,t.y=h,e.placed=!a,e.align(t,void 0,i)),_}function s(e,t){let n=[],r;if(Pl(e)&&!Pl(t))n=e.map(function(e){return Il(e,t)});else if(Pl(t)&&!Pl(e))n=t.map(function(t){return Il(e,t)});else if(Pl(e)||Pl(t)){if(Pl(e)&&Pl(t))for(r=Math.max(e.length,t.length);r--;)n[r]=Il(e[r],t[r])}else n=Il(e,t);return n}function c(e){let t=e.chart.options.plotOptions;return Bl(s(s(t?.series?.dataLabels,t?.[e.type]?.dataLabels),e.options.dataLabels))}function l(e,t,n,r,i){let a=this.chart,o=a.inverted,s=this.xAxis,c=s.reversed,l=((o?t.height:t.width)||0)/2,u=e.pointWidth,d=u?u/2:0;t.startXPos=o?i.x:c?-l-d:s.width-l+d,t.startYPos=o?c?this.yAxis.height-l+d:-l-d:i.y,r?t.visibility===`hidden`&&(t.show(),t.attr({opacity:0}).animate({opacity:1})):t.attr({opacity:1}).animate({opacity:0},void 0,t.hide),a.hasRendered&&(n&&t.attr({x:t.startXPos,y:t.startYPos}),t.placed=!0)}e.compose=function(e){let c=e.prototype;c.initDataLabels||(c.initDataLabels=i,c.initDataLabelsGroup=r,c.alignDataLabel=n,c.drawDataLabels=a,c.justifyDataLabel=o,c.mergeArrays=s,c.setDataLabelStartPos=l,c.hasDataLabels=t)}})(m||={});let Vl=m,{composed:Hl}=S,{series:Ul}=K,{merge:Wl,pushUnique:Gl}=M;(function(e){function t(e,t,n,r,i){let{chart:a,options:o}=this,s=a.inverted,c=this.xAxis?.len||a.plotSizeX||0,l=this.yAxis?.len||a.plotSizeY||0,u=e.dlBox||e.shapeArgs,d=e.below??(e.plotY||0)>(this.translatedThreshold??l),f=n.inside??!!o.stacking;if(u){if(r=Wl(u),n.overflow!==`allow`||!1!==n.crop||!1!==o.clip){r.y<0&&(r.height+=r.y,r.y=0);let e=r.y+r.height-l;e>0&&e {series.name}
`,pointFormat:`x: {point.x}
y: {point.y}
`}}),$l(tu.prototype,{drawTracker:Xl.prototype.drawTracker,sorted:!1,requireSorting:!1,noSharedTooltip:!0,trackerGroups:[`group`,`markerGroup`,`dataLabelsGroup`]}),Ql(tu,`afterTranslate`,function(){this.applyJitter()}),K.registerSeriesType(`scatter`,tu);let{deg2rad:nu}=S,{fireEvent:ru,isNumber:iu,pick:au,relativeLength:ou}=M;(function(e){e.getCenter=function(){let e=this.options,t=this.chart,n=2*(e.slicedOffset||0),r=t.plotWidth-2*n,i=t.plotHeight-2*n,a=e.center,o=Math.min(r,i),s=e.thickness,c,l=e.size,u=e.innerSize||0,d,f;typeof l==`string`&&(l=parseFloat(l)),typeof u==`string`&&(u=parseFloat(u));let p=[au(a?.[0],`50%`),au(a?.[1],`50%`),au(l&&l<0?void 0:e.size,`100%`),au(u&&u<0?void 0:e.innerSize||0,`0%`)];for(!t.angular||this instanceof Z||(p[3]=0),d=0;d<4;++d)f=p[d],c=d<2||d===2&&/%$/.test(f),p[d]=ou(f,[r,i,o,p[2]][d])+(c?n:0);return p[3]>p[2]&&(p[3]=p[2]),iu(s)&&2*s0&&(p[3]=p[2]-2*s),ru(this,`afterGetCenter`,{positions:p}),p},e.getStartAndEndRadians=function(e,t){let n=iu(e)?e:0,r=iu(t)&&t>n&&t-n<360?t:n+360;return{start:nu*(n+-90),end:nu*(r+-90)}}})(g||={});let su=g,{setAnimation:cu}=L,{addEvent:lu,defined:uu,extend:du,isNumber:fu,pick:pu,relativeLength:mu}=M;class hu extends Ga{getConnectorPath(e){let t=e.dataLabelPosition,n=e.options||{},r=n.connectorShape,i=this.connectorShapes[r]||r;return t&&i.call(this,{...t.computed,alignment:t.alignment},t.connectorPosition,n)||[]}getTranslate(){return this.sliced&&this.slicedTranslation||{translateX:0,translateY:0}}haloPath(e){let t=this.shapeArgs;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(t.x,t.y,t.r+e,t.r+e,{innerR:t.r-1,start:t.start,end:t.end,borderRadius:t.borderRadius})}constructor(e,t,n){super(e,t,n),this.half=0,this.name??=e.chart.options.lang.pieSliceName;let r=e=>{this.slice(e.type===`select`)};lu(this,`select`,r),lu(this,`unselect`,r)}isValid(){return fu(this.y)&&this.y>=0}setVisible(e,t=!0){e!==this.visible&&this.update({visible:e??!this.visible},t,void 0,!1)}slice(e,t,n){let r=this.series;cu(n,r.chart),t=pu(t,!0),this.sliced=this.options.sliced=e=uu(e)?e:!this.sliced,r.options.data[r.data.indexOf(this)]=this.options,this.graphic&&this.graphic.animate(this.getTranslate())}}du(hu.prototype,{connectorShapes:{fixedOffset:function(e,t,n){let r=t.breakAt,i=t.touchingSliceAt,a=n.softConnector?[`C`,e.x+(e.alignment===`left`?-5:5),e.y,2*r.x-i.x,2*r.y-i.y,r.x,r.y]:[`L`,r.x,r.y];return[[`M`,e.x,e.y],a,[`L`,i.x,i.y]]},straight:function(e,t){let n=t.touchingSliceAt;return[[`M`,e.x,e.y],[`L`,n.x,n.y]]},crookedLine:function(e,t,n){let{angle:r=this.angle||0,breakAt:i,touchingSliceAt:a}=t,{series:o}=this,[s,c,l]=o.center,u=l/2,{plotLeft:d,plotWidth:f}=o.chart,p=e.alignment===`left`,{x:m,y:h}=e,g=i.x;if(n.crookDistance){let e=mu(n.crookDistance,1);g=p?s+u+(f+d-s-u)*(1-e):d+(s-u)*e}else g=s+(c-h)*Math.tan(r-Math.PI/2);let _=[[`M`,m,h]];return(p?g<=m&&g>=i.x:g>=m&&g<=i.x)&&_.push([`L`,g,h]),_.push([`L`,i.x,i.y],[`L`,a.x,a.y]),_}}});let{getStartAndEndRadians:gu}=su,{noop:_u}=S,{clamp:vu,extend:yu,fireEvent:bu,merge:xu,pick:Su}=M;class Cu extends Z{animate(e){let t=this,n=t.points,r=t.startAngleRad;e||n.forEach(function(e){let n=e.graphic,i=e.shapeArgs;n&&i&&(n.attr({r:Su(e.startR,t.center&&t.center[3]/2),start:r,end:r}),n.animate({r:i.r,start:i.start,end:i.end},t.options.animation))})}drawEmpty(){let e,t,n=this.startAngleRad,r=this.endAngleRad,i=this.options;this.total===0&&this.center?(e=this.center[0],t=this.center[1],this.graph||=this.chart.renderer.arc(e,t,this.center[1]/2,0,n,r).addClass(`highcharts-empty-series`).add(this.group),this.graph.attr({d:Rn.arc(e,t,this.center[2]/2,0,{start:n,end:r,innerR:this.center[3]/2})}),this.chart.styledMode||this.graph.attr({"stroke-width":i.borderWidth,fill:i.fillColor||`none`,stroke:i.color||`#cccccc`})):this.graph&&=this.graph.destroy()}drawPoints(){let e=this.chart.renderer;this.points.forEach(function(t){t.graphic&&t.hasNewShapeType()&&(t.graphic=t.graphic.destroy()),t.graphic||(t.graphic=e[t.shapeType](t.shapeArgs).add(t.series.group),t.delayedRendering=!0)})}generatePoints(){super.generatePoints(),this.updateTotals()}getX(e,t,n,r){let i=this.center,a=this.radii?this.radii[n.index]||0:i[2]/2,o=r.dataLabelPosition?.distance||0,s=Math.asin(vu((e-i[1])/(a+o),-1,1));return i[0]+Math.cos(s)*(a+o)*(t?-1:1)+(o>0?(t?-1:1)*(r.padding||0):0)}hasData(){return this.points.some(e=>e.visible)}redrawPoints(){let e,t,n,r,i=this,a=i.chart;this.drawEmpty(),i.group&&!a.styledMode&&i.group.shadow(i.options.shadow),i.points.forEach(function(o){let s={};t=o.graphic,!o.isNull&&t?(r=o.shapeArgs,e=o.getTranslate(),a.styledMode||(n=i.pointAttribs(o,o.selected&&`select`)),o.delayedRendering?(t.setRadialReference(i.center).attr(r).attr(e),a.styledMode||t.attr(n).attr({"stroke-linejoin":`round`}),o.delayedRendering=!1):(t.setRadialReference(i.center),a.styledMode||xu(!0,s,n),xu(!0,s,r,e),t.animate(s)),t.attr({visibility:o.visible?`inherit`:`hidden`}),t.addClass(o.getClassName(),!0)):t&&(o.graphic=t.destroy())})}sortByAngle(e,t){e.sort(function(e,n){return e.angle!==void 0&&(n.angle-e.angle)*t})}translate(e){bu(this,`translate`),this.generatePoints();let t=this.options,n=t.slicedOffset,r=gu(t.startAngle,t.endAngle),i=this.startAngleRad=r.start,a=(this.endAngleRad=r.end)-i,o=this.points,s=t.ignoreHiddenPoint,c=o.length,l,u,d,f,p,m,h,g=0;for(e||(this.center=e=this.getCenter()),m=0;m1.5*Math.PI?d-=2*Math.PI:d<-Math.PI/2&&(d+=2*Math.PI),h.slicedTranslation={translateX:Math.round(Math.cos(d)*n),translateY:Math.round(Math.sin(d)*n)},f=Math.cos(d)*e[2]/2,p=Math.sin(d)*e[2]/2,h.tooltipPos=[e[0]+.7*f,e[1]+.7*p],h.half=+(d<-Math.PI/2||d>Math.PI/2),h.angle=d}bu(this,`afterTranslate`)}updateTotals(){let e=this.points,t=e.length,n=this.options.ignoreHiddenPoint,r,i,a=0;for(r=0;r0&&(i.visible||!n)?i.y/a*100:0,i.total=a}}Cu.defaultOptions=xu(Z.defaultOptions,{borderRadius:3,center:[null,null],clip:!1,colorByPoint:!0,dataLabels:{connectorPadding:5,connectorShape:`crookedLine`,crookDistance:void 0,distance:30,enabled:!0,formatter:function(){return this.isNull?void 0:this.name},softConnector:!0,x:0},fillColor:void 0,ignoreHiddenPoint:!0,inactiveOtherPoints:!0,legendType:`point`,marker:null,size:null,showInLegend:!1,slicedOffset:10,stickyTracking:!1,tooltip:{followPointer:!0},borderColor:`#ffffff`,borderWidth:1,lineWidth:void 0,states:{hover:{brightness:.1}}}),yu(Cu.prototype,{axisTypes:[],directTouch:!0,drawGraph:void 0,drawTracker:Dl.prototype.drawTracker,getCenter:su.getCenter,getSymbol:_u,invertible:!1,isCartesian:!1,noSharedTooltip:!0,pointAttribs:Dl.prototype.pointAttribs,pointClass:hu,requireSorting:!1,searchPoint:_u,trackerGroups:[`group`,`dataLabelsGroup`]}),K.registerSeriesType(`pie`,Cu);let{composed:wu,noop:Tu}=S,{distribute:Eu}=Ut,{series:Du}=K,{arrayMax:Ou,clamp:ku,defined:Au,isNumber:ju,pick:Mu,pushUnique:Nu,relativeLength:Pu}=M;(function(e){let t={radialDistributionY:function(e,t){return(t.dataLabelPosition?.top||0)+e.distributeBox.pos},radialDistributionX:function(e,t,n,r,i){let a=i.dataLabelPosition;return e.getX(n<(a?.top||0)+2||n>(a?.bottom||0)-2?r:n,t.half,t,i)},justify:function(e,t,n,r){return r[0]+(e.half?-1:1)*(n+(t.dataLabelPosition?.distance||0))},alignToPlotEdges:function(e,t,n,r){let i=e.getBBox().width;return t?i+r:n-i-r},alignToConnectors:function(e,t,n,r){let i=0,a;return e.forEach(function(e){(a=e.dataLabel.getBBox().width)>i&&(i=a)}),t?i+r:n-i-r}};function n(e,t){let n=Math.PI/2,{start:r=0,end:i=0}=e.shapeArgs||{},a=e.angle||0;t>0&&rn&&a>n/2&&a<1.5*n&&(a=a<=n?Math.max(n/2,(r+n)/2):Math.min(1.5*n,(n+i)/2));let{center:o,options:s}=this,c=o[2]/2,l=Math.cos(a),u=Math.sin(a),d=o[0]+l*c,f=o[1]+u*c,p=Math.min((s.slicedOffset||0)+(s.borderWidth||0),t/5);return{natural:{x:d+l*t,y:f+u*t},computed:{},alignment:t<0?`center`:e.half?`right`:`left`,connectorPosition:{angle:a,breakAt:{x:d+l*p,y:f+u*p},touchingSliceAt:{x:d,y:f}},distance:t}}function r(){let e=this,t=e.points,n=e.chart,r=n.plotWidth,i=n.plotHeight,a=n.plotLeft,o=Math.round(n.chartWidth/3),s=e.center,c=s[2]/2,l=s[1],u=[[],[]],d=[0,0,0,0],f=e.dataLabelPositioners,p,m,h,g=0;e.visible&&e.hasDataLabels?.()&&(t.forEach(e=>{(e.dataLabels||[]).forEach(e=>{e.shortened&&=(e.attr({width:`auto`}).css({width:`auto`,textOverflow:`clip`}),!1)})}),Du.prototype.drawDataLabels.apply(e),t.forEach(e=>{(e.dataLabels||[]).forEach((t,n)=>{let r=s[2]/2,i=t.options,a=Pu(i?.distance||0,r);n===0&&u[e.half].push(e),!Au(i?.style?.width)&&t.getBBox().width>o&&(t.css({width:Math.round(.7*o)+`px`}),t.shortened=!0),t.dataLabelPosition=this.getDataLabelPosition(e,a),g=Math.max(g,a)})}),u.forEach((t,o)=>{let u=t.length,p=[],_,v,y=0,b;u&&(e.sortByAngle(t,o-.5),g>0&&(_=Math.max(0,l-c-g),v=Math.min(l+c+g,n.plotHeight),t.forEach(e=>{(e.dataLabels||[]).forEach(t=>{let r=t.dataLabelPosition;r&&r.distance>0&&(r.top=Math.max(0,l-c-r.distance),r.bottom=Math.min(l+c+r.distance,n.plotHeight),y=t.getBBox().height||21,t.lineHeight=n.renderer.fontMetrics(t.text||t).h+2*t.padding,e.distributeBox={target:(t.dataLabelPosition?.natural.y||0)-r.top+t.lineHeight/2,size:y,rank:e.y},p.push(e.distributeBox))})}),Eu(p,b=v+y-_,b/5)),t.forEach(n=>{(n.dataLabels||[]).forEach(l=>{let u=l.options||{},g=n.distributeBox,_=l.dataLabelPosition,v=_?.natural.y||0,y=u.connectorPadding||0,b=l.lineHeight||21,x=(b-l.getBBox().height)/2,S=0,C=v,w=`inherit`;if(_){if(p&&Au(g)&&_.distance>0&&(g.pos===void 0?w=`hidden`:(h=g.size,C=f.radialDistributionY(n,l))),u.justify)S=f.justify(n,l,c,s);else switch(u.alignTo){case`connectors`:S=f.alignToConnectors(t,o,r,a);break;case`plotEdges`:S=f.alignToPlotEdges(l,o,r,a);break;default:S=f.radialDistributionX(e,n,C-x,v,l)}if(_.attribs={visibility:w,align:_.alignment},_.posAttribs={x:S+(u.x||0)+({left:y,right:-y}[_.alignment]||0),y:C+(u.y||0)-b/2},_.computed.x=S,_.computed.y=C-x,Mu(u.crop,!0)){let e;S-(m=l.getBBox().width)r-y&&o===0&&(e=Math.round(S+m-r+y),d[1]=Math.max(e,d[1])),C-h/2<0?d[0]=Math.max(Math.round(-C+h/2),d[0]):C+h/2>i&&(d[2]=Math.max(Math.round(C+h/2-i),d[2])),_.sideOverflow=e}}})}))}),(Ou(d)===0||this.verifyDataLabelOverflow(d))&&(this.placeDataLabels(),this.points.forEach(t=>{(t.dataLabels||[]).forEach(r=>{let{connectorColor:i,connectorWidth:a=1}=r.options||{},o=r.dataLabelPosition;if(ju(a)){let s;p=r.connector,o&&o.distance>0?(s=!p,p||(r.connector=p=n.renderer.path().addClass(`highcharts-data-label-connector highcharts-color-`+t.colorIndex+(t.className?` `+t.className:``)).add(e.dataLabelsGroup)),n.styledMode||p.attr({"stroke-width":a,stroke:i||t.color||`#666666`}),p[s?`attr`:`animate`]({d:t.getConnectorPath(r)}),p.attr({visibility:o.attribs?.visibility})):p&&(r.connector=p.destroy())}})})))}function i(){this.points.forEach(e=>{(e.dataLabels||[]).forEach(e=>{let t=e.dataLabelPosition;t?(t.sideOverflow&&(e.css({width:Math.max(e.getBBox().width-t.sideOverflow,0)+`px`,textOverflow:e.options?.style?.textOverflow||`ellipsis`}),e.shortened=!0),e.attr(t.attribs),e[e.moved?`animate`:`attr`](t.posAttribs),e.moved=!0):e&&e.attr({y:-9999})}),delete e.distributeBox},this)}function a(e){let t=this.center,n=this.options,r=n.center,i=n.minSize||80,a=i,o=n.size!==null;return!o&&(r[0]===null?(a=Math.max(t[2]-e[1]-e[3],i),t[0]+=(e[3]-e[1])/2):a=Math.max(t[2]-Math.max(e[1],e[3]),i),r[1]===null?(a=ku(a,i,t[2]-e[0]-e[2]),t[1]+=(e[0]-e[2])/2):a=ku(a,i,t[2]-Math.max(e[0],e[2])),a(e.x+=t.x,e.y+=t.y,e),{x:0,y:0});return{x:t.x/e.length,y:t.y/e.length}},e.getDistanceBetweenPoints=function(e,t){return Math.sqrt((t.x-e.x)**2+(t.y-e.y)**2)},e.getAngleBetweenPoints=function(e,t){return Math.atan2(t.x-e.x,t.y-e.y)},e.pointInPolygon=function({x:e,y:t},n){let r=n.length,i,a,o=!1;for(i=0,a=r-1;it!=l>t&&e<(c-r)*(t-s)/(l-s)+r&&(o=!o)}return o}})(v||={});let{pointInPolygon:Iu}=v,{addEvent:Lu,getAlignFactor:Ru,fireEvent:zu,objectEach:Bu,pick:Vu}=M;function Hu(e){let t=e.length,n=(e,t)=>!(t.x>=e.x+e.width||t.x+t.width<=e.x||t.y>=e.y+e.height||t.y+t.height<=e.y),r=(e,t)=>{for(let n of e)if(Iu({x:n[0],y:n[1]},t))return!0;return!1},i,a,o,s,c,l=!1;for(let n=0;n(t.labelrank||0)-(e.labelrank||0));for(let i=0;i{Bu(e,e=>{e.label&&t.push(e.label)})});for(let n of e.series||[])if(n.visible&&n.hasDataLabels?.()){let r=n=>{for(let r of n)r.visible&&(r.dataLabels||[]).forEach(n=>{let i=n.options||{};n.labelrank=Vu(i.labelrank,r.labelrank,r.shapeArgs?.height),i.allowOverlap??Number(i.distance)>0?(n.oldOpacity=n.opacity,n.newOpacity=1,Uu(n,e)):t.push(n)})};r(n.nodes||[]),r(n.points)}this.hideOverlappingLabels(t)}let Gu={compose:function(e){let t=e.prototype;t.hideOverlappingLabels||(t.hideOverlappingLabels=Hu,Lu(e,`render`,Wu))}},{defaultOptions:Ku}=Be,{noop:qu}=S,{addEvent:Ju,extend:Yu,isObject:Xu,merge:Zu,relativeLength:Qu}=M,$u={radius:0,scope:`stack`,where:void 0},ed=qu,td=qu;function nd(e,t,n,r,i={}){let a=ed(e,t,n,r,i),{brStart:o=!0,brEnd:s=!0,innerR:c=0,r:l=n,start:u=0,end:d=0}=i;if(i.open||!i.borderRadius)return a;let f=d-u,p=Math.sin(f/2),m=Math.max(Math.min(Qu(i.borderRadius||0,l-c),(l-c)/2,l*p/(1+p)),0),h=Math.min(m,f/Math.PI*2*c),g=a.length-1;for(;g--;)(o||g!==0&&g!==3)&&(s||g!==1&&g!==2)&&function(e,t,n){let r,i,a,o=e[t],s=e[t+1];if(s[0]===`Z`&&(s=e[0]),(o[0]===`M`||o[0]===`L`)&&s[0]===`A`?(r=o,i=s,a=!0):o[0]===`A`&&(s[0]===`M`||s[0]===`L`)&&(r=s,i=o),r&&i&&i.params){let o=i[1],s=i[5],c=i.params,{start:l,end:u,cx:d,cy:f}=c,p=s?o-n:o+n,m=p?Math.asin(n/p):0,h=s?m:-m,g=Math.cos(m)*p;a?(c.start=l+h,r[1]=d+g*Math.cos(l),r[2]=f+g*Math.sin(l),e.splice(t+1,0,[`A`,n,n,0,0,1,d+o*Math.cos(c.start),f+o*Math.sin(c.start)])):(c.end=u-h,i[6]=d+o*Math.cos(c.end),i[7]=f+o*Math.sin(c.end),e.splice(t+1,0,[`A`,n,n,0,0,1,d+g*Math.cos(u),f+g*Math.sin(u)])),i[4]=Math.abs(c.end-c.start)1?h:m);return a}function rd(){if(this.options.borderRadius&&!(this.chart.is3d&&this.chart.is3d())){let{options:e,yAxis:t}=this,n=e.stacking===`percent`,r=Ku.plotOptions?.[this.type]?.borderRadius,i=id(e.borderRadius,Xu(r)?r:{}),a=t.options.reversed;for(let r of this.points){let{shapeArgs:o}=r;if(r.shapeType===`roundedRect`&&o){let{width:s=0,height:c=0,y:l=0}=o,u=l,d=c;if(i.scope===`stack`&&r.stackTotal){let i=t.translate(n?100:r.stackTotal,!1,!0,!1,!0),a=t.translate(e.threshold||0,!1,!0,!1,!0),o=this.crispCol(0,Math.min(i,a),0,Math.abs(i-a));u=o.y,d=o.height}let f=(r.negative?-1:1)*(a?-1:1)==-1,p=i.where;!p&&this.is(`waterfall`)&&Math.abs((r.yBottom||0)-(this.translatedThreshold||0))>this.borderWidth&&(p=`all`),p||=`end`;let m=Math.min(Qu(i.radius,s),s/2,p===`all`?c/2:1/0)||0;p===`end`&&(f&&(u-=m),d+=m),Yu(o,{brBoxHeight:d,brBoxY:u,r:m})}}}}function id(e,t){return Xu(e)||(e={radius:e||0}),Zu($u,t,e)}function ad(){let e=id(this.options.borderRadius);for(let t of this.points){let n=t.shapeArgs;n&&(n.borderRadius=Qu(e.radius,(n.r||0)-(n.innerR||0)))}}function od(e,t,n,r,i={}){let a=td(e,t,n,r,i),{r:o=0,brBoxHeight:s=r,brBoxY:c=t}=i,l=t-c,u=c+s-(t+r),d=l-o>-.1?0:o,f=u-o>-.1?0:o,p=Math.max(d&&l,0),m=Math.max(f&&u,0),h=[e+d,t],g=[e+n-d,t],_=[e+n,t+d],v=[e+n,t+r-f],y=[e+n-f,t+r],b=[e+f,t+r],x=[e,t+r-f],S=[e,t+d],C=(e,t)=>Math.sqrt(e**2-t**2);if(p){let e=C(d,d-p);h[0]-=e,g[0]+=e,_[1]=S[1]=t+d-p}if(r=dd(n.minWidth,0)&&this.chartHeight>=dd(n.minHeight,0)}).call(this)&&t.push(e._id)}function n(e,t){let n=this.options.responsive,r=this.currentResponsive,i=[],a;!t&&n&&n.rules&&n.rules.forEach(e=>{e._id===void 0&&(e._id=fd()),this.matchResponsiveRule(e,i)},this);let o=ud(...i.map(e=>ld(n?.rules||[],t=>t._id===e)).map(e=>e?.chartOptions));o.isResponsiveOptions=!0,i=i.toString()||void 0;let s=r?.ruleIds;i!==s&&(r&&(this.currentResponsive=void 0,this.updatingResponsive=!0,this.update(r.undoOptions,e,!0),this.updatingResponsive=!1),i?((a=sd(o,this.options,!0,this.collectionsWithUpdate)).isResponsiveOptions=!0,this.currentResponsive={ruleIds:i,mergedOptions:o,undoOptions:a},this.updatingResponsive||this.update(o,e,!0)):this.currentResponsive=void 0)}e.compose=function(e){let r=e.prototype;return r.matchResponsiveRule||cd(r,{matchResponsiveRule:t,setResponsive:n}),e}})(y||={});let pd=y;S.AST=R,S.Axis=Ai,S.Chart=oc,S.Color=F,S.DataLabel=Vl,S.DataTableCore=go,S.Fx=I,S.HTMLElement=Rr,S.Legend=Ss,S.LegendSymbol=bo,S.OverlappingDataLabels=S.OverlappingDataLabels||Gu,S.PlotLineOrBand=ea,S.Point=Ga,S.Pointer=lo,S.RendererRegistry=Rt,S.Series=Z,S.SeriesRegistry=K,S.StackItem=Ec,S.SVGElement=Cn,S.SVGRenderer=wr,S.Templating=Lt,S.Tick=ii,S.Time=Pe,S.Tooltip=Ta,S.animate=L.animate,S.animObject=L.animObject,S.chart=oc.chart,S.color=F.parse,S.dateFormat=Lt.dateFormat,S.defaultOptions=Be.defaultOptions,S.distribute=Ut.distribute,S.format=Lt.format,S.getDeferredAnimation=L.getDeferredAnimation,S.getOptions=Be.getOptions,S.numberFormat=Lt.numberFormat,S.seriesType=K.seriesType,S.setAnimation=L.setAnimation,S.setOptions=Be.setOptions,S.stop=L.stop,S.time=Be.defaultTime,S.timers=I.timers,{compose:function(e,t,n){let r=e.types.pie;if(!t.symbolCustomAttribs.includes(`borderRadius`)){let i=n.prototype.symbols;Ju(e,`afterColumnTranslate`,rd,{order:9}),Ju(r,`afterTranslate`,ad),t.symbolCustomAttribs.push(`borderRadius`,`brBoxHeight`,`brBoxY`,`brEnd`,`brStart`),ed=i.arc,td=i.roundedRect,i.arc=nd,i.roundedRect=od}},optionsToObject:id}.compose(S.Series,S.SVGElement,S.SVGRenderer),Kl.compose(S.Series.types.column),Vl.compose(S.Series),Fi.compose(S.Axis),Rr.compose(S.SVGRenderer),Ss.compose(S.Chart),zi.compose(S.Axis),Gu.compose(S.Chart),Fu.compose(S.Series.types.pie),ea.compose(S.Chart,S.Axis),lo.compose(S.Chart),pd.compose(S.Chart),vc.compose(S.Axis,S.Chart,S.Series),Kc.compose(S.Axis,S.Chart,S.Series),Ta.compose(S.Pointer),M.extend(S,M);let md=S;return x.default})())}));export{t}; \ No newline at end of file diff --git a/dashboard/public/_nuxt/1oRWw4hi.js b/dashboard/public/_nuxt/B5nozDwk.js similarity index 98% rename from dashboard/public/_nuxt/1oRWw4hi.js rename to dashboard/public/_nuxt/B5nozDwk.js index 199f54e..1ecf27f 100644 --- a/dashboard/public/_nuxt/1oRWw4hi.js +++ b/dashboard/public/_nuxt/B5nozDwk.js @@ -1 +1 @@ -import{G as e,J as t,Q as n,S as r,Z as i,ft as a,j as o,kt as s,st as c}from"./DOvCTup-.js";import{t as l}from"./4Us7Cdat.js";var u={class:`antialiased bg-white dark:bg-[#020420] dark:text-white font-sans grid min-h-screen overflow-hidden place-content-center text-[#020420] tracking-wide`},d={class:`max-w-520px text-center`},f=[`textContent`],p=[`textContent`],m=[`textContent`],h={class:`flex items-center justify-center w-full`},g=l({__name:`error-404`,props:{appName:{type:String,default:`Nuxt`},statusCode:{type:Number,default:404},statusMessage:{type:String,default:`Page not found`},description:{type:String,default:`Sorry, the page you are looking for could not be found.`},backHome:{type:String,default:`Go back home`}},setup(l){let g=l;return o({title:`${g.statusCode} - ${g.statusMessage} | ${g.appName}`,script:[{innerHTML:`!function(){const e=document.createElement("link").relList;if(!(e&&e.supports&&e.supports("modulepreload"))){for(const e of document.querySelectorAll('link[rel="modulepreload"]'))r(e);new MutationObserver(e=>{for(const o of e)if("childList"===o.type)for(const e of o.addedNodes)"LINK"===e.tagName&&"modulepreload"===e.rel&&r(e)}).observe(document,{childList:!0,subtree:!0})}function r(e){if(e.ep)return;e.ep=!0;const r=function(e){const r={};return e.integrity&&(r.integrity=e.integrity),e.referrerPolicy&&(r.referrerPolicy=e.referrerPolicy),"use-credentials"===e.crossOrigin?r.credentials="include":"anonymous"===e.crossOrigin?r.credentials="omit":r.credentials="same-origin",r}(e);fetch(e.href,r)}}();`}],style:[{innerHTML:`*,:after,:before{border-color:var(--un-default-border-color,#e5e7eb);border-style:solid;border-width:0;box-sizing:border-box}:after,:before{--un-content:""}html{line-height:1.5;-webkit-text-size-adjust:100%;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-feature-settings:normal;font-variation-settings:normal;-moz-tab-size:4;tab-size:4;-webkit-tap-highlight-color:transparent}body{line-height:inherit;margin:0}h1,h2{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}h1,h2,p{margin:0}*,:after,:before{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 transparent;--un-ring-shadow:0 0 transparent;--un-shadow-inset: ;--un-shadow:0 0 transparent;--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgba(147,197,253,.5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }`}]}),(o,g)=>{let _=r;return c(),t(`div`,u,[e(`div`,d,[e(`h1`,{class:`font-semibold leading-none mb-4 sm:text-[110px] tabular-nums text-[80px]`,textContent:s(l.statusCode)},null,8,f),e(`h2`,{class:`font-semibold mb-2 sm:text-3xl text-2xl`,textContent:s(l.statusMessage)},null,8,p),e(`p`,{class:`mb-4 px-2 text-[#64748B] text-md`,textContent:s(l.description)},null,8,m),e(`div`,h,[n(_,{to:`/`,class:`font-medium hover:text-[#00DC82] text-sm underline underline-offset-3`},{default:a(()=>[i(s(l.backHome),1)]),_:1})])])])}}},[[`__scopeId`,`data-v-7b104fd1`]]);export{g as default}; \ No newline at end of file +import{G as e,J as t,Q as n,S as r,Z as i,ft as a,j as o,kt as s,st as c}from"./CxatB1L6.js";import{t as l}from"./4Us7Cdat.js";var u={class:`antialiased bg-white dark:bg-[#020420] dark:text-white font-sans grid min-h-screen overflow-hidden place-content-center text-[#020420] tracking-wide`},d={class:`max-w-520px text-center`},f=[`textContent`],p=[`textContent`],m=[`textContent`],h={class:`flex items-center justify-center w-full`},g=l({__name:`error-404`,props:{appName:{type:String,default:`Nuxt`},statusCode:{type:Number,default:404},statusMessage:{type:String,default:`Page not found`},description:{type:String,default:`Sorry, the page you are looking for could not be found.`},backHome:{type:String,default:`Go back home`}},setup(l){let g=l;return o({title:`${g.statusCode} - ${g.statusMessage} | ${g.appName}`,script:[{innerHTML:`!function(){const e=document.createElement("link").relList;if(!(e&&e.supports&&e.supports("modulepreload"))){for(const e of document.querySelectorAll('link[rel="modulepreload"]'))r(e);new MutationObserver(e=>{for(const o of e)if("childList"===o.type)for(const e of o.addedNodes)"LINK"===e.tagName&&"modulepreload"===e.rel&&r(e)}).observe(document,{childList:!0,subtree:!0})}function r(e){if(e.ep)return;e.ep=!0;const r=function(e){const r={};return e.integrity&&(r.integrity=e.integrity),e.referrerPolicy&&(r.referrerPolicy=e.referrerPolicy),"use-credentials"===e.crossOrigin?r.credentials="include":"anonymous"===e.crossOrigin?r.credentials="omit":r.credentials="same-origin",r}(e);fetch(e.href,r)}}();`}],style:[{innerHTML:`*,:after,:before{border-color:var(--un-default-border-color,#e5e7eb);border-style:solid;border-width:0;box-sizing:border-box}:after,:before{--un-content:""}html{line-height:1.5;-webkit-text-size-adjust:100%;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-feature-settings:normal;font-variation-settings:normal;-moz-tab-size:4;tab-size:4;-webkit-tap-highlight-color:transparent}body{line-height:inherit;margin:0}h1,h2{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}h1,h2,p{margin:0}*,:after,:before{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 transparent;--un-ring-shadow:0 0 transparent;--un-shadow-inset: ;--un-shadow:0 0 transparent;--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgba(147,197,253,.5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }`}]}),(o,g)=>{let _=r;return c(),t(`div`,u,[e(`div`,d,[e(`h1`,{class:`font-semibold leading-none mb-4 sm:text-[110px] tabular-nums text-[80px]`,textContent:s(l.statusCode)},null,8,f),e(`h2`,{class:`font-semibold mb-2 sm:text-3xl text-2xl`,textContent:s(l.statusMessage)},null,8,p),e(`p`,{class:`mb-4 px-2 text-[#64748B] text-md`,textContent:s(l.description)},null,8,m),e(`div`,h,[n(_,{to:`/`,class:`font-medium hover:text-[#00DC82] text-sm underline underline-offset-3`},{default:a(()=>[i(s(l.backHome),1)]),_:1})])])])}}},[[`__scopeId`,`data-v-7b104fd1`]]);export{g as default}; \ No newline at end of file diff --git a/dashboard/public/_nuxt/DdPOBIP_.js b/dashboard/public/_nuxt/B_hS8f_s.js similarity index 80% rename from dashboard/public/_nuxt/DdPOBIP_.js rename to dashboard/public/_nuxt/B_hS8f_s.js index 9ea51df..9d34eb1 100644 --- a/dashboard/public/_nuxt/DdPOBIP_.js +++ b/dashboard/public/_nuxt/B_hS8f_s.js @@ -1 +1 @@ -import{$ as e,Dt as t,J as n,lt as r,st as i}from"./DOvCTup-.js";var a=e({__name:`ConfigTitle`,props:{withDivider:{type:Boolean}},setup(e){return(a,o)=>(i(),n(`div`,{class:t([`py-2 text-center text-lg font-semibold`,{divider:e.withDivider}])},[r(a.$slots,`default`)],2))}}),o=Object.assign(a,{__name:`ConfigTitle`});export{o as t}; \ No newline at end of file +import{$ as e,Dt as t,J as n,lt as r,st as i}from"./CxatB1L6.js";var a=e({__name:`ConfigTitle`,props:{withDivider:{type:Boolean}},setup(e){return(a,o)=>(i(),n(`div`,{class:t([`py-2 text-center text-lg font-semibold`,{divider:e.withDivider}])},[r(a.$slots,`default`)],2))}}),o=Object.assign(a,{__name:`ConfigTitle`});export{o as t}; \ No newline at end of file diff --git a/dashboard/public/_nuxt/Cqvf2RiX.js b/dashboard/public/_nuxt/B_unqUh-.js similarity index 99% rename from dashboard/public/_nuxt/Cqvf2RiX.js rename to dashboard/public/_nuxt/B_unqUh-.js index ec8c3ba..d8b71fc 100644 --- a/dashboard/public/_nuxt/Cqvf2RiX.js +++ b/dashboard/public/_nuxt/B_unqUh-.js @@ -1 +1 @@ -import{Et as e,St as t,W as n,dt as r,gt as i,mt as a,xt as o,yt as s}from"./DOvCTup-.js";var c=Math.min,l=Math.max,u=Math.round,d=Math.floor,f=e=>({x:e,y:e}),p={left:`right`,right:`left`,bottom:`top`,top:`bottom`},m={start:`end`,end:`start`};function h(e,t,n){return l(e,c(t,n))}function g(e,t){return typeof e==`function`?e(t):e}function _(e){return e.split(`-`)[0]}function v(e){return e.split(`-`)[1]}function y(e){return e===`x`?`y`:`x`}function b(e){return e===`y`?`height`:`width`}var x=new Set([`top`,`bottom`]);function S(e){return x.has(_(e))?`y`:`x`}function C(e){return y(S(e))}function ee(e,t,n){n===void 0&&(n=!1);let r=v(e),i=C(e),a=b(i),o=i===`x`?r===(n?`end`:`start`)?`right`:`left`:r===`start`?`bottom`:`top`;return t.reference[a]>t.floating[a]&&(o=A(o)),[o,A(o)]}function w(e){let t=A(e);return[T(e),t,T(t)]}function T(e){return e.replace(/start|end/g,e=>m[e])}var E=[`left`,`right`],D=[`right`,`left`],O=[`top`,`bottom`],k=[`bottom`,`top`];function te(e,t,n){switch(e){case`top`:case`bottom`:return n?t?D:E:t?E:D;case`left`:case`right`:return t?O:k;default:return[]}}function ne(e,t,n,r){let i=v(e),a=te(_(e),n===`start`,r);return i&&(a=a.map(e=>e+`-`+i),t&&(a=a.concat(a.map(T)))),a}function A(e){return e.replace(/left|right|bottom|top/g,e=>p[e])}function j(e){return{top:0,right:0,bottom:0,left:0,...e}}function re(e){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:j(e)}function M(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function N(e,t,n){let{reference:r,floating:i}=e,a=S(t),o=C(t),s=b(o),c=_(t),l=a===`y`,u=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,f=r[s]/2-i[s]/2,p;switch(c){case`top`:p={x:u,y:r.y-i.height};break;case`bottom`:p={x:u,y:r.y+r.height};break;case`right`:p={x:r.x+r.width,y:d};break;case`left`:p={x:r.x-i.width,y:d};break;default:p={x:r.x,y:r.y}}switch(v(t)){case`start`:p[o]-=f*(n&&l?-1:1);break;case`end`:p[o]+=f*(n&&l?-1:1);break}return p}var P=async(e,t,n)=>{let{placement:r=`bottom`,strategy:i=`absolute`,middleware:a=[],platform:o}=n,s=a.filter(Boolean),c=await(o.isRTL==null?void 0:o.isRTL(t)),l=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=N(l,r,c),f=r,p={},m=0;for(let n=0;n({name:`arrow`,options:e,async fn(t){let{x:n,y:r,placement:i,rects:a,platform:o,elements:s,middlewareData:l}=t,{element:u,padding:d=0}=g(e,t)||{};if(u==null)return{};let f=re(d),p={x:n,y:r},m=C(i),_=b(m),y=await o.getDimensions(u),x=m===`y`,S=x?`top`:`left`,ee=x?`bottom`:`right`,w=x?`clientHeight`:`clientWidth`,T=a.reference[_]+a.reference[m]-p[m]-a.floating[_],E=p[m]-a.reference[m],D=await(o.getOffsetParent==null?void 0:o.getOffsetParent(u)),O=D?D[w]:0;(!O||!await(o.isElement==null?void 0:o.isElement(D)))&&(O=s.floating[w]||a.floating[_]);let k=T/2-E/2,te=O/2-y[_]/2-1,ne=c(f[S],te),A=c(f[ee],te),j=ne,M=O-y[_]-A,N=O/2-y[_]/2+k,P=h(j,N,M),F=!l.arrow&&v(i)!=null&&N!==P&&a.reference[_]/2-(Ne<=0)){let e=(i.flip?.index||0)+1,t=E[e];if(t&&(!(u===`alignment`&&y!==S(t))||k.every(e=>S(e.placement)===y?e.overflows[0]>0:!0)))return{data:{index:e,overflows:k},reset:{placement:t}};let n=k.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0]?.placement;if(!n)switch(f){case`bestFit`:{let e=k.filter(e=>{if(T){let t=S(e.placement);return t===y||t===`y`}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0]?.[0];e&&(n=e);break}case`initialPlacement`:n=o;break}if(r!==n)return{reset:{placement:n}}}return{}}}},ae=new Set([`left`,`top`]);async function oe(e,t){let{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=_(n),s=v(n),c=S(n)===`y`,l=ae.has(o)?-1:1,u=a&&c?-1:1,d=g(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:m}=typeof d==`number`?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof m==`number`&&(p=s===`end`?m*-1:m),c?{x:p*u,y:f*l}:{x:f*l,y:p*u}}var se=function(e){return e===void 0&&(e=0),{name:`offset`,options:e,async fn(t){var n;let{x:r,y:i,placement:a,middlewareData:o}=t,s=await oe(t,e);return a===o.offset?.placement&&(n=o.arrow)!=null&&n.alignmentOffset?{}:{x:r+s.x,y:i+s.y,data:{...s,placement:a}}}}},ce=function(e){return e===void 0&&(e={}),{name:`shift`,options:e,async fn(t){let{x:n,y:r,placement:i}=t,{mainAxis:a=!0,crossAxis:o=!1,limiter:s={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...c}=g(e,t),l={x:n,y:r},u=await F(t,c),d=S(_(i)),f=y(d),p=l[f],m=l[d];if(a){let e=f===`y`?`top`:`left`,t=f===`y`?`bottom`:`right`,n=p+u[e],r=p-u[t];p=h(n,p,r)}if(o){let e=d===`y`?`top`:`left`,t=d===`y`?`bottom`:`right`,n=m+u[e],r=m-u[t];m=h(n,m,r)}let v=s.fn({...t,[f]:p,[d]:m});return{...v,data:{x:v.x-n,y:v.y-r,enabled:{[f]:a,[d]:o}}}}}};function L(){return typeof window<`u`}function R(e){return le(e)?(e.nodeName||``).toLowerCase():`#document`}function z(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function B(e){return((le(e)?e.ownerDocument:e.document)||window.document)?.documentElement}function le(e){return L()?e instanceof Node||e instanceof z(e).Node:!1}function V(e){return L()?e instanceof Element||e instanceof z(e).Element:!1}function H(e){return L()?e instanceof HTMLElement||e instanceof z(e).HTMLElement:!1}function ue(e){return!L()||typeof ShadowRoot>`u`?!1:e instanceof ShadowRoot||e instanceof z(e).ShadowRoot}var de=new Set([`inline`,`contents`]);function U(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=K(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!de.has(i)}var fe=new Set([`table`,`td`,`th`]);function pe(e){return fe.has(R(e))}var me=[`:popover-open`,`:modal`];function W(e){return me.some(t=>{try{return e.matches(t)}catch{return!1}})}var he=[`transform`,`translate`,`scale`,`rotate`,`perspective`],ge=[`transform`,`translate`,`scale`,`rotate`,`perspective`,`filter`],_e=[`paint`,`layout`,`strict`,`content`];function ve(e){let t=be(),n=V(e)?K(e):e;return he.some(e=>n[e]?n[e]!==`none`:!1)||(n.containerType?n.containerType!==`normal`:!1)||!t&&(n.backdropFilter?n.backdropFilter!==`none`:!1)||!t&&(n.filter?n.filter!==`none`:!1)||ge.some(e=>(n.willChange||``).includes(e))||_e.some(e=>(n.contain||``).includes(e))}function ye(e){let t=J(e);for(;H(t)&&!G(t);){if(ve(t))return t;if(W(t))return null;t=J(t)}return null}function be(){return typeof CSS>`u`||!CSS.supports?!1:CSS.supports(`-webkit-backdrop-filter`,`none`)}var xe=new Set([`html`,`body`,`#document`]);function G(e){return xe.has(R(e))}function K(e){return z(e).getComputedStyle(e)}function q(e){return V(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function J(e){if(R(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||ue(e)&&e.host||B(e);return ue(t)?t.host:t}function Se(e){let t=J(e);return G(t)?e.ownerDocument?e.ownerDocument.body:e.body:H(t)&&U(t)?t:Se(t)}function Y(e,t,n){t===void 0&&(t=[]),n===void 0&&(n=!0);let r=Se(e),i=r===e.ownerDocument?.body,a=z(r);if(i){let e=Ce(a);return t.concat(a,a.visualViewport||[],U(r)?r:[],e&&n?Y(e):[])}return t.concat(r,Y(r,[],n))}function Ce(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function we(e){let t=K(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=H(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=u(n)!==a||u(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function Te(e){return V(e)?e:e.contextElement}function X(e){let t=Te(e);if(!H(t))return f(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:a}=we(t),o=(a?u(n.width):n.width)/r,s=(a?u(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}var Ee=f(0);function De(e){let t=z(e);return!be()||!t.visualViewport?Ee:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Oe(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==z(e)?!1:t}function Z(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=Te(e),o=f(1);t&&(r?V(r)&&(o=X(r)):o=X(e));let s=Oe(a,n,r)?De(a):f(0),c=(i.left+s.x)/o.x,l=(i.top+s.y)/o.y,u=i.width/o.x,d=i.height/o.y;if(a){let e=z(a),t=r&&V(r)?z(r):r,n=e,i=Ce(n);for(;i&&r&&t!==n;){let e=X(i),t=i.getBoundingClientRect(),r=K(i),a=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,l*=e.y,u*=e.x,d*=e.y,c+=a,l+=o,n=z(i),i=Ce(n)}}return M({width:u,height:d,x:c,y:l})}function Q(e,t){let n=q(e).scrollLeft;return t?t.left+n:Z(B(e)).left+n}function ke(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-Q(e,n),y:n.top+t.scrollTop}}function Ae(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,a=i===`fixed`,o=B(r),s=t?W(t.floating):!1;if(r===o||s&&a)return n;let c={scrollLeft:0,scrollTop:0},l=f(1),u=f(0),d=H(r);if((d||!d&&!a)&&((R(r)!==`body`||U(o))&&(c=q(r)),H(r))){let e=Z(r);l=X(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}let p=o&&!d&&!a?ke(o,c):f(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x+p.x,y:n.y*l.y-c.scrollTop*l.y+u.y+p.y}}function je(e){return Array.from(e.getClientRects())}function Me(e){let t=B(e),n=q(e),r=e.ownerDocument.body,i=l(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=l(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),o=-n.scrollLeft+Q(e),s=-n.scrollTop;return K(r).direction===`rtl`&&(o+=l(t.clientWidth,r.clientWidth)-i),{width:i,height:a,x:o,y:s}}var Ne=25;function Pe(e,t){let n=z(e),r=B(e),i=n.visualViewport,a=r.clientWidth,o=r.clientHeight,s=0,c=0;if(i){a=i.width,o=i.height;let e=be();(!e||e&&t===`fixed`)&&(s=i.offsetLeft,c=i.offsetTop)}let l=Q(r);if(l<=0){let e=r.ownerDocument,t=e.body,n=getComputedStyle(t),i=e.compatMode===`CSS1Compat`&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,o=Math.abs(r.clientWidth-t.clientWidth-i);o<=Ne&&(a-=o)}else l<=Ne&&(a+=l);return{width:a,height:o,x:s,y:c}}var Fe=new Set([`absolute`,`fixed`]);function Ie(e,t){let n=Z(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=H(e)?X(e):f(1);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}function Le(e,t,n){let r;if(t===`viewport`)r=Pe(e,n);else if(t===`document`)r=Me(B(e));else if(V(t))r=Ie(t,n);else{let n=De(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return M(r)}function Re(e,t){let n=J(e);return n===t||!V(n)||G(n)?!1:K(n).position===`fixed`||Re(n,t)}function ze(e,t){let n=t.get(e);if(n)return n;let r=Y(e,[],!1).filter(e=>V(e)&&R(e)!==`body`),i=null,a=K(e).position===`fixed`,o=a?J(e):e;for(;V(o)&&!G(o);){let t=K(o),n=ve(o);!n&&t.position===`fixed`&&(i=null),(a?!n&&!i:!n&&t.position===`static`&&i&&Fe.has(i.position)||U(o)&&!n&&Re(e,o))?r=r.filter(e=>e!==o):i=t,o=J(o)}return t.set(e,r),r}function Be(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[...n===`clippingAncestors`?W(t)?[]:ze(t,this._c):[].concat(n),r],o=a[0],s=a.reduce((e,n)=>{let r=Le(t,n,i);return e.top=l(r.top,e.top),e.right=c(r.right,e.right),e.bottom=c(r.bottom,e.bottom),e.left=l(r.left,e.left),e},Le(t,o,i));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}}function Ve(e){let{width:t,height:n}=we(e);return{width:t,height:n}}function He(e,t,n){let r=H(t),i=B(t),a=n===`fixed`,o=Z(e,!0,a,t),s={scrollLeft:0,scrollTop:0},c=f(0);function l(){c.x=Q(i)}if(r||!r&&!a)if((R(t)!==`body`||U(i))&&(s=q(t)),r){let e=Z(t,!0,a,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}else i&&l();a&&!r&&i&&l();let u=i&&!r&&!a?ke(i,s):f(0);return{x:o.left+s.scrollLeft-c.x-u.x,y:o.top+s.scrollTop-c.y-u.y,width:o.width,height:o.height}}function Ue(e){return K(e).position===`static`}function We(e,t){if(!H(e)||K(e).position===`fixed`)return null;if(t)return t(e);let n=e.offsetParent;return B(e)===n&&(n=n.ownerDocument.body),n}function Ge(e,t){let n=z(e);if(W(e))return n;if(!H(e)){let t=J(e);for(;t&&!G(t);){if(V(t)&&!Ue(t))return t;t=J(t)}return n}let r=We(e,t);for(;r&&pe(r)&&Ue(r);)r=We(r,t);return r&&G(r)&&Ue(r)&&!ve(r)?n:r||ye(e)||n}var Ke=async function(e){let t=this.getOffsetParent||Ge,n=this.getDimensions,r=await n(e.floating);return{reference:He(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function qe(e){return K(e).direction===`rtl`}var Je={convertOffsetParentRelativeRectToViewportRelativeRect:Ae,getDocumentElement:B,getClippingRect:Be,getOffsetParent:Ge,getElementRects:Ke,getClientRects:je,getDimensions:Ve,getScale:X,isElement:V,isRTL:qe};function Ye(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Xe(e,t){let n=null,r,i=B(e);function a(){var e;clearTimeout(r),(e=n)==null||e.disconnect(),n=null}function o(s,u){s===void 0&&(s=!1),u===void 0&&(u=1),a();let f=e.getBoundingClientRect(),{left:p,top:m,width:h,height:g}=f;if(s||t(),!h||!g)return;let _=d(m),v=d(i.clientWidth-(p+h)),y=d(i.clientHeight-(m+g)),b=d(p),x={rootMargin:-_+`px `+-v+`px `+-y+`px `+-b+`px`,threshold:l(0,c(1,u))||1},S=!0;function C(t){let n=t[0].intersectionRatio;if(n!==u){if(!S)return o();n?o(!1,n):r=setTimeout(()=>{o(!1,1e-7)},1e3)}n===1&&!Ye(f,e.getBoundingClientRect())&&o(),S=!1}try{n=new IntersectionObserver(C,{...x,root:i.ownerDocument})}catch{n=new IntersectionObserver(C,x)}n.observe(e)}return o(!0),a}function Ze(e,t,n,r){r===void 0&&(r={});let{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver==`function`,layoutShift:s=typeof IntersectionObserver==`function`,animationFrame:c=!1}=r,l=Te(e),u=i||a?[...l?Y(l):[],...Y(t)]:[];u.forEach(e=>{i&&e.addEventListener(`scroll`,n,{passive:!0}),a&&e.addEventListener(`resize`,n)});let d=l&&s?Xe(l,n):null,f=-1,p=null;o&&(p=new ResizeObserver(e=>{let[r]=e;r&&r.target===l&&p&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var e;(e=p)==null||e.observe(t)})),n()}),l&&!c&&p.observe(l),p.observe(t));let m,h=c?Z(e):null;c&&g();function g(){let t=Z(e);h&&!Ye(h,t)&&n(),h=t,m=requestAnimationFrame(g)}return n(),()=>{var e;u.forEach(e=>{i&&e.removeEventListener(`scroll`,n),a&&e.removeEventListener(`resize`,n)}),d?.(),(e=p)==null||e.disconnect(),p=null,c&&cancelAnimationFrame(m)}}var Qe=se,$e=ce,et=ie,tt=I,nt=(e,t,n)=>{let r=new Map,i={platform:Je,...n},a={...i.platform,_c:r};return P(e,t,{...i,platform:a})};function rt(e){return typeof e==`object`&&!!e&&`$el`in e}function it(e){if(rt(e)){let t=e.$el;return le(t)&&R(t)===`#comment`?null:t}return e}function $(t){return typeof t==`function`?t():e(t)}function at(e){return{name:`arrow`,options:e,fn(t){let n=it($(e.element));return n==null?{}:tt({element:n,padding:e.padding}).fn(t)}}}function ot(e){return typeof window>`u`?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function st(e,t){let n=ot(e);return Math.round(t*n)/n}function ct(e,c,l){l===void 0&&(l={});let u=l.whileElementsMounted,d=n(()=>$(l.open)??!0),f=n(()=>$(l.middleware)),p=n(()=>$(l.placement)??`bottom`),m=n(()=>$(l.strategy)??`absolute`),h=n(()=>$(l.transform)??!0),g=n(()=>it(e.value)),_=n(()=>it(c.value)),v=s(0),y=s(0),b=s(m.value),x=s(p.value),S=t({}),C=s(!1),ee=n(()=>{let e={position:b.value,left:`0`,top:`0`};if(!_.value)return e;let t=st(_.value,v.value),n=st(_.value,y.value);return h.value?{...e,transform:`translate(`+t+`px, `+n+`px)`,...ot(_.value)>=1.5&&{willChange:`transform`}}:{position:b.value,left:t+`px`,top:n+`px`}}),w;function T(){if(g.value==null||_.value==null)return;let e=d.value;nt(g.value,_.value,{middleware:f.value,placement:p.value,strategy:m.value}).then(t=>{v.value=t.x,y.value=t.y,b.value=t.strategy,x.value=t.placement,S.value=t.middlewareData,C.value=e!==!1})}function E(){typeof w==`function`&&(w(),w=void 0)}function D(){if(E(),u===void 0){T();return}if(g.value!=null&&_.value!=null){w=u(g.value,_.value,T);return}}function O(){d.value||(C.value=!1)}return r([f,p,m,d],T,{flush:`sync`}),r([g,_],D,{flush:`sync`}),r(d,O,{flush:`sync`}),a()&&i(E),{x:o(v),y:o(y),strategy:o(b),placement:o(x),middlewareData:o(S),isPositioned:o(C),floatingStyles:ee,update:T}}export{Qe as a,et as i,ct as n,$e as o,Ze as r,at as t}; \ No newline at end of file +import{Et as e,St as t,W as n,dt as r,gt as i,mt as a,xt as o,yt as s}from"./CxatB1L6.js";var c=Math.min,l=Math.max,u=Math.round,d=Math.floor,f=e=>({x:e,y:e}),p={left:`right`,right:`left`,bottom:`top`,top:`bottom`},m={start:`end`,end:`start`};function h(e,t,n){return l(e,c(t,n))}function g(e,t){return typeof e==`function`?e(t):e}function _(e){return e.split(`-`)[0]}function v(e){return e.split(`-`)[1]}function y(e){return e===`x`?`y`:`x`}function b(e){return e===`y`?`height`:`width`}var x=new Set([`top`,`bottom`]);function S(e){return x.has(_(e))?`y`:`x`}function C(e){return y(S(e))}function ee(e,t,n){n===void 0&&(n=!1);let r=v(e),i=C(e),a=b(i),o=i===`x`?r===(n?`end`:`start`)?`right`:`left`:r===`start`?`bottom`:`top`;return t.reference[a]>t.floating[a]&&(o=A(o)),[o,A(o)]}function w(e){let t=A(e);return[T(e),t,T(t)]}function T(e){return e.replace(/start|end/g,e=>m[e])}var E=[`left`,`right`],D=[`right`,`left`],O=[`top`,`bottom`],k=[`bottom`,`top`];function te(e,t,n){switch(e){case`top`:case`bottom`:return n?t?D:E:t?E:D;case`left`:case`right`:return t?O:k;default:return[]}}function ne(e,t,n,r){let i=v(e),a=te(_(e),n===`start`,r);return i&&(a=a.map(e=>e+`-`+i),t&&(a=a.concat(a.map(T)))),a}function A(e){return e.replace(/left|right|bottom|top/g,e=>p[e])}function j(e){return{top:0,right:0,bottom:0,left:0,...e}}function re(e){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:j(e)}function M(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function N(e,t,n){let{reference:r,floating:i}=e,a=S(t),o=C(t),s=b(o),c=_(t),l=a===`y`,u=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,f=r[s]/2-i[s]/2,p;switch(c){case`top`:p={x:u,y:r.y-i.height};break;case`bottom`:p={x:u,y:r.y+r.height};break;case`right`:p={x:r.x+r.width,y:d};break;case`left`:p={x:r.x-i.width,y:d};break;default:p={x:r.x,y:r.y}}switch(v(t)){case`start`:p[o]-=f*(n&&l?-1:1);break;case`end`:p[o]+=f*(n&&l?-1:1);break}return p}var P=async(e,t,n)=>{let{placement:r=`bottom`,strategy:i=`absolute`,middleware:a=[],platform:o}=n,s=a.filter(Boolean),c=await(o.isRTL==null?void 0:o.isRTL(t)),l=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=N(l,r,c),f=r,p={},m=0;for(let n=0;n({name:`arrow`,options:e,async fn(t){let{x:n,y:r,placement:i,rects:a,platform:o,elements:s,middlewareData:l}=t,{element:u,padding:d=0}=g(e,t)||{};if(u==null)return{};let f=re(d),p={x:n,y:r},m=C(i),_=b(m),y=await o.getDimensions(u),x=m===`y`,S=x?`top`:`left`,ee=x?`bottom`:`right`,w=x?`clientHeight`:`clientWidth`,T=a.reference[_]+a.reference[m]-p[m]-a.floating[_],E=p[m]-a.reference[m],D=await(o.getOffsetParent==null?void 0:o.getOffsetParent(u)),O=D?D[w]:0;(!O||!await(o.isElement==null?void 0:o.isElement(D)))&&(O=s.floating[w]||a.floating[_]);let k=T/2-E/2,te=O/2-y[_]/2-1,ne=c(f[S],te),A=c(f[ee],te),j=ne,M=O-y[_]-A,N=O/2-y[_]/2+k,P=h(j,N,M),F=!l.arrow&&v(i)!=null&&N!==P&&a.reference[_]/2-(Ne<=0)){let e=(i.flip?.index||0)+1,t=E[e];if(t&&(!(u===`alignment`&&y!==S(t))||k.every(e=>S(e.placement)===y?e.overflows[0]>0:!0)))return{data:{index:e,overflows:k},reset:{placement:t}};let n=k.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0]?.placement;if(!n)switch(f){case`bestFit`:{let e=k.filter(e=>{if(T){let t=S(e.placement);return t===y||t===`y`}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0]?.[0];e&&(n=e);break}case`initialPlacement`:n=o;break}if(r!==n)return{reset:{placement:n}}}return{}}}},ae=new Set([`left`,`top`]);async function oe(e,t){let{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=_(n),s=v(n),c=S(n)===`y`,l=ae.has(o)?-1:1,u=a&&c?-1:1,d=g(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:m}=typeof d==`number`?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof m==`number`&&(p=s===`end`?m*-1:m),c?{x:p*u,y:f*l}:{x:f*l,y:p*u}}var se=function(e){return e===void 0&&(e=0),{name:`offset`,options:e,async fn(t){var n;let{x:r,y:i,placement:a,middlewareData:o}=t,s=await oe(t,e);return a===o.offset?.placement&&(n=o.arrow)!=null&&n.alignmentOffset?{}:{x:r+s.x,y:i+s.y,data:{...s,placement:a}}}}},ce=function(e){return e===void 0&&(e={}),{name:`shift`,options:e,async fn(t){let{x:n,y:r,placement:i}=t,{mainAxis:a=!0,crossAxis:o=!1,limiter:s={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...c}=g(e,t),l={x:n,y:r},u=await F(t,c),d=S(_(i)),f=y(d),p=l[f],m=l[d];if(a){let e=f===`y`?`top`:`left`,t=f===`y`?`bottom`:`right`,n=p+u[e],r=p-u[t];p=h(n,p,r)}if(o){let e=d===`y`?`top`:`left`,t=d===`y`?`bottom`:`right`,n=m+u[e],r=m-u[t];m=h(n,m,r)}let v=s.fn({...t,[f]:p,[d]:m});return{...v,data:{x:v.x-n,y:v.y-r,enabled:{[f]:a,[d]:o}}}}}};function L(){return typeof window<`u`}function R(e){return le(e)?(e.nodeName||``).toLowerCase():`#document`}function z(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function B(e){return((le(e)?e.ownerDocument:e.document)||window.document)?.documentElement}function le(e){return L()?e instanceof Node||e instanceof z(e).Node:!1}function V(e){return L()?e instanceof Element||e instanceof z(e).Element:!1}function H(e){return L()?e instanceof HTMLElement||e instanceof z(e).HTMLElement:!1}function ue(e){return!L()||typeof ShadowRoot>`u`?!1:e instanceof ShadowRoot||e instanceof z(e).ShadowRoot}var de=new Set([`inline`,`contents`]);function U(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=K(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!de.has(i)}var fe=new Set([`table`,`td`,`th`]);function pe(e){return fe.has(R(e))}var me=[`:popover-open`,`:modal`];function W(e){return me.some(t=>{try{return e.matches(t)}catch{return!1}})}var he=[`transform`,`translate`,`scale`,`rotate`,`perspective`],ge=[`transform`,`translate`,`scale`,`rotate`,`perspective`,`filter`],_e=[`paint`,`layout`,`strict`,`content`];function ve(e){let t=be(),n=V(e)?K(e):e;return he.some(e=>n[e]?n[e]!==`none`:!1)||(n.containerType?n.containerType!==`normal`:!1)||!t&&(n.backdropFilter?n.backdropFilter!==`none`:!1)||!t&&(n.filter?n.filter!==`none`:!1)||ge.some(e=>(n.willChange||``).includes(e))||_e.some(e=>(n.contain||``).includes(e))}function ye(e){let t=J(e);for(;H(t)&&!G(t);){if(ve(t))return t;if(W(t))return null;t=J(t)}return null}function be(){return typeof CSS>`u`||!CSS.supports?!1:CSS.supports(`-webkit-backdrop-filter`,`none`)}var xe=new Set([`html`,`body`,`#document`]);function G(e){return xe.has(R(e))}function K(e){return z(e).getComputedStyle(e)}function q(e){return V(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function J(e){if(R(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||ue(e)&&e.host||B(e);return ue(t)?t.host:t}function Se(e){let t=J(e);return G(t)?e.ownerDocument?e.ownerDocument.body:e.body:H(t)&&U(t)?t:Se(t)}function Y(e,t,n){t===void 0&&(t=[]),n===void 0&&(n=!0);let r=Se(e),i=r===e.ownerDocument?.body,a=z(r);if(i){let e=Ce(a);return t.concat(a,a.visualViewport||[],U(r)?r:[],e&&n?Y(e):[])}return t.concat(r,Y(r,[],n))}function Ce(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function we(e){let t=K(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=H(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=u(n)!==a||u(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function Te(e){return V(e)?e:e.contextElement}function X(e){let t=Te(e);if(!H(t))return f(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:a}=we(t),o=(a?u(n.width):n.width)/r,s=(a?u(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}var Ee=f(0);function De(e){let t=z(e);return!be()||!t.visualViewport?Ee:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Oe(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==z(e)?!1:t}function Z(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=Te(e),o=f(1);t&&(r?V(r)&&(o=X(r)):o=X(e));let s=Oe(a,n,r)?De(a):f(0),c=(i.left+s.x)/o.x,l=(i.top+s.y)/o.y,u=i.width/o.x,d=i.height/o.y;if(a){let e=z(a),t=r&&V(r)?z(r):r,n=e,i=Ce(n);for(;i&&r&&t!==n;){let e=X(i),t=i.getBoundingClientRect(),r=K(i),a=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,l*=e.y,u*=e.x,d*=e.y,c+=a,l+=o,n=z(i),i=Ce(n)}}return M({width:u,height:d,x:c,y:l})}function Q(e,t){let n=q(e).scrollLeft;return t?t.left+n:Z(B(e)).left+n}function ke(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-Q(e,n),y:n.top+t.scrollTop}}function Ae(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,a=i===`fixed`,o=B(r),s=t?W(t.floating):!1;if(r===o||s&&a)return n;let c={scrollLeft:0,scrollTop:0},l=f(1),u=f(0),d=H(r);if((d||!d&&!a)&&((R(r)!==`body`||U(o))&&(c=q(r)),H(r))){let e=Z(r);l=X(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}let p=o&&!d&&!a?ke(o,c):f(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x+p.x,y:n.y*l.y-c.scrollTop*l.y+u.y+p.y}}function je(e){return Array.from(e.getClientRects())}function Me(e){let t=B(e),n=q(e),r=e.ownerDocument.body,i=l(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=l(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),o=-n.scrollLeft+Q(e),s=-n.scrollTop;return K(r).direction===`rtl`&&(o+=l(t.clientWidth,r.clientWidth)-i),{width:i,height:a,x:o,y:s}}var Ne=25;function Pe(e,t){let n=z(e),r=B(e),i=n.visualViewport,a=r.clientWidth,o=r.clientHeight,s=0,c=0;if(i){a=i.width,o=i.height;let e=be();(!e||e&&t===`fixed`)&&(s=i.offsetLeft,c=i.offsetTop)}let l=Q(r);if(l<=0){let e=r.ownerDocument,t=e.body,n=getComputedStyle(t),i=e.compatMode===`CSS1Compat`&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,o=Math.abs(r.clientWidth-t.clientWidth-i);o<=Ne&&(a-=o)}else l<=Ne&&(a+=l);return{width:a,height:o,x:s,y:c}}var Fe=new Set([`absolute`,`fixed`]);function Ie(e,t){let n=Z(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=H(e)?X(e):f(1);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}function Le(e,t,n){let r;if(t===`viewport`)r=Pe(e,n);else if(t===`document`)r=Me(B(e));else if(V(t))r=Ie(t,n);else{let n=De(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return M(r)}function Re(e,t){let n=J(e);return n===t||!V(n)||G(n)?!1:K(n).position===`fixed`||Re(n,t)}function ze(e,t){let n=t.get(e);if(n)return n;let r=Y(e,[],!1).filter(e=>V(e)&&R(e)!==`body`),i=null,a=K(e).position===`fixed`,o=a?J(e):e;for(;V(o)&&!G(o);){let t=K(o),n=ve(o);!n&&t.position===`fixed`&&(i=null),(a?!n&&!i:!n&&t.position===`static`&&i&&Fe.has(i.position)||U(o)&&!n&&Re(e,o))?r=r.filter(e=>e!==o):i=t,o=J(o)}return t.set(e,r),r}function Be(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[...n===`clippingAncestors`?W(t)?[]:ze(t,this._c):[].concat(n),r],o=a[0],s=a.reduce((e,n)=>{let r=Le(t,n,i);return e.top=l(r.top,e.top),e.right=c(r.right,e.right),e.bottom=c(r.bottom,e.bottom),e.left=l(r.left,e.left),e},Le(t,o,i));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}}function Ve(e){let{width:t,height:n}=we(e);return{width:t,height:n}}function He(e,t,n){let r=H(t),i=B(t),a=n===`fixed`,o=Z(e,!0,a,t),s={scrollLeft:0,scrollTop:0},c=f(0);function l(){c.x=Q(i)}if(r||!r&&!a)if((R(t)!==`body`||U(i))&&(s=q(t)),r){let e=Z(t,!0,a,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}else i&&l();a&&!r&&i&&l();let u=i&&!r&&!a?ke(i,s):f(0);return{x:o.left+s.scrollLeft-c.x-u.x,y:o.top+s.scrollTop-c.y-u.y,width:o.width,height:o.height}}function Ue(e){return K(e).position===`static`}function We(e,t){if(!H(e)||K(e).position===`fixed`)return null;if(t)return t(e);let n=e.offsetParent;return B(e)===n&&(n=n.ownerDocument.body),n}function Ge(e,t){let n=z(e);if(W(e))return n;if(!H(e)){let t=J(e);for(;t&&!G(t);){if(V(t)&&!Ue(t))return t;t=J(t)}return n}let r=We(e,t);for(;r&&pe(r)&&Ue(r);)r=We(r,t);return r&&G(r)&&Ue(r)&&!ve(r)?n:r||ye(e)||n}var Ke=async function(e){let t=this.getOffsetParent||Ge,n=this.getDimensions,r=await n(e.floating);return{reference:He(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function qe(e){return K(e).direction===`rtl`}var Je={convertOffsetParentRelativeRectToViewportRelativeRect:Ae,getDocumentElement:B,getClippingRect:Be,getOffsetParent:Ge,getElementRects:Ke,getClientRects:je,getDimensions:Ve,getScale:X,isElement:V,isRTL:qe};function Ye(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Xe(e,t){let n=null,r,i=B(e);function a(){var e;clearTimeout(r),(e=n)==null||e.disconnect(),n=null}function o(s,u){s===void 0&&(s=!1),u===void 0&&(u=1),a();let f=e.getBoundingClientRect(),{left:p,top:m,width:h,height:g}=f;if(s||t(),!h||!g)return;let _=d(m),v=d(i.clientWidth-(p+h)),y=d(i.clientHeight-(m+g)),b=d(p),x={rootMargin:-_+`px `+-v+`px `+-y+`px `+-b+`px`,threshold:l(0,c(1,u))||1},S=!0;function C(t){let n=t[0].intersectionRatio;if(n!==u){if(!S)return o();n?o(!1,n):r=setTimeout(()=>{o(!1,1e-7)},1e3)}n===1&&!Ye(f,e.getBoundingClientRect())&&o(),S=!1}try{n=new IntersectionObserver(C,{...x,root:i.ownerDocument})}catch{n=new IntersectionObserver(C,x)}n.observe(e)}return o(!0),a}function Ze(e,t,n,r){r===void 0&&(r={});let{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver==`function`,layoutShift:s=typeof IntersectionObserver==`function`,animationFrame:c=!1}=r,l=Te(e),u=i||a?[...l?Y(l):[],...Y(t)]:[];u.forEach(e=>{i&&e.addEventListener(`scroll`,n,{passive:!0}),a&&e.addEventListener(`resize`,n)});let d=l&&s?Xe(l,n):null,f=-1,p=null;o&&(p=new ResizeObserver(e=>{let[r]=e;r&&r.target===l&&p&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var e;(e=p)==null||e.observe(t)})),n()}),l&&!c&&p.observe(l),p.observe(t));let m,h=c?Z(e):null;c&&g();function g(){let t=Z(e);h&&!Ye(h,t)&&n(),h=t,m=requestAnimationFrame(g)}return n(),()=>{var e;u.forEach(e=>{i&&e.removeEventListener(`scroll`,n),a&&e.removeEventListener(`resize`,n)}),d?.(),(e=p)==null||e.disconnect(),p=null,c&&cancelAnimationFrame(m)}}var Qe=se,$e=ce,et=ie,tt=I,nt=(e,t,n)=>{let r=new Map,i={platform:Je,...n},a={...i.platform,_c:r};return P(e,t,{...i,platform:a})};function rt(e){return typeof e==`object`&&!!e&&`$el`in e}function it(e){if(rt(e)){let t=e.$el;return le(t)&&R(t)===`#comment`?null:t}return e}function $(t){return typeof t==`function`?t():e(t)}function at(e){return{name:`arrow`,options:e,fn(t){let n=it($(e.element));return n==null?{}:tt({element:n,padding:e.padding}).fn(t)}}}function ot(e){return typeof window>`u`?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function st(e,t){let n=ot(e);return Math.round(t*n)/n}function ct(e,c,l){l===void 0&&(l={});let u=l.whileElementsMounted,d=n(()=>$(l.open)??!0),f=n(()=>$(l.middleware)),p=n(()=>$(l.placement)??`bottom`),m=n(()=>$(l.strategy)??`absolute`),h=n(()=>$(l.transform)??!0),g=n(()=>it(e.value)),_=n(()=>it(c.value)),v=s(0),y=s(0),b=s(m.value),x=s(p.value),S=t({}),C=s(!1),ee=n(()=>{let e={position:b.value,left:`0`,top:`0`};if(!_.value)return e;let t=st(_.value,v.value),n=st(_.value,y.value);return h.value?{...e,transform:`translate(`+t+`px, `+n+`px)`,...ot(_.value)>=1.5&&{willChange:`transform`}}:{position:b.value,left:t+`px`,top:n+`px`}}),w;function T(){if(g.value==null||_.value==null)return;let e=d.value;nt(g.value,_.value,{middleware:f.value,placement:p.value,strategy:m.value}).then(t=>{v.value=t.x,y.value=t.y,b.value=t.strategy,x.value=t.placement,S.value=t.middlewareData,C.value=e!==!1})}function E(){typeof w==`function`&&(w(),w=void 0)}function D(){if(E(),u===void 0){T();return}if(g.value!=null&&_.value!=null){w=u(g.value,_.value,T);return}}function O(){d.value||(C.value=!1)}return r([f,p,m,d],T,{flush:`sync`}),r([g,_],D,{flush:`sync`}),r(d,O,{flush:`sync`}),a()&&i(E),{x:o(v),y:o(y),strategy:o(b),placement:o(x),middlewareData:o(S),isPositioned:o(C),floatingStyles:ee,update:T}}export{Qe as a,et as i,ct as n,$e as o,Ze as r,at as t}; \ No newline at end of file diff --git a/dashboard/public/_nuxt/Cbl-HvWy.js b/dashboard/public/_nuxt/BcCfHRGF.js similarity index 93% rename from dashboard/public/_nuxt/Cbl-HvWy.js rename to dashboard/public/_nuxt/BcCfHRGF.js index 863c896..3ceffe3 100644 --- a/dashboard/public/_nuxt/Cbl-HvWy.js +++ b/dashboard/public/_nuxt/BcCfHRGF.js @@ -1 +1 @@ -import{$ as e,Dt as t,E as n,Et as r,G as i,H as a,J as o,K as s,Q as c,R as l,V as ee,W as u,Z as d,ct as f,et as p,ft as m,ht as te,j as h,kt as g,pt as _,q as v,st as y,ut as ne,x as re,yt as b,z as ie}from"./DOvCTup-.js";import{u as x}from"./_v7-ePgP.js";import{t as ae}from"./DaqTEuJW.js";import{D as oe,c as se,g as ce,h as le,l as ue,n as S,t as C,u as de}from"./DkKkiaBA.js";import{t as fe}from"./BrukVZU9.js";import{t as pe}from"./DdPOBIP_.js";import{t as me}from"./NIr0cT37.js";import{t as he}from"./CJ3kh3xA.js";var ge={class:`flex h-full min-h-0 flex-col gap-2`},w={class:`join w-full shrink-0`},T=[`placeholder`],E={class:`min-h-0 flex-1 overflow-auto rounded-md bg-base-300 whitespace-nowrap`},D={class:`bg-base-200`},O={class:`flex items-center gap-2`},k=[`onClick`],A=[`onClick`],j=[`onClick`],M=[`colspan`],N={class:`flex items-center gap-2`},P={class:`font-semibold text-primary`},F={class:`text-xs text-base-content/60`},I={key:1,class:`hover`},L={key:0,class:`py-8 text-center text-base-content/70`},_e={class:`flex flex-col gap-4`},ve={value:`xs`},ye={value:`sm`},be={value:`md`},R={value:`lg`},xe={value:`info`},Se={value:`error`},Ce={value:`warning`},we={value:`debug`},Te={value:`silent`},z=e({__name:`logs`,setup(e){let{t:z}=re();h({title:u(()=>z(`logs`))});let B=fe(),V=ae(),H=b(``),U=b();function W(e){return e.match(/^\[([^\]]+)\]/)?.[1]??``}function Ee(e){switch(e){case x.Error:return`text-error`;case x.Warning:return`text-warning`;case x.Info:return`text-info`;case x.Debug:return`text-success`;default:return``}}let G=[{id:`seq`,label:z(`sequence`),sortable:!0,groupable:!1,render:e=>String(e.seq),sortValue:e=>e.seq},{id:`level`,label:z(`level`),sortable:!0,groupable:!0,render:e=>p(`span`,{class:Ee(e.type)},`[${e.type}]`),sortValue:e=>e.type,groupValue:e=>e.type},{id:`type`,label:z(`type`),sortable:!0,groupable:!0,render:e=>p(`span`,{class:`opacity-70`},W(e.payload)),sortValue:e=>W(e.payload),groupValue:e=>W(e.payload)||`(empty)`},{id:`payload`,label:z(`payload`),sortable:!1,groupable:!1,render:e=>e.payload}],K=n(`logsTableSortColumn`,`seq`),q=n(`logsTableSortDesc`,!0),J=n(`logsTableGrouping`,null),Y=b({}),X=u(()=>{if(!H.value)return B.logs;let e=H.value.toLowerCase();return B.logs.filter(t=>t.payload.toLowerCase().includes(e)||t.type.toLowerCase().includes(e)||W(t.payload).toLowerCase().includes(e))}),Z=u(()=>{let e=G.find(e=>e.id===K.value);return e?.sortValue?[...X.value].sort((t,n)=>{let r=e.sortValue(t),i=e.sortValue(n),a=0;return typeof r==`number`&&typeof i==`number`?a=r-i:typeof r==`string`&&typeof i==`string`&&(a=r.localeCompare(i)),q.value?-a:a}):X.value}),De=u(()=>J.value?G.find(e=>e.id===J.value):null),Q=u(()=>{let e=De.value;if(!e?.groupValue)return Z.value.map(e=>({type:`data`,original:e}));let t=new Map;for(let n of Z.value){let r=e.groupValue(n),i=t.get(r);i?i.push(n):t.set(r,[n])}let n=[];for(let[e,r]of t)if(n.push({type:`group`,key:e,subRows:r}),Y.value[e])for(let e of r)n.push({type:`data`,original:e});return n});function Oe(e){return G.find(t=>t.id===e)?.sortable??!1}function $(e){return K.value===e}function ke(e){G.find(t=>t.id===e)?.sortable&&(K.value===e?q.value?q.value=!1:(K.value=``,q.value=!0):(K.value=e,q.value=!0))}function Ae(e){J.value===e?J.value=null:J.value=e,Y.value={}}function je(e){Y.value[e]=!Y.value[e]}let Me=u(()=>V.tableSizeClassName(V.logsTableSize));return(e,n)=>{let u=me,p=pe,h=he;return y(),o(`div`,ge,[i(`div`,w,[_(i(`input`,{"onUpdate:modelValue":n[0]||=e=>te(H)?H.value=e:null,type:`search`,class:`input input-sm join-item flex-1 shrink-0 input-primary`,placeholder:r(z)(`search`)},null,8,T),[[ie,r(H)]]),c(u,{class:`btn join-item btn-sm btn-primary`,onClick:n[1]||=e=>r(B).togglePaused()},{default:m(()=>[r(B).paused?(y(),s(r(le),{key:1})):(y(),s(r(ce),{key:0}))]),_:1}),c(u,{class:`btn join-item btn-sm btn-primary`,onClick:n[2]||=e=>r(U)?.open()},{default:m(()=>[c(r(de))]),_:1})]),i(`div`,E,[i(`table`,{class:t([`table-pin-rows table table-zebra`,r(Me)])},[i(`thead`,null,[i(`tr`,D,[(y(),o(a,null,f(G,e=>i(`th`,{key:e.id,class:`text-base-content`},[i(`div`,O,[i(`div`,{class:t([`flex-1`,{"cursor-pointer select-none":Oe(e.id)}]),onClick:t=>ke(e.id)},g(e.label),11,k),$(e.id)&&!r(q)?(y(),s(r(ue),{key:0,size:16})):$(e.id)&&r(q)?(y(),s(r(se),{key:1,size:16})):v(``,!0),e.groupable?(y(),o(`button`,{key:2,class:`cursor-pointer`,onClick:ee(t=>Ae(e.id),[`stop`])},[r(J)===e.id?(y(),s(r(C),{key:0,size:18})):(y(),s(r(S),{key:1,size:18}))],8,A)):v(``,!0)])])),64))])]),i(`tbody`,null,[(y(!0),o(a,null,f(r(Q),e=>(y(),o(a,{key:e.type===`group`?`group-${e.key}`:e.original.seq},[e.type===`group`?(y(),o(`tr`,{key:0,class:`cursor-pointer bg-base-200 hover:bg-base-300`,onClick:t=>je(e.key)},[i(`td`,{colspan:G.length,class:`py-2`},[i(`div`,N,[r(Y)[e.key]?(y(),s(r(C),{key:0,size:18})):(y(),s(r(S),{key:1,size:18})),i(`span`,P,g(e.key),1),i(`span`,F,`(`+g(e.subRows.length)+`)`,1)])],8,M)],8,j)):(y(),o(`tr`,I,[(y(),o(a,null,f(G,t=>i(`td`,{key:t.id,class:`whitespace-nowrap`},[(y(),s(ne(()=>t.render(e.original))))])),64))]))],64))),128))])],2),r(Q).length===0?(y(),o(`div`,L,g(r(z)(`noData`)),1)):v(``,!0)]),c(h,{ref_key:`settingsModal`,ref:U,title:r(z)(`logsSettings`)},{icon:m(()=>[c(r(oe),{size:24})]),default:m(()=>[i(`div`,_e,[i(`div`,null,[c(p,{"with-divider":``},{default:m(()=>[d(g(r(z)(`tableSize`)),1)]),_:1}),_(i(`select`,{"onUpdate:modelValue":n[3]||=e=>r(V).logsTableSize=e,class:`select w-full`},[i(`option`,ve,g(r(z)(`xs`)),1),i(`option`,ye,g(r(z)(`sm`)),1),i(`option`,be,g(r(z)(`md`)),1),i(`option`,R,g(r(z)(`lg`)),1)],512),[[l,r(V).logsTableSize]])]),i(`div`,null,[c(p,{"with-divider":``},{default:m(()=>[d(g(r(z)(`logLevel`)),1)]),_:1}),_(i(`select`,{"onUpdate:modelValue":n[4]||=e=>r(V).logLevel=e,class:`select w-full`},[i(`option`,xe,g(r(z)(`info`)),1),i(`option`,Se,g(r(z)(`error`)),1),i(`option`,Ce,g(r(z)(`warning`)),1),i(`option`,we,g(r(z)(`debug`)),1),i(`option`,Te,g(r(z)(`silent`)),1)],512),[[l,r(V).logLevel]])]),i(`div`,null,[c(p,{"with-divider":``},{default:m(()=>[d(g(r(z)(`logMaxRows`)),1)]),_:1}),_(i(`select`,{"onUpdate:modelValue":n[5]||=e=>r(V).logMaxRows=e,class:`select w-full`},[...n[6]||=[i(`option`,{value:200},`200`,-1),i(`option`,{value:300},`300`,-1),i(`option`,{value:500},`500`,-1),i(`option`,{value:800},`800`,-1),i(`option`,{value:1e3},`1000`,-1)]],512),[[l,r(V).logMaxRows]])])])]),_:1},8,[`title`])])}}});export{z as default}; \ No newline at end of file +import{$ as e,Dt as t,E as n,Et as r,G as i,H as a,J as o,K as s,Q as c,R as l,V as ee,W as u,Z as d,ct as f,et as p,ft as m,ht as te,j as h,kt as g,pt as _,q as v,st as y,ut as ne,x as re,yt as b,z as ie}from"./CxatB1L6.js";import{u as x}from"./_v7-ePgP.js";import{t as ae}from"./BxUO6acX.js";import{D as oe,c as se,g as ce,h as le,l as ue,n as S,t as C,u as de}from"./BlFRk3uc.js";import{t as fe}from"./DimqLJ3H.js";import{t as pe}from"./B_hS8f_s.js";import{t as me}from"./DP7SiUGW.js";import{t as he}from"./D4Jc__Wf.js";var ge={class:`flex h-full min-h-0 flex-col gap-2`},w={class:`join w-full shrink-0`},T=[`placeholder`],E={class:`min-h-0 flex-1 overflow-auto rounded-md bg-base-300 whitespace-nowrap`},D={class:`bg-base-200`},O={class:`flex items-center gap-2`},k=[`onClick`],A=[`onClick`],j=[`onClick`],M=[`colspan`],N={class:`flex items-center gap-2`},P={class:`font-semibold text-primary`},F={class:`text-xs text-base-content/60`},I={key:1,class:`hover`},L={key:0,class:`py-8 text-center text-base-content/70`},_e={class:`flex flex-col gap-4`},ve={value:`xs`},ye={value:`sm`},be={value:`md`},R={value:`lg`},xe={value:`info`},Se={value:`error`},Ce={value:`warning`},we={value:`debug`},Te={value:`silent`},z=e({__name:`logs`,setup(e){let{t:z}=re();h({title:u(()=>z(`logs`))});let B=fe(),V=ae(),H=b(``),U=b();function W(e){return e.match(/^\[([^\]]+)\]/)?.[1]??``}function Ee(e){switch(e){case x.Error:return`text-error`;case x.Warning:return`text-warning`;case x.Info:return`text-info`;case x.Debug:return`text-success`;default:return``}}let G=[{id:`seq`,label:z(`sequence`),sortable:!0,groupable:!1,render:e=>String(e.seq),sortValue:e=>e.seq},{id:`level`,label:z(`level`),sortable:!0,groupable:!0,render:e=>p(`span`,{class:Ee(e.type)},`[${e.type}]`),sortValue:e=>e.type,groupValue:e=>e.type},{id:`type`,label:z(`type`),sortable:!0,groupable:!0,render:e=>p(`span`,{class:`opacity-70`},W(e.payload)),sortValue:e=>W(e.payload),groupValue:e=>W(e.payload)||`(empty)`},{id:`payload`,label:z(`payload`),sortable:!1,groupable:!1,render:e=>e.payload}],K=n(`logsTableSortColumn`,`seq`),q=n(`logsTableSortDesc`,!0),J=n(`logsTableGrouping`,null),Y=b({}),X=u(()=>{if(!H.value)return B.logs;let e=H.value.toLowerCase();return B.logs.filter(t=>t.payload.toLowerCase().includes(e)||t.type.toLowerCase().includes(e)||W(t.payload).toLowerCase().includes(e))}),Z=u(()=>{let e=G.find(e=>e.id===K.value);return e?.sortValue?[...X.value].sort((t,n)=>{let r=e.sortValue(t),i=e.sortValue(n),a=0;return typeof r==`number`&&typeof i==`number`?a=r-i:typeof r==`string`&&typeof i==`string`&&(a=r.localeCompare(i)),q.value?-a:a}):X.value}),De=u(()=>J.value?G.find(e=>e.id===J.value):null),Q=u(()=>{let e=De.value;if(!e?.groupValue)return Z.value.map(e=>({type:`data`,original:e}));let t=new Map;for(let n of Z.value){let r=e.groupValue(n),i=t.get(r);i?i.push(n):t.set(r,[n])}let n=[];for(let[e,r]of t)if(n.push({type:`group`,key:e,subRows:r}),Y.value[e])for(let e of r)n.push({type:`data`,original:e});return n});function Oe(e){return G.find(t=>t.id===e)?.sortable??!1}function $(e){return K.value===e}function ke(e){G.find(t=>t.id===e)?.sortable&&(K.value===e?q.value?q.value=!1:(K.value=``,q.value=!0):(K.value=e,q.value=!0))}function Ae(e){J.value===e?J.value=null:J.value=e,Y.value={}}function je(e){Y.value[e]=!Y.value[e]}let Me=u(()=>V.tableSizeClassName(V.logsTableSize));return(e,n)=>{let u=me,p=pe,h=he;return y(),o(`div`,ge,[i(`div`,w,[_(i(`input`,{"onUpdate:modelValue":n[0]||=e=>te(H)?H.value=e:null,type:`search`,class:`input input-sm join-item flex-1 shrink-0 input-primary`,placeholder:r(z)(`search`)},null,8,T),[[ie,r(H)]]),c(u,{class:`btn join-item btn-sm btn-primary`,onClick:n[1]||=e=>r(B).togglePaused()},{default:m(()=>[r(B).paused?(y(),s(r(le),{key:1})):(y(),s(r(ce),{key:0}))]),_:1}),c(u,{class:`btn join-item btn-sm btn-primary`,onClick:n[2]||=e=>r(U)?.open()},{default:m(()=>[c(r(de))]),_:1})]),i(`div`,E,[i(`table`,{class:t([`table-pin-rows table table-zebra`,r(Me)])},[i(`thead`,null,[i(`tr`,D,[(y(),o(a,null,f(G,e=>i(`th`,{key:e.id,class:`text-base-content`},[i(`div`,O,[i(`div`,{class:t([`flex-1`,{"cursor-pointer select-none":Oe(e.id)}]),onClick:t=>ke(e.id)},g(e.label),11,k),$(e.id)&&!r(q)?(y(),s(r(ue),{key:0,size:16})):$(e.id)&&r(q)?(y(),s(r(se),{key:1,size:16})):v(``,!0),e.groupable?(y(),o(`button`,{key:2,class:`cursor-pointer`,onClick:ee(t=>Ae(e.id),[`stop`])},[r(J)===e.id?(y(),s(r(C),{key:0,size:18})):(y(),s(r(S),{key:1,size:18}))],8,A)):v(``,!0)])])),64))])]),i(`tbody`,null,[(y(!0),o(a,null,f(r(Q),e=>(y(),o(a,{key:e.type===`group`?`group-${e.key}`:e.original.seq},[e.type===`group`?(y(),o(`tr`,{key:0,class:`cursor-pointer bg-base-200 hover:bg-base-300`,onClick:t=>je(e.key)},[i(`td`,{colspan:G.length,class:`py-2`},[i(`div`,N,[r(Y)[e.key]?(y(),s(r(C),{key:0,size:18})):(y(),s(r(S),{key:1,size:18})),i(`span`,P,g(e.key),1),i(`span`,F,`(`+g(e.subRows.length)+`)`,1)])],8,M)],8,j)):(y(),o(`tr`,I,[(y(),o(a,null,f(G,t=>i(`td`,{key:t.id,class:`whitespace-nowrap`},[(y(),s(ne(()=>t.render(e.original))))])),64))]))],64))),128))])],2),r(Q).length===0?(y(),o(`div`,L,g(r(z)(`noData`)),1)):v(``,!0)]),c(h,{ref_key:`settingsModal`,ref:U,title:r(z)(`logsSettings`)},{icon:m(()=>[c(r(oe),{size:24})]),default:m(()=>[i(`div`,_e,[i(`div`,null,[c(p,{"with-divider":``},{default:m(()=>[d(g(r(z)(`tableSize`)),1)]),_:1}),_(i(`select`,{"onUpdate:modelValue":n[3]||=e=>r(V).logsTableSize=e,class:`select w-full`},[i(`option`,ve,g(r(z)(`xs`)),1),i(`option`,ye,g(r(z)(`sm`)),1),i(`option`,be,g(r(z)(`md`)),1),i(`option`,R,g(r(z)(`lg`)),1)],512),[[l,r(V).logsTableSize]])]),i(`div`,null,[c(p,{"with-divider":``},{default:m(()=>[d(g(r(z)(`logLevel`)),1)]),_:1}),_(i(`select`,{"onUpdate:modelValue":n[4]||=e=>r(V).logLevel=e,class:`select w-full`},[i(`option`,xe,g(r(z)(`info`)),1),i(`option`,Se,g(r(z)(`error`)),1),i(`option`,Ce,g(r(z)(`warning`)),1),i(`option`,we,g(r(z)(`debug`)),1),i(`option`,Te,g(r(z)(`silent`)),1)],512),[[l,r(V).logLevel]])]),i(`div`,null,[c(p,{"with-divider":``},{default:m(()=>[d(g(r(z)(`logMaxRows`)),1)]),_:1}),_(i(`select`,{"onUpdate:modelValue":n[5]||=e=>r(V).logMaxRows=e,class:`select w-full`},[...n[6]||=[i(`option`,{value:200},`200`,-1),i(`option`,{value:300},`300`,-1),i(`option`,{value:500},`500`,-1),i(`option`,{value:800},`800`,-1),i(`option`,{value:1e3},`1000`,-1)]],512),[[l,r(V).logMaxRows]])])])]),_:1},8,[`title`])])}}});export{z as default}; \ No newline at end of file diff --git a/dashboard/public/_nuxt/DkKkiaBA.js b/dashboard/public/_nuxt/BlFRk3uc.js similarity index 99% rename from dashboard/public/_nuxt/DkKkiaBA.js rename to dashboard/public/_nuxt/BlFRk3uc.js index 624b183..e4f567e 100644 --- a/dashboard/public/_nuxt/DkKkiaBA.js +++ b/dashboard/public/_nuxt/BlFRk3uc.js @@ -1 +1 @@ -import{et as e}from"./DOvCTup-.js";var t={outline:{xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":2,"stroke-linecap":`round`,"stroke-linejoin":`round`},filled:{xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`currentColor`,stroke:`none`}},n=(n,r,i,a)=>({color:i=`currentColor`,size:o=24,stroke:s=2,title:c,class:l,...u},{attrs:d,slots:f})=>{let p=[...a.map(t=>e(...t)),...f.default?[f.default()]:[]];return c&&(p=[e(`title`,c),...p]),e(`svg`,{...t[n],width:o,height:o,...d,class:[`tabler-icon`,`tabler-icon-${r}`],...n===`filled`?{fill:i}:{"stroke-width":s??t[n][`stroke-width`],stroke:i},...u},p)},r=n(`outline`,`activity`,`Activity`,[[`path`,{d:`M3 12h4l3 8l4 -16l3 8h4`,key:`svg-0`}]]),i=n(`outline`,`arrow-down`,`ArrowDown`,[[`path`,{d:`M12 5l0 14`,key:`svg-0`}],[`path`,{d:`M18 13l-6 6`,key:`svg-1`}],[`path`,{d:`M6 13l6 6`,key:`svg-2`}]]),a=n(`outline`,`arrow-up`,`ArrowUp`,[[`path`,{d:`M12 5l0 14`,key:`svg-0`}],[`path`,{d:`M18 11l-6 -6`,key:`svg-1`}],[`path`,{d:`M6 11l6 -6`,key:`svg-2`}]]),o=n(`outline`,`brand-speedtest`,`BrandSpeedtest`,[[`path`,{d:`M5.636 19.364a9 9 0 1 1 12.728 0`,key:`svg-0`}],[`path`,{d:`M16 9l-4 4`,key:`svg-1`}]]),s=n(`outline`,`check`,`Check`,[[`path`,{d:`M5 12l5 5l10 -10`,key:`svg-0`}]]),c=n(`outline`,`chevron-down`,`ChevronDown`,[[`path`,{d:`M6 9l6 6l6 -6`,key:`svg-0`}]]),l=n(`outline`,`chevron-left`,`ChevronLeft`,[[`path`,{d:`M15 6l-6 6l6 6`,key:`svg-0`}]]),u=n(`outline`,`chevron-right`,`ChevronRight`,[[`path`,{d:`M9 6l6 6l-6 6`,key:`svg-0`}]]),d=n(`outline`,`chevrons-left`,`ChevronsLeft`,[[`path`,{d:`M11 7l-5 5l5 5`,key:`svg-0`}],[`path`,{d:`M17 7l-5 5l5 5`,key:`svg-1`}]]),f=n(`outline`,`chevrons-right`,`ChevronsRight`,[[`path`,{d:`M7 7l5 5l-5 5`,key:`svg-0`}],[`path`,{d:`M13 7l5 5l-5 5`,key:`svg-1`}]]),p=n(`outline`,`circle-dot`,`CircleDot`,[[`path`,{d:`M12 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0`,key:`svg-0`}],[`path`,{d:`M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0`,key:`svg-1`}]]),m=n(`outline`,`clock`,`Clock`,[[`path`,{d:`M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0`,key:`svg-0`}],[`path`,{d:`M12 7v5l3 3`,key:`svg-1`}]]),h=n(`outline`,`device-desktop`,`DeviceDesktop`,[[`path`,{d:`M3 5a1 1 0 0 1 1 -1h16a1 1 0 0 1 1 1v10a1 1 0 0 1 -1 1h-16a1 1 0 0 1 -1 -1v-10z`,key:`svg-0`}],[`path`,{d:`M7 20h10`,key:`svg-1`}],[`path`,{d:`M9 16v4`,key:`svg-2`}],[`path`,{d:`M15 16v4`,key:`svg-3`}]]),g=n(`outline`,`file-stack`,`FileStack`,[[`path`,{d:`M14 3v4a1 1 0 0 0 1 1h4`,key:`svg-0`}],[`path`,{d:`M5 12v-7a2 2 0 0 1 2 -2h7l5 5v4`,key:`svg-1`}],[`path`,{d:`M5 21h14`,key:`svg-2`}],[`path`,{d:`M5 18h14`,key:`svg-3`}],[`path`,{d:`M5 15h14`,key:`svg-4`}]]),_=n(`outline`,`filter`,`Filter`,[[`path`,{d:`M4 4h16v2.172a2 2 0 0 1 -.586 1.414l-4.414 4.414v7l-6 2v-8.5l-4.48 -4.928a2 2 0 0 1 -.52 -1.345v-2.227z`,key:`svg-0`}]]),v=n(`outline`,`globe`,`Globe`,[[`path`,{d:`M7 9a4 4 0 1 0 8 0a4 4 0 0 0 -8 0`,key:`svg-0`}],[`path`,{d:`M5.75 15a8.015 8.015 0 1 0 9.25 -13`,key:`svg-1`}],[`path`,{d:`M11 17v4`,key:`svg-2`}],[`path`,{d:`M7 21h8`,key:`svg-3`}]]),y=n(`outline`,`grip-vertical`,`GripVertical`,[[`path`,{d:`M9 5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0`,key:`svg-0`}],[`path`,{d:`M9 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0`,key:`svg-1`}],[`path`,{d:`M9 19m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0`,key:`svg-2`}],[`path`,{d:`M15 5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0`,key:`svg-3`}],[`path`,{d:`M15 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0`,key:`svg-4`}],[`path`,{d:`M15 19m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0`,key:`svg-5`}]]),b=n(`outline`,`hash`,`Hash`,[[`path`,{d:`M5 9l14 0`,key:`svg-0`}],[`path`,{d:`M5 15l14 0`,key:`svg-1`}],[`path`,{d:`M11 4l-4 16`,key:`svg-2`}],[`path`,{d:`M17 4l-4 16`,key:`svg-3`}]]),x=n(`outline`,`home`,`Home`,[[`path`,{d:`M5 12l-2 0l9 -9l9 9l-2 0`,key:`svg-0`}],[`path`,{d:`M5 12v7a2 2 0 0 0 2 2h10a2 2 0 0 0 2 -2v-7`,key:`svg-1`}],[`path`,{d:`M9 21v-6a2 2 0 0 1 2 -2h2a2 2 0 0 1 2 2v6`,key:`svg-2`}]]),S=n(`outline`,`info-circle`,`InfoCircle`,[[`path`,{d:`M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0`,key:`svg-0`}],[`path`,{d:`M12 9h.01`,key:`svg-1`}],[`path`,{d:`M11 12h1v4h1`,key:`svg-2`}]]),C=n(`outline`,`language`,`Language`,[[`path`,{d:`M9 6.371c0 4.418 -2.239 6.629 -5 6.629`,key:`svg-0`}],[`path`,{d:`M4 6.371h7`,key:`svg-1`}],[`path`,{d:`M5 9c0 2.144 2.252 3.908 6 4`,key:`svg-2`}],[`path`,{d:`M12 20l4 -9l4 9`,key:`svg-3`}],[`path`,{d:`M19.1 18h-6.2`,key:`svg-4`}],[`path`,{d:`M6.694 3l.793 .582`,key:`svg-5`}]]),w=n(`outline`,`menu-2`,`Menu2`,[[`path`,{d:`M4 6l16 0`,key:`svg-0`}],[`path`,{d:`M4 12l16 0`,key:`svg-1`}],[`path`,{d:`M4 18l16 0`,key:`svg-2`}]]),T=n(`outline`,`network`,`Network`,[[`path`,{d:`M6 9a6 6 0 1 0 12 0a6 6 0 0 0 -12 0`,key:`svg-0`}],[`path`,{d:`M12 3c1.333 .333 2 2.333 2 6s-.667 5.667 -2 6`,key:`svg-1`}],[`path`,{d:`M12 3c-1.333 .333 -2 2.333 -2 6s.667 5.667 2 6`,key:`svg-2`}],[`path`,{d:`M6 9h12`,key:`svg-3`}],[`path`,{d:`M3 20h7`,key:`svg-4`}],[`path`,{d:`M14 20h7`,key:`svg-5`}],[`path`,{d:`M10 20a2 2 0 1 0 4 0a2 2 0 0 0 -4 0`,key:`svg-6`}],[`path`,{d:`M12 15v3`,key:`svg-7`}]]),E=n(`outline`,`palette`,`Palette`,[[`path`,{d:`M12 21a9 9 0 0 1 0 -18c4.97 0 9 3.582 9 8c0 1.06 -.474 2.078 -1.318 2.828c-.844 .75 -1.989 1.172 -3.182 1.172h-2.5a2 2 0 0 0 -1 3.75a1.3 1.3 0 0 1 -1 2.25`,key:`svg-0`}],[`path`,{d:`M8.5 10.5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0`,key:`svg-1`}],[`path`,{d:`M12.5 7.5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0`,key:`svg-2`}],[`path`,{d:`M16.5 10.5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0`,key:`svg-3`}]]),D=n(`outline`,`player-pause`,`PlayerPause`,[[`path`,{d:`M6 5m0 1a1 1 0 0 1 1 -1h2a1 1 0 0 1 1 1v12a1 1 0 0 1 -1 1h-2a1 1 0 0 1 -1 -1z`,key:`svg-0`}],[`path`,{d:`M14 5m0 1a1 1 0 0 1 1 -1h2a1 1 0 0 1 1 1v12a1 1 0 0 1 -1 1h-2a1 1 0 0 1 -1 -1z`,key:`svg-1`}]]),O=n(`outline`,`player-play`,`PlayerPlay`,[[`path`,{d:`M7 4v16l13 -8z`,key:`svg-0`}]]),k=n(`outline`,`refresh`,`Refresh`,[[`path`,{d:`M20 11a8.1 8.1 0 0 0 -15.5 -2m-.5 -4v4h4`,key:`svg-0`}],[`path`,{d:`M4 13a8.1 8.1 0 0 0 15.5 2m.5 4v-4h-4`,key:`svg-1`}]]),A=n(`outline`,`reload`,`Reload`,[[`path`,{d:`M19.933 13.041a8 8 0 1 1 -9.925 -8.788c3.899 -1 7.935 1.007 9.425 4.747`,key:`svg-0`}],[`path`,{d:`M20 4v5h-5`,key:`svg-1`}]]),j=n(`outline`,`ruler`,`Ruler`,[[`path`,{d:`M5 4h14a1 1 0 0 1 1 1v5a1 1 0 0 1 -1 1h-7a1 1 0 0 0 -1 1v7a1 1 0 0 1 -1 1h-5a1 1 0 0 1 -1 -1v-14a1 1 0 0 1 1 -1`,key:`svg-0`}],[`path`,{d:`M4 8l2 0`,key:`svg-1`}],[`path`,{d:`M4 12l3 0`,key:`svg-2`}],[`path`,{d:`M4 16l2 0`,key:`svg-3`}],[`path`,{d:`M8 4l0 2`,key:`svg-4`}],[`path`,{d:`M12 4l0 3`,key:`svg-5`}],[`path`,{d:`M16 4l0 2`,key:`svg-6`}]]),M=n(`outline`,`server`,`Server`,[[`path`,{d:`M3 4m0 3a3 3 0 0 1 3 -3h12a3 3 0 0 1 3 3v2a3 3 0 0 1 -3 3h-12a3 3 0 0 1 -3 -3z`,key:`svg-0`}],[`path`,{d:`M3 12m0 3a3 3 0 0 1 3 -3h12a3 3 0 0 1 3 3v2a3 3 0 0 1 -3 3h-12a3 3 0 0 1 -3 -3z`,key:`svg-1`}],[`path`,{d:`M7 8l0 .01`,key:`svg-2`}],[`path`,{d:`M7 16l0 .01`,key:`svg-3`}]]),N=n(`outline`,`settings`,`Settings`,[[`path`,{d:`M10.325 4.317c.426 -1.756 2.924 -1.756 3.35 0a1.724 1.724 0 0 0 2.573 1.066c1.543 -.94 3.31 .826 2.37 2.37a1.724 1.724 0 0 0 1.065 2.572c1.756 .426 1.756 2.924 0 3.35a1.724 1.724 0 0 0 -1.066 2.573c.94 1.543 -.826 3.31 -2.37 2.37a1.724 1.724 0 0 0 -2.572 1.065c-.426 1.756 -2.924 1.756 -3.35 0a1.724 1.724 0 0 0 -2.573 -1.066c-1.543 .94 -3.31 -.826 -2.37 -2.37a1.724 1.724 0 0 0 -1.065 -2.572c-1.756 -.426 -1.756 -2.924 0 -3.35a1.724 1.724 0 0 0 1.066 -2.573c-.94 -1.543 .826 -3.31 2.37 -2.37c1 .608 2.296 .07 2.572 -1.065z`,key:`svg-0`}],[`path`,{d:`M9 12a3 3 0 1 0 6 0a3 3 0 0 0 -6 0`,key:`svg-1`}]]),P=n(`outline`,`sort-ascending`,`SortAscending`,[[`path`,{d:`M4 6l7 0`,key:`svg-0`}],[`path`,{d:`M4 12l7 0`,key:`svg-1`}],[`path`,{d:`M4 18l9 0`,key:`svg-2`}],[`path`,{d:`M15 9l3 -3l3 3`,key:`svg-3`}],[`path`,{d:`M18 6l0 12`,key:`svg-4`}]]),F=n(`outline`,`sort-descending`,`SortDescending`,[[`path`,{d:`M4 6l9 0`,key:`svg-0`}],[`path`,{d:`M4 12l7 0`,key:`svg-1`}],[`path`,{d:`M4 18l7 0`,key:`svg-2`}],[`path`,{d:`M15 15l3 3l3 -3`,key:`svg-3`}],[`path`,{d:`M18 6l0 12`,key:`svg-4`}]]),I=n(`outline`,`tag`,`Tag`,[[`path`,{d:`M7.5 7.5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0`,key:`svg-0`}],[`path`,{d:`M3 6v5.172a2 2 0 0 0 .586 1.414l7.71 7.71a2.41 2.41 0 0 0 3.408 0l5.592 -5.592a2.41 2.41 0 0 0 0 -3.408l-7.71 -7.71a2 2 0 0 0 -1.414 -.586h-5.172a3 3 0 0 0 -3 3z`,key:`svg-1`}]]),L=n(`outline`,`trash`,`Trash`,[[`path`,{d:`M4 7l16 0`,key:`svg-0`}],[`path`,{d:`M10 11l0 6`,key:`svg-1`}],[`path`,{d:`M14 11l0 6`,key:`svg-2`}],[`path`,{d:`M5 7l1 12a2 2 0 0 0 2 2h8a2 2 0 0 0 2 -2l1 -12`,key:`svg-3`}],[`path`,{d:`M9 7v-3a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v3`,key:`svg-4`}]]),R=n(`outline`,`world`,`World`,[[`path`,{d:`M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0`,key:`svg-0`}],[`path`,{d:`M3.6 9h16.8`,key:`svg-1`}],[`path`,{d:`M3.6 15h16.8`,key:`svg-2`}],[`path`,{d:`M11.5 3a17 17 0 0 0 0 18`,key:`svg-3`}],[`path`,{d:`M12.5 3a17 17 0 0 1 0 18`,key:`svg-4`}]]),z=n(`outline`,`x`,`X`,[[`path`,{d:`M18 6l-12 12`,key:`svg-0`}],[`path`,{d:`M6 6l12 12`,key:`svg-1`}]]),B=n(`filled`,`circle-check-filled`,`CircleCheckFilled`,[[`path`,{d:`M17 3.34a10 10 0 1 1 -14.995 8.984l-.005 -.324l.005 -.324a10 10 0 0 1 14.995 -8.336zm-1.293 5.953a1 1 0 0 0 -1.32 -.083l-.094 .083l-3.293 3.292l-1.293 -1.292l-.094 -.083a1 1 0 0 0 -1.403 1.403l.083 .094l2 2l.094 .083a1 1 0 0 0 1.226 0l.094 -.083l4 -4l.083 -.094a1 1 0 0 0 -.083 -1.32z`,key:`svg-0`}]]),V=n(`filled`,`zoom-in-filled`,`ZoomInFilled`,[[`path`,{d:`M14 3.072a8 8 0 0 1 2.617 11.424l4.944 4.943a1.5 1.5 0 0 1 -2.008 2.225l-.114 -.103l-4.943 -4.944a8 8 0 0 1 -12.49 -6.332l-.006 -.285l.005 -.285a8 8 0 0 1 11.995 -6.643zm-4 2.928a1 1 0 0 0 -.993 .883l-.007 .117v2h-2l-.117 .007a1 1 0 0 0 0 1.986l.117 .007h2v2l.007 .117a1 1 0 0 0 1.986 0l.007 -.117v-2h2l.117 -.007a1 1 0 0 0 0 -1.986l-.117 -.007h-2v-2l-.007 -.117a1 1 0 0 0 -.993 -.883z`,key:`svg-0`}]]),H=n(`filled`,`zoom-out-filled`,`ZoomOutFilled`,[[`path`,{d:`M14 3.072a8 8 0 0 1 2.617 11.424l4.944 4.943a1.5 1.5 0 0 1 -2.008 2.225l-.114 -.103l-4.943 -4.944a8 8 0 0 1 -12.49 -6.332l-.006 -.285l.005 -.285a8 8 0 0 1 11.995 -6.643zm-1 5.928h-6l-.117 .007a1 1 0 0 0 0 1.986l.117 .007h6l.117 -.007a1 1 0 0 0 0 -1.986l-.117 -.007z`,key:`svg-0`}]]);export{p as A,r as B,b as C,g as D,_ as E,c as F,s as I,o as L,d as M,u as N,h as O,l as P,a as R,x as S,v as T,E as _,R as a,C as b,F as c,M as d,j as f,D as g,O as h,z as i,f as j,m as k,P as l,k as m,V as n,L as o,A as p,B as r,I as s,H as t,N as u,T as v,y as w,S as x,w as y,i as z}; \ No newline at end of file +import{et as e}from"./CxatB1L6.js";var t={outline:{xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":2,"stroke-linecap":`round`,"stroke-linejoin":`round`},filled:{xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`currentColor`,stroke:`none`}},n=(n,r,i,a)=>({color:i=`currentColor`,size:o=24,stroke:s=2,title:c,class:l,...u},{attrs:d,slots:f})=>{let p=[...a.map(t=>e(...t)),...f.default?[f.default()]:[]];return c&&(p=[e(`title`,c),...p]),e(`svg`,{...t[n],width:o,height:o,...d,class:[`tabler-icon`,`tabler-icon-${r}`],...n===`filled`?{fill:i}:{"stroke-width":s??t[n][`stroke-width`],stroke:i},...u},p)},r=n(`outline`,`activity`,`Activity`,[[`path`,{d:`M3 12h4l3 8l4 -16l3 8h4`,key:`svg-0`}]]),i=n(`outline`,`arrow-down`,`ArrowDown`,[[`path`,{d:`M12 5l0 14`,key:`svg-0`}],[`path`,{d:`M18 13l-6 6`,key:`svg-1`}],[`path`,{d:`M6 13l6 6`,key:`svg-2`}]]),a=n(`outline`,`arrow-up`,`ArrowUp`,[[`path`,{d:`M12 5l0 14`,key:`svg-0`}],[`path`,{d:`M18 11l-6 -6`,key:`svg-1`}],[`path`,{d:`M6 11l6 -6`,key:`svg-2`}]]),o=n(`outline`,`brand-speedtest`,`BrandSpeedtest`,[[`path`,{d:`M5.636 19.364a9 9 0 1 1 12.728 0`,key:`svg-0`}],[`path`,{d:`M16 9l-4 4`,key:`svg-1`}]]),s=n(`outline`,`check`,`Check`,[[`path`,{d:`M5 12l5 5l10 -10`,key:`svg-0`}]]),c=n(`outline`,`chevron-down`,`ChevronDown`,[[`path`,{d:`M6 9l6 6l6 -6`,key:`svg-0`}]]),l=n(`outline`,`chevron-left`,`ChevronLeft`,[[`path`,{d:`M15 6l-6 6l6 6`,key:`svg-0`}]]),u=n(`outline`,`chevron-right`,`ChevronRight`,[[`path`,{d:`M9 6l6 6l-6 6`,key:`svg-0`}]]),d=n(`outline`,`chevrons-left`,`ChevronsLeft`,[[`path`,{d:`M11 7l-5 5l5 5`,key:`svg-0`}],[`path`,{d:`M17 7l-5 5l5 5`,key:`svg-1`}]]),f=n(`outline`,`chevrons-right`,`ChevronsRight`,[[`path`,{d:`M7 7l5 5l-5 5`,key:`svg-0`}],[`path`,{d:`M13 7l5 5l-5 5`,key:`svg-1`}]]),p=n(`outline`,`circle-dot`,`CircleDot`,[[`path`,{d:`M12 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0`,key:`svg-0`}],[`path`,{d:`M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0`,key:`svg-1`}]]),m=n(`outline`,`clock`,`Clock`,[[`path`,{d:`M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0`,key:`svg-0`}],[`path`,{d:`M12 7v5l3 3`,key:`svg-1`}]]),h=n(`outline`,`device-desktop`,`DeviceDesktop`,[[`path`,{d:`M3 5a1 1 0 0 1 1 -1h16a1 1 0 0 1 1 1v10a1 1 0 0 1 -1 1h-16a1 1 0 0 1 -1 -1v-10z`,key:`svg-0`}],[`path`,{d:`M7 20h10`,key:`svg-1`}],[`path`,{d:`M9 16v4`,key:`svg-2`}],[`path`,{d:`M15 16v4`,key:`svg-3`}]]),g=n(`outline`,`file-stack`,`FileStack`,[[`path`,{d:`M14 3v4a1 1 0 0 0 1 1h4`,key:`svg-0`}],[`path`,{d:`M5 12v-7a2 2 0 0 1 2 -2h7l5 5v4`,key:`svg-1`}],[`path`,{d:`M5 21h14`,key:`svg-2`}],[`path`,{d:`M5 18h14`,key:`svg-3`}],[`path`,{d:`M5 15h14`,key:`svg-4`}]]),_=n(`outline`,`filter`,`Filter`,[[`path`,{d:`M4 4h16v2.172a2 2 0 0 1 -.586 1.414l-4.414 4.414v7l-6 2v-8.5l-4.48 -4.928a2 2 0 0 1 -.52 -1.345v-2.227z`,key:`svg-0`}]]),v=n(`outline`,`globe`,`Globe`,[[`path`,{d:`M7 9a4 4 0 1 0 8 0a4 4 0 0 0 -8 0`,key:`svg-0`}],[`path`,{d:`M5.75 15a8.015 8.015 0 1 0 9.25 -13`,key:`svg-1`}],[`path`,{d:`M11 17v4`,key:`svg-2`}],[`path`,{d:`M7 21h8`,key:`svg-3`}]]),y=n(`outline`,`grip-vertical`,`GripVertical`,[[`path`,{d:`M9 5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0`,key:`svg-0`}],[`path`,{d:`M9 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0`,key:`svg-1`}],[`path`,{d:`M9 19m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0`,key:`svg-2`}],[`path`,{d:`M15 5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0`,key:`svg-3`}],[`path`,{d:`M15 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0`,key:`svg-4`}],[`path`,{d:`M15 19m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0`,key:`svg-5`}]]),b=n(`outline`,`hash`,`Hash`,[[`path`,{d:`M5 9l14 0`,key:`svg-0`}],[`path`,{d:`M5 15l14 0`,key:`svg-1`}],[`path`,{d:`M11 4l-4 16`,key:`svg-2`}],[`path`,{d:`M17 4l-4 16`,key:`svg-3`}]]),x=n(`outline`,`home`,`Home`,[[`path`,{d:`M5 12l-2 0l9 -9l9 9l-2 0`,key:`svg-0`}],[`path`,{d:`M5 12v7a2 2 0 0 0 2 2h10a2 2 0 0 0 2 -2v-7`,key:`svg-1`}],[`path`,{d:`M9 21v-6a2 2 0 0 1 2 -2h2a2 2 0 0 1 2 2v6`,key:`svg-2`}]]),S=n(`outline`,`info-circle`,`InfoCircle`,[[`path`,{d:`M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0`,key:`svg-0`}],[`path`,{d:`M12 9h.01`,key:`svg-1`}],[`path`,{d:`M11 12h1v4h1`,key:`svg-2`}]]),C=n(`outline`,`language`,`Language`,[[`path`,{d:`M9 6.371c0 4.418 -2.239 6.629 -5 6.629`,key:`svg-0`}],[`path`,{d:`M4 6.371h7`,key:`svg-1`}],[`path`,{d:`M5 9c0 2.144 2.252 3.908 6 4`,key:`svg-2`}],[`path`,{d:`M12 20l4 -9l4 9`,key:`svg-3`}],[`path`,{d:`M19.1 18h-6.2`,key:`svg-4`}],[`path`,{d:`M6.694 3l.793 .582`,key:`svg-5`}]]),w=n(`outline`,`menu-2`,`Menu2`,[[`path`,{d:`M4 6l16 0`,key:`svg-0`}],[`path`,{d:`M4 12l16 0`,key:`svg-1`}],[`path`,{d:`M4 18l16 0`,key:`svg-2`}]]),T=n(`outline`,`network`,`Network`,[[`path`,{d:`M6 9a6 6 0 1 0 12 0a6 6 0 0 0 -12 0`,key:`svg-0`}],[`path`,{d:`M12 3c1.333 .333 2 2.333 2 6s-.667 5.667 -2 6`,key:`svg-1`}],[`path`,{d:`M12 3c-1.333 .333 -2 2.333 -2 6s.667 5.667 2 6`,key:`svg-2`}],[`path`,{d:`M6 9h12`,key:`svg-3`}],[`path`,{d:`M3 20h7`,key:`svg-4`}],[`path`,{d:`M14 20h7`,key:`svg-5`}],[`path`,{d:`M10 20a2 2 0 1 0 4 0a2 2 0 0 0 -4 0`,key:`svg-6`}],[`path`,{d:`M12 15v3`,key:`svg-7`}]]),E=n(`outline`,`palette`,`Palette`,[[`path`,{d:`M12 21a9 9 0 0 1 0 -18c4.97 0 9 3.582 9 8c0 1.06 -.474 2.078 -1.318 2.828c-.844 .75 -1.989 1.172 -3.182 1.172h-2.5a2 2 0 0 0 -1 3.75a1.3 1.3 0 0 1 -1 2.25`,key:`svg-0`}],[`path`,{d:`M8.5 10.5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0`,key:`svg-1`}],[`path`,{d:`M12.5 7.5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0`,key:`svg-2`}],[`path`,{d:`M16.5 10.5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0`,key:`svg-3`}]]),D=n(`outline`,`player-pause`,`PlayerPause`,[[`path`,{d:`M6 5m0 1a1 1 0 0 1 1 -1h2a1 1 0 0 1 1 1v12a1 1 0 0 1 -1 1h-2a1 1 0 0 1 -1 -1z`,key:`svg-0`}],[`path`,{d:`M14 5m0 1a1 1 0 0 1 1 -1h2a1 1 0 0 1 1 1v12a1 1 0 0 1 -1 1h-2a1 1 0 0 1 -1 -1z`,key:`svg-1`}]]),O=n(`outline`,`player-play`,`PlayerPlay`,[[`path`,{d:`M7 4v16l13 -8z`,key:`svg-0`}]]),k=n(`outline`,`refresh`,`Refresh`,[[`path`,{d:`M20 11a8.1 8.1 0 0 0 -15.5 -2m-.5 -4v4h4`,key:`svg-0`}],[`path`,{d:`M4 13a8.1 8.1 0 0 0 15.5 2m.5 4v-4h-4`,key:`svg-1`}]]),A=n(`outline`,`reload`,`Reload`,[[`path`,{d:`M19.933 13.041a8 8 0 1 1 -9.925 -8.788c3.899 -1 7.935 1.007 9.425 4.747`,key:`svg-0`}],[`path`,{d:`M20 4v5h-5`,key:`svg-1`}]]),j=n(`outline`,`ruler`,`Ruler`,[[`path`,{d:`M5 4h14a1 1 0 0 1 1 1v5a1 1 0 0 1 -1 1h-7a1 1 0 0 0 -1 1v7a1 1 0 0 1 -1 1h-5a1 1 0 0 1 -1 -1v-14a1 1 0 0 1 1 -1`,key:`svg-0`}],[`path`,{d:`M4 8l2 0`,key:`svg-1`}],[`path`,{d:`M4 12l3 0`,key:`svg-2`}],[`path`,{d:`M4 16l2 0`,key:`svg-3`}],[`path`,{d:`M8 4l0 2`,key:`svg-4`}],[`path`,{d:`M12 4l0 3`,key:`svg-5`}],[`path`,{d:`M16 4l0 2`,key:`svg-6`}]]),M=n(`outline`,`server`,`Server`,[[`path`,{d:`M3 4m0 3a3 3 0 0 1 3 -3h12a3 3 0 0 1 3 3v2a3 3 0 0 1 -3 3h-12a3 3 0 0 1 -3 -3z`,key:`svg-0`}],[`path`,{d:`M3 12m0 3a3 3 0 0 1 3 -3h12a3 3 0 0 1 3 3v2a3 3 0 0 1 -3 3h-12a3 3 0 0 1 -3 -3z`,key:`svg-1`}],[`path`,{d:`M7 8l0 .01`,key:`svg-2`}],[`path`,{d:`M7 16l0 .01`,key:`svg-3`}]]),N=n(`outline`,`settings`,`Settings`,[[`path`,{d:`M10.325 4.317c.426 -1.756 2.924 -1.756 3.35 0a1.724 1.724 0 0 0 2.573 1.066c1.543 -.94 3.31 .826 2.37 2.37a1.724 1.724 0 0 0 1.065 2.572c1.756 .426 1.756 2.924 0 3.35a1.724 1.724 0 0 0 -1.066 2.573c.94 1.543 -.826 3.31 -2.37 2.37a1.724 1.724 0 0 0 -2.572 1.065c-.426 1.756 -2.924 1.756 -3.35 0a1.724 1.724 0 0 0 -2.573 -1.066c-1.543 .94 -3.31 -.826 -2.37 -2.37a1.724 1.724 0 0 0 -1.065 -2.572c-1.756 -.426 -1.756 -2.924 0 -3.35a1.724 1.724 0 0 0 1.066 -2.573c-.94 -1.543 .826 -3.31 2.37 -2.37c1 .608 2.296 .07 2.572 -1.065z`,key:`svg-0`}],[`path`,{d:`M9 12a3 3 0 1 0 6 0a3 3 0 0 0 -6 0`,key:`svg-1`}]]),P=n(`outline`,`sort-ascending`,`SortAscending`,[[`path`,{d:`M4 6l7 0`,key:`svg-0`}],[`path`,{d:`M4 12l7 0`,key:`svg-1`}],[`path`,{d:`M4 18l9 0`,key:`svg-2`}],[`path`,{d:`M15 9l3 -3l3 3`,key:`svg-3`}],[`path`,{d:`M18 6l0 12`,key:`svg-4`}]]),F=n(`outline`,`sort-descending`,`SortDescending`,[[`path`,{d:`M4 6l9 0`,key:`svg-0`}],[`path`,{d:`M4 12l7 0`,key:`svg-1`}],[`path`,{d:`M4 18l7 0`,key:`svg-2`}],[`path`,{d:`M15 15l3 3l3 -3`,key:`svg-3`}],[`path`,{d:`M18 6l0 12`,key:`svg-4`}]]),I=n(`outline`,`tag`,`Tag`,[[`path`,{d:`M7.5 7.5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0`,key:`svg-0`}],[`path`,{d:`M3 6v5.172a2 2 0 0 0 .586 1.414l7.71 7.71a2.41 2.41 0 0 0 3.408 0l5.592 -5.592a2.41 2.41 0 0 0 0 -3.408l-7.71 -7.71a2 2 0 0 0 -1.414 -.586h-5.172a3 3 0 0 0 -3 3z`,key:`svg-1`}]]),L=n(`outline`,`trash`,`Trash`,[[`path`,{d:`M4 7l16 0`,key:`svg-0`}],[`path`,{d:`M10 11l0 6`,key:`svg-1`}],[`path`,{d:`M14 11l0 6`,key:`svg-2`}],[`path`,{d:`M5 7l1 12a2 2 0 0 0 2 2h8a2 2 0 0 0 2 -2l1 -12`,key:`svg-3`}],[`path`,{d:`M9 7v-3a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v3`,key:`svg-4`}]]),R=n(`outline`,`world`,`World`,[[`path`,{d:`M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0`,key:`svg-0`}],[`path`,{d:`M3.6 9h16.8`,key:`svg-1`}],[`path`,{d:`M3.6 15h16.8`,key:`svg-2`}],[`path`,{d:`M11.5 3a17 17 0 0 0 0 18`,key:`svg-3`}],[`path`,{d:`M12.5 3a17 17 0 0 1 0 18`,key:`svg-4`}]]),z=n(`outline`,`x`,`X`,[[`path`,{d:`M18 6l-12 12`,key:`svg-0`}],[`path`,{d:`M6 6l12 12`,key:`svg-1`}]]),B=n(`filled`,`circle-check-filled`,`CircleCheckFilled`,[[`path`,{d:`M17 3.34a10 10 0 1 1 -14.995 8.984l-.005 -.324l.005 -.324a10 10 0 0 1 14.995 -8.336zm-1.293 5.953a1 1 0 0 0 -1.32 -.083l-.094 .083l-3.293 3.292l-1.293 -1.292l-.094 -.083a1 1 0 0 0 -1.403 1.403l.083 .094l2 2l.094 .083a1 1 0 0 0 1.226 0l.094 -.083l4 -4l.083 -.094a1 1 0 0 0 -.083 -1.32z`,key:`svg-0`}]]),V=n(`filled`,`zoom-in-filled`,`ZoomInFilled`,[[`path`,{d:`M14 3.072a8 8 0 0 1 2.617 11.424l4.944 4.943a1.5 1.5 0 0 1 -2.008 2.225l-.114 -.103l-4.943 -4.944a8 8 0 0 1 -12.49 -6.332l-.006 -.285l.005 -.285a8 8 0 0 1 11.995 -6.643zm-4 2.928a1 1 0 0 0 -.993 .883l-.007 .117v2h-2l-.117 .007a1 1 0 0 0 0 1.986l.117 .007h2v2l.007 .117a1 1 0 0 0 1.986 0l.007 -.117v-2h2l.117 -.007a1 1 0 0 0 0 -1.986l-.117 -.007h-2v-2l-.007 -.117a1 1 0 0 0 -.993 -.883z`,key:`svg-0`}]]),H=n(`filled`,`zoom-out-filled`,`ZoomOutFilled`,[[`path`,{d:`M14 3.072a8 8 0 0 1 2.617 11.424l4.944 4.943a1.5 1.5 0 0 1 -2.008 2.225l-.114 -.103l-4.943 -4.944a8 8 0 0 1 -12.49 -6.332l-.006 -.285l.005 -.285a8 8 0 0 1 11.995 -6.643zm-1 5.928h-6l-.117 .007a1 1 0 0 0 0 1.986l.117 .007h6l.117 -.007a1 1 0 0 0 0 -1.986l-.117 -.007z`,key:`svg-0`}]]);export{p as A,r as B,b as C,g as D,_ as E,c as F,s as I,o as L,d as M,u as N,h as O,l as P,a as R,x as S,v as T,E as _,R as a,C as b,F as c,M as d,j as f,D as g,O as h,z as i,f as j,m as k,P as l,k as m,V as n,L as o,A as p,B as r,I as s,H as t,N as u,T as v,y as w,S as x,w as y,i as z}; \ No newline at end of file diff --git a/dashboard/public/_nuxt/BrGTwNTv.js b/dashboard/public/_nuxt/BoGeCRwk.js similarity index 99% rename from dashboard/public/_nuxt/BrGTwNTv.js rename to dashboard/public/_nuxt/BoGeCRwk.js index 857a792..ed14c10 100644 --- a/dashboard/public/_nuxt/BrGTwNTv.js +++ b/dashboard/public/_nuxt/BoGeCRwk.js @@ -1 +1 @@ -import{$ as e,A as t,Dt as n,E as r,Et as i,G as a,H as o,J as s,K as c,Mt as l,Q as u,R as d,T as f,V as p,W as m,Z as h,ct as g,dt as _,et as v,ft as y,ht as ee,j as b,k as x,kt as S,pt as te,q as C,rt as w,st as T,ut as E,w as D,wt as O,x as k,yt as A,z as ne}from"./DOvCTup-.js";import{i as j,n as M,r as re}from"./_v7-ePgP.js";import{t as ie}from"./DaqTEuJW.js";import"./4rydX2E6.js";import{M as ae,N as oe,P as se,c as ce,g as le,h as ue,i as de,j as fe,l as pe,n as me,t as he,u as ge,v as _e,w as ve}from"./DkKkiaBA.js";import{i as ye,r as be}from"./CZdbW3fS.js";import{i as xe,n as Se,r as Ce,t as we}from"./BlP2MkkZ.js";import{c as Te,h as Ee,o as De}from"./BpDbz5Be.js";import{t as Oe}from"./DdPOBIP_.js";import{t as ke}from"./NIr0cT37.js";import{t as Ae}from"./CJ3kh3xA.js";function je(e){var t=typeof e;return e!=null&&(t==`object`||t==`function`)}var Me=je,Ne=`[object AsyncFunction]`,Pe=`[object Function]`,Fe=`[object GeneratorFunction]`,Ie=`[object Proxy]`;function Le(e){if(!Me(e))return!1;var t=Ce(e);return t==Pe||t==Fe||t==Ne||t==Ie}var Re=Le,ze=xe[`__core-js_shared__`],Be=function(){var e=/[^.]+$/.exec(ze&&ze.keys&&ze.keys.IE_PROTO||``);return e?`Symbol(src)_1.`+e:``}();function Ve(e){return!!Be&&Be in e}var He=Ve,Ue=Function.prototype.toString;function We(e){if(e!=null){try{return Ue.call(e)}catch{}try{return e+``}catch{}}return``}var Ge=We,Ke=/[\\^$.*+?()[\]{}|]/g,qe=/^\[object .+?Constructor\]$/,Je=Function.prototype,Ye=Object.prototype,Xe=Je.toString,Ze=Ye.hasOwnProperty,Qe=RegExp(`^`+Xe.call(Ze).replace(Ke,`\\$&`).replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,`$1.*?`)+`$`);function $e(e){return!Me(e)||He(e)?!1:(Re(e)?Qe:qe).test(Ge(e))}var et=$e;function tt(e,t){return e?.[t]}var nt=tt;function rt(e,t){var n=nt(e,t);return et(n)?n:void 0}var it=rt;function at(){}var ot=at;function st(e,t,n,r){for(var i=e.length,a=n+(r?1:-1);r?a--:++a-1}var gt=ht;function _t(e,t){return e===t||e!==e&&t!==t}var vt=_t,yt=it(Object,`create`);function bt(){this.__data__=yt?yt(null):{},this.size=0}var xt=bt;function St(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var Ct=St,wt=`__lodash_hash_undefined__`,Tt=Object.prototype.hasOwnProperty;function Et(e){var t=this.__data__;if(yt){var n=t[e];return n===wt?void 0:n}return Tt.call(t,e)?t[e]:void 0}var Dt=Et,Ot=Object.prototype.hasOwnProperty;function kt(e){var t=this.__data__;return yt?t[e]!==void 0:Ot.call(t,e)}var At=kt,jt=`__lodash_hash_undefined__`;function Mt(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=yt&&t===void 0?jt:t,this}var Nt=Mt;function Pt(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t-1}var Kt=Gt;function qt(e,t){var n=this.__data__,r=zt(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var Jt=qt;function Yt(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t=An){var l=t?null:kn(e);if(l)return En(l);o=!1,i=wn,c=new Sn}else c=t?[]:s;outer:for(;++r{let f=ke;return T(),s(`div`,Fn,[a(`div`,In,[a(`div`,Ln,[(T(!0),s(o,null,g(e.tabs,t=>(T(),s(`button`,{key:t.type,class:n([`tab gap-2 px-2`,{"bg-primary text-neutral!":e.activeTab===t.type}]),onClick:e=>r(`update:activeTab`,t.type)},[a(`span`,null,S(t.name),1),a(`div`,zn,S(t.count),1)],10,Rn))),128))]),a(`div`,Bn,[a(`span`,Vn,S(i(l)(`quickFilter`)),1),a(`input`,{type:`checkbox`,class:`toggle toggle-sm`,checked:e.enableQuickFilter,onChange:d[0]||=e=>r(`update:enableQuickFilter`,e.target.checked)},null,40,Hn)]),a(`select`,{class:`select max-w-40 flex-1 select-sm select-primary`,value:e.sourceIPFilter,onChange:d[1]||=e=>r(`update:sourceIPFilter`,e.target.value)},[a(`option`,Wn,S(i(l)(`all`)),1),(T(!0),s(o,null,g(e.uniqueSourceIPs,e=>(T(),s(`option`,{key:e,value:e},S(e),9,Gn))),128))],40,Un)]),a(`div`,Kn,[a(`div`,qn,[a(`span`,Jn,S(i(l)(`sortBy`)),1),a(`select`,{class:`select select-sm select-primary`,value:e.sortColumn,onChange:d[2]||=e=>r(`update:sortColumn`,e.target.value)},[(T(!0),s(o,null,g(e.sortableColumns,e=>(T(),s(`option`,{key:e.id,value:e.sortId},S(i(l)(e.key)),9,Xn))),128))],40,Yn),u(f,{class:`btn btn-sm btn-primary`,onClick:d[3]||=e=>r(`toggleSortOrder`)},{default:y(()=>[e.sortDesc?(T(),c(i(ce),{key:0})):(T(),c(i(pe),{key:1}))]),_:1})]),a(`div`,Zn,[a(`input`,{type:`search`,class:`input input-sm join-item min-w-0 flex-1 input-primary`,placeholder:i(l)(`search`),value:e.globalFilter,onInput:d[4]||=e=>r(`update:globalFilter`,e.target.value)},null,40,Qn),u(f,{class:`btn join-item btn-sm btn-primary`,onClick:d[5]||=e=>r(`togglePaused`)},{default:y(()=>[e.paused?(T(),c(i(ue),{key:0})):(T(),c(i(le),{key:1}))]),_:1}),u(f,{class:`btn join-item btn-sm btn-primary`,loading:e.isClosingConnections,onClick:d[6]||=e=>r(`closeConnections`)},{default:y(()=>[u(i(de))]),_:1},8,[`loading`]),u(f,{class:`btn join-item btn-sm btn-primary`,onClick:d[7]||=e=>r(`openSettings`)},{default:y(()=>[u(i(ge))]),_:1})])])])}}}),er=Object.assign($n,{__name:`ConnectionsToolbar`}),tr={class:`join shrink-0`},nr=[`disabled`],rr=[`disabled`],ir={key:0,class:`flex items-center px-1 text-xs text-base-content/40`},ar=[`onClick`],or=[`disabled`],sr=[`disabled`],cr=e({__name:`ConnectionsPagination`,props:{currentPage:{},totalPages:{},visiblePages:{}},emits:[`goToPage`,`previous`,`next`],setup(e,{emit:t}){let r=t;return(t,c)=>(T(),s(`div`,tr,[a(`button`,{class:`btn join-item btn-xs`,disabled:e.currentPage===0,onClick:c[0]||=e=>r(`goToPage`,0)},[u(i(ae),{size:14})],8,nr),a(`button`,{class:`btn join-item btn-xs`,disabled:e.currentPage===0,onClick:c[1]||=e=>r(`previous`)},[u(i(se),{size:14})],8,rr),(T(!0),s(o,null,g(e.visiblePages,(t,i)=>(T(),s(o,{key:t},[i>0&&e.visiblePages[i-1]!==t-1?(T(),s(`span`,ir,` ··· `)):C(``,!0),a(`button`,{class:n([`btn join-item min-w-8 btn-xs`,{"btn-active":e.currentPage===t}]),onClick:e=>r(`goToPage`,t)},S(t+1),11,ar)],64))),128)),a(`button`,{class:`btn join-item btn-xs`,disabled:e.currentPage>=e.totalPages-1,onClick:c[2]||=e=>r(`next`)},[u(i(oe),{size:14})],8,or),a(`button`,{class:`btn join-item btn-xs`,disabled:e.currentPage>=e.totalPages-1,onClick:c[3]||=t=>r(`goToPage`,e.totalPages-1)},[u(i(fe),{size:14})],8,sr)]))}}),lr=Object.assign(cr,{__name:`ConnectionsPagination`}),ur={class:`min-h-0 flex-1 overflow-auto rounded-md bg-base-300`},dr={class:`hidden md:table-header-group`},fr={class:`bg-base-200`},pr={class:`flex items-center gap-2`},mr=[`onClick`],hr=[`onClick`],gr=[`onClick`],_r=[`colspan`],vr={class:`flex items-center gap-2`},yr={class:`font-semibold text-primary`},br={class:`text-xs text-base-content/60`},xr=[`onClick`],Sr={class:`block text-xs text-base-content/60 md:hidden`},Cr={key:0,class:`py-8 text-center text-base-content/70`},wr=e({__name:`ConnectionsTable`,props:{columns:{},rowModel:{},sortColumn:{},sortDesc:{type:Boolean},groupingColumn:{},expandedGroups:{},tableSizeClass:{}},emits:[`headerClick`,`toggleGrouping`,`toggleGroupExpanded`,`rowClick`],setup(e,{emit:t}){let r=t,{t:l}=k();function u(e){return e.sortable&&!!e.sortId}function d(e,t){return e.sortId?t===e.sortId:!1}return(t,f)=>(T(),s(`div`,ur,[a(`table`,{class:n([`table-pin-rows table table-zebra`,e.tableSizeClass])},[a(`thead`,dr,[a(`tr`,fr,[(T(!0),s(o,null,g(e.columns,t=>(T(),s(`th`,{key:t.id,class:`text-base-content`},[a(`div`,pr,[a(`div`,{class:n([`flex-1`,{"cursor-pointer select-none":u(t)}]),onClick:e=>r(`headerClick`,t.id)},S(i(l)(t.key)),11,mr),d(t,e.sortColumn)&&!e.sortDesc?(T(),c(i(pe),{key:0,size:16})):d(t,e.sortColumn)&&e.sortDesc?(T(),c(i(ce),{key:1,size:16})):C(``,!0),t.groupable?(T(),s(`button`,{key:2,class:`cursor-pointer`,onClick:p(e=>r(`toggleGrouping`,t.id),[`stop`])},[e.groupingColumn===t.id?(T(),c(i(he),{key:0,size:18})):(T(),c(i(me),{key:1,size:18}))],8,hr)):C(``,!0)])]))),128))])]),a(`tbody`,null,[(T(!0),s(o,null,g(e.rowModel,t=>(T(),s(o,{key:t.type===`group`?`group-${t.key}`:t.original.id},[t.type===`group`?(T(),s(`tr`,{key:0,class:`cursor-pointer bg-base-200 hover:bg-base-300`,onClick:e=>r(`toggleGroupExpanded`,t.key)},[a(`td`,{colspan:e.columns.length,class:`py-2`},[a(`div`,vr,[e.expandedGroups[t.key]?(T(),c(i(he),{key:0,size:18})):(T(),c(i(me),{key:1,size:18})),a(`span`,yr,S(t.key),1),a(`span`,br,`(`+S(t.subRows.length)+`)`,1)])],8,_r)],8,gr)):(T(),s(`tr`,{key:1,class:`md:hover flex cursor-pointer flex-wrap rounded-xl border-4 border-base-300 px-2 odd:bg-base-100 even:bg-base-200 md:table-row md:rounded-none md:border-0 md:px-0`,onClick:e=>r(`rowClick`,t.original)},[(T(!0),s(o,null,g(e.columns,e=>(T(),s(`td`,{key:e.id,class:`nth-2n:text-right sm:nth-2n:text-left sm:nth-3n:text-right md:nth-2n:text-start md:nth-3n:text-start w-1/2 min-w-1/2 pb-1.5 text-justify align-top wrap-break-word nth-last-2:mb-3 sm:w-1/3 sm:min-w-1/3 md:w-auto md:min-w-0 md:text-start md:align-middle md:whitespace-nowrap md:nth-last-2:mb-0`},[a(`span`,Sr,S(i(l)(e.key)),1),(T(),c(E(()=>e.render(t.original))))]))),128))],8,xr))],64))),128))])],2),e.rowModel.length===0?(T(),s(`div`,Cr,S(i(l)(`noData`)),1)):C(``,!0)]))}}),Tr=Object.assign(wr,{__name:`ConnectionsTable`});function Er(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Dr(e){for(var t=1;t=0)&&(n[i]=e[i]);return n}function Mr(e,t){if(e==null)return{};var n=jr(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}var Nr=`1.15.6`;function Pr(e){if(typeof window<`u`&&window.navigator)return!!navigator.userAgent.match(e)}var Fr=Pr(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),Ir=Pr(/Edge/i),Lr=Pr(/firefox/i),Rr=Pr(/safari/i)&&!Pr(/chrome/i)&&!Pr(/android/i),zr=Pr(/iP(ad|od|hone)/i),Br=Pr(/chrome/i)&&Pr(/android/i),Vr={capture:!1,passive:!1};function N(e,t,n){e.addEventListener(t,n,!Fr&&Vr)}function P(e,t,n){e.removeEventListener(t,n,!Fr&&Vr)}function Hr(e,t){if(t){if(t[0]===`>`&&(t=t.substring(1)),e)try{if(e.matches)return e.matches(t);if(e.msMatchesSelector)return e.msMatchesSelector(t);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(t)}catch{return!1}return!1}}function Ur(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function F(e,t,n,r){if(e){n||=document;do{if(t!=null&&(t[0]===`>`?e.parentNode===n&&Hr(e,t):Hr(e,t))||r&&e===n)return e;if(e===n)break}while(e=Ur(e))}return null}var Wr=/\s+/g;function I(e,t,n){e&&t&&(e.classList?e.classList[n?`add`:`remove`](t):e.className=((` `+e.className+` `).replace(Wr,` `).replace(` `+t+` `,` `)+(n?` `+t:``)).replace(Wr,` `))}function L(e,t,n){var r=e&&e.style;if(r){if(n===void 0)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(e,``):e.currentStyle&&(n=e.currentStyle),t===void 0?n:n[t];!(t in r)&&t.indexOf(`webkit`)===-1&&(t=`-webkit-`+t),r[t]=n+(typeof n==`string`?``:`px`)}}function Gr(e,t){var n=``;if(typeof e==`string`)n=e;else do{var r=L(e,`transform`);r&&r!==`none`&&(n=r+` `+n)}while(!t&&(e=e.parentNode));var i=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return i&&new i(n)}function Kr(e,t,n){if(e){var r=e.getElementsByTagName(t),i=0,a=r.length;if(n)for(;i=a:i<=a,!o)return r;if(r===qr())break;r=$r(r,!1)}return!1}function Yr(e,t,n,r){for(var i=0,a=0,o=e.children;a2&&arguments[2]!==void 0?arguments[2]:{},r=n.evt,i=Mr(n,hi);pi.pluginEvent.bind(Q)(e,t,Dr({dragEl:U,parentEl:W,ghostEl:G,rootEl:K,nextEl:gi,lastDownEl:_i,cloneEl:q,cloneHidden:vi,dragStarted:ji,putSortable:Y,activeSortable:Q.active,originalEvent:r,oldIndex:yi,oldDraggableIndex:bi,newIndex:J,newDraggableIndex:xi,hideGhostForTarget:Yi,unhideGhostForTarget:Xi,cloneNowHidden:function(){vi=!0},cloneNowShown:function(){vi=!1},dispatchSortableEvent:function(e){H({sortable:t,name:e,originalEvent:r})}},i))};function H(e){mi(Dr({putSortable:Y,cloneEl:q,targetEl:U,rootEl:K,oldIndex:yi,oldDraggableIndex:bi,newIndex:J,newDraggableIndex:xi},e))}var U,W,G,K,gi,_i,q,vi,yi,J,bi,xi,Si,Y,Ci=!1,wi=!1,Ti=[],Ei,X,Di,Oi,ki,Ai,ji,Mi,Ni,Pi=!1,Fi=!1,Ii,Z,Li=[],Ri=!1,zi=[],Bi=typeof document<`u`,Vi=zr,Hi=Ir||Fr?`cssFloat`:`float`,Ui=Bi&&!Br&&!zr&&`draggable`in document.createElement(`div`),Wi=function(){if(Bi){if(Fr)return!1;var e=document.createElement(`x`);return e.style.cssText=`pointer-events:auto`,e.style.pointerEvents===`auto`}}(),Gi=function(e,t){var n=L(e),r=parseInt(n.width)-parseInt(n.paddingLeft)-parseInt(n.paddingRight)-parseInt(n.borderLeftWidth)-parseInt(n.borderRightWidth),i=Yr(e,0,t),a=Yr(e,1,t),o=i&&L(i),s=a&&L(a),c=o&&parseInt(o.marginLeft)+parseInt(o.marginRight)+R(i).width,l=s&&parseInt(s.marginLeft)+parseInt(s.marginRight)+R(a).width;if(n.display===`flex`)return n.flexDirection===`column`||n.flexDirection===`column-reverse`?`vertical`:`horizontal`;if(n.display===`grid`)return n.gridTemplateColumns.split(` `).length<=1?`vertical`:`horizontal`;if(i&&o.float&&o.float!==`none`){var u=o.float===`left`?`left`:`right`;return a&&(s.clear===`both`||s.clear===u)?`vertical`:`horizontal`}return i&&(o.display===`block`||o.display===`flex`||o.display===`table`||o.display===`grid`||c>=r&&n[Hi]===`none`||a&&n[Hi]===`none`&&c+l>r)?`vertical`:`horizontal`},Ki=function(e,t,n){var r=n?e.left:e.top,i=n?e.right:e.bottom,a=n?e.width:e.height,o=n?t.left:t.top,s=n?t.right:t.bottom,c=n?t.width:t.height;return r===o||i===s||r+a/2===o+c/2},qi=function(e,t){var n;return Ti.some(function(r){var i=r[B].options.emptyInsertThreshold;if(!(!i||Xr(r))){var a=R(r),o=e>=a.left-i&&e<=a.right+i,s=t>=a.top-i&&t<=a.bottom+i;if(o&&s)return n=r}}),n},Ji=function(e){function t(e,n){return function(r,i,a,o){var s=r.options.group.name&&i.options.group.name&&r.options.group.name===i.options.group.name;if(e==null&&(n||s))return!0;if(e==null||e===!1)return!1;if(n&&e===`clone`)return e;if(typeof e==`function`)return t(e(r,i,a,o),n)(r,i,a,o);var c=(n?r:i).options.group.name;return e===!0||typeof e==`string`&&e===c||e.join&&e.indexOf(c)>-1}}var n={},r=e.group;(!r||Or(r)!=`object`)&&(r={name:r}),n.name=r.name,n.checkPull=t(r.pull,!0),n.checkPut=t(r.put),n.revertClone=r.revertClone,e.group=n},Yi=function(){!Wi&&G&&L(G,`display`,`none`)},Xi=function(){!Wi&&G&&L(G,`display`,``)};Bi&&!Br&&document.addEventListener(`click`,function(e){if(wi)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),wi=!1,!1},!0);var Zi=function(e){if(U){e=e.touches?e.touches[0]:e;var t=qi(e.clientX,e.clientY);if(t){var n={};for(var r in e)e.hasOwnProperty(r)&&(n[r]=e[r]);n.target=n.rootEl=t,n.preventDefault=void 0,n.stopPropagation=void 0,t[B]._onDragOver(n)}}},Qi=function(e){U&&U.parentNode[B]._isOutsideThisEl(e.target)};function Q(e,t){if(!(e&&e.nodeType&&e.nodeType===1))throw`Sortable: \`el\` must be an HTMLElement, not ${{}.toString.call(e)}`;this.el=e,this.options=t=Ar({},t),e[B]=this;var n={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(e.nodeName)?`>li`:`>*`,swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return Gi(e,this.options)},ghostClass:`sortable-ghost`,chosenClass:`sortable-chosen`,dragClass:`sortable-drag`,ignore:`a, img`,filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(e,t){e.setData(`Text`,t.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:`data-id`,delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:`sortable-fallback`,fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:Q.supportPointer!==!1&&`PointerEvent`in window&&(!Rr||zr),emptyInsertThreshold:5};for(var r in pi.initializePlugins(this,e,n),n)!(r in t)&&(t[r]=n[r]);for(var i in Ji(t),this)i.charAt(0)===`_`&&typeof this[i]==`function`&&(this[i]=this[i].bind(this));this.nativeDraggable=t.forceFallback?!1:Ui,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?N(e,`pointerdown`,this._onTapStart):(N(e,`mousedown`,this._onTapStart),N(e,`touchstart`,this._onTapStart)),this.nativeDraggable&&(N(e,`dragover`,this),N(e,`dragenter`,this)),Ti.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),Ar(this,ci())}Q.prototype={constructor:Q,_isOutsideThisEl:function(e){!this.el.contains(e)&&e!==this.el&&(Mi=null)},_getDirection:function(e,t){return typeof this.options.direction==`function`?this.options.direction.call(this,e,t,U):this.options.direction},_onTapStart:function(e){if(e.cancelable){var t=this,n=this.el,r=this.options,i=r.preventOnFilter,a=e.type,o=e.touches&&e.touches[0]||e.pointerType&&e.pointerType===`touch`&&e,s=(o||e).target,c=e.target.shadowRoot&&(e.path&&e.path[0]||e.composedPath&&e.composedPath()[0])||s,l=r.filter;if(ca(n),!U&&!(/mousedown|pointerdown/.test(a)&&e.button!==0||r.disabled)&&!c.isContentEditable&&!(!this.nativeDraggable&&Rr&&s&&s.tagName.toUpperCase()===`SELECT`)&&(s=F(s,r.draggable,n,!1),!(s&&s.animated)&&_i!==s)){if(yi=z(s),bi=z(s,r.draggable),typeof l==`function`){if(l.call(this,e,s,this)){H({sortable:t,rootEl:c,name:`filter`,targetEl:s,toEl:n,fromEl:n}),V(`filter`,t,{evt:e}),i&&e.preventDefault();return}}else if(l&&(l=l.split(`,`).some(function(r){if(r=F(c,r.trim(),n,!1),r)return H({sortable:t,rootEl:r,name:`filter`,targetEl:s,fromEl:n,toEl:n}),V(`filter`,t,{evt:e}),!0}),l)){i&&e.preventDefault();return}r.handle&&!F(c,r.handle,n,!1)||this._prepareDragStart(e,o,s)}}},_prepareDragStart:function(e,t,n){var r=this,i=r.el,a=r.options,o=i.ownerDocument,s;if(n&&!U&&n.parentNode===i){var c=R(n);if(K=i,U=n,W=U.parentNode,gi=U.nextSibling,_i=n,Si=a.group,Q.dragged=U,Ei={target:U,clientX:(t||e).clientX,clientY:(t||e).clientY},ki=Ei.clientX-c.left,Ai=Ei.clientY-c.top,this._lastX=(t||e).clientX,this._lastY=(t||e).clientY,U.style[`will-change`]=`all`,s=function(){if(V(`delayEnded`,r,{evt:e}),Q.eventCanceled){r._onDrop();return}r._disableDelayedDragEvents(),!Lr&&r.nativeDraggable&&(U.draggable=!0),r._triggerDragStart(e,t),H({sortable:r,name:`choose`,originalEvent:e}),I(U,a.chosenClass,!0)},a.ignore.split(`,`).forEach(function(e){Kr(U,e.trim(),ta)}),N(o,`dragover`,Zi),N(o,`mousemove`,Zi),N(o,`touchmove`,Zi),a.supportPointer?(N(o,`pointerup`,r._onDrop),!this.nativeDraggable&&N(o,`pointercancel`,r._onDrop)):(N(o,`mouseup`,r._onDrop),N(o,`touchend`,r._onDrop),N(o,`touchcancel`,r._onDrop)),Lr&&this.nativeDraggable&&(this.options.touchStartThreshold=4,U.draggable=!0),V(`delayStart`,this,{evt:e}),a.delay&&(!a.delayOnTouchOnly||t)&&(!this.nativeDraggable||!(Ir||Fr))){if(Q.eventCanceled){this._onDrop();return}a.supportPointer?(N(o,`pointerup`,r._disableDelayedDrag),N(o,`pointercancel`,r._disableDelayedDrag)):(N(o,`mouseup`,r._disableDelayedDrag),N(o,`touchend`,r._disableDelayedDrag),N(o,`touchcancel`,r._disableDelayedDrag)),N(o,`mousemove`,r._delayedDragTouchMoveHandler),N(o,`touchmove`,r._delayedDragTouchMoveHandler),a.supportPointer&&N(o,`pointermove`,r._delayedDragTouchMoveHandler),r._dragStartTimer=setTimeout(s,a.delay)}else s()}},_delayedDragTouchMoveHandler:function(e){var t=e.touches?e.touches[0]:e;Math.max(Math.abs(t.clientX-this._lastX),Math.abs(t.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){U&&ta(U),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;P(e,`mouseup`,this._disableDelayedDrag),P(e,`touchend`,this._disableDelayedDrag),P(e,`touchcancel`,this._disableDelayedDrag),P(e,`pointerup`,this._disableDelayedDrag),P(e,`pointercancel`,this._disableDelayedDrag),P(e,`mousemove`,this._delayedDragTouchMoveHandler),P(e,`touchmove`,this._delayedDragTouchMoveHandler),P(e,`pointermove`,this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,t){t||=e.pointerType==`touch`&&e,!this.nativeDraggable||t?this.options.supportPointer?N(document,`pointermove`,this._onTouchMove):t?N(document,`touchmove`,this._onTouchMove):N(document,`mousemove`,this._onTouchMove):(N(U,`dragend`,this),N(K,`dragstart`,this._onDragStart));try{document.selection?la(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(e,t){if(Ci=!1,K&&U){V(`dragStarted`,this,{evt:t}),this.nativeDraggable&&N(document,`dragover`,Qi);var n=this.options;!e&&I(U,n.dragClass,!1),I(U,n.ghostClass,!0),Q.active=this,e&&this._appendGhost(),H({sortable:this,name:`start`,originalEvent:t})}else this._nulling()},_emulateDragOver:function(){if(X){this._lastX=X.clientX,this._lastY=X.clientY,Yi();for(var e=document.elementFromPoint(X.clientX,X.clientY),t=e;e&&e.shadowRoot&&(e=e.shadowRoot.elementFromPoint(X.clientX,X.clientY),e!==t);)t=e;if(U.parentNode[B]._isOutsideThisEl(e),t)do{if(t[B]){var n=void 0;if(n=t[B]._onDragOver({clientX:X.clientX,clientY:X.clientY,target:e,rootEl:t}),n&&!this.options.dragoverBubble)break}e=t}while(t=Ur(t));Xi()}},_onTouchMove:function(e){if(Ei){var t=this.options,n=t.fallbackTolerance,r=t.fallbackOffset,i=e.touches?e.touches[0]:e,a=G&&Gr(G,!0),o=G&&a&&a.a,s=G&&a&&a.d,c=Vi&&Z&&Zr(Z),l=(i.clientX-Ei.clientX+r.x)/(o||1)+(c?c[0]-Li[0]:0)/(o||1),u=(i.clientY-Ei.clientY+r.y)/(s||1)+(c?c[1]-Li[1]:0)/(s||1);if(!Q.active&&!Ci){if(n&&Math.max(Math.abs(i.clientX-this._lastX),Math.abs(i.clientY-this._lastY))=0&&(H({sortable:this,name:`update`,toEl:W,originalEvent:e}),H({sortable:this,name:`sort`,toEl:W,originalEvent:e})):(J>=0&&(H({rootEl:W,name:`add`,toEl:W,fromEl:K,originalEvent:e}),H({sortable:this,name:`remove`,toEl:W,originalEvent:e}),H({rootEl:W,name:`sort`,toEl:W,fromEl:K,originalEvent:e}),H({sortable:this,name:`sort`,toEl:W,originalEvent:e})),Y&&Y.save()),Q.active&&((J==null||J===-1)&&(J=yi,xi=bi),H({sortable:this,name:`end`,toEl:W,originalEvent:e}),this.save()))),this._nulling()},_nulling:function(){V(`nulling`,this),K=U=W=G=gi=q=_i=vi=Ei=X=ji=J=xi=yi=bi=Mi=Ni=Y=Si=Q.dragged=Q.ghost=Q.clone=Q.active=null,zi.forEach(function(e){e.checked=!0}),zi.length=Di=Oi=0},handleEvent:function(e){switch(e.type){case`drop`:case`dragend`:this._onDrop(e);break;case`dragenter`:case`dragover`:U&&(this._onDragOver(e),$i(e));break;case`selectstart`:e.preventDefault();break}},toArray:function(){for(var e=[],t,n=this.el.children,r=0,i=n.length,a=this.options;ri.right+a||e.clientY>r.bottom&&e.clientX>r.left:e.clientY>i.bottom+a||e.clientX>r.right&&e.clientY>r.top}function aa(e,t,n,r,i,a,o,s){var c=r?e.clientY:e.clientX,l=r?n.height:n.width,u=r?n.top:n.left,d=r?n.bottom:n.right,f=!1;if(!o){if(s&&Iiu+l*a/2:cd-Ii)return-Ni}else if(c>u+l*(1-i)/2&&cd-l*a/2)?c>u+l/2?1:-1:0}function oa(e){return z(U){ka(n,e.oldIndex,e.newIndex,e)}},c=()=>{let t=typeof e==`string`?a?.querySelector(e):f(e);!t||i!==void 0||(i=new Ta(t,{...s,...o}))},l=()=>{i?.destroy(),i=void 0};return x(c),t(l),{stop:l,start:c,option:(e,t)=>{if(t!==void 0)i?.option(e,t);else return i?.option(e)}}}function Da(e,t,n){let r=e.children[n];e.insertBefore(t,r)}function Oa(e){e.parentNode&&e.parentNode.removeChild(e)}function ka(e,t,n,r=null){r!=null&&(Oa(r.item),Da(r.from,r.item,t));let i=ee(e),a=i?[...O(e)]:O(e);if(n>=0&&n{a.splice(n,0,r),i&&(e.value=a)})}}var Aa={class:`flex flex-col gap-4`},ja={value:`xs`},Ma={value:`sm`},Na={value:`md`},Pa={value:`lg`},Fa={class:`flex flex-col gap-4`},Ia={class:`join flex`},La=[`value`],Ra={class:`flex flex-col gap-2`},za={class:`truncate`},Ba={class:`flex items-center gap-3`},Va={class:`text-sm`},Ha=[`checked`,`onChange`],Ua=e({__name:`ConnectionsSettingsModal`,props:{allColumns:{},untaggedSourceIPs:{}},setup(e,{expose:t}){let n=e,{t:r}=k(),l=ie(),f=A(),p=A(null),_=A(``),v=A(``),b=m({get:()=>{let e=l.connectionsTableColumnOrder,t=n.allColumns.map(e=>e.id),r=e.filter(e=>t.includes(e)),i=t.filter(t=>!e.includes(t));return[...r,...i]},set:e=>{l.connectionsTableColumnOrder=[...e]}});function x(e){return n.allColumns.find(t=>t.id===e)}Ea(p,b,{handle:`.drag-handle`,animation:150});function C(e){l.connectionsTableColumnVisibility={...l.connectionsTableColumnVisibility,[e]:!l.connectionsTableColumnVisibility[e]}}function w(){v.value&&_.value&&(l.clientSourceIPTags.some(e=>e.tagName===v.value||e.sourceIP===_.value)||(l.clientSourceIPTags=[...l.clientSourceIPTags,{tagName:v.value,sourceIP:_.value}]),v.value=``,_.value=``)}function E(e){l.clientSourceIPTags=l.clientSourceIPTags.filter(t=>t.tagName!==e)}function D(){l.connectionsTableColumnVisibility={...j},l.connectionsTableColumnOrder=[...re]}return t({open:()=>f.value?.open(),close:()=>f.value?.close()}),(t,n)=>{let m=Oe,O=ke,k=Ae;return T(),c(k,{ref_key:`modalRef`,ref:f,title:i(r)(`connectionsSettings`)},{icon:y(()=>[u(i(_e),{size:24})]),default:y(()=>[a(`div`,Aa,[a(`div`,null,[u(m,{"with-divider":``},{default:y(()=>[h(S(i(r)(`quickFilter`)),1)]),_:1}),te(a(`input`,{"onUpdate:modelValue":n[0]||=e=>i(l).quickFilterRegex=e,type:`text`,class:`input w-full`,placeholder:`DIRECT|direct|dns-out`},null,512),[[ne,i(l).quickFilterRegex]])]),a(`div`,null,[u(m,{"with-divider":``},{default:y(()=>[h(S(i(r)(`tableSize`)),1)]),_:1}),te(a(`select`,{"onUpdate:modelValue":n[1]||=e=>i(l).connectionsTableSize=e,class:`select w-full`},[a(`option`,ja,S(i(r)(`xs`)),1),a(`option`,Ma,S(i(r)(`sm`)),1),a(`option`,Na,S(i(r)(`md`)),1),a(`option`,Pa,S(i(r)(`lg`)),1)],512),[[d,i(l).connectionsTableSize]])]),a(`div`,null,[u(m,{"with-divider":``},{default:y(()=>[h(S(i(r)(`tagClientSourceIPWithName`)),1)]),_:1}),a(`div`,Fa,[a(`div`,Ia,[te(a(`select`,{"onUpdate:modelValue":n[2]||=e=>ee(_)?_.value=e:null,class:`select join-item`},[n[4]||=a(`option`,{value:``},null,-1),(T(!0),s(o,null,g(e.untaggedSourceIPs,e=>(T(),s(`option`,{key:e,value:e},S(e||i(r)(`inner`)),9,La))),128))],512),[[d,i(_)]]),te(a(`input`,{"onUpdate:modelValue":n[3]||=e=>ee(v)?v.value=e:null,class:`input join-item flex-1`,placeholder:`name`},null,512),[[ne,i(v)]]),u(O,{class:`join-item`,onClick:w},{default:y(()=>[h(S(i(r)(`tag`)),1)]),_:1})]),a(`div`,Ra,[(T(!0),s(o,null,g(i(l).clientSourceIPTags,e=>(T(),s(`div`,{key:e.tagName,class:`badge w-full items-center justify-between gap-2 py-4 badge-primary`},[a(`span`,za,S(e.tagName)+` (`+S(e.sourceIP)+`)`,1),u(O,{class:`btn-circle btn-ghost btn-xs`,onClick:t=>E(e.tagName)},{default:y(()=>[u(i(de),{size:12})]),_:1},8,[`onClick`])]))),128))])])]),a(`div`,null,[u(m,{"with-divider":``},{default:y(()=>[h(S(i(r)(`columns`)),1)]),_:1}),a(`div`,{ref_key:`columnListRef`,ref:p,class:`flex flex-col gap-1`},[(T(!0),s(o,null,g(i(b),e=>(T(),s(`div`,{key:e,class:`flex items-center justify-between gap-2 rounded-lg bg-base-200 px-3 py-2 transition-colors hover:bg-base-300`},[a(`div`,Ba,[u(i(ve),{class:`drag-handle shrink-0 cursor-grab text-base-content/40 transition-colors hover:text-base-content/70 active:cursor-grabbing`,size:16}),a(`span`,Va,S(i(r)(x(e)?.key||e)),1)]),a(`input`,{type:`checkbox`,class:`toggle toggle-primary toggle-sm`,checked:i(l).connectionsTableColumnVisibility[e],onChange:t=>C(e)},null,40,Ha)]))),128))],512)]),u(O,{class:`btn-sm btn-neutral`,onClick:D},{default:y(()=>[h(S(i(r)(`reset`)),1)]),_:1})])]),_:1},8,[`title`])}}}),Wa=Object.assign(Ua,{__name:`ConnectionsSettingsModal`}),Ga=l(Ee(),1),Ka={key:0,class:`flex max-h-[70vh] flex-col gap-4 overflow-x-hidden overflow-y-auto`},qa={class:`rounded-box bg-base-200 p-3`},Ja={class:`mb-2 font-semibold text-primary`},Ya={class:`grid grid-cols-2 gap-x-4 gap-y-1 text-sm`},Xa={class:`min-w-0 font-mono break-all`},Za={class:`text-base-content/70`},Qa={class:`text-base-content/70`},$a={class:`text-base-content/70`},eo={class:`break-all`},to={class:`rounded-box bg-base-200 p-3`},no={class:`mb-2 font-semibold text-primary`},ro={class:`grid grid-cols-2 gap-x-4 gap-y-1 text-sm`},io={class:`text-base-content/70`},ao={class:`text-base-content/70`},oo={class:`text-base-content/70`},so={class:`text-base-content/70`},co={class:`rounded-box bg-base-200 p-3`},lo={class:`mb-2 font-semibold text-primary`},uo={class:`grid grid-cols-2 gap-x-4 gap-y-1 text-sm`},fo={class:`text-base-content/70`},po={class:`text-base-content/70`},mo={class:`text-base-content/70`},ho={class:`break-all`},go={class:`text-base-content/70`},_o={class:`break-all`},vo={class:`text-base-content/70`},yo={class:`rounded-box bg-base-200 p-3`},bo={class:`mb-2 font-semibold text-primary`},xo={class:`grid grid-cols-2 gap-x-4 gap-y-1 text-sm`},So={class:`text-base-content/70`},Co={class:`min-w-0 font-mono break-all`},wo={class:`text-base-content/70`},To={class:`min-w-0 font-mono break-all`},Eo={class:`text-base-content/70`},Do={class:`min-w-0 font-mono break-all`},Oo={class:`rounded-box bg-base-200 p-3`},ko={class:`mb-2 font-semibold text-primary`},Ao={class:`grid grid-cols-2 gap-x-4 gap-y-1 text-sm`},jo={class:`text-base-content/70`},Mo={class:`text-base-content/70`},No={class:`min-w-0 font-mono break-all`},Po={class:`text-base-content/70`},Fo={class:`rounded-box bg-base-200 p-3`},Io={class:`mb-2 font-semibold text-primary`},Lo={class:`grid grid-cols-2 gap-x-4 gap-y-1 text-sm`},Ro={class:`text-base-content/70`},zo={class:`text-base-content/70`},Bo={class:`min-w-0 text-xs break-all`},Vo={class:`rounded-box bg-base-200 p-3`},Ho={class:`mb-2 font-semibold text-primary`},Uo={class:`flex flex-wrap gap-1`},Wo={key:0,class:`rounded-box bg-base-200 p-3`},Go={class:`mb-2 font-semibold text-primary`},Ko={class:`grid grid-cols-2 gap-x-4 gap-y-1 text-sm`},qo={class:`text-base-content/70`},Jo={class:`text-base-content/70`},Yo=e({__name:`ConnectionDetailsModal`,props:{connection:{}},setup(e,{expose:t}){let n=A(),{t:r}=k();return t({open:()=>n.value?.open(),close:()=>n.value?.close()}),(t,l)=>{let d=Ae;return T(),c(d,{ref_key:`modalRef`,ref:n,title:i(r)(`connectionsDetails`)},{icon:y(()=>[u(i(_e),{size:24})]),default:y(()=>[e.connection?(T(),s(`div`,Ka,[a(`div`,qa,[a(`div`,Ja,S(i(r)(`basic`)),1),a(`div`,Ya,[l[0]||=a(`div`,{class:`text-base-content/70`},`ID`,-1),a(`div`,Xa,S(e.connection.id),1),a(`div`,Za,S(i(r)(`start`)),1),a(`div`,null,S(i(Ga.default)(e.connection.start).format(`HH:mm:ss`)),1),a(`div`,Qa,S(i(r)(`rule`)),1),a(`div`,null,S(e.connection.rule),1),a(`div`,$a,S(i(r)(`rulePayload`)),1),a(`div`,eo,S(e.connection.rulePayload||`-`),1)])]),a(`div`,to,[a(`div`,no,S(i(r)(`traffic`)),1),a(`div`,ro,[a(`div`,io,S(i(r)(`download`)),1),a(`div`,null,S(i(we)(e.connection.download)),1),a(`div`,ao,S(i(r)(`upload`)),1),a(`div`,null,S(i(we)(e.connection.upload)),1),a(`div`,oo,S(i(r)(`dlSpeed`)),1),a(`div`,null,S(i(we)(e.connection.downloadSpeed))+`/s`,1),a(`div`,so,S(i(r)(`ulSpeed`)),1),a(`div`,null,S(i(we)(e.connection.uploadSpeed))+`/s`,1)])]),a(`div`,co,[a(`div`,lo,S(i(r)(`metadata`)),1),a(`div`,uo,[a(`div`,fo,S(i(r)(`network`)),1),a(`div`,null,S(e.connection.metadata.network),1),a(`div`,po,S(i(r)(`type`)),1),a(`div`,null,S(e.connection.metadata.type),1),a(`div`,mo,S(i(r)(`host`)),1),a(`div`,ho,S(e.connection.metadata.host||`-`),1),a(`div`,go,S(i(r)(`sniffHost`)),1),a(`div`,_o,S(e.connection.metadata.sniffHost||`-`),1),a(`div`,vo,S(i(r)(`dnsMode`)),1),a(`div`,null,S(e.connection.metadata.dnsMode||`-`),1)])]),a(`div`,yo,[a(`div`,bo,S(i(r)(`sourceAndDestination`)),1),a(`div`,xo,[a(`div`,So,S(i(r)(`source`)),1),a(`div`,Co,S(`${e.connection.metadata.sourceIP}:${e.connection.metadata.sourcePort}`),1),a(`div`,wo,S(i(r)(`destination`)),1),a(`div`,To,S(e.connection.metadata.destinationIP?`${e.connection.metadata.destinationIP}:${e.connection.metadata.destinationPort}`:`${e.connection.metadata.host}:${e.connection.metadata.destinationPort}`),1),a(`div`,Eo,S(i(r)(`remoteDestination`)),1),a(`div`,Do,S(e.connection.metadata.remoteDestination||`-`),1)])]),a(`div`,Oo,[a(`div`,ko,S(i(r)(`inbound`)),1),a(`div`,Ao,[a(`div`,jo,S(i(r)(`inboundName`)),1),a(`div`,null,S(e.connection.metadata.inboundName||`-`),1),a(`div`,Mo,S(i(r)(`inboundIP`)),1),a(`div`,No,S(e.connection.metadata.inboundIP?`${e.connection.metadata.inboundIP}:${e.connection.metadata.inboundPort}`:`-`),1),a(`div`,Po,S(i(r)(`inboundUser`)),1),a(`div`,null,S(e.connection.metadata.inboundUser||`-`),1)])]),a(`div`,Fo,[a(`div`,Io,S(i(r)(`process`)),1),a(`div`,Lo,[a(`div`,Ro,S(i(r)(`processName`)),1),a(`div`,null,S(e.connection.metadata.process||`-`),1),a(`div`,zo,S(i(r)(`processPath`)),1),a(`div`,Bo,S(e.connection.metadata.processPath||`-`),1),l[1]||=a(`div`,{class:`text-base-content/70`},`UID`,-1),a(`div`,null,S(e.connection.metadata.uid||`-`),1)])]),a(`div`,Vo,[a(`div`,Ho,S(i(r)(`chains`)),1),a(`div`,Uo,[(T(!0),s(o,null,g(e.connection.chains,(e,t)=>(T(),s(`span`,{key:t,class:`badge badge-neutral`},S(e),1))),128))])]),e.connection.metadata.specialProxy||e.connection.metadata.specialRules?(T(),s(`div`,Wo,[a(`div`,Go,S(i(r)(`special`)),1),a(`div`,Ko,[a(`div`,qo,S(i(r)(`specialProxy`)),1),a(`div`,null,S(e.connection.metadata.specialProxy||`-`),1),a(`div`,Jo,S(i(r)(`specialRules`)),1),a(`div`,null,S(e.connection.metadata.specialRules||`-`),1)])])):C(``,!0)])):C(``,!0)]),_:1},8,[`title`])}}}),Xo=Object.assign(Yo,{__name:`ConnectionDetailsModal`}),Zo={class:`flex h-full min-h-0 flex-col gap-2`},Qo={class:`flex shrink-0 items-center justify-center md:hidden`},$o={class:`hidden shrink-0 items-center justify-between gap-2 md:flex`},es={class:`flex shrink-0 items-center gap-1.5`},ts=[`value`],ns={class:`text-xs whitespace-nowrap text-base-content/60`},rs=e({__name:`connections`,setup(e){let{t,locale:n}=k();b({title:m(()=>t(`connections`))});let c=Se(),l=ie(),f=A(),p=A(),h=A(null),y=A(`active`),x=A(``),C=r(`enableQuickFilter`,!1),w=A(``),E=r(`connectionsTableSortColumn`,`ConnectTime`),D=r(`connectionsTableSortDesc`,!0),O=r(`connectionsTableGrouping`,null),ne=A({}),j=A(0),re=r(`connectionsTablePageSize`,50),ae=A(!1),se=e=>we(e).toString();function ce(e){return e.metadata.process||e.metadata.processPath?.replace(/^.*[/\\](.*)$/,`$1`)||`-`}function le(e){return`${e.metadata.host||De(e.metadata.destinationIP)}:${e.metadata.destinationPort}`}function ue(e){return e.rulePayload?`${e.rule} : ${e.rulePayload}`:e.rule}function fe(e){let n=e.metadata.sourceIP||t(`inner`);return l.clientSourceIPTags.find(e=>e.sourceIP===n)?.tagName||n}function pe(e){return e.metadata.remoteDestination||e.metadata.destinationIP||e.metadata.host}function me(e){ye(e)}let he=[{id:M.Close,key:`close`,groupable:!1,sortable:!1,render:e=>v(`button`,{class:`btn btn-circle btn-xs`,onClick:t=>{t.stopPropagation(),me(e.id)}},v(de,{size:16}))},{id:M.Type,key:`type`,groupable:!0,sortable:!0,sortId:`Type`,render:e=>`${e.metadata.type}(${e.metadata.network})`,groupValue:e=>`${e.metadata.type}(${e.metadata.network})`},{id:M.Process,key:`process`,groupable:!0,sortable:!0,sortId:`Process`,render:e=>ce(e),groupValue:e=>ce(e)},{id:M.Host,key:`host`,groupable:!0,sortable:!0,sortId:`Host`,render:e=>le(e),groupValue:e=>le(e)},{id:M.SniffHost,key:`sniffHost`,groupable:!0,sortable:!1,render:e=>e.metadata.sniffHost||`-`,groupValue:e=>e.metadata.sniffHost||`-`},{id:M.Rule,key:`rule`,groupable:!0,sortable:!1,render:e=>ue(e),groupValue:e=>ue(e)},{id:M.Chains,key:`chains`,groupable:!0,sortable:!1,render:e=>{let t=[...e.chains].reverse(),n=[];return t.forEach((e,t)=>{t>0&&n.push(v(oe,{class:`inline-block`,size:18})),n.push(v(`span`,{class:`align-middle`},e))}),v(`span`,n)},groupValue:e=>e.chains.join(` > `)},{id:M.ConnectTime,key:`connectTime`,groupable:!1,sortable:!0,sortId:`ConnectTime`,render:e=>Te(e.start,n.value)},{id:M.DlSpeed,key:`dlSpeed`,groupable:!1,sortable:!0,sortId:`DlSpeed`,render:e=>`${se(e.downloadSpeed)}/s`},{id:M.UlSpeed,key:`ulSpeed`,groupable:!1,sortable:!0,sortId:`UlSpeed`,render:e=>`${se(e.uploadSpeed)}/s`},{id:M.Download,key:`dl`,groupable:!1,sortable:!0,sortId:`Download`,render:e=>se(e.download)},{id:M.Upload,key:`ul`,groupable:!1,sortable:!0,sortId:`Upload`,render:e=>se(e.upload)},{id:M.SourceIP,key:`sourceIP`,groupable:!0,sortable:!0,sortId:`SourceIP`,render:e=>fe(e),groupValue:e=>fe(e)},{id:M.SourcePort,key:`sourcePort`,groupable:!1,sortable:!1,render:e=>String(e.metadata.sourcePort)},{id:M.Destination,key:`destination`,groupable:!0,sortable:!1,render:e=>pe(e),groupValue:e=>pe(e)}],ge=m(()=>{let e=l.connectionsTableColumnOrder,t=l.connectionsTableColumnVisibility;return[...he].sort((t,n)=>{let r=e.indexOf(t.id),i=e.indexOf(n.id);return(r===-1?1/0:r)-(i===-1?1/0:i)}).filter(e=>t[e.id]!==!1)}),_e=m(()=>he.filter(e=>e.sortable)),ve=m(()=>[{type:`active`,name:t(`active`),count:c.activeConnections.length},{type:`closed`,name:t(`closed`),count:c.closedConnections.length}]),xe=m(()=>Pn(c.allConnections.map(e=>{let n=e.metadata.sourceIP||t(`inner`);return l.clientSourceIPTags.find(e=>e.sourceIP===n)?.tagName||n})).sort()),Ce=m(()=>Pn(c.allConnections.map(e=>e.metadata.sourceIP)).sort().filter(e=>!l.clientSourceIPTags.some(t=>t.sourceIP===e))),Ee=m(()=>l.tableSizeClassName(l.connectionsTableSize)),Oe=m(()=>{let e=y.value===`active`?c.activeConnections:c.closedConnections;if(C.value&&l.quickFilterRegex)try{let t=new RegExp(l.quickFilterRegex,`i`);e=e.filter(e=>!e.chains.some(e=>t.test(e)))}catch{}if(w.value&&(e=e.filter(e=>{let n=e.metadata.sourceIP||t(`inner`);return(l.clientSourceIPTags.find(e=>e.sourceIP===n)?.tagName||n)===w.value})),x.value){let t=x.value.toLowerCase();e=e.filter(e=>e.metadata.host?.toLowerCase().includes(t)||e.metadata.process?.toLowerCase().includes(t)||e.metadata.sourceIP?.toLowerCase().includes(t)||e.rule?.toLowerCase().includes(t)||e.chains.some(e=>e.toLowerCase().includes(t)))}return[...e].sort((e,t)=>{let n=0;switch(E.value){case`ConnectTime`:n=new Date(e.start).getTime()-new Date(t.start).getTime();break;case`DlSpeed`:n=e.downloadSpeed-t.downloadSpeed;break;case`UlSpeed`:n=e.uploadSpeed-t.uploadSpeed;break;case`Download`:n=e.download-t.download;break;case`Upload`:n=e.upload-t.upload;break;case`Host`:n=(e.metadata.host||``).localeCompare(t.metadata.host||``);break;case`Type`:n=e.metadata.type.localeCompare(t.metadata.type);break;case`Process`:n=(e.metadata.process||``).localeCompare(t.metadata.process||``);break;case`SourceIP`:n=(e.metadata.sourceIP||``).localeCompare(t.metadata.sourceIP||``);break}return D.value?-n:n})}),ke=m(()=>Math.max(1,Math.ceil(Oe.value.length/re.value))),Ae=m(()=>{let e=j.value,t=ke.value,n=[];n.push(0);for(let r=Math.max(1,e-1);r<=Math.min(t-2,e+1);r++)n.includes(r)||n.push(r);return t>1&&!n.includes(t-1)&&n.push(t-1),n.sort((e,t)=>e-t)}),je=m(()=>{let e=j.value*re.value;return Oe.value.slice(e,e+re.value)}),Me=m(()=>{let e=Oe.value.length;return`${j.value*re.value+1}-${Math.min((j.value+1)*re.value,e)} / ${e}`});_([y,x,w,C],()=>{j.value=0});let Ne=m(()=>O.value?he.find(e=>e.id===O.value):null),Pe=m(()=>{let e=Ne.value;if(!e?.groupValue)return je.value.map(e=>({type:`data`,original:e,depth:0}));let t=new Map;for(let n of Oe.value){let r=e.groupValue(n),i=t.get(r);i?i.push(n):t.set(r,[n])}let n=[];for(let[e,r]of t)if(n.push({type:`group`,key:e,depth:0,subRows:r}),ne.value[e])for(let e of r)n.push({type:`data`,original:e,depth:1});return n});function Fe(e){let t=he.find(t=>t.id===e);!t?.sortable||!t.sortId||(E.value===t.sortId?D.value?D.value=!1:(E.value=``,D.value=!0):(E.value=t.sortId,D.value=!0))}function Ie(e){O.value===e?O.value=null:O.value=e,ne.value={}}function Le(e){ne.value[e]=!ne.value[e]}function Re(){D.value=!D.value}async function ze(){ae.value=!0;try{x.value?await Promise.allSettled(Oe.value.map(e=>ye(e.id))):await be()}finally{ae.value=!1}}function Be(e){h.value=e,p.value?.open()}return(e,t)=>{let n=er,r=lr,l=Tr,m=Wa,_=Xo;return T(),s(`div`,Zo,[u(n,{class:`shrink-0`,tabs:i(ve),"active-tab":i(y),"enable-quick-filter":i(C),"source-i-p-filter":i(w),"unique-source-i-ps":i(xe),"sort-column":i(E),"sort-desc":i(D),"sortable-columns":i(_e),"global-filter":i(x),paused:i(c).paused,"is-closing-connections":i(ae),"onUpdate:activeTab":t[0]||=e=>y.value=e,"onUpdate:enableQuickFilter":t[1]||=e=>C.value=e,"onUpdate:sourceIPFilter":t[2]||=e=>w.value=e,"onUpdate:sortColumn":t[3]||=e=>E.value=e,"onUpdate:globalFilter":t[4]||=e=>x.value=e,onToggleSortOrder:Re,onTogglePaused:t[5]||=e=>i(c).paused=!i(c).paused,onCloseConnections:ze,onOpenSettings:t[6]||=e=>i(f)?.open()},null,8,[`tabs`,`active-tab`,`enable-quick-filter`,`source-i-p-filter`,`unique-source-i-ps`,`sort-column`,`sort-desc`,`sortable-columns`,`global-filter`,`paused`,`is-closing-connections`]),a(`div`,Qo,[u(r,{"current-page":i(j),"total-pages":i(ke),"visible-pages":i(Ae),onGoToPage:t[7]||=e=>j.value=e,onPrevious:t[8]||=e=>j.value--,onNext:t[9]||=e=>j.value++},null,8,[`current-page`,`total-pages`,`visible-pages`])]),u(l,{columns:i(ge),"row-model":i(Pe),"sort-column":i(E),"sort-desc":i(D),"grouping-column":i(O),"expanded-groups":i(ne),"table-size-class":i(Ee),onHeaderClick:Fe,onToggleGrouping:Ie,onToggleGroupExpanded:Le,onRowClick:Be},null,8,[`columns`,`row-model`,`sort-column`,`sort-desc`,`grouping-column`,`expanded-groups`,`table-size-class`]),a(`div`,$o,[a(`div`,es,[te(a(`select`,{"onUpdate:modelValue":t[10]||=e=>ee(re)?re.value=e:null,class:`select-bordered select select-xs`},[(T(),s(o,null,g([20,50,100,200],e=>a(`option`,{key:e,value:e},S(e),9,ts)),64))],512),[[d,i(re),void 0,{number:!0}]]),a(`span`,ns,S(i(Me)),1)]),u(r,{"current-page":i(j),"total-pages":i(ke),"visible-pages":i(Ae),onGoToPage:t[11]||=e=>j.value=e,onPrevious:t[12]||=e=>j.value--,onNext:t[13]||=e=>j.value++},null,8,[`current-page`,`total-pages`,`visible-pages`])]),u(m,{ref_key:`settingsModal`,ref:f,"all-columns":he,"untagged-source-i-ps":i(Ce)},null,8,[`untagged-source-i-ps`]),u(_,{ref_key:`detailsModal`,ref:p,connection:i(h)},null,8,[`connection`])])}}});export{rs as default}; \ No newline at end of file +import{$ as e,A as t,Dt as n,E as r,Et as i,G as a,H as o,J as s,K as c,Mt as l,Q as u,R as d,T as f,V as p,W as m,Z as h,ct as g,dt as _,et as v,ft as y,ht as ee,j as b,k as x,kt as S,pt as te,q as C,rt as w,st as T,ut as E,w as D,wt as O,x as k,yt as A,z as ne}from"./CxatB1L6.js";import{i as j,n as M,r as re}from"./_v7-ePgP.js";import{t as ie}from"./BxUO6acX.js";import"./Dnb7sY_Q.js";import{M as ae,N as oe,P as se,c as ce,g as le,h as ue,i as de,j as fe,l as pe,n as me,t as he,u as ge,v as _e,w as ve}from"./BlFRk3uc.js";import{i as ye,r as be}from"./DRJWd5jk.js";import{i as xe,n as Se,r as Ce,t as we}from"./4_-5c3is.js";import{c as Te,h as Ee,o as De}from"./D8VGDxpn.js";import{t as Oe}from"./B_hS8f_s.js";import{t as ke}from"./DP7SiUGW.js";import{t as Ae}from"./D4Jc__Wf.js";function je(e){var t=typeof e;return e!=null&&(t==`object`||t==`function`)}var Me=je,Ne=`[object AsyncFunction]`,Pe=`[object Function]`,Fe=`[object GeneratorFunction]`,Ie=`[object Proxy]`;function Le(e){if(!Me(e))return!1;var t=Ce(e);return t==Pe||t==Fe||t==Ne||t==Ie}var Re=Le,ze=xe[`__core-js_shared__`],Be=function(){var e=/[^.]+$/.exec(ze&&ze.keys&&ze.keys.IE_PROTO||``);return e?`Symbol(src)_1.`+e:``}();function Ve(e){return!!Be&&Be in e}var He=Ve,Ue=Function.prototype.toString;function We(e){if(e!=null){try{return Ue.call(e)}catch{}try{return e+``}catch{}}return``}var Ge=We,Ke=/[\\^$.*+?()[\]{}|]/g,qe=/^\[object .+?Constructor\]$/,Je=Function.prototype,Ye=Object.prototype,Xe=Je.toString,Ze=Ye.hasOwnProperty,Qe=RegExp(`^`+Xe.call(Ze).replace(Ke,`\\$&`).replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,`$1.*?`)+`$`);function $e(e){return!Me(e)||He(e)?!1:(Re(e)?Qe:qe).test(Ge(e))}var et=$e;function tt(e,t){return e?.[t]}var nt=tt;function rt(e,t){var n=nt(e,t);return et(n)?n:void 0}var it=rt;function at(){}var ot=at;function st(e,t,n,r){for(var i=e.length,a=n+(r?1:-1);r?a--:++a-1}var gt=ht;function _t(e,t){return e===t||e!==e&&t!==t}var vt=_t,yt=it(Object,`create`);function bt(){this.__data__=yt?yt(null):{},this.size=0}var xt=bt;function St(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var Ct=St,wt=`__lodash_hash_undefined__`,Tt=Object.prototype.hasOwnProperty;function Et(e){var t=this.__data__;if(yt){var n=t[e];return n===wt?void 0:n}return Tt.call(t,e)?t[e]:void 0}var Dt=Et,Ot=Object.prototype.hasOwnProperty;function kt(e){var t=this.__data__;return yt?t[e]!==void 0:Ot.call(t,e)}var At=kt,jt=`__lodash_hash_undefined__`;function Mt(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=yt&&t===void 0?jt:t,this}var Nt=Mt;function Pt(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t-1}var Kt=Gt;function qt(e,t){var n=this.__data__,r=zt(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var Jt=qt;function Yt(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t=An){var l=t?null:kn(e);if(l)return En(l);o=!1,i=wn,c=new Sn}else c=t?[]:s;outer:for(;++r{let f=ke;return T(),s(`div`,Fn,[a(`div`,In,[a(`div`,Ln,[(T(!0),s(o,null,g(e.tabs,t=>(T(),s(`button`,{key:t.type,class:n([`tab gap-2 px-2`,{"bg-primary text-neutral!":e.activeTab===t.type}]),onClick:e=>r(`update:activeTab`,t.type)},[a(`span`,null,S(t.name),1),a(`div`,zn,S(t.count),1)],10,Rn))),128))]),a(`div`,Bn,[a(`span`,Vn,S(i(l)(`quickFilter`)),1),a(`input`,{type:`checkbox`,class:`toggle toggle-sm`,checked:e.enableQuickFilter,onChange:d[0]||=e=>r(`update:enableQuickFilter`,e.target.checked)},null,40,Hn)]),a(`select`,{class:`select max-w-40 flex-1 select-sm select-primary`,value:e.sourceIPFilter,onChange:d[1]||=e=>r(`update:sourceIPFilter`,e.target.value)},[a(`option`,Wn,S(i(l)(`all`)),1),(T(!0),s(o,null,g(e.uniqueSourceIPs,e=>(T(),s(`option`,{key:e,value:e},S(e),9,Gn))),128))],40,Un)]),a(`div`,Kn,[a(`div`,qn,[a(`span`,Jn,S(i(l)(`sortBy`)),1),a(`select`,{class:`select select-sm select-primary`,value:e.sortColumn,onChange:d[2]||=e=>r(`update:sortColumn`,e.target.value)},[(T(!0),s(o,null,g(e.sortableColumns,e=>(T(),s(`option`,{key:e.id,value:e.sortId},S(i(l)(e.key)),9,Xn))),128))],40,Yn),u(f,{class:`btn btn-sm btn-primary`,onClick:d[3]||=e=>r(`toggleSortOrder`)},{default:y(()=>[e.sortDesc?(T(),c(i(ce),{key:0})):(T(),c(i(pe),{key:1}))]),_:1})]),a(`div`,Zn,[a(`input`,{type:`search`,class:`input input-sm join-item min-w-0 flex-1 input-primary`,placeholder:i(l)(`search`),value:e.globalFilter,onInput:d[4]||=e=>r(`update:globalFilter`,e.target.value)},null,40,Qn),u(f,{class:`btn join-item btn-sm btn-primary`,onClick:d[5]||=e=>r(`togglePaused`)},{default:y(()=>[e.paused?(T(),c(i(ue),{key:0})):(T(),c(i(le),{key:1}))]),_:1}),u(f,{class:`btn join-item btn-sm btn-primary`,loading:e.isClosingConnections,onClick:d[6]||=e=>r(`closeConnections`)},{default:y(()=>[u(i(de))]),_:1},8,[`loading`]),u(f,{class:`btn join-item btn-sm btn-primary`,onClick:d[7]||=e=>r(`openSettings`)},{default:y(()=>[u(i(ge))]),_:1})])])])}}}),er=Object.assign($n,{__name:`ConnectionsToolbar`}),tr={class:`join shrink-0`},nr=[`disabled`],rr=[`disabled`],ir={key:0,class:`flex items-center px-1 text-xs text-base-content/40`},ar=[`onClick`],or=[`disabled`],sr=[`disabled`],cr=e({__name:`ConnectionsPagination`,props:{currentPage:{},totalPages:{},visiblePages:{}},emits:[`goToPage`,`previous`,`next`],setup(e,{emit:t}){let r=t;return(t,c)=>(T(),s(`div`,tr,[a(`button`,{class:`btn join-item btn-xs`,disabled:e.currentPage===0,onClick:c[0]||=e=>r(`goToPage`,0)},[u(i(ae),{size:14})],8,nr),a(`button`,{class:`btn join-item btn-xs`,disabled:e.currentPage===0,onClick:c[1]||=e=>r(`previous`)},[u(i(se),{size:14})],8,rr),(T(!0),s(o,null,g(e.visiblePages,(t,i)=>(T(),s(o,{key:t},[i>0&&e.visiblePages[i-1]!==t-1?(T(),s(`span`,ir,` ··· `)):C(``,!0),a(`button`,{class:n([`btn join-item min-w-8 btn-xs`,{"btn-active":e.currentPage===t}]),onClick:e=>r(`goToPage`,t)},S(t+1),11,ar)],64))),128)),a(`button`,{class:`btn join-item btn-xs`,disabled:e.currentPage>=e.totalPages-1,onClick:c[2]||=e=>r(`next`)},[u(i(oe),{size:14})],8,or),a(`button`,{class:`btn join-item btn-xs`,disabled:e.currentPage>=e.totalPages-1,onClick:c[3]||=t=>r(`goToPage`,e.totalPages-1)},[u(i(fe),{size:14})],8,sr)]))}}),lr=Object.assign(cr,{__name:`ConnectionsPagination`}),ur={class:`min-h-0 flex-1 overflow-auto rounded-md bg-base-300`},dr={class:`hidden md:table-header-group`},fr={class:`bg-base-200`},pr={class:`flex items-center gap-2`},mr=[`onClick`],hr=[`onClick`],gr=[`onClick`],_r=[`colspan`],vr={class:`flex items-center gap-2`},yr={class:`font-semibold text-primary`},br={class:`text-xs text-base-content/60`},xr=[`onClick`],Sr={class:`block text-xs text-base-content/60 md:hidden`},Cr={key:0,class:`py-8 text-center text-base-content/70`},wr=e({__name:`ConnectionsTable`,props:{columns:{},rowModel:{},sortColumn:{},sortDesc:{type:Boolean},groupingColumn:{},expandedGroups:{},tableSizeClass:{}},emits:[`headerClick`,`toggleGrouping`,`toggleGroupExpanded`,`rowClick`],setup(e,{emit:t}){let r=t,{t:l}=k();function u(e){return e.sortable&&!!e.sortId}function d(e,t){return e.sortId?t===e.sortId:!1}return(t,f)=>(T(),s(`div`,ur,[a(`table`,{class:n([`table-pin-rows table table-zebra`,e.tableSizeClass])},[a(`thead`,dr,[a(`tr`,fr,[(T(!0),s(o,null,g(e.columns,t=>(T(),s(`th`,{key:t.id,class:`text-base-content`},[a(`div`,pr,[a(`div`,{class:n([`flex-1`,{"cursor-pointer select-none":u(t)}]),onClick:e=>r(`headerClick`,t.id)},S(i(l)(t.key)),11,mr),d(t,e.sortColumn)&&!e.sortDesc?(T(),c(i(pe),{key:0,size:16})):d(t,e.sortColumn)&&e.sortDesc?(T(),c(i(ce),{key:1,size:16})):C(``,!0),t.groupable?(T(),s(`button`,{key:2,class:`cursor-pointer`,onClick:p(e=>r(`toggleGrouping`,t.id),[`stop`])},[e.groupingColumn===t.id?(T(),c(i(he),{key:0,size:18})):(T(),c(i(me),{key:1,size:18}))],8,hr)):C(``,!0)])]))),128))])]),a(`tbody`,null,[(T(!0),s(o,null,g(e.rowModel,t=>(T(),s(o,{key:t.type===`group`?`group-${t.key}`:t.original.id},[t.type===`group`?(T(),s(`tr`,{key:0,class:`cursor-pointer bg-base-200 hover:bg-base-300`,onClick:e=>r(`toggleGroupExpanded`,t.key)},[a(`td`,{colspan:e.columns.length,class:`py-2`},[a(`div`,vr,[e.expandedGroups[t.key]?(T(),c(i(he),{key:0,size:18})):(T(),c(i(me),{key:1,size:18})),a(`span`,yr,S(t.key),1),a(`span`,br,`(`+S(t.subRows.length)+`)`,1)])],8,_r)],8,gr)):(T(),s(`tr`,{key:1,class:`md:hover flex cursor-pointer flex-wrap rounded-xl border-4 border-base-300 px-2 odd:bg-base-100 even:bg-base-200 md:table-row md:rounded-none md:border-0 md:px-0`,onClick:e=>r(`rowClick`,t.original)},[(T(!0),s(o,null,g(e.columns,e=>(T(),s(`td`,{key:e.id,class:`nth-2n:text-right sm:nth-2n:text-left sm:nth-3n:text-right md:nth-2n:text-start md:nth-3n:text-start w-1/2 min-w-1/2 pb-1.5 text-justify align-top wrap-break-word nth-last-2:mb-3 sm:w-1/3 sm:min-w-1/3 md:w-auto md:min-w-0 md:text-start md:align-middle md:whitespace-nowrap md:nth-last-2:mb-0`},[a(`span`,Sr,S(i(l)(e.key)),1),(T(),c(E(()=>e.render(t.original))))]))),128))],8,xr))],64))),128))])],2),e.rowModel.length===0?(T(),s(`div`,Cr,S(i(l)(`noData`)),1)):C(``,!0)]))}}),Tr=Object.assign(wr,{__name:`ConnectionsTable`});function Er(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Dr(e){for(var t=1;t=0)&&(n[i]=e[i]);return n}function Mr(e,t){if(e==null)return{};var n=jr(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}var Nr=`1.15.6`;function Pr(e){if(typeof window<`u`&&window.navigator)return!!navigator.userAgent.match(e)}var Fr=Pr(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),Ir=Pr(/Edge/i),Lr=Pr(/firefox/i),Rr=Pr(/safari/i)&&!Pr(/chrome/i)&&!Pr(/android/i),zr=Pr(/iP(ad|od|hone)/i),Br=Pr(/chrome/i)&&Pr(/android/i),Vr={capture:!1,passive:!1};function N(e,t,n){e.addEventListener(t,n,!Fr&&Vr)}function P(e,t,n){e.removeEventListener(t,n,!Fr&&Vr)}function Hr(e,t){if(t){if(t[0]===`>`&&(t=t.substring(1)),e)try{if(e.matches)return e.matches(t);if(e.msMatchesSelector)return e.msMatchesSelector(t);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(t)}catch{return!1}return!1}}function Ur(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function F(e,t,n,r){if(e){n||=document;do{if(t!=null&&(t[0]===`>`?e.parentNode===n&&Hr(e,t):Hr(e,t))||r&&e===n)return e;if(e===n)break}while(e=Ur(e))}return null}var Wr=/\s+/g;function I(e,t,n){e&&t&&(e.classList?e.classList[n?`add`:`remove`](t):e.className=((` `+e.className+` `).replace(Wr,` `).replace(` `+t+` `,` `)+(n?` `+t:``)).replace(Wr,` `))}function L(e,t,n){var r=e&&e.style;if(r){if(n===void 0)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(e,``):e.currentStyle&&(n=e.currentStyle),t===void 0?n:n[t];!(t in r)&&t.indexOf(`webkit`)===-1&&(t=`-webkit-`+t),r[t]=n+(typeof n==`string`?``:`px`)}}function Gr(e,t){var n=``;if(typeof e==`string`)n=e;else do{var r=L(e,`transform`);r&&r!==`none`&&(n=r+` `+n)}while(!t&&(e=e.parentNode));var i=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return i&&new i(n)}function Kr(e,t,n){if(e){var r=e.getElementsByTagName(t),i=0,a=r.length;if(n)for(;i=a:i<=a,!o)return r;if(r===qr())break;r=$r(r,!1)}return!1}function Yr(e,t,n,r){for(var i=0,a=0,o=e.children;a2&&arguments[2]!==void 0?arguments[2]:{},r=n.evt,i=Mr(n,hi);pi.pluginEvent.bind(Q)(e,t,Dr({dragEl:U,parentEl:W,ghostEl:G,rootEl:K,nextEl:gi,lastDownEl:_i,cloneEl:q,cloneHidden:vi,dragStarted:ji,putSortable:Y,activeSortable:Q.active,originalEvent:r,oldIndex:yi,oldDraggableIndex:bi,newIndex:J,newDraggableIndex:xi,hideGhostForTarget:Yi,unhideGhostForTarget:Xi,cloneNowHidden:function(){vi=!0},cloneNowShown:function(){vi=!1},dispatchSortableEvent:function(e){H({sortable:t,name:e,originalEvent:r})}},i))};function H(e){mi(Dr({putSortable:Y,cloneEl:q,targetEl:U,rootEl:K,oldIndex:yi,oldDraggableIndex:bi,newIndex:J,newDraggableIndex:xi},e))}var U,W,G,K,gi,_i,q,vi,yi,J,bi,xi,Si,Y,Ci=!1,wi=!1,Ti=[],Ei,X,Di,Oi,ki,Ai,ji,Mi,Ni,Pi=!1,Fi=!1,Ii,Z,Li=[],Ri=!1,zi=[],Bi=typeof document<`u`,Vi=zr,Hi=Ir||Fr?`cssFloat`:`float`,Ui=Bi&&!Br&&!zr&&`draggable`in document.createElement(`div`),Wi=function(){if(Bi){if(Fr)return!1;var e=document.createElement(`x`);return e.style.cssText=`pointer-events:auto`,e.style.pointerEvents===`auto`}}(),Gi=function(e,t){var n=L(e),r=parseInt(n.width)-parseInt(n.paddingLeft)-parseInt(n.paddingRight)-parseInt(n.borderLeftWidth)-parseInt(n.borderRightWidth),i=Yr(e,0,t),a=Yr(e,1,t),o=i&&L(i),s=a&&L(a),c=o&&parseInt(o.marginLeft)+parseInt(o.marginRight)+R(i).width,l=s&&parseInt(s.marginLeft)+parseInt(s.marginRight)+R(a).width;if(n.display===`flex`)return n.flexDirection===`column`||n.flexDirection===`column-reverse`?`vertical`:`horizontal`;if(n.display===`grid`)return n.gridTemplateColumns.split(` `).length<=1?`vertical`:`horizontal`;if(i&&o.float&&o.float!==`none`){var u=o.float===`left`?`left`:`right`;return a&&(s.clear===`both`||s.clear===u)?`vertical`:`horizontal`}return i&&(o.display===`block`||o.display===`flex`||o.display===`table`||o.display===`grid`||c>=r&&n[Hi]===`none`||a&&n[Hi]===`none`&&c+l>r)?`vertical`:`horizontal`},Ki=function(e,t,n){var r=n?e.left:e.top,i=n?e.right:e.bottom,a=n?e.width:e.height,o=n?t.left:t.top,s=n?t.right:t.bottom,c=n?t.width:t.height;return r===o||i===s||r+a/2===o+c/2},qi=function(e,t){var n;return Ti.some(function(r){var i=r[B].options.emptyInsertThreshold;if(!(!i||Xr(r))){var a=R(r),o=e>=a.left-i&&e<=a.right+i,s=t>=a.top-i&&t<=a.bottom+i;if(o&&s)return n=r}}),n},Ji=function(e){function t(e,n){return function(r,i,a,o){var s=r.options.group.name&&i.options.group.name&&r.options.group.name===i.options.group.name;if(e==null&&(n||s))return!0;if(e==null||e===!1)return!1;if(n&&e===`clone`)return e;if(typeof e==`function`)return t(e(r,i,a,o),n)(r,i,a,o);var c=(n?r:i).options.group.name;return e===!0||typeof e==`string`&&e===c||e.join&&e.indexOf(c)>-1}}var n={},r=e.group;(!r||Or(r)!=`object`)&&(r={name:r}),n.name=r.name,n.checkPull=t(r.pull,!0),n.checkPut=t(r.put),n.revertClone=r.revertClone,e.group=n},Yi=function(){!Wi&&G&&L(G,`display`,`none`)},Xi=function(){!Wi&&G&&L(G,`display`,``)};Bi&&!Br&&document.addEventListener(`click`,function(e){if(wi)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),wi=!1,!1},!0);var Zi=function(e){if(U){e=e.touches?e.touches[0]:e;var t=qi(e.clientX,e.clientY);if(t){var n={};for(var r in e)e.hasOwnProperty(r)&&(n[r]=e[r]);n.target=n.rootEl=t,n.preventDefault=void 0,n.stopPropagation=void 0,t[B]._onDragOver(n)}}},Qi=function(e){U&&U.parentNode[B]._isOutsideThisEl(e.target)};function Q(e,t){if(!(e&&e.nodeType&&e.nodeType===1))throw`Sortable: \`el\` must be an HTMLElement, not ${{}.toString.call(e)}`;this.el=e,this.options=t=Ar({},t),e[B]=this;var n={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(e.nodeName)?`>li`:`>*`,swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return Gi(e,this.options)},ghostClass:`sortable-ghost`,chosenClass:`sortable-chosen`,dragClass:`sortable-drag`,ignore:`a, img`,filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(e,t){e.setData(`Text`,t.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:`data-id`,delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:`sortable-fallback`,fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:Q.supportPointer!==!1&&`PointerEvent`in window&&(!Rr||zr),emptyInsertThreshold:5};for(var r in pi.initializePlugins(this,e,n),n)!(r in t)&&(t[r]=n[r]);for(var i in Ji(t),this)i.charAt(0)===`_`&&typeof this[i]==`function`&&(this[i]=this[i].bind(this));this.nativeDraggable=t.forceFallback?!1:Ui,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?N(e,`pointerdown`,this._onTapStart):(N(e,`mousedown`,this._onTapStart),N(e,`touchstart`,this._onTapStart)),this.nativeDraggable&&(N(e,`dragover`,this),N(e,`dragenter`,this)),Ti.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),Ar(this,ci())}Q.prototype={constructor:Q,_isOutsideThisEl:function(e){!this.el.contains(e)&&e!==this.el&&(Mi=null)},_getDirection:function(e,t){return typeof this.options.direction==`function`?this.options.direction.call(this,e,t,U):this.options.direction},_onTapStart:function(e){if(e.cancelable){var t=this,n=this.el,r=this.options,i=r.preventOnFilter,a=e.type,o=e.touches&&e.touches[0]||e.pointerType&&e.pointerType===`touch`&&e,s=(o||e).target,c=e.target.shadowRoot&&(e.path&&e.path[0]||e.composedPath&&e.composedPath()[0])||s,l=r.filter;if(ca(n),!U&&!(/mousedown|pointerdown/.test(a)&&e.button!==0||r.disabled)&&!c.isContentEditable&&!(!this.nativeDraggable&&Rr&&s&&s.tagName.toUpperCase()===`SELECT`)&&(s=F(s,r.draggable,n,!1),!(s&&s.animated)&&_i!==s)){if(yi=z(s),bi=z(s,r.draggable),typeof l==`function`){if(l.call(this,e,s,this)){H({sortable:t,rootEl:c,name:`filter`,targetEl:s,toEl:n,fromEl:n}),V(`filter`,t,{evt:e}),i&&e.preventDefault();return}}else if(l&&(l=l.split(`,`).some(function(r){if(r=F(c,r.trim(),n,!1),r)return H({sortable:t,rootEl:r,name:`filter`,targetEl:s,fromEl:n,toEl:n}),V(`filter`,t,{evt:e}),!0}),l)){i&&e.preventDefault();return}r.handle&&!F(c,r.handle,n,!1)||this._prepareDragStart(e,o,s)}}},_prepareDragStart:function(e,t,n){var r=this,i=r.el,a=r.options,o=i.ownerDocument,s;if(n&&!U&&n.parentNode===i){var c=R(n);if(K=i,U=n,W=U.parentNode,gi=U.nextSibling,_i=n,Si=a.group,Q.dragged=U,Ei={target:U,clientX:(t||e).clientX,clientY:(t||e).clientY},ki=Ei.clientX-c.left,Ai=Ei.clientY-c.top,this._lastX=(t||e).clientX,this._lastY=(t||e).clientY,U.style[`will-change`]=`all`,s=function(){if(V(`delayEnded`,r,{evt:e}),Q.eventCanceled){r._onDrop();return}r._disableDelayedDragEvents(),!Lr&&r.nativeDraggable&&(U.draggable=!0),r._triggerDragStart(e,t),H({sortable:r,name:`choose`,originalEvent:e}),I(U,a.chosenClass,!0)},a.ignore.split(`,`).forEach(function(e){Kr(U,e.trim(),ta)}),N(o,`dragover`,Zi),N(o,`mousemove`,Zi),N(o,`touchmove`,Zi),a.supportPointer?(N(o,`pointerup`,r._onDrop),!this.nativeDraggable&&N(o,`pointercancel`,r._onDrop)):(N(o,`mouseup`,r._onDrop),N(o,`touchend`,r._onDrop),N(o,`touchcancel`,r._onDrop)),Lr&&this.nativeDraggable&&(this.options.touchStartThreshold=4,U.draggable=!0),V(`delayStart`,this,{evt:e}),a.delay&&(!a.delayOnTouchOnly||t)&&(!this.nativeDraggable||!(Ir||Fr))){if(Q.eventCanceled){this._onDrop();return}a.supportPointer?(N(o,`pointerup`,r._disableDelayedDrag),N(o,`pointercancel`,r._disableDelayedDrag)):(N(o,`mouseup`,r._disableDelayedDrag),N(o,`touchend`,r._disableDelayedDrag),N(o,`touchcancel`,r._disableDelayedDrag)),N(o,`mousemove`,r._delayedDragTouchMoveHandler),N(o,`touchmove`,r._delayedDragTouchMoveHandler),a.supportPointer&&N(o,`pointermove`,r._delayedDragTouchMoveHandler),r._dragStartTimer=setTimeout(s,a.delay)}else s()}},_delayedDragTouchMoveHandler:function(e){var t=e.touches?e.touches[0]:e;Math.max(Math.abs(t.clientX-this._lastX),Math.abs(t.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){U&&ta(U),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;P(e,`mouseup`,this._disableDelayedDrag),P(e,`touchend`,this._disableDelayedDrag),P(e,`touchcancel`,this._disableDelayedDrag),P(e,`pointerup`,this._disableDelayedDrag),P(e,`pointercancel`,this._disableDelayedDrag),P(e,`mousemove`,this._delayedDragTouchMoveHandler),P(e,`touchmove`,this._delayedDragTouchMoveHandler),P(e,`pointermove`,this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,t){t||=e.pointerType==`touch`&&e,!this.nativeDraggable||t?this.options.supportPointer?N(document,`pointermove`,this._onTouchMove):t?N(document,`touchmove`,this._onTouchMove):N(document,`mousemove`,this._onTouchMove):(N(U,`dragend`,this),N(K,`dragstart`,this._onDragStart));try{document.selection?la(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(e,t){if(Ci=!1,K&&U){V(`dragStarted`,this,{evt:t}),this.nativeDraggable&&N(document,`dragover`,Qi);var n=this.options;!e&&I(U,n.dragClass,!1),I(U,n.ghostClass,!0),Q.active=this,e&&this._appendGhost(),H({sortable:this,name:`start`,originalEvent:t})}else this._nulling()},_emulateDragOver:function(){if(X){this._lastX=X.clientX,this._lastY=X.clientY,Yi();for(var e=document.elementFromPoint(X.clientX,X.clientY),t=e;e&&e.shadowRoot&&(e=e.shadowRoot.elementFromPoint(X.clientX,X.clientY),e!==t);)t=e;if(U.parentNode[B]._isOutsideThisEl(e),t)do{if(t[B]){var n=void 0;if(n=t[B]._onDragOver({clientX:X.clientX,clientY:X.clientY,target:e,rootEl:t}),n&&!this.options.dragoverBubble)break}e=t}while(t=Ur(t));Xi()}},_onTouchMove:function(e){if(Ei){var t=this.options,n=t.fallbackTolerance,r=t.fallbackOffset,i=e.touches?e.touches[0]:e,a=G&&Gr(G,!0),o=G&&a&&a.a,s=G&&a&&a.d,c=Vi&&Z&&Zr(Z),l=(i.clientX-Ei.clientX+r.x)/(o||1)+(c?c[0]-Li[0]:0)/(o||1),u=(i.clientY-Ei.clientY+r.y)/(s||1)+(c?c[1]-Li[1]:0)/(s||1);if(!Q.active&&!Ci){if(n&&Math.max(Math.abs(i.clientX-this._lastX),Math.abs(i.clientY-this._lastY))=0&&(H({sortable:this,name:`update`,toEl:W,originalEvent:e}),H({sortable:this,name:`sort`,toEl:W,originalEvent:e})):(J>=0&&(H({rootEl:W,name:`add`,toEl:W,fromEl:K,originalEvent:e}),H({sortable:this,name:`remove`,toEl:W,originalEvent:e}),H({rootEl:W,name:`sort`,toEl:W,fromEl:K,originalEvent:e}),H({sortable:this,name:`sort`,toEl:W,originalEvent:e})),Y&&Y.save()),Q.active&&((J==null||J===-1)&&(J=yi,xi=bi),H({sortable:this,name:`end`,toEl:W,originalEvent:e}),this.save()))),this._nulling()},_nulling:function(){V(`nulling`,this),K=U=W=G=gi=q=_i=vi=Ei=X=ji=J=xi=yi=bi=Mi=Ni=Y=Si=Q.dragged=Q.ghost=Q.clone=Q.active=null,zi.forEach(function(e){e.checked=!0}),zi.length=Di=Oi=0},handleEvent:function(e){switch(e.type){case`drop`:case`dragend`:this._onDrop(e);break;case`dragenter`:case`dragover`:U&&(this._onDragOver(e),$i(e));break;case`selectstart`:e.preventDefault();break}},toArray:function(){for(var e=[],t,n=this.el.children,r=0,i=n.length,a=this.options;ri.right+a||e.clientY>r.bottom&&e.clientX>r.left:e.clientY>i.bottom+a||e.clientX>r.right&&e.clientY>r.top}function aa(e,t,n,r,i,a,o,s){var c=r?e.clientY:e.clientX,l=r?n.height:n.width,u=r?n.top:n.left,d=r?n.bottom:n.right,f=!1;if(!o){if(s&&Iiu+l*a/2:cd-Ii)return-Ni}else if(c>u+l*(1-i)/2&&cd-l*a/2)?c>u+l/2?1:-1:0}function oa(e){return z(U){ka(n,e.oldIndex,e.newIndex,e)}},c=()=>{let t=typeof e==`string`?a?.querySelector(e):f(e);!t||i!==void 0||(i=new Ta(t,{...s,...o}))},l=()=>{i?.destroy(),i=void 0};return x(c),t(l),{stop:l,start:c,option:(e,t)=>{if(t!==void 0)i?.option(e,t);else return i?.option(e)}}}function Da(e,t,n){let r=e.children[n];e.insertBefore(t,r)}function Oa(e){e.parentNode&&e.parentNode.removeChild(e)}function ka(e,t,n,r=null){r!=null&&(Oa(r.item),Da(r.from,r.item,t));let i=ee(e),a=i?[...O(e)]:O(e);if(n>=0&&n{a.splice(n,0,r),i&&(e.value=a)})}}var Aa={class:`flex flex-col gap-4`},ja={value:`xs`},Ma={value:`sm`},Na={value:`md`},Pa={value:`lg`},Fa={class:`flex flex-col gap-4`},Ia={class:`join flex`},La=[`value`],Ra={class:`flex flex-col gap-2`},za={class:`truncate`},Ba={class:`flex items-center gap-3`},Va={class:`text-sm`},Ha=[`checked`,`onChange`],Ua=e({__name:`ConnectionsSettingsModal`,props:{allColumns:{},untaggedSourceIPs:{}},setup(e,{expose:t}){let n=e,{t:r}=k(),l=ie(),f=A(),p=A(null),_=A(``),v=A(``),b=m({get:()=>{let e=l.connectionsTableColumnOrder,t=n.allColumns.map(e=>e.id),r=e.filter(e=>t.includes(e)),i=t.filter(t=>!e.includes(t));return[...r,...i]},set:e=>{l.connectionsTableColumnOrder=[...e]}});function x(e){return n.allColumns.find(t=>t.id===e)}Ea(p,b,{handle:`.drag-handle`,animation:150});function C(e){l.connectionsTableColumnVisibility={...l.connectionsTableColumnVisibility,[e]:!l.connectionsTableColumnVisibility[e]}}function w(){v.value&&_.value&&(l.clientSourceIPTags.some(e=>e.tagName===v.value||e.sourceIP===_.value)||(l.clientSourceIPTags=[...l.clientSourceIPTags,{tagName:v.value,sourceIP:_.value}]),v.value=``,_.value=``)}function E(e){l.clientSourceIPTags=l.clientSourceIPTags.filter(t=>t.tagName!==e)}function D(){l.connectionsTableColumnVisibility={...j},l.connectionsTableColumnOrder=[...re]}return t({open:()=>f.value?.open(),close:()=>f.value?.close()}),(t,n)=>{let m=Oe,O=ke,k=Ae;return T(),c(k,{ref_key:`modalRef`,ref:f,title:i(r)(`connectionsSettings`)},{icon:y(()=>[u(i(_e),{size:24})]),default:y(()=>[a(`div`,Aa,[a(`div`,null,[u(m,{"with-divider":``},{default:y(()=>[h(S(i(r)(`quickFilter`)),1)]),_:1}),te(a(`input`,{"onUpdate:modelValue":n[0]||=e=>i(l).quickFilterRegex=e,type:`text`,class:`input w-full`,placeholder:`DIRECT|direct|dns-out`},null,512),[[ne,i(l).quickFilterRegex]])]),a(`div`,null,[u(m,{"with-divider":``},{default:y(()=>[h(S(i(r)(`tableSize`)),1)]),_:1}),te(a(`select`,{"onUpdate:modelValue":n[1]||=e=>i(l).connectionsTableSize=e,class:`select w-full`},[a(`option`,ja,S(i(r)(`xs`)),1),a(`option`,Ma,S(i(r)(`sm`)),1),a(`option`,Na,S(i(r)(`md`)),1),a(`option`,Pa,S(i(r)(`lg`)),1)],512),[[d,i(l).connectionsTableSize]])]),a(`div`,null,[u(m,{"with-divider":``},{default:y(()=>[h(S(i(r)(`tagClientSourceIPWithName`)),1)]),_:1}),a(`div`,Fa,[a(`div`,Ia,[te(a(`select`,{"onUpdate:modelValue":n[2]||=e=>ee(_)?_.value=e:null,class:`select join-item`},[n[4]||=a(`option`,{value:``},null,-1),(T(!0),s(o,null,g(e.untaggedSourceIPs,e=>(T(),s(`option`,{key:e,value:e},S(e||i(r)(`inner`)),9,La))),128))],512),[[d,i(_)]]),te(a(`input`,{"onUpdate:modelValue":n[3]||=e=>ee(v)?v.value=e:null,class:`input join-item flex-1`,placeholder:`name`},null,512),[[ne,i(v)]]),u(O,{class:`join-item`,onClick:w},{default:y(()=>[h(S(i(r)(`tag`)),1)]),_:1})]),a(`div`,Ra,[(T(!0),s(o,null,g(i(l).clientSourceIPTags,e=>(T(),s(`div`,{key:e.tagName,class:`badge w-full items-center justify-between gap-2 py-4 badge-primary`},[a(`span`,za,S(e.tagName)+` (`+S(e.sourceIP)+`)`,1),u(O,{class:`btn-circle btn-ghost btn-xs`,onClick:t=>E(e.tagName)},{default:y(()=>[u(i(de),{size:12})]),_:1},8,[`onClick`])]))),128))])])]),a(`div`,null,[u(m,{"with-divider":``},{default:y(()=>[h(S(i(r)(`columns`)),1)]),_:1}),a(`div`,{ref_key:`columnListRef`,ref:p,class:`flex flex-col gap-1`},[(T(!0),s(o,null,g(i(b),e=>(T(),s(`div`,{key:e,class:`flex items-center justify-between gap-2 rounded-lg bg-base-200 px-3 py-2 transition-colors hover:bg-base-300`},[a(`div`,Ba,[u(i(ve),{class:`drag-handle shrink-0 cursor-grab text-base-content/40 transition-colors hover:text-base-content/70 active:cursor-grabbing`,size:16}),a(`span`,Va,S(i(r)(x(e)?.key||e)),1)]),a(`input`,{type:`checkbox`,class:`toggle toggle-primary toggle-sm`,checked:i(l).connectionsTableColumnVisibility[e],onChange:t=>C(e)},null,40,Ha)]))),128))],512)]),u(O,{class:`btn-sm btn-neutral`,onClick:D},{default:y(()=>[h(S(i(r)(`reset`)),1)]),_:1})])]),_:1},8,[`title`])}}}),Wa=Object.assign(Ua,{__name:`ConnectionsSettingsModal`}),Ga=l(Ee(),1),Ka={key:0,class:`flex max-h-[70vh] flex-col gap-4 overflow-x-hidden overflow-y-auto`},qa={class:`rounded-box bg-base-200 p-3`},Ja={class:`mb-2 font-semibold text-primary`},Ya={class:`grid grid-cols-2 gap-x-4 gap-y-1 text-sm`},Xa={class:`min-w-0 font-mono break-all`},Za={class:`text-base-content/70`},Qa={class:`text-base-content/70`},$a={class:`text-base-content/70`},eo={class:`break-all`},to={class:`rounded-box bg-base-200 p-3`},no={class:`mb-2 font-semibold text-primary`},ro={class:`grid grid-cols-2 gap-x-4 gap-y-1 text-sm`},io={class:`text-base-content/70`},ao={class:`text-base-content/70`},oo={class:`text-base-content/70`},so={class:`text-base-content/70`},co={class:`rounded-box bg-base-200 p-3`},lo={class:`mb-2 font-semibold text-primary`},uo={class:`grid grid-cols-2 gap-x-4 gap-y-1 text-sm`},fo={class:`text-base-content/70`},po={class:`text-base-content/70`},mo={class:`text-base-content/70`},ho={class:`break-all`},go={class:`text-base-content/70`},_o={class:`break-all`},vo={class:`text-base-content/70`},yo={class:`rounded-box bg-base-200 p-3`},bo={class:`mb-2 font-semibold text-primary`},xo={class:`grid grid-cols-2 gap-x-4 gap-y-1 text-sm`},So={class:`text-base-content/70`},Co={class:`min-w-0 font-mono break-all`},wo={class:`text-base-content/70`},To={class:`min-w-0 font-mono break-all`},Eo={class:`text-base-content/70`},Do={class:`min-w-0 font-mono break-all`},Oo={class:`rounded-box bg-base-200 p-3`},ko={class:`mb-2 font-semibold text-primary`},Ao={class:`grid grid-cols-2 gap-x-4 gap-y-1 text-sm`},jo={class:`text-base-content/70`},Mo={class:`text-base-content/70`},No={class:`min-w-0 font-mono break-all`},Po={class:`text-base-content/70`},Fo={class:`rounded-box bg-base-200 p-3`},Io={class:`mb-2 font-semibold text-primary`},Lo={class:`grid grid-cols-2 gap-x-4 gap-y-1 text-sm`},Ro={class:`text-base-content/70`},zo={class:`text-base-content/70`},Bo={class:`min-w-0 text-xs break-all`},Vo={class:`rounded-box bg-base-200 p-3`},Ho={class:`mb-2 font-semibold text-primary`},Uo={class:`flex flex-wrap gap-1`},Wo={key:0,class:`rounded-box bg-base-200 p-3`},Go={class:`mb-2 font-semibold text-primary`},Ko={class:`grid grid-cols-2 gap-x-4 gap-y-1 text-sm`},qo={class:`text-base-content/70`},Jo={class:`text-base-content/70`},Yo=e({__name:`ConnectionDetailsModal`,props:{connection:{}},setup(e,{expose:t}){let n=A(),{t:r}=k();return t({open:()=>n.value?.open(),close:()=>n.value?.close()}),(t,l)=>{let d=Ae;return T(),c(d,{ref_key:`modalRef`,ref:n,title:i(r)(`connectionsDetails`)},{icon:y(()=>[u(i(_e),{size:24})]),default:y(()=>[e.connection?(T(),s(`div`,Ka,[a(`div`,qa,[a(`div`,Ja,S(i(r)(`basic`)),1),a(`div`,Ya,[l[0]||=a(`div`,{class:`text-base-content/70`},`ID`,-1),a(`div`,Xa,S(e.connection.id),1),a(`div`,Za,S(i(r)(`start`)),1),a(`div`,null,S(i(Ga.default)(e.connection.start).format(`HH:mm:ss`)),1),a(`div`,Qa,S(i(r)(`rule`)),1),a(`div`,null,S(e.connection.rule),1),a(`div`,$a,S(i(r)(`rulePayload`)),1),a(`div`,eo,S(e.connection.rulePayload||`-`),1)])]),a(`div`,to,[a(`div`,no,S(i(r)(`traffic`)),1),a(`div`,ro,[a(`div`,io,S(i(r)(`download`)),1),a(`div`,null,S(i(we)(e.connection.download)),1),a(`div`,ao,S(i(r)(`upload`)),1),a(`div`,null,S(i(we)(e.connection.upload)),1),a(`div`,oo,S(i(r)(`dlSpeed`)),1),a(`div`,null,S(i(we)(e.connection.downloadSpeed))+`/s`,1),a(`div`,so,S(i(r)(`ulSpeed`)),1),a(`div`,null,S(i(we)(e.connection.uploadSpeed))+`/s`,1)])]),a(`div`,co,[a(`div`,lo,S(i(r)(`metadata`)),1),a(`div`,uo,[a(`div`,fo,S(i(r)(`network`)),1),a(`div`,null,S(e.connection.metadata.network),1),a(`div`,po,S(i(r)(`type`)),1),a(`div`,null,S(e.connection.metadata.type),1),a(`div`,mo,S(i(r)(`host`)),1),a(`div`,ho,S(e.connection.metadata.host||`-`),1),a(`div`,go,S(i(r)(`sniffHost`)),1),a(`div`,_o,S(e.connection.metadata.sniffHost||`-`),1),a(`div`,vo,S(i(r)(`dnsMode`)),1),a(`div`,null,S(e.connection.metadata.dnsMode||`-`),1)])]),a(`div`,yo,[a(`div`,bo,S(i(r)(`sourceAndDestination`)),1),a(`div`,xo,[a(`div`,So,S(i(r)(`source`)),1),a(`div`,Co,S(`${e.connection.metadata.sourceIP}:${e.connection.metadata.sourcePort}`),1),a(`div`,wo,S(i(r)(`destination`)),1),a(`div`,To,S(e.connection.metadata.destinationIP?`${e.connection.metadata.destinationIP}:${e.connection.metadata.destinationPort}`:`${e.connection.metadata.host}:${e.connection.metadata.destinationPort}`),1),a(`div`,Eo,S(i(r)(`remoteDestination`)),1),a(`div`,Do,S(e.connection.metadata.remoteDestination||`-`),1)])]),a(`div`,Oo,[a(`div`,ko,S(i(r)(`inbound`)),1),a(`div`,Ao,[a(`div`,jo,S(i(r)(`inboundName`)),1),a(`div`,null,S(e.connection.metadata.inboundName||`-`),1),a(`div`,Mo,S(i(r)(`inboundIP`)),1),a(`div`,No,S(e.connection.metadata.inboundIP?`${e.connection.metadata.inboundIP}:${e.connection.metadata.inboundPort}`:`-`),1),a(`div`,Po,S(i(r)(`inboundUser`)),1),a(`div`,null,S(e.connection.metadata.inboundUser||`-`),1)])]),a(`div`,Fo,[a(`div`,Io,S(i(r)(`process`)),1),a(`div`,Lo,[a(`div`,Ro,S(i(r)(`processName`)),1),a(`div`,null,S(e.connection.metadata.process||`-`),1),a(`div`,zo,S(i(r)(`processPath`)),1),a(`div`,Bo,S(e.connection.metadata.processPath||`-`),1),l[1]||=a(`div`,{class:`text-base-content/70`},`UID`,-1),a(`div`,null,S(e.connection.metadata.uid||`-`),1)])]),a(`div`,Vo,[a(`div`,Ho,S(i(r)(`chains`)),1),a(`div`,Uo,[(T(!0),s(o,null,g(e.connection.chains,(e,t)=>(T(),s(`span`,{key:t,class:`badge badge-neutral`},S(e),1))),128))])]),e.connection.metadata.specialProxy||e.connection.metadata.specialRules?(T(),s(`div`,Wo,[a(`div`,Go,S(i(r)(`special`)),1),a(`div`,Ko,[a(`div`,qo,S(i(r)(`specialProxy`)),1),a(`div`,null,S(e.connection.metadata.specialProxy||`-`),1),a(`div`,Jo,S(i(r)(`specialRules`)),1),a(`div`,null,S(e.connection.metadata.specialRules||`-`),1)])])):C(``,!0)])):C(``,!0)]),_:1},8,[`title`])}}}),Xo=Object.assign(Yo,{__name:`ConnectionDetailsModal`}),Zo={class:`flex h-full min-h-0 flex-col gap-2`},Qo={class:`flex shrink-0 items-center justify-center md:hidden`},$o={class:`hidden shrink-0 items-center justify-between gap-2 md:flex`},es={class:`flex shrink-0 items-center gap-1.5`},ts=[`value`],ns={class:`text-xs whitespace-nowrap text-base-content/60`},rs=e({__name:`connections`,setup(e){let{t,locale:n}=k();b({title:m(()=>t(`connections`))});let c=Se(),l=ie(),f=A(),p=A(),h=A(null),y=A(`active`),x=A(``),C=r(`enableQuickFilter`,!1),w=A(``),E=r(`connectionsTableSortColumn`,`ConnectTime`),D=r(`connectionsTableSortDesc`,!0),O=r(`connectionsTableGrouping`,null),ne=A({}),j=A(0),re=r(`connectionsTablePageSize`,50),ae=A(!1),se=e=>we(e).toString();function ce(e){return e.metadata.process||e.metadata.processPath?.replace(/^.*[/\\](.*)$/,`$1`)||`-`}function le(e){return`${e.metadata.host||De(e.metadata.destinationIP)}:${e.metadata.destinationPort}`}function ue(e){return e.rulePayload?`${e.rule} : ${e.rulePayload}`:e.rule}function fe(e){let n=e.metadata.sourceIP||t(`inner`);return l.clientSourceIPTags.find(e=>e.sourceIP===n)?.tagName||n}function pe(e){return e.metadata.remoteDestination||e.metadata.destinationIP||e.metadata.host}function me(e){ye(e)}let he=[{id:M.Close,key:`close`,groupable:!1,sortable:!1,render:e=>v(`button`,{class:`btn btn-circle btn-xs`,onClick:t=>{t.stopPropagation(),me(e.id)}},v(de,{size:16}))},{id:M.Type,key:`type`,groupable:!0,sortable:!0,sortId:`Type`,render:e=>`${e.metadata.type}(${e.metadata.network})`,groupValue:e=>`${e.metadata.type}(${e.metadata.network})`},{id:M.Process,key:`process`,groupable:!0,sortable:!0,sortId:`Process`,render:e=>ce(e),groupValue:e=>ce(e)},{id:M.Host,key:`host`,groupable:!0,sortable:!0,sortId:`Host`,render:e=>le(e),groupValue:e=>le(e)},{id:M.SniffHost,key:`sniffHost`,groupable:!0,sortable:!1,render:e=>e.metadata.sniffHost||`-`,groupValue:e=>e.metadata.sniffHost||`-`},{id:M.Rule,key:`rule`,groupable:!0,sortable:!1,render:e=>ue(e),groupValue:e=>ue(e)},{id:M.Chains,key:`chains`,groupable:!0,sortable:!1,render:e=>{let t=[...e.chains].reverse(),n=[];return t.forEach((e,t)=>{t>0&&n.push(v(oe,{class:`inline-block`,size:18})),n.push(v(`span`,{class:`align-middle`},e))}),v(`span`,n)},groupValue:e=>e.chains.join(` > `)},{id:M.ConnectTime,key:`connectTime`,groupable:!1,sortable:!0,sortId:`ConnectTime`,render:e=>Te(e.start,n.value)},{id:M.DlSpeed,key:`dlSpeed`,groupable:!1,sortable:!0,sortId:`DlSpeed`,render:e=>`${se(e.downloadSpeed)}/s`},{id:M.UlSpeed,key:`ulSpeed`,groupable:!1,sortable:!0,sortId:`UlSpeed`,render:e=>`${se(e.uploadSpeed)}/s`},{id:M.Download,key:`dl`,groupable:!1,sortable:!0,sortId:`Download`,render:e=>se(e.download)},{id:M.Upload,key:`ul`,groupable:!1,sortable:!0,sortId:`Upload`,render:e=>se(e.upload)},{id:M.SourceIP,key:`sourceIP`,groupable:!0,sortable:!0,sortId:`SourceIP`,render:e=>fe(e),groupValue:e=>fe(e)},{id:M.SourcePort,key:`sourcePort`,groupable:!1,sortable:!1,render:e=>String(e.metadata.sourcePort)},{id:M.Destination,key:`destination`,groupable:!0,sortable:!1,render:e=>pe(e),groupValue:e=>pe(e)}],ge=m(()=>{let e=l.connectionsTableColumnOrder,t=l.connectionsTableColumnVisibility;return[...he].sort((t,n)=>{let r=e.indexOf(t.id),i=e.indexOf(n.id);return(r===-1?1/0:r)-(i===-1?1/0:i)}).filter(e=>t[e.id]!==!1)}),_e=m(()=>he.filter(e=>e.sortable)),ve=m(()=>[{type:`active`,name:t(`active`),count:c.activeConnections.length},{type:`closed`,name:t(`closed`),count:c.closedConnections.length}]),xe=m(()=>Pn(c.allConnections.map(e=>{let n=e.metadata.sourceIP||t(`inner`);return l.clientSourceIPTags.find(e=>e.sourceIP===n)?.tagName||n})).sort()),Ce=m(()=>Pn(c.allConnections.map(e=>e.metadata.sourceIP)).sort().filter(e=>!l.clientSourceIPTags.some(t=>t.sourceIP===e))),Ee=m(()=>l.tableSizeClassName(l.connectionsTableSize)),Oe=m(()=>{let e=y.value===`active`?c.activeConnections:c.closedConnections;if(C.value&&l.quickFilterRegex)try{let t=new RegExp(l.quickFilterRegex,`i`);e=e.filter(e=>!e.chains.some(e=>t.test(e)))}catch{}if(w.value&&(e=e.filter(e=>{let n=e.metadata.sourceIP||t(`inner`);return(l.clientSourceIPTags.find(e=>e.sourceIP===n)?.tagName||n)===w.value})),x.value){let t=x.value.toLowerCase();e=e.filter(e=>e.metadata.host?.toLowerCase().includes(t)||e.metadata.process?.toLowerCase().includes(t)||e.metadata.sourceIP?.toLowerCase().includes(t)||e.rule?.toLowerCase().includes(t)||e.chains.some(e=>e.toLowerCase().includes(t)))}return[...e].sort((e,t)=>{let n=0;switch(E.value){case`ConnectTime`:n=new Date(e.start).getTime()-new Date(t.start).getTime();break;case`DlSpeed`:n=e.downloadSpeed-t.downloadSpeed;break;case`UlSpeed`:n=e.uploadSpeed-t.uploadSpeed;break;case`Download`:n=e.download-t.download;break;case`Upload`:n=e.upload-t.upload;break;case`Host`:n=(e.metadata.host||``).localeCompare(t.metadata.host||``);break;case`Type`:n=e.metadata.type.localeCompare(t.metadata.type);break;case`Process`:n=(e.metadata.process||``).localeCompare(t.metadata.process||``);break;case`SourceIP`:n=(e.metadata.sourceIP||``).localeCompare(t.metadata.sourceIP||``);break}return D.value?-n:n})}),ke=m(()=>Math.max(1,Math.ceil(Oe.value.length/re.value))),Ae=m(()=>{let e=j.value,t=ke.value,n=[];n.push(0);for(let r=Math.max(1,e-1);r<=Math.min(t-2,e+1);r++)n.includes(r)||n.push(r);return t>1&&!n.includes(t-1)&&n.push(t-1),n.sort((e,t)=>e-t)}),je=m(()=>{let e=j.value*re.value;return Oe.value.slice(e,e+re.value)}),Me=m(()=>{let e=Oe.value.length;return`${j.value*re.value+1}-${Math.min((j.value+1)*re.value,e)} / ${e}`});_([y,x,w,C],()=>{j.value=0});let Ne=m(()=>O.value?he.find(e=>e.id===O.value):null),Pe=m(()=>{let e=Ne.value;if(!e?.groupValue)return je.value.map(e=>({type:`data`,original:e,depth:0}));let t=new Map;for(let n of Oe.value){let r=e.groupValue(n),i=t.get(r);i?i.push(n):t.set(r,[n])}let n=[];for(let[e,r]of t)if(n.push({type:`group`,key:e,depth:0,subRows:r}),ne.value[e])for(let e of r)n.push({type:`data`,original:e,depth:1});return n});function Fe(e){let t=he.find(t=>t.id===e);!t?.sortable||!t.sortId||(E.value===t.sortId?D.value?D.value=!1:(E.value=``,D.value=!0):(E.value=t.sortId,D.value=!0))}function Ie(e){O.value===e?O.value=null:O.value=e,ne.value={}}function Le(e){ne.value[e]=!ne.value[e]}function Re(){D.value=!D.value}async function ze(){ae.value=!0;try{x.value?await Promise.allSettled(Oe.value.map(e=>ye(e.id))):await be()}finally{ae.value=!1}}function Be(e){h.value=e,p.value?.open()}return(e,t)=>{let n=er,r=lr,l=Tr,m=Wa,_=Xo;return T(),s(`div`,Zo,[u(n,{class:`shrink-0`,tabs:i(ve),"active-tab":i(y),"enable-quick-filter":i(C),"source-i-p-filter":i(w),"unique-source-i-ps":i(xe),"sort-column":i(E),"sort-desc":i(D),"sortable-columns":i(_e),"global-filter":i(x),paused:i(c).paused,"is-closing-connections":i(ae),"onUpdate:activeTab":t[0]||=e=>y.value=e,"onUpdate:enableQuickFilter":t[1]||=e=>C.value=e,"onUpdate:sourceIPFilter":t[2]||=e=>w.value=e,"onUpdate:sortColumn":t[3]||=e=>E.value=e,"onUpdate:globalFilter":t[4]||=e=>x.value=e,onToggleSortOrder:Re,onTogglePaused:t[5]||=e=>i(c).paused=!i(c).paused,onCloseConnections:ze,onOpenSettings:t[6]||=e=>i(f)?.open()},null,8,[`tabs`,`active-tab`,`enable-quick-filter`,`source-i-p-filter`,`unique-source-i-ps`,`sort-column`,`sort-desc`,`sortable-columns`,`global-filter`,`paused`,`is-closing-connections`]),a(`div`,Qo,[u(r,{"current-page":i(j),"total-pages":i(ke),"visible-pages":i(Ae),onGoToPage:t[7]||=e=>j.value=e,onPrevious:t[8]||=e=>j.value--,onNext:t[9]||=e=>j.value++},null,8,[`current-page`,`total-pages`,`visible-pages`])]),u(l,{columns:i(ge),"row-model":i(Pe),"sort-column":i(E),"sort-desc":i(D),"grouping-column":i(O),"expanded-groups":i(ne),"table-size-class":i(Ee),onHeaderClick:Fe,onToggleGrouping:Ie,onToggleGroupExpanded:Le,onRowClick:Be},null,8,[`columns`,`row-model`,`sort-column`,`sort-desc`,`grouping-column`,`expanded-groups`,`table-size-class`]),a(`div`,$o,[a(`div`,es,[te(a(`select`,{"onUpdate:modelValue":t[10]||=e=>ee(re)?re.value=e:null,class:`select-bordered select select-xs`},[(T(),s(o,null,g([20,50,100,200],e=>a(`option`,{key:e,value:e},S(e),9,ts)),64))],512),[[d,i(re),void 0,{number:!0}]]),a(`span`,ns,S(i(Me)),1)]),u(r,{"current-page":i(j),"total-pages":i(ke),"visible-pages":i(Ae),onGoToPage:t[11]||=e=>j.value=e,onPrevious:t[12]||=e=>j.value--,onNext:t[13]||=e=>j.value++},null,8,[`current-page`,`total-pages`,`visible-pages`])]),u(m,{ref_key:`settingsModal`,ref:f,"all-columns":he,"untagged-source-i-ps":i(Ce)},null,8,[`untagged-source-i-ps`]),u(_,{ref_key:`detailsModal`,ref:p,connection:i(h)},null,8,[`connection`])])}}});export{rs as default}; \ No newline at end of file diff --git a/dashboard/public/_nuxt/DaqTEuJW.js b/dashboard/public/_nuxt/BxUO6acX.js similarity index 96% rename from dashboard/public/_nuxt/DaqTEuJW.js rename to dashboard/public/_nuxt/BxUO6acX.js index ae028d2..82a8102 100644 --- a/dashboard/public/_nuxt/DaqTEuJW.js +++ b/dashboard/public/_nuxt/BxUO6acX.js @@ -1 +1 @@ -import{E as e,M as t,W as n}from"./DOvCTup-.js";import{c as r,d as i,f as a,i as o,l as s,m as c,o as l,p as u,r as d,u as f}from"./_v7-ePgP.js";const p=t(`config`,()=>{let t=e(`theme`,`sunset`),p=e(`autoSwitchTheme`,!1),m=e(`favDayTheme`,`nord`),h=e(`favNightTheme`,`sunset`),g=e(`proxiesPreviewType`,u.Auto),_=e(`proxiesOrderingType`,a.NATURAL),v=e(`proxiesDisplayMode`,i.CARD),y=e(`renderProxiesInTwoColumns`,!0),b=e(`hideUnAvailableProxies`,!1),x=e(`urlForLatencyTest`,`https://www.gstatic.com/generate_204`),S=e(`autoCloseConns`,!0),C=e(`latencyTestTimeoutDuration`,5e3),w=e(`iconHeight`,24),T=e(`iconMarginRight`,8),E=e(`autoSwitchEndpoint`,!1),D=e(`enableTwemoji`,!1),O=e(`sidebarExpanded`,!1),k=e(`useMobileBottomNav`,!0),A=e(`connectionsTableSize`,c.XS),j=e(`connectionsTableColumnVisibility`,o),M=e(`connectionsTableColumnOrder`,d),N=e(`logsTableSize`,c.XS),P=e(`logLevel`,f.Info),F=e(`logMaxRows`,l),I=e(`quickFilterRegex`,`DIRECT|direct|dns-out`),L=e(`clientSourceIPTags`,[]),R=e(`showNetworkTopology`,!1),z=n(()=>x.value.startsWith(`https`));return{curTheme:t,autoSwitchTheme:p,favDayTheme:m,favNightTheme:h,proxiesPreviewType:g,proxiesOrderingType:_,proxiesDisplayMode:v,renderProxiesInTwoColumns:y,hideUnAvailableProxies:b,urlForLatencyTest:x,autoCloseConns:S,latencyTestTimeoutDuration:C,iconHeight:w,iconMarginRight:T,autoSwitchEndpoint:E,enableTwemoji:D,sidebarExpanded:O,useMobileBottomNav:k,connectionsTableSize:A,connectionsTableColumnVisibility:j,connectionsTableColumnOrder:M,quickFilterRegex:I,logsTableSize:N,logLevel:P,logMaxRows:F,clientSourceIPTags:L,showNetworkTopology:R,isLatencyTestByHttps:z,latencyQualityMap:n(()=>z.value?s:r),tableSizeClassName:e=>({[c.XS]:`table-xs`,[c.SM]:`table-sm`,[c.MD]:`table-md`,[c.LG]:`table-lg`})[e]||`table-xs`,resetProxiesSettings:()=>{g.value=u.Auto,_.value=a.NATURAL,v.value=i.CARD,y.value=!0,b.value=!1,x.value=`https://www.gstatic.com/generate_204`,S.value=!0,C.value=5e3,w.value=24,T.value=8},resetXdConfig:()=>{p.value=!1,E.value=!1,D.value=!1,k.value=!0,m.value=`nord`,h.value=`sunset`,t.value=`sunset`}}});export{p as t}; \ No newline at end of file +import{E as e,M as t,W as n}from"./CxatB1L6.js";import{c as r,d as i,f as a,i as o,l as s,m as c,o as l,p as u,r as d,u as f}from"./_v7-ePgP.js";const p=t(`config`,()=>{let t=e(`theme`,`sunset`),p=e(`autoSwitchTheme`,!1),m=e(`favDayTheme`,`nord`),h=e(`favNightTheme`,`sunset`),g=e(`proxiesPreviewType`,u.Auto),_=e(`proxiesOrderingType`,a.NATURAL),v=e(`proxiesDisplayMode`,i.CARD),y=e(`renderProxiesInTwoColumns`,!0),b=e(`hideUnAvailableProxies`,!1),x=e(`urlForLatencyTest`,`https://www.gstatic.com/generate_204`),S=e(`autoCloseConns`,!0),C=e(`latencyTestTimeoutDuration`,5e3),w=e(`iconHeight`,24),T=e(`iconMarginRight`,8),E=e(`autoSwitchEndpoint`,!1),D=e(`enableTwemoji`,!1),O=e(`sidebarExpanded`,!1),k=e(`useMobileBottomNav`,!0),A=e(`connectionsTableSize`,c.XS),j=e(`connectionsTableColumnVisibility`,o),M=e(`connectionsTableColumnOrder`,d),N=e(`logsTableSize`,c.XS),P=e(`logLevel`,f.Info),F=e(`logMaxRows`,l),I=e(`quickFilterRegex`,`DIRECT|direct|dns-out`),L=e(`clientSourceIPTags`,[]),R=e(`showNetworkTopology`,!1),z=n(()=>x.value.startsWith(`https`));return{curTheme:t,autoSwitchTheme:p,favDayTheme:m,favNightTheme:h,proxiesPreviewType:g,proxiesOrderingType:_,proxiesDisplayMode:v,renderProxiesInTwoColumns:y,hideUnAvailableProxies:b,urlForLatencyTest:x,autoCloseConns:S,latencyTestTimeoutDuration:C,iconHeight:w,iconMarginRight:T,autoSwitchEndpoint:E,enableTwemoji:D,sidebarExpanded:O,useMobileBottomNav:k,connectionsTableSize:A,connectionsTableColumnVisibility:j,connectionsTableColumnOrder:M,quickFilterRegex:I,logsTableSize:N,logLevel:P,logMaxRows:F,clientSourceIPTags:L,showNetworkTopology:R,isLatencyTestByHttps:z,latencyQualityMap:n(()=>z.value?s:r),tableSizeClassName:e=>({[c.XS]:`table-xs`,[c.SM]:`table-sm`,[c.MD]:`table-md`,[c.LG]:`table-lg`})[e]||`table-xs`,resetProxiesSettings:()=>{g.value=u.Auto,_.value=a.NATURAL,v.value=i.CARD,y.value=!0,b.value=!1,x.value=`https://www.gstatic.com/generate_204`,S.value=!0,C.value=5e3,w.value=24,T.value=8},resetXdConfig:()=>{p.value=!1,E.value=!1,D.value=!1,k.value=!0,m.value=`nord`,h.value=`sunset`,t.value=`sunset`}}});export{p as t}; \ No newline at end of file diff --git a/dashboard/public/_nuxt/B0oclHwM.js b/dashboard/public/_nuxt/CQvP8Dpa.js similarity index 96% rename from dashboard/public/_nuxt/B0oclHwM.js rename to dashboard/public/_nuxt/CQvP8Dpa.js index 143453c..1821a8e 100644 --- a/dashboard/public/_nuxt/B0oclHwM.js +++ b/dashboard/public/_nuxt/CQvP8Dpa.js @@ -1 +1 @@ -import{i as e,o as t,s as n,t as r}from"./B7D9IcDw.js";import{$ as i,C as a,Dt as o,Et as s,F as c,G as l,H as u,J as d,K as f,L as p,Ot as m,P as h,Q as g,R as _,U as v,V as y,W as b,X as ee,Z as x,_t as S,at as C,ct as w,dt as T,ft as E,j as D,kt as O,ot as k,pt as A,q as j,st as M,x as te,yt as N,z as P}from"./DOvCTup-.js";import{h as F}from"./_v7-ePgP.js";import{t as ne}from"./DaqTEuJW.js";import{F as I,I as L}from"./DkKkiaBA.js";import{a as R,i as z,n as B,o as V,r as H}from"./Cqvf2RiX.js";import{t as U}from"./DGEvsBiX.js";import{_ as W,h as G}from"./CZdbW3fS.js";import{t as re}from"./DdPOBIP_.js";import{t as ie}from"./NIr0cT37.js";var K={class:`relative`},q=[`data-theme`],J=[`data-theme`],Y=[`onClick`],X=i({__name:`ThemeSelector`,props:{modelValue:{}},emits:[`update:modelValue`],setup(e,{emit:t}){let n=e,r=t,i=N(null),a=N(null),c=N(!1),{floatingStyles:p}=B(i,a,{placement:`bottom-start`,middleware:[R(4),z(),V({padding:8}),{name:`sameWidth`,fn({rects:e,elements:t}){return Object.assign(t.floating.style,{width:`${e.reference.width}px`}),{}}}],whileElementsMounted:H});function h(){c.value=!c.value}function _(e){r(`update:modelValue`,e),c.value=!1}function b(e){let t=e.target;!i.value?.contains(t)&&!a.value?.contains(t)&&(c.value=!1)}return C(()=>{document.addEventListener(`click`,b)}),k(()=>{document.removeEventListener(`click`,b)}),(e,t)=>(M(),d(`div`,K,[l(`button`,{ref_key:`reference`,ref:i,class:`btn w-full justify-between btn-sm`,"data-theme":n.modelValue,onClick:y(h,[`stop`])},[l(`span`,null,O(n.modelValue),1),g(s(I),{class:o([`size-4 transition-transform`,{"rotate-180":s(c)}])},null,8,[`class`])],8,q),(M(),f(v,{to:`body`},[s(c)?(M(),d(`ul`,{key:0,ref_key:`floating`,ref:a,style:m(s(p)),class:`menu z-70 max-h-64 flex-nowrap overflow-y-auto rounded-box bg-base-300 p-2 shadow-lg`},[(M(!0),d(u,null,w(s(F),e=>(M(),d(`li`,{key:e,"data-theme":e,class:`rounded-btn`},[l(`button`,{class:o([`btn justify-between btn-xs`,{"btn-active":n.modelValue===e}]),onClick:t=>_(e)},[l(`span`,null,O(e),1),n.modelValue===e?(M(),f(s(L),{key:0,class:`size-4`})):j(``,!0)],10,Y)],8,J))),128))],4)):j(``,!0)]))]))}}),ae=Object.assign(X,{__name:`ThemeSelector`}),oe={class:`mx-auto flex h-full max-w-3xl flex-col gap-4 overflow-y-auto px-2 pb-2`},se={key:0,class:`flex h-64 items-center justify-center`},ce={class:`flex flex-col`},le={key:0,class:`flex flex-col overflow-auto p-4`},ue={class:`flex flex-col gap-4`},de={class:`grid grid-cols-3 gap-2`},fe={class:`fieldset`},pe={class:`label truncate`,for:`enable-allow-lan`},me={class:`fieldset`},he={class:`label truncate`,for:`mode`},ge=[`value`],_e={class:`fieldset`},ve={class:`label truncate`,for:`interface-name`},ye={class:`grid grid-cols-3 gap-2`},be={class:`fieldset`},xe={class:`label truncate`,for:`enable-tun-device`},Se={class:`fieldset`},Ce={class:`label truncate`,for:`tun-ip-stack`},we=[`value`],Te={class:`fieldset`},Ee={class:`label truncate`,for:`device-name`},De={class:`grid grid-cols-3 gap-2 sm:grid-cols-5`},Oe=[`for`],ke=[`id`,`onUpdate:modelValue`,`placeholder`,`onChange`],Ae={class:`grid grid-cols-2 gap-4 sm:grid-cols-2`},je={class:`grid grid-cols-1 gap-4 sm:grid-cols-2`},Me={class:`flex flex-col gap-2`},Ne={class:`flex flex-col items-center`},Pe={class:`flex flex-col items-center lg:hidden`},Fe={class:`flex flex-col items-center`},Ie={class:`h-10`},Le={class:`flex flex-col`},Re={class:`flex flex-col gap-2`},ze={class:`flex flex-col items-center`},Be={class:`h-10`},Ve={key:0,class:`flex flex-col gap-2`},He={class:`flex flex-col`},Ue={class:`flex flex-col`},We={class:`col-span-1 flex flex-col gap-2 sm:col-span-2`},Z=i({__name:`config`,setup(i){let{t:o}=te();D({title:b(()=>o(`config`))});let m=h(),v=ne(),C=a(),k=G(),F=`v${c().public.appVersion||`0.0.0`}`,{data:I,isLoading:L}=r(),{data:R,isLoading:z}=t(),B=e(),V=b(()=>R.value?.includes(`sing-box`)||!1),H=[`Mixed`,`gVisor`,`System`,`LWIP`],K=S({name:``,type:`A`}),q=N([]),J=n({mutationFn:async({name:e,type:t})=>(await W().get(`dns/query`,{searchParams:{name:e||`google.com`,type:t}}).json()).Answer?.map(({data:e})=>e)||[],onSuccess:e=>{q.value=e}});function Y(){K.name||(q.value=[])}function X(){J.mutate({name:K.name,type:K.type})}let Z=S({allowLan:!1,mode:`rule`,interfaceName:``,tunEnable:!1,tunStack:`Mixed`,tunDevice:``,mixedPort:0,port:0,socksPort:0,redirPort:0,tproxyPort:0}),Q=N([`rule`,`direct`,`global`]);T(I,e=>{e&&(Z.allowLan=e[`allow-lan`]||!1,Z.mode=e.mode||`rule`,Z.interfaceName=e[`interface-name`]||``,Z.tunEnable=e.tun?.enable||!1,Z.tunStack=e.tun?.stack||`Mixed`,Z.tunDevice=e.tun?.device||``,Z.mixedPort=e[`mixed-port`]||0,Z.port=e.port||0,Z.socksPort=e[`socks-port`]||0,Z.redirPort=e[`redir-port`]||0,Z.tproxyPort=e[`tproxy-port`]||0,Q.value=e[`mode-list`]||e.modes||[`rule`,`direct`,`global`])},{immediate:!0});let Ge=b(()=>[{label:o(`port`,{name:`Mixed`}),key:`mixedPort`,configKey:`mixed-port`},{label:o(`port`,{name:`HTTP`}),key:`port`,configKey:`port`},{label:o(`port`,{name:`Socks`}),key:`socksPort`,configKey:`socks-port`},{label:o(`port`,{name:`Redir`}),key:`redirPort`,configKey:`redir-port`},{label:o(`port`,{name:`TProxy`}),key:`tproxyPort`,configKey:`tproxy-port`}]);function Ke(e){return[`rule`,`direct`,`global`].includes(e)&&o(e)||e}function $(e,t){B.mutate({key:e,value:t})}function qe(){C.setSelectedEndpoint(``),m.push(`/setup`)}let Je=b(()=>L.value||z.value);return(e,t)=>{let n=re,r=ie,i=ae,a=U;return M(),d(`div`,oe,[s(Je)?(M(),d(`div`,se,[...t[21]||=[l(`span`,{class:`loading loading-lg loading-spinner`},null,-1)]])):(M(),d(u,{key:1},[s(V)?j(``,!0):(M(),d(u,{key:0},[g(n,{"with-divider":``},{default:E(()=>[x(O(s(o)(`dnsQuery`)),1)]),_:1}),l(`div`,ce,[l(`form`,{class:`join`,onSubmit:y(X,[`prevent`])},[A(l(`input`,{"onUpdate:modelValue":t[0]||=e=>s(K).name=e,type:`search`,class:`input join-item w-full`,placeholder:`google.com`,onInput:Y},null,544),[[P,s(K).name]]),A(l(`select`,{"onUpdate:modelValue":t[1]||=e=>s(K).type=e,class:`select join-item max-w-max`},[...t[22]||=[ee(``,14)]],512),[[_,s(K).type]]),g(r,{type:`submit`,class:`join-item max-w-max btn-primary`,loading:s(J).isPending.value},{default:E(()=>[x(O(s(o)(`dnsQuery`)),1)]),_:1},8,[`loading`])],32),s(q).length>0?(M(),d(`div`,le,[(M(!0),d(u,null,w(s(q),e=>(M(),d(`div`,{key:e,class:`py-2`},O(e),1))),128))])):j(``,!0)])],64)),g(n,{"with-divider":``},{default:E(()=>[x(O(s(o)(`coreConfig`)),1)]),_:1}),l(`div`,ue,[l(`div`,de,[l(`fieldset`,fe,[l(`label`,pe,O(s(o)(`allowLan`)),1),A(l(`input`,{id:`enable-allow-lan`,"onUpdate:modelValue":t[2]||=e=>s(Z).allowLan=e,type:`checkbox`,class:`toggle`,onChange:t[3]||=e=>$(`allow-lan`,s(Z).allowLan)},null,544),[[p,s(Z).allowLan]])]),l(`fieldset`,me,[l(`label`,he,O(s(o)(`runningMode`)),1),A(l(`select`,{id:`mode`,"onUpdate:modelValue":t[4]||=e=>s(Z).mode=e,class:`select`,onChange:t[5]||=e=>$(`mode`,s(Z).mode)},[(M(!0),d(u,null,w(s(Q),e=>(M(),d(`option`,{key:e,value:e},O(Ke(e)),9,ge))),128))],544),[[_,s(Z).mode]])]),l(`fieldset`,_e,[l(`label`,ve,O(s(o)(`outboundInterfaceName`)),1),A(l(`input`,{id:`interface-name`,"onUpdate:modelValue":t[6]||=e=>s(Z).interfaceName=e,type:`text`,class:`input min-w-0`,onChange:t[7]||=e=>$(`interface-name`,s(Z).interfaceName)},null,544),[[P,s(Z).interfaceName]])])]),s(V)?j(``,!0):(M(),d(u,{key:0},[l(`div`,ye,[l(`fieldset`,be,[l(`label`,xe,O(s(o)(`enableTunDevice`)),1),A(l(`input`,{id:`enable-tun-device`,"onUpdate:modelValue":t[8]||=e=>s(Z).tunEnable=e,type:`checkbox`,class:`toggle`,onChange:t[9]||=e=>$(`tun`,{enable:s(Z).tunEnable})},null,544),[[p,s(Z).tunEnable]])]),l(`fieldset`,Se,[l(`label`,Ce,O(s(o)(`tunModeStack`)),1),A(l(`select`,{id:`tun-ip-stack`,"onUpdate:modelValue":t[10]||=e=>s(Z).tunStack=e,class:`select`,onChange:t[11]||=e=>$(`tun`,{stack:s(Z).tunStack})},[(M(),d(u,null,w(H,e=>l(`option`,{key:e,value:e},O(e),9,we)),64))],544),[[_,s(Z).tunStack]])]),l(`fieldset`,Te,[l(`label`,Ee,O(s(o)(`tunDeviceName`)),1),A(l(`input`,{id:`device-name`,"onUpdate:modelValue":t[12]||=e=>s(Z).tunDevice=e,type:`text`,class:`input min-w-0`,onChange:t[13]||=e=>$(`tun`,{device:s(Z).tunDevice})},null,544),[[P,s(Z).tunDevice]])])]),l(`div`,De,[(M(!0),d(u,null,w(s(Ge),e=>(M(),d(`fieldset`,{key:e.key,class:`fieldset`},[l(`label`,{class:`label truncate`,for:e.key},O(e.label),9,Oe),A(l(`input`,{id:e.key,"onUpdate:modelValue":t=>s(Z)[e.key]=t,type:`number`,class:`input min-w-0`,placeholder:e.label,onChange:t=>$(e.configKey,s(Z)[e.key])},null,40,ke),[[P,s(Z)[e.key],void 0,{number:!0}]])]))),128))])],64)),l(`div`,Ae,[g(r,{class:`btn-primary`,loading:s(k).reloadingConfigFile.value,onClick:s(k).reloadConfigFileAPI},{default:E(()=>[x(O(s(o)(`reloadConfig`)),1)]),_:1},8,[`loading`,`onClick`]),g(r,{class:`btn-warning`,loading:s(k).restartingBackend.value,onClick:s(k).restartBackendAPI},{default:E(()=>[x(O(s(o)(`restartCore`)),1)]),_:1},8,[`loading`,`onClick`]),g(r,{class:`btn-accent`,loading:s(k).flushingFakeIPData.value,onClick:s(k).flushFakeIPDataAPI},{default:E(()=>[x(O(s(o)(`flushFakeIP`)),1)]),_:1},8,[`loading`,`onClick`]),g(r,{class:`btn-info`,loading:s(k).flushingDNSCache.value,onClick:s(k).flushDNSCacheAPI},{default:E(()=>[x(O(s(o)(`flushDNSCache`)),1)]),_:1},8,[`loading`,`onClick`]),s(V)?j(``,!0):(M(),f(r,{key:0,class:`btn-secondary`,loading:s(k).updatingGEODatabases.value,onClick:s(k).updateGEODatabasesAPI},{default:E(()=>[x(O(s(o)(`updateGEODatabases`)),1)]),_:1},8,[`loading`,`onClick`]))])]),g(n,{"with-divider":``},{default:E(()=>[x(O(s(o)(`xdConfig`)),1)]),_:1}),l(`div`,je,[l(`div`,Me,[l(`div`,Ne,[g(n,null,{default:E(()=>[x(O(s(o)(`enableTwemoji`)),1)]),_:1}),A(l(`input`,{"onUpdate:modelValue":t[14]||=e=>s(v).enableTwemoji=e,type:`checkbox`,class:`toggle`},null,512),[[p,s(v).enableTwemoji]])]),l(`div`,Pe,[g(n,null,{default:E(()=>[x(O(s(o)(`useMobileBottomNav`)),1)]),_:1}),A(l(`input`,{"onUpdate:modelValue":t[15]||=e=>s(v).useMobileBottomNav=e,type:`checkbox`,class:`toggle`},null,512),[[p,s(v).useMobileBottomNav]])]),l(`div`,Fe,[g(n,null,{default:E(()=>[x(O(s(o)(`autoSwitchEndpoint`)),1)]),_:1}),l(`div`,Ie,[A(l(`input`,{"onUpdate:modelValue":t[16]||=e=>s(v).autoSwitchEndpoint=e,type:`checkbox`,class:`toggle`},null,512),[[p,s(v).autoSwitchEndpoint]])])]),l(`div`,Le,[g(n,null,{default:E(()=>[x(O(s(C).currentEndpoint?.url),1)]),_:1}),g(r,{class:`btn-info`,onClick:qe},{default:E(()=>[x(O(s(o)(`switchEndpoint`)),1)]),_:1})])]),l(`div`,Re,[l(`div`,ze,[g(n,null,{default:E(()=>[x(O(s(o)(`autoSwitchTheme`)),1)]),_:1}),l(`div`,Be,[A(l(`input`,{"onUpdate:modelValue":t[17]||=e=>s(v).autoSwitchTheme=e,type:`checkbox`,class:`toggle`},null,512),[[p,s(v).autoSwitchTheme]])])]),s(v).autoSwitchTheme?(M(),d(`div`,Ve,[l(`div`,He,[g(n,null,{default:E(()=>[x(O(s(o)(`favDayTheme`)),1)]),_:1}),g(i,{modelValue:s(v).favDayTheme,"onUpdate:modelValue":t[18]||=e=>s(v).favDayTheme=e},null,8,[`modelValue`])]),l(`div`,Ue,[g(n,null,{default:E(()=>[x(O(s(o)(`favNightTheme`)),1)]),_:1}),g(i,{modelValue:s(v).favNightTheme,"onUpdate:modelValue":t[19]||=e=>s(v).favNightTheme=e},null,8,[`modelValue`])])])):j(``,!0)]),l(`div`,We,[g(r,{class:`btn-error`,onClick:t[20]||=e=>s(v).resetXdConfig()},{default:E(()=>[x(O(s(o)(`resetSettings`)),1)]),_:1})])]),g(n,{"with-divider":``},{default:E(()=>[x(O(s(o)(`version`)),1)]),_:1}),g(a,{"frontend-version":F,"backend-version":s(R)||``},null,8,[`backend-version`])],64))])}}});export{Z as default}; \ No newline at end of file +import{i as e,o as t,s as n,t as r}from"./ftm_ukHF.js";import{$ as i,C as a,Dt as o,Et as s,F as c,G as l,H as u,J as d,K as f,L as p,Ot as m,P as h,Q as g,R as _,U as v,V as y,W as b,X as ee,Z as x,_t as S,at as C,ct as w,dt as T,ft as E,j as D,kt as O,ot as k,pt as A,q as j,st as M,x as te,yt as N,z as P}from"./CxatB1L6.js";import{h as F}from"./_v7-ePgP.js";import{t as ne}from"./BxUO6acX.js";import{F as I,I as L}from"./BlFRk3uc.js";import{a as R,i as z,n as B,o as V,r as H}from"./B_unqUh-.js";import{t as U}from"./xQuiMcB-.js";import{_ as W,h as G}from"./DRJWd5jk.js";import{t as re}from"./B_hS8f_s.js";import{t as ie}from"./DP7SiUGW.js";var K={class:`relative`},q=[`data-theme`],J=[`data-theme`],Y=[`onClick`],X=i({__name:`ThemeSelector`,props:{modelValue:{}},emits:[`update:modelValue`],setup(e,{emit:t}){let n=e,r=t,i=N(null),a=N(null),c=N(!1),{floatingStyles:p}=B(i,a,{placement:`bottom-start`,middleware:[R(4),z(),V({padding:8}),{name:`sameWidth`,fn({rects:e,elements:t}){return Object.assign(t.floating.style,{width:`${e.reference.width}px`}),{}}}],whileElementsMounted:H});function h(){c.value=!c.value}function _(e){r(`update:modelValue`,e),c.value=!1}function b(e){let t=e.target;!i.value?.contains(t)&&!a.value?.contains(t)&&(c.value=!1)}return C(()=>{document.addEventListener(`click`,b)}),k(()=>{document.removeEventListener(`click`,b)}),(e,t)=>(M(),d(`div`,K,[l(`button`,{ref_key:`reference`,ref:i,class:`btn w-full justify-between btn-sm`,"data-theme":n.modelValue,onClick:y(h,[`stop`])},[l(`span`,null,O(n.modelValue),1),g(s(I),{class:o([`size-4 transition-transform`,{"rotate-180":s(c)}])},null,8,[`class`])],8,q),(M(),f(v,{to:`body`},[s(c)?(M(),d(`ul`,{key:0,ref_key:`floating`,ref:a,style:m(s(p)),class:`menu z-70 max-h-64 flex-nowrap overflow-y-auto rounded-box bg-base-300 p-2 shadow-lg`},[(M(!0),d(u,null,w(s(F),e=>(M(),d(`li`,{key:e,"data-theme":e,class:`rounded-btn`},[l(`button`,{class:o([`btn justify-between btn-xs`,{"btn-active":n.modelValue===e}]),onClick:t=>_(e)},[l(`span`,null,O(e),1),n.modelValue===e?(M(),f(s(L),{key:0,class:`size-4`})):j(``,!0)],10,Y)],8,J))),128))],4)):j(``,!0)]))]))}}),ae=Object.assign(X,{__name:`ThemeSelector`}),oe={class:`mx-auto flex h-full max-w-3xl flex-col gap-4 overflow-y-auto px-2 pb-2`},se={key:0,class:`flex h-64 items-center justify-center`},ce={class:`flex flex-col`},le={key:0,class:`flex flex-col overflow-auto p-4`},ue={class:`flex flex-col gap-4`},de={class:`grid grid-cols-3 gap-2`},fe={class:`fieldset`},pe={class:`label truncate`,for:`enable-allow-lan`},me={class:`fieldset`},he={class:`label truncate`,for:`mode`},ge=[`value`],_e={class:`fieldset`},ve={class:`label truncate`,for:`interface-name`},ye={class:`grid grid-cols-3 gap-2`},be={class:`fieldset`},xe={class:`label truncate`,for:`enable-tun-device`},Se={class:`fieldset`},Ce={class:`label truncate`,for:`tun-ip-stack`},we=[`value`],Te={class:`fieldset`},Ee={class:`label truncate`,for:`device-name`},De={class:`grid grid-cols-3 gap-2 sm:grid-cols-5`},Oe=[`for`],ke=[`id`,`onUpdate:modelValue`,`placeholder`,`onChange`],Ae={class:`grid grid-cols-2 gap-4 sm:grid-cols-2`},je={class:`grid grid-cols-1 gap-4 sm:grid-cols-2`},Me={class:`flex flex-col gap-2`},Ne={class:`flex flex-col items-center`},Pe={class:`flex flex-col items-center lg:hidden`},Fe={class:`flex flex-col items-center`},Ie={class:`h-10`},Le={class:`flex flex-col`},Re={class:`flex flex-col gap-2`},ze={class:`flex flex-col items-center`},Be={class:`h-10`},Ve={key:0,class:`flex flex-col gap-2`},He={class:`flex flex-col`},Ue={class:`flex flex-col`},We={class:`col-span-1 flex flex-col gap-2 sm:col-span-2`},Z=i({__name:`config`,setup(i){let{t:o}=te();D({title:b(()=>o(`config`))});let m=h(),v=ne(),C=a(),k=G(),F=`v${c().public.appVersion||`0.0.0`}`,{data:I,isLoading:L}=r(),{data:R,isLoading:z}=t(),B=e(),V=b(()=>R.value?.includes(`sing-box`)||!1),H=[`Mixed`,`gVisor`,`System`,`LWIP`],K=S({name:``,type:`A`}),q=N([]),J=n({mutationFn:async({name:e,type:t})=>(await W().get(`dns/query`,{searchParams:{name:e||`google.com`,type:t}}).json()).Answer?.map(({data:e})=>e)||[],onSuccess:e=>{q.value=e}});function Y(){K.name||(q.value=[])}function X(){J.mutate({name:K.name,type:K.type})}let Z=S({allowLan:!1,mode:`rule`,interfaceName:``,tunEnable:!1,tunStack:`Mixed`,tunDevice:``,mixedPort:0,port:0,socksPort:0,redirPort:0,tproxyPort:0}),Q=N([`rule`,`direct`,`global`]);T(I,e=>{e&&(Z.allowLan=e[`allow-lan`]||!1,Z.mode=e.mode||`rule`,Z.interfaceName=e[`interface-name`]||``,Z.tunEnable=e.tun?.enable||!1,Z.tunStack=e.tun?.stack||`Mixed`,Z.tunDevice=e.tun?.device||``,Z.mixedPort=e[`mixed-port`]||0,Z.port=e.port||0,Z.socksPort=e[`socks-port`]||0,Z.redirPort=e[`redir-port`]||0,Z.tproxyPort=e[`tproxy-port`]||0,Q.value=e[`mode-list`]||e.modes||[`rule`,`direct`,`global`])},{immediate:!0});let Ge=b(()=>[{label:o(`port`,{name:`Mixed`}),key:`mixedPort`,configKey:`mixed-port`},{label:o(`port`,{name:`HTTP`}),key:`port`,configKey:`port`},{label:o(`port`,{name:`Socks`}),key:`socksPort`,configKey:`socks-port`},{label:o(`port`,{name:`Redir`}),key:`redirPort`,configKey:`redir-port`},{label:o(`port`,{name:`TProxy`}),key:`tproxyPort`,configKey:`tproxy-port`}]);function Ke(e){return[`rule`,`direct`,`global`].includes(e)&&o(e)||e}function $(e,t){B.mutate({key:e,value:t})}function qe(){C.setSelectedEndpoint(``),m.push(`/setup`)}let Je=b(()=>L.value||z.value);return(e,t)=>{let n=re,r=ie,i=ae,a=U;return M(),d(`div`,oe,[s(Je)?(M(),d(`div`,se,[...t[21]||=[l(`span`,{class:`loading loading-lg loading-spinner`},null,-1)]])):(M(),d(u,{key:1},[s(V)?j(``,!0):(M(),d(u,{key:0},[g(n,{"with-divider":``},{default:E(()=>[x(O(s(o)(`dnsQuery`)),1)]),_:1}),l(`div`,ce,[l(`form`,{class:`join`,onSubmit:y(X,[`prevent`])},[A(l(`input`,{"onUpdate:modelValue":t[0]||=e=>s(K).name=e,type:`search`,class:`input join-item w-full`,placeholder:`google.com`,onInput:Y},null,544),[[P,s(K).name]]),A(l(`select`,{"onUpdate:modelValue":t[1]||=e=>s(K).type=e,class:`select join-item max-w-max`},[...t[22]||=[ee(``,14)]],512),[[_,s(K).type]]),g(r,{type:`submit`,class:`join-item max-w-max btn-primary`,loading:s(J).isPending.value},{default:E(()=>[x(O(s(o)(`dnsQuery`)),1)]),_:1},8,[`loading`])],32),s(q).length>0?(M(),d(`div`,le,[(M(!0),d(u,null,w(s(q),e=>(M(),d(`div`,{key:e,class:`py-2`},O(e),1))),128))])):j(``,!0)])],64)),g(n,{"with-divider":``},{default:E(()=>[x(O(s(o)(`coreConfig`)),1)]),_:1}),l(`div`,ue,[l(`div`,de,[l(`fieldset`,fe,[l(`label`,pe,O(s(o)(`allowLan`)),1),A(l(`input`,{id:`enable-allow-lan`,"onUpdate:modelValue":t[2]||=e=>s(Z).allowLan=e,type:`checkbox`,class:`toggle`,onChange:t[3]||=e=>$(`allow-lan`,s(Z).allowLan)},null,544),[[p,s(Z).allowLan]])]),l(`fieldset`,me,[l(`label`,he,O(s(o)(`runningMode`)),1),A(l(`select`,{id:`mode`,"onUpdate:modelValue":t[4]||=e=>s(Z).mode=e,class:`select`,onChange:t[5]||=e=>$(`mode`,s(Z).mode)},[(M(!0),d(u,null,w(s(Q),e=>(M(),d(`option`,{key:e,value:e},O(Ke(e)),9,ge))),128))],544),[[_,s(Z).mode]])]),l(`fieldset`,_e,[l(`label`,ve,O(s(o)(`outboundInterfaceName`)),1),A(l(`input`,{id:`interface-name`,"onUpdate:modelValue":t[6]||=e=>s(Z).interfaceName=e,type:`text`,class:`input min-w-0`,onChange:t[7]||=e=>$(`interface-name`,s(Z).interfaceName)},null,544),[[P,s(Z).interfaceName]])])]),s(V)?j(``,!0):(M(),d(u,{key:0},[l(`div`,ye,[l(`fieldset`,be,[l(`label`,xe,O(s(o)(`enableTunDevice`)),1),A(l(`input`,{id:`enable-tun-device`,"onUpdate:modelValue":t[8]||=e=>s(Z).tunEnable=e,type:`checkbox`,class:`toggle`,onChange:t[9]||=e=>$(`tun`,{enable:s(Z).tunEnable})},null,544),[[p,s(Z).tunEnable]])]),l(`fieldset`,Se,[l(`label`,Ce,O(s(o)(`tunModeStack`)),1),A(l(`select`,{id:`tun-ip-stack`,"onUpdate:modelValue":t[10]||=e=>s(Z).tunStack=e,class:`select`,onChange:t[11]||=e=>$(`tun`,{stack:s(Z).tunStack})},[(M(),d(u,null,w(H,e=>l(`option`,{key:e,value:e},O(e),9,we)),64))],544),[[_,s(Z).tunStack]])]),l(`fieldset`,Te,[l(`label`,Ee,O(s(o)(`tunDeviceName`)),1),A(l(`input`,{id:`device-name`,"onUpdate:modelValue":t[12]||=e=>s(Z).tunDevice=e,type:`text`,class:`input min-w-0`,onChange:t[13]||=e=>$(`tun`,{device:s(Z).tunDevice})},null,544),[[P,s(Z).tunDevice]])])]),l(`div`,De,[(M(!0),d(u,null,w(s(Ge),e=>(M(),d(`fieldset`,{key:e.key,class:`fieldset`},[l(`label`,{class:`label truncate`,for:e.key},O(e.label),9,Oe),A(l(`input`,{id:e.key,"onUpdate:modelValue":t=>s(Z)[e.key]=t,type:`number`,class:`input min-w-0`,placeholder:e.label,onChange:t=>$(e.configKey,s(Z)[e.key])},null,40,ke),[[P,s(Z)[e.key],void 0,{number:!0}]])]))),128))])],64)),l(`div`,Ae,[g(r,{class:`btn-primary`,loading:s(k).reloadingConfigFile.value,onClick:s(k).reloadConfigFileAPI},{default:E(()=>[x(O(s(o)(`reloadConfig`)),1)]),_:1},8,[`loading`,`onClick`]),g(r,{class:`btn-warning`,loading:s(k).restartingBackend.value,onClick:s(k).restartBackendAPI},{default:E(()=>[x(O(s(o)(`restartCore`)),1)]),_:1},8,[`loading`,`onClick`]),g(r,{class:`btn-accent`,loading:s(k).flushingFakeIPData.value,onClick:s(k).flushFakeIPDataAPI},{default:E(()=>[x(O(s(o)(`flushFakeIP`)),1)]),_:1},8,[`loading`,`onClick`]),g(r,{class:`btn-info`,loading:s(k).flushingDNSCache.value,onClick:s(k).flushDNSCacheAPI},{default:E(()=>[x(O(s(o)(`flushDNSCache`)),1)]),_:1},8,[`loading`,`onClick`]),s(V)?j(``,!0):(M(),f(r,{key:0,class:`btn-secondary`,loading:s(k).updatingGEODatabases.value,onClick:s(k).updateGEODatabasesAPI},{default:E(()=>[x(O(s(o)(`updateGEODatabases`)),1)]),_:1},8,[`loading`,`onClick`]))])]),g(n,{"with-divider":``},{default:E(()=>[x(O(s(o)(`xdConfig`)),1)]),_:1}),l(`div`,je,[l(`div`,Me,[l(`div`,Ne,[g(n,null,{default:E(()=>[x(O(s(o)(`enableTwemoji`)),1)]),_:1}),A(l(`input`,{"onUpdate:modelValue":t[14]||=e=>s(v).enableTwemoji=e,type:`checkbox`,class:`toggle`},null,512),[[p,s(v).enableTwemoji]])]),l(`div`,Pe,[g(n,null,{default:E(()=>[x(O(s(o)(`useMobileBottomNav`)),1)]),_:1}),A(l(`input`,{"onUpdate:modelValue":t[15]||=e=>s(v).useMobileBottomNav=e,type:`checkbox`,class:`toggle`},null,512),[[p,s(v).useMobileBottomNav]])]),l(`div`,Fe,[g(n,null,{default:E(()=>[x(O(s(o)(`autoSwitchEndpoint`)),1)]),_:1}),l(`div`,Ie,[A(l(`input`,{"onUpdate:modelValue":t[16]||=e=>s(v).autoSwitchEndpoint=e,type:`checkbox`,class:`toggle`},null,512),[[p,s(v).autoSwitchEndpoint]])])]),l(`div`,Le,[g(n,null,{default:E(()=>[x(O(s(C).currentEndpoint?.url),1)]),_:1}),g(r,{class:`btn-info`,onClick:qe},{default:E(()=>[x(O(s(o)(`switchEndpoint`)),1)]),_:1})])]),l(`div`,Re,[l(`div`,ze,[g(n,null,{default:E(()=>[x(O(s(o)(`autoSwitchTheme`)),1)]),_:1}),l(`div`,Be,[A(l(`input`,{"onUpdate:modelValue":t[17]||=e=>s(v).autoSwitchTheme=e,type:`checkbox`,class:`toggle`},null,512),[[p,s(v).autoSwitchTheme]])])]),s(v).autoSwitchTheme?(M(),d(`div`,Ve,[l(`div`,He,[g(n,null,{default:E(()=>[x(O(s(o)(`favDayTheme`)),1)]),_:1}),g(i,{modelValue:s(v).favDayTheme,"onUpdate:modelValue":t[18]||=e=>s(v).favDayTheme=e},null,8,[`modelValue`])]),l(`div`,Ue,[g(n,null,{default:E(()=>[x(O(s(o)(`favNightTheme`)),1)]),_:1}),g(i,{modelValue:s(v).favNightTheme,"onUpdate:modelValue":t[19]||=e=>s(v).favNightTheme=e},null,8,[`modelValue`])])])):j(``,!0)]),l(`div`,We,[g(r,{class:`btn-error`,onClick:t[20]||=e=>s(v).resetXdConfig()},{default:E(()=>[x(O(s(o)(`resetSettings`)),1)]),_:1})])]),g(n,{"with-divider":``},{default:E(()=>[x(O(s(o)(`version`)),1)]),_:1}),g(a,{"frontend-version":F,"backend-version":s(R)||``},null,8,[`backend-version`])],64))])}}});export{Z as default}; \ No newline at end of file diff --git a/dashboard/public/_nuxt/jvVcV7Ea.js b/dashboard/public/_nuxt/ClreHnHz.js similarity index 92% rename from dashboard/public/_nuxt/jvVcV7Ea.js rename to dashboard/public/_nuxt/ClreHnHz.js index 03c6759..8234a90 100644 --- a/dashboard/public/_nuxt/jvVcV7Ea.js +++ b/dashboard/public/_nuxt/ClreHnHz.js @@ -1 +1 @@ -import{$ as e,C as t,Et as n,G as r,J as i,P as a,Q as o,S as s,W as c,Z as l,at as u,ft as d,j as f,kt as p,st as m,x as h}from"./DOvCTup-.js";var g={class:`flex h-full items-center justify-center`},_={class:`text-center`},v={class:`mt-8 flex justify-center gap-4`},y=e({__name:`index`,setup(e){let{t:y}=h();f({title:c(()=>y(`home`))});let b=t(),x=a();return u(()=>{b.currentEndpoint&&x.replace(`/overview`)}),(e,t)=>{let a=s;return m(),i(`div`,g,[r(`div`,_,[t[0]||=r(`h1`,{class:`text-4xl font-bold`},`MetaCubeXD`,-1),t[1]||=r(`p`,{class:`mt-4 text-base-content/70`},` Mihomo Dashboard, The Official One `,-1),r(`div`,v,[o(a,{to:`/setup`,class:`btn btn-primary`},{default:d(()=>[l(p(n(y)(`setup`)),1)]),_:1}),o(a,{to:`/overview`,class:`btn btn-outline`},{default:d(()=>[l(p(n(y)(`overview`)),1)]),_:1})])])])}}});export{y as default}; \ No newline at end of file +import{$ as e,C as t,Et as n,G as r,J as i,P as a,Q as o,S as s,W as c,Z as l,at as u,ft as d,j as f,kt as p,st as m,x as h}from"./CxatB1L6.js";var g={class:`flex h-full items-center justify-center`},_={class:`text-center`},v={class:`mt-8 flex justify-center gap-4`},y=e({__name:`index`,setup(e){let{t:y}=h();f({title:c(()=>y(`home`))});let b=t(),x=a();return u(()=>{b.currentEndpoint&&x.replace(`/overview`)}),(e,t)=>{let a=s;return m(),i(`div`,g,[r(`div`,_,[t[0]||=r(`h1`,{class:`text-4xl font-bold`},`MetaCubeXD`,-1),t[1]||=r(`p`,{class:`mt-4 text-base-content/70`},` Mihomo Dashboard, The Official One `,-1),r(`div`,v,[o(a,{to:`/setup`,class:`btn btn-primary`},{default:d(()=>[l(p(n(y)(`setup`)),1)]),_:1}),o(a,{to:`/overview`,class:`btn btn-outline`},{default:d(()=>[l(p(n(y)(`overview`)),1)]),_:1})])])])}}});export{y as default}; \ No newline at end of file diff --git a/dashboard/public/_nuxt/Do-mkOlF.js b/dashboard/public/_nuxt/CrrxsLhe.js similarity index 98% rename from dashboard/public/_nuxt/Do-mkOlF.js rename to dashboard/public/_nuxt/CrrxsLhe.js index e2a832e..4741555 100644 --- a/dashboard/public/_nuxt/Do-mkOlF.js +++ b/dashboard/public/_nuxt/CrrxsLhe.js @@ -1 +1 @@ -import{G as e,J as t,j as n,kt as r,st as i}from"./DOvCTup-.js";import{t as a}from"./4Us7Cdat.js";var o={class:`antialiased bg-white dark:bg-[#020420] dark:text-white font-sans grid min-h-screen overflow-hidden place-content-center text-[#020420] tracking-wide`},s={class:`max-w-520px text-center`},c=[`textContent`],l=[`textContent`],u=[`textContent`],d=a({__name:`error-500`,props:{appName:{type:String,default:`Nuxt`},statusCode:{type:Number,default:500},statusMessage:{type:String,default:`Internal server error`},description:{type:String,default:`This page is temporarily unavailable.`},refresh:{type:String,default:`Refresh this page`}},setup(a){let d=a;return n({title:`${d.statusCode} - ${d.statusMessage} | ${d.appName}`,script:[{innerHTML:`!function(){const e=document.createElement("link").relList;if(!(e&&e.supports&&e.supports("modulepreload"))){for(const e of document.querySelectorAll('link[rel="modulepreload"]'))r(e);new MutationObserver(e=>{for(const o of e)if("childList"===o.type)for(const e of o.addedNodes)"LINK"===e.tagName&&"modulepreload"===e.rel&&r(e)}).observe(document,{childList:!0,subtree:!0})}function r(e){if(e.ep)return;e.ep=!0;const r=function(e){const r={};return e.integrity&&(r.integrity=e.integrity),e.referrerPolicy&&(r.referrerPolicy=e.referrerPolicy),"use-credentials"===e.crossOrigin?r.credentials="include":"anonymous"===e.crossOrigin?r.credentials="omit":r.credentials="same-origin",r}(e);fetch(e.href,r)}}();`}],style:[{innerHTML:`*,:after,:before{border-color:var(--un-default-border-color,#e5e7eb);border-style:solid;border-width:0;box-sizing:border-box}:after,:before{--un-content:""}html{line-height:1.5;-webkit-text-size-adjust:100%;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-feature-settings:normal;font-variation-settings:normal;-moz-tab-size:4;tab-size:4;-webkit-tap-highlight-color:transparent}body{line-height:inherit;margin:0}h1,h2{font-size:inherit;font-weight:inherit}h1,h2,p{margin:0}*,:after,:before{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 transparent;--un-ring-shadow:0 0 transparent;--un-shadow-inset: ;--un-shadow:0 0 transparent;--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgba(147,197,253,.5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }`}]}),(n,d)=>(i(),t(`div`,o,[e(`div`,s,[e(`h1`,{class:`font-semibold leading-none mb-4 sm:text-[110px] tabular-nums text-[80px]`,textContent:r(a.statusCode)},null,8,c),e(`h2`,{class:`font-semibold mb-2 sm:text-3xl text-2xl`,textContent:r(a.statusMessage)},null,8,l),e(`p`,{class:`mb-4 px-2 text-[#64748B] text-md`,textContent:r(a.description)},null,8,u)])]))}},[[`__scopeId`,`data-v-be671369`]]);export{d as default}; \ No newline at end of file +import{G as e,J as t,j as n,kt as r,st as i}from"./CxatB1L6.js";import{t as a}from"./4Us7Cdat.js";var o={class:`antialiased bg-white dark:bg-[#020420] dark:text-white font-sans grid min-h-screen overflow-hidden place-content-center text-[#020420] tracking-wide`},s={class:`max-w-520px text-center`},c=[`textContent`],l=[`textContent`],u=[`textContent`],d=a({__name:`error-500`,props:{appName:{type:String,default:`Nuxt`},statusCode:{type:Number,default:500},statusMessage:{type:String,default:`Internal server error`},description:{type:String,default:`This page is temporarily unavailable.`},refresh:{type:String,default:`Refresh this page`}},setup(a){let d=a;return n({title:`${d.statusCode} - ${d.statusMessage} | ${d.appName}`,script:[{innerHTML:`!function(){const e=document.createElement("link").relList;if(!(e&&e.supports&&e.supports("modulepreload"))){for(const e of document.querySelectorAll('link[rel="modulepreload"]'))r(e);new MutationObserver(e=>{for(const o of e)if("childList"===o.type)for(const e of o.addedNodes)"LINK"===e.tagName&&"modulepreload"===e.rel&&r(e)}).observe(document,{childList:!0,subtree:!0})}function r(e){if(e.ep)return;e.ep=!0;const r=function(e){const r={};return e.integrity&&(r.integrity=e.integrity),e.referrerPolicy&&(r.referrerPolicy=e.referrerPolicy),"use-credentials"===e.crossOrigin?r.credentials="include":"anonymous"===e.crossOrigin?r.credentials="omit":r.credentials="same-origin",r}(e);fetch(e.href,r)}}();`}],style:[{innerHTML:`*,:after,:before{border-color:var(--un-default-border-color,#e5e7eb);border-style:solid;border-width:0;box-sizing:border-box}:after,:before{--un-content:""}html{line-height:1.5;-webkit-text-size-adjust:100%;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-feature-settings:normal;font-variation-settings:normal;-moz-tab-size:4;tab-size:4;-webkit-tap-highlight-color:transparent}body{line-height:inherit;margin:0}h1,h2{font-size:inherit;font-weight:inherit}h1,h2,p{margin:0}*,:after,:before{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 transparent;--un-ring-shadow:0 0 transparent;--un-shadow-inset: ;--un-shadow:0 0 transparent;--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgba(147,197,253,.5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }`}]}),(n,d)=>(i(),t(`div`,o,[e(`div`,s,[e(`h1`,{class:`font-semibold leading-none mb-4 sm:text-[110px] tabular-nums text-[80px]`,textContent:r(a.statusCode)},null,8,c),e(`h2`,{class:`font-semibold mb-2 sm:text-3xl text-2xl`,textContent:r(a.statusMessage)},null,8,l),e(`p`,{class:`mb-4 px-2 text-[#64748B] text-md`,textContent:r(a.description)},null,8,u)])]))}},[[`__scopeId`,`data-v-be671369`]]);export{d as default}; \ No newline at end of file diff --git a/dashboard/public/_nuxt/DOvCTup-.js b/dashboard/public/_nuxt/CxatB1L6.js similarity index 99% rename from dashboard/public/_nuxt/DOvCTup-.js rename to dashboard/public/_nuxt/CxatB1L6.js index ab6dd48..7c59d6a 100644 --- a/dashboard/public/_nuxt/DOvCTup-.js +++ b/dashboard/public/_nuxt/CxatB1L6.js @@ -1,6 +1,6 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./Cbl-HvWy.js","./NIr0cT37.js","./DdPOBIP_.js","./CJ3kh3xA.js","./DkKkiaBA.js","./_v7-ePgP.js","./DaqTEuJW.js","./BrukVZU9.js","./CAfhdv_2.js","./CZdbW3fS.js","./CDMImveV.js","./B7D9IcDw.js","./BpDbz5Be.js","./CNeVT8bc.js","./B0oclHwM.js","./DGEvsBiX.js","./Cqvf2RiX.js","./C_E54F3Z.js","./BlP2MkkZ.js","./4rydX2E6.js","./C0BTvwsH.js","./BLyUHixQ.js","./BrGTwNTv.js","./CryL-Vnb.js","./BeSoyRdk.js","./1oRWw4hi.js","./4Us7Cdat.js","./error-404.ajhBH0J0.css","./Do-mkOlF.js","./error-500.CkMssXr1.css"])))=>i.map(i=>d[i]); +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./BcCfHRGF.js","./DP7SiUGW.js","./B_hS8f_s.js","./D4Jc__Wf.js","./BlFRk3uc.js","./_v7-ePgP.js","./BxUO6acX.js","./DimqLJ3H.js","./FyhXtq99.js","./DRJWd5jk.js","./CDMImveV.js","./ftm_ukHF.js","./D8VGDxpn.js","./_wGd0uNo.js","./CQvP8Dpa.js","./xQuiMcB-.js","./B_unqUh-.js","./--pNTB9Q.js","./4_-5c3is.js","./Dnb7sY_Q.js","./eu6oZm2g.js","./B3gVVFQn.js","./BoGeCRwk.js","./DWyhZVzp.js","./0ZQUESsj.js","./B5nozDwk.js","./4Us7Cdat.js","./error-404.ajhBH0J0.css","./CrrxsLhe.js","./error-500.CkMssXr1.css"])))=>i.map(i=>d[i]); var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),s=(e,n)=>{let r={};for(var i in e)t(r,i,{get:e[i],enumerable:!0});return n&&t(r,Symbol.toStringTag,{value:`Module`}),r},c=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;li[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},l=(n,r,a)=>(a=n==null?{}:e(i(n)),c(r||!n||!n.__esModule?t(a,`default`,{value:n,enumerable:!0}):a,n));(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),e.crossOrigin===`use-credentials`?t.credentials=`include`:e.crossOrigin===`anonymous`?t.credentials=`omit`:t.credentials=`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();function u(e){let t=Object.create(null);for(let n of e.split(`,`))t[n]=1;return e=>e in t}var d={},f=[],p=()=>{},m=()=>!1,h=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),g=e=>e.startsWith(`onUpdate:`),_=Object.assign,v=(e,t)=>{let n=e.indexOf(t);n>-1&&e.splice(n,1)},y=Object.prototype.hasOwnProperty,b=(e,t)=>y.call(e,t),x=Array.isArray,S=e=>ne(e)===`[object Map]`,C=e=>ne(e)===`[object Set]`,w=e=>ne(e)===`[object Date]`,T=e=>ne(e)===`[object RegExp]`,E=e=>typeof e==`function`,D=e=>typeof e==`string`,O=e=>typeof e==`symbol`,k=e=>typeof e==`object`&&!!e,ee=e=>(k(e)||E(e))&&E(e.then)&&E(e.catch),te=Object.prototype.toString,ne=e=>te.call(e),re=e=>ne(e).slice(8,-1),ie=e=>ne(e)===`[object Object]`,ae=e=>D(e)&&e!==`NaN`&&e[0]!==`-`&&``+parseInt(e,10)===e,oe=u(`,key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted`),se=e=>{let t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))},ce=/-\w/g,A=se(e=>e.replace(ce,e=>e.slice(1).toUpperCase())),le=/\B([A-Z])/g,j=se(e=>e.replace(le,`-$1`).toLowerCase()),ue=se(e=>e.charAt(0).toUpperCase()+e.slice(1)),de=se(e=>e?`on${ue(e)}`:``),fe=(e,t)=>!Object.is(e,t),pe=(e,...t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},he=e=>{let t=parseFloat(e);return isNaN(t)?e:t},ge=e=>{let t=D(e)?Number(e):NaN;return isNaN(t)?e:t},_e,ve=()=>_e||=typeof globalThis<`u`?globalThis:typeof self<`u`?self:typeof window<`u`?window:typeof global<`u`?global:{},ye=u(`Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console,Error,Symbol`);function be(e){if(x(e)){let t={};for(let n=0;n{if(e){let n=e.split(Se);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function M(e){let t=``;if(D(e))t=e;else if(x(e))for(let n=0;nAe(e,t))}var Me=e=>!!(e&&e.__v_isRef===!0),Ne=e=>D(e)?e:e==null?``:x(e)||k(e)&&(e.toString===te||!E(e.toString))?Me(e)?Ne(e.value):JSON.stringify(e,Pe,2):String(e),Pe=(e,t)=>Me(t)?Pe(e,t.value):S(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((e,[t,n],r)=>(e[Fe(t,r)+` =>`]=n,e),{})}:C(t)?{[`Set(${t.size})`]:[...t.values()].map(e=>Fe(e))}:O(t)?Fe(t):k(t)&&!x(t)&&!ie(t)?String(t):t,Fe=(e,t=``)=>O(e)?`Symbol(${e.description??t})`:e;function Ie(e){return e==null?`initial`:typeof e==`string`?e===``?` `:e:String(e)}var Le,Re=class{constructor(e=!1){this.detached=e,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=Le,!e&&Le&&(this.index=(Le.scopes||=[]).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let e,t;if(this.scopes)for(e=0,t=this.scopes.length;e0&&--this._on===0&&(Le=this.prevScope,this.prevScope=void 0)}stop(e){if(this._active){this._active=!1;let t,n;for(t=0,n=this.effects.length;t0)return;if(Ke){let e=Ke;for(Ke=void 0;e;){let t=e.next;e.next=void 0,e.flags&=-9,e=t}}let e;for(;Ge;){let t=Ge;for(Ge=void 0;t;){let n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(t){e||=t}t=n}}if(e)throw e}function Xe(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Ze(e){let t,n=e.depsTail,r=n;for(;r;){let e=r.prevDep;r.version===-1?(r===n&&(n=e),et(r),tt(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=e}e.deps=t,e.depsTail=n}function Qe(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&($e(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function $e(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===lt)||(e.globalVersion=lt,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Qe(e))))return;e.flags|=2;let t=e.dep,n=N,r=it;N=e,it=!0;try{Xe(e);let n=e.fn(e._value);(t.version===0||fe(n,e._value))&&(e.flags|=128,e._value=n,t.version++)}catch(e){throw t.version++,e}finally{N=n,it=r,Ze(e),e.flags&=-3}}function et(e,t=!1){let{dep:n,prevSub:r,nextSub:i}=e;if(r&&(r.nextSub=i,e.prevSub=void 0),i&&(i.prevSub=r,e.nextSub=void 0),n.subs===e&&(n.subs=r,!r&&n.computed)){n.computed.flags&=-5;for(let e=n.computed.deps;e;e=e.nextDep)et(e,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function tt(e){let{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}function nt(e,t){e.effect instanceof Ue&&(e=e.effect.fn);let n=new Ue(e);t&&_(n,t);try{n.run()}catch(e){throw n.stop(),e}let r=n.run.bind(n);return r.effect=n,r}function rt(e){e.effect.stop()}var it=!0,at=[];function ot(){at.push(it),it=!1}function st(){let e=at.pop();it=e===void 0?!0:e}function ct(e){let{cleanup:t}=e;if(e.cleanup=void 0,t){let e=N;N=void 0;try{t()}finally{N=e}}}var lt=0,ut=class{constructor(e,t){this.sub=e,this.dep=t,this.version=t.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}},dt=class{constructor(e){this.computed=e,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(e){if(!N||!it||N===this.computed)return;let t=this.activeLink;if(t===void 0||t.sub!==N)t=this.activeLink=new ut(N,this),N.deps?(t.prevDep=N.depsTail,N.depsTail.nextDep=t,N.depsTail=t):N.deps=N.depsTail=t,ft(t);else if(t.version===-1&&(t.version=this.version,t.nextDep)){let e=t.nextDep;e.prevDep=t.prevDep,t.prevDep&&(t.prevDep.nextDep=e),t.prevDep=N.depsTail,t.nextDep=void 0,N.depsTail.nextDep=t,N.depsTail=t,N.deps===t&&(N.deps=e)}return t}trigger(e){this.version++,lt++,this.notify(e)}notify(e){Je();try{for(let e=this.subs;e;e=e.prevSub)e.sub.notify()&&e.sub.dep.notify()}finally{Ye()}}};function ft(e){if(e.dep.sc++,e.sub.flags&4){let t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let e=t.deps;e;e=e.nextDep)ft(e)}let n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}var pt=new WeakMap,mt=Symbol(``),ht=Symbol(``),gt=Symbol(``);function _t(e,t,n){if(it&&N){let t=pt.get(e);t||pt.set(e,t=new Map);let r=t.get(n);r||(t.set(n,r=new dt),r.map=t,r.key=n),r.track()}}function vt(e,t,n,r,i,a){let o=pt.get(e);if(!o){lt++;return}let s=e=>{e&&e.trigger()};if(Je(),t===`clear`)o.forEach(s);else{let i=x(e),a=i&&ae(n);if(i&&n===`length`){let e=Number(r);o.forEach((t,n)=>{(n===`length`||n===gt||!O(n)&&n>=e)&&s(t)})}else switch((n!==void 0||o.has(void 0))&&s(o.get(n)),a&&s(o.get(gt)),t){case`add`:i?a&&s(o.get(`length`)):(s(o.get(mt)),S(e)&&s(o.get(ht)));break;case`delete`:i||(s(o.get(mt)),S(e)&&s(o.get(ht)));break;case`set`:S(e)&&s(o.get(mt));break}}Ye()}function yt(e,t){let n=pt.get(e);return n&&n.get(t)}function bt(e){let t=P(e);return t===e?t:(_t(t,`iterate`,gt),un(e)?t:t.map(pn))}function xt(e){return _t(e=P(e),`iterate`,gt),e}function St(e,t){return ln(e)?cn(e)?mn(pn(t)):mn(t):pn(t)}var Ct={__proto__:null,[Symbol.iterator](){return wt(this,Symbol.iterator,e=>St(this,e))},concat(...e){return bt(this).concat(...e.map(e=>x(e)?bt(e):e))},entries(){return wt(this,`entries`,e=>(e[1]=St(this,e[1]),e))},every(e,t){return Et(this,`every`,e,t,void 0,arguments)},filter(e,t){return Et(this,`filter`,e,t,e=>e.map(e=>St(this,e)),arguments)},find(e,t){return Et(this,`find`,e,t,e=>St(this,e),arguments)},findIndex(e,t){return Et(this,`findIndex`,e,t,void 0,arguments)},findLast(e,t){return Et(this,`findLast`,e,t,e=>St(this,e),arguments)},findLastIndex(e,t){return Et(this,`findLastIndex`,e,t,void 0,arguments)},forEach(e,t){return Et(this,`forEach`,e,t,void 0,arguments)},includes(...e){return Ot(this,`includes`,e)},indexOf(...e){return Ot(this,`indexOf`,e)},join(e){return bt(this).join(e)},lastIndexOf(...e){return Ot(this,`lastIndexOf`,e)},map(e,t){return Et(this,`map`,e,t,void 0,arguments)},pop(){return kt(this,`pop`)},push(...e){return kt(this,`push`,e)},reduce(e,...t){return Dt(this,`reduce`,e,t)},reduceRight(e,...t){return Dt(this,`reduceRight`,e,t)},shift(){return kt(this,`shift`)},some(e,t){return Et(this,`some`,e,t,void 0,arguments)},splice(...e){return kt(this,`splice`,e)},toReversed(){return bt(this).toReversed()},toSorted(e){return bt(this).toSorted(e)},toSpliced(...e){return bt(this).toSpliced(...e)},unshift(...e){return kt(this,`unshift`,e)},values(){return wt(this,`values`,e=>St(this,e))}};function wt(e,t,n){let r=xt(e),i=r[t]();return r!==e&&!un(e)&&(i._next=i.next,i.next=()=>{let e=i._next();return e.done||(e.value=n(e.value)),e}),i}var Tt=Array.prototype;function Et(e,t,n,r,i,a){let o=xt(e),s=o!==e&&!un(e),c=o[t];if(c!==Tt[t]){let t=c.apply(e,a);return s?pn(t):t}let l=n;o!==e&&(s?l=function(t,r){return n.call(this,St(e,t),r,e)}:n.length>2&&(l=function(t,r){return n.call(this,t,r,e)}));let u=c.call(o,l,r);return s&&i?i(u):u}function Dt(e,t,n,r){let i=xt(e),a=n;return i!==e&&(un(e)?n.length>3&&(a=function(t,r,i){return n.call(this,t,r,i,e)}):a=function(t,r,i){return n.call(this,t,St(e,r),i,e)}),i[t](a,...r)}function Ot(e,t,n){let r=P(e);_t(r,`iterate`,gt);let i=r[t](...n);return(i===-1||i===!1)&&dn(n[0])?(n[0]=P(n[0]),r[t](...n)):i}function kt(e,t,n=[]){ot(),Je();let r=P(e)[t].apply(e,n);return Ye(),st(),r}var At=u(`__proto__,__v_isRef,__isVue`),jt=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!==`arguments`&&e!==`caller`).map(e=>Symbol[e]).filter(O));function Mt(e){O(e)||(e=String(e));let t=P(this);return _t(t,`has`,e),t.hasOwnProperty(e)}var Nt=class{constructor(e=!1,t=!1){this._isReadonly=e,this._isShallow=t}get(e,t,n){if(t===`__v_skip`)return e.__v_skip;let r=this._isReadonly,i=this._isShallow;if(t===`__v_isReactive`)return!r;if(t===`__v_isReadonly`)return r;if(t===`__v_isShallow`)return i;if(t===`__v_raw`)return n===(r?i?$t:Qt:i?Zt:Xt).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;let a=x(e);if(!r){let e;if(a&&(e=Ct[t]))return e;if(t===`hasOwnProperty`)return Mt}let o=Reflect.get(e,t,F(e)?e:n);if((O(t)?jt.has(t):At(t))||(r||_t(e,`get`,t),i))return o;if(F(o)){let e=a&&ae(t)?o:o.value;return r&&k(e)?an(e):e}return k(o)?r?an(o):nn(o):o}},Pt=class extends Nt{constructor(e=!1){super(!1,e)}set(e,t,n,r){let i=e[t],a=x(e)&&ae(t);if(!this._isShallow){let e=ln(i);if(!un(n)&&!ln(n)&&(i=P(i),n=P(n)),!a&&F(i)&&!F(n))return e||(i.value=n),!0}let o=a?Number(t)e,Vt=e=>Reflect.getPrototypeOf(e);function Ht(e,t,n){return function(...r){let i=this.__v_raw,a=P(i),o=S(a),s=e===`entries`||e===Symbol.iterator&&o,c=e===`keys`&&o,l=i[e](...r),u=n?Bt:t?mn:pn;return!t&&_t(a,`iterate`,c?ht:mt),{next(){let{value:e,done:t}=l.next();return t?{value:e,done:t}:{value:s?[u(e[0]),u(e[1])]:u(e),done:t}},[Symbol.iterator](){return this}}}}function Ut(e){return function(...t){return e===`delete`?!1:e===`clear`?void 0:this}}function Wt(e,t){let n={get(n){let r=this.__v_raw,i=P(r),a=P(n);e||(fe(n,a)&&_t(i,`get`,n),_t(i,`get`,a));let{has:o}=Vt(i),s=t?Bt:e?mn:pn;if(o.call(i,n))return s(r.get(n));if(o.call(i,a))return s(r.get(a));r!==i&&r.get(n)},get size(){let t=this.__v_raw;return!e&&_t(P(t),`iterate`,mt),t.size},has(t){let n=this.__v_raw,r=P(n),i=P(t);return e||(fe(t,i)&&_t(r,`has`,t),_t(r,`has`,i)),t===i?n.has(t):n.has(t)||n.has(i)},forEach(n,r){let i=this,a=i.__v_raw,o=P(a),s=t?Bt:e?mn:pn;return!e&&_t(o,`iterate`,mt),a.forEach((e,t)=>n.call(r,s(e),s(t),i))}};return _(n,e?{add:Ut(`add`),set:Ut(`set`),delete:Ut(`delete`),clear:Ut(`clear`)}:{add(e){!t&&!un(e)&&!ln(e)&&(e=P(e));let n=P(this);return Vt(n).has.call(n,e)||(n.add(e),vt(n,`add`,e,e)),this},set(e,n){!t&&!un(n)&&!ln(n)&&(n=P(n));let r=P(this),{has:i,get:a}=Vt(r),o=i.call(r,e);o||=(e=P(e),i.call(r,e));let s=a.call(r,e);return r.set(e,n),o?fe(n,s)&&vt(r,`set`,e,n,s):vt(r,`add`,e,n),this},delete(e){let t=P(this),{has:n,get:r}=Vt(t),i=n.call(t,e);i||=(e=P(e),n.call(t,e));let a=r?r.call(t,e):void 0,o=t.delete(e);return i&&vt(t,`delete`,e,void 0,a),o},clear(){let e=P(this),t=e.size!==0,n=e.clear();return t&&vt(e,`clear`,void 0,void 0,void 0),n}}),[`keys`,`values`,`entries`,Symbol.iterator].forEach(r=>{n[r]=Ht(r,e,t)}),n}function Gt(e,t){let n=Wt(e,t);return(t,r,i)=>r===`__v_isReactive`?!e:r===`__v_isReadonly`?e:r===`__v_raw`?t:Reflect.get(b(n,r)&&r in t?n:t,r,i)}var Kt={get:Gt(!1,!1)},qt={get:Gt(!1,!0)},Jt={get:Gt(!0,!1)},Yt={get:Gt(!0,!0)},Xt=new WeakMap,Zt=new WeakMap,Qt=new WeakMap,$t=new WeakMap;function en(e){switch(e){case`Object`:case`Array`:return 1;case`Map`:case`Set`:case`WeakMap`:case`WeakSet`:return 2;default:return 0}}function tn(e){return e.__v_skip||!Object.isExtensible(e)?0:en(re(e))}function nn(e){return ln(e)?e:sn(e,!1,It,Kt,Xt)}function rn(e){return sn(e,!1,Rt,qt,Zt)}function an(e){return sn(e,!0,Lt,Jt,Qt)}function on(e){return sn(e,!0,zt,Yt,$t)}function sn(e,t,n,r,i){if(!k(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;let a=tn(e);if(a===0)return e;let o=i.get(e);if(o)return o;let s=new Proxy(e,a===2?r:n);return i.set(e,s),s}function cn(e){return ln(e)?cn(e.__v_raw):!!(e&&e.__v_isReactive)}function ln(e){return!!(e&&e.__v_isReadonly)}function un(e){return!!(e&&e.__v_isShallow)}function dn(e){return e?!!e.__v_raw:!1}function P(e){let t=e&&e.__v_raw;return t?P(t):e}function fn(e){return!b(e,`__v_skip`)&&Object.isExtensible(e)&&me(e,`__v_skip`,!0),e}var pn=e=>k(e)?nn(e):e,mn=e=>k(e)?an(e):e;function F(e){return e?e.__v_isRef===!0:!1}function hn(e){return _n(e,!1)}function gn(e){return _n(e,!0)}function _n(e,t){return F(e)?e:new vn(e,t)}var vn=class{constructor(e,t){this.dep=new dt,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=t?e:P(e),this._value=t?e:pn(e),this.__v_isShallow=t}get value(){return this.dep.track(),this._value}set value(e){let t=this._rawValue,n=this.__v_isShallow||un(e)||ln(e);e=n?e:P(e),fe(e,t)&&(this._rawValue=e,this._value=n?e:pn(e),this.dep.trigger())}};function yn(e){e.dep&&e.dep.trigger()}function I(e){return F(e)?e.value:e}function bn(e){return E(e)?e():I(e)}var xn={get:(e,t,n)=>t===`__v_raw`?e:I(Reflect.get(e,t,n)),set:(e,t,n,r)=>{let i=e[t];return F(i)&&!F(n)?(i.value=n,!0):Reflect.set(e,t,n,r)}};function Sn(e){return cn(e)?e:new Proxy(e,xn)}var Cn=class{constructor(e){this.__v_isRef=!0,this._value=void 0;let t=this.dep=new dt,{get:n,set:r}=e(t.track.bind(t),t.trigger.bind(t));this._get=n,this._set=r}get value(){return this._value=this._get()}set value(e){this._set(e)}};function wn(e){return new Cn(e)}function Tn(e){let t=x(e)?Array(e.length):{};for(let n in e)t[n]=kn(e,n);return t}var En=class{constructor(e,t,n){this._object=e,this._key=t,this._defaultValue=n,this.__v_isRef=!0,this._value=void 0,this._raw=P(e);let r=!0,i=e;if(!x(e)||!ae(String(t)))do r=!dn(i)||un(i);while(r&&(i=i.__v_raw));this._shallow=r}get value(){let e=this._object[this._key];return this._shallow&&(e=I(e)),this._value=e===void 0?this._defaultValue:e}set value(e){if(this._shallow&&F(this._raw[this._key])){let t=this._object[this._key];if(F(t)){t.value=e;return}}this._object[this._key]=e}get dep(){return yt(this._raw,this._key)}},Dn=class{constructor(e){this._getter=e,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}};function On(e,t,n){return F(e)?e:E(e)?new Dn(e):k(e)&&arguments.length>1?kn(e,t,n):hn(e)}function kn(e,t,n){return new En(e,t,n)}var An=class{constructor(e,t,n){this.fn=e,this.setter=t,this._value=void 0,this.dep=new dt(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=lt-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!t,this.isSSR=n}notify(){if(this.flags|=16,!(this.flags&8)&&N!==this)return qe(this,!0),!0}get value(){let e=this.dep.track();return $e(this),e&&(e.version=this.dep.version),this._value}set value(e){this.setter&&this.setter(e)}};function jn(e,t,n=!1){let r,i;return E(e)?r=e:(r=e.get,i=e.set),new An(r,i,n)}var Mn={GET:`get`,HAS:`has`,ITERATE:`iterate`},Nn={SET:`set`,ADD:`add`,DELETE:`delete`,CLEAR:`clear`},Pn={},Fn=new WeakMap,In=void 0;function Ln(){return In}function Rn(e,t=!1,n=In){if(n){let t=Fn.get(n);t||Fn.set(n,t=[]),t.push(e)}}function zn(e,t,n=d){let{immediate:r,deep:i,once:a,scheduler:o,augmentJob:s,call:c}=n,l=e=>i?e:un(e)||i===!1||i===0?Bn(e,1):Bn(e),u,f,m,h,g=!1,_=!1;if(F(e)?(f=()=>e.value,g=un(e)):cn(e)?(f=()=>l(e),g=!0):x(e)?(_=!0,g=e.some(e=>cn(e)||un(e)),f=()=>e.map(e=>{if(F(e))return e.value;if(cn(e))return l(e);if(E(e))return c?c(e,2):e()})):f=E(e)?t?c?()=>c(e,2):e:()=>{if(m){ot();try{m()}finally{st()}}let t=In;In=u;try{return c?c(e,3,[h]):e(h)}finally{In=t}}:p,t&&i){let e=f,t=i===!0?1/0:i;f=()=>Bn(e(),t)}let y=Be(),b=()=>{u.stop(),y&&y.active&&v(y.effects,u)};if(a&&t){let e=t;t=(...t)=>{e(...t),b()}}let S=_?Array(e.length).fill(Pn):Pn,C=e=>{if(!(!(u.flags&1)||!u.dirty&&!e))if(t){let e=u.run();if(i||g||(_?e.some((e,t)=>fe(e,S[t])):fe(e,S))){m&&m();let n=In;In=u;try{let n=[e,S===Pn?void 0:_&&S[0]===Pn?[]:S,h];S=e,c?c(t,3,n):t(...n)}finally{In=n}}}else u.run()};return s&&s(C),u=new Ue(f),u.scheduler=o?()=>o(C,!1):C,h=e=>Rn(e,!1,u),m=u.onStop=()=>{let e=Fn.get(u);if(e){if(c)c(e,4);else for(let t of e)t();Fn.delete(u)}},t?r?C(!0):S=u.run():o?o(C.bind(null,!0),!0):u.run(),b.pause=u.pause.bind(u),b.resume=u.resume.bind(u),b.stop=b,b}function Bn(e,t=1/0,n){if(t<=0||!k(e)||e.__v_skip||(n||=new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,F(e))Bn(e.value,t,n);else if(x(e))for(let r=0;r{Bn(e,t,n)});else if(ie(e)){for(let r in e)Bn(e[r],t,n);for(let r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&Bn(e[r],t,n)}return e}var Vn=[];function Hn(e){Vn.push(e)}function Un(){Vn.pop()}function Wn(e,t){}var Gn={SETUP_FUNCTION:0,0:`SETUP_FUNCTION`,RENDER_FUNCTION:1,1:`RENDER_FUNCTION`,NATIVE_EVENT_HANDLER:5,5:`NATIVE_EVENT_HANDLER`,COMPONENT_EVENT_HANDLER:6,6:`COMPONENT_EVENT_HANDLER`,VNODE_HOOK:7,7:`VNODE_HOOK`,DIRECTIVE_HOOK:8,8:`DIRECTIVE_HOOK`,TRANSITION_HOOK:9,9:`TRANSITION_HOOK`,APP_ERROR_HANDLER:10,10:`APP_ERROR_HANDLER`,APP_WARN_HANDLER:11,11:`APP_WARN_HANDLER`,FUNCTION_REF:12,12:`FUNCTION_REF`,ASYNC_COMPONENT_LOADER:13,13:`ASYNC_COMPONENT_LOADER`,SCHEDULER:14,14:`SCHEDULER`,COMPONENT_UPDATE:15,15:`COMPONENT_UPDATE`,APP_UNMOUNT_CLEANUP:16,16:`APP_UNMOUNT_CLEANUP`},Kn={sp:`serverPrefetch hook`,bc:`beforeCreate hook`,c:`created hook`,bm:`beforeMount hook`,m:`mounted hook`,bu:`beforeUpdate hook`,u:`updated`,bum:`beforeUnmount hook`,um:`unmounted hook`,a:`activated hook`,da:`deactivated hook`,ec:`errorCaptured hook`,rtc:`renderTracked hook`,rtg:`renderTriggered hook`,0:`setup function`,1:`render function`,2:`watcher getter`,3:`watcher callback`,4:`watcher cleanup function`,5:`native event handler`,6:`component event handler`,7:`vnode hook`,8:`directive hook`,9:`transition hook`,10:`app errorHandler`,11:`app warnHandler`,12:`ref function`,13:`async component loader`,14:`scheduler flush`,15:`component update`,16:`app unmount cleanup function`};function qn(e,t,n,r){try{return r?e(...r):e()}catch(e){Yn(e,t,n)}}function Jn(e,t,n,r){if(E(e)){let i=qn(e,t,n,r);return i&&ee(i)&&i.catch(e=>{Yn(e,t,n)}),i}if(x(e)){let i=[];for(let a=0;a>>1,i=Zn[r],a=dr(i);a=dr(n)?Zn.push(e):Zn.splice(ar(t),0,e),e.flags|=1,sr()}}function sr(){rr||=nr.then(fr)}function cr(e){x(e)?$n.push(...e):er&&e.id===-1?er.splice(tr+1,0,e):e.flags&1||($n.push(e),e.flags|=1),sr()}function lr(e,t,n=Qn+1){for(;ndr(e)-dr(t));if($n.length=0,er){er.push(...e);return}for(er=e,tr=0;tre.id==null?e.flags&2?-1:1/0:e.id;function fr(e){try{for(Qn=0;Qnpr.emit(e,...t)),mr=[]):typeof window<`u`&&window.HTMLElement&&!(window.navigator?.userAgent)?.includes(`jsdom`)?((t.__VUE_DEVTOOLS_HOOK_REPLAY__=t.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(e=>{hr(e,t)}),setTimeout(()=>{pr||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,mr=[])},3e3)):mr=[]}var gr=null,_r=null;function vr(e){let t=gr;return gr=e,_r=e&&e.type.__scopeId||null,t}function yr(e){_r=e}function br(){_r=null}var xr=e=>Sr;function Sr(e,t=gr,n){if(!t||e._n)return e;let r=(...n)=>{r._d&&ps(-1);let i=vr(t),a;try{a=e(...n)}finally{vr(i),r._d&&ps(1)}return a};return r._n=!0,r._c=!0,r._d=!0,r}function Cr(e,t){if(gr===null)return e;let n=tc(gr),r=e.dirs||=[];for(let e=0;ee.__isTeleport,Dr=e=>e&&(e.disabled||e.disabled===``),Or=e=>e&&(e.defer||e.defer===``),kr=e=>typeof SVGElement<`u`&&e instanceof SVGElement,Ar=e=>typeof MathMLElement==`function`&&e instanceof MathMLElement,jr=(e,t)=>{let n=e&&e.to;return D(n)?t?t(n):null:n},Mr={name:`Teleport`,__isTeleport:!0,process(e,t,n,r,i,a,o,s,c,l){let{mc:u,pc:d,pbc:f,o:{insert:p,querySelector:m,createText:h,createComment:g}}=l,_=Dr(t.props),{shapeFlag:v,children:y,dynamicChildren:b}=t;if(e==null){let e=t.el=h(``),l=t.anchor=h(``);p(e,n,r),p(l,n,r);let d=(e,t)=>{v&16&&u(y,e,t,i,a,o,s,c)},f=()=>{let e=t.target=jr(t.props,m),n=Lr(e,t,h,p);e&&(o!==`svg`&&kr(e)?o=`svg`:o!==`mathml`&&Ar(e)&&(o=`mathml`),i&&i.isCE&&(i.ce._teleportTargets||(i.ce._teleportTargets=new Set)).add(e),_||(d(e,n),Ir(t,!1)))};_&&(d(n,l),Ir(t,!0)),Or(t.props)?(t.el.__isMounted=!1,Fo(()=>{f(),delete t.el.__isMounted},a)):f()}else{if(Or(t.props)&&e.el.__isMounted===!1){Fo(()=>{Mr.process(e,t,n,r,i,a,o,s,c,l)},a);return}t.el=e.el,t.targetStart=e.targetStart;let u=t.anchor=e.anchor,p=t.target=e.target,h=t.targetAnchor=e.targetAnchor,g=Dr(e.props),v=g?n:p,y=g?u:h;if(o===`svg`||kr(p)?o=`svg`:(o===`mathml`||Ar(p))&&(o=`mathml`),b?(f(e.dynamicChildren,b,v,i,a,o,s),Ho(e,t,!0)):c||d(e,t,v,y,i,a,o,s,!1),_)g?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):Nr(t,n,u,l,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){let e=t.target=jr(t.props,m);e&&Nr(t,e,null,l,0)}else g&&Nr(t,p,h,l,1);Ir(t,_)}},remove(e,t,n,{um:r,o:{remove:i}},a){let{shapeFlag:o,children:s,anchor:c,targetStart:l,targetAnchor:u,target:d,props:f}=e;if(d&&(i(l),i(u)),a&&i(c),o&16){let e=a||!Dr(f);for(let i=0;i{e.isMounted=!0}),Hi(()=>{e.isUnmounting=!0}),e}var Vr=[Function,Array],Hr={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Vr,onEnter:Vr,onAfterEnter:Vr,onEnterCancelled:Vr,onBeforeLeave:Vr,onLeave:Vr,onAfterLeave:Vr,onLeaveCancelled:Vr,onBeforeAppear:Vr,onAppear:Vr,onAfterAppear:Vr,onAppearCancelled:Vr},Ur=e=>{let t=e.subTree;return t.component?Ur(t.component):t},Wr={name:`BaseTransition`,props:Hr,setup(e,{slots:t}){let n=Rs(),r=Br();return()=>{let i=t.default&&Qr(t.default(),!0);if(!i||!i.length)return;let a=Gr(i),o=P(e),{mode:s}=o;if(r.isLeaving)return Yr(a);let c=Xr(a);if(!c)return Yr(a);let l=Jr(c,o,r,n,e=>l=e);c.type!==os&&Zr(c,l);let u=n.subTree&&Xr(n.subTree);if(u&&u.type!==os&&!vs(u,c)&&Ur(n).type!==os){let e=Jr(u,o,r,n);if(Zr(u,e),s===`out-in`&&c.type!==os)return r.isLeaving=!0,e.afterLeave=()=>{r.isLeaving=!1,n.job.flags&8||n.update(),delete e.afterLeave,u=void 0},Yr(a);s===`in-out`&&c.type!==os?e.delayLeave=(e,t,n)=>{let i=qr(r,u);i[String(u.key)]=u,e[Rr]=()=>{t(),e[Rr]=void 0,delete l.delayedLeave,u=void 0},l.delayedLeave=()=>{n(),delete l.delayedLeave,u=void 0}}:u=void 0}else u&&=void 0;return a}}};function Gr(e){let t=e[0];if(e.length>1){for(let n of e)if(n.type!==os){t=n;break}}return t}var Kr=Wr;function qr(e,t){let{leavingVNodes:n}=e,r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function Jr(e,t,n,r,i){let{appear:a,mode:o,persisted:s=!1,onBeforeEnter:c,onEnter:l,onAfterEnter:u,onEnterCancelled:d,onBeforeLeave:f,onLeave:p,onAfterLeave:m,onLeaveCancelled:h,onBeforeAppear:g,onAppear:_,onAfterAppear:v,onAppearCancelled:y}=t,b=String(e.key),S=qr(n,e),C=(e,t)=>{e&&Jn(e,r,9,t)},w=(e,t)=>{let n=t[1];C(e,t),x(e)?e.every(e=>e.length<=1)&&n():e.length<=1&&n()},T={mode:o,persisted:s,beforeEnter(t){let r=c;if(!n.isMounted)if(a)r=g||c;else return;t[Rr]&&t[Rr](!0);let i=S[b];i&&vs(e,i)&&i.el[Rr]&&i.el[Rr](),C(r,[t])},enter(e){let t=l,r=u,i=d;if(!n.isMounted)if(a)t=_||l,r=v||u,i=y||d;else return;let o=!1,s=e[zr]=t=>{o||(o=!0,C(t?i:r,[e]),T.delayedLeave&&T.delayedLeave(),e[zr]=void 0)};t?w(t,[e,s]):s()},leave(t,r){let i=String(e.key);if(t[zr]&&t[zr](!0),n.isUnmounting)return r();C(f,[t]);let a=!1,o=t[Rr]=n=>{a||(a=!0,r(),C(n?h:m,[t]),t[Rr]=void 0,S[i]===e&&delete S[i])};S[i]=e,p?w(p,[t,o]):o()},clone(e){let a=Jr(e,t,n,r,i);return i&&i(a),a}};return T}function Yr(e){if(Di(e))return e=Ts(e),e.children=null,e}function Xr(e){if(!Di(e))return Er(e.type)&&e.children?Gr(e.children):e;if(e.component)return e.component.subTree;let{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&E(n.default))return n.default()}}function Zr(e,t){e.shapeFlag&6&&e.component?(e.transition=t,Zr(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function Qr(e,t=!1,n){let r=[],i=0;for(let a=0;a1)for(let e=0;e_({name:e.name},t,{setup:e}))():e}function ei(){let e=Rs();return e?(e.appContext.config.idPrefix||`v`)+`-`+e.ids[0]+ e.ids[1]++:``}function ti(e){e.ids=[e.ids[0]+ e.ids[2]+++`-`,0,0]}function ni(e){let t=Rs(),n=gn(null);if(t){let r=t.refs===d?t.refs={}:t.refs;Object.defineProperty(r,e,{enumerable:!0,get:()=>n.value,set:e=>n.value=e})}return n}var ri=new WeakMap;function ii(e,t,n,r,i=!1){if(x(e)){e.forEach((e,a)=>ii(e,t&&(x(t)?t[a]:t),n,r,i));return}if(wi(r)&&!i){r.shapeFlag&512&&r.type.__asyncResolved&&r.component.subTree.component&&ii(e,t,n,r.component.subTree);return}let a=r.shapeFlag&4?tc(r.component):r.el,o=i?null:a,{i:s,r:c}=e,l=t&&t.r,u=s.refs===d?s.refs={}:s.refs,f=s.setupState,p=P(f),h=f===d?m:e=>b(p,e),g=e=>!0;if(l!=null&&l!==c){if(ai(t),D(l))u[l]=null,h(l)&&(f[l]=null);else if(F(l)){g(l)&&(l.value=null);let e=t;e.k&&(u[e.k]=null)}}if(E(c))qn(c,s,12,[o,u]);else{let t=D(c),r=F(c);if(t||r){let s=()=>{if(e.f){let n=t?h(c)?f[c]:u[c]:g(c)||!e.k?c.value:u[e.k];if(i)x(n)&&v(n,a);else if(x(n))n.includes(a)||n.push(a);else if(t)u[c]=[a],h(c)&&(f[c]=u[c]);else{let t=[a];g(c)&&(c.value=t),e.k&&(u[e.k]=t)}}else t?(u[c]=o,h(c)&&(f[c]=o)):r&&(g(c)&&(c.value=o),e.k&&(u[e.k]=o))};if(o){let t=()=>{s(),ri.delete(e)};t.id=-1,ri.set(e,t),Fo(t,n)}else ai(e),s()}}}function ai(e){let t=ri.get(e);t&&(t.flags|=8,ri.delete(e))}var oi=!1,si=()=>{oi||=(console.error(`Hydration completed but contains mismatches.`),!0)},ci=e=>e.namespaceURI.includes(`svg`)&&e.tagName!==`foreignObject`,li=e=>e.namespaceURI.includes(`MathML`),ui=e=>{if(e.nodeType===1){if(ci(e))return`svg`;if(li(e))return`mathml`}},di=e=>e.nodeType===8;function fi(e){let{mt:t,p:n,o:{patchProp:r,createText:i,nextSibling:a,parentNode:o,remove:s,insert:c,createComment:l}}=e,u=(e,t)=>{if(!t.hasChildNodes()){n(null,e,t),ur(),t._vnode=e;return}d(t.firstChild,e,null,null,null),ur(),t._vnode=e},d=(n,r,s,l,u,h=!1)=>{h||=!!r.dynamicChildren;let b=di(n)&&n.data===`[`,x=()=>g(n,r,s,l,u,b),{type:S,ref:C,shapeFlag:w,patchFlag:T}=r,E=n.nodeType;r.el=n,T===-2&&(h=!1,r.dynamicChildren=null);let D=null;switch(S){case as:E===3?(n.data!==r.children&&(si(),n.data=r.children),D=a(n)):r.children===``?(c(r.el=i(``),o(n),n),D=n):D=x();break;case os:y(n)?(D=a(n),v(r.el=n.content.firstChild,n,s)):D=E!==8||b?x():a(n);break;case ss:if(b&&(n=a(n),E=n.nodeType),E===1||E===3){D=n;let e=!r.children.length;for(let t=0;t{o||=!!t.dynamicChildren;let{type:c,props:l,patchFlag:u,shapeFlag:d,dirs:f,transition:m}=t,g=c===`input`||c===`option`;if(g||u!==-1){f&&wr(t,null,n,`created`);let c=!1;if(y(e)){c=Vo(null,m)&&n&&n.vnode.props&&n.vnode.props.appear;let r=e.content.firstChild;if(c){let e=r.getAttribute(`class`);e&&(r.$cls=e),m.beforeEnter(r)}v(r,e,n),t.el=e=r}if(d&16&&!(l&&(l.innerHTML||l.textContent))){let r=p(e.firstChild,t,e,n,i,a,o);for(;r;){hi(e,1)||si();let t=r;r=r.nextSibling,s(t)}}else if(d&8){let n=t.children;n[0]===` `&&(e.tagName===`PRE`||e.tagName===`TEXTAREA`)&&(n=n.slice(1));let{textContent:r}=e;r!==n&&r!==n.replace(/\r\n|\r/g,` -`)&&(hi(e,0)||si(),e.textContent=t.children)}if(l){if(g||!o||u&48){let t=e.tagName.includes(`-`);for(let i in l)(g&&(i.endsWith(`value`)||i===`indeterminate`)||h(i)&&!oe(i)||i[0]===`.`||t)&&r(e,i,null,l[i],void 0,n)}else if(l.onClick)r(e,`onClick`,null,l.onClick,void 0,n);else if(u&4&&cn(l.style))for(let e in l.style)l.style[e]}let _;(_=l&&l.onVnodeBeforeMount)&&Ns(_,n,t),f&&wr(t,null,n,`beforeMount`),((_=l&&l.onVnodeMounted)||f||c)&&ns(()=>{_&&Ns(_,n,t),c&&m.enter(e),f&&wr(t,null,n,`mounted`)},i)}return e.nextSibling},p=(e,t,r,o,s,l,u)=>{u||=!!t.dynamicChildren;let f=t.children,p=f.length;for(let t=0;t{let{slotScopeIds:u}=t;u&&(i=i?i.concat(u):u);let d=o(e),f=p(a(e),t,d,n,r,i,s);return f&&di(f)&&f.data===`]`?a(t.anchor=f):(si(),c(t.anchor=l(`]`),d,f),f)},g=(e,t,r,i,c,l)=>{if(hi(e.parentElement,1)||si(),t.el=null,l){let t=_(e);for(;;){let n=a(e);if(n&&n!==t)s(n);else break}}let u=a(e),d=o(e);return s(e),n(null,t,d,u,r,i,ui(d),c),r&&(r.vnode.el=t.el,go(r,t.el)),u},_=(e,t=`[`,n=`]`)=>{let r=0;for(;e;)if(e=a(e),e&&di(e)&&(e.data===t&&r++,e.data===n)){if(r===0)return a(e);r--}return e},v=(e,t,n)=>{let r=t.parentNode;r&&r.replaceChild(e,t);let i=n;for(;i;)i.vnode.el===t&&(i.vnode.el=i.subTree.el=e),i=i.parent},y=e=>e.nodeType===1&&e.tagName===`TEMPLATE`;return[u,d]}var pi=`data-allow-mismatch`,mi={0:`text`,1:`children`,2:`class`,3:`style`,4:`attribute`};function hi(e,t){if(t===0||t===1)for(;e&&!e.hasAttribute(pi);)e=e.parentElement;let n=e&&e.getAttribute(pi);if(n==null)return!1;if(n===``)return!0;{let e=n.split(`,`);return t===0&&e.includes(`children`)?!0:e.includes(mi[t])}}var gi=ve().requestIdleCallback||(e=>setTimeout(e,1)),_i=ve().cancelIdleCallback||(e=>clearTimeout(e)),vi=(e=1e4)=>t=>{let n=gi(t,{timeout:e});return()=>_i(n)};function yi(e){let{top:t,left:n,bottom:r,right:i}=e.getBoundingClientRect(),{innerHeight:a,innerWidth:o}=window;return(t>0&&t0&&r0&&n0&&i(t,n)=>{let r=new IntersectionObserver(e=>{for(let n of e)if(n.isIntersecting){r.disconnect(),t();break}},e);return n(e=>{if(e instanceof Element){if(yi(e))return t(),r.disconnect(),!1;r.observe(e)}}),()=>r.disconnect()},xi=e=>t=>{if(e){let n=matchMedia(e);if(n.matches)t();else return n.addEventListener(`change`,t,{once:!0}),()=>n.removeEventListener(`change`,t)}},Si=(e=[])=>(t,n)=>{D(e)&&(e=[e]);let r=!1,i=e=>{r||(r=!0,a(),t(),e.target.dispatchEvent(new e.constructor(e.type,e)))},a=()=>{n(t=>{for(let n of e)t.removeEventListener(n,i)})};return n(t=>{for(let n of e)t.addEventListener(n,i,{once:!0})}),a};function Ci(e,t){if(di(e)&&e.data===`[`){let n=1,r=e.nextSibling;for(;r;){if(r.nodeType===1){if(t(r)===!1)break}else if(di(r))if(r.data===`]`){if(--n===0)break}else r.data===`[`&&n++;r=r.nextSibling}}else t(e)}var wi=e=>!!e.type.__asyncLoader;function Ti(e){E(e)&&(e={loader:e});let{loader:t,loadingComponent:n,errorComponent:r,delay:i=200,hydrate:a,timeout:o,suspensible:s=!0,onError:c}=e,l=null,u,d=0,f=()=>(d++,l=null,p()),p=()=>{let e;return l||(e=l=t().catch(e=>{if(e=e instanceof Error?e:Error(String(e)),c)return new Promise((t,n)=>{c(e,()=>t(f()),()=>n(e),d+1)});throw e}).then(t=>e!==l&&l?l:(t&&(t.__esModule||t[Symbol.toStringTag]===`Module`)&&(t=t.default),u=t,t)))};return $r({name:`AsyncComponentWrapper`,__asyncLoader:p,__asyncHydrate(e,t,n){let r=!1;(t.bu||=[]).push(()=>r=!0);let i=()=>{r||n()},o=a?()=>{let n=a(i,t=>Ci(e,t));n&&(t.bum||=[]).push(n)}:i;u?o():p().then(()=>!t.isUnmounted&&o())},get __asyncResolved(){return u},setup(){let e=Ls;if(ti(e),u)return()=>Ei(u,e);let t=t=>{l=null,Yn(t,e,13,!r)};if(s&&e.suspense||Ws)return p().then(t=>()=>Ei(t,e)).catch(e=>(t(e),()=>r?z(r,{error:e}):null));let a=hn(!1),c=hn(),d=hn(!!i);return i&&setTimeout(()=>{d.value=!1},i),o!=null&&setTimeout(()=>{if(!a.value&&!c.value){let e=Error(`Async component timed out after ${o}ms.`);t(e),c.value=e}},o),p().then(()=>{a.value=!0,e.parent&&Di(e.parent.vnode)&&e.parent.update()}).catch(e=>{t(e),c.value=e}),()=>{if(a.value&&u)return Ei(u,e);if(c.value&&r)return z(r,{error:c.value});if(n&&!d.value)return Ei(n,e)}}})}function Ei(e,t){let{ref:n,props:r,children:i,ce:a}=t.vnode,o=z(e,r,i);return o.ref=n,o.ce=a,delete t.vnode.ce,o}var Di=e=>e.type.__isKeepAlive,Oi={name:`KeepAlive`,__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){let n=Rs(),r=n.ctx;if(!r.renderer)return()=>{let e=t.default&&t.default();return e&&e.length===1?e[0]:e};let i=new Map,a=new Set,o=null,s=n.suspense,{renderer:{p:c,m:l,um:u,o:{createElement:d}}}=r,f=d(`div`);r.activate=(e,t,n,r,i)=>{let a=e.component;l(e,t,n,0,s),c(a.vnode,e,t,n,a,s,r,e.slotScopeIds,i),Fo(()=>{a.isDeactivated=!1,a.a&&pe(a.a);let t=e.props&&e.props.onVnodeMounted;t&&Ns(t,a.parent,e)},s)},r.deactivate=e=>{let t=e.component;Go(t.m),Go(t.a),l(e,f,null,1,s),Fo(()=>{t.da&&pe(t.da);let n=e.props&&e.props.onVnodeUnmounted;n&&Ns(n,t.parent,e),t.isDeactivated=!0},s)};function p(e){Pi(e),u(e,n,s,!0)}function m(e){i.forEach((t,n)=>{let r=nc(t.type);r&&!e(r)&&h(n)})}function h(e){let t=i.get(e);t&&(!o||!vs(t,o))?p(t):o&&Pi(o),i.delete(e),a.delete(e)}$a(()=>[e.include,e.exclude],([e,t])=>{e&&m(t=>ki(e,t)),t&&m(e=>!ki(t,e))},{flush:`post`,deep:!0});let g=null,_=()=>{g!=null&&(Ko(n.subTree.type)?Fo(()=>{i.set(g,Fi(n.subTree))},n.subTree.suspense):i.set(g,Fi(n.subTree)))};return zi(_),Vi(_),Hi(()=>{i.forEach(e=>{let{subTree:t,suspense:r}=n,i=Fi(t);if(e.type===i.type&&e.key===i.key){Pi(i);let e=i.component.da;e&&Fo(e,r);return}p(e)})}),()=>{if(g=null,!t.default)return o=null;let n=t.default(),r=n[0];if(n.length>1)return o=null,n;if(!_s(r)||!(r.shapeFlag&4)&&!(r.shapeFlag&128))return o=null,r;let s=Fi(r);if(s.type===os)return o=null,s;let c=s.type,l=nc(wi(s)?s.type.__asyncResolved||{}:c),{include:u,exclude:d,max:f}=e;if(u&&(!l||!ki(u,l))||d&&l&&ki(d,l))return s.shapeFlag&=-257,o=s,r;let p=s.key==null?c:s.key,m=i.get(p);return s.el&&(s=Ts(s),r.shapeFlag&128&&(r.ssContent=s)),g=p,m?(s.el=m.el,s.component=m.component,s.transition&&Zr(s,s.transition),s.shapeFlag|=512,a.delete(p),a.add(p)):(a.add(p),f&&a.size>parseInt(f,10)&&h(a.values().next().value)),s.shapeFlag|=256,o=s,Ko(r.type)?r:s}}};function ki(e,t){return x(e)?e.some(e=>ki(e,t)):D(e)?e.split(`,`).includes(t):T(e)?(e.lastIndex=0,e.test(t)):!1}function Ai(e,t){Mi(e,`a`,t)}function ji(e,t){Mi(e,`da`,t)}function Mi(e,t,n=Ls){let r=e.__wdc||=()=>{let t=n;for(;t;){if(t.isDeactivated)return;t=t.parent}return e()};if(Ii(t,r,n),n){let e=n.parent;for(;e&&e.parent;)Di(e.parent.vnode)&&Ni(r,t,n,e),e=e.parent}}function Ni(e,t,n,r){let i=Ii(t,e,r,!0);Ui(()=>{v(r[t],i)},n)}function Pi(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function Fi(e){return e.shapeFlag&128?e.ssContent:e}function Ii(e,t,n=Ls,r=!1){if(n){let i=n[e]||(n[e]=[]),a=t.__weh||=(...r)=>{ot();let i=Vs(n),a=Jn(t,n,e,r);return i(),st(),a};return r?i.unshift(a):i.push(a),a}}var Li=e=>(t,n=Ls)=>{(!Ws||e===`sp`)&&Ii(e,(...e)=>t(...e),n)},Ri=Li(`bm`),zi=Li(`m`),Bi=Li(`bu`),Vi=Li(`u`),Hi=Li(`bum`),Ui=Li(`um`),Wi=Li(`sp`),Gi=Li(`rtg`),Ki=Li(`rtc`);function qi(e,t=Ls){Ii(`ec`,e,t)}var Ji=`components`,Yi=`directives`;function Xi(e,t){return ea(Ji,e,!0,t)||e}var Zi=Symbol.for(`v-ndc`);function Qi(e){return D(e)?ea(Ji,e,!1)||e:e||Zi}function $i(e){return ea(Yi,e)}function ea(e,t,n=!0,r=!1){let i=gr||Ls;if(i){let n=i.type;if(e===Ji){let e=nc(n,!1);if(e&&(e===t||e===A(t)||e===ue(A(t))))return n}let a=ta(i[e]||n[e],t)||ta(i.appContext[e],t);return!a&&r?n:a}}function ta(e,t){return e&&(e[t]||e[A(t)]||e[ue(A(t))])}function na(e,t,n,r){let i,a=n&&n[r],o=x(e);if(o||D(e)){let n=o&&cn(e),r=!1,s=!1;n&&(r=!un(e),s=ln(e),e=xt(e)),i=Array(e.length);for(let n=0,o=e.length;nt(e,n,void 0,a&&a[n]));else{let n=Object.keys(e);i=Array(n.length);for(let r=0,o=n.length;r{let t=r.fn(...e);return t&&(t.key=r.key),t}:r.fn)}return e}function ia(e,t,n={},r,i){if(gr.ce||gr.parent&&wi(gr.parent)&&gr.parent.ce){let e=Object.keys(n).length>0;return t!==`default`&&(n.name=t),us(),gs(R,null,[z(`slot`,n,r&&r())],e?-2:64)}let a=e[t];a&&a._c&&(a._d=!1),us();let o=a&&aa(a(n)),s=n.key||o&&o.key,c=gs(R,{key:(s&&!O(s)?s:`_${t}`)+(!o&&r?`_fb`:``)},o||(r?r():[]),o&&e._===1?64:-2);return!i&&c.scopeId&&(c.slotScopeIds=[c.scopeId+`-s`]),a&&a._c&&(a._d=!0),c}function aa(e){return e.some(e=>_s(e)?!(e.type===os||e.type===R&&!aa(e.children)):!0)?e:null}function oa(e,t){let n={};for(let r in e)n[t&&/[A-Z]/.test(r)?`on:${r}`:de(r)]=e[r];return n}var sa=e=>e?Us(e)?tc(e):sa(e.parent):null,ca=_(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>sa(e.parent),$root:e=>sa(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Ma(e),$forceUpdate:e=>e.f||=()=>{or(e.update)},$nextTick:e=>e.n||=ir.bind(e.proxy),$watch:e=>to.bind(e)}),la=(e,t)=>e!==d&&!e.__isScriptSetup&&b(e,t),ua={get({_:e},t){if(t===`__v_skip`)return!0;let{ctx:n,setupState:r,data:i,props:a,accessCache:o,type:s,appContext:c}=e;if(t[0]!==`$`){let e=o[t];if(e!==void 0)switch(e){case 1:return r[t];case 2:return i[t];case 4:return n[t];case 3:return a[t]}else if(la(r,t))return o[t]=1,r[t];else if(i!==d&&b(i,t))return o[t]=2,i[t];else if(b(a,t))return o[t]=3,a[t];else if(n!==d&&b(n,t))return o[t]=4,n[t];else Da&&(o[t]=0)}let l=ca[t],u,f;if(l)return t===`$attrs`&&_t(e.attrs,`get`,``),l(e);if((u=s.__cssModules)&&(u=u[t]))return u;if(n!==d&&b(n,t))return o[t]=4,n[t];if(f=c.config.globalProperties,b(f,t))return f[t]},set({_:e},t,n){let{data:r,setupState:i,ctx:a}=e;return la(i,t)?(i[t]=n,!0):r!==d&&b(r,t)?(r[t]=n,!0):b(e.props,t)||t[0]===`$`&&t.slice(1)in e?!1:(a[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:i,props:a,type:o}},s){let c;return!!(n[s]||e!==d&&s[0]!==`$`&&b(e,s)||la(t,s)||b(a,s)||b(r,s)||b(ca,s)||b(i.config.globalProperties,s)||(c=o.__cssModules)&&c[s])},defineProperty(e,t,n){return n.get==null?b(n,`value`)&&this.set(e,t,n.value,null):e._.accessCache[t]=0,Reflect.defineProperty(e,t,n)}},da=_({},ua,{get(e,t){if(t!==Symbol.unscopables)return ua.get(e,t,e)},has(e,t){return t[0]!==`_`&&!ye(t)}});function fa(){return null}function pa(){return null}function ma(e){}function ha(e){}function ga(){return null}function _a(){}function va(e,t){return null}function ya(){return xa(`useSlots`).slots}function ba(){return xa(`useAttrs`).attrs}function xa(e){let t=Rs();return t.setupContext||=ec(t)}function Sa(e){return x(e)?e.reduce((e,t)=>(e[t]=null,e),{}):e}function Ca(e,t){let n=Sa(e);for(let e in t){if(e.startsWith(`__skip`))continue;let r=n[e];r?x(r)||E(r)?r=n[e]={type:r,default:t[e]}:r.default=t[e]:r===null&&(r=n[e]={default:t[e]}),r&&t[`__skip_${e}`]&&(r.skipFactory=!0)}return n}function wa(e,t){return!e||!t?e||t:x(e)&&x(t)?e.concat(t):_({},Sa(e),Sa(t))}function Ta(e,t){let n={};for(let r in e)t.includes(r)||Object.defineProperty(n,r,{enumerable:!0,get:()=>e[r]});return n}function Ea(e){let t=Rs(),n=e();return Hs(),ee(n)&&(n=n.catch(e=>{throw Vs(t),e})),[n,()=>Vs(t)]}var Da=!0;function Oa(e){let t=Ma(e),n=e.proxy,r=e.ctx;Da=!1,t.beforeCreate&&Aa(t.beforeCreate,e,`bc`);let{data:i,computed:a,methods:o,watch:s,provide:c,inject:l,created:u,beforeMount:d,mounted:f,beforeUpdate:m,updated:h,activated:g,deactivated:_,beforeDestroy:v,beforeUnmount:y,destroyed:b,unmounted:S,render:C,renderTracked:w,renderTriggered:T,errorCaptured:D,serverPrefetch:O,expose:ee,inheritAttrs:te,components:ne,directives:re,filters:ie}=t;if(l&&ka(l,r,null),o)for(let e in o){let t=o[e];E(t)&&(r[e]=t.bind(n))}if(i){let t=i.call(n,n);k(t)&&(e.data=nn(t))}if(Da=!0,a)for(let e in a){let t=a[e],i=B({get:E(t)?t.bind(n,n):E(t.get)?t.get.bind(n,n):p,set:!E(t)&&E(t.set)?t.set.bind(n):p});Object.defineProperty(r,e,{enumerable:!0,configurable:!0,get:()=>i.value,set:e=>i.value=e})}if(s)for(let e in s)ja(s[e],r,n,e);if(c){let e=E(c)?c.call(n):c;Reflect.ownKeys(e).forEach(t=>{Ka(t,e[t])})}u&&Aa(u,e,`c`);function ae(e,t){x(t)?t.forEach(t=>e(t.bind(n))):t&&e(t.bind(n))}if(ae(Ri,d),ae(zi,f),ae(Bi,m),ae(Vi,h),ae(Ai,g),ae(ji,_),ae(qi,D),ae(Ki,w),ae(Gi,T),ae(Hi,y),ae(Ui,S),ae(Wi,O),x(ee))if(ee.length){let t=e.exposed||={};ee.forEach(e=>{Object.defineProperty(t,e,{get:()=>n[e],set:t=>n[e]=t,enumerable:!0})})}else e.exposed||={};C&&e.render===p&&(e.render=C),te!=null&&(e.inheritAttrs=te),ne&&(e.components=ne),re&&(e.directives=re),O&&ti(e)}function ka(e,t,n=p){for(let n in x(e)&&(e=La(e)),e){let r=e[n],i;i=k(r)?`default`in r?L(r.from||n,r.default,!0):L(r.from||n):L(r),F(i)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>i.value,set:e=>i.value=e}):t[n]=i}}function Aa(e,t,n){Jn(x(e)?e.map(e=>e.bind(t.proxy)):e.bind(t.proxy),t,n)}function ja(e,t,n,r){let i=r.includes(`.`)?no(n,r):()=>n[r];if(D(e)){let n=t[e];E(n)&&$a(i,n)}else if(E(e))$a(i,e.bind(n));else if(k(e))if(x(e))e.forEach(e=>ja(e,t,n,r));else{let r=E(e.handler)?e.handler.bind(n):t[e.handler];E(r)&&$a(i,r,e)}}function Ma(e){let t=e.type,{mixins:n,extends:r}=t,{mixins:i,optionsCache:a,config:{optionMergeStrategies:o}}=e.appContext,s=a.get(t),c;return s?c=s:!i.length&&!n&&!r?c=t:(c={},i.length&&i.forEach(e=>Na(c,e,o,!0)),Na(c,t,o)),k(t)&&a.set(t,c),c}function Na(e,t,n,r=!1){let{mixins:i,extends:a}=t;for(let o in a&&Na(e,a,n,!0),i&&i.forEach(t=>Na(e,t,n,!0)),t)if(!(r&&o===`expose`)){let r=Pa[o]||n&&n[o];e[o]=r?r(e[o],t[o]):t[o]}return e}var Pa={data:Fa,props:Ba,emits:Ba,methods:za,computed:za,beforeCreate:Ra,created:Ra,beforeMount:Ra,mounted:Ra,beforeUpdate:Ra,updated:Ra,beforeDestroy:Ra,beforeUnmount:Ra,destroyed:Ra,unmounted:Ra,activated:Ra,deactivated:Ra,errorCaptured:Ra,serverPrefetch:Ra,components:za,directives:za,watch:Va,provide:Fa,inject:Ia};function Fa(e,t){return t?e?function(){return _(E(e)?e.call(this,this):e,E(t)?t.call(this,this):t)}:t:e}function Ia(e,t){return za(La(e),La(t))}function La(e){if(x(e)){let t={};for(let n=0;n1)return n&&E(t)?t.call(r&&r.proxy):t}}function qa(){return!!(Rs()||Ga)}var Ja=Symbol.for(`v-scx`),Ya=()=>L(Ja);function Xa(e,t){return eo(e,null,t)}function Za(e,t){return eo(e,null,{flush:`post`})}function Qa(e,t){return eo(e,null,{flush:`sync`})}function $a(e,t,n){return eo(e,t,n)}function eo(e,t,n=d){let{immediate:r,deep:i,flush:a,once:o}=n,s=_({},n),c=t&&r||!t&&a!==`post`,l;if(Ws){if(a===`sync`){let e=Ya();l=e.__watcherHandles||=[]}else if(!c){let e=()=>{};return e.stop=p,e.resume=p,e.pause=p,e}}let u=Ls;s.call=(e,t,n)=>Jn(e,u,t,n);let f=!1;a===`post`?s.scheduler=e=>{Fo(e,u&&u.suspense)}:a!==`sync`&&(f=!0,s.scheduler=(e,t)=>{t?e():or(e)}),s.augmentJob=e=>{t&&(e.flags|=4),f&&(e.flags|=2,u&&(e.id=u.uid,e.i=u))};let m=zn(e,t,s);return Ws&&(l?l.push(m):c&&m()),m}function to(e,t,n){let r=this.proxy,i=D(e)?e.includes(`.`)?no(r,e):()=>r[e]:e.bind(r,r),a;E(t)?a=t:(a=t.handler,n=t);let o=Vs(this),s=eo(i,a.bind(r),n);return o(),s}function no(e,t){let n=t.split(`.`);return()=>{let t=e;for(let e=0;e{let c,l=d,u;return Qa(()=>{let t=e[i];fe(c,t)&&(c=t,s())}),{get(){return o(),n.get?n.get(c):c},set(e){let o=n.set?n.set(e):e;if(!fe(o,c)&&!(l!==d&&fe(e,l)))return;let f=r.vnode.props;f&&(t in f||i in f||a in f)&&(`onUpdate:${t}`in f||`onUpdate:${i}`in f||`onUpdate:${a}`in f)||(c=e,s()),r.emit(`update:${t}`,o),fe(e,o)&&fe(e,l)&&!fe(o,u)&&s(),l=e,u=o}}});return s[Symbol.iterator]=()=>{let e=0;return{next(){return e<2?{value:e++?o||d:s,done:!1}:{done:!0}}}},s}var io=(e,t)=>t===`modelValue`||t===`model-value`?e.modelModifiers:e[`${t}Modifiers`]||e[`${A(t)}Modifiers`]||e[`${j(t)}Modifiers`];function ao(e,t,...n){if(e.isUnmounted)return;let r=e.vnode.props||d,i=n,a=t.startsWith(`update:`),o=a&&io(r,t.slice(7));o&&(o.trim&&(i=n.map(e=>D(e)?e.trim():e)),o.number&&(i=n.map(he)));let s,c=r[s=de(t)]||r[s=de(A(t))];!c&&a&&(c=r[s=de(j(t))]),c&&Jn(c,e,6,i);let l=r[s+`Once`];if(l){if(!e.emitted)e.emitted={};else if(e.emitted[s])return;e.emitted[s]=!0,Jn(l,e,6,i)}}var oo=new WeakMap;function so(e,t,n=!1){let r=n?oo:t.emitsCache,i=r.get(e);if(i!==void 0)return i;let a=e.emits,o={},s=!1;if(!E(e)){let r=e=>{let n=so(e,t,!0);n&&(s=!0,_(o,n))};!n&&t.mixins.length&&t.mixins.forEach(r),e.extends&&r(e.extends),e.mixins&&e.mixins.forEach(r)}return!a&&!s?(k(e)&&r.set(e,null),null):(x(a)?a.forEach(e=>o[e]=null):_(o,a),k(e)&&r.set(e,o),o)}function co(e,t){return!e||!h(t)?!1:(t=t.slice(2).replace(/Once$/,``),b(e,t[0].toLowerCase()+t.slice(1))||b(e,j(t))||b(e,t))}function lo(e){let{type:t,vnode:n,proxy:r,withProxy:i,propsOptions:[a],slots:o,attrs:s,emit:c,render:l,renderCache:u,props:d,data:f,setupState:p,ctx:m,inheritAttrs:h}=e,_=vr(e),v,y;try{if(n.shapeFlag&4){let e=i||r,t=e;v=ks(l.call(t,e,u,d,p,f,m)),y=s}else{let e=t;v=ks(e.length>1?e(d,{attrs:s,slots:o,emit:c}):e(d,null)),y=t.props?s:fo(s)}}catch(t){cs.length=0,Yn(t,e,1),v=z(os)}let b=v;if(y&&h!==!1){let e=Object.keys(y),{shapeFlag:t}=b;e.length&&t&7&&(a&&e.some(g)&&(y=po(y,a)),b=Ts(b,y,!1,!0))}return n.dirs&&(b=Ts(b,null,!1,!0),b.dirs=b.dirs?b.dirs.concat(n.dirs):n.dirs),n.transition&&Zr(b,n.transition),v=b,vr(_),v}function uo(e,t=!0){let n;for(let t=0;t{let t;for(let n in e)(n===`class`||n===`style`||h(n))&&((t||={})[n]=e[n]);return t},po=(e,t)=>{let n={};for(let r in e)(!g(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function mo(e,t,n){let{props:r,children:i,component:a}=e,{props:o,children:s,patchFlag:c}=t,l=a.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&c>=0){if(c&1024)return!0;if(c&16)return r?ho(r,o,l):!!o;if(c&8){let e=t.dynamicProps;for(let t=0;tObject.create(_o),yo=e=>Object.getPrototypeOf(e)===_o;function bo(e,t,n,r=!1){let i={},a=vo();for(let n in e.propsDefaults=Object.create(null),So(e,t,i,a),e.propsOptions[0])n in i||(i[n]=void 0);n?e.props=r?i:rn(i):e.type.props?e.props=i:e.props=a,e.attrs=a}function xo(e,t,n,r){let{props:i,attrs:a,vnode:{patchFlag:o}}=e,s=P(i),[c]=e.propsOptions,l=!1;if((r||o>0)&&!(o&16)){if(o&8){let n=e.vnode.dynamicProps;for(let r=0;r{c=!0;let[n,r]=To(e,t,!0);_(o,n),r&&s.push(...r)};!n&&t.mixins.length&&t.mixins.forEach(r),e.extends&&r(e.extends),e.mixins&&e.mixins.forEach(r)}if(!a&&!c)return k(e)&&r.set(e,f),f;if(x(a))for(let e=0;ee===`_`||e===`_ctx`||e===`$stable`,Oo=e=>x(e)?e.map(ks):[ks(e)],ko=(e,t,n)=>{if(t._n)return t;let r=Sr((...e)=>Oo(t(...e)),n);return r._c=!1,r},Ao=(e,t,n)=>{let r=e._ctx;for(let n in e){if(Do(n))continue;let i=e[n];if(E(i))t[n]=ko(n,i,r);else if(i!=null){let e=Oo(i);t[n]=()=>e}}},jo=(e,t)=>{let n=Oo(t);e.slots.default=()=>n},Mo=(e,t,n)=>{for(let r in t)(n||!Do(r))&&(e[r]=t[r])},No=(e,t,n)=>{let r=e.slots=vo();if(e.vnode.shapeFlag&32){let e=t._;e?(Mo(r,t,n),n&&me(r,`_`,e,!0)):Ao(t,r)}else t&&jo(e,t)},Po=(e,t,n)=>{let{vnode:r,slots:i}=e,a=!0,o=d;if(r.shapeFlag&32){let e=t._;e?n&&e===1?a=!1:Mo(i,t,n):(a=!t.$stable,Ao(t,i)),o=t}else t&&(jo(e,t),o={default:1});if(a)for(let e in i)!Do(e)&&o[e]==null&&delete i[e]},Fo=ns;function Io(e){return Ro(e)}function Lo(e){return Ro(e,fi)}function Ro(e,t){let n=ve();n.__VUE__=!0;let{insert:r,remove:i,patchProp:a,createElement:o,createText:s,createComment:c,setText:l,setElementText:u,parentNode:m,nextSibling:h,setScopeId:g=p,insertStaticContent:_}=e,v=(e,t,n,r=null,i=null,a=null,o=void 0,s=null,c=!!t.dynamicChildren)=>{if(e===t)return;e&&!vs(e,t)&&(r=ge(e),ue(e,i,a,!0),e=null),t.patchFlag===-2&&(c=!1,t.dynamicChildren=null);let{type:l,ref:u,shapeFlag:d}=t;switch(l){case as:y(e,t,n,r);break;case os:b(e,t,n,r);break;case ss:e??x(t,n,r,o);break;case R:te(e,t,n,r,i,a,o,s,c);break;default:d&1?w(e,t,n,r,i,a,o,s,c):d&6?ne(e,t,n,r,i,a,o,s,c):(d&64||d&128)&&l.process(e,t,n,r,i,a,o,s,c,be)}u!=null&&i?ii(u,e&&e.ref,a,t||e,!t):u==null&&e&&e.ref!=null&&ii(e.ref,null,a,e,!0)},y=(e,t,n,i)=>{if(e==null)r(t.el=s(t.children),n,i);else{let n=t.el=e.el;t.children!==e.children&&l(n,t.children)}},b=(e,t,n,i)=>{e==null?r(t.el=c(t.children||``),n,i):t.el=e.el},x=(e,t,n,r)=>{[e.el,e.anchor]=_(e.children,t,n,r,e.el,e.anchor)},S=({el:e,anchor:t},n,i)=>{let a;for(;e&&e!==t;)a=h(e),r(e,n,i),e=a;r(t,n,i)},C=({el:e,anchor:t})=>{let n;for(;e&&e!==t;)n=h(e),i(e),e=n;i(t)},w=(e,t,n,r,i,a,o,s,c)=>{if(t.type===`svg`?o=`svg`:t.type===`math`&&(o=`mathml`),e==null)T(t,n,r,i,a,o,s,c);else{let n=e.el&&e.el._isVueCE?e.el:null;try{n&&n._beginPatch(),O(e,t,i,a,o,s,c)}finally{n&&n._endPatch()}}},T=(e,t,n,i,s,c,l,d)=>{let f,p,{props:m,shapeFlag:h,transition:g,dirs:_}=e;if(f=e.el=o(e.type,c,m&&m.is,m),h&8?u(f,e.children):h&16&&D(e.children,f,null,i,s,zo(e,c),l,d),_&&wr(e,null,i,`created`),E(f,e,e.scopeId,l,i),m){for(let e in m)e!==`value`&&!oe(e)&&a(f,e,null,m[e],c,i);`value`in m&&a(f,`value`,null,m.value,c),(p=m.onVnodeBeforeMount)&&Ns(p,i,e)}_&&wr(e,null,i,`beforeMount`);let v=Vo(s,g);v&&g.beforeEnter(f),r(f,t,n),((p=m&&m.onVnodeMounted)||v||_)&&Fo(()=>{p&&Ns(p,i,e),v&&g.enter(f),_&&wr(e,null,i,`mounted`)},s)},E=(e,t,n,r,i)=>{if(n&&g(e,n),r)for(let t=0;t{for(let l=c;l{let c=t.el=e.el,{patchFlag:l,dynamicChildren:f,dirs:p}=t;l|=e.patchFlag&16;let m=e.props||d,h=t.props||d,g;if(n&&Bo(n,!1),(g=h.onVnodeBeforeUpdate)&&Ns(g,n,t,e),p&&wr(t,e,n,`beforeUpdate`),n&&Bo(n,!0),(m.innerHTML&&h.innerHTML==null||m.textContent&&h.textContent==null)&&u(c,``),f?k(e.dynamicChildren,f,c,n,r,zo(t,i),o):s||ce(e,t,c,null,n,r,zo(t,i),o,!1),l>0){if(l&16)ee(c,m,h,n,i);else if(l&2&&m.class!==h.class&&a(c,`class`,null,h.class,i),l&4&&a(c,`style`,m.style,h.style,i),l&8){let e=t.dynamicProps;for(let t=0;t{g&&Ns(g,n,t,e),p&&wr(t,e,n,`updated`)},r)},k=(e,t,n,r,i,a,o)=>{for(let s=0;s{if(t!==n){if(t!==d)for(let o in t)!oe(o)&&!(o in n)&&a(e,o,t[o],null,i,r);for(let o in n){if(oe(o))continue;let s=n[o],c=t[o];s!==c&&o!==`value`&&a(e,o,c,s,i,r)}`value`in n&&a(e,`value`,t.value,n.value,i)}},te=(e,t,n,i,a,o,c,l,u)=>{let d=t.el=e?e.el:s(``),f=t.anchor=e?e.anchor:s(``),{patchFlag:p,dynamicChildren:m,slotScopeIds:h}=t;h&&(l=l?l.concat(h):h),e==null?(r(d,n,i),r(f,n,i),D(t.children||[],n,f,a,o,c,l,u)):p>0&&p&64&&m&&e.dynamicChildren?(k(e.dynamicChildren,m,n,a,o,c,l),(t.key!=null||a&&t===a.subTree)&&Ho(e,t,!0)):ce(e,t,n,f,a,o,c,l,u)},ne=(e,t,n,r,i,a,o,s,c)=>{t.slotScopeIds=s,e==null?t.shapeFlag&512?i.ctx.activate(t,n,r,o,c):re(t,n,r,i,a,o,c):ie(e,t,c)},re=(e,t,n,r,i,a,o)=>{let s=e.component=Is(e,r,i);if(Di(e)&&(s.ctx.renderer=be),Gs(s,!1,o),s.asyncDep){if(i&&i.registerDep(s,ae,o),!e.el){let r=s.subTree=z(os);b(null,r,t,n),e.placeholder=r.el}}else ae(s,e,t,n,i,a,o)},ie=(e,t,n)=>{let r=t.component=e.component;if(mo(e,t,n))if(r.asyncDep&&!r.asyncResolved){se(r,t,n);return}else r.next=t,r.update();else t.el=e.el,r.vnode=t},ae=(e,t,n,r,i,a,o)=>{let s=()=>{if(e.isMounted){let{next:t,bu:n,u:r,parent:c,vnode:l}=e;{let n=Wo(e);if(n){t&&(t.el=l.el,se(e,t,o)),n.asyncDep.then(()=>{e.isUnmounted||s()});return}}let u=t,d;Bo(e,!1),t?(t.el=l.el,se(e,t,o)):t=l,n&&pe(n),(d=t.props&&t.props.onVnodeBeforeUpdate)&&Ns(d,c,t,l),Bo(e,!0);let f=lo(e),p=e.subTree;e.subTree=f,v(p,f,m(p.el),ge(p),e,i,a),t.el=f.el,u===null&&go(e,f.el),r&&Fo(r,i),(d=t.props&&t.props.onVnodeUpdated)&&Fo(()=>Ns(d,c,t,l),i)}else{let o,{el:s,props:c}=t,{bm:l,m:u,parent:d,root:f,type:p}=e,m=wi(t);if(Bo(e,!1),l&&pe(l),!m&&(o=c&&c.onVnodeBeforeMount)&&Ns(o,d,t),Bo(e,!0),s&&Se){let t=()=>{e.subTree=lo(e),Se(s,e.subTree,e,i,null)};m&&p.__asyncHydrate?p.__asyncHydrate(s,e,t):t()}else{f.ce&&f.ce._def.shadowRoot!==!1&&f.ce._injectChildStyle(p);let o=e.subTree=lo(e);v(null,o,n,r,e,i,a),t.el=o.el}if(u&&Fo(u,i),!m&&(o=c&&c.onVnodeMounted)){let e=t;Fo(()=>Ns(o,d,e),i)}(t.shapeFlag&256||d&&wi(d.vnode)&&d.vnode.shapeFlag&256)&&e.a&&Fo(e.a,i),e.isMounted=!0,t=n=r=null}};e.scope.on();let c=e.effect=new Ue(s);e.scope.off();let l=e.update=c.run.bind(c),u=e.job=c.runIfDirty.bind(c);u.i=e,u.id=e.uid,c.scheduler=()=>or(u),Bo(e,!0),l()},se=(e,t,n)=>{t.component=e;let r=e.vnode.props;e.vnode=t,e.next=null,xo(e,t.props,r,n),Po(e,t.children,n),ot(),lr(e),st()},ce=(e,t,n,r,i,a,o,s,c=!1)=>{let l=e&&e.children,d=e?e.shapeFlag:0,f=t.children,{patchFlag:p,shapeFlag:m}=t;if(p>0){if(p&128){le(l,f,n,r,i,a,o,s,c);return}else if(p&256){A(l,f,n,r,i,a,o,s,c);return}}m&8?(d&16&&he(l,i,a),f!==l&&u(n,f)):d&16?m&16?le(l,f,n,r,i,a,o,s,c):he(l,i,a,!0):(d&8&&u(n,``),m&16&&D(f,n,r,i,a,o,s,c))},A=(e,t,n,r,i,a,o,s,c)=>{e||=f,t||=f;let l=e.length,u=t.length,d=Math.min(l,u),p;for(p=0;pu?he(e,i,a,!0,!1,d):D(t,n,r,i,a,o,s,c,d)},le=(e,t,n,r,i,a,o,s,c)=>{let l=0,u=t.length,d=e.length-1,p=u-1;for(;l<=d&&l<=p;){let r=e[l],u=t[l]=c?As(t[l]):ks(t[l]);if(vs(r,u))v(r,u,n,null,i,a,o,s,c);else break;l++}for(;l<=d&&l<=p;){let r=e[d],l=t[p]=c?As(t[p]):ks(t[p]);if(vs(r,l))v(r,l,n,null,i,a,o,s,c);else break;d--,p--}if(l>d){if(l<=p){let e=p+1,d=ep)for(;l<=d;)ue(e[l],i,a,!0),l++;else{let m=l,h=l,g=new Map;for(l=h;l<=p;l++){let e=t[l]=c?As(t[l]):ks(t[l]);e.key!=null&&g.set(e.key,l)}let _,y=0,b=p-h+1,x=!1,S=0,C=Array(b);for(l=0;l=b){ue(r,i,a,!0);continue}let u;if(r.key!=null)u=g.get(r.key);else for(_=h;_<=p;_++)if(C[_-h]===0&&vs(r,t[_])){u=_;break}u===void 0?ue(r,i,a,!0):(C[u-h]=l+1,u>=S?S=u:x=!0,v(r,t[u],n,null,i,a,o,s,c),y++)}let w=x?Uo(C):f;for(_=w.length-1,l=b-1;l>=0;l--){let e=h+l,d=t[e],f=t[e+1],p=e+1{let{el:s,type:c,transition:l,children:u,shapeFlag:d}=e;if(d&6){j(e.component.subTree,t,n,a);return}if(d&128){e.suspense.move(t,n,a);return}if(d&64){c.move(e,t,n,be);return}if(c===R){r(s,t,n);for(let e=0;el.enter(s),o);else{let{leave:a,delayLeave:o,afterLeave:c}=l,u=()=>{e.ctx.isUnmounted?i(s):r(s,t,n)},d=()=>{s._isLeaving&&s[Rr](!0),a(s,()=>{u(),c&&c()})};o?o(s,u,d):d()}else r(s,t,n)},ue=(e,t,n,r=!1,i=!1)=>{let{type:a,props:o,ref:s,children:c,dynamicChildren:l,shapeFlag:u,patchFlag:d,dirs:f,cacheIndex:p}=e;if(d===-2&&(i=!1),s!=null&&(ot(),ii(s,null,n,e,!0),st()),p!=null&&(t.renderCache[p]=void 0),u&256){t.ctx.deactivate(e);return}let m=u&1&&f,h=!wi(e),g;if(h&&(g=o&&o.onVnodeBeforeUnmount)&&Ns(g,t,e),u&6)me(e.component,n,r);else{if(u&128){e.suspense.unmount(n,r);return}m&&wr(e,null,t,`beforeUnmount`),u&64?e.type.remove(e,t,n,be,r):l&&!l.hasOnce&&(a!==R||d>0&&d&64)?he(l,t,n,!1,!0):(a===R&&d&384||!i&&u&16)&&he(c,t,n),r&&de(e)}(h&&(g=o&&o.onVnodeUnmounted)||m)&&Fo(()=>{g&&Ns(g,t,e),m&&wr(e,null,t,`unmounted`)},n)},de=e=>{let{type:t,el:n,anchor:r,transition:a}=e;if(t===R){fe(n,r);return}if(t===ss){C(e);return}let o=()=>{i(n),a&&!a.persisted&&a.afterLeave&&a.afterLeave()};if(e.shapeFlag&1&&a&&!a.persisted){let{leave:t,delayLeave:r}=a,i=()=>t(n,o);r?r(e.el,o,i):i()}else o()},fe=(e,t)=>{let n;for(;e!==t;)n=h(e),i(e),e=n;i(t)},me=(e,t,n)=>{let{bum:r,scope:i,job:a,subTree:o,um:s,m:c,a:l}=e;Go(c),Go(l),r&&pe(r),i.stop(),a&&(a.flags|=8,ue(o,e,t,n)),s&&Fo(s,t),Fo(()=>{e.isUnmounted=!0},t)},he=(e,t,n,r=!1,i=!1,a=0)=>{for(let o=a;o{if(e.shapeFlag&6)return ge(e.component.subTree);if(e.shapeFlag&128)return e.suspense.next();let t=h(e.anchor||e.el),n=t&&t[Tr];return n?h(n):t},_e=!1,ye=(e,t,n)=>{e==null?t._vnode&&ue(t._vnode,null,null,!0):v(t._vnode||null,e,t,null,null,null,n),t._vnode=e,_e||=(_e=!0,lr(),ur(),!1)},be={p:v,um:ue,m:j,r:de,mt:re,mc:D,pc:ce,pbc:k,n:ge,o:e},xe,Se;return t&&([xe,Se]=t(be)),{render:ye,hydrate:xe,createApp:Wa(ye,xe)}}function zo({type:e,props:t},n){return n===`svg`&&e===`foreignObject`||n===`mathml`&&e===`annotation-xml`&&t&&t.encoding&&t.encoding.includes(`html`)?void 0:n}function Bo({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Vo(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Ho(e,t,n=!1){let r=e.children,i=t.children;if(x(r)&&x(i))for(let e=0;e>1,e[n[s]]0&&(t[r]=n[a-1]),n[a]=r)}}for(a=n.length,o=n[a-1];a-- >0;)n[a]=o,o=t[o];return n}function Wo(e){let t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Wo(t)}function Go(e){if(e)for(let t=0;te.__isSuspense,qo=0,Jo={name:`Suspense`,__isSuspense:!0,process(e,t,n,r,i,a,o,s,c,l){if(e==null)Xo(t,n,r,i,a,o,s,c,l);else{if(a&&a.deps>0&&!e.suspense.isInFallback){t.suspense=e.suspense,t.suspense.vnode=t,t.el=e.el;return}Zo(e,t,n,r,i,o,s,c,l)}},hydrate:$o,normalize:es};function Yo(e,t){let n=e.props&&e.props[t];E(n)&&n()}function Xo(e,t,n,r,i,a,o,s,c){let{p:l,o:{createElement:u}}=c,d=u(`div`),f=e.suspense=Qo(e,i,r,t,d,n,a,o,s,c);l(null,f.pendingBranch=e.ssContent,d,null,r,f,a,o),f.deps>0?(Yo(e,`onPending`),Yo(e,`onFallback`),l(null,e.ssFallback,t,n,r,null,a,o),rs(f,e.ssFallback)):f.resolve(!1,!0)}function Zo(e,t,n,r,i,a,o,s,{p:c,um:l,o:{createElement:u}}){let d=t.suspense=e.suspense;d.vnode=t,t.el=e.el;let f=t.ssContent,p=t.ssFallback,{activeBranch:m,pendingBranch:h,isInFallback:g,isHydrating:_}=d;if(h)d.pendingBranch=f,vs(h,f)?(c(h,f,d.hiddenContainer,null,i,d,a,o,s),d.deps<=0?d.resolve():g&&(_||(c(m,p,n,r,i,null,a,o,s),rs(d,p)))):(d.pendingId=qo++,_?(d.isHydrating=!1,d.activeBranch=h):l(h,i,d),d.deps=0,d.effects.length=0,d.hiddenContainer=u(`div`),g?(c(null,f,d.hiddenContainer,null,i,d,a,o,s),d.deps<=0?d.resolve():(c(m,p,n,r,i,null,a,o,s),rs(d,p))):m&&vs(m,f)?(c(m,f,n,r,i,d,a,o,s),d.resolve(!0)):(c(null,f,d.hiddenContainer,null,i,d,a,o,s),d.deps<=0&&d.resolve()));else if(m&&vs(m,f))c(m,f,n,r,i,d,a,o,s),rs(d,f);else if(Yo(t,`onPending`),d.pendingBranch=f,f.shapeFlag&512?d.pendingId=f.component.suspenseId:d.pendingId=qo++,c(null,f,d.hiddenContainer,null,i,d,a,o,s),d.deps<=0)d.resolve();else{let{timeout:e,pendingId:t}=d;e>0?setTimeout(()=>{d.pendingId===t&&d.fallback(p)},e):e===0&&d.fallback(p)}}function Qo(e,t,n,r,i,a,o,s,c,l,u=!1){let{p:d,m:f,um:p,n:m,o:{parentNode:h,remove:g}}=l,_,v=is(e);v&&t&&t.pendingBranch&&(_=t.pendingId,t.deps++);let y=e.props?ge(e.props.timeout):void 0,b=a,x={vnode:e,parent:t,parentComponent:n,namespace:o,container:r,hiddenContainer:i,deps:0,pendingId:qo++,timeout:typeof y==`number`?y:-1,activeBranch:null,pendingBranch:null,isInFallback:!u,isHydrating:u,isUnmounted:!1,effects:[],resolve(e=!1,n=!1){let{vnode:r,activeBranch:i,pendingBranch:o,pendingId:s,effects:c,parentComponent:l,container:u,isInFallback:d}=x,g=!1;x.isHydrating?x.isHydrating=!1:e||(g=i&&o.transition&&o.transition.mode===`out-in`,g&&(i.transition.afterLeave=()=>{s===x.pendingId&&(f(o,u,a===b?m(i):a,0),cr(c),d&&r.ssFallback&&(r.ssFallback.el=null))}),i&&(h(i.el)===u&&(a=m(i)),p(i,l,x,!0),!g&&d&&r.ssFallback&&Fo(()=>r.ssFallback.el=null,x)),g||f(o,u,a,0)),rs(x,o),x.pendingBranch=null,x.isInFallback=!1;let y=x.parent,S=!1;for(;y;){if(y.pendingBranch){y.effects.push(...c),S=!0;break}y=y.parent}!S&&!g&&cr(c),x.effects=[],v&&t&&t.pendingBranch&&_===t.pendingId&&(t.deps--,t.deps===0&&!n&&t.resolve()),Yo(r,`onResolve`)},fallback(e){if(!x.pendingBranch)return;let{vnode:t,activeBranch:n,parentComponent:r,container:i,namespace:a}=x;Yo(t,`onFallback`);let o=m(n),l=()=>{x.isInFallback&&(d(null,e,i,o,r,null,a,s,c),rs(x,e))},u=e.transition&&e.transition.mode===`out-in`;u&&(n.transition.afterLeave=l),x.isInFallback=!0,p(n,r,null,!0),u||l()},move(e,t,n){x.activeBranch&&f(x.activeBranch,e,t,n),x.container=e},next(){return x.activeBranch&&m(x.activeBranch)},registerDep(e,t,n){let r=!!x.pendingBranch;r&&x.deps++;let i=e.vnode.el;e.asyncDep.catch(t=>{Yn(t,e,0)}).then(a=>{if(e.isUnmounted||x.isUnmounted||x.pendingId!==e.suspenseId)return;e.asyncResolved=!0;let{vnode:s}=e;qs(e,a,!1),i&&(s.el=i);let c=!i&&e.subTree.el;t(e,s,h(i||e.subTree.el),i?null:m(e.subTree),x,o,n),c&&(s.placeholder=null,g(c)),go(e,s.el),r&&--x.deps===0&&x.resolve()})},unmount(e,t){x.isUnmounted=!0,x.activeBranch&&p(x.activeBranch,n,e,t),x.pendingBranch&&p(x.pendingBranch,n,e,t)}};return x}function $o(e,t,n,r,i,a,o,s,c){let l=t.suspense=Qo(t,r,n,e.parentNode,document.createElement(`div`),null,i,a,o,s,!0),u=c(e,l.pendingBranch=t.ssContent,n,l,a,o);return l.deps===0&&l.resolve(!1,!0),u}function es(e){let{shapeFlag:t,children:n}=e,r=t&32;e.ssContent=ts(r?n.default:n),e.ssFallback=r?ts(n.fallback):z(os)}function ts(e){let t;if(E(e)){let n=fs&&e._c;n&&(e._d=!1,us()),e=e(),n&&(e._d=!0,t=ls,ds())}return x(e)&&(e=uo(e)),e=ks(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(t=>t!==e)),e}function ns(e,t){t&&t.pendingBranch?x(e)?t.effects.push(...e):t.effects.push(e):cr(e)}function rs(e,t){e.activeBranch=t;let{vnode:n,parentComponent:r}=e,i=t.el;for(;!i&&t.component;)t=t.component.subTree,i=t.el;n.el=i,r&&r.subTree===n&&(r.vnode.el=i,go(r,i))}function is(e){let t=e.props&&e.props.suspensible;return t!=null&&t!==!1}var R=Symbol.for(`v-fgt`),as=Symbol.for(`v-txt`),os=Symbol.for(`v-cmt`),ss=Symbol.for(`v-stc`),cs=[],ls=null;function us(e=!1){cs.push(ls=e?null:[])}function ds(){cs.pop(),ls=cs[cs.length-1]||null}var fs=1;function ps(e,t=!1){fs+=e,e<0&&ls&&t&&(ls.hasOnce=!0)}function ms(e){return e.dynamicChildren=fs>0?ls||f:null,ds(),fs>0&&ls&&ls.push(e),e}function hs(e,t,n,r,i,a){return ms(Ss(e,t,n,r,i,a,!0))}function gs(e,t,n,r,i){return ms(z(e,t,n,r,i,!0))}function _s(e){return e?e.__v_isVNode===!0:!1}function vs(e,t){return e.type===t.type&&e.key===t.key}function ys(e){}var bs=({key:e})=>e??null,xs=({ref:e,ref_key:t,ref_for:n})=>(typeof e==`number`&&(e=``+e),e==null?null:D(e)||F(e)||E(e)?{i:gr,r:e,k:t,f:!!n}:e);function Ss(e,t=null,n=null,r=0,i=null,a=e===R?0:1,o=!1,s=!1){let c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&bs(t),ref:t&&xs(t),scopeId:_r,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:a,patchFlag:r,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:gr};return s?(js(c,n),a&128&&e.normalize(c)):n&&(c.shapeFlag|=D(n)?8:16),fs>0&&!o&&ls&&(c.patchFlag>0||a&6)&&c.patchFlag!==32&&ls.push(c),c}var z=Cs;function Cs(e,t=null,n=null,r=0,i=null,a=!1){if((!e||e===Zi)&&(e=os),_s(e)){let r=Ts(e,t,!0);return n&&js(r,n),fs>0&&!a&&ls&&(r.shapeFlag&6?ls[ls.indexOf(e)]=r:ls.push(r)),r.patchFlag=-2,r}if(rc(e)&&(e=e.__vccOpts),t){t=ws(t);let{class:e,style:n}=t;e&&!D(e)&&(t.class=M(e)),k(n)&&(dn(n)&&!x(n)&&(n=_({},n)),t.style=be(n))}let o=D(e)?1:Ko(e)?128:Er(e)?64:k(e)?4:E(e)?2:0;return Ss(e,t,n,r,i,o,a,!0)}function ws(e){return e?dn(e)||yo(e)?_({},e):e:null}function Ts(e,t,n=!1,r=!1){let{props:i,ref:a,patchFlag:o,children:s,transition:c}=e,l=t?Ms(i||{},t):i,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:l,key:l&&bs(l),ref:t&&t.ref?n&&a?x(a)?a.concat(xs(t)):[a,xs(t)]:xs(t):a,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:s,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==R?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:c,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Ts(e.ssContent),ssFallback:e.ssFallback&&Ts(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return c&&r&&Zr(u,c.clone(u)),u}function Es(e=` `,t=0){return z(as,null,e,t)}function Ds(e,t){let n=z(ss,null,e);return n.staticCount=t,n}function Os(e=``,t=!1){return t?(us(),gs(os,null,e)):z(os,null,e)}function ks(e){return e==null||typeof e==`boolean`?z(os):x(e)?z(R,null,e.slice()):_s(e)?As(e):z(as,null,String(e))}function As(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Ts(e)}function js(e,t){let n=0,{shapeFlag:r}=e;if(t==null)t=null;else if(x(t))n=16;else if(typeof t==`object`)if(r&65){let n=t.default;n&&(n._c&&(n._d=!1),js(e,n()),n._c&&(n._d=!0));return}else{n=32;let r=t._;!r&&!yo(t)?t._ctx=gr:r===3&&gr&&(gr.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else E(t)?(t={default:t,_ctx:gr},n=32):(t=String(t),r&64?(n=16,t=[Es(t)]):n=8);e.children=t,e.shapeFlag|=n}function Ms(...e){let t={};for(let n=0;nLs||gr,zs,Bs;{let e=ve(),t=(t,n)=>{let r;return(r=e[t])||(r=e[t]=[]),r.push(n),e=>{r.length>1?r.forEach(t=>t(e)):r[0](e)}};zs=t(`__VUE_INSTANCE_SETTERS__`,e=>Ls=e),Bs=t(`__VUE_SSR_SETTERS__`,e=>Ws=e)}var Vs=e=>{let t=Ls;return zs(e),e.scope.on(),()=>{e.scope.off(),zs(t)}},Hs=()=>{Ls&&Ls.scope.off(),zs(null)};function Us(e){return e.vnode.shapeFlag&4}var Ws=!1;function Gs(e,t=!1,n=!1){t&&Bs(t);let{props:r,children:i}=e.vnode,a=Us(e);bo(e,r,a,t),No(e,i,n||t);let o=a?Ks(e,t):void 0;return t&&Bs(!1),o}function Ks(e,t){let n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,ua);let{setup:r}=n;if(r){ot();let n=e.setupContext=r.length>1?ec(e):null,i=Vs(e),a=qn(r,e,0,[e.props,n]),o=ee(a);if(st(),i(),(o||e.sp)&&!wi(e)&&ti(e),o){if(a.then(Hs,Hs),t)return a.then(n=>{qs(e,n,t)}).catch(t=>{Yn(t,e,0)});e.asyncDep=a}else qs(e,a,t)}else Qs(e,t)}function qs(e,t,n){E(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:k(t)&&(e.setupState=Sn(t)),Qs(e,n)}var Js,Ys;function Xs(e){Js=e,Ys=e=>{e.render._rc&&(e.withProxy=new Proxy(e.ctx,da))}}var Zs=()=>!Js;function Qs(e,t,n){let r=e.type;if(!e.render){if(!t&&Js&&!r.render){let t=r.template||Ma(e).template;if(t){let{isCustomElement:n,compilerOptions:i}=e.appContext.config,{delimiters:a,compilerOptions:o}=r,s=_(_({isCustomElement:n,delimiters:a},i),o);r.render=Js(t,s)}}e.render=r.render||p,Ys&&Ys(e)}{let t=Vs(e);ot();try{Oa(e)}finally{st(),t()}}}var $s={get(e,t){return _t(e,`get`,``),e[t]}};function ec(e){return{attrs:new Proxy(e.attrs,$s),slots:e.slots,emit:e.emit,expose:t=>{e.exposed=t||{}}}}function tc(e){return e.exposed?e.exposeProxy||=new Proxy(Sn(fn(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in ca)return ca[n](e)},has(e,t){return t in e||t in ca}}):e.proxy}function nc(e,t=!0){return E(e)?e.displayName||e.name:e.name||t&&e.__name}function rc(e){return E(e)&&`__vccOpts`in e}var B=(e,t)=>jn(e,t,Ws);function ic(e,t,n){try{ps(-1);let r=arguments.length;return r===2?k(t)&&!x(t)?_s(t)?z(e,null,[t]):z(e,t):z(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&_s(n)&&(n=[n]),z(e,t,n))}finally{ps(1)}}function ac(){return;function e(t,n,r){let i=t[r];if(x(i)&&i.includes(n)||k(i)&&n in i||t.extends&&e(t.extends,n,r)||t.mixins&&t.mixins.some(t=>e(t,n,r)))return!0}}function oc(e,t,n,r){let i=n[r];if(i&&sc(i,e))return i;let a=t();return a.memo=e.slice(),a.cacheIndex=r,n[r]=a}function sc(e,t){let n=e.memo;if(n.length!=t.length)return!1;for(let e=0;e0&&ls&&ls.push(e),!0}var cc=`3.5.25`,lc=p,uc=Kn,dc=pr,fc=hr,pc={createComponentInstance:Is,setupComponent:Gs,renderComponentRoot:lo,setCurrentRenderingInstance:vr,isVNode:_s,normalizeVNode:ks,getComponentPublicInstance:tc,ensureValidVNode:aa,pushWarningContext:Hn,popWarningContext:Un},mc=void 0,hc=typeof window<`u`&&window.trustedTypes;if(hc)try{mc=hc.createPolicy(`vue`,{createHTML:e=>e})}catch{}var gc=mc?e=>mc.createHTML(e):e=>e,_c=`http://www.w3.org/2000/svg`,vc=`http://www.w3.org/1998/Math/MathML`,yc=typeof document<`u`?document:null,bc=yc&&yc.createElement(`template`),xc={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{let t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{let i=t===`svg`?yc.createElementNS(_c,e):t===`mathml`?yc.createElementNS(vc,e):n?yc.createElement(e,{is:n}):yc.createElement(e);return e===`select`&&r&&r.multiple!=null&&i.setAttribute(`multiple`,r.multiple),i},createText:e=>yc.createTextNode(e),createComment:e=>yc.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>yc.querySelector(e),setScopeId(e,t){e.setAttribute(t,``)},insertStaticContent(e,t,n,r,i,a){let o=n?n.previousSibling:t.lastChild;if(i&&(i===a||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),n),!(i===a||!(i=i.nextSibling)););else{bc.innerHTML=gc(r===`svg`?`${e}`:r===`mathml`?`${e}`:e);let i=bc.content;if(r===`svg`||r===`mathml`){let e=i.firstChild;for(;e.firstChild;)i.appendChild(e.firstChild);i.removeChild(e)}t.insertBefore(i,n)}return[o?o.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Sc=`transition`,Cc=`animation`,wc=Symbol(`_vtc`),Tc={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},Ec=_({},Hr,Tc),Dc=(e=>(e.displayName=`Transition`,e.props=Ec,e))((e,{slots:t})=>ic(Kr,Ac(e),t)),Oc=(e,t=[])=>{x(e)?e.forEach(e=>e(...t)):e&&e(...t)},kc=e=>e?x(e)?e.some(e=>e.length>1):e.length>1:!1;function Ac(e){let t={};for(let n in e)n in Tc||(t[n]=e[n]);if(e.css===!1)return t;let{name:n=`v`,type:r,duration:i,enterFromClass:a=`${n}-enter-from`,enterActiveClass:o=`${n}-enter-active`,enterToClass:s=`${n}-enter-to`,appearFromClass:c=a,appearActiveClass:l=o,appearToClass:u=s,leaveFromClass:d=`${n}-leave-from`,leaveActiveClass:f=`${n}-leave-active`,leaveToClass:p=`${n}-leave-to`}=e,m=jc(i),h=m&&m[0],g=m&&m[1],{onBeforeEnter:v,onEnter:y,onEnterCancelled:b,onLeave:x,onLeaveCancelled:S,onBeforeAppear:C=v,onAppear:w=y,onAppearCancelled:T=b}=t,E=(e,t,n,r)=>{e._enterCancelled=r,Pc(e,t?u:s),Pc(e,t?l:o),n&&n()},D=(e,t)=>{e._isLeaving=!1,Pc(e,d),Pc(e,p),Pc(e,f),t&&t()},O=e=>(t,n)=>{let i=e?w:y,o=()=>E(t,e,n);Oc(i,[t,o]),Fc(()=>{Pc(t,e?c:a),Nc(t,e?u:s),kc(i)||Lc(t,r,h,o)})};return _(t,{onBeforeEnter(e){Oc(v,[e]),Nc(e,a),Nc(e,o)},onBeforeAppear(e){Oc(C,[e]),Nc(e,c),Nc(e,l)},onEnter:O(!1),onAppear:O(!0),onLeave(e,t){e._isLeaving=!0;let n=()=>D(e,t);Nc(e,d),e._enterCancelled?(Nc(e,f),Vc(e)):(Vc(e),Nc(e,f)),Fc(()=>{e._isLeaving&&(Pc(e,d),Nc(e,p),kc(x)||Lc(e,r,g,n))}),Oc(x,[e,n])},onEnterCancelled(e){E(e,!1,void 0,!0),Oc(b,[e])},onAppearCancelled(e){E(e,!0,void 0,!0),Oc(T,[e])},onLeaveCancelled(e){D(e),Oc(S,[e])}})}function jc(e){if(e==null)return null;if(k(e))return[Mc(e.enter),Mc(e.leave)];{let t=Mc(e);return[t,t]}}function Mc(e){return ge(e)}function Nc(e,t){t.split(/\s+/).forEach(t=>t&&e.classList.add(t)),(e[wc]||(e[wc]=new Set)).add(t)}function Pc(e,t){t.split(/\s+/).forEach(t=>t&&e.classList.remove(t));let n=e[wc];n&&(n.delete(t),n.size||(e[wc]=void 0))}function Fc(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}var Ic=0;function Lc(e,t,n,r){let i=e._endId=++Ic,a=()=>{i===e._endId&&r()};if(n!=null)return setTimeout(a,n);let{type:o,timeout:s,propCount:c}=Rc(e,t);if(!o)return r();let l=o+`end`,u=0,d=()=>{e.removeEventListener(l,f),a()},f=t=>{t.target===e&&++u>=c&&d()};setTimeout(()=>{u(n[e]||``).split(`, `),i=r(`${Sc}Delay`),a=r(`${Sc}Duration`),o=zc(i,a),s=r(`${Cc}Delay`),c=r(`${Cc}Duration`),l=zc(s,c),u=null,d=0,f=0;t===Sc?o>0&&(u=Sc,d=o,f=a.length):t===Cc?l>0&&(u=Cc,d=l,f=c.length):(d=Math.max(o,l),u=d>0?o>l?Sc:Cc:null,f=u?u===Sc?a.length:c.length:0);let p=u===Sc&&/\b(?:transform|all)(?:,|$)/.test(r(`${Sc}Property`).toString());return{type:u,timeout:d,propCount:f,hasTransform:p}}function zc(e,t){for(;e.lengthBc(t)+Bc(e[n])))}function Bc(e){return e===`auto`?0:Number(e.slice(0,-1).replace(`,`,`.`))*1e3}function Vc(e){return(e?e.ownerDocument:document).body.offsetHeight}function Hc(e,t,n){let r=e[wc];r&&(t=(t?[t,...r]:[...r]).join(` `)),t==null?e.removeAttribute(`class`):n?e.setAttribute(`class`,t):e.className=t}var Uc=Symbol(`_vod`),Wc=Symbol(`_vsh`),Gc={name:`show`,beforeMount(e,{value:t},{transition:n}){e[Uc]=e.style.display===`none`?``:e.style.display,n&&t?n.beforeEnter(e):Kc(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!=!n&&(r?t?(r.beforeEnter(e),Kc(e,!0),r.enter(e)):r.leave(e,()=>{Kc(e,!1)}):Kc(e,t))},beforeUnmount(e,{value:t}){Kc(e,t)}};function Kc(e,t){e.style.display=t?e[Uc]:`none`,e[Wc]=!t}function qc(){Gc.getSSRProps=({value:e})=>{if(!e)return{style:{display:`none`}}}}var Jc=Symbol(``);function Yc(e){let t=Rs();if(!t)return;let n=t.ut=(n=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach(e=>Zc(e,n))},r=()=>{let r=e(t.proxy);t.ce?Zc(t.ce,r):Xc(t.subTree,r),n(r)};Bi(()=>{cr(r)}),zi(()=>{$a(r,p,{flush:`post`});let e=new MutationObserver(r);e.observe(t.subTree.el.parentNode,{childList:!0}),Ui(()=>e.disconnect())})}function Xc(e,t){if(e.shapeFlag&128){let n=e.suspense;e=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push(()=>{Xc(n.activeBranch,t)})}for(;e.component;)e=e.component.subTree;if(e.shapeFlag&1&&e.el)Zc(e.el,t);else if(e.type===R)e.children.forEach(e=>Xc(e,t));else if(e.type===ss){let{el:n,anchor:r}=e;for(;n&&(Zc(n,t),n!==r);)n=n.nextSibling}}function Zc(e,t){if(e.nodeType===1){let n=e.style,r=``;for(let e in t){let i=Ie(t[e]);n.setProperty(`--${e}`,i),r+=`--${e}: ${i};`}n[Jc]=r}}var Qc=/(?:^|;)\s*display\s*:/;function $c(e,t,n){let r=e.style,i=D(n),a=!1;if(n&&!i){if(t)if(D(t))for(let e of t.split(`;`)){let t=e.slice(0,e.indexOf(`:`)).trim();n[t]??tl(r,t,``)}else for(let e in t)n[e]??tl(r,e,``);for(let e in n)e===`display`&&(a=!0),tl(r,e,n[e])}else if(i){if(t!==n){let e=r[Jc];e&&(n+=`;`+e),r.cssText=n,a=Qc.test(n)}}else t&&e.removeAttribute(`style`);Uc in e&&(e[Uc]=a?r.display:``,e[Wc]&&(r.display=`none`))}var el=/\s*!important$/;function tl(e,t,n){if(x(n))n.forEach(n=>tl(e,t,n));else if(n??=``,t.startsWith(`--`))e.setProperty(t,n);else{let r=il(e,t);el.test(n)?e.setProperty(j(r),n.replace(el,``),`important`):e[r]=n}}var nl=[`Webkit`,`Moz`,`ms`],rl={};function il(e,t){let n=rl[t];if(n)return n;let r=A(t);if(r!==`filter`&&r in e)return rl[t]=r;r=ue(r);for(let n=0;nml||=(hl.then(()=>ml=0),Date.now());function _l(e,t){let n=e=>{if(!e._vts)e._vts=Date.now();else if(e._vts<=n.attached)return;Jn(vl(e,n.value),t,5,[e])};return n.value=e,n.attached=gl(),n}function vl(e,t){if(x(t)){let n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(e=>t=>!t._stopped&&e&&e(t))}else return t}var yl=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,bl=(e,t,n,r,i,a)=>{let o=i===`svg`;t===`class`?Hc(e,r,o):t===`style`?$c(e,n,r):h(t)?g(t)||dl(e,t,n,r,a):(t[0]===`.`?(t=t.slice(1),!0):t[0]===`^`?(t=t.slice(1),!1):xl(e,t,r,o))?(sl(e,t,r),!e.tagName.includes(`-`)&&(t===`value`||t===`checked`||t===`selected`)&&ol(e,t,r,o,a,t!==`value`)):e._isVueCE&&(/[A-Z]/.test(t)||!D(r))?sl(e,A(t),r,a,t):(t===`true-value`?e._trueValue=r:t===`false-value`&&(e._falseValue=r),ol(e,t,r,o))};function xl(e,t,n,r){if(r)return!!(t===`innerHTML`||t===`textContent`||t in e&&yl(t)&&E(n));if(t===`spellcheck`||t===`draggable`||t===`translate`||t===`autocorrect`||t===`sandbox`&&e.tagName===`IFRAME`||t===`form`||t===`list`&&e.tagName===`INPUT`||t===`type`&&e.tagName===`TEXTAREA`)return!1;if(t===`width`||t===`height`){let t=e.tagName;if(t===`IMG`||t===`VIDEO`||t===`CANVAS`||t===`SOURCE`)return!1}return yl(t)&&D(n)?!1:t in e}var Sl={};function Cl(e,t,n){let r=$r(e,t);ie(r)&&(r=_({},r,t));class i extends El{constructor(e){super(r,e,n)}}return i.def=r,i}var wl=((e,t)=>Cl(e,t,hu)),Tl=typeof HTMLElement<`u`?HTMLElement:class{},El=class e extends Tl{constructor(e,t={},n=mu){super(),this._def=e,this._props=t,this._createApp=n,this._isVueCE=!0,this._instance=null,this._app=null,this._nonce=this._def.nonce,this._connected=!1,this._resolved=!1,this._patching=!1,this._dirty=!1,this._numberProps=null,this._styleChildren=new WeakSet,this._ob=null,this.shadowRoot&&n!==mu?this._root=this.shadowRoot:e.shadowRoot===!1?this._root=this:(this.attachShadow(_({},e.shadowRootOptions,{mode:`open`})),this._root=this.shadowRoot)}connectedCallback(){if(!this.isConnected)return;!this.shadowRoot&&!this._resolved&&this._parseSlots(),this._connected=!0;let t=this;for(;t&&=t.parentNode||t.host;)if(t instanceof e){this._parent=t;break}this._instance||(this._resolved?this._mount(this._def):t&&t._pendingResolve?this._pendingResolve=t._pendingResolve.then(()=>{this._pendingResolve=void 0,this._resolveDef()}):this._resolveDef())}_setParent(e=this._parent){e&&(this._instance.parent=e._instance,this._inheritParentContext(e))}_inheritParentContext(e=this._parent){e&&this._app&&Object.setPrototypeOf(this._app._context.provides,e._instance.provides)}disconnectedCallback(){this._connected=!1,ir(()=>{this._connected||(this._ob&&=(this._ob.disconnect(),null),this._app&&this._app.unmount(),this._instance&&(this._instance.ce=void 0),this._app=this._instance=null,this._teleportTargets&&=(this._teleportTargets.clear(),void 0))})}_processMutations(e){for(let t of e)this._setAttr(t.attributeName)}_resolveDef(){if(this._pendingResolve)return;for(let e=0;e{this._resolved=!0,this._pendingResolve=void 0;let{props:n,styles:r}=e,i;if(n&&!x(n))for(let e in n){let t=n[e];(t===Number||t&&t.type===Number)&&(e in this._props&&(this._props[e]=ge(this._props[e])),(i||=Object.create(null))[A(e)]=!0)}this._numberProps=i,this._resolveProps(e),this.shadowRoot&&this._applyStyles(r),this._mount(e)},t=this._def.__asyncLoader;t?this._pendingResolve=t().then(t=>{t.configureApp=this._def.configureApp,e(this._def=t,!0)}):e(this._def)}_mount(e){this._app=this._createApp(e),this._inheritParentContext(),e.configureApp&&e.configureApp(this._app),this._app._ceVNode=this._createVNode(),this._app.mount(this._root);let t=this._instance&&this._instance.exposed;if(t)for(let e in t)b(this,e)||Object.defineProperty(this,e,{get:()=>I(t[e])})}_resolveProps(e){let{props:t}=e,n=x(t)?t:Object.keys(t||{});for(let e of Object.keys(this))e[0]!==`_`&&n.includes(e)&&this._setProp(e,this[e]);for(let e of n.map(A))Object.defineProperty(this,e,{get(){return this._getProp(e)},set(t){this._setProp(e,t,!0,!this._patching)}})}_setAttr(e){if(e.startsWith(`data-v-`))return;let t=this.hasAttribute(e),n=t?this.getAttribute(e):Sl,r=A(e);t&&this._numberProps&&this._numberProps[r]&&(n=ge(n)),this._setProp(r,n,!1,!0)}_getProp(e){return this._props[e]}_setProp(e,t,n=!0,r=!1){if(t!==this._props[e]&&(this._dirty=!0,t===Sl?delete this._props[e]:(this._props[e]=t,e===`key`&&this._app&&(this._app._ceVNode.key=t)),r&&this._instance&&this._update(),n)){let n=this._ob;n&&(this._processMutations(n.takeRecords()),n.disconnect()),t===!0?this.setAttribute(j(e),``):typeof t==`string`||typeof t==`number`?this.setAttribute(j(e),t+``):t||this.removeAttribute(j(e)),n&&n.observe(this,{attributes:!0})}}_update(){let e=this._createVNode();this._app&&(e.appContext=this._app._context),fu(e,this._root)}_createVNode(){let e={};this.shadowRoot||(e.onVnodeMounted=e.onVnodeUpdated=this._renderSlots.bind(this));let t=z(this._def,_(e,this._props));return this._instance||(t.ce=e=>{this._instance=e,e.ce=this,e.isCE=!0;let t=(e,t)=>{this.dispatchEvent(new CustomEvent(e,ie(t[0])?_({detail:t},t[0]):{detail:t}))};e.emit=(e,...n)=>{t(e,n),j(e)!==e&&t(j(e),n)},this._setParent()}),t}_applyStyles(e,t){if(!e)return;if(t){if(t===this._def||this._styleChildren.has(t))return;this._styleChildren.add(t)}let n=this._nonce;for(let t=e.length-1;t>=0;t--){let r=document.createElement(`style`);n&&r.setAttribute(`nonce`,n),r.textContent=e[t],this.shadowRoot.prepend(r)}}_parseSlots(){let e=this._slots={},t;for(;t=this.firstChild;){let n=t.nodeType===1&&t.getAttribute(`slot`)||`default`;(e[n]||(e[n]=[])).push(t),this.removeChild(t)}}_renderSlots(){let e=this._getSlots(),t=this._instance.type.__scopeId;for(let n=0;n(delete e.props.mode,e))({name:`TransitionGroup`,props:_({},Ec,{tag:String,moveClass:String}),setup(e,{slots:t}){let n=Rs(),r=Br(),i,a;return Vi(()=>{if(!i.length)return;let t=e.moveClass||`${e.name||`v`}-move`;if(!Rl(i[0].el,n.vnode.el,t)){i=[];return}i.forEach(Fl),i.forEach(Il);let r=i.filter(Ll);Vc(n.vnode.el),r.forEach(e=>{let n=e.el,r=n.style;Nc(n,t),r.transform=r.webkitTransform=r.transitionDuration=``;let i=n[Ml]=e=>{e&&e.target!==n||(!e||e.propertyName.endsWith(`transform`))&&(n.removeEventListener(`transitionend`,i),n[Ml]=null,Pc(n,t))};n.addEventListener(`transitionend`,i)}),i=[]}),()=>{let o=P(e),s=Ac(o),c=o.tag||R;if(i=[],a)for(let e=0;e{e.split(/\s+/).forEach(e=>e&&r.classList.remove(e))}),n.split(/\s+/).forEach(e=>e&&r.classList.add(e)),r.style.display=`none`;let a=t.nodeType===1?t:t.parentNode;a.appendChild(r);let{hasTransform:o}=Rc(r);return a.removeChild(r),o}var zl=e=>{let t=e.props[`onUpdate:modelValue`]||!1;return x(t)?e=>pe(t,e):t};function Bl(e){e.target.composing=!0}function Vl(e){let t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event(`input`)))}var Hl=Symbol(`_assign`);function Ul(e,t,n){return t&&(e=e.trim()),n&&(e=he(e)),e}var Wl={created(e,{modifiers:{lazy:t,trim:n,number:r}},i){e[Hl]=zl(i);let a=r||i.props&&i.props.type===`number`;cl(e,t?`change`:`input`,t=>{t.target.composing||e[Hl](Ul(e.value,n,a))}),(n||a)&&cl(e,`change`,()=>{e.value=Ul(e.value,n,a)}),t||(cl(e,`compositionstart`,Bl),cl(e,`compositionend`,Vl),cl(e,`change`,Vl))},mounted(e,{value:t}){e.value=t??``},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:r,trim:i,number:a}},o){if(e[Hl]=zl(o),e.composing)return;let s=(a||e.type===`number`)&&!/^0\d/.test(e.value)?he(e.value):e.value,c=t??``;s!==c&&(document.activeElement===e&&e.type!==`range`&&(r&&t===n||i&&e.value.trim()===c)||(e.value=c))}},Gl={deep:!0,created(e,t,n){e[Hl]=zl(n),cl(e,`change`,()=>{let t=e._modelValue,n=Xl(e),r=e.checked,i=e[Hl];if(x(t)){let e=je(t,n),a=e!==-1;if(r&&!a)i(t.concat(n));else if(!r&&a){let n=[...t];n.splice(e,1),i(n)}}else if(C(t)){let e=new Set(t);r?e.add(n):e.delete(n),i(e)}else i(Zl(e,r))})},mounted:Kl,beforeUpdate(e,t,n){e[Hl]=zl(n),Kl(e,t,n)}};function Kl(e,{value:t,oldValue:n},r){e._modelValue=t;let i;if(x(t))i=je(t,r.props.value)>-1;else if(C(t))i=t.has(r.props.value);else{if(t===n)return;i=Ae(t,Zl(e,!0))}e.checked!==i&&(e.checked=i)}var ql={created(e,{value:t},n){e.checked=Ae(t,n.props.value),e[Hl]=zl(n),cl(e,`change`,()=>{e[Hl](Xl(e))})},beforeUpdate(e,{value:t,oldValue:n},r){e[Hl]=zl(r),t!==n&&(e.checked=Ae(t,r.props.value))}},Jl={deep:!0,created(e,{value:t,modifiers:{number:n}},r){let i=C(t);cl(e,`change`,()=>{let t=Array.prototype.filter.call(e.options,e=>e.selected).map(e=>n?he(Xl(e)):Xl(e));e[Hl](e.multiple?i?new Set(t):t:t[0]),e._assigning=!0,ir(()=>{e._assigning=!1})}),e[Hl]=zl(r)},mounted(e,{value:t}){Yl(e,t)},beforeUpdate(e,t,n){e[Hl]=zl(n)},updated(e,{value:t}){e._assigning||Yl(e,t)}};function Yl(e,t){let n=e.multiple,r=x(t);if(!(n&&!r&&!C(t))){for(let i=0,a=e.options.length;iString(e)===String(o)):a.selected=je(t,o)>-1}else a.selected=t.has(o);else if(Ae(Xl(a),t)){e.selectedIndex!==i&&(e.selectedIndex=i);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Xl(e){return`_value`in e?e._value:e.value}function Zl(e,t){let n=t?`_trueValue`:`_falseValue`;return n in e?e[n]:t}var Ql={created(e,t,n){eu(e,t,n,null,`created`)},mounted(e,t,n){eu(e,t,n,null,`mounted`)},beforeUpdate(e,t,n,r){eu(e,t,n,r,`beforeUpdate`)},updated(e,t,n,r){eu(e,t,n,r,`updated`)}};function $l(e,t){switch(e){case`SELECT`:return Jl;case`TEXTAREA`:return Wl;default:switch(t){case`checkbox`:return Gl;case`radio`:return ql;default:return Wl}}}function eu(e,t,n,r,i){let a=$l(e.tagName,n.props&&n.props.type)[i];a&&a(e,t,n,r)}function tu(){Wl.getSSRProps=({value:e})=>({value:e}),ql.getSSRProps=({value:e},t)=>{if(t.props&&Ae(t.props.value,e))return{checked:!0}},Gl.getSSRProps=({value:e},t)=>{if(x(e)){if(t.props&&je(e,t.props.value)>-1)return{checked:!0}}else if(C(e)){if(t.props&&e.has(t.props.value))return{checked:!0}}else if(e)return{checked:!0}},Ql.getSSRProps=(e,t)=>{if(typeof t.type!=`string`)return;let n=$l(t.type.toUpperCase(),t.props&&t.props.type);if(n.getSSRProps)return n.getSSRProps(e,t)}}var nu=[`ctrl`,`shift`,`alt`,`meta`],ru={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>`button`in e&&e.button!==0,middle:e=>`button`in e&&e.button!==1,right:e=>`button`in e&&e.button!==2,exact:(e,t)=>nu.some(n=>e[`${n}Key`]&&!t.includes(n))},iu=(e,t)=>{let n=e._withMods||={},r=t.join(`.`);return n[r]||(n[r]=((n,...r)=>{for(let e=0;e{let n=e._withKeys||={},r=t.join(`.`);return n[r]||(n[r]=(n=>{if(!(`key`in n))return;let r=j(n.key);if(t.some(e=>e===r||au[e]===r))return e(n)}))},su=_({patchProp:bl},xc),cu,lu=!1;function uu(){return cu||=Io(su)}function du(){return cu=lu?cu:Lo(su),lu=!0,cu}var fu=((...e)=>{uu().render(...e)}),pu=((...e)=>{du().hydrate(...e)}),mu=((...e)=>{let t=uu().createApp(...e),{mount:n}=t;return t.mount=e=>{let r=_u(e);if(!r)return;let i=t._component;!E(i)&&!i.render&&!i.template&&(i.template=r.innerHTML),r.nodeType===1&&(r.textContent=``);let a=n(r,!1,gu(r));return r instanceof Element&&(r.removeAttribute(`v-cloak`),r.setAttribute(`data-v-app`,``)),a},t}),hu=((...e)=>{let t=du().createApp(...e),{mount:n}=t;return t.mount=e=>{let t=_u(e);if(t)return n(t,!0,gu(t))},t});function gu(e){if(e instanceof SVGElement)return`svg`;if(typeof MathMLElement==`function`&&e instanceof MathMLElement)return`mathml`}function _u(e){return D(e)?document.querySelector(e):e}var vu=!1,yu=()=>{vu||(vu=!0,tu(),qc())},bu=s({BaseTransition:()=>Kr,BaseTransitionPropsValidators:()=>Hr,Comment:()=>os,DeprecationTypes:()=>null,EffectScope:()=>Re,ErrorCodes:()=>Gn,ErrorTypeStrings:()=>uc,Fragment:()=>R,KeepAlive:()=>Oi,ReactiveEffect:()=>Ue,Static:()=>ss,Suspense:()=>Jo,Teleport:()=>Fr,Text:()=>as,TrackOpTypes:()=>Mn,Transition:()=>Dc,TransitionGroup:()=>Pl,TriggerOpTypes:()=>Nn,VueElement:()=>El,assertNumber:()=>Wn,callWithAsyncErrorHandling:()=>Jn,callWithErrorHandling:()=>qn,camelize:()=>A,capitalize:()=>ue,cloneVNode:()=>Ts,compatUtils:()=>null,compile:()=>xu,computed:()=>B,createApp:()=>mu,createBlock:()=>gs,createCommentVNode:()=>Os,createElementBlock:()=>hs,createElementVNode:()=>Ss,createHydrationRenderer:()=>Lo,createPropsRestProxy:()=>Ta,createRenderer:()=>Io,createSSRApp:()=>hu,createSlots:()=>ra,createStaticVNode:()=>Ds,createTextVNode:()=>Es,createVNode:()=>z,customRef:()=>wn,defineAsyncComponent:()=>Ti,defineComponent:()=>$r,defineCustomElement:()=>Cl,defineEmits:()=>pa,defineExpose:()=>ma,defineModel:()=>_a,defineOptions:()=>ha,defineProps:()=>fa,defineSSRCustomElement:()=>wl,defineSlots:()=>ga,devtools:()=>dc,effect:()=>nt,effectScope:()=>ze,getCurrentInstance:()=>Rs,getCurrentScope:()=>Be,getCurrentWatcher:()=>Ln,getTransitionRawChildren:()=>Qr,guardReactiveProps:()=>ws,h:()=>ic,handleError:()=>Yn,hasInjectionContext:()=>qa,hydrate:()=>pu,hydrateOnIdle:()=>vi,hydrateOnInteraction:()=>Si,hydrateOnMediaQuery:()=>xi,hydrateOnVisible:()=>bi,initCustomFormatter:()=>ac,initDirectivesForSSR:()=>yu,inject:()=>L,isMemoSame:()=>sc,isProxy:()=>dn,isReactive:()=>cn,isReadonly:()=>ln,isRef:()=>F,isRuntimeOnly:()=>Zs,isShallow:()=>un,isVNode:()=>_s,markRaw:()=>fn,mergeDefaults:()=>Ca,mergeModels:()=>wa,mergeProps:()=>Ms,nextTick:()=>ir,nodeOps:()=>xc,normalizeClass:()=>M,normalizeProps:()=>Te,normalizeStyle:()=>be,onActivated:()=>Ai,onBeforeMount:()=>Ri,onBeforeUnmount:()=>Hi,onBeforeUpdate:()=>Bi,onDeactivated:()=>ji,onErrorCaptured:()=>qi,onMounted:()=>zi,onRenderTracked:()=>Ki,onRenderTriggered:()=>Gi,onScopeDispose:()=>Ve,onServerPrefetch:()=>Wi,onUnmounted:()=>Ui,onUpdated:()=>Vi,onWatcherCleanup:()=>Rn,openBlock:()=>us,patchProp:()=>bl,popScopeId:()=>br,provide:()=>Ka,proxyRefs:()=>Sn,pushScopeId:()=>yr,queuePostFlushCb:()=>cr,reactive:()=>nn,readonly:()=>an,ref:()=>hn,registerRuntimeCompiler:()=>Xs,render:()=>fu,renderList:()=>na,renderSlot:()=>ia,resolveComponent:()=>Xi,resolveDirective:()=>$i,resolveDynamicComponent:()=>Qi,resolveFilter:()=>null,resolveTransitionHooks:()=>Jr,setBlockTracking:()=>ps,setDevtoolsHook:()=>fc,setTransitionHooks:()=>Zr,shallowReactive:()=>rn,shallowReadonly:()=>on,shallowRef:()=>gn,ssrContextKey:()=>Ja,ssrUtils:()=>pc,stop:()=>rt,toDisplayString:()=>Ne,toHandlerKey:()=>de,toHandlers:()=>oa,toRaw:()=>P,toRef:()=>On,toRefs:()=>Tn,toValue:()=>bn,transformVNodeArgs:()=>ys,triggerRef:()=>yn,unref:()=>I,useAttrs:()=>ba,useCssModule:()=>kl,useCssVars:()=>Yc,useHost:()=>Dl,useId:()=>ei,useModel:()=>ro,useSSRContext:()=>Ya,useShadowRoot:()=>Ol,useSlots:()=>ya,useTemplateRef:()=>ni,useTransitionState:()=>Br,vModelCheckbox:()=>Gl,vModelDynamic:()=>Ql,vModelRadio:()=>ql,vModelSelect:()=>Jl,vModelText:()=>Wl,vShow:()=>Gc,version:()=>cc,warn:()=>lc,watch:()=>$a,watchEffect:()=>Xa,watchPostEffect:()=>Za,watchSyncEffect:()=>Qa,withAsyncContext:()=>Ea,withCtx:()=>Sr,withDefaults:()=>va,withDirectives:()=>Cr,withKeys:()=>ou,withMemo:()=>oc,withModifiers:()=>iu,withScopeId:()=>xr},1),xu=()=>{},Su=/"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/,Cu=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/,wu=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function Tu(e,t){if(e===`__proto__`||e===`constructor`&&t&&typeof t==`object`&&`prototype`in t){Eu(e);return}return t}function Eu(e){console.warn(`[destr] Dropping "${e}" key to prevent prototype pollution.`)}function Du(e,t={}){if(typeof e!=`string`)return e;if(e[0]===`"`&&e[e.length-1]===`"`&&e.indexOf(`\\`)===-1)return e.slice(1,-1);let n=e.trim();if(n.length<=9)switch(n.toLowerCase()){case`true`:return!0;case`false`:return!1;case`undefined`:return;case`null`:return null;case`nan`:return NaN;case`infinity`:return 1/0;case`-infinity`:return-1/0}if(!wu.test(e)){if(t.strict)throw SyntaxError(`[destr] Invalid JSON`);return e}try{if(Su.test(e)||Cu.test(e)){if(t.strict)throw Error(`[destr] Possible prototype pollution`);return JSON.parse(e,Tu)}return JSON.parse(e)}catch(n){if(t.strict)throw n;return e}}String.fromCharCode;var Ou=/#/g,ku=/&/g,Au=/\//g,ju=/=/g,Mu=/\+/g,Nu=/%5e/gi,Pu=/%60/gi,Fu=/%7c/gi,Iu=/%20/gi;function Lu(e){return encodeURI(``+e).replace(Fu,`|`)}function Ru(e){return Lu(typeof e==`string`?e:JSON.stringify(e)).replace(Mu,`%2B`).replace(Iu,`+`).replace(Ou,`%23`).replace(ku,`%26`).replace(Pu,"`").replace(Nu,`^`).replace(Au,`%2F`)}function zu(e){return Ru(e).replace(ju,`%3D`)}function Bu(e=``){try{return decodeURIComponent(``+e)}catch{return``+e}}function Vu(e){return Bu(e.replace(Mu,` `))}function Hu(e){return Bu(e.replace(Mu,` `))}function Uu(e=``){let t=Object.create(null);e[0]===`?`&&(e=e.slice(1));for(let n of e.split(`&`)){let e=n.match(/([^=]+)=?(.*)/)||[];if(e.length<2)continue;let r=Vu(e[1]);if(r===`__proto__`||r===`constructor`)continue;let i=Hu(e[2]||``);t[r]===void 0?t[r]=i:Array.isArray(t[r])?t[r].push(i):t[r]=[t[r],i]}return t}function Wu(e,t){return(typeof t==`number`||typeof t==`boolean`)&&(t=String(t)),t?Array.isArray(t)?t.map(t=>`${zu(e)}=${Ru(t)}`).join(`&`):`${zu(e)}=${Ru(t)}`:zu(e)}function Gu(e){return Object.keys(e).filter(t=>e[t]!==void 0).map(t=>Wu(t,e[t])).filter(Boolean).join(`&`)}var Ku=/^[\s\w\0+.-]{2,}:([/\\]{1,2})/,qu=/^[\s\w\0+.-]{2,}:([/\\]{2})?/,Ju=/^([/\\]\s*){2,}[^/\\]/,Yu=/^[\s\0]*(blob|data|javascript|vbscript):$/i,Xu=/\/$|\/\?|\/#/,Zu=/^\.?\//;function Qu(e,t={}){return typeof t==`boolean`&&(t={acceptRelative:t}),t.strict?Ku.test(e):qu.test(e)||(t.acceptRelative?Ju.test(e):!1)}function $u(e){return!!e&&Yu.test(e)}function ed(e=``,t){return t?Xu.test(e):e.endsWith(`/`)}function td(e=``,t){if(!t)return(ed(e)?e.slice(0,-1):e)||`/`;if(!ed(e,!0))return e||`/`;let n=e,r=``,i=e.indexOf(`#`);i!==-1&&(n=e.slice(0,i),r=e.slice(i));let[a,...o]=n.split(`?`);return((a.endsWith(`/`)?a.slice(0,-1):a)||`/`)+(o.length>0?`?${o.join(`?`)}`:``)+r}function nd(e=``,t){if(!t)return e.endsWith(`/`)?e:e+`/`;if(ed(e,!0))return e||`/`;let n=e,r=``,i=e.indexOf(`#`);if(i!==-1&&(n=e.slice(0,i),r=e.slice(i),!n))return r;let[a,...o]=n.split(`?`);return a+`/`+(o.length>0?`?${o.join(`?`)}`:``)+r}function rd(e,t){if(od(t)||Qu(e))return e;let n=td(t);return e.startsWith(n)?e:cd(n,e)}function id(e,t){if(od(t))return e;let n=td(t);if(!e.startsWith(n))return e;let r=e.slice(n.length);return r[0]===`/`?r:`/`+r}function ad(e,t){let n=fd(e);return n.search=Gu({...Uu(n.search),...t}),md(n)}function od(e){return!e||e===`/`}function sd(e){return e&&e!==`/`}function cd(e,...t){let n=e||``;for(let e of t.filter(e=>sd(e)))if(n){let t=e.replace(Zu,``);n=nd(n)+t}else n=e;return n}function ld(...e){let t=/\/(?!\/)/,n=e.filter(Boolean),r=[],i=0;for(let e of n)if(!(!e||e===`/`)){for(let[n,a]of e.split(t).entries())if(!(!a||a===`.`)){if(a===`..`){if(r.length===1&&Qu(r[0]))continue;r.pop(),i--;continue}if(n===1&&r[r.length-1]?.endsWith(`:/`)){r[r.length-1]+=`/`+a;continue}r.push(a),i++}}let a=r.join(`/`);return i>=0?n[0]?.startsWith(`/`)&&!a.startsWith(`/`)?a=`/`+a:n[0]?.startsWith(`./`)&&!a.startsWith(`./`)&&(a=`./`+a):a=`../`.repeat(-1*i)+a,n[n.length-1]?.endsWith(`/`)&&!a.endsWith(`/`)&&(a+=`/`),a}function ud(e,t){return Bu(td(e))===Bu(td(t))}var dd=Symbol.for(`ufo:protocolRelative`);function fd(e=``,t){let n=e.match(/^[\s\0]*(blob:|data:|javascript:|vbscript:)(.*)/i);if(n){let[,e,t=``]=n;return{protocol:e.toLowerCase(),pathname:t,href:e+t,auth:``,host:``,search:``,hash:``}}if(!Qu(e,{acceptRelative:!0}))return t?fd(t+e):pd(e);let[,r=``,i,a=``]=e.replace(/\\/g,`/`).match(/^[\s\0]*([\w+.-]{2,}:)?\/\/([^/@]+@)?(.*)/)||[],[,o=``,s=``]=a.match(/([^#/?]*)(.*)?/)||[];r===`file:`&&(s=s.replace(/\/(?=[A-Za-z]:)/,``));let{pathname:c,search:l,hash:u}=pd(s);return{protocol:r.toLowerCase(),auth:i?i.slice(0,Math.max(0,i.length-1)):``,host:o,pathname:c,search:l,hash:u,[dd]:!r}}function pd(e=``){let[t=``,n=``,r=``]=(e.match(/([^#?]*)(\?[^#]*)?(#.*)?/)||[]).splice(1);return{pathname:t,search:n,hash:r}}function md(e){let t=e.pathname||``,n=e.search?(e.search.startsWith(`?`)?``:`?`)+e.search:``,r=e.hash||``,i=e.auth?e.auth+`@`:``,a=e.host||``;return(e.protocol||e[dd]?(e.protocol||``)+`//`:``)+i+a+t+n+r}var hd=class extends Error{constructor(e,t){super(e,t),this.name=`FetchError`,t?.cause&&!this.cause&&(this.cause=t.cause)}};function gd(e){let t=e.error?.message||e.error?.toString()||``,n=e.request?.method||e.options?.method||`GET`,r=e.request?.url||String(e.request)||`/`,i=new hd(`${`[${n}] ${JSON.stringify(r)}`}: ${e.response?`${e.response.status} ${e.response.statusText}`:``}${t?` ${t}`:``}`,e.error?{cause:e.error}:void 0);for(let t of[`request`,`options`,`response`])Object.defineProperty(i,t,{get(){return e[t]}});for(let[t,n]of[[`data`,`_data`],[`status`,`status`],[`statusCode`,`status`],[`statusText`,`statusText`],[`statusMessage`,`statusText`]])Object.defineProperty(i,t,{get(){return e.response&&e.response[n]}});return i}var _d=new Set(Object.freeze([`PATCH`,`POST`,`PUT`,`DELETE`]));function vd(e=`GET`){return _d.has(e.toUpperCase())}function yd(e){if(e===void 0)return!1;let t=typeof e;return t===`string`||t===`number`||t===`boolean`||t===null?!0:t===`object`?Array.isArray(e)?!0:e.buffer||e instanceof FormData||e instanceof URLSearchParams?!1:e.constructor&&e.constructor.name===`Object`||typeof e.toJSON==`function`:!1}var bd=new Set([`image/svg`,`application/xml`,`application/xhtml`,`application/html`]),xd=/^application\/(?:[\w!#$%&*.^`~-]*\+)?json(;.+)?$/i;function Sd(e=``){if(!e)return`json`;let t=e.split(`;`).shift()||``;return xd.test(t)?`json`:t===`text/event-stream`?`stream`:bd.has(t)||t.startsWith(`text/`)?`text`:`blob`}function Cd(e,t,n,r){let i=wd(t?.headers??e?.headers,n?.headers,r),a;return(n?.query||n?.params||t?.params||t?.query)&&(a={...n?.params,...n?.query,...t?.params,...t?.query}),{...n,...t,query:a,params:a,headers:i}}function wd(e,t,n){if(!t)return new n(e);let r=new n(t);if(e)for(let[t,i]of Symbol.iterator in e||Array.isArray(e)?e:new n(e))r.set(t,i);return r}async function Td(e,t){if(t)if(Array.isArray(t))for(let n of t)await n(e);else await t(e)}var Ed=new Set([408,409,425,429,500,502,503,504]),Dd=new Set([101,204,205,304]);function Od(e={}){let{fetch:t=globalThis.fetch,Headers:n=globalThis.Headers,AbortController:r=globalThis.AbortController}=e;async function i(e){let t=e.error&&e.error.name===`AbortError`&&!e.options.timeout||!1;if(e.options.retry!==!1&&!t){let t;t=typeof e.options.retry==`number`?e.options.retry:vd(e.options.method)?0:1;let n=e.response&&e.response.status||500;if(t>0&&(Array.isArray(e.options.retryStatusCodes)?e.options.retryStatusCodes.includes(n):Ed.has(n))){let n=typeof e.options.retryDelay==`function`?e.options.retryDelay(e):e.options.retryDelay||0;return n>0&&await new Promise(e=>setTimeout(e,n)),a(e.request,{...e.options,retry:t-1})}}let n=gd(e);throw Error.captureStackTrace&&Error.captureStackTrace(n,a),n}let a=async function(a,o={}){let s={request:a,options:Cd(a,o,e.defaults,n),response:void 0,error:void 0};if(s.options.method&&(s.options.method=s.options.method.toUpperCase()),s.options.onRequest&&(await Td(s,s.options.onRequest),s.options.headers instanceof n||(s.options.headers=new n(s.options.headers||{}))),typeof s.request==`string`&&(s.options.baseURL&&(s.request=rd(s.request,s.options.baseURL)),s.options.query&&(s.request=ad(s.request,s.options.query),delete s.options.query),`query`in s.options&&delete s.options.query,`params`in s.options&&delete s.options.params),s.options.body&&vd(s.options.method))if(yd(s.options.body)){let e=s.options.headers.get(`content-type`);typeof s.options.body!=`string`&&(s.options.body=e===`application/x-www-form-urlencoded`?new URLSearchParams(s.options.body).toString():JSON.stringify(s.options.body)),e||s.options.headers.set(`content-type`,`application/json`),s.options.headers.has(`accept`)||s.options.headers.set(`accept`,`application/json`)}else (`pipeTo`in s.options.body&&typeof s.options.body.pipeTo==`function`||typeof s.options.body.pipe==`function`)&&(`duplex`in s.options||(s.options.duplex=`half`));let c;if(!s.options.signal&&s.options.timeout){let e=new r;c=setTimeout(()=>{let t=Error(`[TimeoutError]: The operation was aborted due to timeout`);t.name=`TimeoutError`,t.code=23,e.abort(t)},s.options.timeout),s.options.signal=e.signal}try{s.response=await t(s.request,s.options)}catch(e){return s.error=e,s.options.onRequestError&&await Td(s,s.options.onRequestError),await i(s)}finally{c&&clearTimeout(c)}if((s.response.body||s.response._bodyInit)&&!Dd.has(s.response.status)&&s.options.method!==`HEAD`){let e=(s.options.parseResponse?`json`:s.options.responseType)||Sd(s.response.headers.get(`content-type`)||``);switch(e){case`json`:{let e=await s.response.text(),t=s.options.parseResponse||Du;s.response._data=t(e);break}case`stream`:s.response._data=s.response.body||s.response._bodyInit;break;default:s.response._data=await s.response[e]()}}return s.options.onResponse&&await Td(s,s.options.onResponse),!s.options.ignoreResponseError&&s.response.status>=400&&s.response.status<600?(s.options.onResponseError&&await Td(s,s.options.onResponseError),await i(s)):s.response},o=async function(e,t){return(await a(e,t))._data};return o.raw=a,o.native=(...e)=>t(...e),o.create=(t={},n={})=>Od({...e,...n,defaults:{...e.defaults,...n.defaults,...t}}),o}var kd=(function(){if(typeof globalThis<`u`)return globalThis;if(typeof self<`u`)return self;if(typeof window<`u`)return window;if(typeof global<`u`)return global;throw Error(`unable to locate global object`)})(),Ad=kd.fetch?(...e)=>kd.fetch(...e):()=>Promise.reject(Error(`[ofetch] global.fetch is not supported!`)),jd=kd.Headers,Md=kd.AbortController,Nd=Od({fetch:Ad,Headers:jd,AbortController:Md});const Pd=()=>window?.__NUXT__?.config||window?.useNuxtApp?.().payload?.config;var Fd=()=>Pd().app;const Id=()=>Fd().baseURL,Ld=()=>Fd().buildAssetsDir,Rd=(...e)=>ld(zd(),Ld(),...e),zd=(...e)=>{let t=Fd(),n=t.cdnURL||t.baseURL;return e.length?ld(n,...e):n};globalThis.__buildAssetsURL=Rd,globalThis.__publicAssetsURL=zd,globalThis.$fetch||(globalThis.$fetch=Nd.create({baseURL:Id()})),`global`in globalThis||(globalThis.global=globalThis);function Bd(e,t={},n){for(let r in e){let i=e[r],a=n?`${n}:${r}`:r;typeof i==`object`&&i?Bd(i,t,a):typeof i==`function`&&(t[a]=i)}return t}var Vd={run:e=>e()},Hd=console.createTask===void 0?()=>Vd:console.createTask;function Ud(e,t){let n=Hd(t.shift());return e.reduce((e,r)=>e.then(()=>n.run(()=>r(...t))),Promise.resolve())}function Wd(e,t){let n=Hd(t.shift());return Promise.all(e.map(e=>n.run(()=>e(...t))))}function Gd(e,t){for(let n of[...e])n(t)}var Kd=class{constructor(){this._hooks={},this._before=void 0,this._after=void 0,this._deprecatedMessages=void 0,this._deprecatedHooks={},this.hook=this.hook.bind(this),this.callHook=this.callHook.bind(this),this.callHookWith=this.callHookWith.bind(this)}hook(e,t,n={}){if(!e||typeof t!=`function`)return()=>{};let r=e,i;for(;this._deprecatedHooks[e];)i=this._deprecatedHooks[e],e=i.to;if(i&&!n.allowDeprecated){let e=i.message;e||=`${r} hook has been deprecated`+(i.to?`, please use ${i.to}`:``),this._deprecatedMessages||=new Set,this._deprecatedMessages.has(e)||(console.warn(e),this._deprecatedMessages.add(e))}if(!t.name)try{Object.defineProperty(t,`name`,{get:()=>`_`+e.replace(/\W+/g,`_`)+`_hook_cb`,configurable:!0})}catch{}return this._hooks[e]=this._hooks[e]||[],this._hooks[e].push(t),()=>{t&&=(this.removeHook(e,t),void 0)}}hookOnce(e,t){let n,r=(...e)=>(typeof n==`function`&&n(),n=void 0,r=void 0,t(...e));return n=this.hook(e,r),n}removeHook(e,t){if(this._hooks[e]){let n=this._hooks[e].indexOf(t);n!==-1&&this._hooks[e].splice(n,1),this._hooks[e].length===0&&delete this._hooks[e]}}deprecateHook(e,t){this._deprecatedHooks[e]=typeof t==`string`?{to:t}:t;let n=this._hooks[e]||[];delete this._hooks[e];for(let t of n)this.hook(e,t)}deprecateHooks(e){for(let t in Object.assign(this._deprecatedHooks,e),e)this.deprecateHook(t,e[t])}addHooks(e){let t=Bd(e),n=Object.keys(t).map(e=>this.hook(e,t[e]));return()=>{for(let e of n.splice(0,n.length))e()}}removeHooks(e){let t=Bd(e);for(let e in t)this.removeHook(e,t[e])}removeAllHooks(){for(let e in this._hooks)delete this._hooks[e]}callHook(e,...t){return t.unshift(e),this.callHookWith(Ud,e,...t)}callHookParallel(e,...t){return t.unshift(e),this.callHookWith(Wd,e,...t)}callHookWith(e,t,...n){let r=this._before||this._after?{name:t,args:n,context:{}}:void 0;this._before&&Gd(this._before,r);let i=e(t in this._hooks?[...this._hooks[t]]:[],n);return i instanceof Promise?i.finally(()=>{this._after&&r&&Gd(this._after,r)}):(this._after&&r&&Gd(this._after,r),i)}beforeEach(e){return this._before=this._before||[],this._before.push(e),()=>{if(this._before!==void 0){let t=this._before.indexOf(e);t!==-1&&this._before.splice(t,1)}}}afterEach(e){return this._after=this._after||[],this._after.push(e),()=>{if(this._after!==void 0){let t=this._after.indexOf(e);t!==-1&&this._after.splice(t,1)}}}};function qd(){return new Kd}function Jd(e={}){let t,n=!1,r=e=>{if(t&&t!==e)throw Error(`Context conflict`)},i;if(e.asyncContext){let t=e.AsyncLocalStorage||globalThis.AsyncLocalStorage;t?i=new t:console.warn("[unctx] `AsyncLocalStorage` is not provided.")}let a=()=>{if(i){let e=i.getStore();if(e!==void 0)return e}return t};return{use:()=>{let e=a();if(e===void 0)throw Error(`Context is not available`);return e},tryUse:()=>a(),set:(e,i)=>{i||r(e),t=e,n=!0},unset:()=>{t=void 0,n=!1},call:(e,a)=>{r(e),t=e;try{return i?i.run(e,a):a()}finally{n||(t=void 0)}},async callAsync(e,r){t=e;let a=()=>{t=e},o=()=>t===e?a:void 0;tf.add(o);try{let a=i?i.run(e,r):r();return n||(t=void 0),await a}finally{tf.delete(o)}}}}function Yd(e={}){let t={};return{get(n,r={}){return t[n]||(t[n]=Jd({...e,...r})),t[n]}}}var Xd=typeof globalThis<`u`?globalThis:typeof self<`u`?self:typeof global<`u`?global:typeof window<`u`?window:{},Zd=`__unctx__`,Qd=Xd[Zd]||(Xd[Zd]=Yd()),$d=(e,t={})=>Qd.get(e,t),ef=`__unctx_async_handlers__`,tf=Xd[ef]||(Xd[ef]=new Set);function nf(e){let t=[];for(let e of tf){let n=e();n&&t.push(n)}let n=()=>{for(let e of t)e()},r=e();return r&&typeof r==`object`&&`catch`in r&&(r=r.catch(e=>{throw n(),e})),[r,n]}const rf={id:`__nuxt-loader`},af={componentName:`NuxtLink`,prefetch:!0,prefetchOn:{visibility:!0}},of=36e5;function sf(e=`nuxt-app`){return $d(e,{asyncContext:!1})}function cf(e){let t=0,n={_id:e.id||`nuxt-app`,_scope:ze(),provide:void 0,versions:{get nuxt(){return`4.2.2`},get vue(){return n.vueApp.version}},payload:rn({...e.ssrContext?.payload||{},data:rn({}),state:nn({}),once:new Set,_errors:rn({})}),static:{data:{}},runWithContext(e){return n._scope.active&&!Be()?n._scope.run(()=>mf(n,e)):mf(n,e)},isHydrating:!0,deferHydration(){if(!n.isHydrating)return()=>{};t++;let e=!1;return()=>{if(!e&&(e=!0,t--,t===0))return n.isHydrating=!1,n.callHook(`app:suspense:resolve`)}},_asyncDataPromises:{},_asyncData:rn({}),_payloadRevivers:{},...e};{let e=window.__NUXT__;if(e)for(let t in e)switch(t){case`data`:case`state`:case`_errors`:Object.assign(n.payload[t],e[t]);break;default:n.payload[t]=e[t]}}n.hooks=qd(),n.hook=n.hooks.hook,n.callHook=n.hooks.callHook,n.provide=(e,t)=>{let r=`$`+e;_f(n,r,t),_f(n.vueApp.config.globalProperties,r,t)},_f(n.vueApp,`$nuxt`,n),_f(n.vueApp.config.globalProperties,`$nuxt`,n);{window.addEventListener(`vite:preloadError`,e=>{n.callHook(`app:chunkError`,{error:e.payload}),e.payload.message.includes(`Unable to preload CSS`)&&e.preventDefault()}),window.useNuxtApp||=V;let e=n.hook(`app:error`,(...e)=>{console.error(`[nuxt] error caught during app initialization`,...e)});n.hook(`app:mounted`,e)}let r=n.payload.config;return n.provide(`config`,r),n}function lf(e,t){t.hooks&&e.hooks.addHooks(t.hooks)}async function uf(e,t){if(typeof t==`function`){let{provide:n}=await e.runWithContext(()=>t(e))||{};if(n&&typeof n==`object`)for(let t in n)e.provide(t,n[t])}}async function df(e,t){let n=new Set,r=[],i=[],a,o=0;async function s(c){let l=c.dependsOn?.filter(e=>t.some(t=>t._name===e)&&!n.has(e))??[];if(l.length>0)r.push([new Set(l),c]);else{let t=uf(e,c).then(async()=>{c._name&&(n.add(c._name),await Promise.all(r.map(async([e,t])=>{e.has(c._name)&&(e.delete(c._name),e.size===0&&(o++,await s(t)))})))}).catch(t=>{if(!c.parallel&&!e.payload.error)throw t;a||=t});c.parallel?i.push(t):await t}}for(let n of t)lf(e,n);for(let e of t)await s(e);if(await Promise.all(i),o)for(let e=0;e{}),e,{__nuxt_plugin:!0,_name:t})}const pf=ff;function mf(e,t,n){return sf(e._id).set(e),e.vueApp.runWithContext(()=>n?t(...n):t())}function hf(e){let t;return qa()&&(t=Rs()?.appContext.app.$nuxt),t||=sf(e).tryUse(),t||null}function V(e){let t=hf(e);if(!t)throw Error(`[nuxt] instance unavailable`);return t}function gf(e){return V().$config}function _f(e,t,n){Object.defineProperty(e,t,{get:()=>n})}function vf(e,t){return{ctx:{table:e},matchAll:n=>xf(n,e,t)}}function yf(e){let t={};for(let n in e)t[n]=n===`dynamic`?new Map(Object.entries(e[n]).map(([e,t])=>[e,yf(t)])):new Map(Object.entries(e[n]));return t}function bf(e){return vf(yf(e))}function xf(e,t,n){n!==!0&&e.endsWith(`/`)&&(e=e.slice(0,-1)||`/`);let r=[];for(let[n,i]of Sf(t.wildcard))(e===n||e.startsWith(n+`/`))&&r.push(i);for(let[n,i]of Sf(t.dynamic))if(e.startsWith(n+`/`)){let t=`/`+e.slice(n.length).split(`/`).splice(2).join(`/`);r.push(...xf(t,i))}let i=t.static.get(e);return i&&r.push(i),r.filter(Boolean)}function Sf(e){return[...e.entries()].sort((e,t)=>e[0].length-t[0].length)}function Cf(e){if(typeof e!=`object`||!e)return!1;let t=Object.getPrototypeOf(e);return t!==null&&t!==Object.prototype&&Object.getPrototypeOf(t)!==null||Symbol.iterator in e?!1:Symbol.toStringTag in e?Object.prototype.toString.call(e)===`[object Module]`:!0}function wf(e,t,n=`.`,r){if(!Cf(t))return wf(e,{},n,r);let i=Object.assign({},t);for(let t in e){if(t===`__proto__`||t===`constructor`)continue;let a=e[t];a!=null&&(r&&r(i,t,a,n)||(Array.isArray(a)&&Array.isArray(i[t])?i[t]=[...a,...i[t]]:Cf(a)&&Cf(i[t])?i[t]=wf(a,i[t],(n?`${n}.`:``)+t.toString(),r):i[t]=a))}return i}function Tf(e){return(...t)=>t.reduce((t,n)=>wf(t,n,``,e),{})}var Ef=Tf();function Df(e,t){try{return t in e}catch{return!1}}var Of=class extends Error{static __h3_error__=!0;statusCode=500;fatal=!1;unhandled=!1;statusMessage;data;cause;constructor(e,t={}){super(e,t),t.cause&&!this.cause&&(this.cause=t.cause)}toJSON(){let e={message:this.message,statusCode:Nf(this.statusCode,500)};return this.statusMessage&&(e.statusMessage=Mf(this.statusMessage)),this.data!==void 0&&(e.data=this.data),e}};function kf(e){if(typeof e==`string`)return new Of(e);if(Af(e))return e;let t=new Of(e.message??e.statusMessage??``,{cause:e.cause||e});if(Df(e,`stack`))try{Object.defineProperty(t,`stack`,{get(){return e.stack}})}catch{try{t.stack=e.stack}catch{}}if(e.data&&(t.data=e.data),e.statusCode?t.statusCode=Nf(e.statusCode,t.statusCode):e.status&&(t.statusCode=Nf(e.status,t.statusCode)),e.statusMessage?t.statusMessage=e.statusMessage:e.statusText&&(t.statusMessage=e.statusText),t.statusMessage){let e=t.statusMessage;Mf(t.statusMessage)!==e&&console.warn("[h3] Please prefer using `message` for longer error messages instead of `statusMessage`. In the future, `statusMessage` will be sanitized by default.")}return e.fatal!==void 0&&(t.fatal=e.fatal),e.unhandled!==void 0&&(t.unhandled=e.unhandled),t}function Af(e){return e?.constructor?.__h3_error__===!0}var jf=/[^\u0009\u0020-\u007E]/g;function Mf(e=``){return e.replace(jf,``)}function Nf(e,t=200){return!e||(typeof e==`string`&&(e=Number.parseInt(e,10)),e<100||e>999)?t:e}globalThis.Headers,globalThis.Response;const Pf=Symbol(`layout-meta`),Ff=Symbol(`route`);import.meta.url.replace(/\/app\/.*$/,`/`);const If=()=>V()?.$router,Lf=()=>qa()?L(Ff,V()._route):V()._route;function Rf(e){return e}var zf=()=>{try{if(V()._processingMiddleware)return!0}catch{return!1}return!1};const Bf=(e,t)=>{e||=`/`;let n=typeof e==`string`?e:`path`in e?Vf(e):If().resolve(e).href;if(t?.open){let{target:e=`_blank`,windowFeatures:r={}}=t.open,i=[];for(let[e,t]of Object.entries(r))t!==void 0&&i.push(`${e.toLowerCase()}=${t}`);return open(n,e,i.join(`, `)),Promise.resolve()}let r=Qu(n,{acceptRelative:!0}),i=t?.external||r;if(i){if(!t?.external)throw Error("Navigating to an external URL is not allowed by default. Use `navigateTo(url, { external: true })`.");let{protocol:e}=new URL(n,window.location.href);if(e&&$u(e))throw Error(`Cannot navigate to a URL with '${e}' protocol.`)}let a=zf();if(!i&&a){if(t?.replace){if(typeof e==`string`){let{pathname:t,search:n,hash:r}=fd(e);return{path:t,...n&&{query:Uu(n)},...r&&{hash:r},replace:!0}}return{...e,replace:!0}}return e}let o=If(),s=V();return i?(s._scope.stop(),t?.replace?location.replace(n):location.href=n,a?s.isHydrating?new Promise(()=>{}):!1:Promise.resolve()):t?.replace?o.replace(e):o.push(e)};function Vf(e){return ad(e.path||``,e.query||{})+(e.hash||``)}const Hf=()=>On(V().payload,`error`),Uf=e=>{let t=Kf(e);try{let e=Hf();V().hooks.callHook(`app:error`,t),e.value||=t}catch{throw t}return t},Wf=async(e={})=>{let t=V(),n=Hf();t.callHook(`app:error:cleared`,e),e.redirect&&await If().replace(e.redirect),n.value=void 0},Gf=e=>!!e&&typeof e==`object`&&`__nuxt_error`in e,Kf=e=>{let t=kf(e);return Object.defineProperty(t,`__nuxt_error`,{value:!0,configurable:!1,writable:!1}),t};var qf=typeof window<`u`,Jf,Yf=e=>Jf=e,Xf=Symbol();function Zf(e){return e&&typeof e==`object`&&Object.prototype.toString.call(e)===`[object Object]`&&typeof e.toJSON!=`function`}var Qf;(function(e){e.direct=`direct`,e.patchObject=`patch object`,e.patchFunction=`patch function`})(Qf||={});var $f=(()=>typeof window==`object`&&window.window===window?window:typeof self==`object`&&self.self===self?self:typeof global==`object`&&global.global===global?global:typeof globalThis==`object`?globalThis:{HTMLElement:null})();function ep(e,{autoBom:t=!1}={}){return t&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob([``,e],{type:e.type}):e}function tp(e,t,n){let r=new XMLHttpRequest;r.open(`GET`,e),r.responseType=`blob`,r.onload=function(){op(r.response,t,n)},r.onerror=function(){console.error(`could not download file`)},r.send()}function np(e){let t=new XMLHttpRequest;t.open(`HEAD`,e,!1);try{t.send()}catch{}return t.status>=200&&t.status<=299}function rp(e){try{e.dispatchEvent(new MouseEvent(`click`))}catch{let t=new MouseEvent(`click`,{bubbles:!0,cancelable:!0,view:window,detail:0,screenX:80,screenY:20,clientX:80,clientY:20,ctrlKey:!1,altKey:!1,shiftKey:!1,metaKey:!1,button:0,relatedTarget:null});e.dispatchEvent(t)}}var ip=typeof navigator==`object`?navigator:{userAgent:``},ap=(()=>/Macintosh/.test(ip.userAgent)&&/AppleWebKit/.test(ip.userAgent)&&!/Safari/.test(ip.userAgent))(),op=qf?typeof HTMLAnchorElement<`u`&&`download`in HTMLAnchorElement.prototype&&!ap?sp:`msSaveOrOpenBlob`in ip?cp:lp:()=>{};function sp(e,t=`download`,n){let r=document.createElement(`a`);r.download=t,r.rel=`noopener`,typeof e==`string`?(r.href=e,r.origin===location.origin?rp(r):np(r.href)?tp(e,t,n):(r.target=`_blank`,rp(r))):(r.href=URL.createObjectURL(e),setTimeout(function(){URL.revokeObjectURL(r.href)},4e4),setTimeout(function(){rp(r)},0))}function cp(e,t=`download`,n){if(typeof e==`string`)if(np(e))tp(e,t,n);else{let t=document.createElement(`a`);t.href=e,t.target=`_blank`,setTimeout(function(){rp(t)})}else navigator.msSaveOrOpenBlob(ep(e,n),t)}function lp(e,t,n,r){if(r||=open(``,`_blank`),r&&(r.document.title=r.document.body.innerText=`downloading...`),typeof e==`string`)return tp(e,t,n);let i=e.type===`application/octet-stream`,a=/constructor/i.test(String($f.HTMLElement))||`safari`in $f,o=/CriOS\/[\d]+/.test(navigator.userAgent);if((o||i&&a||ap)&&typeof FileReader<`u`){let t=new FileReader;t.onloadend=function(){let e=t.result;if(typeof e!=`string`)throw r=null,Error(`Wrong reader.result type`);e=o?e:e.replace(/^data:[^;]*;/,`data:attachment/file;`),r?r.location.href=e:location.assign(e),r=null},t.readAsDataURL(e)}else{let t=URL.createObjectURL(e);r?r.location.assign(t):location.href=t,r=null,setTimeout(function(){URL.revokeObjectURL(t)},4e4)}}var{assign:up}=Object;function dp(){let e=ze(!0),t=e.run(()=>hn({})),n=[],r=[],i=fn({install(e){Yf(i),i._a=e,e.provide(Xf,i),e.config.globalProperties.$pinia=i,r.forEach(e=>n.push(e)),r=[]},use(e){return this._a?n.push(e):r.push(e),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return i}var fp=()=>{};function pp(e,t,n,r=fp){e.add(t);let i=()=>{e.delete(t)&&r()};return!n&&Be()&&Ve(i),i}function mp(e,...t){e.forEach(e=>{e(...t)})}var hp=e=>e(),gp=Symbol(),_p=Symbol();function vp(e,t){for(let n in e instanceof Map&&t instanceof Map?t.forEach((t,n)=>e.set(n,t)):e instanceof Set&&t instanceof Set&&t.forEach(e.add,e),t){if(!t.hasOwnProperty(n))continue;let r=t[n],i=e[n];Zf(i)&&Zf(r)&&e.hasOwnProperty(n)&&!F(r)&&!cn(r)?e[n]=vp(i,r):e[n]=r}return e}var yp=Symbol();function bp(e){return!Zf(e)||!Object.prototype.hasOwnProperty.call(e,yp)}var{assign:xp}=Object;function Sp(e){return!!(F(e)&&e.effect)}function Cp(e,t,n,r){let{state:i,actions:a,getters:o}=t,s=n.state.value[e],c;function l(){return s||(n.state.value[e]=i?i():{}),xp(Tn(n.state.value[e]),a,Object.keys(o||{}).reduce((t,r)=>(t[r]=fn(B(()=>{Yf(n);let t=n._s.get(e);return o[r].call(t,t)})),t),{}))}return c=wp(e,l,t,n,r,!0),c}function wp(e,t,n={},r,i,a){let o,s=xp({actions:{}},n),c={deep:!0},l,u,d=new Set,f=new Set,p=r.state.value[e];!a&&!p&&(r.state.value[e]={}),hn({});let m;function h(t){let n;l=u=!1,typeof t==`function`?(t(r.state.value[e]),n={type:Qf.patchFunction,storeId:e,events:void 0}):(vp(r.state.value[e],t),n={type:Qf.patchObject,payload:t,storeId:e,events:void 0});let i=m=Symbol();ir().then(()=>{m===i&&(l=!0)}),u=!0,mp(d,n,r.state.value[e])}let g=a?function(){let{state:e}=n,t=e?e():{};this.$patch(e=>{xp(e,t)})}:fp;function _(){o.stop(),d.clear(),f.clear(),r._s.delete(e)}let v=(t,n=``)=>{if(gp in t)return t[_p]=n,t;let i=function(){Yf(r);let n=Array.from(arguments),a=new Set,o=new Set;function s(e){a.add(e)}function c(e){o.add(e)}mp(f,{args:n,name:i[_p],store:y,after:s,onError:c});let l;try{l=t.apply(this&&this.$id===e?this:y,n)}catch(e){throw mp(o,e),e}return l instanceof Promise?l.then(e=>(mp(a,e),e)).catch(e=>(mp(o,e),Promise.reject(e))):(mp(a,l),l)};return i[gp]=!0,i[_p]=n,i},y=nn({_p:r,$id:e,$onAction:pp.bind(null,f),$patch:h,$reset:g,$subscribe(t,n={}){let i=pp(d,t,n.detached,()=>a()),a=o.run(()=>$a(()=>r.state.value[e],r=>{(n.flush===`sync`?u:l)&&t({storeId:e,type:Qf.direct,events:void 0},r)},xp({},c,n)));return i},$dispose:_});r._s.set(e,y);let b=(r._a&&r._a.runWithContext||hp)(()=>r._e.run(()=>(o=ze()).run(()=>t({action:v}))));for(let t in b){let n=b[t];F(n)&&!Sp(n)||cn(n)?a||(p&&bp(n)&&(F(n)?n.value=p[t]:vp(n,p[t])),r.state.value[e][t]=n):typeof n==`function`&&(b[t]=v(n,t),s.actions[t]=n)}return xp(y,b),xp(P(y),b),Object.defineProperty(y,`$state`,{get:()=>r.state.value[e],set:e=>{h(t=>{xp(t,e)})}}),r._p.forEach(e=>{xp(y,o.run(()=>e({store:y,app:r._a,pinia:r,options:s})))}),p&&a&&n.hydrate&&n.hydrate(y.$state,p),l=!0,u=!0,y}function Tp(e,t,n){let r,i=typeof t==`function`;r=i?n:t;function a(n,a){let o=qa();return n||=o?L(Xf,null):null,n&&Yf(n),n=Jf,n._s.has(e)||(i?wp(e,t,r,n):Cp(e,r,n)),n._s.get(e)}return a.$id=e,a}function Ep(e){let t=Op(e),n=new ArrayBuffer(t.length),r=new DataView(n);for(let e=0;e>16),t+=String.fromCharCode((n&65280)>>8),t+=String.fromCharCode(n&255),n=r=0);return r===12?(n>>=4,t+=String.fromCharCode(n)):r===18&&(n>>=2,t+=String.fromCharCode((n&65280)>>8),t+=String.fromCharCode(n&255)),t}function kp(e,t){return Ap(JSON.parse(e),t)}function Ap(e,t){if(typeof e==`number`)return i(e,!0);if(!Array.isArray(e)||e.length===0)throw Error(`Invalid input`);let n=e,r=Array(n.length);function i(e,a=!1){if(e===-1)return;if(e===-3)return NaN;if(e===-4)return 1/0;if(e===-5)return-1/0;if(e===-6)return-0;if(a||typeof e!=`number`)throw Error(`Invalid input`);if(e in r)return r[e];let o=n[e];if(!o||typeof o!=`object`)r[e]=o;else if(Array.isArray(o))if(typeof o[0]==`string`){let a=o[0],s=t?.[a];if(s){let t=o[1];return typeof t!=`number`&&(t=n.push(o[1])-1),r[e]=s(i(t))}switch(a){case`Date`:r[e]=new Date(o[1]);break;case`Set`:let t=new Set;r[e]=t;for(let e=1;e`${e}:${String(t)}`).join(`,`)}`}function Wp(e,t,n){typeof e==`function`&&(!n||n!==`titleTemplate`&&!(n[0]===`o`&&n[1]===`n`))&&(e=e());let r;if(t&&(r=t(n,e)),Array.isArray(r))return r.map(e=>Wp(e,t));if(r?.constructor===Object){let e={};for(let n of Object.keys(r))e[n]=Wp(r[n],t,n);return e}return r}function Gp(e,t){let n=e===`style`?new Map:new Set;function r(t){let r=t.trim();if(r)if(e===`style`){let[e,...t]=r.split(`:`).map(e=>e.trim());e&&t.length&&n.set(e,t.join(`:`))}else r.split(` `).filter(Boolean).forEach(e=>n.add(e))}return typeof t==`string`?e===`style`?t.split(`;`).forEach(r):r(t):Array.isArray(t)?t.forEach(e=>r(e)):t&&typeof t==`object`&&Object.entries(t).forEach(([t,i])=>{i&&i!==`false`&&(e===`style`?n.set(t.trim(),i):r(t))}),n}function Kp(e,t){return e.props=e.props||{},t?e.tag===`templateParams`?(e.props=t,e):(Object.entries(t).forEach(([n,r])=>{if(r===null){e.props[n]=null;return}if(n===`class`||n===`style`){e.props[n]=Gp(n,r);return}if(Ip.has(n)){if([`textContent`,`innerHTML`].includes(n)&&typeof r==`object`){let i=t.type;if(t.type||(i=`application/json`),!i?.endsWith(`json`)&&i!==`speculationrules`)return;t.type=i,e.props.type=i,e[n]=JSON.stringify(r)}else e[n]=r;return}let i=String(r),a=n.startsWith(`data-`);i===`true`||i===``?e.props[n]=a?i:!0:!r&&a&&i===`false`?e.props[n]=`false`:r!==void 0&&(e.props[n]=r)}),e):e}function qp(e,t){let n=Kp({tag:e,props:{}},typeof t==`object`&&typeof t!=`function`?t:{[e===`script`||e===`noscript`||e===`style`?`innerHTML`:`textContent`]:t});return n.key&&jp.has(n.tag)&&(n.props[`data-hid`]=n._h=n.key),n.tag===`script`&&typeof n.innerHTML==`object`&&(n.innerHTML=JSON.stringify(n.innerHTML),n.props.type=n.props.type||`application/json`),Array.isArray(n.props.content)?n.props.content.map(e=>({...n,props:{...n.props,content:e}})):n}function Jp(e,t){if(!e)return[];typeof e==`function`&&(e=e());let n=(e,n)=>{for(let r=0;r{if(t!==void 0)for(let n of Array.isArray(t)?t:[t])r.push(qp(e,n))}),r.flat()}var Yp=(e,t)=>e._w===t._w?e._p-t._p:e._w-t._w,Xp={base:-10,title:10},Zp={critical:-8,high:-1,low:2},Qp={meta:{"content-security-policy":-30,charset:-20,viewport:-15},link:{preconnect:20,stylesheet:60,preload:70,modulepreload:70,prefetch:90,"dns-prefetch":90,prerender:90},script:{async:30,defer:80,sync:50},style:{imported:40,sync:60}},$p=/@import/,em=e=>e===``||e===!0;function tm(e,t){if(typeof t.tagPriority==`number`)return t.tagPriority;let n=100,r=Zp[t.tagPriority]||0,i=e.resolvedOptions.disableCapoSorting?{link:{},script:{},style:{}}:Qp;if(t.tag in Xp)n=Xp[t.tag];else if(t.tag===`meta`){let e=t.props[`http-equiv`]===`content-security-policy`?`content-security-policy`:t.props.charset?`charset`:t.props.name===`viewport`?`viewport`:null;e&&(n=Qp.meta[e])}else t.tag===`link`&&t.props.rel?n=i.link[t.props.rel]:t.tag===`script`?em(t.props.async)?n=i.script.async:t.props.src&&!em(t.props.defer)&&!em(t.props.async)&&t.props.type!==`module`&&!t.props.type?.endsWith(`json`)?n=i.script.sync:em(t.props.defer)&&t.props.src&&!em(t.props.async)&&(n=i.script.defer):t.tag===`style`&&(n=t.innerHTML&&$p.test(t.innerHTML)?i.style.imported:i.style.sync);return(n||100)+r}function nm(e,t){let n=typeof t==`function`?t(e):t,r=n.key||String(e.plugins.size+1);e.plugins.get(r)||(e.plugins.set(r,n),e.hooks.addHooks(n.hooks||{}))}function rm(e={}){let t=qd();t.addHooks(e.hooks||{});let n=!e.document,r=new Map,i=new Map,a=new Set,o={_entryCount:1,plugins:i,dirty:!1,resolvedOptions:e,hooks:t,ssr:n,entries:r,headEntries(){return[...r.values()]},use:e=>nm(o,e),push(e,i){let s={...i||{}};delete s.head;let c=s._index??o._entryCount++,l={_i:c,input:e,options:s},u={_poll(e=!1){o.dirty=!0,!e&&a.add(c),t.callHook(`entries:updated`,o)},dispose(){r.delete(c)&&o.invalidate()},patch(e){(!s.mode||s.mode===`server`&&n||s.mode===`client`&&!n)&&(l.input=e,r.set(c,l),u._poll())}};return u.patch(e),u},async resolveTags(){let n={tagMap:new Map,tags:[],entries:[...o.entries.values()]};for(await t.callHook(`entries:resolve`,n);a.size;){let n=a.values().next().value;a.delete(n);let i=r.get(n);if(i){let n={tags:Jp(i.input,e.propResolvers||[]).map(e=>Object.assign(e,i.options)),entry:i};await t.callHook(`entries:normalize`,n),i._tags=n.tags.map((e,t)=>(e._w=tm(o,e),e._p=(i._i<<10)+t,e._d=Hp(e),e))}}let i=!1;n.entries.flatMap(e=>(e._tags||[]).map(e=>({...e,props:{...e.props}}))).sort(Yp).reduce((e,t)=>{let n=String(t._d||t._p);if(!e.has(n))return e.set(n,t);let r=e.get(n);if((t?.tagDuplicateStrategy||(Lp.has(t.tag)?`merge`:null)||(t.key&&t.key===r.key?`merge`:null))===`merge`){let i={...r.props};Object.entries(t.props).forEach(([e,t])=>i[e]=e===`style`?new Map([...r.props.style||new Map,...t]):e===`class`?new Set([...r.props.class||new Set,...t]):t),e.set(n,{...t,props:i})}else t._p>>10==r._p>>10&&t.tag===`meta`&&Vp(n)?(e.set(n,Object.assign([...Array.isArray(r)?r:[r],t],t)),i=!0):(t._w===r._w?t._p>r._p:t?._wnm(o,e)),o.hooks.callHook(`init`,o),e.init?.forEach(e=>e&&o.push(e)),o}var im=(e,t)=>F(t)?bn(t):t,am=`usehead`;function om(e){return{install(t){t.config.globalProperties.$unhead=e,t.config.globalProperties.$head=e,t.provide(am,e)}}.install}function sm(){if(qa()){let e=L(am);if(!e)throw Error(`useHead() was called without provide context, ensure you call it through the setup() function.`);return e}throw Error(`useHead() was called without provide context, ensure you call it through the setup() function.`)}function cm(e,t={}){let n=t.head||sm();return n.ssr?n.push(e||{},t):lm(n,e,t)}function lm(e,t,n={}){let r=hn(!1),i;return Xa(()=>{let a=r.value?{}:Wp(t,im);i?i.patch(a):i=e.push(a,n)}),Rs()&&(Hi(()=>{i.dispose()}),ji(()=>{r.value=!0}),Ai(()=>{r.value=!1})),i}function um(e){let t=e||V();return t.ssrContext?.head||t.runWithContext(()=>{if(qa()){let e=L(`usehead`);if(!e)throw Error(`[nuxt] [unhead] Missing Unhead instance.`);return e}})}function dm(e,t={}){return cm(e,{head:t.head||um(t.nuxt),...t})}var fm=`modulepreload`,pm=function(e,t){return new URL(e,t).href},mm={};const hm=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=document.getElementsByTagName(`link`),i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}r=o(t.map(t=>{if(t=pm(t,n),t in mm)return;mm[t]=!0;let r=t.endsWith(`.css`),i=r?`[rel="stylesheet"]`:``;if(n)for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.href===t&&(!r||i.rel===`stylesheet`))return}else if(document.querySelector(`link[href="${t}"]${i}`))return;let o=document.createElement(`link`);if(o.rel=r?`stylesheet`:fm,r||(o.as=`script`),o.crossOrigin=``,o.href=t,a&&o.setAttribute(`nonce`,a),document.head.appendChild(o),r)return new Promise((e,n)=>{o.addEventListener(`load`,e),o.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${t}`)))})}))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})};var gm,_m;function vm(){return gm=$fetch(Rd(`builds/meta/${gf().app.buildId}.json`),{responseType:`json`}),gm.then(e=>{_m=bf(e.matcher)}).catch(e=>{console.error(`[nuxt] Error fetching app manifest.`,e)}),gm}function ym(){return gm||vm()}async function bm(e){let t=typeof e==`string`?e:e.path;if(await ym(),!_m)return console.error(`[nuxt] Error creating app manifest matcher.`,_m),{};try{return Ef({},..._m.matchAll(t).reverse())}catch(e){return console.error(`[nuxt] Error matching route rules.`,e),{}}}async function xm(e,t={}){return await Tm(e)&&await wm(await Cm(e,t))||null}var Sm=`_payload.json`;async function Cm(e,t={}){let n=new URL(e,`http://localhost`);if(n.host!==`localhost`||Qu(n.pathname,{acceptRelative:!0}))throw Error(`Payload URL must not include hostname: `+e);let r=gf(),i=t.hash||(t.fresh?Date.now():r.app.buildId),a=r.app.cdnURL;return cd(a&&await Tm(e)?a:r.app.baseURL,n.pathname,Sm+(i?`?${i}`:``))}async function wm(e){let t=fetch(e,{cache:`force-cache`}).then(e=>e.text().then(Om));try{return await t}catch(t){console.warn(`[nuxt] Cannot load payload `,e,t)}return null}async function Tm(e=Lf().path){let t=V();return e=e===`/`?e:e.replace(/\/$/,``),(await ym()).prerendered.includes(e)?!0:t.runWithContext(async()=>{let t=await bm({path:e});return!!t.prerender&&!t.redirect})}var Em=null;async function Dm(){if(Em)return Em;let e=document.getElementById(`__NUXT_DATA__`);if(!e)return{};let t=await Om(e.textContent||``),n=e.dataset.src?await wm(e.dataset.src):void 0;return Em={...t,...n,...window.__NUXT__},Em.config?.public&&(Em.config.public=nn(Em.config.public)),Em}async function Om(e){return await kp(e,V()._payloadRevivers)}function km(e,t){V()._payloadRevivers[e]=t}var Am=pf(()=>{km(`skipHydrate`,e=>void 0)}),jm=[[`NuxtError`,e=>Kf(e)],[`EmptyShallowRef`,e=>gn(e===`_`?void 0:e===`0n`?BigInt(0):Du(e))],[`EmptyRef`,e=>hn(e===`_`?void 0:e===`0n`?BigInt(0):Du(e))],[`ShallowRef`,e=>gn(e)],[`ShallowReactive`,e=>rn(e)],[`Ref`,e=>hn(e)],[`Reactive`,e=>nn(e)]],Mm=ff({name:`nuxt:revive-payload:client`,order:-30,async setup(e){let t,n;for(let[e,t]of jm)km(e,t);Object.assign(e.payload,([t,n]=nf(()=>e.runWithContext(Dm)),t=await t,n(),t)),delete window.__NUXT__}},1);async function Nm(e,t={}){let n=t.document||e.resolvedOptions.document;if(!n||!e.dirty)return;let r={shouldRender:!0,tags:[]};if(await e.hooks.callHook(`dom:beforeRender`,r),r.shouldRender)return e._domUpdatePromise||=new Promise(async t=>{let r=new Map,i=new Promise(t=>{e.resolveTags().then(e=>{t(e.map(e=>{let t=r.get(e._d)||0,n={tag:e,id:(t?`${e._d}:${t}`:e._d)||Up(e),shouldRender:!0};return e._d&&Vp(e._d)&&r.set(e._d,t+1),n}))})}),a=e._dom;if(!a){a={title:n.title,elMap:new Map().set(`htmlAttrs`,n.documentElement).set(`bodyAttrs`,n.body)};for(let e of[`body`,`head`]){let t=n[e]?.children;for(let e of t){let t=e.tagName.toLowerCase();if(!Np.has(t))continue;let n=Kp({tag:t,props:{}},{innerHTML:e.innerHTML,...e.getAttributeNames().reduce((t,n)=>(t[n]=e.getAttribute(n),t),{})||{}});if(n.key=e.getAttribute(`data-hid`)||void 0,n._d=Hp(n)||Up(n),a.elMap.has(n._d)){let t=1,r=n._d;for(;a.elMap.has(r);)r=`${n._d}:${t++}`;a.elMap.set(r,e)}else a.elMap.set(n._d,e)}}}a.pendingSideEffects={...a.sideEffects},a.sideEffects={};function o(e,t,n){let r=`${e}:${t}`;a.sideEffects[r]=n,delete a.pendingSideEffects[r]}function s({id:e,$el:t,tag:r}){let i=r.tag.endsWith(`Attrs`);for(let s in a.elMap.set(e,t),i||(r.textContent&&r.textContent!==t.textContent&&(t.textContent=r.textContent),r.innerHTML&&r.innerHTML!==t.innerHTML&&(t.innerHTML=r.innerHTML),o(e,`el`,()=>{t?.remove(),a.elMap.delete(e)})),r.props){if(!Object.prototype.hasOwnProperty.call(r.props,s))continue;let a=r.props[s];if(s.startsWith(`on`)&&typeof a==`function`){let e=t?.dataset;if(e&&e[`${s}fired`]){let e=s.slice(0,-5);a.call(t,new Event(e.substring(2)))}t.getAttribute(`data-${s}`)!==``&&((r.tag===`bodyAttrs`?n.defaultView:t).addEventListener(s.substring(2),a.bind(t)),t.setAttribute(`data-${s}`,``));continue}let c=`attr:${s}`;if(s===`class`){if(!a)continue;for(let n of a)i&&o(e,`${c}:${n}`,()=>t.classList.remove(n)),!t.classList.contains(n)&&t.classList.add(n)}else if(s===`style`){if(!a)continue;for(let[n,r]of a)o(e,`${c}:${n}`,()=>{t.style.removeProperty(n)}),t.style.setProperty(n,r)}else a!==!1&&a!==null&&(t.getAttribute(s)!==a&&t.setAttribute(s,a===!0?``:String(a)),i&&o(e,c,()=>t.removeAttribute(s)))}}let c=[],l={bodyClose:void 0,bodyOpen:void 0,head:void 0},u=await i;for(let e of u){let{tag:t,shouldRender:r,id:i}=e;if(r){if(t.tag===`title`){n.title=t.textContent,o(`title`,``,()=>n.title=a.title);continue}e.$el=e.$el||a.elMap.get(i),e.$el?s(e):Np.has(t.tag)&&c.push(e)}}for(let e of c){let t=e.tag.tagPosition||`head`;e.$el=n.createElement(e.tag.tag),s(e),l[t]=l[t]||n.createDocumentFragment(),l[t].appendChild(e.$el)}for(let t of u)await e.hooks.callHook(`dom:renderTag`,t,n,o);for(let e in l.head&&n.head.appendChild(l.head),l.bodyOpen&&n.body.insertBefore(l.bodyOpen,n.body.firstChild),l.bodyClose&&n.body.appendChild(l.bodyClose),a.pendingSideEffects)a.pendingSideEffects[e]();e._dom=a,await e.hooks.callHook(`dom:rendered`,{renders:u}),t()}).finally(()=>{e._domUpdatePromise=void 0,e.dirty=!1}),e._domUpdatePromise}function Pm(e={}){let t=e.domOptions?.render||Nm;e.document=e.document||(typeof window<`u`?document:void 0);let n=e.document?.head.querySelector(`script[id="unhead:payload"]`)?.innerHTML||!1;return rm({...e,plugins:[...e.plugins||[],{key:`client`,hooks:{"entries:updated":t}}],init:[n?JSON.parse(n):!1,...e.init||[]]})}function Fm(e,t){let n=0;return()=>{let r=++n;t(()=>{n===r&&e()})}}function Im(e={}){let t=Pm({domOptions:{render:Fm(()=>Nm(t),e=>setTimeout(e,0))},...e});return t.install=om(t),t}var Lm={disableDefaults:!0},Rm=ff({name:`nuxt:head`,enforce:`pre`,setup(e){let t=Im(Lm);e.vueApp.use(t);{let n=!0,r=async()=>{n=!1,await Nm(t)};t.hooks.hook(`dom:beforeRender`,e=>{e.shouldRender=!n}),e.hooks.hook(`page:start`,()=>{n=!0}),e.hooks.hook(`page:finish`,()=>{e.isHydrating||r()}),e.hooks.hook(`app:error`,r),e.hooks.hook(`app:suspense:resolve`,r)}}}),zm=typeof document<`u`;function Bm(e){return typeof e==`object`||`displayName`in e||`props`in e||`__vccOpts`in e}function Vm(e){return e.__esModule||e[Symbol.toStringTag]===`Module`||e.default&&Bm(e.default)}var H=Object.assign;function Hm(e,t){let n={};for(let r in t){let i=t[r];n[r]=Wm(i)?i.map(e):e(i)}return n}var Um=()=>{},Wm=Array.isArray;function Gm(e,t){let n={};for(let r in e)n[r]=r in t?t[r]:e[r];return n}var Km=/#/g,qm=/&/g,Jm=/\//g,Ym=/=/g,Xm=/\?/g,Zm=/\+/g,Qm=/%5B/g,$m=/%5D/g,eh=/%5E/g,th=/%60/g,nh=/%7B/g,rh=/%7C/g,ih=/%7D/g,ah=/%20/g;function oh(e){return e==null?``:encodeURI(``+e).replace(rh,`|`).replace(Qm,`[`).replace($m,`]`)}function sh(e){return oh(e).replace(nh,`{`).replace(ih,`}`).replace(eh,`^`)}function ch(e){return oh(e).replace(Zm,`%2B`).replace(ah,`+`).replace(Km,`%23`).replace(qm,`%26`).replace(th,"`").replace(nh,`{`).replace(ih,`}`).replace(eh,`^`)}function lh(e){return ch(e).replace(Ym,`%3D`)}function uh(e){return oh(e).replace(Km,`%23`).replace(Xm,`%3F`)}function dh(e){return uh(e).replace(Jm,`%2F`)}function fh(e){if(e==null)return null;try{return decodeURIComponent(``+e)}catch{}return``+e}var ph=/\/$/,mh=e=>e.replace(ph,``);function hh(e,t,n=`/`){let r,i={},a=``,o=``,s=t.indexOf(`#`),c=t.indexOf(`?`);return c=s>=0&&c>s?-1:c,c>=0&&(r=t.slice(0,c),a=t.slice(c,s>0?s:t.length),i=e(a.slice(1))),s>=0&&(r||=t.slice(0,s),o=t.slice(s,t.length)),r=Ch(r??t,n),{fullPath:r+a+o,path:r,query:i,hash:fh(o)}}function gh(e,t){let n=t.query?e(t.query):``;return t.path+(n&&`?`)+n+(t.hash||``)}function _h(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||`/`}function vh(e,t,n){let r=t.matched.length-1,i=n.matched.length-1;return r>-1&&r===i&&yh(t.matched[r],n.matched[i])&&bh(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function yh(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function bh(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(!xh(e[n],t[n]))return!1;return!0}function xh(e,t){return Wm(e)?Sh(e,t):Wm(t)?Sh(t,e):e?.valueOf()===t?.valueOf()}function Sh(e,t){return Wm(t)?e.length===t.length&&e.every((e,n)=>e===t[n]):e.length===1&&e[0]===t}function Ch(e,t){if(e.startsWith(`/`))return e;if(!e)return t;let n=t.split(`/`),r=e.split(`/`),i=r[r.length-1];(i===`..`||i===`.`)&&r.push(``);let a=n.length-1,o,s;for(o=0;o1&&a--;else break;return n.slice(0,a).join(`/`)+`/`+r.slice(o).join(`/`)}var wh={path:`/`,name:void 0,params:{},query:{},hash:``,fullPath:`/`,matched:[],meta:{},redirectedFrom:void 0},Th=function(e){return e.pop=`pop`,e.push=`push`,e}({}),Eh=function(e){return e.back=`back`,e.forward=`forward`,e.unknown=``,e}({});function Dh(e){if(!e)if(zm){let t=document.querySelector(`base`);e=t&&t.getAttribute(`href`)||`/`,e=e.replace(/^\w+:\/\/[^\/]+/,``)}else e=`/`;return e[0]!==`/`&&e[0]!==`#`&&(e=`/`+e),mh(e)}var Oh=/^[^#]+#/;function kh(e,t){return e.replace(Oh,`#`)+t}function Ah(e,t){let n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}var jh=()=>({left:window.scrollX,top:window.scrollY});function Mh(e){let t;if(`el`in e){let n=e.el,r=typeof n==`string`&&n.startsWith(`#`),i=typeof n==`string`?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!i)return;t=Ah(i,e)}else t=e;`scrollBehavior`in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left==null?window.scrollX:t.left,t.top==null?window.scrollY:t.top)}function Nh(e,t){return(history.state?history.state.position-t:-1)+e}var Ph=new Map;function Fh(e,t){Ph.set(e,t)}function Ih(e){let t=Ph.get(e);return Ph.delete(e),t}function Lh(e){return typeof e==`string`||e&&typeof e==`object`}function Rh(e){return typeof e==`string`||typeof e==`symbol`}var U=function(e){return e[e.MATCHER_NOT_FOUND=1]=`MATCHER_NOT_FOUND`,e[e.NAVIGATION_GUARD_REDIRECT=2]=`NAVIGATION_GUARD_REDIRECT`,e[e.NAVIGATION_ABORTED=4]=`NAVIGATION_ABORTED`,e[e.NAVIGATION_CANCELLED=8]=`NAVIGATION_CANCELLED`,e[e.NAVIGATION_DUPLICATED=16]=`NAVIGATION_DUPLICATED`,e}({}),zh=Symbol(``);U.MATCHER_NOT_FOUND,U.NAVIGATION_GUARD_REDIRECT,U.NAVIGATION_ABORTED,U.NAVIGATION_CANCELLED,U.NAVIGATION_DUPLICATED;function Bh(e,t){return H(Error(),{type:e,[zh]:!0},t)}function Vh(e,t){return e instanceof Error&&zh in e&&(t==null||!!(e.type&t))}function Hh(e){let t={};if(e===``||e===`?`)return t;let n=(e[0]===`?`?e.slice(1):e).split(`&`);for(let e=0;ee&&ch(e)):[r&&ch(r)]).forEach(e=>{e!==void 0&&(t+=(t.length?`&`:``)+n,e!=null&&(t+=`=`+e))})}return t}function Wh(e){let t={};for(let n in e){let r=e[n];r!==void 0&&(t[n]=Wm(r)?r.map(e=>e==null?null:``+e):r==null?r:``+r)}return t}var Gh=Symbol(``),Kh=Symbol(``),qh=Symbol(``),Jh=Symbol(``),Yh=Symbol(``);function Xh(){let e=[];function t(t){return e.push(t),()=>{let n=e.indexOf(t);n>-1&&e.splice(n,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function Zh(e,t,n,r,i,a=e=>e()){let o=r&&(r.enterCallbacks[i]=r.enterCallbacks[i]||[]);return()=>new Promise((s,c)=>{let l=e=>{e===!1?c(Bh(U.NAVIGATION_ABORTED,{from:n,to:t})):e instanceof Error?c(e):Lh(e)?c(Bh(U.NAVIGATION_GUARD_REDIRECT,{from:t,to:e})):(o&&r.enterCallbacks[i]===o&&typeof e==`function`&&o.push(e),s())},u=a(()=>e.call(r&&r.instances[i],t,n,l)),d=Promise.resolve(u);e.length<3&&(d=d.then(l)),d.catch(e=>c(e))})}function Qh(e,t,n,r,i=e=>e()){let a=[];for(let o of e)for(let e in o.components){let s=o.components[e];if(!(t!==`beforeRouteEnter`&&!o.instances[e]))if(Bm(s)){let c=(s.__vccOpts||s)[t];c&&a.push(Zh(c,n,r,o,e,i))}else{let c=s();a.push(()=>c.then(a=>{if(!a)throw Error(`Couldn't resolve component "${e}" at "${o.path}"`);let s=Vm(a)?a.default:a;o.mods[e]=a,o.components[e]=s;let c=(s.__vccOpts||s)[t];return c&&Zh(c,n,r,o,e,i)()}))}}return a}function $h(e,t){let n=[],r=[],i=[],a=Math.max(t.matched.length,e.matched.length);for(let o=0;oyh(e,a))?r.push(a):n.push(a));let s=e.matched[o];s&&(t.matched.find(e=>yh(e,s))||i.push(s))}return[n,r,i]}var eg=()=>location.protocol+`//`+location.host;function tg(e,t){let{pathname:n,search:r,hash:i}=t,a=e.indexOf(`#`);if(a>-1){let t=i.includes(e.slice(a))?e.slice(a).length:1,n=i.slice(t);return n[0]!==`/`&&(n=`/`+n),_h(n,``)}return _h(n,e)+r+i}function ng(e,t,n,r){let i=[],a=[],o=null,s=({state:a})=>{let s=tg(e,location),c=n.value,l=t.value,u=0;if(a){if(n.value=s,t.value=a,o&&o===c){o=null;return}u=l?a.position-l.position:0}else r(s);i.forEach(e=>{e(n.value,c,{delta:u,type:Th.pop,direction:u?u>0?Eh.forward:Eh.back:Eh.unknown})})};function c(){o=n.value}function l(e){i.push(e);let t=()=>{let t=i.indexOf(e);t>-1&&i.splice(t,1)};return a.push(t),t}function u(){if(document.visibilityState===`hidden`){let{history:e}=window;if(!e.state)return;e.replaceState(H({},e.state,{scroll:jh()}),``)}}function d(){for(let e of a)e();a=[],window.removeEventListener(`popstate`,s),window.removeEventListener(`pagehide`,u),document.removeEventListener(`visibilitychange`,u)}return window.addEventListener(`popstate`,s),window.addEventListener(`pagehide`,u),document.addEventListener(`visibilitychange`,u),{pauseListeners:c,listen:l,destroy:d}}function rg(e,t,n,r=!1,i=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:i?jh():null}}function ig(e){let{history:t,location:n}=window,r={value:tg(e,n)},i={value:t.state};i.value||a(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function a(r,a,o){let s=e.indexOf(`#`),c=s>-1?(n.host&&document.querySelector(`base`)?e:e.slice(s))+r:eg()+e+r;try{t[o?`replaceState`:`pushState`](a,``,c),i.value=a}catch(e){console.error(e),n[o?`replace`:`assign`](c)}}function o(e,n){a(e,H({},t.state,rg(i.value.back,e,i.value.forward,!0),n,{position:i.value.position}),!0),r.value=e}function s(e,n){let o=H({},i.value,t.state,{forward:e,scroll:jh()});a(o.current,o,!0),a(e,H({},rg(r.value,e,null),{position:o.position+1},n),!1),r.value=e}return{location:r,state:i,push:s,replace:o}}function ag(e){e=Dh(e);let t=ig(e),n=ng(e,t.state,t.location,t.replace);function r(e,t=!0){t||n.pauseListeners(),history.go(e)}let i=H({location:``,base:e,go:r,createHref:kh.bind(null,e)},t,n);return Object.defineProperty(i,`location`,{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(i,`state`,{enumerable:!0,get:()=>t.state.value}),i}function og(e){return e=location.host?e||location.pathname+location.search:``,e.includes(`#`)||(e+=`#`),ag(e)}var sg=function(e){return e[e.Static=0]=`Static`,e[e.Param=1]=`Param`,e[e.Group=2]=`Group`,e}({}),cg=function(e){return e[e.Static=0]=`Static`,e[e.Param=1]=`Param`,e[e.ParamRegExp=2]=`ParamRegExp`,e[e.ParamRegExpEnd=3]=`ParamRegExpEnd`,e[e.EscapeNext=4]=`EscapeNext`,e}(cg||{}),lg={type:sg.Static,value:``},ug=/[a-zA-Z0-9_]/;function dg(e){if(!e)return[[]];if(e===`/`)return[[lg]];if(!e.startsWith(`/`))throw Error(`Invalid path "${e}"`);function t(e){throw Error(`ERR (${n})/"${l}": ${e}`)}let n=cg.Static,r=n,i=[],a;function o(){a&&i.push(a),a=[]}let s=0,c,l=``,u=``;function d(){l&&=(n===cg.Static?a.push({type:sg.Static,value:l}):n===cg.Param||n===cg.ParamRegExp||n===cg.ParamRegExpEnd?(a.length>1&&(c===`*`||c===`+`)&&t(`A repeatable param (${l}) must be alone in its segment. eg: '/:ids+.`),a.push({type:sg.Param,value:l,regexp:u,repeatable:c===`*`||c===`+`,optional:c===`*`||c===`?`})):t(`Invalid state to consume buffer`),``)}function f(){l+=c}for(;st.length?t.length===1&&t[0]===mg.Static+mg.Segment?1:-1:0}function vg(e,t){let n=0,r=e.score,i=t.score;for(;n0&&t[t.length-1]<0}var bg={strict:!1,end:!0,sensitive:!1};function xg(e,t,n){let r=H(gg(dg(e.path),n),{record:e,parent:t,children:[],alias:[]});return t&&!r.record.aliasOf==!t.record.aliasOf&&t.children.push(r),r}function Sg(e,t){let n=[],r=new Map;t=Gm(bg,t);function i(e){return r.get(e)}function a(e,n,r){let i=!r,s=wg(e);s.aliasOf=r&&r.record;let l=Gm(t,e),u=[s];if(`alias`in e){let t=typeof e.alias==`string`?[e.alias]:e.alias;for(let e of t)u.push(wg(H({},s,{components:r?r.record.components:s.components,path:e,aliasOf:r?r.record:s})))}let d,f;for(let t of u){let{path:u}=t;if(n&&u[0]!==`/`){let e=n.record.path,r=e[e.length-1]===`/`?``:`/`;t.path=n.record.path+(u&&r+u)}if(d=xg(t,n,l),r?r.alias.push(d):(f||=d,f!==d&&f.alias.push(d),i&&e.name&&!Eg(d)&&o(e.name)),Ag(d)&&c(d),s.children){let e=s.children;for(let t=0;t{o(f)}:Um}function o(e){if(Rh(e)){let t=r.get(e);t&&(r.delete(e),n.splice(n.indexOf(t),1),t.children.forEach(o),t.alias.forEach(o))}else{let t=n.indexOf(e);t>-1&&(n.splice(t,1),e.record.name&&r.delete(e.record.name),e.children.forEach(o),e.alias.forEach(o))}}function s(){return n}function c(e){let t=Og(e,n);n.splice(t,0,e),e.record.name&&!Eg(e)&&r.set(e.record.name,e)}function l(e,t){let i,a={},o,s;if(`name`in e&&e.name){if(i=r.get(e.name),!i)throw Bh(U.MATCHER_NOT_FOUND,{location:e});s=i.record.name,a=H(Cg(t.params,i.keys.filter(e=>!e.optional).concat(i.parent?i.parent.keys.filter(e=>e.optional):[]).map(e=>e.name)),e.params&&Cg(e.params,i.keys.map(e=>e.name))),o=i.stringify(a)}else if(e.path!=null)o=e.path,i=n.find(e=>e.re.test(o)),i&&(a=i.parse(o),s=i.record.name);else{if(i=t.name?r.get(t.name):n.find(e=>e.re.test(t.path)),!i)throw Bh(U.MATCHER_NOT_FOUND,{location:e,currentLocation:t});s=i.record.name,a=H({},t.params,e.params),o=i.stringify(a)}let c=[],l=i;for(;l;)c.unshift(l.record),l=l.parent;return{name:s,path:o,params:a,matched:c,meta:Dg(c)}}e.forEach(e=>a(e));function u(){n.length=0,r.clear()}return{addRoute:a,resolve:l,removeRoute:o,clearRoutes:u,getRoutes:s,getRecordMatcher:i}}function Cg(e,t){let n={};for(let r of t)r in e&&(n[r]=e[r]);return n}function wg(e){let t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:Tg(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:`components`in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,`mods`,{value:{}}),t}function Tg(e){let t={},n=e.props||!1;if(`component`in e)t.default=n;else for(let r in e.components)t[r]=typeof n==`object`?n[r]:n;return t}function Eg(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Dg(e){return e.reduce((e,t)=>H(e,t.meta),{})}function Og(e,t){let n=0,r=t.length;for(;n!==r;){let i=n+r>>1;vg(e,t[i])<0?r=i:n=i+1}let i=kg(e);return i&&(r=t.lastIndexOf(i,r-1)),r}function kg(e){let t=e;for(;t=t.parent;)if(Ag(t)&&vg(e,t)===0)return t}function Ag({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function jg(e){let t=L(qh),n=L(Jh),r=B(()=>{let n=I(e.to);return t.resolve(n)}),i=B(()=>{let{matched:e}=r.value,{length:t}=e,i=e[t-1],a=n.matched;if(!i||!a.length)return-1;let o=a.findIndex(yh.bind(null,i));if(o>-1)return o;let s=Ig(e[t-2]);return t>1&&Ig(i)===s&&a[a.length-1].path!==s?a.findIndex(yh.bind(null,e[t-2])):o}),a=B(()=>i.value>-1&&Fg(n.params,r.value.params)),o=B(()=>i.value>-1&&i.value===n.matched.length-1&&bh(n.params,r.value.params));function s(n={}){if(Pg(n)){let n=t[I(e.replace)?`replace`:`push`](I(e.to)).catch(Um);return e.viewTransition&&typeof document<`u`&&`startViewTransition`in document&&document.startViewTransition(()=>n),n}return Promise.resolve()}return{route:r,href:B(()=>r.value.href),isActive:a,isExactActive:o,navigate:s}}function Mg(e){return e.length===1?e[0]:e}var Ng=$r({name:`RouterLink`,compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:`page`},viewTransition:Boolean},useLink:jg,setup(e,{slots:t}){let n=nn(jg(e)),{options:r}=L(qh),i=B(()=>({[Lg(e.activeClass,r.linkActiveClass,`router-link-active`)]:n.isActive,[Lg(e.exactActiveClass,r.linkExactActiveClass,`router-link-exact-active`)]:n.isExactActive}));return()=>{let r=t.default&&Mg(t.default(n));return e.custom?r:ic(`a`,{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:i.value},r)}}});function Pg(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){let t=e.currentTarget.getAttribute(`target`);if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function Fg(e,t){for(let n in t){let r=t[n],i=e[n];if(typeof r==`string`){if(r!==i)return!1}else if(!Wm(i)||i.length!==r.length||r.some((e,t)=>e.valueOf()!==i[t].valueOf()))return!1}return!0}function Ig(e){return e?e.aliasOf?e.aliasOf.path:e.path:``}var Lg=(e,t,n)=>e??t??n,Rg=$r({name:`RouterView`,inheritAttrs:!1,props:{name:{type:String,default:`default`},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){let r=L(Yh),i=B(()=>e.route||r.value),a=L(Kh,0),o=B(()=>{let e=I(a),{matched:t}=i.value,n;for(;(n=t[e])&&!n.components;)e++;return e}),s=B(()=>i.value.matched[o.value]);Ka(Kh,B(()=>o.value+1)),Ka(Gh,s),Ka(Yh,i);let c=hn();return $a(()=>[c.value,s.value,e.name],([e,t,n],[r,i,a])=>{t&&(t.instances[n]=e,i&&i!==t&&e&&e===r&&(t.leaveGuards.size||(t.leaveGuards=i.leaveGuards),t.updateGuards.size||(t.updateGuards=i.updateGuards))),e&&t&&(!i||!yh(t,i)||!r)&&(t.enterCallbacks[n]||[]).forEach(t=>t(e))},{flush:`post`}),()=>{let r=i.value,a=e.name,o=s.value,l=o&&o.components[a];if(!l)return zg(n.default,{Component:l,route:r});let u=o.props[a],d=ic(l,H({},u?u===!0?r.params:typeof u==`function`?u(r):u:null,t,{onVnodeUnmounted:e=>{e.component.isUnmounted&&(o.instances[a]=null)},ref:c}));return zg(n.default,{Component:d,route:r})||d}}});function zg(e,t){if(!e)return null;let n=e(t);return n.length===1?n[0]:n}var Bg=Rg;function Vg(e){let t=Sg(e.routes,e),n=e.parseQuery||Hh,r=e.stringifyQuery||Uh,i=e.history,a=Xh(),o=Xh(),s=Xh(),c=gn(wh),l=wh;zm&&e.scrollBehavior&&`scrollRestoration`in history&&(history.scrollRestoration=`manual`);let u=Hm.bind(null,e=>``+e),d=Hm.bind(null,dh),f=Hm.bind(null,fh);function p(e,n){let r,i;return Rh(e)?(r=t.getRecordMatcher(e),i=n):i=e,t.addRoute(i,r)}function m(e){let n=t.getRecordMatcher(e);n&&t.removeRoute(n)}function h(){return t.getRoutes().map(e=>e.record)}function g(e){return!!t.getRecordMatcher(e)}function _(e,a){if(a=H({},a||c.value),typeof e==`string`){let r=hh(n,e,a.path),o=t.resolve({path:r.path},a),s=i.createHref(r.fullPath);return H(r,o,{params:f(o.params),hash:fh(r.hash),redirectedFrom:void 0,href:s})}let o;if(e.path!=null)o=H({},e,{path:hh(n,e.path,a.path).path});else{let t=H({},e.params);for(let e in t)t[e]??delete t[e];o=H({},e,{params:d(t)}),a.params=d(a.params)}let s=t.resolve(o,a),l=e.hash||``;s.params=u(f(s.params));let p=gh(r,H({},e,{hash:sh(l),path:s.path})),m=i.createHref(p);return H({fullPath:p,hash:l,query:r===Uh?Wh(e.query):e.query||{}},s,{redirectedFrom:void 0,href:m})}function v(e){return typeof e==`string`?hh(n,e,c.value.path):H({},e)}function y(e,t){if(l!==e)return Bh(U.NAVIGATION_CANCELLED,{from:t,to:e})}function b(e){return C(e)}function x(e){return b(H(v(e),{replace:!0}))}function S(e,t){let n=e.matched[e.matched.length-1];if(n&&n.redirect){let{redirect:r}=n,i=typeof r==`function`?r(e,t):r;return typeof i==`string`&&(i=i.includes(`?`)||i.includes(`#`)?i=v(i):{path:i},i.params={}),H({query:e.query,hash:e.hash,params:i.path==null?e.params:{}},i)}}function C(e,t){let n=l=_(e),i=c.value,a=e.state,o=e.force,s=e.replace===!0,u=S(n,i);if(u)return C(H(v(u),{state:typeof u==`object`?H({},a,u.state):a,force:o,replace:s}),t||n);let d=n;d.redirectedFrom=t;let f;return!o&&vh(r,i,n)&&(f=Bh(U.NAVIGATION_DUPLICATED,{to:d,from:i}),se(i,i,!0,!1)),(f?Promise.resolve(f):E(d,i)).catch(e=>Vh(e)?Vh(e,U.NAVIGATION_GUARD_REDIRECT)?e:oe(e):ie(e,d,i)).then(e=>{if(e){if(Vh(e,U.NAVIGATION_GUARD_REDIRECT))return C(H({replace:s},v(e.to),{state:typeof e.to==`object`?H({},a,e.to.state):a,force:o}),t||d)}else e=O(d,i,!0,s,a);return D(d,i,e),e})}function w(e,t){let n=y(e,t);return n?Promise.reject(n):Promise.resolve()}function T(e){let t=le.values().next().value;return t&&typeof t.runWithContext==`function`?t.runWithContext(e):e()}function E(e,t){let n,[r,i,s]=$h(e,t);n=Qh(r.reverse(),`beforeRouteLeave`,e,t);for(let i of r)i.leaveGuards.forEach(r=>{n.push(Zh(r,e,t))});let c=w.bind(null,e,t);return n.push(c),ue(n).then(()=>{n=[];for(let r of a.list())n.push(Zh(r,e,t));return n.push(c),ue(n)}).then(()=>{n=Qh(i,`beforeRouteUpdate`,e,t);for(let r of i)r.updateGuards.forEach(r=>{n.push(Zh(r,e,t))});return n.push(c),ue(n)}).then(()=>{n=[];for(let r of s)if(r.beforeEnter)if(Wm(r.beforeEnter))for(let i of r.beforeEnter)n.push(Zh(i,e,t));else n.push(Zh(r.beforeEnter,e,t));return n.push(c),ue(n)}).then(()=>(e.matched.forEach(e=>e.enterCallbacks={}),n=Qh(s,`beforeRouteEnter`,e,t,T),n.push(c),ue(n))).then(()=>{n=[];for(let r of o.list())n.push(Zh(r,e,t));return n.push(c),ue(n)}).catch(e=>Vh(e,U.NAVIGATION_CANCELLED)?e:Promise.reject(e))}function D(e,t,n){s.list().forEach(r=>T(()=>r(e,t,n)))}function O(e,t,n,r,a){let o=y(e,t);if(o)return o;let s=t===wh,l=zm?history.state:{};n&&(r||s?i.replace(e.fullPath,H({scroll:s&&l&&l.scroll},a)):i.push(e.fullPath,a)),c.value=e,se(e,t,n,s),oe()}let k;function ee(){k||=i.listen((e,t,n)=>{if(!j.listening)return;let r=_(e),a=S(r,j.currentRoute.value);if(a){C(H(a,{replace:!0,force:!0}),r).catch(Um);return}l=r;let o=c.value;zm&&Fh(Nh(o.fullPath,n.delta),jh()),E(r,o).catch(e=>Vh(e,U.NAVIGATION_ABORTED|U.NAVIGATION_CANCELLED)?e:Vh(e,U.NAVIGATION_GUARD_REDIRECT)?(C(H(v(e.to),{force:!0}),r).then(e=>{Vh(e,U.NAVIGATION_ABORTED|U.NAVIGATION_DUPLICATED)&&!n.delta&&n.type===Th.pop&&i.go(-1,!1)}).catch(Um),Promise.reject()):(n.delta&&i.go(-n.delta,!1),ie(e,r,o))).then(e=>{e||=O(r,o,!1),e&&(n.delta&&!Vh(e,U.NAVIGATION_CANCELLED)?i.go(-n.delta,!1):n.type===Th.pop&&Vh(e,U.NAVIGATION_ABORTED|U.NAVIGATION_DUPLICATED)&&i.go(-1,!1)),D(r,o,e)}).catch(Um)})}let te=Xh(),ne=Xh(),re;function ie(e,t,n){oe(e);let r=ne.list();return r.length?r.forEach(r=>r(e,t,n)):console.error(e),Promise.reject(e)}function ae(){return re&&c.value!==wh?Promise.resolve():new Promise((e,t)=>{te.add([e,t])})}function oe(e){return re||(re=!e,ee(),te.list().forEach(([t,n])=>e?n(e):t()),te.reset()),e}function se(t,n,r,i){let{scrollBehavior:a}=e;if(!zm||!a)return Promise.resolve();let o=!r&&Ih(Nh(t.fullPath,0))||(i||!r)&&history.state&&history.state.scroll||null;return ir().then(()=>a(t,n,o)).then(e=>e&&Mh(e)).catch(e=>ie(e,t,n))}let ce=e=>i.go(e),A,le=new Set,j={currentRoute:c,listening:!0,addRoute:p,removeRoute:m,clearRoutes:t.clearRoutes,hasRoute:g,getRoutes:h,resolve:_,options:e,push:b,replace:x,go:ce,back:()=>ce(-1),forward:()=>ce(1),beforeEach:a.add,beforeResolve:o.add,afterEach:s.add,onError:ne.add,isReady:ae,install(e){e.component(`RouterLink`,Ng),e.component(`RouterView`,Bg),e.config.globalProperties.$router=j,Object.defineProperty(e.config.globalProperties,`$route`,{enumerable:!0,get:()=>I(c)}),zm&&!A&&c.value===wh&&(A=!0,b(i.location).catch(e=>{}));let t={};for(let e in wh)Object.defineProperty(t,e,{get:()=>c.value[e],enumerable:!0});e.provide(qh,j),e.provide(Jh,rn(t)),e.provide(Yh,c);let n=e.unmount;le.add(e),e.unmount=function(){le.delete(e),le.size<1&&(l=wh,k&&k(),k=null,c.value=wh,A=!1,re=!1),n()}}};function ue(e){return e.reduce((e,t)=>e.then(()=>T(t)),Promise.resolve())}return j}function Hg(e){return L(Jh)}var Ug=/(:\w+)\([^)]+\)/g,Wg=/(:\w+)[?+*]/g,Gg=/:\w+/g,Kg=(e,t)=>t.path.replace(Ug,`$1`).replace(Wg,`$1`).replace(Gg,t=>e.params[t.slice(1)]?.toString()||``);const qg=(e,t)=>{let n=e.route.matched.find(t=>t.components?.default===e.Component.type),r=t??n?.meta.key??(n&&Kg(e.route,n));return typeof r==`function`?r(e.route):r},Jg=(e,t)=>({default:()=>e?ic(Oi,e===!0?{}:e,t):t});function Yg(e){return Array.isArray(e)?e:[e]}var Xg=[{name:`logs`,path:`/logs`,component:()=>hm(()=>import(`./Cbl-HvWy.js`),__vite__mapDeps([0,1,2,3,4,5,6,7]),import.meta.url)},{name:`index`,path:`/`,component:()=>hm(()=>import(`./jvVcV7Ea.js`),[],import.meta.url)},{name:`rules`,path:`/rules`,component:()=>hm(()=>import(`./CAfhdv_2.js`),__vite__mapDeps([8,1,9,5,10,11,4,12,6]),import.meta.url)},{name:`setup`,path:`/setup`,meta:{layout:`default`},component:()=>hm(()=>import(`./CNeVT8bc.js`),__vite__mapDeps([13,1,9,5,10,4,12]),import.meta.url)},{name:`config`,path:`/config`,component:()=>hm(()=>import(`./B0oclHwM.js`),__vite__mapDeps([14,1,15,9,5,10,11,16,4,2,6]),import.meta.url)},{name:`proxies`,path:`/proxies`,component:()=>hm(()=>import(`./C_E54F3Z.js`),__vite__mapDeps([17,1,2,3,4,9,5,10,16,18,19,12,6]),import.meta.url)},{name:`overview`,path:`/overview`,component:()=>hm(()=>import(`./C0BTvwsH.js`),__vite__mapDeps([20,5,4,18,19,12,21,10,6]),import.meta.url)},{name:`connections`,path:`/connections`,component:()=>hm(()=>import(`./BrGTwNTv.js`),__vite__mapDeps([22,1,2,3,4,9,5,10,18,19,12,6]),import.meta.url)}];const Zg=(e,t)=>({default:()=>e?ic(Dc,e===!0?{}:e,t):t.default?.()});var Qg=/(:\w+)\([^)]+\)/g,$g=/(:\w+)[?+*]/g,e_=/:\w+/g;function t_(e){let t=e?.meta.key??e.path.replace(Qg,`$1`).replace($g,`$1`).replace(e_,t=>e.params[t.slice(1)]?.toString()||``);return typeof t==`function`?t(e):t}function n_(e,t){return e===t||t===wh?!1:t_(e)===t_(t)?!e.matched.every((e,n)=>e.components&&e.components.default===t.matched[n]?.components?.default):!0}var r_={scrollBehavior(e,t,n){let r=V(),i=If().options?.scrollBehaviorType??`auto`;if(e.path.replace(/\/$/,``)===t.path.replace(/\/$/,``))return t.hash&&!e.hash?{left:0,top:0}:e.hash?{el:e.hash,top:i_(e.hash),behavior:i}:!1;if((typeof e.meta.scrollToTop==`function`?e.meta.scrollToTop(e,t):e.meta.scrollToTop)===!1)return!1;let a=r._runningTransition?`page:transition:finish`:`page:loading:end`;return new Promise(o=>{if(t===wh){o(a_(e,t,n,i));return}r.hooks.hookOnce(a,()=>{requestAnimationFrame(()=>o(a_(e,t,n,i)))})})}};function i_(e){try{let t=document.querySelector(e);if(t)return(Number.parseFloat(getComputedStyle(t).scrollMarginTop)||0)+(Number.parseFloat(getComputedStyle(document.documentElement).scrollPaddingTop)||0)}catch{}return 0}function a_(e,t,n,r){if(n)return n;let i=n_(e,t);return e.hash?{el:e.hash,top:i_(e.hash),behavior:i?r:`instant`}:{left:0,top:0}}var o_={hashMode:!0,scrollBehaviorType:`auto`,...r_},s_=Rf(async(e,t)=>{let n,r;if(!e.meta?.validate)return;let i=([n,r]=nf(()=>Promise.resolve(e.meta.validate(e))),n=await n,r(),n);if(i===!0)return;let a=Kf({fatal:!0,statusCode:i&&i.statusCode||404,statusMessage:i&&i.statusMessage||`Page Not Found: ${e.fullPath}`,data:{path:e.fullPath}});return typeof window<`u`&&window.history.pushState({},``,t.fullPath),a},1);function c_(e,t){return Be()?(Ve(e,t),!0):!1}var l_=new WeakMap,u_=(...e)=>{let t=e[0],n=Rs()?.proxy??Be();if(n==null&&!qa())throw Error(`injectLocal must be called in setup`);return n&&l_.has(n)&&t in l_.get(n)?l_.get(n)[t]:L(...e)},d_=typeof window<`u`&&typeof document<`u`;typeof WorkerGlobalScope<`u`&&globalThis instanceof WorkerGlobalScope;var f_=Object.prototype.toString,p_=e=>f_.call(e)===`[object Object]`,m_=()=>{};function h_(...e){if(e.length!==1)return On(...e);let t=e[0];return typeof t==`function`?an(wn(()=>({get:t,set:m_}))):hn(t)}function g_(e,t){function n(...n){return new Promise((r,i)=>{Promise.resolve(e(()=>t.apply(this,n),{fn:t,thisArg:this,args:n})).then(r).catch(i)})}return n}var __=e=>e();function v_(e=__,t={}){let{initialState:n=`active`}=t,r=h_(n===`active`);function i(){r.value=!1}function a(){r.value=!0}return{isActive:an(r),pause:i,resume:a,eventFilter:(...t)=>{r.value&&e(...t)}}}function y_(e){return e.endsWith(`rem`)?Number.parseFloat(e)*16:Number.parseFloat(e)}function b_(e){return Array.isArray(e)?e:[e]}function x_(e){return e||Rs()}function S_(e,t,n={}){let{eventFilter:r=__,...i}=n;return $a(e,g_(r,t),i)}function C_(e,t,n={}){let{eventFilter:r,initialState:i=`active`,...a}=n,{eventFilter:o,pause:s,resume:c,isActive:l}=v_(r,{initialState:i});return{stop:S_(e,t,{...a,eventFilter:o}),pause:s,resume:c,isActive:l}}var w_=C_;function T_(e,t=!0,n){x_(n)?zi(e,n):t?e():ir(e)}function E_(e,t,n){return $a(e,t,{...n,immediate:!0})}var D_=d_?window:void 0,O_=d_?window.document:void 0;d_&&window.navigator,d_&&window.location;function k_(e){let t=bn(e);return t?.$el??t}function A_(...e){let t=(e,t,n,r)=>(e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)),n=B(()=>{let t=b_(bn(e[0])).filter(e=>e!=null);return t.every(e=>typeof e!=`string`)?t:void 0});return E_(()=>[n.value?.map(e=>k_(e))??[D_].filter(e=>e!=null),b_(bn(n.value?e[1]:e[0])),b_(I(n.value?e[2]:e[1])),bn(n.value?e[3]:e[2])],([e,n,r,i],a,o)=>{if(!e?.length||!n?.length||!r?.length)return;let s=p_(i)?{...i}:i,c=e.flatMap(e=>n.flatMap(n=>r.map(r=>t(e,n,r,s))));o(()=>{c.forEach(e=>e())})},{flush:`post`})}function j_(){let e=gn(!1),t=Rs();return t&&zi(()=>{e.value=!0},t),e}function M_(e){let t=j_();return B(()=>(t.value,!!e()))}var N_=Symbol(`vueuse-ssr-width`);function P_(){let e=qa()?u_(N_,null):null;return typeof e==`number`?e:void 0}function F_(e,t={}){let{window:n=D_,ssrWidth:r=P_()}=t,i=M_(()=>n&&`matchMedia`in n&&typeof n.matchMedia==`function`),a=gn(typeof r==`number`),o=gn(),s=gn(!1);return Xa(()=>{if(a.value){a.value=!i.value,s.value=bn(e).split(`,`).some(e=>{let t=e.includes(`not all`),n=e.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/),i=e.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/),a=!!(n||i);return n&&a&&(a=r>=y_(n[1])),i&&a&&(a=r<=y_(i[1])),t?!a:a});return}i.value&&(o.value=n.matchMedia(bn(e)),s.value=o.value.matches)}),A_(o,`change`,e=>{s.value=e.matches},{passive:!0}),B(()=>s.value)}var I_=typeof globalThis<`u`?globalThis:typeof window<`u`?window:typeof global<`u`?global:typeof self<`u`?self:{},L_=`__vueuse_ssr_handlers__`,R_=z_();function z_(){return L_ in I_||(I_[L_]=I_[L_]||{}),I_[L_]}function B_(e,t){return R_[e]||t}function V_(e){return F_(`(prefers-color-scheme: dark)`,e)}function H_(e){return e==null?`any`:e instanceof Set?`set`:e instanceof Map?`map`:e instanceof Date?`date`:typeof e==`boolean`?`boolean`:typeof e==`string`?`string`:typeof e==`object`?`object`:Number.isNaN(e)?`any`:`number`}var U_={boolean:{read:e=>e===`true`,write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}},W_=`vueuse-storage`;function G_(e,t,n,r={}){let{flush:i=`pre`,deep:a=!0,listenToStorageChanges:o=!0,writeDefaults:s=!0,mergeDefaults:c=!1,shallow:l,window:u=D_,eventFilter:d,onError:f=e=>{console.error(e)},initOnMounted:p}=r,m=(l?gn:hn)(typeof t==`function`?t():t),h=B(()=>bn(e));if(!n)try{n=B_(`getDefaultStorage`,()=>D_?.localStorage)()}catch(e){f(e)}if(!n)return m;let g=bn(t),_=H_(g),v=r.serializer??U_[_],{pause:y,resume:b}=w_(m,e=>C(e),{flush:i,deep:a,eventFilter:d});$a(h,()=>T(),{flush:i});let x=!1;u&&o&&(n instanceof Storage?A_(u,`storage`,e=>{p&&!x||T(e)},{passive:!0}):A_(u,W_,e=>{p&&!x||E(e)})),p?T_(()=>{x=!0,T()}):T();function S(e,t){if(u){let r={key:h.value,oldValue:e,newValue:t,storageArea:n};u.dispatchEvent(n instanceof Storage?new StorageEvent(`storage`,r):new CustomEvent(W_,{detail:r}))}}function C(e){try{let t=n.getItem(h.value);if(e==null)S(t,null),n.removeItem(h.value);else{let r=v.write(e);t!==r&&(n.setItem(h.value,r),S(t,r))}}catch(e){f(e)}}function w(e){let t=e?e.newValue:n.getItem(h.value);if(t==null)return s&&g!=null&&n.setItem(h.value,v.write(g)),g;if(!e&&c){let e=v.read(t);return typeof c==`function`?c(e,g):_===`object`&&!Array.isArray(e)?{...g,...e}:e}else if(typeof t!=`string`)return t;else return v.read(t)}function T(e){if(!(e&&e.storageArea!==n)){if(e&&e.key==null){m.value=g;return}if(!(e&&e.key!==h.value)){y();try{let t=v.write(m.value);(e===void 0||e?.newValue!==t)&&(m.value=w(e))}catch(e){f(e)}finally{e?ir(b):b()}}}}function E(e){T(e.detail)}return m}function K_(e,t,n={}){let{window:r=D_}=n;return G_(e,t,r?.localStorage,n)}function q_(e={}){let{window:t=D_,initialWidth:n=1/0,initialHeight:r=1/0,listenOrientation:i=!0,includeScrollbar:a=!0,type:o=`inner`}=e,s=gn(n),c=gn(r),l=()=>{if(t)if(o===`outer`)s.value=t.outerWidth,c.value=t.outerHeight;else if(o===`visual`&&t.visualViewport){let{width:e,height:n,scale:r}=t.visualViewport;s.value=Math.round(e*r),c.value=Math.round(n*r)}else a?(s.value=t.innerWidth,c.value=t.innerHeight):(s.value=t.document.documentElement.clientWidth,c.value=t.document.documentElement.clientHeight)};l(),T_(l);let u={passive:!0};return A_(`resize`,l,u),t&&o===`visual`&&t.visualViewport&&A_(t.visualViewport,`resize`,l,u),i&&$a(F_(`(orientation: portrait)`),()=>l()),{width:s,height:c}}const J_=Tp(`endpoint`,()=>{let e=K_(`selectedEndpoint`,``),t=K_(`endpointList`,[]),n=B(()=>t.value.find(({id:t})=>t===e.value));return{selectedEndpoint:e,endpointList:t,currentEndpoint:n,wsEndpointURL:B(()=>{let e=n.value;return e?new URL(e.url).href.replace(`http`,`ws`).replace(/\/$/,``):``}),setSelectedEndpoint:t=>{e.value=t},setEndpointList:e=>{t.value=e},addEndpoint:e=>{t.value=[e,...t.value]},removeEndpoint:n=>{t.value=t.value.filter(e=>e.id!==n),e.value===n&&(e.value=``)},updateEndpoint:(e,n)=>{let r=t.value.findIndex(t=>t.id===e),i=t.value[r];r!==-1&&i&&(t.value[r]={...i,...n})}}}),Y_=[s_,Rf(e=>{if(gf().public.mockMode)return;let t=!!J_().currentEndpoint;if(e.path!==`/setup`&&!t)return Bf(`/setup`,{replace:!0})}),Rf(async e=>{let t,n,r=([t,n]=nf(()=>bm({path:e.path})),t=await t,n(),t);if(r.redirect){let t=r.redirect.includes(`#`)?r.redirect:r.redirect+e.hash;return Qu(t,{acceptRelative:!0})?(window.location.href=t,!1):t}},1)],X_={};function Z_(e,t,n){let{pathname:r,search:i,hash:a}=t,o=e.indexOf(`#`);if(o>-1){let t=a.includes(e.slice(o))?e.slice(o).length:1,n=a.slice(t);return n[0]!==`/`&&(n=`/`+n),id(n,``)}let s=id(r,e),c=!n||ud(s,n)?s:n;return c+(c.includes(`?`)?``:i)+a}var Q_=ff({name:`nuxt:router`,enforce:`pre`,async setup(e){let t,n,r=gf().app.baseURL;r.includes(`#`)||(r+=`#`);let i=o_.history?.(r)??og(r),a=o_.routes?([t,n]=nf(()=>o_.routes(Xg)),t=await t,n(),t)??Xg:Xg,o,s=Vg({...o_,scrollBehavior:(e,t,n)=>{if(t===wh){o=n;return}if(o_.scrollBehavior){if(s.options.scrollBehavior=o_.scrollBehavior,`scrollRestoration`in window.history){let e=s.beforeEach(()=>{e(),window.history.scrollRestoration=`manual`})}return o_.scrollBehavior(e,wh,o||n)}},history:i,routes:a});`scrollRestoration`in window.history&&(window.history.scrollRestoration=`auto`),e.vueApp.use(s);let c=gn(s.currentRoute.value);s.afterEach((e,t)=>{c.value=t}),Object.defineProperty(e.vueApp.config.globalProperties,`previousRoute`,{get:()=>c.value});let l=Z_(r,window.location,e.payload.path),u=gn(s.currentRoute.value),d=()=>{u.value=s.currentRoute.value};s.afterEach((e,t)=>{e.matched.at(-1)?.components?.default===t.matched.at(-1)?.components?.default&&d()});let f={sync:d};for(let e in u.value)Object.defineProperty(f,e,{get:()=>u.value[e],enumerable:!0});e._route=rn(f),e._middleware||={global:[],named:{}};let p=Hf();s.afterEach(async(t,n,r)=>{delete e._processingMiddleware,!e.isHydrating&&p.value&&await e.runWithContext(Wf),r&&await e.callHook(`page:loading:end`)});try{[t,n]=nf(()=>s.isReady()),await t,n()}catch(r){[t,n]=nf(()=>e.runWithContext(()=>Uf(r))),await t,n()}let m=l===s.currentRoute.value.fullPath?s.currentRoute.value:s.resolve(l);d();let h=e.payload.state._layout;return s.beforeEach(async(t,n)=>{await e.callHook(`page:loading:start`),t.meta=nn(t.meta),e.isHydrating&&h&&!ln(t.meta.layout)&&(t.meta.layout=h),e._processingMiddleware=!0;{let r=new Set([...Y_,...e._middleware.global]);for(let e of t.matched){let t=e.meta.middleware;if(t)for(let e of Yg(t))r.add(e)}{let n=await e.runWithContext(()=>bm({path:t.path}));if(n.appMiddleware)for(let e in n.appMiddleware)n.appMiddleware[e]?r.add(e):r.delete(e)}for(let i of r){let r=typeof i==`string`?e._middleware.named[i]||await X_[i]?.().then(e=>e.default||e):i;if(!r)throw Error(`Unknown route middleware: '${i}'.`);try{let i=await e.runWithContext(()=>r(t,n));if(!e.payload.serverRendered&&e.isHydrating&&(i===!1||i instanceof Error)){let t=i||Kf({statusCode:404,statusMessage:`Page Not Found: ${l}`});return await e.runWithContext(()=>Uf(t)),!1}if(i===!0)continue;if(i===!1)return i;if(i)return Gf(i)&&i.fatal&&await e.runWithContext(()=>Uf(i)),i}catch(t){let n=Kf(t);return n.fatal&&await e.runWithContext(()=>Uf(n)),n}}}}),s.onError(async()=>{delete e._processingMiddleware,await e.callHook(`page:loading:end`)}),s.afterEach(t=>{if(t.matched.length===0)return e.runWithContext(()=>Uf(Kf({statusCode:404,fatal:!1,statusMessage:`Page not found: ${t.fullPath}`,data:{path:t.fullPath}})))}),e.hooks.hookOnce(`app:created`,async()=>{try{`name`in m&&(m.name=void 0),await s.replace({...m,force:!0}),s.options.scrollBehavior=o_.scrollBehavior}catch(t){await e.runWithContext(()=>Uf(t))}}),{provide:{router:s}}}},1);const $_=globalThis.requestIdleCallback||(e=>{let t=Date.now(),n={didTimeout:!1,timeRemaining:()=>Math.max(0,50-(Date.now()-t))};return setTimeout(()=>{e(n)},1)}),ev=globalThis.cancelIdleCallback||(e=>{clearTimeout(e)}),tv=e=>{let t=V();t.isHydrating?t.hooks.hookOnce(`app:suspense:resolve`,()=>{$_(()=>e())}):$_(()=>e())};var nv=ff({name:`nuxt:payload`,setup(e){let t=new Set;If().beforeResolve(async(n,r)=>{if(n.path===r.path)return;let i=await xm(n.path);if(i){for(let n of t)delete e.static.data[n];for(let n in i.data)n in e.static.data||t.add(n),e.static.data[n]=i.data[n]}}),tv(()=>{e.hooks.hook(`link:prefetch`,async e=>{let{hostname:t}=new URL(e,window.location.href);t===window.location.hostname&&await xm(e).catch(()=>{console.warn(`[nuxt] Error preloading payload for`,e)})}),navigator.connection?.effectiveType!==`slow-2g`&&setTimeout(ym,1e3)})}}),rv=ff(()=>{let e=If();tv(()=>{e.beforeResolve(async()=>{await new Promise(e=>{setTimeout(e,100),requestAnimationFrame(()=>{setTimeout(e,0)})})})})}),iv=ff(e=>{let t;async function n(){let r;try{r=await ym()}catch(e){let t=e;if(!(`status`in t&&(t.status===404||t.status===403)))throw t}t&&clearTimeout(t),t=setTimeout(n,of);try{let n=await $fetch(Rd(`builds/latest.json`)+`?${Date.now()}`);n.id!==r?.id&&(e.hooks.callHook(`app:manifest:update`,n),t&&clearTimeout(t))}catch{}}tv(()=>{t=setTimeout(n,of)})});function av(e={}){let t=e.path||window.location.pathname,n={};try{n=Du(sessionStorage.getItem(`nuxt:reload`)||`{}`)}catch{}if(e.force||n?.path!==t||n?.expires{r.clear()}),e.hook(`app:chunkError`,({error:e})=>{r.add(e)});function i(e){av({path:cd(n.app.baseURL,e.fullPath),persistState:!0})}e.hook(`app:manifest:update`,()=>{t.beforeResolve(i)}),t.onError((e,t)=>{r.has(e)&&i(t)})}});function sv(e){return typeof e==`string`?`'${e}'`:new cv().serialize(e)}var cv=function(){class e{#e=new Map;compare(e,t){let n=typeof e,r=typeof t;return n===`string`&&r===`string`?e.localeCompare(t):n===`number`&&r===`number`?e-t:String.prototype.localeCompare.call(this.serialize(e,!0),this.serialize(t,!0))}serialize(e,t){if(e===null)return`null`;switch(typeof e){case`string`:return t?e:`'${e}'`;case`bigint`:return`${e}n`;case`object`:return this.$object(e);case`function`:return this.$function(e)}return String(e)}serializeObject(e){let t=Object.prototype.toString.call(e);if(t!==`[object Object]`)return this.serializeBuiltInType(t.length<10?`unknown:${t}`:t.slice(8,-1),e);let n=e.constructor,r=n===Object||n===void 0?``:n.name;if(r!==``&&globalThis[r]===n)return this.serializeBuiltInType(r,e);if(typeof e.toJSON==`function`){let t=e.toJSON();return r+(typeof t==`object`&&t?this.$object(t):`(${this.serialize(t)})`)}return this.serializeObjectEntries(r,Object.entries(e))}serializeBuiltInType(e,t){let n=this[`$`+e];if(n)return n.call(this,t);if(typeof t?.entries==`function`)return this.serializeObjectEntries(e,t.entries());throw Error(`Cannot serialize ${e}`)}serializeObjectEntries(e,t){let n=Array.from(t).sort((e,t)=>this.compare(e[0],t[0])),r=`${e}{`;for(let e=0;ethis.compare(e,t)))}`}$Map(e){return this.serializeObjectEntries(`Map`,e.entries())}}for(let t of[`Error`,`RegExp`,`URL`])e.prototype[`$`+t]=function(e){return`${t}(${e})`};for(let t of[`Int8Array`,`Uint8Array`,`Uint8ClampedArray`,`Int16Array`,`Uint16Array`,`Int32Array`,`Uint32Array`,`Float32Array`,`Float64Array`])e.prototype[`$`+t]=function(e){return`${t}[${e.join(`,`)}]`};for(let t of[`BigInt64Array`,`BigUint64Array`])e.prototype[`$`+t]=function(e){return`${t}[${e.join(`n,`)}${e.length>0?`n`:``}]`};return e}();function lv(e,t){return e===t||sv(e)===sv(t)}var uv=`$s`;function dv(...e){let t=typeof e[e.length-1]==`string`?e.pop():void 0;typeof e[0]!=`string`&&e.unshift(t);let[n,r]=e;if(!n||typeof n!=`string`)throw TypeError(`[nuxt] [useState] key must be a string: `+n);if(r!==void 0&&typeof r!=`function`)throw Error(`[nuxt] [useState] init must be a function: `+r);let i=uv+n,a=V(),o=On(a.payload.state,i);if(o.value===void 0&&r){let e=r();if(F(e))return a.payload.state[i]=e,e;o.value=e}return o}function fv(e,t){if(typeof e!=`string`)throw TypeError(`argument str must be a string`);let n={},r=t||{},i=r.decode||pv,a=0;for(;aDu(decodeURIComponent(e)),encode:e=>encodeURIComponent(typeof e==`string`?e:JSON.stringify(e))},bv=globalThis.cookieStore;function xv(e,t){let n={...yv,...t};n.filter??=t=>t===e;let r=Sv(n)||{},i;n.maxAge===void 0?n.expires&&(i=n.expires.getTime()-Date.now()):i=n.maxAge*1e3;let a=i!==void 0&&i<=0,o=a||r[e]===void 0||r[e]===null,s=vv(a?void 0:r[e]??n.default?.()),c=i&&!a?Ev(s,i,n.watch&&n.watch!==`shallow`):hn(s);{let t=null;try{!bv&&typeof BroadcastChannel<`u`&&(t=new BroadcastChannel(`nuxt:cookies:${e}`))}catch{}let i=(i=!1)=>{!i&&(n.readonly||lv(c.value,r[e]))||(wv(e,c.value,n),r[e]=vv(c.value),t?.postMessage({value:n.encode(c.value)}))},a=t=>{let i=t.refresh?Sv(n)?.[e]:n.decode(t.value);s=!0,c.value=i,r[e]=vv(i),ir(()=>{s=!1})},s=!1,l=!!Be();if(l&&Ve(()=>{s=!0,i(),t?.close()}),bv){let t=t=>{let n=t.changed.find(t=>t.name===e),r=t.deleted.find(t=>t.name===e);n&&a({value:n.value}),r&&a({value:null})};bv.addEventListener(`change`,t),l&&Ve(()=>bv.removeEventListener(`change`,t))}else t&&(t.onmessage=({data:e})=>a(e));n.watch&&$a(c,()=>{s||i()},{deep:n.watch!==`shallow`}),o&&i(o)}return c}function Sv(e={}){return fv(document.cookie,e)}function Cv(e,t,n={}){return t==null?gv(e,t,{...n,maxAge:-1}):gv(e,t,n)}function wv(e,t,n={}){document.cookie=Cv(e,t,n)}var Tv=2147483647;function Ev(e,t,n){let r,i,a=0,o=n?hn(e):{value:e};return Be()&&Ve(()=>{i?.(),clearTimeout(r)}),wn((e,s)=>{n&&(i=$a(o,s));function c(){a=0,clearTimeout(r);let e=t-a,n=e{if(a+=n,a4)return Promise.all(i).then(()=>Ov(e,t));t._routePreloaded.add(n);for(let e of r){let t=e.components?.default;if(typeof t!=`function`)continue;let n=Promise.resolve(t()).catch(()=>{}).finally(()=>i.splice(i.indexOf(n)));i.push(n)}await Promise.all(i)}function kv(e){return new URL(globalThis.location.href)}var Av=(...e)=>e.find(e=>e!==void 0);function jv(e){let t=e.componentName||`NuxtLink`;function n(e){return!1}function r(t,n,r){let i=r??e.trailingSlash;if(!t||i!==`append`&&i!==`remove`)return t;if(typeof t==`string`)return Nv(t,i);let a=`path`in t&&t.path!==void 0?t.path:n(t).path;return{...t,name:void 0,path:Nv(a,i)}}function i(t){let i=If(),a=gf(),o=B(()=>!!t.target&&t.target!==`_self`),s=B(()=>{let e=t.to||t.href||``;return typeof e==`string`&&Qu(e,{acceptRelative:!0})}),c=Xi(`RouterLink`),l=c&&typeof c!=`string`?c.useLink:void 0,u=B(()=>{if(t.external)return!0;let e=t.to||t.href||``;return typeof e==`object`?!1:e===``||s.value}),d=B(()=>{let e=t.to||t.href||``;return u.value?e:r(e,i.resolve,t.trailingSlash)}),f=u.value?void 0:l?.({...t,to:d}),p=B(()=>{let r=t.trailingSlash??e.trailingSlash;if(!d.value||s.value||n(d.value))return d.value;if(u.value){let e=typeof d.value==`object`&&`path`in d.value?Vf(d.value):d.value;return Nv(typeof e==`object`?i.resolve(e).href:e,r)}return typeof d.value==`object`?i.resolve(d.value)?.href??null:Nv(cd(a.app.baseURL,d.value),r)});return{to:d,hasTarget:o,isAbsoluteUrl:s,isExternal:u,href:p,isActive:f?.isActive??B(()=>d.value===i.currentRoute.value.path),isExactActive:f?.isExactActive??B(()=>d.value===i.currentRoute.value.path),route:f?.route??B(()=>i.resolve(d.value)),async navigate(e){await Bf(p.value,{replace:t.replace,external:u.value||o.value})}}}return $r({name:t,props:{to:{type:[String,Object],default:void 0,required:!1},href:{type:[String,Object],default:void 0,required:!1},target:{type:String,default:void 0,required:!1},rel:{type:String,default:void 0,required:!1},noRel:{type:Boolean,default:void 0,required:!1},prefetch:{type:Boolean,default:void 0,required:!1},prefetchOn:{type:[String,Object],default:void 0,required:!1},noPrefetch:{type:Boolean,default:void 0,required:!1},activeClass:{type:String,default:void 0,required:!1},exactActiveClass:{type:String,default:void 0,required:!1},prefetchedClass:{type:String,default:void 0,required:!1},replace:{type:Boolean,default:void 0,required:!1},ariaCurrentValue:{type:String,default:void 0,required:!1},external:{type:Boolean,default:void 0,required:!1},custom:{type:Boolean,default:void 0,required:!1},trailingSlash:{type:String,default:void 0,required:!1}},useLink:i,setup(t,{slots:r}){let a=If(),{to:o,href:s,navigate:c,isExternal:l,hasTarget:u,isAbsoluteUrl:d}=i(t),f=gn(!1),p=hn(null),m=e=>{p.value=t.custom?e?.$el?.nextElementSibling:e?.$el};function h(n){return!f.value&&(typeof t.prefetchOn==`string`?t.prefetchOn===n:t.prefetchOn?.[n]??e.prefetchOn?.[n])&&(t.prefetch??e.prefetch)!==!1&&t.noPrefetch!==!0&&t.target!==`_blank`&&!Iv()}async function g(e=V()){if(f.value)return;f.value=!0;let t=typeof o.value==`string`?o.value:l.value?Vf(o.value):a.resolve(o.value).fullPath,n=l.value?new URL(t,window.location.href).href:t;await Promise.all([e.hooks.callHook(`link:prefetch`,n).catch(()=>{}),!l.value&&!u.value&&Ov(o.value,a).catch(()=>{})])}if(h(`visibility`)){let e=V(),t,n=null;zi(()=>{let r=Pv();tv(()=>{t=$_(()=>{p?.value?.tagName&&(n=r.observe(p.value,async()=>{n?.(),n=null,await g(e)}))})})}),Hi(()=>{t&&ev(t),n?.(),n=null})}return()=>{if(!l.value&&!u.value&&!n(o.value)){let n={ref:m,to:o.value,activeClass:t.activeClass||e.activeClass,exactActiveClass:t.exactActiveClass||e.exactActiveClass,replace:t.replace,ariaCurrentValue:t.ariaCurrentValue,custom:t.custom};return t.custom||(h(`interaction`)&&(n.onPointerenter=g.bind(null,void 0),n.onFocus=g.bind(null,void 0)),f.value&&(n.class=t.prefetchedClass||e.prefetchedClass),n.rel=t.rel||void 0),ic(Xi(`RouterLink`),n,r.default)}let i=t.target||null,_=Av(t.noRel?``:t.rel,e.externalRelAttribute,d.value||u.value?`noopener noreferrer`:``)||null;return t.custom?r.default?r.default({href:s.value,navigate:c,prefetch:g,get route(){if(!s.value)return;let e=new URL(s.value,window.location.href);return{path:e.pathname,fullPath:e.pathname,get query(){return Uu(e.search)},hash:e.hash,params:{},name:void 0,matched:[],redirectedFrom:void 0,meta:{},href:s.value}},rel:_,target:i,isExternal:l.value||u.value,isActive:!1,isExactActive:!1}):null:ic(`a`,{ref:p,href:s.value||null,rel:_,target:i,onClick:e=>{if(!(l.value||u.value))return e.preventDefault(),t.replace?a.replace(s.value):a.push(s.value)}},r.default?.())}}})}var Mv=jv(af);function Nv(e,t){let n=t===`append`?nd:td;return Qu(e)&&!e.startsWith(`http`)?e:n(e,!0)}function Pv(){let e=V();if(e._observer)return e._observer;let t=null,n=new Map;return e._observer={observe:(e,r)=>(t||=new IntersectionObserver(e=>{for(let t of e){let e=n.get(t.target);(t.isIntersecting||t.intersectionRatio>0)&&e&&e()}}),n.set(e,r),t.observe(e),()=>{n.delete(e),t?.unobserve(e),n.size===0&&(t?.disconnect(),t=null)})}}var Fv=/2g/;function Iv(){let e=navigator.connection;return!!(e&&(e.saveData||Fv.test(e.effectiveType)))}var Lv=ff({name:`pinia`,setup(e){let t=dp();return e.vueApp.use(t),Yf(t),e.payload&&e.payload.pinia&&(t.state.value=e.payload.pinia),{provide:{pinia:t}}},hooks:{"app:rendered"(){let e=V();e.payload.pinia=P(e.$pinia).state.value,Yf(void 0)}}}),Rv=ff({name:`nuxt:global-components`}),zv={blank:Ti(()=>hm(()=>import(`./CryL-Vnb.js`),__vite__mapDeps([23,5,6,19]),import.meta.url).then(e=>e.default||e)),default:Ti(()=>hm(()=>import(`./BeSoyRdk.js`),__vite__mapDeps([24,15,9,5,10,11,16,4,18,19,12,21,6,7]),import.meta.url).then(e=>e.default||e))},Bv=ff({name:`nuxt:prefetch`,setup(e){let t=If();e.hooks.hook(`app:mounted`,()=>{t.beforeEach(async e=>{let t=e?.meta?.layout;t&&typeof zv[t]==`function`&&await zv[t]()})}),e.hooks.hook(`link:prefetch`,e=>{if(Qu(e))return;let n=t.resolve(e);if(!n)return;let r=n.meta.layout,i=Yg(n.meta.middleware);i=i.filter(e=>typeof e==`string`);for(let e of i)typeof X_[e]==`function`&&X_[e]();typeof r==`string`&&r in zv&&Dv(zv[r])})}});function Vv(e,t){typeof console<`u`&&(console.warn(`[intlify] `+e),t&&console.warn(t.stack))}var Hv=typeof window<`u`,Uv=(e,t=!1)=>t?Symbol.for(e):Symbol(e),Wv=(e,t,n)=>Gv({l:e,k:t,s:n}),Gv=e=>JSON.stringify(e).replace(/\u2028/g,`\\u2028`).replace(/\u2029/g,`\\u2029`).replace(/\u0027/g,`\\u0027`),Kv=e=>typeof e==`number`&&isFinite(e),qv=e=>ay(e)===`[object Date]`,Jv=e=>ay(e)===`[object RegExp]`,Yv=e=>X(e)&&Object.keys(e).length===0,Xv=Object.assign,Zv=Object.create,W=(e=null)=>Zv(e);function Qv(e){return e.replace(/&/g,`&`).replace(//g,`>`).replace(/"/g,`"`).replace(/'/g,`'`).replace(/\//g,`/`).replace(/=/g,`=`)}function $v(e){return e.replace(/&(?![a-zA-Z0-9#]{2,6};)/g,`&`).replace(/"/g,`"`).replace(/'/g,`'`).replace(//g,`>`)}function ey(e){return e=e.replace(/(\w+)\s*=\s*"([^"]*)"/g,(e,t,n)=>`${t}="${$v(n)}"`),e=e.replace(/(\w+)\s*=\s*'([^']*)'/g,(e,t,n)=>`${t}='${$v(n)}'`),/\s*on\w+\s*=\s*["']?[^"'>]+["']?/gi.test(e)&&(e=e.replace(/(\s+)(on)(\w+\s*=)/gi,`$1on$3`)),[/(\s+(?:href|src|action|formaction)\s*=\s*["']?)\s*javascript:/gi,/(style\s*=\s*["'][^"']*url\s*\(\s*)javascript:/gi].forEach(t=>{e=e.replace(t,`$1javascript:`)}),e}var ty=Object.prototype.hasOwnProperty;function ny(e,t){return ty.call(e,t)}var G=Array.isArray,K=e=>typeof e==`function`,q=e=>typeof e==`string`,J=e=>typeof e==`boolean`,Y=e=>typeof e==`object`&&!!e,ry=e=>Y(e)&&K(e.then)&&K(e.catch),iy=Object.prototype.toString,ay=e=>iy.call(e),X=e=>ay(e)===`[object Object]`,oy=e=>e==null?``:G(e)||X(e)&&e.toString===iy?JSON.stringify(e,null,2):String(e);function sy(e,t=``){return e.reduce((e,n,r)=>r===0?e+n:e+t+n,``)}var cy=e=>!Y(e)||G(e);function ly(e,t){if(cy(e)||cy(t))throw Error(`Invalid value`);let n=[{src:e,des:t}];for(;n.length;){let{src:e,des:t}=n.pop();Object.keys(e).forEach(r=>{r!==`__proto__`&&(Y(e[r])&&!Y(t[r])&&(t[r]=Array.isArray(e[r])?[]:W()),cy(t[r])||cy(e[r])?t[r]=e[r]:n.push({src:e[r],des:t[r]}))})}}function uy(e,t=e.getCurrentLanguage(),n=e.getCurrentDirection()){let r={htmlAttrs:{},link:[],meta:[]};if(e.dir&&(r.htmlAttrs.dir=n),e.lang&&t&&(r.htmlAttrs.lang=t),e.seo){let t=fy(e);r.link=r.link.concat(t,hy(e)),r.meta=r.meta.concat(_y(e),vy(e),yy(e,e.locales.map(e=>e.language||e.code)))}return r}function dy(e){let t=new Map;for(let n of e){if(!n.language){console.warn("Locale `language` ISO code is required to generate alternate link");continue}let[e,r]=n.language.split(`-`);e&&r&&(n.isCatchallLocale||!t.has(e))&&t.set(e,n),t.set(n.language,n)}return t}function fy(e){if(!e.hreflangLinks)return[];let t=[],n=dy(e.locales);for(let[r,i]of n.entries()){let n=py(r,i,e);n&&(t.push(n),e.defaultLocale&&e.defaultLocale===i.code&&t[0].hreflang!==`x-default`&&t.unshift({[e.key]:`i18n-xd`,rel:`alternate`,href:n.href,hreflang:`x-default`}))}return t}function py(e,t,n,r=n.strictCanonicals?n.getRouteWithoutQuery():void 0){let i=n.getLocalizedRoute(t.code,r);if(!i)return;let a=ad(Qu(i)?i:cd(n.baseUrl,i),n.strictCanonicals?gy(n):{});return{[n.key]:`i18n-alt-${e}`,rel:`alternate`,href:a,hreflang:e}}function my(e,t=e.getCurrentRoute()){let n=e.getLocaleRoute(Object.assign({},t,{path:void 0,name:e.getRouteBaseName(t)}));return n?ad(cd(e.baseUrl,n.path),gy(e)):``}function hy(e,t=my(e)){return t?[{[e.key]:`i18n-can`,rel:`canonical`,href:t}]:[]}function gy(e,t=e.getCurrentRoute()){let n=e.getLocaleRoute(Object.assign({},t,{path:void 0,name:e.getRouteBaseName(t)}))?.query??{},r={};for(let t of e.canonicalQueries.filter(e=>e in n)){r[t]??=[];for(let e of xy(n[t]))r[t].push(e||``)}return r}function _y(e,t=my(e)){return t?[{[e.key]:`i18n-og-url`,property:`og:url`,content:t}]:[]}function vy(e,t=e.getCurrentLanguage()){return t?[{[e.key]:`i18n-og`,property:`og:locale`,content:by(t)}]:[]}function yy(e,t,n=e.getCurrentLanguage()){return t.filter(e=>e&&e!==n).map(t=>({[e.key]:`i18n-og-alt-${t}`,property:`og:locale:alternate`,content:by(t)}))}function by(e=``){return e.replace(/-/g,`_`)}function xy(e){return Array.isArray(e)?e:[e]}function Sy(e,t,n=e.getLocale()){if(q(t)&&Qu(t,{acceptRelative:!0}))return t;try{return Ty(e,t,n).fullPath}catch{return``}}function Cy(e,t,n=e.getLocale()){try{return Ty(e,t,n)}catch{return}}function wy(e){if(!q(e))return Xv({},e);if(e[0]===`/`){let{pathname:t,search:n,hash:r}=pd(e);return{path:t,query:Uu(n),hash:r}}return{name:e}}function Ty(e,t,n){let r=wy(t),i=e.router.resolve(e.resolveLocalizedRouteObject(r,n));return i.name?i:e.router.resolve(t)}function Ey(e,t,n=e.router.currentRoute.value){let r=e.getRouteBaseName(n);if(!r)return``;let i=Sy(e,{name:r,params:Xv({},n.params,e.getLocalizedDynamicParams(t)),fullPath:n.fullPath,query:n.query,hash:n.hash,path:n.path,meta:n.meta},t);return e.afterSwitchLocalePath(i,t)}function Dy(e,t,n=e.getLocale(),r=e.getLocales(),i=e.getBaseUrl()){let a=r.find(e=>e.code===n)||{code:n},o=typeof t.seo==`object`&&t.seo?.canonicalQueries||[];return i||console.warn("I18n `baseUrl` is required to generate valid SEO tag links."),{...t,key:`id`,locales:r,baseUrl:i,canonicalQueries:o,hreflangLinks:e.routingOptions.hreflangLinks,defaultLocale:e.routingOptions.defaultLocale,strictCanonicals:e.routingOptions.strictCanonicals,getRouteBaseName:e.getRouteBaseName,getCurrentRoute:()=>e.router.currentRoute.value,getCurrentLanguage:()=>a.language,getCurrentDirection:()=>a.dir||`ltr`,getLocaleRoute:t=>Cy(e,t),getLocalizedRoute:(t,n)=>Ey(e,t,n),getRouteWithoutQuery:()=>{try{return Xv({},e.router.resolve({query:{}}),{meta:e.router.currentRoute.value.meta})}catch{return}}}}function Oy(e,{dir:t=!0,lang:n=!0,seo:r=!0}){return uy(Dy(e,{dir:t,lang:n,seo:r}))}function ky(e=0){return t=>{let n=(typeof t==`string`?t:t.pathname).split(`?`)[0].split(`/`);return n[0]===``&&n.shift(),n.length>e&&n[e]||``}}var Ay=`___`;Ay+``;function jy(e){return typeof e==`string`?e:e==null?``:e.toString()}function My(e){return jy(typeof e==`object`?e?.name:e).split(Ay)[0]}var Ny=ky(0);const Py=e=>Ny(e),Fy=e=>e.split(Ay).at(1)??``;function Iy(e){return typeof e==`object`?String(e?.name||e?.path||``):String(e)}function Ly(e){let t=Iy(e);return t[0]===`/`?Py(t):Fy(t)}function Ry(e){return e=>jy(e)}function zy(e){return e=>e}const By=[`en`,`zh`,`ru`],Vy={en:[{key:`locale_en_46json_ece8cf66`,load:()=>hm(()=>import(`./CtJjAUi2.js`),[],import.meta.url),cache:!0}],zh:[{key:`locale_zh_46json_23d18f87`,load:()=>hm(()=>import(`./C1Z2nZ_q.js`),[],import.meta.url),cache:!0}],ru:[{key:`locale_ru_46json_c868385f`,load:()=>hm(()=>import(`./D3q0vhlH.js`),[],import.meta.url),cache:!0}]},Hy=[],Uy=[{code:`en`,name:`English`,language:void 0},{code:`zh`,name:`简体中文`,language:void 0},{code:`ru`,name:`Русский`,language:void 0}];var Wy=new Map,Gy=Tf((e,t,n)=>{if(t===`messages`||t===`datetimeFormats`||t===`numberFormats`)return e[t]??=W(null),ly(n,e[t]),!0});async function Ky(e){let t=V(),n={messages:W(null)};for(let r of e){let e=await r().then(e=>e.default),i=K(e)?await t.runWithContext(()=>e()):e;n=Gy(W(null),i,n)}return n.fallbackLocale??=!1,n}var qy=e=>ay(e)===`[object Module]`,Jy=e=>qy(e)||!1;async function Yy(e,t){let n=V();try{let r=await n.runWithContext(t.load).then(e=>Jy(e)?e.default:e);return K(r)?await n.runWithContext(()=>r(e)):r}catch(t){throw Error(`Failed loading locale (${e}): `+t.message)}}async function Xy(e,t=[]){let n=V(),r=await Promise.all(t.map(async t=>{let r=Zy(t),i=r||await n.runWithContext(()=>Yy(e,t));return!r&&t.cache!==!1&&Wy.set(t.key,{ttl:Date.now()+86400*1e3,value:i}),i})),i={};for(let e of r)ly(e,i);return i}function Zy(e){if(e.cache===!1)return;let t=Wy.get(e.key);if(t!=null)return t.ttl>Date.now()?t.value:void 0}function Qy(e){return e!=null&&`global`in e&&`mode`in e?e.global:e}function $y(e){let t=Qy(e);return`__composer`in t?t.__composer:t}function eb(e,t){return e?e.$config.public.i18n:gf(t).public.i18n}function tb(e){let t=eb(e).detectBrowserLanguage,n=t||{};return{...n,enabled:!!t,cookieKey:n.cookieKey||`i18n_redirected`}}function nb(e){if(e)return{path:`/`+(q(e)?e:e.path).replace(/^\//,``),code:!q(e)&&e.statusCode||302}}function rb(e){return Array.isArray(e)?e:[e]}function ib(e,t,n){let r=(e=``)=>e.replace(/https?:\/\//,``),i=e.filter(e=>r(e.domain)===t||rb(e.domains).includes(t));return i.length<=1?i[0]?.code:i.find(e=>e.code===n)?.code||i.find(e=>e.defaultForDomains?.includes(t)??e.domainDefault)?.code}function ab(e,t,n){let r=Uy.find(e=>e.code===n),i=e?.[n]?.domain||r?.domain||r?.domains?.find(e=>e===t.host);if(i)return Qu(i,{strict:!0})?i:t.protocol+`//`+i}function ob(e){let t={};for(let n of By){let r=sb(e,[n]);t[n]={fallbacks:r,cacheable:lb(n,r)}}return t}function sb(e,t){if(e===!1)return[];if(G(e))return e;let n=[];if(q(e))return t.every(t=>t!==e)&&n.push(e),n;let r=[...t,`default`];for(let t of r)t in e!=0&&(n=[...n,...e[t].filter(Boolean)]);return n}function cb(e){return Vy[e]!=null&&Vy[e].every(e=>e.cache!==!1)}function lb(e,t){return cb(e)&&t.every(e=>cb(e))}function ub(e){return Uy.find(t=>!!t.defaultForDomains?.includes(e))?.code}const db=e=>By.includes(e||``),fb=e=>db(e)?e:void 0,pb=()=>dv(`i18n:cached-locale-configs`,()=>void 0),mb=()=>dv(`i18n:resolved-locale`,()=>``);function hb({cookieCrossOrigin:e,cookieDomain:t,cookieSecure:n,cookieKey:r}){let i=new Date;return xv(r||`i18n_redirected`,{path:`/`,readonly:!1,expires:new Date(i.setDate(i.getDate()+365)),sameSite:e?`none`:`lax`,domain:t||void 0,secure:e||n})}function gb(e,t,n){let r=Qy(t),i=eb(e),a=tb(e),o=pb(),s=hb(a),c=new Set,l=e=>o.value[e],u=e=>ab(i.domainLocales,kv({xForwardedHost:!0}),e),d=Fb(e,i.baseUrl,n,u),f=mb(),p=async t=>{let n=l(t)?.fallbacks??[];n.includes(t)||n.push(t);for(let t of n){let n=await e.runWithContext(()=>Xy(t,Vy[t]));r.mergeLocaleMessage(t,n)}},m=async e=>{if(!(e in Vy))return;let t=l(e)?.cacheable?{}:{"Cache-Control":`no-cache`},n=await $fetch(`/_i18n/mBTQZivj/${e}/messages.json`,{headers:t});for(let e of Object.keys(n))r.mergeLocaleMessage(e,n[e])},h={vueI18n:t,initial:!0,preloaded:!1,config:i,rootRedirect:nb(i.rootRedirect),redirectStatusCode:i.redirectStatusCode??302,dynamicResourcesSSG:!0,getDefaultLocale:()=>n,getLocale:()=>I(r.locale),setLocale:async t=>{let n=h.getLocale();t===n||!db(t)||(F(r.locale)?r.locale.value=t:r.locale=t,await e.callHook(`i18n:localeSwitched`,{newLocale:t,oldLocale:n}),f.value=t)},setLocaleSuspend:async t=>{db(t)&&(h.vueI18n.__pendingLocale=t,h.vueI18n.__pendingLocalePromise=new Promise(e=>{h.vueI18n.__resolvePendingLocalePromise=async()=>{h.setCookieLocale(t),await h.setLocale(t),h.vueI18n.__pendingLocale=void 0,e()}}),(e.isHydrating||!h.config.skipSettingLocaleOnNavigate)&&await h.vueI18n.__resolvePendingLocalePromise?.())},getLocales:()=>I(r.locales).map(e=>q(e)?{code:e}:e),setCookieLocale:e=>{a.useCookie&&db(e)&&(s.value=e)},getBaseUrl:t=>cd(t&&u(t)||d(),e.$config.app.baseURL),loadMessages:async t=>{if(!(e.isHydrating&&c.has(t)))try{return h.dynamicResourcesSSG?await p(t):await m(t)}catch(e){console.warn(`Failed to load messages for locale "${t}"`,e)}finally{c.add(t)}},composableCtx:void 0};return h.composableCtx=kb(h,e),h}function _b(e){if(e._nuxtI18n==null)throw Error(`Nuxt I18n context has not been set up yet.`);return e._nuxtI18n}function vb(e,t){let n=[];for(let[r,i]of t.entries()){let a=e.find(e=>e.language?.toLowerCase()===i.toLowerCase());if(a){n.push({code:a.code,score:1-r/t.length});break}}for(let[r,i]of t.entries()){let a=i.split(`-`)[0].toLowerCase(),o=e.find(e=>e.language?.split(`-`)[0].toLowerCase()===a);if(o){n.push({code:o.code,score:.999-r/t.length});break}}return n}function yb(e,t){return e.score===t.score?t.code.length-e.code.length:t.score-e.score}function bb(e,t){return vb(e.map(e=>({code:e.code,language:e.language||e.code})),t).sort(yb).at(0)?.code??``}var xb=(e,t)=>xv(t).value||void 0,Sb=(e,t)=>Ly(t),Cb=e=>bb(Uy,navigator.languages),wb=(e,t,n)=>{let r=new URL(window.location.href).host;return ib(Uy.map(e=>({...e,domain:n[e.code]?.domain??e.domain})),r,Py(t))};const Tb=(e,t,n)=>{let r=eb(n);return{cookie:()=>xb(e,t.cookieKey),header:()=>void 0,navigator:()=>Cb(e),host:t=>wb(e,t,r.domainLocales),route:t=>Sb(e,t)}},Eb=e=>!!e.path&&!e.name;function Db(e){let t=e?._nuxtI18n?.composableCtx;if(!t)throw Error(`i18n context is not initialized. Ensure the i18n plugin is installed and the composable is used within a Vue component or setup function.`);return t}var Ob=td;function kb(e,t=V()){let n=If();Tb(void 0,tb(t),t);let r=e.getDefaultLocale(),i=Ry(r);function a(e,t){e.name=My(e.name||n.currentRoute.value);let r=i(e.name,t);return n.hasRoute(r)&&(e.name=r),e}let o=zy(n);function s(e,t){let n=o(e,t),a=My(n);return a?(n.name=i(a,t),n):(Pb(t,r)&&(n.path=`/`+t+n.path),n.path=Ob(n.path,!0),n)}let c={router:n,_head:void 0,get head(){return this._head??=dm({}),this._head},metaState:{htmlAttrs:{},meta:[],link:[]},seoSettings:{dir:!1,lang:!1,seo:!1},localePathPayload:Ab(),routingOptions:{defaultLocale:r,strictCanonicals:e.config.experimental.alternateLinkCanonicalQueries??!0,hreflangLinks:!1},getLocale:e.getLocale,getLocales:e.getLocales,getBaseUrl:e.getBaseUrl,getRouteBaseName:My,getRouteLocalizedParams:()=>n.currentRoute.value.meta.nuxtI18nInternal??{},getLocalizedDynamicParams:e=>c.getRouteLocalizedParams()?.[e],afterSwitchLocalePath:(e,t)=>(c.getRouteLocalizedParams(),e),resolveLocalizedRouteObject:(e,t)=>Eb(e)?s(e,t):a(e,t)};return c}function Ab(e=V()){let t=document.querySelector(`[data-nuxt-i18n-slp="${e._id}"]`)?.textContent;return JSON.parse(t||`{}`)}async function jb(e,t){let n=_b(e),r=n.getLocale();if(t===r&&!n.initial)return t;let i={oldLocale:r,newLocale:t,initialSetup:n.initial,context:e},a=await e.callHook(`i18n:beforeLocaleSwitch`,i);return a??=i.newLocale,db(a)&&(t=a),await n.loadMessages(t),await n.setLocaleSuspend(t),t}function Mb(e,t,n){return!1}function Nb(e,t){let n=tb(e),r=Tb(void 0,n,e),i=_b(e),a=q(t)?t:t.path;function*o(){i.initial&&n.enabled&&!Mb(n,a,r.route(a))&&(yield r.cookie(),yield r.header(),yield r.navigator(),yield n.fallbackLocale)}for(let e of o())if(e&&db(e))return e;return i.getLocale()||i.getDefaultLocale()||``}function Pb(e,t){return!1}function Fb(e,t,n,r){return K(t)?()=>t(e):()=>t??``}function Ib(e,t,n){return{line:e,column:t,offset:n}}function Lb(e,t,n){let r={start:e,end:t};return n!=null&&(r.source=n),r}var Z={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTERMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14,UNHANDLED_CODEGEN_NODE_TYPE:15,UNHANDLED_MINIFIER_NODE_TYPE:16};Z.EXPECTED_TOKEN,Z.INVALID_TOKEN_IN_PLACEHOLDER,Z.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,Z.UNKNOWN_ESCAPE_SEQUENCE,Z.INVALID_UNICODE_ESCAPE_SEQUENCE,Z.UNBALANCED_CLOSING_BRACE,Z.UNTERMINATED_CLOSING_BRACE,Z.EMPTY_PLACEHOLDER,Z.NOT_ALLOW_NEST_PLACEHOLDER,Z.INVALID_LINKED_FORMAT,Z.MUST_HAVE_MESSAGES_IN_PLURAL,Z.UNEXPECTED_EMPTY_LINKED_MODIFIER,Z.UNEXPECTED_EMPTY_LINKED_KEY,Z.UNEXPECTED_LEXICAL_ANALYSIS,Z.UNHANDLED_CODEGEN_NODE_TYPE,Z.UNHANDLED_MINIFIER_NODE_TYPE;function Rb(e,t,n={}){let{domain:r,messages:i,args:a}=n,o=e,s=SyntaxError(String(o));return s.code=e,t&&(s.location=t),s.domain=r,s}function zb(e){throw e}var Bb=` `,Vb=`\r`,Hb=` +`)&&(hi(e,0)||si(),e.textContent=t.children)}if(l){if(g||!o||u&48){let t=e.tagName.includes(`-`);for(let i in l)(g&&(i.endsWith(`value`)||i===`indeterminate`)||h(i)&&!oe(i)||i[0]===`.`||t)&&r(e,i,null,l[i],void 0,n)}else if(l.onClick)r(e,`onClick`,null,l.onClick,void 0,n);else if(u&4&&cn(l.style))for(let e in l.style)l.style[e]}let _;(_=l&&l.onVnodeBeforeMount)&&Ns(_,n,t),f&&wr(t,null,n,`beforeMount`),((_=l&&l.onVnodeMounted)||f||c)&&ns(()=>{_&&Ns(_,n,t),c&&m.enter(e),f&&wr(t,null,n,`mounted`)},i)}return e.nextSibling},p=(e,t,r,o,s,l,u)=>{u||=!!t.dynamicChildren;let f=t.children,p=f.length;for(let t=0;t{let{slotScopeIds:u}=t;u&&(i=i?i.concat(u):u);let d=o(e),f=p(a(e),t,d,n,r,i,s);return f&&di(f)&&f.data===`]`?a(t.anchor=f):(si(),c(t.anchor=l(`]`),d,f),f)},g=(e,t,r,i,c,l)=>{if(hi(e.parentElement,1)||si(),t.el=null,l){let t=_(e);for(;;){let n=a(e);if(n&&n!==t)s(n);else break}}let u=a(e),d=o(e);return s(e),n(null,t,d,u,r,i,ui(d),c),r&&(r.vnode.el=t.el,go(r,t.el)),u},_=(e,t=`[`,n=`]`)=>{let r=0;for(;e;)if(e=a(e),e&&di(e)&&(e.data===t&&r++,e.data===n)){if(r===0)return a(e);r--}return e},v=(e,t,n)=>{let r=t.parentNode;r&&r.replaceChild(e,t);let i=n;for(;i;)i.vnode.el===t&&(i.vnode.el=i.subTree.el=e),i=i.parent},y=e=>e.nodeType===1&&e.tagName===`TEMPLATE`;return[u,d]}var pi=`data-allow-mismatch`,mi={0:`text`,1:`children`,2:`class`,3:`style`,4:`attribute`};function hi(e,t){if(t===0||t===1)for(;e&&!e.hasAttribute(pi);)e=e.parentElement;let n=e&&e.getAttribute(pi);if(n==null)return!1;if(n===``)return!0;{let e=n.split(`,`);return t===0&&e.includes(`children`)?!0:e.includes(mi[t])}}var gi=ve().requestIdleCallback||(e=>setTimeout(e,1)),_i=ve().cancelIdleCallback||(e=>clearTimeout(e)),vi=(e=1e4)=>t=>{let n=gi(t,{timeout:e});return()=>_i(n)};function yi(e){let{top:t,left:n,bottom:r,right:i}=e.getBoundingClientRect(),{innerHeight:a,innerWidth:o}=window;return(t>0&&t0&&r0&&n0&&i(t,n)=>{let r=new IntersectionObserver(e=>{for(let n of e)if(n.isIntersecting){r.disconnect(),t();break}},e);return n(e=>{if(e instanceof Element){if(yi(e))return t(),r.disconnect(),!1;r.observe(e)}}),()=>r.disconnect()},xi=e=>t=>{if(e){let n=matchMedia(e);if(n.matches)t();else return n.addEventListener(`change`,t,{once:!0}),()=>n.removeEventListener(`change`,t)}},Si=(e=[])=>(t,n)=>{D(e)&&(e=[e]);let r=!1,i=e=>{r||(r=!0,a(),t(),e.target.dispatchEvent(new e.constructor(e.type,e)))},a=()=>{n(t=>{for(let n of e)t.removeEventListener(n,i)})};return n(t=>{for(let n of e)t.addEventListener(n,i,{once:!0})}),a};function Ci(e,t){if(di(e)&&e.data===`[`){let n=1,r=e.nextSibling;for(;r;){if(r.nodeType===1){if(t(r)===!1)break}else if(di(r))if(r.data===`]`){if(--n===0)break}else r.data===`[`&&n++;r=r.nextSibling}}else t(e)}var wi=e=>!!e.type.__asyncLoader;function Ti(e){E(e)&&(e={loader:e});let{loader:t,loadingComponent:n,errorComponent:r,delay:i=200,hydrate:a,timeout:o,suspensible:s=!0,onError:c}=e,l=null,u,d=0,f=()=>(d++,l=null,p()),p=()=>{let e;return l||(e=l=t().catch(e=>{if(e=e instanceof Error?e:Error(String(e)),c)return new Promise((t,n)=>{c(e,()=>t(f()),()=>n(e),d+1)});throw e}).then(t=>e!==l&&l?l:(t&&(t.__esModule||t[Symbol.toStringTag]===`Module`)&&(t=t.default),u=t,t)))};return $r({name:`AsyncComponentWrapper`,__asyncLoader:p,__asyncHydrate(e,t,n){let r=!1;(t.bu||=[]).push(()=>r=!0);let i=()=>{r||n()},o=a?()=>{let n=a(i,t=>Ci(e,t));n&&(t.bum||=[]).push(n)}:i;u?o():p().then(()=>!t.isUnmounted&&o())},get __asyncResolved(){return u},setup(){let e=Ls;if(ti(e),u)return()=>Ei(u,e);let t=t=>{l=null,Yn(t,e,13,!r)};if(s&&e.suspense||Ws)return p().then(t=>()=>Ei(t,e)).catch(e=>(t(e),()=>r?z(r,{error:e}):null));let a=hn(!1),c=hn(),d=hn(!!i);return i&&setTimeout(()=>{d.value=!1},i),o!=null&&setTimeout(()=>{if(!a.value&&!c.value){let e=Error(`Async component timed out after ${o}ms.`);t(e),c.value=e}},o),p().then(()=>{a.value=!0,e.parent&&Di(e.parent.vnode)&&e.parent.update()}).catch(e=>{t(e),c.value=e}),()=>{if(a.value&&u)return Ei(u,e);if(c.value&&r)return z(r,{error:c.value});if(n&&!d.value)return Ei(n,e)}}})}function Ei(e,t){let{ref:n,props:r,children:i,ce:a}=t.vnode,o=z(e,r,i);return o.ref=n,o.ce=a,delete t.vnode.ce,o}var Di=e=>e.type.__isKeepAlive,Oi={name:`KeepAlive`,__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){let n=Rs(),r=n.ctx;if(!r.renderer)return()=>{let e=t.default&&t.default();return e&&e.length===1?e[0]:e};let i=new Map,a=new Set,o=null,s=n.suspense,{renderer:{p:c,m:l,um:u,o:{createElement:d}}}=r,f=d(`div`);r.activate=(e,t,n,r,i)=>{let a=e.component;l(e,t,n,0,s),c(a.vnode,e,t,n,a,s,r,e.slotScopeIds,i),Fo(()=>{a.isDeactivated=!1,a.a&&pe(a.a);let t=e.props&&e.props.onVnodeMounted;t&&Ns(t,a.parent,e)},s)},r.deactivate=e=>{let t=e.component;Go(t.m),Go(t.a),l(e,f,null,1,s),Fo(()=>{t.da&&pe(t.da);let n=e.props&&e.props.onVnodeUnmounted;n&&Ns(n,t.parent,e),t.isDeactivated=!0},s)};function p(e){Pi(e),u(e,n,s,!0)}function m(e){i.forEach((t,n)=>{let r=nc(t.type);r&&!e(r)&&h(n)})}function h(e){let t=i.get(e);t&&(!o||!vs(t,o))?p(t):o&&Pi(o),i.delete(e),a.delete(e)}$a(()=>[e.include,e.exclude],([e,t])=>{e&&m(t=>ki(e,t)),t&&m(e=>!ki(t,e))},{flush:`post`,deep:!0});let g=null,_=()=>{g!=null&&(Ko(n.subTree.type)?Fo(()=>{i.set(g,Fi(n.subTree))},n.subTree.suspense):i.set(g,Fi(n.subTree)))};return zi(_),Vi(_),Hi(()=>{i.forEach(e=>{let{subTree:t,suspense:r}=n,i=Fi(t);if(e.type===i.type&&e.key===i.key){Pi(i);let e=i.component.da;e&&Fo(e,r);return}p(e)})}),()=>{if(g=null,!t.default)return o=null;let n=t.default(),r=n[0];if(n.length>1)return o=null,n;if(!_s(r)||!(r.shapeFlag&4)&&!(r.shapeFlag&128))return o=null,r;let s=Fi(r);if(s.type===os)return o=null,s;let c=s.type,l=nc(wi(s)?s.type.__asyncResolved||{}:c),{include:u,exclude:d,max:f}=e;if(u&&(!l||!ki(u,l))||d&&l&&ki(d,l))return s.shapeFlag&=-257,o=s,r;let p=s.key==null?c:s.key,m=i.get(p);return s.el&&(s=Ts(s),r.shapeFlag&128&&(r.ssContent=s)),g=p,m?(s.el=m.el,s.component=m.component,s.transition&&Zr(s,s.transition),s.shapeFlag|=512,a.delete(p),a.add(p)):(a.add(p),f&&a.size>parseInt(f,10)&&h(a.values().next().value)),s.shapeFlag|=256,o=s,Ko(r.type)?r:s}}};function ki(e,t){return x(e)?e.some(e=>ki(e,t)):D(e)?e.split(`,`).includes(t):T(e)?(e.lastIndex=0,e.test(t)):!1}function Ai(e,t){Mi(e,`a`,t)}function ji(e,t){Mi(e,`da`,t)}function Mi(e,t,n=Ls){let r=e.__wdc||=()=>{let t=n;for(;t;){if(t.isDeactivated)return;t=t.parent}return e()};if(Ii(t,r,n),n){let e=n.parent;for(;e&&e.parent;)Di(e.parent.vnode)&&Ni(r,t,n,e),e=e.parent}}function Ni(e,t,n,r){let i=Ii(t,e,r,!0);Ui(()=>{v(r[t],i)},n)}function Pi(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function Fi(e){return e.shapeFlag&128?e.ssContent:e}function Ii(e,t,n=Ls,r=!1){if(n){let i=n[e]||(n[e]=[]),a=t.__weh||=(...r)=>{ot();let i=Vs(n),a=Jn(t,n,e,r);return i(),st(),a};return r?i.unshift(a):i.push(a),a}}var Li=e=>(t,n=Ls)=>{(!Ws||e===`sp`)&&Ii(e,(...e)=>t(...e),n)},Ri=Li(`bm`),zi=Li(`m`),Bi=Li(`bu`),Vi=Li(`u`),Hi=Li(`bum`),Ui=Li(`um`),Wi=Li(`sp`),Gi=Li(`rtg`),Ki=Li(`rtc`);function qi(e,t=Ls){Ii(`ec`,e,t)}var Ji=`components`,Yi=`directives`;function Xi(e,t){return ea(Ji,e,!0,t)||e}var Zi=Symbol.for(`v-ndc`);function Qi(e){return D(e)?ea(Ji,e,!1)||e:e||Zi}function $i(e){return ea(Yi,e)}function ea(e,t,n=!0,r=!1){let i=gr||Ls;if(i){let n=i.type;if(e===Ji){let e=nc(n,!1);if(e&&(e===t||e===A(t)||e===ue(A(t))))return n}let a=ta(i[e]||n[e],t)||ta(i.appContext[e],t);return!a&&r?n:a}}function ta(e,t){return e&&(e[t]||e[A(t)]||e[ue(A(t))])}function na(e,t,n,r){let i,a=n&&n[r],o=x(e);if(o||D(e)){let n=o&&cn(e),r=!1,s=!1;n&&(r=!un(e),s=ln(e),e=xt(e)),i=Array(e.length);for(let n=0,o=e.length;nt(e,n,void 0,a&&a[n]));else{let n=Object.keys(e);i=Array(n.length);for(let r=0,o=n.length;r{let t=r.fn(...e);return t&&(t.key=r.key),t}:r.fn)}return e}function ia(e,t,n={},r,i){if(gr.ce||gr.parent&&wi(gr.parent)&&gr.parent.ce){let e=Object.keys(n).length>0;return t!==`default`&&(n.name=t),us(),gs(R,null,[z(`slot`,n,r&&r())],e?-2:64)}let a=e[t];a&&a._c&&(a._d=!1),us();let o=a&&aa(a(n)),s=n.key||o&&o.key,c=gs(R,{key:(s&&!O(s)?s:`_${t}`)+(!o&&r?`_fb`:``)},o||(r?r():[]),o&&e._===1?64:-2);return!i&&c.scopeId&&(c.slotScopeIds=[c.scopeId+`-s`]),a&&a._c&&(a._d=!0),c}function aa(e){return e.some(e=>_s(e)?!(e.type===os||e.type===R&&!aa(e.children)):!0)?e:null}function oa(e,t){let n={};for(let r in e)n[t&&/[A-Z]/.test(r)?`on:${r}`:de(r)]=e[r];return n}var sa=e=>e?Us(e)?tc(e):sa(e.parent):null,ca=_(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>sa(e.parent),$root:e=>sa(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Ma(e),$forceUpdate:e=>e.f||=()=>{or(e.update)},$nextTick:e=>e.n||=ir.bind(e.proxy),$watch:e=>to.bind(e)}),la=(e,t)=>e!==d&&!e.__isScriptSetup&&b(e,t),ua={get({_:e},t){if(t===`__v_skip`)return!0;let{ctx:n,setupState:r,data:i,props:a,accessCache:o,type:s,appContext:c}=e;if(t[0]!==`$`){let e=o[t];if(e!==void 0)switch(e){case 1:return r[t];case 2:return i[t];case 4:return n[t];case 3:return a[t]}else if(la(r,t))return o[t]=1,r[t];else if(i!==d&&b(i,t))return o[t]=2,i[t];else if(b(a,t))return o[t]=3,a[t];else if(n!==d&&b(n,t))return o[t]=4,n[t];else Da&&(o[t]=0)}let l=ca[t],u,f;if(l)return t===`$attrs`&&_t(e.attrs,`get`,``),l(e);if((u=s.__cssModules)&&(u=u[t]))return u;if(n!==d&&b(n,t))return o[t]=4,n[t];if(f=c.config.globalProperties,b(f,t))return f[t]},set({_:e},t,n){let{data:r,setupState:i,ctx:a}=e;return la(i,t)?(i[t]=n,!0):r!==d&&b(r,t)?(r[t]=n,!0):b(e.props,t)||t[0]===`$`&&t.slice(1)in e?!1:(a[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:i,props:a,type:o}},s){let c;return!!(n[s]||e!==d&&s[0]!==`$`&&b(e,s)||la(t,s)||b(a,s)||b(r,s)||b(ca,s)||b(i.config.globalProperties,s)||(c=o.__cssModules)&&c[s])},defineProperty(e,t,n){return n.get==null?b(n,`value`)&&this.set(e,t,n.value,null):e._.accessCache[t]=0,Reflect.defineProperty(e,t,n)}},da=_({},ua,{get(e,t){if(t!==Symbol.unscopables)return ua.get(e,t,e)},has(e,t){return t[0]!==`_`&&!ye(t)}});function fa(){return null}function pa(){return null}function ma(e){}function ha(e){}function ga(){return null}function _a(){}function va(e,t){return null}function ya(){return xa(`useSlots`).slots}function ba(){return xa(`useAttrs`).attrs}function xa(e){let t=Rs();return t.setupContext||=ec(t)}function Sa(e){return x(e)?e.reduce((e,t)=>(e[t]=null,e),{}):e}function Ca(e,t){let n=Sa(e);for(let e in t){if(e.startsWith(`__skip`))continue;let r=n[e];r?x(r)||E(r)?r=n[e]={type:r,default:t[e]}:r.default=t[e]:r===null&&(r=n[e]={default:t[e]}),r&&t[`__skip_${e}`]&&(r.skipFactory=!0)}return n}function wa(e,t){return!e||!t?e||t:x(e)&&x(t)?e.concat(t):_({},Sa(e),Sa(t))}function Ta(e,t){let n={};for(let r in e)t.includes(r)||Object.defineProperty(n,r,{enumerable:!0,get:()=>e[r]});return n}function Ea(e){let t=Rs(),n=e();return Hs(),ee(n)&&(n=n.catch(e=>{throw Vs(t),e})),[n,()=>Vs(t)]}var Da=!0;function Oa(e){let t=Ma(e),n=e.proxy,r=e.ctx;Da=!1,t.beforeCreate&&Aa(t.beforeCreate,e,`bc`);let{data:i,computed:a,methods:o,watch:s,provide:c,inject:l,created:u,beforeMount:d,mounted:f,beforeUpdate:m,updated:h,activated:g,deactivated:_,beforeDestroy:v,beforeUnmount:y,destroyed:b,unmounted:S,render:C,renderTracked:w,renderTriggered:T,errorCaptured:D,serverPrefetch:O,expose:ee,inheritAttrs:te,components:ne,directives:re,filters:ie}=t;if(l&&ka(l,r,null),o)for(let e in o){let t=o[e];E(t)&&(r[e]=t.bind(n))}if(i){let t=i.call(n,n);k(t)&&(e.data=nn(t))}if(Da=!0,a)for(let e in a){let t=a[e],i=B({get:E(t)?t.bind(n,n):E(t.get)?t.get.bind(n,n):p,set:!E(t)&&E(t.set)?t.set.bind(n):p});Object.defineProperty(r,e,{enumerable:!0,configurable:!0,get:()=>i.value,set:e=>i.value=e})}if(s)for(let e in s)ja(s[e],r,n,e);if(c){let e=E(c)?c.call(n):c;Reflect.ownKeys(e).forEach(t=>{Ka(t,e[t])})}u&&Aa(u,e,`c`);function ae(e,t){x(t)?t.forEach(t=>e(t.bind(n))):t&&e(t.bind(n))}if(ae(Ri,d),ae(zi,f),ae(Bi,m),ae(Vi,h),ae(Ai,g),ae(ji,_),ae(qi,D),ae(Ki,w),ae(Gi,T),ae(Hi,y),ae(Ui,S),ae(Wi,O),x(ee))if(ee.length){let t=e.exposed||={};ee.forEach(e=>{Object.defineProperty(t,e,{get:()=>n[e],set:t=>n[e]=t,enumerable:!0})})}else e.exposed||={};C&&e.render===p&&(e.render=C),te!=null&&(e.inheritAttrs=te),ne&&(e.components=ne),re&&(e.directives=re),O&&ti(e)}function ka(e,t,n=p){for(let n in x(e)&&(e=La(e)),e){let r=e[n],i;i=k(r)?`default`in r?L(r.from||n,r.default,!0):L(r.from||n):L(r),F(i)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>i.value,set:e=>i.value=e}):t[n]=i}}function Aa(e,t,n){Jn(x(e)?e.map(e=>e.bind(t.proxy)):e.bind(t.proxy),t,n)}function ja(e,t,n,r){let i=r.includes(`.`)?no(n,r):()=>n[r];if(D(e)){let n=t[e];E(n)&&$a(i,n)}else if(E(e))$a(i,e.bind(n));else if(k(e))if(x(e))e.forEach(e=>ja(e,t,n,r));else{let r=E(e.handler)?e.handler.bind(n):t[e.handler];E(r)&&$a(i,r,e)}}function Ma(e){let t=e.type,{mixins:n,extends:r}=t,{mixins:i,optionsCache:a,config:{optionMergeStrategies:o}}=e.appContext,s=a.get(t),c;return s?c=s:!i.length&&!n&&!r?c=t:(c={},i.length&&i.forEach(e=>Na(c,e,o,!0)),Na(c,t,o)),k(t)&&a.set(t,c),c}function Na(e,t,n,r=!1){let{mixins:i,extends:a}=t;for(let o in a&&Na(e,a,n,!0),i&&i.forEach(t=>Na(e,t,n,!0)),t)if(!(r&&o===`expose`)){let r=Pa[o]||n&&n[o];e[o]=r?r(e[o],t[o]):t[o]}return e}var Pa={data:Fa,props:Ba,emits:Ba,methods:za,computed:za,beforeCreate:Ra,created:Ra,beforeMount:Ra,mounted:Ra,beforeUpdate:Ra,updated:Ra,beforeDestroy:Ra,beforeUnmount:Ra,destroyed:Ra,unmounted:Ra,activated:Ra,deactivated:Ra,errorCaptured:Ra,serverPrefetch:Ra,components:za,directives:za,watch:Va,provide:Fa,inject:Ia};function Fa(e,t){return t?e?function(){return _(E(e)?e.call(this,this):e,E(t)?t.call(this,this):t)}:t:e}function Ia(e,t){return za(La(e),La(t))}function La(e){if(x(e)){let t={};for(let n=0;n1)return n&&E(t)?t.call(r&&r.proxy):t}}function qa(){return!!(Rs()||Ga)}var Ja=Symbol.for(`v-scx`),Ya=()=>L(Ja);function Xa(e,t){return eo(e,null,t)}function Za(e,t){return eo(e,null,{flush:`post`})}function Qa(e,t){return eo(e,null,{flush:`sync`})}function $a(e,t,n){return eo(e,t,n)}function eo(e,t,n=d){let{immediate:r,deep:i,flush:a,once:o}=n,s=_({},n),c=t&&r||!t&&a!==`post`,l;if(Ws){if(a===`sync`){let e=Ya();l=e.__watcherHandles||=[]}else if(!c){let e=()=>{};return e.stop=p,e.resume=p,e.pause=p,e}}let u=Ls;s.call=(e,t,n)=>Jn(e,u,t,n);let f=!1;a===`post`?s.scheduler=e=>{Fo(e,u&&u.suspense)}:a!==`sync`&&(f=!0,s.scheduler=(e,t)=>{t?e():or(e)}),s.augmentJob=e=>{t&&(e.flags|=4),f&&(e.flags|=2,u&&(e.id=u.uid,e.i=u))};let m=zn(e,t,s);return Ws&&(l?l.push(m):c&&m()),m}function to(e,t,n){let r=this.proxy,i=D(e)?e.includes(`.`)?no(r,e):()=>r[e]:e.bind(r,r),a;E(t)?a=t:(a=t.handler,n=t);let o=Vs(this),s=eo(i,a.bind(r),n);return o(),s}function no(e,t){let n=t.split(`.`);return()=>{let t=e;for(let e=0;e{let c,l=d,u;return Qa(()=>{let t=e[i];fe(c,t)&&(c=t,s())}),{get(){return o(),n.get?n.get(c):c},set(e){let o=n.set?n.set(e):e;if(!fe(o,c)&&!(l!==d&&fe(e,l)))return;let f=r.vnode.props;f&&(t in f||i in f||a in f)&&(`onUpdate:${t}`in f||`onUpdate:${i}`in f||`onUpdate:${a}`in f)||(c=e,s()),r.emit(`update:${t}`,o),fe(e,o)&&fe(e,l)&&!fe(o,u)&&s(),l=e,u=o}}});return s[Symbol.iterator]=()=>{let e=0;return{next(){return e<2?{value:e++?o||d:s,done:!1}:{done:!0}}}},s}var io=(e,t)=>t===`modelValue`||t===`model-value`?e.modelModifiers:e[`${t}Modifiers`]||e[`${A(t)}Modifiers`]||e[`${j(t)}Modifiers`];function ao(e,t,...n){if(e.isUnmounted)return;let r=e.vnode.props||d,i=n,a=t.startsWith(`update:`),o=a&&io(r,t.slice(7));o&&(o.trim&&(i=n.map(e=>D(e)?e.trim():e)),o.number&&(i=n.map(he)));let s,c=r[s=de(t)]||r[s=de(A(t))];!c&&a&&(c=r[s=de(j(t))]),c&&Jn(c,e,6,i);let l=r[s+`Once`];if(l){if(!e.emitted)e.emitted={};else if(e.emitted[s])return;e.emitted[s]=!0,Jn(l,e,6,i)}}var oo=new WeakMap;function so(e,t,n=!1){let r=n?oo:t.emitsCache,i=r.get(e);if(i!==void 0)return i;let a=e.emits,o={},s=!1;if(!E(e)){let r=e=>{let n=so(e,t,!0);n&&(s=!0,_(o,n))};!n&&t.mixins.length&&t.mixins.forEach(r),e.extends&&r(e.extends),e.mixins&&e.mixins.forEach(r)}return!a&&!s?(k(e)&&r.set(e,null),null):(x(a)?a.forEach(e=>o[e]=null):_(o,a),k(e)&&r.set(e,o),o)}function co(e,t){return!e||!h(t)?!1:(t=t.slice(2).replace(/Once$/,``),b(e,t[0].toLowerCase()+t.slice(1))||b(e,j(t))||b(e,t))}function lo(e){let{type:t,vnode:n,proxy:r,withProxy:i,propsOptions:[a],slots:o,attrs:s,emit:c,render:l,renderCache:u,props:d,data:f,setupState:p,ctx:m,inheritAttrs:h}=e,_=vr(e),v,y;try{if(n.shapeFlag&4){let e=i||r,t=e;v=ks(l.call(t,e,u,d,p,f,m)),y=s}else{let e=t;v=ks(e.length>1?e(d,{attrs:s,slots:o,emit:c}):e(d,null)),y=t.props?s:fo(s)}}catch(t){cs.length=0,Yn(t,e,1),v=z(os)}let b=v;if(y&&h!==!1){let e=Object.keys(y),{shapeFlag:t}=b;e.length&&t&7&&(a&&e.some(g)&&(y=po(y,a)),b=Ts(b,y,!1,!0))}return n.dirs&&(b=Ts(b,null,!1,!0),b.dirs=b.dirs?b.dirs.concat(n.dirs):n.dirs),n.transition&&Zr(b,n.transition),v=b,vr(_),v}function uo(e,t=!0){let n;for(let t=0;t{let t;for(let n in e)(n===`class`||n===`style`||h(n))&&((t||={})[n]=e[n]);return t},po=(e,t)=>{let n={};for(let r in e)(!g(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function mo(e,t,n){let{props:r,children:i,component:a}=e,{props:o,children:s,patchFlag:c}=t,l=a.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&c>=0){if(c&1024)return!0;if(c&16)return r?ho(r,o,l):!!o;if(c&8){let e=t.dynamicProps;for(let t=0;tObject.create(_o),yo=e=>Object.getPrototypeOf(e)===_o;function bo(e,t,n,r=!1){let i={},a=vo();for(let n in e.propsDefaults=Object.create(null),So(e,t,i,a),e.propsOptions[0])n in i||(i[n]=void 0);n?e.props=r?i:rn(i):e.type.props?e.props=i:e.props=a,e.attrs=a}function xo(e,t,n,r){let{props:i,attrs:a,vnode:{patchFlag:o}}=e,s=P(i),[c]=e.propsOptions,l=!1;if((r||o>0)&&!(o&16)){if(o&8){let n=e.vnode.dynamicProps;for(let r=0;r{c=!0;let[n,r]=To(e,t,!0);_(o,n),r&&s.push(...r)};!n&&t.mixins.length&&t.mixins.forEach(r),e.extends&&r(e.extends),e.mixins&&e.mixins.forEach(r)}if(!a&&!c)return k(e)&&r.set(e,f),f;if(x(a))for(let e=0;ee===`_`||e===`_ctx`||e===`$stable`,Oo=e=>x(e)?e.map(ks):[ks(e)],ko=(e,t,n)=>{if(t._n)return t;let r=Sr((...e)=>Oo(t(...e)),n);return r._c=!1,r},Ao=(e,t,n)=>{let r=e._ctx;for(let n in e){if(Do(n))continue;let i=e[n];if(E(i))t[n]=ko(n,i,r);else if(i!=null){let e=Oo(i);t[n]=()=>e}}},jo=(e,t)=>{let n=Oo(t);e.slots.default=()=>n},Mo=(e,t,n)=>{for(let r in t)(n||!Do(r))&&(e[r]=t[r])},No=(e,t,n)=>{let r=e.slots=vo();if(e.vnode.shapeFlag&32){let e=t._;e?(Mo(r,t,n),n&&me(r,`_`,e,!0)):Ao(t,r)}else t&&jo(e,t)},Po=(e,t,n)=>{let{vnode:r,slots:i}=e,a=!0,o=d;if(r.shapeFlag&32){let e=t._;e?n&&e===1?a=!1:Mo(i,t,n):(a=!t.$stable,Ao(t,i)),o=t}else t&&(jo(e,t),o={default:1});if(a)for(let e in i)!Do(e)&&o[e]==null&&delete i[e]},Fo=ns;function Io(e){return Ro(e)}function Lo(e){return Ro(e,fi)}function Ro(e,t){let n=ve();n.__VUE__=!0;let{insert:r,remove:i,patchProp:a,createElement:o,createText:s,createComment:c,setText:l,setElementText:u,parentNode:m,nextSibling:h,setScopeId:g=p,insertStaticContent:_}=e,v=(e,t,n,r=null,i=null,a=null,o=void 0,s=null,c=!!t.dynamicChildren)=>{if(e===t)return;e&&!vs(e,t)&&(r=ge(e),ue(e,i,a,!0),e=null),t.patchFlag===-2&&(c=!1,t.dynamicChildren=null);let{type:l,ref:u,shapeFlag:d}=t;switch(l){case as:y(e,t,n,r);break;case os:b(e,t,n,r);break;case ss:e??x(t,n,r,o);break;case R:te(e,t,n,r,i,a,o,s,c);break;default:d&1?w(e,t,n,r,i,a,o,s,c):d&6?ne(e,t,n,r,i,a,o,s,c):(d&64||d&128)&&l.process(e,t,n,r,i,a,o,s,c,be)}u!=null&&i?ii(u,e&&e.ref,a,t||e,!t):u==null&&e&&e.ref!=null&&ii(e.ref,null,a,e,!0)},y=(e,t,n,i)=>{if(e==null)r(t.el=s(t.children),n,i);else{let n=t.el=e.el;t.children!==e.children&&l(n,t.children)}},b=(e,t,n,i)=>{e==null?r(t.el=c(t.children||``),n,i):t.el=e.el},x=(e,t,n,r)=>{[e.el,e.anchor]=_(e.children,t,n,r,e.el,e.anchor)},S=({el:e,anchor:t},n,i)=>{let a;for(;e&&e!==t;)a=h(e),r(e,n,i),e=a;r(t,n,i)},C=({el:e,anchor:t})=>{let n;for(;e&&e!==t;)n=h(e),i(e),e=n;i(t)},w=(e,t,n,r,i,a,o,s,c)=>{if(t.type===`svg`?o=`svg`:t.type===`math`&&(o=`mathml`),e==null)T(t,n,r,i,a,o,s,c);else{let n=e.el&&e.el._isVueCE?e.el:null;try{n&&n._beginPatch(),O(e,t,i,a,o,s,c)}finally{n&&n._endPatch()}}},T=(e,t,n,i,s,c,l,d)=>{let f,p,{props:m,shapeFlag:h,transition:g,dirs:_}=e;if(f=e.el=o(e.type,c,m&&m.is,m),h&8?u(f,e.children):h&16&&D(e.children,f,null,i,s,zo(e,c),l,d),_&&wr(e,null,i,`created`),E(f,e,e.scopeId,l,i),m){for(let e in m)e!==`value`&&!oe(e)&&a(f,e,null,m[e],c,i);`value`in m&&a(f,`value`,null,m.value,c),(p=m.onVnodeBeforeMount)&&Ns(p,i,e)}_&&wr(e,null,i,`beforeMount`);let v=Vo(s,g);v&&g.beforeEnter(f),r(f,t,n),((p=m&&m.onVnodeMounted)||v||_)&&Fo(()=>{p&&Ns(p,i,e),v&&g.enter(f),_&&wr(e,null,i,`mounted`)},s)},E=(e,t,n,r,i)=>{if(n&&g(e,n),r)for(let t=0;t{for(let l=c;l{let c=t.el=e.el,{patchFlag:l,dynamicChildren:f,dirs:p}=t;l|=e.patchFlag&16;let m=e.props||d,h=t.props||d,g;if(n&&Bo(n,!1),(g=h.onVnodeBeforeUpdate)&&Ns(g,n,t,e),p&&wr(t,e,n,`beforeUpdate`),n&&Bo(n,!0),(m.innerHTML&&h.innerHTML==null||m.textContent&&h.textContent==null)&&u(c,``),f?k(e.dynamicChildren,f,c,n,r,zo(t,i),o):s||ce(e,t,c,null,n,r,zo(t,i),o,!1),l>0){if(l&16)ee(c,m,h,n,i);else if(l&2&&m.class!==h.class&&a(c,`class`,null,h.class,i),l&4&&a(c,`style`,m.style,h.style,i),l&8){let e=t.dynamicProps;for(let t=0;t{g&&Ns(g,n,t,e),p&&wr(t,e,n,`updated`)},r)},k=(e,t,n,r,i,a,o)=>{for(let s=0;s{if(t!==n){if(t!==d)for(let o in t)!oe(o)&&!(o in n)&&a(e,o,t[o],null,i,r);for(let o in n){if(oe(o))continue;let s=n[o],c=t[o];s!==c&&o!==`value`&&a(e,o,c,s,i,r)}`value`in n&&a(e,`value`,t.value,n.value,i)}},te=(e,t,n,i,a,o,c,l,u)=>{let d=t.el=e?e.el:s(``),f=t.anchor=e?e.anchor:s(``),{patchFlag:p,dynamicChildren:m,slotScopeIds:h}=t;h&&(l=l?l.concat(h):h),e==null?(r(d,n,i),r(f,n,i),D(t.children||[],n,f,a,o,c,l,u)):p>0&&p&64&&m&&e.dynamicChildren?(k(e.dynamicChildren,m,n,a,o,c,l),(t.key!=null||a&&t===a.subTree)&&Ho(e,t,!0)):ce(e,t,n,f,a,o,c,l,u)},ne=(e,t,n,r,i,a,o,s,c)=>{t.slotScopeIds=s,e==null?t.shapeFlag&512?i.ctx.activate(t,n,r,o,c):re(t,n,r,i,a,o,c):ie(e,t,c)},re=(e,t,n,r,i,a,o)=>{let s=e.component=Is(e,r,i);if(Di(e)&&(s.ctx.renderer=be),Gs(s,!1,o),s.asyncDep){if(i&&i.registerDep(s,ae,o),!e.el){let r=s.subTree=z(os);b(null,r,t,n),e.placeholder=r.el}}else ae(s,e,t,n,i,a,o)},ie=(e,t,n)=>{let r=t.component=e.component;if(mo(e,t,n))if(r.asyncDep&&!r.asyncResolved){se(r,t,n);return}else r.next=t,r.update();else t.el=e.el,r.vnode=t},ae=(e,t,n,r,i,a,o)=>{let s=()=>{if(e.isMounted){let{next:t,bu:n,u:r,parent:c,vnode:l}=e;{let n=Wo(e);if(n){t&&(t.el=l.el,se(e,t,o)),n.asyncDep.then(()=>{e.isUnmounted||s()});return}}let u=t,d;Bo(e,!1),t?(t.el=l.el,se(e,t,o)):t=l,n&&pe(n),(d=t.props&&t.props.onVnodeBeforeUpdate)&&Ns(d,c,t,l),Bo(e,!0);let f=lo(e),p=e.subTree;e.subTree=f,v(p,f,m(p.el),ge(p),e,i,a),t.el=f.el,u===null&&go(e,f.el),r&&Fo(r,i),(d=t.props&&t.props.onVnodeUpdated)&&Fo(()=>Ns(d,c,t,l),i)}else{let o,{el:s,props:c}=t,{bm:l,m:u,parent:d,root:f,type:p}=e,m=wi(t);if(Bo(e,!1),l&&pe(l),!m&&(o=c&&c.onVnodeBeforeMount)&&Ns(o,d,t),Bo(e,!0),s&&Se){let t=()=>{e.subTree=lo(e),Se(s,e.subTree,e,i,null)};m&&p.__asyncHydrate?p.__asyncHydrate(s,e,t):t()}else{f.ce&&f.ce._def.shadowRoot!==!1&&f.ce._injectChildStyle(p);let o=e.subTree=lo(e);v(null,o,n,r,e,i,a),t.el=o.el}if(u&&Fo(u,i),!m&&(o=c&&c.onVnodeMounted)){let e=t;Fo(()=>Ns(o,d,e),i)}(t.shapeFlag&256||d&&wi(d.vnode)&&d.vnode.shapeFlag&256)&&e.a&&Fo(e.a,i),e.isMounted=!0,t=n=r=null}};e.scope.on();let c=e.effect=new Ue(s);e.scope.off();let l=e.update=c.run.bind(c),u=e.job=c.runIfDirty.bind(c);u.i=e,u.id=e.uid,c.scheduler=()=>or(u),Bo(e,!0),l()},se=(e,t,n)=>{t.component=e;let r=e.vnode.props;e.vnode=t,e.next=null,xo(e,t.props,r,n),Po(e,t.children,n),ot(),lr(e),st()},ce=(e,t,n,r,i,a,o,s,c=!1)=>{let l=e&&e.children,d=e?e.shapeFlag:0,f=t.children,{patchFlag:p,shapeFlag:m}=t;if(p>0){if(p&128){le(l,f,n,r,i,a,o,s,c);return}else if(p&256){A(l,f,n,r,i,a,o,s,c);return}}m&8?(d&16&&he(l,i,a),f!==l&&u(n,f)):d&16?m&16?le(l,f,n,r,i,a,o,s,c):he(l,i,a,!0):(d&8&&u(n,``),m&16&&D(f,n,r,i,a,o,s,c))},A=(e,t,n,r,i,a,o,s,c)=>{e||=f,t||=f;let l=e.length,u=t.length,d=Math.min(l,u),p;for(p=0;pu?he(e,i,a,!0,!1,d):D(t,n,r,i,a,o,s,c,d)},le=(e,t,n,r,i,a,o,s,c)=>{let l=0,u=t.length,d=e.length-1,p=u-1;for(;l<=d&&l<=p;){let r=e[l],u=t[l]=c?As(t[l]):ks(t[l]);if(vs(r,u))v(r,u,n,null,i,a,o,s,c);else break;l++}for(;l<=d&&l<=p;){let r=e[d],l=t[p]=c?As(t[p]):ks(t[p]);if(vs(r,l))v(r,l,n,null,i,a,o,s,c);else break;d--,p--}if(l>d){if(l<=p){let e=p+1,d=ep)for(;l<=d;)ue(e[l],i,a,!0),l++;else{let m=l,h=l,g=new Map;for(l=h;l<=p;l++){let e=t[l]=c?As(t[l]):ks(t[l]);e.key!=null&&g.set(e.key,l)}let _,y=0,b=p-h+1,x=!1,S=0,C=Array(b);for(l=0;l=b){ue(r,i,a,!0);continue}let u;if(r.key!=null)u=g.get(r.key);else for(_=h;_<=p;_++)if(C[_-h]===0&&vs(r,t[_])){u=_;break}u===void 0?ue(r,i,a,!0):(C[u-h]=l+1,u>=S?S=u:x=!0,v(r,t[u],n,null,i,a,o,s,c),y++)}let w=x?Uo(C):f;for(_=w.length-1,l=b-1;l>=0;l--){let e=h+l,d=t[e],f=t[e+1],p=e+1{let{el:s,type:c,transition:l,children:u,shapeFlag:d}=e;if(d&6){j(e.component.subTree,t,n,a);return}if(d&128){e.suspense.move(t,n,a);return}if(d&64){c.move(e,t,n,be);return}if(c===R){r(s,t,n);for(let e=0;el.enter(s),o);else{let{leave:a,delayLeave:o,afterLeave:c}=l,u=()=>{e.ctx.isUnmounted?i(s):r(s,t,n)},d=()=>{s._isLeaving&&s[Rr](!0),a(s,()=>{u(),c&&c()})};o?o(s,u,d):d()}else r(s,t,n)},ue=(e,t,n,r=!1,i=!1)=>{let{type:a,props:o,ref:s,children:c,dynamicChildren:l,shapeFlag:u,patchFlag:d,dirs:f,cacheIndex:p}=e;if(d===-2&&(i=!1),s!=null&&(ot(),ii(s,null,n,e,!0),st()),p!=null&&(t.renderCache[p]=void 0),u&256){t.ctx.deactivate(e);return}let m=u&1&&f,h=!wi(e),g;if(h&&(g=o&&o.onVnodeBeforeUnmount)&&Ns(g,t,e),u&6)me(e.component,n,r);else{if(u&128){e.suspense.unmount(n,r);return}m&&wr(e,null,t,`beforeUnmount`),u&64?e.type.remove(e,t,n,be,r):l&&!l.hasOnce&&(a!==R||d>0&&d&64)?he(l,t,n,!1,!0):(a===R&&d&384||!i&&u&16)&&he(c,t,n),r&&de(e)}(h&&(g=o&&o.onVnodeUnmounted)||m)&&Fo(()=>{g&&Ns(g,t,e),m&&wr(e,null,t,`unmounted`)},n)},de=e=>{let{type:t,el:n,anchor:r,transition:a}=e;if(t===R){fe(n,r);return}if(t===ss){C(e);return}let o=()=>{i(n),a&&!a.persisted&&a.afterLeave&&a.afterLeave()};if(e.shapeFlag&1&&a&&!a.persisted){let{leave:t,delayLeave:r}=a,i=()=>t(n,o);r?r(e.el,o,i):i()}else o()},fe=(e,t)=>{let n;for(;e!==t;)n=h(e),i(e),e=n;i(t)},me=(e,t,n)=>{let{bum:r,scope:i,job:a,subTree:o,um:s,m:c,a:l}=e;Go(c),Go(l),r&&pe(r),i.stop(),a&&(a.flags|=8,ue(o,e,t,n)),s&&Fo(s,t),Fo(()=>{e.isUnmounted=!0},t)},he=(e,t,n,r=!1,i=!1,a=0)=>{for(let o=a;o{if(e.shapeFlag&6)return ge(e.component.subTree);if(e.shapeFlag&128)return e.suspense.next();let t=h(e.anchor||e.el),n=t&&t[Tr];return n?h(n):t},_e=!1,ye=(e,t,n)=>{e==null?t._vnode&&ue(t._vnode,null,null,!0):v(t._vnode||null,e,t,null,null,null,n),t._vnode=e,_e||=(_e=!0,lr(),ur(),!1)},be={p:v,um:ue,m:j,r:de,mt:re,mc:D,pc:ce,pbc:k,n:ge,o:e},xe,Se;return t&&([xe,Se]=t(be)),{render:ye,hydrate:xe,createApp:Wa(ye,xe)}}function zo({type:e,props:t},n){return n===`svg`&&e===`foreignObject`||n===`mathml`&&e===`annotation-xml`&&t&&t.encoding&&t.encoding.includes(`html`)?void 0:n}function Bo({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Vo(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Ho(e,t,n=!1){let r=e.children,i=t.children;if(x(r)&&x(i))for(let e=0;e>1,e[n[s]]0&&(t[r]=n[a-1]),n[a]=r)}}for(a=n.length,o=n[a-1];a-- >0;)n[a]=o,o=t[o];return n}function Wo(e){let t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Wo(t)}function Go(e){if(e)for(let t=0;te.__isSuspense,qo=0,Jo={name:`Suspense`,__isSuspense:!0,process(e,t,n,r,i,a,o,s,c,l){if(e==null)Xo(t,n,r,i,a,o,s,c,l);else{if(a&&a.deps>0&&!e.suspense.isInFallback){t.suspense=e.suspense,t.suspense.vnode=t,t.el=e.el;return}Zo(e,t,n,r,i,o,s,c,l)}},hydrate:$o,normalize:es};function Yo(e,t){let n=e.props&&e.props[t];E(n)&&n()}function Xo(e,t,n,r,i,a,o,s,c){let{p:l,o:{createElement:u}}=c,d=u(`div`),f=e.suspense=Qo(e,i,r,t,d,n,a,o,s,c);l(null,f.pendingBranch=e.ssContent,d,null,r,f,a,o),f.deps>0?(Yo(e,`onPending`),Yo(e,`onFallback`),l(null,e.ssFallback,t,n,r,null,a,o),rs(f,e.ssFallback)):f.resolve(!1,!0)}function Zo(e,t,n,r,i,a,o,s,{p:c,um:l,o:{createElement:u}}){let d=t.suspense=e.suspense;d.vnode=t,t.el=e.el;let f=t.ssContent,p=t.ssFallback,{activeBranch:m,pendingBranch:h,isInFallback:g,isHydrating:_}=d;if(h)d.pendingBranch=f,vs(h,f)?(c(h,f,d.hiddenContainer,null,i,d,a,o,s),d.deps<=0?d.resolve():g&&(_||(c(m,p,n,r,i,null,a,o,s),rs(d,p)))):(d.pendingId=qo++,_?(d.isHydrating=!1,d.activeBranch=h):l(h,i,d),d.deps=0,d.effects.length=0,d.hiddenContainer=u(`div`),g?(c(null,f,d.hiddenContainer,null,i,d,a,o,s),d.deps<=0?d.resolve():(c(m,p,n,r,i,null,a,o,s),rs(d,p))):m&&vs(m,f)?(c(m,f,n,r,i,d,a,o,s),d.resolve(!0)):(c(null,f,d.hiddenContainer,null,i,d,a,o,s),d.deps<=0&&d.resolve()));else if(m&&vs(m,f))c(m,f,n,r,i,d,a,o,s),rs(d,f);else if(Yo(t,`onPending`),d.pendingBranch=f,f.shapeFlag&512?d.pendingId=f.component.suspenseId:d.pendingId=qo++,c(null,f,d.hiddenContainer,null,i,d,a,o,s),d.deps<=0)d.resolve();else{let{timeout:e,pendingId:t}=d;e>0?setTimeout(()=>{d.pendingId===t&&d.fallback(p)},e):e===0&&d.fallback(p)}}function Qo(e,t,n,r,i,a,o,s,c,l,u=!1){let{p:d,m:f,um:p,n:m,o:{parentNode:h,remove:g}}=l,_,v=is(e);v&&t&&t.pendingBranch&&(_=t.pendingId,t.deps++);let y=e.props?ge(e.props.timeout):void 0,b=a,x={vnode:e,parent:t,parentComponent:n,namespace:o,container:r,hiddenContainer:i,deps:0,pendingId:qo++,timeout:typeof y==`number`?y:-1,activeBranch:null,pendingBranch:null,isInFallback:!u,isHydrating:u,isUnmounted:!1,effects:[],resolve(e=!1,n=!1){let{vnode:r,activeBranch:i,pendingBranch:o,pendingId:s,effects:c,parentComponent:l,container:u,isInFallback:d}=x,g=!1;x.isHydrating?x.isHydrating=!1:e||(g=i&&o.transition&&o.transition.mode===`out-in`,g&&(i.transition.afterLeave=()=>{s===x.pendingId&&(f(o,u,a===b?m(i):a,0),cr(c),d&&r.ssFallback&&(r.ssFallback.el=null))}),i&&(h(i.el)===u&&(a=m(i)),p(i,l,x,!0),!g&&d&&r.ssFallback&&Fo(()=>r.ssFallback.el=null,x)),g||f(o,u,a,0)),rs(x,o),x.pendingBranch=null,x.isInFallback=!1;let y=x.parent,S=!1;for(;y;){if(y.pendingBranch){y.effects.push(...c),S=!0;break}y=y.parent}!S&&!g&&cr(c),x.effects=[],v&&t&&t.pendingBranch&&_===t.pendingId&&(t.deps--,t.deps===0&&!n&&t.resolve()),Yo(r,`onResolve`)},fallback(e){if(!x.pendingBranch)return;let{vnode:t,activeBranch:n,parentComponent:r,container:i,namespace:a}=x;Yo(t,`onFallback`);let o=m(n),l=()=>{x.isInFallback&&(d(null,e,i,o,r,null,a,s,c),rs(x,e))},u=e.transition&&e.transition.mode===`out-in`;u&&(n.transition.afterLeave=l),x.isInFallback=!0,p(n,r,null,!0),u||l()},move(e,t,n){x.activeBranch&&f(x.activeBranch,e,t,n),x.container=e},next(){return x.activeBranch&&m(x.activeBranch)},registerDep(e,t,n){let r=!!x.pendingBranch;r&&x.deps++;let i=e.vnode.el;e.asyncDep.catch(t=>{Yn(t,e,0)}).then(a=>{if(e.isUnmounted||x.isUnmounted||x.pendingId!==e.suspenseId)return;e.asyncResolved=!0;let{vnode:s}=e;qs(e,a,!1),i&&(s.el=i);let c=!i&&e.subTree.el;t(e,s,h(i||e.subTree.el),i?null:m(e.subTree),x,o,n),c&&(s.placeholder=null,g(c)),go(e,s.el),r&&--x.deps===0&&x.resolve()})},unmount(e,t){x.isUnmounted=!0,x.activeBranch&&p(x.activeBranch,n,e,t),x.pendingBranch&&p(x.pendingBranch,n,e,t)}};return x}function $o(e,t,n,r,i,a,o,s,c){let l=t.suspense=Qo(t,r,n,e.parentNode,document.createElement(`div`),null,i,a,o,s,!0),u=c(e,l.pendingBranch=t.ssContent,n,l,a,o);return l.deps===0&&l.resolve(!1,!0),u}function es(e){let{shapeFlag:t,children:n}=e,r=t&32;e.ssContent=ts(r?n.default:n),e.ssFallback=r?ts(n.fallback):z(os)}function ts(e){let t;if(E(e)){let n=fs&&e._c;n&&(e._d=!1,us()),e=e(),n&&(e._d=!0,t=ls,ds())}return x(e)&&(e=uo(e)),e=ks(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(t=>t!==e)),e}function ns(e,t){t&&t.pendingBranch?x(e)?t.effects.push(...e):t.effects.push(e):cr(e)}function rs(e,t){e.activeBranch=t;let{vnode:n,parentComponent:r}=e,i=t.el;for(;!i&&t.component;)t=t.component.subTree,i=t.el;n.el=i,r&&r.subTree===n&&(r.vnode.el=i,go(r,i))}function is(e){let t=e.props&&e.props.suspensible;return t!=null&&t!==!1}var R=Symbol.for(`v-fgt`),as=Symbol.for(`v-txt`),os=Symbol.for(`v-cmt`),ss=Symbol.for(`v-stc`),cs=[],ls=null;function us(e=!1){cs.push(ls=e?null:[])}function ds(){cs.pop(),ls=cs[cs.length-1]||null}var fs=1;function ps(e,t=!1){fs+=e,e<0&&ls&&t&&(ls.hasOnce=!0)}function ms(e){return e.dynamicChildren=fs>0?ls||f:null,ds(),fs>0&&ls&&ls.push(e),e}function hs(e,t,n,r,i,a){return ms(Ss(e,t,n,r,i,a,!0))}function gs(e,t,n,r,i){return ms(z(e,t,n,r,i,!0))}function _s(e){return e?e.__v_isVNode===!0:!1}function vs(e,t){return e.type===t.type&&e.key===t.key}function ys(e){}var bs=({key:e})=>e??null,xs=({ref:e,ref_key:t,ref_for:n})=>(typeof e==`number`&&(e=``+e),e==null?null:D(e)||F(e)||E(e)?{i:gr,r:e,k:t,f:!!n}:e);function Ss(e,t=null,n=null,r=0,i=null,a=e===R?0:1,o=!1,s=!1){let c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&bs(t),ref:t&&xs(t),scopeId:_r,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:a,patchFlag:r,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:gr};return s?(js(c,n),a&128&&e.normalize(c)):n&&(c.shapeFlag|=D(n)?8:16),fs>0&&!o&&ls&&(c.patchFlag>0||a&6)&&c.patchFlag!==32&&ls.push(c),c}var z=Cs;function Cs(e,t=null,n=null,r=0,i=null,a=!1){if((!e||e===Zi)&&(e=os),_s(e)){let r=Ts(e,t,!0);return n&&js(r,n),fs>0&&!a&&ls&&(r.shapeFlag&6?ls[ls.indexOf(e)]=r:ls.push(r)),r.patchFlag=-2,r}if(rc(e)&&(e=e.__vccOpts),t){t=ws(t);let{class:e,style:n}=t;e&&!D(e)&&(t.class=M(e)),k(n)&&(dn(n)&&!x(n)&&(n=_({},n)),t.style=be(n))}let o=D(e)?1:Ko(e)?128:Er(e)?64:k(e)?4:E(e)?2:0;return Ss(e,t,n,r,i,o,a,!0)}function ws(e){return e?dn(e)||yo(e)?_({},e):e:null}function Ts(e,t,n=!1,r=!1){let{props:i,ref:a,patchFlag:o,children:s,transition:c}=e,l=t?Ms(i||{},t):i,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:l,key:l&&bs(l),ref:t&&t.ref?n&&a?x(a)?a.concat(xs(t)):[a,xs(t)]:xs(t):a,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:s,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==R?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:c,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Ts(e.ssContent),ssFallback:e.ssFallback&&Ts(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return c&&r&&Zr(u,c.clone(u)),u}function Es(e=` `,t=0){return z(as,null,e,t)}function Ds(e,t){let n=z(ss,null,e);return n.staticCount=t,n}function Os(e=``,t=!1){return t?(us(),gs(os,null,e)):z(os,null,e)}function ks(e){return e==null||typeof e==`boolean`?z(os):x(e)?z(R,null,e.slice()):_s(e)?As(e):z(as,null,String(e))}function As(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Ts(e)}function js(e,t){let n=0,{shapeFlag:r}=e;if(t==null)t=null;else if(x(t))n=16;else if(typeof t==`object`)if(r&65){let n=t.default;n&&(n._c&&(n._d=!1),js(e,n()),n._c&&(n._d=!0));return}else{n=32;let r=t._;!r&&!yo(t)?t._ctx=gr:r===3&&gr&&(gr.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else E(t)?(t={default:t,_ctx:gr},n=32):(t=String(t),r&64?(n=16,t=[Es(t)]):n=8);e.children=t,e.shapeFlag|=n}function Ms(...e){let t={};for(let n=0;nLs||gr,zs,Bs;{let e=ve(),t=(t,n)=>{let r;return(r=e[t])||(r=e[t]=[]),r.push(n),e=>{r.length>1?r.forEach(t=>t(e)):r[0](e)}};zs=t(`__VUE_INSTANCE_SETTERS__`,e=>Ls=e),Bs=t(`__VUE_SSR_SETTERS__`,e=>Ws=e)}var Vs=e=>{let t=Ls;return zs(e),e.scope.on(),()=>{e.scope.off(),zs(t)}},Hs=()=>{Ls&&Ls.scope.off(),zs(null)};function Us(e){return e.vnode.shapeFlag&4}var Ws=!1;function Gs(e,t=!1,n=!1){t&&Bs(t);let{props:r,children:i}=e.vnode,a=Us(e);bo(e,r,a,t),No(e,i,n||t);let o=a?Ks(e,t):void 0;return t&&Bs(!1),o}function Ks(e,t){let n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,ua);let{setup:r}=n;if(r){ot();let n=e.setupContext=r.length>1?ec(e):null,i=Vs(e),a=qn(r,e,0,[e.props,n]),o=ee(a);if(st(),i(),(o||e.sp)&&!wi(e)&&ti(e),o){if(a.then(Hs,Hs),t)return a.then(n=>{qs(e,n,t)}).catch(t=>{Yn(t,e,0)});e.asyncDep=a}else qs(e,a,t)}else Qs(e,t)}function qs(e,t,n){E(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:k(t)&&(e.setupState=Sn(t)),Qs(e,n)}var Js,Ys;function Xs(e){Js=e,Ys=e=>{e.render._rc&&(e.withProxy=new Proxy(e.ctx,da))}}var Zs=()=>!Js;function Qs(e,t,n){let r=e.type;if(!e.render){if(!t&&Js&&!r.render){let t=r.template||Ma(e).template;if(t){let{isCustomElement:n,compilerOptions:i}=e.appContext.config,{delimiters:a,compilerOptions:o}=r,s=_(_({isCustomElement:n,delimiters:a},i),o);r.render=Js(t,s)}}e.render=r.render||p,Ys&&Ys(e)}{let t=Vs(e);ot();try{Oa(e)}finally{st(),t()}}}var $s={get(e,t){return _t(e,`get`,``),e[t]}};function ec(e){return{attrs:new Proxy(e.attrs,$s),slots:e.slots,emit:e.emit,expose:t=>{e.exposed=t||{}}}}function tc(e){return e.exposed?e.exposeProxy||=new Proxy(Sn(fn(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in ca)return ca[n](e)},has(e,t){return t in e||t in ca}}):e.proxy}function nc(e,t=!0){return E(e)?e.displayName||e.name:e.name||t&&e.__name}function rc(e){return E(e)&&`__vccOpts`in e}var B=(e,t)=>jn(e,t,Ws);function ic(e,t,n){try{ps(-1);let r=arguments.length;return r===2?k(t)&&!x(t)?_s(t)?z(e,null,[t]):z(e,t):z(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&_s(n)&&(n=[n]),z(e,t,n))}finally{ps(1)}}function ac(){return;function e(t,n,r){let i=t[r];if(x(i)&&i.includes(n)||k(i)&&n in i||t.extends&&e(t.extends,n,r)||t.mixins&&t.mixins.some(t=>e(t,n,r)))return!0}}function oc(e,t,n,r){let i=n[r];if(i&&sc(i,e))return i;let a=t();return a.memo=e.slice(),a.cacheIndex=r,n[r]=a}function sc(e,t){let n=e.memo;if(n.length!=t.length)return!1;for(let e=0;e0&&ls&&ls.push(e),!0}var cc=`3.5.25`,lc=p,uc=Kn,dc=pr,fc=hr,pc={createComponentInstance:Is,setupComponent:Gs,renderComponentRoot:lo,setCurrentRenderingInstance:vr,isVNode:_s,normalizeVNode:ks,getComponentPublicInstance:tc,ensureValidVNode:aa,pushWarningContext:Hn,popWarningContext:Un},mc=void 0,hc=typeof window<`u`&&window.trustedTypes;if(hc)try{mc=hc.createPolicy(`vue`,{createHTML:e=>e})}catch{}var gc=mc?e=>mc.createHTML(e):e=>e,_c=`http://www.w3.org/2000/svg`,vc=`http://www.w3.org/1998/Math/MathML`,yc=typeof document<`u`?document:null,bc=yc&&yc.createElement(`template`),xc={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{let t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{let i=t===`svg`?yc.createElementNS(_c,e):t===`mathml`?yc.createElementNS(vc,e):n?yc.createElement(e,{is:n}):yc.createElement(e);return e===`select`&&r&&r.multiple!=null&&i.setAttribute(`multiple`,r.multiple),i},createText:e=>yc.createTextNode(e),createComment:e=>yc.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>yc.querySelector(e),setScopeId(e,t){e.setAttribute(t,``)},insertStaticContent(e,t,n,r,i,a){let o=n?n.previousSibling:t.lastChild;if(i&&(i===a||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),n),!(i===a||!(i=i.nextSibling)););else{bc.innerHTML=gc(r===`svg`?`${e}`:r===`mathml`?`${e}`:e);let i=bc.content;if(r===`svg`||r===`mathml`){let e=i.firstChild;for(;e.firstChild;)i.appendChild(e.firstChild);i.removeChild(e)}t.insertBefore(i,n)}return[o?o.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Sc=`transition`,Cc=`animation`,wc=Symbol(`_vtc`),Tc={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},Ec=_({},Hr,Tc),Dc=(e=>(e.displayName=`Transition`,e.props=Ec,e))((e,{slots:t})=>ic(Kr,Ac(e),t)),Oc=(e,t=[])=>{x(e)?e.forEach(e=>e(...t)):e&&e(...t)},kc=e=>e?x(e)?e.some(e=>e.length>1):e.length>1:!1;function Ac(e){let t={};for(let n in e)n in Tc||(t[n]=e[n]);if(e.css===!1)return t;let{name:n=`v`,type:r,duration:i,enterFromClass:a=`${n}-enter-from`,enterActiveClass:o=`${n}-enter-active`,enterToClass:s=`${n}-enter-to`,appearFromClass:c=a,appearActiveClass:l=o,appearToClass:u=s,leaveFromClass:d=`${n}-leave-from`,leaveActiveClass:f=`${n}-leave-active`,leaveToClass:p=`${n}-leave-to`}=e,m=jc(i),h=m&&m[0],g=m&&m[1],{onBeforeEnter:v,onEnter:y,onEnterCancelled:b,onLeave:x,onLeaveCancelled:S,onBeforeAppear:C=v,onAppear:w=y,onAppearCancelled:T=b}=t,E=(e,t,n,r)=>{e._enterCancelled=r,Pc(e,t?u:s),Pc(e,t?l:o),n&&n()},D=(e,t)=>{e._isLeaving=!1,Pc(e,d),Pc(e,p),Pc(e,f),t&&t()},O=e=>(t,n)=>{let i=e?w:y,o=()=>E(t,e,n);Oc(i,[t,o]),Fc(()=>{Pc(t,e?c:a),Nc(t,e?u:s),kc(i)||Lc(t,r,h,o)})};return _(t,{onBeforeEnter(e){Oc(v,[e]),Nc(e,a),Nc(e,o)},onBeforeAppear(e){Oc(C,[e]),Nc(e,c),Nc(e,l)},onEnter:O(!1),onAppear:O(!0),onLeave(e,t){e._isLeaving=!0;let n=()=>D(e,t);Nc(e,d),e._enterCancelled?(Nc(e,f),Vc(e)):(Vc(e),Nc(e,f)),Fc(()=>{e._isLeaving&&(Pc(e,d),Nc(e,p),kc(x)||Lc(e,r,g,n))}),Oc(x,[e,n])},onEnterCancelled(e){E(e,!1,void 0,!0),Oc(b,[e])},onAppearCancelled(e){E(e,!0,void 0,!0),Oc(T,[e])},onLeaveCancelled(e){D(e),Oc(S,[e])}})}function jc(e){if(e==null)return null;if(k(e))return[Mc(e.enter),Mc(e.leave)];{let t=Mc(e);return[t,t]}}function Mc(e){return ge(e)}function Nc(e,t){t.split(/\s+/).forEach(t=>t&&e.classList.add(t)),(e[wc]||(e[wc]=new Set)).add(t)}function Pc(e,t){t.split(/\s+/).forEach(t=>t&&e.classList.remove(t));let n=e[wc];n&&(n.delete(t),n.size||(e[wc]=void 0))}function Fc(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}var Ic=0;function Lc(e,t,n,r){let i=e._endId=++Ic,a=()=>{i===e._endId&&r()};if(n!=null)return setTimeout(a,n);let{type:o,timeout:s,propCount:c}=Rc(e,t);if(!o)return r();let l=o+`end`,u=0,d=()=>{e.removeEventListener(l,f),a()},f=t=>{t.target===e&&++u>=c&&d()};setTimeout(()=>{u(n[e]||``).split(`, `),i=r(`${Sc}Delay`),a=r(`${Sc}Duration`),o=zc(i,a),s=r(`${Cc}Delay`),c=r(`${Cc}Duration`),l=zc(s,c),u=null,d=0,f=0;t===Sc?o>0&&(u=Sc,d=o,f=a.length):t===Cc?l>0&&(u=Cc,d=l,f=c.length):(d=Math.max(o,l),u=d>0?o>l?Sc:Cc:null,f=u?u===Sc?a.length:c.length:0);let p=u===Sc&&/\b(?:transform|all)(?:,|$)/.test(r(`${Sc}Property`).toString());return{type:u,timeout:d,propCount:f,hasTransform:p}}function zc(e,t){for(;e.lengthBc(t)+Bc(e[n])))}function Bc(e){return e===`auto`?0:Number(e.slice(0,-1).replace(`,`,`.`))*1e3}function Vc(e){return(e?e.ownerDocument:document).body.offsetHeight}function Hc(e,t,n){let r=e[wc];r&&(t=(t?[t,...r]:[...r]).join(` `)),t==null?e.removeAttribute(`class`):n?e.setAttribute(`class`,t):e.className=t}var Uc=Symbol(`_vod`),Wc=Symbol(`_vsh`),Gc={name:`show`,beforeMount(e,{value:t},{transition:n}){e[Uc]=e.style.display===`none`?``:e.style.display,n&&t?n.beforeEnter(e):Kc(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!=!n&&(r?t?(r.beforeEnter(e),Kc(e,!0),r.enter(e)):r.leave(e,()=>{Kc(e,!1)}):Kc(e,t))},beforeUnmount(e,{value:t}){Kc(e,t)}};function Kc(e,t){e.style.display=t?e[Uc]:`none`,e[Wc]=!t}function qc(){Gc.getSSRProps=({value:e})=>{if(!e)return{style:{display:`none`}}}}var Jc=Symbol(``);function Yc(e){let t=Rs();if(!t)return;let n=t.ut=(n=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach(e=>Zc(e,n))},r=()=>{let r=e(t.proxy);t.ce?Zc(t.ce,r):Xc(t.subTree,r),n(r)};Bi(()=>{cr(r)}),zi(()=>{$a(r,p,{flush:`post`});let e=new MutationObserver(r);e.observe(t.subTree.el.parentNode,{childList:!0}),Ui(()=>e.disconnect())})}function Xc(e,t){if(e.shapeFlag&128){let n=e.suspense;e=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push(()=>{Xc(n.activeBranch,t)})}for(;e.component;)e=e.component.subTree;if(e.shapeFlag&1&&e.el)Zc(e.el,t);else if(e.type===R)e.children.forEach(e=>Xc(e,t));else if(e.type===ss){let{el:n,anchor:r}=e;for(;n&&(Zc(n,t),n!==r);)n=n.nextSibling}}function Zc(e,t){if(e.nodeType===1){let n=e.style,r=``;for(let e in t){let i=Ie(t[e]);n.setProperty(`--${e}`,i),r+=`--${e}: ${i};`}n[Jc]=r}}var Qc=/(?:^|;)\s*display\s*:/;function $c(e,t,n){let r=e.style,i=D(n),a=!1;if(n&&!i){if(t)if(D(t))for(let e of t.split(`;`)){let t=e.slice(0,e.indexOf(`:`)).trim();n[t]??tl(r,t,``)}else for(let e in t)n[e]??tl(r,e,``);for(let e in n)e===`display`&&(a=!0),tl(r,e,n[e])}else if(i){if(t!==n){let e=r[Jc];e&&(n+=`;`+e),r.cssText=n,a=Qc.test(n)}}else t&&e.removeAttribute(`style`);Uc in e&&(e[Uc]=a?r.display:``,e[Wc]&&(r.display=`none`))}var el=/\s*!important$/;function tl(e,t,n){if(x(n))n.forEach(n=>tl(e,t,n));else if(n??=``,t.startsWith(`--`))e.setProperty(t,n);else{let r=il(e,t);el.test(n)?e.setProperty(j(r),n.replace(el,``),`important`):e[r]=n}}var nl=[`Webkit`,`Moz`,`ms`],rl={};function il(e,t){let n=rl[t];if(n)return n;let r=A(t);if(r!==`filter`&&r in e)return rl[t]=r;r=ue(r);for(let n=0;nml||=(hl.then(()=>ml=0),Date.now());function _l(e,t){let n=e=>{if(!e._vts)e._vts=Date.now();else if(e._vts<=n.attached)return;Jn(vl(e,n.value),t,5,[e])};return n.value=e,n.attached=gl(),n}function vl(e,t){if(x(t)){let n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(e=>t=>!t._stopped&&e&&e(t))}else return t}var yl=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,bl=(e,t,n,r,i,a)=>{let o=i===`svg`;t===`class`?Hc(e,r,o):t===`style`?$c(e,n,r):h(t)?g(t)||dl(e,t,n,r,a):(t[0]===`.`?(t=t.slice(1),!0):t[0]===`^`?(t=t.slice(1),!1):xl(e,t,r,o))?(sl(e,t,r),!e.tagName.includes(`-`)&&(t===`value`||t===`checked`||t===`selected`)&&ol(e,t,r,o,a,t!==`value`)):e._isVueCE&&(/[A-Z]/.test(t)||!D(r))?sl(e,A(t),r,a,t):(t===`true-value`?e._trueValue=r:t===`false-value`&&(e._falseValue=r),ol(e,t,r,o))};function xl(e,t,n,r){if(r)return!!(t===`innerHTML`||t===`textContent`||t in e&&yl(t)&&E(n));if(t===`spellcheck`||t===`draggable`||t===`translate`||t===`autocorrect`||t===`sandbox`&&e.tagName===`IFRAME`||t===`form`||t===`list`&&e.tagName===`INPUT`||t===`type`&&e.tagName===`TEXTAREA`)return!1;if(t===`width`||t===`height`){let t=e.tagName;if(t===`IMG`||t===`VIDEO`||t===`CANVAS`||t===`SOURCE`)return!1}return yl(t)&&D(n)?!1:t in e}var Sl={};function Cl(e,t,n){let r=$r(e,t);ie(r)&&(r=_({},r,t));class i extends El{constructor(e){super(r,e,n)}}return i.def=r,i}var wl=((e,t)=>Cl(e,t,hu)),Tl=typeof HTMLElement<`u`?HTMLElement:class{},El=class e extends Tl{constructor(e,t={},n=mu){super(),this._def=e,this._props=t,this._createApp=n,this._isVueCE=!0,this._instance=null,this._app=null,this._nonce=this._def.nonce,this._connected=!1,this._resolved=!1,this._patching=!1,this._dirty=!1,this._numberProps=null,this._styleChildren=new WeakSet,this._ob=null,this.shadowRoot&&n!==mu?this._root=this.shadowRoot:e.shadowRoot===!1?this._root=this:(this.attachShadow(_({},e.shadowRootOptions,{mode:`open`})),this._root=this.shadowRoot)}connectedCallback(){if(!this.isConnected)return;!this.shadowRoot&&!this._resolved&&this._parseSlots(),this._connected=!0;let t=this;for(;t&&=t.parentNode||t.host;)if(t instanceof e){this._parent=t;break}this._instance||(this._resolved?this._mount(this._def):t&&t._pendingResolve?this._pendingResolve=t._pendingResolve.then(()=>{this._pendingResolve=void 0,this._resolveDef()}):this._resolveDef())}_setParent(e=this._parent){e&&(this._instance.parent=e._instance,this._inheritParentContext(e))}_inheritParentContext(e=this._parent){e&&this._app&&Object.setPrototypeOf(this._app._context.provides,e._instance.provides)}disconnectedCallback(){this._connected=!1,ir(()=>{this._connected||(this._ob&&=(this._ob.disconnect(),null),this._app&&this._app.unmount(),this._instance&&(this._instance.ce=void 0),this._app=this._instance=null,this._teleportTargets&&=(this._teleportTargets.clear(),void 0))})}_processMutations(e){for(let t of e)this._setAttr(t.attributeName)}_resolveDef(){if(this._pendingResolve)return;for(let e=0;e{this._resolved=!0,this._pendingResolve=void 0;let{props:n,styles:r}=e,i;if(n&&!x(n))for(let e in n){let t=n[e];(t===Number||t&&t.type===Number)&&(e in this._props&&(this._props[e]=ge(this._props[e])),(i||=Object.create(null))[A(e)]=!0)}this._numberProps=i,this._resolveProps(e),this.shadowRoot&&this._applyStyles(r),this._mount(e)},t=this._def.__asyncLoader;t?this._pendingResolve=t().then(t=>{t.configureApp=this._def.configureApp,e(this._def=t,!0)}):e(this._def)}_mount(e){this._app=this._createApp(e),this._inheritParentContext(),e.configureApp&&e.configureApp(this._app),this._app._ceVNode=this._createVNode(),this._app.mount(this._root);let t=this._instance&&this._instance.exposed;if(t)for(let e in t)b(this,e)||Object.defineProperty(this,e,{get:()=>I(t[e])})}_resolveProps(e){let{props:t}=e,n=x(t)?t:Object.keys(t||{});for(let e of Object.keys(this))e[0]!==`_`&&n.includes(e)&&this._setProp(e,this[e]);for(let e of n.map(A))Object.defineProperty(this,e,{get(){return this._getProp(e)},set(t){this._setProp(e,t,!0,!this._patching)}})}_setAttr(e){if(e.startsWith(`data-v-`))return;let t=this.hasAttribute(e),n=t?this.getAttribute(e):Sl,r=A(e);t&&this._numberProps&&this._numberProps[r]&&(n=ge(n)),this._setProp(r,n,!1,!0)}_getProp(e){return this._props[e]}_setProp(e,t,n=!0,r=!1){if(t!==this._props[e]&&(this._dirty=!0,t===Sl?delete this._props[e]:(this._props[e]=t,e===`key`&&this._app&&(this._app._ceVNode.key=t)),r&&this._instance&&this._update(),n)){let n=this._ob;n&&(this._processMutations(n.takeRecords()),n.disconnect()),t===!0?this.setAttribute(j(e),``):typeof t==`string`||typeof t==`number`?this.setAttribute(j(e),t+``):t||this.removeAttribute(j(e)),n&&n.observe(this,{attributes:!0})}}_update(){let e=this._createVNode();this._app&&(e.appContext=this._app._context),fu(e,this._root)}_createVNode(){let e={};this.shadowRoot||(e.onVnodeMounted=e.onVnodeUpdated=this._renderSlots.bind(this));let t=z(this._def,_(e,this._props));return this._instance||(t.ce=e=>{this._instance=e,e.ce=this,e.isCE=!0;let t=(e,t)=>{this.dispatchEvent(new CustomEvent(e,ie(t[0])?_({detail:t},t[0]):{detail:t}))};e.emit=(e,...n)=>{t(e,n),j(e)!==e&&t(j(e),n)},this._setParent()}),t}_applyStyles(e,t){if(!e)return;if(t){if(t===this._def||this._styleChildren.has(t))return;this._styleChildren.add(t)}let n=this._nonce;for(let t=e.length-1;t>=0;t--){let r=document.createElement(`style`);n&&r.setAttribute(`nonce`,n),r.textContent=e[t],this.shadowRoot.prepend(r)}}_parseSlots(){let e=this._slots={},t;for(;t=this.firstChild;){let n=t.nodeType===1&&t.getAttribute(`slot`)||`default`;(e[n]||(e[n]=[])).push(t),this.removeChild(t)}}_renderSlots(){let e=this._getSlots(),t=this._instance.type.__scopeId;for(let n=0;n(delete e.props.mode,e))({name:`TransitionGroup`,props:_({},Ec,{tag:String,moveClass:String}),setup(e,{slots:t}){let n=Rs(),r=Br(),i,a;return Vi(()=>{if(!i.length)return;let t=e.moveClass||`${e.name||`v`}-move`;if(!Rl(i[0].el,n.vnode.el,t)){i=[];return}i.forEach(Fl),i.forEach(Il);let r=i.filter(Ll);Vc(n.vnode.el),r.forEach(e=>{let n=e.el,r=n.style;Nc(n,t),r.transform=r.webkitTransform=r.transitionDuration=``;let i=n[Ml]=e=>{e&&e.target!==n||(!e||e.propertyName.endsWith(`transform`))&&(n.removeEventListener(`transitionend`,i),n[Ml]=null,Pc(n,t))};n.addEventListener(`transitionend`,i)}),i=[]}),()=>{let o=P(e),s=Ac(o),c=o.tag||R;if(i=[],a)for(let e=0;e{e.split(/\s+/).forEach(e=>e&&r.classList.remove(e))}),n.split(/\s+/).forEach(e=>e&&r.classList.add(e)),r.style.display=`none`;let a=t.nodeType===1?t:t.parentNode;a.appendChild(r);let{hasTransform:o}=Rc(r);return a.removeChild(r),o}var zl=e=>{let t=e.props[`onUpdate:modelValue`]||!1;return x(t)?e=>pe(t,e):t};function Bl(e){e.target.composing=!0}function Vl(e){let t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event(`input`)))}var Hl=Symbol(`_assign`);function Ul(e,t,n){return t&&(e=e.trim()),n&&(e=he(e)),e}var Wl={created(e,{modifiers:{lazy:t,trim:n,number:r}},i){e[Hl]=zl(i);let a=r||i.props&&i.props.type===`number`;cl(e,t?`change`:`input`,t=>{t.target.composing||e[Hl](Ul(e.value,n,a))}),(n||a)&&cl(e,`change`,()=>{e.value=Ul(e.value,n,a)}),t||(cl(e,`compositionstart`,Bl),cl(e,`compositionend`,Vl),cl(e,`change`,Vl))},mounted(e,{value:t}){e.value=t??``},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:r,trim:i,number:a}},o){if(e[Hl]=zl(o),e.composing)return;let s=(a||e.type===`number`)&&!/^0\d/.test(e.value)?he(e.value):e.value,c=t??``;s!==c&&(document.activeElement===e&&e.type!==`range`&&(r&&t===n||i&&e.value.trim()===c)||(e.value=c))}},Gl={deep:!0,created(e,t,n){e[Hl]=zl(n),cl(e,`change`,()=>{let t=e._modelValue,n=Xl(e),r=e.checked,i=e[Hl];if(x(t)){let e=je(t,n),a=e!==-1;if(r&&!a)i(t.concat(n));else if(!r&&a){let n=[...t];n.splice(e,1),i(n)}}else if(C(t)){let e=new Set(t);r?e.add(n):e.delete(n),i(e)}else i(Zl(e,r))})},mounted:Kl,beforeUpdate(e,t,n){e[Hl]=zl(n),Kl(e,t,n)}};function Kl(e,{value:t,oldValue:n},r){e._modelValue=t;let i;if(x(t))i=je(t,r.props.value)>-1;else if(C(t))i=t.has(r.props.value);else{if(t===n)return;i=Ae(t,Zl(e,!0))}e.checked!==i&&(e.checked=i)}var ql={created(e,{value:t},n){e.checked=Ae(t,n.props.value),e[Hl]=zl(n),cl(e,`change`,()=>{e[Hl](Xl(e))})},beforeUpdate(e,{value:t,oldValue:n},r){e[Hl]=zl(r),t!==n&&(e.checked=Ae(t,r.props.value))}},Jl={deep:!0,created(e,{value:t,modifiers:{number:n}},r){let i=C(t);cl(e,`change`,()=>{let t=Array.prototype.filter.call(e.options,e=>e.selected).map(e=>n?he(Xl(e)):Xl(e));e[Hl](e.multiple?i?new Set(t):t:t[0]),e._assigning=!0,ir(()=>{e._assigning=!1})}),e[Hl]=zl(r)},mounted(e,{value:t}){Yl(e,t)},beforeUpdate(e,t,n){e[Hl]=zl(n)},updated(e,{value:t}){e._assigning||Yl(e,t)}};function Yl(e,t){let n=e.multiple,r=x(t);if(!(n&&!r&&!C(t))){for(let i=0,a=e.options.length;iString(e)===String(o)):a.selected=je(t,o)>-1}else a.selected=t.has(o);else if(Ae(Xl(a),t)){e.selectedIndex!==i&&(e.selectedIndex=i);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Xl(e){return`_value`in e?e._value:e.value}function Zl(e,t){let n=t?`_trueValue`:`_falseValue`;return n in e?e[n]:t}var Ql={created(e,t,n){eu(e,t,n,null,`created`)},mounted(e,t,n){eu(e,t,n,null,`mounted`)},beforeUpdate(e,t,n,r){eu(e,t,n,r,`beforeUpdate`)},updated(e,t,n,r){eu(e,t,n,r,`updated`)}};function $l(e,t){switch(e){case`SELECT`:return Jl;case`TEXTAREA`:return Wl;default:switch(t){case`checkbox`:return Gl;case`radio`:return ql;default:return Wl}}}function eu(e,t,n,r,i){let a=$l(e.tagName,n.props&&n.props.type)[i];a&&a(e,t,n,r)}function tu(){Wl.getSSRProps=({value:e})=>({value:e}),ql.getSSRProps=({value:e},t)=>{if(t.props&&Ae(t.props.value,e))return{checked:!0}},Gl.getSSRProps=({value:e},t)=>{if(x(e)){if(t.props&&je(e,t.props.value)>-1)return{checked:!0}}else if(C(e)){if(t.props&&e.has(t.props.value))return{checked:!0}}else if(e)return{checked:!0}},Ql.getSSRProps=(e,t)=>{if(typeof t.type!=`string`)return;let n=$l(t.type.toUpperCase(),t.props&&t.props.type);if(n.getSSRProps)return n.getSSRProps(e,t)}}var nu=[`ctrl`,`shift`,`alt`,`meta`],ru={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>`button`in e&&e.button!==0,middle:e=>`button`in e&&e.button!==1,right:e=>`button`in e&&e.button!==2,exact:(e,t)=>nu.some(n=>e[`${n}Key`]&&!t.includes(n))},iu=(e,t)=>{let n=e._withMods||={},r=t.join(`.`);return n[r]||(n[r]=((n,...r)=>{for(let e=0;e{let n=e._withKeys||={},r=t.join(`.`);return n[r]||(n[r]=(n=>{if(!(`key`in n))return;let r=j(n.key);if(t.some(e=>e===r||au[e]===r))return e(n)}))},su=_({patchProp:bl},xc),cu,lu=!1;function uu(){return cu||=Io(su)}function du(){return cu=lu?cu:Lo(su),lu=!0,cu}var fu=((...e)=>{uu().render(...e)}),pu=((...e)=>{du().hydrate(...e)}),mu=((...e)=>{let t=uu().createApp(...e),{mount:n}=t;return t.mount=e=>{let r=_u(e);if(!r)return;let i=t._component;!E(i)&&!i.render&&!i.template&&(i.template=r.innerHTML),r.nodeType===1&&(r.textContent=``);let a=n(r,!1,gu(r));return r instanceof Element&&(r.removeAttribute(`v-cloak`),r.setAttribute(`data-v-app`,``)),a},t}),hu=((...e)=>{let t=du().createApp(...e),{mount:n}=t;return t.mount=e=>{let t=_u(e);if(t)return n(t,!0,gu(t))},t});function gu(e){if(e instanceof SVGElement)return`svg`;if(typeof MathMLElement==`function`&&e instanceof MathMLElement)return`mathml`}function _u(e){return D(e)?document.querySelector(e):e}var vu=!1,yu=()=>{vu||(vu=!0,tu(),qc())},bu=s({BaseTransition:()=>Kr,BaseTransitionPropsValidators:()=>Hr,Comment:()=>os,DeprecationTypes:()=>null,EffectScope:()=>Re,ErrorCodes:()=>Gn,ErrorTypeStrings:()=>uc,Fragment:()=>R,KeepAlive:()=>Oi,ReactiveEffect:()=>Ue,Static:()=>ss,Suspense:()=>Jo,Teleport:()=>Fr,Text:()=>as,TrackOpTypes:()=>Mn,Transition:()=>Dc,TransitionGroup:()=>Pl,TriggerOpTypes:()=>Nn,VueElement:()=>El,assertNumber:()=>Wn,callWithAsyncErrorHandling:()=>Jn,callWithErrorHandling:()=>qn,camelize:()=>A,capitalize:()=>ue,cloneVNode:()=>Ts,compatUtils:()=>null,compile:()=>xu,computed:()=>B,createApp:()=>mu,createBlock:()=>gs,createCommentVNode:()=>Os,createElementBlock:()=>hs,createElementVNode:()=>Ss,createHydrationRenderer:()=>Lo,createPropsRestProxy:()=>Ta,createRenderer:()=>Io,createSSRApp:()=>hu,createSlots:()=>ra,createStaticVNode:()=>Ds,createTextVNode:()=>Es,createVNode:()=>z,customRef:()=>wn,defineAsyncComponent:()=>Ti,defineComponent:()=>$r,defineCustomElement:()=>Cl,defineEmits:()=>pa,defineExpose:()=>ma,defineModel:()=>_a,defineOptions:()=>ha,defineProps:()=>fa,defineSSRCustomElement:()=>wl,defineSlots:()=>ga,devtools:()=>dc,effect:()=>nt,effectScope:()=>ze,getCurrentInstance:()=>Rs,getCurrentScope:()=>Be,getCurrentWatcher:()=>Ln,getTransitionRawChildren:()=>Qr,guardReactiveProps:()=>ws,h:()=>ic,handleError:()=>Yn,hasInjectionContext:()=>qa,hydrate:()=>pu,hydrateOnIdle:()=>vi,hydrateOnInteraction:()=>Si,hydrateOnMediaQuery:()=>xi,hydrateOnVisible:()=>bi,initCustomFormatter:()=>ac,initDirectivesForSSR:()=>yu,inject:()=>L,isMemoSame:()=>sc,isProxy:()=>dn,isReactive:()=>cn,isReadonly:()=>ln,isRef:()=>F,isRuntimeOnly:()=>Zs,isShallow:()=>un,isVNode:()=>_s,markRaw:()=>fn,mergeDefaults:()=>Ca,mergeModels:()=>wa,mergeProps:()=>Ms,nextTick:()=>ir,nodeOps:()=>xc,normalizeClass:()=>M,normalizeProps:()=>Te,normalizeStyle:()=>be,onActivated:()=>Ai,onBeforeMount:()=>Ri,onBeforeUnmount:()=>Hi,onBeforeUpdate:()=>Bi,onDeactivated:()=>ji,onErrorCaptured:()=>qi,onMounted:()=>zi,onRenderTracked:()=>Ki,onRenderTriggered:()=>Gi,onScopeDispose:()=>Ve,onServerPrefetch:()=>Wi,onUnmounted:()=>Ui,onUpdated:()=>Vi,onWatcherCleanup:()=>Rn,openBlock:()=>us,patchProp:()=>bl,popScopeId:()=>br,provide:()=>Ka,proxyRefs:()=>Sn,pushScopeId:()=>yr,queuePostFlushCb:()=>cr,reactive:()=>nn,readonly:()=>an,ref:()=>hn,registerRuntimeCompiler:()=>Xs,render:()=>fu,renderList:()=>na,renderSlot:()=>ia,resolveComponent:()=>Xi,resolveDirective:()=>$i,resolveDynamicComponent:()=>Qi,resolveFilter:()=>null,resolveTransitionHooks:()=>Jr,setBlockTracking:()=>ps,setDevtoolsHook:()=>fc,setTransitionHooks:()=>Zr,shallowReactive:()=>rn,shallowReadonly:()=>on,shallowRef:()=>gn,ssrContextKey:()=>Ja,ssrUtils:()=>pc,stop:()=>rt,toDisplayString:()=>Ne,toHandlerKey:()=>de,toHandlers:()=>oa,toRaw:()=>P,toRef:()=>On,toRefs:()=>Tn,toValue:()=>bn,transformVNodeArgs:()=>ys,triggerRef:()=>yn,unref:()=>I,useAttrs:()=>ba,useCssModule:()=>kl,useCssVars:()=>Yc,useHost:()=>Dl,useId:()=>ei,useModel:()=>ro,useSSRContext:()=>Ya,useShadowRoot:()=>Ol,useSlots:()=>ya,useTemplateRef:()=>ni,useTransitionState:()=>Br,vModelCheckbox:()=>Gl,vModelDynamic:()=>Ql,vModelRadio:()=>ql,vModelSelect:()=>Jl,vModelText:()=>Wl,vShow:()=>Gc,version:()=>cc,warn:()=>lc,watch:()=>$a,watchEffect:()=>Xa,watchPostEffect:()=>Za,watchSyncEffect:()=>Qa,withAsyncContext:()=>Ea,withCtx:()=>Sr,withDefaults:()=>va,withDirectives:()=>Cr,withKeys:()=>ou,withMemo:()=>oc,withModifiers:()=>iu,withScopeId:()=>xr},1),xu=()=>{},Su=/"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/,Cu=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/,wu=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function Tu(e,t){if(e===`__proto__`||e===`constructor`&&t&&typeof t==`object`&&`prototype`in t){Eu(e);return}return t}function Eu(e){console.warn(`[destr] Dropping "${e}" key to prevent prototype pollution.`)}function Du(e,t={}){if(typeof e!=`string`)return e;if(e[0]===`"`&&e[e.length-1]===`"`&&e.indexOf(`\\`)===-1)return e.slice(1,-1);let n=e.trim();if(n.length<=9)switch(n.toLowerCase()){case`true`:return!0;case`false`:return!1;case`undefined`:return;case`null`:return null;case`nan`:return NaN;case`infinity`:return 1/0;case`-infinity`:return-1/0}if(!wu.test(e)){if(t.strict)throw SyntaxError(`[destr] Invalid JSON`);return e}try{if(Su.test(e)||Cu.test(e)){if(t.strict)throw Error(`[destr] Possible prototype pollution`);return JSON.parse(e,Tu)}return JSON.parse(e)}catch(n){if(t.strict)throw n;return e}}String.fromCharCode;var Ou=/#/g,ku=/&/g,Au=/\//g,ju=/=/g,Mu=/\+/g,Nu=/%5e/gi,Pu=/%60/gi,Fu=/%7c/gi,Iu=/%20/gi;function Lu(e){return encodeURI(``+e).replace(Fu,`|`)}function Ru(e){return Lu(typeof e==`string`?e:JSON.stringify(e)).replace(Mu,`%2B`).replace(Iu,`+`).replace(Ou,`%23`).replace(ku,`%26`).replace(Pu,"`").replace(Nu,`^`).replace(Au,`%2F`)}function zu(e){return Ru(e).replace(ju,`%3D`)}function Bu(e=``){try{return decodeURIComponent(``+e)}catch{return``+e}}function Vu(e){return Bu(e.replace(Mu,` `))}function Hu(e){return Bu(e.replace(Mu,` `))}function Uu(e=``){let t=Object.create(null);e[0]===`?`&&(e=e.slice(1));for(let n of e.split(`&`)){let e=n.match(/([^=]+)=?(.*)/)||[];if(e.length<2)continue;let r=Vu(e[1]);if(r===`__proto__`||r===`constructor`)continue;let i=Hu(e[2]||``);t[r]===void 0?t[r]=i:Array.isArray(t[r])?t[r].push(i):t[r]=[t[r],i]}return t}function Wu(e,t){return(typeof t==`number`||typeof t==`boolean`)&&(t=String(t)),t?Array.isArray(t)?t.map(t=>`${zu(e)}=${Ru(t)}`).join(`&`):`${zu(e)}=${Ru(t)}`:zu(e)}function Gu(e){return Object.keys(e).filter(t=>e[t]!==void 0).map(t=>Wu(t,e[t])).filter(Boolean).join(`&`)}var Ku=/^[\s\w\0+.-]{2,}:([/\\]{1,2})/,qu=/^[\s\w\0+.-]{2,}:([/\\]{2})?/,Ju=/^([/\\]\s*){2,}[^/\\]/,Yu=/^[\s\0]*(blob|data|javascript|vbscript):$/i,Xu=/\/$|\/\?|\/#/,Zu=/^\.?\//;function Qu(e,t={}){return typeof t==`boolean`&&(t={acceptRelative:t}),t.strict?Ku.test(e):qu.test(e)||(t.acceptRelative?Ju.test(e):!1)}function $u(e){return!!e&&Yu.test(e)}function ed(e=``,t){return t?Xu.test(e):e.endsWith(`/`)}function td(e=``,t){if(!t)return(ed(e)?e.slice(0,-1):e)||`/`;if(!ed(e,!0))return e||`/`;let n=e,r=``,i=e.indexOf(`#`);i!==-1&&(n=e.slice(0,i),r=e.slice(i));let[a,...o]=n.split(`?`);return((a.endsWith(`/`)?a.slice(0,-1):a)||`/`)+(o.length>0?`?${o.join(`?`)}`:``)+r}function nd(e=``,t){if(!t)return e.endsWith(`/`)?e:e+`/`;if(ed(e,!0))return e||`/`;let n=e,r=``,i=e.indexOf(`#`);if(i!==-1&&(n=e.slice(0,i),r=e.slice(i),!n))return r;let[a,...o]=n.split(`?`);return a+`/`+(o.length>0?`?${o.join(`?`)}`:``)+r}function rd(e,t){if(od(t)||Qu(e))return e;let n=td(t);return e.startsWith(n)?e:cd(n,e)}function id(e,t){if(od(t))return e;let n=td(t);if(!e.startsWith(n))return e;let r=e.slice(n.length);return r[0]===`/`?r:`/`+r}function ad(e,t){let n=fd(e);return n.search=Gu({...Uu(n.search),...t}),md(n)}function od(e){return!e||e===`/`}function sd(e){return e&&e!==`/`}function cd(e,...t){let n=e||``;for(let e of t.filter(e=>sd(e)))if(n){let t=e.replace(Zu,``);n=nd(n)+t}else n=e;return n}function ld(...e){let t=/\/(?!\/)/,n=e.filter(Boolean),r=[],i=0;for(let e of n)if(!(!e||e===`/`)){for(let[n,a]of e.split(t).entries())if(!(!a||a===`.`)){if(a===`..`){if(r.length===1&&Qu(r[0]))continue;r.pop(),i--;continue}if(n===1&&r[r.length-1]?.endsWith(`:/`)){r[r.length-1]+=`/`+a;continue}r.push(a),i++}}let a=r.join(`/`);return i>=0?n[0]?.startsWith(`/`)&&!a.startsWith(`/`)?a=`/`+a:n[0]?.startsWith(`./`)&&!a.startsWith(`./`)&&(a=`./`+a):a=`../`.repeat(-1*i)+a,n[n.length-1]?.endsWith(`/`)&&!a.endsWith(`/`)&&(a+=`/`),a}function ud(e,t){return Bu(td(e))===Bu(td(t))}var dd=Symbol.for(`ufo:protocolRelative`);function fd(e=``,t){let n=e.match(/^[\s\0]*(blob:|data:|javascript:|vbscript:)(.*)/i);if(n){let[,e,t=``]=n;return{protocol:e.toLowerCase(),pathname:t,href:e+t,auth:``,host:``,search:``,hash:``}}if(!Qu(e,{acceptRelative:!0}))return t?fd(t+e):pd(e);let[,r=``,i,a=``]=e.replace(/\\/g,`/`).match(/^[\s\0]*([\w+.-]{2,}:)?\/\/([^/@]+@)?(.*)/)||[],[,o=``,s=``]=a.match(/([^#/?]*)(.*)?/)||[];r===`file:`&&(s=s.replace(/\/(?=[A-Za-z]:)/,``));let{pathname:c,search:l,hash:u}=pd(s);return{protocol:r.toLowerCase(),auth:i?i.slice(0,Math.max(0,i.length-1)):``,host:o,pathname:c,search:l,hash:u,[dd]:!r}}function pd(e=``){let[t=``,n=``,r=``]=(e.match(/([^#?]*)(\?[^#]*)?(#.*)?/)||[]).splice(1);return{pathname:t,search:n,hash:r}}function md(e){let t=e.pathname||``,n=e.search?(e.search.startsWith(`?`)?``:`?`)+e.search:``,r=e.hash||``,i=e.auth?e.auth+`@`:``,a=e.host||``;return(e.protocol||e[dd]?(e.protocol||``)+`//`:``)+i+a+t+n+r}var hd=class extends Error{constructor(e,t){super(e,t),this.name=`FetchError`,t?.cause&&!this.cause&&(this.cause=t.cause)}};function gd(e){let t=e.error?.message||e.error?.toString()||``,n=e.request?.method||e.options?.method||`GET`,r=e.request?.url||String(e.request)||`/`,i=new hd(`${`[${n}] ${JSON.stringify(r)}`}: ${e.response?`${e.response.status} ${e.response.statusText}`:``}${t?` ${t}`:``}`,e.error?{cause:e.error}:void 0);for(let t of[`request`,`options`,`response`])Object.defineProperty(i,t,{get(){return e[t]}});for(let[t,n]of[[`data`,`_data`],[`status`,`status`],[`statusCode`,`status`],[`statusText`,`statusText`],[`statusMessage`,`statusText`]])Object.defineProperty(i,t,{get(){return e.response&&e.response[n]}});return i}var _d=new Set(Object.freeze([`PATCH`,`POST`,`PUT`,`DELETE`]));function vd(e=`GET`){return _d.has(e.toUpperCase())}function yd(e){if(e===void 0)return!1;let t=typeof e;return t===`string`||t===`number`||t===`boolean`||t===null?!0:t===`object`?Array.isArray(e)?!0:e.buffer||e instanceof FormData||e instanceof URLSearchParams?!1:e.constructor&&e.constructor.name===`Object`||typeof e.toJSON==`function`:!1}var bd=new Set([`image/svg`,`application/xml`,`application/xhtml`,`application/html`]),xd=/^application\/(?:[\w!#$%&*.^`~-]*\+)?json(;.+)?$/i;function Sd(e=``){if(!e)return`json`;let t=e.split(`;`).shift()||``;return xd.test(t)?`json`:t===`text/event-stream`?`stream`:bd.has(t)||t.startsWith(`text/`)?`text`:`blob`}function Cd(e,t,n,r){let i=wd(t?.headers??e?.headers,n?.headers,r),a;return(n?.query||n?.params||t?.params||t?.query)&&(a={...n?.params,...n?.query,...t?.params,...t?.query}),{...n,...t,query:a,params:a,headers:i}}function wd(e,t,n){if(!t)return new n(e);let r=new n(t);if(e)for(let[t,i]of Symbol.iterator in e||Array.isArray(e)?e:new n(e))r.set(t,i);return r}async function Td(e,t){if(t)if(Array.isArray(t))for(let n of t)await n(e);else await t(e)}var Ed=new Set([408,409,425,429,500,502,503,504]),Dd=new Set([101,204,205,304]);function Od(e={}){let{fetch:t=globalThis.fetch,Headers:n=globalThis.Headers,AbortController:r=globalThis.AbortController}=e;async function i(e){let t=e.error&&e.error.name===`AbortError`&&!e.options.timeout||!1;if(e.options.retry!==!1&&!t){let t;t=typeof e.options.retry==`number`?e.options.retry:vd(e.options.method)?0:1;let n=e.response&&e.response.status||500;if(t>0&&(Array.isArray(e.options.retryStatusCodes)?e.options.retryStatusCodes.includes(n):Ed.has(n))){let n=typeof e.options.retryDelay==`function`?e.options.retryDelay(e):e.options.retryDelay||0;return n>0&&await new Promise(e=>setTimeout(e,n)),a(e.request,{...e.options,retry:t-1})}}let n=gd(e);throw Error.captureStackTrace&&Error.captureStackTrace(n,a),n}let a=async function(a,o={}){let s={request:a,options:Cd(a,o,e.defaults,n),response:void 0,error:void 0};if(s.options.method&&(s.options.method=s.options.method.toUpperCase()),s.options.onRequest&&(await Td(s,s.options.onRequest),s.options.headers instanceof n||(s.options.headers=new n(s.options.headers||{}))),typeof s.request==`string`&&(s.options.baseURL&&(s.request=rd(s.request,s.options.baseURL)),s.options.query&&(s.request=ad(s.request,s.options.query),delete s.options.query),`query`in s.options&&delete s.options.query,`params`in s.options&&delete s.options.params),s.options.body&&vd(s.options.method))if(yd(s.options.body)){let e=s.options.headers.get(`content-type`);typeof s.options.body!=`string`&&(s.options.body=e===`application/x-www-form-urlencoded`?new URLSearchParams(s.options.body).toString():JSON.stringify(s.options.body)),e||s.options.headers.set(`content-type`,`application/json`),s.options.headers.has(`accept`)||s.options.headers.set(`accept`,`application/json`)}else (`pipeTo`in s.options.body&&typeof s.options.body.pipeTo==`function`||typeof s.options.body.pipe==`function`)&&(`duplex`in s.options||(s.options.duplex=`half`));let c;if(!s.options.signal&&s.options.timeout){let e=new r;c=setTimeout(()=>{let t=Error(`[TimeoutError]: The operation was aborted due to timeout`);t.name=`TimeoutError`,t.code=23,e.abort(t)},s.options.timeout),s.options.signal=e.signal}try{s.response=await t(s.request,s.options)}catch(e){return s.error=e,s.options.onRequestError&&await Td(s,s.options.onRequestError),await i(s)}finally{c&&clearTimeout(c)}if((s.response.body||s.response._bodyInit)&&!Dd.has(s.response.status)&&s.options.method!==`HEAD`){let e=(s.options.parseResponse?`json`:s.options.responseType)||Sd(s.response.headers.get(`content-type`)||``);switch(e){case`json`:{let e=await s.response.text(),t=s.options.parseResponse||Du;s.response._data=t(e);break}case`stream`:s.response._data=s.response.body||s.response._bodyInit;break;default:s.response._data=await s.response[e]()}}return s.options.onResponse&&await Td(s,s.options.onResponse),!s.options.ignoreResponseError&&s.response.status>=400&&s.response.status<600?(s.options.onResponseError&&await Td(s,s.options.onResponseError),await i(s)):s.response},o=async function(e,t){return(await a(e,t))._data};return o.raw=a,o.native=(...e)=>t(...e),o.create=(t={},n={})=>Od({...e,...n,defaults:{...e.defaults,...n.defaults,...t}}),o}var kd=(function(){if(typeof globalThis<`u`)return globalThis;if(typeof self<`u`)return self;if(typeof window<`u`)return window;if(typeof global<`u`)return global;throw Error(`unable to locate global object`)})(),Ad=kd.fetch?(...e)=>kd.fetch(...e):()=>Promise.reject(Error(`[ofetch] global.fetch is not supported!`)),jd=kd.Headers,Md=kd.AbortController,Nd=Od({fetch:Ad,Headers:jd,AbortController:Md});const Pd=()=>window?.__NUXT__?.config||window?.useNuxtApp?.().payload?.config;var Fd=()=>Pd().app;const Id=()=>Fd().baseURL,Ld=()=>Fd().buildAssetsDir,Rd=(...e)=>ld(zd(),Ld(),...e),zd=(...e)=>{let t=Fd(),n=t.cdnURL||t.baseURL;return e.length?ld(n,...e):n};globalThis.__buildAssetsURL=Rd,globalThis.__publicAssetsURL=zd,globalThis.$fetch||(globalThis.$fetch=Nd.create({baseURL:Id()})),`global`in globalThis||(globalThis.global=globalThis);function Bd(e,t={},n){for(let r in e){let i=e[r],a=n?`${n}:${r}`:r;typeof i==`object`&&i?Bd(i,t,a):typeof i==`function`&&(t[a]=i)}return t}var Vd={run:e=>e()},Hd=console.createTask===void 0?()=>Vd:console.createTask;function Ud(e,t){let n=Hd(t.shift());return e.reduce((e,r)=>e.then(()=>n.run(()=>r(...t))),Promise.resolve())}function Wd(e,t){let n=Hd(t.shift());return Promise.all(e.map(e=>n.run(()=>e(...t))))}function Gd(e,t){for(let n of[...e])n(t)}var Kd=class{constructor(){this._hooks={},this._before=void 0,this._after=void 0,this._deprecatedMessages=void 0,this._deprecatedHooks={},this.hook=this.hook.bind(this),this.callHook=this.callHook.bind(this),this.callHookWith=this.callHookWith.bind(this)}hook(e,t,n={}){if(!e||typeof t!=`function`)return()=>{};let r=e,i;for(;this._deprecatedHooks[e];)i=this._deprecatedHooks[e],e=i.to;if(i&&!n.allowDeprecated){let e=i.message;e||=`${r} hook has been deprecated`+(i.to?`, please use ${i.to}`:``),this._deprecatedMessages||=new Set,this._deprecatedMessages.has(e)||(console.warn(e),this._deprecatedMessages.add(e))}if(!t.name)try{Object.defineProperty(t,`name`,{get:()=>`_`+e.replace(/\W+/g,`_`)+`_hook_cb`,configurable:!0})}catch{}return this._hooks[e]=this._hooks[e]||[],this._hooks[e].push(t),()=>{t&&=(this.removeHook(e,t),void 0)}}hookOnce(e,t){let n,r=(...e)=>(typeof n==`function`&&n(),n=void 0,r=void 0,t(...e));return n=this.hook(e,r),n}removeHook(e,t){if(this._hooks[e]){let n=this._hooks[e].indexOf(t);n!==-1&&this._hooks[e].splice(n,1),this._hooks[e].length===0&&delete this._hooks[e]}}deprecateHook(e,t){this._deprecatedHooks[e]=typeof t==`string`?{to:t}:t;let n=this._hooks[e]||[];delete this._hooks[e];for(let t of n)this.hook(e,t)}deprecateHooks(e){for(let t in Object.assign(this._deprecatedHooks,e),e)this.deprecateHook(t,e[t])}addHooks(e){let t=Bd(e),n=Object.keys(t).map(e=>this.hook(e,t[e]));return()=>{for(let e of n.splice(0,n.length))e()}}removeHooks(e){let t=Bd(e);for(let e in t)this.removeHook(e,t[e])}removeAllHooks(){for(let e in this._hooks)delete this._hooks[e]}callHook(e,...t){return t.unshift(e),this.callHookWith(Ud,e,...t)}callHookParallel(e,...t){return t.unshift(e),this.callHookWith(Wd,e,...t)}callHookWith(e,t,...n){let r=this._before||this._after?{name:t,args:n,context:{}}:void 0;this._before&&Gd(this._before,r);let i=e(t in this._hooks?[...this._hooks[t]]:[],n);return i instanceof Promise?i.finally(()=>{this._after&&r&&Gd(this._after,r)}):(this._after&&r&&Gd(this._after,r),i)}beforeEach(e){return this._before=this._before||[],this._before.push(e),()=>{if(this._before!==void 0){let t=this._before.indexOf(e);t!==-1&&this._before.splice(t,1)}}}afterEach(e){return this._after=this._after||[],this._after.push(e),()=>{if(this._after!==void 0){let t=this._after.indexOf(e);t!==-1&&this._after.splice(t,1)}}}};function qd(){return new Kd}function Jd(e={}){let t,n=!1,r=e=>{if(t&&t!==e)throw Error(`Context conflict`)},i;if(e.asyncContext){let t=e.AsyncLocalStorage||globalThis.AsyncLocalStorage;t?i=new t:console.warn("[unctx] `AsyncLocalStorage` is not provided.")}let a=()=>{if(i){let e=i.getStore();if(e!==void 0)return e}return t};return{use:()=>{let e=a();if(e===void 0)throw Error(`Context is not available`);return e},tryUse:()=>a(),set:(e,i)=>{i||r(e),t=e,n=!0},unset:()=>{t=void 0,n=!1},call:(e,a)=>{r(e),t=e;try{return i?i.run(e,a):a()}finally{n||(t=void 0)}},async callAsync(e,r){t=e;let a=()=>{t=e},o=()=>t===e?a:void 0;tf.add(o);try{let a=i?i.run(e,r):r();return n||(t=void 0),await a}finally{tf.delete(o)}}}}function Yd(e={}){let t={};return{get(n,r={}){return t[n]||(t[n]=Jd({...e,...r})),t[n]}}}var Xd=typeof globalThis<`u`?globalThis:typeof self<`u`?self:typeof global<`u`?global:typeof window<`u`?window:{},Zd=`__unctx__`,Qd=Xd[Zd]||(Xd[Zd]=Yd()),$d=(e,t={})=>Qd.get(e,t),ef=`__unctx_async_handlers__`,tf=Xd[ef]||(Xd[ef]=new Set);function nf(e){let t=[];for(let e of tf){let n=e();n&&t.push(n)}let n=()=>{for(let e of t)e()},r=e();return r&&typeof r==`object`&&`catch`in r&&(r=r.catch(e=>{throw n(),e})),[r,n]}const rf={id:`__nuxt-loader`},af={componentName:`NuxtLink`,prefetch:!0,prefetchOn:{visibility:!0}},of=36e5;function sf(e=`nuxt-app`){return $d(e,{asyncContext:!1})}function cf(e){let t=0,n={_id:e.id||`nuxt-app`,_scope:ze(),provide:void 0,versions:{get nuxt(){return`4.2.2`},get vue(){return n.vueApp.version}},payload:rn({...e.ssrContext?.payload||{},data:rn({}),state:nn({}),once:new Set,_errors:rn({})}),static:{data:{}},runWithContext(e){return n._scope.active&&!Be()?n._scope.run(()=>mf(n,e)):mf(n,e)},isHydrating:!0,deferHydration(){if(!n.isHydrating)return()=>{};t++;let e=!1;return()=>{if(!e&&(e=!0,t--,t===0))return n.isHydrating=!1,n.callHook(`app:suspense:resolve`)}},_asyncDataPromises:{},_asyncData:rn({}),_payloadRevivers:{},...e};{let e=window.__NUXT__;if(e)for(let t in e)switch(t){case`data`:case`state`:case`_errors`:Object.assign(n.payload[t],e[t]);break;default:n.payload[t]=e[t]}}n.hooks=qd(),n.hook=n.hooks.hook,n.callHook=n.hooks.callHook,n.provide=(e,t)=>{let r=`$`+e;_f(n,r,t),_f(n.vueApp.config.globalProperties,r,t)},_f(n.vueApp,`$nuxt`,n),_f(n.vueApp.config.globalProperties,`$nuxt`,n);{window.addEventListener(`vite:preloadError`,e=>{n.callHook(`app:chunkError`,{error:e.payload}),e.payload.message.includes(`Unable to preload CSS`)&&e.preventDefault()}),window.useNuxtApp||=V;let e=n.hook(`app:error`,(...e)=>{console.error(`[nuxt] error caught during app initialization`,...e)});n.hook(`app:mounted`,e)}let r=n.payload.config;return n.provide(`config`,r),n}function lf(e,t){t.hooks&&e.hooks.addHooks(t.hooks)}async function uf(e,t){if(typeof t==`function`){let{provide:n}=await e.runWithContext(()=>t(e))||{};if(n&&typeof n==`object`)for(let t in n)e.provide(t,n[t])}}async function df(e,t){let n=new Set,r=[],i=[],a,o=0;async function s(c){let l=c.dependsOn?.filter(e=>t.some(t=>t._name===e)&&!n.has(e))??[];if(l.length>0)r.push([new Set(l),c]);else{let t=uf(e,c).then(async()=>{c._name&&(n.add(c._name),await Promise.all(r.map(async([e,t])=>{e.has(c._name)&&(e.delete(c._name),e.size===0&&(o++,await s(t)))})))}).catch(t=>{if(!c.parallel&&!e.payload.error)throw t;a||=t});c.parallel?i.push(t):await t}}for(let n of t)lf(e,n);for(let e of t)await s(e);if(await Promise.all(i),o)for(let e=0;e{}),e,{__nuxt_plugin:!0,_name:t})}const pf=ff;function mf(e,t,n){return sf(e._id).set(e),e.vueApp.runWithContext(()=>n?t(...n):t())}function hf(e){let t;return qa()&&(t=Rs()?.appContext.app.$nuxt),t||=sf(e).tryUse(),t||null}function V(e){let t=hf(e);if(!t)throw Error(`[nuxt] instance unavailable`);return t}function gf(e){return V().$config}function _f(e,t,n){Object.defineProperty(e,t,{get:()=>n})}function vf(e,t){return{ctx:{table:e},matchAll:n=>xf(n,e,t)}}function yf(e){let t={};for(let n in e)t[n]=n===`dynamic`?new Map(Object.entries(e[n]).map(([e,t])=>[e,yf(t)])):new Map(Object.entries(e[n]));return t}function bf(e){return vf(yf(e))}function xf(e,t,n){n!==!0&&e.endsWith(`/`)&&(e=e.slice(0,-1)||`/`);let r=[];for(let[n,i]of Sf(t.wildcard))(e===n||e.startsWith(n+`/`))&&r.push(i);for(let[n,i]of Sf(t.dynamic))if(e.startsWith(n+`/`)){let t=`/`+e.slice(n.length).split(`/`).splice(2).join(`/`);r.push(...xf(t,i))}let i=t.static.get(e);return i&&r.push(i),r.filter(Boolean)}function Sf(e){return[...e.entries()].sort((e,t)=>e[0].length-t[0].length)}function Cf(e){if(typeof e!=`object`||!e)return!1;let t=Object.getPrototypeOf(e);return t!==null&&t!==Object.prototype&&Object.getPrototypeOf(t)!==null||Symbol.iterator in e?!1:Symbol.toStringTag in e?Object.prototype.toString.call(e)===`[object Module]`:!0}function wf(e,t,n=`.`,r){if(!Cf(t))return wf(e,{},n,r);let i=Object.assign({},t);for(let t in e){if(t===`__proto__`||t===`constructor`)continue;let a=e[t];a!=null&&(r&&r(i,t,a,n)||(Array.isArray(a)&&Array.isArray(i[t])?i[t]=[...a,...i[t]]:Cf(a)&&Cf(i[t])?i[t]=wf(a,i[t],(n?`${n}.`:``)+t.toString(),r):i[t]=a))}return i}function Tf(e){return(...t)=>t.reduce((t,n)=>wf(t,n,``,e),{})}var Ef=Tf();function Df(e,t){try{return t in e}catch{return!1}}var Of=class extends Error{static __h3_error__=!0;statusCode=500;fatal=!1;unhandled=!1;statusMessage;data;cause;constructor(e,t={}){super(e,t),t.cause&&!this.cause&&(this.cause=t.cause)}toJSON(){let e={message:this.message,statusCode:Nf(this.statusCode,500)};return this.statusMessage&&(e.statusMessage=Mf(this.statusMessage)),this.data!==void 0&&(e.data=this.data),e}};function kf(e){if(typeof e==`string`)return new Of(e);if(Af(e))return e;let t=new Of(e.message??e.statusMessage??``,{cause:e.cause||e});if(Df(e,`stack`))try{Object.defineProperty(t,`stack`,{get(){return e.stack}})}catch{try{t.stack=e.stack}catch{}}if(e.data&&(t.data=e.data),e.statusCode?t.statusCode=Nf(e.statusCode,t.statusCode):e.status&&(t.statusCode=Nf(e.status,t.statusCode)),e.statusMessage?t.statusMessage=e.statusMessage:e.statusText&&(t.statusMessage=e.statusText),t.statusMessage){let e=t.statusMessage;Mf(t.statusMessage)!==e&&console.warn("[h3] Please prefer using `message` for longer error messages instead of `statusMessage`. In the future, `statusMessage` will be sanitized by default.")}return e.fatal!==void 0&&(t.fatal=e.fatal),e.unhandled!==void 0&&(t.unhandled=e.unhandled),t}function Af(e){return e?.constructor?.__h3_error__===!0}var jf=/[^\u0009\u0020-\u007E]/g;function Mf(e=``){return e.replace(jf,``)}function Nf(e,t=200){return!e||(typeof e==`string`&&(e=Number.parseInt(e,10)),e<100||e>999)?t:e}globalThis.Headers,globalThis.Response;const Pf=Symbol(`layout-meta`),Ff=Symbol(`route`);import.meta.url.replace(/\/app\/.*$/,`/`);const If=()=>V()?.$router,Lf=()=>qa()?L(Ff,V()._route):V()._route;function Rf(e){return e}var zf=()=>{try{if(V()._processingMiddleware)return!0}catch{return!1}return!1};const Bf=(e,t)=>{e||=`/`;let n=typeof e==`string`?e:`path`in e?Vf(e):If().resolve(e).href;if(t?.open){let{target:e=`_blank`,windowFeatures:r={}}=t.open,i=[];for(let[e,t]of Object.entries(r))t!==void 0&&i.push(`${e.toLowerCase()}=${t}`);return open(n,e,i.join(`, `)),Promise.resolve()}let r=Qu(n,{acceptRelative:!0}),i=t?.external||r;if(i){if(!t?.external)throw Error("Navigating to an external URL is not allowed by default. Use `navigateTo(url, { external: true })`.");let{protocol:e}=new URL(n,window.location.href);if(e&&$u(e))throw Error(`Cannot navigate to a URL with '${e}' protocol.`)}let a=zf();if(!i&&a){if(t?.replace){if(typeof e==`string`){let{pathname:t,search:n,hash:r}=fd(e);return{path:t,...n&&{query:Uu(n)},...r&&{hash:r},replace:!0}}return{...e,replace:!0}}return e}let o=If(),s=V();return i?(s._scope.stop(),t?.replace?location.replace(n):location.href=n,a?s.isHydrating?new Promise(()=>{}):!1:Promise.resolve()):t?.replace?o.replace(e):o.push(e)};function Vf(e){return ad(e.path||``,e.query||{})+(e.hash||``)}const Hf=()=>On(V().payload,`error`),Uf=e=>{let t=Kf(e);try{let e=Hf();V().hooks.callHook(`app:error`,t),e.value||=t}catch{throw t}return t},Wf=async(e={})=>{let t=V(),n=Hf();t.callHook(`app:error:cleared`,e),e.redirect&&await If().replace(e.redirect),n.value=void 0},Gf=e=>!!e&&typeof e==`object`&&`__nuxt_error`in e,Kf=e=>{let t=kf(e);return Object.defineProperty(t,`__nuxt_error`,{value:!0,configurable:!1,writable:!1}),t};var qf=typeof window<`u`,Jf,Yf=e=>Jf=e,Xf=Symbol();function Zf(e){return e&&typeof e==`object`&&Object.prototype.toString.call(e)===`[object Object]`&&typeof e.toJSON!=`function`}var Qf;(function(e){e.direct=`direct`,e.patchObject=`patch object`,e.patchFunction=`patch function`})(Qf||={});var $f=(()=>typeof window==`object`&&window.window===window?window:typeof self==`object`&&self.self===self?self:typeof global==`object`&&global.global===global?global:typeof globalThis==`object`?globalThis:{HTMLElement:null})();function ep(e,{autoBom:t=!1}={}){return t&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob([``,e],{type:e.type}):e}function tp(e,t,n){let r=new XMLHttpRequest;r.open(`GET`,e),r.responseType=`blob`,r.onload=function(){op(r.response,t,n)},r.onerror=function(){console.error(`could not download file`)},r.send()}function np(e){let t=new XMLHttpRequest;t.open(`HEAD`,e,!1);try{t.send()}catch{}return t.status>=200&&t.status<=299}function rp(e){try{e.dispatchEvent(new MouseEvent(`click`))}catch{let t=new MouseEvent(`click`,{bubbles:!0,cancelable:!0,view:window,detail:0,screenX:80,screenY:20,clientX:80,clientY:20,ctrlKey:!1,altKey:!1,shiftKey:!1,metaKey:!1,button:0,relatedTarget:null});e.dispatchEvent(t)}}var ip=typeof navigator==`object`?navigator:{userAgent:``},ap=(()=>/Macintosh/.test(ip.userAgent)&&/AppleWebKit/.test(ip.userAgent)&&!/Safari/.test(ip.userAgent))(),op=qf?typeof HTMLAnchorElement<`u`&&`download`in HTMLAnchorElement.prototype&&!ap?sp:`msSaveOrOpenBlob`in ip?cp:lp:()=>{};function sp(e,t=`download`,n){let r=document.createElement(`a`);r.download=t,r.rel=`noopener`,typeof e==`string`?(r.href=e,r.origin===location.origin?rp(r):np(r.href)?tp(e,t,n):(r.target=`_blank`,rp(r))):(r.href=URL.createObjectURL(e),setTimeout(function(){URL.revokeObjectURL(r.href)},4e4),setTimeout(function(){rp(r)},0))}function cp(e,t=`download`,n){if(typeof e==`string`)if(np(e))tp(e,t,n);else{let t=document.createElement(`a`);t.href=e,t.target=`_blank`,setTimeout(function(){rp(t)})}else navigator.msSaveOrOpenBlob(ep(e,n),t)}function lp(e,t,n,r){if(r||=open(``,`_blank`),r&&(r.document.title=r.document.body.innerText=`downloading...`),typeof e==`string`)return tp(e,t,n);let i=e.type===`application/octet-stream`,a=/constructor/i.test(String($f.HTMLElement))||`safari`in $f,o=/CriOS\/[\d]+/.test(navigator.userAgent);if((o||i&&a||ap)&&typeof FileReader<`u`){let t=new FileReader;t.onloadend=function(){let e=t.result;if(typeof e!=`string`)throw r=null,Error(`Wrong reader.result type`);e=o?e:e.replace(/^data:[^;]*;/,`data:attachment/file;`),r?r.location.href=e:location.assign(e),r=null},t.readAsDataURL(e)}else{let t=URL.createObjectURL(e);r?r.location.assign(t):location.href=t,r=null,setTimeout(function(){URL.revokeObjectURL(t)},4e4)}}var{assign:up}=Object;function dp(){let e=ze(!0),t=e.run(()=>hn({})),n=[],r=[],i=fn({install(e){Yf(i),i._a=e,e.provide(Xf,i),e.config.globalProperties.$pinia=i,r.forEach(e=>n.push(e)),r=[]},use(e){return this._a?n.push(e):r.push(e),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return i}var fp=()=>{};function pp(e,t,n,r=fp){e.add(t);let i=()=>{e.delete(t)&&r()};return!n&&Be()&&Ve(i),i}function mp(e,...t){e.forEach(e=>{e(...t)})}var hp=e=>e(),gp=Symbol(),_p=Symbol();function vp(e,t){for(let n in e instanceof Map&&t instanceof Map?t.forEach((t,n)=>e.set(n,t)):e instanceof Set&&t instanceof Set&&t.forEach(e.add,e),t){if(!t.hasOwnProperty(n))continue;let r=t[n],i=e[n];Zf(i)&&Zf(r)&&e.hasOwnProperty(n)&&!F(r)&&!cn(r)?e[n]=vp(i,r):e[n]=r}return e}var yp=Symbol();function bp(e){return!Zf(e)||!Object.prototype.hasOwnProperty.call(e,yp)}var{assign:xp}=Object;function Sp(e){return!!(F(e)&&e.effect)}function Cp(e,t,n,r){let{state:i,actions:a,getters:o}=t,s=n.state.value[e],c;function l(){return s||(n.state.value[e]=i?i():{}),xp(Tn(n.state.value[e]),a,Object.keys(o||{}).reduce((t,r)=>(t[r]=fn(B(()=>{Yf(n);let t=n._s.get(e);return o[r].call(t,t)})),t),{}))}return c=wp(e,l,t,n,r,!0),c}function wp(e,t,n={},r,i,a){let o,s=xp({actions:{}},n),c={deep:!0},l,u,d=new Set,f=new Set,p=r.state.value[e];!a&&!p&&(r.state.value[e]={}),hn({});let m;function h(t){let n;l=u=!1,typeof t==`function`?(t(r.state.value[e]),n={type:Qf.patchFunction,storeId:e,events:void 0}):(vp(r.state.value[e],t),n={type:Qf.patchObject,payload:t,storeId:e,events:void 0});let i=m=Symbol();ir().then(()=>{m===i&&(l=!0)}),u=!0,mp(d,n,r.state.value[e])}let g=a?function(){let{state:e}=n,t=e?e():{};this.$patch(e=>{xp(e,t)})}:fp;function _(){o.stop(),d.clear(),f.clear(),r._s.delete(e)}let v=(t,n=``)=>{if(gp in t)return t[_p]=n,t;let i=function(){Yf(r);let n=Array.from(arguments),a=new Set,o=new Set;function s(e){a.add(e)}function c(e){o.add(e)}mp(f,{args:n,name:i[_p],store:y,after:s,onError:c});let l;try{l=t.apply(this&&this.$id===e?this:y,n)}catch(e){throw mp(o,e),e}return l instanceof Promise?l.then(e=>(mp(a,e),e)).catch(e=>(mp(o,e),Promise.reject(e))):(mp(a,l),l)};return i[gp]=!0,i[_p]=n,i},y=nn({_p:r,$id:e,$onAction:pp.bind(null,f),$patch:h,$reset:g,$subscribe(t,n={}){let i=pp(d,t,n.detached,()=>a()),a=o.run(()=>$a(()=>r.state.value[e],r=>{(n.flush===`sync`?u:l)&&t({storeId:e,type:Qf.direct,events:void 0},r)},xp({},c,n)));return i},$dispose:_});r._s.set(e,y);let b=(r._a&&r._a.runWithContext||hp)(()=>r._e.run(()=>(o=ze()).run(()=>t({action:v}))));for(let t in b){let n=b[t];F(n)&&!Sp(n)||cn(n)?a||(p&&bp(n)&&(F(n)?n.value=p[t]:vp(n,p[t])),r.state.value[e][t]=n):typeof n==`function`&&(b[t]=v(n,t),s.actions[t]=n)}return xp(y,b),xp(P(y),b),Object.defineProperty(y,`$state`,{get:()=>r.state.value[e],set:e=>{h(t=>{xp(t,e)})}}),r._p.forEach(e=>{xp(y,o.run(()=>e({store:y,app:r._a,pinia:r,options:s})))}),p&&a&&n.hydrate&&n.hydrate(y.$state,p),l=!0,u=!0,y}function Tp(e,t,n){let r,i=typeof t==`function`;r=i?n:t;function a(n,a){let o=qa();return n||=o?L(Xf,null):null,n&&Yf(n),n=Jf,n._s.has(e)||(i?wp(e,t,r,n):Cp(e,r,n)),n._s.get(e)}return a.$id=e,a}function Ep(e){let t=Op(e),n=new ArrayBuffer(t.length),r=new DataView(n);for(let e=0;e>16),t+=String.fromCharCode((n&65280)>>8),t+=String.fromCharCode(n&255),n=r=0);return r===12?(n>>=4,t+=String.fromCharCode(n)):r===18&&(n>>=2,t+=String.fromCharCode((n&65280)>>8),t+=String.fromCharCode(n&255)),t}function kp(e,t){return Ap(JSON.parse(e),t)}function Ap(e,t){if(typeof e==`number`)return i(e,!0);if(!Array.isArray(e)||e.length===0)throw Error(`Invalid input`);let n=e,r=Array(n.length);function i(e,a=!1){if(e===-1)return;if(e===-3)return NaN;if(e===-4)return 1/0;if(e===-5)return-1/0;if(e===-6)return-0;if(a||typeof e!=`number`)throw Error(`Invalid input`);if(e in r)return r[e];let o=n[e];if(!o||typeof o!=`object`)r[e]=o;else if(Array.isArray(o))if(typeof o[0]==`string`){let a=o[0],s=t?.[a];if(s){let t=o[1];return typeof t!=`number`&&(t=n.push(o[1])-1),r[e]=s(i(t))}switch(a){case`Date`:r[e]=new Date(o[1]);break;case`Set`:let t=new Set;r[e]=t;for(let e=1;e`${e}:${String(t)}`).join(`,`)}`}function Wp(e,t,n){typeof e==`function`&&(!n||n!==`titleTemplate`&&!(n[0]===`o`&&n[1]===`n`))&&(e=e());let r;if(t&&(r=t(n,e)),Array.isArray(r))return r.map(e=>Wp(e,t));if(r?.constructor===Object){let e={};for(let n of Object.keys(r))e[n]=Wp(r[n],t,n);return e}return r}function Gp(e,t){let n=e===`style`?new Map:new Set;function r(t){let r=t.trim();if(r)if(e===`style`){let[e,...t]=r.split(`:`).map(e=>e.trim());e&&t.length&&n.set(e,t.join(`:`))}else r.split(` `).filter(Boolean).forEach(e=>n.add(e))}return typeof t==`string`?e===`style`?t.split(`;`).forEach(r):r(t):Array.isArray(t)?t.forEach(e=>r(e)):t&&typeof t==`object`&&Object.entries(t).forEach(([t,i])=>{i&&i!==`false`&&(e===`style`?n.set(t.trim(),i):r(t))}),n}function Kp(e,t){return e.props=e.props||{},t?e.tag===`templateParams`?(e.props=t,e):(Object.entries(t).forEach(([n,r])=>{if(r===null){e.props[n]=null;return}if(n===`class`||n===`style`){e.props[n]=Gp(n,r);return}if(Ip.has(n)){if([`textContent`,`innerHTML`].includes(n)&&typeof r==`object`){let i=t.type;if(t.type||(i=`application/json`),!i?.endsWith(`json`)&&i!==`speculationrules`)return;t.type=i,e.props.type=i,e[n]=JSON.stringify(r)}else e[n]=r;return}let i=String(r),a=n.startsWith(`data-`);i===`true`||i===``?e.props[n]=a?i:!0:!r&&a&&i===`false`?e.props[n]=`false`:r!==void 0&&(e.props[n]=r)}),e):e}function qp(e,t){let n=Kp({tag:e,props:{}},typeof t==`object`&&typeof t!=`function`?t:{[e===`script`||e===`noscript`||e===`style`?`innerHTML`:`textContent`]:t});return n.key&&jp.has(n.tag)&&(n.props[`data-hid`]=n._h=n.key),n.tag===`script`&&typeof n.innerHTML==`object`&&(n.innerHTML=JSON.stringify(n.innerHTML),n.props.type=n.props.type||`application/json`),Array.isArray(n.props.content)?n.props.content.map(e=>({...n,props:{...n.props,content:e}})):n}function Jp(e,t){if(!e)return[];typeof e==`function`&&(e=e());let n=(e,n)=>{for(let r=0;r{if(t!==void 0)for(let n of Array.isArray(t)?t:[t])r.push(qp(e,n))}),r.flat()}var Yp=(e,t)=>e._w===t._w?e._p-t._p:e._w-t._w,Xp={base:-10,title:10},Zp={critical:-8,high:-1,low:2},Qp={meta:{"content-security-policy":-30,charset:-20,viewport:-15},link:{preconnect:20,stylesheet:60,preload:70,modulepreload:70,prefetch:90,"dns-prefetch":90,prerender:90},script:{async:30,defer:80,sync:50},style:{imported:40,sync:60}},$p=/@import/,em=e=>e===``||e===!0;function tm(e,t){if(typeof t.tagPriority==`number`)return t.tagPriority;let n=100,r=Zp[t.tagPriority]||0,i=e.resolvedOptions.disableCapoSorting?{link:{},script:{},style:{}}:Qp;if(t.tag in Xp)n=Xp[t.tag];else if(t.tag===`meta`){let e=t.props[`http-equiv`]===`content-security-policy`?`content-security-policy`:t.props.charset?`charset`:t.props.name===`viewport`?`viewport`:null;e&&(n=Qp.meta[e])}else t.tag===`link`&&t.props.rel?n=i.link[t.props.rel]:t.tag===`script`?em(t.props.async)?n=i.script.async:t.props.src&&!em(t.props.defer)&&!em(t.props.async)&&t.props.type!==`module`&&!t.props.type?.endsWith(`json`)?n=i.script.sync:em(t.props.defer)&&t.props.src&&!em(t.props.async)&&(n=i.script.defer):t.tag===`style`&&(n=t.innerHTML&&$p.test(t.innerHTML)?i.style.imported:i.style.sync);return(n||100)+r}function nm(e,t){let n=typeof t==`function`?t(e):t,r=n.key||String(e.plugins.size+1);e.plugins.get(r)||(e.plugins.set(r,n),e.hooks.addHooks(n.hooks||{}))}function rm(e={}){let t=qd();t.addHooks(e.hooks||{});let n=!e.document,r=new Map,i=new Map,a=new Set,o={_entryCount:1,plugins:i,dirty:!1,resolvedOptions:e,hooks:t,ssr:n,entries:r,headEntries(){return[...r.values()]},use:e=>nm(o,e),push(e,i){let s={...i||{}};delete s.head;let c=s._index??o._entryCount++,l={_i:c,input:e,options:s},u={_poll(e=!1){o.dirty=!0,!e&&a.add(c),t.callHook(`entries:updated`,o)},dispose(){r.delete(c)&&o.invalidate()},patch(e){(!s.mode||s.mode===`server`&&n||s.mode===`client`&&!n)&&(l.input=e,r.set(c,l),u._poll())}};return u.patch(e),u},async resolveTags(){let n={tagMap:new Map,tags:[],entries:[...o.entries.values()]};for(await t.callHook(`entries:resolve`,n);a.size;){let n=a.values().next().value;a.delete(n);let i=r.get(n);if(i){let n={tags:Jp(i.input,e.propResolvers||[]).map(e=>Object.assign(e,i.options)),entry:i};await t.callHook(`entries:normalize`,n),i._tags=n.tags.map((e,t)=>(e._w=tm(o,e),e._p=(i._i<<10)+t,e._d=Hp(e),e))}}let i=!1;n.entries.flatMap(e=>(e._tags||[]).map(e=>({...e,props:{...e.props}}))).sort(Yp).reduce((e,t)=>{let n=String(t._d||t._p);if(!e.has(n))return e.set(n,t);let r=e.get(n);if((t?.tagDuplicateStrategy||(Lp.has(t.tag)?`merge`:null)||(t.key&&t.key===r.key?`merge`:null))===`merge`){let i={...r.props};Object.entries(t.props).forEach(([e,t])=>i[e]=e===`style`?new Map([...r.props.style||new Map,...t]):e===`class`?new Set([...r.props.class||new Set,...t]):t),e.set(n,{...t,props:i})}else t._p>>10==r._p>>10&&t.tag===`meta`&&Vp(n)?(e.set(n,Object.assign([...Array.isArray(r)?r:[r],t],t)),i=!0):(t._w===r._w?t._p>r._p:t?._wnm(o,e)),o.hooks.callHook(`init`,o),e.init?.forEach(e=>e&&o.push(e)),o}var im=(e,t)=>F(t)?bn(t):t,am=`usehead`;function om(e){return{install(t){t.config.globalProperties.$unhead=e,t.config.globalProperties.$head=e,t.provide(am,e)}}.install}function sm(){if(qa()){let e=L(am);if(!e)throw Error(`useHead() was called without provide context, ensure you call it through the setup() function.`);return e}throw Error(`useHead() was called without provide context, ensure you call it through the setup() function.`)}function cm(e,t={}){let n=t.head||sm();return n.ssr?n.push(e||{},t):lm(n,e,t)}function lm(e,t,n={}){let r=hn(!1),i;return Xa(()=>{let a=r.value?{}:Wp(t,im);i?i.patch(a):i=e.push(a,n)}),Rs()&&(Hi(()=>{i.dispose()}),ji(()=>{r.value=!0}),Ai(()=>{r.value=!1})),i}function um(e){let t=e||V();return t.ssrContext?.head||t.runWithContext(()=>{if(qa()){let e=L(`usehead`);if(!e)throw Error(`[nuxt] [unhead] Missing Unhead instance.`);return e}})}function dm(e,t={}){return cm(e,{head:t.head||um(t.nuxt),...t})}var fm=`modulepreload`,pm=function(e,t){return new URL(e,t).href},mm={};const hm=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=document.getElementsByTagName(`link`),i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}r=o(t.map(t=>{if(t=pm(t,n),t in mm)return;mm[t]=!0;let r=t.endsWith(`.css`),i=r?`[rel="stylesheet"]`:``;if(n)for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.href===t&&(!r||i.rel===`stylesheet`))return}else if(document.querySelector(`link[href="${t}"]${i}`))return;let o=document.createElement(`link`);if(o.rel=r?`stylesheet`:fm,r||(o.as=`script`),o.crossOrigin=``,o.href=t,a&&o.setAttribute(`nonce`,a),document.head.appendChild(o),r)return new Promise((e,n)=>{o.addEventListener(`load`,e),o.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${t}`)))})}))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})};var gm,_m;function vm(){return gm=$fetch(Rd(`builds/meta/${gf().app.buildId}.json`),{responseType:`json`}),gm.then(e=>{_m=bf(e.matcher)}).catch(e=>{console.error(`[nuxt] Error fetching app manifest.`,e)}),gm}function ym(){return gm||vm()}async function bm(e){let t=typeof e==`string`?e:e.path;if(await ym(),!_m)return console.error(`[nuxt] Error creating app manifest matcher.`,_m),{};try{return Ef({},..._m.matchAll(t).reverse())}catch(e){return console.error(`[nuxt] Error matching route rules.`,e),{}}}async function xm(e,t={}){return await Tm(e)&&await wm(await Cm(e,t))||null}var Sm=`_payload.json`;async function Cm(e,t={}){let n=new URL(e,`http://localhost`);if(n.host!==`localhost`||Qu(n.pathname,{acceptRelative:!0}))throw Error(`Payload URL must not include hostname: `+e);let r=gf(),i=t.hash||(t.fresh?Date.now():r.app.buildId),a=r.app.cdnURL;return cd(a&&await Tm(e)?a:r.app.baseURL,n.pathname,Sm+(i?`?${i}`:``))}async function wm(e){let t=fetch(e,{cache:`force-cache`}).then(e=>e.text().then(Om));try{return await t}catch(t){console.warn(`[nuxt] Cannot load payload `,e,t)}return null}async function Tm(e=Lf().path){let t=V();return e=e===`/`?e:e.replace(/\/$/,``),(await ym()).prerendered.includes(e)?!0:t.runWithContext(async()=>{let t=await bm({path:e});return!!t.prerender&&!t.redirect})}var Em=null;async function Dm(){if(Em)return Em;let e=document.getElementById(`__NUXT_DATA__`);if(!e)return{};let t=await Om(e.textContent||``),n=e.dataset.src?await wm(e.dataset.src):void 0;return Em={...t,...n,...window.__NUXT__},Em.config?.public&&(Em.config.public=nn(Em.config.public)),Em}async function Om(e){return await kp(e,V()._payloadRevivers)}function km(e,t){V()._payloadRevivers[e]=t}var Am=pf(()=>{km(`skipHydrate`,e=>void 0)}),jm=[[`NuxtError`,e=>Kf(e)],[`EmptyShallowRef`,e=>gn(e===`_`?void 0:e===`0n`?BigInt(0):Du(e))],[`EmptyRef`,e=>hn(e===`_`?void 0:e===`0n`?BigInt(0):Du(e))],[`ShallowRef`,e=>gn(e)],[`ShallowReactive`,e=>rn(e)],[`Ref`,e=>hn(e)],[`Reactive`,e=>nn(e)]],Mm=ff({name:`nuxt:revive-payload:client`,order:-30,async setup(e){let t,n;for(let[e,t]of jm)km(e,t);Object.assign(e.payload,([t,n]=nf(()=>e.runWithContext(Dm)),t=await t,n(),t)),delete window.__NUXT__}},1);async function Nm(e,t={}){let n=t.document||e.resolvedOptions.document;if(!n||!e.dirty)return;let r={shouldRender:!0,tags:[]};if(await e.hooks.callHook(`dom:beforeRender`,r),r.shouldRender)return e._domUpdatePromise||=new Promise(async t=>{let r=new Map,i=new Promise(t=>{e.resolveTags().then(e=>{t(e.map(e=>{let t=r.get(e._d)||0,n={tag:e,id:(t?`${e._d}:${t}`:e._d)||Up(e),shouldRender:!0};return e._d&&Vp(e._d)&&r.set(e._d,t+1),n}))})}),a=e._dom;if(!a){a={title:n.title,elMap:new Map().set(`htmlAttrs`,n.documentElement).set(`bodyAttrs`,n.body)};for(let e of[`body`,`head`]){let t=n[e]?.children;for(let e of t){let t=e.tagName.toLowerCase();if(!Np.has(t))continue;let n=Kp({tag:t,props:{}},{innerHTML:e.innerHTML,...e.getAttributeNames().reduce((t,n)=>(t[n]=e.getAttribute(n),t),{})||{}});if(n.key=e.getAttribute(`data-hid`)||void 0,n._d=Hp(n)||Up(n),a.elMap.has(n._d)){let t=1,r=n._d;for(;a.elMap.has(r);)r=`${n._d}:${t++}`;a.elMap.set(r,e)}else a.elMap.set(n._d,e)}}}a.pendingSideEffects={...a.sideEffects},a.sideEffects={};function o(e,t,n){let r=`${e}:${t}`;a.sideEffects[r]=n,delete a.pendingSideEffects[r]}function s({id:e,$el:t,tag:r}){let i=r.tag.endsWith(`Attrs`);for(let s in a.elMap.set(e,t),i||(r.textContent&&r.textContent!==t.textContent&&(t.textContent=r.textContent),r.innerHTML&&r.innerHTML!==t.innerHTML&&(t.innerHTML=r.innerHTML),o(e,`el`,()=>{t?.remove(),a.elMap.delete(e)})),r.props){if(!Object.prototype.hasOwnProperty.call(r.props,s))continue;let a=r.props[s];if(s.startsWith(`on`)&&typeof a==`function`){let e=t?.dataset;if(e&&e[`${s}fired`]){let e=s.slice(0,-5);a.call(t,new Event(e.substring(2)))}t.getAttribute(`data-${s}`)!==``&&((r.tag===`bodyAttrs`?n.defaultView:t).addEventListener(s.substring(2),a.bind(t)),t.setAttribute(`data-${s}`,``));continue}let c=`attr:${s}`;if(s===`class`){if(!a)continue;for(let n of a)i&&o(e,`${c}:${n}`,()=>t.classList.remove(n)),!t.classList.contains(n)&&t.classList.add(n)}else if(s===`style`){if(!a)continue;for(let[n,r]of a)o(e,`${c}:${n}`,()=>{t.style.removeProperty(n)}),t.style.setProperty(n,r)}else a!==!1&&a!==null&&(t.getAttribute(s)!==a&&t.setAttribute(s,a===!0?``:String(a)),i&&o(e,c,()=>t.removeAttribute(s)))}}let c=[],l={bodyClose:void 0,bodyOpen:void 0,head:void 0},u=await i;for(let e of u){let{tag:t,shouldRender:r,id:i}=e;if(r){if(t.tag===`title`){n.title=t.textContent,o(`title`,``,()=>n.title=a.title);continue}e.$el=e.$el||a.elMap.get(i),e.$el?s(e):Np.has(t.tag)&&c.push(e)}}for(let e of c){let t=e.tag.tagPosition||`head`;e.$el=n.createElement(e.tag.tag),s(e),l[t]=l[t]||n.createDocumentFragment(),l[t].appendChild(e.$el)}for(let t of u)await e.hooks.callHook(`dom:renderTag`,t,n,o);for(let e in l.head&&n.head.appendChild(l.head),l.bodyOpen&&n.body.insertBefore(l.bodyOpen,n.body.firstChild),l.bodyClose&&n.body.appendChild(l.bodyClose),a.pendingSideEffects)a.pendingSideEffects[e]();e._dom=a,await e.hooks.callHook(`dom:rendered`,{renders:u}),t()}).finally(()=>{e._domUpdatePromise=void 0,e.dirty=!1}),e._domUpdatePromise}function Pm(e={}){let t=e.domOptions?.render||Nm;e.document=e.document||(typeof window<`u`?document:void 0);let n=e.document?.head.querySelector(`script[id="unhead:payload"]`)?.innerHTML||!1;return rm({...e,plugins:[...e.plugins||[],{key:`client`,hooks:{"entries:updated":t}}],init:[n?JSON.parse(n):!1,...e.init||[]]})}function Fm(e,t){let n=0;return()=>{let r=++n;t(()=>{n===r&&e()})}}function Im(e={}){let t=Pm({domOptions:{render:Fm(()=>Nm(t),e=>setTimeout(e,0))},...e});return t.install=om(t),t}var Lm={disableDefaults:!0},Rm=ff({name:`nuxt:head`,enforce:`pre`,setup(e){let t=Im(Lm);e.vueApp.use(t);{let n=!0,r=async()=>{n=!1,await Nm(t)};t.hooks.hook(`dom:beforeRender`,e=>{e.shouldRender=!n}),e.hooks.hook(`page:start`,()=>{n=!0}),e.hooks.hook(`page:finish`,()=>{e.isHydrating||r()}),e.hooks.hook(`app:error`,r),e.hooks.hook(`app:suspense:resolve`,r)}}}),zm=typeof document<`u`;function Bm(e){return typeof e==`object`||`displayName`in e||`props`in e||`__vccOpts`in e}function Vm(e){return e.__esModule||e[Symbol.toStringTag]===`Module`||e.default&&Bm(e.default)}var H=Object.assign;function Hm(e,t){let n={};for(let r in t){let i=t[r];n[r]=Wm(i)?i.map(e):e(i)}return n}var Um=()=>{},Wm=Array.isArray;function Gm(e,t){let n={};for(let r in e)n[r]=r in t?t[r]:e[r];return n}var Km=/#/g,qm=/&/g,Jm=/\//g,Ym=/=/g,Xm=/\?/g,Zm=/\+/g,Qm=/%5B/g,$m=/%5D/g,eh=/%5E/g,th=/%60/g,nh=/%7B/g,rh=/%7C/g,ih=/%7D/g,ah=/%20/g;function oh(e){return e==null?``:encodeURI(``+e).replace(rh,`|`).replace(Qm,`[`).replace($m,`]`)}function sh(e){return oh(e).replace(nh,`{`).replace(ih,`}`).replace(eh,`^`)}function ch(e){return oh(e).replace(Zm,`%2B`).replace(ah,`+`).replace(Km,`%23`).replace(qm,`%26`).replace(th,"`").replace(nh,`{`).replace(ih,`}`).replace(eh,`^`)}function lh(e){return ch(e).replace(Ym,`%3D`)}function uh(e){return oh(e).replace(Km,`%23`).replace(Xm,`%3F`)}function dh(e){return uh(e).replace(Jm,`%2F`)}function fh(e){if(e==null)return null;try{return decodeURIComponent(``+e)}catch{}return``+e}var ph=/\/$/,mh=e=>e.replace(ph,``);function hh(e,t,n=`/`){let r,i={},a=``,o=``,s=t.indexOf(`#`),c=t.indexOf(`?`);return c=s>=0&&c>s?-1:c,c>=0&&(r=t.slice(0,c),a=t.slice(c,s>0?s:t.length),i=e(a.slice(1))),s>=0&&(r||=t.slice(0,s),o=t.slice(s,t.length)),r=Ch(r??t,n),{fullPath:r+a+o,path:r,query:i,hash:fh(o)}}function gh(e,t){let n=t.query?e(t.query):``;return t.path+(n&&`?`)+n+(t.hash||``)}function _h(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||`/`}function vh(e,t,n){let r=t.matched.length-1,i=n.matched.length-1;return r>-1&&r===i&&yh(t.matched[r],n.matched[i])&&bh(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function yh(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function bh(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(!xh(e[n],t[n]))return!1;return!0}function xh(e,t){return Wm(e)?Sh(e,t):Wm(t)?Sh(t,e):e?.valueOf()===t?.valueOf()}function Sh(e,t){return Wm(t)?e.length===t.length&&e.every((e,n)=>e===t[n]):e.length===1&&e[0]===t}function Ch(e,t){if(e.startsWith(`/`))return e;if(!e)return t;let n=t.split(`/`),r=e.split(`/`),i=r[r.length-1];(i===`..`||i===`.`)&&r.push(``);let a=n.length-1,o,s;for(o=0;o1&&a--;else break;return n.slice(0,a).join(`/`)+`/`+r.slice(o).join(`/`)}var wh={path:`/`,name:void 0,params:{},query:{},hash:``,fullPath:`/`,matched:[],meta:{},redirectedFrom:void 0},Th=function(e){return e.pop=`pop`,e.push=`push`,e}({}),Eh=function(e){return e.back=`back`,e.forward=`forward`,e.unknown=``,e}({});function Dh(e){if(!e)if(zm){let t=document.querySelector(`base`);e=t&&t.getAttribute(`href`)||`/`,e=e.replace(/^\w+:\/\/[^\/]+/,``)}else e=`/`;return e[0]!==`/`&&e[0]!==`#`&&(e=`/`+e),mh(e)}var Oh=/^[^#]+#/;function kh(e,t){return e.replace(Oh,`#`)+t}function Ah(e,t){let n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}var jh=()=>({left:window.scrollX,top:window.scrollY});function Mh(e){let t;if(`el`in e){let n=e.el,r=typeof n==`string`&&n.startsWith(`#`),i=typeof n==`string`?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!i)return;t=Ah(i,e)}else t=e;`scrollBehavior`in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left==null?window.scrollX:t.left,t.top==null?window.scrollY:t.top)}function Nh(e,t){return(history.state?history.state.position-t:-1)+e}var Ph=new Map;function Fh(e,t){Ph.set(e,t)}function Ih(e){let t=Ph.get(e);return Ph.delete(e),t}function Lh(e){return typeof e==`string`||e&&typeof e==`object`}function Rh(e){return typeof e==`string`||typeof e==`symbol`}var U=function(e){return e[e.MATCHER_NOT_FOUND=1]=`MATCHER_NOT_FOUND`,e[e.NAVIGATION_GUARD_REDIRECT=2]=`NAVIGATION_GUARD_REDIRECT`,e[e.NAVIGATION_ABORTED=4]=`NAVIGATION_ABORTED`,e[e.NAVIGATION_CANCELLED=8]=`NAVIGATION_CANCELLED`,e[e.NAVIGATION_DUPLICATED=16]=`NAVIGATION_DUPLICATED`,e}({}),zh=Symbol(``);U.MATCHER_NOT_FOUND,U.NAVIGATION_GUARD_REDIRECT,U.NAVIGATION_ABORTED,U.NAVIGATION_CANCELLED,U.NAVIGATION_DUPLICATED;function Bh(e,t){return H(Error(),{type:e,[zh]:!0},t)}function Vh(e,t){return e instanceof Error&&zh in e&&(t==null||!!(e.type&t))}function Hh(e){let t={};if(e===``||e===`?`)return t;let n=(e[0]===`?`?e.slice(1):e).split(`&`);for(let e=0;ee&&ch(e)):[r&&ch(r)]).forEach(e=>{e!==void 0&&(t+=(t.length?`&`:``)+n,e!=null&&(t+=`=`+e))})}return t}function Wh(e){let t={};for(let n in e){let r=e[n];r!==void 0&&(t[n]=Wm(r)?r.map(e=>e==null?null:``+e):r==null?r:``+r)}return t}var Gh=Symbol(``),Kh=Symbol(``),qh=Symbol(``),Jh=Symbol(``),Yh=Symbol(``);function Xh(){let e=[];function t(t){return e.push(t),()=>{let n=e.indexOf(t);n>-1&&e.splice(n,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function Zh(e,t,n,r,i,a=e=>e()){let o=r&&(r.enterCallbacks[i]=r.enterCallbacks[i]||[]);return()=>new Promise((s,c)=>{let l=e=>{e===!1?c(Bh(U.NAVIGATION_ABORTED,{from:n,to:t})):e instanceof Error?c(e):Lh(e)?c(Bh(U.NAVIGATION_GUARD_REDIRECT,{from:t,to:e})):(o&&r.enterCallbacks[i]===o&&typeof e==`function`&&o.push(e),s())},u=a(()=>e.call(r&&r.instances[i],t,n,l)),d=Promise.resolve(u);e.length<3&&(d=d.then(l)),d.catch(e=>c(e))})}function Qh(e,t,n,r,i=e=>e()){let a=[];for(let o of e)for(let e in o.components){let s=o.components[e];if(!(t!==`beforeRouteEnter`&&!o.instances[e]))if(Bm(s)){let c=(s.__vccOpts||s)[t];c&&a.push(Zh(c,n,r,o,e,i))}else{let c=s();a.push(()=>c.then(a=>{if(!a)throw Error(`Couldn't resolve component "${e}" at "${o.path}"`);let s=Vm(a)?a.default:a;o.mods[e]=a,o.components[e]=s;let c=(s.__vccOpts||s)[t];return c&&Zh(c,n,r,o,e,i)()}))}}return a}function $h(e,t){let n=[],r=[],i=[],a=Math.max(t.matched.length,e.matched.length);for(let o=0;oyh(e,a))?r.push(a):n.push(a));let s=e.matched[o];s&&(t.matched.find(e=>yh(e,s))||i.push(s))}return[n,r,i]}var eg=()=>location.protocol+`//`+location.host;function tg(e,t){let{pathname:n,search:r,hash:i}=t,a=e.indexOf(`#`);if(a>-1){let t=i.includes(e.slice(a))?e.slice(a).length:1,n=i.slice(t);return n[0]!==`/`&&(n=`/`+n),_h(n,``)}return _h(n,e)+r+i}function ng(e,t,n,r){let i=[],a=[],o=null,s=({state:a})=>{let s=tg(e,location),c=n.value,l=t.value,u=0;if(a){if(n.value=s,t.value=a,o&&o===c){o=null;return}u=l?a.position-l.position:0}else r(s);i.forEach(e=>{e(n.value,c,{delta:u,type:Th.pop,direction:u?u>0?Eh.forward:Eh.back:Eh.unknown})})};function c(){o=n.value}function l(e){i.push(e);let t=()=>{let t=i.indexOf(e);t>-1&&i.splice(t,1)};return a.push(t),t}function u(){if(document.visibilityState===`hidden`){let{history:e}=window;if(!e.state)return;e.replaceState(H({},e.state,{scroll:jh()}),``)}}function d(){for(let e of a)e();a=[],window.removeEventListener(`popstate`,s),window.removeEventListener(`pagehide`,u),document.removeEventListener(`visibilitychange`,u)}return window.addEventListener(`popstate`,s),window.addEventListener(`pagehide`,u),document.addEventListener(`visibilitychange`,u),{pauseListeners:c,listen:l,destroy:d}}function rg(e,t,n,r=!1,i=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:i?jh():null}}function ig(e){let{history:t,location:n}=window,r={value:tg(e,n)},i={value:t.state};i.value||a(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function a(r,a,o){let s=e.indexOf(`#`),c=s>-1?(n.host&&document.querySelector(`base`)?e:e.slice(s))+r:eg()+e+r;try{t[o?`replaceState`:`pushState`](a,``,c),i.value=a}catch(e){console.error(e),n[o?`replace`:`assign`](c)}}function o(e,n){a(e,H({},t.state,rg(i.value.back,e,i.value.forward,!0),n,{position:i.value.position}),!0),r.value=e}function s(e,n){let o=H({},i.value,t.state,{forward:e,scroll:jh()});a(o.current,o,!0),a(e,H({},rg(r.value,e,null),{position:o.position+1},n),!1),r.value=e}return{location:r,state:i,push:s,replace:o}}function ag(e){e=Dh(e);let t=ig(e),n=ng(e,t.state,t.location,t.replace);function r(e,t=!0){t||n.pauseListeners(),history.go(e)}let i=H({location:``,base:e,go:r,createHref:kh.bind(null,e)},t,n);return Object.defineProperty(i,`location`,{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(i,`state`,{enumerable:!0,get:()=>t.state.value}),i}function og(e){return e=location.host?e||location.pathname+location.search:``,e.includes(`#`)||(e+=`#`),ag(e)}var sg=function(e){return e[e.Static=0]=`Static`,e[e.Param=1]=`Param`,e[e.Group=2]=`Group`,e}({}),cg=function(e){return e[e.Static=0]=`Static`,e[e.Param=1]=`Param`,e[e.ParamRegExp=2]=`ParamRegExp`,e[e.ParamRegExpEnd=3]=`ParamRegExpEnd`,e[e.EscapeNext=4]=`EscapeNext`,e}(cg||{}),lg={type:sg.Static,value:``},ug=/[a-zA-Z0-9_]/;function dg(e){if(!e)return[[]];if(e===`/`)return[[lg]];if(!e.startsWith(`/`))throw Error(`Invalid path "${e}"`);function t(e){throw Error(`ERR (${n})/"${l}": ${e}`)}let n=cg.Static,r=n,i=[],a;function o(){a&&i.push(a),a=[]}let s=0,c,l=``,u=``;function d(){l&&=(n===cg.Static?a.push({type:sg.Static,value:l}):n===cg.Param||n===cg.ParamRegExp||n===cg.ParamRegExpEnd?(a.length>1&&(c===`*`||c===`+`)&&t(`A repeatable param (${l}) must be alone in its segment. eg: '/:ids+.`),a.push({type:sg.Param,value:l,regexp:u,repeatable:c===`*`||c===`+`,optional:c===`*`||c===`?`})):t(`Invalid state to consume buffer`),``)}function f(){l+=c}for(;st.length?t.length===1&&t[0]===mg.Static+mg.Segment?1:-1:0}function vg(e,t){let n=0,r=e.score,i=t.score;for(;n0&&t[t.length-1]<0}var bg={strict:!1,end:!0,sensitive:!1};function xg(e,t,n){let r=H(gg(dg(e.path),n),{record:e,parent:t,children:[],alias:[]});return t&&!r.record.aliasOf==!t.record.aliasOf&&t.children.push(r),r}function Sg(e,t){let n=[],r=new Map;t=Gm(bg,t);function i(e){return r.get(e)}function a(e,n,r){let i=!r,s=wg(e);s.aliasOf=r&&r.record;let l=Gm(t,e),u=[s];if(`alias`in e){let t=typeof e.alias==`string`?[e.alias]:e.alias;for(let e of t)u.push(wg(H({},s,{components:r?r.record.components:s.components,path:e,aliasOf:r?r.record:s})))}let d,f;for(let t of u){let{path:u}=t;if(n&&u[0]!==`/`){let e=n.record.path,r=e[e.length-1]===`/`?``:`/`;t.path=n.record.path+(u&&r+u)}if(d=xg(t,n,l),r?r.alias.push(d):(f||=d,f!==d&&f.alias.push(d),i&&e.name&&!Eg(d)&&o(e.name)),Ag(d)&&c(d),s.children){let e=s.children;for(let t=0;t{o(f)}:Um}function o(e){if(Rh(e)){let t=r.get(e);t&&(r.delete(e),n.splice(n.indexOf(t),1),t.children.forEach(o),t.alias.forEach(o))}else{let t=n.indexOf(e);t>-1&&(n.splice(t,1),e.record.name&&r.delete(e.record.name),e.children.forEach(o),e.alias.forEach(o))}}function s(){return n}function c(e){let t=Og(e,n);n.splice(t,0,e),e.record.name&&!Eg(e)&&r.set(e.record.name,e)}function l(e,t){let i,a={},o,s;if(`name`in e&&e.name){if(i=r.get(e.name),!i)throw Bh(U.MATCHER_NOT_FOUND,{location:e});s=i.record.name,a=H(Cg(t.params,i.keys.filter(e=>!e.optional).concat(i.parent?i.parent.keys.filter(e=>e.optional):[]).map(e=>e.name)),e.params&&Cg(e.params,i.keys.map(e=>e.name))),o=i.stringify(a)}else if(e.path!=null)o=e.path,i=n.find(e=>e.re.test(o)),i&&(a=i.parse(o),s=i.record.name);else{if(i=t.name?r.get(t.name):n.find(e=>e.re.test(t.path)),!i)throw Bh(U.MATCHER_NOT_FOUND,{location:e,currentLocation:t});s=i.record.name,a=H({},t.params,e.params),o=i.stringify(a)}let c=[],l=i;for(;l;)c.unshift(l.record),l=l.parent;return{name:s,path:o,params:a,matched:c,meta:Dg(c)}}e.forEach(e=>a(e));function u(){n.length=0,r.clear()}return{addRoute:a,resolve:l,removeRoute:o,clearRoutes:u,getRoutes:s,getRecordMatcher:i}}function Cg(e,t){let n={};for(let r of t)r in e&&(n[r]=e[r]);return n}function wg(e){let t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:Tg(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:`components`in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,`mods`,{value:{}}),t}function Tg(e){let t={},n=e.props||!1;if(`component`in e)t.default=n;else for(let r in e.components)t[r]=typeof n==`object`?n[r]:n;return t}function Eg(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Dg(e){return e.reduce((e,t)=>H(e,t.meta),{})}function Og(e,t){let n=0,r=t.length;for(;n!==r;){let i=n+r>>1;vg(e,t[i])<0?r=i:n=i+1}let i=kg(e);return i&&(r=t.lastIndexOf(i,r-1)),r}function kg(e){let t=e;for(;t=t.parent;)if(Ag(t)&&vg(e,t)===0)return t}function Ag({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function jg(e){let t=L(qh),n=L(Jh),r=B(()=>{let n=I(e.to);return t.resolve(n)}),i=B(()=>{let{matched:e}=r.value,{length:t}=e,i=e[t-1],a=n.matched;if(!i||!a.length)return-1;let o=a.findIndex(yh.bind(null,i));if(o>-1)return o;let s=Ig(e[t-2]);return t>1&&Ig(i)===s&&a[a.length-1].path!==s?a.findIndex(yh.bind(null,e[t-2])):o}),a=B(()=>i.value>-1&&Fg(n.params,r.value.params)),o=B(()=>i.value>-1&&i.value===n.matched.length-1&&bh(n.params,r.value.params));function s(n={}){if(Pg(n)){let n=t[I(e.replace)?`replace`:`push`](I(e.to)).catch(Um);return e.viewTransition&&typeof document<`u`&&`startViewTransition`in document&&document.startViewTransition(()=>n),n}return Promise.resolve()}return{route:r,href:B(()=>r.value.href),isActive:a,isExactActive:o,navigate:s}}function Mg(e){return e.length===1?e[0]:e}var Ng=$r({name:`RouterLink`,compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:`page`},viewTransition:Boolean},useLink:jg,setup(e,{slots:t}){let n=nn(jg(e)),{options:r}=L(qh),i=B(()=>({[Lg(e.activeClass,r.linkActiveClass,`router-link-active`)]:n.isActive,[Lg(e.exactActiveClass,r.linkExactActiveClass,`router-link-exact-active`)]:n.isExactActive}));return()=>{let r=t.default&&Mg(t.default(n));return e.custom?r:ic(`a`,{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:i.value},r)}}});function Pg(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){let t=e.currentTarget.getAttribute(`target`);if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function Fg(e,t){for(let n in t){let r=t[n],i=e[n];if(typeof r==`string`){if(r!==i)return!1}else if(!Wm(i)||i.length!==r.length||r.some((e,t)=>e.valueOf()!==i[t].valueOf()))return!1}return!0}function Ig(e){return e?e.aliasOf?e.aliasOf.path:e.path:``}var Lg=(e,t,n)=>e??t??n,Rg=$r({name:`RouterView`,inheritAttrs:!1,props:{name:{type:String,default:`default`},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){let r=L(Yh),i=B(()=>e.route||r.value),a=L(Kh,0),o=B(()=>{let e=I(a),{matched:t}=i.value,n;for(;(n=t[e])&&!n.components;)e++;return e}),s=B(()=>i.value.matched[o.value]);Ka(Kh,B(()=>o.value+1)),Ka(Gh,s),Ka(Yh,i);let c=hn();return $a(()=>[c.value,s.value,e.name],([e,t,n],[r,i,a])=>{t&&(t.instances[n]=e,i&&i!==t&&e&&e===r&&(t.leaveGuards.size||(t.leaveGuards=i.leaveGuards),t.updateGuards.size||(t.updateGuards=i.updateGuards))),e&&t&&(!i||!yh(t,i)||!r)&&(t.enterCallbacks[n]||[]).forEach(t=>t(e))},{flush:`post`}),()=>{let r=i.value,a=e.name,o=s.value,l=o&&o.components[a];if(!l)return zg(n.default,{Component:l,route:r});let u=o.props[a],d=ic(l,H({},u?u===!0?r.params:typeof u==`function`?u(r):u:null,t,{onVnodeUnmounted:e=>{e.component.isUnmounted&&(o.instances[a]=null)},ref:c}));return zg(n.default,{Component:d,route:r})||d}}});function zg(e,t){if(!e)return null;let n=e(t);return n.length===1?n[0]:n}var Bg=Rg;function Vg(e){let t=Sg(e.routes,e),n=e.parseQuery||Hh,r=e.stringifyQuery||Uh,i=e.history,a=Xh(),o=Xh(),s=Xh(),c=gn(wh),l=wh;zm&&e.scrollBehavior&&`scrollRestoration`in history&&(history.scrollRestoration=`manual`);let u=Hm.bind(null,e=>``+e),d=Hm.bind(null,dh),f=Hm.bind(null,fh);function p(e,n){let r,i;return Rh(e)?(r=t.getRecordMatcher(e),i=n):i=e,t.addRoute(i,r)}function m(e){let n=t.getRecordMatcher(e);n&&t.removeRoute(n)}function h(){return t.getRoutes().map(e=>e.record)}function g(e){return!!t.getRecordMatcher(e)}function _(e,a){if(a=H({},a||c.value),typeof e==`string`){let r=hh(n,e,a.path),o=t.resolve({path:r.path},a),s=i.createHref(r.fullPath);return H(r,o,{params:f(o.params),hash:fh(r.hash),redirectedFrom:void 0,href:s})}let o;if(e.path!=null)o=H({},e,{path:hh(n,e.path,a.path).path});else{let t=H({},e.params);for(let e in t)t[e]??delete t[e];o=H({},e,{params:d(t)}),a.params=d(a.params)}let s=t.resolve(o,a),l=e.hash||``;s.params=u(f(s.params));let p=gh(r,H({},e,{hash:sh(l),path:s.path})),m=i.createHref(p);return H({fullPath:p,hash:l,query:r===Uh?Wh(e.query):e.query||{}},s,{redirectedFrom:void 0,href:m})}function v(e){return typeof e==`string`?hh(n,e,c.value.path):H({},e)}function y(e,t){if(l!==e)return Bh(U.NAVIGATION_CANCELLED,{from:t,to:e})}function b(e){return C(e)}function x(e){return b(H(v(e),{replace:!0}))}function S(e,t){let n=e.matched[e.matched.length-1];if(n&&n.redirect){let{redirect:r}=n,i=typeof r==`function`?r(e,t):r;return typeof i==`string`&&(i=i.includes(`?`)||i.includes(`#`)?i=v(i):{path:i},i.params={}),H({query:e.query,hash:e.hash,params:i.path==null?e.params:{}},i)}}function C(e,t){let n=l=_(e),i=c.value,a=e.state,o=e.force,s=e.replace===!0,u=S(n,i);if(u)return C(H(v(u),{state:typeof u==`object`?H({},a,u.state):a,force:o,replace:s}),t||n);let d=n;d.redirectedFrom=t;let f;return!o&&vh(r,i,n)&&(f=Bh(U.NAVIGATION_DUPLICATED,{to:d,from:i}),se(i,i,!0,!1)),(f?Promise.resolve(f):E(d,i)).catch(e=>Vh(e)?Vh(e,U.NAVIGATION_GUARD_REDIRECT)?e:oe(e):ie(e,d,i)).then(e=>{if(e){if(Vh(e,U.NAVIGATION_GUARD_REDIRECT))return C(H({replace:s},v(e.to),{state:typeof e.to==`object`?H({},a,e.to.state):a,force:o}),t||d)}else e=O(d,i,!0,s,a);return D(d,i,e),e})}function w(e,t){let n=y(e,t);return n?Promise.reject(n):Promise.resolve()}function T(e){let t=le.values().next().value;return t&&typeof t.runWithContext==`function`?t.runWithContext(e):e()}function E(e,t){let n,[r,i,s]=$h(e,t);n=Qh(r.reverse(),`beforeRouteLeave`,e,t);for(let i of r)i.leaveGuards.forEach(r=>{n.push(Zh(r,e,t))});let c=w.bind(null,e,t);return n.push(c),ue(n).then(()=>{n=[];for(let r of a.list())n.push(Zh(r,e,t));return n.push(c),ue(n)}).then(()=>{n=Qh(i,`beforeRouteUpdate`,e,t);for(let r of i)r.updateGuards.forEach(r=>{n.push(Zh(r,e,t))});return n.push(c),ue(n)}).then(()=>{n=[];for(let r of s)if(r.beforeEnter)if(Wm(r.beforeEnter))for(let i of r.beforeEnter)n.push(Zh(i,e,t));else n.push(Zh(r.beforeEnter,e,t));return n.push(c),ue(n)}).then(()=>(e.matched.forEach(e=>e.enterCallbacks={}),n=Qh(s,`beforeRouteEnter`,e,t,T),n.push(c),ue(n))).then(()=>{n=[];for(let r of o.list())n.push(Zh(r,e,t));return n.push(c),ue(n)}).catch(e=>Vh(e,U.NAVIGATION_CANCELLED)?e:Promise.reject(e))}function D(e,t,n){s.list().forEach(r=>T(()=>r(e,t,n)))}function O(e,t,n,r,a){let o=y(e,t);if(o)return o;let s=t===wh,l=zm?history.state:{};n&&(r||s?i.replace(e.fullPath,H({scroll:s&&l&&l.scroll},a)):i.push(e.fullPath,a)),c.value=e,se(e,t,n,s),oe()}let k;function ee(){k||=i.listen((e,t,n)=>{if(!j.listening)return;let r=_(e),a=S(r,j.currentRoute.value);if(a){C(H(a,{replace:!0,force:!0}),r).catch(Um);return}l=r;let o=c.value;zm&&Fh(Nh(o.fullPath,n.delta),jh()),E(r,o).catch(e=>Vh(e,U.NAVIGATION_ABORTED|U.NAVIGATION_CANCELLED)?e:Vh(e,U.NAVIGATION_GUARD_REDIRECT)?(C(H(v(e.to),{force:!0}),r).then(e=>{Vh(e,U.NAVIGATION_ABORTED|U.NAVIGATION_DUPLICATED)&&!n.delta&&n.type===Th.pop&&i.go(-1,!1)}).catch(Um),Promise.reject()):(n.delta&&i.go(-n.delta,!1),ie(e,r,o))).then(e=>{e||=O(r,o,!1),e&&(n.delta&&!Vh(e,U.NAVIGATION_CANCELLED)?i.go(-n.delta,!1):n.type===Th.pop&&Vh(e,U.NAVIGATION_ABORTED|U.NAVIGATION_DUPLICATED)&&i.go(-1,!1)),D(r,o,e)}).catch(Um)})}let te=Xh(),ne=Xh(),re;function ie(e,t,n){oe(e);let r=ne.list();return r.length?r.forEach(r=>r(e,t,n)):console.error(e),Promise.reject(e)}function ae(){return re&&c.value!==wh?Promise.resolve():new Promise((e,t)=>{te.add([e,t])})}function oe(e){return re||(re=!e,ee(),te.list().forEach(([t,n])=>e?n(e):t()),te.reset()),e}function se(t,n,r,i){let{scrollBehavior:a}=e;if(!zm||!a)return Promise.resolve();let o=!r&&Ih(Nh(t.fullPath,0))||(i||!r)&&history.state&&history.state.scroll||null;return ir().then(()=>a(t,n,o)).then(e=>e&&Mh(e)).catch(e=>ie(e,t,n))}let ce=e=>i.go(e),A,le=new Set,j={currentRoute:c,listening:!0,addRoute:p,removeRoute:m,clearRoutes:t.clearRoutes,hasRoute:g,getRoutes:h,resolve:_,options:e,push:b,replace:x,go:ce,back:()=>ce(-1),forward:()=>ce(1),beforeEach:a.add,beforeResolve:o.add,afterEach:s.add,onError:ne.add,isReady:ae,install(e){e.component(`RouterLink`,Ng),e.component(`RouterView`,Bg),e.config.globalProperties.$router=j,Object.defineProperty(e.config.globalProperties,`$route`,{enumerable:!0,get:()=>I(c)}),zm&&!A&&c.value===wh&&(A=!0,b(i.location).catch(e=>{}));let t={};for(let e in wh)Object.defineProperty(t,e,{get:()=>c.value[e],enumerable:!0});e.provide(qh,j),e.provide(Jh,rn(t)),e.provide(Yh,c);let n=e.unmount;le.add(e),e.unmount=function(){le.delete(e),le.size<1&&(l=wh,k&&k(),k=null,c.value=wh,A=!1,re=!1),n()}}};function ue(e){return e.reduce((e,t)=>e.then(()=>T(t)),Promise.resolve())}return j}function Hg(e){return L(Jh)}var Ug=/(:\w+)\([^)]+\)/g,Wg=/(:\w+)[?+*]/g,Gg=/:\w+/g,Kg=(e,t)=>t.path.replace(Ug,`$1`).replace(Wg,`$1`).replace(Gg,t=>e.params[t.slice(1)]?.toString()||``);const qg=(e,t)=>{let n=e.route.matched.find(t=>t.components?.default===e.Component.type),r=t??n?.meta.key??(n&&Kg(e.route,n));return typeof r==`function`?r(e.route):r},Jg=(e,t)=>({default:()=>e?ic(Oi,e===!0?{}:e,t):t});function Yg(e){return Array.isArray(e)?e:[e]}var Xg=[{name:`logs`,path:`/logs`,component:()=>hm(()=>import(`./BcCfHRGF.js`),__vite__mapDeps([0,1,2,3,4,5,6,7]),import.meta.url)},{name:`index`,path:`/`,component:()=>hm(()=>import(`./ClreHnHz.js`),[],import.meta.url)},{name:`rules`,path:`/rules`,component:()=>hm(()=>import(`./FyhXtq99.js`),__vite__mapDeps([8,1,9,5,10,11,4,12,6]),import.meta.url)},{name:`setup`,path:`/setup`,meta:{layout:`default`},component:()=>hm(()=>import(`./_wGd0uNo.js`),__vite__mapDeps([13,1,9,5,10,4,12]),import.meta.url)},{name:`config`,path:`/config`,component:()=>hm(()=>import(`./CQvP8Dpa.js`),__vite__mapDeps([14,1,15,9,5,10,11,16,4,2,6]),import.meta.url)},{name:`proxies`,path:`/proxies`,component:()=>hm(()=>import(`./--pNTB9Q.js`),__vite__mapDeps([17,1,2,3,4,9,5,10,16,18,19,12,6]),import.meta.url)},{name:`overview`,path:`/overview`,component:()=>hm(()=>import(`./eu6oZm2g.js`),__vite__mapDeps([20,5,4,18,19,12,21,10,6]),import.meta.url)},{name:`connections`,path:`/connections`,component:()=>hm(()=>import(`./BoGeCRwk.js`),__vite__mapDeps([22,1,2,3,4,9,5,10,18,19,12,6]),import.meta.url)}];const Zg=(e,t)=>({default:()=>e?ic(Dc,e===!0?{}:e,t):t.default?.()});var Qg=/(:\w+)\([^)]+\)/g,$g=/(:\w+)[?+*]/g,e_=/:\w+/g;function t_(e){let t=e?.meta.key??e.path.replace(Qg,`$1`).replace($g,`$1`).replace(e_,t=>e.params[t.slice(1)]?.toString()||``);return typeof t==`function`?t(e):t}function n_(e,t){return e===t||t===wh?!1:t_(e)===t_(t)?!e.matched.every((e,n)=>e.components&&e.components.default===t.matched[n]?.components?.default):!0}var r_={scrollBehavior(e,t,n){let r=V(),i=If().options?.scrollBehaviorType??`auto`;if(e.path.replace(/\/$/,``)===t.path.replace(/\/$/,``))return t.hash&&!e.hash?{left:0,top:0}:e.hash?{el:e.hash,top:i_(e.hash),behavior:i}:!1;if((typeof e.meta.scrollToTop==`function`?e.meta.scrollToTop(e,t):e.meta.scrollToTop)===!1)return!1;let a=r._runningTransition?`page:transition:finish`:`page:loading:end`;return new Promise(o=>{if(t===wh){o(a_(e,t,n,i));return}r.hooks.hookOnce(a,()=>{requestAnimationFrame(()=>o(a_(e,t,n,i)))})})}};function i_(e){try{let t=document.querySelector(e);if(t)return(Number.parseFloat(getComputedStyle(t).scrollMarginTop)||0)+(Number.parseFloat(getComputedStyle(document.documentElement).scrollPaddingTop)||0)}catch{}return 0}function a_(e,t,n,r){if(n)return n;let i=n_(e,t);return e.hash?{el:e.hash,top:i_(e.hash),behavior:i?r:`instant`}:{left:0,top:0}}var o_={hashMode:!0,scrollBehaviorType:`auto`,...r_},s_=Rf(async(e,t)=>{let n,r;if(!e.meta?.validate)return;let i=([n,r]=nf(()=>Promise.resolve(e.meta.validate(e))),n=await n,r(),n);if(i===!0)return;let a=Kf({fatal:!0,statusCode:i&&i.statusCode||404,statusMessage:i&&i.statusMessage||`Page Not Found: ${e.fullPath}`,data:{path:e.fullPath}});return typeof window<`u`&&window.history.pushState({},``,t.fullPath),a},1);function c_(e,t){return Be()?(Ve(e,t),!0):!1}var l_=new WeakMap,u_=(...e)=>{let t=e[0],n=Rs()?.proxy??Be();if(n==null&&!qa())throw Error(`injectLocal must be called in setup`);return n&&l_.has(n)&&t in l_.get(n)?l_.get(n)[t]:L(...e)},d_=typeof window<`u`&&typeof document<`u`;typeof WorkerGlobalScope<`u`&&globalThis instanceof WorkerGlobalScope;var f_=Object.prototype.toString,p_=e=>f_.call(e)===`[object Object]`,m_=()=>{};function h_(...e){if(e.length!==1)return On(...e);let t=e[0];return typeof t==`function`?an(wn(()=>({get:t,set:m_}))):hn(t)}function g_(e,t){function n(...n){return new Promise((r,i)=>{Promise.resolve(e(()=>t.apply(this,n),{fn:t,thisArg:this,args:n})).then(r).catch(i)})}return n}var __=e=>e();function v_(e=__,t={}){let{initialState:n=`active`}=t,r=h_(n===`active`);function i(){r.value=!1}function a(){r.value=!0}return{isActive:an(r),pause:i,resume:a,eventFilter:(...t)=>{r.value&&e(...t)}}}function y_(e){return e.endsWith(`rem`)?Number.parseFloat(e)*16:Number.parseFloat(e)}function b_(e){return Array.isArray(e)?e:[e]}function x_(e){return e||Rs()}function S_(e,t,n={}){let{eventFilter:r=__,...i}=n;return $a(e,g_(r,t),i)}function C_(e,t,n={}){let{eventFilter:r,initialState:i=`active`,...a}=n,{eventFilter:o,pause:s,resume:c,isActive:l}=v_(r,{initialState:i});return{stop:S_(e,t,{...a,eventFilter:o}),pause:s,resume:c,isActive:l}}var w_=C_;function T_(e,t=!0,n){x_(n)?zi(e,n):t?e():ir(e)}function E_(e,t,n){return $a(e,t,{...n,immediate:!0})}var D_=d_?window:void 0,O_=d_?window.document:void 0;d_&&window.navigator,d_&&window.location;function k_(e){let t=bn(e);return t?.$el??t}function A_(...e){let t=(e,t,n,r)=>(e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)),n=B(()=>{let t=b_(bn(e[0])).filter(e=>e!=null);return t.every(e=>typeof e!=`string`)?t:void 0});return E_(()=>[n.value?.map(e=>k_(e))??[D_].filter(e=>e!=null),b_(bn(n.value?e[1]:e[0])),b_(I(n.value?e[2]:e[1])),bn(n.value?e[3]:e[2])],([e,n,r,i],a,o)=>{if(!e?.length||!n?.length||!r?.length)return;let s=p_(i)?{...i}:i,c=e.flatMap(e=>n.flatMap(n=>r.map(r=>t(e,n,r,s))));o(()=>{c.forEach(e=>e())})},{flush:`post`})}function j_(){let e=gn(!1),t=Rs();return t&&zi(()=>{e.value=!0},t),e}function M_(e){let t=j_();return B(()=>(t.value,!!e()))}var N_=Symbol(`vueuse-ssr-width`);function P_(){let e=qa()?u_(N_,null):null;return typeof e==`number`?e:void 0}function F_(e,t={}){let{window:n=D_,ssrWidth:r=P_()}=t,i=M_(()=>n&&`matchMedia`in n&&typeof n.matchMedia==`function`),a=gn(typeof r==`number`),o=gn(),s=gn(!1);return Xa(()=>{if(a.value){a.value=!i.value,s.value=bn(e).split(`,`).some(e=>{let t=e.includes(`not all`),n=e.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/),i=e.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/),a=!!(n||i);return n&&a&&(a=r>=y_(n[1])),i&&a&&(a=r<=y_(i[1])),t?!a:a});return}i.value&&(o.value=n.matchMedia(bn(e)),s.value=o.value.matches)}),A_(o,`change`,e=>{s.value=e.matches},{passive:!0}),B(()=>s.value)}var I_=typeof globalThis<`u`?globalThis:typeof window<`u`?window:typeof global<`u`?global:typeof self<`u`?self:{},L_=`__vueuse_ssr_handlers__`,R_=z_();function z_(){return L_ in I_||(I_[L_]=I_[L_]||{}),I_[L_]}function B_(e,t){return R_[e]||t}function V_(e){return F_(`(prefers-color-scheme: dark)`,e)}function H_(e){return e==null?`any`:e instanceof Set?`set`:e instanceof Map?`map`:e instanceof Date?`date`:typeof e==`boolean`?`boolean`:typeof e==`string`?`string`:typeof e==`object`?`object`:Number.isNaN(e)?`any`:`number`}var U_={boolean:{read:e=>e===`true`,write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}},W_=`vueuse-storage`;function G_(e,t,n,r={}){let{flush:i=`pre`,deep:a=!0,listenToStorageChanges:o=!0,writeDefaults:s=!0,mergeDefaults:c=!1,shallow:l,window:u=D_,eventFilter:d,onError:f=e=>{console.error(e)},initOnMounted:p}=r,m=(l?gn:hn)(typeof t==`function`?t():t),h=B(()=>bn(e));if(!n)try{n=B_(`getDefaultStorage`,()=>D_?.localStorage)()}catch(e){f(e)}if(!n)return m;let g=bn(t),_=H_(g),v=r.serializer??U_[_],{pause:y,resume:b}=w_(m,e=>C(e),{flush:i,deep:a,eventFilter:d});$a(h,()=>T(),{flush:i});let x=!1;u&&o&&(n instanceof Storage?A_(u,`storage`,e=>{p&&!x||T(e)},{passive:!0}):A_(u,W_,e=>{p&&!x||E(e)})),p?T_(()=>{x=!0,T()}):T();function S(e,t){if(u){let r={key:h.value,oldValue:e,newValue:t,storageArea:n};u.dispatchEvent(n instanceof Storage?new StorageEvent(`storage`,r):new CustomEvent(W_,{detail:r}))}}function C(e){try{let t=n.getItem(h.value);if(e==null)S(t,null),n.removeItem(h.value);else{let r=v.write(e);t!==r&&(n.setItem(h.value,r),S(t,r))}}catch(e){f(e)}}function w(e){let t=e?e.newValue:n.getItem(h.value);if(t==null)return s&&g!=null&&n.setItem(h.value,v.write(g)),g;if(!e&&c){let e=v.read(t);return typeof c==`function`?c(e,g):_===`object`&&!Array.isArray(e)?{...g,...e}:e}else if(typeof t!=`string`)return t;else return v.read(t)}function T(e){if(!(e&&e.storageArea!==n)){if(e&&e.key==null){m.value=g;return}if(!(e&&e.key!==h.value)){y();try{let t=v.write(m.value);(e===void 0||e?.newValue!==t)&&(m.value=w(e))}catch(e){f(e)}finally{e?ir(b):b()}}}}function E(e){T(e.detail)}return m}function K_(e,t,n={}){let{window:r=D_}=n;return G_(e,t,r?.localStorage,n)}function q_(e={}){let{window:t=D_,initialWidth:n=1/0,initialHeight:r=1/0,listenOrientation:i=!0,includeScrollbar:a=!0,type:o=`inner`}=e,s=gn(n),c=gn(r),l=()=>{if(t)if(o===`outer`)s.value=t.outerWidth,c.value=t.outerHeight;else if(o===`visual`&&t.visualViewport){let{width:e,height:n,scale:r}=t.visualViewport;s.value=Math.round(e*r),c.value=Math.round(n*r)}else a?(s.value=t.innerWidth,c.value=t.innerHeight):(s.value=t.document.documentElement.clientWidth,c.value=t.document.documentElement.clientHeight)};l(),T_(l);let u={passive:!0};return A_(`resize`,l,u),t&&o===`visual`&&t.visualViewport&&A_(t.visualViewport,`resize`,l,u),i&&$a(F_(`(orientation: portrait)`),()=>l()),{width:s,height:c}}const J_=Tp(`endpoint`,()=>{let e=K_(`selectedEndpoint`,``),t=K_(`endpointList`,[]),n=B(()=>t.value.find(({id:t})=>t===e.value));return{selectedEndpoint:e,endpointList:t,currentEndpoint:n,wsEndpointURL:B(()=>{let e=n.value;return e?new URL(e.url).href.replace(`http`,`ws`).replace(/\/$/,``):``}),setSelectedEndpoint:t=>{e.value=t},setEndpointList:e=>{t.value=e},addEndpoint:e=>{t.value=[e,...t.value]},removeEndpoint:n=>{t.value=t.value.filter(e=>e.id!==n),e.value===n&&(e.value=``)},updateEndpoint:(e,n)=>{let r=t.value.findIndex(t=>t.id===e),i=t.value[r];r!==-1&&i&&(t.value[r]={...i,...n})}}}),Y_=[s_,Rf(e=>{if(gf().public.mockMode)return;let t=!!J_().currentEndpoint;if(e.path!==`/setup`&&!t)return Bf(`/setup`,{replace:!0})}),Rf(async e=>{let t,n,r=([t,n]=nf(()=>bm({path:e.path})),t=await t,n(),t);if(r.redirect){let t=r.redirect.includes(`#`)?r.redirect:r.redirect+e.hash;return Qu(t,{acceptRelative:!0})?(window.location.href=t,!1):t}},1)],X_={};function Z_(e,t,n){let{pathname:r,search:i,hash:a}=t,o=e.indexOf(`#`);if(o>-1){let t=a.includes(e.slice(o))?e.slice(o).length:1,n=a.slice(t);return n[0]!==`/`&&(n=`/`+n),id(n,``)}let s=id(r,e),c=!n||ud(s,n)?s:n;return c+(c.includes(`?`)?``:i)+a}var Q_=ff({name:`nuxt:router`,enforce:`pre`,async setup(e){let t,n,r=gf().app.baseURL;r.includes(`#`)||(r+=`#`);let i=o_.history?.(r)??og(r),a=o_.routes?([t,n]=nf(()=>o_.routes(Xg)),t=await t,n(),t)??Xg:Xg,o,s=Vg({...o_,scrollBehavior:(e,t,n)=>{if(t===wh){o=n;return}if(o_.scrollBehavior){if(s.options.scrollBehavior=o_.scrollBehavior,`scrollRestoration`in window.history){let e=s.beforeEach(()=>{e(),window.history.scrollRestoration=`manual`})}return o_.scrollBehavior(e,wh,o||n)}},history:i,routes:a});`scrollRestoration`in window.history&&(window.history.scrollRestoration=`auto`),e.vueApp.use(s);let c=gn(s.currentRoute.value);s.afterEach((e,t)=>{c.value=t}),Object.defineProperty(e.vueApp.config.globalProperties,`previousRoute`,{get:()=>c.value});let l=Z_(r,window.location,e.payload.path),u=gn(s.currentRoute.value),d=()=>{u.value=s.currentRoute.value};s.afterEach((e,t)=>{e.matched.at(-1)?.components?.default===t.matched.at(-1)?.components?.default&&d()});let f={sync:d};for(let e in u.value)Object.defineProperty(f,e,{get:()=>u.value[e],enumerable:!0});e._route=rn(f),e._middleware||={global:[],named:{}};let p=Hf();s.afterEach(async(t,n,r)=>{delete e._processingMiddleware,!e.isHydrating&&p.value&&await e.runWithContext(Wf),r&&await e.callHook(`page:loading:end`)});try{[t,n]=nf(()=>s.isReady()),await t,n()}catch(r){[t,n]=nf(()=>e.runWithContext(()=>Uf(r))),await t,n()}let m=l===s.currentRoute.value.fullPath?s.currentRoute.value:s.resolve(l);d();let h=e.payload.state._layout;return s.beforeEach(async(t,n)=>{await e.callHook(`page:loading:start`),t.meta=nn(t.meta),e.isHydrating&&h&&!ln(t.meta.layout)&&(t.meta.layout=h),e._processingMiddleware=!0;{let r=new Set([...Y_,...e._middleware.global]);for(let e of t.matched){let t=e.meta.middleware;if(t)for(let e of Yg(t))r.add(e)}{let n=await e.runWithContext(()=>bm({path:t.path}));if(n.appMiddleware)for(let e in n.appMiddleware)n.appMiddleware[e]?r.add(e):r.delete(e)}for(let i of r){let r=typeof i==`string`?e._middleware.named[i]||await X_[i]?.().then(e=>e.default||e):i;if(!r)throw Error(`Unknown route middleware: '${i}'.`);try{let i=await e.runWithContext(()=>r(t,n));if(!e.payload.serverRendered&&e.isHydrating&&(i===!1||i instanceof Error)){let t=i||Kf({statusCode:404,statusMessage:`Page Not Found: ${l}`});return await e.runWithContext(()=>Uf(t)),!1}if(i===!0)continue;if(i===!1)return i;if(i)return Gf(i)&&i.fatal&&await e.runWithContext(()=>Uf(i)),i}catch(t){let n=Kf(t);return n.fatal&&await e.runWithContext(()=>Uf(n)),n}}}}),s.onError(async()=>{delete e._processingMiddleware,await e.callHook(`page:loading:end`)}),s.afterEach(t=>{if(t.matched.length===0)return e.runWithContext(()=>Uf(Kf({statusCode:404,fatal:!1,statusMessage:`Page not found: ${t.fullPath}`,data:{path:t.fullPath}})))}),e.hooks.hookOnce(`app:created`,async()=>{try{`name`in m&&(m.name=void 0),await s.replace({...m,force:!0}),s.options.scrollBehavior=o_.scrollBehavior}catch(t){await e.runWithContext(()=>Uf(t))}}),{provide:{router:s}}}},1);const $_=globalThis.requestIdleCallback||(e=>{let t=Date.now(),n={didTimeout:!1,timeRemaining:()=>Math.max(0,50-(Date.now()-t))};return setTimeout(()=>{e(n)},1)}),ev=globalThis.cancelIdleCallback||(e=>{clearTimeout(e)}),tv=e=>{let t=V();t.isHydrating?t.hooks.hookOnce(`app:suspense:resolve`,()=>{$_(()=>e())}):$_(()=>e())};var nv=ff({name:`nuxt:payload`,setup(e){let t=new Set;If().beforeResolve(async(n,r)=>{if(n.path===r.path)return;let i=await xm(n.path);if(i){for(let n of t)delete e.static.data[n];for(let n in i.data)n in e.static.data||t.add(n),e.static.data[n]=i.data[n]}}),tv(()=>{e.hooks.hook(`link:prefetch`,async e=>{let{hostname:t}=new URL(e,window.location.href);t===window.location.hostname&&await xm(e).catch(()=>{console.warn(`[nuxt] Error preloading payload for`,e)})}),navigator.connection?.effectiveType!==`slow-2g`&&setTimeout(ym,1e3)})}}),rv=ff(()=>{let e=If();tv(()=>{e.beforeResolve(async()=>{await new Promise(e=>{setTimeout(e,100),requestAnimationFrame(()=>{setTimeout(e,0)})})})})}),iv=ff(e=>{let t;async function n(){let r;try{r=await ym()}catch(e){let t=e;if(!(`status`in t&&(t.status===404||t.status===403)))throw t}t&&clearTimeout(t),t=setTimeout(n,of);try{let n=await $fetch(Rd(`builds/latest.json`)+`?${Date.now()}`);n.id!==r?.id&&(e.hooks.callHook(`app:manifest:update`,n),t&&clearTimeout(t))}catch{}}tv(()=>{t=setTimeout(n,of)})});function av(e={}){let t=e.path||window.location.pathname,n={};try{n=Du(sessionStorage.getItem(`nuxt:reload`)||`{}`)}catch{}if(e.force||n?.path!==t||n?.expires{r.clear()}),e.hook(`app:chunkError`,({error:e})=>{r.add(e)});function i(e){av({path:cd(n.app.baseURL,e.fullPath),persistState:!0})}e.hook(`app:manifest:update`,()=>{t.beforeResolve(i)}),t.onError((e,t)=>{r.has(e)&&i(t)})}});function sv(e){return typeof e==`string`?`'${e}'`:new cv().serialize(e)}var cv=function(){class e{#e=new Map;compare(e,t){let n=typeof e,r=typeof t;return n===`string`&&r===`string`?e.localeCompare(t):n===`number`&&r===`number`?e-t:String.prototype.localeCompare.call(this.serialize(e,!0),this.serialize(t,!0))}serialize(e,t){if(e===null)return`null`;switch(typeof e){case`string`:return t?e:`'${e}'`;case`bigint`:return`${e}n`;case`object`:return this.$object(e);case`function`:return this.$function(e)}return String(e)}serializeObject(e){let t=Object.prototype.toString.call(e);if(t!==`[object Object]`)return this.serializeBuiltInType(t.length<10?`unknown:${t}`:t.slice(8,-1),e);let n=e.constructor,r=n===Object||n===void 0?``:n.name;if(r!==``&&globalThis[r]===n)return this.serializeBuiltInType(r,e);if(typeof e.toJSON==`function`){let t=e.toJSON();return r+(typeof t==`object`&&t?this.$object(t):`(${this.serialize(t)})`)}return this.serializeObjectEntries(r,Object.entries(e))}serializeBuiltInType(e,t){let n=this[`$`+e];if(n)return n.call(this,t);if(typeof t?.entries==`function`)return this.serializeObjectEntries(e,t.entries());throw Error(`Cannot serialize ${e}`)}serializeObjectEntries(e,t){let n=Array.from(t).sort((e,t)=>this.compare(e[0],t[0])),r=`${e}{`;for(let e=0;ethis.compare(e,t)))}`}$Map(e){return this.serializeObjectEntries(`Map`,e.entries())}}for(let t of[`Error`,`RegExp`,`URL`])e.prototype[`$`+t]=function(e){return`${t}(${e})`};for(let t of[`Int8Array`,`Uint8Array`,`Uint8ClampedArray`,`Int16Array`,`Uint16Array`,`Int32Array`,`Uint32Array`,`Float32Array`,`Float64Array`])e.prototype[`$`+t]=function(e){return`${t}[${e.join(`,`)}]`};for(let t of[`BigInt64Array`,`BigUint64Array`])e.prototype[`$`+t]=function(e){return`${t}[${e.join(`n,`)}${e.length>0?`n`:``}]`};return e}();function lv(e,t){return e===t||sv(e)===sv(t)}var uv=`$s`;function dv(...e){let t=typeof e[e.length-1]==`string`?e.pop():void 0;typeof e[0]!=`string`&&e.unshift(t);let[n,r]=e;if(!n||typeof n!=`string`)throw TypeError(`[nuxt] [useState] key must be a string: `+n);if(r!==void 0&&typeof r!=`function`)throw Error(`[nuxt] [useState] init must be a function: `+r);let i=uv+n,a=V(),o=On(a.payload.state,i);if(o.value===void 0&&r){let e=r();if(F(e))return a.payload.state[i]=e,e;o.value=e}return o}function fv(e,t){if(typeof e!=`string`)throw TypeError(`argument str must be a string`);let n={},r=t||{},i=r.decode||pv,a=0;for(;aDu(decodeURIComponent(e)),encode:e=>encodeURIComponent(typeof e==`string`?e:JSON.stringify(e))},bv=globalThis.cookieStore;function xv(e,t){let n={...yv,...t};n.filter??=t=>t===e;let r=Sv(n)||{},i;n.maxAge===void 0?n.expires&&(i=n.expires.getTime()-Date.now()):i=n.maxAge*1e3;let a=i!==void 0&&i<=0,o=a||r[e]===void 0||r[e]===null,s=vv(a?void 0:r[e]??n.default?.()),c=i&&!a?Ev(s,i,n.watch&&n.watch!==`shallow`):hn(s);{let t=null;try{!bv&&typeof BroadcastChannel<`u`&&(t=new BroadcastChannel(`nuxt:cookies:${e}`))}catch{}let i=(i=!1)=>{!i&&(n.readonly||lv(c.value,r[e]))||(wv(e,c.value,n),r[e]=vv(c.value),t?.postMessage({value:n.encode(c.value)}))},a=t=>{let i=t.refresh?Sv(n)?.[e]:n.decode(t.value);s=!0,c.value=i,r[e]=vv(i),ir(()=>{s=!1})},s=!1,l=!!Be();if(l&&Ve(()=>{s=!0,i(),t?.close()}),bv){let t=t=>{let n=t.changed.find(t=>t.name===e),r=t.deleted.find(t=>t.name===e);n&&a({value:n.value}),r&&a({value:null})};bv.addEventListener(`change`,t),l&&Ve(()=>bv.removeEventListener(`change`,t))}else t&&(t.onmessage=({data:e})=>a(e));n.watch&&$a(c,()=>{s||i()},{deep:n.watch!==`shallow`}),o&&i(o)}return c}function Sv(e={}){return fv(document.cookie,e)}function Cv(e,t,n={}){return t==null?gv(e,t,{...n,maxAge:-1}):gv(e,t,n)}function wv(e,t,n={}){document.cookie=Cv(e,t,n)}var Tv=2147483647;function Ev(e,t,n){let r,i,a=0,o=n?hn(e):{value:e};return Be()&&Ve(()=>{i?.(),clearTimeout(r)}),wn((e,s)=>{n&&(i=$a(o,s));function c(){a=0,clearTimeout(r);let e=t-a,n=e{if(a+=n,a4)return Promise.all(i).then(()=>Ov(e,t));t._routePreloaded.add(n);for(let e of r){let t=e.components?.default;if(typeof t!=`function`)continue;let n=Promise.resolve(t()).catch(()=>{}).finally(()=>i.splice(i.indexOf(n)));i.push(n)}await Promise.all(i)}function kv(e){return new URL(globalThis.location.href)}var Av=(...e)=>e.find(e=>e!==void 0);function jv(e){let t=e.componentName||`NuxtLink`;function n(e){return!1}function r(t,n,r){let i=r??e.trailingSlash;if(!t||i!==`append`&&i!==`remove`)return t;if(typeof t==`string`)return Nv(t,i);let a=`path`in t&&t.path!==void 0?t.path:n(t).path;return{...t,name:void 0,path:Nv(a,i)}}function i(t){let i=If(),a=gf(),o=B(()=>!!t.target&&t.target!==`_self`),s=B(()=>{let e=t.to||t.href||``;return typeof e==`string`&&Qu(e,{acceptRelative:!0})}),c=Xi(`RouterLink`),l=c&&typeof c!=`string`?c.useLink:void 0,u=B(()=>{if(t.external)return!0;let e=t.to||t.href||``;return typeof e==`object`?!1:e===``||s.value}),d=B(()=>{let e=t.to||t.href||``;return u.value?e:r(e,i.resolve,t.trailingSlash)}),f=u.value?void 0:l?.({...t,to:d}),p=B(()=>{let r=t.trailingSlash??e.trailingSlash;if(!d.value||s.value||n(d.value))return d.value;if(u.value){let e=typeof d.value==`object`&&`path`in d.value?Vf(d.value):d.value;return Nv(typeof e==`object`?i.resolve(e).href:e,r)}return typeof d.value==`object`?i.resolve(d.value)?.href??null:Nv(cd(a.app.baseURL,d.value),r)});return{to:d,hasTarget:o,isAbsoluteUrl:s,isExternal:u,href:p,isActive:f?.isActive??B(()=>d.value===i.currentRoute.value.path),isExactActive:f?.isExactActive??B(()=>d.value===i.currentRoute.value.path),route:f?.route??B(()=>i.resolve(d.value)),async navigate(e){await Bf(p.value,{replace:t.replace,external:u.value||o.value})}}}return $r({name:t,props:{to:{type:[String,Object],default:void 0,required:!1},href:{type:[String,Object],default:void 0,required:!1},target:{type:String,default:void 0,required:!1},rel:{type:String,default:void 0,required:!1},noRel:{type:Boolean,default:void 0,required:!1},prefetch:{type:Boolean,default:void 0,required:!1},prefetchOn:{type:[String,Object],default:void 0,required:!1},noPrefetch:{type:Boolean,default:void 0,required:!1},activeClass:{type:String,default:void 0,required:!1},exactActiveClass:{type:String,default:void 0,required:!1},prefetchedClass:{type:String,default:void 0,required:!1},replace:{type:Boolean,default:void 0,required:!1},ariaCurrentValue:{type:String,default:void 0,required:!1},external:{type:Boolean,default:void 0,required:!1},custom:{type:Boolean,default:void 0,required:!1},trailingSlash:{type:String,default:void 0,required:!1}},useLink:i,setup(t,{slots:r}){let a=If(),{to:o,href:s,navigate:c,isExternal:l,hasTarget:u,isAbsoluteUrl:d}=i(t),f=gn(!1),p=hn(null),m=e=>{p.value=t.custom?e?.$el?.nextElementSibling:e?.$el};function h(n){return!f.value&&(typeof t.prefetchOn==`string`?t.prefetchOn===n:t.prefetchOn?.[n]??e.prefetchOn?.[n])&&(t.prefetch??e.prefetch)!==!1&&t.noPrefetch!==!0&&t.target!==`_blank`&&!Iv()}async function g(e=V()){if(f.value)return;f.value=!0;let t=typeof o.value==`string`?o.value:l.value?Vf(o.value):a.resolve(o.value).fullPath,n=l.value?new URL(t,window.location.href).href:t;await Promise.all([e.hooks.callHook(`link:prefetch`,n).catch(()=>{}),!l.value&&!u.value&&Ov(o.value,a).catch(()=>{})])}if(h(`visibility`)){let e=V(),t,n=null;zi(()=>{let r=Pv();tv(()=>{t=$_(()=>{p?.value?.tagName&&(n=r.observe(p.value,async()=>{n?.(),n=null,await g(e)}))})})}),Hi(()=>{t&&ev(t),n?.(),n=null})}return()=>{if(!l.value&&!u.value&&!n(o.value)){let n={ref:m,to:o.value,activeClass:t.activeClass||e.activeClass,exactActiveClass:t.exactActiveClass||e.exactActiveClass,replace:t.replace,ariaCurrentValue:t.ariaCurrentValue,custom:t.custom};return t.custom||(h(`interaction`)&&(n.onPointerenter=g.bind(null,void 0),n.onFocus=g.bind(null,void 0)),f.value&&(n.class=t.prefetchedClass||e.prefetchedClass),n.rel=t.rel||void 0),ic(Xi(`RouterLink`),n,r.default)}let i=t.target||null,_=Av(t.noRel?``:t.rel,e.externalRelAttribute,d.value||u.value?`noopener noreferrer`:``)||null;return t.custom?r.default?r.default({href:s.value,navigate:c,prefetch:g,get route(){if(!s.value)return;let e=new URL(s.value,window.location.href);return{path:e.pathname,fullPath:e.pathname,get query(){return Uu(e.search)},hash:e.hash,params:{},name:void 0,matched:[],redirectedFrom:void 0,meta:{},href:s.value}},rel:_,target:i,isExternal:l.value||u.value,isActive:!1,isExactActive:!1}):null:ic(`a`,{ref:p,href:s.value||null,rel:_,target:i,onClick:e=>{if(!(l.value||u.value))return e.preventDefault(),t.replace?a.replace(s.value):a.push(s.value)}},r.default?.())}}})}var Mv=jv(af);function Nv(e,t){let n=t===`append`?nd:td;return Qu(e)&&!e.startsWith(`http`)?e:n(e,!0)}function Pv(){let e=V();if(e._observer)return e._observer;let t=null,n=new Map;return e._observer={observe:(e,r)=>(t||=new IntersectionObserver(e=>{for(let t of e){let e=n.get(t.target);(t.isIntersecting||t.intersectionRatio>0)&&e&&e()}}),n.set(e,r),t.observe(e),()=>{n.delete(e),t?.unobserve(e),n.size===0&&(t?.disconnect(),t=null)})}}var Fv=/2g/;function Iv(){let e=navigator.connection;return!!(e&&(e.saveData||Fv.test(e.effectiveType)))}var Lv=ff({name:`pinia`,setup(e){let t=dp();return e.vueApp.use(t),Yf(t),e.payload&&e.payload.pinia&&(t.state.value=e.payload.pinia),{provide:{pinia:t}}},hooks:{"app:rendered"(){let e=V();e.payload.pinia=P(e.$pinia).state.value,Yf(void 0)}}}),Rv=ff({name:`nuxt:global-components`}),zv={blank:Ti(()=>hm(()=>import(`./DWyhZVzp.js`),__vite__mapDeps([23,5,6,19]),import.meta.url).then(e=>e.default||e)),default:Ti(()=>hm(()=>import(`./0ZQUESsj.js`),__vite__mapDeps([24,15,9,5,10,11,16,4,18,19,12,21,6,7]),import.meta.url).then(e=>e.default||e))},Bv=ff({name:`nuxt:prefetch`,setup(e){let t=If();e.hooks.hook(`app:mounted`,()=>{t.beforeEach(async e=>{let t=e?.meta?.layout;t&&typeof zv[t]==`function`&&await zv[t]()})}),e.hooks.hook(`link:prefetch`,e=>{if(Qu(e))return;let n=t.resolve(e);if(!n)return;let r=n.meta.layout,i=Yg(n.meta.middleware);i=i.filter(e=>typeof e==`string`);for(let e of i)typeof X_[e]==`function`&&X_[e]();typeof r==`string`&&r in zv&&Dv(zv[r])})}});function Vv(e,t){typeof console<`u`&&(console.warn(`[intlify] `+e),t&&console.warn(t.stack))}var Hv=typeof window<`u`,Uv=(e,t=!1)=>t?Symbol.for(e):Symbol(e),Wv=(e,t,n)=>Gv({l:e,k:t,s:n}),Gv=e=>JSON.stringify(e).replace(/\u2028/g,`\\u2028`).replace(/\u2029/g,`\\u2029`).replace(/\u0027/g,`\\u0027`),Kv=e=>typeof e==`number`&&isFinite(e),qv=e=>ay(e)===`[object Date]`,Jv=e=>ay(e)===`[object RegExp]`,Yv=e=>X(e)&&Object.keys(e).length===0,Xv=Object.assign,Zv=Object.create,W=(e=null)=>Zv(e);function Qv(e){return e.replace(/&/g,`&`).replace(//g,`>`).replace(/"/g,`"`).replace(/'/g,`'`).replace(/\//g,`/`).replace(/=/g,`=`)}function $v(e){return e.replace(/&(?![a-zA-Z0-9#]{2,6};)/g,`&`).replace(/"/g,`"`).replace(/'/g,`'`).replace(//g,`>`)}function ey(e){return e=e.replace(/(\w+)\s*=\s*"([^"]*)"/g,(e,t,n)=>`${t}="${$v(n)}"`),e=e.replace(/(\w+)\s*=\s*'([^']*)'/g,(e,t,n)=>`${t}='${$v(n)}'`),/\s*on\w+\s*=\s*["']?[^"'>]+["']?/gi.test(e)&&(e=e.replace(/(\s+)(on)(\w+\s*=)/gi,`$1on$3`)),[/(\s+(?:href|src|action|formaction)\s*=\s*["']?)\s*javascript:/gi,/(style\s*=\s*["'][^"']*url\s*\(\s*)javascript:/gi].forEach(t=>{e=e.replace(t,`$1javascript:`)}),e}var ty=Object.prototype.hasOwnProperty;function ny(e,t){return ty.call(e,t)}var G=Array.isArray,K=e=>typeof e==`function`,q=e=>typeof e==`string`,J=e=>typeof e==`boolean`,Y=e=>typeof e==`object`&&!!e,ry=e=>Y(e)&&K(e.then)&&K(e.catch),iy=Object.prototype.toString,ay=e=>iy.call(e),X=e=>ay(e)===`[object Object]`,oy=e=>e==null?``:G(e)||X(e)&&e.toString===iy?JSON.stringify(e,null,2):String(e);function sy(e,t=``){return e.reduce((e,n,r)=>r===0?e+n:e+t+n,``)}var cy=e=>!Y(e)||G(e);function ly(e,t){if(cy(e)||cy(t))throw Error(`Invalid value`);let n=[{src:e,des:t}];for(;n.length;){let{src:e,des:t}=n.pop();Object.keys(e).forEach(r=>{r!==`__proto__`&&(Y(e[r])&&!Y(t[r])&&(t[r]=Array.isArray(e[r])?[]:W()),cy(t[r])||cy(e[r])?t[r]=e[r]:n.push({src:e[r],des:t[r]}))})}}function uy(e,t=e.getCurrentLanguage(),n=e.getCurrentDirection()){let r={htmlAttrs:{},link:[],meta:[]};if(e.dir&&(r.htmlAttrs.dir=n),e.lang&&t&&(r.htmlAttrs.lang=t),e.seo){let t=fy(e);r.link=r.link.concat(t,hy(e)),r.meta=r.meta.concat(_y(e),vy(e),yy(e,e.locales.map(e=>e.language||e.code)))}return r}function dy(e){let t=new Map;for(let n of e){if(!n.language){console.warn("Locale `language` ISO code is required to generate alternate link");continue}let[e,r]=n.language.split(`-`);e&&r&&(n.isCatchallLocale||!t.has(e))&&t.set(e,n),t.set(n.language,n)}return t}function fy(e){if(!e.hreflangLinks)return[];let t=[],n=dy(e.locales);for(let[r,i]of n.entries()){let n=py(r,i,e);n&&(t.push(n),e.defaultLocale&&e.defaultLocale===i.code&&t[0].hreflang!==`x-default`&&t.unshift({[e.key]:`i18n-xd`,rel:`alternate`,href:n.href,hreflang:`x-default`}))}return t}function py(e,t,n,r=n.strictCanonicals?n.getRouteWithoutQuery():void 0){let i=n.getLocalizedRoute(t.code,r);if(!i)return;let a=ad(Qu(i)?i:cd(n.baseUrl,i),n.strictCanonicals?gy(n):{});return{[n.key]:`i18n-alt-${e}`,rel:`alternate`,href:a,hreflang:e}}function my(e,t=e.getCurrentRoute()){let n=e.getLocaleRoute(Object.assign({},t,{path:void 0,name:e.getRouteBaseName(t)}));return n?ad(cd(e.baseUrl,n.path),gy(e)):``}function hy(e,t=my(e)){return t?[{[e.key]:`i18n-can`,rel:`canonical`,href:t}]:[]}function gy(e,t=e.getCurrentRoute()){let n=e.getLocaleRoute(Object.assign({},t,{path:void 0,name:e.getRouteBaseName(t)}))?.query??{},r={};for(let t of e.canonicalQueries.filter(e=>e in n)){r[t]??=[];for(let e of xy(n[t]))r[t].push(e||``)}return r}function _y(e,t=my(e)){return t?[{[e.key]:`i18n-og-url`,property:`og:url`,content:t}]:[]}function vy(e,t=e.getCurrentLanguage()){return t?[{[e.key]:`i18n-og`,property:`og:locale`,content:by(t)}]:[]}function yy(e,t,n=e.getCurrentLanguage()){return t.filter(e=>e&&e!==n).map(t=>({[e.key]:`i18n-og-alt-${t}`,property:`og:locale:alternate`,content:by(t)}))}function by(e=``){return e.replace(/-/g,`_`)}function xy(e){return Array.isArray(e)?e:[e]}function Sy(e,t,n=e.getLocale()){if(q(t)&&Qu(t,{acceptRelative:!0}))return t;try{return Ty(e,t,n).fullPath}catch{return``}}function Cy(e,t,n=e.getLocale()){try{return Ty(e,t,n)}catch{return}}function wy(e){if(!q(e))return Xv({},e);if(e[0]===`/`){let{pathname:t,search:n,hash:r}=pd(e);return{path:t,query:Uu(n),hash:r}}return{name:e}}function Ty(e,t,n){let r=wy(t),i=e.router.resolve(e.resolveLocalizedRouteObject(r,n));return i.name?i:e.router.resolve(t)}function Ey(e,t,n=e.router.currentRoute.value){let r=e.getRouteBaseName(n);if(!r)return``;let i=Sy(e,{name:r,params:Xv({},n.params,e.getLocalizedDynamicParams(t)),fullPath:n.fullPath,query:n.query,hash:n.hash,path:n.path,meta:n.meta},t);return e.afterSwitchLocalePath(i,t)}function Dy(e,t,n=e.getLocale(),r=e.getLocales(),i=e.getBaseUrl()){let a=r.find(e=>e.code===n)||{code:n},o=typeof t.seo==`object`&&t.seo?.canonicalQueries||[];return i||console.warn("I18n `baseUrl` is required to generate valid SEO tag links."),{...t,key:`id`,locales:r,baseUrl:i,canonicalQueries:o,hreflangLinks:e.routingOptions.hreflangLinks,defaultLocale:e.routingOptions.defaultLocale,strictCanonicals:e.routingOptions.strictCanonicals,getRouteBaseName:e.getRouteBaseName,getCurrentRoute:()=>e.router.currentRoute.value,getCurrentLanguage:()=>a.language,getCurrentDirection:()=>a.dir||`ltr`,getLocaleRoute:t=>Cy(e,t),getLocalizedRoute:(t,n)=>Ey(e,t,n),getRouteWithoutQuery:()=>{try{return Xv({},e.router.resolve({query:{}}),{meta:e.router.currentRoute.value.meta})}catch{return}}}}function Oy(e,{dir:t=!0,lang:n=!0,seo:r=!0}){return uy(Dy(e,{dir:t,lang:n,seo:r}))}function ky(e=0){return t=>{let n=(typeof t==`string`?t:t.pathname).split(`?`)[0].split(`/`);return n[0]===``&&n.shift(),n.length>e&&n[e]||``}}var Ay=`___`;Ay+``;function jy(e){return typeof e==`string`?e:e==null?``:e.toString()}function My(e){return jy(typeof e==`object`?e?.name:e).split(Ay)[0]}var Ny=ky(0);const Py=e=>Ny(e),Fy=e=>e.split(Ay).at(1)??``;function Iy(e){return typeof e==`object`?String(e?.name||e?.path||``):String(e)}function Ly(e){let t=Iy(e);return t[0]===`/`?Py(t):Fy(t)}function Ry(e){return e=>jy(e)}function zy(e){return e=>e}const By=[`en`,`zh`,`ru`],Vy={en:[{key:`locale_en_46json_ece8cf66`,load:()=>hm(()=>import(`./CtJjAUi2.js`),[],import.meta.url),cache:!0}],zh:[{key:`locale_zh_46json_23d18f87`,load:()=>hm(()=>import(`./C1Z2nZ_q.js`),[],import.meta.url),cache:!0}],ru:[{key:`locale_ru_46json_c868385f`,load:()=>hm(()=>import(`./D3q0vhlH.js`),[],import.meta.url),cache:!0}]},Hy=[],Uy=[{code:`en`,name:`English`,language:void 0},{code:`zh`,name:`简体中文`,language:void 0},{code:`ru`,name:`Русский`,language:void 0}];var Wy=new Map,Gy=Tf((e,t,n)=>{if(t===`messages`||t===`datetimeFormats`||t===`numberFormats`)return e[t]??=W(null),ly(n,e[t]),!0});async function Ky(e){let t=V(),n={messages:W(null)};for(let r of e){let e=await r().then(e=>e.default),i=K(e)?await t.runWithContext(()=>e()):e;n=Gy(W(null),i,n)}return n.fallbackLocale??=!1,n}var qy=e=>ay(e)===`[object Module]`,Jy=e=>qy(e)||!1;async function Yy(e,t){let n=V();try{let r=await n.runWithContext(t.load).then(e=>Jy(e)?e.default:e);return K(r)?await n.runWithContext(()=>r(e)):r}catch(t){throw Error(`Failed loading locale (${e}): `+t.message)}}async function Xy(e,t=[]){let n=V(),r=await Promise.all(t.map(async t=>{let r=Zy(t),i=r||await n.runWithContext(()=>Yy(e,t));return!r&&t.cache!==!1&&Wy.set(t.key,{ttl:Date.now()+86400*1e3,value:i}),i})),i={};for(let e of r)ly(e,i);return i}function Zy(e){if(e.cache===!1)return;let t=Wy.get(e.key);if(t!=null)return t.ttl>Date.now()?t.value:void 0}function Qy(e){return e!=null&&`global`in e&&`mode`in e?e.global:e}function $y(e){let t=Qy(e);return`__composer`in t?t.__composer:t}function eb(e,t){return e?e.$config.public.i18n:gf(t).public.i18n}function tb(e){let t=eb(e).detectBrowserLanguage,n=t||{};return{...n,enabled:!!t,cookieKey:n.cookieKey||`i18n_redirected`}}function nb(e){if(e)return{path:`/`+(q(e)?e:e.path).replace(/^\//,``),code:!q(e)&&e.statusCode||302}}function rb(e){return Array.isArray(e)?e:[e]}function ib(e,t,n){let r=(e=``)=>e.replace(/https?:\/\//,``),i=e.filter(e=>r(e.domain)===t||rb(e.domains).includes(t));return i.length<=1?i[0]?.code:i.find(e=>e.code===n)?.code||i.find(e=>e.defaultForDomains?.includes(t)??e.domainDefault)?.code}function ab(e,t,n){let r=Uy.find(e=>e.code===n),i=e?.[n]?.domain||r?.domain||r?.domains?.find(e=>e===t.host);if(i)return Qu(i,{strict:!0})?i:t.protocol+`//`+i}function ob(e){let t={};for(let n of By){let r=sb(e,[n]);t[n]={fallbacks:r,cacheable:lb(n,r)}}return t}function sb(e,t){if(e===!1)return[];if(G(e))return e;let n=[];if(q(e))return t.every(t=>t!==e)&&n.push(e),n;let r=[...t,`default`];for(let t of r)t in e!=0&&(n=[...n,...e[t].filter(Boolean)]);return n}function cb(e){return Vy[e]!=null&&Vy[e].every(e=>e.cache!==!1)}function lb(e,t){return cb(e)&&t.every(e=>cb(e))}function ub(e){return Uy.find(t=>!!t.defaultForDomains?.includes(e))?.code}const db=e=>By.includes(e||``),fb=e=>db(e)?e:void 0,pb=()=>dv(`i18n:cached-locale-configs`,()=>void 0),mb=()=>dv(`i18n:resolved-locale`,()=>``);function hb({cookieCrossOrigin:e,cookieDomain:t,cookieSecure:n,cookieKey:r}){let i=new Date;return xv(r||`i18n_redirected`,{path:`/`,readonly:!1,expires:new Date(i.setDate(i.getDate()+365)),sameSite:e?`none`:`lax`,domain:t||void 0,secure:e||n})}function gb(e,t,n){let r=Qy(t),i=eb(e),a=tb(e),o=pb(),s=hb(a),c=new Set,l=e=>o.value[e],u=e=>ab(i.domainLocales,kv({xForwardedHost:!0}),e),d=Fb(e,i.baseUrl,n,u),f=mb(),p=async t=>{let n=l(t)?.fallbacks??[];n.includes(t)||n.push(t);for(let t of n){let n=await e.runWithContext(()=>Xy(t,Vy[t]));r.mergeLocaleMessage(t,n)}},m=async e=>{if(!(e in Vy))return;let t=l(e)?.cacheable?{}:{"Cache-Control":`no-cache`},n=await $fetch(`/_i18n/m8bzHobf/${e}/messages.json`,{headers:t});for(let e of Object.keys(n))r.mergeLocaleMessage(e,n[e])},h={vueI18n:t,initial:!0,preloaded:!1,config:i,rootRedirect:nb(i.rootRedirect),redirectStatusCode:i.redirectStatusCode??302,dynamicResourcesSSG:!0,getDefaultLocale:()=>n,getLocale:()=>I(r.locale),setLocale:async t=>{let n=h.getLocale();t===n||!db(t)||(F(r.locale)?r.locale.value=t:r.locale=t,await e.callHook(`i18n:localeSwitched`,{newLocale:t,oldLocale:n}),f.value=t)},setLocaleSuspend:async t=>{db(t)&&(h.vueI18n.__pendingLocale=t,h.vueI18n.__pendingLocalePromise=new Promise(e=>{h.vueI18n.__resolvePendingLocalePromise=async()=>{h.setCookieLocale(t),await h.setLocale(t),h.vueI18n.__pendingLocale=void 0,e()}}),(e.isHydrating||!h.config.skipSettingLocaleOnNavigate)&&await h.vueI18n.__resolvePendingLocalePromise?.())},getLocales:()=>I(r.locales).map(e=>q(e)?{code:e}:e),setCookieLocale:e=>{a.useCookie&&db(e)&&(s.value=e)},getBaseUrl:t=>cd(t&&u(t)||d(),e.$config.app.baseURL),loadMessages:async t=>{if(!(e.isHydrating&&c.has(t)))try{return h.dynamicResourcesSSG?await p(t):await m(t)}catch(e){console.warn(`Failed to load messages for locale "${t}"`,e)}finally{c.add(t)}},composableCtx:void 0};return h.composableCtx=kb(h,e),h}function _b(e){if(e._nuxtI18n==null)throw Error(`Nuxt I18n context has not been set up yet.`);return e._nuxtI18n}function vb(e,t){let n=[];for(let[r,i]of t.entries()){let a=e.find(e=>e.language?.toLowerCase()===i.toLowerCase());if(a){n.push({code:a.code,score:1-r/t.length});break}}for(let[r,i]of t.entries()){let a=i.split(`-`)[0].toLowerCase(),o=e.find(e=>e.language?.split(`-`)[0].toLowerCase()===a);if(o){n.push({code:o.code,score:.999-r/t.length});break}}return n}function yb(e,t){return e.score===t.score?t.code.length-e.code.length:t.score-e.score}function bb(e,t){return vb(e.map(e=>({code:e.code,language:e.language||e.code})),t).sort(yb).at(0)?.code??``}var xb=(e,t)=>xv(t).value||void 0,Sb=(e,t)=>Ly(t),Cb=e=>bb(Uy,navigator.languages),wb=(e,t,n)=>{let r=new URL(window.location.href).host;return ib(Uy.map(e=>({...e,domain:n[e.code]?.domain??e.domain})),r,Py(t))};const Tb=(e,t,n)=>{let r=eb(n);return{cookie:()=>xb(e,t.cookieKey),header:()=>void 0,navigator:()=>Cb(e),host:t=>wb(e,t,r.domainLocales),route:t=>Sb(e,t)}},Eb=e=>!!e.path&&!e.name;function Db(e){let t=e?._nuxtI18n?.composableCtx;if(!t)throw Error(`i18n context is not initialized. Ensure the i18n plugin is installed and the composable is used within a Vue component or setup function.`);return t}var Ob=td;function kb(e,t=V()){let n=If();Tb(void 0,tb(t),t);let r=e.getDefaultLocale(),i=Ry(r);function a(e,t){e.name=My(e.name||n.currentRoute.value);let r=i(e.name,t);return n.hasRoute(r)&&(e.name=r),e}let o=zy(n);function s(e,t){let n=o(e,t),a=My(n);return a?(n.name=i(a,t),n):(Pb(t,r)&&(n.path=`/`+t+n.path),n.path=Ob(n.path,!0),n)}let c={router:n,_head:void 0,get head(){return this._head??=dm({}),this._head},metaState:{htmlAttrs:{},meta:[],link:[]},seoSettings:{dir:!1,lang:!1,seo:!1},localePathPayload:Ab(),routingOptions:{defaultLocale:r,strictCanonicals:e.config.experimental.alternateLinkCanonicalQueries??!0,hreflangLinks:!1},getLocale:e.getLocale,getLocales:e.getLocales,getBaseUrl:e.getBaseUrl,getRouteBaseName:My,getRouteLocalizedParams:()=>n.currentRoute.value.meta.nuxtI18nInternal??{},getLocalizedDynamicParams:e=>c.getRouteLocalizedParams()?.[e],afterSwitchLocalePath:(e,t)=>(c.getRouteLocalizedParams(),e),resolveLocalizedRouteObject:(e,t)=>Eb(e)?s(e,t):a(e,t)};return c}function Ab(e=V()){let t=document.querySelector(`[data-nuxt-i18n-slp="${e._id}"]`)?.textContent;return JSON.parse(t||`{}`)}async function jb(e,t){let n=_b(e),r=n.getLocale();if(t===r&&!n.initial)return t;let i={oldLocale:r,newLocale:t,initialSetup:n.initial,context:e},a=await e.callHook(`i18n:beforeLocaleSwitch`,i);return a??=i.newLocale,db(a)&&(t=a),await n.loadMessages(t),await n.setLocaleSuspend(t),t}function Mb(e,t,n){return!1}function Nb(e,t){let n=tb(e),r=Tb(void 0,n,e),i=_b(e),a=q(t)?t:t.path;function*o(){i.initial&&n.enabled&&!Mb(n,a,r.route(a))&&(yield r.cookie(),yield r.header(),yield r.navigator(),yield n.fallbackLocale)}for(let e of o())if(e&&db(e))return e;return i.getLocale()||i.getDefaultLocale()||``}function Pb(e,t){return!1}function Fb(e,t,n,r){return K(t)?()=>t(e):()=>t??``}function Ib(e,t,n){return{line:e,column:t,offset:n}}function Lb(e,t,n){let r={start:e,end:t};return n!=null&&(r.source=n),r}var Z={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTERMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14,UNHANDLED_CODEGEN_NODE_TYPE:15,UNHANDLED_MINIFIER_NODE_TYPE:16};Z.EXPECTED_TOKEN,Z.INVALID_TOKEN_IN_PLACEHOLDER,Z.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,Z.UNKNOWN_ESCAPE_SEQUENCE,Z.INVALID_UNICODE_ESCAPE_SEQUENCE,Z.UNBALANCED_CLOSING_BRACE,Z.UNTERMINATED_CLOSING_BRACE,Z.EMPTY_PLACEHOLDER,Z.NOT_ALLOW_NEST_PLACEHOLDER,Z.INVALID_LINKED_FORMAT,Z.MUST_HAVE_MESSAGES_IN_PLURAL,Z.UNEXPECTED_EMPTY_LINKED_MODIFIER,Z.UNEXPECTED_EMPTY_LINKED_KEY,Z.UNEXPECTED_LEXICAL_ANALYSIS,Z.UNHANDLED_CODEGEN_NODE_TYPE,Z.UNHANDLED_MINIFIER_NODE_TYPE;function Rb(e,t,n={}){let{domain:r,messages:i,args:a}=n,o=e,s=SyntaxError(String(o));return s.code=e,t&&(s.location=t),s.domain=r,s}function zb(e){throw e}var Bb=` `,Vb=`\r`,Hb=` `,Ub=`\u2028`,Wb=`\u2029`;function Gb(e){let t=e,n=0,r=1,i=1,a=0,o=e=>t[e]===Vb&&t[e+1]===Hb,s=e=>t[e]===Hb,c=e=>t[e]===Wb,l=e=>t[e]===Ub,u=e=>o(e)||s(e)||c(e)||l(e),d=()=>n,f=()=>r,p=()=>i,m=()=>a,h=e=>o(e)||c(e)||l(e)?Hb:t[e],g=()=>h(n),_=()=>h(n+a);function v(){return a=0,u(n)&&(r++,i=0),o(n)&&n++,n++,i++,t[n]}function y(){return o(n+a)&&a++,a++,t[n+a]}function b(){n=0,r=1,i=1,a=0}function x(e=0){a=e}function S(){let e=n+a;for(;e!==n;)v();a=0}return{index:d,line:f,column:p,peekOffset:m,charAt:h,currentChar:g,currentPeek:_,next:v,peek:y,reset:b,resetPeek:x,skipToPeek:S}}var Kb=void 0,qb=`'`,Jb=`tokenizer`;function Yb(e,t={}){let n=t.location!==!1,r=Gb(e),i=()=>r.index(),a=()=>Ib(r.line(),r.column(),r.index()),o=a(),s=i(),c={currentType:13,offset:s,startLoc:o,endLoc:o,lastType:13,lastOffset:s,lastStartLoc:o,lastEndLoc:o,braceNest:0,inLinked:!1,text:``},l=()=>c,{onError:u}=t;function d(e,t,r,...i){let a=l();t.column+=r,t.offset+=r,u&&u(Rb(e,n?Lb(a.startLoc,t):null,{domain:Jb,args:i}))}function f(e,t,r){e.endLoc=a(),e.currentType=t;let i={type:t};return n&&(i.loc=Lb(e.startLoc,e.endLoc)),r!=null&&(i.value=r),i}let p=e=>f(e,13);function m(e,t){return e.currentChar()===t?(e.next(),t):(d(Z.EXPECTED_TOKEN,a(),0,t),``)}function h(e){let t=``;for(;e.currentPeek()===Bb||e.currentPeek()===Hb;)t+=e.currentPeek(),e.peek();return t}function g(e){let t=h(e);return e.skipToPeek(),t}function _(e){if(e===Kb)return!1;let t=e.charCodeAt(0);return t>=97&&t<=122||t>=65&&t<=90||t===95}function v(e){if(e===Kb)return!1;let t=e.charCodeAt(0);return t>=48&&t<=57}function y(e,t){let{currentType:n}=t;if(n!==2)return!1;h(e);let r=_(e.currentPeek());return e.resetPeek(),r}function b(e,t){let{currentType:n}=t;if(n!==2)return!1;h(e);let r=v(e.currentPeek()===`-`?e.peek():e.currentPeek());return e.resetPeek(),r}function x(e,t){let{currentType:n}=t;if(n!==2)return!1;h(e);let r=e.currentPeek()===qb;return e.resetPeek(),r}function S(e,t){let{currentType:n}=t;if(n!==7)return!1;h(e);let r=e.currentPeek()===`.`;return e.resetPeek(),r}function C(e,t){let{currentType:n}=t;if(n!==8)return!1;h(e);let r=_(e.currentPeek());return e.resetPeek(),r}function w(e,t){let{currentType:n}=t;if(!(n===7||n===11))return!1;h(e);let r=e.currentPeek()===`:`;return e.resetPeek(),r}function T(e,t){let{currentType:n}=t;if(n!==9)return!1;let r=()=>{let t=e.currentPeek();return t===`{`?_(e.peek()):t===`@`||t===`|`||t===`:`||t===`.`||t===Bb||!t?!1:t===Hb?(e.peek(),r()):D(e,!1)},i=r();return e.resetPeek(),i}function E(e){h(e);let t=e.currentPeek()===`|`;return e.resetPeek(),t}function D(e,t=!0){let n=(t=!1,r=``)=>{let i=e.currentPeek();return i===`{`||i===`@`||!i?t:i===`|`?!(r===Bb||r===Hb):i===Bb?(e.peek(),n(!0,Bb)):i===Hb?(e.peek(),n(!0,Hb)):!0},r=n();return t&&e.resetPeek(),r}function O(e,t){let n=e.currentChar();return n===Kb?Kb:t(n)?(e.next(),n):null}function k(e){let t=e.charCodeAt(0);return t>=97&&t<=122||t>=65&&t<=90||t>=48&&t<=57||t===95||t===36}function ee(e){return O(e,k)}function te(e){let t=e.charCodeAt(0);return t>=97&&t<=122||t>=65&&t<=90||t>=48&&t<=57||t===95||t===36||t===45}function ne(e){return O(e,te)}function re(e){let t=e.charCodeAt(0);return t>=48&&t<=57}function ie(e){return O(e,re)}function ae(e){let t=e.charCodeAt(0);return t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102}function oe(e){return O(e,ae)}function se(e){let t=``,n=``;for(;t=ie(e);)n+=t;return n}function ce(e){let t=``;for(;;){let n=e.currentChar();if(n===`{`||n===`}`||n===`@`||n===`|`||!n)break;if(n===Bb||n===Hb)if(D(e))t+=n,e.next();else if(E(e))break;else t+=n,e.next();else t+=n,e.next()}return t}function A(e){g(e);let t=``,n=``;for(;t=ne(e);)n+=t;let r=e.currentChar();if(r&&r!==`}`&&r!==Kb&&r!==Bb&&r!==Hb&&r!==` `){let t=me(e);return d(Z.INVALID_TOKEN_IN_PLACEHOLDER,a(),0,n+t),n+t}return e.currentChar()===Kb&&d(Z.UNTERMINATED_CLOSING_BRACE,a(),0),n}function le(e){g(e);let t=``;return e.currentChar()===`-`?(e.next(),t+=`-${se(e)}`):t+=se(e),e.currentChar()===Kb&&d(Z.UNTERMINATED_CLOSING_BRACE,a(),0),t}function j(e){return e!==qb&&e!==Hb}function ue(e){g(e),m(e,`'`);let t=``,n=``;for(;t=O(e,j);)t===`\\`?n+=de(e):n+=t;let r=e.currentChar();return r===Hb||r===Kb?(d(Z.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,a(),0),r===Hb&&(e.next(),m(e,`'`)),n):(m(e,`'`),n)}function de(e){let t=e.currentChar();switch(t){case`\\`:case`'`:return e.next(),`\\${t}`;case`u`:return fe(e,t,4);case`U`:return fe(e,t,6);default:return d(Z.UNKNOWN_ESCAPE_SEQUENCE,a(),0,t),``}}function fe(e,t,n){m(e,t);let r=``;for(let i=0;i{let r=e.currentChar();return r===`{`||r===`@`||r===`|`||r===`(`||r===`)`||!r||r===Bb?n:(n+=r,e.next(),t(n))};return t(``)}function _e(e){g(e);let t=m(e,`|`);return g(e),t}function ve(e,t){let n=null;switch(e.currentChar()){case`{`:return t.braceNest>=1&&d(Z.NOT_ALLOW_NEST_PLACEHOLDER,a(),0),e.next(),n=f(t,2,`{`),g(e),t.braceNest++,n;case`}`:return t.braceNest>0&&t.currentType===2&&d(Z.EMPTY_PLACEHOLDER,a(),0),e.next(),n=f(t,3,`}`),t.braceNest--,t.braceNest>0&&g(e),t.inLinked&&t.braceNest===0&&(t.inLinked=!1),n;case`@`:return t.braceNest>0&&d(Z.UNTERMINATED_CLOSING_BRACE,a(),0),n=ye(e,t)||p(t),t.braceNest=0,n;default:{let r=!0,i=!0,o=!0;if(E(e))return t.braceNest>0&&d(Z.UNTERMINATED_CLOSING_BRACE,a(),0),n=f(t,1,_e(e)),t.braceNest=0,t.inLinked=!1,n;if(t.braceNest>0&&(t.currentType===4||t.currentType===5||t.currentType===6))return d(Z.UNTERMINATED_CLOSING_BRACE,a(),0),t.braceNest=0,be(e,t);if(r=y(e,t))return n=f(t,4,A(e)),g(e),n;if(i=b(e,t))return n=f(t,5,le(e)),g(e),n;if(o=x(e,t))return n=f(t,6,ue(e)),g(e),n;if(!r&&!i&&!o)return n=f(t,12,me(e)),d(Z.INVALID_TOKEN_IN_PLACEHOLDER,a(),0,n.value),g(e),n;break}}return n}function ye(e,t){let{currentType:n}=t,r=null,i=e.currentChar();switch((n===7||n===8||n===11||n===9)&&(i===Hb||i===Bb)&&d(Z.INVALID_LINKED_FORMAT,a(),0),i){case`@`:return e.next(),r=f(t,7,`@`),t.inLinked=!0,r;case`.`:return g(e),e.next(),f(t,8,`.`);case`:`:return g(e),e.next(),f(t,9,`:`);default:return E(e)?(r=f(t,1,_e(e)),t.braceNest=0,t.inLinked=!1,r):S(e,t)||w(e,t)?(g(e),ye(e,t)):C(e,t)?(g(e),f(t,11,he(e))):T(e,t)?(g(e),i===`{`?ve(e,t)||r:f(t,10,ge(e))):(n===7&&d(Z.INVALID_LINKED_FORMAT,a(),0),t.braceNest=0,t.inLinked=!1,be(e,t))}}function be(e,t){let n={type:13};if(t.braceNest>0)return ve(e,t)||p(t);if(t.inLinked)return ye(e,t)||p(t);switch(e.currentChar()){case`{`:return ve(e,t)||p(t);case`}`:return d(Z.UNBALANCED_CLOSING_BRACE,a(),0),e.next(),f(t,3,`}`);case`@`:return ye(e,t)||p(t);default:if(E(e))return n=f(t,1,_e(e)),t.braceNest=0,t.inLinked=!1,n;if(D(e))return f(t,0,ce(e));break}return n}function xe(){let{currentType:e,offset:t,startLoc:n,endLoc:o}=c;return c.lastType=e,c.lastOffset=t,c.lastStartLoc=n,c.lastEndLoc=o,c.offset=i(),c.startLoc=a(),r.currentChar()===Kb?f(c,13):be(r,c)}return{nextToken:xe,currentOffset:i,currentPosition:a,context:l}}var Xb=`parser`,Zb=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function Qb(e,t,n){switch(e){case`\\\\`:return`\\`;case`\\'`:return`'`;default:{let e=parseInt(t||n,16);return e<=55295||e>=57344?String.fromCodePoint(e):`�`}}}function $b(e={}){let t=e.location!==!1,{onError:n}=e;function r(e,r,i,a,...o){let s=e.currentPosition();s.offset+=a,s.column+=a,n&&n(Rb(r,t?Lb(i,s):null,{domain:Xb,args:o}))}function i(e,n,r){let i={type:e};return t&&(i.start=n,i.end=n,i.loc={start:r,end:r}),i}function a(e,n,r,i){t&&(e.end=n,e.loc&&(e.loc.end=r))}function o(e,t){let n=e.context(),r=i(3,n.offset,n.startLoc);return r.value=t,a(r,e.currentOffset(),e.currentPosition()),r}function s(e,t){let{lastOffset:n,lastStartLoc:r}=e.context(),o=i(5,n,r);return o.index=parseInt(t,10),e.nextToken(),a(o,e.currentOffset(),e.currentPosition()),o}function c(e,t){let{lastOffset:n,lastStartLoc:r}=e.context(),o=i(4,n,r);return o.key=t,e.nextToken(),a(o,e.currentOffset(),e.currentPosition()),o}function l(e,t){let{lastOffset:n,lastStartLoc:r}=e.context(),o=i(9,n,r);return o.value=t.replace(Zb,Qb),e.nextToken(),a(o,e.currentOffset(),e.currentPosition()),o}function u(e){let t=e.nextToken(),n=e.context(),{lastOffset:o,lastStartLoc:s}=n,c=i(8,o,s);return t.type===11?(t.value??r(e,Z.UNEXPECTED_LEXICAL_ANALYSIS,n.lastStartLoc,0,ex(t)),c.value=t.value||``,a(c,e.currentOffset(),e.currentPosition()),{node:c}):(r(e,Z.UNEXPECTED_EMPTY_LINKED_MODIFIER,n.lastStartLoc,0),c.value=``,a(c,o,s),{nextConsumeToken:t,node:c})}function d(e,t){let n=e.context(),r=i(7,n.offset,n.startLoc);return r.value=t,a(r,e.currentOffset(),e.currentPosition()),r}function f(e){let t=e.context(),n=i(6,t.offset,t.startLoc),o=e.nextToken();if(o.type===8){let t=u(e);n.modifier=t.node,o=t.nextConsumeToken||e.nextToken()}switch(o.type!==9&&r(e,Z.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,ex(o)),o=e.nextToken(),o.type===2&&(o=e.nextToken()),o.type){case 10:o.value??r(e,Z.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,ex(o)),n.key=d(e,o.value||``);break;case 4:o.value??r(e,Z.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,ex(o)),n.key=c(e,o.value||``);break;case 5:o.value??r(e,Z.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,ex(o)),n.key=s(e,o.value||``);break;case 6:o.value??r(e,Z.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,ex(o)),n.key=l(e,o.value||``);break;default:{r(e,Z.UNEXPECTED_EMPTY_LINKED_KEY,t.lastStartLoc,0);let s=e.context(),c=i(7,s.offset,s.startLoc);return c.value=``,a(c,s.offset,s.startLoc),n.key=c,a(n,s.offset,s.startLoc),{nextConsumeToken:o,node:n}}}return a(n,e.currentOffset(),e.currentPosition()),{node:n}}function p(e){let t=e.context(),n=i(2,t.currentType===1?e.currentOffset():t.offset,t.currentType===1?t.endLoc:t.startLoc);n.items=[];let u=null;do{let i=u||e.nextToken();switch(u=null,i.type){case 0:i.value??r(e,Z.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,ex(i)),n.items.push(o(e,i.value||``));break;case 5:i.value??r(e,Z.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,ex(i)),n.items.push(s(e,i.value||``));break;case 4:i.value??r(e,Z.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,ex(i)),n.items.push(c(e,i.value||``));break;case 6:i.value??r(e,Z.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,ex(i)),n.items.push(l(e,i.value||``));break;case 7:{let t=f(e);n.items.push(t.node),u=t.nextConsumeToken||null;break}}}while(t.currentType!==13&&t.currentType!==1);return a(n,t.currentType===1?t.lastOffset:e.currentOffset(),t.currentType===1?t.lastEndLoc:e.currentPosition()),n}function m(e,t,n,o){let s=e.context(),c=o.items.length===0,l=i(1,t,n);l.cases=[],l.cases.push(o);do{let t=p(e);c||=t.items.length===0,l.cases.push(t)}while(s.currentType!==13);return c&&r(e,Z.MUST_HAVE_MESSAGES_IN_PLURAL,n,0),a(l,e.currentOffset(),e.currentPosition()),l}function h(e){let t=e.context(),{offset:n,startLoc:r}=t,i=p(e);return t.currentType===13?i:m(e,n,r,i)}function g(n){let o=Yb(n,Xv({},e)),s=o.context(),c=i(0,s.offset,s.startLoc);return t&&c.loc&&(c.loc.source=n),c.body=h(o),e.onCacheKey&&(c.cacheKey=e.onCacheKey(n)),s.currentType!==13&&r(o,Z.UNEXPECTED_LEXICAL_ANALYSIS,s.lastStartLoc,0,n[s.offset]||``),a(c,o.currentOffset(),o.currentPosition()),c}return{parse:g}}function ex(e){if(e.type===13)return`EOF`;let t=(e.value||``).replace(/\r?\n/gu,`\\n`);return t.length>10?t.slice(0,9)+`…`:t}function tx(e,t={}){let n={ast:e,helpers:new Set};return{context:()=>n,helper:e=>(n.helpers.add(e),e)}}function nx(e,t){for(let n=0;nox(e)),e}function ox(e){if(e.items.length===1){let t=e.items[0];(t.type===3||t.type===9)&&(e.static=t.value,delete t.value)}else{let t=[];for(let n=0;ns;function l(e,t){s.code+=e}function u(e,t=!0){let n=t?i:``;l(a?n+` `.repeat(e):n)}function d(e=!0){let t=++s.indentLevel;e&&u(t)}function f(e=!0){let t=--s.indentLevel;e&&u(t)}function p(){u(s.indentLevel)}return{context:c,push:l,indent:d,deindent:f,newline:p,helper:e=>`_${e}`,needIndent:()=>s.needIndent}}function lx(e,t){let{helper:n}=e;e.push(`${n(`linked`)}(`),px(e,t.key),t.modifier?(e.push(`, `),px(e,t.modifier),e.push(`, _type`)):e.push(`, undefined, _type`),e.push(`)`)}function ux(e,t){let{helper:n,needIndent:r}=e;e.push(`${n(`normalize`)}([`),e.indent(r());let i=t.items.length;for(let n=0;n1){e.push(`${n(`plural`)}([`),e.indent(r());let i=t.cases.length;for(let n=0;n{let n=q(t.mode)?t.mode:`normal`,r=q(t.filename)?t.filename:`message.intl`,i=!!t.sourceMap,a=t.breakLineCode==null?n===`arrow`?`;`:` -`:t.breakLineCode,o=t.needIndent?t.needIndent:n!==`arrow`,s=e.helpers||[],c=cx(e,{mode:n,filename:r,sourceMap:i,breakLineCode:a,needIndent:o});c.push(n===`normal`?`function __msg__ (ctx) {`:`(ctx) => {`),c.indent(o),s.length>0&&(c.push(`const { ${sy(s.map(e=>`${e}: _${e}`),`, `)} } = ctx`),c.newline()),c.push(`return `),px(c,e),c.deindent(o),c.push(`}`),delete e.helpers;let{code:l,map:u}=c.context();return{ast:e,code:l,map:u?u.toJSON():void 0}};function hx(e,t={}){let n=Xv({},t),r=!!n.jit,i=!!n.minify,a=n.optimize==null?!0:n.optimize,o=$b(n).parse(e);return r?(a&&ax(o),i&&sx(o),{ast:o,code:``}):(ix(o,n),mx(o,n))}function gx(e){return Y(e)&&Ex(e)===0&&(ny(e,`b`)||ny(e,`body`))}var _x=[`b`,`body`];function vx(e){return Nx(e,_x)}var yx=[`c`,`cases`];function bx(e){return Nx(e,yx,[])}var xx=[`s`,`static`];function Sx(e){return Nx(e,xx)}var Cx=[`i`,`items`];function wx(e){return Nx(e,Cx,[])}var Tx=[`t`,`type`];function Ex(e){return Nx(e,Tx)}var Dx=[`v`,`value`];function Ox(e,t){let n=Nx(e,Dx);if(n!=null)return n;throw Fx(t)}var kx=[`m`,`modifier`];function Ax(e){return Nx(e,kx)}var jx=[`k`,`key`];function Mx(e){let t=Nx(e,jx);if(t)return t;throw Fx(6)}function Nx(e,t,n){for(let n=0;nLx(t,e)}function Lx(e,t){let n=vx(t);if(n==null)throw Fx(0);if(Ex(n)===1){let t=bx(n);return e.plural(t.reduce((t,n)=>[...t,Rx(e,n)],[]))}else return Rx(e,n)}function Rx(e,t){let n=Sx(t);if(n!=null)return e.type===`text`?n:e.normalize([n]);{let n=wx(t).reduce((t,n)=>[...t,zx(e,n)],[]);return e.normalize(n)}}function zx(e,t){let n=Ex(t);switch(n){case 3:return Ox(t,n);case 9:return Ox(t,n);case 4:{let r=t;if(ny(r,`k`)&&r.k)return e.interpolate(e.named(r.k));if(ny(r,`key`)&&r.key)return e.interpolate(e.named(r.key));throw Fx(n)}case 5:{let r=t;if(ny(r,`i`)&&Kv(r.i))return e.interpolate(e.list(r.i));if(ny(r,`index`)&&Kv(r.index))return e.interpolate(e.list(r.index));throw Fx(n)}case 6:{let n=t,r=Ax(n),i=Mx(n);return e.linked(zx(e,i),r?zx(e,r):void 0,e.type)}case 7:return Ox(t,n);case 8:return Ox(t,n);default:throw Error(`unhandled node on format message part: ${n}`)}}var Bx=e=>e,Vx=W();function Hx(e,t={}){let n=!1,r=t.onError||zb;return t.onError=e=>{n=!0,r(e)},{...hx(e,t),detectError:n}}function Ux(e,t){if(q(e)){J(t.warnHtmlMessage)&&t.warnHtmlMessage;let n=(t.onCacheKey||Bx)(e),r=Vx[n];if(r)return r;let{ast:i,detectError:a}=Hx(e,{...t,location:!1,jit:!0}),o=Ix(i);return a?o:Vx[n]=o}else{let t=e.cacheKey;return t?Vx[t]||(Vx[t]=Ix(e)):Ix(e)}}var Wx={INVALID_ARGUMENT:17,INVALID_DATE_ARGUMENT:18,INVALID_ISO_DATE_ARGUMENT:19,NOT_SUPPORT_NON_STRING_MESSAGE:20,NOT_SUPPORT_LOCALE_PROMISE_VALUE:21,NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:22,NOT_SUPPORT_LOCALE_TYPE:23};function Gx(e){return Rb(e,null,void 0)}Wx.INVALID_ARGUMENT,Wx.INVALID_DATE_ARGUMENT,Wx.INVALID_ISO_DATE_ARGUMENT,Wx.NOT_SUPPORT_NON_STRING_MESSAGE,Wx.NOT_SUPPORT_LOCALE_PROMISE_VALUE,Wx.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION,Wx.NOT_SUPPORT_LOCALE_TYPE;function Kx(e,t){return t.locale==null?Jx(e.locale):Jx(t.locale)}var qx;function Jx(e){if(q(e))return e;if(K(e)){if(e.resolvedOnce&&qx!=null)return qx;if(e.constructor.name===`Function`){let t=e();if(ry(t))throw Gx(Wx.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return qx=t}else throw Gx(Wx.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw Gx(Wx.NOT_SUPPORT_LOCALE_TYPE)}function Yx(e,t,n){return[...new Set([n,...G(t)?t:Y(t)?Object.keys(t):q(t)?[t]:[n]])]}function Xx(e,t,n){let r=q(n)?n:fS,i=e;i.__localeChainCache||=new Map;let a=i.__localeChainCache.get(r);if(!a){a=[];let e=[n];for(;G(e);)e=Zx(a,e,t);let o=G(t)||!X(t)?t:t.default?t.default:null;e=q(o)?[o]:o,G(e)&&Zx(a,e,!1),i.__localeChainCache.set(r,a)}return a}function Zx(e,t,n){let r=!0;for(let i=0;i{o===void 0?o=s:o+=s},f[1]=()=>{o!==void 0&&(t.push(o),o=void 0)},f[2]=()=>{f[0](),i++},f[3]=()=>{if(i>0)i--,r=4,f[0]();else{if(i=0,o===void 0||(o=aS(o),o===!1))return!1;f[1]()}};function p(){let t=e[n+1];if(r===5&&t===`'`||r===6&&t===`"`)return n++,s=`\\`+t,f[0](),!0}for(;r!==null;)if(n++,a=e[n],!(a===`\\`&&p())){if(c=iS(a),d=eS[r],l=d[c]||d.l||8,l===8||(r=l[0],l[1]!==void 0&&(u=f[l[1]],u&&(s=a,u()===!1))))return;if(r===7)return t}}var sS=new Map;function cS(e,t){return Y(e)?e[t]:null}function lS(e,t){if(!Y(e))return null;let n=sS.get(t);if(n||(n=oS(t),n&&sS.set(t,n)),!n)return null;let r=n.length,i=e,a=0;for(;a`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function mS(){return{upper:(e,t)=>t===`text`&&q(e)?e.toUpperCase():t===`vnode`&&Y(e)&&`__v_isVNode`in e?e.children.toUpperCase():e,lower:(e,t)=>t===`text`&&q(e)?e.toLowerCase():t===`vnode`&&Y(e)&&`__v_isVNode`in e?e.children.toLowerCase():e,capitalize:(e,t)=>t===`text`&&q(e)?pS(e):t===`vnode`&&Y(e)&&`__v_isVNode`in e?pS(e.children):e}}var hS;function gS(e){hS=e}var _S;function vS(e){_S=e}var yS;function bS(e){yS=e}var xS=null,SS=e=>{xS=e},CS=()=>xS,wS=0;function TS(e={}){let t=K(e.onWarn)?e.onWarn:Vv,n=q(e.version)?e.version:dS,r=q(e.locale)||K(e.locale)?e.locale:fS,i=K(r)?fS:r,a=G(e.fallbackLocale)||X(e.fallbackLocale)||q(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:i,o=X(e.messages)?e.messages:ES(i),s=X(e.datetimeFormats)?e.datetimeFormats:ES(i),c=X(e.numberFormats)?e.numberFormats:ES(i),l=Xv(W(),e.modifiers,mS()),u=e.pluralRules||W(),d=K(e.missing)?e.missing:null,f=J(e.missingWarn)||Jv(e.missingWarn)?e.missingWarn:!0,p=J(e.fallbackWarn)||Jv(e.fallbackWarn)?e.fallbackWarn:!0,m=!!e.fallbackFormat,h=!!e.unresolving,g=K(e.postTranslation)?e.postTranslation:null,_=X(e.processor)?e.processor:null,v=J(e.warnHtmlMessage)?e.warnHtmlMessage:!0,y=!!e.escapeParameter,b=K(e.messageCompiler)?e.messageCompiler:hS,x=K(e.messageResolver)?e.messageResolver:_S||cS,S=K(e.localeFallbacker)?e.localeFallbacker:yS||Yx,C=Y(e.fallbackContext)?e.fallbackContext:void 0,w=e,T=Y(w.__datetimeFormatters)?w.__datetimeFormatters:new Map,E=Y(w.__numberFormatters)?w.__numberFormatters:new Map,D=Y(w.__meta)?w.__meta:{};wS++;let O={version:n,cid:wS,locale:r,fallbackLocale:a,messages:o,modifiers:l,pluralRules:u,missing:d,missingWarn:f,fallbackWarn:p,fallbackFormat:m,unresolving:h,postTranslation:g,processor:_,warnHtmlMessage:v,escapeParameter:y,messageCompiler:b,messageResolver:x,localeFallbacker:S,fallbackContext:C,onWarn:t,__meta:D};return O.datetimeFormats=s,O.numberFormats=c,O.__datetimeFormatters=T,O.__numberFormatters=E,O}var ES=e=>({[e]:W()});function DS(e,t,n,r,i){let{missing:a,onWarn:o}=e;if(a!==null){let r=a(e,n,t,i);return q(r)?r:t}else return t}function OS(e,t,n){let r=e;r.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}function kS(e,t){return e===t?!1:e.split(`-`)[0]===t.split(`-`)[0]}function AS(e,t){let n=t.indexOf(e);if(n===-1)return!1;for(let r=n+1;r{NS.includes(e)?o[e]=n[e]:a[e]=n[e]}),q(r)?a.locale=r:X(r)&&(o=r),X(i)&&(o=i),[a.key||``,s,a,o]}function FS(e,t,n){let r=e;for(let e in n){let n=`${t}__${e}`;r.__datetimeFormatters.has(n)&&r.__datetimeFormatters.delete(n)}}function IS(e,...t){let{numberFormats:n,unresolving:r,fallbackLocale:i,onWarn:a,localeFallbacker:o}=e,{__numberFormatters:s}=e,[c,l,u,d]=RS(...t),f=J(u.missingWarn)?u.missingWarn:e.missingWarn;J(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn;let p=!!u.part,m=Kx(e,u),h=o(e,i,m);if(!q(c)||c===``)return new Intl.NumberFormat(m,d).format(l);let g={},_,v=null;for(let t=0;t{LS.includes(e)?o[e]=n[e]:a[e]=n[e]}),q(r)?a.locale=r:X(r)&&(o=r),X(i)&&(o=i),[a.key||``,s,a,o]}function zS(e,t,n){let r=e;for(let e in n){let n=`${t}__${e}`;r.__numberFormatters.has(n)&&r.__numberFormatters.delete(n)}}var BS=e=>e,VS=e=>``,HS=`text`,US=e=>e.length===0?``:sy(e),WS=oy;function GS(e,t){return e=Math.abs(e),t===2?e?e>1?1:0:1:e?Math.min(e,2):0}function KS(e){let t=Kv(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(Kv(e.named.count)||Kv(e.named.n))?Kv(e.named.count)?e.named.count:Kv(e.named.n)?e.named.n:t:t}function qS(e,t){t.count||=e,t.n||=e}function JS(e={}){let t=e.locale,n=KS(e),r=Y(e.pluralRules)&&q(t)&&K(e.pluralRules[t])?e.pluralRules[t]:GS,i=Y(e.pluralRules)&&q(t)&&K(e.pluralRules[t])?GS:void 0,a=e=>e[r(n,e.length,i)],o=e.list||[],s=e=>o[e],c=e.named||W();Kv(e.pluralIndex)&&qS(n,c);let l=e=>c[e];function u(t,n){return(K(e.messages)?e.messages(t,!!n):Y(e.messages)?e.messages[t]:!1)||(e.parent?e.parent.message(t):VS)}let d=t=>e.modifiers?e.modifiers[t]:BS,f=X(e.processor)&&K(e.processor.normalize)?e.processor.normalize:US,p=X(e.processor)&&K(e.processor.interpolate)?e.processor.interpolate:WS,m={list:s,named:l,plural:a,linked:(e,...t)=>{let[n,r]=t,i=`text`,a=``;t.length===1?Y(n)?(a=n.modifier||a,i=n.type||i):q(n)&&(a=n||a):t.length===2&&(q(n)&&(a=n||a),q(r)&&(i=r||i));let o=u(e,!0)(m),s=i===`vnode`&&G(o)&&a?o[0]:o;return a?d(a)(s,i):s},message:u,type:X(e.processor)&&q(e.processor.type)?e.processor.type:HS,interpolate:p,normalize:f,values:Xv(W(),o,c)};return m}var YS=()=>``,XS=e=>K(e);function ZS(e,...t){let{fallbackFormat:n,postTranslation:r,unresolving:i,messageCompiler:a,fallbackLocale:o,messages:s}=e,[c,l]=nC(...t),u=J(l.missingWarn)?l.missingWarn:e.missingWarn,d=J(l.fallbackWarn)?l.fallbackWarn:e.fallbackWarn,f=J(l.escapeParameter)?l.escapeParameter:e.escapeParameter,p=!!l.resolvedMessage,m=q(l.default)||J(l.default)?J(l.default)?a?c:()=>c:l.default:n?a?c:()=>c:null,h=n||m!=null&&(q(m)||K(m)),g=Kx(e,l);f&&QS(l);let[_,v,y]=p?[c,g,s[g]||W()]:$S(e,c,g,o,d,u),b=_,x=c;if(!p&&!(q(b)||gx(b)||XS(b))&&h&&(b=m,x=b),!p&&(!(q(b)||gx(b)||XS(b))||!q(v)))return i?-1:c;let S=!1,C=XS(b)?b:eC(e,c,v,b,x,()=>{S=!0});if(S)return b;let w=tC(e,C,JS(iC(e,v,y,l))),T=r?r(w,c):w;return f&&q(T)&&(T=ey(T)),T}function QS(e){G(e.list)?e.list=e.list.map(e=>q(e)?Qv(e):e):Y(e.named)&&Object.keys(e.named).forEach(t=>{q(e.named[t])&&(e.named[t]=Qv(e.named[t]))})}function $S(e,t,n,r,i,a){let{messages:o,onWarn:s,messageResolver:c,localeFallbacker:l}=e,u=l(e,r,n),d=W(),f,p=null;for(let n=0;nr);return e.locale=n,e.key=t,e}let c=o(r,rC(e,n,i,r,s,a));return c.locale=n,c.key=t,c.source=r,c}function tC(e,t,n){return t(n)}function nC(...e){let[t,n,r]=e,i=W();if(!q(t)&&!Kv(t)&&!XS(t)&&!gx(t))throw Gx(Wx.INVALID_ARGUMENT);let a=Kv(t)?String(t):(XS(t),t);return Kv(n)?i.plural=n:q(n)?i.default=n:X(n)&&!Yv(n)?i.named=n:G(n)&&(i.list=n),Kv(r)?i.plural=r:q(r)?i.default=r:X(r)&&Xv(i,r),[a,i]}function rC(e,t,n,r,i,a){return{locale:t,key:n,warnHtmlMessage:i,onError:e=>{throw a&&a(e),e},onCacheKey:e=>Wv(t,n,e)}}function iC(e,t,n,r){let{modifiers:i,pluralRules:a,messageResolver:o,fallbackLocale:s,fallbackWarn:c,missingWarn:l,fallbackContext:u}=e,d={locale:t,modifiers:i,pluralRules:a,messages:(r,i)=>{let a=o(n,r);if(a==null&&(u||i)){let[,,n]=$S(u||e,r,t,s,c,l);a=o(n,r)}if(q(a)||gx(a)){let n=!1,i=eC(e,r,t,a,r,()=>{n=!0});return n?YS:i}else if(XS(a))return a;else return YS}};return e.processor&&(d.processor=e.processor),r.list&&(d.list=r.list),r.named&&(d.named=r.named),Kv(r.plural)&&(d.pluralIndex=r.plural),d}var aC=`11.2.2`,Q={UNEXPECTED_RETURN_TYPE:24,INVALID_ARGUMENT:25,MUST_BE_CALL_SETUP_TOP:26,NOT_INSTALLED:27,REQUIRED_VALUE:28,INVALID_VALUE:29,CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:30,NOT_INSTALLED_WITH_PROVIDE:31,UNEXPECTED_ERROR:32,NOT_COMPATIBLE_LEGACY_VUE_I18N:33,NOT_AVAILABLE_COMPOSITION_IN_LEGACY:34};function oC(e,...t){return Rb(e,null,void 0)}Q.UNEXPECTED_RETURN_TYPE,Q.INVALID_ARGUMENT,Q.MUST_BE_CALL_SETUP_TOP,Q.NOT_INSTALLED,Q.UNEXPECTED_ERROR,Q.REQUIRED_VALUE,Q.INVALID_VALUE,Q.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN,Q.NOT_INSTALLED_WITH_PROVIDE,Q.NOT_COMPATIBLE_LEGACY_VUE_I18N,Q.NOT_AVAILABLE_COMPOSITION_IN_LEGACY;var sC=Uv(`__translateVNode`),cC=Uv(`__datetimeParts`),lC=Uv(`__numberParts`),uC=Uv(`__setPluralRules`);Uv(`__intlifyMeta`);var dC=Uv(`__injectWithOption`),fC=Uv(`__dispose`),pC={FALLBACK_TO_ROOT:8,NOT_FOUND_PARENT_SCOPE:9,IGNORE_OBJ_FLATTEN:10,DEPRECATE_LEGACY_MODE:11,DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE:12,DUPLICATE_USE_I18N_CALLING:13};pC.FALLBACK_TO_ROOT,pC.NOT_FOUND_PARENT_SCOPE,pC.IGNORE_OBJ_FLATTEN,pC.DEPRECATE_LEGACY_MODE,pC.DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE,pC.DUPLICATE_USE_I18N_CALLING;function mC(e){if(!Y(e)||gx(e))return e;for(let t in e)if(ny(e,t))if(!t.includes(`.`))Y(e[t])&&mC(e[t]);else{let n=t.split(`.`),r=n.length-1,i=e,a=!1;for(let e=0;e{if(`locale`in e&&`resource`in e){let{locale:t,resource:n}=e;t?(o[t]=o[t]||W(),ly(n,o[t])):ly(n,o)}else q(e)&&ly(JSON.parse(e),o)}),i==null&&a)for(let e in o)ny(o,e)&&mC(o[e]);return o}function gC(e){return e.type}function _C(e,t,n){let r=Y(t.messages)?t.messages:W();`__i18nGlobal`in n&&(r=hC(e.locale.value,{messages:r,__i18n:n.__i18nGlobal}));let i=Object.keys(r);if(i.length&&i.forEach(t=>{e.mergeLocaleMessage(t,r[t])}),Y(t.datetimeFormats)){let n=Object.keys(t.datetimeFormats);n.length&&n.forEach(n=>{e.mergeDateTimeFormat(n,t.datetimeFormats[n])})}if(Y(t.numberFormats)){let n=Object.keys(t.numberFormats);n.length&&n.forEach(n=>{e.mergeNumberFormat(n,t.numberFormats[n])})}}function vC(e){return z(as,null,e,0)}function yC(){if(!(`currentInstance`in bu))return Rs()}var bC=()=>[],xC=()=>!1,SC=0;function CC(e){return((t,n,r,i)=>e(n,r,yC()||void 0,i))}function wC(e={}){let{__root:t,__injectWithOption:n}=e,r=t===void 0,i=e.flatJson,a=Hv?hn:gn,o=J(e.inheritLocale)?e.inheritLocale:!0,s=a(t&&o?t.locale.value:q(e.locale)?e.locale:fS),c=a(t&&o?t.fallbackLocale.value:q(e.fallbackLocale)||G(e.fallbackLocale)||X(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:s.value),l=a(hC(s.value,e)),u=a(X(e.datetimeFormats)?e.datetimeFormats:{[s.value]:{}}),d=a(X(e.numberFormats)?e.numberFormats:{[s.value]:{}}),f=t?t.missingWarn:J(e.missingWarn)||Jv(e.missingWarn)?e.missingWarn:!0,p=t?t.fallbackWarn:J(e.fallbackWarn)||Jv(e.fallbackWarn)?e.fallbackWarn:!0,m=t?t.fallbackRoot:J(e.fallbackRoot)?e.fallbackRoot:!0,h=!!e.fallbackFormat,g=K(e.missing)?e.missing:null,_=K(e.missing)?CC(e.missing):null,v=K(e.postTranslation)?e.postTranslation:null,y=t?t.warnHtmlMessage:J(e.warnHtmlMessage)?e.warnHtmlMessage:!0,b=!!e.escapeParameter,x=t?t.modifiers:X(e.modifiers)?e.modifiers:{},S=e.pluralRules||t&&t.pluralRules,C;C=(()=>{r&&SS(null);let t={version:aC,locale:s.value,fallbackLocale:c.value,messages:l.value,modifiers:x,pluralRules:S,missing:_===null?void 0:_,missingWarn:f,fallbackWarn:p,fallbackFormat:h,unresolving:!0,postTranslation:v===null?void 0:v,warnHtmlMessage:y,escapeParameter:b,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:`vue`}};t.datetimeFormats=u.value,t.numberFormats=d.value,t.__datetimeFormatters=X(C)?C.__datetimeFormatters:void 0,t.__numberFormatters=X(C)?C.__numberFormatters:void 0;let n=TS(t);return r&&SS(n),n})(),OS(C,s.value,c.value);function w(){return[s.value,c.value,l.value,u.value,d.value]}let T=B({get:()=>s.value,set:e=>{C.locale=e,s.value=e}}),E=B({get:()=>c.value,set:e=>{C.fallbackLocale=e,c.value=e,OS(C,s.value,e)}}),D=B(()=>l.value),O=B(()=>u.value),k=B(()=>d.value);function ee(){return K(v)?v:null}function te(e){v=e,C.postTranslation=e}function ne(){return g}function re(e){e!==null&&(_=CC(e)),g=e,C.missing=_}let ie=(e,n,i,a,o,s)=>{w();let c;try{r||(C.fallbackContext=t?CS():void 0),c=e(C)}finally{r||(C.fallbackContext=void 0)}if(i!==`translate exists`&&Kv(c)&&c===-1||i===`translate exists`&&!c){let[e,r]=n();return t&&m?a(t):o(e)}else if(s(c))return c;else throw oC(Q.UNEXPECTED_RETURN_TYPE)};function ae(...e){return ie(t=>Reflect.apply(ZS,null,[t,...e]),()=>nC(...e),`translate`,t=>Reflect.apply(t.t,t,[...e]),e=>e,e=>q(e))}function oe(...e){let[t,n,r]=e;if(r&&!Y(r))throw oC(Q.INVALID_ARGUMENT);return ae(t,n,Xv({resolvedMessage:!0},r||{}))}function se(...e){return ie(t=>Reflect.apply(MS,null,[t,...e]),()=>PS(...e),`datetime format`,t=>Reflect.apply(t.d,t,[...e]),()=>``,e=>q(e)||G(e))}function ce(...e){return ie(t=>Reflect.apply(IS,null,[t,...e]),()=>RS(...e),`number format`,t=>Reflect.apply(t.n,t,[...e]),()=>``,e=>q(e)||G(e))}function A(e){return e.map(e=>q(e)||Kv(e)||J(e)?vC(String(e)):e)}let le={normalize:A,interpolate:e=>e,type:`vnode`};function j(...e){return ie(t=>{let n,r=t;try{r.processor=le,n=Reflect.apply(ZS,null,[r,...e])}finally{r.processor=null}return n},()=>nC(...e),`translate`,t=>t[sC](...e),e=>[vC(e)],e=>G(e))}function ue(...e){return ie(t=>Reflect.apply(IS,null,[t,...e]),()=>RS(...e),`number format`,t=>t[lC](...e),bC,e=>q(e)||G(e))}function de(...e){return ie(t=>Reflect.apply(MS,null,[t,...e]),()=>PS(...e),`datetime format`,t=>t[cC](...e),bC,e=>q(e)||G(e))}function fe(e){S=e,C.pluralRules=S}function pe(e,t){return ie(()=>{if(!e)return!1;let n=ge(q(t)?t:s.value),r=C.messageResolver(n,e);return gx(r)||XS(r)||q(r)},()=>[e],`translate exists`,n=>Reflect.apply(n.te,n,[e,t]),xC,e=>J(e))}function me(e){let t=null,n=Xx(C,c.value,s.value);for(let r=0;r{o&&(s.value=e,C.locale=e,OS(C,s.value,c.value))}),$a(t.fallbackLocale,e=>{o&&(c.value=e,C.fallbackLocale=e,OS(C,s.value,c.value))}));let M={id:SC,locale:T,fallbackLocale:E,get inheritLocale(){return o},set inheritLocale(e){o=e,e&&t&&(s.value=t.locale.value,c.value=t.fallbackLocale.value,OS(C,s.value,c.value))},get availableLocales(){return Object.keys(l.value).sort()},messages:D,get modifiers(){return x},get pluralRules(){return S||{}},get isGlobal(){return r},get missingWarn(){return f},set missingWarn(e){f=e,C.missingWarn=f},get fallbackWarn(){return p},set fallbackWarn(e){p=e,C.fallbackWarn=p},get fallbackRoot(){return m},set fallbackRoot(e){m=e},get fallbackFormat(){return h},set fallbackFormat(e){h=e,C.fallbackFormat=h},get warnHtmlMessage(){return y},set warnHtmlMessage(e){y=e,C.warnHtmlMessage=e},get escapeParameter(){return b},set escapeParameter(e){b=e,C.escapeParameter=e},t:ae,getLocaleMessage:ge,setLocaleMessage:_e,mergeLocaleMessage:ve,getPostTranslationHandler:ee,setPostTranslationHandler:te,getMissingHandler:ne,setMissingHandler:re,[uC]:fe};return M.datetimeFormats=O,M.numberFormats=k,M.rt=oe,M.te=pe,M.tm=he,M.d=se,M.n=ce,M.getDateTimeFormat=ye,M.setDateTimeFormat=be,M.mergeDateTimeFormat=xe,M.getNumberFormat=Se,M.setNumberFormat=Ce,M.mergeNumberFormat=we,M[dC]=n,M[sC]=j,M[cC]=de,M[lC]=ue,M}var TC={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e===`parent`||e===`global`,default:`parent`},i18n:{type:Object}};function EC({slots:e},t){return t.length===1&&t[0]===`default`?(e.default?e.default():[]).reduce((e,t)=>[...e,...t.type===R?t.children:[t]],[]):t.reduce((t,n)=>{let r=e[n];return r&&(t[n]=r()),t},W())}function DC(){return R}var OC=$r({name:`i18n-t`,props:Xv({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>Kv(e)||!isNaN(e)}},TC),setup(e,t){let{slots:n,attrs:r}=t,i=e.i18n||zC({useScope:e.scope,__useComponent:!0});return()=>{let a=Object.keys(n).filter(e=>e[0]!==`_`),o=W();e.locale&&(o.locale=e.locale),e.plural!==void 0&&(o.plural=q(e.plural)?+e.plural:e.plural);let s=EC(t,a),c=i[sC](e.keypath,s,o),l=Xv(W(),r);return ic(q(e.tag)||Y(e.tag)?e.tag:DC(),l,c)}}});function kC(e){return G(e)&&!q(e[0])}function AC(e,t,n,r){let{slots:i,attrs:a}=t;return()=>{let t={part:!0},o=W();e.locale&&(t.locale=e.locale),q(e.format)?t.key=e.format:Y(e.format)&&(q(e.format.key)&&(t.key=e.format.key),o=Object.keys(e.format).reduce((t,r)=>n.includes(r)?Xv(W(),t,{[r]:e.format[r]}):t,W()));let s=r(e.value,t,o),c=[t.key];G(s)?c=s.map((e,t)=>{let n=i[e.type],r=n?n({[e.type]:e.value,index:t,parts:s}):[e.value];return kC(r)&&(r[0].key=`${e.type}-${t}`),r}):q(s)&&(c=[s]);let l=Xv(W(),a);return ic(q(e.tag)||Y(e.tag)?e.tag:DC(),l,c)}}var jC=$r({name:`i18n-n`,props:Xv({value:{type:Number,required:!0},format:{type:[String,Object]}},TC),setup(e,t){let n=e.i18n||zC({useScope:e.scope,__useComponent:!0});return AC(e,t,LS,(...e)=>n[lC](...e))}});function MC(e,t){let n=e;if(e.mode===`composition`)return n.__getInstance(t)||e.global;{let r=n.__getInstance(t);return r==null?e.global.__composer:r.__composer}}function NC(e){let t=t=>{let{instance:n,value:r}=t;if(!n||!n.$)throw oC(Q.UNEXPECTED_ERROR);let i=MC(e,n.$),a=PC(r);return[Reflect.apply(i.t,i,[...FC(a)]),i]};return{created:(n,r)=>{let[i,a]=t(r);Hv&&e.global===a&&(n.__i18nWatcher=$a(a.locale,()=>{r.instance&&r.instance.$forceUpdate()})),n.__composer=a,n.textContent=i},unmounted:e=>{Hv&&e.__i18nWatcher&&(e.__i18nWatcher(),e.__i18nWatcher=void 0,delete e.__i18nWatcher),e.__composer&&(e.__composer=void 0,delete e.__composer)},beforeUpdate:(e,{value:t})=>{if(e.__composer){let n=e.__composer,r=PC(t);e.textContent=Reflect.apply(n.t,n,[...FC(r)])}},getSSRProps:e=>{let[n]=t(e);return{textContent:n}}}}function PC(e){if(q(e))return{path:e};if(X(e)){if(!(`path`in e))throw oC(Q.REQUIRED_VALUE,`path`);return e}else throw oC(Q.INVALID_VALUE)}function FC(e){let{path:t,locale:n,args:r,choice:i,plural:a}=e,o={},s=r||{};return q(n)&&(o.locale=n),Kv(i)&&(o.plural=i),Kv(a)&&(o.plural=a),[t,s,o]}function IC(e,t,...n){let r=X(n[0])?n[0]:{};(!J(r.globalInstall)||r.globalInstall)&&([OC.name,`I18nT`].forEach(t=>e.component(t,OC)),[jC.name,`I18nN`].forEach(t=>e.component(t,jC)),[XC.name,`I18nD`].forEach(t=>e.component(t,XC))),e.directive(`t`,NC(t))}var LC=Uv(`global-vue-i18n`);function RC(e={}){let t=J(e.globalInjection)?e.globalInjection:!0,n=new Map,[r,i]=BC(e,!1),a=Uv(``);function o(e){return n.get(e)||null}function s(e,t){n.set(e,t)}function c(e){n.delete(e)}let l={get mode(){return`composition`},async install(e,...n){if(e.__VUE_I18N_SYMBOL__=a,e.provide(e.__VUE_I18N_SYMBOL__,l),X(n[0])){let e=n[0];l.__composerExtend=e.__composerExtend,l.__vueI18nExtend=e.__vueI18nExtend}let r=null;t&&(r=YC(e,l.global)),IC(e,l,...n);let i=e.unmount;e.unmount=()=>{r&&r(),l.dispose(),i()}},get global(){return i},dispose(){r.stop()},__instances:n,__getInstance:o,__setInstance:s,__deleteInstance:c};return l}function zC(e={}){let t=yC();if(t==null)throw oC(Q.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&t.appContext.app!=null&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw oC(Q.NOT_INSTALLED);let n=VC(t),r=UC(n),i=gC(t),a=HC(e,i);if(a===`global`)return _C(r,e,i),r;if(a===`parent`){let i=WC(n,t,e.__useComponent);return i??=r,i}let o=n,s=o.__getInstance(t);if(s==null){let n=Xv({},e);`__i18n`in i&&(n.__i18n=i.__i18n),r&&(n.__root=r),s=wC(n),o.__composerExtend&&(s[fC]=o.__composerExtend(s)),KC(o,t,s),o.__setInstance(t,s)}return s}function BC(e,t){let n=ze(),r=n.run(()=>wC(e));if(r==null)throw oC(Q.UNEXPECTED_ERROR);return[n,r]}function VC(e){let t=L(e.isCE?LC:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw oC(e.isCE?Q.NOT_INSTALLED_WITH_PROVIDE:Q.UNEXPECTED_ERROR);return t}function HC(e,t){return Yv(e)?`__i18n`in t?`local`:`global`:e.useScope?e.useScope:`local`}function UC(e){return e.mode===`composition`?e.global:e.global.__composer}function WC(e,t,n=!1){let r=null,i=t.root,a=GC(t,n);for(;a!=null;){let t=e;if(e.mode===`composition`&&(r=t.__getInstance(a)),r!=null||i===a)break;a=a.parent}return r}function GC(e,t=!1){return e==null?null:t&&e.vnode.ctx||e.parent}function KC(e,t,n){zi(()=>{},t),Ui(()=>{let r=n;e.__deleteInstance(t);let i=r[fC];i&&(i(),delete r[fC])},t)}var qC=[`locale`,`fallbackLocale`,`availableLocales`],JC=[`t`,`rt`,`d`,`n`,`tm`,`te`];function YC(e,t){let n=Object.create(null);return qC.forEach(e=>{let r=Object.getOwnPropertyDescriptor(t,e);if(!r)throw oC(Q.UNEXPECTED_ERROR);let i=F(r.value)?{get(){return r.value.value},set(e){r.value.value=e}}:{get(){return r.get&&r.get()}};Object.defineProperty(n,e,i)}),e.config.globalProperties.$i18n=n,JC.forEach(n=>{let r=Object.getOwnPropertyDescriptor(t,n);if(!r||!r.value)throw oC(Q.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${n}`,r)}),()=>{delete e.config.globalProperties.$i18n,JC.forEach(t=>{delete e.config.globalProperties[`$${t}`]})}}var XC=$r({name:`i18n-d`,props:Xv({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},TC),setup(e,t){let n=e.i18n||zC({useScope:e.scope,__useComponent:!0});return AC(e,t,NS,(...e)=>n[cC](...e))}});gS(Ux),vS(lS),bS(Xx);function ZC(e=V()){let t=Db(e);return e=>{if(e!=null)return t.getRouteBaseName(e)||void 0}}function QC(e=V()){let t=Db(e);return(e,n)=>Sy(t,e,n)}function $C(e=V()){let t=Db(e);return(e,n)=>Cy(t,e,n)}function ew(e=V()){let t=Db(e);return e=>Ey(t,e)}var tw=`nuxt-i18n-slp`,nw=new RegExp([``,`.+?`,``].join(``),`g`),rw=ff({name:`i18n:plugin:switch-locale-path-ssr`,dependsOn:[`i18n:plugin`],setup(e){let t=V(e._id),n=ew(t);t.hook(`app:rendered`,e=>{e.renderResult?.html!=null&&(e.renderResult.html=e.renderResult.html.replaceAll(nw,(e,t)=>{let r=encodeURI(n(t??``));return e.replace(/href="([^"]+)"/,`href="${r||`#`}" `)}))})}}),iw=ff({name:`i18n:plugin:route-locale-detect`,dependsOn:[`i18n:plugin`],async setup(e){let t,n,r=V(e._id),i=_b(r),a=mb();[t,n]=nf(()=>r.runWithContext(()=>jb(r,i.initial&&a.value||Nb(r,r.$router.currentRoute.value)))),await t,n()}},1),aw=ff({name:`i18n:plugin:preload`,dependsOn:[`i18n:plugin`],async setup(e){}},1);function ow(e,{extendComposer:t,extendComposerInstance:n}){let r=ze(),i=e.install.bind(e);e.install=(a,...o)=>{let s=Xv({},o[0]);s.__composerExtend=t=>(n(t,$y(e)),()=>{}),e.mode===`legacy`&&(s.__vueI18nExtend=e=>(n(e,$y(e)),()=>{})),Reflect.apply(i,e,[a,s]);let c=$y(e);if(r.run(()=>{t(c),e.mode===`legacy`&&`__composer`in e.global&&n(e.global,$y(e.global))}),e.mode===`composition`&&a.config.globalProperties.$i18n!=null&&n(a.config.globalProperties.$i18n,c),a.unmount){let e=a.unmount.bind(a);a.unmount=()=>{r.stop(),e()}}}}const sw=async e=>{let t=await Ky(Hy);t.locale=e||t.locale||`en-US`,t.defaultLocale=e,t.fallbackLocale??=!1,t.messages??={};for(let e of By)t.messages[e]??={};return t};var cw=ff({name:`i18n:plugin`,parallel:!1,async setup(e){let t,n;Object.defineProperty(e.versions,`nuxtI18n`,{get:()=>`10.2.1`});let r=V(e._id),i=eb(r),a=r.ssrContext?.event?.context?.nuxtI18n?.vueI18nOptions,o=ub(kv({xForwardedHost:!0}).host)||i.defaultLocale||``,s=a||([t,n]=nf(()=>sw(o)),t=await t,n(),t),c=pb();c.value??=ob(s.fallbackLocale),By.map(e=>`/_i18n/mBTQZivj/${e}/messages.json`);let l=RC(s),u=Tb(void 0,tb(r),r),d=gb(r,l,s.defaultLocale);r._nuxtI18n=d,ow(l,{extendComposer(e){e.locales=B(()=>i.locales),e.localeCodes=B(()=>By);let t=hn(d.getBaseUrl());e.baseUrl=B(()=>t.value),$a(e.locale,()=>t.value=d.getBaseUrl()),e.strategy=`no_prefix`,e.localeProperties=B(()=>Uy.find(t=>t.code===e.locale.value)||{code:e.locale.value}),e.setLocale=async e=>{await jb(r,e),await r.runWithContext(()=>(r.$router.currentRoute.value,void 0))},e.loadLocaleMessages=d.loadMessages,e.differentDomains=!1,e.defaultLocale=s.defaultLocale,e.getBrowserLocale=()=>fb(u.navigator()),e.getLocaleCookie=()=>fb(u.cookie()),e.setLocaleCookie=d.setCookieLocale,e.finalizePendingLocaleChange=async()=>{l.__pendingLocale&&await l.__resolvePendingLocalePromise?.()},e.waitForPendingLocaleChange=async()=>{await l?.__pendingLocalePromise}},extendComposerInstance(e,t){let n=[[`locales`,()=>t.locales],[`localeCodes`,()=>t.localeCodes],[`baseUrl`,()=>t.baseUrl],[`strategy`,()=>`no_prefix`],[`localeProperties`,()=>t.localeProperties],[`setLocale`,()=>e=>Reflect.apply(t.setLocale,t,[e])],[`loadLocaleMessages`,()=>e=>Reflect.apply(t.loadLocaleMessages,t,[e])],[`differentDomains`,()=>!1],[`defaultLocale`,()=>t.defaultLocale],[`getBrowserLocale`,()=>()=>Reflect.apply(t.getBrowserLocale,t,[])],[`getLocaleCookie`,()=>()=>Reflect.apply(t.getLocaleCookie,t,[])],[`setLocaleCookie`,()=>e=>Reflect.apply(t.setLocaleCookie,t,[e])],[`finalizePendingLocaleChange`,()=>()=>Reflect.apply(t.finalizePendingLocaleChange,t,[])],[`waitForPendingLocaleChange`,()=>()=>Reflect.apply(t.waitForPendingLocaleChange,t,[])]];for(let[t,r]of n)Object.defineProperty(e,t,{get:r})}}),r.vueApp.use(l),Object.defineProperty(r,`$i18n`,{get:()=>Qy(l)}),r.provide(`localeHead`,e=>Oy(r._nuxtI18n.composableCtx,e)),r.provide(`localePath`,QC(r)),r.provide(`localeRoute`,$C(r)),r.provide(`routeBaseName`,ZC(r)),r.provide(`getRouteBaseName`,ZC(r)),r.provide(`switchLocalePath`,ew(r))}},1),lw=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},uw={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},dw=new class{#e=uw;setTimeoutProvider(e){this.#e=e}setTimeout(e,t){return this.#e.setTimeout(e,t)}clearTimeout(e){this.#e.clearTimeout(e)}setInterval(e,t){return this.#e.setInterval(e,t)}clearInterval(e){this.#e.clearInterval(e)}};function fw(e){setTimeout(e,0)}var pw=typeof window>`u`||`Deno`in globalThis;function mw(){}function hw(e,t){return typeof e==`function`?e(t):e}function gw(e){return typeof e==`number`&&e>=0&&e!==1/0}function _w(e,t){return Math.max(e+(t||0)-Date.now(),0)}function vw(e,t){return typeof e==`function`?e(t):e}function yw(e,t){return typeof e==`function`?e(t):e}function bw(e,t){let{type:n=`all`,exact:r,fetchStatus:i,predicate:a,queryKey:o,stale:s}=e;if(o){if(r){if(t.queryHash!==Sw(o,t.options))return!1}else if(!ww(t.queryKey,o))return!1}if(n!==`all`){let e=t.isActive();if(n===`active`&&!e||n===`inactive`&&e)return!1}return!(typeof s==`boolean`&&t.isStale()!==s||i&&i!==t.state.fetchStatus||a&&!a(t))}function xw(e,t){let{exact:n,status:r,predicate:i,mutationKey:a}=e;if(a){if(!t.options.mutationKey)return!1;if(n){if(Cw(t.options.mutationKey)!==Cw(a))return!1}else if(!ww(t.options.mutationKey,a))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function Sw(e,t){return(t?.queryKeyHashFn||Cw)(e)}function Cw(e){return JSON.stringify(e,(e,t)=>kw(t)?Object.keys(t).sort().reduce((e,n)=>(e[n]=t[n],e),{}):t)}function ww(e,t){return e===t?!0:typeof e==typeof t&&e&&t&&typeof e==`object`&&typeof t==`object`?Object.keys(t).every(n=>ww(e[n],t[n])):!1}var Tw=Object.prototype.hasOwnProperty;function Ew(e,t){if(e===t)return e;let n=Ow(e)&&Ow(t);if(!n&&!(kw(e)&&kw(t)))return t;let r=(n?e:Object.keys(e)).length,i=n?t:Object.keys(t),a=i.length,o=n?Array(a):{},s=0;for(let c=0;c{dw.setTimeout(t,e)})}function Mw(e,t,n){return typeof n.structuralSharing==`function`?n.structuralSharing(e,t):n.structuralSharing===!1?t:Ew(e,t)}function Nw(e,t,n=0){let r=[...e,t];return n&&r.length>n?r.slice(1):r}function Pw(e,t,n=0){let r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var Fw=Symbol();function Iw(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===Fw?()=>Promise.reject(Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function Lw(e,t){return typeof e==`function`?e(...t):!!e}var Rw=new class extends lw{#e;#t;#n;constructor(){super(),this.#n=e=>{if(!pw&&window.addEventListener){let t=()=>e();return window.addEventListener(`visibilitychange`,t,!1),()=>{window.removeEventListener(`visibilitychange`,t)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(e=>{typeof e==`boolean`?this.setFocused(e):this.onFocus()})}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){let e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return typeof this.#e==`boolean`?this.#e:globalThis.document?.visibilityState!==`hidden`}};function zw(){let e,t,n=new Promise((n,r)=>{e=n,t=r});n.status=`pending`,n.catch(()=>{});function r(e){Object.assign(n,e),delete n.resolve,delete n.reject}return n.resolve=t=>{r({status:`fulfilled`,value:t}),e(t)},n.reject=e=>{r({status:`rejected`,reason:e}),t(e)},n}function Bw(e){let t;if(e.then(e=>(t=e,e),mw)?.catch(mw),t!==void 0)return{data:t}}function Vw(e){return e}function Hw(e,t,n){if(typeof t!=`object`||!t)return;let r=e.getMutationCache(),i=e.getQueryCache(),a=n?.defaultOptions?.deserializeData??e.getDefaultOptions().hydrate?.deserializeData??Vw,o=t.mutations||[],s=t.queries||[];o.forEach(({state:t,...i})=>{r.build(e,{...e.getDefaultOptions().hydrate?.mutations,...n?.defaultOptions?.mutations,...i},t)}),s.forEach(({queryKey:t,state:r,queryHash:o,meta:s,promise:c,dehydratedAt:l})=>{let u=c?Bw(c):void 0,d=r.data===void 0?u?.data:r.data,f=d===void 0?d:a(d),p=i.get(o),m=p?.state.status===`pending`,h=p?.state.fetchStatus===`fetching`;if(p){let e=u&&l!==void 0&&l>p.state.dataUpdatedAt;if(r.dataUpdatedAt>p.state.dataUpdatedAt||e){let{fetchStatus:e,...t}=r;p.setState({...t,data:f})}}else p=i.build(e,{...e.getDefaultOptions().hydrate?.queries,...n?.defaultOptions?.queries,queryKey:t,queryHash:o,meta:s},{...r,data:f,fetchStatus:`idle`,status:f===void 0?r.status:`success`});c&&!m&&!h&&(l===void 0||l>p.state.dataUpdatedAt)&&p.fetch(void 0,{initialPromise:Promise.resolve(c).then(a)}).catch(mw)})}var Uw=fw;function Ww(){let e=[],t=0,n=e=>{e()},r=e=>{e()},i=Uw,a=r=>{t?e.push(r):i(()=>{n(r)})},o=()=>{let t=e;e=[],t.length&&i(()=>{r(()=>{t.forEach(e=>{n(e)})})})};return{batch:e=>{let n;t++;try{n=e()}finally{t--,t||o()}return n},batchCalls:e=>(...t)=>{a(()=>{e(...t)})},schedule:a,setNotifyFunction:e=>{n=e},setBatchNotifyFunction:e=>{r=e},setScheduler:e=>{i=e}}}var Gw=Ww(),Kw=new class extends lw{#e=!0;#t;#n;constructor(){super(),this.#n=e=>{if(!pw&&window.addEventListener){let t=()=>e(!0),n=()=>e(!1);return window.addEventListener(`online`,t,!1),window.addEventListener(`offline`,n,!1),()=>{window.removeEventListener(`online`,t),window.removeEventListener(`offline`,n)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(this.setOnline.bind(this))}setOnline(e){this.#e!==e&&(this.#e=e,this.listeners.forEach(t=>{t(e)}))}isOnline(){return this.#e}};function qw(e){return Math.min(1e3*2**e,3e4)}function Jw(e){return(e??`online`)===`online`?Kw.isOnline():!0}var Yw=class extends Error{constructor(e){super(`CancelledError`),this.revert=e?.revert,this.silent=e?.silent}};function Xw(e){let t=!1,n=0,r,i=zw(),a=()=>i.status!==`pending`,o=t=>{if(!a()){let n=new Yw(t);f(n),e.onCancel?.(n)}},s=()=>{t=!0},c=()=>{t=!1},l=()=>Rw.isFocused()&&(e.networkMode===`always`||Kw.isOnline())&&e.canRun(),u=()=>Jw(e.networkMode)&&e.canRun(),d=e=>{a()||(r?.(),i.resolve(e))},f=e=>{a()||(r?.(),i.reject(e))},p=()=>new Promise(t=>{r=e=>{(a()||l())&&t(e)},e.onPause?.()}).then(()=>{r=void 0,a()||e.onContinue?.()}),m=()=>{if(a())return;let r,i=n===0?e.initialPromise:void 0;try{r=i??e.fn()}catch(e){r=Promise.reject(e)}Promise.resolve(r).then(d).catch(r=>{if(a())return;let i=e.retry??(pw?0:3),o=e.retryDelay??qw,s=typeof o==`function`?o(n,r):o,c=i===!0||typeof i==`number`&&nl()?void 0:p()).then(()=>{t?f(r):m()})})};return{promise:i,status:()=>i.status,cancel:o,continue:()=>(r?.(),i),cancelRetry:s,continueRetry:c,canStart:u,start:()=>(u()?m():p().then(m),i)}}var Zw=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),gw(this.gcTime)&&(this.#e=dw.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(pw?1/0:300*1e3))}clearGcTimeout(){this.#e&&=(dw.clearTimeout(this.#e),void 0)}},Qw=class extends Zw{#e;#t;#n;#r;#i;#a;#o;constructor(e){super(),this.#o=!1,this.#a=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#r=e.client,this.#n=this.#r.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#e=tT(this.options),this.state=e.state??this.#e,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#i?.promise}setOptions(e){if(this.options={...this.#a,...e},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){let e=tT(this.options);e.data!==void 0&&(this.setState(eT(e.data,e.dataUpdatedAt)),this.#e=e)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus===`idle`&&this.#n.remove(this)}setData(e,t){let n=Mw(this.state.data,e,this.options);return this.#s({data:n,type:`success`,dataUpdatedAt:t?.updatedAt,manual:t?.manual}),n}setState(e,t){this.#s({type:`setState`,state:e,setStateOptions:t})}cancel(e){let t=this.#i?.promise;return this.#i?.cancel(e),t?t.then(mw).catch(mw):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#e)}isActive(){return this.observers.some(e=>yw(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Fw||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>vw(e.options.staleTime,this)===`static`):!1}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e===`static`?!1:this.state.isInvalidated?!0:!_w(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(e=>e.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#i?.continue()}onOnline(){this.observers.find(e=>e.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#i?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#n.notify({type:`observerAdded`,query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#i&&(this.#o?this.#i.cancel({revert:!0}):this.#i.cancelRetry()),this.scheduleGc()),this.#n.notify({type:`observerRemoved`,query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#s({type:`invalidate`})}async fetch(e,t){if(this.state.fetchStatus!==`idle`&&this.#i?.status()!==`rejected`){if(this.state.data!==void 0&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#i)return this.#i.continueRetry(),this.#i.promise}if(e&&this.setOptions(e),!this.options.queryFn){let e=this.observers.find(e=>e.options.queryFn);e&&this.setOptions(e.options)}let n=new AbortController,r=e=>{Object.defineProperty(e,`signal`,{enumerable:!0,get:()=>(this.#o=!0,n.signal)})},i=()=>{let e=Iw(this.options,t),n=(()=>{let e={client:this.#r,queryKey:this.queryKey,meta:this.meta};return r(e),e})();return this.#o=!1,this.options.persister?this.options.persister(e,n,this):e(n)},a=(()=>{let e={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#r,state:this.state,fetchFn:i};return r(e),e})();this.options.behavior?.onFetch(a,this),this.#t=this.state,(this.state.fetchStatus===`idle`||this.state.fetchMeta!==a.fetchOptions?.meta)&&this.#s({type:`fetch`,meta:a.fetchOptions?.meta}),this.#i=Xw({initialPromise:t?.initialPromise,fn:a.fetchFn,onCancel:e=>{e instanceof Yw&&e.revert&&this.setState({...this.#t,fetchStatus:`idle`}),n.abort()},onFail:(e,t)=>{this.#s({type:`failed`,failureCount:e,error:t})},onPause:()=>{this.#s({type:`pause`})},onContinue:()=>{this.#s({type:`continue`})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0});try{let e=await this.#i.start();if(e===void 0)throw Error(`${this.queryHash} data is undefined`);return this.setData(e),this.#n.config.onSuccess?.(e,this),this.#n.config.onSettled?.(e,this.state.error,this),e}catch(e){if(e instanceof Yw){if(e.silent)return this.#i.promise;if(e.revert){if(this.state.data===void 0)throw e;return this.state.data}}throw this.#s({type:`error`,error:e}),this.#n.config.onError?.(e,this),this.#n.config.onSettled?.(this.state.data,e,this),e}finally{this.scheduleGc()}}#s(e){this.state=(t=>{switch(e.type){case`failed`:return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case`pause`:return{...t,fetchStatus:`paused`};case`continue`:return{...t,fetchStatus:`fetching`};case`fetch`:return{...t,...$w(t.data,this.options),fetchMeta:e.meta??null};case`success`:let n={...t,...eT(e.data,e.dataUpdatedAt),dataUpdateCount:t.dataUpdateCount+1,...!e.manual&&{fetchStatus:`idle`,fetchFailureCount:0,fetchFailureReason:null}};return this.#t=e.manual?n:void 0,n;case`error`:let r=e.error;return{...t,error:r,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:r,fetchStatus:`idle`,status:`error`};case`invalidate`:return{...t,isInvalidated:!0};case`setState`:return{...t,...e.state}}})(this.state),Gw.batch(()=>{this.observers.forEach(e=>{e.onQueryUpdate()}),this.#n.notify({query:this,type:`updated`,action:e})})}};function $w(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Jw(t.networkMode)?`fetching`:`paused`,...e===void 0&&{error:null,status:`pending`}}}function eT(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:`success`}}function tT(e){let t=typeof e.initialData==`function`?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt==`function`?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?`success`:`pending`,fetchStatus:`idle`}}function nT(e){return{onFetch:(t,n)=>{let r=t.options,i=t.fetchOptions?.meta?.fetchMore?.direction,a=t.state.data?.pages||[],o=t.state.data?.pageParams||[],s={pages:[],pageParams:[]},c=0,l=async()=>{let n=!1,l=e=>{Object.defineProperty(e,`signal`,{enumerable:!0,get:()=>(t.signal.aborted?n=!0:t.signal.addEventListener(`abort`,()=>{n=!0}),t.signal)})},u=Iw(t.options,t.fetchOptions),d=async(e,r,i)=>{if(n)return Promise.reject();if(r==null&&e.pages.length)return Promise.resolve(e);let a=await u((()=>{let e={client:t.client,queryKey:t.queryKey,pageParam:r,direction:i?`backward`:`forward`,meta:t.options.meta};return l(e),e})()),{maxPages:o}=t.options,s=i?Pw:Nw;return{pages:s(e.pages,a,o),pageParams:s(e.pageParams,r,o)}};if(i&&a.length){let e=i===`backward`,t=e?iT:rT,n={pages:a,pageParams:o};s=await d(n,t(r,n),e)}else{let t=e??a.length;do{let e=c===0?o[0]??r.initialPageParam:rT(r,s);if(c>0&&e==null)break;s=await d(s,e),c++}while(ct.options.persister?.(l,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n):t.fetchFn=l}}}function rT(e,{pages:t,pageParams:n}){let r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function iT(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}var aT=class extends Zw{#e;#t;#n;#r;constructor(e){super(),this.#e=e.client,this.mutationId=e.mutationId,this.#n=e.mutationCache,this.#t=[],this.state=e.state||oT(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#t.includes(e)||(this.#t.push(e),this.clearGcTimeout(),this.#n.notify({type:`observerAdded`,mutation:this,observer:e}))}removeObserver(e){this.#t=this.#t.filter(t=>t!==e),this.scheduleGc(),this.#n.notify({type:`observerRemoved`,mutation:this,observer:e})}optionalRemove(){this.#t.length||(this.state.status===`pending`?this.scheduleGc():this.#n.remove(this))}continue(){return this.#r?.continue()??this.execute(this.state.variables)}async execute(e){let t=()=>{this.#i({type:`continue`})},n={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#r=Xw({fn:()=>this.options.mutationFn?this.options.mutationFn(e,n):Promise.reject(Error(`No mutationFn found`)),onFail:(e,t)=>{this.#i({type:`failed`,failureCount:e,error:t})},onPause:()=>{this.#i({type:`pause`})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#n.canRun(this)});let r=this.state.status===`pending`,i=!this.#r.canStart();try{if(r)t();else{this.#i({type:`pending`,variables:e,isPaused:i}),await this.#n.config.onMutate?.(e,this,n);let t=await this.options.onMutate?.(e,n);t!==this.state.context&&this.#i({type:`pending`,context:t,variables:e,isPaused:i})}let a=await this.#r.start();return await this.#n.config.onSuccess?.(a,e,this.state.context,this,n),await this.options.onSuccess?.(a,e,this.state.context,n),await this.#n.config.onSettled?.(a,null,this.state.variables,this.state.context,this,n),await this.options.onSettled?.(a,null,e,this.state.context,n),this.#i({type:`success`,data:a}),a}catch(t){try{throw await this.#n.config.onError?.(t,e,this.state.context,this,n),await this.options.onError?.(t,e,this.state.context,n),await this.#n.config.onSettled?.(void 0,t,this.state.variables,this.state.context,this,n),await this.options.onSettled?.(void 0,t,e,this.state.context,n),t}finally{this.#i({type:`error`,error:t})}}finally{this.#n.runNext(this)}}#i(e){this.state=(t=>{switch(e.type){case`failed`:return{...t,failureCount:e.failureCount,failureReason:e.error};case`pause`:return{...t,isPaused:!0};case`continue`:return{...t,isPaused:!1};case`pending`:return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:`pending`,variables:e.variables,submittedAt:Date.now()};case`success`:return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:`success`,isPaused:!1};case`error`:return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:`error`}}})(this.state),Gw.batch(()=>{this.#t.forEach(t=>{t.onMutationUpdate(e)}),this.#n.notify({mutation:this,type:`updated`,action:e})})}};function oT(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:`idle`,variables:void 0,submittedAt:0}}var sT=class extends lw{constructor(e={}){super(),this.config=e,this.#e=new Set,this.#t=new Map,this.#n=0}#e;#t;#n;build(e,t,n){let r=new aT({client:e,mutationCache:this,mutationId:++this.#n,options:e.defaultMutationOptions(t),state:n});return this.add(r),r}add(e){this.#e.add(e);let t=cT(e);if(typeof t==`string`){let n=this.#t.get(t);n?n.push(e):this.#t.set(t,[e])}this.notify({type:`added`,mutation:e})}remove(e){if(this.#e.delete(e)){let t=cT(e);if(typeof t==`string`){let n=this.#t.get(t);if(n)if(n.length>1){let t=n.indexOf(e);t!==-1&&n.splice(t,1)}else n[0]===e&&this.#t.delete(t)}}this.notify({type:`removed`,mutation:e})}canRun(e){let t=cT(e);if(typeof t==`string`){let n=this.#t.get(t)?.find(e=>e.state.status===`pending`);return!n||n===e}else return!0}runNext(e){let t=cT(e);return typeof t==`string`?(this.#t.get(t)?.find(t=>t!==e&&t.state.isPaused))?.continue()??Promise.resolve():Promise.resolve()}clear(){Gw.batch(()=>{this.#e.forEach(e=>{this.notify({type:`removed`,mutation:e})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(e){let t={exact:!0,...e};return this.getAll().find(e=>xw(t,e))}findAll(e={}){return this.getAll().filter(t=>xw(e,t))}notify(e){Gw.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){let e=this.getAll().filter(e=>e.state.isPaused);return Gw.batch(()=>Promise.all(e.map(e=>e.continue().catch(mw))))}};function cT(e){return e.options.scope?.id}var lT=class extends lw{constructor(e={}){super(),this.config=e,this.#e=new Map}#e;build(e,t,n){let r=t.queryKey,i=t.queryHash??Sw(r,t),a=this.get(i);return a||(a=new Qw({client:e,queryKey:r,queryHash:i,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(r)}),this.add(a)),a}add(e){this.#e.has(e.queryHash)||(this.#e.set(e.queryHash,e),this.notify({type:`added`,query:e}))}remove(e){let t=this.#e.get(e.queryHash);t&&(e.destroy(),t===e&&this.#e.delete(e.queryHash),this.notify({type:`removed`,query:e}))}clear(){Gw.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#e.get(e)}getAll(){return[...this.#e.values()]}find(e){let t={exact:!0,...e};return this.getAll().find(e=>bw(t,e))}findAll(e={}){let t=this.getAll();return Object.keys(e).length>0?t.filter(t=>bw(e,t)):t}notify(e){Gw.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){Gw.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){Gw.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},uT=class{#e;#t;#n;#r;#i;#a;#o;#s;constructor(e={}){this.#e=e.queryCache||new lT,this.#t=e.mutationCache||new sT,this.#n=e.defaultOptions||{},this.#r=new Map,this.#i=new Map,this.#a=0}mount(){this.#a++,this.#a===1&&(this.#o=Rw.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#s=Kw.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#a--,this.#a===0&&(this.#o?.(),this.#o=void 0,this.#s?.(),this.#s=void 0)}isFetching(e){return this.#e.findAll({...e,fetchStatus:`fetching`}).length}isMutating(e){return this.#t.findAll({...e,status:`pending`}).length}getQueryData(e){let t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state.data}ensureQueryData(e){let t=this.defaultQueryOptions(e),n=this.#e.build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(vw(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return this.#e.findAll(e).map(({queryKey:e,state:t})=>[e,t.data])}setQueryData(e,t,n){let r=this.defaultQueryOptions({queryKey:e}),i=this.#e.get(r.queryHash)?.state.data,a=hw(t,i);if(a!==void 0)return this.#e.build(this,r).setData(a,{...n,manual:!0})}setQueriesData(e,t,n){return Gw.batch(()=>this.#e.findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,n)]))}getQueryState(e){let t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state}removeQueries(e){let t=this.#e;Gw.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){let n=this.#e;return Gw.batch(()=>(n.findAll(e).forEach(e=>{e.reset()}),this.refetchQueries({type:`active`,...e},t)))}cancelQueries(e,t={}){let n={revert:!0,...t},r=Gw.batch(()=>this.#e.findAll(e).map(e=>e.cancel(n)));return Promise.all(r).then(mw).catch(mw)}invalidateQueries(e,t={}){return Gw.batch(()=>(this.#e.findAll(e).forEach(e=>{e.invalidate()}),e?.refetchType===`none`?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??`active`},t)))}refetchQueries(e,t={}){let n={...t,cancelRefetch:t.cancelRefetch??!0},r=Gw.batch(()=>this.#e.findAll(e).filter(e=>!e.isDisabled()&&!e.isStatic()).map(e=>{let t=e.fetch(void 0,n);return n.throwOnError||(t=t.catch(mw)),e.state.fetchStatus===`paused`?Promise.resolve():t}));return Promise.all(r).then(mw)}fetchQuery(e){let t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);let n=this.#e.build(this,t);return n.isStaleByTime(vw(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(mw).catch(mw)}fetchInfiniteQuery(e){return e.behavior=nT(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(mw).catch(mw)}ensureInfiniteQueryData(e){return e.behavior=nT(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return Kw.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#n}setDefaultOptions(e){this.#n=e}setQueryDefaults(e,t){this.#r.set(Cw(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){let t=[...this.#r.values()],n={};return t.forEach(t=>{ww(e,t.queryKey)&&Object.assign(n,t.defaultOptions)}),n}setMutationDefaults(e,t){this.#i.set(Cw(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){let t=[...this.#i.values()],n={};return t.forEach(t=>{ww(e,t.mutationKey)&&Object.assign(n,t.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;let t={...this.#n.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||=Sw(t.queryKey,t),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!==`always`),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode=`offlineFirst`),t.queryFn===Fw&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#n.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}},dT=`VUE_QUERY_CLIENT`;function fT(e){return`${dT}${e?`:${e}`:``}`}function pT(e,t){Object.keys(e).forEach(n=>{e[n]=t[n]})}function mT(e,t,n=``,r=0){if(t){let i=t(e,n,r);if(i===void 0&&F(e)||i!==void 0)return i}if(Array.isArray(e))return e.map((e,n)=>mT(e,t,String(n),r+1));if(typeof e==`object`&&gT(e)){let n=Object.entries(e).map(([e,n])=>[e,mT(n,t,e,r+1)]);return Object.fromEntries(n)}return e}function hT(e,t){return mT(e,t)}function $(e,t=!1){return hT(e,(e,n,r)=>{if(r===1&&n===`queryKey`)return $(e,!0);if(t&&_T(e))return $(e(),t);if(F(e))return $(I(e),t)})}function gT(e){if(Object.prototype.toString.call(e)!==`[object Object]`)return!1;let t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}function _T(e){return typeof e==`function`}var vT=class extends lT{find(e){return super.find($(e))}findAll(e={}){return super.findAll($(e))}},yT=class extends sT{find(e){return super.find($(e))}findAll(e={}){return super.findAll($(e))}},bT=class extends uT{constructor(e={}){let t={defaultOptions:e.defaultOptions,queryCache:e.queryCache||new vT,mutationCache:e.mutationCache||new yT};super(t),this.isRestoring=hn(!1)}isFetching(e={}){return super.isFetching($(e))}isMutating(e={}){return super.isMutating($(e))}getQueryData(e){return super.getQueryData($(e))}ensureQueryData(e){return super.ensureQueryData($(e))}getQueriesData(e){return super.getQueriesData($(e))}setQueryData(e,t,n={}){return super.setQueryData($(e),t,$(n))}setQueriesData(e,t,n={}){return super.setQueriesData($(e),t,$(n))}getQueryState(e){return super.getQueryState($(e))}removeQueries(e={}){return super.removeQueries($(e))}resetQueries(e={},t={}){return super.resetQueries($(e),$(t))}cancelQueries(e={},t={}){return super.cancelQueries($(e),$(t))}invalidateQueries(e={},t={}){let n=$(e),r=$(t);if(super.invalidateQueries({...n,refetchType:`none`},r),n.refetchType===`none`)return Promise.resolve();let i={...n,type:n.refetchType??n.type??`active`};return ir().then(()=>super.refetchQueries(i,r))}refetchQueries(e={},t={}){return super.refetchQueries($(e),$(t))}fetchQuery(e){return super.fetchQuery($(e))}prefetchQuery(e){return super.prefetchQuery($(e))}fetchInfiniteQuery(e){return super.fetchInfiniteQuery($(e))}prefetchInfiniteQuery(e){return super.prefetchInfiniteQuery($(e))}setDefaultOptions(e){super.setDefaultOptions($(e))}setQueryDefaults(e,t){super.setQueryDefaults($(e),$(t))}getQueryDefaults(e){return super.getQueryDefaults($(e))}setMutationDefaults(e,t){super.setMutationDefaults($(e),$(t))}getMutationDefaults(e){return super.getMutationDefaults($(e))}},xT={install:(e,t={})=>{let n=fT(t.queryClientKey),r;r=`queryClient`in t&&t.queryClient?t.queryClient:new bT(`queryClientConfig`in t?t.queryClientConfig:void 0),pw||r.mount();let i=()=>{};if(t.clientPersister){r.isRestoring&&(r.isRestoring.value=!0);let[e,n]=t.clientPersister(r);i=e,n.then(()=>{r.isRestoring&&(r.isRestoring.value=!1),t.clientPersisterOnSuccess?.(r)})}let a=()=>{r.unmount(),i()};if(e.onUnmount)e.onUnmount(a);else{let t=e.unmount;e.unmount=function(){a(),t()}}e.provide(n,r)}},ST=[Am,Mm,Rm,Q_,nv,rv,iv,ov,Lv,Rv,Bv,rw,iw,aw,cw,ff(e=>{let t=dv(`vue-query`),n=new bT({defaultOptions:{queries:{staleTime:5e3,refetchOnWindowFocus:!1,retry:1}}}),r={queryClient:n};e.vueApp.use(xT,r),Hw(n,t.value)}),ff({name:`i18n:plugin:ssg-detect`,dependsOn:[`i18n:plugin`,`i18n:plugin:route-locale-detect`],enforce:`post`,setup(e){}})];const CT=(e=`RouteProvider`)=>$r({name:e,props:{route:{type:Object,required:!0},vnode:Object,vnodeRef:Object,renderKey:String,trackRootNodes:Boolean},setup(e){let t=e.renderKey,n=e.route,r={};for(let i in e.route)Object.defineProperty(r,i,{get:()=>t===e.renderKey?e.route[i]:n[i],enumerable:!0});return Ka(Ff,rn(r)),()=>e.vnode?ic(e.vnode,{ref:e.vnodeRef}):e.vnode}}),wT=CT();var TT=new WeakMap,ET=$r({name:`NuxtPage`,inheritAttrs:!1,props:{name:{type:String},transition:{type:[Boolean,Object],default:void 0},keepalive:{type:[Boolean,Object],default:void 0},route:{type:Object},pageKey:{type:[Function,String],default:null}},setup(e,{attrs:t,slots:n,expose:r}){let i=V(),a=hn(),o=L(Ff,null),s;r({pageRef:a});let c=L(Pf,null),l,u=i.deferHydration();if(i.isHydrating){let e=i.hooks.hookOnce(`app:error`,u);If().beforeEach(e)}e.pageKey&&$a(()=>e.pageKey,(e,t)=>{e!==t&&i.callHook(`page:loading:start`)});let d=!1;{let e=If().beforeResolve(()=>{d=!1});Hi(()=>{e()})}return()=>ic(Bg,{name:e.name,route:e.route,...t},{default:t=>{let r=OT(o,t.route,t.Component),f=o&&o.matched.length===t.route.matched.length;if(!t.Component){if(l&&!f)return l;u();return}if(l&&c&&!c.isCurrent(t.route))return l;if(r&&o&&(!c||c?.isCurrent(o)))return f?l:null;let p=qg(t,e.pageKey),m=kT(o,t.route,t.Component);!i.isHydrating&&s===p&&!m&&ir(()=>{d=!0,i.callHook(`page:loading:end`)}),s=p;let h=!!(e.transition??t.route.meta.pageTransition??!1),g=h&&DT([e.transition,t.route.meta.pageTransition,!1,{onAfterLeave(){delete i._runningTransition,i.callHook(`page:transition:finish`,t.Component)}}]),_=e.keepalive??t.route.meta.keepalive??!1;return l=Zg(h&&g,Jg(_,ic(Jo,{suspensible:!0,onPending:()=>{h&&(i._runningTransition=!0),i.callHook(`page:start`,t.Component)},onResolve:async()=>{await ir();try{i._route.sync?.(),await i.callHook(`page:finish`,t.Component),delete i._runningTransition,!d&&!m&&(d=!0,await i.callHook(`page:loading:end`))}finally{u()}}},{default:()=>{let e={key:p||void 0,vnode:n.default?AT(n.default,t):t.Component,route:t.route,renderKey:p||void 0,trackRootNodes:h,vnodeRef:a};if(!_)return ic(wT,e);let r=t.Component.type,i=r,o=TT.get(i);return o||(o=CT(r.name||r.__name),TT.set(i,o)),ic(o,e)}}))).default(),l}})}});function DT(e){let t=[];for(let n of e)n&&t.push({...n,onAfterLeave:n.onAfterLeave?Yg(n.onAfterLeave):void 0});return Ef(...t)}function OT(e,t,n){if(!e)return!1;let r=t.matched.findIndex(e=>e.components?.default===n?.type);return!r||r===-1?!1:t.matched.slice(0,r).some((t,n)=>t.components?.default!==e.matched[n]?.components?.default)||n&&qg({route:t,Component:n})!==qg({route:e,Component:n})}function kT(e,t,n){return e?t.matched.findIndex(e=>e.components?.default===n?.type)ic(zv[e.name],e.layoutProps,t.slots)}}),MT=$r({name:`NuxtLayout`,inheritAttrs:!1,props:{name:{type:[String,Boolean,Object],default:null},fallback:{type:[String,Object],default:null}},setup(e,t){let n=V(),r=L(Ff),i=!r||r===Lf()?Hg():r,a=B(()=>{let t=I(e.name)??i?.meta.layout??`default`;return t&&!(t in zv)&&e.fallback&&(t=I(e.fallback)),t}),o=gn();t.expose({layoutRef:o});let s=n.deferHydration();if(n.isHydrating){let e=n.hooks.hookOnce(`app:error`,s);If().beforeEach(e)}let c;return()=>{let n=a.value&&a.value in zv,r=i?.meta.layoutTransition??!1,l=c;return c=a.value,Zg(n&&r,{default:()=>ic(Jo,{suspensible:!0,onResolve:()=>{ir(s)}},{default:()=>ic(NT,{layoutProps:Ms(t.attrs,{ref:o}),key:a.value||void 0,name:a.value,shouldProvide:!e.name,isRenderingNewLayout:e=>e!==l&&e===a.value,hasTransition:!!r},t.slots)})}).default()}}}),NT=$r({name:`NuxtLayoutProvider`,inheritAttrs:!1,props:{name:{type:[String,Boolean]},layoutProps:{type:Object},hasTransition:{type:Boolean},shouldProvide:{type:Boolean},isRenderingNewLayout:{type:Function,required:!0}},setup(e,t){let n=e.name;e.shouldProvide&&Ka(Pf,{isCurrent:e=>n===(e.meta.layout??`default`)});let r=L(Ff);if(r&&r===Lf()){let t=Hg(),n={};for(let i in t){let a=i;Object.defineProperty(n,a,{enumerable:!0,get:()=>e.isRenderingNewLayout(e.name)?t[a]:r[a]})}Ka(Ff,rn(n))}return()=>!n||typeof n==`string`&&!(n in zv)?t.slots.default?.():ic(jT,{key:n,layoutProps:e.layoutProps,name:n},t.slots)}}),PT=$r({__name:`app`,setup(e){return dm({titleTemplate:e=>e?`${e} - MetaCubeXD`:`MetaCubeXD`}),(e,t)=>{let n=ET,r=MT;return us(),gs(r,null,{default:Sr(()=>[z(n)]),_:1})}}}),FT={__name:`nuxt-error-page`,props:{error:Object},setup(e){let t=e.error,n=Number(t.statusCode||500),r=n===404,i=t.statusMessage??(r?`Page Not Found`:`Internal Server Error`),a=t.message||t.toString(),o=Ti(r?()=>hm(()=>import(`./1oRWw4hi.js`),__vite__mapDeps([25,26,27]),import.meta.url):()=>hm(()=>import(`./Do-mkOlF.js`),__vite__mapDeps([28,26,29]),import.meta.url));return(e,t)=>(us(),gs(I(o),Te(ws({statusCode:I(n),statusMessage:I(i),description:I(a),stack:I(void 0)})),null,16))}},IT={key:0},LT={__name:`nuxt-root`,setup(e){let t=()=>null,n=V(),r=n.deferHydration();if(n.isHydrating){let e=n.hooks.hookOnce(`app:error`,r);If().beforeEach(e)}window.location.pathname,Ka(Ff,Lf()),n.hooks.callHookWith(e=>e.map(e=>e()),`vue:setup`);let i=Hf(),a=/bot\b|chrome-lighthouse|facebookexternalhit|google\b/i;return qi((e,t,r)=>{if(n.hooks.callHook(`vue:error`,e,t,r).catch(e=>console.error("[nuxt] Error in `vue:error` hook",e)),a.test(navigator.userAgent))return n.hooks.callHook(`app:error`,e),console.error(`[nuxt] Not rendering error page for bot with user agent \`${navigator.userAgent}\`:`,e),!1;if(Gf(e)&&(e.fatal||e.unhandled))return n.runWithContext(()=>Uf(e)),!1}),(e,n)=>(us(),gs(Jo,{onResolve:I(r)},{default:Sr(()=>[I(!1)?(us(),hs(`div`,IT)):I(i)?(us(),gs(I(FT),{key:1,error:I(i)},null,8,[`error`])):I(!1)?(us(),gs(I(t),{key:2,context:I(!1)},null,8,[`context`])):I(!1)?(us(),gs(Qi(I(!1)),{key:3})):(us(),gs(I(PT),{key:4}))]),_:1},8,[`onResolve`]))}},RT;{let e;RT=async function(){if(e)return e;let t=!!(window.__NUXT__?.serverRendered??document.getElementById(`__NUXT_DATA__`)?.dataset.ssr===`true`),n=t?hu(LT):mu(LT),r=cf({vueApp:n});async function i(e){await r.callHook(`app:error`,e),r.payload.error||=Kf(e)}n.config.errorHandler=i,r.hook(`app:suspense:resolve`,()=>{n.config.errorHandler===i&&(n.config.errorHandler=void 0)}),!t&&rf.id&&r.hook(`app:suspense:resolve`,()=>{document.getElementById(rf.id)?.remove()});try{await df(r,ST)}catch(e){i(e)}try{await r.hooks.callHook(`app:created`,n),await r.hooks.callHook(`app:beforeMount`,n),n.mount(`#__nuxt`),await r.hooks.callHook(`app:mounted`,n),await ir()}catch(e){i(e)}return n},e=RT().catch(e=>{throw console.error(`Error while mounting app:`,e),e})}export{$r as $,c_ as A,o as At,Gc as B,J_ as C,Tn as Ct,V_ as D,M as Dt,K_ as E,I as Et,gf as F,Ss as G,R as H,Dc as I,hs as J,gs as K,Gl as L,Tp as M,l as Mt,Lf as N,q_ as O,be as Ot,If as P,z as Q,Jl as R,Mv as S,gn as St,k_ as T,yn as Tt,Fr as U,iu as V,B as W,Ds as X,ra as Y,Es as Z,Lw as _,nn as _t,$w as a,zi as at,lw as b,rn as bt,Rw as c,na as ct,gw as d,$a as dt,ic as et,mw as f,Sr as ft,Dw as g,Ve as gt,vw as h,F as ht,oT as i,Hi as it,dm as j,s as jt,T_ as k,Ne as kt,Cw as l,ia as lt,yw as m,Be as mt,fT as n,L as nt,Gw as o,Ui as ot,Mw as p,Cr as pt,Os as q,pT as r,ir as rt,zw as s,us as st,$ as t,qa as tt,pw as u,Qi as ut,_w as v,an as vt,O_ as w,bn as wt,zC as x,on as xt,dw as y,hn as yt,Wl as z}; \ No newline at end of file +`:t.breakLineCode,o=t.needIndent?t.needIndent:n!==`arrow`,s=e.helpers||[],c=cx(e,{mode:n,filename:r,sourceMap:i,breakLineCode:a,needIndent:o});c.push(n===`normal`?`function __msg__ (ctx) {`:`(ctx) => {`),c.indent(o),s.length>0&&(c.push(`const { ${sy(s.map(e=>`${e}: _${e}`),`, `)} } = ctx`),c.newline()),c.push(`return `),px(c,e),c.deindent(o),c.push(`}`),delete e.helpers;let{code:l,map:u}=c.context();return{ast:e,code:l,map:u?u.toJSON():void 0}};function hx(e,t={}){let n=Xv({},t),r=!!n.jit,i=!!n.minify,a=n.optimize==null?!0:n.optimize,o=$b(n).parse(e);return r?(a&&ax(o),i&&sx(o),{ast:o,code:``}):(ix(o,n),mx(o,n))}function gx(e){return Y(e)&&Ex(e)===0&&(ny(e,`b`)||ny(e,`body`))}var _x=[`b`,`body`];function vx(e){return Nx(e,_x)}var yx=[`c`,`cases`];function bx(e){return Nx(e,yx,[])}var xx=[`s`,`static`];function Sx(e){return Nx(e,xx)}var Cx=[`i`,`items`];function wx(e){return Nx(e,Cx,[])}var Tx=[`t`,`type`];function Ex(e){return Nx(e,Tx)}var Dx=[`v`,`value`];function Ox(e,t){let n=Nx(e,Dx);if(n!=null)return n;throw Fx(t)}var kx=[`m`,`modifier`];function Ax(e){return Nx(e,kx)}var jx=[`k`,`key`];function Mx(e){let t=Nx(e,jx);if(t)return t;throw Fx(6)}function Nx(e,t,n){for(let n=0;nLx(t,e)}function Lx(e,t){let n=vx(t);if(n==null)throw Fx(0);if(Ex(n)===1){let t=bx(n);return e.plural(t.reduce((t,n)=>[...t,Rx(e,n)],[]))}else return Rx(e,n)}function Rx(e,t){let n=Sx(t);if(n!=null)return e.type===`text`?n:e.normalize([n]);{let n=wx(t).reduce((t,n)=>[...t,zx(e,n)],[]);return e.normalize(n)}}function zx(e,t){let n=Ex(t);switch(n){case 3:return Ox(t,n);case 9:return Ox(t,n);case 4:{let r=t;if(ny(r,`k`)&&r.k)return e.interpolate(e.named(r.k));if(ny(r,`key`)&&r.key)return e.interpolate(e.named(r.key));throw Fx(n)}case 5:{let r=t;if(ny(r,`i`)&&Kv(r.i))return e.interpolate(e.list(r.i));if(ny(r,`index`)&&Kv(r.index))return e.interpolate(e.list(r.index));throw Fx(n)}case 6:{let n=t,r=Ax(n),i=Mx(n);return e.linked(zx(e,i),r?zx(e,r):void 0,e.type)}case 7:return Ox(t,n);case 8:return Ox(t,n);default:throw Error(`unhandled node on format message part: ${n}`)}}var Bx=e=>e,Vx=W();function Hx(e,t={}){let n=!1,r=t.onError||zb;return t.onError=e=>{n=!0,r(e)},{...hx(e,t),detectError:n}}function Ux(e,t){if(q(e)){J(t.warnHtmlMessage)&&t.warnHtmlMessage;let n=(t.onCacheKey||Bx)(e),r=Vx[n];if(r)return r;let{ast:i,detectError:a}=Hx(e,{...t,location:!1,jit:!0}),o=Ix(i);return a?o:Vx[n]=o}else{let t=e.cacheKey;return t?Vx[t]||(Vx[t]=Ix(e)):Ix(e)}}var Wx={INVALID_ARGUMENT:17,INVALID_DATE_ARGUMENT:18,INVALID_ISO_DATE_ARGUMENT:19,NOT_SUPPORT_NON_STRING_MESSAGE:20,NOT_SUPPORT_LOCALE_PROMISE_VALUE:21,NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:22,NOT_SUPPORT_LOCALE_TYPE:23};function Gx(e){return Rb(e,null,void 0)}Wx.INVALID_ARGUMENT,Wx.INVALID_DATE_ARGUMENT,Wx.INVALID_ISO_DATE_ARGUMENT,Wx.NOT_SUPPORT_NON_STRING_MESSAGE,Wx.NOT_SUPPORT_LOCALE_PROMISE_VALUE,Wx.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION,Wx.NOT_SUPPORT_LOCALE_TYPE;function Kx(e,t){return t.locale==null?Jx(e.locale):Jx(t.locale)}var qx;function Jx(e){if(q(e))return e;if(K(e)){if(e.resolvedOnce&&qx!=null)return qx;if(e.constructor.name===`Function`){let t=e();if(ry(t))throw Gx(Wx.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return qx=t}else throw Gx(Wx.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw Gx(Wx.NOT_SUPPORT_LOCALE_TYPE)}function Yx(e,t,n){return[...new Set([n,...G(t)?t:Y(t)?Object.keys(t):q(t)?[t]:[n]])]}function Xx(e,t,n){let r=q(n)?n:fS,i=e;i.__localeChainCache||=new Map;let a=i.__localeChainCache.get(r);if(!a){a=[];let e=[n];for(;G(e);)e=Zx(a,e,t);let o=G(t)||!X(t)?t:t.default?t.default:null;e=q(o)?[o]:o,G(e)&&Zx(a,e,!1),i.__localeChainCache.set(r,a)}return a}function Zx(e,t,n){let r=!0;for(let i=0;i{o===void 0?o=s:o+=s},f[1]=()=>{o!==void 0&&(t.push(o),o=void 0)},f[2]=()=>{f[0](),i++},f[3]=()=>{if(i>0)i--,r=4,f[0]();else{if(i=0,o===void 0||(o=aS(o),o===!1))return!1;f[1]()}};function p(){let t=e[n+1];if(r===5&&t===`'`||r===6&&t===`"`)return n++,s=`\\`+t,f[0](),!0}for(;r!==null;)if(n++,a=e[n],!(a===`\\`&&p())){if(c=iS(a),d=eS[r],l=d[c]||d.l||8,l===8||(r=l[0],l[1]!==void 0&&(u=f[l[1]],u&&(s=a,u()===!1))))return;if(r===7)return t}}var sS=new Map;function cS(e,t){return Y(e)?e[t]:null}function lS(e,t){if(!Y(e))return null;let n=sS.get(t);if(n||(n=oS(t),n&&sS.set(t,n)),!n)return null;let r=n.length,i=e,a=0;for(;a`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function mS(){return{upper:(e,t)=>t===`text`&&q(e)?e.toUpperCase():t===`vnode`&&Y(e)&&`__v_isVNode`in e?e.children.toUpperCase():e,lower:(e,t)=>t===`text`&&q(e)?e.toLowerCase():t===`vnode`&&Y(e)&&`__v_isVNode`in e?e.children.toLowerCase():e,capitalize:(e,t)=>t===`text`&&q(e)?pS(e):t===`vnode`&&Y(e)&&`__v_isVNode`in e?pS(e.children):e}}var hS;function gS(e){hS=e}var _S;function vS(e){_S=e}var yS;function bS(e){yS=e}var xS=null,SS=e=>{xS=e},CS=()=>xS,wS=0;function TS(e={}){let t=K(e.onWarn)?e.onWarn:Vv,n=q(e.version)?e.version:dS,r=q(e.locale)||K(e.locale)?e.locale:fS,i=K(r)?fS:r,a=G(e.fallbackLocale)||X(e.fallbackLocale)||q(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:i,o=X(e.messages)?e.messages:ES(i),s=X(e.datetimeFormats)?e.datetimeFormats:ES(i),c=X(e.numberFormats)?e.numberFormats:ES(i),l=Xv(W(),e.modifiers,mS()),u=e.pluralRules||W(),d=K(e.missing)?e.missing:null,f=J(e.missingWarn)||Jv(e.missingWarn)?e.missingWarn:!0,p=J(e.fallbackWarn)||Jv(e.fallbackWarn)?e.fallbackWarn:!0,m=!!e.fallbackFormat,h=!!e.unresolving,g=K(e.postTranslation)?e.postTranslation:null,_=X(e.processor)?e.processor:null,v=J(e.warnHtmlMessage)?e.warnHtmlMessage:!0,y=!!e.escapeParameter,b=K(e.messageCompiler)?e.messageCompiler:hS,x=K(e.messageResolver)?e.messageResolver:_S||cS,S=K(e.localeFallbacker)?e.localeFallbacker:yS||Yx,C=Y(e.fallbackContext)?e.fallbackContext:void 0,w=e,T=Y(w.__datetimeFormatters)?w.__datetimeFormatters:new Map,E=Y(w.__numberFormatters)?w.__numberFormatters:new Map,D=Y(w.__meta)?w.__meta:{};wS++;let O={version:n,cid:wS,locale:r,fallbackLocale:a,messages:o,modifiers:l,pluralRules:u,missing:d,missingWarn:f,fallbackWarn:p,fallbackFormat:m,unresolving:h,postTranslation:g,processor:_,warnHtmlMessage:v,escapeParameter:y,messageCompiler:b,messageResolver:x,localeFallbacker:S,fallbackContext:C,onWarn:t,__meta:D};return O.datetimeFormats=s,O.numberFormats=c,O.__datetimeFormatters=T,O.__numberFormatters=E,O}var ES=e=>({[e]:W()});function DS(e,t,n,r,i){let{missing:a,onWarn:o}=e;if(a!==null){let r=a(e,n,t,i);return q(r)?r:t}else return t}function OS(e,t,n){let r=e;r.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}function kS(e,t){return e===t?!1:e.split(`-`)[0]===t.split(`-`)[0]}function AS(e,t){let n=t.indexOf(e);if(n===-1)return!1;for(let r=n+1;r{NS.includes(e)?o[e]=n[e]:a[e]=n[e]}),q(r)?a.locale=r:X(r)&&(o=r),X(i)&&(o=i),[a.key||``,s,a,o]}function FS(e,t,n){let r=e;for(let e in n){let n=`${t}__${e}`;r.__datetimeFormatters.has(n)&&r.__datetimeFormatters.delete(n)}}function IS(e,...t){let{numberFormats:n,unresolving:r,fallbackLocale:i,onWarn:a,localeFallbacker:o}=e,{__numberFormatters:s}=e,[c,l,u,d]=RS(...t),f=J(u.missingWarn)?u.missingWarn:e.missingWarn;J(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn;let p=!!u.part,m=Kx(e,u),h=o(e,i,m);if(!q(c)||c===``)return new Intl.NumberFormat(m,d).format(l);let g={},_,v=null;for(let t=0;t{LS.includes(e)?o[e]=n[e]:a[e]=n[e]}),q(r)?a.locale=r:X(r)&&(o=r),X(i)&&(o=i),[a.key||``,s,a,o]}function zS(e,t,n){let r=e;for(let e in n){let n=`${t}__${e}`;r.__numberFormatters.has(n)&&r.__numberFormatters.delete(n)}}var BS=e=>e,VS=e=>``,HS=`text`,US=e=>e.length===0?``:sy(e),WS=oy;function GS(e,t){return e=Math.abs(e),t===2?e?e>1?1:0:1:e?Math.min(e,2):0}function KS(e){let t=Kv(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(Kv(e.named.count)||Kv(e.named.n))?Kv(e.named.count)?e.named.count:Kv(e.named.n)?e.named.n:t:t}function qS(e,t){t.count||=e,t.n||=e}function JS(e={}){let t=e.locale,n=KS(e),r=Y(e.pluralRules)&&q(t)&&K(e.pluralRules[t])?e.pluralRules[t]:GS,i=Y(e.pluralRules)&&q(t)&&K(e.pluralRules[t])?GS:void 0,a=e=>e[r(n,e.length,i)],o=e.list||[],s=e=>o[e],c=e.named||W();Kv(e.pluralIndex)&&qS(n,c);let l=e=>c[e];function u(t,n){return(K(e.messages)?e.messages(t,!!n):Y(e.messages)?e.messages[t]:!1)||(e.parent?e.parent.message(t):VS)}let d=t=>e.modifiers?e.modifiers[t]:BS,f=X(e.processor)&&K(e.processor.normalize)?e.processor.normalize:US,p=X(e.processor)&&K(e.processor.interpolate)?e.processor.interpolate:WS,m={list:s,named:l,plural:a,linked:(e,...t)=>{let[n,r]=t,i=`text`,a=``;t.length===1?Y(n)?(a=n.modifier||a,i=n.type||i):q(n)&&(a=n||a):t.length===2&&(q(n)&&(a=n||a),q(r)&&(i=r||i));let o=u(e,!0)(m),s=i===`vnode`&&G(o)&&a?o[0]:o;return a?d(a)(s,i):s},message:u,type:X(e.processor)&&q(e.processor.type)?e.processor.type:HS,interpolate:p,normalize:f,values:Xv(W(),o,c)};return m}var YS=()=>``,XS=e=>K(e);function ZS(e,...t){let{fallbackFormat:n,postTranslation:r,unresolving:i,messageCompiler:a,fallbackLocale:o,messages:s}=e,[c,l]=nC(...t),u=J(l.missingWarn)?l.missingWarn:e.missingWarn,d=J(l.fallbackWarn)?l.fallbackWarn:e.fallbackWarn,f=J(l.escapeParameter)?l.escapeParameter:e.escapeParameter,p=!!l.resolvedMessage,m=q(l.default)||J(l.default)?J(l.default)?a?c:()=>c:l.default:n?a?c:()=>c:null,h=n||m!=null&&(q(m)||K(m)),g=Kx(e,l);f&&QS(l);let[_,v,y]=p?[c,g,s[g]||W()]:$S(e,c,g,o,d,u),b=_,x=c;if(!p&&!(q(b)||gx(b)||XS(b))&&h&&(b=m,x=b),!p&&(!(q(b)||gx(b)||XS(b))||!q(v)))return i?-1:c;let S=!1,C=XS(b)?b:eC(e,c,v,b,x,()=>{S=!0});if(S)return b;let w=tC(e,C,JS(iC(e,v,y,l))),T=r?r(w,c):w;return f&&q(T)&&(T=ey(T)),T}function QS(e){G(e.list)?e.list=e.list.map(e=>q(e)?Qv(e):e):Y(e.named)&&Object.keys(e.named).forEach(t=>{q(e.named[t])&&(e.named[t]=Qv(e.named[t]))})}function $S(e,t,n,r,i,a){let{messages:o,onWarn:s,messageResolver:c,localeFallbacker:l}=e,u=l(e,r,n),d=W(),f,p=null;for(let n=0;nr);return e.locale=n,e.key=t,e}let c=o(r,rC(e,n,i,r,s,a));return c.locale=n,c.key=t,c.source=r,c}function tC(e,t,n){return t(n)}function nC(...e){let[t,n,r]=e,i=W();if(!q(t)&&!Kv(t)&&!XS(t)&&!gx(t))throw Gx(Wx.INVALID_ARGUMENT);let a=Kv(t)?String(t):(XS(t),t);return Kv(n)?i.plural=n:q(n)?i.default=n:X(n)&&!Yv(n)?i.named=n:G(n)&&(i.list=n),Kv(r)?i.plural=r:q(r)?i.default=r:X(r)&&Xv(i,r),[a,i]}function rC(e,t,n,r,i,a){return{locale:t,key:n,warnHtmlMessage:i,onError:e=>{throw a&&a(e),e},onCacheKey:e=>Wv(t,n,e)}}function iC(e,t,n,r){let{modifiers:i,pluralRules:a,messageResolver:o,fallbackLocale:s,fallbackWarn:c,missingWarn:l,fallbackContext:u}=e,d={locale:t,modifiers:i,pluralRules:a,messages:(r,i)=>{let a=o(n,r);if(a==null&&(u||i)){let[,,n]=$S(u||e,r,t,s,c,l);a=o(n,r)}if(q(a)||gx(a)){let n=!1,i=eC(e,r,t,a,r,()=>{n=!0});return n?YS:i}else if(XS(a))return a;else return YS}};return e.processor&&(d.processor=e.processor),r.list&&(d.list=r.list),r.named&&(d.named=r.named),Kv(r.plural)&&(d.pluralIndex=r.plural),d}var aC=`11.2.2`,Q={UNEXPECTED_RETURN_TYPE:24,INVALID_ARGUMENT:25,MUST_BE_CALL_SETUP_TOP:26,NOT_INSTALLED:27,REQUIRED_VALUE:28,INVALID_VALUE:29,CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:30,NOT_INSTALLED_WITH_PROVIDE:31,UNEXPECTED_ERROR:32,NOT_COMPATIBLE_LEGACY_VUE_I18N:33,NOT_AVAILABLE_COMPOSITION_IN_LEGACY:34};function oC(e,...t){return Rb(e,null,void 0)}Q.UNEXPECTED_RETURN_TYPE,Q.INVALID_ARGUMENT,Q.MUST_BE_CALL_SETUP_TOP,Q.NOT_INSTALLED,Q.UNEXPECTED_ERROR,Q.REQUIRED_VALUE,Q.INVALID_VALUE,Q.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN,Q.NOT_INSTALLED_WITH_PROVIDE,Q.NOT_COMPATIBLE_LEGACY_VUE_I18N,Q.NOT_AVAILABLE_COMPOSITION_IN_LEGACY;var sC=Uv(`__translateVNode`),cC=Uv(`__datetimeParts`),lC=Uv(`__numberParts`),uC=Uv(`__setPluralRules`);Uv(`__intlifyMeta`);var dC=Uv(`__injectWithOption`),fC=Uv(`__dispose`),pC={FALLBACK_TO_ROOT:8,NOT_FOUND_PARENT_SCOPE:9,IGNORE_OBJ_FLATTEN:10,DEPRECATE_LEGACY_MODE:11,DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE:12,DUPLICATE_USE_I18N_CALLING:13};pC.FALLBACK_TO_ROOT,pC.NOT_FOUND_PARENT_SCOPE,pC.IGNORE_OBJ_FLATTEN,pC.DEPRECATE_LEGACY_MODE,pC.DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE,pC.DUPLICATE_USE_I18N_CALLING;function mC(e){if(!Y(e)||gx(e))return e;for(let t in e)if(ny(e,t))if(!t.includes(`.`))Y(e[t])&&mC(e[t]);else{let n=t.split(`.`),r=n.length-1,i=e,a=!1;for(let e=0;e{if(`locale`in e&&`resource`in e){let{locale:t,resource:n}=e;t?(o[t]=o[t]||W(),ly(n,o[t])):ly(n,o)}else q(e)&&ly(JSON.parse(e),o)}),i==null&&a)for(let e in o)ny(o,e)&&mC(o[e]);return o}function gC(e){return e.type}function _C(e,t,n){let r=Y(t.messages)?t.messages:W();`__i18nGlobal`in n&&(r=hC(e.locale.value,{messages:r,__i18n:n.__i18nGlobal}));let i=Object.keys(r);if(i.length&&i.forEach(t=>{e.mergeLocaleMessage(t,r[t])}),Y(t.datetimeFormats)){let n=Object.keys(t.datetimeFormats);n.length&&n.forEach(n=>{e.mergeDateTimeFormat(n,t.datetimeFormats[n])})}if(Y(t.numberFormats)){let n=Object.keys(t.numberFormats);n.length&&n.forEach(n=>{e.mergeNumberFormat(n,t.numberFormats[n])})}}function vC(e){return z(as,null,e,0)}function yC(){if(!(`currentInstance`in bu))return Rs()}var bC=()=>[],xC=()=>!1,SC=0;function CC(e){return((t,n,r,i)=>e(n,r,yC()||void 0,i))}function wC(e={}){let{__root:t,__injectWithOption:n}=e,r=t===void 0,i=e.flatJson,a=Hv?hn:gn,o=J(e.inheritLocale)?e.inheritLocale:!0,s=a(t&&o?t.locale.value:q(e.locale)?e.locale:fS),c=a(t&&o?t.fallbackLocale.value:q(e.fallbackLocale)||G(e.fallbackLocale)||X(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:s.value),l=a(hC(s.value,e)),u=a(X(e.datetimeFormats)?e.datetimeFormats:{[s.value]:{}}),d=a(X(e.numberFormats)?e.numberFormats:{[s.value]:{}}),f=t?t.missingWarn:J(e.missingWarn)||Jv(e.missingWarn)?e.missingWarn:!0,p=t?t.fallbackWarn:J(e.fallbackWarn)||Jv(e.fallbackWarn)?e.fallbackWarn:!0,m=t?t.fallbackRoot:J(e.fallbackRoot)?e.fallbackRoot:!0,h=!!e.fallbackFormat,g=K(e.missing)?e.missing:null,_=K(e.missing)?CC(e.missing):null,v=K(e.postTranslation)?e.postTranslation:null,y=t?t.warnHtmlMessage:J(e.warnHtmlMessage)?e.warnHtmlMessage:!0,b=!!e.escapeParameter,x=t?t.modifiers:X(e.modifiers)?e.modifiers:{},S=e.pluralRules||t&&t.pluralRules,C;C=(()=>{r&&SS(null);let t={version:aC,locale:s.value,fallbackLocale:c.value,messages:l.value,modifiers:x,pluralRules:S,missing:_===null?void 0:_,missingWarn:f,fallbackWarn:p,fallbackFormat:h,unresolving:!0,postTranslation:v===null?void 0:v,warnHtmlMessage:y,escapeParameter:b,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:`vue`}};t.datetimeFormats=u.value,t.numberFormats=d.value,t.__datetimeFormatters=X(C)?C.__datetimeFormatters:void 0,t.__numberFormatters=X(C)?C.__numberFormatters:void 0;let n=TS(t);return r&&SS(n),n})(),OS(C,s.value,c.value);function w(){return[s.value,c.value,l.value,u.value,d.value]}let T=B({get:()=>s.value,set:e=>{C.locale=e,s.value=e}}),E=B({get:()=>c.value,set:e=>{C.fallbackLocale=e,c.value=e,OS(C,s.value,e)}}),D=B(()=>l.value),O=B(()=>u.value),k=B(()=>d.value);function ee(){return K(v)?v:null}function te(e){v=e,C.postTranslation=e}function ne(){return g}function re(e){e!==null&&(_=CC(e)),g=e,C.missing=_}let ie=(e,n,i,a,o,s)=>{w();let c;try{r||(C.fallbackContext=t?CS():void 0),c=e(C)}finally{r||(C.fallbackContext=void 0)}if(i!==`translate exists`&&Kv(c)&&c===-1||i===`translate exists`&&!c){let[e,r]=n();return t&&m?a(t):o(e)}else if(s(c))return c;else throw oC(Q.UNEXPECTED_RETURN_TYPE)};function ae(...e){return ie(t=>Reflect.apply(ZS,null,[t,...e]),()=>nC(...e),`translate`,t=>Reflect.apply(t.t,t,[...e]),e=>e,e=>q(e))}function oe(...e){let[t,n,r]=e;if(r&&!Y(r))throw oC(Q.INVALID_ARGUMENT);return ae(t,n,Xv({resolvedMessage:!0},r||{}))}function se(...e){return ie(t=>Reflect.apply(MS,null,[t,...e]),()=>PS(...e),`datetime format`,t=>Reflect.apply(t.d,t,[...e]),()=>``,e=>q(e)||G(e))}function ce(...e){return ie(t=>Reflect.apply(IS,null,[t,...e]),()=>RS(...e),`number format`,t=>Reflect.apply(t.n,t,[...e]),()=>``,e=>q(e)||G(e))}function A(e){return e.map(e=>q(e)||Kv(e)||J(e)?vC(String(e)):e)}let le={normalize:A,interpolate:e=>e,type:`vnode`};function j(...e){return ie(t=>{let n,r=t;try{r.processor=le,n=Reflect.apply(ZS,null,[r,...e])}finally{r.processor=null}return n},()=>nC(...e),`translate`,t=>t[sC](...e),e=>[vC(e)],e=>G(e))}function ue(...e){return ie(t=>Reflect.apply(IS,null,[t,...e]),()=>RS(...e),`number format`,t=>t[lC](...e),bC,e=>q(e)||G(e))}function de(...e){return ie(t=>Reflect.apply(MS,null,[t,...e]),()=>PS(...e),`datetime format`,t=>t[cC](...e),bC,e=>q(e)||G(e))}function fe(e){S=e,C.pluralRules=S}function pe(e,t){return ie(()=>{if(!e)return!1;let n=ge(q(t)?t:s.value),r=C.messageResolver(n,e);return gx(r)||XS(r)||q(r)},()=>[e],`translate exists`,n=>Reflect.apply(n.te,n,[e,t]),xC,e=>J(e))}function me(e){let t=null,n=Xx(C,c.value,s.value);for(let r=0;r{o&&(s.value=e,C.locale=e,OS(C,s.value,c.value))}),$a(t.fallbackLocale,e=>{o&&(c.value=e,C.fallbackLocale=e,OS(C,s.value,c.value))}));let M={id:SC,locale:T,fallbackLocale:E,get inheritLocale(){return o},set inheritLocale(e){o=e,e&&t&&(s.value=t.locale.value,c.value=t.fallbackLocale.value,OS(C,s.value,c.value))},get availableLocales(){return Object.keys(l.value).sort()},messages:D,get modifiers(){return x},get pluralRules(){return S||{}},get isGlobal(){return r},get missingWarn(){return f},set missingWarn(e){f=e,C.missingWarn=f},get fallbackWarn(){return p},set fallbackWarn(e){p=e,C.fallbackWarn=p},get fallbackRoot(){return m},set fallbackRoot(e){m=e},get fallbackFormat(){return h},set fallbackFormat(e){h=e,C.fallbackFormat=h},get warnHtmlMessage(){return y},set warnHtmlMessage(e){y=e,C.warnHtmlMessage=e},get escapeParameter(){return b},set escapeParameter(e){b=e,C.escapeParameter=e},t:ae,getLocaleMessage:ge,setLocaleMessage:_e,mergeLocaleMessage:ve,getPostTranslationHandler:ee,setPostTranslationHandler:te,getMissingHandler:ne,setMissingHandler:re,[uC]:fe};return M.datetimeFormats=O,M.numberFormats=k,M.rt=oe,M.te=pe,M.tm=he,M.d=se,M.n=ce,M.getDateTimeFormat=ye,M.setDateTimeFormat=be,M.mergeDateTimeFormat=xe,M.getNumberFormat=Se,M.setNumberFormat=Ce,M.mergeNumberFormat=we,M[dC]=n,M[sC]=j,M[cC]=de,M[lC]=ue,M}var TC={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e===`parent`||e===`global`,default:`parent`},i18n:{type:Object}};function EC({slots:e},t){return t.length===1&&t[0]===`default`?(e.default?e.default():[]).reduce((e,t)=>[...e,...t.type===R?t.children:[t]],[]):t.reduce((t,n)=>{let r=e[n];return r&&(t[n]=r()),t},W())}function DC(){return R}var OC=$r({name:`i18n-t`,props:Xv({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>Kv(e)||!isNaN(e)}},TC),setup(e,t){let{slots:n,attrs:r}=t,i=e.i18n||zC({useScope:e.scope,__useComponent:!0});return()=>{let a=Object.keys(n).filter(e=>e[0]!==`_`),o=W();e.locale&&(o.locale=e.locale),e.plural!==void 0&&(o.plural=q(e.plural)?+e.plural:e.plural);let s=EC(t,a),c=i[sC](e.keypath,s,o),l=Xv(W(),r);return ic(q(e.tag)||Y(e.tag)?e.tag:DC(),l,c)}}});function kC(e){return G(e)&&!q(e[0])}function AC(e,t,n,r){let{slots:i,attrs:a}=t;return()=>{let t={part:!0},o=W();e.locale&&(t.locale=e.locale),q(e.format)?t.key=e.format:Y(e.format)&&(q(e.format.key)&&(t.key=e.format.key),o=Object.keys(e.format).reduce((t,r)=>n.includes(r)?Xv(W(),t,{[r]:e.format[r]}):t,W()));let s=r(e.value,t,o),c=[t.key];G(s)?c=s.map((e,t)=>{let n=i[e.type],r=n?n({[e.type]:e.value,index:t,parts:s}):[e.value];return kC(r)&&(r[0].key=`${e.type}-${t}`),r}):q(s)&&(c=[s]);let l=Xv(W(),a);return ic(q(e.tag)||Y(e.tag)?e.tag:DC(),l,c)}}var jC=$r({name:`i18n-n`,props:Xv({value:{type:Number,required:!0},format:{type:[String,Object]}},TC),setup(e,t){let n=e.i18n||zC({useScope:e.scope,__useComponent:!0});return AC(e,t,LS,(...e)=>n[lC](...e))}});function MC(e,t){let n=e;if(e.mode===`composition`)return n.__getInstance(t)||e.global;{let r=n.__getInstance(t);return r==null?e.global.__composer:r.__composer}}function NC(e){let t=t=>{let{instance:n,value:r}=t;if(!n||!n.$)throw oC(Q.UNEXPECTED_ERROR);let i=MC(e,n.$),a=PC(r);return[Reflect.apply(i.t,i,[...FC(a)]),i]};return{created:(n,r)=>{let[i,a]=t(r);Hv&&e.global===a&&(n.__i18nWatcher=$a(a.locale,()=>{r.instance&&r.instance.$forceUpdate()})),n.__composer=a,n.textContent=i},unmounted:e=>{Hv&&e.__i18nWatcher&&(e.__i18nWatcher(),e.__i18nWatcher=void 0,delete e.__i18nWatcher),e.__composer&&(e.__composer=void 0,delete e.__composer)},beforeUpdate:(e,{value:t})=>{if(e.__composer){let n=e.__composer,r=PC(t);e.textContent=Reflect.apply(n.t,n,[...FC(r)])}},getSSRProps:e=>{let[n]=t(e);return{textContent:n}}}}function PC(e){if(q(e))return{path:e};if(X(e)){if(!(`path`in e))throw oC(Q.REQUIRED_VALUE,`path`);return e}else throw oC(Q.INVALID_VALUE)}function FC(e){let{path:t,locale:n,args:r,choice:i,plural:a}=e,o={},s=r||{};return q(n)&&(o.locale=n),Kv(i)&&(o.plural=i),Kv(a)&&(o.plural=a),[t,s,o]}function IC(e,t,...n){let r=X(n[0])?n[0]:{};(!J(r.globalInstall)||r.globalInstall)&&([OC.name,`I18nT`].forEach(t=>e.component(t,OC)),[jC.name,`I18nN`].forEach(t=>e.component(t,jC)),[XC.name,`I18nD`].forEach(t=>e.component(t,XC))),e.directive(`t`,NC(t))}var LC=Uv(`global-vue-i18n`);function RC(e={}){let t=J(e.globalInjection)?e.globalInjection:!0,n=new Map,[r,i]=BC(e,!1),a=Uv(``);function o(e){return n.get(e)||null}function s(e,t){n.set(e,t)}function c(e){n.delete(e)}let l={get mode(){return`composition`},async install(e,...n){if(e.__VUE_I18N_SYMBOL__=a,e.provide(e.__VUE_I18N_SYMBOL__,l),X(n[0])){let e=n[0];l.__composerExtend=e.__composerExtend,l.__vueI18nExtend=e.__vueI18nExtend}let r=null;t&&(r=YC(e,l.global)),IC(e,l,...n);let i=e.unmount;e.unmount=()=>{r&&r(),l.dispose(),i()}},get global(){return i},dispose(){r.stop()},__instances:n,__getInstance:o,__setInstance:s,__deleteInstance:c};return l}function zC(e={}){let t=yC();if(t==null)throw oC(Q.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&t.appContext.app!=null&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw oC(Q.NOT_INSTALLED);let n=VC(t),r=UC(n),i=gC(t),a=HC(e,i);if(a===`global`)return _C(r,e,i),r;if(a===`parent`){let i=WC(n,t,e.__useComponent);return i??=r,i}let o=n,s=o.__getInstance(t);if(s==null){let n=Xv({},e);`__i18n`in i&&(n.__i18n=i.__i18n),r&&(n.__root=r),s=wC(n),o.__composerExtend&&(s[fC]=o.__composerExtend(s)),KC(o,t,s),o.__setInstance(t,s)}return s}function BC(e,t){let n=ze(),r=n.run(()=>wC(e));if(r==null)throw oC(Q.UNEXPECTED_ERROR);return[n,r]}function VC(e){let t=L(e.isCE?LC:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw oC(e.isCE?Q.NOT_INSTALLED_WITH_PROVIDE:Q.UNEXPECTED_ERROR);return t}function HC(e,t){return Yv(e)?`__i18n`in t?`local`:`global`:e.useScope?e.useScope:`local`}function UC(e){return e.mode===`composition`?e.global:e.global.__composer}function WC(e,t,n=!1){let r=null,i=t.root,a=GC(t,n);for(;a!=null;){let t=e;if(e.mode===`composition`&&(r=t.__getInstance(a)),r!=null||i===a)break;a=a.parent}return r}function GC(e,t=!1){return e==null?null:t&&e.vnode.ctx||e.parent}function KC(e,t,n){zi(()=>{},t),Ui(()=>{let r=n;e.__deleteInstance(t);let i=r[fC];i&&(i(),delete r[fC])},t)}var qC=[`locale`,`fallbackLocale`,`availableLocales`],JC=[`t`,`rt`,`d`,`n`,`tm`,`te`];function YC(e,t){let n=Object.create(null);return qC.forEach(e=>{let r=Object.getOwnPropertyDescriptor(t,e);if(!r)throw oC(Q.UNEXPECTED_ERROR);let i=F(r.value)?{get(){return r.value.value},set(e){r.value.value=e}}:{get(){return r.get&&r.get()}};Object.defineProperty(n,e,i)}),e.config.globalProperties.$i18n=n,JC.forEach(n=>{let r=Object.getOwnPropertyDescriptor(t,n);if(!r||!r.value)throw oC(Q.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${n}`,r)}),()=>{delete e.config.globalProperties.$i18n,JC.forEach(t=>{delete e.config.globalProperties[`$${t}`]})}}var XC=$r({name:`i18n-d`,props:Xv({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},TC),setup(e,t){let n=e.i18n||zC({useScope:e.scope,__useComponent:!0});return AC(e,t,NS,(...e)=>n[cC](...e))}});gS(Ux),vS(lS),bS(Xx);function ZC(e=V()){let t=Db(e);return e=>{if(e!=null)return t.getRouteBaseName(e)||void 0}}function QC(e=V()){let t=Db(e);return(e,n)=>Sy(t,e,n)}function $C(e=V()){let t=Db(e);return(e,n)=>Cy(t,e,n)}function ew(e=V()){let t=Db(e);return e=>Ey(t,e)}var tw=`nuxt-i18n-slp`,nw=new RegExp([``,`.+?`,``].join(``),`g`),rw=ff({name:`i18n:plugin:switch-locale-path-ssr`,dependsOn:[`i18n:plugin`],setup(e){let t=V(e._id),n=ew(t);t.hook(`app:rendered`,e=>{e.renderResult?.html!=null&&(e.renderResult.html=e.renderResult.html.replaceAll(nw,(e,t)=>{let r=encodeURI(n(t??``));return e.replace(/href="([^"]+)"/,`href="${r||`#`}" `)}))})}}),iw=ff({name:`i18n:plugin:route-locale-detect`,dependsOn:[`i18n:plugin`],async setup(e){let t,n,r=V(e._id),i=_b(r),a=mb();[t,n]=nf(()=>r.runWithContext(()=>jb(r,i.initial&&a.value||Nb(r,r.$router.currentRoute.value)))),await t,n()}},1),aw=ff({name:`i18n:plugin:preload`,dependsOn:[`i18n:plugin`],async setup(e){}},1);function ow(e,{extendComposer:t,extendComposerInstance:n}){let r=ze(),i=e.install.bind(e);e.install=(a,...o)=>{let s=Xv({},o[0]);s.__composerExtend=t=>(n(t,$y(e)),()=>{}),e.mode===`legacy`&&(s.__vueI18nExtend=e=>(n(e,$y(e)),()=>{})),Reflect.apply(i,e,[a,s]);let c=$y(e);if(r.run(()=>{t(c),e.mode===`legacy`&&`__composer`in e.global&&n(e.global,$y(e.global))}),e.mode===`composition`&&a.config.globalProperties.$i18n!=null&&n(a.config.globalProperties.$i18n,c),a.unmount){let e=a.unmount.bind(a);a.unmount=()=>{r.stop(),e()}}}}const sw=async e=>{let t=await Ky(Hy);t.locale=e||t.locale||`en-US`,t.defaultLocale=e,t.fallbackLocale??=!1,t.messages??={};for(let e of By)t.messages[e]??={};return t};var cw=ff({name:`i18n:plugin`,parallel:!1,async setup(e){let t,n;Object.defineProperty(e.versions,`nuxtI18n`,{get:()=>`10.2.1`});let r=V(e._id),i=eb(r),a=r.ssrContext?.event?.context?.nuxtI18n?.vueI18nOptions,o=ub(kv({xForwardedHost:!0}).host)||i.defaultLocale||``,s=a||([t,n]=nf(()=>sw(o)),t=await t,n(),t),c=pb();c.value??=ob(s.fallbackLocale),By.map(e=>`/_i18n/m8bzHobf/${e}/messages.json`);let l=RC(s),u=Tb(void 0,tb(r),r),d=gb(r,l,s.defaultLocale);r._nuxtI18n=d,ow(l,{extendComposer(e){e.locales=B(()=>i.locales),e.localeCodes=B(()=>By);let t=hn(d.getBaseUrl());e.baseUrl=B(()=>t.value),$a(e.locale,()=>t.value=d.getBaseUrl()),e.strategy=`no_prefix`,e.localeProperties=B(()=>Uy.find(t=>t.code===e.locale.value)||{code:e.locale.value}),e.setLocale=async e=>{await jb(r,e),await r.runWithContext(()=>(r.$router.currentRoute.value,void 0))},e.loadLocaleMessages=d.loadMessages,e.differentDomains=!1,e.defaultLocale=s.defaultLocale,e.getBrowserLocale=()=>fb(u.navigator()),e.getLocaleCookie=()=>fb(u.cookie()),e.setLocaleCookie=d.setCookieLocale,e.finalizePendingLocaleChange=async()=>{l.__pendingLocale&&await l.__resolvePendingLocalePromise?.()},e.waitForPendingLocaleChange=async()=>{await l?.__pendingLocalePromise}},extendComposerInstance(e,t){let n=[[`locales`,()=>t.locales],[`localeCodes`,()=>t.localeCodes],[`baseUrl`,()=>t.baseUrl],[`strategy`,()=>`no_prefix`],[`localeProperties`,()=>t.localeProperties],[`setLocale`,()=>e=>Reflect.apply(t.setLocale,t,[e])],[`loadLocaleMessages`,()=>e=>Reflect.apply(t.loadLocaleMessages,t,[e])],[`differentDomains`,()=>!1],[`defaultLocale`,()=>t.defaultLocale],[`getBrowserLocale`,()=>()=>Reflect.apply(t.getBrowserLocale,t,[])],[`getLocaleCookie`,()=>()=>Reflect.apply(t.getLocaleCookie,t,[])],[`setLocaleCookie`,()=>e=>Reflect.apply(t.setLocaleCookie,t,[e])],[`finalizePendingLocaleChange`,()=>()=>Reflect.apply(t.finalizePendingLocaleChange,t,[])],[`waitForPendingLocaleChange`,()=>()=>Reflect.apply(t.waitForPendingLocaleChange,t,[])]];for(let[t,r]of n)Object.defineProperty(e,t,{get:r})}}),r.vueApp.use(l),Object.defineProperty(r,`$i18n`,{get:()=>Qy(l)}),r.provide(`localeHead`,e=>Oy(r._nuxtI18n.composableCtx,e)),r.provide(`localePath`,QC(r)),r.provide(`localeRoute`,$C(r)),r.provide(`routeBaseName`,ZC(r)),r.provide(`getRouteBaseName`,ZC(r)),r.provide(`switchLocalePath`,ew(r))}},1),lw=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},uw={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},dw=new class{#e=uw;setTimeoutProvider(e){this.#e=e}setTimeout(e,t){return this.#e.setTimeout(e,t)}clearTimeout(e){this.#e.clearTimeout(e)}setInterval(e,t){return this.#e.setInterval(e,t)}clearInterval(e){this.#e.clearInterval(e)}};function fw(e){setTimeout(e,0)}var pw=typeof window>`u`||`Deno`in globalThis;function mw(){}function hw(e,t){return typeof e==`function`?e(t):e}function gw(e){return typeof e==`number`&&e>=0&&e!==1/0}function _w(e,t){return Math.max(e+(t||0)-Date.now(),0)}function vw(e,t){return typeof e==`function`?e(t):e}function yw(e,t){return typeof e==`function`?e(t):e}function bw(e,t){let{type:n=`all`,exact:r,fetchStatus:i,predicate:a,queryKey:o,stale:s}=e;if(o){if(r){if(t.queryHash!==Sw(o,t.options))return!1}else if(!ww(t.queryKey,o))return!1}if(n!==`all`){let e=t.isActive();if(n===`active`&&!e||n===`inactive`&&e)return!1}return!(typeof s==`boolean`&&t.isStale()!==s||i&&i!==t.state.fetchStatus||a&&!a(t))}function xw(e,t){let{exact:n,status:r,predicate:i,mutationKey:a}=e;if(a){if(!t.options.mutationKey)return!1;if(n){if(Cw(t.options.mutationKey)!==Cw(a))return!1}else if(!ww(t.options.mutationKey,a))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function Sw(e,t){return(t?.queryKeyHashFn||Cw)(e)}function Cw(e){return JSON.stringify(e,(e,t)=>kw(t)?Object.keys(t).sort().reduce((e,n)=>(e[n]=t[n],e),{}):t)}function ww(e,t){return e===t?!0:typeof e==typeof t&&e&&t&&typeof e==`object`&&typeof t==`object`?Object.keys(t).every(n=>ww(e[n],t[n])):!1}var Tw=Object.prototype.hasOwnProperty;function Ew(e,t){if(e===t)return e;let n=Ow(e)&&Ow(t);if(!n&&!(kw(e)&&kw(t)))return t;let r=(n?e:Object.keys(e)).length,i=n?t:Object.keys(t),a=i.length,o=n?Array(a):{},s=0;for(let c=0;c{dw.setTimeout(t,e)})}function Mw(e,t,n){return typeof n.structuralSharing==`function`?n.structuralSharing(e,t):n.structuralSharing===!1?t:Ew(e,t)}function Nw(e,t,n=0){let r=[...e,t];return n&&r.length>n?r.slice(1):r}function Pw(e,t,n=0){let r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var Fw=Symbol();function Iw(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===Fw?()=>Promise.reject(Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function Lw(e,t){return typeof e==`function`?e(...t):!!e}var Rw=new class extends lw{#e;#t;#n;constructor(){super(),this.#n=e=>{if(!pw&&window.addEventListener){let t=()=>e();return window.addEventListener(`visibilitychange`,t,!1),()=>{window.removeEventListener(`visibilitychange`,t)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(e=>{typeof e==`boolean`?this.setFocused(e):this.onFocus()})}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){let e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return typeof this.#e==`boolean`?this.#e:globalThis.document?.visibilityState!==`hidden`}};function zw(){let e,t,n=new Promise((n,r)=>{e=n,t=r});n.status=`pending`,n.catch(()=>{});function r(e){Object.assign(n,e),delete n.resolve,delete n.reject}return n.resolve=t=>{r({status:`fulfilled`,value:t}),e(t)},n.reject=e=>{r({status:`rejected`,reason:e}),t(e)},n}function Bw(e){let t;if(e.then(e=>(t=e,e),mw)?.catch(mw),t!==void 0)return{data:t}}function Vw(e){return e}function Hw(e,t,n){if(typeof t!=`object`||!t)return;let r=e.getMutationCache(),i=e.getQueryCache(),a=n?.defaultOptions?.deserializeData??e.getDefaultOptions().hydrate?.deserializeData??Vw,o=t.mutations||[],s=t.queries||[];o.forEach(({state:t,...i})=>{r.build(e,{...e.getDefaultOptions().hydrate?.mutations,...n?.defaultOptions?.mutations,...i},t)}),s.forEach(({queryKey:t,state:r,queryHash:o,meta:s,promise:c,dehydratedAt:l})=>{let u=c?Bw(c):void 0,d=r.data===void 0?u?.data:r.data,f=d===void 0?d:a(d),p=i.get(o),m=p?.state.status===`pending`,h=p?.state.fetchStatus===`fetching`;if(p){let e=u&&l!==void 0&&l>p.state.dataUpdatedAt;if(r.dataUpdatedAt>p.state.dataUpdatedAt||e){let{fetchStatus:e,...t}=r;p.setState({...t,data:f})}}else p=i.build(e,{...e.getDefaultOptions().hydrate?.queries,...n?.defaultOptions?.queries,queryKey:t,queryHash:o,meta:s},{...r,data:f,fetchStatus:`idle`,status:f===void 0?r.status:`success`});c&&!m&&!h&&(l===void 0||l>p.state.dataUpdatedAt)&&p.fetch(void 0,{initialPromise:Promise.resolve(c).then(a)}).catch(mw)})}var Uw=fw;function Ww(){let e=[],t=0,n=e=>{e()},r=e=>{e()},i=Uw,a=r=>{t?e.push(r):i(()=>{n(r)})},o=()=>{let t=e;e=[],t.length&&i(()=>{r(()=>{t.forEach(e=>{n(e)})})})};return{batch:e=>{let n;t++;try{n=e()}finally{t--,t||o()}return n},batchCalls:e=>(...t)=>{a(()=>{e(...t)})},schedule:a,setNotifyFunction:e=>{n=e},setBatchNotifyFunction:e=>{r=e},setScheduler:e=>{i=e}}}var Gw=Ww(),Kw=new class extends lw{#e=!0;#t;#n;constructor(){super(),this.#n=e=>{if(!pw&&window.addEventListener){let t=()=>e(!0),n=()=>e(!1);return window.addEventListener(`online`,t,!1),window.addEventListener(`offline`,n,!1),()=>{window.removeEventListener(`online`,t),window.removeEventListener(`offline`,n)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(this.setOnline.bind(this))}setOnline(e){this.#e!==e&&(this.#e=e,this.listeners.forEach(t=>{t(e)}))}isOnline(){return this.#e}};function qw(e){return Math.min(1e3*2**e,3e4)}function Jw(e){return(e??`online`)===`online`?Kw.isOnline():!0}var Yw=class extends Error{constructor(e){super(`CancelledError`),this.revert=e?.revert,this.silent=e?.silent}};function Xw(e){let t=!1,n=0,r,i=zw(),a=()=>i.status!==`pending`,o=t=>{if(!a()){let n=new Yw(t);f(n),e.onCancel?.(n)}},s=()=>{t=!0},c=()=>{t=!1},l=()=>Rw.isFocused()&&(e.networkMode===`always`||Kw.isOnline())&&e.canRun(),u=()=>Jw(e.networkMode)&&e.canRun(),d=e=>{a()||(r?.(),i.resolve(e))},f=e=>{a()||(r?.(),i.reject(e))},p=()=>new Promise(t=>{r=e=>{(a()||l())&&t(e)},e.onPause?.()}).then(()=>{r=void 0,a()||e.onContinue?.()}),m=()=>{if(a())return;let r,i=n===0?e.initialPromise:void 0;try{r=i??e.fn()}catch(e){r=Promise.reject(e)}Promise.resolve(r).then(d).catch(r=>{if(a())return;let i=e.retry??(pw?0:3),o=e.retryDelay??qw,s=typeof o==`function`?o(n,r):o,c=i===!0||typeof i==`number`&&nl()?void 0:p()).then(()=>{t?f(r):m()})})};return{promise:i,status:()=>i.status,cancel:o,continue:()=>(r?.(),i),cancelRetry:s,continueRetry:c,canStart:u,start:()=>(u()?m():p().then(m),i)}}var Zw=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),gw(this.gcTime)&&(this.#e=dw.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(pw?1/0:300*1e3))}clearGcTimeout(){this.#e&&=(dw.clearTimeout(this.#e),void 0)}},Qw=class extends Zw{#e;#t;#n;#r;#i;#a;#o;constructor(e){super(),this.#o=!1,this.#a=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#r=e.client,this.#n=this.#r.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#e=tT(this.options),this.state=e.state??this.#e,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#i?.promise}setOptions(e){if(this.options={...this.#a,...e},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){let e=tT(this.options);e.data!==void 0&&(this.setState(eT(e.data,e.dataUpdatedAt)),this.#e=e)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus===`idle`&&this.#n.remove(this)}setData(e,t){let n=Mw(this.state.data,e,this.options);return this.#s({data:n,type:`success`,dataUpdatedAt:t?.updatedAt,manual:t?.manual}),n}setState(e,t){this.#s({type:`setState`,state:e,setStateOptions:t})}cancel(e){let t=this.#i?.promise;return this.#i?.cancel(e),t?t.then(mw).catch(mw):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#e)}isActive(){return this.observers.some(e=>yw(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Fw||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>vw(e.options.staleTime,this)===`static`):!1}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e===`static`?!1:this.state.isInvalidated?!0:!_w(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(e=>e.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#i?.continue()}onOnline(){this.observers.find(e=>e.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#i?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#n.notify({type:`observerAdded`,query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#i&&(this.#o?this.#i.cancel({revert:!0}):this.#i.cancelRetry()),this.scheduleGc()),this.#n.notify({type:`observerRemoved`,query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#s({type:`invalidate`})}async fetch(e,t){if(this.state.fetchStatus!==`idle`&&this.#i?.status()!==`rejected`){if(this.state.data!==void 0&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#i)return this.#i.continueRetry(),this.#i.promise}if(e&&this.setOptions(e),!this.options.queryFn){let e=this.observers.find(e=>e.options.queryFn);e&&this.setOptions(e.options)}let n=new AbortController,r=e=>{Object.defineProperty(e,`signal`,{enumerable:!0,get:()=>(this.#o=!0,n.signal)})},i=()=>{let e=Iw(this.options,t),n=(()=>{let e={client:this.#r,queryKey:this.queryKey,meta:this.meta};return r(e),e})();return this.#o=!1,this.options.persister?this.options.persister(e,n,this):e(n)},a=(()=>{let e={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#r,state:this.state,fetchFn:i};return r(e),e})();this.options.behavior?.onFetch(a,this),this.#t=this.state,(this.state.fetchStatus===`idle`||this.state.fetchMeta!==a.fetchOptions?.meta)&&this.#s({type:`fetch`,meta:a.fetchOptions?.meta}),this.#i=Xw({initialPromise:t?.initialPromise,fn:a.fetchFn,onCancel:e=>{e instanceof Yw&&e.revert&&this.setState({...this.#t,fetchStatus:`idle`}),n.abort()},onFail:(e,t)=>{this.#s({type:`failed`,failureCount:e,error:t})},onPause:()=>{this.#s({type:`pause`})},onContinue:()=>{this.#s({type:`continue`})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0});try{let e=await this.#i.start();if(e===void 0)throw Error(`${this.queryHash} data is undefined`);return this.setData(e),this.#n.config.onSuccess?.(e,this),this.#n.config.onSettled?.(e,this.state.error,this),e}catch(e){if(e instanceof Yw){if(e.silent)return this.#i.promise;if(e.revert){if(this.state.data===void 0)throw e;return this.state.data}}throw this.#s({type:`error`,error:e}),this.#n.config.onError?.(e,this),this.#n.config.onSettled?.(this.state.data,e,this),e}finally{this.scheduleGc()}}#s(e){this.state=(t=>{switch(e.type){case`failed`:return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case`pause`:return{...t,fetchStatus:`paused`};case`continue`:return{...t,fetchStatus:`fetching`};case`fetch`:return{...t,...$w(t.data,this.options),fetchMeta:e.meta??null};case`success`:let n={...t,...eT(e.data,e.dataUpdatedAt),dataUpdateCount:t.dataUpdateCount+1,...!e.manual&&{fetchStatus:`idle`,fetchFailureCount:0,fetchFailureReason:null}};return this.#t=e.manual?n:void 0,n;case`error`:let r=e.error;return{...t,error:r,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:r,fetchStatus:`idle`,status:`error`};case`invalidate`:return{...t,isInvalidated:!0};case`setState`:return{...t,...e.state}}})(this.state),Gw.batch(()=>{this.observers.forEach(e=>{e.onQueryUpdate()}),this.#n.notify({query:this,type:`updated`,action:e})})}};function $w(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Jw(t.networkMode)?`fetching`:`paused`,...e===void 0&&{error:null,status:`pending`}}}function eT(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:`success`}}function tT(e){let t=typeof e.initialData==`function`?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt==`function`?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?`success`:`pending`,fetchStatus:`idle`}}function nT(e){return{onFetch:(t,n)=>{let r=t.options,i=t.fetchOptions?.meta?.fetchMore?.direction,a=t.state.data?.pages||[],o=t.state.data?.pageParams||[],s={pages:[],pageParams:[]},c=0,l=async()=>{let n=!1,l=e=>{Object.defineProperty(e,`signal`,{enumerable:!0,get:()=>(t.signal.aborted?n=!0:t.signal.addEventListener(`abort`,()=>{n=!0}),t.signal)})},u=Iw(t.options,t.fetchOptions),d=async(e,r,i)=>{if(n)return Promise.reject();if(r==null&&e.pages.length)return Promise.resolve(e);let a=await u((()=>{let e={client:t.client,queryKey:t.queryKey,pageParam:r,direction:i?`backward`:`forward`,meta:t.options.meta};return l(e),e})()),{maxPages:o}=t.options,s=i?Pw:Nw;return{pages:s(e.pages,a,o),pageParams:s(e.pageParams,r,o)}};if(i&&a.length){let e=i===`backward`,t=e?iT:rT,n={pages:a,pageParams:o};s=await d(n,t(r,n),e)}else{let t=e??a.length;do{let e=c===0?o[0]??r.initialPageParam:rT(r,s);if(c>0&&e==null)break;s=await d(s,e),c++}while(ct.options.persister?.(l,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n):t.fetchFn=l}}}function rT(e,{pages:t,pageParams:n}){let r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function iT(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}var aT=class extends Zw{#e;#t;#n;#r;constructor(e){super(),this.#e=e.client,this.mutationId=e.mutationId,this.#n=e.mutationCache,this.#t=[],this.state=e.state||oT(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#t.includes(e)||(this.#t.push(e),this.clearGcTimeout(),this.#n.notify({type:`observerAdded`,mutation:this,observer:e}))}removeObserver(e){this.#t=this.#t.filter(t=>t!==e),this.scheduleGc(),this.#n.notify({type:`observerRemoved`,mutation:this,observer:e})}optionalRemove(){this.#t.length||(this.state.status===`pending`?this.scheduleGc():this.#n.remove(this))}continue(){return this.#r?.continue()??this.execute(this.state.variables)}async execute(e){let t=()=>{this.#i({type:`continue`})},n={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#r=Xw({fn:()=>this.options.mutationFn?this.options.mutationFn(e,n):Promise.reject(Error(`No mutationFn found`)),onFail:(e,t)=>{this.#i({type:`failed`,failureCount:e,error:t})},onPause:()=>{this.#i({type:`pause`})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#n.canRun(this)});let r=this.state.status===`pending`,i=!this.#r.canStart();try{if(r)t();else{this.#i({type:`pending`,variables:e,isPaused:i}),await this.#n.config.onMutate?.(e,this,n);let t=await this.options.onMutate?.(e,n);t!==this.state.context&&this.#i({type:`pending`,context:t,variables:e,isPaused:i})}let a=await this.#r.start();return await this.#n.config.onSuccess?.(a,e,this.state.context,this,n),await this.options.onSuccess?.(a,e,this.state.context,n),await this.#n.config.onSettled?.(a,null,this.state.variables,this.state.context,this,n),await this.options.onSettled?.(a,null,e,this.state.context,n),this.#i({type:`success`,data:a}),a}catch(t){try{throw await this.#n.config.onError?.(t,e,this.state.context,this,n),await this.options.onError?.(t,e,this.state.context,n),await this.#n.config.onSettled?.(void 0,t,this.state.variables,this.state.context,this,n),await this.options.onSettled?.(void 0,t,e,this.state.context,n),t}finally{this.#i({type:`error`,error:t})}}finally{this.#n.runNext(this)}}#i(e){this.state=(t=>{switch(e.type){case`failed`:return{...t,failureCount:e.failureCount,failureReason:e.error};case`pause`:return{...t,isPaused:!0};case`continue`:return{...t,isPaused:!1};case`pending`:return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:`pending`,variables:e.variables,submittedAt:Date.now()};case`success`:return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:`success`,isPaused:!1};case`error`:return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:`error`}}})(this.state),Gw.batch(()=>{this.#t.forEach(t=>{t.onMutationUpdate(e)}),this.#n.notify({mutation:this,type:`updated`,action:e})})}};function oT(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:`idle`,variables:void 0,submittedAt:0}}var sT=class extends lw{constructor(e={}){super(),this.config=e,this.#e=new Set,this.#t=new Map,this.#n=0}#e;#t;#n;build(e,t,n){let r=new aT({client:e,mutationCache:this,mutationId:++this.#n,options:e.defaultMutationOptions(t),state:n});return this.add(r),r}add(e){this.#e.add(e);let t=cT(e);if(typeof t==`string`){let n=this.#t.get(t);n?n.push(e):this.#t.set(t,[e])}this.notify({type:`added`,mutation:e})}remove(e){if(this.#e.delete(e)){let t=cT(e);if(typeof t==`string`){let n=this.#t.get(t);if(n)if(n.length>1){let t=n.indexOf(e);t!==-1&&n.splice(t,1)}else n[0]===e&&this.#t.delete(t)}}this.notify({type:`removed`,mutation:e})}canRun(e){let t=cT(e);if(typeof t==`string`){let n=this.#t.get(t)?.find(e=>e.state.status===`pending`);return!n||n===e}else return!0}runNext(e){let t=cT(e);return typeof t==`string`?(this.#t.get(t)?.find(t=>t!==e&&t.state.isPaused))?.continue()??Promise.resolve():Promise.resolve()}clear(){Gw.batch(()=>{this.#e.forEach(e=>{this.notify({type:`removed`,mutation:e})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(e){let t={exact:!0,...e};return this.getAll().find(e=>xw(t,e))}findAll(e={}){return this.getAll().filter(t=>xw(e,t))}notify(e){Gw.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){let e=this.getAll().filter(e=>e.state.isPaused);return Gw.batch(()=>Promise.all(e.map(e=>e.continue().catch(mw))))}};function cT(e){return e.options.scope?.id}var lT=class extends lw{constructor(e={}){super(),this.config=e,this.#e=new Map}#e;build(e,t,n){let r=t.queryKey,i=t.queryHash??Sw(r,t),a=this.get(i);return a||(a=new Qw({client:e,queryKey:r,queryHash:i,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(r)}),this.add(a)),a}add(e){this.#e.has(e.queryHash)||(this.#e.set(e.queryHash,e),this.notify({type:`added`,query:e}))}remove(e){let t=this.#e.get(e.queryHash);t&&(e.destroy(),t===e&&this.#e.delete(e.queryHash),this.notify({type:`removed`,query:e}))}clear(){Gw.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#e.get(e)}getAll(){return[...this.#e.values()]}find(e){let t={exact:!0,...e};return this.getAll().find(e=>bw(t,e))}findAll(e={}){let t=this.getAll();return Object.keys(e).length>0?t.filter(t=>bw(e,t)):t}notify(e){Gw.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){Gw.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){Gw.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},uT=class{#e;#t;#n;#r;#i;#a;#o;#s;constructor(e={}){this.#e=e.queryCache||new lT,this.#t=e.mutationCache||new sT,this.#n=e.defaultOptions||{},this.#r=new Map,this.#i=new Map,this.#a=0}mount(){this.#a++,this.#a===1&&(this.#o=Rw.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#s=Kw.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#a--,this.#a===0&&(this.#o?.(),this.#o=void 0,this.#s?.(),this.#s=void 0)}isFetching(e){return this.#e.findAll({...e,fetchStatus:`fetching`}).length}isMutating(e){return this.#t.findAll({...e,status:`pending`}).length}getQueryData(e){let t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state.data}ensureQueryData(e){let t=this.defaultQueryOptions(e),n=this.#e.build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(vw(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return this.#e.findAll(e).map(({queryKey:e,state:t})=>[e,t.data])}setQueryData(e,t,n){let r=this.defaultQueryOptions({queryKey:e}),i=this.#e.get(r.queryHash)?.state.data,a=hw(t,i);if(a!==void 0)return this.#e.build(this,r).setData(a,{...n,manual:!0})}setQueriesData(e,t,n){return Gw.batch(()=>this.#e.findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,n)]))}getQueryState(e){let t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state}removeQueries(e){let t=this.#e;Gw.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){let n=this.#e;return Gw.batch(()=>(n.findAll(e).forEach(e=>{e.reset()}),this.refetchQueries({type:`active`,...e},t)))}cancelQueries(e,t={}){let n={revert:!0,...t},r=Gw.batch(()=>this.#e.findAll(e).map(e=>e.cancel(n)));return Promise.all(r).then(mw).catch(mw)}invalidateQueries(e,t={}){return Gw.batch(()=>(this.#e.findAll(e).forEach(e=>{e.invalidate()}),e?.refetchType===`none`?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??`active`},t)))}refetchQueries(e,t={}){let n={...t,cancelRefetch:t.cancelRefetch??!0},r=Gw.batch(()=>this.#e.findAll(e).filter(e=>!e.isDisabled()&&!e.isStatic()).map(e=>{let t=e.fetch(void 0,n);return n.throwOnError||(t=t.catch(mw)),e.state.fetchStatus===`paused`?Promise.resolve():t}));return Promise.all(r).then(mw)}fetchQuery(e){let t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);let n=this.#e.build(this,t);return n.isStaleByTime(vw(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(mw).catch(mw)}fetchInfiniteQuery(e){return e.behavior=nT(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(mw).catch(mw)}ensureInfiniteQueryData(e){return e.behavior=nT(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return Kw.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#n}setDefaultOptions(e){this.#n=e}setQueryDefaults(e,t){this.#r.set(Cw(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){let t=[...this.#r.values()],n={};return t.forEach(t=>{ww(e,t.queryKey)&&Object.assign(n,t.defaultOptions)}),n}setMutationDefaults(e,t){this.#i.set(Cw(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){let t=[...this.#i.values()],n={};return t.forEach(t=>{ww(e,t.mutationKey)&&Object.assign(n,t.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;let t={...this.#n.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||=Sw(t.queryKey,t),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!==`always`),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode=`offlineFirst`),t.queryFn===Fw&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#n.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}},dT=`VUE_QUERY_CLIENT`;function fT(e){return`${dT}${e?`:${e}`:``}`}function pT(e,t){Object.keys(e).forEach(n=>{e[n]=t[n]})}function mT(e,t,n=``,r=0){if(t){let i=t(e,n,r);if(i===void 0&&F(e)||i!==void 0)return i}if(Array.isArray(e))return e.map((e,n)=>mT(e,t,String(n),r+1));if(typeof e==`object`&&gT(e)){let n=Object.entries(e).map(([e,n])=>[e,mT(n,t,e,r+1)]);return Object.fromEntries(n)}return e}function hT(e,t){return mT(e,t)}function $(e,t=!1){return hT(e,(e,n,r)=>{if(r===1&&n===`queryKey`)return $(e,!0);if(t&&_T(e))return $(e(),t);if(F(e))return $(I(e),t)})}function gT(e){if(Object.prototype.toString.call(e)!==`[object Object]`)return!1;let t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}function _T(e){return typeof e==`function`}var vT=class extends lT{find(e){return super.find($(e))}findAll(e={}){return super.findAll($(e))}},yT=class extends sT{find(e){return super.find($(e))}findAll(e={}){return super.findAll($(e))}},bT=class extends uT{constructor(e={}){let t={defaultOptions:e.defaultOptions,queryCache:e.queryCache||new vT,mutationCache:e.mutationCache||new yT};super(t),this.isRestoring=hn(!1)}isFetching(e={}){return super.isFetching($(e))}isMutating(e={}){return super.isMutating($(e))}getQueryData(e){return super.getQueryData($(e))}ensureQueryData(e){return super.ensureQueryData($(e))}getQueriesData(e){return super.getQueriesData($(e))}setQueryData(e,t,n={}){return super.setQueryData($(e),t,$(n))}setQueriesData(e,t,n={}){return super.setQueriesData($(e),t,$(n))}getQueryState(e){return super.getQueryState($(e))}removeQueries(e={}){return super.removeQueries($(e))}resetQueries(e={},t={}){return super.resetQueries($(e),$(t))}cancelQueries(e={},t={}){return super.cancelQueries($(e),$(t))}invalidateQueries(e={},t={}){let n=$(e),r=$(t);if(super.invalidateQueries({...n,refetchType:`none`},r),n.refetchType===`none`)return Promise.resolve();let i={...n,type:n.refetchType??n.type??`active`};return ir().then(()=>super.refetchQueries(i,r))}refetchQueries(e={},t={}){return super.refetchQueries($(e),$(t))}fetchQuery(e){return super.fetchQuery($(e))}prefetchQuery(e){return super.prefetchQuery($(e))}fetchInfiniteQuery(e){return super.fetchInfiniteQuery($(e))}prefetchInfiniteQuery(e){return super.prefetchInfiniteQuery($(e))}setDefaultOptions(e){super.setDefaultOptions($(e))}setQueryDefaults(e,t){super.setQueryDefaults($(e),$(t))}getQueryDefaults(e){return super.getQueryDefaults($(e))}setMutationDefaults(e,t){super.setMutationDefaults($(e),$(t))}getMutationDefaults(e){return super.getMutationDefaults($(e))}},xT={install:(e,t={})=>{let n=fT(t.queryClientKey),r;r=`queryClient`in t&&t.queryClient?t.queryClient:new bT(`queryClientConfig`in t?t.queryClientConfig:void 0),pw||r.mount();let i=()=>{};if(t.clientPersister){r.isRestoring&&(r.isRestoring.value=!0);let[e,n]=t.clientPersister(r);i=e,n.then(()=>{r.isRestoring&&(r.isRestoring.value=!1),t.clientPersisterOnSuccess?.(r)})}let a=()=>{r.unmount(),i()};if(e.onUnmount)e.onUnmount(a);else{let t=e.unmount;e.unmount=function(){a(),t()}}e.provide(n,r)}},ST=[Am,Mm,Rm,Q_,nv,rv,iv,ov,Lv,Rv,Bv,rw,iw,aw,cw,ff(e=>{let t=dv(`vue-query`),n=new bT({defaultOptions:{queries:{staleTime:5e3,refetchOnWindowFocus:!1,retry:1}}}),r={queryClient:n};e.vueApp.use(xT,r),Hw(n,t.value)}),ff({name:`i18n:plugin:ssg-detect`,dependsOn:[`i18n:plugin`,`i18n:plugin:route-locale-detect`],enforce:`post`,setup(e){}})];const CT=(e=`RouteProvider`)=>$r({name:e,props:{route:{type:Object,required:!0},vnode:Object,vnodeRef:Object,renderKey:String,trackRootNodes:Boolean},setup(e){let t=e.renderKey,n=e.route,r={};for(let i in e.route)Object.defineProperty(r,i,{get:()=>t===e.renderKey?e.route[i]:n[i],enumerable:!0});return Ka(Ff,rn(r)),()=>e.vnode?ic(e.vnode,{ref:e.vnodeRef}):e.vnode}}),wT=CT();var TT=new WeakMap,ET=$r({name:`NuxtPage`,inheritAttrs:!1,props:{name:{type:String},transition:{type:[Boolean,Object],default:void 0},keepalive:{type:[Boolean,Object],default:void 0},route:{type:Object},pageKey:{type:[Function,String],default:null}},setup(e,{attrs:t,slots:n,expose:r}){let i=V(),a=hn(),o=L(Ff,null),s;r({pageRef:a});let c=L(Pf,null),l,u=i.deferHydration();if(i.isHydrating){let e=i.hooks.hookOnce(`app:error`,u);If().beforeEach(e)}e.pageKey&&$a(()=>e.pageKey,(e,t)=>{e!==t&&i.callHook(`page:loading:start`)});let d=!1;{let e=If().beforeResolve(()=>{d=!1});Hi(()=>{e()})}return()=>ic(Bg,{name:e.name,route:e.route,...t},{default:t=>{let r=OT(o,t.route,t.Component),f=o&&o.matched.length===t.route.matched.length;if(!t.Component){if(l&&!f)return l;u();return}if(l&&c&&!c.isCurrent(t.route))return l;if(r&&o&&(!c||c?.isCurrent(o)))return f?l:null;let p=qg(t,e.pageKey),m=kT(o,t.route,t.Component);!i.isHydrating&&s===p&&!m&&ir(()=>{d=!0,i.callHook(`page:loading:end`)}),s=p;let h=!!(e.transition??t.route.meta.pageTransition??!1),g=h&&DT([e.transition,t.route.meta.pageTransition,!1,{onAfterLeave(){delete i._runningTransition,i.callHook(`page:transition:finish`,t.Component)}}]),_=e.keepalive??t.route.meta.keepalive??!1;return l=Zg(h&&g,Jg(_,ic(Jo,{suspensible:!0,onPending:()=>{h&&(i._runningTransition=!0),i.callHook(`page:start`,t.Component)},onResolve:async()=>{await ir();try{i._route.sync?.(),await i.callHook(`page:finish`,t.Component),delete i._runningTransition,!d&&!m&&(d=!0,await i.callHook(`page:loading:end`))}finally{u()}}},{default:()=>{let e={key:p||void 0,vnode:n.default?AT(n.default,t):t.Component,route:t.route,renderKey:p||void 0,trackRootNodes:h,vnodeRef:a};if(!_)return ic(wT,e);let r=t.Component.type,i=r,o=TT.get(i);return o||(o=CT(r.name||r.__name),TT.set(i,o)),ic(o,e)}}))).default(),l}})}});function DT(e){let t=[];for(let n of e)n&&t.push({...n,onAfterLeave:n.onAfterLeave?Yg(n.onAfterLeave):void 0});return Ef(...t)}function OT(e,t,n){if(!e)return!1;let r=t.matched.findIndex(e=>e.components?.default===n?.type);return!r||r===-1?!1:t.matched.slice(0,r).some((t,n)=>t.components?.default!==e.matched[n]?.components?.default)||n&&qg({route:t,Component:n})!==qg({route:e,Component:n})}function kT(e,t,n){return e?t.matched.findIndex(e=>e.components?.default===n?.type)ic(zv[e.name],e.layoutProps,t.slots)}}),MT=$r({name:`NuxtLayout`,inheritAttrs:!1,props:{name:{type:[String,Boolean,Object],default:null},fallback:{type:[String,Object],default:null}},setup(e,t){let n=V(),r=L(Ff),i=!r||r===Lf()?Hg():r,a=B(()=>{let t=I(e.name)??i?.meta.layout??`default`;return t&&!(t in zv)&&e.fallback&&(t=I(e.fallback)),t}),o=gn();t.expose({layoutRef:o});let s=n.deferHydration();if(n.isHydrating){let e=n.hooks.hookOnce(`app:error`,s);If().beforeEach(e)}let c;return()=>{let n=a.value&&a.value in zv,r=i?.meta.layoutTransition??!1,l=c;return c=a.value,Zg(n&&r,{default:()=>ic(Jo,{suspensible:!0,onResolve:()=>{ir(s)}},{default:()=>ic(NT,{layoutProps:Ms(t.attrs,{ref:o}),key:a.value||void 0,name:a.value,shouldProvide:!e.name,isRenderingNewLayout:e=>e!==l&&e===a.value,hasTransition:!!r},t.slots)})}).default()}}}),NT=$r({name:`NuxtLayoutProvider`,inheritAttrs:!1,props:{name:{type:[String,Boolean]},layoutProps:{type:Object},hasTransition:{type:Boolean},shouldProvide:{type:Boolean},isRenderingNewLayout:{type:Function,required:!0}},setup(e,t){let n=e.name;e.shouldProvide&&Ka(Pf,{isCurrent:e=>n===(e.meta.layout??`default`)});let r=L(Ff);if(r&&r===Lf()){let t=Hg(),n={};for(let i in t){let a=i;Object.defineProperty(n,a,{enumerable:!0,get:()=>e.isRenderingNewLayout(e.name)?t[a]:r[a]})}Ka(Ff,rn(n))}return()=>!n||typeof n==`string`&&!(n in zv)?t.slots.default?.():ic(jT,{key:n,layoutProps:e.layoutProps,name:n},t.slots)}}),PT=$r({__name:`app`,setup(e){return dm({titleTemplate:e=>e?`${e} - MetaCubeXD`:`MetaCubeXD`}),(e,t)=>{let n=ET,r=MT;return us(),gs(r,null,{default:Sr(()=>[z(n)]),_:1})}}}),FT={__name:`nuxt-error-page`,props:{error:Object},setup(e){let t=e.error,n=Number(t.statusCode||500),r=n===404,i=t.statusMessage??(r?`Page Not Found`:`Internal Server Error`),a=t.message||t.toString(),o=Ti(r?()=>hm(()=>import(`./B5nozDwk.js`),__vite__mapDeps([25,26,27]),import.meta.url):()=>hm(()=>import(`./CrrxsLhe.js`),__vite__mapDeps([28,26,29]),import.meta.url));return(e,t)=>(us(),gs(I(o),Te(ws({statusCode:I(n),statusMessage:I(i),description:I(a),stack:I(void 0)})),null,16))}},IT={key:0},LT={__name:`nuxt-root`,setup(e){let t=()=>null,n=V(),r=n.deferHydration();if(n.isHydrating){let e=n.hooks.hookOnce(`app:error`,r);If().beforeEach(e)}window.location.pathname,Ka(Ff,Lf()),n.hooks.callHookWith(e=>e.map(e=>e()),`vue:setup`);let i=Hf(),a=/bot\b|chrome-lighthouse|facebookexternalhit|google\b/i;return qi((e,t,r)=>{if(n.hooks.callHook(`vue:error`,e,t,r).catch(e=>console.error("[nuxt] Error in `vue:error` hook",e)),a.test(navigator.userAgent))return n.hooks.callHook(`app:error`,e),console.error(`[nuxt] Not rendering error page for bot with user agent \`${navigator.userAgent}\`:`,e),!1;if(Gf(e)&&(e.fatal||e.unhandled))return n.runWithContext(()=>Uf(e)),!1}),(e,n)=>(us(),gs(Jo,{onResolve:I(r)},{default:Sr(()=>[I(!1)?(us(),hs(`div`,IT)):I(i)?(us(),gs(I(FT),{key:1,error:I(i)},null,8,[`error`])):I(!1)?(us(),gs(I(t),{key:2,context:I(!1)},null,8,[`context`])):I(!1)?(us(),gs(Qi(I(!1)),{key:3})):(us(),gs(I(PT),{key:4}))]),_:1},8,[`onResolve`]))}},RT;{let e;RT=async function(){if(e)return e;let t=!!(window.__NUXT__?.serverRendered??document.getElementById(`__NUXT_DATA__`)?.dataset.ssr===`true`),n=t?hu(LT):mu(LT),r=cf({vueApp:n});async function i(e){await r.callHook(`app:error`,e),r.payload.error||=Kf(e)}n.config.errorHandler=i,r.hook(`app:suspense:resolve`,()=>{n.config.errorHandler===i&&(n.config.errorHandler=void 0)}),!t&&rf.id&&r.hook(`app:suspense:resolve`,()=>{document.getElementById(rf.id)?.remove()});try{await df(r,ST)}catch(e){i(e)}try{await r.hooks.callHook(`app:created`,n),await r.hooks.callHook(`app:beforeMount`,n),n.mount(`#__nuxt`),await r.hooks.callHook(`app:mounted`,n),await ir()}catch(e){i(e)}return n},e=RT().catch(e=>{throw console.error(`Error while mounting app:`,e),e})}export{$r as $,c_ as A,o as At,Gc as B,J_ as C,Tn as Ct,V_ as D,M as Dt,K_ as E,I as Et,gf as F,Ss as G,R as H,Dc as I,hs as J,gs as K,Gl as L,Tp as M,l as Mt,Lf as N,q_ as O,be as Ot,If as P,z as Q,Jl as R,Mv as S,gn as St,k_ as T,yn as Tt,Fr as U,iu as V,B as W,Ds as X,ra as Y,Es as Z,Lw as _,nn as _t,$w as a,zi as at,lw as b,rn as bt,Rw as c,na as ct,gw as d,$a as dt,ic as et,mw as f,Sr as ft,Dw as g,Ve as gt,vw as h,F as ht,oT as i,Hi as it,dm as j,s as jt,T_ as k,Ne as kt,Cw as l,ia as lt,yw as m,Be as mt,fT as n,L as nt,Gw as o,Ui as ot,Mw as p,Cr as pt,Os as q,pT as r,ir as rt,zw as s,us as st,$ as t,qa as tt,pw as u,Qi as ut,_w as v,an as vt,O_ as w,bn as wt,zC as x,on as xt,dw as y,hn as yt,Wl as z}; \ No newline at end of file diff --git a/dashboard/public/_nuxt/CJ3kh3xA.js b/dashboard/public/_nuxt/D4Jc__Wf.js similarity index 90% rename from dashboard/public/_nuxt/CJ3kh3xA.js rename to dashboard/public/_nuxt/D4Jc__Wf.js index c4327d4..1737e86 100644 --- a/dashboard/public/_nuxt/CJ3kh3xA.js +++ b/dashboard/public/_nuxt/D4Jc__Wf.js @@ -1 +1 @@ -import{$ as e,Et as t,G as n,J as r,Q as i,V as a,ft as o,kt as s,lt as c,q as l,st as u,yt as d}from"./DOvCTup-.js";import{i as f}from"./DkKkiaBA.js";import{t as p}from"./NIr0cT37.js";var m={class:`sticky top-0 z-50 flex items-center justify-between bg-base-100/80 p-4 backdrop-blur`,style:{"padding-top":`max(1rem, env(safe-area-inset-top))`}},h={class:`flex items-center gap-4 text-xl font-bold`},g={class:`p-4`},_={key:0,class:`sticky bottom-0 z-50 flex items-center justify-end bg-base-100/80 p-4 backdrop-blur`},v={class:`flex justify-end gap-2`},y=e({__name:`Modal`,props:{title:{}},emits:[`close`],setup(e,{expose:y,emit:b}){let x=b,S=d();function C(){S.value?.showModal()}function w(){S.value?.close(),x(`close`)}return y({open:C,close:w}),(d,y)=>{let b=p;return u(),r(`dialog`,{ref_key:`dialogRef`,ref:S,class:`modal modal-bottom sm:modal-middle`},[n(`div`,{class:`modal-box p-0`,onContextmenu:y[0]||=a(()=>{},[`prevent`])},[n(`div`,m,[n(`div`,h,[c(d.$slots,`icon`),n(`span`,null,s(e.title),1)]),i(b,{class:`btn-circle btn-sm`,onClick:w},{default:o(()=>[i(t(f),{size:20})]),_:1})]),n(`div`,g,[c(d.$slots,`default`)]),d.$slots.actions?(u(),r(`div`,_,[n(`div`,v,[c(d.$slots,`actions`)])])):l(``,!0)],32),y[1]||=n(`form`,{method:`dialog`,class:`modal-backdrop`},[n(`button`)],-1)],512)}}}),b=Object.assign(y,{__name:`Modal`});export{b as t}; \ No newline at end of file +import{$ as e,Et as t,G as n,J as r,Q as i,V as a,ft as o,kt as s,lt as c,q as l,st as u,yt as d}from"./CxatB1L6.js";import{i as f}from"./BlFRk3uc.js";import{t as p}from"./DP7SiUGW.js";var m={class:`sticky top-0 z-50 flex items-center justify-between bg-base-100/80 p-4 backdrop-blur`,style:{"padding-top":`max(1rem, env(safe-area-inset-top))`}},h={class:`flex items-center gap-4 text-xl font-bold`},g={class:`p-4`},_={key:0,class:`sticky bottom-0 z-50 flex items-center justify-end bg-base-100/80 p-4 backdrop-blur`},v={class:`flex justify-end gap-2`},y=e({__name:`Modal`,props:{title:{}},emits:[`close`],setup(e,{expose:y,emit:b}){let x=b,S=d();function C(){S.value?.showModal()}function w(){S.value?.close(),x(`close`)}return y({open:C,close:w}),(d,y)=>{let b=p;return u(),r(`dialog`,{ref_key:`dialogRef`,ref:S,class:`modal modal-bottom sm:modal-middle`},[n(`div`,{class:`modal-box p-0`,onContextmenu:y[0]||=a(()=>{},[`prevent`])},[n(`div`,m,[n(`div`,h,[c(d.$slots,`icon`),n(`span`,null,s(e.title),1)]),i(b,{class:`btn-circle btn-sm`,onClick:w},{default:o(()=>[i(t(f),{size:20})]),_:1})]),n(`div`,g,[c(d.$slots,`default`)]),d.$slots.actions?(u(),r(`div`,_,[n(`div`,v,[c(d.$slots,`actions`)])])):l(``,!0)],32),y[1]||=n(`form`,{method:`dialog`,class:`modal-backdrop`},[n(`button`)],-1)],512)}}}),b=Object.assign(y,{__name:`Modal`});export{b as t}; \ No newline at end of file diff --git a/dashboard/public/_nuxt/BpDbz5Be.js b/dashboard/public/_nuxt/D8VGDxpn.js similarity index 99% rename from dashboard/public/_nuxt/BpDbz5Be.js rename to dashboard/public/_nuxt/D8VGDxpn.js index ff4705b..20c14c8 100644 --- a/dashboard/public/_nuxt/BpDbz5Be.js +++ b/dashboard/public/_nuxt/D8VGDxpn.js @@ -1 +1 @@ -import{At as e,Mt as t,yt as n}from"./DOvCTup-.js";import{f as r}from"./_v7-ePgP.js";var i=e(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs=r()})(e,(function(){var e=1e3,t=6e4,n=36e5,r=`millisecond`,i=`second`,a=`minute`,o=`hour`,s=`day`,c=`week`,l=`month`,u=`quarter`,d=`year`,f=`date`,p=`Invalid Date`,m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,h=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,g={name:`en`,weekdays:`Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday`.split(`_`),months:`January_February_March_April_May_June_July_August_September_October_November_December`.split(`_`),ordinal:function(e){var t=[`th`,`st`,`nd`,`rd`],n=e%100;return`[`+e+(t[(n-20)%10]||t[n]||t[0])+`]`}},_=function(e,t,n){var r=String(e);return!r||r.length>=t?e:``+Array(t+1-r.length).join(n)+e},v={s:_,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),i=n%60;return(t<=0?`+`:`-`)+_(r,2,`0`)+`:`+_(i,2,`0`)},m:function e(t,n){if(t.date()1)return e(o[0])}else{var s=t.name;b[s]=t,i=s}return!r&&i&&(y=i),i||!r&&y},w=function(e,t){if(S(e))return e.clone();var n=typeof t==`object`?t:{};return n.date=e,n.args=arguments,new E(n)},T=v;T.l=C,T.i=S,T.w=function(e,t){return w(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var E=function(){function g(e){this.$L=C(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[x]=!0}var _=g.prototype;return _.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(t===null)return new Date(NaN);if(T.u(t))return new Date;if(t instanceof Date)return new Date(t);if(typeof t==`string`&&!/Z$/i.test(t)){var r=t.match(m);if(r){var i=r[2]-1||0,a=(r[7]||`0`).substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)}}return new Date(t)}(e),this.init()},_.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},_.$utils=function(){return T},_.isValid=function(){return this.$d.toString()!==p},_.isSame=function(e,t){var n=w(e);return this.startOf(t)<=n&&n<=this.endOf(t)},_.isAfter=function(e,t){return w(e){(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_duration=r()})(e,(function(){var e,t,n=1e3,r=6e4,i=36e5,a=864e5,o=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,s=31536e6,c=2628e6,l=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,u={years:s,months:c,days:a,hours:i,minutes:r,seconds:n,milliseconds:1,weeks:6048e5},d=function(e){return e instanceof v},f=function(e,t,n){return new v(e,n,t.$l)},p=function(e){return t.p(e)+`s`},m=function(e){return e<0},h=function(e){return m(e)?Math.ceil(e):Math.floor(e)},g=function(e){return Math.abs(e)},_=function(e,t){return e?m(e)?{negative:!0,format:``+g(e)+t}:{negative:!1,format:``+e+t}:{negative:!1,format:``}},v=function(){function m(e,t,n){var r=this;if(this.$d={},this.$l=n,e===void 0&&(this.$ms=0,this.parseFromMilliseconds()),t)return f(e*u[p(t)],this);if(typeof e==`number`)return this.$ms=e,this.parseFromMilliseconds(),this;if(typeof e==`object`)return Object.keys(e).forEach((function(t){r.$d[p(t)]=e[t]})),this.calMilliseconds(),this;if(typeof e==`string`){var i=e.match(l);if(i){var a=i.slice(2).map((function(e){return e==null?0:Number(e)}));return this.$d.years=a[0],this.$d.months=a[1],this.$d.weeks=a[2],this.$d.days=a[3],this.$d.hours=a[4],this.$d.minutes=a[5],this.$d.seconds=a[6],this.calMilliseconds(),this}}return this}var g=m.prototype;return g.calMilliseconds=function(){var e=this;this.$ms=Object.keys(this.$d).reduce((function(t,n){return t+(e.$d[n]||0)*u[n]}),0)},g.parseFromMilliseconds=function(){var e=this.$ms;this.$d.years=h(e/s),e%=s,this.$d.months=h(e/c),e%=c,this.$d.days=h(e/a),e%=a,this.$d.hours=h(e/i),e%=i,this.$d.minutes=h(e/r),e%=r,this.$d.seconds=h(e/n),e%=n,this.$d.milliseconds=e},g.toISOString=function(){var e=_(this.$d.years,`Y`),t=_(this.$d.months,`M`),n=+this.$d.days||0;this.$d.weeks&&(n+=7*this.$d.weeks);var r=_(n,`D`),i=_(this.$d.hours,`H`),a=_(this.$d.minutes,`M`),o=this.$d.seconds||0;this.$d.milliseconds&&(o+=this.$d.milliseconds/1e3,o=Math.round(1e3*o)/1e3);var s=_(o,`S`),c=e.negative||t.negative||r.negative||i.negative||a.negative||s.negative,l=i.format||a.format||s.format?`T`:``,u=(c?`-`:``)+`P`+e.format+t.format+r.format+l+i.format+a.format+s.format;return u===`P`||u===`-P`?`P0D`:u},g.toJSON=function(){return this.toISOString()},g.format=function(e){var n=e||`YYYY-MM-DDTHH:mm:ss`,r={Y:this.$d.years,YY:t.s(this.$d.years,2,`0`),YYYY:t.s(this.$d.years,4,`0`),M:this.$d.months,MM:t.s(this.$d.months,2,`0`),D:this.$d.days,DD:t.s(this.$d.days,2,`0`),H:this.$d.hours,HH:t.s(this.$d.hours,2,`0`),m:this.$d.minutes,mm:t.s(this.$d.minutes,2,`0`),s:this.$d.seconds,ss:t.s(this.$d.seconds,2,`0`),SSS:t.s(this.$d.milliseconds,3,`0`)};return n.replace(o,(function(e,t){return t||String(r[e])}))},g.as=function(e){return this.$ms/u[p(e)]},g.get=function(e){var t=this.$ms,n=p(e);return n===`milliseconds`?t%=1e3:t=n===`weeks`?h(t/u[n]):this.$d[n],t||0},g.add=function(e,t,n){var r;return r=t?e*u[p(t)]:d(e)?e.$ms:f(e,this).$ms,f(this.$ms+r*(n?-1:1),this)},g.subtract=function(e,t){return this.add(e,t,!0)},g.locale=function(e){var t=this.clone();return t.$l=e,t},g.clone=function(){return f(this.$ms,this)},g.humanize=function(t){return e().add(this.$ms,`ms`).locale(this.$l).fromNow(!t)},g.valueOf=function(){return this.asMilliseconds()},g.milliseconds=function(){return this.get(`milliseconds`)},g.asMilliseconds=function(){return this.as(`milliseconds`)},g.seconds=function(){return this.get(`seconds`)},g.asSeconds=function(){return this.as(`seconds`)},g.minutes=function(){return this.get(`minutes`)},g.asMinutes=function(){return this.as(`minutes`)},g.hours=function(){return this.get(`hours`)},g.asHours=function(){return this.as(`hours`)},g.days=function(){return this.get(`days`)},g.asDays=function(){return this.as(`days`)},g.weeks=function(){return this.get(`weeks`)},g.asWeeks=function(){return this.as(`weeks`)},g.months=function(){return this.get(`months`)},g.asMonths=function(){return this.as(`months`)},g.years=function(){return this.get(`years`)},g.asYears=function(){return this.as(`years`)},m}(),y=function(e,t,n){return e.add(t.years()*n,`y`).add(t.months()*n,`M`).add(t.days()*n,`d`).add(t.hours()*n,`h`).add(t.minutes()*n,`m`).add(t.seconds()*n,`s`).add(t.milliseconds()*n,`ms`)};return function(n,r,i){e=i,t=i().$utils(),i.duration=function(e,t){return f(e,{$l:i.locale()},t)},i.isDuration=d;var a=r.prototype.add,o=r.prototype.subtract;r.prototype.add=function(e,t){return d(e)?y(this,e,1):a.bind(this)(e,t)},r.prototype.subtract=function(e,t){return d(e)?y(this,e,-1):o.bind(this)(e,t)}}}))})),o=e(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_relativeTime=r()})(e,(function(){return function(e,t,n){e||={};var r=t.prototype,i={future:`in %s`,past:`%s ago`,s:`a few seconds`,m:`a minute`,mm:`%d minutes`,h:`an hour`,hh:`%d hours`,d:`a day`,dd:`%d days`,M:`a month`,MM:`%d months`,y:`a year`,yy:`%d years`};function a(e,t,n,i){return r.fromToBase(e,t,n,i)}n.en.relativeTime=i,r.fromToBase=function(t,r,a,o,s){for(var c,l,u,d=a.$locale().relativeTime||i,f=e.thresholds||[{l:`s`,r:44,d:`second`},{l:`m`,r:89},{l:`mm`,r:44,d:`minute`},{l:`h`,r:89},{l:`hh`,r:21,d:`hour`},{l:`d`,r:35},{l:`dd`,r:25,d:`day`},{l:`M`,r:45},{l:`MM`,r:10,d:`month`},{l:`y`,r:17},{l:`yy`,d:`year`}],p=f.length,m=0;m0,g<=h.r||!h.r){g<=1&&m>0&&(h=f[m-1]);var _=d[h.l];s&&(g=s(``+g)),l=typeof _==`string`?_.replace(`%d`,g):_(g,r,h.l,u);break}}if(r)return l;var v=u?d.future:d.past;return typeof v==`function`?v(l):v.replace(`%s`,l)},r.to=function(e,t){return a(e,t,this,!0)},r.from=function(e,t){return a(e,t,this)};var o=function(e){return e.$u?n.utc():n()};r.toNow=function(e){return this.to(o(this),e)},r.fromNow=function(e){return this.from(o(this),e)}}}))})),s=e(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r(i()):typeof define==`function`&&define.amd?define([`dayjs`],r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_locale_zh_cn=r(n.dayjs)})(e,(function(e){function t(e){return e&&typeof e==`object`&&`default`in e?e:{default:e}}var n=t(e),r={name:`zh-cn`,weekdays:`星期日_星期一_星期二_星期三_星期四_星期五_星期六`.split(`_`),weekdaysShort:`周日_周一_周二_周三_周四_周五_周六`.split(`_`),weekdaysMin:`日_一_二_三_四_五_六`.split(`_`),months:`一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月`.split(`_`),monthsShort:`1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月`.split(`_`),ordinal:function(e,t){return t===`W`?e+`周`:e+`日`},weekStart:1,yearStart:4,formats:{LT:`HH:mm`,LTS:`HH:mm:ss`,L:`YYYY/MM/DD`,LL:`YYYY年M月D日`,LLL:`YYYY年M月D日Ah点mm分`,LLLL:`YYYY年M月D日ddddAh点mm分`,l:`YYYY/M/D`,ll:`YYYY年M月D日`,lll:`YYYY年M月D日 HH:mm`,llll:`YYYY年M月D日dddd HH:mm`},relativeTime:{future:`%s内`,past:`%s前`,s:`几秒`,m:`1 分钟`,mm:`%d 分钟`,h:`1 小时`,hh:`%d 小时`,d:`1 天`,dd:`%d 天`,M:`1 个月`,MM:`%d 个月`,y:`1 年`,yy:`%d 年`},meridiem:function(e,t){var n=100*e+t;return n<600?`凌晨`:n<900?`早上`:n<1100?`上午`:n<1300?`中午`:n<1800?`下午`:`晚上`}};return n.default.locale(r,null,!0),r}))})),c=e(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r(i()):typeof define==`function`&&define.amd?define([`dayjs`],r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_locale_ru=r(n.dayjs)})(e,(function(e){function t(e){return e&&typeof e==`object`&&`default`in e?e:{default:e}}var n=t(e),r=`января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря`.split(`_`),i=`январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь`.split(`_`),a=`янв._февр._мар._апр._мая_июня_июля_авг._сент._окт._нояб._дек.`.split(`_`),o=`янв._февр._март_апр._май_июнь_июль_авг._сент._окт._нояб._дек.`.split(`_`),s=/D[oD]?(\[[^[\]]*\]|\s)+MMMM?/;function c(e,t,n){var r,i;return n===`m`?t?`минута`:`минуту`:e+` `+(r=+e,i={mm:t?`минута_минуты_минут`:`минуту_минуты_минут`,hh:`час_часа_часов`,dd:`день_дня_дней`,MM:`месяц_месяца_месяцев`,yy:`год_года_лет`}[n].split(`_`),r%10==1&&r%100!=11?i[0]:r%10>=2&&r%10<=4&&(r%100<10||r%100>=20)?i[1]:i[2])}var l=function(e,t){return s.test(t)?r[e.month()]:i[e.month()]};l.s=i,l.f=r;var u=function(e,t){return s.test(t)?a[e.month()]:o[e.month()]};u.s=o,u.f=a;var d={name:`ru`,weekdays:`воскресенье_понедельник_вторник_среда_четверг_пятница_суббота`.split(`_`),weekdaysShort:`вск_пнд_втр_срд_чтв_птн_сбт`.split(`_`),weekdaysMin:`вс_пн_вт_ср_чт_пт_сб`.split(`_`),months:l,monthsShort:u,weekStart:1,yearStart:4,formats:{LT:`H:mm`,LTS:`H:mm:ss`,L:`DD.MM.YYYY`,LL:`D MMMM YYYY г.`,LLL:`D MMMM YYYY г., H:mm`,LLLL:`dddd, D MMMM YYYY г., H:mm`},relativeTime:{future:`через %s`,past:`%s назад`,s:`несколько секунд`,m:c,mm:c,h:`час`,hh:c,d:`день`,dd:c,M:`месяц`,MM:c,y:`год`,yy:c},ordinal:function(e){return e},meridiem:function(e){return e<4?`ночи`:e<12?`утра`:e<17?`дня`:`вечера`}};return n.default.locale(d,null,!0),d}))})),l=t(i(),1),u=t(a(),1),d=t(o(),1);s(),c(),l.default.extend(d.default),l.default.extend(u.default);function f(e){return/^https?:\/\//.test(e)?e:`${window.location.protocol}//${e}`}function p(e){return/:{1,2}/.test(e)?`[${e}]`:e}function m(e,t=`en`){let n=t===`zh`?`zh-cn`:t===`ru`?`ru`:`en`;return(0,l.default)(e).locale(n).fromNow()}function h(e,t){let n=t-e,r=l.default.duration(n),i=Math.floor(r.asDays()),a=r.hours(),o=r.minutes(),s=r.seconds(),c=[];return i>0&&c.push(`${i}d`),a>0&&c.push(`${a}h`),o>0&&c.push(`${o}m`),s>0&&i===0&&c.push(`${s}s`),c.length>0?c.join(` `):`0s`}function g(e,t,n=`en`){let r=n===`zh`?`zh-cn`:n===`ru`?`ru`:`en`,i=(0,l.default)(e),a=(0,l.default)(t);return i.isSame(a,`day`)?`${i.locale(r).format(`MMM D, YYYY HH:mm`)} - ${a.locale(r).format(`HH:mm`)}`:`${i.locale(r).format(`MMM D, HH:mm`)} - ${a.locale(r).format(`MMM D, HH:mm`)}`}function _(e=``,t){let n=e.toLowerCase(),r=new Map([[`shadowsocks`,`SS`],[`shadowsocksr`,`SSR`],[`hysteria`,`HY`],[`hysteria2`,`HY2`],[`wireguard`,`WG`],[`selector`,t(`selector`)],[`urltest`,t(`urltest`)],[`fallback`,t(`fallback`)],[`loadbalance`,t(`loadbalance`)],[`direct`,t(`direct`)],[`reject`,t(`reject`)],[`rejectdrop`,t(`rejectdrop`)],[`relay`,t(`relay`)],[`pass`,t(`pass`)]]);return r.has(n)?r.get(n):n}function v(e,t){return e>t.HIGH?`text-red-500`:e>t.MEDIUM?`text-yellow-500`:e===t.NOT_CONNECTED?`text-gray`:`text-green-600`}function y(e=``){return![`selector`,`direct`,`reject`,`urltest`,`loadbalance`,`fallback`,`relay`].includes(e.toLowerCase())}function b({proxyNames:e,orderingType:t,testUrl:n,getLatencyByName:i,latencyQualityMap:a,urlForLatencyTest:o}){if(t===r.NATURAL)return e;let s=n||o;return[...e].sort((e,n)=>{let o=i(e,s),c=i(n,s);switch(t){case r.LATENCY_ASC:return o===a.NOT_CONNECTED?1:c===a.NOT_CONNECTED?-1:o-c;case r.LATENCY_DESC:return o===a.NOT_CONNECTED?1:c===a.NOT_CONNECTED?-1:c-o;case r.NAME_ASC:return e.localeCompare(n);case r.NAME_DESC:return n.localeCompare(e);default:return 0}})}function x({proxyNames:e,enabled:t,testUrl:n,getLatencyByName:r,isProxyGroup:i,latencyQualityMap:a,urlForLatencyTest:o}){let s=n||o;return t?e.filter(e=>i(e)||r(e,s)!==a.NOT_CONNECTED):e}function S(){let e=n({}),t=(t,n)=>{e.value={...e.value,[t]:n}};return{map:e,set:t,setWithCallback:async(e,n)=>{t(e,!0);try{await n()}catch{}t(e,!1)}}}function C(e){return typeof document>`u`?``:getComputedStyle(document.documentElement).getPropertyValue(e).trim()}function w(){return{baseContent:C(`--color-base-content`)||`oklch(0.746 0 0)`,base100:C(`--color-base-100`)||`oklch(0.253 0 0)`,base200:C(`--color-base-200`)||`oklch(0.232 0 0)`,base300:C(`--color-base-300`)||`oklch(0.211 0 0)`,primary:C(`--color-primary`)||`oklch(0.65 0.15 240)`,primaryContent:C(`--color-primary-content`)||`oklch(0.98 0 0)`,secondary:C(`--color-secondary`)||`oklch(0.65 0.15 300)`,secondaryContent:C(`--color-secondary-content`)||`oklch(0.98 0 0)`,accent:C(`--color-accent`)||`oklch(0.65 0.15 180)`,accentContent:C(`--color-accent-content`)||`oklch(0.98 0 0)`,neutral:C(`--color-neutral`)||`oklch(0.3 0 0)`,neutralContent:C(`--color-neutral-content`)||`oklch(0.98 0 0)`,info:C(`--color-info`)||`oklch(0.65 0.15 220)`,success:C(`--color-success`)||`oklch(0.65 0.15 140)`,warning:C(`--color-warning`)||`oklch(0.8 0.15 80)`,error:C(`--color-error`)||`oklch(0.65 0.2 25)`}}function T(){let e=w();return{textColor:e.baseContent,textColorHover:e.primaryContent,gridLineColor:e.base300,lineColor:e.base300,tickColor:e.base300,seriesColors:[e.info,e.success,e.warning,e.error],backgroundColor:e.base200}}function E(e){return e.replace(`/g,`%3E`)}export{h as a,m as c,w as d,b as f,i as h,g as i,T as l,S as m,x as n,p as o,f as p,y as r,_ as s,E as t,v as u}; \ No newline at end of file +import{At as e,Mt as t,yt as n}from"./CxatB1L6.js";import{f as r}from"./_v7-ePgP.js";var i=e(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs=r()})(e,(function(){var e=1e3,t=6e4,n=36e5,r=`millisecond`,i=`second`,a=`minute`,o=`hour`,s=`day`,c=`week`,l=`month`,u=`quarter`,d=`year`,f=`date`,p=`Invalid Date`,m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,h=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,g={name:`en`,weekdays:`Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday`.split(`_`),months:`January_February_March_April_May_June_July_August_September_October_November_December`.split(`_`),ordinal:function(e){var t=[`th`,`st`,`nd`,`rd`],n=e%100;return`[`+e+(t[(n-20)%10]||t[n]||t[0])+`]`}},_=function(e,t,n){var r=String(e);return!r||r.length>=t?e:``+Array(t+1-r.length).join(n)+e},v={s:_,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),i=n%60;return(t<=0?`+`:`-`)+_(r,2,`0`)+`:`+_(i,2,`0`)},m:function e(t,n){if(t.date()1)return e(o[0])}else{var s=t.name;b[s]=t,i=s}return!r&&i&&(y=i),i||!r&&y},w=function(e,t){if(S(e))return e.clone();var n=typeof t==`object`?t:{};return n.date=e,n.args=arguments,new E(n)},T=v;T.l=C,T.i=S,T.w=function(e,t){return w(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var E=function(){function g(e){this.$L=C(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[x]=!0}var _=g.prototype;return _.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(t===null)return new Date(NaN);if(T.u(t))return new Date;if(t instanceof Date)return new Date(t);if(typeof t==`string`&&!/Z$/i.test(t)){var r=t.match(m);if(r){var i=r[2]-1||0,a=(r[7]||`0`).substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)}}return new Date(t)}(e),this.init()},_.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},_.$utils=function(){return T},_.isValid=function(){return this.$d.toString()!==p},_.isSame=function(e,t){var n=w(e);return this.startOf(t)<=n&&n<=this.endOf(t)},_.isAfter=function(e,t){return w(e){(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_duration=r()})(e,(function(){var e,t,n=1e3,r=6e4,i=36e5,a=864e5,o=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,s=31536e6,c=2628e6,l=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,u={years:s,months:c,days:a,hours:i,minutes:r,seconds:n,milliseconds:1,weeks:6048e5},d=function(e){return e instanceof v},f=function(e,t,n){return new v(e,n,t.$l)},p=function(e){return t.p(e)+`s`},m=function(e){return e<0},h=function(e){return m(e)?Math.ceil(e):Math.floor(e)},g=function(e){return Math.abs(e)},_=function(e,t){return e?m(e)?{negative:!0,format:``+g(e)+t}:{negative:!1,format:``+e+t}:{negative:!1,format:``}},v=function(){function m(e,t,n){var r=this;if(this.$d={},this.$l=n,e===void 0&&(this.$ms=0,this.parseFromMilliseconds()),t)return f(e*u[p(t)],this);if(typeof e==`number`)return this.$ms=e,this.parseFromMilliseconds(),this;if(typeof e==`object`)return Object.keys(e).forEach((function(t){r.$d[p(t)]=e[t]})),this.calMilliseconds(),this;if(typeof e==`string`){var i=e.match(l);if(i){var a=i.slice(2).map((function(e){return e==null?0:Number(e)}));return this.$d.years=a[0],this.$d.months=a[1],this.$d.weeks=a[2],this.$d.days=a[3],this.$d.hours=a[4],this.$d.minutes=a[5],this.$d.seconds=a[6],this.calMilliseconds(),this}}return this}var g=m.prototype;return g.calMilliseconds=function(){var e=this;this.$ms=Object.keys(this.$d).reduce((function(t,n){return t+(e.$d[n]||0)*u[n]}),0)},g.parseFromMilliseconds=function(){var e=this.$ms;this.$d.years=h(e/s),e%=s,this.$d.months=h(e/c),e%=c,this.$d.days=h(e/a),e%=a,this.$d.hours=h(e/i),e%=i,this.$d.minutes=h(e/r),e%=r,this.$d.seconds=h(e/n),e%=n,this.$d.milliseconds=e},g.toISOString=function(){var e=_(this.$d.years,`Y`),t=_(this.$d.months,`M`),n=+this.$d.days||0;this.$d.weeks&&(n+=7*this.$d.weeks);var r=_(n,`D`),i=_(this.$d.hours,`H`),a=_(this.$d.minutes,`M`),o=this.$d.seconds||0;this.$d.milliseconds&&(o+=this.$d.milliseconds/1e3,o=Math.round(1e3*o)/1e3);var s=_(o,`S`),c=e.negative||t.negative||r.negative||i.negative||a.negative||s.negative,l=i.format||a.format||s.format?`T`:``,u=(c?`-`:``)+`P`+e.format+t.format+r.format+l+i.format+a.format+s.format;return u===`P`||u===`-P`?`P0D`:u},g.toJSON=function(){return this.toISOString()},g.format=function(e){var n=e||`YYYY-MM-DDTHH:mm:ss`,r={Y:this.$d.years,YY:t.s(this.$d.years,2,`0`),YYYY:t.s(this.$d.years,4,`0`),M:this.$d.months,MM:t.s(this.$d.months,2,`0`),D:this.$d.days,DD:t.s(this.$d.days,2,`0`),H:this.$d.hours,HH:t.s(this.$d.hours,2,`0`),m:this.$d.minutes,mm:t.s(this.$d.minutes,2,`0`),s:this.$d.seconds,ss:t.s(this.$d.seconds,2,`0`),SSS:t.s(this.$d.milliseconds,3,`0`)};return n.replace(o,(function(e,t){return t||String(r[e])}))},g.as=function(e){return this.$ms/u[p(e)]},g.get=function(e){var t=this.$ms,n=p(e);return n===`milliseconds`?t%=1e3:t=n===`weeks`?h(t/u[n]):this.$d[n],t||0},g.add=function(e,t,n){var r;return r=t?e*u[p(t)]:d(e)?e.$ms:f(e,this).$ms,f(this.$ms+r*(n?-1:1),this)},g.subtract=function(e,t){return this.add(e,t,!0)},g.locale=function(e){var t=this.clone();return t.$l=e,t},g.clone=function(){return f(this.$ms,this)},g.humanize=function(t){return e().add(this.$ms,`ms`).locale(this.$l).fromNow(!t)},g.valueOf=function(){return this.asMilliseconds()},g.milliseconds=function(){return this.get(`milliseconds`)},g.asMilliseconds=function(){return this.as(`milliseconds`)},g.seconds=function(){return this.get(`seconds`)},g.asSeconds=function(){return this.as(`seconds`)},g.minutes=function(){return this.get(`minutes`)},g.asMinutes=function(){return this.as(`minutes`)},g.hours=function(){return this.get(`hours`)},g.asHours=function(){return this.as(`hours`)},g.days=function(){return this.get(`days`)},g.asDays=function(){return this.as(`days`)},g.weeks=function(){return this.get(`weeks`)},g.asWeeks=function(){return this.as(`weeks`)},g.months=function(){return this.get(`months`)},g.asMonths=function(){return this.as(`months`)},g.years=function(){return this.get(`years`)},g.asYears=function(){return this.as(`years`)},m}(),y=function(e,t,n){return e.add(t.years()*n,`y`).add(t.months()*n,`M`).add(t.days()*n,`d`).add(t.hours()*n,`h`).add(t.minutes()*n,`m`).add(t.seconds()*n,`s`).add(t.milliseconds()*n,`ms`)};return function(n,r,i){e=i,t=i().$utils(),i.duration=function(e,t){return f(e,{$l:i.locale()},t)},i.isDuration=d;var a=r.prototype.add,o=r.prototype.subtract;r.prototype.add=function(e,t){return d(e)?y(this,e,1):a.bind(this)(e,t)},r.prototype.subtract=function(e,t){return d(e)?y(this,e,-1):o.bind(this)(e,t)}}}))})),o=e(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_relativeTime=r()})(e,(function(){return function(e,t,n){e||={};var r=t.prototype,i={future:`in %s`,past:`%s ago`,s:`a few seconds`,m:`a minute`,mm:`%d minutes`,h:`an hour`,hh:`%d hours`,d:`a day`,dd:`%d days`,M:`a month`,MM:`%d months`,y:`a year`,yy:`%d years`};function a(e,t,n,i){return r.fromToBase(e,t,n,i)}n.en.relativeTime=i,r.fromToBase=function(t,r,a,o,s){for(var c,l,u,d=a.$locale().relativeTime||i,f=e.thresholds||[{l:`s`,r:44,d:`second`},{l:`m`,r:89},{l:`mm`,r:44,d:`minute`},{l:`h`,r:89},{l:`hh`,r:21,d:`hour`},{l:`d`,r:35},{l:`dd`,r:25,d:`day`},{l:`M`,r:45},{l:`MM`,r:10,d:`month`},{l:`y`,r:17},{l:`yy`,d:`year`}],p=f.length,m=0;m0,g<=h.r||!h.r){g<=1&&m>0&&(h=f[m-1]);var _=d[h.l];s&&(g=s(``+g)),l=typeof _==`string`?_.replace(`%d`,g):_(g,r,h.l,u);break}}if(r)return l;var v=u?d.future:d.past;return typeof v==`function`?v(l):v.replace(`%s`,l)},r.to=function(e,t){return a(e,t,this,!0)},r.from=function(e,t){return a(e,t,this)};var o=function(e){return e.$u?n.utc():n()};r.toNow=function(e){return this.to(o(this),e)},r.fromNow=function(e){return this.from(o(this),e)}}}))})),s=e(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r(i()):typeof define==`function`&&define.amd?define([`dayjs`],r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_locale_zh_cn=r(n.dayjs)})(e,(function(e){function t(e){return e&&typeof e==`object`&&`default`in e?e:{default:e}}var n=t(e),r={name:`zh-cn`,weekdays:`星期日_星期一_星期二_星期三_星期四_星期五_星期六`.split(`_`),weekdaysShort:`周日_周一_周二_周三_周四_周五_周六`.split(`_`),weekdaysMin:`日_一_二_三_四_五_六`.split(`_`),months:`一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月`.split(`_`),monthsShort:`1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月`.split(`_`),ordinal:function(e,t){return t===`W`?e+`周`:e+`日`},weekStart:1,yearStart:4,formats:{LT:`HH:mm`,LTS:`HH:mm:ss`,L:`YYYY/MM/DD`,LL:`YYYY年M月D日`,LLL:`YYYY年M月D日Ah点mm分`,LLLL:`YYYY年M月D日ddddAh点mm分`,l:`YYYY/M/D`,ll:`YYYY年M月D日`,lll:`YYYY年M月D日 HH:mm`,llll:`YYYY年M月D日dddd HH:mm`},relativeTime:{future:`%s内`,past:`%s前`,s:`几秒`,m:`1 分钟`,mm:`%d 分钟`,h:`1 小时`,hh:`%d 小时`,d:`1 天`,dd:`%d 天`,M:`1 个月`,MM:`%d 个月`,y:`1 年`,yy:`%d 年`},meridiem:function(e,t){var n=100*e+t;return n<600?`凌晨`:n<900?`早上`:n<1100?`上午`:n<1300?`中午`:n<1800?`下午`:`晚上`}};return n.default.locale(r,null,!0),r}))})),c=e(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r(i()):typeof define==`function`&&define.amd?define([`dayjs`],r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_locale_ru=r(n.dayjs)})(e,(function(e){function t(e){return e&&typeof e==`object`&&`default`in e?e:{default:e}}var n=t(e),r=`января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря`.split(`_`),i=`январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь`.split(`_`),a=`янв._февр._мар._апр._мая_июня_июля_авг._сент._окт._нояб._дек.`.split(`_`),o=`янв._февр._март_апр._май_июнь_июль_авг._сент._окт._нояб._дек.`.split(`_`),s=/D[oD]?(\[[^[\]]*\]|\s)+MMMM?/;function c(e,t,n){var r,i;return n===`m`?t?`минута`:`минуту`:e+` `+(r=+e,i={mm:t?`минута_минуты_минут`:`минуту_минуты_минут`,hh:`час_часа_часов`,dd:`день_дня_дней`,MM:`месяц_месяца_месяцев`,yy:`год_года_лет`}[n].split(`_`),r%10==1&&r%100!=11?i[0]:r%10>=2&&r%10<=4&&(r%100<10||r%100>=20)?i[1]:i[2])}var l=function(e,t){return s.test(t)?r[e.month()]:i[e.month()]};l.s=i,l.f=r;var u=function(e,t){return s.test(t)?a[e.month()]:o[e.month()]};u.s=o,u.f=a;var d={name:`ru`,weekdays:`воскресенье_понедельник_вторник_среда_четверг_пятница_суббота`.split(`_`),weekdaysShort:`вск_пнд_втр_срд_чтв_птн_сбт`.split(`_`),weekdaysMin:`вс_пн_вт_ср_чт_пт_сб`.split(`_`),months:l,monthsShort:u,weekStart:1,yearStart:4,formats:{LT:`H:mm`,LTS:`H:mm:ss`,L:`DD.MM.YYYY`,LL:`D MMMM YYYY г.`,LLL:`D MMMM YYYY г., H:mm`,LLLL:`dddd, D MMMM YYYY г., H:mm`},relativeTime:{future:`через %s`,past:`%s назад`,s:`несколько секунд`,m:c,mm:c,h:`час`,hh:c,d:`день`,dd:c,M:`месяц`,MM:c,y:`год`,yy:c},ordinal:function(e){return e},meridiem:function(e){return e<4?`ночи`:e<12?`утра`:e<17?`дня`:`вечера`}};return n.default.locale(d,null,!0),d}))})),l=t(i(),1),u=t(a(),1),d=t(o(),1);s(),c(),l.default.extend(d.default),l.default.extend(u.default);function f(e){return/^https?:\/\//.test(e)?e:`${window.location.protocol}//${e}`}function p(e){return/:{1,2}/.test(e)?`[${e}]`:e}function m(e,t=`en`){let n=t===`zh`?`zh-cn`:t===`ru`?`ru`:`en`;return(0,l.default)(e).locale(n).fromNow()}function h(e,t){let n=t-e,r=l.default.duration(n),i=Math.floor(r.asDays()),a=r.hours(),o=r.minutes(),s=r.seconds(),c=[];return i>0&&c.push(`${i}d`),a>0&&c.push(`${a}h`),o>0&&c.push(`${o}m`),s>0&&i===0&&c.push(`${s}s`),c.length>0?c.join(` `):`0s`}function g(e,t,n=`en`){let r=n===`zh`?`zh-cn`:n===`ru`?`ru`:`en`,i=(0,l.default)(e),a=(0,l.default)(t);return i.isSame(a,`day`)?`${i.locale(r).format(`MMM D, YYYY HH:mm`)} - ${a.locale(r).format(`HH:mm`)}`:`${i.locale(r).format(`MMM D, HH:mm`)} - ${a.locale(r).format(`MMM D, HH:mm`)}`}function _(e=``,t){let n=e.toLowerCase(),r=new Map([[`shadowsocks`,`SS`],[`shadowsocksr`,`SSR`],[`hysteria`,`HY`],[`hysteria2`,`HY2`],[`wireguard`,`WG`],[`selector`,t(`selector`)],[`urltest`,t(`urltest`)],[`fallback`,t(`fallback`)],[`loadbalance`,t(`loadbalance`)],[`direct`,t(`direct`)],[`reject`,t(`reject`)],[`rejectdrop`,t(`rejectdrop`)],[`relay`,t(`relay`)],[`pass`,t(`pass`)]]);return r.has(n)?r.get(n):n}function v(e,t){return e>t.HIGH?`text-red-500`:e>t.MEDIUM?`text-yellow-500`:e===t.NOT_CONNECTED?`text-gray`:`text-green-600`}function y(e=``){return![`selector`,`direct`,`reject`,`urltest`,`loadbalance`,`fallback`,`relay`].includes(e.toLowerCase())}function b({proxyNames:e,orderingType:t,testUrl:n,getLatencyByName:i,latencyQualityMap:a,urlForLatencyTest:o}){if(t===r.NATURAL)return e;let s=n||o;return[...e].sort((e,n)=>{let o=i(e,s),c=i(n,s);switch(t){case r.LATENCY_ASC:return o===a.NOT_CONNECTED?1:c===a.NOT_CONNECTED?-1:o-c;case r.LATENCY_DESC:return o===a.NOT_CONNECTED?1:c===a.NOT_CONNECTED?-1:c-o;case r.NAME_ASC:return e.localeCompare(n);case r.NAME_DESC:return n.localeCompare(e);default:return 0}})}function x({proxyNames:e,enabled:t,testUrl:n,getLatencyByName:r,isProxyGroup:i,latencyQualityMap:a,urlForLatencyTest:o}){let s=n||o;return t?e.filter(e=>i(e)||r(e,s)!==a.NOT_CONNECTED):e}function S(){let e=n({}),t=(t,n)=>{e.value={...e.value,[t]:n}};return{map:e,set:t,setWithCallback:async(e,n)=>{t(e,!0);try{await n()}catch{}t(e,!1)}}}function C(e){return typeof document>`u`?``:getComputedStyle(document.documentElement).getPropertyValue(e).trim()}function w(){return{baseContent:C(`--color-base-content`)||`oklch(0.746 0 0)`,base100:C(`--color-base-100`)||`oklch(0.253 0 0)`,base200:C(`--color-base-200`)||`oklch(0.232 0 0)`,base300:C(`--color-base-300`)||`oklch(0.211 0 0)`,primary:C(`--color-primary`)||`oklch(0.65 0.15 240)`,primaryContent:C(`--color-primary-content`)||`oklch(0.98 0 0)`,secondary:C(`--color-secondary`)||`oklch(0.65 0.15 300)`,secondaryContent:C(`--color-secondary-content`)||`oklch(0.98 0 0)`,accent:C(`--color-accent`)||`oklch(0.65 0.15 180)`,accentContent:C(`--color-accent-content`)||`oklch(0.98 0 0)`,neutral:C(`--color-neutral`)||`oklch(0.3 0 0)`,neutralContent:C(`--color-neutral-content`)||`oklch(0.98 0 0)`,info:C(`--color-info`)||`oklch(0.65 0.15 220)`,success:C(`--color-success`)||`oklch(0.65 0.15 140)`,warning:C(`--color-warning`)||`oklch(0.8 0.15 80)`,error:C(`--color-error`)||`oklch(0.65 0.2 25)`}}function T(){let e=w();return{textColor:e.baseContent,textColorHover:e.primaryContent,gridLineColor:e.base300,lineColor:e.base300,tickColor:e.base300,seriesColors:[e.info,e.success,e.warning,e.error],backgroundColor:e.base200}}function E(e){return e.replace(`/g,`%3E`)}export{h as a,m as c,w as d,b as f,i as h,g as i,T as l,S as m,x as n,p as o,f as p,y as r,_ as s,E as t,v as u}; \ No newline at end of file diff --git a/dashboard/public/_nuxt/NIr0cT37.js b/dashboard/public/_nuxt/DP7SiUGW.js similarity index 90% rename from dashboard/public/_nuxt/NIr0cT37.js rename to dashboard/public/_nuxt/DP7SiUGW.js index 5cca9be..3e7a08f 100644 --- a/dashboard/public/_nuxt/NIr0cT37.js +++ b/dashboard/public/_nuxt/DP7SiUGW.js @@ -1 +1 @@ -import{$ as e,Dt as t,Et as n,J as r,K as i,W as a,lt as o,st as s,ut as c}from"./DOvCTup-.js";var l=[`type`,`disabled`],u={key:0,class:`loading loading-spinner`},d=e({__name:`Button`,props:{type:{default:`button`},loading:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},icon:{},class:{}},emits:[`click`],setup(e){let d=e,f=a(()=>d.class||``);return(a,d)=>(s(),r(`button`,{type:e.type,class:t([`btn`,[e.loading?`btn-disabled`:n(f)]]),disabled:e.disabled||e.loading,onClick:d[0]||=e=>a.$emit(`click`,e)},[e.loading?(s(),r(`div`,u)):e.icon?(s(),i(c(e.icon),{key:1})):o(a.$slots,`default`,{key:2})],10,l))}}),f=Object.assign(d,{__name:`Button`});export{f as t}; \ No newline at end of file +import{$ as e,Dt as t,Et as n,J as r,K as i,W as a,lt as o,st as s,ut as c}from"./CxatB1L6.js";var l=[`type`,`disabled`],u={key:0,class:`loading loading-spinner`},d=e({__name:`Button`,props:{type:{default:`button`},loading:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},icon:{},class:{}},emits:[`click`],setup(e){let d=e,f=a(()=>d.class||``);return(a,d)=>(s(),r(`button`,{type:e.type,class:t([`btn`,[e.loading?`btn-disabled`:n(f)]]),disabled:e.disabled||e.loading,onClick:d[0]||=e=>a.$emit(`click`,e)},[e.loading?(s(),r(`div`,u)):e.icon?(s(),i(c(e.icon),{key:1})):o(a.$slots,`default`,{key:2})],10,l))}}),f=Object.assign(d,{__name:`Button`});export{f as t}; \ No newline at end of file diff --git a/dashboard/public/_nuxt/CZdbW3fS.js b/dashboard/public/_nuxt/DRJWd5jk.js similarity index 99% rename from dashboard/public/_nuxt/CZdbW3fS.js rename to dashboard/public/_nuxt/DRJWd5jk.js index 357e70b..7fc9d86 100644 --- a/dashboard/public/_nuxt/CZdbW3fS.js +++ b/dashboard/public/_nuxt/DRJWd5jk.js @@ -1 +1 @@ -import{C as e,F as t,yt as n}from"./DOvCTup-.js";import{u as r}from"./_v7-ePgP.js";import{t as i}from"./CDMImveV.js";const a={meta:!0,version:`v1.18.0`},o={port:7890,"socks-port":7891,"redir-port":0,"tproxy-port":0,"mixed-port":7893,mode:`rule`,"log-level":`info`,"allow-lan":!1,ipv6:!1,tun:{enable:!1,device:`utun`,stack:`system`,"dns-hijack":null,"auto-route":!0,"auto-detect-interface":!0,"file-descriptor":0}};function s(e,t,n=``){return{network:`tcp`,type:`HTTP Connect`,destinationIP:t,destinationPort:`443`,dnsMode:`normal`,host:e,inboundIP:`127.0.0.1`,inboundName:`mixed-in`,inboundPort:`7893`,inboundUser:``,process:n,processPath:n?`/Applications/${n}.app`:``,remoteDestination:``,sniffHost:e,sourceIP:`192.168.1.100`,sourcePort:`52341`,specialProxy:``,specialRules:``,uid:501}}function c(e,t,n,r,i){return{name:e,type:t,all:r||[],history:n?[{delay:n,time:new Date().toISOString()}]:[],udp:!0,xudp:t===`Hysteria2`||t===`VLESS`,tfo:!1,extra:{},hidden:!1,now:i||``}}function l(e,t,n){return{name:e,type:t,alive:!0,tfo:!1,udp:!0,xudp:!1,now:``,id:e,extra:{},history:n?[{delay:n,time:new Date().toISOString()}]:[]}}const u={DIRECT:c(`DIRECT`,`Direct`),REJECT:c(`REJECT`,`Reject`),"Hong Kong":c(`Hong Kong`,`Shadowsocks`,85),Japan:c(`Japan`,`Vmess`,120),Singapore:c(`Singapore`,`Trojan`,65),"United States":c(`United States`,`Hysteria2`,180),Taiwan:c(`Taiwan`,`VLESS`,95),"Auto Select":c(`Auto Select`,`URLTest`,void 0,[`Hong Kong`,`Japan`,`Singapore`,`United States`,`Taiwan`],`Singapore`),Proxy:c(`Proxy`,`Selector`,void 0,[`Auto Select`,`Hong Kong`,`Japan`,`Singapore`,`United States`,`Taiwan`,`DIRECT`],`Auto Select`),Streaming:c(`Streaming`,`Selector`,void 0,[`Proxy`,`Hong Kong`,`Japan`,`Singapore`,`Taiwan`,`DIRECT`],`Japan`),"AI Services":c(`AI Services`,`Selector`,void 0,[`Proxy`,`United States`,`Japan`,`Singapore`],`United States`)},d={"Provider A":{name:`Provider A`,type:`Proxy`,vehicleType:`HTTP`,testUrl:`https://www.gstatic.com/generate_204`,proxies:[l(`Hong Kong`,`Shadowsocks`,85),l(`Japan`,`Vmess`,120),l(`Singapore`,`Trojan`,65)],updatedAt:new Date().toISOString(),subscriptionInfo:{Upload:1024*1024*100,Download:1024*1024*500,Total:1024*1024*1024*100,Expire:Math.floor(Date.now()/1e3)+720*60*60}},"Provider B":{name:`Provider B`,type:`Proxy`,vehicleType:`File`,testUrl:`https://www.gstatic.com/generate_204`,proxies:[l(`United States`,`Hysteria2`,180),l(`Taiwan`,`VLESS`,95)],updatedAt:new Date(Date.now()-1440*60*1e3).toISOString(),subscriptionInfo:{Upload:1024*1024*50,Download:1024*1024*200,Total:1024*1024*1024*50,Expire:Math.floor(Date.now()/1e3)+1440*60*60}}},f=p();function p(){return[{type:`DOMAIN-SUFFIX`,payload:`google.com`,proxy:`Proxy`,size:156},{type:`DOMAIN-SUFFIX`,payload:`googleapis.com`,proxy:`Proxy`,size:89},{type:`DOMAIN-SUFFIX`,payload:`gstatic.com`,proxy:`Proxy`,size:234},{type:`DOMAIN-SUFFIX`,payload:`github.com`,proxy:`Proxy`,size:178},{type:`DOMAIN-SUFFIX`,payload:`githubusercontent.com`,proxy:`Proxy`,size:445},{type:`DOMAIN-SUFFIX`,payload:`openai.com`,proxy:`AI Services`,size:67},{type:`DOMAIN-SUFFIX`,payload:`anthropic.com`,proxy:`AI Services`,size:34},{type:`DOMAIN-SUFFIX`,payload:`claude.ai`,proxy:`AI Services`,size:23},{type:`DOMAIN-SUFFIX`,payload:`netflix.com`,proxy:`Streaming`,size:512},{type:`DOMAIN-SUFFIX`,payload:`nflxvideo.net`,proxy:`Streaming`,size:1024},{type:`DOMAIN-SUFFIX`,payload:`youtube.com`,proxy:`Streaming`,size:789},{type:`DOMAIN-SUFFIX`,payload:`ytimg.com`,proxy:`Streaming`,size:456},{type:`DOMAIN-SUFFIX`,payload:`googlevideo.com`,proxy:`Streaming`,size:2048},{type:`DOMAIN-SUFFIX`,payload:`twitter.com`,proxy:`Proxy`,size:345},{type:`DOMAIN-SUFFIX`,payload:`x.com`,proxy:`Proxy`,size:123},{type:`DOMAIN-SUFFIX`,payload:`twimg.com`,proxy:`Proxy`,size:567},{type:`DOMAIN-SUFFIX`,payload:`facebook.com`,proxy:`Proxy`,size:890},{type:`DOMAIN-SUFFIX`,payload:`fbcdn.net`,proxy:`Proxy`,size:1234},{type:`DOMAIN-SUFFIX`,payload:`instagram.com`,proxy:`Proxy`,size:678},{type:`DOMAIN-SUFFIX`,payload:`cdninstagram.com`,proxy:`Proxy`,size:901},{type:`DOMAIN-SUFFIX`,payload:`telegram.org`,proxy:`Proxy`,size:234},{type:`DOMAIN-SUFFIX`,payload:`t.me`,proxy:`Proxy`,size:56},{type:`DOMAIN-SUFFIX`,payload:`whatsapp.com`,proxy:`Proxy`,size:345},{type:`DOMAIN-SUFFIX`,payload:`discord.com`,proxy:`Proxy`,size:456},{type:`DOMAIN-SUFFIX`,payload:`discordapp.com`,proxy:`Proxy`,size:567},{type:`DOMAIN-SUFFIX`,payload:`spotify.com`,proxy:`Streaming`,size:678},{type:`DOMAIN-SUFFIX`,payload:`scdn.co`,proxy:`Streaming`,size:789},{type:`DOMAIN-SUFFIX`,payload:`twitch.tv`,proxy:`Streaming`,size:890},{type:`DOMAIN-SUFFIX`,payload:`ttvnw.net`,proxy:`Streaming`,size:1567},{type:`DOMAIN-SUFFIX`,payload:`reddit.com`,proxy:`Proxy`,size:234},{type:`DOMAIN-SUFFIX`,payload:`redd.it`,proxy:`Proxy`,size:123},{type:`DOMAIN-SUFFIX`,payload:`medium.com`,proxy:`Proxy`,size:345},{type:`DOMAIN-SUFFIX`,payload:`wikipedia.org`,proxy:`Proxy`,size:456},{type:`DOMAIN-SUFFIX`,payload:`wikimedia.org`,proxy:`Proxy`,size:567},{type:`DOMAIN-KEYWORD`,payload:`google`,proxy:`Proxy`,size:12},{type:`DOMAIN-KEYWORD`,payload:`facebook`,proxy:`Proxy`,size:8},{type:`DOMAIN-KEYWORD`,payload:`youtube`,proxy:`Streaming`,size:6},{type:`DOMAIN-KEYWORD`,payload:`twitter`,proxy:`Proxy`,size:5},{type:`DOMAIN-KEYWORD`,payload:`netflix`,proxy:`Streaming`,size:4},{type:`GEOIP`,payload:`CN`,proxy:`DIRECT`,size:8945},{type:`GEOIP`,payload:`PRIVATE`,proxy:`DIRECT`,size:156},{type:`IP-CIDR`,payload:`192.168.0.0/16`,proxy:`DIRECT`,size:1},{type:`IP-CIDR`,payload:`10.0.0.0/8`,proxy:`DIRECT`,size:1},{type:`IP-CIDR`,payload:`172.16.0.0/12`,proxy:`DIRECT`,size:1},{type:`IP-CIDR`,payload:`127.0.0.0/8`,proxy:`DIRECT`,size:1},{type:`IP-CIDR`,payload:`100.64.0.0/10`,proxy:`DIRECT`,size:1},{type:`IP-CIDR6`,payload:`::1/128`,proxy:`DIRECT`,size:1},{type:`IP-CIDR6`,payload:`fc00::/7`,proxy:`DIRECT`,size:1},{type:`IP-CIDR6`,payload:`fe80::/10`,proxy:`DIRECT`,size:1},{type:`PROCESS-NAME`,payload:`Telegram`,proxy:`Proxy`,size:1},{type:`PROCESS-NAME`,payload:`Discord`,proxy:`Proxy`,size:1},{type:`PROCESS-NAME`,payload:`Spotify`,proxy:`Streaming`,size:1},{type:`RULE-SET`,payload:`reject`,proxy:`REJECT`,size:1234},{type:`RULE-SET`,payload:`direct`,proxy:`DIRECT`,size:5678},{type:`RULE-SET`,payload:`proxy`,proxy:`Proxy`,size:2345},{type:`MATCH`,payload:``,proxy:`Proxy`,size:1}]}const m={reject:{name:`reject`,type:`Rule`,behavior:`domain`,ruleCount:1234,updatedAt:new Date().toISOString(),vehicleType:`HTTP`,format:`yaml`},direct:{name:`direct`,type:`Rule`,behavior:`domain`,ruleCount:5678,updatedAt:new Date(Date.now()-720*60*1e3).toISOString(),vehicleType:`HTTP`,format:`yaml`},proxy:{name:`proxy`,type:`Rule`,behavior:`classical`,ruleCount:2345,updatedAt:new Date(Date.now()-360*60*1e3).toISOString(),vehicleType:`HTTP`,format:`yaml`}},h=g();function g(){let e=[{host:`www.google.com`,ip:`142.250.185.14`,proxy:`Proxy`,rule:`DOMAIN-SUFFIX`,rulePayload:`google.com`},{host:`github.com`,ip:`140.82.121.4`,proxy:`Proxy`,rule:`DOMAIN-SUFFIX`,rulePayload:`github.com`},{host:`api.github.com`,ip:`140.82.121.6`,proxy:`Proxy`,rule:`DOMAIN-SUFFIX`,rulePayload:`github.com`},{host:`raw.githubusercontent.com`,ip:`185.199.108.133`,proxy:`Proxy`,rule:`DOMAIN-SUFFIX`,rulePayload:`githubusercontent.com`},{host:`www.youtube.com`,ip:`172.217.14.110`,proxy:`Streaming`,rule:`DOMAIN-SUFFIX`,rulePayload:`youtube.com`},{host:`i.ytimg.com`,ip:`172.217.14.118`,proxy:`Streaming`,rule:`DOMAIN-SUFFIX`,rulePayload:`ytimg.com`},{host:`api.openai.com`,ip:`104.18.12.191`,proxy:`AI Services`,rule:`DOMAIN-SUFFIX`,rulePayload:`openai.com`},{host:`chat.openai.com`,ip:`104.18.13.191`,proxy:`AI Services`,rule:`DOMAIN-SUFFIX`,rulePayload:`openai.com`},{host:`api.anthropic.com`,ip:`104.18.32.47`,proxy:`AI Services`,rule:`DOMAIN-SUFFIX`,rulePayload:`anthropic.com`},{host:`claude.ai`,ip:`104.18.33.47`,proxy:`AI Services`,rule:`DOMAIN-SUFFIX`,rulePayload:`claude.ai`},{host:`www.netflix.com`,ip:`54.74.73.31`,proxy:`Streaming`,rule:`DOMAIN-SUFFIX`,rulePayload:`netflix.com`},{host:`twitter.com`,ip:`104.244.42.1`,proxy:`Proxy`,rule:`DOMAIN-SUFFIX`,rulePayload:`twitter.com`},{host:`x.com`,ip:`104.244.42.65`,proxy:`Proxy`,rule:`DOMAIN-SUFFIX`,rulePayload:`x.com`},{host:`www.facebook.com`,ip:`157.240.1.35`,proxy:`Proxy`,rule:`DOMAIN-SUFFIX`,rulePayload:`facebook.com`},{host:`www.instagram.com`,ip:`157.240.1.174`,proxy:`Proxy`,rule:`DOMAIN-SUFFIX`,rulePayload:`instagram.com`},{host:`web.telegram.org`,ip:`149.154.167.99`,proxy:`Proxy`,rule:`DOMAIN-SUFFIX`,rulePayload:`telegram.org`},{host:`discord.com`,ip:`162.159.130.234`,proxy:`Proxy`,rule:`DOMAIN-SUFFIX`,rulePayload:`discord.com`},{host:`cdn.discordapp.com`,ip:`162.159.133.234`,proxy:`Proxy`,rule:`DOMAIN-SUFFIX`,rulePayload:`discordapp.com`},{host:`open.spotify.com`,ip:`35.186.224.25`,proxy:`Streaming`,rule:`DOMAIN-SUFFIX`,rulePayload:`spotify.com`},{host:`www.twitch.tv`,ip:`151.101.2.167`,proxy:`Streaming`,rule:`DOMAIN-SUFFIX`,rulePayload:`twitch.tv`},{host:`www.reddit.com`,ip:`151.101.1.140`,proxy:`Proxy`,rule:`DOMAIN-SUFFIX`,rulePayload:`reddit.com`},{host:`medium.com`,ip:`162.159.152.4`,proxy:`Proxy`,rule:`DOMAIN-SUFFIX`,rulePayload:`medium.com`},{host:`en.wikipedia.org`,ip:`208.80.154.224`,proxy:`Proxy`,rule:`DOMAIN-SUFFIX`,rulePayload:`wikipedia.org`},{host:`www.whatsapp.com`,ip:`157.240.1.60`,proxy:`Proxy`,rule:`DOMAIN-SUFFIX`,rulePayload:`whatsapp.com`},{host:`www.baidu.com`,ip:`110.242.68.66`,proxy:`DIRECT`,rule:`GEOIP`,rulePayload:`CN`},{host:`www.taobao.com`,ip:`140.205.94.189`,proxy:`DIRECT`,rule:`GEOIP`,rulePayload:`CN`},{host:`www.bilibili.com`,ip:`120.92.78.97`,proxy:`DIRECT`,rule:`GEOIP`,rulePayload:`CN`},{host:`www.zhihu.com`,ip:`103.41.167.234`,proxy:`DIRECT`,rule:`GEOIP`,rulePayload:`CN`}],t=[`Google Chrome`,`Safari`,`Firefox`,`Visual Studio Code`,`Electron`,`node`,`curl`,`Telegram`,`Discord`,`Spotify`],n=[[`Proxy`,`Auto Select`,`Hong Kong`],[`Proxy`,`Auto Select`,`Singapore`],[`Proxy`,`Auto Select`,`Japan`],[`Streaming`,`Japan`],[`Streaming`,`Hong Kong`],[`AI Services`,`United States`],[`DIRECT`]],r=[];for(let i=0;i<60;i++){let a=e[i%e.length],o=t[Math.floor(Math.random()*t.length)],c=a.proxy===`DIRECT`?[`DIRECT`]:n[Math.floor(Math.random()*(n.length-1))],l=Math.random()>.85;r.push({id:`conn-${i+1}`,metadata:{...s(a.host,a.ip,o),network:l?`udp`:`tcp`,type:l?`QUIC`:`HTTP Connect`,sourcePort:String(5e4+i)},upload:Math.floor(Math.random()*1024*1024),download:Math.floor(Math.random()*1024*1024*10),downloadSpeed:Math.floor(Math.random()*1024*500),uploadSpeed:Math.floor(Math.random()*1024*100),start:new Date(Date.now()-Math.floor(Math.random()*6e5)).toISOString(),chains:c,rule:a.rule,rulePayload:a.rulePayload})}return r}const _=v();function v(){let e=[{type:r.Info,template:`[DNS] resolve {host} to {ip}`},{type:r.Info,template:`[TCP] {srcIP}:{srcPort} --> {host}:{destPort} match {rule}({payload}) using {proxy}`},{type:r.Info,template:`[UDP] {srcIP}:{srcPort} --> {host}:{destPort} match {rule}({payload}) using {proxy}`},{type:r.Debug,template:`[Proxy] {node} latency: {latency}ms`},{type:r.Warning,template:`[UDP] connection to {ip}:{destPort} timeout`},{type:r.Info,template:`[TUN] {srcIP} --> {host} using {proxy}`},{type:r.Debug,template:`[DNS] cache hit for {host}`},{type:r.Info,template:`[QUIC] {srcIP}:{srcPort} --> {host}:{destPort} match {rule}({payload}) using {proxy}`}],t=[`www.google.com`,`github.com`,`api.openai.com`,`www.youtube.com`,`twitter.com`,`www.netflix.com`,`discord.com`,`www.twitch.tv`,`open.spotify.com`,`www.reddit.com`,`medium.com`,`www.facebook.com`,`www.instagram.com`,`web.telegram.org`,`claude.ai`,`www.baidu.com`,`www.bilibili.com`],n=[`142.250.185.14`,`140.82.121.4`,`104.18.12.191`,`172.217.14.110`,`104.244.42.1`,`54.74.73.31`,`162.159.130.234`,`151.101.2.167`,`35.186.224.25`,`151.101.1.140`,`162.159.152.4`,`157.240.1.35`,`157.240.1.174`,`149.154.167.99`,`104.18.33.47`,`110.242.68.66`,`120.92.78.97`],i=[`Hong Kong`,`Singapore`,`Japan`,`United States`,`Taiwan`],a=[`Proxy[Auto Select(Hong Kong)]`,`Proxy[Auto Select(Singapore)]`,`Streaming[Japan]`,`AI Services[United States]`,`DIRECT`],o=[`DOMAIN-SUFFIX`,`DOMAIN-KEYWORD`,`GEOIP`,`IP-CIDR`,`MATCH`],s=[];for(let r=0;r<60;r++){let c=e[r%e.length],l=t[Math.floor(Math.random()*t.length)],u=n[Math.floor(Math.random()*n.length)],d=i[Math.floor(Math.random()*i.length)],f=a[Math.floor(Math.random()*a.length)],p=o[Math.floor(Math.random()*o.length)],m=c.template.replace(`{host}`,l).replace(`{ip}`,u).replace(`{srcIP}`,`192.168.1.100`).replace(`{srcPort}`,String(5e4+r)).replace(`{destPort}`,`443`).replace(`{node}`,d).replace(`{latency}`,String(50+Math.floor(Math.random()*150))).replace(`{proxy}`,f).replace(`{rule}`,p).replace(`{payload}`,l);s.push({type:c.type,payload:m})}return s}const y={up:125e6,down:85e7},b={inuse:45*1024*1024,oslimit:0};function x(){return{mockVersion:a,mockConfig:o,mockProxies:u,mockProxyProviders:d,mockRules:f,mockRuleProviders:m,mockConnections:h,mockLogs:_,mockTrafficStats:y,mockMemory:b}}function S(){return t().public.mockMode===!0}function C(e){let n=t().public.mockMode===!0?x():null;if(!n)return{};let r=e.startsWith(`/`)?e.slice(1):e;if(r===`version`)return n.mockVersion;if(r===`configs`)return n.mockConfig;if(r===`proxies`)return{proxies:n.mockProxies};if(r===`providers/proxies`)return{providers:n.mockProxyProviders};if(r===`rules`){let e={};return n.mockRules.forEach((t,n)=>{e[`rule-${n}`]=t}),{rules:e}}if(r===`providers/rules`)return{providers:n.mockRuleProviders};if(r===`connections`)return{connections:n.mockConnections,downloadTotal:85e7,uploadTotal:125e6};if(r===`group`)return{groups:{}};if(r.startsWith(`proxies/`)){let e=decodeURIComponent(r.replace(`proxies/`,``));return n.mockProxies[e]||{}}if(r.startsWith(`providers/proxies/`)){let e=decodeURIComponent(r.replace(`providers/proxies/`,``));return n.mockProxyProviders[e]||{}}return{}}function w(){let t=e().currentEndpoint;if(S()){let e=async e=>C(e);return{get:t=>({json:()=>e(t)}),post:t=>({json:()=>e(t)}),put:t=>({json:()=>e(t)}),patch:t=>({json:()=>e(t)}),delete:t=>({json:()=>e(t)})}}if(!t)return i.create({});let n=new Headers;return t.secret&&n.set(`Authorization`,`Bearer ${t.secret}`),i.create({prefixUrl:t.url,headers:n})}function T(){let e=new Headers;return i.create({prefixUrl:`https://api.github.com`,headers:e})}function E(e,t){return i.get(e.endsWith(`/`)?`${e}version`:`${e}/version`,{headers:t?{Authorization:`Bearer ${t}`}:{}}).then(({ok:e})=>e).catch(e=>(console.error(e),!1))}function D(){return w().delete(`connections`)}function O(e){return w().delete(`connections/${e}`)}function k(){return w().get(`providers/proxies`).json()}function A(){return w().get(`proxies`).json()}function j(e){return w().put(`providers/proxies/${encodeURIComponent(e)}`)}function M(e){return w().get(`providers/proxies/${encodeURIComponent(e)}/healthcheck`,{timeout:20*1e3}).json()}function N(e,t){return w().put(`proxies/${encodeURIComponent(e)}`,{body:JSON.stringify({name:t})})}function P(e,t,n,r){let i=w();return t===``?i.get(`proxies/${encodeURIComponent(e)}/delay`,{searchParams:{url:n,timeout:r}}).json():M(t).then(t=>({delay:t[e]??0}))}function F(e,t,n){return w().get(`group/${encodeURIComponent(e)}/delay`,{searchParams:{url:t,timeout:n}}).json()}function I(){let e=n(!1),t=n(!1),r=n(!1),i=n(!1),a=n(!1),o=n(!1),s=n(!1);return{reloadingConfigFile:e,updatingGEODatabases:t,flushingFakeIPData:r,flushingDNSCache:i,upgradingBackend:a,upgradingUI:o,restartingBackend:s,reloadConfigFileAPI:async()=>{let t=w();e.value=!0;try{await t.put(`configs`,{searchParams:{force:!0},json:{path:``,payload:``}})}catch{}e.value=!1},flushFakeIPDataAPI:async()=>{let e=w();r.value=!0;try{await e.post(`cache/fakeip/flush`)}catch{}r.value=!1},flushDNSCacheAPI:async()=>{let e=w();i.value=!0;try{await e.post(`cache/dns/flush`)}catch{}i.value=!1},updateGEODatabasesAPI:async()=>{let e=w();t.value=!0;try{await e.post(`configs/geo`)}catch{}t.value=!1},upgradeBackendAPI:async()=>{let e=w();a.value=!0;try{await e.post(`upgrade`)}catch{}a.value=!1},upgradeUIAPI:async()=>{let e=w();o.value=!0;try{await e.post(`upgrade/ui`)}catch{}o.value=!1},restartBackendAPI:async()=>{let e=w();s.value=!0;try{await e.post(`restart`)}catch{}s.value=!1}}}async function L(e){let{tag_name:t,body:n}=await T().get(`repos/MetaCubeX/metacubexd/releases/latest`).json();return{isUpdateAvailable:t!==e,changelog:n}}async function R(e){let t=T(),n=/(alpha|beta|meta)-?(\w+)/.exec(e);if(!n)return{isUpdateAvailable:!1};let r=n[2]||``,i=n[1]||``,a=async e=>{let{assets:n,body:i}=await t.get(`repos/MetaCubeX/mihomo/${e}`).json();return{isUpdateAvailable:!n.some(({name:e})=>e.includes(r)),changelog:i}};return i===`meta`?await a(`releases/latest`):i===`alpha`?await a(`releases/tags/Prerelease-Alpha`):{isUpdateAvailable:!1}}async function z(e,t=10){return(await T().get(`repos/MetaCubeX/metacubexd/releases`,{searchParams:{per_page:t}}).json()).map(t=>({version:t.tag_name,changelog:t.body,publishedAt:t.published_at,isCurrent:t.tag_name===e}))}async function B(e,t=10){let n=T(),r=`repos/MetaCubeX/mihomo`,i=/(alpha|beta|meta)-?(\w+)/.exec(e);if(!i)return[];let a=i[1]||``,o=i[2]||``,s=[];return a===`meta`?(s=await n.get(`${r}/releases`,{searchParams:{per_page:t}}).json(),s=s.filter(e=>!e.tag_name.includes(`Alpha`)&&!e.tag_name.includes(`Prerelease`))):a===`alpha`&&(s=await n.get(`${r}/releases`,{searchParams:{per_page:t*2}}).json(),s=s.filter(e=>e.tag_name.includes(`Alpha`)||e.tag_name.includes(`Prerelease`)).slice(0,t)),s.map(e=>({version:e.tag_name,changelog:e.body,publishedAt:e.published_at,isCurrent:e.assets?.some(({name:e})=>e.includes(o))??!1}))}export{w as _,B as a,k as c,P as d,M as f,S as g,I as h,O as i,L as l,j as m,E as n,z as o,N as p,D as r,A as s,R as t,F as u,x as v}; \ No newline at end of file +import{C as e,F as t,yt as n}from"./CxatB1L6.js";import{u as r}from"./_v7-ePgP.js";import{t as i}from"./CDMImveV.js";const a={meta:!0,version:`v1.18.0`},o={port:7890,"socks-port":7891,"redir-port":0,"tproxy-port":0,"mixed-port":7893,mode:`rule`,"log-level":`info`,"allow-lan":!1,ipv6:!1,tun:{enable:!1,device:`utun`,stack:`system`,"dns-hijack":null,"auto-route":!0,"auto-detect-interface":!0,"file-descriptor":0}};function s(e,t,n=``){return{network:`tcp`,type:`HTTP Connect`,destinationIP:t,destinationPort:`443`,dnsMode:`normal`,host:e,inboundIP:`127.0.0.1`,inboundName:`mixed-in`,inboundPort:`7893`,inboundUser:``,process:n,processPath:n?`/Applications/${n}.app`:``,remoteDestination:``,sniffHost:e,sourceIP:`192.168.1.100`,sourcePort:`52341`,specialProxy:``,specialRules:``,uid:501}}function c(e,t,n,r,i){return{name:e,type:t,all:r||[],history:n?[{delay:n,time:new Date().toISOString()}]:[],udp:!0,xudp:t===`Hysteria2`||t===`VLESS`,tfo:!1,extra:{},hidden:!1,now:i||``}}function l(e,t,n){return{name:e,type:t,alive:!0,tfo:!1,udp:!0,xudp:!1,now:``,id:e,extra:{},history:n?[{delay:n,time:new Date().toISOString()}]:[]}}const u={DIRECT:c(`DIRECT`,`Direct`),REJECT:c(`REJECT`,`Reject`),"Hong Kong":c(`Hong Kong`,`Shadowsocks`,85),Japan:c(`Japan`,`Vmess`,120),Singapore:c(`Singapore`,`Trojan`,65),"United States":c(`United States`,`Hysteria2`,180),Taiwan:c(`Taiwan`,`VLESS`,95),"Auto Select":c(`Auto Select`,`URLTest`,void 0,[`Hong Kong`,`Japan`,`Singapore`,`United States`,`Taiwan`],`Singapore`),Proxy:c(`Proxy`,`Selector`,void 0,[`Auto Select`,`Hong Kong`,`Japan`,`Singapore`,`United States`,`Taiwan`,`DIRECT`],`Auto Select`),Streaming:c(`Streaming`,`Selector`,void 0,[`Proxy`,`Hong Kong`,`Japan`,`Singapore`,`Taiwan`,`DIRECT`],`Japan`),"AI Services":c(`AI Services`,`Selector`,void 0,[`Proxy`,`United States`,`Japan`,`Singapore`],`United States`)},d={"Provider A":{name:`Provider A`,type:`Proxy`,vehicleType:`HTTP`,testUrl:`https://www.gstatic.com/generate_204`,proxies:[l(`Hong Kong`,`Shadowsocks`,85),l(`Japan`,`Vmess`,120),l(`Singapore`,`Trojan`,65)],updatedAt:new Date().toISOString(),subscriptionInfo:{Upload:1024*1024*100,Download:1024*1024*500,Total:1024*1024*1024*100,Expire:Math.floor(Date.now()/1e3)+720*60*60}},"Provider B":{name:`Provider B`,type:`Proxy`,vehicleType:`File`,testUrl:`https://www.gstatic.com/generate_204`,proxies:[l(`United States`,`Hysteria2`,180),l(`Taiwan`,`VLESS`,95)],updatedAt:new Date(Date.now()-1440*60*1e3).toISOString(),subscriptionInfo:{Upload:1024*1024*50,Download:1024*1024*200,Total:1024*1024*1024*50,Expire:Math.floor(Date.now()/1e3)+1440*60*60}}},f=p();function p(){return[{type:`DOMAIN-SUFFIX`,payload:`google.com`,proxy:`Proxy`,size:156},{type:`DOMAIN-SUFFIX`,payload:`googleapis.com`,proxy:`Proxy`,size:89},{type:`DOMAIN-SUFFIX`,payload:`gstatic.com`,proxy:`Proxy`,size:234},{type:`DOMAIN-SUFFIX`,payload:`github.com`,proxy:`Proxy`,size:178},{type:`DOMAIN-SUFFIX`,payload:`githubusercontent.com`,proxy:`Proxy`,size:445},{type:`DOMAIN-SUFFIX`,payload:`openai.com`,proxy:`AI Services`,size:67},{type:`DOMAIN-SUFFIX`,payload:`anthropic.com`,proxy:`AI Services`,size:34},{type:`DOMAIN-SUFFIX`,payload:`claude.ai`,proxy:`AI Services`,size:23},{type:`DOMAIN-SUFFIX`,payload:`netflix.com`,proxy:`Streaming`,size:512},{type:`DOMAIN-SUFFIX`,payload:`nflxvideo.net`,proxy:`Streaming`,size:1024},{type:`DOMAIN-SUFFIX`,payload:`youtube.com`,proxy:`Streaming`,size:789},{type:`DOMAIN-SUFFIX`,payload:`ytimg.com`,proxy:`Streaming`,size:456},{type:`DOMAIN-SUFFIX`,payload:`googlevideo.com`,proxy:`Streaming`,size:2048},{type:`DOMAIN-SUFFIX`,payload:`twitter.com`,proxy:`Proxy`,size:345},{type:`DOMAIN-SUFFIX`,payload:`x.com`,proxy:`Proxy`,size:123},{type:`DOMAIN-SUFFIX`,payload:`twimg.com`,proxy:`Proxy`,size:567},{type:`DOMAIN-SUFFIX`,payload:`facebook.com`,proxy:`Proxy`,size:890},{type:`DOMAIN-SUFFIX`,payload:`fbcdn.net`,proxy:`Proxy`,size:1234},{type:`DOMAIN-SUFFIX`,payload:`instagram.com`,proxy:`Proxy`,size:678},{type:`DOMAIN-SUFFIX`,payload:`cdninstagram.com`,proxy:`Proxy`,size:901},{type:`DOMAIN-SUFFIX`,payload:`telegram.org`,proxy:`Proxy`,size:234},{type:`DOMAIN-SUFFIX`,payload:`t.me`,proxy:`Proxy`,size:56},{type:`DOMAIN-SUFFIX`,payload:`whatsapp.com`,proxy:`Proxy`,size:345},{type:`DOMAIN-SUFFIX`,payload:`discord.com`,proxy:`Proxy`,size:456},{type:`DOMAIN-SUFFIX`,payload:`discordapp.com`,proxy:`Proxy`,size:567},{type:`DOMAIN-SUFFIX`,payload:`spotify.com`,proxy:`Streaming`,size:678},{type:`DOMAIN-SUFFIX`,payload:`scdn.co`,proxy:`Streaming`,size:789},{type:`DOMAIN-SUFFIX`,payload:`twitch.tv`,proxy:`Streaming`,size:890},{type:`DOMAIN-SUFFIX`,payload:`ttvnw.net`,proxy:`Streaming`,size:1567},{type:`DOMAIN-SUFFIX`,payload:`reddit.com`,proxy:`Proxy`,size:234},{type:`DOMAIN-SUFFIX`,payload:`redd.it`,proxy:`Proxy`,size:123},{type:`DOMAIN-SUFFIX`,payload:`medium.com`,proxy:`Proxy`,size:345},{type:`DOMAIN-SUFFIX`,payload:`wikipedia.org`,proxy:`Proxy`,size:456},{type:`DOMAIN-SUFFIX`,payload:`wikimedia.org`,proxy:`Proxy`,size:567},{type:`DOMAIN-KEYWORD`,payload:`google`,proxy:`Proxy`,size:12},{type:`DOMAIN-KEYWORD`,payload:`facebook`,proxy:`Proxy`,size:8},{type:`DOMAIN-KEYWORD`,payload:`youtube`,proxy:`Streaming`,size:6},{type:`DOMAIN-KEYWORD`,payload:`twitter`,proxy:`Proxy`,size:5},{type:`DOMAIN-KEYWORD`,payload:`netflix`,proxy:`Streaming`,size:4},{type:`GEOIP`,payload:`CN`,proxy:`DIRECT`,size:8945},{type:`GEOIP`,payload:`PRIVATE`,proxy:`DIRECT`,size:156},{type:`IP-CIDR`,payload:`192.168.0.0/16`,proxy:`DIRECT`,size:1},{type:`IP-CIDR`,payload:`10.0.0.0/8`,proxy:`DIRECT`,size:1},{type:`IP-CIDR`,payload:`172.16.0.0/12`,proxy:`DIRECT`,size:1},{type:`IP-CIDR`,payload:`127.0.0.0/8`,proxy:`DIRECT`,size:1},{type:`IP-CIDR`,payload:`100.64.0.0/10`,proxy:`DIRECT`,size:1},{type:`IP-CIDR6`,payload:`::1/128`,proxy:`DIRECT`,size:1},{type:`IP-CIDR6`,payload:`fc00::/7`,proxy:`DIRECT`,size:1},{type:`IP-CIDR6`,payload:`fe80::/10`,proxy:`DIRECT`,size:1},{type:`PROCESS-NAME`,payload:`Telegram`,proxy:`Proxy`,size:1},{type:`PROCESS-NAME`,payload:`Discord`,proxy:`Proxy`,size:1},{type:`PROCESS-NAME`,payload:`Spotify`,proxy:`Streaming`,size:1},{type:`RULE-SET`,payload:`reject`,proxy:`REJECT`,size:1234},{type:`RULE-SET`,payload:`direct`,proxy:`DIRECT`,size:5678},{type:`RULE-SET`,payload:`proxy`,proxy:`Proxy`,size:2345},{type:`MATCH`,payload:``,proxy:`Proxy`,size:1}]}const m={reject:{name:`reject`,type:`Rule`,behavior:`domain`,ruleCount:1234,updatedAt:new Date().toISOString(),vehicleType:`HTTP`,format:`yaml`},direct:{name:`direct`,type:`Rule`,behavior:`domain`,ruleCount:5678,updatedAt:new Date(Date.now()-720*60*1e3).toISOString(),vehicleType:`HTTP`,format:`yaml`},proxy:{name:`proxy`,type:`Rule`,behavior:`classical`,ruleCount:2345,updatedAt:new Date(Date.now()-360*60*1e3).toISOString(),vehicleType:`HTTP`,format:`yaml`}},h=g();function g(){let e=[{host:`www.google.com`,ip:`142.250.185.14`,proxy:`Proxy`,rule:`DOMAIN-SUFFIX`,rulePayload:`google.com`},{host:`github.com`,ip:`140.82.121.4`,proxy:`Proxy`,rule:`DOMAIN-SUFFIX`,rulePayload:`github.com`},{host:`api.github.com`,ip:`140.82.121.6`,proxy:`Proxy`,rule:`DOMAIN-SUFFIX`,rulePayload:`github.com`},{host:`raw.githubusercontent.com`,ip:`185.199.108.133`,proxy:`Proxy`,rule:`DOMAIN-SUFFIX`,rulePayload:`githubusercontent.com`},{host:`www.youtube.com`,ip:`172.217.14.110`,proxy:`Streaming`,rule:`DOMAIN-SUFFIX`,rulePayload:`youtube.com`},{host:`i.ytimg.com`,ip:`172.217.14.118`,proxy:`Streaming`,rule:`DOMAIN-SUFFIX`,rulePayload:`ytimg.com`},{host:`api.openai.com`,ip:`104.18.12.191`,proxy:`AI Services`,rule:`DOMAIN-SUFFIX`,rulePayload:`openai.com`},{host:`chat.openai.com`,ip:`104.18.13.191`,proxy:`AI Services`,rule:`DOMAIN-SUFFIX`,rulePayload:`openai.com`},{host:`api.anthropic.com`,ip:`104.18.32.47`,proxy:`AI Services`,rule:`DOMAIN-SUFFIX`,rulePayload:`anthropic.com`},{host:`claude.ai`,ip:`104.18.33.47`,proxy:`AI Services`,rule:`DOMAIN-SUFFIX`,rulePayload:`claude.ai`},{host:`www.netflix.com`,ip:`54.74.73.31`,proxy:`Streaming`,rule:`DOMAIN-SUFFIX`,rulePayload:`netflix.com`},{host:`twitter.com`,ip:`104.244.42.1`,proxy:`Proxy`,rule:`DOMAIN-SUFFIX`,rulePayload:`twitter.com`},{host:`x.com`,ip:`104.244.42.65`,proxy:`Proxy`,rule:`DOMAIN-SUFFIX`,rulePayload:`x.com`},{host:`www.facebook.com`,ip:`157.240.1.35`,proxy:`Proxy`,rule:`DOMAIN-SUFFIX`,rulePayload:`facebook.com`},{host:`www.instagram.com`,ip:`157.240.1.174`,proxy:`Proxy`,rule:`DOMAIN-SUFFIX`,rulePayload:`instagram.com`},{host:`web.telegram.org`,ip:`149.154.167.99`,proxy:`Proxy`,rule:`DOMAIN-SUFFIX`,rulePayload:`telegram.org`},{host:`discord.com`,ip:`162.159.130.234`,proxy:`Proxy`,rule:`DOMAIN-SUFFIX`,rulePayload:`discord.com`},{host:`cdn.discordapp.com`,ip:`162.159.133.234`,proxy:`Proxy`,rule:`DOMAIN-SUFFIX`,rulePayload:`discordapp.com`},{host:`open.spotify.com`,ip:`35.186.224.25`,proxy:`Streaming`,rule:`DOMAIN-SUFFIX`,rulePayload:`spotify.com`},{host:`www.twitch.tv`,ip:`151.101.2.167`,proxy:`Streaming`,rule:`DOMAIN-SUFFIX`,rulePayload:`twitch.tv`},{host:`www.reddit.com`,ip:`151.101.1.140`,proxy:`Proxy`,rule:`DOMAIN-SUFFIX`,rulePayload:`reddit.com`},{host:`medium.com`,ip:`162.159.152.4`,proxy:`Proxy`,rule:`DOMAIN-SUFFIX`,rulePayload:`medium.com`},{host:`en.wikipedia.org`,ip:`208.80.154.224`,proxy:`Proxy`,rule:`DOMAIN-SUFFIX`,rulePayload:`wikipedia.org`},{host:`www.whatsapp.com`,ip:`157.240.1.60`,proxy:`Proxy`,rule:`DOMAIN-SUFFIX`,rulePayload:`whatsapp.com`},{host:`www.baidu.com`,ip:`110.242.68.66`,proxy:`DIRECT`,rule:`GEOIP`,rulePayload:`CN`},{host:`www.taobao.com`,ip:`140.205.94.189`,proxy:`DIRECT`,rule:`GEOIP`,rulePayload:`CN`},{host:`www.bilibili.com`,ip:`120.92.78.97`,proxy:`DIRECT`,rule:`GEOIP`,rulePayload:`CN`},{host:`www.zhihu.com`,ip:`103.41.167.234`,proxy:`DIRECT`,rule:`GEOIP`,rulePayload:`CN`}],t=[`Google Chrome`,`Safari`,`Firefox`,`Visual Studio Code`,`Electron`,`node`,`curl`,`Telegram`,`Discord`,`Spotify`],n=[[`Proxy`,`Auto Select`,`Hong Kong`],[`Proxy`,`Auto Select`,`Singapore`],[`Proxy`,`Auto Select`,`Japan`],[`Streaming`,`Japan`],[`Streaming`,`Hong Kong`],[`AI Services`,`United States`],[`DIRECT`]],r=[];for(let i=0;i<60;i++){let a=e[i%e.length],o=t[Math.floor(Math.random()*t.length)],c=a.proxy===`DIRECT`?[`DIRECT`]:n[Math.floor(Math.random()*(n.length-1))],l=Math.random()>.85;r.push({id:`conn-${i+1}`,metadata:{...s(a.host,a.ip,o),network:l?`udp`:`tcp`,type:l?`QUIC`:`HTTP Connect`,sourcePort:String(5e4+i)},upload:Math.floor(Math.random()*1024*1024),download:Math.floor(Math.random()*1024*1024*10),downloadSpeed:Math.floor(Math.random()*1024*500),uploadSpeed:Math.floor(Math.random()*1024*100),start:new Date(Date.now()-Math.floor(Math.random()*6e5)).toISOString(),chains:c,rule:a.rule,rulePayload:a.rulePayload})}return r}const _=v();function v(){let e=[{type:r.Info,template:`[DNS] resolve {host} to {ip}`},{type:r.Info,template:`[TCP] {srcIP}:{srcPort} --> {host}:{destPort} match {rule}({payload}) using {proxy}`},{type:r.Info,template:`[UDP] {srcIP}:{srcPort} --> {host}:{destPort} match {rule}({payload}) using {proxy}`},{type:r.Debug,template:`[Proxy] {node} latency: {latency}ms`},{type:r.Warning,template:`[UDP] connection to {ip}:{destPort} timeout`},{type:r.Info,template:`[TUN] {srcIP} --> {host} using {proxy}`},{type:r.Debug,template:`[DNS] cache hit for {host}`},{type:r.Info,template:`[QUIC] {srcIP}:{srcPort} --> {host}:{destPort} match {rule}({payload}) using {proxy}`}],t=[`www.google.com`,`github.com`,`api.openai.com`,`www.youtube.com`,`twitter.com`,`www.netflix.com`,`discord.com`,`www.twitch.tv`,`open.spotify.com`,`www.reddit.com`,`medium.com`,`www.facebook.com`,`www.instagram.com`,`web.telegram.org`,`claude.ai`,`www.baidu.com`,`www.bilibili.com`],n=[`142.250.185.14`,`140.82.121.4`,`104.18.12.191`,`172.217.14.110`,`104.244.42.1`,`54.74.73.31`,`162.159.130.234`,`151.101.2.167`,`35.186.224.25`,`151.101.1.140`,`162.159.152.4`,`157.240.1.35`,`157.240.1.174`,`149.154.167.99`,`104.18.33.47`,`110.242.68.66`,`120.92.78.97`],i=[`Hong Kong`,`Singapore`,`Japan`,`United States`,`Taiwan`],a=[`Proxy[Auto Select(Hong Kong)]`,`Proxy[Auto Select(Singapore)]`,`Streaming[Japan]`,`AI Services[United States]`,`DIRECT`],o=[`DOMAIN-SUFFIX`,`DOMAIN-KEYWORD`,`GEOIP`,`IP-CIDR`,`MATCH`],s=[];for(let r=0;r<60;r++){let c=e[r%e.length],l=t[Math.floor(Math.random()*t.length)],u=n[Math.floor(Math.random()*n.length)],d=i[Math.floor(Math.random()*i.length)],f=a[Math.floor(Math.random()*a.length)],p=o[Math.floor(Math.random()*o.length)],m=c.template.replace(`{host}`,l).replace(`{ip}`,u).replace(`{srcIP}`,`192.168.1.100`).replace(`{srcPort}`,String(5e4+r)).replace(`{destPort}`,`443`).replace(`{node}`,d).replace(`{latency}`,String(50+Math.floor(Math.random()*150))).replace(`{proxy}`,f).replace(`{rule}`,p).replace(`{payload}`,l);s.push({type:c.type,payload:m})}return s}const y={up:125e6,down:85e7},b={inuse:45*1024*1024,oslimit:0};function x(){return{mockVersion:a,mockConfig:o,mockProxies:u,mockProxyProviders:d,mockRules:f,mockRuleProviders:m,mockConnections:h,mockLogs:_,mockTrafficStats:y,mockMemory:b}}function S(){return t().public.mockMode===!0}function C(e){let n=t().public.mockMode===!0?x():null;if(!n)return{};let r=e.startsWith(`/`)?e.slice(1):e;if(r===`version`)return n.mockVersion;if(r===`configs`)return n.mockConfig;if(r===`proxies`)return{proxies:n.mockProxies};if(r===`providers/proxies`)return{providers:n.mockProxyProviders};if(r===`rules`){let e={};return n.mockRules.forEach((t,n)=>{e[`rule-${n}`]=t}),{rules:e}}if(r===`providers/rules`)return{providers:n.mockRuleProviders};if(r===`connections`)return{connections:n.mockConnections,downloadTotal:85e7,uploadTotal:125e6};if(r===`group`)return{groups:{}};if(r.startsWith(`proxies/`)){let e=decodeURIComponent(r.replace(`proxies/`,``));return n.mockProxies[e]||{}}if(r.startsWith(`providers/proxies/`)){let e=decodeURIComponent(r.replace(`providers/proxies/`,``));return n.mockProxyProviders[e]||{}}return{}}function w(){let t=e().currentEndpoint;if(S()){let e=async e=>C(e);return{get:t=>({json:()=>e(t)}),post:t=>({json:()=>e(t)}),put:t=>({json:()=>e(t)}),patch:t=>({json:()=>e(t)}),delete:t=>({json:()=>e(t)})}}if(!t)return i.create({});let n=new Headers;return t.secret&&n.set(`Authorization`,`Bearer ${t.secret}`),i.create({prefixUrl:t.url,headers:n})}function T(){let e=new Headers;return i.create({prefixUrl:`https://api.github.com`,headers:e})}function E(e,t){return i.get(e.endsWith(`/`)?`${e}version`:`${e}/version`,{headers:t?{Authorization:`Bearer ${t}`}:{}}).then(({ok:e})=>e).catch(e=>(console.error(e),!1))}function D(){return w().delete(`connections`)}function O(e){return w().delete(`connections/${e}`)}function k(){return w().get(`providers/proxies`).json()}function A(){return w().get(`proxies`).json()}function j(e){return w().put(`providers/proxies/${encodeURIComponent(e)}`)}function M(e){return w().get(`providers/proxies/${encodeURIComponent(e)}/healthcheck`,{timeout:20*1e3}).json()}function N(e,t){return w().put(`proxies/${encodeURIComponent(e)}`,{body:JSON.stringify({name:t})})}function P(e,t,n,r){let i=w();return t===``?i.get(`proxies/${encodeURIComponent(e)}/delay`,{searchParams:{url:n,timeout:r}}).json():M(t).then(t=>({delay:t[e]??0}))}function F(e,t,n){return w().get(`group/${encodeURIComponent(e)}/delay`,{searchParams:{url:t,timeout:n}}).json()}function I(){let e=n(!1),t=n(!1),r=n(!1),i=n(!1),a=n(!1),o=n(!1),s=n(!1);return{reloadingConfigFile:e,updatingGEODatabases:t,flushingFakeIPData:r,flushingDNSCache:i,upgradingBackend:a,upgradingUI:o,restartingBackend:s,reloadConfigFileAPI:async()=>{let t=w();e.value=!0;try{await t.put(`configs`,{searchParams:{force:!0},json:{path:``,payload:``}})}catch{}e.value=!1},flushFakeIPDataAPI:async()=>{let e=w();r.value=!0;try{await e.post(`cache/fakeip/flush`)}catch{}r.value=!1},flushDNSCacheAPI:async()=>{let e=w();i.value=!0;try{await e.post(`cache/dns/flush`)}catch{}i.value=!1},updateGEODatabasesAPI:async()=>{let e=w();t.value=!0;try{await e.post(`configs/geo`)}catch{}t.value=!1},upgradeBackendAPI:async()=>{let e=w();a.value=!0;try{await e.post(`upgrade`)}catch{}a.value=!1},upgradeUIAPI:async()=>{let e=w();o.value=!0;try{await e.post(`upgrade/ui`)}catch{}o.value=!1},restartBackendAPI:async()=>{let e=w();s.value=!0;try{await e.post(`restart`)}catch{}s.value=!1}}}async function L(e){let{tag_name:t,body:n}=await T().get(`repos/MetaCubeX/metacubexd/releases/latest`).json();return{isUpdateAvailable:t!==e,changelog:n}}async function R(e){let t=T(),n=/(alpha|beta|meta)-?(\w+)/.exec(e);if(!n)return{isUpdateAvailable:!1};let r=n[2]||``,i=n[1]||``,a=async e=>{let{assets:n,body:i}=await t.get(`repos/MetaCubeX/mihomo/${e}`).json();return{isUpdateAvailable:!n.some(({name:e})=>e.includes(r)),changelog:i}};return i===`meta`?await a(`releases/latest`):i===`alpha`?await a(`releases/tags/Prerelease-Alpha`):{isUpdateAvailable:!1}}async function z(e,t=10){return(await T().get(`repos/MetaCubeX/metacubexd/releases`,{searchParams:{per_page:t}}).json()).map(t=>({version:t.tag_name,changelog:t.body,publishedAt:t.published_at,isCurrent:t.tag_name===e}))}async function B(e,t=10){let n=T(),r=`repos/MetaCubeX/mihomo`,i=/(alpha|beta|meta)-?(\w+)/.exec(e);if(!i)return[];let a=i[1]||``,o=i[2]||``,s=[];return a===`meta`?(s=await n.get(`${r}/releases`,{searchParams:{per_page:t}}).json(),s=s.filter(e=>!e.tag_name.includes(`Alpha`)&&!e.tag_name.includes(`Prerelease`))):a===`alpha`&&(s=await n.get(`${r}/releases`,{searchParams:{per_page:t*2}}).json(),s=s.filter(e=>e.tag_name.includes(`Alpha`)||e.tag_name.includes(`Prerelease`)).slice(0,t)),s.map(e=>({version:e.tag_name,changelog:e.body,publishedAt:e.published_at,isCurrent:e.assets?.some(({name:e})=>e.includes(o))??!1}))}export{w as _,B as a,k as c,P as d,M as f,S as g,I as h,O as i,L as l,j as m,E as n,z as o,N as p,D as r,A as s,R as t,F as u,x as v}; \ No newline at end of file diff --git a/dashboard/public/_nuxt/CryL-Vnb.js b/dashboard/public/_nuxt/DWyhZVzp.js similarity index 83% rename from dashboard/public/_nuxt/CryL-Vnb.js rename to dashboard/public/_nuxt/DWyhZVzp.js index 13babcb..c7026df 100644 --- a/dashboard/public/_nuxt/CryL-Vnb.js +++ b/dashboard/public/_nuxt/DWyhZVzp.js @@ -1 +1 @@ -import{$ as e,D as t,Dt as n,Et as r,J as i,dt as a,lt as o,st as s,yt as c}from"./DOvCTup-.js";import"./_v7-ePgP.js";import{t as l}from"./DaqTEuJW.js";import{t as u}from"./4rydX2E6.js";var d=[`data-theme`],f=e({__name:`blank`,setup(e){let f=l(),p=u(),m=c(null);return a(m,e=>{e&&(p.rootElement=e)}),a([()=>f.autoSwitchTheme,t()],([e,t])=>{e&&(f.curTheme=t?f.favNightTheme:f.favDayTheme)},{immediate:!0}),a(()=>f.curTheme,e=>{document.documentElement.setAttribute(`data-theme`,e)},{immediate:!0}),(e,t)=>(s(),i(`div`,{ref_key:`rootElement`,ref:m,class:n([`relative flex h-screen flex-col overscroll-y-none bg-base-100 subpixel-antialiased`,r(f).enableTwemoji?`font-twemoji`:`font-default`]),"data-theme":r(f).curTheme},[o(e.$slots,`default`)],10,d))}});export{f as default}; \ No newline at end of file +import{$ as e,D as t,Dt as n,Et as r,J as i,dt as a,lt as o,st as s,yt as c}from"./CxatB1L6.js";import"./_v7-ePgP.js";import{t as l}from"./BxUO6acX.js";import{t as u}from"./Dnb7sY_Q.js";var d=[`data-theme`],f=e({__name:`blank`,setup(e){let f=l(),p=u(),m=c(null);return a(m,e=>{e&&(p.rootElement=e)}),a([()=>f.autoSwitchTheme,t()],([e,t])=>{e&&(f.curTheme=t?f.favNightTheme:f.favDayTheme)},{immediate:!0}),a(()=>f.curTheme,e=>{document.documentElement.setAttribute(`data-theme`,e)},{immediate:!0}),(e,t)=>(s(),i(`div`,{ref_key:`rootElement`,ref:m,class:n([`relative flex h-screen flex-col overscroll-y-none bg-base-100 subpixel-antialiased`,r(f).enableTwemoji?`font-twemoji`:`font-default`]),"data-theme":r(f).curTheme},[o(e.$slots,`default`)],10,d))}});export{f as default}; \ No newline at end of file diff --git a/dashboard/public/_nuxt/BrukVZU9.js b/dashboard/public/_nuxt/DimqLJ3H.js similarity index 59% rename from dashboard/public/_nuxt/BrukVZU9.js rename to dashboard/public/_nuxt/DimqLJ3H.js index 120d1e5..6a1edaf 100644 --- a/dashboard/public/_nuxt/BrukVZU9.js +++ b/dashboard/public/_nuxt/DimqLJ3H.js @@ -1 +1 @@ -import{M as e,yt as t}from"./DOvCTup-.js";import{t as n}from"./DaqTEuJW.js";const r=e(`logs`,()=>{let e=n(),r=t([]),i=t(!1),a=1;return{logs:r,paused:i,addLog:t=>{i.value||(r.value=[{...t,seq:a},...r.value].slice(0,e.logMaxRows),a++)},clearLogs:()=>{r.value=[],a=1},togglePaused:()=>{i.value=!i.value}}});export{r as t}; \ No newline at end of file +import{M as e,yt as t}from"./CxatB1L6.js";import{t as n}from"./BxUO6acX.js";const r=e(`logs`,()=>{let e=n(),r=t([]),i=t(!1),a=1;return{logs:r,paused:i,addLog:t=>{i.value||(r.value=[{...t,seq:a},...r.value].slice(0,e.logMaxRows),a++)},clearLogs:()=>{r.value=[],a=1},togglePaused:()=>{i.value=!i.value}}});export{r as t}; \ No newline at end of file diff --git a/dashboard/public/_nuxt/4rydX2E6.js b/dashboard/public/_nuxt/Dnb7sY_Q.js similarity index 91% rename from dashboard/public/_nuxt/4rydX2E6.js rename to dashboard/public/_nuxt/Dnb7sY_Q.js index fb3687d..1f305c6 100644 --- a/dashboard/public/_nuxt/4rydX2E6.js +++ b/dashboard/public/_nuxt/Dnb7sY_Q.js @@ -1 +1 @@ -import{M as e,_t as t,yt as n}from"./DOvCTup-.js";import{t as r}from"./_v7-ePgP.js";const i=e(`global`,()=>{let e=n(null),r=n(null),i=n(null),a=t({download:[],upload:[]}),o=t([]),s=t([]);return{rootElement:e,latestTraffic:r,latestMemory:i,trafficChartHistory:a,memoryChartHistory:o,connectionCountHistory:s,setLatestTraffic:e=>{r.value=e},setLatestMemory:e=>{i.value=e},addTrafficDataPoint:(e,t,n)=>{a.download.push([e,t]),a.upload.push([e,n]),a.download.length>10&&a.download.shift(),a.upload.length>10&&a.upload.shift()},addMemoryDataPoint:(e,t)=>{o.push([e,t]),o.length>10&&o.shift()},addConnectionCountDataPoint:(e,t)=>{s.push([e,t]),s.length>10&&s.shift()},clearChartHistory:()=>{a.download.length=0,a.upload.length=0,o.length=0,s.length=0}}});export{i as t}; \ No newline at end of file +import{M as e,_t as t,yt as n}from"./CxatB1L6.js";import{t as r}from"./_v7-ePgP.js";const i=e(`global`,()=>{let e=n(null),r=n(null),i=n(null),a=t({download:[],upload:[]}),o=t([]),s=t([]);return{rootElement:e,latestTraffic:r,latestMemory:i,trafficChartHistory:a,memoryChartHistory:o,connectionCountHistory:s,setLatestTraffic:e=>{r.value=e},setLatestMemory:e=>{i.value=e},addTrafficDataPoint:(e,t,n)=>{a.download.push([e,t]),a.upload.push([e,n]),a.download.length>10&&a.download.shift(),a.upload.length>10&&a.upload.shift()},addMemoryDataPoint:(e,t)=>{o.push([e,t]),o.length>10&&o.shift()},addConnectionCountDataPoint:(e,t)=>{s.push([e,t]),s.length>10&&s.shift()},clearChartHistory:()=>{a.download.length=0,a.upload.length=0,o.length=0,s.length=0}}});export{i as t}; \ No newline at end of file diff --git a/dashboard/public/_nuxt/CAfhdv_2.js b/dashboard/public/_nuxt/FyhXtq99.js similarity index 98% rename from dashboard/public/_nuxt/CAfhdv_2.js rename to dashboard/public/_nuxt/FyhXtq99.js index 2df0e35..2cdafd7 100644 --- a/dashboard/public/_nuxt/CAfhdv_2.js +++ b/dashboard/public/_nuxt/FyhXtq99.js @@ -1,4 +1,4 @@ -import{a as e,n as t,r as n}from"./B7D9IcDw.js";import{$ as r,At as i,Dt as a,Et as o,G as s,H as c,J as l,K as u,Mt as d,Ot as f,Q as p,St as m,Tt as h,W as g,ct as _,dt as v,ft as y,gt as b,ht as ee,j as te,kt as x,pt as S,q as C,st as w,x as T,yt as E,z as ne}from"./DOvCTup-.js";import"./_v7-ePgP.js";import{t as re}from"./DaqTEuJW.js";import{p as D}from"./DkKkiaBA.js";import"./CZdbW3fS.js";import{c as ie,m as ae}from"./BpDbz5Be.js";import{t as oe}from"./NIr0cT37.js";function O(e,t,n){let r=n.initialDeps??[],i,a=!0;function o(){let o;n.key&&n.debug?.call(n)&&(o=Date.now());let s=e();if(!(s.length!==r.length||s.some((e,t)=>r[t]!==e)))return i;r=s;let c;if(n.key&&n.debug?.call(n)&&(c=Date.now()),i=t(...s),n.key&&n.debug?.call(n)){let e=Math.round((Date.now()-o)*100)/100,t=Math.round((Date.now()-c)*100)/100,r=t/16,i=(e,t)=>{for(e=String(e);e.lengthr[t]!==e)))return i;r=s;let c;if(n.key&&n.debug?.call(n)&&(c=Date.now()),i=t(...s),n.key&&n.debug?.call(n)){let e=Math.round((Date.now()-o)*100)/100,t=Math.round((Date.now()-c)*100)/100,r=t/16,i=(e,t)=>{for(e=String(e);e.length{r=e},o}function k(e,t){if(e===void 0)throw Error(`Unexpected undefined${t?`: ${t}`:``}`);return e}var A=(e,t)=>Math.abs(e-t)<1.01,j=(e,t,n)=>{let r;return function(...i){e.clearTimeout(r),r=e.setTimeout(()=>t.apply(this,i),n)}},M=e=>{let{offsetWidth:t,offsetHeight:n}=e;return{width:t,height:n}},N=e=>e,P=e=>{let t=Math.max(e.startIndex-e.overscan,0),n=Math.min(e.endIndex+e.overscan,e.count-1),r=[];for(let e=t;e<=n;e++)r.push(e);return r},F=(e,t)=>{let n=e.scrollElement;if(!n)return;let r=e.targetWindow;if(!r)return;let i=e=>{let{width:n,height:r}=e;t({width:Math.round(n),height:Math.round(r)})};if(i(M(n)),!r.ResizeObserver)return()=>{};let a=new r.ResizeObserver(t=>{let r=()=>{let e=t[0];if(e?.borderBoxSize){let t=e.borderBoxSize[0];if(t){i({width:t.inlineSize,height:t.blockSize});return}}i(M(n))};e.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(r):r()});return a.observe(n,{box:`border-box`}),()=>{a.unobserve(n)}},I={passive:!0},L=typeof window>`u`?!0:`onscrollend`in window,R=(e,t)=>{let n=e.scrollElement;if(!n)return;let r=e.targetWindow;if(!r)return;let i=0,a=e.options.useScrollendEvent&&L?()=>void 0:j(r,()=>{t(i,!1)},e.options.isScrollingResetDelay),o=r=>()=>{let{horizontal:o,isRtl:s}=e.options;i=o?n.scrollLeft*(s&&-1||1):n.scrollTop,a(),t(i,r)},s=o(!0),c=o(!1);c(),n.addEventListener(`scroll`,s,I);let l=e.options.useScrollendEvent&&L;return l&&n.addEventListener(`scrollend`,c,I),()=>{n.removeEventListener(`scroll`,s),l&&n.removeEventListener(`scrollend`,c)}},z=(e,t,n)=>{if(t?.borderBoxSize){let e=t.borderBoxSize[0];if(e)return Math.round(e[n.options.horizontal?`inlineSize`:`blockSize`])}return e[n.options.horizontal?`offsetWidth`:`offsetHeight`]},B=(e,{adjustments:t=0,behavior:n},r)=>{var i,a;let o=e+t;(a=(i=r.scrollElement)?.scrollTo)==null||a.call(i,{[r.options.horizontal?`left`:`top`]:o,behavior:n})},V=class{constructor(e){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.measurementsCache=[],this.itemSizeCache=new Map,this.laneAssignments=new Map,this.pendingMeasuredCacheIndexes=[],this.prevLanes=void 0,this.lanesChangedFlag=!1,this.lanesSettling=!1,this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this.elementsCache=new Map,this.observer=(()=>{let e=null,t=()=>e||(!this.targetWindow||!this.targetWindow.ResizeObserver?null:e=new this.targetWindow.ResizeObserver(e=>{e.forEach(e=>{let t=()=>{this._measureElement(e.target,e)};this.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(t):t()})}));return{disconnect:()=>{var n;(n=t())==null||n.disconnect(),e=null},observe:e=>t()?.observe(e,{box:`border-box`}),unobserve:e=>t()?.unobserve(e)}})(),this.range=null,this.setOptions=e=>{Object.entries(e).forEach(([t,n])=>{n===void 0&&delete e[t]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:N,rangeExtractor:P,onChange:()=>{},measureElement:z,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:`data-index`,initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!1,useAnimationFrameWithResizeObserver:!1,...e}},this.notify=e=>{var t,n;(n=(t=this.options).onChange)==null||n.call(t,this,e)},this.maybeNotify=O(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),e=>{this.notify(e)},{key:!1,debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(e=>e()),this.unsubs=[],this.observer.disconnect(),this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{let e=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==e){if(this.cleanup(),!e){this.maybeNotify();return}this.scrollElement=e,this.scrollElement&&`ownerDocument`in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=this.scrollElement?.window??null,this.elementsCache.forEach(e=>{this.observer.observe(e)}),this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0}),this.unsubs.push(this.options.observeElementRect(this,e=>{this.scrollRect=e,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(e,t)=>{this.scrollAdjustments=0,this.scrollDirection=t?this.getScrollOffset()this.options.enabled?(this.scrollRect=this.scrollRect??this.options.initialRect,this.scrollRect[this.options.horizontal?`width`:`height`]):(this.scrollRect=null,0),this.getScrollOffset=()=>this.options.enabled?(this.scrollOffset=this.scrollOffset??(typeof this.options.initialOffset==`function`?this.options.initialOffset():this.options.initialOffset),this.scrollOffset):(this.scrollOffset=null,0),this.getFurthestMeasurement=(e,t)=>{let n=new Map,r=new Map;for(let i=t-1;i>=0;i--){let t=e[i];if(n.has(t.lane))continue;let a=r.get(t.lane);if(a==null||t.end>a.end?r.set(t.lane,t):t.ende.end===t.end?e.index-t.index:e.end-t.end)[0]:void 0},this.getMeasurementOptions=O(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled,this.options.lanes],(e,t,n,r,i,a)=>(this.prevLanes!==void 0&&this.prevLanes!==a&&(this.lanesChangedFlag=!0),this.prevLanes=a,this.pendingMeasuredCacheIndexes=[],{count:e,paddingStart:t,scrollMargin:n,getItemKey:r,enabled:i,lanes:a}),{key:!1,skipInitialOnChange:!0,onChange:()=>{this.notify(this.isScrolling)}}),this.getMeasurements=O(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:e,paddingStart:t,scrollMargin:n,getItemKey:r,enabled:i,lanes:a},o)=>{if(!i)return this.measurementsCache=[],this.itemSizeCache.clear(),this.laneAssignments.clear(),[];if(this.laneAssignments.size>e)for(let t of this.laneAssignments.keys())t>=e&&this.laneAssignments.delete(t);this.lanesChangedFlag&&(this.lanesChangedFlag=!1,this.lanesSettling=!0,this.measurementsCache=[],this.itemSizeCache.clear(),this.laneAssignments.clear(),this.pendingMeasuredCacheIndexes=[]),this.measurementsCache.length===0&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(e=>{this.itemSizeCache.set(e.key,e.size)}));let s=this.lanesSettling?0:this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[],this.lanesSettling&&this.measurementsCache.length===e&&(this.lanesSettling=!1);let c=this.measurementsCache.slice(0,s),l=Array(a).fill(void 0);for(let e=0;e1){s=a;let e=l[s],r=e===void 0?void 0:c[e];u=r?r.end+this.options.gap:t+n}else{let e=this.options.lanes===1?c[i-1]:this.getFurthestMeasurement(c,i);u=e?e.end+this.options.gap:t+n,s=e?e.lane:i%this.options.lanes,this.options.lanes>1&&this.laneAssignments.set(i,s)}let d=o.get(e),f=typeof d==`number`?d:this.options.estimateSize(i),p=u+f;c[i]={index:i,start:u,size:f,end:p,key:e,lane:s},l[s]=i}return this.measurementsCache=c,c},{key:!1,debug:()=>this.options.debug}),this.calculateRange=O(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset(),this.options.lanes],(e,t,n,r)=>this.range=e.length>0&&t>0?U({measurements:e,outerSize:t,scrollOffset:n,lanes:r}):null,{key:!1,debug:()=>this.options.debug}),this.getVirtualIndexes=O(()=>{let e=null,t=null,n=this.calculateRange();return n&&(e=n.startIndex,t=n.endIndex),this.maybeNotify.updateDeps([this.isScrolling,e,t]),[this.options.rangeExtractor,this.options.overscan,this.options.count,e,t]},(e,t,n,r,i)=>r===null||i===null?[]:e({startIndex:r,endIndex:i,overscan:t,count:n}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=e=>{let t=this.options.indexAttribute,n=e.getAttribute(t);return n?parseInt(n,10):(console.warn(`Missing attribute name '${t}={index}' on measured element.`),-1)},this._measureElement=(e,t)=>{let n=this.indexFromElement(e),r=this.measurementsCache[n];if(!r)return;let i=r.key,a=this.elementsCache.get(i);a!==e&&(a&&this.observer.unobserve(a),this.observer.observe(e),this.elementsCache.set(i,e)),e.isConnected&&this.resizeItem(n,this.options.measureElement(e,t,this))},this.resizeItem=(e,t)=>{let n=this.measurementsCache[e];if(!n)return;let r=t-(this.itemSizeCache.get(n.key)??n.size);r!==0&&((this.shouldAdjustScrollPositionOnItemSizeChange===void 0?n.start{if(!e){this.elementsCache.forEach((e,t)=>{e.isConnected||(this.observer.unobserve(e),this.elementsCache.delete(t))});return}this._measureElement(e,void 0)},this.getVirtualItems=O(()=>[this.getVirtualIndexes(),this.getMeasurements()],(e,t)=>{let n=[];for(let r=0,i=e.length;rthis.options.debug}),this.getVirtualItemForOffset=e=>{let t=this.getMeasurements();if(t.length!==0)return k(t[H(0,t.length-1,e=>k(t[e]).start,e)])},this.getOffsetForAlignment=(e,t,n=0)=>{let r=this.getSize(),i=this.getScrollOffset();t===`auto`&&(t=e>=i+r?`end`:`start`),t===`center`?e+=(n-r)/2:t===`end`&&(e-=r);let a=this.getTotalSize()+this.options.scrollMargin-r;return Math.max(Math.min(a,e),0)},this.getOffsetForIndex=(e,t=`auto`)=>{e=Math.max(0,Math.min(e,this.options.count-1));let n=this.measurementsCache[e];if(!n)return;let r=this.getSize(),i=this.getScrollOffset();if(t===`auto`)if(n.end>=i+r-this.options.scrollPaddingEnd)t=`end`;else if(n.start<=i+this.options.scrollPaddingStart)t=`start`;else return[i,t];let a=t===`end`?n.end+this.options.scrollPaddingEnd:n.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(a,t,n.size),t]},this.isDynamicMode=()=>this.elementsCache.size>0,this.scrollToOffset=(e,{align:t=`start`,behavior:n}={})=>{n===`smooth`&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getOffsetForAlignment(e,t),{adjustments:void 0,behavior:n})},this.scrollToIndex=(e,{align:t=`auto`,behavior:n}={})=>{n===`smooth`&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),e=Math.max(0,Math.min(e,this.options.count-1));let r=0,i=t=>{if(!this.targetWindow)return;let r=this.getOffsetForIndex(e,t);if(!r){console.warn(`Failed to get offset for index:`,e);return}let[i,o]=r;this._scrollToOffset(i,{adjustments:void 0,behavior:n}),this.targetWindow.requestAnimationFrame(()=>{let t=this.getScrollOffset(),n=this.getOffsetForIndex(e,o);if(!n){console.warn(`Failed to get offset for index:`,e);return}A(n[0],t)||a(o)})},a=t=>{this.targetWindow&&(r++,r<10?this.targetWindow.requestAnimationFrame(()=>i(t)):console.warn(`Failed to scroll to index ${e} after 10 attempts.`))};i(t)},this.scrollBy=(e,{behavior:t}={})=>{t===`smooth`&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getScrollOffset()+e,{adjustments:void 0,behavior:t})},this.getTotalSize=()=>{let e=this.getMeasurements(),t;if(e.length===0)t=this.options.paddingStart;else if(this.options.lanes===1)t=e[e.length-1]?.end??0;else{let n=Array(this.options.lanes).fill(null),r=e.length-1;for(;r>=0&&n.some(e=>e===null);){let t=e[r];n[t.lane]===null&&(n[t.lane]=t.end),r--}t=Math.max(...n.filter(e=>e!==null))}return Math.max(t-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(e,{adjustments:t,behavior:n})=>{this.options.scrollToFn(e,{behavior:n,adjustments:t},this)},this.measure=()=>{this.itemSizeCache=new Map,this.laneAssignments=new Map,this.notify(!1)},this.setOptions(e)}},H=(e,t,n,r)=>{for(;e<=t;){let i=(e+t)/2|0,a=n(i);if(ar)t=i-1;else return i}return e>0?e-1:0};function U({measurements:e,outerSize:t,scrollOffset:n,lanes:r}){let i=e.length-1,a=t=>e[t].start;if(e.length<=r)return{startIndex:0,endIndex:i};let o=H(0,i,a,n),s=o;if(r===1)for(;s1){let a=Array(r).fill(0);for(;se=0&&c.some(e=>e>=n);){let t=e[o];c[t.lane]=t.start,o--}o=Math.max(0,o-o%r),s=Math.min(i,s+(r-1-s%r))}return{startIndex:o,endIndex:s}}function W(e){let t=new V(o(e)),n=m(t),r=t._didMount();return v(()=>o(e).getScrollElement(),e=>{e&&t._willUpdate()},{immediate:!0}),v(()=>o(e),e=>{t.setOptions({...e,onChange:(t,r)=>{var i;h(n),(i=e.onChange)==null||i.call(e,t,r)}}),t._willUpdate(),h(n)},{immediate:!0}),b(r),n}function G(e){return W(g(()=>({observeElementRect:F,observeElementOffset:R,scrollToFn:B,...o(e)})))}var K=d(i(((e,t)=>{var n={À:`A`,Á:`A`,Â:`A`,Ã:`A`,Ä:`A`,Å:`A`,Ấ:`A`,Ắ:`A`,Ẳ:`A`,Ẵ:`A`,Ặ:`A`,Æ:`AE`,Ầ:`A`,Ằ:`A`,Ȃ:`A`,Ả:`A`,Ạ:`A`,Ẩ:`A`,Ẫ:`A`,Ậ:`A`,Ç:`C`,Ḉ:`C`,È:`E`,É:`E`,Ê:`E`,Ë:`E`,Ế:`E`,Ḗ:`E`,Ề:`E`,Ḕ:`E`,Ḝ:`E`,Ȇ:`E`,Ẻ:`E`,Ẽ:`E`,Ẹ:`E`,Ể:`E`,Ễ:`E`,Ệ:`E`,Ì:`I`,Í:`I`,Î:`I`,Ï:`I`,Ḯ:`I`,Ȋ:`I`,Ỉ:`I`,Ị:`I`,Ð:`D`,Ñ:`N`,Ò:`O`,Ó:`O`,Ô:`O`,Õ:`O`,Ö:`O`,Ø:`O`,Ố:`O`,Ṍ:`O`,Ṓ:`O`,Ȏ:`O`,Ỏ:`O`,Ọ:`O`,Ổ:`O`,Ỗ:`O`,Ộ:`O`,Ờ:`O`,Ở:`O`,Ỡ:`O`,Ớ:`O`,Ợ:`O`,Ù:`U`,Ú:`U`,Û:`U`,Ü:`U`,Ủ:`U`,Ụ:`U`,Ử:`U`,Ữ:`U`,Ự:`U`,Ý:`Y`,à:`a`,á:`a`,â:`a`,ã:`a`,ä:`a`,å:`a`,ấ:`a`,ắ:`a`,ẳ:`a`,ẵ:`a`,ặ:`a`,æ:`ae`,ầ:`a`,ằ:`a`,ȃ:`a`,ả:`a`,ạ:`a`,ẩ:`a`,ẫ:`a`,ậ:`a`,ç:`c`,ḉ:`c`,è:`e`,é:`e`,ê:`e`,ë:`e`,ế:`e`,ḗ:`e`,ề:`e`,ḕ:`e`,ḝ:`e`,ȇ:`e`,ẻ:`e`,ẽ:`e`,ẹ:`e`,ể:`e`,ễ:`e`,ệ:`e`,ì:`i`,í:`i`,î:`i`,ï:`i`,ḯ:`i`,ȋ:`i`,ỉ:`i`,ị:`i`,ð:`d`,ñ:`n`,ò:`o`,ó:`o`,ô:`o`,õ:`o`,ö:`o`,ø:`o`,ố:`o`,ṍ:`o`,ṓ:`o`,ȏ:`o`,ỏ:`o`,ọ:`o`,ổ:`o`,ỗ:`o`,ộ:`o`,ờ:`o`,ở:`o`,ỡ:`o`,ớ:`o`,ợ:`o`,ù:`u`,ú:`u`,û:`u`,ü:`u`,ủ:`u`,ụ:`u`,ử:`u`,ữ:`u`,ự:`u`,ý:`y`,ÿ:`y`,Ā:`A`,ā:`a`,Ă:`A`,ă:`a`,Ą:`A`,ą:`a`,Ć:`C`,ć:`c`,Ĉ:`C`,ĉ:`c`,Ċ:`C`,ċ:`c`,Č:`C`,č:`c`,C̆:`C`,c̆:`c`,Ď:`D`,ď:`d`,Đ:`D`,đ:`d`,Ē:`E`,ē:`e`,Ĕ:`E`,ĕ:`e`,Ė:`E`,ė:`e`,Ę:`E`,ę:`e`,Ě:`E`,ě:`e`,Ĝ:`G`,Ǵ:`G`,ĝ:`g`,ǵ:`g`,Ğ:`G`,ğ:`g`,Ġ:`G`,ġ:`g`,Ģ:`G`,ģ:`g`,Ĥ:`H`,ĥ:`h`,Ħ:`H`,ħ:`h`,Ḫ:`H`,ḫ:`h`,Ĩ:`I`,ĩ:`i`,Ī:`I`,ī:`i`,Ĭ:`I`,ĭ:`i`,Į:`I`,į:`i`,İ:`I`,ı:`i`,IJ:`IJ`,ij:`ij`,Ĵ:`J`,ĵ:`j`,Ķ:`K`,ķ:`k`,Ḱ:`K`,ḱ:`k`,K̆:`K`,k̆:`k`,Ĺ:`L`,ĺ:`l`,Ļ:`L`,ļ:`l`,Ľ:`L`,ľ:`l`,Ŀ:`L`,ŀ:`l`,Ł:`l`,ł:`l`,Ḿ:`M`,ḿ:`m`,M̆:`M`,m̆:`m`,Ń:`N`,ń:`n`,Ņ:`N`,ņ:`n`,Ň:`N`,ň:`n`,ʼn:`n`,N̆:`N`,n̆:`n`,Ō:`O`,ō:`o`,Ŏ:`O`,ŏ:`o`,Ő:`O`,ő:`o`,Œ:`OE`,œ:`oe`,P̆:`P`,p̆:`p`,Ŕ:`R`,ŕ:`r`,Ŗ:`R`,ŗ:`r`,Ř:`R`,ř:`r`,R̆:`R`,r̆:`r`,Ȓ:`R`,ȓ:`r`,Ś:`S`,ś:`s`,Ŝ:`S`,ŝ:`s`,Ş:`S`,Ș:`S`,ș:`s`,ş:`s`,Š:`S`,š:`s`,Ţ:`T`,ţ:`t`,ț:`t`,Ț:`T`,Ť:`T`,ť:`t`,Ŧ:`T`,ŧ:`t`,T̆:`T`,t̆:`t`,Ũ:`U`,ũ:`u`,Ū:`U`,ū:`u`,Ŭ:`U`,ŭ:`u`,Ů:`U`,ů:`u`,Ű:`U`,ű:`u`,Ų:`U`,ų:`u`,Ȗ:`U`,ȗ:`u`,V̆:`V`,v̆:`v`,Ŵ:`W`,ŵ:`w`,Ẃ:`W`,ẃ:`w`,X̆:`X`,x̆:`x`,Ŷ:`Y`,ŷ:`y`,Ÿ:`Y`,Y̆:`Y`,y̆:`y`,Ź:`Z`,ź:`z`,Ż:`Z`,ż:`z`,Ž:`Z`,ž:`z`,ſ:`s`,ƒ:`f`,Ơ:`O`,ơ:`o`,Ư:`U`,ư:`u`,Ǎ:`A`,ǎ:`a`,Ǐ:`I`,ǐ:`i`,Ǒ:`O`,ǒ:`o`,Ǔ:`U`,ǔ:`u`,Ǖ:`U`,ǖ:`u`,Ǘ:`U`,ǘ:`u`,Ǚ:`U`,ǚ:`u`,Ǜ:`U`,ǜ:`u`,Ứ:`U`,ứ:`u`,Ṹ:`U`,ṹ:`u`,Ǻ:`A`,ǻ:`a`,Ǽ:`AE`,ǽ:`ae`,Ǿ:`O`,ǿ:`o`,Þ:`TH`,þ:`th`,Ṕ:`P`,ṕ:`p`,Ṥ:`S`,ṥ:`s`,X́:`X`,x́:`x`,Ѓ:`Г`,ѓ:`г`,Ќ:`К`,ќ:`к`,A̋:`A`,a̋:`a`,E̋:`E`,e̋:`e`,I̋:`I`,i̋:`i`,Ǹ:`N`,ǹ:`n`,Ồ:`O`,ồ:`o`,Ṑ:`O`,ṑ:`o`,Ừ:`U`,ừ:`u`,Ẁ:`W`,ẁ:`w`,Ỳ:`Y`,ỳ:`y`,Ȁ:`A`,ȁ:`a`,Ȅ:`E`,ȅ:`e`,Ȉ:`I`,ȉ:`i`,Ȍ:`O`,ȍ:`o`,Ȑ:`R`,ȑ:`r`,Ȕ:`U`,ȕ:`u`,B̌:`B`,b̌:`b`,Č̣:`C`,č̣:`c`,Ê̌:`E`,ê̌:`e`,F̌:`F`,f̌:`f`,Ǧ:`G`,ǧ:`g`,Ȟ:`H`,ȟ:`h`,J̌:`J`,ǰ:`j`,Ǩ:`K`,ǩ:`k`,M̌:`M`,m̌:`m`,P̌:`P`,p̌:`p`,Q̌:`Q`,q̌:`q`,Ř̩:`R`,ř̩:`r`,Ṧ:`S`,ṧ:`s`,V̌:`V`,v̌:`v`,W̌:`W`,w̌:`w`,X̌:`X`,x̌:`x`,Y̌:`Y`,y̌:`y`,A̧:`A`,a̧:`a`,B̧:`B`,b̧:`b`,Ḑ:`D`,ḑ:`d`,Ȩ:`E`,ȩ:`e`,Ɛ̧:`E`,ɛ̧:`e`,Ḩ:`H`,ḩ:`h`,I̧:`I`,i̧:`i`,Ɨ̧:`I`,ɨ̧:`i`,M̧:`M`,m̧:`m`,O̧:`O`,o̧:`o`,Q̧:`Q`,q̧:`q`,U̧:`U`,u̧:`u`,X̧:`X`,x̧:`x`,Z̧:`Z`,z̧:`z`,й:`и`,Й:`И`,ё:`е`,Ё:`Е`},r=Object.keys(n).join(`|`),i=new RegExp(r,`g`),a=new RegExp(r,``);function o(e){return n[e]}var s=function(e){return e.replace(i,o)},c=function(e){return!!e.match(a)};t.exports=s,t.exports.has=c,t.exports.remove=s}))()),q={CASE_SENSITIVE_EQUAL:7,EQUAL:6,STARTS_WITH:5,WORD_STARTS_WITH:4,CONTAINS:3,ACRONYM:2,MATCHES:1,NO_MATCH:0},J=(e,t)=>String(e.rankedValue).localeCompare(String(t.rankedValue));function Y(e,t,n={}){let{keys:r,threshold:i=q.MATCHES,baseSort:a=J,sorter:o=e=>e.sort((e,t)=>ue(e,t,a))}=n;return o(e.reduce(s,[])).map(({item:e})=>e);function s(e,a,o){let s=se(a,r,t,n),{rank:c,keyThreshold:l=i}=s;return c>=l&&e.push({...s,item:a,index:o}),e}}Y.rankings=q;function se(e,t,n,r){if(!t){let t=e;return{rankedValue:t,rank:X(t,n,r),keyIndex:-1,keyThreshold:r.threshold}}return pe(e,t).reduce(({rank:e,rankedValue:t,keyIndex:i,keyThreshold:a},{itemValue:o,attributes:s},c)=>{let l=X(o,n,r),u=t,{minRanking:d,maxRanking:f,threshold:p}=s;return l=q.MATCHES?l=d:l>f&&(l=f),l>e&&(e=l,i=c,a=p,u=o),{rankedValue:u,rank:e,keyIndex:i,keyThreshold:a}},{rankedValue:e,rank:q.NO_MATCH,keyIndex:-1,keyThreshold:r.threshold})}function*ce(e,t){let n=-1;for(;(n=e.indexOf(t,n+1))>-1;)yield n;return-1}function X(e,t,n){if(e=Q(e,n),t=Q(t,n),t.length>e.length)return q.NO_MATCH;if(e===t)return q.CASE_SENSITIVE_EQUAL;e=e.toLowerCase(),t=t.toLowerCase();let r=ce(e,t),i=r.next(),a=i.value;if(e.length===t.length&&a===0)return q.EQUAL;if(a===0)return q.STARTS_WITH;let o=i;for(;!o.done;){if(o.value>0&&e[o.value-1]===` `)return q.WORD_STARTS_WITH;o=r.next()}return a>0?q.CONTAINS:t.length===1?q.NO_MATCH:le(e).includes(t)?q.ACRONYM:Z(e,t)}function le(e){let t=``,n=` `;for(let r=0;r-1))return q.NO_MATCH}return a(r-o)}function ue(e,t,n){let{rank:r,keyIndex:i}=e,{rank:a,keyIndex:o}=t;return r===a?i===o?n(e,t):ia?-1:1}function Q(e,{keepDiacritics:t}){return e=`${e}`,t||(e=(0,K.default)(e)),e}function de(e,t){typeof t==`object`&&(t=t.key);let n;if(typeof t==`function`)n=t(e);else if(e==null)n=null;else if(Object.hasOwnProperty.call(e,t))n=e[t];else if(t.includes(`.`))return fe(t,e);else n=null;return n==null?[]:Array.isArray(n)?n:[String(n)]}function fe(e,t){let n=e.split(`.`),r=[t];for(let e=0,t=n.length;ei(`rules`))}),re();let{data:m=E([]),isLoading:h}=n(),{data:v=E([]),isLoading:b}=t(),O=e(),k=E(`rules`),A=E(``),{map:j,setWithCallback:M}=ae(),N=E(null),P=E(null),F=g(()=>[{type:`rules`,name:i(`rules`),count:m.value?.length??0},{type:`ruleProviders`,name:i(`ruleProviders`),count:v.value?.length??0}]),I=g(()=>A.value?Y(m.value??[],A.value,{keys:[`type`,`payload`,`proxy`]}):m.value??[]),L=g(()=>A.value?Y(v.value??[],A.value,{keys:[`name`,`vehicleType`,`behavior`]}):v.value??[]);async function R(e){await M(e,()=>O.mutateAsync(e))}async function z(){let e=v.value??[];await Promise.all(e.map(e=>O.mutateAsync(e.name)))}let B=g(()=>h.value||b.value),V=g(()=>O.isPending.value),H=G(g(()=>({count:I.value.length,getScrollElement:()=>N.value,estimateSize:()=>80,overscan:5}))),U=G(g(()=>({count:L.value.length,getScrollElement:()=>P.value,estimateSize:()=>80,overscan:5}))),W=g(()=>H.value.getVirtualItems()),K=g(()=>U.value.getVirtualItems()),q=g(()=>H.value.getTotalSize()),J=g(()=>U.value.getTotalSize());return(e,t)=>{let n=oe;return w(),l(`div`,he,[o(B)?(w(),l(`div`,ge,[...t[1]||=[s(`span`,{class:`loading loading-lg loading-spinner`},null,-1)]])):(w(),l(c,{key:1},[s(`div`,_e,[s(`div`,ve,[(w(!0),l(c,null,_(o(F),e=>(w(),l(`button`,{key:e.type,class:a([`tab gap-2 px-2`,{"bg-primary text-neutral!":o(k)===e.type}]),onClick:t=>k.value=e.type},[s(`span`,null,x(e.name),1),s(`div`,be,x(e.count),1)],10,ye))),128))]),s(`div`,xe,[S(s(`input`,{"onUpdate:modelValue":t[0]||=e=>ee(A)?A.value=e:null,class:`input input-sm join-item flex-1 input-primary`,type:`search`,placeholder:o(i)(`search`)},null,8,Se),[[ne,o(A)]]),o(k)===`ruleProviders`?(w(),u(n,{key:0,class:`btn join-item btn-sm btn-primary`,disabled:o(V),onClick:z},{default:y(()=>[p(o(D),{class:a({"animate-spin text-success":o(V)})},null,8,[`class`])]),_:1},8,[`disabled`])):C(``,!0)])]),o(k)===`rules`?(w(),l(`div`,{key:0,ref_key:`rulesParentRef`,ref:N,class:`flex-1 overflow-y-auto`},[o(I).length===0?(w(),l(`div`,Ce,x(o(i)(`noRules`)),1)):(w(),l(`div`,{key:1,style:f({height:`${o(q)}px`,width:`100%`,position:`relative`})},[(w(!0),l(c,null,_(o(W),e=>(w(),l(`div`,{key:`${o(I)[e.index].type}-${o(I)[e.index].payload}-${o(I)[e.index].proxy}`,style:f({position:`absolute`,top:0,left:0,width:`100%`,height:`${e.size}px`,transform:`translateY(${e.start}px)`})},[s(`div`,we,[s(`div`,Te,[s(`span`,Ee,x(o(I)[e.index].payload),1),o(I)[e.index].size===-1?C(``,!0):(w(),l(`div`,De,x(o(I)[e.index].size),1))]),s(`div`,Oe,x(o(I)[e.index].type)+` :: `+x(o(I)[e.index].proxy),1)])],4))),128))],4))],512)):(w(),l(`div`,{key:1,ref_key:`providersParentRef`,ref:P,class:`flex-1 overflow-y-auto`},[o(L).length===0?(w(),l(`div`,ke,x(o(i)(`noRuleProviders`)),1)):(w(),l(`div`,{key:1,style:f({height:`${o(J)}px`,width:`100%`,position:`relative`})},[(w(!0),l(c,null,_(o(K),e=>(w(),l(`div`,{key:`${o(L)[e.index].type}-${o(L)[e.index].name}`,style:f({position:`absolute`,top:0,left:0,width:`100%`,height:`${e.size}px`,transform:`translateY(${e.start}px)`})},[s(`div`,Ae,[s(`div`,je,[s(`span`,Me,x(o(L)[e.index].name),1),s(`div`,Ne,x(o(L)[e.index].ruleCount),1)]),s(`div`,Pe,x(o(L)[e.index].vehicleType)+` / `+x(o(L)[e.index].behavior)+` / `+x(o(i)(`updated`))+` `+x(o(ie)(o(L)[e.index].updatedAt,o(d))),1),p(n,{class:`absolute top-2 right-2 mr-2 btn-circle h-4 btn-sm`,disabled:o(j)[o(L)[e.index].name],onClick:t=>R(o(L)[e.index].name)},{default:y(()=>[p(o(D),{class:a({"animate-spin text-success":o(j)[o(L)[e.index].name]})},null,8,[`class`])]),_:2},1032,[`disabled`,`onClick`])])],4))),128))],4))],512))],64))])}}});export{Fe as default}; \ No newline at end of file diff --git a/dashboard/public/_nuxt/CNeVT8bc.js b/dashboard/public/_nuxt/_wGd0uNo.js similarity index 94% rename from dashboard/public/_nuxt/CNeVT8bc.js rename to dashboard/public/_nuxt/_wGd0uNo.js index cf7ebbc..d147354 100644 --- a/dashboard/public/_nuxt/CNeVT8bc.js +++ b/dashboard/public/_nuxt/_wGd0uNo.js @@ -1 +1 @@ -import{$ as e,C as t,Et as n,G as r,H as i,J as a,N as o,P as s,Q as c,V as l,W as u,Z as d,_t as f,at as p,ct as m,ft as h,j as g,kt as _,pt as v,q as y,st as b,x,yt as S,z as C}from"./DOvCTup-.js";import{s as w}from"./_v7-ePgP.js";import{i as T}from"./DkKkiaBA.js";import{n as E}from"./CZdbW3fS.js";import{p as ee}from"./BpDbz5Be.js";import{t as te}from"./NIr0cT37.js";var D=[];for(let e=0;e<256;++e)D.push((e+256).toString(16).slice(1));function O(e,t=0){return(D[e[t+0]]+D[e[t+1]]+D[e[t+2]]+D[e[t+3]]+`-`+D[e[t+4]]+D[e[t+5]]+`-`+D[e[t+6]]+D[e[t+7]]+`-`+D[e[t+8]]+D[e[t+9]]+`-`+D[e[t+10]]+D[e[t+11]]+D[e[t+12]]+D[e[t+13]]+D[e[t+14]]+D[e[t+15]]).toLowerCase()}var k,A=new Uint8Array(16);function j(){if(!k){if(typeof crypto>`u`||!crypto.getRandomValues)throw Error(`crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported`);k=crypto.getRandomValues.bind(crypto)}return k(A)}var M={randomUUID:typeof crypto<`u`&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function N(e,t,n){e||={};let r=e.random??e.rng?.()??j();if(r.length<16)throw Error(`Random bytes length must be >= 16`);if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,t){if(n||=0,n<0||n+16>t.length)throw RangeError(`UUID byte range ${n}:${n+15} is out of buffer bounds`);for(let e=0;e<16;++e)t[n+e]=r[e];return t}return O(r)}function P(e,t,n){return M.randomUUID&&!t&&!e?M.randomUUID():N(e,t,n)}var F=P,I={class:`mx-auto flex h-full w-full max-w-screen-sm flex-col items-center justify-center gap-6 p-4`},L={class:`flex flex-col items-center gap-2`},R={class:`text-sm text-base-content/60`},z={class:`flex w-full flex-col gap-4`},B={class:`fieldset`},V={class:`label`,for:`url`},H={id:`defaultEndpoints`},U=[`value`],W=[`value`],G=[`value`],K=[`value`],q={class:`fieldset`},J={class:`label`,for:`secret`},Y={class:`grid w-full grid-cols-2 gap-4`},X=[`onClick`],Z={class:`truncate`},Q=e({__name:`setup`,setup(e){let{t:D}=x();g({title:u(()=>D(`setup`))});let O=s(),k=o(),A=t(),j=f({url:``,secret:``}),M=S(!1),N=u(()=>typeof window>`u`?``:window.__METACUBEXD_CONFIG__?.defaultBackendURL||`http://127.0.0.1:9090`),P=u(()=>typeof window>`u`?``:window.location.origin);function Q(e){A.setSelectedEndpoint(e),O.replace(`/overview`)}async function ne(e){let t=A.endpointList.find(t=>t.id===e);t&&await E(t.url,t.secret)&&Q(e)}async function $(){M.value=!0;try{let e=j.url,t=j.secret,n=ee(e);if(!await E(n,t)){M.value=!1;return}let r=F(),i=[...A.endpointList],a=i.find(e=>e.url===n);if(!a){A.setEndpointList([{id:r,url:n,secret:t},...i]),Q(r);return}a.secret=t,a.id=r,A.setEndpointList(i),Q(r)}finally{M.value=!1}}function re(e){A.removeEndpoint(e)}return p(async()=>{let e=k.query||(typeof window<`u`?new URLSearchParams(window.location.search):null);if(e&&typeof e==`object`){let t=e.hostname;if(t){j.url=`${e.http?`http:`:e.https?`https:`:typeof window<`u`?window.location.protocol:`http:`}//${t}${e.port?`:${e.port}`:``}`,j.secret=e.secret||``,await $();return}}A.endpointList.length===0&&(j.url=N.value,j.secret=``,await $())}),(e,t)=>{let o=te;return b(),a(`div`,I,[r(`div`,L,[t[2]||=r(`div`,{class:`text-3xl font-bold uppercase sm:text-4xl`},[r(`span`,{class:`bg-linear-to-br from-primary to-secondary bg-clip-text text-transparent`},` metacube `),r(`span`,null,`(`),r(`a`,{class:`inline-block text-primary transition-transform hover:scale-125 hover:rotate-90`,href:`https://github.com/metacubex/metacubexd`,target:`_blank`},` xd `),r(`span`,null,`)`)],-1),r(`p`,R,_(n(D)(`setupDescription`)),1)]),r(`form`,{class:`contents`,onSubmit:l($,[`prevent`])},[r(`div`,z,[r(`fieldset`,B,[r(`label`,V,[r(`span`,null,_(n(D)(`endpointURL`)),1)]),v(r(`input`,{id:`url`,"onUpdate:modelValue":t[0]||=e=>n(j).url=e,type:`url`,class:`input w-full`,placeholder:`http(s)://{hostname}:{port}`,list:`defaultEndpoints`,autocomplete:`on`},null,512),[[C,n(j).url]]),r(`datalist`,H,[r(`option`,{value:n(w)},null,8,U),n(N)&&n(N)!==n(`http://127.0.0.1:9090`)?(b(),a(`option`,{key:0,value:n(N)},null,8,W)):y(``,!0),n(P)&&n(P)!==n(`http://127.0.0.1:9090`)?(b(),a(`option`,{key:1,value:n(P)},null,8,G)):y(``,!0),(b(!0),a(i,null,m(n(A).endpointList,e=>(b(),a(`option`,{key:e.id,value:e.url},null,8,K))),128))])]),t[3]||=r(`input`,{type:`text`,name:`username`,autocomplete:`username`,class:`hidden`,"aria-hidden":`true`,tabindex:`-1`},null,-1),r(`fieldset`,q,[r(`label`,J,[r(`span`,null,_(n(D)(`secret`)),1)]),v(r(`input`,{id:`secret`,"onUpdate:modelValue":t[1]||=e=>n(j).secret=e,type:`password`,class:`input w-full`,placeholder:`secret`,autocomplete:`current-password`},null,512),[[C,n(j).secret]])]),c(o,{type:`submit`,class:`uppercase btn-primary`,loading:n(M)},{default:h(()=>[d(_(n(D)(`add`)),1)]),_:1},8,[`loading`])])],32),r(`div`,Y,[(b(!0),a(i,null,m(n(A).endpointList,e=>(b(),a(`div`,{key:e.id,class:`badge flex w-full cursor-pointer items-center justify-between gap-4 py-4 badge-info`,onClick:t=>ne(e.id)},[r(`span`,Z,_(e.url),1),c(o,{class:`btn-circle text-white btn-ghost btn-xs`,onClick:l(t=>re(e.id),[`stop`])},{default:h(()=>[c(n(T))]),_:1},8,[`onClick`])],8,X))),128))])])}}});export{Q as default}; \ No newline at end of file +import{$ as e,C as t,Et as n,G as r,H as i,J as a,N as o,P as s,Q as c,V as l,W as u,Z as d,_t as f,at as p,ct as m,ft as h,j as g,kt as _,pt as v,q as y,st as b,x,yt as S,z as C}from"./CxatB1L6.js";import{s as w}from"./_v7-ePgP.js";import{i as T}from"./BlFRk3uc.js";import{n as E}from"./DRJWd5jk.js";import{p as ee}from"./D8VGDxpn.js";import{t as te}from"./DP7SiUGW.js";var D=[];for(let e=0;e<256;++e)D.push((e+256).toString(16).slice(1));function O(e,t=0){return(D[e[t+0]]+D[e[t+1]]+D[e[t+2]]+D[e[t+3]]+`-`+D[e[t+4]]+D[e[t+5]]+`-`+D[e[t+6]]+D[e[t+7]]+`-`+D[e[t+8]]+D[e[t+9]]+`-`+D[e[t+10]]+D[e[t+11]]+D[e[t+12]]+D[e[t+13]]+D[e[t+14]]+D[e[t+15]]).toLowerCase()}var k,A=new Uint8Array(16);function j(){if(!k){if(typeof crypto>`u`||!crypto.getRandomValues)throw Error(`crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported`);k=crypto.getRandomValues.bind(crypto)}return k(A)}var M={randomUUID:typeof crypto<`u`&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function N(e,t,n){e||={};let r=e.random??e.rng?.()??j();if(r.length<16)throw Error(`Random bytes length must be >= 16`);if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,t){if(n||=0,n<0||n+16>t.length)throw RangeError(`UUID byte range ${n}:${n+15} is out of buffer bounds`);for(let e=0;e<16;++e)t[n+e]=r[e];return t}return O(r)}function P(e,t,n){return M.randomUUID&&!t&&!e?M.randomUUID():N(e,t,n)}var F=P,I={class:`mx-auto flex h-full w-full max-w-screen-sm flex-col items-center justify-center gap-6 p-4`},L={class:`flex flex-col items-center gap-2`},R={class:`text-sm text-base-content/60`},z={class:`flex w-full flex-col gap-4`},B={class:`fieldset`},V={class:`label`,for:`url`},H={id:`defaultEndpoints`},U=[`value`],W=[`value`],G=[`value`],K=[`value`],q={class:`fieldset`},J={class:`label`,for:`secret`},Y={class:`grid w-full grid-cols-2 gap-4`},X=[`onClick`],Z={class:`truncate`},Q=e({__name:`setup`,setup(e){let{t:D}=x();g({title:u(()=>D(`setup`))});let O=s(),k=o(),A=t(),j=f({url:``,secret:``}),M=S(!1),N=u(()=>typeof window>`u`?``:window.__METACUBEXD_CONFIG__?.defaultBackendURL||`http://127.0.0.1:9090`),P=u(()=>typeof window>`u`?``:window.location.origin);function Q(e){A.setSelectedEndpoint(e),O.replace(`/overview`)}async function ne(e){let t=A.endpointList.find(t=>t.id===e);t&&await E(t.url,t.secret)&&Q(e)}async function $(){M.value=!0;try{let e=j.url,t=j.secret,n=ee(e);if(!await E(n,t)){M.value=!1;return}let r=F(),i=[...A.endpointList],a=i.find(e=>e.url===n);if(!a){A.setEndpointList([{id:r,url:n,secret:t},...i]),Q(r);return}a.secret=t,a.id=r,A.setEndpointList(i),Q(r)}finally{M.value=!1}}function re(e){A.removeEndpoint(e)}return p(async()=>{let e=k.query||(typeof window<`u`?new URLSearchParams(window.location.search):null);if(e&&typeof e==`object`){let t=e.hostname;if(t){j.url=`${e.http?`http:`:e.https?`https:`:typeof window<`u`?window.location.protocol:`http:`}//${t}${e.port?`:${e.port}`:``}`,j.secret=e.secret||``,await $();return}}A.endpointList.length===0&&(j.url=N.value,j.secret=``,await $())}),(e,t)=>{let o=te;return b(),a(`div`,I,[r(`div`,L,[t[2]||=r(`div`,{class:`text-3xl font-bold uppercase sm:text-4xl`},[r(`span`,{class:`bg-linear-to-br from-primary to-secondary bg-clip-text text-transparent`},` metacube `),r(`span`,null,`(`),r(`a`,{class:`inline-block text-primary transition-transform hover:scale-125 hover:rotate-90`,href:`https://github.com/metacubex/metacubexd`,target:`_blank`},` xd `),r(`span`,null,`)`)],-1),r(`p`,R,_(n(D)(`setupDescription`)),1)]),r(`form`,{class:`contents`,onSubmit:l($,[`prevent`])},[r(`div`,z,[r(`fieldset`,B,[r(`label`,V,[r(`span`,null,_(n(D)(`endpointURL`)),1)]),v(r(`input`,{id:`url`,"onUpdate:modelValue":t[0]||=e=>n(j).url=e,type:`url`,class:`input w-full`,placeholder:`http(s)://{hostname}:{port}`,list:`defaultEndpoints`,autocomplete:`on`},null,512),[[C,n(j).url]]),r(`datalist`,H,[r(`option`,{value:n(w)},null,8,U),n(N)&&n(N)!==n(`http://127.0.0.1:9090`)?(b(),a(`option`,{key:0,value:n(N)},null,8,W)):y(``,!0),n(P)&&n(P)!==n(`http://127.0.0.1:9090`)?(b(),a(`option`,{key:1,value:n(P)},null,8,G)):y(``,!0),(b(!0),a(i,null,m(n(A).endpointList,e=>(b(),a(`option`,{key:e.id,value:e.url},null,8,K))),128))])]),t[3]||=r(`input`,{type:`text`,name:`username`,autocomplete:`username`,class:`hidden`,"aria-hidden":`true`,tabindex:`-1`},null,-1),r(`fieldset`,q,[r(`label`,J,[r(`span`,null,_(n(D)(`secret`)),1)]),v(r(`input`,{id:`secret`,"onUpdate:modelValue":t[1]||=e=>n(j).secret=e,type:`password`,class:`input w-full`,placeholder:`secret`,autocomplete:`current-password`},null,512),[[C,n(j).secret]])]),c(o,{type:`submit`,class:`uppercase btn-primary`,loading:n(M)},{default:h(()=>[d(_(n(D)(`add`)),1)]),_:1},8,[`loading`])])],32),r(`div`,Y,[(b(!0),a(i,null,m(n(A).endpointList,e=>(b(),a(`div`,{key:e.id,class:`badge flex w-full cursor-pointer items-center justify-between gap-4 py-4 badge-info`,onClick:t=>ne(e.id)},[r(`span`,Z,_(e.url),1),c(o,{class:`btn-circle text-white btn-ghost btn-xs`,onClick:l(t=>re(e.id),[`stop`])},{default:h(()=>[c(n(T))]),_:1},8,[`onClick`])],8,X))),128))])])}}});export{Q as default}; \ No newline at end of file diff --git a/dashboard/public/_nuxt/builds/latest.json b/dashboard/public/_nuxt/builds/latest.json index 8ec4230..0f27817 100644 --- a/dashboard/public/_nuxt/builds/latest.json +++ b/dashboard/public/_nuxt/builds/latest.json @@ -1 +1 @@ -{"id":"bf2be1a6-8470-4efc-b8f1-8395647f3ab8","timestamp":1768483688567} \ No newline at end of file +{"id":"ffde4870-6804-469e-8c77-e5a2c77573a6","timestamp":1768483961529} \ No newline at end of file diff --git a/dashboard/public/_nuxt/builds/meta/bf2be1a6-8470-4efc-b8f1-8395647f3ab8.json b/dashboard/public/_nuxt/builds/meta/bf2be1a6-8470-4efc-b8f1-8395647f3ab8.json deleted file mode 100644 index 35c45df..0000000 --- a/dashboard/public/_nuxt/builds/meta/bf2be1a6-8470-4efc-b8f1-8395647f3ab8.json +++ /dev/null @@ -1 +0,0 @@ -{"id":"bf2be1a6-8470-4efc-b8f1-8395647f3ab8","timestamp":1768483688567,"matcher":{"static":{},"wildcard":{},"dynamic":{}},"prerendered":[]} \ No newline at end of file diff --git a/dashboard/public/_nuxt/builds/meta/ffde4870-6804-469e-8c77-e5a2c77573a6.json b/dashboard/public/_nuxt/builds/meta/ffde4870-6804-469e-8c77-e5a2c77573a6.json new file mode 100644 index 0000000..26404c5 --- /dev/null +++ b/dashboard/public/_nuxt/builds/meta/ffde4870-6804-469e-8c77-e5a2c77573a6.json @@ -0,0 +1 @@ +{"id":"ffde4870-6804-469e-8c77-e5a2c77573a6","timestamp":1768483961529,"matcher":{"static":{},"wildcard":{},"dynamic":{}},"prerendered":[]} \ No newline at end of file diff --git a/dashboard/public/_nuxt/C0BTvwsH.js b/dashboard/public/_nuxt/eu6oZm2g.js similarity index 99% rename from dashboard/public/_nuxt/C0BTvwsH.js rename to dashboard/public/_nuxt/eu6oZm2g.js index 501a570..1a6b33e 100644 --- a/dashboard/public/_nuxt/C0BTvwsH.js +++ b/dashboard/public/_nuxt/eu6oZm2g.js @@ -1 +1 @@ -import{$ as e,C as t,Dt as n,E as r,Et as i,G as a,H as o,J as s,K as c,L as l,Mt as u,Ot as d,Q as f,V as p,W as m,Z as h,at as g,ct as _,dt as v,ft as y,ht as b,j as x,kt as S,lt as C,ot as w,pt as ee,q as T,rt as E,st as D,ut as O,x as k,yt as A}from"./DOvCTup-.js";import{t as j}from"./_v7-ePgP.js";import{t as M}from"./DaqTEuJW.js";import{t as N}from"./4rydX2E6.js";import{B as te,C as P,E as ne,F,O as re,R as I,a as ie,d as ae,g as oe,h as se,k as L,m as ce,n as le,o as ue,t as de,v as fe,x as pe,z as R}from"./DkKkiaBA.js";import{t as me}from"./CDMImveV.js";import{n as he,t as z}from"./BlP2MkkZ.js";import{t as ge}from"./BLyUHixQ.js";import{a as _e,d as ve,i as ye,l as be}from"./BpDbz5Be.js";var xe={class:`stat place-items-center px-2 py-3`},Se={class:`stat-title text-xs text-primary-content sm:text-sm`},Ce={class:`stat-value text-center text-lg whitespace-nowrap text-primary-content sm:text-xl lg:text-2xl`},we=e({__name:`TrafficWidget`,props:{label:{}},setup(e){return(t,n)=>(D(),s(`div`,xe,[a(`div`,Se,S(e.label),1),a(`div`,Ce,[C(t.$slots,`default`)])]))}}),Te=Object.assign(we,{__name:`TrafficWidget`}),Ee=u(ge(),1),De={class:`relative h-full w-full`},Oe={key:0,class:`absolute inset-0 flex items-center justify-center`},ke=e({__name:`RealtimeLineChart`,props:{title:{},seriesConfig:{},isLoading:{type:Boolean,default:!1},initialData:{default:()=>[]},valueMode:{default:`bytes`}},emits:[`chartReady`],setup(e,{expose:t,emit:r}){let i=e,o=r,c=(e,t=!1)=>i.valueMode===`number`?String(e):t?`${z(e).toString()}/s`:z(e).toString(),l=A(),u,d=M();function f(){let e=be();return{chart:{type:`areaspline`,animation:{duration:800,easing:`linear`},backgroundColor:e.backgroundColor},credits:{enabled:!1},accessibility:{enabled:!1},title:{text:i.title,style:{color:e.textColor}},legend:{enabled:!0,itemStyle:{color:e.textColor},itemHoverStyle:{color:e.textColorHover}},xAxis:{type:`datetime`,tickPixelInterval:100,labels:{style:{color:e.textColor},formatter(){let e=new Date(this.value);return`${e.getMinutes().toString().padStart(2,`0`)}:${e.getSeconds().toString().padStart(2,`0`)}`}},lineColor:e.lineColor,tickColor:e.tickColor},yAxis:{title:{text:void 0},labels:{style:{color:e.textColor},formatter(){return c(this.value)}},gridLineColor:e.gridLineColor,min:0},tooltip:{shared:!0,formatter(){let e=new Date(this.x),t=`${`${e.getMinutes().toString().padStart(2,`0`)}:${e.getSeconds().toString().padStart(2,`0`)}`}
`;return this.points?.forEach(e=>{t+=`\u25CF ${e.series.name}: ${c(e.y,!0)}
`}),t}},plotOptions:{areaspline:{fillOpacity:.3,marker:{enabled:!1},lineWidth:2,states:{hover:{lineWidth:3}},threshold:null}},series:i.seriesConfig.map((t,n)=>({type:`areaspline`,name:t.name,color:t.color||e.seriesColors[n]||Ee.default.getOptions().colors?.[n]||`hsl(${n*120}, 70%, 50%)`,data:i.initialData?.[n]||[]}))}}let p={addPoint:(e,t,n)=>{if(u?.series[e]){let r=u.series[e].data.length>=10;u.series[e].addPoint([t,n],!0,r,{duration:800,easing:`linear`})}},addPoints:e=>{if(!u)return;let t=new Map;e.forEach(e=>{t.has(e.seriesIndex)||t.set(e.seriesIndex,[]),t.get(e.seriesIndex).push({time:e.time,value:e.value})}),t.forEach((e,t)=>{let n=u?.series[t];n&&e.forEach(e=>{let t=n.data.length>=10;n.addPoint([e.time,e.value],!1,t)})}),u.redraw({duration:800,easing:`linear`})},setSeriesData:(e,t)=>{u?.series[e]&&u.series[e].setData(t,!0,!1,!1)}};return t({chartRef:p}),g(()=>{if(!l.value)return;u=Ee.default.chart(l.value,f()),o(`chartReady`,p);let e=new ResizeObserver(()=>{u&&l.value&&u.setSize(l.value.clientWidth,l.value.clientHeight,!0)});e.observe(l.value),w(()=>{e.disconnect(),u?.destroy()})}),v(()=>i.title,e=>{u&&u.setTitle({text:e})}),v(()=>i.seriesConfig,e=>{u&&(e.forEach((e,t)=>{u.series[t]&&u.series[t].update({type:`areaspline`,name:e.name,color:e.color},!1)}),u.redraw())},{deep:!0}),v(()=>d.curTheme,()=>{requestAnimationFrame(()=>{if(u){let e=be();u.update({chart:{backgroundColor:e.backgroundColor},title:{style:{color:e.textColor}},legend:{itemStyle:{color:e.textColor},itemHoverStyle:{color:e.textColorHover}},xAxis:{labels:{style:{color:e.textColor}},lineColor:e.lineColor,tickColor:e.tickColor},yAxis:{labels:{style:{color:e.textColor}},gridLineColor:e.gridLineColor}},!0,!1,!1)}})}),(t,r)=>(D(),s(`div`,De,[e.isLoading?(D(),s(`div`,Oe,[...r[0]||=[a(`span`,{class:`loading loading-lg loading-dots`},null,-1)]])):T(``,!0),a(`div`,{ref_key:`containerRef`,ref:l,class:n([`h-full w-full`,{"opacity-0":e.isLoading}])},null,2)]))}}),Ae=Object.assign(ke,{__name:`RealtimeLineChart`}),je=u(ge(),1),Me={class:`relative h-full w-full`},Ne={key:0,class:`absolute inset-0 flex items-center justify-center`},Pe=e({__name:`HighchartsAutoSize`,props:{options:{},isLoading:{type:Boolean,default:!1}},setup(e){let t=e,r=A(),i,o=M();function c(){let e=be();return{chart:{animation:{duration:300},backgroundColor:e.backgroundColor},credits:{enabled:!1},accessibility:{enabled:!1},legend:{itemStyle:{color:e.textColor},itemHoverStyle:{color:e.textColorHover}},title:{style:{color:e.textColor}}}}return g(()=>{if(!r.value)return;let e=c(),n={...e,...t.options,chart:{...e.chart,...t.options.chart}};i=je.default.chart(r.value,n);let a=r.value.clientWidth,o=r.value.clientHeight,s=new ResizeObserver(()=>{if(i&&r.value){let e=r.value.clientWidth,t=r.value.clientHeight;(e!==a||t!==o)&&(a=e,o=t,i.setSize(e,t,!1))}});s.observe(r.value),w(()=>{s.disconnect(),i?.destroy()})}),v(()=>t.options,e=>{i&&i.update(e,!0,!1,!1)},{deep:!0}),v(()=>o.curTheme,()=>{requestAnimationFrame(()=>{if(i){let e=be();i.update({chart:{backgroundColor:e.backgroundColor},title:{style:{color:e.textColor}},legend:{itemStyle:{color:e.textColor},itemHoverStyle:{color:e.textColorHover}},xAxis:{labels:{style:{color:e.textColor}},lineColor:e.lineColor,tickColor:e.tickColor},yAxis:{labels:{style:{color:e.textColor}},gridLineColor:e.gridLineColor}},!0,!1,!1)}})}),(t,i)=>(D(),s(`div`,Me,[e.isLoading?(D(),s(`div`,Ne,[...i[0]||=[a(`span`,{class:`loading loading-lg loading-dots`},null,-1)]])):T(``,!0),a(`div`,{ref_key:`containerRef`,ref:r,class:n([`h-full w-full`,{"opacity-0":e.isLoading}])},null,2)]))}}),Fe=Object.assign(Pe,{__name:`HighchartsAutoSize`}),Ie={"ip.sb":`https://api.ip.sb/geoip`,"ipwho.is":`https://ipwho.is/`,"ipapi.is":`https://api.ipapi.is/`};function Le(e){return{ip:e.ip,country:e.country,city:e.city,asn:e.asn,org:e.asn_organization}}function Re(e){return{ip:e.ip,country:e.country,countryCode:e.country_code,city:e.city,region:e.region,asn:e.connection?.asn,org:e.connection?.org,isp:e.connection?.isp,latitude:e.latitude,longitude:e.longitude,timezone:e.timezone?.id}}function ze(e){return{ip:e.ip,country:e.location?.country,countryCode:e.location?.country_code,city:e.location?.city,region:e.location?.state,asn:e.asn?.asn,org:e.asn?.org,isProxy:e.is_proxy,isVPN:e.is_vpn,latitude:e.location?.latitude,longitude:e.location?.longitude,timezone:e.location?.timezone}}async function Be(e){let t=Ie[e],n=await me.get(t,{timeout:1e4}).json();switch(e){case`ip.sb`:return Le(n);case`ipwho.is`:return Re(n);case`ipapi.is`:return ze(n);default:throw Error(`Unknown IP provider: ${e}`)}}function Ve(){let e=A(`ip.sb`),t=A(null),n=A(!1),r=A(null);async function i(i){let a=i??e.value;n.value=!0,r.value=null;try{t.value=await Be(a),e.value=a}catch(e){r.value=e instanceof Error?e.message:`Failed to fetch IP info`,t.value=null}finally{n.value=!1}}return{currentProvider:e,ipInfo:t,isLoading:n,error:r,fetchIP:i}}var He={class:`card bg-base-200 p-4 shadow-sm`},Ue={class:`mb-3 flex items-center justify-between`},We={class:`flex items-center gap-2`},Ge={class:`font-semibold`},Ke={class:`flex items-center gap-2`},qe=[`value`],Je=[`value`],Ye=[`disabled`],Xe={key:0,class:`flex justify-center py-4`},Ze={key:1,class:`alert alert-error`},Qe={key:2,class:`space-y-2`},$e={class:`flex items-center justify-between gap-2`},et={class:`shrink-0 text-base-content/60`},tt=[`title`],nt={key:0,class:`flex items-center justify-between gap-2`},rt={class:`shrink-0 text-base-content/60`},it={class:`truncate`},at={key:1,class:`flex items-center justify-between gap-2`},ot={class:`shrink-0 text-base-content/60`},st={class:`truncate`},ct={key:2,class:`flex items-center justify-between gap-2`},lt={class:`shrink-0 text-base-content/60`},ut=[`title`],dt={key:3,class:`flex items-center justify-between gap-2`},ft={class:`truncate font-mono`},pt={key:4,class:`flex items-center justify-between gap-2`},mt=[`title`],ht={key:5,class:`flex items-center justify-between`},gt={class:`text-base-content/60`},_t={class:`flex gap-1`},vt={key:0,class:`badge badge-sm badge-warning`},yt={key:1,class:`badge badge-sm badge-warning`},bt={key:2,class:`badge badge-sm badge-success`},xt={key:3,class:`py-4 text-center text-base-content/60`},St=e({__name:`IPInfoCard`,setup(e){let{t}=k(),{currentProvider:r,ipInfo:c,isLoading:l,error:u,fetchIP:d}=Ve(),p=[{value:`ip.sb`,label:`IP.SB`},{value:`ipwho.is`,label:`ipwho.is`},{value:`ipapi.is`,label:`ipapi.is`}];g(()=>{d()});function m(e){let t=e.target;d(t.value)}return(e,h)=>(D(),s(`div`,He,[a(`div`,Ue,[a(`div`,We,[f(i(ie),{class:`h-5 w-5 text-primary`}),a(`h3`,Ge,S(i(t)(`currentIP`)),1)]),a(`div`,Ke,[a(`select`,{value:i(r),class:`select-bordered select select-sm`,onChange:m},[(D(),s(o,null,_(p,e=>a(`option`,{key:e.value,value:e.value},S(e.label),9,Je)),64))],40,qe),a(`button`,{class:n([`btn btn-circle btn-ghost btn-sm`,{"animate-spin":i(l)}]),disabled:i(l),onClick:h[0]||=e=>i(d)()},[f(i(ce),{class:`h-4 w-4`})],10,Ye)])]),i(l)?(D(),s(`div`,Xe,[...h[1]||=[a(`span`,{class:`loading loading-md loading-spinner`},null,-1)]])):i(u)?(D(),s(`div`,Ze,[a(`span`,null,S(i(u)),1)])):i(c)?(D(),s(`div`,Qe,[a(`div`,$e,[a(`span`,et,S(i(t)(`ipAddress`)),1),a(`span`,{class:`truncate font-mono font-semibold`,title:i(c).ip},S(i(c).ip),9,tt)]),i(c).country?(D(),s(`div`,nt,[a(`span`,rt,S(i(t)(`country`)),1),a(`span`,it,S(i(c).country),1)])):T(``,!0),i(c).city?(D(),s(`div`,at,[a(`span`,ot,S(i(t)(`city`)),1),a(`span`,st,S(i(c).city),1)])):T(``,!0),i(c).org?(D(),s(`div`,ct,[a(`span`,lt,S(i(t)(`organization`)),1),a(`span`,{class:`truncate text-right`,title:i(c).org},S(i(c).org),9,ut)])):T(``,!0),i(c).asn?(D(),s(`div`,dt,[h[2]||=a(`span`,{class:`shrink-0 text-base-content/60`},`ASN`,-1),a(`span`,ft,`AS`+S(i(c).asn),1)])):T(``,!0),i(c).isp?(D(),s(`div`,pt,[h[3]||=a(`span`,{class:`shrink-0 text-base-content/60`},`ISP`,-1),a(`span`,{class:`truncate text-right`,title:i(c).isp},S(i(c).isp),9,mt)])):T(``,!0),i(c).isProxy!==void 0||i(c).isVPN!==void 0?(D(),s(`div`,ht,[a(`span`,gt,S(i(t)(`proxyDetection`)),1),a(`div`,_t,[i(c).isProxy?(D(),s(`span`,vt,` Proxy `)):T(``,!0),i(c).isVPN?(D(),s(`span`,yt,` VPN `)):T(``,!0),!i(c).isProxy&&!i(c).isVPN?(D(),s(`span`,bt,S(i(t)(`clean`)),1)):T(``,!0)])])):T(``,!0)])):(D(),s(`div`,xt,S(i(t)(`noData`)),1))]))}}),Ct=Object.assign(St,{__name:`IPInfoCard`}),wt=[{name:`Google`,url:`https://www.google.com/generate_204`},{name:`Cloudflare`,url:`https://www.cloudflare.com/cdn-cgi/trace`},{name:`GitHub`,url:`https://github.com`}];async function Tt(e){try{let t=performance.now();await fetch(e,{method:`HEAD`,mode:`no-cors`,cache:`no-store`});let n=performance.now();return Math.round(n-t)}catch{return null}}function Et(){let e=A(new Map),t=A(!1),n=A(wt);async function r(t,n){e.value.set(n,{url:n,latency:null,status:`pending`,timestamp:Date.now()});let r=await Tt(n);return e.value.set(n,{url:n,latency:r,status:r===null?`error`:`success`,timestamp:Date.now()}),r}async function i(){t.value=!0;let e=n.value.map(e=>r(e.name,e.url));await Promise.all(e),t.value=!1}function a(t){return e.value.get(t)}return{results:e,isTestingAll:t,targets:n,testLatency:r,testAllLatencies:i,getResult:a,allResults:m(()=>n.value.map(t=>({name:t.name,url:t.url,result:e.value.get(t.url)}))),averageLatency:m(()=>{let t=Array.from(e.value.values()).filter(e=>e.status===`success`&&e.latency!==null);if(t.length===0)return null;let n=t.reduce((e,t)=>e+(t.latency??0),0);return Math.round(n/t.length)})}}var Dt={class:`card bg-base-200 p-4 shadow-sm`},Ot={class:`mb-3 flex items-center justify-between`},kt={class:`flex items-center gap-2`},At={class:`font-semibold`},jt={class:`flex items-center gap-2`},Mt=[`disabled`],Nt={class:`space-y-3`},Pt={class:`w-20 shrink-0 truncate text-sm`},Ft={class:`relative h-4 flex-1 overflow-hidden rounded-full bg-base-300`},It={class:`w-16 shrink-0 text-right font-mono text-sm`},Lt={key:0,class:`loading loading-xs loading-spinner`},Rt={key:1},zt={key:2,class:`text-error`},Bt={key:3,class:`text-base-content/40`},Vt=e({__name:`LatencyCard`,setup(e){let{t}=k(),{allResults:r,isTestingAll:c,testAllLatencies:l,averageLatency:u}=Et();g(()=>{l()});function p(e){return e==null?`badge-ghost`:e<100?`badge-success`:e<300?`badge-warning`:`badge-error`}function m(e){return e==null?`0%`:`${Math.min(e/500*100,100)}%`}function h(e){return e==null?`bg-base-300`:e<100?`bg-success`:e<300?`bg-warning`:`bg-error`}return(e,g)=>(D(),s(`div`,Dt,[a(`div`,Ot,[a(`div`,kt,[f(i(te),{class:`h-5 w-5 text-primary`}),a(`h3`,At,S(i(t)(`networkLatency`)),1)]),a(`div`,jt,[i(u)===null?T(``,!0):(D(),s(`span`,{key:0,class:n([`badge`,p(i(u))])},S(i(t)(`average`))+`: `+S(i(u))+`ms `,3)),a(`button`,{class:n([`btn btn-circle btn-ghost btn-sm`,{"animate-spin":i(c)}]),disabled:i(c),onClick:g[0]||=(...e)=>i(l)&&i(l)(...e)},[f(i(ce),{class:`h-4 w-4`})],10,Mt)])]),a(`div`,Nt,[(D(!0),s(o,null,_(i(r),e=>(D(),s(`div`,{key:e.url,class:`flex items-center gap-3`},[a(`span`,Pt,S(e.name),1),a(`div`,Ft,[a(`div`,{class:n([`absolute inset-y-0 left-0 rounded-full transition-all duration-500`,h(e.result?.latency)]),style:d({width:m(e.result?.latency)})},null,6)]),a(`span`,It,[e.result?.status===`pending`?(D(),s(`span`,Lt)):e.result?.status===`success`?(D(),s(`span`,Rt,S(e.result.latency)+`ms `,1)):e.result?.status===`error`?(D(),s(`span`,zt,S(i(t)(`timeout`)),1)):(D(),s(`span`,Bt,`-`))])]))),128))])]))}}),Ht=Object.assign(Vt,{__name:`LatencyCard`}),Ut={value:()=>{}};function Wt(){for(var e=0,t=arguments.length,n={},r;e=0&&(n=e.slice(r+1),e=e.slice(0,r)),e&&!t.hasOwnProperty(e))throw Error(`unknown type: `+e);return{type:e,name:n}})}Gt.prototype=Wt.prototype={constructor:Gt,on:function(e,t){var n=this._,r=Kt(e+``,n),i,a=-1,o=r.length;if(arguments.length<2){for(;++a0)for(var n=Array(i),r=0,i,a;r=0&&(t=e.slice(0,n))!==`xmlns`&&(e=e.slice(n+1)),Xt.hasOwnProperty(t)?{space:Xt[t],local:e}:e}function Qt(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===`http://www.w3.org/1999/xhtml`&&t.documentElement.namespaceURI===`http://www.w3.org/1999/xhtml`?t.createElement(e):t.createElementNS(n,e)}}function $t(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function en(e){var t=Zt(e);return(t.local?$t:Qt)(t)}function tn(){}function nn(e){return e==null?tn:function(){return this.querySelector(e)}}function rn(e){typeof e!=`function`&&(e=nn(e));for(var t=this._groups,n=t.length,r=Array(n),i=0;i=v&&(v=_+1);!(b=g[v])&&++v=0;)(o=r[i])&&(a&&o.compareDocumentPosition(a)^4&&a.parentNode.insertBefore(o,a),a=o);return this}function Pn(e){e||=Fn;function t(t,n){return t&&n?e(t.__data__,n.__data__):!t-!n}for(var n=this._groups,r=n.length,i=Array(r),a=0;at?1:e>=t?0:NaN}function In(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function Ln(){return Array.from(this)}function Rn(){for(var e=this._groups,t=0,n=e.length;t1?this.each((t==null?Xn:typeof t==`function`?Qn:Zn)(e,t,n??``)):B(this.node(),e)}function B(e,t){return e.style.getPropertyValue(t)||Yn(e).getComputedStyle(e,null).getPropertyValue(t)}function er(e){return function(){delete this[e]}}function tr(e,t){return function(){this[e]=t}}function nr(e,t){return function(){var n=t.apply(this,arguments);n==null?delete this[e]:this[e]=n}}function rr(e,t){return arguments.length>1?this.each((t==null?er:typeof t==`function`?nr:tr)(e,t)):this.node()[e]}function ir(e){return e.trim().split(/^|\s+/)}function ar(e){return e.classList||new or(e)}function or(e){this._node=e,this._names=ir(e.getAttribute(`class`)||``)}or.prototype={add:function(e){this._names.indexOf(e)<0&&(this._names.push(e),this._node.setAttribute(`class`,this._names.join(` `)))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute(`class`,this._names.join(` `)))},contains:function(e){return this._names.indexOf(e)>=0}};function sr(e,t){for(var n=ar(e),r=-1,i=t.length;++r=0&&(t=e.slice(n+1),e=e.slice(0,n)),{type:e,name:t}})}function Ir(e){return function(){var t=this.__on;if(t){for(var n=0,r=-1,i=t.length,a;n>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?hi(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?hi(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=ni.exec(e))?new W(t[1],t[2],t[3],1):(t=ri.exec(e))?new W(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=ii.exec(e))?hi(t[1],t[2],t[3],t[4]):(t=ai.exec(e))?hi(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=oi.exec(e))?Si(t[1],t[2]/100,t[3]/100,1):(t=si.exec(e))?Si(t[1],t[2]/100,t[3]/100,t[4]):ci.hasOwnProperty(e)?mi(ci[e]):e===`transparent`?new W(NaN,NaN,NaN,0):null}function mi(e){return new W(e>>16&255,e>>8&255,e&255,1)}function hi(e,t,n,r){return r<=0&&(e=t=n=NaN),new W(e,t,n,r)}function gi(e){return e instanceof Zr||(e=pi(e)),e?(e=e.rgb(),new W(e.r,e.g,e.b,e.opacity)):new W}function _i(e,t,n,r){return arguments.length===1?gi(e):new W(e,t,n,r??1)}function W(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}Yr(W,_i,Xr(Zr,{brighter(e){return e=e==null?$r:$r**+e,new W(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Qr:Qr**+e,new W(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new W(G(this.r),G(this.g),G(this.b),xi(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:vi,formatHex:vi,formatHex8:yi,formatRgb:bi,toString:bi}));function vi(){return`#${K(this.r)}${K(this.g)}${K(this.b)}`}function yi(){return`#${K(this.r)}${K(this.g)}${K(this.b)}${K((isNaN(this.opacity)?1:this.opacity)*255)}`}function bi(){let e=xi(this.opacity);return`${e===1?`rgb(`:`rgba(`}${G(this.r)}, ${G(this.g)}, ${G(this.b)}${e===1?`)`:`, ${e})`}`}function xi(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function G(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function K(e){return e=G(e),(e<16?`0`:``)+e.toString(16)}function Si(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new q(e,t,n,r)}function Ci(e){if(e instanceof q)return new q(e.h,e.s,e.l,e.opacity);if(e instanceof Zr||(e=pi(e)),!e)return new q;if(e instanceof q)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),a=Math.max(t,n,r),o=NaN,s=a-i,c=(a+i)/2;return s?(o=t===a?(n-r)/s+(n0&&c<1?0:o,new q(o,s,c,e.opacity)}function wi(e,t,n,r){return arguments.length===1?Ci(e):new q(e,t,n,r??1)}function q(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}Yr(q,wi,Xr(Zr,{brighter(e){return e=e==null?$r:$r**+e,new q(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Qr:Qr**+e,new q(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new W(Di(e>=240?e-240:e+120,i,r),Di(e,i,r),Di(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new q(Ti(this.h),Ei(this.s),Ei(this.l),xi(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){let e=xi(this.opacity);return`${e===1?`hsl(`:`hsla(`}${Ti(this.h)}, ${Ei(this.s)*100}%, ${Ei(this.l)*100}%${e===1?`)`:`, ${e})`}`}}));function Ti(e){return e=(e||0)%360,e<0?e+360:e}function Ei(e){return Math.max(0,Math.min(1,e||0))}function Di(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}var Oi=e=>()=>e;function ki(e,t){return function(n){return e+n*t}}function Ai(e,t,n){return e**=+n,t=t**+n-e,n=1/n,function(r){return(e+r*t)**+n}}function ji(e){return(e=+e)==1?Mi:function(t,n){return n-t?Ai(t,n,e):Oi(isNaN(t)?n:t)}}function Mi(e,t){var n=t-e;return n?ki(e,n):Oi(isNaN(e)?t:e)}var Ni=(function e(t){var n=ji(t);function r(e,t){var r=n((e=_i(e)).r,(t=_i(t)).r),i=n(e.g,t.g),a=n(e.b,t.b),o=Mi(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=i(t),e.b=a(t),e.opacity=o(t),e+``}}return r.gamma=e,r})(1);function J(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}var Pi=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Fi=new RegExp(Pi.source,`g`);function Ii(e){return function(){return e}}function Li(e){return function(t){return e(t)+``}}function Ri(e,t){var n=Pi.lastIndex=Fi.lastIndex=0,r,i,a,o=-1,s=[],c=[];for(e+=``,t+=``;(r=Pi.exec(e))&&(i=Fi.exec(t));)(a=i.index)>n&&(a=t.slice(n,a),s[o]?s[o]+=a:s[++o]=a),(r=r[0])===(i=i[0])?s[o]?s[o]+=i:s[++o]=i:(s[++o]=null,c.push({i:o,x:J(r,i)})),n=Fi.lastIndex;return n180?t+=360:t-e>180&&(e+=360),a.push({i:n.push(i(n)+`rotate(`,null,r)-2,x:J(e,t)}))}function s(e,t,n,a){e===t?t&&n.push(i(n)+`skewX(`+t+r):a.push({i:n.push(i(n)+`skewX(`,null,r)-2,x:J(e,t)})}function c(e,t,n,r,a,o){if(e!==n||t!==r){var s=a.push(i(a)+`scale(`,null,`,`,null,`)`);o.push({i:s-4,x:J(e,n)},{i:s-2,x:J(t,r)})}else (n!==1||r!==1)&&a.push(i(a)+`scale(`+n+`,`+r+`)`)}return function(t,n){var r=[],i=[];return t=e(t),n=e(n),a(t.translateX,t.translateY,n.translateX,n.translateY,r,i),o(t.rotate,n.rotate,r,i),s(t.skewX,n.skewX,r,i),c(t.scaleX,t.scaleY,n.scaleX,n.scaleY,r,i),t=n=null,function(e){for(var t=-1,n=i.length,a;++t=0&&e._call.call(void 0,t),e=e._next;--Y}function la(){ea=($i=na.now())+ta,Y=Ji=0;try{ca()}finally{Y=0,da(),ea=0}}function ua(){var e=na.now(),t=e-$i;t>Xi&&(ta-=t,$i=e)}function da(){for(var e,t=Zi,n,r=1/0;t;)t._call?(r>t._time&&(r=t._time),e=t,t=t._next):(n=t._next,t._next=null,t=e?e._next=n:Zi=n);Qi=e,fa(r)}function fa(e){Y||(Ji&&=clearTimeout(Ji),e-ea>24?(e<1/0&&(Ji=setTimeout(la,e-na.now()-ta)),Yi&&=clearInterval(Yi)):(Yi||=($i=na.now(),setInterval(ua,Xi)),Y=1,ra(la)))}function pa(e,t,n){var r=new oa;return t=t==null?0:+t,r.restart(n=>{r.stop(),e(n+t)},t,n),r}var ma=Yt(`start`,`end`,`cancel`,`interrupt`),ha=[];function ga(e,t,n,r,i,a){var o=e.__transition;if(!o)e.__transition={};else if(n in o)return;va(e,n,{name:t,index:r,group:i,on:ma,tween:ha,time:a.time,delay:a.delay,duration:a.duration,ease:a.ease,timer:null,state:0})}function _a(e,t){var n=Z(e,t);if(n.state>0)throw Error(`too late; already scheduled`);return n}function X(e,t){var n=Z(e,t);if(n.state>3)throw Error(`too late; already running`);return n}function Z(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw Error(`transition not found`);return n}function va(e,t,n){var r=e.__transition,i;r[t]=n,n.timer=sa(a,0,n.time);function a(e){n.state=1,n.timer.restart(o,n.delay,n.time),n.delay<=e&&o(e-n.delay)}function o(a){var l,u,d,f;if(n.state!==1)return c();for(l in r)if(f=r[l],f.name===n.name){if(f.state===3)return pa(o);f.state===4?(f.state=6,f.timer.stop(),f.on.call(`interrupt`,e,e.__data__,f.index,f.group),delete r[l]):+l2&&r.state<5,r.state=6,r.timer.stop(),r.on.call(i?`interrupt`:`cancel`,e,e.__data__,r.index,r.group),delete n[o]}a&&delete e.__transition}}function ba(e){return this.each(function(){ya(this,e)})}function xa(e,t){var n,r;return function(){var i=X(this,e),a=i.tween;if(a!==n){r=n=a;for(var o=0,s=r.length;o=0&&(e=e.slice(0,t)),!e||e===`start`})}function Za(e,t,n){var r,i,a=Xa(t)?_a:X;return function(){var o=a(this,e),s=o.on;s!==r&&(i=(r=s).copy()).on(t,n),o.on=i}}function Qa(e,t){var n=this._id;return arguments.length<2?Z(this.node(),n).on.on(e):this.each(Za(n,e,t))}function $a(e){return function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}}function eo(){return this.on(`end.remove`,$a(this._id))}function to(e){var t=this._name,n=this._id;typeof e!=`function`&&(e=nn(e));for(var r=this._groups,i=r.length,a=Array(i),o=0;o=0;)t+=n[r].value;e.value=t}function Fo(){return this.eachAfter(Po)}function Io(e,t){let n=-1;for(let r of this)e.call(t,r,++n,this);return this}function Lo(e,t){for(var n=this,r=[n],i,a,o=-1;n=r.pop();)if(e.call(t,n,++o,this),i=n.children)for(a=i.length-1;a>=0;--a)r.push(i[a]);return this}function Ro(e,t){for(var n=this,r=[n],i=[],a,o,s,c=-1;n=r.pop();)if(i.push(n),a=n.children)for(o=0,s=a.length;o=0;)n+=r[i].value;t.value=n})}function Vo(e){return this.eachBefore(function(t){t.children&&t.children.sort(e)})}function Ho(e){for(var t=this,n=Uo(t,e),r=[t];t!==n;)t=t.parent,r.push(t);for(var i=r.length;e!==n;)r.splice(i,0,e),e=e.parent;return r}function Uo(e,t){if(e===t)return e;var n=e.ancestors(),r=t.ancestors(),i=null;for(e=n.pop(),t=r.pop();e===t;)i=e,e=n.pop(),t=r.pop();return i}function Wo(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t}function Go(){return Array.from(this)}function Ko(){var e=[];return this.eachBefore(function(t){t.children||e.push(t)}),e}function qo(){var e=this,t=[];return e.each(function(n){n!==e&&t.push({source:n.parent,target:n})}),t}function*Jo(){var e=this,t,n=[e],r,i,a;do for(t=n.reverse(),n=[];e=t.pop();)if(yield e,r=e.children)for(i=0,a=r.length;i=0;--s)i.push(a=o[s]=new ts(o[s])),a.parent=r,a.depth=r.depth+1;return n.eachBefore(es)}function Xo(){return Yo(this).eachBefore($o)}function Zo(e){return e.children}function Qo(e){return Array.isArray(e)?e[1]:null}function $o(e){e.data.value!==void 0&&(e.value=e.data.value),e.data=e.data.data}function es(e){var t=0;do e.height=t;while((e=e.parent)&&e.height<++t)}function ts(e){this.data=e,this.depth=this.height=0,this.parent=null}ts.prototype=Yo.prototype={constructor:ts,count:Fo,each:Io,eachAfter:Ro,eachBefore:Lo,find:zo,sum:Bo,sort:Vo,path:Ho,ancestors:Wo,descendants:Go,leaves:Ko,links:qo,copy:Xo,[Symbol.iterator]:Jo};function ns(e,t){return e.parent===t.parent?1:2}function rs(e){var t=e.children;return t?t[0]:e.t}function is(e){var t=e.children;return t?t[t.length-1]:e.t}function as(e,t,n){var r=n/(t.i-e.i);t.c-=r,t.s+=n,e.c+=r,t.z+=n,t.m+=n}function os(e){for(var t=0,n=0,r=e.children,i=r.length,a;--i>=0;)a=r[i],a.z+=t,a.m+=t,t+=a.s+(n+=a.c)}function ss(e,t,n){return e.a.parent===t.parent?e.a:n}function cs(e,t){this._=e,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=t}cs.prototype=Object.create(ts.prototype);function ls(e){for(var t=new cs(e,0),n,r=[t],i,a,o,s;n=r.pop();)if(a=n._.children)for(n.children=Array(s=a.length),o=s-1;o>=0;--o)r.push(i=n.children[o]=new cs(a[o],o)),i.parent=n;return(t.parent=new cs(null,0)).children=[t],t}function us(){var e=ns,t=1,n=1,r=null;function i(i){var s=ls(i);if(s.eachAfter(a),s.parent.m=-s.z,s.eachBefore(o),r)i.eachBefore(c);else{var l=i,u=i,d=i;i.eachBefore(function(e){e.xu.x&&(u=e),e.depth>d.depth&&(d=e)});var f=l===u?1:e(l,u)/2,p=f-l.x,m=t/(u.x+f+p),h=n/(d.depth||1);i.eachBefore(function(e){e.x=(e.x+p)*m,e.y=e.depth*h})}return i}function a(t){var n=t.children,r=t.parent.children,i=t.i?r[t.i-1]:null;if(n){os(t);var a=(n[0].z+n[n.length-1].z)/2;i?(t.z=i.z+e(t._,i._),t.m=t.z-a):t.z=a}else i&&(t.z=i.z+e(t._,i._));t.parent.A=s(t,i,t.parent.A||r[0])}function o(e){e._.x=e.z+e.parent.m,e.m+=e.parent.m}function s(t,n,r){if(n){for(var i=t,a=t,o=n,s=i.parent.children[0],c=i.m,l=a.m,u=o.m,d=s.m,f;o=is(o),i=rs(i),o&&i;)s=rs(s),a=is(a),a.a=t,f=o.z+u-i.z-c+e(o._,i._),f>0&&(as(ss(o,t,r),t,f),c+=f,l+=f),u+=o.m,c+=i.m,d+=s.m,l+=a.m;o&&!is(a)&&(a.t=o,a.m+=u-l),i&&!rs(s)&&(s.t=i,s.m+=c-d,r=t)}return r}function c(e){e.x*=t,e.y=e.depth*n}return i.separation=function(t){return arguments.length?(e=t,i):e},i.size=function(e){return arguments.length?(r=!1,t=+e[0],n=+e[1],i):r?null:[t,n]},i.nodeSize=function(e){return arguments.length?(r=!0,t=+e[0],n=+e[1],i):r?[t,n]:null},i}function ds(e,t,n){this.k=e,this.x=t,this.y=n}ds.prototype={constructor:ds,scale:function(e){return e===1?this:new ds(this.k*e,this.x,this.y)},translate:function(e,t){return e===0&t===0?this:new ds(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return`translate(`+this.x+`,`+this.y+`) scale(`+this.k+`)`}};var fs=new ds(1,0,0);ps.prototype=ds.prototype;function ps(e){for(;!e.__zoom;)if(!(e=e.parentNode))return fs;return e.__zoom}var ms={class:`mb-4 flex items-center justify-between`},hs={class:`flex items-center gap-2`},gs=[`title`],_s={class:`flex flex-wrap gap-2 text-sm text-base-content/60`},vs={class:`mb-4 flex flex-wrap gap-4 text-xs`},ys={class:`flex items-center gap-1`},bs={class:`flex items-center gap-1`},xs={class:`flex items-center gap-1`},Ss={class:`flex items-center gap-1`},Cs={class:`flex items-center gap-1`},ws={key:0,class:`flex flex-col items-center justify-center py-8 text-base-content/60`},Ts=e({__name:`NetworkTopology`,setup(e){let{t}=k(),r=he(),o=M(),l=A(null),u=A(null),d=A(new Set),p=A(!1),h=A(null),_=m(()=>p.value&&h.value?h.value:r.activeConnections),y=null,b=null,x=null;function C(e,t=`600 11px sans-serif`){x||=document.createElement(`canvas`);let n=x.getContext(`2d`);return n?(n.font=t,n.measureText(e).width):e.length*7}let ee=!1;function T(){ee||(ee=!0,requestAnimationFrame(()=>{ee=!1,ue()}))}let j=m(()=>{let e=_.value,t=new Map;e.forEach(e=>{let n=e.metadata.sourceIP||`Unknown`,r=String(e.metadata.sourcePort||`Unknown`),i=e.rule||`Direct`,a=e.rulePayload,o=a?`${i}: ${a}`:i,s=e.chains||[],c=s[0]??`Direct`,l=s.length>1?s[1]??`Direct`:s[0]??`Direct`,u=e.download+e.upload;t.has(l)||t.set(l,{data:{id:`group-${l}`,name:l,type:`group`,connections:0,traffic:0},proxies:new Map});let d=t.get(l);d.data.connections++,d.data.traffic+=u,d.proxies.has(c)||d.proxies.set(c,{data:{id:`proxy-${l}-${c}`,name:c,type:`proxy`,connections:0,traffic:0},rules:new Map});let f=d.proxies.get(c);f.data.connections++,f.data.traffic+=u,f.rules.has(o)||f.rules.set(o,{data:{id:`rule-${l}-${c}-${o}`,name:o,type:`rule`,connections:0,traffic:0},clients:new Map});let p=f.rules.get(o);p.data.connections++,p.data.traffic+=u,p.clients.has(n)||p.clients.set(n,{data:{id:`client-${l}-${c}-${o}-${n}`,name:n,type:`client`,connections:0,traffic:0},ports:new Map});let m=p.clients.get(n);m.data.connections++,m.data.traffic+=u,m.ports.has(r)||m.ports.set(r,{id:`port-${l}-${c}-${o}-${n}-${r}`,name:r,type:`port`,connections:0,traffic:0});let h=m.ports.get(r);h.connections++,h.traffic+=u});let n=[];function r(e,t=!1){return(d.value.has(e.id)||t)&&e.children&&e.children.length>0?{...e,_children:e.children,children:void 0,collapsed:!0}:{...e,collapsed:!1}}return t.forEach(e=>{let t={...e.data,children:[]};e.proxies.forEach(e=>{let n={...e.data,children:[]};e.rules.forEach(e=>{let t={...e.data,children:[]};e.clients.forEach(e=>{let n=Array.from(e.ports.values()),r=d.value.has(`expanded-${e.data.id}`)?{...e.data,children:n,collapsed:!1}:{...e.data,_children:n,children:void 0,collapsed:!0};t.children.push(r)}),!d.value.has(`expanded-${e.data.id}`)&&t.children.length>0?(t._children=t.children,t.children=void 0,t.collapsed=!0):t.collapsed=!1,n.children.push(t)});let i=r(n);t.children.push(i)});let i=r(t);n.push(i)}),{id:`root`,name:`Connections`,type:`root`,connections:e.length,traffic:e.reduce((e,t)=>e+t.download+t.upload,0),children:n}}),N=m(()=>{let e=_.value,t=new Set,n=new Set,r=new Set,i=new Set;return e.forEach(e=>{t.add(e.metadata.sourceIP||`Unknown`),n.add(e.rule||`Direct`);let a=e.chains||[];i.add(a[0]??`Direct`),r.add(a.length>1?a[1]??`Direct`:a[0]??`Direct`)}),{clientCount:t.size,ruleCount:n.size,groupCount:r.size,proxyCount:i.size,totalTraffic:e.reduce((e,t)=>e+t.download+t.upload,0)}});function te(){let e=ve();return{root:{fill:e.neutral,bg:`color-mix(in oklch, ${e.neutral} 15%, transparent)`},client:{fill:e.primary,bg:`color-mix(in oklch, ${e.primary} 15%, transparent)`},port:{fill:e.warning,bg:`color-mix(in oklch, ${e.warning} 15%, transparent)`},rule:{fill:e.secondary,bg:`color-mix(in oklch, ${e.secondary} 15%, transparent)`},group:{fill:e.accent,bg:`color-mix(in oklch, ${e.accent} 15%, transparent)`},proxy:{fill:e.info,bg:`color-mix(in oklch, ${e.info} 15%, transparent)`},baseContent:e.baseContent}}function F(){let e=o.curTheme;return y&&b===e?y:(y=te(),b=e,y)}function I(e){return F()[e].fill}function ie(e){return F()[e].bg}function L(e){switch(e){case`client`:return re;case`port`:return P;case`rule`:return ne;case`group`:return fe;case`proxy`:return ae;default:return fe}}function le(e,t){let n=`expanded-${e}`;t?e.startsWith(`rule-`)||e.startsWith(`client-`)?d.value.add(n):d.value.delete(e):e.startsWith(`rule-`)||e.startsWith(`client-`)?d.value.delete(n):d.value.add(e)}function ue(){if(!l.value||!u.value)return;let e=j.value;if(!e.children||e.children.length===0)return;Jr(l.value).selectAll(`*`).remove();let t=Yo(e),n=u.value.clientWidth;us().nodeSize([50,100]).separation((e,t)=>e.parent===t.parent?1:1.5)(t);let r=new Map,i=t.descendants();for(let e of i)if(e.data.type!==`root`){let t=C(e.data.name),n=e.data.children&&e.data.children.length>0||e.data._children&&e.data._children.length>0?20:0;r.set(e.data.id,t+32+n)}function a(e){return r.get(e.data.id)??80}let o=new Map;t.descendants().forEach(e=>{if(e.data.type!==`root`){let t=a(e),n=o.get(e.depth)??0;o.set(e.depth,Math.max(n,t))}});let s=new Map,c=0;for(let e=1;e<=o.size;e++){let t=o.get(e)??100;if(e===1)c=t/2;else{let n=o.get(e-1)??100;c+=n/2+40+t/2}s.set(e,c)}t.descendants().forEach(e=>{e.data.type!==`root`&&e.depth>0&&(e.y=s.get(e.depth)??e.y)});let d=1/0,f=-1/0;t.each(e=>{let t=e.x??0;tf&&(f=t)});let p=f-d+50,m=Math.max(400,p+25+40),h=0;t.each(e=>{if(e.data.type!==`root`){let t=r.get(e.data.id)??80,n=(e.y??0)+t/2;n>h&&(h=n)}});let g=Math.max(n,h+60+40),_=Jr(l.value).attr(`width`,g).attr(`height`,m).append(`g`).attr(`transform`,`translate(60, ${-d+50/2+25})`),v=F(),y=t.links().filter(e=>e.source.data.type!==`root`);_.selectAll(`.link`).data(y).join(`path`).attr(`class`,`link`).attr(`d`,e=>{let t=e.source,n=e.target,r=a(t),i=a(n),o=t.y-0+r/2,s=t.x,c=n.y-0-i/2,l=n.x,u=(o+c)/2;return`M${o},${s} C${u},${s} ${u},${l} ${c},${l}`}).attr(`fill`,`none`).attr(`stroke`,v.baseContent).attr(`stroke-opacity`,.3).attr(`stroke-width`,e=>Math.max(1,Math.min(4,e.target.data.connections/5)));let b=_.selectAll(`.node`).data(t.descendants().filter(e=>e.data.type!==`root`)).join(`g`).attr(`class`,`node`).attr(`transform`,e=>`translate(${(e.y??0)-0},${e.x})`).style(`cursor`,e=>e.data.children&&e.data.children.length>0||e.data._children&&e.data._children.length>0?`pointer`:`default`).on(`click`,(e,t)=>{(t.data.children&&t.data.children.length>0||t.data._children&&t.data._children.length>0)&&le(t.data.id,t.data.collapsed??!1)});b.append(`text`).attr(`dy`,-30/2-4).attr(`text-anchor`,`middle`).attr(`fill`,e=>I(e.data.type)).attr(`font-size`,`10px`).attr(`font-weight`,`500`).text(e=>`${e.data.connections}`),b.append(`rect`).attr(`x`,e=>-a(e)/2).attr(`y`,-30/2).attr(`width`,e=>a(e)).attr(`height`,30).attr(`rx`,6).attr(`fill`,e=>ie(e.data.type)).attr(`stroke`,e=>I(e.data.type)).attr(`stroke-width`,2),b.filter(e=>!!(e.data.children&&e.data.children.length>0||e.data._children&&e.data._children.length>0)).append(`text`).attr(`x`,e=>a(e)/2-12).attr(`dy`,`0.35em`).attr(`text-anchor`,`middle`).attr(`fill`,e=>I(e.data.type)).attr(`font-size`,`14px`).attr(`font-weight`,`700`).text(e=>e.data.collapsed?`+`:`−`),b.append(`text`).attr(`dy`,`0.31em`).attr(`text-anchor`,`middle`).attr(`fill`,e=>I(e.data.type)).attr(`font-size`,`11px`).attr(`font-weight`,`600`).text(e=>e.data.name),b.append(`title`).text(e=>`${e.data.name}\n${e.data.connections} connections\n${z(e.data.traffic).toString()}`)}function de(){p.value?h.value=null:h.value=[...r.activeConnections],p.value=!p.value}return v([()=>j.value,()=>o.curTheme],()=>{E(T)},{deep:!0}),g(()=>{E(T);let e=new ResizeObserver(()=>T());u.value&&e.observe(u.value),w(()=>{e.disconnect(),x=null,y=null})}),(e,r)=>(D(),s(`div`,null,[a(`div`,ms,[a(`div`,hs,[a(`button`,{class:n([`btn btn-circle btn-ghost btn-xs`,{"text-warning":i(p)}]),title:i(p)?i(t)(`resume`):i(t)(`pause`),onClick:de},[i(p)?(D(),c(i(se),{key:0,class:`h-4 w-4`})):(D(),c(i(oe),{key:1,class:`h-4 w-4`}))],10,gs)]),a(`div`,_s,[a(`span`,null,S(i(N).clientCount)+` `+S(i(t)(`clients`)),1),r[0]||=a(`span`,null,`·`,-1),a(`span`,null,S(i(N).ruleCount)+` `+S(i(t)(`rules`)),1),r[1]||=a(`span`,null,`·`,-1),a(`span`,null,S(i(N).groupCount)+` `+S(i(t)(`groups`)),1),r[2]||=a(`span`,null,`·`,-1),a(`span`,null,S(i(N).proxyCount)+` `+S(i(t)(`nodes`)),1),r[3]||=a(`span`,null,`·`,-1),a(`span`,null,S(i(z)(i(N).totalTraffic).toString()),1)])]),a(`div`,vs,[a(`div`,ys,[(D(),c(O(L(`group`)),{class:`h-4 w-4 text-accent`})),a(`span`,null,S(i(t)(`proxyGroups`)),1)]),a(`div`,bs,[(D(),c(O(L(`proxy`)),{class:`h-4 w-4 text-info`})),a(`span`,null,S(i(t)(`proxyNodes`)),1)]),a(`div`,xs,[(D(),c(O(L(`rule`)),{class:`h-4 w-4 text-secondary`})),a(`span`,null,S(i(t)(`rules`)),1)]),a(`div`,Ss,[(D(),c(O(L(`client`)),{class:`h-4 w-4 text-primary`})),a(`span`,null,S(i(t)(`sourceIP`)),1)]),a(`div`,Cs,[(D(),c(O(L(`port`)),{class:`h-4 w-4 text-warning`})),a(`span`,null,S(i(t)(`sourcePort`)),1)])]),i(_).length===0?(D(),s(`div`,ws,[f(i(ce),{class:`mb-2 h-8 w-8 animate-pulse`}),a(`span`,null,S(i(t)(`waitingForConnections`)),1)])):(D(),s(`div`,{key:1,ref_key:`containerRef`,ref:u,class:`touch-pan-x touch-pan-y overflow-x-auto`},[(D(),s(`svg`,{ref_key:`svgRef`,ref:l,class:`min-h-100`},null,512))],512))]))}}),Es=Object.assign(Ts,{__name:`NetworkTopology`}),Ds={class:`rounded-box bg-base-300 p-4`},Os={class:`mb-4 flex flex-col gap-2`},ks={class:`flex items-center justify-between gap-2`},As={class:`flex items-center gap-2`},js={class:`text-xl font-bold text-base-content`},Ms=[`data-tip`],Ns={class:`btn btn-circle text-info btn-ghost btn-xs`},Ps={class:`hidden sm:inline`},Fs={key:0,class:`stats stats-vertical bg-base-200 shadow sm:stats-horizontal`},Is={class:`stat py-2`},Ls={class:`stat-title text-xs`},Rs={class:`stat-value text-lg text-primary`},zs={key:0,class:`stat py-2`},Bs={class:`stat-title text-xs`},Vs=[`title`],Hs={class:`flex items-center gap-1`},Us={class:`stat py-2`},Ws={class:`stat-title text-xs`},Gs={class:`stat-value text-lg`},Ks={class:`stat py-2`},qs={class:`stat-title text-xs`},Js={class:`stat-value text-lg`},Ys={class:`stat py-2`},Xs={class:`stat-title text-xs`},Zs={class:`stat-value text-lg text-secondary`},Qs={class:`hidden overflow-x-auto rounded-md lg:block`},$s={class:`table w-full table-zebra`},ec={class:`bg-base-200`},tc={class:`text-base-content`},nc={class:`flex items-center gap-2`},rc={class:`text-base-content`},ic={class:`text-base-content`},ac={class:`text-base-content`},oc={class:`text-base-content`},sc={class:`text-base-content`},cc={key:0},lc={colspan:`6`,class:`text-center text-base-content/70`},uc=[`onClick`],dc={colspan:`6`,class:`py-2`},fc={class:`flex items-center gap-2`},pc={class:`font-semibold text-primary`},mc={class:`text-xs text-base-content/60`},hc={class:`text-xs text-base-content/60`},gc={class:`font-mono text-base-content`},_c=[`title`],vc={class:`flex items-center gap-1`},yc={class:`text-sm`},bc={class:`text-base-content`},xc={class:`text-base-content`},Sc={class:`font-bold text-primary`},Cc=[`title`,`onClick`],wc={class:`flex flex-col gap-3 lg:hidden`},Tc={key:0,class:`flex flex-col gap-2 rounded-lg bg-base-200 p-3`},Ec={class:`flex items-center gap-2`},Dc={class:`text-xs font-semibold text-base-content/60`},Oc={class:`flex flex-1 gap-2`},kc={class:`flex items-center gap-2`},Ac={class:`text-xs font-semibold text-base-content/60`},jc={class:`flex flex-1 gap-2`},Mc={key:1,class:`rounded-lg bg-base-200 p-4 text-center text-base-content/70`},Nc=[`onClick`],Pc={class:`card-body p-4`},Fc={class:`flex items-center justify-between`},Ic={class:`font-semibold text-primary`},Lc={class:`text-xs text-base-content/60`},Rc={class:`card-body p-4`},zc={class:`mb-2 flex items-start justify-between`},Bc={class:`flex-1`},Vc={class:`text-xs font-semibold text-base-content/60 uppercase`},Hc={class:`font-mono text-sm font-bold text-base-content`},Uc=[`title`,`onClick`],Wc={key:0,class:`mb-2`},Gc={class:`text-xs font-semibold text-base-content/60 uppercase`},Kc={class:`flex items-center gap-1 text-sm text-base-content`},qc={class:`text-xs text-base-content/60`},Jc={class:`grid grid-cols-3 gap-2`},Yc={class:`text-xs font-semibold text-base-content/60 uppercase`},Xc={class:`text-sm font-medium text-base-content`},Zc={class:`text-xs font-semibold text-base-content/60 uppercase`},Qc={class:`text-sm font-medium text-base-content`},$c={class:`text-xs font-semibold text-base-content/60 uppercase`},el={class:`text-sm font-bold text-primary`},tl=e({__name:`DataUsageTable`,setup(e){let{t,locale:u}=k(),g=he(),v=A(`total`),y=A(`desc`),x=A(null),C=A({}),w=r(`showDataUsageTable`,!1),E=e=>z(e).toString();function O(e){v.value===e?y.value=y.value===`asc`?`desc`:`asc`:(v.value=e,y.value=`desc`)}function j(e){x.value===e?(x.value=null,C.value={}):(x.value=e,C.value={})}function M(e){C.value[e]=!C.value[e]}let N=m(()=>{let e=Object.values(g.dataUsageMap),t=v.value,n=y.value;return e.sort((e,r)=>{let i=0;switch(t){case`ip`:i=e.sourceIP.localeCompare(r.sourceIP);break;case`duration`:i=(e.firstSeen?e.lastSeen-e.firstSeen:0)-(r.firstSeen?r.lastSeen-r.firstSeen:0);break;case`upload`:i=e.upload-r.upload;break;case`download`:i=e.download-r.download;break;case`total`:i=e.total-r.total;break}return n===`asc`?i:-i})}),te=m(()=>{let e=N.value;if(!x.value)return e.map(e=>({type:`data`,original:e,depth:0}));let t=new Map;for(let n of e){let e=n.sourceIP,r=t.get(e);r?r.push(n):t.set(e,[n])}let n=[];for(let[e,r]of t)if(n.push({type:`group`,key:e,depth:0,subRows:r}),C.value[e])for(let e of r)n.push({type:`data`,original:e,depth:1});return n}),P=m(()=>{let e=N.value,t=e.reduce((e,t)=>e+t.upload,0),n=e.reduce((e,t)=>e+t.download,0),r=2**53-1,i=0;e.forEach(e=>{e.firstSeen&&e.firstSeeni&&(i=e.lastSeen)});let a=r!==2**53-1&&i>0;return{count:e.length,upload:t,download:n,total:t+n,firstSeen:a?r:void 0,lastSeen:a?i:void 0}});function ne(){confirm(t(`confirmClearAll`))&&g.clearDataUsage()}function F(e){g.removeDataUsageEntry(e)}return(e,r)=>(D(),s(`div`,Ds,[a(`div`,Os,[a(`div`,ks,[a(`div`,As,[a(`h2`,js,S(i(t)(`dataUsage`)),1),a(`div`,{class:`tooltip tooltip-top before:ml-4 before:max-w-xs before:rounded-lg before:p-2 before:text-xs before:content-[attr(data-tip)] md:tooltip-right md:before:ml-0 md:before:text-sm lg:before:text-base`,"data-tip":i(t)(`dataUsageInfo`)},[a(`button`,Ns,[f(i(pe),{size:18})])],8,Ms),ee(a(`input`,{"onUpdate:modelValue":r[0]||=e=>b(w)?w.value=e:null,type:`checkbox`,class:`toggle toggle-primary`},null,512),[[l,i(w)]])]),i(w)?(D(),s(`button`,{key:0,class:`btn btn-sm btn-error`,onClick:ne},[f(i(ue),{size:16}),a(`span`,Ps,S(i(t)(`clearAll`)),1)])):T(``,!0)]),i(w)?(D(),s(o,{key:0},[i(P).count>0?(D(),s(`div`,Fs,[a(`div`,Is,[a(`div`,Ls,S(i(t)(`devices`)),1),a(`div`,Rs,S(i(P).count),1)]),i(P).firstSeen&&i(P).lastSeen?(D(),s(`div`,zs,[a(`div`,Bs,S(i(t)(`timeRange`)),1),a(`div`,{class:`stat-value text-sm`,title:i(ye)(i(P).firstSeen,i(P).lastSeen,i(u))},[a(`div`,Hs,[f(i(L),{size:16}),a(`span`,null,S(i(_e)(i(P).firstSeen,i(P).lastSeen)),1)])],8,Vs)])):T(``,!0),a(`div`,Us,[a(`div`,Ws,S(i(t)(`uploadTotal`)),1),a(`div`,Gs,S(E(i(P).upload)),1)]),a(`div`,Ks,[a(`div`,qs,S(i(t)(`downloadTotal`)),1),a(`div`,Js,S(E(i(P).download)),1)]),a(`div`,Ys,[a(`div`,Xs,S(i(t)(`grandTotal`)),1),a(`div`,Zs,S(E(i(P).total)),1)])])):T(``,!0),a(`div`,Qs,[a(`table`,$s,[a(`thead`,null,[a(`tr`,ec,[a(`th`,tc,[a(`div`,nc,[a(`button`,{class:`flex items-center gap-1 hover:text-primary`,onClick:r[1]||=e=>O(`ip`)},[a(`span`,null,S(i(t)(`ipAddress`)),1),i(v)===`ip`&&i(y)===`asc`?(D(),c(i(I),{key:0,size:14})):i(v)===`ip`&&i(y)===`desc`?(D(),c(i(R),{key:1,size:14})):T(``,!0)]),i(x)===`ip`?(D(),s(`button`,{key:1,class:`cursor-pointer text-primary`,onClick:r[3]||=p(e=>j(`ip`),[`stop`])},[f(i(de),{size:16})])):(D(),s(`button`,{key:0,class:`cursor-pointer`,onClick:r[2]||=p(e=>j(`ip`),[`stop`])},[f(i(le),{size:16})]))])]),a(`th`,rc,[a(`button`,{class:`flex items-center gap-1 hover:text-primary`,onClick:r[4]||=e=>O(`duration`)},[a(`span`,null,S(i(t)(`duration`)),1),i(v)===`duration`&&i(y)===`asc`?(D(),c(i(I),{key:0,size:14})):i(v)===`duration`&&i(y)===`desc`?(D(),c(i(R),{key:1,size:14})):T(``,!0)])]),a(`th`,ic,[a(`button`,{class:`flex items-center gap-1 hover:text-primary`,onClick:r[5]||=e=>O(`upload`)},[a(`span`,null,S(i(t)(`upload`)),1),i(v)===`upload`&&i(y)===`asc`?(D(),c(i(I),{key:0,size:14})):i(v)===`upload`&&i(y)===`desc`?(D(),c(i(R),{key:1,size:14})):T(``,!0)])]),a(`th`,ac,[a(`button`,{class:`flex items-center gap-1 hover:text-primary`,onClick:r[6]||=e=>O(`download`)},[a(`span`,null,S(i(t)(`download`)),1),i(v)===`download`&&i(y)===`asc`?(D(),c(i(I),{key:0,size:14})):i(v)===`download`&&i(y)===`desc`?(D(),c(i(R),{key:1,size:14})):T(``,!0)])]),a(`th`,oc,[a(`button`,{class:`flex items-center gap-1 hover:text-primary`,onClick:r[7]||=e=>O(`total`)},[a(`span`,null,S(i(t)(`total`)),1),i(v)===`total`&&i(y)===`asc`?(D(),c(i(I),{key:0,size:14})):i(v)===`total`&&i(y)===`desc`?(D(),c(i(R),{key:1,size:14})):T(``,!0)])]),a(`th`,sc,S(i(t)(`actions`)),1)])]),a(`tbody`,null,[i(N).length===0?(D(),s(`tr`,cc,[a(`td`,lc,S(i(t)(`noDataUsageYet`)),1)])):(D(!0),s(o,{key:1},_(i(te),e=>(D(),s(o,{key:e.type===`group`?`group-${e.key}`:`data-${e.original.sourceIP}`},[e.type===`group`?(D(),s(`tr`,{key:0,class:`cursor-pointer bg-base-200 hover:bg-base-300`,onClick:t=>M(e.key)},[a(`td`,dc,[a(`div`,fc,[a(`span`,pc,S(i(t)(`ipAddress`))+`: `+S(e.key),1),a(`span`,mc,` (`+S(e.subRows.length)+` `+S(e.subRows.length===1?i(t)(`devices`).slice(0,-1):i(t)(`devices`))+`) `,1),a(`span`,hc,S(i(t)(`total`))+`: `+S(E(e.subRows.reduce((e,t)=>e+t.total,0))),1),i(C)[e.key]?(D(),c(i(R),{key:0,size:14,class:`ml-auto`})):(D(),c(i(I),{key:1,size:14,class:`ml-auto`}))])])],8,uc)):e.type===`data`?(D(),s(`tr`,{key:1,class:`hover`,style:d({paddingLeft:`${e.depth*1}rem`})},[a(`td`,gc,S(e.original.sourceIP),1),a(`td`,{class:`text-base-content`,title:e.original.firstSeen?i(ye)(e.original.firstSeen,e.original.lastSeen,i(u)):`-`},[a(`div`,vc,[f(i(L),{size:14,class:`text-base-content/60`}),a(`span`,yc,S(e.original.firstSeen?i(_e)(e.original.firstSeen,e.original.lastSeen):`-`),1)])],8,_c),a(`td`,bc,S(E(e.original.upload)),1),a(`td`,xc,S(E(e.original.download)),1),a(`td`,Sc,S(E(e.original.total)),1),a(`td`,null,[a(`button`,{class:`btn text-error btn-ghost btn-xs hover:bg-error/20`,title:i(t)(`remove`),onClick:p(t=>F(e.original.sourceIP),[`stop`])},[f(i(ue),{size:14})],8,Cc)])],4)):T(``,!0)],64))),128))])])]),a(`div`,wc,[i(N).length>0?(D(),s(`div`,Tc,[a(`div`,Ec,[a(`div`,Dc,S(i(t)(`sortBy`)),1),a(`div`,Oc,[a(`button`,{class:n([`btn flex-1 btn-xs`,i(v)===`ip`?`btn-primary`:`btn-ghost`]),onClick:r[8]||=e=>O(`ip`)},[h(S(i(t)(`ipShort`))+` `,1),i(v)===`ip`&&i(y)===`asc`?(D(),c(i(I),{key:0,size:12})):i(v)===`ip`&&i(y)===`desc`?(D(),c(i(R),{key:1,size:12})):T(``,!0)],2),a(`button`,{class:n([`btn flex-1 btn-xs`,i(v)===`duration`?`btn-primary`:`btn-ghost`]),onClick:r[9]||=e=>O(`duration`)},[h(S(i(t)(`duration`))+` `,1),i(v)===`duration`&&i(y)===`asc`?(D(),c(i(I),{key:0,size:12})):i(v)===`duration`&&i(y)===`desc`?(D(),c(i(R),{key:1,size:12})):T(``,!0)],2),a(`button`,{class:n([`btn flex-1 btn-xs`,i(v)===`upload`?`btn-primary`:`btn-ghost`]),onClick:r[10]||=e=>O(`upload`)},[h(S(i(t)(`upload`))+` `,1),i(v)===`upload`&&i(y)===`asc`?(D(),c(i(I),{key:0,size:12})):i(v)===`upload`&&i(y)===`desc`?(D(),c(i(R),{key:1,size:12})):T(``,!0)],2),a(`button`,{class:n([`btn flex-1 btn-xs`,i(v)===`download`?`btn-primary`:`btn-ghost`]),onClick:r[11]||=e=>O(`download`)},[h(S(i(t)(`download`))+` `,1),i(v)===`download`&&i(y)===`asc`?(D(),c(i(I),{key:0,size:12})):i(v)===`download`&&i(y)===`desc`?(D(),c(i(R),{key:1,size:12})):T(``,!0)],2),a(`button`,{class:n([`btn flex-1 btn-xs`,i(v)===`total`?`btn-primary`:`btn-ghost`]),onClick:r[12]||=e=>O(`total`)},[h(S(i(t)(`total`))+` `,1),i(v)===`total`&&i(y)===`asc`?(D(),c(i(I),{key:0,size:12})):i(v)===`total`&&i(y)===`desc`?(D(),c(i(R),{key:1,size:12})):T(``,!0)],2)])]),a(`div`,kc,[a(`div`,Ac,S(i(t)(`groupBy`)),1),a(`div`,jc,[a(`button`,{class:n([`btn flex-1 btn-xs`,i(x)===`ip`?`btn-primary`:`btn-ghost`]),onClick:r[13]||=e=>j(`ip`)},[h(S(i(t)(`ipShort`))+` `,1),i(x)===`ip`?(D(),c(i(de),{key:0,size:12})):(D(),c(i(le),{key:1,size:12}))],2)])])])):T(``,!0),i(N).length===0?(D(),s(`div`,Mc,S(i(t)(`noDataUsageYet`)),1)):T(``,!0),(D(!0),s(o,null,_(i(te),e=>(D(),s(o,{key:e.type===`group`?`group-${e.key}`:`data-${e.original.sourceIP}`},[e.type===`group`?(D(),s(`div`,{key:0,class:`card cursor-pointer bg-primary/20 shadow-md`,onClick:t=>M(e.key)},[a(`div`,Pc,[a(`div`,Fc,[a(`div`,null,[a(`div`,Ic,S(i(t)(`ipAddress`))+`: `+S(e.key),1),a(`div`,Lc,S(e.subRows.length)+` `+S(e.subRows.length===1?i(t)(`devices`).slice(0,-1):i(t)(`devices`))+` · `+S(i(t)(`total`))+`: `+S(E(e.subRows.reduce((e,t)=>e+t.total,0))),1)]),i(C)[e.key]?(D(),c(i(R),{key:0,size:16})):(D(),c(i(I),{key:1,size:16}))])])],8,Nc)):e.type===`data`?(D(),s(`div`,{key:1,class:`card bg-base-200 shadow-md`,style:d({marginLeft:`${e.depth*1}rem`})},[a(`div`,Rc,[a(`div`,zc,[a(`div`,Bc,[a(`div`,Vc,S(i(t)(`ipAddress`)),1),a(`div`,Hc,S(e.original.sourceIP),1)]),a(`button`,{class:`btn btn-circle text-error btn-ghost btn-xs`,title:i(t)(`remove`),onClick:p(t=>F(e.original.sourceIP),[`stop`])},[f(i(ue),{size:16})],8,Uc)]),e.original.firstSeen?(D(),s(`div`,Wc,[a(`div`,Gc,S(i(t)(`timeRange`)),1),a(`div`,Kc,[f(i(L),{size:14,class:`text-base-content/60`}),a(`span`,null,S(i(_e)(e.original.firstSeen,e.original.lastSeen)),1)]),a(`div`,qc,S(i(ye)(e.original.firstSeen,e.original.lastSeen,i(u))),1)])):T(``,!0),r[14]||=a(`div`,{class:`divider my-2`},null,-1),a(`div`,Jc,[a(`div`,null,[a(`div`,Yc,S(i(t)(`upload`)),1),a(`div`,Xc,S(E(e.original.upload)),1)]),a(`div`,null,[a(`div`,Zc,S(i(t)(`download`)),1),a(`div`,Qc,S(E(e.original.download)),1)]),a(`div`,null,[a(`div`,$c,S(i(t)(`total`)),1),a(`div`,el,S(E(e.original.total)),1)])])])],4)):T(``,!0)],64))),128))])],64)):T(``,!0)])]))}}),nl=Object.assign(tl,{__name:`DataUsageTable`}),rl={class:`flex h-full flex-col gap-4 overflow-y-auto`},il={class:`stats grid w-full shrink-0 stats-vertical grid-cols-2 bg-primary shadow sm:grid-cols-3 xl:grid-cols-6`},al={key:0,class:`flex items-center justify-center gap-2 rounded-lg bg-base-200 px-4 py-2 text-sm`},ol={class:`text-base-content/60`},sl={class:`font-mono font-medium`},cl={class:`grid grid-cols-1 gap-4 lg:grid-cols-2 xl:grid-cols-3`},ll={class:`card h-72 bg-base-200 p-2 shadow-sm lg:h-80`},ul={class:`card h-72 bg-base-200 p-2 shadow-sm lg:h-80`},dl={class:`card h-72 bg-base-200 p-2 shadow-sm lg:h-80`},fl={class:`card h-72 bg-base-200 p-2 shadow-sm lg:h-80`},pl={class:`card h-72 bg-base-200 p-2 shadow-sm lg:h-80`},ml={class:`card h-72 bg-base-200 p-2 shadow-sm lg:h-80`},hl={class:`grid grid-cols-1 gap-4 md:grid-cols-2 xl:grid-cols-3`},gl={class:`card bg-base-200 p-4 shadow-sm`},_l={class:`font-semibold`},vl={class:`btn btn-circle btn-ghost btn-xs`},yl=e({__name:`overview`,setup(e){let{t:r}=k();x({title:m(()=>r(`overview`))});let o=N(),l=he(),u=t(),d=M(),p=e=>z(e).toString(),g=m(()=>(d.curTheme,be())),_=A(),b=A(),C=A(),w=m(()=>[{name:r(`down`),color:g.value.seriesColors[0]},{name:r(`up`),color:g.value.seriesColors[1]}]),ee=m(()=>[[...o.trafficChartHistory.download],[...o.trafficChartHistory.upload]]),E=m(()=>[{name:r(`memory`),color:g.value.seriesColors[2]}]),O=m(()=>[[...o.memoryChartHistory]]),j=m(()=>[{name:r(`activeConnections`),color:g.value.seriesColors[3]}]),te=m(()=>[[...o.connectionCountHistory]]),P=m(()=>({chart:{type:`pie`,backgroundColor:g.value.backgroundColor,animation:!1},credits:{enabled:!1},accessibility:{enabled:!1},title:{text:r(`flow`),style:{color:g.value.textColor}},tooltip:{pointFormatter(){let e=this.y||0,t=this.percentage||0;return`${this.name}
${z(e).toString()} (${t.toFixed(1)}%)`}},plotOptions:{pie:{allowPointSelect:!0,cursor:`pointer`,dataLabels:{enabled:!1},showInLegend:!0,animation:!1}},legend:{itemStyle:{color:g.value.textColor},itemHoverStyle:{color:g.value.textColorHover}},series:[{type:`pie`,name:r(`flow`),data:[{name:r(`downloadTotal`),y:l.latestConnectionMsg?.downloadTotal||0,color:g.value.seriesColors[0]},{name:r(`uploadTotal`),y:l.latestConnectionMsg?.uploadTotal||0,color:g.value.seriesColors[1]}]}]})),ne=m(()=>{let e=l.activeConnections,t=0,n=0,i=0;return e.forEach(e=>{let r=e.metadata.network?.toLowerCase()||``;r===`tcp`?t++:r===`udp`?n++:i++}),{chart:{type:`pie`,backgroundColor:g.value.backgroundColor,animation:!1},credits:{enabled:!1},accessibility:{enabled:!1},title:{text:r(`networkTypes`),style:{color:g.value.textColor}},tooltip:{pointFormatter(){let e=this.y||0,t=this.percentage||0;return`${this.name}: ${e} (${t.toFixed(1)}%)`}},plotOptions:{pie:{allowPointSelect:!0,cursor:`pointer`,dataLabels:{enabled:!1},showInLegend:!0,animation:!1}},legend:{itemStyle:{color:g.value.textColor},itemHoverStyle:{color:g.value.textColorHover}},series:[{type:`pie`,name:r(`networkTypes`),data:[{name:r(`tcp`),y:t,color:g.value.seriesColors[0]},{name:r(`udp`),y:n,color:g.value.seriesColors[1]},...i>0?[{name:r(`other`),y:i,color:g.value.seriesColors[2]}]:[]]}]}}),re=m(()=>{let e=l.speedGroupByName,t=Object.entries(e).sort(([,e],[,t])=>t-e).slice(0,5),n=t.map(([e])=>e),i=t.map(([,e])=>e);return{chart:{type:`bar`,backgroundColor:g.value.backgroundColor,animation:!1},credits:{enabled:!1},accessibility:{enabled:!1},title:{text:r(`topProxies`),style:{color:g.value.textColor}},xAxis:{categories:n,labels:{style:{color:g.value.textColor}},lineColor:g.value.lineColor},yAxis:{title:{text:void 0},labels:{style:{color:g.value.textColor},formatter(){return`${z(this.value).toString()}/s`}},gridLineColor:g.value.gridLineColor,min:0},tooltip:{formatter(){return`${n[this.x]||this.x}
${z(this.y).toString()}/s`}},legend:{enabled:!1},plotOptions:{bar:{dataLabels:{enabled:!1},animation:!1}},series:[{type:`bar`,name:r(`traffic`),data:i,color:g.value.seriesColors[0]}]}}),I=o.trafficChartHistory.download.at(-1)?.[0]??0,ie=o.memoryChartHistory.at(-1)?.[0]??0,ae=o.connectionCountHistory.at(-1)?.[0]??0;return v(()=>o.latestTraffic,e=>{if(e&&_.value?.chartRef){let t=Date.now();t>I&&(_.value.chartRef.addPoints([{seriesIndex:0,time:t,value:e.down},{seriesIndex:1,time:t,value:e.up}]),I=t)}}),v(()=>o.latestMemory?.inuse,e=>{if(e&&b.value?.chartRef){let t=Date.now();t>ie&&(b.value.chartRef.addPoint(0,t,e),ie=t)}}),v(()=>l.latestConnectionMsg?.connections?.length,e=>{if(e!==void 0&&C.value?.chartRef){let t=Date.now();t>ae&&(C.value.chartRef.addPoint(0,t,e),ae=t)}}),(e,t)=>{let m=Te,g=Ae,v=Fe,x=Ct,k=Ht,A=Es,M=nl;return D(),s(`div`,rl,[a(`div`,il,[f(m,{label:i(r)(`upload`)},{default:y(()=>[h(S(p(i(o).latestTraffic?.up||0))+`/s `,1)]),_:1},8,[`label`]),f(m,{label:i(r)(`download`)},{default:y(()=>[h(S(p(i(o).latestTraffic?.down||0))+`/s `,1)]),_:1},8,[`label`]),f(m,{label:i(r)(`uploadTotal`)},{default:y(()=>[h(S(p(i(l).latestConnectionMsg?.uploadTotal||0)),1)]),_:1},8,[`label`]),f(m,{label:i(r)(`downloadTotal`)},{default:y(()=>[h(S(p(i(l).latestConnectionMsg?.downloadTotal||0)),1)]),_:1},8,[`label`]),f(m,{label:i(r)(`activeConnections`)},{default:y(()=>[h(S(i(l).latestConnectionMsg?.connections?.length||0),1)]),_:1},8,[`label`]),f(m,{label:i(r)(`memoryUsage`)},{default:y(()=>[h(S(p(i(o).latestMemory?.inuse||0)),1)]),_:1},8,[`label`])]),i(u).currentEndpoint?.url?(D(),s(`div`,al,[a(`span`,ol,S(i(r)(`connectedTo`))+`:`,1),a(`span`,sl,S(i(u).currentEndpoint?.url),1)])):T(``,!0),a(`div`,cl,[a(`div`,ll,[f(g,{ref_key:`trafficChartRef`,ref:_,title:i(r)(`traffic`),"series-config":i(w),"initial-data":i(ee),"is-loading":!i(o).latestTraffic},null,8,[`title`,`series-config`,`initial-data`,`is-loading`])]),a(`div`,ul,[f(v,{options:i(P),"is-loading":!i(l).latestConnectionMsg?.connections?.length},null,8,[`options`,`is-loading`])]),a(`div`,dl,[f(g,{ref_key:`memoryChartRef`,ref:b,title:i(r)(`memory`),"series-config":i(E),"initial-data":i(O),"is-loading":!i(o).latestMemory},null,8,[`title`,`series-config`,`initial-data`,`is-loading`])]),a(`div`,fl,[f(g,{ref_key:`connectionsChartRef`,ref:C,title:i(r)(`connectionsChart`),"series-config":i(j),"initial-data":i(te),"is-loading":!i(l).latestConnectionMsg?.connections?.length,"value-mode":`number`},null,8,[`title`,`series-config`,`initial-data`,`is-loading`])]),a(`div`,pl,[f(v,{options:i(ne),"is-loading":!i(l).latestConnectionMsg?.connections?.length},null,8,[`options`,`is-loading`])]),a(`div`,ml,[f(v,{options:i(re),"is-loading":Object.keys(i(l).speedGroupByName).length===0},null,8,[`options`,`is-loading`])])]),a(`div`,hl,[f(x),f(k)]),a(`div`,gl,[a(`div`,{class:`flex cursor-pointer items-center justify-between`,onClick:t[0]||=e=>i(d).showNetworkTopology=!i(d).showNetworkTopology},[a(`h3`,_l,S(i(r)(`networkTopology`)),1),a(`button`,vl,[f(i(F),{class:n([`h-5 w-5 transition-transform`,{"rotate-180":i(d).showNetworkTopology}])},null,8,[`class`])])]),i(d).showNetworkTopology?(D(),c(A,{key:0,class:`mt-4`})):T(``,!0)]),f(M)])}}});export{yl as default}; \ No newline at end of file +import{$ as e,C as t,Dt as n,E as r,Et as i,G as a,H as o,J as s,K as c,L as l,Mt as u,Ot as d,Q as f,V as p,W as m,Z as h,at as g,ct as _,dt as v,ft as y,ht as b,j as x,kt as S,lt as C,ot as w,pt as ee,q as T,rt as E,st as D,ut as O,x as k,yt as A}from"./CxatB1L6.js";import{t as j}from"./_v7-ePgP.js";import{t as M}from"./BxUO6acX.js";import{t as N}from"./Dnb7sY_Q.js";import{B as te,C as P,E as ne,F,O as re,R as I,a as ie,d as ae,g as oe,h as se,k as L,m as ce,n as le,o as ue,t as de,v as fe,x as pe,z as R}from"./BlFRk3uc.js";import{t as me}from"./CDMImveV.js";import{n as he,t as z}from"./4_-5c3is.js";import{t as ge}from"./B3gVVFQn.js";import{a as _e,d as ve,i as ye,l as be}from"./D8VGDxpn.js";var xe={class:`stat place-items-center px-2 py-3`},Se={class:`stat-title text-xs text-primary-content sm:text-sm`},Ce={class:`stat-value text-center text-lg whitespace-nowrap text-primary-content sm:text-xl lg:text-2xl`},we=e({__name:`TrafficWidget`,props:{label:{}},setup(e){return(t,n)=>(D(),s(`div`,xe,[a(`div`,Se,S(e.label),1),a(`div`,Ce,[C(t.$slots,`default`)])]))}}),Te=Object.assign(we,{__name:`TrafficWidget`}),Ee=u(ge(),1),De={class:`relative h-full w-full`},Oe={key:0,class:`absolute inset-0 flex items-center justify-center`},ke=e({__name:`RealtimeLineChart`,props:{title:{},seriesConfig:{},isLoading:{type:Boolean,default:!1},initialData:{default:()=>[]},valueMode:{default:`bytes`}},emits:[`chartReady`],setup(e,{expose:t,emit:r}){let i=e,o=r,c=(e,t=!1)=>i.valueMode===`number`?String(e):t?`${z(e).toString()}/s`:z(e).toString(),l=A(),u,d=M();function f(){let e=be();return{chart:{type:`areaspline`,animation:{duration:800,easing:`linear`},backgroundColor:e.backgroundColor},credits:{enabled:!1},accessibility:{enabled:!1},title:{text:i.title,style:{color:e.textColor}},legend:{enabled:!0,itemStyle:{color:e.textColor},itemHoverStyle:{color:e.textColorHover}},xAxis:{type:`datetime`,tickPixelInterval:100,labels:{style:{color:e.textColor},formatter(){let e=new Date(this.value);return`${e.getMinutes().toString().padStart(2,`0`)}:${e.getSeconds().toString().padStart(2,`0`)}`}},lineColor:e.lineColor,tickColor:e.tickColor},yAxis:{title:{text:void 0},labels:{style:{color:e.textColor},formatter(){return c(this.value)}},gridLineColor:e.gridLineColor,min:0},tooltip:{shared:!0,formatter(){let e=new Date(this.x),t=`${`${e.getMinutes().toString().padStart(2,`0`)}:${e.getSeconds().toString().padStart(2,`0`)}`}
`;return this.points?.forEach(e=>{t+=`\u25CF ${e.series.name}: ${c(e.y,!0)}
`}),t}},plotOptions:{areaspline:{fillOpacity:.3,marker:{enabled:!1},lineWidth:2,states:{hover:{lineWidth:3}},threshold:null}},series:i.seriesConfig.map((t,n)=>({type:`areaspline`,name:t.name,color:t.color||e.seriesColors[n]||Ee.default.getOptions().colors?.[n]||`hsl(${n*120}, 70%, 50%)`,data:i.initialData?.[n]||[]}))}}let p={addPoint:(e,t,n)=>{if(u?.series[e]){let r=u.series[e].data.length>=10;u.series[e].addPoint([t,n],!0,r,{duration:800,easing:`linear`})}},addPoints:e=>{if(!u)return;let t=new Map;e.forEach(e=>{t.has(e.seriesIndex)||t.set(e.seriesIndex,[]),t.get(e.seriesIndex).push({time:e.time,value:e.value})}),t.forEach((e,t)=>{let n=u?.series[t];n&&e.forEach(e=>{let t=n.data.length>=10;n.addPoint([e.time,e.value],!1,t)})}),u.redraw({duration:800,easing:`linear`})},setSeriesData:(e,t)=>{u?.series[e]&&u.series[e].setData(t,!0,!1,!1)}};return t({chartRef:p}),g(()=>{if(!l.value)return;u=Ee.default.chart(l.value,f()),o(`chartReady`,p);let e=new ResizeObserver(()=>{u&&l.value&&u.setSize(l.value.clientWidth,l.value.clientHeight,!0)});e.observe(l.value),w(()=>{e.disconnect(),u?.destroy()})}),v(()=>i.title,e=>{u&&u.setTitle({text:e})}),v(()=>i.seriesConfig,e=>{u&&(e.forEach((e,t)=>{u.series[t]&&u.series[t].update({type:`areaspline`,name:e.name,color:e.color},!1)}),u.redraw())},{deep:!0}),v(()=>d.curTheme,()=>{requestAnimationFrame(()=>{if(u){let e=be();u.update({chart:{backgroundColor:e.backgroundColor},title:{style:{color:e.textColor}},legend:{itemStyle:{color:e.textColor},itemHoverStyle:{color:e.textColorHover}},xAxis:{labels:{style:{color:e.textColor}},lineColor:e.lineColor,tickColor:e.tickColor},yAxis:{labels:{style:{color:e.textColor}},gridLineColor:e.gridLineColor}},!0,!1,!1)}})}),(t,r)=>(D(),s(`div`,De,[e.isLoading?(D(),s(`div`,Oe,[...r[0]||=[a(`span`,{class:`loading loading-lg loading-dots`},null,-1)]])):T(``,!0),a(`div`,{ref_key:`containerRef`,ref:l,class:n([`h-full w-full`,{"opacity-0":e.isLoading}])},null,2)]))}}),Ae=Object.assign(ke,{__name:`RealtimeLineChart`}),je=u(ge(),1),Me={class:`relative h-full w-full`},Ne={key:0,class:`absolute inset-0 flex items-center justify-center`},Pe=e({__name:`HighchartsAutoSize`,props:{options:{},isLoading:{type:Boolean,default:!1}},setup(e){let t=e,r=A(),i,o=M();function c(){let e=be();return{chart:{animation:{duration:300},backgroundColor:e.backgroundColor},credits:{enabled:!1},accessibility:{enabled:!1},legend:{itemStyle:{color:e.textColor},itemHoverStyle:{color:e.textColorHover}},title:{style:{color:e.textColor}}}}return g(()=>{if(!r.value)return;let e=c(),n={...e,...t.options,chart:{...e.chart,...t.options.chart}};i=je.default.chart(r.value,n);let a=r.value.clientWidth,o=r.value.clientHeight,s=new ResizeObserver(()=>{if(i&&r.value){let e=r.value.clientWidth,t=r.value.clientHeight;(e!==a||t!==o)&&(a=e,o=t,i.setSize(e,t,!1))}});s.observe(r.value),w(()=>{s.disconnect(),i?.destroy()})}),v(()=>t.options,e=>{i&&i.update(e,!0,!1,!1)},{deep:!0}),v(()=>o.curTheme,()=>{requestAnimationFrame(()=>{if(i){let e=be();i.update({chart:{backgroundColor:e.backgroundColor},title:{style:{color:e.textColor}},legend:{itemStyle:{color:e.textColor},itemHoverStyle:{color:e.textColorHover}},xAxis:{labels:{style:{color:e.textColor}},lineColor:e.lineColor,tickColor:e.tickColor},yAxis:{labels:{style:{color:e.textColor}},gridLineColor:e.gridLineColor}},!0,!1,!1)}})}),(t,i)=>(D(),s(`div`,Me,[e.isLoading?(D(),s(`div`,Ne,[...i[0]||=[a(`span`,{class:`loading loading-lg loading-dots`},null,-1)]])):T(``,!0),a(`div`,{ref_key:`containerRef`,ref:r,class:n([`h-full w-full`,{"opacity-0":e.isLoading}])},null,2)]))}}),Fe=Object.assign(Pe,{__name:`HighchartsAutoSize`}),Ie={"ip.sb":`https://api.ip.sb/geoip`,"ipwho.is":`https://ipwho.is/`,"ipapi.is":`https://api.ipapi.is/`};function Le(e){return{ip:e.ip,country:e.country,city:e.city,asn:e.asn,org:e.asn_organization}}function Re(e){return{ip:e.ip,country:e.country,countryCode:e.country_code,city:e.city,region:e.region,asn:e.connection?.asn,org:e.connection?.org,isp:e.connection?.isp,latitude:e.latitude,longitude:e.longitude,timezone:e.timezone?.id}}function ze(e){return{ip:e.ip,country:e.location?.country,countryCode:e.location?.country_code,city:e.location?.city,region:e.location?.state,asn:e.asn?.asn,org:e.asn?.org,isProxy:e.is_proxy,isVPN:e.is_vpn,latitude:e.location?.latitude,longitude:e.location?.longitude,timezone:e.location?.timezone}}async function Be(e){let t=Ie[e],n=await me.get(t,{timeout:1e4}).json();switch(e){case`ip.sb`:return Le(n);case`ipwho.is`:return Re(n);case`ipapi.is`:return ze(n);default:throw Error(`Unknown IP provider: ${e}`)}}function Ve(){let e=A(`ip.sb`),t=A(null),n=A(!1),r=A(null);async function i(i){let a=i??e.value;n.value=!0,r.value=null;try{t.value=await Be(a),e.value=a}catch(e){r.value=e instanceof Error?e.message:`Failed to fetch IP info`,t.value=null}finally{n.value=!1}}return{currentProvider:e,ipInfo:t,isLoading:n,error:r,fetchIP:i}}var He={class:`card bg-base-200 p-4 shadow-sm`},Ue={class:`mb-3 flex items-center justify-between`},We={class:`flex items-center gap-2`},Ge={class:`font-semibold`},Ke={class:`flex items-center gap-2`},qe=[`value`],Je=[`value`],Ye=[`disabled`],Xe={key:0,class:`flex justify-center py-4`},Ze={key:1,class:`alert alert-error`},Qe={key:2,class:`space-y-2`},$e={class:`flex items-center justify-between gap-2`},et={class:`shrink-0 text-base-content/60`},tt=[`title`],nt={key:0,class:`flex items-center justify-between gap-2`},rt={class:`shrink-0 text-base-content/60`},it={class:`truncate`},at={key:1,class:`flex items-center justify-between gap-2`},ot={class:`shrink-0 text-base-content/60`},st={class:`truncate`},ct={key:2,class:`flex items-center justify-between gap-2`},lt={class:`shrink-0 text-base-content/60`},ut=[`title`],dt={key:3,class:`flex items-center justify-between gap-2`},ft={class:`truncate font-mono`},pt={key:4,class:`flex items-center justify-between gap-2`},mt=[`title`],ht={key:5,class:`flex items-center justify-between`},gt={class:`text-base-content/60`},_t={class:`flex gap-1`},vt={key:0,class:`badge badge-sm badge-warning`},yt={key:1,class:`badge badge-sm badge-warning`},bt={key:2,class:`badge badge-sm badge-success`},xt={key:3,class:`py-4 text-center text-base-content/60`},St=e({__name:`IPInfoCard`,setup(e){let{t}=k(),{currentProvider:r,ipInfo:c,isLoading:l,error:u,fetchIP:d}=Ve(),p=[{value:`ip.sb`,label:`IP.SB`},{value:`ipwho.is`,label:`ipwho.is`},{value:`ipapi.is`,label:`ipapi.is`}];g(()=>{d()});function m(e){let t=e.target;d(t.value)}return(e,h)=>(D(),s(`div`,He,[a(`div`,Ue,[a(`div`,We,[f(i(ie),{class:`h-5 w-5 text-primary`}),a(`h3`,Ge,S(i(t)(`currentIP`)),1)]),a(`div`,Ke,[a(`select`,{value:i(r),class:`select-bordered select select-sm`,onChange:m},[(D(),s(o,null,_(p,e=>a(`option`,{key:e.value,value:e.value},S(e.label),9,Je)),64))],40,qe),a(`button`,{class:n([`btn btn-circle btn-ghost btn-sm`,{"animate-spin":i(l)}]),disabled:i(l),onClick:h[0]||=e=>i(d)()},[f(i(ce),{class:`h-4 w-4`})],10,Ye)])]),i(l)?(D(),s(`div`,Xe,[...h[1]||=[a(`span`,{class:`loading loading-md loading-spinner`},null,-1)]])):i(u)?(D(),s(`div`,Ze,[a(`span`,null,S(i(u)),1)])):i(c)?(D(),s(`div`,Qe,[a(`div`,$e,[a(`span`,et,S(i(t)(`ipAddress`)),1),a(`span`,{class:`truncate font-mono font-semibold`,title:i(c).ip},S(i(c).ip),9,tt)]),i(c).country?(D(),s(`div`,nt,[a(`span`,rt,S(i(t)(`country`)),1),a(`span`,it,S(i(c).country),1)])):T(``,!0),i(c).city?(D(),s(`div`,at,[a(`span`,ot,S(i(t)(`city`)),1),a(`span`,st,S(i(c).city),1)])):T(``,!0),i(c).org?(D(),s(`div`,ct,[a(`span`,lt,S(i(t)(`organization`)),1),a(`span`,{class:`truncate text-right`,title:i(c).org},S(i(c).org),9,ut)])):T(``,!0),i(c).asn?(D(),s(`div`,dt,[h[2]||=a(`span`,{class:`shrink-0 text-base-content/60`},`ASN`,-1),a(`span`,ft,`AS`+S(i(c).asn),1)])):T(``,!0),i(c).isp?(D(),s(`div`,pt,[h[3]||=a(`span`,{class:`shrink-0 text-base-content/60`},`ISP`,-1),a(`span`,{class:`truncate text-right`,title:i(c).isp},S(i(c).isp),9,mt)])):T(``,!0),i(c).isProxy!==void 0||i(c).isVPN!==void 0?(D(),s(`div`,ht,[a(`span`,gt,S(i(t)(`proxyDetection`)),1),a(`div`,_t,[i(c).isProxy?(D(),s(`span`,vt,` Proxy `)):T(``,!0),i(c).isVPN?(D(),s(`span`,yt,` VPN `)):T(``,!0),!i(c).isProxy&&!i(c).isVPN?(D(),s(`span`,bt,S(i(t)(`clean`)),1)):T(``,!0)])])):T(``,!0)])):(D(),s(`div`,xt,S(i(t)(`noData`)),1))]))}}),Ct=Object.assign(St,{__name:`IPInfoCard`}),wt=[{name:`Google`,url:`https://www.google.com/generate_204`},{name:`Cloudflare`,url:`https://www.cloudflare.com/cdn-cgi/trace`},{name:`GitHub`,url:`https://github.com`}];async function Tt(e){try{let t=performance.now();await fetch(e,{method:`HEAD`,mode:`no-cors`,cache:`no-store`});let n=performance.now();return Math.round(n-t)}catch{return null}}function Et(){let e=A(new Map),t=A(!1),n=A(wt);async function r(t,n){e.value.set(n,{url:n,latency:null,status:`pending`,timestamp:Date.now()});let r=await Tt(n);return e.value.set(n,{url:n,latency:r,status:r===null?`error`:`success`,timestamp:Date.now()}),r}async function i(){t.value=!0;let e=n.value.map(e=>r(e.name,e.url));await Promise.all(e),t.value=!1}function a(t){return e.value.get(t)}return{results:e,isTestingAll:t,targets:n,testLatency:r,testAllLatencies:i,getResult:a,allResults:m(()=>n.value.map(t=>({name:t.name,url:t.url,result:e.value.get(t.url)}))),averageLatency:m(()=>{let t=Array.from(e.value.values()).filter(e=>e.status===`success`&&e.latency!==null);if(t.length===0)return null;let n=t.reduce((e,t)=>e+(t.latency??0),0);return Math.round(n/t.length)})}}var Dt={class:`card bg-base-200 p-4 shadow-sm`},Ot={class:`mb-3 flex items-center justify-between`},kt={class:`flex items-center gap-2`},At={class:`font-semibold`},jt={class:`flex items-center gap-2`},Mt=[`disabled`],Nt={class:`space-y-3`},Pt={class:`w-20 shrink-0 truncate text-sm`},Ft={class:`relative h-4 flex-1 overflow-hidden rounded-full bg-base-300`},It={class:`w-16 shrink-0 text-right font-mono text-sm`},Lt={key:0,class:`loading loading-xs loading-spinner`},Rt={key:1},zt={key:2,class:`text-error`},Bt={key:3,class:`text-base-content/40`},Vt=e({__name:`LatencyCard`,setup(e){let{t}=k(),{allResults:r,isTestingAll:c,testAllLatencies:l,averageLatency:u}=Et();g(()=>{l()});function p(e){return e==null?`badge-ghost`:e<100?`badge-success`:e<300?`badge-warning`:`badge-error`}function m(e){return e==null?`0%`:`${Math.min(e/500*100,100)}%`}function h(e){return e==null?`bg-base-300`:e<100?`bg-success`:e<300?`bg-warning`:`bg-error`}return(e,g)=>(D(),s(`div`,Dt,[a(`div`,Ot,[a(`div`,kt,[f(i(te),{class:`h-5 w-5 text-primary`}),a(`h3`,At,S(i(t)(`networkLatency`)),1)]),a(`div`,jt,[i(u)===null?T(``,!0):(D(),s(`span`,{key:0,class:n([`badge`,p(i(u))])},S(i(t)(`average`))+`: `+S(i(u))+`ms `,3)),a(`button`,{class:n([`btn btn-circle btn-ghost btn-sm`,{"animate-spin":i(c)}]),disabled:i(c),onClick:g[0]||=(...e)=>i(l)&&i(l)(...e)},[f(i(ce),{class:`h-4 w-4`})],10,Mt)])]),a(`div`,Nt,[(D(!0),s(o,null,_(i(r),e=>(D(),s(`div`,{key:e.url,class:`flex items-center gap-3`},[a(`span`,Pt,S(e.name),1),a(`div`,Ft,[a(`div`,{class:n([`absolute inset-y-0 left-0 rounded-full transition-all duration-500`,h(e.result?.latency)]),style:d({width:m(e.result?.latency)})},null,6)]),a(`span`,It,[e.result?.status===`pending`?(D(),s(`span`,Lt)):e.result?.status===`success`?(D(),s(`span`,Rt,S(e.result.latency)+`ms `,1)):e.result?.status===`error`?(D(),s(`span`,zt,S(i(t)(`timeout`)),1)):(D(),s(`span`,Bt,`-`))])]))),128))])]))}}),Ht=Object.assign(Vt,{__name:`LatencyCard`}),Ut={value:()=>{}};function Wt(){for(var e=0,t=arguments.length,n={},r;e=0&&(n=e.slice(r+1),e=e.slice(0,r)),e&&!t.hasOwnProperty(e))throw Error(`unknown type: `+e);return{type:e,name:n}})}Gt.prototype=Wt.prototype={constructor:Gt,on:function(e,t){var n=this._,r=Kt(e+``,n),i,a=-1,o=r.length;if(arguments.length<2){for(;++a0)for(var n=Array(i),r=0,i,a;r=0&&(t=e.slice(0,n))!==`xmlns`&&(e=e.slice(n+1)),Xt.hasOwnProperty(t)?{space:Xt[t],local:e}:e}function Qt(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===`http://www.w3.org/1999/xhtml`&&t.documentElement.namespaceURI===`http://www.w3.org/1999/xhtml`?t.createElement(e):t.createElementNS(n,e)}}function $t(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function en(e){var t=Zt(e);return(t.local?$t:Qt)(t)}function tn(){}function nn(e){return e==null?tn:function(){return this.querySelector(e)}}function rn(e){typeof e!=`function`&&(e=nn(e));for(var t=this._groups,n=t.length,r=Array(n),i=0;i=v&&(v=_+1);!(b=g[v])&&++v=0;)(o=r[i])&&(a&&o.compareDocumentPosition(a)^4&&a.parentNode.insertBefore(o,a),a=o);return this}function Pn(e){e||=Fn;function t(t,n){return t&&n?e(t.__data__,n.__data__):!t-!n}for(var n=this._groups,r=n.length,i=Array(r),a=0;at?1:e>=t?0:NaN}function In(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function Ln(){return Array.from(this)}function Rn(){for(var e=this._groups,t=0,n=e.length;t1?this.each((t==null?Xn:typeof t==`function`?Qn:Zn)(e,t,n??``)):B(this.node(),e)}function B(e,t){return e.style.getPropertyValue(t)||Yn(e).getComputedStyle(e,null).getPropertyValue(t)}function er(e){return function(){delete this[e]}}function tr(e,t){return function(){this[e]=t}}function nr(e,t){return function(){var n=t.apply(this,arguments);n==null?delete this[e]:this[e]=n}}function rr(e,t){return arguments.length>1?this.each((t==null?er:typeof t==`function`?nr:tr)(e,t)):this.node()[e]}function ir(e){return e.trim().split(/^|\s+/)}function ar(e){return e.classList||new or(e)}function or(e){this._node=e,this._names=ir(e.getAttribute(`class`)||``)}or.prototype={add:function(e){this._names.indexOf(e)<0&&(this._names.push(e),this._node.setAttribute(`class`,this._names.join(` `)))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute(`class`,this._names.join(` `)))},contains:function(e){return this._names.indexOf(e)>=0}};function sr(e,t){for(var n=ar(e),r=-1,i=t.length;++r=0&&(t=e.slice(n+1),e=e.slice(0,n)),{type:e,name:t}})}function Ir(e){return function(){var t=this.__on;if(t){for(var n=0,r=-1,i=t.length,a;n>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?hi(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?hi(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=ni.exec(e))?new W(t[1],t[2],t[3],1):(t=ri.exec(e))?new W(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=ii.exec(e))?hi(t[1],t[2],t[3],t[4]):(t=ai.exec(e))?hi(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=oi.exec(e))?Si(t[1],t[2]/100,t[3]/100,1):(t=si.exec(e))?Si(t[1],t[2]/100,t[3]/100,t[4]):ci.hasOwnProperty(e)?mi(ci[e]):e===`transparent`?new W(NaN,NaN,NaN,0):null}function mi(e){return new W(e>>16&255,e>>8&255,e&255,1)}function hi(e,t,n,r){return r<=0&&(e=t=n=NaN),new W(e,t,n,r)}function gi(e){return e instanceof Zr||(e=pi(e)),e?(e=e.rgb(),new W(e.r,e.g,e.b,e.opacity)):new W}function _i(e,t,n,r){return arguments.length===1?gi(e):new W(e,t,n,r??1)}function W(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}Yr(W,_i,Xr(Zr,{brighter(e){return e=e==null?$r:$r**+e,new W(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Qr:Qr**+e,new W(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new W(G(this.r),G(this.g),G(this.b),xi(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:vi,formatHex:vi,formatHex8:yi,formatRgb:bi,toString:bi}));function vi(){return`#${K(this.r)}${K(this.g)}${K(this.b)}`}function yi(){return`#${K(this.r)}${K(this.g)}${K(this.b)}${K((isNaN(this.opacity)?1:this.opacity)*255)}`}function bi(){let e=xi(this.opacity);return`${e===1?`rgb(`:`rgba(`}${G(this.r)}, ${G(this.g)}, ${G(this.b)}${e===1?`)`:`, ${e})`}`}function xi(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function G(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function K(e){return e=G(e),(e<16?`0`:``)+e.toString(16)}function Si(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new q(e,t,n,r)}function Ci(e){if(e instanceof q)return new q(e.h,e.s,e.l,e.opacity);if(e instanceof Zr||(e=pi(e)),!e)return new q;if(e instanceof q)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),a=Math.max(t,n,r),o=NaN,s=a-i,c=(a+i)/2;return s?(o=t===a?(n-r)/s+(n0&&c<1?0:o,new q(o,s,c,e.opacity)}function wi(e,t,n,r){return arguments.length===1?Ci(e):new q(e,t,n,r??1)}function q(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}Yr(q,wi,Xr(Zr,{brighter(e){return e=e==null?$r:$r**+e,new q(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Qr:Qr**+e,new q(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new W(Di(e>=240?e-240:e+120,i,r),Di(e,i,r),Di(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new q(Ti(this.h),Ei(this.s),Ei(this.l),xi(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){let e=xi(this.opacity);return`${e===1?`hsl(`:`hsla(`}${Ti(this.h)}, ${Ei(this.s)*100}%, ${Ei(this.l)*100}%${e===1?`)`:`, ${e})`}`}}));function Ti(e){return e=(e||0)%360,e<0?e+360:e}function Ei(e){return Math.max(0,Math.min(1,e||0))}function Di(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}var Oi=e=>()=>e;function ki(e,t){return function(n){return e+n*t}}function Ai(e,t,n){return e**=+n,t=t**+n-e,n=1/n,function(r){return(e+r*t)**+n}}function ji(e){return(e=+e)==1?Mi:function(t,n){return n-t?Ai(t,n,e):Oi(isNaN(t)?n:t)}}function Mi(e,t){var n=t-e;return n?ki(e,n):Oi(isNaN(e)?t:e)}var Ni=(function e(t){var n=ji(t);function r(e,t){var r=n((e=_i(e)).r,(t=_i(t)).r),i=n(e.g,t.g),a=n(e.b,t.b),o=Mi(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=i(t),e.b=a(t),e.opacity=o(t),e+``}}return r.gamma=e,r})(1);function J(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}var Pi=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Fi=new RegExp(Pi.source,`g`);function Ii(e){return function(){return e}}function Li(e){return function(t){return e(t)+``}}function Ri(e,t){var n=Pi.lastIndex=Fi.lastIndex=0,r,i,a,o=-1,s=[],c=[];for(e+=``,t+=``;(r=Pi.exec(e))&&(i=Fi.exec(t));)(a=i.index)>n&&(a=t.slice(n,a),s[o]?s[o]+=a:s[++o]=a),(r=r[0])===(i=i[0])?s[o]?s[o]+=i:s[++o]=i:(s[++o]=null,c.push({i:o,x:J(r,i)})),n=Fi.lastIndex;return n180?t+=360:t-e>180&&(e+=360),a.push({i:n.push(i(n)+`rotate(`,null,r)-2,x:J(e,t)}))}function s(e,t,n,a){e===t?t&&n.push(i(n)+`skewX(`+t+r):a.push({i:n.push(i(n)+`skewX(`,null,r)-2,x:J(e,t)})}function c(e,t,n,r,a,o){if(e!==n||t!==r){var s=a.push(i(a)+`scale(`,null,`,`,null,`)`);o.push({i:s-4,x:J(e,n)},{i:s-2,x:J(t,r)})}else (n!==1||r!==1)&&a.push(i(a)+`scale(`+n+`,`+r+`)`)}return function(t,n){var r=[],i=[];return t=e(t),n=e(n),a(t.translateX,t.translateY,n.translateX,n.translateY,r,i),o(t.rotate,n.rotate,r,i),s(t.skewX,n.skewX,r,i),c(t.scaleX,t.scaleY,n.scaleX,n.scaleY,r,i),t=n=null,function(e){for(var t=-1,n=i.length,a;++t=0&&e._call.call(void 0,t),e=e._next;--Y}function la(){ea=($i=na.now())+ta,Y=Ji=0;try{ca()}finally{Y=0,da(),ea=0}}function ua(){var e=na.now(),t=e-$i;t>Xi&&(ta-=t,$i=e)}function da(){for(var e,t=Zi,n,r=1/0;t;)t._call?(r>t._time&&(r=t._time),e=t,t=t._next):(n=t._next,t._next=null,t=e?e._next=n:Zi=n);Qi=e,fa(r)}function fa(e){Y||(Ji&&=clearTimeout(Ji),e-ea>24?(e<1/0&&(Ji=setTimeout(la,e-na.now()-ta)),Yi&&=clearInterval(Yi)):(Yi||=($i=na.now(),setInterval(ua,Xi)),Y=1,ra(la)))}function pa(e,t,n){var r=new oa;return t=t==null?0:+t,r.restart(n=>{r.stop(),e(n+t)},t,n),r}var ma=Yt(`start`,`end`,`cancel`,`interrupt`),ha=[];function ga(e,t,n,r,i,a){var o=e.__transition;if(!o)e.__transition={};else if(n in o)return;va(e,n,{name:t,index:r,group:i,on:ma,tween:ha,time:a.time,delay:a.delay,duration:a.duration,ease:a.ease,timer:null,state:0})}function _a(e,t){var n=Z(e,t);if(n.state>0)throw Error(`too late; already scheduled`);return n}function X(e,t){var n=Z(e,t);if(n.state>3)throw Error(`too late; already running`);return n}function Z(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw Error(`transition not found`);return n}function va(e,t,n){var r=e.__transition,i;r[t]=n,n.timer=sa(a,0,n.time);function a(e){n.state=1,n.timer.restart(o,n.delay,n.time),n.delay<=e&&o(e-n.delay)}function o(a){var l,u,d,f;if(n.state!==1)return c();for(l in r)if(f=r[l],f.name===n.name){if(f.state===3)return pa(o);f.state===4?(f.state=6,f.timer.stop(),f.on.call(`interrupt`,e,e.__data__,f.index,f.group),delete r[l]):+l2&&r.state<5,r.state=6,r.timer.stop(),r.on.call(i?`interrupt`:`cancel`,e,e.__data__,r.index,r.group),delete n[o]}a&&delete e.__transition}}function ba(e){return this.each(function(){ya(this,e)})}function xa(e,t){var n,r;return function(){var i=X(this,e),a=i.tween;if(a!==n){r=n=a;for(var o=0,s=r.length;o=0&&(e=e.slice(0,t)),!e||e===`start`})}function Za(e,t,n){var r,i,a=Xa(t)?_a:X;return function(){var o=a(this,e),s=o.on;s!==r&&(i=(r=s).copy()).on(t,n),o.on=i}}function Qa(e,t){var n=this._id;return arguments.length<2?Z(this.node(),n).on.on(e):this.each(Za(n,e,t))}function $a(e){return function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}}function eo(){return this.on(`end.remove`,$a(this._id))}function to(e){var t=this._name,n=this._id;typeof e!=`function`&&(e=nn(e));for(var r=this._groups,i=r.length,a=Array(i),o=0;o=0;)t+=n[r].value;e.value=t}function Fo(){return this.eachAfter(Po)}function Io(e,t){let n=-1;for(let r of this)e.call(t,r,++n,this);return this}function Lo(e,t){for(var n=this,r=[n],i,a,o=-1;n=r.pop();)if(e.call(t,n,++o,this),i=n.children)for(a=i.length-1;a>=0;--a)r.push(i[a]);return this}function Ro(e,t){for(var n=this,r=[n],i=[],a,o,s,c=-1;n=r.pop();)if(i.push(n),a=n.children)for(o=0,s=a.length;o=0;)n+=r[i].value;t.value=n})}function Vo(e){return this.eachBefore(function(t){t.children&&t.children.sort(e)})}function Ho(e){for(var t=this,n=Uo(t,e),r=[t];t!==n;)t=t.parent,r.push(t);for(var i=r.length;e!==n;)r.splice(i,0,e),e=e.parent;return r}function Uo(e,t){if(e===t)return e;var n=e.ancestors(),r=t.ancestors(),i=null;for(e=n.pop(),t=r.pop();e===t;)i=e,e=n.pop(),t=r.pop();return i}function Wo(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t}function Go(){return Array.from(this)}function Ko(){var e=[];return this.eachBefore(function(t){t.children||e.push(t)}),e}function qo(){var e=this,t=[];return e.each(function(n){n!==e&&t.push({source:n.parent,target:n})}),t}function*Jo(){var e=this,t,n=[e],r,i,a;do for(t=n.reverse(),n=[];e=t.pop();)if(yield e,r=e.children)for(i=0,a=r.length;i=0;--s)i.push(a=o[s]=new ts(o[s])),a.parent=r,a.depth=r.depth+1;return n.eachBefore(es)}function Xo(){return Yo(this).eachBefore($o)}function Zo(e){return e.children}function Qo(e){return Array.isArray(e)?e[1]:null}function $o(e){e.data.value!==void 0&&(e.value=e.data.value),e.data=e.data.data}function es(e){var t=0;do e.height=t;while((e=e.parent)&&e.height<++t)}function ts(e){this.data=e,this.depth=this.height=0,this.parent=null}ts.prototype=Yo.prototype={constructor:ts,count:Fo,each:Io,eachAfter:Ro,eachBefore:Lo,find:zo,sum:Bo,sort:Vo,path:Ho,ancestors:Wo,descendants:Go,leaves:Ko,links:qo,copy:Xo,[Symbol.iterator]:Jo};function ns(e,t){return e.parent===t.parent?1:2}function rs(e){var t=e.children;return t?t[0]:e.t}function is(e){var t=e.children;return t?t[t.length-1]:e.t}function as(e,t,n){var r=n/(t.i-e.i);t.c-=r,t.s+=n,e.c+=r,t.z+=n,t.m+=n}function os(e){for(var t=0,n=0,r=e.children,i=r.length,a;--i>=0;)a=r[i],a.z+=t,a.m+=t,t+=a.s+(n+=a.c)}function ss(e,t,n){return e.a.parent===t.parent?e.a:n}function cs(e,t){this._=e,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=t}cs.prototype=Object.create(ts.prototype);function ls(e){for(var t=new cs(e,0),n,r=[t],i,a,o,s;n=r.pop();)if(a=n._.children)for(n.children=Array(s=a.length),o=s-1;o>=0;--o)r.push(i=n.children[o]=new cs(a[o],o)),i.parent=n;return(t.parent=new cs(null,0)).children=[t],t}function us(){var e=ns,t=1,n=1,r=null;function i(i){var s=ls(i);if(s.eachAfter(a),s.parent.m=-s.z,s.eachBefore(o),r)i.eachBefore(c);else{var l=i,u=i,d=i;i.eachBefore(function(e){e.xu.x&&(u=e),e.depth>d.depth&&(d=e)});var f=l===u?1:e(l,u)/2,p=f-l.x,m=t/(u.x+f+p),h=n/(d.depth||1);i.eachBefore(function(e){e.x=(e.x+p)*m,e.y=e.depth*h})}return i}function a(t){var n=t.children,r=t.parent.children,i=t.i?r[t.i-1]:null;if(n){os(t);var a=(n[0].z+n[n.length-1].z)/2;i?(t.z=i.z+e(t._,i._),t.m=t.z-a):t.z=a}else i&&(t.z=i.z+e(t._,i._));t.parent.A=s(t,i,t.parent.A||r[0])}function o(e){e._.x=e.z+e.parent.m,e.m+=e.parent.m}function s(t,n,r){if(n){for(var i=t,a=t,o=n,s=i.parent.children[0],c=i.m,l=a.m,u=o.m,d=s.m,f;o=is(o),i=rs(i),o&&i;)s=rs(s),a=is(a),a.a=t,f=o.z+u-i.z-c+e(o._,i._),f>0&&(as(ss(o,t,r),t,f),c+=f,l+=f),u+=o.m,c+=i.m,d+=s.m,l+=a.m;o&&!is(a)&&(a.t=o,a.m+=u-l),i&&!rs(s)&&(s.t=i,s.m+=c-d,r=t)}return r}function c(e){e.x*=t,e.y=e.depth*n}return i.separation=function(t){return arguments.length?(e=t,i):e},i.size=function(e){return arguments.length?(r=!1,t=+e[0],n=+e[1],i):r?null:[t,n]},i.nodeSize=function(e){return arguments.length?(r=!0,t=+e[0],n=+e[1],i):r?[t,n]:null},i}function ds(e,t,n){this.k=e,this.x=t,this.y=n}ds.prototype={constructor:ds,scale:function(e){return e===1?this:new ds(this.k*e,this.x,this.y)},translate:function(e,t){return e===0&t===0?this:new ds(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return`translate(`+this.x+`,`+this.y+`) scale(`+this.k+`)`}};var fs=new ds(1,0,0);ps.prototype=ds.prototype;function ps(e){for(;!e.__zoom;)if(!(e=e.parentNode))return fs;return e.__zoom}var ms={class:`mb-4 flex items-center justify-between`},hs={class:`flex items-center gap-2`},gs=[`title`],_s={class:`flex flex-wrap gap-2 text-sm text-base-content/60`},vs={class:`mb-4 flex flex-wrap gap-4 text-xs`},ys={class:`flex items-center gap-1`},bs={class:`flex items-center gap-1`},xs={class:`flex items-center gap-1`},Ss={class:`flex items-center gap-1`},Cs={class:`flex items-center gap-1`},ws={key:0,class:`flex flex-col items-center justify-center py-8 text-base-content/60`},Ts=e({__name:`NetworkTopology`,setup(e){let{t}=k(),r=he(),o=M(),l=A(null),u=A(null),d=A(new Set),p=A(!1),h=A(null),_=m(()=>p.value&&h.value?h.value:r.activeConnections),y=null,b=null,x=null;function C(e,t=`600 11px sans-serif`){x||=document.createElement(`canvas`);let n=x.getContext(`2d`);return n?(n.font=t,n.measureText(e).width):e.length*7}let ee=!1;function T(){ee||(ee=!0,requestAnimationFrame(()=>{ee=!1,ue()}))}let j=m(()=>{let e=_.value,t=new Map;e.forEach(e=>{let n=e.metadata.sourceIP||`Unknown`,r=String(e.metadata.sourcePort||`Unknown`),i=e.rule||`Direct`,a=e.rulePayload,o=a?`${i}: ${a}`:i,s=e.chains||[],c=s[0]??`Direct`,l=s.length>1?s[1]??`Direct`:s[0]??`Direct`,u=e.download+e.upload;t.has(l)||t.set(l,{data:{id:`group-${l}`,name:l,type:`group`,connections:0,traffic:0},proxies:new Map});let d=t.get(l);d.data.connections++,d.data.traffic+=u,d.proxies.has(c)||d.proxies.set(c,{data:{id:`proxy-${l}-${c}`,name:c,type:`proxy`,connections:0,traffic:0},rules:new Map});let f=d.proxies.get(c);f.data.connections++,f.data.traffic+=u,f.rules.has(o)||f.rules.set(o,{data:{id:`rule-${l}-${c}-${o}`,name:o,type:`rule`,connections:0,traffic:0},clients:new Map});let p=f.rules.get(o);p.data.connections++,p.data.traffic+=u,p.clients.has(n)||p.clients.set(n,{data:{id:`client-${l}-${c}-${o}-${n}`,name:n,type:`client`,connections:0,traffic:0},ports:new Map});let m=p.clients.get(n);m.data.connections++,m.data.traffic+=u,m.ports.has(r)||m.ports.set(r,{id:`port-${l}-${c}-${o}-${n}-${r}`,name:r,type:`port`,connections:0,traffic:0});let h=m.ports.get(r);h.connections++,h.traffic+=u});let n=[];function r(e,t=!1){return(d.value.has(e.id)||t)&&e.children&&e.children.length>0?{...e,_children:e.children,children:void 0,collapsed:!0}:{...e,collapsed:!1}}return t.forEach(e=>{let t={...e.data,children:[]};e.proxies.forEach(e=>{let n={...e.data,children:[]};e.rules.forEach(e=>{let t={...e.data,children:[]};e.clients.forEach(e=>{let n=Array.from(e.ports.values()),r=d.value.has(`expanded-${e.data.id}`)?{...e.data,children:n,collapsed:!1}:{...e.data,_children:n,children:void 0,collapsed:!0};t.children.push(r)}),!d.value.has(`expanded-${e.data.id}`)&&t.children.length>0?(t._children=t.children,t.children=void 0,t.collapsed=!0):t.collapsed=!1,n.children.push(t)});let i=r(n);t.children.push(i)});let i=r(t);n.push(i)}),{id:`root`,name:`Connections`,type:`root`,connections:e.length,traffic:e.reduce((e,t)=>e+t.download+t.upload,0),children:n}}),N=m(()=>{let e=_.value,t=new Set,n=new Set,r=new Set,i=new Set;return e.forEach(e=>{t.add(e.metadata.sourceIP||`Unknown`),n.add(e.rule||`Direct`);let a=e.chains||[];i.add(a[0]??`Direct`),r.add(a.length>1?a[1]??`Direct`:a[0]??`Direct`)}),{clientCount:t.size,ruleCount:n.size,groupCount:r.size,proxyCount:i.size,totalTraffic:e.reduce((e,t)=>e+t.download+t.upload,0)}});function te(){let e=ve();return{root:{fill:e.neutral,bg:`color-mix(in oklch, ${e.neutral} 15%, transparent)`},client:{fill:e.primary,bg:`color-mix(in oklch, ${e.primary} 15%, transparent)`},port:{fill:e.warning,bg:`color-mix(in oklch, ${e.warning} 15%, transparent)`},rule:{fill:e.secondary,bg:`color-mix(in oklch, ${e.secondary} 15%, transparent)`},group:{fill:e.accent,bg:`color-mix(in oklch, ${e.accent} 15%, transparent)`},proxy:{fill:e.info,bg:`color-mix(in oklch, ${e.info} 15%, transparent)`},baseContent:e.baseContent}}function F(){let e=o.curTheme;return y&&b===e?y:(y=te(),b=e,y)}function I(e){return F()[e].fill}function ie(e){return F()[e].bg}function L(e){switch(e){case`client`:return re;case`port`:return P;case`rule`:return ne;case`group`:return fe;case`proxy`:return ae;default:return fe}}function le(e,t){let n=`expanded-${e}`;t?e.startsWith(`rule-`)||e.startsWith(`client-`)?d.value.add(n):d.value.delete(e):e.startsWith(`rule-`)||e.startsWith(`client-`)?d.value.delete(n):d.value.add(e)}function ue(){if(!l.value||!u.value)return;let e=j.value;if(!e.children||e.children.length===0)return;Jr(l.value).selectAll(`*`).remove();let t=Yo(e),n=u.value.clientWidth;us().nodeSize([50,100]).separation((e,t)=>e.parent===t.parent?1:1.5)(t);let r=new Map,i=t.descendants();for(let e of i)if(e.data.type!==`root`){let t=C(e.data.name),n=e.data.children&&e.data.children.length>0||e.data._children&&e.data._children.length>0?20:0;r.set(e.data.id,t+32+n)}function a(e){return r.get(e.data.id)??80}let o=new Map;t.descendants().forEach(e=>{if(e.data.type!==`root`){let t=a(e),n=o.get(e.depth)??0;o.set(e.depth,Math.max(n,t))}});let s=new Map,c=0;for(let e=1;e<=o.size;e++){let t=o.get(e)??100;if(e===1)c=t/2;else{let n=o.get(e-1)??100;c+=n/2+40+t/2}s.set(e,c)}t.descendants().forEach(e=>{e.data.type!==`root`&&e.depth>0&&(e.y=s.get(e.depth)??e.y)});let d=1/0,f=-1/0;t.each(e=>{let t=e.x??0;tf&&(f=t)});let p=f-d+50,m=Math.max(400,p+25+40),h=0;t.each(e=>{if(e.data.type!==`root`){let t=r.get(e.data.id)??80,n=(e.y??0)+t/2;n>h&&(h=n)}});let g=Math.max(n,h+60+40),_=Jr(l.value).attr(`width`,g).attr(`height`,m).append(`g`).attr(`transform`,`translate(60, ${-d+50/2+25})`),v=F(),y=t.links().filter(e=>e.source.data.type!==`root`);_.selectAll(`.link`).data(y).join(`path`).attr(`class`,`link`).attr(`d`,e=>{let t=e.source,n=e.target,r=a(t),i=a(n),o=t.y-0+r/2,s=t.x,c=n.y-0-i/2,l=n.x,u=(o+c)/2;return`M${o},${s} C${u},${s} ${u},${l} ${c},${l}`}).attr(`fill`,`none`).attr(`stroke`,v.baseContent).attr(`stroke-opacity`,.3).attr(`stroke-width`,e=>Math.max(1,Math.min(4,e.target.data.connections/5)));let b=_.selectAll(`.node`).data(t.descendants().filter(e=>e.data.type!==`root`)).join(`g`).attr(`class`,`node`).attr(`transform`,e=>`translate(${(e.y??0)-0},${e.x})`).style(`cursor`,e=>e.data.children&&e.data.children.length>0||e.data._children&&e.data._children.length>0?`pointer`:`default`).on(`click`,(e,t)=>{(t.data.children&&t.data.children.length>0||t.data._children&&t.data._children.length>0)&&le(t.data.id,t.data.collapsed??!1)});b.append(`text`).attr(`dy`,-30/2-4).attr(`text-anchor`,`middle`).attr(`fill`,e=>I(e.data.type)).attr(`font-size`,`10px`).attr(`font-weight`,`500`).text(e=>`${e.data.connections}`),b.append(`rect`).attr(`x`,e=>-a(e)/2).attr(`y`,-30/2).attr(`width`,e=>a(e)).attr(`height`,30).attr(`rx`,6).attr(`fill`,e=>ie(e.data.type)).attr(`stroke`,e=>I(e.data.type)).attr(`stroke-width`,2),b.filter(e=>!!(e.data.children&&e.data.children.length>0||e.data._children&&e.data._children.length>0)).append(`text`).attr(`x`,e=>a(e)/2-12).attr(`dy`,`0.35em`).attr(`text-anchor`,`middle`).attr(`fill`,e=>I(e.data.type)).attr(`font-size`,`14px`).attr(`font-weight`,`700`).text(e=>e.data.collapsed?`+`:`−`),b.append(`text`).attr(`dy`,`0.31em`).attr(`text-anchor`,`middle`).attr(`fill`,e=>I(e.data.type)).attr(`font-size`,`11px`).attr(`font-weight`,`600`).text(e=>e.data.name),b.append(`title`).text(e=>`${e.data.name}\n${e.data.connections} connections\n${z(e.data.traffic).toString()}`)}function de(){p.value?h.value=null:h.value=[...r.activeConnections],p.value=!p.value}return v([()=>j.value,()=>o.curTheme],()=>{E(T)},{deep:!0}),g(()=>{E(T);let e=new ResizeObserver(()=>T());u.value&&e.observe(u.value),w(()=>{e.disconnect(),x=null,y=null})}),(e,r)=>(D(),s(`div`,null,[a(`div`,ms,[a(`div`,hs,[a(`button`,{class:n([`btn btn-circle btn-ghost btn-xs`,{"text-warning":i(p)}]),title:i(p)?i(t)(`resume`):i(t)(`pause`),onClick:de},[i(p)?(D(),c(i(se),{key:0,class:`h-4 w-4`})):(D(),c(i(oe),{key:1,class:`h-4 w-4`}))],10,gs)]),a(`div`,_s,[a(`span`,null,S(i(N).clientCount)+` `+S(i(t)(`clients`)),1),r[0]||=a(`span`,null,`·`,-1),a(`span`,null,S(i(N).ruleCount)+` `+S(i(t)(`rules`)),1),r[1]||=a(`span`,null,`·`,-1),a(`span`,null,S(i(N).groupCount)+` `+S(i(t)(`groups`)),1),r[2]||=a(`span`,null,`·`,-1),a(`span`,null,S(i(N).proxyCount)+` `+S(i(t)(`nodes`)),1),r[3]||=a(`span`,null,`·`,-1),a(`span`,null,S(i(z)(i(N).totalTraffic).toString()),1)])]),a(`div`,vs,[a(`div`,ys,[(D(),c(O(L(`group`)),{class:`h-4 w-4 text-accent`})),a(`span`,null,S(i(t)(`proxyGroups`)),1)]),a(`div`,bs,[(D(),c(O(L(`proxy`)),{class:`h-4 w-4 text-info`})),a(`span`,null,S(i(t)(`proxyNodes`)),1)]),a(`div`,xs,[(D(),c(O(L(`rule`)),{class:`h-4 w-4 text-secondary`})),a(`span`,null,S(i(t)(`rules`)),1)]),a(`div`,Ss,[(D(),c(O(L(`client`)),{class:`h-4 w-4 text-primary`})),a(`span`,null,S(i(t)(`sourceIP`)),1)]),a(`div`,Cs,[(D(),c(O(L(`port`)),{class:`h-4 w-4 text-warning`})),a(`span`,null,S(i(t)(`sourcePort`)),1)])]),i(_).length===0?(D(),s(`div`,ws,[f(i(ce),{class:`mb-2 h-8 w-8 animate-pulse`}),a(`span`,null,S(i(t)(`waitingForConnections`)),1)])):(D(),s(`div`,{key:1,ref_key:`containerRef`,ref:u,class:`touch-pan-x touch-pan-y overflow-x-auto`},[(D(),s(`svg`,{ref_key:`svgRef`,ref:l,class:`min-h-100`},null,512))],512))]))}}),Es=Object.assign(Ts,{__name:`NetworkTopology`}),Ds={class:`rounded-box bg-base-300 p-4`},Os={class:`mb-4 flex flex-col gap-2`},ks={class:`flex items-center justify-between gap-2`},As={class:`flex items-center gap-2`},js={class:`text-xl font-bold text-base-content`},Ms=[`data-tip`],Ns={class:`btn btn-circle text-info btn-ghost btn-xs`},Ps={class:`hidden sm:inline`},Fs={key:0,class:`stats stats-vertical bg-base-200 shadow sm:stats-horizontal`},Is={class:`stat py-2`},Ls={class:`stat-title text-xs`},Rs={class:`stat-value text-lg text-primary`},zs={key:0,class:`stat py-2`},Bs={class:`stat-title text-xs`},Vs=[`title`],Hs={class:`flex items-center gap-1`},Us={class:`stat py-2`},Ws={class:`stat-title text-xs`},Gs={class:`stat-value text-lg`},Ks={class:`stat py-2`},qs={class:`stat-title text-xs`},Js={class:`stat-value text-lg`},Ys={class:`stat py-2`},Xs={class:`stat-title text-xs`},Zs={class:`stat-value text-lg text-secondary`},Qs={class:`hidden overflow-x-auto rounded-md lg:block`},$s={class:`table w-full table-zebra`},ec={class:`bg-base-200`},tc={class:`text-base-content`},nc={class:`flex items-center gap-2`},rc={class:`text-base-content`},ic={class:`text-base-content`},ac={class:`text-base-content`},oc={class:`text-base-content`},sc={class:`text-base-content`},cc={key:0},lc={colspan:`6`,class:`text-center text-base-content/70`},uc=[`onClick`],dc={colspan:`6`,class:`py-2`},fc={class:`flex items-center gap-2`},pc={class:`font-semibold text-primary`},mc={class:`text-xs text-base-content/60`},hc={class:`text-xs text-base-content/60`},gc={class:`font-mono text-base-content`},_c=[`title`],vc={class:`flex items-center gap-1`},yc={class:`text-sm`},bc={class:`text-base-content`},xc={class:`text-base-content`},Sc={class:`font-bold text-primary`},Cc=[`title`,`onClick`],wc={class:`flex flex-col gap-3 lg:hidden`},Tc={key:0,class:`flex flex-col gap-2 rounded-lg bg-base-200 p-3`},Ec={class:`flex items-center gap-2`},Dc={class:`text-xs font-semibold text-base-content/60`},Oc={class:`flex flex-1 gap-2`},kc={class:`flex items-center gap-2`},Ac={class:`text-xs font-semibold text-base-content/60`},jc={class:`flex flex-1 gap-2`},Mc={key:1,class:`rounded-lg bg-base-200 p-4 text-center text-base-content/70`},Nc=[`onClick`],Pc={class:`card-body p-4`},Fc={class:`flex items-center justify-between`},Ic={class:`font-semibold text-primary`},Lc={class:`text-xs text-base-content/60`},Rc={class:`card-body p-4`},zc={class:`mb-2 flex items-start justify-between`},Bc={class:`flex-1`},Vc={class:`text-xs font-semibold text-base-content/60 uppercase`},Hc={class:`font-mono text-sm font-bold text-base-content`},Uc=[`title`,`onClick`],Wc={key:0,class:`mb-2`},Gc={class:`text-xs font-semibold text-base-content/60 uppercase`},Kc={class:`flex items-center gap-1 text-sm text-base-content`},qc={class:`text-xs text-base-content/60`},Jc={class:`grid grid-cols-3 gap-2`},Yc={class:`text-xs font-semibold text-base-content/60 uppercase`},Xc={class:`text-sm font-medium text-base-content`},Zc={class:`text-xs font-semibold text-base-content/60 uppercase`},Qc={class:`text-sm font-medium text-base-content`},$c={class:`text-xs font-semibold text-base-content/60 uppercase`},el={class:`text-sm font-bold text-primary`},tl=e({__name:`DataUsageTable`,setup(e){let{t,locale:u}=k(),g=he(),v=A(`total`),y=A(`desc`),x=A(null),C=A({}),w=r(`showDataUsageTable`,!1),E=e=>z(e).toString();function O(e){v.value===e?y.value=y.value===`asc`?`desc`:`asc`:(v.value=e,y.value=`desc`)}function j(e){x.value===e?(x.value=null,C.value={}):(x.value=e,C.value={})}function M(e){C.value[e]=!C.value[e]}let N=m(()=>{let e=Object.values(g.dataUsageMap),t=v.value,n=y.value;return e.sort((e,r)=>{let i=0;switch(t){case`ip`:i=e.sourceIP.localeCompare(r.sourceIP);break;case`duration`:i=(e.firstSeen?e.lastSeen-e.firstSeen:0)-(r.firstSeen?r.lastSeen-r.firstSeen:0);break;case`upload`:i=e.upload-r.upload;break;case`download`:i=e.download-r.download;break;case`total`:i=e.total-r.total;break}return n===`asc`?i:-i})}),te=m(()=>{let e=N.value;if(!x.value)return e.map(e=>({type:`data`,original:e,depth:0}));let t=new Map;for(let n of e){let e=n.sourceIP,r=t.get(e);r?r.push(n):t.set(e,[n])}let n=[];for(let[e,r]of t)if(n.push({type:`group`,key:e,depth:0,subRows:r}),C.value[e])for(let e of r)n.push({type:`data`,original:e,depth:1});return n}),P=m(()=>{let e=N.value,t=e.reduce((e,t)=>e+t.upload,0),n=e.reduce((e,t)=>e+t.download,0),r=2**53-1,i=0;e.forEach(e=>{e.firstSeen&&e.firstSeeni&&(i=e.lastSeen)});let a=r!==2**53-1&&i>0;return{count:e.length,upload:t,download:n,total:t+n,firstSeen:a?r:void 0,lastSeen:a?i:void 0}});function ne(){confirm(t(`confirmClearAll`))&&g.clearDataUsage()}function F(e){g.removeDataUsageEntry(e)}return(e,r)=>(D(),s(`div`,Ds,[a(`div`,Os,[a(`div`,ks,[a(`div`,As,[a(`h2`,js,S(i(t)(`dataUsage`)),1),a(`div`,{class:`tooltip tooltip-top before:ml-4 before:max-w-xs before:rounded-lg before:p-2 before:text-xs before:content-[attr(data-tip)] md:tooltip-right md:before:ml-0 md:before:text-sm lg:before:text-base`,"data-tip":i(t)(`dataUsageInfo`)},[a(`button`,Ns,[f(i(pe),{size:18})])],8,Ms),ee(a(`input`,{"onUpdate:modelValue":r[0]||=e=>b(w)?w.value=e:null,type:`checkbox`,class:`toggle toggle-primary`},null,512),[[l,i(w)]])]),i(w)?(D(),s(`button`,{key:0,class:`btn btn-sm btn-error`,onClick:ne},[f(i(ue),{size:16}),a(`span`,Ps,S(i(t)(`clearAll`)),1)])):T(``,!0)]),i(w)?(D(),s(o,{key:0},[i(P).count>0?(D(),s(`div`,Fs,[a(`div`,Is,[a(`div`,Ls,S(i(t)(`devices`)),1),a(`div`,Rs,S(i(P).count),1)]),i(P).firstSeen&&i(P).lastSeen?(D(),s(`div`,zs,[a(`div`,Bs,S(i(t)(`timeRange`)),1),a(`div`,{class:`stat-value text-sm`,title:i(ye)(i(P).firstSeen,i(P).lastSeen,i(u))},[a(`div`,Hs,[f(i(L),{size:16}),a(`span`,null,S(i(_e)(i(P).firstSeen,i(P).lastSeen)),1)])],8,Vs)])):T(``,!0),a(`div`,Us,[a(`div`,Ws,S(i(t)(`uploadTotal`)),1),a(`div`,Gs,S(E(i(P).upload)),1)]),a(`div`,Ks,[a(`div`,qs,S(i(t)(`downloadTotal`)),1),a(`div`,Js,S(E(i(P).download)),1)]),a(`div`,Ys,[a(`div`,Xs,S(i(t)(`grandTotal`)),1),a(`div`,Zs,S(E(i(P).total)),1)])])):T(``,!0),a(`div`,Qs,[a(`table`,$s,[a(`thead`,null,[a(`tr`,ec,[a(`th`,tc,[a(`div`,nc,[a(`button`,{class:`flex items-center gap-1 hover:text-primary`,onClick:r[1]||=e=>O(`ip`)},[a(`span`,null,S(i(t)(`ipAddress`)),1),i(v)===`ip`&&i(y)===`asc`?(D(),c(i(I),{key:0,size:14})):i(v)===`ip`&&i(y)===`desc`?(D(),c(i(R),{key:1,size:14})):T(``,!0)]),i(x)===`ip`?(D(),s(`button`,{key:1,class:`cursor-pointer text-primary`,onClick:r[3]||=p(e=>j(`ip`),[`stop`])},[f(i(de),{size:16})])):(D(),s(`button`,{key:0,class:`cursor-pointer`,onClick:r[2]||=p(e=>j(`ip`),[`stop`])},[f(i(le),{size:16})]))])]),a(`th`,rc,[a(`button`,{class:`flex items-center gap-1 hover:text-primary`,onClick:r[4]||=e=>O(`duration`)},[a(`span`,null,S(i(t)(`duration`)),1),i(v)===`duration`&&i(y)===`asc`?(D(),c(i(I),{key:0,size:14})):i(v)===`duration`&&i(y)===`desc`?(D(),c(i(R),{key:1,size:14})):T(``,!0)])]),a(`th`,ic,[a(`button`,{class:`flex items-center gap-1 hover:text-primary`,onClick:r[5]||=e=>O(`upload`)},[a(`span`,null,S(i(t)(`upload`)),1),i(v)===`upload`&&i(y)===`asc`?(D(),c(i(I),{key:0,size:14})):i(v)===`upload`&&i(y)===`desc`?(D(),c(i(R),{key:1,size:14})):T(``,!0)])]),a(`th`,ac,[a(`button`,{class:`flex items-center gap-1 hover:text-primary`,onClick:r[6]||=e=>O(`download`)},[a(`span`,null,S(i(t)(`download`)),1),i(v)===`download`&&i(y)===`asc`?(D(),c(i(I),{key:0,size:14})):i(v)===`download`&&i(y)===`desc`?(D(),c(i(R),{key:1,size:14})):T(``,!0)])]),a(`th`,oc,[a(`button`,{class:`flex items-center gap-1 hover:text-primary`,onClick:r[7]||=e=>O(`total`)},[a(`span`,null,S(i(t)(`total`)),1),i(v)===`total`&&i(y)===`asc`?(D(),c(i(I),{key:0,size:14})):i(v)===`total`&&i(y)===`desc`?(D(),c(i(R),{key:1,size:14})):T(``,!0)])]),a(`th`,sc,S(i(t)(`actions`)),1)])]),a(`tbody`,null,[i(N).length===0?(D(),s(`tr`,cc,[a(`td`,lc,S(i(t)(`noDataUsageYet`)),1)])):(D(!0),s(o,{key:1},_(i(te),e=>(D(),s(o,{key:e.type===`group`?`group-${e.key}`:`data-${e.original.sourceIP}`},[e.type===`group`?(D(),s(`tr`,{key:0,class:`cursor-pointer bg-base-200 hover:bg-base-300`,onClick:t=>M(e.key)},[a(`td`,dc,[a(`div`,fc,[a(`span`,pc,S(i(t)(`ipAddress`))+`: `+S(e.key),1),a(`span`,mc,` (`+S(e.subRows.length)+` `+S(e.subRows.length===1?i(t)(`devices`).slice(0,-1):i(t)(`devices`))+`) `,1),a(`span`,hc,S(i(t)(`total`))+`: `+S(E(e.subRows.reduce((e,t)=>e+t.total,0))),1),i(C)[e.key]?(D(),c(i(R),{key:0,size:14,class:`ml-auto`})):(D(),c(i(I),{key:1,size:14,class:`ml-auto`}))])])],8,uc)):e.type===`data`?(D(),s(`tr`,{key:1,class:`hover`,style:d({paddingLeft:`${e.depth*1}rem`})},[a(`td`,gc,S(e.original.sourceIP),1),a(`td`,{class:`text-base-content`,title:e.original.firstSeen?i(ye)(e.original.firstSeen,e.original.lastSeen,i(u)):`-`},[a(`div`,vc,[f(i(L),{size:14,class:`text-base-content/60`}),a(`span`,yc,S(e.original.firstSeen?i(_e)(e.original.firstSeen,e.original.lastSeen):`-`),1)])],8,_c),a(`td`,bc,S(E(e.original.upload)),1),a(`td`,xc,S(E(e.original.download)),1),a(`td`,Sc,S(E(e.original.total)),1),a(`td`,null,[a(`button`,{class:`btn text-error btn-ghost btn-xs hover:bg-error/20`,title:i(t)(`remove`),onClick:p(t=>F(e.original.sourceIP),[`stop`])},[f(i(ue),{size:14})],8,Cc)])],4)):T(``,!0)],64))),128))])])]),a(`div`,wc,[i(N).length>0?(D(),s(`div`,Tc,[a(`div`,Ec,[a(`div`,Dc,S(i(t)(`sortBy`)),1),a(`div`,Oc,[a(`button`,{class:n([`btn flex-1 btn-xs`,i(v)===`ip`?`btn-primary`:`btn-ghost`]),onClick:r[8]||=e=>O(`ip`)},[h(S(i(t)(`ipShort`))+` `,1),i(v)===`ip`&&i(y)===`asc`?(D(),c(i(I),{key:0,size:12})):i(v)===`ip`&&i(y)===`desc`?(D(),c(i(R),{key:1,size:12})):T(``,!0)],2),a(`button`,{class:n([`btn flex-1 btn-xs`,i(v)===`duration`?`btn-primary`:`btn-ghost`]),onClick:r[9]||=e=>O(`duration`)},[h(S(i(t)(`duration`))+` `,1),i(v)===`duration`&&i(y)===`asc`?(D(),c(i(I),{key:0,size:12})):i(v)===`duration`&&i(y)===`desc`?(D(),c(i(R),{key:1,size:12})):T(``,!0)],2),a(`button`,{class:n([`btn flex-1 btn-xs`,i(v)===`upload`?`btn-primary`:`btn-ghost`]),onClick:r[10]||=e=>O(`upload`)},[h(S(i(t)(`upload`))+` `,1),i(v)===`upload`&&i(y)===`asc`?(D(),c(i(I),{key:0,size:12})):i(v)===`upload`&&i(y)===`desc`?(D(),c(i(R),{key:1,size:12})):T(``,!0)],2),a(`button`,{class:n([`btn flex-1 btn-xs`,i(v)===`download`?`btn-primary`:`btn-ghost`]),onClick:r[11]||=e=>O(`download`)},[h(S(i(t)(`download`))+` `,1),i(v)===`download`&&i(y)===`asc`?(D(),c(i(I),{key:0,size:12})):i(v)===`download`&&i(y)===`desc`?(D(),c(i(R),{key:1,size:12})):T(``,!0)],2),a(`button`,{class:n([`btn flex-1 btn-xs`,i(v)===`total`?`btn-primary`:`btn-ghost`]),onClick:r[12]||=e=>O(`total`)},[h(S(i(t)(`total`))+` `,1),i(v)===`total`&&i(y)===`asc`?(D(),c(i(I),{key:0,size:12})):i(v)===`total`&&i(y)===`desc`?(D(),c(i(R),{key:1,size:12})):T(``,!0)],2)])]),a(`div`,kc,[a(`div`,Ac,S(i(t)(`groupBy`)),1),a(`div`,jc,[a(`button`,{class:n([`btn flex-1 btn-xs`,i(x)===`ip`?`btn-primary`:`btn-ghost`]),onClick:r[13]||=e=>j(`ip`)},[h(S(i(t)(`ipShort`))+` `,1),i(x)===`ip`?(D(),c(i(de),{key:0,size:12})):(D(),c(i(le),{key:1,size:12}))],2)])])])):T(``,!0),i(N).length===0?(D(),s(`div`,Mc,S(i(t)(`noDataUsageYet`)),1)):T(``,!0),(D(!0),s(o,null,_(i(te),e=>(D(),s(o,{key:e.type===`group`?`group-${e.key}`:`data-${e.original.sourceIP}`},[e.type===`group`?(D(),s(`div`,{key:0,class:`card cursor-pointer bg-primary/20 shadow-md`,onClick:t=>M(e.key)},[a(`div`,Pc,[a(`div`,Fc,[a(`div`,null,[a(`div`,Ic,S(i(t)(`ipAddress`))+`: `+S(e.key),1),a(`div`,Lc,S(e.subRows.length)+` `+S(e.subRows.length===1?i(t)(`devices`).slice(0,-1):i(t)(`devices`))+` · `+S(i(t)(`total`))+`: `+S(E(e.subRows.reduce((e,t)=>e+t.total,0))),1)]),i(C)[e.key]?(D(),c(i(R),{key:0,size:16})):(D(),c(i(I),{key:1,size:16}))])])],8,Nc)):e.type===`data`?(D(),s(`div`,{key:1,class:`card bg-base-200 shadow-md`,style:d({marginLeft:`${e.depth*1}rem`})},[a(`div`,Rc,[a(`div`,zc,[a(`div`,Bc,[a(`div`,Vc,S(i(t)(`ipAddress`)),1),a(`div`,Hc,S(e.original.sourceIP),1)]),a(`button`,{class:`btn btn-circle text-error btn-ghost btn-xs`,title:i(t)(`remove`),onClick:p(t=>F(e.original.sourceIP),[`stop`])},[f(i(ue),{size:16})],8,Uc)]),e.original.firstSeen?(D(),s(`div`,Wc,[a(`div`,Gc,S(i(t)(`timeRange`)),1),a(`div`,Kc,[f(i(L),{size:14,class:`text-base-content/60`}),a(`span`,null,S(i(_e)(e.original.firstSeen,e.original.lastSeen)),1)]),a(`div`,qc,S(i(ye)(e.original.firstSeen,e.original.lastSeen,i(u))),1)])):T(``,!0),r[14]||=a(`div`,{class:`divider my-2`},null,-1),a(`div`,Jc,[a(`div`,null,[a(`div`,Yc,S(i(t)(`upload`)),1),a(`div`,Xc,S(E(e.original.upload)),1)]),a(`div`,null,[a(`div`,Zc,S(i(t)(`download`)),1),a(`div`,Qc,S(E(e.original.download)),1)]),a(`div`,null,[a(`div`,$c,S(i(t)(`total`)),1),a(`div`,el,S(E(e.original.total)),1)])])])],4)):T(``,!0)],64))),128))])],64)):T(``,!0)])]))}}),nl=Object.assign(tl,{__name:`DataUsageTable`}),rl={class:`flex h-full flex-col gap-4 overflow-y-auto`},il={class:`stats grid w-full shrink-0 stats-vertical grid-cols-2 bg-primary shadow sm:grid-cols-3 xl:grid-cols-6`},al={key:0,class:`flex items-center justify-center gap-2 rounded-lg bg-base-200 px-4 py-2 text-sm`},ol={class:`text-base-content/60`},sl={class:`font-mono font-medium`},cl={class:`grid grid-cols-1 gap-4 lg:grid-cols-2 xl:grid-cols-3`},ll={class:`card h-72 bg-base-200 p-2 shadow-sm lg:h-80`},ul={class:`card h-72 bg-base-200 p-2 shadow-sm lg:h-80`},dl={class:`card h-72 bg-base-200 p-2 shadow-sm lg:h-80`},fl={class:`card h-72 bg-base-200 p-2 shadow-sm lg:h-80`},pl={class:`card h-72 bg-base-200 p-2 shadow-sm lg:h-80`},ml={class:`card h-72 bg-base-200 p-2 shadow-sm lg:h-80`},hl={class:`grid grid-cols-1 gap-4 md:grid-cols-2 xl:grid-cols-3`},gl={class:`card bg-base-200 p-4 shadow-sm`},_l={class:`font-semibold`},vl={class:`btn btn-circle btn-ghost btn-xs`},yl=e({__name:`overview`,setup(e){let{t:r}=k();x({title:m(()=>r(`overview`))});let o=N(),l=he(),u=t(),d=M(),p=e=>z(e).toString(),g=m(()=>(d.curTheme,be())),_=A(),b=A(),C=A(),w=m(()=>[{name:r(`down`),color:g.value.seriesColors[0]},{name:r(`up`),color:g.value.seriesColors[1]}]),ee=m(()=>[[...o.trafficChartHistory.download],[...o.trafficChartHistory.upload]]),E=m(()=>[{name:r(`memory`),color:g.value.seriesColors[2]}]),O=m(()=>[[...o.memoryChartHistory]]),j=m(()=>[{name:r(`activeConnections`),color:g.value.seriesColors[3]}]),te=m(()=>[[...o.connectionCountHistory]]),P=m(()=>({chart:{type:`pie`,backgroundColor:g.value.backgroundColor,animation:!1},credits:{enabled:!1},accessibility:{enabled:!1},title:{text:r(`flow`),style:{color:g.value.textColor}},tooltip:{pointFormatter(){let e=this.y||0,t=this.percentage||0;return`${this.name}
${z(e).toString()} (${t.toFixed(1)}%)`}},plotOptions:{pie:{allowPointSelect:!0,cursor:`pointer`,dataLabels:{enabled:!1},showInLegend:!0,animation:!1}},legend:{itemStyle:{color:g.value.textColor},itemHoverStyle:{color:g.value.textColorHover}},series:[{type:`pie`,name:r(`flow`),data:[{name:r(`downloadTotal`),y:l.latestConnectionMsg?.downloadTotal||0,color:g.value.seriesColors[0]},{name:r(`uploadTotal`),y:l.latestConnectionMsg?.uploadTotal||0,color:g.value.seriesColors[1]}]}]})),ne=m(()=>{let e=l.activeConnections,t=0,n=0,i=0;return e.forEach(e=>{let r=e.metadata.network?.toLowerCase()||``;r===`tcp`?t++:r===`udp`?n++:i++}),{chart:{type:`pie`,backgroundColor:g.value.backgroundColor,animation:!1},credits:{enabled:!1},accessibility:{enabled:!1},title:{text:r(`networkTypes`),style:{color:g.value.textColor}},tooltip:{pointFormatter(){let e=this.y||0,t=this.percentage||0;return`${this.name}: ${e} (${t.toFixed(1)}%)`}},plotOptions:{pie:{allowPointSelect:!0,cursor:`pointer`,dataLabels:{enabled:!1},showInLegend:!0,animation:!1}},legend:{itemStyle:{color:g.value.textColor},itemHoverStyle:{color:g.value.textColorHover}},series:[{type:`pie`,name:r(`networkTypes`),data:[{name:r(`tcp`),y:t,color:g.value.seriesColors[0]},{name:r(`udp`),y:n,color:g.value.seriesColors[1]},...i>0?[{name:r(`other`),y:i,color:g.value.seriesColors[2]}]:[]]}]}}),re=m(()=>{let e=l.speedGroupByName,t=Object.entries(e).sort(([,e],[,t])=>t-e).slice(0,5),n=t.map(([e])=>e),i=t.map(([,e])=>e);return{chart:{type:`bar`,backgroundColor:g.value.backgroundColor,animation:!1},credits:{enabled:!1},accessibility:{enabled:!1},title:{text:r(`topProxies`),style:{color:g.value.textColor}},xAxis:{categories:n,labels:{style:{color:g.value.textColor}},lineColor:g.value.lineColor},yAxis:{title:{text:void 0},labels:{style:{color:g.value.textColor},formatter(){return`${z(this.value).toString()}/s`}},gridLineColor:g.value.gridLineColor,min:0},tooltip:{formatter(){return`${n[this.x]||this.x}
${z(this.y).toString()}/s`}},legend:{enabled:!1},plotOptions:{bar:{dataLabels:{enabled:!1},animation:!1}},series:[{type:`bar`,name:r(`traffic`),data:i,color:g.value.seriesColors[0]}]}}),I=o.trafficChartHistory.download.at(-1)?.[0]??0,ie=o.memoryChartHistory.at(-1)?.[0]??0,ae=o.connectionCountHistory.at(-1)?.[0]??0;return v(()=>o.latestTraffic,e=>{if(e&&_.value?.chartRef){let t=Date.now();t>I&&(_.value.chartRef.addPoints([{seriesIndex:0,time:t,value:e.down},{seriesIndex:1,time:t,value:e.up}]),I=t)}}),v(()=>o.latestMemory?.inuse,e=>{if(e&&b.value?.chartRef){let t=Date.now();t>ie&&(b.value.chartRef.addPoint(0,t,e),ie=t)}}),v(()=>l.latestConnectionMsg?.connections?.length,e=>{if(e!==void 0&&C.value?.chartRef){let t=Date.now();t>ae&&(C.value.chartRef.addPoint(0,t,e),ae=t)}}),(e,t)=>{let m=Te,g=Ae,v=Fe,x=Ct,k=Ht,A=Es,M=nl;return D(),s(`div`,rl,[a(`div`,il,[f(m,{label:i(r)(`upload`)},{default:y(()=>[h(S(p(i(o).latestTraffic?.up||0))+`/s `,1)]),_:1},8,[`label`]),f(m,{label:i(r)(`download`)},{default:y(()=>[h(S(p(i(o).latestTraffic?.down||0))+`/s `,1)]),_:1},8,[`label`]),f(m,{label:i(r)(`uploadTotal`)},{default:y(()=>[h(S(p(i(l).latestConnectionMsg?.uploadTotal||0)),1)]),_:1},8,[`label`]),f(m,{label:i(r)(`downloadTotal`)},{default:y(()=>[h(S(p(i(l).latestConnectionMsg?.downloadTotal||0)),1)]),_:1},8,[`label`]),f(m,{label:i(r)(`activeConnections`)},{default:y(()=>[h(S(i(l).latestConnectionMsg?.connections?.length||0),1)]),_:1},8,[`label`]),f(m,{label:i(r)(`memoryUsage`)},{default:y(()=>[h(S(p(i(o).latestMemory?.inuse||0)),1)]),_:1},8,[`label`])]),i(u).currentEndpoint?.url?(D(),s(`div`,al,[a(`span`,ol,S(i(r)(`connectedTo`))+`:`,1),a(`span`,sl,S(i(u).currentEndpoint?.url),1)])):T(``,!0),a(`div`,cl,[a(`div`,ll,[f(g,{ref_key:`trafficChartRef`,ref:_,title:i(r)(`traffic`),"series-config":i(w),"initial-data":i(ee),"is-loading":!i(o).latestTraffic},null,8,[`title`,`series-config`,`initial-data`,`is-loading`])]),a(`div`,ul,[f(v,{options:i(P),"is-loading":!i(l).latestConnectionMsg?.connections?.length},null,8,[`options`,`is-loading`])]),a(`div`,dl,[f(g,{ref_key:`memoryChartRef`,ref:b,title:i(r)(`memory`),"series-config":i(E),"initial-data":i(O),"is-loading":!i(o).latestMemory},null,8,[`title`,`series-config`,`initial-data`,`is-loading`])]),a(`div`,fl,[f(g,{ref_key:`connectionsChartRef`,ref:C,title:i(r)(`connectionsChart`),"series-config":i(j),"initial-data":i(te),"is-loading":!i(l).latestConnectionMsg?.connections?.length,"value-mode":`number`},null,8,[`title`,`series-config`,`initial-data`,`is-loading`])]),a(`div`,pl,[f(v,{options:i(ne),"is-loading":!i(l).latestConnectionMsg?.connections?.length},null,8,[`options`,`is-loading`])]),a(`div`,ml,[f(v,{options:i(re),"is-loading":Object.keys(i(l).speedGroupByName).length===0},null,8,[`options`,`is-loading`])])]),a(`div`,hl,[f(x),f(k)]),a(`div`,gl,[a(`div`,{class:`flex cursor-pointer items-center justify-between`,onClick:t[0]||=e=>i(d).showNetworkTopology=!i(d).showNetworkTopology},[a(`h3`,_l,S(i(r)(`networkTopology`)),1),a(`button`,vl,[f(i(F),{class:n([`h-5 w-5 transition-transform`,{"rotate-180":i(d).showNetworkTopology}])},null,8,[`class`])])]),i(d).showNetworkTopology?(D(),c(A,{key:0,class:`mt-4`})):T(``,!0)]),f(M)])}}});export{yl as default}; \ No newline at end of file diff --git a/dashboard/public/_nuxt/B7D9IcDw.js b/dashboard/public/_nuxt/ftm_ukHF.js similarity index 98% rename from dashboard/public/_nuxt/B7D9IcDw.js rename to dashboard/public/_nuxt/ftm_ukHF.js index d25458e..7cd89b0 100644 --- a/dashboard/public/_nuxt/B7D9IcDw.js +++ b/dashboard/public/_nuxt/ftm_ukHF.js @@ -1 +1 @@ -import{Ct as e,W as t,_ as n,_t as r,a as i,b as a,bt as o,c as s,d as c,dt as l,f as u,g as d,gt as f,h as p,i as m,l as h,m as g,n as _,nt as v,o as y,p as b,r as x,s as S,t as C,tt as w,u as T,v as E,vt as D,xt as O,y as k}from"./DOvCTup-.js";import{_ as A}from"./CZdbW3fS.js";var j=class extends a{constructor(e,t){super(),this.options=t,this.#e=e,this.#s=null,this.#o=S(),this.bindMethods(),this.setOptions(t)}#e;#t=void 0;#n=void 0;#r=void 0;#i;#a;#o;#s;#c;#l;#u;#d;#f;#p;#m=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#t.addObserver(this),N(this.#t,this.options)?this.#h():this.updateResult(),this.#y())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return P(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return P(this.#t,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#b(),this.#x(),this.#t.removeObserver(this)}setOptions(e){let t=this.options,n=this.#t;if(this.options=this.#e.defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!=`boolean`&&typeof this.options.enabled!=`function`&&typeof g(this.options.enabled,this.#t)!=`boolean`)throw Error(`Expected enabled to be a boolean or a callback that returns a boolean`);this.#S(),this.#t.setOptions(this.options),t._defaulted&&!d(this.options,t)&&this.#e.getQueryCache().notify({type:`observerOptionsUpdated`,query:this.#t,observer:this});let r=this.hasListeners();r&&F(this.#t,n,this.options,t)&&this.#h(),this.updateResult(),r&&(this.#t!==n||g(this.options.enabled,this.#t)!==g(t.enabled,this.#t)||p(this.options.staleTime,this.#t)!==p(t.staleTime,this.#t))&&this.#g();let i=this.#_();r&&(this.#t!==n||g(this.options.enabled,this.#t)!==g(t.enabled,this.#t)||i!==this.#p)&&this.#v(i)}getOptimisticResult(e){let t=this.#e.getQueryCache().build(this.#e,e),n=this.createResult(t,e);return L(this,n)&&(this.#r=n,this.#a=this.options,this.#i=this.#t.state),n}getCurrentResult(){return this.#r}trackResult(e,t){return new Proxy(e,{get:(e,n)=>(this.trackProp(n),t?.(n),n===`promise`&&(this.trackProp(`data`),!this.options.experimental_prefetchInRender&&this.#o.status===`pending`&&this.#o.reject(Error(`experimental_prefetchInRender feature flag is not enabled`))),Reflect.get(e,n))})}trackProp(e){this.#m.add(e)}getCurrentQuery(){return this.#t}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){let t=this.#e.defaultQueryOptions(e),n=this.#e.getQueryCache().build(this.#e,t);return n.fetch().then(()=>this.createResult(n,t))}fetch(e){return this.#h({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#r))}#h(e){this.#S();let t=this.#t.fetch(this.options,e);return e?.throwOnError||(t=t.catch(u)),t}#g(){this.#b();let e=p(this.options.staleTime,this.#t);if(T||this.#r.isStale||!c(e))return;let t=E(this.#r.dataUpdatedAt,e)+1;this.#d=k.setTimeout(()=>{this.#r.isStale||this.updateResult()},t)}#_(){return(typeof this.options.refetchInterval==`function`?this.options.refetchInterval(this.#t):this.options.refetchInterval)??!1}#v(e){this.#x(),this.#p=e,!(T||g(this.options.enabled,this.#t)===!1||!c(this.#p)||this.#p===0)&&(this.#f=k.setInterval(()=>{(this.options.refetchIntervalInBackground||s.isFocused())&&this.#h()},this.#p))}#y(){this.#g(),this.#v(this.#_())}#b(){this.#d&&=(k.clearTimeout(this.#d),void 0)}#x(){this.#f&&=(k.clearInterval(this.#f),void 0)}createResult(e,t){let n=this.#t,r=this.options,a=this.#r,o=this.#i,s=this.#a,c=e===n?this.#n:e.state,{state:l}=e,u={...l},d=!1,f;if(t._optimisticResults){let a=this.hasListeners(),o=!a&&N(e,t),s=a&&F(e,n,t,r);(o||s)&&(u={...u,...i(l.data,e.options)}),t._optimisticResults===`isRestoring`&&(u.fetchStatus=`idle`)}let{error:p,errorUpdatedAt:m,status:h}=u;f=u.data;let _=!1;if(t.placeholderData!==void 0&&f===void 0&&h===`pending`){let e;a?.isPlaceholderData&&t.placeholderData===s?.placeholderData?(e=a.data,_=!0):e=typeof t.placeholderData==`function`?t.placeholderData(this.#u?.state.data,this.#u):t.placeholderData,e!==void 0&&(h=`success`,f=b(a?.data,e,t),d=!0)}if(t.select&&f!==void 0&&!_)if(a&&f===o?.data&&t.select===this.#c)f=this.#l;else try{this.#c=t.select,f=t.select(f),f=b(a?.data,f,t),this.#l=f,this.#s=null}catch(e){this.#s=e}this.#s&&(p=this.#s,f=this.#l,m=Date.now(),h=`error`);let v=u.fetchStatus===`fetching`,y=h===`pending`,x=h===`error`,C=y&&v,w=f!==void 0,T={status:h,fetchStatus:u.fetchStatus,isPending:y,isSuccess:h===`success`,isError:x,isInitialLoading:C,isLoading:C,data:f,dataUpdatedAt:u.dataUpdatedAt,error:p,errorUpdatedAt:m,failureCount:u.fetchFailureCount,failureReason:u.fetchFailureReason,errorUpdateCount:u.errorUpdateCount,isFetched:u.dataUpdateCount>0||u.errorUpdateCount>0,isFetchedAfterMount:u.dataUpdateCount>c.dataUpdateCount||u.errorUpdateCount>c.errorUpdateCount,isFetching:v,isRefetching:v&&!y,isLoadingError:x&&!w,isPaused:u.fetchStatus===`paused`,isPlaceholderData:d,isRefetchError:x&&w,isStale:I(e,t),refetch:this.refetch,promise:this.#o,isEnabled:g(t.enabled,e)!==!1};if(this.options.experimental_prefetchInRender){let t=e=>{T.status===`error`?e.reject(T.error):T.data!==void 0&&e.resolve(T.data)},r=()=>{t(this.#o=T.promise=S())},i=this.#o;switch(i.status){case`pending`:e.queryHash===n.queryHash&&t(i);break;case`fulfilled`:(T.status===`error`||T.data!==i.value)&&r();break;case`rejected`:(T.status!==`error`||T.error!==i.reason)&&r();break}}return T}updateResult(){let e=this.#r,t=this.createResult(this.#t,this.options);this.#i=this.#t.state,this.#a=this.options,this.#i.data!==void 0&&(this.#u=this.#t),!d(t,e)&&(this.#r=t,this.#C({listeners:(()=>{if(!e)return!0;let{notifyOnChangeProps:t}=this.options,n=typeof t==`function`?t():t;if(n===`all`||!n&&!this.#m.size)return!0;let r=new Set(n??this.#m);return this.options.throwOnError&&r.add(`error`),Object.keys(this.#r).some(t=>{let n=t;return this.#r[n]!==e[n]&&r.has(n)})})()}))}#S(){let e=this.#e.getQueryCache().build(this.#e,this.options);if(e===this.#t)return;let t=this.#t;this.#t=e,this.#n=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#y()}#C(e){y.batch(()=>{e.listeners&&this.listeners.forEach(e=>{e(this.#r)}),this.#e.getQueryCache().notify({query:this.#t,type:`observerResultsUpdated`})})}};function M(e,t){return g(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status===`error`&&t.retryOnMount===!1)}function N(e,t){return M(e,t)||e.state.data!==void 0&&P(e,t,t.refetchOnMount)}function P(e,t,n){if(g(t.enabled,e)!==!1&&p(t.staleTime,e)!==`static`){let r=typeof n==`function`?n(e):n;return r===`always`||r!==!1&&I(e,t)}return!1}function F(e,t,n,r){return(e!==t||g(r.enabled,e)===!1)&&(!n.suspense||e.state.status!==`error`)&&I(e,n)}function I(e,t){return g(t.enabled,e)!==!1&&e.isStaleByTime(p(t.staleTime,e))}function L(e,t){return!d(e.getCurrentResult(),t)}var R=class extends a{#e;#t=void 0;#n;#r;constructor(e,t){super(),this.#e=e,this.setOptions(t),this.bindMethods(),this.#i()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){let t=this.options;this.options=this.#e.defaultMutationOptions(e),d(this.options,t)||this.#e.getMutationCache().notify({type:`observerOptionsUpdated`,mutation:this.#n,observer:this}),t?.mutationKey&&this.options.mutationKey&&h(t.mutationKey)!==h(this.options.mutationKey)?this.reset():this.#n?.state.status===`pending`&&this.#n.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#n?.removeObserver(this)}onMutationUpdate(e){this.#i(),this.#a(e)}getCurrentResult(){return this.#t}reset(){this.#n?.removeObserver(this),this.#n=void 0,this.#i(),this.#a()}mutate(e,t){return this.#r=t,this.#n?.removeObserver(this),this.#n=this.#e.getMutationCache().build(this.#e,this.options),this.#n.addObserver(this),this.#n.execute(e)}#i(){let e=this.#n?.state??m();this.#t={...e,isPending:e.status===`pending`,isSuccess:e.status===`success`,isError:e.status===`error`,isIdle:e.status===`idle`,mutate:this.mutate,reset:this.reset}}#a(e){y.batch(()=>{if(this.#r&&this.hasListeners()){let t=this.#t.variables,n=this.#t.context,r={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};e?.type===`success`?(this.#r.onSuccess?.(e.data,t,n,r),this.#r.onSettled?.(e.data,null,t,n,r)):e?.type===`error`&&(this.#r.onError?.(e.error,t,n,r),this.#r.onSettled?.(void 0,e.error,t,n,r))}this.listeners.forEach(e=>{e(this.#t)})})}};function z(e=``){if(!w())throw Error(`vue-query hooks can only be used inside setup() function or functions that support injection context.`);let t=v(_(e));if(!t)throw Error(`No 'queryClient' found in Vue context, use 'VueQueryPlugin' to properly initialize the library.`);return t}function B(i,a,s){let c=s||z(),u=t(()=>{let e=a;typeof e==`function`&&(e=e());let t=C(e);typeof t.enabled==`function`&&(t.enabled=t.enabled());let n=c.defaultQueryOptions(t);return n._optimisticResults=c.isRestoring?.value?`isRestoring`:`optimistic`,n}),d=new i(c,u.value),p=u.value.shallow?o(d.getCurrentResult()):r(d.getCurrentResult()),m=()=>{};c.isRestoring&&l(c.isRestoring,e=>{e||(m(),m=d.subscribe(e=>{x(p,e)}))},{immediate:!0});let h=()=>{d.setOptions(u.value),x(p,d.getCurrentResult())};l(u,h),f(()=>{m()});let g=(...e)=>(h(),p.refetch(...e)),_=()=>new Promise((e,t)=>{let r=()=>{},i=()=>{if(u.value.enabled!==!1){d.setOptions(u.value);let i=d.getOptimisticResult(u.value);i.isStale?(r(),d.fetchOptimistic(u.value).then(e,r=>{n(u.value.throwOnError,[r,d.getCurrentQuery()])?t(r):e(d.getCurrentResult())})):(r(),e(i))}};i(),r=l(u,i)});l(()=>p.error,e=>{if(p.isError&&!p.isFetching&&n(u.value.throwOnError,[e,d.getCurrentQuery()]))throw e});let v=e(u.value.shallow?O(p):D(p));for(let e in p)typeof p[e]==`function`&&(v[e]=p[e]);return v.suspense=_,v.refetch=g,v}function V(e,t){return B(j,e,t)}function H(i,a){let s=a||z(),c=t(()=>{let e=typeof i==`function`?i():i;return s.defaultMutationOptions(C(e))}),u=new R(s,c.value),d=c.value.shallow?o(u.getCurrentResult()):r(u.getCurrentResult()),p=u.subscribe(e=>{x(d,e)}),m=(e,t)=>{u.mutate(e,t).catch(()=>{})};l(c,()=>{u.setOptions(c.value)}),f(()=>{p()});let h=e(c.value.shallow?O(d):D(d));return l(()=>d.error,e=>{if(e&&n(c.value.throwOnError,[e]))throw e}),{...h,mutate:m,mutateAsync:d.mutate,reset:d.reset}}function U(){return A()}const W={proxies:[`proxies`],proxyProviders:[`proxy-providers`],rules:[`rules`],ruleProviders:[`rule-providers`],config:[`config`],version:[`version`]};function G(){return V({queryKey:W.rules,queryFn:async()=>{let{rules:e}=await U().get(`rules`).json();return Object.values(e)}})}function K(){return V({queryKey:W.ruleProviders,queryFn:async()=>{let{providers:e}=await U().get(`providers/rules`).json();return Object.values(e)}})}function q(){let e=z();return H({mutationFn:async e=>{await U().put(`providers/rules/${encodeURIComponent(e)}`)},onSuccess:()=>{e.invalidateQueries({queryKey:W.rules}),e.invalidateQueries({queryKey:W.ruleProviders})}})}function J(){return V({queryKey:W.config,queryFn:async()=>U().get(`configs`).json()})}function Y(){let e=z();return H({mutationFn:async({key:e,value:t})=>{await U().patch(`configs`,{json:{[e]:t}})},onSuccess:()=>{e.invalidateQueries({queryKey:W.config})}})}function X(){return V({queryKey:W.version,queryFn:async()=>{let{version:e}=await U().get(`version`).json();return e}})}export{q as a,Y as i,K as n,X as o,G as r,H as s,J as t}; \ No newline at end of file +import{Ct as e,W as t,_ as n,_t as r,a as i,b as a,bt as o,c as s,d as c,dt as l,f as u,g as d,gt as f,h as p,i as m,l as h,m as g,n as _,nt as v,o as y,p as b,r as x,s as S,t as C,tt as w,u as T,v as E,vt as D,xt as O,y as k}from"./CxatB1L6.js";import{_ as A}from"./DRJWd5jk.js";var j=class extends a{constructor(e,t){super(),this.options=t,this.#e=e,this.#s=null,this.#o=S(),this.bindMethods(),this.setOptions(t)}#e;#t=void 0;#n=void 0;#r=void 0;#i;#a;#o;#s;#c;#l;#u;#d;#f;#p;#m=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#t.addObserver(this),N(this.#t,this.options)?this.#h():this.updateResult(),this.#y())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return P(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return P(this.#t,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#b(),this.#x(),this.#t.removeObserver(this)}setOptions(e){let t=this.options,n=this.#t;if(this.options=this.#e.defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!=`boolean`&&typeof this.options.enabled!=`function`&&typeof g(this.options.enabled,this.#t)!=`boolean`)throw Error(`Expected enabled to be a boolean or a callback that returns a boolean`);this.#S(),this.#t.setOptions(this.options),t._defaulted&&!d(this.options,t)&&this.#e.getQueryCache().notify({type:`observerOptionsUpdated`,query:this.#t,observer:this});let r=this.hasListeners();r&&F(this.#t,n,this.options,t)&&this.#h(),this.updateResult(),r&&(this.#t!==n||g(this.options.enabled,this.#t)!==g(t.enabled,this.#t)||p(this.options.staleTime,this.#t)!==p(t.staleTime,this.#t))&&this.#g();let i=this.#_();r&&(this.#t!==n||g(this.options.enabled,this.#t)!==g(t.enabled,this.#t)||i!==this.#p)&&this.#v(i)}getOptimisticResult(e){let t=this.#e.getQueryCache().build(this.#e,e),n=this.createResult(t,e);return L(this,n)&&(this.#r=n,this.#a=this.options,this.#i=this.#t.state),n}getCurrentResult(){return this.#r}trackResult(e,t){return new Proxy(e,{get:(e,n)=>(this.trackProp(n),t?.(n),n===`promise`&&(this.trackProp(`data`),!this.options.experimental_prefetchInRender&&this.#o.status===`pending`&&this.#o.reject(Error(`experimental_prefetchInRender feature flag is not enabled`))),Reflect.get(e,n))})}trackProp(e){this.#m.add(e)}getCurrentQuery(){return this.#t}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){let t=this.#e.defaultQueryOptions(e),n=this.#e.getQueryCache().build(this.#e,t);return n.fetch().then(()=>this.createResult(n,t))}fetch(e){return this.#h({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#r))}#h(e){this.#S();let t=this.#t.fetch(this.options,e);return e?.throwOnError||(t=t.catch(u)),t}#g(){this.#b();let e=p(this.options.staleTime,this.#t);if(T||this.#r.isStale||!c(e))return;let t=E(this.#r.dataUpdatedAt,e)+1;this.#d=k.setTimeout(()=>{this.#r.isStale||this.updateResult()},t)}#_(){return(typeof this.options.refetchInterval==`function`?this.options.refetchInterval(this.#t):this.options.refetchInterval)??!1}#v(e){this.#x(),this.#p=e,!(T||g(this.options.enabled,this.#t)===!1||!c(this.#p)||this.#p===0)&&(this.#f=k.setInterval(()=>{(this.options.refetchIntervalInBackground||s.isFocused())&&this.#h()},this.#p))}#y(){this.#g(),this.#v(this.#_())}#b(){this.#d&&=(k.clearTimeout(this.#d),void 0)}#x(){this.#f&&=(k.clearInterval(this.#f),void 0)}createResult(e,t){let n=this.#t,r=this.options,a=this.#r,o=this.#i,s=this.#a,c=e===n?this.#n:e.state,{state:l}=e,u={...l},d=!1,f;if(t._optimisticResults){let a=this.hasListeners(),o=!a&&N(e,t),s=a&&F(e,n,t,r);(o||s)&&(u={...u,...i(l.data,e.options)}),t._optimisticResults===`isRestoring`&&(u.fetchStatus=`idle`)}let{error:p,errorUpdatedAt:m,status:h}=u;f=u.data;let _=!1;if(t.placeholderData!==void 0&&f===void 0&&h===`pending`){let e;a?.isPlaceholderData&&t.placeholderData===s?.placeholderData?(e=a.data,_=!0):e=typeof t.placeholderData==`function`?t.placeholderData(this.#u?.state.data,this.#u):t.placeholderData,e!==void 0&&(h=`success`,f=b(a?.data,e,t),d=!0)}if(t.select&&f!==void 0&&!_)if(a&&f===o?.data&&t.select===this.#c)f=this.#l;else try{this.#c=t.select,f=t.select(f),f=b(a?.data,f,t),this.#l=f,this.#s=null}catch(e){this.#s=e}this.#s&&(p=this.#s,f=this.#l,m=Date.now(),h=`error`);let v=u.fetchStatus===`fetching`,y=h===`pending`,x=h===`error`,C=y&&v,w=f!==void 0,T={status:h,fetchStatus:u.fetchStatus,isPending:y,isSuccess:h===`success`,isError:x,isInitialLoading:C,isLoading:C,data:f,dataUpdatedAt:u.dataUpdatedAt,error:p,errorUpdatedAt:m,failureCount:u.fetchFailureCount,failureReason:u.fetchFailureReason,errorUpdateCount:u.errorUpdateCount,isFetched:u.dataUpdateCount>0||u.errorUpdateCount>0,isFetchedAfterMount:u.dataUpdateCount>c.dataUpdateCount||u.errorUpdateCount>c.errorUpdateCount,isFetching:v,isRefetching:v&&!y,isLoadingError:x&&!w,isPaused:u.fetchStatus===`paused`,isPlaceholderData:d,isRefetchError:x&&w,isStale:I(e,t),refetch:this.refetch,promise:this.#o,isEnabled:g(t.enabled,e)!==!1};if(this.options.experimental_prefetchInRender){let t=e=>{T.status===`error`?e.reject(T.error):T.data!==void 0&&e.resolve(T.data)},r=()=>{t(this.#o=T.promise=S())},i=this.#o;switch(i.status){case`pending`:e.queryHash===n.queryHash&&t(i);break;case`fulfilled`:(T.status===`error`||T.data!==i.value)&&r();break;case`rejected`:(T.status!==`error`||T.error!==i.reason)&&r();break}}return T}updateResult(){let e=this.#r,t=this.createResult(this.#t,this.options);this.#i=this.#t.state,this.#a=this.options,this.#i.data!==void 0&&(this.#u=this.#t),!d(t,e)&&(this.#r=t,this.#C({listeners:(()=>{if(!e)return!0;let{notifyOnChangeProps:t}=this.options,n=typeof t==`function`?t():t;if(n===`all`||!n&&!this.#m.size)return!0;let r=new Set(n??this.#m);return this.options.throwOnError&&r.add(`error`),Object.keys(this.#r).some(t=>{let n=t;return this.#r[n]!==e[n]&&r.has(n)})})()}))}#S(){let e=this.#e.getQueryCache().build(this.#e,this.options);if(e===this.#t)return;let t=this.#t;this.#t=e,this.#n=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#y()}#C(e){y.batch(()=>{e.listeners&&this.listeners.forEach(e=>{e(this.#r)}),this.#e.getQueryCache().notify({query:this.#t,type:`observerResultsUpdated`})})}};function M(e,t){return g(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status===`error`&&t.retryOnMount===!1)}function N(e,t){return M(e,t)||e.state.data!==void 0&&P(e,t,t.refetchOnMount)}function P(e,t,n){if(g(t.enabled,e)!==!1&&p(t.staleTime,e)!==`static`){let r=typeof n==`function`?n(e):n;return r===`always`||r!==!1&&I(e,t)}return!1}function F(e,t,n,r){return(e!==t||g(r.enabled,e)===!1)&&(!n.suspense||e.state.status!==`error`)&&I(e,n)}function I(e,t){return g(t.enabled,e)!==!1&&e.isStaleByTime(p(t.staleTime,e))}function L(e,t){return!d(e.getCurrentResult(),t)}var R=class extends a{#e;#t=void 0;#n;#r;constructor(e,t){super(),this.#e=e,this.setOptions(t),this.bindMethods(),this.#i()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){let t=this.options;this.options=this.#e.defaultMutationOptions(e),d(this.options,t)||this.#e.getMutationCache().notify({type:`observerOptionsUpdated`,mutation:this.#n,observer:this}),t?.mutationKey&&this.options.mutationKey&&h(t.mutationKey)!==h(this.options.mutationKey)?this.reset():this.#n?.state.status===`pending`&&this.#n.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#n?.removeObserver(this)}onMutationUpdate(e){this.#i(),this.#a(e)}getCurrentResult(){return this.#t}reset(){this.#n?.removeObserver(this),this.#n=void 0,this.#i(),this.#a()}mutate(e,t){return this.#r=t,this.#n?.removeObserver(this),this.#n=this.#e.getMutationCache().build(this.#e,this.options),this.#n.addObserver(this),this.#n.execute(e)}#i(){let e=this.#n?.state??m();this.#t={...e,isPending:e.status===`pending`,isSuccess:e.status===`success`,isError:e.status===`error`,isIdle:e.status===`idle`,mutate:this.mutate,reset:this.reset}}#a(e){y.batch(()=>{if(this.#r&&this.hasListeners()){let t=this.#t.variables,n=this.#t.context,r={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};e?.type===`success`?(this.#r.onSuccess?.(e.data,t,n,r),this.#r.onSettled?.(e.data,null,t,n,r)):e?.type===`error`&&(this.#r.onError?.(e.error,t,n,r),this.#r.onSettled?.(void 0,e.error,t,n,r))}this.listeners.forEach(e=>{e(this.#t)})})}};function z(e=``){if(!w())throw Error(`vue-query hooks can only be used inside setup() function or functions that support injection context.`);let t=v(_(e));if(!t)throw Error(`No 'queryClient' found in Vue context, use 'VueQueryPlugin' to properly initialize the library.`);return t}function B(i,a,s){let c=s||z(),u=t(()=>{let e=a;typeof e==`function`&&(e=e());let t=C(e);typeof t.enabled==`function`&&(t.enabled=t.enabled());let n=c.defaultQueryOptions(t);return n._optimisticResults=c.isRestoring?.value?`isRestoring`:`optimistic`,n}),d=new i(c,u.value),p=u.value.shallow?o(d.getCurrentResult()):r(d.getCurrentResult()),m=()=>{};c.isRestoring&&l(c.isRestoring,e=>{e||(m(),m=d.subscribe(e=>{x(p,e)}))},{immediate:!0});let h=()=>{d.setOptions(u.value),x(p,d.getCurrentResult())};l(u,h),f(()=>{m()});let g=(...e)=>(h(),p.refetch(...e)),_=()=>new Promise((e,t)=>{let r=()=>{},i=()=>{if(u.value.enabled!==!1){d.setOptions(u.value);let i=d.getOptimisticResult(u.value);i.isStale?(r(),d.fetchOptimistic(u.value).then(e,r=>{n(u.value.throwOnError,[r,d.getCurrentQuery()])?t(r):e(d.getCurrentResult())})):(r(),e(i))}};i(),r=l(u,i)});l(()=>p.error,e=>{if(p.isError&&!p.isFetching&&n(u.value.throwOnError,[e,d.getCurrentQuery()]))throw e});let v=e(u.value.shallow?O(p):D(p));for(let e in p)typeof p[e]==`function`&&(v[e]=p[e]);return v.suspense=_,v.refetch=g,v}function V(e,t){return B(j,e,t)}function H(i,a){let s=a||z(),c=t(()=>{let e=typeof i==`function`?i():i;return s.defaultMutationOptions(C(e))}),u=new R(s,c.value),d=c.value.shallow?o(u.getCurrentResult()):r(u.getCurrentResult()),p=u.subscribe(e=>{x(d,e)}),m=(e,t)=>{u.mutate(e,t).catch(()=>{})};l(c,()=>{u.setOptions(c.value)}),f(()=>{p()});let h=e(c.value.shallow?O(d):D(d));return l(()=>d.error,e=>{if(e&&n(c.value.throwOnError,[e]))throw e}),{...h,mutate:m,mutateAsync:d.mutate,reset:d.reset}}function U(){return A()}const W={proxies:[`proxies`],proxyProviders:[`proxy-providers`],rules:[`rules`],ruleProviders:[`rule-providers`],config:[`config`],version:[`version`]};function G(){return V({queryKey:W.rules,queryFn:async()=>{let{rules:e}=await U().get(`rules`).json();return Object.values(e)}})}function K(){return V({queryKey:W.ruleProviders,queryFn:async()=>{let{providers:e}=await U().get(`providers/rules`).json();return Object.values(e)}})}function q(){let e=z();return H({mutationFn:async e=>{await U().put(`providers/rules/${encodeURIComponent(e)}`)},onSuccess:()=>{e.invalidateQueries({queryKey:W.rules}),e.invalidateQueries({queryKey:W.ruleProviders})}})}function J(){return V({queryKey:W.config,queryFn:async()=>U().get(`configs`).json()})}function Y(){let e=z();return H({mutationFn:async({key:e,value:t})=>{await U().patch(`configs`,{json:{[e]:t}})},onSuccess:()=>{e.invalidateQueries({queryKey:W.config})}})}function X(){return V({queryKey:W.version,queryFn:async()=>{let{version:e}=await U().get(`version`).json();return e}})}export{q as a,Y as i,K as n,X as o,G as r,H as s,J as t}; \ No newline at end of file diff --git a/dashboard/public/_nuxt/DGEvsBiX.js b/dashboard/public/_nuxt/xQuiMcB-.js similarity index 99% rename from dashboard/public/_nuxt/DGEvsBiX.js rename to dashboard/public/_nuxt/xQuiMcB-.js index bd8fb82..154148b 100644 --- a/dashboard/public/_nuxt/DGEvsBiX.js +++ b/dashboard/public/_nuxt/xQuiMcB-.js @@ -1,4 +1,4 @@ -import{o as e}from"./B7D9IcDw.js";import{$ as t,Dt as n,Et as r,F as i,G as a,H as o,J as s,K as c,Ot as l,Q as u,U as d,W as f,Z as p,ct as m,dt as h,jt as g,kt as _,q as v,st as y,yt as b}from"./DOvCTup-.js";import{A as x,s as S}from"./DkKkiaBA.js";import{a as ee,i as te,n as ne,o as re,r as ie,t as ae}from"./Cqvf2RiX.js";import{a as oe,h as se,l as ce,o as le,t as ue}from"./CZdbW3fS.js";var de={};function fe(e){let t=de[e];if(t)return t;t=de[e]=[];for(let e=0;e<128;e++){let n=String.fromCharCode(e);t.push(n)}for(let n=0;n=55296&&e<=57343?t+=`���`:t+=String.fromCharCode(e),r+=6;continue}}if((a&248)==240&&r+91114111?t+=`����`:(e-=65536,t+=String.fromCharCode(55296+(e>>10),56320+(e&1023))),r+=9;continue}}t+=`�`}return t})}C.defaultChars=`;/?:@&=+$,#`,C.componentChars=``;var pe=C,w={};function me(e){let t=w[e];if(t)return t;t=w[e]=[];for(let e=0;e<128;e++){let n=String.fromCharCode(e);/^[0-9a-z]$/i.test(n)?t.push(n):t.push(`%`+(`0`+e.toString(16).toUpperCase()).slice(-2))}for(let n=0;n=55296&&o<=57343){if(o>=55296&&o<=56319&&t+1=56320&&n<=57343){i+=encodeURIComponent(e[t]+e[t+1]),t++;continue}}i+=`%EF%BF%BD`;continue}i+=encodeURIComponent(e[t])}return i}T.defaultChars=`;/?:@&=+$,-_.!~*'()#`,T.componentChars=`-_.!~*'()`;var he=T;function E(e){let t=``;return t+=e.protocol||``,t+=e.slashes?`//`:``,t+=e.auth?e.auth+`@`:``,e.hostname&&e.hostname.indexOf(`:`)!==-1?t+=`[`+e.hostname+`]`:t+=e.hostname||``,t+=e.port?`:`+e.port:``,t+=e.pathname||``,t+=e.search||``,t+=e.hash||``,t}function D(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}var ge=/^([a-z0-9.+-]+:)/i,O=/:[0-9]*$/,_e=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,ve=[`%`,`/`,`?`,`;`,`#`,`'`,`{`,`}`,`|`,`\\`,`^`,"`",`<`,`>`,`"`,"`",` `,`\r`,` +import{o as e}from"./ftm_ukHF.js";import{$ as t,Dt as n,Et as r,F as i,G as a,H as o,J as s,K as c,Ot as l,Q as u,U as d,W as f,Z as p,ct as m,dt as h,jt as g,kt as _,q as v,st as y,yt as b}from"./CxatB1L6.js";import{A as x,s as S}from"./BlFRk3uc.js";import{a as ee,i as te,n as ne,o as re,r as ie,t as ae}from"./B_unqUh-.js";import{a as oe,h as se,l as ce,o as le,t as ue}from"./DRJWd5jk.js";var de={};function fe(e){let t=de[e];if(t)return t;t=de[e]=[];for(let e=0;e<128;e++){let n=String.fromCharCode(e);t.push(n)}for(let n=0;n=55296&&e<=57343?t+=`���`:t+=String.fromCharCode(e),r+=6;continue}}if((a&248)==240&&r+91114111?t+=`����`:(e-=65536,t+=String.fromCharCode(55296+(e>>10),56320+(e&1023))),r+=9;continue}}t+=`�`}return t})}C.defaultChars=`;/?:@&=+$,#`,C.componentChars=``;var pe=C,w={};function me(e){let t=w[e];if(t)return t;t=w[e]=[];for(let e=0;e<128;e++){let n=String.fromCharCode(e);/^[0-9a-z]$/i.test(n)?t.push(n):t.push(`%`+(`0`+e.toString(16).toUpperCase()).slice(-2))}for(let n=0;n=55296&&o<=57343){if(o>=55296&&o<=56319&&t+1=56320&&n<=57343){i+=encodeURIComponent(e[t]+e[t+1]),t++;continue}}i+=`%EF%BF%BD`;continue}i+=encodeURIComponent(e[t])}return i}T.defaultChars=`;/?:@&=+$,-_.!~*'()#`,T.componentChars=`-_.!~*'()`;var he=T;function E(e){let t=``;return t+=e.protocol||``,t+=e.slashes?`//`:``,t+=e.auth?e.auth+`@`:``,e.hostname&&e.hostname.indexOf(`:`)!==-1?t+=`[`+e.hostname+`]`:t+=e.hostname||``,t+=e.port?`:`+e.port:``,t+=e.pathname||``,t+=e.search||``,t+=e.hash||``,t}function D(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}var ge=/^([a-z0-9.+-]+:)/i,O=/:[0-9]*$/,_e=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,ve=[`%`,`/`,`?`,`;`,`#`,`'`,`{`,`}`,`|`,`\\`,`^`,"`",`<`,`>`,`"`,"`",` `,`\r`,` `,` `],ye=[`/`,`?`,`#`],be=255,xe=/^[+a-z0-9A-Z_-]{0,63}$/,Se=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,k={javascript:!0,"javascript:":!0},Ce={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function we(e,t){if(e&&e instanceof D)return e;let n=new D;return n.parse(e,t),n}D.prototype.parse=function(e,t){let n,r,i,a=e;if(a=a.trim(),!t&&e.split(`#`).length===1){let e=_e.exec(a);if(e)return this.pathname=e[1],e[2]&&(this.search=e[2]),this}let o=ge.exec(a);if(o&&(o=o[0],n=o.toLowerCase(),this.protocol=o,a=a.substr(o.length)),(t||o||a.match(/^\/\/[^@\/]+@[^@\/]+/))&&(i=a.substr(0,2)===`//`,i&&!(o&&k[o])&&(a=a.substr(2),this.slashes=!0)),!k[o]&&(i||o&&!Ce[o])){let e=-1;for(let t=0;t127?r+=`x`:r+=n[e];if(!r.match(xe)){let r=e.slice(0,t),i=e.slice(t+1),o=n.match(Se);o&&(r.push(o[1]),i.unshift(o[2])),i.length&&(a=i.join(`.`)+a),this.hostname=r.join(`.`);break}}}}this.hostname.length>be&&(this.hostname=``),o&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}let s=a.indexOf(`#`);s!==-1&&(this.hash=a.substr(s),a=a.slice(0,s));let c=a.indexOf(`?`);return c!==-1&&(this.search=a.substr(c),a=a.slice(0,c)),a&&(this.pathname=a),Ce[n]&&this.hostname&&!this.pathname&&(this.pathname=``),this},D.prototype.parseHost=function(e){let t=O.exec(e);t&&(t=t[0],t!==`:`&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)};var Te=we,Ee=g({decode:()=>pe,encode:()=>he,format:()=>E,parse:()=>Te},1),De=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,Oe=/[\0-\x1F\x7F-\x9F]/,ke=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u0890\u0891\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD80D[\uDC30-\uDC3F]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/,A=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDEAD\uDF55-\uDF59\uDF86-\uDF89]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5A\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDEB9\uDF3C-\uDF3E]|\uD806[\uDC3B\uDD44-\uDD46\uDDE2\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2\uDF00-\uDF09]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8\uDF43-\uDF4F\uDFFF]|\uD809[\uDC70-\uDC74]|\uD80B[\uDFF1\uDFF2]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A\uDFE2]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/,Ae=/[\$\+<->\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u0888\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20C0\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2426\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2B95\u2B97-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFF\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E3\u31EF\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uAB6A\uAB6B\uFB29\uFBB2-\uFBC2\uFD40-\uFD4F\uFDCF\uFDFC-\uFDFF\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC]|\uD802[\uDC77\uDC78\uDEC8]|\uD805\uDF3F|\uD807[\uDFD5-\uDFF1]|\uD81A[\uDF3C-\uDF3F\uDF45]|\uD82F\uDC9C|\uD833[\uDF50-\uDFC3]|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDEA\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85\uDE86]|\uD838[\uDD4F\uDEFF]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED7\uDEDC-\uDEEC\uDEF0-\uDEFC\uDF00-\uDF76\uDF7B-\uDFD9\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0\uDCB1\uDD00-\uDE53\uDE60-\uDE6D\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC5\uDECE-\uDEDB\uDEE0-\uDEE8\uDEF0-\uDEF8\uDF00-\uDF92\uDF94-\uDFCA]/,je=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,Me=g({Any:()=>De,Cc:()=>Oe,Cf:()=>ke,P:()=>A,S:()=>Ae,Z:()=>je},1),Ne=new Uint16Array(`ᵁ<Õıʊҝջאٵ۞ޢߖࠏ੊ઑඡ๭༉༦჊ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ὾⁠↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms„‹•˜¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲ΂ϏϢϸontourIntegraìȹoɴ͹\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՗՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲ׌y;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱cò׋؀JTabcdfgorstר׬ׯ׺؀ؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d׷׸䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇܎ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ޷޼߂ߐĀiyޱ޵rc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄΀HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶߻dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣ঳সে্਷ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗ࡜ࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४Ānrࢃ࢏gleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpw৔ਖਛgȀLRlr৞৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼੝੠੷੼અઋ઎p;椅y;䐜Ādl੥੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑ඗ඞcy;䐊cute;䅃ƀaey઴હાron;䅇dil;䅅;䐝ƀgswે૰଎ativeƀMTV૓૟૨ediumSpace;怋hiĀcn૦૘ë૙eryThiî૙tedĀGL૸ଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷ଺reak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊ஛ement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater΀;EFGLSTஶஷ஽௉௓௘௥扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲௽ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ೒拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨೹setĀ;E೰ೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂ෉෕ෛ෠෧෼ขภยา฿ไlig;䅒cute耻Ó䃓Āiy෎ීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲ෶cr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬื฼de耻Õ䃕es;樷ml耻Ö䃖erĀBP๋๠Āar๐๓r;怾acĀek๚๜;揞et;掴arenthesis;揜Ҁacfhilors๿ງຊຏຒດຝະ໼rtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ໠໤檻cedesȀ;EST່້໏໚扺qual;檯lantEqual;扼ilde;找me;怳Ādp໩໮uct;戏ortionĀ;aȥ໹l;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬؀BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁࿫࿳ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL࿜࿝࿡憒ar;懥eftArrow;懄eiling;按oǵ࿹\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»࿝pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄ቉ቕ቞ቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHc቎ቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗Āeiቻ኉Dzኀ\0ኇefore;戴a;䎘Ācn኎ኘkSpace;쀀  Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0᏿ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0጖y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻፿on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtè૙a;䎖r;愨pf;愤cr;쀀𝒵௡ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚΀;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒΀;Eaeiop዁ᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;e዁ᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;e዁ᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰ᜼ᝃᝈ᝸᝽០៦ᠹᡐᜍ᤽᥈ᥰot;櫭Ācrᛶ᜞kȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e᜚᜛戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀𝔟g΀costuvwឍឝឳេ៕៛៞ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀako៭ᠦᠵĀcn៲ᠣkƀlst៺֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘᠝斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈؀DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬ᣿ᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教΀;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ᣷᣹᣻᣽;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ᤟;敛;敘;攘;攔΀;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģ᥂bar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;e᜚᜜lƀ;bhᥨᥩᥫ䁜;槅sub;柈Ŭᥴ᥾lĀ;e᥹᥺怢t»᥺pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭍᭒\0᯽\0ᰌƀcpr᦭ᦲ᧝ute;䄇̀;abcdsᦿᧀᧄ᧊᧕᧙戩nd;橄rcup;橉Āau᧏᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r΀;Ecefms᩟᩠ᩢᩫ᪤᪪᪮旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖᪚᪟»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇᫔᫺\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ᫙\0\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁îᅠeĀmx᫱᫶ent»᫩eóɍǧ᫾\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯΀delprvw᭠᭬᭷ᮂᮬᯔ᯹arrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;p᭿ᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰸᰻᰿ᱝᱩᱵᲊᲞᲬᲷ᳻᳿ᴍᵻᶑᶫᶻ᷆᷍rò΁ar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂͸᳖᳜᳠mƀ;oș᳊᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄ὎὚ĀDoḆᴴoôᲉĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»Ṻƀaeiἒ἖Ἒls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙ῜ῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao‌⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧‪‬\0‮耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₟₥₰₴⃰⃵⃺⃿℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕ₝ute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽⃉ƀ;qsؾٌ⃄lanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqr׮ⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0↎proø₞r;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢␧␭␱␵␻ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀஀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼rò৆òΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonó྘quigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d྘➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ᠛旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐௏쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop඄⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roø඄urĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻\xA0ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓΀;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨í஘istĀ;s஠டr;쀀𝔫ȀEest௅⩦⩹⩼ƀ;qs஼⩭௡ƀ;qs஼௅⩴lanô௢ií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚΀AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs఻⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs఻⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast୻⭕⭚⭟lleì୻l;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖ΀chimpqu⮽⯍⯙⬄୸⯤⯯Ȁ;cerല⯆ഷ⯉uå൅;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭å೸åഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñ೗Ā;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰⳴ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥ⵲ⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;c᪞ⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācr⵩⵭ir;榿;쀀𝔬ͯ⵹\0\0⵼\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕ⶘ⶥⶨrò᪀Āir⶝ⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔ⷗ǒr;榷rp;榹΀;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ⹞\0⹽\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ⹧⹲຅脀¶;l⹭⹮䂶leìЃɩ⹸\0\0⹻m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳⻴ᤈ⻹⻽⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp໬⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t໻⾴ï໻rel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⿚⋢⿟⿥⿫⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei⿾々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔઀ABHabcdefhilmnoprstux぀けさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤΀cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstw࿜ガクシスゼゾダッデナp;極Ā;f࿠ゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes㄂㄄;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ì࿲âヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘㇤㇮rrowĀ;t࿜ㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowó࿪arpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓rò࿪aòՑ;怏oustĀ;a㈞㈟掱che»㈟mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦΀Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼਴t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì⹯耻­䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;q኱ኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫ਩war;椪lig耻ß䃟௡㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rë๟ƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproø዁im»ኬsðኞĀas㚺㚮ð዁rn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈ΀adempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xô᝷headĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜΀eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roð໻tré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚΀cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜ៟tré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌`.split(``).map(e=>e.charCodeAt(0))),Pe=new Uint16Array(`Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢`.split(``).map(e=>e.charCodeAt(0))),Fe=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);const Ie=String.fromCodePoint??function(e){let t=``;return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|e&1023),t+=String.fromCharCode(e),t};function Le(e){return e>=55296&&e<=57343||e>1114111?65533:Fe.get(e)??e}var j;(function(e){e[e.NUM=35]=`NUM`,e[e.SEMI=59]=`SEMI`,e[e.EQUALS=61]=`EQUALS`,e[e.ZERO=48]=`ZERO`,e[e.NINE=57]=`NINE`,e[e.LOWER_A=97]=`LOWER_A`,e[e.LOWER_F=102]=`LOWER_F`,e[e.LOWER_X=120]=`LOWER_X`,e[e.LOWER_Z=122]=`LOWER_Z`,e[e.UPPER_A=65]=`UPPER_A`,e[e.UPPER_F=70]=`UPPER_F`,e[e.UPPER_Z=90]=`UPPER_Z`})(j||={});var Re=32,M;(function(e){e[e.VALUE_LENGTH=49152]=`VALUE_LENGTH`,e[e.BRANCH_LENGTH=16256]=`BRANCH_LENGTH`,e[e.JUMP_TABLE=127]=`JUMP_TABLE`})(M||={});function ze(e){return e>=j.ZERO&&e<=j.NINE}function Be(e){return e>=j.UPPER_A&&e<=j.UPPER_F||e>=j.LOWER_A&&e<=j.LOWER_F}function Ve(e){return e>=j.UPPER_A&&e<=j.UPPER_Z||e>=j.LOWER_A&&e<=j.LOWER_Z||ze(e)}function He(e){return e===j.EQUALS||Ve(e)}var N;(function(e){e[e.EntityStart=0]=`EntityStart`,e[e.NumericStart=1]=`NumericStart`,e[e.NumericDecimal=2]=`NumericDecimal`,e[e.NumericHex=3]=`NumericHex`,e[e.NamedEntity=4]=`NamedEntity`})(N||={});var P;(function(e){e[e.Legacy=0]=`Legacy`,e[e.Strict=1]=`Strict`,e[e.Attribute=2]=`Attribute`})(P||={});var Ue=class{constructor(e,t,n){this.decodeTree=e,this.emitCodePoint=t,this.errors=n,this.state=N.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=P.Strict}startEntity(e){this.decodeMode=e,this.state=N.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(e,t){switch(this.state){case N.EntityStart:return e.charCodeAt(t)===j.NUM?(this.state=N.NumericStart,this.consumed+=1,this.stateNumericStart(e,t+1)):(this.state=N.NamedEntity,this.stateNamedEntity(e,t));case N.NumericStart:return this.stateNumericStart(e,t);case N.NumericDecimal:return this.stateNumericDecimal(e,t);case N.NumericHex:return this.stateNumericHex(e,t);case N.NamedEntity:return this.stateNamedEntity(e,t)}}stateNumericStart(e,t){return t>=e.length?-1:(e.charCodeAt(t)|Re)===j.LOWER_X?(this.state=N.NumericHex,this.consumed+=1,this.stateNumericHex(e,t+1)):(this.state=N.NumericDecimal,this.stateNumericDecimal(e,t))}addToNumericResult(e,t,n,r){if(t!==n){let i=n-t;this.result=this.result*r**+i+parseInt(e.substr(t,i),r),this.consumed+=i}}stateNumericHex(e,t){let n=t;for(;t>14;for(;t>14,i!==0){if(a===j.SEMI)return this.emitNamedEntityData(this.treeIndex,i,this.consumed+this.excess);this.decodeMode!==P.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var e;let{result:t,decodeTree:n}=this,r=(n[t]&M.VALUE_LENGTH)>>14;return this.emitNamedEntityData(t,r,this.consumed),(e=this.errors)==null||e.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(e,t,n){let{decodeTree:r}=this;return this.emitCodePoint(t===1?r[e]&~M.VALUE_LENGTH:r[e+1],n),t===3&&this.emitCodePoint(r[e+2],n),n}end(){var e;switch(this.state){case N.NamedEntity:return this.result!==0&&(this.decodeMode!==P.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case N.NumericDecimal:return this.emitNumericEntity(0,2);case N.NumericHex:return this.emitNumericEntity(0,3);case N.NumericStart:return(e=this.errors)==null||e.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case N.EntityStart:return 0}}};function We(e){let t=``,n=new Ue(e,e=>t+=Ie(e));return function(e,r){let i=0,a=0;for(;(a=e.indexOf(`&`,a))>=0;){t+=e.slice(i,a),n.startEntity(r);let o=n.write(e,a+1);if(o<0){i=a+n.end();break}i=a+o,a=o===0?i+1:i}let o=t+e.slice(i);return t=``,o}}function Ge(e,t,n,r){let i=(t&M.BRANCH_LENGTH)>>7,a=t&M.JUMP_TABLE;if(i===0)return a!==0&&r===a?n:-1;if(a){let t=r-a;return t<0||t>=i?-1:e[n+t]-1}let o=n,s=o+i-1;for(;o<=s;){let t=o+s>>>1,n=e[t];if(nr)s=t-1;else return e[t+i]}return-1}var Ke=We(Ne);We(Pe);function qe(e,t=P.Legacy){return Ke(e,t)}var Je=g({arrayReplaceAt:()=>et,assign:()=>$e,escapeHtml:()=>I,escapeRE:()=>pt,fromCodePoint:()=>nt,has:()=>Qe,isMdAsciiPunct:()=>B,isPunctChar:()=>z,isSpace:()=>L,isString:()=>Xe,isValidEntityCode:()=>tt,isWhiteSpace:()=>R,lib:()=>ht,normalizeReference:()=>mt,unescapeAll:()=>F,unescapeMd:()=>st},1);function Ye(e){return Object.prototype.toString.call(e)}function Xe(e){return Ye(e)===`[object String]`}var Ze=Object.prototype.hasOwnProperty;function Qe(e,t){return Ze.call(e,t)}function $e(e){return Array.prototype.slice.call(arguments,1).forEach(function(t){if(t){if(typeof t!=`object`)throw TypeError(t+`must be object`);Object.keys(t).forEach(function(n){e[n]=t[n]})}}),e}function et(e,t,n){return[].concat(e.slice(0,t),n,e.slice(t+1))}function tt(e){return!(e>=55296&&e<=57343||e>=64976&&e<=65007||(e&65535)==65535||(e&65535)==65534||e>=0&&e<=8||e===11||e>=14&&e<=31||e>=127&&e<=159||e>1114111)}function nt(e){if(e>65535){e-=65536;let t=55296+(e>>10),n=56320+(e&1023);return String.fromCharCode(t,n)}return String.fromCharCode(e)}var rt=/\\([!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~])/g,it=RegExp(rt.source+`|&([a-z#][a-z0-9]{1,31});`,`gi`),at=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i;function ot(e,t){if(t.charCodeAt(0)===35&&at.test(t)){let n=t[1].toLowerCase()===`x`?parseInt(t.slice(2),16):parseInt(t.slice(1),10);return tt(n)?nt(n):e}let n=qe(e);return n===e?e:n}function st(e){return e.indexOf(`\\`)<0?e:e.replace(rt,`$1`)}function F(e){return e.indexOf(`\\`)<0&&e.indexOf(`&`)<0?e:e.replace(it,function(e,t,n){return t||ot(e,n)})}var ct=/[&<>"]/,lt=/[&<>"]/g,ut={"&":`&`,"<":`<`,">":`>`,'"':`"`};function dt(e){return ut[e]}function I(e){return ct.test(e)?e.replace(lt,dt):e}var ft=/[.?*+^$[\]\\(){}|-]/g;function pt(e){return e.replace(ft,`\\$&`)}function L(e){switch(e){case 9:case 32:return!0}return!1}function R(e){if(e>=8192&&e<=8202)return!0;switch(e){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1}function z(e){return A.test(e)||Ae.test(e)}function B(e){switch(e){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}}function mt(e){return e=e.trim().replace(/\s+/g,` `),e.toLowerCase().toUpperCase()}var ht={mdurl:Ee,ucmicro:Me};function gt(e,t,n){let r,i,a,o,s=e.posMax,c=e.pos;for(e.pos=t+1,r=1;e.pos32))return a;if(r===41){if(o===0)break;o--}i++}return t===i||o!==0?a:(a.str=F(e.slice(t,i)),a.pos=i,a.ok=!0,a)}function vt(e,t,n,r){let i,a=t,o={ok:!1,can_continue:!1,pos:0,str:``,marker:0};if(r)o.str=r.str,o.marker=r.marker;else{if(a>=n)return o;let r=e.charCodeAt(a);if(r!==34&&r!==39&&r!==40)return o;t++,a++,r===40&&(r=41),o.marker=r}for(;a_t,parseLinkLabel:()=>gt,parseLinkTitle:()=>vt},1),V={};V.code_inline=function(e,t,n,r,i){let a=e[t];return``+I(a.content)+``},V.code_block=function(e,t,n,r,i){let a=e[t];return``+I(e[t].content)+` `},V.fence=function(e,t,n,r,i){let a=e[t],o=a.info?F(a.info).trim():``,s=``,c=``;if(o){let e=o.split(/(\s+)/g);s=e[0],c=e.slice(2).join(``)}let l;if(l=n.highlight&&n.highlight(a.content,s,c)||I(a.content),l.indexOf(`${l}\n`}return`
${l}
\n`},V.image=function(e,t,n,r,i){let a=e[t];return a.attrs[a.attrIndex(`alt`)][1]=i.renderInlineAsText(a.children,n,r),i.renderToken(e,t,n)},V.hardbreak=function(e,t,n){return n.xhtmlOut?`
diff --git a/dashboard/public/index.html b/dashboard/public/index.html index 1364828..dbad10c 100644 --- a/dashboard/public/index.html +++ b/dashboard/public/index.html @@ -1 +1 @@ -MetaCubeXD
\ No newline at end of file +MetaCubeXD
\ No newline at end of file