hermes-web-ui 0.2.5 → 0.2.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.
- package/README.md +138 -205
- package/bin/hermes-web-ui.mjs +14 -2
- package/dist/assets/{Button-DBOPt_s1.js → Button-BHvh9zmj.js} +1 -1
- package/dist/assets/{ChannelsView-BU9QAub-.css → ChannelsView-C7Wor1FB.css} +1 -1
- package/dist/assets/ChannelsView-DZMniRoi.js +1 -0
- package/dist/assets/ChatView-Dt1eqp6-.js +127 -0
- package/dist/assets/{ChatView-D1SaZAvQ.css → ChatView-gR62J-Xr.css} +1 -1
- package/dist/assets/Close-DYPlamoH.js +45 -0
- package/dist/assets/{FormItem-De01hN-G.js → FormItem-C75Y2lpf.js} +1 -1
- package/dist/assets/Input-CS0p63GR.js +234 -0
- package/dist/assets/InputNumber-lHTE1DBf.js +13 -0
- package/dist/assets/JobsView-DoUtVQm_.css +1 -0
- package/dist/assets/JobsView-kGXDpDGq.js +2 -0
- package/dist/assets/LoginView-BXByybMK.css +1 -0
- package/dist/assets/LoginView-HQwDR5A7.js +1 -0
- package/dist/assets/{LogsView-BgmSycD4.js → LogsView-KPcTBGzh.js} +1 -1
- package/dist/assets/{MarkdownRenderer-z5xC7cOw.js → MarkdownRenderer-Bp-uAEtp.js} +1 -1
- package/dist/assets/{MemoryView-BUZGXC60.js → MemoryView-CWEya0jB.js} +1 -1
- package/dist/assets/{Modal-BLLYorfc.js → Modal-mFCAbKPD.js} +5 -5
- package/dist/assets/{ModelsView-ByryHyh7.js → ModelsView-BdPt2Mo_.js} +1 -1
- package/dist/assets/{ModelsView-DCR-0I10.css → ModelsView-DbBXgw4g.css} +1 -1
- package/dist/assets/Popconfirm-C2OzcGTX.js +16 -0
- package/dist/assets/Popover-CRZpNb8Q.js +117 -0
- package/dist/assets/Scrollbar-CA0Mq0os.js +77 -0
- package/dist/assets/Select-DLECSo9D.js +340 -0
- package/dist/assets/SettingRow-CsKwX-jv.js +1 -0
- package/dist/assets/{SettingsView-Y2Et1YHr.css → SettingsView-Citzr3ci.css} +1 -1
- package/dist/assets/SettingsView-DWXjfdpD.js +352 -0
- package/dist/assets/{SkillsView-CREfL6dQ.css → SkillsView-BNEWlriU.css} +1 -1
- package/dist/assets/{SkillsView-Blcv_g2_.js → SkillsView-Gb4tyJjH.js} +1 -1
- package/dist/assets/{Spin-DiwsqMEC.js → Spin-BbbA3R-G.js} +1 -1
- package/dist/assets/Suffix-BMwB7UJK.js +25 -0
- package/dist/assets/{Switch-Ce0Tgpcj.js → Switch-Xa0U6jwA.js} +2 -2
- package/dist/assets/{Tag-BUJuCRNX.js → Tag-NMAaTGW7.js} +2 -2
- package/dist/assets/TerminalView-B7iMIrM8.css +1 -0
- package/dist/assets/TerminalView-CvTXTM3W.js +36 -0
- package/dist/assets/{Tooltip-C65FWX0W.js → Tooltip-C9RmASqV.js} +1 -1
- package/dist/assets/{UsageView-CKMaJ5W0.css → UsageView-DKigFrVY.css} +1 -1
- package/dist/assets/UsageView-DiCHVrs8.js +1 -0
- package/dist/assets/Warning-CmJYhk3M.js +1 -0
- package/dist/assets/{_plugin-vue_export-helper-DkLSTLBi.js → _plugin-vue_export-helper-NLzeiXdV.js} +1 -1
- package/dist/assets/{app-DtII96CF.js → app-CQZfHgyy.js} +1 -1
- package/dist/assets/app-DeeNNd_a.js +1 -0
- package/dist/assets/{browser-oMT2KRlV.js → browser-DNwI2j4X.js} +1 -1
- package/dist/assets/{chat-nPd2Ount.js → chat-DnFbBAAK.js} +2 -2
- package/dist/assets/context-DLFTSrww.js +1 -0
- package/dist/assets/fade-in-scale-up.cssr-BMJXPg-3.js +1 -0
- package/dist/assets/index-DlNQjiQP.js +306 -0
- package/dist/assets/{index-8v0lZOmS.css → index-TVVcuwR0.css} +1 -1
- package/dist/assets/{jobs-fIgcRW5v.js → jobs-B7U8gZia.js} +1 -1
- package/dist/assets/{pinia-D41F8A9y.js → pinia-DKSOddVw.js} +1 -1
- package/dist/assets/{router-B0PaAFys.js → router-CpYvE976.js} +2 -2
- package/dist/assets/{sessions-Dsqr5aLA.js → sessions-DTV2WuAE.js} +1 -1
- package/dist/assets/{skills-COmQAkb0.js → skills-DwX9oZGG.js} +1 -1
- package/dist/assets/use-compitable-D2-fMbL2.js +1 -0
- package/dist/assets/{use-message-CG8KB3t0.js → use-message-17mZlZe3.js} +1 -1
- package/dist/index.html +22 -18
- package/dist/server/index.js +3 -0
- package/dist/server/routes/terminal.d.ts +2 -0
- package/dist/server/routes/terminal.js +288 -0
- package/package.json +28 -4
- package/dist/assets/ChannelsView-CIZXL3vY.js +0 -1
- package/dist/assets/ChatView-DvAYfM24.js +0 -142
- package/dist/assets/Close-Ck11Jegf.js +0 -45
- package/dist/assets/Input-CyvPny5v.js +0 -234
- package/dist/assets/InputNumber-v7Tkrv97.js +0 -13
- package/dist/assets/JobsView-Cch6Sv2Y.js +0 -2
- package/dist/assets/JobsView-DARa8llR.css +0 -1
- package/dist/assets/LoginView-Cp-xfwtv.css +0 -1
- package/dist/assets/LoginView-DsClZpVT.js +0 -1
- package/dist/assets/Popover-ZzeCeChJ.js +0 -117
- package/dist/assets/Select-CPQQRbMt.js +0 -340
- package/dist/assets/SettingRow-BvAmImkg.js +0 -1
- package/dist/assets/SettingsView-B_5pGI0B.js +0 -352
- package/dist/assets/Suffix-La8FFPWu.js +0 -101
- package/dist/assets/UsageView-MZGY4EKW.js +0 -1
- package/dist/assets/app-DVSCPXta.js +0 -1
- package/dist/assets/context-DRBiUHq_.js +0 -1
- package/dist/assets/index-DNNVWa6r.js +0 -306
- /package/dist/assets/{omit-C6t0n7Zy.js → omit-C4dR5R2G.js} +0 -0
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
import{$ as e,C as t,F as n,K as r,L as i,M as a,N as o,R as s,S as c,U as l,V as u,X as d,Z as f,b as p,ct as m,d as h,dt as g,h as _,j as v,k as y,st as b,v as x,x as S,y as C}from"./router-CpYvE976.js";import{$ as w,A as T,B as ee,C as E,D,E as te,F as O,I as k,K as ne,M as A,N as j,O as M,P as re,Q as N,S as ie,T as ae,U as oe,X as se,Y as ce,_ as le,at as P,b as ue,c as de,ct as fe,d as pe,et as F,g as me,h as he,j as ge,k as I,lt as _e,m as ve,mt as ye,n as be,ot as L,p as xe,q as Se,s as Ce,st as we,ut as Te,v as Ee,w as De,x as Oe,y as ke,z as Ae}from"./browser-DNwI2j4X.js";import{b as je,c as Me,g as R,h as z,l as Ne,m as Pe,n as Fe,r as Ie,u as Le}from"./Scrollbar-CA0Mq0os.js";import{t as Re}from"./use-compitable-D2-fMbL2.js";var ze=[],Be=new WeakMap;function Ve(){ze.forEach(e=>e(...Be.get(e))),ze=[]}function He(e,...t){Be.set(e,t),!ze.includes(e)&&ze.push(e)===1&&requestAnimationFrame(Ve)}function Ue(e=8){return Math.random().toString(16).slice(2,2+e)}function We(e){let t=m(!!e.value);if(t.value)return b(t);let n=d(e,e=>{e&&(t.value=!0,n())});return b(t)}function Ge(){return a()!==null}var Ke=typeof window<`u`,qe=Ke?document?.fonts?.ready:void 0,B=!1;qe===void 0?B=!0:qe.then(()=>{B=!0});function Je(e){if(B)return;let t=!1;l(()=>{B||qe?.then(()=>{t||e()})}),u(()=>{t=!0})}var Ye=N(`n-internal-select-menu`),Xe=N(`n-internal-select-menu-body`),Ze=N(`n-drawer-body`);N(`n-drawer`);var Qe=N(`n-modal-body`),$e=N(`n-modal-provider`),et=N(`n-modal`),tt=N(`n-popover-body`),nt=`__disabled__`;function V(e){let t=n(Qe,null),r=n(Ze,null),i=n(tt,null),a=n(Xe,null),o=m();if(typeof document<`u`){o.value=document.fullscreenElement;let e=()=>{o.value=document.fullscreenElement};l(()=>{R(`fullscreenchange`,document,e)}),u(()=>{z(`fullscreenchange`,document,e)})}return F(()=>{let{to:n}=e;return n===void 0?t?.value?t.value.$el??t.value:r?.value?r.value:i?.value?i.value:a?.value?a.value:n??(o.value||`body`):n===!1?nt:n===!0?o.value||`body`:n})}V.tdkey=nt,V.propTo={type:[String,Object,Boolean],default:void 0};function rt(e,t,n=`default`){let r=t[n];if(r===void 0)throw Error(`[vueuc/${e}]: slot[${n}] is empty.`);return r()}function it(e,t=!0,n=[]){return e.forEach(e=>{if(e!==null){if(typeof e!=`object`){(typeof e==`string`||typeof e==`number`)&&n.push(y(String(e)));return}if(Array.isArray(e)){it(e,t,n);return}if(e.type===C){if(e.children===null)return;Array.isArray(e.children)&&it(e.children,t,n)}else e.type!==x&&n.push(e)}}),n}function at(e,t,n=`default`){let r=t[n];if(r===void 0)throw Error(`[vueuc/${e}]: slot[${n}] is empty.`);let i=it(r());if(i.length===1)return i[0];throw Error(`[vueuc/${e}]: slot[${n}] should have exactly one child.`)}var H=null;function ot(){if(H===null&&(H=document.getElementById(`v-binder-view-measurer`),H===null)){H=document.createElement(`div`),H.id=`v-binder-view-measurer`;let{style:e}=H;e.position=`fixed`,e.left=`0`,e.right=`0`,e.top=`0`,e.bottom=`0`,e.pointerEvents=`none`,e.visibility=`hidden`,document.body.appendChild(H)}return H.getBoundingClientRect()}function st(e,t){let n=ot();return{top:t,left:e,height:0,width:0,right:n.width-e,bottom:n.height-t}}function ct(e){let t=e.getBoundingClientRect(),n=ot();return{left:t.left-n.left,top:t.top-n.top,bottom:n.height+n.top-t.bottom,right:n.width+n.left-t.right,width:t.width,height:t.height}}function lt(e){return e.nodeType===9?null:e.parentNode}function ut(e){if(e===null)return null;let t=lt(e);if(t===null)return null;if(t.nodeType===9)return document;if(t.nodeType===1){let{overflow:e,overflowX:n,overflowY:r}=getComputedStyle(t);if(/(auto|scroll|overlay)/.test(e+r+n))return t}return ut(t)}var dt=v({name:`Binder`,props:{syncTargetWithParent:Boolean,syncTarget:{type:Boolean,default:!0}},setup(e){r(`VBinder`,a()?.proxy);let t=n(`VBinder`,null),i=m(null),o=n=>{i.value=n,t&&e.syncTargetWithParent&&t.setTargetRef(n)},s=[],c=()=>{let e=i.value;for(;e=ut(e),e!==null;)s.push(e);for(let e of s)R(`scroll`,e,h,!0)},l=()=>{for(let e of s)z(`scroll`,e,h,!0);s=[]},d=new Set,f=e=>{d.size===0&&c(),d.has(e)||d.add(e)},p=e=>{d.has(e)&&d.delete(e),d.size===0&&l()},h=()=>{He(g)},g=()=>{d.forEach(e=>e())},_=new Set,v=e=>{_.size===0&&R(`resize`,window,b),_.has(e)||_.add(e)},y=e=>{_.has(e)&&_.delete(e),_.size===0&&z(`resize`,window,b)},b=()=>{_.forEach(e=>e())};return u(()=>{z(`resize`,window,b),l()}),{targetRef:i,setTargetRef:o,addScrollListener:f,removeScrollListener:p,addResizeListener:v,removeResizeListener:y}},render(){return rt(`binder`,this.$slots)}}),ft=v({name:`Target`,setup(){let{setTargetRef:e,syncTarget:t}=n(`VBinder`);return{syncTarget:t,setTargetDirective:{mounted:e,updated:e}}},render(){let{syncTarget:t,setTargetDirective:n}=this;return t?e(at(`follower`,this.$slots),[[n]]):at(`follower`,this.$slots)}}),U=`@@mmoContext`,pt={mounted(e,{value:t}){e[U]={handler:void 0},typeof t==`function`&&(e[U].handler=t,R(`mousemoveoutside`,e,t))},updated(e,{value:t}){let n=e[U];typeof t==`function`?n.handler?n.handler!==t&&(z(`mousemoveoutside`,e,n.handler),n.handler=t,R(`mousemoveoutside`,e,t)):(e[U].handler=t,R(`mousemoveoutside`,e,t)):n.handler&&=(z(`mousemoveoutside`,e,n.handler),void 0)},unmounted(e){let{handler:t}=e[U];t&&z(`mousemoveoutside`,e,t),e[U].handler=void 0}},W=`@@coContext`,mt={mounted(e,{value:t,modifiers:n}){e[W]={handler:void 0},typeof t==`function`&&(e[W].handler=t,R(`clickoutside`,e,t,{capture:n.capture}))},updated(e,{value:t,modifiers:n}){let r=e[W];typeof t==`function`?r.handler?r.handler!==t&&(z(`clickoutside`,e,r.handler,{capture:n.capture}),r.handler=t,R(`clickoutside`,e,t,{capture:n.capture})):(e[W].handler=t,R(`clickoutside`,e,t,{capture:n.capture})):r.handler&&=(z(`clickoutside`,e,r.handler,{capture:n.capture}),void 0)},unmounted(e,{modifiers:t}){let{handler:n}=e[W];n&&z(`clickoutside`,e,n,{capture:t.capture}),e[W].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}`)})}},G=`@@ziContext`,_t={mounted(e,t){let{value:n={}}=t,{zIndex:r,enabled:i}=n;e[G]={enabled:!!i,initialized:!1},i&&(gt.ensureZIndex(e,r),e[G].initialized=!0)},updated(e,t){let{value:n={}}=t,{zIndex:r,enabled:i}=n,a=e[G].enabled;i&&!a&&(gt.ensureZIndex(e,r),e[G].initialized=!0),e[G].enabled=!!i},unmounted(e,t){if(!e[G].initialized)return;let{value:n={}}=t,{zIndex:r}=n;gt.unregister(e,r)}},{c:K}=ye(),vt=`vueuc-style`;function yt(e){return typeof e==`string`?document.querySelector(e):e()||null}var bt=v({name:`LazyTeleport`,props:{to:{type:[String,Object],default:void 0},disabled:Boolean,show:{type:Boolean,required:!0}},setup(e){return{showTeleport:We(g(e,`show`)),mergedTo:t(()=>{let{to:t}=e;return t??`body`})}},render(){return this.showTeleport?this.disabled?rt(`lazy-teleport`,this.$slots):o(p,{disabled:this.disabled,to:this.mergedTo},rt(`lazy-teleport`,this.$slots)):null}}),xt={top:`bottom`,bottom:`top`,left:`right`,right:`left`},St={start:`end`,center:`center`,end:`start`},Ct={top:`height`,bottom:`height`,left:`width`,right:`width`},wt={"bottom-start":`top left`,bottom:`top center`,"bottom-end":`top right`,"top-start":`bottom left`,top:`bottom center`,"top-end":`bottom right`,"right-start":`top left`,right:`center left`,"right-end":`bottom left`,"left-start":`top right`,left:`center right`,"left-end":`bottom right`},Tt={"bottom-start":`bottom left`,bottom:`bottom center`,"bottom-end":`bottom right`,"top-start":`top left`,top:`top center`,"top-end":`top right`,"right-start":`top right`,right:`center right`,"right-end":`bottom right`,"left-start":`top left`,left:`center left`,"left-end":`bottom left`},Et={"bottom-start":`right`,"bottom-end":`left`,"top-start":`right`,"top-end":`left`,"right-start":`bottom`,"right-end":`top`,"left-start":`bottom`,"left-end":`top`},Dt={top:!0,bottom:!1,left:!0,right:!1},Ot={top:`end`,bottom:`start`,left:`end`,right:`start`};function kt(e,t,n,r,i,a){if(!i||a)return{placement:e,top:0,left:0};let[o,s]=e.split(`-`),c=s??`center`,l={top:0,left:0},u=(e,i,a)=>{let o=0,s=0,c=n[e]-t[i]-t[e];return c>0&&r&&(a?s=Dt[i]?c:-c:o=Dt[i]?c:-c),{left:o,top:s}},d=o===`left`||o===`right`;if(c!==`center`){let r=Et[e],i=xt[r],a=Ct[r];if(n[a]>t[a]){if(t[r]+t[a]<n[a]){let e=(n[a]-t[a])/2;t[r]<e||t[i]<e?t[r]<t[i]?(c=St[s],l=u(a,i,d)):l=u(a,r,d):c=`center`}}else n[a]<t[a]&&t[i]<0&&t[r]>t[i]&&(c=St[s])}else{let e=o===`bottom`||o===`top`?`left`:`top`,r=xt[e],i=Ct[e],a=(n[i]-t[i])/2;(t[e]<a||t[r]<a)&&(t[e]>t[r]?(c=Ot[e],l=u(i,e,d)):(c=Ot[r],l=u(i,r,d)))}let f=o;return t[o]<n[Ct[o]]&&t[o]<t[xt[o]]&&(f=xt[o]),{placement:c===`center`?f:`${f}-${c}`,left:l.left,top:l.top}}function At(e,t){return t?Tt[e]:wt[e]}function jt(e,t,n,r,i,a){if(a)switch(e){case`bottom-start`:return{top:`${Math.round(n.top-t.top+n.height)}px`,left:`${Math.round(n.left-t.left)}px`,transform:`translateY(-100%)`};case`bottom-end`:return{top:`${Math.round(n.top-t.top+n.height)}px`,left:`${Math.round(n.left-t.left+n.width)}px`,transform:`translateX(-100%) translateY(-100%)`};case`top-start`:return{top:`${Math.round(n.top-t.top)}px`,left:`${Math.round(n.left-t.left)}px`,transform:``};case`top-end`:return{top:`${Math.round(n.top-t.top)}px`,left:`${Math.round(n.left-t.left+n.width)}px`,transform:`translateX(-100%)`};case`right-start`:return{top:`${Math.round(n.top-t.top)}px`,left:`${Math.round(n.left-t.left+n.width)}px`,transform:`translateX(-100%)`};case`right-end`:return{top:`${Math.round(n.top-t.top+n.height)}px`,left:`${Math.round(n.left-t.left+n.width)}px`,transform:`translateX(-100%) translateY(-100%)`};case`left-start`:return{top:`${Math.round(n.top-t.top)}px`,left:`${Math.round(n.left-t.left)}px`,transform:``};case`left-end`:return{top:`${Math.round(n.top-t.top+n.height)}px`,left:`${Math.round(n.left-t.left)}px`,transform:`translateY(-100%)`};case`top`:return{top:`${Math.round(n.top-t.top)}px`,left:`${Math.round(n.left-t.left+n.width/2)}px`,transform:`translateX(-50%)`};case`right`:return{top:`${Math.round(n.top-t.top+n.height/2)}px`,left:`${Math.round(n.left-t.left+n.width)}px`,transform:`translateX(-100%) translateY(-50%)`};case`left`:return{top:`${Math.round(n.top-t.top+n.height/2)}px`,left:`${Math.round(n.left-t.left)}px`,transform:`translateY(-50%)`};default:return{top:`${Math.round(n.top-t.top+n.height)}px`,left:`${Math.round(n.left-t.left+n.width/2)}px`,transform:`translateX(-50%) translateY(-100%)`}}switch(e){case`bottom-start`:return{top:`${Math.round(n.top-t.top+n.height+r)}px`,left:`${Math.round(n.left-t.left+i)}px`,transform:``};case`bottom-end`:return{top:`${Math.round(n.top-t.top+n.height+r)}px`,left:`${Math.round(n.left-t.left+n.width+i)}px`,transform:`translateX(-100%)`};case`top-start`:return{top:`${Math.round(n.top-t.top+r)}px`,left:`${Math.round(n.left-t.left+i)}px`,transform:`translateY(-100%)`};case`top-end`:return{top:`${Math.round(n.top-t.top+r)}px`,left:`${Math.round(n.left-t.left+n.width+i)}px`,transform:`translateX(-100%) translateY(-100%)`};case`right-start`:return{top:`${Math.round(n.top-t.top+r)}px`,left:`${Math.round(n.left-t.left+n.width+i)}px`,transform:``};case`right-end`:return{top:`${Math.round(n.top-t.top+n.height+r)}px`,left:`${Math.round(n.left-t.left+n.width+i)}px`,transform:`translateY(-100%)`};case`left-start`:return{top:`${Math.round(n.top-t.top+r)}px`,left:`${Math.round(n.left-t.left+i)}px`,transform:`translateX(-100%)`};case`left-end`:return{top:`${Math.round(n.top-t.top+n.height+r)}px`,left:`${Math.round(n.left-t.left+i)}px`,transform:`translateX(-100%) translateY(-100%)`};case`top`:return{top:`${Math.round(n.top-t.top+r)}px`,left:`${Math.round(n.left-t.left+n.width/2+i)}px`,transform:`translateY(-100%) translateX(-50%)`};case`right`:return{top:`${Math.round(n.top-t.top+n.height/2+r)}px`,left:`${Math.round(n.left-t.left+n.width+i)}px`,transform:`translateY(-50%)`};case`left`:return{top:`${Math.round(n.top-t.top+n.height/2+r)}px`,left:`${Math.round(n.left-t.left+i)}px`,transform:`translateY(-50%) translateX(-100%)`};default:return{top:`${Math.round(n.top-t.top+n.height+r)}px`,left:`${Math.round(n.left-t.left+n.width/2+i)}px`,transform:`translateX(-50%)`}}}var Mt=K([K(`.v-binder-follower-container`,{position:`absolute`,left:`0`,right:`0`,top:`0`,height:`0`,pointerEvents:`none`,zIndex:`auto`}),K(`.v-binder-follower-content`,{position:`absolute`,zIndex:`auto`},[K(`> *`,{pointerEvents:`all`})])]),Nt=v({name:`Follower`,inheritAttrs:!1,props:{show:Boolean,enabled:{type:Boolean,default:void 0},placement:{type:String,default:`bottom`},syncTrigger:{type:Array,default:[`resize`,`scroll`]},to:[String,Object],flip:{type:Boolean,default:!0},internalShift:Boolean,x:Number,y:Number,width:String,minWidth:String,containerClass:String,teleportDisabled:Boolean,zindexable:{type:Boolean,default:!0},zIndex:Number,overlap:Boolean},setup(e){let t=n(`VBinder`),r=F(()=>e.enabled===void 0?e.show:e.enabled),i=m(null),a=m(null),o=()=>{let{syncTrigger:n}=e;n.includes(`scroll`)&&t.addScrollListener(p),n.includes(`resize`)&&t.addResizeListener(p)},c=()=>{t.removeScrollListener(p),t.removeResizeListener(p)};l(()=>{r.value&&(p(),o())});let f=se();Mt.mount({id:`vueuc/binder`,head:!0,anchorMetaName:vt,ssr:f}),u(()=>{c()}),Je(()=>{r.value&&p()});let p=()=>{if(!r.value)return;let n=i.value;if(n===null)return;let o=t.targetRef,{x:s,y:c,overlap:l}=e,u=s!==void 0&&c!==void 0?st(s,c):ct(o);n.style.setProperty(`--v-target-width`,`${Math.round(u.width)}px`),n.style.setProperty(`--v-target-height`,`${Math.round(u.height)}px`);let{width:d,minWidth:f,placement:p,internalShift:m,flip:h}=e;n.setAttribute(`v-placement`,p),l?n.setAttribute(`v-overlap`,``):n.removeAttribute(`v-overlap`);let{style:g}=n;d===`target`?g.width=`${u.width}px`:d===void 0?g.width=``:g.width=d,f===`target`?g.minWidth=`${u.width}px`:f===void 0?g.minWidth=``:g.minWidth=f;let _=ct(n),v=ct(a.value),{left:y,top:b,placement:x}=kt(p,u,_,m,h,l),S=At(x,l),{left:C,top:w,transform:T}=jt(x,v,u,b,y,l);n.setAttribute(`v-placement`,x),n.style.setProperty(`--v-offset-left`,`${Math.round(y)}px`),n.style.setProperty(`--v-offset-top`,`${Math.round(b)}px`),n.style.transform=`translateX(${C}) translateY(${w}) ${T}`,n.style.setProperty(`--v-transform-origin`,S),n.style.transformOrigin=S};d(r,e=>{e?(o(),h()):c()});let h=()=>{s().then(p).catch(e=>console.error(e))};[`placement`,`x`,`y`,`internalShift`,`flip`,`width`,`overlap`,`minWidth`].forEach(t=>{d(g(e,t),p)}),[`teleportDisabled`].forEach(t=>{d(g(e,t),h)}),d(g(e,`syncTrigger`),e=>{e.includes(`resize`)?t.addResizeListener(p):t.removeResizeListener(p),e.includes(`scroll`)?t.addScrollListener(p):t.removeScrollListener(p)});let _=w();return{VBinder:t,mergedEnabled:r,offsetContainerRef:a,followerRef:i,mergedTo:F(()=>{let{to:t}=e;if(t!==void 0)return t;_.value}),syncPosition:p}},render(){return o(bt,{show:this.show,to:this.mergedTo,disabled:this.teleportDisabled},{default:()=>{var t;let n=o(`div`,{class:[`v-binder-follower-container`,this.containerClass],ref:`offsetContainerRef`},[o(`div`,{class:`v-binder-follower-content`,ref:`followerRef`},(t=this.$slots).default?.call(t))]);return this.zindexable?e(n,[[_t,{enabled:this.mergedEnabled,zIndex:this.zIndex}]]):n}})}});function Pt(e){return e instanceof HTMLElement}function Ft(e){for(let t=0;t<e.childNodes.length;t++){let n=e.childNodes[t];if(Pt(n)&&(Lt(n)||Ft(n)))return!0}return!1}function It(e){for(let t=e.childNodes.length-1;t>=0;t--){let n=e.childNodes[t];if(Pt(n)&&(Lt(n)||It(n)))return!0}return!1}function Lt(e){if(!Rt(e))return!1;try{e.focus({preventScroll:!0})}catch{}return document.activeElement===e}function Rt(e){if(e.tabIndex>0||e.tabIndex===0&&e.getAttribute(`tabIndex`)!==null)return!0;if(e.getAttribute(`disabled`))return!1;switch(e.nodeName){case`A`:return!!e.href&&e.rel!==`ignore`;case`INPUT`:return e.type!==`hidden`&&e.type!==`file`;case`SELECT`:case`TEXTAREA`:return!0;default:return!1}}var q=[],zt=v({name:`FocusTrap`,props:{disabled:Boolean,active:Boolean,autoFocus:{type:Boolean,default:!0},onEsc:Function,initialFocusTo:[String,Function],finalFocusTo:[String,Function],returnFocusOnDeactivated:{type:Boolean,default:!0}},setup(e){let t=Ue(),n=m(null),r=m(null),i=!1,a=!1,o=typeof document>`u`?null:document.activeElement;function s(){return q[q.length-1]===t}function c(t){var n;t.code===`Escape`&&s()&&((n=e.onEsc)==null||n.call(e,t))}l(()=>{d(()=>e.active,e=>{e?(h(),R(`keydown`,document,c)):(z(`keydown`,document,c),i&&g())},{immediate:!0})}),u(()=>{z(`keydown`,document,c),i&&g()});function f(e){if(!a&&s()){let t=p();if(t===null||t.contains(je(e)))return;_(`first`)}}function p(){let e=n.value;if(e===null)return null;let t=e;for(;t=t.nextSibling,!(t===null||t instanceof Element&&t.tagName===`DIV`););return t}function h(){var n;if(!e.disabled){if(q.push(t),e.autoFocus){let{initialFocusTo:t}=e;t===void 0?_(`first`):(n=yt(t))==null||n.focus({preventScroll:!0})}i=!0,document.addEventListener(`focus`,f,!0)}}function g(){var n;if(e.disabled||(document.removeEventListener(`focus`,f,!0),q=q.filter(e=>e!==t),s()))return;let{finalFocusTo:r}=e;r===void 0?e.returnFocusOnDeactivated&&o instanceof HTMLElement&&(a=!0,o.focus({preventScroll:!0}),a=!1):(n=yt(r))==null||n.focus({preventScroll:!0})}function _(t){if(s()&&e.active){let e=n.value,i=r.value;if(e!==null&&i!==null){let n=p();if(n==null||n===i){a=!0,e.focus({preventScroll:!0}),a=!1;return}a=!0;let r=t===`first`?Ft(n):It(n);a=!1,r||(a=!0,e.focus({preventScroll:!0}),a=!1)}}}function v(e){if(a)return;let t=p();t!==null&&(e.relatedTarget!==null&&t.contains(e.relatedTarget)?_(`last`):_(`first`))}function y(e){a||(e.relatedTarget!==null&&e.relatedTarget===n.value?_(`last`):_(`first`))}return{focusableStartRef:n,focusableEndRef:r,focusableStyle:`position: absolute; height: 0; width: 0;`,handleStartFocus:v,handleEndFocus:y}},render(){let{default:e}=this.$slots;if(e===void 0)return null;if(this.disabled)return e();let{active:t,focusableStyle:n}=this;return o(C,null,[o(`div`,{"aria-hidden":`true`,tabindex:t?`0`:`-1`,ref:`focusableStartRef`,style:n,onFocus:this.handleStartFocus}),e(),o(`div`,{"aria-hidden":`true`,style:n,ref:`focusableEndRef`,tabindex:t?`0`:`-1`,onFocus:this.handleEndFocus})])}}),Bt=/^(\d|\.)+$/,Vt=/(\d|\.)+/;function Ht(e,{c:t=1,offset:n=0,attachPx:r=!0}={}){if(typeof e==`number`){let r=(e+n)*t;return r===0?`0`:`${r}px`}else if(typeof e==`string`)if(Bt.test(e)){let i=(Number(e)+n)*t;return r?i===0?`0`:`${i}px`:`${i}`}else{let r=Vt.exec(e);return r?e.replace(Vt,String((Number(r[0])+n)*t)):e}return e}var Ut;function Wt(){return Ut===void 0&&(Ut=navigator.userAgent.includes(`Node.js`)||navigator.userAgent.includes(`jsdom`)),Ut}function J(e,t=!0,n=[]){return e.forEach(e=>{if(e!==null){if(typeof e!=`object`){(typeof e==`string`||typeof e==`number`)&&n.push(y(String(e)));return}if(Array.isArray(e)){J(e,t,n);return}if(e.type===C){if(e.children===null)return;Array.isArray(e.children)&&J(e.children,t,n)}else{if(e.type===x&&t)return;n.push(e)}}}),n}function Gt(e,t=`default`,n=void 0){let r=e[t];if(!r)return ce(`getFirstSlotVNode`,`slot[${t}] is empty`),null;let i=J(r(n));return i.length===1?i[0]:(ce(`getFirstSlotVNode`,`slot[${t}] should have exactly one child`),null)}function Kt(e,t,n){if(!t)return null;let r=J(t(n));return r.length===1?r[0]:(ce(`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=M(k,`WeakMap`),Yt=Ee(Object.keys,Object),Xt=Object.prototype.hasOwnProperty;function Zt(e){if(!E(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 De(e)?ke(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||Le(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||me),n}rn.Cache=me;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(Me(e))}var dn=1/0;function fn(e){if(typeof e==`string`||Le(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=M(k,`DataView`),wn=M(k,`Promise`),Tn=M(k,`Set`),En=`[object Map]`,Dn=`[object Object]`,On=`[object Promise]`,kn=`[object Set]`,An=`[object WeakMap]`,jn=`[object DataView]`,Mn=I(Cn),Nn=I(le),Pn=I(wn),Fn=I(Tn),In=I(Jt),Y=re;(Cn&&Y(new Cn(new ArrayBuffer(1)))!=jn||le&&Y(new le)!=En||wn&&Y(wn.resolve())!=On||Tn&&Y(new Tn)!=kn||Jt&&Y(new Jt)!=An)&&(Y=function(e){var t=re(e),n=t==Dn?e.constructor:void 0,r=n?I(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=Y,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 me;++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=O?O.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 ve(e),new ve(t)));case Zn:case Qn:case tr:return te(+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]`,X=`[object Object]`,_r=Object.prototype.hasOwnProperty;function vr(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?X:c,l=l==hr?X:l;var u=c==X,d=l==X,f=c==l;if(f&&Oe(e)){if(!Oe(t))return!1;o=!0,u=!1}if(f&&!u)return a||=new he,o||ue(e)?Kn(e,t,n,r,i,a):ur(e,t,c,n,r,i,a);if(!(n&mr)){var p=u&&_r.call(e,`__wrapped__`),m=d&&_r.call(t,`__wrapped__`);if(p||m){var h=p?e.value():e,g=m?t.value():t;return a||=new he,i(h,g,n,r,a)}}return f?(a||=new he,pr(e,t,n,r,i,a)):!1}function yr(e,t,n,r,i){return e===t?!0:e==null||t==null||!j(e)&&!j(t)?e!==e&&t!==t:vr(e,t,n,r,yr,i)}var br=1,xr=2;function Sr(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 he;if(r)var f=r(l,u,c,e,t,d);if(!(f===void 0?yr(u,l,br|xr,r,d):f))return!1}}return!0}function Cr(e){return e===e&&!ge(e)}function wr(e){for(var t=Qt(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,Cr(i)]}return t}function Tr(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}function Er(e){var t=wr(e);return t.length==1&&t[0][2]?Tr(t[0][0],t[0][1]):function(n){return n===e||Sr(n,e,t)}}function Dr(e,t){return e!=null&&t in Object(e)}function Or(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&&ae(i)&&D(o,i)&&(A(e)||ie(e)))}function kr(e,t){return e!=null&&Or(e,t,Dr)}var Ar=1,jr=2;function Mr(e,t){return tn(e)&&Cr(t)?Tr(fn(e),t):function(n){var r=mn(n,e);return r===void 0&&r===t?kr(n,e):yr(t,r,Ar|jr)}}function Nr(e){return function(t){return t?.[e]}}function Pr(e){return function(t){return pn(t,e)}}function Fr(e){return tn(e)?Nr(fn(e)):Pr(e)}function Ir(e){return typeof e==`function`?e:e==null?T:typeof e==`object`?A(e)?Mr(e[0],e[1]):Er(e):Fr(e)}function Lr(e,t){return e&&xe(e,t,Qt)}function Rr(e,t){return function(n,r){if(n==null)return n;if(!De(n))return e(n,r);for(var i=n.length,a=t?i:-1,o=Object(n);(t?a--:++a<i)&&r(o[a],a,o)!==!1;);return n}}var zr=Rr(Lr);function Br(e,t){var n=-1,r=De(e)?Array(e.length):[];return zr(e,function(e,i,a){r[++n]=t(e,i,a)}),r}function Vr(e,t){return(A(e)?Ne:Br)(e,Ir(t,3))}var Hr={space:`6px`,spaceArrow:`10px`,arrowOffset:`10px`,arrowOffsetVertical:`10px`,arrowHeight:`6px`,padding:`8px 14px`};function Ur(e){let{boxShadow2:t,popoverColor:n,textColor2:r,borderRadius:i,fontSize:a,dividerColor:o}=e;return Object.assign(Object.assign({},Hr),{fontSize:a,borderRadius:i,color:n,dividerColor:o,textColor:r,boxShadow:t})}var Wr=Ce({name:`Popover`,common:be,peers:{Scrollbar:Ie},self:Ur}),Gr={top:`bottom`,bottom:`top`,left:`right`,right:`left`},Z=`var(--n-arrow-height) * 1.414`,Kr=P([L(`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(`>`,[L(`scrollbar`,`
|
|
12
|
+
height: inherit;
|
|
13
|
+
max-height: inherit;
|
|
14
|
+
`)]),Te(`raw`,`
|
|
15
|
+
background-color: var(--n-color);
|
|
16
|
+
border-radius: var(--n-border-radius);
|
|
17
|
+
`,[Te(`scrollable`,[Te(`show-header-or-footer`,`padding: var(--n-padding);`)])]),fe(`header`,`
|
|
18
|
+
padding: var(--n-padding);
|
|
19
|
+
border-bottom: 1px solid var(--n-divider-color);
|
|
20
|
+
transition: border-color .3s var(--n-bezier);
|
|
21
|
+
`),fe(`footer`,`
|
|
22
|
+
padding: var(--n-padding);
|
|
23
|
+
border-top: 1px solid var(--n-divider-color);
|
|
24
|
+
transition: border-color .3s var(--n-bezier);
|
|
25
|
+
`),_e(`scrollable, show-header-or-footer`,[fe(`content`,`
|
|
26
|
+
padding: var(--n-padding);
|
|
27
|
+
`)])]),L(`popover-shared`,`
|
|
28
|
+
transform-origin: inherit;
|
|
29
|
+
`,[L(`popover-arrow-wrapper`,`
|
|
30
|
+
position: absolute;
|
|
31
|
+
overflow: hidden;
|
|
32
|
+
pointer-events: none;
|
|
33
|
+
`,[L(`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
|
+
`),...Vr({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}"] >`,[L(`popover-shared`,[_e(`center-arrow`,[L(`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}"] >`,[L(`popover-shared`,`
|
|
104
|
+
margin-${Gr[n]}: var(--n-space);
|
|
105
|
+
`,[_e(`show-arrow`,`
|
|
106
|
+
margin-${Gr[n]}: var(--n-space-arrow);
|
|
107
|
+
`),_e(`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
|
+
${Gr[n]}: auto;
|
|
116
|
+
${r}
|
|
117
|
+
`,[L(`popover-arrow`,t)])])])}var qr=Object.assign(Object.assign({},de.props),{to:V.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 Jr({arrowClass:e,arrowStyle:t,arrowWrapperClass:n,arrowWrapperStyle:r,clsPrefix:i}){return o(`div`,{key:`__popover-arrow__`,style:r,class:[`${i}-popover-arrow-wrapper`,n]},o(`div`,{class:[`${i}-popover-arrow`,e],style:t}))}var Yr=v({name:`PopoverBody`,inheritAttrs:!1,props:qr,setup(a,{slots:s,attrs:c}){let{namespaceRef:l,mergedClsPrefixRef:p,inlineThemeDisabled:h,mergedRtlRef:v}=ee(a),y=de(`Popover`,`-popover`,Kr,Wr,a,p),b=pe(`Popover`,v,p),x=m(null),S=n(`NPopover`),w=m(null),T=m(a.show),E=m(!1);f(()=>{let{show:e}=a;e&&!Wt()&&!a.internalDeactivateImmediately&&(E.value=!0)});let D=t(()=>{let{trigger:e,onClickoutside:t}=a,n=[],{positionManuallyRef:{value:r}}=S;return r||(e===`click`&&!t&&n.push([mt,N,void 0,{capture:!0}]),e===`hover`&&n.push([pt,re])),t&&n.push([mt,N,void 0,{capture:!0}]),(a.displayDirective===`show`||a.animated&&E.value)&&n.push([_,a.show]),n}),te=t(()=>{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}}=y.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=t(()=>{let e=a.width===`trigger`?void 0:Ht(a.width),t=[];e&&t.push({width:e});let{maxWidth:n,minWidth:r}=a;return n&&t.push({maxWidth:Ht(n)}),r&&t.push({maxWidth:Ht(r)}),h||t.push(te.value),t}),k=h?Ae(`popover`,void 0,te,a):void 0;S.setBodyInstance({syncPosition:A}),u(()=>{S.setBodyInstance(null)}),d(g(a,`show`),e=>{a.animated||(e?T.value=!0:T.value=!1)});function A(){var e;(e=x.value)==null||e.syncPosition()}function j(e){a.trigger===`hover`&&a.keepAliveOnHover&&a.show&&S.handleMouseEnter(e)}function M(e){a.trigger===`hover`&&a.keepAliveOnHover&&S.handleMouseLeave(e)}function re(e){a.trigger===`hover`&&!ie().contains(je(e))&&S.handleMouseMoveOutside(e)}function N(e){(a.trigger===`click`&&!ie().contains(je(e))||a.onClickoutside)&&S.handleClickOutside(e)}function ie(){return S.getTriggerElement()}r(tt,w),r(Ze,null),r(Qe,null);function ae(){if(k?.onRender(),!(a.displayDirective===`show`||a.show||a.animated&&E.value))return null;let t,n=S.internalRenderBodyRef.value,{value:r}=p;if(n)t=n([`${r}-popover-shared`,b?.value&&`${r}-popover--rtl`,k?.themeClass.value,a.overlap&&`${r}-popover-shared--overlap`,a.showArrow&&`${r}-popover-shared--show-arrow`,a.arrowPointToCenter&&`${r}-popover-shared--center-arrow`],w,O.value,j,M);else{let{value:e}=S.extraClassRef,{internalTrapFocus:n}=a,l=!oe(s.header)||!oe(s.footer),u=()=>{let e=l?o(C,null,ne(s.header,e=>e?o(`div`,{class:[`${r}-popover__header`,a.headerClass],style:a.headerStyle},e):null),ne(s.default,e=>e?o(`div`,{class:[`${r}-popover__content`,a.contentClass],style:a.contentStyle},s):null),ne(s.footer,e=>e?o(`div`,{class:[`${r}-popover__footer`,a.footerClass],style:a.footerStyle},e):null)):a.scrollable?s.default?.call(s):o(`div`,{class:[`${r}-popover__content`,a.contentClass],style:a.contentStyle},s);return[a.scrollable?o(Fe,{themeOverrides:y.value.peerOverrides.Scrollbar,theme:y.value.peers.Scrollbar,contentClass:l?void 0:`${r}-popover__content ${a.contentClass??``}`,contentStyle:l?void 0:a.contentStyle},{default:()=>e}):e,a.showArrow?Jr({arrowClass:a.arrowClass,arrowStyle:a.arrowStyle,arrowWrapperClass:a.arrowWrapperClass,arrowWrapperStyle:a.arrowWrapperStyle,clsPrefix:r}):null]};t=o(`div`,i({class:[`${r}-popover`,`${r}-popover-shared`,b?.value&&`${r}-popover--rtl`,k?.themeClass.value,e.map(e=>`${r}-${e}`),{[`${r}-popover--scrollable`]:a.scrollable,[`${r}-popover--show-header-or-footer`]:l,[`${r}-popover--raw`]:a.raw,[`${r}-popover-shared--overlap`]:a.overlap,[`${r}-popover-shared--show-arrow`]:a.showArrow,[`${r}-popover-shared--center-arrow`]:a.arrowPointToCenter}],ref:w,style:O.value,onKeydown:S.handleKeydown,onMouseenter:j,onMouseleave:M},c),n?o(zt,{active:a.show,autoFocus:!0},{default:u}):u())}return e(t,D.value)}return{displayed:E,namespace:l,isMounted:S.isMountedRef,zIndex:S.zIndexRef,followerRef:x,adjustedTo:V(a),followerEnabled:T,renderContentNode:ae}},render(){return o(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===V.tdkey},{default:()=>this.animated?o(h,{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()})}}),Xr=Object.keys(qr),Zr={focus:[`onFocus`,`onBlur`],click:[`onClick`],hover:[`onMouseenter`,`onMouseleave`],manual:[],nested:[`onFocus`,`onBlur`,`onMouseenter`,`onMouseleave`,`onClick`]};function Qr(e,t,n){Zr[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 $r={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:V.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},ei=v({name:`Popover`,inheritAttrs:!1,props:Object.assign(Object.assign(Object.assign({},de.props),$r),{internalOnAfterLeave:Function,internalRenderBody:Function}),slots:Object,__popover__:!0,setup(e){let n=w(),i=m(null),a=t(()=>e.show),o=m(e.defaultShow),s=Pe(a,o),c=F(()=>e.disabled?!1:s.value),l=()=>{if(e.disabled)return!0;let{getDisabled:t}=e;return!!t?.()},u=()=>l()?!1:s.value,d=Re(e,[`arrow`,`showArrow`]),p=t(()=>e.overlap?!1:d.value),h=null,_=m(null),v=m(null),y=F(()=>e.x!==void 0&&e.y!==void 0);function b(t){let{"onUpdate:show":n,onUpdateShow:r,onShow:i,onHide:a}=e;o.value=t,n&&Se(n,t),r&&Se(r,t),t&&i&&Se(i,!0),t&&a&&Se(a,!1)}function x(){h&&h.syncPosition()}function S(){let{value:e}=_;e&&(window.clearTimeout(e),_.value=null)}function C(){let{value:e}=v;e&&(window.clearTimeout(e),v.value=null)}function T(){let t=l();if(e.trigger===`focus`&&!t){if(u())return;b(!0)}}function ee(){let t=l();if(e.trigger===`focus`&&!t){if(!u())return;b(!1)}}function E(){let t=l();if(e.trigger===`hover`&&!t){if(C(),_.value!==null||u())return;let t=()=>{b(!0),_.value=null},{delay:n}=e;n===0?t():_.value=window.setTimeout(t,n)}}function D(){let t=l();if(e.trigger===`hover`&&!t){if(S(),v.value!==null||!u())return;let t=()=>{b(!1),v.value=null},{duration:n}=e;n===0?t():v.value=window.setTimeout(t,n)}}function te(){D()}function O(t){var n;u()&&(e.trigger===`click`&&(S(),C(),b(!1)),(n=e.onClickoutside)==null||n.call(e,t))}function k(){e.trigger===`click`&&!l()&&(S(),C(),b(!u()))}function ne(t){e.internalTrapFocus&&t.key===`Escape`&&(S(),C(),b(!1))}function A(e){o.value=e}function j(){return i.value?.targetRef}function M(e){h=e}return r(`NPopover`,{getTriggerElement:j,handleKeydown:ne,handleMouseEnter:E,handleMouseLeave:D,handleClickOutside:O,handleMouseMoveOutside:te,setBodyInstance:M,positionManuallyRef:y,isMountedRef:n,zIndexRef:g(e,`zIndex`),extraClassRef:g(e,`internalExtraClass`),internalRenderBodyRef:g(e,`internalRenderBody`)}),f(()=>{s.value&&l()&&b(!1)}),{binderInstRef:i,positionManually:y,mergedShowConsideringDisabledProp:c,uncontrolledShow:o,mergedShowArrow:p,getMergedShow:u,setShow:A,handleClick:k,handleMouseEnter:E,handleMouseLeave:D,handleFocus:T,handleBlur:ee,syncPosition:x}},render(){let{positionManually:t,$slots:n}=this,r,i=!1;if(!t&&(r=Gt(n,`trigger`),r)){r=c(r),r=r.type===S?o(`span`,[r]):r;let e={onClick:this.handleClick,onMouseenter:this.handleMouseEnter,onMouseleave:this.handleMouseLeave,onFocus:this.handleFocus,onBlur:this.handleBlur};if(r.type?.__popover__)i=!0,r.props||={internalSyncTargetWithParent:!0,internalInheritedEventHandlers:[]},r.props.internalSyncTargetWithParent=!0,r.props.internalInheritedEventHandlers?r.props.internalInheritedEventHandlers=[e,...r.props.internalInheritedEventHandlers]:r.props.internalInheritedEventHandlers=[e];else{let{internalInheritedEventHandlers:n}=this,i=[e,...n];Qr(r,n?`nested`:t?`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 o(dt,{ref:`binderInstRef`,syncTarget:!i,syncTargetWithParent:this.internalSyncTargetWithParent},{default:()=>{this.mergedShowConsideringDisabledProp;let n=this.getMergedShow();return[this.internalTrapFocus&&n?e(o(`div`,{style:{position:`fixed`,top:0,right:0,bottom:0,left:0}}),[[_t,{enabled:n,zIndex:this.zIndex}]]):null,t?null:o(ft,null,{default:()=>r}),o(Yr,qt(this.$props,Xr,Object.assign(Object.assign({},this.$attrs),{showArrow:this.mergedShowArrow,show:n})),{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{Ue as A,$e as C,Je as D,Ye as E,Ge as O,et as S,Xe as T,ft as _,mn as a,tt as b,J as c,Nt as d,bt as f,mt as g,_t as h,Wr as i,He as j,Ke as k,Ht as l,vt as m,$r as n,qt as o,K as p,Jr as r,Kt as s,ei as t,zt as u,dt as v,Ze as w,Qe as x,V as y};
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import{C as e,F as t,H as n,J as r,L as i,M as a,N as o,U as s,V as c,X as l,Z as u,ct as d,d as f,dt as p,j as m,y as h,z as g}from"./router-CpYvE976.js";import{B as _,F as v,M as y,N as b,P as x,V as S,at as C,c as w,ct as T,d as ee,l as E,lt as D,n as O,ot as k,u as A,z as te}from"./browser-DNwI2j4X.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(t,n){return l(t,e=>{e!==void 0&&(n.value=e)}),e(()=>t.value===void 0?n.value:t.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 t={isDeactivated:!1},r=!1;return g(()=>{if(t.isDeactivated=!1,!r){r=!0;return}e()}),n(()=>{t.isDeactivated=!0,r||=!0}),t}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,D=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,D),D},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=m({name:`ResizeObserver`,props:{onResize:Function},setup(e){let t=!1,n=a().proxy;function r(t){let{onResize:n}=e;n!==void 0&&n(t)}s(()=>{let e=n.$el;if(e===void 0){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,r),t=!0)}),c(()=>{t&&Je.unregisterHandler(n.$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=m({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`||b(e)&&x(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=v?v.prototype:void 0,ht=mt?mt.toString:void 0;function gt(e){if(typeof e==`string`)return e;if(y(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(n){let{mergedLocaleRef:r,mergedDateLocaleRef:i}=t(S,null)||{},a=e(()=>r?.value?.[n]??Qe[n]);return{dateLocaleRef:e(()=>i?.value??lt),localeRef:a}}var Gt=k(`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=m({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){E(`-base-icon`,Gt,p(e,`clsPrefix`))},render(){return o(`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(e,n){let r=m({render(){return n()}});return m({name:Ut(e),setup(){let n=t(S,null)?.mergedIconsRef;return()=>{let t=n?.value?.[e];return t?t():o(r,null)}}})}var{cubicBezierEaseInOut:Jt}=A;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=k(`scrollbar`,`
|
|
13
|
+
overflow: hidden;
|
|
14
|
+
position: relative;
|
|
15
|
+
z-index: auto;
|
|
16
|
+
height: 100%;
|
|
17
|
+
width: 100%;
|
|
18
|
+
`,[C(`>`,[k(`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(`>`,[k(`scrollbar-content`,`
|
|
30
|
+
box-sizing: border-box;
|
|
31
|
+
min-width: 100%;
|
|
32
|
+
`)])])]),C(`>, +`,[k(`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
|
+
`,[D(`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
|
+
`)])]),D(`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
|
+
`),D(`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
|
+
`),D(`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
|
+
`)])]),D(`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
|
+
`),D(`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
|
+
`),D(`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=m({name:`Scrollbar`,props:Object.assign(Object.assign({},w.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(t){let{mergedClsPrefixRef:n,inlineThemeDisabled:r,mergedRtlRef:i}=_(t),a=ee(`Scrollbar`,i,n),o=d(null),l=d(null),f=d(null),p=d(null),m=d(null),h=d(null),g=d(null),v=d(null),y=d(null),b=d(null),x=d(null),S=d(0),C=d(0),T=d(!1),E=d(!1),D=!1,O=!1,k,A,ie=0,M=0,N=0,ae=0,oe=le(),P=w(`Scrollbar`,`-scrollbar`,$t,Qt,t,n),F=e(()=>{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=e(()=>`${F.value}px`),R=e(()=>{let{value:e}=y,{value:t}=g,{value:n}=x;return e===null||t===null||n===null?0:n*e/t+re(P.value.self.height)*1.5}),ce=e(()=>`${R.value}px`),de=e(()=>{let{value:e}=v,{value:t}=S,{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=e(()=>`${de.value}px`),fe=e(()=>{let{value:e}=y,{value:t}=C,{value:n}=g,{value:r}=x;if(e===null||n===null||r===null)return 0;{let i=n-e;return i?t/i*(r-R.value):0}}),pe=e(()=>`${fe.value}px`),B=e(()=>{let{value:e}=v,{value:t}=h;return e!==null&&t!==null&&t>e}),me=e(()=>{let{value:e}=y,{value:t}=g;return e!==null&&t!==null&&t>e}),V=e(()=>{let{trigger:e}=t;return e===`none`||T.value}),H=e(()=>{let{trigger:e}=t;return e===`none`||E.value}),U=e(()=>{let{container:e}=t;return e?e():l.value}),he=e(()=>{let{content:e}=t;return e?e():f.value}),W=(e,n)=>{if(!t.scrollable)return;if(typeof e==`number`){q(e,n??0,0,!1,`auto`);return}let{left:r,top:i,index:a,elSize:o,position:s,behavior:c,el:l,debounce:u=!0}=e;(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(()=>{t.container||W({top:S.value,left:C.value})}),ge=()=>{G.isDeactivated||X()},_e=e=>{if(G.isDeactivated)return;let{onResize:n}=t;n&&n(e),X()},K=(e,n)=>{if(!t.scrollable)return;let{value:r}=U;r&&(typeof e==`object`?r.scrollBy(e):r.scrollBy(e,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},t.duration)}function Y(){k!==void 0&&window.clearTimeout(k),k=window.setTimeout(()=>{T.value=!1},t.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(e){let{onScroll:n}=t;n&&n(e),we()}function we(){let{value:e}=U;e&&(S.value=e.scrollTop,C.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&&(x.value=n.offsetWidth),r&&(b.value=r.offsetHeight)}function Ee(){let{value:e}=U;e&&(S.value=e.scrollTop,C.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&&(x.value=t.offsetWidth),n&&(b.value=n.offsetHeight)}function X(){t.scrollable&&(t.useUnifiedContainer?Ee():(Te(),we()))}function De(e){return!o.value?.contains(ne(e))}function Oe(e){e.preventDefault(),e.stopPropagation(),O=!0,I(`mousemove`,window,ke,!0),I(`mouseup`,window,Ae,!0),M=C.value,N=a?.value?window.innerWidth-e.clientX:e.clientX}function ke(e){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-e.clientX-N:e.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:e}=t;e&&e(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=S.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()}u(()=>{let{value:e}=me,{value:t}=B,{value:r}=n,{value:i}=m,{value:a}=p;i&&(e?i.classList.remove(`${r}-scrollbar-rail--disabled`):i.classList.add(`${r}-scrollbar-rail--disabled`)),a&&(t?a.classList.remove(`${r}-scrollbar-rail--disabled`):a.classList.add(`${r}-scrollbar-rail--disabled`))}),s(()=>{t.container||X()}),c(()=>{k!==void 0&&window.clearTimeout(k),A!==void 0&&window.clearTimeout(A),L(`mousemove`,window,Me,!0),L(`mouseup`,window,Z,!0)});let Ne=e(()=>{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?te(`scrollbar`,void 0,Ne,t):void 0;return Object.assign(Object.assign({},{scrollTo:W,scrollBy:K,sync:X,syncUnifiedContainer:Ee,handleMouseEnterWrapper:ve,handleMouseLeaveWrapper:ye}),{mergedClsPrefix:n,rtlEnabled:a,containerScrollTop:S,wrapperRef:o,containerRef:l,contentRef:f,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:s,xPlacement:c,xScrollable:l}=this;if(!this.scrollable)return e.default?.call(e);let u=this.trigger===`none`,d=(e,n)=>o(`div`,{ref:`yRailRef`,class:[`${t}-scrollbar-rail`,`${t}-scrollbar-rail--vertical`,`${t}-scrollbar-rail--vertical--${s}`,e],"data-scrollbar-rail":!0,style:[n||``,this.verticalRailStyle],"aria-hidden":!0},o(u?Ze:f,u?null:{name:`fade-in-transition`},{default:()=>this.needYBar&&this.isShowYBar&&!this.isIos?o(`div`,{class:`${t}-scrollbar-rail__scrollbar`,style:{height:this.yBarSizePx,top:this.yBarTopPx},onMousedown:this.handleYScrollMouseDown}):null})),p=()=>{var s;return(s=this.onRender)==null||s.call(this),o(`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):o(`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},o(Ye,{onResize:this.handleContentResize},{default:()=>o(`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&&o(`div`,{ref:`xRailRef`,class:[`${t}-scrollbar-rail`,`${t}-scrollbar-rail--horizontal`,`${t}-scrollbar-rail--horizontal--${c}`],style:this.horizontalRailStyle,"data-scrollbar-rail":!0,"aria-hidden":!0},o(u?Ze:f,u?null:{name:`fade-in-transition`},{default:()=>this.needXBar&&this.isShowXBar&&!this.isIos?o(`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}))])},m=this.container?p():o(Ye,{onResize:this.handleContainerResize},{default:p});return a?o(h,null,m,d(this.themeClass,this.cssVars)):m}}),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};
|