hermes-web-ui 0.1.4 → 0.1.6

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 (41) hide show
  1. package/dist/assets/ChatView-DmXZ5Q3Z.js +18 -0
  2. package/dist/assets/ChatView-cCVO1N9F.css +1 -0
  3. package/dist/assets/Dropdown-8pId5Qsj.js +125 -0
  4. package/dist/assets/Input-BZKSQ403.js +234 -0
  5. package/dist/assets/JobsView-CQf4Y7Mw.js +123 -0
  6. package/dist/assets/{LogsView-BSNn4Rmi.js → LogsView-CKyL3UT5.js} +1 -1
  7. package/dist/assets/{MemoryView-BsGBmN7h.js → MemoryView-BBwqM3vf.js} +1 -1
  8. package/dist/assets/{Modal-CSHJclVU.js → Modal-BtRuxNI4.js} +9 -9
  9. package/dist/assets/Popover-C2CJscsj.js +161 -0
  10. package/dist/assets/Select-CithN5ti.js +410 -0
  11. package/dist/assets/SettingsView-D1hOGA0Z.js +1005 -0
  12. package/dist/assets/{SkillsView-CciuH5wp.js → SkillsView-BfnrX5TQ.js} +1 -1
  13. package/dist/assets/{Spin-DWreY5m0.js → Spin-7g8GCzi5.js} +3 -3
  14. package/dist/assets/Suffix-DI9irQ4f.js +101 -0
  15. package/dist/assets/{Tooltip-BCHslENT.js → Tooltip-BdrvORgU.js} +1 -1
  16. package/dist/assets/_plugin-vue_export-helper-BrYOyDjU.js +47 -0
  17. package/dist/assets/{app-4gFjNUoo.js → app-JRkV5-Ft.js} +1 -1
  18. package/dist/assets/chat-Cgdof9SF.js +6 -0
  19. package/dist/assets/{context-B74FvHiJ.js → context-DW8F1iIn.js} +1 -1
  20. package/dist/assets/{index-Cx8mFF2D.js → index-DP1JeABS.js} +5 -5
  21. package/dist/assets/{jobs-DVxci1LY.js → jobs-DJ8ETzok.js} +1 -1
  22. package/dist/assets/{skills-DgbQAgoB.js → skills-CkDtgKB5.js} +1 -1
  23. package/dist/assets/{use-message-Dz_GbH5h.js → use-message-Btr-O4Ih.js} +1 -1
  24. package/dist/index.html +11 -13
  25. package/dist/server/routes/sessions.js +16 -0
  26. package/dist/server/services/hermes-cli.d.ts +4 -0
  27. package/dist/server/services/hermes-cli.js +25 -1
  28. package/package.json +1 -1
  29. package/dist/assets/ChatView-BCcUaLWg.css +0 -1
  30. package/dist/assets/ChatView-gu2Y-jpZ.js +0 -16
  31. package/dist/assets/Input-yD_s5hp8.js +0 -234
  32. package/dist/assets/JobsView-C1YU-sgU.js +0 -123
  33. package/dist/assets/Popover-blRIsd-8.js +0 -117
  34. package/dist/assets/Scrollbar-CYtpM7mc.js +0 -77
  35. package/dist/assets/Select-DTG-wtu5.js +0 -454
  36. package/dist/assets/SettingsView-CppuSCZA.js +0 -1129
  37. package/dist/assets/Suffix-B828Aenx.js +0 -25
  38. package/dist/assets/Warning-Ba-wYRRB.js +0 -1
  39. package/dist/assets/_plugin-vue_export-helper-CV9qMihF.js +0 -47
  40. package/dist/assets/chat-P2QaPvpZ.js +0 -6
  41. /package/dist/assets/{client-BKiVmpru.js → client-kwQ0ijpp.js} +0 -0
@@ -1,117 +0,0 @@
1
- import{C as e,E as t,I as n,K as r,M as i,T as a,U as o,W as s,a as c,at as l,c as u,et as d,g as f,i as p,k as m,l as h,o as g,r as _,tt as v,v as y,x as b,y as x}from"./runtime-core.esm-bundler-yNW65ghW.js";import{$ as S,A as C,C as w,Ct as ee,D as T,E,F as D,H as te,I as O,K as ne,L as k,M as re,N as ie,O as ae,P as A,Q as j,R as M,S as oe,T as se,V as ce,X as le,Y as ue,_ as N,_t as de,b as fe,c as pe,ct as P,dt as me,f as he,ft as ge,g as _e,h as ve,j as F,k as ye,l as be,lt as I,nt as xe,pt as Se,r as Ce,rt as L,tt as R,ut as we,v as Te,w as Ee,x as De,y as Oe,yt as ke}from"./_plugin-vue_export-helper-CV9qMihF.js";import{b as Ae,c as je,g as z,h as B,l as Me,m as Ne,n as Pe,r as Fe,u as Ie}from"./Scrollbar-CYtpM7mc.js";var V=[],Le=new WeakMap;function Re(){V.forEach(e=>e(...Le.get(e))),V=[]}function ze(e,...t){Le.set(e,t),!V.includes(e)&&V.push(e)===1&&requestAnimationFrame(Re)}function Be(e=8){return Math.random().toString(16).slice(2,2+e)}function Ve(e,t){let n=[];for(let r=0;r<e;++r)n.push(t);return n}function He(e){let t=v(!!e.value);if(t.value)return d(t);let n=o(e,e=>{e&&(t.value=!0,n())});return d(t)}function Ue(){return x()!==null}var We=typeof window<`u`,Ge=We?document?.fonts?.ready:void 0,Ke=!1;Ge===void 0?Ke=!0:Ge.then(()=>{Ke=!0});function qe(e){if(Ke)return;let t=!1;i(()=>{Ke||Ge?.then(()=>{t||e()})}),m(()=>{t=!0})}function Je(e,t){return h(()=>{for(let n of t)if(e[n]!==void 0)return e[n];return e[t[t.length-1]]})}var Ye=R(`n-internal-select-menu`),Xe=R(`n-internal-select-menu-body`),Ze=R(`n-drawer-body`);R(`n-drawer`);var Qe=R(`n-modal-body`),$e=R(`n-modal-provider`),et=R(`n-modal`),tt=R(`n-popover-body`),nt=`__disabled__`;function H(t){let n=e(Qe,null),r=e(Ze,null),a=e(tt,null),o=e(Xe,null),s=v();if(typeof document<`u`){s.value=document.fullscreenElement;let e=()=>{s.value=document.fullscreenElement};i(()=>{z(`fullscreenchange`,document,e)}),m(()=>{B(`fullscreenchange`,document,e)})}return L(()=>{let{to:e}=t;return e===void 0?n?.value?n.value.$el??n.value:r?.value?r.value:a?.value?a.value:o?.value?o.value:e??(s.value||`body`):e===!1?nt:e===!0?s.value||`body`:e})}H.tdkey=nt,H.propTo={type:[String,Object,Boolean],default:void 0};function rt(e,t,n=`default`){let r=t[n];if(r===void 0)throw Error(`[vueuc/${e}]: slot[${n}] is empty.`);return r()}function it(e,t=!0,n=[]){return e.forEach(e=>{if(e!==null){if(typeof e!=`object`){(typeof e==`string`||typeof e==`number`)&&n.push(f(String(e)));return}if(Array.isArray(e)){it(e,t,n);return}if(e.type===p){if(e.children===null)return;Array.isArray(e.children)&&it(e.children,t,n)}else e.type!==_&&n.push(e)}}),n}function at(e,t,n=`default`){let r=t[n];if(r===void 0)throw Error(`[vueuc/${e}]: slot[${n}] is empty.`);let i=it(r());if(i.length===1)return i[0];throw Error(`[vueuc/${e}]: slot[${n}] should have exactly one child.`)}var U=null;function ot(){if(U===null&&(U=document.getElementById(`v-binder-view-measurer`),U===null)){U=document.createElement(`div`),U.id=`v-binder-view-measurer`;let{style:e}=U;e.position=`fixed`,e.left=`0`,e.right=`0`,e.top=`0`,e.bottom=`0`,e.pointerEvents=`none`,e.visibility=`hidden`,document.body.appendChild(U)}return U.getBoundingClientRect()}function st(e,t){let n=ot();return{top:t,left:e,height:0,width:0,right:n.width-e,bottom:n.height-t}}function ct(e){let t=e.getBoundingClientRect(),n=ot();return{left:t.left-n.left,top:t.top-n.top,bottom:n.height+n.top-t.bottom,right:n.width+n.left-t.right,width:t.width,height:t.height}}function lt(e){return e.nodeType===9?null:e.parentNode}function ut(e){if(e===null)return null;let t=lt(e);if(t===null)return null;if(t.nodeType===9)return document;if(t.nodeType===1){let{overflow:e,overflowX:n,overflowY:r}=getComputedStyle(t);if(/(auto|scroll|overlay)/.test(e+r+n))return t}return ut(t)}var dt=y({name:`Binder`,props:{syncTargetWithParent:Boolean,syncTarget:{type:Boolean,default:!0}},setup(t){n(`VBinder`,x()?.proxy);let r=e(`VBinder`,null),i=v(null),a=e=>{i.value=e,r&&t.syncTargetWithParent&&r.setTargetRef(e)},o=[],s=()=>{let e=i.value;for(;e=ut(e),e!==null;)o.push(e);for(let e of o)z(`scroll`,e,f,!0)},c=()=>{for(let e of o)B(`scroll`,e,f,!0);o=[]},l=new Set,u=e=>{l.size===0&&s(),l.has(e)||l.add(e)},d=e=>{l.has(e)&&l.delete(e),l.size===0&&c()},f=()=>{ze(p)},p=()=>{l.forEach(e=>e())},h=new Set,g=e=>{h.size===0&&z(`resize`,window,y),h.has(e)||h.add(e)},_=e=>{h.has(e)&&h.delete(e),h.size===0&&B(`resize`,window,y)},y=()=>{h.forEach(e=>e())};return m(()=>{B(`resize`,window,y),c()}),{targetRef:i,setTargetRef:a,addScrollListener:u,removeScrollListener:d,addResizeListener:g,removeResizeListener:_}},render(){return rt(`binder`,this.$slots)}}),ft=y({name:`Target`,setup(){let{setTargetRef:t,syncTarget:n}=e(`VBinder`);return{syncTarget:n,setTargetDirective:{mounted:t,updated:t}}},render(){let{syncTarget:e,setTargetDirective:t}=this;return e?r(at(`follower`,this.$slots),[[t]]):at(`follower`,this.$slots)}}),W=`@@mmoContext`,pt={mounted(e,{value:t}){e[W]={handler:void 0},typeof t==`function`&&(e[W].handler=t,z(`mousemoveoutside`,e,t))},updated(e,{value:t}){let n=e[W];typeof t==`function`?n.handler?n.handler!==t&&(B(`mousemoveoutside`,e,n.handler),n.handler=t,z(`mousemoveoutside`,e,t)):(e[W].handler=t,z(`mousemoveoutside`,e,t)):n.handler&&=(B(`mousemoveoutside`,e,n.handler),void 0)},unmounted(e){let{handler:t}=e[W];t&&B(`mousemoveoutside`,e,t),e[W].handler=void 0}},G=`@@coContext`,mt={mounted(e,{value:t,modifiers:n}){e[G]={handler:void 0},typeof t==`function`&&(e[G].handler=t,z(`clickoutside`,e,t,{capture:n.capture}))},updated(e,{value:t,modifiers:n}){let r=e[G];typeof t==`function`?r.handler?r.handler!==t&&(B(`clickoutside`,e,r.handler,{capture:n.capture}),r.handler=t,z(`clickoutside`,e,t,{capture:n.capture})):(e[G].handler=t,z(`clickoutside`,e,t,{capture:n.capture})):r.handler&&=(B(`clickoutside`,e,r.handler,{capture:n.capture}),void 0)},unmounted(e,{modifiers:t}){let{handler:n}=e[G];n&&B(`clickoutside`,e,n,{capture:t.capture}),e[G].handler=void 0}};function ht(e,t){console.error(`[vdirs/${e}]: ${t}`)}var gt=new class{constructor(){this.elementZIndex=new Map,this.nextZIndex=2e3}get elementCount(){return this.elementZIndex.size}ensureZIndex(e,t){let{elementZIndex:n}=this;if(t!==void 0){e.style.zIndex=`${t}`,n.delete(e);return}let{nextZIndex:r}=this;n.has(e)&&n.get(e)+1===this.nextZIndex||(e.style.zIndex=`${r}`,n.set(e,r),this.nextZIndex=r+1,this.squashState())}unregister(e,t){let{elementZIndex:n}=this;n.has(e)?n.delete(e):t===void 0&&ht(`z-index-manager/unregister-element`,`Element not found when unregistering.`),this.squashState()}squashState(){let{elementCount:e}=this;e||(this.nextZIndex=2e3),this.nextZIndex-e>2500&&this.rearrange()}rearrange(){let e=Array.from(this.elementZIndex.entries());e.sort((e,t)=>e[1]-t[1]),this.nextZIndex=2e3,e.forEach(e=>{let t=e[0],n=this.nextZIndex++;`${n}`!==t.style.zIndex&&(t.style.zIndex=`${n}`)})}},K=`@@ziContext`,_t={mounted(e,t){let{value:n={}}=t,{zIndex:r,enabled:i}=n;e[K]={enabled:!!i,initialized:!1},i&&(gt.ensureZIndex(e,r),e[K].initialized=!0)},updated(e,t){let{value:n={}}=t,{zIndex:r,enabled:i}=n,a=e[K].enabled;i&&!a&&(gt.ensureZIndex(e,r),e[K].initialized=!0),e[K].enabled=!!i},unmounted(e,t){if(!e[K].initialized)return;let{value:n={}}=t,{zIndex:r}=n;gt.unregister(e,r)}},{c:q}=de(),vt=`vueuc-style`;function yt(e){return typeof e==`string`?document.querySelector(e):e()||null}var bt=y({name:`LazyTeleport`,props:{to:{type:[String,Object],default:void 0},disabled:Boolean,show:{type:Boolean,required:!0}},setup(e){return{showTeleport:He(l(e,`show`)),mergedTo:h(()=>{let{to:t}=e;return t??`body`})}},render(){return this.showTeleport?this.disabled?rt(`lazy-teleport`,this.$slots):b(c,{disabled:this.disabled,to:this.mergedTo},rt(`lazy-teleport`,this.$slots)):null}}),xt={top:`bottom`,bottom:`top`,left:`right`,right:`left`},St={start:`end`,center:`center`,end:`start`},Ct={top:`height`,bottom:`height`,left:`width`,right:`width`},wt={"bottom-start":`top left`,bottom:`top center`,"bottom-end":`top right`,"top-start":`bottom left`,top:`bottom center`,"top-end":`bottom right`,"right-start":`top left`,right:`center left`,"right-end":`bottom left`,"left-start":`top right`,left:`center right`,"left-end":`bottom right`},Tt={"bottom-start":`bottom left`,bottom:`bottom center`,"bottom-end":`bottom right`,"top-start":`top left`,top:`top center`,"top-end":`top right`,"right-start":`top right`,right:`center right`,"right-end":`bottom right`,"left-start":`top left`,left:`center left`,"left-end":`bottom left`},Et={"bottom-start":`right`,"bottom-end":`left`,"top-start":`right`,"top-end":`left`,"right-start":`bottom`,"right-end":`top`,"left-start":`bottom`,"left-end":`top`},Dt={top:!0,bottom:!1,left:!0,right:!1},Ot={top:`end`,bottom:`start`,left:`end`,right:`start`};function kt(e,t,n,r,i,a){if(!i||a)return{placement:e,top:0,left:0};let[o,s]=e.split(`-`),c=s??`center`,l={top:0,left:0},u=(e,i,a)=>{let o=0,s=0,c=n[e]-t[i]-t[e];return c>0&&r&&(a?s=Dt[i]?c:-c:o=Dt[i]?c:-c),{left:o,top:s}},d=o===`left`||o===`right`;if(c!==`center`){let r=Et[e],i=xt[r],a=Ct[r];if(n[a]>t[a]){if(t[r]+t[a]<n[a]){let e=(n[a]-t[a])/2;t[r]<e||t[i]<e?t[r]<t[i]?(c=St[s],l=u(a,i,d)):l=u(a,r,d):c=`center`}}else n[a]<t[a]&&t[i]<0&&t[r]>t[i]&&(c=St[s])}else{let e=o===`bottom`||o===`top`?`left`:`top`,r=xt[e],i=Ct[e],a=(n[i]-t[i])/2;(t[e]<a||t[r]<a)&&(t[e]>t[r]?(c=Ot[e],l=u(i,e,d)):(c=Ot[r],l=u(i,r,d)))}let f=o;return t[o]<n[Ct[o]]&&t[o]<t[xt[o]]&&(f=xt[o]),{placement:c===`center`?f:`${f}-${c}`,left:l.left,top:l.top}}function At(e,t){return t?Tt[e]:wt[e]}function jt(e,t,n,r,i,a){if(a)switch(e){case`bottom-start`:return{top:`${Math.round(n.top-t.top+n.height)}px`,left:`${Math.round(n.left-t.left)}px`,transform:`translateY(-100%)`};case`bottom-end`:return{top:`${Math.round(n.top-t.top+n.height)}px`,left:`${Math.round(n.left-t.left+n.width)}px`,transform:`translateX(-100%) translateY(-100%)`};case`top-start`:return{top:`${Math.round(n.top-t.top)}px`,left:`${Math.round(n.left-t.left)}px`,transform:``};case`top-end`:return{top:`${Math.round(n.top-t.top)}px`,left:`${Math.round(n.left-t.left+n.width)}px`,transform:`translateX(-100%)`};case`right-start`:return{top:`${Math.round(n.top-t.top)}px`,left:`${Math.round(n.left-t.left+n.width)}px`,transform:`translateX(-100%)`};case`right-end`:return{top:`${Math.round(n.top-t.top+n.height)}px`,left:`${Math.round(n.left-t.left+n.width)}px`,transform:`translateX(-100%) translateY(-100%)`};case`left-start`:return{top:`${Math.round(n.top-t.top)}px`,left:`${Math.round(n.left-t.left)}px`,transform:``};case`left-end`:return{top:`${Math.round(n.top-t.top+n.height)}px`,left:`${Math.round(n.left-t.left)}px`,transform:`translateY(-100%)`};case`top`:return{top:`${Math.round(n.top-t.top)}px`,left:`${Math.round(n.left-t.left+n.width/2)}px`,transform:`translateX(-50%)`};case`right`:return{top:`${Math.round(n.top-t.top+n.height/2)}px`,left:`${Math.round(n.left-t.left+n.width)}px`,transform:`translateX(-100%) translateY(-50%)`};case`left`:return{top:`${Math.round(n.top-t.top+n.height/2)}px`,left:`${Math.round(n.left-t.left)}px`,transform:`translateY(-50%)`};default:return{top:`${Math.round(n.top-t.top+n.height)}px`,left:`${Math.round(n.left-t.left+n.width/2)}px`,transform:`translateX(-50%) translateY(-100%)`}}switch(e){case`bottom-start`:return{top:`${Math.round(n.top-t.top+n.height+r)}px`,left:`${Math.round(n.left-t.left+i)}px`,transform:``};case`bottom-end`:return{top:`${Math.round(n.top-t.top+n.height+r)}px`,left:`${Math.round(n.left-t.left+n.width+i)}px`,transform:`translateX(-100%)`};case`top-start`:return{top:`${Math.round(n.top-t.top+r)}px`,left:`${Math.round(n.left-t.left+i)}px`,transform:`translateY(-100%)`};case`top-end`:return{top:`${Math.round(n.top-t.top+r)}px`,left:`${Math.round(n.left-t.left+n.width+i)}px`,transform:`translateX(-100%) translateY(-100%)`};case`right-start`:return{top:`${Math.round(n.top-t.top+r)}px`,left:`${Math.round(n.left-t.left+n.width+i)}px`,transform:``};case`right-end`:return{top:`${Math.round(n.top-t.top+n.height+r)}px`,left:`${Math.round(n.left-t.left+n.width+i)}px`,transform:`translateY(-100%)`};case`left-start`:return{top:`${Math.round(n.top-t.top+r)}px`,left:`${Math.round(n.left-t.left+i)}px`,transform:`translateX(-100%)`};case`left-end`:return{top:`${Math.round(n.top-t.top+n.height+r)}px`,left:`${Math.round(n.left-t.left+i)}px`,transform:`translateX(-100%) translateY(-100%)`};case`top`:return{top:`${Math.round(n.top-t.top+r)}px`,left:`${Math.round(n.left-t.left+n.width/2+i)}px`,transform:`translateY(-100%) translateX(-50%)`};case`right`:return{top:`${Math.round(n.top-t.top+n.height/2+r)}px`,left:`${Math.round(n.left-t.left+n.width+i)}px`,transform:`translateY(-50%)`};case`left`:return{top:`${Math.round(n.top-t.top+n.height/2+r)}px`,left:`${Math.round(n.left-t.left+i)}px`,transform:`translateY(-50%) translateX(-100%)`};default:return{top:`${Math.round(n.top-t.top+n.height+r)}px`,left:`${Math.round(n.left-t.left+n.width/2+i)}px`,transform:`translateX(-50%)`}}}var Mt=q([q(`.v-binder-follower-container`,{position:`absolute`,left:`0`,right:`0`,top:`0`,height:`0`,pointerEvents:`none`,zIndex:`auto`}),q(`.v-binder-follower-content`,{position:`absolute`,zIndex:`auto`},[q(`> *`,{pointerEvents:`all`})])]),Nt=y({name:`Follower`,inheritAttrs:!1,props:{show:Boolean,enabled:{type:Boolean,default:void 0},placement:{type:String,default:`bottom`},syncTrigger:{type:Array,default:[`resize`,`scroll`]},to:[String,Object],flip:{type:Boolean,default:!0},internalShift:Boolean,x:Number,y:Number,width:String,minWidth:String,containerClass:String,teleportDisabled:Boolean,zindexable:{type:Boolean,default:!0},zIndex:Number,overlap:Boolean},setup(n){let r=e(`VBinder`),a=L(()=>n.enabled===void 0?n.show:n.enabled),s=v(null),c=v(null),u=()=>{let{syncTrigger:e}=n;e.includes(`scroll`)&&r.addScrollListener(p),e.includes(`resize`)&&r.addResizeListener(p)},d=()=>{r.removeScrollListener(p),r.removeResizeListener(p)};i(()=>{a.value&&(p(),u())});let f=S();Mt.mount({id:`vueuc/binder`,head:!0,anchorMetaName:vt,ssr:f}),m(()=>{d()}),qe(()=>{a.value&&p()});let p=()=>{if(!a.value)return;let e=s.value;if(e===null)return;let t=r.targetRef,{x:i,y:o,overlap:l}=n,u=i!==void 0&&o!==void 0?st(i,o):ct(t);e.style.setProperty(`--v-target-width`,`${Math.round(u.width)}px`),e.style.setProperty(`--v-target-height`,`${Math.round(u.height)}px`);let{width:d,minWidth:f,placement:p,internalShift:m,flip:h}=n;e.setAttribute(`v-placement`,p),l?e.setAttribute(`v-overlap`,``):e.removeAttribute(`v-overlap`);let{style:g}=e;d===`target`?g.width=`${u.width}px`:d===void 0?g.width=``:g.width=d,f===`target`?g.minWidth=`${u.width}px`:f===void 0?g.minWidth=``:g.minWidth=f;let _=ct(e),v=ct(c.value),{left:y,top:b,placement:x}=kt(p,u,_,m,h,l),S=At(x,l),{left:C,top:w,transform:ee}=jt(x,v,u,b,y,l);e.setAttribute(`v-placement`,x),e.style.setProperty(`--v-offset-left`,`${Math.round(y)}px`),e.style.setProperty(`--v-offset-top`,`${Math.round(b)}px`),e.style.transform=`translateX(${C}) translateY(${w}) ${ee}`,e.style.setProperty(`--v-transform-origin`,S),e.style.transformOrigin=S};o(a,e=>{e?(u(),h()):d()});let h=()=>{t().then(p).catch(e=>console.error(e))};[`placement`,`x`,`y`,`internalShift`,`flip`,`width`,`overlap`,`minWidth`].forEach(e=>{o(l(n,e),p)}),[`teleportDisabled`].forEach(e=>{o(l(n,e),h)}),o(l(n,`syncTrigger`),e=>{e.includes(`resize`)?r.addResizeListener(p):r.removeResizeListener(p),e.includes(`scroll`)?r.addScrollListener(p):r.removeScrollListener(p)});let g=xe();return{VBinder:r,mergedEnabled:a,offsetContainerRef:c,followerRef:s,mergedTo:L(()=>{let{to:e}=n;if(e!==void 0)return e;g.value}),syncPosition:p}},render(){return b(bt,{show:this.show,to:this.mergedTo,disabled:this.teleportDisabled},{default:()=>{var e;let t=b(`div`,{class:[`v-binder-follower-container`,this.containerClass],ref:`offsetContainerRef`},[b(`div`,{class:`v-binder-follower-content`,ref:`followerRef`},(e=this.$slots).default?.call(e))]);return this.zindexable?r(t,[[_t,{enabled:this.mergedEnabled,zIndex:this.zIndex}]]):t}})}});function Pt(e){return e instanceof HTMLElement}function Ft(e){for(let t=0;t<e.childNodes.length;t++){let n=e.childNodes[t];if(Pt(n)&&(Lt(n)||Ft(n)))return!0}return!1}function It(e){for(let t=e.childNodes.length-1;t>=0;t--){let n=e.childNodes[t];if(Pt(n)&&(Lt(n)||It(n)))return!0}return!1}function Lt(e){if(!Rt(e))return!1;try{e.focus({preventScroll:!0})}catch{}return document.activeElement===e}function Rt(e){if(e.tabIndex>0||e.tabIndex===0&&e.getAttribute(`tabIndex`)!==null)return!0;if(e.getAttribute(`disabled`))return!1;switch(e.nodeName){case`A`:return!!e.href&&e.rel!==`ignore`;case`INPUT`:return e.type!==`hidden`&&e.type!==`file`;case`SELECT`:case`TEXTAREA`:return!0;default:return!1}}var J=[],zt=y({name:`FocusTrap`,props:{disabled:Boolean,active:Boolean,autoFocus:{type:Boolean,default:!0},onEsc:Function,initialFocusTo:[String,Function],finalFocusTo:[String,Function],returnFocusOnDeactivated:{type:Boolean,default:!0}},setup(e){let t=Be(),n=v(null),r=v(null),a=!1,s=!1,c=typeof document>`u`?null:document.activeElement;function l(){return J[J.length-1]===t}function u(t){var n;t.code===`Escape`&&l()&&((n=e.onEsc)==null||n.call(e,t))}i(()=>{o(()=>e.active,e=>{e?(p(),z(`keydown`,document,u)):(B(`keydown`,document,u),a&&h())},{immediate:!0})}),m(()=>{B(`keydown`,document,u),a&&h()});function d(e){if(!s&&l()){let t=f();if(t===null||t.contains(Ae(e)))return;g(`first`)}}function f(){let e=n.value;if(e===null)return null;let t=e;for(;t=t.nextSibling,!(t===null||t instanceof Element&&t.tagName===`DIV`););return t}function p(){var n;if(!e.disabled){if(J.push(t),e.autoFocus){let{initialFocusTo:t}=e;t===void 0?g(`first`):(n=yt(t))==null||n.focus({preventScroll:!0})}a=!0,document.addEventListener(`focus`,d,!0)}}function h(){var n;if(e.disabled||(document.removeEventListener(`focus`,d,!0),J=J.filter(e=>e!==t),l()))return;let{finalFocusTo:r}=e;r===void 0?e.returnFocusOnDeactivated&&c instanceof HTMLElement&&(s=!0,c.focus({preventScroll:!0}),s=!1):(n=yt(r))==null||n.focus({preventScroll:!0})}function g(t){if(l()&&e.active){let e=n.value,i=r.value;if(e!==null&&i!==null){let n=f();if(n==null||n===i){s=!0,e.focus({preventScroll:!0}),s=!1;return}s=!0;let r=t===`first`?Ft(n):It(n);s=!1,r||(s=!0,e.focus({preventScroll:!0}),s=!1)}}}function _(e){if(s)return;let t=f();t!==null&&(e.relatedTarget!==null&&t.contains(e.relatedTarget)?g(`last`):g(`first`))}function y(e){s||(e.relatedTarget!==null&&e.relatedTarget===n.value?g(`last`):g(`first`))}return{focusableStartRef:n,focusableEndRef:r,focusableStyle:`position: absolute; height: 0; width: 0;`,handleStartFocus:_,handleEndFocus:y}},render(){let{default:e}=this.$slots;if(e===void 0)return null;if(this.disabled)return e();let{active:t,focusableStyle:n}=this;return b(p,null,[b(`div`,{"aria-hidden":`true`,tabindex:t?`0`:`-1`,ref:`focusableStartRef`,style:n,onFocus:this.handleStartFocus}),e(),b(`div`,{"aria-hidden":`true`,style:n,ref:`focusableEndRef`,tabindex:t?`0`:`-1`,onFocus:this.handleEndFocus})])}}),Bt=/^(\d|\.)+$/,Vt=/(\d|\.)+/;function Ht(e,{c:t=1,offset:n=0,attachPx:r=!0}={}){if(typeof e==`number`){let r=(e+n)*t;return r===0?`0`:`${r}px`}else if(typeof e==`string`)if(Bt.test(e)){let i=(Number(e)+n)*t;return r?i===0?`0`:`${i}px`:`${i}`}else{let r=Vt.exec(e);return r?e.replace(Vt,String((Number(r[0])+n)*t)):e}return e}var Ut;function Wt(){return Ut===void 0&&(Ut=navigator.userAgent.includes(`Node.js`)||navigator.userAgent.includes(`jsdom`)),Ut}function Y(e,t=!0,n=[]){return e.forEach(e=>{if(e!==null){if(typeof e!=`object`){(typeof e==`string`||typeof e==`number`)&&n.push(f(String(e)));return}if(Array.isArray(e)){Y(e,t,n);return}if(e.type===p){if(e.children===null)return;Array.isArray(e.children)&&Y(e.children,t,n)}else{if(e.type===_&&t)return;n.push(e)}}}),n}function Gt(e,t=`default`,n=void 0){let r=e[t];if(!r)return j(`getFirstSlotVNode`,`slot[${t}] is empty`),null;let i=Y(r(n));return i.length===1?i[0]:(j(`getFirstSlotVNode`,`slot[${t}] should have exactly one child`),null)}function Kt(e,t,n){if(!t)return null;let r=Y(t(n));return r.length===1?r[0]:(j(`getFirstSlotVNode`,`slot[${e}] should have exactly one child`),null)}function qt(e,t=[],n){let r={};return t.forEach(t=>{r[t]=e[t]}),Object.assign(r,n)}var Jt=C(M,`WeakMap`),Yt=fe(Object.keys,Object),Xt=Object.prototype.hasOwnProperty;function Zt(e){if(!se(e))return Yt(e);var t=[];for(var n in Object(e))Xt.call(e,n)&&n!=`constructor`&&t.push(n);return t}function Qt(e){return E(e)?De(e):Zt(e)}var $t=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,en=/^\w*$/;function tn(e,t){if(A(e))return!1;var n=typeof e;return n==`number`||n==`symbol`||n==`boolean`||e==null||Ie(e)?!0:en.test(e)||!$t.test(e)||t!=null&&e in Object(t)}var nn=`Expected a function`;function rn(e,t){if(typeof e!=`function`||t!=null&&typeof t!=`function`)throw TypeError(nn);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);var o=e.apply(this,r);return n.cache=a.set(i,o)||a,o};return n.cache=new(rn.Cache||Te),n}rn.Cache=Te;var an=500;function on(e){var t=rn(e,function(e){return n.size===an&&n.clear(),e}),n=t.cache;return t}var sn=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,cn=/\\(\\)?/g,ln=on(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(``),e.replace(sn,function(e,n,r,i){t.push(r?i.replace(cn,`$1`):n||e)}),t});function un(e,t){return A(e)?e:tn(e,t)?[e]:ln(je(e))}var dn=1/0;function fn(e){if(typeof e==`string`||Ie(e))return e;var t=e+``;return t==`0`&&1/e==-dn?`-0`:t}function pn(e,t){t=un(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[fn(t[n++])];return n&&n==r?e:void 0}function mn(e,t,n){var r=e==null?void 0:pn(e,t);return r===void 0?n:r}function hn(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}function gn(e,t){for(var n=-1,r=e==null?0:e.length,i=0,a=[];++n<r;){var o=e[n];t(o,n,e)&&(a[i++]=o)}return a}function _n(){return[]}var vn=Object.prototype.propertyIsEnumerable,yn=Object.getOwnPropertySymbols,bn=yn?function(e){return e==null?[]:(e=Object(e),gn(yn(e),function(t){return vn.call(e,t)}))}:_n;function xn(e,t,n){var r=t(e);return A(e)?r:hn(r,n(e))}function Sn(e){return xn(e,Qt,bn)}var Cn=C(M,`DataView`),wn=C(M,`Promise`),Tn=C(M,`Set`),En=`[object Map]`,Dn=`[object Object]`,On=`[object Promise]`,kn=`[object Set]`,An=`[object WeakMap]`,jn=`[object DataView]`,Mn=F(Cn),Nn=F(Oe),Pn=F(wn),Fn=F(Tn),In=F(Jt),X=O;(Cn&&X(new Cn(new ArrayBuffer(1)))!=jn||Oe&&X(new Oe)!=En||wn&&X(wn.resolve())!=On||Tn&&X(new Tn)!=kn||Jt&&X(new Jt)!=An)&&(X=function(e){var t=O(e),n=t==Dn?e.constructor:void 0,r=n?F(n):``;if(r)switch(r){case Mn:return jn;case Nn:return En;case Pn:return On;case Fn:return kn;case In:return An}return t});var Ln=X,Rn=`__lodash_hash_undefined__`;function zn(e){return this.__data__.set(e,Rn),this}function Bn(e){return this.__data__.has(e)}function Vn(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new Te;++t<n;)this.add(e[t])}Vn.prototype.add=Vn.prototype.push=zn,Vn.prototype.has=Bn;function Hn(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 Un(e,t){return e.has(t)}var Wn=1,Gn=2;function Kn(e,t,n,r,i,a){var o=n&Wn,s=e.length,c=t.length;if(s!=c&&!(o&&c>s))return!1;var l=a.get(e),u=a.get(t);if(l&&u)return l==t&&u==e;var d=-1,f=!0,p=n&Gn?new Vn:void 0;for(a.set(e,t),a.set(t,e);++d<s;){var m=e[d],h=t[d];if(r)var g=o?r(h,m,d,t,e,a):r(m,h,d,e,t,a);if(g!==void 0){if(g)continue;f=!1;break}if(p){if(!Hn(t,function(e,t){if(!Un(p,t)&&(m===e||i(m,e,n,r,a)))return p.push(t)})){f=!1;break}}else if(!(m===h||i(m,h,n,r,a))){f=!1;break}}return a.delete(e),a.delete(t),f}function qn(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}function Jn(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}var Yn=1,Xn=2,Zn=`[object Boolean]`,Qn=`[object Date]`,$n=`[object Error]`,er=`[object Map]`,tr=`[object Number]`,nr=`[object RegExp]`,rr=`[object Set]`,ir=`[object String]`,ar=`[object Symbol]`,or=`[object ArrayBuffer]`,sr=`[object DataView]`,cr=k?k.prototype:void 0,lr=cr?cr.valueOf:void 0;function ur(e,t,n,r,i,a,o){switch(n){case sr:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case or:return!(e.byteLength!=t.byteLength||!a(new _e(e),new _e(t)));case Zn:case Qn:case tr:return ae(+e,+t);case $n:return e.name==t.name&&e.message==t.message;case nr:case ir:return e==t+``;case er:var s=qn;case rr:var c=r&Yn;if(s||=Jn,e.size!=t.size&&!c)return!1;var l=o.get(e);if(l)return l==t;r|=Xn,o.set(e,t);var u=Kn(s(e),s(t),r,i,a,o);return o.delete(e),u;case ar:if(lr)return lr.call(e)==lr.call(t)}return!1}var dr=1,fr=Object.prototype.hasOwnProperty;function pr(e,t,n,r,i,a){var o=n&dr,s=Sn(e),c=s.length;if(c!=Sn(t).length&&!o)return!1;for(var l=c;l--;){var u=s[l];if(!(o?u in t:fr.call(t,u)))return!1}var d=a.get(e),f=a.get(t);if(d&&f)return d==t&&f==e;var p=!0;a.set(e,t),a.set(t,e);for(var m=o;++l<c;){u=s[l];var h=e[u],g=t[u];if(r)var _=o?r(g,h,u,t,e,a):r(h,g,u,e,t,a);if(!(_===void 0?h===g||i(h,g,n,r,a):_)){p=!1;break}m||=u==`constructor`}if(p&&!m){var v=e.constructor,y=t.constructor;v!=y&&`constructor`in e&&`constructor`in t&&!(typeof v==`function`&&v instanceof v&&typeof y==`function`&&y instanceof y)&&(p=!1)}return a.delete(e),a.delete(t),p}var mr=1,hr=`[object Arguments]`,gr=`[object Array]`,_r=`[object Object]`,vr=Object.prototype.hasOwnProperty;function yr(e,t,n,r,i,a){var o=A(e),s=A(t),c=o?gr:Ln(e),l=s?gr:Ln(t);c=c==hr?_r:c,l=l==hr?_r:l;var u=c==_r,d=l==_r,f=c==l;if(f&&w(e)){if(!w(t))return!1;o=!0,u=!1}if(f&&!u)return a||=new N,o||oe(e)?Kn(e,t,n,r,i,a):ur(e,t,c,n,r,i,a);if(!(n&mr)){var p=u&&vr.call(e,`__wrapped__`),m=d&&vr.call(t,`__wrapped__`);if(p||m){var h=p?e.value():e,g=m?t.value():t;return a||=new N,i(h,g,n,r,a)}}return f?(a||=new N,pr(e,t,n,r,i,a)):!1}function br(e,t,n,r,i){return e===t?!0:e==null||t==null||!D(e)&&!D(t)?e!==e&&t!==t:yr(e,t,n,r,br,i)}var xr=1,Sr=2;function Cr(e,t,n,r){var i=n.length,a=i,o=!r;if(e==null)return!a;for(e=Object(e);i--;){var s=n[i];if(o&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++i<a;){s=n[i];var c=s[0],l=e[c],u=s[1];if(o&&s[2]){if(l===void 0&&!(c in e))return!1}else{var d=new N;if(r)var f=r(l,u,c,e,t,d);if(!(f===void 0?br(u,l,xr|Sr,r,d):f))return!1}}return!0}function wr(e){return e===e&&!ie(e)}function Tr(e){for(var t=Qt(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,wr(i)]}return t}function Er(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}function Dr(e){var t=Tr(e);return t.length==1&&t[0][2]?Er(t[0][0],t[0][1]):function(n){return n===e||Cr(n,e,t)}}function Or(e,t){return e!=null&&t in Object(e)}function kr(e,t,n){t=un(t,e);for(var r=-1,i=t.length,a=!1;++r<i;){var o=fn(t[r]);if(!(a=e!=null&&n(e,o)))break;e=e[o]}return a||++r!=i?a:(i=e==null?0:e.length,!!i&&T(i)&&ye(o,i)&&(A(e)||Ee(e)))}function Ar(e,t){return e!=null&&kr(e,t,Or)}var jr=1,Mr=2;function Nr(e,t){return tn(e)&&wr(t)?Er(fn(e),t):function(n){var r=mn(n,e);return r===void 0&&r===t?Ar(n,e):br(t,r,jr|Mr)}}function Pr(e){return function(t){return t?.[e]}}function Fr(e){return function(t){return pn(t,e)}}function Ir(e){return tn(e)?Pr(fn(e)):Fr(e)}function Lr(e){return typeof e==`function`?e:e==null?re:typeof e==`object`?A(e)?Nr(e[0],e[1]):Dr(e):Ir(e)}function Rr(e,t){return e&&ve(e,t,Qt)}function zr(e,t){return function(n,r){if(n==null)return n;if(!E(n))return e(n,r);for(var i=n.length,a=t?i:-1,o=Object(n);(t?a--:++a<i)&&r(o[a],a,o)!==!1;);return n}}var Br=zr(Rr);function Vr(e,t){var n=-1,r=E(e)?Array(e.length):[];return Br(e,function(e,i,a){r[++n]=t(e,i,a)}),r}function Hr(e,t){return(A(e)?Me:Vr)(e,Lr(t,3))}var Ur={space:`6px`,spaceArrow:`10px`,arrowOffset:`10px`,arrowOffsetVertical:`10px`,arrowHeight:`6px`,padding:`8px 14px`};function Wr(e){let{boxShadow2:t,popoverColor:n,textColor2:r,borderRadius:i,fontSize:a,dividerColor:o}=e;return Object.assign(Object.assign({},Ur),{fontSize:a,borderRadius:i,color:n,dividerColor:o,textColor:r,boxShadow:t})}var Gr=pe({name:`Popover`,common:Ce,peers:{Scrollbar:Fe},self:Wr}),Kr={top:`bottom`,bottom:`top`,left:`right`,right:`left`},Z=`var(--n-arrow-height) * 1.414`,qr=P([I(`popover`,`
2
- transition:
3
- box-shadow .3s var(--n-bezier),
4
- background-color .3s var(--n-bezier),
5
- color .3s var(--n-bezier);
6
- position: relative;
7
- font-size: var(--n-font-size);
8
- color: var(--n-text-color);
9
- box-shadow: var(--n-box-shadow);
10
- word-break: break-word;
11
- `,[P(`>`,[I(`scrollbar`,`
12
- height: inherit;
13
- max-height: inherit;
14
- `)]),Se(`raw`,`
15
- background-color: var(--n-color);
16
- border-radius: var(--n-border-radius);
17
- `,[Se(`scrollable`,[Se(`show-header-or-footer`,`padding: var(--n-padding);`)])]),me(`header`,`
18
- padding: var(--n-padding);
19
- border-bottom: 1px solid var(--n-divider-color);
20
- transition: border-color .3s var(--n-bezier);
21
- `),me(`footer`,`
22
- padding: var(--n-padding);
23
- border-top: 1px solid var(--n-divider-color);
24
- transition: border-color .3s var(--n-bezier);
25
- `),ge(`scrollable, show-header-or-footer`,[me(`content`,`
26
- padding: var(--n-padding);
27
- `)])]),I(`popover-shared`,`
28
- transform-origin: inherit;
29
- `,[I(`popover-arrow-wrapper`,`
30
- position: absolute;
31
- overflow: hidden;
32
- pointer-events: none;
33
- `,[I(`popover-arrow`,`
34
- transition: background-color .3s var(--n-bezier);
35
- position: absolute;
36
- display: block;
37
- width: calc(${Z});
38
- height: calc(${Z});
39
- box-shadow: 0 0 8px 0 rgba(0, 0, 0, .12);
40
- transform: rotate(45deg);
41
- background-color: var(--n-color);
42
- pointer-events: all;
43
- `)]),P(`&.popover-transition-enter-from, &.popover-transition-leave-to`,`
44
- opacity: 0;
45
- transform: scale(.85);
46
- `),P(`&.popover-transition-enter-to, &.popover-transition-leave-from`,`
47
- transform: scale(1);
48
- opacity: 1;
49
- `),P(`&.popover-transition-enter-active`,`
50
- transition:
51
- box-shadow .3s var(--n-bezier),
52
- background-color .3s var(--n-bezier),
53
- color .3s var(--n-bezier),
54
- opacity .15s var(--n-bezier-ease-out),
55
- transform .15s var(--n-bezier-ease-out);
56
- `),P(`&.popover-transition-leave-active`,`
57
- transition:
58
- box-shadow .3s var(--n-bezier),
59
- background-color .3s var(--n-bezier),
60
- color .3s var(--n-bezier),
61
- opacity .15s var(--n-bezier-ease-in),
62
- transform .15s var(--n-bezier-ease-in);
63
- `)]),$(`top-start`,`
64
- top: calc(${Z} / -2);
65
- left: calc(${Q(`top-start`)} - var(--v-offset-left));
66
- `),$(`top`,`
67
- top: calc(${Z} / -2);
68
- transform: translateX(calc(${Z} / -2)) rotate(45deg);
69
- left: 50%;
70
- `),$(`top-end`,`
71
- top: calc(${Z} / -2);
72
- right: calc(${Q(`top-end`)} + var(--v-offset-left));
73
- `),$(`bottom-start`,`
74
- bottom: calc(${Z} / -2);
75
- left: calc(${Q(`bottom-start`)} - var(--v-offset-left));
76
- `),$(`bottom`,`
77
- bottom: calc(${Z} / -2);
78
- transform: translateX(calc(${Z} / -2)) rotate(45deg);
79
- left: 50%;
80
- `),$(`bottom-end`,`
81
- bottom: calc(${Z} / -2);
82
- right: calc(${Q(`bottom-end`)} + var(--v-offset-left));
83
- `),$(`left-start`,`
84
- left: calc(${Z} / -2);
85
- top: calc(${Q(`left-start`)} - var(--v-offset-top));
86
- `),$(`left`,`
87
- left: calc(${Z} / -2);
88
- transform: translateY(calc(${Z} / -2)) rotate(45deg);
89
- top: 50%;
90
- `),$(`left-end`,`
91
- left: calc(${Z} / -2);
92
- bottom: calc(${Q(`left-end`)} + var(--v-offset-top));
93
- `),$(`right-start`,`
94
- right: calc(${Z} / -2);
95
- top: calc(${Q(`right-start`)} - var(--v-offset-top));
96
- `),$(`right`,`
97
- right: calc(${Z} / -2);
98
- transform: translateY(calc(${Z} / -2)) rotate(45deg);
99
- top: 50%;
100
- `),$(`right-end`,`
101
- right: calc(${Z} / -2);
102
- bottom: calc(${Q(`right-end`)} + var(--v-offset-top));
103
- `),...Hr({top:[`right-start`,`left-start`],right:[`top-end`,`bottom-end`],bottom:[`right-end`,`left-end`],left:[`top-start`,`bottom-start`]},(e,t)=>{let n=[`right`,`left`].includes(t),r=n?`width`:`height`;return e.map(e=>{let i=e.split(`-`)[1]===`end`,a=`calc((${`var(--v-target-${r}, 0px)`} - ${Z}) / 2)`,o=Q(e);return P(`[v-placement="${e}"] >`,[I(`popover-shared`,[ge(`center-arrow`,[I(`popover-arrow`,`${t}: calc(max(${a}, ${o}) ${i?`+`:`-`} var(--v-offset-${n?`left`:`top`}));`)])])])})})]);function Q(e){return[`top`,`bottom`].includes(e.split(`-`)[0])?`var(--n-arrow-offset)`:`var(--n-arrow-offset-vertical)`}function $(e,t){let n=e.split(`-`)[0],r=[`top`,`bottom`].includes(n)?`height: var(--n-space-arrow);`:`width: var(--n-space-arrow);`;return P(`[v-placement="${e}"] >`,[I(`popover-shared`,`
104
- margin-${Kr[n]}: var(--n-space);
105
- `,[ge(`show-arrow`,`
106
- margin-${Kr[n]}: var(--n-space-arrow);
107
- `),ge(`overlap`,`
108
- margin: 0;
109
- `),we(`popover-arrow-wrapper`,`
110
- right: 0;
111
- left: 0;
112
- top: 0;
113
- bottom: 0;
114
- ${n}: 100%;
115
- ${Kr[n]}: auto;
116
- ${r}
117
- `,[I(`popover-arrow`,t)])])])}var Jr=Object.assign(Object.assign({},be.props),{to:H.propTo,show:Boolean,trigger:String,showArrow:Boolean,delay:Number,duration:Number,raw:Boolean,arrowPointToCenter:Boolean,arrowClass:String,arrowStyle:[String,Object],arrowWrapperClass:String,arrowWrapperStyle:[String,Object],displayDirective:String,x:Number,y:Number,flip:Boolean,overlap:Boolean,placement:String,width:[Number,String],keepAliveOnHover:Boolean,scrollable:Boolean,contentClass:String,contentStyle:[Object,String],headerClass:String,headerStyle:[Object,String],footerClass:String,footerStyle:[Object,String],internalDeactivateImmediately:Boolean,animated:Boolean,onClickoutside:Function,internalTrapFocus:Boolean,internalOnAfterLeave:Function,minWidth:Number,maxWidth:Number});function Yr({arrowClass:e,arrowStyle:t,arrowWrapperClass:n,arrowWrapperStyle:r,clsPrefix:i}){return b(`div`,{key:`__popover-arrow__`,style:r,class:[`${i}-popover-arrow-wrapper`,n]},b(`div`,{class:[`${i}-popover-arrow`,e],style:t}))}var Xr=y({name:`PopoverBody`,inheritAttrs:!1,props:Jr,setup(t,{slots:i,attrs:c}){let{namespaceRef:u,mergedClsPrefixRef:d,inlineThemeDisabled:f,mergedRtlRef:g}=te(t),_=be(`Popover`,`-popover`,qr,Gr,t,d),y=he(`Popover`,g,d),x=v(null),S=e(`NPopover`),C=v(null),w=v(t.show),T=v(!1);s(()=>{let{show:e}=t;e&&!Wt()&&!t.internalDeactivateImmediately&&(T.value=!0)});let E=h(()=>{let{trigger:e,onClickoutside:n}=t,r=[],{positionManuallyRef:{value:i}}=S;return i||(e===`click`&&!n&&r.push([mt,j,void 0,{capture:!0}]),e===`hover`&&r.push([pt,A])),n&&r.push([mt,j,void 0,{capture:!0}]),(t.displayDirective===`show`||t.animated&&T.value)&&r.push([ee,t.show]),r}),D=h(()=>{let{common:{cubicBezierEaseInOut:e,cubicBezierEaseIn:t,cubicBezierEaseOut:n},self:{space:r,spaceArrow:i,padding:a,fontSize:o,textColor:s,dividerColor:c,color:l,boxShadow:u,borderRadius:d,arrowHeight:f,arrowOffset:p,arrowOffsetVertical:m}}=_.value;return{"--n-box-shadow":u,"--n-bezier":e,"--n-bezier-ease-in":t,"--n-bezier-ease-out":n,"--n-font-size":o,"--n-text-color":s,"--n-color":l,"--n-divider-color":c,"--n-border-radius":d,"--n-arrow-height":f,"--n-arrow-offset":p,"--n-arrow-offset-vertical":m,"--n-padding":a,"--n-space":r,"--n-space-arrow":i}}),O=h(()=>{let e=t.width===`trigger`?void 0:Ht(t.width),n=[];e&&n.push({width:e});let{maxWidth:r,minWidth:i}=t;return r&&n.push({maxWidth:Ht(r)}),i&&n.push({maxWidth:Ht(i)}),f||n.push(D.value),n}),k=f?ce(`popover`,void 0,D,t):void 0;S.setBodyInstance({syncPosition:re}),m(()=>{S.setBodyInstance(null)}),o(l(t,`show`),e=>{t.animated||(e?w.value=!0:w.value=!1)});function re(){var e;(e=x.value)==null||e.syncPosition()}function ie(e){t.trigger===`hover`&&t.keepAliveOnHover&&t.show&&S.handleMouseEnter(e)}function ae(e){t.trigger===`hover`&&t.keepAliveOnHover&&S.handleMouseLeave(e)}function A(e){t.trigger===`hover`&&!M().contains(Ae(e))&&S.handleMouseMoveOutside(e)}function j(e){(t.trigger===`click`&&!M().contains(Ae(e))||t.onClickoutside)&&S.handleClickOutside(e)}function M(){return S.getTriggerElement()}n(tt,C),n(Ze,null),n(Qe,null);function oe(){if(k?.onRender(),!(t.displayDirective===`show`||t.show||t.animated&&T.value))return null;let e,n=S.internalRenderBodyRef.value,{value:o}=d;if(n)e=n([`${o}-popover-shared`,y?.value&&`${o}-popover--rtl`,k?.themeClass.value,t.overlap&&`${o}-popover-shared--overlap`,t.showArrow&&`${o}-popover-shared--show-arrow`,t.arrowPointToCenter&&`${o}-popover-shared--center-arrow`],C,O.value,ie,ae);else{let{value:n}=S.extraClassRef,{internalTrapFocus:r}=t,s=!ne(i.header)||!ne(i.footer),l=()=>{let e=s?b(p,null,ue(i.header,e=>e?b(`div`,{class:[`${o}-popover__header`,t.headerClass],style:t.headerStyle},e):null),ue(i.default,e=>e?b(`div`,{class:[`${o}-popover__content`,t.contentClass],style:t.contentStyle},i):null),ue(i.footer,e=>e?b(`div`,{class:[`${o}-popover__footer`,t.footerClass],style:t.footerStyle},e):null)):t.scrollable?i.default?.call(i):b(`div`,{class:[`${o}-popover__content`,t.contentClass],style:t.contentStyle},i);return[t.scrollable?b(Pe,{themeOverrides:_.value.peerOverrides.Scrollbar,theme:_.value.peers.Scrollbar,contentClass:s?void 0:`${o}-popover__content ${t.contentClass??``}`,contentStyle:s?void 0:t.contentStyle},{default:()=>e}):e,t.showArrow?Yr({arrowClass:t.arrowClass,arrowStyle:t.arrowStyle,arrowWrapperClass:t.arrowWrapperClass,arrowWrapperStyle:t.arrowWrapperStyle,clsPrefix:o}):null]};e=b(`div`,a({class:[`${o}-popover`,`${o}-popover-shared`,y?.value&&`${o}-popover--rtl`,k?.themeClass.value,n.map(e=>`${o}-${e}`),{[`${o}-popover--scrollable`]:t.scrollable,[`${o}-popover--show-header-or-footer`]:s,[`${o}-popover--raw`]:t.raw,[`${o}-popover-shared--overlap`]:t.overlap,[`${o}-popover-shared--show-arrow`]:t.showArrow,[`${o}-popover-shared--center-arrow`]:t.arrowPointToCenter}],ref:C,style:O.value,onKeydown:S.handleKeydown,onMouseenter:ie,onMouseleave:ae},c),r?b(zt,{active:t.show,autoFocus:!0},{default:l}):l())}return r(e,E.value)}return{displayed:T,namespace:u,isMounted:S.isMountedRef,zIndex:S.zIndexRef,followerRef:x,adjustedTo:H(t),followerEnabled:w,renderContentNode:oe}},render(){return b(Nt,{ref:`followerRef`,zIndex:this.zIndex,show:this.show,enabled:this.followerEnabled,to:this.adjustedTo,x:this.x,y:this.y,flip:this.flip,placement:this.placement,containerClass:this.namespace,overlap:this.overlap,width:this.width===`trigger`?`target`:void 0,teleportDisabled:this.adjustedTo===H.tdkey},{default:()=>this.animated?b(ke,{name:`popover-transition`,appear:this.isMounted,onEnter:()=>{this.followerEnabled=!0},onAfterLeave:()=>{var e;(e=this.internalOnAfterLeave)==null||e.call(this),this.followerEnabled=!1,this.displayed=!1}},{default:this.renderContentNode}):this.renderContentNode()})}}),Zr=Object.keys(Jr),Qr={focus:[`onFocus`,`onBlur`],click:[`onClick`],hover:[`onMouseenter`,`onMouseleave`],manual:[],nested:[`onFocus`,`onBlur`,`onMouseenter`,`onMouseleave`,`onClick`]};function $r(e,t,n){Qr[t].forEach(t=>{e.props?e.props=Object.assign({},e.props):e.props={};let r=e.props[t],i=n[t];r?e.props[t]=(...e)=>{r(...e),i(...e)}:e.props[t]=i})}var ei={show:{type:Boolean,default:void 0},defaultShow:Boolean,showArrow:{type:Boolean,default:!0},trigger:{type:String,default:`hover`},delay:{type:Number,default:100},duration:{type:Number,default:100},raw:Boolean,placement:{type:String,default:`top`},x:Number,y:Number,arrowPointToCenter:Boolean,disabled:Boolean,getDisabled:Function,displayDirective:{type:String,default:`if`},arrowClass:String,arrowStyle:[String,Object],arrowWrapperClass:String,arrowWrapperStyle:[String,Object],flip:{type:Boolean,default:!0},animated:{type:Boolean,default:!0},width:{type:[Number,String],default:void 0},overlap:Boolean,keepAliveOnHover:{type:Boolean,default:!0},zIndex:Number,to:H.propTo,scrollable:Boolean,contentClass:String,contentStyle:[Object,String],headerClass:String,headerStyle:[Object,String],footerClass:String,footerStyle:[Object,String],onClickoutside:Function,"onUpdate:show":[Function,Array],onUpdateShow:[Function,Array],internalDeactivateImmediately:Boolean,internalSyncTargetWithParent:Boolean,internalInheritedEventHandlers:{type:Array,default:()=>[]},internalTrapFocus:Boolean,internalExtraClass:{type:Array,default:()=>[]},onShow:[Function,Array],onHide:[Function,Array],arrow:{type:Boolean,default:void 0},minWidth:Number,maxWidth:Number},ti=y({name:`Popover`,inheritAttrs:!1,props:Object.assign(Object.assign(Object.assign({},be.props),ei),{internalOnAfterLeave:Function,internalRenderBody:Function}),slots:Object,__popover__:!0,setup(e){let t=xe(),r=v(null),i=h(()=>e.show),a=v(e.defaultShow),o=Ne(i,a),c=L(()=>e.disabled?!1:o.value),u=()=>{if(e.disabled)return!0;let{getDisabled:t}=e;return!!t?.()},d=()=>u()?!1:o.value,f=Je(e,[`arrow`,`showArrow`]),p=h(()=>e.overlap?!1:f.value),m=null,g=v(null),_=v(null),y=L(()=>e.x!==void 0&&e.y!==void 0);function b(t){let{"onUpdate:show":n,onUpdateShow:r,onShow:i,onHide:o}=e;a.value=t,n&&le(n,t),r&&le(r,t),t&&i&&le(i,!0),t&&o&&le(o,!1)}function x(){m&&m.syncPosition()}function S(){let{value:e}=g;e&&(window.clearTimeout(e),g.value=null)}function C(){let{value:e}=_;e&&(window.clearTimeout(e),_.value=null)}function w(){let t=u();if(e.trigger===`focus`&&!t){if(d())return;b(!0)}}function ee(){let t=u();if(e.trigger===`focus`&&!t){if(!d())return;b(!1)}}function T(){let t=u();if(e.trigger===`hover`&&!t){if(C(),g.value!==null||d())return;let t=()=>{b(!0),g.value=null},{delay:n}=e;n===0?t():g.value=window.setTimeout(t,n)}}function E(){let t=u();if(e.trigger===`hover`&&!t){if(S(),_.value!==null||!d())return;let t=()=>{b(!1),_.value=null},{duration:n}=e;n===0?t():_.value=window.setTimeout(t,n)}}function D(){E()}function te(t){var n;d()&&(e.trigger===`click`&&(S(),C(),b(!1)),(n=e.onClickoutside)==null||n.call(e,t))}function O(){e.trigger===`click`&&!u()&&(S(),C(),b(!d()))}function ne(t){e.internalTrapFocus&&t.key===`Escape`&&(S(),C(),b(!1))}function k(e){a.value=e}function re(){return r.value?.targetRef}function ie(e){m=e}return n(`NPopover`,{getTriggerElement:re,handleKeydown:ne,handleMouseEnter:T,handleMouseLeave:E,handleClickOutside:te,handleMouseMoveOutside:D,setBodyInstance:ie,positionManuallyRef:y,isMountedRef:t,zIndexRef:l(e,`zIndex`),extraClassRef:l(e,`internalExtraClass`),internalRenderBodyRef:l(e,`internalRenderBody`)}),s(()=>{o.value&&u()&&b(!1)}),{binderInstRef:r,positionManually:y,mergedShowConsideringDisabledProp:c,uncontrolledShow:a,mergedShowArrow:p,getMergedShow:d,setShow:k,handleClick:O,handleMouseEnter:T,handleMouseLeave:E,handleFocus:w,handleBlur:ee,syncPosition:x}},render(){let{positionManually:e,$slots:t}=this,n,i=!1;if(!e&&(n=Gt(t,`trigger`),n)){n=u(n),n=n.type===g?b(`span`,[n]):n;let t={onClick:this.handleClick,onMouseenter:this.handleMouseEnter,onMouseleave:this.handleMouseLeave,onFocus:this.handleFocus,onBlur:this.handleBlur};if(n.type?.__popover__)i=!0,n.props||={internalSyncTargetWithParent:!0,internalInheritedEventHandlers:[]},n.props.internalSyncTargetWithParent=!0,n.props.internalInheritedEventHandlers?n.props.internalInheritedEventHandlers=[t,...n.props.internalInheritedEventHandlers]:n.props.internalInheritedEventHandlers=[t];else{let{internalInheritedEventHandlers:r}=this,i=[t,...r];$r(n,r?`nested`:e?`manual`:this.trigger,{onBlur:e=>{i.forEach(t=>{t.onBlur(e)})},onFocus:e=>{i.forEach(t=>{t.onFocus(e)})},onClick:e=>{i.forEach(t=>{t.onClick(e)})},onMouseenter:e=>{i.forEach(t=>{t.onMouseenter(e)})},onMouseleave:e=>{i.forEach(t=>{t.onMouseleave(e)})}})}}return b(dt,{ref:`binderInstRef`,syncTarget:!i,syncTargetWithParent:this.internalSyncTargetWithParent},{default:()=>{this.mergedShowConsideringDisabledProp;let t=this.getMergedShow();return[this.internalTrapFocus&&t?r(b(`div`,{style:{position:`fixed`,top:0,right:0,bottom:0,left:0}}),[[_t,{enabled:t,zIndex:this.zIndex}]]):null,e?null:b(ft,null,{default:()=>n}),b(Xr,qt(this.$props,Zr,Object.assign(Object.assign({},this.$attrs),{showArrow:this.mergedShowArrow,show:t})),{default:()=>{var e;return(e=this.$slots).default?.call(e)},header:()=>{var e;return(e=this.$slots).header?.call(e)},footer:()=>{var e;return(e=this.$slots).footer?.call(e)}})]}})}});export{Be as A,$e as C,Je as D,Ye as E,ze as M,Ue as O,et as S,Xe as T,ft as _,mn as a,tt as b,Y as c,Nt as d,bt as f,mt as g,_t as h,Gr as i,Ve as j,We as k,Ht as l,vt as m,ei as n,qt as o,q as p,Yr as r,Kt as s,ti as t,zt as u,dt as v,Ze as w,Qe as x,H as y};
@@ -1,77 +0,0 @@
1
- import{C as e,D as t,M as n,R as r,T as i,U as a,W as o,at as s,i as c,j as l,k as u,l as d,tt as f,v as p,x as m,y as h}from"./runtime-core.esm-bundler-yNW65ghW.js";import{F as g,H as _,I as v,L as y,P as b,V as x,W as S,ct as C,d as w,dt as T,f as ee,ft as E,l as te,lt as D,r as O,u as k,yt as A}from"./_plugin-vue_export-helper-CV9qMihF.js";function ne(e){return e.composedPath()[0]||null}function re(e){return typeof e==`string`?e.endsWith(`px`)?Number(e.slice(0,e.length-2)):Number(e):e}function ie(e){if(e!=null)return typeof e==`number`?`${e}px`:e.endsWith(`px`)?e:`${e}px`}function j(e,t){let n=e.trim().split(/\s+/g),r={top:n[0]};switch(n.length){case 1:r.right=n[0],r.bottom=n[0],r.left=n[0];break;case 2:r.right=n[1],r.left=n[1],r.bottom=n[0];break;case 3:r.right=n[1],r.bottom=n[2],r.left=n[1];break;case 4:r.right=n[1],r.bottom=n[2],r.left=n[3];break;default:throw Error(`[seemly/getMargin]:`+e+` is not a valid value.`)}return t===void 0?r:r[t]}function M(e){return e.composedPath()[0]}var N={mousemoveoutside:new WeakMap,clickoutside:new WeakMap};function ae(e,t,n){if(e===`mousemoveoutside`){let e=e=>{t.contains(M(e))||n(e)};return{mousemove:e,touchstart:e}}else if(e===`clickoutside`){let e=!1,r=n=>{e=!t.contains(M(n))},i=r=>{e&&(t.contains(M(r))||n(r))};return{mousedown:r,mouseup:i,touchstart:r,touchend:i}}return console.error(`[evtd/create-trap-handler]: name \`${e}\` is invalid. This could be a bug of evtd.`),{}}function oe(e,t,n){let r=N[e],i=r.get(t);i===void 0&&r.set(t,i=new WeakMap);let a=i.get(n);return a===void 0&&i.set(n,a=ae(e,t,n)),a}function P(e,t,n,r){if(e===`mousemoveoutside`||e===`clickoutside`){let i=oe(e,t,n);return Object.keys(i).forEach(e=>{I(e,document,i[e],r)}),!0}return!1}function F(e,t,n,r){if(e===`mousemoveoutside`||e===`clickoutside`){let i=oe(e,t,n);return Object.keys(i).forEach(e=>{L(e,document,i[e],r)}),!0}return!1}function se(){if(typeof window>`u`)return{on:()=>{},off:()=>{}};let e=new WeakMap,t=new WeakMap;function n(){e.set(this,!0)}function r(){e.set(this,!0),t.set(this,!0)}function i(e,t,n){let r=e[t];return e[t]=function(){return n.apply(e,arguments),r.apply(e,arguments)},e}function a(e,t){e[t]=Event.prototype[t]}let o=new WeakMap,s=Object.getOwnPropertyDescriptor(Event.prototype,`currentTarget`);function c(){return o.get(this)??null}function l(e,t){s!==void 0&&Object.defineProperty(e,`currentTarget`,{configurable:!0,enumerable:!0,get:t??s.get})}let u={bubble:{},capture:{}},d={};function f(){let s=function(s){let{type:d,eventPhase:f,bubbles:p}=s,m=M(s);if(f===2)return;let h=f===1?`capture`:`bubble`,g=m,_=[];for(;g===null&&(g=window),_.push(g),g!==window;)g=g.parentNode||null;let v=u.capture[d],y=u.bubble[d];if(i(s,`stopPropagation`,n),i(s,`stopImmediatePropagation`,r),l(s,c),h===`capture`){if(v===void 0)return;for(let n=_.length-1;n>=0&&!e.has(s);--n){let e=_[n],r=v.get(e);if(r!==void 0){o.set(s,e);for(let e of r){if(t.has(s))break;e(s)}}if(n===0&&!p&&y!==void 0){let n=y.get(e);if(n!==void 0)for(let e of n){if(t.has(s))break;e(s)}}}}else if(h===`bubble`){if(y===void 0)return;for(let n=0;n<_.length&&!e.has(s);++n){let e=_[n],r=y.get(e);if(r!==void 0){o.set(s,e);for(let e of r){if(t.has(s))break;e(s)}}}}a(s,`stopPropagation`),a(s,`stopImmediatePropagation`),l(s)};return s.displayName=`evtdUnifiedHandler`,s}function p(){let e=function(e){let{type:t,eventPhase:n}=e;if(n!==2)return;let r=d[t];r!==void 0&&r.forEach(t=>t(e))};return e.displayName=`evtdUnifiedWindowEventHandler`,e}let m=f(),h=p();function g(e,t){let n=u[e];return n[t]===void 0&&(n[t]=new Map,window.addEventListener(t,m,e===`capture`)),n[t]}function _(e){return d[e]===void 0&&(d[e]=new Set,window.addEventListener(e,h)),d[e]}function v(e,t){let n=e.get(t);return n===void 0&&e.set(t,n=new Set),n}function y(e,t,n,r){let i=u[t][n];if(i!==void 0){let t=i.get(e);if(t!==void 0&&t.has(r))return!0}return!1}function b(e,t){let n=d[e];return!!(n!==void 0&&n.has(t))}function x(e,t,n,r){let i;if(i=typeof r==`object`&&r.once===!0?a=>{S(e,t,i,r),n(a)}:n,P(e,t,i,r))return;let a=v(g(r===!0||typeof r==`object`&&r.capture===!0?`capture`:`bubble`,e),t);if(a.has(i)||a.add(i),t===window){let t=_(e);t.has(i)||t.add(i)}}function S(e,t,n,r){if(F(e,t,n,r))return;let i=r===!0||typeof r==`object`&&r.capture===!0,a=i?`capture`:`bubble`,o=g(a,e),s=v(o,t);if(t===window&&!y(t,i?`bubble`:`capture`,e,n)&&b(e,n)){let t=d[e];t.delete(n),t.size===0&&(window.removeEventListener(e,h),d[e]=void 0)}s.has(n)&&s.delete(n),s.size===0&&o.delete(t),o.size===0&&(window.removeEventListener(e,m,a===`capture`),u[a][e]=void 0)}return{on:x,off:S}}var{on:I,off:L}=se();function R(e,t){return a(e,e=>{e!==void 0&&(t.value=e)}),d(()=>e.value===void 0?t.value:e.value)}var ce=(typeof window>`u`?!1:/iPad|iPhone|iPod/.test(navigator.platform)||navigator.platform===`MacIntel`&&navigator.maxTouchPoints>1)&&!window.MSStream;function le(){return ce}function ue(e){let n={isDeactivated:!1},r=!1;return t(()=>{if(n.isDeactivated=!1,!r){r=!0;return}e()}),l(()=>{n.isDeactivated=!0,r||=!0}),n}function de(e,t){console.error(`[vueuc/${e}]: ${t}`)}var z=[],fe=function(){return z.some(function(e){return e.activeTargets.length>0})},pe=function(){return z.some(function(e){return e.skippedTargets.length>0})},B=`ResizeObserver loop completed with undelivered notifications.`,me=function(){var e;typeof ErrorEvent==`function`?e=new ErrorEvent(`error`,{message:B}):(e=document.createEvent(`Event`),e.initEvent(`error`,!1,!1),e.message=B),window.dispatchEvent(e)},V;(function(e){e.BORDER_BOX=`border-box`,e.CONTENT_BOX=`content-box`,e.DEVICE_PIXEL_CONTENT_BOX=`device-pixel-content-box`})(V||={});var H=function(e){return Object.freeze(e)},U=function(){function e(e,t){this.inlineSize=e,this.blockSize=t,H(this)}return e}(),he=function(){function e(e,t,n,r){return this.x=e,this.y=t,this.width=n,this.height=r,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,H(this)}return e.prototype.toJSON=function(){var e=this;return{x:e.x,y:e.y,top:e.top,right:e.right,bottom:e.bottom,left:e.left,width:e.width,height:e.height}},e.fromRect=function(t){return new e(t.x,t.y,t.width,t.height)},e}(),W=function(e){return e instanceof SVGElement&&`getBBox`in e},G=function(e){if(W(e)){var t=e.getBBox(),n=t.width,r=t.height;return!n&&!r}var i=e,a=i.offsetWidth,o=i.offsetHeight;return!(a||o||e.getClientRects().length)},ge=function(e){if(e instanceof Element)return!0;var t=e?.ownerDocument?.defaultView;return!!(t&&e instanceof t.Element)},_e=function(e){switch(e.tagName){case`INPUT`:if(e.type!==`image`)break;case`VIDEO`:case`AUDIO`:case`EMBED`:case`OBJECT`:case`CANVAS`:case`IFRAME`:case`IMG`:return!0}return!1},K=typeof window<`u`?window:{},q=new WeakMap,ve=/auto|scroll/,ye=/^tb|vertical/,be=/msie|trident/i.test(K.navigator&&K.navigator.userAgent),J=function(e){return parseFloat(e||`0`)},Y=function(e,t,n){return e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=!1),new U((n?t:e)||0,(n?e:t)||0)},xe=H({devicePixelContentBoxSize:Y(),borderBoxSize:Y(),contentBoxSize:Y(),contentRect:new he(0,0,0,0)}),Se=function(e,t){if(t===void 0&&(t=!1),q.has(e)&&!t)return q.get(e);if(G(e))return q.set(e,xe),xe;var n=getComputedStyle(e),r=W(e)&&e.ownerSVGElement&&e.getBBox(),i=!be&&n.boxSizing===`border-box`,a=ye.test(n.writingMode||``),o=!r&&ve.test(n.overflowY||``),s=!r&&ve.test(n.overflowX||``),c=r?0:J(n.paddingTop),l=r?0:J(n.paddingRight),u=r?0:J(n.paddingBottom),d=r?0:J(n.paddingLeft),f=r?0:J(n.borderTopWidth),p=r?0:J(n.borderRightWidth),m=r?0:J(n.borderBottomWidth),h=r?0:J(n.borderLeftWidth),g=d+l,_=c+u,v=h+p,y=f+m,b=s?e.offsetHeight-y-e.clientHeight:0,x=o?e.offsetWidth-v-e.clientWidth:0,S=i?g+v:0,C=i?_+y:0,w=r?r.width:J(n.width)-S-x,T=r?r.height:J(n.height)-C-b,ee=w+g+x+v,E=T+_+b+y,te=H({devicePixelContentBoxSize:Y(Math.round(w*devicePixelRatio),Math.round(T*devicePixelRatio),a),borderBoxSize:Y(ee,E,a),contentBoxSize:Y(w,T,a),contentRect:new he(d,c,w,T)});return q.set(e,te),te},Ce=function(e,t,n){var r=Se(e,n),i=r.borderBoxSize,a=r.contentBoxSize,o=r.devicePixelContentBoxSize;switch(t){case V.DEVICE_PIXEL_CONTENT_BOX:return o;case V.BORDER_BOX:return i;default:return a}},we=function(){function e(e){var t=Se(e);this.target=e,this.contentRect=t.contentRect,this.borderBoxSize=H([t.borderBoxSize]),this.contentBoxSize=H([t.contentBoxSize]),this.devicePixelContentBoxSize=H([t.devicePixelContentBoxSize])}return e}(),Te=function(e){if(G(e))return 1/0;for(var t=0,n=e.parentNode;n;)t+=1,n=n.parentNode;return t},Ee=function(){var e=1/0,t=[];z.forEach(function(n){if(n.activeTargets.length!==0){var r=[];n.activeTargets.forEach(function(t){var n=new we(t.target),i=Te(t.target);r.push(n),t.lastReportedSize=Ce(t.target,t.observedBox),i<e&&(e=i)}),t.push(function(){n.callback.call(n.observer,r,n.observer)}),n.activeTargets.splice(0,n.activeTargets.length)}});for(var n=0,r=t;n<r.length;n++){var i=r[n];i()}return e},X=function(e){z.forEach(function(t){t.activeTargets.splice(0,t.activeTargets.length),t.skippedTargets.splice(0,t.skippedTargets.length),t.observationTargets.forEach(function(n){n.isActive()&&(Te(n.target)>e?t.activeTargets.push(n):t.skippedTargets.push(n))})})},De=function(){var e=0;for(X(e);fe();)e=Ee(),X(e);return pe()&&me(),e>0},Oe,ke=[],Ae=function(){return ke.splice(0).forEach(function(e){return e()})},je=function(e){if(!Oe){var t=0,n=document.createTextNode(``);new MutationObserver(function(){return Ae()}).observe(n,{characterData:!0}),Oe=function(){n.textContent=`${t?t--:t++}`}}ke.push(e),Oe()},Me=function(e){je(function(){requestAnimationFrame(e)})},Z=0,Ne=function(){return!!Z},Pe=250,Fe={attributes:!0,characterData:!0,childList:!0,subtree:!0},Ie=[`resize`,`load`,`transitionend`,`animationend`,`animationstart`,`animationiteration`,`keyup`,`keydown`,`mouseup`,`mousedown`,`mouseover`,`mouseout`,`blur`,`focus`],Le=function(e){return e===void 0&&(e=0),Date.now()+e},Re=!1,ze=new(function(){function e(){var e=this;this.stopped=!0,this.listener=function(){return e.schedule()}}return e.prototype.run=function(e){var t=this;if(e===void 0&&(e=Pe),!Re){Re=!0;var n=Le(e);Me(function(){var r=!1;try{r=De()}finally{if(Re=!1,e=n-Le(),!Ne())return;r?t.run(1e3):e>0?t.run(e):t.start()}})}},e.prototype.schedule=function(){this.stop(),this.run()},e.prototype.observe=function(){var e=this,t=function(){return e.observer&&e.observer.observe(document.body,Fe)};document.body?t():K.addEventListener(`DOMContentLoaded`,t)},e.prototype.start=function(){var e=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),Ie.forEach(function(t){return K.addEventListener(t,e.listener,!0)}))},e.prototype.stop=function(){var e=this;this.stopped||=(this.observer&&this.observer.disconnect(),Ie.forEach(function(t){return K.removeEventListener(t,e.listener,!0)}),!0)},e}()),Be=function(e){!Z&&e>0&&ze.start(),Z+=e,!Z&&ze.stop()},Ve=function(e){return!W(e)&&!_e(e)&&getComputedStyle(e).display===`inline`},He=function(){function e(e,t){this.target=e,this.observedBox=t||V.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var e=Ce(this.target,this.observedBox,!0);return Ve(this.target)&&(this.lastReportedSize=e),this.lastReportedSize.inlineSize!==e.inlineSize||this.lastReportedSize.blockSize!==e.blockSize},e}(),Ue=function(){function e(e,t){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=e,this.callback=t}return e}(),We=new WeakMap,Ge=function(e,t){for(var n=0;n<e.length;n+=1)if(e[n].target===t)return n;return-1},Ke=function(){function e(){}return e.connect=function(e,t){var n=new Ue(e,t);We.set(e,n)},e.observe=function(e,t,n){var r=We.get(e),i=r.observationTargets.length===0;Ge(r.observationTargets,t)<0&&(i&&z.push(r),r.observationTargets.push(new He(t,n&&n.box)),Be(1),ze.schedule())},e.unobserve=function(e,t){var n=We.get(e),r=Ge(n.observationTargets,t),i=n.observationTargets.length===1;r>=0&&(i&&z.splice(z.indexOf(n),1),n.observationTargets.splice(r,1),Be(-1))},e.disconnect=function(e){var t=this,n=We.get(e);n.observationTargets.slice().forEach(function(n){return t.unobserve(e,n.target)}),n.activeTargets.splice(0,n.activeTargets.length)},e}(),qe=function(){function e(e){if(arguments.length===0)throw TypeError(`Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.`);if(typeof e!=`function`)throw TypeError(`Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.`);Ke.connect(this,e)}return e.prototype.observe=function(e,t){if(arguments.length===0)throw TypeError(`Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.`);if(!ge(e))throw TypeError(`Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element`);Ke.observe(this,e,t)},e.prototype.unobserve=function(e){if(arguments.length===0)throw TypeError(`Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.`);if(!ge(e))throw TypeError(`Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element`);Ke.unobserve(this,e)},e.prototype.disconnect=function(){Ke.disconnect(this)},e.toString=function(){return`function ResizeObserver () { [polyfill code] }`},e}(),Je=new class{constructor(){this.handleResize=this.handleResize.bind(this),this.observer=new(typeof window<`u`&&window.ResizeObserver||qe)(this.handleResize),this.elHandlersMap=new Map}handleResize(e){for(let t of e){let e=this.elHandlersMap.get(t.target);e!==void 0&&e(t)}}registerHandler(e,t){this.elHandlersMap.set(e,t),this.observer.observe(e)}unregisterHandler(e){this.elHandlersMap.has(e)&&(this.elHandlersMap.delete(e),this.observer.unobserve(e))}},Ye=p({name:`ResizeObserver`,props:{onResize:Function},setup(e){let t=!1,r=h().proxy;function i(t){let{onResize:n}=e;n!==void 0&&n(t)}n(()=>{let e=r.$el;if(e===void 0){de(`resize-observer`,`$el does not exist.`);return}if(e.nextElementSibling!==e.nextSibling&&e.nodeType===3&&e.nodeValue!==``){de(`resize-observer`,`$el can not be observed (it may be a text node).`);return}e.nextElementSibling!==null&&(Je.registerHandler(e.nextElementSibling,i),t=!0)}),u(()=>{t&&Je.unregisterHandler(r.$el.nextElementSibling)})},render(){return r(this.$slots,`default`)}});function Xe(e){let{left:t,right:n,top:r,bottom:i}=j(e);return`${r} ${t} ${i} ${n}`}var Ze=p({render(){var e;return(e=this.$slots).default?.call(e)}}),Qe={name:`en-US`,global:{undo:`Undo`,redo:`Redo`,confirm:`Confirm`,clear:`Clear`},Popconfirm:{positiveText:`Confirm`,negativeText:`Cancel`},Cascader:{placeholder:`Please Select`,loading:`Loading`,loadingRequiredMessage:e=>`Please load all ${e}'s descendants before checking it.`},Time:{dateFormat:`yyyy-MM-dd`,dateTimeFormat:`yyyy-MM-dd HH:mm:ss`},DatePicker:{yearFormat:`yyyy`,monthFormat:`MMM`,dayFormat:`eeeeee`,yearTypeFormat:`yyyy`,monthTypeFormat:`yyyy-MM`,dateFormat:`yyyy-MM-dd`,dateTimeFormat:`yyyy-MM-dd HH:mm:ss`,quarterFormat:`yyyy-qqq`,weekFormat:`YYYY-w`,clear:`Clear`,now:`Now`,confirm:`Confirm`,selectTime:`Select Time`,selectDate:`Select Date`,datePlaceholder:`Select Date`,datetimePlaceholder:`Select Date and Time`,monthPlaceholder:`Select Month`,yearPlaceholder:`Select Year`,quarterPlaceholder:`Select Quarter`,weekPlaceholder:`Select Week`,startDatePlaceholder:`Start Date`,endDatePlaceholder:`End Date`,startDatetimePlaceholder:`Start Date and Time`,endDatetimePlaceholder:`End Date and Time`,startMonthPlaceholder:`Start Month`,endMonthPlaceholder:`End Month`,monthBeforeYear:!0,firstDayOfWeek:6,today:`Today`},DataTable:{checkTableAll:`Select all in the table`,uncheckTableAll:`Unselect all in the table`,confirm:`Confirm`,clear:`Clear`},LegacyTransfer:{sourceTitle:`Source`,targetTitle:`Target`},Transfer:{selectAll:`Select all`,unselectAll:`Unselect all`,clearAll:`Clear`,total:e=>`Total ${e} items`,selected:e=>`${e} items selected`},Empty:{description:`No Data`},Select:{placeholder:`Please Select`},TimePicker:{placeholder:`Select Time`,positiveText:`OK`,negativeText:`Cancel`,now:`Now`,clear:`Clear`},Pagination:{goto:`Goto`,selectionSuffix:`page`},DynamicTags:{add:`Add`},Log:{loading:`Loading`},Input:{placeholder:`Please Input`},InputNumber:{placeholder:`Please Input`},DynamicInput:{create:`Create`},ThemeEditor:{title:`Theme Editor`,clearAllVars:`Clear All Variables`,clearSearch:`Clear Search`,filterCompName:`Filter Component Name`,filterVarName:`Filter Variable Name`,import:`Import`,export:`Export`,restore:`Reset to Default`},Image:{tipPrevious:`Previous picture (←)`,tipNext:`Next picture (→)`,tipCounterclockwise:`Counterclockwise`,tipClockwise:`Clockwise`,tipZoomOut:`Zoom out`,tipZoomIn:`Zoom in`,tipDownload:`Download`,tipClose:`Close (Esc)`,tipOriginalSize:`Zoom to original size`},Heatmap:{less:`less`,more:`more`,monthFormat:`MMM`,weekdayFormat:`eee`}};function $e(e){return(t={})=>{let n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}function Q(e){return(t,n)=>{let r=n?.context?String(n.context):`standalone`,i;if(r===`formatting`&&e.formattingValues){let t=e.defaultFormattingWidth||e.defaultWidth,r=n?.width?String(n.width):t;i=e.formattingValues[r]||e.formattingValues[t]}else{let t=e.defaultWidth,r=n?.width?String(n.width):e.defaultWidth;i=e.values[r]||e.values[t]}let a=e.argumentCallback?e.argumentCallback(t):t;return i[a]}}function $(e){return(t,n={})=>{let r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(i);if(!a)return null;let o=a[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(s)?tt(s,e=>e.test(o)):et(s,e=>e.test(o)),l;l=e.valueCallback?e.valueCallback(c):c,l=n.valueCallback?n.valueCallback(l):l;let u=t.slice(o.length);return{value:l,rest:u}}}function et(e,t){for(let n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function tt(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function nt(e){return(t,n={})=>{let r=t.match(e.matchPattern);if(!r)return null;let i=r[0],a=t.match(e.parsePattern);if(!a)return null;let o=e.valueCallback?e.valueCallback(a[0]):a[0];o=n.valueCallback?n.valueCallback(o):o;let s=t.slice(i.length);return{value:o,rest:s}}}var rt={lessThanXSeconds:{one:`less than a second`,other:`less than {{count}} seconds`},xSeconds:{one:`1 second`,other:`{{count}} seconds`},halfAMinute:`half a minute`,lessThanXMinutes:{one:`less than a minute`,other:`less than {{count}} minutes`},xMinutes:{one:`1 minute`,other:`{{count}} minutes`},aboutXHours:{one:`about 1 hour`,other:`about {{count}} hours`},xHours:{one:`1 hour`,other:`{{count}} hours`},xDays:{one:`1 day`,other:`{{count}} days`},aboutXWeeks:{one:`about 1 week`,other:`about {{count}} weeks`},xWeeks:{one:`1 week`,other:`{{count}} weeks`},aboutXMonths:{one:`about 1 month`,other:`about {{count}} months`},xMonths:{one:`1 month`,other:`{{count}} months`},aboutXYears:{one:`about 1 year`,other:`about {{count}} years`},xYears:{one:`1 year`,other:`{{count}} years`},overXYears:{one:`over 1 year`,other:`over {{count}} years`},almostXYears:{one:`almost 1 year`,other:`almost {{count}} years`}},it=(e,t,n)=>{let r,i=rt[e];return r=typeof i==`string`?i:t===1?i.one:i.other.replace(`{{count}}`,t.toString()),n?.addSuffix?n.comparison&&n.comparison>0?`in `+r:r+` ago`:r},at={lastWeek:`'last' eeee 'at' p`,yesterday:`'yesterday at' p`,today:`'today at' p`,tomorrow:`'tomorrow at' p`,nextWeek:`eeee 'at' p`,other:`P`},ot=(e,t,n,r)=>at[e],st={ordinalNumber:(e,t)=>{let n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+`st`;case 2:return n+`nd`;case 3:return n+`rd`}return n+`th`},era:Q({values:{narrow:[`B`,`A`],abbreviated:[`BC`,`AD`],wide:[`Before Christ`,`Anno Domini`]},defaultWidth:`wide`}),quarter:Q({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`Q1`,`Q2`,`Q3`,`Q4`],wide:[`1st quarter`,`2nd quarter`,`3rd quarter`,`4th quarter`]},defaultWidth:`wide`,argumentCallback:e=>e-1}),month:Q({values:{narrow:[`J`,`F`,`M`,`A`,`M`,`J`,`J`,`A`,`S`,`O`,`N`,`D`],abbreviated:[`Jan`,`Feb`,`Mar`,`Apr`,`May`,`Jun`,`Jul`,`Aug`,`Sep`,`Oct`,`Nov`,`Dec`],wide:[`January`,`February`,`March`,`April`,`May`,`June`,`July`,`August`,`September`,`October`,`November`,`December`]},defaultWidth:`wide`}),day:Q({values:{narrow:[`S`,`M`,`T`,`W`,`T`,`F`,`S`],short:[`Su`,`Mo`,`Tu`,`We`,`Th`,`Fr`,`Sa`],abbreviated:[`Sun`,`Mon`,`Tue`,`Wed`,`Thu`,`Fri`,`Sat`],wide:[`Sunday`,`Monday`,`Tuesday`,`Wednesday`,`Thursday`,`Friday`,`Saturday`]},defaultWidth:`wide`}),dayPeriod:Q({values:{narrow:{am:`a`,pm:`p`,midnight:`mi`,noon:`n`,morning:`morning`,afternoon:`afternoon`,evening:`evening`,night:`night`},abbreviated:{am:`AM`,pm:`PM`,midnight:`midnight`,noon:`noon`,morning:`morning`,afternoon:`afternoon`,evening:`evening`,night:`night`},wide:{am:`a.m.`,pm:`p.m.`,midnight:`midnight`,noon:`noon`,morning:`morning`,afternoon:`afternoon`,evening:`evening`,night:`night`}},defaultWidth:`wide`,formattingValues:{narrow:{am:`a`,pm:`p`,midnight:`mi`,noon:`n`,morning:`in the morning`,afternoon:`in the afternoon`,evening:`in the evening`,night:`at night`},abbreviated:{am:`AM`,pm:`PM`,midnight:`midnight`,noon:`noon`,morning:`in the morning`,afternoon:`in the afternoon`,evening:`in the evening`,night:`at night`},wide:{am:`a.m.`,pm:`p.m.`,midnight:`midnight`,noon:`noon`,morning:`in the morning`,afternoon:`in the afternoon`,evening:`in the evening`,night:`at night`}},defaultFormattingWidth:`wide`})},ct={ordinalNumber:nt({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:$({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:`any`}),quarter:$({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:`any`,valueCallback:e=>e+1}),month:$({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:`any`}),day:$({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:`any`}),dayPeriod:$({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:`any`})},lt={name:`en-US`,locale:{code:`en-US`,formatDistance:it,formatLong:{date:$e({formats:{full:`EEEE, MMMM do, y`,long:`MMMM do, y`,medium:`MMM d, y`,short:`MM/dd/yyyy`},defaultWidth:`full`}),time:$e({formats:{full:`h:mm:ss a zzzz`,long:`h:mm:ss a z`,medium:`h:mm:ss a`,short:`h:mm a`},defaultWidth:`full`}),dateTime:$e({formats:{full:`{{date}} 'at' {{time}}`,long:`{{date}} 'at' {{time}}`,medium:`{{date}}, {{time}}`,short:`{{date}}, {{time}}`},defaultWidth:`full`})},formatRelative:ot,localize:st,match:ct,options:{weekStartsOn:0,firstWeekContainsDate:1}}},ut=`[object Symbol]`;function dt(e){return typeof e==`symbol`||g(e)&&v(e)==ut}function ft(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}var pt=1/0,mt=y?y.prototype:void 0,ht=mt?mt.toString:void 0;function gt(e){if(typeof e==`string`)return e;if(b(e))return ft(e,gt)+``;if(dt(e))return ht?ht.call(e):``;var t=e+``;return t==`0`&&1/e==-pt?`-0`:t}function _t(e){return e==null?``:gt(e)}function vt(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),n=n>i?i:n,n<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var a=Array(i);++r<i;)a[r]=e[r+t];return a}function yt(e,t,n){var r=e.length;return n=n===void 0?r:n,!t&&n>=r?e:vt(e,t,n)}var bt=RegExp(`[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]`);function xt(e){return bt.test(e)}function St(e){return e.split(``)}var Ct=`\\ud800-\\udfff`,wt=`\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff`,Tt=`\\ufe0e\\ufe0f`,Et=`[`+Ct+`]`,Dt=`[`+wt+`]`,Ot=`\\ud83c[\\udffb-\\udfff]`,kt=`(?:`+Dt+`|`+Ot+`)`,At=`[^`+Ct+`]`,jt=`(?:\\ud83c[\\udde6-\\uddff]){2}`,Mt=`[\\ud800-\\udbff][\\udc00-\\udfff]`,Nt=`\\u200d`,Pt=kt+`?`,Ft=`[`+Tt+`]?`,It=`(?:`+Nt+`(?:`+[At,jt,Mt].join(`|`)+`)`+Ft+Pt+`)*`,Lt=Ft+Pt+It,Rt=`(?:`+[At+Dt+`?`,Dt,jt,Mt,Et].join(`|`)+`)`,zt=RegExp(Ot+`(?=`+Ot+`)|`+Rt+Lt,`g`);function Bt(e){return e.match(zt)||[]}function Vt(e){return xt(e)?Bt(e):St(e)}function Ht(e){return function(t){t=_t(t);var n=xt(t)?Vt(t):void 0,r=n?n[0]:t.charAt(0),i=n?yt(n,1).join(``):t.slice(1);return r[e]()+i}}var Ut=Ht(`toUpperCase`);function Wt(t){let{mergedLocaleRef:n,mergedDateLocaleRef:r}=e(S,null)||{},i=d(()=>n?.value?.[t]??Qe[t]);return{dateLocaleRef:d(()=>r?.value??lt),localeRef:i}}var Gt=D(`base-icon`,`
2
- height: 1em;
3
- width: 1em;
4
- line-height: 1em;
5
- text-align: center;
6
- display: inline-block;
7
- position: relative;
8
- fill: currentColor;
9
- `,[C(`svg`,`
10
- height: 1em;
11
- width: 1em;
12
- `)]),Kt=p({name:`BaseIcon`,props:{role:String,ariaLabel:String,ariaDisabled:{type:Boolean,default:void 0},ariaHidden:{type:Boolean,default:void 0},clsPrefix:{type:String,required:!0},onClick:Function,onMousedown:Function,onMouseup:Function},setup(e){k(`-base-icon`,Gt,s(e,`clsPrefix`))},render(){return m(`i`,{class:`${this.clsPrefix}-base-icon`,onClick:this.onClick,onMousedown:this.onMousedown,onMouseup:this.onMouseup,role:this.role,"aria-label":this.ariaLabel,"aria-hidden":this.ariaHidden,"aria-disabled":this.ariaDisabled},this.$slots)}});function qt(t,n){let r=p({render(){return n()}});return p({name:Ut(t),setup(){let n=e(S,null)?.mergedIconsRef;return()=>{let e=n?.value?.[t];return e?e():m(r,null)}}})}var{cubicBezierEaseInOut:Jt}=w;function Yt({name:e=`fade-in`,enterDuration:t=`0.2s`,leaveDuration:n=`0.2s`,enterCubicBezier:r=Jt,leaveCubicBezier:i=Jt}={}){return[C(`&.${e}-transition-enter-active`,{transition:`all ${t} ${r}!important`}),C(`&.${e}-transition-leave-active`,{transition:`all ${n} ${i}!important`}),C(`&.${e}-transition-enter-from, &.${e}-transition-leave-to`,{opacity:0}),C(`&.${e}-transition-leave-from, &.${e}-transition-enter-to`,{opacity:1})]}var Xt={railInsetHorizontalBottom:`auto 2px 4px 2px`,railInsetHorizontalTop:`4px 2px auto 2px`,railInsetVerticalRight:`2px 4px 2px auto`,railInsetVerticalLeft:`2px auto 2px 4px`,railColor:`transparent`};function Zt(e){let{scrollbarColor:t,scrollbarColorHover:n,scrollbarHeight:r,scrollbarWidth:i,scrollbarBorderRadius:a}=e;return Object.assign(Object.assign({},Xt),{height:r,width:i,borderRadius:a,color:t,colorHover:n})}var Qt={name:`Scrollbar`,common:O,self:Zt},$t=D(`scrollbar`,`
13
- overflow: hidden;
14
- position: relative;
15
- z-index: auto;
16
- height: 100%;
17
- width: 100%;
18
- `,[C(`>`,[D(`scrollbar-container`,`
19
- width: 100%;
20
- overflow: scroll;
21
- height: 100%;
22
- min-height: inherit;
23
- max-height: inherit;
24
- scrollbar-width: none;
25
- `,[C(`&::-webkit-scrollbar, &::-webkit-scrollbar-track-piece, &::-webkit-scrollbar-thumb`,`
26
- width: 0;
27
- height: 0;
28
- display: none;
29
- `),C(`>`,[D(`scrollbar-content`,`
30
- box-sizing: border-box;
31
- min-width: 100%;
32
- `)])])]),C(`>, +`,[D(`scrollbar-rail`,`
33
- position: absolute;
34
- pointer-events: none;
35
- user-select: none;
36
- background: var(--n-scrollbar-rail-color);
37
- -webkit-user-select: none;
38
- `,[E(`horizontal`,`
39
- height: var(--n-scrollbar-height);
40
- `,[C(`>`,[T(`scrollbar`,`
41
- height: var(--n-scrollbar-height);
42
- border-radius: var(--n-scrollbar-border-radius);
43
- right: 0;
44
- `)])]),E(`horizontal--top`,`
45
- top: var(--n-scrollbar-rail-top-horizontal-top);
46
- right: var(--n-scrollbar-rail-right-horizontal-top);
47
- bottom: var(--n-scrollbar-rail-bottom-horizontal-top);
48
- left: var(--n-scrollbar-rail-left-horizontal-top);
49
- `),E(`horizontal--bottom`,`
50
- top: var(--n-scrollbar-rail-top-horizontal-bottom);
51
- right: var(--n-scrollbar-rail-right-horizontal-bottom);
52
- bottom: var(--n-scrollbar-rail-bottom-horizontal-bottom);
53
- left: var(--n-scrollbar-rail-left-horizontal-bottom);
54
- `),E(`vertical`,`
55
- width: var(--n-scrollbar-width);
56
- `,[C(`>`,[T(`scrollbar`,`
57
- width: var(--n-scrollbar-width);
58
- border-radius: var(--n-scrollbar-border-radius);
59
- bottom: 0;
60
- `)])]),E(`vertical--left`,`
61
- top: var(--n-scrollbar-rail-top-vertical-left);
62
- right: var(--n-scrollbar-rail-right-vertical-left);
63
- bottom: var(--n-scrollbar-rail-bottom-vertical-left);
64
- left: var(--n-scrollbar-rail-left-vertical-left);
65
- `),E(`vertical--right`,`
66
- top: var(--n-scrollbar-rail-top-vertical-right);
67
- right: var(--n-scrollbar-rail-right-vertical-right);
68
- bottom: var(--n-scrollbar-rail-bottom-vertical-right);
69
- left: var(--n-scrollbar-rail-left-vertical-right);
70
- `),E(`disabled`,[C(`>`,[T(`scrollbar`,`pointer-events: none;`)])]),C(`>`,[T(`scrollbar`,`
71
- z-index: 1;
72
- position: absolute;
73
- cursor: pointer;
74
- pointer-events: all;
75
- background-color: var(--n-scrollbar-color);
76
- transition: background-color .2s var(--n-scrollbar-bezier);
77
- `,[Yt(),C(`&:hover`,`background-color: var(--n-scrollbar-color-hover);`)])])])])]),en=p({name:`Scrollbar`,props:Object.assign(Object.assign({},te.props),{duration:{type:Number,default:0},scrollable:{type:Boolean,default:!0},xScrollable:Boolean,trigger:{type:String,default:`hover`},useUnifiedContainer:Boolean,triggerDisplayManually:Boolean,container:Function,content:Function,containerClass:String,containerStyle:[String,Object],contentClass:[String,Array],contentStyle:[String,Object],horizontalRailStyle:[String,Object],verticalRailStyle:[String,Object],onScroll:Function,onWheel:Function,onResize:Function,internalOnUpdateScrollLeft:Function,internalHoistYRail:Boolean,internalExposeWidthCssVar:Boolean,yPlacement:{type:String,default:`right`},xPlacement:{type:String,default:`bottom`}}),inheritAttrs:!1,setup(e){let{mergedClsPrefixRef:t,inlineThemeDisabled:r,mergedRtlRef:i}=_(e),a=ee(`Scrollbar`,i,t),s=f(null),c=f(null),l=f(null),p=f(null),m=f(null),h=f(null),g=f(null),v=f(null),y=f(null),b=f(null),S=f(null),C=f(0),w=f(0),T=f(!1),E=f(!1),D=!1,O=!1,k,A,ie=0,M=0,N=0,ae=0,oe=le(),P=te(`Scrollbar`,`-scrollbar`,$t,Qt,e,t),F=d(()=>{let{value:e}=v,{value:t}=h,{value:n}=b;return e===null||t===null||n===null?0:Math.min(e,n*e/t+re(P.value.self.width)*1.5)}),se=d(()=>`${F.value}px`),R=d(()=>{let{value:e}=y,{value:t}=g,{value:n}=S;return e===null||t===null||n===null?0:n*e/t+re(P.value.self.height)*1.5}),ce=d(()=>`${R.value}px`),de=d(()=>{let{value:e}=v,{value:t}=C,{value:n}=h,{value:r}=b;if(e===null||n===null||r===null)return 0;{let i=n-e;return i?t/i*(r-F.value):0}}),z=d(()=>`${de.value}px`),fe=d(()=>{let{value:e}=y,{value:t}=w,{value:n}=g,{value:r}=S;if(e===null||n===null||r===null)return 0;{let i=n-e;return i?t/i*(r-R.value):0}}),pe=d(()=>`${fe.value}px`),B=d(()=>{let{value:e}=v,{value:t}=h;return e!==null&&t!==null&&t>e}),me=d(()=>{let{value:e}=y,{value:t}=g;return e!==null&&t!==null&&t>e}),V=d(()=>{let{trigger:t}=e;return t===`none`||T.value}),H=d(()=>{let{trigger:t}=e;return t===`none`||E.value}),U=d(()=>{let{container:t}=e;return t?t():c.value}),he=d(()=>{let{content:t}=e;return t?t():l.value}),W=(t,n)=>{if(!e.scrollable)return;if(typeof t==`number`){q(t,n??0,0,!1,`auto`);return}let{left:r,top:i,index:a,elSize:o,position:s,behavior:c,el:l,debounce:u=!0}=t;(r!==void 0||i!==void 0)&&q(r??0,i??0,0,!1,c),l===void 0?a!==void 0&&o!==void 0?q(0,a*o,o,u,c):s===`bottom`?q(0,2**53-1,0,!1,c):s===`top`&&q(0,0,0,!1,c):q(0,l.offsetTop,l.offsetHeight,u,c)},G=ue(()=>{e.container||W({top:C.value,left:w.value})}),ge=()=>{G.isDeactivated||X()},_e=t=>{if(G.isDeactivated)return;let{onResize:n}=e;n&&n(t),X()},K=(t,n)=>{if(!e.scrollable)return;let{value:r}=U;r&&(typeof t==`object`?r.scrollBy(t):r.scrollBy(t,n||0))};function q(e,t,n,r,i){let{value:a}=U;if(a){if(r){let{scrollTop:r,offsetHeight:o}=a;if(t>r){t+n<=r+o||a.scrollTo({left:e,top:t+n-o,behavior:i});return}}a.scrollTo({left:e,top:t,behavior:i})}}function ve(){xe(),Se(),X()}function ye(){be()}function be(){J(),Y()}function J(){A!==void 0&&window.clearTimeout(A),A=window.setTimeout(()=>{E.value=!1},e.duration)}function Y(){k!==void 0&&window.clearTimeout(k),k=window.setTimeout(()=>{T.value=!1},e.duration)}function xe(){k!==void 0&&window.clearTimeout(k),T.value=!0}function Se(){A!==void 0&&window.clearTimeout(A),E.value=!0}function Ce(t){let{onScroll:n}=e;n&&n(t),we()}function we(){let{value:e}=U;e&&(C.value=e.scrollTop,w.value=e.scrollLeft*(a?.value?-1:1))}function Te(){let{value:e}=he;e&&(h.value=e.offsetHeight,g.value=e.offsetWidth);let{value:t}=U;t&&(v.value=t.offsetHeight,y.value=t.offsetWidth);let{value:n}=m,{value:r}=p;n&&(S.value=n.offsetWidth),r&&(b.value=r.offsetHeight)}function Ee(){let{value:e}=U;e&&(C.value=e.scrollTop,w.value=e.scrollLeft*(a?.value?-1:1),v.value=e.offsetHeight,y.value=e.offsetWidth,h.value=e.scrollHeight,g.value=e.scrollWidth);let{value:t}=m,{value:n}=p;t&&(S.value=t.offsetWidth),n&&(b.value=n.offsetHeight)}function X(){e.scrollable&&(e.useUnifiedContainer?Ee():(Te(),we()))}function De(e){return!s.value?.contains(ne(e))}function Oe(e){e.preventDefault(),e.stopPropagation(),O=!0,I(`mousemove`,window,ke,!0),I(`mouseup`,window,Ae,!0),M=w.value,N=a?.value?window.innerWidth-e.clientX:e.clientX}function ke(t){if(!O)return;k!==void 0&&window.clearTimeout(k),A!==void 0&&window.clearTimeout(A);let{value:n}=y,{value:r}=g,{value:i}=R;if(n===null||r===null)return;let o=(a?.value?window.innerWidth-t.clientX-N:t.clientX-N)*(r-n)/(n-i),s=r-n,c=M+o;c=Math.min(s,c),c=Math.max(c,0);let{value:l}=U;if(l){l.scrollLeft=c*(a?.value?-1:1);let{internalOnUpdateScrollLeft:t}=e;t&&t(c)}}function Ae(e){e.preventDefault(),e.stopPropagation(),L(`mousemove`,window,ke,!0),L(`mouseup`,window,Ae,!0),O=!1,X(),De(e)&&be()}function je(e){e.preventDefault(),e.stopPropagation(),D=!0,I(`mousemove`,window,Me,!0),I(`mouseup`,window,Z,!0),ie=C.value,ae=e.clientY}function Me(e){if(!D)return;k!==void 0&&window.clearTimeout(k),A!==void 0&&window.clearTimeout(A);let{value:t}=v,{value:n}=h,{value:r}=F;if(t===null||n===null)return;let i=(e.clientY-ae)*(n-t)/(t-r),a=n-t,o=ie+i;o=Math.min(a,o),o=Math.max(o,0);let{value:s}=U;s&&(s.scrollTop=o)}function Z(e){e.preventDefault(),e.stopPropagation(),L(`mousemove`,window,Me,!0),L(`mouseup`,window,Z,!0),D=!1,X(),De(e)&&be()}o(()=>{let{value:e}=me,{value:n}=B,{value:r}=t,{value:i}=m,{value:a}=p;i&&(e?i.classList.remove(`${r}-scrollbar-rail--disabled`):i.classList.add(`${r}-scrollbar-rail--disabled`)),a&&(n?a.classList.remove(`${r}-scrollbar-rail--disabled`):a.classList.add(`${r}-scrollbar-rail--disabled`))}),n(()=>{e.container||X()}),u(()=>{k!==void 0&&window.clearTimeout(k),A!==void 0&&window.clearTimeout(A),L(`mousemove`,window,Me,!0),L(`mouseup`,window,Z,!0)});let Ne=d(()=>{let{common:{cubicBezierEaseInOut:e},self:{color:t,colorHover:n,height:r,width:i,borderRadius:o,railInsetHorizontalTop:s,railInsetHorizontalBottom:c,railInsetVerticalRight:l,railInsetVerticalLeft:u,railColor:d}}=P.value,{top:f,right:p,bottom:m,left:h}=j(s),{top:g,right:_,bottom:v,left:y}=j(c),{top:b,right:x,bottom:S,left:C}=j(a?.value?Xe(l):l),{top:w,right:T,bottom:ee,left:E}=j(a?.value?Xe(u):u);return{"--n-scrollbar-bezier":e,"--n-scrollbar-color":t,"--n-scrollbar-color-hover":n,"--n-scrollbar-border-radius":o,"--n-scrollbar-width":i,"--n-scrollbar-height":r,"--n-scrollbar-rail-top-horizontal-top":f,"--n-scrollbar-rail-right-horizontal-top":p,"--n-scrollbar-rail-bottom-horizontal-top":m,"--n-scrollbar-rail-left-horizontal-top":h,"--n-scrollbar-rail-top-horizontal-bottom":g,"--n-scrollbar-rail-right-horizontal-bottom":_,"--n-scrollbar-rail-bottom-horizontal-bottom":v,"--n-scrollbar-rail-left-horizontal-bottom":y,"--n-scrollbar-rail-top-vertical-right":b,"--n-scrollbar-rail-right-vertical-right":x,"--n-scrollbar-rail-bottom-vertical-right":S,"--n-scrollbar-rail-left-vertical-right":C,"--n-scrollbar-rail-top-vertical-left":w,"--n-scrollbar-rail-right-vertical-left":T,"--n-scrollbar-rail-bottom-vertical-left":ee,"--n-scrollbar-rail-left-vertical-left":E,"--n-scrollbar-rail-color":d}}),Pe=r?x(`scrollbar`,void 0,Ne,e):void 0;return Object.assign(Object.assign({},{scrollTo:W,scrollBy:K,sync:X,syncUnifiedContainer:Ee,handleMouseEnterWrapper:ve,handleMouseLeaveWrapper:ye}),{mergedClsPrefix:t,rtlEnabled:a,containerScrollTop:C,wrapperRef:s,containerRef:c,contentRef:l,yRailRef:p,xRailRef:m,needYBar:B,needXBar:me,yBarSizePx:se,xBarSizePx:ce,yBarTopPx:z,xBarLeftPx:pe,isShowXBar:V,isShowYBar:H,isIos:oe,handleScroll:Ce,handleContentResize:ge,handleContainerResize:_e,handleYScrollMouseDown:je,handleXScrollMouseDown:Oe,containerWidth:y,cssVars:r?void 0:Ne,themeClass:Pe?.themeClass,onRender:Pe?.onRender})},render(){let{$slots:e,mergedClsPrefix:t,triggerDisplayManually:n,rtlEnabled:r,internalHoistYRail:a,yPlacement:o,xPlacement:s,xScrollable:l}=this;if(!this.scrollable)return e.default?.call(e);let u=this.trigger===`none`,d=(e,n)=>m(`div`,{ref:`yRailRef`,class:[`${t}-scrollbar-rail`,`${t}-scrollbar-rail--vertical`,`${t}-scrollbar-rail--vertical--${o}`,e],"data-scrollbar-rail":!0,style:[n||``,this.verticalRailStyle],"aria-hidden":!0},m(u?Ze:A,u?null:{name:`fade-in-transition`},{default:()=>this.needYBar&&this.isShowYBar&&!this.isIos?m(`div`,{class:`${t}-scrollbar-rail__scrollbar`,style:{height:this.yBarSizePx,top:this.yBarTopPx},onMousedown:this.handleYScrollMouseDown}):null})),f=()=>{var o;return(o=this.onRender)==null||o.call(this),m(`div`,i(this.$attrs,{role:`none`,ref:`wrapperRef`,class:[`${t}-scrollbar`,this.themeClass,r&&`${t}-scrollbar--rtl`],style:this.cssVars,onMouseenter:n?void 0:this.handleMouseEnterWrapper,onMouseleave:n?void 0:this.handleMouseLeaveWrapper}),[this.container?e.default?.call(e):m(`div`,{role:`none`,ref:`containerRef`,class:[`${t}-scrollbar-container`,this.containerClass],style:[this.containerStyle,this.internalExposeWidthCssVar?{"--n-scrollbar-current-width":ie(this.containerWidth)}:void 0],onScroll:this.handleScroll,onWheel:this.onWheel},m(Ye,{onResize:this.handleContentResize},{default:()=>m(`div`,{ref:`contentRef`,role:`none`,style:[{width:this.xScrollable?`fit-content`:null},this.contentStyle],class:[`${t}-scrollbar-content`,this.contentClass]},e)})),a?null:d(void 0,void 0),l&&m(`div`,{ref:`xRailRef`,class:[`${t}-scrollbar-rail`,`${t}-scrollbar-rail--horizontal`,`${t}-scrollbar-rail--horizontal--${s}`],style:this.horizontalRailStyle,"data-scrollbar-rail":!0,"aria-hidden":!0},m(u?Ze:A,u?null:{name:`fade-in-transition`},{default:()=>this.needXBar&&this.isShowXBar&&!this.isIos?m(`div`,{class:`${t}-scrollbar-rail__scrollbar`,style:{width:this.xBarSizePx,right:r?this.xBarLeftPx:void 0,left:r?void 0:this.xBarLeftPx},onMousedown:this.handleXScrollMouseDown}):null}))])},p=this.container?f():m(Ye,{onResize:this.handleContainerResize},{default:f});return a?m(c,null,p,d(this.themeClass,this.cssVars)):p}}),tn=en;export{re as _,qt as a,ne as b,_t as c,Ze as d,Ye as f,I as g,L as h,Yt as i,ft as l,R as m,tn as n,Kt as o,Je as p,Qt as r,Wt as s,en as t,dt as u,j as v,ie as y};