hermes-web-ui 0.2.2 → 0.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +30 -6
- package/bin/hermes-web-ui.mjs +34 -4
- package/dist/assets/{Button-CpNld4Mc.js → Button-sJ2BpaPl.js} +14 -14
- package/dist/assets/{ChannelsView-BWEvTQwM.css → ChannelsView-C2h4_vNn.css} +1 -1
- package/dist/assets/ChannelsView-CD_79lUP.js +1 -0
- package/dist/assets/ChatView-CLIjlJ1x.js +142 -0
- package/dist/assets/ChatView-CX_ZYhvz.css +1 -0
- package/dist/assets/Close-2w73mIOt.js +45 -0
- package/dist/assets/FormItem-XpOdWzQ0.js +110 -0
- package/dist/assets/Input-BzhYBEbH.js +234 -0
- package/dist/assets/InputNumber-8txyKuLX.js +13 -0
- package/dist/assets/JobsView-C-1FgnDL.js +2 -0
- package/dist/assets/{JobsView-DkwaDky6.css → JobsView-OYrxaGgM.css} +1 -1
- package/dist/assets/LoginView-BD15AZNF.js +1 -0
- package/dist/assets/LoginView-BHThbj0n.css +1 -0
- package/dist/assets/LogsView-DmQ4ttpe.js +1 -0
- package/dist/assets/LogsView-DzYGlYxF.css +1 -0
- package/dist/assets/{MarkdownRenderer-C2pkccH2.js → MarkdownRenderer-DJm5zGZj.js} +2 -2
- package/dist/assets/MemoryView-DBtvO2X2.js +5 -0
- package/dist/assets/MemoryView-WR7DvkW0.css +1 -0
- package/dist/assets/Modal-D421R1s7.js +232 -0
- package/dist/assets/{ModelsView-CLdtVeiJ.css → ModelsView-Dm1vBT2p.css} +1 -1
- package/dist/assets/ModelsView-Dt3deKCr.js +1 -0
- package/dist/assets/Popover-pOQtxFC1.js +117 -0
- package/dist/assets/Select-rOqAn7Lj.js +340 -0
- package/dist/assets/SettingRow-CndAlF8Z.js +1 -0
- package/dist/assets/SettingsView-CIcrKeJw.css +1 -0
- package/dist/assets/SettingsView-CxEQl8Fh.js +352 -0
- package/dist/assets/SkillsView-4FLTf1XD.css +1 -0
- package/dist/assets/SkillsView-BopVAaC6.js +1 -0
- package/dist/assets/Spin-CaLC5eru.js +43 -0
- package/dist/assets/Suffix-C1X_jn5E.js +101 -0
- package/dist/assets/Switch-BeZgnVyD.js +102 -0
- package/dist/assets/Tag-DFrN7AVl.js +71 -0
- package/dist/assets/Tooltip-ClSL1Ac2.js +1 -0
- package/dist/assets/{UsageView-CXSijPwc.css → UsageView-Bdck_cnA.css} +1 -1
- package/dist/assets/UsageView-BvGRIGlC.js +1 -0
- package/dist/assets/_plugin-vue_export-helper-DQGaK6t5.js +3 -0
- package/dist/assets/app-DHhjDueA.js +1 -0
- package/dist/assets/app-DqRfMAIZ.js +1 -0
- package/dist/assets/browser-Bf2Q3p4g.js +47 -0
- package/dist/assets/chat-B0V07VGa.js +6 -0
- package/dist/assets/context-Bm7UPqDk.js +1 -0
- package/dist/assets/index-BR3ulF5g.css +1 -0
- package/dist/assets/index-Bdq3IZmO.js +306 -0
- package/dist/assets/jobs-QM3wEm9o.js +1 -0
- package/dist/assets/logo-CiQBpLPw.js +1 -0
- package/dist/assets/pinia-bZ6_VpBU.js +1 -0
- package/dist/assets/router-Ddepf70Q.js +4 -0
- package/dist/assets/{sessions-DYkP_X2v.js → sessions-r2FX4lYx.js} +1 -1
- package/dist/assets/{skills-C6QBmS9j.js → skills-DtNdlEJd.js} +1 -1
- package/dist/assets/use-message-DAtcV1hg.js +1 -0
- package/dist/index.html +18 -18
- package/dist/server/index.js +104 -61
- package/dist/server/routes/filesystem.js +38 -0
- package/dist/server/services/auth.d.ts +9 -0
- package/dist/server/services/auth.js +67 -0
- package/dist/server/services/hermes-cli.js +13 -1
- package/package.json +2 -2
- package/dist/assets/ChannelsView-BGXB46ZU.js +0 -1
- package/dist/assets/ChatView-BVHQ6KhU.css +0 -1
- package/dist/assets/ChatView-CaO-j1NR.js +0 -142
- package/dist/assets/Close-BAvirVyH.js +0 -45
- package/dist/assets/FormItem-DUC1YCrh.js +0 -110
- package/dist/assets/Input-CCmp4iGM.js +0 -234
- package/dist/assets/InputNumber-DpIdrMEW.js +0 -13
- package/dist/assets/JobsView-t5o1pB0r.js +0 -2
- package/dist/assets/LogsView-B2TeFIUX.css +0 -1
- package/dist/assets/LogsView-QqOV3ZEf.js +0 -1
- package/dist/assets/MemoryView-CHeaa1-C.css +0 -1
- package/dist/assets/MemoryView-oeAn8ZfB.js +0 -5
- package/dist/assets/Modal-BljFqAJF.js +0 -232
- package/dist/assets/ModelsView-DvK44HBy.js +0 -1
- package/dist/assets/Popover-BQMR8Xxo.js +0 -117
- package/dist/assets/Select-D33SMWcz.js +0 -340
- package/dist/assets/SettingRow-BxCsRfGG.js +0 -102
- package/dist/assets/SettingsView-CK9ArFcg.js +0 -352
- package/dist/assets/SettingsView-Cl1ts-YY.css +0 -1
- package/dist/assets/SkillsView-BvNhRbMq.css +0 -1
- package/dist/assets/SkillsView-_z2SQ9kJ.js +0 -1
- package/dist/assets/Spin-CwbBDHwW.js +0 -43
- package/dist/assets/Suffix-CKUJBJSi.js +0 -101
- package/dist/assets/Tag-87KswiOb.js +0 -71
- package/dist/assets/Tooltip-CuLVJgy8.js +0 -1
- package/dist/assets/UsageView-COiUupLe.js +0 -1
- package/dist/assets/_plugin-vue_export-helper-C7dadZ10.js +0 -49
- package/dist/assets/app-DX-WvBe8.js +0 -1
- package/dist/assets/app-DwI_Lyfm.js +0 -1
- package/dist/assets/chat-De2jGIM6.js +0 -6
- package/dist/assets/client-D-w1KhaU.js +0 -1
- package/dist/assets/context-vjXbZCu8.js +0 -1
- package/dist/assets/index-D3MGnlpF.js +0 -307
- package/dist/assets/index-DCNlSGk-.css +0 -1
- package/dist/assets/jobs-B2WdYQNb.js +0 -1
- package/dist/assets/pinia-B4dETPKk.js +0 -1
- package/dist/assets/preload-helper-D4M6sveU.js +0 -1
- package/dist/assets/use-message-BeTKmVAO.js +0 -1
- package/dist/assets/vue.runtime.esm-bundler-BoqZ7fRe.js +0 -3
- /package/dist/{assets/logo-BAarh-tH.png → logo.png} +0 -0
|
@@ -1,307 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/ChatView-CaO-j1NR.js","assets/_plugin-vue_export-helper-C7dadZ10.js","assets/vue.runtime.esm-bundler-BoqZ7fRe.js","assets/chat-De2jGIM6.js","assets/preload-helper-D4M6sveU.js","assets/pinia-B4dETPKk.js","assets/client-D-w1KhaU.js","assets/sessions-DYkP_X2v.js","assets/app-DX-WvBe8.js","assets/Suffix-CKUJBJSi.js","assets/MarkdownRenderer-C2pkccH2.js","assets/MarkdownRenderer-CrMwC_5d.css","assets/Popover-BQMR8Xxo.js","assets/Close-BAvirVyH.js","assets/Button-CpNld4Mc.js","assets/Modal-BljFqAJF.js","assets/Input-CCmp4iGM.js","assets/omit-QZj0aLfU.js","assets/use-message-BeTKmVAO.js","assets/context-vjXbZCu8.js","assets/Tooltip-CuLVJgy8.js","assets/ChatView-BVHQ6KhU.css","assets/JobsView-t5o1pB0r.js","assets/FormItem-DUC1YCrh.js","assets/Select-D33SMWcz.js","assets/Tag-87KswiOb.js","assets/InputNumber-DpIdrMEW.js","assets/Spin-CwbBDHwW.js","assets/jobs-B2WdYQNb.js","assets/JobsView-DkwaDky6.css","assets/ModelsView-DvK44HBy.js","assets/ModelsView-CLdtVeiJ.css","assets/LogsView-QqOV3ZEf.js","assets/LogsView-B2TeFIUX.css","assets/UsageView-COiUupLe.js","assets/UsageView-CXSijPwc.css","assets/SkillsView-_z2SQ9kJ.js","assets/skills-C6QBmS9j.js","assets/SkillsView-BvNhRbMq.css","assets/MemoryView-oeAn8ZfB.js","assets/MemoryView-CHeaa1-C.css","assets/SettingsView-CK9ArFcg.js","assets/SettingRow-BxCsRfGG.js","assets/SettingRow-HrI0c-1s.css","assets/SettingsView-Cl1ts-YY.css","assets/ChannelsView-BGXB46ZU.js","assets/ChannelsView-BWEvTQwM.css"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{$ as e,B as t,E as n,F as r,H as i,I as a,L as o,P as s,S as c,U as l,V as u,Y as d,Z as f,at as p,ct as m,d as h,et as g,g as _,h as v,i as y,k as ee,m as b,n as x,ot as S,tt as te,u as C,v as w,w as T,x as E,y as D}from"./vue.runtime.esm-bundler-BoqZ7fRe.js";import{t as ne}from"./pinia-B4dETPKk.js";import{t as O}from"./preload-helper-D4M6sveU.js";import{$ as re,B as k,H as ie,V as A,X as ae,_t as oe,c as se,d as ce,f as le,ft as j,gt as ue,i as de,l as M,lt as N,o as P,ot as F,p as fe,r as pe,s as me,st as I,t as he,tt as ge,ut as L,vt as _e}from"./_plugin-vue_export-helper-C7dadZ10.js";import{I as ve,l as R,u as ye}from"./Popover-BQMR8Xxo.js";import{b as be,c as xe,i as Se,n as Ce}from"./Suffix-CKUJBJSi.js";import{a as we,c as Te,d as Ee,f as De,i as Oe,l as ke,m as Ae,n as je,o as Me,p as Ne,r as Pe,s as Fe,t as Ie,u as Le}from"./Modal-BljFqAJF.js";import{t as Re}from"./Close-BAvirVyH.js";import{t as ze}from"./Select-D33SMWcz.js";import{i as Be}from"./Button-CpNld4Mc.js";import{t as Ve}from"./omit-QZj0aLfU.js";import{n as He,t as Ue}from"./context-vjXbZCu8.js";import{t as We}from"./chat-De2jGIM6.js";import{t as Ge}from"./app-DX-WvBe8.js";(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),e.crossOrigin===`use-credentials`?t.credentials=`include`:e.crossOrigin===`anonymous`?t.credentials=`omit`:t.credentials=`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var z=typeof document<`u`;function Ke(e){return typeof e==`object`||`displayName`in e||`props`in e||`__vccOpts`in e}function qe(e){return e.__esModule||e[Symbol.toStringTag]===`Module`||e.default&&Ke(e.default)}var B=Object.assign;function Je(e,t){let n={};for(let r in t){let i=t[r];n[r]=H(i)?i.map(e):e(i)}return n}var V=()=>{},H=Array.isArray;function Ye(e,t){let n={};for(let r in e)n[r]=r in t?t[r]:e[r];return n}var Xe=/#/g,Ze=/&/g,Qe=/\//g,$e=/=/g,et=/\?/g,tt=/\+/g,nt=/%5B/g,rt=/%5D/g,it=/%5E/g,at=/%60/g,ot=/%7B/g,st=/%7C/g,ct=/%7D/g,lt=/%20/g;function ut(e){return e==null?``:encodeURI(``+e).replace(st,`|`).replace(nt,`[`).replace(rt,`]`)}function dt(e){return ut(e).replace(ot,`{`).replace(ct,`}`).replace(it,`^`)}function ft(e){return ut(e).replace(tt,`%2B`).replace(lt,`+`).replace(Xe,`%23`).replace(Ze,`%26`).replace(at,"`").replace(ot,`{`).replace(ct,`}`).replace(it,`^`)}function pt(e){return ft(e).replace($e,`%3D`)}function mt(e){return ut(e).replace(Xe,`%23`).replace(et,`%3F`)}function ht(e){return mt(e).replace(Qe,`%2F`)}function U(e){if(e==null)return null;try{return decodeURIComponent(``+e)}catch{}return``+e}var gt=/\/$/,_t=e=>e.replace(gt,``);function vt(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=Tt(r??t,n),{fullPath:r+a+o,path:r,query:i,hash:U(o)}}function yt(e,t){let n=t.query?e(t.query):``;return t.path+(n&&`?`)+n+(t.hash||``)}function bt(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||`/`}function xt(e,t,n){let r=t.matched.length-1,i=n.matched.length-1;return r>-1&&r===i&&W(t.matched[r],n.matched[i])&&St(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function W(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function St(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(!Ct(e[n],t[n]))return!1;return!0}function Ct(e,t){return H(e)?wt(e,t):H(t)?wt(t,e):e?.valueOf()===t?.valueOf()}function wt(e,t){return H(t)?e.length===t.length&&e.every((e,n)=>e===t[n]):e.length===1&&e[0]===t}function Tt(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 G={path:`/`,name:void 0,params:{},query:{},hash:``,fullPath:`/`,matched:[],meta:{},redirectedFrom:void 0},Et=function(e){return e.pop=`pop`,e.push=`push`,e}({}),Dt=function(e){return e.back=`back`,e.forward=`forward`,e.unknown=``,e}({});function Ot(e){if(!e)if(z){let t=document.querySelector(`base`);e=t&&t.getAttribute(`href`)||`/`,e=e.replace(/^\w+:\/\/[^\/]+/,``)}else e=`/`;return e[0]!==`/`&&e[0]!==`#`&&(e=`/`+e),_t(e)}var kt=/^[^#]+#/;function At(e,t){return e.replace(kt,`#`)+t}function jt(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 Mt=()=>({left:window.scrollX,top:window.scrollY});function Nt(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=jt(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 Pt(e,t){return(history.state?history.state.position-t:-1)+e}var Ft=new Map;function It(e,t){Ft.set(e,t)}function Lt(e){let t=Ft.get(e);return Ft.delete(e),t}function Rt(e){return typeof e==`string`||e&&typeof e==`object`}function zt(e){return typeof e==`string`||typeof e==`symbol`}var K=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}({}),Bt=Symbol(``);K.MATCHER_NOT_FOUND,K.NAVIGATION_GUARD_REDIRECT,K.NAVIGATION_ABORTED,K.NAVIGATION_CANCELLED,K.NAVIGATION_DUPLICATED;function q(e,t){return B(Error(),{type:e,[Bt]:!0},t)}function J(e,t){return e instanceof Error&&Bt in e&&(t==null||!!(e.type&t))}function Vt(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(tt,` `),i=r.indexOf(`=`),a=U(i<0?r:r.slice(0,i)),o=i<0?null:U(r.slice(i+1));if(a in t){let e=t[a];H(e)||(e=t[a]=[e]),e.push(o)}else t[a]=o}return t}function Ht(e){let t=``;for(let n in e){let r=e[n];if(n=pt(n),r==null){r!==void 0&&(t+=(t.length?`&`:``)+n);continue}(H(r)?r.map(e=>e&&ft(e)):[r&&ft(r)]).forEach(e=>{e!==void 0&&(t+=(t.length?`&`:``)+n,e!=null&&(t+=`=`+e))})}return t}function Ut(e){let t={};for(let n in e){let r=e[n];r!==void 0&&(t[n]=H(r)?r.map(e=>e==null?null:``+e):r==null?r:``+r)}return t}var Wt=Symbol(``),Gt=Symbol(``),Kt=Symbol(``),qt=Symbol(``),Jt=Symbol(``);function Yt(){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 Y(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(q(K.NAVIGATION_ABORTED,{from:n,to:t})):e instanceof Error?c(e):Rt(e)?c(q(K.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 Xt(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(Ke(s)){let c=(s.__vccOpts||s)[t];c&&a.push(Y(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=qe(a)?a.default:a;o.mods[e]=a,o.components[e]=s;let c=(s.__vccOpts||s)[t];return c&&Y(c,n,r,o,e,i)()}))}}return a}function Zt(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=>W(e,a))?r.push(a):n.push(a));let s=e.matched[o];s&&(t.matched.find(e=>W(e,s))||i.push(s))}return[n,r,i]}var Qt=()=>location.protocol+`//`+location.host;function $t(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),bt(n,``)}return bt(n,e)+r+i}function en(e,t,n,r){let i=[],a=[],o=null,s=({state:a})=>{let s=$t(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:Et.pop,direction:u?u>0?Dt.forward:Dt.back:Dt.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(B({},e.state,{scroll:Mt()}),``)}}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 tn(e,t,n,r=!1,i=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:i?Mt():null}}function nn(e){let{history:t,location:n}=window,r={value:$t(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:Qt()+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,B({},t.state,tn(i.value.back,e,i.value.forward,!0),n,{position:i.value.position}),!0),r.value=e}function s(e,n){let o=B({},i.value,t.state,{forward:e,scroll:Mt()});a(o.current,o,!0),a(e,B({},tn(r.value,e,null),{position:o.position+1},n),!1),r.value=e}return{location:r,state:i,push:s,replace:o}}function rn(e){e=Ot(e);let t=nn(e),n=en(e,t.state,t.location,t.replace);function r(e,t=!0){t||n.pauseListeners(),history.go(e)}let i=B({location:``,base:e,go:r,createHref:At.bind(null,e)},t,n);return Object.defineProperty(i,`location`,{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(i,`state`,{enumerable:!0,get:()=>t.state.value}),i}function an(e){return e=location.host?e||location.pathname+location.search:``,e.includes(`#`)||(e+=`#`),rn(e)}var X=function(e){return e[e.Static=0]=`Static`,e[e.Param=1]=`Param`,e[e.Group=2]=`Group`,e}({}),Z=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}(Z||{}),on={type:X.Static,value:``},sn=/[a-zA-Z0-9_]/;function cn(e){if(!e)return[[]];if(e===`/`)return[[on]];if(!e.startsWith(`/`))throw Error(`Invalid path "${e}"`);function t(e){throw Error(`ERR (${n})/"${l}": ${e}`)}let n=Z.Static,r=n,i=[],a;function o(){a&&i.push(a),a=[]}let s=0,c,l=``,u=``;function d(){l&&=(n===Z.Static?a.push({type:X.Static,value:l}):n===Z.Param||n===Z.ParamRegExp||n===Z.ParamRegExpEnd?(a.length>1&&(c===`*`||c===`+`)&&t(`A repeatable param (${l}) must be alone in its segment. eg: '/:ids+.`),a.push({type:X.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!==Z.ParamRegExp){r=n,n=Z.EscapeNext;continue}switch(n){case Z.Static:c===`/`?(l&&d(),o()):c===`:`?(d(),n=Z.Param):f();break;case Z.EscapeNext:f(),n=r;break;case Z.Param:c===`(`?n=Z.ParamRegExp:sn.test(c)?f():(d(),n=Z.Static,c!==`*`&&c!==`?`&&c!==`+`&&s--);break;case Z.ParamRegExp:c===`)`?u[u.length-1]==`\\`?u=u.slice(0,-1)+c:n=Z.ParamRegExpEnd:u+=c;break;case Z.ParamRegExpEnd:d(),n=Z.Static,c!==`*`&&c!==`?`&&c!==`+`&&s--,u=``;break;default:t(`Unknown state`);break}}return n===Z.ParamRegExp&&t(`Unfinished custom RegExp for param "${l}"`),d(),o(),i}var ln=`[^/]+?`,un={sensitive:!1,strict:!1,start:!0,end:!0},Q=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}(Q||{}),dn=/[.+*?^${}()[\]/\\]/g;function fn(e,t){let n=B({},un,t),r=[],i=n.start?`^`:``,a=[];for(let t of e){let e=t.length?[]:[Q.Root];n.strict&&!t.length&&(i+=`/`);for(let r=0;r<t.length;r++){let o=t[r],s=Q.Segment+(n.sensitive?Q.BonusCaseSensitive:0);if(o.type===X.Static)r||(i+=`/`),i+=o.value.replace(dn,`\\$&`),s+=Q.Static;else if(o.type===X.Param){let{value:e,repeatable:n,optional:c,regexp:l}=o;a.push({name:e,repeatable:n,optional:c});let u=l||ln;if(u!==ln){s+=Q.BonusCustomRegExp;try{`${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+=Q.Dynamic,c&&(s+=Q.BonusOptional),n&&(s+=Q.BonusRepeatable),u===`.*`&&(s+=Q.BonusWildcard)}e.push(s)}r.push(e)}if(n.strict&&n.end){let e=r.length-1;r[e][r[e].length-1]+=Q.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===X.Static)n+=e.value;else if(e.type===X.Param){let{value:a,repeatable:o,optional:s}=e,c=a in t?t[a]:``;if(H(c)&&!o)throw Error(`Provided param "${a}" is an array but it is not repeatable (* or + modifiers)`);let l=H(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 pn(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]===Q.Static+Q.Segment?-1:1:e.length>t.length?t.length===1&&t[0]===Q.Static+Q.Segment?1:-1:0}function mn(e,t){let n=0,r=e.score,i=t.score;for(;n<r.length&&n<i.length;){let e=pn(r[n],i[n]);if(e)return e;n++}if(Math.abs(i.length-r.length)===1){if(hn(r))return 1;if(hn(i))return-1}return i.length-r.length}function hn(e){let t=e[e.length-1];return e.length>0&&t[t.length-1]<0}var gn={strict:!1,end:!0,sensitive:!1};function _n(e,t,n){let r=B(fn(cn(e.path),n),{record:e,parent:t,children:[],alias:[]});return t&&!r.record.aliasOf==!t.record.aliasOf&&t.children.push(r),r}function vn(e,t){let n=[],r=new Map;t=Ye(gn,t);function i(e){return r.get(e)}function a(e,n,r){let i=!r,s=bn(e);s.aliasOf=r&&r.record;let l=Ye(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(bn(B({},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=_n(t,n,l),r?r.alias.push(d):(f||=d,f!==d&&f.alias.push(d),i&&e.name&&!Sn(d)&&o(e.name)),En(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)}:V}function o(e){if(zt(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=wn(e,n);n.splice(t,0,e),e.record.name&&!Sn(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 q(K.MATCHER_NOT_FOUND,{location:e});s=i.record.name,a=B(yn(t.params,i.keys.filter(e=>!e.optional).concat(i.parent?i.parent.keys.filter(e=>e.optional):[]).map(e=>e.name)),e.params&&yn(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 q(K.MATCHER_NOT_FOUND,{location:e,currentLocation:t});s=i.record.name,a=B({},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:Cn(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 yn(e,t){let n={};for(let r of t)r in e&&(n[r]=e[r]);return n}function bn(e){let t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:xn(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 xn(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 Sn(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Cn(e){return e.reduce((e,t)=>B(e,t.meta),{})}function wn(e,t){let n=0,r=t.length;for(;n!==r;){let i=n+r>>1;mn(e,t[i])<0?r=i:n=i+1}let i=Tn(e);return i&&(r=t.lastIndexOf(i,r-1)),r}function Tn(e){let t=e;for(;t=t.parent;)if(En(t)&&mn(e,t)===0)return t}function En({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function Dn(e){let t=n(Kt),r=n(qt),i=b(()=>{let n=p(e.to);return t.resolve(n)}),a=b(()=>{let{matched:e}=i.value,{length:t}=e,n=e[t-1],a=r.matched;if(!n||!a.length)return-1;let o=a.findIndex(W.bind(null,n));if(o>-1)return o;let s=Mn(e[t-2]);return t>1&&Mn(n)===s&&a[a.length-1].path!==s?a.findIndex(W.bind(null,e[t-2])):o}),o=b(()=>a.value>-1&&jn(r.params,i.value.params)),s=b(()=>a.value>-1&&a.value===r.matched.length-1&&St(r.params,i.value.params));function c(n={}){if(An(n)){let n=t[p(e.replace)?`replace`:`push`](p(e.to)).catch(V);return e.viewTransition&&typeof document<`u`&&`startViewTransition`in document&&document.startViewTransition(()=>n),n}return Promise.resolve()}return{route:i,href:b(()=>i.value.href),isActive:o,isExactActive:s,navigate:c}}function On(e){return e.length===1?e[0]:e}var kn=c({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:Dn,setup(e,{slots:t}){let r=f(Dn(e)),{options:i}=n(Kt),a=b(()=>({[Nn(e.activeClass,i.linkActiveClass,`router-link-active`)]:r.isActive,[Nn(e.exactActiveClass,i.linkExactActiveClass,`router-link-exact-active`)]:r.isExactActive}));return()=>{let n=t.default&&On(t.default(r));return e.custom?n:T(`a`,{"aria-current":r.isExactActive?e.ariaCurrentValue:null,href:r.href,onClick:r.navigate,class:a.value},n)}}});function An(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 jn(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(!H(i)||i.length!==r.length||r.some((e,t)=>e.valueOf()!==i[t].valueOf()))return!1}return!0}function Mn(e){return e?e.aliasOf?e.aliasOf.path:e.path:``}var Nn=(e,t,n)=>e??t??n,Pn=c({name:`RouterView`,inheritAttrs:!1,props:{name:{type:String,default:`default`},route:Object},compatConfig:{MODE:3},setup(t,{attrs:r,slots:i}){let a=n(Jt),s=b(()=>t.route||a.value),c=n(Gt,0),l=b(()=>{let e=p(c),{matched:t}=s.value,n;for(;(n=t[e])&&!n.components;)e++;return e}),d=b(()=>s.value.matched[l.value]);o(Gt,b(()=>l.value+1)),o(Wt,d),o(Jt,s);let f=e();return u(()=>[f.value,d.value,t.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||!W(t,i)||!r)&&(t.enterCallbacks[n]||[]).forEach(t=>t(e))},{flush:`post`}),()=>{let e=s.value,n=t.name,a=d.value,o=a&&a.components[n];if(!o)return Fn(i.default,{Component:o,route:e});let c=a.props[n],l=T(o,B({},c?c===!0?e.params:typeof c==`function`?c(e):c:null,r,{onVnodeUnmounted:e=>{e.component.isUnmounted&&(a.instances[n]=null)},ref:f}));return Fn(i.default,{Component:l,route:e})||l}}});function Fn(e,t){if(!e)return null;let n=e(t);return n.length===1?n[0]:n}var In=Pn;function Ln(e){let t=vn(e.routes,e),n=e.parseQuery||Vt,r=e.stringifyQuery||Ht,i=e.history,a=Yt(),o=Yt(),s=Yt(),c=te(G),l=G;z&&e.scrollBehavior&&`scrollRestoration`in history&&(history.scrollRestoration=`manual`);let u=Je.bind(null,e=>``+e),d=Je.bind(null,ht),f=Je.bind(null,U);function m(e,n){let r,i;return zt(e)?(r=t.getRecordMatcher(e),i=n):i=e,t.addRoute(i,r)}function h(e){let n=t.getRecordMatcher(e);n&&t.removeRoute(n)}function _(){return t.getRoutes().map(e=>e.record)}function v(e){return!!t.getRecordMatcher(e)}function y(e,a){if(a=B({},a||c.value),typeof e==`string`){let r=vt(n,e,a.path),o=t.resolve({path:r.path},a),s=i.createHref(r.fullPath);return B(r,o,{params:f(o.params),hash:U(r.hash),redirectedFrom:void 0,href:s})}let o;if(e.path!=null)o=B({},e,{path:vt(n,e.path,a.path).path});else{let t=B({},e.params);for(let e in t)t[e]??delete t[e];o=B({},e,{params:d(t)}),a.params=d(a.params)}let s=t.resolve(o,a),l=e.hash||``;s.params=u(f(s.params));let p=yt(r,B({},e,{hash:dt(l),path:s.path})),m=i.createHref(p);return B({fullPath:p,hash:l,query:r===Ht?Ut(e.query):e.query||{}},s,{redirectedFrom:void 0,href:m})}function b(e){return typeof e==`string`?vt(n,e,c.value.path):B({},e)}function x(e,t){if(l!==e)return q(K.NAVIGATION_CANCELLED,{from:t,to:e})}function S(e){return T(e)}function C(e){return S(B(b(e),{replace:!0}))}function w(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={}),B({query:e.query,hash:e.hash,params:i.path==null?e.params:{}},i)}}function T(e,t){let n=l=y(e),i=c.value,a=e.state,o=e.force,s=e.replace===!0,u=w(n,i);if(u)return T(B(b(u),{state:typeof u==`object`?B({},a,u.state):a,force:o,replace:s}),t||n);let d=n;d.redirectedFrom=t;let f;return!o&&xt(r,i,n)&&(f=q(K.NAVIGATION_DUPLICATED,{to:d,from:i}),j(i,i,!0,!1)),(f?Promise.resolve(f):ne(d,i)).catch(e=>J(e)?J(e,K.NAVIGATION_GUARD_REDIRECT)?e:le(e):se(e,d,i)).then(e=>{if(e){if(J(e,K.NAVIGATION_GUARD_REDIRECT))return T(B({replace:s},b(e.to),{state:typeof e.to==`object`?B({},a,e.to.state):a,force:o}),t||d)}else e=re(d,i,!0,s,a);return O(d,i,e),e})}function E(e,t){let n=x(e,t);return n?Promise.reject(n):Promise.resolve()}function D(e){let t=M.values().next().value;return t&&typeof t.runWithContext==`function`?t.runWithContext(e):e()}function ne(e,t){let n,[r,i,s]=Zt(e,t);n=Xt(r.reverse(),`beforeRouteLeave`,e,t);for(let i of r)i.leaveGuards.forEach(r=>{n.push(Y(r,e,t))});let c=E.bind(null,e,t);return n.push(c),P(n).then(()=>{n=[];for(let r of a.list())n.push(Y(r,e,t));return n.push(c),P(n)}).then(()=>{n=Xt(i,`beforeRouteUpdate`,e,t);for(let r of i)r.updateGuards.forEach(r=>{n.push(Y(r,e,t))});return n.push(c),P(n)}).then(()=>{n=[];for(let r of s)if(r.beforeEnter)if(H(r.beforeEnter))for(let i of r.beforeEnter)n.push(Y(i,e,t));else n.push(Y(r.beforeEnter,e,t));return n.push(c),P(n)}).then(()=>(e.matched.forEach(e=>e.enterCallbacks={}),n=Xt(s,`beforeRouteEnter`,e,t,D),n.push(c),P(n))).then(()=>{n=[];for(let r of o.list())n.push(Y(r,e,t));return n.push(c),P(n)}).catch(e=>J(e,K.NAVIGATION_CANCELLED)?e:Promise.reject(e))}function O(e,t,n){s.list().forEach(r=>D(()=>r(e,t,n)))}function re(e,t,n,r,a){let o=x(e,t);if(o)return o;let s=t===G,l=z?history.state:{};n&&(r||s?i.replace(e.fullPath,B({scroll:s&&l&&l.scroll},a)):i.push(e.fullPath,a)),c.value=e,j(e,t,n,s),le()}let k;function ie(){k||=i.listen((e,t,n)=>{if(!N.listening)return;let r=y(e),a=w(r,N.currentRoute.value);if(a){T(B(a,{replace:!0,force:!0}),r).catch(V);return}l=r;let o=c.value;z&&It(Pt(o.fullPath,n.delta),Mt()),ne(r,o).catch(e=>J(e,K.NAVIGATION_ABORTED|K.NAVIGATION_CANCELLED)?e:J(e,K.NAVIGATION_GUARD_REDIRECT)?(T(B(b(e.to),{force:!0}),r).then(e=>{J(e,K.NAVIGATION_ABORTED|K.NAVIGATION_DUPLICATED)&&!n.delta&&n.type===Et.pop&&i.go(-1,!1)}).catch(V),Promise.reject()):(n.delta&&i.go(-n.delta,!1),se(e,r,o))).then(e=>{e||=re(r,o,!1),e&&(n.delta&&!J(e,K.NAVIGATION_CANCELLED)?i.go(-n.delta,!1):n.type===Et.pop&&J(e,K.NAVIGATION_ABORTED|K.NAVIGATION_DUPLICATED)&&i.go(-1,!1)),O(r,o,e)}).catch(V)})}let A=Yt(),ae=Yt(),oe;function se(e,t,n){le(e);let r=ae.list();return r.length?r.forEach(r=>r(e,t,n)):console.error(e),Promise.reject(e)}function ce(){return oe&&c.value!==G?Promise.resolve():new Promise((e,t)=>{A.add([e,t])})}function le(e){return oe||(oe=!e,ie(),A.list().forEach(([t,n])=>e?n(e):t()),A.reset()),e}function j(t,n,r,i){let{scrollBehavior:a}=e;if(!z||!a)return Promise.resolve();let o=!r&&Lt(Pt(t.fullPath,0))||(i||!r)&&history.state&&history.state.scroll||null;return ee().then(()=>a(t,n,o)).then(e=>e&&Nt(e)).catch(e=>se(e,t,n))}let ue=e=>i.go(e),de,M=new Set,N={currentRoute:c,listening:!0,addRoute:m,removeRoute:h,clearRoutes:t.clearRoutes,hasRoute:v,getRoutes:_,resolve:y,options:e,push:S,replace:C,go:ue,back:()=>ue(-1),forward:()=>ue(1),beforeEach:a.add,beforeResolve:o.add,afterEach:s.add,onError:ae.add,isReady:ce,install(e){e.component(`RouterLink`,kn),e.component(`RouterView`,In),e.config.globalProperties.$router=N,Object.defineProperty(e.config.globalProperties,`$route`,{enumerable:!0,get:()=>p(c)}),z&&!de&&c.value===G&&(de=!0,S(i.location).catch(e=>{}));let t={};for(let e in G)Object.defineProperty(t,e,{get:()=>c.value[e],enumerable:!0});e.provide(Kt,N),e.provide(qt,g(t)),e.provide(Jt,c);let n=e.unmount;M.add(e),e.unmount=function(){M.delete(e),M.size<1&&(l=G,k&&k(),k=null,c.value=G,de=!1,oe=!1),n()}}};function P(e){return e.reduce((e,t)=>e.then(()=>D(t)),Promise.resolve())}return N}function Rn(){return n(Kt)}function zn(e){return n(qt)}var Bn=Ln({history:an(),routes:[{path:`/`,name:`chat`,component:()=>O(()=>import(`./ChatView-CaO-j1NR.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21]))},{path:`/jobs`,name:`jobs`,component:()=>O(()=>import(`./JobsView-t5o1pB0r.js`),__vite__mapDeps([22,1,2,4,23,12,9,13,15,14,24,25,26,16,18,19,27,20,5,28,6,29]))},{path:`/models`,name:`models`,component:()=>O(()=>import(`./ModelsView-DvK44HBy.js`),__vite__mapDeps([30,1,2,23,12,9,13,15,14,24,25,16,18,19,27,5,8,6,31]))},{path:`/logs`,name:`logs`,component:()=>O(()=>import(`./LogsView-QqOV3ZEf.js`),__vite__mapDeps([32,1,2,14,24,9,12,13,25,18,19,27,6,33]))},{path:`/usage`,name:`usage`,component:()=>O(()=>import(`./UsageView-COiUupLe.js`),__vite__mapDeps([34,1,2,14,5,7,6,35]))},{path:`/skills`,name:`skills`,component:()=>O(()=>import(`./SkillsView-_z2SQ9kJ.js`),__vite__mapDeps([36,1,2,10,11,16,9,37,6,38]))},{path:`/memory`,name:`memory`,component:()=>O(()=>import(`./MemoryView-oeAn8ZfB.js`),__vite__mapDeps([39,1,2,10,11,14,18,19,37,6,40]))},{path:`/settings`,name:`settings`,component:()=>O(()=>import(`./SettingsView-CK9ArFcg.js`),__vite__mapDeps([41,1,2,9,12,13,24,25,14,26,16,17,18,19,27,42,5,6,43,44]))},{path:`/channels`,name:`channels`,component:()=>O(()=>import(`./ChannelsView-BGXB46ZU.js`),__vite__mapDeps([45,1,2,14,16,9,18,19,27,13,42,5,6,43,25,46]))}]}),Vn={common:{loading:`Loading...`,cancel:`Cancel`,delete:`Delete`,edit:`Edit`,save:`Save`,saved:`Saved`,update:`Update`,create:`Create`,saveFailed:`Save failed`,ok:`OK`,copied:`Copied`,copy:`Copy`,noData:`No data`,fetch:`Fetch`,add:`Add`,enable:`Enable`,disable:`Disable`,configured:`Configured`,notConfigured:`Not configured`},sidebar:{chat:`Chat`,jobs:`Jobs`,models:`Models`,skills:`Skills`,memory:`Memory`,logs:`Logs`,usage:`Usage`,channels:`Channels`,settings:`Settings`,connected:`Connected`,disconnected:`Disconnected`},chat:{emptyState:`Start a conversation with Hermes Agent`,inputPlaceholder:`Type a message... (Enter to send, Shift+Enter for new line)`,attachFiles:`Attach files`,stop:`Stop`,send:`Send`,contextUsed:`Context used:`,sessions:`Sessions`,noSessions:`No sessions`,newChat:`New Chat`,deleteSession:`Delete this session?`,sessionDeleted:`Session deleted`,rename:`Rename`,copySessionId:`Copy Session ID`,renamed:`Renamed`,renameFailed:`Rename failed`,renameSession:`Rename Session`,enterNewTitle:`Enter new title`,other:`Other`,runFailed:`Run failed`,tool:`Tool`,error:`error`,arguments:`Arguments`,result:`Result`,truncated:`... (truncated)`},jobs:{title:`Scheduled Jobs`,createJob:`Create Job`,editJob:`Edit Job`,noJobs:`No scheduled jobs yet. Create one to get started.`,name:`Name`,namePlaceholder:`Job name`,schedule:`Schedule (Cron Expression)`,schedulePlaceholder:`e.g. 0 9 * * *`,quickPresets:`Quick Presets`,selectPreset:`Select a preset...`,presetEveryMinute:`Every minute`,presetEvery5Min:`Every 5 minutes`,presetEveryHour:`Every hour`,presetEveryDay:`Every day at 00:00`,presetEveryDay9:`Every day at 09:00`,presetEveryMonday:`Every Monday at 09:00`,presetEveryMonth:`Every month 1st at 09:00`,prompt:`Prompt`,promptPlaceholder:`The prompt to execute`,deliverTarget:`Deliver Target`,origin:`Origin`,local:`Local`,repeatCount:`Repeat Count (optional)`,repeatPlaceholder:`Leave empty for infinite`,jobCreated:`Job created`,jobUpdated:`Job updated`,nameRequired:`Name is required`,scheduleRequired:`Schedule is required`,loadFailed:`Failed to load job`,jobPaused:`Job paused`,jobResumed:`Job resumed`,jobTriggered:`Job triggered`,jobDeleted:`Job deleted`,status:{running:`Running`,paused:`Paused`,disabled:`Disabled`,scheduled:`Scheduled`},info:{schedule:`Schedule`,lastRun:`Last Run`,nextRun:`Next Run`,deliver:`Deliver`,repeat:`Repeat`},action:{pause:`Pause`,pauseJob:`Pause job`,resume:`Resume`,resumeJob:`Resume job`,runNow:`Run Now`,triggerImmediately:`Trigger immediately`}},skills:{title:`Skills`,searchPlaceholder:`Search skills...`,noMatch:`No skills match your search`,noSkills:`No skills found`,backTo:`Back to`,attachedFiles:`Attached Files`,loadFailed:`Failed to load skill`,fileLoadFailed:`Failed to load file`},memory:{title:`Memory`,refresh:`Refresh`,loadFailed:`Failed to load memory`,myNotes:`My Notes`,noNotes:`No notes yet.`,notesPlaceholder:`Write your notes...`,userProfile:`User Profile`,noProfile:`No profile yet.`,profilePlaceholder:`Write your profile...`},models:{title:`Models`,addProvider:`Add Provider`,providerType:`Provider Type`,preset:`Preset`,custom:`Custom`,selectProvider:`Select Provider`,chooseProvider:`Choose a provider...`,name:`Name`,autoGeneratedName:`Auto-generated from Base URL`,baseUrl:`Base URL`,baseUrlPlaceholder:`e.g. https://api.example.com/v1`,apiKey:`API Key`,apiKeyPlaceholder:`sk-...`,defaultModel:`Default Model`,selectModel:`Select a model...`,providerAdded:`Provider added`,providerDeleted:`Provider deleted`,deleteProvider:`Delete Provider`,deleteConfirm:`Are you sure you want to delete "{name}"?`,noProviders:`No providers found. Add a custom provider to get started.`,builtIn:`Built-in`,customType:`Custom`,provider:`Provider`,local:`Local ({host})`,selectProviderRequired:`Please select a provider`,baseUrlRequired:`Base URL is required`,apiKeyRequired:`API Key is required`,modelRequired:`Default Model is required`,enterBaseUrl:`Please enter Base URL first`,unexpectedFormat:`Unexpected response format`,foundModels:`Found {count} models`,fetchFailed:`Failed to fetch models`},logs:{title:`Logs`,all:`All`,searchPlaceholder:`Search...`,refresh:`Refresh`,noEntries:`No log entries`},settings:{title:`Settings`,saved:`Saved`,saveFailed:`Save failed`,tabs:{display:`Display`,agent:`Agent`,memory:`Memory`,session:`Session`,privacy:`Privacy`,apiServer:`API Server`},display:{streaming:`Stream Responses`,streamingHint:`Show AI replies in real-time`,compact:`Compact Mode`,compactHint:`Reduce message spacing`,showReasoning:`Show Reasoning`,showReasoningHint:`Show model thinking process`,showCost:`Show Cost`,showCostHint:`Show token usage in replies`,inlineDiffs:`Inline Diffs`,inlineDiffsHint:`Show code changes inline`,bellOnComplete:`Completion Sound`,bellOnCompleteHint:`Play sound when AI finishes`,busyInputMode:`Busy Input Mode`,busyInputModeHint:`Allow input while AI is processing`},agent:{maxTurns:`Max Turns`,maxTurnsHint:`Maximum interaction rounds per conversation`,gatewayTimeout:`Gateway Timeout`,gatewayTimeoutHint:`Request timeout in seconds`,restartDrainTimeout:`Restart Drain Timeout`,restartDrainTimeoutHint:`Drain timeout before restart in seconds`,toolEnforcement:`Tool Enforcement`,toolEnforcementHint:`Control tool call execution mode`,auto:`Auto`,always:`Always`,never:`Never`},memory:{enabled:`Enable Memory`,enabledHint:`Allow AI to remember conversation context`,userProfile:`User Profile`,userProfileHint:`Allow AI to remember user preferences`,charLimit:`Memory Char Limit`,charLimitHint:`Max characters for MEMORY.md`,userCharLimit:`User Profile Char Limit`,userCharLimitHint:`Max characters for USER.md`},session:{mode:`Reset Mode`,modeHint:`Trigger condition for session reset`,modeBoth:`Idle + Scheduled`,modeIdle:`Idle Only`,modeHourly:`Scheduled Only`,idleMinutes:`Idle Timeout`,idleMinutesHint:`Wait time before auto-reset (minutes)`,atHour:`Scheduled Reset Time`,atHourHint:`Reset session at this hour daily`},privacy:{redactPii:`Redact PII`,redactPiiHint:`Auto-detect and hide sensitive info (passwords, keys, etc.)`},apiServer:{enable:`Enable`,enableHint:`Enable API server`,host:`Host`,hostHint:`Listen address`,port:`Port`,portHint:`Listen port`,key:`Key`,keyHint:`API access key`,cors:`CORS Origins`,corsHint:`Allowed cross-origin sources`}},platform:{requireMention:`Require {'@'}Mention`,requireMentionGroup:`Require {'@'}mention in groups to respond`,requireMentionChannel:`Require {'@'}mention in channels to respond`,requireMentionRoom:`Require {'@'}mention in rooms to respond`,reactions:`Reactions`,reactionsHint:`React to messages with emoji`,freeResponseChats:`Free Response Chats`,freeResponseChatsHint:`Chat IDs that respond without {'@'}mention (comma-separated)`,freeResponseChannels:`Free Response Channels`,freeResponseChannelsHint:`Channel IDs that respond without {'@'}mention (comma-separated)`,freeResponseRooms:`Free Response Rooms`,freeResponseRoomsHint:`Room IDs that respond without {'@'}mention (comma-separated)`,mentionPatterns:`Custom Mention Patterns`,mentionPatternsHint:`Additional trigger patterns`,autoThread:`Auto Thread`,autoThreadHint:`Auto-create reply threads after {'@'}mention`,autoThreadHintRoom:`Auto-create reply threads in rooms`,dmMentionThreads:`DM Mention Threads`,dmMentionThreadsHint:`Use thread replies for mentions in DMs`,allowBots:`Allow Bot Messages`,allowBotsHint:`Respond to messages from other bots`,allowedChannels:`Allowed Channels`,allowedChannelsHint:`Whitelist channel IDs (comma-separated)`,ignoredChannels:`Ignored Channels`,ignoredChannelsHint:`Channels where bot never responds (comma-separated)`,noThreadChannels:`No-Thread Channels`,noThreadChannelsHint:`Channels where bot responds without threads (comma-separated)`,botToken:`Bot Token`,botTokenHint:`Bot token from developer portal`,accessToken:`Access Token`,accessTokenHint:`Matrix access token`,homeserver:`Homeserver URL`,homeserverHint:`Matrix homeserver URL`,appId:`App ID`,appIdHint:`Feishu App ID`,appSecret:`App Secret`,appSecretHint:`Feishu App Secret`,clientId:`Client ID`,clientIdHint:`DingTalk Client ID`,clientSecret:`Client Secret`,clientSecretHint:`DingTalk Client Secret`,botId:`Bot ID`,botIdHint:`WeCom Bot ID`,wecomSecretHint:`WeCom Bot Secret`,waEnabled:`Enable WhatsApp`,waEnabledHint:`Enable WhatsApp via QR code pairing`,weixinToken:`Weixin Token`,weixinTokenHint:`From weixin CLI QR login (hermes weixin)`,accountId:`Account ID`,accountIdHint:`Weixin account ID`,qrLogin:`QR Login`,qrRelogin:`Re-login`,qrFetching:`Fetching QR code...`,qrScanHint:`Scan with WeChat to login`,qrScanedHint:`Scaned, please confirm on phone...`},language:{label:`Language`,zh:`中文`,en:`English`},usage:{title:`Usage Statistics`,refresh:`Refresh`,totalTokens:`Total Tokens`,inputTokens:`Input`,outputTokens:`Output`,totalSessions:`Total Sessions`,avgPerDay:`~{n}/day avg`,estimatedCost:`Est. Cost`,cacheHitRate:`Cache Hit Rate`,modelBreakdown:`Model Breakdown`,dailyTrend:`Daily Usage (Last 30 Days)`,date:`Date`,tokens:`Tokens`,cache:`Cache`,sessions:`Sessions`,cost:`Cost`,noData:`No usage data`}},Hn={common:{loading:`加载中...`,cancel:`取消`,delete:`删除`,edit:`编辑`,save:`保存`,saved:`已保存`,saveFailed:`保存失败`,ok:`确定`,copied:`已复制`,copy:`复制`,update:`更新`,create:`创建`,noData:`暂无数据`,fetch:`获取`,add:`添加`,enable:`启用`,disable:`禁用`,configured:`已配置`,notConfigured:`未配置`},sidebar:{chat:`对话`,jobs:`任务`,models:`模型`,skills:`技能`,memory:`记忆`,logs:`日志`,usage:`用量`,channels:`频道`,settings:`设置`,connected:`已连接`,disconnected:`未连接`},chat:{emptyState:`开始与 Hermes Agent 对话`,inputPlaceholder:`输入消息... (Enter 发送,Shift+Enter 换行)`,attachFiles:`添加附件`,stop:`停止`,send:`发送`,contextUsed:`上下文已用:`,sessions:`会话`,noSessions:`暂无会话`,newChat:`新建对话`,deleteSession:`确定删除此会话?`,sessionDeleted:`会话已删除`,rename:`重命名`,copySessionId:`复制会话 ID`,renamed:`已重命名`,renameFailed:`重命名失败`,renameSession:`重命名会话`,enterNewTitle:`输入新标题`,other:`其他`,runFailed:`运行失败`,tool:`工具`,error:`错误`,arguments:`参数`,result:`结果`,truncated:`... (已截断)`},jobs:{title:`定时任务`,createJob:`创建任务`,editJob:`编辑任务`,noJobs:`暂无定时任务,创建一个开始吧。`,name:`名称`,namePlaceholder:`任务名称`,schedule:`调度表达式 (Cron)`,schedulePlaceholder:`例如 0 9 * * *`,quickPresets:`快速预设`,selectPreset:`选择预设...`,presetEveryMinute:`每分钟`,presetEvery5Min:`每 5 分钟`,presetEveryHour:`每小时`,presetEveryDay:`每天 00:00`,presetEveryDay9:`每天 09:00`,presetEveryMonday:`每周一 09:00`,presetEveryMonth:`每月 1 日 09:00`,prompt:`提示词`,promptPlaceholder:`要执行的内容`,deliverTarget:`投递目标`,origin:`来源`,local:`本地`,repeatCount:`重复次数(可选)`,repeatPlaceholder:`留空表示无限重复`,jobCreated:`任务已创建`,jobUpdated:`任务已更新`,nameRequired:`名称为必填项`,scheduleRequired:`调度表达式为必填项`,loadFailed:`加载任务失败`,jobPaused:`任务已暂停`,jobResumed:`任务已恢复`,jobTriggered:`任务已触发`,jobDeleted:`任务已删除`,status:{running:`运行中`,paused:`已暂停`,disabled:`已禁用`,scheduled:`已调度`},info:{schedule:`调度`,lastRun:`上次运行`,nextRun:`下次运行`,deliver:`投递`,repeat:`重复`},action:{pause:`暂停`,pauseJob:`暂停任务`,resume:`恢复`,resumeJob:`恢复任务`,runNow:`立即运行`,triggerImmediately:`立即触发`}},skills:{title:`技能`,searchPlaceholder:`搜索技能...`,noMatch:`没有匹配的技能`,noSkills:`暂无技能`,backTo:`返回`,attachedFiles:`附件文件`,loadFailed:`加载技能失败`,fileLoadFailed:`加载文件失败`},memory:{title:`记忆`,refresh:`刷新`,loadFailed:`加载记忆失败`,myNotes:`我的笔记`,noNotes:`暂无笔记。`,notesPlaceholder:`输入笔记内容...`,userProfile:`用户画像`,noProfile:`暂无画像。`,profilePlaceholder:`输入用户画像...`},models:{title:`模型`,addProvider:`添加 Provider`,providerType:`Provider 类型`,preset:`预设`,custom:`自定义`,selectProvider:`选择 Provider`,chooseProvider:`选择一个 provider...`,name:`名称`,autoGeneratedName:`根据 Base URL 自动生成`,baseUrl:`Base URL`,baseUrlPlaceholder:`例如 https://api.example.com/v1`,apiKey:`API Key`,apiKeyPlaceholder:`sk-...`,defaultModel:`默认模型`,selectModel:`选择模型...`,providerAdded:`Provider 已添加`,providerDeleted:`Provider 已删除`,deleteProvider:`删除 Provider`,deleteConfirm:`确定删除 "{name}" 吗?`,noProviders:`暂无 Provider,添加一个开始吧。`,builtIn:`内置`,customType:`自定义`,provider:`Provider`,local:`本地 ({host})`,selectProviderRequired:`请选择 Provider`,baseUrlRequired:`Base URL 为必填项`,apiKeyRequired:`API Key 为必填项`,modelRequired:`默认模型为必填项`,enterBaseUrl:`请先输入 Base URL`,unexpectedFormat:`响应格式异常`,foundModels:`找到 {count} 个模型`,fetchFailed:`获取模型失败`},logs:{title:`日志`,all:`全部`,searchPlaceholder:`搜索...`,refresh:`刷新`,noEntries:`暂无日志`},settings:{title:`设置`,saved:`已保存`,saveFailed:`保存失败`,tabs:{display:`显示`,agent:`代理`,memory:`记忆`,session:`会话`,privacy:`隐私`,apiServer:`API 服务器`},display:{streaming:`流式响应`,streamingHint:`实时显示 AI 回复`,compact:`紧凑模式`,compactHint:`减少消息间距`,showReasoning:`显示推理过程`,showReasoningHint:`展示模型思考过程`,showCost:`显示费用`,showCostHint:`在回复中显示 token 使用量`,inlineDiffs:`内联差异`,inlineDiffsHint:`代码变更以内联方式显示`,bellOnComplete:`完成提示音`,bellOnCompleteHint:`AI 回复完成时播放提示音`,busyInputMode:`忙碌输入模式`,busyInputModeHint:`AI 处理中仍可输入`},agent:{maxTurns:`最大轮次`,maxTurnsHint:`单次对话最大交互轮数`,gatewayTimeout:`网关超时`,gatewayTimeoutHint:`单次请求超时时间(秒)`,restartDrainTimeout:`重启排空超时`,restartDrainTimeoutHint:`重启前排空请求的超时时间(秒)`,toolEnforcement:`工具执行策略`,toolEnforcementHint:`控制工具调用的执行模式`,auto:`自动`,always:`始终`,never:`从不`},memory:{enabled:`启用记忆`,enabledHint:`允许 AI 记住对话上下文`,userProfile:`用户画像`,userProfileHint:`允许 AI 记住用户偏好信息`,charLimit:`记忆字符上限`,charLimitHint:`MEMORY.md 最大字符数`,userCharLimit:`用户画像字符上限`,userCharLimitHint:`USER.md 最大字符数`},session:{mode:`重置模式`,modeHint:`会话重置的触发条件`,modeBoth:`空闲 + 定时`,modeIdle:`仅空闲`,modeHourly:`仅定时`,idleMinutes:`空闲超时`,idleMinutesHint:`无操作后自动重置的等待时间(分钟)`,atHour:`定时重置时间`,atHourHint:`每天在指定小时重置会话`},privacy:{redactPii:`脱敏 PII`,redactPiiHint:`自动检测并隐藏敏感信息(密码、密钥等)`},apiServer:{enable:`启用`,enableHint:`启用 API 服务器`,host:`主机`,hostHint:`监听地址`,port:`端口`,portHint:`监听端口`,key:`密钥`,keyHint:`API 访问密钥`,cors:`CORS 来源`,corsHint:`允许的跨域来源`}},platform:{requireMention:`需要 {'@'}提及`,requireMentionGroup:`群组中需要 {'@'}机器人 才会响应`,requireMentionChannel:`频道中需要 {'@'}机器人 才会响应`,requireMentionRoom:`房间中需要 {'@'}机器人 才会响应`,reactions:`表情回应`,reactionsHint:`对消息添加表情回应`,freeResponseChats:`自由响应聊天`,freeResponseChatsHint:`不需要 {'@'}提及即响应的聊天 ID(逗号分隔)`,freeResponseChannels:`自由响应频道`,freeResponseChannelsHint:`不需要 {'@'}提及即响应的频道 ID(逗号分隔)`,freeResponseRooms:`自由响应房间`,freeResponseRoomsHint:`不需要 {'@'}提及即响应的房间 ID(逗号分隔)`,mentionPatterns:`自定义提及模式`,mentionPatternsHint:`额外的触发模式列表`,autoThread:`自动创建线程`,autoThreadHint:`{'@'}提及 后自动创建回复线程`,autoThreadHintRoom:`在房间中自动创建回复线程`,dmMentionThreads:`DM 提及线程`,dmMentionThreadsHint:`在私聊中也使用线程回复提及`,allowBots:`允许机器人消息`,allowBotsHint:`响应其他机器人发送的消息`,allowedChannels:`允许的频道`,allowedChannelsHint:`白名单频道 ID(逗号分隔)`,ignoredChannels:`忽略的频道`,ignoredChannelsHint:`不响应的频道 ID(逗号分隔)`,noThreadChannels:`无线程频道`,noThreadChannelsHint:`不创建线程的频道 ID(逗号分隔)`,botToken:`Bot Token`,botTokenHint:`开发者门户获取的 Bot Token`,accessToken:`Access Token`,accessTokenHint:`Matrix Access Token`,homeserver:`Homeserver URL`,homeserverHint:`Matrix 服务器地址`,appId:`App ID`,appIdHint:`飞书 App ID`,appSecret:`App Secret`,appSecretHint:`飞书 App Secret`,clientId:`Client ID`,clientIdHint:`钉钉 Client ID`,clientSecret:`Client Secret`,clientSecretHint:`钉钉 Client Secret`,botId:`Bot ID`,botIdHint:`企业微信 Bot ID`,wecomSecretHint:`企业微信 Bot Secret`,waEnabled:`启用 WhatsApp`,waEnabledHint:`通过二维码配对启用 WhatsApp`,weixinToken:`微信 Token`,weixinTokenHint:`通过 weixin CLI 扫码登录获取 (hermes weixin)`,accountId:`Account ID`,accountIdHint:`微信 Account ID`,qrLogin:`扫码登录`,qrRelogin:`重新登录`,qrFetching:`正在获取二维码...`,qrScanHint:`使用微信扫描二维码登录`,qrScanedHint:`已扫描,请在手机上确认...`},language:{label:`语言`,zh:`中文`,en:`English`},usage:{title:`用量统计`,refresh:`刷新`,totalTokens:`总 Token 数`,inputTokens:`输入`,outputTokens:`输出`,totalSessions:`总会话数`,avgPerDay:`日均 ~{n}`,estimatedCost:`预估费用`,cacheHitRate:`缓存命中率`,modelBreakdown:`模型分布`,dailyTrend:`每日用量(近 30 天)`,date:`日期`,tokens:`Token`,cache:`缓存`,sessions:`会话`,cost:`费用`,noData:`暂无用量数据`}},Un=localStorage.getItem(`hermes_locale`),Wn=navigator.language.slice(0,2),Gn=oe({legacy:!1,locale:Un||(Wn===`zh`?`zh`:`en`),fallbackLocale:`en`,messages:{en:Vn,zh:Hn}}),{cubicBezierEaseInOut:$,cubicBezierEaseOut:Kn,cubicBezierEaseIn:qn}=ce;function Jn({overflow:e=`hidden`,duration:t=`.3s`,originalTransition:n=``,leavingDelay:r=`0s`,foldPadding:i=!1,enterToProps:a=void 0,leaveToProps:o=void 0,reverse:s=!1}={}){let c=s?`leave`:`enter`,l=s?`enter`:`leave`;return[F(`&.fade-in-height-expand-transition-${l}-from,
|
|
3
|
-
&.fade-in-height-expand-transition-${c}-to`,Object.assign(Object.assign({},a),{opacity:1})),F(`&.fade-in-height-expand-transition-${l}-to,
|
|
4
|
-
&.fade-in-height-expand-transition-${c}-from`,Object.assign(Object.assign({},o),{opacity:0,marginTop:`0 !important`,marginBottom:`0 !important`,paddingTop:i?`0 !important`:void 0,paddingBottom:i?`0 !important`:void 0})),F(`&.fade-in-height-expand-transition-${l}-active`,`
|
|
5
|
-
overflow: ${e};
|
|
6
|
-
transition:
|
|
7
|
-
max-height ${t} ${$} ${r},
|
|
8
|
-
opacity ${t} ${Kn} ${r},
|
|
9
|
-
margin-top ${t} ${$} ${r},
|
|
10
|
-
margin-bottom ${t} ${$} ${r},
|
|
11
|
-
padding-top ${t} ${$} ${r},
|
|
12
|
-
padding-bottom ${t} ${$} ${r}
|
|
13
|
-
${n?`,${n}`:``}
|
|
14
|
-
`),F(`&.fade-in-height-expand-transition-${c}-active`,`
|
|
15
|
-
overflow: ${e};
|
|
16
|
-
transition:
|
|
17
|
-
max-height ${t} ${$},
|
|
18
|
-
opacity ${t} ${qn},
|
|
19
|
-
margin-top ${t} ${$},
|
|
20
|
-
margin-bottom ${t} ${$},
|
|
21
|
-
padding-top ${t} ${$},
|
|
22
|
-
padding-bottom ${t} ${$}
|
|
23
|
-
${n?`,${n}`:``}
|
|
24
|
-
`)]}var Yn=c({name:`ConfigProvider`,alias:[`App`],props:{abstract:Boolean,bordered:{type:Boolean,default:void 0},clsPrefix:String,locale:Object,dateLocale:Object,namespace:String,rtl:Array,tag:{type:String,default:`div`},hljs:Object,katex:Object,theme:Object,themeOverrides:Object,componentOptions:Object,icons:Object,breakpoints:Object,preflightStyleDisabled:Boolean,styleMountTarget:Object,inlineThemeDisabled:{type:Boolean,default:void 0},as:{type:String,validator:()=>(ae(`config-provider`,"`as` is deprecated, please use `tag` instead."),!0),default:void 0}},setup(e){let t=n(ie,null),r=b(()=>{let{theme:n}=e;if(n===null)return;let r=t?.mergedThemeRef.value;return n===void 0?r:r===void 0?n:Object.assign({},r,n)}),i=b(()=>{let{themeOverrides:n}=e;if(n!==null){if(n===void 0)return t?.mergedThemeOverridesRef.value;{let e=t?.mergedThemeOverridesRef.value;return e===void 0?n:fe({},e,n)}}}),a=ge(()=>{let{namespace:n}=e;return n===void 0?t?.mergedNamespaceRef.value:n}),s=ge(()=>{let{bordered:n}=e;return n===void 0?t?.mergedBorderedRef.value:n}),c=b(()=>{let{icons:n}=e;return n===void 0?t?.mergedIconsRef.value:n}),l=b(()=>{let{componentOptions:n}=e;return n===void 0?t?.mergedComponentPropsRef.value:n}),u=b(()=>{let{clsPrefix:n}=e;return n===void 0?t?t.mergedClsPrefixRef.value:`n`:n}),f=b(()=>{var n;let{rtl:r}=e;if(r===void 0)return t?.mergedRtlRef.value;let i={};for(let e of r)i[e.name]=d(e),(n=e.peers)==null||n.forEach(e=>{e.name in i||(i[e.name]=d(e))});return i}),p=b(()=>e.breakpoints||t?.mergedBreakpointsRef.value),m=e.inlineThemeDisabled||t?.inlineThemeDisabled,h=e.preflightStyleDisabled||t?.preflightStyleDisabled,g=e.styleMountTarget||t?.styleMountTarget;return o(ie,{mergedThemeHashRef:b(()=>{let{value:e}=r,{value:t}=i,n=t&&Object.keys(t).length!==0,a=e?.name;return a?n?`${a}-${ue(JSON.stringify(i.value))}`:a:n?ue(JSON.stringify(i.value)):``}),mergedBreakpointsRef:p,mergedRtlRef:f,mergedIconsRef:c,mergedComponentPropsRef:l,mergedBorderedRef:s,mergedNamespaceRef:a,mergedClsPrefixRef:u,mergedLocaleRef:b(()=>{let{locale:n}=e;if(n!==null)return n===void 0?t?.mergedLocaleRef.value:n}),mergedDateLocaleRef:b(()=>{let{dateLocale:n}=e;if(n!==null)return n===void 0?t?.mergedDateLocaleRef.value:n}),mergedHljsRef:b(()=>{let{hljs:n}=e;return n===void 0?t?.mergedHljsRef.value:n}),mergedKatexRef:b(()=>{let{katex:n}=e;return n===void 0?t?.mergedKatexRef.value:n}),mergedThemeRef:r,mergedThemeOverridesRef:i,inlineThemeDisabled:m||!1,preflightStyleDisabled:h||!1,styleMountTarget:g}),{mergedClsPrefix:u,mergedBordered:s,mergedNamespace:a,mergedTheme:r,mergedThemeOverrides:i}},render(){var e,t;return this.abstract?(t=this.$slots).default?.call(t):T(this.as||this.tag,{class:`${this.mergedClsPrefix||`n`}-config-provider`},(e=this.$slots).default?.call(e))}}),Xn=Object.assign(Object.assign({},Oe),{onAfterEnter:Function,onAfterLeave:Function,transformOrigin:String,blockScroll:{type:Boolean,default:!0},closeOnEsc:{type:Boolean,default:!0},onEsc:Function,autoFocus:{type:Boolean,default:!0},internalStyle:[String,Object],maskClosable:{type:Boolean,default:!0},zIndex:Number,onPositiveClick:Function,onNegativeClick:Function,onClose:Function,onMaskClick:Function,draggable:[Boolean,Object]}),Zn=c({name:`DialogEnvironment`,props:Object.assign(Object.assign({},Xn),{internalKey:{type:String,required:!0},to:[String,Object],onInternalAfterLeave:{type:Function,required:!0}}),setup(t){let n=e(!0);function r(){let{onInternalAfterLeave:e,internalKey:n,onAfterLeave:r}=t;e&&e(n),r&&r()}function i(e){let{onPositiveClick:n}=t;n?Promise.resolve(n(e)).then(e=>{e!==!1&&l()}):l()}function a(e){let{onNegativeClick:n}=t;n?Promise.resolve(n(e)).then(e=>{e!==!1&&l()}):l()}function o(){let{onClose:e}=t;e?Promise.resolve(e()).then(e=>{e!==!1&&l()}):l()}function s(e){let{onMaskClick:n,maskClosable:r}=t;n&&(n(e),r&&l())}function c(){let{onEsc:e}=t;e&&e()}function l(){n.value=!1}function u(e){n.value=e}return{show:n,hide:l,handleUpdateShow:u,handleAfterLeave:r,handleCloseClick:o,handleNegativeClick:a,handlePositiveClick:i,handleMaskClick:s,handleEsc:c}},render(){let{handlePositiveClick:e,handleUpdateShow:t,handleNegativeClick:n,handleCloseClick:r,handleAfterLeave:i,handleMaskClick:a,handleEsc:o,to:s,zIndex:c,maskClosable:l,show:u}=this;return T(Ie,{show:u,onUpdateShow:t,onMaskClick:a,onEsc:o,to:s,zIndex:c,maskClosable:l,onAfterEnter:this.onAfterEnter,onAfterLeave:i,closeOnEsc:this.closeOnEsc,blockScroll:this.blockScroll,autoFocus:this.autoFocus,transformOrigin:this.transformOrigin,draggable:this.draggable,internalAppear:!0,internalDialog:!0},{default:({draggableClass:t})=>T(je,Object.assign({},ye(this.$props,Pe),{titleClass:S([this.titleClass,t]),style:this.internalStyle,onClose:r,onNegativeClick:n,onPositiveClick:e}))})}}),Qn=c({name:`DialogProvider`,props:{injectionKey:String,to:[String,Object]},setup(){let t=e([]),n={};function r(e={}){let r=ve(),i=f(Object.assign(Object.assign({},e),{key:r,destroy:()=>{var e;(e=n[`n-dialog-${r}`])==null||e.hide()}}));return t.value.push(i),i}let i=[`info`,`success`,`warning`,`error`].map(e=>t=>r(Object.assign(Object.assign({},t),{type:e})));function a(e){let{value:n}=t;n.splice(n.findIndex(t=>t.key===e),1)}function s(){Object.values(n).forEach(e=>{e?.hide()})}let c={create:r,destroyAll:s,info:i[0],success:i[1],warning:i[2],error:i[3]};return o(we,c),o(Me,{clickedRef:Ne(64),clickedPositionRef:Ae()}),o(Fe,t),Object.assign(Object.assign({},c),{dialogList:t,dialogInstRefs:n,handleAfterLeave:a})},render(){var e;return T(C,null,[this.dialogList.map(e=>T(Zn,Ve(e,[`destroy`,`style`],{internalStyle:e.style,to:this.to,ref:t=>{t===null?delete this.dialogInstRefs[`n-dialog-${e.key}`]:this.dialogInstRefs[`n-dialog-${e.key}`]=t},internalKey:e.key,onInternalAfterLeave:this.handleAfterLeave}))),(e=this.$slots).default?.call(e)])}}),$n={margin:`0 0 8px 0`,padding:`10px 20px`,maxWidth:`720px`,minWidth:`420px`,iconMargin:`0 10px 0 0`,closeMargin:`0 0 0 10px`,closeSize:`20px`,closeIconSize:`16px`,iconSize:`20px`,fontSize:`14px`};function er(e){let{textColor2:t,closeIconColor:n,closeIconColorHover:r,closeIconColorPressed:i,infoColor:a,successColor:o,errorColor:s,warningColor:c,popoverColor:l,boxShadow2:u,primaryColor:d,lineHeight:f,borderRadius:p,closeColorHover:m,closeColorPressed:h}=e;return Object.assign(Object.assign({},$n),{closeBorderRadius:p,textColor:t,textColorInfo:t,textColorSuccess:t,textColorError:t,textColorWarning:t,textColorLoading:t,color:l,colorInfo:l,colorSuccess:l,colorError:l,colorWarning:l,colorLoading:l,boxShadow:u,boxShadowInfo:u,boxShadowSuccess:u,boxShadowError:u,boxShadowWarning:u,boxShadowLoading:u,iconColor:t,iconColorInfo:a,iconColorSuccess:o,iconColorWarning:c,iconColorError:s,iconColorLoading:d,closeColorHover:m,closeColorPressed:h,closeIconColor:n,closeIconColorHover:r,closeIconColorPressed:i,closeColorHoverInfo:m,closeColorPressedInfo:h,closeIconColorInfo:n,closeIconColorHoverInfo:r,closeIconColorPressedInfo:i,closeColorHoverSuccess:m,closeColorPressedSuccess:h,closeIconColorSuccess:n,closeIconColorHoverSuccess:r,closeIconColorPressedSuccess:i,closeColorHoverError:m,closeColorPressedError:h,closeIconColorError:n,closeIconColorHoverError:r,closeIconColorPressedError:i,closeColorHoverWarning:m,closeColorPressedWarning:h,closeIconColorWarning:n,closeIconColorHoverWarning:r,closeIconColorPressedWarning:i,closeColorHoverLoading:m,closeColorPressedLoading:h,closeIconColorLoading:n,closeIconColorHoverLoading:r,closeIconColorPressedLoading:i,loadingColor:d,lineHeight:f,borderRadius:p,border:`0`})}var tr={name:`Message`,common:pe,self:er},nr={icon:Function,type:{type:String,default:`info`},content:[String,Number,Function],showIcon:{type:Boolean,default:!0},closable:Boolean,keepAliveOnHover:Boolean,spinProps:Object,onClose:Function,onMouseenter:Function,onMouseleave:Function},rr=F([I(`message-wrapper`,`
|
|
25
|
-
margin: var(--n-margin);
|
|
26
|
-
z-index: 0;
|
|
27
|
-
transform-origin: top center;
|
|
28
|
-
display: flex;
|
|
29
|
-
`,[Jn({overflow:`visible`,originalTransition:`transform .3s var(--n-bezier)`,enterToProps:{transform:`scale(1)`},leaveToProps:{transform:`scale(0.85)`}})]),I(`message`,`
|
|
30
|
-
box-sizing: border-box;
|
|
31
|
-
display: flex;
|
|
32
|
-
align-items: center;
|
|
33
|
-
transition:
|
|
34
|
-
color .3s var(--n-bezier),
|
|
35
|
-
box-shadow .3s var(--n-bezier),
|
|
36
|
-
background-color .3s var(--n-bezier),
|
|
37
|
-
opacity .3s var(--n-bezier),
|
|
38
|
-
transform .3s var(--n-bezier),
|
|
39
|
-
margin-bottom .3s var(--n-bezier);
|
|
40
|
-
padding: var(--n-padding);
|
|
41
|
-
border-radius: var(--n-border-radius);
|
|
42
|
-
border: var(--n-border);
|
|
43
|
-
flex-wrap: nowrap;
|
|
44
|
-
overflow: hidden;
|
|
45
|
-
max-width: var(--n-max-width);
|
|
46
|
-
color: var(--n-text-color);
|
|
47
|
-
background-color: var(--n-color);
|
|
48
|
-
box-shadow: var(--n-box-shadow);
|
|
49
|
-
`,[N(`content`,`
|
|
50
|
-
display: inline-block;
|
|
51
|
-
line-height: var(--n-line-height);
|
|
52
|
-
font-size: var(--n-font-size);
|
|
53
|
-
`),N(`icon`,`
|
|
54
|
-
position: relative;
|
|
55
|
-
margin: var(--n-icon-margin);
|
|
56
|
-
height: var(--n-icon-size);
|
|
57
|
-
width: var(--n-icon-size);
|
|
58
|
-
font-size: var(--n-icon-size);
|
|
59
|
-
flex-shrink: 0;
|
|
60
|
-
`,[[`default`,`info`,`success`,`warning`,`error`,`loading`].map(e=>L(`${e}-type`,[F(`> *`,`
|
|
61
|
-
color: var(--n-icon-color-${e});
|
|
62
|
-
transition: color .3s var(--n-bezier);
|
|
63
|
-
`)])),F(`> *`,`
|
|
64
|
-
position: absolute;
|
|
65
|
-
left: 0;
|
|
66
|
-
top: 0;
|
|
67
|
-
right: 0;
|
|
68
|
-
bottom: 0;
|
|
69
|
-
`,[P()])]),N(`close`,`
|
|
70
|
-
margin: var(--n-close-margin);
|
|
71
|
-
transition:
|
|
72
|
-
background-color .3s var(--n-bezier),
|
|
73
|
-
color .3s var(--n-bezier);
|
|
74
|
-
flex-shrink: 0;
|
|
75
|
-
`,[F(`&:hover`,`
|
|
76
|
-
color: var(--n-close-icon-color-hover);
|
|
77
|
-
`),F(`&:active`,`
|
|
78
|
-
color: var(--n-close-icon-color-pressed);
|
|
79
|
-
`)])]),I(`message-container`,`
|
|
80
|
-
z-index: 6000;
|
|
81
|
-
position: fixed;
|
|
82
|
-
height: 0;
|
|
83
|
-
overflow: visible;
|
|
84
|
-
display: flex;
|
|
85
|
-
flex-direction: column;
|
|
86
|
-
align-items: center;
|
|
87
|
-
`,[L(`top`,`
|
|
88
|
-
top: 12px;
|
|
89
|
-
left: 0;
|
|
90
|
-
right: 0;
|
|
91
|
-
`),L(`top-left`,`
|
|
92
|
-
top: 12px;
|
|
93
|
-
left: 12px;
|
|
94
|
-
right: 0;
|
|
95
|
-
align-items: flex-start;
|
|
96
|
-
`),L(`top-right`,`
|
|
97
|
-
top: 12px;
|
|
98
|
-
left: 0;
|
|
99
|
-
right: 12px;
|
|
100
|
-
align-items: flex-end;
|
|
101
|
-
`),L(`bottom`,`
|
|
102
|
-
bottom: 4px;
|
|
103
|
-
left: 0;
|
|
104
|
-
right: 0;
|
|
105
|
-
justify-content: flex-end;
|
|
106
|
-
`),L(`bottom-left`,`
|
|
107
|
-
bottom: 4px;
|
|
108
|
-
left: 12px;
|
|
109
|
-
right: 0;
|
|
110
|
-
justify-content: flex-end;
|
|
111
|
-
align-items: flex-start;
|
|
112
|
-
`),L(`bottom-right`,`
|
|
113
|
-
bottom: 4px;
|
|
114
|
-
left: 0;
|
|
115
|
-
right: 12px;
|
|
116
|
-
justify-content: flex-end;
|
|
117
|
-
align-items: flex-end;
|
|
118
|
-
`)])]),ir={info:()=>T(Le,null),success:()=>T(ke,null),warning:()=>T(Te,null),error:()=>T(Ee,null),default:()=>null},ar=c({name:`Message`,props:Object.assign(Object.assign({},nr),{render:Function}),setup(e){let{inlineThemeDisabled:t,mergedRtlRef:r}=A(e),{props:i,mergedClsPrefixRef:a}=n(He),o=le(`Message`,r,a),s=M(`Message`,`-message`,rr,tr,i,a),c=b(()=>{let{type:t}=e,{common:{cubicBezierEaseInOut:n},self:{padding:r,margin:i,maxWidth:a,iconMargin:o,closeMargin:c,closeSize:l,iconSize:u,fontSize:d,lineHeight:f,borderRadius:p,border:m,iconColorInfo:h,iconColorSuccess:g,iconColorWarning:_,iconColorError:v,iconColorLoading:y,closeIconSize:ee,closeBorderRadius:b,[j(`textColor`,t)]:x,[j(`boxShadow`,t)]:S,[j(`color`,t)]:te,[j(`closeColorHover`,t)]:C,[j(`closeColorPressed`,t)]:w,[j(`closeIconColor`,t)]:T,[j(`closeIconColorPressed`,t)]:E,[j(`closeIconColorHover`,t)]:D}}=s.value;return{"--n-bezier":n,"--n-margin":i,"--n-padding":r,"--n-max-width":a,"--n-font-size":d,"--n-icon-margin":o,"--n-icon-size":u,"--n-close-icon-size":ee,"--n-close-border-radius":b,"--n-close-size":l,"--n-close-margin":c,"--n-text-color":x,"--n-color":te,"--n-box-shadow":S,"--n-icon-color-info":h,"--n-icon-color-success":g,"--n-icon-color-warning":_,"--n-icon-color-error":v,"--n-icon-color-loading":y,"--n-close-color-hover":C,"--n-close-color-pressed":w,"--n-close-icon-color":T,"--n-close-icon-color-pressed":E,"--n-close-icon-color-hover":D,"--n-line-height":f,"--n-border-radius":p,"--n-border":m}}),l=t?k(`message`,b(()=>e.type[0]),c,{}):void 0;return{mergedClsPrefix:a,rtlEnabled:o,messageProviderProps:i,handleClose(){var t;(t=e.onClose)==null||t.call(e)},cssVars:t?void 0:c,themeClass:l?.themeClass,onRender:l?.onRender,placement:i.placement}},render(){let{render:e,type:t,closable:n,content:r,mergedClsPrefix:i,cssVars:a,themeClass:o,onRender:s,icon:c,handleClose:l,showIcon:u}=this;s?.();let d;return T(`div`,{class:[`${i}-message-wrapper`,o],onMouseenter:this.onMouseenter,onMouseleave:this.onMouseleave,style:[{alignItems:this.placement.startsWith(`top`)?`flex-start`:`flex-end`},a]},e?e(this.$props):T(`div`,{class:[`${i}-message ${i}-message--${t}-type`,this.rtlEnabled&&`${i}-message--rtl`]},(d=or(c,t,i,this.spinProps))&&u?T(`div`,{class:`${i}-message__icon ${i}-message__icon--${t}-type`},T(me,null,{default:()=>d})):null,T(`div`,{class:`${i}-message__content`},R(r)),n?T(Re,{clsPrefix:i,class:`${i}-message__close`,onClick:l,absolute:!0}):null))}});function or(e,t,n,r){if(typeof e==`function`)return e();{let e=t===`loading`?T(de,Object.assign({clsPrefix:n,strokeWidth:24,scale:.85},r)):ir[t]();return e?T(xe,{clsPrefix:n,key:t},{default:()=>e}):null}}var sr=c({name:`MessageEnvironment`,props:Object.assign(Object.assign({},nr),{duration:{type:Number,default:3e3},onAfterLeave:Function,onLeave:Function,internalKey:{type:String,required:!0},onInternalAfterLeave:Function,onHide:Function,onAfterHide:Function}),setup(t){let n=null,r=e(!0);s(()=>{i()});function i(){let{duration:e}=t;e&&(n=window.setTimeout(c,e))}function a(e){e.currentTarget===e.target&&n!==null&&(window.clearTimeout(n),n=null)}function o(e){e.currentTarget===e.target&&i()}function c(){let{onHide:e}=t;r.value=!1,n&&=(window.clearTimeout(n),null),e&&e()}function l(){let{onClose:e}=t;e&&e(),c()}function u(){let{onAfterLeave:e,onInternalAfterLeave:n,onAfterHide:r,internalKey:i}=t;e&&e(),n&&n(i),r&&r()}function d(){c()}return{show:r,hide:c,handleClose:l,handleAfterLeave:u,handleMouseleave:o,handleMouseenter:a,deactivate:d}},render(){return T(Be,{appear:!0,onAfterLeave:this.handleAfterLeave,onLeave:this.onLeave},{default:()=>[this.show?T(ar,{content:this.content,type:this.type,icon:this.icon,showIcon:this.showIcon,closable:this.closable,spinProps:this.spinProps,onClose:this.handleClose,onMouseenter:this.keepAliveOnHover?this.handleMouseenter:void 0,onMouseleave:this.keepAliveOnHover?this.handleMouseleave:void 0}):null]})}}),cr=c({name:`MessageProvider`,props:Object.assign(Object.assign({},M.props),{to:[String,Object],duration:{type:Number,default:3e3},keepAliveOnHover:Boolean,max:Number,placement:{type:String,default:`top`},closable:Boolean,containerClass:String,containerStyle:[String,Object]}),setup(t){let{mergedClsPrefixRef:n}=A(t),r=e([]),i=e({}),a={create(e,t){return s(e,Object.assign({type:`default`},t))},info(e,t){return s(e,Object.assign(Object.assign({},t),{type:`info`}))},success(e,t){return s(e,Object.assign(Object.assign({},t),{type:`success`}))},warning(e,t){return s(e,Object.assign(Object.assign({},t),{type:`warning`}))},error(e,t){return s(e,Object.assign(Object.assign({},t),{type:`error`}))},loading(e,t){return s(e,Object.assign(Object.assign({},t),{type:`loading`}))},destroyAll:l};o(He,{props:t,mergedClsPrefixRef:n}),o(Ue,a);function s(e,n){let a=ve(),o=f(Object.assign(Object.assign({},n),{content:e,key:a,destroy:()=>{var e;(e=i.value[a])==null||e.hide()}})),{max:s}=t;return s&&r.value.length>=s&&r.value.shift(),r.value.push(o),o}function c(e){r.value.splice(r.value.findIndex(t=>t.key===e),1),delete i.value[e]}function l(){Object.values(i.value).forEach(e=>{e.hide()})}return Object.assign({mergedClsPrefix:n,messageRefs:i,messageList:r,handleAfterLeave:c},a)},render(){var e;return T(C,null,(e=this.$slots).default?.call(e),this.messageList.length?T(h,{to:this.to??`body`},T(`div`,{class:[`${this.mergedClsPrefix}-message-container`,`${this.mergedClsPrefix}-message-container--${this.placement}`,this.containerClass],key:`message-container`,style:this.containerStyle},this.messageList.map(e=>T(sr,Object.assign({ref:t=>{t&&(this.messageRefs[e.key]=t)},internalKey:e.key,onInternalAfterLeave:this.handleAfterLeave},Ve(e,[`destroy`],void 0),{duration:e.duration===void 0?this.duration:e.duration,keepAliveOnHover:e.keepAliveOnHover===void 0?this.keepAliveOnHover:e.keepAliveOnHover,closable:e.closable===void 0?this.closable:e.closable}))))):null)}}),lr={closeMargin:`16px 12px`,closeSize:`20px`,closeIconSize:`16px`,width:`365px`,padding:`16px`,titleFontSize:`16px`,metaFontSize:`12px`,descriptionFontSize:`12px`};function ur(e){let{textColor2:t,successColor:n,infoColor:r,warningColor:i,errorColor:a,popoverColor:o,closeIconColor:s,closeIconColorHover:c,closeIconColorPressed:l,closeColorHover:u,closeColorPressed:d,textColor1:f,textColor3:p,borderRadius:m,fontWeightStrong:h,boxShadow2:g,lineHeight:_,fontSize:v}=e;return Object.assign(Object.assign({},lr),{borderRadius:m,lineHeight:_,fontSize:v,headerFontWeight:h,iconColor:t,iconColorSuccess:n,iconColorInfo:r,iconColorWarning:i,iconColorError:a,color:o,textColor:t,closeIconColor:s,closeIconColorHover:c,closeIconColorPressed:l,closeBorderRadius:m,closeColorHover:u,closeColorPressed:d,headerTextColor:f,descriptionTextColor:p,actionTextColor:t,boxShadow:g})}var dr=se({name:`Notification`,common:pe,peers:{Scrollbar:Se},self:ur}),fr=re(`n-notification-provider`),pr=c({name:`NotificationContainer`,props:{scrollable:{type:Boolean,required:!0},placement:{type:String,required:!0}},setup(){let{mergedThemeRef:t,mergedClsPrefixRef:r,wipTransitionCountRef:a}=n(fr),o=e(null);return i(()=>{var e,t;a.value>0?(e=o?.value)==null||e.classList.add(`transitioning`):(t=o?.value)==null||t.classList.remove(`transitioning`)}),{selfRef:o,mergedTheme:t,mergedClsPrefix:r,transitioning:a}},render(){let{$slots:e,scrollable:t,mergedClsPrefix:n,mergedTheme:r,placement:i}=this;return T(`div`,{ref:`selfRef`,class:[`${n}-notification-container`,t&&`${n}-notification-container--scrollable`,`${n}-notification-container--${i}`]},t?T(Ce,{theme:r.peers.Scrollbar,themeOverrides:r.peerOverrides.Scrollbar,contentStyle:{overflow:`hidden`}},e):e)}}),mr={info:()=>T(Le,null),success:()=>T(ke,null),warning:()=>T(Te,null),error:()=>T(Ee,null),default:()=>null},hr={closable:{type:Boolean,default:!0},type:{type:String,default:`default`},avatar:Function,title:[String,Function],description:[String,Function],content:[String,Function],meta:[String,Function],action:[String,Function],onClose:{type:Function,required:!0},keepAliveOnHover:Boolean,onMouseenter:Function,onMouseleave:Function},gr=De(hr),_r=c({name:`Notification`,props:hr,setup(e){let{mergedClsPrefixRef:t,mergedThemeRef:r,props:i}=n(fr),{inlineThemeDisabled:a,mergedRtlRef:o}=A(),s=le(`Notification`,o,t),c=b(()=>{let{type:t}=e,{self:{color:n,textColor:i,closeIconColor:a,closeIconColorHover:o,closeIconColorPressed:s,headerTextColor:c,descriptionTextColor:l,actionTextColor:u,borderRadius:d,headerFontWeight:f,boxShadow:p,lineHeight:m,fontSize:h,closeMargin:g,closeSize:_,width:v,padding:y,closeIconSize:ee,closeBorderRadius:b,closeColorHover:x,closeColorPressed:S,titleFontSize:te,metaFontSize:C,descriptionFontSize:w,[j(`iconColor`,t)]:T},common:{cubicBezierEaseOut:E,cubicBezierEaseIn:D,cubicBezierEaseInOut:ne}}=r.value,{left:O,right:re,top:k,bottom:ie}=be(y);return{"--n-color":n,"--n-font-size":h,"--n-text-color":i,"--n-description-text-color":l,"--n-action-text-color":u,"--n-title-text-color":c,"--n-title-font-weight":f,"--n-bezier":ne,"--n-bezier-ease-out":E,"--n-bezier-ease-in":D,"--n-border-radius":d,"--n-box-shadow":p,"--n-close-border-radius":b,"--n-close-color-hover":x,"--n-close-color-pressed":S,"--n-close-icon-color":a,"--n-close-icon-color-hover":o,"--n-close-icon-color-pressed":s,"--n-line-height":m,"--n-icon-color":T,"--n-close-margin":g,"--n-close-size":_,"--n-close-icon-size":ee,"--n-width":v,"--n-padding-left":O,"--n-padding-right":re,"--n-padding-top":k,"--n-padding-bottom":ie,"--n-title-font-size":te,"--n-meta-font-size":C,"--n-description-font-size":w}}),l=a?k(`notification`,b(()=>e.type[0]),c,i):void 0;return{mergedClsPrefix:t,showAvatar:b(()=>e.avatar||e.type!==`default`),handleCloseClick(){e.onClose()},rtlEnabled:s,cssVars:a?void 0:c,themeClass:l?.themeClass,onRender:l?.onRender}},render(){var e;let{mergedClsPrefix:t}=this;return(e=this.onRender)==null||e.call(this),T(`div`,{class:[`${t}-notification-wrapper`,this.themeClass],onMouseenter:this.onMouseenter,onMouseleave:this.onMouseleave,style:this.cssVars},T(`div`,{class:[`${t}-notification`,this.rtlEnabled&&`${t}-notification--rtl`,this.themeClass,{[`${t}-notification--closable`]:this.closable,[`${t}-notification--show-avatar`]:this.showAvatar}],style:this.cssVars},this.showAvatar?T(`div`,{class:`${t}-notification__avatar`},this.avatar?R(this.avatar):this.type===`default`?null:T(xe,{clsPrefix:t},{default:()=>mr[this.type]()})):null,this.closable?T(Re,{clsPrefix:t,class:`${t}-notification__close`,onClick:this.handleCloseClick}):null,T(`div`,{ref:`bodyRef`,class:`${t}-notification-main`},this.title?T(`div`,{class:`${t}-notification-main__header`},R(this.title)):null,this.description?T(`div`,{class:`${t}-notification-main__description`},R(this.description)):null,this.content?T(`pre`,{class:`${t}-notification-main__content`},R(this.content)):null,this.meta||this.action?T(`div`,{class:`${t}-notification-main-footer`},this.meta?T(`div`,{class:`${t}-notification-main-footer__meta`},R(this.meta)):null,this.action?T(`div`,{class:`${t}-notification-main-footer__action`},R(this.action)):null):null)))}}),vr=Object.assign(Object.assign({},hr),{duration:Number,onClose:Function,onLeave:Function,onAfterEnter:Function,onAfterLeave:Function,onHide:Function,onAfterShow:Function,onAfterHide:Function}),yr=c({name:`NotificationEnvironment`,props:Object.assign(Object.assign({},vr),{internalKey:{type:String,required:!0},onInternalAfterLeave:{type:Function,required:!0}}),setup(t){let{wipTransitionCountRef:r}=n(fr),i=e(!0),a=null;function o(){i.value=!1,a&&window.clearTimeout(a)}function c(e){r.value++,ee(()=>{e.style.height=`${e.offsetHeight}px`,e.style.maxHeight=`0`,e.style.transition=`none`,e.offsetHeight,e.style.transition=``,e.style.maxHeight=e.style.height})}function l(e){r.value--,e.style.height=``,e.style.maxHeight=``;let{onAfterEnter:n,onAfterShow:i}=t;n&&n(),i&&i()}function u(e){r.value++,e.style.maxHeight=`${e.offsetHeight}px`,e.style.height=`${e.offsetHeight}px`,e.offsetHeight}function d(e){let{onHide:n}=t;n&&n(),e.style.maxHeight=`0`,e.offsetHeight}function f(){r.value--;let{onAfterLeave:e,onInternalAfterLeave:n,onAfterHide:i,internalKey:a}=t;e&&e(),n(a),i&&i()}function p(){let{duration:e}=t;e&&(a=window.setTimeout(o,e))}function m(e){e.currentTarget===e.target&&a!==null&&(window.clearTimeout(a),a=null)}function h(e){e.currentTarget===e.target&&p()}function g(){let{onClose:e}=t;e?Promise.resolve(e()).then(e=>{e!==!1&&o()}):o()}return s(()=>{t.duration&&(a=window.setTimeout(o,t.duration))}),{show:i,hide:o,handleClose:g,handleAfterLeave:f,handleLeave:d,handleBeforeLeave:u,handleAfterEnter:l,handleBeforeEnter:c,handleMouseenter:m,handleMouseleave:h}},render(){return T(x,{name:`notification-transition`,appear:!0,onBeforeEnter:this.handleBeforeEnter,onAfterEnter:this.handleAfterEnter,onBeforeLeave:this.handleBeforeLeave,onLeave:this.handleLeave,onAfterLeave:this.handleAfterLeave},{default:()=>this.show?T(_r,Object.assign({},ye(this.$props,gr),{onClose:this.handleClose,onMouseenter:this.duration&&this.keepAliveOnHover?this.handleMouseenter:void 0,onMouseleave:this.duration&&this.keepAliveOnHover?this.handleMouseleave:void 0})):null})}}),br=F([I(`notification-container`,`
|
|
119
|
-
z-index: 4000;
|
|
120
|
-
position: fixed;
|
|
121
|
-
overflow: visible;
|
|
122
|
-
display: flex;
|
|
123
|
-
flex-direction: column;
|
|
124
|
-
align-items: flex-end;
|
|
125
|
-
`,[F(`>`,[I(`scrollbar`,`
|
|
126
|
-
width: initial;
|
|
127
|
-
overflow: visible;
|
|
128
|
-
height: -moz-fit-content !important;
|
|
129
|
-
height: fit-content !important;
|
|
130
|
-
max-height: 100vh !important;
|
|
131
|
-
`,[F(`>`,[I(`scrollbar-container`,`
|
|
132
|
-
height: -moz-fit-content !important;
|
|
133
|
-
height: fit-content !important;
|
|
134
|
-
max-height: 100vh !important;
|
|
135
|
-
`,[I(`scrollbar-content`,`
|
|
136
|
-
padding-top: 12px;
|
|
137
|
-
padding-bottom: 33px;
|
|
138
|
-
`)])])])]),L(`top, top-right, top-left`,`
|
|
139
|
-
top: 12px;
|
|
140
|
-
`,[F(`&.transitioning >`,[I(`scrollbar`,[F(`>`,[I(`scrollbar-container`,`
|
|
141
|
-
min-height: 100vh !important;
|
|
142
|
-
`)])])])]),L(`bottom, bottom-right, bottom-left`,`
|
|
143
|
-
bottom: 12px;
|
|
144
|
-
`,[F(`>`,[I(`scrollbar`,[F(`>`,[I(`scrollbar-container`,[I(`scrollbar-content`,`
|
|
145
|
-
padding-bottom: 12px;
|
|
146
|
-
`)])])])]),I(`notification-wrapper`,`
|
|
147
|
-
display: flex;
|
|
148
|
-
align-items: flex-end;
|
|
149
|
-
margin-bottom: 0;
|
|
150
|
-
margin-top: 12px;
|
|
151
|
-
`)]),L(`top, bottom`,`
|
|
152
|
-
left: 50%;
|
|
153
|
-
transform: translateX(-50%);
|
|
154
|
-
`,[I(`notification-wrapper`,[F(`&.notification-transition-enter-from, &.notification-transition-leave-to`,`
|
|
155
|
-
transform: scale(0.85);
|
|
156
|
-
`),F(`&.notification-transition-leave-from, &.notification-transition-enter-to`,`
|
|
157
|
-
transform: scale(1);
|
|
158
|
-
`)])]),L(`top`,[I(`notification-wrapper`,`
|
|
159
|
-
transform-origin: top center;
|
|
160
|
-
`)]),L(`bottom`,[I(`notification-wrapper`,`
|
|
161
|
-
transform-origin: bottom center;
|
|
162
|
-
`)]),L(`top-right, bottom-right`,[I(`notification`,`
|
|
163
|
-
margin-left: 28px;
|
|
164
|
-
margin-right: 16px;
|
|
165
|
-
`)]),L(`top-left, bottom-left`,[I(`notification`,`
|
|
166
|
-
margin-left: 16px;
|
|
167
|
-
margin-right: 28px;
|
|
168
|
-
`)]),L(`top-right`,`
|
|
169
|
-
right: 0;
|
|
170
|
-
`,[xr(`top-right`)]),L(`top-left`,`
|
|
171
|
-
left: 0;
|
|
172
|
-
`,[xr(`top-left`)]),L(`bottom-right`,`
|
|
173
|
-
right: 0;
|
|
174
|
-
`,[xr(`bottom-right`)]),L(`bottom-left`,`
|
|
175
|
-
left: 0;
|
|
176
|
-
`,[xr(`bottom-left`)]),L(`scrollable`,[L(`top-right`,`
|
|
177
|
-
top: 0;
|
|
178
|
-
`),L(`top-left`,`
|
|
179
|
-
top: 0;
|
|
180
|
-
`),L(`bottom-right`,`
|
|
181
|
-
bottom: 0;
|
|
182
|
-
`),L(`bottom-left`,`
|
|
183
|
-
bottom: 0;
|
|
184
|
-
`)]),I(`notification-wrapper`,`
|
|
185
|
-
margin-bottom: 12px;
|
|
186
|
-
`,[F(`&.notification-transition-enter-from, &.notification-transition-leave-to`,`
|
|
187
|
-
opacity: 0;
|
|
188
|
-
margin-top: 0 !important;
|
|
189
|
-
margin-bottom: 0 !important;
|
|
190
|
-
`),F(`&.notification-transition-leave-from, &.notification-transition-enter-to`,`
|
|
191
|
-
opacity: 1;
|
|
192
|
-
`),F(`&.notification-transition-leave-active`,`
|
|
193
|
-
transition:
|
|
194
|
-
background-color .3s var(--n-bezier),
|
|
195
|
-
color .3s var(--n-bezier),
|
|
196
|
-
opacity .3s var(--n-bezier),
|
|
197
|
-
transform .3s var(--n-bezier-ease-in),
|
|
198
|
-
max-height .3s var(--n-bezier),
|
|
199
|
-
margin-top .3s linear,
|
|
200
|
-
margin-bottom .3s linear,
|
|
201
|
-
box-shadow .3s var(--n-bezier);
|
|
202
|
-
`),F(`&.notification-transition-enter-active`,`
|
|
203
|
-
transition:
|
|
204
|
-
background-color .3s var(--n-bezier),
|
|
205
|
-
color .3s var(--n-bezier),
|
|
206
|
-
opacity .3s var(--n-bezier),
|
|
207
|
-
transform .3s var(--n-bezier-ease-out),
|
|
208
|
-
max-height .3s var(--n-bezier),
|
|
209
|
-
margin-top .3s linear,
|
|
210
|
-
margin-bottom .3s linear,
|
|
211
|
-
box-shadow .3s var(--n-bezier);
|
|
212
|
-
`)]),I(`notification`,`
|
|
213
|
-
background-color: var(--n-color);
|
|
214
|
-
color: var(--n-text-color);
|
|
215
|
-
transition:
|
|
216
|
-
background-color .3s var(--n-bezier),
|
|
217
|
-
color .3s var(--n-bezier),
|
|
218
|
-
opacity .3s var(--n-bezier),
|
|
219
|
-
box-shadow .3s var(--n-bezier);
|
|
220
|
-
font-family: inherit;
|
|
221
|
-
font-size: var(--n-font-size);
|
|
222
|
-
font-weight: 400;
|
|
223
|
-
position: relative;
|
|
224
|
-
display: flex;
|
|
225
|
-
overflow: hidden;
|
|
226
|
-
flex-shrink: 0;
|
|
227
|
-
padding-left: var(--n-padding-left);
|
|
228
|
-
padding-right: var(--n-padding-right);
|
|
229
|
-
width: var(--n-width);
|
|
230
|
-
max-width: calc(100vw - 16px - 16px);
|
|
231
|
-
border-radius: var(--n-border-radius);
|
|
232
|
-
box-shadow: var(--n-box-shadow);
|
|
233
|
-
box-sizing: border-box;
|
|
234
|
-
opacity: 1;
|
|
235
|
-
`,[N(`avatar`,[I(`icon`,`
|
|
236
|
-
color: var(--n-icon-color);
|
|
237
|
-
`),I(`base-icon`,`
|
|
238
|
-
color: var(--n-icon-color);
|
|
239
|
-
`)]),L(`show-avatar`,[I(`notification-main`,`
|
|
240
|
-
margin-left: 40px;
|
|
241
|
-
width: calc(100% - 40px);
|
|
242
|
-
`)]),L(`closable`,[I(`notification-main`,[F(`> *:first-child`,`
|
|
243
|
-
padding-right: 20px;
|
|
244
|
-
`)]),N(`close`,`
|
|
245
|
-
position: absolute;
|
|
246
|
-
top: 0;
|
|
247
|
-
right: 0;
|
|
248
|
-
margin: var(--n-close-margin);
|
|
249
|
-
transition:
|
|
250
|
-
background-color .3s var(--n-bezier),
|
|
251
|
-
color .3s var(--n-bezier);
|
|
252
|
-
`)]),N(`avatar`,`
|
|
253
|
-
position: absolute;
|
|
254
|
-
top: var(--n-padding-top);
|
|
255
|
-
left: var(--n-padding-left);
|
|
256
|
-
width: 28px;
|
|
257
|
-
height: 28px;
|
|
258
|
-
font-size: 28px;
|
|
259
|
-
display: flex;
|
|
260
|
-
align-items: center;
|
|
261
|
-
justify-content: center;
|
|
262
|
-
`,[I(`icon`,`transition: color .3s var(--n-bezier);`)]),I(`notification-main`,`
|
|
263
|
-
padding-top: var(--n-padding-top);
|
|
264
|
-
padding-bottom: var(--n-padding-bottom);
|
|
265
|
-
box-sizing: border-box;
|
|
266
|
-
display: flex;
|
|
267
|
-
flex-direction: column;
|
|
268
|
-
margin-left: 8px;
|
|
269
|
-
width: calc(100% - 8px);
|
|
270
|
-
`,[I(`notification-main-footer`,`
|
|
271
|
-
display: flex;
|
|
272
|
-
align-items: center;
|
|
273
|
-
justify-content: space-between;
|
|
274
|
-
margin-top: 12px;
|
|
275
|
-
`,[N(`meta`,`
|
|
276
|
-
font-size: var(--n-meta-font-size);
|
|
277
|
-
transition: color .3s var(--n-bezier-ease-out);
|
|
278
|
-
color: var(--n-description-text-color);
|
|
279
|
-
`),N(`action`,`
|
|
280
|
-
cursor: pointer;
|
|
281
|
-
transition: color .3s var(--n-bezier-ease-out);
|
|
282
|
-
color: var(--n-action-text-color);
|
|
283
|
-
`)]),N(`header`,`
|
|
284
|
-
font-weight: var(--n-title-font-weight);
|
|
285
|
-
font-size: var(--n-title-font-size);
|
|
286
|
-
transition: color .3s var(--n-bezier-ease-out);
|
|
287
|
-
color: var(--n-title-text-color);
|
|
288
|
-
`),N(`description`,`
|
|
289
|
-
margin-top: 8px;
|
|
290
|
-
font-size: var(--n-description-font-size);
|
|
291
|
-
white-space: pre-wrap;
|
|
292
|
-
word-wrap: break-word;
|
|
293
|
-
transition: color .3s var(--n-bezier-ease-out);
|
|
294
|
-
color: var(--n-description-text-color);
|
|
295
|
-
`),N(`content`,`
|
|
296
|
-
line-height: var(--n-line-height);
|
|
297
|
-
margin: 12px 0 0 0;
|
|
298
|
-
font-family: inherit;
|
|
299
|
-
white-space: pre-wrap;
|
|
300
|
-
word-wrap: break-word;
|
|
301
|
-
transition: color .3s var(--n-bezier-ease-out);
|
|
302
|
-
color: var(--n-text-color);
|
|
303
|
-
`,[F(`&:first-child`,`margin: 0;`)])])])])]);function xr(e){return I(`notification-wrapper`,[F(`&.notification-transition-enter-from, &.notification-transition-leave-to`,`
|
|
304
|
-
transform: translate(${e.split(`-`)[1]===`left`?`calc(-100%)`:`calc(100%)`}, 0);
|
|
305
|
-
`),F(`&.notification-transition-leave-from, &.notification-transition-enter-to`,`
|
|
306
|
-
transform: translate(0, 0);
|
|
307
|
-
`)])}var Sr=re(`n-notification-api`),Cr=c({name:`NotificationProvider`,props:Object.assign(Object.assign({},M.props),{containerClass:String,containerStyle:[String,Object],to:[String,Object],scrollable:{type:Boolean,default:!0},max:Number,placement:{type:String,default:`top-right`},keepAliveOnHover:Boolean}),setup(t){let{mergedClsPrefixRef:n}=A(t),r=e([]),i={},a=new Set;function s(e){let n=ve(),o=()=>{a.add(n),i[n]&&i[n].hide()},s=f(Object.assign(Object.assign({},e),{key:n,destroy:o,hide:o,deactivate:o})),{max:c}=t;if(c&&r.value.length-a.size>=c){let e=!1,t=0;for(let n of r.value){if(!a.has(n.key)){i[n.key]&&(n.destroy(),e=!0);break}t++}e||r.value.splice(t,1)}return r.value.push(s),s}let c=[`info`,`success`,`warning`,`error`].map(e=>t=>s(Object.assign(Object.assign({},t),{type:e})));function l(e){a.delete(e),r.value.splice(r.value.findIndex(t=>t.key===e),1)}let u=M(`Notification`,`-notification`,br,dr,t,n),d={create:s,info:c[0],success:c[1],warning:c[2],error:c[3],open:m,destroyAll:h},p=e(0);o(Sr,d),o(fr,{props:t,mergedClsPrefixRef:n,mergedThemeRef:u,wipTransitionCountRef:p});function m(e){return s(e)}function h(){Object.values(r.value).forEach(e=>{e.hide()})}return Object.assign({mergedClsPrefix:n,notificationList:r,notificationRefs:i,handleAfterLeave:l},d)},render(){var e;let{placement:t}=this;return T(C,null,(e=this.$slots).default?.call(e),this.notificationList.length?T(h,{to:this.to??`body`},T(pr,{class:this.containerClass,style:this.containerStyle,scrollable:this.scrollable&&t!==`top`&&t!==`bottom`,placement:t},{default:()=>this.notificationList.map(e=>T(yr,Object.assign({ref:t=>{let n=e.key;t===null?delete this.notificationRefs[n]:this.notificationRefs[n]=t}},Ve(e,[`destroy`,`hide`,`deactivate`]),{internalKey:e.key,onInternalAfterLeave:this.handleAfterLeave,keepAliveOnHover:e.keepAliveOnHover===void 0?this.keepAliveOnHover:e.keepAliveOnHover})))})):null)}}),wr={common:{primaryColor:`#333333`,primaryColorHover:`#1a1a1a`,primaryColorPressed:`#000000`,primaryColorSuppl:`#333333`,bodyColor:`#fafafa`,cardColor:`#ffffff`,modalColor:`#ffffff`,popoverColor:`#ffffff`,tableColor:`#ffffff`,inputColor:`#ffffff`,actionColor:`#f0f0f0`,textColorBase:`#1a1a1a`,textColor1:`#1a1a1a`,textColor2:`#666666`,textColor3:`#999999`,dividerColor:`#e0e0e0`,borderColor:`#e0e0e0`,hoverColor:`rgba(0, 0, 0, 0.04)`,borderRadius:`8px`,borderRadiusSmall:`6px`,fontSize:`14px`,fontSizeMedium:`14px`,heightMedium:`36px`,fontFamily:`Inter, system-ui, -apple-system, sans-serif`,fontFamilyMono:`JetBrains Mono, Fira Code, Consolas, monospace`},Layout:{color:`#fafafa`,siderColor:`#f5f5f5`,headerColor:`#fafafa`},Menu:{itemTextColorActive:`#1a1a1a`,itemTextColorActiveHover:`#1a1a1a`,itemTextColorChildActive:`#1a1a1a`,itemIconColorActive:`#1a1a1a`,itemIconColorActiveHover:`#000000`,itemColorActive:`rgba(0, 0, 0, 0.06)`,itemColorActiveHover:`rgba(0, 0, 0, 0.1)`,arrowColorActive:`#1a1a1a`},Button:{textColorPrimary:`#ffffff`,colorPrimary:`#333333`,colorHoverPrimary:`#1a1a1a`,colorPressedPrimary:`#000000`},Input:{color:`#ffffff`,colorFocus:`#ffffff`,border:`1px solid #e0e0e0`,borderHover:`1px solid #999999`,borderFocus:`1px solid #333333`,placeholderColor:`#999999`,caretColor:`#1a1a1a`},Card:{color:`#ffffff`,borderColor:`#e0e0e0`},Modal:{color:`#ffffff`},Tag:{borderRadius:`6px`}},Tr={class:`model-selector`},Er=he(c({__name:`ModelSelector`,setup(e){let t=Ge(),n=b(()=>t.modelGroups.map(e=>({label:e.label,type:`group`,key:e.provider,children:e.models.map(e=>({label:e,value:e}))})));function r(e){typeof e==`string`&&t.switchModel(e)}return(e,i)=>(a(),w(`div`,Tr,[i[0]||=v(`div`,{class:`model-label`},`Model`,-1),E(p(ze),{value:p(t).selectedModel,options:n.value,size:`small`,"onUpdate:value":r},null,8,[`value`,`options`])]))}}),[[`__scopeId`,`data-v-00830782`]]),Dr=c({__name:`LanguageSwitch`,setup(e){let{locale:t,availableLocales:n}=_e(),r=b(()=>n.map(e=>({label:e===`zh`?`中文`:`English`,value:e})));function i(e){t.value=e,localStorage.setItem(`hermes_locale`,e)}return(e,n)=>(a(),_(p(ze),{value:p(t),options:r.value,size:`tiny`,"consistent-menu-width":!1,style:{width:`90px`},"onUpdate:value":i},null,8,[`value`,`options`]))}}),Or=`/assets/dance-gGRu7JHG.mp4`,kr={class:`sidebar`},Ar={class:`sidebar-nav`},jr={class:`sidebar-footer`},Mr={class:`status-row`},Nr={class:`status-text`},Pr={class:`version-info`},Fr=he(c({__name:`AppSidebar`,setup(t){let{t:n}=_e(),i=zn(),o=Rn(),c=Ge(),l=e(),u=b(()=>i.name);s(()=>{let e=l.value;if(!e)return;let t=e.getContext(`2d`);if(!t)return;let n=document.createElement(`video`);n.src=Or,n.muted=!0,n.playsInline=!0,n.autoplay=!0,n.addEventListener(`loadeddata`,()=>{e.width=n.videoWidth,e.height=n.videoHeight});function i(){n.readyState>=2&&t&&e&&t.drawImage(n,0,0,e.width,e.height),n.currentTime>=n.duration-.05&&(n.currentTime=0),requestAnimationFrame(i)}n.addEventListener(`canplay`,()=>{i()}),n.play();let a=()=>{document.visibilityState===`visible`&&n.paused&&n.play()};document.addEventListener(`visibilitychange`,a),r(()=>{document.removeEventListener(`visibilitychange`,a)})});function d(e){o.push({name:e})}return(e,t)=>(a(),w(`aside`,kr,[v(`div`,{class:`sidebar-logo`,onClick:t[0]||=e=>p(o).push(`/`)},[t[10]||=v(`img`,{src:`/assets/logo-BAarh-tH.png`,alt:`Hermes`,class:`logo-img`},null,-1),t[11]||=v(`span`,{class:`logo-text`},`Hermes`,-1),v(`canvas`,{ref_key:`canvasRef`,ref:l,class:`logo-dance`},null,512)]),v(`nav`,Ar,[v(`button`,{class:S([`nav-item`,{active:u.value===`chat`}]),onClick:t[1]||=e=>d(`chat`)},[t[12]||=v(`svg`,{width:`16`,height:`16`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`},[v(`path`,{d:`M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z`})],-1),v(`span`,null,m(p(n)(`sidebar.chat`)),1)],2),v(`button`,{class:S([`nav-item`,{active:u.value===`jobs`}]),onClick:t[2]||=e=>d(`jobs`)},[t[13]||=D(`<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" data-v-2c0cb39b><rect x="3" y="4" width="18" height="18" rx="2" ry="2" data-v-2c0cb39b></rect><line x1="16" y1="2" x2="16" y2="6" data-v-2c0cb39b></line><line x1="8" y1="2" x2="8" y2="6" data-v-2c0cb39b></line><line x1="3" y1="10" x2="21" y2="10" data-v-2c0cb39b></line></svg>`,1),v(`span`,null,m(p(n)(`sidebar.jobs`)),1)],2),v(`button`,{class:S([`nav-item`,{active:u.value===`models`}]),onClick:t[3]||=e=>d(`models`)},[t[14]||=D(`<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" data-v-2c0cb39b><circle cx="12" cy="12" r="3" data-v-2c0cb39b></circle><path d="M12 1v4" data-v-2c0cb39b></path><path d="M12 19v4" data-v-2c0cb39b></path><path d="M1 12h4" data-v-2c0cb39b></path><path d="M19 12h4" data-v-2c0cb39b></path><path d="M4.22 4.22l2.83 2.83" data-v-2c0cb39b></path><path d="M16.95 16.95l2.83 2.83" data-v-2c0cb39b></path><path d="M4.22 19.78l2.83-2.83" data-v-2c0cb39b></path><path d="M16.95 7.05l2.83-2.83" data-v-2c0cb39b></path></svg>`,1),v(`span`,null,m(p(n)(`sidebar.models`)),1)],2),v(`button`,{class:S([`nav-item`,{active:u.value===`channels`}]),onClick:t[4]||=e=>d(`channels`)},[t[15]||=v(`svg`,{width:`16`,height:`16`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`},[v(`path`,{d:`M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z`})],-1),v(`span`,null,m(p(n)(`sidebar.channels`)),1)],2),v(`button`,{class:S([`nav-item`,{active:u.value===`skills`}]),onClick:t[5]||=e=>d(`skills`)},[t[16]||=v(`svg`,{width:`16`,height:`16`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`},[v(`polygon`,{points:`12 2 2 7 12 12 22 7 12 2`}),v(`polyline`,{points:`2 17 12 22 22 17`}),v(`polyline`,{points:`2 12 12 17 22 12`})],-1),v(`span`,null,m(p(n)(`sidebar.skills`)),1)],2),v(`button`,{class:S([`nav-item`,{active:u.value===`memory`}]),onClick:t[6]||=e=>d(`memory`)},[t[17]||=v(`svg`,{width:`16`,height:`16`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`},[v(`path`,{d:`M9 18h6`}),v(`path`,{d:`M10 22h4`}),v(`path`,{d:`M12 2a7 7 0 0 0-4 12.7V17h8v-2.3A7 7 0 0 0 12 2z`})],-1),v(`span`,null,m(p(n)(`sidebar.memory`)),1)],2),v(`button`,{class:S([`nav-item`,{active:u.value===`logs`}]),onClick:t[7]||=e=>d(`logs`)},[t[18]||=D(`<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" data-v-2c0cb39b><path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z" data-v-2c0cb39b></path><polyline points="14 2 14 8 20 8" data-v-2c0cb39b></polyline><line x1="16" y1="13" x2="8" y2="13" data-v-2c0cb39b></line><line x1="16" y1="17" x2="8" y2="17" data-v-2c0cb39b></line><polyline points="10 9 9 9 8 9" data-v-2c0cb39b></polyline></svg>`,1),v(`span`,null,m(p(n)(`sidebar.logs`)),1)],2),v(`button`,{class:S([`nav-item`,{active:u.value===`usage`}]),onClick:t[8]||=e=>d(`usage`)},[t[19]||=v(`svg`,{width:`16`,height:`16`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`},[v(`rect`,{x:`3`,y:`12`,width:`4`,height:`9`,rx:`1`}),v(`rect`,{x:`10`,y:`7`,width:`4`,height:`14`,rx:`1`}),v(`rect`,{x:`17`,y:`3`,width:`4`,height:`18`,rx:`1`})],-1),v(`span`,null,m(p(n)(`sidebar.usage`)),1)],2),v(`button`,{class:S([`nav-item`,{active:u.value===`settings`}]),onClick:t[9]||=e=>d(`settings`)},[t[20]||=v(`svg`,{width:`16`,height:`16`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`},[v(`circle`,{cx:`12`,cy:`12`,r:`3`}),v(`path`,{d:`M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1-2.83 2.83l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-4 0v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83-2.83l.06-.06A1.65 1.65 0 0 0 4.68 15a1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1 0-4h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 2.83-2.83l.06.06A1.65 1.65 0 0 0 9 4.68a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 4 0v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 2.83l-.06.06A1.65 1.65 0 0 0 19.4 9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 0 4h-.09a1.65 1.65 0 0 0-1.51 1z`})],-1),v(`span`,null,m(p(n)(`sidebar.settings`)),1)],2)]),E(Er),v(`div`,jr,[v(`div`,Mr,[v(`div`,{class:S([`status-indicator`,{connected:p(c).connected,disconnected:!p(c).connected}])},[t[21]||=v(`span`,{class:`status-dot`},null,-1),v(`span`,Nr,m(p(c).connected?p(n)(`sidebar.connected`):p(n)(`sidebar.disconnected`)),1)],2),E(Dr)]),v(`div`,Pr,` Hermes `+m(p(c).serverVersion||`v0.1.0`),1)])]))}}),[[`__scopeId`,`data-v-2c0cb39b`]]);function Ir(){let e=Rn(),t=We();function n(n){let r=n.ctrlKey||n.metaKey;if(r&&n.key===`n`&&(n.preventDefault(),t.newChat()),r&&n.key===`j`&&(n.preventDefault(),e.push({name:`jobs`})),n.key===`Escape`){let e=document.querySelector(`.n-modal-mask`);e&&e.querySelector(`.n-base-close`)?.click()}}s(()=>{window.addEventListener(`keydown`,n)}),r(()=>{window.removeEventListener(`keydown`,n)})}var Lr={class:`app-layout`},Rr={class:`app-main`},zr=y(he(c({__name:`App`,setup(e){let n=Ge();return s(()=>{n.loadModels(),n.startHealthPolling()}),r(()=>{n.stopHealthPolling()}),Ir(),(e,n)=>{let r=t(`router-view`);return a(),_(p(Yn),{"theme-overrides":p(wr)},{default:l(()=>[E(p(cr),null,{default:l(()=>[E(p(Qn),null,{default:l(()=>[E(p(Cr),null,{default:l(()=>[v(`div`,Lr,[E(Fr),v(`main`,Rr,[E(r)])])]),_:1})]),_:1})]),_:1})]),_:1},8,[`theme-overrides`])}}}),[[`__scopeId`,`data-v-54901746`]]));zr.use(ne()),zr.use(Gn),zr.use(Bn),zr.mount(`#app`);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.model-selector[data-v-00830782]{margin-bottom:8px;padding:0 12px}.model-label[data-v-00830782]{color:#999;text-transform:uppercase;letter-spacing:.5px;margin-bottom:6px;font-size:11px;font-weight:600}.sidebar[data-v-2c0cb39b]{background-color:#f5f5f5;border-right:1px solid #e0e0e0;flex-direction:column;flex-shrink:0;width:240px;height:100vh;padding:0 12px 20px;transition:width .25s;display:flex}.logo-img[data-v-2c0cb39b]{border-radius:0;flex-shrink:0;width:28px;height:28px}.sidebar-logo[data-v-2c0cb39b]{color:#1a1a1a;cursor:pointer;background-color:#fff;align-items:center;gap:10px;margin:0 -12px;padding:20px 12px;display:flex;position:relative;overflow:hidden;box-shadow:0 2px 8px #00000014}.sidebar-logo .logo-text[data-v-2c0cb39b]{letter-spacing:.5px;font-size:18px;font-weight:600}.sidebar-logo .logo-dance[data-v-2c0cb39b]{object-fit:contain;border-radius:10px;flex-shrink:0;width:auto;height:100px;position:absolute;top:50%;right:12px;transform:translateY(-50%)}.sidebar-nav[data-v-2c0cb39b]{flex-direction:column;flex:1;gap:4px;padding-top:12px;display:flex}.nav-item[data-v-2c0cb39b]{color:#666;cursor:pointer;text-align:left;background:0 0;border:none;border-radius:6px;align-items:center;gap:10px;width:100%;padding:10px 12px;font-size:14px;transition:all .15s;display:flex}.nav-item[data-v-2c0cb39b]:hover{color:#1a1a1a;background-color:#3333330f}.nav-item.active[data-v-2c0cb39b]{color:#333;background-color:#3333331f}.sidebar-footer[data-v-2c0cb39b]{border-top:1px solid #e0e0e0;padding-top:16px}.status-row[data-v-2c0cb39b]{justify-content:space-between;align-items:center;padding:8px 12px;display:flex}.status-indicator[data-v-2c0cb39b]{align-items:center;gap:8px;font-size:12px;display:flex}.status-indicator .status-dot[data-v-2c0cb39b]{border-radius:50%;flex-shrink:0;width:8px;height:8px}.status-indicator.connected .status-dot[data-v-2c0cb39b]{background-color:#2e7d32;box-shadow:0 0 6px #2e7d3280}.status-indicator.disconnected .status-dot[data-v-2c0cb39b]{background-color:#c62828}.status-indicator .status-text[data-v-2c0cb39b]{color:#666}.version-info[data-v-2c0cb39b]{color:#999;padding:2px 12px 8px;font-size:11px}.app-layout[data-v-54901746]{width:100vw;height:100vh;display:flex;overflow:hidden}.app-main[data-v-54901746]{background-color:#fafafa;flex:1;overflow-y:auto}*,:before,:after{box-sizing:border-box;margin:0;padding:0}html,body,#app{width:100%;height:100%;overflow:hidden}body{color:#1a1a1a;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;background-color:#fafafa;font-family:Inter,system-ui,-apple-system,sans-serif;font-size:14px;line-height:1.6}code,pre,.mono{font-family:JetBrains Mono,Fira Code,Consolas,monospace}a{color:#333;text-decoration:none}a:hover{color:#1a1a1a}::-webkit-scrollbar{width:6px;height:6px}::-webkit-scrollbar-track{background:0 0}::-webkit-scrollbar-thumb{background:#e0e0e0;border-radius:3px}::-webkit-scrollbar-thumb:hover{background:#999}::selection{background:#3333334d}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{ut as e}from"./vue.runtime.esm-bundler-BoqZ7fRe.js";import{n as t}from"./client-D-w1KhaU.js";var n=e({createJob:()=>o,deleteJob:()=>c,getJob:()=>a,listJobs:()=>i,pauseJob:()=>l,resumeJob:()=>u,runJob:()=>d,updateJob:()=>s});function r(e){return e.job}async function i(){return(await t(`/api/jobs?include_disabled=true`)).jobs}async function a(e){return r(await t(`/api/jobs/${e}`))}async function o(e){return r(await t(`/api/jobs`,{method:`POST`,body:JSON.stringify(e)}))}async function s(e,n){return r(await t(`/api/jobs/${e}`,{method:`PATCH`,body:JSON.stringify(n)}))}async function c(e){return t(`/api/jobs/${e}`,{method:`DELETE`})}async function l(e){return r(await t(`/api/jobs/${e}/pause`,{method:`POST`}))}async function u(e){return r(await t(`/api/jobs/${e}/resume`,{method:`POST`}))}async function d(e){return r(await t(`/api/jobs/${e}/run`,{method:`POST`}))}export{l as a,s as c,i,c as n,u as o,n as r,d as s,o as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{$ as e,E as t,G as n,J as r,K as i,T as a,V as o,X as s,Y as c,Z as l,it as u,k as d,m as f,nt as p,q as m}from"./vue.runtime.esm-bundler-BoqZ7fRe.js";var h=typeof window<`u`,g,_=e=>g=e,v=Symbol();function y(e){return e&&typeof e==`object`&&Object.prototype.toString.call(e)===`[object Object]`&&typeof e.toJSON!=`function`}var b;(function(e){e.direct=`direct`,e.patchObject=`patch object`,e.patchFunction=`patch function`})(b||={});var x=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 S(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 C(e,t,n){let r=new XMLHttpRequest;r.open(`GET`,e),r.responseType=`blob`,r.onload=function(){O(r.response,t,n)},r.onerror=function(){console.error(`could not download file`)},r.send()}function w(e){let t=new XMLHttpRequest;t.open(`HEAD`,e,!1);try{t.send()}catch{}return t.status>=200&&t.status<=299}function T(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:``},D=/Macintosh/.test(E.userAgent)&&/AppleWebKit/.test(E.userAgent)&&!/Safari/.test(E.userAgent),O=h?typeof HTMLAnchorElement<`u`&&`download`in HTMLAnchorElement.prototype&&!D?k:`msSaveOrOpenBlob`in E?A:j:()=>{};function k(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?T(r):w(r.href)?C(e,t,n):(r.target=`_blank`,T(r))):(r.href=URL.createObjectURL(e),setTimeout(function(){URL.revokeObjectURL(r.href)},4e4),setTimeout(function(){T(r)},0))}function A(e,t=`download`,n){if(typeof e==`string`)if(w(e))C(e,t,n);else{let t=document.createElement(`a`);t.href=e,t.target=`_blank`,setTimeout(function(){T(t)})}else navigator.msSaveOrOpenBlob(S(e,n),t)}function j(e,t,n,r){if(r||=open(``,`_blank`),r&&(r.document.title=r.document.body.innerText=`downloading...`),typeof e==`string`)return C(e,t,n);let i=e.type===`application/octet-stream`,a=/constructor/i.test(String(x.HTMLElement))||`safari`in x,o=/CriOS\/[\d]+/.test(navigator.userAgent);if((o||i&&a||D)&&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:M}=Object;function N(){let t=n(!0),r=t.run(()=>e({})),i=[],a=[],o=c({install(e){_(o),o._a=e,e.provide(v,o),e.config.globalProperties.$pinia=o,a.forEach(e=>i.push(e)),a=[]},use(e){return this._a?i.push(e):a.push(e),this},_p:i,_a:null,_e:t,_s:new Map,state:r});return o}var P=()=>{};function F(e,t,n,r=P){e.add(t);let a=()=>{e.delete(t)&&r()};return!n&&i()&&s(a),a}function I(e,...t){e.forEach(e=>{e(...t)})}var L=e=>e(),R=Symbol(),z=Symbol();function B(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 i=t[n],a=e[n];y(a)&&y(i)&&e.hasOwnProperty(n)&&!r(i)&&!m(i)?e[n]=B(a,i):e[n]=i}return e}var V=Symbol();function H(e){return!y(e)||!Object.prototype.hasOwnProperty.call(e,V)}var{assign:U}=Object;function W(e){return!!(r(e)&&e.effect)}function G(e,t,n,r){let{state:i,actions:a,getters:o}=t,s=n.state.value[e],l;function d(){return s||(n.state.value[e]=i?i():{}),U(u(n.state.value[e]),a,Object.keys(o||{}).reduce((t,r)=>(t[r]=c(f(()=>{_(n);let t=n._s.get(e);return o[r].call(t,t)})),t),{}))}return l=K(e,d,t,n,r,!0),l}function K(t,i,a={},s,c,u){let f,h=U({actions:{}},a),g={deep:!0},v,y,x=new Set,S=new Set,C=s.state.value[t];!u&&!C&&(s.state.value[t]={}),e({});let w;function T(e){let n;v=y=!1,typeof e==`function`?(e(s.state.value[t]),n={type:b.patchFunction,storeId:t,events:void 0}):(B(s.state.value[t],e),n={type:b.patchObject,payload:e,storeId:t,events:void 0});let r=w=Symbol();d().then(()=>{w===r&&(v=!0)}),y=!0,I(x,n,s.state.value[t])}let E=u?function(){let{state:e}=a,t=e?e():{};this.$patch(e=>{U(e,t)})}:P;function D(){f.stop(),x.clear(),S.clear(),s._s.delete(t)}let O=(e,n=``)=>{if(R in e)return e[z]=n,e;let r=function(){_(s);let n=Array.from(arguments),i=new Set,a=new Set;function o(e){i.add(e)}function c(e){a.add(e)}I(S,{args:n,name:r[z],store:k,after:o,onError:c});let l;try{l=e.apply(this&&this.$id===t?this:k,n)}catch(e){throw I(a,e),e}return l instanceof Promise?l.then(e=>(I(i,e),e)).catch(e=>(I(a,e),Promise.reject(e))):(I(i,l),l)};return r[R]=!0,r[z]=n,r},k=l({_p:s,$id:t,$onAction:F.bind(null,S),$patch:T,$reset:E,$subscribe(e,n={}){let r=F(x,e,n.detached,()=>i()),i=f.run(()=>o(()=>s.state.value[t],r=>{(n.flush===`sync`?y:v)&&e({storeId:t,type:b.direct,events:void 0},r)},U({},g,n)));return r},$dispose:D});s._s.set(t,k);let A=(s._a&&s._a.runWithContext||L)(()=>s._e.run(()=>(f=n()).run(()=>i({action:O}))));for(let e in A){let n=A[e];r(n)&&!W(n)||m(n)?u||(C&&H(n)&&(r(n)?n.value=C[e]:B(n,C[e])),s.state.value[t][e]=n):typeof n==`function`&&(A[e]=O(n,e),h.actions[e]=n)}return U(k,A),U(p(k),A),Object.defineProperty(k,`$state`,{get:()=>s.state.value[t],set:e=>{T(t=>{U(t,e)})}}),s._p.forEach(e=>{U(k,f.run(()=>e({store:k,app:s._a,pinia:s,options:h})))}),C&&u&&a.hydrate&&a.hydrate(k.$state,C),v=!0,y=!0,k}function q(e,n,r){let i,o=typeof n==`function`;i=o?r:n;function s(r,s){let c=a();return r||=c?t(v,null):null,r&&_(r),r=g,r._s.has(e)||(o?K(e,n,i,r):G(e,i,r)),r._s.get(e)}return s.$id=e,s}export{q as n,N as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var e=`modulepreload`,t=function(e){return`/`+e},n={},r=function(r,i,a){let o=Promise.resolve();if(i&&i.length>0){let r=document.getElementsByTagName(`link`),s=document.querySelector(`meta[property=csp-nonce]`),c=s?.nonce||s?.getAttribute(`nonce`);function l(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}o=l(i.map(i=>{if(i=t(i,a),i in n)return;n[i]=!0;let o=i.endsWith(`.css`),s=o?`[rel="stylesheet"]`:``;if(a)for(let e=r.length-1;e>=0;e--){let t=r[e];if(t.href===i&&(!o||t.rel===`stylesheet`))return}else if(document.querySelector(`link[href="${i}"]${s}`))return;let l=document.createElement(`link`);if(l.rel=o?`stylesheet`:e,o||(l.as=`script`),l.crossOrigin=``,l.href=i,c&&l.setAttribute(`nonce`,c),document.head.appendChild(l),o)return new Promise((e,t)=>{l.addEventListener(`load`,e),l.addEventListener(`error`,()=>t(Error(`Unable to preload CSS for ${i}`)))})}))}function s(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return o.then(e=>{for(let t of e||[])t.status===`rejected`&&s(t.reason);return r().catch(s)})};export{r as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{E as e}from"./vue.runtime.esm-bundler-BoqZ7fRe.js";import{Y as t}from"./_plugin-vue_export-helper-C7dadZ10.js";import{t as n}from"./context-vjXbZCu8.js";function r(){let r=e(n,null);return r===null&&t(`use-message`,"No outer <n-message-provider /> founded. See prerequisite in https://www.naiveui.com/en-US/os-theme/components/message for more details. If you want to use `useMessage` outside setup, please check https://www.naiveui.com/zh-CN/os-theme/components/message#Q-&-A."),r}export{r as t};
|