@loop_ouroboros/mcp-hub-lite 1.0.0 → 1.0.2

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.
Files changed (129) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/README.md +15 -0
  3. package/dist/client/assets/{HomeView-f901HeKw.js → HomeView-7rMg9C6t.js} +1 -1
  4. package/dist/client/assets/{ResourceDetailView-Bz66ZjfY.js → ResourceDetailView-Bf-1ffbk.js} +1 -1
  5. package/dist/client/assets/ResourcesView-g5x4xCPh.js +1 -0
  6. package/dist/client/assets/{ServerDashboard-7_8Og9JJ.css → ServerDashboard-Chpne8Q0.css} +1 -1
  7. package/dist/client/assets/ServerDashboard-G8Wmp4hF.js +2 -0
  8. package/dist/client/assets/ServerListView-dV2XrPjo.js +32 -0
  9. package/dist/client/assets/SessionsView-Ckd38lj1.js +1 -0
  10. package/dist/client/assets/SettingsView-BJUdepEQ.js +1 -0
  11. package/dist/client/assets/ToolCallDialog-BhdPX-Kf.css +1 -0
  12. package/dist/client/assets/ToolCallDialog-C_bTCpHC.js +1 -0
  13. package/dist/client/assets/ToolsView-0c2eputu.js +1 -0
  14. package/dist/client/assets/ToolsView-E3Ps9c7i.css +1 -0
  15. package/dist/client/assets/{_baseClone-DCmK847M.js → _baseClone-5q1b0P3O.js} +1 -1
  16. package/dist/client/assets/{el-form-item-DM0q2hmO.js → el-form-item-ClFnj49k.js} +1 -1
  17. package/dist/client/assets/{el-input-BtI9NECe.js → el-input-CDnuSKVZ.js} +1 -1
  18. package/dist/client/assets/{el-loading-CChNmKeI.js → el-loading-H85n3BUC.js} +1 -1
  19. package/dist/client/assets/{el-overlay-lZZbPmsX.js → el-overlay-CzMkXyYy.js} +1 -1
  20. package/dist/client/assets/el-select-DvjGddk_.js +1 -0
  21. package/dist/client/assets/{el-tab-pane-Dy9ruaEX.js → el-tab-pane-C_DQMcwe.js} +1 -1
  22. package/dist/client/assets/{el-table-column-98UyVgBH.js → el-table-column-CASRIbZM.js} +1 -1
  23. package/dist/client/assets/el-tag-npbwux4f.js +1 -0
  24. package/dist/client/assets/{index-CSTs2jYk.js → index-CCnAxNF8.js} +2 -2
  25. package/dist/client/assets/{index-BzQXG7no.js → index-d1DZeSfz.js} +1 -1
  26. package/dist/client/assets/{omit-Bx5HJNV_.js → omit-DPsOVNIJ.js} +1 -1
  27. package/dist/client/assets/{raf-B9VDMtMF.js → raf-DY5mgbuB.js} +1 -1
  28. package/dist/client/assets/{vnode-B8aJx8u4.js → vnode-CHomNjgN.js} +1 -1
  29. package/dist/client/index.html +1 -1
  30. package/dist/server/shared/models/server.model.d.ts +1 -0
  31. package/dist/server/shared/models/server.model.d.ts.map +1 -1
  32. package/dist/server/shared/models/session.model.d.ts +2 -0
  33. package/dist/server/shared/models/session.model.d.ts.map +1 -1
  34. package/dist/server/shared/models/session.model.js +1 -0
  35. package/dist/server/shared/types/client.types.d.ts +4 -32
  36. package/dist/server/shared/types/client.types.d.ts.map +1 -1
  37. package/dist/server/shared/types/client.types.js +3 -2
  38. package/dist/server/shared/types/index.d.ts +3 -3
  39. package/dist/server/shared/types/index.d.ts.map +1 -1
  40. package/dist/server/shared/types/index.js +3 -3
  41. package/dist/server/shared/types/session-context.types.d.ts +37 -0
  42. package/dist/server/shared/types/session-context.types.d.ts.map +1 -0
  43. package/dist/server/shared/types/session-context.types.js +5 -0
  44. package/dist/server/src/api/mcp/debug-response-wrapper.d.ts.map +1 -1
  45. package/dist/server/src/api/mcp/debug-response-wrapper.js +26 -1
  46. package/dist/server/src/api/mcp/gateway.d.ts.map +1 -1
  47. package/dist/server/src/api/mcp/gateway.js +28 -24
  48. package/dist/server/src/api/mcp/session-context-extractor.d.ts +5 -5
  49. package/dist/server/src/api/mcp/session-context-extractor.d.ts.map +1 -1
  50. package/dist/server/src/api/mcp/session-context-extractor.js +12 -27
  51. package/dist/server/src/api/web/clients.js +2 -2
  52. package/dist/server/src/api/web/hub-tools.d.ts.map +1 -1
  53. package/dist/server/src/api/web/hub-tools.js +4 -1
  54. package/dist/server/src/api/web/sessions.js +1 -1
  55. package/dist/server/src/app.d.ts.map +1 -1
  56. package/dist/server/src/app.js +0 -2
  57. package/dist/server/src/config/config.schema.d.ts +2 -0
  58. package/dist/server/src/config/config.schema.d.ts.map +1 -1
  59. package/dist/server/src/config/config.schema.js +1 -0
  60. package/dist/server/src/index.js +1 -1
  61. package/dist/server/src/services/client-tracker.service.d.ts +3 -128
  62. package/dist/server/src/services/client-tracker.service.d.ts.map +1 -1
  63. package/dist/server/src/services/client-tracker.service.js +4 -200
  64. package/dist/server/src/services/gateway/request-handlers/call-tool-handler.js +2 -2
  65. package/dist/server/src/services/gateway/request-handlers/initialize-handler.d.ts.map +1 -1
  66. package/dist/server/src/services/gateway/request-handlers/initialize-handler.js +40 -8
  67. package/dist/server/src/services/gateway/request-handlers/system-tools-handler.d.ts.map +1 -1
  68. package/dist/server/src/services/gateway/request-handlers/system-tools-handler.js +18 -6
  69. package/dist/server/src/services/gateway/tool-list-generator.js +2 -2
  70. package/dist/server/src/services/hub-tools/resource-generator.d.ts +1 -4
  71. package/dist/server/src/services/hub-tools/resource-generator.d.ts.map +1 -1
  72. package/dist/server/src/services/hub-tools/resource-generator.js +1 -26
  73. package/dist/server/src/services/search/search-cache.d.ts +0 -19
  74. package/dist/server/src/services/search/search-cache.d.ts.map +1 -1
  75. package/dist/server/src/services/search/search-cache.js +0 -24
  76. package/dist/server/src/services/session/session-manager.d.ts.map +1 -1
  77. package/dist/server/src/services/session/session-manager.js +11 -9
  78. package/dist/server/src/services/session-tracker.service.d.ts +132 -0
  79. package/dist/server/src/services/session-tracker.service.d.ts.map +1 -0
  80. package/dist/server/src/services/session-tracker.service.js +227 -0
  81. package/dist/server/src/utils/json-utils.d.ts.map +1 -1
  82. package/dist/server/src/utils/json-utils.js +6 -0
  83. package/dist/server/src/utils/logger/log-colors.d.ts +1 -0
  84. package/dist/server/src/utils/logger/log-colors.d.ts.map +1 -1
  85. package/dist/server/src/utils/logger/log-colors.js +2 -1
  86. package/dist/server/src/utils/logger/log-context.d.ts +1 -0
  87. package/dist/server/src/utils/logger/log-context.d.ts.map +1 -1
  88. package/dist/server/src/utils/logger/log-formatter.d.ts +28 -0
  89. package/dist/server/src/utils/logger/log-formatter.d.ts.map +1 -1
  90. package/dist/server/src/utils/logger/log-formatter.js +205 -0
  91. package/dist/server/src/utils/logger/log-modules.d.ts +3 -6
  92. package/dist/server/src/utils/logger/log-modules.d.ts.map +1 -1
  93. package/dist/server/src/utils/logger/log-modules.js +1 -3
  94. package/dist/server/src/utils/logger/log-output.d.ts +2 -2
  95. package/dist/server/src/utils/logger/log-output.d.ts.map +1 -1
  96. package/dist/server/src/utils/logger/log-output.js +27 -6
  97. package/dist/server/src/utils/logger/logger.d.ts +13 -0
  98. package/dist/server/src/utils/logger/logger.d.ts.map +1 -1
  99. package/dist/server/src/utils/logger/logger.js +42 -7
  100. package/dist/server/src/utils/request-context.d.ts +16 -16
  101. package/dist/server/src/utils/request-context.d.ts.map +1 -1
  102. package/dist/server/src/utils/request-context.js +14 -14
  103. package/dist/server/src/utils/tool-args-parser.d.ts +0 -4
  104. package/dist/server/src/utils/tool-args-parser.d.ts.map +1 -1
  105. package/dist/server/src/utils/tool-args-parser.js +0 -7
  106. package/dist/server/src/utils/transports/stdio-transport.js +1 -1
  107. package/dist/server/src/utils/transports/transport-factory.js +2 -2
  108. package/dist/server/tests/integration/api/gateway.test.js +22 -37
  109. package/dist/server/tests/temp/test-stack.d.ts +6 -0
  110. package/dist/server/tests/temp/test-stack.d.ts.map +1 -0
  111. package/dist/server/tests/temp/test-stack.js +40 -0
  112. package/dist/server/tests/unit/services/hub-tools.service.test.js +1 -15
  113. package/dist/server/tests/unit/services/session-manager.test.js +1 -1
  114. package/dist/server/tests/unit/utils/json-utils.test.js +94 -0
  115. package/dist/server/tests/unit/utils/logger.test.js +101 -0
  116. package/dist/server/tests/unit/utils/request-context.test.js +12 -12
  117. package/package.json +1 -1
  118. package/dist/client/assets/ResourcesView-lI_fItfA.js +0 -1
  119. package/dist/client/assets/ServerDashboard-Bgx8WVkx.js +0 -2
  120. package/dist/client/assets/ServerListView-CP6Ffkfx.js +0 -30
  121. package/dist/client/assets/SessionsView-D68qKR4D.js +0 -1
  122. package/dist/client/assets/SettingsView-BPYfO9BE.js +0 -1
  123. package/dist/client/assets/ToolCallDialog-Br8FNebN.js +0 -1
  124. package/dist/client/assets/ToolCallDialog-C7eh7jHE.css +0 -1
  125. package/dist/client/assets/ToolsView-B6hUiR43.js +0 -1
  126. package/dist/client/assets/ToolsView-BLnU8cV6.css +0 -1
  127. package/dist/client/assets/el-select-BXztu2b5.js +0 -1
  128. package/dist/client/assets/el-tag-B5lLT51E.js +0 -1
  129. package/dist/client/assets/index-BgKcmWJr.js +0 -1
@@ -1,2 +1,2 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/HomeView-f901HeKw.js","assets/index-BzQXG7no.js","assets/vue-vendor-6ny5zj9i.js","assets/typescript-Bp3YSIOJ.js","assets/ServerDashboard-Bgx8WVkx.js","assets/el-overlay-lZZbPmsX.js","assets/vnode-B8aJx8u4.js","assets/event-BB_Ol6Sd.js","assets/el-overlay-B2ZKM6Up.css","assets/_plugin-vue_export-helper-DlAUqK2U.js","assets/el-tab-pane-Dy9ruaEX.js","assets/raf-B9VDMtMF.js","assets/el-select-BXztu2b5.js","assets/index-BgKcmWJr.js","assets/el-input-BtI9NECe.js","assets/el-input-CmuHb8HS.css","assets/el-tag-B5lLT51E.js","assets/el-tag-DjxZVOpb.css","assets/el-select-C0U_l4IZ.css","assets/omit-Bx5HJNV_.js","assets/_baseClone-DCmK847M.js","assets/el-tab-pane-CnNoQHsR.css","assets/el-table-column-98UyVgBH.js","assets/el-table-column-T_mV9jNw.css","assets/el-form-item-DM0q2hmO.js","assets/el-form-item-BVMLpmVC.css","assets/ToolCallDialog-Br8FNebN.js","assets/ToolCallDialog-C7eh7jHE.css","assets/ServerStatusTags.vue_vue_type_script_setup_true_lang-BHiTFM7-.js","assets/ServerDashboard-7_8Og9JJ.css","assets/ServerListView-CP6Ffkfx.js","assets/ServerListView-Bws09jNR.css","assets/ToolsView-B6hUiR43.js","assets/ToolsView-BLnU8cV6.css","assets/ResourcesView-lI_fItfA.js","assets/ResourcesView-CjMklkyv.css","assets/SessionsView-D68qKR4D.js","assets/el-loading-CChNmKeI.js","assets/el-loading-bpKhqqQq.css","assets/ResourceDetailView-Bz66ZjfY.js","assets/ResourceDetailView-BdOaL_-o.css","assets/SettingsView-BPYfO9BE.js"])))=>i.map(i=>d[i]);
2
- import{g as ve,i as j,r as O,c as C,u as _,a as Yn,b as Bt,d as $t,w as U,e as Fs,o as ks,f as ce,n as Qe,s as Go,h as Ls,j as pn,k as Ms,l as Dr,m as Ds,p as Ye,q as ue,t as L,v as G,x as Z,y as x,T as Bs,N as nn,z as $s,A as D,B as Fe,C as F,D as le,E as Ns,F as me,G as $,H as Zn,I as rn,J,K as Rt,L as qo,M as Jo,O as H,P as vn,Q as Yo,R as Hs,S as zs,U as Ae,V as At,W as js,X as Br,Y as Zo,Z as Vs,_ as Us,$ as Ne,a0 as Ks,a1 as ie,a2 as Ws,a3 as Gs,a4 as qs,a5 as Nt,a6 as Xo,a7 as Js,a8 as Ys,a9 as at,aa as Zs,ab as Xs,ac as Qs,ad as ei,ae as ti}from"./vue-vendor-6ny5zj9i.js";(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const a of o)if(a.type==="childList")for(const s of a.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(o){const a={};return o.integrity&&(a.integrity=o.integrity),o.referrerPolicy&&(a.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?a.credentials="include":o.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function r(o){if(o.ep)return;o.ep=!0;const a=n(o);fetch(o.href,a)}})();const Qo=Symbol(),en="el",ni="is-",qe=(e,t,n,r,o)=>{let a=`${e}-${t}`;return n&&(a+=`-${n}`),r&&(a+=`__${r}`),o&&(a+=`--${o}`),a},ea=Symbol("namespaceContextKey"),Xn=e=>{const t=e||(ve()?j(ea,O(en)):O(en));return C(()=>_(t)||en)},se=(e,t)=>{const n=Xn(t);return{namespace:n,b:(g="")=>qe(n.value,e,g,"",""),e:g=>g?qe(n.value,e,"",g,""):"",m:g=>g?qe(n.value,e,"","",g):"",be:(g,w)=>g&&w?qe(n.value,e,g,w,""):"",em:(g,w)=>g&&w?qe(n.value,e,"",g,w):"",bm:(g,w)=>g&&w?qe(n.value,e,g,"",w):"",bem:(g,w,b)=>g&&w&&b?qe(n.value,e,g,w,b):"",is:(g,...w)=>{const b=w.length>=1?w[0]:!0;return g&&b?`${ni}${g}`:""},cssVar:g=>{const w={};for(const b in g)g[b]&&(w[`--${n.value}-${b}`]=g[b]);return w},cssVarName:g=>`--${n.value}-${g}`,cssVarBlock:g=>{const w={};for(const b in g)g[b]&&(w[`--${n.value}-${e}-${b}`]=g[b]);return w},cssVarBlockName:g=>`--${n.value}-${e}-${g}`}};var ta=typeof global=="object"&&global&&global.Object===Object&&global,ri=typeof self=="object"&&self&&self.Object===Object&&self,Le=ta||ri||Function("return this")(),Oe=Le.Symbol,na=Object.prototype,oi=na.hasOwnProperty,ai=na.toString,Ct=Oe?Oe.toStringTag:void 0;function si(e){var t=oi.call(e,Ct),n=e[Ct];try{e[Ct]=void 0;var r=!0}catch{}var o=ai.call(e);return r&&(t?e[Ct]=n:delete e[Ct]),o}var ii=Object.prototype,li=ii.toString;function ui(e){return li.call(e)}var ci="[object Null]",di="[object Undefined]",$r=Oe?Oe.toStringTag:void 0;function yt(e){return e==null?e===void 0?di:ci:$r&&$r in Object(e)?si(e):ui(e)}function ft(e){return e!=null&&typeof e=="object"}var fi="[object Symbol]";function Qn(e){return typeof e=="symbol"||ft(e)&&yt(e)==fi}function pi(e,t){for(var n=-1,r=e==null?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}var xe=Array.isArray,Nr=Oe?Oe.prototype:void 0,Hr=Nr?Nr.toString:void 0;function ra(e){if(typeof e=="string")return e;if(xe(e))return pi(e,ra)+"";if(Qn(e))return Hr?Hr.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function on(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function vi(e){return e}var mi="[object AsyncFunction]",gi="[object Function]",hi="[object GeneratorFunction]",bi="[object Proxy]";function oa(e){if(!on(e))return!1;var t=yt(e);return t==gi||t==hi||t==mi||t==bi}var On=Le["__core-js_shared__"],zr=(function(){var e=/[^.]+$/.exec(On&&On.keys&&On.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""})();function yi(e){return!!zr&&zr in e}var wi=Function.prototype,_i=wi.toString;function tt(e){if(e!=null){try{return _i.call(e)}catch{}try{return e+""}catch{}}return""}var Ei=/[\\^$.*+?()[\]{}|]/g,Si=/^\[object .+?Constructor\]$/,Ci=Function.prototype,Ti=Object.prototype,Ai=Ci.toString,Oi=Ti.hasOwnProperty,xi=RegExp("^"+Ai.call(Oi).replace(Ei,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Ii(e){if(!on(e)||yi(e))return!1;var t=oa(e)?xi:Si;return t.test(tt(e))}function Pi(e,t){return e?.[t]}function nt(e,t){var n=Pi(e,t);return Ii(n)?n:void 0}var Dn=nt(Le,"WeakMap");function Ri(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}var Fi=800,ki=16,Li=Date.now;function Mi(e){var t=0,n=0;return function(){var r=Li(),o=ki-(r-n);if(n=r,o>0){if(++t>=Fi)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function Di(e){return function(){return e}}var an=(function(){try{var e=nt(Object,"defineProperty");return e({},"",{}),e}catch{}})(),Bi=an?function(e,t){return an(e,"toString",{configurable:!0,enumerable:!1,value:Di(t),writable:!0})}:vi,$i=Mi(Bi),Ni=9007199254740991,Hi=/^(?:0|[1-9]\d*)$/;function er(e,t){var n=typeof e;return t=t??Ni,!!t&&(n=="number"||n!="symbol"&&Hi.test(e))&&e>-1&&e%1==0&&e<t}function zi(e,t,n){t=="__proto__"&&an?an(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function tr(e,t){return e===t||e!==e&&t!==t}var ji=Object.prototype,Vi=ji.hasOwnProperty;function Ui(e,t,n){var r=e[t];(!(Vi.call(e,t)&&tr(r,n))||n===void 0&&!(t in e))&&zi(e,t,n)}var jr=Math.max;function Ki(e,t,n){return t=jr(t===void 0?e.length-1:t,0),function(){for(var r=arguments,o=-1,a=jr(r.length-t,0),s=Array(a);++o<a;)s[o]=r[t+o];o=-1;for(var i=Array(t+1);++o<t;)i[o]=r[o];return i[t]=n(s),Ri(e,this,i)}}var Wi=9007199254740991;function nr(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Wi}function Gi(e){return e!=null&&nr(e.length)&&!oa(e)}var qi=Object.prototype;function Ji(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||qi;return e===n}function Yi(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var Zi="[object Arguments]";function Vr(e){return ft(e)&&yt(e)==Zi}var aa=Object.prototype,Xi=aa.hasOwnProperty,Qi=aa.propertyIsEnumerable,rr=Vr((function(){return arguments})())?Vr:function(e){return ft(e)&&Xi.call(e,"callee")&&!Qi.call(e,"callee")};function el(){return!1}var sa=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Ur=sa&&typeof module=="object"&&module&&!module.nodeType&&module,tl=Ur&&Ur.exports===sa,Kr=tl?Le.Buffer:void 0,nl=Kr?Kr.isBuffer:void 0,Bn=nl||el,rl="[object Arguments]",ol="[object Array]",al="[object Boolean]",sl="[object Date]",il="[object Error]",ll="[object Function]",ul="[object Map]",cl="[object Number]",dl="[object Object]",fl="[object RegExp]",pl="[object Set]",vl="[object String]",ml="[object WeakMap]",gl="[object ArrayBuffer]",hl="[object DataView]",bl="[object Float32Array]",yl="[object Float64Array]",wl="[object Int8Array]",_l="[object Int16Array]",El="[object Int32Array]",Sl="[object Uint8Array]",Cl="[object Uint8ClampedArray]",Tl="[object Uint16Array]",Al="[object Uint32Array]",Y={};Y[bl]=Y[yl]=Y[wl]=Y[_l]=Y[El]=Y[Sl]=Y[Cl]=Y[Tl]=Y[Al]=!0;Y[rl]=Y[ol]=Y[gl]=Y[al]=Y[hl]=Y[sl]=Y[il]=Y[ll]=Y[ul]=Y[cl]=Y[dl]=Y[fl]=Y[pl]=Y[vl]=Y[ml]=!1;function Ol(e){return ft(e)&&nr(e.length)&&!!Y[yt(e)]}function xl(e){return function(t){return e(t)}}var ia=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Ot=ia&&typeof module=="object"&&module&&!module.nodeType&&module,Il=Ot&&Ot.exports===ia,xn=Il&&ta.process,Wr=(function(){try{var e=Ot&&Ot.require&&Ot.require("util").types;return e||xn&&xn.binding&&xn.binding("util")}catch{}})(),Gr=Wr&&Wr.isTypedArray,la=Gr?xl(Gr):Ol,Pl=Object.prototype,Rl=Pl.hasOwnProperty;function Fl(e,t){var n=xe(e),r=!n&&rr(e),o=!n&&!r&&Bn(e),a=!n&&!r&&!o&&la(e),s=n||r||o||a,i=s?Yi(e.length,String):[],l=i.length;for(var u in e)(t||Rl.call(e,u))&&!(s&&(u=="length"||o&&(u=="offset"||u=="parent")||a&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||er(u,l)))&&i.push(u);return i}function kl(e,t){return function(n){return e(t(n))}}var Ll=kl(Object.keys,Object),Ml=Object.prototype,Dl=Ml.hasOwnProperty;function Bl(e){if(!Ji(e))return Ll(e);var t=[];for(var n in Object(e))Dl.call(e,n)&&n!="constructor"&&t.push(n);return t}function $l(e){return Gi(e)?Fl(e):Bl(e)}var Nl=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Hl=/^\w*$/;function zl(e,t){if(xe(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||Qn(e)?!0:Hl.test(e)||!Nl.test(e)||t!=null&&e in Object(t)}var Ft=nt(Object,"create");function jl(){this.__data__=Ft?Ft(null):{},this.size=0}function Vl(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var Ul="__lodash_hash_undefined__",Kl=Object.prototype,Wl=Kl.hasOwnProperty;function Gl(e){var t=this.__data__;if(Ft){var n=t[e];return n===Ul?void 0:n}return Wl.call(t,e)?t[e]:void 0}var ql=Object.prototype,Jl=ql.hasOwnProperty;function Yl(e){var t=this.__data__;return Ft?t[e]!==void 0:Jl.call(t,e)}var Zl="__lodash_hash_undefined__";function Xl(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Ft&&t===void 0?Zl:t,this}function et(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}et.prototype.clear=jl;et.prototype.delete=Vl;et.prototype.get=Gl;et.prototype.has=Yl;et.prototype.set=Xl;function Ql(){this.__data__=[],this.size=0}function mn(e,t){for(var n=e.length;n--;)if(tr(e[n][0],t))return n;return-1}var eu=Array.prototype,tu=eu.splice;function nu(e){var t=this.__data__,n=mn(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():tu.call(t,n,1),--this.size,!0}function ru(e){var t=this.__data__,n=mn(t,e);return n<0?void 0:t[n][1]}function ou(e){return mn(this.__data__,e)>-1}function au(e,t){var n=this.__data__,r=mn(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function Me(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Me.prototype.clear=Ql;Me.prototype.delete=nu;Me.prototype.get=ru;Me.prototype.has=ou;Me.prototype.set=au;var kt=nt(Le,"Map");function su(){this.size=0,this.__data__={hash:new et,map:new(kt||Me),string:new et}}function iu(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function gn(e,t){var n=e.__data__;return iu(t)?n[typeof t=="string"?"string":"hash"]:n.map}function lu(e){var t=gn(this,e).delete(e);return this.size-=t?1:0,t}function uu(e){return gn(this,e).get(e)}function cu(e){return gn(this,e).has(e)}function du(e,t){var n=gn(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function De(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}De.prototype.clear=su;De.prototype.delete=lu;De.prototype.get=uu;De.prototype.has=cu;De.prototype.set=du;var fu="Expected a function";function or(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(fu);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],a=n.cache;if(a.has(o))return a.get(o);var s=e.apply(this,r);return n.cache=a.set(o,s)||a,s};return n.cache=new(or.Cache||De),n}or.Cache=De;var pu=500;function vu(e){var t=or(e,function(r){return n.size===pu&&n.clear(),r}),n=t.cache;return t}var mu=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,gu=/\\(\\)?/g,hu=vu(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(mu,function(n,r,o,a){t.push(o?a.replace(gu,"$1"):r||n)}),t});function bu(e){return e==null?"":ra(e)}function hn(e,t){return xe(e)?e:zl(e,t)?[e]:hu(bu(e))}function ar(e){if(typeof e=="string"||Qn(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function ua(e,t){t=hn(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[ar(t[n++])];return n&&n==r?e:void 0}function ca(e,t,n){var r=e==null?void 0:ua(e,t);return r===void 0?n:r}function da(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}var qr=Oe?Oe.isConcatSpreadable:void 0;function yu(e){return xe(e)||rr(e)||!!(qr&&e&&e[qr])}function wu(e,t,n,r,o){var a=-1,s=e.length;for(n||(n=yu),o||(o=[]);++a<s;){var i=e[a];n(i)?da(o,i):o[o.length]=i}return o}function _u(e){var t=e==null?0:e.length;return t?wu(e):[]}function Eu(e){return $i(Ki(e,void 0,_u),e+"")}function Su(){if(!arguments.length)return[];var e=arguments[0];return xe(e)?e:[e]}function Cu(){this.__data__=new Me,this.size=0}function Tu(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function Au(e){return this.__data__.get(e)}function Ou(e){return this.__data__.has(e)}var xu=200;function Iu(e,t){var n=this.__data__;if(n instanceof Me){var r=n.__data__;if(!kt||r.length<xu-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new De(r)}return n.set(e,t),this.size=n.size,this}function Ve(e){var t=this.__data__=new Me(e);this.size=t.size}Ve.prototype.clear=Cu;Ve.prototype.delete=Tu;Ve.prototype.get=Au;Ve.prototype.has=Ou;Ve.prototype.set=Iu;function Pu(e,t){for(var n=-1,r=e==null?0:e.length,o=0,a=[];++n<r;){var s=e[n];t(s,n,e)&&(a[o++]=s)}return a}function Ru(){return[]}var Fu=Object.prototype,ku=Fu.propertyIsEnumerable,Jr=Object.getOwnPropertySymbols,Lu=Jr?function(e){return e==null?[]:(e=Object(e),Pu(Jr(e),function(t){return ku.call(e,t)}))}:Ru;function Mu(e,t,n){var r=t(e);return xe(e)?r:da(r,n(e))}function Yr(e){return Mu(e,$l,Lu)}var $n=nt(Le,"DataView"),Nn=nt(Le,"Promise"),Hn=nt(Le,"Set"),Zr="[object Map]",Du="[object Object]",Xr="[object Promise]",Qr="[object Set]",eo="[object WeakMap]",to="[object DataView]",Bu=tt($n),$u=tt(kt),Nu=tt(Nn),Hu=tt(Hn),zu=tt(Dn),ze=yt;($n&&ze(new $n(new ArrayBuffer(1)))!=to||kt&&ze(new kt)!=Zr||Nn&&ze(Nn.resolve())!=Xr||Hn&&ze(new Hn)!=Qr||Dn&&ze(new Dn)!=eo)&&(ze=function(e){var t=yt(e),n=t==Du?e.constructor:void 0,r=n?tt(n):"";if(r)switch(r){case Bu:return to;case $u:return Zr;case Nu:return Xr;case Hu:return Qr;case zu:return eo}return t});var no=Le.Uint8Array,ju="__lodash_hash_undefined__";function Vu(e){return this.__data__.set(e,ju),this}function Uu(e){return this.__data__.has(e)}function sn(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new De;++t<n;)this.add(e[t])}sn.prototype.add=sn.prototype.push=Vu;sn.prototype.has=Uu;function Ku(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 Wu(e,t){return e.has(t)}var Gu=1,qu=2;function fa(e,t,n,r,o,a){var s=n&Gu,i=e.length,l=t.length;if(i!=l&&!(s&&l>i))return!1;var u=a.get(e),v=a.get(t);if(u&&v)return u==t&&v==e;var c=-1,d=!0,m=n&qu?new sn:void 0;for(a.set(e,t),a.set(t,e);++c<i;){var p=e[c],g=t[c];if(r)var w=s?r(g,p,c,t,e,a):r(p,g,c,e,t,a);if(w!==void 0){if(w)continue;d=!1;break}if(m){if(!Ku(t,function(b,y){if(!Wu(m,y)&&(p===b||o(p,b,n,r,a)))return m.push(y)})){d=!1;break}}else if(!(p===g||o(p,g,n,r,a))){d=!1;break}}return a.delete(e),a.delete(t),d}function Ju(e){var t=-1,n=Array(e.size);return e.forEach(function(r,o){n[++t]=[o,r]}),n}function Yu(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var Zu=1,Xu=2,Qu="[object Boolean]",ec="[object Date]",tc="[object Error]",nc="[object Map]",rc="[object Number]",oc="[object RegExp]",ac="[object Set]",sc="[object String]",ic="[object Symbol]",lc="[object ArrayBuffer]",uc="[object DataView]",ro=Oe?Oe.prototype:void 0,In=ro?ro.valueOf:void 0;function cc(e,t,n,r,o,a,s){switch(n){case uc:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case lc:return!(e.byteLength!=t.byteLength||!a(new no(e),new no(t)));case Qu:case ec:case rc:return tr(+e,+t);case tc:return e.name==t.name&&e.message==t.message;case oc:case sc:return e==t+"";case nc:var i=Ju;case ac:var l=r&Zu;if(i||(i=Yu),e.size!=t.size&&!l)return!1;var u=s.get(e);if(u)return u==t;r|=Xu,s.set(e,t);var v=fa(i(e),i(t),r,o,a,s);return s.delete(e),v;case ic:if(In)return In.call(e)==In.call(t)}return!1}var dc=1,fc=Object.prototype,pc=fc.hasOwnProperty;function vc(e,t,n,r,o,a){var s=n&dc,i=Yr(e),l=i.length,u=Yr(t),v=u.length;if(l!=v&&!s)return!1;for(var c=l;c--;){var d=i[c];if(!(s?d in t:pc.call(t,d)))return!1}var m=a.get(e),p=a.get(t);if(m&&p)return m==t&&p==e;var g=!0;a.set(e,t),a.set(t,e);for(var w=s;++c<l;){d=i[c];var b=e[d],y=t[d];if(r)var T=s?r(y,b,d,t,e,a):r(b,y,d,e,t,a);if(!(T===void 0?b===y||o(b,y,n,r,a):T)){g=!1;break}w||(w=d=="constructor")}if(g&&!w){var h=e.constructor,k=t.constructor;h!=k&&"constructor"in e&&"constructor"in t&&!(typeof h=="function"&&h instanceof h&&typeof k=="function"&&k instanceof k)&&(g=!1)}return a.delete(e),a.delete(t),g}var mc=1,oo="[object Arguments]",ao="[object Array]",Wt="[object Object]",gc=Object.prototype,so=gc.hasOwnProperty;function hc(e,t,n,r,o,a){var s=xe(e),i=xe(t),l=s?ao:ze(e),u=i?ao:ze(t);l=l==oo?Wt:l,u=u==oo?Wt:u;var v=l==Wt,c=u==Wt,d=l==u;if(d&&Bn(e)){if(!Bn(t))return!1;s=!0,v=!1}if(d&&!v)return a||(a=new Ve),s||la(e)?fa(e,t,n,r,o,a):cc(e,t,l,n,r,o,a);if(!(n&mc)){var m=v&&so.call(e,"__wrapped__"),p=c&&so.call(t,"__wrapped__");if(m||p){var g=m?e.value():e,w=p?t.value():t;return a||(a=new Ve),o(g,w,n,r,a)}}return d?(a||(a=new Ve),vc(e,t,n,r,o,a)):!1}function pa(e,t,n,r,o){return e===t?!0:e==null||t==null||!ft(e)&&!ft(t)?e!==e&&t!==t:hc(e,t,n,r,pa,o)}function bc(e,t){return e!=null&&t in Object(e)}function yc(e,t,n){t=hn(t,e);for(var r=-1,o=t.length,a=!1;++r<o;){var s=ar(t[r]);if(!(a=e!=null&&n(e,s)))break;e=e[s]}return a||++r!=o?a:(o=e==null?0:e.length,!!o&&nr(o)&&er(s,o)&&(xe(e)||rr(e)))}function wc(e,t){return e!=null&&yc(e,t,bc)}function zn(e){for(var t=-1,n=e==null?0:e.length,r={};++t<n;){var o=e[t];r[o[0]]=o[1]}return r}function _c(e,t){return pa(e,t)}function bn(e){return e==null}function Ec(e){return e===void 0}function va(e,t,n,r){if(!on(e))return e;t=hn(t,e);for(var o=-1,a=t.length,s=a-1,i=e;i!=null&&++o<a;){var l=ar(t[o]),u=n;if(l==="__proto__"||l==="constructor"||l==="prototype")return e;if(o!=s){var v=i[l];u=void 0,u===void 0&&(u=on(v)?v:er(t[o+1])?[]:{})}Ui(i,l,u),i=i[l]}return e}function Sc(e,t,n){for(var r=-1,o=t.length,a={};++r<o;){var s=t[r],i=ua(e,s);n(i,s)&&va(a,hn(s,e),i)}return a}function Cc(e,t){return Sc(e,t,function(n,r){return wc(e,r)})}var Tc=Eu(function(e,t){return e==null?{}:Cc(e,t)});function Ac(e,t,n){return e==null?e:va(e,t,n)}const d2=e=>e===void 0,ma=e=>typeof e=="boolean",Se=e=>typeof e=="number",f2=e=>!e&&e!==0||Bt(e)&&e.length===0||$t(e)&&!Object.keys(e).length,ct=e=>typeof Element>"u"?!1:e instanceof Element,p2=e=>bn(e),Oc=e=>Yn(e)?!Number.isNaN(Number(e)):!1;function ga(e,t){var n;const r=Go();return Ls(()=>{r.value=e()},{...t,flush:(n=void 0)!=null?n:"sync"}),pn(r)}function Ht(e){return Fs()?(ks(e),!0):!1}function pt(e){return typeof e=="function"?e():_(e)}const ae=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const xc=e=>e!=null,Ic=Object.prototype.toString,Pc=e=>Ic.call(e)==="[object Object]",dt=()=>{},Rc=Fc();function Fc(){var e,t;return ae&&((e=window?.navigator)==null?void 0:e.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||((t=window?.navigator)==null?void 0:t.maxTouchPoints)>2&&/iPad|Macintosh/.test(window?.navigator.userAgent))}function kc(e,t){function n(...r){return new Promise((o,a)=>{Promise.resolve(e(()=>t.apply(this,r),{fn:t,thisArg:this,args:r})).then(o).catch(a)})}return n}function Lc(e,t={}){let n,r,o=dt;const a=i=>{clearTimeout(i),o(),o=dt};return i=>{const l=pt(e),u=pt(t.maxWait);return n&&a(n),l<=0||u!==void 0&&u<=0?(r&&(a(r),r=null),Promise.resolve(i())):new Promise((v,c)=>{o=t.rejectOnCancel?c:v,u&&!r&&(r=setTimeout(()=>{n&&a(n),r=null,v(i())},u)),n=setTimeout(()=>{r&&a(r),r=null,v(i())},l)})}}function Mc(e){return ve()}function Dc(e,t=200,n={}){return kc(Lc(t,n),e)}function v2(e,t=200,n={}){const r=O(e.value),o=Dc(()=>{r.value=e.value},t,n);return U(e,()=>o()),r}function Bc(e,t=!0,n){Mc()?ce(e,n):t?e():Qe(e)}function m2(e,t,n={}){const{immediate:r=!0}=n,o=O(!1);let a=null;function s(){a&&(clearTimeout(a),a=null)}function i(){o.value=!1,s()}function l(...u){s(),o.value=!0,a=setTimeout(()=>{o.value=!1,a=null,e(...u)},pt(t))}return r&&(o.value=!0,ae&&l()),Ht(i),{isPending:pn(o),start:l,stop:i}}function de(e){var t;const n=pt(e);return(t=n?.$el)!=null?t:n}const wt=ae?window:void 0,$c=ae?window.document:void 0;function Ce(...e){let t,n,r,o;if(typeof e[0]=="string"||Array.isArray(e[0])?([n,r,o]=e,t=wt):[t,n,r,o]=e,!t)return dt;Array.isArray(n)||(n=[n]),Array.isArray(r)||(r=[r]);const a=[],s=()=>{a.forEach(v=>v()),a.length=0},i=(v,c,d,m)=>(v.addEventListener(c,d,m),()=>v.removeEventListener(c,d,m)),l=U(()=>[de(t),pt(o)],([v,c])=>{if(s(),!v)return;const d=Pc(c)?{...c}:c;a.push(...n.flatMap(m=>r.map(p=>i(v,m,p,d))))},{immediate:!0,flush:"post"}),u=()=>{l(),s()};return Ht(u),u}let io=!1;function Nc(e,t,n={}){const{window:r=wt,ignore:o=[],capture:a=!0,detectIframe:s=!1}=n;if(!r)return dt;Rc&&!io&&(io=!0,Array.from(r.document.body.children).forEach(d=>d.addEventListener("click",dt)),r.document.documentElement.addEventListener("click",dt));let i=!0;const l=d=>o.some(m=>{if(typeof m=="string")return Array.from(r.document.querySelectorAll(m)).some(p=>p===d.target||d.composedPath().includes(p));{const p=de(m);return p&&(d.target===p||d.composedPath().includes(p))}}),v=[Ce(r,"click",d=>{const m=de(e);if(!(!m||m===d.target||d.composedPath().includes(m))){if(d.detail===0&&(i=!l(d)),!i){i=!0;return}t(d)}},{passive:!0,capture:a}),Ce(r,"pointerdown",d=>{const m=de(e);i=!l(d)&&!!(m&&!d.composedPath().includes(m))},{passive:!0}),s&&Ce(r,"blur",d=>{setTimeout(()=>{var m;const p=de(e);((m=r.document.activeElement)==null?void 0:m.tagName)==="IFRAME"&&!p?.contains(r.document.activeElement)&&t(d)},0)})].filter(Boolean);return()=>v.forEach(d=>d())}function Hc(){const e=O(!1),t=ve();return t&&ce(()=>{e.value=!0},t),e}function ha(e){const t=Hc();return C(()=>(t.value,!!e()))}function g2(e,t,n={}){const{window:r=wt,...o}=n;let a;const s=ha(()=>r&&"MutationObserver"in r),i=()=>{a&&(a.disconnect(),a=void 0)},l=C(()=>{const d=pt(e),m=(Array.isArray(d)?d:[d]).map(de).filter(xc);return new Set(m)}),u=U(()=>l.value,d=>{i(),s.value&&d.size&&(a=new MutationObserver(t),d.forEach(m=>a.observe(m,o)))},{immediate:!0,flush:"post"}),v=()=>a?.takeRecords(),c=()=>{i(),u()};return Ht(c),{isSupported:s,stop:c,takeRecords:v}}function h2(e={}){const{document:t=$c}=e;if(!t)return O("visible");const n=O(t.visibilityState);return Ce(t,"visibilitychange",()=>{n.value=t.visibilityState}),n}function jn(e,t,n={}){const{window:r=wt,...o}=n;let a;const s=ha(()=>r&&"ResizeObserver"in r),i=()=>{a&&(a.disconnect(),a=void 0)},l=C(()=>Array.isArray(e)?e.map(c=>de(c)):[de(e)]),u=U(l,c=>{if(i(),s.value&&r){a=new ResizeObserver(t);for(const d of c)d&&a.observe(d,o)}},{immediate:!0,flush:"post"}),v=()=>{i(),u()};return Ht(v),{isSupported:s,stop:v}}function b2(e,t={width:0,height:0},n={}){const{window:r=wt,box:o="content-box"}=n,a=C(()=>{var c,d;return(d=(c=de(e))==null?void 0:c.namespaceURI)==null?void 0:d.includes("svg")}),s=O(t.width),i=O(t.height),{stop:l}=jn(e,([c])=>{const d=o==="border-box"?c.borderBoxSize:o==="content-box"?c.contentBoxSize:c.devicePixelContentBoxSize;if(r&&a.value){const m=de(e);if(m){const p=m.getBoundingClientRect();s.value=p.width,i.value=p.height}}else if(d){const m=Array.isArray(d)?d:[d];s.value=m.reduce((p,{inlineSize:g})=>p+g,0),i.value=m.reduce((p,{blockSize:g})=>p+g,0)}else s.value=c.contentRect.width,i.value=c.contentRect.height},n);Bc(()=>{const c=de(e);c&&(s.value="offsetWidth"in c?c.offsetWidth:t.width,i.value="offsetHeight"in c?c.offsetHeight:t.height)});const u=U(()=>de(e),c=>{s.value=c?t.width:0,i.value=c?t.height:0});function v(){l(),u()}return{width:s,height:i,stop:v}}function y2(e={}){const{window:t=wt}=e;if(!t)return O(!1);const n=O(t.document.hasFocus());return Ce(t,"blur",()=>{n.value=!1}),Ce(t,"focus",()=>{n.value=!0}),n}class zc extends Error{constructor(t){super(t),this.name="ElementPlusError"}}function jc(e,t){throw new zc(`[${e}] ${t}`)}function w2(e,t){}const lo={current:0},uo=O(0),ba=2e3,co=Symbol("elZIndexContextKey"),ya=Symbol("zIndexContextKey"),wa=e=>{const t=ve()?j(co,lo):lo,n=e||(ve()?j(ya,void 0):void 0),r=C(()=>{const s=_(n);return Se(s)?s:ba}),o=C(()=>r.value+uo.value),a=()=>(t.current++,uo.value=t.current,o.value);return!ae&&j(co),{initialZIndex:r,currentZIndex:o,nextZIndex:a}};var _a={name:"en",el:{breadcrumb:{label:"Breadcrumb"},colorpicker:{confirm:"OK",clear:"Clear",defaultLabel:"color picker",description:"current color is {color}. press enter to select a new color.",alphaLabel:"pick alpha value",alphaDescription:"alpha {alpha}, current color is {color}",hueLabel:"pick hue value",hueDescription:"hue {hue}, current color is {color}",svLabel:"pick saturation and brightness value",svDescription:"saturation {saturation}, brightness {brightness}, current color is {color}",predefineDescription:"select {value} as the color"},datepicker:{now:"Now",today:"Today",cancel:"Cancel",clear:"Clear",confirm:"OK",dateTablePrompt:"Use the arrow keys and enter to select the day of the month",monthTablePrompt:"Use the arrow keys and enter to select the month",yearTablePrompt:"Use the arrow keys and enter to select the year",selectedDate:"Selected date",selectDate:"Select date",selectTime:"Select time",startDate:"Start Date",startTime:"Start Time",endDate:"End Date",endTime:"End Time",prevYear:"Previous Year",nextYear:"Next Year",prevMonth:"Previous Month",nextMonth:"Next Month",year:"",month1:"January",month2:"February",month3:"March",month4:"April",month5:"May",month6:"June",month7:"July",month8:"August",month9:"September",month10:"October",month11:"November",month12:"December",weeks:{sun:"Sun",mon:"Mon",tue:"Tue",wed:"Wed",thu:"Thu",fri:"Fri",sat:"Sat"},weeksFull:{sun:"Sunday",mon:"Monday",tue:"Tuesday",wed:"Wednesday",thu:"Thursday",fri:"Friday",sat:"Saturday"},months:{jan:"Jan",feb:"Feb",mar:"Mar",apr:"Apr",may:"May",jun:"Jun",jul:"Jul",aug:"Aug",sep:"Sep",oct:"Oct",nov:"Nov",dec:"Dec"}},inputNumber:{decrease:"decrease number",increase:"increase number"},select:{loading:"Loading",noMatch:"No matching data",noData:"No data",placeholder:"Select"},mention:{loading:"Loading"},dropdown:{toggleDropdown:"Toggle Dropdown"},cascader:{noMatch:"No matching data",loading:"Loading",placeholder:"Select",noData:"No data"},pagination:{goto:"Go to",pagesize:"/page",total:"Total {total}",pageClassifier:"",page:"Page",prev:"Go to previous page",next:"Go to next page",currentPage:"page {pager}",prevPages:"Previous {pager} pages",nextPages:"Next {pager} pages",deprecationWarning:"Deprecated usages detected, please refer to the el-pagination documentation for more details"},dialog:{close:"Close this dialog"},drawer:{close:"Close this dialog"},messagebox:{title:"Message",confirm:"OK",cancel:"Cancel",error:"Illegal input",close:"Close this dialog"},upload:{deleteTip:"press delete to remove",delete:"Delete",preview:"Preview",continue:"Continue"},slider:{defaultLabel:"slider between {min} and {max}",defaultRangeStartLabel:"pick start value",defaultRangeEndLabel:"pick end value"},table:{emptyText:"No Data",confirmFilter:"Confirm",resetFilter:"Reset",clearFilter:"All",sumText:"Sum",selectAllLabel:"Select all rows",selectRowLabel:"Select this row",expandRowLabel:"Expand this row",collapseRowLabel:"Collapse this row",sortLabel:"Sort by {column}",filterLabel:"Filter by {column}"},tag:{close:"Close this tag"},tour:{next:"Next",previous:"Previous",finish:"Finish",close:"Close this dialog"},tree:{emptyText:"No Data"},transfer:{noMatch:"No matching data",noData:"No data",titles:["List 1","List 2"],filterPlaceholder:"Enter keyword",noCheckedFormat:"{total} items",hasCheckedFormat:"{checked}/{total} checked"},image:{error:"FAILED"},pageHeader:{title:"Back"},popconfirm:{confirmButtonText:"Yes",cancelButtonText:"No"},carousel:{leftArrow:"Carousel arrow left",rightArrow:"Carousel arrow right",indicator:"Carousel switch to index {index}"}}};const Vc=e=>(t,n)=>Uc(t,n,_(e)),Uc=(e,t,n)=>ca(n,e,e).replace(/\{(\w+)\}/g,(r,o)=>{var a;return`${(a=t?.[o])!=null?a:`{${o}}`}`}),Kc=e=>{const t=C(()=>_(e).name),n=Ms(e)?e:O(e);return{lang:t,locale:n,t:Vc(e)}},Ea=Symbol("localeContextKey"),Sa=e=>{const t=e||j(Ea,O());return Kc(C(()=>t.value||_a))},Ca="__epPropKey",N=e=>e,Wc=e=>$t(e)&&!!e[Ca],yn=(e,t)=>{if(!$t(e)||Wc(e))return e;const{values:n,required:r,default:o,type:a,validator:s}=e,l={type:a,required:!!r,validator:n||s?u=>{let v=!1,c=[];if(n&&(c=Array.from(n),Dr(e,"default")&&c.push(o),v||(v=c.includes(u))),s&&(v||(v=s(u))),!v&&c.length>0){const d=[...new Set(c)].map(m=>JSON.stringify(m)).join(", ");Ds(`Invalid prop: validation failed${t?` for prop "${t}"`:""}. Expected one of [${d}], got value ${JSON.stringify(u)}.`)}return v}:void 0,[Ca]:!0};return Dr(e,"default")&&(l.default=o),l},te=e=>zn(Object.entries(e).map(([t,n])=>[t,yn(n,t)])),Gc=["","default","small","large"],Ta=yn({type:String,values:Gc,required:!1}),Aa=Symbol("size"),qc=()=>{const e=j(Aa,{});return C(()=>_(e.size)||"")},Oa=Symbol("emptyValuesContextKey"),Jc=["",void 0,null],Yc=void 0,Zc=te({emptyValues:Array,valueOnClear:{type:N([String,Number,Boolean,Function]),default:void 0,validator:e=>(e=Ye(e)?e():e,Bt(e)?e.every(t=>!t):!e)}}),_2=(e,t)=>{const n=ve()?j(Oa,O({})):O({}),r=C(()=>e.emptyValues||n.value.emptyValues||Jc),o=C(()=>Ye(e.valueOnClear)?e.valueOnClear():e.valueOnClear!==void 0?e.valueOnClear:Ye(n.value.valueOnClear)?n.value.valueOnClear():n.value.valueOnClear!==void 0?n.value.valueOnClear:Yc),a=s=>{let i=!0;return Bt(s)?i=r.value.some(l=>_c(s,l)):i=r.value.includes(s),i};return a(o.value),{emptyValues:r,valueOnClear:o,isEmptyValue:a}},fo=e=>Object.keys(e),E2=(e,t,n)=>({get value(){return ca(e,t,n)},set value(r){Ac(e,t,r)}}),ln=O();function sr(e,t=void 0){const n=ve()?j(Qo,ln):ln;return e?C(()=>{var r,o;return(o=(r=n.value)==null?void 0:r[e])!=null?o:t}):n}function S2(e,t){const n=sr(),r=se(e,C(()=>{var i;return((i=n.value)==null?void 0:i.namespace)||en})),o=Sa(C(()=>{var i;return(i=n.value)==null?void 0:i.locale})),a=wa(C(()=>{var i;return((i=n.value)==null?void 0:i.zIndex)||ba})),s=C(()=>{var i;return _(t)||((i=n.value)==null?void 0:i.size)||""});return xa(C(()=>_(n)||{})),{ns:r,locale:o,zIndex:a,size:s}}const xa=(e,t,n=!1)=>{var r;const o=!!ve(),a=o?sr():void 0,s=(r=void 0)!=null?r:o?ue:void 0;if(!s)return;const i=C(()=>{const l=_(e);return a?.value?Xc(a.value,l):l});return s(Qo,i),s(Ea,C(()=>i.value.locale)),s(ea,C(()=>i.value.namespace)),s(ya,C(()=>i.value.zIndex)),s(Aa,{size:C(()=>i.value.size||"")}),s(Oa,C(()=>({emptyValues:i.value.emptyValues,valueOnClear:i.value.valueOnClear}))),(n||!ln.value)&&(ln.value=i.value),i},Xc=(e,t)=>{const n=[...new Set([...fo(e),...fo(t)])],r={};for(const o of n)r[o]=t[o]!==void 0?t[o]:e[o];return r},Ia=te({to:{type:N([String,Object]),required:!0},disabled:Boolean});var Q=(e,t)=>{const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n};const Qc=L({__name:"teleport",props:Ia,setup(e){return(t,n)=>t.disabled?G(t.$slots,"default",{key:0}):(x(),Z(Bs,{key:1,to:t.to},[G(t.$slots,"default")],8,["to"]))}});var ed=Q(Qc,[["__file","/home/runner/work/element-plus/element-plus/packages/components/teleport/src/teleport.vue"]]);const Ue=(e,t)=>{if(e.install=n=>{for(const r of[e,...Object.values(t??{})])n.component(r.name,r)},t)for(const[n,r]of Object.entries(t))e[n]=r;return e},C2=(e,t)=>(e.install=n=>{e._context=n._context,n.config.globalProperties[t]=e},e),ir=e=>(e.install=nn,e),td=Ue(ed),Pa=(e="")=>e.split(" ").filter(t=>!!t.trim()),T2=(e,t)=>{if(!e||!t)return!1;if(t.includes(" "))throw new Error("className should not contain space.");return e.classList.contains(t)},A2=(e,t)=>{!e||!t.trim()||e.classList.add(...Pa(t))},O2=(e,t)=>{!e||!t.trim()||e.classList.remove(...Pa(t))},x2=(e,t)=>{var n;if(!ae||!e||!t)return"";let r=$s(t);r==="float"&&(r="cssFloat");try{const o=e.style[r];if(o)return o;const a=(n=document.defaultView)==null?void 0:n.getComputedStyle(e,"");return a?a[r]:""}catch{return e.style[r]}};function un(e,t="px"){if(!e&&e!==0)return"";if(Se(e)||Oc(e))return`${e}${t}`;if(Yn(e))return e}const nd=te({size:{type:N([Number,String])},color:{type:String}}),rd=L({name:"ElIcon",inheritAttrs:!1,__name:"icon",props:nd,setup(e){const t=e,n=se("icon"),r=C(()=>{const{size:o,color:a}=t,s=un(o);return!s&&!a?{}:{fontSize:s,"--color":a}});return(o,a)=>(x(),D("i",Fe({class:_(n).b(),style:r.value},o.$attrs),[G(o.$slots,"default")],16))}});var od=Q(rd,[["__file","/home/runner/work/element-plus/element-plus/packages/components/icon/src/icon.vue"]]);const Lt=Ue(od);var ad=L({name:"ArrowDown",__name:"arrow-down",setup(e){return(t,n)=>(x(),D("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[F("path",{fill:"currentColor",d:"M831.872 340.864 512 652.672 192.128 340.864a30.59 30.59 0 0 0-42.752 0 29.12 29.12 0 0 0 0 41.6L489.664 714.24a32 32 0 0 0 44.672 0l340.288-331.712a29.12 29.12 0 0 0 0-41.728 30.59 30.59 0 0 0-42.752 0z"})]))}}),Ra=ad,sd=L({name:"ArrowLeft",__name:"arrow-left",setup(e){return(t,n)=>(x(),D("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[F("path",{fill:"currentColor",d:"M609.408 149.376 277.76 489.6a32 32 0 0 0 0 44.672l331.648 340.352a29.12 29.12 0 0 0 41.728 0 30.59 30.59 0 0 0 0-42.752L339.264 511.936l311.872-319.872a30.59 30.59 0 0 0 0-42.688 29.12 29.12 0 0 0-41.728 0"})]))}}),I2=sd,id=L({name:"ArrowRight",__name:"arrow-right",setup(e){return(t,n)=>(x(),D("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[F("path",{fill:"currentColor",d:"M340.864 149.312a30.59 30.59 0 0 0 0 42.752L652.736 512 340.864 831.872a30.59 30.59 0 0 0 0 42.752 29.12 29.12 0 0 0 41.728 0L714.24 534.336a32 32 0 0 0 0-44.672L382.592 149.376a29.12 29.12 0 0 0-41.728 0z"})]))}}),P2=id,ld=L({name:"ArrowUp",__name:"arrow-up",setup(e){return(t,n)=>(x(),D("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[F("path",{fill:"currentColor",d:"m488.832 344.32-339.84 356.672a32 32 0 0 0 0 44.16l.384.384a29.44 29.44 0 0 0 42.688 0l320-335.872 319.872 335.872a29.44 29.44 0 0 0 42.688 0l.384-.384a32 32 0 0 0 0-44.16L535.168 344.32a32 32 0 0 0-46.336 0"})]))}}),R2=ld,ud=L({name:"Check",__name:"check",setup(e){return(t,n)=>(x(),D("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[F("path",{fill:"currentColor",d:"M406.656 706.944 195.84 496.256a32 32 0 1 0-45.248 45.248l256 256 512-512a32 32 0 0 0-45.248-45.248L406.592 706.944z"})]))}}),F2=ud,cd=L({name:"CircleCheckFilled",__name:"circle-check-filled",setup(e){return(t,n)=>(x(),D("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[F("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m-55.808 536.384-99.52-99.584a38.4 38.4 0 1 0-54.336 54.336l126.72 126.72a38.27 38.27 0 0 0 54.336 0l262.4-262.464a38.4 38.4 0 1 0-54.272-54.336z"})]))}}),k2=cd,dd=L({name:"CircleCheck",__name:"circle-check",setup(e){return(t,n)=>(x(),D("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[F("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"}),F("path",{fill:"currentColor",d:"M745.344 361.344a32 32 0 0 1 45.312 45.312l-288 288a32 32 0 0 1-45.312 0l-160-160a32 32 0 1 1 45.312-45.312L480 626.752z"})]))}}),fd=dd,pd=L({name:"CircleCloseFilled",__name:"circle-close-filled",setup(e){return(t,n)=>(x(),D("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[F("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 393.664L407.936 353.6a38.4 38.4 0 1 0-54.336 54.336L457.664 512 353.6 616.064a38.4 38.4 0 1 0 54.336 54.336L512 566.336 616.064 670.4a38.4 38.4 0 1 0 54.336-54.336L566.336 512 670.4 407.936a38.4 38.4 0 1 0-54.336-54.336z"})]))}}),Fa=pd,vd=L({name:"CircleClose",__name:"circle-close",setup(e){return(t,n)=>(x(),D("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[F("path",{fill:"currentColor",d:"m466.752 512-90.496-90.496a32 32 0 0 1 45.248-45.248L512 466.752l90.496-90.496a32 32 0 1 1 45.248 45.248L557.248 512l90.496 90.496a32 32 0 1 1-45.248 45.248L512 557.248l-90.496 90.496a32 32 0 0 1-45.248-45.248z"}),F("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"})]))}}),md=vd,gd=L({name:"Close",__name:"close",setup(e){return(t,n)=>(x(),D("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[F("path",{fill:"currentColor",d:"M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"})]))}}),ka=gd,hd=L({name:"Connection",__name:"connection",setup(e){return(t,n)=>(x(),D("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[F("path",{fill:"currentColor",d:"M640 384v64H448a128 128 0 0 0-128 128v128a128 128 0 0 0 128 128h320a128 128 0 0 0 128-128V576a128 128 0 0 0-64-110.848V394.88c74.56 26.368 128 97.472 128 181.056v128a192 192 0 0 1-192 192H448a192 192 0 0 1-192-192V576a192 192 0 0 1 192-192z"}),F("path",{fill:"currentColor",d:"M384 640v-64h192a128 128 0 0 0 128-128V320a128 128 0 0 0-128-128H256a128 128 0 0 0-128 128v128a128 128 0 0 0 64 110.848v70.272A192.06 192.06 0 0 1 64 448V320a192 192 0 0 1 192-192h320a192 192 0 0 1 192 192v128a192 192 0 0 1-192 192z"})]))}}),L2=hd,bd=L({name:"CopyDocument",__name:"copy-document",setup(e){return(t,n)=>(x(),D("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[F("path",{fill:"currentColor",d:"M768 832a128 128 0 0 1-128 128H192A128 128 0 0 1 64 832V384a128 128 0 0 1 128-128v64a64 64 0 0 0-64 64v448a64 64 0 0 0 64 64h448a64 64 0 0 0 64-64z"}),F("path",{fill:"currentColor",d:"M384 128a64 64 0 0 0-64 64v448a64 64 0 0 0 64 64h448a64 64 0 0 0 64-64V192a64 64 0 0 0-64-64zm0-64h448a128 128 0 0 1 128 128v448a128 128 0 0 1-128 128H384a128 128 0 0 1-128-128V192A128 128 0 0 1 384 64"})]))}}),M2=bd,yd=L({name:"Delete",__name:"delete",setup(e){return(t,n)=>(x(),D("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[F("path",{fill:"currentColor",d:"M160 256H96a32 32 0 0 1 0-64h256V95.936a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V192h256a32 32 0 1 1 0 64h-64v672a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32zm448-64v-64H416v64zM224 896h576V256H224zm192-128a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32m192 0a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32"})]))}}),D2=yd,wd=L({name:"Document",__name:"document",setup(e){return(t,n)=>(x(),D("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[F("path",{fill:"currentColor",d:"M832 384H576V128H192v768h640zm-26.496-64L640 154.496V320zM160 64h480l256 256v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32m160 448h384v64H320zm0-192h160v64H320zm0 384h384v64H320z"})]))}}),B2=wd,_d=L({name:"Download",__name:"download",setup(e){return(t,n)=>(x(),D("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[F("path",{fill:"currentColor",d:"M160 832h704a32 32 0 1 1 0 64H160a32 32 0 1 1 0-64m384-253.696 236.288-236.352 45.248 45.248L508.8 704 192 387.2l45.248-45.248L480 584.704V128h64z"})]))}}),$2=_d,Ed=L({name:"Edit",__name:"edit",setup(e){return(t,n)=>(x(),D("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[F("path",{fill:"currentColor",d:"M832 512a32 32 0 1 1 64 0v352a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h352a32 32 0 0 1 0 64H192v640h640z"}),F("path",{fill:"currentColor",d:"m469.952 554.24 52.8-7.552L847.104 222.4a32 32 0 1 0-45.248-45.248L477.44 501.44l-7.552 52.8zm422.4-422.4a96 96 0 0 1 0 135.808l-331.84 331.84a32 32 0 0 1-18.112 9.088L436.8 623.68a32 32 0 0 1-36.224-36.224l15.104-105.6a32 32 0 0 1 9.024-18.112l331.904-331.84a96 96 0 0 1 135.744 0z"})]))}}),N2=Ed,Sd=L({name:"ElementPlus",__name:"element-plus",setup(e){return(t,n)=>(x(),D("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[F("path",{fill:"currentColor",d:"M839.7 734.7c0 33.3-17.9 41-17.9 41S519.7 949.8 499.2 960c-10.2 5.1-20.5 5.1-30.7 0 0 0-314.9-184.3-325.1-192-5.1-5.1-10.2-12.8-12.8-20.5V368.6c0-17.9 20.5-28.2 20.5-28.2L466 158.6q19.2-7.65 38.4 0s279 161.3 309.8 179.2c17.9 7.7 28.2 25.6 25.6 46.1-.1-5-.1 317.5-.1 350.8M714.2 371.2c-64-35.8-217.6-125.4-217.6-125.4-7.7-5.1-20.5-5.1-30.7 0L217.6 389.1s-17.9 10.2-17.9 23v297c0 5.1 5.1 12.8 7.7 17.9 7.7 5.1 256 148.5 256 148.5 7.7 5.1 17.9 5.1 25.6 0 15.4-7.7 250.9-145.9 250.9-145.9s12.8-5.1 12.8-30.7v-74.2l-276.5 169v-64c0-17.9 7.7-30.7 20.5-46.1L745 535c5.1-7.7 10.2-20.5 10.2-30.7v-66.6l-279 169v-69.1c0-15.4 5.1-30.7 17.9-38.4zM919 135.7c0-5.1-5.1-7.7-7.7-7.7h-58.9V66.6c0-5.1-5.1-5.1-10.2-5.1l-30.7 5.1c-5.1 0-5.1 2.6-5.1 5.1V128h-56.3c-5.1 0-5.1 5.1-7.7 5.1v38.4h69.1v64c0 5.1 5.1 5.1 10.2 5.1l30.7-5.1c5.1 0 5.1-2.6 5.1-5.1v-56.3h64z"})]))}}),Cd=Sd,Td=L({name:"Files",__name:"files",setup(e){return(t,n)=>(x(),D("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[F("path",{fill:"currentColor",d:"M128 384v448h768V384zm-32-64h832a32 32 0 0 1 32 32v512a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V352a32 32 0 0 1 32-32m64-128h704v64H160zm96-128h512v64H256z"})]))}}),H2=Td,Ad=L({name:"Folder",__name:"folder",setup(e){return(t,n)=>(x(),D("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[F("path",{fill:"currentColor",d:"M128 192v640h768V320H485.76L357.504 192zm-32-64h287.872l128.384 128H928a32 32 0 0 1 32 32v576a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32"})]))}}),z2=Ad,Od=L({name:"Hide",__name:"hide",setup(e){return(t,n)=>(x(),D("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[F("path",{fill:"currentColor",d:"M876.8 156.8c0-9.6-3.2-16-9.6-22.4s-12.8-9.6-22.4-9.6-16 3.2-22.4 9.6L736 220.8c-64-32-137.6-51.2-224-60.8-160 16-288 73.6-377.6 176S0 496 0 512s48 73.6 134.4 176c22.4 25.6 44.8 48 73.6 67.2l-86.4 89.6c-6.4 6.4-9.6 12.8-9.6 22.4s3.2 16 9.6 22.4 12.8 9.6 22.4 9.6 16-3.2 22.4-9.6l704-710.4c3.2-6.4 6.4-12.8 6.4-22.4m-646.4 528Q115.2 579.2 76.8 512q43.2-72 153.6-172.8C304 272 400 230.4 512 224c64 3.2 124.8 19.2 176 44.8l-54.4 54.4C598.4 300.8 560 288 512 288c-64 0-115.2 22.4-160 64s-64 96-64 160c0 48 12.8 89.6 35.2 124.8L256 707.2c-9.6-6.4-19.2-16-25.6-22.4m140.8-96Q352 555.2 352 512c0-44.8 16-83.2 48-112s67.2-48 112-48c28.8 0 54.4 6.4 73.6 19.2zM889.599 336c-12.8-16-28.8-28.8-41.6-41.6l-48 48c73.6 67.2 124.8 124.8 150.4 169.6q-43.2 72-153.6 172.8c-73.6 67.2-172.8 108.8-284.8 115.2-51.2-3.2-99.2-12.8-140.8-28.8l-48 48c57.6 22.4 118.4 38.4 188.8 44.8 160-16 288-73.6 377.6-176S1024 528 1024 512s-48.001-73.6-134.401-176"}),F("path",{fill:"currentColor",d:"M511.998 672c-12.8 0-25.6-3.2-38.4-6.4l-51.2 51.2c28.8 12.8 57.6 19.2 89.6 19.2 64 0 115.2-22.4 160-64 41.6-41.6 64-96 64-160 0-32-6.4-64-19.2-89.6l-51.2 51.2c3.2 12.8 6.4 25.6 6.4 38.4 0 44.8-16 83.2-48 112s-67.2 48-112 48"})]))}}),j2=Od,xd=L({name:"InfoFilled",__name:"info-filled",setup(e){return(t,n)=>(x(),D("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[F("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896.064A448 448 0 0 1 512 64m67.2 275.072c33.28 0 60.288-23.104 60.288-57.344s-27.072-57.344-60.288-57.344c-33.28 0-60.16 23.104-60.16 57.344s26.88 57.344 60.16 57.344M590.912 699.2c0-6.848 2.368-24.64 1.024-34.752l-52.608 60.544c-10.88 11.456-24.512 19.392-30.912 17.28a12.99 12.99 0 0 1-8.256-14.72l87.68-276.992c7.168-35.136-12.544-67.2-54.336-71.296-44.096 0-108.992 44.736-148.48 101.504 0 6.784-1.28 23.68.064 33.792l52.544-60.608c10.88-11.328 23.552-19.328 29.952-17.152a12.8 12.8 0 0 1 7.808 16.128L388.48 728.576c-10.048 32.256 8.96 63.872 55.04 71.04 67.84 0 107.904-43.648 147.456-100.416z"})]))}}),Vn=xd,Id=L({name:"Loading",__name:"loading",setup(e){return(t,n)=>(x(),D("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[F("path",{fill:"currentColor",d:"M512 64a32 32 0 0 1 32 32v192a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32m0 640a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V736a32 32 0 0 1 32-32m448-192a32 32 0 0 1-32 32H736a32 32 0 1 1 0-64h192a32 32 0 0 1 32 32m-640 0a32 32 0 0 1-32 32H96a32 32 0 0 1 0-64h192a32 32 0 0 1 32 32M195.2 195.2a32 32 0 0 1 45.248 0L376.32 331.008a32 32 0 0 1-45.248 45.248L195.2 240.448a32 32 0 0 1 0-45.248m452.544 452.544a32 32 0 0 1 45.248 0L828.8 783.552a32 32 0 0 1-45.248 45.248L647.744 692.992a32 32 0 0 1 0-45.248M828.8 195.264a32 32 0 0 1 0 45.184L692.992 376.32a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0m-452.544 452.48a32 32 0 0 1 0 45.248L240.448 828.8a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0"})]))}}),La=Id,Pd=L({name:"Lock",__name:"lock",setup(e){return(t,n)=>(x(),D("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[F("path",{fill:"currentColor",d:"M224 448a32 32 0 0 0-32 32v384a32 32 0 0 0 32 32h576a32 32 0 0 0 32-32V480a32 32 0 0 0-32-32zm0-64h576a96 96 0 0 1 96 96v384a96 96 0 0 1-96 96H224a96 96 0 0 1-96-96V480a96 96 0 0 1 96-96"}),F("path",{fill:"currentColor",d:"M512 544a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V576a32 32 0 0 1 32-32m192-160v-64a192 192 0 1 0-384 0v64zM512 64a256 256 0 0 1 256 256v128H256V320A256 256 0 0 1 512 64"})]))}}),V2=Pd,Rd=L({name:"Memo",__name:"memo",setup(e){return(t,n)=>(x(),D("svg",{xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",viewBox:"0 0 1024 1024"},[F("path",{fill:"currentColor",d:"M480 320h192c21.33 0 32-10.67 32-32s-10.67-32-32-32H480c-21.33 0-32 10.67-32 32s10.67 32 32 32"}),F("path",{fill:"currentColor",d:"M887.01 72.99C881.01 67 873.34 64 864 64H160c-9.35 0-17.02 3-23.01 8.99C131 78.99 128 86.66 128 96v832c0 9.35 2.99 17.02 8.99 23.01S150.66 960 160 960h704c9.35 0 17.02-2.99 23.01-8.99S896 937.34 896 928V96c0-9.35-3-17.02-8.99-23.01M192 896V128h96v768zm640 0H352V128h480z"}),F("path",{fill:"currentColor",d:"M480 512h192c21.33 0 32-10.67 32-32s-10.67-32-32-32H480c-21.33 0-32 10.67-32 32s10.67 32 32 32m0 192h192c21.33 0 32-10.67 32-32s-10.67-32-32-32H480c-21.33 0-32 10.67-32 32s10.67 32 32 32"})]))}}),U2=Rd,Fd=L({name:"Minus",__name:"minus",setup(e){return(t,n)=>(x(),D("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[F("path",{fill:"currentColor",d:"M128 544h768a32 32 0 1 0 0-64H128a32 32 0 0 0 0 64"})]))}}),K2=Fd,kd=L({name:"Monitor",__name:"monitor",setup(e){return(t,n)=>(x(),D("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[F("path",{fill:"currentColor",d:"M544 768v128h192a32 32 0 1 1 0 64H288a32 32 0 1 1 0-64h192V768H192A128 128 0 0 1 64 640V256a128 128 0 0 1 128-128h640a128 128 0 0 1 128 128v384a128 128 0 0 1-128 128zM192 192a64 64 0 0 0-64 64v384a64 64 0 0 0 64 64h640a64 64 0 0 0 64-64V256a64 64 0 0 0-64-64z"})]))}}),po=kd,Ld=L({name:"Moon",__name:"moon",setup(e){return(t,n)=>(x(),D("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[F("path",{fill:"currentColor",d:"M240.448 240.448a384 384 0 1 0 559.424 525.696 448 448 0 0 1-542.016-542.08 391 391 0 0 0-17.408 16.384m181.056 362.048a384 384 0 0 0 525.632 16.384A448 448 0 1 1 405.056 76.8a384 384 0 0 0 16.448 525.696"})]))}}),vo=Ld,Md=L({name:"Operation",__name:"operation",setup(e){return(t,n)=>(x(),D("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[F("path",{fill:"currentColor",d:"M389.44 768a96.064 96.064 0 0 1 181.12 0H896v64H570.56a96.064 96.064 0 0 1-181.12 0H128v-64zm192-288a96.064 96.064 0 0 1 181.12 0H896v64H762.56a96.064 96.064 0 0 1-181.12 0H128v-64zm-320-288a96.064 96.064 0 0 1 181.12 0H896v64H442.56a96.064 96.064 0 0 1-181.12 0H128v-64z"})]))}}),W2=Md,Dd=L({name:"PictureFilled",__name:"picture-filled",setup(e){return(t,n)=>(x(),D("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[F("path",{fill:"currentColor",d:"M96 896a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h832a32 32 0 0 1 32 32v704a32 32 0 0 1-32 32zm315.52-228.48-68.928-68.928a32 32 0 0 0-45.248 0L128 768.064h778.688l-242.112-290.56a32 32 0 0 0-49.216 0L458.752 665.408a32 32 0 0 1-47.232 2.112M256 384a96 96 0 1 0 192.064-.064A96 96 0 0 0 256 384"})]))}}),G2=Dd,Bd=L({name:"Platform",__name:"platform",setup(e){return(t,n)=>(x(),D("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[F("path",{fill:"currentColor",d:"M448 832v-64h128v64h192v64H256v-64zM128 704V128h768v576z"})]))}}),q2=Bd,$d=L({name:"Plus",__name:"plus",setup(e){return(t,n)=>(x(),D("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[F("path",{fill:"currentColor",d:"M480 480V128a32 32 0 0 1 64 0v352h352a32 32 0 1 1 0 64H544v352a32 32 0 1 1-64 0V544H128a32 32 0 0 1 0-64z"})]))}}),J2=$d,Nd=L({name:"Refresh",__name:"refresh",setup(e){return(t,n)=>(x(),D("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[F("path",{fill:"currentColor",d:"M771.776 794.88A384 384 0 0 1 128 512h64a320 320 0 0 0 555.712 216.448H654.72a32 32 0 1 1 0-64h149.056a32 32 0 0 1 32 32v148.928a32 32 0 1 1-64 0v-50.56zM276.288 295.616h92.992a32 32 0 0 1 0 64H220.16a32 32 0 0 1-32-32V178.56a32 32 0 0 1 64 0v50.56A384 384 0 0 1 896.128 512h-64a320 320 0 0 0-555.776-216.384z"})]))}}),Y2=Nd,Hd=L({name:"Search",__name:"search",setup(e){return(t,n)=>(x(),D("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[F("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704"})]))}}),Z2=Hd,zd=L({name:"Setting",__name:"setting",setup(e){return(t,n)=>(x(),D("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[F("path",{fill:"currentColor",d:"M600.704 64a32 32 0 0 1 30.464 22.208l35.2 109.376c14.784 7.232 28.928 15.36 42.432 24.512l112.384-24.192a32 32 0 0 1 34.432 15.36L944.32 364.8a32 32 0 0 1-4.032 37.504l-77.12 85.12a357 357 0 0 1 0 49.024l77.12 85.248a32 32 0 0 1 4.032 37.504l-88.704 153.6a32 32 0 0 1-34.432 15.296L708.8 803.904c-13.44 9.088-27.648 17.28-42.368 24.512l-35.264 109.376A32 32 0 0 1 600.704 960H423.296a32 32 0 0 1-30.464-22.208L357.696 828.48a352 352 0 0 1-42.56-24.64l-112.32 24.256a32 32 0 0 1-34.432-15.36L79.68 659.2a32 32 0 0 1 4.032-37.504l77.12-85.248a357 357 0 0 1 0-48.896l-77.12-85.248A32 32 0 0 1 79.68 364.8l88.704-153.6a32 32 0 0 1 34.432-15.296l112.32 24.256c13.568-9.152 27.776-17.408 42.56-24.64l35.2-109.312A32 32 0 0 1 423.232 64H600.64zm-23.424 64H446.72l-36.352 113.088-24.512 11.968a294 294 0 0 0-34.816 20.096l-22.656 15.36-116.224-25.088-65.28 113.152 79.68 88.192-1.92 27.136a293 293 0 0 0 0 40.192l1.92 27.136-79.808 88.192 65.344 113.152 116.224-25.024 22.656 15.296a294 294 0 0 0 34.816 20.096l24.512 11.968L446.72 896h130.688l36.48-113.152 24.448-11.904a288 288 0 0 0 34.752-20.096l22.592-15.296 116.288 25.024 65.28-113.152-79.744-88.192 1.92-27.136a293 293 0 0 0 0-40.256l-1.92-27.136 79.808-88.128-65.344-113.152-116.288 24.96-22.592-15.232a288 288 0 0 0-34.752-20.096l-24.448-11.904L577.344 128zM512 320a192 192 0 1 1 0 384 192 192 0 0 1 0-384m0 64a128 128 0 1 0 0 256 128 128 0 0 0 0-256"})]))}}),X2=zd,jd=L({name:"SuccessFilled",__name:"success-filled",setup(e){return(t,n)=>(x(),D("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[F("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m-55.808 536.384-99.52-99.584a38.4 38.4 0 1 0-54.336 54.336l126.72 126.72a38.27 38.27 0 0 0 54.336 0l262.4-262.464a38.4 38.4 0 1 0-54.272-54.336z"})]))}}),Ma=jd,Vd=L({name:"Sunny",__name:"sunny",setup(e){return(t,n)=>(x(),D("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[F("path",{fill:"currentColor",d:"M512 704a192 192 0 1 0 0-384 192 192 0 0 0 0 384m0 64a256 256 0 1 1 0-512 256 256 0 0 1 0 512m0-704a32 32 0 0 1 32 32v64a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32m0 768a32 32 0 0 1 32 32v64a32 32 0 1 1-64 0v-64a32 32 0 0 1 32-32M195.2 195.2a32 32 0 0 1 45.248 0l45.248 45.248a32 32 0 1 1-45.248 45.248L195.2 240.448a32 32 0 0 1 0-45.248m543.104 543.104a32 32 0 0 1 45.248 0l45.248 45.248a32 32 0 0 1-45.248 45.248l-45.248-45.248a32 32 0 0 1 0-45.248M64 512a32 32 0 0 1 32-32h64a32 32 0 0 1 0 64H96a32 32 0 0 1-32-32m768 0a32 32 0 0 1 32-32h64a32 32 0 1 1 0 64h-64a32 32 0 0 1-32-32M195.2 828.8a32 32 0 0 1 0-45.248l45.248-45.248a32 32 0 0 1 45.248 45.248L240.448 828.8a32 32 0 0 1-45.248 0m543.104-543.104a32 32 0 0 1 0-45.248l45.248-45.248a32 32 0 0 1 45.248 45.248l-45.248 45.248a32 32 0 0 1-45.248 0"})]))}}),mo=Vd,Ud=L({name:"SwitchButton",__name:"switch-button",setup(e){return(t,n)=>(x(),D("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[F("path",{fill:"currentColor",d:"M352 159.872V230.4a352 352 0 1 0 320 0v-70.528A416.128 416.128 0 0 1 512 960a416 416 0 0 1-160-800.128"}),F("path",{fill:"currentColor",d:"M512 64q32 0 32 32v320q0 32-32 32t-32-32V96q0-32 32-32"})]))}}),Q2=Ud,Kd=L({name:"Tools",__name:"tools",setup(e){return(t,n)=>(x(),D("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[F("path",{fill:"currentColor",d:"M764.416 254.72a351.7 351.7 0 0 1 86.336 149.184H960v192.064H850.752a351.7 351.7 0 0 1-86.336 149.312l54.72 94.72-166.272 96-54.592-94.72a352.64 352.64 0 0 1-172.48 0L371.136 936l-166.272-96 54.72-94.72a351.7 351.7 0 0 1-86.336-149.312H64v-192h109.248a351.7 351.7 0 0 1 86.336-149.312L204.8 160l166.208-96h.192l54.656 94.592a352.64 352.64 0 0 1 172.48 0L652.8 64h.128L819.2 160l-54.72 94.72zM704 499.968a192 192 0 1 0-384 0 192 192 0 0 0 384 0"})]))}}),em=Kd,Wd=L({name:"VideoPlay",__name:"video-play",setup(e){return(t,n)=>(x(),D("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[F("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 832a384 384 0 0 0 0-768 384 384 0 0 0 0 768m-48-247.616L668.608 512 464 375.616zm10.624-342.656 249.472 166.336a48 48 0 0 1 0 79.872L474.624 718.272A48 48 0 0 1 400 678.336V345.6a48 48 0 0 1 74.624-39.936z"})]))}}),tm=Wd,Gd=L({name:"View",__name:"view",setup(e){return(t,n)=>(x(),D("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[F("path",{fill:"currentColor",d:"M512 160c320 0 512 352 512 352S832 864 512 864 0 512 0 512s192-352 512-352m0 64c-225.28 0-384.128 208.064-436.8 288 52.608 79.872 211.456 288 436.8 288 225.28 0 384.128-208.064 436.8-288-52.608-79.872-211.456-288-436.8-288m0 64a224 224 0 1 1 0 448 224 224 0 0 1 0-448m0 64a160.19 160.19 0 0 0-160 160c0 88.192 71.744 160 160 160s160-71.808 160-160-71.744-160-160-160"})]))}}),nm=Gd,qd=L({name:"WarningFilled",__name:"warning-filled",setup(e){return(t,n)=>(x(),D("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[F("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 192a58.43 58.43 0 0 0-58.24 63.744l23.36 256.384a35.072 35.072 0 0 0 69.76 0l23.296-256.384A58.43 58.43 0 0 0 512 256m0 512a51.2 51.2 0 1 0 0-102.4 51.2 51.2 0 0 0 0 102.4"})]))}}),Da=qd,Jd=L({name:"Warning",__name:"warning",setup(e){return(t,n)=>(x(),D("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[F("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 832a384 384 0 0 0 0-768 384 384 0 0 0 0 768m48-176a48 48 0 1 1-96 0 48 48 0 0 1 96 0m-48-464a32 32 0 0 1 32 32v288a32 32 0 0 1-64 0V288a32 32 0 0 1 32-32"})]))}}),rm=Jd;const Un=N([String,Object,Function]),om={Close:ka},am={Close:ka,SuccessFilled:Ma,InfoFilled:Vn,WarningFilled:Da,CircleCloseFilled:Fa},sm={primary:Vn,success:Ma,warning:Da,error:Fa,info:Vn},im={validating:La,success:fd,error:md},lm=()=>ae&&/firefox/i.test(window.navigator.userAgent),Yd=()=>ae&&/android/i.test(window.navigator.userAgent),Zd=te({ariaLabel:String,ariaOrientation:{type:String,values:["horizontal","vertical","undefined"]},ariaControls:String}),lr=e=>Tc(Zd,e),go={prefix:Math.floor(Math.random()*1e4),current:0},Xd=Symbol("elIdInjection"),Ba=()=>ve()?j(Xd,go):go,wn=e=>{const t=Ba(),n=Xn();return ga(()=>_(e)||`${n.value}-id-${t.prefix}-${t.current++}`)},ur=Symbol("formContextKey"),cn=Symbol("formItemContextKey"),Qd=()=>{const e=j(ur,void 0),t=j(cn,void 0);return{form:e,formItem:t}},um=(e,{formItemContext:t,disableIdGeneration:n,disableIdManagement:r})=>{n||(n=O(!1)),r||(r=O(!1));const o=ve(),a=()=>{let u=o?.parent;for(;u;){if(u.type.name==="ElFormItem")return!1;if(u.type.name==="ElLabelWrap")return!0;u=u.parent}return!1},s=O();let i;const l=C(()=>{var u;return!!(!(e.label||e.ariaLabel)&&t&&t.inputIds&&((u=t.inputIds)==null?void 0:u.length)<=1)});return ce(()=>{i=U([le(e,"id"),n],([u,v])=>{const c=u??(v?void 0:wn().value);c!==s.value&&(t?.removeInputId&&!a()&&(s.value&&t.removeInputId(s.value),!r?.value&&!v&&c&&t.addInputId(c)),s.value=c)},{immediate:!0})}),Ns(()=>{i&&i(),t?.removeInputId&&s.value&&t.removeInputId(s.value)}),{isLabeledByFormItem:l,inputId:s}},$a=e=>{const t=ve();return C(()=>{var n,r;return(r=(n=t?.proxy)==null?void 0:n.$props)==null?void 0:r[e]})},Na=(e,t={})=>{const n=O(void 0),r=t.prop?n:$a("size"),o=t.global?n:qc(),a=t.form?{size:void 0}:j(ur,void 0),s=t.formItem?{size:void 0}:j(cn,void 0);return C(()=>r.value||_(e)||s?.size||a?.size||o.value||"")},Ha=e=>{const t=$a("disabled"),n=j(ur,void 0);return C(()=>{var r,o,a;return(a=(o=(r=t.value)!=null?r:_(e))!=null?o:n?.disabled)!=null?a:!1})},ef='a[href],button:not([disabled]),button:not([hidden]),:not([tabindex="-1"]),input:not([disabled]),input:not([type="hidden"]),select:not([disabled]),textarea:not([disabled])',ho=e=>typeof Element>"u"?!1:e instanceof Element,tf=e=>getComputedStyle(e).position==="fixed"?!1:e.offsetParent!==null,cm=e=>Array.from(e.querySelectorAll(ef)).filter(t=>dn(t)&&tf(t)),dn=e=>{if(e.tabIndex>0||e.tabIndex===0&&e.getAttribute("tabIndex")!==null)return!0;if(e.tabIndex<0||e.hasAttribute("disabled")||e.getAttribute("aria-disabled")==="true")return!1;switch(e.nodeName){case"A":return!!e.href&&e.rel!=="ignore";case"INPUT":return!(e.type==="hidden"||e.type==="file");case"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}},cr=(e,t)=>{if(!e||!e.focus)return;let n=!1;ho(e)&&!dn(e)&&!e.getAttribute("tabindex")&&(e.setAttribute("tabindex","-1"),n=!0),e.focus(t),ho(e)&&n&&e.removeAttribute("tabindex")},st=4,nf={vertical:{offset:"offsetHeight",scroll:"scrollTop",scrollSize:"scrollHeight",size:"height",key:"vertical",axis:"Y",client:"clientY",direction:"top"},horizontal:{offset:"offsetWidth",scroll:"scrollLeft",scrollSize:"scrollWidth",size:"width",key:"horizontal",axis:"X",client:"clientX",direction:"left"}},rf=({move:e,size:t,bar:n})=>({[n.size]:t,transform:`translate${n.axis}(${e}%)`}),dr=Symbol("scrollbarContextKey"),of=te({vertical:Boolean,size:String,move:Number,ratio:{type:Number,required:!0},always:Boolean}),af="Thumb",sf=L({__name:"thumb",props:of,setup(e){const t=e,n=j(dr),r=se("scrollbar");n||jc(af,"can not inject scrollbar context");const o=O(),a=O(),s=O({}),i=O(!1);let l=!1,u=!1,v=0,c=0,d=ae?document.onselectstart:null;const m=C(()=>nf[t.vertical?"vertical":"horizontal"]),p=C(()=>rf({size:t.size,move:t.move,bar:m.value})),g=C(()=>o.value[m.value.offset]**2/n.wrapElement[m.value.scrollSize]/t.ratio/a.value[m.value.offset]),w=E=>{var A;if(E.stopPropagation(),E.ctrlKey||[1,2].includes(E.button))return;(A=window.getSelection())==null||A.removeAllRanges(),y(E);const P=E.currentTarget;P&&(s.value[m.value.axis]=P[m.value.offset]-(E[m.value.client]-P.getBoundingClientRect()[m.value.direction]))},b=E=>{if(!a.value||!o.value||!n.wrapElement)return;const A=Math.abs(E.target.getBoundingClientRect()[m.value.direction]-E[m.value.client]),P=a.value[m.value.offset]/2,B=(A-P)*100*g.value/o.value[m.value.offset];n.wrapElement[m.value.scroll]=B*n.wrapElement[m.value.scrollSize]/100},y=E=>{E.stopImmediatePropagation(),l=!0,v=n.wrapElement.scrollHeight,c=n.wrapElement.scrollWidth,document.addEventListener("mousemove",T),document.addEventListener("mouseup",h),d=document.onselectstart,document.onselectstart=()=>!1},T=E=>{if(!o.value||!a.value||l===!1)return;const A=s.value[m.value.axis];if(!A)return;const P=(o.value.getBoundingClientRect()[m.value.direction]-E[m.value.client])*-1,B=a.value[m.value.offset]-A,I=(P-B)*100*g.value/o.value[m.value.offset];m.value.scroll==="scrollLeft"?n.wrapElement[m.value.scroll]=I*c/100:n.wrapElement[m.value.scroll]=I*v/100},h=()=>{l=!1,s.value[m.value.axis]=0,document.removeEventListener("mousemove",T),document.removeEventListener("mouseup",h),f(),u&&(i.value=!1)},k=()=>{u=!1,i.value=!!t.size},S=()=>{u=!0,i.value=l};me(()=>{f(),document.removeEventListener("mouseup",h)});const f=()=>{document.onselectstart!==d&&(document.onselectstart=d)};return Ce(le(n,"scrollbarElement"),"mousemove",k),Ce(le(n,"scrollbarElement"),"mouseleave",S),(E,A)=>(x(),Z(Jo,{name:_(r).b("fade"),persisted:""},{default:$(()=>[Zn(F("div",{ref_key:"instance",ref:o,class:J([_(r).e("bar"),_(r).is(m.value.key)]),onMousedown:b,onClick:A[0]||(A[0]=rn(()=>{},["stop"]))},[F("div",{ref_key:"thumb",ref:a,class:J(_(r).e("thumb")),style:Rt(p.value),onMousedown:w},null,38)],34),[[qo,E.always||i.value]])]),_:1},8,["name"]))}});var bo=Q(sf,[["__file","/home/runner/work/element-plus/element-plus/packages/components/scrollbar/src/thumb.vue"]]);const lf=te({always:{type:Boolean,default:!0},minSize:{type:Number,required:!0}}),uf=L({__name:"bar",props:lf,setup(e,{expose:t}){const n=e,r=j(dr),o=O(0),a=O(0),s=O(""),i=O(""),l=O(1),u=O(1);return t({handleScroll:d=>{if(d){const m=d.offsetHeight-st,p=d.offsetWidth-st;a.value=d.scrollTop*100/m*l.value,o.value=d.scrollLeft*100/p*u.value}},update:()=>{const d=r?.wrapElement;if(!d)return;const m=d.offsetHeight-st,p=d.offsetWidth-st,g=m**2/d.scrollHeight,w=p**2/d.scrollWidth,b=Math.max(g,n.minSize),y=Math.max(w,n.minSize);l.value=g/(m-g)/(b/(m-b)),u.value=w/(p-w)/(y/(p-y)),i.value=b+st<m?`${b}px`:"",s.value=y+st<p?`${y}px`:""}}),(d,m)=>(x(),D(vn,null,[H(bo,{move:o.value,ratio:u.value,size:s.value,always:d.always},null,8,["move","ratio","size","always"]),H(bo,{move:a.value,ratio:l.value,size:i.value,vertical:"",always:d.always},null,8,["move","ratio","size","always"])],64))}});var cf=Q(uf,[["__file","/home/runner/work/element-plus/element-plus/packages/components/scrollbar/src/bar.vue"]]);const df=te({distance:{type:Number,default:0},height:{type:[String,Number],default:""},maxHeight:{type:[String,Number],default:""},native:Boolean,wrapStyle:{type:N([String,Object,Array]),default:""},wrapClass:{type:[String,Array],default:""},viewClass:{type:[String,Array],default:""},viewStyle:{type:[String,Array,Object],default:""},noresize:Boolean,tag:{type:String,default:"div"},always:Boolean,minSize:{type:Number,default:20},tabindex:{type:[String,Number],default:void 0},id:String,role:String,...lr(["ariaLabel","ariaOrientation"])}),ff={"end-reached":e=>["left","right","top","bottom"].includes(e),scroll:({scrollTop:e,scrollLeft:t})=>[e,t].every(Se)},pf=["tabindex"],vf="ElScrollbar",mf=L({name:vf,__name:"scrollbar",props:df,emits:ff,setup(e,{expose:t,emit:n}){const r=e,o=n,a=se("scrollbar");let s,i,l,u=0,v=0,c="";const d={bottom:!1,top:!1,right:!1,left:!1},m=O(),p=O(),g=O(),w=O(),b=C(()=>{const I={},R=un(r.height),z=un(r.maxHeight);return R&&(I.height=R),z&&(I.maxHeight=z),[r.wrapStyle,I]}),y=C(()=>[r.wrapClass,a.e("wrap"),{[a.em("wrap","hidden-default")]:!r.native}]),T=C(()=>[a.e("view"),r.viewClass]),h=I=>{var R;return(R=d[I])!=null?R:!1},k={top:"bottom",bottom:"top",left:"right",right:"left"},S=I=>{const R=k[c];if(!R)return;const z=I[c],X=I[R];z&&!d[c]&&(d[c]=!0),!X&&d[R]&&(d[R]=!1)},f=()=>{var I;if(p.value){(I=w.value)==null||I.handleScroll(p.value);const R=u,z=v;u=p.value.scrollTop,v=p.value.scrollLeft;const X={bottom:u+p.value.clientHeight>=p.value.scrollHeight-r.distance,top:u<=r.distance&&R!==0,right:v+p.value.clientWidth>=p.value.scrollWidth-r.distance&&z!==v,left:v<=r.distance&&z!==0};if(o("scroll",{scrollTop:u,scrollLeft:v}),R!==u&&(c=u>R?"bottom":"top"),z!==v&&(c=v>z?"right":"left"),r.distance>0){if(h(c))return;S(X)}X[c]&&o("end-reached",c)}};function E(I,R){$t(I)?p.value.scrollTo(I):Se(I)&&Se(R)&&p.value.scrollTo(I,R)}const A=I=>{Se(I)&&(p.value.scrollTop=I)},P=I=>{Se(I)&&(p.value.scrollLeft=I)},B=()=>{var I;(I=w.value)==null||I.update(),d[c]=!1};return U(()=>r.noresize,I=>{I?(s?.(),i?.(),l?.()):({stop:s}=jn(g,B),{stop:i}=jn(p,B),l=Ce("resize",B))},{immediate:!0}),U(()=>[r.maxHeight,r.height],()=>{r.native||Qe(()=>{var I;B(),p.value&&((I=w.value)==null||I.handleScroll(p.value))})}),ue(dr,Yo({scrollbarElement:m,wrapElement:p})),Hs(()=>{p.value&&(p.value.scrollTop=u,p.value.scrollLeft=v)}),ce(()=>{r.native||Qe(()=>{B()})}),zs(()=>B()),t({wrapRef:p,update:B,scrollTo:E,setScrollTop:A,setScrollLeft:P,handleScroll:f}),(I,R)=>(x(),D("div",{ref_key:"scrollbarRef",ref:m,class:J(_(a).b())},[F("div",{ref_key:"wrapRef",ref:p,class:J(y.value),style:Rt(b.value),tabindex:I.tabindex,onScroll:f},[(x(),Z(At(I.tag),{id:I.id,ref_key:"resizeRef",ref:g,class:J(T.value),style:Rt(I.viewStyle),role:I.role,"aria-label":I.ariaLabel,"aria-orientation":I.ariaOrientation},{default:$(()=>[G(I.$slots,"default")]),_:3},8,["id","class","style","role","aria-label","aria-orientation"]))],46,pf),I.native?Ae("v-if",!0):(x(),Z(cf,{key:0,ref_key:"barRef",ref:w,always:I.always,"min-size":I.minSize},null,8,["always","min-size"]))],2))}});var gf=Q(mf,[["__file","/home/runner/work/element-plus/element-plus/packages/components/scrollbar/src/scrollbar.vue"]]);const hf=Ue(gf),fr=Symbol("popper"),za=Symbol("popperContent"),ja=["dialog","grid","group","listbox","menu","navigation","tooltip","tree"],Va=te({role:{type:String,values:ja,default:"tooltip"}}),bf=L({name:"ElPopper",inheritAttrs:!1,__name:"popper",props:Va,setup(e,{expose:t}){const n=e,r=O(),o=O(),a=O(),s=O(),i=C(()=>n.role),l={triggerRef:r,popperInstanceRef:o,contentRef:a,referenceRef:s,role:i};return t(l),ue(fr,l),(u,v)=>G(u.$slots,"default")}});var yf=Q(bf,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/popper.vue"]]);const wf=L({name:"ElPopperArrow",inheritAttrs:!1,__name:"arrow",setup(e,{expose:t}){const n=se("popper"),{arrowRef:r,arrowStyle:o}=j(za,void 0);return me(()=>{r.value=void 0}),t({arrowRef:r}),(a,s)=>(x(),D("span",{ref_key:"arrowRef",ref:r,class:J(_(n).e("arrow")),style:Rt(_(o)),"data-popper-arrow":""},null,6))}});var _f=Q(wf,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/arrow.vue"]]);const Ua=te({virtualRef:{type:N(Object)},virtualTriggering:Boolean,onMouseenter:{type:N(Function)},onMouseleave:{type:N(Function)},onClick:{type:N(Function)},onKeydown:{type:N(Function)},onFocus:{type:N(Function)},onBlur:{type:N(Function)},onContextmenu:{type:N(Function)},id:String,open:Boolean}),Ka=Symbol("elForwardRef"),Ef=e=>{ue(Ka,{setForwardRef:n=>{e.value=n}})},Sf=e=>({mounted(t){e(t)},updated(t){e(t)},unmounted(){e(null)}}),Cf="ElOnlyChild",Wa=L({name:Cf,setup(e,{slots:t,attrs:n}){var r;const o=j(Ka),a=Sf((r=o?.setForwardRef)!=null?r:nn);return()=>{var s;const i=(s=t.default)==null?void 0:s.call(t,n);if(!i)return null;const[l,u]=Ga(i);return l?Zn(js(l,n),[[a]]):null}}});function Ga(e){if(!e)return[null,0];const t=e,n=t.filter(r=>r.type!==Br).length;for(const r of t){if($t(r))switch(r.type){case Br:continue;case Zo:case"svg":return[yo(r),n];case vn:return Ga(r.children);default:return[r,n]}return[yo(r),n]}return[null,0]}function yo(e){const t=se("only-child");return H("span",{class:t.e("content")},[e])}const Tf=L({name:"ElPopperTrigger",inheritAttrs:!1,__name:"trigger",props:Ua,setup(e,{expose:t}){const n=e,{role:r,triggerRef:o}=j(fr,void 0);Ef(o);const a=C(()=>i.value?n.id:void 0),s=C(()=>{if(r&&r.value==="tooltip")return n.open&&n.id?n.id:void 0}),i=C(()=>{if(r&&r.value!=="tooltip")return r.value}),l=C(()=>i.value?`${n.open}`:void 0);let u;const v=["onMouseenter","onMouseleave","onClick","onKeydown","onFocus","onBlur","onContextmenu"];return ce(()=>{U(()=>n.virtualRef,c=>{c&&(o.value=de(c))},{immediate:!0}),U(o,(c,d)=>{u?.(),u=void 0,ct(d)&&v.forEach(m=>{const p=n[m];p&&d.removeEventListener(m.slice(2).toLowerCase(),p,["onFocus","onBlur"].includes(m))}),ct(c)&&(v.forEach(m=>{const p=n[m];p&&c.addEventListener(m.slice(2).toLowerCase(),p,["onFocus","onBlur"].includes(m))}),dn(c)&&(u=U([a,s,i,l],m=>{["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach((p,g)=>{bn(m[g])?c.removeAttribute(p):c.setAttribute(p,m[g])})},{immediate:!0}))),ct(d)&&dn(d)&&["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach(m=>d.removeAttribute(m))},{immediate:!0})}),me(()=>{if(u?.(),u=void 0,o.value&&ct(o.value)){const c=o.value;v.forEach(d=>{const m=n[d];m&&c.removeEventListener(d.slice(2).toLowerCase(),m,["onFocus","onBlur"].includes(d))}),o.value=void 0}}),t({triggerRef:o}),(c,d)=>c.virtualTriggering?Ae("v-if",!0):(x(),Z(_(Wa),Fe({key:0},c.$attrs,{"aria-controls":a.value,"aria-describedby":s.value,"aria-expanded":l.value,"aria-haspopup":i.value}),{default:$(()=>[G(c.$slots,"default")]),_:3},16,["aria-controls","aria-describedby","aria-expanded","aria-haspopup"]))}});var Af=Q(Tf,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/trigger.vue"]]);const Pn="focus-trap.focus-after-trapped",Rn="focus-trap.focus-after-released",Of="focus-trap.focusout-prevented",wo={cancelable:!0,bubbles:!1},xf={cancelable:!0,bubbles:!1},_o="focusAfterTrapped",Eo="focusAfterReleased",If=Symbol("elFocusTrap"),pr=O(),_n=O(0),vr=O(0);let Gt=0;const qa=e=>{const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0||r===document.activeElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t},So=(e,t)=>{for(const n of e)if(!Pf(n,t))return n},Pf=(e,t)=>{if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1},Rf=e=>{const t=qa(e),n=So(t,e),r=So(t.reverse(),e);return[n,r]},Ff=e=>e instanceof HTMLInputElement&&"select"in e,He=(e,t)=>{if(e){const n=document.activeElement;cr(e,{preventScroll:!0}),vr.value=window.performance.now(),e!==n&&Ff(e)&&t&&e.select()}};function Co(e,t){const n=[...e],r=e.indexOf(t);return r!==-1&&n.splice(r,1),n}const kf=()=>{let e=[];return{push:r=>{const o=e[0];o&&r!==o&&o.pause(),e=Co(e,r),e.unshift(r)},remove:r=>{var o,a;e=Co(e,r),(a=(o=e[0])==null?void 0:o.resume)==null||a.call(o)}}},Lf=(e,t=!1)=>{const n=document.activeElement;for(const r of e)if(He(r,t),document.activeElement!==n)return},To=kf(),Mf=()=>_n.value>vr.value,qt=()=>{pr.value="pointer",_n.value=window.performance.now()},Ao=()=>{pr.value="keyboard",_n.value=window.performance.now()},Df=()=>(ce(()=>{Gt===0&&(document.addEventListener("mousedown",qt),document.addEventListener("touchstart",qt),document.addEventListener("keydown",Ao)),Gt++}),me(()=>{Gt--,Gt<=0&&(document.removeEventListener("mousedown",qt),document.removeEventListener("touchstart",qt),document.removeEventListener("keydown",Ao))}),{focusReason:pr,lastUserFocusTimestamp:_n,lastAutomatedFocusTimestamp:vr}),Jt=e=>new CustomEvent(Of,{...xf,detail:e}),oe={tab:"Tab",enter:"Enter",space:"Space",left:"ArrowLeft",up:"ArrowUp",right:"ArrowRight",down:"ArrowDown",esc:"Escape",delete:"Delete",backspace:"Backspace",numpadEnter:"NumpadEnter",pageUp:"PageUp",pageDown:"PageDown",home:"Home",end:"End"},ne=(e,t,{checkForDefaultPrevented:n=!0}={})=>o=>{const a=e?.(o);if(n===!1||!a)return t?.(o)},Oo=e=>t=>t.pointerType==="mouse"?e(t):void 0,rt=e=>{if(e.code&&e.code!=="Unidentified")return e.code;const t=Bf(e);return t?Object.values(oe).includes(t)?t:t===" "?oe.space:"":""},Bf=e=>{let t=e.key&&e.key!=="Unidentified"?e.key:"";if(!t&&e.type==="keyup"&&Yd()){const n=e.target;t=n.value.charAt(n.selectionStart-1)}return t};let ut=[];const xo=e=>{rt(e)===oe.esc&&ut.forEach(n=>n(e))},$f=e=>{ce(()=>{ut.length===0&&document.addEventListener("keydown",xo),ae&&ut.push(e)}),me(()=>{ut=ut.filter(t=>t!==e),ut.length===0&&ae&&document.removeEventListener("keydown",xo)})},Nf=L({name:"ElFocusTrap",inheritAttrs:!1,props:{loop:Boolean,trapped:Boolean,focusTrapEl:Object,focusStartEl:{type:[Object,String],default:"first"}},emits:[_o,Eo,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{emit:t}){const n=O();let r,o;const{focusReason:a}=Df();$f(p=>{e.trapped&&!s.paused&&t("release-requested",p)});const s={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},i=p=>{if(!e.loop&&!e.trapped||s.paused)return;const{altKey:g,ctrlKey:w,metaKey:b,currentTarget:y,shiftKey:T}=p,{loop:h}=e,S=rt(p)===oe.tab&&!g&&!w&&!b,f=document.activeElement;if(S&&f){const E=y,[A,P]=Rf(E);if(A&&P){if(!T&&f===P){const I=Jt({focusReason:a.value});t("focusout-prevented",I),I.defaultPrevented||(p.preventDefault(),h&&He(A,!0))}else if(T&&[A,E].includes(f)){const I=Jt({focusReason:a.value});t("focusout-prevented",I),I.defaultPrevented||(p.preventDefault(),h&&He(P,!0))}}else if(f===E){const I=Jt({focusReason:a.value});t("focusout-prevented",I),I.defaultPrevented||p.preventDefault()}}};ue(If,{focusTrapRef:n,onKeydown:i}),U(()=>e.focusTrapEl,p=>{p&&(n.value=p)},{immediate:!0}),U([n],([p],[g])=>{p&&(p.addEventListener("keydown",i),p.addEventListener("focusin",v),p.addEventListener("focusout",c)),g&&(g.removeEventListener("keydown",i),g.removeEventListener("focusin",v),g.removeEventListener("focusout",c))});const l=p=>{t(_o,p)},u=p=>t(Eo,p),v=p=>{const g=_(n);if(!g)return;const w=p.target,b=p.relatedTarget,y=w&&g.contains(w);e.trapped||b&&g.contains(b)||(r=b),y&&t("focusin",p),!s.paused&&e.trapped&&(y?o=w:He(o,!0))},c=p=>{const g=_(n);if(!(s.paused||!g))if(e.trapped){const w=p.relatedTarget;!bn(w)&&!g.contains(w)&&setTimeout(()=>{if(!s.paused&&e.trapped){const b=Jt({focusReason:a.value});t("focusout-prevented",b),b.defaultPrevented||He(o,!0)}},0)}else{const w=p.target;w&&g.contains(w)||t("focusout",p)}};async function d(){await Qe();const p=_(n);if(p){To.push(s);const g=p.contains(document.activeElement)?r:document.activeElement;if(r=g,!p.contains(g)){const b=new Event(Pn,wo);p.addEventListener(Pn,l),p.dispatchEvent(b),b.defaultPrevented||Qe(()=>{let y=e.focusStartEl;Yn(y)||(He(y),document.activeElement!==y&&(y="first")),y==="first"&&Lf(qa(p),!0),(document.activeElement===g||y==="container")&&He(p)})}}}function m(){const p=_(n);if(p){p.removeEventListener(Pn,l);const g=new CustomEvent(Rn,{...wo,detail:{focusReason:a.value}});p.addEventListener(Rn,u),p.dispatchEvent(g),!g.defaultPrevented&&(a.value=="keyboard"||!Mf()||p.contains(document.activeElement))&&He(r??document.body),p.removeEventListener(Rn,u),To.remove(s),r=null,o=null}}return ce(()=>{e.trapped&&d(),U(()=>e.trapped,p=>{p?d():m()})}),me(()=>{e.trapped&&m(),n.value&&(n.value.removeEventListener("keydown",i),n.value.removeEventListener("focusin",v),n.value.removeEventListener("focusout",c),n.value=void 0),r=null,o=null}),{onKeydown:i}}});function Hf(e,t,n,r,o,a){return G(e.$slots,"default",{handleKeydown:e.onKeydown})}var zf=Q(Nf,[["render",Hf],["__file","/home/runner/work/element-plus/element-plus/packages/components/focus-trap/src/focus-trap.vue"]]),fe="top",ye="bottom",we="right",pe="left",mr="auto",zt=[fe,ye,we,pe],vt="start",Mt="end",jf="clippingParents",Ja="viewport",Tt="popper",Vf="reference",Io=zt.reduce(function(e,t){return e.concat([t+"-"+vt,t+"-"+Mt])},[]),gr=[].concat(zt,[mr]).reduce(function(e,t){return e.concat([t,t+"-"+vt,t+"-"+Mt])},[]),Uf="beforeRead",Kf="read",Wf="afterRead",Gf="beforeMain",qf="main",Jf="afterMain",Yf="beforeWrite",Zf="write",Xf="afterWrite",Qf=[Uf,Kf,Wf,Gf,qf,Jf,Yf,Zf,Xf];function Ie(e){return e?(e.nodeName||"").toLowerCase():null}function Ee(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function mt(e){var t=Ee(e).Element;return e instanceof t||e instanceof Element}function be(e){var t=Ee(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function hr(e){if(typeof ShadowRoot>"u")return!1;var t=Ee(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function ep(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},o=t.attributes[n]||{},a=t.elements[n];!be(a)||!Ie(a)||(Object.assign(a.style,r),Object.keys(o).forEach(function(s){var i=o[s];i===!1?a.removeAttribute(s):a.setAttribute(s,i===!0?"":i)}))})}function tp(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var o=t.elements[r],a=t.attributes[r]||{},s=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),i=s.reduce(function(l,u){return l[u]="",l},{});!be(o)||!Ie(o)||(Object.assign(o.style,i),Object.keys(a).forEach(function(l){o.removeAttribute(l)}))})}}var Ya={name:"applyStyles",enabled:!0,phase:"write",fn:ep,effect:tp,requires:["computeStyles"]};function Te(e){return e.split("-")[0]}var Xe=Math.max,fn=Math.min,gt=Math.round;function ht(e,t){t===void 0&&(t=!1);var n=e.getBoundingClientRect(),r=1,o=1;if(be(e)&&t){var a=e.offsetHeight,s=e.offsetWidth;s>0&&(r=gt(n.width)/s||1),a>0&&(o=gt(n.height)/a||1)}return{width:n.width/r,height:n.height/o,top:n.top/o,right:n.right/r,bottom:n.bottom/o,left:n.left/r,x:n.left/r,y:n.top/o}}function br(e){var t=ht(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function Za(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&hr(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function ke(e){return Ee(e).getComputedStyle(e)}function np(e){return["table","td","th"].indexOf(Ie(e))>=0}function Ke(e){return((mt(e)?e.ownerDocument:e.document)||window.document).documentElement}function En(e){return Ie(e)==="html"?e:e.assignedSlot||e.parentNode||(hr(e)?e.host:null)||Ke(e)}function Po(e){return!be(e)||ke(e).position==="fixed"?null:e.offsetParent}function rp(e){var t=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,n=navigator.userAgent.indexOf("Trident")!==-1;if(n&&be(e)){var r=ke(e);if(r.position==="fixed")return null}var o=En(e);for(hr(o)&&(o=o.host);be(o)&&["html","body"].indexOf(Ie(o))<0;){var a=ke(o);if(a.transform!=="none"||a.perspective!=="none"||a.contain==="paint"||["transform","perspective"].indexOf(a.willChange)!==-1||t&&a.willChange==="filter"||t&&a.filter&&a.filter!=="none")return o;o=o.parentNode}return null}function jt(e){for(var t=Ee(e),n=Po(e);n&&np(n)&&ke(n).position==="static";)n=Po(n);return n&&(Ie(n)==="html"||Ie(n)==="body"&&ke(n).position==="static")?t:n||rp(e)||t}function yr(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function xt(e,t,n){return Xe(e,fn(t,n))}function op(e,t,n){var r=xt(e,t,n);return r>n?n:r}function Xa(){return{top:0,right:0,bottom:0,left:0}}function Qa(e){return Object.assign({},Xa(),e)}function es(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var ap=function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,Qa(typeof e!="number"?e:es(e,zt))};function sp(e){var t,n=e.state,r=e.name,o=e.options,a=n.elements.arrow,s=n.modifiersData.popperOffsets,i=Te(n.placement),l=yr(i),u=[pe,we].indexOf(i)>=0,v=u?"height":"width";if(!(!a||!s)){var c=ap(o.padding,n),d=br(a),m=l==="y"?fe:pe,p=l==="y"?ye:we,g=n.rects.reference[v]+n.rects.reference[l]-s[l]-n.rects.popper[v],w=s[l]-n.rects.reference[l],b=jt(a),y=b?l==="y"?b.clientHeight||0:b.clientWidth||0:0,T=g/2-w/2,h=c[m],k=y-d[v]-c[p],S=y/2-d[v]/2+T,f=xt(h,S,k),E=l;n.modifiersData[r]=(t={},t[E]=f,t.centerOffset=f-S,t)}}function ip(e){var t=e.state,n=e.options,r=n.element,o=r===void 0?"[data-popper-arrow]":r;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||!Za(t.elements.popper,o)||(t.elements.arrow=o))}var lp={name:"arrow",enabled:!0,phase:"main",fn:sp,effect:ip,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function bt(e){return e.split("-")[1]}var up={top:"auto",right:"auto",bottom:"auto",left:"auto"};function cp(e){var t=e.x,n=e.y,r=window,o=r.devicePixelRatio||1;return{x:gt(t*o)/o||0,y:gt(n*o)/o||0}}function Ro(e){var t,n=e.popper,r=e.popperRect,o=e.placement,a=e.variation,s=e.offsets,i=e.position,l=e.gpuAcceleration,u=e.adaptive,v=e.roundOffsets,c=e.isFixed,d=s.x,m=d===void 0?0:d,p=s.y,g=p===void 0?0:p,w=typeof v=="function"?v({x:m,y:g}):{x:m,y:g};m=w.x,g=w.y;var b=s.hasOwnProperty("x"),y=s.hasOwnProperty("y"),T=pe,h=fe,k=window;if(u){var S=jt(n),f="clientHeight",E="clientWidth";if(S===Ee(n)&&(S=Ke(n),ke(S).position!=="static"&&i==="absolute"&&(f="scrollHeight",E="scrollWidth")),S=S,o===fe||(o===pe||o===we)&&a===Mt){h=ye;var A=c&&S===k&&k.visualViewport?k.visualViewport.height:S[f];g-=A-r.height,g*=l?1:-1}if(o===pe||(o===fe||o===ye)&&a===Mt){T=we;var P=c&&S===k&&k.visualViewport?k.visualViewport.width:S[E];m-=P-r.width,m*=l?1:-1}}var B=Object.assign({position:i},u&&up),I=v===!0?cp({x:m,y:g}):{x:m,y:g};if(m=I.x,g=I.y,l){var R;return Object.assign({},B,(R={},R[h]=y?"0":"",R[T]=b?"0":"",R.transform=(k.devicePixelRatio||1)<=1?"translate("+m+"px, "+g+"px)":"translate3d("+m+"px, "+g+"px, 0)",R))}return Object.assign({},B,(t={},t[h]=y?g+"px":"",t[T]=b?m+"px":"",t.transform="",t))}function dp(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=r===void 0?!0:r,a=n.adaptive,s=a===void 0?!0:a,i=n.roundOffsets,l=i===void 0?!0:i,u={placement:Te(t.placement),variation:bt(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Ro(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Ro(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var ts={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:dp,data:{}},Yt={passive:!0};function fp(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,a=o===void 0?!0:o,s=r.resize,i=s===void 0?!0:s,l=Ee(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&u.forEach(function(v){v.addEventListener("scroll",n.update,Yt)}),i&&l.addEventListener("resize",n.update,Yt),function(){a&&u.forEach(function(v){v.removeEventListener("scroll",n.update,Yt)}),i&&l.removeEventListener("resize",n.update,Yt)}}var ns={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:fp,data:{}},pp={left:"right",right:"left",bottom:"top",top:"bottom"};function tn(e){return e.replace(/left|right|bottom|top/g,function(t){return pp[t]})}var vp={start:"end",end:"start"};function Fo(e){return e.replace(/start|end/g,function(t){return vp[t]})}function wr(e){var t=Ee(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function _r(e){return ht(Ke(e)).left+wr(e).scrollLeft}function mp(e){var t=Ee(e),n=Ke(e),r=t.visualViewport,o=n.clientWidth,a=n.clientHeight,s=0,i=0;return r&&(o=r.width,a=r.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(s=r.offsetLeft,i=r.offsetTop)),{width:o,height:a,x:s+_r(e),y:i}}function gp(e){var t,n=Ke(e),r=wr(e),o=(t=e.ownerDocument)==null?void 0:t.body,a=Xe(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),s=Xe(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),i=-r.scrollLeft+_r(e),l=-r.scrollTop;return ke(o||n).direction==="rtl"&&(i+=Xe(n.clientWidth,o?o.clientWidth:0)-a),{width:a,height:s,x:i,y:l}}function Er(e){var t=ke(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function rs(e){return["html","body","#document"].indexOf(Ie(e))>=0?e.ownerDocument.body:be(e)&&Er(e)?e:rs(En(e))}function It(e,t){var n;t===void 0&&(t=[]);var r=rs(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),a=Ee(r),s=o?[a].concat(a.visualViewport||[],Er(r)?r:[]):r,i=t.concat(s);return o?i:i.concat(It(En(s)))}function Kn(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function hp(e){var t=ht(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}function ko(e,t){return t===Ja?Kn(mp(e)):mt(t)?hp(t):Kn(gp(Ke(e)))}function bp(e){var t=It(En(e)),n=["absolute","fixed"].indexOf(ke(e).position)>=0,r=n&&be(e)?jt(e):e;return mt(r)?t.filter(function(o){return mt(o)&&Za(o,r)&&Ie(o)!=="body"}):[]}function yp(e,t,n){var r=t==="clippingParents"?bp(e):[].concat(t),o=[].concat(r,[n]),a=o[0],s=o.reduce(function(i,l){var u=ko(e,l);return i.top=Xe(u.top,i.top),i.right=fn(u.right,i.right),i.bottom=fn(u.bottom,i.bottom),i.left=Xe(u.left,i.left),i},ko(e,a));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function os(e){var t=e.reference,n=e.element,r=e.placement,o=r?Te(r):null,a=r?bt(r):null,s=t.x+t.width/2-n.width/2,i=t.y+t.height/2-n.height/2,l;switch(o){case fe:l={x:s,y:t.y-n.height};break;case ye:l={x:s,y:t.y+t.height};break;case we:l={x:t.x+t.width,y:i};break;case pe:l={x:t.x-n.width,y:i};break;default:l={x:t.x,y:t.y}}var u=o?yr(o):null;if(u!=null){var v=u==="y"?"height":"width";switch(a){case vt:l[u]=l[u]-(t[v]/2-n[v]/2);break;case Mt:l[u]=l[u]+(t[v]/2-n[v]/2);break}}return l}function Dt(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=r===void 0?e.placement:r,a=n.boundary,s=a===void 0?jf:a,i=n.rootBoundary,l=i===void 0?Ja:i,u=n.elementContext,v=u===void 0?Tt:u,c=n.altBoundary,d=c===void 0?!1:c,m=n.padding,p=m===void 0?0:m,g=Qa(typeof p!="number"?p:es(p,zt)),w=v===Tt?Vf:Tt,b=e.rects.popper,y=e.elements[d?w:v],T=yp(mt(y)?y:y.contextElement||Ke(e.elements.popper),s,l),h=ht(e.elements.reference),k=os({reference:h,element:b,placement:o}),S=Kn(Object.assign({},b,k)),f=v===Tt?S:h,E={top:T.top-f.top+g.top,bottom:f.bottom-T.bottom+g.bottom,left:T.left-f.left+g.left,right:f.right-T.right+g.right},A=e.modifiersData.offset;if(v===Tt&&A){var P=A[o];Object.keys(E).forEach(function(B){var I=[we,ye].indexOf(B)>=0?1:-1,R=[fe,ye].indexOf(B)>=0?"y":"x";E[B]+=P[R]*I})}return E}function wp(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=n.boundary,a=n.rootBoundary,s=n.padding,i=n.flipVariations,l=n.allowedAutoPlacements,u=l===void 0?gr:l,v=bt(r),c=v?i?Io:Io.filter(function(p){return bt(p)===v}):zt,d=c.filter(function(p){return u.indexOf(p)>=0});d.length===0&&(d=c);var m=d.reduce(function(p,g){return p[g]=Dt(e,{placement:g,boundary:o,rootBoundary:a,padding:s})[Te(g)],p},{});return Object.keys(m).sort(function(p,g){return m[p]-m[g]})}function _p(e){if(Te(e)===mr)return[];var t=tn(e);return[Fo(e),t,Fo(t)]}function Ep(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,a=o===void 0?!0:o,s=n.altAxis,i=s===void 0?!0:s,l=n.fallbackPlacements,u=n.padding,v=n.boundary,c=n.rootBoundary,d=n.altBoundary,m=n.flipVariations,p=m===void 0?!0:m,g=n.allowedAutoPlacements,w=t.options.placement,b=Te(w),y=b===w,T=l||(y||!p?[tn(w)]:_p(w)),h=[w].concat(T).reduce(function(We,Pe){return We.concat(Te(Pe)===mr?wp(t,{placement:Pe,boundary:v,rootBoundary:c,padding:u,flipVariations:p,allowedAutoPlacements:g}):Pe)},[]),k=t.rects.reference,S=t.rects.popper,f=new Map,E=!0,A=h[0],P=0;P<h.length;P++){var B=h[P],I=Te(B),R=bt(B)===vt,z=[fe,ye].indexOf(I)>=0,X=z?"width":"height",W=Dt(t,{placement:B,boundary:v,rootBoundary:c,altBoundary:d,padding:u}),K=z?R?we:pe:R?ye:fe;k[X]>S[X]&&(K=tn(K));var M=tn(K),q=[];if(a&&q.push(W[I]<=0),i&&q.push(W[K]<=0,W[M]<=0),q.every(function(We){return We})){A=B,E=!1;break}f.set(B,q)}if(E)for(var he=p?3:1,_t=function(We){var Pe=h.find(function(Ut){var St=f.get(Ut);if(St)return St.slice(0,We).every(function(ot){return ot})});if(Pe)return A=Pe,"break"},Et=he;Et>0;Et--){var Vt=_t(Et);if(Vt==="break")break}t.placement!==A&&(t.modifiersData[r]._skip=!0,t.placement=A,t.reset=!0)}}var Sp={name:"flip",enabled:!0,phase:"main",fn:Ep,requiresIfExists:["offset"],data:{_skip:!1}};function Lo(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Mo(e){return[fe,we,ye,pe].some(function(t){return e[t]>=0})}function Cp(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,a=t.modifiersData.preventOverflow,s=Dt(t,{elementContext:"reference"}),i=Dt(t,{altBoundary:!0}),l=Lo(s,r),u=Lo(i,o,a),v=Mo(l),c=Mo(u);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:v,hasPopperEscaped:c},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":v,"data-popper-escaped":c})}var Tp={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Cp};function Ap(e,t,n){var r=Te(e),o=[pe,fe].indexOf(r)>=0?-1:1,a=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,s=a[0],i=a[1];return s=s||0,i=(i||0)*o,[pe,we].indexOf(r)>=0?{x:i,y:s}:{x:s,y:i}}function Op(e){var t=e.state,n=e.options,r=e.name,o=n.offset,a=o===void 0?[0,0]:o,s=gr.reduce(function(v,c){return v[c]=Ap(c,t.rects,a),v},{}),i=s[t.placement],l=i.x,u=i.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=s}var xp={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Op};function Ip(e){var t=e.state,n=e.name;t.modifiersData[n]=os({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}var as={name:"popperOffsets",enabled:!0,phase:"read",fn:Ip,data:{}};function Pp(e){return e==="x"?"y":"x"}function Rp(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,a=o===void 0?!0:o,s=n.altAxis,i=s===void 0?!1:s,l=n.boundary,u=n.rootBoundary,v=n.altBoundary,c=n.padding,d=n.tether,m=d===void 0?!0:d,p=n.tetherOffset,g=p===void 0?0:p,w=Dt(t,{boundary:l,rootBoundary:u,padding:c,altBoundary:v}),b=Te(t.placement),y=bt(t.placement),T=!y,h=yr(b),k=Pp(h),S=t.modifiersData.popperOffsets,f=t.rects.reference,E=t.rects.popper,A=typeof g=="function"?g(Object.assign({},t.rects,{placement:t.placement})):g,P=typeof A=="number"?{mainAxis:A,altAxis:A}:Object.assign({mainAxis:0,altAxis:0},A),B=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,I={x:0,y:0};if(S){if(a){var R,z=h==="y"?fe:pe,X=h==="y"?ye:we,W=h==="y"?"height":"width",K=S[h],M=K+w[z],q=K-w[X],he=m?-E[W]/2:0,_t=y===vt?f[W]:E[W],Et=y===vt?-E[W]:-f[W],Vt=t.elements.arrow,We=m&&Vt?br(Vt):{width:0,height:0},Pe=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Xa(),Ut=Pe[z],St=Pe[X],ot=xt(0,f[W],We[W]),Ts=T?f[W]/2-he-ot-Ut-P.mainAxis:_t-ot-Ut-P.mainAxis,As=T?-f[W]/2+he+ot+St+P.mainAxis:Et+ot+St+P.mainAxis,Tn=t.elements.arrow&&jt(t.elements.arrow),Os=Tn?h==="y"?Tn.clientTop||0:Tn.clientLeft||0:0,Or=(R=B?.[h])!=null?R:0,xs=K+Ts-Or-Os,Is=K+As-Or,xr=xt(m?fn(M,xs):M,K,m?Xe(q,Is):q);S[h]=xr,I[h]=xr-K}if(i){var Ir,Ps=h==="x"?fe:pe,Rs=h==="x"?ye:we,Ge=S[k],Kt=k==="y"?"height":"width",Pr=Ge+w[Ps],Rr=Ge-w[Rs],An=[fe,pe].indexOf(b)!==-1,Fr=(Ir=B?.[k])!=null?Ir:0,kr=An?Pr:Ge-f[Kt]-E[Kt]-Fr+P.altAxis,Lr=An?Ge+f[Kt]+E[Kt]-Fr-P.altAxis:Rr,Mr=m&&An?op(kr,Ge,Lr):xt(m?kr:Pr,Ge,m?Lr:Rr);S[k]=Mr,I[k]=Mr-Ge}t.modifiersData[r]=I}}var Fp={name:"preventOverflow",enabled:!0,phase:"main",fn:Rp,requiresIfExists:["offset"]};function kp(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Lp(e){return e===Ee(e)||!be(e)?wr(e):kp(e)}function Mp(e){var t=e.getBoundingClientRect(),n=gt(t.width)/e.offsetWidth||1,r=gt(t.height)/e.offsetHeight||1;return n!==1||r!==1}function Dp(e,t,n){n===void 0&&(n=!1);var r=be(t),o=be(t)&&Mp(t),a=Ke(t),s=ht(e,o),i={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((Ie(t)!=="body"||Er(a))&&(i=Lp(t)),be(t)?(l=ht(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):a&&(l.x=_r(a))),{x:s.left+i.scrollLeft-l.x,y:s.top+i.scrollTop-l.y,width:s.width,height:s.height}}function Bp(e){var t=new Map,n=new Set,r=[];e.forEach(function(a){t.set(a.name,a)});function o(a){n.add(a.name);var s=[].concat(a.requires||[],a.requiresIfExists||[]);s.forEach(function(i){if(!n.has(i)){var l=t.get(i);l&&o(l)}}),r.push(a)}return e.forEach(function(a){n.has(a.name)||o(a)}),r}function $p(e){var t=Bp(e);return Qf.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function Np(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function Hp(e){var t=e.reduce(function(n,r){var o=n[r.name];return n[r.name]=o?Object.assign({},o,r,{options:Object.assign({},o.options,r.options),data:Object.assign({},o.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var Do={placement:"bottom",modifiers:[],strategy:"absolute"};function Bo(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function Sr(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,o=t.defaultOptions,a=o===void 0?Do:o;return function(s,i,l){l===void 0&&(l=a);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},Do,a),modifiersData:{},elements:{reference:s,popper:i},attributes:{},styles:{}},v=[],c=!1,d={state:u,setOptions:function(g){var w=typeof g=="function"?g(u.options):g;p(),u.options=Object.assign({},a,u.options,w),u.scrollParents={reference:mt(s)?It(s):s.contextElement?It(s.contextElement):[],popper:It(i)};var b=$p(Hp([].concat(r,u.options.modifiers)));return u.orderedModifiers=b.filter(function(y){return y.enabled}),m(),d.update()},forceUpdate:function(){if(!c){var g=u.elements,w=g.reference,b=g.popper;if(Bo(w,b)){u.rects={reference:Dp(w,jt(b),u.options.strategy==="fixed"),popper:br(b)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function(E){return u.modifiersData[E.name]=Object.assign({},E.data)});for(var y=0;y<u.orderedModifiers.length;y++){if(u.reset===!0){u.reset=!1,y=-1;continue}var T=u.orderedModifiers[y],h=T.fn,k=T.options,S=k===void 0?{}:k,f=T.name;typeof h=="function"&&(u=h({state:u,options:S,name:f,instance:d})||u)}}}},update:Np(function(){return new Promise(function(g){d.forceUpdate(),g(u)})}),destroy:function(){p(),c=!0}};if(!Bo(s,i))return d;d.setOptions(l).then(function(g){!c&&l.onFirstUpdate&&l.onFirstUpdate(g)});function m(){u.orderedModifiers.forEach(function(g){var w=g.name,b=g.options,y=b===void 0?{}:b,T=g.effect;if(typeof T=="function"){var h=T({state:u,name:w,instance:d,options:y}),k=function(){};v.push(h||k)}})}function p(){v.forEach(function(g){return g()}),v=[]}return d}}Sr();var zp=[ns,as,ts,Ya];Sr({defaultModifiers:zp});var jp=[ns,as,ts,Ya,xp,Sp,Fp,lp,Tp],Vp=Sr({defaultModifiers:jp});const ss=te({arrowOffset:{type:Number,default:5}}),Up=["fixed","absolute"],Kp=te({boundariesPadding:{type:Number,default:0},fallbackPlacements:{type:N(Array),default:void 0},gpuAcceleration:{type:Boolean,default:!0},offset:{type:Number,default:12},placement:{type:String,values:gr,default:"bottom"},popperOptions:{type:N(Object),default:()=>({})},strategy:{type:String,values:Up,default:"absolute"}}),is=te({...Kp,...ss,id:String,style:{type:N([String,Array,Object])},className:{type:N([String,Array,Object])},effect:{type:N(String),default:"dark"},visible:Boolean,enterable:{type:Boolean,default:!0},pure:Boolean,focusOnShow:Boolean,trapping:Boolean,popperClass:{type:N([String,Array,Object])},popperStyle:{type:N([String,Array,Object])},referenceEl:{type:N(Object)},triggerTargetEl:{type:N(Object)},stopPopperMouseEvent:{type:Boolean,default:!0},virtualTriggering:Boolean,zIndex:Number,...lr(["ariaLabel"]),loop:Boolean}),Wp={mouseenter:e=>e instanceof MouseEvent,mouseleave:e=>e instanceof MouseEvent,focus:()=>!0,blur:()=>!0,close:()=>!0},Gp=(e,t)=>{const n=O(!1),r=O(),o=()=>{t("focus")},a=u=>{var v;((v=u.detail)==null?void 0:v.focusReason)!=="pointer"&&(r.value="first",t("blur"))},s=u=>{e.visible&&!n.value&&(u.target&&(r.value=u.target),n.value=!0)},i=u=>{e.trapping||(u.detail.focusReason==="pointer"&&u.preventDefault(),n.value=!1)},l=()=>{n.value=!1,t("close")};return me(()=>{r.value=void 0}),{focusStartRef:r,trapped:n,onFocusAfterReleased:a,onFocusAfterTrapped:o,onFocusInTrap:s,onFocusoutPrevented:i,onReleaseRequested:l}},qp=(e,t=[])=>{const{placement:n,strategy:r,popperOptions:o}=e,a={placement:n,strategy:r,...o,modifiers:[...Yp(e),...t]};return Zp(a,o?.modifiers),a},Jp=e=>{if(ae)return de(e)};function Yp(e){const{offset:t,gpuAcceleration:n,fallbackPlacements:r}=e;return[{name:"offset",options:{offset:[0,t??12]}},{name:"preventOverflow",options:{padding:{top:0,bottom:0,left:0,right:0}}},{name:"flip",options:{padding:5,fallbackPlacements:r}},{name:"computeStyles",options:{gpuAcceleration:n}}]}function Zp(e,t){t&&(e.modifiers=[...e.modifiers,...t??[]])}const Xp=(e,t,n={})=>{const r={name:"updateState",enabled:!0,phase:"write",fn:({state:l})=>{const u=Qp(l);Object.assign(s.value,u)},requires:["computeStyles"]},o=C(()=>{const{onFirstUpdate:l,placement:u,strategy:v,modifiers:c}=_(n);return{onFirstUpdate:l,placement:u||"bottom",strategy:v||"absolute",modifiers:[...c||[],r,{name:"applyStyles",enabled:!1}]}}),a=Go(),s=O({styles:{popper:{position:_(o).strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),i=()=>{a.value&&(a.value.destroy(),a.value=void 0)};return U(o,l=>{const u=_(a);u&&u.setOptions(l)},{deep:!0}),U([e,t],([l,u])=>{i(),!(!l||!u)&&(a.value=Vp(l,u,_(o)))}),me(()=>{i()}),{state:C(()=>{var l;return{...((l=_(a))==null?void 0:l.state)||{}}}),styles:C(()=>_(s).styles),attributes:C(()=>_(s).attributes),update:()=>{var l;return(l=_(a))==null?void 0:l.update()},forceUpdate:()=>{var l;return(l=_(a))==null?void 0:l.forceUpdate()},instanceRef:C(()=>_(a))}};function Qp(e){const t=Object.keys(e.elements),n=zn(t.map(o=>[o,e.styles[o]||{}])),r=zn(t.map(o=>[o,e.attributes[o]]));return{styles:n,attributes:r}}const e0=0,t0=e=>{const{popperInstanceRef:t,contentRef:n,triggerRef:r,role:o}=j(fr,void 0),a=O(),s=C(()=>e.arrowOffset),i=C(()=>({name:"eventListeners",enabled:!!e.visible})),l=C(()=>{var b;const y=_(a),T=(b=_(s))!=null?b:e0;return{name:"arrow",enabled:!Ec(y),options:{element:y,padding:T}}}),u=C(()=>({onFirstUpdate:()=>{p()},...qp(e,[_(l),_(i)])})),v=C(()=>Jp(e.referenceEl)||_(r)),{attributes:c,state:d,styles:m,update:p,forceUpdate:g,instanceRef:w}=Xp(v,n,u);return U(w,b=>t.value=b,{flush:"sync"}),ce(()=>{U(()=>{var b,y;return(y=(b=_(v))==null?void 0:b.getBoundingClientRect)==null?void 0:y.call(b)},()=>{p()})}),me(()=>{t.value=void 0}),{attributes:c,arrowRef:a,contentRef:n,instanceRef:w,state:d,styles:m,role:o,forceUpdate:g,update:p}},n0=(e,{attributes:t,styles:n,role:r})=>{const{nextZIndex:o}=wa(),a=se("popper"),s=C(()=>_(t).popper),i=O(Se(e.zIndex)?e.zIndex:o()),l=C(()=>[a.b(),a.is("pure",e.pure),a.is(e.effect),e.popperClass]),u=C(()=>[{zIndex:_(i)},_(n).popper,e.popperStyle||{}]),v=C(()=>r.value==="dialog"?"false":void 0),c=C(()=>_(n).arrow||{});return{ariaModal:v,arrowStyle:c,contentAttrs:s,contentClass:l,contentStyle:u,contentZIndex:i,updateZIndex:()=>{i.value=Se(e.zIndex)?e.zIndex:o()}}},r0=L({name:"ElPopperContent",__name:"content",props:is,emits:Wp,setup(e,{expose:t,emit:n}){const r=n,o=e,{focusStartRef:a,trapped:s,onFocusAfterReleased:i,onFocusAfterTrapped:l,onFocusInTrap:u,onFocusoutPrevented:v,onReleaseRequested:c}=Gp(o,r),{attributes:d,arrowRef:m,contentRef:p,styles:g,instanceRef:w,role:b,update:y}=t0(o),{ariaModal:T,arrowStyle:h,contentAttrs:k,contentClass:S,contentStyle:f,updateZIndex:E}=n0(o,{styles:g,attributes:d,role:b}),A=j(cn,void 0);ue(za,{arrowStyle:h,arrowRef:m}),A&&ue(cn,{...A,addInputId:nn,removeInputId:nn});let P;const B=(R=!0)=>{y(),R&&E()},I=()=>{B(!1),o.visible&&o.focusOnShow?s.value=!0:o.visible===!1&&(s.value=!1)};return ce(()=>{U(()=>o.triggerTargetEl,(R,z)=>{P?.(),P=void 0;const X=_(R||p.value),W=_(z||p.value);ct(X)&&(P=U([b,()=>o.ariaLabel,T,()=>o.id],K=>{["role","aria-label","aria-modal","id"].forEach((M,q)=>{bn(K[q])?X.removeAttribute(M):X.setAttribute(M,K[q])})},{immediate:!0})),W!==X&&ct(W)&&["role","aria-label","aria-modal","id"].forEach(K=>{W.removeAttribute(K)})},{immediate:!0}),U(()=>o.visible,I,{immediate:!0})}),me(()=>{P?.(),P=void 0,p.value=void 0}),t({popperContentRef:p,popperInstanceRef:w,updatePopper:B,contentStyle:f}),(R,z)=>(x(),D("div",Fe({ref_key:"contentRef",ref:p},_(k),{style:_(f),class:_(S),tabindex:"-1",onMouseenter:z[0]||(z[0]=X=>R.$emit("mouseenter",X)),onMouseleave:z[1]||(z[1]=X=>R.$emit("mouseleave",X))}),[H(_(zf),{loop:R.loop,trapped:_(s),"trap-on-focus-in":!0,"focus-trap-el":_(p),"focus-start-el":_(a),onFocusAfterTrapped:_(l),onFocusAfterReleased:_(i),onFocusin:_(u),onFocusoutPrevented:_(v),onReleaseRequested:_(c)},{default:$(()=>[G(R.$slots,"default")]),_:3},8,["loop","trapped","focus-trap-el","focus-start-el","onFocusAfterTrapped","onFocusAfterReleased","onFocusin","onFocusoutPrevented","onReleaseRequested"])],16))}});var o0=Q(r0,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/content.vue"]]);const a0=Ue(yf),Cr=Symbol("elTooltip");function $o(){let e;const t=(r,o)=>{n(),e=window.setTimeout(r,o)},n=()=>window.clearTimeout(e);return Ht(()=>n()),{registerTimeout:t,cancelTimeout:n}}const s0=te({showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0}}),i0=({showAfter:e,hideAfter:t,autoClose:n,open:r,close:o})=>{const{registerTimeout:a}=$o(),{registerTimeout:s,cancelTimeout:i}=$o();return{onOpen:(v,c=_(e))=>{a(()=>{r(v);const d=_(n);Se(d)&&d>0&&s(()=>{o(v)},d)},c)},onClose:(v,c=_(t))=>{i(),a(()=>{o(v)},c)}}},Je=te({...s0,...is,appendTo:{type:Ia.to.type},content:{type:String,default:""},rawContent:Boolean,persistent:Boolean,visible:{type:N(Boolean),default:null},transition:String,teleported:{type:Boolean,default:!0},disabled:Boolean,...lr(["ariaLabel"])}),Pt=te({...Ua,disabled:Boolean,trigger:{type:N([String,Array]),default:"hover"},triggerKeys:{type:N(Array),default:()=>[oe.enter,oe.numpadEnter,oe.space]},focusOnTarget:Boolean}),l0=yn({type:N(Boolean),default:null}),u0=yn({type:N(Function)}),c0=e=>{const t=`update:${e}`,n=`onUpdate:${e}`,r=[t],o={[e]:l0,[n]:u0};return{useModelToggle:({indicator:s,toggleReason:i,shouldHideWhenRouteChanges:l,shouldProceed:u,onShow:v,onHide:c})=>{const d=ve(),{emit:m}=d,p=d.props,g=C(()=>Ye(p[n])),w=C(()=>p[e]===null),b=f=>{s.value!==!0&&(s.value=!0,i&&(i.value=f),Ye(v)&&v(f))},y=f=>{s.value!==!1&&(s.value=!1,i&&(i.value=f),Ye(c)&&c(f))},T=f=>{if(p.disabled===!0||Ye(u)&&!u())return;const E=g.value&&ae;E&&m(t,!0),(w.value||!E)&&b(f)},h=f=>{if(p.disabled===!0||!ae)return;const E=g.value&&ae;E&&m(t,!1),(w.value||!E)&&y(f)},k=f=>{ma(f)&&(p.disabled&&f?g.value&&m(t,!1):s.value!==f&&(f?b():y()))},S=()=>{s.value?h():T()};return U(()=>p[e],k),l&&d.appContext.config.globalProperties.$route!==void 0&&U(()=>({...d.proxy.$route}),()=>{l.value&&s.value&&h()}),ce(()=>{k(p[e])}),{hide:h,show:T,toggle:S,hasUpdateHandler:g}},useModelToggleProps:o,useModelToggleEmits:r}},{useModelToggleProps:d0,useModelToggleEmits:f0,useModelToggle:p0}=c0("visible"),v0=te({...Va,...d0,...Je,...Pt,...ss,showArrow:{type:Boolean,default:!0}}),m0=[...f0,"before-show","before-hide","show","hide","open","close"],Wn=(e,t)=>Bt(e)?e.includes(t):e===t,it=(e,t,n)=>r=>{Wn(_(e),t)&&n(r)},g0=L({name:"ElTooltipTrigger",__name:"trigger",props:Pt,setup(e,{expose:t}){const n=e,r=se("tooltip"),{controlled:o,id:a,open:s,onOpen:i,onClose:l,onToggle:u}=j(Cr,void 0),v=O(null),c=()=>{if(_(o)||n.disabled)return!0},d=le(n,"trigger"),m=ne(c,it(d,"hover",h=>{i(h),n.focusOnTarget&&h.target&&Qe(()=>{cr(h.target,{preventScroll:!0})})})),p=ne(c,it(d,"hover",l)),g=ne(c,it(d,"click",h=>{h.button===0&&u(h)})),w=ne(c,it(d,"focus",i)),b=ne(c,it(d,"focus",l)),y=ne(c,it(d,"contextmenu",h=>{h.preventDefault(),u(h)})),T=ne(c,h=>{const k=rt(h);n.triggerKeys.includes(k)&&(h.preventDefault(),u(h))});return t({triggerRef:v}),(h,k)=>(x(),Z(_(Af),{id:_(a),"virtual-ref":h.virtualRef,open:_(s),"virtual-triggering":h.virtualTriggering,class:J(_(r).e("trigger")),onBlur:_(b),onClick:_(g),onContextmenu:_(y),onFocus:_(w),onMouseenter:_(m),onMouseleave:_(p),onKeydown:_(T)},{default:$(()=>[G(h.$slots,"default")]),_:3},8,["id","virtual-ref","open","virtual-triggering","class","onBlur","onClick","onContextmenu","onFocus","onMouseenter","onMouseleave","onKeydown"]))}});var h0=Q(g0,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/trigger.vue"]]);const ls=()=>{const e=Xn(),t=Ba(),n=C(()=>`${e.value}-popper-container-${t.prefix}`),r=C(()=>`#${n.value}`);return{id:n,selector:r}},b0=e=>{const t=document.createElement("div");return t.id=e,document.body.appendChild(t),t},y0=()=>{const{id:e,selector:t}=ls();return Vs(()=>{ae&&(document.body.querySelector(t.value)||b0(e.value))}),{id:e,selector:t}},w0=e=>!e&&e!==0?[]:Bt(e)?e:[e],_0=L({name:"ElTooltipContent",inheritAttrs:!1,__name:"content",props:Je,setup(e,{expose:t}){const n=e,{selector:r}=ls(),o=se("tooltip"),a=O(),s=ga(()=>{var M;return(M=a.value)==null?void 0:M.popperContentRef});let i;const{controlled:l,id:u,open:v,trigger:c,onClose:d,onOpen:m,onShow:p,onHide:g,onBeforeShow:w,onBeforeHide:b}=j(Cr,void 0),y=C(()=>n.transition||`${o.namespace.value}-fade-in-linear`),T=C(()=>n.persistent);me(()=>{i?.()});const h=C(()=>_(T)?!0:_(v)),k=C(()=>n.disabled?!1:_(v)),S=C(()=>n.appendTo||r.value),f=C(()=>{var M;return(M=n.style)!=null?M:{}}),E=O(!0),A=()=>{g(),K()&&cr(document.body,{preventScroll:!0}),E.value=!0},P=()=>{if(_(l))return!0},B=ne(P,()=>{n.enterable&&Wn(_(c),"hover")&&m()}),I=ne(P,()=>{Wn(_(c),"hover")&&d()}),R=()=>{var M,q;(q=(M=a.value)==null?void 0:M.updatePopper)==null||q.call(M),w?.()},z=()=>{b?.()},X=()=>{p()},W=()=>{n.virtualTriggering||d()},K=M=>{var q;const he=(q=a.value)==null?void 0:q.popperContentRef,_t=M?.relatedTarget||document.activeElement;return he?.contains(_t)};return U(()=>_(v),M=>{M?(E.value=!1,i=Nc(s,()=>{if(_(l))return;w0(_(c)).every(he=>he!=="hover"&&he!=="focus")&&d()},{detectIframe:!0})):i?.()},{flush:"post"}),U(()=>n.content,()=>{var M,q;(q=(M=a.value)==null?void 0:M.updatePopper)==null||q.call(M)}),t({contentRef:a,isFocusInsideContent:K}),(M,q)=>(x(),Z(_(td),{disabled:!M.teleported,to:S.value},{default:$(()=>[h.value||!E.value?(x(),Z(Jo,{key:0,name:y.value,appear:!T.value,onAfterLeave:A,onBeforeEnter:R,onAfterEnter:X,onBeforeLeave:z,persisted:""},{default:$(()=>[Zn(H(_(o0),Fe({id:_(u),ref_key:"contentRef",ref:a},M.$attrs,{"aria-label":M.ariaLabel,"aria-hidden":E.value,"boundaries-padding":M.boundariesPadding,"fallback-placements":M.fallbackPlacements,"gpu-acceleration":M.gpuAcceleration,offset:M.offset,placement:M.placement,"popper-options":M.popperOptions,"arrow-offset":M.arrowOffset,strategy:M.strategy,effect:M.effect,enterable:M.enterable,pure:M.pure,"popper-class":M.popperClass,"popper-style":[M.popperStyle,f.value],"reference-el":M.referenceEl,"trigger-target-el":M.triggerTargetEl,visible:k.value,"z-index":M.zIndex,loop:M.loop,onMouseenter:_(B),onMouseleave:_(I),onBlur:W,onClose:_(d)}),{default:$(()=>[G(M.$slots,"default")]),_:3},16,["id","aria-label","aria-hidden","boundaries-padding","fallback-placements","gpu-acceleration","offset","placement","popper-options","arrow-offset","strategy","effect","enterable","pure","popper-class","popper-style","reference-el","trigger-target-el","visible","z-index","loop","onMouseenter","onMouseleave","onClose"]),[[qo,k.value]])]),_:3},8,["name","appear"])):Ae("v-if",!0)]),_:3},8,["disabled","to"]))}});var E0=Q(_0,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/content.vue"]]);const S0=["innerHTML"],C0={key:1},T0=L({name:"ElTooltip",__name:"tooltip",props:v0,emits:m0,setup(e,{expose:t,emit:n}){const r=e,o=n;y0();const a=se("tooltip"),s=wn(),i=O(),l=O(),u=()=>{var h;const k=_(i);k&&((h=k.popperInstanceRef)==null||h.update())},v=O(!1),c=O(),{show:d,hide:m,hasUpdateHandler:p}=p0({indicator:v,toggleReason:c}),{onOpen:g,onClose:w}=i0({showAfter:le(r,"showAfter"),hideAfter:le(r,"hideAfter"),autoClose:le(r,"autoClose"),open:d,close:m}),b=C(()=>ma(r.visible)&&!p.value),y=C(()=>[a.b(),r.popperClass]);ue(Cr,{controlled:b,id:s,open:pn(v),trigger:le(r,"trigger"),onOpen:g,onClose:w,onToggle:h=>{_(v)?w(h):g(h)},onShow:()=>{o("show",c.value)},onHide:()=>{o("hide",c.value)},onBeforeShow:()=>{o("before-show",c.value)},onBeforeHide:()=>{o("before-hide",c.value)},updatePopper:u}),U(()=>r.disabled,h=>{h&&v.value&&(v.value=!1)});const T=h=>{var k;return(k=l.value)==null?void 0:k.isFocusInsideContent(h)};return Us(()=>v.value&&m()),me(()=>{c.value=void 0}),t({popperRef:i,contentRef:l,isFocusInsideContent:T,updatePopper:u,onOpen:g,onClose:w,hide:m}),(h,k)=>(x(),Z(_(a0),{ref_key:"popperRef",ref:i,role:h.role},{default:$(()=>[H(h0,{disabled:h.disabled,trigger:h.trigger,"trigger-keys":h.triggerKeys,"virtual-ref":h.virtualRef,"virtual-triggering":h.virtualTriggering,"focus-on-target":h.focusOnTarget},{default:$(()=>[h.$slots.default?G(h.$slots,"default",{key:0}):Ae("v-if",!0)]),_:3},8,["disabled","trigger","trigger-keys","virtual-ref","virtual-triggering","focus-on-target"]),H(E0,{ref_key:"contentRef",ref:l,"aria-label":h.ariaLabel,"boundaries-padding":h.boundariesPadding,content:h.content,disabled:h.disabled,effect:h.effect,enterable:h.enterable,"fallback-placements":h.fallbackPlacements,"hide-after":h.hideAfter,"gpu-acceleration":h.gpuAcceleration,offset:h.offset,persistent:h.persistent,"popper-class":y.value,"popper-style":h.popperStyle,placement:h.placement,"popper-options":h.popperOptions,"arrow-offset":h.arrowOffset,pure:h.pure,"raw-content":h.rawContent,"reference-el":h.referenceEl,"trigger-target-el":h.triggerTargetEl,"show-after":h.showAfter,strategy:h.strategy,teleported:h.teleported,transition:h.transition,"virtual-triggering":h.virtualTriggering,"z-index":h.zIndex,"append-to":h.appendTo,loop:h.loop},{default:$(()=>[G(h.$slots,"content",{},()=>[h.rawContent?(x(),D("span",{key:0,innerHTML:h.content},null,8,S0)):(x(),D("span",C0,Ne(h.content),1))]),h.showArrow?(x(),Z(_(_f),{key:0})):Ae("v-if",!0)]),_:3},8,["aria-label","boundaries-padding","content","disabled","effect","enterable","fallback-placements","hide-after","gpu-acceleration","offset","persistent","popper-class","popper-style","placement","popper-options","arrow-offset","pure","raw-content","reference-el","trigger-target-el","show-after","strategy","teleported","transition","virtual-triggering","z-index","append-to","loop"])]),_:3},8,["role"]))}});var A0=Q(T0,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/tooltip.vue"]]);const O0=Ue(A0),us=Symbol("buttonGroupContextKey"),x0=({from:e,replacement:t,scope:n,version:r,ref:o,type:a="API"},s)=>{U(()=>_(s),i=>{},{immediate:!0})},I0=(e,t)=>{x0({from:"type.text",replacement:"link",version:"3.0.0",scope:"props",ref:"https://element-plus.org/en-US/component/button.html#button-attributes"},C(()=>e.type==="text"));const n=j(us,void 0),r=sr("button"),{form:o}=Qd(),a=Na(C(()=>n?.size)),s=Ha(),i=O(),l=Ks(),u=C(()=>{var b;return e.type||n?.type||((b=r.value)==null?void 0:b.type)||""}),v=C(()=>{var b,y,T;return(T=(y=e.autoInsertSpace)!=null?y:(b=r.value)==null?void 0:b.autoInsertSpace)!=null?T:!1}),c=C(()=>{var b,y,T;return(T=(y=e.plain)!=null?y:(b=r.value)==null?void 0:b.plain)!=null?T:!1}),d=C(()=>{var b,y,T;return(T=(y=e.round)!=null?y:(b=r.value)==null?void 0:b.round)!=null?T:!1}),m=C(()=>{var b,y,T;return(T=(y=e.text)!=null?y:(b=r.value)==null?void 0:b.text)!=null?T:!1}),p=C(()=>e.tag==="button"?{ariaDisabled:s.value||e.loading,disabled:s.value||e.loading,autofocus:e.autofocus,type:e.nativeType}:{}),g=C(()=>{var b;const y=(b=l.default)==null?void 0:b.call(l);if(v.value&&y?.length===1){const T=y[0];if(T?.type===Zo){const h=T.children;return new RegExp("^\\p{Unified_Ideograph}{2}$","u").test(h.trim())}}return!1});return{_disabled:s,_size:a,_type:u,_ref:i,_props:p,_plain:c,_round:d,_text:m,shouldAddSpace:g,handleClick:b=>{if(s.value||e.loading){b.stopPropagation();return}e.nativeType==="reset"&&o?.resetFields(),t("click",b)}}},P0=["default","primary","success","warning","info","danger","text",""],R0=["button","submit","reset"],Gn=te({size:Ta,disabled:{type:Boolean,default:void 0},type:{type:String,values:P0,default:""},icon:{type:Un},nativeType:{type:String,values:R0,default:"button"},loading:Boolean,loadingIcon:{type:Un,default:()=>La},plain:{type:Boolean,default:void 0},text:{type:Boolean,default:void 0},link:Boolean,bg:Boolean,autofocus:Boolean,round:{type:Boolean,default:void 0},circle:Boolean,color:String,dark:Boolean,autoInsertSpace:{type:Boolean,default:void 0},tag:{type:N([String,Object]),default:"button"}}),F0={click:e=>e instanceof MouseEvent};function re(e,t){k0(e)&&(e="100%");var n=L0(e);return e=t===360?e:Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:(t===360?e=(e<0?e%t+t:e%t)/parseFloat(String(t)):e=e%t/parseFloat(String(t)),e)}function Zt(e){return Math.min(1,Math.max(0,e))}function k0(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function L0(e){return typeof e=="string"&&e.indexOf("%")!==-1}function cs(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function Xt(e){return e<=1?"".concat(Number(e)*100,"%"):e}function Ze(e){return e.length===1?"0"+e:String(e)}function M0(e,t,n){return{r:re(e,255)*255,g:re(t,255)*255,b:re(n,255)*255}}function No(e,t,n){e=re(e,255),t=re(t,255),n=re(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),a=0,s=0,i=(r+o)/2;if(r===o)s=0,a=0;else{var l=r-o;switch(s=i>.5?l/(2-r-o):l/(r+o),r){case e:a=(t-n)/l+(t<n?6:0);break;case t:a=(n-e)/l+2;break;case n:a=(e-t)/l+4;break}a/=6}return{h:a,s,l:i}}function Fn(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*(6*n):n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function D0(e,t,n){var r,o,a;if(e=re(e,360),t=re(t,100),n=re(n,100),t===0)o=n,a=n,r=n;else{var s=n<.5?n*(1+t):n+t-n*t,i=2*n-s;r=Fn(i,s,e+1/3),o=Fn(i,s,e),a=Fn(i,s,e-1/3)}return{r:r*255,g:o*255,b:a*255}}function Ho(e,t,n){e=re(e,255),t=re(t,255),n=re(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),a=0,s=r,i=r-o,l=r===0?0:i/r;if(r===o)a=0;else{switch(r){case e:a=(t-n)/i+(t<n?6:0);break;case t:a=(n-e)/i+2;break;case n:a=(e-t)/i+4;break}a/=6}return{h:a,s:l,v:s}}function B0(e,t,n){e=re(e,360)*6,t=re(t,100),n=re(n,100);var r=Math.floor(e),o=e-r,a=n*(1-t),s=n*(1-o*t),i=n*(1-(1-o)*t),l=r%6,u=[n,s,a,a,i,n][l],v=[i,n,n,s,a,a][l],c=[a,a,i,n,n,s][l];return{r:u*255,g:v*255,b:c*255}}function zo(e,t,n,r){var o=[Ze(Math.round(e).toString(16)),Ze(Math.round(t).toString(16)),Ze(Math.round(n).toString(16))];return r&&o[0].startsWith(o[0].charAt(1))&&o[1].startsWith(o[1].charAt(1))&&o[2].startsWith(o[2].charAt(1))?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0):o.join("")}function $0(e,t,n,r,o){var a=[Ze(Math.round(e).toString(16)),Ze(Math.round(t).toString(16)),Ze(Math.round(n).toString(16)),Ze(N0(r))];return o&&a[0].startsWith(a[0].charAt(1))&&a[1].startsWith(a[1].charAt(1))&&a[2].startsWith(a[2].charAt(1))&&a[3].startsWith(a[3].charAt(1))?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0)+a[3].charAt(0):a.join("")}function N0(e){return Math.round(parseFloat(e)*255).toString(16)}function jo(e){return ge(e)/255}function ge(e){return parseInt(e,16)}function H0(e){return{r:e>>16,g:(e&65280)>>8,b:e&255}}var qn={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function z0(e){var t={r:0,g:0,b:0},n=1,r=null,o=null,a=null,s=!1,i=!1;return typeof e=="string"&&(e=U0(e)),typeof e=="object"&&(Re(e.r)&&Re(e.g)&&Re(e.b)?(t=M0(e.r,e.g,e.b),s=!0,i=String(e.r).substr(-1)==="%"?"prgb":"rgb"):Re(e.h)&&Re(e.s)&&Re(e.v)?(r=Xt(e.s),o=Xt(e.v),t=B0(e.h,r,o),s=!0,i="hsv"):Re(e.h)&&Re(e.s)&&Re(e.l)&&(r=Xt(e.s),a=Xt(e.l),t=D0(e.h,r,a),s=!0,i="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=cs(n),{ok:s,format:e.format||i,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}var j0="[-\\+]?\\d+%?",V0="[-\\+]?\\d*\\.\\d+%?",je="(?:".concat(V0,")|(?:").concat(j0,")"),kn="[\\s|\\(]+(".concat(je,")[,|\\s]+(").concat(je,")[,|\\s]+(").concat(je,")\\s*\\)?"),Ln="[\\s|\\(]+(".concat(je,")[,|\\s]+(").concat(je,")[,|\\s]+(").concat(je,")[,|\\s]+(").concat(je,")\\s*\\)?"),_e={CSS_UNIT:new RegExp(je),rgb:new RegExp("rgb"+kn),rgba:new RegExp("rgba"+Ln),hsl:new RegExp("hsl"+kn),hsla:new RegExp("hsla"+Ln),hsv:new RegExp("hsv"+kn),hsva:new RegExp("hsva"+Ln),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function U0(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(qn[e])e=qn[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=_e.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=_e.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=_e.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=_e.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=_e.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=_e.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=_e.hex8.exec(e),n?{r:ge(n[1]),g:ge(n[2]),b:ge(n[3]),a:jo(n[4]),format:t?"name":"hex8"}:(n=_e.hex6.exec(e),n?{r:ge(n[1]),g:ge(n[2]),b:ge(n[3]),format:t?"name":"hex"}:(n=_e.hex4.exec(e),n?{r:ge(n[1]+n[1]),g:ge(n[2]+n[2]),b:ge(n[3]+n[3]),a:jo(n[4]+n[4]),format:t?"name":"hex8"}:(n=_e.hex3.exec(e),n?{r:ge(n[1]+n[1]),g:ge(n[2]+n[2]),b:ge(n[3]+n[3]),format:t?"name":"hex"}:!1)))))))))}function Re(e){return!!_e.CSS_UNIT.exec(String(e))}var K0=(function(){function e(t,n){t===void 0&&(t=""),n===void 0&&(n={});var r;if(t instanceof e)return t;typeof t=="number"&&(t=H0(t)),this.originalInput=t;var o=z0(t);this.originalInput=t,this.r=o.r,this.g=o.g,this.b=o.b,this.a=o.a,this.roundA=Math.round(100*this.a)/100,this.format=(r=n.format)!==null&&r!==void 0?r:o.format,this.gradientType=n.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=o.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},e.prototype.getLuminance=function(){var t=this.toRgb(),n,r,o,a=t.r/255,s=t.g/255,i=t.b/255;return a<=.03928?n=a/12.92:n=Math.pow((a+.055)/1.055,2.4),s<=.03928?r=s/12.92:r=Math.pow((s+.055)/1.055,2.4),i<=.03928?o=i/12.92:o=Math.pow((i+.055)/1.055,2.4),.2126*n+.7152*r+.0722*o},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(t){return this.a=cs(t),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){var t=this.toHsl().s;return t===0},e.prototype.toHsv=function(){var t=Ho(this.r,this.g,this.b);return{h:t.h*360,s:t.s,v:t.v,a:this.a}},e.prototype.toHsvString=function(){var t=Ho(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),o=Math.round(t.v*100);return this.a===1?"hsv(".concat(n,", ").concat(r,"%, ").concat(o,"%)"):"hsva(".concat(n,", ").concat(r,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var t=No(this.r,this.g,this.b);return{h:t.h*360,s:t.s,l:t.l,a:this.a}},e.prototype.toHslString=function(){var t=No(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),o=Math.round(t.l*100);return this.a===1?"hsl(".concat(n,", ").concat(r,"%, ").concat(o,"%)"):"hsla(".concat(n,", ").concat(r,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(t){return t===void 0&&(t=!1),zo(this.r,this.g,this.b,t)},e.prototype.toHexString=function(t){return t===void 0&&(t=!1),"#"+this.toHex(t)},e.prototype.toHex8=function(t){return t===void 0&&(t=!1),$0(this.r,this.g,this.b,this.a,t)},e.prototype.toHex8String=function(t){return t===void 0&&(t=!1),"#"+this.toHex8(t)},e.prototype.toHexShortString=function(t){return t===void 0&&(t=!1),this.a===1?this.toHexString(t):this.toHex8String(t)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var t=Math.round(this.r),n=Math.round(this.g),r=Math.round(this.b);return this.a===1?"rgb(".concat(t,", ").concat(n,", ").concat(r,")"):"rgba(".concat(t,", ").concat(n,", ").concat(r,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var t=function(n){return"".concat(Math.round(re(n,255)*100),"%")};return{r:t(this.r),g:t(this.g),b:t(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var t=function(n){return Math.round(re(n,255)*100)};return this.a===1?"rgb(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%)"):"rgba(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var t="#"+zo(this.r,this.g,this.b,!1),n=0,r=Object.entries(qn);n<r.length;n++){var o=r[n],a=o[0],s=o[1];if(t===s)return a}return!1},e.prototype.toString=function(t){var n=!!t;t=t??this.format;var r=!1,o=this.a<1&&this.a>=0,a=!n&&o&&(t.startsWith("hex")||t==="name");return a?t==="name"&&this.a===0?this.toName():this.toRgbString():(t==="rgb"&&(r=this.toRgbString()),t==="prgb"&&(r=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(r=this.toHexString()),t==="hex3"&&(r=this.toHexString(!0)),t==="hex4"&&(r=this.toHex8String(!0)),t==="hex8"&&(r=this.toHex8String()),t==="name"&&(r=this.toName()),t==="hsl"&&(r=this.toHslString()),t==="hsv"&&(r=this.toHsvString()),r||this.toHexString())},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l+=t/100,n.l=Zt(n.l),new e(n)},e.prototype.brighten=function(t){t===void 0&&(t=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(255*-(t/100)))),n.g=Math.max(0,Math.min(255,n.g-Math.round(255*-(t/100)))),n.b=Math.max(0,Math.min(255,n.b-Math.round(255*-(t/100)))),new e(n)},e.prototype.darken=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l-=t/100,n.l=Zt(n.l),new e(n)},e.prototype.tint=function(t){return t===void 0&&(t=10),this.mix("white",t)},e.prototype.shade=function(t){return t===void 0&&(t=10),this.mix("black",t)},e.prototype.desaturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s-=t/100,n.s=Zt(n.s),new e(n)},e.prototype.saturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s+=t/100,n.s=Zt(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,new e(n)},e.prototype.mix=function(t,n){n===void 0&&(n=50);var r=this.toRgb(),o=new e(t).toRgb(),a=n/100,s={r:(o.r-r.r)*a+r.r,g:(o.g-r.g)*a+r.g,b:(o.b-r.b)*a+r.b,a:(o.a-r.a)*a+r.a};return new e(s)},e.prototype.analogous=function(t,n){t===void 0&&(t=6),n===void 0&&(n=30);var r=this.toHsl(),o=360/n,a=[this];for(r.h=(r.h-(o*t>>1)+720)%360;--t;)r.h=(r.h+o)%360,a.push(new e(r));return a},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){t===void 0&&(t=6);for(var n=this.toHsv(),r=n.h,o=n.s,a=n.v,s=[],i=1/t;t--;)s.push(new e({h:r,s:o,v:a})),a=(a+i)%1;return s},e.prototype.splitcomplement=function(){var t=this.toHsl(),n=t.h;return[this,new e({h:(n+72)%360,s:t.s,l:t.l}),new e({h:(n+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var n=this.toRgb(),r=new e(t).toRgb(),o=n.a+r.a*(1-n.a);return new e({r:(n.r*n.a+r.r*r.a*(1-n.a))/o,g:(n.g*n.a+r.g*r.a*(1-n.a))/o,b:(n.b*n.a+r.b*r.a*(1-n.a))/o,a:o})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var n=this.toHsl(),r=n.h,o=[this],a=360/t,s=1;s<t;s++)o.push(new e({h:(r+s*a)%360,s:n.s,l:n.l}));return o},e.prototype.equals=function(t){return this.toRgbString()===new e(t).toRgbString()},e})();function Be(e,t=20){return e.mix("#141414",t).toString()}function W0(e){const t=Ha(),n=se("button");return C(()=>{let r={},o=e.color;if(o){const a=o.match(/var\((.*?)\)/);a&&(o=window.getComputedStyle(window.document.documentElement).getPropertyValue(a[1]));const s=new K0(o),i=e.dark?s.tint(20).toString():Be(s,20);if(e.plain)r=n.cssVarBlock({"bg-color":e.dark?Be(s,90):s.tint(90).toString(),"text-color":o,"border-color":e.dark?Be(s,50):s.tint(50).toString(),"hover-text-color":`var(${n.cssVarName("color-white")})`,"hover-bg-color":o,"hover-border-color":o,"active-bg-color":i,"active-text-color":`var(${n.cssVarName("color-white")})`,"active-border-color":i}),t.value&&(r[n.cssVarBlockName("disabled-bg-color")]=e.dark?Be(s,90):s.tint(90).toString(),r[n.cssVarBlockName("disabled-text-color")]=e.dark?Be(s,50):s.tint(50).toString(),r[n.cssVarBlockName("disabled-border-color")]=e.dark?Be(s,80):s.tint(80).toString());else{const l=e.dark?Be(s,30):s.tint(30).toString(),u=s.isDark()?`var(${n.cssVarName("color-white")})`:`var(${n.cssVarName("color-black")})`;if(r=n.cssVarBlock({"bg-color":o,"text-color":u,"border-color":o,"hover-bg-color":l,"hover-text-color":u,"hover-border-color":l,"active-bg-color":i,"active-border-color":i}),t.value){const v=e.dark?Be(s,50):s.tint(50).toString();r[n.cssVarBlockName("disabled-bg-color")]=v,r[n.cssVarBlockName("disabled-text-color")]=e.dark?"rgba(255, 255, 255, 0.5)":`var(${n.cssVarName("color-white")})`,r[n.cssVarBlockName("disabled-border-color")]=v}}}return r})}const G0=L({name:"ElButton",__name:"button",props:Gn,emits:F0,setup(e,{expose:t,emit:n}){const r=e,o=n,a=W0(r),s=se("button"),{_ref:i,_size:l,_type:u,_disabled:v,_props:c,_plain:d,_round:m,_text:p,shouldAddSpace:g,handleClick:w}=I0(r,o),b=C(()=>[s.b(),s.m(u.value),s.m(l.value),s.is("disabled",v.value),s.is("loading",r.loading),s.is("plain",d.value),s.is("round",m.value),s.is("circle",r.circle),s.is("text",p.value),s.is("link",r.link),s.is("has-bg",r.bg)]);return t({ref:i,size:l,type:u,disabled:v,shouldAddSpace:g}),(y,T)=>(x(),Z(At(y.tag),Fe({ref_key:"_ref",ref:i},_(c),{class:b.value,style:_(a),onClick:_(w)}),{default:$(()=>[y.loading?(x(),D(vn,{key:0},[y.$slots.loading?G(y.$slots,"loading",{key:0}):(x(),Z(_(Lt),{key:1,class:J(_(s).is("loading"))},{default:$(()=>[(x(),Z(At(y.loadingIcon)))]),_:1},8,["class"]))],64)):y.icon||y.$slots.icon?(x(),Z(_(Lt),{key:1},{default:$(()=>[y.icon?(x(),Z(At(y.icon),{key:0})):G(y.$slots,"icon",{key:1})]),_:3})):Ae("v-if",!0),y.$slots.default?(x(),D("span",{key:2,class:J({[_(s).em("text","expand")]:_(g)})},[G(y.$slots,"default")],2)):Ae("v-if",!0)]),_:3},16,["class","style","onClick"]))}});var q0=Q(G0,[["__file","/home/runner/work/element-plus/element-plus/packages/components/button/src/button.vue"]]);const J0={size:Gn.size,type:Gn.type,direction:{type:N(String),values:["horizontal","vertical"],default:"horizontal"}},Y0=L({name:"ElButtonGroup",__name:"button-group",props:J0,setup(e){const t=e;ue(us,Yo({size:le(t,"size"),type:le(t,"type")}));const n=se("button");return(r,o)=>(x(),D("div",{class:J([_(n).b("group"),_(n).bm("group",t.direction)])},[G(r.$slots,"default")],2))}});var ds=Q(Y0,[["__file","/home/runner/work/element-plus/element-plus/packages/components/button/src/button-group.vue"]]);const fs=Ue(q0,{ButtonGroup:ds});ir(ds);const Z0=te({a11y:{type:Boolean,default:!0},locale:{type:N(Object)},size:Ta,button:{type:N(Object)},card:{type:N(Object)},dialog:{type:N(Object)},link:{type:N(Object)},experimentalFeatures:{type:N(Object)},keyboardNavigation:{type:Boolean,default:!0},message:{type:N(Object)},zIndex:Number,namespace:{type:String,default:"el"},...Zc}),X0={placement:"top"},Q0=L({name:"ElConfigProvider",props:Z0,setup(e,{slots:t}){const n=xa(e);return U(()=>e.message,r=>{var o,a;Object.assign(X0,(a=(o=n?.value)==null?void 0:o.message)!=null?a:{},r??{})},{immediate:!0,deep:!0}),()=>G(t,"default",{config:n?.value})}}),ev=Ue(Q0),ps=(...e)=>t=>{e.forEach(n=>{n.value=t})},tv=L({inheritAttrs:!1});function nv(e,t,n,r,o,a){return G(e.$slots,"default")}var rv=Q(tv,[["render",nv],["__file","/home/runner/work/element-plus/element-plus/packages/components/collection/src/collection.vue"]]);const ov=L({name:"ElCollectionItem",inheritAttrs:!1});function av(e,t,n,r,o,a){return G(e.$slots,"default")}var sv=Q(ov,[["render",av],["__file","/home/runner/work/element-plus/element-plus/packages/components/collection/src/collection-item.vue"]]);const vs="data-el-collection-item",iv=e=>{const t=`El${e}Collection`,n=`${t}Item`,r=Symbol(t),o=Symbol(n),a=Object.assign({},rv,{name:t,setup(){const i=O(),l=new Map;ue(r,{itemMap:l,getItems:()=>{const v=_(i);if(!v)return[];const c=Array.from(v.querySelectorAll(`[${vs}]`));return[...l.values()].sort((m,p)=>c.indexOf(m.ref)-c.indexOf(p.ref))},collectionRef:i})}}),s=Object.assign({},sv,{name:n,setup(i,{attrs:l}){const u=O(),v=j(r,void 0);ue(o,{collectionItemRef:u}),ce(()=>{const c=_(u);c&&v.itemMap.set(c,{ref:c,...l})}),me(()=>{const c=_(u);v.itemMap.delete(c)})}});return{COLLECTION_INJECTION_KEY:r,COLLECTION_ITEM_INJECTION_KEY:o,ElCollection:a,ElCollectionItem:s}},lv=te({style:{type:N([String,Array,Object])},currentTabId:{type:N(String)},defaultCurrentTabId:String,loop:Boolean,dir:{type:String,values:["ltr","rtl"],default:"ltr"},orientation:{type:N(String)},onBlur:Function,onFocus:Function,onMousedown:Function}),{ElCollection:uv,ElCollectionItem:cv,COLLECTION_INJECTION_KEY:ms,COLLECTION_ITEM_INJECTION_KEY:dv}=iv("RovingFocusGroup"),Tr=Symbol("elRovingFocusGroup"),gs=Symbol("elRovingFocusGroupItem"),fv={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"},pv=(e,t)=>e,vv=(e,t,n)=>{const r=rt(e),o=pv(r);return fv[o]},mv=(e,t)=>e.map((n,r)=>e[(r+t)%e.length]),Vo=e=>{const{activeElement:t}=document;for(const n of e)if(n===t||(n.focus(),t!==document.activeElement))return},Uo="currentTabIdChange",Ko="rovingFocusGroup.entryFocus",gv={bubbles:!1,cancelable:!0},hv=L({name:"ElRovingFocusGroupImpl",inheritAttrs:!1,props:lv,emits:[Uo,"entryFocus"],setup(e,{emit:t}){var n;const r=O((n=e.currentTabId||e.defaultCurrentTabId)!=null?n:null),o=O(!1),a=O(!1),s=O(),{getItems:i}=j(ms,void 0),l=C(()=>[{outline:"none"},e.style]),u=w=>{t(Uo,w)},v=()=>{o.value=!0},c=ne(w=>{var b;(b=e.onMousedown)==null||b.call(e,w)},()=>{a.value=!0}),d=ne(w=>{var b;(b=e.onFocus)==null||b.call(e,w)},w=>{const b=!_(a),{target:y,currentTarget:T}=w;if(y===T&&b&&!_(o)){const h=new Event(Ko,gv);if(T?.dispatchEvent(h),!h.defaultPrevented){const k=i().filter(P=>P.focusable),S=k.find(P=>P.active),f=k.find(P=>P.id===_(r)),A=[S,f,...k].filter(Boolean).map(P=>P.ref);Vo(A)}}a.value=!1}),m=ne(w=>{var b;(b=e.onBlur)==null||b.call(e,w)},()=>{o.value=!1}),p=(...w)=>{t("entryFocus",...w)},g=w=>{const b=vv(w);if(b){w.preventDefault();let T=i().filter(h=>h.focusable).map(h=>h.ref);switch(b){case"last":{T.reverse();break}case"prev":case"next":{b==="prev"&&T.reverse();const h=T.indexOf(w.currentTarget);T=e.loop?mv(T,h+1):T.slice(h+1);break}}Qe(()=>{Vo(T)})}};ue(Tr,{currentTabbedId:pn(r),loop:le(e,"loop"),tabIndex:C(()=>_(o)?-1:0),rovingFocusGroupRef:s,rovingFocusGroupRootStyle:l,orientation:le(e,"orientation"),dir:le(e,"dir"),onItemFocus:u,onItemShiftTab:v,onBlur:m,onFocus:d,onMousedown:c,onKeydown:g}),U(()=>e.currentTabId,w=>{r.value=w??null}),Ce(s,Ko,p)}});function bv(e,t,n,r,o,a){return G(e.$slots,"default")}var yv=Q(hv,[["render",bv],["__file","/home/runner/work/element-plus/element-plus/packages/components/roving-focus-group/src/roving-focus-group-impl.vue"]]);const wv=L({name:"ElRovingFocusGroup",components:{ElFocusGroupCollection:uv,ElRovingFocusGroupImpl:yv}});function _v(e,t,n,r,o,a){const s=ie("el-roving-focus-group-impl"),i=ie("el-focus-group-collection");return x(),Z(i,null,{default:$(()=>[H(s,Ws(Gs(e.$attrs)),{default:$(()=>[G(e.$slots,"default")]),_:3},16)]),_:3})}var Ev=Q(wv,[["render",_v],["__file","/home/runner/work/element-plus/element-plus/packages/components/roving-focus-group/src/roving-focus-group.vue"]]);const Sv=te({trigger:{...Pt.trigger,type:N([String,Array])},triggerKeys:{type:N(Array),default:()=>[oe.enter,oe.numpadEnter,oe.space,oe.down]},virtualTriggering:Pt.virtualTriggering,virtualRef:Pt.virtualRef,effect:{...Je.effect,default:"light"},type:{type:N(String)},placement:{type:N(String),default:"bottom"},popperOptions:{type:N(Object),default:()=>({})},id:String,size:{type:String,default:""},splitButton:Boolean,hideOnClick:{type:Boolean,default:!0},loop:{type:Boolean,default:!0},showArrow:{type:Boolean,default:!0},showTimeout:{type:Number,default:150},hideTimeout:{type:Number,default:150},tabindex:{type:N([Number,String]),default:0},maxHeight:{type:N([Number,String]),default:""},popperClass:Je.popperClass,popperStyle:Je.popperStyle,disabled:Boolean,role:{type:String,values:ja,default:"menu"},buttonProps:{type:N(Object)},teleported:Je.teleported,appendTo:Je.appendTo,persistent:{type:Boolean,default:!0}}),hs=te({command:{type:[Object,String,Number],default:()=>({})},disabled:Boolean,divided:Boolean,textValue:String,icon:{type:Un}}),Cv=te({onKeydown:{type:N(Function)}}),Sn=Symbol("elDropdown"),bs="elDropdown",{ButtonGroup:Tv}=fs,Av=L({name:"ElDropdown",components:{ElButton:fs,ElButtonGroup:Tv,ElScrollbar:hf,ElTooltip:O0,ElRovingFocusGroup:Ev,ElOnlyChild:Wa,ElIcon:Lt,ArrowDown:Ra},props:Sv,emits:["visible-change","click","command"],setup(e,{emit:t}){const n=ve(),r=se("dropdown"),{t:o}=Sa(),a=O(),s=O(),i=O(),l=O(),u=O(null),v=O(null),c=O(!1),d=C(()=>({maxHeight:un(e.maxHeight)})),m=C(()=>[r.m(h.value)]),p=C(()=>Su(e.trigger)),g=wn().value,w=C(()=>e.id||g);function b(){var R;(R=i.value)==null||R.onClose(void 0,0)}function y(){var R;(R=i.value)==null||R.onClose()}function T(){var R;(R=i.value)==null||R.onOpen()}const h=Na();function k(...R){t("command",...R)}function S(){}function f(){const R=_(l);p.value.includes("hover")&&R?.focus({preventScroll:!0}),v.value=null}function E(R){v.value=R}function A(){t("visible-change",!0)}function P(R){var z;c.value=R?.type==="keydown",(z=l.value)==null||z.focus()}function B(){t("visible-change",!1)}return ue(Sn,{contentRef:l,role:C(()=>e.role),triggerId:w,isUsingKeyboard:c,onItemEnter:S,onItemLeave:f,handleClose:y}),ue(bs,{instance:n,dropdownSize:h,handleClick:b,commandHandler:k,trigger:le(e,"trigger"),hideOnClick:le(e,"hideOnClick")}),{t:o,ns:r,scrollbar:u,wrapStyle:d,dropdownTriggerKls:m,dropdownSize:h,triggerId:w,currentTabId:v,handleCurrentTabIdChange:E,handlerMainButtonClick:R=>{t("click",R)},handleClose:y,handleOpen:T,handleBeforeShowTooltip:A,handleShowTooltip:P,handleBeforeHideTooltip:B,popperRef:i,contentRef:l,triggeringElementRef:a,referenceElementRef:s}}});function Ov(e,t,n,r,o,a){var s;const i=ie("el-roving-focus-group"),l=ie("el-scrollbar"),u=ie("el-only-child"),v=ie("el-tooltip"),c=ie("el-button"),d=ie("arrow-down"),m=ie("el-icon"),p=ie("el-button-group");return x(),D("div",{class:J([e.ns.b(),e.ns.is("disabled",e.disabled)])},[H(v,{ref:"popperRef",role:e.role,effect:e.effect,"fallback-placements":["bottom","top"],"popper-options":e.popperOptions,"gpu-acceleration":!1,placement:e.placement,"popper-class":[e.ns.e("popper"),e.popperClass],"popper-style":e.popperStyle,trigger:e.trigger,"trigger-keys":e.triggerKeys,"trigger-target-el":e.contentRef,"show-arrow":e.showArrow,"show-after":e.trigger==="hover"?e.showTimeout:0,"hide-after":e.trigger==="hover"?e.hideTimeout:0,"virtual-ref":(s=e.virtualRef)!=null?s:e.triggeringElementRef,"virtual-triggering":e.virtualTriggering||e.splitButton,disabled:e.disabled,transition:`${e.ns.namespace.value}-zoom-in-top`,teleported:e.teleported,"append-to":e.appendTo,pure:"","focus-on-target":"",persistent:e.persistent,onBeforeShow:e.handleBeforeShowTooltip,onShow:e.handleShowTooltip,onBeforeHide:e.handleBeforeHideTooltip},qs({content:$(()=>[H(l,{ref:"scrollbar","wrap-style":e.wrapStyle,tag:"div","view-class":e.ns.e("list")},{default:$(()=>[H(i,{loop:e.loop,"current-tab-id":e.currentTabId,orientation:"horizontal",onCurrentTabIdChange:e.handleCurrentTabIdChange},{default:$(()=>[G(e.$slots,"dropdown")]),_:3},8,["loop","current-tab-id","onCurrentTabIdChange"])]),_:3},8,["wrap-style","view-class"])]),_:2},[e.splitButton?void 0:{name:"default",fn:$(()=>[H(u,{id:e.triggerId,ref:"triggeringElementRef",role:"button",tabindex:e.tabindex},{default:$(()=>[G(e.$slots,"default")]),_:3},8,["id","tabindex"])]),key:"0"}]),1032,["role","effect","popper-options","placement","popper-class","popper-style","trigger","trigger-keys","trigger-target-el","show-arrow","show-after","hide-after","virtual-ref","virtual-triggering","disabled","transition","teleported","append-to","persistent","onBeforeShow","onShow","onBeforeHide"]),e.splitButton?(x(),Z(p,{key:0},{default:$(()=>[H(c,Fe({ref:"referenceElementRef"},e.buttonProps,{size:e.dropdownSize,type:e.type,disabled:e.disabled,tabindex:e.tabindex,onClick:e.handlerMainButtonClick}),{default:$(()=>[G(e.$slots,"default")]),_:3},16,["size","type","disabled","tabindex","onClick"]),H(c,Fe({id:e.triggerId,ref:"triggeringElementRef"},e.buttonProps,{role:"button",size:e.dropdownSize,type:e.type,class:e.ns.e("caret-button"),disabled:e.disabled,tabindex:e.tabindex,"aria-label":e.t("el.dropdown.toggleDropdown")}),{default:$(()=>[H(m,{class:J(e.ns.e("icon"))},{default:$(()=>[H(d)]),_:1},8,["class"])]),_:1},16,["id","size","type","class","disabled","tabindex","aria-label"])]),_:3})):Ae("v-if",!0)],2)}var xv=Q(Av,[["render",Ov],["__file","/home/runner/work/element-plus/element-plus/packages/components/dropdown/src/dropdown.vue"]]);const Iv=L({components:{ElRovingFocusCollectionItem:cv},props:{focusable:{type:Boolean,default:!0},active:Boolean},emits:["mousedown","focus","keydown"],setup(e,{emit:t}){const{currentTabbedId:n,onItemFocus:r,onItemShiftTab:o,onKeydown:a}=j(Tr,void 0),s=wn(),i=O(),l=ne(d=>{t("mousedown",d)},d=>{e.focusable?r(_(s)):d.preventDefault()}),u=ne(d=>{t("focus",d)},()=>{r(_(s))}),v=ne(d=>{t("keydown",d)},d=>{const{shiftKey:m,target:p,currentTarget:g}=d;if(rt(d)===oe.tab&&m){o();return}p===g&&a(d)}),c=C(()=>n.value===_(s));return ue(gs,{rovingFocusGroupItemRef:i,tabIndex:C(()=>_(c)?0:-1),handleMousedown:l,handleFocus:u,handleKeydown:v}),{id:s,handleKeydown:v,handleFocus:u,handleMousedown:l}}});function Pv(e,t,n,r,o,a){const s=ie("el-roving-focus-collection-item");return x(),Z(s,{id:e.id,focusable:e.focusable,active:e.active},{default:$(()=>[G(e.$slots,"default")]),_:3},8,["id","focusable","active"])}var Rv=Q(Iv,[["render",Pv],["__file","/home/runner/work/element-plus/element-plus/packages/components/roving-focus-group/src/roving-focus-item.vue"]]);const Fv=L({name:"DropdownItemImpl",components:{ElIcon:Lt},props:hs,emits:["pointermove","pointerleave","click","clickimpl"],setup(e,{emit:t}){const n=se("dropdown"),{role:r}=j(Sn,void 0),{collectionItemRef:o}=j(dv,void 0),{rovingFocusGroupItemRef:a,tabIndex:s,handleFocus:i,handleKeydown:l,handleMousedown:u}=j(gs,void 0),v=ps(o,a),c=C(()=>r.value==="menu"?"menuitem":r.value==="navigation"?"link":"button"),d=ne(m=>{const p=rt(m);if([oe.enter,oe.numpadEnter,oe.space].includes(p))return m.preventDefault(),m.stopImmediatePropagation(),t("clickimpl",m),!0},l);return{ns:n,itemRef:v,dataset:{[vs]:""},role:c,tabIndex:s,handleFocus:i,handleKeydown:d,handleMousedown:u}}}),kv=["aria-disabled","tabindex","role"];function Lv(e,t,n,r,o,a){const s=ie("el-icon");return x(),D(vn,null,[e.divided?(x(),D("li",{key:0,role:"separator",class:J(e.ns.bem("menu","item","divided"))},null,2)):Ae("v-if",!0),F("li",Fe({ref:e.itemRef},{...e.dataset,...e.$attrs},{"aria-disabled":e.disabled,class:[e.ns.be("menu","item"),e.ns.is("disabled",e.disabled)],tabindex:e.tabIndex,role:e.role,onClick:t[0]||(t[0]=i=>e.$emit("clickimpl",i)),onFocus:t[1]||(t[1]=(...i)=>e.handleFocus&&e.handleFocus(...i)),onKeydown:t[2]||(t[2]=rn((...i)=>e.handleKeydown&&e.handleKeydown(...i),["self"])),onMousedown:t[3]||(t[3]=(...i)=>e.handleMousedown&&e.handleMousedown(...i)),onPointermove:t[4]||(t[4]=i=>e.$emit("pointermove",i)),onPointerleave:t[5]||(t[5]=i=>e.$emit("pointerleave",i))}),[e.icon?(x(),Z(s,{key:0},{default:$(()=>[(x(),Z(At(e.icon)))]),_:1})):Ae("v-if",!0),G(e.$slots,"default")],16,kv)],64)}var Mv=Q(Fv,[["render",Lv],["__file","/home/runner/work/element-plus/element-plus/packages/components/dropdown/src/dropdown-item-impl.vue"]]);const ys=()=>{const e=j(bs,{}),t=C(()=>e?.dropdownSize);return{elDropdown:e,_elDropdownSize:t}},Dv=L({name:"ElDropdownItem",components:{ElRovingFocusItem:Rv,ElDropdownItemImpl:Mv},inheritAttrs:!1,props:hs,emits:["pointermove","pointerleave","click"],setup(e,{emit:t,attrs:n}){const{elDropdown:r}=ys(),o=ve(),{onItemEnter:a,onItemLeave:s}=j(Sn,void 0),i=ne(c=>(t("pointermove",c),c.defaultPrevented),Oo(c=>{if(e.disabled){s(c);return}const d=c.currentTarget;d===document.activeElement||d.contains(document.activeElement)||(a(c),c.defaultPrevented||d?.focus({preventScroll:!0}))})),l=ne(c=>(t("pointerleave",c),c.defaultPrevented),Oo(s)),u=ne(c=>{if(!e.disabled)return t("click",c),c.type!=="keydown"&&c.defaultPrevented},c=>{var d,m,p;if(e.disabled){c.stopImmediatePropagation();return}(d=r?.hideOnClick)!=null&&d.value&&((m=r.handleClick)==null||m.call(r)),(p=r.commandHandler)==null||p.call(r,e.command,o,c)}),v=C(()=>({...e,...n}));return{handleClick:u,handlePointerMove:i,handlePointerLeave:l,propsAndAttrs:v}}});function Bv(e,t,n,r,o,a){const s=ie("el-dropdown-item-impl"),i=ie("el-roving-focus-item");return x(),Z(i,{focusable:!e.disabled},{default:$(()=>[H(s,Fe(e.propsAndAttrs,{onPointerleave:e.handlePointerLeave,onPointermove:e.handlePointerMove,onClickimpl:e.handleClick}),{default:$(()=>[G(e.$slots,"default")]),_:3},16,["onPointerleave","onPointermove","onClickimpl"])]),_:3},8,["focusable"])}var ws=Q(Dv,[["render",Bv],["__file","/home/runner/work/element-plus/element-plus/packages/components/dropdown/src/dropdown-item.vue"]]);const $v=L({name:"ElDropdownMenu",props:Cv,setup(e){const t=se("dropdown"),{_elDropdownSize:n}=ys(),r=n.value,{contentRef:o,role:a,triggerId:s,isUsingKeyboard:i,handleClose:l}=j(Sn,void 0),{rovingFocusGroupRef:u,rovingFocusGroupRootStyle:v,onBlur:c,onFocus:d,onKeydown:m,onMousedown:p}=j(Tr,void 0),{collectionRef:g}=j(ms,void 0),w=C(()=>[t.b("menu"),t.bm("menu",r?.value)]),b=ps(o,u,g),y=ne(h=>{var k;(k=e.onKeydown)==null||k.call(e,h)},h=>{const{currentTarget:k,target:S}=h,f=rt(h);if(k.contains(S),oe.tab===f)return l();m(h)});function T(h){i.value&&d(h)}return{size:r,rovingFocusGroupRootStyle:v,dropdownKls:w,role:a,triggerId:s,dropdownListWrapperRef:b,handleKeydown:y,onBlur:c,handleFocus:T,onMousedown:p}}}),Nv=["role","aria-labelledby"];function Hv(e,t,n,r,o,a){return x(),D("ul",{ref:e.dropdownListWrapperRef,class:J(e.dropdownKls),style:Rt(e.rovingFocusGroupRootStyle),tabindex:-1,role:e.role,"aria-labelledby":e.triggerId,onFocusin:t[0]||(t[0]=(...s)=>e.handleFocus&&e.handleFocus(...s)),onFocusout:t[1]||(t[1]=(...s)=>e.onBlur&&e.onBlur(...s)),onKeydown:t[2]||(t[2]=rn((...s)=>e.handleKeydown&&e.handleKeydown(...s),["self"])),onMousedown:t[3]||(t[3]=rn((...s)=>e.onMousedown&&e.onMousedown(...s),["self"]))},[G(e.$slots,"default")],46,Nv)}var _s=Q($v,[["render",Hv],["__file","/home/runner/work/element-plus/element-plus/packages/components/dropdown/src/dropdown-menu.vue"]]);const zv=Ue(xv,{DropdownItem:ws,DropdownMenu:_s}),jv=ir(ws),Vv=ir(_s);var Uv={name:"zh-cn",el:{breadcrumb:{label:"面包屑"},colorpicker:{confirm:"确定",clear:"清空",defaultLabel:"颜色选择器",description:"当前颜色 {color},按 Enter 键选择新颜色",alphaLabel:"选择透明度的值",alphaDescription:"透明度 {alpha}, 当前颜色 {color}",hueLabel:"选择色相值",hueDescription:"色相 {hue}, 当前颜色 {color}",svLabel:"选择饱和度与明度的值",svDescription:"饱和度 {saturation}, 明度 {brightness}, 当前颜色 {color}",predefineDescription:"选择 {value} 作为颜色"},datepicker:{now:"此刻",today:"今天",cancel:"取消",clear:"清空",confirm:"确定",dateTablePrompt:"使用方向键与 Enter 键可选择日期",monthTablePrompt:"使用方向键与 Enter 键可选择月份",yearTablePrompt:"使用方向键与 Enter 键可选择年份",selectedDate:"已选日期",selectDate:"选择日期",selectTime:"选择时间",startDate:"开始日期",startTime:"开始时间",endDate:"结束日期",endTime:"结束时间",prevYear:"前一年",nextYear:"后一年",prevMonth:"上个月",nextMonth:"下个月",year:"年",month1:"1 月",month2:"2 月",month3:"3 月",month4:"4 月",month5:"5 月",month6:"6 月",month7:"7 月",month8:"8 月",month9:"9 月",month10:"10 月",month11:"11 月",month12:"12 月",weeks:{sun:"日",mon:"一",tue:"二",wed:"三",thu:"四",fri:"五",sat:"六"},weeksFull:{sun:"星期日",mon:"星期一",tue:"星期二",wed:"星期三",thu:"星期四",fri:"星期五",sat:"星期六"},months:{jan:"一月",feb:"二月",mar:"三月",apr:"四月",may:"五月",jun:"六月",jul:"七月",aug:"八月",sep:"九月",oct:"十月",nov:"十一月",dec:"十二月"}},inputNumber:{decrease:"减少数值",increase:"增加数值"},select:{loading:"加载中",noMatch:"无匹配数据",noData:"无数据",placeholder:"请选择"},mention:{loading:"加载中"},dropdown:{toggleDropdown:"切换下拉选项"},cascader:{noMatch:"无匹配数据",loading:"加载中",placeholder:"请选择",noData:"暂无数据"},pagination:{goto:"前往",pagesize:"条/页",total:"共 {total} 条",pageClassifier:"页",page:"页",prev:"上一页",next:"下一页",currentPage:"第 {pager} 页",prevPages:"向前 {pager} 页",nextPages:"向后 {pager} 页",deprecationWarning:"你使用了一些已被废弃的用法,请参考 el-pagination 的官方文档"},dialog:{close:"关闭此对话框"},drawer:{close:"关闭此对话框"},messagebox:{title:"提示",confirm:"确定",cancel:"取消",error:"输入的数据不合法!",close:"关闭此对话框"},upload:{deleteTip:"按 Delete 键可删除",delete:"删除",preview:"查看图片",continue:"继续上传"},slider:{defaultLabel:"滑块介于 {min} 至 {max}",defaultRangeStartLabel:"选择起始值",defaultRangeEndLabel:"选择结束值"},table:{emptyText:"暂无数据",confirmFilter:"筛选",resetFilter:"重置",clearFilter:"全部",sumText:"合计",selectAllLabel:"选择所有行",selectRowLabel:"选择当前行",expandRowLabel:"展开当前行",collapseRowLabel:"收起当前行",sortLabel:"按 {column} 排序",filterLabel:"按 {column} 过滤"},tag:{close:"关闭此标签"},tour:{next:"下一步",previous:"上一步",finish:"结束导览",close:"关闭此对话框"},tree:{emptyText:"暂无数据"},transfer:{noMatch:"无匹配数据",noData:"无数据",titles:["列表 1","列表 2"],filterPlaceholder:"请输入搜索内容",noCheckedFormat:"共 {total} 项",hasCheckedFormat:"已选 {checked}/{total} 项"},image:{error:"加载失败"},pageHeader:{title:"返回"},popconfirm:{confirmButtonText:"确定",cancelButtonText:"取消"},carousel:{leftArrow:"上一张幻灯片",rightArrow:"下一张幻灯片",indicator:"幻灯片切换至索引 {index}"}}};const lt=O("system");function Es(){const e=()=>{lt.value==="dark"||lt.value==="system"&&window.matchMedia("(prefers-color-scheme: dark)").matches?document.documentElement.classList.add("dark"):document.documentElement.classList.remove("dark")},t=n=>{lt.value=n,localStorage.setItem("theme",n),e()};return ce(()=>{const n=localStorage.getItem("theme");n&&(lt.value=n),e(),window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",()=>{lt.value==="system"&&e()})}),{theme:lt,setTheme:t}}class Mn extends Error{status;data;constructor(t,n,r){super(n),this.status=t,this.data=r,this.name="HttpError"}}async function Qt(e,t={}){const n={};t.body&&(n["Content-Type"]="application/json"),t.headers&&Object.assign(n,t.headers);try{const r=await fetch(e,{...t,headers:n}),o=await r.json().catch(()=>({}));if(!r.ok)throw new Mn(r.status,o.error||o.message||`Request failed with status ${r.status}`,o);return o}catch(r){throw r instanceof Mn?r:new Mn(0,r instanceof Error?r.message:"Network error")}}const ee={get:(e,t)=>Qt(e,{method:"GET",headers:t}),post:(e,t,n)=>Qt(e,{method:"POST",body:JSON.stringify(t),headers:n}),put:(e,t,n)=>Qt(e,{method:"PUT",body:JSON.stringify(t),headers:n}),delete:(e,t)=>Qt(e,{method:"DELETE",headers:t})};class Kv{constructor(t){this.url=t}ws=null;reconnectAttempts=0;maxReconnectAttempts=5;reconnectDelay=1e3;heartbeatInterval;connect(t,n,r,o){this.ws=new WebSocket(this.url),this.ws.onopen=()=>{this.reconnectAttempts=0,n?.(),this.startHeartbeat()},this.ws.onmessage=a=>{const s=JSON.parse(a.data);t(s)},this.ws.onclose=()=>{this.stopHeartbeat(),r?.(),this.attemptReconnect(t,n,r,o)},this.ws.onerror=a=>{o?.(a)}}send(t){this.ws?.readyState===WebSocket.OPEN&&this.ws.send(JSON.stringify(t))}attemptReconnect(t,n,r,o){this.reconnectAttempts<this.maxReconnectAttempts&&(this.reconnectAttempts++,setTimeout(()=>{this.connect(t,n,r,o)},this.reconnectDelay*this.reconnectAttempts))}startHeartbeat(){this.heartbeatInterval=window.setInterval(()=>{this.send({type:"ping",timestamp:Date.now()})},3e4)}stopHeartbeat(){this.heartbeatInterval&&window.clearInterval(this.heartbeatInterval)}disconnect(){this.stopHeartbeat(),this.ws?.close()}}function Wv(e){return new Kv(e)}const Gv=Nt("toolCalls",()=>{const e=O(new Map),t=C(()=>Array.from(e.value.values()).filter(l=>l.status==="running"));function n(l){e.value.set(l.requestId,l)}function r(l){return e.value.get(l)}function o(l,u,v){const c=e.value.get(l);c&&(c.status=v?"error":"completed",c.endTime=Date.now(),c.result=v?void 0:u,c.error=v)}function a(l){n({requestId:l.requestId,serverId:l.serverId,serverName:l.serverName,toolName:l.toolName,startTime:l.timestamp,status:"running",args:l.args,progress:0})}function s(l){o(l.requestId,l.result)}function i(l){o(l.requestId,void 0,l.error)}return{calls:e,runningCalls:t,updateCall:n,getCall:r,completeCall:o,handleToolCallStarted:a,handleToolCallCompleted:s,handleToolCallError:i}});function Jn(e,t){const n={...e};for(const r in t)if(Object.prototype.hasOwnProperty.call(t,r)){const o=e[r],a=t[r];typeof o=="object"&&o!==null&&typeof a=="object"&&a!==null&&!Array.isArray(o)&&!Array.isArray(a)?n[r]=Jn(o,a):n[r]=a}return n}const Ar=Nt("system",()=>{const e=O({system:{host:"localhost",port:7788,language:"zh",theme:"system",logging:{level:"info",rotationAge:"7d",jsonPretty:!0,mcpCommDebug:!1,sessionDebug:!1}},security:{allowedNetworks:[],maxConcurrentConnections:50,connectionTimeout:3e4,idleConnectionTimeout:3e5,sessionTimeout:18e5,sessionFlushInterval:9e5,maxConnections:50},isDevMode:!1}),t=O(!1),n=O(null);async function r(){t.value=!0;try{const a=await ee.get("/web/config");return e.value=Jn(e.value,a),e.value}catch(a){const s=a;throw n.value=s.message||"Failed to fetch config",console.error("Fetch config error:",a),a}finally{t.value=!1}}async function o(a){t.value=!0;try{await ee.put("/web/config",a),e.value=Jn(e.value,a)}catch(s){const i=s;throw n.value=i.message||"Failed to update config",s}finally{t.value=!1}}return{config:e,loading:t,error:n,fetchConfig:r,updateConfig:o}}),qv=Nt("client",()=>{const e=O([]),t=O(!1),n=O(null);async function r(){t.value=!0,n.value=null;try{e.value=await ee.get("/api/clients")}catch(o){o instanceof Error?n.value=o.message||"Failed to fetch clients":n.value="Failed to fetch clients",console.error("Failed to fetch clients:",o)}finally{t.value=!1}}return{clients:e,loading:t,error:n,fetchClients:r}}),V={SERVER_STATUS:"server-status",LOG:"log",TOOLS:"tools",RESOURCES:"resources",SERVER_ADDED:"server-added",SERVER_UPDATED:"server-updated",SERVER_DELETED:"server-deleted",SERVER_CONNECTED:"server-connected",SERVER_DISCONNECTED:"server-disconnected",TOOL_CALL_STARTED:"tool-call-started",TOOL_CALL_COMPLETED:"tool-call-completed",TOOL_CALL_ERROR:"tool-call-error",CONFIGURATION_UPDATED:"configuration-updated",CLIENT_CONNECTED:"client-connected",CLIENT_DISCONNECTED:"client-disconnected",PONG:"pong"},Ss=Nt("websocket",()=>{const e=O(!1),t=O(null),n=Cs();function r(f,E=100,A){t.value&&t.value.send({type:"fetch-logs",serverId:f,limit:E,since:A})}function o(){const f=window.location.protocol==="https:"?"wss:":"ws:",E=window.location.host,A=`${f}//${E}/ws`,P=Wv(A);P.connect(B=>{u(B)},()=>{e.value=!0,console.log("WebSocket connected"),P.send({type:"subscribe",eventTypes:[V.SERVER_STATUS,V.LOG,V.TOOLS,V.RESOURCES,V.SERVER_ADDED,V.SERVER_UPDATED,V.SERVER_DELETED,V.SERVER_CONNECTED,V.SERVER_DISCONNECTED,V.TOOL_CALL_STARTED,V.TOOL_CALL_COMPLETED,V.TOOL_CALL_ERROR,V.CONFIGURATION_UPDATED,V.CLIENT_CONNECTED,V.CLIENT_DISCONNECTED]})},()=>{e.value=!1,console.log("WebSocket disconnected")},B=>{console.error("WebSocket error:",B)}),t.value=P}function a(){t.value?.disconnect(),t.value=null,e.value=!1}const s=Gv(),i=Ar(),l=qv();function u(f){switch(console.log("Received WebSocket message:",f),f.type){case V.SERVER_STATUS:m(f);break;case V.LOG:p(f);break;case V.TOOLS:g(f);break;case V.RESOURCES:w(f);break;case V.SERVER_ADDED:b(f);break;case V.SERVER_UPDATED:y(f);break;case V.SERVER_DELETED:T(f);break;case V.SERVER_CONNECTED:h(f);break;case V.SERVER_DISCONNECTED:k(f);break;case V.TOOL_CALL_STARTED:s.handleToolCallStarted(f.data);break;case V.TOOL_CALL_COMPLETED:s.handleToolCallCompleted(f.data);break;case V.TOOL_CALL_ERROR:s.handleToolCallError(f.data);break;case V.CONFIGURATION_UPDATED:v(f);break;case V.CLIENT_CONNECTED:c(f);break;case V.CLIENT_DISCONNECTED:d(f);break;case V.PONG:break;default:console.warn("Unknown WebSocket message type:",f.type)}}function v(f){console.log("Configuration updated:",f.data),i.fetchConfig()}function c(f){console.log("Client connected:",f.data),l.fetchClients()}function d(f){console.log("Client disconnected:",f.data),l.fetchClients()}function m(f){const{serverId:E,status:A,error:P}=f.data;n.updateServerStatus(E,S(A)),P&&console.error(`Server ${E} error:`,P)}function p(f){const{serverId:E,logs:A}=f.data,P=n.servers.find(B=>B.id===E);if(P&&A&&A.length>0){if(A.length>1)P.logs=A;else{const I=A[0];I&&I.timestamp&&P.logs.push({timestamp:I.timestamp,level:I.level,message:I.message})}const B=1e3;P.logs.length>B&&P.logs.splice(0,P.logs.length-B)}}function g(f){const{serverId:E,tools:A}=f.data,P=n.servers.find(B=>B.id===E);P&&(P.tools=A,P.toolsCount=A.length)}function w(f){const{serverId:E,resources:A}=f.data,P=n.servers.find(B=>B.id===E);P&&(P.resources=A,P.resourcesCount=A.length)}function b(f){console.log("Server added:",f.data),n.fetchServers()}function y(f){console.log("Server updated:",f.data),n.fetchServers()}function T(f){console.log("Server deleted:",f.data),n.fetchServers()}function h(f){const{serverId:E}=f.data;n.updateServerStatus(E,"online")}function k(f){const{serverId:E}=f.data;n.updateServerStatus(E,"offline")}function S(f){return["online","offline","error","starting","stopping"].includes(f)?f:"starting"}return ce(()=>{o()}),me(()=>{a()}),{connected:e,connect:o,disconnect:a,fetchLogs:r}}),Cs=Nt("server",()=>{const e=O([]),t=O(!1),n=O(null),r=O(null),o=C(()=>e.value.find(S=>S.id===r.value)),a=C(()=>({total:e.value.length,online:e.value.filter(S=>S.status==="online").length,errors:e.value.filter(S=>S.status==="error").length}));function s(S){r.value=S}async function i(){t.value=!0,n.value=null;try{const[S,f,E]=await Promise.all([ee.get("/web/servers"),ee.get("/web/server-instances"),ee.get("/web/mcp/status")]),A=new Map(e.value.map(R=>[R.id,R.logs])),P=new Map(e.value.map(R=>[R.id,R.tools])),B=new Map(e.value.map(R=>[R.id,R.resources])),I=[];S.forEach(({name:R,config:z})=>{const X=f[R]||[];if(X.length>0)X.forEach(W=>{const K=W.id,M=E.find(he=>he.id===K)?.status;let q;M?.connected?q="online":M?.error?q="error":z.enabled?q="starting":q="offline",I.push({id:K,name:R,status:q,type:z.type==="sse"||z.type==="streamable-http"?"remote":"local",config:z,instance:W,logs:A.get(K)||[],tools:P.get(K),resources:B.get(K),uptime:M?.connected?"Active":void 0,startTime:M?.startTime,pid:M?.pid,toolsCount:M?.toolsCount,resourcesCount:M?.resourcesCount,version:M?.version})});else{const W=`config-${R}-${Date.now()}`;let K;z.enabled?K="starting":K="offline",I.push({id:W,name:R,status:K,type:z.type==="sse"||z.type==="streamable-http"?"remote":"local",config:z,instance:{id:W,timestamp:Date.now(),hash:"config-only"},logs:A.get(W)||[],tools:P.get(W),resources:B.get(W),uptime:void 0,startTime:void 0,pid:void 0,toolsCount:0,resourcesCount:0,version:void 0})}}),e.value=I}catch(S){S instanceof Error?n.value=S.message||"Failed to fetch servers":n.value=String(S)||"Failed to fetch servers",console.error("Fetch servers error:",S)}finally{t.value=!1}}async function l(S){t.value=!0;try{const f={name:S.name||"Unnamed Server",config:S.config||{}};if(await ee.post("/web/servers",f),S.config?.enabled){await i();const E=e.value.find(A=>A.name===S.name);E&&(p(E.id,"starting"),setTimeout(async()=>{await i()},1e3))}else await i()}catch(f){throw f instanceof Error?n.value=f.message||"Failed to add server":n.value=String(f)||"Failed to add server",f}finally{t.value=!1}}async function u(S,f){t.value=!0;try{const E=e.value.find(A=>A.id===S);if(!E)throw new Error("Server not found");if(f.name&&f.name!==E.name&&await ee.put(`/web/servers/${E.name}`,{name:f.name}),f.config){const A={};f.config.command&&(A.command=f.config.command),f.config.args&&(A.args=f.config.args),f.config.env&&(A.env=f.config.env),f.config.url&&(A.url=f.config.url),f.config.timeout!==void 0&&(A.timeout=f.config.timeout),f.config.enabled!==void 0&&(A.enabled=f.config.enabled),f.config.allowedTools!==void 0&&(A.allowedTools=f.config.allowedTools),f.config.type&&(A.type=f.config.type),f.config.tags&&(A.tags=f.config.tags),f.config.description!==void 0&&(A.description=f.config.description),await ee.put(`/web/servers/${E.name}`,A)}await i()}catch(E){throw E instanceof Error?n.value=E.message||"Failed to update server":n.value=String(E)||"Failed to update server",E}finally{t.value=!1}}async function v(S){try{const f=e.value.find(A=>A.id===S);if(!f)throw new Error("Server not found");p(S,"starting");let E=S;S.startsWith("config-")&&(E=(await ee.post(`/web/server-instances/${f.name}`,{})).id),await ee.post(`/web/mcp/servers/${E}/connect`,{}),await i()}catch(f){throw f instanceof Error?n.value=f.message||"Failed to start server":n.value=String(f)||"Failed to start server",p(S,"error"),f}}async function c(S){try{if(!e.value.find(E=>E.id===S))throw new Error("Server not found");if(S.startsWith("config-")){await i();return}await ee.post(`/web/mcp/servers/${S}/disconnect`,{}),await i()}catch(f){throw f instanceof Error?n.value=f.message||"Failed to stop server":n.value=String(f)||"Failed to stop server",f}}async function d(S){try{const f=e.value.find(E=>E.id===S);if(f)if(S.startsWith("config-"))await ee.delete(`/web/servers/${f.name}`);else{const A=(await ee.get("/web/server-instances"))[f.name]||[];if(A.length>1){const P=A.findIndex(B=>B.id===S);P!==-1&&await ee.delete(`/web/server-instances/${f.name}/${P}`)}else await ee.delete(`/web/servers/${f.name}`)}await i(),r.value===S&&(r.value=null)}catch(f){throw f instanceof Error?n.value=f.message||"Failed to delete server":n.value=String(f)||"Failed to delete server",f}}async function m(S){t.value=!0;try{const f={mcpServers:Object.entries(S.mcpServers).map(([A,P])=>({name:A,config:P}))},E=await ee.post("/web/servers/batch",f);return await i(),E.data}catch(f){throw f instanceof Error?n.value=f.message||"Failed to import servers":n.value=String(f)||"Failed to import servers",f}finally{t.value=!1}}function p(S,f){const E=e.value.find(A=>A.id===S);E&&(E.status=f)}async function g(S){try{const f=await ee.get(`/web/mcp/servers/${S}/tools`),E=e.value.find(A=>A.id===S);return E&&(E.tools=f),f}catch(f){return console.error("Fetch tools error:",f),[]}}async function w(S){try{const f=await ee.get(`/web/mcp/servers/${S}/resources`),E=e.value.find(A=>A.id===S);return E&&(E.resources=f),f}catch(f){return console.error("Fetch resources error:",f),[]}}function b(S){Ss().fetchLogs(S,100)}async function y(S){try{await ee.delete(`/web/servers/${S}/logs`);const f=e.value.find(E=>E.id===S);f&&(f.logs=[])}catch(f){console.error("Clear logs error:",f)}}function T(){e.value.forEach(S=>b(S.id))}async function h(S,f){try{const E=`/web/servers/${encodeURIComponent(S)}/resources/read?uri=${encodeURIComponent(f)}`;return(await ee.get(E)).contents[0]}catch(E){throw console.error("Failed to read resource:",E),E}}async function k(){try{return(await ee.get("/web/resources")).resources}catch(S){throw console.error("Failed to fetch all resources:",S),S}}return{servers:e,loading:t,error:n,selectedServerId:r,selectedServer:o,stats:a,selectServer:s,fetchServers:i,addServer:l,updateServer:u,startServer:v,stopServer:c,deleteServer:d,importServersFromJson:m,updateServerStatus:p,fetchTools:g,fetchResources:w,fetchLogs:b,fetchAllLogs:T,clearLogs:y,readResource:h,fetchAllResources:k}}),Jv={class:"h-14 px-4 flex items-center justify-between bg-white dark:bg-[#1e293b] border-b border-gray-200 dark:border-gray-700 transition-colors duration-300 shrink-0 z-50"},Yv={class:"flex items-center gap-8"},Zv={class:"hidden md:flex items-center gap-1"},Xv={class:"flex items-center gap-3"},Qv={class:"p-1.5 rounded-md hover:bg-gray-100 dark:hover:bg-gray-700 text-gray-600 dark:text-gray-300 transition-colors flex items-center justify-center"},e2={class:"flex items-center gap-1 px-2 py-1.5 rounded-md hover:bg-gray-100 dark:hover:bg-gray-700 text-gray-600 dark:text-gray-300 transition-colors text-sm font-medium"},t2=L({__name:"HeaderView",setup(e){const{locale:t}=Xo(),{theme:n,setTheme:r}=Es(),o=Cs(),a=Ar(),s=Js(),i=Ys(),l=C(()=>i.name==="dashboard"&&!o.selectedServerId),u=C(()=>i.name==="servers"),v=C(()=>i.name==="tools"),c=C(()=>i.name==="resources"||i.name==="resource-detail"),d=C(()=>i.name==="sessions"),m=C(()=>i.name==="settings"),p=b=>{r(b),a.updateConfig({theme:b})},g=b=>{t.value=b,a.updateConfig({language:b})},w=b=>{o.selectedServerId=null,s.push({name:b})};return(b,y)=>{const T=Lt,h=jv,k=Vv,S=zv;return x(),D("header",Jv,[F("div",Yv,[F("div",{class:"flex items-center gap-2 font-bold text-xl text-gray-900 dark:text-white cursor-pointer",onClick:y[0]||(y[0]=f=>w("dashboard"))},[H(T,{class:"text-blue-600 dark:text-blue-400"},{default:$(()=>[H(_(Cd))]),_:1}),y[7]||(y[7]=F("span",null,"MCP Hub Lite",-1))]),F("nav",Zv,[F("button",{onClick:y[1]||(y[1]=f=>w("dashboard")),class:J(["px-3 py-1.5 rounded-md text-sm font-medium transition-colors",[l.value?"bg-gray-100 dark:bg-gray-700 text-blue-600 dark:text-blue-400":"text-gray-600 dark:text-gray-300 hover:bg-gray-50 dark:hover:bg-gray-800"]])},Ne(b.$t("sidebar.dashboard")),3),F("button",{onClick:y[2]||(y[2]=f=>w("servers")),class:J(["px-3 py-1.5 rounded-md text-sm font-medium transition-colors",[u.value?"bg-gray-100 dark:bg-gray-700 text-blue-600 dark:text-blue-400":"text-gray-600 dark:text-gray-300 hover:bg-gray-50 dark:hover:bg-gray-800"]])},Ne(b.$t("sidebar.servers")),3),F("button",{onClick:y[3]||(y[3]=f=>w("tools")),class:J(["px-3 py-1.5 rounded-md text-sm font-medium transition-colors",[v.value?"bg-gray-100 dark:bg-gray-700 text-blue-600 dark:text-blue-400":"text-gray-600 dark:text-gray-300 hover:bg-gray-50 dark:hover:bg-gray-800"]])},Ne(b.$t("tools.title")),3),F("button",{onClick:y[4]||(y[4]=f=>w("resources")),class:J(["px-3 py-1.5 rounded-md text-sm font-medium transition-colors",[c.value?"bg-gray-100 dark:bg-gray-700 text-blue-600 dark:text-blue-400":"text-gray-600 dark:text-gray-300 hover:bg-gray-50 dark:hover:bg-gray-800"]])},Ne(b.$t("sidebar.resources")),3),F("button",{onClick:y[5]||(y[5]=f=>w("sessions")),class:J(["px-3 py-1.5 rounded-md text-sm font-medium transition-colors",[d.value?"bg-gray-100 dark:bg-gray-700 text-blue-600 dark:text-blue-400":"text-gray-600 dark:text-gray-300 hover:bg-gray-50 dark:hover:bg-gray-800"]])},Ne(b.$t("sidebar.sessions")),3),F("button",{onClick:y[6]||(y[6]=f=>w("settings")),class:J(["px-3 py-1.5 rounded-md text-sm font-medium transition-colors",[m.value?"bg-gray-100 dark:bg-gray-700 text-blue-600 dark:text-blue-400":"text-gray-600 dark:text-gray-300 hover:bg-gray-50 dark:hover:bg-gray-800"]])},Ne(b.$t("sidebar.settings")),3)])]),F("div",Xv,[H(S,{trigger:"click",onCommand:p},{dropdown:$(()=>[H(k,null,{default:$(()=>[H(h,{command:"light",class:J({"text-blue-500":_(n)==="light"})},{default:$(()=>[H(T,null,{default:$(()=>[H(_(mo))]),_:1}),y[8]||(y[8]=at(" Light ",-1))]),_:1},8,["class"]),H(h,{command:"dark",class:J({"text-blue-500":_(n)==="dark"})},{default:$(()=>[H(T,null,{default:$(()=>[H(_(vo))]),_:1}),y[9]||(y[9]=at(" Dark ",-1))]),_:1},8,["class"]),H(h,{command:"system",class:J({"text-blue-500":_(n)==="system"})},{default:$(()=>[H(T,null,{default:$(()=>[H(_(po))]),_:1}),y[10]||(y[10]=at(" System ",-1))]),_:1},8,["class"])]),_:1})]),default:$(()=>[F("button",Qv,[_(n)==="light"?(x(),Z(T,{key:0,size:18},{default:$(()=>[H(_(mo))]),_:1})):_(n)==="dark"?(x(),Z(T,{key:1,size:18},{default:$(()=>[H(_(vo))]),_:1})):(x(),Z(T,{key:2,size:18},{default:$(()=>[H(_(po))]),_:1}))])]),_:1}),H(S,{trigger:"click",onCommand:g},{dropdown:$(()=>[H(k,null,{default:$(()=>[H(h,{command:"en",class:J({"text-blue-500":_(t)==="en"})},{default:$(()=>[...y[11]||(y[11]=[at("English",-1)])]),_:1},8,["class"]),H(h,{command:"zh",class:J({"text-blue-500":_(t)==="zh"})},{default:$(()=>[...y[12]||(y[12]=[at("中文",-1)])]),_:1},8,["class"])]),_:1})]),default:$(()=>[F("button",e2,[at(Ne(_(t)==="zh"?"中文":"EN")+" ",1),H(T,{size:12},{default:$(()=>[H(_(Ra))]),_:1})])]),_:1})])])}}}),n2={class:"flex-1 flex overflow-hidden relative"},r2=L({__name:"App",setup(e){const{locale:t}=Xo(),{theme:n,setTheme:r}=Es(),o=Ar();Ss();const a=C(()=>t.value==="zh"?Uv:_a);return ce(async()=>{if(await o.fetchConfig(),o.config.system.language&&(t.value=o.config.system.language),o.config.system.theme){const s=o.config.system.theme;r(s)}}),U(()=>o.config.system.theme,s=>{s&&s!==n.value&&r(s)}),U(()=>o.config.system.language,s=>{s&&s!==t.value&&(t.value=s)}),(s,i)=>{const l=ie("router-view"),u=ev;return x(),Z(u,{locale:a.value},{default:$(()=>[F("div",{class:J(["app-container h-screen w-screen overflow-hidden flex flex-col bg-gray-50 dark:bg-gray-900 text-gray-900 dark:text-gray-100 transition-colors duration-300",_(n)==="dark"?"dark":""])},[H(t2),F("div",n2,[H(l)])],2)]),_:1},8,["locale"])}}}),o2="modulepreload",a2=function(e){return"/"+e},Wo={},$e=function(t,n,r){let o=Promise.resolve();if(n&&n.length>0){let l=function(u){return Promise.all(u.map(v=>Promise.resolve(v).then(c=>({status:"fulfilled",value:c}),c=>({status:"rejected",reason:c}))))};document.getElementsByTagName("link");const s=document.querySelector("meta[property=csp-nonce]"),i=s?.nonce||s?.getAttribute("nonce");o=l(n.map(u=>{if(u=a2(u),u in Wo)return;Wo[u]=!0;const v=u.endsWith(".css"),c=v?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${u}"]${c}`))return;const d=document.createElement("link");if(d.rel=v?"stylesheet":o2,v||(d.as="script"),d.crossOrigin="",d.href=u,i&&d.setAttribute("nonce",i),document.head.appendChild(d),v)return new Promise((m,p)=>{d.addEventListener("load",m),d.addEventListener("error",()=>p(new Error(`Unable to preload CSS for ${u}`)))})}))}function a(s){const i=new Event("vite:preloadError",{cancelable:!0});if(i.payload=s,window.dispatchEvent(i),!i.defaultPrevented)throw s}return o.then(s=>{for(const i of s||[])i.status==="rejected"&&a(i.reason);return t().catch(a)})},s2=Zs({history:Xs("/"),routes:[{path:"/",component:()=>$e(()=>import("./HomeView-f901HeKw.js"),__vite__mapDeps([0,1,2,3])),children:[{path:"",name:"dashboard",component:()=>$e(()=>import("./ServerDashboard-Bgx8WVkx.js"),__vite__mapDeps([4,5,2,6,7,8,9,10,11,3,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,1,27,28,29]))},{path:"servers",name:"servers",component:()=>$e(()=>import("./ServerListView-CP6Ffkfx.js"),__vite__mapDeps([30,5,2,6,7,8,24,20,14,3,15,25,1,28,9,31]))},{path:"tools",name:"tools",component:()=>$e(()=>import("./ToolsView-B6hUiR43.js"),__vite__mapDeps([32,5,2,6,7,8,14,3,15,26,16,17,12,13,18,1,9,27,33]))},{path:"resources",name:"resources",component:()=>$e(()=>import("./ResourcesView-lI_fItfA.js"),__vite__mapDeps([34,22,2,20,19,16,17,7,11,23,14,3,15,13,9,35]))},{path:"sessions",name:"sessions",component:()=>$e(()=>import("./SessionsView-D68qKR4D.js"),__vite__mapDeps([36,37,2,38,22,20,19,16,17,7,11,23]))},{path:"servers/:name/resources/detail",name:"resource-detail",component:()=>$e(()=>import("./ResourceDetailView-Bz66ZjfY.js"),__vite__mapDeps([39,37,2,38,7,19,20,9,40]))},{path:"settings",name:"settings",component:()=>$e(()=>import("./SettingsView-BPYfO9BE.js"),__vite__mapDeps([41,37,2,38,10,11,3,12,13,14,7,15,6,16,17,18,19,20,21,24,25,1]))}]}]}),i2={action:{back:"Back",start:"Start",stop:"Stop",restart:"Restart",delete:"Delete",edit:"Edit",save:"Save",cancel:"Cancel",configure:"Configure",create:"Create Server",view:"View",restarted:"Server restarted",stopped:"Server stopped",started:"Server started",saved:"Configuration saved",configSaved:"Configuration saved",serverDeleted:"Server deleted",logsCleared:"Logs cleared",logsCopied:"Logs copied to clipboard",serverAdded:"Server added successfully",configImported:"Configuration imported successfully",saveSuccess:"Configuration saved successfully"},sidebar:{title:"MCP Server Manager",dashboard:"Dashboard",sessions:"Sessions",servers:"MCP Servers",resources:"MCP Resources",addServer:"Add New Server",settings:"Settings"},resources:{title:"MCP Resource Gateway",searchPlaceholder:"Search all resources...",noResources:"No resources found. Connect some servers to get started.",read:"Read",serverTag:"Server",systemResources:"Gateway System Resources",serverResources:"Server Resources",toolResources:"Tool Resources",dataResources:"Data Resources",name:"Name",uri:"URI",mimeType:"MIME Type",description:"Description",server:"Server",contentPreview:"Content Preview",preview:"Preview",source:"Source",download:"Download",loadingContent:"Loading content...",noDescription:"No description available"},sessions:{title:"Persisted Sessions",refresh:"Refresh",sessionId:"Session ID",clientName:"Client Name",clientVersion:"Client Version",protocolVersion:"Protocol Version",userAgent:"User Agent",cwd:"CWD",project:"Project",createdAt:"Created At",lastAccessedAt:"Last Accessed At"},settings:{title:"System Settings",save:"Save Changes",systemTab:"System",host:"Host",port:"Port",appearance:"Appearance",theme:"Theme",language:"Language",themeLight:"Light",themeDark:"Dark",themeSystem:"System Default",langEn:"English",langZh:"Chinese",logging:"Logging",logLevel:"Log Level",logRotation:"Log Rotation",maxAge:"Max Age (Days)",debugOptions:"Debug Options",jsonPretty:"Pretty JSON in logs",mcpCommDebug:"Enable MCP communication debug",sessionDebug:"Enable session debug",security:"Security",allowedNetworks:"Allowed Networks",allowedNetworksHint:"Enter IP CIDR (e.g., 192.168.1.0/24). Press Enter to add.",maxConcurrentConnections:"Max Concurrent Connections",maxConnections:"Max Connections",connectionTimeout:"Connection Timeout",idleConnectionTimeout:"Idle Connection Timeout",sessionTimeout:"Session Timeout",sessionFlushInterval:"Session Flush Interval",fetchError:"Failed to fetch configuration",saveSuccess:"Configuration saved successfully",saveError:"Failed to save configuration",timeUnits:{seconds:"Seconds",minutes:"Minutes",hours:"Hours",days:"Days"}},dashboard:{title:"Dashboard",totalServers:"Total Servers",running:"Running",errors:"Errors",recentActivity:"Recent Activity"},serverDetail:{emptySelect:"Select a server to view details",noServerSelected:"No server selected",deleteConfirm:"Are you sure you want to delete this server?",version:"Version",pid:"PID",uptime:"Uptime",tabs:{config:"Configuration",logs:"Logs",tools:"Tools",resources:"Resources"},config:{transport:"Transport",transportStdio:"Standard Input/Output (stdio)",transportSse:"Server-Sent Events (sse)",transportHttp:"Streamable HTTP (streamableHttp)",executable:"Executable",args:"Arguments",url:"URL",env:"Environment Variables",timeout:"Timeout (s)",autoStart:"Auto-start",addArg:"Add Argument",addEnv:"Add Environment Variable",save:"Save Configuration",editByJson:"Edit By Json",description:"Description",descriptionPlaceholder:"Enter server description"},logs:{autoScroll:"Auto-scroll",clear:"Clear",copy:"Copy",copied:"Logs copied to clipboard",instance:"Instance",selectInstance:"Select an instance"},tools:{title:"Tool Discovery",available:"Available Tools",details:"Tool Details",schema:"Schema (JSON)",selectHint:"Select a tool to view details",none:"No tools available",aggregated:"Aggregated",call:"Call"},resources:{name:"Name",uri:"URI",mimeType:"MIME Type",none:"No resources available"},status:{running:"Running",online:"Running",stopped:"Stopped",offline:"Stopped",stopping:"Stopping",error:"Error",starting:"Starting"}},addServer:{title:"Add New MCP Server",transportType:"Select Transport Type",name:"Server Name",namePlaceholder:"My New Server",executablePlaceholder:"/path/to/executable or npx",argPlaceholder:"Argument",urlPlaceholder:"http://localhost:3000/sse",keyPlaceholder:"Key",byJson:"By Json",valuePlaceholder:"Value",importBatch:"Import Batch",batchImportTitle:"Batch Import MCP Servers",importAll:"Import All"},error:{stdioCommandRequired:"STDIO server requires a valid command",sseUrlRequired:"SSE server requires a valid URL",httpUrlRequired:"Streamable HTTP server requires a valid URL",unsupportedTransportType:"Unsupported transport type",connectionFailed:"Failed to connect to server",invalidServerConfig:"Invalid server configuration",addServerFailed:"Failed to add server",invalidJsonConfig:"Invalid JSON configuration",saveFailed:"Failed to save configuration"},tools:{title:"MCP Tool Gateway",searchPlaceholder:"Search all tools (e.g., 'file', 'database', 'list')...",systemTools:"Gateway System Tools",aggregatedTools:"Aggregated Server Tools",noToolsFound:"No tools found. Connect some servers to get started.",call:"Call",noDescription:"No description provided",systemTag:"System",online:"Online",offline:"Offline"},toolCallDialog:{title:"Call Tool: {toolName}",arguments:"Arguments (JSON)",jsonPlaceholder:'{"key": "value"}',formatJson:"Format JSON",response:"Response",inputSchema:"Input Schema",showResponse:"Show Response",showInputSchema:"Show Input Schema",executing:"Executing...",execute:"Execute",invalidJson:"Invalid JSON",invalidJsonArguments:"Invalid JSON arguments",executionSuccessful:"Tool execution successful",executionFailed:"Tool execution failed",instance:"Instance",selectInstance:"Select an instance"}},l2={action:{back:"返回",start:"启动",stop:"停止",restart:"重启",delete:"删除",edit:"编辑",save:"保存",cancel:"取消",configure:"配置",create:"创建服务器",view:"查看",restarted:"服务器已重启",stopped:"服务器已停止",started:"服务器已启动",saved:"配置已保存",configSaved:"配置已保存",serverDeleted:"服务器已删除",logsCleared:"日志已清空",logsCopied:"日志已复制到剪贴板",serverAdded:"服务器添加成功",configImported:"配置导入成功",saveSuccess:"配置保存成功"},sidebar:{title:"MCP 服务器管理器",dashboard:"仪表板",sessions:"会话",servers:"MCP 服务器",resources:"MCP 资源网关",addServer:"添加新服务器",settings:"设置"},resources:{title:"MCP 资源网关",searchPlaceholder:"搜索所有资源...",noResources:"未找到资源。请连接一些服务器以开始使用。",read:"读取",serverTag:"服务器",systemResources:"网关系统资源",serverResources:"服务器资源",toolResources:"工具资源",dataResources:"数据资源",name:"名称",uri:"URI",mimeType:"MIME 类型",description:"描述",server:"服务器",contentPreview:"内容预览",preview:"预览",source:"源代码",download:"下载",loadingContent:"加载内容中...",noDescription:"无描述信息"},sessions:{title:"持久化会话",refresh:"刷新",sessionId:"会话 ID",clientName:"客户端名称",clientVersion:"客户端版本",protocolVersion:"协议版本",userAgent:"用户代理",cwd:"工作目录",project:"项目",createdAt:"创建时间",lastAccessedAt:"最后访问时间"},settings:{title:"系统设置",save:"保存更改",systemTab:"系统",host:"主机地址",port:"端口号",appearance:"外观设置",theme:"主题",language:"语言",themeLight:"浅色",themeDark:"深色",themeSystem:"跟随系统",langEn:"English",langZh:"中文",logging:"日志设置",logLevel:"日志级别",logRotation:"日志轮转",maxAge:"最大保留时间 (天)",debugOptions:"调试选项",jsonPretty:"日志中JSON格式化",mcpCommDebug:"启用MCP通信调试",sessionDebug:"启用会话调试",security:"安全设置",allowedNetworks:"允许的网络",allowedNetworksHint:"输入 IP CIDR (如 192.168.1.0/24)。按回车添加。",maxConcurrentConnections:"最大并发连接数",maxConnections:"最大连接数",connectionTimeout:"连接超时",idleConnectionTimeout:"空闲连接超时",sessionTimeout:"会话超时",sessionFlushInterval:"会话刷盘间隔",fetchError:"获取配置失败",saveSuccess:"配置保存成功",saveError:"保存配置失败",timeUnits:{seconds:"秒",minutes:"分钟",hours:"小时",days:"天"}},dashboard:{title:"仪表盘",totalServers:"服务器总数",running:"运行中",errors:"错误",recentActivity:"近期活动"},serverDetail:{emptySelect:"请选择一个服务器以查看详情",noServerSelected:"未选择服务器",deleteConfirm:"确定要删除此服务器吗?",version:"版本",pid:"进程ID",uptime:"运行时间",tabs:{config:"配置",logs:"日志",tools:"工具",resources:"资源"},config:{transport:"传输方式",transportStdio:"标准输入/输出 (stdio)",transportSse:"服务器发送事件 (sse)",transportHttp:"可流式传输的http (streamableHttp)",executable:"可执行文件",args:"参数",url:"服务地址",env:"环境变量",timeout:"超时时间 (秒)",autoStart:"随系统启动",addArg:"添加参数",addEnv:"添加环境变量",save:"保存配置",editByJson:"通过 JSON 编辑",description:"描述",descriptionPlaceholder:"请输入服务器描述"},logs:{autoScroll:"自动滚动",clear:"清空",copy:"复制",copied:"日志已复制到剪贴板",instance:"实例",selectInstance:"选择一个实例"},tools:{title:"工具发现",available:"可用工具",details:"工具详情",schema:"参数 Schema (JSON)",selectHint:"请选择一个工具以查看详情",none:"暂无可用工具",aggregated:"聚合",call:"调用"},resources:{name:"名称",uri:"URI",mimeType:"MIME 类型",none:"暂无可用资源"},status:{running:"运行中",online:"运行中",stopped:"已停止",offline:"已停止",stopping:"停止中",error:"错误",starting:"启动中"}},addServer:{title:"添加新 MCP 服务器",transportType:"选择传输类型",name:"服务器名称",namePlaceholder:"我的新服务器",executablePlaceholder:"/path/to/executable 或 npx",argPlaceholder:"参数",urlPlaceholder:"http://localhost:3000/sse",keyPlaceholder:"键",byJson:"通过 JSON 添加",valuePlaceholder:"值",importBatch:"批量导入",batchImportTitle:"批量导入 MCP 服务器",importAll:"全部导入"},error:{stdioCommandRequired:"STDIO 服务器需要有效的命令",sseUrlRequired:"SSE 服务器需要有效的 URL",httpUrlRequired:"可流式传输的 HTTP 服务器需要有效的 URL",unsupportedTransportType:"不支持的传输类型",connectionFailed:"连接服务器失败",invalidServerConfig:"服务器配置无效",addServerFailed:"添加服务器失败",invalidJsonConfig:"无效的 JSON 配置",unknown:"发生未知错误",saveFailed:"保存配置失败"},tools:{title:"MCP 工具网关",searchPlaceholder:"搜索所有工具 (例如:'file', 'database', 'list')...",systemTools:"网关系统工具",aggregatedTools:"聚合服务器工具",noToolsFound:"未找到工具。请连接一些服务器以开始使用。",call:"调用",noDescription:"未提供描述",systemTag:"系统",online:"在线",offline:"离线"},toolCallDialog:{title:"调用工具: {toolName}",arguments:"参数 (JSON)",jsonPlaceholder:'{"key": "value"}',formatJson:"格式化 JSON",response:"响应",inputSchema:"输入 Schema",showResponse:"显示响应",showInputSchema:"显示输入 Schema",executing:"执行中...",execute:"执行",invalidJson:"无效的 JSON",invalidJsonArguments:"无效的 JSON 参数",executionSuccessful:"工具执行成功",executionFailed:"工具执行失败",instance:"实例",selectInstance:"选择一个实例"}},u2=Qs({legacy:!1,locale:"en",fallbackLocale:"en",messages:{en:i2,zh:l2}}),Cn=ei(r2);Cn.use(ti());Cn.use(s2);Cn.use(u2);Cn.mount("#app");export{ma as $,U2 as A,em as B,B2 as C,H2 as D,oe as E,te as F,N as G,sr as H,se as I,Ue as J,Ar as K,k2 as L,q2 as M,Z2 as N,ee as O,W2 as P,Ra as Q,L2 as R,Mn as S,am as T,Un as U,un as V,Sa as W,ps as X,om as Y,If as Z,Q as _,Lt as a,h2 as a$,Ia as a0,jc as a1,T2 as a2,A2 as a3,x2 as a4,O2 as a5,wa as a6,en as a7,m2 as a8,x0 as a9,Ha as aA,ur as aB,Qd as aC,w2 as aD,p2 as aE,_c as aF,Na as aG,um as aH,Tc as aI,O0 as aJ,E2 as aK,ca as aL,Su as aM,Je as aN,R2 as aO,hf as aP,Ce as aQ,jn as aR,P2 as aS,$2 as aT,nm as aU,F2 as aV,mo as aW,vo as aX,po as aY,V2 as aZ,lm as a_,td as aa,G2 as ab,Se as ac,ir as ad,z2 as ae,$i as af,Ki as ag,vi as ah,on as ai,Gi as aj,er as ak,tr as al,$l as am,Le as an,zi as ao,ft as ap,Bn as aq,la as ar,xe as as,rr as at,oa as au,Ve as av,pi as aw,wu as ax,lr as ay,Ta as az,zf as b,y2 as b0,b2 as b1,ka as b2,Gc as b3,cn as b4,v2 as b5,bn as b6,K2 as b7,Bf as b8,_2 as b9,Lu as bA,Ru as bB,da as bC,Mu as bD,no as bE,Oe as bF,ze as bG,xl as bH,Wr as bI,Yr as bJ,im as ba,f2 as bb,Rc as bc,Dc as bd,Zc as be,gr as bf,ff as bg,g2 as bh,X0 as bi,C2 as bj,zn as bk,dn as bl,j2 as bm,Qn as bn,pa as bo,zl as bp,ar as bq,wc as br,ua as bs,yt as bt,hn as bu,Eu as bv,Ui as bw,Ji as bx,Fl as by,kl as bz,fs as c,S2 as d,sm as e,wn as f,rt as g,ct as h,ae as i,d2 as j,Ss as k,La as l,Vn as m,md as n,cm as o,I2 as p,D2 as q,Y2 as r,Q2 as s,J2 as t,Cs as u,tm as v,rm as w,N2 as x,X2 as y,M2 as z};
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/HomeView-7rMg9C6t.js","assets/index-d1DZeSfz.js","assets/vue-vendor-6ny5zj9i.js","assets/typescript-Bp3YSIOJ.js","assets/ServerDashboard-G8Wmp4hF.js","assets/el-overlay-CzMkXyYy.js","assets/vnode-CHomNjgN.js","assets/event-BB_Ol6Sd.js","assets/el-overlay-B2ZKM6Up.css","assets/_plugin-vue_export-helper-DlAUqK2U.js","assets/el-tab-pane-C_DQMcwe.js","assets/raf-DY5mgbuB.js","assets/el-select-DvjGddk_.js","assets/el-tag-npbwux4f.js","assets/el-tag-DjxZVOpb.css","assets/el-input-CDnuSKVZ.js","assets/el-input-CmuHb8HS.css","assets/el-select-C0U_l4IZ.css","assets/omit-DPsOVNIJ.js","assets/_baseClone-5q1b0P3O.js","assets/el-tab-pane-CnNoQHsR.css","assets/el-table-column-CASRIbZM.js","assets/el-table-column-T_mV9jNw.css","assets/el-form-item-ClFnj49k.js","assets/el-form-item-BVMLpmVC.css","assets/ToolCallDialog-C_bTCpHC.js","assets/ToolCallDialog-BhdPX-Kf.css","assets/ServerStatusTags.vue_vue_type_script_setup_true_lang-BHiTFM7-.js","assets/ServerDashboard-Chpne8Q0.css","assets/ServerListView-dV2XrPjo.js","assets/ServerListView-Bws09jNR.css","assets/ToolsView-0c2eputu.js","assets/ToolsView-E3Ps9c7i.css","assets/ResourcesView-g5x4xCPh.js","assets/ResourcesView-CjMklkyv.css","assets/SessionsView-Ckd38lj1.js","assets/el-loading-H85n3BUC.js","assets/el-loading-bpKhqqQq.css","assets/ResourceDetailView-Bf-1ffbk.js","assets/ResourceDetailView-BdOaL_-o.css","assets/SettingsView-BJUdepEQ.js"])))=>i.map(i=>d[i]);
2
+ import{g as ve,i as j,r as O,c as C,u as _,a as Yn,b as Bt,d as $t,w as U,e as Fs,o as ks,f as ce,n as Qe,s as Gr,h as Ls,j as pn,k as Ms,l as Bo,m as Ds,p as Ye,q as ue,t as L,v as G,x as Z,y as x,T as Bs,N as nn,z as $s,A as D,B as Fe,C as F,D as le,E as Ns,F as me,G as $,H as Zn,I as on,J,K as Rt,L as qr,M as Jr,O as H,P as vn,Q as Yr,R as Hs,S as zs,U as Ae,V as At,W as js,X as $o,Y as Zr,Z as Vs,_ as Us,$ as Ne,a0 as Ks,a1 as ie,a2 as Ws,a3 as Gs,a4 as qs,a5 as Nt,a6 as Xr,a7 as Js,a8 as Ys,a9 as at,aa as Zs,ab as Xs,ac as Qs,ad as ei,ae as ti}from"./vue-vendor-6ny5zj9i.js";(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))o(r);new MutationObserver(r=>{for(const a of r)if(a.type==="childList")for(const s of a.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&o(s)}).observe(document,{childList:!0,subtree:!0});function n(r){const a={};return r.integrity&&(a.integrity=r.integrity),r.referrerPolicy&&(a.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?a.credentials="include":r.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function o(r){if(r.ep)return;r.ep=!0;const a=n(r);fetch(r.href,a)}})();const Qr=Symbol(),en="el",ni="is-",qe=(e,t,n,o,r)=>{let a=`${e}-${t}`;return n&&(a+=`-${n}`),o&&(a+=`__${o}`),r&&(a+=`--${r}`),a},ea=Symbol("namespaceContextKey"),Xn=e=>{const t=e||(ve()?j(ea,O(en)):O(en));return C(()=>_(t)||en)},se=(e,t)=>{const n=Xn(t);return{namespace:n,b:(g="")=>qe(n.value,e,g,"",""),e:g=>g?qe(n.value,e,"",g,""):"",m:g=>g?qe(n.value,e,"","",g):"",be:(g,w)=>g&&w?qe(n.value,e,g,w,""):"",em:(g,w)=>g&&w?qe(n.value,e,"",g,w):"",bm:(g,w)=>g&&w?qe(n.value,e,g,"",w):"",bem:(g,w,b)=>g&&w&&b?qe(n.value,e,g,w,b):"",is:(g,...w)=>{const b=w.length>=1?w[0]:!0;return g&&b?`${ni}${g}`:""},cssVar:g=>{const w={};for(const b in g)g[b]&&(w[`--${n.value}-${b}`]=g[b]);return w},cssVarName:g=>`--${n.value}-${g}`,cssVarBlock:g=>{const w={};for(const b in g)g[b]&&(w[`--${n.value}-${e}-${b}`]=g[b]);return w},cssVarBlockName:g=>`--${n.value}-${e}-${g}`}};var ta=typeof global=="object"&&global&&global.Object===Object&&global,oi=typeof self=="object"&&self&&self.Object===Object&&self,Le=ta||oi||Function("return this")(),Oe=Le.Symbol,na=Object.prototype,ri=na.hasOwnProperty,ai=na.toString,Ct=Oe?Oe.toStringTag:void 0;function si(e){var t=ri.call(e,Ct),n=e[Ct];try{e[Ct]=void 0;var o=!0}catch{}var r=ai.call(e);return o&&(t?e[Ct]=n:delete e[Ct]),r}var ii=Object.prototype,li=ii.toString;function ui(e){return li.call(e)}var ci="[object Null]",di="[object Undefined]",No=Oe?Oe.toStringTag:void 0;function yt(e){return e==null?e===void 0?di:ci:No&&No in Object(e)?si(e):ui(e)}function ft(e){return e!=null&&typeof e=="object"}var fi="[object Symbol]";function Qn(e){return typeof e=="symbol"||ft(e)&&yt(e)==fi}function pi(e,t){for(var n=-1,o=e==null?0:e.length,r=Array(o);++n<o;)r[n]=t(e[n],n,e);return r}var xe=Array.isArray,Ho=Oe?Oe.prototype:void 0,zo=Ho?Ho.toString:void 0;function oa(e){if(typeof e=="string")return e;if(xe(e))return pi(e,oa)+"";if(Qn(e))return zo?zo.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function rn(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function vi(e){return e}var mi="[object AsyncFunction]",gi="[object Function]",hi="[object GeneratorFunction]",bi="[object Proxy]";function ra(e){if(!rn(e))return!1;var t=yt(e);return t==gi||t==hi||t==mi||t==bi}var On=Le["__core-js_shared__"],jo=(function(){var e=/[^.]+$/.exec(On&&On.keys&&On.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""})();function yi(e){return!!jo&&jo in e}var wi=Function.prototype,_i=wi.toString;function tt(e){if(e!=null){try{return _i.call(e)}catch{}try{return e+""}catch{}}return""}var Ei=/[\\^$.*+?()[\]{}|]/g,Si=/^\[object .+?Constructor\]$/,Ci=Function.prototype,Ti=Object.prototype,Ai=Ci.toString,Oi=Ti.hasOwnProperty,xi=RegExp("^"+Ai.call(Oi).replace(Ei,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Ii(e){if(!rn(e)||yi(e))return!1;var t=ra(e)?xi:Si;return t.test(tt(e))}function Pi(e,t){return e?.[t]}function nt(e,t){var n=Pi(e,t);return Ii(n)?n:void 0}var Dn=nt(Le,"WeakMap");function Ri(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}var Fi=800,ki=16,Li=Date.now;function Mi(e){var t=0,n=0;return function(){var o=Li(),r=ki-(o-n);if(n=o,r>0){if(++t>=Fi)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function Di(e){return function(){return e}}var an=(function(){try{var e=nt(Object,"defineProperty");return e({},"",{}),e}catch{}})(),Bi=an?function(e,t){return an(e,"toString",{configurable:!0,enumerable:!1,value:Di(t),writable:!0})}:vi,$i=Mi(Bi),Ni=9007199254740991,Hi=/^(?:0|[1-9]\d*)$/;function eo(e,t){var n=typeof e;return t=t??Ni,!!t&&(n=="number"||n!="symbol"&&Hi.test(e))&&e>-1&&e%1==0&&e<t}function zi(e,t,n){t=="__proto__"&&an?an(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function to(e,t){return e===t||e!==e&&t!==t}var ji=Object.prototype,Vi=ji.hasOwnProperty;function Ui(e,t,n){var o=e[t];(!(Vi.call(e,t)&&to(o,n))||n===void 0&&!(t in e))&&zi(e,t,n)}var Vo=Math.max;function Ki(e,t,n){return t=Vo(t===void 0?e.length-1:t,0),function(){for(var o=arguments,r=-1,a=Vo(o.length-t,0),s=Array(a);++r<a;)s[r]=o[t+r];r=-1;for(var i=Array(t+1);++r<t;)i[r]=o[r];return i[t]=n(s),Ri(e,this,i)}}var Wi=9007199254740991;function no(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Wi}function Gi(e){return e!=null&&no(e.length)&&!ra(e)}var qi=Object.prototype;function Ji(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||qi;return e===n}function Yi(e,t){for(var n=-1,o=Array(e);++n<e;)o[n]=t(n);return o}var Zi="[object Arguments]";function Uo(e){return ft(e)&&yt(e)==Zi}var aa=Object.prototype,Xi=aa.hasOwnProperty,Qi=aa.propertyIsEnumerable,oo=Uo((function(){return arguments})())?Uo:function(e){return ft(e)&&Xi.call(e,"callee")&&!Qi.call(e,"callee")};function el(){return!1}var sa=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Ko=sa&&typeof module=="object"&&module&&!module.nodeType&&module,tl=Ko&&Ko.exports===sa,Wo=tl?Le.Buffer:void 0,nl=Wo?Wo.isBuffer:void 0,Bn=nl||el,ol="[object Arguments]",rl="[object Array]",al="[object Boolean]",sl="[object Date]",il="[object Error]",ll="[object Function]",ul="[object Map]",cl="[object Number]",dl="[object Object]",fl="[object RegExp]",pl="[object Set]",vl="[object String]",ml="[object WeakMap]",gl="[object ArrayBuffer]",hl="[object DataView]",bl="[object Float32Array]",yl="[object Float64Array]",wl="[object Int8Array]",_l="[object Int16Array]",El="[object Int32Array]",Sl="[object Uint8Array]",Cl="[object Uint8ClampedArray]",Tl="[object Uint16Array]",Al="[object Uint32Array]",Y={};Y[bl]=Y[yl]=Y[wl]=Y[_l]=Y[El]=Y[Sl]=Y[Cl]=Y[Tl]=Y[Al]=!0;Y[ol]=Y[rl]=Y[gl]=Y[al]=Y[hl]=Y[sl]=Y[il]=Y[ll]=Y[ul]=Y[cl]=Y[dl]=Y[fl]=Y[pl]=Y[vl]=Y[ml]=!1;function Ol(e){return ft(e)&&no(e.length)&&!!Y[yt(e)]}function xl(e){return function(t){return e(t)}}var ia=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Ot=ia&&typeof module=="object"&&module&&!module.nodeType&&module,Il=Ot&&Ot.exports===ia,xn=Il&&ta.process,Go=(function(){try{var e=Ot&&Ot.require&&Ot.require("util").types;return e||xn&&xn.binding&&xn.binding("util")}catch{}})(),qo=Go&&Go.isTypedArray,la=qo?xl(qo):Ol,Pl=Object.prototype,Rl=Pl.hasOwnProperty;function Fl(e,t){var n=xe(e),o=!n&&oo(e),r=!n&&!o&&Bn(e),a=!n&&!o&&!r&&la(e),s=n||o||r||a,i=s?Yi(e.length,String):[],l=i.length;for(var u in e)(t||Rl.call(e,u))&&!(s&&(u=="length"||r&&(u=="offset"||u=="parent")||a&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||eo(u,l)))&&i.push(u);return i}function kl(e,t){return function(n){return e(t(n))}}var Ll=kl(Object.keys,Object),Ml=Object.prototype,Dl=Ml.hasOwnProperty;function Bl(e){if(!Ji(e))return Ll(e);var t=[];for(var n in Object(e))Dl.call(e,n)&&n!="constructor"&&t.push(n);return t}function $l(e){return Gi(e)?Fl(e):Bl(e)}var Nl=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Hl=/^\w*$/;function zl(e,t){if(xe(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||Qn(e)?!0:Hl.test(e)||!Nl.test(e)||t!=null&&e in Object(t)}var Ft=nt(Object,"create");function jl(){this.__data__=Ft?Ft(null):{},this.size=0}function Vl(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var Ul="__lodash_hash_undefined__",Kl=Object.prototype,Wl=Kl.hasOwnProperty;function Gl(e){var t=this.__data__;if(Ft){var n=t[e];return n===Ul?void 0:n}return Wl.call(t,e)?t[e]:void 0}var ql=Object.prototype,Jl=ql.hasOwnProperty;function Yl(e){var t=this.__data__;return Ft?t[e]!==void 0:Jl.call(t,e)}var Zl="__lodash_hash_undefined__";function Xl(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Ft&&t===void 0?Zl:t,this}function et(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}et.prototype.clear=jl;et.prototype.delete=Vl;et.prototype.get=Gl;et.prototype.has=Yl;et.prototype.set=Xl;function Ql(){this.__data__=[],this.size=0}function mn(e,t){for(var n=e.length;n--;)if(to(e[n][0],t))return n;return-1}var eu=Array.prototype,tu=eu.splice;function nu(e){var t=this.__data__,n=mn(t,e);if(n<0)return!1;var o=t.length-1;return n==o?t.pop():tu.call(t,n,1),--this.size,!0}function ou(e){var t=this.__data__,n=mn(t,e);return n<0?void 0:t[n][1]}function ru(e){return mn(this.__data__,e)>-1}function au(e,t){var n=this.__data__,o=mn(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this}function Me(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}Me.prototype.clear=Ql;Me.prototype.delete=nu;Me.prototype.get=ou;Me.prototype.has=ru;Me.prototype.set=au;var kt=nt(Le,"Map");function su(){this.size=0,this.__data__={hash:new et,map:new(kt||Me),string:new et}}function iu(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function gn(e,t){var n=e.__data__;return iu(t)?n[typeof t=="string"?"string":"hash"]:n.map}function lu(e){var t=gn(this,e).delete(e);return this.size-=t?1:0,t}function uu(e){return gn(this,e).get(e)}function cu(e){return gn(this,e).has(e)}function du(e,t){var n=gn(this,e),o=n.size;return n.set(e,t),this.size+=n.size==o?0:1,this}function De(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}De.prototype.clear=su;De.prototype.delete=lu;De.prototype.get=uu;De.prototype.has=cu;De.prototype.set=du;var fu="Expected a function";function ro(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(fu);var n=function(){var o=arguments,r=t?t.apply(this,o):o[0],a=n.cache;if(a.has(r))return a.get(r);var s=e.apply(this,o);return n.cache=a.set(r,s)||a,s};return n.cache=new(ro.Cache||De),n}ro.Cache=De;var pu=500;function vu(e){var t=ro(e,function(o){return n.size===pu&&n.clear(),o}),n=t.cache;return t}var mu=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,gu=/\\(\\)?/g,hu=vu(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(mu,function(n,o,r,a){t.push(r?a.replace(gu,"$1"):o||n)}),t});function bu(e){return e==null?"":oa(e)}function hn(e,t){return xe(e)?e:zl(e,t)?[e]:hu(bu(e))}function ao(e){if(typeof e=="string"||Qn(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function ua(e,t){t=hn(t,e);for(var n=0,o=t.length;e!=null&&n<o;)e=e[ao(t[n++])];return n&&n==o?e:void 0}function ca(e,t,n){var o=e==null?void 0:ua(e,t);return o===void 0?n:o}function da(e,t){for(var n=-1,o=t.length,r=e.length;++n<o;)e[r+n]=t[n];return e}var Jo=Oe?Oe.isConcatSpreadable:void 0;function yu(e){return xe(e)||oo(e)||!!(Jo&&e&&e[Jo])}function wu(e,t,n,o,r){var a=-1,s=e.length;for(n||(n=yu),r||(r=[]);++a<s;){var i=e[a];n(i)?da(r,i):r[r.length]=i}return r}function _u(e){var t=e==null?0:e.length;return t?wu(e):[]}function Eu(e){return $i(Ki(e,void 0,_u),e+"")}function Su(){if(!arguments.length)return[];var e=arguments[0];return xe(e)?e:[e]}function Cu(){this.__data__=new Me,this.size=0}function Tu(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function Au(e){return this.__data__.get(e)}function Ou(e){return this.__data__.has(e)}var xu=200;function Iu(e,t){var n=this.__data__;if(n instanceof Me){var o=n.__data__;if(!kt||o.length<xu-1)return o.push([e,t]),this.size=++n.size,this;n=this.__data__=new De(o)}return n.set(e,t),this.size=n.size,this}function Ve(e){var t=this.__data__=new Me(e);this.size=t.size}Ve.prototype.clear=Cu;Ve.prototype.delete=Tu;Ve.prototype.get=Au;Ve.prototype.has=Ou;Ve.prototype.set=Iu;function Pu(e,t){for(var n=-1,o=e==null?0:e.length,r=0,a=[];++n<o;){var s=e[n];t(s,n,e)&&(a[r++]=s)}return a}function Ru(){return[]}var Fu=Object.prototype,ku=Fu.propertyIsEnumerable,Yo=Object.getOwnPropertySymbols,Lu=Yo?function(e){return e==null?[]:(e=Object(e),Pu(Yo(e),function(t){return ku.call(e,t)}))}:Ru;function Mu(e,t,n){var o=t(e);return xe(e)?o:da(o,n(e))}function Zo(e){return Mu(e,$l,Lu)}var $n=nt(Le,"DataView"),Nn=nt(Le,"Promise"),Hn=nt(Le,"Set"),Xo="[object Map]",Du="[object Object]",Qo="[object Promise]",er="[object Set]",tr="[object WeakMap]",nr="[object DataView]",Bu=tt($n),$u=tt(kt),Nu=tt(Nn),Hu=tt(Hn),zu=tt(Dn),ze=yt;($n&&ze(new $n(new ArrayBuffer(1)))!=nr||kt&&ze(new kt)!=Xo||Nn&&ze(Nn.resolve())!=Qo||Hn&&ze(new Hn)!=er||Dn&&ze(new Dn)!=tr)&&(ze=function(e){var t=yt(e),n=t==Du?e.constructor:void 0,o=n?tt(n):"";if(o)switch(o){case Bu:return nr;case $u:return Xo;case Nu:return Qo;case Hu:return er;case zu:return tr}return t});var or=Le.Uint8Array,ju="__lodash_hash_undefined__";function Vu(e){return this.__data__.set(e,ju),this}function Uu(e){return this.__data__.has(e)}function sn(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new De;++t<n;)this.add(e[t])}sn.prototype.add=sn.prototype.push=Vu;sn.prototype.has=Uu;function Ku(e,t){for(var n=-1,o=e==null?0:e.length;++n<o;)if(t(e[n],n,e))return!0;return!1}function Wu(e,t){return e.has(t)}var Gu=1,qu=2;function fa(e,t,n,o,r,a){var s=n&Gu,i=e.length,l=t.length;if(i!=l&&!(s&&l>i))return!1;var u=a.get(e),v=a.get(t);if(u&&v)return u==t&&v==e;var c=-1,d=!0,m=n&qu?new sn:void 0;for(a.set(e,t),a.set(t,e);++c<i;){var p=e[c],g=t[c];if(o)var w=s?o(g,p,c,t,e,a):o(p,g,c,e,t,a);if(w!==void 0){if(w)continue;d=!1;break}if(m){if(!Ku(t,function(b,y){if(!Wu(m,y)&&(p===b||r(p,b,n,o,a)))return m.push(y)})){d=!1;break}}else if(!(p===g||r(p,g,n,o,a))){d=!1;break}}return a.delete(e),a.delete(t),d}function Ju(e){var t=-1,n=Array(e.size);return e.forEach(function(o,r){n[++t]=[r,o]}),n}function Yu(e){var t=-1,n=Array(e.size);return e.forEach(function(o){n[++t]=o}),n}var Zu=1,Xu=2,Qu="[object Boolean]",ec="[object Date]",tc="[object Error]",nc="[object Map]",oc="[object Number]",rc="[object RegExp]",ac="[object Set]",sc="[object String]",ic="[object Symbol]",lc="[object ArrayBuffer]",uc="[object DataView]",rr=Oe?Oe.prototype:void 0,In=rr?rr.valueOf:void 0;function cc(e,t,n,o,r,a,s){switch(n){case uc:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case lc:return!(e.byteLength!=t.byteLength||!a(new or(e),new or(t)));case Qu:case ec:case oc:return to(+e,+t);case tc:return e.name==t.name&&e.message==t.message;case rc:case sc:return e==t+"";case nc:var i=Ju;case ac:var l=o&Zu;if(i||(i=Yu),e.size!=t.size&&!l)return!1;var u=s.get(e);if(u)return u==t;o|=Xu,s.set(e,t);var v=fa(i(e),i(t),o,r,a,s);return s.delete(e),v;case ic:if(In)return In.call(e)==In.call(t)}return!1}var dc=1,fc=Object.prototype,pc=fc.hasOwnProperty;function vc(e,t,n,o,r,a){var s=n&dc,i=Zo(e),l=i.length,u=Zo(t),v=u.length;if(l!=v&&!s)return!1;for(var c=l;c--;){var d=i[c];if(!(s?d in t:pc.call(t,d)))return!1}var m=a.get(e),p=a.get(t);if(m&&p)return m==t&&p==e;var g=!0;a.set(e,t),a.set(t,e);for(var w=s;++c<l;){d=i[c];var b=e[d],y=t[d];if(o)var T=s?o(y,b,d,t,e,a):o(b,y,d,e,t,a);if(!(T===void 0?b===y||r(b,y,n,o,a):T)){g=!1;break}w||(w=d=="constructor")}if(g&&!w){var h=e.constructor,k=t.constructor;h!=k&&"constructor"in e&&"constructor"in t&&!(typeof h=="function"&&h instanceof h&&typeof k=="function"&&k instanceof k)&&(g=!1)}return a.delete(e),a.delete(t),g}var mc=1,ar="[object Arguments]",sr="[object Array]",Wt="[object Object]",gc=Object.prototype,ir=gc.hasOwnProperty;function hc(e,t,n,o,r,a){var s=xe(e),i=xe(t),l=s?sr:ze(e),u=i?sr:ze(t);l=l==ar?Wt:l,u=u==ar?Wt:u;var v=l==Wt,c=u==Wt,d=l==u;if(d&&Bn(e)){if(!Bn(t))return!1;s=!0,v=!1}if(d&&!v)return a||(a=new Ve),s||la(e)?fa(e,t,n,o,r,a):cc(e,t,l,n,o,r,a);if(!(n&mc)){var m=v&&ir.call(e,"__wrapped__"),p=c&&ir.call(t,"__wrapped__");if(m||p){var g=m?e.value():e,w=p?t.value():t;return a||(a=new Ve),r(g,w,n,o,a)}}return d?(a||(a=new Ve),vc(e,t,n,o,r,a)):!1}function pa(e,t,n,o,r){return e===t?!0:e==null||t==null||!ft(e)&&!ft(t)?e!==e&&t!==t:hc(e,t,n,o,pa,r)}function bc(e,t){return e!=null&&t in Object(e)}function yc(e,t,n){t=hn(t,e);for(var o=-1,r=t.length,a=!1;++o<r;){var s=ao(t[o]);if(!(a=e!=null&&n(e,s)))break;e=e[s]}return a||++o!=r?a:(r=e==null?0:e.length,!!r&&no(r)&&eo(s,r)&&(xe(e)||oo(e)))}function wc(e,t){return e!=null&&yc(e,t,bc)}function zn(e){for(var t=-1,n=e==null?0:e.length,o={};++t<n;){var r=e[t];o[r[0]]=r[1]}return o}function _c(e,t){return pa(e,t)}function bn(e){return e==null}function Ec(e){return e===void 0}function va(e,t,n,o){if(!rn(e))return e;t=hn(t,e);for(var r=-1,a=t.length,s=a-1,i=e;i!=null&&++r<a;){var l=ao(t[r]),u=n;if(l==="__proto__"||l==="constructor"||l==="prototype")return e;if(r!=s){var v=i[l];u=void 0,u===void 0&&(u=rn(v)?v:eo(t[r+1])?[]:{})}Ui(i,l,u),i=i[l]}return e}function Sc(e,t,n){for(var o=-1,r=t.length,a={};++o<r;){var s=t[o],i=ua(e,s);n(i,s)&&va(a,hn(s,e),i)}return a}function Cc(e,t){return Sc(e,t,function(n,o){return wc(e,o)})}var Tc=Eu(function(e,t){return e==null?{}:Cc(e,t)});function Ac(e,t,n){return e==null?e:va(e,t,n)}const d2=e=>e===void 0,ma=e=>typeof e=="boolean",Se=e=>typeof e=="number",f2=e=>!e&&e!==0||Bt(e)&&e.length===0||$t(e)&&!Object.keys(e).length,ct=e=>typeof Element>"u"?!1:e instanceof Element,p2=e=>bn(e),Oc=e=>Yn(e)?!Number.isNaN(Number(e)):!1;function ga(e,t){var n;const o=Gr();return Ls(()=>{o.value=e()},{...t,flush:(n=void 0)!=null?n:"sync"}),pn(o)}function Ht(e){return Fs()?(ks(e),!0):!1}function pt(e){return typeof e=="function"?e():_(e)}const ae=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const xc=e=>e!=null,Ic=Object.prototype.toString,Pc=e=>Ic.call(e)==="[object Object]",dt=()=>{},Rc=Fc();function Fc(){var e,t;return ae&&((e=window?.navigator)==null?void 0:e.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||((t=window?.navigator)==null?void 0:t.maxTouchPoints)>2&&/iPad|Macintosh/.test(window?.navigator.userAgent))}function kc(e,t){function n(...o){return new Promise((r,a)=>{Promise.resolve(e(()=>t.apply(this,o),{fn:t,thisArg:this,args:o})).then(r).catch(a)})}return n}function Lc(e,t={}){let n,o,r=dt;const a=i=>{clearTimeout(i),r(),r=dt};return i=>{const l=pt(e),u=pt(t.maxWait);return n&&a(n),l<=0||u!==void 0&&u<=0?(o&&(a(o),o=null),Promise.resolve(i())):new Promise((v,c)=>{r=t.rejectOnCancel?c:v,u&&!o&&(o=setTimeout(()=>{n&&a(n),o=null,v(i())},u)),n=setTimeout(()=>{o&&a(o),o=null,v(i())},l)})}}function Mc(e){return ve()}function Dc(e,t=200,n={}){return kc(Lc(t,n),e)}function v2(e,t=200,n={}){const o=O(e.value),r=Dc(()=>{o.value=e.value},t,n);return U(e,()=>r()),o}function Bc(e,t=!0,n){Mc()?ce(e,n):t?e():Qe(e)}function m2(e,t,n={}){const{immediate:o=!0}=n,r=O(!1);let a=null;function s(){a&&(clearTimeout(a),a=null)}function i(){r.value=!1,s()}function l(...u){s(),r.value=!0,a=setTimeout(()=>{r.value=!1,a=null,e(...u)},pt(t))}return o&&(r.value=!0,ae&&l()),Ht(i),{isPending:pn(r),start:l,stop:i}}function de(e){var t;const n=pt(e);return(t=n?.$el)!=null?t:n}const wt=ae?window:void 0,$c=ae?window.document:void 0;function Ce(...e){let t,n,o,r;if(typeof e[0]=="string"||Array.isArray(e[0])?([n,o,r]=e,t=wt):[t,n,o,r]=e,!t)return dt;Array.isArray(n)||(n=[n]),Array.isArray(o)||(o=[o]);const a=[],s=()=>{a.forEach(v=>v()),a.length=0},i=(v,c,d,m)=>(v.addEventListener(c,d,m),()=>v.removeEventListener(c,d,m)),l=U(()=>[de(t),pt(r)],([v,c])=>{if(s(),!v)return;const d=Pc(c)?{...c}:c;a.push(...n.flatMap(m=>o.map(p=>i(v,m,p,d))))},{immediate:!0,flush:"post"}),u=()=>{l(),s()};return Ht(u),u}let lr=!1;function Nc(e,t,n={}){const{window:o=wt,ignore:r=[],capture:a=!0,detectIframe:s=!1}=n;if(!o)return dt;Rc&&!lr&&(lr=!0,Array.from(o.document.body.children).forEach(d=>d.addEventListener("click",dt)),o.document.documentElement.addEventListener("click",dt));let i=!0;const l=d=>r.some(m=>{if(typeof m=="string")return Array.from(o.document.querySelectorAll(m)).some(p=>p===d.target||d.composedPath().includes(p));{const p=de(m);return p&&(d.target===p||d.composedPath().includes(p))}}),v=[Ce(o,"click",d=>{const m=de(e);if(!(!m||m===d.target||d.composedPath().includes(m))){if(d.detail===0&&(i=!l(d)),!i){i=!0;return}t(d)}},{passive:!0,capture:a}),Ce(o,"pointerdown",d=>{const m=de(e);i=!l(d)&&!!(m&&!d.composedPath().includes(m))},{passive:!0}),s&&Ce(o,"blur",d=>{setTimeout(()=>{var m;const p=de(e);((m=o.document.activeElement)==null?void 0:m.tagName)==="IFRAME"&&!p?.contains(o.document.activeElement)&&t(d)},0)})].filter(Boolean);return()=>v.forEach(d=>d())}function Hc(){const e=O(!1),t=ve();return t&&ce(()=>{e.value=!0},t),e}function ha(e){const t=Hc();return C(()=>(t.value,!!e()))}function g2(e,t,n={}){const{window:o=wt,...r}=n;let a;const s=ha(()=>o&&"MutationObserver"in o),i=()=>{a&&(a.disconnect(),a=void 0)},l=C(()=>{const d=pt(e),m=(Array.isArray(d)?d:[d]).map(de).filter(xc);return new Set(m)}),u=U(()=>l.value,d=>{i(),s.value&&d.size&&(a=new MutationObserver(t),d.forEach(m=>a.observe(m,r)))},{immediate:!0,flush:"post"}),v=()=>a?.takeRecords(),c=()=>{i(),u()};return Ht(c),{isSupported:s,stop:c,takeRecords:v}}function h2(e={}){const{document:t=$c}=e;if(!t)return O("visible");const n=O(t.visibilityState);return Ce(t,"visibilitychange",()=>{n.value=t.visibilityState}),n}function jn(e,t,n={}){const{window:o=wt,...r}=n;let a;const s=ha(()=>o&&"ResizeObserver"in o),i=()=>{a&&(a.disconnect(),a=void 0)},l=C(()=>Array.isArray(e)?e.map(c=>de(c)):[de(e)]),u=U(l,c=>{if(i(),s.value&&o){a=new ResizeObserver(t);for(const d of c)d&&a.observe(d,r)}},{immediate:!0,flush:"post"}),v=()=>{i(),u()};return Ht(v),{isSupported:s,stop:v}}function b2(e,t={width:0,height:0},n={}){const{window:o=wt,box:r="content-box"}=n,a=C(()=>{var c,d;return(d=(c=de(e))==null?void 0:c.namespaceURI)==null?void 0:d.includes("svg")}),s=O(t.width),i=O(t.height),{stop:l}=jn(e,([c])=>{const d=r==="border-box"?c.borderBoxSize:r==="content-box"?c.contentBoxSize:c.devicePixelContentBoxSize;if(o&&a.value){const m=de(e);if(m){const p=m.getBoundingClientRect();s.value=p.width,i.value=p.height}}else if(d){const m=Array.isArray(d)?d:[d];s.value=m.reduce((p,{inlineSize:g})=>p+g,0),i.value=m.reduce((p,{blockSize:g})=>p+g,0)}else s.value=c.contentRect.width,i.value=c.contentRect.height},n);Bc(()=>{const c=de(e);c&&(s.value="offsetWidth"in c?c.offsetWidth:t.width,i.value="offsetHeight"in c?c.offsetHeight:t.height)});const u=U(()=>de(e),c=>{s.value=c?t.width:0,i.value=c?t.height:0});function v(){l(),u()}return{width:s,height:i,stop:v}}function y2(e={}){const{window:t=wt}=e;if(!t)return O(!1);const n=O(t.document.hasFocus());return Ce(t,"blur",()=>{n.value=!1}),Ce(t,"focus",()=>{n.value=!0}),n}class zc extends Error{constructor(t){super(t),this.name="ElementPlusError"}}function jc(e,t){throw new zc(`[${e}] ${t}`)}function w2(e,t){}const ur={current:0},cr=O(0),ba=2e3,dr=Symbol("elZIndexContextKey"),ya=Symbol("zIndexContextKey"),wa=e=>{const t=ve()?j(dr,ur):ur,n=e||(ve()?j(ya,void 0):void 0),o=C(()=>{const s=_(n);return Se(s)?s:ba}),r=C(()=>o.value+cr.value),a=()=>(t.current++,cr.value=t.current,r.value);return!ae&&j(dr),{initialZIndex:o,currentZIndex:r,nextZIndex:a}};var _a={name:"en",el:{breadcrumb:{label:"Breadcrumb"},colorpicker:{confirm:"OK",clear:"Clear",defaultLabel:"color picker",description:"current color is {color}. press enter to select a new color.",alphaLabel:"pick alpha value",alphaDescription:"alpha {alpha}, current color is {color}",hueLabel:"pick hue value",hueDescription:"hue {hue}, current color is {color}",svLabel:"pick saturation and brightness value",svDescription:"saturation {saturation}, brightness {brightness}, current color is {color}",predefineDescription:"select {value} as the color"},datepicker:{now:"Now",today:"Today",cancel:"Cancel",clear:"Clear",confirm:"OK",dateTablePrompt:"Use the arrow keys and enter to select the day of the month",monthTablePrompt:"Use the arrow keys and enter to select the month",yearTablePrompt:"Use the arrow keys and enter to select the year",selectedDate:"Selected date",selectDate:"Select date",selectTime:"Select time",startDate:"Start Date",startTime:"Start Time",endDate:"End Date",endTime:"End Time",prevYear:"Previous Year",nextYear:"Next Year",prevMonth:"Previous Month",nextMonth:"Next Month",year:"",month1:"January",month2:"February",month3:"March",month4:"April",month5:"May",month6:"June",month7:"July",month8:"August",month9:"September",month10:"October",month11:"November",month12:"December",weeks:{sun:"Sun",mon:"Mon",tue:"Tue",wed:"Wed",thu:"Thu",fri:"Fri",sat:"Sat"},weeksFull:{sun:"Sunday",mon:"Monday",tue:"Tuesday",wed:"Wednesday",thu:"Thursday",fri:"Friday",sat:"Saturday"},months:{jan:"Jan",feb:"Feb",mar:"Mar",apr:"Apr",may:"May",jun:"Jun",jul:"Jul",aug:"Aug",sep:"Sep",oct:"Oct",nov:"Nov",dec:"Dec"}},inputNumber:{decrease:"decrease number",increase:"increase number"},select:{loading:"Loading",noMatch:"No matching data",noData:"No data",placeholder:"Select"},mention:{loading:"Loading"},dropdown:{toggleDropdown:"Toggle Dropdown"},cascader:{noMatch:"No matching data",loading:"Loading",placeholder:"Select",noData:"No data"},pagination:{goto:"Go to",pagesize:"/page",total:"Total {total}",pageClassifier:"",page:"Page",prev:"Go to previous page",next:"Go to next page",currentPage:"page {pager}",prevPages:"Previous {pager} pages",nextPages:"Next {pager} pages",deprecationWarning:"Deprecated usages detected, please refer to the el-pagination documentation for more details"},dialog:{close:"Close this dialog"},drawer:{close:"Close this dialog"},messagebox:{title:"Message",confirm:"OK",cancel:"Cancel",error:"Illegal input",close:"Close this dialog"},upload:{deleteTip:"press delete to remove",delete:"Delete",preview:"Preview",continue:"Continue"},slider:{defaultLabel:"slider between {min} and {max}",defaultRangeStartLabel:"pick start value",defaultRangeEndLabel:"pick end value"},table:{emptyText:"No Data",confirmFilter:"Confirm",resetFilter:"Reset",clearFilter:"All",sumText:"Sum",selectAllLabel:"Select all rows",selectRowLabel:"Select this row",expandRowLabel:"Expand this row",collapseRowLabel:"Collapse this row",sortLabel:"Sort by {column}",filterLabel:"Filter by {column}"},tag:{close:"Close this tag"},tour:{next:"Next",previous:"Previous",finish:"Finish",close:"Close this dialog"},tree:{emptyText:"No Data"},transfer:{noMatch:"No matching data",noData:"No data",titles:["List 1","List 2"],filterPlaceholder:"Enter keyword",noCheckedFormat:"{total} items",hasCheckedFormat:"{checked}/{total} checked"},image:{error:"FAILED"},pageHeader:{title:"Back"},popconfirm:{confirmButtonText:"Yes",cancelButtonText:"No"},carousel:{leftArrow:"Carousel arrow left",rightArrow:"Carousel arrow right",indicator:"Carousel switch to index {index}"}}};const Vc=e=>(t,n)=>Uc(t,n,_(e)),Uc=(e,t,n)=>ca(n,e,e).replace(/\{(\w+)\}/g,(o,r)=>{var a;return`${(a=t?.[r])!=null?a:`{${r}}`}`}),Kc=e=>{const t=C(()=>_(e).name),n=Ms(e)?e:O(e);return{lang:t,locale:n,t:Vc(e)}},Ea=Symbol("localeContextKey"),Sa=e=>{const t=e||j(Ea,O());return Kc(C(()=>t.value||_a))},Ca="__epPropKey",N=e=>e,Wc=e=>$t(e)&&!!e[Ca],yn=(e,t)=>{if(!$t(e)||Wc(e))return e;const{values:n,required:o,default:r,type:a,validator:s}=e,l={type:a,required:!!o,validator:n||s?u=>{let v=!1,c=[];if(n&&(c=Array.from(n),Bo(e,"default")&&c.push(r),v||(v=c.includes(u))),s&&(v||(v=s(u))),!v&&c.length>0){const d=[...new Set(c)].map(m=>JSON.stringify(m)).join(", ");Ds(`Invalid prop: validation failed${t?` for prop "${t}"`:""}. Expected one of [${d}], got value ${JSON.stringify(u)}.`)}return v}:void 0,[Ca]:!0};return Bo(e,"default")&&(l.default=r),l},te=e=>zn(Object.entries(e).map(([t,n])=>[t,yn(n,t)])),Gc=["","default","small","large"],Ta=yn({type:String,values:Gc,required:!1}),Aa=Symbol("size"),qc=()=>{const e=j(Aa,{});return C(()=>_(e.size)||"")},Oa=Symbol("emptyValuesContextKey"),Jc=["",void 0,null],Yc=void 0,Zc=te({emptyValues:Array,valueOnClear:{type:N([String,Number,Boolean,Function]),default:void 0,validator:e=>(e=Ye(e)?e():e,Bt(e)?e.every(t=>!t):!e)}}),_2=(e,t)=>{const n=ve()?j(Oa,O({})):O({}),o=C(()=>e.emptyValues||n.value.emptyValues||Jc),r=C(()=>Ye(e.valueOnClear)?e.valueOnClear():e.valueOnClear!==void 0?e.valueOnClear:Ye(n.value.valueOnClear)?n.value.valueOnClear():n.value.valueOnClear!==void 0?n.value.valueOnClear:Yc),a=s=>{let i=!0;return Bt(s)?i=o.value.some(l=>_c(s,l)):i=o.value.includes(s),i};return a(r.value),{emptyValues:o,valueOnClear:r,isEmptyValue:a}},fr=e=>Object.keys(e),E2=(e,t,n)=>({get value(){return ca(e,t,n)},set value(o){Ac(e,t,o)}}),ln=O();function so(e,t=void 0){const n=ve()?j(Qr,ln):ln;return e?C(()=>{var o,r;return(r=(o=n.value)==null?void 0:o[e])!=null?r:t}):n}function S2(e,t){const n=so(),o=se(e,C(()=>{var i;return((i=n.value)==null?void 0:i.namespace)||en})),r=Sa(C(()=>{var i;return(i=n.value)==null?void 0:i.locale})),a=wa(C(()=>{var i;return((i=n.value)==null?void 0:i.zIndex)||ba})),s=C(()=>{var i;return _(t)||((i=n.value)==null?void 0:i.size)||""});return xa(C(()=>_(n)||{})),{ns:o,locale:r,zIndex:a,size:s}}const xa=(e,t,n=!1)=>{var o;const r=!!ve(),a=r?so():void 0,s=(o=void 0)!=null?o:r?ue:void 0;if(!s)return;const i=C(()=>{const l=_(e);return a?.value?Xc(a.value,l):l});return s(Qr,i),s(Ea,C(()=>i.value.locale)),s(ea,C(()=>i.value.namespace)),s(ya,C(()=>i.value.zIndex)),s(Aa,{size:C(()=>i.value.size||"")}),s(Oa,C(()=>({emptyValues:i.value.emptyValues,valueOnClear:i.value.valueOnClear}))),(n||!ln.value)&&(ln.value=i.value),i},Xc=(e,t)=>{const n=[...new Set([...fr(e),...fr(t)])],o={};for(const r of n)o[r]=t[r]!==void 0?t[r]:e[r];return o},Ia=te({to:{type:N([String,Object]),required:!0},disabled:Boolean});var Q=(e,t)=>{const n=e.__vccOpts||e;for(const[o,r]of t)n[o]=r;return n};const Qc=L({__name:"teleport",props:Ia,setup(e){return(t,n)=>t.disabled?G(t.$slots,"default",{key:0}):(x(),Z(Bs,{key:1,to:t.to},[G(t.$slots,"default")],8,["to"]))}});var ed=Q(Qc,[["__file","/home/runner/work/element-plus/element-plus/packages/components/teleport/src/teleport.vue"]]);const Ue=(e,t)=>{if(e.install=n=>{for(const o of[e,...Object.values(t??{})])n.component(o.name,o)},t)for(const[n,o]of Object.entries(t))e[n]=o;return e},C2=(e,t)=>(e.install=n=>{e._context=n._context,n.config.globalProperties[t]=e},e),io=e=>(e.install=nn,e),td=Ue(ed),Pa=(e="")=>e.split(" ").filter(t=>!!t.trim()),T2=(e,t)=>{if(!e||!t)return!1;if(t.includes(" "))throw new Error("className should not contain space.");return e.classList.contains(t)},A2=(e,t)=>{!e||!t.trim()||e.classList.add(...Pa(t))},O2=(e,t)=>{!e||!t.trim()||e.classList.remove(...Pa(t))},x2=(e,t)=>{var n;if(!ae||!e||!t)return"";let o=$s(t);o==="float"&&(o="cssFloat");try{const r=e.style[o];if(r)return r;const a=(n=document.defaultView)==null?void 0:n.getComputedStyle(e,"");return a?a[o]:""}catch{return e.style[o]}};function un(e,t="px"){if(!e&&e!==0)return"";if(Se(e)||Oc(e))return`${e}${t}`;if(Yn(e))return e}const nd=te({size:{type:N([Number,String])},color:{type:String}}),od=L({name:"ElIcon",inheritAttrs:!1,__name:"icon",props:nd,setup(e){const t=e,n=se("icon"),o=C(()=>{const{size:r,color:a}=t,s=un(r);return!s&&!a?{}:{fontSize:s,"--color":a}});return(r,a)=>(x(),D("i",Fe({class:_(n).b(),style:o.value},r.$attrs),[G(r.$slots,"default")],16))}});var rd=Q(od,[["__file","/home/runner/work/element-plus/element-plus/packages/components/icon/src/icon.vue"]]);const Lt=Ue(rd);var ad=L({name:"ArrowDown",__name:"arrow-down",setup(e){return(t,n)=>(x(),D("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[F("path",{fill:"currentColor",d:"M831.872 340.864 512 652.672 192.128 340.864a30.59 30.59 0 0 0-42.752 0 29.12 29.12 0 0 0 0 41.6L489.664 714.24a32 32 0 0 0 44.672 0l340.288-331.712a29.12 29.12 0 0 0 0-41.728 30.59 30.59 0 0 0-42.752 0z"})]))}}),Ra=ad,sd=L({name:"ArrowLeft",__name:"arrow-left",setup(e){return(t,n)=>(x(),D("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[F("path",{fill:"currentColor",d:"M609.408 149.376 277.76 489.6a32 32 0 0 0 0 44.672l331.648 340.352a29.12 29.12 0 0 0 41.728 0 30.59 30.59 0 0 0 0-42.752L339.264 511.936l311.872-319.872a30.59 30.59 0 0 0 0-42.688 29.12 29.12 0 0 0-41.728 0"})]))}}),I2=sd,id=L({name:"ArrowRight",__name:"arrow-right",setup(e){return(t,n)=>(x(),D("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[F("path",{fill:"currentColor",d:"M340.864 149.312a30.59 30.59 0 0 0 0 42.752L652.736 512 340.864 831.872a30.59 30.59 0 0 0 0 42.752 29.12 29.12 0 0 0 41.728 0L714.24 534.336a32 32 0 0 0 0-44.672L382.592 149.376a29.12 29.12 0 0 0-41.728 0z"})]))}}),P2=id,ld=L({name:"ArrowUp",__name:"arrow-up",setup(e){return(t,n)=>(x(),D("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[F("path",{fill:"currentColor",d:"m488.832 344.32-339.84 356.672a32 32 0 0 0 0 44.16l.384.384a29.44 29.44 0 0 0 42.688 0l320-335.872 319.872 335.872a29.44 29.44 0 0 0 42.688 0l.384-.384a32 32 0 0 0 0-44.16L535.168 344.32a32 32 0 0 0-46.336 0"})]))}}),R2=ld,ud=L({name:"Check",__name:"check",setup(e){return(t,n)=>(x(),D("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[F("path",{fill:"currentColor",d:"M406.656 706.944 195.84 496.256a32 32 0 1 0-45.248 45.248l256 256 512-512a32 32 0 0 0-45.248-45.248L406.592 706.944z"})]))}}),F2=ud,cd=L({name:"CircleCheckFilled",__name:"circle-check-filled",setup(e){return(t,n)=>(x(),D("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[F("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m-55.808 536.384-99.52-99.584a38.4 38.4 0 1 0-54.336 54.336l126.72 126.72a38.27 38.27 0 0 0 54.336 0l262.4-262.464a38.4 38.4 0 1 0-54.272-54.336z"})]))}}),k2=cd,dd=L({name:"CircleCheck",__name:"circle-check",setup(e){return(t,n)=>(x(),D("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[F("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"}),F("path",{fill:"currentColor",d:"M745.344 361.344a32 32 0 0 1 45.312 45.312l-288 288a32 32 0 0 1-45.312 0l-160-160a32 32 0 1 1 45.312-45.312L480 626.752z"})]))}}),fd=dd,pd=L({name:"CircleCloseFilled",__name:"circle-close-filled",setup(e){return(t,n)=>(x(),D("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[F("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 393.664L407.936 353.6a38.4 38.4 0 1 0-54.336 54.336L457.664 512 353.6 616.064a38.4 38.4 0 1 0 54.336 54.336L512 566.336 616.064 670.4a38.4 38.4 0 1 0 54.336-54.336L566.336 512 670.4 407.936a38.4 38.4 0 1 0-54.336-54.336z"})]))}}),Fa=pd,vd=L({name:"CircleClose",__name:"circle-close",setup(e){return(t,n)=>(x(),D("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[F("path",{fill:"currentColor",d:"m466.752 512-90.496-90.496a32 32 0 0 1 45.248-45.248L512 466.752l90.496-90.496a32 32 0 1 1 45.248 45.248L557.248 512l90.496 90.496a32 32 0 1 1-45.248 45.248L512 557.248l-90.496 90.496a32 32 0 0 1-45.248-45.248z"}),F("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"})]))}}),md=vd,gd=L({name:"Close",__name:"close",setup(e){return(t,n)=>(x(),D("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[F("path",{fill:"currentColor",d:"M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"})]))}}),ka=gd,hd=L({name:"Connection",__name:"connection",setup(e){return(t,n)=>(x(),D("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[F("path",{fill:"currentColor",d:"M640 384v64H448a128 128 0 0 0-128 128v128a128 128 0 0 0 128 128h320a128 128 0 0 0 128-128V576a128 128 0 0 0-64-110.848V394.88c74.56 26.368 128 97.472 128 181.056v128a192 192 0 0 1-192 192H448a192 192 0 0 1-192-192V576a192 192 0 0 1 192-192z"}),F("path",{fill:"currentColor",d:"M384 640v-64h192a128 128 0 0 0 128-128V320a128 128 0 0 0-128-128H256a128 128 0 0 0-128 128v128a128 128 0 0 0 64 110.848v70.272A192.06 192.06 0 0 1 64 448V320a192 192 0 0 1 192-192h320a192 192 0 0 1 192 192v128a192 192 0 0 1-192 192z"})]))}}),L2=hd,bd=L({name:"CopyDocument",__name:"copy-document",setup(e){return(t,n)=>(x(),D("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[F("path",{fill:"currentColor",d:"M768 832a128 128 0 0 1-128 128H192A128 128 0 0 1 64 832V384a128 128 0 0 1 128-128v64a64 64 0 0 0-64 64v448a64 64 0 0 0 64 64h448a64 64 0 0 0 64-64z"}),F("path",{fill:"currentColor",d:"M384 128a64 64 0 0 0-64 64v448a64 64 0 0 0 64 64h448a64 64 0 0 0 64-64V192a64 64 0 0 0-64-64zm0-64h448a128 128 0 0 1 128 128v448a128 128 0 0 1-128 128H384a128 128 0 0 1-128-128V192A128 128 0 0 1 384 64"})]))}}),M2=bd,yd=L({name:"Delete",__name:"delete",setup(e){return(t,n)=>(x(),D("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[F("path",{fill:"currentColor",d:"M160 256H96a32 32 0 0 1 0-64h256V95.936a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V192h256a32 32 0 1 1 0 64h-64v672a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32zm448-64v-64H416v64zM224 896h576V256H224zm192-128a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32m192 0a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32"})]))}}),D2=yd,wd=L({name:"Document",__name:"document",setup(e){return(t,n)=>(x(),D("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[F("path",{fill:"currentColor",d:"M832 384H576V128H192v768h640zm-26.496-64L640 154.496V320zM160 64h480l256 256v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32m160 448h384v64H320zm0-192h160v64H320zm0 384h384v64H320z"})]))}}),B2=wd,_d=L({name:"Download",__name:"download",setup(e){return(t,n)=>(x(),D("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[F("path",{fill:"currentColor",d:"M160 832h704a32 32 0 1 1 0 64H160a32 32 0 1 1 0-64m384-253.696 236.288-236.352 45.248 45.248L508.8 704 192 387.2l45.248-45.248L480 584.704V128h64z"})]))}}),$2=_d,Ed=L({name:"Edit",__name:"edit",setup(e){return(t,n)=>(x(),D("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[F("path",{fill:"currentColor",d:"M832 512a32 32 0 1 1 64 0v352a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h352a32 32 0 0 1 0 64H192v640h640z"}),F("path",{fill:"currentColor",d:"m469.952 554.24 52.8-7.552L847.104 222.4a32 32 0 1 0-45.248-45.248L477.44 501.44l-7.552 52.8zm422.4-422.4a96 96 0 0 1 0 135.808l-331.84 331.84a32 32 0 0 1-18.112 9.088L436.8 623.68a32 32 0 0 1-36.224-36.224l15.104-105.6a32 32 0 0 1 9.024-18.112l331.904-331.84a96 96 0 0 1 135.744 0z"})]))}}),N2=Ed,Sd=L({name:"ElementPlus",__name:"element-plus",setup(e){return(t,n)=>(x(),D("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[F("path",{fill:"currentColor",d:"M839.7 734.7c0 33.3-17.9 41-17.9 41S519.7 949.8 499.2 960c-10.2 5.1-20.5 5.1-30.7 0 0 0-314.9-184.3-325.1-192-5.1-5.1-10.2-12.8-12.8-20.5V368.6c0-17.9 20.5-28.2 20.5-28.2L466 158.6q19.2-7.65 38.4 0s279 161.3 309.8 179.2c17.9 7.7 28.2 25.6 25.6 46.1-.1-5-.1 317.5-.1 350.8M714.2 371.2c-64-35.8-217.6-125.4-217.6-125.4-7.7-5.1-20.5-5.1-30.7 0L217.6 389.1s-17.9 10.2-17.9 23v297c0 5.1 5.1 12.8 7.7 17.9 7.7 5.1 256 148.5 256 148.5 7.7 5.1 17.9 5.1 25.6 0 15.4-7.7 250.9-145.9 250.9-145.9s12.8-5.1 12.8-30.7v-74.2l-276.5 169v-64c0-17.9 7.7-30.7 20.5-46.1L745 535c5.1-7.7 10.2-20.5 10.2-30.7v-66.6l-279 169v-69.1c0-15.4 5.1-30.7 17.9-38.4zM919 135.7c0-5.1-5.1-7.7-7.7-7.7h-58.9V66.6c0-5.1-5.1-5.1-10.2-5.1l-30.7 5.1c-5.1 0-5.1 2.6-5.1 5.1V128h-56.3c-5.1 0-5.1 5.1-7.7 5.1v38.4h69.1v64c0 5.1 5.1 5.1 10.2 5.1l30.7-5.1c5.1 0 5.1-2.6 5.1-5.1v-56.3h64z"})]))}}),Cd=Sd,Td=L({name:"Files",__name:"files",setup(e){return(t,n)=>(x(),D("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[F("path",{fill:"currentColor",d:"M128 384v448h768V384zm-32-64h832a32 32 0 0 1 32 32v512a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V352a32 32 0 0 1 32-32m64-128h704v64H160zm96-128h512v64H256z"})]))}}),H2=Td,Ad=L({name:"Folder",__name:"folder",setup(e){return(t,n)=>(x(),D("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[F("path",{fill:"currentColor",d:"M128 192v640h768V320H485.76L357.504 192zm-32-64h287.872l128.384 128H928a32 32 0 0 1 32 32v576a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32"})]))}}),z2=Ad,Od=L({name:"Hide",__name:"hide",setup(e){return(t,n)=>(x(),D("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[F("path",{fill:"currentColor",d:"M876.8 156.8c0-9.6-3.2-16-9.6-22.4s-12.8-9.6-22.4-9.6-16 3.2-22.4 9.6L736 220.8c-64-32-137.6-51.2-224-60.8-160 16-288 73.6-377.6 176S0 496 0 512s48 73.6 134.4 176c22.4 25.6 44.8 48 73.6 67.2l-86.4 89.6c-6.4 6.4-9.6 12.8-9.6 22.4s3.2 16 9.6 22.4 12.8 9.6 22.4 9.6 16-3.2 22.4-9.6l704-710.4c3.2-6.4 6.4-12.8 6.4-22.4m-646.4 528Q115.2 579.2 76.8 512q43.2-72 153.6-172.8C304 272 400 230.4 512 224c64 3.2 124.8 19.2 176 44.8l-54.4 54.4C598.4 300.8 560 288 512 288c-64 0-115.2 22.4-160 64s-64 96-64 160c0 48 12.8 89.6 35.2 124.8L256 707.2c-9.6-6.4-19.2-16-25.6-22.4m140.8-96Q352 555.2 352 512c0-44.8 16-83.2 48-112s67.2-48 112-48c28.8 0 54.4 6.4 73.6 19.2zM889.599 336c-12.8-16-28.8-28.8-41.6-41.6l-48 48c73.6 67.2 124.8 124.8 150.4 169.6q-43.2 72-153.6 172.8c-73.6 67.2-172.8 108.8-284.8 115.2-51.2-3.2-99.2-12.8-140.8-28.8l-48 48c57.6 22.4 118.4 38.4 188.8 44.8 160-16 288-73.6 377.6-176S1024 528 1024 512s-48.001-73.6-134.401-176"}),F("path",{fill:"currentColor",d:"M511.998 672c-12.8 0-25.6-3.2-38.4-6.4l-51.2 51.2c28.8 12.8 57.6 19.2 89.6 19.2 64 0 115.2-22.4 160-64 41.6-41.6 64-96 64-160 0-32-6.4-64-19.2-89.6l-51.2 51.2c3.2 12.8 6.4 25.6 6.4 38.4 0 44.8-16 83.2-48 112s-67.2 48-112 48"})]))}}),j2=Od,xd=L({name:"InfoFilled",__name:"info-filled",setup(e){return(t,n)=>(x(),D("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[F("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896.064A448 448 0 0 1 512 64m67.2 275.072c33.28 0 60.288-23.104 60.288-57.344s-27.072-57.344-60.288-57.344c-33.28 0-60.16 23.104-60.16 57.344s26.88 57.344 60.16 57.344M590.912 699.2c0-6.848 2.368-24.64 1.024-34.752l-52.608 60.544c-10.88 11.456-24.512 19.392-30.912 17.28a12.99 12.99 0 0 1-8.256-14.72l87.68-276.992c7.168-35.136-12.544-67.2-54.336-71.296-44.096 0-108.992 44.736-148.48 101.504 0 6.784-1.28 23.68.064 33.792l52.544-60.608c10.88-11.328 23.552-19.328 29.952-17.152a12.8 12.8 0 0 1 7.808 16.128L388.48 728.576c-10.048 32.256 8.96 63.872 55.04 71.04 67.84 0 107.904-43.648 147.456-100.416z"})]))}}),Vn=xd,Id=L({name:"Loading",__name:"loading",setup(e){return(t,n)=>(x(),D("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[F("path",{fill:"currentColor",d:"M512 64a32 32 0 0 1 32 32v192a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32m0 640a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V736a32 32 0 0 1 32-32m448-192a32 32 0 0 1-32 32H736a32 32 0 1 1 0-64h192a32 32 0 0 1 32 32m-640 0a32 32 0 0 1-32 32H96a32 32 0 0 1 0-64h192a32 32 0 0 1 32 32M195.2 195.2a32 32 0 0 1 45.248 0L376.32 331.008a32 32 0 0 1-45.248 45.248L195.2 240.448a32 32 0 0 1 0-45.248m452.544 452.544a32 32 0 0 1 45.248 0L828.8 783.552a32 32 0 0 1-45.248 45.248L647.744 692.992a32 32 0 0 1 0-45.248M828.8 195.264a32 32 0 0 1 0 45.184L692.992 376.32a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0m-452.544 452.48a32 32 0 0 1 0 45.248L240.448 828.8a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0"})]))}}),La=Id,Pd=L({name:"Lock",__name:"lock",setup(e){return(t,n)=>(x(),D("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[F("path",{fill:"currentColor",d:"M224 448a32 32 0 0 0-32 32v384a32 32 0 0 0 32 32h576a32 32 0 0 0 32-32V480a32 32 0 0 0-32-32zm0-64h576a96 96 0 0 1 96 96v384a96 96 0 0 1-96 96H224a96 96 0 0 1-96-96V480a96 96 0 0 1 96-96"}),F("path",{fill:"currentColor",d:"M512 544a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V576a32 32 0 0 1 32-32m192-160v-64a192 192 0 1 0-384 0v64zM512 64a256 256 0 0 1 256 256v128H256V320A256 256 0 0 1 512 64"})]))}}),V2=Pd,Rd=L({name:"Memo",__name:"memo",setup(e){return(t,n)=>(x(),D("svg",{xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",viewBox:"0 0 1024 1024"},[F("path",{fill:"currentColor",d:"M480 320h192c21.33 0 32-10.67 32-32s-10.67-32-32-32H480c-21.33 0-32 10.67-32 32s10.67 32 32 32"}),F("path",{fill:"currentColor",d:"M887.01 72.99C881.01 67 873.34 64 864 64H160c-9.35 0-17.02 3-23.01 8.99C131 78.99 128 86.66 128 96v832c0 9.35 2.99 17.02 8.99 23.01S150.66 960 160 960h704c9.35 0 17.02-2.99 23.01-8.99S896 937.34 896 928V96c0-9.35-3-17.02-8.99-23.01M192 896V128h96v768zm640 0H352V128h480z"}),F("path",{fill:"currentColor",d:"M480 512h192c21.33 0 32-10.67 32-32s-10.67-32-32-32H480c-21.33 0-32 10.67-32 32s10.67 32 32 32m0 192h192c21.33 0 32-10.67 32-32s-10.67-32-32-32H480c-21.33 0-32 10.67-32 32s10.67 32 32 32"})]))}}),U2=Rd,Fd=L({name:"Minus",__name:"minus",setup(e){return(t,n)=>(x(),D("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[F("path",{fill:"currentColor",d:"M128 544h768a32 32 0 1 0 0-64H128a32 32 0 0 0 0 64"})]))}}),K2=Fd,kd=L({name:"Monitor",__name:"monitor",setup(e){return(t,n)=>(x(),D("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[F("path",{fill:"currentColor",d:"M544 768v128h192a32 32 0 1 1 0 64H288a32 32 0 1 1 0-64h192V768H192A128 128 0 0 1 64 640V256a128 128 0 0 1 128-128h640a128 128 0 0 1 128 128v384a128 128 0 0 1-128 128zM192 192a64 64 0 0 0-64 64v384a64 64 0 0 0 64 64h640a64 64 0 0 0 64-64V256a64 64 0 0 0-64-64z"})]))}}),pr=kd,Ld=L({name:"Moon",__name:"moon",setup(e){return(t,n)=>(x(),D("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[F("path",{fill:"currentColor",d:"M240.448 240.448a384 384 0 1 0 559.424 525.696 448 448 0 0 1-542.016-542.08 391 391 0 0 0-17.408 16.384m181.056 362.048a384 384 0 0 0 525.632 16.384A448 448 0 1 1 405.056 76.8a384 384 0 0 0 16.448 525.696"})]))}}),vr=Ld,Md=L({name:"Operation",__name:"operation",setup(e){return(t,n)=>(x(),D("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[F("path",{fill:"currentColor",d:"M389.44 768a96.064 96.064 0 0 1 181.12 0H896v64H570.56a96.064 96.064 0 0 1-181.12 0H128v-64zm192-288a96.064 96.064 0 0 1 181.12 0H896v64H762.56a96.064 96.064 0 0 1-181.12 0H128v-64zm-320-288a96.064 96.064 0 0 1 181.12 0H896v64H442.56a96.064 96.064 0 0 1-181.12 0H128v-64z"})]))}}),W2=Md,Dd=L({name:"PictureFilled",__name:"picture-filled",setup(e){return(t,n)=>(x(),D("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[F("path",{fill:"currentColor",d:"M96 896a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h832a32 32 0 0 1 32 32v704a32 32 0 0 1-32 32zm315.52-228.48-68.928-68.928a32 32 0 0 0-45.248 0L128 768.064h778.688l-242.112-290.56a32 32 0 0 0-49.216 0L458.752 665.408a32 32 0 0 1-47.232 2.112M256 384a96 96 0 1 0 192.064-.064A96 96 0 0 0 256 384"})]))}}),G2=Dd,Bd=L({name:"Platform",__name:"platform",setup(e){return(t,n)=>(x(),D("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[F("path",{fill:"currentColor",d:"M448 832v-64h128v64h192v64H256v-64zM128 704V128h768v576z"})]))}}),q2=Bd,$d=L({name:"Plus",__name:"plus",setup(e){return(t,n)=>(x(),D("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[F("path",{fill:"currentColor",d:"M480 480V128a32 32 0 0 1 64 0v352h352a32 32 0 1 1 0 64H544v352a32 32 0 1 1-64 0V544H128a32 32 0 0 1 0-64z"})]))}}),J2=$d,Nd=L({name:"Refresh",__name:"refresh",setup(e){return(t,n)=>(x(),D("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[F("path",{fill:"currentColor",d:"M771.776 794.88A384 384 0 0 1 128 512h64a320 320 0 0 0 555.712 216.448H654.72a32 32 0 1 1 0-64h149.056a32 32 0 0 1 32 32v148.928a32 32 0 1 1-64 0v-50.56zM276.288 295.616h92.992a32 32 0 0 1 0 64H220.16a32 32 0 0 1-32-32V178.56a32 32 0 0 1 64 0v50.56A384 384 0 0 1 896.128 512h-64a320 320 0 0 0-555.776-216.384z"})]))}}),Y2=Nd,Hd=L({name:"Search",__name:"search",setup(e){return(t,n)=>(x(),D("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[F("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704"})]))}}),Z2=Hd,zd=L({name:"Setting",__name:"setting",setup(e){return(t,n)=>(x(),D("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[F("path",{fill:"currentColor",d:"M600.704 64a32 32 0 0 1 30.464 22.208l35.2 109.376c14.784 7.232 28.928 15.36 42.432 24.512l112.384-24.192a32 32 0 0 1 34.432 15.36L944.32 364.8a32 32 0 0 1-4.032 37.504l-77.12 85.12a357 357 0 0 1 0 49.024l77.12 85.248a32 32 0 0 1 4.032 37.504l-88.704 153.6a32 32 0 0 1-34.432 15.296L708.8 803.904c-13.44 9.088-27.648 17.28-42.368 24.512l-35.264 109.376A32 32 0 0 1 600.704 960H423.296a32 32 0 0 1-30.464-22.208L357.696 828.48a352 352 0 0 1-42.56-24.64l-112.32 24.256a32 32 0 0 1-34.432-15.36L79.68 659.2a32 32 0 0 1 4.032-37.504l77.12-85.248a357 357 0 0 1 0-48.896l-77.12-85.248A32 32 0 0 1 79.68 364.8l88.704-153.6a32 32 0 0 1 34.432-15.296l112.32 24.256c13.568-9.152 27.776-17.408 42.56-24.64l35.2-109.312A32 32 0 0 1 423.232 64H600.64zm-23.424 64H446.72l-36.352 113.088-24.512 11.968a294 294 0 0 0-34.816 20.096l-22.656 15.36-116.224-25.088-65.28 113.152 79.68 88.192-1.92 27.136a293 293 0 0 0 0 40.192l1.92 27.136-79.808 88.192 65.344 113.152 116.224-25.024 22.656 15.296a294 294 0 0 0 34.816 20.096l24.512 11.968L446.72 896h130.688l36.48-113.152 24.448-11.904a288 288 0 0 0 34.752-20.096l22.592-15.296 116.288 25.024 65.28-113.152-79.744-88.192 1.92-27.136a293 293 0 0 0 0-40.256l-1.92-27.136 79.808-88.128-65.344-113.152-116.288 24.96-22.592-15.232a288 288 0 0 0-34.752-20.096l-24.448-11.904L577.344 128zM512 320a192 192 0 1 1 0 384 192 192 0 0 1 0-384m0 64a128 128 0 1 0 0 256 128 128 0 0 0 0-256"})]))}}),X2=zd,jd=L({name:"SuccessFilled",__name:"success-filled",setup(e){return(t,n)=>(x(),D("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[F("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m-55.808 536.384-99.52-99.584a38.4 38.4 0 1 0-54.336 54.336l126.72 126.72a38.27 38.27 0 0 0 54.336 0l262.4-262.464a38.4 38.4 0 1 0-54.272-54.336z"})]))}}),Ma=jd,Vd=L({name:"Sunny",__name:"sunny",setup(e){return(t,n)=>(x(),D("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[F("path",{fill:"currentColor",d:"M512 704a192 192 0 1 0 0-384 192 192 0 0 0 0 384m0 64a256 256 0 1 1 0-512 256 256 0 0 1 0 512m0-704a32 32 0 0 1 32 32v64a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32m0 768a32 32 0 0 1 32 32v64a32 32 0 1 1-64 0v-64a32 32 0 0 1 32-32M195.2 195.2a32 32 0 0 1 45.248 0l45.248 45.248a32 32 0 1 1-45.248 45.248L195.2 240.448a32 32 0 0 1 0-45.248m543.104 543.104a32 32 0 0 1 45.248 0l45.248 45.248a32 32 0 0 1-45.248 45.248l-45.248-45.248a32 32 0 0 1 0-45.248M64 512a32 32 0 0 1 32-32h64a32 32 0 0 1 0 64H96a32 32 0 0 1-32-32m768 0a32 32 0 0 1 32-32h64a32 32 0 1 1 0 64h-64a32 32 0 0 1-32-32M195.2 828.8a32 32 0 0 1 0-45.248l45.248-45.248a32 32 0 0 1 45.248 45.248L240.448 828.8a32 32 0 0 1-45.248 0m543.104-543.104a32 32 0 0 1 0-45.248l45.248-45.248a32 32 0 0 1 45.248 45.248l-45.248 45.248a32 32 0 0 1-45.248 0"})]))}}),mr=Vd,Ud=L({name:"SwitchButton",__name:"switch-button",setup(e){return(t,n)=>(x(),D("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[F("path",{fill:"currentColor",d:"M352 159.872V230.4a352 352 0 1 0 320 0v-70.528A416.128 416.128 0 0 1 512 960a416 416 0 0 1-160-800.128"}),F("path",{fill:"currentColor",d:"M512 64q32 0 32 32v320q0 32-32 32t-32-32V96q0-32 32-32"})]))}}),Q2=Ud,Kd=L({name:"Tools",__name:"tools",setup(e){return(t,n)=>(x(),D("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[F("path",{fill:"currentColor",d:"M764.416 254.72a351.7 351.7 0 0 1 86.336 149.184H960v192.064H850.752a351.7 351.7 0 0 1-86.336 149.312l54.72 94.72-166.272 96-54.592-94.72a352.64 352.64 0 0 1-172.48 0L371.136 936l-166.272-96 54.72-94.72a351.7 351.7 0 0 1-86.336-149.312H64v-192h109.248a351.7 351.7 0 0 1 86.336-149.312L204.8 160l166.208-96h.192l54.656 94.592a352.64 352.64 0 0 1 172.48 0L652.8 64h.128L819.2 160l-54.72 94.72zM704 499.968a192 192 0 1 0-384 0 192 192 0 0 0 384 0"})]))}}),em=Kd,Wd=L({name:"VideoPlay",__name:"video-play",setup(e){return(t,n)=>(x(),D("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[F("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 832a384 384 0 0 0 0-768 384 384 0 0 0 0 768m-48-247.616L668.608 512 464 375.616zm10.624-342.656 249.472 166.336a48 48 0 0 1 0 79.872L474.624 718.272A48 48 0 0 1 400 678.336V345.6a48 48 0 0 1 74.624-39.936z"})]))}}),tm=Wd,Gd=L({name:"View",__name:"view",setup(e){return(t,n)=>(x(),D("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[F("path",{fill:"currentColor",d:"M512 160c320 0 512 352 512 352S832 864 512 864 0 512 0 512s192-352 512-352m0 64c-225.28 0-384.128 208.064-436.8 288 52.608 79.872 211.456 288 436.8 288 225.28 0 384.128-208.064 436.8-288-52.608-79.872-211.456-288-436.8-288m0 64a224 224 0 1 1 0 448 224 224 0 0 1 0-448m0 64a160.19 160.19 0 0 0-160 160c0 88.192 71.744 160 160 160s160-71.808 160-160-71.744-160-160-160"})]))}}),nm=Gd,qd=L({name:"WarningFilled",__name:"warning-filled",setup(e){return(t,n)=>(x(),D("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[F("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 192a58.43 58.43 0 0 0-58.24 63.744l23.36 256.384a35.072 35.072 0 0 0 69.76 0l23.296-256.384A58.43 58.43 0 0 0 512 256m0 512a51.2 51.2 0 1 0 0-102.4 51.2 51.2 0 0 0 0 102.4"})]))}}),Da=qd,Jd=L({name:"Warning",__name:"warning",setup(e){return(t,n)=>(x(),D("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[F("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 832a384 384 0 0 0 0-768 384 384 0 0 0 0 768m48-176a48 48 0 1 1-96 0 48 48 0 0 1 96 0m-48-464a32 32 0 0 1 32 32v288a32 32 0 0 1-64 0V288a32 32 0 0 1 32-32"})]))}}),om=Jd;const Un=N([String,Object,Function]),rm={Close:ka},am={Close:ka,SuccessFilled:Ma,InfoFilled:Vn,WarningFilled:Da,CircleCloseFilled:Fa},sm={primary:Vn,success:Ma,warning:Da,error:Fa,info:Vn},im={validating:La,success:fd,error:md},lm=()=>ae&&/firefox/i.test(window.navigator.userAgent),Yd=()=>ae&&/android/i.test(window.navigator.userAgent),Zd=te({ariaLabel:String,ariaOrientation:{type:String,values:["horizontal","vertical","undefined"]},ariaControls:String}),lo=e=>Tc(Zd,e),gr={prefix:Math.floor(Math.random()*1e4),current:0},Xd=Symbol("elIdInjection"),Ba=()=>ve()?j(Xd,gr):gr,wn=e=>{const t=Ba(),n=Xn();return ga(()=>_(e)||`${n.value}-id-${t.prefix}-${t.current++}`)},uo=Symbol("formContextKey"),cn=Symbol("formItemContextKey"),Qd=()=>{const e=j(uo,void 0),t=j(cn,void 0);return{form:e,formItem:t}},um=(e,{formItemContext:t,disableIdGeneration:n,disableIdManagement:o})=>{n||(n=O(!1)),o||(o=O(!1));const r=ve(),a=()=>{let u=r?.parent;for(;u;){if(u.type.name==="ElFormItem")return!1;if(u.type.name==="ElLabelWrap")return!0;u=u.parent}return!1},s=O();let i;const l=C(()=>{var u;return!!(!(e.label||e.ariaLabel)&&t&&t.inputIds&&((u=t.inputIds)==null?void 0:u.length)<=1)});return ce(()=>{i=U([le(e,"id"),n],([u,v])=>{const c=u??(v?void 0:wn().value);c!==s.value&&(t?.removeInputId&&!a()&&(s.value&&t.removeInputId(s.value),!o?.value&&!v&&c&&t.addInputId(c)),s.value=c)},{immediate:!0})}),Ns(()=>{i&&i(),t?.removeInputId&&s.value&&t.removeInputId(s.value)}),{isLabeledByFormItem:l,inputId:s}},$a=e=>{const t=ve();return C(()=>{var n,o;return(o=(n=t?.proxy)==null?void 0:n.$props)==null?void 0:o[e]})},Na=(e,t={})=>{const n=O(void 0),o=t.prop?n:$a("size"),r=t.global?n:qc(),a=t.form?{size:void 0}:j(uo,void 0),s=t.formItem?{size:void 0}:j(cn,void 0);return C(()=>o.value||_(e)||s?.size||a?.size||r.value||"")},Ha=e=>{const t=$a("disabled"),n=j(uo,void 0);return C(()=>{var o,r,a;return(a=(r=(o=t.value)!=null?o:_(e))!=null?r:n?.disabled)!=null?a:!1})},ef='a[href],button:not([disabled]),button:not([hidden]),:not([tabindex="-1"]),input:not([disabled]),input:not([type="hidden"]),select:not([disabled]),textarea:not([disabled])',hr=e=>typeof Element>"u"?!1:e instanceof Element,tf=e=>getComputedStyle(e).position==="fixed"?!1:e.offsetParent!==null,cm=e=>Array.from(e.querySelectorAll(ef)).filter(t=>dn(t)&&tf(t)),dn=e=>{if(e.tabIndex>0||e.tabIndex===0&&e.getAttribute("tabIndex")!==null)return!0;if(e.tabIndex<0||e.hasAttribute("disabled")||e.getAttribute("aria-disabled")==="true")return!1;switch(e.nodeName){case"A":return!!e.href&&e.rel!=="ignore";case"INPUT":return!(e.type==="hidden"||e.type==="file");case"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}},co=(e,t)=>{if(!e||!e.focus)return;let n=!1;hr(e)&&!dn(e)&&!e.getAttribute("tabindex")&&(e.setAttribute("tabindex","-1"),n=!0),e.focus(t),hr(e)&&n&&e.removeAttribute("tabindex")},st=4,nf={vertical:{offset:"offsetHeight",scroll:"scrollTop",scrollSize:"scrollHeight",size:"height",key:"vertical",axis:"Y",client:"clientY",direction:"top"},horizontal:{offset:"offsetWidth",scroll:"scrollLeft",scrollSize:"scrollWidth",size:"width",key:"horizontal",axis:"X",client:"clientX",direction:"left"}},of=({move:e,size:t,bar:n})=>({[n.size]:t,transform:`translate${n.axis}(${e}%)`}),fo=Symbol("scrollbarContextKey"),rf=te({vertical:Boolean,size:String,move:Number,ratio:{type:Number,required:!0},always:Boolean}),af="Thumb",sf=L({__name:"thumb",props:rf,setup(e){const t=e,n=j(fo),o=se("scrollbar");n||jc(af,"can not inject scrollbar context");const r=O(),a=O(),s=O({}),i=O(!1);let l=!1,u=!1,v=0,c=0,d=ae?document.onselectstart:null;const m=C(()=>nf[t.vertical?"vertical":"horizontal"]),p=C(()=>of({size:t.size,move:t.move,bar:m.value})),g=C(()=>r.value[m.value.offset]**2/n.wrapElement[m.value.scrollSize]/t.ratio/a.value[m.value.offset]),w=E=>{var A;if(E.stopPropagation(),E.ctrlKey||[1,2].includes(E.button))return;(A=window.getSelection())==null||A.removeAllRanges(),y(E);const P=E.currentTarget;P&&(s.value[m.value.axis]=P[m.value.offset]-(E[m.value.client]-P.getBoundingClientRect()[m.value.direction]))},b=E=>{if(!a.value||!r.value||!n.wrapElement)return;const A=Math.abs(E.target.getBoundingClientRect()[m.value.direction]-E[m.value.client]),P=a.value[m.value.offset]/2,B=(A-P)*100*g.value/r.value[m.value.offset];n.wrapElement[m.value.scroll]=B*n.wrapElement[m.value.scrollSize]/100},y=E=>{E.stopImmediatePropagation(),l=!0,v=n.wrapElement.scrollHeight,c=n.wrapElement.scrollWidth,document.addEventListener("mousemove",T),document.addEventListener("mouseup",h),d=document.onselectstart,document.onselectstart=()=>!1},T=E=>{if(!r.value||!a.value||l===!1)return;const A=s.value[m.value.axis];if(!A)return;const P=(r.value.getBoundingClientRect()[m.value.direction]-E[m.value.client])*-1,B=a.value[m.value.offset]-A,I=(P-B)*100*g.value/r.value[m.value.offset];m.value.scroll==="scrollLeft"?n.wrapElement[m.value.scroll]=I*c/100:n.wrapElement[m.value.scroll]=I*v/100},h=()=>{l=!1,s.value[m.value.axis]=0,document.removeEventListener("mousemove",T),document.removeEventListener("mouseup",h),f(),u&&(i.value=!1)},k=()=>{u=!1,i.value=!!t.size},S=()=>{u=!0,i.value=l};me(()=>{f(),document.removeEventListener("mouseup",h)});const f=()=>{document.onselectstart!==d&&(document.onselectstart=d)};return Ce(le(n,"scrollbarElement"),"mousemove",k),Ce(le(n,"scrollbarElement"),"mouseleave",S),(E,A)=>(x(),Z(Jr,{name:_(o).b("fade"),persisted:""},{default:$(()=>[Zn(F("div",{ref_key:"instance",ref:r,class:J([_(o).e("bar"),_(o).is(m.value.key)]),onMousedown:b,onClick:A[0]||(A[0]=on(()=>{},["stop"]))},[F("div",{ref_key:"thumb",ref:a,class:J(_(o).e("thumb")),style:Rt(p.value),onMousedown:w},null,38)],34),[[qr,E.always||i.value]])]),_:1},8,["name"]))}});var br=Q(sf,[["__file","/home/runner/work/element-plus/element-plus/packages/components/scrollbar/src/thumb.vue"]]);const lf=te({always:{type:Boolean,default:!0},minSize:{type:Number,required:!0}}),uf=L({__name:"bar",props:lf,setup(e,{expose:t}){const n=e,o=j(fo),r=O(0),a=O(0),s=O(""),i=O(""),l=O(1),u=O(1);return t({handleScroll:d=>{if(d){const m=d.offsetHeight-st,p=d.offsetWidth-st;a.value=d.scrollTop*100/m*l.value,r.value=d.scrollLeft*100/p*u.value}},update:()=>{const d=o?.wrapElement;if(!d)return;const m=d.offsetHeight-st,p=d.offsetWidth-st,g=m**2/d.scrollHeight,w=p**2/d.scrollWidth,b=Math.max(g,n.minSize),y=Math.max(w,n.minSize);l.value=g/(m-g)/(b/(m-b)),u.value=w/(p-w)/(y/(p-y)),i.value=b+st<m?`${b}px`:"",s.value=y+st<p?`${y}px`:""}}),(d,m)=>(x(),D(vn,null,[H(br,{move:r.value,ratio:u.value,size:s.value,always:d.always},null,8,["move","ratio","size","always"]),H(br,{move:a.value,ratio:l.value,size:i.value,vertical:"",always:d.always},null,8,["move","ratio","size","always"])],64))}});var cf=Q(uf,[["__file","/home/runner/work/element-plus/element-plus/packages/components/scrollbar/src/bar.vue"]]);const df=te({distance:{type:Number,default:0},height:{type:[String,Number],default:""},maxHeight:{type:[String,Number],default:""},native:Boolean,wrapStyle:{type:N([String,Object,Array]),default:""},wrapClass:{type:[String,Array],default:""},viewClass:{type:[String,Array],default:""},viewStyle:{type:[String,Array,Object],default:""},noresize:Boolean,tag:{type:String,default:"div"},always:Boolean,minSize:{type:Number,default:20},tabindex:{type:[String,Number],default:void 0},id:String,role:String,...lo(["ariaLabel","ariaOrientation"])}),ff={"end-reached":e=>["left","right","top","bottom"].includes(e),scroll:({scrollTop:e,scrollLeft:t})=>[e,t].every(Se)},pf=["tabindex"],vf="ElScrollbar",mf=L({name:vf,__name:"scrollbar",props:df,emits:ff,setup(e,{expose:t,emit:n}){const o=e,r=n,a=se("scrollbar");let s,i,l,u=0,v=0,c="";const d={bottom:!1,top:!1,right:!1,left:!1},m=O(),p=O(),g=O(),w=O(),b=C(()=>{const I={},R=un(o.height),z=un(o.maxHeight);return R&&(I.height=R),z&&(I.maxHeight=z),[o.wrapStyle,I]}),y=C(()=>[o.wrapClass,a.e("wrap"),{[a.em("wrap","hidden-default")]:!o.native}]),T=C(()=>[a.e("view"),o.viewClass]),h=I=>{var R;return(R=d[I])!=null?R:!1},k={top:"bottom",bottom:"top",left:"right",right:"left"},S=I=>{const R=k[c];if(!R)return;const z=I[c],X=I[R];z&&!d[c]&&(d[c]=!0),!X&&d[R]&&(d[R]=!1)},f=()=>{var I;if(p.value){(I=w.value)==null||I.handleScroll(p.value);const R=u,z=v;u=p.value.scrollTop,v=p.value.scrollLeft;const X={bottom:u+p.value.clientHeight>=p.value.scrollHeight-o.distance,top:u<=o.distance&&R!==0,right:v+p.value.clientWidth>=p.value.scrollWidth-o.distance&&z!==v,left:v<=o.distance&&z!==0};if(r("scroll",{scrollTop:u,scrollLeft:v}),R!==u&&(c=u>R?"bottom":"top"),z!==v&&(c=v>z?"right":"left"),o.distance>0){if(h(c))return;S(X)}X[c]&&r("end-reached",c)}};function E(I,R){$t(I)?p.value.scrollTo(I):Se(I)&&Se(R)&&p.value.scrollTo(I,R)}const A=I=>{Se(I)&&(p.value.scrollTop=I)},P=I=>{Se(I)&&(p.value.scrollLeft=I)},B=()=>{var I;(I=w.value)==null||I.update(),d[c]=!1};return U(()=>o.noresize,I=>{I?(s?.(),i?.(),l?.()):({stop:s}=jn(g,B),{stop:i}=jn(p,B),l=Ce("resize",B))},{immediate:!0}),U(()=>[o.maxHeight,o.height],()=>{o.native||Qe(()=>{var I;B(),p.value&&((I=w.value)==null||I.handleScroll(p.value))})}),ue(fo,Yr({scrollbarElement:m,wrapElement:p})),Hs(()=>{p.value&&(p.value.scrollTop=u,p.value.scrollLeft=v)}),ce(()=>{o.native||Qe(()=>{B()})}),zs(()=>B()),t({wrapRef:p,update:B,scrollTo:E,setScrollTop:A,setScrollLeft:P,handleScroll:f}),(I,R)=>(x(),D("div",{ref_key:"scrollbarRef",ref:m,class:J(_(a).b())},[F("div",{ref_key:"wrapRef",ref:p,class:J(y.value),style:Rt(b.value),tabindex:I.tabindex,onScroll:f},[(x(),Z(At(I.tag),{id:I.id,ref_key:"resizeRef",ref:g,class:J(T.value),style:Rt(I.viewStyle),role:I.role,"aria-label":I.ariaLabel,"aria-orientation":I.ariaOrientation},{default:$(()=>[G(I.$slots,"default")]),_:3},8,["id","class","style","role","aria-label","aria-orientation"]))],46,pf),I.native?Ae("v-if",!0):(x(),Z(cf,{key:0,ref_key:"barRef",ref:w,always:I.always,"min-size":I.minSize},null,8,["always","min-size"]))],2))}});var gf=Q(mf,[["__file","/home/runner/work/element-plus/element-plus/packages/components/scrollbar/src/scrollbar.vue"]]);const hf=Ue(gf),po=Symbol("popper"),za=Symbol("popperContent"),ja=["dialog","grid","group","listbox","menu","navigation","tooltip","tree"],Va=te({role:{type:String,values:ja,default:"tooltip"}}),bf=L({name:"ElPopper",inheritAttrs:!1,__name:"popper",props:Va,setup(e,{expose:t}){const n=e,o=O(),r=O(),a=O(),s=O(),i=C(()=>n.role),l={triggerRef:o,popperInstanceRef:r,contentRef:a,referenceRef:s,role:i};return t(l),ue(po,l),(u,v)=>G(u.$slots,"default")}});var yf=Q(bf,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/popper.vue"]]);const wf=L({name:"ElPopperArrow",inheritAttrs:!1,__name:"arrow",setup(e,{expose:t}){const n=se("popper"),{arrowRef:o,arrowStyle:r}=j(za,void 0);return me(()=>{o.value=void 0}),t({arrowRef:o}),(a,s)=>(x(),D("span",{ref_key:"arrowRef",ref:o,class:J(_(n).e("arrow")),style:Rt(_(r)),"data-popper-arrow":""},null,6))}});var _f=Q(wf,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/arrow.vue"]]);const Ua=te({virtualRef:{type:N(Object)},virtualTriggering:Boolean,onMouseenter:{type:N(Function)},onMouseleave:{type:N(Function)},onClick:{type:N(Function)},onKeydown:{type:N(Function)},onFocus:{type:N(Function)},onBlur:{type:N(Function)},onContextmenu:{type:N(Function)},id:String,open:Boolean}),Ka=Symbol("elForwardRef"),Ef=e=>{ue(Ka,{setForwardRef:n=>{e.value=n}})},Sf=e=>({mounted(t){e(t)},updated(t){e(t)},unmounted(){e(null)}}),Cf="ElOnlyChild",Wa=L({name:Cf,setup(e,{slots:t,attrs:n}){var o;const r=j(Ka),a=Sf((o=r?.setForwardRef)!=null?o:nn);return()=>{var s;const i=(s=t.default)==null?void 0:s.call(t,n);if(!i)return null;const[l,u]=Ga(i);return l?Zn(js(l,n),[[a]]):null}}});function Ga(e){if(!e)return[null,0];const t=e,n=t.filter(o=>o.type!==$o).length;for(const o of t){if($t(o))switch(o.type){case $o:continue;case Zr:case"svg":return[yr(o),n];case vn:return Ga(o.children);default:return[o,n]}return[yr(o),n]}return[null,0]}function yr(e){const t=se("only-child");return H("span",{class:t.e("content")},[e])}const Tf=L({name:"ElPopperTrigger",inheritAttrs:!1,__name:"trigger",props:Ua,setup(e,{expose:t}){const n=e,{role:o,triggerRef:r}=j(po,void 0);Ef(r);const a=C(()=>i.value?n.id:void 0),s=C(()=>{if(o&&o.value==="tooltip")return n.open&&n.id?n.id:void 0}),i=C(()=>{if(o&&o.value!=="tooltip")return o.value}),l=C(()=>i.value?`${n.open}`:void 0);let u;const v=["onMouseenter","onMouseleave","onClick","onKeydown","onFocus","onBlur","onContextmenu"];return ce(()=>{U(()=>n.virtualRef,c=>{c&&(r.value=de(c))},{immediate:!0}),U(r,(c,d)=>{u?.(),u=void 0,ct(d)&&v.forEach(m=>{const p=n[m];p&&d.removeEventListener(m.slice(2).toLowerCase(),p,["onFocus","onBlur"].includes(m))}),ct(c)&&(v.forEach(m=>{const p=n[m];p&&c.addEventListener(m.slice(2).toLowerCase(),p,["onFocus","onBlur"].includes(m))}),dn(c)&&(u=U([a,s,i,l],m=>{["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach((p,g)=>{bn(m[g])?c.removeAttribute(p):c.setAttribute(p,m[g])})},{immediate:!0}))),ct(d)&&dn(d)&&["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach(m=>d.removeAttribute(m))},{immediate:!0})}),me(()=>{if(u?.(),u=void 0,r.value&&ct(r.value)){const c=r.value;v.forEach(d=>{const m=n[d];m&&c.removeEventListener(d.slice(2).toLowerCase(),m,["onFocus","onBlur"].includes(d))}),r.value=void 0}}),t({triggerRef:r}),(c,d)=>c.virtualTriggering?Ae("v-if",!0):(x(),Z(_(Wa),Fe({key:0},c.$attrs,{"aria-controls":a.value,"aria-describedby":s.value,"aria-expanded":l.value,"aria-haspopup":i.value}),{default:$(()=>[G(c.$slots,"default")]),_:3},16,["aria-controls","aria-describedby","aria-expanded","aria-haspopup"]))}});var Af=Q(Tf,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/trigger.vue"]]);const Pn="focus-trap.focus-after-trapped",Rn="focus-trap.focus-after-released",Of="focus-trap.focusout-prevented",wr={cancelable:!0,bubbles:!1},xf={cancelable:!0,bubbles:!1},_r="focusAfterTrapped",Er="focusAfterReleased",If=Symbol("elFocusTrap"),vo=O(),_n=O(0),mo=O(0);let Gt=0;const qa=e=>{const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:o=>{const r=o.tagName==="INPUT"&&o.type==="hidden";return o.disabled||o.hidden||r?NodeFilter.FILTER_SKIP:o.tabIndex>=0||o===document.activeElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t},Sr=(e,t)=>{for(const n of e)if(!Pf(n,t))return n},Pf=(e,t)=>{if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1},Rf=e=>{const t=qa(e),n=Sr(t,e),o=Sr(t.reverse(),e);return[n,o]},Ff=e=>e instanceof HTMLInputElement&&"select"in e,He=(e,t)=>{if(e){const n=document.activeElement;co(e,{preventScroll:!0}),mo.value=window.performance.now(),e!==n&&Ff(e)&&t&&e.select()}};function Cr(e,t){const n=[...e],o=e.indexOf(t);return o!==-1&&n.splice(o,1),n}const kf=()=>{let e=[];return{push:o=>{const r=e[0];r&&o!==r&&r.pause(),e=Cr(e,o),e.unshift(o)},remove:o=>{var r,a;e=Cr(e,o),(a=(r=e[0])==null?void 0:r.resume)==null||a.call(r)}}},Lf=(e,t=!1)=>{const n=document.activeElement;for(const o of e)if(He(o,t),document.activeElement!==n)return},Tr=kf(),Mf=()=>_n.value>mo.value,qt=()=>{vo.value="pointer",_n.value=window.performance.now()},Ar=()=>{vo.value="keyboard",_n.value=window.performance.now()},Df=()=>(ce(()=>{Gt===0&&(document.addEventListener("mousedown",qt),document.addEventListener("touchstart",qt),document.addEventListener("keydown",Ar)),Gt++}),me(()=>{Gt--,Gt<=0&&(document.removeEventListener("mousedown",qt),document.removeEventListener("touchstart",qt),document.removeEventListener("keydown",Ar))}),{focusReason:vo,lastUserFocusTimestamp:_n,lastAutomatedFocusTimestamp:mo}),Jt=e=>new CustomEvent(Of,{...xf,detail:e}),re={tab:"Tab",enter:"Enter",space:"Space",left:"ArrowLeft",up:"ArrowUp",right:"ArrowRight",down:"ArrowDown",esc:"Escape",delete:"Delete",backspace:"Backspace",numpadEnter:"NumpadEnter",pageUp:"PageUp",pageDown:"PageDown",home:"Home",end:"End"},ne=(e,t,{checkForDefaultPrevented:n=!0}={})=>r=>{const a=e?.(r);if(n===!1||!a)return t?.(r)},Or=e=>t=>t.pointerType==="mouse"?e(t):void 0,ot=e=>{if(e.code&&e.code!=="Unidentified")return e.code;const t=Bf(e);return t?Object.values(re).includes(t)?t:t===" "?re.space:"":""},Bf=e=>{let t=e.key&&e.key!=="Unidentified"?e.key:"";if(!t&&e.type==="keyup"&&Yd()){const n=e.target;t=n.value.charAt(n.selectionStart-1)}return t};let ut=[];const xr=e=>{ot(e)===re.esc&&ut.forEach(n=>n(e))},$f=e=>{ce(()=>{ut.length===0&&document.addEventListener("keydown",xr),ae&&ut.push(e)}),me(()=>{ut=ut.filter(t=>t!==e),ut.length===0&&ae&&document.removeEventListener("keydown",xr)})},Nf=L({name:"ElFocusTrap",inheritAttrs:!1,props:{loop:Boolean,trapped:Boolean,focusTrapEl:Object,focusStartEl:{type:[Object,String],default:"first"}},emits:[_r,Er,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{emit:t}){const n=O();let o,r;const{focusReason:a}=Df();$f(p=>{e.trapped&&!s.paused&&t("release-requested",p)});const s={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},i=p=>{if(!e.loop&&!e.trapped||s.paused)return;const{altKey:g,ctrlKey:w,metaKey:b,currentTarget:y,shiftKey:T}=p,{loop:h}=e,S=ot(p)===re.tab&&!g&&!w&&!b,f=document.activeElement;if(S&&f){const E=y,[A,P]=Rf(E);if(A&&P){if(!T&&f===P){const I=Jt({focusReason:a.value});t("focusout-prevented",I),I.defaultPrevented||(p.preventDefault(),h&&He(A,!0))}else if(T&&[A,E].includes(f)){const I=Jt({focusReason:a.value});t("focusout-prevented",I),I.defaultPrevented||(p.preventDefault(),h&&He(P,!0))}}else if(f===E){const I=Jt({focusReason:a.value});t("focusout-prevented",I),I.defaultPrevented||p.preventDefault()}}};ue(If,{focusTrapRef:n,onKeydown:i}),U(()=>e.focusTrapEl,p=>{p&&(n.value=p)},{immediate:!0}),U([n],([p],[g])=>{p&&(p.addEventListener("keydown",i),p.addEventListener("focusin",v),p.addEventListener("focusout",c)),g&&(g.removeEventListener("keydown",i),g.removeEventListener("focusin",v),g.removeEventListener("focusout",c))});const l=p=>{t(_r,p)},u=p=>t(Er,p),v=p=>{const g=_(n);if(!g)return;const w=p.target,b=p.relatedTarget,y=w&&g.contains(w);e.trapped||b&&g.contains(b)||(o=b),y&&t("focusin",p),!s.paused&&e.trapped&&(y?r=w:He(r,!0))},c=p=>{const g=_(n);if(!(s.paused||!g))if(e.trapped){const w=p.relatedTarget;!bn(w)&&!g.contains(w)&&setTimeout(()=>{if(!s.paused&&e.trapped){const b=Jt({focusReason:a.value});t("focusout-prevented",b),b.defaultPrevented||He(r,!0)}},0)}else{const w=p.target;w&&g.contains(w)||t("focusout",p)}};async function d(){await Qe();const p=_(n);if(p){Tr.push(s);const g=p.contains(document.activeElement)?o:document.activeElement;if(o=g,!p.contains(g)){const b=new Event(Pn,wr);p.addEventListener(Pn,l),p.dispatchEvent(b),b.defaultPrevented||Qe(()=>{let y=e.focusStartEl;Yn(y)||(He(y),document.activeElement!==y&&(y="first")),y==="first"&&Lf(qa(p),!0),(document.activeElement===g||y==="container")&&He(p)})}}}function m(){const p=_(n);if(p){p.removeEventListener(Pn,l);const g=new CustomEvent(Rn,{...wr,detail:{focusReason:a.value}});p.addEventListener(Rn,u),p.dispatchEvent(g),!g.defaultPrevented&&(a.value=="keyboard"||!Mf()||p.contains(document.activeElement))&&He(o??document.body),p.removeEventListener(Rn,u),Tr.remove(s),o=null,r=null}}return ce(()=>{e.trapped&&d(),U(()=>e.trapped,p=>{p?d():m()})}),me(()=>{e.trapped&&m(),n.value&&(n.value.removeEventListener("keydown",i),n.value.removeEventListener("focusin",v),n.value.removeEventListener("focusout",c),n.value=void 0),o=null,r=null}),{onKeydown:i}}});function Hf(e,t,n,o,r,a){return G(e.$slots,"default",{handleKeydown:e.onKeydown})}var zf=Q(Nf,[["render",Hf],["__file","/home/runner/work/element-plus/element-plus/packages/components/focus-trap/src/focus-trap.vue"]]),fe="top",ye="bottom",we="right",pe="left",go="auto",zt=[fe,ye,we,pe],vt="start",Mt="end",jf="clippingParents",Ja="viewport",Tt="popper",Vf="reference",Ir=zt.reduce(function(e,t){return e.concat([t+"-"+vt,t+"-"+Mt])},[]),ho=[].concat(zt,[go]).reduce(function(e,t){return e.concat([t,t+"-"+vt,t+"-"+Mt])},[]),Uf="beforeRead",Kf="read",Wf="afterRead",Gf="beforeMain",qf="main",Jf="afterMain",Yf="beforeWrite",Zf="write",Xf="afterWrite",Qf=[Uf,Kf,Wf,Gf,qf,Jf,Yf,Zf,Xf];function Ie(e){return e?(e.nodeName||"").toLowerCase():null}function Ee(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function mt(e){var t=Ee(e).Element;return e instanceof t||e instanceof Element}function be(e){var t=Ee(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function bo(e){if(typeof ShadowRoot>"u")return!1;var t=Ee(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function ep(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var o=t.styles[n]||{},r=t.attributes[n]||{},a=t.elements[n];!be(a)||!Ie(a)||(Object.assign(a.style,o),Object.keys(r).forEach(function(s){var i=r[s];i===!1?a.removeAttribute(s):a.setAttribute(s,i===!0?"":i)}))})}function tp(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(o){var r=t.elements[o],a=t.attributes[o]||{},s=Object.keys(t.styles.hasOwnProperty(o)?t.styles[o]:n[o]),i=s.reduce(function(l,u){return l[u]="",l},{});!be(r)||!Ie(r)||(Object.assign(r.style,i),Object.keys(a).forEach(function(l){r.removeAttribute(l)}))})}}var Ya={name:"applyStyles",enabled:!0,phase:"write",fn:ep,effect:tp,requires:["computeStyles"]};function Te(e){return e.split("-")[0]}var Xe=Math.max,fn=Math.min,gt=Math.round;function ht(e,t){t===void 0&&(t=!1);var n=e.getBoundingClientRect(),o=1,r=1;if(be(e)&&t){var a=e.offsetHeight,s=e.offsetWidth;s>0&&(o=gt(n.width)/s||1),a>0&&(r=gt(n.height)/a||1)}return{width:n.width/o,height:n.height/r,top:n.top/r,right:n.right/o,bottom:n.bottom/r,left:n.left/o,x:n.left/o,y:n.top/r}}function yo(e){var t=ht(e),n=e.offsetWidth,o=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-o)<=1&&(o=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:o}}function Za(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&bo(n)){var o=t;do{if(o&&e.isSameNode(o))return!0;o=o.parentNode||o.host}while(o)}return!1}function ke(e){return Ee(e).getComputedStyle(e)}function np(e){return["table","td","th"].indexOf(Ie(e))>=0}function Ke(e){return((mt(e)?e.ownerDocument:e.document)||window.document).documentElement}function En(e){return Ie(e)==="html"?e:e.assignedSlot||e.parentNode||(bo(e)?e.host:null)||Ke(e)}function Pr(e){return!be(e)||ke(e).position==="fixed"?null:e.offsetParent}function op(e){var t=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,n=navigator.userAgent.indexOf("Trident")!==-1;if(n&&be(e)){var o=ke(e);if(o.position==="fixed")return null}var r=En(e);for(bo(r)&&(r=r.host);be(r)&&["html","body"].indexOf(Ie(r))<0;){var a=ke(r);if(a.transform!=="none"||a.perspective!=="none"||a.contain==="paint"||["transform","perspective"].indexOf(a.willChange)!==-1||t&&a.willChange==="filter"||t&&a.filter&&a.filter!=="none")return r;r=r.parentNode}return null}function jt(e){for(var t=Ee(e),n=Pr(e);n&&np(n)&&ke(n).position==="static";)n=Pr(n);return n&&(Ie(n)==="html"||Ie(n)==="body"&&ke(n).position==="static")?t:n||op(e)||t}function wo(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function xt(e,t,n){return Xe(e,fn(t,n))}function rp(e,t,n){var o=xt(e,t,n);return o>n?n:o}function Xa(){return{top:0,right:0,bottom:0,left:0}}function Qa(e){return Object.assign({},Xa(),e)}function es(e,t){return t.reduce(function(n,o){return n[o]=e,n},{})}var ap=function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,Qa(typeof e!="number"?e:es(e,zt))};function sp(e){var t,n=e.state,o=e.name,r=e.options,a=n.elements.arrow,s=n.modifiersData.popperOffsets,i=Te(n.placement),l=wo(i),u=[pe,we].indexOf(i)>=0,v=u?"height":"width";if(!(!a||!s)){var c=ap(r.padding,n),d=yo(a),m=l==="y"?fe:pe,p=l==="y"?ye:we,g=n.rects.reference[v]+n.rects.reference[l]-s[l]-n.rects.popper[v],w=s[l]-n.rects.reference[l],b=jt(a),y=b?l==="y"?b.clientHeight||0:b.clientWidth||0:0,T=g/2-w/2,h=c[m],k=y-d[v]-c[p],S=y/2-d[v]/2+T,f=xt(h,S,k),E=l;n.modifiersData[o]=(t={},t[E]=f,t.centerOffset=f-S,t)}}function ip(e){var t=e.state,n=e.options,o=n.element,r=o===void 0?"[data-popper-arrow]":o;r!=null&&(typeof r=="string"&&(r=t.elements.popper.querySelector(r),!r)||!Za(t.elements.popper,r)||(t.elements.arrow=r))}var lp={name:"arrow",enabled:!0,phase:"main",fn:sp,effect:ip,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function bt(e){return e.split("-")[1]}var up={top:"auto",right:"auto",bottom:"auto",left:"auto"};function cp(e){var t=e.x,n=e.y,o=window,r=o.devicePixelRatio||1;return{x:gt(t*r)/r||0,y:gt(n*r)/r||0}}function Rr(e){var t,n=e.popper,o=e.popperRect,r=e.placement,a=e.variation,s=e.offsets,i=e.position,l=e.gpuAcceleration,u=e.adaptive,v=e.roundOffsets,c=e.isFixed,d=s.x,m=d===void 0?0:d,p=s.y,g=p===void 0?0:p,w=typeof v=="function"?v({x:m,y:g}):{x:m,y:g};m=w.x,g=w.y;var b=s.hasOwnProperty("x"),y=s.hasOwnProperty("y"),T=pe,h=fe,k=window;if(u){var S=jt(n),f="clientHeight",E="clientWidth";if(S===Ee(n)&&(S=Ke(n),ke(S).position!=="static"&&i==="absolute"&&(f="scrollHeight",E="scrollWidth")),S=S,r===fe||(r===pe||r===we)&&a===Mt){h=ye;var A=c&&S===k&&k.visualViewport?k.visualViewport.height:S[f];g-=A-o.height,g*=l?1:-1}if(r===pe||(r===fe||r===ye)&&a===Mt){T=we;var P=c&&S===k&&k.visualViewport?k.visualViewport.width:S[E];m-=P-o.width,m*=l?1:-1}}var B=Object.assign({position:i},u&&up),I=v===!0?cp({x:m,y:g}):{x:m,y:g};if(m=I.x,g=I.y,l){var R;return Object.assign({},B,(R={},R[h]=y?"0":"",R[T]=b?"0":"",R.transform=(k.devicePixelRatio||1)<=1?"translate("+m+"px, "+g+"px)":"translate3d("+m+"px, "+g+"px, 0)",R))}return Object.assign({},B,(t={},t[h]=y?g+"px":"",t[T]=b?m+"px":"",t.transform="",t))}function dp(e){var t=e.state,n=e.options,o=n.gpuAcceleration,r=o===void 0?!0:o,a=n.adaptive,s=a===void 0?!0:a,i=n.roundOffsets,l=i===void 0?!0:i,u={placement:Te(t.placement),variation:bt(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:r,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Rr(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Rr(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var ts={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:dp,data:{}},Yt={passive:!0};function fp(e){var t=e.state,n=e.instance,o=e.options,r=o.scroll,a=r===void 0?!0:r,s=o.resize,i=s===void 0?!0:s,l=Ee(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&u.forEach(function(v){v.addEventListener("scroll",n.update,Yt)}),i&&l.addEventListener("resize",n.update,Yt),function(){a&&u.forEach(function(v){v.removeEventListener("scroll",n.update,Yt)}),i&&l.removeEventListener("resize",n.update,Yt)}}var ns={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:fp,data:{}},pp={left:"right",right:"left",bottom:"top",top:"bottom"};function tn(e){return e.replace(/left|right|bottom|top/g,function(t){return pp[t]})}var vp={start:"end",end:"start"};function Fr(e){return e.replace(/start|end/g,function(t){return vp[t]})}function _o(e){var t=Ee(e),n=t.pageXOffset,o=t.pageYOffset;return{scrollLeft:n,scrollTop:o}}function Eo(e){return ht(Ke(e)).left+_o(e).scrollLeft}function mp(e){var t=Ee(e),n=Ke(e),o=t.visualViewport,r=n.clientWidth,a=n.clientHeight,s=0,i=0;return o&&(r=o.width,a=o.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(s=o.offsetLeft,i=o.offsetTop)),{width:r,height:a,x:s+Eo(e),y:i}}function gp(e){var t,n=Ke(e),o=_o(e),r=(t=e.ownerDocument)==null?void 0:t.body,a=Xe(n.scrollWidth,n.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),s=Xe(n.scrollHeight,n.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),i=-o.scrollLeft+Eo(e),l=-o.scrollTop;return ke(r||n).direction==="rtl"&&(i+=Xe(n.clientWidth,r?r.clientWidth:0)-a),{width:a,height:s,x:i,y:l}}function So(e){var t=ke(e),n=t.overflow,o=t.overflowX,r=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+r+o)}function os(e){return["html","body","#document"].indexOf(Ie(e))>=0?e.ownerDocument.body:be(e)&&So(e)?e:os(En(e))}function It(e,t){var n;t===void 0&&(t=[]);var o=os(e),r=o===((n=e.ownerDocument)==null?void 0:n.body),a=Ee(o),s=r?[a].concat(a.visualViewport||[],So(o)?o:[]):o,i=t.concat(s);return r?i:i.concat(It(En(s)))}function Kn(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function hp(e){var t=ht(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}function kr(e,t){return t===Ja?Kn(mp(e)):mt(t)?hp(t):Kn(gp(Ke(e)))}function bp(e){var t=It(En(e)),n=["absolute","fixed"].indexOf(ke(e).position)>=0,o=n&&be(e)?jt(e):e;return mt(o)?t.filter(function(r){return mt(r)&&Za(r,o)&&Ie(r)!=="body"}):[]}function yp(e,t,n){var o=t==="clippingParents"?bp(e):[].concat(t),r=[].concat(o,[n]),a=r[0],s=r.reduce(function(i,l){var u=kr(e,l);return i.top=Xe(u.top,i.top),i.right=fn(u.right,i.right),i.bottom=fn(u.bottom,i.bottom),i.left=Xe(u.left,i.left),i},kr(e,a));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function rs(e){var t=e.reference,n=e.element,o=e.placement,r=o?Te(o):null,a=o?bt(o):null,s=t.x+t.width/2-n.width/2,i=t.y+t.height/2-n.height/2,l;switch(r){case fe:l={x:s,y:t.y-n.height};break;case ye:l={x:s,y:t.y+t.height};break;case we:l={x:t.x+t.width,y:i};break;case pe:l={x:t.x-n.width,y:i};break;default:l={x:t.x,y:t.y}}var u=r?wo(r):null;if(u!=null){var v=u==="y"?"height":"width";switch(a){case vt:l[u]=l[u]-(t[v]/2-n[v]/2);break;case Mt:l[u]=l[u]+(t[v]/2-n[v]/2);break}}return l}function Dt(e,t){t===void 0&&(t={});var n=t,o=n.placement,r=o===void 0?e.placement:o,a=n.boundary,s=a===void 0?jf:a,i=n.rootBoundary,l=i===void 0?Ja:i,u=n.elementContext,v=u===void 0?Tt:u,c=n.altBoundary,d=c===void 0?!1:c,m=n.padding,p=m===void 0?0:m,g=Qa(typeof p!="number"?p:es(p,zt)),w=v===Tt?Vf:Tt,b=e.rects.popper,y=e.elements[d?w:v],T=yp(mt(y)?y:y.contextElement||Ke(e.elements.popper),s,l),h=ht(e.elements.reference),k=rs({reference:h,element:b,placement:r}),S=Kn(Object.assign({},b,k)),f=v===Tt?S:h,E={top:T.top-f.top+g.top,bottom:f.bottom-T.bottom+g.bottom,left:T.left-f.left+g.left,right:f.right-T.right+g.right},A=e.modifiersData.offset;if(v===Tt&&A){var P=A[r];Object.keys(E).forEach(function(B){var I=[we,ye].indexOf(B)>=0?1:-1,R=[fe,ye].indexOf(B)>=0?"y":"x";E[B]+=P[R]*I})}return E}function wp(e,t){t===void 0&&(t={});var n=t,o=n.placement,r=n.boundary,a=n.rootBoundary,s=n.padding,i=n.flipVariations,l=n.allowedAutoPlacements,u=l===void 0?ho:l,v=bt(o),c=v?i?Ir:Ir.filter(function(p){return bt(p)===v}):zt,d=c.filter(function(p){return u.indexOf(p)>=0});d.length===0&&(d=c);var m=d.reduce(function(p,g){return p[g]=Dt(e,{placement:g,boundary:r,rootBoundary:a,padding:s})[Te(g)],p},{});return Object.keys(m).sort(function(p,g){return m[p]-m[g]})}function _p(e){if(Te(e)===go)return[];var t=tn(e);return[Fr(e),t,Fr(t)]}function Ep(e){var t=e.state,n=e.options,o=e.name;if(!t.modifiersData[o]._skip){for(var r=n.mainAxis,a=r===void 0?!0:r,s=n.altAxis,i=s===void 0?!0:s,l=n.fallbackPlacements,u=n.padding,v=n.boundary,c=n.rootBoundary,d=n.altBoundary,m=n.flipVariations,p=m===void 0?!0:m,g=n.allowedAutoPlacements,w=t.options.placement,b=Te(w),y=b===w,T=l||(y||!p?[tn(w)]:_p(w)),h=[w].concat(T).reduce(function(We,Pe){return We.concat(Te(Pe)===go?wp(t,{placement:Pe,boundary:v,rootBoundary:c,padding:u,flipVariations:p,allowedAutoPlacements:g}):Pe)},[]),k=t.rects.reference,S=t.rects.popper,f=new Map,E=!0,A=h[0],P=0;P<h.length;P++){var B=h[P],I=Te(B),R=bt(B)===vt,z=[fe,ye].indexOf(I)>=0,X=z?"width":"height",W=Dt(t,{placement:B,boundary:v,rootBoundary:c,altBoundary:d,padding:u}),K=z?R?we:pe:R?ye:fe;k[X]>S[X]&&(K=tn(K));var M=tn(K),q=[];if(a&&q.push(W[I]<=0),i&&q.push(W[K]<=0,W[M]<=0),q.every(function(We){return We})){A=B,E=!1;break}f.set(B,q)}if(E)for(var he=p?3:1,_t=function(We){var Pe=h.find(function(Ut){var St=f.get(Ut);if(St)return St.slice(0,We).every(function(rt){return rt})});if(Pe)return A=Pe,"break"},Et=he;Et>0;Et--){var Vt=_t(Et);if(Vt==="break")break}t.placement!==A&&(t.modifiersData[o]._skip=!0,t.placement=A,t.reset=!0)}}var Sp={name:"flip",enabled:!0,phase:"main",fn:Ep,requiresIfExists:["offset"],data:{_skip:!1}};function Lr(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Mr(e){return[fe,we,ye,pe].some(function(t){return e[t]>=0})}function Cp(e){var t=e.state,n=e.name,o=t.rects.reference,r=t.rects.popper,a=t.modifiersData.preventOverflow,s=Dt(t,{elementContext:"reference"}),i=Dt(t,{altBoundary:!0}),l=Lr(s,o),u=Lr(i,r,a),v=Mr(l),c=Mr(u);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:v,hasPopperEscaped:c},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":v,"data-popper-escaped":c})}var Tp={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Cp};function Ap(e,t,n){var o=Te(e),r=[pe,fe].indexOf(o)>=0?-1:1,a=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,s=a[0],i=a[1];return s=s||0,i=(i||0)*r,[pe,we].indexOf(o)>=0?{x:i,y:s}:{x:s,y:i}}function Op(e){var t=e.state,n=e.options,o=e.name,r=n.offset,a=r===void 0?[0,0]:r,s=ho.reduce(function(v,c){return v[c]=Ap(c,t.rects,a),v},{}),i=s[t.placement],l=i.x,u=i.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=u),t.modifiersData[o]=s}var xp={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Op};function Ip(e){var t=e.state,n=e.name;t.modifiersData[n]=rs({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}var as={name:"popperOffsets",enabled:!0,phase:"read",fn:Ip,data:{}};function Pp(e){return e==="x"?"y":"x"}function Rp(e){var t=e.state,n=e.options,o=e.name,r=n.mainAxis,a=r===void 0?!0:r,s=n.altAxis,i=s===void 0?!1:s,l=n.boundary,u=n.rootBoundary,v=n.altBoundary,c=n.padding,d=n.tether,m=d===void 0?!0:d,p=n.tetherOffset,g=p===void 0?0:p,w=Dt(t,{boundary:l,rootBoundary:u,padding:c,altBoundary:v}),b=Te(t.placement),y=bt(t.placement),T=!y,h=wo(b),k=Pp(h),S=t.modifiersData.popperOffsets,f=t.rects.reference,E=t.rects.popper,A=typeof g=="function"?g(Object.assign({},t.rects,{placement:t.placement})):g,P=typeof A=="number"?{mainAxis:A,altAxis:A}:Object.assign({mainAxis:0,altAxis:0},A),B=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,I={x:0,y:0};if(S){if(a){var R,z=h==="y"?fe:pe,X=h==="y"?ye:we,W=h==="y"?"height":"width",K=S[h],M=K+w[z],q=K-w[X],he=m?-E[W]/2:0,_t=y===vt?f[W]:E[W],Et=y===vt?-E[W]:-f[W],Vt=t.elements.arrow,We=m&&Vt?yo(Vt):{width:0,height:0},Pe=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Xa(),Ut=Pe[z],St=Pe[X],rt=xt(0,f[W],We[W]),Ts=T?f[W]/2-he-rt-Ut-P.mainAxis:_t-rt-Ut-P.mainAxis,As=T?-f[W]/2+he+rt+St+P.mainAxis:Et+rt+St+P.mainAxis,Tn=t.elements.arrow&&jt(t.elements.arrow),Os=Tn?h==="y"?Tn.clientTop||0:Tn.clientLeft||0:0,xo=(R=B?.[h])!=null?R:0,xs=K+Ts-xo-Os,Is=K+As-xo,Io=xt(m?fn(M,xs):M,K,m?Xe(q,Is):q);S[h]=Io,I[h]=Io-K}if(i){var Po,Ps=h==="x"?fe:pe,Rs=h==="x"?ye:we,Ge=S[k],Kt=k==="y"?"height":"width",Ro=Ge+w[Ps],Fo=Ge-w[Rs],An=[fe,pe].indexOf(b)!==-1,ko=(Po=B?.[k])!=null?Po:0,Lo=An?Ro:Ge-f[Kt]-E[Kt]-ko+P.altAxis,Mo=An?Ge+f[Kt]+E[Kt]-ko-P.altAxis:Fo,Do=m&&An?rp(Lo,Ge,Mo):xt(m?Lo:Ro,Ge,m?Mo:Fo);S[k]=Do,I[k]=Do-Ge}t.modifiersData[o]=I}}var Fp={name:"preventOverflow",enabled:!0,phase:"main",fn:Rp,requiresIfExists:["offset"]};function kp(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Lp(e){return e===Ee(e)||!be(e)?_o(e):kp(e)}function Mp(e){var t=e.getBoundingClientRect(),n=gt(t.width)/e.offsetWidth||1,o=gt(t.height)/e.offsetHeight||1;return n!==1||o!==1}function Dp(e,t,n){n===void 0&&(n=!1);var o=be(t),r=be(t)&&Mp(t),a=Ke(t),s=ht(e,r),i={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(o||!o&&!n)&&((Ie(t)!=="body"||So(a))&&(i=Lp(t)),be(t)?(l=ht(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):a&&(l.x=Eo(a))),{x:s.left+i.scrollLeft-l.x,y:s.top+i.scrollTop-l.y,width:s.width,height:s.height}}function Bp(e){var t=new Map,n=new Set,o=[];e.forEach(function(a){t.set(a.name,a)});function r(a){n.add(a.name);var s=[].concat(a.requires||[],a.requiresIfExists||[]);s.forEach(function(i){if(!n.has(i)){var l=t.get(i);l&&r(l)}}),o.push(a)}return e.forEach(function(a){n.has(a.name)||r(a)}),o}function $p(e){var t=Bp(e);return Qf.reduce(function(n,o){return n.concat(t.filter(function(r){return r.phase===o}))},[])}function Np(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function Hp(e){var t=e.reduce(function(n,o){var r=n[o.name];return n[o.name]=r?Object.assign({},r,o,{options:Object.assign({},r.options,o.options),data:Object.assign({},r.data,o.data)}):o,n},{});return Object.keys(t).map(function(n){return t[n]})}var Dr={placement:"bottom",modifiers:[],strategy:"absolute"};function Br(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(o){return!(o&&typeof o.getBoundingClientRect=="function")})}function Co(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,o=n===void 0?[]:n,r=t.defaultOptions,a=r===void 0?Dr:r;return function(s,i,l){l===void 0&&(l=a);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},Dr,a),modifiersData:{},elements:{reference:s,popper:i},attributes:{},styles:{}},v=[],c=!1,d={state:u,setOptions:function(g){var w=typeof g=="function"?g(u.options):g;p(),u.options=Object.assign({},a,u.options,w),u.scrollParents={reference:mt(s)?It(s):s.contextElement?It(s.contextElement):[],popper:It(i)};var b=$p(Hp([].concat(o,u.options.modifiers)));return u.orderedModifiers=b.filter(function(y){return y.enabled}),m(),d.update()},forceUpdate:function(){if(!c){var g=u.elements,w=g.reference,b=g.popper;if(Br(w,b)){u.rects={reference:Dp(w,jt(b),u.options.strategy==="fixed"),popper:yo(b)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function(E){return u.modifiersData[E.name]=Object.assign({},E.data)});for(var y=0;y<u.orderedModifiers.length;y++){if(u.reset===!0){u.reset=!1,y=-1;continue}var T=u.orderedModifiers[y],h=T.fn,k=T.options,S=k===void 0?{}:k,f=T.name;typeof h=="function"&&(u=h({state:u,options:S,name:f,instance:d})||u)}}}},update:Np(function(){return new Promise(function(g){d.forceUpdate(),g(u)})}),destroy:function(){p(),c=!0}};if(!Br(s,i))return d;d.setOptions(l).then(function(g){!c&&l.onFirstUpdate&&l.onFirstUpdate(g)});function m(){u.orderedModifiers.forEach(function(g){var w=g.name,b=g.options,y=b===void 0?{}:b,T=g.effect;if(typeof T=="function"){var h=T({state:u,name:w,instance:d,options:y}),k=function(){};v.push(h||k)}})}function p(){v.forEach(function(g){return g()}),v=[]}return d}}Co();var zp=[ns,as,ts,Ya];Co({defaultModifiers:zp});var jp=[ns,as,ts,Ya,xp,Sp,Fp,lp,Tp],Vp=Co({defaultModifiers:jp});const ss=te({arrowOffset:{type:Number,default:5}}),Up=["fixed","absolute"],Kp=te({boundariesPadding:{type:Number,default:0},fallbackPlacements:{type:N(Array),default:void 0},gpuAcceleration:{type:Boolean,default:!0},offset:{type:Number,default:12},placement:{type:String,values:ho,default:"bottom"},popperOptions:{type:N(Object),default:()=>({})},strategy:{type:String,values:Up,default:"absolute"}}),is=te({...Kp,...ss,id:String,style:{type:N([String,Array,Object])},className:{type:N([String,Array,Object])},effect:{type:N(String),default:"dark"},visible:Boolean,enterable:{type:Boolean,default:!0},pure:Boolean,focusOnShow:Boolean,trapping:Boolean,popperClass:{type:N([String,Array,Object])},popperStyle:{type:N([String,Array,Object])},referenceEl:{type:N(Object)},triggerTargetEl:{type:N(Object)},stopPopperMouseEvent:{type:Boolean,default:!0},virtualTriggering:Boolean,zIndex:Number,...lo(["ariaLabel"]),loop:Boolean}),Wp={mouseenter:e=>e instanceof MouseEvent,mouseleave:e=>e instanceof MouseEvent,focus:()=>!0,blur:()=>!0,close:()=>!0},Gp=(e,t)=>{const n=O(!1),o=O(),r=()=>{t("focus")},a=u=>{var v;((v=u.detail)==null?void 0:v.focusReason)!=="pointer"&&(o.value="first",t("blur"))},s=u=>{e.visible&&!n.value&&(u.target&&(o.value=u.target),n.value=!0)},i=u=>{e.trapping||(u.detail.focusReason==="pointer"&&u.preventDefault(),n.value=!1)},l=()=>{n.value=!1,t("close")};return me(()=>{o.value=void 0}),{focusStartRef:o,trapped:n,onFocusAfterReleased:a,onFocusAfterTrapped:r,onFocusInTrap:s,onFocusoutPrevented:i,onReleaseRequested:l}},qp=(e,t=[])=>{const{placement:n,strategy:o,popperOptions:r}=e,a={placement:n,strategy:o,...r,modifiers:[...Yp(e),...t]};return Zp(a,r?.modifiers),a},Jp=e=>{if(ae)return de(e)};function Yp(e){const{offset:t,gpuAcceleration:n,fallbackPlacements:o}=e;return[{name:"offset",options:{offset:[0,t??12]}},{name:"preventOverflow",options:{padding:{top:0,bottom:0,left:0,right:0}}},{name:"flip",options:{padding:5,fallbackPlacements:o}},{name:"computeStyles",options:{gpuAcceleration:n}}]}function Zp(e,t){t&&(e.modifiers=[...e.modifiers,...t??[]])}const Xp=(e,t,n={})=>{const o={name:"updateState",enabled:!0,phase:"write",fn:({state:l})=>{const u=Qp(l);Object.assign(s.value,u)},requires:["computeStyles"]},r=C(()=>{const{onFirstUpdate:l,placement:u,strategy:v,modifiers:c}=_(n);return{onFirstUpdate:l,placement:u||"bottom",strategy:v||"absolute",modifiers:[...c||[],o,{name:"applyStyles",enabled:!1}]}}),a=Gr(),s=O({styles:{popper:{position:_(r).strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),i=()=>{a.value&&(a.value.destroy(),a.value=void 0)};return U(r,l=>{const u=_(a);u&&u.setOptions(l)},{deep:!0}),U([e,t],([l,u])=>{i(),!(!l||!u)&&(a.value=Vp(l,u,_(r)))}),me(()=>{i()}),{state:C(()=>{var l;return{...((l=_(a))==null?void 0:l.state)||{}}}),styles:C(()=>_(s).styles),attributes:C(()=>_(s).attributes),update:()=>{var l;return(l=_(a))==null?void 0:l.update()},forceUpdate:()=>{var l;return(l=_(a))==null?void 0:l.forceUpdate()},instanceRef:C(()=>_(a))}};function Qp(e){const t=Object.keys(e.elements),n=zn(t.map(r=>[r,e.styles[r]||{}])),o=zn(t.map(r=>[r,e.attributes[r]]));return{styles:n,attributes:o}}const e0=0,t0=e=>{const{popperInstanceRef:t,contentRef:n,triggerRef:o,role:r}=j(po,void 0),a=O(),s=C(()=>e.arrowOffset),i=C(()=>({name:"eventListeners",enabled:!!e.visible})),l=C(()=>{var b;const y=_(a),T=(b=_(s))!=null?b:e0;return{name:"arrow",enabled:!Ec(y),options:{element:y,padding:T}}}),u=C(()=>({onFirstUpdate:()=>{p()},...qp(e,[_(l),_(i)])})),v=C(()=>Jp(e.referenceEl)||_(o)),{attributes:c,state:d,styles:m,update:p,forceUpdate:g,instanceRef:w}=Xp(v,n,u);return U(w,b=>t.value=b,{flush:"sync"}),ce(()=>{U(()=>{var b,y;return(y=(b=_(v))==null?void 0:b.getBoundingClientRect)==null?void 0:y.call(b)},()=>{p()})}),me(()=>{t.value=void 0}),{attributes:c,arrowRef:a,contentRef:n,instanceRef:w,state:d,styles:m,role:r,forceUpdate:g,update:p}},n0=(e,{attributes:t,styles:n,role:o})=>{const{nextZIndex:r}=wa(),a=se("popper"),s=C(()=>_(t).popper),i=O(Se(e.zIndex)?e.zIndex:r()),l=C(()=>[a.b(),a.is("pure",e.pure),a.is(e.effect),e.popperClass]),u=C(()=>[{zIndex:_(i)},_(n).popper,e.popperStyle||{}]),v=C(()=>o.value==="dialog"?"false":void 0),c=C(()=>_(n).arrow||{});return{ariaModal:v,arrowStyle:c,contentAttrs:s,contentClass:l,contentStyle:u,contentZIndex:i,updateZIndex:()=>{i.value=Se(e.zIndex)?e.zIndex:r()}}},o0=L({name:"ElPopperContent",__name:"content",props:is,emits:Wp,setup(e,{expose:t,emit:n}){const o=n,r=e,{focusStartRef:a,trapped:s,onFocusAfterReleased:i,onFocusAfterTrapped:l,onFocusInTrap:u,onFocusoutPrevented:v,onReleaseRequested:c}=Gp(r,o),{attributes:d,arrowRef:m,contentRef:p,styles:g,instanceRef:w,role:b,update:y}=t0(r),{ariaModal:T,arrowStyle:h,contentAttrs:k,contentClass:S,contentStyle:f,updateZIndex:E}=n0(r,{styles:g,attributes:d,role:b}),A=j(cn,void 0);ue(za,{arrowStyle:h,arrowRef:m}),A&&ue(cn,{...A,addInputId:nn,removeInputId:nn});let P;const B=(R=!0)=>{y(),R&&E()},I=()=>{B(!1),r.visible&&r.focusOnShow?s.value=!0:r.visible===!1&&(s.value=!1)};return ce(()=>{U(()=>r.triggerTargetEl,(R,z)=>{P?.(),P=void 0;const X=_(R||p.value),W=_(z||p.value);ct(X)&&(P=U([b,()=>r.ariaLabel,T,()=>r.id],K=>{["role","aria-label","aria-modal","id"].forEach((M,q)=>{bn(K[q])?X.removeAttribute(M):X.setAttribute(M,K[q])})},{immediate:!0})),W!==X&&ct(W)&&["role","aria-label","aria-modal","id"].forEach(K=>{W.removeAttribute(K)})},{immediate:!0}),U(()=>r.visible,I,{immediate:!0})}),me(()=>{P?.(),P=void 0,p.value=void 0}),t({popperContentRef:p,popperInstanceRef:w,updatePopper:B,contentStyle:f}),(R,z)=>(x(),D("div",Fe({ref_key:"contentRef",ref:p},_(k),{style:_(f),class:_(S),tabindex:"-1",onMouseenter:z[0]||(z[0]=X=>R.$emit("mouseenter",X)),onMouseleave:z[1]||(z[1]=X=>R.$emit("mouseleave",X))}),[H(_(zf),{loop:R.loop,trapped:_(s),"trap-on-focus-in":!0,"focus-trap-el":_(p),"focus-start-el":_(a),onFocusAfterTrapped:_(l),onFocusAfterReleased:_(i),onFocusin:_(u),onFocusoutPrevented:_(v),onReleaseRequested:_(c)},{default:$(()=>[G(R.$slots,"default")]),_:3},8,["loop","trapped","focus-trap-el","focus-start-el","onFocusAfterTrapped","onFocusAfterReleased","onFocusin","onFocusoutPrevented","onReleaseRequested"])],16))}});var r0=Q(o0,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/content.vue"]]);const a0=Ue(yf),To=Symbol("elTooltip");function $r(){let e;const t=(o,r)=>{n(),e=window.setTimeout(o,r)},n=()=>window.clearTimeout(e);return Ht(()=>n()),{registerTimeout:t,cancelTimeout:n}}const s0=te({showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0}}),i0=({showAfter:e,hideAfter:t,autoClose:n,open:o,close:r})=>{const{registerTimeout:a}=$r(),{registerTimeout:s,cancelTimeout:i}=$r();return{onOpen:(v,c=_(e))=>{a(()=>{o(v);const d=_(n);Se(d)&&d>0&&s(()=>{r(v)},d)},c)},onClose:(v,c=_(t))=>{i(),a(()=>{r(v)},c)}}},Je=te({...s0,...is,appendTo:{type:Ia.to.type},content:{type:String,default:""},rawContent:Boolean,persistent:Boolean,visible:{type:N(Boolean),default:null},transition:String,teleported:{type:Boolean,default:!0},disabled:Boolean,...lo(["ariaLabel"])}),Pt=te({...Ua,disabled:Boolean,trigger:{type:N([String,Array]),default:"hover"},triggerKeys:{type:N(Array),default:()=>[re.enter,re.numpadEnter,re.space]},focusOnTarget:Boolean}),l0=yn({type:N(Boolean),default:null}),u0=yn({type:N(Function)}),c0=e=>{const t=`update:${e}`,n=`onUpdate:${e}`,o=[t],r={[e]:l0,[n]:u0};return{useModelToggle:({indicator:s,toggleReason:i,shouldHideWhenRouteChanges:l,shouldProceed:u,onShow:v,onHide:c})=>{const d=ve(),{emit:m}=d,p=d.props,g=C(()=>Ye(p[n])),w=C(()=>p[e]===null),b=f=>{s.value!==!0&&(s.value=!0,i&&(i.value=f),Ye(v)&&v(f))},y=f=>{s.value!==!1&&(s.value=!1,i&&(i.value=f),Ye(c)&&c(f))},T=f=>{if(p.disabled===!0||Ye(u)&&!u())return;const E=g.value&&ae;E&&m(t,!0),(w.value||!E)&&b(f)},h=f=>{if(p.disabled===!0||!ae)return;const E=g.value&&ae;E&&m(t,!1),(w.value||!E)&&y(f)},k=f=>{ma(f)&&(p.disabled&&f?g.value&&m(t,!1):s.value!==f&&(f?b():y()))},S=()=>{s.value?h():T()};return U(()=>p[e],k),l&&d.appContext.config.globalProperties.$route!==void 0&&U(()=>({...d.proxy.$route}),()=>{l.value&&s.value&&h()}),ce(()=>{k(p[e])}),{hide:h,show:T,toggle:S,hasUpdateHandler:g}},useModelToggleProps:r,useModelToggleEmits:o}},{useModelToggleProps:d0,useModelToggleEmits:f0,useModelToggle:p0}=c0("visible"),v0=te({...Va,...d0,...Je,...Pt,...ss,showArrow:{type:Boolean,default:!0}}),m0=[...f0,"before-show","before-hide","show","hide","open","close"],Wn=(e,t)=>Bt(e)?e.includes(t):e===t,it=(e,t,n)=>o=>{Wn(_(e),t)&&n(o)},g0=L({name:"ElTooltipTrigger",__name:"trigger",props:Pt,setup(e,{expose:t}){const n=e,o=se("tooltip"),{controlled:r,id:a,open:s,onOpen:i,onClose:l,onToggle:u}=j(To,void 0),v=O(null),c=()=>{if(_(r)||n.disabled)return!0},d=le(n,"trigger"),m=ne(c,it(d,"hover",h=>{i(h),n.focusOnTarget&&h.target&&Qe(()=>{co(h.target,{preventScroll:!0})})})),p=ne(c,it(d,"hover",l)),g=ne(c,it(d,"click",h=>{h.button===0&&u(h)})),w=ne(c,it(d,"focus",i)),b=ne(c,it(d,"focus",l)),y=ne(c,it(d,"contextmenu",h=>{h.preventDefault(),u(h)})),T=ne(c,h=>{const k=ot(h);n.triggerKeys.includes(k)&&(h.preventDefault(),u(h))});return t({triggerRef:v}),(h,k)=>(x(),Z(_(Af),{id:_(a),"virtual-ref":h.virtualRef,open:_(s),"virtual-triggering":h.virtualTriggering,class:J(_(o).e("trigger")),onBlur:_(b),onClick:_(g),onContextmenu:_(y),onFocus:_(w),onMouseenter:_(m),onMouseleave:_(p),onKeydown:_(T)},{default:$(()=>[G(h.$slots,"default")]),_:3},8,["id","virtual-ref","open","virtual-triggering","class","onBlur","onClick","onContextmenu","onFocus","onMouseenter","onMouseleave","onKeydown"]))}});var h0=Q(g0,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/trigger.vue"]]);const ls=()=>{const e=Xn(),t=Ba(),n=C(()=>`${e.value}-popper-container-${t.prefix}`),o=C(()=>`#${n.value}`);return{id:n,selector:o}},b0=e=>{const t=document.createElement("div");return t.id=e,document.body.appendChild(t),t},y0=()=>{const{id:e,selector:t}=ls();return Vs(()=>{ae&&(document.body.querySelector(t.value)||b0(e.value))}),{id:e,selector:t}},w0=e=>!e&&e!==0?[]:Bt(e)?e:[e],_0=L({name:"ElTooltipContent",inheritAttrs:!1,__name:"content",props:Je,setup(e,{expose:t}){const n=e,{selector:o}=ls(),r=se("tooltip"),a=O(),s=ga(()=>{var M;return(M=a.value)==null?void 0:M.popperContentRef});let i;const{controlled:l,id:u,open:v,trigger:c,onClose:d,onOpen:m,onShow:p,onHide:g,onBeforeShow:w,onBeforeHide:b}=j(To,void 0),y=C(()=>n.transition||`${r.namespace.value}-fade-in-linear`),T=C(()=>n.persistent);me(()=>{i?.()});const h=C(()=>_(T)?!0:_(v)),k=C(()=>n.disabled?!1:_(v)),S=C(()=>n.appendTo||o.value),f=C(()=>{var M;return(M=n.style)!=null?M:{}}),E=O(!0),A=()=>{g(),K()&&co(document.body,{preventScroll:!0}),E.value=!0},P=()=>{if(_(l))return!0},B=ne(P,()=>{n.enterable&&Wn(_(c),"hover")&&m()}),I=ne(P,()=>{Wn(_(c),"hover")&&d()}),R=()=>{var M,q;(q=(M=a.value)==null?void 0:M.updatePopper)==null||q.call(M),w?.()},z=()=>{b?.()},X=()=>{p()},W=()=>{n.virtualTriggering||d()},K=M=>{var q;const he=(q=a.value)==null?void 0:q.popperContentRef,_t=M?.relatedTarget||document.activeElement;return he?.contains(_t)};return U(()=>_(v),M=>{M?(E.value=!1,i=Nc(s,()=>{if(_(l))return;w0(_(c)).every(he=>he!=="hover"&&he!=="focus")&&d()},{detectIframe:!0})):i?.()},{flush:"post"}),U(()=>n.content,()=>{var M,q;(q=(M=a.value)==null?void 0:M.updatePopper)==null||q.call(M)}),t({contentRef:a,isFocusInsideContent:K}),(M,q)=>(x(),Z(_(td),{disabled:!M.teleported,to:S.value},{default:$(()=>[h.value||!E.value?(x(),Z(Jr,{key:0,name:y.value,appear:!T.value,onAfterLeave:A,onBeforeEnter:R,onAfterEnter:X,onBeforeLeave:z,persisted:""},{default:$(()=>[Zn(H(_(r0),Fe({id:_(u),ref_key:"contentRef",ref:a},M.$attrs,{"aria-label":M.ariaLabel,"aria-hidden":E.value,"boundaries-padding":M.boundariesPadding,"fallback-placements":M.fallbackPlacements,"gpu-acceleration":M.gpuAcceleration,offset:M.offset,placement:M.placement,"popper-options":M.popperOptions,"arrow-offset":M.arrowOffset,strategy:M.strategy,effect:M.effect,enterable:M.enterable,pure:M.pure,"popper-class":M.popperClass,"popper-style":[M.popperStyle,f.value],"reference-el":M.referenceEl,"trigger-target-el":M.triggerTargetEl,visible:k.value,"z-index":M.zIndex,loop:M.loop,onMouseenter:_(B),onMouseleave:_(I),onBlur:W,onClose:_(d)}),{default:$(()=>[G(M.$slots,"default")]),_:3},16,["id","aria-label","aria-hidden","boundaries-padding","fallback-placements","gpu-acceleration","offset","placement","popper-options","arrow-offset","strategy","effect","enterable","pure","popper-class","popper-style","reference-el","trigger-target-el","visible","z-index","loop","onMouseenter","onMouseleave","onClose"]),[[qr,k.value]])]),_:3},8,["name","appear"])):Ae("v-if",!0)]),_:3},8,["disabled","to"]))}});var E0=Q(_0,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/content.vue"]]);const S0=["innerHTML"],C0={key:1},T0=L({name:"ElTooltip",__name:"tooltip",props:v0,emits:m0,setup(e,{expose:t,emit:n}){const o=e,r=n;y0();const a=se("tooltip"),s=wn(),i=O(),l=O(),u=()=>{var h;const k=_(i);k&&((h=k.popperInstanceRef)==null||h.update())},v=O(!1),c=O(),{show:d,hide:m,hasUpdateHandler:p}=p0({indicator:v,toggleReason:c}),{onOpen:g,onClose:w}=i0({showAfter:le(o,"showAfter"),hideAfter:le(o,"hideAfter"),autoClose:le(o,"autoClose"),open:d,close:m}),b=C(()=>ma(o.visible)&&!p.value),y=C(()=>[a.b(),o.popperClass]);ue(To,{controlled:b,id:s,open:pn(v),trigger:le(o,"trigger"),onOpen:g,onClose:w,onToggle:h=>{_(v)?w(h):g(h)},onShow:()=>{r("show",c.value)},onHide:()=>{r("hide",c.value)},onBeforeShow:()=>{r("before-show",c.value)},onBeforeHide:()=>{r("before-hide",c.value)},updatePopper:u}),U(()=>o.disabled,h=>{h&&v.value&&(v.value=!1)});const T=h=>{var k;return(k=l.value)==null?void 0:k.isFocusInsideContent(h)};return Us(()=>v.value&&m()),me(()=>{c.value=void 0}),t({popperRef:i,contentRef:l,isFocusInsideContent:T,updatePopper:u,onOpen:g,onClose:w,hide:m}),(h,k)=>(x(),Z(_(a0),{ref_key:"popperRef",ref:i,role:h.role},{default:$(()=>[H(h0,{disabled:h.disabled,trigger:h.trigger,"trigger-keys":h.triggerKeys,"virtual-ref":h.virtualRef,"virtual-triggering":h.virtualTriggering,"focus-on-target":h.focusOnTarget},{default:$(()=>[h.$slots.default?G(h.$slots,"default",{key:0}):Ae("v-if",!0)]),_:3},8,["disabled","trigger","trigger-keys","virtual-ref","virtual-triggering","focus-on-target"]),H(E0,{ref_key:"contentRef",ref:l,"aria-label":h.ariaLabel,"boundaries-padding":h.boundariesPadding,content:h.content,disabled:h.disabled,effect:h.effect,enterable:h.enterable,"fallback-placements":h.fallbackPlacements,"hide-after":h.hideAfter,"gpu-acceleration":h.gpuAcceleration,offset:h.offset,persistent:h.persistent,"popper-class":y.value,"popper-style":h.popperStyle,placement:h.placement,"popper-options":h.popperOptions,"arrow-offset":h.arrowOffset,pure:h.pure,"raw-content":h.rawContent,"reference-el":h.referenceEl,"trigger-target-el":h.triggerTargetEl,"show-after":h.showAfter,strategy:h.strategy,teleported:h.teleported,transition:h.transition,"virtual-triggering":h.virtualTriggering,"z-index":h.zIndex,"append-to":h.appendTo,loop:h.loop},{default:$(()=>[G(h.$slots,"content",{},()=>[h.rawContent?(x(),D("span",{key:0,innerHTML:h.content},null,8,S0)):(x(),D("span",C0,Ne(h.content),1))]),h.showArrow?(x(),Z(_(_f),{key:0})):Ae("v-if",!0)]),_:3},8,["aria-label","boundaries-padding","content","disabled","effect","enterable","fallback-placements","hide-after","gpu-acceleration","offset","persistent","popper-class","popper-style","placement","popper-options","arrow-offset","pure","raw-content","reference-el","trigger-target-el","show-after","strategy","teleported","transition","virtual-triggering","z-index","append-to","loop"])]),_:3},8,["role"]))}});var A0=Q(T0,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/tooltip.vue"]]);const O0=Ue(A0),us=Symbol("buttonGroupContextKey"),x0=({from:e,replacement:t,scope:n,version:o,ref:r,type:a="API"},s)=>{U(()=>_(s),i=>{},{immediate:!0})},I0=(e,t)=>{x0({from:"type.text",replacement:"link",version:"3.0.0",scope:"props",ref:"https://element-plus.org/en-US/component/button.html#button-attributes"},C(()=>e.type==="text"));const n=j(us,void 0),o=so("button"),{form:r}=Qd(),a=Na(C(()=>n?.size)),s=Ha(),i=O(),l=Ks(),u=C(()=>{var b;return e.type||n?.type||((b=o.value)==null?void 0:b.type)||""}),v=C(()=>{var b,y,T;return(T=(y=e.autoInsertSpace)!=null?y:(b=o.value)==null?void 0:b.autoInsertSpace)!=null?T:!1}),c=C(()=>{var b,y,T;return(T=(y=e.plain)!=null?y:(b=o.value)==null?void 0:b.plain)!=null?T:!1}),d=C(()=>{var b,y,T;return(T=(y=e.round)!=null?y:(b=o.value)==null?void 0:b.round)!=null?T:!1}),m=C(()=>{var b,y,T;return(T=(y=e.text)!=null?y:(b=o.value)==null?void 0:b.text)!=null?T:!1}),p=C(()=>e.tag==="button"?{ariaDisabled:s.value||e.loading,disabled:s.value||e.loading,autofocus:e.autofocus,type:e.nativeType}:{}),g=C(()=>{var b;const y=(b=l.default)==null?void 0:b.call(l);if(v.value&&y?.length===1){const T=y[0];if(T?.type===Zr){const h=T.children;return new RegExp("^\\p{Unified_Ideograph}{2}$","u").test(h.trim())}}return!1});return{_disabled:s,_size:a,_type:u,_ref:i,_props:p,_plain:c,_round:d,_text:m,shouldAddSpace:g,handleClick:b=>{if(s.value||e.loading){b.stopPropagation();return}e.nativeType==="reset"&&r?.resetFields(),t("click",b)}}},P0=["default","primary","success","warning","info","danger","text",""],R0=["button","submit","reset"],Gn=te({size:Ta,disabled:{type:Boolean,default:void 0},type:{type:String,values:P0,default:""},icon:{type:Un},nativeType:{type:String,values:R0,default:"button"},loading:Boolean,loadingIcon:{type:Un,default:()=>La},plain:{type:Boolean,default:void 0},text:{type:Boolean,default:void 0},link:Boolean,bg:Boolean,autofocus:Boolean,round:{type:Boolean,default:void 0},circle:Boolean,color:String,dark:Boolean,autoInsertSpace:{type:Boolean,default:void 0},tag:{type:N([String,Object]),default:"button"}}),F0={click:e=>e instanceof MouseEvent};function oe(e,t){k0(e)&&(e="100%");var n=L0(e);return e=t===360?e:Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:(t===360?e=(e<0?e%t+t:e%t)/parseFloat(String(t)):e=e%t/parseFloat(String(t)),e)}function Zt(e){return Math.min(1,Math.max(0,e))}function k0(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function L0(e){return typeof e=="string"&&e.indexOf("%")!==-1}function cs(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function Xt(e){return e<=1?"".concat(Number(e)*100,"%"):e}function Ze(e){return e.length===1?"0"+e:String(e)}function M0(e,t,n){return{r:oe(e,255)*255,g:oe(t,255)*255,b:oe(n,255)*255}}function Nr(e,t,n){e=oe(e,255),t=oe(t,255),n=oe(n,255);var o=Math.max(e,t,n),r=Math.min(e,t,n),a=0,s=0,i=(o+r)/2;if(o===r)s=0,a=0;else{var l=o-r;switch(s=i>.5?l/(2-o-r):l/(o+r),o){case e:a=(t-n)/l+(t<n?6:0);break;case t:a=(n-e)/l+2;break;case n:a=(e-t)/l+4;break}a/=6}return{h:a,s,l:i}}function Fn(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*(6*n):n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function D0(e,t,n){var o,r,a;if(e=oe(e,360),t=oe(t,100),n=oe(n,100),t===0)r=n,a=n,o=n;else{var s=n<.5?n*(1+t):n+t-n*t,i=2*n-s;o=Fn(i,s,e+1/3),r=Fn(i,s,e),a=Fn(i,s,e-1/3)}return{r:o*255,g:r*255,b:a*255}}function Hr(e,t,n){e=oe(e,255),t=oe(t,255),n=oe(n,255);var o=Math.max(e,t,n),r=Math.min(e,t,n),a=0,s=o,i=o-r,l=o===0?0:i/o;if(o===r)a=0;else{switch(o){case e:a=(t-n)/i+(t<n?6:0);break;case t:a=(n-e)/i+2;break;case n:a=(e-t)/i+4;break}a/=6}return{h:a,s:l,v:s}}function B0(e,t,n){e=oe(e,360)*6,t=oe(t,100),n=oe(n,100);var o=Math.floor(e),r=e-o,a=n*(1-t),s=n*(1-r*t),i=n*(1-(1-r)*t),l=o%6,u=[n,s,a,a,i,n][l],v=[i,n,n,s,a,a][l],c=[a,a,i,n,n,s][l];return{r:u*255,g:v*255,b:c*255}}function zr(e,t,n,o){var r=[Ze(Math.round(e).toString(16)),Ze(Math.round(t).toString(16)),Ze(Math.round(n).toString(16))];return o&&r[0].startsWith(r[0].charAt(1))&&r[1].startsWith(r[1].charAt(1))&&r[2].startsWith(r[2].charAt(1))?r[0].charAt(0)+r[1].charAt(0)+r[2].charAt(0):r.join("")}function $0(e,t,n,o,r){var a=[Ze(Math.round(e).toString(16)),Ze(Math.round(t).toString(16)),Ze(Math.round(n).toString(16)),Ze(N0(o))];return r&&a[0].startsWith(a[0].charAt(1))&&a[1].startsWith(a[1].charAt(1))&&a[2].startsWith(a[2].charAt(1))&&a[3].startsWith(a[3].charAt(1))?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0)+a[3].charAt(0):a.join("")}function N0(e){return Math.round(parseFloat(e)*255).toString(16)}function jr(e){return ge(e)/255}function ge(e){return parseInt(e,16)}function H0(e){return{r:e>>16,g:(e&65280)>>8,b:e&255}}var qn={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function z0(e){var t={r:0,g:0,b:0},n=1,o=null,r=null,a=null,s=!1,i=!1;return typeof e=="string"&&(e=U0(e)),typeof e=="object"&&(Re(e.r)&&Re(e.g)&&Re(e.b)?(t=M0(e.r,e.g,e.b),s=!0,i=String(e.r).substr(-1)==="%"?"prgb":"rgb"):Re(e.h)&&Re(e.s)&&Re(e.v)?(o=Xt(e.s),r=Xt(e.v),t=B0(e.h,o,r),s=!0,i="hsv"):Re(e.h)&&Re(e.s)&&Re(e.l)&&(o=Xt(e.s),a=Xt(e.l),t=D0(e.h,o,a),s=!0,i="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=cs(n),{ok:s,format:e.format||i,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}var j0="[-\\+]?\\d+%?",V0="[-\\+]?\\d*\\.\\d+%?",je="(?:".concat(V0,")|(?:").concat(j0,")"),kn="[\\s|\\(]+(".concat(je,")[,|\\s]+(").concat(je,")[,|\\s]+(").concat(je,")\\s*\\)?"),Ln="[\\s|\\(]+(".concat(je,")[,|\\s]+(").concat(je,")[,|\\s]+(").concat(je,")[,|\\s]+(").concat(je,")\\s*\\)?"),_e={CSS_UNIT:new RegExp(je),rgb:new RegExp("rgb"+kn),rgba:new RegExp("rgba"+Ln),hsl:new RegExp("hsl"+kn),hsla:new RegExp("hsla"+Ln),hsv:new RegExp("hsv"+kn),hsva:new RegExp("hsva"+Ln),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function U0(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(qn[e])e=qn[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=_e.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=_e.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=_e.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=_e.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=_e.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=_e.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=_e.hex8.exec(e),n?{r:ge(n[1]),g:ge(n[2]),b:ge(n[3]),a:jr(n[4]),format:t?"name":"hex8"}:(n=_e.hex6.exec(e),n?{r:ge(n[1]),g:ge(n[2]),b:ge(n[3]),format:t?"name":"hex"}:(n=_e.hex4.exec(e),n?{r:ge(n[1]+n[1]),g:ge(n[2]+n[2]),b:ge(n[3]+n[3]),a:jr(n[4]+n[4]),format:t?"name":"hex8"}:(n=_e.hex3.exec(e),n?{r:ge(n[1]+n[1]),g:ge(n[2]+n[2]),b:ge(n[3]+n[3]),format:t?"name":"hex"}:!1)))))))))}function Re(e){return!!_e.CSS_UNIT.exec(String(e))}var K0=(function(){function e(t,n){t===void 0&&(t=""),n===void 0&&(n={});var o;if(t instanceof e)return t;typeof t=="number"&&(t=H0(t)),this.originalInput=t;var r=z0(t);this.originalInput=t,this.r=r.r,this.g=r.g,this.b=r.b,this.a=r.a,this.roundA=Math.round(100*this.a)/100,this.format=(o=n.format)!==null&&o!==void 0?o:r.format,this.gradientType=n.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=r.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},e.prototype.getLuminance=function(){var t=this.toRgb(),n,o,r,a=t.r/255,s=t.g/255,i=t.b/255;return a<=.03928?n=a/12.92:n=Math.pow((a+.055)/1.055,2.4),s<=.03928?o=s/12.92:o=Math.pow((s+.055)/1.055,2.4),i<=.03928?r=i/12.92:r=Math.pow((i+.055)/1.055,2.4),.2126*n+.7152*o+.0722*r},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(t){return this.a=cs(t),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){var t=this.toHsl().s;return t===0},e.prototype.toHsv=function(){var t=Hr(this.r,this.g,this.b);return{h:t.h*360,s:t.s,v:t.v,a:this.a}},e.prototype.toHsvString=function(){var t=Hr(this.r,this.g,this.b),n=Math.round(t.h*360),o=Math.round(t.s*100),r=Math.round(t.v*100);return this.a===1?"hsv(".concat(n,", ").concat(o,"%, ").concat(r,"%)"):"hsva(".concat(n,", ").concat(o,"%, ").concat(r,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var t=Nr(this.r,this.g,this.b);return{h:t.h*360,s:t.s,l:t.l,a:this.a}},e.prototype.toHslString=function(){var t=Nr(this.r,this.g,this.b),n=Math.round(t.h*360),o=Math.round(t.s*100),r=Math.round(t.l*100);return this.a===1?"hsl(".concat(n,", ").concat(o,"%, ").concat(r,"%)"):"hsla(".concat(n,", ").concat(o,"%, ").concat(r,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(t){return t===void 0&&(t=!1),zr(this.r,this.g,this.b,t)},e.prototype.toHexString=function(t){return t===void 0&&(t=!1),"#"+this.toHex(t)},e.prototype.toHex8=function(t){return t===void 0&&(t=!1),$0(this.r,this.g,this.b,this.a,t)},e.prototype.toHex8String=function(t){return t===void 0&&(t=!1),"#"+this.toHex8(t)},e.prototype.toHexShortString=function(t){return t===void 0&&(t=!1),this.a===1?this.toHexString(t):this.toHex8String(t)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var t=Math.round(this.r),n=Math.round(this.g),o=Math.round(this.b);return this.a===1?"rgb(".concat(t,", ").concat(n,", ").concat(o,")"):"rgba(".concat(t,", ").concat(n,", ").concat(o,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var t=function(n){return"".concat(Math.round(oe(n,255)*100),"%")};return{r:t(this.r),g:t(this.g),b:t(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var t=function(n){return Math.round(oe(n,255)*100)};return this.a===1?"rgb(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%)"):"rgba(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var t="#"+zr(this.r,this.g,this.b,!1),n=0,o=Object.entries(qn);n<o.length;n++){var r=o[n],a=r[0],s=r[1];if(t===s)return a}return!1},e.prototype.toString=function(t){var n=!!t;t=t??this.format;var o=!1,r=this.a<1&&this.a>=0,a=!n&&r&&(t.startsWith("hex")||t==="name");return a?t==="name"&&this.a===0?this.toName():this.toRgbString():(t==="rgb"&&(o=this.toRgbString()),t==="prgb"&&(o=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(o=this.toHexString()),t==="hex3"&&(o=this.toHexString(!0)),t==="hex4"&&(o=this.toHex8String(!0)),t==="hex8"&&(o=this.toHex8String()),t==="name"&&(o=this.toName()),t==="hsl"&&(o=this.toHslString()),t==="hsv"&&(o=this.toHsvString()),o||this.toHexString())},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l+=t/100,n.l=Zt(n.l),new e(n)},e.prototype.brighten=function(t){t===void 0&&(t=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(255*-(t/100)))),n.g=Math.max(0,Math.min(255,n.g-Math.round(255*-(t/100)))),n.b=Math.max(0,Math.min(255,n.b-Math.round(255*-(t/100)))),new e(n)},e.prototype.darken=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l-=t/100,n.l=Zt(n.l),new e(n)},e.prototype.tint=function(t){return t===void 0&&(t=10),this.mix("white",t)},e.prototype.shade=function(t){return t===void 0&&(t=10),this.mix("black",t)},e.prototype.desaturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s-=t/100,n.s=Zt(n.s),new e(n)},e.prototype.saturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s+=t/100,n.s=Zt(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),o=(n.h+t)%360;return n.h=o<0?360+o:o,new e(n)},e.prototype.mix=function(t,n){n===void 0&&(n=50);var o=this.toRgb(),r=new e(t).toRgb(),a=n/100,s={r:(r.r-o.r)*a+o.r,g:(r.g-o.g)*a+o.g,b:(r.b-o.b)*a+o.b,a:(r.a-o.a)*a+o.a};return new e(s)},e.prototype.analogous=function(t,n){t===void 0&&(t=6),n===void 0&&(n=30);var o=this.toHsl(),r=360/n,a=[this];for(o.h=(o.h-(r*t>>1)+720)%360;--t;)o.h=(o.h+r)%360,a.push(new e(o));return a},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){t===void 0&&(t=6);for(var n=this.toHsv(),o=n.h,r=n.s,a=n.v,s=[],i=1/t;t--;)s.push(new e({h:o,s:r,v:a})),a=(a+i)%1;return s},e.prototype.splitcomplement=function(){var t=this.toHsl(),n=t.h;return[this,new e({h:(n+72)%360,s:t.s,l:t.l}),new e({h:(n+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var n=this.toRgb(),o=new e(t).toRgb(),r=n.a+o.a*(1-n.a);return new e({r:(n.r*n.a+o.r*o.a*(1-n.a))/r,g:(n.g*n.a+o.g*o.a*(1-n.a))/r,b:(n.b*n.a+o.b*o.a*(1-n.a))/r,a:r})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var n=this.toHsl(),o=n.h,r=[this],a=360/t,s=1;s<t;s++)r.push(new e({h:(o+s*a)%360,s:n.s,l:n.l}));return r},e.prototype.equals=function(t){return this.toRgbString()===new e(t).toRgbString()},e})();function Be(e,t=20){return e.mix("#141414",t).toString()}function W0(e){const t=Ha(),n=se("button");return C(()=>{let o={},r=e.color;if(r){const a=r.match(/var\((.*?)\)/);a&&(r=window.getComputedStyle(window.document.documentElement).getPropertyValue(a[1]));const s=new K0(r),i=e.dark?s.tint(20).toString():Be(s,20);if(e.plain)o=n.cssVarBlock({"bg-color":e.dark?Be(s,90):s.tint(90).toString(),"text-color":r,"border-color":e.dark?Be(s,50):s.tint(50).toString(),"hover-text-color":`var(${n.cssVarName("color-white")})`,"hover-bg-color":r,"hover-border-color":r,"active-bg-color":i,"active-text-color":`var(${n.cssVarName("color-white")})`,"active-border-color":i}),t.value&&(o[n.cssVarBlockName("disabled-bg-color")]=e.dark?Be(s,90):s.tint(90).toString(),o[n.cssVarBlockName("disabled-text-color")]=e.dark?Be(s,50):s.tint(50).toString(),o[n.cssVarBlockName("disabled-border-color")]=e.dark?Be(s,80):s.tint(80).toString());else{const l=e.dark?Be(s,30):s.tint(30).toString(),u=s.isDark()?`var(${n.cssVarName("color-white")})`:`var(${n.cssVarName("color-black")})`;if(o=n.cssVarBlock({"bg-color":r,"text-color":u,"border-color":r,"hover-bg-color":l,"hover-text-color":u,"hover-border-color":l,"active-bg-color":i,"active-border-color":i}),t.value){const v=e.dark?Be(s,50):s.tint(50).toString();o[n.cssVarBlockName("disabled-bg-color")]=v,o[n.cssVarBlockName("disabled-text-color")]=e.dark?"rgba(255, 255, 255, 0.5)":`var(${n.cssVarName("color-white")})`,o[n.cssVarBlockName("disabled-border-color")]=v}}}return o})}const G0=L({name:"ElButton",__name:"button",props:Gn,emits:F0,setup(e,{expose:t,emit:n}){const o=e,r=n,a=W0(o),s=se("button"),{_ref:i,_size:l,_type:u,_disabled:v,_props:c,_plain:d,_round:m,_text:p,shouldAddSpace:g,handleClick:w}=I0(o,r),b=C(()=>[s.b(),s.m(u.value),s.m(l.value),s.is("disabled",v.value),s.is("loading",o.loading),s.is("plain",d.value),s.is("round",m.value),s.is("circle",o.circle),s.is("text",p.value),s.is("link",o.link),s.is("has-bg",o.bg)]);return t({ref:i,size:l,type:u,disabled:v,shouldAddSpace:g}),(y,T)=>(x(),Z(At(y.tag),Fe({ref_key:"_ref",ref:i},_(c),{class:b.value,style:_(a),onClick:_(w)}),{default:$(()=>[y.loading?(x(),D(vn,{key:0},[y.$slots.loading?G(y.$slots,"loading",{key:0}):(x(),Z(_(Lt),{key:1,class:J(_(s).is("loading"))},{default:$(()=>[(x(),Z(At(y.loadingIcon)))]),_:1},8,["class"]))],64)):y.icon||y.$slots.icon?(x(),Z(_(Lt),{key:1},{default:$(()=>[y.icon?(x(),Z(At(y.icon),{key:0})):G(y.$slots,"icon",{key:1})]),_:3})):Ae("v-if",!0),y.$slots.default?(x(),D("span",{key:2,class:J({[_(s).em("text","expand")]:_(g)})},[G(y.$slots,"default")],2)):Ae("v-if",!0)]),_:3},16,["class","style","onClick"]))}});var q0=Q(G0,[["__file","/home/runner/work/element-plus/element-plus/packages/components/button/src/button.vue"]]);const J0={size:Gn.size,type:Gn.type,direction:{type:N(String),values:["horizontal","vertical"],default:"horizontal"}},Y0=L({name:"ElButtonGroup",__name:"button-group",props:J0,setup(e){const t=e;ue(us,Yr({size:le(t,"size"),type:le(t,"type")}));const n=se("button");return(o,r)=>(x(),D("div",{class:J([_(n).b("group"),_(n).bm("group",t.direction)])},[G(o.$slots,"default")],2))}});var ds=Q(Y0,[["__file","/home/runner/work/element-plus/element-plus/packages/components/button/src/button-group.vue"]]);const fs=Ue(q0,{ButtonGroup:ds});io(ds);const Z0=te({a11y:{type:Boolean,default:!0},locale:{type:N(Object)},size:Ta,button:{type:N(Object)},card:{type:N(Object)},dialog:{type:N(Object)},link:{type:N(Object)},experimentalFeatures:{type:N(Object)},keyboardNavigation:{type:Boolean,default:!0},message:{type:N(Object)},zIndex:Number,namespace:{type:String,default:"el"},...Zc}),X0={placement:"top"},Q0=L({name:"ElConfigProvider",props:Z0,setup(e,{slots:t}){const n=xa(e);return U(()=>e.message,o=>{var r,a;Object.assign(X0,(a=(r=n?.value)==null?void 0:r.message)!=null?a:{},o??{})},{immediate:!0,deep:!0}),()=>G(t,"default",{config:n?.value})}}),ev=Ue(Q0),ps=(...e)=>t=>{e.forEach(n=>{n.value=t})},tv=L({inheritAttrs:!1});function nv(e,t,n,o,r,a){return G(e.$slots,"default")}var ov=Q(tv,[["render",nv],["__file","/home/runner/work/element-plus/element-plus/packages/components/collection/src/collection.vue"]]);const rv=L({name:"ElCollectionItem",inheritAttrs:!1});function av(e,t,n,o,r,a){return G(e.$slots,"default")}var sv=Q(rv,[["render",av],["__file","/home/runner/work/element-plus/element-plus/packages/components/collection/src/collection-item.vue"]]);const vs="data-el-collection-item",iv=e=>{const t=`El${e}Collection`,n=`${t}Item`,o=Symbol(t),r=Symbol(n),a=Object.assign({},ov,{name:t,setup(){const i=O(),l=new Map;ue(o,{itemMap:l,getItems:()=>{const v=_(i);if(!v)return[];const c=Array.from(v.querySelectorAll(`[${vs}]`));return[...l.values()].sort((m,p)=>c.indexOf(m.ref)-c.indexOf(p.ref))},collectionRef:i})}}),s=Object.assign({},sv,{name:n,setup(i,{attrs:l}){const u=O(),v=j(o,void 0);ue(r,{collectionItemRef:u}),ce(()=>{const c=_(u);c&&v.itemMap.set(c,{ref:c,...l})}),me(()=>{const c=_(u);v.itemMap.delete(c)})}});return{COLLECTION_INJECTION_KEY:o,COLLECTION_ITEM_INJECTION_KEY:r,ElCollection:a,ElCollectionItem:s}},lv=te({style:{type:N([String,Array,Object])},currentTabId:{type:N(String)},defaultCurrentTabId:String,loop:Boolean,dir:{type:String,values:["ltr","rtl"],default:"ltr"},orientation:{type:N(String)},onBlur:Function,onFocus:Function,onMousedown:Function}),{ElCollection:uv,ElCollectionItem:cv,COLLECTION_INJECTION_KEY:ms,COLLECTION_ITEM_INJECTION_KEY:dv}=iv("RovingFocusGroup"),Ao=Symbol("elRovingFocusGroup"),gs=Symbol("elRovingFocusGroupItem"),fv={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"},pv=(e,t)=>e,vv=(e,t,n)=>{const o=ot(e),r=pv(o);return fv[r]},mv=(e,t)=>e.map((n,o)=>e[(o+t)%e.length]),Vr=e=>{const{activeElement:t}=document;for(const n of e)if(n===t||(n.focus(),t!==document.activeElement))return},Ur="currentTabIdChange",Kr="rovingFocusGroup.entryFocus",gv={bubbles:!1,cancelable:!0},hv=L({name:"ElRovingFocusGroupImpl",inheritAttrs:!1,props:lv,emits:[Ur,"entryFocus"],setup(e,{emit:t}){var n;const o=O((n=e.currentTabId||e.defaultCurrentTabId)!=null?n:null),r=O(!1),a=O(!1),s=O(),{getItems:i}=j(ms,void 0),l=C(()=>[{outline:"none"},e.style]),u=w=>{t(Ur,w)},v=()=>{r.value=!0},c=ne(w=>{var b;(b=e.onMousedown)==null||b.call(e,w)},()=>{a.value=!0}),d=ne(w=>{var b;(b=e.onFocus)==null||b.call(e,w)},w=>{const b=!_(a),{target:y,currentTarget:T}=w;if(y===T&&b&&!_(r)){const h=new Event(Kr,gv);if(T?.dispatchEvent(h),!h.defaultPrevented){const k=i().filter(P=>P.focusable),S=k.find(P=>P.active),f=k.find(P=>P.id===_(o)),A=[S,f,...k].filter(Boolean).map(P=>P.ref);Vr(A)}}a.value=!1}),m=ne(w=>{var b;(b=e.onBlur)==null||b.call(e,w)},()=>{r.value=!1}),p=(...w)=>{t("entryFocus",...w)},g=w=>{const b=vv(w);if(b){w.preventDefault();let T=i().filter(h=>h.focusable).map(h=>h.ref);switch(b){case"last":{T.reverse();break}case"prev":case"next":{b==="prev"&&T.reverse();const h=T.indexOf(w.currentTarget);T=e.loop?mv(T,h+1):T.slice(h+1);break}}Qe(()=>{Vr(T)})}};ue(Ao,{currentTabbedId:pn(o),loop:le(e,"loop"),tabIndex:C(()=>_(r)?-1:0),rovingFocusGroupRef:s,rovingFocusGroupRootStyle:l,orientation:le(e,"orientation"),dir:le(e,"dir"),onItemFocus:u,onItemShiftTab:v,onBlur:m,onFocus:d,onMousedown:c,onKeydown:g}),U(()=>e.currentTabId,w=>{o.value=w??null}),Ce(s,Kr,p)}});function bv(e,t,n,o,r,a){return G(e.$slots,"default")}var yv=Q(hv,[["render",bv],["__file","/home/runner/work/element-plus/element-plus/packages/components/roving-focus-group/src/roving-focus-group-impl.vue"]]);const wv=L({name:"ElRovingFocusGroup",components:{ElFocusGroupCollection:uv,ElRovingFocusGroupImpl:yv}});function _v(e,t,n,o,r,a){const s=ie("el-roving-focus-group-impl"),i=ie("el-focus-group-collection");return x(),Z(i,null,{default:$(()=>[H(s,Ws(Gs(e.$attrs)),{default:$(()=>[G(e.$slots,"default")]),_:3},16)]),_:3})}var Ev=Q(wv,[["render",_v],["__file","/home/runner/work/element-plus/element-plus/packages/components/roving-focus-group/src/roving-focus-group.vue"]]);const Sv=te({trigger:{...Pt.trigger,type:N([String,Array])},triggerKeys:{type:N(Array),default:()=>[re.enter,re.numpadEnter,re.space,re.down]},virtualTriggering:Pt.virtualTriggering,virtualRef:Pt.virtualRef,effect:{...Je.effect,default:"light"},type:{type:N(String)},placement:{type:N(String),default:"bottom"},popperOptions:{type:N(Object),default:()=>({})},id:String,size:{type:String,default:""},splitButton:Boolean,hideOnClick:{type:Boolean,default:!0},loop:{type:Boolean,default:!0},showArrow:{type:Boolean,default:!0},showTimeout:{type:Number,default:150},hideTimeout:{type:Number,default:150},tabindex:{type:N([Number,String]),default:0},maxHeight:{type:N([Number,String]),default:""},popperClass:Je.popperClass,popperStyle:Je.popperStyle,disabled:Boolean,role:{type:String,values:ja,default:"menu"},buttonProps:{type:N(Object)},teleported:Je.teleported,appendTo:Je.appendTo,persistent:{type:Boolean,default:!0}}),hs=te({command:{type:[Object,String,Number],default:()=>({})},disabled:Boolean,divided:Boolean,textValue:String,icon:{type:Un}}),Cv=te({onKeydown:{type:N(Function)}}),Sn=Symbol("elDropdown"),bs="elDropdown",{ButtonGroup:Tv}=fs,Av=L({name:"ElDropdown",components:{ElButton:fs,ElButtonGroup:Tv,ElScrollbar:hf,ElTooltip:O0,ElRovingFocusGroup:Ev,ElOnlyChild:Wa,ElIcon:Lt,ArrowDown:Ra},props:Sv,emits:["visible-change","click","command"],setup(e,{emit:t}){const n=ve(),o=se("dropdown"),{t:r}=Sa(),a=O(),s=O(),i=O(),l=O(),u=O(null),v=O(null),c=O(!1),d=C(()=>({maxHeight:un(e.maxHeight)})),m=C(()=>[o.m(h.value)]),p=C(()=>Su(e.trigger)),g=wn().value,w=C(()=>e.id||g);function b(){var R;(R=i.value)==null||R.onClose(void 0,0)}function y(){var R;(R=i.value)==null||R.onClose()}function T(){var R;(R=i.value)==null||R.onOpen()}const h=Na();function k(...R){t("command",...R)}function S(){}function f(){const R=_(l);p.value.includes("hover")&&R?.focus({preventScroll:!0}),v.value=null}function E(R){v.value=R}function A(){t("visible-change",!0)}function P(R){var z;c.value=R?.type==="keydown",(z=l.value)==null||z.focus()}function B(){t("visible-change",!1)}return ue(Sn,{contentRef:l,role:C(()=>e.role),triggerId:w,isUsingKeyboard:c,onItemEnter:S,onItemLeave:f,handleClose:y}),ue(bs,{instance:n,dropdownSize:h,handleClick:b,commandHandler:k,trigger:le(e,"trigger"),hideOnClick:le(e,"hideOnClick")}),{t:r,ns:o,scrollbar:u,wrapStyle:d,dropdownTriggerKls:m,dropdownSize:h,triggerId:w,currentTabId:v,handleCurrentTabIdChange:E,handlerMainButtonClick:R=>{t("click",R)},handleClose:y,handleOpen:T,handleBeforeShowTooltip:A,handleShowTooltip:P,handleBeforeHideTooltip:B,popperRef:i,contentRef:l,triggeringElementRef:a,referenceElementRef:s}}});function Ov(e,t,n,o,r,a){var s;const i=ie("el-roving-focus-group"),l=ie("el-scrollbar"),u=ie("el-only-child"),v=ie("el-tooltip"),c=ie("el-button"),d=ie("arrow-down"),m=ie("el-icon"),p=ie("el-button-group");return x(),D("div",{class:J([e.ns.b(),e.ns.is("disabled",e.disabled)])},[H(v,{ref:"popperRef",role:e.role,effect:e.effect,"fallback-placements":["bottom","top"],"popper-options":e.popperOptions,"gpu-acceleration":!1,placement:e.placement,"popper-class":[e.ns.e("popper"),e.popperClass],"popper-style":e.popperStyle,trigger:e.trigger,"trigger-keys":e.triggerKeys,"trigger-target-el":e.contentRef,"show-arrow":e.showArrow,"show-after":e.trigger==="hover"?e.showTimeout:0,"hide-after":e.trigger==="hover"?e.hideTimeout:0,"virtual-ref":(s=e.virtualRef)!=null?s:e.triggeringElementRef,"virtual-triggering":e.virtualTriggering||e.splitButton,disabled:e.disabled,transition:`${e.ns.namespace.value}-zoom-in-top`,teleported:e.teleported,"append-to":e.appendTo,pure:"","focus-on-target":"",persistent:e.persistent,onBeforeShow:e.handleBeforeShowTooltip,onShow:e.handleShowTooltip,onBeforeHide:e.handleBeforeHideTooltip},qs({content:$(()=>[H(l,{ref:"scrollbar","wrap-style":e.wrapStyle,tag:"div","view-class":e.ns.e("list")},{default:$(()=>[H(i,{loop:e.loop,"current-tab-id":e.currentTabId,orientation:"horizontal",onCurrentTabIdChange:e.handleCurrentTabIdChange},{default:$(()=>[G(e.$slots,"dropdown")]),_:3},8,["loop","current-tab-id","onCurrentTabIdChange"])]),_:3},8,["wrap-style","view-class"])]),_:2},[e.splitButton?void 0:{name:"default",fn:$(()=>[H(u,{id:e.triggerId,ref:"triggeringElementRef",role:"button",tabindex:e.tabindex},{default:$(()=>[G(e.$slots,"default")]),_:3},8,["id","tabindex"])]),key:"0"}]),1032,["role","effect","popper-options","placement","popper-class","popper-style","trigger","trigger-keys","trigger-target-el","show-arrow","show-after","hide-after","virtual-ref","virtual-triggering","disabled","transition","teleported","append-to","persistent","onBeforeShow","onShow","onBeforeHide"]),e.splitButton?(x(),Z(p,{key:0},{default:$(()=>[H(c,Fe({ref:"referenceElementRef"},e.buttonProps,{size:e.dropdownSize,type:e.type,disabled:e.disabled,tabindex:e.tabindex,onClick:e.handlerMainButtonClick}),{default:$(()=>[G(e.$slots,"default")]),_:3},16,["size","type","disabled","tabindex","onClick"]),H(c,Fe({id:e.triggerId,ref:"triggeringElementRef"},e.buttonProps,{role:"button",size:e.dropdownSize,type:e.type,class:e.ns.e("caret-button"),disabled:e.disabled,tabindex:e.tabindex,"aria-label":e.t("el.dropdown.toggleDropdown")}),{default:$(()=>[H(m,{class:J(e.ns.e("icon"))},{default:$(()=>[H(d)]),_:1},8,["class"])]),_:1},16,["id","size","type","class","disabled","tabindex","aria-label"])]),_:3})):Ae("v-if",!0)],2)}var xv=Q(Av,[["render",Ov],["__file","/home/runner/work/element-plus/element-plus/packages/components/dropdown/src/dropdown.vue"]]);const Iv=L({components:{ElRovingFocusCollectionItem:cv},props:{focusable:{type:Boolean,default:!0},active:Boolean},emits:["mousedown","focus","keydown"],setup(e,{emit:t}){const{currentTabbedId:n,onItemFocus:o,onItemShiftTab:r,onKeydown:a}=j(Ao,void 0),s=wn(),i=O(),l=ne(d=>{t("mousedown",d)},d=>{e.focusable?o(_(s)):d.preventDefault()}),u=ne(d=>{t("focus",d)},()=>{o(_(s))}),v=ne(d=>{t("keydown",d)},d=>{const{shiftKey:m,target:p,currentTarget:g}=d;if(ot(d)===re.tab&&m){r();return}p===g&&a(d)}),c=C(()=>n.value===_(s));return ue(gs,{rovingFocusGroupItemRef:i,tabIndex:C(()=>_(c)?0:-1),handleMousedown:l,handleFocus:u,handleKeydown:v}),{id:s,handleKeydown:v,handleFocus:u,handleMousedown:l}}});function Pv(e,t,n,o,r,a){const s=ie("el-roving-focus-collection-item");return x(),Z(s,{id:e.id,focusable:e.focusable,active:e.active},{default:$(()=>[G(e.$slots,"default")]),_:3},8,["id","focusable","active"])}var Rv=Q(Iv,[["render",Pv],["__file","/home/runner/work/element-plus/element-plus/packages/components/roving-focus-group/src/roving-focus-item.vue"]]);const Fv=L({name:"DropdownItemImpl",components:{ElIcon:Lt},props:hs,emits:["pointermove","pointerleave","click","clickimpl"],setup(e,{emit:t}){const n=se("dropdown"),{role:o}=j(Sn,void 0),{collectionItemRef:r}=j(dv,void 0),{rovingFocusGroupItemRef:a,tabIndex:s,handleFocus:i,handleKeydown:l,handleMousedown:u}=j(gs,void 0),v=ps(r,a),c=C(()=>o.value==="menu"?"menuitem":o.value==="navigation"?"link":"button"),d=ne(m=>{const p=ot(m);if([re.enter,re.numpadEnter,re.space].includes(p))return m.preventDefault(),m.stopImmediatePropagation(),t("clickimpl",m),!0},l);return{ns:n,itemRef:v,dataset:{[vs]:""},role:c,tabIndex:s,handleFocus:i,handleKeydown:d,handleMousedown:u}}}),kv=["aria-disabled","tabindex","role"];function Lv(e,t,n,o,r,a){const s=ie("el-icon");return x(),D(vn,null,[e.divided?(x(),D("li",{key:0,role:"separator",class:J(e.ns.bem("menu","item","divided"))},null,2)):Ae("v-if",!0),F("li",Fe({ref:e.itemRef},{...e.dataset,...e.$attrs},{"aria-disabled":e.disabled,class:[e.ns.be("menu","item"),e.ns.is("disabled",e.disabled)],tabindex:e.tabIndex,role:e.role,onClick:t[0]||(t[0]=i=>e.$emit("clickimpl",i)),onFocus:t[1]||(t[1]=(...i)=>e.handleFocus&&e.handleFocus(...i)),onKeydown:t[2]||(t[2]=on((...i)=>e.handleKeydown&&e.handleKeydown(...i),["self"])),onMousedown:t[3]||(t[3]=(...i)=>e.handleMousedown&&e.handleMousedown(...i)),onPointermove:t[4]||(t[4]=i=>e.$emit("pointermove",i)),onPointerleave:t[5]||(t[5]=i=>e.$emit("pointerleave",i))}),[e.icon?(x(),Z(s,{key:0},{default:$(()=>[(x(),Z(At(e.icon)))]),_:1})):Ae("v-if",!0),G(e.$slots,"default")],16,kv)],64)}var Mv=Q(Fv,[["render",Lv],["__file","/home/runner/work/element-plus/element-plus/packages/components/dropdown/src/dropdown-item-impl.vue"]]);const ys=()=>{const e=j(bs,{}),t=C(()=>e?.dropdownSize);return{elDropdown:e,_elDropdownSize:t}},Dv=L({name:"ElDropdownItem",components:{ElRovingFocusItem:Rv,ElDropdownItemImpl:Mv},inheritAttrs:!1,props:hs,emits:["pointermove","pointerleave","click"],setup(e,{emit:t,attrs:n}){const{elDropdown:o}=ys(),r=ve(),{onItemEnter:a,onItemLeave:s}=j(Sn,void 0),i=ne(c=>(t("pointermove",c),c.defaultPrevented),Or(c=>{if(e.disabled){s(c);return}const d=c.currentTarget;d===document.activeElement||d.contains(document.activeElement)||(a(c),c.defaultPrevented||d?.focus({preventScroll:!0}))})),l=ne(c=>(t("pointerleave",c),c.defaultPrevented),Or(s)),u=ne(c=>{if(!e.disabled)return t("click",c),c.type!=="keydown"&&c.defaultPrevented},c=>{var d,m,p;if(e.disabled){c.stopImmediatePropagation();return}(d=o?.hideOnClick)!=null&&d.value&&((m=o.handleClick)==null||m.call(o)),(p=o.commandHandler)==null||p.call(o,e.command,r,c)}),v=C(()=>({...e,...n}));return{handleClick:u,handlePointerMove:i,handlePointerLeave:l,propsAndAttrs:v}}});function Bv(e,t,n,o,r,a){const s=ie("el-dropdown-item-impl"),i=ie("el-roving-focus-item");return x(),Z(i,{focusable:!e.disabled},{default:$(()=>[H(s,Fe(e.propsAndAttrs,{onPointerleave:e.handlePointerLeave,onPointermove:e.handlePointerMove,onClickimpl:e.handleClick}),{default:$(()=>[G(e.$slots,"default")]),_:3},16,["onPointerleave","onPointermove","onClickimpl"])]),_:3},8,["focusable"])}var ws=Q(Dv,[["render",Bv],["__file","/home/runner/work/element-plus/element-plus/packages/components/dropdown/src/dropdown-item.vue"]]);const $v=L({name:"ElDropdownMenu",props:Cv,setup(e){const t=se("dropdown"),{_elDropdownSize:n}=ys(),o=n.value,{contentRef:r,role:a,triggerId:s,isUsingKeyboard:i,handleClose:l}=j(Sn,void 0),{rovingFocusGroupRef:u,rovingFocusGroupRootStyle:v,onBlur:c,onFocus:d,onKeydown:m,onMousedown:p}=j(Ao,void 0),{collectionRef:g}=j(ms,void 0),w=C(()=>[t.b("menu"),t.bm("menu",o?.value)]),b=ps(r,u,g),y=ne(h=>{var k;(k=e.onKeydown)==null||k.call(e,h)},h=>{const{currentTarget:k,target:S}=h,f=ot(h);if(k.contains(S),re.tab===f)return l();m(h)});function T(h){i.value&&d(h)}return{size:o,rovingFocusGroupRootStyle:v,dropdownKls:w,role:a,triggerId:s,dropdownListWrapperRef:b,handleKeydown:y,onBlur:c,handleFocus:T,onMousedown:p}}}),Nv=["role","aria-labelledby"];function Hv(e,t,n,o,r,a){return x(),D("ul",{ref:e.dropdownListWrapperRef,class:J(e.dropdownKls),style:Rt(e.rovingFocusGroupRootStyle),tabindex:-1,role:e.role,"aria-labelledby":e.triggerId,onFocusin:t[0]||(t[0]=(...s)=>e.handleFocus&&e.handleFocus(...s)),onFocusout:t[1]||(t[1]=(...s)=>e.onBlur&&e.onBlur(...s)),onKeydown:t[2]||(t[2]=on((...s)=>e.handleKeydown&&e.handleKeydown(...s),["self"])),onMousedown:t[3]||(t[3]=on((...s)=>e.onMousedown&&e.onMousedown(...s),["self"]))},[G(e.$slots,"default")],46,Nv)}var _s=Q($v,[["render",Hv],["__file","/home/runner/work/element-plus/element-plus/packages/components/dropdown/src/dropdown-menu.vue"]]);const zv=Ue(xv,{DropdownItem:ws,DropdownMenu:_s}),jv=io(ws),Vv=io(_s);var Uv={name:"zh-cn",el:{breadcrumb:{label:"面包屑"},colorpicker:{confirm:"确定",clear:"清空",defaultLabel:"颜色选择器",description:"当前颜色 {color},按 Enter 键选择新颜色",alphaLabel:"选择透明度的值",alphaDescription:"透明度 {alpha}, 当前颜色 {color}",hueLabel:"选择色相值",hueDescription:"色相 {hue}, 当前颜色 {color}",svLabel:"选择饱和度与明度的值",svDescription:"饱和度 {saturation}, 明度 {brightness}, 当前颜色 {color}",predefineDescription:"选择 {value} 作为颜色"},datepicker:{now:"此刻",today:"今天",cancel:"取消",clear:"清空",confirm:"确定",dateTablePrompt:"使用方向键与 Enter 键可选择日期",monthTablePrompt:"使用方向键与 Enter 键可选择月份",yearTablePrompt:"使用方向键与 Enter 键可选择年份",selectedDate:"已选日期",selectDate:"选择日期",selectTime:"选择时间",startDate:"开始日期",startTime:"开始时间",endDate:"结束日期",endTime:"结束时间",prevYear:"前一年",nextYear:"后一年",prevMonth:"上个月",nextMonth:"下个月",year:"年",month1:"1 月",month2:"2 月",month3:"3 月",month4:"4 月",month5:"5 月",month6:"6 月",month7:"7 月",month8:"8 月",month9:"9 月",month10:"10 月",month11:"11 月",month12:"12 月",weeks:{sun:"日",mon:"一",tue:"二",wed:"三",thu:"四",fri:"五",sat:"六"},weeksFull:{sun:"星期日",mon:"星期一",tue:"星期二",wed:"星期三",thu:"星期四",fri:"星期五",sat:"星期六"},months:{jan:"一月",feb:"二月",mar:"三月",apr:"四月",may:"五月",jun:"六月",jul:"七月",aug:"八月",sep:"九月",oct:"十月",nov:"十一月",dec:"十二月"}},inputNumber:{decrease:"减少数值",increase:"增加数值"},select:{loading:"加载中",noMatch:"无匹配数据",noData:"无数据",placeholder:"请选择"},mention:{loading:"加载中"},dropdown:{toggleDropdown:"切换下拉选项"},cascader:{noMatch:"无匹配数据",loading:"加载中",placeholder:"请选择",noData:"暂无数据"},pagination:{goto:"前往",pagesize:"条/页",total:"共 {total} 条",pageClassifier:"页",page:"页",prev:"上一页",next:"下一页",currentPage:"第 {pager} 页",prevPages:"向前 {pager} 页",nextPages:"向后 {pager} 页",deprecationWarning:"你使用了一些已被废弃的用法,请参考 el-pagination 的官方文档"},dialog:{close:"关闭此对话框"},drawer:{close:"关闭此对话框"},messagebox:{title:"提示",confirm:"确定",cancel:"取消",error:"输入的数据不合法!",close:"关闭此对话框"},upload:{deleteTip:"按 Delete 键可删除",delete:"删除",preview:"查看图片",continue:"继续上传"},slider:{defaultLabel:"滑块介于 {min} 至 {max}",defaultRangeStartLabel:"选择起始值",defaultRangeEndLabel:"选择结束值"},table:{emptyText:"暂无数据",confirmFilter:"筛选",resetFilter:"重置",clearFilter:"全部",sumText:"合计",selectAllLabel:"选择所有行",selectRowLabel:"选择当前行",expandRowLabel:"展开当前行",collapseRowLabel:"收起当前行",sortLabel:"按 {column} 排序",filterLabel:"按 {column} 过滤"},tag:{close:"关闭此标签"},tour:{next:"下一步",previous:"上一步",finish:"结束导览",close:"关闭此对话框"},tree:{emptyText:"暂无数据"},transfer:{noMatch:"无匹配数据",noData:"无数据",titles:["列表 1","列表 2"],filterPlaceholder:"请输入搜索内容",noCheckedFormat:"共 {total} 项",hasCheckedFormat:"已选 {checked}/{total} 项"},image:{error:"加载失败"},pageHeader:{title:"返回"},popconfirm:{confirmButtonText:"确定",cancelButtonText:"取消"},carousel:{leftArrow:"上一张幻灯片",rightArrow:"下一张幻灯片",indicator:"幻灯片切换至索引 {index}"}}};const lt=O("system");function Es(){const e=()=>{lt.value==="dark"||lt.value==="system"&&window.matchMedia("(prefers-color-scheme: dark)").matches?document.documentElement.classList.add("dark"):document.documentElement.classList.remove("dark")},t=n=>{lt.value=n,localStorage.setItem("theme",n),e()};return ce(()=>{const n=localStorage.getItem("theme");n&&(lt.value=n),e(),window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",()=>{lt.value==="system"&&e()})}),{theme:lt,setTheme:t}}class Mn extends Error{status;data;constructor(t,n,o){super(n),this.status=t,this.data=o,this.name="HttpError"}}async function Qt(e,t={}){const n={};t.body&&(n["Content-Type"]="application/json"),t.headers&&Object.assign(n,t.headers);try{const o=await fetch(e,{...t,headers:n}),r=await o.json().catch(()=>({}));if(!o.ok)throw new Mn(o.status,r.error||r.message||`Request failed with status ${o.status}`,r);return r}catch(o){throw o instanceof Mn?o:new Mn(0,o instanceof Error?o.message:"Network error")}}const ee={get:(e,t)=>Qt(e,{method:"GET",headers:t}),post:(e,t,n)=>Qt(e,{method:"POST",body:JSON.stringify(t),headers:n}),put:(e,t,n)=>Qt(e,{method:"PUT",body:JSON.stringify(t),headers:n}),delete:(e,t)=>Qt(e,{method:"DELETE",headers:t})};class Kv{constructor(t){this.url=t}ws=null;reconnectAttempts=0;maxReconnectAttempts=5;reconnectDelay=1e3;heartbeatInterval;connect(t,n,o,r){this.ws=new WebSocket(this.url),this.ws.onopen=()=>{this.reconnectAttempts=0,n?.(),this.startHeartbeat()},this.ws.onmessage=a=>{const s=JSON.parse(a.data);t(s)},this.ws.onclose=()=>{this.stopHeartbeat(),o?.(),this.attemptReconnect(t,n,o,r)},this.ws.onerror=a=>{r?.(a)}}send(t){this.ws?.readyState===WebSocket.OPEN&&this.ws.send(JSON.stringify(t))}attemptReconnect(t,n,o,r){this.reconnectAttempts<this.maxReconnectAttempts&&(this.reconnectAttempts++,setTimeout(()=>{this.connect(t,n,o,r)},this.reconnectDelay*this.reconnectAttempts))}startHeartbeat(){this.heartbeatInterval=window.setInterval(()=>{this.send({type:"ping",timestamp:Date.now()})},3e4)}stopHeartbeat(){this.heartbeatInterval&&window.clearInterval(this.heartbeatInterval)}disconnect(){this.stopHeartbeat(),this.ws?.close()}}function Wv(e){return new Kv(e)}const Gv=Nt("toolCalls",()=>{const e=O(new Map),t=C(()=>Array.from(e.value.values()).filter(l=>l.status==="running"));function n(l){e.value.set(l.requestId,l)}function o(l){return e.value.get(l)}function r(l,u,v){const c=e.value.get(l);c&&(c.status=v?"error":"completed",c.endTime=Date.now(),c.result=v?void 0:u,c.error=v)}function a(l){n({requestId:l.requestId,serverId:l.serverId,serverName:l.serverName,toolName:l.toolName,startTime:l.timestamp,status:"running",args:l.args,progress:0})}function s(l){r(l.requestId,l.result)}function i(l){r(l.requestId,void 0,l.error)}return{calls:e,runningCalls:t,updateCall:n,getCall:o,completeCall:r,handleToolCallStarted:a,handleToolCallCompleted:s,handleToolCallError:i}});function Jn(e,t){const n={...e};for(const o in t)if(Object.prototype.hasOwnProperty.call(t,o)){const r=e[o],a=t[o];typeof r=="object"&&r!==null&&typeof a=="object"&&a!==null&&!Array.isArray(r)&&!Array.isArray(a)?n[o]=Jn(r,a):n[o]=a}return n}const Oo=Nt("system",()=>{const e=O({system:{host:"localhost",port:7788,language:"zh",theme:"system",logging:{level:"info",rotationAge:"7d",jsonPretty:!0,mcpCommDebug:!1,sessionDebug:!1}},security:{allowedNetworks:[],maxConcurrentConnections:50,connectionTimeout:3e4,idleConnectionTimeout:3e5,sessionTimeout:18e5,sessionFlushInterval:9e5,maxConnections:50},isDevMode:!1}),t=O(!1),n=O(null);async function o(){t.value=!0;try{const a=await ee.get("/web/config");return e.value=Jn(e.value,a),e.value}catch(a){const s=a;throw n.value=s.message||"Failed to fetch config",console.error("Fetch config error:",a),a}finally{t.value=!1}}async function r(a){t.value=!0;try{await ee.put("/web/config",a),e.value=Jn(e.value,a)}catch(s){const i=s;throw n.value=i.message||"Failed to update config",s}finally{t.value=!1}}return{config:e,loading:t,error:n,fetchConfig:o,updateConfig:r}}),qv=Nt("session",()=>{const e=O([]),t=O(!1),n=O(null);async function o(){t.value=!0,n.value=null;try{const a=await ee.get("/web/sessions");if(a.success)e.value=a.data;else throw new Error("Failed to fetch sessions")}catch(a){a instanceof Error?n.value=a.message||"Failed to fetch sessions":n.value="Failed to fetch sessions",console.error("Failed to fetch sessions:",a)}finally{t.value=!1}}async function r(a){try{if((await ee.delete(`/web/sessions/${a}`)).success)await o();else throw new Error("Failed to delete session")}catch(s){throw s instanceof Error?n.value=s.message||"Failed to delete session":n.value="Failed to delete session",console.error("Failed to delete session:",s),s}}return{sessions:e,loading:t,error:n,fetchSessions:o,deleteSession:r}}),V={SERVER_STATUS:"server-status",LOG:"log",TOOLS:"tools",RESOURCES:"resources",SERVER_ADDED:"server-added",SERVER_UPDATED:"server-updated",SERVER_DELETED:"server-deleted",SERVER_CONNECTED:"server-connected",SERVER_DISCONNECTED:"server-disconnected",TOOL_CALL_STARTED:"tool-call-started",TOOL_CALL_COMPLETED:"tool-call-completed",TOOL_CALL_ERROR:"tool-call-error",CONFIGURATION_UPDATED:"configuration-updated",CLIENT_CONNECTED:"client-connected",CLIENT_DISCONNECTED:"client-disconnected",PONG:"pong"},Ss=Nt("websocket",()=>{const e=O(!1),t=O(null),n=Cs();function o(f,E=100,A){t.value&&t.value.send({type:"fetch-logs",serverId:f,limit:E,since:A})}function r(){const f=window.location.protocol==="https:"?"wss:":"ws:",E=window.location.host,A=`${f}//${E}/ws`,P=Wv(A);P.connect(B=>{u(B)},()=>{e.value=!0,console.log("WebSocket connected"),P.send({type:"subscribe",eventTypes:[V.SERVER_STATUS,V.LOG,V.TOOLS,V.RESOURCES,V.SERVER_ADDED,V.SERVER_UPDATED,V.SERVER_DELETED,V.SERVER_CONNECTED,V.SERVER_DISCONNECTED,V.TOOL_CALL_STARTED,V.TOOL_CALL_COMPLETED,V.TOOL_CALL_ERROR,V.CONFIGURATION_UPDATED,V.CLIENT_CONNECTED,V.CLIENT_DISCONNECTED]})},()=>{e.value=!1,console.log("WebSocket disconnected")},B=>{console.error("WebSocket error:",B)}),t.value=P}function a(){t.value?.disconnect(),t.value=null,e.value=!1}const s=Gv(),i=Oo(),l=qv();function u(f){switch(console.log("Received WebSocket message:",f),f.type){case V.SERVER_STATUS:m(f);break;case V.LOG:p(f);break;case V.TOOLS:g(f);break;case V.RESOURCES:w(f);break;case V.SERVER_ADDED:b(f);break;case V.SERVER_UPDATED:y(f);break;case V.SERVER_DELETED:T(f);break;case V.SERVER_CONNECTED:h(f);break;case V.SERVER_DISCONNECTED:k(f);break;case V.TOOL_CALL_STARTED:s.handleToolCallStarted(f.data);break;case V.TOOL_CALL_COMPLETED:s.handleToolCallCompleted(f.data);break;case V.TOOL_CALL_ERROR:s.handleToolCallError(f.data);break;case V.CONFIGURATION_UPDATED:v(f);break;case V.CLIENT_CONNECTED:c(f);break;case V.CLIENT_DISCONNECTED:d(f);break;case V.PONG:break;default:console.warn("Unknown WebSocket message type:",f.type)}}function v(f){console.log("Configuration updated:",f.data),i.fetchConfig()}function c(f){console.log("Client connected:",f.data),l.fetchSessions()}function d(f){console.log("Client disconnected:",f.data),l.fetchSessions()}function m(f){const{serverId:E,status:A,error:P}=f.data;n.updateServerStatus(E,S(A)),P&&console.error(`Server ${E} error:`,P)}function p(f){const{serverId:E,logs:A}=f.data,P=n.servers.find(B=>B.id===E);if(P&&A&&A.length>0){if(A.length>1)P.logs=A;else{const I=A[0];I&&I.timestamp&&P.logs.push({timestamp:I.timestamp,level:I.level,message:I.message})}const B=1e3;P.logs.length>B&&P.logs.splice(0,P.logs.length-B)}}function g(f){const{serverId:E,tools:A}=f.data,P=n.servers.find(B=>B.id===E);P&&(P.tools=A,P.toolsCount=A.length)}function w(f){const{serverId:E,resources:A}=f.data,P=n.servers.find(B=>B.id===E);P&&(P.resources=A,P.resourcesCount=A.length)}function b(f){console.log("Server added:",f.data),n.fetchServers()}function y(f){console.log("Server updated:",f.data),n.fetchServers()}function T(f){console.log("Server deleted:",f.data),n.fetchServers()}function h(f){const{serverId:E}=f.data;n.updateServerStatus(E,"online")}function k(f){const{serverId:E}=f.data;n.updateServerStatus(E,"offline")}function S(f){return["online","offline","error","starting","stopping"].includes(f)?f:"starting"}return ce(()=>{r()}),me(()=>{a()}),{connected:e,connect:r,disconnect:a,fetchLogs:o}}),Cs=Nt("server",()=>{const e=O([]),t=O(!1),n=O(null),o=O(null),r=C(()=>e.value.find(S=>S.id===o.value)),a=C(()=>({total:e.value.length,online:e.value.filter(S=>S.status==="online").length,errors:e.value.filter(S=>S.status==="error").length}));function s(S){o.value=S}async function i(){t.value=!0,n.value=null;try{const[S,f,E]=await Promise.all([ee.get("/web/servers"),ee.get("/web/server-instances"),ee.get("/web/mcp/status")]),A=new Map(e.value.map(R=>[R.id,R.logs])),P=new Map(e.value.map(R=>[R.id,R.tools])),B=new Map(e.value.map(R=>[R.id,R.resources])),I=[];S.forEach(({name:R,config:z})=>{const X=f[R]||[];if(X.length>0)X.forEach(W=>{const K=W.id,M=E.find(he=>he.id===K)?.status;let q;M?.connected?q="online":M?.error?q="error":z.enabled?q="starting":q="offline",I.push({id:K,name:R,status:q,type:z.type==="sse"||z.type==="streamable-http"?"remote":"local",config:z,instance:W,logs:A.get(K)||[],tools:P.get(K),resources:B.get(K),uptime:M?.connected?"Active":void 0,startTime:M?.startTime,pid:M?.pid,toolsCount:M?.toolsCount,resourcesCount:M?.resourcesCount,version:M?.version})});else{const W=`config-${R}-${Date.now()}`;let K;z.enabled?K="starting":K="offline",I.push({id:W,name:R,status:K,type:z.type==="sse"||z.type==="streamable-http"?"remote":"local",config:z,instance:{id:W,timestamp:Date.now(),hash:"config-only"},logs:A.get(W)||[],tools:P.get(W),resources:B.get(W),uptime:void 0,startTime:void 0,pid:void 0,toolsCount:0,resourcesCount:0,version:void 0})}}),e.value=I}catch(S){S instanceof Error?n.value=S.message||"Failed to fetch servers":n.value=String(S)||"Failed to fetch servers",console.error("Fetch servers error:",S)}finally{t.value=!1}}async function l(S){t.value=!0;try{const f={name:S.name||"Unnamed Server",config:S.config||{}};if(await ee.post("/web/servers",f),S.config?.enabled){await i();const E=e.value.find(A=>A.name===S.name);E&&(p(E.id,"starting"),setTimeout(async()=>{await i()},1e3))}else await i()}catch(f){throw f instanceof Error?n.value=f.message||"Failed to add server":n.value=String(f)||"Failed to add server",f}finally{t.value=!1}}async function u(S,f){t.value=!0;try{const E=e.value.find(A=>A.id===S);if(!E)throw new Error("Server not found");if(f.name&&f.name!==E.name&&await ee.put(`/web/servers/${E.name}`,{name:f.name}),f.config){const A={};f.config.command&&(A.command=f.config.command),f.config.args&&(A.args=f.config.args),f.config.env&&(A.env=f.config.env),f.config.headers!==void 0&&(A.headers=f.config.headers),f.config.url&&(A.url=f.config.url),f.config.timeout!==void 0&&(A.timeout=f.config.timeout),f.config.enabled!==void 0&&(A.enabled=f.config.enabled),f.config.allowedTools!==void 0&&(A.allowedTools=f.config.allowedTools),f.config.type&&(A.type=f.config.type),f.config.tags&&(A.tags=f.config.tags),f.config.description!==void 0&&(A.description=f.config.description),await ee.put(`/web/servers/${E.name}`,A)}await i()}catch(E){throw E instanceof Error?n.value=E.message||"Failed to update server":n.value=String(E)||"Failed to update server",E}finally{t.value=!1}}async function v(S){try{const f=e.value.find(A=>A.id===S);if(!f)throw new Error("Server not found");p(S,"starting");let E=S;S.startsWith("config-")&&(E=(await ee.post(`/web/server-instances/${f.name}`,{})).id),await ee.post(`/web/mcp/servers/${E}/connect`,{}),await i()}catch(f){throw f instanceof Error?n.value=f.message||"Failed to start server":n.value=String(f)||"Failed to start server",p(S,"error"),f}}async function c(S){try{if(!e.value.find(E=>E.id===S))throw new Error("Server not found");if(S.startsWith("config-")){await i();return}await ee.post(`/web/mcp/servers/${S}/disconnect`,{}),await i()}catch(f){throw f instanceof Error?n.value=f.message||"Failed to stop server":n.value=String(f)||"Failed to stop server",f}}async function d(S){try{const f=e.value.find(E=>E.id===S);if(f)if(S.startsWith("config-"))await ee.delete(`/web/servers/${f.name}`);else{const A=(await ee.get("/web/server-instances"))[f.name]||[];if(A.length>1){const P=A.findIndex(B=>B.id===S);P!==-1&&await ee.delete(`/web/server-instances/${f.name}/${P}`)}else await ee.delete(`/web/servers/${f.name}`)}await i(),o.value===S&&(o.value=null)}catch(f){throw f instanceof Error?n.value=f.message||"Failed to delete server":n.value=String(f)||"Failed to delete server",f}}async function m(S){t.value=!0;try{const f={mcpServers:Object.entries(S.mcpServers).map(([A,P])=>({name:A,config:P}))},E=await ee.post("/web/servers/batch",f);return await i(),E.data}catch(f){throw f instanceof Error?n.value=f.message||"Failed to import servers":n.value=String(f)||"Failed to import servers",f}finally{t.value=!1}}function p(S,f){const E=e.value.find(A=>A.id===S);E&&(E.status=f)}async function g(S){try{const f=await ee.get(`/web/mcp/servers/${S}/tools`),E=e.value.find(A=>A.id===S);return E&&(E.tools=f),f}catch(f){return console.error("Fetch tools error:",f),[]}}async function w(S){try{const f=await ee.get(`/web/mcp/servers/${S}/resources`),E=e.value.find(A=>A.id===S);return E&&(E.resources=f),f}catch(f){return console.error("Fetch resources error:",f),[]}}function b(S){Ss().fetchLogs(S,100)}async function y(S){try{await ee.delete(`/web/servers/${S}/logs`);const f=e.value.find(E=>E.id===S);f&&(f.logs=[])}catch(f){console.error("Clear logs error:",f)}}function T(){e.value.forEach(S=>b(S.id))}async function h(S,f){try{const E=`/web/servers/${encodeURIComponent(S)}/resources/read?uri=${encodeURIComponent(f)}`;return(await ee.get(E)).contents[0]}catch(E){throw console.error("Failed to read resource:",E),E}}async function k(){try{return(await ee.get("/web/resources")).resources}catch(S){throw console.error("Failed to fetch all resources:",S),S}}return{servers:e,loading:t,error:n,selectedServerId:o,selectedServer:r,stats:a,selectServer:s,fetchServers:i,addServer:l,updateServer:u,startServer:v,stopServer:c,deleteServer:d,importServersFromJson:m,updateServerStatus:p,fetchTools:g,fetchResources:w,fetchLogs:b,fetchAllLogs:T,clearLogs:y,readResource:h,fetchAllResources:k}}),Jv={class:"h-14 px-4 flex items-center justify-between bg-white dark:bg-[#1e293b] border-b border-gray-200 dark:border-gray-700 transition-colors duration-300 shrink-0 z-50"},Yv={class:"flex items-center gap-8"},Zv={class:"hidden md:flex items-center gap-1"},Xv={class:"flex items-center gap-3"},Qv={class:"p-1.5 rounded-md hover:bg-gray-100 dark:hover:bg-gray-700 text-gray-600 dark:text-gray-300 transition-colors flex items-center justify-center"},e2={class:"flex items-center gap-1 px-2 py-1.5 rounded-md hover:bg-gray-100 dark:hover:bg-gray-700 text-gray-600 dark:text-gray-300 transition-colors text-sm font-medium"},t2=L({__name:"HeaderView",setup(e){const{locale:t}=Xr(),{theme:n,setTheme:o}=Es(),r=Cs(),a=Oo(),s=Js(),i=Ys(),l=C(()=>i.name==="dashboard"&&!r.selectedServerId),u=C(()=>i.name==="servers"),v=C(()=>i.name==="tools"),c=C(()=>i.name==="resources"||i.name==="resource-detail"),d=C(()=>i.name==="sessions"),m=C(()=>i.name==="settings"),p=b=>{o(b),a.updateConfig({theme:b})},g=b=>{t.value=b,a.updateConfig({language:b})},w=b=>{r.selectedServerId=null,s.push({name:b})};return(b,y)=>{const T=Lt,h=jv,k=Vv,S=zv;return x(),D("header",Jv,[F("div",Yv,[F("div",{class:"flex items-center gap-2 font-bold text-xl text-gray-900 dark:text-white cursor-pointer",onClick:y[0]||(y[0]=f=>w("dashboard"))},[H(T,{class:"text-blue-600 dark:text-blue-400"},{default:$(()=>[H(_(Cd))]),_:1}),y[7]||(y[7]=F("span",null,"MCP Hub Lite",-1))]),F("nav",Zv,[F("button",{onClick:y[1]||(y[1]=f=>w("dashboard")),class:J(["px-3 py-1.5 rounded-md text-sm font-medium transition-colors",[l.value?"bg-gray-100 dark:bg-gray-700 text-blue-600 dark:text-blue-400":"text-gray-600 dark:text-gray-300 hover:bg-gray-50 dark:hover:bg-gray-800"]])},Ne(b.$t("sidebar.dashboard")),3),F("button",{onClick:y[2]||(y[2]=f=>w("servers")),class:J(["px-3 py-1.5 rounded-md text-sm font-medium transition-colors",[u.value?"bg-gray-100 dark:bg-gray-700 text-blue-600 dark:text-blue-400":"text-gray-600 dark:text-gray-300 hover:bg-gray-50 dark:hover:bg-gray-800"]])},Ne(b.$t("sidebar.servers")),3),F("button",{onClick:y[3]||(y[3]=f=>w("tools")),class:J(["px-3 py-1.5 rounded-md text-sm font-medium transition-colors",[v.value?"bg-gray-100 dark:bg-gray-700 text-blue-600 dark:text-blue-400":"text-gray-600 dark:text-gray-300 hover:bg-gray-50 dark:hover:bg-gray-800"]])},Ne(b.$t("tools.title")),3),F("button",{onClick:y[4]||(y[4]=f=>w("resources")),class:J(["px-3 py-1.5 rounded-md text-sm font-medium transition-colors",[c.value?"bg-gray-100 dark:bg-gray-700 text-blue-600 dark:text-blue-400":"text-gray-600 dark:text-gray-300 hover:bg-gray-50 dark:hover:bg-gray-800"]])},Ne(b.$t("sidebar.resources")),3),F("button",{onClick:y[5]||(y[5]=f=>w("sessions")),class:J(["px-3 py-1.5 rounded-md text-sm font-medium transition-colors",[d.value?"bg-gray-100 dark:bg-gray-700 text-blue-600 dark:text-blue-400":"text-gray-600 dark:text-gray-300 hover:bg-gray-50 dark:hover:bg-gray-800"]])},Ne(b.$t("sidebar.sessions")),3),F("button",{onClick:y[6]||(y[6]=f=>w("settings")),class:J(["px-3 py-1.5 rounded-md text-sm font-medium transition-colors",[m.value?"bg-gray-100 dark:bg-gray-700 text-blue-600 dark:text-blue-400":"text-gray-600 dark:text-gray-300 hover:bg-gray-50 dark:hover:bg-gray-800"]])},Ne(b.$t("sidebar.settings")),3)])]),F("div",Xv,[H(S,{trigger:"click",onCommand:p},{dropdown:$(()=>[H(k,null,{default:$(()=>[H(h,{command:"light",class:J({"text-blue-500":_(n)==="light"})},{default:$(()=>[H(T,null,{default:$(()=>[H(_(mr))]),_:1}),y[8]||(y[8]=at(" Light ",-1))]),_:1},8,["class"]),H(h,{command:"dark",class:J({"text-blue-500":_(n)==="dark"})},{default:$(()=>[H(T,null,{default:$(()=>[H(_(vr))]),_:1}),y[9]||(y[9]=at(" Dark ",-1))]),_:1},8,["class"]),H(h,{command:"system",class:J({"text-blue-500":_(n)==="system"})},{default:$(()=>[H(T,null,{default:$(()=>[H(_(pr))]),_:1}),y[10]||(y[10]=at(" System ",-1))]),_:1},8,["class"])]),_:1})]),default:$(()=>[F("button",Qv,[_(n)==="light"?(x(),Z(T,{key:0,size:18},{default:$(()=>[H(_(mr))]),_:1})):_(n)==="dark"?(x(),Z(T,{key:1,size:18},{default:$(()=>[H(_(vr))]),_:1})):(x(),Z(T,{key:2,size:18},{default:$(()=>[H(_(pr))]),_:1}))])]),_:1}),H(S,{trigger:"click",onCommand:g},{dropdown:$(()=>[H(k,null,{default:$(()=>[H(h,{command:"en",class:J({"text-blue-500":_(t)==="en"})},{default:$(()=>[...y[11]||(y[11]=[at("English",-1)])]),_:1},8,["class"]),H(h,{command:"zh",class:J({"text-blue-500":_(t)==="zh"})},{default:$(()=>[...y[12]||(y[12]=[at("中文",-1)])]),_:1},8,["class"])]),_:1})]),default:$(()=>[F("button",e2,[at(Ne(_(t)==="zh"?"中文":"EN")+" ",1),H(T,{size:12},{default:$(()=>[H(_(Ra))]),_:1})])]),_:1})])])}}}),n2={class:"flex-1 flex overflow-hidden relative"},o2=L({__name:"App",setup(e){const{locale:t}=Xr(),{theme:n,setTheme:o}=Es(),r=Oo();Ss();const a=C(()=>t.value==="zh"?Uv:_a);return ce(async()=>{if(await r.fetchConfig(),r.config.system.language&&(t.value=r.config.system.language),r.config.system.theme){const s=r.config.system.theme;o(s)}}),U(()=>r.config.system.theme,s=>{s&&s!==n.value&&o(s)}),U(()=>r.config.system.language,s=>{s&&s!==t.value&&(t.value=s)}),(s,i)=>{const l=ie("router-view"),u=ev;return x(),Z(u,{locale:a.value},{default:$(()=>[F("div",{class:J(["app-container h-screen w-screen overflow-hidden flex flex-col bg-gray-50 dark:bg-gray-900 text-gray-900 dark:text-gray-100 transition-colors duration-300",_(n)==="dark"?"dark":""])},[H(t2),F("div",n2,[H(l)])],2)]),_:1},8,["locale"])}}}),r2="modulepreload",a2=function(e){return"/"+e},Wr={},$e=function(t,n,o){let r=Promise.resolve();if(n&&n.length>0){let l=function(u){return Promise.all(u.map(v=>Promise.resolve(v).then(c=>({status:"fulfilled",value:c}),c=>({status:"rejected",reason:c}))))};document.getElementsByTagName("link");const s=document.querySelector("meta[property=csp-nonce]"),i=s?.nonce||s?.getAttribute("nonce");r=l(n.map(u=>{if(u=a2(u),u in Wr)return;Wr[u]=!0;const v=u.endsWith(".css"),c=v?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${u}"]${c}`))return;const d=document.createElement("link");if(d.rel=v?"stylesheet":r2,v||(d.as="script"),d.crossOrigin="",d.href=u,i&&d.setAttribute("nonce",i),document.head.appendChild(d),v)return new Promise((m,p)=>{d.addEventListener("load",m),d.addEventListener("error",()=>p(new Error(`Unable to preload CSS for ${u}`)))})}))}function a(s){const i=new Event("vite:preloadError",{cancelable:!0});if(i.payload=s,window.dispatchEvent(i),!i.defaultPrevented)throw s}return r.then(s=>{for(const i of s||[])i.status==="rejected"&&a(i.reason);return t().catch(a)})},s2=Zs({history:Xs("/"),routes:[{path:"/",component:()=>$e(()=>import("./HomeView-7rMg9C6t.js"),__vite__mapDeps([0,1,2,3])),children:[{path:"",name:"dashboard",component:()=>$e(()=>import("./ServerDashboard-G8Wmp4hF.js"),__vite__mapDeps([4,5,2,6,7,8,9,10,11,3,12,13,14,15,16,17,18,19,20,21,22,23,24,25,1,26,27,28]))},{path:"servers",name:"servers",component:()=>$e(()=>import("./ServerListView-dV2XrPjo.js"),__vite__mapDeps([29,5,2,6,7,8,23,19,15,3,16,24,1,27,9,30]))},{path:"tools",name:"tools",component:()=>$e(()=>import("./ToolsView-0c2eputu.js"),__vite__mapDeps([31,5,2,6,7,8,15,3,16,25,13,14,12,17,1,9,26,32]))},{path:"resources",name:"resources",component:()=>$e(()=>import("./ResourcesView-g5x4xCPh.js"),__vite__mapDeps([33,21,2,19,18,13,14,7,11,22,15,3,16,9,34]))},{path:"sessions",name:"sessions",component:()=>$e(()=>import("./SessionsView-Ckd38lj1.js"),__vite__mapDeps([35,36,2,37,21,19,18,13,14,7,11,22]))},{path:"servers/:name/resources/detail",name:"resource-detail",component:()=>$e(()=>import("./ResourceDetailView-Bf-1ffbk.js"),__vite__mapDeps([38,36,2,37,7,18,19,9,39]))},{path:"settings",name:"settings",component:()=>$e(()=>import("./SettingsView-BJUdepEQ.js"),__vite__mapDeps([40,36,2,37,10,11,3,12,13,14,15,7,16,6,17,18,19,20,23,24,1]))}]}]}),i2={action:{back:"Back",start:"Start",stop:"Stop",restart:"Restart",delete:"Delete",edit:"Edit",save:"Save",cancel:"Cancel",configure:"Configure",create:"Create Server",view:"View",restarted:"Server restarted",stopped:"Server stopped",started:"Server started",saved:"Configuration saved",configSaved:"Configuration saved",serverDeleted:"Server deleted",logsCleared:"Logs cleared",logsCopied:"Logs copied to clipboard",serverAdded:"Server added successfully",configImported:"Configuration imported successfully",saveSuccess:"Configuration saved successfully"},sidebar:{title:"MCP Server Manager",dashboard:"Dashboard",sessions:"Sessions",servers:"MCP Servers",resources:"MCP Resources",addServer:"Add New Server",settings:"Settings"},resources:{title:"MCP Resource Gateway",searchPlaceholder:"Search all resources...",noResources:"No resources found. Connect some servers to get started.",read:"Read",serverTag:"Server",systemResources:"Gateway System Resources",serverResources:"Server Resources",toolResources:"Tool Resources",dataResources:"Data Resources",name:"Name",uri:"URI",mimeType:"MIME Type",description:"Description",server:"Server",contentPreview:"Content Preview",preview:"Preview",source:"Source",download:"Download",loadingContent:"Loading content...",noDescription:"No description available"},sessions:{title:"Persisted Sessions",refresh:"Refresh",sessionId:"Session ID",clientName:"Client Name",clientVersion:"Client Version",protocolVersion:"Protocol Version",capabilities:"Capabilities",userAgent:"User Agent",cwd:"CWD",project:"Project",createdAt:"Created At",lastAccessedAt:"Last Accessed At"},settings:{title:"System Settings",save:"Save Changes",systemTab:"System",host:"Host",port:"Port",appearance:"Appearance",theme:"Theme",language:"Language",themeLight:"Light",themeDark:"Dark",themeSystem:"System Default",langEn:"English",langZh:"Chinese",logging:"Logging",logLevel:"Log Level",logRotation:"Log Rotation",maxAge:"Max Age (Days)",debugOptions:"Debug Options",jsonPretty:"Pretty JSON in logs",mcpCommDebug:"Enable MCP communication debug",sessionDebug:"Enable session debug",security:"Security",allowedNetworks:"Allowed Networks",allowedNetworksHint:"Enter IP CIDR (e.g., 192.168.1.0/24). Press Enter to add.",maxConcurrentConnections:"Max Concurrent Connections",maxConnections:"Max Connections",connectionTimeout:"Connection Timeout",idleConnectionTimeout:"Idle Connection Timeout",sessionTimeout:"Session Timeout",sessionFlushInterval:"Session Flush Interval",fetchError:"Failed to fetch configuration",saveSuccess:"Configuration saved successfully",saveError:"Failed to save configuration",timeUnits:{seconds:"Seconds",minutes:"Minutes",hours:"Hours",days:"Days"}},dashboard:{title:"Dashboard",totalServers:"Total Servers",running:"Running",errors:"Errors",recentActivity:"Recent Activity"},serverDetail:{emptySelect:"Select a server to view details",noServerSelected:"No server selected",deleteConfirm:"Are you sure you want to delete this server?",version:"Version",pid:"PID",uptime:"Uptime",tabs:{config:"Configuration",logs:"Logs",tools:"Tools",resources:"Resources"},config:{transport:"Transport",transportStdio:"Standard Input/Output (stdio)",transportSse:"Server-Sent Events (sse)",transportHttp:"Streamable HTTP (streamableHttp)",executable:"Executable",args:"Arguments",url:"URL",env:"Environment Variables",timeout:"Timeout (s)",autoStart:"Auto-start",addArg:"Add Argument",addEnv:"Add Environment Variable",save:"Save Configuration",editByJson:"Edit By Json",description:"Description",descriptionPlaceholder:"Enter server description"},logs:{autoScroll:"Auto-scroll",clear:"Clear",copy:"Copy",copied:"Logs copied to clipboard",instance:"Instance",selectInstance:"Select an instance"},tools:{title:"Tool Discovery",available:"Available Tools",details:"Tool Details",schema:"Schema (JSON)",selectHint:"Select a tool to view details",none:"No tools available",aggregated:"Aggregated",call:"Call"},resources:{name:"Name",uri:"URI",mimeType:"MIME Type",none:"No resources available"},status:{running:"Running",online:"Running",stopped:"Stopped",offline:"Stopped",stopping:"Stopping",error:"Error",starting:"Starting"}},addServer:{title:"Add New MCP Server",transportType:"Select Transport Type",name:"Server Name",namePlaceholder:"My New Server",executablePlaceholder:"/path/to/executable or npx",argPlaceholder:"Argument",urlPlaceholder:"http://localhost:3000/sse",keyPlaceholder:"Key",byJson:"By Json",valuePlaceholder:"Value",importBatch:"Import Batch",batchImportTitle:"Batch Import MCP Servers",importAll:"Import All"},error:{stdioCommandRequired:"STDIO server requires a valid command",sseUrlRequired:"SSE server requires a valid URL",httpUrlRequired:"Streamable HTTP server requires a valid URL",unsupportedTransportType:"Unsupported transport type",connectionFailed:"Failed to connect to server",invalidServerConfig:"Invalid server configuration",addServerFailed:"Failed to add server",invalidJsonConfig:"Invalid JSON configuration",saveFailed:"Failed to save configuration"},tools:{title:"MCP Tool Gateway",searchPlaceholder:"Search all tools (e.g., 'file', 'database', 'list')...",systemTools:"Gateway System Tools",aggregatedTools:"Aggregated Server Tools",noToolsFound:"No tools found. Connect some servers to get started.",call:"Call",noDescription:"No description provided",systemTag:"System",online:"Online",offline:"Offline"},toolCallDialog:{title:"Call Tool: {toolName}",arguments:"Arguments (JSON)",jsonPlaceholder:'{"key": "value"}',formatJson:"Format JSON",response:"Response",inputSchema:"Input Schema",showResponse:"Show Response",showInputSchema:"Show Input Schema",executing:"Executing...",execute:"Execute",invalidJson:"Invalid JSON",invalidJsonArguments:"Invalid JSON arguments",executionSuccessful:"Tool execution successful",executionFailed:"Tool execution failed",instance:"Instance",selectInstance:"Select an instance"}},l2={action:{back:"返回",start:"启动",stop:"停止",restart:"重启",delete:"删除",edit:"编辑",save:"保存",cancel:"取消",configure:"配置",create:"创建服务器",view:"查看",restarted:"服务器已重启",stopped:"服务器已停止",started:"服务器已启动",saved:"配置已保存",configSaved:"配置已保存",serverDeleted:"服务器已删除",logsCleared:"日志已清空",logsCopied:"日志已复制到剪贴板",serverAdded:"服务器添加成功",configImported:"配置导入成功",saveSuccess:"配置保存成功"},sidebar:{title:"MCP 服务器管理器",dashboard:"仪表板",sessions:"会话",servers:"MCP 服务器",resources:"MCP 资源网关",addServer:"添加新服务器",settings:"设置"},resources:{title:"MCP 资源网关",searchPlaceholder:"搜索所有资源...",noResources:"未找到资源。请连接一些服务器以开始使用。",read:"读取",serverTag:"服务器",systemResources:"网关系统资源",serverResources:"服务器资源",toolResources:"工具资源",dataResources:"数据资源",name:"名称",uri:"URI",mimeType:"MIME 类型",description:"描述",server:"服务器",contentPreview:"内容预览",preview:"预览",source:"源代码",download:"下载",loadingContent:"加载内容中...",noDescription:"无描述信息"},sessions:{title:"持久化会话",refresh:"刷新",sessionId:"会话 ID",clientName:"客户端名称",clientVersion:"客户端版本",protocolVersion:"协议版本",capabilities:"能力",userAgent:"用户代理",cwd:"工作目录",project:"项目",createdAt:"创建时间",lastAccessedAt:"最后访问时间"},settings:{title:"系统设置",save:"保存更改",systemTab:"系统",host:"主机地址",port:"端口号",appearance:"外观设置",theme:"主题",language:"语言",themeLight:"浅色",themeDark:"深色",themeSystem:"跟随系统",langEn:"English",langZh:"中文",logging:"日志设置",logLevel:"日志级别",logRotation:"日志轮转",maxAge:"最大保留时间 (天)",debugOptions:"调试选项",jsonPretty:"日志中JSON格式化",mcpCommDebug:"启用MCP通信调试",sessionDebug:"启用会话调试",security:"安全设置",allowedNetworks:"允许的网络",allowedNetworksHint:"输入 IP CIDR (如 192.168.1.0/24)。按回车添加。",maxConcurrentConnections:"最大并发连接数",maxConnections:"最大连接数",connectionTimeout:"连接超时",idleConnectionTimeout:"空闲连接超时",sessionTimeout:"会话超时",sessionFlushInterval:"会话刷盘间隔",fetchError:"获取配置失败",saveSuccess:"配置保存成功",saveError:"保存配置失败",timeUnits:{seconds:"秒",minutes:"分钟",hours:"小时",days:"天"}},dashboard:{title:"仪表盘",totalServers:"服务器总数",running:"运行中",errors:"错误",recentActivity:"近期活动"},serverDetail:{emptySelect:"请选择一个服务器以查看详情",noServerSelected:"未选择服务器",deleteConfirm:"确定要删除此服务器吗?",version:"版本",pid:"进程ID",uptime:"运行时间",tabs:{config:"配置",logs:"日志",tools:"工具",resources:"资源"},config:{transport:"传输方式",transportStdio:"标准输入/输出 (stdio)",transportSse:"服务器发送事件 (sse)",transportHttp:"可流式传输的http (streamableHttp)",executable:"可执行文件",args:"参数",url:"服务地址",env:"环境变量",timeout:"超时时间 (秒)",autoStart:"随系统启动",addArg:"添加参数",addEnv:"添加环境变量",save:"保存配置",editByJson:"通过 JSON 编辑",description:"描述",descriptionPlaceholder:"请输入服务器描述"},logs:{autoScroll:"自动滚动",clear:"清空",copy:"复制",copied:"日志已复制到剪贴板",instance:"实例",selectInstance:"选择一个实例"},tools:{title:"工具发现",available:"可用工具",details:"工具详情",schema:"参数 Schema (JSON)",selectHint:"请选择一个工具以查看详情",none:"暂无可用工具",aggregated:"聚合",call:"调用"},resources:{name:"名称",uri:"URI",mimeType:"MIME 类型",none:"暂无可用资源"},status:{running:"运行中",online:"运行中",stopped:"已停止",offline:"已停止",stopping:"停止中",error:"错误",starting:"启动中"}},addServer:{title:"添加新 MCP 服务器",transportType:"选择传输类型",name:"服务器名称",namePlaceholder:"我的新服务器",executablePlaceholder:"/path/to/executable 或 npx",argPlaceholder:"参数",urlPlaceholder:"http://localhost:3000/sse",keyPlaceholder:"键",byJson:"通过 JSON 添加",valuePlaceholder:"值",importBatch:"批量导入",batchImportTitle:"批量导入 MCP 服务器",importAll:"全部导入"},error:{stdioCommandRequired:"STDIO 服务器需要有效的命令",sseUrlRequired:"SSE 服务器需要有效的 URL",httpUrlRequired:"可流式传输的 HTTP 服务器需要有效的 URL",unsupportedTransportType:"不支持的传输类型",connectionFailed:"连接服务器失败",invalidServerConfig:"服务器配置无效",addServerFailed:"添加服务器失败",invalidJsonConfig:"无效的 JSON 配置",unknown:"发生未知错误",saveFailed:"保存配置失败"},tools:{title:"MCP 工具网关",searchPlaceholder:"搜索所有工具 (例如:'file', 'database', 'list')...",systemTools:"网关系统工具",aggregatedTools:"聚合服务器工具",noToolsFound:"未找到工具。请连接一些服务器以开始使用。",call:"调用",noDescription:"未提供描述",systemTag:"系统",online:"在线",offline:"离线"},toolCallDialog:{title:"调用工具: {toolName}",arguments:"参数 (JSON)",jsonPlaceholder:'{"key": "value"}',formatJson:"格式化 JSON",response:"响应",inputSchema:"输入 Schema",showResponse:"显示响应",showInputSchema:"显示输入 Schema",executing:"执行中...",execute:"执行",invalidJson:"无效的 JSON",invalidJsonArguments:"无效的 JSON 参数",executionSuccessful:"工具执行成功",executionFailed:"工具执行失败",instance:"实例",selectInstance:"选择一个实例"}},u2=Qs({legacy:!1,locale:"en",fallbackLocale:"en",messages:{en:i2,zh:l2}}),Cn=ei(o2);Cn.use(ti());Cn.use(s2);Cn.use(u2);Cn.mount("#app");export{ma as $,U2 as A,em as B,B2 as C,H2 as D,re as E,te as F,N as G,so as H,se as I,Ue as J,Oo as K,k2 as L,q2 as M,Z2 as N,ee as O,W2 as P,Ra as Q,L2 as R,Mn as S,am as T,Un as U,un as V,Sa as W,ps as X,rm as Y,If as Z,Q as _,Lt as a,lm as a$,Ia as a0,jc as a1,T2 as a2,A2 as a3,x2 as a4,O2 as a5,wa as a6,en as a7,m2 as a8,x0 as a9,Ta as aA,Ha as aB,uo as aC,Qd as aD,w2 as aE,p2 as aF,_c as aG,Na as aH,um as aI,Tc as aJ,O0 as aK,E2 as aL,ca as aM,Su as aN,Je as aO,R2 as aP,hf as aQ,Ce as aR,jn as aS,P2 as aT,$2 as aU,nm as aV,F2 as aW,mr as aX,vr as aY,pr as aZ,V2 as a_,td as aa,G2 as ab,Se as ac,io as ad,z2 as ae,qv as af,$i as ag,Ki as ah,vi as ai,rn as aj,Gi as ak,eo as al,to as am,$l as an,Le as ao,zi as ap,ft as aq,Bn as ar,la as as,xe as at,oo as au,ra as av,Ve as aw,pi as ax,wu as ay,lo as az,zf as b,h2 as b0,y2 as b1,b2,ka as b3,Gc as b4,cn as b5,v2 as b6,bn as b7,K2 as b8,Bf as b9,kl as bA,Lu as bB,Ru as bC,da as bD,Mu as bE,or as bF,Oe as bG,ze as bH,xl as bI,Go as bJ,Zo as bK,_2 as ba,im as bb,f2 as bc,Rc as bd,Dc as be,Zc as bf,ho as bg,ff as bh,g2 as bi,X0 as bj,C2 as bk,zn as bl,dn as bm,j2 as bn,Qn as bo,pa as bp,zl as bq,ao as br,wc as bs,ua as bt,yt as bu,hn as bv,Eu as bw,Ui as bx,Ji as by,Fl as bz,fs as c,S2 as d,sm as e,wn as f,ot as g,ct as h,ae as i,d2 as j,Ss as k,La as l,Vn as m,md as n,cm as o,I2 as p,D2 as q,Y2 as r,Q2 as s,J2 as t,Cs as u,tm as v,om as w,N2 as x,X2 as y,M2 as z};