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 @@
|
|
|
1
|
+
import{A as e,C as t,D as n,E as r,G as i,Q as a,T as o,U as s,W as c,X as l,Y as u,ct as d,gt as f,j as p,k as m,mt as h,o as g,pt as _,q as v,w as y,y as b}from"./router-Dj-Nmg7q.js";import{r as x,t as S}from"./_plugin-vue_export-helper-Cnn0Z73x.js";import{t as C}from"./Modal-C5-Iw50K.js";import{n as w,t as T}from"./FormItem-CvZvjrtr.js";import{t as E}from"./Select-uZBC8HC2.js";import{t as D}from"./Button-EoeZgIFH.js";import{t as O}from"./Input-Bk7XdoG-.js";import{t as k}from"./composables-ClIU-Ad1.js";import{t as A}from"./use-message-BgToAqhv.js";import{t as j}from"./Spin-ChbFBUOD.js";import{t as M}from"./app-BMobzABI.js";import{t as N}from"./models-DLQiHB7r.js";var P={class:`provider-card`},F={class:`card-header`},I={class:`provider-name`},L={class:`card-body`},R={class:`info-row`},z={class:`info-label`},B={class:`info-value mono`},V={class:`info-row`},H={class:`info-label`},ee={class:`info-value mono`},U={class:`card-actions`},W=S(p({__name:`ProviderCard`,props:{provider:{}},setup(r){let o=r,{t:s}=x(),c=N(),l=A(),u=k(),p=t(()=>o.provider.provider.startsWith(`custom:`)),g=t(()=>o.provider.label),v=d(!1);async function b(){u.warning({title:s(`models.deleteProvider`),content:s(`models.deleteConfirm`,{name:g.value}),positiveText:s(`common.delete`),negativeText:s(`common.cancel`),onPositiveClick:async()=>{v.value=!0;try{await c.removeProvider(o.provider.provider),l.success(s(`models.providerDeleted`))}catch(e){l.error(e.message)}finally{v.value=!1}}})}return(t,o)=>(i(),n(`div`,P,[y(`div`,F,[y(`h3`,I,f(g.value),1),y(`span`,{class:h([`type-badge`,p.value?`custom`:`builtin`])},f(p.value?_(s)(`models.customType`):_(s)(`models.builtIn`)),3)]),y(`div`,L,[y(`div`,R,[y(`span`,z,f(_(s)(`models.provider`)),1),y(`code`,B,f(r.provider.provider),1)]),y(`div`,V,[y(`span`,H,f(_(s)(`models.baseUrl`)),1),y(`code`,ee,f(r.provider.base_url),1)])]),y(`div`,U,[e(_(D),{size:`tiny`,quaternary:``,type:`error`,loading:v.value,onClick:b},{default:a(()=>[m(f(_(s)(`common.delete`)),1)]),_:1},8,[`loading`])])]))}}),[[`__scopeId`,`data-v-f48ea7e8`]]),G={key:0,class:`empty-state`},K={key:1,class:`providers-grid`},q=S(p({__name:`ProvidersPanel`,setup(e){let{t}=x(),r=N();return(e,a)=>_(r).providers.length===0?(i(),n(`div`,G,[a[0]||=y(`svg`,{width:`48`,height:`48`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`1`,class:`empty-icon`},[y(`path`,{d:`M12 2L2 7l10 5 10-5-10-5z`}),y(`path`,{d:`M2 17l10 5 10-5`}),y(`path`,{d:`M2 12l10 5 10-5`})],-1),y(`p`,null,f(_(t)(`models.noProviders`)),1)])):(i(),n(`div`,K,[(i(!0),n(b,null,v(_(r).providers,e=>(i(),o(W,{key:e.provider,provider:e},null,8,[`provider`]))),128))]))}}),[[`__scopeId`,`data-v-76eec30b`]]);async function J(){return g(`/api/hermes/auth/codex/start`,{method:`POST`})}async function Y(e){return g(`/api/hermes/auth/codex/poll/${e}`)}var X={class:`codex-login`},Z={key:0,class:`codex-login__state`},Q={key:1,class:`codex-login__state`},te={class:`codex-login__hint`},ne={class:`codex-login__code-text`},re={key:2,class:`codex-login__state codex-login__state--success`},ie={key:3,class:`codex-login__state`},ae={class:`codex-login__error`},oe={key:4,class:`codex-login__state`},se={class:`codex-login__error`},ce={class:`modal-footer`},le=S(p({__name:`CodexLoginModal`,emits:[`close`,`success`],setup(t,{emit:s}){let{t:l}=x(),p=s,h=A(),g=d(!0),v=d(`idle`),b=d(``),S=d(``),w=d(``),T=d(``),E=null;async function O(){v.value=`loading`,T.value=``;try{let e=await J();b.value=e.user_code,S.value=e.verification_url,w.value=e.session_id,v.value=`waiting`,k()}catch(e){v.value=`error`;let t=e.message||``;try{let e=t.match(/\{[\s\S]*\}$/);e?T.value=JSON.parse(e[0]).error||t:T.value=t}catch{T.value=t}h.error(T.value)}}function k(){j(),E=setTimeout(async()=>{try{let e=await Y(w.value);e.status===`pending`?k():e.status===`approved`?(v.value=`approved`,h.success(l(`models.codexApproved`)),setTimeout(()=>{g.value=!1,setTimeout(()=>p(`success`),200)},1e3)):e.status===`expired`?v.value=`expired`:e.status===`error`&&(v.value=`error`,T.value=e.error||`Unknown error`)}catch{k()}},3e3)}function j(){E&&=(clearTimeout(E),null)}function M(){j(),g.value=!1,setTimeout(()=>p(`close`),200)}function N(){navigator.clipboard.writeText(b.value),h.success(l(`models.codexCopyCode`))}function P(){window.open(S.value,`_blank`)}function F(){v.value=`idle`,b.value=``,S.value=``,w.value=``,T.value=``,O()}return c(()=>{j()}),O(),(t,s)=>{let c=u(`NSpin`);return i(),o(_(C),{show:g.value,"onUpdate:show":s[0]||=e=>g.value=e,preset:`card`,title:_(l)(`models.codexLoginTitle`),style:{width:`min(440px, calc(100vw - 32px))`},"mask-closable":v.value!==`waiting`,onAfterLeave:s[1]||=e=>p(`close`)},{footer:a(()=>[y(`div`,ce,[e(_(D),{disabled:v.value===`waiting`,onClick:M},{default:a(()=>[m(f(_(l)(`common.cancel`)),1)]),_:1},8,[`disabled`])])]),default:a(()=>[y(`div`,X,[v.value===`idle`||v.value===`loading`?(i(),n(`div`,Z,[e(c,{size:`small`})])):v.value===`waiting`?(i(),n(`div`,Q,[y(`p`,te,f(_(l)(`models.codexWaiting`)),1),y(`div`,{class:`codex-login__code`,onClick:N},[y(`span`,ne,f(b.value),1),s[2]||=y(`svg`,{width:`16`,height:`16`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`2`},[y(`rect`,{x:`9`,y:`9`,width:`13`,height:`13`,rx:`2`}),y(`path`,{d:`M5 15H4a2 2 0 01-2-2V4a2 2 0 012-2h9a2 2 0 012 2v1`})],-1)]),e(_(D),{type:`primary`,block:``,onClick:P},{icon:a(()=>[...s[3]||=[y(`svg`,{width:`14`,height:`14`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`2`},[y(`path`,{d:`M18 13v6a2 2 0 01-2 2H5a2 2 0 01-2-2V8a2 2 0 012-2h6`}),y(`polyline`,{points:`15 3 21 3 21 9`}),y(`line`,{x1:`10`,y1:`14`,x2:`21`,y2:`3`})],-1)]]),default:a(()=>[m(` `+f(_(l)(`models.codexOpenLink`)),1)]),_:1})])):v.value===`approved`?(i(),n(`div`,re,[s[4]||=y(`svg`,{width:`40`,height:`40`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`2`},[y(`path`,{d:`M22 11.08V12a10 10 0 11-5.93-9.14`}),y(`polyline`,{points:`22 4 12 14.01 9 11.01`})],-1),y(`p`,null,f(_(l)(`models.codexApproved`)),1)])):v.value===`expired`?(i(),n(`div`,ie,[y(`p`,ae,f(_(l)(`models.codexExpired`)),1),e(_(D),{size:`small`,onClick:F},{default:a(()=>[m(f(_(l)(`common.retry`)),1)]),_:1})])):v.value===`error`?(i(),n(`div`,oe,[y(`p`,se,f(T.value),1),e(_(D),{size:`small`,onClick:F},{default:a(()=>[m(f(_(l)(`common.retry`)),1)]),_:1})])):r(``,!0)])]),_:1},8,[`show`,`title`,`mask-closable`])}}}),[[`__scopeId`,`data-v-3639ba5a`]]),ue={style:{display:`flex`,gap:`12px`}},de={style:{display:`flex`,gap:`8px`,width:`100%`}},$={class:`modal-footer`},fe=`openai-codex`,pe=S(p({__name:`ProviderFormModal`,emits:[`close`,`saved`],setup(n,{emit:c}){let{t:u}=x(),p=c,h=N(),g=A(),v=d(!0),b=d(!1),S=d(!1),k=d(!1),j=d(`preset`),M=d(null),P=d({name:``,base_url:``,api_key:``,model:``}),F=d([]),I=t(()=>M.value===fe),L=t(()=>h.allProviders.map(e=>({label:e.label,value:e.provider})));function R(e){let t=e.replace(/^https?:\/\//,``).replace(/\/v1\/?$/,``).split(`/`)[0];return t.includes(`localhost`)||t.includes(`127.0.0.1`)?u(`models.local`,{host:t}):t.charAt(0).toUpperCase()+t.slice(1)}l(M,e=>{if(P.value.model=``,e){let t=h.allProviders.find(t=>t.provider===e);t&&(P.value.name=t.label,P.value.base_url=t.base_url,F.value=t.models.map(e=>({label:e,value:e})),t.models.length>0&&(P.value.model=t.models[0]))}}),l(()=>P.value.base_url,e=>{j.value===`custom`&&e.trim()&&(P.value.name=R(e.trim()))}),l(j,()=>{F.value=[],P.value={name:``,base_url:``,api_key:``,model:``},M.value=null}),s(()=>{h.providers.length===0&&h.fetchProviders()});async function z(){let{base_url:e}=P.value;if(!e.trim()){g.warning(u(`models.enterBaseUrl`));return}S.value=!0;try{let t=e.replace(/\/+$/,``)+`/models`,n={};P.value.api_key.trim()&&(n.Authorization=`Bearer ${P.value.api_key.trim()}`);let r=await fetch(t,{headers:n,signal:AbortSignal.timeout(8e3)});if(!r.ok)throw Error(`HTTP ${r.status}`);let i=await r.json();if(!Array.isArray(i.data))throw Error(u(`models.unexpectedFormat`));F.value=i.data.map(e=>({label:e.id,value:e.id})),F.value.length>0&&!P.value.model&&(P.value.model=F.value[0].value),g.success(u(`models.foundModels`,{count:F.value.length}))}catch(e){g.error(u(`models.fetchFailed`)+`: `+e.message)}finally{S.value=!1}}async function B(){if(j.value===`preset`&&!M.value){g.warning(u(`models.selectProviderRequired`));return}if(I.value){k.value=!0;return}if(!P.value.base_url.trim()){g.warning(u(`models.baseUrlRequired`));return}if(!P.value.api_key.trim()){g.warning(u(`models.apiKeyRequired`));return}if(!P.value.model){g.warning(u(`models.modelRequired`));return}b.value=!0;try{let e=j.value===`preset`?M.value:null;await h.addProvider({name:P.value.name.trim(),base_url:P.value.base_url.trim(),api_key:P.value.api_key.trim(),model:P.value.model,providerKey:e}),g.success(u(`models.providerAdded`)),p(`saved`)}catch(e){g.error(e.message)}finally{b.value=!1}}async function V(){k.value=!1,g.success(u(`models.providerAdded`)),p(`saved`)}function H(){v.value=!1,setTimeout(()=>p(`close`),200)}return(t,n)=>(i(),o(_(C),{show:v.value,"onUpdate:show":n[8]||=e=>v.value=e,preset:`card`,title:_(u)(`models.addProvider`),style:{width:`min(520px, calc(100vw - 32px))`},"mask-closable":!b.value&&!k.value,onAfterLeave:n[9]||=e=>p(`close`)},{footer:a(()=>[y(`div`,$,[e(_(D),{onClick:H},{default:a(()=>[m(f(_(u)(`common.cancel`)),1)]),_:1}),e(_(D),{type:`primary`,loading:b.value,onClick:B},{default:a(()=>[m(f(_(u)(`common.add`)),1)]),_:1},8,[`loading`])])]),default:a(()=>[e(_(w),{"label-placement":`top`},{default:a(()=>[e(_(T),{label:_(u)(`models.providerType`)},{default:a(()=>[y(`div`,ue,[e(_(D),{type:j.value===`preset`?`primary`:`default`,size:`small`,onClick:n[0]||=e=>j.value=`preset`},{default:a(()=>[m(f(_(u)(`models.preset`)),1)]),_:1},8,[`type`]),e(_(D),{type:j.value===`custom`?`primary`:`default`,size:`small`,onClick:n[1]||=e=>j.value=`custom`},{default:a(()=>[m(f(_(u)(`models.custom`)),1)]),_:1},8,[`type`])])]),_:1},8,[`label`]),j.value===`preset`?(i(),o(_(T),{key:0,label:_(u)(`models.selectProvider`),required:``},{default:a(()=>[e(_(E),{value:M.value,"onUpdate:value":n[2]||=e=>M.value=e,options:L.value,placeholder:_(u)(`models.chooseProvider`),filterable:``},null,8,[`value`,`options`,`placeholder`])]),_:1},8,[`label`])):r(``,!0),j.value===`custom`?(i(),o(_(T),{key:1,label:_(u)(`models.name`)},{default:a(()=>[e(_(O),{value:P.value.name,"onUpdate:value":n[3]||=e=>P.value.name=e,placeholder:_(u)(`models.autoGeneratedName`),disabled:``},null,8,[`value`,`placeholder`])]),_:1},8,[`label`])):r(``,!0),I.value?r(``,!0):(i(),o(_(T),{key:2,label:_(u)(`models.baseUrl`),required:``},{default:a(()=>[e(_(O),{value:P.value.base_url,"onUpdate:value":n[4]||=e=>P.value.base_url=e,placeholder:_(u)(`models.baseUrlPlaceholder`),disabled:j.value===`preset`},null,8,[`value`,`placeholder`,`disabled`])]),_:1},8,[`label`])),I.value?r(``,!0):(i(),o(_(T),{key:3,label:_(u)(`models.apiKey`),required:``},{default:a(()=>[e(_(O),{value:P.value.api_key,"onUpdate:value":n[5]||=e=>P.value.api_key=e,type:`password`,"show-password-on":`click`,placeholder:_(u)(`models.apiKeyPlaceholder`),autocomplete:`off`},null,8,[`value`,`placeholder`])]),_:1},8,[`label`])),e(_(T),{label:_(u)(`models.defaultModel`),required:``},{default:a(()=>[y(`div`,de,[e(_(E),{value:P.value.model,"onUpdate:value":n[6]||=e=>P.value.model=e,options:F.value,filterable:``,tag:``,placeholder:_(u)(`models.selectOrInput`),style:{flex:`1`}},null,8,[`value`,`options`,`placeholder`]),j.value===`custom`||j.value===`preset`&&F.value.length===0?(i(),o(_(D),{key:0,loading:S.value,onClick:z},{default:a(()=>[m(f(_(u)(`common.fetch`)),1)]),_:1},8,[`loading`])):r(``,!0)])]),_:1},8,[`label`])]),_:1}),k.value?(i(),o(le,{key:0,onClose:n[7]||=e=>k.value=!1,onSuccess:V})):r(``,!0)]),_:1},8,[`show`,`title`,`mask-closable`]))}}),[[`__scopeId`,`data-v-643ab2fd`]]),me={class:`models-view`},he={class:`page-header`},ge={class:`header-title`},_e={class:`models-content`},ve=S(p({__name:`ModelsView`,setup(t){let{t:c}=x(),l=N(),u=M(),p=d(!1);s(()=>{l.fetchProviders()});function h(){p.value=!0}function g(){p.value=!1}async function v(){await l.fetchProviders(),u.loadModels(),g()}return(t,s)=>(i(),n(`div`,me,[y(`header`,he,[y(`h2`,ge,f(_(c)(`models.title`)),1),e(_(D),{type:`primary`,size:`small`,onClick:h},{icon:a(()=>[...s[0]||=[y(`svg`,{width:`14`,height:`14`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`2`},[y(`line`,{x1:`12`,y1:`5`,x2:`12`,y2:`19`}),y(`line`,{x1:`5`,y1:`12`,x2:`19`,y2:`12`})],-1)]]),default:a(()=>[m(` `+f(_(c)(`models.addProvider`)),1)]),_:1})]),y(`div`,_e,[e(_(j),{show:_(l).loading&&_(l).providers.length===0},{default:a(()=>[e(q)]),_:1},8,[`show`])]),p.value?(i(),o(pe,{key:0,onClose:g,onSaved:v})):r(``,!0)]))}}),[[`__scopeId`,`data-v-84eaeb4c`]]);export{ve as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
[data-v-
|
|
1
|
+
[data-v-f48ea7e8]:root{--bg-primary:#fafafa;--bg-secondary:#f0f0f0;--bg-sidebar:#f5f5f5;--bg-card:#fff;--bg-card-hover:#fafafa;--bg-input:#fff;--border-color:#e0e0e0;--border-light:#ebebeb;--accent-primary:#333;--accent-hover:#1a1a1a;--accent-muted:#888;--text-primary:#1a1a1a;--text-secondary:#666;--text-muted:#999;--success:#2e7d32;--error:#c62828;--warning:#f57f17;--msg-user-bg:#f5f5f5;--msg-assistant-bg:#f5f5f5;--msg-system-border:#bdbdbd;--code-bg:#f4f4f4;--text-on-accent:#fff;--text-on-overlay:#fff;--accent-info:#4a90d9;--accent-primary-rgb:51, 51, 51;--accent-hover-rgb:26, 26, 26;--text-primary-rgb:26, 26, 26;--text-muted-rgb:153, 153, 153;--success-rgb:46, 125, 50;--error-rgb:198, 40, 40;--warning-rgb:245, 127, 23;--accent-info-rgb:74, 144, 217}.dark[data-v-f48ea7e8]{--bg-primary:#1a1a1a;--bg-secondary:#252525;--bg-sidebar:#202020;--bg-card:#333;--bg-card-hover:#333;--bg-input:#2a2a2a;--border-color:#3a3a3a;--border-light:#333;--accent-primary:#e0e0e0;--accent-hover:#f5f5f5;--accent-muted:#888;--text-primary:#f0f0f0;--text-secondary:silver;--text-muted:#888;--success:#66bb6a;--error:#ef5350;--warning:#ffb74d;--msg-user-bg:#252525;--msg-assistant-bg:#252525;--msg-system-border:#555;--code-bg:#1e1e1e;--text-on-accent:#1a1a1a;--text-on-overlay:#fff;--accent-info:#6ba3d6;--accent-primary-rgb:240, 240, 240;--accent-hover-rgb:245, 245, 245;--text-primary-rgb:240, 240, 240;--text-muted-rgb:136, 136, 136;--success-rgb:102, 187, 106;--error-rgb:239, 83, 80;--warning-rgb:255, 183, 77;--accent-info-rgb:107, 163, 214}.provider-card[data-v-f48ea7e8]{background-color:var(--bg-card);border:1px solid var(--border-color);border-radius:10px;padding:16px;transition:border-color .15s}.provider-card[data-v-f48ea7e8]:hover{border-color:rgba(var(--accent-primary-rgb), .3)}.card-header[data-v-f48ea7e8]{justify-content:space-between;align-items:center;margin-bottom:12px;display:flex}.provider-name[data-v-f48ea7e8]{color:var(--text-primary);text-overflow:ellipsis;white-space:nowrap;max-width:70%;font-size:15px;font-weight:600;overflow:hidden}.type-badge[data-v-f48ea7e8]{border-radius:10px;padding:2px 8px;font-size:11px;font-weight:500}.type-badge.builtin[data-v-f48ea7e8]{background:rgba(var(--accent-primary-rgb), .12);color:var(--accent-primary)}.type-badge.custom[data-v-f48ea7e8]{background:rgba(var(--success-rgb), .12);color:var(--success)}.card-body[data-v-f48ea7e8]{flex-direction:column;gap:6px;margin-bottom:14px;display:flex}.info-row[data-v-f48ea7e8]{justify-content:space-between;align-items:center;display:flex}.info-label[data-v-f48ea7e8]{color:var(--text-muted);font-size:12px}.info-value[data-v-f48ea7e8]{color:var(--text-secondary);font-size:12px}.mono[data-v-f48ea7e8]{font-family:JetBrains Mono,Fira Code,Consolas,monospace;font-size:12px}.card-actions[data-v-f48ea7e8]{border-top:1px solid var(--border-light);gap:8px;padding-top:10px;display:flex}[data-v-76eec30b]:root{--bg-primary:#fafafa;--bg-secondary:#f0f0f0;--bg-sidebar:#f5f5f5;--bg-card:#fff;--bg-card-hover:#fafafa;--bg-input:#fff;--border-color:#e0e0e0;--border-light:#ebebeb;--accent-primary:#333;--accent-hover:#1a1a1a;--accent-muted:#888;--text-primary:#1a1a1a;--text-secondary:#666;--text-muted:#999;--success:#2e7d32;--error:#c62828;--warning:#f57f17;--msg-user-bg:#f5f5f5;--msg-assistant-bg:#f5f5f5;--msg-system-border:#bdbdbd;--code-bg:#f4f4f4;--text-on-accent:#fff;--text-on-overlay:#fff;--accent-info:#4a90d9;--accent-primary-rgb:51, 51, 51;--accent-hover-rgb:26, 26, 26;--text-primary-rgb:26, 26, 26;--text-muted-rgb:153, 153, 153;--success-rgb:46, 125, 50;--error-rgb:198, 40, 40;--warning-rgb:245, 127, 23;--accent-info-rgb:74, 144, 217}.dark[data-v-76eec30b]{--bg-primary:#1a1a1a;--bg-secondary:#252525;--bg-sidebar:#202020;--bg-card:#333;--bg-card-hover:#333;--bg-input:#2a2a2a;--border-color:#3a3a3a;--border-light:#333;--accent-primary:#e0e0e0;--accent-hover:#f5f5f5;--accent-muted:#888;--text-primary:#f0f0f0;--text-secondary:silver;--text-muted:#888;--success:#66bb6a;--error:#ef5350;--warning:#ffb74d;--msg-user-bg:#252525;--msg-assistant-bg:#252525;--msg-system-border:#555;--code-bg:#1e1e1e;--text-on-accent:#1a1a1a;--text-on-overlay:#fff;--accent-info:#6ba3d6;--accent-primary-rgb:240, 240, 240;--accent-hover-rgb:245, 245, 245;--text-primary-rgb:240, 240, 240;--text-muted-rgb:136, 136, 136;--success-rgb:102, 187, 106;--error-rgb:239, 83, 80;--warning-rgb:255, 183, 77;--accent-info-rgb:107, 163, 214}.empty-state[data-v-76eec30b]{height:100%;color:var(--text-muted);flex-direction:column;justify-content:center;align-items:center;gap:12px;display:flex}.empty-state .empty-icon[data-v-76eec30b]{opacity:.3}.empty-state p[data-v-76eec30b]{font-size:14px}.providers-grid[data-v-76eec30b]{grid-template-columns:repeat(auto-fill,minmax(min(100%,420px),1fr));gap:14px;display:grid}.codex-login[data-v-3639ba5a]{flex-direction:column;align-items:center;padding:8px 0;display:flex}.codex-login__state[data-v-3639ba5a]{flex-direction:column;justify-content:center;align-items:center;gap:16px;width:100%;min-height:120px;display:flex}.codex-login__hint[data-v-3639ba5a]{color:var(--n-text-color,inherit);text-align:center;font-size:14px;line-height:1.6}.codex-login__code[data-v-3639ba5a]{border:1px solid var(--n-border-color,#e0e0e6);cursor:pointer;background:var(--n-color,#fafafa);border-radius:8px;align-items:center;gap:12px;padding:12px 20px;transition:border-color .2s;display:flex}.codex-login__code[data-v-3639ba5a]:hover{border-color:var(--n-primary-color,#18a058)}.codex-login__code-text[data-v-3639ba5a]{letter-spacing:4px;color:var(--n-text-color,inherit);font-family:monospace;font-size:28px;font-weight:700}.codex-login__state--success[data-v-3639ba5a]{color:#18a058}.codex-login__state--success svg[data-v-3639ba5a]{stroke:#18a058}.codex-login__error[data-v-3639ba5a]{color:#d03050;text-align:center;font-size:13px}.modal-footer[data-v-3639ba5a],.modal-footer[data-v-643ab2fd]{justify-content:flex-end;gap:8px;display:flex}[data-v-84eaeb4c]:root{--bg-primary:#fafafa;--bg-secondary:#f0f0f0;--bg-sidebar:#f5f5f5;--bg-card:#fff;--bg-card-hover:#fafafa;--bg-input:#fff;--border-color:#e0e0e0;--border-light:#ebebeb;--accent-primary:#333;--accent-hover:#1a1a1a;--accent-muted:#888;--text-primary:#1a1a1a;--text-secondary:#666;--text-muted:#999;--success:#2e7d32;--error:#c62828;--warning:#f57f17;--msg-user-bg:#f5f5f5;--msg-assistant-bg:#f5f5f5;--msg-system-border:#bdbdbd;--code-bg:#f4f4f4;--text-on-accent:#fff;--text-on-overlay:#fff;--accent-info:#4a90d9;--accent-primary-rgb:51, 51, 51;--accent-hover-rgb:26, 26, 26;--text-primary-rgb:26, 26, 26;--text-muted-rgb:153, 153, 153;--success-rgb:46, 125, 50;--error-rgb:198, 40, 40;--warning-rgb:245, 127, 23;--accent-info-rgb:74, 144, 217}.dark[data-v-84eaeb4c]{--bg-primary:#1a1a1a;--bg-secondary:#252525;--bg-sidebar:#202020;--bg-card:#333;--bg-card-hover:#333;--bg-input:#2a2a2a;--border-color:#3a3a3a;--border-light:#333;--accent-primary:#e0e0e0;--accent-hover:#f5f5f5;--accent-muted:#888;--text-primary:#f0f0f0;--text-secondary:silver;--text-muted:#888;--success:#66bb6a;--error:#ef5350;--warning:#ffb74d;--msg-user-bg:#252525;--msg-assistant-bg:#252525;--msg-system-border:#555;--code-bg:#1e1e1e;--text-on-accent:#1a1a1a;--text-on-overlay:#fff;--accent-info:#6ba3d6;--accent-primary-rgb:240, 240, 240;--accent-hover-rgb:245, 245, 245;--text-primary-rgb:240, 240, 240;--text-muted-rgb:136, 136, 136;--success-rgb:102, 187, 106;--error-rgb:239, 83, 80;--warning-rgb:255, 183, 77;--accent-info-rgb:107, 163, 214}.models-view[data-v-84eaeb4c]{height:calc(100 * var(--vh));flex-direction:column;display:flex}.models-content[data-v-84eaeb4c]{flex:1;padding:20px;overflow-y:auto}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{C as e,F as t,K as n,N as r,ct as i,dt as a,j as o}from"./router-
|
|
1
|
+
import{C as e,F as t,K as n,N as r,ct as i,dt as a,j as o}from"./router-Dj-Nmg7q.js";import{$ as s,B as c,K as l,W as u,c as d,ct as f,q as p,st as m,ut as h,z as g}from"./browser-CQRjhbaB.js";import{l as _,n as v,t as y}from"./Popover-mIRPCy7U.js";import{s as b}from"./Suffix-DgzfIwzx.js";import{r as x}from"./fade-in.cssr-lwO9nLky.js";import{t as S}from"./Button-EoeZgIFH.js";import{n as C,t as w}from"./Warning-CXXqHzLa.js";import{t as T}from"./omit-1BRB6K75.js";import{t as E}from"./light-DzpNsLai.js";var D=s(`n-popconfirm`),O={positiveText:String,negativeText:String,showIcon:{type:Boolean,default:!0},onPositiveClick:{type:Function,required:!0},onNegativeClick:{type:Function,required:!0}},k=C(O),A=o({name:`NPopconfirmPanel`,props:O,setup(n){let{localeRef:r}=b(`Popconfirm`),{inlineThemeDisabled:i}=c(),{mergedClsPrefixRef:o,mergedThemeRef:s,props:l}=t(D),u=e(()=>{let{common:{cubicBezierEaseInOut:e},self:{fontSize:t,iconSize:n,iconColor:r}}=s.value;return{"--n-bezier":e,"--n-font-size":t,"--n-icon-size":n,"--n-icon-color":r}}),d=i?g(`popconfirm-panel`,void 0,u,l):void 0;return Object.assign(Object.assign({},b(`Popconfirm`)),{mergedClsPrefix:o,cssVars:i?void 0:u,localizedPositiveText:e(()=>n.positiveText||r.value.positiveText),localizedNegativeText:e(()=>n.negativeText||r.value.negativeText),positiveButtonProps:a(l,`positiveButtonProps`),negativeButtonProps:a(l,`negativeButtonProps`),handlePositiveClick(e){n.onPositiveClick(e)},handleNegativeClick(e){n.onNegativeClick(e)},themeClass:d?.themeClass,onRender:d?.onRender})},render(){var e;let{mergedClsPrefix:t,showIcon:n,$slots:i}=this,a=u(i.action,()=>this.negativeText===null&&this.positiveText===null?[]:[this.negativeText!==null&&r(S,Object.assign({size:`small`,onClick:this.handleNegativeClick},this.negativeButtonProps),{default:()=>this.localizedNegativeText}),this.positiveText!==null&&r(S,Object.assign({size:`small`,type:`primary`,onClick:this.handlePositiveClick},this.positiveButtonProps),{default:()=>this.localizedPositiveText})]);return(e=this.onRender)==null||e.call(this),r(`div`,{class:[`${t}-popconfirm__panel`,this.themeClass],style:this.cssVars},l(i.default,e=>n||e?r(`div`,{class:`${t}-popconfirm__body`},n?r(`div`,{class:`${t}-popconfirm__icon`},u(i.icon,()=>[r(x,{clsPrefix:t},{default:()=>r(w,null)})])):null,e):null),a?r(`div`,{class:[`${t}-popconfirm__action`]},a):null)}}),j=f(`popconfirm`,[h(`body`,`
|
|
2
2
|
font-size: var(--n-font-size);
|
|
3
3
|
display: flex;
|
|
4
4
|
align-items: center;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{$ as e,C as t,F as n,K as r,L as i,M as a,N as o,R as s,S as c,U as l,V as u,X as d,Z as f,b as p,ct as m,d as h,dt as g,h as _,j as v,k as y,st as b,v as x,x as S,y as C}from"./router-C-NNJUuf.js";import{$ as w,A as T,B as ee,C as E,D as te,E as ne,F as D,I as O,K as re,M as k,N as A,O as j,P as ie,S as ae,T as oe,U as se,X as M,Z as ce,_ as le,b as ue,c as de,ct as N,d as fe,dt as pe,et as me,ft as he,g as ge,gt as _e,h as P,j as ve,k as F,lt as ye,m as be,n as xe,p as Se,q as I,s as Ce,st as L,tt as R,u as we,ut as Te,v as Ee,w as De,x as Oe,y as ke,z as Ae}from"./browser-Djp4tkp3.js";import{d as je,f as z,i as Me,m as Ne,p as B,r as Pe}from"./Suffix-3xK0KZGt.js";import{a as Fe,i as Ie,o as Le}from"./fade-in.cssr-CIVyTG6A.js";import{n as Re}from"./Close-C9xwy-pW.js";var V=[],ze=new WeakMap;function Be(){V.forEach(e=>e(...ze.get(e))),V=[]}function Ve(e,...t){ze.set(e,t),!V.includes(e)&&V.push(e)===1&&requestAnimationFrame(Be)}function He(e=8){return Math.random().toString(16).slice(2,2+e)}function Ue(e){let t=m(!!e.value);if(t.value)return b(t);let n=d(e,e=>{e&&(t.value=!0,n())});return b(t)}function We(){return a()!==null}var Ge=typeof window<`u`,Ke=Ge?document?.fonts?.ready:void 0,qe=!1;Ke===void 0?qe=!0:Ke.then(()=>{qe=!0});function Je(e){if(qe)return;let t=!1;l(()=>{qe||Ke?.then(()=>{t||e()})}),u(()=>{t=!0})}var Ye=w(`n-internal-select-menu`),Xe=w(`n-internal-select-menu-body`),Ze=w(`n-drawer-body`);w(`n-drawer`);var Qe=w(`n-modal-body`),$e=w(`n-modal-provider`),et=w(`n-modal`),tt=w(`n-popover-body`),nt=`__disabled__`;function H(e){let t=n(Qe,null),r=n(Ze,null),i=n(tt,null),a=n(Xe,null),o=m();if(typeof document<`u`){o.value=document.fullscreenElement;let e=()=>{o.value=document.fullscreenElement};l(()=>{B(`fullscreenchange`,document,e)}),u(()=>{z(`fullscreenchange`,document,e)})}return R(()=>{let{to:n}=e;return n===void 0?t?.value?t.value.$el??t.value:r?.value?r.value:i?.value?i.value:a?.value?a.value:n??(o.value||`body`):n===!1?nt:n===!0?o.value||`body`:n})}H.tdkey=nt,H.propTo={type:[String,Object,Boolean],default:void 0};function rt(e,t,n=`default`){let r=t[n];if(r===void 0)throw Error(`[vueuc/${e}]: slot[${n}] is empty.`);return r()}function it(e,t=!0,n=[]){return e.forEach(e=>{if(e!==null){if(typeof e!=`object`){(typeof e==`string`||typeof e==`number`)&&n.push(y(String(e)));return}if(Array.isArray(e)){it(e,t,n);return}if(e.type===C){if(e.children===null)return;Array.isArray(e.children)&&it(e.children,t,n)}else e.type!==x&&n.push(e)}}),n}function at(e,t,n=`default`){let r=t[n];if(r===void 0)throw Error(`[vueuc/${e}]: slot[${n}] is empty.`);let i=it(r());if(i.length===1)return i[0];throw Error(`[vueuc/${e}]: slot[${n}] should have exactly one child.`)}var U=null;function ot(){if(U===null&&(U=document.getElementById(`v-binder-view-measurer`),U===null)){U=document.createElement(`div`),U.id=`v-binder-view-measurer`;let{style:e}=U;e.position=`fixed`,e.left=`0`,e.right=`0`,e.top=`0`,e.bottom=`0`,e.pointerEvents=`none`,e.visibility=`hidden`,document.body.appendChild(U)}return U.getBoundingClientRect()}function st(e,t){let n=ot();return{top:t,left:e,height:0,width:0,right:n.width-e,bottom:n.height-t}}function ct(e){let t=e.getBoundingClientRect(),n=ot();return{left:t.left-n.left,top:t.top-n.top,bottom:n.height+n.top-t.bottom,right:n.width+n.left-t.right,width:t.width,height:t.height}}function lt(e){return e.nodeType===9?null:e.parentNode}function ut(e){if(e===null)return null;let t=lt(e);if(t===null)return null;if(t.nodeType===9)return document;if(t.nodeType===1){let{overflow:e,overflowX:n,overflowY:r}=getComputedStyle(t);if(/(auto|scroll|overlay)/.test(e+r+n))return t}return ut(t)}var dt=v({name:`Binder`,props:{syncTargetWithParent:Boolean,syncTarget:{type:Boolean,default:!0}},setup(e){r(`VBinder`,a()?.proxy);let t=n(`VBinder`,null),i=m(null),o=n=>{i.value=n,t&&e.syncTargetWithParent&&t.setTargetRef(n)},s=[],c=()=>{let e=i.value;for(;e=ut(e),e!==null;)s.push(e);for(let e of s)B(`scroll`,e,h,!0)},l=()=>{for(let e of s)z(`scroll`,e,h,!0);s=[]},d=new Set,f=e=>{d.size===0&&c(),d.has(e)||d.add(e)},p=e=>{d.has(e)&&d.delete(e),d.size===0&&l()},h=()=>{Ve(g)},g=()=>{d.forEach(e=>e())},_=new Set,v=e=>{_.size===0&&B(`resize`,window,b),_.has(e)||_.add(e)},y=e=>{_.has(e)&&_.delete(e),_.size===0&&z(`resize`,window,b)},b=()=>{_.forEach(e=>e())};return u(()=>{z(`resize`,window,b),l()}),{targetRef:i,setTargetRef:o,addScrollListener:f,removeScrollListener:p,addResizeListener:v,removeResizeListener:y}},render(){return rt(`binder`,this.$slots)}}),ft=v({name:`Target`,setup(){let{setTargetRef:e,syncTarget:t}=n(`VBinder`);return{syncTarget:t,setTargetDirective:{mounted:e,updated:e}}},render(){let{syncTarget:t,setTargetDirective:n}=this;return t?e(at(`follower`,this.$slots),[[n]]):at(`follower`,this.$slots)}}),W=`@@mmoContext`,pt={mounted(e,{value:t}){e[W]={handler:void 0},typeof t==`function`&&(e[W].handler=t,B(`mousemoveoutside`,e,t))},updated(e,{value:t}){let n=e[W];typeof t==`function`?n.handler?n.handler!==t&&(z(`mousemoveoutside`,e,n.handler),n.handler=t,B(`mousemoveoutside`,e,t)):(e[W].handler=t,B(`mousemoveoutside`,e,t)):n.handler&&=(z(`mousemoveoutside`,e,n.handler),void 0)},unmounted(e){let{handler:t}=e[W];t&&z(`mousemoveoutside`,e,t),e[W].handler=void 0}},G=`@@coContext`,mt={mounted(e,{value:t,modifiers:n}){e[G]={handler:void 0},typeof t==`function`&&(e[G].handler=t,B(`clickoutside`,e,t,{capture:n.capture}))},updated(e,{value:t,modifiers:n}){let r=e[G];typeof t==`function`?r.handler?r.handler!==t&&(z(`clickoutside`,e,r.handler,{capture:n.capture}),r.handler=t,B(`clickoutside`,e,t,{capture:n.capture})):(e[G].handler=t,B(`clickoutside`,e,t,{capture:n.capture})):r.handler&&=(z(`clickoutside`,e,r.handler,{capture:n.capture}),void 0)},unmounted(e,{modifiers:t}){let{handler:n}=e[G];n&&z(`clickoutside`,e,n,{capture:t.capture}),e[G].handler=void 0}};function ht(e,t){console.error(`[vdirs/${e}]: ${t}`)}var gt=new class{constructor(){this.elementZIndex=new Map,this.nextZIndex=2e3}get elementCount(){return this.elementZIndex.size}ensureZIndex(e,t){let{elementZIndex:n}=this;if(t!==void 0){e.style.zIndex=`${t}`,n.delete(e);return}let{nextZIndex:r}=this;n.has(e)&&n.get(e)+1===this.nextZIndex||(e.style.zIndex=`${r}`,n.set(e,r),this.nextZIndex=r+1,this.squashState())}unregister(e,t){let{elementZIndex:n}=this;n.has(e)?n.delete(e):t===void 0&&ht(`z-index-manager/unregister-element`,`Element not found when unregistering.`),this.squashState()}squashState(){let{elementCount:e}=this;e||(this.nextZIndex=2e3),this.nextZIndex-e>2500&&this.rearrange()}rearrange(){let e=Array.from(this.elementZIndex.entries());e.sort((e,t)=>e[1]-t[1]),this.nextZIndex=2e3,e.forEach(e=>{let t=e[0],n=this.nextZIndex++;`${n}`!==t.style.zIndex&&(t.style.zIndex=`${n}`)})}},K=`@@ziContext`,_t={mounted(e,t){let{value:n={}}=t,{zIndex:r,enabled:i}=n;e[K]={enabled:!!i,initialized:!1},i&&(gt.ensureZIndex(e,r),e[K].initialized=!0)},updated(e,t){let{value:n={}}=t,{zIndex:r,enabled:i}=n,a=e[K].enabled;i&&!a&&(gt.ensureZIndex(e,r),e[K].initialized=!0),e[K].enabled=!!i},unmounted(e,t){if(!e[K].initialized)return;let{value:n={}}=t,{zIndex:r}=n;gt.unregister(e,r)}},{c:q}=_e(),vt=`vueuc-style`;function yt(e){return typeof e==`string`?document.querySelector(e):e()||null}var bt=v({name:`LazyTeleport`,props:{to:{type:[String,Object],default:void 0},disabled:Boolean,show:{type:Boolean,required:!0}},setup(e){return{showTeleport:Ue(g(e,`show`)),mergedTo:t(()=>{let{to:t}=e;return t??`body`})}},render(){return this.showTeleport?this.disabled?rt(`lazy-teleport`,this.$slots):o(p,{disabled:this.disabled,to:this.mergedTo},rt(`lazy-teleport`,this.$slots)):null}}),xt={top:`bottom`,bottom:`top`,left:`right`,right:`left`},St={start:`end`,center:`center`,end:`start`},Ct={top:`height`,bottom:`height`,left:`width`,right:`width`},wt={"bottom-start":`top left`,bottom:`top center`,"bottom-end":`top right`,"top-start":`bottom left`,top:`bottom center`,"top-end":`bottom right`,"right-start":`top left`,right:`center left`,"right-end":`bottom left`,"left-start":`top right`,left:`center right`,"left-end":`bottom right`},Tt={"bottom-start":`bottom left`,bottom:`bottom center`,"bottom-end":`bottom right`,"top-start":`top left`,top:`top center`,"top-end":`top right`,"right-start":`top right`,right:`center right`,"right-end":`bottom right`,"left-start":`top left`,left:`center left`,"left-end":`bottom left`},Et={"bottom-start":`right`,"bottom-end":`left`,"top-start":`right`,"top-end":`left`,"right-start":`bottom`,"right-end":`top`,"left-start":`bottom`,"left-end":`top`},Dt={top:!0,bottom:!1,left:!0,right:!1},Ot={top:`end`,bottom:`start`,left:`end`,right:`start`};function kt(e,t,n,r,i,a){if(!i||a)return{placement:e,top:0,left:0};let[o,s]=e.split(`-`),c=s??`center`,l={top:0,left:0},u=(e,i,a)=>{let o=0,s=0,c=n[e]-t[i]-t[e];return c>0&&r&&(a?s=Dt[i]?c:-c:o=Dt[i]?c:-c),{left:o,top:s}},d=o===`left`||o===`right`;if(c!==`center`){let r=Et[e],i=xt[r],a=Ct[r];if(n[a]>t[a]){if(t[r]+t[a]<n[a]){let e=(n[a]-t[a])/2;t[r]<e||t[i]<e?t[r]<t[i]?(c=St[s],l=u(a,i,d)):l=u(a,r,d):c=`center`}}else n[a]<t[a]&&t[i]<0&&t[r]>t[i]&&(c=St[s])}else{let e=o===`bottom`||o===`top`?`left`:`top`,r=xt[e],i=Ct[e],a=(n[i]-t[i])/2;(t[e]<a||t[r]<a)&&(t[e]>t[r]?(c=Ot[e],l=u(i,e,d)):(c=Ot[r],l=u(i,r,d)))}let f=o;return t[o]<n[Ct[o]]&&t[o]<t[xt[o]]&&(f=xt[o]),{placement:c===`center`?f:`${f}-${c}`,left:l.left,top:l.top}}function At(e,t){return t?Tt[e]:wt[e]}function jt(e,t,n,r,i,a){if(a)switch(e){case`bottom-start`:return{top:`${Math.round(n.top-t.top+n.height)}px`,left:`${Math.round(n.left-t.left)}px`,transform:`translateY(-100%)`};case`bottom-end`:return{top:`${Math.round(n.top-t.top+n.height)}px`,left:`${Math.round(n.left-t.left+n.width)}px`,transform:`translateX(-100%) translateY(-100%)`};case`top-start`:return{top:`${Math.round(n.top-t.top)}px`,left:`${Math.round(n.left-t.left)}px`,transform:``};case`top-end`:return{top:`${Math.round(n.top-t.top)}px`,left:`${Math.round(n.left-t.left+n.width)}px`,transform:`translateX(-100%)`};case`right-start`:return{top:`${Math.round(n.top-t.top)}px`,left:`${Math.round(n.left-t.left+n.width)}px`,transform:`translateX(-100%)`};case`right-end`:return{top:`${Math.round(n.top-t.top+n.height)}px`,left:`${Math.round(n.left-t.left+n.width)}px`,transform:`translateX(-100%) translateY(-100%)`};case`left-start`:return{top:`${Math.round(n.top-t.top)}px`,left:`${Math.round(n.left-t.left)}px`,transform:``};case`left-end`:return{top:`${Math.round(n.top-t.top+n.height)}px`,left:`${Math.round(n.left-t.left)}px`,transform:`translateY(-100%)`};case`top`:return{top:`${Math.round(n.top-t.top)}px`,left:`${Math.round(n.left-t.left+n.width/2)}px`,transform:`translateX(-50%)`};case`right`:return{top:`${Math.round(n.top-t.top+n.height/2)}px`,left:`${Math.round(n.left-t.left+n.width)}px`,transform:`translateX(-100%) translateY(-50%)`};case`left`:return{top:`${Math.round(n.top-t.top+n.height/2)}px`,left:`${Math.round(n.left-t.left)}px`,transform:`translateY(-50%)`};default:return{top:`${Math.round(n.top-t.top+n.height)}px`,left:`${Math.round(n.left-t.left+n.width/2)}px`,transform:`translateX(-50%) translateY(-100%)`}}switch(e){case`bottom-start`:return{top:`${Math.round(n.top-t.top+n.height+r)}px`,left:`${Math.round(n.left-t.left+i)}px`,transform:``};case`bottom-end`:return{top:`${Math.round(n.top-t.top+n.height+r)}px`,left:`${Math.round(n.left-t.left+n.width+i)}px`,transform:`translateX(-100%)`};case`top-start`:return{top:`${Math.round(n.top-t.top+r)}px`,left:`${Math.round(n.left-t.left+i)}px`,transform:`translateY(-100%)`};case`top-end`:return{top:`${Math.round(n.top-t.top+r)}px`,left:`${Math.round(n.left-t.left+n.width+i)}px`,transform:`translateX(-100%) translateY(-100%)`};case`right-start`:return{top:`${Math.round(n.top-t.top+r)}px`,left:`${Math.round(n.left-t.left+n.width+i)}px`,transform:``};case`right-end`:return{top:`${Math.round(n.top-t.top+n.height+r)}px`,left:`${Math.round(n.left-t.left+n.width+i)}px`,transform:`translateY(-100%)`};case`left-start`:return{top:`${Math.round(n.top-t.top+r)}px`,left:`${Math.round(n.left-t.left+i)}px`,transform:`translateX(-100%)`};case`left-end`:return{top:`${Math.round(n.top-t.top+n.height+r)}px`,left:`${Math.round(n.left-t.left+i)}px`,transform:`translateX(-100%) translateY(-100%)`};case`top`:return{top:`${Math.round(n.top-t.top+r)}px`,left:`${Math.round(n.left-t.left+n.width/2+i)}px`,transform:`translateY(-100%) translateX(-50%)`};case`right`:return{top:`${Math.round(n.top-t.top+n.height/2+r)}px`,left:`${Math.round(n.left-t.left+n.width+i)}px`,transform:`translateY(-50%)`};case`left`:return{top:`${Math.round(n.top-t.top+n.height/2+r)}px`,left:`${Math.round(n.left-t.left+i)}px`,transform:`translateY(-50%) translateX(-100%)`};default:return{top:`${Math.round(n.top-t.top+n.height+r)}px`,left:`${Math.round(n.left-t.left+n.width/2+i)}px`,transform:`translateX(-50%)`}}}var Mt=q([q(`.v-binder-follower-container`,{position:`absolute`,left:`0`,right:`0`,top:`0`,height:`0`,pointerEvents:`none`,zIndex:`auto`}),q(`.v-binder-follower-content`,{position:`absolute`,zIndex:`auto`},[q(`> *`,{pointerEvents:`all`})])]),Nt=v({name:`Follower`,inheritAttrs:!1,props:{show:Boolean,enabled:{type:Boolean,default:void 0},placement:{type:String,default:`bottom`},syncTrigger:{type:Array,default:[`resize`,`scroll`]},to:[String,Object],flip:{type:Boolean,default:!0},internalShift:Boolean,x:Number,y:Number,width:String,minWidth:String,containerClass:String,teleportDisabled:Boolean,zindexable:{type:Boolean,default:!0},zIndex:Number,overlap:Boolean},setup(e){let t=n(`VBinder`),r=R(()=>e.enabled===void 0?e.show:e.enabled),i=m(null),a=m(null),o=()=>{let{syncTrigger:n}=e;n.includes(`scroll`)&&t.addScrollListener(p),n.includes(`resize`)&&t.addResizeListener(p)},c=()=>{t.removeScrollListener(p),t.removeResizeListener(p)};l(()=>{r.value&&(p(),o())});let f=ce();Mt.mount({id:`vueuc/binder`,head:!0,anchorMetaName:vt,ssr:f}),u(()=>{c()}),Je(()=>{r.value&&p()});let p=()=>{if(!r.value)return;let n=i.value;if(n===null)return;let o=t.targetRef,{x:s,y:c,overlap:l}=e,u=s!==void 0&&c!==void 0?st(s,c):ct(o);n.style.setProperty(`--v-target-width`,`${Math.round(u.width)}px`),n.style.setProperty(`--v-target-height`,`${Math.round(u.height)}px`);let{width:d,minWidth:f,placement:p,internalShift:m,flip:h}=e;n.setAttribute(`v-placement`,p),l?n.setAttribute(`v-overlap`,``):n.removeAttribute(`v-overlap`);let{style:g}=n;d===`target`?g.width=`${u.width}px`:d===void 0?g.width=``:g.width=d,f===`target`?g.minWidth=`${u.width}px`:f===void 0?g.minWidth=``:g.minWidth=f;let _=ct(n),v=ct(a.value),{left:y,top:b,placement:x}=kt(p,u,_,m,h,l),S=At(x,l),{left:C,top:w,transform:T}=jt(x,v,u,b,y,l);n.setAttribute(`v-placement`,x),n.style.setProperty(`--v-offset-left`,`${Math.round(y)}px`),n.style.setProperty(`--v-offset-top`,`${Math.round(b)}px`),n.style.transform=`translateX(${C}) translateY(${w}) ${T}`,n.style.setProperty(`--v-transform-origin`,S),n.style.transformOrigin=S};d(r,e=>{e?(o(),h()):c()});let h=()=>{s().then(p).catch(e=>console.error(e))};[`placement`,`x`,`y`,`internalShift`,`flip`,`width`,`overlap`,`minWidth`].forEach(t=>{d(g(e,t),p)}),[`teleportDisabled`].forEach(t=>{d(g(e,t),h)}),d(g(e,`syncTrigger`),e=>{e.includes(`resize`)?t.addResizeListener(p):t.removeResizeListener(p),e.includes(`scroll`)?t.addScrollListener(p):t.removeScrollListener(p)});let _=me();return{VBinder:t,mergedEnabled:r,offsetContainerRef:a,followerRef:i,mergedTo:R(()=>{let{to:t}=e;if(t!==void 0)return t;_.value}),syncPosition:p}},render(){return o(bt,{show:this.show,to:this.mergedTo,disabled:this.teleportDisabled},{default:()=>{var t;let n=o(`div`,{class:[`v-binder-follower-container`,this.containerClass],ref:`offsetContainerRef`},[o(`div`,{class:`v-binder-follower-content`,ref:`followerRef`},(t=this.$slots).default?.call(t))]);return this.zindexable?e(n,[[_t,{enabled:this.mergedEnabled,zIndex:this.zIndex}]]):n}})}});function Pt(e){return e instanceof HTMLElement}function Ft(e){for(let t=0;t<e.childNodes.length;t++){let n=e.childNodes[t];if(Pt(n)&&(Lt(n)||Ft(n)))return!0}return!1}function It(e){for(let t=e.childNodes.length-1;t>=0;t--){let n=e.childNodes[t];if(Pt(n)&&(Lt(n)||It(n)))return!0}return!1}function Lt(e){if(!Rt(e))return!1;try{e.focus({preventScroll:!0})}catch{}return document.activeElement===e}function Rt(e){if(e.tabIndex>0||e.tabIndex===0&&e.getAttribute(`tabIndex`)!==null)return!0;if(e.getAttribute(`disabled`))return!1;switch(e.nodeName){case`A`:return!!e.href&&e.rel!==`ignore`;case`INPUT`:return e.type!==`hidden`&&e.type!==`file`;case`SELECT`:case`TEXTAREA`:return!0;default:return!1}}var J=[],zt=v({name:`FocusTrap`,props:{disabled:Boolean,active:Boolean,autoFocus:{type:Boolean,default:!0},onEsc:Function,initialFocusTo:[String,Function],finalFocusTo:[String,Function],returnFocusOnDeactivated:{type:Boolean,default:!0}},setup(e){let t=He(),n=m(null),r=m(null),i=!1,a=!1,o=typeof document>`u`?null:document.activeElement;function s(){return J[J.length-1]===t}function c(t){var n;t.code===`Escape`&&s()&&((n=e.onEsc)==null||n.call(e,t))}l(()=>{d(()=>e.active,e=>{e?(h(),B(`keydown`,document,c)):(z(`keydown`,document,c),i&&g())},{immediate:!0})}),u(()=>{z(`keydown`,document,c),i&&g()});function f(e){if(!a&&s()){let t=p();if(t===null||t.contains(Ne(e)))return;_(`first`)}}function p(){let e=n.value;if(e===null)return null;let t=e;for(;t=t.nextSibling,!(t===null||t instanceof Element&&t.tagName===`DIV`););return t}function h(){var n;if(!e.disabled){if(J.push(t),e.autoFocus){let{initialFocusTo:t}=e;t===void 0?_(`first`):(n=yt(t))==null||n.focus({preventScroll:!0})}i=!0,document.addEventListener(`focus`,f,!0)}}function g(){var n;if(e.disabled||(document.removeEventListener(`focus`,f,!0),J=J.filter(e=>e!==t),s()))return;let{finalFocusTo:r}=e;r===void 0?e.returnFocusOnDeactivated&&o instanceof HTMLElement&&(a=!0,o.focus({preventScroll:!0}),a=!1):(n=yt(r))==null||n.focus({preventScroll:!0})}function _(t){if(s()&&e.active){let e=n.value,i=r.value;if(e!==null&&i!==null){let n=p();if(n==null||n===i){a=!0,e.focus({preventScroll:!0}),a=!1;return}a=!0;let r=t===`first`?Ft(n):It(n);a=!1,r||(a=!0,e.focus({preventScroll:!0}),a=!1)}}}function v(e){if(a)return;let t=p();t!==null&&(e.relatedTarget!==null&&t.contains(e.relatedTarget)?_(`last`):_(`first`))}function y(e){a||(e.relatedTarget!==null&&e.relatedTarget===n.value?_(`last`):_(`first`))}return{focusableStartRef:n,focusableEndRef:r,focusableStyle:`position: absolute; height: 0; width: 0;`,handleStartFocus:v,handleEndFocus:y}},render(){let{default:e}=this.$slots;if(e===void 0)return null;if(this.disabled)return e();let{active:t,focusableStyle:n}=this;return o(C,null,[o(`div`,{"aria-hidden":`true`,tabindex:t?`0`:`-1`,ref:`focusableStartRef`,style:n,onFocus:this.handleStartFocus}),e(),o(`div`,{"aria-hidden":`true`,style:n,ref:`focusableEndRef`,tabindex:t?`0`:`-1`,onFocus:this.handleEndFocus})])}}),Bt=/^(\d|\.)+$/,Vt=/(\d|\.)+/;function Ht(e,{c:t=1,offset:n=0,attachPx:r=!0}={}){if(typeof e==`number`){let r=(e+n)*t;return r===0?`0`:`${r}px`}else if(typeof e==`string`)if(Bt.test(e)){let i=(Number(e)+n)*t;return r?i===0?`0`:`${i}px`:`${i}`}else{let r=Vt.exec(e);return r?e.replace(Vt,String((Number(r[0])+n)*t)):e}return e}var Ut;function Wt(){return Ut===void 0&&(Ut=navigator.userAgent.includes(`Node.js`)||navigator.userAgent.includes(`jsdom`)),Ut}var Gt=new WeakSet;function Kt(e){Gt.add(e)}function qt(e){return!Gt.has(e)}function Y(e,t=!0,n=[]){return e.forEach(e=>{if(e!==null){if(typeof e!=`object`){(typeof e==`string`||typeof e==`number`)&&n.push(y(String(e)));return}if(Array.isArray(e)){Y(e,t,n);return}if(e.type===C){if(e.children===null)return;Array.isArray(e.children)&&Y(e.children,t,n)}else{if(e.type===x&&t)return;n.push(e)}}}),n}function Jt(e,t=`default`,n=void 0){let r=e[t];if(!r)return M(`getFirstSlotVNode`,`slot[${t}] is empty`),null;let i=Y(r(n));return i.length===1?i[0]:(M(`getFirstSlotVNode`,`slot[${t}] should have exactly one child`),null)}function Yt(e,t,n){if(!t)return null;let r=Y(t(n));return r.length===1?r[0]:(M(`getFirstSlotVNode`,`slot[${e}] should have exactly one child`),null)}function Xt(e,t=[],n){let r={};return t.forEach(t=>{r[t]=e[t]}),Object.assign(r,n)}function Zt(e,...t){return typeof e==`function`?e(...t):typeof e==`string`?y(e):typeof e==`number`?y(String(e)):null}var Qt=j(O,`WeakMap`),$t=Ee(Object.keys,Object),en=Object.prototype.hasOwnProperty;function tn(e){if(!E(e))return $t(e);var t=[];for(var n in Object(e))en.call(e,n)&&n!=`constructor`&&t.push(n);return t}function nn(e){return De(e)?ke(e):tn(e)}var rn=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,an=/^\w*$/;function on(e,t){if(k(e))return!1;var n=typeof e;return n==`number`||n==`symbol`||n==`boolean`||e==null||Le(e)?!0:an.test(e)||!rn.test(e)||t!=null&&e in Object(t)}var sn=`Expected a function`;function cn(e,t){if(typeof e!=`function`||t!=null&&typeof t!=`function`)throw TypeError(sn);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);var o=e.apply(this,r);return n.cache=a.set(i,o)||a,o};return n.cache=new(cn.Cache||ge),n}cn.Cache=ge;var ln=500;function un(e){var t=cn(e,function(e){return n.size===ln&&n.clear(),e}),n=t.cache;return t}var dn=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,fn=/\\(\\)?/g,pn=un(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(``),e.replace(dn,function(e,n,r,i){t.push(r?i.replace(fn,`$1`):n||e)}),t});function mn(e,t){return k(e)?e:on(e,t)?[e]:pn(Ie(e))}var hn=1/0;function gn(e){if(typeof e==`string`||Le(e))return e;var t=e+``;return t==`0`&&1/e==-hn?`-0`:t}function _n(e,t){t=mn(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[gn(t[n++])];return n&&n==r?e:void 0}function vn(e,t,n){var r=e==null?void 0:_n(e,t);return r===void 0?n:r}function yn(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}function bn(e,t){for(var n=-1,r=e==null?0:e.length,i=0,a=[];++n<r;){var o=e[n];t(o,n,e)&&(a[i++]=o)}return a}function xn(){return[]}var Sn=Object.prototype.propertyIsEnumerable,Cn=Object.getOwnPropertySymbols,wn=Cn?function(e){return e==null?[]:(e=Object(e),bn(Cn(e),function(t){return Sn.call(e,t)}))}:xn;function Tn(e,t,n){var r=t(e);return k(e)?r:yn(r,n(e))}function En(e){return Tn(e,nn,wn)}var Dn=j(O,`DataView`),On=j(O,`Promise`),kn=j(O,`Set`),An=`[object Map]`,jn=`[object Object]`,Mn=`[object Promise]`,Nn=`[object Set]`,Pn=`[object WeakMap]`,Fn=`[object DataView]`,In=F(Dn),Ln=F(le),Rn=F(On),zn=F(kn),Bn=F(Qt),X=ie;(Dn&&X(new Dn(new ArrayBuffer(1)))!=Fn||le&&X(new le)!=An||On&&X(On.resolve())!=Mn||kn&&X(new kn)!=Nn||Qt&&X(new Qt)!=Pn)&&(X=function(e){var t=ie(e),n=t==jn?e.constructor:void 0,r=n?F(n):``;if(r)switch(r){case In:return Fn;case Ln:return An;case Rn:return Mn;case zn:return Nn;case Bn:return Pn}return t});var Vn=X,Hn=`__lodash_hash_undefined__`;function Un(e){return this.__data__.set(e,Hn),this}function Wn(e){return this.__data__.has(e)}function Gn(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new ge;++t<n;)this.add(e[t])}Gn.prototype.add=Gn.prototype.push=Un,Gn.prototype.has=Wn;function Kn(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}function qn(e,t){return e.has(t)}var Jn=1,Yn=2;function Xn(e,t,n,r,i,a){var o=n&Jn,s=e.length,c=t.length;if(s!=c&&!(o&&c>s))return!1;var l=a.get(e),u=a.get(t);if(l&&u)return l==t&&u==e;var d=-1,f=!0,p=n&Yn?new Gn:void 0;for(a.set(e,t),a.set(t,e);++d<s;){var m=e[d],h=t[d];if(r)var g=o?r(h,m,d,t,e,a):r(m,h,d,e,t,a);if(g!==void 0){if(g)continue;f=!1;break}if(p){if(!Kn(t,function(e,t){if(!qn(p,t)&&(m===e||i(m,e,n,r,a)))return p.push(t)})){f=!1;break}}else if(!(m===h||i(m,h,n,r,a))){f=!1;break}}return a.delete(e),a.delete(t),f}function Zn(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}function Qn(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}var $n=1,er=2,tr=`[object Boolean]`,nr=`[object Date]`,rr=`[object Error]`,ir=`[object Map]`,ar=`[object Number]`,or=`[object RegExp]`,sr=`[object Set]`,cr=`[object String]`,lr=`[object Symbol]`,ur=`[object ArrayBuffer]`,dr=`[object DataView]`,fr=D?D.prototype:void 0,pr=fr?fr.valueOf:void 0;function mr(e,t,n,r,i,a,o){switch(n){case dr:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case ur:return!(e.byteLength!=t.byteLength||!a(new be(e),new be(t)));case tr:case nr:case ar:return ne(+e,+t);case rr:return e.name==t.name&&e.message==t.message;case or:case cr:return e==t+``;case ir:var s=Zn;case sr:var c=r&$n;if(s||=Qn,e.size!=t.size&&!c)return!1;var l=o.get(e);if(l)return l==t;r|=er,o.set(e,t);var u=Xn(s(e),s(t),r,i,a,o);return o.delete(e),u;case lr:if(pr)return pr.call(e)==pr.call(t)}return!1}var hr=1,gr=Object.prototype.hasOwnProperty;function _r(e,t,n,r,i,a){var o=n&hr,s=En(e),c=s.length;if(c!=En(t).length&&!o)return!1;for(var l=c;l--;){var u=s[l];if(!(o?u in t:gr.call(t,u)))return!1}var d=a.get(e),f=a.get(t);if(d&&f)return d==t&&f==e;var p=!0;a.set(e,t),a.set(t,e);for(var m=o;++l<c;){u=s[l];var h=e[u],g=t[u];if(r)var _=o?r(g,h,u,t,e,a):r(h,g,u,e,t,a);if(!(_===void 0?h===g||i(h,g,n,r,a):_)){p=!1;break}m||=u==`constructor`}if(p&&!m){var v=e.constructor,y=t.constructor;v!=y&&`constructor`in e&&`constructor`in t&&!(typeof v==`function`&&v instanceof v&&typeof y==`function`&&y instanceof y)&&(p=!1)}return a.delete(e),a.delete(t),p}var vr=1,yr=`[object Arguments]`,br=`[object Array]`,xr=`[object Object]`,Sr=Object.prototype.hasOwnProperty;function Cr(e,t,n,r,i,a){var o=k(e),s=k(t),c=o?br:Vn(e),l=s?br:Vn(t);c=c==yr?xr:c,l=l==yr?xr:l;var u=c==xr,d=l==xr,f=c==l;if(f&&Oe(e)){if(!Oe(t))return!1;o=!0,u=!1}if(f&&!u)return a||=new P,o||ue(e)?Xn(e,t,n,r,i,a):mr(e,t,c,n,r,i,a);if(!(n&vr)){var p=u&&Sr.call(e,`__wrapped__`),m=d&&Sr.call(t,`__wrapped__`);if(p||m){var h=p?e.value():e,g=m?t.value():t;return a||=new P,i(h,g,n,r,a)}}return f?(a||=new P,_r(e,t,n,r,i,a)):!1}function wr(e,t,n,r,i){return e===t?!0:e==null||t==null||!A(e)&&!A(t)?e!==e&&t!==t:Cr(e,t,n,r,wr,i)}var Tr=1,Er=2;function Dr(e,t,n,r){var i=n.length,a=i,o=!r;if(e==null)return!a;for(e=Object(e);i--;){var s=n[i];if(o&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++i<a;){s=n[i];var c=s[0],l=e[c],u=s[1];if(o&&s[2]){if(l===void 0&&!(c in e))return!1}else{var d=new P;if(r)var f=r(l,u,c,e,t,d);if(!(f===void 0?wr(u,l,Tr|Er,r,d):f))return!1}}return!0}function Or(e){return e===e&&!ve(e)}function kr(e){for(var t=nn(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,Or(i)]}return t}function Ar(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}function jr(e){var t=kr(e);return t.length==1&&t[0][2]?Ar(t[0][0],t[0][1]):function(n){return n===e||Dr(n,e,t)}}function Mr(e,t){return e!=null&&t in Object(e)}function Nr(e,t,n){t=mn(t,e);for(var r=-1,i=t.length,a=!1;++r<i;){var o=gn(t[r]);if(!(a=e!=null&&n(e,o)))break;e=e[o]}return a||++r!=i?a:(i=e==null?0:e.length,!!i&&oe(i)&&te(o,i)&&(k(e)||ae(e)))}function Pr(e,t){return e!=null&&Nr(e,t,Mr)}var Fr=1,Ir=2;function Lr(e,t){return on(e)&&Or(t)?Ar(gn(e),t):function(n){var r=vn(n,e);return r===void 0&&r===t?Pr(n,e):wr(t,r,Fr|Ir)}}function Rr(e){return function(t){return t?.[e]}}function zr(e){return function(t){return _n(t,e)}}function Br(e){return on(e)?Rr(gn(e)):zr(e)}function Vr(e){return typeof e==`function`?e:e==null?T:typeof e==`object`?k(e)?Lr(e[0],e[1]):jr(e):Br(e)}function Hr(e,t){return e&&Se(e,t,nn)}function Ur(e,t){return function(n,r){if(n==null)return n;if(!De(n))return e(n,r);for(var i=n.length,a=t?i:-1,o=Object(n);(t?a--:++a<i)&&r(o[a],a,o)!==!1;);return n}}var Wr=Ur(Hr);function Gr(e,t){var n=-1,r=De(e)?Array(e.length):[];return Wr(e,function(e,i,a){r[++n]=t(e,i,a)}),r}function Kr(e,t){return(k(e)?Fe:Gr)(e,Vr(t,3))}var{cubicBezierEaseIn:qr,cubicBezierEaseOut:Jr}=we;function Yr({transformOrigin:e=`inherit`,duration:t=`.2s`,enterScale:n=`.9`,originalTransform:r=``,originalTransition:i=``}={}){return[L(`&.fade-in-scale-up-transition-leave-active`,{transformOrigin:e,transition:`opacity ${t} ${qr}, transform ${t} ${qr} ${i&&`,${i}`}`}),L(`&.fade-in-scale-up-transition-enter-active`,{transformOrigin:e,transition:`opacity ${t} ${Jr}, transform ${t} ${Jr} ${i&&`,${i}`}`}),L(`&.fade-in-scale-up-transition-enter-from, &.fade-in-scale-up-transition-leave-to`,{opacity:0,transform:`${r} scale(${n})`}),L(`&.fade-in-scale-up-transition-leave-from, &.fade-in-scale-up-transition-enter-to`,{opacity:1,transform:`${r} scale(1)`})]}var Xr={space:`6px`,spaceArrow:`10px`,arrowOffset:`10px`,arrowOffsetVertical:`10px`,arrowHeight:`6px`,padding:`8px 14px`};function Zr(e){let{boxShadow2:t,popoverColor:n,textColor2:r,borderRadius:i,fontSize:a,dividerColor:o}=e;return Object.assign(Object.assign({},Xr),{fontSize:a,borderRadius:i,color:n,dividerColor:o,textColor:r,boxShadow:t})}var Qr=Ce({name:`Popover`,common:xe,peers:{Scrollbar:Me},self:Zr}),$r={top:`bottom`,bottom:`top`,left:`right`,right:`left`},Z=`var(--n-arrow-height) * 1.414`,ei=L([N(`popover`,`
|
|
1
|
+
import{$ as e,C as t,F as n,K as r,L as i,M as a,N as o,R as s,S as c,U as l,V as u,X as d,Z as f,b as p,ct as m,d as h,dt as g,h as _,j as v,k as y,st as b,v as x,x as S,y as C}from"./router-Dj-Nmg7q.js";import{$ as w,A as T,B as ee,C as E,D as te,E as ne,F as D,I as O,K as re,M as k,N as A,O as j,P as ie,S as ae,T as oe,U as se,X as M,Z as ce,_ as le,b as ue,c as de,ct as N,d as fe,dt as pe,et as me,ft as he,g as ge,gt as _e,h as P,j as ve,k as F,lt as ye,m as be,n as xe,p as Se,q as I,s as Ce,st as L,tt as R,u as we,ut as Te,v as Ee,w as De,x as Oe,y as ke,z as Ae}from"./browser-CQRjhbaB.js";import{d as je,f as z,i as Me,m as Ne,p as B,r as Pe}from"./Suffix-DgzfIwzx.js";import{a as Fe,i as Ie,o as Le}from"./fade-in.cssr-lwO9nLky.js";import{n as Re}from"./Close-CKHcXisf.js";var V=[],ze=new WeakMap;function Be(){V.forEach(e=>e(...ze.get(e))),V=[]}function Ve(e,...t){ze.set(e,t),!V.includes(e)&&V.push(e)===1&&requestAnimationFrame(Be)}function He(e=8){return Math.random().toString(16).slice(2,2+e)}function Ue(e){let t=m(!!e.value);if(t.value)return b(t);let n=d(e,e=>{e&&(t.value=!0,n())});return b(t)}function We(){return a()!==null}var Ge=typeof window<`u`,Ke=Ge?document?.fonts?.ready:void 0,qe=!1;Ke===void 0?qe=!0:Ke.then(()=>{qe=!0});function Je(e){if(qe)return;let t=!1;l(()=>{qe||Ke?.then(()=>{t||e()})}),u(()=>{t=!0})}var Ye=w(`n-internal-select-menu`),Xe=w(`n-internal-select-menu-body`),Ze=w(`n-drawer-body`);w(`n-drawer`);var Qe=w(`n-modal-body`),$e=w(`n-modal-provider`),et=w(`n-modal`),tt=w(`n-popover-body`),nt=`__disabled__`;function H(e){let t=n(Qe,null),r=n(Ze,null),i=n(tt,null),a=n(Xe,null),o=m();if(typeof document<`u`){o.value=document.fullscreenElement;let e=()=>{o.value=document.fullscreenElement};l(()=>{B(`fullscreenchange`,document,e)}),u(()=>{z(`fullscreenchange`,document,e)})}return R(()=>{let{to:n}=e;return n===void 0?t?.value?t.value.$el??t.value:r?.value?r.value:i?.value?i.value:a?.value?a.value:n??(o.value||`body`):n===!1?nt:n===!0?o.value||`body`:n})}H.tdkey=nt,H.propTo={type:[String,Object,Boolean],default:void 0};function rt(e,t,n=`default`){let r=t[n];if(r===void 0)throw Error(`[vueuc/${e}]: slot[${n}] is empty.`);return r()}function it(e,t=!0,n=[]){return e.forEach(e=>{if(e!==null){if(typeof e!=`object`){(typeof e==`string`||typeof e==`number`)&&n.push(y(String(e)));return}if(Array.isArray(e)){it(e,t,n);return}if(e.type===C){if(e.children===null)return;Array.isArray(e.children)&&it(e.children,t,n)}else e.type!==x&&n.push(e)}}),n}function at(e,t,n=`default`){let r=t[n];if(r===void 0)throw Error(`[vueuc/${e}]: slot[${n}] is empty.`);let i=it(r());if(i.length===1)return i[0];throw Error(`[vueuc/${e}]: slot[${n}] should have exactly one child.`)}var U=null;function ot(){if(U===null&&(U=document.getElementById(`v-binder-view-measurer`),U===null)){U=document.createElement(`div`),U.id=`v-binder-view-measurer`;let{style:e}=U;e.position=`fixed`,e.left=`0`,e.right=`0`,e.top=`0`,e.bottom=`0`,e.pointerEvents=`none`,e.visibility=`hidden`,document.body.appendChild(U)}return U.getBoundingClientRect()}function st(e,t){let n=ot();return{top:t,left:e,height:0,width:0,right:n.width-e,bottom:n.height-t}}function ct(e){let t=e.getBoundingClientRect(),n=ot();return{left:t.left-n.left,top:t.top-n.top,bottom:n.height+n.top-t.bottom,right:n.width+n.left-t.right,width:t.width,height:t.height}}function lt(e){return e.nodeType===9?null:e.parentNode}function ut(e){if(e===null)return null;let t=lt(e);if(t===null)return null;if(t.nodeType===9)return document;if(t.nodeType===1){let{overflow:e,overflowX:n,overflowY:r}=getComputedStyle(t);if(/(auto|scroll|overlay)/.test(e+r+n))return t}return ut(t)}var dt=v({name:`Binder`,props:{syncTargetWithParent:Boolean,syncTarget:{type:Boolean,default:!0}},setup(e){r(`VBinder`,a()?.proxy);let t=n(`VBinder`,null),i=m(null),o=n=>{i.value=n,t&&e.syncTargetWithParent&&t.setTargetRef(n)},s=[],c=()=>{let e=i.value;for(;e=ut(e),e!==null;)s.push(e);for(let e of s)B(`scroll`,e,h,!0)},l=()=>{for(let e of s)z(`scroll`,e,h,!0);s=[]},d=new Set,f=e=>{d.size===0&&c(),d.has(e)||d.add(e)},p=e=>{d.has(e)&&d.delete(e),d.size===0&&l()},h=()=>{Ve(g)},g=()=>{d.forEach(e=>e())},_=new Set,v=e=>{_.size===0&&B(`resize`,window,b),_.has(e)||_.add(e)},y=e=>{_.has(e)&&_.delete(e),_.size===0&&z(`resize`,window,b)},b=()=>{_.forEach(e=>e())};return u(()=>{z(`resize`,window,b),l()}),{targetRef:i,setTargetRef:o,addScrollListener:f,removeScrollListener:p,addResizeListener:v,removeResizeListener:y}},render(){return rt(`binder`,this.$slots)}}),ft=v({name:`Target`,setup(){let{setTargetRef:e,syncTarget:t}=n(`VBinder`);return{syncTarget:t,setTargetDirective:{mounted:e,updated:e}}},render(){let{syncTarget:t,setTargetDirective:n}=this;return t?e(at(`follower`,this.$slots),[[n]]):at(`follower`,this.$slots)}}),W=`@@mmoContext`,pt={mounted(e,{value:t}){e[W]={handler:void 0},typeof t==`function`&&(e[W].handler=t,B(`mousemoveoutside`,e,t))},updated(e,{value:t}){let n=e[W];typeof t==`function`?n.handler?n.handler!==t&&(z(`mousemoveoutside`,e,n.handler),n.handler=t,B(`mousemoveoutside`,e,t)):(e[W].handler=t,B(`mousemoveoutside`,e,t)):n.handler&&=(z(`mousemoveoutside`,e,n.handler),void 0)},unmounted(e){let{handler:t}=e[W];t&&z(`mousemoveoutside`,e,t),e[W].handler=void 0}},G=`@@coContext`,mt={mounted(e,{value:t,modifiers:n}){e[G]={handler:void 0},typeof t==`function`&&(e[G].handler=t,B(`clickoutside`,e,t,{capture:n.capture}))},updated(e,{value:t,modifiers:n}){let r=e[G];typeof t==`function`?r.handler?r.handler!==t&&(z(`clickoutside`,e,r.handler,{capture:n.capture}),r.handler=t,B(`clickoutside`,e,t,{capture:n.capture})):(e[G].handler=t,B(`clickoutside`,e,t,{capture:n.capture})):r.handler&&=(z(`clickoutside`,e,r.handler,{capture:n.capture}),void 0)},unmounted(e,{modifiers:t}){let{handler:n}=e[G];n&&z(`clickoutside`,e,n,{capture:t.capture}),e[G].handler=void 0}};function ht(e,t){console.error(`[vdirs/${e}]: ${t}`)}var gt=new class{constructor(){this.elementZIndex=new Map,this.nextZIndex=2e3}get elementCount(){return this.elementZIndex.size}ensureZIndex(e,t){let{elementZIndex:n}=this;if(t!==void 0){e.style.zIndex=`${t}`,n.delete(e);return}let{nextZIndex:r}=this;n.has(e)&&n.get(e)+1===this.nextZIndex||(e.style.zIndex=`${r}`,n.set(e,r),this.nextZIndex=r+1,this.squashState())}unregister(e,t){let{elementZIndex:n}=this;n.has(e)?n.delete(e):t===void 0&&ht(`z-index-manager/unregister-element`,`Element not found when unregistering.`),this.squashState()}squashState(){let{elementCount:e}=this;e||(this.nextZIndex=2e3),this.nextZIndex-e>2500&&this.rearrange()}rearrange(){let e=Array.from(this.elementZIndex.entries());e.sort((e,t)=>e[1]-t[1]),this.nextZIndex=2e3,e.forEach(e=>{let t=e[0],n=this.nextZIndex++;`${n}`!==t.style.zIndex&&(t.style.zIndex=`${n}`)})}},K=`@@ziContext`,_t={mounted(e,t){let{value:n={}}=t,{zIndex:r,enabled:i}=n;e[K]={enabled:!!i,initialized:!1},i&&(gt.ensureZIndex(e,r),e[K].initialized=!0)},updated(e,t){let{value:n={}}=t,{zIndex:r,enabled:i}=n,a=e[K].enabled;i&&!a&&(gt.ensureZIndex(e,r),e[K].initialized=!0),e[K].enabled=!!i},unmounted(e,t){if(!e[K].initialized)return;let{value:n={}}=t,{zIndex:r}=n;gt.unregister(e,r)}},{c:q}=_e(),vt=`vueuc-style`;function yt(e){return typeof e==`string`?document.querySelector(e):e()||null}var bt=v({name:`LazyTeleport`,props:{to:{type:[String,Object],default:void 0},disabled:Boolean,show:{type:Boolean,required:!0}},setup(e){return{showTeleport:Ue(g(e,`show`)),mergedTo:t(()=>{let{to:t}=e;return t??`body`})}},render(){return this.showTeleport?this.disabled?rt(`lazy-teleport`,this.$slots):o(p,{disabled:this.disabled,to:this.mergedTo},rt(`lazy-teleport`,this.$slots)):null}}),xt={top:`bottom`,bottom:`top`,left:`right`,right:`left`},St={start:`end`,center:`center`,end:`start`},Ct={top:`height`,bottom:`height`,left:`width`,right:`width`},wt={"bottom-start":`top left`,bottom:`top center`,"bottom-end":`top right`,"top-start":`bottom left`,top:`bottom center`,"top-end":`bottom right`,"right-start":`top left`,right:`center left`,"right-end":`bottom left`,"left-start":`top right`,left:`center right`,"left-end":`bottom right`},Tt={"bottom-start":`bottom left`,bottom:`bottom center`,"bottom-end":`bottom right`,"top-start":`top left`,top:`top center`,"top-end":`top right`,"right-start":`top right`,right:`center right`,"right-end":`bottom right`,"left-start":`top left`,left:`center left`,"left-end":`bottom left`},Et={"bottom-start":`right`,"bottom-end":`left`,"top-start":`right`,"top-end":`left`,"right-start":`bottom`,"right-end":`top`,"left-start":`bottom`,"left-end":`top`},Dt={top:!0,bottom:!1,left:!0,right:!1},Ot={top:`end`,bottom:`start`,left:`end`,right:`start`};function kt(e,t,n,r,i,a){if(!i||a)return{placement:e,top:0,left:0};let[o,s]=e.split(`-`),c=s??`center`,l={top:0,left:0},u=(e,i,a)=>{let o=0,s=0,c=n[e]-t[i]-t[e];return c>0&&r&&(a?s=Dt[i]?c:-c:o=Dt[i]?c:-c),{left:o,top:s}},d=o===`left`||o===`right`;if(c!==`center`){let r=Et[e],i=xt[r],a=Ct[r];if(n[a]>t[a]){if(t[r]+t[a]<n[a]){let e=(n[a]-t[a])/2;t[r]<e||t[i]<e?t[r]<t[i]?(c=St[s],l=u(a,i,d)):l=u(a,r,d):c=`center`}}else n[a]<t[a]&&t[i]<0&&t[r]>t[i]&&(c=St[s])}else{let e=o===`bottom`||o===`top`?`left`:`top`,r=xt[e],i=Ct[e],a=(n[i]-t[i])/2;(t[e]<a||t[r]<a)&&(t[e]>t[r]?(c=Ot[e],l=u(i,e,d)):(c=Ot[r],l=u(i,r,d)))}let f=o;return t[o]<n[Ct[o]]&&t[o]<t[xt[o]]&&(f=xt[o]),{placement:c===`center`?f:`${f}-${c}`,left:l.left,top:l.top}}function At(e,t){return t?Tt[e]:wt[e]}function jt(e,t,n,r,i,a){if(a)switch(e){case`bottom-start`:return{top:`${Math.round(n.top-t.top+n.height)}px`,left:`${Math.round(n.left-t.left)}px`,transform:`translateY(-100%)`};case`bottom-end`:return{top:`${Math.round(n.top-t.top+n.height)}px`,left:`${Math.round(n.left-t.left+n.width)}px`,transform:`translateX(-100%) translateY(-100%)`};case`top-start`:return{top:`${Math.round(n.top-t.top)}px`,left:`${Math.round(n.left-t.left)}px`,transform:``};case`top-end`:return{top:`${Math.round(n.top-t.top)}px`,left:`${Math.round(n.left-t.left+n.width)}px`,transform:`translateX(-100%)`};case`right-start`:return{top:`${Math.round(n.top-t.top)}px`,left:`${Math.round(n.left-t.left+n.width)}px`,transform:`translateX(-100%)`};case`right-end`:return{top:`${Math.round(n.top-t.top+n.height)}px`,left:`${Math.round(n.left-t.left+n.width)}px`,transform:`translateX(-100%) translateY(-100%)`};case`left-start`:return{top:`${Math.round(n.top-t.top)}px`,left:`${Math.round(n.left-t.left)}px`,transform:``};case`left-end`:return{top:`${Math.round(n.top-t.top+n.height)}px`,left:`${Math.round(n.left-t.left)}px`,transform:`translateY(-100%)`};case`top`:return{top:`${Math.round(n.top-t.top)}px`,left:`${Math.round(n.left-t.left+n.width/2)}px`,transform:`translateX(-50%)`};case`right`:return{top:`${Math.round(n.top-t.top+n.height/2)}px`,left:`${Math.round(n.left-t.left+n.width)}px`,transform:`translateX(-100%) translateY(-50%)`};case`left`:return{top:`${Math.round(n.top-t.top+n.height/2)}px`,left:`${Math.round(n.left-t.left)}px`,transform:`translateY(-50%)`};default:return{top:`${Math.round(n.top-t.top+n.height)}px`,left:`${Math.round(n.left-t.left+n.width/2)}px`,transform:`translateX(-50%) translateY(-100%)`}}switch(e){case`bottom-start`:return{top:`${Math.round(n.top-t.top+n.height+r)}px`,left:`${Math.round(n.left-t.left+i)}px`,transform:``};case`bottom-end`:return{top:`${Math.round(n.top-t.top+n.height+r)}px`,left:`${Math.round(n.left-t.left+n.width+i)}px`,transform:`translateX(-100%)`};case`top-start`:return{top:`${Math.round(n.top-t.top+r)}px`,left:`${Math.round(n.left-t.left+i)}px`,transform:`translateY(-100%)`};case`top-end`:return{top:`${Math.round(n.top-t.top+r)}px`,left:`${Math.round(n.left-t.left+n.width+i)}px`,transform:`translateX(-100%) translateY(-100%)`};case`right-start`:return{top:`${Math.round(n.top-t.top+r)}px`,left:`${Math.round(n.left-t.left+n.width+i)}px`,transform:``};case`right-end`:return{top:`${Math.round(n.top-t.top+n.height+r)}px`,left:`${Math.round(n.left-t.left+n.width+i)}px`,transform:`translateY(-100%)`};case`left-start`:return{top:`${Math.round(n.top-t.top+r)}px`,left:`${Math.round(n.left-t.left+i)}px`,transform:`translateX(-100%)`};case`left-end`:return{top:`${Math.round(n.top-t.top+n.height+r)}px`,left:`${Math.round(n.left-t.left+i)}px`,transform:`translateX(-100%) translateY(-100%)`};case`top`:return{top:`${Math.round(n.top-t.top+r)}px`,left:`${Math.round(n.left-t.left+n.width/2+i)}px`,transform:`translateY(-100%) translateX(-50%)`};case`right`:return{top:`${Math.round(n.top-t.top+n.height/2+r)}px`,left:`${Math.round(n.left-t.left+n.width+i)}px`,transform:`translateY(-50%)`};case`left`:return{top:`${Math.round(n.top-t.top+n.height/2+r)}px`,left:`${Math.round(n.left-t.left+i)}px`,transform:`translateY(-50%) translateX(-100%)`};default:return{top:`${Math.round(n.top-t.top+n.height+r)}px`,left:`${Math.round(n.left-t.left+n.width/2+i)}px`,transform:`translateX(-50%)`}}}var Mt=q([q(`.v-binder-follower-container`,{position:`absolute`,left:`0`,right:`0`,top:`0`,height:`0`,pointerEvents:`none`,zIndex:`auto`}),q(`.v-binder-follower-content`,{position:`absolute`,zIndex:`auto`},[q(`> *`,{pointerEvents:`all`})])]),Nt=v({name:`Follower`,inheritAttrs:!1,props:{show:Boolean,enabled:{type:Boolean,default:void 0},placement:{type:String,default:`bottom`},syncTrigger:{type:Array,default:[`resize`,`scroll`]},to:[String,Object],flip:{type:Boolean,default:!0},internalShift:Boolean,x:Number,y:Number,width:String,minWidth:String,containerClass:String,teleportDisabled:Boolean,zindexable:{type:Boolean,default:!0},zIndex:Number,overlap:Boolean},setup(e){let t=n(`VBinder`),r=R(()=>e.enabled===void 0?e.show:e.enabled),i=m(null),a=m(null),o=()=>{let{syncTrigger:n}=e;n.includes(`scroll`)&&t.addScrollListener(p),n.includes(`resize`)&&t.addResizeListener(p)},c=()=>{t.removeScrollListener(p),t.removeResizeListener(p)};l(()=>{r.value&&(p(),o())});let f=ce();Mt.mount({id:`vueuc/binder`,head:!0,anchorMetaName:vt,ssr:f}),u(()=>{c()}),Je(()=>{r.value&&p()});let p=()=>{if(!r.value)return;let n=i.value;if(n===null)return;let o=t.targetRef,{x:s,y:c,overlap:l}=e,u=s!==void 0&&c!==void 0?st(s,c):ct(o);n.style.setProperty(`--v-target-width`,`${Math.round(u.width)}px`),n.style.setProperty(`--v-target-height`,`${Math.round(u.height)}px`);let{width:d,minWidth:f,placement:p,internalShift:m,flip:h}=e;n.setAttribute(`v-placement`,p),l?n.setAttribute(`v-overlap`,``):n.removeAttribute(`v-overlap`);let{style:g}=n;d===`target`?g.width=`${u.width}px`:d===void 0?g.width=``:g.width=d,f===`target`?g.minWidth=`${u.width}px`:f===void 0?g.minWidth=``:g.minWidth=f;let _=ct(n),v=ct(a.value),{left:y,top:b,placement:x}=kt(p,u,_,m,h,l),S=At(x,l),{left:C,top:w,transform:T}=jt(x,v,u,b,y,l);n.setAttribute(`v-placement`,x),n.style.setProperty(`--v-offset-left`,`${Math.round(y)}px`),n.style.setProperty(`--v-offset-top`,`${Math.round(b)}px`),n.style.transform=`translateX(${C}) translateY(${w}) ${T}`,n.style.setProperty(`--v-transform-origin`,S),n.style.transformOrigin=S};d(r,e=>{e?(o(),h()):c()});let h=()=>{s().then(p).catch(e=>console.error(e))};[`placement`,`x`,`y`,`internalShift`,`flip`,`width`,`overlap`,`minWidth`].forEach(t=>{d(g(e,t),p)}),[`teleportDisabled`].forEach(t=>{d(g(e,t),h)}),d(g(e,`syncTrigger`),e=>{e.includes(`resize`)?t.addResizeListener(p):t.removeResizeListener(p),e.includes(`scroll`)?t.addScrollListener(p):t.removeScrollListener(p)});let _=me();return{VBinder:t,mergedEnabled:r,offsetContainerRef:a,followerRef:i,mergedTo:R(()=>{let{to:t}=e;if(t!==void 0)return t;_.value}),syncPosition:p}},render(){return o(bt,{show:this.show,to:this.mergedTo,disabled:this.teleportDisabled},{default:()=>{var t;let n=o(`div`,{class:[`v-binder-follower-container`,this.containerClass],ref:`offsetContainerRef`},[o(`div`,{class:`v-binder-follower-content`,ref:`followerRef`},(t=this.$slots).default?.call(t))]);return this.zindexable?e(n,[[_t,{enabled:this.mergedEnabled,zIndex:this.zIndex}]]):n}})}});function Pt(e){return e instanceof HTMLElement}function Ft(e){for(let t=0;t<e.childNodes.length;t++){let n=e.childNodes[t];if(Pt(n)&&(Lt(n)||Ft(n)))return!0}return!1}function It(e){for(let t=e.childNodes.length-1;t>=0;t--){let n=e.childNodes[t];if(Pt(n)&&(Lt(n)||It(n)))return!0}return!1}function Lt(e){if(!Rt(e))return!1;try{e.focus({preventScroll:!0})}catch{}return document.activeElement===e}function Rt(e){if(e.tabIndex>0||e.tabIndex===0&&e.getAttribute(`tabIndex`)!==null)return!0;if(e.getAttribute(`disabled`))return!1;switch(e.nodeName){case`A`:return!!e.href&&e.rel!==`ignore`;case`INPUT`:return e.type!==`hidden`&&e.type!==`file`;case`SELECT`:case`TEXTAREA`:return!0;default:return!1}}var J=[],zt=v({name:`FocusTrap`,props:{disabled:Boolean,active:Boolean,autoFocus:{type:Boolean,default:!0},onEsc:Function,initialFocusTo:[String,Function],finalFocusTo:[String,Function],returnFocusOnDeactivated:{type:Boolean,default:!0}},setup(e){let t=He(),n=m(null),r=m(null),i=!1,a=!1,o=typeof document>`u`?null:document.activeElement;function s(){return J[J.length-1]===t}function c(t){var n;t.code===`Escape`&&s()&&((n=e.onEsc)==null||n.call(e,t))}l(()=>{d(()=>e.active,e=>{e?(h(),B(`keydown`,document,c)):(z(`keydown`,document,c),i&&g())},{immediate:!0})}),u(()=>{z(`keydown`,document,c),i&&g()});function f(e){if(!a&&s()){let t=p();if(t===null||t.contains(Ne(e)))return;_(`first`)}}function p(){let e=n.value;if(e===null)return null;let t=e;for(;t=t.nextSibling,!(t===null||t instanceof Element&&t.tagName===`DIV`););return t}function h(){var n;if(!e.disabled){if(J.push(t),e.autoFocus){let{initialFocusTo:t}=e;t===void 0?_(`first`):(n=yt(t))==null||n.focus({preventScroll:!0})}i=!0,document.addEventListener(`focus`,f,!0)}}function g(){var n;if(e.disabled||(document.removeEventListener(`focus`,f,!0),J=J.filter(e=>e!==t),s()))return;let{finalFocusTo:r}=e;r===void 0?e.returnFocusOnDeactivated&&o instanceof HTMLElement&&(a=!0,o.focus({preventScroll:!0}),a=!1):(n=yt(r))==null||n.focus({preventScroll:!0})}function _(t){if(s()&&e.active){let e=n.value,i=r.value;if(e!==null&&i!==null){let n=p();if(n==null||n===i){a=!0,e.focus({preventScroll:!0}),a=!1;return}a=!0;let r=t===`first`?Ft(n):It(n);a=!1,r||(a=!0,e.focus({preventScroll:!0}),a=!1)}}}function v(e){if(a)return;let t=p();t!==null&&(e.relatedTarget!==null&&t.contains(e.relatedTarget)?_(`last`):_(`first`))}function y(e){a||(e.relatedTarget!==null&&e.relatedTarget===n.value?_(`last`):_(`first`))}return{focusableStartRef:n,focusableEndRef:r,focusableStyle:`position: absolute; height: 0; width: 0;`,handleStartFocus:v,handleEndFocus:y}},render(){let{default:e}=this.$slots;if(e===void 0)return null;if(this.disabled)return e();let{active:t,focusableStyle:n}=this;return o(C,null,[o(`div`,{"aria-hidden":`true`,tabindex:t?`0`:`-1`,ref:`focusableStartRef`,style:n,onFocus:this.handleStartFocus}),e(),o(`div`,{"aria-hidden":`true`,style:n,ref:`focusableEndRef`,tabindex:t?`0`:`-1`,onFocus:this.handleEndFocus})])}}),Bt=/^(\d|\.)+$/,Vt=/(\d|\.)+/;function Ht(e,{c:t=1,offset:n=0,attachPx:r=!0}={}){if(typeof e==`number`){let r=(e+n)*t;return r===0?`0`:`${r}px`}else if(typeof e==`string`)if(Bt.test(e)){let i=(Number(e)+n)*t;return r?i===0?`0`:`${i}px`:`${i}`}else{let r=Vt.exec(e);return r?e.replace(Vt,String((Number(r[0])+n)*t)):e}return e}var Ut;function Wt(){return Ut===void 0&&(Ut=navigator.userAgent.includes(`Node.js`)||navigator.userAgent.includes(`jsdom`)),Ut}var Gt=new WeakSet;function Kt(e){Gt.add(e)}function qt(e){return!Gt.has(e)}function Y(e,t=!0,n=[]){return e.forEach(e=>{if(e!==null){if(typeof e!=`object`){(typeof e==`string`||typeof e==`number`)&&n.push(y(String(e)));return}if(Array.isArray(e)){Y(e,t,n);return}if(e.type===C){if(e.children===null)return;Array.isArray(e.children)&&Y(e.children,t,n)}else{if(e.type===x&&t)return;n.push(e)}}}),n}function Jt(e,t=`default`,n=void 0){let r=e[t];if(!r)return M(`getFirstSlotVNode`,`slot[${t}] is empty`),null;let i=Y(r(n));return i.length===1?i[0]:(M(`getFirstSlotVNode`,`slot[${t}] should have exactly one child`),null)}function Yt(e,t,n){if(!t)return null;let r=Y(t(n));return r.length===1?r[0]:(M(`getFirstSlotVNode`,`slot[${e}] should have exactly one child`),null)}function Xt(e,t=[],n){let r={};return t.forEach(t=>{r[t]=e[t]}),Object.assign(r,n)}function Zt(e,...t){return typeof e==`function`?e(...t):typeof e==`string`?y(e):typeof e==`number`?y(String(e)):null}var Qt=j(O,`WeakMap`),$t=Ee(Object.keys,Object),en=Object.prototype.hasOwnProperty;function tn(e){if(!E(e))return $t(e);var t=[];for(var n in Object(e))en.call(e,n)&&n!=`constructor`&&t.push(n);return t}function nn(e){return De(e)?ke(e):tn(e)}var rn=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,an=/^\w*$/;function on(e,t){if(k(e))return!1;var n=typeof e;return n==`number`||n==`symbol`||n==`boolean`||e==null||Le(e)?!0:an.test(e)||!rn.test(e)||t!=null&&e in Object(t)}var sn=`Expected a function`;function cn(e,t){if(typeof e!=`function`||t!=null&&typeof t!=`function`)throw TypeError(sn);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);var o=e.apply(this,r);return n.cache=a.set(i,o)||a,o};return n.cache=new(cn.Cache||ge),n}cn.Cache=ge;var ln=500;function un(e){var t=cn(e,function(e){return n.size===ln&&n.clear(),e}),n=t.cache;return t}var dn=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,fn=/\\(\\)?/g,pn=un(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(``),e.replace(dn,function(e,n,r,i){t.push(r?i.replace(fn,`$1`):n||e)}),t});function mn(e,t){return k(e)?e:on(e,t)?[e]:pn(Ie(e))}var hn=1/0;function gn(e){if(typeof e==`string`||Le(e))return e;var t=e+``;return t==`0`&&1/e==-hn?`-0`:t}function _n(e,t){t=mn(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[gn(t[n++])];return n&&n==r?e:void 0}function vn(e,t,n){var r=e==null?void 0:_n(e,t);return r===void 0?n:r}function yn(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}function bn(e,t){for(var n=-1,r=e==null?0:e.length,i=0,a=[];++n<r;){var o=e[n];t(o,n,e)&&(a[i++]=o)}return a}function xn(){return[]}var Sn=Object.prototype.propertyIsEnumerable,Cn=Object.getOwnPropertySymbols,wn=Cn?function(e){return e==null?[]:(e=Object(e),bn(Cn(e),function(t){return Sn.call(e,t)}))}:xn;function Tn(e,t,n){var r=t(e);return k(e)?r:yn(r,n(e))}function En(e){return Tn(e,nn,wn)}var Dn=j(O,`DataView`),On=j(O,`Promise`),kn=j(O,`Set`),An=`[object Map]`,jn=`[object Object]`,Mn=`[object Promise]`,Nn=`[object Set]`,Pn=`[object WeakMap]`,Fn=`[object DataView]`,In=F(Dn),Ln=F(le),Rn=F(On),zn=F(kn),Bn=F(Qt),X=ie;(Dn&&X(new Dn(new ArrayBuffer(1)))!=Fn||le&&X(new le)!=An||On&&X(On.resolve())!=Mn||kn&&X(new kn)!=Nn||Qt&&X(new Qt)!=Pn)&&(X=function(e){var t=ie(e),n=t==jn?e.constructor:void 0,r=n?F(n):``;if(r)switch(r){case In:return Fn;case Ln:return An;case Rn:return Mn;case zn:return Nn;case Bn:return Pn}return t});var Vn=X,Hn=`__lodash_hash_undefined__`;function Un(e){return this.__data__.set(e,Hn),this}function Wn(e){return this.__data__.has(e)}function Gn(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new ge;++t<n;)this.add(e[t])}Gn.prototype.add=Gn.prototype.push=Un,Gn.prototype.has=Wn;function Kn(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}function qn(e,t){return e.has(t)}var Jn=1,Yn=2;function Xn(e,t,n,r,i,a){var o=n&Jn,s=e.length,c=t.length;if(s!=c&&!(o&&c>s))return!1;var l=a.get(e),u=a.get(t);if(l&&u)return l==t&&u==e;var d=-1,f=!0,p=n&Yn?new Gn:void 0;for(a.set(e,t),a.set(t,e);++d<s;){var m=e[d],h=t[d];if(r)var g=o?r(h,m,d,t,e,a):r(m,h,d,e,t,a);if(g!==void 0){if(g)continue;f=!1;break}if(p){if(!Kn(t,function(e,t){if(!qn(p,t)&&(m===e||i(m,e,n,r,a)))return p.push(t)})){f=!1;break}}else if(!(m===h||i(m,h,n,r,a))){f=!1;break}}return a.delete(e),a.delete(t),f}function Zn(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}function Qn(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}var $n=1,er=2,tr=`[object Boolean]`,nr=`[object Date]`,rr=`[object Error]`,ir=`[object Map]`,ar=`[object Number]`,or=`[object RegExp]`,sr=`[object Set]`,cr=`[object String]`,lr=`[object Symbol]`,ur=`[object ArrayBuffer]`,dr=`[object DataView]`,fr=D?D.prototype:void 0,pr=fr?fr.valueOf:void 0;function mr(e,t,n,r,i,a,o){switch(n){case dr:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case ur:return!(e.byteLength!=t.byteLength||!a(new be(e),new be(t)));case tr:case nr:case ar:return ne(+e,+t);case rr:return e.name==t.name&&e.message==t.message;case or:case cr:return e==t+``;case ir:var s=Zn;case sr:var c=r&$n;if(s||=Qn,e.size!=t.size&&!c)return!1;var l=o.get(e);if(l)return l==t;r|=er,o.set(e,t);var u=Xn(s(e),s(t),r,i,a,o);return o.delete(e),u;case lr:if(pr)return pr.call(e)==pr.call(t)}return!1}var hr=1,gr=Object.prototype.hasOwnProperty;function _r(e,t,n,r,i,a){var o=n&hr,s=En(e),c=s.length;if(c!=En(t).length&&!o)return!1;for(var l=c;l--;){var u=s[l];if(!(o?u in t:gr.call(t,u)))return!1}var d=a.get(e),f=a.get(t);if(d&&f)return d==t&&f==e;var p=!0;a.set(e,t),a.set(t,e);for(var m=o;++l<c;){u=s[l];var h=e[u],g=t[u];if(r)var _=o?r(g,h,u,t,e,a):r(h,g,u,e,t,a);if(!(_===void 0?h===g||i(h,g,n,r,a):_)){p=!1;break}m||=u==`constructor`}if(p&&!m){var v=e.constructor,y=t.constructor;v!=y&&`constructor`in e&&`constructor`in t&&!(typeof v==`function`&&v instanceof v&&typeof y==`function`&&y instanceof y)&&(p=!1)}return a.delete(e),a.delete(t),p}var vr=1,yr=`[object Arguments]`,br=`[object Array]`,xr=`[object Object]`,Sr=Object.prototype.hasOwnProperty;function Cr(e,t,n,r,i,a){var o=k(e),s=k(t),c=o?br:Vn(e),l=s?br:Vn(t);c=c==yr?xr:c,l=l==yr?xr:l;var u=c==xr,d=l==xr,f=c==l;if(f&&Oe(e)){if(!Oe(t))return!1;o=!0,u=!1}if(f&&!u)return a||=new P,o||ue(e)?Xn(e,t,n,r,i,a):mr(e,t,c,n,r,i,a);if(!(n&vr)){var p=u&&Sr.call(e,`__wrapped__`),m=d&&Sr.call(t,`__wrapped__`);if(p||m){var h=p?e.value():e,g=m?t.value():t;return a||=new P,i(h,g,n,r,a)}}return f?(a||=new P,_r(e,t,n,r,i,a)):!1}function wr(e,t,n,r,i){return e===t?!0:e==null||t==null||!A(e)&&!A(t)?e!==e&&t!==t:Cr(e,t,n,r,wr,i)}var Tr=1,Er=2;function Dr(e,t,n,r){var i=n.length,a=i,o=!r;if(e==null)return!a;for(e=Object(e);i--;){var s=n[i];if(o&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++i<a;){s=n[i];var c=s[0],l=e[c],u=s[1];if(o&&s[2]){if(l===void 0&&!(c in e))return!1}else{var d=new P;if(r)var f=r(l,u,c,e,t,d);if(!(f===void 0?wr(u,l,Tr|Er,r,d):f))return!1}}return!0}function Or(e){return e===e&&!ve(e)}function kr(e){for(var t=nn(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,Or(i)]}return t}function Ar(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}function jr(e){var t=kr(e);return t.length==1&&t[0][2]?Ar(t[0][0],t[0][1]):function(n){return n===e||Dr(n,e,t)}}function Mr(e,t){return e!=null&&t in Object(e)}function Nr(e,t,n){t=mn(t,e);for(var r=-1,i=t.length,a=!1;++r<i;){var o=gn(t[r]);if(!(a=e!=null&&n(e,o)))break;e=e[o]}return a||++r!=i?a:(i=e==null?0:e.length,!!i&&oe(i)&&te(o,i)&&(k(e)||ae(e)))}function Pr(e,t){return e!=null&&Nr(e,t,Mr)}var Fr=1,Ir=2;function Lr(e,t){return on(e)&&Or(t)?Ar(gn(e),t):function(n){var r=vn(n,e);return r===void 0&&r===t?Pr(n,e):wr(t,r,Fr|Ir)}}function Rr(e){return function(t){return t?.[e]}}function zr(e){return function(t){return _n(t,e)}}function Br(e){return on(e)?Rr(gn(e)):zr(e)}function Vr(e){return typeof e==`function`?e:e==null?T:typeof e==`object`?k(e)?Lr(e[0],e[1]):jr(e):Br(e)}function Hr(e,t){return e&&Se(e,t,nn)}function Ur(e,t){return function(n,r){if(n==null)return n;if(!De(n))return e(n,r);for(var i=n.length,a=t?i:-1,o=Object(n);(t?a--:++a<i)&&r(o[a],a,o)!==!1;);return n}}var Wr=Ur(Hr);function Gr(e,t){var n=-1,r=De(e)?Array(e.length):[];return Wr(e,function(e,i,a){r[++n]=t(e,i,a)}),r}function Kr(e,t){return(k(e)?Fe:Gr)(e,Vr(t,3))}var{cubicBezierEaseIn:qr,cubicBezierEaseOut:Jr}=we;function Yr({transformOrigin:e=`inherit`,duration:t=`.2s`,enterScale:n=`.9`,originalTransform:r=``,originalTransition:i=``}={}){return[L(`&.fade-in-scale-up-transition-leave-active`,{transformOrigin:e,transition:`opacity ${t} ${qr}, transform ${t} ${qr} ${i&&`,${i}`}`}),L(`&.fade-in-scale-up-transition-enter-active`,{transformOrigin:e,transition:`opacity ${t} ${Jr}, transform ${t} ${Jr} ${i&&`,${i}`}`}),L(`&.fade-in-scale-up-transition-enter-from, &.fade-in-scale-up-transition-leave-to`,{opacity:0,transform:`${r} scale(${n})`}),L(`&.fade-in-scale-up-transition-leave-from, &.fade-in-scale-up-transition-enter-to`,{opacity:1,transform:`${r} scale(1)`})]}var Xr={space:`6px`,spaceArrow:`10px`,arrowOffset:`10px`,arrowOffsetVertical:`10px`,arrowHeight:`6px`,padding:`8px 14px`};function Zr(e){let{boxShadow2:t,popoverColor:n,textColor2:r,borderRadius:i,fontSize:a,dividerColor:o}=e;return Object.assign(Object.assign({},Xr),{fontSize:a,borderRadius:i,color:n,dividerColor:o,textColor:r,boxShadow:t})}var Qr=Ce({name:`Popover`,common:xe,peers:{Scrollbar:Me},self:Zr}),$r={top:`bottom`,bottom:`top`,left:`right`,right:`left`},Z=`var(--n-arrow-height) * 1.414`,ei=L([N(`popover`,`
|
|
2
2
|
transition:
|
|
3
3
|
box-shadow .3s var(--n-bezier),
|
|
4
4
|
background-color .3s var(--n-bezier),
|
|
@@ -1,4 +1,4 @@
|
|
|
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,N as c,Q as l,R as u,T as d,U as f,V as p,X as m,Z as h,b as g,ct as _,d as v,dt as y,ft as b,g as x,gt as S,h as C,ht as w,j as T,k as E,mt as D,pt as O,q as k,w as A,y as j}from"./router-C-NNJUuf.js";import{r as M,t as N}from"./_plugin-vue_export-helper-CnosYBkx.js";import{$ as P,B as F,J as ee,Q as I,R as te,W as ne,X as L,Y as R,_t as z,a as re,c as B,ct as V,d as ie,dt as H,et as ae,ft as oe,n as se,o as ce,pt as le,q as U,s as ue,st as W,tt as de,ut as G,z as fe}from"./browser-Djp4tkp3.js";import{F as K,I as pe,_ as me,b as he,m as q,o as ge}from"./Popover-Cu52vG3D.js";import{d as _e,f as ve,p as ye,s as be}from"./Suffix-3xK0KZGt.js";import{i as xe,n as J,r as Y,t as Se}from"./fade-in.cssr-CIVyTG6A.js";import{d as Ce,f as we,p as Te,t as Ee}from"./Modal-B2zvXTrk.js";import{n as De,t as Oe}from"./FormItem-BgJdrTW0.js";import{a as ke,t as X}from"./Button-CrrCCorI.js";import{t as Ae}from"./Warning-kBbRMAif.js";import{t as je}from"./Add-CKf6ViXR.js";import{i as Me,t as Ne}from"./Input-ChENEW-Z.js";import{t as Pe}from"./Tag-Dmbj68Ki.js";import{a as Fe,n as Ie,r as Le}from"./light-KCEDTUGE.js";import{t as Re}from"./light-BF6E9z0k.js";import{t as ze}from"./Tooltip-CRbZNhG0.js";import{t as Be}from"./composables-DCA4Yga5.js";import{t as Ve}from"./use-message-BIpqgDet.js";import{t as He}from"./Switch-Bf63XXgA.js";import{t as Ue}from"./Spin-DsNCRPk9.js";import{t as Z}from"./profiles-CJCR84uQ.js";function We(e,t){if(!e)return;let n=document.createElement(`a`);n.href=e,t!==void 0&&(n.download=t),document.body.appendChild(n),n.click(),document.body.removeChild(n)}function Ge(e,t,n,r){var i=-1,a=e==null?0:e.length;for(r&&a&&(n=e[++i]);++i<a;)n=t(n,e[i],i,e);return n}function Ke(e){return function(t){return e?.[t]}}var qe=Ke({À:`A`,Á:`A`,Â:`A`,Ã:`A`,Ä:`A`,Å:`A`,à:`a`,á:`a`,â:`a`,ã:`a`,ä:`a`,å:`a`,Ç:`C`,ç:`c`,Ð:`D`,ð:`d`,È:`E`,É:`E`,Ê:`E`,Ë:`E`,è:`e`,é:`e`,ê:`e`,ë:`e`,Ì:`I`,Í:`I`,Î:`I`,Ï:`I`,ì:`i`,í:`i`,î:`i`,ï:`i`,Ñ:`N`,ñ:`n`,Ò:`O`,Ó:`O`,Ô:`O`,Õ:`O`,Ö:`O`,Ø:`O`,ò:`o`,ó:`o`,ô:`o`,õ:`o`,ö:`o`,ø:`o`,Ù:`U`,Ú:`U`,Û:`U`,Ü:`U`,ù:`u`,ú:`u`,û:`u`,ü:`u`,Ý:`Y`,ý:`y`,ÿ:`y`,Æ:`Ae`,æ:`ae`,Þ:`Th`,þ:`th`,ß:`ss`,Ā:`A`,Ă:`A`,Ą:`A`,ā:`a`,ă:`a`,ą:`a`,Ć:`C`,Ĉ:`C`,Ċ:`C`,Č:`C`,ć:`c`,ĉ:`c`,ċ:`c`,č:`c`,Ď:`D`,Đ:`D`,ď:`d`,đ:`d`,Ē:`E`,Ĕ:`E`,Ė:`E`,Ę:`E`,Ě:`E`,ē:`e`,ĕ:`e`,ė:`e`,ę:`e`,ě:`e`,Ĝ:`G`,Ğ:`G`,Ġ:`G`,Ģ:`G`,ĝ:`g`,ğ:`g`,ġ:`g`,ģ:`g`,Ĥ:`H`,Ħ:`H`,ĥ:`h`,ħ:`h`,Ĩ:`I`,Ī:`I`,Ĭ:`I`,Į:`I`,İ:`I`,ĩ:`i`,ī:`i`,ĭ:`i`,į:`i`,ı:`i`,Ĵ:`J`,ĵ:`j`,Ķ:`K`,ķ:`k`,ĸ:`k`,Ĺ:`L`,Ļ:`L`,Ľ:`L`,Ŀ:`L`,Ł:`L`,ĺ:`l`,ļ:`l`,ľ:`l`,ŀ:`l`,ł:`l`,Ń:`N`,Ņ:`N`,Ň:`N`,Ŋ:`N`,ń:`n`,ņ:`n`,ň:`n`,ŋ:`n`,Ō:`O`,Ŏ:`O`,Ő:`O`,ō:`o`,ŏ:`o`,ő:`o`,Ŕ:`R`,Ŗ:`R`,Ř:`R`,ŕ:`r`,ŗ:`r`,ř:`r`,Ś:`S`,Ŝ:`S`,Ş:`S`,Š:`S`,ś:`s`,ŝ:`s`,ş:`s`,š:`s`,Ţ:`T`,Ť:`T`,Ŧ:`T`,ţ:`t`,ť:`t`,ŧ:`t`,Ũ:`U`,Ū:`U`,Ŭ:`U`,Ů:`U`,Ű:`U`,Ų:`U`,ũ:`u`,ū:`u`,ŭ:`u`,ů:`u`,ű:`u`,ų:`u`,Ŵ:`W`,ŵ:`w`,Ŷ:`Y`,ŷ:`y`,Ÿ:`Y`,Ź:`Z`,Ż:`Z`,Ž:`Z`,ź:`z`,ż:`z`,ž:`z`,IJ:`IJ`,ij:`ij`,Œ:`Oe`,œ:`oe`,ʼn:`'n`,ſ:`s`}),Je=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Ye=RegExp(`[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]`,`g`);function Xe(e){return e=xe(e),e&&e.replace(Je,qe).replace(Ye,``)}var Ze=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function Qe(e){return e.match(Ze)||[]}var $e=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function et(e){return $e.test(e)}var tt=`\\ud800-\\udfff`,nt=`\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff`,rt=`\\u2700-\\u27bf`,it=`a-z\\xdf-\\xf6\\xf8-\\xff`,at=`\\xac\\xb1\\xd7\\xf7`,ot=`\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf`,st=`\\u2000-\\u206f`,ct=` \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000`,lt=`A-Z\\xc0-\\xd6\\xd8-\\xde`,ut=`\\ufe0e\\ufe0f`,dt=at+ot+st+ct,ft=`['’]`,pt=`[`+dt+`]`,mt=`[`+nt+`]`,ht=`\\d+`,gt=`[`+rt+`]`,_t=`[`+it+`]`,vt=`[^`+tt+dt+ht+rt+it+lt+`]`,yt=`(?:`+mt+`|\\ud83c[\\udffb-\\udfff])`,bt=`[^`+tt+`]`,xt=`(?:\\ud83c[\\udde6-\\uddff]){2}`,St=`[\\ud800-\\udbff][\\udc00-\\udfff]`,Q=`[`+lt+`]`,Ct=`\\u200d`,wt=`(?:`+_t+`|`+vt+`)`,Tt=`(?:`+Q+`|`+vt+`)`,Et=`(?:`+ft+`(?:d|ll|m|re|s|t|ve))?`,Dt=`(?:`+ft+`(?:D|LL|M|RE|S|T|VE))?`,Ot=yt+`?`,kt=`[`+ut+`]?`,At=`(?:`+Ct+`(?:`+[bt,xt,St].join(`|`)+`)`+kt+Ot+`)*`,jt=`\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])`,Mt=`\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])`,Nt=kt+Ot+At,Pt=`(?:`+[gt,xt,St].join(`|`)+`)`+Nt,Ft=RegExp([Q+`?`+_t+`+`+Et+`(?=`+[pt,Q,`$`].join(`|`)+`)`,Tt+`+`+Dt+`(?=`+[pt,Q+wt,`$`].join(`|`)+`)`,Q+`?`+wt+`+`+Et,Q+`+`+Dt,Mt,jt,ht,Pt].join(`|`),`g`);function It(e){return e.match(Ft)||[]}function Lt(e,t,n){return e=xe(e),t=n?void 0:t,t===void 0?et(e)?It(e):Qe(e):e.match(t)||[]}var Rt=RegExp(`['’]`,`g`);function zt(e){return function(t){return Ge(Lt(Xe(t).replace(Rt,``)),e,``)}}var Bt=zt(function(e,t,n){return e+(n?`-`:``)+t.toLowerCase()}),Vt=J(`attach`,()=>c(`svg`,{viewBox:`0 0 16 16`,version:`1.1`,xmlns:`http://www.w3.org/2000/svg`},c(`g`,{stroke:`none`,"stroke-width":`1`,fill:`none`,"fill-rule":`evenodd`},c(`g`,{fill:`currentColor`,"fill-rule":`nonzero`},c(`path`,{d:`M3.25735931,8.70710678 L7.85355339,4.1109127 C8.82986412,3.13460197 10.4127766,3.13460197 11.3890873,4.1109127 C12.365398,5.08722343 12.365398,6.67013588 11.3890873,7.64644661 L6.08578644,12.9497475 C5.69526215,13.3402718 5.06209717,13.3402718 4.67157288,12.9497475 C4.28104858,12.5592232 4.28104858,11.9260582 4.67157288,11.5355339 L9.97487373,6.23223305 C10.1701359,6.0369709 10.1701359,5.72038841 9.97487373,5.52512627 C9.77961159,5.32986412 9.4630291,5.32986412 9.26776695,5.52512627 L3.96446609,10.8284271 C3.18341751,11.6094757 3.18341751,12.8758057 3.96446609,13.6568542 C4.74551468,14.4379028 6.01184464,14.4379028 6.79289322,13.6568542 L12.0961941,8.35355339 C13.4630291,6.98671837 13.4630291,4.77064094 12.0961941,3.40380592 C10.7293591,2.0369709 8.51328163,2.0369709 7.14644661,3.40380592 L2.55025253,8 C2.35499039,8.19526215 2.35499039,8.51184464 2.55025253,8.70710678 C2.74551468,8.90236893 3.06209717,8.90236893 3.25735931,8.70710678 Z`}))))),Ht=J(`cancel`,()=>c(`svg`,{viewBox:`0 0 16 16`,version:`1.1`,xmlns:`http://www.w3.org/2000/svg`},c(`g`,{stroke:`none`,"stroke-width":`1`,fill:`none`,"fill-rule":`evenodd`},c(`g`,{fill:`currentColor`,"fill-rule":`nonzero`},c(`path`,{d:`M2.58859116,2.7156945 L2.64644661,2.64644661 C2.82001296,2.47288026 3.08943736,2.45359511 3.2843055,2.58859116 L3.35355339,2.64644661 L8,7.293 L12.6464466,2.64644661 C12.8417088,2.45118446 13.1582912,2.45118446 13.3535534,2.64644661 C13.5488155,2.84170876 13.5488155,3.15829124 13.3535534,3.35355339 L8.707,8 L13.3535534,12.6464466 C13.5271197,12.820013 13.5464049,13.0894374 13.4114088,13.2843055 L13.3535534,13.3535534 C13.179987,13.5271197 12.9105626,13.5464049 12.7156945,13.4114088 L12.6464466,13.3535534 L8,8.707 L3.35355339,13.3535534 C3.15829124,13.5488155 2.84170876,13.5488155 2.64644661,13.3535534 C2.45118446,13.1582912 2.45118446,12.8417088 2.64644661,12.6464466 L7.293,8 L2.64644661,3.35355339 C2.47288026,3.17998704 2.45359511,2.91056264 2.58859116,2.7156945 L2.64644661,2.64644661 L2.58859116,2.7156945 Z`}))))),Ut=J(`download`,()=>c(`svg`,{viewBox:`0 0 16 16`,version:`1.1`,xmlns:`http://www.w3.org/2000/svg`},c(`g`,{stroke:`none`,"stroke-width":`1`,fill:`none`,"fill-rule":`evenodd`},c(`g`,{fill:`currentColor`,"fill-rule":`nonzero`},c(`path`,{d:`M3.5,13 L12.5,13 C12.7761424,13 13,13.2238576 13,13.5 C13,13.7454599 12.8231248,13.9496084 12.5898756,13.9919443 L12.5,14 L3.5,14 C3.22385763,14 3,13.7761424 3,13.5 C3,13.2545401 3.17687516,13.0503916 3.41012437,13.0080557 L3.5,13 L12.5,13 L3.5,13 Z M7.91012437,1.00805567 L8,1 C8.24545989,1 8.44960837,1.17687516 8.49194433,1.41012437 L8.5,1.5 L8.5,10.292 L11.1819805,7.6109127 C11.3555469,7.43734635 11.6249713,7.4180612 11.8198394,7.55305725 L11.8890873,7.6109127 C12.0626536,7.78447906 12.0819388,8.05390346 11.9469427,8.2487716 L11.8890873,8.31801948 L8.35355339,11.8535534 C8.17998704,12.0271197 7.91056264,12.0464049 7.7156945,11.9114088 L7.64644661,11.8535534 L4.1109127,8.31801948 C3.91565056,8.12275734 3.91565056,7.80617485 4.1109127,7.6109127 C4.28447906,7.43734635 4.55390346,7.4180612 4.7487716,7.55305725 L4.81801948,7.6109127 L7.5,10.292 L7.5,1.5 C7.5,1.25454011 7.67687516,1.05039163 7.91012437,1.00805567 L8,1 L7.91012437,1.00805567 Z`}))))),Wt=T({name:`ResizeSmall`,render(){return c(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 20 20`},c(`g`,{fill:`none`},c(`path`,{d:`M5.5 4A1.5 1.5 0 0 0 4 5.5v1a.5.5 0 0 1-1 0v-1A2.5 2.5 0 0 1 5.5 3h1a.5.5 0 0 1 0 1h-1zM16 5.5A1.5 1.5 0 0 0 14.5 4h-1a.5.5 0 0 1 0-1h1A2.5 2.5 0 0 1 17 5.5v1a.5.5 0 0 1-1 0v-1zm0 9a1.5 1.5 0 0 1-1.5 1.5h-1a.5.5 0 0 0 0 1h1a2.5 2.5 0 0 0 2.5-2.5v-1a.5.5 0 0 0-1 0v1zm-12 0A1.5 1.5 0 0 0 5.5 16h1.25a.5.5 0 0 1 0 1H5.5A2.5 2.5 0 0 1 3 14.5v-1.25a.5.5 0 0 1 1 0v1.25zM8.5 7A1.5 1.5 0 0 0 7 8.5v3A1.5 1.5 0 0 0 8.5 13h3a1.5 1.5 0 0 0 1.5-1.5v-3A1.5 1.5 0 0 0 11.5 7h-3zM8 8.5a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 .5.5v3a.5.5 0 0 1-.5.5h-3a.5.5 0 0 1-.5-.5v-3z`,fill:`currentColor`})))}}),Gt=J(`retry`,()=>c(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 512 512`},c(`path`,{d:`M320,146s24.36-12-64-12A160,160,0,1,0,416,294`,style:`fill: none; stroke: currentcolor; stroke-linecap: round; stroke-miterlimit: 10; stroke-width: 32px;`}),c(`polyline`,{points:`256 58 336 138 256 218`,style:`fill: none; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 32px;`}))),Kt=J(`rotateClockwise`,()=>c(`svg`,{viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},c(`path`,{d:`M3 10C3 6.13401 6.13401 3 10 3C13.866 3 17 6.13401 17 10C17 12.7916 15.3658 15.2026 13 16.3265V14.5C13 14.2239 12.7761 14 12.5 14C12.2239 14 12 14.2239 12 14.5V17.5C12 17.7761 12.2239 18 12.5 18H15.5C15.7761 18 16 17.7761 16 17.5C16 17.2239 15.7761 17 15.5 17H13.8758C16.3346 15.6357 18 13.0128 18 10C18 5.58172 14.4183 2 10 2C5.58172 2 2 5.58172 2 10C2 10.2761 2.22386 10.5 2.5 10.5C2.77614 10.5 3 10.2761 3 10Z`,fill:`currentColor`}),c(`path`,{d:`M10 12C11.1046 12 12 11.1046 12 10C12 8.89543 11.1046 8 10 8C8.89543 8 8 8.89543 8 10C8 11.1046 8.89543 12 10 12ZM10 11C9.44772 11 9 10.5523 9 10C9 9.44772 9.44772 9 10 9C10.5523 9 11 9.44772 11 10C11 10.5523 10.5523 11 10 11Z`,fill:`currentColor`}))),qt=J(`rotateClockwise`,()=>c(`svg`,{viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},c(`path`,{d:`M17 10C17 6.13401 13.866 3 10 3C6.13401 3 3 6.13401 3 10C3 12.7916 4.63419 15.2026 7 16.3265V14.5C7 14.2239 7.22386 14 7.5 14C7.77614 14 8 14.2239 8 14.5V17.5C8 17.7761 7.77614 18 7.5 18H4.5C4.22386 18 4 17.7761 4 17.5C4 17.2239 4.22386 17 4.5 17H6.12422C3.66539 15.6357 2 13.0128 2 10C2 5.58172 5.58172 2 10 2C14.4183 2 18 5.58172 18 10C18 10.2761 17.7761 10.5 17.5 10.5C17.2239 10.5 17 10.2761 17 10Z`,fill:`currentColor`}),c(`path`,{d:`M10 12C8.89543 12 8 11.1046 8 10C8 8.89543 8.89543 8 10 8C11.1046 8 12 8.89543 12 10C12 11.1046 11.1046 12 10 12ZM10 11C10.5523 11 11 10.5523 11 10C11 9.44772 10.5523 9 10 9C9.44772 9 9 9.44772 9 10C9 10.5523 9.44772 11 10 11Z`,fill:`currentColor`}))),Jt=J(`trash`,()=>c(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 512 512`},c(`path`,{d:`M432,144,403.33,419.74A32,32,0,0,1,371.55,448H140.46a32,32,0,0,1-31.78-28.26L80,144`,style:`fill: none; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 32px;`}),c(`rect`,{x:`32`,y:`64`,width:`448`,height:`80`,rx:`16`,ry:`16`,style:`fill: none; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 32px;`}),c(`line`,{x1:`312`,y1:`240`,x2:`200`,y2:`352`,style:`fill: none; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 32px;`}),c(`line`,{x1:`312`,y1:`352`,x2:`200`,y2:`240`,style:`fill: none; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 32px;`}))),Yt=J(`zoomIn`,()=>c(`svg`,{viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},c(`path`,{d:`M11.5 8.5C11.5 8.22386 11.2761 8 11 8H9V6C9 5.72386 8.77614 5.5 8.5 5.5C8.22386 5.5 8 5.72386 8 6V8H6C5.72386 8 5.5 8.22386 5.5 8.5C5.5 8.77614 5.72386 9 6 9H8V11C8 11.2761 8.22386 11.5 8.5 11.5C8.77614 11.5 9 11.2761 9 11V9H11C11.2761 9 11.5 8.77614 11.5 8.5Z`,fill:`currentColor`}),c(`path`,{d:`M8.5 3C11.5376 3 14 5.46243 14 8.5C14 9.83879 13.5217 11.0659 12.7266 12.0196L16.8536 16.1464C17.0488 16.3417 17.0488 16.6583 16.8536 16.8536C16.68 17.0271 16.4106 17.0464 16.2157 16.9114L16.1464 16.8536L12.0196 12.7266C11.0659 13.5217 9.83879 14 8.5 14C5.46243 14 3 11.5376 3 8.5C3 5.46243 5.46243 3 8.5 3ZM8.5 4C6.01472 4 4 6.01472 4 8.5C4 10.9853 6.01472 13 8.5 13C10.9853 13 13 10.9853 13 8.5C13 6.01472 10.9853 4 8.5 4Z`,fill:`currentColor`}))),Xt=J(`zoomOut`,()=>c(`svg`,{viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},c(`path`,{d:`M11 8C11.2761 8 11.5 8.22386 11.5 8.5C11.5 8.77614 11.2761 9 11 9H6C5.72386 9 5.5 8.77614 5.5 8.5C5.5 8.22386 5.72386 8 6 8H11Z`,fill:`currentColor`}),c(`path`,{d:`M14 8.5C14 5.46243 11.5376 3 8.5 3C5.46243 3 3 5.46243 3 8.5C3 11.5376 5.46243 14 8.5 14C9.83879 14 11.0659 13.5217 12.0196 12.7266L16.1464 16.8536L16.2157 16.9114C16.4106 17.0464 16.68 17.0271 16.8536 16.8536C17.0488 16.6583 17.0488 16.3417 16.8536 16.1464L12.7266 12.0196C13.5217 11.0659 14 9.83879 14 8.5ZM4 8.5C4 6.01472 6.01472 4 8.5 4C10.9853 4 13 6.01472 13 8.5C13 10.9853 10.9853 13 8.5 13C6.01472 13 4 10.9853 4 8.5Z`,fill:`currentColor`}))),Zt=I&&`loading`in document.createElement(`img`);function Qt(e={}){let{root:t=null}=e;return{hash:`${e.rootMargin||`0px 0px 0px 0px`}-${Array.isArray(e.threshold)?e.threshold.join(`,`):e.threshold??`0`}`,options:Object.assign(Object.assign({},e),{root:(typeof t==`string`?document.querySelector(t):t)||document.documentElement})}}var $t=new WeakMap,en=new WeakMap,tn=new WeakMap,nn=(e,t,n)=>{if(!e)return()=>{};let r=Qt(t),{root:i}=r.options,a,o=$t.get(i);o?a=o:(a=new Map,$t.set(i,a));let s,c;a.has(r.hash)?(c=a.get(r.hash),c[1].has(e)||(s=c[0],c[1].add(e),s.observe(e))):(s=new IntersectionObserver(e=>{e.forEach(e=>{if(e.isIntersecting){let t=en.get(e.target),n=tn.get(e.target);t&&t(),n&&(n.value=!0)}})},r.options),s.observe(e),c=[s,new Set([e])],a.set(r.hash,c));let l=!1,u=()=>{l||(en.delete(e),tn.delete(e),l=!0,c[1].has(e)&&(c[0].unobserve(e),c[1].delete(e)),c[1].size<=0&&a.delete(r.hash),a.size||$t.delete(i))};return en.set(e,u),tn.set(e,n),u};function rn(){return{toolbarIconColor:`rgba(255, 255, 255, .9)`,toolbarColor:`rgba(0, 0, 0, .35)`,toolbarBoxShadow:`none`,toolbarBorderRadius:`24px`}}var an=ue({name:`Image`,common:se,peers:{Tooltip:Re},self:rn});function on(){return c(`svg`,{viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},c(`path`,{d:`M6 5C5.75454 5 5.55039 5.17688 5.50806 5.41012L5.5 5.5V14.5C5.5 14.7761 5.72386 15 6 15C6.24546 15 6.44961 14.8231 6.49194 14.5899L6.5 14.5V5.5C6.5 5.22386 6.27614 5 6 5ZM13.8536 5.14645C13.68 4.97288 13.4106 4.9536 13.2157 5.08859L13.1464 5.14645L8.64645 9.64645C8.47288 9.82001 8.4536 10.0894 8.58859 10.2843L8.64645 10.3536L13.1464 14.8536C13.3417 15.0488 13.6583 15.0488 13.8536 14.8536C14.0271 14.68 14.0464 14.4106 13.9114 14.2157L13.8536 14.1464L9.70711 10L13.8536 5.85355C14.0488 5.65829 14.0488 5.34171 13.8536 5.14645Z`,fill:`currentColor`}))}function sn(){return c(`svg`,{viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},c(`path`,{d:`M13.5 5C13.7455 5 13.9496 5.17688 13.9919 5.41012L14 5.5V14.5C14 14.7761 13.7761 15 13.5 15C13.2545 15 13.0504 14.8231 13.0081 14.5899L13 14.5V5.5C13 5.22386 13.2239 5 13.5 5ZM5.64645 5.14645C5.82001 4.97288 6.08944 4.9536 6.28431 5.08859L6.35355 5.14645L10.8536 9.64645C11.0271 9.82001 11.0464 10.0894 10.9114 10.2843L10.8536 10.3536L6.35355 14.8536C6.15829 15.0488 5.84171 15.0488 5.64645 14.8536C5.47288 14.68 5.4536 14.4106 5.58859 14.2157L5.64645 14.1464L9.79289 10L5.64645 5.85355C5.45118 5.65829 5.45118 5.34171 5.64645 5.14645Z`,fill:`currentColor`}))}function cn(){return c(`svg`,{viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},c(`path`,{d:`M4.089 4.216l.057-.07a.5.5 0 0 1 .638-.057l.07.057L10 9.293l5.146-5.147a.5.5 0 0 1 .638-.057l.07.057a.5.5 0 0 1 .057.638l-.057.07L10.707 10l5.147 5.146a.5.5 0 0 1 .057.638l-.057.07a.5.5 0 0 1-.638.057l-.07-.057L10 10.707l-5.146 5.147a.5.5 0 0 1-.638.057l-.07-.057a.5.5 0 0 1-.057-.638l.057-.07L9.293 10L4.146 4.854a.5.5 0 0 1-.057-.638l.057-.07l-.057.07z`,fill:`currentColor`}))}var ln=Object.assign(Object.assign({},B.props),{onPreviewPrev:Function,onPreviewNext:Function,showToolbar:{type:Boolean,default:!0},showToolbarTooltip:Boolean,renderToolbar:Function}),un=P(`n-image`),dn=W([W(`body >`,[V(`image-container`,`position: fixed;`)]),V(`image-preview-container`,`
|
|
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,N as c,Q as l,R as u,T as d,U as f,V as p,X as m,Z as h,b as g,ct as _,d as v,dt as y,ft as b,g as x,gt as S,h as C,ht as w,j as T,k as E,mt as D,pt as O,q as k,w as A,y as j}from"./router-Dj-Nmg7q.js";import{r as M,t as N}from"./_plugin-vue_export-helper-Cnn0Z73x.js";import{$ as P,B as F,J as ee,Q as I,R as te,W as ne,X as L,Y as R,_t as z,a as re,c as B,ct as V,d as ie,dt as H,et as ae,ft as oe,n as se,o as ce,pt as le,q as U,s as ue,st as W,tt as de,ut as G,z as fe}from"./browser-CQRjhbaB.js";import{F as K,I as pe,_ as me,b as he,m as q,o as ge}from"./Popover-mIRPCy7U.js";import{d as _e,f as ve,p as ye,s as be}from"./Suffix-DgzfIwzx.js";import{i as xe,n as J,r as Y,t as Se}from"./fade-in.cssr-lwO9nLky.js";import{d as Ce,f as we,p as Te,t as Ee}from"./Modal-C5-Iw50K.js";import{n as De,t as Oe}from"./FormItem-CvZvjrtr.js";import{a as ke,t as X}from"./Button-EoeZgIFH.js";import{t as Ae}from"./Warning-CXXqHzLa.js";import{t as je}from"./Add-Cc7cgBoB.js";import{i as Me,t as Ne}from"./Input-Bk7XdoG-.js";import{t as Pe}from"./Tag-B2zrHMmZ.js";import{a as Fe,n as Ie,r as Le}from"./light-Dx6qj2pM.js";import{t as Re}from"./light-DgIst23O.js";import{t as ze}from"./Tooltip-9tdvSKGi.js";import{t as Be}from"./composables-ClIU-Ad1.js";import{t as Ve}from"./use-message-BgToAqhv.js";import{t as He}from"./Switch--HhY1uSh.js";import{t as Ue}from"./Spin-ChbFBUOD.js";import{t as Z}from"./profiles-CNTHYFZE.js";function We(e,t){if(!e)return;let n=document.createElement(`a`);n.href=e,t!==void 0&&(n.download=t),document.body.appendChild(n),n.click(),document.body.removeChild(n)}function Ge(e,t,n,r){var i=-1,a=e==null?0:e.length;for(r&&a&&(n=e[++i]);++i<a;)n=t(n,e[i],i,e);return n}function Ke(e){return function(t){return e?.[t]}}var qe=Ke({À:`A`,Á:`A`,Â:`A`,Ã:`A`,Ä:`A`,Å:`A`,à:`a`,á:`a`,â:`a`,ã:`a`,ä:`a`,å:`a`,Ç:`C`,ç:`c`,Ð:`D`,ð:`d`,È:`E`,É:`E`,Ê:`E`,Ë:`E`,è:`e`,é:`e`,ê:`e`,ë:`e`,Ì:`I`,Í:`I`,Î:`I`,Ï:`I`,ì:`i`,í:`i`,î:`i`,ï:`i`,Ñ:`N`,ñ:`n`,Ò:`O`,Ó:`O`,Ô:`O`,Õ:`O`,Ö:`O`,Ø:`O`,ò:`o`,ó:`o`,ô:`o`,õ:`o`,ö:`o`,ø:`o`,Ù:`U`,Ú:`U`,Û:`U`,Ü:`U`,ù:`u`,ú:`u`,û:`u`,ü:`u`,Ý:`Y`,ý:`y`,ÿ:`y`,Æ:`Ae`,æ:`ae`,Þ:`Th`,þ:`th`,ß:`ss`,Ā:`A`,Ă:`A`,Ą:`A`,ā:`a`,ă:`a`,ą:`a`,Ć:`C`,Ĉ:`C`,Ċ:`C`,Č:`C`,ć:`c`,ĉ:`c`,ċ:`c`,č:`c`,Ď:`D`,Đ:`D`,ď:`d`,đ:`d`,Ē:`E`,Ĕ:`E`,Ė:`E`,Ę:`E`,Ě:`E`,ē:`e`,ĕ:`e`,ė:`e`,ę:`e`,ě:`e`,Ĝ:`G`,Ğ:`G`,Ġ:`G`,Ģ:`G`,ĝ:`g`,ğ:`g`,ġ:`g`,ģ:`g`,Ĥ:`H`,Ħ:`H`,ĥ:`h`,ħ:`h`,Ĩ:`I`,Ī:`I`,Ĭ:`I`,Į:`I`,İ:`I`,ĩ:`i`,ī:`i`,ĭ:`i`,į:`i`,ı:`i`,Ĵ:`J`,ĵ:`j`,Ķ:`K`,ķ:`k`,ĸ:`k`,Ĺ:`L`,Ļ:`L`,Ľ:`L`,Ŀ:`L`,Ł:`L`,ĺ:`l`,ļ:`l`,ľ:`l`,ŀ:`l`,ł:`l`,Ń:`N`,Ņ:`N`,Ň:`N`,Ŋ:`N`,ń:`n`,ņ:`n`,ň:`n`,ŋ:`n`,Ō:`O`,Ŏ:`O`,Ő:`O`,ō:`o`,ŏ:`o`,ő:`o`,Ŕ:`R`,Ŗ:`R`,Ř:`R`,ŕ:`r`,ŗ:`r`,ř:`r`,Ś:`S`,Ŝ:`S`,Ş:`S`,Š:`S`,ś:`s`,ŝ:`s`,ş:`s`,š:`s`,Ţ:`T`,Ť:`T`,Ŧ:`T`,ţ:`t`,ť:`t`,ŧ:`t`,Ũ:`U`,Ū:`U`,Ŭ:`U`,Ů:`U`,Ű:`U`,Ų:`U`,ũ:`u`,ū:`u`,ŭ:`u`,ů:`u`,ű:`u`,ų:`u`,Ŵ:`W`,ŵ:`w`,Ŷ:`Y`,ŷ:`y`,Ÿ:`Y`,Ź:`Z`,Ż:`Z`,Ž:`Z`,ź:`z`,ż:`z`,ž:`z`,IJ:`IJ`,ij:`ij`,Œ:`Oe`,œ:`oe`,ʼn:`'n`,ſ:`s`}),Je=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Ye=RegExp(`[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]`,`g`);function Xe(e){return e=xe(e),e&&e.replace(Je,qe).replace(Ye,``)}var Ze=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function Qe(e){return e.match(Ze)||[]}var $e=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function et(e){return $e.test(e)}var tt=`\\ud800-\\udfff`,nt=`\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff`,rt=`\\u2700-\\u27bf`,it=`a-z\\xdf-\\xf6\\xf8-\\xff`,at=`\\xac\\xb1\\xd7\\xf7`,ot=`\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf`,st=`\\u2000-\\u206f`,ct=` \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000`,lt=`A-Z\\xc0-\\xd6\\xd8-\\xde`,ut=`\\ufe0e\\ufe0f`,dt=at+ot+st+ct,ft=`['’]`,pt=`[`+dt+`]`,mt=`[`+nt+`]`,ht=`\\d+`,gt=`[`+rt+`]`,_t=`[`+it+`]`,vt=`[^`+tt+dt+ht+rt+it+lt+`]`,yt=`(?:`+mt+`|\\ud83c[\\udffb-\\udfff])`,bt=`[^`+tt+`]`,xt=`(?:\\ud83c[\\udde6-\\uddff]){2}`,St=`[\\ud800-\\udbff][\\udc00-\\udfff]`,Q=`[`+lt+`]`,Ct=`\\u200d`,wt=`(?:`+_t+`|`+vt+`)`,Tt=`(?:`+Q+`|`+vt+`)`,Et=`(?:`+ft+`(?:d|ll|m|re|s|t|ve))?`,Dt=`(?:`+ft+`(?:D|LL|M|RE|S|T|VE))?`,Ot=yt+`?`,kt=`[`+ut+`]?`,At=`(?:`+Ct+`(?:`+[bt,xt,St].join(`|`)+`)`+kt+Ot+`)*`,jt=`\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])`,Mt=`\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])`,Nt=kt+Ot+At,Pt=`(?:`+[gt,xt,St].join(`|`)+`)`+Nt,Ft=RegExp([Q+`?`+_t+`+`+Et+`(?=`+[pt,Q,`$`].join(`|`)+`)`,Tt+`+`+Dt+`(?=`+[pt,Q+wt,`$`].join(`|`)+`)`,Q+`?`+wt+`+`+Et,Q+`+`+Dt,Mt,jt,ht,Pt].join(`|`),`g`);function It(e){return e.match(Ft)||[]}function Lt(e,t,n){return e=xe(e),t=n?void 0:t,t===void 0?et(e)?It(e):Qe(e):e.match(t)||[]}var Rt=RegExp(`['’]`,`g`);function zt(e){return function(t){return Ge(Lt(Xe(t).replace(Rt,``)),e,``)}}var Bt=zt(function(e,t,n){return e+(n?`-`:``)+t.toLowerCase()}),Vt=J(`attach`,()=>c(`svg`,{viewBox:`0 0 16 16`,version:`1.1`,xmlns:`http://www.w3.org/2000/svg`},c(`g`,{stroke:`none`,"stroke-width":`1`,fill:`none`,"fill-rule":`evenodd`},c(`g`,{fill:`currentColor`,"fill-rule":`nonzero`},c(`path`,{d:`M3.25735931,8.70710678 L7.85355339,4.1109127 C8.82986412,3.13460197 10.4127766,3.13460197 11.3890873,4.1109127 C12.365398,5.08722343 12.365398,6.67013588 11.3890873,7.64644661 L6.08578644,12.9497475 C5.69526215,13.3402718 5.06209717,13.3402718 4.67157288,12.9497475 C4.28104858,12.5592232 4.28104858,11.9260582 4.67157288,11.5355339 L9.97487373,6.23223305 C10.1701359,6.0369709 10.1701359,5.72038841 9.97487373,5.52512627 C9.77961159,5.32986412 9.4630291,5.32986412 9.26776695,5.52512627 L3.96446609,10.8284271 C3.18341751,11.6094757 3.18341751,12.8758057 3.96446609,13.6568542 C4.74551468,14.4379028 6.01184464,14.4379028 6.79289322,13.6568542 L12.0961941,8.35355339 C13.4630291,6.98671837 13.4630291,4.77064094 12.0961941,3.40380592 C10.7293591,2.0369709 8.51328163,2.0369709 7.14644661,3.40380592 L2.55025253,8 C2.35499039,8.19526215 2.35499039,8.51184464 2.55025253,8.70710678 C2.74551468,8.90236893 3.06209717,8.90236893 3.25735931,8.70710678 Z`}))))),Ht=J(`cancel`,()=>c(`svg`,{viewBox:`0 0 16 16`,version:`1.1`,xmlns:`http://www.w3.org/2000/svg`},c(`g`,{stroke:`none`,"stroke-width":`1`,fill:`none`,"fill-rule":`evenodd`},c(`g`,{fill:`currentColor`,"fill-rule":`nonzero`},c(`path`,{d:`M2.58859116,2.7156945 L2.64644661,2.64644661 C2.82001296,2.47288026 3.08943736,2.45359511 3.2843055,2.58859116 L3.35355339,2.64644661 L8,7.293 L12.6464466,2.64644661 C12.8417088,2.45118446 13.1582912,2.45118446 13.3535534,2.64644661 C13.5488155,2.84170876 13.5488155,3.15829124 13.3535534,3.35355339 L8.707,8 L13.3535534,12.6464466 C13.5271197,12.820013 13.5464049,13.0894374 13.4114088,13.2843055 L13.3535534,13.3535534 C13.179987,13.5271197 12.9105626,13.5464049 12.7156945,13.4114088 L12.6464466,13.3535534 L8,8.707 L3.35355339,13.3535534 C3.15829124,13.5488155 2.84170876,13.5488155 2.64644661,13.3535534 C2.45118446,13.1582912 2.45118446,12.8417088 2.64644661,12.6464466 L7.293,8 L2.64644661,3.35355339 C2.47288026,3.17998704 2.45359511,2.91056264 2.58859116,2.7156945 L2.64644661,2.64644661 L2.58859116,2.7156945 Z`}))))),Ut=J(`download`,()=>c(`svg`,{viewBox:`0 0 16 16`,version:`1.1`,xmlns:`http://www.w3.org/2000/svg`},c(`g`,{stroke:`none`,"stroke-width":`1`,fill:`none`,"fill-rule":`evenodd`},c(`g`,{fill:`currentColor`,"fill-rule":`nonzero`},c(`path`,{d:`M3.5,13 L12.5,13 C12.7761424,13 13,13.2238576 13,13.5 C13,13.7454599 12.8231248,13.9496084 12.5898756,13.9919443 L12.5,14 L3.5,14 C3.22385763,14 3,13.7761424 3,13.5 C3,13.2545401 3.17687516,13.0503916 3.41012437,13.0080557 L3.5,13 L12.5,13 L3.5,13 Z M7.91012437,1.00805567 L8,1 C8.24545989,1 8.44960837,1.17687516 8.49194433,1.41012437 L8.5,1.5 L8.5,10.292 L11.1819805,7.6109127 C11.3555469,7.43734635 11.6249713,7.4180612 11.8198394,7.55305725 L11.8890873,7.6109127 C12.0626536,7.78447906 12.0819388,8.05390346 11.9469427,8.2487716 L11.8890873,8.31801948 L8.35355339,11.8535534 C8.17998704,12.0271197 7.91056264,12.0464049 7.7156945,11.9114088 L7.64644661,11.8535534 L4.1109127,8.31801948 C3.91565056,8.12275734 3.91565056,7.80617485 4.1109127,7.6109127 C4.28447906,7.43734635 4.55390346,7.4180612 4.7487716,7.55305725 L4.81801948,7.6109127 L7.5,10.292 L7.5,1.5 C7.5,1.25454011 7.67687516,1.05039163 7.91012437,1.00805567 L8,1 L7.91012437,1.00805567 Z`}))))),Wt=T({name:`ResizeSmall`,render(){return c(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 20 20`},c(`g`,{fill:`none`},c(`path`,{d:`M5.5 4A1.5 1.5 0 0 0 4 5.5v1a.5.5 0 0 1-1 0v-1A2.5 2.5 0 0 1 5.5 3h1a.5.5 0 0 1 0 1h-1zM16 5.5A1.5 1.5 0 0 0 14.5 4h-1a.5.5 0 0 1 0-1h1A2.5 2.5 0 0 1 17 5.5v1a.5.5 0 0 1-1 0v-1zm0 9a1.5 1.5 0 0 1-1.5 1.5h-1a.5.5 0 0 0 0 1h1a2.5 2.5 0 0 0 2.5-2.5v-1a.5.5 0 0 0-1 0v1zm-12 0A1.5 1.5 0 0 0 5.5 16h1.25a.5.5 0 0 1 0 1H5.5A2.5 2.5 0 0 1 3 14.5v-1.25a.5.5 0 0 1 1 0v1.25zM8.5 7A1.5 1.5 0 0 0 7 8.5v3A1.5 1.5 0 0 0 8.5 13h3a1.5 1.5 0 0 0 1.5-1.5v-3A1.5 1.5 0 0 0 11.5 7h-3zM8 8.5a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 .5.5v3a.5.5 0 0 1-.5.5h-3a.5.5 0 0 1-.5-.5v-3z`,fill:`currentColor`})))}}),Gt=J(`retry`,()=>c(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 512 512`},c(`path`,{d:`M320,146s24.36-12-64-12A160,160,0,1,0,416,294`,style:`fill: none; stroke: currentcolor; stroke-linecap: round; stroke-miterlimit: 10; stroke-width: 32px;`}),c(`polyline`,{points:`256 58 336 138 256 218`,style:`fill: none; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 32px;`}))),Kt=J(`rotateClockwise`,()=>c(`svg`,{viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},c(`path`,{d:`M3 10C3 6.13401 6.13401 3 10 3C13.866 3 17 6.13401 17 10C17 12.7916 15.3658 15.2026 13 16.3265V14.5C13 14.2239 12.7761 14 12.5 14C12.2239 14 12 14.2239 12 14.5V17.5C12 17.7761 12.2239 18 12.5 18H15.5C15.7761 18 16 17.7761 16 17.5C16 17.2239 15.7761 17 15.5 17H13.8758C16.3346 15.6357 18 13.0128 18 10C18 5.58172 14.4183 2 10 2C5.58172 2 2 5.58172 2 10C2 10.2761 2.22386 10.5 2.5 10.5C2.77614 10.5 3 10.2761 3 10Z`,fill:`currentColor`}),c(`path`,{d:`M10 12C11.1046 12 12 11.1046 12 10C12 8.89543 11.1046 8 10 8C8.89543 8 8 8.89543 8 10C8 11.1046 8.89543 12 10 12ZM10 11C9.44772 11 9 10.5523 9 10C9 9.44772 9.44772 9 10 9C10.5523 9 11 9.44772 11 10C11 10.5523 10.5523 11 10 11Z`,fill:`currentColor`}))),qt=J(`rotateClockwise`,()=>c(`svg`,{viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},c(`path`,{d:`M17 10C17 6.13401 13.866 3 10 3C6.13401 3 3 6.13401 3 10C3 12.7916 4.63419 15.2026 7 16.3265V14.5C7 14.2239 7.22386 14 7.5 14C7.77614 14 8 14.2239 8 14.5V17.5C8 17.7761 7.77614 18 7.5 18H4.5C4.22386 18 4 17.7761 4 17.5C4 17.2239 4.22386 17 4.5 17H6.12422C3.66539 15.6357 2 13.0128 2 10C2 5.58172 5.58172 2 10 2C14.4183 2 18 5.58172 18 10C18 10.2761 17.7761 10.5 17.5 10.5C17.2239 10.5 17 10.2761 17 10Z`,fill:`currentColor`}),c(`path`,{d:`M10 12C8.89543 12 8 11.1046 8 10C8 8.89543 8.89543 8 10 8C11.1046 8 12 8.89543 12 10C12 11.1046 11.1046 12 10 12ZM10 11C10.5523 11 11 10.5523 11 10C11 9.44772 10.5523 9 10 9C9.44772 9 9 9.44772 9 10C9 10.5523 9.44772 11 10 11Z`,fill:`currentColor`}))),Jt=J(`trash`,()=>c(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 512 512`},c(`path`,{d:`M432,144,403.33,419.74A32,32,0,0,1,371.55,448H140.46a32,32,0,0,1-31.78-28.26L80,144`,style:`fill: none; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 32px;`}),c(`rect`,{x:`32`,y:`64`,width:`448`,height:`80`,rx:`16`,ry:`16`,style:`fill: none; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 32px;`}),c(`line`,{x1:`312`,y1:`240`,x2:`200`,y2:`352`,style:`fill: none; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 32px;`}),c(`line`,{x1:`312`,y1:`352`,x2:`200`,y2:`240`,style:`fill: none; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 32px;`}))),Yt=J(`zoomIn`,()=>c(`svg`,{viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},c(`path`,{d:`M11.5 8.5C11.5 8.22386 11.2761 8 11 8H9V6C9 5.72386 8.77614 5.5 8.5 5.5C8.22386 5.5 8 5.72386 8 6V8H6C5.72386 8 5.5 8.22386 5.5 8.5C5.5 8.77614 5.72386 9 6 9H8V11C8 11.2761 8.22386 11.5 8.5 11.5C8.77614 11.5 9 11.2761 9 11V9H11C11.2761 9 11.5 8.77614 11.5 8.5Z`,fill:`currentColor`}),c(`path`,{d:`M8.5 3C11.5376 3 14 5.46243 14 8.5C14 9.83879 13.5217 11.0659 12.7266 12.0196L16.8536 16.1464C17.0488 16.3417 17.0488 16.6583 16.8536 16.8536C16.68 17.0271 16.4106 17.0464 16.2157 16.9114L16.1464 16.8536L12.0196 12.7266C11.0659 13.5217 9.83879 14 8.5 14C5.46243 14 3 11.5376 3 8.5C3 5.46243 5.46243 3 8.5 3ZM8.5 4C6.01472 4 4 6.01472 4 8.5C4 10.9853 6.01472 13 8.5 13C10.9853 13 13 10.9853 13 8.5C13 6.01472 10.9853 4 8.5 4Z`,fill:`currentColor`}))),Xt=J(`zoomOut`,()=>c(`svg`,{viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},c(`path`,{d:`M11 8C11.2761 8 11.5 8.22386 11.5 8.5C11.5 8.77614 11.2761 9 11 9H6C5.72386 9 5.5 8.77614 5.5 8.5C5.5 8.22386 5.72386 8 6 8H11Z`,fill:`currentColor`}),c(`path`,{d:`M14 8.5C14 5.46243 11.5376 3 8.5 3C5.46243 3 3 5.46243 3 8.5C3 11.5376 5.46243 14 8.5 14C9.83879 14 11.0659 13.5217 12.0196 12.7266L16.1464 16.8536L16.2157 16.9114C16.4106 17.0464 16.68 17.0271 16.8536 16.8536C17.0488 16.6583 17.0488 16.3417 16.8536 16.1464L12.7266 12.0196C13.5217 11.0659 14 9.83879 14 8.5ZM4 8.5C4 6.01472 6.01472 4 8.5 4C10.9853 4 13 6.01472 13 8.5C13 10.9853 10.9853 13 8.5 13C6.01472 13 4 10.9853 4 8.5Z`,fill:`currentColor`}))),Zt=I&&`loading`in document.createElement(`img`);function Qt(e={}){let{root:t=null}=e;return{hash:`${e.rootMargin||`0px 0px 0px 0px`}-${Array.isArray(e.threshold)?e.threshold.join(`,`):e.threshold??`0`}`,options:Object.assign(Object.assign({},e),{root:(typeof t==`string`?document.querySelector(t):t)||document.documentElement})}}var $t=new WeakMap,en=new WeakMap,tn=new WeakMap,nn=(e,t,n)=>{if(!e)return()=>{};let r=Qt(t),{root:i}=r.options,a,o=$t.get(i);o?a=o:(a=new Map,$t.set(i,a));let s,c;a.has(r.hash)?(c=a.get(r.hash),c[1].has(e)||(s=c[0],c[1].add(e),s.observe(e))):(s=new IntersectionObserver(e=>{e.forEach(e=>{if(e.isIntersecting){let t=en.get(e.target),n=tn.get(e.target);t&&t(),n&&(n.value=!0)}})},r.options),s.observe(e),c=[s,new Set([e])],a.set(r.hash,c));let l=!1,u=()=>{l||(en.delete(e),tn.delete(e),l=!0,c[1].has(e)&&(c[0].unobserve(e),c[1].delete(e)),c[1].size<=0&&a.delete(r.hash),a.size||$t.delete(i))};return en.set(e,u),tn.set(e,n),u};function rn(){return{toolbarIconColor:`rgba(255, 255, 255, .9)`,toolbarColor:`rgba(0, 0, 0, .35)`,toolbarBoxShadow:`none`,toolbarBorderRadius:`24px`}}var an=ue({name:`Image`,common:se,peers:{Tooltip:Re},self:rn});function on(){return c(`svg`,{viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},c(`path`,{d:`M6 5C5.75454 5 5.55039 5.17688 5.50806 5.41012L5.5 5.5V14.5C5.5 14.7761 5.72386 15 6 15C6.24546 15 6.44961 14.8231 6.49194 14.5899L6.5 14.5V5.5C6.5 5.22386 6.27614 5 6 5ZM13.8536 5.14645C13.68 4.97288 13.4106 4.9536 13.2157 5.08859L13.1464 5.14645L8.64645 9.64645C8.47288 9.82001 8.4536 10.0894 8.58859 10.2843L8.64645 10.3536L13.1464 14.8536C13.3417 15.0488 13.6583 15.0488 13.8536 14.8536C14.0271 14.68 14.0464 14.4106 13.9114 14.2157L13.8536 14.1464L9.70711 10L13.8536 5.85355C14.0488 5.65829 14.0488 5.34171 13.8536 5.14645Z`,fill:`currentColor`}))}function sn(){return c(`svg`,{viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},c(`path`,{d:`M13.5 5C13.7455 5 13.9496 5.17688 13.9919 5.41012L14 5.5V14.5C14 14.7761 13.7761 15 13.5 15C13.2545 15 13.0504 14.8231 13.0081 14.5899L13 14.5V5.5C13 5.22386 13.2239 5 13.5 5ZM5.64645 5.14645C5.82001 4.97288 6.08944 4.9536 6.28431 5.08859L6.35355 5.14645L10.8536 9.64645C11.0271 9.82001 11.0464 10.0894 10.9114 10.2843L10.8536 10.3536L6.35355 14.8536C6.15829 15.0488 5.84171 15.0488 5.64645 14.8536C5.47288 14.68 5.4536 14.4106 5.58859 14.2157L5.64645 14.1464L9.79289 10L5.64645 5.85355C5.45118 5.65829 5.45118 5.34171 5.64645 5.14645Z`,fill:`currentColor`}))}function cn(){return c(`svg`,{viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},c(`path`,{d:`M4.089 4.216l.057-.07a.5.5 0 0 1 .638-.057l.07.057L10 9.293l5.146-5.147a.5.5 0 0 1 .638-.057l.07.057a.5.5 0 0 1 .057.638l-.057.07L10.707 10l5.147 5.146a.5.5 0 0 1 .057.638l-.057.07a.5.5 0 0 1-.638.057l-.07-.057L10 10.707l-5.146 5.147a.5.5 0 0 1-.638.057l-.07-.057a.5.5 0 0 1-.057-.638l.057-.07L9.293 10L4.146 4.854a.5.5 0 0 1-.057-.638l.057-.07l-.057.07z`,fill:`currentColor`}))}var ln=Object.assign(Object.assign({},B.props),{onPreviewPrev:Function,onPreviewNext:Function,showToolbar:{type:Boolean,default:!0},showToolbarTooltip:Boolean,renderToolbar:Function}),un=P(`n-image`),dn=W([W(`body >`,[V(`image-container`,`position: fixed;`)]),V(`image-preview-container`,`
|
|
2
2
|
position: fixed;
|
|
3
3
|
left: 0;
|
|
4
4
|
right: 0;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{$ as e,C as t,F as n,H as r,J as i,K as a,L as o,N as s,R as c,U as l,V as u,X as d,Z as f,ct as p,d as m,dt as h,h as g,j as _,y as v,z as y}from"./router-C-NNJUuf.js";import{B as b,K as x,R as S,W as C,Z as w,c as T,ct as E,d as D,dt as O,et as ee,ft as k,n as A,nt as j,pt as M,q as N,r as P,s as F,st as I,tt as L,ut as R,z as te}from"./browser-Djp4tkp3.js";import{A as ne,C as z,I as re,S as B,c as V,g as H,i as U,j as W,o as G,p as K,t as q,v as J,w as ie,x as ae,y as oe}from"./Popover-Cu52vG3D.js";import{n as Y,r as se,t as ce}from"./create-5zWq3BEB.js";import{c as X,d as le,i as ue,l as Z,m as de,n as fe,s as pe,t as me,u as he}from"./Suffix-3xK0KZGt.js";import{c as ge,l as Q,r as _e,s as ve}from"./fade-in.cssr-CIVyTG6A.js";import{n as ye}from"./Close-C9xwy-pW.js";import{t as be}from"./Tag-Dmbj68Ki.js";function xe(e){return e&-e}var Se=class{constructor(e,t){this.l=e,this.min=t;let n=Array(e+1);for(let t=0;t<e+1;++t)n[t]=0;this.ft=n}add(e,t){if(t===0)return;let{l:n,ft:r}=this;for(e+=1;e<=n;)r[e]+=t,e+=xe(e)}get(e){return this.sum(e+1)-this.sum(e)}sum(e){if(e===void 0&&(e=this.l),e<=0)return 0;let{ft:t,min:n,l:r}=this;if(e>r)throw Error("[FinweckTree.sum]: `i` is larger than length.");let i=e*n;for(;e>0;)i+=t[e],e-=xe(e);return i}getBound(e){let t=0,n=this.l;for(;n>t;){let r=Math.floor((t+n)/2),i=this.sum(r);if(i>e){n=r;continue}else if(i<e){if(t===r)return this.sum(t+1)<=e?t+1:r;t=r}else return r}return t}},Ce;function we(){return typeof document>`u`?!1:(Ce===void 0&&(Ce=`matchMedia`in window?window.matchMedia(`(pointer:coarse)`).matches:!1),Ce)}var Te;function Ee(){return typeof document>`u`?1:(Te===void 0&&(Te=`chrome`in window?window.devicePixelRatio:1),Te)}var De=`VVirtualListXScroll`;function Oe({columnsRef:e,renderColRef:n,renderItemWithColsRef:r}){let i=p(0),o=p(0),s=t(()=>{let t=e.value;if(t.length===0)return null;let n=new Se(t.length,0);return t.forEach((e,t)=>{n.add(t,e.width)}),n});return a(De,{startIndexRef:L(()=>{let e=s.value;return e===null?0:Math.max(e.getBound(o.value)-1,0)}),endIndexRef:L(()=>{let t=s.value;return t===null?0:Math.min(t.getBound(o.value+i.value)+1,e.value.length-1)}),columnsRef:e,renderColRef:n,renderItemWithColsRef:r,getLeft:e=>{let t=s.value;return t===null?0:t.sum(e)}}),{listWidthRef:i,scrollLeftRef:o}}var ke=_({name:`VirtualListRow`,props:{index:{type:Number,required:!0},item:{type:Object,required:!0}},setup(){let{startIndexRef:e,endIndexRef:t,columnsRef:r,getLeft:i,renderColRef:a,renderItemWithColsRef:o}=n(De);return{startIndex:e,endIndex:t,columns:r,renderCol:a,renderItemWithCols:o,getLeft:i}},render(){let{startIndex:e,endIndex:t,columns:n,renderCol:r,renderItemWithCols:i,getLeft:a,item:o}=this;if(i!=null)return i({itemIndex:this.index,startColIndex:e,endColIndex:t,allColumns:n,item:o,getLeft:a});if(r!=null){let i=[];for(let s=e;s<=t;++s){let e=n[s];i.push(r({column:e,left:a(s),item:o}))}return i}return null}}),Ae=J(`.v-vl`,{maxHeight:`inherit`,height:`100%`,overflow:`auto`,minWidth:`1px`},[J(`&:not(.v-vl--show-scrollbar)`,{scrollbarWidth:`none`},[J(`&::-webkit-scrollbar, &::-webkit-scrollbar-track-piece, &::-webkit-scrollbar-thumb`,{width:0,height:0,display:`none`})])]),je=_({name:`VirtualList`,inheritAttrs:!1,props:{showScrollbar:{type:Boolean,default:!0},columns:{type:Array,default:()=>[]},renderCol:Function,renderItemWithCols:Function,items:{type:Array,default:()=>[]},itemSize:{type:Number,required:!0},itemResizable:Boolean,itemsStyle:[String,Object],visibleItemsTag:{type:[String,Object],default:`div`},visibleItemsProps:Object,ignoreItemResize:Boolean,onScroll:Function,onWheel:Function,onResize:Function,defaultScrollKey:[Number,String],defaultScrollIndex:Number,keyField:{type:String,default:`key`},paddingTop:{type:[Number,String],default:0},paddingBottom:{type:[Number,String],default:0}},setup(e){let n=w();Ae.mount({id:`vueuc/virtual-list`,head:!0,anchorMetaName:oe,ssr:n}),l(()=>{let{defaultScrollIndex:t,defaultScrollKey:n}=e;t==null?n!=null&&S({key:n}):S({index:t})});let i=!1,a=!1;y(()=>{if(i=!1,!a){a=!0;return}S({top:v.value,left:c.value})}),r(()=>{i=!0,a||=!0});let o=L(()=>{if(e.renderCol==null&&e.renderItemWithCols==null||e.columns.length===0)return;let t=0;return e.columns.forEach(e=>{t+=e.width}),t}),s=t(()=>{let t=new Map,{keyField:n}=e;return e.items.forEach((e,r)=>{t.set(e[n],r)}),t}),{scrollLeftRef:c,listWidthRef:u}=Oe({columnsRef:h(e,`columns`),renderColRef:h(e,`renderCol`),renderItemWithColsRef:h(e,`renderItemWithCols`)}),d=p(null),f=p(void 0),m=new Map,g=t(()=>{let{items:t,itemSize:n,keyField:r}=e,i=new Se(t.length,n);return t.forEach((e,t)=>{let n=e[r],a=m.get(n);a!==void 0&&i.add(t,a)}),i}),_=p(0),v=p(0),b=L(()=>Math.max(g.value.getBound(v.value-ve(e.paddingTop))-1,0)),x=t(()=>{let{value:t}=f;if(t===void 0)return[];let{items:n,itemSize:r}=e,i=b.value,a=Math.min(i+Math.ceil(t/r+1),n.length-1),o=[];for(let e=i;e<=a;++e)o.push(n[e]);return o}),S=(e,t)=>{if(typeof e==`number`){D(e,t,`auto`);return}let{left:n,top:r,index:i,key:a,position:o,behavior:c,debounce:l=!0}=e;if(n!==void 0||r!==void 0)D(n,r,c);else if(i!==void 0)E(i,c,l);else if(a!==void 0){let e=s.value.get(a);e!==void 0&&E(e,c,l)}else o===`bottom`?D(0,2**53-1,c):o===`top`&&D(0,0,c)},C,T=null;function E(t,n,r){let{value:i}=g,a=i.sum(t)+ve(e.paddingTop);if(!r)d.value.scrollTo({left:0,top:a,behavior:n});else{C=t,T!==null&&window.clearTimeout(T),T=window.setTimeout(()=>{C=void 0,T=null},16);let{scrollTop:e,offsetHeight:r}=d.value;if(a>e){let o=i.get(t);a+o<=e+r||d.value.scrollTo({left:0,top:a+o-r,behavior:n})}else d.value.scrollTo({left:0,top:a,behavior:n})}}function D(e,t,n){d.value.scrollTo({left:e,top:t,behavior:n})}function O(t,n){if(i||e.ignoreItemResize||P(n.target))return;let{value:r}=g,a=s.value.get(t),o=r.get(a),c=n.borderBoxSize?.[0]?.blockSize??n.contentRect.height;if(c===o)return;c-e.itemSize===0?m.delete(t):m.set(t,c-e.itemSize);let l=c-o;if(l===0)return;r.add(a,l);let u=d.value;if(u!=null){if(C===void 0){let e=r.sum(a);u.scrollTop>e&&u.scrollBy(0,l)}else (a<C||a===C&&c+r.sum(a)>u.scrollTop+u.offsetHeight)&&u.scrollBy(0,l);N()}_.value++}let ee=!we(),k=!1;function A(t){var n;(n=e.onScroll)==null||n.call(e,t),(!ee||!k)&&N()}function j(t){var n;if((n=e.onWheel)==null||n.call(e,t),ee){let e=d.value;if(e!=null){if(t.deltaX===0&&(e.scrollTop===0&&t.deltaY<=0||e.scrollTop+e.offsetHeight>=e.scrollHeight&&t.deltaY>=0))return;t.preventDefault(),e.scrollTop+=t.deltaY/Ee(),e.scrollLeft+=t.deltaX/Ee(),N(),k=!0,re(()=>{k=!1})}}}function M(t){if(i||P(t.target))return;if(e.renderCol==null&&e.renderItemWithCols==null){if(t.contentRect.height===f.value)return}else if(t.contentRect.height===f.value&&t.contentRect.width===u.value)return;f.value=t.contentRect.height,u.value=t.contentRect.width;let{onResize:n}=e;n!==void 0&&n(t)}function N(){let{value:e}=d;e!=null&&(v.value=e.scrollTop,c.value=e.scrollLeft)}function P(e){let t=e;for(;t!==null;){if(t.style.display===`none`)return!0;t=t.parentElement}return!1}return{listHeight:f,listStyle:{overflow:`auto`},keyToIndex:s,itemsStyle:t(()=>{let{itemResizable:t}=e,n=Q(g.value.sum());return _.value,[e.itemsStyle,{boxSizing:`content-box`,width:Q(o.value),height:t?``:n,minHeight:t?n:``,paddingTop:Q(e.paddingTop),paddingBottom:Q(e.paddingBottom)}]}),visibleItemsStyle:t(()=>(_.value,{transform:`translateY(${Q(g.value.sum(b.value))})`})),viewportItems:x,listElRef:d,itemsElRef:p(null),scrollTo:S,handleListResize:M,handleListScroll:A,handleListWheel:j,handleItemResize:O}},render(){let{itemResizable:e,keyField:t,keyToIndex:n,visibleItemsTag:r}=this;return s(Z,{onResize:this.handleListResize},{default:()=>{var i;return s(`div`,o(this.$attrs,{class:[`v-vl`,this.showScrollbar&&`v-vl--show-scrollbar`],onScroll:this.handleListScroll,onWheel:this.handleListWheel,ref:`listElRef`}),[this.items.length===0?(i=this.$slots).empty?.call(i):s(`div`,{ref:`itemsElRef`,class:`v-vl-items`,style:this.itemsStyle},[s(r,Object.assign({class:`v-vl-visible-items`,style:this.visibleItemsStyle},this.visibleItemsProps),{default:()=>{let{renderCol:r,renderItemWithCols:i}=this;return this.viewportItems.map(a=>{let o=a[t],c=n.get(o),l=r==null?void 0:s(ke,{index:c,item:a}),u=i==null?void 0:s(ke,{index:c,item:a}),d=this.$slots.default({item:a,renderedCols:l,renderedItemWithCols:u,index:c})[0];return e?s(Z,{key:o,onResize:e=>this.handleItemResize(o,e)},{default:()=>d}):(d.key=o,d)})}})])])}})}}),$=`v-hidden`,Me=J(`[v-hidden]`,{display:`none!important`}),Ne=_({name:`Overflow`,props:{getCounter:Function,getTail:Function,updateCounter:Function,onUpdateCount:Function,onUpdateOverflow:Function},setup(e,{slots:t}){let n=p(null),r=p(null);function i(i){let{value:a}=n,{getCounter:o,getTail:s}=e,c;if(c=o===void 0?r.value:o(),!a||!c)return;c.hasAttribute($)&&c.removeAttribute($);let{children:l}=a;if(i.showAllItemsBeforeCalculate)for(let e of l)e.hasAttribute($)&&e.removeAttribute($);let u=a.offsetWidth,d=[],f=t.tail?s?.():null,p=f?f.offsetWidth:0,m=!1,h=a.children.length-+!!t.tail;for(let t=0;t<h-1;++t){if(t<0)continue;let n=l[t];if(m){n.hasAttribute($)||n.setAttribute($,``);continue}else n.hasAttribute($)&&n.removeAttribute($);let r=n.offsetWidth;if(p+=r,d[t]=r,p>u){let{updateCounter:n}=e;for(let r=t;r>=0;--r){let i=h-1-r;n===void 0?c.textContent=`${i}`:n(i);let a=c.offsetWidth;if(p-=d[r],p+a<=u||r===0){m=!0,t=r-1,f&&(t===-1?(f.style.maxWidth=`${u-a}px`,f.style.boxSizing=`border-box`):f.style.maxWidth=``);let{onUpdateCount:n}=e;n&&n(i);break}}}}let{onUpdateOverflow:g}=e;m?g!==void 0&&g(!0):(g!==void 0&&g(!1),c.setAttribute($,``))}let a=w();return Me.mount({id:`vueuc/overflow`,head:!0,anchorMetaName:oe,ssr:a}),l(()=>i({showAllItemsBeforeCalculate:!1})),{selfRef:n,counterRef:r,sync:i}},render(){let{$slots:e}=this;return c(()=>this.sync({showAllItemsBeforeCalculate:!1})),s(`div`,{class:`v-overflow`,ref:`selfRef`},[i(e,`default`),e.counter?e.counter():s(`span`,{style:{display:`inline-block`},ref:`counterRef`}),e.tail?e.tail():null])}});function Pe(e,t){t&&(l(()=>{let{value:n}=e;n&&he.registerHandler(n,t)}),d(e,(e,t)=>{t&&he.unregisterHandler(t)},{deep:!1}),u(()=>{let{value:t}=e;t&&he.unregisterHandler(t)}))}function Fe(e){switch(typeof e){case`string`:return e||void 0;case`number`:return String(e);default:return}}function Ie(e){let t=e.filter(e=>e!==void 0);if(t.length!==0)return t.length===1?t[0]:t=>{e.forEach(e=>{e&&e(t)})}}var Le=_({name:`Checkmark`,render(){return s(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 16 16`},s(`g`,{fill:`none`},s(`path`,{d:`M14.046 3.486a.75.75 0 0 1-.032 1.06l-7.93 7.474a.85.85 0 0 1-1.188-.022l-2.68-2.72a.75.75 0 1 1 1.068-1.053l2.234 2.267l7.468-7.038a.75.75 0 0 1 1.06.032z`,fill:`currentColor`})))}}),Re=_({name:`Empty`,render(){return s(`svg`,{viewBox:`0 0 28 28`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},s(`path`,{d:`M26 7.5C26 11.0899 23.0899 14 19.5 14C15.9101 14 13 11.0899 13 7.5C13 3.91015 15.9101 1 19.5 1C23.0899 1 26 3.91015 26 7.5ZM16.8536 4.14645C16.6583 3.95118 16.3417 3.95118 16.1464 4.14645C15.9512 4.34171 15.9512 4.65829 16.1464 4.85355L18.7929 7.5L16.1464 10.1464C15.9512 10.3417 15.9512 10.6583 16.1464 10.8536C16.3417 11.0488 16.6583 11.0488 16.8536 10.8536L19.5 8.20711L22.1464 10.8536C22.3417 11.0488 22.6583 11.0488 22.8536 10.8536C23.0488 10.6583 23.0488 10.3417 22.8536 10.1464L20.2071 7.5L22.8536 4.85355C23.0488 4.65829 23.0488 4.34171 22.8536 4.14645C22.6583 3.95118 22.3417 3.95118 22.1464 4.14645L19.5 6.79289L16.8536 4.14645Z`,fill:`currentColor`}),s(`path`,{d:`M25 22.75V12.5991C24.5572 13.0765 24.053 13.4961 23.5 13.8454V16H17.5L17.3982 16.0068C17.0322 16.0565 16.75 16.3703 16.75 16.75C16.75 18.2688 15.5188 19.5 14 19.5C12.4812 19.5 11.25 18.2688 11.25 16.75L11.2432 16.6482C11.1935 16.2822 10.8797 16 10.5 16H4.5V7.25C4.5 6.2835 5.2835 5.5 6.25 5.5H12.2696C12.4146 4.97463 12.6153 4.47237 12.865 4H6.25C4.45507 4 3 5.45507 3 7.25V22.75C3 24.5449 4.45507 26 6.25 26H21.75C23.5449 26 25 24.5449 25 22.75ZM4.5 22.75V17.5H9.81597L9.85751 17.7041C10.2905 19.5919 11.9808 21 14 21L14.215 20.9947C16.2095 20.8953 17.842 19.4209 18.184 17.5H23.5V22.75C23.5 23.7165 22.7165 24.5 21.75 24.5H6.25C5.2835 24.5 4.5 23.7165 4.5 22.75Z`,fill:`currentColor`}))}}),ze=_({props:{onFocus:Function,onBlur:Function},setup(e){return()=>s(`div`,{style:`width: 0; height: 0`,tabindex:0,onFocus:e.onFocus,onBlur:e.onBlur})}}),Be={iconSizeTiny:`28px`,iconSizeSmall:`34px`,iconSizeMedium:`40px`,iconSizeLarge:`46px`,iconSizeHuge:`52px`};function Ve(e){let{textColorDisabled:t,iconColor:n,textColor2:r,fontSizeTiny:i,fontSizeSmall:a,fontSizeMedium:o,fontSizeLarge:s,fontSizeHuge:c}=e;return Object.assign(Object.assign({},Be),{fontSizeTiny:i,fontSizeSmall:a,fontSizeMedium:o,fontSizeLarge:s,fontSizeHuge:c,textColor:t,iconColor:n,extraTextColor:r})}var He={name:`Empty`,common:A,self:Ve},Ue=E(`empty`,`
|
|
1
|
+
import{$ as e,C as t,F as n,H as r,J as i,K as a,L as o,N as s,R as c,U as l,V as u,X as d,Z as f,ct as p,d as m,dt as h,h as g,j as _,y as v,z as y}from"./router-Dj-Nmg7q.js";import{B as b,K as x,R as S,W as C,Z as w,c as T,ct as E,d as D,dt as O,et as ee,ft as k,n as A,nt as j,pt as M,q as N,r as P,s as F,st as I,tt as L,ut as R,z as te}from"./browser-CQRjhbaB.js";import{A as ne,C as z,I as re,S as B,c as V,g as H,i as U,j as W,o as G,p as K,t as q,v as J,w as ie,x as ae,y as oe}from"./Popover-mIRPCy7U.js";import{n as Y,r as se,t as ce}from"./create-5zWq3BEB.js";import{c as X,d as le,i as ue,l as Z,m as de,n as fe,s as pe,t as me,u as he}from"./Suffix-DgzfIwzx.js";import{c as ge,l as Q,r as _e,s as ve}from"./fade-in.cssr-lwO9nLky.js";import{n as ye}from"./Close-CKHcXisf.js";import{t as be}from"./Tag-B2zrHMmZ.js";function xe(e){return e&-e}var Se=class{constructor(e,t){this.l=e,this.min=t;let n=Array(e+1);for(let t=0;t<e+1;++t)n[t]=0;this.ft=n}add(e,t){if(t===0)return;let{l:n,ft:r}=this;for(e+=1;e<=n;)r[e]+=t,e+=xe(e)}get(e){return this.sum(e+1)-this.sum(e)}sum(e){if(e===void 0&&(e=this.l),e<=0)return 0;let{ft:t,min:n,l:r}=this;if(e>r)throw Error("[FinweckTree.sum]: `i` is larger than length.");let i=e*n;for(;e>0;)i+=t[e],e-=xe(e);return i}getBound(e){let t=0,n=this.l;for(;n>t;){let r=Math.floor((t+n)/2),i=this.sum(r);if(i>e){n=r;continue}else if(i<e){if(t===r)return this.sum(t+1)<=e?t+1:r;t=r}else return r}return t}},Ce;function we(){return typeof document>`u`?!1:(Ce===void 0&&(Ce=`matchMedia`in window?window.matchMedia(`(pointer:coarse)`).matches:!1),Ce)}var Te;function Ee(){return typeof document>`u`?1:(Te===void 0&&(Te=`chrome`in window?window.devicePixelRatio:1),Te)}var De=`VVirtualListXScroll`;function Oe({columnsRef:e,renderColRef:n,renderItemWithColsRef:r}){let i=p(0),o=p(0),s=t(()=>{let t=e.value;if(t.length===0)return null;let n=new Se(t.length,0);return t.forEach((e,t)=>{n.add(t,e.width)}),n});return a(De,{startIndexRef:L(()=>{let e=s.value;return e===null?0:Math.max(e.getBound(o.value)-1,0)}),endIndexRef:L(()=>{let t=s.value;return t===null?0:Math.min(t.getBound(o.value+i.value)+1,e.value.length-1)}),columnsRef:e,renderColRef:n,renderItemWithColsRef:r,getLeft:e=>{let t=s.value;return t===null?0:t.sum(e)}}),{listWidthRef:i,scrollLeftRef:o}}var ke=_({name:`VirtualListRow`,props:{index:{type:Number,required:!0},item:{type:Object,required:!0}},setup(){let{startIndexRef:e,endIndexRef:t,columnsRef:r,getLeft:i,renderColRef:a,renderItemWithColsRef:o}=n(De);return{startIndex:e,endIndex:t,columns:r,renderCol:a,renderItemWithCols:o,getLeft:i}},render(){let{startIndex:e,endIndex:t,columns:n,renderCol:r,renderItemWithCols:i,getLeft:a,item:o}=this;if(i!=null)return i({itemIndex:this.index,startColIndex:e,endColIndex:t,allColumns:n,item:o,getLeft:a});if(r!=null){let i=[];for(let s=e;s<=t;++s){let e=n[s];i.push(r({column:e,left:a(s),item:o}))}return i}return null}}),Ae=J(`.v-vl`,{maxHeight:`inherit`,height:`100%`,overflow:`auto`,minWidth:`1px`},[J(`&:not(.v-vl--show-scrollbar)`,{scrollbarWidth:`none`},[J(`&::-webkit-scrollbar, &::-webkit-scrollbar-track-piece, &::-webkit-scrollbar-thumb`,{width:0,height:0,display:`none`})])]),je=_({name:`VirtualList`,inheritAttrs:!1,props:{showScrollbar:{type:Boolean,default:!0},columns:{type:Array,default:()=>[]},renderCol:Function,renderItemWithCols:Function,items:{type:Array,default:()=>[]},itemSize:{type:Number,required:!0},itemResizable:Boolean,itemsStyle:[String,Object],visibleItemsTag:{type:[String,Object],default:`div`},visibleItemsProps:Object,ignoreItemResize:Boolean,onScroll:Function,onWheel:Function,onResize:Function,defaultScrollKey:[Number,String],defaultScrollIndex:Number,keyField:{type:String,default:`key`},paddingTop:{type:[Number,String],default:0},paddingBottom:{type:[Number,String],default:0}},setup(e){let n=w();Ae.mount({id:`vueuc/virtual-list`,head:!0,anchorMetaName:oe,ssr:n}),l(()=>{let{defaultScrollIndex:t,defaultScrollKey:n}=e;t==null?n!=null&&S({key:n}):S({index:t})});let i=!1,a=!1;y(()=>{if(i=!1,!a){a=!0;return}S({top:v.value,left:c.value})}),r(()=>{i=!0,a||=!0});let o=L(()=>{if(e.renderCol==null&&e.renderItemWithCols==null||e.columns.length===0)return;let t=0;return e.columns.forEach(e=>{t+=e.width}),t}),s=t(()=>{let t=new Map,{keyField:n}=e;return e.items.forEach((e,r)=>{t.set(e[n],r)}),t}),{scrollLeftRef:c,listWidthRef:u}=Oe({columnsRef:h(e,`columns`),renderColRef:h(e,`renderCol`),renderItemWithColsRef:h(e,`renderItemWithCols`)}),d=p(null),f=p(void 0),m=new Map,g=t(()=>{let{items:t,itemSize:n,keyField:r}=e,i=new Se(t.length,n);return t.forEach((e,t)=>{let n=e[r],a=m.get(n);a!==void 0&&i.add(t,a)}),i}),_=p(0),v=p(0),b=L(()=>Math.max(g.value.getBound(v.value-ve(e.paddingTop))-1,0)),x=t(()=>{let{value:t}=f;if(t===void 0)return[];let{items:n,itemSize:r}=e,i=b.value,a=Math.min(i+Math.ceil(t/r+1),n.length-1),o=[];for(let e=i;e<=a;++e)o.push(n[e]);return o}),S=(e,t)=>{if(typeof e==`number`){D(e,t,`auto`);return}let{left:n,top:r,index:i,key:a,position:o,behavior:c,debounce:l=!0}=e;if(n!==void 0||r!==void 0)D(n,r,c);else if(i!==void 0)E(i,c,l);else if(a!==void 0){let e=s.value.get(a);e!==void 0&&E(e,c,l)}else o===`bottom`?D(0,2**53-1,c):o===`top`&&D(0,0,c)},C,T=null;function E(t,n,r){let{value:i}=g,a=i.sum(t)+ve(e.paddingTop);if(!r)d.value.scrollTo({left:0,top:a,behavior:n});else{C=t,T!==null&&window.clearTimeout(T),T=window.setTimeout(()=>{C=void 0,T=null},16);let{scrollTop:e,offsetHeight:r}=d.value;if(a>e){let o=i.get(t);a+o<=e+r||d.value.scrollTo({left:0,top:a+o-r,behavior:n})}else d.value.scrollTo({left:0,top:a,behavior:n})}}function D(e,t,n){d.value.scrollTo({left:e,top:t,behavior:n})}function O(t,n){if(i||e.ignoreItemResize||P(n.target))return;let{value:r}=g,a=s.value.get(t),o=r.get(a),c=n.borderBoxSize?.[0]?.blockSize??n.contentRect.height;if(c===o)return;c-e.itemSize===0?m.delete(t):m.set(t,c-e.itemSize);let l=c-o;if(l===0)return;r.add(a,l);let u=d.value;if(u!=null){if(C===void 0){let e=r.sum(a);u.scrollTop>e&&u.scrollBy(0,l)}else (a<C||a===C&&c+r.sum(a)>u.scrollTop+u.offsetHeight)&&u.scrollBy(0,l);N()}_.value++}let ee=!we(),k=!1;function A(t){var n;(n=e.onScroll)==null||n.call(e,t),(!ee||!k)&&N()}function j(t){var n;if((n=e.onWheel)==null||n.call(e,t),ee){let e=d.value;if(e!=null){if(t.deltaX===0&&(e.scrollTop===0&&t.deltaY<=0||e.scrollTop+e.offsetHeight>=e.scrollHeight&&t.deltaY>=0))return;t.preventDefault(),e.scrollTop+=t.deltaY/Ee(),e.scrollLeft+=t.deltaX/Ee(),N(),k=!0,re(()=>{k=!1})}}}function M(t){if(i||P(t.target))return;if(e.renderCol==null&&e.renderItemWithCols==null){if(t.contentRect.height===f.value)return}else if(t.contentRect.height===f.value&&t.contentRect.width===u.value)return;f.value=t.contentRect.height,u.value=t.contentRect.width;let{onResize:n}=e;n!==void 0&&n(t)}function N(){let{value:e}=d;e!=null&&(v.value=e.scrollTop,c.value=e.scrollLeft)}function P(e){let t=e;for(;t!==null;){if(t.style.display===`none`)return!0;t=t.parentElement}return!1}return{listHeight:f,listStyle:{overflow:`auto`},keyToIndex:s,itemsStyle:t(()=>{let{itemResizable:t}=e,n=Q(g.value.sum());return _.value,[e.itemsStyle,{boxSizing:`content-box`,width:Q(o.value),height:t?``:n,minHeight:t?n:``,paddingTop:Q(e.paddingTop),paddingBottom:Q(e.paddingBottom)}]}),visibleItemsStyle:t(()=>(_.value,{transform:`translateY(${Q(g.value.sum(b.value))})`})),viewportItems:x,listElRef:d,itemsElRef:p(null),scrollTo:S,handleListResize:M,handleListScroll:A,handleListWheel:j,handleItemResize:O}},render(){let{itemResizable:e,keyField:t,keyToIndex:n,visibleItemsTag:r}=this;return s(Z,{onResize:this.handleListResize},{default:()=>{var i;return s(`div`,o(this.$attrs,{class:[`v-vl`,this.showScrollbar&&`v-vl--show-scrollbar`],onScroll:this.handleListScroll,onWheel:this.handleListWheel,ref:`listElRef`}),[this.items.length===0?(i=this.$slots).empty?.call(i):s(`div`,{ref:`itemsElRef`,class:`v-vl-items`,style:this.itemsStyle},[s(r,Object.assign({class:`v-vl-visible-items`,style:this.visibleItemsStyle},this.visibleItemsProps),{default:()=>{let{renderCol:r,renderItemWithCols:i}=this;return this.viewportItems.map(a=>{let o=a[t],c=n.get(o),l=r==null?void 0:s(ke,{index:c,item:a}),u=i==null?void 0:s(ke,{index:c,item:a}),d=this.$slots.default({item:a,renderedCols:l,renderedItemWithCols:u,index:c})[0];return e?s(Z,{key:o,onResize:e=>this.handleItemResize(o,e)},{default:()=>d}):(d.key=o,d)})}})])])}})}}),$=`v-hidden`,Me=J(`[v-hidden]`,{display:`none!important`}),Ne=_({name:`Overflow`,props:{getCounter:Function,getTail:Function,updateCounter:Function,onUpdateCount:Function,onUpdateOverflow:Function},setup(e,{slots:t}){let n=p(null),r=p(null);function i(i){let{value:a}=n,{getCounter:o,getTail:s}=e,c;if(c=o===void 0?r.value:o(),!a||!c)return;c.hasAttribute($)&&c.removeAttribute($);let{children:l}=a;if(i.showAllItemsBeforeCalculate)for(let e of l)e.hasAttribute($)&&e.removeAttribute($);let u=a.offsetWidth,d=[],f=t.tail?s?.():null,p=f?f.offsetWidth:0,m=!1,h=a.children.length-+!!t.tail;for(let t=0;t<h-1;++t){if(t<0)continue;let n=l[t];if(m){n.hasAttribute($)||n.setAttribute($,``);continue}else n.hasAttribute($)&&n.removeAttribute($);let r=n.offsetWidth;if(p+=r,d[t]=r,p>u){let{updateCounter:n}=e;for(let r=t;r>=0;--r){let i=h-1-r;n===void 0?c.textContent=`${i}`:n(i);let a=c.offsetWidth;if(p-=d[r],p+a<=u||r===0){m=!0,t=r-1,f&&(t===-1?(f.style.maxWidth=`${u-a}px`,f.style.boxSizing=`border-box`):f.style.maxWidth=``);let{onUpdateCount:n}=e;n&&n(i);break}}}}let{onUpdateOverflow:g}=e;m?g!==void 0&&g(!0):(g!==void 0&&g(!1),c.setAttribute($,``))}let a=w();return Me.mount({id:`vueuc/overflow`,head:!0,anchorMetaName:oe,ssr:a}),l(()=>i({showAllItemsBeforeCalculate:!1})),{selfRef:n,counterRef:r,sync:i}},render(){let{$slots:e}=this;return c(()=>this.sync({showAllItemsBeforeCalculate:!1})),s(`div`,{class:`v-overflow`,ref:`selfRef`},[i(e,`default`),e.counter?e.counter():s(`span`,{style:{display:`inline-block`},ref:`counterRef`}),e.tail?e.tail():null])}});function Pe(e,t){t&&(l(()=>{let{value:n}=e;n&&he.registerHandler(n,t)}),d(e,(e,t)=>{t&&he.unregisterHandler(t)},{deep:!1}),u(()=>{let{value:t}=e;t&&he.unregisterHandler(t)}))}function Fe(e){switch(typeof e){case`string`:return e||void 0;case`number`:return String(e);default:return}}function Ie(e){let t=e.filter(e=>e!==void 0);if(t.length!==0)return t.length===1?t[0]:t=>{e.forEach(e=>{e&&e(t)})}}var Le=_({name:`Checkmark`,render(){return s(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 16 16`},s(`g`,{fill:`none`},s(`path`,{d:`M14.046 3.486a.75.75 0 0 1-.032 1.06l-7.93 7.474a.85.85 0 0 1-1.188-.022l-2.68-2.72a.75.75 0 1 1 1.068-1.053l2.234 2.267l7.468-7.038a.75.75 0 0 1 1.06.032z`,fill:`currentColor`})))}}),Re=_({name:`Empty`,render(){return s(`svg`,{viewBox:`0 0 28 28`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},s(`path`,{d:`M26 7.5C26 11.0899 23.0899 14 19.5 14C15.9101 14 13 11.0899 13 7.5C13 3.91015 15.9101 1 19.5 1C23.0899 1 26 3.91015 26 7.5ZM16.8536 4.14645C16.6583 3.95118 16.3417 3.95118 16.1464 4.14645C15.9512 4.34171 15.9512 4.65829 16.1464 4.85355L18.7929 7.5L16.1464 10.1464C15.9512 10.3417 15.9512 10.6583 16.1464 10.8536C16.3417 11.0488 16.6583 11.0488 16.8536 10.8536L19.5 8.20711L22.1464 10.8536C22.3417 11.0488 22.6583 11.0488 22.8536 10.8536C23.0488 10.6583 23.0488 10.3417 22.8536 10.1464L20.2071 7.5L22.8536 4.85355C23.0488 4.65829 23.0488 4.34171 22.8536 4.14645C22.6583 3.95118 22.3417 3.95118 22.1464 4.14645L19.5 6.79289L16.8536 4.14645Z`,fill:`currentColor`}),s(`path`,{d:`M25 22.75V12.5991C24.5572 13.0765 24.053 13.4961 23.5 13.8454V16H17.5L17.3982 16.0068C17.0322 16.0565 16.75 16.3703 16.75 16.75C16.75 18.2688 15.5188 19.5 14 19.5C12.4812 19.5 11.25 18.2688 11.25 16.75L11.2432 16.6482C11.1935 16.2822 10.8797 16 10.5 16H4.5V7.25C4.5 6.2835 5.2835 5.5 6.25 5.5H12.2696C12.4146 4.97463 12.6153 4.47237 12.865 4H6.25C4.45507 4 3 5.45507 3 7.25V22.75C3 24.5449 4.45507 26 6.25 26H21.75C23.5449 26 25 24.5449 25 22.75ZM4.5 22.75V17.5H9.81597L9.85751 17.7041C10.2905 19.5919 11.9808 21 14 21L14.215 20.9947C16.2095 20.8953 17.842 19.4209 18.184 17.5H23.5V22.75C23.5 23.7165 22.7165 24.5 21.75 24.5H6.25C5.2835 24.5 4.5 23.7165 4.5 22.75Z`,fill:`currentColor`}))}}),ze=_({props:{onFocus:Function,onBlur:Function},setup(e){return()=>s(`div`,{style:`width: 0; height: 0`,tabindex:0,onFocus:e.onFocus,onBlur:e.onBlur})}}),Be={iconSizeTiny:`28px`,iconSizeSmall:`34px`,iconSizeMedium:`40px`,iconSizeLarge:`46px`,iconSizeHuge:`52px`};function Ve(e){let{textColorDisabled:t,iconColor:n,textColor2:r,fontSizeTiny:i,fontSizeSmall:a,fontSizeMedium:o,fontSizeLarge:s,fontSizeHuge:c}=e;return Object.assign(Object.assign({},Be),{fontSizeTiny:i,fontSizeSmall:a,fontSizeMedium:o,fontSizeLarge:s,fontSizeHuge:c,textColor:t,iconColor:n,extraTextColor:r})}var He={name:`Empty`,common:A,self:Ve},Ue=E(`empty`,`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
align-items: center;
|
|
@@ -337,4 +337,4 @@ import{$ as e,C as t,F as n,H as r,J as i,K as a,L as o,N as s,R as c,U as l,V a
|
|
|
337
337
|
`),E(`select-menu`,`
|
|
338
338
|
margin: 4px 0;
|
|
339
339
|
box-shadow: var(--n-menu-box-shadow);
|
|
340
|
-
`,[G({originalTransition:`background-color .3s var(--n-bezier), box-shadow .3s var(--n-bezier)`})])]),pt=_({name:`Select`,props:Object.assign(Object.assign({},T.props),{to:ie.propTo,bordered:{type:Boolean,default:void 0},clearable:Boolean,clearCreatedOptionsOnClear:{type:Boolean,default:!0},clearFilterAfterSelect:{type:Boolean,default:!0},options:{type:Array,default:()=>[]},defaultValue:{type:[String,Number,Array],default:null},keyboard:{type:Boolean,default:!0},value:[String,Number,Array],placeholder:String,menuProps:Object,multiple:Boolean,size:String,menuSize:{type:String},filterable:Boolean,disabled:{type:Boolean,default:void 0},remote:Boolean,loading:Boolean,filter:Function,placement:{type:String,default:`bottom-start`},widthMode:{type:String,default:`trigger`},tag:Boolean,onCreate:Function,fallbackOption:{type:[Function,Boolean],default:void 0},show:{type:Boolean,default:void 0},showArrow:{type:Boolean,default:!0},maxTagCount:[Number,String],ellipsisTagPopoverProps:Object,consistentMenuWidth:{type:Boolean,default:!0},virtualScroll:{type:Boolean,default:!0},labelField:{type:String,default:`label`},valueField:{type:String,default:`value`},childrenField:{type:String,default:`children`},renderLabel:Function,renderOption:Function,renderTag:Function,"onUpdate:value":[Function,Array],inputProps:Object,nodeProps:Function,ignoreComposition:{type:Boolean,default:!0},showOnFocus:Boolean,onUpdateValue:[Function,Array],onBlur:[Function,Array],onClear:[Function,Array],onFocus:[Function,Array],onScroll:[Function,Array],onSearch:[Function,Array],onUpdateShow:[Function,Array],"onUpdate:show":[Function,Array],displayDirective:{type:String,default:`show`},resetMenuOnOptionsChange:{type:Boolean,default:!0},status:String,showCheckmark:{type:Boolean,default:!0},scrollbarProps:Object,onChange:[Function,Array],items:Array}),slots:Object,setup(e){let{mergedClsPrefixRef:n,mergedBorderedRef:r,namespaceRef:i,inlineThemeDisabled:a,mergedComponentPropsRef:o}=b(e),s=T(`Select`,`-select`,ft,dt,e,n),c=p(e.defaultValue),l=le(h(e,`value`),c),u=p(!1),f=p(``),m=ye(e,[`items`,`options`]),g=p([]),_=p([]),v=t(()=>_.value.concat(g.value).concat(m.value)),y=t(()=>{let{filter:t}=e;if(t)return t;let{labelField:n,valueField:r}=e;return(e,t)=>{if(!t)return!1;let i=t[n];if(typeof i==`string`)return ot(e,i);let a=t[r];return typeof a==`string`?ot(e,a):typeof a==`number`?ot(e,String(a)):!1}}),x=t(()=>{if(e.remote)return m.value;{let{value:t}=v,{value:n}=f;return!n.length||!e.filterable?t:ct(t,y.value,n,e.childrenField)}}),C=t(()=>{let{valueField:t,childrenField:n}=e,r=st(t,n);return ce(x.value,r)}),w=t(()=>lt(v.value,e.valueField,e.childrenField)),E=p(!1),D=le(h(e,`show`),E),O=p(null),k=p(null),A=p(null),{localeRef:j}=pe(`Select`),M=t(()=>e.placeholder??j.value.placeholder),P=[],F=p(new Map),I=t(()=>{let{fallbackOption:t}=e;if(t===void 0){let{labelField:t,valueField:n}=e;return e=>({[t]:String(e),[n]:e})}return t===!1?!1:e=>Object.assign(t(e),{value:e})});function L(t){let n=e.remote,{value:r}=F,{value:i}=w,{value:a}=I,o=[];return t.forEach(e=>{if(i.has(e))o.push(i.get(e));else if(n&&r.has(e))o.push(r.get(e));else if(a){let t=a(e);t&&o.push(t)}}),o}let R=t(()=>{if(e.multiple){let{value:e}=l;return Array.isArray(e)?L(e):[]}return null}),ne=t(()=>{let{value:t}=l;return!e.multiple&&!Array.isArray(t)?t===null?null:L([t])[0]||null:null}),z=S(e,{mergedSize:t=>{let{size:n}=e;if(n)return n;let{mergedSize:r}=t||{};return r?.value?r.value:o?.value?.Select?.size||`medium`}}),{mergedSizeRef:re,mergedDisabledRef:B,mergedStatusRef:V}=z;function H(t,n){let{onChange:r,"onUpdate:value":i,onUpdateValue:a}=e,{nTriggerFormChange:o,nTriggerFormInput:s}=z;r&&N(r,t,n),a&&N(a,t,n),i&&N(i,t,n),c.value=t,o(),s()}function U(t){let{onBlur:n}=e,{nTriggerFormBlur:r}=z;n&&N(n,t),r()}function W(){let{onClear:t}=e;t&&N(t)}function G(t){let{onFocus:n,showOnFocus:r}=e,{nTriggerFormFocus:i}=z;n&&N(n,t),i(),r&&Y()}function q(t){let{onSearch:n}=e;n&&N(n,t)}function J(t){let{onScroll:n}=e;n&&N(n,t)}function ae(){var t;let{remote:n,multiple:r}=e;if(n){let{value:n}=F;if(r){let{valueField:r}=e;(t=R.value)==null||t.forEach(e=>{n.set(e[r],e)})}else{let t=ne.value;t&&n.set(t[e.valueField],t)}}}function oe(t){let{onUpdateShow:n,"onUpdate:show":r}=e;n&&N(n,t),r&&N(r,t),E.value=t}function Y(){B.value||(oe(!0),E.value=!0,e.filterable&&$())}function X(){oe(!1)}function ue(){f.value=``,_.value=P}let Z=p(!1);function fe(){e.filterable&&(Z.value=!0)}function me(){e.filterable&&(Z.value=!1,D.value||ue())}function he(){B.value||(D.value?e.filterable?$():X():Y())}function ge(e){(A.value?.selfRef)?.contains(e.relatedTarget)||(u.value=!1,U(e),X())}function Q(e){G(e),u.value=!0}function _e(){u.value=!0}function ve(e){O.value?.$el.contains(e.relatedTarget)||(u.value=!1,U(e),X())}function be(){var e;(e=O.value)==null||e.focus(),X()}function xe(e){D.value&&(O.value?.$el.contains(de(e))||X())}function Se(t){if(!Array.isArray(t))return[];if(I.value)return Array.from(t);{let{remote:n}=e,{value:r}=w;if(n){let{value:e}=F;return t.filter(t=>r.has(t)||e.has(t))}else return t.filter(e=>r.has(e))}}function Ce(e){we(e.rawNode)}function we(t){if(B.value)return;let{tag:n,remote:r,clearFilterAfterSelect:i,valueField:a}=e;if(n&&!r){let{value:e}=_,t=e[0]||null;if(t){let e=g.value;e.length?e.push(t):g.value=[t],_.value=P}}if(r&&F.value.set(t[a],t),e.multiple){let e=Se(l.value),o=e.findIndex(e=>e===t[a]);if(~o){if(e.splice(o,1),n&&!r){let e=Te(t[a]);~e&&(g.value.splice(e,1),i&&(f.value=``))}}else e.push(t[a]),i&&(f.value=``);H(e,L(e))}else{if(n&&!r){let e=Te(t[a]);~e?g.value=[g.value[e]]:g.value=P}je(),X(),H(t[a],t)}}function Te(t){return g.value.findIndex(n=>n[e.valueField]===t)}function Ee(t){D.value||Y();let{value:n}=t.target;f.value=n;let{tag:r,remote:i}=e;if(q(n),r&&!i){if(!n){_.value=P;return}let{onCreate:t}=e,r=t?t(n):{[e.labelField]:n,[e.valueField]:n},{valueField:i,labelField:a}=e;m.value.some(e=>e[i]===r[i]||e[a]===r[a])||g.value.some(e=>e[i]===r[i]||e[a]===r[a])?_.value=P:_.value=[r]}}function De(t){t.stopPropagation();let{multiple:n,tag:r,remote:i,clearCreatedOptionsOnClear:a}=e;!n&&e.filterable&&X(),r&&!i&&a&&(g.value=P),W(),n?H([],[]):H(null,null)}function Oe(e){!se(e,`action`)&&!se(e,`empty`)&&!se(e,`header`)&&e.preventDefault()}function ke(e){J(e)}function Ae(t){var n,r,i;if(!e.keyboard){t.preventDefault();return}switch(t.key){case` `:if(e.filterable)break;t.preventDefault();case`Enter`:if(!O.value?.isComposing){if(D.value){let t=A.value?.getPendingTmNode();t?Ce(t):e.filterable||(X(),je())}else if(Y(),e.tag&&Z.value){let t=_.value[0];if(t){let n=t[e.valueField],{value:r}=l;e.multiple&&Array.isArray(r)&&r.includes(n)||we(t)}}}t.preventDefault();break;case`ArrowUp`:if(t.preventDefault(),e.loading)return;D.value&&((n=A.value)==null||n.prev());break;case`ArrowDown`:if(t.preventDefault(),e.loading)return;D.value?(r=A.value)==null||r.next():Y();break;case`Escape`:D.value&&(K(t),X()),(i=O.value)==null||i.focus();break}}function je(){var e;(e=O.value)==null||e.focus()}function $(){var e;(e=O.value)==null||e.focusInput()}function Me(){var e;D.value&&((e=k.value)==null||e.syncPosition())}ae(),d(h(e,`options`),ae);let Ne={focus:()=>{var e;(e=O.value)==null||e.focus()},focusInput:()=>{var e;(e=O.value)==null||e.focusInput()},blur:()=>{var e;(e=O.value)==null||e.blur()},blurInput:()=>{var e;(e=O.value)==null||e.blurInput()}},Pe=t(()=>{let{self:{menuBoxShadow:e}}=s.value;return{"--n-menu-box-shadow":e}}),Fe=a?te(`select`,void 0,Pe,e):void 0;return Object.assign(Object.assign({},Ne),{mergedStatus:V,mergedClsPrefix:n,mergedBordered:r,namespace:i,treeMate:C,isMounted:ee(),triggerRef:O,menuRef:A,pattern:f,uncontrolledShow:E,mergedShow:D,adjustedTo:ie(e),uncontrolledValue:c,mergedValue:l,followerRef:k,localizedPlaceholder:M,selectedOption:ne,selectedOptions:R,mergedSize:re,mergedDisabled:B,focused:u,activeWithoutMenuOpen:Z,inlineThemeDisabled:a,onTriggerInputFocus:fe,onTriggerInputBlur:me,handleTriggerOrMenuResize:Me,handleMenuFocus:_e,handleMenuBlur:ve,handleMenuTabOut:be,handleTriggerClick:he,handleToggle:Ce,handleDeleteOption:we,handlePatternInput:Ee,handleClear:De,handleTriggerBlur:ge,handleTriggerFocus:Q,handleKeydown:Ae,handleMenuAfterLeave:ue,handleMenuClickOutside:xe,handleMenuScroll:ke,handleMenuKeydown:Ae,handleMenuMousedown:Oe,mergedTheme:s,cssVars:a?void 0:Pe,themeClass:Fe?.themeClass,onRender:Fe?.onRender})},render(){return s(`div`,{class:`${this.mergedClsPrefix}-select`},s(z,null,{default:()=>[s(B,null,{default:()=>s(rt,{ref:`triggerRef`,inlineThemeDisabled:this.inlineThemeDisabled,status:this.mergedStatus,inputProps:this.inputProps,clsPrefix:this.mergedClsPrefix,showArrow:this.showArrow,maxTagCount:this.maxTagCount,ellipsisTagPopoverProps:this.ellipsisTagPopoverProps,bordered:this.mergedBordered,active:this.activeWithoutMenuOpen||this.mergedShow,pattern:this.pattern,placeholder:this.localizedPlaceholder,selectedOption:this.selectedOption,selectedOptions:this.selectedOptions,multiple:this.multiple,renderTag:this.renderTag,renderLabel:this.renderLabel,filterable:this.filterable,clearable:this.clearable,disabled:this.mergedDisabled,size:this.mergedSize,theme:this.mergedTheme.peers.InternalSelection,labelField:this.labelField,valueField:this.valueField,themeOverrides:this.mergedTheme.peerOverrides.InternalSelection,loading:this.loading,focused:this.focused,onClick:this.handleTriggerClick,onDeleteOption:this.handleDeleteOption,onPatternInput:this.handlePatternInput,onClear:this.handleClear,onBlur:this.handleTriggerBlur,onFocus:this.handleTriggerFocus,onKeydown:this.handleKeydown,onPatternBlur:this.onTriggerInputBlur,onPatternFocus:this.onTriggerInputFocus,onResize:this.handleTriggerOrMenuResize,ignoreComposition:this.ignoreComposition},{arrow:()=>{var e;return[(e=this.$slots).arrow?.call(e)]}})}),s(H,{ref:`followerRef`,show:this.mergedShow,to:this.adjustedTo,teleportDisabled:this.adjustedTo===ie.tdkey,containerClass:this.namespace,width:this.consistentMenuWidth?`target`:void 0,minWidth:`target`,placement:this.placement},{default:()=>s(m,{name:`fade-in-scale-up-transition`,appear:this.isMounted,onAfterLeave:this.handleMenuAfterLeave},{default:()=>{var t;return this.mergedShow||this.displayDirective===`show`?((t=this.onRender)==null||t.call(this),e(s(Qe,Object.assign({},this.menuProps,{ref:`menuRef`,onResize:this.handleTriggerOrMenuResize,inlineThemeDisabled:this.inlineThemeDisabled,virtualScroll:this.consistentMenuWidth&&this.virtualScroll,class:[`${this.mergedClsPrefix}-select-menu`,this.themeClass,this.menuProps?.class],clsPrefix:this.mergedClsPrefix,focusable:!0,labelField:this.labelField,valueField:this.valueField,autoPending:!0,nodeProps:this.nodeProps,theme:this.mergedTheme.peers.InternalSelectMenu,themeOverrides:this.mergedTheme.peerOverrides.InternalSelectMenu,treeMate:this.treeMate,multiple:this.multiple,size:this.menuSize,renderOption:this.renderOption,renderLabel:this.renderLabel,value:this.mergedValue,style:[this.menuProps?.style,this.cssVars],onToggle:this.handleToggle,onScroll:this.handleMenuScroll,onFocus:this.handleMenuFocus,onBlur:this.handleMenuBlur,onKeydown:this.handleMenuKeydown,onTabOut:this.handleMenuTabOut,onMousedown:this.handleMenuMousedown,show:this.mergedShow,showCheckmark:this.showCheckmark,resetMenuOnOptionsChange:this.resetMenuOnOptionsChange,scrollbarProps:this.scrollbarProps}),{empty:()=>{var e;return[(e=this.$slots).empty?.call(e)]},header:()=>{var e;return[(e=this.$slots).header?.call(e)]},action:()=>{var e;return[(e=this.$slots).action?.call(e)]}}),this.displayDirective===`show`?[[g,this.mergedShow],[ae,this.handleMenuClickOutside,void 0,{capture:!0}]]:[[ae,this.handleMenuClickOutside,void 0,{capture:!0}]])):null}})})]}))}});export{$e as a,He as c,tt as i,Ve as l,dt as n,qe as o,ut as r,Ke as s,pt as t};
|
|
340
|
+
`,[G({originalTransition:`background-color .3s var(--n-bezier), box-shadow .3s var(--n-bezier)`})])]),pt=_({name:`Select`,props:Object.assign(Object.assign({},T.props),{to:ie.propTo,bordered:{type:Boolean,default:void 0},clearable:Boolean,clearCreatedOptionsOnClear:{type:Boolean,default:!0},clearFilterAfterSelect:{type:Boolean,default:!0},options:{type:Array,default:()=>[]},defaultValue:{type:[String,Number,Array],default:null},keyboard:{type:Boolean,default:!0},value:[String,Number,Array],placeholder:String,menuProps:Object,multiple:Boolean,size:String,menuSize:{type:String},filterable:Boolean,disabled:{type:Boolean,default:void 0},remote:Boolean,loading:Boolean,filter:Function,placement:{type:String,default:`bottom-start`},widthMode:{type:String,default:`trigger`},tag:Boolean,onCreate:Function,fallbackOption:{type:[Function,Boolean],default:void 0},show:{type:Boolean,default:void 0},showArrow:{type:Boolean,default:!0},maxTagCount:[Number,String],ellipsisTagPopoverProps:Object,consistentMenuWidth:{type:Boolean,default:!0},virtualScroll:{type:Boolean,default:!0},labelField:{type:String,default:`label`},valueField:{type:String,default:`value`},childrenField:{type:String,default:`children`},renderLabel:Function,renderOption:Function,renderTag:Function,"onUpdate:value":[Function,Array],inputProps:Object,nodeProps:Function,ignoreComposition:{type:Boolean,default:!0},showOnFocus:Boolean,onUpdateValue:[Function,Array],onBlur:[Function,Array],onClear:[Function,Array],onFocus:[Function,Array],onScroll:[Function,Array],onSearch:[Function,Array],onUpdateShow:[Function,Array],"onUpdate:show":[Function,Array],displayDirective:{type:String,default:`show`},resetMenuOnOptionsChange:{type:Boolean,default:!0},status:String,showCheckmark:{type:Boolean,default:!0},scrollbarProps:Object,onChange:[Function,Array],items:Array}),slots:Object,setup(e){let{mergedClsPrefixRef:n,mergedBorderedRef:r,namespaceRef:i,inlineThemeDisabled:a,mergedComponentPropsRef:o}=b(e),s=T(`Select`,`-select`,ft,dt,e,n),c=p(e.defaultValue),l=le(h(e,`value`),c),u=p(!1),f=p(``),m=ye(e,[`items`,`options`]),g=p([]),_=p([]),v=t(()=>_.value.concat(g.value).concat(m.value)),y=t(()=>{let{filter:t}=e;if(t)return t;let{labelField:n,valueField:r}=e;return(e,t)=>{if(!t)return!1;let i=t[n];if(typeof i==`string`)return ot(e,i);let a=t[r];return typeof a==`string`?ot(e,a):typeof a==`number`?ot(e,String(a)):!1}}),x=t(()=>{if(e.remote)return m.value;{let{value:t}=v,{value:n}=f;return!n.length||!e.filterable?t:ct(t,y.value,n,e.childrenField)}}),C=t(()=>{let{valueField:t,childrenField:n}=e,r=st(t,n);return ce(x.value,r)}),w=t(()=>lt(v.value,e.valueField,e.childrenField)),E=p(!1),D=le(h(e,`show`),E),O=p(null),k=p(null),A=p(null),{localeRef:j}=pe(`Select`),M=t(()=>e.placeholder??j.value.placeholder),P=[],F=p(new Map),I=t(()=>{let{fallbackOption:t}=e;if(t===void 0){let{labelField:t,valueField:n}=e;return e=>({[t]:String(e),[n]:e})}return t===!1?!1:e=>Object.assign(t(e),{value:e})});function L(t){let n=e.remote,{value:r}=F,{value:i}=w,{value:a}=I,o=[];return t.forEach(e=>{if(i.has(e))o.push(i.get(e));else if(n&&r.has(e))o.push(r.get(e));else if(a){let t=a(e);t&&o.push(t)}}),o}let R=t(()=>{if(e.multiple){let{value:e}=l;return Array.isArray(e)?L(e):[]}return null}),ne=t(()=>{let{value:t}=l;return!e.multiple&&!Array.isArray(t)?t===null?null:L([t])[0]||null:null}),z=S(e,{mergedSize:t=>{let{size:n}=e;if(n)return n;let{mergedSize:r}=t||{};return r?.value?r.value:o?.value?.Select?.size||`medium`}}),{mergedSizeRef:re,mergedDisabledRef:B,mergedStatusRef:V}=z;function H(t,n){let{onChange:r,"onUpdate:value":i,onUpdateValue:a}=e,{nTriggerFormChange:o,nTriggerFormInput:s}=z;r&&N(r,t,n),a&&N(a,t,n),i&&N(i,t,n),c.value=t,o(),s()}function U(t){let{onBlur:n}=e,{nTriggerFormBlur:r}=z;n&&N(n,t),r()}function W(){let{onClear:t}=e;t&&N(t)}function G(t){let{onFocus:n,showOnFocus:r}=e,{nTriggerFormFocus:i}=z;n&&N(n,t),i(),r&&Y()}function q(t){let{onSearch:n}=e;n&&N(n,t)}function J(t){let{onScroll:n}=e;n&&N(n,t)}function ae(){var t;let{remote:n,multiple:r}=e;if(n){let{value:n}=F;if(r){let{valueField:r}=e;(t=R.value)==null||t.forEach(e=>{n.set(e[r],e)})}else{let t=ne.value;t&&n.set(t[e.valueField],t)}}}function oe(t){let{onUpdateShow:n,"onUpdate:show":r}=e;n&&N(n,t),r&&N(r,t),E.value=t}function Y(){B.value||(oe(!0),E.value=!0,e.filterable&&$())}function X(){oe(!1)}function ue(){f.value=``,_.value=P}let Z=p(!1);function fe(){e.filterable&&(Z.value=!0)}function me(){e.filterable&&(Z.value=!1,D.value||ue())}function he(){B.value||(D.value?e.filterable?$():X():Y())}function ge(e){(A.value?.selfRef)?.contains(e.relatedTarget)||(u.value=!1,U(e),X())}function Q(e){G(e),u.value=!0}function _e(){u.value=!0}function ve(e){O.value?.$el.contains(e.relatedTarget)||(u.value=!1,U(e),X())}function be(){var e;(e=O.value)==null||e.focus(),X()}function xe(e){D.value&&(O.value?.$el.contains(de(e))||X())}function Se(t){if(!Array.isArray(t))return[];if(I.value)return Array.from(t);{let{remote:n}=e,{value:r}=w;if(n){let{value:e}=F;return t.filter(t=>r.has(t)||e.has(t))}else return t.filter(e=>r.has(e))}}function Ce(e){we(e.rawNode)}function we(t){if(B.value)return;let{tag:n,remote:r,clearFilterAfterSelect:i,valueField:a}=e;if(n&&!r){let{value:e}=_,t=e[0]||null;if(t){let e=g.value;e.length?e.push(t):g.value=[t],_.value=P}}if(r&&F.value.set(t[a],t),e.multiple){let e=Se(l.value),o=e.findIndex(e=>e===t[a]);if(~o){if(e.splice(o,1),n&&!r){let e=Te(t[a]);~e&&(g.value.splice(e,1),i&&(f.value=``))}}else e.push(t[a]),i&&(f.value=``);H(e,L(e))}else{if(n&&!r){let e=Te(t[a]);~e?g.value=[g.value[e]]:g.value=P}je(),X(),H(t[a],t)}}function Te(t){return g.value.findIndex(n=>n[e.valueField]===t)}function Ee(t){D.value||Y();let{value:n}=t.target;f.value=n;let{tag:r,remote:i}=e;if(q(n),r&&!i){if(!n){_.value=P;return}let{onCreate:t}=e,r=t?t(n):{[e.labelField]:n,[e.valueField]:n},{valueField:i,labelField:a}=e;m.value.some(e=>e[i]===r[i]||e[a]===r[a])||g.value.some(e=>e[i]===r[i]||e[a]===r[a])?_.value=P:_.value=[r]}}function De(t){t.stopPropagation();let{multiple:n,tag:r,remote:i,clearCreatedOptionsOnClear:a}=e;!n&&e.filterable&&X(),r&&!i&&a&&(g.value=P),W(),n?H([],[]):H(null,null)}function Oe(e){!se(e,`action`)&&!se(e,`empty`)&&!se(e,`header`)&&e.preventDefault()}function ke(e){J(e)}function Ae(t){var n,r,i;if(!e.keyboard){t.preventDefault();return}switch(t.key){case` `:if(e.filterable)break;t.preventDefault();case`Enter`:if(!O.value?.isComposing){if(D.value){let t=A.value?.getPendingTmNode();t?Ce(t):e.filterable||(X(),je())}else if(Y(),e.tag&&Z.value){let t=_.value[0];if(t){let n=t[e.valueField],{value:r}=l;e.multiple&&Array.isArray(r)&&r.includes(n)||we(t)}}}t.preventDefault();break;case`ArrowUp`:if(t.preventDefault(),e.loading)return;D.value&&((n=A.value)==null||n.prev());break;case`ArrowDown`:if(t.preventDefault(),e.loading)return;D.value?(r=A.value)==null||r.next():Y();break;case`Escape`:D.value&&(K(t),X()),(i=O.value)==null||i.focus();break}}function je(){var e;(e=O.value)==null||e.focus()}function $(){var e;(e=O.value)==null||e.focusInput()}function Me(){var e;D.value&&((e=k.value)==null||e.syncPosition())}ae(),d(h(e,`options`),ae);let Ne={focus:()=>{var e;(e=O.value)==null||e.focus()},focusInput:()=>{var e;(e=O.value)==null||e.focusInput()},blur:()=>{var e;(e=O.value)==null||e.blur()},blurInput:()=>{var e;(e=O.value)==null||e.blurInput()}},Pe=t(()=>{let{self:{menuBoxShadow:e}}=s.value;return{"--n-menu-box-shadow":e}}),Fe=a?te(`select`,void 0,Pe,e):void 0;return Object.assign(Object.assign({},Ne),{mergedStatus:V,mergedClsPrefix:n,mergedBordered:r,namespace:i,treeMate:C,isMounted:ee(),triggerRef:O,menuRef:A,pattern:f,uncontrolledShow:E,mergedShow:D,adjustedTo:ie(e),uncontrolledValue:c,mergedValue:l,followerRef:k,localizedPlaceholder:M,selectedOption:ne,selectedOptions:R,mergedSize:re,mergedDisabled:B,focused:u,activeWithoutMenuOpen:Z,inlineThemeDisabled:a,onTriggerInputFocus:fe,onTriggerInputBlur:me,handleTriggerOrMenuResize:Me,handleMenuFocus:_e,handleMenuBlur:ve,handleMenuTabOut:be,handleTriggerClick:he,handleToggle:Ce,handleDeleteOption:we,handlePatternInput:Ee,handleClear:De,handleTriggerBlur:ge,handleTriggerFocus:Q,handleKeydown:Ae,handleMenuAfterLeave:ue,handleMenuClickOutside:xe,handleMenuScroll:ke,handleMenuKeydown:Ae,handleMenuMousedown:Oe,mergedTheme:s,cssVars:a?void 0:Pe,themeClass:Fe?.themeClass,onRender:Fe?.onRender})},render(){return s(`div`,{class:`${this.mergedClsPrefix}-select`},s(z,null,{default:()=>[s(B,null,{default:()=>s(rt,{ref:`triggerRef`,inlineThemeDisabled:this.inlineThemeDisabled,status:this.mergedStatus,inputProps:this.inputProps,clsPrefix:this.mergedClsPrefix,showArrow:this.showArrow,maxTagCount:this.maxTagCount,ellipsisTagPopoverProps:this.ellipsisTagPopoverProps,bordered:this.mergedBordered,active:this.activeWithoutMenuOpen||this.mergedShow,pattern:this.pattern,placeholder:this.localizedPlaceholder,selectedOption:this.selectedOption,selectedOptions:this.selectedOptions,multiple:this.multiple,renderTag:this.renderTag,renderLabel:this.renderLabel,filterable:this.filterable,clearable:this.clearable,disabled:this.mergedDisabled,size:this.mergedSize,theme:this.mergedTheme.peers.InternalSelection,labelField:this.labelField,valueField:this.valueField,themeOverrides:this.mergedTheme.peerOverrides.InternalSelection,loading:this.loading,focused:this.focused,onClick:this.handleTriggerClick,onDeleteOption:this.handleDeleteOption,onPatternInput:this.handlePatternInput,onClear:this.handleClear,onBlur:this.handleTriggerBlur,onFocus:this.handleTriggerFocus,onKeydown:this.handleKeydown,onPatternBlur:this.onTriggerInputBlur,onPatternFocus:this.onTriggerInputFocus,onResize:this.handleTriggerOrMenuResize,ignoreComposition:this.ignoreComposition},{arrow:()=>{var e;return[(e=this.$slots).arrow?.call(e)]}})}),s(H,{ref:`followerRef`,show:this.mergedShow,to:this.adjustedTo,teleportDisabled:this.adjustedTo===ie.tdkey,containerClass:this.namespace,width:this.consistentMenuWidth?`target`:void 0,minWidth:`target`,placement:this.placement},{default:()=>s(m,{name:`fade-in-scale-up-transition`,appear:this.isMounted,onAfterLeave:this.handleMenuAfterLeave},{default:()=>{var t;return this.mergedShow||this.displayDirective===`show`?((t=this.onRender)==null||t.call(this),e(s(Qe,Object.assign({},this.menuProps,{ref:`menuRef`,onResize:this.handleTriggerOrMenuResize,inlineThemeDisabled:this.inlineThemeDisabled,virtualScroll:this.consistentMenuWidth&&this.virtualScroll,class:[`${this.mergedClsPrefix}-select-menu`,this.themeClass,this.menuProps?.class],clsPrefix:this.mergedClsPrefix,focusable:!0,labelField:this.labelField,valueField:this.valueField,autoPending:!0,nodeProps:this.nodeProps,theme:this.mergedTheme.peers.InternalSelectMenu,themeOverrides:this.mergedTheme.peerOverrides.InternalSelectMenu,treeMate:this.treeMate,multiple:this.multiple,size:this.menuSize,renderOption:this.renderOption,renderLabel:this.renderLabel,value:this.mergedValue,style:[this.menuProps?.style,this.cssVars],onToggle:this.handleToggle,onScroll:this.handleMenuScroll,onFocus:this.handleMenuFocus,onBlur:this.handleMenuBlur,onKeydown:this.handleMenuKeydown,onTabOut:this.handleMenuTabOut,onMousedown:this.handleMenuMousedown,show:this.mergedShow,showCheckmark:this.showCheckmark,resetMenuOnOptionsChange:this.resetMenuOnOptionsChange,scrollbarProps:this.scrollbarProps}),{empty:()=>{var e;return[(e=this.$slots).empty?.call(e)]},header:()=>{var e;return[(e=this.$slots).header?.call(e)]},action:()=>{var e;return[(e=this.$slots).action?.call(e)]}}),this.displayDirective===`show`?[[g,this.mergedShow],[ae,this.handleMenuClickOutside,void 0,{capture:!0}]]:[[ae,this.handleMenuClickOutside,void 0,{capture:!0}]])):null}})})]}))}});export{$e as a,We as c,tt as i,He as l,dt as n,qe as o,ut as r,Ke as s,pt as t,Ve as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{D as e,E as t,G as n,J as r,ct as i,gt as a,j as o,o as s,w as c}from"./router-
|
|
1
|
+
import{D as e,E as t,G as n,J as r,ct as i,gt as a,j as o,o as s,w as c}from"./router-Dj-Nmg7q.js";import{n as l}from"./pinia-Dp_b1vdW.js";import{t as u}from"./_plugin-vue_export-helper-Cnn0Z73x.js";async function d(e){return s(`/api/hermes/config${e?`?sections=${e.join(`,`)}`:``}`)}async function f(e,t){await s(`/api/hermes/config`,{method:`PUT`,body:JSON.stringify({section:e,values:t})})}async function p(e,t){await s(`/api/hermes/config/credentials`,{method:`PUT`,body:JSON.stringify({platform:e,values:t})})}async function m(){return s(`/api/hermes/weixin/qrcode`)}async function h(e){return s(`/api/hermes/weixin/qrcode/status?qrcode=${encodeURIComponent(e)}`)}async function g(e){await s(`/api/hermes/weixin/save`,{method:`POST`,body:JSON.stringify(e)})}var _=l(`settings`,()=>{let e=i(!1),t=i(!1),n=i({}),r=i({}),a=i({}),o=i({}),s=i({}),c=i({}),l=i({}),u=i({}),p=i({}),m=i({}),h=i({}),g=i({}),_=i({}),v=i({}),y=i({});async function b(){e.value=!0;try{let e=await d();n.value=e.display||{},r.value=e.agent||{},a.value=e.memory||{},o.value=e.session_reset||{},s.value=e.privacy||{},c.value=e.telegram||{},l.value=e.discord||{},u.value=e.slack||{},p.value=e.whatsapp||{},m.value=e.matrix||{},h.value=e.wecom||{},g.value=e.feishu||{},_.value=e.dingtalk||{},v.value=e.weixin||{},y.value=e.platforms||{}}catch(e){console.error(`Failed to fetch settings:`,e)}finally{e.value=!1}}async function x(e,i){t.value=!0;try{switch(await f(e,i),e){case`display`:n.value={...n.value,...i};break;case`agent`:r.value={...r.value,...i};break;case`memory`:a.value={...a.value,...i};break;case`session_reset`:o.value={...o.value,...i};break;case`privacy`:s.value={...s.value,...i};break;case`telegram`:c.value={...c.value,...i};break;case`discord`:l.value={...l.value,...i};break;case`slack`:u.value={...u.value,...i};break;case`whatsapp`:p.value={...p.value,...i};break;case`matrix`:m.value={...m.value,...i};break;case`wechat`:case`wecom`:h.value={...h.value,...i};break;case`feishu`:g.value={...g.value,...i};break;case`dingtalk`:_.value={..._.value,...i};break;case`weixin`:v.value={...v.value,...i};break;case`platforms`:for(let[e,t]of Object.entries(i))y.value={...y.value,[e]:{...y.value[e]||{},...t}};break}}finally{t.value=!1}}return{loading:e,saving:t,display:n,agent:r,memory:a,sessionReset:o,privacy:s,telegram:c,discord:l,slack:u,whatsapp:p,matrix:m,wecom:h,feishu:g,dingtalk:_,weixin:v,platforms:y,fetchSettings:b,saveSection:x}}),v={class:`setting-row`},y={class:`setting-info`},b={class:`setting-label`},x={key:0,class:`setting-hint`},S={class:`setting-control`},C=u(o({__name:`SettingRow`,props:{label:{},hint:{}},setup(i){return(o,s)=>(n(),e(`div`,v,[c(`div`,y,[c(`label`,b,a(i.label),1),i.hint?(n(),e(`p`,x,a(i.hint),1)):t(``,!0)]),c(`div`,S,[r(o.$slots,`default`,{},void 0,!0)])]))}}),[[`__scopeId`,`data-v-b81640b4`]]);export{p as a,h as i,_ as n,g as o,m as r,C as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
[data-v-e737ef30]:root{--bg-primary:#fafafa;--bg-secondary:#f0f0f0;--bg-sidebar:#f5f5f5;--bg-card:#fff;--bg-card-hover:#fafafa;--bg-input:#fff;--border-color:#e0e0e0;--border-light:#ebebeb;--accent-primary:#333;--accent-hover:#1a1a1a;--accent-muted:#888;--text-primary:#1a1a1a;--text-secondary:#666;--text-muted:#999;--success:#2e7d32;--error:#c62828;--warning:#f57f17;--msg-user-bg:#f5f5f5;--msg-assistant-bg:#f5f5f5;--msg-system-border:#bdbdbd;--code-bg:#f4f4f4;--text-on-accent:#fff;--text-on-overlay:#fff;--accent-info:#4a90d9;--accent-primary-rgb:51, 51, 51;--accent-hover-rgb:26, 26, 26;--text-primary-rgb:26, 26, 26;--text-muted-rgb:153, 153, 153;--success-rgb:46, 125, 50;--error-rgb:198, 40, 40;--warning-rgb:245, 127, 23;--accent-info-rgb:74, 144, 217}.dark[data-v-e737ef30]{--bg-primary:#1a1a1a;--bg-secondary:#252525;--bg-sidebar:#202020;--bg-card:#333;--bg-card-hover:#333;--bg-input:#2a2a2a;--border-color:#3a3a3a;--border-light:#333;--accent-primary:#e0e0e0;--accent-hover:#f5f5f5;--accent-muted:#888;--text-primary:#f0f0f0;--text-secondary:silver;--text-muted:#888;--success:#66bb6a;--error:#ef5350;--warning:#ffb74d;--msg-user-bg:#252525;--msg-assistant-bg:#252525;--msg-system-border:#555;--code-bg:#1e1e1e;--text-on-accent:#1a1a1a;--text-on-overlay:#fff;--accent-info:#6ba3d6;--accent-primary-rgb:240, 240, 240;--accent-hover-rgb:245, 245, 245;--text-primary-rgb:240, 240, 240;--text-muted-rgb:136, 136, 136;--success-rgb:102, 187, 106;--error-rgb:239, 83, 80;--warning-rgb:255, 183, 77;--accent-info-rgb:107, 163, 214}.settings-section[data-v-e737ef30]{margin-top:16px}[data-v-1f96245d]:root{--bg-primary:#fafafa;--bg-secondary:#f0f0f0;--bg-sidebar:#f5f5f5;--bg-card:#fff;--bg-card-hover:#fafafa;--bg-input:#fff;--border-color:#e0e0e0;--border-light:#ebebeb;--accent-primary:#333;--accent-hover:#1a1a1a;--accent-muted:#888;--text-primary:#1a1a1a;--text-secondary:#666;--text-muted:#999;--success:#2e7d32;--error:#c62828;--warning:#f57f17;--msg-user-bg:#f5f5f5;--msg-assistant-bg:#f5f5f5;--msg-system-border:#bdbdbd;--code-bg:#f4f4f4;--text-on-accent:#fff;--text-on-overlay:#fff;--accent-info:#4a90d9;--accent-primary-rgb:51, 51, 51;--accent-hover-rgb:26, 26, 26;--text-primary-rgb:26, 26, 26;--text-muted-rgb:153, 153, 153;--success-rgb:46, 125, 50;--error-rgb:198, 40, 40;--warning-rgb:245, 127, 23;--accent-info-rgb:74, 144, 217}.dark[data-v-1f96245d]{--bg-primary:#1a1a1a;--bg-secondary:#252525;--bg-sidebar:#202020;--bg-card:#333;--bg-card-hover:#333;--bg-input:#2a2a2a;--border-color:#3a3a3a;--border-light:#333;--accent-primary:#e0e0e0;--accent-hover:#f5f5f5;--accent-muted:#888;--text-primary:#f0f0f0;--text-secondary:silver;--text-muted:#888;--success:#66bb6a;--error:#ef5350;--warning:#ffb74d;--msg-user-bg:#252525;--msg-assistant-bg:#252525;--msg-system-border:#555;--code-bg:#1e1e1e;--text-on-accent:#1a1a1a;--text-on-overlay:#fff;--accent-info:#6ba3d6;--accent-primary-rgb:240, 240, 240;--accent-hover-rgb:245, 245, 245;--text-primary-rgb:240, 240, 240;--text-muted-rgb:136, 136, 136;--success-rgb:102, 187, 106;--error-rgb:239, 83, 80;--warning-rgb:255, 183, 77;--accent-info-rgb:107, 163, 214}.settings-section[data-v-1f96245d]{margin-top:16px}[data-v-0c8e2aa7]:root{--bg-primary:#fafafa;--bg-secondary:#f0f0f0;--bg-sidebar:#f5f5f5;--bg-card:#fff;--bg-card-hover:#fafafa;--bg-input:#fff;--border-color:#e0e0e0;--border-light:#ebebeb;--accent-primary:#333;--accent-hover:#1a1a1a;--accent-muted:#888;--text-primary:#1a1a1a;--text-secondary:#666;--text-muted:#999;--success:#2e7d32;--error:#c62828;--warning:#f57f17;--msg-user-bg:#f5f5f5;--msg-assistant-bg:#f5f5f5;--msg-system-border:#bdbdbd;--code-bg:#f4f4f4;--text-on-accent:#fff;--text-on-overlay:#fff;--accent-info:#4a90d9;--accent-primary-rgb:51, 51, 51;--accent-hover-rgb:26, 26, 26;--text-primary-rgb:26, 26, 26;--text-muted-rgb:153, 153, 153;--success-rgb:46, 125, 50;--error-rgb:198, 40, 40;--warning-rgb:245, 127, 23;--accent-info-rgb:74, 144, 217}.dark[data-v-0c8e2aa7]{--bg-primary:#1a1a1a;--bg-secondary:#252525;--bg-sidebar:#202020;--bg-card:#333;--bg-card-hover:#333;--bg-input:#2a2a2a;--border-color:#3a3a3a;--border-light:#333;--accent-primary:#e0e0e0;--accent-hover:#f5f5f5;--accent-muted:#888;--text-primary:#f0f0f0;--text-secondary:silver;--text-muted:#888;--success:#66bb6a;--error:#ef5350;--warning:#ffb74d;--msg-user-bg:#252525;--msg-assistant-bg:#252525;--msg-system-border:#555;--code-bg:#1e1e1e;--text-on-accent:#1a1a1a;--text-on-overlay:#fff;--accent-info:#6ba3d6;--accent-primary-rgb:240, 240, 240;--accent-hover-rgb:245, 245, 245;--text-primary-rgb:240, 240, 240;--text-muted-rgb:136, 136, 136;--success-rgb:102, 187, 106;--error-rgb:239, 83, 80;--warning-rgb:255, 183, 77;--accent-info-rgb:107, 163, 214}.settings-section[data-v-0c8e2aa7]{margin-top:16px}[data-v-46301ac7]:root{--bg-primary:#fafafa;--bg-secondary:#f0f0f0;--bg-sidebar:#f5f5f5;--bg-card:#fff;--bg-card-hover:#fafafa;--bg-input:#fff;--border-color:#e0e0e0;--border-light:#ebebeb;--accent-primary:#333;--accent-hover:#1a1a1a;--accent-muted:#888;--text-primary:#1a1a1a;--text-secondary:#666;--text-muted:#999;--success:#2e7d32;--error:#c62828;--warning:#f57f17;--msg-user-bg:#f5f5f5;--msg-assistant-bg:#f5f5f5;--msg-system-border:#bdbdbd;--code-bg:#f4f4f4;--text-on-accent:#fff;--text-on-overlay:#fff;--accent-info:#4a90d9;--accent-primary-rgb:51, 51, 51;--accent-hover-rgb:26, 26, 26;--text-primary-rgb:26, 26, 26;--text-muted-rgb:153, 153, 153;--success-rgb:46, 125, 50;--error-rgb:198, 40, 40;--warning-rgb:245, 127, 23;--accent-info-rgb:74, 144, 217}.dark[data-v-46301ac7]{--bg-primary:#1a1a1a;--bg-secondary:#252525;--bg-sidebar:#202020;--bg-card:#333;--bg-card-hover:#333;--bg-input:#2a2a2a;--border-color:#3a3a3a;--border-light:#333;--accent-primary:#e0e0e0;--accent-hover:#f5f5f5;--accent-muted:#888;--text-primary:#f0f0f0;--text-secondary:silver;--text-muted:#888;--success:#66bb6a;--error:#ef5350;--warning:#ffb74d;--msg-user-bg:#252525;--msg-assistant-bg:#252525;--msg-system-border:#555;--code-bg:#1e1e1e;--text-on-accent:#1a1a1a;--text-on-overlay:#fff;--accent-info:#6ba3d6;--accent-primary-rgb:240, 240, 240;--accent-hover-rgb:245, 245, 245;--text-primary-rgb:240, 240, 240;--text-muted-rgb:136, 136, 136;--success-rgb:102, 187, 106;--error-rgb:239, 83, 80;--warning-rgb:255, 183, 77;--accent-info-rgb:107, 163, 214}.settings-section[data-v-46301ac7]{margin-top:16px}[data-v-43145f27]:root{--bg-primary:#fafafa;--bg-secondary:#f0f0f0;--bg-sidebar:#f5f5f5;--bg-card:#fff;--bg-card-hover:#fafafa;--bg-input:#fff;--border-color:#e0e0e0;--border-light:#ebebeb;--accent-primary:#333;--accent-hover:#1a1a1a;--accent-muted:#888;--text-primary:#1a1a1a;--text-secondary:#666;--text-muted:#999;--success:#2e7d32;--error:#c62828;--warning:#f57f17;--msg-user-bg:#f5f5f5;--msg-assistant-bg:#f5f5f5;--msg-system-border:#bdbdbd;--code-bg:#f4f4f4;--text-on-accent:#fff;--text-on-overlay:#fff;--accent-info:#4a90d9;--accent-primary-rgb:51, 51, 51;--accent-hover-rgb:26, 26, 26;--text-primary-rgb:26, 26, 26;--text-muted-rgb:153, 153, 153;--success-rgb:46, 125, 50;--error-rgb:198, 40, 40;--warning-rgb:245, 127, 23;--accent-info-rgb:74, 144, 217}.dark[data-v-43145f27]{--bg-primary:#1a1a1a;--bg-secondary:#252525;--bg-sidebar:#202020;--bg-card:#333;--bg-card-hover:#333;--bg-input:#2a2a2a;--border-color:#3a3a3a;--border-light:#333;--accent-primary:#e0e0e0;--accent-hover:#f5f5f5;--accent-muted:#888;--text-primary:#f0f0f0;--text-secondary:silver;--text-muted:#888;--success:#66bb6a;--error:#ef5350;--warning:#ffb74d;--msg-user-bg:#252525;--msg-assistant-bg:#252525;--msg-system-border:#555;--code-bg:#1e1e1e;--text-on-accent:#1a1a1a;--text-on-overlay:#fff;--accent-info:#6ba3d6;--accent-primary-rgb:240, 240, 240;--accent-hover-rgb:245, 245, 245;--text-primary-rgb:240, 240, 240;--text-muted-rgb:136, 136, 136;--success-rgb:102, 187, 106;--error-rgb:239, 83, 80;--warning-rgb:255, 183, 77;--accent-info-rgb:107, 163, 214}.settings-section[data-v-43145f27]{margin-top:16px}[data-v-d6519d29]:root{--bg-primary:#fafafa;--bg-secondary:#f0f0f0;--bg-sidebar:#f5f5f5;--bg-card:#fff;--bg-card-hover:#fafafa;--bg-input:#fff;--border-color:#e0e0e0;--border-light:#ebebeb;--accent-primary:#333;--accent-hover:#1a1a1a;--accent-muted:#888;--text-primary:#1a1a1a;--text-secondary:#666;--text-muted:#999;--success:#2e7d32;--error:#c62828;--warning:#f57f17;--msg-user-bg:#f5f5f5;--msg-assistant-bg:#f5f5f5;--msg-system-border:#bdbdbd;--code-bg:#f4f4f4;--text-on-accent:#fff;--text-on-overlay:#fff;--accent-info:#4a90d9;--accent-primary-rgb:51, 51, 51;--accent-hover-rgb:26, 26, 26;--text-primary-rgb:26, 26, 26;--text-muted-rgb:153, 153, 153;--success-rgb:46, 125, 50;--error-rgb:198, 40, 40;--warning-rgb:245, 127, 23;--accent-info-rgb:74, 144, 217}.dark[data-v-d6519d29]{--bg-primary:#1a1a1a;--bg-secondary:#252525;--bg-sidebar:#202020;--bg-card:#333;--bg-card-hover:#333;--bg-input:#2a2a2a;--border-color:#3a3a3a;--border-light:#333;--accent-primary:#e0e0e0;--accent-hover:#f5f5f5;--accent-muted:#888;--text-primary:#f0f0f0;--text-secondary:silver;--text-muted:#888;--success:#66bb6a;--error:#ef5350;--warning:#ffb74d;--msg-user-bg:#252525;--msg-assistant-bg:#252525;--msg-system-border:#555;--code-bg:#1e1e1e;--text-on-accent:#1a1a1a;--text-on-overlay:#fff;--accent-info:#6ba3d6;--accent-primary-rgb:240, 240, 240;--accent-hover-rgb:245, 245, 245;--text-primary-rgb:240, 240, 240;--text-muted-rgb:136, 136, 136;--success-rgb:102, 187, 106;--error-rgb:239, 83, 80;--warning-rgb:255, 183, 77;--accent-info-rgb:107, 163, 214}.settings-view[data-v-d6519d29]{height:calc(100 * var(--vh));flex-direction:column;display:flex}.settings-content[data-v-d6519d29]{flex:1;padding:20px;overflow-y:auto}
|
|
1
|
+
[data-v-e737ef30]:root{--bg-primary:#fafafa;--bg-secondary:#f0f0f0;--bg-sidebar:#f5f5f5;--bg-card:#fff;--bg-card-hover:#fafafa;--bg-input:#fff;--border-color:#e0e0e0;--border-light:#ebebeb;--accent-primary:#333;--accent-hover:#1a1a1a;--accent-muted:#888;--text-primary:#1a1a1a;--text-secondary:#666;--text-muted:#999;--success:#2e7d32;--error:#c62828;--warning:#f57f17;--msg-user-bg:#f5f5f5;--msg-assistant-bg:#f5f5f5;--msg-system-border:#bdbdbd;--code-bg:#f4f4f4;--text-on-accent:#fff;--text-on-overlay:#fff;--accent-info:#4a90d9;--accent-primary-rgb:51, 51, 51;--accent-hover-rgb:26, 26, 26;--text-primary-rgb:26, 26, 26;--text-muted-rgb:153, 153, 153;--success-rgb:46, 125, 50;--error-rgb:198, 40, 40;--warning-rgb:245, 127, 23;--accent-info-rgb:74, 144, 217}.dark[data-v-e737ef30]{--bg-primary:#1a1a1a;--bg-secondary:#252525;--bg-sidebar:#202020;--bg-card:#333;--bg-card-hover:#333;--bg-input:#2a2a2a;--border-color:#3a3a3a;--border-light:#333;--accent-primary:#e0e0e0;--accent-hover:#f5f5f5;--accent-muted:#888;--text-primary:#f0f0f0;--text-secondary:silver;--text-muted:#888;--success:#66bb6a;--error:#ef5350;--warning:#ffb74d;--msg-user-bg:#252525;--msg-assistant-bg:#252525;--msg-system-border:#555;--code-bg:#1e1e1e;--text-on-accent:#1a1a1a;--text-on-overlay:#fff;--accent-info:#6ba3d6;--accent-primary-rgb:240, 240, 240;--accent-hover-rgb:245, 245, 245;--text-primary-rgb:240, 240, 240;--text-muted-rgb:136, 136, 136;--success-rgb:102, 187, 106;--error-rgb:239, 83, 80;--warning-rgb:255, 183, 77;--accent-info-rgb:107, 163, 214}.settings-section[data-v-e737ef30]{margin-top:16px}[data-v-1f96245d]:root{--bg-primary:#fafafa;--bg-secondary:#f0f0f0;--bg-sidebar:#f5f5f5;--bg-card:#fff;--bg-card-hover:#fafafa;--bg-input:#fff;--border-color:#e0e0e0;--border-light:#ebebeb;--accent-primary:#333;--accent-hover:#1a1a1a;--accent-muted:#888;--text-primary:#1a1a1a;--text-secondary:#666;--text-muted:#999;--success:#2e7d32;--error:#c62828;--warning:#f57f17;--msg-user-bg:#f5f5f5;--msg-assistant-bg:#f5f5f5;--msg-system-border:#bdbdbd;--code-bg:#f4f4f4;--text-on-accent:#fff;--text-on-overlay:#fff;--accent-info:#4a90d9;--accent-primary-rgb:51, 51, 51;--accent-hover-rgb:26, 26, 26;--text-primary-rgb:26, 26, 26;--text-muted-rgb:153, 153, 153;--success-rgb:46, 125, 50;--error-rgb:198, 40, 40;--warning-rgb:245, 127, 23;--accent-info-rgb:74, 144, 217}.dark[data-v-1f96245d]{--bg-primary:#1a1a1a;--bg-secondary:#252525;--bg-sidebar:#202020;--bg-card:#333;--bg-card-hover:#333;--bg-input:#2a2a2a;--border-color:#3a3a3a;--border-light:#333;--accent-primary:#e0e0e0;--accent-hover:#f5f5f5;--accent-muted:#888;--text-primary:#f0f0f0;--text-secondary:silver;--text-muted:#888;--success:#66bb6a;--error:#ef5350;--warning:#ffb74d;--msg-user-bg:#252525;--msg-assistant-bg:#252525;--msg-system-border:#555;--code-bg:#1e1e1e;--text-on-accent:#1a1a1a;--text-on-overlay:#fff;--accent-info:#6ba3d6;--accent-primary-rgb:240, 240, 240;--accent-hover-rgb:245, 245, 245;--text-primary-rgb:240, 240, 240;--text-muted-rgb:136, 136, 136;--success-rgb:102, 187, 106;--error-rgb:239, 83, 80;--warning-rgb:255, 183, 77;--accent-info-rgb:107, 163, 214}.settings-section[data-v-1f96245d]{margin-top:16px}[data-v-0c8e2aa7]:root{--bg-primary:#fafafa;--bg-secondary:#f0f0f0;--bg-sidebar:#f5f5f5;--bg-card:#fff;--bg-card-hover:#fafafa;--bg-input:#fff;--border-color:#e0e0e0;--border-light:#ebebeb;--accent-primary:#333;--accent-hover:#1a1a1a;--accent-muted:#888;--text-primary:#1a1a1a;--text-secondary:#666;--text-muted:#999;--success:#2e7d32;--error:#c62828;--warning:#f57f17;--msg-user-bg:#f5f5f5;--msg-assistant-bg:#f5f5f5;--msg-system-border:#bdbdbd;--code-bg:#f4f4f4;--text-on-accent:#fff;--text-on-overlay:#fff;--accent-info:#4a90d9;--accent-primary-rgb:51, 51, 51;--accent-hover-rgb:26, 26, 26;--text-primary-rgb:26, 26, 26;--text-muted-rgb:153, 153, 153;--success-rgb:46, 125, 50;--error-rgb:198, 40, 40;--warning-rgb:245, 127, 23;--accent-info-rgb:74, 144, 217}.dark[data-v-0c8e2aa7]{--bg-primary:#1a1a1a;--bg-secondary:#252525;--bg-sidebar:#202020;--bg-card:#333;--bg-card-hover:#333;--bg-input:#2a2a2a;--border-color:#3a3a3a;--border-light:#333;--accent-primary:#e0e0e0;--accent-hover:#f5f5f5;--accent-muted:#888;--text-primary:#f0f0f0;--text-secondary:silver;--text-muted:#888;--success:#66bb6a;--error:#ef5350;--warning:#ffb74d;--msg-user-bg:#252525;--msg-assistant-bg:#252525;--msg-system-border:#555;--code-bg:#1e1e1e;--text-on-accent:#1a1a1a;--text-on-overlay:#fff;--accent-info:#6ba3d6;--accent-primary-rgb:240, 240, 240;--accent-hover-rgb:245, 245, 245;--text-primary-rgb:240, 240, 240;--text-muted-rgb:136, 136, 136;--success-rgb:102, 187, 106;--error-rgb:239, 83, 80;--warning-rgb:255, 183, 77;--accent-info-rgb:107, 163, 214}.settings-section[data-v-0c8e2aa7]{margin-top:16px}[data-v-46301ac7]:root{--bg-primary:#fafafa;--bg-secondary:#f0f0f0;--bg-sidebar:#f5f5f5;--bg-card:#fff;--bg-card-hover:#fafafa;--bg-input:#fff;--border-color:#e0e0e0;--border-light:#ebebeb;--accent-primary:#333;--accent-hover:#1a1a1a;--accent-muted:#888;--text-primary:#1a1a1a;--text-secondary:#666;--text-muted:#999;--success:#2e7d32;--error:#c62828;--warning:#f57f17;--msg-user-bg:#f5f5f5;--msg-assistant-bg:#f5f5f5;--msg-system-border:#bdbdbd;--code-bg:#f4f4f4;--text-on-accent:#fff;--text-on-overlay:#fff;--accent-info:#4a90d9;--accent-primary-rgb:51, 51, 51;--accent-hover-rgb:26, 26, 26;--text-primary-rgb:26, 26, 26;--text-muted-rgb:153, 153, 153;--success-rgb:46, 125, 50;--error-rgb:198, 40, 40;--warning-rgb:245, 127, 23;--accent-info-rgb:74, 144, 217}.dark[data-v-46301ac7]{--bg-primary:#1a1a1a;--bg-secondary:#252525;--bg-sidebar:#202020;--bg-card:#333;--bg-card-hover:#333;--bg-input:#2a2a2a;--border-color:#3a3a3a;--border-light:#333;--accent-primary:#e0e0e0;--accent-hover:#f5f5f5;--accent-muted:#888;--text-primary:#f0f0f0;--text-secondary:silver;--text-muted:#888;--success:#66bb6a;--error:#ef5350;--warning:#ffb74d;--msg-user-bg:#252525;--msg-assistant-bg:#252525;--msg-system-border:#555;--code-bg:#1e1e1e;--text-on-accent:#1a1a1a;--text-on-overlay:#fff;--accent-info:#6ba3d6;--accent-primary-rgb:240, 240, 240;--accent-hover-rgb:245, 245, 245;--text-primary-rgb:240, 240, 240;--text-muted-rgb:136, 136, 136;--success-rgb:102, 187, 106;--error-rgb:239, 83, 80;--warning-rgb:255, 183, 77;--accent-info-rgb:107, 163, 214}.settings-section[data-v-46301ac7]{margin-top:16px}[data-v-43145f27]:root{--bg-primary:#fafafa;--bg-secondary:#f0f0f0;--bg-sidebar:#f5f5f5;--bg-card:#fff;--bg-card-hover:#fafafa;--bg-input:#fff;--border-color:#e0e0e0;--border-light:#ebebeb;--accent-primary:#333;--accent-hover:#1a1a1a;--accent-muted:#888;--text-primary:#1a1a1a;--text-secondary:#666;--text-muted:#999;--success:#2e7d32;--error:#c62828;--warning:#f57f17;--msg-user-bg:#f5f5f5;--msg-assistant-bg:#f5f5f5;--msg-system-border:#bdbdbd;--code-bg:#f4f4f4;--text-on-accent:#fff;--text-on-overlay:#fff;--accent-info:#4a90d9;--accent-primary-rgb:51, 51, 51;--accent-hover-rgb:26, 26, 26;--text-primary-rgb:26, 26, 26;--text-muted-rgb:153, 153, 153;--success-rgb:46, 125, 50;--error-rgb:198, 40, 40;--warning-rgb:245, 127, 23;--accent-info-rgb:74, 144, 217}.dark[data-v-43145f27]{--bg-primary:#1a1a1a;--bg-secondary:#252525;--bg-sidebar:#202020;--bg-card:#333;--bg-card-hover:#333;--bg-input:#2a2a2a;--border-color:#3a3a3a;--border-light:#333;--accent-primary:#e0e0e0;--accent-hover:#f5f5f5;--accent-muted:#888;--text-primary:#f0f0f0;--text-secondary:silver;--text-muted:#888;--success:#66bb6a;--error:#ef5350;--warning:#ffb74d;--msg-user-bg:#252525;--msg-assistant-bg:#252525;--msg-system-border:#555;--code-bg:#1e1e1e;--text-on-accent:#1a1a1a;--text-on-overlay:#fff;--accent-info:#6ba3d6;--accent-primary-rgb:240, 240, 240;--accent-hover-rgb:245, 245, 245;--text-primary-rgb:240, 240, 240;--text-muted-rgb:136, 136, 136;--success-rgb:102, 187, 106;--error-rgb:239, 83, 80;--warning-rgb:255, 183, 77;--accent-info-rgb:107, 163, 214}.settings-section[data-v-43145f27]{margin-top:16px}[data-v-c28727b7]:root{--bg-primary:#fafafa;--bg-secondary:#f0f0f0;--bg-sidebar:#f5f5f5;--bg-card:#fff;--bg-card-hover:#fafafa;--bg-input:#fff;--border-color:#e0e0e0;--border-light:#ebebeb;--accent-primary:#333;--accent-hover:#1a1a1a;--accent-muted:#888;--text-primary:#1a1a1a;--text-secondary:#666;--text-muted:#999;--success:#2e7d32;--error:#c62828;--warning:#f57f17;--msg-user-bg:#f5f5f5;--msg-assistant-bg:#f5f5f5;--msg-system-border:#bdbdbd;--code-bg:#f4f4f4;--text-on-accent:#fff;--text-on-overlay:#fff;--accent-info:#4a90d9;--accent-primary-rgb:51, 51, 51;--accent-hover-rgb:26, 26, 26;--text-primary-rgb:26, 26, 26;--text-muted-rgb:153, 153, 153;--success-rgb:46, 125, 50;--error-rgb:198, 40, 40;--warning-rgb:245, 127, 23;--accent-info-rgb:74, 144, 217}.dark[data-v-c28727b7]{--bg-primary:#1a1a1a;--bg-secondary:#252525;--bg-sidebar:#202020;--bg-card:#333;--bg-card-hover:#333;--bg-input:#2a2a2a;--border-color:#3a3a3a;--border-light:#333;--accent-primary:#e0e0e0;--accent-hover:#f5f5f5;--accent-muted:#888;--text-primary:#f0f0f0;--text-secondary:silver;--text-muted:#888;--success:#66bb6a;--error:#ef5350;--warning:#ffb74d;--msg-user-bg:#252525;--msg-assistant-bg:#252525;--msg-system-border:#555;--code-bg:#1e1e1e;--text-on-accent:#1a1a1a;--text-on-overlay:#fff;--accent-info:#6ba3d6;--accent-primary-rgb:240, 240, 240;--accent-hover-rgb:245, 245, 245;--text-primary-rgb:240, 240, 240;--text-muted-rgb:136, 136, 136;--success-rgb:102, 187, 106;--error-rgb:239, 83, 80;--warning-rgb:255, 183, 77;--accent-info-rgb:107, 163, 214}.settings-section[data-v-c28727b7]{margin-top:16px}.empty-hint[data-v-c28727b7]{padding:40px 0}.provider-section[data-v-c28727b7]{border:1px solid var(--border-color);background:var(--bg-card);border-radius:10px;margin-bottom:14px;padding:16px}.provider-header[data-v-c28727b7]{justify-content:space-between;align-items:center;margin-bottom:12px;display:flex}.provider-name[data-v-c28727b7]{color:var(--text-primary);margin:0;font-size:14px;font-weight:600}.type-badge[data-v-c28727b7]{border-radius:10px;padding:2px 8px;font-size:11px;font-weight:500}.type-badge.builtin[data-v-c28727b7]{background:rgba(var(--accent-primary-rgb), .12);color:var(--accent-primary)}.type-badge.custom[data-v-c28727b7]{background:rgba(var(--success-rgb), .12);color:var(--success)}.provider-fields[data-v-c28727b7]{flex-direction:column;gap:10px;display:flex}.field-row[data-v-c28727b7]{align-items:center;gap:10px;display:flex}.field-row .n-input[data-v-c28727b7]{flex:1}[data-v-d24400e9]:root{--bg-primary:#fafafa;--bg-secondary:#f0f0f0;--bg-sidebar:#f5f5f5;--bg-card:#fff;--bg-card-hover:#fafafa;--bg-input:#fff;--border-color:#e0e0e0;--border-light:#ebebeb;--accent-primary:#333;--accent-hover:#1a1a1a;--accent-muted:#888;--text-primary:#1a1a1a;--text-secondary:#666;--text-muted:#999;--success:#2e7d32;--error:#c62828;--warning:#f57f17;--msg-user-bg:#f5f5f5;--msg-assistant-bg:#f5f5f5;--msg-system-border:#bdbdbd;--code-bg:#f4f4f4;--text-on-accent:#fff;--text-on-overlay:#fff;--accent-info:#4a90d9;--accent-primary-rgb:51, 51, 51;--accent-hover-rgb:26, 26, 26;--text-primary-rgb:26, 26, 26;--text-muted-rgb:153, 153, 153;--success-rgb:46, 125, 50;--error-rgb:198, 40, 40;--warning-rgb:245, 127, 23;--accent-info-rgb:74, 144, 217}.dark[data-v-d24400e9]{--bg-primary:#1a1a1a;--bg-secondary:#252525;--bg-sidebar:#202020;--bg-card:#333;--bg-card-hover:#333;--bg-input:#2a2a2a;--border-color:#3a3a3a;--border-light:#333;--accent-primary:#e0e0e0;--accent-hover:#f5f5f5;--accent-muted:#888;--text-primary:#f0f0f0;--text-secondary:silver;--text-muted:#888;--success:#66bb6a;--error:#ef5350;--warning:#ffb74d;--msg-user-bg:#252525;--msg-assistant-bg:#252525;--msg-system-border:#555;--code-bg:#1e1e1e;--text-on-accent:#1a1a1a;--text-on-overlay:#fff;--accent-info:#6ba3d6;--accent-primary-rgb:240, 240, 240;--accent-hover-rgb:245, 245, 245;--text-primary-rgb:240, 240, 240;--text-muted-rgb:136, 136, 136;--success-rgb:102, 187, 106;--error-rgb:239, 83, 80;--warning-rgb:255, 183, 77;--accent-info-rgb:107, 163, 214}.settings-view[data-v-d24400e9]{height:calc(100 * var(--vh));flex-direction:column;display:flex}.settings-content[data-v-d24400e9]{flex:1;padding:20px;overflow-y:auto}
|