Files
2026-06-09 22:26:36 +01:00

7 lines
104 KiB
JavaScript

const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/Setup-C3GHdov-.js","assets/index-KkHsVs4Y.js","assets/createLucideIcon-D-_sbJKW.js","assets/runtime-core.esm-bundler-CINEgm0a.js","assets/runtime-dom.esm-bundler-B3VeUO8l.js","assets/Spinner-CMJUE3iy.js","assets/useTheme-vbCn9P26.js","assets/dataService-D588IEQF.js","assets/packets-B-5gWBx4.js","assets/system-OIM0xrD-.js","assets/websocket-Dk5wYLNC.js","assets/constants-C3rXUIAq.js","assets/index-D47gyd-z.css","assets/TxPowerNoticeModal-DpYeABa0.js","assets/Setup-DnBJK1io.css","assets/Login-CVfrHF6v.js","assets/Login-BL8otaOU.css","assets/Dashboard-B8JOynZW.js","assets/ChartCard-_A6zLVMr.js","assets/SignalBars-mHup2rTN.js","assets/Dashboard-CMjJB7km.css","assets/Neighbors-DU2jwkhS.js","assets/chunk-DECur_0Z.js","assets/leaflet-src-rW8DhqPH.js","assets/CopyLabel-7zw0wWsl.js","assets/formatters-CHyWlnnq.js","assets/Neighbors-BaH8Zh6u.css","assets/leaflet-vh-t_kPv.css","assets/Statistics-B0TENw33.js","assets/chartjs-adapter-date-fns.esm-C1TwaxS1.js","assets/chartjs-adapter-date-fns-BKkkO1xH.css","assets/GPSDiagnostics-zp_zpoe8.js","assets/GPSDiagnostics-ozfiXH-7.css","assets/SystemStats-Blc9w234.js","assets/SystemStats-DzIGYJV7.css","assets/Sensors-DoI1aDsU.js","assets/Configuration-DGbypP6V.js","assets/ConfirmDialog-Dv9g-D0s.js","assets/LocationPicker-BvrCgy9r.js","assets/LocationPicker-hQubwBai.css","assets/Configuration-C86RQDYT.css","assets/CADCalibration-CcD3dNoA.js","assets/plotly.min-BmxIBpZZ.js","assets/CADCalibration-C4Y61LYy.css","assets/Sessions-R0ITOu95.js","assets/RoomServers-CyZfURzJ.js","assets/MessageDialog-bNNcjSEH.js","assets/Companions-CpX8mCKh.js","assets/Logs-Be6ix9ik.js","assets/Terminal-DAbgWH3i.js","assets/Terminal-BSYenH04.css","assets/Help-QDfxnI2i.js","assets/websocket-CavFGuUC.js","assets/packets-BDjzUXUF.js","assets/system-bQ_0JWvJ.js","assets/dataService-CfRDrNPy.js"])))=>i.map(i=>d[i]);
import{n as e}from"./chunk-DECur_0Z.js";import{B as t,E as n,F as r,G as i,I as a,J as o,K as s,L as c,R as l,S as u,U as d,V as f,W as p,X as m,_ as h,b as g,g as _,h as v,j as ee,o as y,q as b,v as x,w as S,y as C,z as te}from"./runtime-core.esm-bundler-CINEgm0a.js";var ne=typeof window<`u`,w,re=e=>w=e,T=Symbol();function ie(e){return e&&typeof e==`object`&&Object.prototype.toString.call(e)===`[object Object]`&&typeof e.toJSON!=`function`}var ae;(function(e){e.direct=`direct`,e.patchObject=`patch object`,e.patchFunction=`patch function`})(ae||={});var oe=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 se(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 ce(e,t,n){let r=new XMLHttpRequest;r.open(`GET`,e),r.responseType=`blob`,r.onload=function(){fe(r.response,t,n)},r.onerror=function(){console.error(`could not download file`)},r.send()}function le(e){let t=new XMLHttpRequest;t.open(`HEAD`,e,!1);try{t.send()}catch{}return t.status>=200&&t.status<=299}function ue(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 E=typeof navigator==`object`?navigator:{userAgent:``},de=/Macintosh/.test(E.userAgent)&&/AppleWebKit/.test(E.userAgent)&&!/Safari/.test(E.userAgent),fe=ne?typeof HTMLAnchorElement<`u`&&`download`in HTMLAnchorElement.prototype&&!de?pe:`msSaveOrOpenBlob`in E?me:he:()=>{};function pe(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?ue(r):le(r.href)?ce(e,t,n):(r.target=`_blank`,ue(r))):(r.href=URL.createObjectURL(e),setTimeout(function(){URL.revokeObjectURL(r.href)},4e4),setTimeout(function(){ue(r)},0))}function me(e,t=`download`,n){if(typeof e==`string`)if(le(e))ce(e,t,n);else{let t=document.createElement(`a`);t.href=e,t.target=`_blank`,setTimeout(function(){ue(t)})}else navigator.msSaveOrOpenBlob(se(e,n),t)}function he(e,t,n,r){if(r||=open(``,`_blank`),r&&(r.document.title=r.document.body.innerText=`downloading...`),typeof e==`string`)return ce(e,t,n);let i=e.type===`application/octet-stream`,a=/constructor/i.test(String(oe.HTMLElement))||`safari`in oe,o=/CriOS\/[\d]+/.test(navigator.userAgent);if((o||i&&a||de)&&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:ge}=Object;function _e(){let e=r(!0),t=e.run(()=>d({})),n=[],i=[],a=te({install(e){re(a),a._a=e,e.provide(T,a),e.config.globalProperties.$pinia=a,i.forEach(e=>n.push(e)),i=[]},use(e){return this._a?n.push(e):i.push(e),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return a}var D=()=>{};function O(e,n,r,i=D){e.add(n);let o=()=>{e.delete(n)&&i()};return!r&&a()&&t(o),o}function ve(e,...t){e.forEach(e=>{e(...t)})}var ye=e=>e(),be=Symbol(),xe=Symbol();function Se(e,t){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);for(let n in t){if(!t.hasOwnProperty(n))continue;let r=t[n],i=e[n];ie(i)&&ie(r)&&e.hasOwnProperty(n)&&!l(r)&&!c(r)?e[n]=Se(i,r):e[n]=r}return e}var Ce=Symbol();function we(e){return!ie(e)||!Object.prototype.hasOwnProperty.call(e,Ce)}var{assign:k}=Object;function Te(e){return!!(l(e)&&e.effect)}function Ee(e,t,n,r){let{state:i,actions:a,getters:s}=t,c=n.state.value[e],l;function u(){return c||(n.state.value[e]=i?i():{}),k(o(n.state.value[e]),a,Object.keys(s||{}).reduce((t,r)=>(t[r]=te(y(()=>{re(n);let t=n._s.get(e);return s[r].call(t,t)})),t),{}))}return l=De(e,u,t,n,r,!0),l}function De(e,t,n={},i,a,o){let u,p=k({actions:{}},n),m={deep:!0},h,g,_=new Set,v=new Set,y=i.state.value[e];!o&&!y&&(i.state.value[e]={}),d({});let b;function x(t){let n;h=g=!1,typeof t==`function`?(t(i.state.value[e]),n={type:ae.patchFunction,storeId:e,events:void 0}):(Se(i.state.value[e],t),n={type:ae.patchObject,payload:t,storeId:e,events:void 0});let r=b=Symbol();C().then(()=>{b===r&&(h=!0)}),g=!0,ve(_,n,i.state.value[e])}let S=o?function(){let{state:e}=n,t=e?e():{};this.$patch(e=>{k(e,t)})}:D;function te(){u.stop(),_.clear(),v.clear(),i._s.delete(e)}let ne=(t,n=``)=>{if(be in t)return t[xe]=n,t;let r=function(){re(i);let n=Array.from(arguments),a=new Set,o=new Set;function s(e){a.add(e)}function c(e){o.add(e)}ve(v,{args:n,name:r[xe],store:w,after:s,onError:c});let l;try{l=t.apply(this&&this.$id===e?this:w,n)}catch(e){throw ve(o,e),e}return l instanceof Promise?l.then(e=>(ve(a,e),e)).catch(e=>(ve(o,e),Promise.reject(e))):(ve(a,l),l)};return r[be]=!0,r[xe]=n,r},w=f({_p:i,$id:e,$onAction:O.bind(null,v),$patch:x,$reset:S,$subscribe(t,n={}){let r=O(_,t,n.detached,()=>a()),a=u.run(()=>ee(()=>i.state.value[e],r=>{(n.flush===`sync`?g:h)&&t({storeId:e,type:ae.direct,events:void 0},r)},k({},m,n)));return r},$dispose:te});i._s.set(e,w);let T=(i._a&&i._a.runWithContext||ye)(()=>i._e.run(()=>(u=r()).run(()=>t({action:ne}))));for(let t in T){let n=T[t];l(n)&&!Te(n)||c(n)?o||(y&&we(n)&&(l(n)?n.value=y[t]:Se(n,y[t])),i.state.value[e][t]=n):typeof n==`function`&&(T[t]=ne(n,t),p.actions[t]=n)}return k(w,T),k(s(w),T),Object.defineProperty(w,`$state`,{get:()=>i.state.value[e],set:e=>{x(t=>{k(t,e)})}}),i._p.forEach(e=>{k(w,u.run(()=>e({store:w,app:i._a,pinia:i,options:p})))}),y&&o&&n.hydrate&&n.hydrate(w.$state,y),h=!0,g=!0,w}function Oe(e,t,n){let r,i=typeof t==`function`;r=i?n:t;function a(n,a){let o=h();return n||=o?x(T,null):null,n&&re(n),n=w,n._s.has(e)||(i?De(e,t,r,n):Ee(e,r,n)),n._s.get(e)}return a.$id=e,a}function ke(e){let t=s(e),n={};for(let r in t){let i=t[r];i.effect?n[r]=y({get:()=>e[r],set(t){e[r]=t}}):(l(i)||c(i))&&(n[r]=b(e,r))}return n}var Ae=typeof document<`u`;function je(e){return typeof e==`object`||`displayName`in e||`props`in e||`__vccOpts`in e}function Me(e){return e.__esModule||e[Symbol.toStringTag]===`Module`||e.default&&je(e.default)}var A=Object.assign;function Ne(e,t){let n={};for(let r in t){let i=t[r];n[r]=j(i)?i.map(e):e(i)}return n}var Pe=()=>{},j=Array.isArray;function Fe(e,t){let n={};for(let r in e)n[r]=r in t?t[r]:e[r];return n}var M=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}({}),Ie=Symbol(``);M.MATCHER_NOT_FOUND,M.NAVIGATION_GUARD_REDIRECT,M.NAVIGATION_ABORTED,M.NAVIGATION_CANCELLED,M.NAVIGATION_DUPLICATED;function Le(e,t){return A(Error(),{type:e,[Ie]:!0},t)}function N(e,t){return e instanceof Error&&Ie in e&&(t==null||!!(e.type&t))}var Re=Symbol(``),ze=Symbol(``),Be=Symbol(``),Ve=Symbol(``),He=Symbol(``);function Ue(){return x(Be)}function We(e){return x(Ve)}var Ge=/#/g,Ke=/&/g,qe=/\//g,Je=/=/g,Ye=/\?/g,Xe=/\+/g,Ze=/%5B/g,Qe=/%5D/g,$e=/%5E/g,et=/%60/g,tt=/%7B/g,nt=/%7C/g,rt=/%7D/g,it=/%20/g;function at(e){return e==null?``:encodeURI(``+e).replace(nt,`|`).replace(Ze,`[`).replace(Qe,`]`)}function ot(e){return at(e).replace(tt,`{`).replace(rt,`}`).replace($e,`^`)}function st(e){return at(e).replace(Xe,`%2B`).replace(it,`+`).replace(Ge,`%23`).replace(Ke,`%26`).replace(et,"`").replace(tt,`{`).replace(rt,`}`).replace($e,`^`)}function ct(e){return st(e).replace(Je,`%3D`)}function lt(e){return at(e).replace(Ge,`%23`).replace(Ye,`%3F`)}function ut(e){return lt(e).replace(qe,`%2F`)}function dt(e){if(e==null)return null;try{return decodeURIComponent(``+e)}catch{}return``+e}var ft=/\/$/,pt=e=>e.replace(ft,``);function mt(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=St(r??t,n),{fullPath:r+a+o,path:r,query:i,hash:dt(o)}}function ht(e,t){let n=t.query?e(t.query):``;return t.path+(n&&`?`)+n+(t.hash||``)}function gt(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||`/`}function _t(e,t,n){let r=t.matched.length-1,i=n.matched.length-1;return r>-1&&r===i&&vt(t.matched[r],n.matched[i])&&yt(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function vt(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function yt(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(!bt(e[n],t[n]))return!1;return!0}function bt(e,t){return j(e)?xt(e,t):j(t)?xt(t,e):(e&&e.valueOf())===(t&&t.valueOf())}function xt(e,t){return j(t)?e.length===t.length&&e.every((e,n)=>e===t[n]):e.length===1&&e[0]===t}function St(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;o<r.length;o++)if(s=r[o],s!==`.`)if(s===`..`)a>1&&a--;else break;return n.slice(0,a).join(`/`)+`/`+r.slice(o).join(`/`)}var P={path:`/`,name:void 0,params:{},query:{},hash:``,fullPath:`/`,matched:[],meta:{},redirectedFrom:void 0},Ct=function(e){return e.pop=`pop`,e.push=`push`,e}({}),wt=function(e){return e.back=`back`,e.forward=`forward`,e.unknown=``,e}({});function Tt(e){if(!e)if(Ae){let t=document.querySelector(`base`);e=t&&t.getAttribute(`href`)||`/`,e=e.replace(/^\w+:\/\/[^\/]+/,``)}else e=`/`;return e[0]!==`/`&&e[0]!==`#`&&(e=`/`+e),pt(e)}var Et=/^[^#]+#/;function Dt(e,t){return e.replace(Et,`#`)+t}function Ot(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 kt=()=>({left:window.scrollX,top:window.scrollY});function At(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=Ot(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 jt(e,t){return(history.state?history.state.position-t:-1)+e}var Mt=new Map;function Nt(e,t){Mt.set(e,t)}function Pt(e){let t=Mt.get(e);return Mt.delete(e),t}function Ft(e){return typeof e==`string`||e&&typeof e==`object`}function It(e){return typeof e==`string`||typeof e==`symbol`}function Lt(e){let t={};if(e===``||e===`?`)return t;let n=(e[0]===`?`?e.slice(1):e).split(`&`);for(let e=0;e<n.length;++e){let r=n[e].replace(Xe,` `),i=r.indexOf(`=`),a=dt(i<0?r:r.slice(0,i)),o=i<0?null:dt(r.slice(i+1));if(a in t){let e=t[a];j(e)||(e=t[a]=[e]),e.push(o)}else t[a]=o}return t}function Rt(e){let t=``;for(let n in e){let r=e[n];if(n=ct(n),r==null){r!==void 0&&(t+=(t.length?`&`:``)+n);continue}(j(r)?r.map(e=>e&&st(e)):[r&&st(r)]).forEach(e=>{e!==void 0&&(t+=(t.length?`&`:``)+n,e!=null&&(t+=`=`+e))})}return t}function zt(e){let t={};for(let n in e){let r=e[n];r!==void 0&&(t[n]=j(r)?r.map(e=>e==null?null:``+e):r==null?r:``+r)}return t}function Bt(){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 Vt(e,t,n){let r=e.value;if(!r)return;let i=r,a=()=>{i[t].delete(n)};S(a),u(a),g(()=>{let r=e.value;r&&(i=r),i[t].add(n)}),i[t].add(n)}function Ht(e){Vt(x(Re,{}),`leaveGuards`,e)}function Ut(e){Vt(x(Re,{}),`updateGuards`,e)}function F(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(Le(M.NAVIGATION_ABORTED,{from:n,to:t})):e instanceof Error?c(e):Ft(e)?c(Le(M.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 Wt(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(je(s)){let c=(s.__vccOpts||s)[t];c&&a.push(F(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=Me(a)?a.default:a;o.mods[e]=a,o.components[e]=s;let c=(s.__vccOpts||s)[t];return c&&F(c,n,r,o,e,i)()}))}}return a}function Gt(e,t){let n=[],r=[],i=[],a=Math.max(t.matched.length,e.matched.length);for(let o=0;o<a;o++){let a=t.matched[o];a&&(e.matched.find(e=>vt(e,a))?r.push(a):n.push(a));let s=e.matched[o];s&&(t.matched.find(e=>vt(e,s))||i.push(s))}return[n,r,i]}var Kt=()=>location.protocol+`//`+location.host;function qt(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),gt(n,``)}return gt(n,e)+r+i}function Jt(e,t,n,r){let i=[],a=[],o=null,s=({state:a})=>{let s=qt(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:Ct.pop,direction:u?u>0?wt.forward:wt.back:wt.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(A({},e.state,{scroll:kt()}),``)}}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 Yt(e,t,n,r=!1,i=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:i?kt():null}}function Xt(e){let{history:t,location:n}=window,r={value:qt(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:Kt()+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,A({},t.state,Yt(i.value.back,e,i.value.forward,!0),n,{position:i.value.position}),!0),r.value=e}function s(e,n){let o=A({},i.value,t.state,{forward:e,scroll:kt()});a(o.current,o,!0),a(e,A({},Yt(r.value,e,null),{position:o.position+1},n),!1),r.value=e}return{location:r,state:i,push:s,replace:o}}function Zt(e){e=Tt(e);let t=Xt(e),n=Jt(e,t.state,t.location,t.replace);function r(e,t=!0){t||n.pauseListeners(),history.go(e)}let i=A({location:``,base:e,go:r,createHref:Dt.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}var I=function(e){return e[e.Static=0]=`Static`,e[e.Param=1]=`Param`,e[e.Group=2]=`Group`,e}({}),L=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}(L||{}),Qt={type:I.Static,value:``},$t=/[a-zA-Z0-9_]/;function en(e){if(!e)return[[]];if(e===`/`)return[[Qt]];if(!e.startsWith(`/`))throw Error(`Invalid path "${e}"`);function t(e){throw Error(`ERR (${n})/"${l}": ${e}`)}let n=L.Static,r=n,i=[],a;function o(){a&&i.push(a),a=[]}let s=0,c,l=``,u=``;function d(){l&&=(n===L.Static?a.push({type:I.Static,value:l}):n===L.Param||n===L.ParamRegExp||n===L.ParamRegExpEnd?(a.length>1&&(c===`*`||c===`+`)&&t(`A repeatable param (${l}) must be alone in its segment. eg: '/:ids+.`),a.push({type:I.Param,value:l,regexp:u,repeatable:c===`*`||c===`+`,optional:c===`*`||c===`?`})):t(`Invalid state to consume buffer`),``)}function f(){l+=c}for(;s<e.length;){if(c=e[s++],c===`\\`&&n!==L.ParamRegExp){r=n,n=L.EscapeNext;continue}switch(n){case L.Static:c===`/`?(l&&d(),o()):c===`:`?(d(),n=L.Param):f();break;case L.EscapeNext:f(),n=r;break;case L.Param:c===`(`?n=L.ParamRegExp:$t.test(c)?f():(d(),n=L.Static,c!==`*`&&c!==`?`&&c!==`+`&&s--);break;case L.ParamRegExp:c===`)`?u[u.length-1]==`\\`?u=u.slice(0,-1)+c:n=L.ParamRegExpEnd:u+=c;break;case L.ParamRegExpEnd:d(),n=L.Static,c!==`*`&&c!==`?`&&c!==`+`&&s--,u=``;break;default:t(`Unknown state`);break}}return n===L.ParamRegExp&&t(`Unfinished custom RegExp for param "${l}"`),d(),o(),i}var tn=`[^/]+?`,nn={sensitive:!1,strict:!1,start:!0,end:!0},R=function(e){return e[e._multiplier=10]=`_multiplier`,e[e.Root=90]=`Root`,e[e.Segment=40]=`Segment`,e[e.SubSegment=30]=`SubSegment`,e[e.Static=40]=`Static`,e[e.Dynamic=20]=`Dynamic`,e[e.BonusCustomRegExp=10]=`BonusCustomRegExp`,e[e.BonusWildcard=-50]=`BonusWildcard`,e[e.BonusRepeatable=-20]=`BonusRepeatable`,e[e.BonusOptional=-8]=`BonusOptional`,e[e.BonusStrict=.7000000000000001]=`BonusStrict`,e[e.BonusCaseSensitive=.25]=`BonusCaseSensitive`,e}(R||{}),rn=/[.+*?^${}()[\]/\\]/g;function an(e,t){let n=A({},nn,t),r=[],i=n.start?`^`:``,a=[];for(let t of e){let e=t.length?[]:[R.Root];n.strict&&!t.length&&(i+=`/`);for(let r=0;r<t.length;r++){let o=t[r],s=R.Segment+(n.sensitive?R.BonusCaseSensitive:0);if(o.type===I.Static)r||(i+=`/`),i+=o.value.replace(rn,`\\$&`),s+=R.Static;else if(o.type===I.Param){let{value:e,repeatable:n,optional:c,regexp:l}=o;a.push({name:e,repeatable:n,optional:c});let u=l||tn;if(u!==tn){s+=R.BonusCustomRegExp;try{RegExp(`(${u})`)}catch(t){throw Error(`Invalid custom RegExp for param "${e}" (${u}): `+t.message)}}let d=n?`((?:${u})(?:/(?:${u}))*)`:`(${u})`;r||(d=c&&t.length<2?`(?:/${d})`:`/`+d),c&&(d+=`?`),i+=d,s+=R.Dynamic,c&&(s+=R.BonusOptional),n&&(s+=R.BonusRepeatable),u===`.*`&&(s+=R.BonusWildcard)}e.push(s)}r.push(e)}if(n.strict&&n.end){let e=r.length-1;r[e][r[e].length-1]+=R.BonusStrict}n.strict||(i+=`/?`),n.end?i+=`$`:n.strict&&!i.endsWith(`/`)&&(i+=`(?:/|$)`);let o=new RegExp(i,n.sensitive?``:`i`);function s(e){let t=e.match(o),n={};if(!t)return null;for(let e=1;e<t.length;e++){let r=t[e]||``,i=a[e-1];n[i.name]=r&&i.repeatable?r.split(`/`):r}return n}function c(t){let n=``,r=!1;for(let i of e){(!r||!n.endsWith(`/`))&&(n+=`/`),r=!1;for(let e of i)if(e.type===I.Static)n+=e.value;else if(e.type===I.Param){let{value:a,repeatable:o,optional:s}=e,c=a in t?t[a]:``;if(j(c)&&!o)throw Error(`Provided param "${a}" is an array but it is not repeatable (* or + modifiers)`);let l=j(c)?c.join(`/`):c;if(!l)if(s)i.length<2&&(n.endsWith(`/`)?n=n.slice(0,-1):r=!0);else throw Error(`Missing required param "${a}"`);n+=l}}return n||`/`}return{re:o,score:r,keys:a,parse:s,stringify:c}}function on(e,t){let n=0;for(;n<e.length&&n<t.length;){let r=t[n]-e[n];if(r)return r;n++}return e.length<t.length?e.length===1&&e[0]===R.Static+R.Segment?-1:1:e.length>t.length?t.length===1&&t[0]===R.Static+R.Segment?1:-1:0}function sn(e,t){let n=0,r=e.score,i=t.score;for(;n<r.length&&n<i.length;){let e=on(r[n],i[n]);if(e)return e;n++}if(Math.abs(i.length-r.length)===1){if(cn(r))return 1;if(cn(i))return-1}return i.length-r.length}function cn(e){let t=e[e.length-1];return e.length>0&&t[t.length-1]<0}var ln={strict:!1,end:!0,sensitive:!1};function un(e,t,n){let r=A(an(en(e.path),n),{record:e,parent:t,children:[],alias:[]});return t&&!r.record.aliasOf==!t.record.aliasOf&&t.children.push(r),r}function dn(e,t){let n=[],r=new Map;t=Fe(ln,t);function i(e){return r.get(e)}function a(e,n,r){let i=!r,s=pn(e);s.aliasOf=r&&r.record;let l=Fe(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(pn(A({},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=un(t,n,l),r?r.alias.push(d):(f||=d,f!==d&&f.alias.push(d),i&&e.name&&!hn(d)&&o(e.name)),yn(d)&&c(d),s.children){let e=s.children;for(let t=0;t<e.length;t++)a(e[t],d,r&&r.children[t])}r||=d}return f?()=>{o(f)}:Pe}function o(e){if(It(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=_n(e,n);n.splice(t,0,e),e.record.name&&!hn(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 Le(M.MATCHER_NOT_FOUND,{location:e});s=i.record.name,a=A(fn(t.params,i.keys.filter(e=>!e.optional).concat(i.parent?i.parent.keys.filter(e=>e.optional):[]).map(e=>e.name)),e.params&&fn(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 Le(M.MATCHER_NOT_FOUND,{location:e,currentLocation:t});s=i.record.name,a=A({},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:gn(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 fn(e,t){let n={};for(let r of t)r in e&&(n[r]=e[r]);return n}function pn(e){let t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:mn(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 mn(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 hn(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function gn(e){return e.reduce((e,t)=>A(e,t.meta),{})}function _n(e,t){let n=0,r=t.length;for(;n!==r;){let i=n+r>>1;sn(e,t[i])<0?r=i:n=i+1}let i=vn(e);return i&&(r=t.lastIndexOf(i,r-1)),r}function vn(e){let t=e;for(;t=t.parent;)if(yn(t)&&sn(e,t)===0)return t}function yn({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function bn(e){let t=x(Be),n=x(Ve),r=y(()=>{let n=m(e.to);return t.resolve(n)}),i=y(()=>{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(vt.bind(null,i));if(o>-1)return o;let s=Tn(e[t-2]);return t>1&&Tn(i)===s&&a[a.length-1].path!==s?a.findIndex(vt.bind(null,e[t-2])):o}),a=y(()=>i.value>-1&&wn(n.params,r.value.params)),o=y(()=>i.value>-1&&i.value===n.matched.length-1&&yt(n.params,r.value.params));function s(n={}){if(Cn(n)){let n=t[m(e.replace)?`replace`:`push`](m(e.to)).catch(Pe);return e.viewTransition&&typeof document<`u`&&`startViewTransition`in document&&document.startViewTransition(()=>n),n}return Promise.resolve()}return{route:r,href:y(()=>r.value.href),isActive:a,isExactActive:o,navigate:s}}function xn(e){return e.length===1?e[0]:e}var Sn=v({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:bn,setup(e,{slots:t}){let n=f(bn(e)),{options:r}=x(Be),i=y(()=>({[En(e.activeClass,r.linkActiveClass,`router-link-active`)]:n.isActive,[En(e.exactActiveClass,r.linkExactActiveClass,`router-link-exact-active`)]:n.isExactActive}));return()=>{let r=t.default&&xn(t.default(n));return e.custom?r:_(`a`,{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:i.value},r)}}});function Cn(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 wn(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(!j(i)||i.length!==r.length||r.some((e,t)=>e.valueOf()!==i[t].valueOf()))return!1}return!0}function Tn(e){return e?e.aliasOf?e.aliasOf.path:e.path:``}var En=(e,t,n)=>e??t??n,Dn=v({name:`RouterView`,inheritAttrs:!1,props:{name:{type:String,default:`default`},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:r}){let i=x(He),a=y(()=>e.route||i.value),o=x(ze,0),s=y(()=>{let e=m(o),{matched:t}=a.value,n;for(;(n=t[e])&&!n.components;)e++;return e}),c=y(()=>a.value.matched[s.value]);n(ze,y(()=>s.value+1)),n(Re,c),n(He,a);let l=d();return ee(()=>[l.value,c.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||!vt(t,i)||!r)&&(t.enterCallbacks[n]||[]).forEach(t=>t(e))},{flush:`post`}),()=>{let n=a.value,i=e.name,o=c.value,s=o&&o.components[i];if(!s)return On(r.default,{Component:s,route:n});let u=o.props[i],d=_(s,A({},u?u===!0?n.params:typeof u==`function`?u(n):u:null,t,{onVnodeUnmounted:e=>{e.component.isUnmounted&&(o.instances[i]=null)},ref:l}));return On(r.default,{Component:d,route:n})||d}}});function On(e,t){if(!e)return null;let n=e(t);return n.length===1?n[0]:n}var kn=Dn;function An(e){let t=dn(e.routes,e),n=e.parseQuery||Lt,r=e.stringifyQuery||Rt,a=e.history,o=Bt(),s=Bt(),c=Bt(),l=i(P),u=P;Ae&&e.scrollBehavior&&`scrollRestoration`in history&&(history.scrollRestoration=`manual`);let d=Ne.bind(null,e=>``+e),f=Ne.bind(null,ut),h=Ne.bind(null,dt);function g(e,n){let r,i;return It(e)?(r=t.getRecordMatcher(e),i=n):i=e,t.addRoute(i,r)}function _(e){let n=t.getRecordMatcher(e);n&&t.removeRoute(n)}function v(){return t.getRoutes().map(e=>e.record)}function ee(e){return!!t.getRecordMatcher(e)}function y(e,i){if(i=A({},i||l.value),typeof e==`string`){let r=mt(n,e,i.path),o=t.resolve({path:r.path},i),s=a.createHref(r.fullPath);return A(r,o,{params:h(o.params),hash:dt(r.hash),redirectedFrom:void 0,href:s})}let o;if(e.path!=null)o=A({},e,{path:mt(n,e.path,i.path).path});else{let t=A({},e.params);for(let e in t)t[e]??delete t[e];o=A({},e,{params:f(t)}),i.params=f(i.params)}let s=t.resolve(o,i),c=e.hash||``;s.params=d(h(s.params));let u=ht(r,A({},e,{hash:ot(c),path:s.path})),p=a.createHref(u);return A({fullPath:u,hash:c,query:r===Rt?zt(e.query):e.query||{}},s,{redirectedFrom:void 0,href:p})}function b(e){return typeof e==`string`?mt(n,e,l.value.path):A({},e)}function x(e,t){if(u!==e)return Le(M.NAVIGATION_CANCELLED,{from:t,to:e})}function S(e){return w(e)}function te(e){return S(A(b(e),{replace:!0}))}function ne(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=b(i):{path:i},i.params={}),A({query:e.query,hash:e.hash,params:i.path==null?e.params:{}},i)}}function w(e,t){let n=u=y(e),i=l.value,a=e.state,o=e.force,s=e.replace===!0,c=ne(n,i);if(c)return w(A(b(c),{state:typeof c==`object`?A({},a,c.state):a,force:o,replace:s}),t||n);let d=n;d.redirectedFrom=t;let f;return!o&&_t(r,i,n)&&(f=Le(M.NAVIGATION_DUPLICATED,{to:d,from:i}),me(i,i,!0,!1)),(f?Promise.resolve(f):ie(d,i)).catch(e=>N(e)?N(e,M.NAVIGATION_GUARD_REDIRECT)?e:pe(e):de(e,d,i)).then(e=>{if(e){if(N(e,M.NAVIGATION_GUARD_REDIRECT))return w(A({replace:s},b(e.to),{state:typeof e.to==`object`?A({},a,e.to.state):a,force:o}),t||d)}else e=oe(d,i,!0,s,a);return ae(d,i,e),e})}function re(e,t){let n=x(e,t);return n?Promise.reject(n):Promise.resolve()}function T(e){let t=_e.values().next().value;return t&&typeof t.runWithContext==`function`?t.runWithContext(e):e()}function ie(e,t){let n,[r,i,a]=Gt(e,t);n=Wt(r.reverse(),`beforeRouteLeave`,e,t);for(let i of r)i.leaveGuards.forEach(r=>{n.push(F(r,e,t))});let c=re.bind(null,e,t);return n.push(c),O(n).then(()=>{n=[];for(let r of o.list())n.push(F(r,e,t));return n.push(c),O(n)}).then(()=>{n=Wt(i,`beforeRouteUpdate`,e,t);for(let r of i)r.updateGuards.forEach(r=>{n.push(F(r,e,t))});return n.push(c),O(n)}).then(()=>{n=[];for(let r of a)if(r.beforeEnter)if(j(r.beforeEnter))for(let i of r.beforeEnter)n.push(F(i,e,t));else n.push(F(r.beforeEnter,e,t));return n.push(c),O(n)}).then(()=>(e.matched.forEach(e=>e.enterCallbacks={}),n=Wt(a,`beforeRouteEnter`,e,t,T),n.push(c),O(n))).then(()=>{n=[];for(let r of s.list())n.push(F(r,e,t));return n.push(c),O(n)}).catch(e=>N(e,M.NAVIGATION_CANCELLED)?e:Promise.reject(e))}function ae(e,t,n){c.list().forEach(r=>T(()=>r(e,t,n)))}function oe(e,t,n,r,i){let o=x(e,t);if(o)return o;let s=t===P,c=Ae?history.state:{};n&&(r||s?a.replace(e.fullPath,A({scroll:s&&c&&c.scroll},i)):a.push(e.fullPath,i)),l.value=e,me(e,t,n,s),pe()}let se;function ce(){se||=a.listen((e,t,n)=>{if(!D.listening)return;let r=y(e),i=ne(r,D.currentRoute.value);if(i){w(A(i,{replace:!0,force:!0}),r).catch(Pe);return}u=r;let o=l.value;Ae&&Nt(jt(o.fullPath,n.delta),kt()),ie(r,o).catch(e=>N(e,M.NAVIGATION_ABORTED|M.NAVIGATION_CANCELLED)?e:N(e,M.NAVIGATION_GUARD_REDIRECT)?(w(A(b(e.to),{force:!0}),r).then(e=>{N(e,M.NAVIGATION_ABORTED|M.NAVIGATION_DUPLICATED)&&!n.delta&&n.type===Ct.pop&&a.go(-1,!1)}).catch(Pe),Promise.reject()):(n.delta&&a.go(-n.delta,!1),de(e,r,o))).then(e=>{e||=oe(r,o,!1),e&&(n.delta&&!N(e,M.NAVIGATION_CANCELLED)?a.go(-n.delta,!1):n.type===Ct.pop&&N(e,M.NAVIGATION_ABORTED|M.NAVIGATION_DUPLICATED)&&a.go(-1,!1)),ae(r,o,e)}).catch(Pe)})}let le=Bt(),ue=Bt(),E;function de(e,t,n){pe(e);let r=ue.list();return r.length?r.forEach(r=>r(e,t,n)):console.error(e),Promise.reject(e)}function fe(){return E&&l.value!==P?Promise.resolve():new Promise((e,t)=>{le.add([e,t])})}function pe(e){return E||(E=!e,ce(),le.list().forEach(([t,n])=>e?n(e):t()),le.reset()),e}function me(t,n,r,i){let{scrollBehavior:a}=e;if(!Ae||!a)return Promise.resolve();let o=!r&&Pt(jt(t.fullPath,0))||(i||!r)&&history.state&&history.state.scroll||null;return C().then(()=>a(t,n,o)).then(e=>e&&At(e)).catch(e=>de(e,t,n))}let he=e=>a.go(e),ge,_e=new Set,D={currentRoute:l,listening:!0,addRoute:g,removeRoute:_,clearRoutes:t.clearRoutes,hasRoute:ee,getRoutes:v,resolve:y,options:e,push:S,replace:te,go:he,back:()=>he(-1),forward:()=>he(1),beforeEach:o.add,beforeResolve:s.add,afterEach:c.add,onError:ue.add,isReady:fe,install(e){e.component(`RouterLink`,Sn),e.component(`RouterView`,kn),e.config.globalProperties.$router=D,Object.defineProperty(e.config.globalProperties,`$route`,{enumerable:!0,get:()=>m(l)}),Ae&&!ge&&l.value===P&&(ge=!0,S(a.location).catch(e=>{}));let t={};for(let e in P)Object.defineProperty(t,e,{get:()=>l.value[e],enumerable:!0});e.provide(Be,D),e.provide(Ve,p(t)),e.provide(He,l);let n=e.unmount;_e.add(e),e.unmount=function(){_e.delete(e),_e.size<1&&(u=P,se&&se(),se=null,l.value=P,ge=!1,E=!1),n()}}};function O(e){return e.reduce((e,t)=>e.then(()=>T(t)),Promise.resolve())}return D}function jn(e,t){return function(){return e.apply(t,arguments)}}var{toString:Mn}=Object.prototype,{getPrototypeOf:Nn}=Object,{iterator:Pn,toStringTag:Fn}=Symbol,In=(e=>t=>{let n=Mn.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),z=e=>(e=e.toLowerCase(),t=>In(t)===e),Ln=e=>t=>typeof t===e,{isArray:Rn}=Array,zn=Ln(`undefined`);function Bn(e){return e!==null&&!zn(e)&&e.constructor!==null&&!zn(e.constructor)&&B(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}var Vn=z(`ArrayBuffer`);function Hn(e){let t;return t=typeof ArrayBuffer<`u`&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&Vn(e.buffer),t}var Un=Ln(`string`),B=Ln(`function`),Wn=Ln(`number`),Gn=e=>typeof e==`object`&&!!e,Kn=e=>e===!0||e===!1,qn=e=>{if(In(e)!==`object`)return!1;let t=Nn(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Fn in e)&&!(Pn in e)},Jn=e=>{if(!Gn(e)||Bn(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},Yn=z(`Date`),Xn=z(`File`),Zn=e=>!!(e&&e.uri!==void 0),Qn=e=>e&&e.getParts!==void 0,$n=z(`Blob`),er=z(`FileList`),tr=e=>Gn(e)&&B(e.pipe);function nr(){return typeof globalThis<`u`?globalThis:typeof self<`u`?self:typeof window<`u`?window:typeof global<`u`?global:{}}var rr=nr(),ir=rr.FormData===void 0?void 0:rr.FormData,ar=e=>{let t;return e&&(ir&&e instanceof ir||B(e.append)&&((t=In(e))===`formdata`||t===`object`&&B(e.toString)&&e.toString()===`[object FormData]`))},or=z(`URLSearchParams`),[sr,cr,lr,ur]=[`ReadableStream`,`Request`,`Response`,`Headers`].map(z),dr=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,``);function fr(e,t,{allOwnKeys:n=!1}={}){if(e==null)return;let r,i;if(typeof e!=`object`&&(e=[e]),Rn(e))for(r=0,i=e.length;r<i;r++)t.call(null,e[r],r,e);else{if(Bn(e))return;let i=n?Object.getOwnPropertyNames(e):Object.keys(e),a=i.length,o;for(r=0;r<a;r++)o=i[r],t.call(null,e[o],o,e)}}function pr(e,t){if(Bn(e))return null;t=t.toLowerCase();let n=Object.keys(e),r=n.length,i;for(;r-- >0;)if(i=n[r],t===i.toLowerCase())return i;return null}var V=typeof globalThis<`u`?globalThis:typeof self<`u`?self:typeof window<`u`?window:global,mr=e=>!zn(e)&&e!==V;function hr(){let{caseless:e,skipUndefined:t}=mr(this)&&this||{},n={},r=(r,i)=>{if(i===`__proto__`||i===`constructor`||i===`prototype`)return;let a=e&&pr(n,i)||i;qn(n[a])&&qn(r)?n[a]=hr(n[a],r):qn(r)?n[a]=hr({},r):Rn(r)?n[a]=r.slice():(!t||!zn(r))&&(n[a]=r)};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&fr(arguments[e],r);return n}var gr=(e,t,n,{allOwnKeys:r}={})=>(fr(t,(t,r)=>{n&&B(t)?Object.defineProperty(e,r,{value:jn(t,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,r,{value:t,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:r}),e),_r=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),vr=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),Object.defineProperty(e.prototype,`constructor`,{value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,`super`,{value:t.prototype}),n&&Object.assign(e.prototype,n)},yr=(e,t,n,r)=>{let i,a,o,s={};if(t||={},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),a=i.length;a-- >0;)o=i[a],(!r||r(o,e,t))&&!s[o]&&(t[o]=e[o],s[o]=!0);e=n!==!1&&Nn(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},br=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;let r=e.indexOf(t,n);return r!==-1&&r===n},xr=e=>{if(!e)return null;if(Rn(e))return e;let t=e.length;if(!Wn(t))return null;let n=Array(t);for(;t-- >0;)n[t]=e[t];return n},Sr=(e=>t=>e&&t instanceof e)(typeof Uint8Array<`u`&&Nn(Uint8Array)),Cr=(e,t)=>{let n=(e&&e[Pn]).call(e),r;for(;(r=n.next())&&!r.done;){let n=r.value;t.call(e,n[0],n[1])}},wr=(e,t)=>{let n,r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},Tr=z(`HTMLFormElement`),Er=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,n){return t.toUpperCase()+n}),Dr=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Or=z(`RegExp`),kr=(e,t)=>{let n=Object.getOwnPropertyDescriptors(e),r={};fr(n,(n,i)=>{let a;(a=t(n,i,e))!==!1&&(r[i]=a||n)}),Object.defineProperties(e,r)},Ar=e=>{kr(e,(t,n)=>{if(B(e)&&[`arguments`,`caller`,`callee`].indexOf(n)!==-1)return!1;let r=e[n];if(B(r)){if(t.enumerable=!1,`writable`in t){t.writable=!1;return}t.set||=()=>{throw Error(`Can not rewrite read-only method '`+n+`'`)}}})},jr=(e,t)=>{let n={},r=e=>{e.forEach(e=>{n[e]=!0})};return Rn(e)?r(e):r(String(e).split(t)),n},Mr=()=>{},Nr=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function Pr(e){return!!(e&&B(e.append)&&e[Fn]===`FormData`&&e[Pn])}var Fr=e=>{let t=Array(10),n=(e,r)=>{if(Gn(e)){if(t.indexOf(e)>=0)return;if(Bn(e))return e;if(!(`toJSON`in e)){t[r]=e;let i=Rn(e)?[]:{};return fr(e,(e,t)=>{let a=n(e,r+1);!zn(a)&&(i[t]=a)}),t[r]=void 0,i}}return e};return n(e,0)},Ir=z(`AsyncFunction`),Lr=e=>e&&(Gn(e)||B(e))&&B(e.then)&&B(e.catch),Rr=((e,t)=>e?setImmediate:t?((e,t)=>(V.addEventListener(`message`,({source:n,data:r})=>{n===V&&r===e&&t.length&&t.shift()()},!1),n=>{t.push(n),V.postMessage(e,`*`)}))(`axios@${Math.random()}`,[]):e=>setTimeout(e))(typeof setImmediate==`function`,B(V.postMessage)),H={isArray:Rn,isArrayBuffer:Vn,isBuffer:Bn,isFormData:ar,isArrayBufferView:Hn,isString:Un,isNumber:Wn,isBoolean:Kn,isObject:Gn,isPlainObject:qn,isEmptyObject:Jn,isReadableStream:sr,isRequest:cr,isResponse:lr,isHeaders:ur,isUndefined:zn,isDate:Yn,isFile:Xn,isReactNativeBlob:Zn,isReactNative:Qn,isBlob:$n,isRegExp:Or,isFunction:B,isStream:tr,isURLSearchParams:or,isTypedArray:Sr,isFileList:er,forEach:fr,merge:hr,extend:gr,trim:dr,stripBOM:_r,inherits:vr,toFlatObject:yr,kindOf:In,kindOfTest:z,endsWith:br,toArray:xr,forEachEntry:Cr,matchAll:wr,isHTMLForm:Tr,hasOwnProperty:Dr,hasOwnProp:Dr,reduceDescriptors:kr,freezeMethods:Ar,toObjectSet:jr,toCamelCase:Er,noop:Mr,toFiniteNumber:Nr,findKey:pr,global:V,isContextDefined:mr,isSpecCompliantForm:Pr,toJSONObject:Fr,isAsyncFn:Ir,isThenable:Lr,setImmediate:Rr,asap:typeof queueMicrotask<`u`?queueMicrotask.bind(V):typeof process<`u`&&process.nextTick||Rr,isIterable:e=>e!=null&&B(e[Pn])},U=class e extends Error{static from(t,n,r,i,a,o){let s=new e(t.message,n||t.code,r,i,a);return s.cause=t,s.name=t.name,t.status!=null&&s.status==null&&(s.status=t.status),o&&Object.assign(s,o),s}constructor(e,t,n,r,i){super(e),Object.defineProperty(this,`message`,{value:e,enumerable:!0,writable:!0,configurable:!0}),this.name=`AxiosError`,this.isAxiosError=!0,t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i,this.status=i.status)}toJSON(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:H.toJSONObject(this.config),code:this.code,status:this.status}}};U.ERR_BAD_OPTION_VALUE=`ERR_BAD_OPTION_VALUE`,U.ERR_BAD_OPTION=`ERR_BAD_OPTION`,U.ECONNABORTED=`ECONNABORTED`,U.ETIMEDOUT=`ETIMEDOUT`,U.ERR_NETWORK=`ERR_NETWORK`,U.ERR_FR_TOO_MANY_REDIRECTS=`ERR_FR_TOO_MANY_REDIRECTS`,U.ERR_DEPRECATED=`ERR_DEPRECATED`,U.ERR_BAD_RESPONSE=`ERR_BAD_RESPONSE`,U.ERR_BAD_REQUEST=`ERR_BAD_REQUEST`,U.ERR_CANCELED=`ERR_CANCELED`,U.ERR_NOT_SUPPORT=`ERR_NOT_SUPPORT`,U.ERR_INVALID_URL=`ERR_INVALID_URL`;function zr(e){return H.isPlainObject(e)||H.isArray(e)}function Br(e){return H.endsWith(e,`[]`)?e.slice(0,-2):e}function Vr(e,t,n){return e?e.concat(t).map(function(e,t){return e=Br(e),!n&&t?`[`+e+`]`:e}).join(n?`.`:``):t}function Hr(e){return H.isArray(e)&&!e.some(zr)}var Ur=H.toFlatObject(H,{},null,function(e){return/^is[A-Z]/.test(e)});function Wr(e,t,n){if(!H.isObject(e))throw TypeError(`target must be an object`);t||=new FormData,n=H.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!H.isUndefined(t[e])});let r=n.metaTokens,i=n.visitor||l,a=n.dots,o=n.indexes,s=(n.Blob||typeof Blob<`u`&&Blob)&&H.isSpecCompliantForm(t);if(!H.isFunction(i))throw TypeError(`visitor must be a function`);function c(e){if(e===null)return``;if(H.isDate(e))return e.toISOString();if(H.isBoolean(e))return e.toString();if(!s&&H.isBlob(e))throw new U(`Blob is not supported. Use a Buffer instead.`);return H.isArrayBuffer(e)||H.isTypedArray(e)?s&&typeof Blob==`function`?new Blob([e]):Buffer.from(e):e}function l(e,n,i){let s=e;if(H.isReactNative(t)&&H.isReactNativeBlob(e))return t.append(Vr(i,n,a),c(e)),!1;if(e&&!i&&typeof e==`object`){if(H.endsWith(n,`{}`))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(H.isArray(e)&&Hr(e)||(H.isFileList(e)||H.endsWith(n,`[]`))&&(s=H.toArray(e)))return n=Br(n),s.forEach(function(e,r){!(H.isUndefined(e)||e===null)&&t.append(o===!0?Vr([n],r,a):o===null?n:n+`[]`,c(e))}),!1}return zr(e)?!0:(t.append(Vr(i,n,a),c(e)),!1)}let u=[],d=Object.assign(Ur,{defaultVisitor:l,convertValue:c,isVisitable:zr});function f(e,n){if(!H.isUndefined(e)){if(u.indexOf(e)!==-1)throw Error(`Circular reference detected in `+n.join(`.`));u.push(e),H.forEach(e,function(e,r){(!(H.isUndefined(e)||e===null)&&i.call(t,e,H.isString(r)?r.trim():r,n,d))===!0&&f(e,n?n.concat(r):[r])}),u.pop()}}if(!H.isObject(e))throw TypeError(`data must be an object`);return f(e),t}function Gr(e){let t={"!":`%21`,"'":`%27`,"(":`%28`,")":`%29`,"~":`%7E`,"%20":`+`,"%00":`\0`};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(e){return t[e]})}function Kr(e,t){this._pairs=[],e&&Wr(e,this,t)}var qr=Kr.prototype;qr.append=function(e,t){this._pairs.push([e,t])},qr.toString=function(e){let t=e?function(t){return e.call(this,t,Gr)}:Gr;return this._pairs.map(function(e){return t(e[0])+`=`+t(e[1])},``).join(`&`)};function Jr(e){return encodeURIComponent(e).replace(/%3A/gi,`:`).replace(/%24/g,`$`).replace(/%2C/gi,`,`).replace(/%20/g,`+`)}function Yr(e,t,n){if(!t)return e;let r=n&&n.encode||Jr,i=H.isFunction(n)?{serialize:n}:n,a=i&&i.serialize,o;if(o=a?a(t,i):H.isURLSearchParams(t)?t.toString():new Kr(t,i).toString(r),o){let t=e.indexOf(`#`);t!==-1&&(e=e.slice(0,t)),e+=(e.indexOf(`?`)===-1?`?`:`&`)+o}return e}var Xr=class{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&=[]}forEach(e){H.forEach(this.handlers,function(t){t!==null&&e(t)})}},Zr={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},Qr={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<`u`?URLSearchParams:Kr,FormData:typeof FormData<`u`?FormData:null,Blob:typeof Blob<`u`?Blob:null},protocols:[`http`,`https`,`file`,`blob`,`url`,`data`]},$r=e({hasBrowserEnv:()=>ei,hasStandardBrowserEnv:()=>ni,hasStandardBrowserWebWorkerEnv:()=>ri,navigator:()=>ti,origin:()=>ii}),ei=typeof window<`u`&&typeof document<`u`,ti=typeof navigator==`object`&&navigator||void 0,ni=ei&&(!ti||[`ReactNative`,`NativeScript`,`NS`].indexOf(ti.product)<0),ri=typeof WorkerGlobalScope<`u`&&self instanceof WorkerGlobalScope&&typeof self.importScripts==`function`,ii=ei&&window.location.href||`http://localhost`,W={...$r,...Qr};function ai(e,t){return Wr(e,new W.classes.URLSearchParams,{visitor:function(e,t,n,r){return W.isNode&&H.isBuffer(e)?(this.append(t,e.toString(`base64`)),!1):r.defaultVisitor.apply(this,arguments)},...t})}function oi(e){return H.matchAll(/\w+|\[(\w*)]/g,e).map(e=>e[0]===`[]`?``:e[1]||e[0])}function si(e){let t={},n=Object.keys(e),r,i=n.length,a;for(r=0;r<i;r++)a=n[r],t[a]=e[a];return t}function ci(e){function t(e,n,r,i){let a=e[i++];if(a===`__proto__`)return!0;let o=Number.isFinite(+a),s=i>=e.length;return a=!a&&H.isArray(r)?r.length:a,s?(H.hasOwnProp(r,a)?r[a]=[r[a],n]:r[a]=n,!o):((!r[a]||!H.isObject(r[a]))&&(r[a]=[]),t(e,n,r[a],i)&&H.isArray(r[a])&&(r[a]=si(r[a])),!o)}if(H.isFormData(e)&&H.isFunction(e.entries)){let n={};return H.forEachEntry(e,(e,r)=>{t(oi(e),r,n,0)}),n}return null}function li(e,t,n){if(H.isString(e))try{return(t||JSON.parse)(e),H.trim(e)}catch(e){if(e.name!==`SyntaxError`)throw e}return(n||JSON.stringify)(e)}var ui={transitional:Zr,adapter:[`xhr`,`http`,`fetch`],transformRequest:[function(e,t){let n=t.getContentType()||``,r=n.indexOf(`application/json`)>-1,i=H.isObject(e);if(i&&H.isHTMLForm(e)&&(e=new FormData(e)),H.isFormData(e))return r?JSON.stringify(ci(e)):e;if(H.isArrayBuffer(e)||H.isBuffer(e)||H.isStream(e)||H.isFile(e)||H.isBlob(e)||H.isReadableStream(e))return e;if(H.isArrayBufferView(e))return e.buffer;if(H.isURLSearchParams(e))return t.setContentType(`application/x-www-form-urlencoded;charset=utf-8`,!1),e.toString();let a;if(i){if(n.indexOf(`application/x-www-form-urlencoded`)>-1)return ai(e,this.formSerializer).toString();if((a=H.isFileList(e))||n.indexOf(`multipart/form-data`)>-1){let t=this.env&&this.env.FormData;return Wr(a?{"files[]":e}:e,t&&new t,this.formSerializer)}}return i||r?(t.setContentType(`application/json`,!1),li(e)):e}],transformResponse:[function(e){let t=this.transitional||ui.transitional,n=t&&t.forcedJSONParsing,r=this.responseType===`json`;if(H.isResponse(e)||H.isReadableStream(e))return e;if(e&&H.isString(e)&&(n&&!this.responseType||r)){let n=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e,this.parseReviver)}catch(e){if(n)throw e.name===`SyntaxError`?U.from(e,U.ERR_BAD_RESPONSE,this,null,this.response):e}}return e}],timeout:0,xsrfCookieName:`XSRF-TOKEN`,xsrfHeaderName:`X-XSRF-TOKEN`,maxContentLength:-1,maxBodyLength:-1,env:{FormData:W.classes.FormData,Blob:W.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:`application/json, text/plain, */*`,"Content-Type":void 0}}};H.forEach([`delete`,`get`,`head`,`post`,`put`,`patch`],e=>{ui.headers[e]={}});var di=H.toObjectSet([`age`,`authorization`,`content-length`,`content-type`,`etag`,`expires`,`from`,`host`,`if-modified-since`,`if-unmodified-since`,`last-modified`,`location`,`max-forwards`,`proxy-authorization`,`referer`,`retry-after`,`user-agent`]),fi=e=>{let t={},n,r,i;return e&&e.split(`
`).forEach(function(e){i=e.indexOf(`:`),n=e.substring(0,i).trim().toLowerCase(),r=e.substring(i+1).trim(),!(!n||t[n]&&di[n])&&(n===`set-cookie`?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+`, `+r:r)}),t},pi=Symbol(`internals`);function mi(e){return e&&String(e).trim().toLowerCase()}function hi(e){return e===!1||e==null?e:H.isArray(e)?e.map(hi):String(e).replace(/[\r\n]+$/,``)}function gi(e){let t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g,r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}var _i=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function vi(e,t,n,r,i){if(H.isFunction(r))return r.call(this,t,n);if(i&&(t=n),H.isString(t)){if(H.isString(r))return t.indexOf(r)!==-1;if(H.isRegExp(r))return r.test(t)}}function yi(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n)}function bi(e,t){let n=H.toCamelCase(` `+t);[`get`,`set`,`has`].forEach(r=>{Object.defineProperty(e,r+n,{value:function(e,n,i){return this[r].call(this,t,e,n,i)},configurable:!0})})}var G=class{constructor(e){e&&this.set(e)}set(e,t,n){let r=this;function i(e,t,n){let i=mi(t);if(!i)throw Error(`header name must be a non-empty string`);let a=H.findKey(r,i);(!a||r[a]===void 0||n===!0||n===void 0&&r[a]!==!1)&&(r[a||t]=hi(e))}let a=(e,t)=>H.forEach(e,(e,n)=>i(e,n,t));if(H.isPlainObject(e)||e instanceof this.constructor)a(e,t);else if(H.isString(e)&&(e=e.trim())&&!_i(e))a(fi(e),t);else if(H.isObject(e)&&H.isIterable(e)){let n={},r,i;for(let t of e){if(!H.isArray(t))throw TypeError(`Object iterator must return a key-value pair`);n[i=t[0]]=(r=n[i])?H.isArray(r)?[...r,t[1]]:[r,t[1]]:t[1]}a(n,t)}else e!=null&&i(t,e,n);return this}get(e,t){if(e=mi(e),e){let n=H.findKey(this,e);if(n){let e=this[n];if(!t)return e;if(t===!0)return gi(e);if(H.isFunction(t))return t.call(this,e,n);if(H.isRegExp(t))return t.exec(e);throw TypeError(`parser must be boolean|regexp|function`)}}}has(e,t){if(e=mi(e),e){let n=H.findKey(this,e);return!!(n&&this[n]!==void 0&&(!t||vi(this,this[n],n,t)))}return!1}delete(e,t){let n=this,r=!1;function i(e){if(e=mi(e),e){let i=H.findKey(n,e);i&&(!t||vi(n,n[i],i,t))&&(delete n[i],r=!0)}}return H.isArray(e)?e.forEach(i):i(e),r}clear(e){let t=Object.keys(this),n=t.length,r=!1;for(;n--;){let i=t[n];(!e||vi(this,this[i],i,e,!0))&&(delete this[i],r=!0)}return r}normalize(e){let t=this,n={};return H.forEach(this,(r,i)=>{let a=H.findKey(n,i);if(a){t[a]=hi(r),delete t[i];return}let o=e?yi(i):String(i).trim();o!==i&&delete t[i],t[o]=hi(r),n[o]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){let t=Object.create(null);return H.forEach(this,(n,r)=>{n!=null&&n!==!1&&(t[r]=e&&H.isArray(n)?n.join(`, `):n)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+`: `+t).join(`
`)}getSetCookie(){return this.get(`set-cookie`)||[]}get[Symbol.toStringTag](){return`AxiosHeaders`}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){let n=new this(e);return t.forEach(e=>n.set(e)),n}static accessor(e){let t=(this[pi]=this[pi]={accessors:{}}).accessors,n=this.prototype;function r(e){let r=mi(e);t[r]||(bi(n,e),t[r]=!0)}return H.isArray(e)?e.forEach(r):r(e),this}};G.accessor([`Content-Type`,`Content-Length`,`Accept`,`Accept-Encoding`,`User-Agent`,`Authorization`]),H.reduceDescriptors(G.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}}),H.freezeMethods(G);function xi(e,t){let n=this||ui,r=t||n,i=G.from(r.headers),a=r.data;return H.forEach(e,function(e){a=e.call(n,a,i.normalize(),t?t.status:void 0)}),i.normalize(),a}function Si(e){return!!(e&&e.__CANCEL__)}var Ci=class extends U{constructor(e,t,n){super(e??`canceled`,U.ERR_CANCELED,t,n),this.name=`CanceledError`,this.__CANCEL__=!0}};function wi(e,t,n){let r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new U(`Request failed with status code `+n.status,[U.ERR_BAD_REQUEST,U.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function Ti(e){let t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||``}function Ei(e,t){e||=10;let n=Array(e),r=Array(e),i=0,a=0,o;return t=t===void 0?1e3:t,function(s){let c=Date.now(),l=r[a];o||=c,n[i]=s,r[i]=c;let u=a,d=0;for(;u!==i;)d+=n[u++],u%=e;if(i=(i+1)%e,i===a&&(a=(a+1)%e),c-o<t)return;let f=l&&c-l;return f?Math.round(d*1e3/f):void 0}}function Di(e,t){let n=0,r=1e3/t,i,a,o=(t,r=Date.now())=>{n=r,i=null,a&&=(clearTimeout(a),null),e(...t)};return[(...e)=>{let t=Date.now(),s=t-n;s>=r?o(e,t):(i=e,a||=setTimeout(()=>{a=null,o(i)},r-s))},()=>i&&o(i)]}var Oi=(e,t,n=3)=>{let r=0,i=Ei(50,250);return Di(n=>{let a=n.loaded,o=n.lengthComputable?n.total:void 0,s=a-r,c=i(s),l=a<=o;r=a,e({loaded:a,total:o,progress:o?a/o:void 0,bytes:s,rate:c||void 0,estimated:c&&o&&l?(o-a)/c:void 0,event:n,lengthComputable:o!=null,[t?`download`:`upload`]:!0})},n)},ki=(e,t)=>{let n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Ai=e=>(...t)=>H.asap(()=>e(...t)),ji=W.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,W.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(W.origin),W.navigator&&/(msie|trident)/i.test(W.navigator.userAgent)):()=>!0,Mi=W.hasStandardBrowserEnv?{write(e,t,n,r,i,a,o){if(typeof document>`u`)return;let s=[`${e}=${encodeURIComponent(t)}`];H.isNumber(n)&&s.push(`expires=${new Date(n).toUTCString()}`),H.isString(r)&&s.push(`path=${r}`),H.isString(i)&&s.push(`domain=${i}`),a===!0&&s.push(`secure`),H.isString(o)&&s.push(`SameSite=${o}`),document.cookie=s.join(`; `)},read(e){if(typeof document>`u`)return null;let t=document.cookie.match(RegExp(`(?:^|; )`+e+`=([^;]*)`));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,``,Date.now()-864e5,`/`)}}:{write(){},read(){return null},remove(){}};function Ni(e){return typeof e==`string`?/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e):!1}function Pi(e,t){return t?e.replace(/\/?\/$/,``)+`/`+t.replace(/^\/+/,``):e}function Fi(e,t,n){let r=!Ni(t);return e&&(r||n==0)?Pi(e,t):t}var Ii=e=>e instanceof G?{...e}:e;function K(e,t){t||={};let n={};function r(e,t,n,r){return H.isPlainObject(e)&&H.isPlainObject(t)?H.merge.call({caseless:r},e,t):H.isPlainObject(t)?H.merge({},t):H.isArray(t)?t.slice():t}function i(e,t,n,i){if(!H.isUndefined(t))return r(e,t,n,i);if(!H.isUndefined(e))return r(void 0,e,n,i)}function a(e,t){if(!H.isUndefined(t))return r(void 0,t)}function o(e,t){if(!H.isUndefined(t))return r(void 0,t);if(!H.isUndefined(e))return r(void 0,e)}function s(n,i,a){if(a in t)return r(n,i);if(a in e)return r(void 0,n)}let c={url:a,method:a,data:a,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:s,headers:(e,t,n)=>i(Ii(e),Ii(t),n,!0)};return H.forEach(Object.keys({...e,...t}),function(r){if(r===`__proto__`||r===`constructor`||r===`prototype`)return;let a=H.hasOwnProp(c,r)?c[r]:i,o=a(e[r],t[r],r);H.isUndefined(o)&&a!==s||(n[r]=o)}),n}var Li=e=>{let t=K({},e),{data:n,withXSRFToken:r,xsrfHeaderName:i,xsrfCookieName:a,headers:o,auth:s}=t;if(t.headers=o=G.from(o),t.url=Yr(Fi(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),s&&o.set(`Authorization`,`Basic `+btoa((s.username||``)+`:`+(s.password?unescape(encodeURIComponent(s.password)):``))),H.isFormData(n)){if(W.hasStandardBrowserEnv||W.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if(H.isFunction(n.getHeaders)){let e=n.getHeaders(),t=[`content-type`,`content-length`];Object.entries(e).forEach(([e,n])=>{t.includes(e.toLowerCase())&&o.set(e,n)})}}if(W.hasStandardBrowserEnv&&(r&&H.isFunction(r)&&(r=r(t)),r||r!==!1&&ji(t.url))){let e=i&&a&&Mi.read(a);e&&o.set(i,e)}return t},Ri=typeof XMLHttpRequest<`u`&&function(e){return new Promise(function(t,n){let r=Li(e),i=r.data,a=G.from(r.headers).normalize(),{responseType:o,onUploadProgress:s,onDownloadProgress:c}=r,l,u,d,f,p;function m(){f&&f(),p&&p(),r.cancelToken&&r.cancelToken.unsubscribe(l),r.signal&&r.signal.removeEventListener(`abort`,l)}let h=new XMLHttpRequest;h.open(r.method.toUpperCase(),r.url,!0),h.timeout=r.timeout;function g(){if(!h)return;let r=G.from(`getAllResponseHeaders`in h&&h.getAllResponseHeaders());wi(function(e){t(e),m()},function(e){n(e),m()},{data:!o||o===`text`||o===`json`?h.responseText:h.response,status:h.status,statusText:h.statusText,headers:r,config:e,request:h}),h=null}`onloadend`in h?h.onloadend=g:h.onreadystatechange=function(){!h||h.readyState!==4||h.status===0&&!(h.responseURL&&h.responseURL.indexOf(`file:`)===0)||setTimeout(g)},h.onabort=function(){h&&=(n(new U(`Request aborted`,U.ECONNABORTED,e,h)),null)},h.onerror=function(t){let r=new U(t&&t.message?t.message:`Network Error`,U.ERR_NETWORK,e,h);r.event=t||null,n(r),h=null},h.ontimeout=function(){let t=r.timeout?`timeout of `+r.timeout+`ms exceeded`:`timeout exceeded`,i=r.transitional||Zr;r.timeoutErrorMessage&&(t=r.timeoutErrorMessage),n(new U(t,i.clarifyTimeoutError?U.ETIMEDOUT:U.ECONNABORTED,e,h)),h=null},i===void 0&&a.setContentType(null),`setRequestHeader`in h&&H.forEach(a.toJSON(),function(e,t){h.setRequestHeader(t,e)}),H.isUndefined(r.withCredentials)||(h.withCredentials=!!r.withCredentials),o&&o!==`json`&&(h.responseType=r.responseType),c&&([d,p]=Oi(c,!0),h.addEventListener(`progress`,d)),s&&h.upload&&([u,f]=Oi(s),h.upload.addEventListener(`progress`,u),h.upload.addEventListener(`loadend`,f)),(r.cancelToken||r.signal)&&(l=t=>{h&&=(n(!t||t.type?new Ci(null,e,h):t),h.abort(),null)},r.cancelToken&&r.cancelToken.subscribe(l),r.signal&&(r.signal.aborted?l():r.signal.addEventListener(`abort`,l)));let _=Ti(r.url);if(_&&W.protocols.indexOf(_)===-1){n(new U(`Unsupported protocol `+_+`:`,U.ERR_BAD_REQUEST,e));return}h.send(i||null)})},zi=(e,t)=>{let{length:n}=e=e?e.filter(Boolean):[];if(t||n){let n=new AbortController,r,i=function(e){if(!r){r=!0,o();let t=e instanceof Error?e:this.reason;n.abort(t instanceof U?t:new Ci(t instanceof Error?t.message:t))}},a=t&&setTimeout(()=>{a=null,i(new U(`timeout of ${t}ms exceeded`,U.ETIMEDOUT))},t),o=()=>{e&&=(a&&clearTimeout(a),a=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(i):e.removeEventListener(`abort`,i)}),null)};e.forEach(e=>e.addEventListener(`abort`,i));let{signal:s}=n;return s.unsubscribe=()=>H.asap(o),s}},Bi=function*(e,t){let n=e.byteLength;if(!t||n<t){yield e;return}let r=0,i;for(;r<n;)i=r+t,yield e.slice(r,i),r=i},Vi=async function*(e,t){for await(let n of Hi(e))yield*Bi(n,t)},Hi=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}let t=e.getReader();try{for(;;){let{done:e,value:n}=await t.read();if(e)break;yield n}}finally{await t.cancel()}},Ui=(e,t,n,r)=>{let i=Vi(e,t),a=0,o,s=e=>{o||(o=!0,r&&r(e))};return new ReadableStream({async pull(e){try{let{done:t,value:r}=await i.next();if(t){s(),e.close();return}let o=r.byteLength;n&&n(a+=o),e.enqueue(new Uint8Array(r))}catch(e){throw s(e),e}},cancel(e){return s(e),i.return()}},{highWaterMark:2})},Wi=64*1024,{isFunction:Gi}=H,Ki=(({Request:e,Response:t})=>({Request:e,Response:t}))(H.global),{ReadableStream:qi,TextEncoder:Ji}=H.global,Yi=(e,...t)=>{try{return!!e(...t)}catch{return!1}},Xi=e=>{e=H.merge.call({skipUndefined:!0},Ki,e);let{fetch:t,Request:n,Response:r}=e,i=t?Gi(t):typeof fetch==`function`,a=Gi(n),o=Gi(r);if(!i)return!1;let s=i&&Gi(qi),c=i&&(typeof Ji==`function`?(e=>t=>e.encode(t))(new Ji):async e=>new Uint8Array(await new n(e).arrayBuffer())),l=a&&s&&Yi(()=>{let e=!1,t=new qi,r=new n(W.origin,{body:t,method:`POST`,get duplex(){return e=!0,`half`}}).headers.has(`Content-Type`);return t.cancel(),e&&!r}),u=o&&s&&Yi(()=>H.isReadableStream(new r(``).body)),d={stream:u&&(e=>e.body)};i&&[`text`,`arrayBuffer`,`blob`,`formData`,`stream`].forEach(e=>{!d[e]&&(d[e]=(t,n)=>{let r=t&&t[e];if(r)return r.call(t);throw new U(`Response type '${e}' is not supported`,U.ERR_NOT_SUPPORT,n)})});let f=async e=>{if(e==null)return 0;if(H.isBlob(e))return e.size;if(H.isSpecCompliantForm(e))return(await new n(W.origin,{method:`POST`,body:e}).arrayBuffer()).byteLength;if(H.isArrayBufferView(e)||H.isArrayBuffer(e))return e.byteLength;if(H.isURLSearchParams(e)&&(e+=``),H.isString(e))return(await c(e)).byteLength},p=async(e,t)=>H.toFiniteNumber(e.getContentLength())??f(t);return async e=>{let{url:i,method:o,data:s,signal:c,cancelToken:f,timeout:m,onDownloadProgress:h,onUploadProgress:g,responseType:_,headers:v,withCredentials:ee=`same-origin`,fetchOptions:y}=Li(e),b=t||fetch;_=_?(_+``).toLowerCase():`text`;let x=zi([c,f&&f.toAbortSignal()],m),S=null,C=x&&x.unsubscribe&&(()=>{x.unsubscribe()}),te;try{if(g&&l&&o!==`get`&&o!==`head`&&(te=await p(v,s))!==0){let e=new n(i,{method:`POST`,body:s,duplex:`half`}),t;if(H.isFormData(s)&&(t=e.headers.get(`content-type`))&&v.setContentType(t),e.body){let[t,n]=ki(te,Oi(Ai(g)));s=Ui(e.body,Wi,t,n)}}H.isString(ee)||(ee=ee?`include`:`omit`);let t=a&&`credentials`in n.prototype,c={...y,signal:x,method:o.toUpperCase(),headers:v.normalize().toJSON(),body:s,duplex:`half`,credentials:t?ee:void 0};S=a&&new n(i,c);let f=await(a?b(S,y):b(i,c)),m=u&&(_===`stream`||_===`response`);if(u&&(h||m&&C)){let e={};[`status`,`statusText`,`headers`].forEach(t=>{e[t]=f[t]});let t=H.toFiniteNumber(f.headers.get(`content-length`)),[n,i]=h&&ki(t,Oi(Ai(h),!0))||[];f=new r(Ui(f.body,Wi,n,()=>{i&&i(),C&&C()}),e)}_||=`text`;let ne=await d[H.findKey(d,_)||`text`](f,e);return!m&&C&&C(),await new Promise((t,n)=>{wi(t,n,{data:ne,headers:G.from(f.headers),status:f.status,statusText:f.statusText,config:e,request:S})})}catch(t){throw C&&C(),t&&t.name===`TypeError`&&/Load failed|fetch/i.test(t.message)?Object.assign(new U(`Network Error`,U.ERR_NETWORK,e,S,t&&t.response),{cause:t.cause||t}):U.from(t,t&&t.code,e,S,t&&t.response)}}},Zi=new Map,Qi=e=>{let t=e&&e.env||{},{fetch:n,Request:r,Response:i}=t,a=[r,i,n],o=a.length,s,c,l=Zi;for(;o--;)s=a[o],c=l.get(s),c===void 0&&l.set(s,c=o?new Map:Xi(t)),l=c;return c};Qi();var $i={http:null,xhr:Ri,fetch:{get:Qi}};H.forEach($i,(e,t)=>{if(e){try{Object.defineProperty(e,`name`,{value:t})}catch{}Object.defineProperty(e,`adapterName`,{value:t})}});var ea=e=>`- ${e}`,ta=e=>H.isFunction(e)||e===null||e===!1;function na(e,t){e=H.isArray(e)?e:[e];let{length:n}=e,r,i,a={};for(let o=0;o<n;o++){r=e[o];let n;if(i=r,!ta(r)&&(i=$i[(n=String(r)).toLowerCase()],i===void 0))throw new U(`Unknown adapter '${n}'`);if(i&&(H.isFunction(i)||(i=i.get(t))))break;a[n||`#`+o]=i}if(!i){let e=Object.entries(a).map(([e,t])=>`adapter ${e} `+(t===!1?`is not supported by the environment`:`is not available in the build`));throw new U(`There is no suitable adapter to dispatch the request `+(n?e.length>1?`since :
`+e.map(ea).join(`
`):` `+ea(e[0]):`as no adapter specified`),`ERR_NOT_SUPPORT`)}return i}var ra={getAdapter:na,adapters:$i};function ia(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Ci(null,e)}function aa(e){return ia(e),e.headers=G.from(e.headers),e.data=xi.call(e,e.transformRequest),[`post`,`put`,`patch`].indexOf(e.method)!==-1&&e.headers.setContentType(`application/x-www-form-urlencoded`,!1),ra.getAdapter(e.adapter||ui.adapter,e)(e).then(function(t){return ia(e),t.data=xi.call(e,e.transformResponse,t),t.headers=G.from(t.headers),t},function(t){return Si(t)||(ia(e),t&&t.response&&(t.response.data=xi.call(e,e.transformResponse,t.response),t.response.headers=G.from(t.response.headers))),Promise.reject(t)})}var oa=`1.14.0`,sa={};[`object`,`boolean`,`number`,`function`,`string`,`symbol`].forEach((e,t)=>{sa[e]=function(n){return typeof n===e||`a`+(t<1?`n `:` `)+e}});var ca={};sa.transitional=function(e,t,n){function r(e,t){return`[Axios v`+oa+`] Transitional option '`+e+`'`+t+(n?`. `+n:``)}return(n,i,a)=>{if(e===!1)throw new U(r(i,` has been removed`+(t?` in `+t:``)),U.ERR_DEPRECATED);return t&&!ca[i]&&(ca[i]=!0,console.warn(r(i,` has been deprecated since v`+t+` and will be removed in the near future`))),e?e(n,i,a):!0}},sa.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};function la(e,t,n){if(typeof e!=`object`)throw new U(`options must be an object`,U.ERR_BAD_OPTION_VALUE);let r=Object.keys(e),i=r.length;for(;i-- >0;){let a=r[i],o=t[a];if(o){let t=e[a],n=t===void 0||o(t,a,e);if(n!==!0)throw new U(`option `+a+` must be `+n,U.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new U(`Unknown option `+a,U.ERR_BAD_OPTION)}}var ua={assertOptions:la,validators:sa},q=ua.validators,da=class{constructor(e){this.defaults=e||{},this.interceptors={request:new Xr,response:new Xr}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=Error();let n=t.stack?t.stack.replace(/^.+\n/,``):``;try{e.stack?n&&!String(e.stack).endsWith(n.replace(/^.+\n.+\n/,``))&&(e.stack+=`
`+n):e.stack=n}catch{}}throw e}}_request(e,t){typeof e==`string`?(t||={},t.url=e):t=e||{},t=K(this.defaults,t);let{transitional:n,paramsSerializer:r,headers:i}=t;n!==void 0&&ua.assertOptions(n,{silentJSONParsing:q.transitional(q.boolean),forcedJSONParsing:q.transitional(q.boolean),clarifyTimeoutError:q.transitional(q.boolean),legacyInterceptorReqResOrdering:q.transitional(q.boolean)},!1),r!=null&&(H.isFunction(r)?t.paramsSerializer={serialize:r}:ua.assertOptions(r,{encode:q.function,serialize:q.function},!0)),t.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls===void 0?t.allowAbsoluteUrls=!0:t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls),ua.assertOptions(t,{baseUrl:q.spelling(`baseURL`),withXsrfToken:q.spelling(`withXSRFToken`)},!0),t.method=(t.method||this.defaults.method||`get`).toLowerCase();let a=i&&H.merge(i.common,i[t.method]);i&&H.forEach([`delete`,`get`,`head`,`post`,`put`,`patch`,`common`],e=>{delete i[e]}),t.headers=G.concat(a,i);let o=[],s=!0;this.interceptors.request.forEach(function(e){if(typeof e.runWhen==`function`&&e.runWhen(t)===!1)return;s&&=e.synchronous;let n=t.transitional||Zr;n&&n.legacyInterceptorReqResOrdering?o.unshift(e.fulfilled,e.rejected):o.push(e.fulfilled,e.rejected)});let c=[];this.interceptors.response.forEach(function(e){c.push(e.fulfilled,e.rejected)});let l,u=0,d;if(!s){let e=[aa.bind(this),void 0];for(e.unshift(...o),e.push(...c),d=e.length,l=Promise.resolve(t);u<d;)l=l.then(e[u++],e[u++]);return l}d=o.length;let f=t;for(;u<d;){let e=o[u++],t=o[u++];try{f=e(f)}catch(e){t.call(this,e);break}}try{l=aa.call(this,f)}catch(e){return Promise.reject(e)}for(u=0,d=c.length;u<d;)l=l.then(c[u++],c[u++]);return l}getUri(e){return e=K(this.defaults,e),Yr(Fi(e.baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}};H.forEach([`delete`,`get`,`head`,`options`],function(e){da.prototype[e]=function(t,n){return this.request(K(n||{},{method:e,url:t,data:(n||{}).data}))}}),H.forEach([`post`,`put`,`patch`],function(e){function t(t){return function(n,r,i){return this.request(K(i||{},{method:e,headers:t?{"Content-Type":`multipart/form-data`}:{},url:n,data:r}))}}da.prototype[e]=t(),da.prototype[e+`Form`]=t(!0)});var fa=class e{constructor(e){if(typeof e!=`function`)throw TypeError(`executor must be a function.`);let t;this.promise=new Promise(function(e){t=e});let n=this;this.promise.then(e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null}),this.promise.then=e=>{let t,r=new Promise(e=>{n.subscribe(e),t=e}).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e(function(e,r,i){n.reason||(n.reason=new Ci(e,r,i),t(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;let t=this._listeners.indexOf(e);t!==-1&&this._listeners.splice(t,1)}toAbortSignal(){let e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let t;return{token:new e(function(e){t=e}),cancel:t}}};function pa(e){return function(t){return e.apply(null,t)}}function ma(e){return H.isObject(e)&&e.isAxiosError===!0}var ha={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(ha).forEach(([e,t])=>{ha[t]=e});function ga(e){let t=new da(e),n=jn(da.prototype.request,t);return H.extend(n,da.prototype,t,{allOwnKeys:!0}),H.extend(n,t,null,{allOwnKeys:!0}),n.create=function(t){return ga(K(e,t))},n}var J=ga(ui);J.Axios=da,J.CanceledError=Ci,J.CancelToken=fa,J.isCancel=Si,J.VERSION=oa,J.toFormData=Wr,J.AxiosError=U,J.Cancel=J.CanceledError,J.all=function(e){return Promise.all(e)},J.spread=pa,J.isAxiosError=ma,J.mergeConfig=K,J.AxiosHeaders=G,J.formToJSON=e=>ci(H.isHTMLForm(e)?new FormData(e):e),J.getAdapter=ra.getAdapter,J.HttpStatusCode=ha,J.default=J;var _a=`pymc_jwt_token`,va=`pymc_client_id`;function ya(){let e=localStorage.getItem(va);return e||(e=`${Date.now()}-${Math.random().toString(36).substring(2,15)}`,localStorage.setItem(va,e)),e}function Y(){return localStorage.getItem(_a)}function ba(e){localStorage.setItem(_a,e)}function xa(){localStorage.removeItem(_a)}function Sa(){return Y()!==null}function Ca(e){try{let t=e.split(`.`)[1].replace(/-/g,`+`).replace(/_/g,`/`),n=decodeURIComponent(atob(t).split(``).map(e=>`%`+(`00`+e.charCodeAt(0).toString(16)).slice(-2)).join(``));return JSON.parse(n)}catch{return null}}function wa(){let e=Y();if(!e)return!0;let t=Ca(e);return!t||!t.exp?!0:Date.now()>=t.exp*1e3-3e4}function Ta(){let e=Y();if(!e)return!1;let t=Ca(e);if(!t||!t.exp)return!1;let n=t.exp*1e3-Date.now();return n>0&&n<3e5}function Ea(){let e=Y();if(!e)return null;let t=Ca(e);return!t||!t.sub?null:t.sub}var Da=`modulepreload`,Oa=function(e){return`/`+e},ka={},X=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=Oa(t,n),t in ka)return;ka[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`:Da,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)})},Aa=An({history:Zt(`/`),routes:[{path:`/setup`,name:`setup`,component:()=>X(()=>import(`./Setup-C3GHdov-.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14])),meta:{requiresAuth:!1,requiresSetup:!1}},{path:`/login`,name:`login`,component:()=>X(()=>import(`./Login-CVfrHF6v.js`),__vite__mapDeps([15,1,2,3,4,5,6,7,8,9,10,11,12,16])),meta:{requiresAuth:!1}},{path:`/`,name:`dashboard`,component:()=>X(()=>import(`./Dashboard-B8JOynZW.js`),__vite__mapDeps([17,1,2,3,4,5,6,7,8,9,10,11,12,18,19,20])),meta:{requiresAuth:!0}},{path:`/neighbors`,name:`neighbors`,component:()=>X(()=>import(`./Neighbors-DU2jwkhS.js`),__vite__mapDeps([21,1,2,3,4,5,6,7,8,9,10,11,12,22,23,24,19,25,26,27])),meta:{requiresAuth:!0}},{path:`/statistics`,name:`statistics`,component:()=>X(()=>import(`./Statistics-B0TENw33.js`),__vite__mapDeps([28,18,3,5,4,29,1,2,6,7,8,9,10,11,12,30])),meta:{requiresAuth:!0}},{path:`/gps`,name:`gps-diagnostics`,component:()=>X(()=>import(`./GPSDiagnostics-zp_zpoe8.js`),__vite__mapDeps([31,1,2,3,4,5,6,7,8,9,10,11,12,32])),meta:{requiresAuth:!0}},{path:`/system-stats`,name:`system-stats`,component:()=>X(()=>import(`./SystemStats-Blc9w234.js`),__vite__mapDeps([33,1,2,3,4,5,6,7,8,9,10,11,12,22,18,29,30,25,34])),meta:{requiresAuth:!0}},{path:`/sensors`,name:`sensors`,component:()=>X(()=>import(`./Sensors-DoI1aDsU.js`),__vite__mapDeps([35,1,2,3,4,5,6,7,8,9,10,11,12])),meta:{requiresAuth:!0}},{path:`/configuration`,name:`configuration`,component:()=>X(()=>import(`./Configuration-DGbypP6V.js`),__vite__mapDeps([36,1,2,3,4,5,6,7,8,9,10,11,12,13,37,38,22,39,27,24,25,40])),meta:{requiresAuth:!0}},{path:`/cad-calibration`,name:`cad-calibration`,component:()=>X(()=>import(`./CADCalibration-CcD3dNoA.js`),__vite__mapDeps([41,1,2,3,4,5,6,7,8,9,10,11,12,22,42,43])),meta:{requiresAuth:!0}},{path:`/sessions`,name:`sessions`,component:()=>X(()=>import(`./Sessions-R0ITOu95.js`),__vite__mapDeps([44,3,4,5])),meta:{requiresAuth:!0}},{path:`/room-servers`,name:`room-servers`,component:()=>X(()=>import(`./RoomServers-CyZfURzJ.js`),__vite__mapDeps([45,1,2,3,4,5,6,7,8,9,10,11,12,37,38,22,39,27,46])),meta:{requiresAuth:!0}},{path:`/companions`,name:`companions`,component:()=>X(()=>import(`./Companions-CpX8mCKh.js`),__vite__mapDeps([47,1,2,3,4,5,6,7,8,9,10,11,12,37,46])),meta:{requiresAuth:!0}},{path:`/logs`,name:`logs`,component:()=>X(()=>import(`./Logs-Be6ix9ik.js`),__vite__mapDeps([48,3,4,5])),meta:{requiresAuth:!0}},{path:`/terminal`,name:`terminal`,component:()=>X(()=>import(`./Terminal-DAbgWH3i.js`),__vite__mapDeps([49,1,2,3,4,5,6,7,8,9,10,11,12,50])),meta:{requiresAuth:!0}},{path:`/help`,name:`help`,component:()=>X(()=>import(`./Help-QDfxnI2i.js`),__vite__mapDeps([51,3])),meta:{requiresAuth:!0}}]}),ja=!1;async function Ma(){if(ja)return!1;try{let e=await fetch(`/api/needs_setup`,{headers:{Accept:`application/json`}});if(!e.ok)return console.error(`Setup check failed:`,e.status),!1;let t=(await e.json()).needs_setup===!0;return t||(ja=!0),t}catch(e){return console.error(`Error checking setup status:`,e),!1}}Aa.beforeEach(async e=>{if(await Ma())return e.path===`/setup`?void 0:`/setup`;if(e.path===`/setup`)return`/login`;let t=e.meta.requiresAuth!==!1,n=Sa();if(t&&!n)return`/login`;if(e.path===`/login`&&n)return`/`});var Na=Oe(`appRuntime`,()=>{let e=d(typeof navigator>`u`?!0:navigator.onLine),t=d(typeof document>`u`?!0:document.visibilityState===`visible`),n=d(!1),r=d(null),i=d(!1),a=y(()=>e.value&&t.value&&n.value&&!i.value);function o(){n.value=!!Y()&&!wa(),n.value||(r.value=r.value??`expired`)}function s(){n.value=!0,r.value=null,i.value=!1}function c(t){e.value=t}function l(e){t.value=e}async function u(e){if(i.value)return;i.value=!0,r.value=e,n.value=!1;let{useWebSocketStore:t}=await X(async()=>{let{useWebSocketStore:e}=await import(`./websocket-CavFGuUC.js`);return{useWebSocketStore:e}},__vite__mapDeps([52,10,3,7,8,9])),{usePacketStore:a}=await X(async()=>{let{usePacketStore:e}=await import(`./packets-BDjzUXUF.js`);return{usePacketStore:e}},__vite__mapDeps([53,8,3])),{useSystemStore:o}=await X(async()=>{let{useSystemStore:e}=await import(`./system-bQ_0JWvJ.js`);return{useSystemStore:e}},__vite__mapDeps([54,9,3,8])),{useDataService:s}=await X(async()=>{let{useDataService:e}=await import(`./dataService-CfRDrNPy.js`);return{useDataService:e}},__vite__mapDeps([55,7,3,8,9])),c=t(),l=a(),u=o(),d=s();c.disconnect({preventReconnect:!0,silent:e!==`logout`}),l.reset(),u.reset(),d.reset(),xa(),Aa.currentRoute.value.path!==`/login`&&await Aa.push(`/login`),i.value=!1}async function f(e){await u(e)}return{isOnline:e,isDocumentVisible:t,isAuthenticated:n,authFailureReason:r,canMaintainConnections:a,syncAuthState:o,markAuthenticated:s,setOnline:c,setDocumentVisible:l,stopSession:u,handleAuthFailure:f}}),Z=function(e){return e.Json=`application/json`,e.JsonApi=`application/vnd.api+json`,e.FormData=`multipart/form-data`,e.UrlEncoded=`application/x-www-form-urlencoded`,e.Text=`text/plain`,e}({}),Pa=class{baseUrl=`/api`;securityData=null;securityWorker;abortControllers=new Map;customFetch=(...e)=>fetch(...e);baseApiParams={credentials:`same-origin`,headers:{},redirect:`follow`,referrerPolicy:`no-referrer`};constructor(e={}){Object.assign(this,e)}setSecurityData=e=>{this.securityData=e};encodeQueryParam(e,t){return`${encodeURIComponent(e)}=${encodeURIComponent(typeof t==`number`?t:`${t}`)}`}addQueryParam(e,t){return this.encodeQueryParam(t,e[t])}addArrayQueryParam(e,t){return e[t].map(e=>this.encodeQueryParam(t,e)).join(`&`)}toQueryString(e){let t=e||{};return Object.keys(t).filter(e=>t[e]!==void 0).map(e=>Array.isArray(t[e])?this.addArrayQueryParam(t,e):this.addQueryParam(t,e)).join(`&`)}addQueryParams(e){let t=this.toQueryString(e);return t?`?${t}`:``}contentFormatters={[Z.Json]:e=>e!==null&&(typeof e==`object`||typeof e==`string`)?JSON.stringify(e):e,[Z.JsonApi]:e=>e!==null&&(typeof e==`object`||typeof e==`string`)?JSON.stringify(e):e,[Z.Text]:e=>e!==null&&typeof e!=`string`?JSON.stringify(e):e,[Z.FormData]:e=>e instanceof FormData?e:Object.keys(e||{}).reduce((t,n)=>{let r=e[n];return t.append(n,r instanceof Blob?r:typeof r==`object`&&r?JSON.stringify(r):`${r}`),t},new FormData),[Z.UrlEncoded]:e=>this.toQueryString(e)};mergeRequestParams(e,t){return{...this.baseApiParams,...e,...t||{},headers:{...this.baseApiParams.headers||{},...e.headers||{},...t&&t.headers||{}}}}createAbortSignal=e=>{if(this.abortControllers.has(e)){let t=this.abortControllers.get(e);return t?t.signal:void 0}let t=new AbortController;return this.abortControllers.set(e,t),t.signal};abortRequest=e=>{let t=this.abortControllers.get(e);t&&(t.abort(),this.abortControllers.delete(e))};request=async({body:e,secure:t,path:n,type:r,query:i,format:a,baseUrl:o,cancelToken:s,...c})=>{let l=(typeof t==`boolean`?t:this.baseApiParams.secure)&&this.securityWorker&&await this.securityWorker(this.securityData)||{},u=this.mergeRequestParams(c,l),d=i&&this.toQueryString(i),f=this.contentFormatters[r||Z.Json],p=a||u.format;return this.customFetch(`${o||this.baseUrl||``}${n}${d?`?${d}`:``}`,{...u,headers:{...u.headers||{},...r&&r!==Z.FormData?{"Content-Type":r}:{}},signal:(s?this.createAbortSignal(s):u.signal)||null,body:e==null?null:f(e)}).then(async e=>{let t=e;t.data=null,t.error=null;let n=p?e.clone():e,r=p?await n[p]().then(e=>(t.ok?t.data=e:t.error=e,t)).catch(e=>(t.error=e,t)):t;if(s&&this.abortControllers.delete(s),!e.ok)throw r;return r})}},Q=new class extends Pa{auth={loginCreate:(e,t={})=>this.request({path:`/auth/login`,method:`POST`,body:e,type:Z.Json,format:`json`,...t}),refreshCreate:(e,t={})=>this.request({path:`/auth/refresh`,method:`POST`,body:e,secure:!0,type:Z.Json,format:`json`,...t}),verifyList:(e={})=>this.request({path:`/auth/verify`,method:`GET`,secure:!0,format:`json`,...e}),changePasswordCreate:(e,t={})=>this.request({path:`/auth/change_password`,method:`POST`,body:e,secure:!0,type:Z.Json,...t}),tokensList:(e={})=>this.request({path:`/auth/tokens`,method:`GET`,secure:!0,format:`json`,...e}),tokensCreate:(e,t={})=>this.request({path:`/auth/tokens`,method:`POST`,body:e,secure:!0,type:Z.Json,format:`json`,...t}),tokensDelete:(e,t={})=>this.request({path:`/auth/tokens/${e}`,method:`DELETE`,secure:!0,...t})};stats={statsList:(e={})=>this.request({path:`/stats`,method:`GET`,format:`json`,...e})};gps={getGps:(e={})=>this.request({path:`/gps`,method:`GET`,secure:!0,format:`json`,...e})};gpsStream={gpsStreamList:(e={})=>this.request({path:`/gps_stream`,method:`GET`,...e})};sendAdvert={sendAdvertCreate:(e={})=>this.request({path:`/send_advert`,method:`POST`,format:`json`,...e})};logs={logsList:(e={})=>this.request({path:`/logs`,method:`GET`,format:`json`,...e})};logsStream={logsStreamList:(e,t={})=>this.request({path:`/logs_stream`,method:`GET`,query:e,...t})};hardwareStats={hardwareStatsList:(e={})=>this.request({path:`/hardware_stats`,method:`GET`,format:`json`,...e})};hardwareProcesses={hardwareProcessesList:(e={})=>this.request({path:`/hardware_processes`,method:`GET`,format:`json`,...e})};restartService={restartServiceCreate:(e={})=>this.request({path:`/restart_service`,method:`POST`,secure:!0,format:`json`,...e})};validateConfig={validateConfigList:(e={})=>this.request({path:`/validate_config`,method:`GET`,secure:!0,format:`json`,...e})};openapi={openapiList:(e={})=>this.request({path:`/openapi`,method:`GET`,format:`json`,...e})};setMode={setModeCreate:(e,t={})=>this.request({path:`/set_mode`,method:`POST`,body:e,type:Z.Json,format:`json`,...t})};packetStats={packetStatsList:(e,t={})=>this.request({path:`/packet_stats`,method:`GET`,query:e,format:`json`,...t})};setDutyCycle={setDutyCycleCreate:(e,t={})=>this.request({path:`/set_duty_cycle`,method:`POST`,body:e,type:Z.Json,format:`json`,...t})};updateDutyCycleConfig={updateDutyCycleConfigCreate:(e,t={})=>this.request({path:`/update_duty_cycle_config`,method:`POST`,body:e,secure:!0,type:Z.Json,format:`json`,...t})};updateRadioConfig={updateRadioConfigCreate:(e,t={})=>this.request({path:`/update_radio_config`,method:`POST`,body:e,secure:!0,type:Z.Json,format:`json`,...t})};recentPackets={recentPacketsList:(e,t={})=>this.request({path:`/recent_packets`,method:`GET`,query:e,format:`json`,...t})};packetByHash={packetByHashList:(e,t={})=>this.request({path:`/packet_by_hash`,method:`GET`,query:e,...t})};packetTypeStats={packetTypeStatsList:(e,t={})=>this.request({path:`/packet_type_stats`,method:`GET`,query:e,format:`json`,...t})};routeStats={routeStatsList:(e,t={})=>this.request({path:`/route_stats`,method:`GET`,query:e,format:`json`,...t})};filteredPackets={filteredPacketsList:(e,t={})=>this.request({path:`/filtered_packets`,method:`GET`,query:e,format:`json`,...t})};rrdData={rrdDataList:(e={})=>this.request({path:`/rrd_data`,method:`GET`,format:`json`,...e})};packetTypeGraphData={packetTypeGraphDataList:(e,t={})=>this.request({path:`/packet_type_graph_data`,method:`GET`,query:e,format:`json`,...t})};metricsGraphData={metricsGraphDataList:(e,t={})=>this.request({path:`/metrics_graph_data`,method:`GET`,query:e,format:`json`,...t})};noiseFloorHistory={noiseFloorHistoryList:(e,t={})=>this.request({path:`/noise_floor_history`,method:`GET`,query:e,format:`json`,...t})};noiseFloorStats={noiseFloorStatsList:(e,t={})=>this.request({path:`/noise_floor_stats`,method:`GET`,query:e,format:`json`,...t})};noiseFloorChartData={noiseFloorChartDataList:(e,t={})=>this.request({path:`/noise_floor_chart_data`,method:`GET`,query:e,format:`json`,...t})};cadCalibrationStart={cadCalibrationStartCreate:(e,t={})=>this.request({path:`/cad_calibration_start`,method:`POST`,body:e,type:Z.Json,format:`json`,...t})};cadCalibrationStop={cadCalibrationStopCreate:(e={})=>this.request({path:`/cad_calibration_stop`,method:`POST`,format:`json`,...e})};saveCadSettings={saveCadSettingsCreate:(e,t={})=>this.request({path:`/save_cad_settings`,method:`POST`,body:e,secure:!0,type:Z.Json,format:`json`,...t})};cadCalibrationStream={cadCalibrationStreamList:(e={})=>this.request({path:`/cad_calibration_stream`,method:`GET`,...e})};advertsByContactType={advertsByContactTypeList:(e,t={})=>this.request({path:`/adverts_by_contact_type`,method:`GET`,query:e,format:`json`,...t})};advert={advertDelete:(e,t={})=>this.request({path:`/advert`,method:`DELETE`,query:e,format:`json`,...t})};transportKeys={transportKeysList:(e={})=>this.request({path:`/transport_keys`,method:`GET`,secure:!0,format:`json`,...e}),transportKeysCreate:(e,t={})=>this.request({path:`/transport_keys`,method:`POST`,body:e,secure:!0,type:Z.Json,format:`json`,...t})};transportKey={transportKeyList:(e,t={})=>this.request({path:`/transport_key`,method:`GET`,query:e,secure:!0,format:`json`,...t}),transportKeyUpdate:(e,t,n={})=>this.request({path:`/transport_key`,method:`PUT`,query:e,body:t,secure:!0,type:Z.Json,format:`json`,...n}),transportKeyDelete:(e,t={})=>this.request({path:`/transport_key`,method:`DELETE`,query:e,secure:!0,format:`json`,...t})};unscopedFloodPolicy={unscopedFloodPolicyCreate:(e,t={})=>this.request({path:`/unscoped_flood_policy`,method:`POST`,body:e,secure:!0,type:Z.Json,format:`json`,...t})};pingNeighbor={pingNeighborCreate:(e,t={})=>this.request({path:`/ping_neighbor`,method:`POST`,body:e,secure:!0,type:Z.Json,format:`json`,...t})};policy={policyList:(e={})=>this.request({path:`/policy`,method:`GET`,secure:!0,format:`json`,...e}),policyCreate:(e,t={})=>this.request({path:`/policy`,method:`POST`,body:e,secure:!0,type:Z.Json,format:`json`,...t})};policyValidate={policyValidateCreate:(e,t={})=>this.request({path:`/policy_validate`,method:`POST`,body:e,secure:!0,type:Z.Json,format:`json`,...t})};policyGroups={policyGroupsList:(e,t={})=>this.request({path:`/policy_groups`,method:`GET`,query:e,secure:!0,format:`json`,...t}),policyGroupsCreate:(e,t={})=>this.request({path:`/policy_groups`,method:`POST`,body:e,secure:!0,type:Z.Json,format:`json`,...t}),policyGroupsDelete:(e,t={})=>this.request({path:`/policy_groups`,method:`DELETE`,body:e,secure:!0,type:Z.Json,format:`json`,...t})};policyGroupEntries={policyGroupEntriesList:(e,t={})=>this.request({path:`/policy_group_entries`,method:`GET`,query:e,secure:!0,format:`json`,...t}),policyGroupEntriesCreate:(e,t={})=>this.request({path:`/policy_group_entries`,method:`POST`,body:e,secure:!0,type:Z.Json,format:`json`,...t}),policyGroupEntriesDelete:(e,t={})=>this.request({path:`/policy_group_entries`,method:`DELETE`,body:e,secure:!0,type:Z.Json,format:`json`,...t})};createIdentity={createIdentityCreate:(e,t={})=>this.request({path:`/create_identity`,method:`POST`,body:e,type:Z.Json,format:`json`,...t})};identities={identitiesList:(e={})=>this.request({path:`/identities`,method:`GET`,format:`json`,...e})};identity={identityList:(e,t={})=>this.request({path:`/identity`,method:`GET`,query:e,format:`json`,...t})};updateIdentity={updateIdentityUpdate:(e,t={})=>this.request({path:`/update_identity`,method:`PUT`,body:e,secure:!0,type:Z.Json,format:`json`,...t})};deleteIdentity={deleteIdentityDelete:(e,t={})=>this.request({path:`/delete_identity`,method:`DELETE`,query:e,secure:!0,format:`json`,...t})};sendRoomServerAdvert={sendRoomServerAdvertCreate:(e,t={})=>this.request({path:`/send_room_server_advert`,method:`POST`,body:e,secure:!0,type:Z.Json,format:`json`,...t})};aclInfo={aclInfoList:(e={})=>this.request({path:`/acl_info`,method:`GET`,format:`json`,...e})};aclClients={aclClientsList:(e,t={})=>this.request({path:`/acl_clients`,method:`GET`,query:e,format:`json`,...t})};aclRemoveClient={aclRemoveClientCreate:(e,t={})=>this.request({path:`/acl_remove_client`,method:`POST`,body:e,type:Z.Json,format:`json`,...t})};aclStats={aclStatsList:(e={})=>this.request({path:`/acl_stats`,method:`GET`,format:`json`,...e})};roomMessages={roomMessagesList:(e,t={})=>this.request({path:`/room_messages`,method:`GET`,query:e,format:`json`,...t})};roomPostMessage={roomPostMessageCreate:(e,t={})=>this.request({path:`/room_post_message`,method:`POST`,body:e,type:Z.Json,format:`json`,...t})};roomStats={roomStatsList:(e,t={})=>this.request({path:`/room_stats`,method:`GET`,query:e,format:`json`,...t})};roomClients={roomClientsList:(e,t={})=>this.request({path:`/room_clients`,method:`GET`,query:e,format:`json`,...t})};roomMessage={roomMessageDelete:(e,t={})=>this.request({path:`/room_message`,method:`DELETE`,query:e,...t})};roomMessagesClear={roomMessagesClearDelete:(e,t={})=>this.request({path:`/room_messages_clear`,method:`DELETE`,query:e,format:`json`,...t})};needsSetup={needsSetupList:(e={})=>this.request({path:`/needs_setup`,method:`GET`,format:`json`,...e})};siteInfo={siteInfoList:(e={})=>this.request({path:`/site_info`,method:`GET`,format:`json`,...e})};hardwareOptions={hardwareOptionsList:(e={})=>this.request({path:`/hardware_options`,method:`GET`,format:`json`,...e})};radioPresets={radioPresetsList:(e={})=>this.request({path:`/radio_presets`,method:`GET`,format:`json`,...e})};serialPorts={serialPortsList:(e={})=>this.request({path:`/serial_ports`,method:`GET`,format:`json`,...e})};setupWizard={setupWizardCreate:(e,t={})=>this.request({path:`/setup_wizard`,method:`POST`,body:e,type:Z.Json,format:`json`,...t})};checkPymcConsole={checkPymcConsoleList:(e={})=>this.request({path:`/check_pymc_console`,method:`GET`,format:`json`,...e})};mqttStatus={mqttStatusList:(e={})=>this.request({path:`/mqtt_status`,method:`GET`,format:`json`,...e})};brokerPresets={brokerPresetsList:(e={})=>this.request({path:`/broker_presets`,method:`GET`,format:`json`,...e})};updateWebConfig={updateWebConfigCreate:(e,t={})=>this.request({path:`/update_web_config`,method:`POST`,body:e,secure:!0,type:Z.Json,format:`json`,...t})};updateMqttConfig={updateMqttConfigCreate:(e,t={})=>this.request({path:`/update_mqtt_config`,method:`POST`,body:e,secure:!0,type:Z.Json,format:`json`,...t})};updateAdvertRateLimitConfig={updateAdvertRateLimitConfigCreate:(e,t={})=>this.request({path:`/update_advert_rate_limit_config`,method:`POST`,body:e,secure:!0,type:Z.Json,format:`json`,...t})};bulkPackets={bulkPacketsList:(e,t={})=>this.request({path:`/bulk_packets`,method:`GET`,query:e,format:`json`,...t})};airtimeData={airtimeDataList:(e,t={})=>this.request({path:`/airtime_data`,method:`GET`,query:e,format:`json`,...t})};airtimeChartData={airtimeChartDataList:(e,t={})=>this.request({path:`/airtime_chart_data`,method:`GET`,query:e,format:`json`,...t})};advertsCountByContactType={advertsCountByContactTypeList:(e,t={})=>this.request({path:`/adverts_count_by_contact_type`,method:`GET`,query:e,format:`json`,...t})};advertRateLimitStats={advertRateLimitStatsList:(e={})=>this.request({path:`/advert_rate_limit_stats`,method:`GET`,format:`json`,...e})};crcErrorCount={crcErrorCountList:(e,t={})=>this.request({path:`/crc_error_count`,method:`GET`,query:e,format:`json`,...t})};crcErrorHistory={crcErrorHistoryList:(e,t={})=>this.request({path:`/crc_error_history`,method:`GET`,query:e,format:`json`,...t})};memoryDebug={memoryDebugList:(e={})=>this.request({path:`/memory_debug`,method:`GET`,format:`json`,...e}),memoryDebugCreate:(e,t={})=>this.request({path:`/memory_debug`,method:`POST`,body:e,type:Z.Json,format:`json`,...t})};configExport={configExportList:(e,t={})=>this.request({path:`/config_export`,method:`GET`,query:e,format:`json`,...t})};configImport={configImportCreate:(e,t={})=>this.request({path:`/config_import`,method:`POST`,body:e,type:Z.Json,format:`json`,...t})};identityExport={identityExportList:(e={})=>this.request({path:`/identity_export`,method:`GET`,format:`json`,...e})};generateVanityKey={generateVanityKeyCreate:(e,t={})=>this.request({path:`/generate_vanity_key`,method:`POST`,body:e,type:Z.Json,format:`json`,...t})};dbStats={dbStatsList:(e={})=>this.request({path:`/db_stats`,method:`GET`,format:`json`,...e})};dbPurge={dbPurgeCreate:(e,t={})=>this.request({path:`/db_purge`,method:`POST`,body:e,type:Z.Json,format:`json`,...t})};dbVacuum={dbVacuumCreate:(e={})=>this.request({path:`/db_vacuum`,method:`POST`,format:`json`,...e})};docs={docsList:(e={})=>this.request({path:`/docs`,method:`GET`,...e})};api={authTokensList:(e={})=>this.request({path:`/api/auth/tokens`,method:`GET`,format:`json`,...e}),authTokensCreate:(e,t={})=>this.request({path:`/api/auth/tokens`,method:`POST`,body:e,type:Z.Json,format:`json`,...t}),authTokensDelete:(e,t={})=>this.request({path:`/api/auth/tokens/${e}`,method:`DELETE`,format:`json`,...t})};companion={companionList:(e={})=>this.request({path:`/companion`,method:`GET`,format:`json`,...e}),selfInfoList:(e={})=>this.request({path:`/companion/self_info`,method:`GET`,format:`json`,...e}),contactsList:(e={})=>this.request({path:`/companion/contacts`,method:`GET`,format:`json`,...e}),contactList:(e,t={})=>this.request({path:`/companion/contact`,method:`GET`,query:e,format:`json`,...t}),importRepeaterContactsCreate:(e,t={})=>this.request({path:`/companion/import_repeater_contacts`,method:`POST`,body:e,type:Z.Json,format:`json`,...t}),channelsList:(e={})=>this.request({path:`/companion/channels`,method:`GET`,format:`json`,...e}),statsList:(e={})=>this.request({path:`/companion/stats`,method:`GET`,format:`json`,...e}),sendTextCreate:(e,t={})=>this.request({path:`/companion/send_text`,method:`POST`,body:e,type:Z.Json,format:`json`,...t}),sendChannelMessageCreate:(e,t={})=>this.request({path:`/companion/send_channel_message`,method:`POST`,body:e,type:Z.Json,format:`json`,...t}),loginCreate:(e,t={})=>this.request({path:`/companion/login`,method:`POST`,body:e,type:Z.Json,format:`json`,...t}),requestStatusCreate:(e={})=>this.request({path:`/companion/request_status`,method:`POST`,format:`json`,...e}),requestTelemetryCreate:(e={})=>this.request({path:`/companion/request_telemetry`,method:`POST`,format:`json`,...e}),sendCommandCreate:(e,t={})=>this.request({path:`/companion/send_command`,method:`POST`,body:e,type:Z.Json,format:`json`,...t}),resetPathCreate:(e={})=>this.request({path:`/companion/reset_path`,method:`POST`,format:`json`,...e}),setAdvertNameCreate:(e,t={})=>this.request({path:`/companion/set_advert_name`,method:`POST`,body:e,type:Z.Json,format:`json`,...t}),setAdvertLocationCreate:(e,t={})=>this.request({path:`/companion/set_advert_location`,method:`POST`,body:e,type:Z.Json,format:`json`,...t}),eventsList:(e={})=>this.request({path:`/companion/events`,method:`GET`,...e})};update={statusList:(e={})=>this.request({path:`/update/status`,method:`GET`,format:`json`,...e}),checkList:(e={})=>this.request({path:`/update/check`,method:`GET`,format:`json`,...e}),checkCreate:(e,t={})=>this.request({path:`/update/check`,method:`POST`,body:e,type:Z.Json,format:`json`,...t}),installCreate:(e,t={})=>this.request({path:`/update/install`,method:`POST`,body:e,type:Z.Json,format:`json`,...t}),progressList:(e={})=>this.request({path:`/update/progress`,method:`GET`,...e}),channelsList:(e={})=>this.request({path:`/update/channels`,method:`GET`,format:`json`,...e}),setChannelCreate:(e,t={})=>this.request({path:`/update/set_channel`,method:`POST`,body:e,type:Z.Json,format:`json`,...t}),changelogList:(e={})=>this.request({path:`/update/changelog`,method:`GET`,format:`json`,...e})};cli={postCli:(e,t={})=>this.request({path:`/cli`,method:`POST`,body:e,secure:!0,type:Z.Json,format:`json`,...t})}}({baseUrl:`/api`}),Fa=e=>{if(e)return Object.fromEntries(new Headers(e).entries())},Ia=`/api`,La=!1,Ra=null;async function za(){return La&&Ra?Ra:(La=!0,Ra=(async()=>{try{let e=Y();if(!e)throw Error(`No token to refresh`);let t=ya(),n=await J.post(`/auth/refresh`,{client_id:t},{headers:{Authorization:`Bearer ${e}`,"Content-Type":`application/json`}});if(n.data.success&&n.data.token){let e=n.data.token;return ba(e),e}else throw Error(`Token refresh failed`)}catch(e){throw console.error(`Token refresh error:`,e),await Na().handleAuthFailure(`expired`),e}finally{La=!1,Ra=null}})(),Ra)}var $=J.create({baseURL:Ia,timeout:1e4,headers:{"Content-Type":`application/json`}}),Ba=J.create({baseURL:``,timeout:1e4,headers:{"Content-Type":`application/json`}});Ba.interceptors.request.use(async e=>{if(e.url?.includes(`/auth/login`)||e.url?.includes(`/auth/refresh`))return e;let t=Y();if(t){if(Ta())try{let t=await za();return e.headers.Authorization=`Bearer ${t}`,e}catch(e){return Promise.reject(e)}if(wa())return Na().handleAuthFailure(`expired`),Promise.reject(Error(`Token expired`));e.headers.Authorization=`Bearer ${t}`}return e},e=>(console.error(`Auth API Request Error:`,e),Promise.reject(e))),Ba.interceptors.response.use(e=>e,e=>{if(e.response?.status===401||e.response?.status===403){let t=(e.config?.headers?.Authorization)?.replace(`Bearer `,``),n=Y();(!t||t===n)&&Na().handleAuthFailure(e.response?.status===403?`forbidden`:`unauthorized`)}return console.error(`Auth API Response Error:`,e.response?.data||e.message),Promise.reject(e)}),$.interceptors.request.use(async e=>{if(e.url?.includes(`/auth/login`))return e;let t=Y();if(t){if(Ta())try{let t=await za();return e.headers.Authorization=`Bearer ${t}`,e}catch(e){return Promise.reject(e)}if(wa())return Na().handleAuthFailure(`expired`),Promise.reject(Error(`Token expired`));e.headers.Authorization=`Bearer ${t}`}return e},e=>(console.error(`API Request Error:`,e),Promise.reject(e))),$.interceptors.response.use(e=>e,e=>{if(e.response?.status===401||e.response?.status===403){let t=(e.config?.headers?.Authorization)?.replace(`Bearer `,``),n=Y();(!t||t===n)&&Na().handleAuthFailure(e.response?.status===403?`forbidden`:`unauthorized`)}return console.error(`API Response Error:`,e.response?.data||e.message),Promise.reject(e)});var Va=class{static async resolveRequestToken(){let e=Y();if(e){if(Ta())return za();if(wa())throw Na().handleAuthFailure(`expired`),Error(`Token expired`);return e}}static async getGeneratedRequestParams(){let e=await this.resolveRequestToken();return e?{headers:{Authorization:`Bearer ${e}`}}:{}}static async get(e,t,n){try{return(await $.get(e,{params:t,...n})).data}catch(e){throw this.handleError(e)}}static async post(e,t,n){try{return(await $.post(e,t,n)).data}catch(e){throw this.handleError(e)}}static async put(e,t,n){try{return(await $.put(e,t,n)).data}catch(e){throw this.handleError(e)}}static async delete(e,t){try{return(await $.delete(e,t)).data}catch(e){throw this.handleError(e)}}static async getTransportKeys(){try{let e=await this.getGeneratedRequestParams();return(await Q.transportKeys.transportKeysList(e)).data}catch(e){throw this.handleError(e)}}static async sendAdvert(){try{let e=await this.getGeneratedRequestParams();return(await Q.sendAdvert.sendAdvertCreate(e)).data}catch(e){throw this.handleError(e)}}static async getGpsDiagnostics(){try{let e=await this.getGeneratedRequestParams();return(await Q.gps.getGps(e)).data}catch(e){throw this.handleError(e)}}static async getSerialPorts(){try{let e=await this.getGeneratedRequestParams();return(await Q.serialPorts.serialPortsList(e)).data}catch(e){throw this.handleError(e)}}static async createTransportKey(e,t,n,r,i){let a={name:e,flood_policy:t,parent_id:r,last_used:i};n!==void 0&&(a.transport_key=n);try{let e=await this.getGeneratedRequestParams();return(await Q.transportKeys.transportKeysCreate(a,e)).data}catch(e){throw this.handleError(e)}}static async getTransportKey(e){try{let t=await this.getGeneratedRequestParams();return(await Q.transportKey.transportKeyList({key_id:String(e)},t)).data}catch(e){throw this.handleError(e)}}static async updateTransportKey(e,t,n,r,i,a){try{let o=await this.getGeneratedRequestParams();return(await Q.transportKey.transportKeyUpdate({key_id:String(e)},{name:t,flood_policy:n,transport_key:r,parent_id:i,last_used:a},o)).data}catch(e){throw this.handleError(e)}}static async deleteTransportKey(e){try{let t=await this.getGeneratedRequestParams();return(await Q.transportKey.transportKeyDelete({key_id:String(e)},t)).data}catch(e){throw this.handleError(e)}}static async updateUnscopedFloodPolicy(e){try{let t=await this.getGeneratedRequestParams();return(await Q.unscopedFloodPolicy.unscopedFloodPolicyCreate({unscoped_flood_allow:e},t)).data}catch(e){throw this.handleError(e)}}static async getPolicyDocument(){try{let e=await this.getGeneratedRequestParams();return(await Q.policy.policyList(e)).data}catch(e){throw this.handleError(e)}}static async updatePolicyDocument(e){try{let t=await this.getGeneratedRequestParams();return(await Q.policy.policyCreate(e,t)).data}catch(e){throw this.handleError(e)}}static async validatePolicyDocument(e){try{let t=await this.getGeneratedRequestParams();return(await Q.policyValidate.policyValidateCreate(e,t)).data}catch(e){throw this.handleError(e)}}static async getPolicyGroups(e){try{let t=await this.getGeneratedRequestParams();return(await Q.policyGroups.policyGroupsList(e?{kind:e}:void 0,t)).data}catch(e){throw this.handleError(e)}}static async createPolicyGroup(e){try{let t=await this.getGeneratedRequestParams();return(await Q.policyGroups.policyGroupsCreate(e,t)).data}catch(e){throw this.handleError(e)}}static async deletePolicyGroup(e){try{let t=await this.getGeneratedRequestParams();return(await $.delete(`/policy_groups`,{headers:Fa(t.headers),data:e,params:e})).data}catch(e){throw this.handleError(e)}}static async getPolicyGroupEntries(e){try{let t=await this.getGeneratedRequestParams();return(await Q.policyGroupEntries.policyGroupEntriesList(e,t)).data}catch(e){throw this.handleError(e)}}static async createPolicyGroupEntry(e){try{let t=await this.getGeneratedRequestParams();return(await Q.policyGroupEntries.policyGroupEntriesCreate(e,t)).data}catch(e){throw this.handleError(e)}}static async deletePolicyGroupEntry(e){try{let t=await this.getGeneratedRequestParams();return(await $.delete(`/policy_group_entries`,{headers:Fa(t.headers),data:e,params:e})).data}catch(e){throw this.handleError(e)}}static async getLogs(){try{let e=await this.getGeneratedRequestParams();return(await Q.logs.logsList(e)).data}catch(e){throw this.handleError(e)}}static async deleteAdvert(e){try{let t=await this.getGeneratedRequestParams();return(await Q.advert.advertDelete({advert_id:e},t)).data}catch(e){throw this.handleError(e)}}static async pingNeighbor(e,t=10){try{let n=await this.getGeneratedRequestParams();return(await Q.pingNeighbor.pingNeighborCreate({target_id:e,timeout:t},n)).data}catch(e){throw this.handleError(e)}}static async getIdentities(){try{let e=await this.getGeneratedRequestParams();return(await Q.identities.identitiesList(e)).data}catch(e){throw this.handleError(e)}}static async getIdentity(e){try{let t=await this.getGeneratedRequestParams();return(await Q.identity.identityList({name:e},t)).data}catch(e){throw this.handleError(e)}}static async createIdentity(e){try{let t=await this.getGeneratedRequestParams();if(e.type!==`companion`&&e.type!==`room_server`)throw Error(`Unsupported identity type: ${e.type}`);return(await Q.createIdentity.createIdentityCreate({name:e.name,identity_key:e.identity_key,type:e.type,settings:e.settings},t)).data}catch(e){throw this.handleError(e)}}static async updateIdentity(e){try{let t=await this.getGeneratedRequestParams(),n={type:e.type,name:e.name,new_name:e.new_name,identity_key:e.identity_key,settings:e.settings};return(await Q.updateIdentity.updateIdentityUpdate(n,t)).data}catch(e){throw this.handleError(e)}}static async deleteIdentity(e,t=`room_server`){try{let n=await this.getGeneratedRequestParams();return(await Q.deleteIdentity.deleteIdentityDelete({name:e,type:t},n)).data}catch(e){throw this.handleError(e)}}static async sendRoomServerAdvert(e){try{let t=await this.getGeneratedRequestParams();return(await Q.sendRoomServerAdvert.sendRoomServerAdvertCreate({name:e},t)).data}catch(e){throw this.handleError(e)}}static async importRepeaterContacts(e){try{let t=await this.getGeneratedRequestParams();return(await Q.companion.importRepeaterContactsCreate(e,t)).data}catch(e){throw this.handleError(e)}}static async getACLInfo(){try{let e=await this.getGeneratedRequestParams();return(await Q.aclInfo.aclInfoList(e)).data}catch(e){throw this.handleError(e)}}static async getACLClients(e){try{let t=await this.getGeneratedRequestParams();return(await Q.aclClients.aclClientsList(e,t)).data}catch(e){throw this.handleError(e)}}static async removeACLClient(e){try{let t=await this.getGeneratedRequestParams();return(await Q.aclRemoveClient.aclRemoveClientCreate({client_pubkey:e.public_key,identity_hash:e.identity_hash??``},t)).data}catch(e){throw this.handleError(e)}}static async getACLStats(){try{let e=await this.getGeneratedRequestParams();return(await Q.aclStats.aclStatsList(e)).data}catch(e){throw this.handleError(e)}}static async getRoomMessages(e){try{let t=await this.getGeneratedRequestParams();return(await Q.roomMessages.roomMessagesList(e,t)).data}catch(e){throw this.handleError(e)}}static async postRoomMessage(e){try{let t=await this.getGeneratedRequestParams();return(await Q.roomPostMessage.roomPostMessageCreate(e,t)).data}catch(e){throw this.handleError(e)}}static async deleteRoomMessage(e){try{let t=await this.getGeneratedRequestParams();return await Q.roomMessage.roomMessageDelete({room_name:e.room_name,message_id:e.message_id},t),{success:!0}}catch(e){throw this.handleError(e)}}static async clearRoomMessages(e){try{let t=await this.getGeneratedRequestParams();return(await Q.roomMessagesClear.roomMessagesClearDelete({room_name:e},t)).data}catch(e){throw this.handleError(e)}}static async getRoomStats(e){try{let t=await this.getGeneratedRequestParams();return(await Q.roomStats.roomStatsList(e?{room_name:e}:void 0,t)).data}catch(e){throw this.handleError(e)}}static async getRoomClients(e){try{let t=await this.getGeneratedRequestParams();return(await Q.roomClients.roomClientsList({room_name:e},t)).data}catch(e){throw this.handleError(e)}}static async exportConfig(e=!1){try{let t=await this.getGeneratedRequestParams();return(await Q.configExport.configExportList(e?{include_secrets:!0}:void 0,t)).data}catch(e){throw this.handleError(e)}}static async importConfig(e){try{let t=await this.getGeneratedRequestParams();return(await Q.configImport.configImportCreate({config:e},t)).data}catch(e){throw this.handleError(e)}}static async exportIdentityKey(){try{let e=await this.getGeneratedRequestParams();return(await Q.identityExport.identityExportList(e)).data}catch(e){throw this.handleError(e)}}static async generateVanityKey(e,t=!1){try{let n=await this.getGeneratedRequestParams();return(await Q.generateVanityKey.generateVanityKeyCreate({prefix:e,apply:t},n)).data}catch(e){throw this.handleError(e)}}static async getDbStats(){try{let e=await this.getGeneratedRequestParams();return(await Q.dbStats.dbStatsList(e)).data}catch(e){throw this.handleError(e)}}static async purgeTable(e){try{let t=await this.getGeneratedRequestParams();return(await Q.dbPurge.dbPurgeCreate({tables:e},t)).data}catch(e){throw this.handleError(e)}}static async vacuumDb(){try{let e=await this.getGeneratedRequestParams();return(await Q.dbVacuum.dbVacuumCreate(e)).data}catch(e){throw this.handleError(e)}}static handleError(e){if(J.isAxiosError(e)){if(e.response){let t=e.response.data?.error||e.response.data?.message||`HTTP ${e.response.status}`;return Error(t)}else if(e.request)return Error(`Network error - no response received`)}return Error(e instanceof Error?e.message:`Unknown error occurred`)}};export{_e as _,Aa as a,ya as c,wa as d,ba as f,Ue as g,We as h,Na as i,Y as l,Ut as m,$ as n,X as o,Ht as p,Ba as r,xa as s,Va as t,Ea as u,Oe as v,ke as y};