@castlabs/ui 5.1.0 → 5.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("vue");var Xs=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function la(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Ys={},Ks;function aa(){return Ks||(Ks=1,function(){var t=function(h,u){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(m,l){m.__proto__=l}||function(m,l){for(var _ in l)Object.prototype.hasOwnProperty.call(l,_)&&(m[_]=l[_])},t(h,u)},s=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof Xs<"u"?Xs:typeof self<"u"?self:{},a=function(h){var u=typeof h;return h!=null&&(u=="object"||u=="function")},p=typeof s=="object"&&s&&s.Object===Object&&s,v=typeof self=="object"&&self&&self.Object===Object&&self,b=p||v||Function("return this")(),f=b,S=function(){return f.Date.now()},P=/\s/,oe=function(h){for(var u=h.length;u--&&P.test(h.charAt(u)););return u},le=/^\s+/,dt=function(h){return h&&h.slice(0,oe(h)+1).replace(le,"")},Be=b.Symbol,De=Be,Qe=Object.prototype,Je=Qe.hasOwnProperty,se=Qe.toString,Z=De?De.toStringTag:void 0,ne=function(h){var u=Je.call(h,Z),m=h[Z];try{h[Z]=void 0;var l=!0}catch{}var _=se.call(h);return l&&(u?h[Z]=m:delete h[Z]),_},ut=Object.prototype.toString,Ze=ne,It=function(h){return ut.call(h)},pt=Be?Be.toStringTag:void 0,xt=function(h){return h==null?h===void 0?"[object Undefined]":"[object Null]":pt&&pt in Object(h)?Ze(h):It(h)},et=function(h){return h!=null&&typeof h=="object"},ft=dt,tt=a,zt=function(h){return typeof h=="symbol"||et(h)&&xt(h)=="[object Symbol]"},ht=/^[-+]0x[0-9a-f]+$/i,mt=/^0b[01]+$/i,gt=/^0o[0-7]+$/i,vt=parseInt,Gn=a,bt=S,ci=function(h){if(typeof h=="number")return h;if(zt(h))return NaN;if(tt(h)){var u=typeof h.valueOf=="function"?h.valueOf():h;h=tt(u)?u+"":u}if(typeof h!="string")return h===0?h:+h;h=ft(h);var m=mt.test(h);return m||gt.test(h)?vt(h.slice(2),m?2:8):ht.test(h)?NaN:+h},di=Math.max,k=Math.min,nt=function(h,u,m){var l,_,A,M,I,K,X=0,re=!1,G=!1,ee=!0;if(typeof h!="function")throw new TypeError("Expected a function");function me(Q){var ve=l,je=_;return l=_=void 0,X=Q,M=h.apply(je,ve)}function Fe(Q){return X=Q,I=setTimeout(Pe,u),re?me(Q):M}function Ee(Q){var ve=Q-K;return K===void 0||ve>=u||ve<0||G&&Q-X>=A}function Pe(){var Q=bt();if(Ee(Q))return jt(Q);I=setTimeout(Pe,function(ve){var je=u-(ve-K);return G?k(je,A-(ve-X)):je}(Q))}function jt(Q){return I=void 0,ee&&l?me(Q):(l=_=void 0,M)}function ge(){var Q=bt(),ve=Ee(Q);if(l=arguments,_=this,K=Q,ve){if(I===void 0)return Fe(K);if(G)return clearTimeout(I),I=setTimeout(Pe,u),me(K)}return I===void 0&&(I=setTimeout(Pe,u)),M}return u=ci(u)||0,Gn(m)&&(re=!!m.leading,A=(G="maxWait"in m)?di(ci(m.maxWait)||0,u):A,ee="trailing"in m?!!m.trailing:ee),ge.cancel=function(){I!==void 0&&clearTimeout(I),X=0,l=K=_=I=void 0},ge.flush=function(){return I===void 0?M:jt(bt())},ge},ui=nt,Qn=a,Ve=function(h,u,m){var l=!0,_=!0;if(typeof h!="function")throw new TypeError("Expected a function");return Qn(m)&&(l="leading"in m?!!m.leading:l,_="trailing"in m?!!m.trailing:_),ui(h,u,{leading:l,maxWait:u,trailing:_})},Ce=function(){return Ce=Object.assign||function(h){for(var u,m=1,l=arguments.length;m<l;m++)for(var _ in u=arguments[m])Object.prototype.hasOwnProperty.call(u,_)&&(h[_]=u[_]);return h},Ce.apply(this,arguments)};function he(h){return h&&h.ownerDocument&&h.ownerDocument.defaultView?h.ownerDocument.defaultView:window}function Ft(h){return h&&h.ownerDocument?h.ownerDocument:document}var N=function(h){return Array.prototype.reduce.call(h,function(u,m){var l=m.name.match(/data-simplebar-(.+)/);if(l){var _=l[1].replace(/\W+(.)/g,function(A,M){return M.toUpperCase()});switch(m.value){case"true":u[_]=!0;break;case"false":u[_]=!1;break;case void 0:u[_]=!0;break;default:u[_]=m.value}}return u},{})};function yt(h,u){var m;h&&(m=h.classList).add.apply(m,u.split(" "))}function Jn(h,u){h&&u.split(" ").forEach(function(m){h.classList.remove(m)})}function pi(h){return".".concat(h.split(" ").join("."))}var Zn=!(typeof window>"u"||!window.document||!window.document.createElement),_t=Object.freeze({__proto__:null,addClasses:yt,canUseDOM:Zn,classNamesToQuery:pi,getElementDocument:Ft,getElementWindow:he,getOptions:N,removeClasses:Jn}),it=null,ot=null;function Ue(){if(it===null){if(typeof document>"u")return it=0;var h=document.body,u=document.createElement("div");u.classList.add("simplebar-hide-scrollbar"),h.appendChild(u);var m=u.getBoundingClientRect().right;h.removeChild(u),it=m}return it}Zn&&window.addEventListener("resize",function(){ot!==window.devicePixelRatio&&(ot=window.devicePixelRatio,it=null)});var Ie=he,ei=Ft,Li=N,xe=yt,ze=Jn,ae=pi,Pt=function(){function h(u,m){m===void 0&&(m={});var l=this;if(this.removePreventClickId=null,this.minScrollbarWidth=20,this.stopScrollDelay=175,this.isScrolling=!1,this.isMouseEntering=!1,this.isDragging=!1,this.scrollXTicking=!1,this.scrollYTicking=!1,this.wrapperEl=null,this.contentWrapperEl=null,this.contentEl=null,this.offsetEl=null,this.maskEl=null,this.placeholderEl=null,this.heightAutoObserverWrapperEl=null,this.heightAutoObserverEl=null,this.rtlHelpers=null,this.scrollbarWidth=0,this.resizeObserver=null,this.mutationObserver=null,this.elStyles=null,this.isRtl=null,this.mouseX=0,this.mouseY=0,this.onMouseMove=function(){},this.onWindowResize=function(){},this.onStopScrolling=function(){},this.onMouseEntered=function(){},this.onScroll=function(){var _=Ie(l.el);l.scrollXTicking||(_.requestAnimationFrame(l.scrollX),l.scrollXTicking=!0),l.scrollYTicking||(_.requestAnimationFrame(l.scrollY),l.scrollYTicking=!0),l.isScrolling||(l.isScrolling=!0,xe(l.el,l.classNames.scrolling)),l.showScrollbar("x"),l.showScrollbar("y"),l.onStopScrolling()},this.scrollX=function(){l.axis.x.isOverflowing&&l.positionScrollbar("x"),l.scrollXTicking=!1},this.scrollY=function(){l.axis.y.isOverflowing&&l.positionScrollbar("y"),l.scrollYTicking=!1},this._onStopScrolling=function(){ze(l.el,l.classNames.scrolling),l.options.autoHide&&(l.hideScrollbar("x"),l.hideScrollbar("y")),l.isScrolling=!1},this.onMouseEnter=function(){l.isMouseEntering||(xe(l.el,l.classNames.mouseEntered),l.showScrollbar("x"),l.showScrollbar("y"),l.isMouseEntering=!0),l.onMouseEntered()},this._onMouseEntered=function(){ze(l.el,l.classNames.mouseEntered),l.options.autoHide&&(l.hideScrollbar("x"),l.hideScrollbar("y")),l.isMouseEntering=!1},this._onMouseMove=function(_){l.mouseX=_.clientX,l.mouseY=_.clientY,(l.axis.x.isOverflowing||l.axis.x.forceVisible)&&l.onMouseMoveForAxis("x"),(l.axis.y.isOverflowing||l.axis.y.forceVisible)&&l.onMouseMoveForAxis("y")},this.onMouseLeave=function(){l.onMouseMove.cancel(),(l.axis.x.isOverflowing||l.axis.x.forceVisible)&&l.onMouseLeaveForAxis("x"),(l.axis.y.isOverflowing||l.axis.y.forceVisible)&&l.onMouseLeaveForAxis("y"),l.mouseX=-1,l.mouseY=-1},this._onWindowResize=function(){l.scrollbarWidth=l.getScrollbarWidth(),l.hideNativeScrollbar()},this.onPointerEvent=function(_){var A,M;l.axis.x.track.el&&l.axis.y.track.el&&l.axis.x.scrollbar.el&&l.axis.y.scrollbar.el&&(l.axis.x.track.rect=l.axis.x.track.el.getBoundingClientRect(),l.axis.y.track.rect=l.axis.y.track.el.getBoundingClientRect(),(l.axis.x.isOverflowing||l.axis.x.forceVisible)&&(A=l.isWithinBounds(l.axis.x.track.rect)),(l.axis.y.isOverflowing||l.axis.y.forceVisible)&&(M=l.isWithinBounds(l.axis.y.track.rect)),(A||M)&&(_.stopPropagation(),_.type==="pointerdown"&&_.pointerType!=="touch"&&(A&&(l.axis.x.scrollbar.rect=l.axis.x.scrollbar.el.getBoundingClientRect(),l.isWithinBounds(l.axis.x.scrollbar.rect)?l.onDragStart(_,"x"):l.onTrackClick(_,"x")),M&&(l.axis.y.scrollbar.rect=l.axis.y.scrollbar.el.getBoundingClientRect(),l.isWithinBounds(l.axis.y.scrollbar.rect)?l.onDragStart(_,"y"):l.onTrackClick(_,"y")))))},this.drag=function(_){var A,M,I,K,X,re,G,ee,me,Fe,Ee;if(l.draggedAxis&&l.contentWrapperEl){var Pe=l.axis[l.draggedAxis].track,jt=(M=(A=Pe.rect)===null||A===void 0?void 0:A[l.axis[l.draggedAxis].sizeAttr])!==null&&M!==void 0?M:0,ge=l.axis[l.draggedAxis].scrollbar,Q=(K=(I=l.contentWrapperEl)===null||I===void 0?void 0:I[l.axis[l.draggedAxis].scrollSizeAttr])!==null&&K!==void 0?K:0,ve=parseInt((re=(X=l.elStyles)===null||X===void 0?void 0:X[l.axis[l.draggedAxis].sizeAttr])!==null&&re!==void 0?re:"0px",10);_.preventDefault(),_.stopPropagation();var je=(l.draggedAxis==="y"?_.pageY:_.pageX)-((ee=(G=Pe.rect)===null||G===void 0?void 0:G[l.axis[l.draggedAxis].offsetAttr])!==null&&ee!==void 0?ee:0)-l.axis[l.draggedAxis].dragOffset,Wt=(je=l.draggedAxis==="x"&&l.isRtl?((Fe=(me=Pe.rect)===null||me===void 0?void 0:me[l.axis[l.draggedAxis].sizeAttr])!==null&&Fe!==void 0?Fe:0)-ge.size-je:je)/(jt-ge.size)*(Q-ve);l.draggedAxis==="x"&&l.isRtl&&(Wt=!((Ee=h.getRtlHelpers())===null||Ee===void 0)&&Ee.isScrollingToNegative?-Wt:Wt),l.contentWrapperEl[l.axis[l.draggedAxis].scrollOffsetAttr]=Wt}},this.onEndDrag=function(_){l.isDragging=!1;var A=ei(l.el),M=Ie(l.el);_.preventDefault(),_.stopPropagation(),ze(l.el,l.classNames.dragging),l.onStopScrolling(),A.removeEventListener("mousemove",l.drag,!0),A.removeEventListener("mouseup",l.onEndDrag,!0),l.removePreventClickId=M.setTimeout(function(){A.removeEventListener("click",l.preventClick,!0),A.removeEventListener("dblclick",l.preventClick,!0),l.removePreventClickId=null})},this.preventClick=function(_){_.preventDefault(),_.stopPropagation()},this.el=u,this.options=Ce(Ce({},h.defaultOptions),m),this.classNames=Ce(Ce({},h.defaultOptions.classNames),m.classNames),this.axis={x:{scrollOffsetAttr:"scrollLeft",sizeAttr:"width",scrollSizeAttr:"scrollWidth",offsetSizeAttr:"offsetWidth",offsetAttr:"left",overflowAttr:"overflowX",dragOffset:0,isOverflowing:!0,forceVisible:!1,track:{size:null,el:null,rect:null,isVisible:!1},scrollbar:{size:null,el:null,rect:null,isVisible:!1}},y:{scrollOffsetAttr:"scrollTop",sizeAttr:"height",scrollSizeAttr:"scrollHeight",offsetSizeAttr:"offsetHeight",offsetAttr:"top",overflowAttr:"overflowY",dragOffset:0,isOverflowing:!0,forceVisible:!1,track:{size:null,el:null,rect:null,isVisible:!1},scrollbar:{size:null,el:null,rect:null,isVisible:!1}}},typeof this.el!="object"||!this.el.nodeName)throw new Error("Argument passed to SimpleBar must be an HTML element instead of ".concat(this.el));this.onMouseMove=Ve(this._onMouseMove,64),this.onWindowResize=nt(this._onWindowResize,64,{leading:!0}),this.onStopScrolling=nt(this._onStopScrolling,this.stopScrollDelay),this.onMouseEntered=nt(this._onMouseEntered,this.stopScrollDelay),this.init()}return h.getRtlHelpers=function(){if(h.rtlHelpers)return h.rtlHelpers;var u=document.createElement("div");u.innerHTML='<div class="simplebar-dummy-scrollbar-size"><div></div></div>';var m=u.firstElementChild,l=m==null?void 0:m.firstElementChild;if(!l)return null;document.body.appendChild(m),m.scrollLeft=0;var _=h.getOffset(m),A=h.getOffset(l);m.scrollLeft=-999;var M=h.getOffset(l);return document.body.removeChild(m),h.rtlHelpers={isScrollOriginAtZero:_.left!==A.left,isScrollingToNegative:A.left!==M.left},h.rtlHelpers},h.prototype.getScrollbarWidth=function(){try{return this.contentWrapperEl&&getComputedStyle(this.contentWrapperEl,"::-webkit-scrollbar").display==="none"||"scrollbarWidth"in document.documentElement.style||"-ms-overflow-style"in document.documentElement.style?0:Ue()}catch{return Ue()}},h.getOffset=function(u){var m=u.getBoundingClientRect(),l=ei(u),_=Ie(u);return{top:m.top+(_.pageYOffset||l.documentElement.scrollTop),left:m.left+(_.pageXOffset||l.documentElement.scrollLeft)}},h.prototype.init=function(){Zn&&(this.initDOM(),this.rtlHelpers=h.getRtlHelpers(),this.scrollbarWidth=this.getScrollbarWidth(),this.recalculate(),this.initListeners())},h.prototype.initDOM=function(){var u,m;this.wrapperEl=this.el.querySelector(ae(this.classNames.wrapper)),this.contentWrapperEl=this.options.scrollableNode||this.el.querySelector(ae(this.classNames.contentWrapper)),this.contentEl=this.options.contentNode||this.el.querySelector(ae(this.classNames.contentEl)),this.offsetEl=this.el.querySelector(ae(this.classNames.offset)),this.maskEl=this.el.querySelector(ae(this.classNames.mask)),this.placeholderEl=this.findChild(this.wrapperEl,ae(this.classNames.placeholder)),this.heightAutoObserverWrapperEl=this.el.querySelector(ae(this.classNames.heightAutoObserverWrapperEl)),this.heightAutoObserverEl=this.el.querySelector(ae(this.classNames.heightAutoObserverEl)),this.axis.x.track.el=this.findChild(this.el,"".concat(ae(this.classNames.track)).concat(ae(this.classNames.horizontal))),this.axis.y.track.el=this.findChild(this.el,"".concat(ae(this.classNames.track)).concat(ae(this.classNames.vertical))),this.axis.x.scrollbar.el=((u=this.axis.x.track.el)===null||u===void 0?void 0:u.querySelector(ae(this.classNames.scrollbar)))||null,this.axis.y.scrollbar.el=((m=this.axis.y.track.el)===null||m===void 0?void 0:m.querySelector(ae(this.classNames.scrollbar)))||null,this.options.autoHide||(xe(this.axis.x.scrollbar.el,this.classNames.visible),xe(this.axis.y.scrollbar.el,this.classNames.visible))},h.prototype.initListeners=function(){var u,m=this,l=Ie(this.el);if(this.el.addEventListener("mouseenter",this.onMouseEnter),this.el.addEventListener("pointerdown",this.onPointerEvent,!0),this.el.addEventListener("mousemove",this.onMouseMove),this.el.addEventListener("mouseleave",this.onMouseLeave),(u=this.contentWrapperEl)===null||u===void 0||u.addEventListener("scroll",this.onScroll),l.addEventListener("resize",this.onWindowResize),this.contentEl){if(window.ResizeObserver){var _=!1,A=l.ResizeObserver||ResizeObserver;this.resizeObserver=new A(function(){_&&l.requestAnimationFrame(function(){m.recalculate()})}),this.resizeObserver.observe(this.el),this.resizeObserver.observe(this.contentEl),l.requestAnimationFrame(function(){_=!0})}this.mutationObserver=new l.MutationObserver(function(){l.requestAnimationFrame(function(){m.recalculate()})}),this.mutationObserver.observe(this.contentEl,{childList:!0,subtree:!0,characterData:!0})}},h.prototype.recalculate=function(){if(this.heightAutoObserverEl&&this.contentEl&&this.contentWrapperEl&&this.wrapperEl&&this.placeholderEl){var u=Ie(this.el);this.elStyles=u.getComputedStyle(this.el),this.isRtl=this.elStyles.direction==="rtl";var m=this.contentEl.offsetWidth,l=this.heightAutoObserverEl.offsetHeight<=1,_=this.heightAutoObserverEl.offsetWidth<=1||m>0,A=this.contentWrapperEl.offsetWidth,M=this.elStyles.overflowX,I=this.elStyles.overflowY;this.contentEl.style.padding="".concat(this.elStyles.paddingTop," ").concat(this.elStyles.paddingRight," ").concat(this.elStyles.paddingBottom," ").concat(this.elStyles.paddingLeft),this.wrapperEl.style.margin="-".concat(this.elStyles.paddingTop," -").concat(this.elStyles.paddingRight," -").concat(this.elStyles.paddingBottom," -").concat(this.elStyles.paddingLeft);var K=this.contentEl.scrollHeight,X=this.contentEl.scrollWidth;this.contentWrapperEl.style.height=l?"auto":"100%",this.placeholderEl.style.width=_?"".concat(m||X,"px"):"auto",this.placeholderEl.style.height="".concat(K,"px");var re=this.contentWrapperEl.offsetHeight;this.axis.x.isOverflowing=m!==0&&X>m,this.axis.y.isOverflowing=K>re,this.axis.x.isOverflowing=M!=="hidden"&&this.axis.x.isOverflowing,this.axis.y.isOverflowing=I!=="hidden"&&this.axis.y.isOverflowing,this.axis.x.forceVisible=this.options.forceVisible==="x"||this.options.forceVisible===!0,this.axis.y.forceVisible=this.options.forceVisible==="y"||this.options.forceVisible===!0,this.hideNativeScrollbar();var G=this.axis.x.isOverflowing?this.scrollbarWidth:0,ee=this.axis.y.isOverflowing?this.scrollbarWidth:0;this.axis.x.isOverflowing=this.axis.x.isOverflowing&&X>A-ee,this.axis.y.isOverflowing=this.axis.y.isOverflowing&&K>re-G,this.axis.x.scrollbar.size=this.getScrollbarSize("x"),this.axis.y.scrollbar.size=this.getScrollbarSize("y"),this.axis.x.scrollbar.el&&(this.axis.x.scrollbar.el.style.width="".concat(this.axis.x.scrollbar.size,"px")),this.axis.y.scrollbar.el&&(this.axis.y.scrollbar.el.style.height="".concat(this.axis.y.scrollbar.size,"px")),this.positionScrollbar("x"),this.positionScrollbar("y"),this.toggleTrackVisibility("x"),this.toggleTrackVisibility("y")}},h.prototype.getScrollbarSize=function(u){var m,l;if(u===void 0&&(u="y"),!this.axis[u].isOverflowing||!this.contentEl)return 0;var _,A=this.contentEl[this.axis[u].scrollSizeAttr],M=(l=(m=this.axis[u].track.el)===null||m===void 0?void 0:m[this.axis[u].offsetSizeAttr])!==null&&l!==void 0?l:0,I=M/A;return _=Math.max(~~(I*M),this.options.scrollbarMinSize),this.options.scrollbarMaxSize&&(_=Math.min(_,this.options.scrollbarMaxSize)),_},h.prototype.positionScrollbar=function(u){var m,l,_;u===void 0&&(u="y");var A=this.axis[u].scrollbar;if(this.axis[u].isOverflowing&&this.contentWrapperEl&&A.el&&this.elStyles){var M=this.contentWrapperEl[this.axis[u].scrollSizeAttr],I=((m=this.axis[u].track.el)===null||m===void 0?void 0:m[this.axis[u].offsetSizeAttr])||0,K=parseInt(this.elStyles[this.axis[u].sizeAttr],10),X=this.contentWrapperEl[this.axis[u].scrollOffsetAttr];X=u==="x"&&this.isRtl&&(!((l=h.getRtlHelpers())===null||l===void 0)&&l.isScrollOriginAtZero)?-X:X,u==="x"&&this.isRtl&&(X=!((_=h.getRtlHelpers())===null||_===void 0)&&_.isScrollingToNegative?X:-X);var re=X/(M-K),G=~~((I-A.size)*re);G=u==="x"&&this.isRtl?-G+(I-A.size):G,A.el.style.transform=u==="x"?"translate3d(".concat(G,"px, 0, 0)"):"translate3d(0, ".concat(G,"px, 0)")}},h.prototype.toggleTrackVisibility=function(u){u===void 0&&(u="y");var m=this.axis[u].track.el,l=this.axis[u].scrollbar.el;m&&l&&this.contentWrapperEl&&(this.axis[u].isOverflowing||this.axis[u].forceVisible?(m.style.visibility="visible",this.contentWrapperEl.style[this.axis[u].overflowAttr]="scroll",this.el.classList.add("".concat(this.classNames.scrollable,"-").concat(u))):(m.style.visibility="hidden",this.contentWrapperEl.style[this.axis[u].overflowAttr]="hidden",this.el.classList.remove("".concat(this.classNames.scrollable,"-").concat(u))),this.axis[u].isOverflowing?l.style.display="block":l.style.display="none")},h.prototype.showScrollbar=function(u){u===void 0&&(u="y"),this.axis[u].isOverflowing&&!this.axis[u].scrollbar.isVisible&&(xe(this.axis[u].scrollbar.el,this.classNames.visible),this.axis[u].scrollbar.isVisible=!0)},h.prototype.hideScrollbar=function(u){u===void 0&&(u="y"),this.isDragging||this.axis[u].isOverflowing&&this.axis[u].scrollbar.isVisible&&(ze(this.axis[u].scrollbar.el,this.classNames.visible),this.axis[u].scrollbar.isVisible=!1)},h.prototype.hideNativeScrollbar=function(){this.offsetEl&&(this.offsetEl.style[this.isRtl?"left":"right"]=this.axis.y.isOverflowing||this.axis.y.forceVisible?"-".concat(this.scrollbarWidth,"px"):"0px",this.offsetEl.style.bottom=this.axis.x.isOverflowing||this.axis.x.forceVisible?"-".concat(this.scrollbarWidth,"px"):"0px")},h.prototype.onMouseMoveForAxis=function(u){u===void 0&&(u="y");var m=this.axis[u];m.track.el&&m.scrollbar.el&&(m.track.rect=m.track.el.getBoundingClientRect(),m.scrollbar.rect=m.scrollbar.el.getBoundingClientRect(),this.isWithinBounds(m.track.rect)?(this.showScrollbar(u),xe(m.track.el,this.classNames.hover),this.isWithinBounds(m.scrollbar.rect)?xe(m.scrollbar.el,this.classNames.hover):ze(m.scrollbar.el,this.classNames.hover)):(ze(m.track.el,this.classNames.hover),this.options.autoHide&&this.hideScrollbar(u)))},h.prototype.onMouseLeaveForAxis=function(u){u===void 0&&(u="y"),ze(this.axis[u].track.el,this.classNames.hover),ze(this.axis[u].scrollbar.el,this.classNames.hover),this.options.autoHide&&this.hideScrollbar(u)},h.prototype.onDragStart=function(u,m){var l;m===void 0&&(m="y"),this.isDragging=!0;var _=ei(this.el),A=Ie(this.el),M=this.axis[m].scrollbar,I=m==="y"?u.pageY:u.pageX;this.axis[m].dragOffset=I-(((l=M.rect)===null||l===void 0?void 0:l[this.axis[m].offsetAttr])||0),this.draggedAxis=m,xe(this.el,this.classNames.dragging),_.addEventListener("mousemove",this.drag,!0),_.addEventListener("mouseup",this.onEndDrag,!0),this.removePreventClickId===null?(_.addEventListener("click",this.preventClick,!0),_.addEventListener("dblclick",this.preventClick,!0)):(A.clearTimeout(this.removePreventClickId),this.removePreventClickId=null)},h.prototype.onTrackClick=function(u,m){var l,_,A,M,I=this;m===void 0&&(m="y");var K=this.axis[m];if(this.options.clickOnTrack&&K.scrollbar.el&&this.contentWrapperEl){u.preventDefault();var X=Ie(this.el);this.axis[m].scrollbar.rect=K.scrollbar.el.getBoundingClientRect();var re=(_=(l=this.axis[m].scrollbar.rect)===null||l===void 0?void 0:l[this.axis[m].offsetAttr])!==null&&_!==void 0?_:0,G=parseInt((M=(A=this.elStyles)===null||A===void 0?void 0:A[this.axis[m].sizeAttr])!==null&&M!==void 0?M:"0px",10),ee=this.contentWrapperEl[this.axis[m].scrollOffsetAttr],me=(m==="y"?this.mouseY-re:this.mouseX-re)<0?-1:1,Fe=me===-1?ee-G:ee+G,Ee=function(){I.contentWrapperEl&&(me===-1?ee>Fe&&(ee-=40,I.contentWrapperEl[I.axis[m].scrollOffsetAttr]=ee,X.requestAnimationFrame(Ee)):ee<Fe&&(ee+=40,I.contentWrapperEl[I.axis[m].scrollOffsetAttr]=ee,X.requestAnimationFrame(Ee)))};Ee()}},h.prototype.getContentElement=function(){return this.contentEl},h.prototype.getScrollElement=function(){return this.contentWrapperEl},h.prototype.removeListeners=function(){var u=Ie(this.el);this.el.removeEventListener("mouseenter",this.onMouseEnter),this.el.removeEventListener("pointerdown",this.onPointerEvent,!0),this.el.removeEventListener("mousemove",this.onMouseMove),this.el.removeEventListener("mouseleave",this.onMouseLeave),this.contentWrapperEl&&this.contentWrapperEl.removeEventListener("scroll",this.onScroll),u.removeEventListener("resize",this.onWindowResize),this.mutationObserver&&this.mutationObserver.disconnect(),this.resizeObserver&&this.resizeObserver.disconnect(),this.onMouseMove.cancel(),this.onWindowResize.cancel(),this.onStopScrolling.cancel(),this.onMouseEntered.cancel()},h.prototype.unMount=function(){this.removeListeners()},h.prototype.isWithinBounds=function(u){return this.mouseX>=u.left&&this.mouseX<=u.left+u.width&&this.mouseY>=u.top&&this.mouseY<=u.top+u.height},h.prototype.findChild=function(u,m){var l=u.matches||u.webkitMatchesSelector||u.mozMatchesSelector||u.msMatchesSelector;return Array.prototype.filter.call(u.children,function(_){return l.call(_,m)})[0]},h.rtlHelpers=null,h.defaultOptions={forceVisible:!1,clickOnTrack:!0,scrollbarMinSize:25,scrollbarMaxSize:0,ariaLabel:"scrollable content",tabIndex:0,classNames:{contentEl:"simplebar-content",contentWrapper:"simplebar-content-wrapper",offset:"simplebar-offset",mask:"simplebar-mask",wrapper:"simplebar-wrapper",placeholder:"simplebar-placeholder",scrollbar:"simplebar-scrollbar",track:"simplebar-track",heightAutoObserverWrapperEl:"simplebar-height-auto-observer-wrapper",heightAutoObserverEl:"simplebar-height-auto-observer",visible:"simplebar-visible",horizontal:"simplebar-horizontal",vertical:"simplebar-vertical",hover:"simplebar-hover",dragging:"simplebar-dragging",scrolling:"simplebar-scrolling",scrollable:"simplebar-scrollable",mouseEntered:"simplebar-mouse-entered"},scrollableNode:null,contentNode:null,autoHide:!0},h.getOptions=Li,h.helpers=_t,h}(),st=Pt.helpers,$e=st.getOptions,ce=st.addClasses,kt=st.canUseDOM,Xe=function(h){function u(){for(var m=[],l=0;l<arguments.length;l++)m[l]=arguments[l];var _=h.apply(this,m)||this;return u.instances.set(m[0],_),_}return function(m,l){if(typeof l!="function"&&l!==null)throw new TypeError("Class extends value "+String(l)+" is not a constructor or null");function _(){this.constructor=m}t(m,l),m.prototype=l===null?Object.create(l):(_.prototype=l.prototype,new _)}(u,h),u.initDOMLoadedElements=function(){document.removeEventListener("DOMContentLoaded",this.initDOMLoadedElements),window.removeEventListener("load",this.initDOMLoadedElements),Array.prototype.forEach.call(document.querySelectorAll("[data-simplebar]"),function(m){m.getAttribute("data-simplebar")==="init"||u.instances.has(m)||new u(m,$e(m.attributes))})},u.removeObserver=function(){var m;(m=u.globalObserver)===null||m===void 0||m.disconnect()},u.prototype.initDOM=function(){var m,l,_,A=this;if(!Array.prototype.filter.call(this.el.children,function(K){return K.classList.contains(A.classNames.wrapper)}).length){for(this.wrapperEl=document.createElement("div"),this.contentWrapperEl=document.createElement("div"),this.offsetEl=document.createElement("div"),this.maskEl=document.createElement("div"),this.contentEl=document.createElement("div"),this.placeholderEl=document.createElement("div"),this.heightAutoObserverWrapperEl=document.createElement("div"),this.heightAutoObserverEl=document.createElement("div"),ce(this.wrapperEl,this.classNames.wrapper),ce(this.contentWrapperEl,this.classNames.contentWrapper),ce(this.offsetEl,this.classNames.offset),ce(this.maskEl,this.classNames.mask),ce(this.contentEl,this.classNames.contentEl),ce(this.placeholderEl,this.classNames.placeholder),ce(this.heightAutoObserverWrapperEl,this.classNames.heightAutoObserverWrapperEl),ce(this.heightAutoObserverEl,this.classNames.heightAutoObserverEl);this.el.firstChild;)this.contentEl.appendChild(this.el.firstChild);this.contentWrapperEl.appendChild(this.contentEl),this.offsetEl.appendChild(this.contentWrapperEl),this.maskEl.appendChild(this.offsetEl),this.heightAutoObserverWrapperEl.appendChild(this.heightAutoObserverEl),this.wrapperEl.appendChild(this.heightAutoObserverWrapperEl),this.wrapperEl.appendChild(this.maskEl),this.wrapperEl.appendChild(this.placeholderEl),this.el.appendChild(this.wrapperEl),(m=this.contentWrapperEl)===null||m===void 0||m.setAttribute("tabindex",this.options.tabIndex.toString()),(l=this.contentWrapperEl)===null||l===void 0||l.setAttribute("role","region"),(_=this.contentWrapperEl)===null||_===void 0||_.setAttribute("aria-label",this.options.ariaLabel)}if(!this.axis.x.track.el||!this.axis.y.track.el){var M=document.createElement("div"),I=document.createElement("div");ce(M,this.classNames.track),ce(I,this.classNames.scrollbar),M.appendChild(I),this.axis.x.track.el=M.cloneNode(!0),ce(this.axis.x.track.el,this.classNames.horizontal),this.axis.y.track.el=M.cloneNode(!0),ce(this.axis.y.track.el,this.classNames.vertical),this.el.appendChild(this.axis.x.track.el),this.el.appendChild(this.axis.y.track.el)}Pt.prototype.initDOM.call(this),this.el.setAttribute("data-simplebar","init")},u.prototype.unMount=function(){Pt.prototype.unMount.call(this),u.instances.delete(this.el)},u.initHtmlApi=function(){this.initDOMLoadedElements=this.initDOMLoadedElements.bind(this),typeof MutationObserver<"u"&&(this.globalObserver=new MutationObserver(u.handleMutations),this.globalObserver.observe(document,{childList:!0,subtree:!0})),document.readyState==="complete"||document.readyState!=="loading"&&!document.documentElement.doScroll?window.setTimeout(this.initDOMLoadedElements):(document.addEventListener("DOMContentLoaded",this.initDOMLoadedElements),window.addEventListener("load",this.initDOMLoadedElements))},u.handleMutations=function(m){m.forEach(function(l){l.addedNodes.forEach(function(_){_.nodeType===1&&(_.hasAttribute("data-simplebar")?!u.instances.has(_)&&document.documentElement.contains(_)&&new u(_,$e(_.attributes)):_.querySelectorAll("[data-simplebar]").forEach(function(A){A.getAttribute("data-simplebar")!=="init"&&!u.instances.has(A)&&document.documentElement.contains(A)&&new u(A,$e(A.attributes))}))}),l.removedNodes.forEach(function(_){var A;_.nodeType===1&&(_.getAttribute("data-simplebar")==="init"?!document.documentElement.contains(_)&&((A=u.instances.get(_))===null||A===void 0||A.unMount()):Array.prototype.forEach.call(_.querySelectorAll('[data-simplebar="init"]'),function(M){var I;!document.documentElement.contains(M)&&((I=u.instances.get(M))===null||I===void 0||I.unMount())}))})})},u.instances=new WeakMap,u}(Pt);return kt&&Xe.initHtmlApi(),Xe}()),Ys}aa();const ca=n.defineComponent({name:"ClUI",methods:{VITE_APP_VERSION:()=>"5.1.0"}}),O=(t,s)=>{const a=t.__vccOpts||t;for(const[p,v]of s)a[p]=v;return a};function da(t,s,a,p,v,b){return n.toDisplayString(t.VITE_APP_VERSION())}const ua=O(ca,[["render",da]]),pa=n.defineComponent({name:"ClAlert",props:{type:{type:String,required:!0}}});function fa(t,s,a,p,v,b){return n.openBlock(),n.createElementBlock("p",{class:n.normalizeClass(["alert",`cl-alert-${t.type}`]),role:"alert"},[n.renderSlot(t.$slots,"default")],2)}const nn=O(pa,[["render",fa]]);nn.install=t=>{t.component(nn.name??"ClNoName",nn)};var Di={exports:{}};/*!
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("vue");var Xs=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function la(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Ys={},Ks;function aa(){return Ks||(Ks=1,function(){var t=function(h,u){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(m,l){m.__proto__=l}||function(m,l){for(var _ in l)Object.prototype.hasOwnProperty.call(l,_)&&(m[_]=l[_])},t(h,u)},s=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof Xs<"u"?Xs:typeof self<"u"?self:{},a=function(h){var u=typeof h;return h!=null&&(u=="object"||u=="function")},p=typeof s=="object"&&s&&s.Object===Object&&s,v=typeof self=="object"&&self&&self.Object===Object&&self,b=p||v||Function("return this")(),f=b,S=function(){return f.Date.now()},P=/\s/,oe=function(h){for(var u=h.length;u--&&P.test(h.charAt(u)););return u},le=/^\s+/,dt=function(h){return h&&h.slice(0,oe(h)+1).replace(le,"")},Be=b.Symbol,De=Be,Qe=Object.prototype,Je=Qe.hasOwnProperty,se=Qe.toString,Z=De?De.toStringTag:void 0,ne=function(h){var u=Je.call(h,Z),m=h[Z];try{h[Z]=void 0;var l=!0}catch{}var _=se.call(h);return l&&(u?h[Z]=m:delete h[Z]),_},ut=Object.prototype.toString,Ze=ne,It=function(h){return ut.call(h)},pt=Be?Be.toStringTag:void 0,xt=function(h){return h==null?h===void 0?"[object Undefined]":"[object Null]":pt&&pt in Object(h)?Ze(h):It(h)},et=function(h){return h!=null&&typeof h=="object"},ft=dt,tt=a,zt=function(h){return typeof h=="symbol"||et(h)&&xt(h)=="[object Symbol]"},ht=/^[-+]0x[0-9a-f]+$/i,mt=/^0b[01]+$/i,gt=/^0o[0-7]+$/i,vt=parseInt,Gn=a,bt=S,ci=function(h){if(typeof h=="number")return h;if(zt(h))return NaN;if(tt(h)){var u=typeof h.valueOf=="function"?h.valueOf():h;h=tt(u)?u+"":u}if(typeof h!="string")return h===0?h:+h;h=ft(h);var m=mt.test(h);return m||gt.test(h)?vt(h.slice(2),m?2:8):ht.test(h)?NaN:+h},di=Math.max,k=Math.min,nt=function(h,u,m){var l,_,A,M,I,K,X=0,re=!1,G=!1,ee=!0;if(typeof h!="function")throw new TypeError("Expected a function");function me(Q){var ve=l,je=_;return l=_=void 0,X=Q,M=h.apply(je,ve)}function Fe(Q){return X=Q,I=setTimeout(Pe,u),re?me(Q):M}function Ee(Q){var ve=Q-K;return K===void 0||ve>=u||ve<0||G&&Q-X>=A}function Pe(){var Q=bt();if(Ee(Q))return jt(Q);I=setTimeout(Pe,function(ve){var je=u-(ve-K);return G?k(je,A-(ve-X)):je}(Q))}function jt(Q){return I=void 0,ee&&l?me(Q):(l=_=void 0,M)}function ge(){var Q=bt(),ve=Ee(Q);if(l=arguments,_=this,K=Q,ve){if(I===void 0)return Fe(K);if(G)return clearTimeout(I),I=setTimeout(Pe,u),me(K)}return I===void 0&&(I=setTimeout(Pe,u)),M}return u=ci(u)||0,Gn(m)&&(re=!!m.leading,A=(G="maxWait"in m)?di(ci(m.maxWait)||0,u):A,ee="trailing"in m?!!m.trailing:ee),ge.cancel=function(){I!==void 0&&clearTimeout(I),X=0,l=K=_=I=void 0},ge.flush=function(){return I===void 0?M:jt(bt())},ge},ui=nt,Qn=a,Ve=function(h,u,m){var l=!0,_=!0;if(typeof h!="function")throw new TypeError("Expected a function");return Qn(m)&&(l="leading"in m?!!m.leading:l,_="trailing"in m?!!m.trailing:_),ui(h,u,{leading:l,maxWait:u,trailing:_})},Ce=function(){return Ce=Object.assign||function(h){for(var u,m=1,l=arguments.length;m<l;m++)for(var _ in u=arguments[m])Object.prototype.hasOwnProperty.call(u,_)&&(h[_]=u[_]);return h},Ce.apply(this,arguments)};function he(h){return h&&h.ownerDocument&&h.ownerDocument.defaultView?h.ownerDocument.defaultView:window}function Ft(h){return h&&h.ownerDocument?h.ownerDocument:document}var N=function(h){return Array.prototype.reduce.call(h,function(u,m){var l=m.name.match(/data-simplebar-(.+)/);if(l){var _=l[1].replace(/\W+(.)/g,function(A,M){return M.toUpperCase()});switch(m.value){case"true":u[_]=!0;break;case"false":u[_]=!1;break;case void 0:u[_]=!0;break;default:u[_]=m.value}}return u},{})};function yt(h,u){var m;h&&(m=h.classList).add.apply(m,u.split(" "))}function Jn(h,u){h&&u.split(" ").forEach(function(m){h.classList.remove(m)})}function pi(h){return".".concat(h.split(" ").join("."))}var Zn=!(typeof window>"u"||!window.document||!window.document.createElement),_t=Object.freeze({__proto__:null,addClasses:yt,canUseDOM:Zn,classNamesToQuery:pi,getElementDocument:Ft,getElementWindow:he,getOptions:N,removeClasses:Jn}),it=null,ot=null;function Ue(){if(it===null){if(typeof document>"u")return it=0;var h=document.body,u=document.createElement("div");u.classList.add("simplebar-hide-scrollbar"),h.appendChild(u);var m=u.getBoundingClientRect().right;h.removeChild(u),it=m}return it}Zn&&window.addEventListener("resize",function(){ot!==window.devicePixelRatio&&(ot=window.devicePixelRatio,it=null)});var Ie=he,ei=Ft,Li=N,xe=yt,ze=Jn,ae=pi,Pt=function(){function h(u,m){m===void 0&&(m={});var l=this;if(this.removePreventClickId=null,this.minScrollbarWidth=20,this.stopScrollDelay=175,this.isScrolling=!1,this.isMouseEntering=!1,this.isDragging=!1,this.scrollXTicking=!1,this.scrollYTicking=!1,this.wrapperEl=null,this.contentWrapperEl=null,this.contentEl=null,this.offsetEl=null,this.maskEl=null,this.placeholderEl=null,this.heightAutoObserverWrapperEl=null,this.heightAutoObserverEl=null,this.rtlHelpers=null,this.scrollbarWidth=0,this.resizeObserver=null,this.mutationObserver=null,this.elStyles=null,this.isRtl=null,this.mouseX=0,this.mouseY=0,this.onMouseMove=function(){},this.onWindowResize=function(){},this.onStopScrolling=function(){},this.onMouseEntered=function(){},this.onScroll=function(){var _=Ie(l.el);l.scrollXTicking||(_.requestAnimationFrame(l.scrollX),l.scrollXTicking=!0),l.scrollYTicking||(_.requestAnimationFrame(l.scrollY),l.scrollYTicking=!0),l.isScrolling||(l.isScrolling=!0,xe(l.el,l.classNames.scrolling)),l.showScrollbar("x"),l.showScrollbar("y"),l.onStopScrolling()},this.scrollX=function(){l.axis.x.isOverflowing&&l.positionScrollbar("x"),l.scrollXTicking=!1},this.scrollY=function(){l.axis.y.isOverflowing&&l.positionScrollbar("y"),l.scrollYTicking=!1},this._onStopScrolling=function(){ze(l.el,l.classNames.scrolling),l.options.autoHide&&(l.hideScrollbar("x"),l.hideScrollbar("y")),l.isScrolling=!1},this.onMouseEnter=function(){l.isMouseEntering||(xe(l.el,l.classNames.mouseEntered),l.showScrollbar("x"),l.showScrollbar("y"),l.isMouseEntering=!0),l.onMouseEntered()},this._onMouseEntered=function(){ze(l.el,l.classNames.mouseEntered),l.options.autoHide&&(l.hideScrollbar("x"),l.hideScrollbar("y")),l.isMouseEntering=!1},this._onMouseMove=function(_){l.mouseX=_.clientX,l.mouseY=_.clientY,(l.axis.x.isOverflowing||l.axis.x.forceVisible)&&l.onMouseMoveForAxis("x"),(l.axis.y.isOverflowing||l.axis.y.forceVisible)&&l.onMouseMoveForAxis("y")},this.onMouseLeave=function(){l.onMouseMove.cancel(),(l.axis.x.isOverflowing||l.axis.x.forceVisible)&&l.onMouseLeaveForAxis("x"),(l.axis.y.isOverflowing||l.axis.y.forceVisible)&&l.onMouseLeaveForAxis("y"),l.mouseX=-1,l.mouseY=-1},this._onWindowResize=function(){l.scrollbarWidth=l.getScrollbarWidth(),l.hideNativeScrollbar()},this.onPointerEvent=function(_){var A,M;l.axis.x.track.el&&l.axis.y.track.el&&l.axis.x.scrollbar.el&&l.axis.y.scrollbar.el&&(l.axis.x.track.rect=l.axis.x.track.el.getBoundingClientRect(),l.axis.y.track.rect=l.axis.y.track.el.getBoundingClientRect(),(l.axis.x.isOverflowing||l.axis.x.forceVisible)&&(A=l.isWithinBounds(l.axis.x.track.rect)),(l.axis.y.isOverflowing||l.axis.y.forceVisible)&&(M=l.isWithinBounds(l.axis.y.track.rect)),(A||M)&&(_.stopPropagation(),_.type==="pointerdown"&&_.pointerType!=="touch"&&(A&&(l.axis.x.scrollbar.rect=l.axis.x.scrollbar.el.getBoundingClientRect(),l.isWithinBounds(l.axis.x.scrollbar.rect)?l.onDragStart(_,"x"):l.onTrackClick(_,"x")),M&&(l.axis.y.scrollbar.rect=l.axis.y.scrollbar.el.getBoundingClientRect(),l.isWithinBounds(l.axis.y.scrollbar.rect)?l.onDragStart(_,"y"):l.onTrackClick(_,"y")))))},this.drag=function(_){var A,M,I,K,X,re,G,ee,me,Fe,Ee;if(l.draggedAxis&&l.contentWrapperEl){var Pe=l.axis[l.draggedAxis].track,jt=(M=(A=Pe.rect)===null||A===void 0?void 0:A[l.axis[l.draggedAxis].sizeAttr])!==null&&M!==void 0?M:0,ge=l.axis[l.draggedAxis].scrollbar,Q=(K=(I=l.contentWrapperEl)===null||I===void 0?void 0:I[l.axis[l.draggedAxis].scrollSizeAttr])!==null&&K!==void 0?K:0,ve=parseInt((re=(X=l.elStyles)===null||X===void 0?void 0:X[l.axis[l.draggedAxis].sizeAttr])!==null&&re!==void 0?re:"0px",10);_.preventDefault(),_.stopPropagation();var je=(l.draggedAxis==="y"?_.pageY:_.pageX)-((ee=(G=Pe.rect)===null||G===void 0?void 0:G[l.axis[l.draggedAxis].offsetAttr])!==null&&ee!==void 0?ee:0)-l.axis[l.draggedAxis].dragOffset,Wt=(je=l.draggedAxis==="x"&&l.isRtl?((Fe=(me=Pe.rect)===null||me===void 0?void 0:me[l.axis[l.draggedAxis].sizeAttr])!==null&&Fe!==void 0?Fe:0)-ge.size-je:je)/(jt-ge.size)*(Q-ve);l.draggedAxis==="x"&&l.isRtl&&(Wt=!((Ee=h.getRtlHelpers())===null||Ee===void 0)&&Ee.isScrollingToNegative?-Wt:Wt),l.contentWrapperEl[l.axis[l.draggedAxis].scrollOffsetAttr]=Wt}},this.onEndDrag=function(_){l.isDragging=!1;var A=ei(l.el),M=Ie(l.el);_.preventDefault(),_.stopPropagation(),ze(l.el,l.classNames.dragging),l.onStopScrolling(),A.removeEventListener("mousemove",l.drag,!0),A.removeEventListener("mouseup",l.onEndDrag,!0),l.removePreventClickId=M.setTimeout(function(){A.removeEventListener("click",l.preventClick,!0),A.removeEventListener("dblclick",l.preventClick,!0),l.removePreventClickId=null})},this.preventClick=function(_){_.preventDefault(),_.stopPropagation()},this.el=u,this.options=Ce(Ce({},h.defaultOptions),m),this.classNames=Ce(Ce({},h.defaultOptions.classNames),m.classNames),this.axis={x:{scrollOffsetAttr:"scrollLeft",sizeAttr:"width",scrollSizeAttr:"scrollWidth",offsetSizeAttr:"offsetWidth",offsetAttr:"left",overflowAttr:"overflowX",dragOffset:0,isOverflowing:!0,forceVisible:!1,track:{size:null,el:null,rect:null,isVisible:!1},scrollbar:{size:null,el:null,rect:null,isVisible:!1}},y:{scrollOffsetAttr:"scrollTop",sizeAttr:"height",scrollSizeAttr:"scrollHeight",offsetSizeAttr:"offsetHeight",offsetAttr:"top",overflowAttr:"overflowY",dragOffset:0,isOverflowing:!0,forceVisible:!1,track:{size:null,el:null,rect:null,isVisible:!1},scrollbar:{size:null,el:null,rect:null,isVisible:!1}}},typeof this.el!="object"||!this.el.nodeName)throw new Error("Argument passed to SimpleBar must be an HTML element instead of ".concat(this.el));this.onMouseMove=Ve(this._onMouseMove,64),this.onWindowResize=nt(this._onWindowResize,64,{leading:!0}),this.onStopScrolling=nt(this._onStopScrolling,this.stopScrollDelay),this.onMouseEntered=nt(this._onMouseEntered,this.stopScrollDelay),this.init()}return h.getRtlHelpers=function(){if(h.rtlHelpers)return h.rtlHelpers;var u=document.createElement("div");u.innerHTML='<div class="simplebar-dummy-scrollbar-size"><div></div></div>';var m=u.firstElementChild,l=m==null?void 0:m.firstElementChild;if(!l)return null;document.body.appendChild(m),m.scrollLeft=0;var _=h.getOffset(m),A=h.getOffset(l);m.scrollLeft=-999;var M=h.getOffset(l);return document.body.removeChild(m),h.rtlHelpers={isScrollOriginAtZero:_.left!==A.left,isScrollingToNegative:A.left!==M.left},h.rtlHelpers},h.prototype.getScrollbarWidth=function(){try{return this.contentWrapperEl&&getComputedStyle(this.contentWrapperEl,"::-webkit-scrollbar").display==="none"||"scrollbarWidth"in document.documentElement.style||"-ms-overflow-style"in document.documentElement.style?0:Ue()}catch{return Ue()}},h.getOffset=function(u){var m=u.getBoundingClientRect(),l=ei(u),_=Ie(u);return{top:m.top+(_.pageYOffset||l.documentElement.scrollTop),left:m.left+(_.pageXOffset||l.documentElement.scrollLeft)}},h.prototype.init=function(){Zn&&(this.initDOM(),this.rtlHelpers=h.getRtlHelpers(),this.scrollbarWidth=this.getScrollbarWidth(),this.recalculate(),this.initListeners())},h.prototype.initDOM=function(){var u,m;this.wrapperEl=this.el.querySelector(ae(this.classNames.wrapper)),this.contentWrapperEl=this.options.scrollableNode||this.el.querySelector(ae(this.classNames.contentWrapper)),this.contentEl=this.options.contentNode||this.el.querySelector(ae(this.classNames.contentEl)),this.offsetEl=this.el.querySelector(ae(this.classNames.offset)),this.maskEl=this.el.querySelector(ae(this.classNames.mask)),this.placeholderEl=this.findChild(this.wrapperEl,ae(this.classNames.placeholder)),this.heightAutoObserverWrapperEl=this.el.querySelector(ae(this.classNames.heightAutoObserverWrapperEl)),this.heightAutoObserverEl=this.el.querySelector(ae(this.classNames.heightAutoObserverEl)),this.axis.x.track.el=this.findChild(this.el,"".concat(ae(this.classNames.track)).concat(ae(this.classNames.horizontal))),this.axis.y.track.el=this.findChild(this.el,"".concat(ae(this.classNames.track)).concat(ae(this.classNames.vertical))),this.axis.x.scrollbar.el=((u=this.axis.x.track.el)===null||u===void 0?void 0:u.querySelector(ae(this.classNames.scrollbar)))||null,this.axis.y.scrollbar.el=((m=this.axis.y.track.el)===null||m===void 0?void 0:m.querySelector(ae(this.classNames.scrollbar)))||null,this.options.autoHide||(xe(this.axis.x.scrollbar.el,this.classNames.visible),xe(this.axis.y.scrollbar.el,this.classNames.visible))},h.prototype.initListeners=function(){var u,m=this,l=Ie(this.el);if(this.el.addEventListener("mouseenter",this.onMouseEnter),this.el.addEventListener("pointerdown",this.onPointerEvent,!0),this.el.addEventListener("mousemove",this.onMouseMove),this.el.addEventListener("mouseleave",this.onMouseLeave),(u=this.contentWrapperEl)===null||u===void 0||u.addEventListener("scroll",this.onScroll),l.addEventListener("resize",this.onWindowResize),this.contentEl){if(window.ResizeObserver){var _=!1,A=l.ResizeObserver||ResizeObserver;this.resizeObserver=new A(function(){_&&l.requestAnimationFrame(function(){m.recalculate()})}),this.resizeObserver.observe(this.el),this.resizeObserver.observe(this.contentEl),l.requestAnimationFrame(function(){_=!0})}this.mutationObserver=new l.MutationObserver(function(){l.requestAnimationFrame(function(){m.recalculate()})}),this.mutationObserver.observe(this.contentEl,{childList:!0,subtree:!0,characterData:!0})}},h.prototype.recalculate=function(){if(this.heightAutoObserverEl&&this.contentEl&&this.contentWrapperEl&&this.wrapperEl&&this.placeholderEl){var u=Ie(this.el);this.elStyles=u.getComputedStyle(this.el),this.isRtl=this.elStyles.direction==="rtl";var m=this.contentEl.offsetWidth,l=this.heightAutoObserverEl.offsetHeight<=1,_=this.heightAutoObserverEl.offsetWidth<=1||m>0,A=this.contentWrapperEl.offsetWidth,M=this.elStyles.overflowX,I=this.elStyles.overflowY;this.contentEl.style.padding="".concat(this.elStyles.paddingTop," ").concat(this.elStyles.paddingRight," ").concat(this.elStyles.paddingBottom," ").concat(this.elStyles.paddingLeft),this.wrapperEl.style.margin="-".concat(this.elStyles.paddingTop," -").concat(this.elStyles.paddingRight," -").concat(this.elStyles.paddingBottom," -").concat(this.elStyles.paddingLeft);var K=this.contentEl.scrollHeight,X=this.contentEl.scrollWidth;this.contentWrapperEl.style.height=l?"auto":"100%",this.placeholderEl.style.width=_?"".concat(m||X,"px"):"auto",this.placeholderEl.style.height="".concat(K,"px");var re=this.contentWrapperEl.offsetHeight;this.axis.x.isOverflowing=m!==0&&X>m,this.axis.y.isOverflowing=K>re,this.axis.x.isOverflowing=M!=="hidden"&&this.axis.x.isOverflowing,this.axis.y.isOverflowing=I!=="hidden"&&this.axis.y.isOverflowing,this.axis.x.forceVisible=this.options.forceVisible==="x"||this.options.forceVisible===!0,this.axis.y.forceVisible=this.options.forceVisible==="y"||this.options.forceVisible===!0,this.hideNativeScrollbar();var G=this.axis.x.isOverflowing?this.scrollbarWidth:0,ee=this.axis.y.isOverflowing?this.scrollbarWidth:0;this.axis.x.isOverflowing=this.axis.x.isOverflowing&&X>A-ee,this.axis.y.isOverflowing=this.axis.y.isOverflowing&&K>re-G,this.axis.x.scrollbar.size=this.getScrollbarSize("x"),this.axis.y.scrollbar.size=this.getScrollbarSize("y"),this.axis.x.scrollbar.el&&(this.axis.x.scrollbar.el.style.width="".concat(this.axis.x.scrollbar.size,"px")),this.axis.y.scrollbar.el&&(this.axis.y.scrollbar.el.style.height="".concat(this.axis.y.scrollbar.size,"px")),this.positionScrollbar("x"),this.positionScrollbar("y"),this.toggleTrackVisibility("x"),this.toggleTrackVisibility("y")}},h.prototype.getScrollbarSize=function(u){var m,l;if(u===void 0&&(u="y"),!this.axis[u].isOverflowing||!this.contentEl)return 0;var _,A=this.contentEl[this.axis[u].scrollSizeAttr],M=(l=(m=this.axis[u].track.el)===null||m===void 0?void 0:m[this.axis[u].offsetSizeAttr])!==null&&l!==void 0?l:0,I=M/A;return _=Math.max(~~(I*M),this.options.scrollbarMinSize),this.options.scrollbarMaxSize&&(_=Math.min(_,this.options.scrollbarMaxSize)),_},h.prototype.positionScrollbar=function(u){var m,l,_;u===void 0&&(u="y");var A=this.axis[u].scrollbar;if(this.axis[u].isOverflowing&&this.contentWrapperEl&&A.el&&this.elStyles){var M=this.contentWrapperEl[this.axis[u].scrollSizeAttr],I=((m=this.axis[u].track.el)===null||m===void 0?void 0:m[this.axis[u].offsetSizeAttr])||0,K=parseInt(this.elStyles[this.axis[u].sizeAttr],10),X=this.contentWrapperEl[this.axis[u].scrollOffsetAttr];X=u==="x"&&this.isRtl&&(!((l=h.getRtlHelpers())===null||l===void 0)&&l.isScrollOriginAtZero)?-X:X,u==="x"&&this.isRtl&&(X=!((_=h.getRtlHelpers())===null||_===void 0)&&_.isScrollingToNegative?X:-X);var re=X/(M-K),G=~~((I-A.size)*re);G=u==="x"&&this.isRtl?-G+(I-A.size):G,A.el.style.transform=u==="x"?"translate3d(".concat(G,"px, 0, 0)"):"translate3d(0, ".concat(G,"px, 0)")}},h.prototype.toggleTrackVisibility=function(u){u===void 0&&(u="y");var m=this.axis[u].track.el,l=this.axis[u].scrollbar.el;m&&l&&this.contentWrapperEl&&(this.axis[u].isOverflowing||this.axis[u].forceVisible?(m.style.visibility="visible",this.contentWrapperEl.style[this.axis[u].overflowAttr]="scroll",this.el.classList.add("".concat(this.classNames.scrollable,"-").concat(u))):(m.style.visibility="hidden",this.contentWrapperEl.style[this.axis[u].overflowAttr]="hidden",this.el.classList.remove("".concat(this.classNames.scrollable,"-").concat(u))),this.axis[u].isOverflowing?l.style.display="block":l.style.display="none")},h.prototype.showScrollbar=function(u){u===void 0&&(u="y"),this.axis[u].isOverflowing&&!this.axis[u].scrollbar.isVisible&&(xe(this.axis[u].scrollbar.el,this.classNames.visible),this.axis[u].scrollbar.isVisible=!0)},h.prototype.hideScrollbar=function(u){u===void 0&&(u="y"),this.isDragging||this.axis[u].isOverflowing&&this.axis[u].scrollbar.isVisible&&(ze(this.axis[u].scrollbar.el,this.classNames.visible),this.axis[u].scrollbar.isVisible=!1)},h.prototype.hideNativeScrollbar=function(){this.offsetEl&&(this.offsetEl.style[this.isRtl?"left":"right"]=this.axis.y.isOverflowing||this.axis.y.forceVisible?"-".concat(this.scrollbarWidth,"px"):"0px",this.offsetEl.style.bottom=this.axis.x.isOverflowing||this.axis.x.forceVisible?"-".concat(this.scrollbarWidth,"px"):"0px")},h.prototype.onMouseMoveForAxis=function(u){u===void 0&&(u="y");var m=this.axis[u];m.track.el&&m.scrollbar.el&&(m.track.rect=m.track.el.getBoundingClientRect(),m.scrollbar.rect=m.scrollbar.el.getBoundingClientRect(),this.isWithinBounds(m.track.rect)?(this.showScrollbar(u),xe(m.track.el,this.classNames.hover),this.isWithinBounds(m.scrollbar.rect)?xe(m.scrollbar.el,this.classNames.hover):ze(m.scrollbar.el,this.classNames.hover)):(ze(m.track.el,this.classNames.hover),this.options.autoHide&&this.hideScrollbar(u)))},h.prototype.onMouseLeaveForAxis=function(u){u===void 0&&(u="y"),ze(this.axis[u].track.el,this.classNames.hover),ze(this.axis[u].scrollbar.el,this.classNames.hover),this.options.autoHide&&this.hideScrollbar(u)},h.prototype.onDragStart=function(u,m){var l;m===void 0&&(m="y"),this.isDragging=!0;var _=ei(this.el),A=Ie(this.el),M=this.axis[m].scrollbar,I=m==="y"?u.pageY:u.pageX;this.axis[m].dragOffset=I-(((l=M.rect)===null||l===void 0?void 0:l[this.axis[m].offsetAttr])||0),this.draggedAxis=m,xe(this.el,this.classNames.dragging),_.addEventListener("mousemove",this.drag,!0),_.addEventListener("mouseup",this.onEndDrag,!0),this.removePreventClickId===null?(_.addEventListener("click",this.preventClick,!0),_.addEventListener("dblclick",this.preventClick,!0)):(A.clearTimeout(this.removePreventClickId),this.removePreventClickId=null)},h.prototype.onTrackClick=function(u,m){var l,_,A,M,I=this;m===void 0&&(m="y");var K=this.axis[m];if(this.options.clickOnTrack&&K.scrollbar.el&&this.contentWrapperEl){u.preventDefault();var X=Ie(this.el);this.axis[m].scrollbar.rect=K.scrollbar.el.getBoundingClientRect();var re=(_=(l=this.axis[m].scrollbar.rect)===null||l===void 0?void 0:l[this.axis[m].offsetAttr])!==null&&_!==void 0?_:0,G=parseInt((M=(A=this.elStyles)===null||A===void 0?void 0:A[this.axis[m].sizeAttr])!==null&&M!==void 0?M:"0px",10),ee=this.contentWrapperEl[this.axis[m].scrollOffsetAttr],me=(m==="y"?this.mouseY-re:this.mouseX-re)<0?-1:1,Fe=me===-1?ee-G:ee+G,Ee=function(){I.contentWrapperEl&&(me===-1?ee>Fe&&(ee-=40,I.contentWrapperEl[I.axis[m].scrollOffsetAttr]=ee,X.requestAnimationFrame(Ee)):ee<Fe&&(ee+=40,I.contentWrapperEl[I.axis[m].scrollOffsetAttr]=ee,X.requestAnimationFrame(Ee)))};Ee()}},h.prototype.getContentElement=function(){return this.contentEl},h.prototype.getScrollElement=function(){return this.contentWrapperEl},h.prototype.removeListeners=function(){var u=Ie(this.el);this.el.removeEventListener("mouseenter",this.onMouseEnter),this.el.removeEventListener("pointerdown",this.onPointerEvent,!0),this.el.removeEventListener("mousemove",this.onMouseMove),this.el.removeEventListener("mouseleave",this.onMouseLeave),this.contentWrapperEl&&this.contentWrapperEl.removeEventListener("scroll",this.onScroll),u.removeEventListener("resize",this.onWindowResize),this.mutationObserver&&this.mutationObserver.disconnect(),this.resizeObserver&&this.resizeObserver.disconnect(),this.onMouseMove.cancel(),this.onWindowResize.cancel(),this.onStopScrolling.cancel(),this.onMouseEntered.cancel()},h.prototype.unMount=function(){this.removeListeners()},h.prototype.isWithinBounds=function(u){return this.mouseX>=u.left&&this.mouseX<=u.left+u.width&&this.mouseY>=u.top&&this.mouseY<=u.top+u.height},h.prototype.findChild=function(u,m){var l=u.matches||u.webkitMatchesSelector||u.mozMatchesSelector||u.msMatchesSelector;return Array.prototype.filter.call(u.children,function(_){return l.call(_,m)})[0]},h.rtlHelpers=null,h.defaultOptions={forceVisible:!1,clickOnTrack:!0,scrollbarMinSize:25,scrollbarMaxSize:0,ariaLabel:"scrollable content",tabIndex:0,classNames:{contentEl:"simplebar-content",contentWrapper:"simplebar-content-wrapper",offset:"simplebar-offset",mask:"simplebar-mask",wrapper:"simplebar-wrapper",placeholder:"simplebar-placeholder",scrollbar:"simplebar-scrollbar",track:"simplebar-track",heightAutoObserverWrapperEl:"simplebar-height-auto-observer-wrapper",heightAutoObserverEl:"simplebar-height-auto-observer",visible:"simplebar-visible",horizontal:"simplebar-horizontal",vertical:"simplebar-vertical",hover:"simplebar-hover",dragging:"simplebar-dragging",scrolling:"simplebar-scrolling",scrollable:"simplebar-scrollable",mouseEntered:"simplebar-mouse-entered"},scrollableNode:null,contentNode:null,autoHide:!0},h.getOptions=Li,h.helpers=_t,h}(),st=Pt.helpers,$e=st.getOptions,ce=st.addClasses,kt=st.canUseDOM,Xe=function(h){function u(){for(var m=[],l=0;l<arguments.length;l++)m[l]=arguments[l];var _=h.apply(this,m)||this;return u.instances.set(m[0],_),_}return function(m,l){if(typeof l!="function"&&l!==null)throw new TypeError("Class extends value "+String(l)+" is not a constructor or null");function _(){this.constructor=m}t(m,l),m.prototype=l===null?Object.create(l):(_.prototype=l.prototype,new _)}(u,h),u.initDOMLoadedElements=function(){document.removeEventListener("DOMContentLoaded",this.initDOMLoadedElements),window.removeEventListener("load",this.initDOMLoadedElements),Array.prototype.forEach.call(document.querySelectorAll("[data-simplebar]"),function(m){m.getAttribute("data-simplebar")==="init"||u.instances.has(m)||new u(m,$e(m.attributes))})},u.removeObserver=function(){var m;(m=u.globalObserver)===null||m===void 0||m.disconnect()},u.prototype.initDOM=function(){var m,l,_,A=this;if(!Array.prototype.filter.call(this.el.children,function(K){return K.classList.contains(A.classNames.wrapper)}).length){for(this.wrapperEl=document.createElement("div"),this.contentWrapperEl=document.createElement("div"),this.offsetEl=document.createElement("div"),this.maskEl=document.createElement("div"),this.contentEl=document.createElement("div"),this.placeholderEl=document.createElement("div"),this.heightAutoObserverWrapperEl=document.createElement("div"),this.heightAutoObserverEl=document.createElement("div"),ce(this.wrapperEl,this.classNames.wrapper),ce(this.contentWrapperEl,this.classNames.contentWrapper),ce(this.offsetEl,this.classNames.offset),ce(this.maskEl,this.classNames.mask),ce(this.contentEl,this.classNames.contentEl),ce(this.placeholderEl,this.classNames.placeholder),ce(this.heightAutoObserverWrapperEl,this.classNames.heightAutoObserverWrapperEl),ce(this.heightAutoObserverEl,this.classNames.heightAutoObserverEl);this.el.firstChild;)this.contentEl.appendChild(this.el.firstChild);this.contentWrapperEl.appendChild(this.contentEl),this.offsetEl.appendChild(this.contentWrapperEl),this.maskEl.appendChild(this.offsetEl),this.heightAutoObserverWrapperEl.appendChild(this.heightAutoObserverEl),this.wrapperEl.appendChild(this.heightAutoObserverWrapperEl),this.wrapperEl.appendChild(this.maskEl),this.wrapperEl.appendChild(this.placeholderEl),this.el.appendChild(this.wrapperEl),(m=this.contentWrapperEl)===null||m===void 0||m.setAttribute("tabindex",this.options.tabIndex.toString()),(l=this.contentWrapperEl)===null||l===void 0||l.setAttribute("role","region"),(_=this.contentWrapperEl)===null||_===void 0||_.setAttribute("aria-label",this.options.ariaLabel)}if(!this.axis.x.track.el||!this.axis.y.track.el){var M=document.createElement("div"),I=document.createElement("div");ce(M,this.classNames.track),ce(I,this.classNames.scrollbar),M.appendChild(I),this.axis.x.track.el=M.cloneNode(!0),ce(this.axis.x.track.el,this.classNames.horizontal),this.axis.y.track.el=M.cloneNode(!0),ce(this.axis.y.track.el,this.classNames.vertical),this.el.appendChild(this.axis.x.track.el),this.el.appendChild(this.axis.y.track.el)}Pt.prototype.initDOM.call(this),this.el.setAttribute("data-simplebar","init")},u.prototype.unMount=function(){Pt.prototype.unMount.call(this),u.instances.delete(this.el)},u.initHtmlApi=function(){this.initDOMLoadedElements=this.initDOMLoadedElements.bind(this),typeof MutationObserver<"u"&&(this.globalObserver=new MutationObserver(u.handleMutations),this.globalObserver.observe(document,{childList:!0,subtree:!0})),document.readyState==="complete"||document.readyState!=="loading"&&!document.documentElement.doScroll?window.setTimeout(this.initDOMLoadedElements):(document.addEventListener("DOMContentLoaded",this.initDOMLoadedElements),window.addEventListener("load",this.initDOMLoadedElements))},u.handleMutations=function(m){m.forEach(function(l){l.addedNodes.forEach(function(_){_.nodeType===1&&(_.hasAttribute("data-simplebar")?!u.instances.has(_)&&document.documentElement.contains(_)&&new u(_,$e(_.attributes)):_.querySelectorAll("[data-simplebar]").forEach(function(A){A.getAttribute("data-simplebar")!=="init"&&!u.instances.has(A)&&document.documentElement.contains(A)&&new u(A,$e(A.attributes))}))}),l.removedNodes.forEach(function(_){var A;_.nodeType===1&&(_.getAttribute("data-simplebar")==="init"?!document.documentElement.contains(_)&&((A=u.instances.get(_))===null||A===void 0||A.unMount()):Array.prototype.forEach.call(_.querySelectorAll('[data-simplebar="init"]'),function(M){var I;!document.documentElement.contains(M)&&((I=u.instances.get(M))===null||I===void 0||I.unMount())}))})})},u.instances=new WeakMap,u}(Pt);return kt&&Xe.initHtmlApi(),Xe}()),Ys}aa();const ca=n.defineComponent({name:"ClUI",methods:{VITE_APP_VERSION:()=>"5.1.2"}}),O=(t,s)=>{const a=t.__vccOpts||t;for(const[p,v]of s)a[p]=v;return a};function da(t,s,a,p,v,b){return n.toDisplayString(t.VITE_APP_VERSION())}const ua=O(ca,[["render",da]]),pa=n.defineComponent({name:"ClAlert",props:{type:{type:String,required:!0}}});function fa(t,s,a,p,v,b){return n.openBlock(),n.createElementBlock("p",{class:n.normalizeClass(["alert",`cl-alert-${t.type}`]),role:"alert"},[n.renderSlot(t.$slots,"default")],2)}const nn=O(pa,[["render",fa]]);nn.install=t=>{t.component(nn.name??"ClNoName",nn)};var Di={exports:{}};/*!
2
2
  * Bootstrap v5.3.3 (https://getbootstrap.com/)
3
3
  * Copyright 2011-2024 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
4
4
  * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)