hermes-web-ui 0.3.6 → 0.3.7
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/bin/hermes-web-ui.mjs +15 -1
- package/dist/client/assets/{Add-CKf6ViXR.js → Add-Cc7cgBoB.js} +1 -1
- package/dist/client/assets/{Button-CrrCCorI.js → Button-EoeZgIFH.js} +1 -1
- package/dist/client/assets/{ChannelsView-D4I7hhZO.js → ChannelsView-Bfbq3w7n.js} +1 -1
- package/dist/client/assets/{ChatView-DxyBUK57.js → ChatView-CDdyTo72.js} +1 -1
- package/dist/client/assets/{Close-C9xwy-pW.js → Close-CKHcXisf.js} +1 -1
- package/dist/client/assets/{FormItem-BgJdrTW0.js → FormItem-CvZvjrtr.js} +1 -1
- package/dist/client/assets/{GatewaysView-Cib2JydO.js → GatewaysView-Dp4-TFPE.js} +1 -1
- package/dist/client/assets/{Input-ChENEW-Z.js → Input-Bk7XdoG-.js} +1 -1
- package/dist/client/assets/{InputNumber-Xd6HWSdp.js → InputNumber-Dn0EHi-K.js} +1 -1
- package/dist/client/assets/{JobsView-SnToCbDd.js → JobsView-D4JN73Zz.js} +2 -2
- package/dist/client/assets/{LoginView-BZdmMnsf.js → LoginView--hy5CI5O.js} +1 -1
- package/dist/client/assets/{LogsView-DblvOJIg.js → LogsView-Dz2ZeYad.js} +1 -1
- package/dist/client/assets/{MarkdownRenderer-DJLVk7ei.js → MarkdownRenderer-BbedVxvo.js} +1 -1
- package/dist/client/assets/{MemoryView-exXvRwCc.js → MemoryView-D2EHM35l.js} +1 -1
- package/dist/client/assets/{Modal-B2zvXTrk.js → Modal-C5-Iw50K.js} +1 -1
- package/dist/client/assets/ModelsView-CtrRf4vK.js +1 -0
- package/dist/client/assets/{ModelsView-jbgZP3YF.css → ModelsView-VM-oMq5M.css} +1 -1
- package/dist/client/assets/{Popconfirm-BoZc0kKk.js → Popconfirm-C-M2anVL.js} +1 -1
- package/dist/client/assets/{Popover-Cu52vG3D.js → Popover-mIRPCy7U.js} +1 -1
- package/dist/client/assets/{ProfilesView-D0FY7Jwe.js → ProfilesView-Dy9PivgB.js} +1 -1
- package/dist/client/assets/{Select-BHc7u-Yf.js → Select-uZBC8HC2.js} +2 -2
- package/dist/client/assets/{SettingRow-i-UXlco7.js → SettingRow-D9R65bDj.js} +1 -1
- package/dist/client/assets/{SettingsView-Dhr2wzAB.css → SettingsView-C3sd8K0e.css} +1 -1
- package/dist/client/assets/SettingsView-DWEEXqSY.js +352 -0
- package/dist/client/assets/{SkillsView-B5QBaAzi.js → SkillsView-CdZSRy9_.js} +1 -1
- package/dist/client/assets/{Spin-DsNCRPk9.js → Spin-ChbFBUOD.js} +1 -1
- package/dist/client/assets/{Suffix-3xK0KZGt.js → Suffix-DgzfIwzx.js} +1 -1
- package/dist/client/assets/{Switch-Bf63XXgA.js → Switch--HhY1uSh.js} +1 -1
- package/dist/client/assets/{Tag-Dmbj68Ki.js → Tag-B2zrHMmZ.js} +1 -1
- package/dist/client/assets/{TerminalView-DrJHZ0qI.js → TerminalView-BwfnH803.js} +1 -1
- package/dist/client/assets/{Tooltip-CRbZNhG0.js → Tooltip-9tdvSKGi.js} +1 -1
- package/dist/client/assets/{UsageView-DQ43JasX.js → UsageView-zL3a7F86.js} +1 -1
- package/dist/client/assets/{Warning-kBbRMAif.js → Warning-CXXqHzLa.js} +1 -1
- package/dist/client/assets/{_plugin-vue_export-helper-CnosYBkx.js → _plugin-vue_export-helper-Cnn0Z73x.js} +1 -1
- package/dist/client/assets/app-BMobzABI.js +1 -0
- package/dist/client/assets/app-Bqu9Uz-1.js +1 -0
- package/dist/client/assets/{browser-Djp4tkp3.js → browser-CQRjhbaB.js} +1 -1
- package/dist/client/assets/chat-BIdq6ZXF.js +6 -0
- package/dist/client/assets/composables-ClIU-Ad1.js +1 -0
- package/dist/client/assets/{fade-in.cssr-CIVyTG6A.js → fade-in.cssr-lwO9nLky.js} +1 -1
- package/dist/client/assets/index-Tg6M43Om.js +284 -0
- package/dist/client/assets/{jobs-CcVaCGMJ.js → jobs-Z2HS0j2d.js} +1 -1
- package/dist/client/assets/{light-CSp9-LhE.js → light-CjCy-Dkn.js} +1 -1
- package/dist/client/assets/{light-BJ96fCLC.js → light-DZ0Ns16h.js} +1 -1
- package/dist/client/assets/{light-BF6E9z0k.js → light-DgIst23O.js} +1 -1
- package/dist/client/assets/{light-KCEDTUGE.js → light-Dx6qj2pM.js} +1 -1
- package/dist/client/assets/{light-BPqyaxve.js → light-DzpNsLai.js} +1 -1
- package/dist/client/assets/{light-D9G2GshF.js → light-oE8MEiWL.js} +1 -1
- package/dist/client/assets/models-DLQiHB7r.js +1 -0
- package/dist/client/assets/{pinia-iHE5_ZXa.js → pinia-Dp_b1vdW.js} +1 -1
- package/dist/client/assets/{profiles-CJCR84uQ.js → profiles-CNTHYFZE.js} +1 -1
- package/dist/client/assets/{router-C-NNJUuf.js → router-Dj-Nmg7q.js} +2 -2
- package/dist/client/assets/{sessions-C4bnNvzS.js → sessions-C0kvgvBm.js} +1 -1
- package/dist/client/assets/{skills-B4slZfeZ.js → skills-G7EoEvdS.js} +1 -1
- package/dist/client/assets/{use-message-BIpqgDet.js → use-message-BgToAqhv.js} +1 -1
- package/dist/client/assets/{useTheme-B78N9tyz.js → useTheme-BUShiwRu.js} +1 -1
- package/dist/client/index.html +27 -27
- package/dist/server/routes/hermes/filesystem.js +231 -199
- package/dist/server/routes/hermes/logs.js +50 -11
- package/dist/server/routes/hermes/proxy-handler.js +16 -6
- package/dist/server/services/hermes/gateway-manager.d.ts +2 -0
- package/dist/server/services/hermes/gateway-manager.js +15 -0
- package/dist/server/services/hermes/hermes-profile.d.ts +6 -0
- package/dist/server/services/hermes/hermes-profile.js +12 -0
- package/dist/server/shared/providers.js +1 -13
- package/package.json +1 -1
- package/dist/client/assets/ModelsView-DGs47Cj4.js +0 -1
- package/dist/client/assets/SettingsView-BW6ctYG5.js +0 -352
- package/dist/client/assets/app-BT9yU6N6.js +0 -1
- package/dist/client/assets/app-CjNVVG5x.js +0 -1
- package/dist/client/assets/chat-DlC9S9DK.js +0 -6
- package/dist/client/assets/composables-DCA4Yga5.js +0 -1
- package/dist/client/assets/index-D12ukDT7.js +0 -284
|
@@ -0,0 +1,352 @@
|
|
|
1
|
+
import{$ as e,A as t,C as n,D as r,E as i,F as a,G as o,K as s,L as c,N as l,Q as u,R as d,S as f,U as p,X as m,Z as h,ct as g,dt as _,f as v,gt as y,h as b,j as x,k as S,mt as C,pt as w,q as T,w as E,y as D}from"./router-Dj-Nmg7q.js";import{r as O,t as k}from"./_plugin-vue_export-helper-Cnn0Z73x.js";import{$ as ee,B as te,I as ne,K as A,Y as j,Z as re,c as ie,ct as M,dt as N,ft as P,j as F,pt as I,q as L,st as R,ut as z,z as ae}from"./browser-CQRjhbaB.js";import{M as oe,c as se,d as ce,v as B,y as le}from"./Popover-mIRPCy7U.js";import{d as ue,l as V}from"./Suffix-DgzfIwzx.js";import{c as H,o as de,r as fe,s as pe}from"./fade-in.cssr-lwO9nLky.js";import{n as me,t as he}from"./Close-CKHcXisf.js";import{c as U,t as W}from"./Select-uZBC8HC2.js";import{t as G}from"./Button-EoeZgIFH.js";import{t as ge}from"./omit-1BRB6K75.js";import{t as _e}from"./Add-Cc7cgBoB.js";import{t as K}from"./Input-Bk7XdoG-.js";import{t as q}from"./InputNumber-Dn0EHi-K.js";import{t as J}from"./use-message-BgToAqhv.js";import{t as Y}from"./Switch--HhY1uSh.js";import{n as ve}from"./light-CjCy-Dkn.js";import{t as X}from"./Spin-ChbFBUOD.js";import{t as ye}from"./useTheme-BUShiwRu.js";import{o as be}from"./app-BMobzABI.js";import{n as Z,t as Q}from"./SettingRow-D9R65bDj.js";import{t as xe}from"./models-DLQiHB7r.js";var Se=B(`.v-x-scroll`,{overflow:`auto`,scrollbarWidth:`none`},[B(`&::-webkit-scrollbar`,{width:0,height:0})]),Ce=x({name:`XScroll`,props:{disabled:Boolean,onScroll:Function},setup(){let e=g(null);function t(e){!(e.currentTarget.offsetWidth<e.currentTarget.scrollWidth)||e.deltaY===0||(e.currentTarget.scrollLeft+=e.deltaY+e.deltaX,e.preventDefault())}let n=re();return Se.mount({id:`vueuc/x-scroll`,head:!0,anchorMetaName:le,ssr:n}),Object.assign({selfRef:e,handleWheel:t},{scrollTo(...t){var n;(n=e.value)==null||n.scrollTo(...t)}})},render(){return l(`div`,{ref:`selfRef`,onScroll:this.onScroll,onWheel:this.disabled?void 0:this.handleWheel,class:`v-x-scroll`},this.$slots)}}),we=/\s/;function Te(e){for(var t=e.length;t--&&we.test(e.charAt(t)););return t}var Ee=/^\s+/;function De(e){return e&&e.slice(0,Te(e)+1).replace(Ee,``)}var Oe=NaN,ke=/^[-+]0x[0-9a-f]+$/i,Ae=/^0b[01]+$/i,je=/^0o[0-7]+$/i,Me=parseInt;function Ne(e){if(typeof e==`number`)return e;if(de(e))return Oe;if(F(e)){var t=typeof e.valueOf==`function`?e.valueOf():e;e=F(t)?t+``:t}if(typeof e!=`string`)return e===0?e:+e;e=De(e);var n=Ae.test(e);return n||je.test(e)?Me(e.slice(2),n?2:8):ke.test(e)?Oe:+e}var Pe=function(){return ne.Date.now()},Fe=`Expected a function`,Ie=Math.max,Le=Math.min;function Re(e,t,n){var r,i,a,o,s,c,l=0,u=!1,d=!1,f=!0;if(typeof e!=`function`)throw TypeError(Fe);t=Ne(t)||0,F(n)&&(u=!!n.leading,d=`maxWait`in n,a=d?Ie(Ne(n.maxWait)||0,t):a,f=`trailing`in n?!!n.trailing:f);function p(t){var n=r,a=i;return r=i=void 0,l=t,o=e.apply(a,n),o}function m(e){return l=e,s=setTimeout(_,t),u?p(e):o}function h(e){var n=e-c,r=e-l,i=t-n;return d?Le(i,a-r):i}function g(e){var n=e-c,r=e-l;return c===void 0||n>=t||n<0||d&&r>=a}function _(){var e=Pe();if(g(e))return v(e);s=setTimeout(_,h(e))}function v(e){return s=void 0,f&&r?p(e):(r=i=void 0,o)}function y(){s!==void 0&&clearTimeout(s),l=0,r=c=i=s=void 0}function b(){return s===void 0?o:v(Pe())}function x(){var e=Pe(),n=g(e);if(r=arguments,i=this,c=e,n){if(s===void 0)return m(c);if(d)return clearTimeout(s),s=setTimeout(_,t),p(c)}return s===void 0&&(s=setTimeout(_,t)),o}return x.cancel=y,x.flush=b,x}var ze=`Expected a function`;function Be(e,t,n){var r=!0,i=!0;if(typeof e!=`function`)throw TypeError(ze);return F(n)&&(r=`leading`in n?!!n.leading:r,i=`trailing`in n?!!n.trailing:i),Re(e,t,{leading:r,maxWait:t,trailing:i})}var Ve=ee(`n-tabs`),He={tab:[String,Number,Object,Function],name:{type:[String,Number],required:!0},disabled:Boolean,displayDirective:{type:String,default:`if`},closable:{type:Boolean,default:void 0},tabProps:Object,label:[String,Number,Object,Function]},$=x({__TAB_PANE__:!0,name:`TabPane`,alias:[`TabPanel`],props:He,slots:Object,setup(e){let t=a(Ve,null);return t||j(`tab-pane`,"`n-tab-pane` must be placed inside `n-tabs`."),{style:t.paneStyleRef,class:t.paneClassRef,mergedClsPrefix:t.mergedClsPrefixRef}},render(){return l(`div`,{class:[`${this.mergedClsPrefix}-tab-pane`,this.class],style:this.style},this.$slots)}}),Ue=x({__TAB__:!0,inheritAttrs:!1,name:`Tab`,props:Object.assign({internalLeftPadded:Boolean,internalAddable:Boolean,internalCreatedByPane:Boolean},ge(He,[`displayDirective`])),setup(e){let{mergedClsPrefixRef:t,valueRef:r,typeRef:i,closableRef:o,tabStyleRef:s,addTabStyleRef:c,tabClassRef:l,addTabClassRef:u,tabChangeIdRef:d,onBeforeLeaveRef:f,triggerRef:p,handleAdd:m,activateTab:h,handleClose:g}=a(Ve);return{trigger:p,mergedClosable:n(()=>{if(e.internalAddable)return!1;let{closable:t}=e;return t===void 0?o.value:t}),style:s,addStyle:c,tabClass:l,addTabClass:u,clsPrefix:t,value:r,type:i,handleClose(t){t.stopPropagation(),!e.disabled&&g(e.name)},activateTab(){if(e.disabled)return;if(e.internalAddable){m();return}let{name:t}=e,n=++d.id;if(t!==r.value){let{value:i}=f;i?Promise.resolve(i(e.name,r.value)).then(e=>{e&&d.id===n&&h(t)}):h(t)}}}},render(){let{internalAddable:e,clsPrefix:t,name:n,disabled:r,label:i,tab:a,value:o,mergedClosable:s,trigger:u,$slots:{default:d}}=this,f=i??a;return l(`div`,{class:`${t}-tabs-tab-wrapper`},this.internalLeftPadded?l(`div`,{class:`${t}-tabs-tab-pad`}):null,l(`div`,Object.assign({key:n,"data-name":n,"data-disabled":r?!0:void 0},c({class:[`${t}-tabs-tab`,o===n&&`${t}-tabs-tab--active`,r&&`${t}-tabs-tab--disabled`,s&&`${t}-tabs-tab--closable`,e&&`${t}-tabs-tab--addable`,e?this.addTabClass:this.tabClass],onClick:u===`click`?this.activateTab:void 0,onMouseenter:u===`hover`?this.activateTab:void 0,style:e?this.addStyle:this.style},this.internalCreatedByPane?this.tabProps||{}:this.$attrs)),l(`span`,{class:`${t}-tabs-tab__label`},e?l(D,null,l(`div`,{class:`${t}-tabs-tab__height-placeholder`},`\xA0`),l(fe,{clsPrefix:t},{default:()=>l(_e,null)})):d?d():typeof f==`object`?f:se(f??n)),s&&this.type===`card`?l(he,{clsPrefix:t,class:`${t}-tabs-tab__close`,onClick:this.handleClose,disabled:r}):null))}}),We=M(`tabs`,`
|
|
2
|
+
box-sizing: border-box;
|
|
3
|
+
width: 100%;
|
|
4
|
+
display: flex;
|
|
5
|
+
flex-direction: column;
|
|
6
|
+
transition:
|
|
7
|
+
background-color .3s var(--n-bezier),
|
|
8
|
+
border-color .3s var(--n-bezier);
|
|
9
|
+
`,[N(`segment-type`,[M(`tabs-rail`,[R(`&.transition-disabled`,[M(`tabs-capsule`,`
|
|
10
|
+
transition: none;
|
|
11
|
+
`)])])]),N(`top`,[M(`tab-pane`,`
|
|
12
|
+
padding: var(--n-pane-padding-top) var(--n-pane-padding-right) var(--n-pane-padding-bottom) var(--n-pane-padding-left);
|
|
13
|
+
`)]),N(`left`,[M(`tab-pane`,`
|
|
14
|
+
padding: var(--n-pane-padding-right) var(--n-pane-padding-bottom) var(--n-pane-padding-left) var(--n-pane-padding-top);
|
|
15
|
+
`)]),N(`left, right`,`
|
|
16
|
+
flex-direction: row;
|
|
17
|
+
`,[M(`tabs-bar`,`
|
|
18
|
+
width: 2px;
|
|
19
|
+
right: 0;
|
|
20
|
+
transition:
|
|
21
|
+
top .2s var(--n-bezier),
|
|
22
|
+
max-height .2s var(--n-bezier),
|
|
23
|
+
background-color .3s var(--n-bezier);
|
|
24
|
+
`),M(`tabs-tab`,`
|
|
25
|
+
padding: var(--n-tab-padding-vertical);
|
|
26
|
+
`)]),N(`right`,`
|
|
27
|
+
flex-direction: row-reverse;
|
|
28
|
+
`,[M(`tab-pane`,`
|
|
29
|
+
padding: var(--n-pane-padding-left) var(--n-pane-padding-top) var(--n-pane-padding-right) var(--n-pane-padding-bottom);
|
|
30
|
+
`),M(`tabs-bar`,`
|
|
31
|
+
left: 0;
|
|
32
|
+
`)]),N(`bottom`,`
|
|
33
|
+
flex-direction: column-reverse;
|
|
34
|
+
justify-content: flex-end;
|
|
35
|
+
`,[M(`tab-pane`,`
|
|
36
|
+
padding: var(--n-pane-padding-bottom) var(--n-pane-padding-right) var(--n-pane-padding-top) var(--n-pane-padding-left);
|
|
37
|
+
`),M(`tabs-bar`,`
|
|
38
|
+
top: 0;
|
|
39
|
+
`)]),M(`tabs-rail`,`
|
|
40
|
+
position: relative;
|
|
41
|
+
padding: 3px;
|
|
42
|
+
border-radius: var(--n-tab-border-radius);
|
|
43
|
+
width: 100%;
|
|
44
|
+
background-color: var(--n-color-segment);
|
|
45
|
+
transition: background-color .3s var(--n-bezier);
|
|
46
|
+
display: flex;
|
|
47
|
+
align-items: center;
|
|
48
|
+
`,[M(`tabs-capsule`,`
|
|
49
|
+
border-radius: var(--n-tab-border-radius);
|
|
50
|
+
position: absolute;
|
|
51
|
+
pointer-events: none;
|
|
52
|
+
background-color: var(--n-tab-color-segment);
|
|
53
|
+
box-shadow: 0 1px 3px 0 rgba(0, 0, 0, .08);
|
|
54
|
+
transition: transform 0.3s var(--n-bezier);
|
|
55
|
+
`),M(`tabs-tab-wrapper`,`
|
|
56
|
+
flex-basis: 0;
|
|
57
|
+
flex-grow: 1;
|
|
58
|
+
display: flex;
|
|
59
|
+
align-items: center;
|
|
60
|
+
justify-content: center;
|
|
61
|
+
`,[M(`tabs-tab`,`
|
|
62
|
+
overflow: hidden;
|
|
63
|
+
border-radius: var(--n-tab-border-radius);
|
|
64
|
+
width: 100%;
|
|
65
|
+
display: flex;
|
|
66
|
+
align-items: center;
|
|
67
|
+
justify-content: center;
|
|
68
|
+
`,[N(`active`,`
|
|
69
|
+
font-weight: var(--n-font-weight-strong);
|
|
70
|
+
color: var(--n-tab-text-color-active);
|
|
71
|
+
`),R(`&:hover`,`
|
|
72
|
+
color: var(--n-tab-text-color-hover);
|
|
73
|
+
`)])])]),N(`flex`,[M(`tabs-nav`,`
|
|
74
|
+
width: 100%;
|
|
75
|
+
position: relative;
|
|
76
|
+
`,[M(`tabs-wrapper`,`
|
|
77
|
+
width: 100%;
|
|
78
|
+
`,[M(`tabs-tab`,`
|
|
79
|
+
margin-right: 0;
|
|
80
|
+
`)])])]),M(`tabs-nav`,`
|
|
81
|
+
box-sizing: border-box;
|
|
82
|
+
line-height: 1.5;
|
|
83
|
+
display: flex;
|
|
84
|
+
transition: border-color .3s var(--n-bezier);
|
|
85
|
+
`,[z(`prefix, suffix`,`
|
|
86
|
+
display: flex;
|
|
87
|
+
align-items: center;
|
|
88
|
+
`),z(`prefix`,`padding-right: 16px;`),z(`suffix`,`padding-left: 16px;`)]),N(`top, bottom`,[R(`>`,[M(`tabs-nav`,[M(`tabs-nav-scroll-wrapper`,[R(`&::before`,`
|
|
89
|
+
top: 0;
|
|
90
|
+
bottom: 0;
|
|
91
|
+
left: 0;
|
|
92
|
+
width: 20px;
|
|
93
|
+
`),R(`&::after`,`
|
|
94
|
+
top: 0;
|
|
95
|
+
bottom: 0;
|
|
96
|
+
right: 0;
|
|
97
|
+
width: 20px;
|
|
98
|
+
`),N(`shadow-start`,[R(`&::before`,`
|
|
99
|
+
box-shadow: inset 10px 0 8px -8px rgba(0, 0, 0, .12);
|
|
100
|
+
`)]),N(`shadow-end`,[R(`&::after`,`
|
|
101
|
+
box-shadow: inset -10px 0 8px -8px rgba(0, 0, 0, .12);
|
|
102
|
+
`)])])])])]),N(`left, right`,[M(`tabs-nav-scroll-content`,`
|
|
103
|
+
flex-direction: column;
|
|
104
|
+
`),R(`>`,[M(`tabs-nav`,[M(`tabs-nav-scroll-wrapper`,[R(`&::before`,`
|
|
105
|
+
top: 0;
|
|
106
|
+
left: 0;
|
|
107
|
+
right: 0;
|
|
108
|
+
height: 20px;
|
|
109
|
+
`),R(`&::after`,`
|
|
110
|
+
bottom: 0;
|
|
111
|
+
left: 0;
|
|
112
|
+
right: 0;
|
|
113
|
+
height: 20px;
|
|
114
|
+
`),N(`shadow-start`,[R(`&::before`,`
|
|
115
|
+
box-shadow: inset 0 10px 8px -8px rgba(0, 0, 0, .12);
|
|
116
|
+
`)]),N(`shadow-end`,[R(`&::after`,`
|
|
117
|
+
box-shadow: inset 0 -10px 8px -8px rgba(0, 0, 0, .12);
|
|
118
|
+
`)])])])])]),M(`tabs-nav-scroll-wrapper`,`
|
|
119
|
+
flex: 1;
|
|
120
|
+
position: relative;
|
|
121
|
+
overflow: hidden;
|
|
122
|
+
`,[M(`tabs-nav-y-scroll`,`
|
|
123
|
+
height: 100%;
|
|
124
|
+
width: 100%;
|
|
125
|
+
overflow-y: auto;
|
|
126
|
+
scrollbar-width: none;
|
|
127
|
+
`,[R(`&::-webkit-scrollbar, &::-webkit-scrollbar-track-piece, &::-webkit-scrollbar-thumb`,`
|
|
128
|
+
width: 0;
|
|
129
|
+
height: 0;
|
|
130
|
+
display: none;
|
|
131
|
+
`)]),R(`&::before, &::after`,`
|
|
132
|
+
transition: box-shadow .3s var(--n-bezier);
|
|
133
|
+
pointer-events: none;
|
|
134
|
+
content: "";
|
|
135
|
+
position: absolute;
|
|
136
|
+
z-index: 1;
|
|
137
|
+
`)]),M(`tabs-nav-scroll-content`,`
|
|
138
|
+
display: flex;
|
|
139
|
+
position: relative;
|
|
140
|
+
min-width: 100%;
|
|
141
|
+
min-height: 100%;
|
|
142
|
+
width: fit-content;
|
|
143
|
+
box-sizing: border-box;
|
|
144
|
+
`),M(`tabs-wrapper`,`
|
|
145
|
+
display: inline-flex;
|
|
146
|
+
flex-wrap: nowrap;
|
|
147
|
+
position: relative;
|
|
148
|
+
`),M(`tabs-tab-wrapper`,`
|
|
149
|
+
display: flex;
|
|
150
|
+
flex-wrap: nowrap;
|
|
151
|
+
flex-shrink: 0;
|
|
152
|
+
flex-grow: 0;
|
|
153
|
+
`),M(`tabs-tab`,`
|
|
154
|
+
cursor: pointer;
|
|
155
|
+
white-space: nowrap;
|
|
156
|
+
flex-wrap: nowrap;
|
|
157
|
+
display: inline-flex;
|
|
158
|
+
align-items: center;
|
|
159
|
+
color: var(--n-tab-text-color);
|
|
160
|
+
font-size: var(--n-tab-font-size);
|
|
161
|
+
background-clip: padding-box;
|
|
162
|
+
padding: var(--n-tab-padding);
|
|
163
|
+
transition:
|
|
164
|
+
box-shadow .3s var(--n-bezier),
|
|
165
|
+
color .3s var(--n-bezier),
|
|
166
|
+
background-color .3s var(--n-bezier),
|
|
167
|
+
border-color .3s var(--n-bezier);
|
|
168
|
+
`,[N(`disabled`,{cursor:`not-allowed`}),z(`close`,`
|
|
169
|
+
margin-left: 6px;
|
|
170
|
+
transition:
|
|
171
|
+
background-color .3s var(--n-bezier),
|
|
172
|
+
color .3s var(--n-bezier);
|
|
173
|
+
`),z(`label`,`
|
|
174
|
+
display: flex;
|
|
175
|
+
align-items: center;
|
|
176
|
+
z-index: 1;
|
|
177
|
+
`)]),M(`tabs-bar`,`
|
|
178
|
+
position: absolute;
|
|
179
|
+
bottom: 0;
|
|
180
|
+
height: 2px;
|
|
181
|
+
border-radius: 1px;
|
|
182
|
+
background-color: var(--n-bar-color);
|
|
183
|
+
transition:
|
|
184
|
+
left .2s var(--n-bezier),
|
|
185
|
+
max-width .2s var(--n-bezier),
|
|
186
|
+
opacity .3s var(--n-bezier),
|
|
187
|
+
background-color .3s var(--n-bezier);
|
|
188
|
+
`,[R(`&.transition-disabled`,`
|
|
189
|
+
transition: none;
|
|
190
|
+
`),N(`disabled`,`
|
|
191
|
+
background-color: var(--n-tab-text-color-disabled)
|
|
192
|
+
`)]),M(`tabs-pane-wrapper`,`
|
|
193
|
+
position: relative;
|
|
194
|
+
overflow: hidden;
|
|
195
|
+
transition: max-height .2s var(--n-bezier);
|
|
196
|
+
`),M(`tab-pane`,`
|
|
197
|
+
color: var(--n-pane-text-color);
|
|
198
|
+
width: 100%;
|
|
199
|
+
transition:
|
|
200
|
+
color .3s var(--n-bezier),
|
|
201
|
+
background-color .3s var(--n-bezier),
|
|
202
|
+
opacity .2s var(--n-bezier);
|
|
203
|
+
left: 0;
|
|
204
|
+
right: 0;
|
|
205
|
+
top: 0;
|
|
206
|
+
`,[R(`&.next-transition-leave-active, &.prev-transition-leave-active, &.next-transition-enter-active, &.prev-transition-enter-active`,`
|
|
207
|
+
transition:
|
|
208
|
+
color .3s var(--n-bezier),
|
|
209
|
+
background-color .3s var(--n-bezier),
|
|
210
|
+
transform .2s var(--n-bezier),
|
|
211
|
+
opacity .2s var(--n-bezier);
|
|
212
|
+
`),R(`&.next-transition-leave-active, &.prev-transition-leave-active`,`
|
|
213
|
+
position: absolute;
|
|
214
|
+
`),R(`&.next-transition-enter-from, &.prev-transition-leave-to`,`
|
|
215
|
+
transform: translateX(32px);
|
|
216
|
+
opacity: 0;
|
|
217
|
+
`),R(`&.next-transition-leave-to, &.prev-transition-enter-from`,`
|
|
218
|
+
transform: translateX(-32px);
|
|
219
|
+
opacity: 0;
|
|
220
|
+
`),R(`&.next-transition-leave-from, &.next-transition-enter-to, &.prev-transition-leave-from, &.prev-transition-enter-to`,`
|
|
221
|
+
transform: translateX(0);
|
|
222
|
+
opacity: 1;
|
|
223
|
+
`)]),M(`tabs-tab-pad`,`
|
|
224
|
+
box-sizing: border-box;
|
|
225
|
+
width: var(--n-tab-gap);
|
|
226
|
+
flex-grow: 0;
|
|
227
|
+
flex-shrink: 0;
|
|
228
|
+
`),N(`line-type, bar-type`,[M(`tabs-tab`,`
|
|
229
|
+
font-weight: var(--n-tab-font-weight);
|
|
230
|
+
box-sizing: border-box;
|
|
231
|
+
vertical-align: bottom;
|
|
232
|
+
`,[R(`&:hover`,{color:`var(--n-tab-text-color-hover)`}),N(`active`,`
|
|
233
|
+
color: var(--n-tab-text-color-active);
|
|
234
|
+
font-weight: var(--n-tab-font-weight-active);
|
|
235
|
+
`),N(`disabled`,{color:`var(--n-tab-text-color-disabled)`})])]),M(`tabs-nav`,[N(`line-type`,[N(`top`,[z(`prefix, suffix`,`
|
|
236
|
+
border-bottom: 1px solid var(--n-tab-border-color);
|
|
237
|
+
`),M(`tabs-nav-scroll-content`,`
|
|
238
|
+
border-bottom: 1px solid var(--n-tab-border-color);
|
|
239
|
+
`),M(`tabs-bar`,`
|
|
240
|
+
bottom: -1px;
|
|
241
|
+
`)]),N(`left`,[z(`prefix, suffix`,`
|
|
242
|
+
border-right: 1px solid var(--n-tab-border-color);
|
|
243
|
+
`),M(`tabs-nav-scroll-content`,`
|
|
244
|
+
border-right: 1px solid var(--n-tab-border-color);
|
|
245
|
+
`),M(`tabs-bar`,`
|
|
246
|
+
right: -1px;
|
|
247
|
+
`)]),N(`right`,[z(`prefix, suffix`,`
|
|
248
|
+
border-left: 1px solid var(--n-tab-border-color);
|
|
249
|
+
`),M(`tabs-nav-scroll-content`,`
|
|
250
|
+
border-left: 1px solid var(--n-tab-border-color);
|
|
251
|
+
`),M(`tabs-bar`,`
|
|
252
|
+
left: -1px;
|
|
253
|
+
`)]),N(`bottom`,[z(`prefix, suffix`,`
|
|
254
|
+
border-top: 1px solid var(--n-tab-border-color);
|
|
255
|
+
`),M(`tabs-nav-scroll-content`,`
|
|
256
|
+
border-top: 1px solid var(--n-tab-border-color);
|
|
257
|
+
`),M(`tabs-bar`,`
|
|
258
|
+
top: -1px;
|
|
259
|
+
`)]),z(`prefix, suffix`,`
|
|
260
|
+
transition: border-color .3s var(--n-bezier);
|
|
261
|
+
`),M(`tabs-nav-scroll-content`,`
|
|
262
|
+
transition: border-color .3s var(--n-bezier);
|
|
263
|
+
`),M(`tabs-bar`,`
|
|
264
|
+
border-radius: 0;
|
|
265
|
+
`)]),N(`card-type`,[z(`prefix, suffix`,`
|
|
266
|
+
transition: border-color .3s var(--n-bezier);
|
|
267
|
+
`),M(`tabs-pad`,`
|
|
268
|
+
flex-grow: 1;
|
|
269
|
+
transition: border-color .3s var(--n-bezier);
|
|
270
|
+
`),M(`tabs-tab-pad`,`
|
|
271
|
+
transition: border-color .3s var(--n-bezier);
|
|
272
|
+
`),M(`tabs-tab`,`
|
|
273
|
+
font-weight: var(--n-tab-font-weight);
|
|
274
|
+
border: 1px solid var(--n-tab-border-color);
|
|
275
|
+
background-color: var(--n-tab-color);
|
|
276
|
+
box-sizing: border-box;
|
|
277
|
+
position: relative;
|
|
278
|
+
vertical-align: bottom;
|
|
279
|
+
display: flex;
|
|
280
|
+
justify-content: space-between;
|
|
281
|
+
font-size: var(--n-tab-font-size);
|
|
282
|
+
color: var(--n-tab-text-color);
|
|
283
|
+
`,[N(`addable`,`
|
|
284
|
+
padding-left: 8px;
|
|
285
|
+
padding-right: 8px;
|
|
286
|
+
font-size: 16px;
|
|
287
|
+
justify-content: center;
|
|
288
|
+
`,[z(`height-placeholder`,`
|
|
289
|
+
width: 0;
|
|
290
|
+
font-size: var(--n-tab-font-size);
|
|
291
|
+
`),P(`disabled`,[R(`&:hover`,`
|
|
292
|
+
color: var(--n-tab-text-color-hover);
|
|
293
|
+
`)])]),N(`closable`,`padding-right: 8px;`),N(`active`,`
|
|
294
|
+
background-color: #0000;
|
|
295
|
+
font-weight: var(--n-tab-font-weight-active);
|
|
296
|
+
color: var(--n-tab-text-color-active);
|
|
297
|
+
`),N(`disabled`,`color: var(--n-tab-text-color-disabled);`)])]),N(`left, right`,`
|
|
298
|
+
flex-direction: column;
|
|
299
|
+
`,[z(`prefix, suffix`,`
|
|
300
|
+
padding: var(--n-tab-padding-vertical);
|
|
301
|
+
`),M(`tabs-wrapper`,`
|
|
302
|
+
flex-direction: column;
|
|
303
|
+
`),M(`tabs-tab-wrapper`,`
|
|
304
|
+
flex-direction: column;
|
|
305
|
+
`,[M(`tabs-tab-pad`,`
|
|
306
|
+
height: var(--n-tab-gap-vertical);
|
|
307
|
+
width: 100%;
|
|
308
|
+
`)])]),N(`top`,[N(`card-type`,[M(`tabs-scroll-padding`,`border-bottom: 1px solid var(--n-tab-border-color);`),z(`prefix, suffix`,`
|
|
309
|
+
border-bottom: 1px solid var(--n-tab-border-color);
|
|
310
|
+
`),M(`tabs-tab`,`
|
|
311
|
+
border-top-left-radius: var(--n-tab-border-radius);
|
|
312
|
+
border-top-right-radius: var(--n-tab-border-radius);
|
|
313
|
+
`,[N(`active`,`
|
|
314
|
+
border-bottom: 1px solid #0000;
|
|
315
|
+
`)]),M(`tabs-tab-pad`,`
|
|
316
|
+
border-bottom: 1px solid var(--n-tab-border-color);
|
|
317
|
+
`),M(`tabs-pad`,`
|
|
318
|
+
border-bottom: 1px solid var(--n-tab-border-color);
|
|
319
|
+
`)])]),N(`left`,[N(`card-type`,[M(`tabs-scroll-padding`,`border-right: 1px solid var(--n-tab-border-color);`),z(`prefix, suffix`,`
|
|
320
|
+
border-right: 1px solid var(--n-tab-border-color);
|
|
321
|
+
`),M(`tabs-tab`,`
|
|
322
|
+
border-top-left-radius: var(--n-tab-border-radius);
|
|
323
|
+
border-bottom-left-radius: var(--n-tab-border-radius);
|
|
324
|
+
`,[N(`active`,`
|
|
325
|
+
border-right: 1px solid #0000;
|
|
326
|
+
`)]),M(`tabs-tab-pad`,`
|
|
327
|
+
border-right: 1px solid var(--n-tab-border-color);
|
|
328
|
+
`),M(`tabs-pad`,`
|
|
329
|
+
border-right: 1px solid var(--n-tab-border-color);
|
|
330
|
+
`)])]),N(`right`,[N(`card-type`,[M(`tabs-scroll-padding`,`border-left: 1px solid var(--n-tab-border-color);`),z(`prefix, suffix`,`
|
|
331
|
+
border-left: 1px solid var(--n-tab-border-color);
|
|
332
|
+
`),M(`tabs-tab`,`
|
|
333
|
+
border-top-right-radius: var(--n-tab-border-radius);
|
|
334
|
+
border-bottom-right-radius: var(--n-tab-border-radius);
|
|
335
|
+
`,[N(`active`,`
|
|
336
|
+
border-left: 1px solid #0000;
|
|
337
|
+
`)]),M(`tabs-tab-pad`,`
|
|
338
|
+
border-left: 1px solid var(--n-tab-border-color);
|
|
339
|
+
`),M(`tabs-pad`,`
|
|
340
|
+
border-left: 1px solid var(--n-tab-border-color);
|
|
341
|
+
`)])]),N(`bottom`,[N(`card-type`,[M(`tabs-scroll-padding`,`border-top: 1px solid var(--n-tab-border-color);`),z(`prefix, suffix`,`
|
|
342
|
+
border-top: 1px solid var(--n-tab-border-color);
|
|
343
|
+
`),M(`tabs-tab`,`
|
|
344
|
+
border-bottom-left-radius: var(--n-tab-border-radius);
|
|
345
|
+
border-bottom-right-radius: var(--n-tab-border-radius);
|
|
346
|
+
`,[N(`active`,`
|
|
347
|
+
border-top: 1px solid #0000;
|
|
348
|
+
`)]),M(`tabs-tab-pad`,`
|
|
349
|
+
border-top: 1px solid var(--n-tab-border-color);
|
|
350
|
+
`),M(`tabs-pad`,`
|
|
351
|
+
border-top: 1px solid var(--n-tab-border-color);
|
|
352
|
+
`)])])])]),Ge=Be,Ke=x({name:`Tabs`,props:Object.assign(Object.assign({},ie.props),{value:[String,Number],defaultValue:[String,Number],trigger:{type:String,default:`click`},type:{type:String,default:`bar`},closable:Boolean,justifyContent:String,size:String,placement:{type:String,default:`top`},tabStyle:[String,Object],tabClass:String,addTabStyle:[String,Object],addTabClass:String,barWidth:Number,paneClass:String,paneStyle:[String,Object],paneWrapperClass:String,paneWrapperStyle:[String,Object],addable:[Boolean,Object],tabsPadding:{type:Number,default:0},animated:Boolean,onBeforeLeave:Function,onAdd:Function,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onClose:[Function,Array],labelSize:String,activeName:[String,Number],onActiveNameChange:[Function,Array]}),slots:Object,setup(e,{slots:t}){let{mergedClsPrefixRef:r,inlineThemeDisabled:i,mergedComponentPropsRef:a}=te(e),o=ie(`Tabs`,`-tabs`,We,ve,e,r),c=g(null),l=g(null),u=g(null),f=g(null),v=g(null),y=g(null),b=g(!0),x=g(!0),S=me(e,[`labelSize`,`size`]),C=n(()=>S.value?S.value:a?.value?.Tabs?.size||`medium`),w=me(e,[`activeName`,`value`]),T=g(w.value??e.defaultValue??(t.default?ce(t.default())[0]?.props?.name:null)),E=ue(w,T),D={id:0},O=n(()=>{if(!(!e.justifyContent||e.type===`card`))return{display:`flex`,justifyContent:e.justifyContent}});m(E,()=>{D.id=0,j(),re()});function k(){let{value:e}=E;return e===null?null:c.value?.querySelector(`[data-name="${e}"]`)}function ee(t){if(e.type===`card`)return;let{value:n}=l;if(!n)return;let i=n.style.opacity===`0`;if(t){let a=`${r.value}-tabs-bar--disabled`,{barWidth:o,placement:s}=e;if(t.dataset.disabled===`true`?n.classList.add(a):n.classList.remove(a),[`top`,`bottom`].includes(s)){if(A([`top`,`maxHeight`,`height`]),typeof o==`number`&&t.offsetWidth>=o){let e=Math.floor((t.offsetWidth-o)/2)+t.offsetLeft;n.style.left=`${e}px`,n.style.maxWidth=`${o}px`}else n.style.left=`${t.offsetLeft}px`,n.style.maxWidth=`${t.offsetWidth}px`;n.style.width=`8192px`,i&&(n.style.transition=`none`),n.offsetWidth,i&&(n.style.transition=``,n.style.opacity=`1`)}else{if(A([`left`,`maxWidth`,`width`]),typeof o==`number`&&t.offsetHeight>=o){let e=Math.floor((t.offsetHeight-o)/2)+t.offsetTop;n.style.top=`${e}px`,n.style.maxHeight=`${o}px`}else n.style.top=`${t.offsetTop}px`,n.style.maxHeight=`${t.offsetHeight}px`;n.style.height=`8192px`,i&&(n.style.transition=`none`),n.offsetHeight,i&&(n.style.transition=``,n.style.opacity=`1`)}}}function ne(){if(e.type===`card`)return;let{value:t}=l;t&&(t.style.opacity=`0`)}function A(e){let{value:t}=l;if(t)for(let n of e)t.style[n]=``}function j(){if(e.type===`card`)return;let t=k();t?ee(t):ne()}function re(){let e=v.value?.$el;if(!e)return;let t=k();if(!t)return;let{scrollLeft:n,offsetWidth:r}=e,{offsetLeft:i,offsetWidth:a}=t;n>i?e.scrollTo({top:0,left:i,behavior:`smooth`}):i+a>n+r&&e.scrollTo({top:0,left:i+a-r,behavior:`smooth`})}let M=g(null),N=0,P=null;function F(e){let t=M.value;if(t){N=e.getBoundingClientRect().height;let n=`${N}px`,r=()=>{t.style.height=n,t.style.maxHeight=n};P?(r(),P(),P=null):P=r}}function R(e){let t=M.value;if(t){let n=e.getBoundingClientRect().height,r=()=>{document.body.offsetHeight,t.style.maxHeight=`${n}px`,t.style.height=`${Math.max(N,n)}px`};P?(P(),P=null,r()):P=r}}function z(){let t=M.value;if(t){t.style.maxHeight=``,t.style.height=``;let{paneWrapperStyle:n}=e;if(typeof n==`string`)t.style.cssText=n;else if(n){let{maxHeight:e,height:r}=n;e!==void 0&&(t.style.maxHeight=e),r!==void 0&&(t.style.height=r)}}}let se={value:[]},B=g(`next`);function le(e){let t=E.value,n=`next`;for(let r of se.value){if(r===t)break;if(r===e){n=`prev`;break}}B.value=n,V(e)}function V(t){let{onActiveNameChange:n,onUpdateValue:r,"onUpdate:value":i}=e;n&&L(n,t),r&&L(r,t),i&&L(i,t),T.value=t}function de(t){let{onClose:n}=e;n&&L(n,t)}let fe=!0;function he(){let{value:e}=l;if(!e)return;fe||=!1;let t=`transition-disabled`;e.classList.add(t),j(),e.classList.remove(t)}let U=g(null);function W({transitionDisabled:e}){let t=c.value;if(!t)return;e&&t.classList.add(`transition-disabled`);let n=k();n&&U.value&&(U.value.style.width=`${n.offsetWidth}px`,U.value.style.height=`${n.offsetHeight}px`,U.value.style.transform=`translateX(${n.offsetLeft-pe(getComputedStyle(t).paddingLeft)}px)`,e&&U.value.offsetWidth),e&&t.classList.remove(`transition-disabled`)}m([E],()=>{e.type===`segment`&&d(()=>{W({transitionDisabled:!1})})}),p(()=>{e.type===`segment`&&W({transitionDisabled:!0})});let G=0;function ge(t){if(t.contentRect.width===0&&t.contentRect.height===0||G===t.contentRect.width)return;G=t.contentRect.width;let{type:n}=e;if((n===`line`||n===`bar`)&&(fe||e.justifyContent?.startsWith(`space`))&&he(),n!==`segment`){let{placement:t}=e;X((t===`top`||t===`bottom`?v.value?.$el:y.value)||null)}}let _e=Ge(ge,64);m([()=>e.justifyContent,()=>e.size],()=>{d(()=>{let{type:t}=e;(t===`line`||t===`bar`)&&he()})});let K=g(!1);function q(t){let{target:n,contentRect:{width:r,height:i}}=t,a=n.parentElement.parentElement.offsetWidth,o=n.parentElement.parentElement.offsetHeight,{placement:s}=e;if(!K.value)s===`top`||s===`bottom`?a<r&&(K.value=!0):o<i&&(K.value=!0);else{let{value:e}=f;if(!e)return;s===`top`||s===`bottom`?a-r>e.$el.offsetWidth&&(K.value=!1):o-i>e.$el.offsetHeight&&(K.value=!1)}X(v.value?.$el||null)}let J=Ge(q,64);function Y(){let{onAdd:t}=e;t&&t(),d(()=>{let e=k(),{value:t}=v;!e||!t||t.scrollTo({left:e.offsetLeft,top:0,behavior:`smooth`})})}function X(t){if(!t)return;let{placement:n}=e;if(n===`top`||n===`bottom`){let{scrollLeft:e,scrollWidth:n,offsetWidth:r}=t;b.value=e<=0,x.value=e+r>=n}else{let{scrollTop:e,scrollHeight:n,offsetHeight:r}=t;b.value=e<=0,x.value=e+r>=n}}let ye=Ge(e=>{X(e.target)},64);s(Ve,{triggerRef:_(e,`trigger`),tabStyleRef:_(e,`tabStyle`),tabClassRef:_(e,`tabClass`),addTabStyleRef:_(e,`addTabStyle`),addTabClassRef:_(e,`addTabClass`),paneClassRef:_(e,`paneClass`),paneStyleRef:_(e,`paneStyle`),mergedClsPrefixRef:r,typeRef:_(e,`type`),closableRef:_(e,`closable`),valueRef:E,tabChangeIdRef:D,onBeforeLeaveRef:_(e,`onBeforeLeave`),activateTab:le,handleClose:de,handleAdd:Y}),oe(()=>{j(),re()}),h(()=>{let{value:e}=u;if(!e)return;let{value:t}=r,n=`${t}-tabs-nav-scroll-wrapper--shadow-start`,i=`${t}-tabs-nav-scroll-wrapper--shadow-end`;b.value?e.classList.remove(n):e.classList.add(n),x.value?e.classList.remove(i):e.classList.add(i)});let be={syncBarPosition:()=>{j()}},Z=()=>{W({transitionDisabled:!0})},Q=n(()=>{let{value:t}=C,{type:n}=e,r=`${t}${{card:`Card`,bar:`Bar`,line:`Line`,segment:`Segment`}[n]}`,{self:{barColor:i,closeIconColor:a,closeIconColorHover:s,closeIconColorPressed:c,tabColor:l,tabBorderColor:u,paneTextColor:d,tabFontWeight:f,tabBorderRadius:p,tabFontWeightActive:m,colorSegment:h,fontWeightStrong:g,tabColorSegment:_,closeSize:v,closeIconSize:y,closeColorHover:b,closeColorPressed:x,closeBorderRadius:S,[I(`panePadding`,t)]:w,[I(`tabPadding`,r)]:T,[I(`tabPaddingVertical`,r)]:E,[I(`tabGap`,r)]:D,[I(`tabGap`,`${r}Vertical`)]:O,[I(`tabTextColor`,n)]:k,[I(`tabTextColorActive`,n)]:ee,[I(`tabTextColorHover`,n)]:te,[I(`tabTextColorDisabled`,n)]:ne,[I(`tabFontSize`,t)]:A},common:{cubicBezierEaseInOut:j}}=o.value;return{"--n-bezier":j,"--n-color-segment":h,"--n-bar-color":i,"--n-tab-font-size":A,"--n-tab-text-color":k,"--n-tab-text-color-active":ee,"--n-tab-text-color-disabled":ne,"--n-tab-text-color-hover":te,"--n-pane-text-color":d,"--n-tab-border-color":u,"--n-tab-border-radius":p,"--n-close-size":v,"--n-close-icon-size":y,"--n-close-color-hover":b,"--n-close-color-pressed":x,"--n-close-border-radius":S,"--n-close-icon-color":a,"--n-close-icon-color-hover":s,"--n-close-icon-color-pressed":c,"--n-tab-color":l,"--n-tab-font-weight":f,"--n-tab-font-weight-active":m,"--n-tab-padding":T,"--n-tab-padding-vertical":E,"--n-tab-gap":D,"--n-tab-gap-vertical":O,"--n-pane-padding-left":H(w,`left`),"--n-pane-padding-right":H(w,`right`),"--n-pane-padding-top":H(w,`top`),"--n-pane-padding-bottom":H(w,`bottom`),"--n-font-weight-strong":g,"--n-tab-color-segment":_}}),xe=i?ae(`tabs`,n(()=>`${C.value[0]}${e.type[0]}`),Q,e):void 0;return Object.assign({mergedClsPrefix:r,mergedValue:E,renderedNames:new Set,segmentCapsuleElRef:U,tabsPaneWrapperRef:M,tabsElRef:c,barElRef:l,addTabInstRef:f,xScrollInstRef:v,scrollWrapperElRef:u,addTabFixed:K,tabWrapperStyle:O,handleNavResize:_e,mergedSize:C,handleScroll:ye,handleTabsResize:J,cssVars:i?void 0:Q,themeClass:xe?.themeClass,animationDirection:B,renderNameListRef:se,yScrollElRef:y,handleSegmentResize:Z,onAnimationBeforeLeave:F,onAnimationEnter:R,onAnimationAfterEnter:z,onRender:xe?.onRender},be)},render(){let{mergedClsPrefix:e,type:t,placement:n,addTabFixed:r,addable:i,mergedSize:a,renderNameListRef:o,onRender:s,paneWrapperClass:c,paneWrapperStyle:u,$slots:{default:d,prefix:f,suffix:p}}=this;s?.();let m=d?ce(d()).filter(e=>e.type.__TAB_PANE__===!0):[],h=d?ce(d()).filter(e=>e.type.__TAB__===!0):[],g=!h.length,_=t===`card`,v=t===`segment`,y=!_&&!v&&this.justifyContent;o.value=[];let b=()=>{let t=l(`div`,{style:this.tabWrapperStyle,class:`${e}-tabs-wrapper`},y?null:l(`div`,{class:`${e}-tabs-scroll-padding`,style:n===`top`||n===`bottom`?{width:`${this.tabsPadding}px`}:{height:`${this.tabsPadding}px`}}),g?m.map((e,t)=>(o.value.push(e.props.name),Xe(l(Ue,Object.assign({},e.props,{internalCreatedByPane:!0,internalLeftPadded:t!==0&&(!y||y===`center`||y===`start`||y===`end`)}),e.children?{default:e.children.tab}:void 0)))):h.map((e,t)=>(o.value.push(e.props.name),Xe(t!==0&&!y?Ye(e):e))),!r&&i&&_?Je(i,(g?m.length:h.length)!==0):null,y?null:l(`div`,{class:`${e}-tabs-scroll-padding`,style:{width:`${this.tabsPadding}px`}}));return l(`div`,{ref:`tabsElRef`,class:`${e}-tabs-nav-scroll-content`},_&&i?l(V,{onResize:this.handleTabsResize},{default:()=>t}):t,_?l(`div`,{class:`${e}-tabs-pad`}):null,_?null:l(`div`,{ref:`barElRef`,class:`${e}-tabs-bar`}))},x=v?`top`:n;return l(`div`,{class:[`${e}-tabs`,this.themeClass,`${e}-tabs--${t}-type`,`${e}-tabs--${a}-size`,y&&`${e}-tabs--flex`,`${e}-tabs--${x}`],style:this.cssVars},l(`div`,{class:[`${e}-tabs-nav--${t}-type`,`${e}-tabs-nav--${x}`,`${e}-tabs-nav`]},A(f,t=>t&&l(`div`,{class:`${e}-tabs-nav__prefix`},t)),v?l(V,{onResize:this.handleSegmentResize},{default:()=>l(`div`,{class:`${e}-tabs-rail`,ref:`tabsElRef`},l(`div`,{class:`${e}-tabs-capsule`,ref:`segmentCapsuleElRef`},l(`div`,{class:`${e}-tabs-wrapper`},l(`div`,{class:`${e}-tabs-tab`}))),g?m.map((e,t)=>(o.value.push(e.props.name),l(Ue,Object.assign({},e.props,{internalCreatedByPane:!0,internalLeftPadded:t!==0}),e.children?{default:e.children.tab}:void 0))):h.map((e,t)=>(o.value.push(e.props.name),t===0?e:Ye(e))))}):l(V,{onResize:this.handleNavResize},{default:()=>l(`div`,{class:`${e}-tabs-nav-scroll-wrapper`,ref:`scrollWrapperElRef`},[`top`,`bottom`].includes(x)?l(Ce,{ref:`xScrollInstRef`,onScroll:this.handleScroll},{default:b}):l(`div`,{class:`${e}-tabs-nav-y-scroll`,onScroll:this.handleScroll,ref:`yScrollElRef`},b()))}),r&&i&&_?Je(i,!0):null,A(p,t=>t&&l(`div`,{class:`${e}-tabs-nav__suffix`},t))),g&&(this.animated&&(x===`top`||x===`bottom`)?l(`div`,{ref:`tabsPaneWrapperRef`,style:u,class:[`${e}-tabs-pane-wrapper`,c]},qe(m,this.mergedValue,this.renderedNames,this.onAnimationBeforeLeave,this.onAnimationEnter,this.onAnimationAfterEnter,this.animationDirection)):qe(m,this.mergedValue,this.renderedNames)))}});function qe(t,n,r,i,a,o,s){let c=[];return t.forEach(t=>{let{name:i,displayDirective:a,"display-directive":o}=t.props,s=e=>a===e||o===e,l=n===i;if(t.key!==void 0&&(t.key=i),l||s(`show`)||s(`show:lazy`)&&r.has(i)){r.has(i)||r.add(i);let n=!s(`if`);c.push(n?e(t,[[b,l]]):t)}}),s?l(v,{name:`${s}-transition`,onBeforeLeave:i,onEnter:a,onAfterEnter:o},{default:()=>c}):c}function Je(e,t){return l(Ue,{ref:`addTabInstRef`,key:`__addable`,name:`__addable`,internalCreatedByPane:!0,internalAddable:!0,internalLeftPadded:t,disabled:typeof e==`object`&&e.disabled})}function Ye(e){let t=f(e);return t.props?t.props.internalLeftPadded=!0:t.props={internalLeftPadded:!0},t}function Xe(e){return Array.isArray(e.dynamicProps)?e.dynamicProps.includes(`internalLeftPadded`)||e.dynamicProps.push(`internalLeftPadded`):e.dynamicProps=[`internalLeftPadded`],e}var Ze={class:`settings-section`},Qe=k(x({__name:`DisplaySettings`,setup(e){let n=Z(),i=J(),{t:a}=O(),{mode:s,setMode:c}=ye(),l=[{label:a(`settings.display.themeLight`),value:`light`},{label:a(`settings.display.themeDark`),value:`dark`},{label:a(`settings.display.themeSystem`),value:`system`}];async function d(e){try{await n.saveSection(`display`,e),i.success(a(`settings.saved`))}catch{i.error(a(`settings.saveFailed`))}}function f(e){let t=e;c(t),d({skin:t})}return(e,i)=>(o(),r(`section`,Ze,[t(Q,{label:w(a)(`settings.display.theme`),hint:w(a)(`settings.display.themeHint`)},{default:u(()=>[t(w(W),{value:w(s),options:l,size:`small`,"consistent-menu-width":!1,class:`input-sm`,"onUpdate:value":f},null,8,[`value`])]),_:1},8,[`label`,`hint`]),t(Q,{label:w(a)(`settings.display.streaming`),hint:w(a)(`settings.display.streamingHint`)},{default:u(()=>[t(w(Y),{value:w(n).display.streaming,"onUpdate:value":i[0]||=e=>d({streaming:e})},null,8,[`value`])]),_:1},8,[`label`,`hint`]),t(Q,{label:w(a)(`settings.display.compact`),hint:w(a)(`settings.display.compactHint`)},{default:u(()=>[t(w(Y),{value:w(n).display.compact,"onUpdate:value":i[1]||=e=>d({compact:e})},null,8,[`value`])]),_:1},8,[`label`,`hint`]),t(Q,{label:w(a)(`settings.display.showReasoning`),hint:w(a)(`settings.display.showReasoningHint`)},{default:u(()=>[t(w(Y),{value:w(n).display.show_reasoning,"onUpdate:value":i[2]||=e=>d({show_reasoning:e})},null,8,[`value`])]),_:1},8,[`label`,`hint`]),t(Q,{label:w(a)(`settings.display.showCost`),hint:w(a)(`settings.display.showCostHint`)},{default:u(()=>[t(w(Y),{value:w(n).display.show_cost,"onUpdate:value":i[3]||=e=>d({show_cost:e})},null,8,[`value`])]),_:1},8,[`label`,`hint`]),t(Q,{label:w(a)(`settings.display.inlineDiffs`),hint:w(a)(`settings.display.inlineDiffsHint`)},{default:u(()=>[t(w(Y),{value:w(n).display.inline_diffs,"onUpdate:value":i[4]||=e=>d({inline_diffs:e})},null,8,[`value`])]),_:1},8,[`label`,`hint`]),t(Q,{label:w(a)(`settings.display.bellOnComplete`),hint:w(a)(`settings.display.bellOnCompleteHint`)},{default:u(()=>[t(w(Y),{value:w(n).display.bell_on_complete,"onUpdate:value":i[5]||=e=>d({bell_on_complete:e})},null,8,[`value`])]),_:1},8,[`label`,`hint`]),t(Q,{label:w(a)(`settings.display.busyInputMode`),hint:w(a)(`settings.display.busyInputModeHint`)},{default:u(()=>[t(w(Y),{value:w(n).display.busy_input_mode===`interrupt`,"onUpdate:value":i[6]||=e=>d({busy_input_mode:e?`interrupt`:`off`})},null,8,[`value`])]),_:1},8,[`label`,`hint`])]))}}),[[`__scopeId`,`data-v-e737ef30`]]),$e={class:`settings-section`},et=k(x({__name:`AgentSettings`,setup(e){let n=Z(),i=J(),{t:a}=O();async function s(e){try{await n.saveSection(`agent`,e),i.success(a(`settings.saved`))}catch{i.error(a(`settings.saveFailed`))}}return(e,i)=>(o(),r(`section`,$e,[t(Q,{label:w(a)(`settings.agent.maxTurns`),hint:w(a)(`settings.agent.maxTurnsHint`)},{default:u(()=>[t(w(q),{value:w(n).agent.max_turns,min:1,max:200,step:5,size:`small`,class:`input-sm`,"onUpdate:value":i[0]||=e=>e!=null&&s({max_turns:e})},null,8,[`value`])]),_:1},8,[`label`,`hint`]),t(Q,{label:w(a)(`settings.agent.gatewayTimeout`),hint:w(a)(`settings.agent.gatewayTimeoutHint`)},{default:u(()=>[t(w(q),{value:w(n).agent.gateway_timeout,min:60,max:7200,step:60,size:`small`,class:`input-sm`,"onUpdate:value":i[1]||=e=>e!=null&&s({gateway_timeout:e})},null,8,[`value`])]),_:1},8,[`label`,`hint`]),t(Q,{label:w(a)(`settings.agent.restartDrainTimeout`),hint:w(a)(`settings.agent.restartDrainTimeoutHint`)},{default:u(()=>[t(w(q),{value:w(n).agent.restart_drain_timeout,min:10,max:300,step:10,size:`small`,class:`input-sm`,"onUpdate:value":i[2]||=e=>e!=null&&s({restart_drain_timeout:e})},null,8,[`value`])]),_:1},8,[`label`,`hint`]),t(Q,{label:w(a)(`settings.agent.toolEnforcement`),hint:w(a)(`settings.agent.toolEnforcementHint`)},{default:u(()=>[t(w(W),{value:w(n).agent.tool_use_enforcement||`auto`,options:[{label:w(a)(`settings.agent.auto`),value:`auto`},{label:w(a)(`settings.agent.always`),value:`always`},{label:w(a)(`settings.agent.never`),value:`never`}],size:`small`,class:`input-sm`,"onUpdate:value":i[3]||=e=>s({tool_use_enforcement:e})},null,8,[`value`,`options`])]),_:1},8,[`label`,`hint`])]))}}),[[`__scopeId`,`data-v-1f96245d`]]),tt={class:`settings-section`},nt=k(x({__name:`MemorySettings`,setup(e){let n=Z(),i=J(),{t:a}=O();async function s(e){try{await n.saveSection(`memory`,e),i.success(a(`settings.saved`))}catch{i.error(a(`settings.saveFailed`))}}return(e,i)=>(o(),r(`section`,tt,[t(Q,{label:w(a)(`settings.memory.enabled`),hint:w(a)(`settings.memory.enabledHint`)},{default:u(()=>[t(w(Y),{value:w(n).memory.memory_enabled,"onUpdate:value":i[0]||=e=>s({memory_enabled:e})},null,8,[`value`])]),_:1},8,[`label`,`hint`]),t(Q,{label:w(a)(`settings.memory.userProfile`),hint:w(a)(`settings.memory.userProfileHint`)},{default:u(()=>[t(w(Y),{value:w(n).memory.user_profile_enabled,"onUpdate:value":i[1]||=e=>s({user_profile_enabled:e})},null,8,[`value`])]),_:1},8,[`label`,`hint`]),t(Q,{label:w(a)(`settings.memory.charLimit`),hint:w(a)(`settings.memory.charLimitHint`)},{default:u(()=>[t(w(q),{value:w(n).memory.memory_char_limit,min:100,max:1e4,step:100,size:`small`,class:`input-sm`,"onUpdate:value":i[2]||=e=>e!=null&&s({memory_char_limit:e})},null,8,[`value`])]),_:1},8,[`label`,`hint`]),t(Q,{label:w(a)(`settings.memory.userCharLimit`),hint:w(a)(`settings.memory.userCharLimitHint`)},{default:u(()=>[t(w(q),{value:w(n).memory.user_char_limit,min:100,max:1e4,step:100,size:`small`,class:`input-sm`,"onUpdate:value":i[3]||=e=>e!=null&&s({user_char_limit:e})},null,8,[`value`])]),_:1},8,[`label`,`hint`])]))}}),[[`__scopeId`,`data-v-0c8e2aa7`]]),rt={class:`settings-section`},it=k(x({__name:`SessionSettings`,setup(e){let n=Z(),i=J(),{t:a}=O();async function s(e){try{await n.saveSection(`session_reset`,e),i.success(a(`settings.saved`))}catch{i.error(a(`settings.saveFailed`))}}return(e,i)=>(o(),r(`section`,rt,[t(Q,{label:w(a)(`settings.session.mode`),hint:w(a)(`settings.session.modeHint`)},{default:u(()=>[t(w(W),{value:w(n).sessionReset.mode||`both`,options:[{label:w(a)(`settings.session.modeBoth`),value:`both`},{label:w(a)(`settings.session.modeIdle`),value:`idle`},{label:w(a)(`settings.session.modeHourly`),value:`hourly`}],size:`small`,class:`input-md`,"onUpdate:value":i[0]||=e=>s({mode:e})},null,8,[`value`,`options`])]),_:1},8,[`label`,`hint`]),t(Q,{label:w(a)(`settings.session.idleMinutes`),hint:w(a)(`settings.session.idleMinutesHint`)},{default:u(()=>[t(w(q),{value:w(n).sessionReset.idle_minutes,min:10,max:10080,step:30,size:`small`,class:`input-sm`,"onUpdate:value":i[1]||=e=>e!=null&&s({idle_minutes:e})},null,8,[`value`])]),_:1},8,[`label`,`hint`]),t(Q,{label:w(a)(`settings.session.atHour`),hint:w(a)(`settings.session.atHourHint`)},{default:u(()=>[t(w(q),{value:w(n).sessionReset.at_hour,min:0,max:23,step:1,size:`small`,class:`input-sm`,"onUpdate:value":i[2]||=e=>e!=null&&s({at_hour:e})},null,8,[`value`])]),_:1},8,[`label`,`hint`])]))}}),[[`__scopeId`,`data-v-46301ac7`]]),at={class:`settings-section`},ot=k(x({__name:`PrivacySettings`,setup(e){let n=Z(),i=J(),{t:a}=O();async function s(e){try{await n.saveSection(`privacy`,e),i.success(a(`settings.saved`))}catch{i.error(a(`settings.saveFailed`))}}return(e,i)=>(o(),r(`section`,at,[t(Q,{label:w(a)(`settings.privacy.redactPii`),hint:w(a)(`settings.privacy.redactPiiHint`)},{default:u(()=>[t(w(Y),{value:w(n).privacy.redact_pii,"onUpdate:value":i[0]||=e=>s({redact_pii:e})},null,8,[`value`])]),_:1},8,[`label`,`hint`])]))}}),[[`__scopeId`,`data-v-43145f27`]]),st={class:`settings-section`},ct={key:0,class:`empty-hint`},lt={class:`provider-header`},ut={class:`provider-name`},dt={key:0,class:`provider-fields`},ft={class:`field-row`},pt={key:1,class:`provider-fields`},mt={class:`field-row`},ht=k(x({__name:`ModelSettings`,setup(e){let{t:n}=O(),a=xe(),s=J(),c=g(null),l=g({});p(()=>{a.providers.length===0&&a.fetchProviders()});let d=e=>e.startsWith(`custom:`);function f(e){if(!(e in l.value)){let t=a.providers.find(t=>t.provider===e);l.value[e]=t?.api_key||``}return l.value[e]}async function m(e){let t=f(e);if(!t.trim()){s.warning(n(`settings.models.apiKeyPlaceholder`));return}c.value=e;try{await be(e,{api_key:t.trim()}),s.success(n(`settings.models.saved`)),await a.fetchProviders()}catch(e){s.error(e.message||n(`settings.models.saveFailed`))}finally{c.value=null}}async function h(e){let t=f(e);c.value=e;try{await be(e,{api_key:t.trim()}),s.success(n(`settings.models.saved`)),await a.fetchProviders()}catch(e){s.error(e.message||n(`settings.models.saveFailed`))}finally{c.value=null}}return(e,s)=>(o(),r(`section`,st,[t(w(X),{show:w(a).loading},{default:u(()=>[w(a).providers.length===0?(o(),r(`div`,ct,[t(w(U),{description:w(n)(`settings.models.noProviders`)},null,8,[`description`])])):i(``,!0),(o(!0),r(D,null,T(w(a).providers,e=>(o(),r(`div`,{key:e.provider,class:`provider-section`},[E(`div`,lt,[E(`h4`,ut,y(e.label),1),E(`span`,{class:C([`type-badge`,d(e.provider)?`custom`:`builtin`])},y(d(e.provider)?w(n)(`models.customType`):w(n)(`models.builtIn`)),3)]),d(e.provider)?(o(),r(`div`,pt,[E(`div`,mt,[t(w(K),{value:f(e.provider),type:`password`,"show-password-on":`click`,placeholder:w(n)(`settings.models.apiKeyPlaceholder`),autocomplete:`off`,"onUpdate:value":t=>l.value[e.provider]=t},null,8,[`value`,`placeholder`,`onUpdate:value`]),t(w(G),{type:`primary`,size:`small`,loading:c.value===e.provider,onClick:t=>h(e.provider)},{default:u(()=>[S(y(w(n)(`settings.models.save`)),1)]),_:1},8,[`loading`,`onClick`])])])):(o(),r(`div`,dt,[E(`div`,ft,[t(w(K),{value:f(e.provider),type:`password`,"show-password-on":`click`,placeholder:w(n)(`settings.models.apiKeyPlaceholder`),autocomplete:`off`,"onUpdate:value":t=>l.value[e.provider]=t},null,8,[`value`,`placeholder`,`onUpdate:value`]),t(w(G),{type:`primary`,size:`small`,loading:c.value===e.provider,onClick:t=>m(e.provider)},{default:u(()=>[S(y(w(n)(`settings.models.save`)),1)]),_:1},8,[`loading`,`onClick`])])]))]))),128))]),_:1},8,[`show`])]))}}),[[`__scopeId`,`data-v-c28727b7`]]),gt={class:`settings-view`},_t={class:`page-header`},vt={class:`header-title`},yt={class:`settings-content`},bt=k(x({__name:`SettingsView`,setup(e){let n=Z(),{t:i}=O();return p(()=>{n.fetchSettings()}),(e,a)=>(o(),r(`div`,gt,[E(`header`,_t,[E(`h2`,vt,y(w(i)(`settings.title`)),1)]),E(`div`,yt,[t(w(X),{show:w(n).loading||w(n).saving,size:`large`,description:w(i)(`common.loading`)},{default:u(()=>[t(w(Ke),{type:`line`,animated:``},{default:u(()=>[t(w($),{name:`display`,tab:w(i)(`settings.tabs.display`)},{default:u(()=>[t(Qe)]),_:1},8,[`tab`]),t(w($),{name:`agent`,tab:w(i)(`settings.tabs.agent`)},{default:u(()=>[t(et)]),_:1},8,[`tab`]),t(w($),{name:`memory`,tab:w(i)(`settings.tabs.memory`)},{default:u(()=>[t(nt)]),_:1},8,[`tab`]),t(w($),{name:`session`,tab:w(i)(`settings.tabs.session`)},{default:u(()=>[t(it)]),_:1},8,[`tab`]),t(w($),{name:`privacy`,tab:w(i)(`settings.tabs.privacy`)},{default:u(()=>[t(ot)]),_:1},8,[`tab`]),t(w($),{name:`models`,tab:w(i)(`settings.tabs.models`)},{default:u(()=>[t(ht)]),_:1},8,[`tab`])]),_:1})]),_:1},8,[`show`,`description`])])]))}}),[[`__scopeId`,`data-v-d24400e9`]]);export{bt as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{A as e,C as t,D as n,E as r,G as i,T as a,U as o,W as s,X as c,_ as l,ct as u,gt as d,j as f,k as p,mt as m,pt as h,q as g,w as _,y as v}from"./router-
|
|
1
|
+
import{A as e,C as t,D as n,E as r,G as i,T as a,U as o,W as s,X as c,_ as l,ct as u,gt as d,j as f,k as p,mt as m,pt as h,q as g,w as _,y as v}from"./router-Dj-Nmg7q.js";import{r as y,t as b}from"./_plugin-vue_export-helper-Cnn0Z73x.js";import{t as x}from"./Input-Bk7XdoG-.js";import{t as S}from"./use-message-BgToAqhv.js";import{t as C}from"./Switch--HhY1uSh.js";import{t as w}from"./MarkdownRenderer-BbedVxvo.js";import{i as T,n as E,o as ee,r as D}from"./skills-G7EoEvdS.js";var O={class:`skill-list`},k={key:0,class:`skill-empty`},A=[`onClick`],j={class:`category-name`},M={class:`category-count`},N={key:0,class:`category-skills`},P=[`onClick`],F={class:`skill-info`},I={class:`skill-name`},L={key:0,class:`skill-desc`},R=b(f({__name:`SkillList`,props:{categories:{},selectedSkill:{},searchQuery:{}},emits:[`select`],setup(a,{emit:o}){let{t:s}=y(),c=S(),f=a,p=o,b=u(new Set),x=u(new Set),w=t(()=>{if(!f.searchQuery)return f.categories;let e=f.searchQuery.toLowerCase();return f.categories.map(t=>({...t,skills:t.skills.filter(t=>t.name.toLowerCase().includes(e)||t.description.toLowerCase().includes(e))})).filter(t=>t.skills.length>0||t.name.toLowerCase().includes(e))});function T(e){b.value.has(e)?b.value.delete(e):b.value.add(e)}function E(e,t){p(`select`,e,t)}async function D(e,t,n){if(!x.value.has(t)){x.value.add(t);try{await ee(t,n);let r=f.categories.find(t=>t.name===e)?.skills.find(e=>e.name===t);r&&(r.enabled=n)}catch(e){c.error(s(`skills.toggleFailed`)+`: ${e.message}`)}finally{x.value.delete(t)}}}return(t,o)=>(i(),n(`div`,O,[w.value.length===0?(i(),n(`div`,k,d(a.searchQuery?h(s)(`skills.noMatch`):h(s)(`skills.noSkills`)),1)):r(``,!0),(i(!0),n(v,null,g(w.value,t=>(i(),n(`div`,{key:t.name,class:`skill-category`},[_(`button`,{class:`category-header`,onClick:e=>T(t.name)},[(i(),n(`svg`,{width:`12`,height:`12`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`2`,class:m([`category-arrow`,{collapsed:b.value.has(t.name)}])},[...o[1]||=[_(`polyline`,{points:`6 9 12 15 18 9`},null,-1)]],2)),_(`span`,j,d(t.name),1),_(`span`,M,d(t.skills.length),1)],8,A),b.value.has(t.name)?r(``,!0):(i(),n(`div`,N,[(i(!0),n(v,null,g(t.skills,s=>(i(),n(`button`,{key:s.name,class:m([`skill-item`,{active:a.selectedSkill===`${t.name}/${s.name}`}]),onClick:e=>E(t.name,s.name)},[_(`div`,F,[_(`span`,I,d(s.name),1),s.description?(i(),n(`span`,L,d(s.description),1)):r(``,!0)]),e(h(C),{size:`small`,value:s.enabled!==!1,loading:x.value.has(s.name),"onUpdate:value":e=>D(t.name,s.name,e),onClick:o[0]||=l(()=>{},[`stop`])},null,8,[`value`,`loading`,`onUpdate:value`])],10,P))),128))]))]))),128))]))}}),[[`__scopeId`,`data-v-d9844f2e`]]),z={class:`skill-detail`},B={class:`detail-title`},V={class:`detail-category`},H={class:`detail-name`},U={key:0,class:`detail-loading`},te={key:0,class:`detail-breadcrumb`},W={class:`breadcrumb-path`},G={class:`detail-content`},K={key:1,class:`detail-files`},q={class:`files-header`},J={class:`files-list`},Y=[`onClick`],X=b(f({__name:`SkillDetail`,props:{category:{},skill:{}},setup(e){let{t}=y(),o=e,s=u(``),l=u([]),f=u(!1),m=u(``),b=u(null),x=u(!1);async function S(){f.value=!0,b.value=null,m.value=``,l.value=[],s.value=``;try{let e=`${o.category}/${o.skill}/SKILL.md`,[t,n]=await Promise.all([E(e),D(o.category,o.skill)]);s.value=t,l.value=n.filter(e=>!e.isDir&&e.path!==`SKILL.md`)}catch(e){s.value=t(`skills.loadFailed`)+`: ${e.message}`}finally{f.value=!1}}async function C(e){x.value=!0,b.value=e;try{let t=`${o.category}/${o.skill}/`,n=e;if(e.startsWith(`/`)){let t=e.split(`/.hermes/skills/`)[1];t&&(n=t.split(`/`).slice(2).join(`/`))}m.value=await E(`${t}${n}`)}catch(e){m.value=t(`skills.fileLoadFailed`)+`: ${e.message}`}finally{x.value=!1}}function T(){b.value=null,m.value=``}return c(()=>`${o.category}/${o.skill}`,S,{immediate:!0}),(o,c)=>(i(),n(`div`,z,[_(`div`,B,[_(`span`,V,d(e.category),1),c[0]||=_(`span`,{class:`detail-separator`},`/`,-1),_(`span`,H,d(e.skill),1)]),f.value&&!s.value?(i(),n(`div`,U,d(h(t)(`common.loading`)),1)):(i(),n(v,{key:1},[b.value?(i(),n(`div`,te,[_(`button`,{class:`back-btn`,onClick:T},[c[1]||=_(`svg`,{width:`14`,height:`14`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`2`},[_(`polyline`,{points:`15 18 9 12 15 6`})],-1),p(` `+d(h(t)(`skills.backTo`))+` `+d(e.skill),1)]),_(`span`,W,d(b.value),1)])):r(``,!0),_(`div`,G,[b.value?(i(),a(w,{key:0,content:m.value},null,8,[`content`])):(i(),a(w,{key:1,content:s.value},null,8,[`content`]))]),!b.value&&l.value.length>0?(i(),n(`div`,K,[_(`div`,q,d(h(t)(`skills.attachedFiles`)),1),_(`div`,J,[(i(!0),n(v,null,g(l.value,e=>(i(),n(`button`,{key:e.path,class:`file-item`,onClick:t=>C(e.path)},[c[2]||=_(`svg`,{width:`14`,height:`14`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`1.5`},[_(`path`,{d:`M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z`}),_(`polyline`,{points:`14 2 14 8 20 8`})],-1),_(`span`,null,d(e.path),1)],8,Y))),128))])])):r(``,!0)],64))]))}}),[[`__scopeId`,`data-v-aa8397b8`]]),Z={class:`skills-view`},Q={class:`page-header`},ne={style:{display:`flex`,"align-items":`center`,gap:`8px`}},re={class:`header-title`},ie={class:`skills-content`},ae={key:0,class:`skills-loading`},oe={key:1,class:`skills-layout`},$={key:0,class:`skills-sidebar`},se={class:`skills-main`},ce={key:1,class:`empty-detail`},le=b(f({__name:`SkillsView`,setup(t){let{t:c}=y(),l=u([]),f=u(!1),p=u(``),g=u(``),v=u(``),b=u(!0),S=null;function C(e){b.value=!e.matches}o(()=>{S=window.matchMedia(`(max-width: 768px)`),C(S),S.addEventListener(`change`,C),w()}),s(()=>{S?.removeEventListener(`change`,C)});async function w(){f.value=!0;try{l.value=await T()}catch(e){console.error(`Failed to load skills:`,e)}finally{f.value=!1}}function E(e,t){p.value=e,g.value=t,window.innerWidth<=768&&(b.value=!1)}return(t,o)=>(i(),n(`div`,Z,[_(`header`,Q,[_(`div`,ne,[_(`h2`,re,d(h(c)(`skills.title`)),1),b.value?r(``,!0):(i(),n(`button`,{key:0,class:`sidebar-toggle`,onClick:o[0]||=e=>b.value=!0},[...o[3]||=[_(`svg`,{width:`16`,height:`16`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`2`},[_(`line`,{x1:`3`,y1:`12`,x2:`21`,y2:`12`}),_(`line`,{x1:`3`,y1:`6`,x2:`21`,y2:`6`}),_(`line`,{x1:`3`,y1:`18`,x2:`21`,y2:`18`})],-1)]]))]),e(h(x),{value:v.value,"onUpdate:value":o[1]||=e=>v.value=e,placeholder:h(c)(`skills.searchPlaceholder`),size:`small`,clearable:``,style:{width:`160px`}},null,8,[`value`,`placeholder`])]),_(`div`,ie,[f.value&&l.value.length===0?(i(),n(`div`,ae,d(h(c)(`common.loading`)),1)):(i(),n(`div`,oe,[_(`div`,{class:m([`mobile-backdrop`,{active:b.value}]),onClick:o[2]||=e=>b.value=!1},null,2),b.value?(i(),n(`div`,$,[e(R,{categories:l.value,"selected-skill":p.value&&g.value?`${p.value}/${g.value}`:null,"search-query":v.value,onSelect:E},null,8,[`categories`,`selected-skill`,`search-query`])])):r(``,!0),_(`div`,se,[p.value&&g.value?(i(),a(X,{key:0,category:p.value,skill:g.value},null,8,[`category`,`skill`])):(i(),n(`div`,ce,[o[4]||=_(`svg`,{width:`48`,height:`48`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`1`,opacity:`0.2`},[_(`polygon`,{points:`12 2 2 7 12 12 22 7 12 2`}),_(`polyline`,{points:`2 17 12 22 22 17`}),_(`polyline`,{points:`2 12 12 17 22 12`})],-1),_(`span`,null,d(h(c)(`skills.noMatch`)),1)]))])]))])]))}}),[[`__scopeId`,`data-v-0147c6c2`]]);export{le as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{C as e,N as t,Z as n,ct as r,d as i,j as a}from"./router-
|
|
1
|
+
import{C as e,N as t,Z as n,ct as r,d as i,j as a}from"./router-Dj-Nmg7q.js";import{B as o,c as s,ct as c,dt as l,i as u,pt as d,r as f,st as p,z as m}from"./browser-CQRjhbaB.js";import{l as h,t as g}from"./fade-in.cssr-lwO9nLky.js";import{n as _}from"./Close-CKHcXisf.js";import{n as v}from"./light-oE8MEiWL.js";var y=p([p(`@keyframes spin-rotate`,`
|
|
2
2
|
from {
|
|
3
3
|
transform: rotate(0);
|
|
4
4
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{C as e,F as t,H as n,J as r,L as i,M as a,N as o,U as s,V as c,X as l,Z as u,ct as d,d as f,dt as p,j as m,y as h,z as g}from"./router-C-NNJUuf.js";import{B as _,V as v,W as y,a as b,c as x,ct as S,d as ee,dt as C,l as w,n as T,o as E,r as D,st as O,ut as k,z as te}from"./browser-Djp4tkp3.js";import{c as A,l as j,n as ne,r as re,s as ie,t as M}from"./fade-in.cssr-CIVyTG6A.js";function ae(e){return e.composedPath()[0]||null}function N(e){return e.composedPath()[0]}var oe={mousemoveoutside:new WeakMap,clickoutside:new WeakMap};function P(e,t,n){if(e===`mousemoveoutside`){let e=e=>{t.contains(N(e))||n(e)};return{mousemove:e,touchstart:e}}else if(e===`clickoutside`){let e=!1,r=n=>{e=!t.contains(N(n))},i=r=>{e&&(t.contains(N(r))||n(r))};return{mousedown:r,mouseup:i,touchstart:r,touchend:i}}return console.error(`[evtd/create-trap-handler]: name \`${e}\` is invalid. This could be a bug of evtd.`),{}}function F(e,t,n){let r=oe[e],i=r.get(t);i===void 0&&r.set(t,i=new WeakMap);let a=i.get(n);return a===void 0&&i.set(n,a=P(e,t,n)),a}function se(e,t,n,r){if(e===`mousemoveoutside`||e===`clickoutside`){let i=F(e,t,n);return Object.keys(i).forEach(e=>{L(e,document,i[e],r)}),!0}return!1}function I(e,t,n,r){if(e===`mousemoveoutside`||e===`clickoutside`){let i=F(e,t,n);return Object.keys(i).forEach(e=>{R(e,document,i[e],r)}),!0}return!1}function ce(){if(typeof window>`u`)return{on:()=>{},off:()=>{}};let e=new WeakMap,t=new WeakMap;function n(){e.set(this,!0)}function r(){e.set(this,!0),t.set(this,!0)}function i(e,t,n){let r=e[t];return e[t]=function(){return n.apply(e,arguments),r.apply(e,arguments)},e}function a(e,t){e[t]=Event.prototype[t]}let o=new WeakMap,s=Object.getOwnPropertyDescriptor(Event.prototype,`currentTarget`);function c(){return o.get(this)??null}function l(e,t){s!==void 0&&Object.defineProperty(e,`currentTarget`,{configurable:!0,enumerable:!0,get:t??s.get})}let u={bubble:{},capture:{}},d={};function f(){let s=function(s){let{type:d,eventPhase:f,bubbles:p}=s,m=N(s);if(f===2)return;let h=f===1?`capture`:`bubble`,g=m,_=[];for(;g===null&&(g=window),_.push(g),g!==window;)g=g.parentNode||null;let v=u.capture[d],y=u.bubble[d];if(i(s,`stopPropagation`,n),i(s,`stopImmediatePropagation`,r),l(s,c),h===`capture`){if(v===void 0)return;for(let n=_.length-1;n>=0&&!e.has(s);--n){let e=_[n],r=v.get(e);if(r!==void 0){o.set(s,e);for(let e of r){if(t.has(s))break;e(s)}}if(n===0&&!p&&y!==void 0){let n=y.get(e);if(n!==void 0)for(let e of n){if(t.has(s))break;e(s)}}}}else if(h===`bubble`){if(y===void 0)return;for(let n=0;n<_.length&&!e.has(s);++n){let e=_[n],r=y.get(e);if(r!==void 0){o.set(s,e);for(let e of r){if(t.has(s))break;e(s)}}}}a(s,`stopPropagation`),a(s,`stopImmediatePropagation`),l(s)};return s.displayName=`evtdUnifiedHandler`,s}function p(){let e=function(e){let{type:t,eventPhase:n}=e;if(n!==2)return;let r=d[t];r!==void 0&&r.forEach(t=>t(e))};return e.displayName=`evtdUnifiedWindowEventHandler`,e}let m=f(),h=p();function g(e,t){let n=u[e];return n[t]===void 0&&(n[t]=new Map,window.addEventListener(t,m,e===`capture`)),n[t]}function _(e){return d[e]===void 0&&(d[e]=new Set,window.addEventListener(e,h)),d[e]}function v(e,t){let n=e.get(t);return n===void 0&&e.set(t,n=new Set),n}function y(e,t,n,r){let i=u[t][n];if(i!==void 0){let t=i.get(e);if(t!==void 0&&t.has(r))return!0}return!1}function b(e,t){let n=d[e];return!!(n!==void 0&&n.has(t))}function x(e,t,n,r){let i;if(i=typeof r==`object`&&r.once===!0?a=>{S(e,t,i,r),n(a)}:n,se(e,t,i,r))return;let a=v(g(r===!0||typeof r==`object`&&r.capture===!0?`capture`:`bubble`,e),t);if(a.has(i)||a.add(i),t===window){let t=_(e);t.has(i)||t.add(i)}}function S(e,t,n,r){if(I(e,t,n,r))return;let i=r===!0||typeof r==`object`&&r.capture===!0,a=i?`capture`:`bubble`,o=g(a,e),s=v(o,t);if(t===window&&!y(t,i?`bubble`:`capture`,e,n)&&b(e,n)){let t=d[e];t.delete(n),t.size===0&&(window.removeEventListener(e,h),d[e]=void 0)}s.has(n)&&s.delete(n),s.size===0&&o.delete(t),o.size===0&&(window.removeEventListener(e,m,a===`capture`),u[a][e]=void 0)}return{on:x,off:S}}var{on:L,off:R}=ce();function le(t,n){return l(t,e=>{e!==void 0&&(n.value=e)}),e(()=>t.value===void 0?n.value:t.value)}var ue=(typeof window>`u`?!1:/iPad|iPhone|iPod/.test(navigator.platform)||navigator.platform===`MacIntel`&&navigator.maxTouchPoints>1)&&!window.MSStream;function de(){return ue}function fe(e){let t={isDeactivated:!1},r=!1;return g(()=>{if(t.isDeactivated=!1,!r){r=!0;return}e()}),n(()=>{t.isDeactivated=!0,r||=!0}),t}function pe(e,t){console.error(`[vueuc/${e}]: ${t}`)}var z=[],me=function(){return z.some(function(e){return e.activeTargets.length>0})},he=function(){return z.some(function(e){return e.skippedTargets.length>0})},ge=`ResizeObserver loop completed with undelivered notifications.`,_e=function(){var e;typeof ErrorEvent==`function`?e=new ErrorEvent(`error`,{message:ge}):(e=document.createEvent(`Event`),e.initEvent(`error`,!1,!1),e.message=ge),window.dispatchEvent(e)},B;(function(e){e.BORDER_BOX=`border-box`,e.CONTENT_BOX=`content-box`,e.DEVICE_PIXEL_CONTENT_BOX=`device-pixel-content-box`})(B||={});var V=function(e){return Object.freeze(e)},ve=function(){function e(e,t){this.inlineSize=e,this.blockSize=t,V(this)}return e}(),ye=function(){function e(e,t,n,r){return this.x=e,this.y=t,this.width=n,this.height=r,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,V(this)}return e.prototype.toJSON=function(){var e=this;return{x:e.x,y:e.y,top:e.top,right:e.right,bottom:e.bottom,left:e.left,width:e.width,height:e.height}},e.fromRect=function(t){return new e(t.x,t.y,t.width,t.height)},e}(),be=function(e){return e instanceof SVGElement&&`getBBox`in e},xe=function(e){if(be(e)){var t=e.getBBox(),n=t.width,r=t.height;return!n&&!r}var i=e,a=i.offsetWidth,o=i.offsetHeight;return!(a||o||e.getClientRects().length)},Se=function(e){if(e instanceof Element)return!0;var t=e?.ownerDocument?.defaultView;return!!(t&&e instanceof t.Element)},H=function(e){switch(e.tagName){case`INPUT`:if(e.type!==`image`)break;case`VIDEO`:case`AUDIO`:case`EMBED`:case`OBJECT`:case`CANVAS`:case`IFRAME`:case`IMG`:return!0}return!1},U=typeof window<`u`?window:{},W=new WeakMap,G=/auto|scroll/,Ce=/^tb|vertical/,we=/msie|trident/i.test(U.navigator&&U.navigator.userAgent),K=function(e){return parseFloat(e||`0`)},q=function(e,t,n){return e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=!1),new ve((n?t:e)||0,(n?e:t)||0)},Te=V({devicePixelContentBoxSize:q(),borderBoxSize:q(),contentBoxSize:q(),contentRect:new ye(0,0,0,0)}),Ee=function(e,t){if(t===void 0&&(t=!1),W.has(e)&&!t)return W.get(e);if(xe(e))return W.set(e,Te),Te;var n=getComputedStyle(e),r=be(e)&&e.ownerSVGElement&&e.getBBox(),i=!we&&n.boxSizing===`border-box`,a=Ce.test(n.writingMode||``),o=!r&&G.test(n.overflowY||``),s=!r&&G.test(n.overflowX||``),c=r?0:K(n.paddingTop),l=r?0:K(n.paddingRight),u=r?0:K(n.paddingBottom),d=r?0:K(n.paddingLeft),f=r?0:K(n.borderTopWidth),p=r?0:K(n.borderRightWidth),m=r?0:K(n.borderBottomWidth),h=r?0:K(n.borderLeftWidth),g=d+l,_=c+u,v=h+p,y=f+m,b=s?e.offsetHeight-y-e.clientHeight:0,x=o?e.offsetWidth-v-e.clientWidth:0,S=i?g+v:0,ee=i?_+y:0,C=r?r.width:K(n.width)-S-x,w=r?r.height:K(n.height)-ee-b,T=C+g+x+v,E=w+_+b+y,D=V({devicePixelContentBoxSize:q(Math.round(C*devicePixelRatio),Math.round(w*devicePixelRatio),a),borderBoxSize:q(T,E,a),contentBoxSize:q(C,w,a),contentRect:new ye(d,c,C,w)});return W.set(e,D),D},De=function(e,t,n){var r=Ee(e,n),i=r.borderBoxSize,a=r.contentBoxSize,o=r.devicePixelContentBoxSize;switch(t){case B.DEVICE_PIXEL_CONTENT_BOX:return o;case B.BORDER_BOX:return i;default:return a}},Oe=function(){function e(e){var t=Ee(e);this.target=e,this.contentRect=t.contentRect,this.borderBoxSize=V([t.borderBoxSize]),this.contentBoxSize=V([t.contentBoxSize]),this.devicePixelContentBoxSize=V([t.devicePixelContentBoxSize])}return e}(),J=function(e){if(xe(e))return 1/0;for(var t=0,n=e.parentNode;n;)t+=1,n=n.parentNode;return t},ke=function(){var e=1/0,t=[];z.forEach(function(n){if(n.activeTargets.length!==0){var r=[];n.activeTargets.forEach(function(t){var n=new Oe(t.target),i=J(t.target);r.push(n),t.lastReportedSize=De(t.target,t.observedBox),i<e&&(e=i)}),t.push(function(){n.callback.call(n.observer,r,n.observer)}),n.activeTargets.splice(0,n.activeTargets.length)}});for(var n=0,r=t;n<r.length;n++){var i=r[n];i()}return e},Ae=function(e){z.forEach(function(t){t.activeTargets.splice(0,t.activeTargets.length),t.skippedTargets.splice(0,t.skippedTargets.length),t.observationTargets.forEach(function(n){n.isActive()&&(J(n.target)>e?t.activeTargets.push(n):t.skippedTargets.push(n))})})},je=function(){var e=0;for(Ae(e);me();)e=ke(),Ae(e);return he()&&_e(),e>0},Y,Me=[],X=function(){return Me.splice(0).forEach(function(e){return e()})},Ne=function(e){if(!Y){var t=0,n=document.createTextNode(``);new MutationObserver(function(){return X()}).observe(n,{characterData:!0}),Y=function(){n.textContent=`${t?t--:t++}`}}Me.push(e),Y()},Pe=function(e){Ne(function(){requestAnimationFrame(e)})},Z=0,Fe=function(){return!!Z},Ie=250,Le={attributes:!0,characterData:!0,childList:!0,subtree:!0},Re=[`resize`,`load`,`transitionend`,`animationend`,`animationstart`,`animationiteration`,`keyup`,`keydown`,`mouseup`,`mousedown`,`mouseover`,`mouseout`,`blur`,`focus`],ze=function(e){return e===void 0&&(e=0),Date.now()+e},Be=!1,Ve=new(function(){function e(){var e=this;this.stopped=!0,this.listener=function(){return e.schedule()}}return e.prototype.run=function(e){var t=this;if(e===void 0&&(e=Ie),!Be){Be=!0;var n=ze(e);Pe(function(){var r=!1;try{r=je()}finally{if(Be=!1,e=n-ze(),!Fe())return;r?t.run(1e3):e>0?t.run(e):t.start()}})}},e.prototype.schedule=function(){this.stop(),this.run()},e.prototype.observe=function(){var e=this,t=function(){return e.observer&&e.observer.observe(document.body,Le)};document.body?t():U.addEventListener(`DOMContentLoaded`,t)},e.prototype.start=function(){var e=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),Re.forEach(function(t){return U.addEventListener(t,e.listener,!0)}))},e.prototype.stop=function(){var e=this;this.stopped||=(this.observer&&this.observer.disconnect(),Re.forEach(function(t){return U.removeEventListener(t,e.listener,!0)}),!0)},e}()),He=function(e){!Z&&e>0&&Ve.start(),Z+=e,!Z&&Ve.stop()},Ue=function(e){return!be(e)&&!H(e)&&getComputedStyle(e).display===`inline`},We=function(){function e(e,t){this.target=e,this.observedBox=t||B.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var e=De(this.target,this.observedBox,!0);return Ue(this.target)&&(this.lastReportedSize=e),this.lastReportedSize.inlineSize!==e.inlineSize||this.lastReportedSize.blockSize!==e.blockSize},e}(),Ge=function(){function e(e,t){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=e,this.callback=t}return e}(),Ke=new WeakMap,qe=function(e,t){for(var n=0;n<e.length;n+=1)if(e[n].target===t)return n;return-1},Je=function(){function e(){}return e.connect=function(e,t){var n=new Ge(e,t);Ke.set(e,n)},e.observe=function(e,t,n){var r=Ke.get(e),i=r.observationTargets.length===0;qe(r.observationTargets,t)<0&&(i&&z.push(r),r.observationTargets.push(new We(t,n&&n.box)),He(1),Ve.schedule())},e.unobserve=function(e,t){var n=Ke.get(e),r=qe(n.observationTargets,t),i=n.observationTargets.length===1;r>=0&&(i&&z.splice(z.indexOf(n),1),n.observationTargets.splice(r,1),He(-1))},e.disconnect=function(e){var t=this,n=Ke.get(e);n.observationTargets.slice().forEach(function(n){return t.unobserve(e,n.target)}),n.activeTargets.splice(0,n.activeTargets.length)},e}(),Ye=function(){function e(e){if(arguments.length===0)throw TypeError(`Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.`);if(typeof e!=`function`)throw TypeError(`Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.`);Je.connect(this,e)}return e.prototype.observe=function(e,t){if(arguments.length===0)throw TypeError(`Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.`);if(!Se(e))throw TypeError(`Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element`);Je.observe(this,e,t)},e.prototype.unobserve=function(e){if(arguments.length===0)throw TypeError(`Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.`);if(!Se(e))throw TypeError(`Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element`);Je.unobserve(this,e)},e.prototype.disconnect=function(){Je.disconnect(this)},e.toString=function(){return`function ResizeObserver () { [polyfill code] }`},e}(),Xe=new class{constructor(){this.handleResize=this.handleResize.bind(this),this.observer=new(typeof window<`u`&&window.ResizeObserver||Ye)(this.handleResize),this.elHandlersMap=new Map}handleResize(e){for(let t of e){let e=this.elHandlersMap.get(t.target);e!==void 0&&e(t)}}registerHandler(e,t){this.elHandlersMap.set(e,t),this.observer.observe(e)}unregisterHandler(e){this.elHandlersMap.has(e)&&(this.elHandlersMap.delete(e),this.observer.unobserve(e))}},Ze=m({name:`ResizeObserver`,props:{onResize:Function},setup(e){let t=!1,n=a().proxy;function r(t){let{onResize:n}=e;n!==void 0&&n(t)}s(()=>{let e=n.$el;if(e===void 0){pe(`resize-observer`,`$el does not exist.`);return}if(e.nextElementSibling!==e.nextSibling&&e.nodeType===3&&e.nodeValue!==``){pe(`resize-observer`,`$el can not be observed (it may be a text node).`);return}e.nextElementSibling!==null&&(Xe.registerHandler(e.nextElementSibling,r),t=!0)}),c(()=>{t&&Xe.unregisterHandler(n.$el.nextElementSibling)})},render(){return r(this.$slots,`default`)}});function Qe(e){let{left:t,right:n,top:r,bottom:i}=A(e);return`${r} ${t} ${i} ${n}`}var $e=m({render(){var e;return(e=this.$slots).default?.call(e)}}),et={name:`en-US`,global:{undo:`Undo`,redo:`Redo`,confirm:`Confirm`,clear:`Clear`},Popconfirm:{positiveText:`Confirm`,negativeText:`Cancel`},Cascader:{placeholder:`Please Select`,loading:`Loading`,loadingRequiredMessage:e=>`Please load all ${e}'s descendants before checking it.`},Time:{dateFormat:`yyyy-MM-dd`,dateTimeFormat:`yyyy-MM-dd HH:mm:ss`},DatePicker:{yearFormat:`yyyy`,monthFormat:`MMM`,dayFormat:`eeeeee`,yearTypeFormat:`yyyy`,monthTypeFormat:`yyyy-MM`,dateFormat:`yyyy-MM-dd`,dateTimeFormat:`yyyy-MM-dd HH:mm:ss`,quarterFormat:`yyyy-qqq`,weekFormat:`YYYY-w`,clear:`Clear`,now:`Now`,confirm:`Confirm`,selectTime:`Select Time`,selectDate:`Select Date`,datePlaceholder:`Select Date`,datetimePlaceholder:`Select Date and Time`,monthPlaceholder:`Select Month`,yearPlaceholder:`Select Year`,quarterPlaceholder:`Select Quarter`,weekPlaceholder:`Select Week`,startDatePlaceholder:`Start Date`,endDatePlaceholder:`End Date`,startDatetimePlaceholder:`Start Date and Time`,endDatetimePlaceholder:`End Date and Time`,startMonthPlaceholder:`Start Month`,endMonthPlaceholder:`End Month`,monthBeforeYear:!0,firstDayOfWeek:6,today:`Today`},DataTable:{checkTableAll:`Select all in the table`,uncheckTableAll:`Unselect all in the table`,confirm:`Confirm`,clear:`Clear`},LegacyTransfer:{sourceTitle:`Source`,targetTitle:`Target`},Transfer:{selectAll:`Select all`,unselectAll:`Unselect all`,clearAll:`Clear`,total:e=>`Total ${e} items`,selected:e=>`${e} items selected`},Empty:{description:`No Data`},Select:{placeholder:`Please Select`},TimePicker:{placeholder:`Select Time`,positiveText:`OK`,negativeText:`Cancel`,now:`Now`,clear:`Clear`},Pagination:{goto:`Goto`,selectionSuffix:`page`},DynamicTags:{add:`Add`},Log:{loading:`Loading`},Input:{placeholder:`Please Input`},InputNumber:{placeholder:`Please Input`},DynamicInput:{create:`Create`},ThemeEditor:{title:`Theme Editor`,clearAllVars:`Clear All Variables`,clearSearch:`Clear Search`,filterCompName:`Filter Component Name`,filterVarName:`Filter Variable Name`,import:`Import`,export:`Export`,restore:`Reset to Default`},Image:{tipPrevious:`Previous picture (←)`,tipNext:`Next picture (→)`,tipCounterclockwise:`Counterclockwise`,tipClockwise:`Clockwise`,tipZoomOut:`Zoom out`,tipZoomIn:`Zoom in`,tipDownload:`Download`,tipClose:`Close (Esc)`,tipOriginalSize:`Zoom to original size`},Heatmap:{less:`less`,more:`more`,monthFormat:`MMM`,weekdayFormat:`eee`}};function tt(e){return(t={})=>{let n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}function Q(e){return(t,n)=>{let r=n?.context?String(n.context):`standalone`,i;if(r===`formatting`&&e.formattingValues){let t=e.defaultFormattingWidth||e.defaultWidth,r=n?.width?String(n.width):t;i=e.formattingValues[r]||e.formattingValues[t]}else{let t=e.defaultWidth,r=n?.width?String(n.width):e.defaultWidth;i=e.values[r]||e.values[t]}let a=e.argumentCallback?e.argumentCallback(t):t;return i[a]}}function $(e){return(t,n={})=>{let r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(i);if(!a)return null;let o=a[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(s)?rt(s,e=>e.test(o)):nt(s,e=>e.test(o)),l;l=e.valueCallback?e.valueCallback(c):c,l=n.valueCallback?n.valueCallback(l):l;let u=t.slice(o.length);return{value:l,rest:u}}}function nt(e,t){for(let n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function rt(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function it(e){return(t,n={})=>{let r=t.match(e.matchPattern);if(!r)return null;let i=r[0],a=t.match(e.parsePattern);if(!a)return null;let o=e.valueCallback?e.valueCallback(a[0]):a[0];o=n.valueCallback?n.valueCallback(o):o;let s=t.slice(i.length);return{value:o,rest:s}}}var at={lessThanXSeconds:{one:`less than a second`,other:`less than {{count}} seconds`},xSeconds:{one:`1 second`,other:`{{count}} seconds`},halfAMinute:`half a minute`,lessThanXMinutes:{one:`less than a minute`,other:`less than {{count}} minutes`},xMinutes:{one:`1 minute`,other:`{{count}} minutes`},aboutXHours:{one:`about 1 hour`,other:`about {{count}} hours`},xHours:{one:`1 hour`,other:`{{count}} hours`},xDays:{one:`1 day`,other:`{{count}} days`},aboutXWeeks:{one:`about 1 week`,other:`about {{count}} weeks`},xWeeks:{one:`1 week`,other:`{{count}} weeks`},aboutXMonths:{one:`about 1 month`,other:`about {{count}} months`},xMonths:{one:`1 month`,other:`{{count}} months`},aboutXYears:{one:`about 1 year`,other:`about {{count}} years`},xYears:{one:`1 year`,other:`{{count}} years`},overXYears:{one:`over 1 year`,other:`over {{count}} years`},almostXYears:{one:`almost 1 year`,other:`almost {{count}} years`}},ot=(e,t,n)=>{let r,i=at[e];return r=typeof i==`string`?i:t===1?i.one:i.other.replace(`{{count}}`,t.toString()),n?.addSuffix?n.comparison&&n.comparison>0?`in `+r:r+` ago`:r},st={lastWeek:`'last' eeee 'at' p`,yesterday:`'yesterday at' p`,today:`'today at' p`,tomorrow:`'tomorrow at' p`,nextWeek:`eeee 'at' p`,other:`P`},ct=(e,t,n,r)=>st[e],lt={ordinalNumber:(e,t)=>{let n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+`st`;case 2:return n+`nd`;case 3:return n+`rd`}return n+`th`},era:Q({values:{narrow:[`B`,`A`],abbreviated:[`BC`,`AD`],wide:[`Before Christ`,`Anno Domini`]},defaultWidth:`wide`}),quarter:Q({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`Q1`,`Q2`,`Q3`,`Q4`],wide:[`1st quarter`,`2nd quarter`,`3rd quarter`,`4th quarter`]},defaultWidth:`wide`,argumentCallback:e=>e-1}),month:Q({values:{narrow:[`J`,`F`,`M`,`A`,`M`,`J`,`J`,`A`,`S`,`O`,`N`,`D`],abbreviated:[`Jan`,`Feb`,`Mar`,`Apr`,`May`,`Jun`,`Jul`,`Aug`,`Sep`,`Oct`,`Nov`,`Dec`],wide:[`January`,`February`,`March`,`April`,`May`,`June`,`July`,`August`,`September`,`October`,`November`,`December`]},defaultWidth:`wide`}),day:Q({values:{narrow:[`S`,`M`,`T`,`W`,`T`,`F`,`S`],short:[`Su`,`Mo`,`Tu`,`We`,`Th`,`Fr`,`Sa`],abbreviated:[`Sun`,`Mon`,`Tue`,`Wed`,`Thu`,`Fri`,`Sat`],wide:[`Sunday`,`Monday`,`Tuesday`,`Wednesday`,`Thursday`,`Friday`,`Saturday`]},defaultWidth:`wide`}),dayPeriod:Q({values:{narrow:{am:`a`,pm:`p`,midnight:`mi`,noon:`n`,morning:`morning`,afternoon:`afternoon`,evening:`evening`,night:`night`},abbreviated:{am:`AM`,pm:`PM`,midnight:`midnight`,noon:`noon`,morning:`morning`,afternoon:`afternoon`,evening:`evening`,night:`night`},wide:{am:`a.m.`,pm:`p.m.`,midnight:`midnight`,noon:`noon`,morning:`morning`,afternoon:`afternoon`,evening:`evening`,night:`night`}},defaultWidth:`wide`,formattingValues:{narrow:{am:`a`,pm:`p`,midnight:`mi`,noon:`n`,morning:`in the morning`,afternoon:`in the afternoon`,evening:`in the evening`,night:`at night`},abbreviated:{am:`AM`,pm:`PM`,midnight:`midnight`,noon:`noon`,morning:`in the morning`,afternoon:`in the afternoon`,evening:`in the evening`,night:`at night`},wide:{am:`a.m.`,pm:`p.m.`,midnight:`midnight`,noon:`noon`,morning:`in the morning`,afternoon:`in the afternoon`,evening:`in the evening`,night:`at night`}},defaultFormattingWidth:`wide`})},ut={ordinalNumber:it({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:$({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:`any`}),quarter:$({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:`any`,valueCallback:e=>e+1}),month:$({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:`any`}),day:$({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:`any`}),dayPeriod:$({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:`any`})},dt={name:`en-US`,locale:{code:`en-US`,formatDistance:ot,formatLong:{date:tt({formats:{full:`EEEE, MMMM do, y`,long:`MMMM do, y`,medium:`MMM d, y`,short:`MM/dd/yyyy`},defaultWidth:`full`}),time:tt({formats:{full:`h:mm:ss a zzzz`,long:`h:mm:ss a z`,medium:`h:mm:ss a`,short:`h:mm a`},defaultWidth:`full`}),dateTime:tt({formats:{full:`{{date}} 'at' {{time}}`,long:`{{date}} 'at' {{time}}`,medium:`{{date}}, {{time}}`,short:`{{date}}, {{time}}`},defaultWidth:`full`})},formatRelative:ct,localize:lt,match:ut,options:{weekStartsOn:0,firstWeekContainsDate:1}}};function ft(n){let{mergedLocaleRef:r,mergedDateLocaleRef:i}=t(v,null)||{},a=e(()=>r?.value?.[n]??et[n]);return{dateLocaleRef:e(()=>i?.value??dt),localeRef:a}}var pt=m({name:`ChevronDown`,render(){return o(`svg`,{viewBox:`0 0 16 16`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},o(`path`,{d:`M3.14645 5.64645C3.34171 5.45118 3.65829 5.45118 3.85355 5.64645L8 9.79289L12.1464 5.64645C12.3417 5.45118 12.6583 5.45118 12.8536 5.64645C13.0488 5.84171 13.0488 6.15829 12.8536 6.35355L8.35355 10.8536C8.15829 11.0488 7.84171 11.0488 7.64645 10.8536L3.14645 6.35355C2.95118 6.15829 2.95118 5.84171 3.14645 5.64645Z`,fill:`currentColor`}))}}),mt=ne(`clear`,()=>o(`svg`,{viewBox:`0 0 16 16`,version:`1.1`,xmlns:`http://www.w3.org/2000/svg`},o(`g`,{stroke:`none`,"stroke-width":`1`,fill:`none`,"fill-rule":`evenodd`},o(`g`,{fill:`currentColor`,"fill-rule":`nonzero`},o(`path`,{d:`M8,2 C11.3137085,2 14,4.6862915 14,8 C14,11.3137085 11.3137085,14 8,14 C4.6862915,14 2,11.3137085 2,8 C2,4.6862915 4.6862915,2 8,2 Z M6.5343055,5.83859116 C6.33943736,5.70359511 6.07001296,5.72288026 5.89644661,5.89644661 L5.89644661,5.89644661 L5.83859116,5.9656945 C5.70359511,6.16056264 5.72288026,6.42998704 5.89644661,6.60355339 L5.89644661,6.60355339 L7.293,8 L5.89644661,9.39644661 L5.83859116,9.4656945 C5.70359511,9.66056264 5.72288026,9.92998704 5.89644661,10.1035534 L5.89644661,10.1035534 L5.9656945,10.1614088 C6.16056264,10.2964049 6.42998704,10.2771197 6.60355339,10.1035534 L6.60355339,10.1035534 L8,8.707 L9.39644661,10.1035534 L9.4656945,10.1614088 C9.66056264,10.2964049 9.92998704,10.2771197 10.1035534,10.1035534 L10.1035534,10.1035534 L10.1614088,10.0343055 C10.2964049,9.83943736 10.2771197,9.57001296 10.1035534,9.39644661 L10.1035534,9.39644661 L8.707,8 L10.1035534,6.60355339 L10.1614088,6.5343055 C10.2964049,6.33943736 10.2771197,6.07001296 10.1035534,5.89644661 L10.1035534,5.89644661 L10.0343055,5.83859116 C9.83943736,5.70359511 9.57001296,5.72288026 9.39644661,5.89644661 L9.39644661,5.89644661 L8,7.293 L6.60355339,5.89644661 Z`}))))),ht=S(`base-clear`,`
|
|
1
|
+
import{C as e,F as t,H as n,J as r,L as i,M as a,N as o,U as s,V as c,X as l,Z as u,ct as d,d as f,dt as p,j as m,y as h,z as g}from"./router-Dj-Nmg7q.js";import{B as _,V as v,W as y,a as b,c as x,ct as S,d as ee,dt as C,l as w,n as T,o as E,r as D,st as O,ut as k,z as te}from"./browser-CQRjhbaB.js";import{c as A,l as j,n as ne,r as re,s as ie,t as M}from"./fade-in.cssr-lwO9nLky.js";function ae(e){return e.composedPath()[0]||null}function N(e){return e.composedPath()[0]}var oe={mousemoveoutside:new WeakMap,clickoutside:new WeakMap};function P(e,t,n){if(e===`mousemoveoutside`){let e=e=>{t.contains(N(e))||n(e)};return{mousemove:e,touchstart:e}}else if(e===`clickoutside`){let e=!1,r=n=>{e=!t.contains(N(n))},i=r=>{e&&(t.contains(N(r))||n(r))};return{mousedown:r,mouseup:i,touchstart:r,touchend:i}}return console.error(`[evtd/create-trap-handler]: name \`${e}\` is invalid. This could be a bug of evtd.`),{}}function F(e,t,n){let r=oe[e],i=r.get(t);i===void 0&&r.set(t,i=new WeakMap);let a=i.get(n);return a===void 0&&i.set(n,a=P(e,t,n)),a}function se(e,t,n,r){if(e===`mousemoveoutside`||e===`clickoutside`){let i=F(e,t,n);return Object.keys(i).forEach(e=>{L(e,document,i[e],r)}),!0}return!1}function I(e,t,n,r){if(e===`mousemoveoutside`||e===`clickoutside`){let i=F(e,t,n);return Object.keys(i).forEach(e=>{R(e,document,i[e],r)}),!0}return!1}function ce(){if(typeof window>`u`)return{on:()=>{},off:()=>{}};let e=new WeakMap,t=new WeakMap;function n(){e.set(this,!0)}function r(){e.set(this,!0),t.set(this,!0)}function i(e,t,n){let r=e[t];return e[t]=function(){return n.apply(e,arguments),r.apply(e,arguments)},e}function a(e,t){e[t]=Event.prototype[t]}let o=new WeakMap,s=Object.getOwnPropertyDescriptor(Event.prototype,`currentTarget`);function c(){return o.get(this)??null}function l(e,t){s!==void 0&&Object.defineProperty(e,`currentTarget`,{configurable:!0,enumerable:!0,get:t??s.get})}let u={bubble:{},capture:{}},d={};function f(){let s=function(s){let{type:d,eventPhase:f,bubbles:p}=s,m=N(s);if(f===2)return;let h=f===1?`capture`:`bubble`,g=m,_=[];for(;g===null&&(g=window),_.push(g),g!==window;)g=g.parentNode||null;let v=u.capture[d],y=u.bubble[d];if(i(s,`stopPropagation`,n),i(s,`stopImmediatePropagation`,r),l(s,c),h===`capture`){if(v===void 0)return;for(let n=_.length-1;n>=0&&!e.has(s);--n){let e=_[n],r=v.get(e);if(r!==void 0){o.set(s,e);for(let e of r){if(t.has(s))break;e(s)}}if(n===0&&!p&&y!==void 0){let n=y.get(e);if(n!==void 0)for(let e of n){if(t.has(s))break;e(s)}}}}else if(h===`bubble`){if(y===void 0)return;for(let n=0;n<_.length&&!e.has(s);++n){let e=_[n],r=y.get(e);if(r!==void 0){o.set(s,e);for(let e of r){if(t.has(s))break;e(s)}}}}a(s,`stopPropagation`),a(s,`stopImmediatePropagation`),l(s)};return s.displayName=`evtdUnifiedHandler`,s}function p(){let e=function(e){let{type:t,eventPhase:n}=e;if(n!==2)return;let r=d[t];r!==void 0&&r.forEach(t=>t(e))};return e.displayName=`evtdUnifiedWindowEventHandler`,e}let m=f(),h=p();function g(e,t){let n=u[e];return n[t]===void 0&&(n[t]=new Map,window.addEventListener(t,m,e===`capture`)),n[t]}function _(e){return d[e]===void 0&&(d[e]=new Set,window.addEventListener(e,h)),d[e]}function v(e,t){let n=e.get(t);return n===void 0&&e.set(t,n=new Set),n}function y(e,t,n,r){let i=u[t][n];if(i!==void 0){let t=i.get(e);if(t!==void 0&&t.has(r))return!0}return!1}function b(e,t){let n=d[e];return!!(n!==void 0&&n.has(t))}function x(e,t,n,r){let i;if(i=typeof r==`object`&&r.once===!0?a=>{S(e,t,i,r),n(a)}:n,se(e,t,i,r))return;let a=v(g(r===!0||typeof r==`object`&&r.capture===!0?`capture`:`bubble`,e),t);if(a.has(i)||a.add(i),t===window){let t=_(e);t.has(i)||t.add(i)}}function S(e,t,n,r){if(I(e,t,n,r))return;let i=r===!0||typeof r==`object`&&r.capture===!0,a=i?`capture`:`bubble`,o=g(a,e),s=v(o,t);if(t===window&&!y(t,i?`bubble`:`capture`,e,n)&&b(e,n)){let t=d[e];t.delete(n),t.size===0&&(window.removeEventListener(e,h),d[e]=void 0)}s.has(n)&&s.delete(n),s.size===0&&o.delete(t),o.size===0&&(window.removeEventListener(e,m,a===`capture`),u[a][e]=void 0)}return{on:x,off:S}}var{on:L,off:R}=ce();function le(t,n){return l(t,e=>{e!==void 0&&(n.value=e)}),e(()=>t.value===void 0?n.value:t.value)}var ue=(typeof window>`u`?!1:/iPad|iPhone|iPod/.test(navigator.platform)||navigator.platform===`MacIntel`&&navigator.maxTouchPoints>1)&&!window.MSStream;function de(){return ue}function fe(e){let t={isDeactivated:!1},r=!1;return g(()=>{if(t.isDeactivated=!1,!r){r=!0;return}e()}),n(()=>{t.isDeactivated=!0,r||=!0}),t}function pe(e,t){console.error(`[vueuc/${e}]: ${t}`)}var z=[],me=function(){return z.some(function(e){return e.activeTargets.length>0})},he=function(){return z.some(function(e){return e.skippedTargets.length>0})},ge=`ResizeObserver loop completed with undelivered notifications.`,_e=function(){var e;typeof ErrorEvent==`function`?e=new ErrorEvent(`error`,{message:ge}):(e=document.createEvent(`Event`),e.initEvent(`error`,!1,!1),e.message=ge),window.dispatchEvent(e)},B;(function(e){e.BORDER_BOX=`border-box`,e.CONTENT_BOX=`content-box`,e.DEVICE_PIXEL_CONTENT_BOX=`device-pixel-content-box`})(B||={});var V=function(e){return Object.freeze(e)},ve=function(){function e(e,t){this.inlineSize=e,this.blockSize=t,V(this)}return e}(),ye=function(){function e(e,t,n,r){return this.x=e,this.y=t,this.width=n,this.height=r,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,V(this)}return e.prototype.toJSON=function(){var e=this;return{x:e.x,y:e.y,top:e.top,right:e.right,bottom:e.bottom,left:e.left,width:e.width,height:e.height}},e.fromRect=function(t){return new e(t.x,t.y,t.width,t.height)},e}(),be=function(e){return e instanceof SVGElement&&`getBBox`in e},xe=function(e){if(be(e)){var t=e.getBBox(),n=t.width,r=t.height;return!n&&!r}var i=e,a=i.offsetWidth,o=i.offsetHeight;return!(a||o||e.getClientRects().length)},Se=function(e){if(e instanceof Element)return!0;var t=e?.ownerDocument?.defaultView;return!!(t&&e instanceof t.Element)},H=function(e){switch(e.tagName){case`INPUT`:if(e.type!==`image`)break;case`VIDEO`:case`AUDIO`:case`EMBED`:case`OBJECT`:case`CANVAS`:case`IFRAME`:case`IMG`:return!0}return!1},U=typeof window<`u`?window:{},W=new WeakMap,G=/auto|scroll/,Ce=/^tb|vertical/,we=/msie|trident/i.test(U.navigator&&U.navigator.userAgent),K=function(e){return parseFloat(e||`0`)},q=function(e,t,n){return e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=!1),new ve((n?t:e)||0,(n?e:t)||0)},Te=V({devicePixelContentBoxSize:q(),borderBoxSize:q(),contentBoxSize:q(),contentRect:new ye(0,0,0,0)}),Ee=function(e,t){if(t===void 0&&(t=!1),W.has(e)&&!t)return W.get(e);if(xe(e))return W.set(e,Te),Te;var n=getComputedStyle(e),r=be(e)&&e.ownerSVGElement&&e.getBBox(),i=!we&&n.boxSizing===`border-box`,a=Ce.test(n.writingMode||``),o=!r&&G.test(n.overflowY||``),s=!r&&G.test(n.overflowX||``),c=r?0:K(n.paddingTop),l=r?0:K(n.paddingRight),u=r?0:K(n.paddingBottom),d=r?0:K(n.paddingLeft),f=r?0:K(n.borderTopWidth),p=r?0:K(n.borderRightWidth),m=r?0:K(n.borderBottomWidth),h=r?0:K(n.borderLeftWidth),g=d+l,_=c+u,v=h+p,y=f+m,b=s?e.offsetHeight-y-e.clientHeight:0,x=o?e.offsetWidth-v-e.clientWidth:0,S=i?g+v:0,ee=i?_+y:0,C=r?r.width:K(n.width)-S-x,w=r?r.height:K(n.height)-ee-b,T=C+g+x+v,E=w+_+b+y,D=V({devicePixelContentBoxSize:q(Math.round(C*devicePixelRatio),Math.round(w*devicePixelRatio),a),borderBoxSize:q(T,E,a),contentBoxSize:q(C,w,a),contentRect:new ye(d,c,C,w)});return W.set(e,D),D},De=function(e,t,n){var r=Ee(e,n),i=r.borderBoxSize,a=r.contentBoxSize,o=r.devicePixelContentBoxSize;switch(t){case B.DEVICE_PIXEL_CONTENT_BOX:return o;case B.BORDER_BOX:return i;default:return a}},Oe=function(){function e(e){var t=Ee(e);this.target=e,this.contentRect=t.contentRect,this.borderBoxSize=V([t.borderBoxSize]),this.contentBoxSize=V([t.contentBoxSize]),this.devicePixelContentBoxSize=V([t.devicePixelContentBoxSize])}return e}(),J=function(e){if(xe(e))return 1/0;for(var t=0,n=e.parentNode;n;)t+=1,n=n.parentNode;return t},ke=function(){var e=1/0,t=[];z.forEach(function(n){if(n.activeTargets.length!==0){var r=[];n.activeTargets.forEach(function(t){var n=new Oe(t.target),i=J(t.target);r.push(n),t.lastReportedSize=De(t.target,t.observedBox),i<e&&(e=i)}),t.push(function(){n.callback.call(n.observer,r,n.observer)}),n.activeTargets.splice(0,n.activeTargets.length)}});for(var n=0,r=t;n<r.length;n++){var i=r[n];i()}return e},Ae=function(e){z.forEach(function(t){t.activeTargets.splice(0,t.activeTargets.length),t.skippedTargets.splice(0,t.skippedTargets.length),t.observationTargets.forEach(function(n){n.isActive()&&(J(n.target)>e?t.activeTargets.push(n):t.skippedTargets.push(n))})})},je=function(){var e=0;for(Ae(e);me();)e=ke(),Ae(e);return he()&&_e(),e>0},Y,Me=[],X=function(){return Me.splice(0).forEach(function(e){return e()})},Ne=function(e){if(!Y){var t=0,n=document.createTextNode(``);new MutationObserver(function(){return X()}).observe(n,{characterData:!0}),Y=function(){n.textContent=`${t?t--:t++}`}}Me.push(e),Y()},Pe=function(e){Ne(function(){requestAnimationFrame(e)})},Z=0,Fe=function(){return!!Z},Ie=250,Le={attributes:!0,characterData:!0,childList:!0,subtree:!0},Re=[`resize`,`load`,`transitionend`,`animationend`,`animationstart`,`animationiteration`,`keyup`,`keydown`,`mouseup`,`mousedown`,`mouseover`,`mouseout`,`blur`,`focus`],ze=function(e){return e===void 0&&(e=0),Date.now()+e},Be=!1,Ve=new(function(){function e(){var e=this;this.stopped=!0,this.listener=function(){return e.schedule()}}return e.prototype.run=function(e){var t=this;if(e===void 0&&(e=Ie),!Be){Be=!0;var n=ze(e);Pe(function(){var r=!1;try{r=je()}finally{if(Be=!1,e=n-ze(),!Fe())return;r?t.run(1e3):e>0?t.run(e):t.start()}})}},e.prototype.schedule=function(){this.stop(),this.run()},e.prototype.observe=function(){var e=this,t=function(){return e.observer&&e.observer.observe(document.body,Le)};document.body?t():U.addEventListener(`DOMContentLoaded`,t)},e.prototype.start=function(){var e=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),Re.forEach(function(t){return U.addEventListener(t,e.listener,!0)}))},e.prototype.stop=function(){var e=this;this.stopped||=(this.observer&&this.observer.disconnect(),Re.forEach(function(t){return U.removeEventListener(t,e.listener,!0)}),!0)},e}()),He=function(e){!Z&&e>0&&Ve.start(),Z+=e,!Z&&Ve.stop()},Ue=function(e){return!be(e)&&!H(e)&&getComputedStyle(e).display===`inline`},We=function(){function e(e,t){this.target=e,this.observedBox=t||B.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var e=De(this.target,this.observedBox,!0);return Ue(this.target)&&(this.lastReportedSize=e),this.lastReportedSize.inlineSize!==e.inlineSize||this.lastReportedSize.blockSize!==e.blockSize},e}(),Ge=function(){function e(e,t){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=e,this.callback=t}return e}(),Ke=new WeakMap,qe=function(e,t){for(var n=0;n<e.length;n+=1)if(e[n].target===t)return n;return-1},Je=function(){function e(){}return e.connect=function(e,t){var n=new Ge(e,t);Ke.set(e,n)},e.observe=function(e,t,n){var r=Ke.get(e),i=r.observationTargets.length===0;qe(r.observationTargets,t)<0&&(i&&z.push(r),r.observationTargets.push(new We(t,n&&n.box)),He(1),Ve.schedule())},e.unobserve=function(e,t){var n=Ke.get(e),r=qe(n.observationTargets,t),i=n.observationTargets.length===1;r>=0&&(i&&z.splice(z.indexOf(n),1),n.observationTargets.splice(r,1),He(-1))},e.disconnect=function(e){var t=this,n=Ke.get(e);n.observationTargets.slice().forEach(function(n){return t.unobserve(e,n.target)}),n.activeTargets.splice(0,n.activeTargets.length)},e}(),Ye=function(){function e(e){if(arguments.length===0)throw TypeError(`Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.`);if(typeof e!=`function`)throw TypeError(`Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.`);Je.connect(this,e)}return e.prototype.observe=function(e,t){if(arguments.length===0)throw TypeError(`Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.`);if(!Se(e))throw TypeError(`Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element`);Je.observe(this,e,t)},e.prototype.unobserve=function(e){if(arguments.length===0)throw TypeError(`Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.`);if(!Se(e))throw TypeError(`Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element`);Je.unobserve(this,e)},e.prototype.disconnect=function(){Je.disconnect(this)},e.toString=function(){return`function ResizeObserver () { [polyfill code] }`},e}(),Xe=new class{constructor(){this.handleResize=this.handleResize.bind(this),this.observer=new(typeof window<`u`&&window.ResizeObserver||Ye)(this.handleResize),this.elHandlersMap=new Map}handleResize(e){for(let t of e){let e=this.elHandlersMap.get(t.target);e!==void 0&&e(t)}}registerHandler(e,t){this.elHandlersMap.set(e,t),this.observer.observe(e)}unregisterHandler(e){this.elHandlersMap.has(e)&&(this.elHandlersMap.delete(e),this.observer.unobserve(e))}},Ze=m({name:`ResizeObserver`,props:{onResize:Function},setup(e){let t=!1,n=a().proxy;function r(t){let{onResize:n}=e;n!==void 0&&n(t)}s(()=>{let e=n.$el;if(e===void 0){pe(`resize-observer`,`$el does not exist.`);return}if(e.nextElementSibling!==e.nextSibling&&e.nodeType===3&&e.nodeValue!==``){pe(`resize-observer`,`$el can not be observed (it may be a text node).`);return}e.nextElementSibling!==null&&(Xe.registerHandler(e.nextElementSibling,r),t=!0)}),c(()=>{t&&Xe.unregisterHandler(n.$el.nextElementSibling)})},render(){return r(this.$slots,`default`)}});function Qe(e){let{left:t,right:n,top:r,bottom:i}=A(e);return`${r} ${t} ${i} ${n}`}var $e=m({render(){var e;return(e=this.$slots).default?.call(e)}}),et={name:`en-US`,global:{undo:`Undo`,redo:`Redo`,confirm:`Confirm`,clear:`Clear`},Popconfirm:{positiveText:`Confirm`,negativeText:`Cancel`},Cascader:{placeholder:`Please Select`,loading:`Loading`,loadingRequiredMessage:e=>`Please load all ${e}'s descendants before checking it.`},Time:{dateFormat:`yyyy-MM-dd`,dateTimeFormat:`yyyy-MM-dd HH:mm:ss`},DatePicker:{yearFormat:`yyyy`,monthFormat:`MMM`,dayFormat:`eeeeee`,yearTypeFormat:`yyyy`,monthTypeFormat:`yyyy-MM`,dateFormat:`yyyy-MM-dd`,dateTimeFormat:`yyyy-MM-dd HH:mm:ss`,quarterFormat:`yyyy-qqq`,weekFormat:`YYYY-w`,clear:`Clear`,now:`Now`,confirm:`Confirm`,selectTime:`Select Time`,selectDate:`Select Date`,datePlaceholder:`Select Date`,datetimePlaceholder:`Select Date and Time`,monthPlaceholder:`Select Month`,yearPlaceholder:`Select Year`,quarterPlaceholder:`Select Quarter`,weekPlaceholder:`Select Week`,startDatePlaceholder:`Start Date`,endDatePlaceholder:`End Date`,startDatetimePlaceholder:`Start Date and Time`,endDatetimePlaceholder:`End Date and Time`,startMonthPlaceholder:`Start Month`,endMonthPlaceholder:`End Month`,monthBeforeYear:!0,firstDayOfWeek:6,today:`Today`},DataTable:{checkTableAll:`Select all in the table`,uncheckTableAll:`Unselect all in the table`,confirm:`Confirm`,clear:`Clear`},LegacyTransfer:{sourceTitle:`Source`,targetTitle:`Target`},Transfer:{selectAll:`Select all`,unselectAll:`Unselect all`,clearAll:`Clear`,total:e=>`Total ${e} items`,selected:e=>`${e} items selected`},Empty:{description:`No Data`},Select:{placeholder:`Please Select`},TimePicker:{placeholder:`Select Time`,positiveText:`OK`,negativeText:`Cancel`,now:`Now`,clear:`Clear`},Pagination:{goto:`Goto`,selectionSuffix:`page`},DynamicTags:{add:`Add`},Log:{loading:`Loading`},Input:{placeholder:`Please Input`},InputNumber:{placeholder:`Please Input`},DynamicInput:{create:`Create`},ThemeEditor:{title:`Theme Editor`,clearAllVars:`Clear All Variables`,clearSearch:`Clear Search`,filterCompName:`Filter Component Name`,filterVarName:`Filter Variable Name`,import:`Import`,export:`Export`,restore:`Reset to Default`},Image:{tipPrevious:`Previous picture (←)`,tipNext:`Next picture (→)`,tipCounterclockwise:`Counterclockwise`,tipClockwise:`Clockwise`,tipZoomOut:`Zoom out`,tipZoomIn:`Zoom in`,tipDownload:`Download`,tipClose:`Close (Esc)`,tipOriginalSize:`Zoom to original size`},Heatmap:{less:`less`,more:`more`,monthFormat:`MMM`,weekdayFormat:`eee`}};function tt(e){return(t={})=>{let n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}function Q(e){return(t,n)=>{let r=n?.context?String(n.context):`standalone`,i;if(r===`formatting`&&e.formattingValues){let t=e.defaultFormattingWidth||e.defaultWidth,r=n?.width?String(n.width):t;i=e.formattingValues[r]||e.formattingValues[t]}else{let t=e.defaultWidth,r=n?.width?String(n.width):e.defaultWidth;i=e.values[r]||e.values[t]}let a=e.argumentCallback?e.argumentCallback(t):t;return i[a]}}function $(e){return(t,n={})=>{let r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(i);if(!a)return null;let o=a[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(s)?rt(s,e=>e.test(o)):nt(s,e=>e.test(o)),l;l=e.valueCallback?e.valueCallback(c):c,l=n.valueCallback?n.valueCallback(l):l;let u=t.slice(o.length);return{value:l,rest:u}}}function nt(e,t){for(let n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function rt(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function it(e){return(t,n={})=>{let r=t.match(e.matchPattern);if(!r)return null;let i=r[0],a=t.match(e.parsePattern);if(!a)return null;let o=e.valueCallback?e.valueCallback(a[0]):a[0];o=n.valueCallback?n.valueCallback(o):o;let s=t.slice(i.length);return{value:o,rest:s}}}var at={lessThanXSeconds:{one:`less than a second`,other:`less than {{count}} seconds`},xSeconds:{one:`1 second`,other:`{{count}} seconds`},halfAMinute:`half a minute`,lessThanXMinutes:{one:`less than a minute`,other:`less than {{count}} minutes`},xMinutes:{one:`1 minute`,other:`{{count}} minutes`},aboutXHours:{one:`about 1 hour`,other:`about {{count}} hours`},xHours:{one:`1 hour`,other:`{{count}} hours`},xDays:{one:`1 day`,other:`{{count}} days`},aboutXWeeks:{one:`about 1 week`,other:`about {{count}} weeks`},xWeeks:{one:`1 week`,other:`{{count}} weeks`},aboutXMonths:{one:`about 1 month`,other:`about {{count}} months`},xMonths:{one:`1 month`,other:`{{count}} months`},aboutXYears:{one:`about 1 year`,other:`about {{count}} years`},xYears:{one:`1 year`,other:`{{count}} years`},overXYears:{one:`over 1 year`,other:`over {{count}} years`},almostXYears:{one:`almost 1 year`,other:`almost {{count}} years`}},ot=(e,t,n)=>{let r,i=at[e];return r=typeof i==`string`?i:t===1?i.one:i.other.replace(`{{count}}`,t.toString()),n?.addSuffix?n.comparison&&n.comparison>0?`in `+r:r+` ago`:r},st={lastWeek:`'last' eeee 'at' p`,yesterday:`'yesterday at' p`,today:`'today at' p`,tomorrow:`'tomorrow at' p`,nextWeek:`eeee 'at' p`,other:`P`},ct=(e,t,n,r)=>st[e],lt={ordinalNumber:(e,t)=>{let n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+`st`;case 2:return n+`nd`;case 3:return n+`rd`}return n+`th`},era:Q({values:{narrow:[`B`,`A`],abbreviated:[`BC`,`AD`],wide:[`Before Christ`,`Anno Domini`]},defaultWidth:`wide`}),quarter:Q({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`Q1`,`Q2`,`Q3`,`Q4`],wide:[`1st quarter`,`2nd quarter`,`3rd quarter`,`4th quarter`]},defaultWidth:`wide`,argumentCallback:e=>e-1}),month:Q({values:{narrow:[`J`,`F`,`M`,`A`,`M`,`J`,`J`,`A`,`S`,`O`,`N`,`D`],abbreviated:[`Jan`,`Feb`,`Mar`,`Apr`,`May`,`Jun`,`Jul`,`Aug`,`Sep`,`Oct`,`Nov`,`Dec`],wide:[`January`,`February`,`March`,`April`,`May`,`June`,`July`,`August`,`September`,`October`,`November`,`December`]},defaultWidth:`wide`}),day:Q({values:{narrow:[`S`,`M`,`T`,`W`,`T`,`F`,`S`],short:[`Su`,`Mo`,`Tu`,`We`,`Th`,`Fr`,`Sa`],abbreviated:[`Sun`,`Mon`,`Tue`,`Wed`,`Thu`,`Fri`,`Sat`],wide:[`Sunday`,`Monday`,`Tuesday`,`Wednesday`,`Thursday`,`Friday`,`Saturday`]},defaultWidth:`wide`}),dayPeriod:Q({values:{narrow:{am:`a`,pm:`p`,midnight:`mi`,noon:`n`,morning:`morning`,afternoon:`afternoon`,evening:`evening`,night:`night`},abbreviated:{am:`AM`,pm:`PM`,midnight:`midnight`,noon:`noon`,morning:`morning`,afternoon:`afternoon`,evening:`evening`,night:`night`},wide:{am:`a.m.`,pm:`p.m.`,midnight:`midnight`,noon:`noon`,morning:`morning`,afternoon:`afternoon`,evening:`evening`,night:`night`}},defaultWidth:`wide`,formattingValues:{narrow:{am:`a`,pm:`p`,midnight:`mi`,noon:`n`,morning:`in the morning`,afternoon:`in the afternoon`,evening:`in the evening`,night:`at night`},abbreviated:{am:`AM`,pm:`PM`,midnight:`midnight`,noon:`noon`,morning:`in the morning`,afternoon:`in the afternoon`,evening:`in the evening`,night:`at night`},wide:{am:`a.m.`,pm:`p.m.`,midnight:`midnight`,noon:`noon`,morning:`in the morning`,afternoon:`in the afternoon`,evening:`in the evening`,night:`at night`}},defaultFormattingWidth:`wide`})},ut={ordinalNumber:it({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:$({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:`any`}),quarter:$({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:`any`,valueCallback:e=>e+1}),month:$({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:`any`}),day:$({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:`any`}),dayPeriod:$({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:`any`})},dt={name:`en-US`,locale:{code:`en-US`,formatDistance:ot,formatLong:{date:tt({formats:{full:`EEEE, MMMM do, y`,long:`MMMM do, y`,medium:`MMM d, y`,short:`MM/dd/yyyy`},defaultWidth:`full`}),time:tt({formats:{full:`h:mm:ss a zzzz`,long:`h:mm:ss a z`,medium:`h:mm:ss a`,short:`h:mm a`},defaultWidth:`full`}),dateTime:tt({formats:{full:`{{date}} 'at' {{time}}`,long:`{{date}} 'at' {{time}}`,medium:`{{date}}, {{time}}`,short:`{{date}}, {{time}}`},defaultWidth:`full`})},formatRelative:ct,localize:lt,match:ut,options:{weekStartsOn:0,firstWeekContainsDate:1}}};function ft(n){let{mergedLocaleRef:r,mergedDateLocaleRef:i}=t(v,null)||{},a=e(()=>r?.value?.[n]??et[n]);return{dateLocaleRef:e(()=>i?.value??dt),localeRef:a}}var pt=m({name:`ChevronDown`,render(){return o(`svg`,{viewBox:`0 0 16 16`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},o(`path`,{d:`M3.14645 5.64645C3.34171 5.45118 3.65829 5.45118 3.85355 5.64645L8 9.79289L12.1464 5.64645C12.3417 5.45118 12.6583 5.45118 12.8536 5.64645C13.0488 5.84171 13.0488 6.15829 12.8536 6.35355L8.35355 10.8536C8.15829 11.0488 7.84171 11.0488 7.64645 10.8536L3.14645 6.35355C2.95118 6.15829 2.95118 5.84171 3.14645 5.64645Z`,fill:`currentColor`}))}}),mt=ne(`clear`,()=>o(`svg`,{viewBox:`0 0 16 16`,version:`1.1`,xmlns:`http://www.w3.org/2000/svg`},o(`g`,{stroke:`none`,"stroke-width":`1`,fill:`none`,"fill-rule":`evenodd`},o(`g`,{fill:`currentColor`,"fill-rule":`nonzero`},o(`path`,{d:`M8,2 C11.3137085,2 14,4.6862915 14,8 C14,11.3137085 11.3137085,14 8,14 C4.6862915,14 2,11.3137085 2,8 C2,4.6862915 4.6862915,2 8,2 Z M6.5343055,5.83859116 C6.33943736,5.70359511 6.07001296,5.72288026 5.89644661,5.89644661 L5.89644661,5.89644661 L5.83859116,5.9656945 C5.70359511,6.16056264 5.72288026,6.42998704 5.89644661,6.60355339 L5.89644661,6.60355339 L7.293,8 L5.89644661,9.39644661 L5.83859116,9.4656945 C5.70359511,9.66056264 5.72288026,9.92998704 5.89644661,10.1035534 L5.89644661,10.1035534 L5.9656945,10.1614088 C6.16056264,10.2964049 6.42998704,10.2771197 6.60355339,10.1035534 L6.60355339,10.1035534 L8,8.707 L9.39644661,10.1035534 L9.4656945,10.1614088 C9.66056264,10.2964049 9.92998704,10.2771197 10.1035534,10.1035534 L10.1035534,10.1035534 L10.1614088,10.0343055 C10.2964049,9.83943736 10.2771197,9.57001296 10.1035534,9.39644661 L10.1035534,9.39644661 L8.707,8 L10.1035534,6.60355339 L10.1614088,6.5343055 C10.2964049,6.33943736 10.2771197,6.07001296 10.1035534,5.89644661 L10.1035534,5.89644661 L10.0343055,5.83859116 C9.83943736,5.70359511 9.57001296,5.72288026 9.39644661,5.89644661 L9.39644661,5.89644661 L8,7.293 L6.60355339,5.89644661 Z`}))))),ht=S(`base-clear`,`
|
|
2
2
|
flex-shrink: 0;
|
|
3
3
|
height: 1em;
|
|
4
4
|
width: 1em;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{C as e,N as t,ct as n,dt as r,j as i}from"./router-
|
|
1
|
+
import{C as e,N as t,ct as n,dt as r,j as i}from"./router-Dj-Nmg7q.js";import{B as a,K as o,R as s,U as c,a as l,c as u,ct as d,dt as f,ft as p,n as m,nt as h,o as g,pt as _,q as v,r as y,st as b,ut as x,z as S}from"./browser-CQRjhbaB.js";import{d as C}from"./Suffix-DgzfIwzx.js";import{l as w,s as T}from"./fade-in.cssr-lwO9nLky.js";import{t as E}from"./_common-Yp55QE79.js";function D(e){let{primaryColor:t,opacityDisabled:n,borderRadius:r,textColor3:i}=e;return Object.assign(Object.assign({},E),{iconColor:i,textColor:`white`,loadingColor:t,opacityDisabled:n,railColor:`rgba(0, 0, 0, .14)`,railColorActive:t,buttonBoxShadow:`0 1px 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 1px 0 rgba(0, 0, 0, 0.05)`,buttonColor:`#FFF`,railBorderRadiusSmall:r,railBorderRadiusMedium:r,railBorderRadiusLarge:r,buttonBorderRadiusSmall:r,buttonBorderRadiusMedium:r,buttonBorderRadiusLarge:r,boxShadowFocus:`0 0 0 2px ${h(t,{alpha:.2})}`})}var O={name:`Switch`,common:m,self:D},k=d(`switch`,`
|
|
2
2
|
height: var(--n-height);
|
|
3
3
|
min-width: var(--n-width);
|
|
4
4
|
vertical-align: middle;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{C as e,K as t,N as n,ct as r,dt as i,j as a}from"./router-
|
|
1
|
+
import{C as e,K as t,N as n,ct as r,dt as i,j as a}from"./router-Dj-Nmg7q.js";import{$ as o,B as s,K as c,c as l,ct as u,d,dt as f,ft as p,n as m,nt as h,pt as g,q as _,st as v,ut as y,z as b}from"./browser-CQRjhbaB.js";import{c as x}from"./fade-in.cssr-lwO9nLky.js";import{t as S}from"./Close-CKHcXisf.js";import{o as C}from"./Button-EoeZgIFH.js";var w={closeIconSizeTiny:`12px`,closeIconSizeSmall:`12px`,closeIconSizeMedium:`14px`,closeIconSizeLarge:`14px`,closeSizeTiny:`16px`,closeSizeSmall:`16px`,closeSizeMedium:`18px`,closeSizeLarge:`18px`,padding:`0 7px`,closeMargin:`0 0 0 4px`};function T(e){let{textColor2:t,primaryColorHover:n,primaryColorPressed:r,primaryColor:i,infoColor:a,successColor:o,warningColor:s,errorColor:c,baseColor:l,borderColor:u,opacityDisabled:d,tagColor:f,closeIconColor:p,closeIconColorHover:m,closeIconColorPressed:g,borderRadiusSmall:_,fontSizeMini:v,fontSizeTiny:y,fontSizeSmall:b,fontSizeMedium:x,heightMini:S,heightTiny:C,heightSmall:T,heightMedium:E,closeColorHover:D,closeColorPressed:O,buttonColor2Hover:k,buttonColor2Pressed:A,fontWeightStrong:j}=e;return Object.assign(Object.assign({},w),{closeBorderRadius:_,heightTiny:S,heightSmall:C,heightMedium:T,heightLarge:E,borderRadius:_,opacityDisabled:d,fontSizeTiny:v,fontSizeSmall:y,fontSizeMedium:b,fontSizeLarge:x,fontWeightStrong:j,textColorCheckable:t,textColorHoverCheckable:t,textColorPressedCheckable:t,textColorChecked:l,colorCheckable:`#0000`,colorHoverCheckable:k,colorPressedCheckable:A,colorChecked:i,colorCheckedHover:n,colorCheckedPressed:r,border:`1px solid ${u}`,textColor:t,color:f,colorBordered:`rgb(250, 250, 252)`,closeIconColor:p,closeIconColorHover:m,closeIconColorPressed:g,closeColorHover:D,closeColorPressed:O,borderPrimary:`1px solid ${h(i,{alpha:.3})}`,textColorPrimary:i,colorPrimary:h(i,{alpha:.12}),colorBorderedPrimary:h(i,{alpha:.1}),closeIconColorPrimary:i,closeIconColorHoverPrimary:i,closeIconColorPressedPrimary:i,closeColorHoverPrimary:h(i,{alpha:.12}),closeColorPressedPrimary:h(i,{alpha:.18}),borderInfo:`1px solid ${h(a,{alpha:.3})}`,textColorInfo:a,colorInfo:h(a,{alpha:.12}),colorBorderedInfo:h(a,{alpha:.1}),closeIconColorInfo:a,closeIconColorHoverInfo:a,closeIconColorPressedInfo:a,closeColorHoverInfo:h(a,{alpha:.12}),closeColorPressedInfo:h(a,{alpha:.18}),borderSuccess:`1px solid ${h(o,{alpha:.3})}`,textColorSuccess:o,colorSuccess:h(o,{alpha:.12}),colorBorderedSuccess:h(o,{alpha:.1}),closeIconColorSuccess:o,closeIconColorHoverSuccess:o,closeIconColorPressedSuccess:o,closeColorHoverSuccess:h(o,{alpha:.12}),closeColorPressedSuccess:h(o,{alpha:.18}),borderWarning:`1px solid ${h(s,{alpha:.35})}`,textColorWarning:s,colorWarning:h(s,{alpha:.15}),colorBorderedWarning:h(s,{alpha:.12}),closeIconColorWarning:s,closeIconColorHoverWarning:s,closeIconColorPressedWarning:s,closeColorHoverWarning:h(s,{alpha:.12}),closeColorPressedWarning:h(s,{alpha:.18}),borderError:`1px solid ${h(c,{alpha:.23})}`,textColorError:c,colorError:h(c,{alpha:.1}),colorBorderedError:h(c,{alpha:.08}),closeIconColorError:c,closeIconColorHoverError:c,closeIconColorPressedError:c,closeColorHoverError:h(c,{alpha:.12}),closeColorPressedError:h(c,{alpha:.18})})}var E={name:`Tag`,common:m,self:T},D={color:Object,type:{type:String,default:`default`},round:Boolean,size:String,closable:Boolean,disabled:{type:Boolean,default:void 0}},O=u(`tag`,`
|
|
2
2
|
--n-close-margin: var(--n-close-margin-top) var(--n-close-margin-right) var(--n-close-margin-bottom) var(--n-close-margin-left);
|
|
3
3
|
white-space: nowrap;
|
|
4
4
|
position: relative;
|