@castlabs/ui 7.9.1 → 7.9.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");function oi(e){var i=typeof e;return e!=null&&(i=="object"||i=="function")}var ec=typeof global=="object"&&global&&global.Object===Object&&global,tc=typeof self=="object"&&self&&self.Object===Object&&self,tr=ec||tc||Function("return this")(),Hi=function(){return tr.Date.now()},nc=/\s/;function ic(e){for(var i=e.length;i--&&nc.test(e.charAt(i)););return i}var oc=/^\s+/;function sc(e){return e&&e.slice(0,ic(e)+1).replace(oc,"")}var si=tr.Symbol,nr=Object.prototype,rc=nr.hasOwnProperty,lc=nr.toString,An=si?si.toStringTag:void 0;function ac(e){var i=rc.call(e,An),l=e[An];try{e[An]=void 0;var r=!0}catch{}var c=lc.call(e);return r&&(i?e[An]=l:delete e[An]),c}var cc=Object.prototype,dc=cc.toString;function uc(e){return dc.call(e)}var fc="[object Null]",pc="[object Undefined]",Us=si?si.toStringTag:void 0;function hc(e){return e==null?e===void 0?pc:fc:Us&&Us in Object(e)?ac(e):uc(e)}function mc(e){return e!=null&&typeof e=="object"}var gc="[object Symbol]";function vc(e){return typeof e=="symbol"||mc(e)&&hc(e)==gc}var Ys=NaN,bc=/^[-+]0x[0-9a-f]+$/i,yc=/^0b[01]+$/i,_c=/^0o[0-7]+$/i,Cc=parseInt;function Xs(e){if(typeof e=="number")return e;if(vc(e))return Ys;if(oi(e)){var i=typeof e.valueOf=="function"?e.valueOf():e;e=oi(i)?i+"":i}if(typeof e!="string")return e===0?e:+e;e=sc(e);var l=yc.test(e);return l||_c.test(e)?Cc(e.slice(2),l?2:8):bc.test(e)?Ys:+e}var kc="Expected a function",$c=Math.max,Ec=Math.min;function ei(e,i,l){var r,c,u,d,v,E,B=0,x=!1,M=!1,Q=!0;if(typeof e!="function")throw new TypeError(kc);i=Xs(i)||0,oi(l)&&(x=!!l.leading,M="maxWait"in l,u=M?$c(Xs(l.maxWait)||0,i):u,Q="trailing"in l?!!l.trailing:Q);function U(j){var ce=r,de=c;return r=c=void 0,B=j,d=e.apply(de,ce),d}function ie(j){return B=j,v=setTimeout(q,i),x?U(j):d}function ve(j){var ce=j-E,de=j-B,et=i-ce;return M?Ec(et,u-de):et}function oe(j){var ce=j-E,de=j-B;return E===void 0||ce>=i||ce<0||M&&de>=u}function q(){var j=Hi();if(oe(j))return Y(j);v=setTimeout(q,ve(j))}function Y(j){return v=void 0,Q&&r?U(j):(r=c=void 0,d)}function K(){v!==void 0&&clearTimeout(v),B=0,r=E=c=v=void 0}function Ze(){return v===void 0?d:Y(Hi())}function Se(){var j=Hi(),ce=oe(j);if(r=arguments,c=this,E=j,ce){if(v===void 0)return ie(E);if(M)return clearTimeout(v),v=setTimeout(q,i),U(E)}return v===void 0&&(v=setTimeout(q,i)),d}return Se.cancel=K,Se.flush=Ze,Se}var wc="Expected a function";function Sc(e,i,l){var r=!0,c=!0;if(typeof e!="function")throw new TypeError(wc);return oi(l)&&(r="leading"in l?!!l.leading:r,c="trailing"in l?!!l.trailing:c),ei(e,i,{leading:r,maxWait:i,trailing:c})}var bt=function(){return bt=Object.assign||function(i){for(var l,r=1,c=arguments.length;r<c;r++){l=arguments[r];for(var u in l)Object.prototype.hasOwnProperty.call(l,u)&&(i[u]=l[u])}return i},bt.apply(this,arguments)};function ir(e){return!e||!e.ownerDocument||!e.ownerDocument.defaultView?window:e.ownerDocument.defaultView}function or(e){return!e||!e.ownerDocument?document:e.ownerDocument}var sr=function(e){var i={},l=Array.prototype.reduce.call(e,function(r,c){var u=c.name.match(/data-simplebar-(.+)/);if(u){var d=u[1].replace(/\W+(.)/g,function(v,E){return E.toUpperCase()});switch(c.value){case"true":r[d]=!0;break;case"false":r[d]=!1;break;case void 0:r[d]=!0;break;default:r[d]=c.value}}return r},i);return l};function rr(e,i){var l;e&&(l=e.classList).add.apply(l,i.split(" "))}function lr(e,i){e&&i.split(" ").forEach(function(l){e.classList.remove(l)})}function ar(e){return".".concat(e.split(" ").join("."))}var Gi=!!(typeof window<"u"&&window.document&&window.document.createElement),Nc=Object.freeze({__proto__:null,addClasses:rr,canUseDOM:Gi,classNamesToQuery:ar,getElementDocument:or,getElementWindow:ir,getOptions:sr,removeClasses:lr}),vt=null,Ks=null;Gi&&window.addEventListener("resize",function(){Ks!==window.devicePixelRatio&&(Ks=window.devicePixelRatio,vt=null)});function Gs(){if(vt===null){if(typeof document>"u")return vt=0,vt;var e=document.body,i=document.createElement("div");i.classList.add("simplebar-hide-scrollbar"),e.appendChild(i);var l=i.getBoundingClientRect().right;e.removeChild(i),vt=l}return vt}var ze=ir,Ui=or,Tc=sr,Le=rr,Ie=lr,ne=ar,ti=(function(){function e(i,l){l===void 0&&(l={});var r=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 c=ze(r.el);r.scrollXTicking||(c.requestAnimationFrame(r.scrollX),r.scrollXTicking=!0),r.scrollYTicking||(c.requestAnimationFrame(r.scrollY),r.scrollYTicking=!0),r.isScrolling||(r.isScrolling=!0,Le(r.el,r.classNames.scrolling)),r.showScrollbar("x"),r.showScrollbar("y"),r.onStopScrolling()},this.scrollX=function(){r.axis.x.isOverflowing&&r.positionScrollbar("x"),r.scrollXTicking=!1},this.scrollY=function(){r.axis.y.isOverflowing&&r.positionScrollbar("y"),r.scrollYTicking=!1},this._onStopScrolling=function(){Ie(r.el,r.classNames.scrolling),r.options.autoHide&&(r.hideScrollbar("x"),r.hideScrollbar("y")),r.isScrolling=!1},this.onMouseEnter=function(){r.isMouseEntering||(Le(r.el,r.classNames.mouseEntered),r.showScrollbar("x"),r.showScrollbar("y"),r.isMouseEntering=!0),r.onMouseEntered()},this._onMouseEntered=function(){Ie(r.el,r.classNames.mouseEntered),r.options.autoHide&&(r.hideScrollbar("x"),r.hideScrollbar("y")),r.isMouseEntering=!1},this._onMouseMove=function(c){r.mouseX=c.clientX,r.mouseY=c.clientY,(r.axis.x.isOverflowing||r.axis.x.forceVisible)&&r.onMouseMoveForAxis("x"),(r.axis.y.isOverflowing||r.axis.y.forceVisible)&&r.onMouseMoveForAxis("y")},this.onMouseLeave=function(){r.onMouseMove.cancel(),(r.axis.x.isOverflowing||r.axis.x.forceVisible)&&r.onMouseLeaveForAxis("x"),(r.axis.y.isOverflowing||r.axis.y.forceVisible)&&r.onMouseLeaveForAxis("y"),r.mouseX=-1,r.mouseY=-1},this._onWindowResize=function(){r.scrollbarWidth=r.getScrollbarWidth(),r.hideNativeScrollbar()},this.onPointerEvent=function(c){if(!(!r.axis.x.track.el||!r.axis.y.track.el||!r.axis.x.scrollbar.el||!r.axis.y.scrollbar.el)){var u,d;r.axis.x.track.rect=r.axis.x.track.el.getBoundingClientRect(),r.axis.y.track.rect=r.axis.y.track.el.getBoundingClientRect(),(r.axis.x.isOverflowing||r.axis.x.forceVisible)&&(u=r.isWithinBounds(r.axis.x.track.rect)),(r.axis.y.isOverflowing||r.axis.y.forceVisible)&&(d=r.isWithinBounds(r.axis.y.track.rect)),(u||d)&&(c.stopPropagation(),c.type==="pointerdown"&&c.pointerType!=="touch"&&(u&&(r.axis.x.scrollbar.rect=r.axis.x.scrollbar.el.getBoundingClientRect(),r.isWithinBounds(r.axis.x.scrollbar.rect)?r.onDragStart(c,"x"):r.onTrackClick(c,"x")),d&&(r.axis.y.scrollbar.rect=r.axis.y.scrollbar.el.getBoundingClientRect(),r.isWithinBounds(r.axis.y.scrollbar.rect)?r.onDragStart(c,"y"):r.onTrackClick(c,"y"))))}},this.drag=function(c){var u,d,v,E,B,x,M,Q,U,ie,ve;if(!(!r.draggedAxis||!r.contentWrapperEl)){var oe,q=r.axis[r.draggedAxis].track,Y=(d=(u=q.rect)===null||u===void 0?void 0:u[r.axis[r.draggedAxis].sizeAttr])!==null&&d!==void 0?d:0,K=r.axis[r.draggedAxis].scrollbar,Ze=(E=(v=r.contentWrapperEl)===null||v===void 0?void 0:v[r.axis[r.draggedAxis].scrollSizeAttr])!==null&&E!==void 0?E:0,Se=parseInt((x=(B=r.elStyles)===null||B===void 0?void 0:B[r.axis[r.draggedAxis].sizeAttr])!==null&&x!==void 0?x:"0px",10);c.preventDefault(),c.stopPropagation(),r.draggedAxis==="y"?oe=c.pageY:oe=c.pageX;var j=oe-((Q=(M=q.rect)===null||M===void 0?void 0:M[r.axis[r.draggedAxis].offsetAttr])!==null&&Q!==void 0?Q:0)-r.axis[r.draggedAxis].dragOffset;j=r.draggedAxis==="x"&&r.isRtl?((ie=(U=q.rect)===null||U===void 0?void 0:U[r.axis[r.draggedAxis].sizeAttr])!==null&&ie!==void 0?ie:0)-K.size-j:j;var ce=j/(Y-K.size),de=ce*(Ze-Se);r.draggedAxis==="x"&&r.isRtl&&(de=!((ve=e.getRtlHelpers())===null||ve===void 0)&&ve.isScrollingToNegative?-de:de),r.contentWrapperEl[r.axis[r.draggedAxis].scrollOffsetAttr]=de}},this.onEndDrag=function(c){r.isDragging=!1;var u=Ui(r.el),d=ze(r.el);c.preventDefault(),c.stopPropagation(),Ie(r.el,r.classNames.dragging),r.onStopScrolling(),u.removeEventListener("mousemove",r.drag,!0),u.removeEventListener("mouseup",r.onEndDrag,!0),r.removePreventClickId=d.setTimeout(function(){u.removeEventListener("click",r.preventClick,!0),u.removeEventListener("dblclick",r.preventClick,!0),r.removePreventClickId=null})},this.preventClick=function(c){c.preventDefault(),c.stopPropagation()},this.el=i,this.options=bt(bt({},e.defaultOptions),l),this.classNames=bt(bt({},e.defaultOptions.classNames),l.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=Sc(this._onMouseMove,64),this.onWindowResize=ei(this._onWindowResize,64,{leading:!0}),this.onStopScrolling=ei(this._onStopScrolling,this.stopScrollDelay),this.onMouseEntered=ei(this._onMouseEntered,this.stopScrollDelay),this.init()}return e.getRtlHelpers=function(){if(e.rtlHelpers)return e.rtlHelpers;var i=document.createElement("div");i.innerHTML='<div class="simplebar-dummy-scrollbar-size"><div></div></div>';var l=i.firstElementChild,r=l?.firstElementChild;if(!r)return null;document.body.appendChild(l),l.scrollLeft=0;var c=e.getOffset(l),u=e.getOffset(r);l.scrollLeft=-999;var d=e.getOffset(r);return document.body.removeChild(l),e.rtlHelpers={isScrollOriginAtZero:c.left!==u.left,isScrollingToNegative:u.left!==d.left},e.rtlHelpers},e.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:Gs()}catch{return Gs()}},e.getOffset=function(i){var l=i.getBoundingClientRect(),r=Ui(i),c=ze(i);return{top:l.top+(c.pageYOffset||r.documentElement.scrollTop),left:l.left+(c.pageXOffset||r.documentElement.scrollLeft)}},e.prototype.init=function(){Gi&&(this.initDOM(),this.rtlHelpers=e.getRtlHelpers(),this.scrollbarWidth=this.getScrollbarWidth(),this.recalculate(),this.initListeners())},e.prototype.initDOM=function(){var i,l;this.wrapperEl=this.el.querySelector(ne(this.classNames.wrapper)),this.contentWrapperEl=this.options.scrollableNode||this.el.querySelector(ne(this.classNames.contentWrapper)),this.contentEl=this.options.contentNode||this.el.querySelector(ne(this.classNames.contentEl)),this.offsetEl=this.el.querySelector(ne(this.classNames.offset)),this.maskEl=this.el.querySelector(ne(this.classNames.mask)),this.placeholderEl=this.findChild(this.wrapperEl,ne(this.classNames.placeholder)),this.heightAutoObserverWrapperEl=this.el.querySelector(ne(this.classNames.heightAutoObserverWrapperEl)),this.heightAutoObserverEl=this.el.querySelector(ne(this.classNames.heightAutoObserverEl)),this.axis.x.track.el=this.findChild(this.el,"".concat(ne(this.classNames.track)).concat(ne(this.classNames.horizontal))),this.axis.y.track.el=this.findChild(this.el,"".concat(ne(this.classNames.track)).concat(ne(this.classNames.vertical))),this.axis.x.scrollbar.el=((i=this.axis.x.track.el)===null||i===void 0?void 0:i.querySelector(ne(this.classNames.scrollbar)))||null,this.axis.y.scrollbar.el=((l=this.axis.y.track.el)===null||l===void 0?void 0:l.querySelector(ne(this.classNames.scrollbar)))||null,this.options.autoHide||(Le(this.axis.x.scrollbar.el,this.classNames.visible),Le(this.axis.y.scrollbar.el,this.classNames.visible))},e.prototype.initListeners=function(){var i=this,l,r=ze(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),(l=this.contentWrapperEl)===null||l===void 0||l.addEventListener("scroll",this.onScroll),r.addEventListener("resize",this.onWindowResize),!!this.contentEl){if(window.ResizeObserver){var c=!1,u=r.ResizeObserver||ResizeObserver;this.resizeObserver=new u(function(){c&&r.requestAnimationFrame(function(){i.recalculate()})}),this.resizeObserver.observe(this.el),this.resizeObserver.observe(this.contentEl),r.requestAnimationFrame(function(){c=!0})}this.mutationObserver=new r.MutationObserver(function(){r.requestAnimationFrame(function(){i.recalculate()})}),this.mutationObserver.observe(this.contentEl,{childList:!0,subtree:!0,characterData:!0})}},e.prototype.recalculate=function(){if(!(!this.heightAutoObserverEl||!this.contentEl||!this.contentWrapperEl||!this.wrapperEl||!this.placeholderEl)){var i=ze(this.el);this.elStyles=i.getComputedStyle(this.el),this.isRtl=this.elStyles.direction==="rtl";var l=this.contentEl.offsetWidth,r=this.heightAutoObserverEl.offsetHeight<=1,c=this.heightAutoObserverEl.offsetWidth<=1||l>0,u=this.contentWrapperEl.offsetWidth,d=this.elStyles.overflowX,v=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 E=this.contentEl.scrollHeight,B=this.contentEl.scrollWidth;this.contentWrapperEl.style.height=r?"auto":"100%",this.placeholderEl.style.width=c?"".concat(l||B,"px"):"auto",this.placeholderEl.style.height="".concat(E,"px");var x=this.contentWrapperEl.offsetHeight;this.axis.x.isOverflowing=l!==0&&B>l,this.axis.y.isOverflowing=E>x,this.axis.x.isOverflowing=d==="hidden"?!1:this.axis.x.isOverflowing,this.axis.y.isOverflowing=v==="hidden"?!1: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 M=this.axis.x.isOverflowing?this.scrollbarWidth:0,Q=this.axis.y.isOverflowing?this.scrollbarWidth:0;this.axis.x.isOverflowing=this.axis.x.isOverflowing&&B>u-Q,this.axis.y.isOverflowing=this.axis.y.isOverflowing&&E>x-M,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")}},e.prototype.getScrollbarSize=function(i){var l,r;if(i===void 0&&(i="y"),!this.axis[i].isOverflowing||!this.contentEl)return 0;var c=this.contentEl[this.axis[i].scrollSizeAttr],u=(r=(l=this.axis[i].track.el)===null||l===void 0?void 0:l[this.axis[i].offsetSizeAttr])!==null&&r!==void 0?r:0,d=u/c,v;return v=Math.max(~~(d*u),this.options.scrollbarMinSize),this.options.scrollbarMaxSize&&(v=Math.min(v,this.options.scrollbarMaxSize)),v},e.prototype.positionScrollbar=function(i){var l,r,c;i===void 0&&(i="y");var u=this.axis[i].scrollbar;if(!(!this.axis[i].isOverflowing||!this.contentWrapperEl||!u.el||!this.elStyles)){var d=this.contentWrapperEl[this.axis[i].scrollSizeAttr],v=((l=this.axis[i].track.el)===null||l===void 0?void 0:l[this.axis[i].offsetSizeAttr])||0,E=parseInt(this.elStyles[this.axis[i].sizeAttr],10),B=this.contentWrapperEl[this.axis[i].scrollOffsetAttr];B=i==="x"&&this.isRtl&&(!((r=e.getRtlHelpers())===null||r===void 0)&&r.isScrollOriginAtZero)?-B:B,i==="x"&&this.isRtl&&(B=!((c=e.getRtlHelpers())===null||c===void 0)&&c.isScrollingToNegative?B:-B);var x=B/(d-E),M=~~((v-u.size)*x);M=i==="x"&&this.isRtl?-M+(v-u.size):M,u.el.style.transform=i==="x"?"translate3d(".concat(M,"px, 0, 0)"):"translate3d(0, ".concat(M,"px, 0)")}},e.prototype.toggleTrackVisibility=function(i){i===void 0&&(i="y");var l=this.axis[i].track.el,r=this.axis[i].scrollbar.el;!l||!r||!this.contentWrapperEl||(this.axis[i].isOverflowing||this.axis[i].forceVisible?(l.style.visibility="visible",this.contentWrapperEl.style[this.axis[i].overflowAttr]="scroll",this.el.classList.add("".concat(this.classNames.scrollable,"-").concat(i))):(l.style.visibility="hidden",this.contentWrapperEl.style[this.axis[i].overflowAttr]="hidden",this.el.classList.remove("".concat(this.classNames.scrollable,"-").concat(i))),this.axis[i].isOverflowing?r.style.display="block":r.style.display="none")},e.prototype.showScrollbar=function(i){i===void 0&&(i="y"),this.axis[i].isOverflowing&&!this.axis[i].scrollbar.isVisible&&(Le(this.axis[i].scrollbar.el,this.classNames.visible),this.axis[i].scrollbar.isVisible=!0)},e.prototype.hideScrollbar=function(i){i===void 0&&(i="y"),!this.isDragging&&this.axis[i].isOverflowing&&this.axis[i].scrollbar.isVisible&&(Ie(this.axis[i].scrollbar.el,this.classNames.visible),this.axis[i].scrollbar.isVisible=!1)},e.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")},e.prototype.onMouseMoveForAxis=function(i){i===void 0&&(i="y");var l=this.axis[i];!l.track.el||!l.scrollbar.el||(l.track.rect=l.track.el.getBoundingClientRect(),l.scrollbar.rect=l.scrollbar.el.getBoundingClientRect(),this.isWithinBounds(l.track.rect)?(this.showScrollbar(i),Le(l.track.el,this.classNames.hover),this.isWithinBounds(l.scrollbar.rect)?Le(l.scrollbar.el,this.classNames.hover):Ie(l.scrollbar.el,this.classNames.hover)):(Ie(l.track.el,this.classNames.hover),this.options.autoHide&&this.hideScrollbar(i)))},e.prototype.onMouseLeaveForAxis=function(i){i===void 0&&(i="y"),Ie(this.axis[i].track.el,this.classNames.hover),Ie(this.axis[i].scrollbar.el,this.classNames.hover),this.options.autoHide&&this.hideScrollbar(i)},e.prototype.onDragStart=function(i,l){var r;l===void 0&&(l="y"),this.isDragging=!0;var c=Ui(this.el),u=ze(this.el),d=this.axis[l].scrollbar,v=l==="y"?i.pageY:i.pageX;this.axis[l].dragOffset=v-(((r=d.rect)===null||r===void 0?void 0:r[this.axis[l].offsetAttr])||0),this.draggedAxis=l,Le(this.el,this.classNames.dragging),c.addEventListener("mousemove",this.drag,!0),c.addEventListener("mouseup",this.onEndDrag,!0),this.removePreventClickId===null?(c.addEventListener("click",this.preventClick,!0),c.addEventListener("dblclick",this.preventClick,!0)):(u.clearTimeout(this.removePreventClickId),this.removePreventClickId=null)},e.prototype.onTrackClick=function(i,l){var r=this,c,u,d,v;l===void 0&&(l="y");var E=this.axis[l];if(!(!this.options.clickOnTrack||!E.scrollbar.el||!this.contentWrapperEl)){i.preventDefault();var B=ze(this.el);this.axis[l].scrollbar.rect=E.scrollbar.el.getBoundingClientRect();var x=this.axis[l].scrollbar,M=(u=(c=x.rect)===null||c===void 0?void 0:c[this.axis[l].offsetAttr])!==null&&u!==void 0?u:0,Q=parseInt((v=(d=this.elStyles)===null||d===void 0?void 0:d[this.axis[l].sizeAttr])!==null&&v!==void 0?v:"0px",10),U=this.contentWrapperEl[this.axis[l].scrollOffsetAttr],ie=l==="y"?this.mouseY-M:this.mouseX-M,ve=ie<0?-1:1,oe=ve===-1?U-Q:U+Q,q=40,Y=function(){r.contentWrapperEl&&(ve===-1?U>oe&&(U-=q,r.contentWrapperEl[r.axis[l].scrollOffsetAttr]=U,B.requestAnimationFrame(Y)):U<oe&&(U+=q,r.contentWrapperEl[r.axis[l].scrollOffsetAttr]=U,B.requestAnimationFrame(Y)))};Y()}},e.prototype.getContentElement=function(){return this.contentEl},e.prototype.getScrollElement=function(){return this.contentWrapperEl},e.prototype.removeListeners=function(){var i=ze(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),i.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()},e.prototype.unMount=function(){this.removeListeners()},e.prototype.isWithinBounds=function(i){return this.mouseX>=i.left&&this.mouseX<=i.left+i.width&&this.mouseY>=i.top&&this.mouseY<=i.top+i.height},e.prototype.findChild=function(i,l){var r=i.matches||i.webkitMatchesSelector||i.mozMatchesSelector||i.msMatchesSelector;return Array.prototype.filter.call(i.children,function(c){return r.call(c,l)})[0]},e.rtlHelpers=null,e.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},e.getOptions=Tc,e.helpers=Nc,e})(),Ki=function(e,i){return Ki=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,r){l.__proto__=r}||function(l,r){for(var c in r)Object.prototype.hasOwnProperty.call(r,c)&&(l[c]=r[c])},Ki(e,i)};function Ac(e,i){if(typeof i!="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");Ki(e,i);function l(){this.constructor=e}e.prototype=i===null?Object.create(i):(l.prototype=i.prototype,new l)}var Qi=ti.helpers,Yi=Qi.getOptions,ge=Qi.addClasses,Oc=Qi.canUseDOM,Bc=(function(e){Ac(i,e);function i(){for(var l=[],r=0;r<arguments.length;r++)l[r]=arguments[r];var c=e.apply(this,l)||this;return i.instances.set(l[0],c),c}return i.initDOMLoadedElements=function(){document.removeEventListener("DOMContentLoaded",this.initDOMLoadedElements),window.removeEventListener("load",this.initDOMLoadedElements),Array.prototype.forEach.call(document.querySelectorAll("[data-simplebar]"),function(l){l.getAttribute("data-simplebar")!=="init"&&!i.instances.has(l)&&new i(l,Yi(l.attributes))})},i.removeObserver=function(){var l;(l=i.globalObserver)===null||l===void 0||l.disconnect()},i.prototype.initDOM=function(){var l=this,r,c,u;if(!Array.prototype.filter.call(this.el.children,function(E){return E.classList.contains(l.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"),ge(this.wrapperEl,this.classNames.wrapper),ge(this.contentWrapperEl,this.classNames.contentWrapper),ge(this.offsetEl,this.classNames.offset),ge(this.maskEl,this.classNames.mask),ge(this.contentEl,this.classNames.contentEl),ge(this.placeholderEl,this.classNames.placeholder),ge(this.heightAutoObserverWrapperEl,this.classNames.heightAutoObserverWrapperEl),ge(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),(r=this.contentWrapperEl)===null||r===void 0||r.setAttribute("tabindex",this.options.tabIndex.toString()),(c=this.contentWrapperEl)===null||c===void 0||c.setAttribute("role","region"),(u=this.contentWrapperEl)===null||u===void 0||u.setAttribute("aria-label",this.options.ariaLabel)}if(!this.axis.x.track.el||!this.axis.y.track.el){var d=document.createElement("div"),v=document.createElement("div");ge(d,this.classNames.track),ge(v,this.classNames.scrollbar),d.appendChild(v),this.axis.x.track.el=d.cloneNode(!0),ge(this.axis.x.track.el,this.classNames.horizontal),this.axis.y.track.el=d.cloneNode(!0),ge(this.axis.y.track.el,this.classNames.vertical),this.el.appendChild(this.axis.x.track.el),this.el.appendChild(this.axis.y.track.el)}ti.prototype.initDOM.call(this),this.el.setAttribute("data-simplebar","init")},i.prototype.unMount=function(){ti.prototype.unMount.call(this),i.instances.delete(this.el)},i.initHtmlApi=function(){this.initDOMLoadedElements=this.initDOMLoadedElements.bind(this),typeof MutationObserver<"u"&&(this.globalObserver=new MutationObserver(i.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))},i.handleMutations=function(l){l.forEach(function(r){r.addedNodes.forEach(function(c){c.nodeType===1&&(c.hasAttribute("data-simplebar")?!i.instances.has(c)&&document.documentElement.contains(c)&&new i(c,Yi(c.attributes)):c.querySelectorAll("[data-simplebar]").forEach(function(u){u.getAttribute("data-simplebar")!=="init"&&!i.instances.has(u)&&document.documentElement.contains(u)&&new i(u,Yi(u.attributes))}))}),r.removedNodes.forEach(function(c){var u;c.nodeType===1&&(c.getAttribute("data-simplebar")==="init"?!document.documentElement.contains(c)&&((u=i.instances.get(c))===null||u===void 0||u.unMount()):Array.prototype.forEach.call(c.querySelectorAll('[data-simplebar="init"]'),function(d){var v;!document.documentElement.contains(d)&&((v=i.instances.get(d))===null||v===void 0||v.unMount())}))})})},i.instances=new WeakMap,i})(ti);Oc&&Bc.initHtmlApi();const Dc=n.defineComponent({name:"ClUI",methods:{VITE_APP_VERSION:()=>"7.9.1"}}),$=(e,i)=>{const l=e.__vccOpts||e;for(const[r,c]of i)l[r]=c;return l};function Vc(e,i,l,r,c,u){return n.toDisplayString(e.VITE_APP_VERSION())}const Mc=$(Dc,[["render",Vc]]),zc=n.defineComponent({name:"ClAlert",props:{type:{type:String,default:"info"}}});function Lc(e,i,l,r,c,u){return n.openBlock(),n.createElementBlock("p",{class:n.normalizeClass(["alert",`cl-alert-${e.type}`]),role:"alert"},[n.renderSlot(e.$slots,"default")],2)}const _t=$(zc,[["render",Lc]]);_t.install=e=>{e.component(_t.name??"ClNoName",_t)};function Ic(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ni={exports:{}};var Fc=ni.exports,Qs;function Pc(){return Qs||(Qs=1,(function(e,i){(function(l,r){e.exports=r()})(Fc,function(){const l=new Map,r={set(s,t,o){l.has(s)||l.set(s,new Map);const a=l.get(s);a.has(t)||a.size===0?a.set(t,o):console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(a.keys())[0]}.`)},get:(s,t)=>l.has(s)&&l.get(s).get(t)||null,remove(s,t){if(!l.has(s))return;const o=l.get(s);o.delete(t),o.size===0&&l.delete(s)}},c="transitionend",u=s=>(s&&window.CSS&&window.CSS.escape&&(s=s.replace(/#([^\s"#']+)/g,(t,o)=>`#${CSS.escape(o)}`)),s),d=s=>s==null?`${s}`:Object.prototype.toString.call(s).match(/\s([a-z]+)/i)[1].toLowerCase(),v=s=>{s.dispatchEvent(new Event(c))},E=s=>!(!s||typeof s!="object")&&(s.jquery!==void 0&&(s=s[0]),s.nodeType!==void 0),B=s=>E(s)?s.jquery?s[0]:s:typeof s=="string"&&s.length>0?document.querySelector(u(s)):null,x=s=>{if(!E(s)||s.getClientRects().length===0)return!1;const t=getComputedStyle(s).getPropertyValue("visibility")==="visible",o=s.closest("details:not([open])");if(!o)return t;if(o!==s){const a=s.closest("summary");if(a&&a.parentNode!==o||a===null)return!1}return t},M=s=>!s||s.nodeType!==Node.ELEMENT_NODE||!!s.classList.contains("disabled")||(s.disabled!==void 0?s.disabled:s.hasAttribute("disabled")&&s.getAttribute("disabled")!=="false"),Q=s=>{if(!document.documentElement.attachShadow)return null;if(typeof s.getRootNode=="function"){const t=s.getRootNode();return t instanceof ShadowRoot?t:null}return s instanceof ShadowRoot?s:s.parentNode?Q(s.parentNode):null},U=()=>{},ie=s=>{s.offsetHeight},ve=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,oe=[],q=()=>document.documentElement.dir==="rtl",Y=s=>{var t;t=()=>{const o=ve();if(o){const a=s.NAME,f=o.fn[a];o.fn[a]=s.jQueryInterface,o.fn[a].Constructor=s,o.fn[a].noConflict=()=>(o.fn[a]=f,s.jQueryInterface)}},document.readyState==="loading"?(oe.length||document.addEventListener("DOMContentLoaded",()=>{for(const o of oe)o()}),oe.push(t)):t()},K=(s,t=[],o=s)=>typeof s=="function"?s.call(...t):o,Ze=(s,t,o=!0)=>{if(!o)return void K(s);const a=(h=>{if(!h)return 0;let{transitionDuration:m,transitionDelay:b}=window.getComputedStyle(h);const _=Number.parseFloat(m),C=Number.parseFloat(b);return _||C?(m=m.split(",")[0],b=b.split(",")[0],1e3*(Number.parseFloat(m)+Number.parseFloat(b))):0})(t)+5;let f=!1;const p=({target:h})=>{h===t&&(f=!0,t.removeEventListener(c,p),K(s))};t.addEventListener(c,p),setTimeout(()=>{f||v(t)},a)},Se=(s,t,o,a)=>{const f=s.length;let p=s.indexOf(t);return p===-1?!o&&a?s[f-1]:s[0]:(p+=o?1:-1,a&&(p=(p+f)%f),s[Math.max(0,Math.min(p,f-1))])},j=/[^.]*(?=\..*)\.|.*/,ce=/\..*/,de=/::\d+$/,et={};let oo=1;const so={mouseenter:"mouseover",mouseleave:"mouseout"},Dr=new Set(["click","dblclick","mouseup","mousedown","contextmenu","mousewheel","DOMMouseScroll","mouseover","mouseout","mousemove","selectstart","selectend","keydown","keypress","keyup","orientationchange","touchstart","touchmove","touchend","touchcancel","pointerdown","pointermove","pointerup","pointerleave","pointercancel","gesturestart","gesturechange","gestureend","focus","blur","change","reset","select","submit","focusin","focusout","load","unload","beforeunload","resize","move","DOMContentLoaded","readystatechange","error","abort","scroll"]);function ro(s,t){return t&&`${t}::${oo++}`||s.uidEvent||oo++}function lo(s){const t=ro(s);return s.uidEvent=t,et[t]=et[t]||{},et[t]}function ao(s,t,o=null){return Object.values(s).find(a=>a.callable===t&&a.delegationSelector===o)}function co(s,t,o){const a=typeof t=="string",f=a?o:t||o;let p=fo(s);return Dr.has(p)||(p=s),[a,f,p]}function uo(s,t,o,a,f){if(typeof t!="string"||!s)return;let[p,h,m]=co(t,o,a);t in so&&(h=(N=>function(S){if(!S.relatedTarget||S.relatedTarget!==S.delegateTarget&&!S.delegateTarget.contains(S.relatedTarget))return N.call(this,S)})(h));const b=lo(s),_=b[m]||(b[m]={}),C=ao(_,h,p?o:null);if(C)return void(C.oneOff=C.oneOff&&f);const y=ro(h,t.replace(j,"")),A=p?(function(w,N,S){return function T(F){const R=w.querySelectorAll(N);for(let{target:D}=F;D&&D!==this;D=D.parentNode)for(const z of R)if(z===D)return ai(F,{delegateTarget:D}),T.oneOff&&g.off(w,F.type,N,S),S.apply(D,[F])}})(s,o,h):(function(w,N){return function S(T){return ai(T,{delegateTarget:w}),S.oneOff&&g.off(w,T.type,N),N.apply(w,[T])}})(s,h);A.delegationSelector=p?o:null,A.callable=h,A.oneOff=f,A.uidEvent=y,_[y]=A,s.addEventListener(m,A,p)}function li(s,t,o,a,f){const p=ao(t[o],a,f);p&&(s.removeEventListener(o,p,!!f),delete t[o][p.uidEvent])}function Vr(s,t,o,a){const f=t[o]||{};for(const[p,h]of Object.entries(f))p.includes(a)&&li(s,t,o,h.callable,h.delegationSelector)}function fo(s){return s=s.replace(ce,""),so[s]||s}const g={on(s,t,o,a){uo(s,t,o,a,!1)},one(s,t,o,a){uo(s,t,o,a,!0)},off(s,t,o,a){if(typeof t!="string"||!s)return;const[f,p,h]=co(t,o,a),m=h!==t,b=lo(s),_=b[h]||{},C=t.startsWith(".");if(p===void 0){if(C)for(const y of Object.keys(b))Vr(s,b,y,t.slice(1));for(const[y,A]of Object.entries(_)){const w=y.replace(de,"");m&&!t.includes(w)||li(s,b,h,A.callable,A.delegationSelector)}}else{if(!Object.keys(_).length)return;li(s,b,h,p,f?o:null)}},trigger(s,t,o){if(typeof t!="string"||!s)return null;const a=ve();let f=null,p=!0,h=!0,m=!1;t!==fo(t)&&a&&(f=a.Event(t,o),a(s).trigger(f),p=!f.isPropagationStopped(),h=!f.isImmediatePropagationStopped(),m=f.isDefaultPrevented());const b=ai(new Event(t,{bubbles:p,cancelable:!0}),o);return m&&b.preventDefault(),h&&s.dispatchEvent(b),b.defaultPrevented&&f&&f.preventDefault(),b}};function ai(s,t={}){for(const[o,a]of Object.entries(t))try{s[o]=a}catch{Object.defineProperty(s,o,{configurable:!0,get:()=>a})}return s}function po(s){if(s==="true")return!0;if(s==="false")return!1;if(s===Number(s).toString())return Number(s);if(s===""||s==="null")return null;if(typeof s!="string")return s;try{return JSON.parse(decodeURIComponent(s))}catch{return s}}function ci(s){return s.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`)}const Ne={setDataAttribute(s,t,o){s.setAttribute(`data-bs-${ci(t)}`,o)},removeDataAttribute(s,t){s.removeAttribute(`data-bs-${ci(t)}`)},getDataAttributes(s){if(!s)return{};const t={},o=Object.keys(s.dataset).filter(a=>a.startsWith("bs")&&!a.startsWith("bsConfig"));for(const a of o){let f=a.replace(/^bs/,"");f=f.charAt(0).toLowerCase()+f.slice(1),t[f]=po(s.dataset[a])}return t},getDataAttribute:(s,t)=>po(s.getAttribute(`data-bs-${ci(t)}`))};class bn{static get Default(){return{}}static get DefaultType(){return{}}static get NAME(){throw new Error('You have to implement the static method "NAME", for each component!')}_getConfig(t){return t=this._mergeConfigObj(t),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}_configAfterMerge(t){return t}_mergeConfigObj(t,o){const a=E(o)?Ne.getDataAttribute(o,"config"):{};return{...this.constructor.Default,...typeof a=="object"?a:{},...E(o)?Ne.getDataAttributes(o):{},...typeof t=="object"?t:{}}}_typeCheckConfig(t,o=this.constructor.DefaultType){for(const[a,f]of Object.entries(o)){const p=t[a],h=E(p)?"element":d(p);if(!new RegExp(f).test(h))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${a}" provided type "${h}" but expected type "${f}".`)}}}class be extends bn{constructor(t,o){super(),(t=B(t))&&(this._element=t,this._config=this._getConfig(o),r.set(this._element,this.constructor.DATA_KEY,this))}dispose(){r.remove(this._element,this.constructor.DATA_KEY),g.off(this._element,this.constructor.EVENT_KEY);for(const t of Object.getOwnPropertyNames(this))this[t]=null}_queueCallback(t,o,a=!0){Ze(t,o,a)}_getConfig(t){return t=this._mergeConfigObj(t,this._element),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}static getInstance(t){return r.get(B(t),this.DATA_KEY)}static getOrCreateInstance(t,o={}){return this.getInstance(t)||new this(t,typeof o=="object"?o:null)}static get VERSION(){return"5.3.8"}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}static eventName(t){return`${t}${this.EVENT_KEY}`}}const di=s=>{let t=s.getAttribute("data-bs-target");if(!t||t==="#"){let o=s.getAttribute("href");if(!o||!o.includes("#")&&!o.startsWith("."))return null;o.includes("#")&&!o.startsWith("#")&&(o=`#${o.split("#")[1]}`),t=o&&o!=="#"?o.trim():null}return t?t.split(",").map(o=>u(o)).join(","):null},k={find:(s,t=document.documentElement)=>[].concat(...Element.prototype.querySelectorAll.call(t,s)),findOne:(s,t=document.documentElement)=>Element.prototype.querySelector.call(t,s),children:(s,t)=>[].concat(...s.children).filter(o=>o.matches(t)),parents(s,t){const o=[];let a=s.parentNode.closest(t);for(;a;)o.push(a),a=a.parentNode.closest(t);return o},prev(s,t){let o=s.previousElementSibling;for(;o;){if(o.matches(t))return[o];o=o.previousElementSibling}return[]},next(s,t){let o=s.nextElementSibling;for(;o;){if(o.matches(t))return[o];o=o.nextElementSibling}return[]},focusableChildren(s){const t=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map(o=>`${o}:not([tabindex^="-"])`).join(",");return this.find(t,s).filter(o=>!M(o)&&x(o))},getSelectorFromElement(s){const t=di(s);return t&&k.findOne(t)?t:null},getElementFromSelector(s){const t=di(s);return t?k.findOne(t):null},getMultipleElementsFromSelector(s){const t=di(s);return t?k.find(t):[]}},Dn=(s,t="hide")=>{const o=`click.dismiss${s.EVENT_KEY}`,a=s.NAME;g.on(document,o,`[data-bs-dismiss="${a}"]`,function(f){if(["A","AREA"].includes(this.tagName)&&f.preventDefault(),M(this))return;const p=k.getElementFromSelector(this)||this.closest(`.${a}`);s.getOrCreateInstance(p)[t]()})},ho=".bs.alert",Mr=`close${ho}`,zr=`closed${ho}`;class yn extends be{static get NAME(){return"alert"}close(){if(g.trigger(this._element,Mr).defaultPrevented)return;this._element.classList.remove("show");const t=this._element.classList.contains("fade");this._queueCallback(()=>this._destroyElement(),this._element,t)}_destroyElement(){this._element.remove(),g.trigger(this._element,zr),this.dispose()}static jQueryInterface(t){return this.each(function(){const o=yn.getOrCreateInstance(this);if(typeof t=="string"){if(o[t]===void 0||t.startsWith("_")||t==="constructor")throw new TypeError(`No method named "${t}"`);o[t](this)}})}}Dn(yn,"close"),Y(yn);const mo='[data-bs-toggle="button"]';class _n extends be{static get NAME(){return"button"}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle("active"))}static jQueryInterface(t){return this.each(function(){const o=_n.getOrCreateInstance(this);t==="toggle"&&o[t]()})}}g.on(document,"click.bs.button.data-api",mo,s=>{s.preventDefault();const t=s.target.closest(mo);_n.getOrCreateInstance(t).toggle()}),Y(_n);const tt=".bs.swipe",Lr=`touchstart${tt}`,Ir=`touchmove${tt}`,Fr=`touchend${tt}`,Pr=`pointerdown${tt}`,Wr=`pointerup${tt}`,jr={endCallback:null,leftCallback:null,rightCallback:null},Rr={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"};class Vn extends bn{constructor(t,o){super(),this._element=t,t&&Vn.isSupported()&&(this._config=this._getConfig(o),this._deltaX=0,this._supportPointerEvents=!!window.PointerEvent,this._initEvents())}static get Default(){return jr}static get DefaultType(){return Rr}static get NAME(){return"swipe"}dispose(){g.off(this._element,tt)}_start(t){this._supportPointerEvents?this._eventIsPointerPenTouch(t)&&(this._deltaX=t.clientX):this._deltaX=t.touches[0].clientX}_end(t){this._eventIsPointerPenTouch(t)&&(this._deltaX=t.clientX-this._deltaX),this._handleSwipe(),K(this._config.endCallback)}_move(t){this._deltaX=t.touches&&t.touches.length>1?0:t.touches[0].clientX-this._deltaX}_handleSwipe(){const t=Math.abs(this._deltaX);if(t<=40)return;const o=t/this._deltaX;this._deltaX=0,o&&K(o>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(g.on(this._element,Pr,t=>this._start(t)),g.on(this._element,Wr,t=>this._end(t)),this._element.classList.add("pointer-event")):(g.on(this._element,Lr,t=>this._start(t)),g.on(this._element,Ir,t=>this._move(t)),g.on(this._element,Fr,t=>this._end(t)))}_eventIsPointerPenTouch(t){return this._supportPointerEvents&&(t.pointerType==="pen"||t.pointerType==="touch")}static isSupported(){return"ontouchstart"in document.documentElement||navigator.maxTouchPoints>0}}const Be=".bs.carousel",go=".data-api",xr="ArrowLeft",qr="ArrowRight",Cn="next",nt="prev",it="left",Mn="right",Hr=`slide${Be}`,ui=`slid${Be}`,Ur=`keydown${Be}`,Yr=`mouseenter${Be}`,Xr=`mouseleave${Be}`,Kr=`dragstart${Be}`,Gr=`load${Be}${go}`,Qr=`click${Be}${go}`,vo="carousel",zn="active",bo=".active",yo=".carousel-item",Jr=bo+yo,Zr={[xr]:Mn,[qr]:it},el={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},tl={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"};class ot extends be{constructor(t,o){super(t,o),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=k.findOne(".carousel-indicators",this._element),this._addEventListeners(),this._config.ride===vo&&this.cycle()}static get Default(){return el}static get DefaultType(){return tl}static get NAME(){return"carousel"}next(){this._slide(Cn)}nextWhenVisible(){!document.hidden&&x(this._element)&&this.next()}prev(){this._slide(nt)}pause(){this._isSliding&&v(this._element),this._clearInterval()}cycle(){this._clearInterval(),this._updateInterval(),this._interval=setInterval(()=>this.nextWhenVisible(),this._config.interval)}_maybeEnableCycle(){this._config.ride&&(this._isSliding?g.one(this._element,ui,()=>this.cycle()):this.cycle())}to(t){const o=this._getItems();if(t>o.length-1||t<0)return;if(this._isSliding)return void g.one(this._element,ui,()=>this.to(t));const a=this._getItemIndex(this._getActive());if(a===t)return;const f=t>a?Cn:nt;this._slide(f,o[t])}dispose(){this._swipeHelper&&this._swipeHelper.dispose(),super.dispose()}_configAfterMerge(t){return t.defaultInterval=t.interval,t}_addEventListeners(){this._config.keyboard&&g.on(this._element,Ur,t=>this._keydown(t)),this._config.pause==="hover"&&(g.on(this._element,Yr,()=>this.pause()),g.on(this._element,Xr,()=>this._maybeEnableCycle())),this._config.touch&&Vn.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(const o of k.find(".carousel-item img",this._element))g.on(o,Kr,a=>a.preventDefault());const t={leftCallback:()=>this._slide(this._directionToOrder(it)),rightCallback:()=>this._slide(this._directionToOrder(Mn)),endCallback:()=>{this._config.pause==="hover"&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout(()=>this._maybeEnableCycle(),500+this._config.interval))}};this._swipeHelper=new Vn(this._element,t)}_keydown(t){if(/input|textarea/i.test(t.target.tagName))return;const o=Zr[t.key];o&&(t.preventDefault(),this._slide(this._directionToOrder(o)))}_getItemIndex(t){return this._getItems().indexOf(t)}_setActiveIndicatorElement(t){if(!this._indicatorsElement)return;const o=k.findOne(bo,this._indicatorsElement);o.classList.remove(zn),o.removeAttribute("aria-current");const a=k.findOne(`[data-bs-slide-to="${t}"]`,this._indicatorsElement);a&&(a.classList.add(zn),a.setAttribute("aria-current","true"))}_updateInterval(){const t=this._activeElement||this._getActive();if(!t)return;const o=Number.parseInt(t.getAttribute("data-bs-interval"),10);this._config.interval=o||this._config.defaultInterval}_slide(t,o=null){if(this._isSliding)return;const a=this._getActive(),f=t===Cn,p=o||Se(this._getItems(),a,f,this._config.wrap);if(p===a)return;const h=this._getItemIndex(p),m=y=>g.trigger(this._element,y,{relatedTarget:p,direction:this._orderToDirection(t),from:this._getItemIndex(a),to:h});if(m(Hr).defaultPrevented||!a||!p)return;const b=!!this._interval;this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(h),this._activeElement=p;const _=f?"carousel-item-start":"carousel-item-end",C=f?"carousel-item-next":"carousel-item-prev";p.classList.add(C),ie(p),a.classList.add(_),p.classList.add(_),this._queueCallback(()=>{p.classList.remove(_,C),p.classList.add(zn),a.classList.remove(zn,C,_),this._isSliding=!1,m(ui)},a,this._isAnimated()),b&&this.cycle()}_isAnimated(){return this._element.classList.contains("slide")}_getActive(){return k.findOne(Jr,this._element)}_getItems(){return k.find(yo,this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(t){return q()?t===it?nt:Cn:t===it?Cn:nt}_orderToDirection(t){return q()?t===nt?it:Mn:t===nt?Mn:it}static jQueryInterface(t){return this.each(function(){const o=ot.getOrCreateInstance(this,t);if(typeof t!="number"){if(typeof t=="string"){if(o[t]===void 0||t.startsWith("_")||t==="constructor")throw new TypeError(`No method named "${t}"`);o[t]()}}else o.to(t)})}}g.on(document,Qr,"[data-bs-slide], [data-bs-slide-to]",function(s){const t=k.getElementFromSelector(this);if(!t||!t.classList.contains(vo))return;s.preventDefault();const o=ot.getOrCreateInstance(t),a=this.getAttribute("data-bs-slide-to");return a?(o.to(a),void o._maybeEnableCycle()):Ne.getDataAttribute(this,"slide")==="next"?(o.next(),void o._maybeEnableCycle()):(o.prev(),void o._maybeEnableCycle())}),g.on(window,Gr,()=>{const s=k.find('[data-bs-ride="carousel"]');for(const t of s)ot.getOrCreateInstance(t)}),Y(ot);const kn=".bs.collapse",nl=`show${kn}`,il=`shown${kn}`,ol=`hide${kn}`,sl=`hidden${kn}`,rl=`click${kn}.data-api`,fi="show",st="collapse",Ln="collapsing",ll=`:scope .${st} .${st}`,pi='[data-bs-toggle="collapse"]',al={parent:null,toggle:!0},cl={parent:"(null|element)",toggle:"boolean"};class rt extends be{constructor(t,o){super(t,o),this._isTransitioning=!1,this._triggerArray=[];const a=k.find(pi);for(const f of a){const p=k.getSelectorFromElement(f),h=k.find(p).filter(m=>m===this._element);p!==null&&h.length&&this._triggerArray.push(f)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return al}static get DefaultType(){return cl}static get NAME(){return"collapse"}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let t=[];if(this._config.parent&&(t=this._getFirstLevelChildren(".collapse.show, .collapse.collapsing").filter(f=>f!==this._element).map(f=>rt.getOrCreateInstance(f,{toggle:!1}))),t.length&&t[0]._isTransitioning||g.trigger(this._element,nl).defaultPrevented)return;for(const f of t)f.hide();const o=this._getDimension();this._element.classList.remove(st),this._element.classList.add(Ln),this._element.style[o]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const a=`scroll${o[0].toUpperCase()+o.slice(1)}`;this._queueCallback(()=>{this._isTransitioning=!1,this._element.classList.remove(Ln),this._element.classList.add(st,fi),this._element.style[o]="",g.trigger(this._element,il)},this._element,!0),this._element.style[o]=`${this._element[a]}px`}hide(){if(this._isTransitioning||!this._isShown()||g.trigger(this._element,ol).defaultPrevented)return;const t=this._getDimension();this._element.style[t]=`${this._element.getBoundingClientRect()[t]}px`,ie(this._element),this._element.classList.add(Ln),this._element.classList.remove(st,fi);for(const o of this._triggerArray){const a=k.getElementFromSelector(o);a&&!this._isShown(a)&&this._addAriaAndCollapsedClass([o],!1)}this._isTransitioning=!0,this._element.style[t]="",this._queueCallback(()=>{this._isTransitioning=!1,this._element.classList.remove(Ln),this._element.classList.add(st),g.trigger(this._element,sl)},this._element,!0)}_isShown(t=this._element){return t.classList.contains(fi)}_configAfterMerge(t){return t.toggle=!!t.toggle,t.parent=B(t.parent),t}_getDimension(){return this._element.classList.contains("collapse-horizontal")?"width":"height"}_initializeChildren(){if(!this._config.parent)return;const t=this._getFirstLevelChildren(pi);for(const o of t){const a=k.getElementFromSelector(o);a&&this._addAriaAndCollapsedClass([o],this._isShown(a))}}_getFirstLevelChildren(t){const o=k.find(ll,this._config.parent);return k.find(t,this._config.parent).filter(a=>!o.includes(a))}_addAriaAndCollapsedClass(t,o){if(t.length)for(const a of t)a.classList.toggle("collapsed",!o),a.setAttribute("aria-expanded",o)}static jQueryInterface(t){const o={};return typeof t=="string"&&/show|hide/.test(t)&&(o.toggle=!1),this.each(function(){const a=rt.getOrCreateInstance(this,o);if(typeof t=="string"){if(a[t]===void 0)throw new TypeError(`No method named "${t}"`);a[t]()}})}}g.on(document,rl,pi,function(s){(s.target.tagName==="A"||s.delegateTarget&&s.delegateTarget.tagName==="A")&&s.preventDefault();for(const t of k.getMultipleElementsFromSelector(this))rt.getOrCreateInstance(t,{toggle:!1}).toggle()}),Y(rt);var J="top",se="bottom",re="right",Z="left",In="auto",lt=[J,se,re,Z],Pe="start",at="end",_o="clippingParents",hi="viewport",ct="popper",Co="reference",mi=lt.reduce(function(s,t){return s.concat([t+"-"+Pe,t+"-"+at])},[]),gi=[].concat(lt,[In]).reduce(function(s,t){return s.concat([t,t+"-"+Pe,t+"-"+at])},[]),ko="beforeRead",$o="read",Eo="afterRead",wo="beforeMain",So="main",No="afterMain",To="beforeWrite",Ao="write",Oo="afterWrite",Bo=[ko,$o,Eo,wo,So,No,To,Ao,Oo];function Ce(s){return s?(s.nodeName||"").toLowerCase():null}function le(s){if(s==null)return window;if(s.toString()!=="[object Window]"){var t=s.ownerDocument;return t&&t.defaultView||window}return s}function We(s){return s instanceof le(s).Element||s instanceof Element}function ue(s){return s instanceof le(s).HTMLElement||s instanceof HTMLElement}function vi(s){return typeof ShadowRoot<"u"&&(s instanceof le(s).ShadowRoot||s instanceof ShadowRoot)}const bi={name:"applyStyles",enabled:!0,phase:"write",fn:function(s){var t=s.state;Object.keys(t.elements).forEach(function(o){var a=t.styles[o]||{},f=t.attributes[o]||{},p=t.elements[o];ue(p)&&Ce(p)&&(Object.assign(p.style,a),Object.keys(f).forEach(function(h){var m=f[h];m===!1?p.removeAttribute(h):p.setAttribute(h,m===!0?"":m)}))})},effect:function(s){var t=s.state,o={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,o.popper),t.styles=o,t.elements.arrow&&Object.assign(t.elements.arrow.style,o.arrow),function(){Object.keys(t.elements).forEach(function(a){var f=t.elements[a],p=t.attributes[a]||{},h=Object.keys(t.styles.hasOwnProperty(a)?t.styles[a]:o[a]).reduce(function(m,b){return m[b]="",m},{});ue(f)&&Ce(f)&&(Object.assign(f.style,h),Object.keys(p).forEach(function(m){f.removeAttribute(m)}))})}},requires:["computeStyles"]};function ke(s){return s.split("-")[0]}var je=Math.max,Fn=Math.min,dt=Math.round;function yi(){var s=navigator.userAgentData;return s!=null&&s.brands&&Array.isArray(s.brands)?s.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function Do(){return!/^((?!chrome|android).)*safari/i.test(yi())}function ut(s,t,o){t===void 0&&(t=!1),o===void 0&&(o=!1);var a=s.getBoundingClientRect(),f=1,p=1;t&&ue(s)&&(f=s.offsetWidth>0&&dt(a.width)/s.offsetWidth||1,p=s.offsetHeight>0&&dt(a.height)/s.offsetHeight||1);var h=(We(s)?le(s):window).visualViewport,m=!Do()&&o,b=(a.left+(m&&h?h.offsetLeft:0))/f,_=(a.top+(m&&h?h.offsetTop:0))/p,C=a.width/f,y=a.height/p;return{width:C,height:y,top:_,right:b+C,bottom:_+y,left:b,x:b,y:_}}function _i(s){var t=ut(s),o=s.offsetWidth,a=s.offsetHeight;return Math.abs(t.width-o)<=1&&(o=t.width),Math.abs(t.height-a)<=1&&(a=t.height),{x:s.offsetLeft,y:s.offsetTop,width:o,height:a}}function Vo(s,t){var o=t.getRootNode&&t.getRootNode();if(s.contains(t))return!0;if(o&&vi(o)){var a=t;do{if(a&&s.isSameNode(a))return!0;a=a.parentNode||a.host}while(a)}return!1}function Te(s){return le(s).getComputedStyle(s)}function dl(s){return["table","td","th"].indexOf(Ce(s))>=0}function De(s){return((We(s)?s.ownerDocument:s.document)||window.document).documentElement}function Pn(s){return Ce(s)==="html"?s:s.assignedSlot||s.parentNode||(vi(s)?s.host:null)||De(s)}function Mo(s){return ue(s)&&Te(s).position!=="fixed"?s.offsetParent:null}function $n(s){for(var t=le(s),o=Mo(s);o&&dl(o)&&Te(o).position==="static";)o=Mo(o);return o&&(Ce(o)==="html"||Ce(o)==="body"&&Te(o).position==="static")?t:o||(function(a){var f=/firefox/i.test(yi());if(/Trident/i.test(yi())&&ue(a)&&Te(a).position==="fixed")return null;var p=Pn(a);for(vi(p)&&(p=p.host);ue(p)&&["html","body"].indexOf(Ce(p))<0;){var h=Te(p);if(h.transform!=="none"||h.perspective!=="none"||h.contain==="paint"||["transform","perspective"].indexOf(h.willChange)!==-1||f&&h.willChange==="filter"||f&&h.filter&&h.filter!=="none")return p;p=p.parentNode}return null})(s)||t}function Ci(s){return["top","bottom"].indexOf(s)>=0?"x":"y"}function En(s,t,o){return je(s,Fn(t,o))}function zo(s){return Object.assign({},{top:0,right:0,bottom:0,left:0},s)}function Lo(s,t){return t.reduce(function(o,a){return o[a]=s,o},{})}const Io={name:"arrow",enabled:!0,phase:"main",fn:function(s){var t,o=s.state,a=s.name,f=s.options,p=o.elements.arrow,h=o.modifiersData.popperOffsets,m=ke(o.placement),b=Ci(m),_=[Z,re].indexOf(m)>=0?"height":"width";if(p&&h){var C=(function(P,I){return zo(typeof(P=typeof P=="function"?P(Object.assign({},I.rects,{placement:I.placement})):P)!="number"?P:Lo(P,lt))})(f.padding,o),y=_i(p),A=b==="y"?J:Z,w=b==="y"?se:re,N=o.rects.reference[_]+o.rects.reference[b]-h[b]-o.rects.popper[_],S=h[b]-o.rects.reference[b],T=$n(p),F=T?b==="y"?T.clientHeight||0:T.clientWidth||0:0,R=N/2-S/2,D=C[A],z=F-y[_]-C[w],O=F/2-y[_]/2+R,V=En(D,O,z),L=b;o.modifiersData[a]=((t={})[L]=V,t.centerOffset=V-O,t)}},effect:function(s){var t=s.state,o=s.options.element,a=o===void 0?"[data-popper-arrow]":o;a!=null&&(typeof a!="string"||(a=t.elements.popper.querySelector(a)))&&Vo(t.elements.popper,a)&&(t.elements.arrow=a)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ft(s){return s.split("-")[1]}var ul={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Fo(s){var t,o=s.popper,a=s.popperRect,f=s.placement,p=s.variation,h=s.offsets,m=s.position,b=s.gpuAcceleration,_=s.adaptive,C=s.roundOffsets,y=s.isFixed,A=h.x,w=A===void 0?0:A,N=h.y,S=N===void 0?0:N,T=typeof C=="function"?C({x:w,y:S}):{x:w,y:S};w=T.x,S=T.y;var F=h.hasOwnProperty("x"),R=h.hasOwnProperty("y"),D=Z,z=J,O=window;if(_){var V=$n(o),L="clientHeight",P="clientWidth";V===le(o)&&Te(V=De(o)).position!=="static"&&m==="absolute"&&(L="scrollHeight",P="scrollWidth"),(f===J||(f===Z||f===re)&&p===at)&&(z=se,S-=(y&&V===O&&O.visualViewport?O.visualViewport.height:V[L])-a.height,S*=b?1:-1),f!==Z&&(f!==J&&f!==se||p!==at)||(D=re,w-=(y&&V===O&&O.visualViewport?O.visualViewport.width:V[P])-a.width,w*=b?1:-1)}var I,X=Object.assign({position:m},_&&ul),ae=C===!0?(function(_e,ee){var pe=_e.x,he=_e.y,H=ee.devicePixelRatio||1;return{x:dt(pe*H)/H||0,y:dt(he*H)/H||0}})({x:w,y:S},le(o)):{x:w,y:S};return w=ae.x,S=ae.y,b?Object.assign({},X,((I={})[z]=R?"0":"",I[D]=F?"0":"",I.transform=(O.devicePixelRatio||1)<=1?"translate("+w+"px, "+S+"px)":"translate3d("+w+"px, "+S+"px, 0)",I)):Object.assign({},X,((t={})[z]=R?S+"px":"",t[D]=F?w+"px":"",t.transform="",t))}const ki={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(s){var t=s.state,o=s.options,a=o.gpuAcceleration,f=a===void 0||a,p=o.adaptive,h=p===void 0||p,m=o.roundOffsets,b=m===void 0||m,_={placement:ke(t.placement),variation:ft(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:f,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Fo(Object.assign({},_,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:h,roundOffsets:b})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Fo(Object.assign({},_,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:b})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}};var Wn={passive:!0};const $i={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(s){var t=s.state,o=s.instance,a=s.options,f=a.scroll,p=f===void 0||f,h=a.resize,m=h===void 0||h,b=le(t.elements.popper),_=[].concat(t.scrollParents.reference,t.scrollParents.popper);return p&&_.forEach(function(C){C.addEventListener("scroll",o.update,Wn)}),m&&b.addEventListener("resize",o.update,Wn),function(){p&&_.forEach(function(C){C.removeEventListener("scroll",o.update,Wn)}),m&&b.removeEventListener("resize",o.update,Wn)}},data:{}};var fl={left:"right",right:"left",bottom:"top",top:"bottom"};function jn(s){return s.replace(/left|right|bottom|top/g,function(t){return fl[t]})}var pl={start:"end",end:"start"};function Po(s){return s.replace(/start|end/g,function(t){return pl[t]})}function Ei(s){var t=le(s);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function wi(s){return ut(De(s)).left+Ei(s).scrollLeft}function Si(s){var t=Te(s),o=t.overflow,a=t.overflowX,f=t.overflowY;return/auto|scroll|overlay|hidden/.test(o+f+a)}function Wo(s){return["html","body","#document"].indexOf(Ce(s))>=0?s.ownerDocument.body:ue(s)&&Si(s)?s:Wo(Pn(s))}function wn(s,t){var o;t===void 0&&(t=[]);var a=Wo(s),f=a===((o=s.ownerDocument)==null?void 0:o.body),p=le(a),h=f?[p].concat(p.visualViewport||[],Si(a)?a:[]):a,m=t.concat(h);return f?m:m.concat(wn(Pn(h)))}function Ni(s){return Object.assign({},s,{left:s.x,top:s.y,right:s.x+s.width,bottom:s.y+s.height})}function jo(s,t,o){return t===hi?Ni((function(a,f){var p=le(a),h=De(a),m=p.visualViewport,b=h.clientWidth,_=h.clientHeight,C=0,y=0;if(m){b=m.width,_=m.height;var A=Do();(A||!A&&f==="fixed")&&(C=m.offsetLeft,y=m.offsetTop)}return{width:b,height:_,x:C+wi(a),y}})(s,o)):We(t)?(function(a,f){var p=ut(a,!1,f==="fixed");return p.top=p.top+a.clientTop,p.left=p.left+a.clientLeft,p.bottom=p.top+a.clientHeight,p.right=p.left+a.clientWidth,p.width=a.clientWidth,p.height=a.clientHeight,p.x=p.left,p.y=p.top,p})(t,o):Ni((function(a){var f,p=De(a),h=Ei(a),m=(f=a.ownerDocument)==null?void 0:f.body,b=je(p.scrollWidth,p.clientWidth,m?m.scrollWidth:0,m?m.clientWidth:0),_=je(p.scrollHeight,p.clientHeight,m?m.scrollHeight:0,m?m.clientHeight:0),C=-h.scrollLeft+wi(a),y=-h.scrollTop;return Te(m||p).direction==="rtl"&&(C+=je(p.clientWidth,m?m.clientWidth:0)-b),{width:b,height:_,x:C,y}})(De(s)))}function Ro(s){var t,o=s.reference,a=s.element,f=s.placement,p=f?ke(f):null,h=f?ft(f):null,m=o.x+o.width/2-a.width/2,b=o.y+o.height/2-a.height/2;switch(p){case J:t={x:m,y:o.y-a.height};break;case se:t={x:m,y:o.y+o.height};break;case re:t={x:o.x+o.width,y:b};break;case Z:t={x:o.x-a.width,y:b};break;default:t={x:o.x,y:o.y}}var _=p?Ci(p):null;if(_!=null){var C=_==="y"?"height":"width";switch(h){case Pe:t[_]=t[_]-(o[C]/2-a[C]/2);break;case at:t[_]=t[_]+(o[C]/2-a[C]/2)}}return t}function pt(s,t){t===void 0&&(t={});var o=t,a=o.placement,f=a===void 0?s.placement:a,p=o.strategy,h=p===void 0?s.strategy:p,m=o.boundary,b=m===void 0?_o:m,_=o.rootBoundary,C=_===void 0?hi:_,y=o.elementContext,A=y===void 0?ct:y,w=o.altBoundary,N=w!==void 0&&w,S=o.padding,T=S===void 0?0:S,F=zo(typeof T!="number"?T:Lo(T,lt)),R=A===ct?Co:ct,D=s.rects.popper,z=s.elements[N?R:A],O=(function(ee,pe,he,H){var $e=pe==="clippingParents"?(function(W){var te=wn(Pn(W)),me=["absolute","fixed"].indexOf(Te(W).position)>=0&&ue(W)?$n(W):W;return We(me)?te.filter(function(Me){return We(Me)&&Vo(Me,me)&&Ce(Me)!=="body"}):[]})(ee):[].concat(pe),Ee=[].concat($e,[he]),gt=Ee[0],G=Ee.reduce(function(W,te){var me=jo(ee,te,H);return W.top=je(me.top,W.top),W.right=Fn(me.right,W.right),W.bottom=Fn(me.bottom,W.bottom),W.left=je(me.left,W.left),W},jo(ee,gt,H));return G.width=G.right-G.left,G.height=G.bottom-G.top,G.x=G.left,G.y=G.top,G})(We(z)?z:z.contextElement||De(s.elements.popper),b,C,h),V=ut(s.elements.reference),L=Ro({reference:V,element:D,placement:f}),P=Ni(Object.assign({},D,L)),I=A===ct?P:V,X={top:O.top-I.top+F.top,bottom:I.bottom-O.bottom+F.bottom,left:O.left-I.left+F.left,right:I.right-O.right+F.right},ae=s.modifiersData.offset;if(A===ct&&ae){var _e=ae[f];Object.keys(X).forEach(function(ee){var pe=[re,se].indexOf(ee)>=0?1:-1,he=[J,se].indexOf(ee)>=0?"y":"x";X[ee]+=_e[he]*pe})}return X}function hl(s,t){t===void 0&&(t={});var o=t,a=o.placement,f=o.boundary,p=o.rootBoundary,h=o.padding,m=o.flipVariations,b=o.allowedAutoPlacements,_=b===void 0?gi:b,C=ft(a),y=C?m?mi:mi.filter(function(N){return ft(N)===C}):lt,A=y.filter(function(N){return _.indexOf(N)>=0});A.length===0&&(A=y);var w=A.reduce(function(N,S){return N[S]=pt(s,{placement:S,boundary:f,rootBoundary:p,padding:h})[ke(S)],N},{});return Object.keys(w).sort(function(N,S){return w[N]-w[S]})}const xo={name:"flip",enabled:!0,phase:"main",fn:function(s){var t=s.state,o=s.options,a=s.name;if(!t.modifiersData[a]._skip){for(var f=o.mainAxis,p=f===void 0||f,h=o.altAxis,m=h===void 0||h,b=o.fallbackPlacements,_=o.padding,C=o.boundary,y=o.rootBoundary,A=o.altBoundary,w=o.flipVariations,N=w===void 0||w,S=o.allowedAutoPlacements,T=t.options.placement,F=ke(T),R=b||(F!==T&&N?(function(W){if(ke(W)===In)return[];var te=jn(W);return[Po(W),te,Po(te)]})(T):[jn(T)]),D=[T].concat(R).reduce(function(W,te){return W.concat(ke(te)===In?hl(t,{placement:te,boundary:C,rootBoundary:y,padding:_,flipVariations:N,allowedAutoPlacements:S}):te)},[]),z=t.rects.reference,O=t.rects.popper,V=new Map,L=!0,P=D[0],I=0;I<D.length;I++){var X=D[I],ae=ke(X),_e=ft(X)===Pe,ee=[J,se].indexOf(ae)>=0,pe=ee?"width":"height",he=pt(t,{placement:X,boundary:C,rootBoundary:y,altBoundary:A,padding:_}),H=ee?_e?re:Z:_e?se:J;z[pe]>O[pe]&&(H=jn(H));var $e=jn(H),Ee=[];if(p&&Ee.push(he[ae]<=0),m&&Ee.push(he[H]<=0,he[$e]<=0),Ee.every(function(W){return W})){P=X,L=!1;break}V.set(X,Ee)}if(L)for(var gt=function(W){var te=D.find(function(me){var Me=V.get(me);if(Me)return Me.slice(0,W).every(function(Gn){return Gn})});if(te)return P=te,"break"},G=N?3:1;G>0&&gt(G)!=="break";G--);t.placement!==P&&(t.modifiersData[a]._skip=!0,t.placement=P,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function qo(s,t,o){return o===void 0&&(o={x:0,y:0}),{top:s.top-t.height-o.y,right:s.right-t.width+o.x,bottom:s.bottom-t.height+o.y,left:s.left-t.width-o.x}}function Ho(s){return[J,re,se,Z].some(function(t){return s[t]>=0})}const Uo={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(s){var t=s.state,o=s.name,a=t.rects.reference,f=t.rects.popper,p=t.modifiersData.preventOverflow,h=pt(t,{elementContext:"reference"}),m=pt(t,{altBoundary:!0}),b=qo(h,a),_=qo(m,f,p),C=Ho(b),y=Ho(_);t.modifiersData[o]={referenceClippingOffsets:b,popperEscapeOffsets:_,isReferenceHidden:C,hasPopperEscaped:y},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":C,"data-popper-escaped":y})}},Yo={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(s){var t=s.state,o=s.options,a=s.name,f=o.offset,p=f===void 0?[0,0]:f,h=gi.reduce(function(C,y){return C[y]=(function(A,w,N){var S=ke(A),T=[Z,J].indexOf(S)>=0?-1:1,F=typeof N=="function"?N(Object.assign({},w,{placement:A})):N,R=F[0],D=F[1];return R=R||0,D=(D||0)*T,[Z,re].indexOf(S)>=0?{x:D,y:R}:{x:R,y:D}})(y,t.rects,p),C},{}),m=h[t.placement],b=m.x,_=m.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=b,t.modifiersData.popperOffsets.y+=_),t.modifiersData[a]=h}},Ti={name:"popperOffsets",enabled:!0,phase:"read",fn:function(s){var t=s.state,o=s.name;t.modifiersData[o]=Ro({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})},data:{}},Xo={name:"preventOverflow",enabled:!0,phase:"main",fn:function(s){var t=s.state,o=s.options,a=s.name,f=o.mainAxis,p=f===void 0||f,h=o.altAxis,m=h!==void 0&&h,b=o.boundary,_=o.rootBoundary,C=o.altBoundary,y=o.padding,A=o.tether,w=A===void 0||A,N=o.tetherOffset,S=N===void 0?0:N,T=pt(t,{boundary:b,rootBoundary:_,padding:y,altBoundary:C}),F=ke(t.placement),R=ft(t.placement),D=!R,z=Ci(F),O=z==="x"?"y":"x",V=t.modifiersData.popperOffsets,L=t.rects.reference,P=t.rects.popper,I=typeof S=="function"?S(Object.assign({},t.rects,{placement:t.placement})):S,X=typeof I=="number"?{mainAxis:I,altAxis:I}:Object.assign({mainAxis:0,altAxis:0},I),ae=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,_e={x:0,y:0};if(V){if(p){var ee,pe=z==="y"?J:Z,he=z==="y"?se:re,H=z==="y"?"height":"width",$e=V[z],Ee=$e+T[pe],gt=$e-T[he],G=w?-P[H]/2:0,W=R===Pe?L[H]:P[H],te=R===Pe?-P[H]:-L[H],me=t.elements.arrow,Me=w&&me?_i(me):{width:0,height:0},Gn=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},Ms=Gn[pe],zs=Gn[he],Qn=En(0,L[H],Me[H]),Ua=D?L[H]/2-G-Qn-Ms-X.mainAxis:W-Qn-Ms-X.mainAxis,Ya=D?-L[H]/2+G+Qn+zs+X.mainAxis:te+Qn+zs+X.mainAxis,Ri=t.elements.arrow&&$n(t.elements.arrow),Xa=Ri?z==="y"?Ri.clientTop||0:Ri.clientLeft||0:0,Ls=(ee=ae?.[z])!=null?ee:0,Ka=$e+Ya-Ls,Is=En(w?Fn(Ee,$e+Ua-Ls-Xa):Ee,$e,w?je(gt,Ka):gt);V[z]=Is,_e[z]=Is-$e}if(m){var Fs,Ga=z==="x"?J:Z,Qa=z==="x"?se:re,Ke=V[O],Jn=O==="y"?"height":"width",Ps=Ke+T[Ga],Ws=Ke-T[Qa],xi=[J,Z].indexOf(F)!==-1,js=(Fs=ae?.[O])!=null?Fs:0,Rs=xi?Ps:Ke-L[Jn]-P[Jn]-js+X.altAxis,xs=xi?Ke+L[Jn]+P[Jn]-js-X.altAxis:Ws,qs=w&&xi?(function(Ja,Za,qi){var Hs=En(Ja,Za,qi);return Hs>qi?qi:Hs})(Rs,Ke,xs):En(w?Rs:Ps,Ke,w?xs:Ws);V[O]=qs,_e[O]=qs-Ke}t.modifiersData[a]=_e}},requiresIfExists:["offset"]};function ml(s,t,o){o===void 0&&(o=!1);var a,f,p=ue(t),h=ue(t)&&(function(y){var A=y.getBoundingClientRect(),w=dt(A.width)/y.offsetWidth||1,N=dt(A.height)/y.offsetHeight||1;return w!==1||N!==1})(t),m=De(t),b=ut(s,h,o),_={scrollLeft:0,scrollTop:0},C={x:0,y:0};return(p||!p&&!o)&&((Ce(t)!=="body"||Si(m))&&(_=(a=t)!==le(a)&&ue(a)?{scrollLeft:(f=a).scrollLeft,scrollTop:f.scrollTop}:Ei(a)),ue(t)?((C=ut(t,!0)).x+=t.clientLeft,C.y+=t.clientTop):m&&(C.x=wi(m))),{x:b.left+_.scrollLeft-C.x,y:b.top+_.scrollTop-C.y,width:b.width,height:b.height}}function gl(s){var t=new Map,o=new Set,a=[];function f(p){o.add(p.name),[].concat(p.requires||[],p.requiresIfExists||[]).forEach(function(h){if(!o.has(h)){var m=t.get(h);m&&f(m)}}),a.push(p)}return s.forEach(function(p){t.set(p.name,p)}),s.forEach(function(p){o.has(p.name)||f(p)}),a}var Ko={placement:"bottom",modifiers:[],strategy:"absolute"};function Go(){for(var s=arguments.length,t=new Array(s),o=0;o<s;o++)t[o]=arguments[o];return!t.some(function(a){return!(a&&typeof a.getBoundingClientRect=="function")})}function Rn(s){s===void 0&&(s={});var t=s,o=t.defaultModifiers,a=o===void 0?[]:o,f=t.defaultOptions,p=f===void 0?Ko:f;return function(h,m,b){b===void 0&&(b=p);var _,C,y={placement:"bottom",orderedModifiers:[],options:Object.assign({},Ko,p),modifiersData:{},elements:{reference:h,popper:m},attributes:{},styles:{}},A=[],w=!1,N={state:y,setOptions:function(T){var F=typeof T=="function"?T(y.options):T;S(),y.options=Object.assign({},p,y.options,F),y.scrollParents={reference:We(h)?wn(h):h.contextElement?wn(h.contextElement):[],popper:wn(m)};var R,D,z=(function(O){var V=gl(O);return Bo.reduce(function(L,P){return L.concat(V.filter(function(I){return I.phase===P}))},[])})((R=[].concat(a,y.options.modifiers),D=R.reduce(function(O,V){var L=O[V.name];return O[V.name]=L?Object.assign({},L,V,{options:Object.assign({},L.options,V.options),data:Object.assign({},L.data,V.data)}):V,O},{}),Object.keys(D).map(function(O){return D[O]})));return y.orderedModifiers=z.filter(function(O){return O.enabled}),y.orderedModifiers.forEach(function(O){var V=O.name,L=O.options,P=L===void 0?{}:L,I=O.effect;if(typeof I=="function"){var X=I({state:y,name:V,instance:N,options:P});A.push(X||function(){})}}),N.update()},forceUpdate:function(){if(!w){var T=y.elements,F=T.reference,R=T.popper;if(Go(F,R)){y.rects={reference:ml(F,$n(R),y.options.strategy==="fixed"),popper:_i(R)},y.reset=!1,y.placement=y.options.placement,y.orderedModifiers.forEach(function(I){return y.modifiersData[I.name]=Object.assign({},I.data)});for(var D=0;D<y.orderedModifiers.length;D++)if(y.reset!==!0){var z=y.orderedModifiers[D],O=z.fn,V=z.options,L=V===void 0?{}:V,P=z.name;typeof O=="function"&&(y=O({state:y,options:L,name:P,instance:N})||y)}else y.reset=!1,D=-1}}},update:(_=function(){return new Promise(function(T){N.forceUpdate(),T(y)})},function(){return C||(C=new Promise(function(T){Promise.resolve().then(function(){C=void 0,T(_())})})),C}),destroy:function(){S(),w=!0}};if(!Go(h,m))return N;function S(){A.forEach(function(T){return T()}),A=[]}return N.setOptions(b).then(function(T){!w&&b.onFirstUpdate&&b.onFirstUpdate(T)}),N}}var vl=Rn(),bl=Rn({defaultModifiers:[$i,Ti,ki,bi]}),Ai=Rn({defaultModifiers:[$i,Ti,ki,bi,Yo,xo,Xo,Io,Uo]});const Qo=Object.freeze(Object.defineProperty({__proto__:null,afterMain:No,afterRead:Eo,afterWrite:Oo,applyStyles:bi,arrow:Io,auto:In,basePlacements:lt,beforeMain:wo,beforeRead:ko,beforeWrite:To,bottom:se,clippingParents:_o,computeStyles:ki,createPopper:Ai,createPopperBase:vl,createPopperLite:bl,detectOverflow:pt,end:at,eventListeners:$i,flip:xo,hide:Uo,left:Z,main:So,modifierPhases:Bo,offset:Yo,placements:gi,popper:ct,popperGenerator:Rn,popperOffsets:Ti,preventOverflow:Xo,read:$o,reference:Co,right:re,start:Pe,top:J,variationPlacements:mi,viewport:hi,write:Ao},Symbol.toStringTag,{value:"Module"})),Jo="dropdown",Re=".bs.dropdown",Oi=".data-api",yl="ArrowUp",Zo="ArrowDown",_l=`hide${Re}`,Cl=`hidden${Re}`,kl=`show${Re}`,$l=`shown${Re}`,es=`click${Re}${Oi}`,ts=`keydown${Re}${Oi}`,El=`keyup${Re}${Oi}`,ht="show",xe='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',wl=`${xe}.${ht}`,xn=".dropdown-menu",Sl=q()?"top-end":"top-start",Nl=q()?"top-start":"top-end",Tl=q()?"bottom-end":"bottom-start",Al=q()?"bottom-start":"bottom-end",Ol=q()?"left-start":"right-start",Bl=q()?"right-start":"left-start",Dl={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},Vl={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"};class ye extends be{constructor(t,o){super(t,o),this._popper=null,this._parent=this._element.parentNode,this._menu=k.next(this._element,xn)[0]||k.prev(this._element,xn)[0]||k.findOne(xn,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return Dl}static get DefaultType(){return Vl}static get NAME(){return Jo}toggle(){return this._isShown()?this.hide():this.show()}show(){if(M(this._element)||this._isShown())return;const t={relatedTarget:this._element};if(!g.trigger(this._element,kl,t).defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest(".navbar-nav"))for(const o of[].concat(...document.body.children))g.on(o,"mouseover",U);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(ht),this._element.classList.add(ht),g.trigger(this._element,$l,t)}}hide(){if(M(this._element)||!this._isShown())return;const t={relatedTarget:this._element};this._completeHide(t)}dispose(){this._popper&&this._popper.destroy(),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_completeHide(t){if(!g.trigger(this._element,_l,t).defaultPrevented){if("ontouchstart"in document.documentElement)for(const o of[].concat(...document.body.children))g.off(o,"mouseover",U);this._popper&&this._popper.destroy(),this._menu.classList.remove(ht),this._element.classList.remove(ht),this._element.setAttribute("aria-expanded","false"),Ne.removeDataAttribute(this._menu,"popper"),g.trigger(this._element,Cl,t)}}_getConfig(t){if(typeof(t=super._getConfig(t)).reference=="object"&&!E(t.reference)&&typeof t.reference.getBoundingClientRect!="function")throw new TypeError(`${Jo.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return t}_createPopper(){if(Qo===void 0)throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org/docs/v2/)");let t=this._element;this._config.reference==="parent"?t=this._parent:E(this._config.reference)?t=B(this._config.reference):typeof this._config.reference=="object"&&(t=this._config.reference);const o=this._getPopperConfig();this._popper=Ai(t,this._menu,o)}_isShown(){return this._menu.classList.contains(ht)}_getPlacement(){const t=this._parent;if(t.classList.contains("dropend"))return Ol;if(t.classList.contains("dropstart"))return Bl;if(t.classList.contains("dropup-center"))return"top";if(t.classList.contains("dropdown-center"))return"bottom";const o=getComputedStyle(this._menu).getPropertyValue("--bs-position").trim()==="end";return t.classList.contains("dropup")?o?Nl:Sl:o?Al:Tl}_detectNavbar(){return this._element.closest(".navbar")!==null}_getOffset(){const{offset:t}=this._config;return typeof t=="string"?t.split(",").map(o=>Number.parseInt(o,10)):typeof t=="function"?o=>t(o,this._element):t}_getPopperConfig(){const t={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return(this._inNavbar||this._config.display==="static")&&(Ne.setDataAttribute(this._menu,"popper","static"),t.modifiers=[{name:"applyStyles",enabled:!1}]),{...t,...K(this._config.popperConfig,[void 0,t])}}_selectMenuItem({key:t,target:o}){const a=k.find(".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",this._menu).filter(f=>x(f));a.length&&Se(a,o,t===Zo,!a.includes(o)).focus()}static jQueryInterface(t){return this.each(function(){const o=ye.getOrCreateInstance(this,t);if(typeof t=="string"){if(o[t]===void 0)throw new TypeError(`No method named "${t}"`);o[t]()}})}static clearMenus(t){if(t.button===2||t.type==="keyup"&&t.key!=="Tab")return;const o=k.find(wl);for(const a of o){const f=ye.getInstance(a);if(!f||f._config.autoClose===!1)continue;const p=t.composedPath(),h=p.includes(f._menu);if(p.includes(f._element)||f._config.autoClose==="inside"&&!h||f._config.autoClose==="outside"&&h||f._menu.contains(t.target)&&(t.type==="keyup"&&t.key==="Tab"||/input|select|option|textarea|form/i.test(t.target.tagName)))continue;const m={relatedTarget:f._element};t.type==="click"&&(m.clickEvent=t),f._completeHide(m)}}static dataApiKeydownHandler(t){const o=/input|textarea/i.test(t.target.tagName),a=t.key==="Escape",f=[yl,Zo].includes(t.key);if(!f&&!a||o&&!a)return;t.preventDefault();const p=this.matches(xe)?this:k.prev(this,xe)[0]||k.next(this,xe)[0]||k.findOne(xe,t.delegateTarget.parentNode),h=ye.getOrCreateInstance(p);if(f)return t.stopPropagation(),h.show(),void h._selectMenuItem(t);h._isShown()&&(t.stopPropagation(),h.hide(),p.focus())}}g.on(document,ts,xe,ye.dataApiKeydownHandler),g.on(document,ts,xn,ye.dataApiKeydownHandler),g.on(document,es,ye.clearMenus),g.on(document,El,ye.clearMenus),g.on(document,es,xe,function(s){s.preventDefault(),ye.getOrCreateInstance(this).toggle()}),Y(ye);const ns="backdrop",is="show",os=`mousedown.bs.${ns}`,Ml={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},zl={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};class ss extends bn{constructor(t){super(),this._config=this._getConfig(t),this._isAppended=!1,this._element=null}static get Default(){return Ml}static get DefaultType(){return zl}static get NAME(){return ns}show(t){if(!this._config.isVisible)return void K(t);this._append();const o=this._getElement();this._config.isAnimated&&ie(o),o.classList.add(is),this._emulateAnimation(()=>{K(t)})}hide(t){this._config.isVisible?(this._getElement().classList.remove(is),this._emulateAnimation(()=>{this.dispose(),K(t)})):K(t)}dispose(){this._isAppended&&(g.off(this._element,os),this._element.remove(),this._isAppended=!1)}_getElement(){if(!this._element){const t=document.createElement("div");t.className=this._config.className,this._config.isAnimated&&t.classList.add("fade"),this._element=t}return this._element}_configAfterMerge(t){return t.rootElement=B(t.rootElement),t}_append(){if(this._isAppended)return;const t=this._getElement();this._config.rootElement.append(t),g.on(t,os,()=>{K(this._config.clickCallback)}),this._isAppended=!0}_emulateAnimation(t){Ze(t,this._getElement(),this._config.isAnimated)}}const qn=".bs.focustrap",Ll=`focusin${qn}`,Il=`keydown.tab${qn}`,rs="backward",Fl={autofocus:!0,trapElement:null},Pl={autofocus:"boolean",trapElement:"element"};class ls extends bn{constructor(t){super(),this._config=this._getConfig(t),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return Fl}static get DefaultType(){return Pl}static get NAME(){return"focustrap"}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),g.off(document,qn),g.on(document,Ll,t=>this._handleFocusin(t)),g.on(document,Il,t=>this._handleKeydown(t)),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,g.off(document,qn))}_handleFocusin(t){const{trapElement:o}=this._config;if(t.target===document||t.target===o||o.contains(t.target))return;const a=k.focusableChildren(o);a.length===0?o.focus():this._lastTabNavDirection===rs?a[a.length-1].focus():a[0].focus()}_handleKeydown(t){t.key==="Tab"&&(this._lastTabNavDirection=t.shiftKey?rs:"forward")}}const as=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",cs=".sticky-top",Hn="padding-right",ds="margin-right";class Bi{constructor(){this._element=document.body}getWidth(){const t=document.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}hide(){const t=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,Hn,o=>o+t),this._setElementAttributes(as,Hn,o=>o+t),this._setElementAttributes(cs,ds,o=>o-t)}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,Hn),this._resetElementAttributes(as,Hn),this._resetElementAttributes(cs,ds)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(t,o,a){const f=this.getWidth();this._applyManipulationCallback(t,p=>{if(p!==this._element&&window.innerWidth>p.clientWidth+f)return;this._saveInitialAttribute(p,o);const h=window.getComputedStyle(p).getPropertyValue(o);p.style.setProperty(o,`${a(Number.parseFloat(h))}px`)})}_saveInitialAttribute(t,o){const a=t.style.getPropertyValue(o);a&&Ne.setDataAttribute(t,o,a)}_resetElementAttributes(t,o){this._applyManipulationCallback(t,a=>{const f=Ne.getDataAttribute(a,o);f!==null?(Ne.removeDataAttribute(a,o),a.style.setProperty(o,f)):a.style.removeProperty(o)})}_applyManipulationCallback(t,o){if(E(t))o(t);else for(const a of k.find(t,this._element))o(a)}}const fe=".bs.modal",Wl=`hide${fe}`,jl=`hidePrevented${fe}`,us=`hidden${fe}`,fs=`show${fe}`,Rl=`shown${fe}`,xl=`resize${fe}`,ql=`click.dismiss${fe}`,Hl=`mousedown.dismiss${fe}`,Ul=`keydown.dismiss${fe}`,Yl=`click${fe}.data-api`,ps="modal-open",hs="show",Di="modal-static",Xl={backdrop:!0,focus:!0,keyboard:!0},Kl={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"};class qe extends be{constructor(t,o){super(t,o),this._dialog=k.findOne(".modal-dialog",this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new Bi,this._addEventListeners()}static get Default(){return Xl}static get DefaultType(){return Kl}static get NAME(){return"modal"}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){this._isShown||this._isTransitioning||g.trigger(this._element,fs,{relatedTarget:t}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(ps),this._adjustDialog(),this._backdrop.show(()=>this._showElement(t)))}hide(){this._isShown&&!this._isTransitioning&&(g.trigger(this._element,Wl).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(hs),this._queueCallback(()=>this._hideModal(),this._element,this._isAnimated())))}dispose(){g.off(window,fe),g.off(this._dialog,fe),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new ss({isVisible:!!this._config.backdrop,isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new ls({trapElement:this._element})}_showElement(t){document.body.contains(this._element)||document.body.append(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.scrollTop=0;const o=k.findOne(".modal-body",this._dialog);o&&(o.scrollTop=0),ie(this._element),this._element.classList.add(hs),this._queueCallback(()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,g.trigger(this._element,Rl,{relatedTarget:t})},this._dialog,this._isAnimated())}_addEventListeners(){g.on(this._element,Ul,t=>{t.key==="Escape"&&(this._config.keyboard?this.hide():this._triggerBackdropTransition())}),g.on(window,xl,()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()}),g.on(this._element,Hl,t=>{g.one(this._element,ql,o=>{this._element===t.target&&this._element===o.target&&(this._config.backdrop!=="static"?this._config.backdrop&&this.hide():this._triggerBackdropTransition())})})}_hideModal(){this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._isTransitioning=!1,this._backdrop.hide(()=>{document.body.classList.remove(ps),this._resetAdjustments(),this._scrollBar.reset(),g.trigger(this._element,us)})}_isAnimated(){return this._element.classList.contains("fade")}_triggerBackdropTransition(){if(g.trigger(this._element,jl).defaultPrevented)return;const t=this._element.scrollHeight>document.documentElement.clientHeight,o=this._element.style.overflowY;o==="hidden"||this._element.classList.contains(Di)||(t||(this._element.style.overflowY="hidden"),this._element.classList.add(Di),this._queueCallback(()=>{this._element.classList.remove(Di),this._queueCallback(()=>{this._element.style.overflowY=o},this._dialog)},this._dialog),this._element.focus())}_adjustDialog(){const t=this._element.scrollHeight>document.documentElement.clientHeight,o=this._scrollBar.getWidth(),a=o>0;if(a&&!t){const f=q()?"paddingLeft":"paddingRight";this._element.style[f]=`${o}px`}if(!a&&t){const f=q()?"paddingRight":"paddingLeft";this._element.style[f]=`${o}px`}}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(t,o){return this.each(function(){const a=qe.getOrCreateInstance(this,t);if(typeof t=="string"){if(a[t]===void 0)throw new TypeError(`No method named "${t}"`);a[t](o)}})}}g.on(document,Yl,'[data-bs-toggle="modal"]',function(s){const t=k.getElementFromSelector(this);["A","AREA"].includes(this.tagName)&&s.preventDefault(),g.one(t,fs,a=>{a.defaultPrevented||g.one(t,us,()=>{x(this)&&this.focus()})});const o=k.findOne(".modal.show");o&&qe.getInstance(o).hide(),qe.getOrCreateInstance(t).toggle(this)}),Dn(qe),Y(qe);const Ae=".bs.offcanvas",ms=".data-api",Gl=`load${Ae}${ms}`,gs="show",vs="showing",bs="hiding",ys=".offcanvas.show",Ql=`show${Ae}`,Jl=`shown${Ae}`,Zl=`hide${Ae}`,_s=`hidePrevented${Ae}`,Cs=`hidden${Ae}`,ea=`resize${Ae}`,ta=`click${Ae}${ms}`,na=`keydown.dismiss${Ae}`,ia={backdrop:!0,keyboard:!0,scroll:!1},oa={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"};class Oe extends be{constructor(t,o){super(t,o),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return ia}static get DefaultType(){return oa}static get NAME(){return"offcanvas"}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){this._isShown||g.trigger(this._element,Ql,{relatedTarget:t}).defaultPrevented||(this._isShown=!0,this._backdrop.show(),this._config.scroll||new Bi().hide(),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(vs),this._queueCallback(()=>{this._config.scroll&&!this._config.backdrop||this._focustrap.activate(),this._element.classList.add(gs),this._element.classList.remove(vs),g.trigger(this._element,Jl,{relatedTarget:t})},this._element,!0))}hide(){this._isShown&&(g.trigger(this._element,Zl).defaultPrevented||(this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add(bs),this._backdrop.hide(),this._queueCallback(()=>{this._element.classList.remove(gs,bs),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||new Bi().reset(),g.trigger(this._element,Cs)},this._element,!0)))}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){const t=!!this._config.backdrop;return new ss({className:"offcanvas-backdrop",isVisible:t,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:t?()=>{this._config.backdrop!=="static"?this.hide():g.trigger(this._element,_s)}:null})}_initializeFocusTrap(){return new ls({trapElement:this._element})}_addEventListeners(){g.on(this._element,na,t=>{t.key==="Escape"&&(this._config.keyboard?this.hide():g.trigger(this._element,_s))})}static jQueryInterface(t){return this.each(function(){const o=Oe.getOrCreateInstance(this,t);if(typeof t=="string"){if(o[t]===void 0||t.startsWith("_")||t==="constructor")throw new TypeError(`No method named "${t}"`);o[t](this)}})}}g.on(document,ta,'[data-bs-toggle="offcanvas"]',function(s){const t=k.getElementFromSelector(this);if(["A","AREA"].includes(this.tagName)&&s.preventDefault(),M(this))return;g.one(t,Cs,()=>{x(this)&&this.focus()});const o=k.findOne(ys);o&&o!==t&&Oe.getInstance(o).hide(),Oe.getOrCreateInstance(t).toggle(this)}),g.on(window,Gl,()=>{for(const s of k.find(ys))Oe.getOrCreateInstance(s).show()}),g.on(window,ea,()=>{for(const s of k.find("[aria-modal][class*=show][class*=offcanvas-]"))getComputedStyle(s).position!=="fixed"&&Oe.getOrCreateInstance(s).hide()}),Dn(Oe),Y(Oe);const ks={"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],dd:[],div:[],dl:[],dt:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","srcset","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},sa=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),ra=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,la=(s,t)=>{const o=s.nodeName.toLowerCase();return t.includes(o)?!sa.has(o)||!!ra.test(s.nodeValue):t.filter(a=>a instanceof RegExp).some(a=>a.test(o))},aa={allowList:ks,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"<div></div>"},ca={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},da={entry:"(string|element|function|null)",selector:"(string|element)"};class ua extends bn{constructor(t){super(),this._config=this._getConfig(t)}static get Default(){return aa}static get DefaultType(){return ca}static get NAME(){return"TemplateFactory"}getContent(){return Object.values(this._config.content).map(t=>this._resolvePossibleFunction(t)).filter(Boolean)}hasContent(){return this.getContent().length>0}changeContent(t){return this._checkContent(t),this._config.content={...this._config.content,...t},this}toHtml(){const t=document.createElement("div");t.innerHTML=this._maybeSanitize(this._config.template);for(const[f,p]of Object.entries(this._config.content))this._setContent(t,p,f);const o=t.children[0],a=this._resolvePossibleFunction(this._config.extraClass);return a&&o.classList.add(...a.split(" ")),o}_typeCheckConfig(t){super._typeCheckConfig(t),this._checkContent(t.content)}_checkContent(t){for(const[o,a]of Object.entries(t))super._typeCheckConfig({selector:o,entry:a},da)}_setContent(t,o,a){const f=k.findOne(a,t);f&&((o=this._resolvePossibleFunction(o))?E(o)?this._putElementInTemplate(B(o),f):this._config.html?f.innerHTML=this._maybeSanitize(o):f.textContent=o:f.remove())}_maybeSanitize(t){return this._config.sanitize?(function(o,a,f){if(!o.length)return o;if(f&&typeof f=="function")return f(o);const p=new window.DOMParser().parseFromString(o,"text/html"),h=[].concat(...p.body.querySelectorAll("*"));for(const m of h){const b=m.nodeName.toLowerCase();if(!Object.keys(a).includes(b)){m.remove();continue}const _=[].concat(...m.attributes),C=[].concat(a["*"]||[],a[b]||[]);for(const y of _)la(y,C)||m.removeAttribute(y.nodeName)}return p.body.innerHTML})(t,this._config.allowList,this._config.sanitizeFn):t}_resolvePossibleFunction(t){return K(t,[void 0,this])}_putElementInTemplate(t,o){if(this._config.html)return o.innerHTML="",void o.append(t);o.textContent=t.textContent}}const fa=new Set(["sanitize","allowList","sanitizeFn"]),Vi="fade",Un="show",pa=".tooltip-inner",$s=".modal",Es="hide.bs.modal",Sn="hover",Mi="focus",zi="click",ha={AUTO:"auto",TOP:"top",RIGHT:q()?"left":"right",BOTTOM:"bottom",LEFT:q()?"right":"left"},ma={allowList:ks,animation:!0,boundary:"clippingParents",container:!1,customClass:"",delay:0,fallbackPlacements:["top","right","bottom","left"],html:!1,offset:[0,6],placement:"top",popperConfig:null,sanitize:!0,sanitizeFn:null,selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',title:"",trigger:"hover focus"},ga={allowList:"object",animation:"boolean",boundary:"(string|element)",container:"(string|element|boolean)",customClass:"(string|function)",delay:"(number|object)",fallbackPlacements:"array",html:"boolean",offset:"(array|string|function)",placement:"(string|function)",popperConfig:"(null|object|function)",sanitize:"boolean",sanitizeFn:"(null|function)",selector:"(string|boolean)",template:"string",title:"(string|element|function)",trigger:"string"};class He extends be{constructor(t,o){if(Qo===void 0)throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org/docs/v2/)");super(t,o),this._isEnabled=!0,this._timeout=0,this._isHovered=null,this._activeTrigger={},this._popper=null,this._templateFactory=null,this._newContent=null,this.tip=null,this._setListeners(),this._config.selector||this._fixTitle()}static get Default(){return ma}static get DefaultType(){return ga}static get NAME(){return"tooltip"}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(){this._isEnabled&&(this._isShown()?this._leave():this._enter())}dispose(){clearTimeout(this._timeout),g.off(this._element.closest($s),Es,this._hideModalHandler),this._element.getAttribute("data-bs-original-title")&&this._element.setAttribute("title",this._element.getAttribute("data-bs-original-title")),this._disposePopper(),super.dispose()}show(){if(this._element.style.display==="none")throw new Error("Please use show on visible elements");if(!this._isWithContent()||!this._isEnabled)return;const t=g.trigger(this._element,this.constructor.eventName("show")),o=(Q(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(t.defaultPrevented||!o)return;this._disposePopper();const a=this._getTipElement();this._element.setAttribute("aria-describedby",a.getAttribute("id"));const{container:f}=this._config;if(this._element.ownerDocument.documentElement.contains(this.tip)||(f.append(a),g.trigger(this._element,this.constructor.eventName("inserted"))),this._popper=this._createPopper(a),a.classList.add(Un),"ontouchstart"in document.documentElement)for(const p of[].concat(...document.body.children))g.on(p,"mouseover",U);this._queueCallback(()=>{g.trigger(this._element,this.constructor.eventName("shown")),this._isHovered===!1&&this._leave(),this._isHovered=!1},this.tip,this._isAnimated())}hide(){if(this._isShown()&&!g.trigger(this._element,this.constructor.eventName("hide")).defaultPrevented){if(this._getTipElement().classList.remove(Un),"ontouchstart"in document.documentElement)for(const t of[].concat(...document.body.children))g.off(t,"mouseover",U);this._activeTrigger[zi]=!1,this._activeTrigger[Mi]=!1,this._activeTrigger[Sn]=!1,this._isHovered=null,this._queueCallback(()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute("aria-describedby"),g.trigger(this._element,this.constructor.eventName("hidden")))},this.tip,this._isAnimated())}}update(){this._popper&&this._popper.update()}_isWithContent(){return!!this._getTitle()}_getTipElement(){return this.tip||(this.tip=this._createTipElement(this._newContent||this._getContentForTemplate())),this.tip}_createTipElement(t){const o=this._getTemplateFactory(t).toHtml();if(!o)return null;o.classList.remove(Vi,Un),o.classList.add(`bs-${this.constructor.NAME}-auto`);const a=(f=>{do f+=Math.floor(1e6*Math.random());while(document.getElementById(f));return f})(this.constructor.NAME).toString();return o.setAttribute("id",a),this._isAnimated()&&o.classList.add(Vi),o}setContent(t){this._newContent=t,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(t){return this._templateFactory?this._templateFactory.changeContent(t):this._templateFactory=new ua({...this._config,content:t,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{[pa]:this._getTitle()}}_getTitle(){return this._resolvePossibleFunction(this._config.title)||this._element.getAttribute("data-bs-original-title")}_initializeOnDelegatedTarget(t){return this.constructor.getOrCreateInstance(t.delegateTarget,this._getDelegateConfig())}_isAnimated(){return this._config.animation||this.tip&&this.tip.classList.contains(Vi)}_isShown(){return this.tip&&this.tip.classList.contains(Un)}_createPopper(t){const o=K(this._config.placement,[this,t,this._element]),a=ha[o.toUpperCase()];return Ai(this._element,t,this._getPopperConfig(a))}_getOffset(){const{offset:t}=this._config;return typeof t=="string"?t.split(",").map(o=>Number.parseInt(o,10)):typeof t=="function"?o=>t(o,this._element):t}_resolvePossibleFunction(t){return K(t,[this._element,this._element])}_getPopperConfig(t){const o={placement:t,modifiers:[{name:"flip",options:{fallbackPlacements:this._config.fallbackPlacements}},{name:"offset",options:{offset:this._getOffset()}},{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"arrow",options:{element:`.${this.constructor.NAME}-arrow`}},{name:"preSetPlacement",enabled:!0,phase:"beforeMain",fn:a=>{this._getTipElement().setAttribute("data-popper-placement",a.state.placement)}}]};return{...o,...K(this._config.popperConfig,[void 0,o])}}_setListeners(){const t=this._config.trigger.split(" ");for(const o of t)if(o==="click")g.on(this._element,this.constructor.eventName("click"),this._config.selector,a=>{const f=this._initializeOnDelegatedTarget(a);f._activeTrigger[zi]=!(f._isShown()&&f._activeTrigger[zi]),f.toggle()});else if(o!=="manual"){const a=o===Sn?this.constructor.eventName("mouseenter"):this.constructor.eventName("focusin"),f=o===Sn?this.constructor.eventName("mouseleave"):this.constructor.eventName("focusout");g.on(this._element,a,this._config.selector,p=>{const h=this._initializeOnDelegatedTarget(p);h._activeTrigger[p.type==="focusin"?Mi:Sn]=!0,h._enter()}),g.on(this._element,f,this._config.selector,p=>{const h=this._initializeOnDelegatedTarget(p);h._activeTrigger[p.type==="focusout"?Mi:Sn]=h._element.contains(p.relatedTarget),h._leave()})}this._hideModalHandler=()=>{this._element&&this.hide()},g.on(this._element.closest($s),Es,this._hideModalHandler)}_fixTitle(){const t=this._element.getAttribute("title");t&&(this._element.getAttribute("aria-label")||this._element.textContent.trim()||this._element.setAttribute("aria-label",t),this._element.setAttribute("data-bs-original-title",t),this._element.removeAttribute("title"))}_enter(){this._isShown()||this._isHovered?this._isHovered=!0:(this._isHovered=!0,this._setTimeout(()=>{this._isHovered&&this.show()},this._config.delay.show))}_leave(){this._isWithActiveTrigger()||(this._isHovered=!1,this._setTimeout(()=>{this._isHovered||this.hide()},this._config.delay.hide))}_setTimeout(t,o){clearTimeout(this._timeout),this._timeout=setTimeout(t,o)}_isWithActiveTrigger(){return Object.values(this._activeTrigger).includes(!0)}_getConfig(t){const o=Ne.getDataAttributes(this._element);for(const a of Object.keys(o))fa.has(a)&&delete o[a];return t={...o,...typeof t=="object"&&t?t:{}},t=this._mergeConfigObj(t),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}_configAfterMerge(t){return t.container=t.container===!1?document.body:B(t.container),typeof t.delay=="number"&&(t.delay={show:t.delay,hide:t.delay}),typeof t.title=="number"&&(t.title=t.title.toString()),typeof t.content=="number"&&(t.content=t.content.toString()),t}_getDelegateConfig(){const t={};for(const[o,a]of Object.entries(this._config))this.constructor.Default[o]!==a&&(t[o]=a);return t.selector=!1,t.trigger="manual",t}_disposePopper(){this._popper&&(this._popper.destroy(),this._popper=null),this.tip&&(this.tip.remove(),this.tip=null)}static jQueryInterface(t){return this.each(function(){const o=He.getOrCreateInstance(this,t);if(typeof t=="string"){if(o[t]===void 0)throw new TypeError(`No method named "${t}"`);o[t]()}})}}Y(He);const va=".popover-header",ba=".popover-body",ya={...He.Default,content:"",offset:[0,8],placement:"right",template:'<div class="popover" role="tooltip"><div class="popover-arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>',trigger:"click"},_a={...He.DefaultType,content:"(null|string|element|function)"};class Yn extends He{static get Default(){return ya}static get DefaultType(){return _a}static get NAME(){return"popover"}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{[va]:this._getTitle(),[ba]:this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(t){return this.each(function(){const o=Yn.getOrCreateInstance(this,t);if(typeof t=="string"){if(o[t]===void 0)throw new TypeError(`No method named "${t}"`);o[t]()}})}}Y(Yn);const Li=".bs.scrollspy",Ca=`activate${Li}`,ws=`click${Li}`,ka=`load${Li}.data-api`,mt="active",Ii="[href]",Ss=".nav-link",$a=`${Ss}, .nav-item > ${Ss}, .list-group-item`,Ea={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null,threshold:[.1,.5,1]},wa={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element",threshold:"array"};class Nn extends be{constructor(t,o){super(t,o),this._targetLinks=new Map,this._observableSections=new Map,this._rootElement=getComputedStyle(this._element).overflowY==="visible"?null:this._element,this._activeTarget=null,this._observer=null,this._previousScrollData={visibleEntryTop:0,parentScrollTop:0},this.refresh()}static get Default(){return Ea}static get DefaultType(){return wa}static get NAME(){return"scrollspy"}refresh(){this._initializeTargetsAndObservables(),this._maybeEnableSmoothScroll(),this._observer?this._observer.disconnect():this._observer=this._getNewObserver();for(const t of this._observableSections.values())this._observer.observe(t)}dispose(){this._observer.disconnect(),super.dispose()}_configAfterMerge(t){return t.target=B(t.target)||document.body,t.rootMargin=t.offset?`${t.offset}px 0px -30%`:t.rootMargin,typeof t.threshold=="string"&&(t.threshold=t.threshold.split(",").map(o=>Number.parseFloat(o))),t}_maybeEnableSmoothScroll(){this._config.smoothScroll&&(g.off(this._config.target,ws),g.on(this._config.target,ws,Ii,t=>{const o=this._observableSections.get(t.target.hash);if(o){t.preventDefault();const a=this._rootElement||window,f=o.offsetTop-this._element.offsetTop;if(a.scrollTo)return void a.scrollTo({top:f,behavior:"smooth"});a.scrollTop=f}}))}_getNewObserver(){const t={root:this._rootElement,threshold:this._config.threshold,rootMargin:this._config.rootMargin};return new IntersectionObserver(o=>this._observerCallback(o),t)}_observerCallback(t){const o=h=>this._targetLinks.get(`#${h.target.id}`),a=h=>{this._previousScrollData.visibleEntryTop=h.target.offsetTop,this._process(o(h))},f=(this._rootElement||document.documentElement).scrollTop,p=f>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=f;for(const h of t){if(!h.isIntersecting){this._activeTarget=null,this._clearActiveClass(o(h));continue}const m=h.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(p&&m){if(a(h),!f)return}else p||m||a(h)}}_initializeTargetsAndObservables(){this._targetLinks=new Map,this._observableSections=new Map;const t=k.find(Ii,this._config.target);for(const o of t){if(!o.hash||M(o))continue;const a=k.findOne(decodeURI(o.hash),this._element);x(a)&&(this._targetLinks.set(decodeURI(o.hash),o),this._observableSections.set(o.hash,a))}}_process(t){this._activeTarget!==t&&(this._clearActiveClass(this._config.target),this._activeTarget=t,t.classList.add(mt),this._activateParents(t),g.trigger(this._element,Ca,{relatedTarget:t}))}_activateParents(t){if(t.classList.contains("dropdown-item"))k.findOne(".dropdown-toggle",t.closest(".dropdown")).classList.add(mt);else for(const o of k.parents(t,".nav, .list-group"))for(const a of k.prev(o,$a))a.classList.add(mt)}_clearActiveClass(t){t.classList.remove(mt);const o=k.find(`${Ii}.${mt}`,t);for(const a of o)a.classList.remove(mt)}static jQueryInterface(t){return this.each(function(){const o=Nn.getOrCreateInstance(this,t);if(typeof t=="string"){if(o[t]===void 0||t.startsWith("_")||t==="constructor")throw new TypeError(`No method named "${t}"`);o[t]()}})}}g.on(window,ka,()=>{for(const s of k.find('[data-bs-spy="scroll"]'))Nn.getOrCreateInstance(s)}),Y(Nn);const Ue=".bs.tab",Sa=`hide${Ue}`,Na=`hidden${Ue}`,Ta=`show${Ue}`,Aa=`shown${Ue}`,Oa=`click${Ue}`,Ba=`keydown${Ue}`,Da=`load${Ue}`,Va="ArrowLeft",Ns="ArrowRight",Ma="ArrowUp",Ts="ArrowDown",Fi="Home",As="End",Ye="active",Os="fade",Pi="show",Bs=".dropdown-toggle",Wi=`:not(${Bs})`,Ds='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',ji=`.nav-link${Wi}, .list-group-item${Wi}, [role="tab"]${Wi}, ${Ds}`,za=`.${Ye}[data-bs-toggle="tab"], .${Ye}[data-bs-toggle="pill"], .${Ye}[data-bs-toggle="list"]`;class Xe extends be{constructor(t){super(t),this._parent=this._element.closest('.list-group, .nav, [role="tablist"]'),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),g.on(this._element,Ba,o=>this._keydown(o)))}static get NAME(){return"tab"}show(){const t=this._element;if(this._elemIsActive(t))return;const o=this._getActiveElem(),a=o?g.trigger(o,Sa,{relatedTarget:t}):null;g.trigger(t,Ta,{relatedTarget:o}).defaultPrevented||a&&a.defaultPrevented||(this._deactivate(o,t),this._activate(t,o))}_activate(t,o){t&&(t.classList.add(Ye),this._activate(k.getElementFromSelector(t)),this._queueCallback(()=>{t.getAttribute("role")==="tab"?(t.removeAttribute("tabindex"),t.setAttribute("aria-selected",!0),this._toggleDropDown(t,!0),g.trigger(t,Aa,{relatedTarget:o})):t.classList.add(Pi)},t,t.classList.contains(Os)))}_deactivate(t,o){t&&(t.classList.remove(Ye),t.blur(),this._deactivate(k.getElementFromSelector(t)),this._queueCallback(()=>{t.getAttribute("role")==="tab"?(t.setAttribute("aria-selected",!1),t.setAttribute("tabindex","-1"),this._toggleDropDown(t,!1),g.trigger(t,Na,{relatedTarget:o})):t.classList.remove(Pi)},t,t.classList.contains(Os)))}_keydown(t){if(![Va,Ns,Ma,Ts,Fi,As].includes(t.key))return;t.stopPropagation(),t.preventDefault();const o=this._getChildren().filter(f=>!M(f));let a;if([Fi,As].includes(t.key))a=o[t.key===Fi?0:o.length-1];else{const f=[Ns,Ts].includes(t.key);a=Se(o,t.target,f,!0)}a&&(a.focus({preventScroll:!0}),Xe.getOrCreateInstance(a).show())}_getChildren(){return k.find(ji,this._parent)}_getActiveElem(){return this._getChildren().find(t=>this._elemIsActive(t))||null}_setInitialAttributes(t,o){this._setAttributeIfNotExists(t,"role","tablist");for(const a of o)this._setInitialAttributesOnChild(a)}_setInitialAttributesOnChild(t){t=this._getInnerElement(t);const o=this._elemIsActive(t),a=this._getOuterElement(t);t.setAttribute("aria-selected",o),a!==t&&this._setAttributeIfNotExists(a,"role","presentation"),o||t.setAttribute("tabindex","-1"),this._setAttributeIfNotExists(t,"role","tab"),this._setInitialAttributesOnTargetPanel(t)}_setInitialAttributesOnTargetPanel(t){const o=k.getElementFromSelector(t);o&&(this._setAttributeIfNotExists(o,"role","tabpanel"),t.id&&this._setAttributeIfNotExists(o,"aria-labelledby",`${t.id}`))}_toggleDropDown(t,o){const a=this._getOuterElement(t);if(!a.classList.contains("dropdown"))return;const f=(p,h)=>{const m=k.findOne(p,a);m&&m.classList.toggle(h,o)};f(Bs,Ye),f(".dropdown-menu",Pi),a.setAttribute("aria-expanded",o)}_setAttributeIfNotExists(t,o,a){t.hasAttribute(o)||t.setAttribute(o,a)}_elemIsActive(t){return t.classList.contains(Ye)}_getInnerElement(t){return t.matches(ji)?t:k.findOne(ji,t)}_getOuterElement(t){return t.closest(".nav-item, .list-group-item")||t}static jQueryInterface(t){return this.each(function(){const o=Xe.getOrCreateInstance(this);if(typeof t=="string"){if(o[t]===void 0||t.startsWith("_")||t==="constructor")throw new TypeError(`No method named "${t}"`);o[t]()}})}}g.on(document,Oa,Ds,function(s){["A","AREA"].includes(this.tagName)&&s.preventDefault(),M(this)||Xe.getOrCreateInstance(this).show()}),g.on(window,Da,()=>{for(const s of k.find(za))Xe.getOrCreateInstance(s)}),Y(Xe);const Ve=".bs.toast",La=`mouseover${Ve}`,Ia=`mouseout${Ve}`,Fa=`focusin${Ve}`,Pa=`focusout${Ve}`,Wa=`hide${Ve}`,ja=`hidden${Ve}`,Ra=`show${Ve}`,xa=`shown${Ve}`,Vs="hide",Xn="show",Kn="showing",qa={animation:"boolean",autohide:"boolean",delay:"number"},Ha={animation:!0,autohide:!0,delay:5e3};class Tn extends be{constructor(t,o){super(t,o),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return Ha}static get DefaultType(){return qa}static get NAME(){return"toast"}show(){g.trigger(this._element,Ra).defaultPrevented||(this._clearTimeout(),this._config.animation&&this._element.classList.add("fade"),this._element.classList.remove(Vs),ie(this._element),this._element.classList.add(Xn,Kn),this._queueCallback(()=>{this._element.classList.remove(Kn),g.trigger(this._element,xa),this._maybeScheduleHide()},this._element,this._config.animation))}hide(){this.isShown()&&(g.trigger(this._element,Wa).defaultPrevented||(this._element.classList.add(Kn),this._queueCallback(()=>{this._element.classList.add(Vs),this._element.classList.remove(Kn,Xn),g.trigger(this._element,ja)},this._element,this._config.animation)))}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(Xn),super.dispose()}isShown(){return this._element.classList.contains(Xn)}_maybeScheduleHide(){this._config.autohide&&(this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout(()=>{this.hide()},this._config.delay)))}_onInteraction(t,o){switch(t.type){case"mouseover":case"mouseout":this._hasMouseInteraction=o;break;case"focusin":case"focusout":this._hasKeyboardInteraction=o}if(o)return void this._clearTimeout();const a=t.relatedTarget;this._element===a||this._element.contains(a)||this._maybeScheduleHide()}_setListeners(){g.on(this._element,La,t=>this._onInteraction(t,!0)),g.on(this._element,Ia,t=>this._onInteraction(t,!1)),g.on(this._element,Fa,t=>this._onInteraction(t,!0)),g.on(this._element,Pa,t=>this._onInteraction(t,!1))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(t){return this.each(function(){const o=Tn.getOrCreateInstance(this,t);if(typeof t=="string"){if(o[t]===void 0)throw new TypeError(`No method named "${t}"`);o[t](this)}})}}return Dn(Tn),Y(Tn),{Alert:yn,Button:_n,Carousel:ot,Collapse:rt,Dropdown:ye,Modal:qe,Offcanvas:Oe,Popover:Yn,ScrollSpy:Nn,Tab:Xe,Toast:Tn,Tooltip:He}})})(ni)),ni.exports}var Wc=Pc();const Ji=Ic(Wc);function cr(e,i=!0){const l=document.getElementById(e);let r=l?.parentElement;for(;r;){const c=(r.getAttribute("class")??"").match(/cl-tab-[0-9]+/);if(c){const u=document.querySelector(`input.${c}`);if(u){u.checked=!0;break}}r=r.parentElement}setTimeout(()=>{i?l?.scrollIntoView({behavior:"smooth"}):l?.scrollIntoView()},0)}let we=null;function mn(){we?.hide(),we=null}function Zi(e,i){mn();const l=document.getElementById(e);if(l){we=new Ji.Modal(l,{backdrop:"static"}),we.value=i,we.id=e,we.show();const r=document.querySelector(`#${e} [autofocus]`);r&&r.focus()}}function ii(e){return Ji.Modal.getInstance(document.getElementById(e))?.value}function jc(e){return we?e?we.id===e&&we._isShown:we._isShown:!1}function dr(e,i=0,l=25){return e?.slice(i*l,i*l+l)??[]}function Rc(e="#invalid"){document.querySelector(e)?.focus()}function ur(e,i=[]){for(const r of i)r.valid=!0;document.querySelector(`#${e} [autofocus]`)?.focus()}function fr(e,i){e&&(e.modelValue=i,e.valid=!0)}function pr(e){const i=document.querySelector(`#${e}`);return i?(document.querySelectorAll(`#${e} input, #${e} .form-control`).forEach(l=>{l.focus(),l.blur()}),i.checkValidity()===!1||document.querySelector(`#${e} :invalid, #${e} .invalid`)?(eo(e),!1):!0):(console.error("can’t find/validate form",e),!1)}async function hr(e){const i=document.getElementById(e);return i?(document.querySelectorAll(`#${e} input, #${e} .form-control`).forEach(l=>{l.focus(),l.blur()}),document.querySelectorAll(`#${e} .ace_editor`).forEach(l=>{l.click()}),new Promise(l=>setTimeout(()=>{if(i.checkValidity()===!1||document.querySelector(`#${e} :invalid, #${e} .invalid`)){eo(e),l(!1);return}l(!0)}))):(console.error("can’t find/validate form",e),Promise.resolve(!1))}function xc(e){document.querySelector(`#${e} [autofocus]`)?.focus()}function eo(e){document.querySelector(`#${e} :invalid, #${e} .invalid`)?.focus()}function qc(e){return e<1024?`${e}B`:e<1024*1024?`${Math.floor(e/1024)}kB`:e<1024*1024*1024?`${Math.floor(e/1024/1024)}MB`:`${Math.floor(e/1024/1024/1024)}GB`}function mr(e){const i=new Intl.DateTimeFormat("en",{year:"numeric"}).format(e),l=new Intl.DateTimeFormat("en",{month:"short"}).format(e);return`${new Intl.DateTimeFormat("en",{day:"2-digit"}).format(e)} ${l} ${i}`}function gr(e,i=!1){const[l,r,c]=[(""+e.getUTCHours()).padStart(2,"0"),(""+e.getUTCMinutes()).padStart(2,"0"),(""+e.getUTCSeconds()).padStart(2,"0")];return i?`${l}:${r}:${c}`:`${l}:${r}`}function Hc(e,i=!1){return`${mr(e)} ${gr(e,i)}`}function Uc(e,i,l=!0,r=!1){let c=i.getTime()-e.getTime();r?c+=1:l?c+=1e3:c+=60*1e3;const u=(""+c%1e3).padStart(3,"0");c=Math.floor(c/1e3);const d=(""+c%60).padStart(2,"0");c=Math.floor(c/60);const v=(""+c%60).padStart(2,"0");c=Math.floor(c/60);const E=(""+c).padStart(2,"0");return r?`${E}:${v}:${d}.${u}`:l?`${E}:${v}:${d}`:`${E}:${v}`}function Yc(e){const i=new Intl.DateTimeFormat("en",{year:"numeric"}).format(e);return`${new Intl.DateTimeFormat("en",{month:"short"}).format(e)} ${i}`}function ri(e,i=0){return e.toLocaleString("en",{minimumFractionDigits:i})}function Xc(e,i,l=2){switch(i){case"EUR":i="€";break;case"USD":i="$";break}return`${i} ${ri(e/10**l,l)}`}function Kc(e,i){return`${ri(e)} - ${ri(i)}`}function vr(e){return`**** **** **** ${e.replace(/ /g,"").substr(-4)}`}function Gc(e,i,l=e.ID_FORM){if(l){if(pr(l)&&!e.submitting)return e.submitting=!0,i().finally(()=>{e.submitting=!1})}else if(!e.submitting)return e.submitting=!0,i().finally(()=>{e.submitting=!1});return Promise.resolve()}function Qc(e,i,l=e.ID_FORM){return e.submitting?Promise.resolve():hr(l).then(r=>{if(r)return e.submitting=!0,i().finally(()=>{e.submitting=!1})})}function yt(e,i){const l=i.split("."),r=l.shift(),c=e[r];return[void 0,null].includes(c)?c:l.length>0?yt(c,l.join(".")):c}function br(e,i,l="ASC",r=!1){if(!e)return[];const c=typeof e=="function"?[...e()]:[...e],u=(d,v)=>d.localeCompare(v,void 0,{ignorePunctuation:!0});return l==="ASC"?c.sort((d,v)=>(d=yt(d,i)??"",v=yt(v,i)??"",typeof d=="string"&&typeof v=="string"?r?u(d.toUpperCase(),v.toUpperCase()):u(d,v):d>v?1:d<v?-1:0)):c.sort((d,v)=>(d=yt(d,i)??"",v=yt(v,i)??"",typeof d=="string"&&typeof v=="string"?r?u(v.toUpperCase(),d.toUpperCase()):u(v,d):d<v?1:d>v?-1:0))}function yr(e,i=0,l="ASC"){return{col:i,order:l,set:function(r,c){const u=this.sort(r,c);this.col=r,this.order=u},get:function(r){return this.col===r?this.order:"NONE"},sorted:[],sorter:e,sort:function(r=this.col,c=this.order){const{sorted:u,sortedOrder:d}=this.sorter(r,c);return this.sorted=u,d}}}function Jc(e,i,l=0,r=()=>0,c=()=>Number.MAX_SAFE_INTEGER){return yr((u,d)=>({sorted:dr(br(e,i[u],d),r(),c()),sortedOrder:d}),l)}function Zc(e,i=500,l="none"){clearTimeout(Js.get(l)),Js.set(l,setTimeout(e,i))}const Js=new Map;function ed(e=3,i=["lorem","ipsum","dolor","sit","amet","consectetur","adipiscing","elit","eiusmod","tempor","incididunt","labore","et","dolore","magna","aliqua"]){let l="";for(let r=0;r<e;r++)l+=" "+i[Math.floor(Math.random()*i.length)];return l.substr(1)}function td(e=3,i=["alpha","beta","gamma","delta","epsilon","zeta","eta","theta","iota","kappa","lambda","omicorn"]){const l=[];for(let r=0;r<e;r++)l.push(i[Math.floor(Math.random()*i.length)]);return l}function nd(e){navigator.clipboard.writeText(e)}function id(e,i=[],l=[],r=!0){const c=[];for(const u of i)if(typeof u=="function")c.push(u());else if(u){const d=u.shift();c.push(d(...u))}for(const u of l)if(typeof u=="function")c.push(u(!1));else if(u){const d=u.shift();c.push(d(u.shift(),!1))}return r?(e.loading=Promise.all(c).finally(()=>{r&&(e.loading=null)}),e.loading):Promise.all(c)}function od(e,i=[],l=[],r=!0){const c=[];for(const u of i)if(typeof u=="function")c.push(u(!0));else if(u){const d=u.shift();c.push(d(!0,...u))}for(const u of l)if(typeof u=="function")c.push(u(!1));else if(u){const d=u.shift();c.push(d(!1,...u))}return r?(e.loading=Promise.all(c).finally(()=>{r&&(e.loading=null)}),e.loading):Promise.all(c)}function sd(e){return new Promise(i=>setTimeout(i,e))}function rd(e){return e}function ld(e){return e}function ad(e){return e}const cd=n.defineComponent({name:"ClBackCancelOk",props:{ok:{type:String,default:"Ok"},back:{type:String,default:"Back"},cancel:{type:String,default:"Cancel"},disabled:{type:Boolean,default:!1},dirty:{type:Boolean,default:!1},hidden:{type:Boolean,default:!1},backHidden:{type:Boolean,default:!1},spinner:{type:Boolean,default:!1}},emits:["ok","cancel"],data(){return{ID_MODAL:"cl-modal-back-cancel-ok"}},methods:{clModalHide:mn,abort:function(){this.dirty?Zi(this.ID_MODAL,{}):this.$emit("cancel")},emit:function(e){mn(),this.$emit(e)}}}),dd={key:0},ud={key:1},fd=["disabled"];function pd(e,i,l,r,c,u){const d=n.resolveComponent("cl-modal"),v=n.resolveComponent("cl-section-main");return n.openBlock(),n.createBlock(v,{class:"cl-back-cancel-ok"},{default:n.withCtx(()=>[n.renderSlot(e.$slots,"default"),n.createElementVNode("div",{class:n.normalizeClass(["cl-spacing-box cl-spacing-medium it-buttons",[e.backHidden?"text-end":"cl-spread"]])},[e.backHidden?n.createCommentVNode("",!0):(n.openBlock(),n.createElementBlock("button",{key:0,type:"button",class:"btn cl-color-secondary it-cancel",onClick:i[0]||(i[0]=E=>e.abort())},[e.dirty?(n.openBlock(),n.createElementBlock("span",dd,n.toDisplayString(e.cancel),1)):(n.openBlock(),n.createElementBlock("span",ud,n.toDisplayString(e.back),1))])),e.hidden?n.createCommentVNode("",!0):(n.openBlock(),n.createElementBlock("button",{key:1,type:"button",class:n.normalizeClass(["btn cl-color-primary it-ok",{"cl-btn-spinner":e.spinner}]),disabled:e.disabled||!e.dirty,onClick:i[1]||(i[1]=E=>e.$emit("ok"))},[n.createElementVNode("span",null,n.toDisplayString(e.ok),1)],10,fd))],2),n.createVNode(d,{id:e.ID_MODAL},{title:n.withCtx(()=>[...i[4]||(i[4]=[n.createTextVNode(" Unsaved changes ",-1)])]),body:n.withCtx(()=>[n.renderSlot(e.$slots,"modal",{},()=>[i[5]||(i[5]=n.createElementVNode("p",null,"There are unsaved changes. Do you want to discard them or continue editing?",-1))])]),"footer-left":n.withCtx(()=>[n.createElementVNode("button",{type:"button",class:"btn cl-color-secondary it-cancel",onClick:i[2]||(i[2]=E=>e.emit("cancel",!0))}," Discard changes ")]),"footer-right":n.withCtx(()=>[n.createElementVNode("button",{type:"button",class:"btn cl-color-primary it-ok",onClick:i[3]||(i[3]=E=>e.clModalHide())}," Continue editing ")]),_:3},8,["id"])]),_:3})}const Ct=$(cd,[["render",pd]]);Ct.install=e=>{e.component(Ct.name??"ClNoName",Ct)};const hd=n.defineComponent({name:"ClCookieBanner",inheritAttrs:!1,props:{id:{type:String,default:void 0},class:{type:String,default:""},local:{type:Boolean,default:!1}},emits:["consent"],data(){return{fade:!1,visible:!0,cookie:"cl_banner_nok"}},computed:{clazz:function(){return(this.fade?" cl-fade-away":"")+(this.class?` ${this.class}`:"")}},created(){for(const e of document?.cookie?.split(/; */)??[]){const[i,l]=e.split("=");if(i===this.cookie&&["-mtm","+mtm"].includes(l)){this.visible=!1;break}}},methods:{accept:function(){document.cookie=this.cookieString("+mtm"),this.hide(),this.$emit("consent")},decline:function(){document.cookie=this.cookieString("-mtm"),this.hide()},cookieString:function(e){return this.local?`${this.cookie}=${e}; max-age=${3600*24*395}; path=/; SameSite=Lax;`:`${this.cookie}=${e}; max-age=${3600*24*395}; domain=.castlabs.com; path=/; SameSite=Lax;`},hide:function(){this.fade=!0,setTimeout(()=>{this.visible=!1},500)}}}),md=["id"],gd={class:"card-body"},vd={class:"cl-spacing-box text-center"};function bd(e,i,l,r,c,u){return e.visible?(n.openBlock(),n.createElementBlock("div",{key:0,id:e.id,class:n.normalizeClass(["card cl-card cl-cookie-banner",e.clazz])},[n.createElementVNode("div",gd,[n.renderSlot(e.$slots,"default",{},()=>[i[2]||(i[2]=n.createElementVNode("p",{class:"cl-p-small"},[n.createTextVNode(" For our services to work, we use essential cookies which we control. We'd also like to include others to analyze how our site is used to help improve it - but only if you accept. Learn more in our "),n.createElementVNode("a",{class:"cl-a-text",href:"https://castlabs.com/privacy-cookie-policy/"},"privacy policy"),n.createTextVNode(". ")],-1))]),n.createElementVNode("div",vd,[n.createElementVNode("button",{type:"button",class:"btn btn-sm cl-color-primary it-ok",onClick:i[0]||(i[0]=d=>e.accept())}," Accept "),n.createElementVNode("button",{type:"button",class:"btn btn-sm cl-color-secondary it-cancel",onClick:i[1]||(i[1]=d=>e.decline())}," Decline ")])])],10,md)):n.createCommentVNode("",!0)}const kt=$(hd,[["render",bd]]);kt.install=e=>{e.component(kt.name??"ClNoName",kt)};const vn={mounted(e,i){let l="";for(const c of["cl-tooltip-primary","cl-tooltip-secondary","cl-tooltip-light","cl-tooltip-dark"])e.classList.contains(c)&&(l+=` ${c}`);const r=new Ji.Tooltip(e,{title:i.value,placement:i.arg,html:!0,trigger:"hover",delay:{show:65,hide:0},template:`<div class="tooltip cl-tooltip${l}" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>`});return e.__tooltipInstance=r,e.addEventListener("show.bs.tooltip",function(){document.querySelectorAll(".cl-tooltip").forEach(u=>u.remove())}),r},unmounted(e){const i=e.__tooltipInstance;if(i){typeof i.dispose=="function"&&i.dispose();const l=document.querySelector(".cl-tooltip");l&&l.remove(),delete e.__tooltipInstance}}},to={mounted(e,i){e.addEventListener("click",function(){const l=typeof i.value=="function"?i.value():i.value;i.value!==""&&navigator.clipboard?.writeText(l),e.classList.add("cl-animation-flash-text"),setTimeout(()=>{e.classList.remove("cl-animation-flash-text")},1500)})}},yd=n.defineComponent({name:"ClCopy",directives:{tooltip:vn,clipboard:to},props:{show:{type:String,default:void 0},copy:{type:String,default:void 0},underline:{type:Boolean,default:!1},code:{type:Boolean,default:!1},unstyled:{type:Boolean,default:!1}},methods:{tooltip:function(){return this.show&&this.contentToCopy()!==this.show?`${this.contentToCopy()}<br><small>Click-to-copy!</small>`:"<small>Click-to-copy!</small>"},contentToCopy:function(){return this.copy??this.$refs.content?.textContent.trim()}}}),_d={key:0,ref:"content",class:"cl-copy"},Cd={ref:"content"};function kd(e,i,l,r,c,u){const d=n.resolveDirective("tooltip"),v=n.resolveDirective("clipboard");return e.unstyled?n.withDirectives((n.openBlock(),n.createElementBlock("span",_d,[e.show?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[n.createTextVNode(n.toDisplayString(e.show),1)],64)):e.$slots.default?n.renderSlot(e.$slots,"default",{key:1}):(n.openBlock(),n.createElementBlock(n.Fragment,{key:2},[n.createTextVNode(n.toDisplayString(e.copy??"?"),1)],64))])),[[d,e.tooltip,"top"],[v,e.contentToCopy]]):e.code?n.withDirectives((n.openBlock(),n.createElementBlock("span",{key:1,class:n.normalizeClass(e.underline?"cl-copy cl-copy-text":"cl-copy cl-copy-transparent")},[n.createElementVNode("code",Cd,[e.show?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[n.createTextVNode(n.toDisplayString(e.show),1)],64)):e.$slots.default?n.renderSlot(e.$slots,"default",{key:1}):(n.openBlock(),n.createElementBlock(n.Fragment,{key:2},[n.createTextVNode(n.toDisplayString(e.copy??"?"),1)],64))],512)],2)),[[d,e.tooltip,"top"],[v,e.contentToCopy]]):n.withDirectives((n.openBlock(),n.createElementBlock("span",{key:2,ref:"content",class:n.normalizeClass(e.underline?"cl-copy cl-copy-text":"cl-copy cl-copy-transparent")},[e.show?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[n.createTextVNode(n.toDisplayString(e.show),1)],64)):e.$slots.default?n.renderSlot(e.$slots,"default",{key:1}):(n.openBlock(),n.createElementBlock(n.Fragment,{key:2},[n.createTextVNode(n.toDisplayString(e.copy??"?"),1)],64))],2)),[[d,e.tooltip,"top"],[v,e.contentToCopy]])}const $t=$(yd,[["render",kd]]);$t.install=e=>{e.component($t.name??"ClNoName",$t)};const $d=n.defineComponent({name:"ClCreditcardNumber",props:{id:{type:String,default:void 0},class:{type:String,default:""},number:{type:String,default:"0000000000000000"},expires:{type:String,default:"MM/YYYY"},expired:{type:Boolean,default:!1}},computed:{clazz:function(){return this.class?` ${this.class}`:""},validText:function(){return this.expired?"expired":"valid until"}},methods:{clFormatCardNumber:vr}}),Ed=["id"];function wd(e,i,l,r,c,u){return n.openBlock(),n.createElementBlock(n.Fragment,null,[n.createElementVNode("code",{id:e.id,class:n.normalizeClass(e.clazz)},n.toDisplayString(e.clFormatCardNumber(e.number)),11,Ed),n.createTextVNode(", "+n.toDisplayString(e.validText)+" ",1),n.createElementVNode("code",null,n.toDisplayString(e.expires),1)],64)}const Et=$($d,[["render",wd]]);Et.install=e=>{e.component(Et.name??"ClNoName",Et)};function Zs(e){e.preventDefault()}const Sd=n.defineComponent({name:"ClDropzone",props:{what:{type:String,default:"a file"},why:{type:String,default:"to add"},accept:{type:String,default:void 0},camera:{type:Boolean,default:!1}},emits:["file","content"],data(){return{$uid:0,dragging:!1}},mounted(){["dragenter","dragover","dragleave","drop"].forEach(e=>{document.body.addEventListener(e,Zs)})},unmounted(){["dragenter","dragover","dragleave","drop"].forEach(e=>{document.body.removeEventListener(e,Zs)})},methods:{browse:function(){const e=document.getElementById(`cl-dropzone-file-${this.$uid}`);if(e&&document.createEvent){const i=document.createEvent("MouseEvents");i.initEvent("click",!0,!1),e.dispatchEvent(i)}},browsed:function(){const i=document.getElementById(`cl-dropzone-file-${this.$uid}`).files??[];i.length>0&&this.loadFile(i[0])},mock:function(e){this.$emit("file",e)},loadFile:function(e){const i=new FileReader,l=this.$emit;l("file",e),i.onload=function(r){l("content",r.target?.result)},i.readAsText(e)},onDrop:function(e){e.dataTransfer&&this.loadFile(e.dataTransfer.files[0]),this.dragging=!1},onDrag:function(e){this.dragging=e}}}),Nd=["id"],Td=["id","accept"];function Ad(e,i,l,r,c,u){return n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["cl-spacing-small",e.dragging?"cl-dragging":""]),onDragover:i[6]||(i[6]=d=>e.onDrag(!0)),onDragleave:i[7]||(i[7]=d=>e.onDrag(!1)),onDrop:i[8]||(i[8]=n.withModifiers((...d)=>e.onDrop&&e.onDrop(...d),["prevent"]))},[e.camera?(n.openBlock(),n.createElementBlock("input",{key:0,id:`cl-dropzone-file-${e.$uid}`,type:"file",accept:"image/*",class:"cl-dropzone-file",capture:"environment",onChange:i[0]||(i[0]=(...d)=>e.browsed&&e.browsed(...d)),tabindex:"-1"},null,40,Nd)):n.createCommentVNode("",!0),n.createElementVNode("input",{id:`cl-dropzone-file-${e.$uid}`,type:"file",accept:e.accept,class:"cl-dropzone-file",onChange:i[1]||(i[1]=(...d)=>e.browsed&&e.browsed(...d)),tabindex:"-1"},null,40,Td),e.camera?(n.openBlock(),n.createElementBlock("div",{key:1,class:"cl-dropzone",onClick:i[3]||(i[3]=d=>e.browse())},[i[9]||(i[9]=n.createElementVNode("i",{class:"fas fa-camera"},null,-1)),i[10]||(i[10]=n.createTextVNode("Use your ",-1)),n.createElementVNode("a",{href:"#",onClick:i[2]||(i[2]=n.withModifiers(()=>{},["prevent"]))},"camera"),n.createTextVNode(" to take a picture "+n.toDisplayString(e.why)+". ",1)])):(n.openBlock(),n.createElementBlock("div",{key:2,class:"cl-dropzone",onClick:i[5]||(i[5]=d=>e.browse())},[i[11]||(i[11]=n.createElementVNode("i",{class:"fas fa-file-upload"},null,-1)),i[12]||(i[12]=n.createTextVNode("Drop or ",-1)),n.createElementVNode("a",{href:"#",onClick:i[4]||(i[4]=n.withModifiers(()=>{},["prevent"]))},"browse"),n.createTextVNode(" "+n.toDisplayString(e.what)+" "+n.toDisplayString(e.why)+". ",1)])),n.renderSlot(e.$slots,"default")],34)}const wt=$(Sd,[["render",Ad]]);wt.install=e=>{e.component(wt.name??"ClNoName",wt)};const Od=n.defineComponent({name:"ClField",inheritAttrs:!1,props:{value:{type:String,default:void 0},type:{type:String,default:"text"},label:{type:String,default:void 0},placeholder:{type:String,default:void 0},class:{type:String,default:""},help:{type:String,default:void 0},error:{type:String,default:void 0},nofeedback:{type:Boolean,default:!1},required:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},autofocus:{type:Boolean,default:!1},autotrim:{type:Boolean,default:!1},prevalidate:{type:Boolean,default:!1},minlength:{type:String,default:void 0},maxlength:{type:String,default:void 0},min:{type:String,default:void 0},max:{type:String,default:void 0},pattern:{type:String,default:void 0}},emits:["valid","invalid","changed","update:modelValue"],data(){return{valid:!0,modelValue:this.value??"",invalidMessage:this.error??"Input invalid.",filePlaceholder:this.placeholder??"Please select ..."}},computed:{clazz:function(){return this.type==="file"?this.class+" cl-file"+(this.valid?"":" invalid"):this.class+" form-control"+(this.valid?"":" invalid")}},watch:{value(e){this.modelValue!==e&&(this.modelValue=e)}},mounted:function(){this.prevalidate&&this.validate()},methods:{runAutotrim:function(){if(this.autotrim||["number"].includes(this.type)){const e=this.$refs.input;e.value=e.value.trim(),this.modelValue=e.value}},focus:function(){this.$nextTick(()=>{this.$refs.input?.focus()})},validate:function(e=!1){if(this.valid=!0,e&&this.runAutotrim(),this.type==="file"&&this.modelValue!==""&&(this.filePlaceholder=this.modelValue.replace(/.*[/\\]/,"")),this.required&&(this.modelValue?.length??0)<=0)this.setInvalid("This field may not be blank.");else switch(this.type){case"number":this.validateNumber();break;case"email":this.validateEMail();break;default:this.validateText()}this.valid&&this.setValid(this.modelValue)},validateSilent:function(){if(this.required&&(this.modelValue?.length??0)<=0)return!1;switch(this.type){case"number":if(!this.validateNumber(!0))return!1;break;case"email":if(!this.validateEMail(!0))return!1;break;default:if(!this.validateText(!0))return!1}return!0},validateText:function(e=!1){const i=Number(this.minlength),l=Number(this.maxlength);return this.minlength&&(this.modelValue?.length??0)<i?(e||this.setInvalid(this.error??`Please enter at least ${i} character`+(i>1?"s.":".")),!1):this.maxlength&&(this.modelValue?.length??0)>l?(e||this.setInvalid(this.error??`Please enter at most ${l} character`+(i>1?"s.":".")),!1):this.pattern&&!new RegExp(this.pattern,"g").test(this.modelValue)?(e||this.setInvalid(this.error),!1):!0},validateNumber:function(e=!1){const i=this.modelValue.trim();if(!/^-?[0-9]*$/.test(i.trim()))return e||this.setInvalid("Please enter a number."),!1;const l=parseInt(i.trim());if(l.toString()!==i)return e||this.setInvalid("Please enter a number."),!1;if(this.min!==void 0&&this.max!==void 0){if(l<parseInt(this.min)||l>parseInt(this.max))return e||this.setInvalid(`Please enter a number between ${this.min} and ${this.max}.`),!1}else if(this.min!==void 0){if(l<parseInt(this.min))return e||this.setInvalid(`Please enter a number >= ${this.min}.`),!1}else if(this.max!==void 0&&l>parseInt(this.max))return e||this.setInvalid(`Please enter a number <= ${this.max}.`),!1;return!0},validateEMail:function(e=!1){return/^[^\s@]+@[^\s@]+\.[^\s@]+[^\s@.]$/.test(this.modelValue)?!0:(e||this.setInvalid("Please enter a valid email address."),!1)},setValid:function(e=""){this.valid=!0,this.modelValue=e,this.$emit("update:modelValue",this.modelValue),this.$emit("valid",this.help??""),this.$emit("changed",this.modelValue)},setInvalid:function(e){this.valid=!1,this.invalidMessage=e??"Input invalid.",this.$emit("update:modelValue",this.modelValue),this.$emit("invalid",this.invalidMessage),this.$emit("changed",this.modelValue)}}}),Bd=["for"],Dd={key:0,class:"required"},Vd=["id","autofocus","disabled","maxlength","minlength","placeholder","required"],Md=["id","autofocus","disabled","required"],zd=["id","autofocus","disabled","min","max","maxlength","minlength","pattern","placeholder","required","type"],Ld=["id","for"],Id={class:"invalid-feedback"},Fd={key:0,class:"valid-feedback"},Pd={key:1,class:"valid-feedback valid-feedback-none"};function Wd(e,i,l,r,c,u){return n.openBlock(),n.createElementBlock(n.Fragment,null,[e.label?(n.openBlock(),n.createElementBlock("label",{key:0,for:e.$uid,class:"form-label"},[n.createTextVNode(n.toDisplayString(e.label),1),e.required?(n.openBlock(),n.createElementBlock("span",Dd,"*")):n.createCommentVNode("",!0)],8,Bd)):n.createCommentVNode("",!0),e.type==="textarea"?n.withDirectives((n.openBlock(),n.createElementBlock("textarea",n.mergeProps({key:1,id:e.$uid},e.$attrs,{ref:"input","onUpdate:modelValue":i[0]||(i[0]=d=>e.modelValue=d),autofocus:e.autofocus,class:e.clazz,disabled:e.disabled,maxlength:e.maxlength,minlength:e.minlength,placeholder:e.placeholder,required:e.required,onBlur:i[1]||(i[1]=d=>e.validate(!0)),onChange:i[2]||(i[2]=d=>e.validate()),onInput:i[3]||(i[3]=d=>e.validate())}),null,16,Vd)),[[n.vModelText,e.modelValue]]):e.type==="select"?n.withDirectives((n.openBlock(),n.createElementBlock("select",n.mergeProps({key:2,id:e.$uid,"onUpdate:modelValue":i[4]||(i[4]=d=>e.modelValue=d),class:["form-select",e.clazz],autofocus:e.autofocus,disabled:e.disabled,required:e.required},e.$attrs,{onBlur:i[5]||(i[5]=d=>e.validate(!0)),onChange:i[6]||(i[6]=d=>e.validate())}),[n.renderSlot(e.$slots,"default")],16,Md)),[[n.vModelSelect,e.modelValue]]):n.withDirectives((n.openBlock(),n.createElementBlock("input",n.mergeProps({key:3,id:e.$uid},e.$attrs,{ref:"input","onUpdate:modelValue":i[7]||(i[7]=d=>e.modelValue=d),autofocus:e.autofocus,class:e.clazz,disabled:e.disabled,min:e.min,max:e.max,maxlength:e.maxlength,minlength:e.minlength,pattern:e.pattern,placeholder:e.placeholder,required:e.required,type:["number"].includes(e.type)?"text":e.type,onBlur:i[8]||(i[8]=d=>e.validate(!0)),onChange:i[9]||(i[9]=d=>e.validate()),onInput:i[10]||(i[10]=d=>e.validate())}),null,16,zd)),[[n.vModelDynamic,e.modelValue]]),e.type==="file"?(n.openBlock(),n.createElementBlock("label",{key:4,id:`${e.$uid}-companion`,for:e.$uid,class:"cl-file-companion"},n.toDisplayString(e.filePlaceholder),9,Ld)):n.createCommentVNode("",!0),e.nofeedback?n.createCommentVNode("",!0):(n.openBlock(),n.createElementBlock(n.Fragment,{key:5},[n.createElementVNode("p",Id,n.toDisplayString(e.invalidMessage),1),e.help?(n.openBlock(),n.createElementBlock("p",Fd,n.toDisplayString(e.help),1)):(n.openBlock(),n.createElementBlock("p",Pd))],64))],64)}const St=$(Od,[["render",Wd]]);St.install=e=>{e.component(St.name??"ClNoName",St)};const jd=n.defineComponent({name:"ClFieldCheck",inheritAttrs:!1,props:{id:{type:String,default:void 0},value:{type:Boolean,default:!1},label:{type:String,default:void 0},class:{type:String,default:""},inline:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},indeterminate:{type:Boolean,default:!1},autofocus:{type:Boolean,default:!1}},emits:["update:modelValue"],data(){return{modelValue:this.value}},computed:{clazz:function(){return`form-check${this.inline?" form-check-inline":""} ${this.class}`}},watch:{value(e){this.modelValue!==e&&(this.modelValue=e)}},methods:{check:function(e=!1){this.modelValue=e,this.$refs.input.checked=e},focus:function(){this.$nextTick(()=>{this.$refs.input.focus()})}}}),Rd=["id","disabled","indeterminate","autofocus"],xd=["for"];function qd(e,i,l,r,c,u){return n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(e.clazz)},[n.withDirectives(n.createElementVNode("input",n.mergeProps({id:e.id??e.$uid,"onUpdate:modelValue":i[0]||(i[0]=d=>e.modelValue=d),class:"form-check-input",type:"checkbox",disabled:e.disabled,indeterminate:e.indeterminate,autofocus:e.autofocus},e.$attrs,{onChange:i[1]||(i[1]=d=>e.$emit("update:modelValue",e.modelValue))}),null,16,Rd),[[n.vModelCheckbox,e.modelValue]]),n.createElementVNode("label",{class:"form-check-label",for:e.id??e.$uid},[n.renderSlot(e.$slots,"default")],8,xd)],2)}const Nt=$(jd,[["render",qd]]);Nt.install=e=>{e.component(Nt.name??"ClNoName",Nt)};const Hd=n.defineComponent({name:"ClFieldGroup",inheritAttrs:!1,props:{id:{type:String,default:void 0},class:{type:String,default:void 0},label:{type:String,default:void 0},help:{type:String,default:void 0},error:{type:String,default:void 0},required:{type:Boolean,default:!1}},data(){return{valid:!0,invalidMessage:this.error??"Input invalid."}},computed:{clazz:function(){return(this.valid?"":" invalid")+(this.class?` ${this.class}`:"")}},methods:{setValid:function(){this.valid=!0,this.invalidMessage="Input invalid."},setInvalid:function(e){this.valid=!1,this.invalidMessage=e??"Input invalid."}}}),Ud={key:0,class:"form-label"},Yd={key:0,class:"required"},Xd=["id"],Kd={class:"invalid-feedback"},Gd={key:1,class:"valid-feedback"};function Qd(e,i,l,r,c,u){return n.openBlock(),n.createElementBlock(n.Fragment,null,[e.label?(n.openBlock(),n.createElementBlock("label",Ud,[n.createTextVNode(n.toDisplayString(e.label),1),e.required?(n.openBlock(),n.createElementBlock("span",Yd,"*")):n.createCommentVNode("",!0)])):n.createCommentVNode("",!0),n.createElementVNode("div",{class:n.normalizeClass(`input-group${e.clazz}`),id:e.id},[n.renderSlot(e.$slots,"default")],10,Xd),n.createElementVNode("p",Kd,n.toDisplayString(e.invalidMessage),1),e.help?(n.openBlock(),n.createElementBlock("p",Gd,n.toDisplayString(e.help),1)):n.createCommentVNode("",!0)],64)}const Tt=$(Hd,[["render",Qd]]);Tt.install=e=>{e.component(Tt.name??"ClNoName",Tt)};const Jd=n.defineComponent({name:"ClHashtag",inheritAttrs:!1,props:{id:{type:String,default:void 0},class:{type:String,default:""},name:{type:String,default:""},primary:{type:Boolean,default:!1},secondary:{type:Boolean,default:!1},derived:{type:Boolean,default:!1}},computed:{clazz:function(){let e="cl-hashtag ";return!this.primary&&!this.secondary?this.class.includes("cl-color")||(e+=" cl-color-ash"):this.primary?e+=" cl-color-red":this.secondary&&(e+=" cl-color-steel"),e+(this.class?` ${this.class}`:"")}}}),Zd={key:0,class:"cl-badge-derived"},eu=["id"],tu=["id"];function nu(e,i,l,r,c,u){return e.derived?(n.openBlock(),n.createElementBlock("span",Zd,[n.createElementVNode("span",{id:e.id,class:n.normalizeClass(e.clazz)},[n.createTextVNode(n.toDisplayString(e.name),1),n.renderSlot(e.$slots,"default")],10,eu)])):(n.openBlock(),n.createElementBlock("span",{key:1,id:e.id,class:n.normalizeClass(e.clazz)},[n.createTextVNode(n.toDisplayString(e.name),1),n.renderSlot(e.$slots,"default")],10,tu))}const At=$(Jd,[["render",nu]]);At.install=e=>{e.component(At.name??"ClNoName",At)};const iu=n.defineComponent({name:"ClIconotron",props:{src:{type:String,default:void 0}}}),ou={class:"container cl-container-iconotron"},su={class:"row"},ru={class:"col-12 col-md-3"},lu=["src"],au={class:"col-12 col-md-9"};function cu(e,i,l,r,c,u){return n.openBlock(),n.createElementBlock("div",ou,[n.createElementVNode("div",su,[n.createElementVNode("div",ru,[n.createElementVNode("img",{src:e.src,alt:""},null,8,lu)]),n.createElementVNode("div",au,[n.renderSlot(e.$slots,"default")])])])}const Ot=$(iu,[["render",cu]]);Ot.install=e=>{e.component(Ot.name??"ClNoName",Ot)};const du=n.defineComponent({name:"ClInfo",directives:{tooltip:vn},props:{bottom:{type:Boolean,default:!1},left:{type:Boolean,default:!1},right:{type:Boolean,default:!1},top:{type:Boolean,default:!0},info:{type:String,default:"Tooltip"},faded:{type:Boolean,default:!0},icon:{type:String,default:"far fa-question-circle"}},computed:{classes:function(){return this.icon+(this.faded?" cl-faded":"")}}});function uu(e,i,l,r,c,u){const d=n.resolveDirective("tooltip");return e.bottom?n.withDirectives((n.openBlock(),n.createElementBlock("i",{key:0,class:n.normalizeClass(e.classes)},null,2)),[[d,e.info,"bottom"]]):e.left?n.withDirectives((n.openBlock(),n.createElementBlock("i",{key:1,class:n.normalizeClass(e.classes)},null,2)),[[d,e.info,"left"]]):e.right?n.withDirectives((n.openBlock(),n.createElementBlock("i",{key:2,class:n.normalizeClass(e.classes)},null,2)),[[d,e.info,"right"]]):n.withDirectives((n.openBlock(),n.createElementBlock("i",{key:3,class:n.normalizeClass(e.classes)},null,2)),[[d,e.info,"top"]])}const Bt=$(du,[["render",uu]]);Bt.install=e=>{e.component(Bt.name??"ClNoName",Bt)};const fu=n.defineComponent({name:"ClLinkExternal",props:{noicon:{type:Boolean,default:!1}}});function pu(e,i,l,r,c,u){return n.openBlock(),n.createElementBlock("a",{class:n.normalizeClass({"cl-a-external":!e.noicon}),target:"_blank",rel:"noopener noreferrer"},[n.renderSlot(e.$slots,"default")],2)}const Dt=$(fu,[["render",pu]]);Dt.install=e=>{e.component(Dt.name??"ClNoName",Dt)};const hu=`
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("vue");function oi(e){var i=typeof e;return e!=null&&(i=="object"||i=="function")}var ec=typeof global=="object"&&global&&global.Object===Object&&global,tc=typeof self=="object"&&self&&self.Object===Object&&self,tr=ec||tc||Function("return this")(),Hi=function(){return tr.Date.now()},nc=/\s/;function ic(e){for(var i=e.length;i--&&nc.test(e.charAt(i)););return i}var oc=/^\s+/;function sc(e){return e&&e.slice(0,ic(e)+1).replace(oc,"")}var si=tr.Symbol,nr=Object.prototype,rc=nr.hasOwnProperty,lc=nr.toString,An=si?si.toStringTag:void 0;function ac(e){var i=rc.call(e,An),l=e[An];try{e[An]=void 0;var r=!0}catch{}var c=lc.call(e);return r&&(i?e[An]=l:delete e[An]),c}var cc=Object.prototype,dc=cc.toString;function uc(e){return dc.call(e)}var fc="[object Null]",pc="[object Undefined]",Us=si?si.toStringTag:void 0;function hc(e){return e==null?e===void 0?pc:fc:Us&&Us in Object(e)?ac(e):uc(e)}function mc(e){return e!=null&&typeof e=="object"}var gc="[object Symbol]";function vc(e){return typeof e=="symbol"||mc(e)&&hc(e)==gc}var Ys=NaN,bc=/^[-+]0x[0-9a-f]+$/i,yc=/^0b[01]+$/i,_c=/^0o[0-7]+$/i,Cc=parseInt;function Xs(e){if(typeof e=="number")return e;if(vc(e))return Ys;if(oi(e)){var i=typeof e.valueOf=="function"?e.valueOf():e;e=oi(i)?i+"":i}if(typeof e!="string")return e===0?e:+e;e=sc(e);var l=yc.test(e);return l||_c.test(e)?Cc(e.slice(2),l?2:8):bc.test(e)?Ys:+e}var kc="Expected a function",$c=Math.max,Ec=Math.min;function ei(e,i,l){var r,c,u,d,v,E,B=0,x=!1,M=!1,Q=!0;if(typeof e!="function")throw new TypeError(kc);i=Xs(i)||0,oi(l)&&(x=!!l.leading,M="maxWait"in l,u=M?$c(Xs(l.maxWait)||0,i):u,Q="trailing"in l?!!l.trailing:Q);function U(j){var ce=r,de=c;return r=c=void 0,B=j,d=e.apply(de,ce),d}function ie(j){return B=j,v=setTimeout(q,i),x?U(j):d}function ve(j){var ce=j-E,de=j-B,et=i-ce;return M?Ec(et,u-de):et}function oe(j){var ce=j-E,de=j-B;return E===void 0||ce>=i||ce<0||M&&de>=u}function q(){var j=Hi();if(oe(j))return Y(j);v=setTimeout(q,ve(j))}function Y(j){return v=void 0,Q&&r?U(j):(r=c=void 0,d)}function K(){v!==void 0&&clearTimeout(v),B=0,r=E=c=v=void 0}function Ze(){return v===void 0?d:Y(Hi())}function Se(){var j=Hi(),ce=oe(j);if(r=arguments,c=this,E=j,ce){if(v===void 0)return ie(E);if(M)return clearTimeout(v),v=setTimeout(q,i),U(E)}return v===void 0&&(v=setTimeout(q,i)),d}return Se.cancel=K,Se.flush=Ze,Se}var wc="Expected a function";function Sc(e,i,l){var r=!0,c=!0;if(typeof e!="function")throw new TypeError(wc);return oi(l)&&(r="leading"in l?!!l.leading:r,c="trailing"in l?!!l.trailing:c),ei(e,i,{leading:r,maxWait:i,trailing:c})}var bt=function(){return bt=Object.assign||function(i){for(var l,r=1,c=arguments.length;r<c;r++){l=arguments[r];for(var u in l)Object.prototype.hasOwnProperty.call(l,u)&&(i[u]=l[u])}return i},bt.apply(this,arguments)};function ir(e){return!e||!e.ownerDocument||!e.ownerDocument.defaultView?window:e.ownerDocument.defaultView}function or(e){return!e||!e.ownerDocument?document:e.ownerDocument}var sr=function(e){var i={},l=Array.prototype.reduce.call(e,function(r,c){var u=c.name.match(/data-simplebar-(.+)/);if(u){var d=u[1].replace(/\W+(.)/g,function(v,E){return E.toUpperCase()});switch(c.value){case"true":r[d]=!0;break;case"false":r[d]=!1;break;case void 0:r[d]=!0;break;default:r[d]=c.value}}return r},i);return l};function rr(e,i){var l;e&&(l=e.classList).add.apply(l,i.split(" "))}function lr(e,i){e&&i.split(" ").forEach(function(l){e.classList.remove(l)})}function ar(e){return".".concat(e.split(" ").join("."))}var Gi=!!(typeof window<"u"&&window.document&&window.document.createElement),Nc=Object.freeze({__proto__:null,addClasses:rr,canUseDOM:Gi,classNamesToQuery:ar,getElementDocument:or,getElementWindow:ir,getOptions:sr,removeClasses:lr}),vt=null,Ks=null;Gi&&window.addEventListener("resize",function(){Ks!==window.devicePixelRatio&&(Ks=window.devicePixelRatio,vt=null)});function Gs(){if(vt===null){if(typeof document>"u")return vt=0,vt;var e=document.body,i=document.createElement("div");i.classList.add("simplebar-hide-scrollbar"),e.appendChild(i);var l=i.getBoundingClientRect().right;e.removeChild(i),vt=l}return vt}var ze=ir,Ui=or,Tc=sr,Le=rr,Ie=lr,ne=ar,ti=(function(){function e(i,l){l===void 0&&(l={});var r=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 c=ze(r.el);r.scrollXTicking||(c.requestAnimationFrame(r.scrollX),r.scrollXTicking=!0),r.scrollYTicking||(c.requestAnimationFrame(r.scrollY),r.scrollYTicking=!0),r.isScrolling||(r.isScrolling=!0,Le(r.el,r.classNames.scrolling)),r.showScrollbar("x"),r.showScrollbar("y"),r.onStopScrolling()},this.scrollX=function(){r.axis.x.isOverflowing&&r.positionScrollbar("x"),r.scrollXTicking=!1},this.scrollY=function(){r.axis.y.isOverflowing&&r.positionScrollbar("y"),r.scrollYTicking=!1},this._onStopScrolling=function(){Ie(r.el,r.classNames.scrolling),r.options.autoHide&&(r.hideScrollbar("x"),r.hideScrollbar("y")),r.isScrolling=!1},this.onMouseEnter=function(){r.isMouseEntering||(Le(r.el,r.classNames.mouseEntered),r.showScrollbar("x"),r.showScrollbar("y"),r.isMouseEntering=!0),r.onMouseEntered()},this._onMouseEntered=function(){Ie(r.el,r.classNames.mouseEntered),r.options.autoHide&&(r.hideScrollbar("x"),r.hideScrollbar("y")),r.isMouseEntering=!1},this._onMouseMove=function(c){r.mouseX=c.clientX,r.mouseY=c.clientY,(r.axis.x.isOverflowing||r.axis.x.forceVisible)&&r.onMouseMoveForAxis("x"),(r.axis.y.isOverflowing||r.axis.y.forceVisible)&&r.onMouseMoveForAxis("y")},this.onMouseLeave=function(){r.onMouseMove.cancel(),(r.axis.x.isOverflowing||r.axis.x.forceVisible)&&r.onMouseLeaveForAxis("x"),(r.axis.y.isOverflowing||r.axis.y.forceVisible)&&r.onMouseLeaveForAxis("y"),r.mouseX=-1,r.mouseY=-1},this._onWindowResize=function(){r.scrollbarWidth=r.getScrollbarWidth(),r.hideNativeScrollbar()},this.onPointerEvent=function(c){if(!(!r.axis.x.track.el||!r.axis.y.track.el||!r.axis.x.scrollbar.el||!r.axis.y.scrollbar.el)){var u,d;r.axis.x.track.rect=r.axis.x.track.el.getBoundingClientRect(),r.axis.y.track.rect=r.axis.y.track.el.getBoundingClientRect(),(r.axis.x.isOverflowing||r.axis.x.forceVisible)&&(u=r.isWithinBounds(r.axis.x.track.rect)),(r.axis.y.isOverflowing||r.axis.y.forceVisible)&&(d=r.isWithinBounds(r.axis.y.track.rect)),(u||d)&&(c.stopPropagation(),c.type==="pointerdown"&&c.pointerType!=="touch"&&(u&&(r.axis.x.scrollbar.rect=r.axis.x.scrollbar.el.getBoundingClientRect(),r.isWithinBounds(r.axis.x.scrollbar.rect)?r.onDragStart(c,"x"):r.onTrackClick(c,"x")),d&&(r.axis.y.scrollbar.rect=r.axis.y.scrollbar.el.getBoundingClientRect(),r.isWithinBounds(r.axis.y.scrollbar.rect)?r.onDragStart(c,"y"):r.onTrackClick(c,"y"))))}},this.drag=function(c){var u,d,v,E,B,x,M,Q,U,ie,ve;if(!(!r.draggedAxis||!r.contentWrapperEl)){var oe,q=r.axis[r.draggedAxis].track,Y=(d=(u=q.rect)===null||u===void 0?void 0:u[r.axis[r.draggedAxis].sizeAttr])!==null&&d!==void 0?d:0,K=r.axis[r.draggedAxis].scrollbar,Ze=(E=(v=r.contentWrapperEl)===null||v===void 0?void 0:v[r.axis[r.draggedAxis].scrollSizeAttr])!==null&&E!==void 0?E:0,Se=parseInt((x=(B=r.elStyles)===null||B===void 0?void 0:B[r.axis[r.draggedAxis].sizeAttr])!==null&&x!==void 0?x:"0px",10);c.preventDefault(),c.stopPropagation(),r.draggedAxis==="y"?oe=c.pageY:oe=c.pageX;var j=oe-((Q=(M=q.rect)===null||M===void 0?void 0:M[r.axis[r.draggedAxis].offsetAttr])!==null&&Q!==void 0?Q:0)-r.axis[r.draggedAxis].dragOffset;j=r.draggedAxis==="x"&&r.isRtl?((ie=(U=q.rect)===null||U===void 0?void 0:U[r.axis[r.draggedAxis].sizeAttr])!==null&&ie!==void 0?ie:0)-K.size-j:j;var ce=j/(Y-K.size),de=ce*(Ze-Se);r.draggedAxis==="x"&&r.isRtl&&(de=!((ve=e.getRtlHelpers())===null||ve===void 0)&&ve.isScrollingToNegative?-de:de),r.contentWrapperEl[r.axis[r.draggedAxis].scrollOffsetAttr]=de}},this.onEndDrag=function(c){r.isDragging=!1;var u=Ui(r.el),d=ze(r.el);c.preventDefault(),c.stopPropagation(),Ie(r.el,r.classNames.dragging),r.onStopScrolling(),u.removeEventListener("mousemove",r.drag,!0),u.removeEventListener("mouseup",r.onEndDrag,!0),r.removePreventClickId=d.setTimeout(function(){u.removeEventListener("click",r.preventClick,!0),u.removeEventListener("dblclick",r.preventClick,!0),r.removePreventClickId=null})},this.preventClick=function(c){c.preventDefault(),c.stopPropagation()},this.el=i,this.options=bt(bt({},e.defaultOptions),l),this.classNames=bt(bt({},e.defaultOptions.classNames),l.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=Sc(this._onMouseMove,64),this.onWindowResize=ei(this._onWindowResize,64,{leading:!0}),this.onStopScrolling=ei(this._onStopScrolling,this.stopScrollDelay),this.onMouseEntered=ei(this._onMouseEntered,this.stopScrollDelay),this.init()}return e.getRtlHelpers=function(){if(e.rtlHelpers)return e.rtlHelpers;var i=document.createElement("div");i.innerHTML='<div class="simplebar-dummy-scrollbar-size"><div></div></div>';var l=i.firstElementChild,r=l?.firstElementChild;if(!r)return null;document.body.appendChild(l),l.scrollLeft=0;var c=e.getOffset(l),u=e.getOffset(r);l.scrollLeft=-999;var d=e.getOffset(r);return document.body.removeChild(l),e.rtlHelpers={isScrollOriginAtZero:c.left!==u.left,isScrollingToNegative:u.left!==d.left},e.rtlHelpers},e.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:Gs()}catch{return Gs()}},e.getOffset=function(i){var l=i.getBoundingClientRect(),r=Ui(i),c=ze(i);return{top:l.top+(c.pageYOffset||r.documentElement.scrollTop),left:l.left+(c.pageXOffset||r.documentElement.scrollLeft)}},e.prototype.init=function(){Gi&&(this.initDOM(),this.rtlHelpers=e.getRtlHelpers(),this.scrollbarWidth=this.getScrollbarWidth(),this.recalculate(),this.initListeners())},e.prototype.initDOM=function(){var i,l;this.wrapperEl=this.el.querySelector(ne(this.classNames.wrapper)),this.contentWrapperEl=this.options.scrollableNode||this.el.querySelector(ne(this.classNames.contentWrapper)),this.contentEl=this.options.contentNode||this.el.querySelector(ne(this.classNames.contentEl)),this.offsetEl=this.el.querySelector(ne(this.classNames.offset)),this.maskEl=this.el.querySelector(ne(this.classNames.mask)),this.placeholderEl=this.findChild(this.wrapperEl,ne(this.classNames.placeholder)),this.heightAutoObserverWrapperEl=this.el.querySelector(ne(this.classNames.heightAutoObserverWrapperEl)),this.heightAutoObserverEl=this.el.querySelector(ne(this.classNames.heightAutoObserverEl)),this.axis.x.track.el=this.findChild(this.el,"".concat(ne(this.classNames.track)).concat(ne(this.classNames.horizontal))),this.axis.y.track.el=this.findChild(this.el,"".concat(ne(this.classNames.track)).concat(ne(this.classNames.vertical))),this.axis.x.scrollbar.el=((i=this.axis.x.track.el)===null||i===void 0?void 0:i.querySelector(ne(this.classNames.scrollbar)))||null,this.axis.y.scrollbar.el=((l=this.axis.y.track.el)===null||l===void 0?void 0:l.querySelector(ne(this.classNames.scrollbar)))||null,this.options.autoHide||(Le(this.axis.x.scrollbar.el,this.classNames.visible),Le(this.axis.y.scrollbar.el,this.classNames.visible))},e.prototype.initListeners=function(){var i=this,l,r=ze(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),(l=this.contentWrapperEl)===null||l===void 0||l.addEventListener("scroll",this.onScroll),r.addEventListener("resize",this.onWindowResize),!!this.contentEl){if(window.ResizeObserver){var c=!1,u=r.ResizeObserver||ResizeObserver;this.resizeObserver=new u(function(){c&&r.requestAnimationFrame(function(){i.recalculate()})}),this.resizeObserver.observe(this.el),this.resizeObserver.observe(this.contentEl),r.requestAnimationFrame(function(){c=!0})}this.mutationObserver=new r.MutationObserver(function(){r.requestAnimationFrame(function(){i.recalculate()})}),this.mutationObserver.observe(this.contentEl,{childList:!0,subtree:!0,characterData:!0})}},e.prototype.recalculate=function(){if(!(!this.heightAutoObserverEl||!this.contentEl||!this.contentWrapperEl||!this.wrapperEl||!this.placeholderEl)){var i=ze(this.el);this.elStyles=i.getComputedStyle(this.el),this.isRtl=this.elStyles.direction==="rtl";var l=this.contentEl.offsetWidth,r=this.heightAutoObserverEl.offsetHeight<=1,c=this.heightAutoObserverEl.offsetWidth<=1||l>0,u=this.contentWrapperEl.offsetWidth,d=this.elStyles.overflowX,v=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 E=this.contentEl.scrollHeight,B=this.contentEl.scrollWidth;this.contentWrapperEl.style.height=r?"auto":"100%",this.placeholderEl.style.width=c?"".concat(l||B,"px"):"auto",this.placeholderEl.style.height="".concat(E,"px");var x=this.contentWrapperEl.offsetHeight;this.axis.x.isOverflowing=l!==0&&B>l,this.axis.y.isOverflowing=E>x,this.axis.x.isOverflowing=d==="hidden"?!1:this.axis.x.isOverflowing,this.axis.y.isOverflowing=v==="hidden"?!1: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 M=this.axis.x.isOverflowing?this.scrollbarWidth:0,Q=this.axis.y.isOverflowing?this.scrollbarWidth:0;this.axis.x.isOverflowing=this.axis.x.isOverflowing&&B>u-Q,this.axis.y.isOverflowing=this.axis.y.isOverflowing&&E>x-M,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")}},e.prototype.getScrollbarSize=function(i){var l,r;if(i===void 0&&(i="y"),!this.axis[i].isOverflowing||!this.contentEl)return 0;var c=this.contentEl[this.axis[i].scrollSizeAttr],u=(r=(l=this.axis[i].track.el)===null||l===void 0?void 0:l[this.axis[i].offsetSizeAttr])!==null&&r!==void 0?r:0,d=u/c,v;return v=Math.max(~~(d*u),this.options.scrollbarMinSize),this.options.scrollbarMaxSize&&(v=Math.min(v,this.options.scrollbarMaxSize)),v},e.prototype.positionScrollbar=function(i){var l,r,c;i===void 0&&(i="y");var u=this.axis[i].scrollbar;if(!(!this.axis[i].isOverflowing||!this.contentWrapperEl||!u.el||!this.elStyles)){var d=this.contentWrapperEl[this.axis[i].scrollSizeAttr],v=((l=this.axis[i].track.el)===null||l===void 0?void 0:l[this.axis[i].offsetSizeAttr])||0,E=parseInt(this.elStyles[this.axis[i].sizeAttr],10),B=this.contentWrapperEl[this.axis[i].scrollOffsetAttr];B=i==="x"&&this.isRtl&&(!((r=e.getRtlHelpers())===null||r===void 0)&&r.isScrollOriginAtZero)?-B:B,i==="x"&&this.isRtl&&(B=!((c=e.getRtlHelpers())===null||c===void 0)&&c.isScrollingToNegative?B:-B);var x=B/(d-E),M=~~((v-u.size)*x);M=i==="x"&&this.isRtl?-M+(v-u.size):M,u.el.style.transform=i==="x"?"translate3d(".concat(M,"px, 0, 0)"):"translate3d(0, ".concat(M,"px, 0)")}},e.prototype.toggleTrackVisibility=function(i){i===void 0&&(i="y");var l=this.axis[i].track.el,r=this.axis[i].scrollbar.el;!l||!r||!this.contentWrapperEl||(this.axis[i].isOverflowing||this.axis[i].forceVisible?(l.style.visibility="visible",this.contentWrapperEl.style[this.axis[i].overflowAttr]="scroll",this.el.classList.add("".concat(this.classNames.scrollable,"-").concat(i))):(l.style.visibility="hidden",this.contentWrapperEl.style[this.axis[i].overflowAttr]="hidden",this.el.classList.remove("".concat(this.classNames.scrollable,"-").concat(i))),this.axis[i].isOverflowing?r.style.display="block":r.style.display="none")},e.prototype.showScrollbar=function(i){i===void 0&&(i="y"),this.axis[i].isOverflowing&&!this.axis[i].scrollbar.isVisible&&(Le(this.axis[i].scrollbar.el,this.classNames.visible),this.axis[i].scrollbar.isVisible=!0)},e.prototype.hideScrollbar=function(i){i===void 0&&(i="y"),!this.isDragging&&this.axis[i].isOverflowing&&this.axis[i].scrollbar.isVisible&&(Ie(this.axis[i].scrollbar.el,this.classNames.visible),this.axis[i].scrollbar.isVisible=!1)},e.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")},e.prototype.onMouseMoveForAxis=function(i){i===void 0&&(i="y");var l=this.axis[i];!l.track.el||!l.scrollbar.el||(l.track.rect=l.track.el.getBoundingClientRect(),l.scrollbar.rect=l.scrollbar.el.getBoundingClientRect(),this.isWithinBounds(l.track.rect)?(this.showScrollbar(i),Le(l.track.el,this.classNames.hover),this.isWithinBounds(l.scrollbar.rect)?Le(l.scrollbar.el,this.classNames.hover):Ie(l.scrollbar.el,this.classNames.hover)):(Ie(l.track.el,this.classNames.hover),this.options.autoHide&&this.hideScrollbar(i)))},e.prototype.onMouseLeaveForAxis=function(i){i===void 0&&(i="y"),Ie(this.axis[i].track.el,this.classNames.hover),Ie(this.axis[i].scrollbar.el,this.classNames.hover),this.options.autoHide&&this.hideScrollbar(i)},e.prototype.onDragStart=function(i,l){var r;l===void 0&&(l="y"),this.isDragging=!0;var c=Ui(this.el),u=ze(this.el),d=this.axis[l].scrollbar,v=l==="y"?i.pageY:i.pageX;this.axis[l].dragOffset=v-(((r=d.rect)===null||r===void 0?void 0:r[this.axis[l].offsetAttr])||0),this.draggedAxis=l,Le(this.el,this.classNames.dragging),c.addEventListener("mousemove",this.drag,!0),c.addEventListener("mouseup",this.onEndDrag,!0),this.removePreventClickId===null?(c.addEventListener("click",this.preventClick,!0),c.addEventListener("dblclick",this.preventClick,!0)):(u.clearTimeout(this.removePreventClickId),this.removePreventClickId=null)},e.prototype.onTrackClick=function(i,l){var r=this,c,u,d,v;l===void 0&&(l="y");var E=this.axis[l];if(!(!this.options.clickOnTrack||!E.scrollbar.el||!this.contentWrapperEl)){i.preventDefault();var B=ze(this.el);this.axis[l].scrollbar.rect=E.scrollbar.el.getBoundingClientRect();var x=this.axis[l].scrollbar,M=(u=(c=x.rect)===null||c===void 0?void 0:c[this.axis[l].offsetAttr])!==null&&u!==void 0?u:0,Q=parseInt((v=(d=this.elStyles)===null||d===void 0?void 0:d[this.axis[l].sizeAttr])!==null&&v!==void 0?v:"0px",10),U=this.contentWrapperEl[this.axis[l].scrollOffsetAttr],ie=l==="y"?this.mouseY-M:this.mouseX-M,ve=ie<0?-1:1,oe=ve===-1?U-Q:U+Q,q=40,Y=function(){r.contentWrapperEl&&(ve===-1?U>oe&&(U-=q,r.contentWrapperEl[r.axis[l].scrollOffsetAttr]=U,B.requestAnimationFrame(Y)):U<oe&&(U+=q,r.contentWrapperEl[r.axis[l].scrollOffsetAttr]=U,B.requestAnimationFrame(Y)))};Y()}},e.prototype.getContentElement=function(){return this.contentEl},e.prototype.getScrollElement=function(){return this.contentWrapperEl},e.prototype.removeListeners=function(){var i=ze(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),i.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()},e.prototype.unMount=function(){this.removeListeners()},e.prototype.isWithinBounds=function(i){return this.mouseX>=i.left&&this.mouseX<=i.left+i.width&&this.mouseY>=i.top&&this.mouseY<=i.top+i.height},e.prototype.findChild=function(i,l){var r=i.matches||i.webkitMatchesSelector||i.mozMatchesSelector||i.msMatchesSelector;return Array.prototype.filter.call(i.children,function(c){return r.call(c,l)})[0]},e.rtlHelpers=null,e.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},e.getOptions=Tc,e.helpers=Nc,e})(),Ki=function(e,i){return Ki=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,r){l.__proto__=r}||function(l,r){for(var c in r)Object.prototype.hasOwnProperty.call(r,c)&&(l[c]=r[c])},Ki(e,i)};function Ac(e,i){if(typeof i!="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");Ki(e,i);function l(){this.constructor=e}e.prototype=i===null?Object.create(i):(l.prototype=i.prototype,new l)}var Qi=ti.helpers,Yi=Qi.getOptions,ge=Qi.addClasses,Oc=Qi.canUseDOM,Bc=(function(e){Ac(i,e);function i(){for(var l=[],r=0;r<arguments.length;r++)l[r]=arguments[r];var c=e.apply(this,l)||this;return i.instances.set(l[0],c),c}return i.initDOMLoadedElements=function(){document.removeEventListener("DOMContentLoaded",this.initDOMLoadedElements),window.removeEventListener("load",this.initDOMLoadedElements),Array.prototype.forEach.call(document.querySelectorAll("[data-simplebar]"),function(l){l.getAttribute("data-simplebar")!=="init"&&!i.instances.has(l)&&new i(l,Yi(l.attributes))})},i.removeObserver=function(){var l;(l=i.globalObserver)===null||l===void 0||l.disconnect()},i.prototype.initDOM=function(){var l=this,r,c,u;if(!Array.prototype.filter.call(this.el.children,function(E){return E.classList.contains(l.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"),ge(this.wrapperEl,this.classNames.wrapper),ge(this.contentWrapperEl,this.classNames.contentWrapper),ge(this.offsetEl,this.classNames.offset),ge(this.maskEl,this.classNames.mask),ge(this.contentEl,this.classNames.contentEl),ge(this.placeholderEl,this.classNames.placeholder),ge(this.heightAutoObserverWrapperEl,this.classNames.heightAutoObserverWrapperEl),ge(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),(r=this.contentWrapperEl)===null||r===void 0||r.setAttribute("tabindex",this.options.tabIndex.toString()),(c=this.contentWrapperEl)===null||c===void 0||c.setAttribute("role","region"),(u=this.contentWrapperEl)===null||u===void 0||u.setAttribute("aria-label",this.options.ariaLabel)}if(!this.axis.x.track.el||!this.axis.y.track.el){var d=document.createElement("div"),v=document.createElement("div");ge(d,this.classNames.track),ge(v,this.classNames.scrollbar),d.appendChild(v),this.axis.x.track.el=d.cloneNode(!0),ge(this.axis.x.track.el,this.classNames.horizontal),this.axis.y.track.el=d.cloneNode(!0),ge(this.axis.y.track.el,this.classNames.vertical),this.el.appendChild(this.axis.x.track.el),this.el.appendChild(this.axis.y.track.el)}ti.prototype.initDOM.call(this),this.el.setAttribute("data-simplebar","init")},i.prototype.unMount=function(){ti.prototype.unMount.call(this),i.instances.delete(this.el)},i.initHtmlApi=function(){this.initDOMLoadedElements=this.initDOMLoadedElements.bind(this),typeof MutationObserver<"u"&&(this.globalObserver=new MutationObserver(i.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))},i.handleMutations=function(l){l.forEach(function(r){r.addedNodes.forEach(function(c){c.nodeType===1&&(c.hasAttribute("data-simplebar")?!i.instances.has(c)&&document.documentElement.contains(c)&&new i(c,Yi(c.attributes)):c.querySelectorAll("[data-simplebar]").forEach(function(u){u.getAttribute("data-simplebar")!=="init"&&!i.instances.has(u)&&document.documentElement.contains(u)&&new i(u,Yi(u.attributes))}))}),r.removedNodes.forEach(function(c){var u;c.nodeType===1&&(c.getAttribute("data-simplebar")==="init"?!document.documentElement.contains(c)&&((u=i.instances.get(c))===null||u===void 0||u.unMount()):Array.prototype.forEach.call(c.querySelectorAll('[data-simplebar="init"]'),function(d){var v;!document.documentElement.contains(d)&&((v=i.instances.get(d))===null||v===void 0||v.unMount())}))})})},i.instances=new WeakMap,i})(ti);Oc&&Bc.initHtmlApi();const Dc=n.defineComponent({name:"ClUI",methods:{VITE_APP_VERSION:()=>"7.9.2"}}),$=(e,i)=>{const l=e.__vccOpts||e;for(const[r,c]of i)l[r]=c;return l};function Vc(e,i,l,r,c,u){return n.toDisplayString(e.VITE_APP_VERSION())}const Mc=$(Dc,[["render",Vc]]),zc=n.defineComponent({name:"ClAlert",props:{type:{type:String,default:"info"}}});function Lc(e,i,l,r,c,u){return n.openBlock(),n.createElementBlock("p",{class:n.normalizeClass(["alert",`cl-alert-${e.type}`]),role:"alert"},[n.renderSlot(e.$slots,"default")],2)}const _t=$(zc,[["render",Lc]]);_t.install=e=>{e.component(_t.name??"ClNoName",_t)};function Ic(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ni={exports:{}};var Fc=ni.exports,Qs;function Pc(){return Qs||(Qs=1,(function(e,i){(function(l,r){e.exports=r()})(Fc,function(){const l=new Map,r={set(s,t,o){l.has(s)||l.set(s,new Map);const a=l.get(s);a.has(t)||a.size===0?a.set(t,o):console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(a.keys())[0]}.`)},get:(s,t)=>l.has(s)&&l.get(s).get(t)||null,remove(s,t){if(!l.has(s))return;const o=l.get(s);o.delete(t),o.size===0&&l.delete(s)}},c="transitionend",u=s=>(s&&window.CSS&&window.CSS.escape&&(s=s.replace(/#([^\s"#']+)/g,(t,o)=>`#${CSS.escape(o)}`)),s),d=s=>s==null?`${s}`:Object.prototype.toString.call(s).match(/\s([a-z]+)/i)[1].toLowerCase(),v=s=>{s.dispatchEvent(new Event(c))},E=s=>!(!s||typeof s!="object")&&(s.jquery!==void 0&&(s=s[0]),s.nodeType!==void 0),B=s=>E(s)?s.jquery?s[0]:s:typeof s=="string"&&s.length>0?document.querySelector(u(s)):null,x=s=>{if(!E(s)||s.getClientRects().length===0)return!1;const t=getComputedStyle(s).getPropertyValue("visibility")==="visible",o=s.closest("details:not([open])");if(!o)return t;if(o!==s){const a=s.closest("summary");if(a&&a.parentNode!==o||a===null)return!1}return t},M=s=>!s||s.nodeType!==Node.ELEMENT_NODE||!!s.classList.contains("disabled")||(s.disabled!==void 0?s.disabled:s.hasAttribute("disabled")&&s.getAttribute("disabled")!=="false"),Q=s=>{if(!document.documentElement.attachShadow)return null;if(typeof s.getRootNode=="function"){const t=s.getRootNode();return t instanceof ShadowRoot?t:null}return s instanceof ShadowRoot?s:s.parentNode?Q(s.parentNode):null},U=()=>{},ie=s=>{s.offsetHeight},ve=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,oe=[],q=()=>document.documentElement.dir==="rtl",Y=s=>{var t;t=()=>{const o=ve();if(o){const a=s.NAME,f=o.fn[a];o.fn[a]=s.jQueryInterface,o.fn[a].Constructor=s,o.fn[a].noConflict=()=>(o.fn[a]=f,s.jQueryInterface)}},document.readyState==="loading"?(oe.length||document.addEventListener("DOMContentLoaded",()=>{for(const o of oe)o()}),oe.push(t)):t()},K=(s,t=[],o=s)=>typeof s=="function"?s.call(...t):o,Ze=(s,t,o=!0)=>{if(!o)return void K(s);const a=(h=>{if(!h)return 0;let{transitionDuration:m,transitionDelay:b}=window.getComputedStyle(h);const _=Number.parseFloat(m),C=Number.parseFloat(b);return _||C?(m=m.split(",")[0],b=b.split(",")[0],1e3*(Number.parseFloat(m)+Number.parseFloat(b))):0})(t)+5;let f=!1;const p=({target:h})=>{h===t&&(f=!0,t.removeEventListener(c,p),K(s))};t.addEventListener(c,p),setTimeout(()=>{f||v(t)},a)},Se=(s,t,o,a)=>{const f=s.length;let p=s.indexOf(t);return p===-1?!o&&a?s[f-1]:s[0]:(p+=o?1:-1,a&&(p=(p+f)%f),s[Math.max(0,Math.min(p,f-1))])},j=/[^.]*(?=\..*)\.|.*/,ce=/\..*/,de=/::\d+$/,et={};let oo=1;const so={mouseenter:"mouseover",mouseleave:"mouseout"},Dr=new Set(["click","dblclick","mouseup","mousedown","contextmenu","mousewheel","DOMMouseScroll","mouseover","mouseout","mousemove","selectstart","selectend","keydown","keypress","keyup","orientationchange","touchstart","touchmove","touchend","touchcancel","pointerdown","pointermove","pointerup","pointerleave","pointercancel","gesturestart","gesturechange","gestureend","focus","blur","change","reset","select","submit","focusin","focusout","load","unload","beforeunload","resize","move","DOMContentLoaded","readystatechange","error","abort","scroll"]);function ro(s,t){return t&&`${t}::${oo++}`||s.uidEvent||oo++}function lo(s){const t=ro(s);return s.uidEvent=t,et[t]=et[t]||{},et[t]}function ao(s,t,o=null){return Object.values(s).find(a=>a.callable===t&&a.delegationSelector===o)}function co(s,t,o){const a=typeof t=="string",f=a?o:t||o;let p=fo(s);return Dr.has(p)||(p=s),[a,f,p]}function uo(s,t,o,a,f){if(typeof t!="string"||!s)return;let[p,h,m]=co(t,o,a);t in so&&(h=(N=>function(S){if(!S.relatedTarget||S.relatedTarget!==S.delegateTarget&&!S.delegateTarget.contains(S.relatedTarget))return N.call(this,S)})(h));const b=lo(s),_=b[m]||(b[m]={}),C=ao(_,h,p?o:null);if(C)return void(C.oneOff=C.oneOff&&f);const y=ro(h,t.replace(j,"")),A=p?(function(w,N,S){return function T(F){const R=w.querySelectorAll(N);for(let{target:D}=F;D&&D!==this;D=D.parentNode)for(const z of R)if(z===D)return ai(F,{delegateTarget:D}),T.oneOff&&g.off(w,F.type,N,S),S.apply(D,[F])}})(s,o,h):(function(w,N){return function S(T){return ai(T,{delegateTarget:w}),S.oneOff&&g.off(w,T.type,N),N.apply(w,[T])}})(s,h);A.delegationSelector=p?o:null,A.callable=h,A.oneOff=f,A.uidEvent=y,_[y]=A,s.addEventListener(m,A,p)}function li(s,t,o,a,f){const p=ao(t[o],a,f);p&&(s.removeEventListener(o,p,!!f),delete t[o][p.uidEvent])}function Vr(s,t,o,a){const f=t[o]||{};for(const[p,h]of Object.entries(f))p.includes(a)&&li(s,t,o,h.callable,h.delegationSelector)}function fo(s){return s=s.replace(ce,""),so[s]||s}const g={on(s,t,o,a){uo(s,t,o,a,!1)},one(s,t,o,a){uo(s,t,o,a,!0)},off(s,t,o,a){if(typeof t!="string"||!s)return;const[f,p,h]=co(t,o,a),m=h!==t,b=lo(s),_=b[h]||{},C=t.startsWith(".");if(p===void 0){if(C)for(const y of Object.keys(b))Vr(s,b,y,t.slice(1));for(const[y,A]of Object.entries(_)){const w=y.replace(de,"");m&&!t.includes(w)||li(s,b,h,A.callable,A.delegationSelector)}}else{if(!Object.keys(_).length)return;li(s,b,h,p,f?o:null)}},trigger(s,t,o){if(typeof t!="string"||!s)return null;const a=ve();let f=null,p=!0,h=!0,m=!1;t!==fo(t)&&a&&(f=a.Event(t,o),a(s).trigger(f),p=!f.isPropagationStopped(),h=!f.isImmediatePropagationStopped(),m=f.isDefaultPrevented());const b=ai(new Event(t,{bubbles:p,cancelable:!0}),o);return m&&b.preventDefault(),h&&s.dispatchEvent(b),b.defaultPrevented&&f&&f.preventDefault(),b}};function ai(s,t={}){for(const[o,a]of Object.entries(t))try{s[o]=a}catch{Object.defineProperty(s,o,{configurable:!0,get:()=>a})}return s}function po(s){if(s==="true")return!0;if(s==="false")return!1;if(s===Number(s).toString())return Number(s);if(s===""||s==="null")return null;if(typeof s!="string")return s;try{return JSON.parse(decodeURIComponent(s))}catch{return s}}function ci(s){return s.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`)}const Ne={setDataAttribute(s,t,o){s.setAttribute(`data-bs-${ci(t)}`,o)},removeDataAttribute(s,t){s.removeAttribute(`data-bs-${ci(t)}`)},getDataAttributes(s){if(!s)return{};const t={},o=Object.keys(s.dataset).filter(a=>a.startsWith("bs")&&!a.startsWith("bsConfig"));for(const a of o){let f=a.replace(/^bs/,"");f=f.charAt(0).toLowerCase()+f.slice(1),t[f]=po(s.dataset[a])}return t},getDataAttribute:(s,t)=>po(s.getAttribute(`data-bs-${ci(t)}`))};class bn{static get Default(){return{}}static get DefaultType(){return{}}static get NAME(){throw new Error('You have to implement the static method "NAME", for each component!')}_getConfig(t){return t=this._mergeConfigObj(t),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}_configAfterMerge(t){return t}_mergeConfigObj(t,o){const a=E(o)?Ne.getDataAttribute(o,"config"):{};return{...this.constructor.Default,...typeof a=="object"?a:{},...E(o)?Ne.getDataAttributes(o):{},...typeof t=="object"?t:{}}}_typeCheckConfig(t,o=this.constructor.DefaultType){for(const[a,f]of Object.entries(o)){const p=t[a],h=E(p)?"element":d(p);if(!new RegExp(f).test(h))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${a}" provided type "${h}" but expected type "${f}".`)}}}class be extends bn{constructor(t,o){super(),(t=B(t))&&(this._element=t,this._config=this._getConfig(o),r.set(this._element,this.constructor.DATA_KEY,this))}dispose(){r.remove(this._element,this.constructor.DATA_KEY),g.off(this._element,this.constructor.EVENT_KEY);for(const t of Object.getOwnPropertyNames(this))this[t]=null}_queueCallback(t,o,a=!0){Ze(t,o,a)}_getConfig(t){return t=this._mergeConfigObj(t,this._element),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}static getInstance(t){return r.get(B(t),this.DATA_KEY)}static getOrCreateInstance(t,o={}){return this.getInstance(t)||new this(t,typeof o=="object"?o:null)}static get VERSION(){return"5.3.8"}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}static eventName(t){return`${t}${this.EVENT_KEY}`}}const di=s=>{let t=s.getAttribute("data-bs-target");if(!t||t==="#"){let o=s.getAttribute("href");if(!o||!o.includes("#")&&!o.startsWith("."))return null;o.includes("#")&&!o.startsWith("#")&&(o=`#${o.split("#")[1]}`),t=o&&o!=="#"?o.trim():null}return t?t.split(",").map(o=>u(o)).join(","):null},k={find:(s,t=document.documentElement)=>[].concat(...Element.prototype.querySelectorAll.call(t,s)),findOne:(s,t=document.documentElement)=>Element.prototype.querySelector.call(t,s),children:(s,t)=>[].concat(...s.children).filter(o=>o.matches(t)),parents(s,t){const o=[];let a=s.parentNode.closest(t);for(;a;)o.push(a),a=a.parentNode.closest(t);return o},prev(s,t){let o=s.previousElementSibling;for(;o;){if(o.matches(t))return[o];o=o.previousElementSibling}return[]},next(s,t){let o=s.nextElementSibling;for(;o;){if(o.matches(t))return[o];o=o.nextElementSibling}return[]},focusableChildren(s){const t=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map(o=>`${o}:not([tabindex^="-"])`).join(",");return this.find(t,s).filter(o=>!M(o)&&x(o))},getSelectorFromElement(s){const t=di(s);return t&&k.findOne(t)?t:null},getElementFromSelector(s){const t=di(s);return t?k.findOne(t):null},getMultipleElementsFromSelector(s){const t=di(s);return t?k.find(t):[]}},Dn=(s,t="hide")=>{const o=`click.dismiss${s.EVENT_KEY}`,a=s.NAME;g.on(document,o,`[data-bs-dismiss="${a}"]`,function(f){if(["A","AREA"].includes(this.tagName)&&f.preventDefault(),M(this))return;const p=k.getElementFromSelector(this)||this.closest(`.${a}`);s.getOrCreateInstance(p)[t]()})},ho=".bs.alert",Mr=`close${ho}`,zr=`closed${ho}`;class yn extends be{static get NAME(){return"alert"}close(){if(g.trigger(this._element,Mr).defaultPrevented)return;this._element.classList.remove("show");const t=this._element.classList.contains("fade");this._queueCallback(()=>this._destroyElement(),this._element,t)}_destroyElement(){this._element.remove(),g.trigger(this._element,zr),this.dispose()}static jQueryInterface(t){return this.each(function(){const o=yn.getOrCreateInstance(this);if(typeof t=="string"){if(o[t]===void 0||t.startsWith("_")||t==="constructor")throw new TypeError(`No method named "${t}"`);o[t](this)}})}}Dn(yn,"close"),Y(yn);const mo='[data-bs-toggle="button"]';class _n extends be{static get NAME(){return"button"}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle("active"))}static jQueryInterface(t){return this.each(function(){const o=_n.getOrCreateInstance(this);t==="toggle"&&o[t]()})}}g.on(document,"click.bs.button.data-api",mo,s=>{s.preventDefault();const t=s.target.closest(mo);_n.getOrCreateInstance(t).toggle()}),Y(_n);const tt=".bs.swipe",Lr=`touchstart${tt}`,Ir=`touchmove${tt}`,Fr=`touchend${tt}`,Pr=`pointerdown${tt}`,Wr=`pointerup${tt}`,jr={endCallback:null,leftCallback:null,rightCallback:null},Rr={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"};class Vn extends bn{constructor(t,o){super(),this._element=t,t&&Vn.isSupported()&&(this._config=this._getConfig(o),this._deltaX=0,this._supportPointerEvents=!!window.PointerEvent,this._initEvents())}static get Default(){return jr}static get DefaultType(){return Rr}static get NAME(){return"swipe"}dispose(){g.off(this._element,tt)}_start(t){this._supportPointerEvents?this._eventIsPointerPenTouch(t)&&(this._deltaX=t.clientX):this._deltaX=t.touches[0].clientX}_end(t){this._eventIsPointerPenTouch(t)&&(this._deltaX=t.clientX-this._deltaX),this._handleSwipe(),K(this._config.endCallback)}_move(t){this._deltaX=t.touches&&t.touches.length>1?0:t.touches[0].clientX-this._deltaX}_handleSwipe(){const t=Math.abs(this._deltaX);if(t<=40)return;const o=t/this._deltaX;this._deltaX=0,o&&K(o>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(g.on(this._element,Pr,t=>this._start(t)),g.on(this._element,Wr,t=>this._end(t)),this._element.classList.add("pointer-event")):(g.on(this._element,Lr,t=>this._start(t)),g.on(this._element,Ir,t=>this._move(t)),g.on(this._element,Fr,t=>this._end(t)))}_eventIsPointerPenTouch(t){return this._supportPointerEvents&&(t.pointerType==="pen"||t.pointerType==="touch")}static isSupported(){return"ontouchstart"in document.documentElement||navigator.maxTouchPoints>0}}const Be=".bs.carousel",go=".data-api",xr="ArrowLeft",qr="ArrowRight",Cn="next",nt="prev",it="left",Mn="right",Hr=`slide${Be}`,ui=`slid${Be}`,Ur=`keydown${Be}`,Yr=`mouseenter${Be}`,Xr=`mouseleave${Be}`,Kr=`dragstart${Be}`,Gr=`load${Be}${go}`,Qr=`click${Be}${go}`,vo="carousel",zn="active",bo=".active",yo=".carousel-item",Jr=bo+yo,Zr={[xr]:Mn,[qr]:it},el={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},tl={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"};class ot extends be{constructor(t,o){super(t,o),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=k.findOne(".carousel-indicators",this._element),this._addEventListeners(),this._config.ride===vo&&this.cycle()}static get Default(){return el}static get DefaultType(){return tl}static get NAME(){return"carousel"}next(){this._slide(Cn)}nextWhenVisible(){!document.hidden&&x(this._element)&&this.next()}prev(){this._slide(nt)}pause(){this._isSliding&&v(this._element),this._clearInterval()}cycle(){this._clearInterval(),this._updateInterval(),this._interval=setInterval(()=>this.nextWhenVisible(),this._config.interval)}_maybeEnableCycle(){this._config.ride&&(this._isSliding?g.one(this._element,ui,()=>this.cycle()):this.cycle())}to(t){const o=this._getItems();if(t>o.length-1||t<0)return;if(this._isSliding)return void g.one(this._element,ui,()=>this.to(t));const a=this._getItemIndex(this._getActive());if(a===t)return;const f=t>a?Cn:nt;this._slide(f,o[t])}dispose(){this._swipeHelper&&this._swipeHelper.dispose(),super.dispose()}_configAfterMerge(t){return t.defaultInterval=t.interval,t}_addEventListeners(){this._config.keyboard&&g.on(this._element,Ur,t=>this._keydown(t)),this._config.pause==="hover"&&(g.on(this._element,Yr,()=>this.pause()),g.on(this._element,Xr,()=>this._maybeEnableCycle())),this._config.touch&&Vn.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(const o of k.find(".carousel-item img",this._element))g.on(o,Kr,a=>a.preventDefault());const t={leftCallback:()=>this._slide(this._directionToOrder(it)),rightCallback:()=>this._slide(this._directionToOrder(Mn)),endCallback:()=>{this._config.pause==="hover"&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout(()=>this._maybeEnableCycle(),500+this._config.interval))}};this._swipeHelper=new Vn(this._element,t)}_keydown(t){if(/input|textarea/i.test(t.target.tagName))return;const o=Zr[t.key];o&&(t.preventDefault(),this._slide(this._directionToOrder(o)))}_getItemIndex(t){return this._getItems().indexOf(t)}_setActiveIndicatorElement(t){if(!this._indicatorsElement)return;const o=k.findOne(bo,this._indicatorsElement);o.classList.remove(zn),o.removeAttribute("aria-current");const a=k.findOne(`[data-bs-slide-to="${t}"]`,this._indicatorsElement);a&&(a.classList.add(zn),a.setAttribute("aria-current","true"))}_updateInterval(){const t=this._activeElement||this._getActive();if(!t)return;const o=Number.parseInt(t.getAttribute("data-bs-interval"),10);this._config.interval=o||this._config.defaultInterval}_slide(t,o=null){if(this._isSliding)return;const a=this._getActive(),f=t===Cn,p=o||Se(this._getItems(),a,f,this._config.wrap);if(p===a)return;const h=this._getItemIndex(p),m=y=>g.trigger(this._element,y,{relatedTarget:p,direction:this._orderToDirection(t),from:this._getItemIndex(a),to:h});if(m(Hr).defaultPrevented||!a||!p)return;const b=!!this._interval;this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(h),this._activeElement=p;const _=f?"carousel-item-start":"carousel-item-end",C=f?"carousel-item-next":"carousel-item-prev";p.classList.add(C),ie(p),a.classList.add(_),p.classList.add(_),this._queueCallback(()=>{p.classList.remove(_,C),p.classList.add(zn),a.classList.remove(zn,C,_),this._isSliding=!1,m(ui)},a,this._isAnimated()),b&&this.cycle()}_isAnimated(){return this._element.classList.contains("slide")}_getActive(){return k.findOne(Jr,this._element)}_getItems(){return k.find(yo,this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(t){return q()?t===it?nt:Cn:t===it?Cn:nt}_orderToDirection(t){return q()?t===nt?it:Mn:t===nt?Mn:it}static jQueryInterface(t){return this.each(function(){const o=ot.getOrCreateInstance(this,t);if(typeof t!="number"){if(typeof t=="string"){if(o[t]===void 0||t.startsWith("_")||t==="constructor")throw new TypeError(`No method named "${t}"`);o[t]()}}else o.to(t)})}}g.on(document,Qr,"[data-bs-slide], [data-bs-slide-to]",function(s){const t=k.getElementFromSelector(this);if(!t||!t.classList.contains(vo))return;s.preventDefault();const o=ot.getOrCreateInstance(t),a=this.getAttribute("data-bs-slide-to");return a?(o.to(a),void o._maybeEnableCycle()):Ne.getDataAttribute(this,"slide")==="next"?(o.next(),void o._maybeEnableCycle()):(o.prev(),void o._maybeEnableCycle())}),g.on(window,Gr,()=>{const s=k.find('[data-bs-ride="carousel"]');for(const t of s)ot.getOrCreateInstance(t)}),Y(ot);const kn=".bs.collapse",nl=`show${kn}`,il=`shown${kn}`,ol=`hide${kn}`,sl=`hidden${kn}`,rl=`click${kn}.data-api`,fi="show",st="collapse",Ln="collapsing",ll=`:scope .${st} .${st}`,pi='[data-bs-toggle="collapse"]',al={parent:null,toggle:!0},cl={parent:"(null|element)",toggle:"boolean"};class rt extends be{constructor(t,o){super(t,o),this._isTransitioning=!1,this._triggerArray=[];const a=k.find(pi);for(const f of a){const p=k.getSelectorFromElement(f),h=k.find(p).filter(m=>m===this._element);p!==null&&h.length&&this._triggerArray.push(f)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return al}static get DefaultType(){return cl}static get NAME(){return"collapse"}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let t=[];if(this._config.parent&&(t=this._getFirstLevelChildren(".collapse.show, .collapse.collapsing").filter(f=>f!==this._element).map(f=>rt.getOrCreateInstance(f,{toggle:!1}))),t.length&&t[0]._isTransitioning||g.trigger(this._element,nl).defaultPrevented)return;for(const f of t)f.hide();const o=this._getDimension();this._element.classList.remove(st),this._element.classList.add(Ln),this._element.style[o]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const a=`scroll${o[0].toUpperCase()+o.slice(1)}`;this._queueCallback(()=>{this._isTransitioning=!1,this._element.classList.remove(Ln),this._element.classList.add(st,fi),this._element.style[o]="",g.trigger(this._element,il)},this._element,!0),this._element.style[o]=`${this._element[a]}px`}hide(){if(this._isTransitioning||!this._isShown()||g.trigger(this._element,ol).defaultPrevented)return;const t=this._getDimension();this._element.style[t]=`${this._element.getBoundingClientRect()[t]}px`,ie(this._element),this._element.classList.add(Ln),this._element.classList.remove(st,fi);for(const o of this._triggerArray){const a=k.getElementFromSelector(o);a&&!this._isShown(a)&&this._addAriaAndCollapsedClass([o],!1)}this._isTransitioning=!0,this._element.style[t]="",this._queueCallback(()=>{this._isTransitioning=!1,this._element.classList.remove(Ln),this._element.classList.add(st),g.trigger(this._element,sl)},this._element,!0)}_isShown(t=this._element){return t.classList.contains(fi)}_configAfterMerge(t){return t.toggle=!!t.toggle,t.parent=B(t.parent),t}_getDimension(){return this._element.classList.contains("collapse-horizontal")?"width":"height"}_initializeChildren(){if(!this._config.parent)return;const t=this._getFirstLevelChildren(pi);for(const o of t){const a=k.getElementFromSelector(o);a&&this._addAriaAndCollapsedClass([o],this._isShown(a))}}_getFirstLevelChildren(t){const o=k.find(ll,this._config.parent);return k.find(t,this._config.parent).filter(a=>!o.includes(a))}_addAriaAndCollapsedClass(t,o){if(t.length)for(const a of t)a.classList.toggle("collapsed",!o),a.setAttribute("aria-expanded",o)}static jQueryInterface(t){const o={};return typeof t=="string"&&/show|hide/.test(t)&&(o.toggle=!1),this.each(function(){const a=rt.getOrCreateInstance(this,o);if(typeof t=="string"){if(a[t]===void 0)throw new TypeError(`No method named "${t}"`);a[t]()}})}}g.on(document,rl,pi,function(s){(s.target.tagName==="A"||s.delegateTarget&&s.delegateTarget.tagName==="A")&&s.preventDefault();for(const t of k.getMultipleElementsFromSelector(this))rt.getOrCreateInstance(t,{toggle:!1}).toggle()}),Y(rt);var J="top",se="bottom",re="right",Z="left",In="auto",lt=[J,se,re,Z],Pe="start",at="end",_o="clippingParents",hi="viewport",ct="popper",Co="reference",mi=lt.reduce(function(s,t){return s.concat([t+"-"+Pe,t+"-"+at])},[]),gi=[].concat(lt,[In]).reduce(function(s,t){return s.concat([t,t+"-"+Pe,t+"-"+at])},[]),ko="beforeRead",$o="read",Eo="afterRead",wo="beforeMain",So="main",No="afterMain",To="beforeWrite",Ao="write",Oo="afterWrite",Bo=[ko,$o,Eo,wo,So,No,To,Ao,Oo];function Ce(s){return s?(s.nodeName||"").toLowerCase():null}function le(s){if(s==null)return window;if(s.toString()!=="[object Window]"){var t=s.ownerDocument;return t&&t.defaultView||window}return s}function We(s){return s instanceof le(s).Element||s instanceof Element}function ue(s){return s instanceof le(s).HTMLElement||s instanceof HTMLElement}function vi(s){return typeof ShadowRoot<"u"&&(s instanceof le(s).ShadowRoot||s instanceof ShadowRoot)}const bi={name:"applyStyles",enabled:!0,phase:"write",fn:function(s){var t=s.state;Object.keys(t.elements).forEach(function(o){var a=t.styles[o]||{},f=t.attributes[o]||{},p=t.elements[o];ue(p)&&Ce(p)&&(Object.assign(p.style,a),Object.keys(f).forEach(function(h){var m=f[h];m===!1?p.removeAttribute(h):p.setAttribute(h,m===!0?"":m)}))})},effect:function(s){var t=s.state,o={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,o.popper),t.styles=o,t.elements.arrow&&Object.assign(t.elements.arrow.style,o.arrow),function(){Object.keys(t.elements).forEach(function(a){var f=t.elements[a],p=t.attributes[a]||{},h=Object.keys(t.styles.hasOwnProperty(a)?t.styles[a]:o[a]).reduce(function(m,b){return m[b]="",m},{});ue(f)&&Ce(f)&&(Object.assign(f.style,h),Object.keys(p).forEach(function(m){f.removeAttribute(m)}))})}},requires:["computeStyles"]};function ke(s){return s.split("-")[0]}var je=Math.max,Fn=Math.min,dt=Math.round;function yi(){var s=navigator.userAgentData;return s!=null&&s.brands&&Array.isArray(s.brands)?s.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function Do(){return!/^((?!chrome|android).)*safari/i.test(yi())}function ut(s,t,o){t===void 0&&(t=!1),o===void 0&&(o=!1);var a=s.getBoundingClientRect(),f=1,p=1;t&&ue(s)&&(f=s.offsetWidth>0&&dt(a.width)/s.offsetWidth||1,p=s.offsetHeight>0&&dt(a.height)/s.offsetHeight||1);var h=(We(s)?le(s):window).visualViewport,m=!Do()&&o,b=(a.left+(m&&h?h.offsetLeft:0))/f,_=(a.top+(m&&h?h.offsetTop:0))/p,C=a.width/f,y=a.height/p;return{width:C,height:y,top:_,right:b+C,bottom:_+y,left:b,x:b,y:_}}function _i(s){var t=ut(s),o=s.offsetWidth,a=s.offsetHeight;return Math.abs(t.width-o)<=1&&(o=t.width),Math.abs(t.height-a)<=1&&(a=t.height),{x:s.offsetLeft,y:s.offsetTop,width:o,height:a}}function Vo(s,t){var o=t.getRootNode&&t.getRootNode();if(s.contains(t))return!0;if(o&&vi(o)){var a=t;do{if(a&&s.isSameNode(a))return!0;a=a.parentNode||a.host}while(a)}return!1}function Te(s){return le(s).getComputedStyle(s)}function dl(s){return["table","td","th"].indexOf(Ce(s))>=0}function De(s){return((We(s)?s.ownerDocument:s.document)||window.document).documentElement}function Pn(s){return Ce(s)==="html"?s:s.assignedSlot||s.parentNode||(vi(s)?s.host:null)||De(s)}function Mo(s){return ue(s)&&Te(s).position!=="fixed"?s.offsetParent:null}function $n(s){for(var t=le(s),o=Mo(s);o&&dl(o)&&Te(o).position==="static";)o=Mo(o);return o&&(Ce(o)==="html"||Ce(o)==="body"&&Te(o).position==="static")?t:o||(function(a){var f=/firefox/i.test(yi());if(/Trident/i.test(yi())&&ue(a)&&Te(a).position==="fixed")return null;var p=Pn(a);for(vi(p)&&(p=p.host);ue(p)&&["html","body"].indexOf(Ce(p))<0;){var h=Te(p);if(h.transform!=="none"||h.perspective!=="none"||h.contain==="paint"||["transform","perspective"].indexOf(h.willChange)!==-1||f&&h.willChange==="filter"||f&&h.filter&&h.filter!=="none")return p;p=p.parentNode}return null})(s)||t}function Ci(s){return["top","bottom"].indexOf(s)>=0?"x":"y"}function En(s,t,o){return je(s,Fn(t,o))}function zo(s){return Object.assign({},{top:0,right:0,bottom:0,left:0},s)}function Lo(s,t){return t.reduce(function(o,a){return o[a]=s,o},{})}const Io={name:"arrow",enabled:!0,phase:"main",fn:function(s){var t,o=s.state,a=s.name,f=s.options,p=o.elements.arrow,h=o.modifiersData.popperOffsets,m=ke(o.placement),b=Ci(m),_=[Z,re].indexOf(m)>=0?"height":"width";if(p&&h){var C=(function(P,I){return zo(typeof(P=typeof P=="function"?P(Object.assign({},I.rects,{placement:I.placement})):P)!="number"?P:Lo(P,lt))})(f.padding,o),y=_i(p),A=b==="y"?J:Z,w=b==="y"?se:re,N=o.rects.reference[_]+o.rects.reference[b]-h[b]-o.rects.popper[_],S=h[b]-o.rects.reference[b],T=$n(p),F=T?b==="y"?T.clientHeight||0:T.clientWidth||0:0,R=N/2-S/2,D=C[A],z=F-y[_]-C[w],O=F/2-y[_]/2+R,V=En(D,O,z),L=b;o.modifiersData[a]=((t={})[L]=V,t.centerOffset=V-O,t)}},effect:function(s){var t=s.state,o=s.options.element,a=o===void 0?"[data-popper-arrow]":o;a!=null&&(typeof a!="string"||(a=t.elements.popper.querySelector(a)))&&Vo(t.elements.popper,a)&&(t.elements.arrow=a)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ft(s){return s.split("-")[1]}var ul={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Fo(s){var t,o=s.popper,a=s.popperRect,f=s.placement,p=s.variation,h=s.offsets,m=s.position,b=s.gpuAcceleration,_=s.adaptive,C=s.roundOffsets,y=s.isFixed,A=h.x,w=A===void 0?0:A,N=h.y,S=N===void 0?0:N,T=typeof C=="function"?C({x:w,y:S}):{x:w,y:S};w=T.x,S=T.y;var F=h.hasOwnProperty("x"),R=h.hasOwnProperty("y"),D=Z,z=J,O=window;if(_){var V=$n(o),L="clientHeight",P="clientWidth";V===le(o)&&Te(V=De(o)).position!=="static"&&m==="absolute"&&(L="scrollHeight",P="scrollWidth"),(f===J||(f===Z||f===re)&&p===at)&&(z=se,S-=(y&&V===O&&O.visualViewport?O.visualViewport.height:V[L])-a.height,S*=b?1:-1),f!==Z&&(f!==J&&f!==se||p!==at)||(D=re,w-=(y&&V===O&&O.visualViewport?O.visualViewport.width:V[P])-a.width,w*=b?1:-1)}var I,X=Object.assign({position:m},_&&ul),ae=C===!0?(function(_e,ee){var pe=_e.x,he=_e.y,H=ee.devicePixelRatio||1;return{x:dt(pe*H)/H||0,y:dt(he*H)/H||0}})({x:w,y:S},le(o)):{x:w,y:S};return w=ae.x,S=ae.y,b?Object.assign({},X,((I={})[z]=R?"0":"",I[D]=F?"0":"",I.transform=(O.devicePixelRatio||1)<=1?"translate("+w+"px, "+S+"px)":"translate3d("+w+"px, "+S+"px, 0)",I)):Object.assign({},X,((t={})[z]=R?S+"px":"",t[D]=F?w+"px":"",t.transform="",t))}const ki={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(s){var t=s.state,o=s.options,a=o.gpuAcceleration,f=a===void 0||a,p=o.adaptive,h=p===void 0||p,m=o.roundOffsets,b=m===void 0||m,_={placement:ke(t.placement),variation:ft(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:f,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Fo(Object.assign({},_,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:h,roundOffsets:b})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Fo(Object.assign({},_,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:b})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}};var Wn={passive:!0};const $i={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(s){var t=s.state,o=s.instance,a=s.options,f=a.scroll,p=f===void 0||f,h=a.resize,m=h===void 0||h,b=le(t.elements.popper),_=[].concat(t.scrollParents.reference,t.scrollParents.popper);return p&&_.forEach(function(C){C.addEventListener("scroll",o.update,Wn)}),m&&b.addEventListener("resize",o.update,Wn),function(){p&&_.forEach(function(C){C.removeEventListener("scroll",o.update,Wn)}),m&&b.removeEventListener("resize",o.update,Wn)}},data:{}};var fl={left:"right",right:"left",bottom:"top",top:"bottom"};function jn(s){return s.replace(/left|right|bottom|top/g,function(t){return fl[t]})}var pl={start:"end",end:"start"};function Po(s){return s.replace(/start|end/g,function(t){return pl[t]})}function Ei(s){var t=le(s);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function wi(s){return ut(De(s)).left+Ei(s).scrollLeft}function Si(s){var t=Te(s),o=t.overflow,a=t.overflowX,f=t.overflowY;return/auto|scroll|overlay|hidden/.test(o+f+a)}function Wo(s){return["html","body","#document"].indexOf(Ce(s))>=0?s.ownerDocument.body:ue(s)&&Si(s)?s:Wo(Pn(s))}function wn(s,t){var o;t===void 0&&(t=[]);var a=Wo(s),f=a===((o=s.ownerDocument)==null?void 0:o.body),p=le(a),h=f?[p].concat(p.visualViewport||[],Si(a)?a:[]):a,m=t.concat(h);return f?m:m.concat(wn(Pn(h)))}function Ni(s){return Object.assign({},s,{left:s.x,top:s.y,right:s.x+s.width,bottom:s.y+s.height})}function jo(s,t,o){return t===hi?Ni((function(a,f){var p=le(a),h=De(a),m=p.visualViewport,b=h.clientWidth,_=h.clientHeight,C=0,y=0;if(m){b=m.width,_=m.height;var A=Do();(A||!A&&f==="fixed")&&(C=m.offsetLeft,y=m.offsetTop)}return{width:b,height:_,x:C+wi(a),y}})(s,o)):We(t)?(function(a,f){var p=ut(a,!1,f==="fixed");return p.top=p.top+a.clientTop,p.left=p.left+a.clientLeft,p.bottom=p.top+a.clientHeight,p.right=p.left+a.clientWidth,p.width=a.clientWidth,p.height=a.clientHeight,p.x=p.left,p.y=p.top,p})(t,o):Ni((function(a){var f,p=De(a),h=Ei(a),m=(f=a.ownerDocument)==null?void 0:f.body,b=je(p.scrollWidth,p.clientWidth,m?m.scrollWidth:0,m?m.clientWidth:0),_=je(p.scrollHeight,p.clientHeight,m?m.scrollHeight:0,m?m.clientHeight:0),C=-h.scrollLeft+wi(a),y=-h.scrollTop;return Te(m||p).direction==="rtl"&&(C+=je(p.clientWidth,m?m.clientWidth:0)-b),{width:b,height:_,x:C,y}})(De(s)))}function Ro(s){var t,o=s.reference,a=s.element,f=s.placement,p=f?ke(f):null,h=f?ft(f):null,m=o.x+o.width/2-a.width/2,b=o.y+o.height/2-a.height/2;switch(p){case J:t={x:m,y:o.y-a.height};break;case se:t={x:m,y:o.y+o.height};break;case re:t={x:o.x+o.width,y:b};break;case Z:t={x:o.x-a.width,y:b};break;default:t={x:o.x,y:o.y}}var _=p?Ci(p):null;if(_!=null){var C=_==="y"?"height":"width";switch(h){case Pe:t[_]=t[_]-(o[C]/2-a[C]/2);break;case at:t[_]=t[_]+(o[C]/2-a[C]/2)}}return t}function pt(s,t){t===void 0&&(t={});var o=t,a=o.placement,f=a===void 0?s.placement:a,p=o.strategy,h=p===void 0?s.strategy:p,m=o.boundary,b=m===void 0?_o:m,_=o.rootBoundary,C=_===void 0?hi:_,y=o.elementContext,A=y===void 0?ct:y,w=o.altBoundary,N=w!==void 0&&w,S=o.padding,T=S===void 0?0:S,F=zo(typeof T!="number"?T:Lo(T,lt)),R=A===ct?Co:ct,D=s.rects.popper,z=s.elements[N?R:A],O=(function(ee,pe,he,H){var $e=pe==="clippingParents"?(function(W){var te=wn(Pn(W)),me=["absolute","fixed"].indexOf(Te(W).position)>=0&&ue(W)?$n(W):W;return We(me)?te.filter(function(Me){return We(Me)&&Vo(Me,me)&&Ce(Me)!=="body"}):[]})(ee):[].concat(pe),Ee=[].concat($e,[he]),gt=Ee[0],G=Ee.reduce(function(W,te){var me=jo(ee,te,H);return W.top=je(me.top,W.top),W.right=Fn(me.right,W.right),W.bottom=Fn(me.bottom,W.bottom),W.left=je(me.left,W.left),W},jo(ee,gt,H));return G.width=G.right-G.left,G.height=G.bottom-G.top,G.x=G.left,G.y=G.top,G})(We(z)?z:z.contextElement||De(s.elements.popper),b,C,h),V=ut(s.elements.reference),L=Ro({reference:V,element:D,placement:f}),P=Ni(Object.assign({},D,L)),I=A===ct?P:V,X={top:O.top-I.top+F.top,bottom:I.bottom-O.bottom+F.bottom,left:O.left-I.left+F.left,right:I.right-O.right+F.right},ae=s.modifiersData.offset;if(A===ct&&ae){var _e=ae[f];Object.keys(X).forEach(function(ee){var pe=[re,se].indexOf(ee)>=0?1:-1,he=[J,se].indexOf(ee)>=0?"y":"x";X[ee]+=_e[he]*pe})}return X}function hl(s,t){t===void 0&&(t={});var o=t,a=o.placement,f=o.boundary,p=o.rootBoundary,h=o.padding,m=o.flipVariations,b=o.allowedAutoPlacements,_=b===void 0?gi:b,C=ft(a),y=C?m?mi:mi.filter(function(N){return ft(N)===C}):lt,A=y.filter(function(N){return _.indexOf(N)>=0});A.length===0&&(A=y);var w=A.reduce(function(N,S){return N[S]=pt(s,{placement:S,boundary:f,rootBoundary:p,padding:h})[ke(S)],N},{});return Object.keys(w).sort(function(N,S){return w[N]-w[S]})}const xo={name:"flip",enabled:!0,phase:"main",fn:function(s){var t=s.state,o=s.options,a=s.name;if(!t.modifiersData[a]._skip){for(var f=o.mainAxis,p=f===void 0||f,h=o.altAxis,m=h===void 0||h,b=o.fallbackPlacements,_=o.padding,C=o.boundary,y=o.rootBoundary,A=o.altBoundary,w=o.flipVariations,N=w===void 0||w,S=o.allowedAutoPlacements,T=t.options.placement,F=ke(T),R=b||(F!==T&&N?(function(W){if(ke(W)===In)return[];var te=jn(W);return[Po(W),te,Po(te)]})(T):[jn(T)]),D=[T].concat(R).reduce(function(W,te){return W.concat(ke(te)===In?hl(t,{placement:te,boundary:C,rootBoundary:y,padding:_,flipVariations:N,allowedAutoPlacements:S}):te)},[]),z=t.rects.reference,O=t.rects.popper,V=new Map,L=!0,P=D[0],I=0;I<D.length;I++){var X=D[I],ae=ke(X),_e=ft(X)===Pe,ee=[J,se].indexOf(ae)>=0,pe=ee?"width":"height",he=pt(t,{placement:X,boundary:C,rootBoundary:y,altBoundary:A,padding:_}),H=ee?_e?re:Z:_e?se:J;z[pe]>O[pe]&&(H=jn(H));var $e=jn(H),Ee=[];if(p&&Ee.push(he[ae]<=0),m&&Ee.push(he[H]<=0,he[$e]<=0),Ee.every(function(W){return W})){P=X,L=!1;break}V.set(X,Ee)}if(L)for(var gt=function(W){var te=D.find(function(me){var Me=V.get(me);if(Me)return Me.slice(0,W).every(function(Gn){return Gn})});if(te)return P=te,"break"},G=N?3:1;G>0&&gt(G)!=="break";G--);t.placement!==P&&(t.modifiersData[a]._skip=!0,t.placement=P,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function qo(s,t,o){return o===void 0&&(o={x:0,y:0}),{top:s.top-t.height-o.y,right:s.right-t.width+o.x,bottom:s.bottom-t.height+o.y,left:s.left-t.width-o.x}}function Ho(s){return[J,re,se,Z].some(function(t){return s[t]>=0})}const Uo={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(s){var t=s.state,o=s.name,a=t.rects.reference,f=t.rects.popper,p=t.modifiersData.preventOverflow,h=pt(t,{elementContext:"reference"}),m=pt(t,{altBoundary:!0}),b=qo(h,a),_=qo(m,f,p),C=Ho(b),y=Ho(_);t.modifiersData[o]={referenceClippingOffsets:b,popperEscapeOffsets:_,isReferenceHidden:C,hasPopperEscaped:y},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":C,"data-popper-escaped":y})}},Yo={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(s){var t=s.state,o=s.options,a=s.name,f=o.offset,p=f===void 0?[0,0]:f,h=gi.reduce(function(C,y){return C[y]=(function(A,w,N){var S=ke(A),T=[Z,J].indexOf(S)>=0?-1:1,F=typeof N=="function"?N(Object.assign({},w,{placement:A})):N,R=F[0],D=F[1];return R=R||0,D=(D||0)*T,[Z,re].indexOf(S)>=0?{x:D,y:R}:{x:R,y:D}})(y,t.rects,p),C},{}),m=h[t.placement],b=m.x,_=m.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=b,t.modifiersData.popperOffsets.y+=_),t.modifiersData[a]=h}},Ti={name:"popperOffsets",enabled:!0,phase:"read",fn:function(s){var t=s.state,o=s.name;t.modifiersData[o]=Ro({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})},data:{}},Xo={name:"preventOverflow",enabled:!0,phase:"main",fn:function(s){var t=s.state,o=s.options,a=s.name,f=o.mainAxis,p=f===void 0||f,h=o.altAxis,m=h!==void 0&&h,b=o.boundary,_=o.rootBoundary,C=o.altBoundary,y=o.padding,A=o.tether,w=A===void 0||A,N=o.tetherOffset,S=N===void 0?0:N,T=pt(t,{boundary:b,rootBoundary:_,padding:y,altBoundary:C}),F=ke(t.placement),R=ft(t.placement),D=!R,z=Ci(F),O=z==="x"?"y":"x",V=t.modifiersData.popperOffsets,L=t.rects.reference,P=t.rects.popper,I=typeof S=="function"?S(Object.assign({},t.rects,{placement:t.placement})):S,X=typeof I=="number"?{mainAxis:I,altAxis:I}:Object.assign({mainAxis:0,altAxis:0},I),ae=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,_e={x:0,y:0};if(V){if(p){var ee,pe=z==="y"?J:Z,he=z==="y"?se:re,H=z==="y"?"height":"width",$e=V[z],Ee=$e+T[pe],gt=$e-T[he],G=w?-P[H]/2:0,W=R===Pe?L[H]:P[H],te=R===Pe?-P[H]:-L[H],me=t.elements.arrow,Me=w&&me?_i(me):{width:0,height:0},Gn=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},Ms=Gn[pe],zs=Gn[he],Qn=En(0,L[H],Me[H]),Ua=D?L[H]/2-G-Qn-Ms-X.mainAxis:W-Qn-Ms-X.mainAxis,Ya=D?-L[H]/2+G+Qn+zs+X.mainAxis:te+Qn+zs+X.mainAxis,Ri=t.elements.arrow&&$n(t.elements.arrow),Xa=Ri?z==="y"?Ri.clientTop||0:Ri.clientLeft||0:0,Ls=(ee=ae?.[z])!=null?ee:0,Ka=$e+Ya-Ls,Is=En(w?Fn(Ee,$e+Ua-Ls-Xa):Ee,$e,w?je(gt,Ka):gt);V[z]=Is,_e[z]=Is-$e}if(m){var Fs,Ga=z==="x"?J:Z,Qa=z==="x"?se:re,Ke=V[O],Jn=O==="y"?"height":"width",Ps=Ke+T[Ga],Ws=Ke-T[Qa],xi=[J,Z].indexOf(F)!==-1,js=(Fs=ae?.[O])!=null?Fs:0,Rs=xi?Ps:Ke-L[Jn]-P[Jn]-js+X.altAxis,xs=xi?Ke+L[Jn]+P[Jn]-js-X.altAxis:Ws,qs=w&&xi?(function(Ja,Za,qi){var Hs=En(Ja,Za,qi);return Hs>qi?qi:Hs})(Rs,Ke,xs):En(w?Rs:Ps,Ke,w?xs:Ws);V[O]=qs,_e[O]=qs-Ke}t.modifiersData[a]=_e}},requiresIfExists:["offset"]};function ml(s,t,o){o===void 0&&(o=!1);var a,f,p=ue(t),h=ue(t)&&(function(y){var A=y.getBoundingClientRect(),w=dt(A.width)/y.offsetWidth||1,N=dt(A.height)/y.offsetHeight||1;return w!==1||N!==1})(t),m=De(t),b=ut(s,h,o),_={scrollLeft:0,scrollTop:0},C={x:0,y:0};return(p||!p&&!o)&&((Ce(t)!=="body"||Si(m))&&(_=(a=t)!==le(a)&&ue(a)?{scrollLeft:(f=a).scrollLeft,scrollTop:f.scrollTop}:Ei(a)),ue(t)?((C=ut(t,!0)).x+=t.clientLeft,C.y+=t.clientTop):m&&(C.x=wi(m))),{x:b.left+_.scrollLeft-C.x,y:b.top+_.scrollTop-C.y,width:b.width,height:b.height}}function gl(s){var t=new Map,o=new Set,a=[];function f(p){o.add(p.name),[].concat(p.requires||[],p.requiresIfExists||[]).forEach(function(h){if(!o.has(h)){var m=t.get(h);m&&f(m)}}),a.push(p)}return s.forEach(function(p){t.set(p.name,p)}),s.forEach(function(p){o.has(p.name)||f(p)}),a}var Ko={placement:"bottom",modifiers:[],strategy:"absolute"};function Go(){for(var s=arguments.length,t=new Array(s),o=0;o<s;o++)t[o]=arguments[o];return!t.some(function(a){return!(a&&typeof a.getBoundingClientRect=="function")})}function Rn(s){s===void 0&&(s={});var t=s,o=t.defaultModifiers,a=o===void 0?[]:o,f=t.defaultOptions,p=f===void 0?Ko:f;return function(h,m,b){b===void 0&&(b=p);var _,C,y={placement:"bottom",orderedModifiers:[],options:Object.assign({},Ko,p),modifiersData:{},elements:{reference:h,popper:m},attributes:{},styles:{}},A=[],w=!1,N={state:y,setOptions:function(T){var F=typeof T=="function"?T(y.options):T;S(),y.options=Object.assign({},p,y.options,F),y.scrollParents={reference:We(h)?wn(h):h.contextElement?wn(h.contextElement):[],popper:wn(m)};var R,D,z=(function(O){var V=gl(O);return Bo.reduce(function(L,P){return L.concat(V.filter(function(I){return I.phase===P}))},[])})((R=[].concat(a,y.options.modifiers),D=R.reduce(function(O,V){var L=O[V.name];return O[V.name]=L?Object.assign({},L,V,{options:Object.assign({},L.options,V.options),data:Object.assign({},L.data,V.data)}):V,O},{}),Object.keys(D).map(function(O){return D[O]})));return y.orderedModifiers=z.filter(function(O){return O.enabled}),y.orderedModifiers.forEach(function(O){var V=O.name,L=O.options,P=L===void 0?{}:L,I=O.effect;if(typeof I=="function"){var X=I({state:y,name:V,instance:N,options:P});A.push(X||function(){})}}),N.update()},forceUpdate:function(){if(!w){var T=y.elements,F=T.reference,R=T.popper;if(Go(F,R)){y.rects={reference:ml(F,$n(R),y.options.strategy==="fixed"),popper:_i(R)},y.reset=!1,y.placement=y.options.placement,y.orderedModifiers.forEach(function(I){return y.modifiersData[I.name]=Object.assign({},I.data)});for(var D=0;D<y.orderedModifiers.length;D++)if(y.reset!==!0){var z=y.orderedModifiers[D],O=z.fn,V=z.options,L=V===void 0?{}:V,P=z.name;typeof O=="function"&&(y=O({state:y,options:L,name:P,instance:N})||y)}else y.reset=!1,D=-1}}},update:(_=function(){return new Promise(function(T){N.forceUpdate(),T(y)})},function(){return C||(C=new Promise(function(T){Promise.resolve().then(function(){C=void 0,T(_())})})),C}),destroy:function(){S(),w=!0}};if(!Go(h,m))return N;function S(){A.forEach(function(T){return T()}),A=[]}return N.setOptions(b).then(function(T){!w&&b.onFirstUpdate&&b.onFirstUpdate(T)}),N}}var vl=Rn(),bl=Rn({defaultModifiers:[$i,Ti,ki,bi]}),Ai=Rn({defaultModifiers:[$i,Ti,ki,bi,Yo,xo,Xo,Io,Uo]});const Qo=Object.freeze(Object.defineProperty({__proto__:null,afterMain:No,afterRead:Eo,afterWrite:Oo,applyStyles:bi,arrow:Io,auto:In,basePlacements:lt,beforeMain:wo,beforeRead:ko,beforeWrite:To,bottom:se,clippingParents:_o,computeStyles:ki,createPopper:Ai,createPopperBase:vl,createPopperLite:bl,detectOverflow:pt,end:at,eventListeners:$i,flip:xo,hide:Uo,left:Z,main:So,modifierPhases:Bo,offset:Yo,placements:gi,popper:ct,popperGenerator:Rn,popperOffsets:Ti,preventOverflow:Xo,read:$o,reference:Co,right:re,start:Pe,top:J,variationPlacements:mi,viewport:hi,write:Ao},Symbol.toStringTag,{value:"Module"})),Jo="dropdown",Re=".bs.dropdown",Oi=".data-api",yl="ArrowUp",Zo="ArrowDown",_l=`hide${Re}`,Cl=`hidden${Re}`,kl=`show${Re}`,$l=`shown${Re}`,es=`click${Re}${Oi}`,ts=`keydown${Re}${Oi}`,El=`keyup${Re}${Oi}`,ht="show",xe='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',wl=`${xe}.${ht}`,xn=".dropdown-menu",Sl=q()?"top-end":"top-start",Nl=q()?"top-start":"top-end",Tl=q()?"bottom-end":"bottom-start",Al=q()?"bottom-start":"bottom-end",Ol=q()?"left-start":"right-start",Bl=q()?"right-start":"left-start",Dl={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},Vl={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"};class ye extends be{constructor(t,o){super(t,o),this._popper=null,this._parent=this._element.parentNode,this._menu=k.next(this._element,xn)[0]||k.prev(this._element,xn)[0]||k.findOne(xn,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return Dl}static get DefaultType(){return Vl}static get NAME(){return Jo}toggle(){return this._isShown()?this.hide():this.show()}show(){if(M(this._element)||this._isShown())return;const t={relatedTarget:this._element};if(!g.trigger(this._element,kl,t).defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest(".navbar-nav"))for(const o of[].concat(...document.body.children))g.on(o,"mouseover",U);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(ht),this._element.classList.add(ht),g.trigger(this._element,$l,t)}}hide(){if(M(this._element)||!this._isShown())return;const t={relatedTarget:this._element};this._completeHide(t)}dispose(){this._popper&&this._popper.destroy(),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_completeHide(t){if(!g.trigger(this._element,_l,t).defaultPrevented){if("ontouchstart"in document.documentElement)for(const o of[].concat(...document.body.children))g.off(o,"mouseover",U);this._popper&&this._popper.destroy(),this._menu.classList.remove(ht),this._element.classList.remove(ht),this._element.setAttribute("aria-expanded","false"),Ne.removeDataAttribute(this._menu,"popper"),g.trigger(this._element,Cl,t)}}_getConfig(t){if(typeof(t=super._getConfig(t)).reference=="object"&&!E(t.reference)&&typeof t.reference.getBoundingClientRect!="function")throw new TypeError(`${Jo.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return t}_createPopper(){if(Qo===void 0)throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org/docs/v2/)");let t=this._element;this._config.reference==="parent"?t=this._parent:E(this._config.reference)?t=B(this._config.reference):typeof this._config.reference=="object"&&(t=this._config.reference);const o=this._getPopperConfig();this._popper=Ai(t,this._menu,o)}_isShown(){return this._menu.classList.contains(ht)}_getPlacement(){const t=this._parent;if(t.classList.contains("dropend"))return Ol;if(t.classList.contains("dropstart"))return Bl;if(t.classList.contains("dropup-center"))return"top";if(t.classList.contains("dropdown-center"))return"bottom";const o=getComputedStyle(this._menu).getPropertyValue("--bs-position").trim()==="end";return t.classList.contains("dropup")?o?Nl:Sl:o?Al:Tl}_detectNavbar(){return this._element.closest(".navbar")!==null}_getOffset(){const{offset:t}=this._config;return typeof t=="string"?t.split(",").map(o=>Number.parseInt(o,10)):typeof t=="function"?o=>t(o,this._element):t}_getPopperConfig(){const t={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return(this._inNavbar||this._config.display==="static")&&(Ne.setDataAttribute(this._menu,"popper","static"),t.modifiers=[{name:"applyStyles",enabled:!1}]),{...t,...K(this._config.popperConfig,[void 0,t])}}_selectMenuItem({key:t,target:o}){const a=k.find(".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",this._menu).filter(f=>x(f));a.length&&Se(a,o,t===Zo,!a.includes(o)).focus()}static jQueryInterface(t){return this.each(function(){const o=ye.getOrCreateInstance(this,t);if(typeof t=="string"){if(o[t]===void 0)throw new TypeError(`No method named "${t}"`);o[t]()}})}static clearMenus(t){if(t.button===2||t.type==="keyup"&&t.key!=="Tab")return;const o=k.find(wl);for(const a of o){const f=ye.getInstance(a);if(!f||f._config.autoClose===!1)continue;const p=t.composedPath(),h=p.includes(f._menu);if(p.includes(f._element)||f._config.autoClose==="inside"&&!h||f._config.autoClose==="outside"&&h||f._menu.contains(t.target)&&(t.type==="keyup"&&t.key==="Tab"||/input|select|option|textarea|form/i.test(t.target.tagName)))continue;const m={relatedTarget:f._element};t.type==="click"&&(m.clickEvent=t),f._completeHide(m)}}static dataApiKeydownHandler(t){const o=/input|textarea/i.test(t.target.tagName),a=t.key==="Escape",f=[yl,Zo].includes(t.key);if(!f&&!a||o&&!a)return;t.preventDefault();const p=this.matches(xe)?this:k.prev(this,xe)[0]||k.next(this,xe)[0]||k.findOne(xe,t.delegateTarget.parentNode),h=ye.getOrCreateInstance(p);if(f)return t.stopPropagation(),h.show(),void h._selectMenuItem(t);h._isShown()&&(t.stopPropagation(),h.hide(),p.focus())}}g.on(document,ts,xe,ye.dataApiKeydownHandler),g.on(document,ts,xn,ye.dataApiKeydownHandler),g.on(document,es,ye.clearMenus),g.on(document,El,ye.clearMenus),g.on(document,es,xe,function(s){s.preventDefault(),ye.getOrCreateInstance(this).toggle()}),Y(ye);const ns="backdrop",is="show",os=`mousedown.bs.${ns}`,Ml={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},zl={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};class ss extends bn{constructor(t){super(),this._config=this._getConfig(t),this._isAppended=!1,this._element=null}static get Default(){return Ml}static get DefaultType(){return zl}static get NAME(){return ns}show(t){if(!this._config.isVisible)return void K(t);this._append();const o=this._getElement();this._config.isAnimated&&ie(o),o.classList.add(is),this._emulateAnimation(()=>{K(t)})}hide(t){this._config.isVisible?(this._getElement().classList.remove(is),this._emulateAnimation(()=>{this.dispose(),K(t)})):K(t)}dispose(){this._isAppended&&(g.off(this._element,os),this._element.remove(),this._isAppended=!1)}_getElement(){if(!this._element){const t=document.createElement("div");t.className=this._config.className,this._config.isAnimated&&t.classList.add("fade"),this._element=t}return this._element}_configAfterMerge(t){return t.rootElement=B(t.rootElement),t}_append(){if(this._isAppended)return;const t=this._getElement();this._config.rootElement.append(t),g.on(t,os,()=>{K(this._config.clickCallback)}),this._isAppended=!0}_emulateAnimation(t){Ze(t,this._getElement(),this._config.isAnimated)}}const qn=".bs.focustrap",Ll=`focusin${qn}`,Il=`keydown.tab${qn}`,rs="backward",Fl={autofocus:!0,trapElement:null},Pl={autofocus:"boolean",trapElement:"element"};class ls extends bn{constructor(t){super(),this._config=this._getConfig(t),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return Fl}static get DefaultType(){return Pl}static get NAME(){return"focustrap"}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),g.off(document,qn),g.on(document,Ll,t=>this._handleFocusin(t)),g.on(document,Il,t=>this._handleKeydown(t)),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,g.off(document,qn))}_handleFocusin(t){const{trapElement:o}=this._config;if(t.target===document||t.target===o||o.contains(t.target))return;const a=k.focusableChildren(o);a.length===0?o.focus():this._lastTabNavDirection===rs?a[a.length-1].focus():a[0].focus()}_handleKeydown(t){t.key==="Tab"&&(this._lastTabNavDirection=t.shiftKey?rs:"forward")}}const as=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",cs=".sticky-top",Hn="padding-right",ds="margin-right";class Bi{constructor(){this._element=document.body}getWidth(){const t=document.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}hide(){const t=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,Hn,o=>o+t),this._setElementAttributes(as,Hn,o=>o+t),this._setElementAttributes(cs,ds,o=>o-t)}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,Hn),this._resetElementAttributes(as,Hn),this._resetElementAttributes(cs,ds)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(t,o,a){const f=this.getWidth();this._applyManipulationCallback(t,p=>{if(p!==this._element&&window.innerWidth>p.clientWidth+f)return;this._saveInitialAttribute(p,o);const h=window.getComputedStyle(p).getPropertyValue(o);p.style.setProperty(o,`${a(Number.parseFloat(h))}px`)})}_saveInitialAttribute(t,o){const a=t.style.getPropertyValue(o);a&&Ne.setDataAttribute(t,o,a)}_resetElementAttributes(t,o){this._applyManipulationCallback(t,a=>{const f=Ne.getDataAttribute(a,o);f!==null?(Ne.removeDataAttribute(a,o),a.style.setProperty(o,f)):a.style.removeProperty(o)})}_applyManipulationCallback(t,o){if(E(t))o(t);else for(const a of k.find(t,this._element))o(a)}}const fe=".bs.modal",Wl=`hide${fe}`,jl=`hidePrevented${fe}`,us=`hidden${fe}`,fs=`show${fe}`,Rl=`shown${fe}`,xl=`resize${fe}`,ql=`click.dismiss${fe}`,Hl=`mousedown.dismiss${fe}`,Ul=`keydown.dismiss${fe}`,Yl=`click${fe}.data-api`,ps="modal-open",hs="show",Di="modal-static",Xl={backdrop:!0,focus:!0,keyboard:!0},Kl={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"};class qe extends be{constructor(t,o){super(t,o),this._dialog=k.findOne(".modal-dialog",this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new Bi,this._addEventListeners()}static get Default(){return Xl}static get DefaultType(){return Kl}static get NAME(){return"modal"}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){this._isShown||this._isTransitioning||g.trigger(this._element,fs,{relatedTarget:t}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(ps),this._adjustDialog(),this._backdrop.show(()=>this._showElement(t)))}hide(){this._isShown&&!this._isTransitioning&&(g.trigger(this._element,Wl).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(hs),this._queueCallback(()=>this._hideModal(),this._element,this._isAnimated())))}dispose(){g.off(window,fe),g.off(this._dialog,fe),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new ss({isVisible:!!this._config.backdrop,isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new ls({trapElement:this._element})}_showElement(t){document.body.contains(this._element)||document.body.append(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.scrollTop=0;const o=k.findOne(".modal-body",this._dialog);o&&(o.scrollTop=0),ie(this._element),this._element.classList.add(hs),this._queueCallback(()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,g.trigger(this._element,Rl,{relatedTarget:t})},this._dialog,this._isAnimated())}_addEventListeners(){g.on(this._element,Ul,t=>{t.key==="Escape"&&(this._config.keyboard?this.hide():this._triggerBackdropTransition())}),g.on(window,xl,()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()}),g.on(this._element,Hl,t=>{g.one(this._element,ql,o=>{this._element===t.target&&this._element===o.target&&(this._config.backdrop!=="static"?this._config.backdrop&&this.hide():this._triggerBackdropTransition())})})}_hideModal(){this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._isTransitioning=!1,this._backdrop.hide(()=>{document.body.classList.remove(ps),this._resetAdjustments(),this._scrollBar.reset(),g.trigger(this._element,us)})}_isAnimated(){return this._element.classList.contains("fade")}_triggerBackdropTransition(){if(g.trigger(this._element,jl).defaultPrevented)return;const t=this._element.scrollHeight>document.documentElement.clientHeight,o=this._element.style.overflowY;o==="hidden"||this._element.classList.contains(Di)||(t||(this._element.style.overflowY="hidden"),this._element.classList.add(Di),this._queueCallback(()=>{this._element.classList.remove(Di),this._queueCallback(()=>{this._element.style.overflowY=o},this._dialog)},this._dialog),this._element.focus())}_adjustDialog(){const t=this._element.scrollHeight>document.documentElement.clientHeight,o=this._scrollBar.getWidth(),a=o>0;if(a&&!t){const f=q()?"paddingLeft":"paddingRight";this._element.style[f]=`${o}px`}if(!a&&t){const f=q()?"paddingRight":"paddingLeft";this._element.style[f]=`${o}px`}}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(t,o){return this.each(function(){const a=qe.getOrCreateInstance(this,t);if(typeof t=="string"){if(a[t]===void 0)throw new TypeError(`No method named "${t}"`);a[t](o)}})}}g.on(document,Yl,'[data-bs-toggle="modal"]',function(s){const t=k.getElementFromSelector(this);["A","AREA"].includes(this.tagName)&&s.preventDefault(),g.one(t,fs,a=>{a.defaultPrevented||g.one(t,us,()=>{x(this)&&this.focus()})});const o=k.findOne(".modal.show");o&&qe.getInstance(o).hide(),qe.getOrCreateInstance(t).toggle(this)}),Dn(qe),Y(qe);const Ae=".bs.offcanvas",ms=".data-api",Gl=`load${Ae}${ms}`,gs="show",vs="showing",bs="hiding",ys=".offcanvas.show",Ql=`show${Ae}`,Jl=`shown${Ae}`,Zl=`hide${Ae}`,_s=`hidePrevented${Ae}`,Cs=`hidden${Ae}`,ea=`resize${Ae}`,ta=`click${Ae}${ms}`,na=`keydown.dismiss${Ae}`,ia={backdrop:!0,keyboard:!0,scroll:!1},oa={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"};class Oe extends be{constructor(t,o){super(t,o),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return ia}static get DefaultType(){return oa}static get NAME(){return"offcanvas"}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){this._isShown||g.trigger(this._element,Ql,{relatedTarget:t}).defaultPrevented||(this._isShown=!0,this._backdrop.show(),this._config.scroll||new Bi().hide(),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(vs),this._queueCallback(()=>{this._config.scroll&&!this._config.backdrop||this._focustrap.activate(),this._element.classList.add(gs),this._element.classList.remove(vs),g.trigger(this._element,Jl,{relatedTarget:t})},this._element,!0))}hide(){this._isShown&&(g.trigger(this._element,Zl).defaultPrevented||(this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add(bs),this._backdrop.hide(),this._queueCallback(()=>{this._element.classList.remove(gs,bs),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||new Bi().reset(),g.trigger(this._element,Cs)},this._element,!0)))}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){const t=!!this._config.backdrop;return new ss({className:"offcanvas-backdrop",isVisible:t,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:t?()=>{this._config.backdrop!=="static"?this.hide():g.trigger(this._element,_s)}:null})}_initializeFocusTrap(){return new ls({trapElement:this._element})}_addEventListeners(){g.on(this._element,na,t=>{t.key==="Escape"&&(this._config.keyboard?this.hide():g.trigger(this._element,_s))})}static jQueryInterface(t){return this.each(function(){const o=Oe.getOrCreateInstance(this,t);if(typeof t=="string"){if(o[t]===void 0||t.startsWith("_")||t==="constructor")throw new TypeError(`No method named "${t}"`);o[t](this)}})}}g.on(document,ta,'[data-bs-toggle="offcanvas"]',function(s){const t=k.getElementFromSelector(this);if(["A","AREA"].includes(this.tagName)&&s.preventDefault(),M(this))return;g.one(t,Cs,()=>{x(this)&&this.focus()});const o=k.findOne(ys);o&&o!==t&&Oe.getInstance(o).hide(),Oe.getOrCreateInstance(t).toggle(this)}),g.on(window,Gl,()=>{for(const s of k.find(ys))Oe.getOrCreateInstance(s).show()}),g.on(window,ea,()=>{for(const s of k.find("[aria-modal][class*=show][class*=offcanvas-]"))getComputedStyle(s).position!=="fixed"&&Oe.getOrCreateInstance(s).hide()}),Dn(Oe),Y(Oe);const ks={"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],dd:[],div:[],dl:[],dt:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","srcset","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},sa=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),ra=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,la=(s,t)=>{const o=s.nodeName.toLowerCase();return t.includes(o)?!sa.has(o)||!!ra.test(s.nodeValue):t.filter(a=>a instanceof RegExp).some(a=>a.test(o))},aa={allowList:ks,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"<div></div>"},ca={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},da={entry:"(string|element|function|null)",selector:"(string|element)"};class ua extends bn{constructor(t){super(),this._config=this._getConfig(t)}static get Default(){return aa}static get DefaultType(){return ca}static get NAME(){return"TemplateFactory"}getContent(){return Object.values(this._config.content).map(t=>this._resolvePossibleFunction(t)).filter(Boolean)}hasContent(){return this.getContent().length>0}changeContent(t){return this._checkContent(t),this._config.content={...this._config.content,...t},this}toHtml(){const t=document.createElement("div");t.innerHTML=this._maybeSanitize(this._config.template);for(const[f,p]of Object.entries(this._config.content))this._setContent(t,p,f);const o=t.children[0],a=this._resolvePossibleFunction(this._config.extraClass);return a&&o.classList.add(...a.split(" ")),o}_typeCheckConfig(t){super._typeCheckConfig(t),this._checkContent(t.content)}_checkContent(t){for(const[o,a]of Object.entries(t))super._typeCheckConfig({selector:o,entry:a},da)}_setContent(t,o,a){const f=k.findOne(a,t);f&&((o=this._resolvePossibleFunction(o))?E(o)?this._putElementInTemplate(B(o),f):this._config.html?f.innerHTML=this._maybeSanitize(o):f.textContent=o:f.remove())}_maybeSanitize(t){return this._config.sanitize?(function(o,a,f){if(!o.length)return o;if(f&&typeof f=="function")return f(o);const p=new window.DOMParser().parseFromString(o,"text/html"),h=[].concat(...p.body.querySelectorAll("*"));for(const m of h){const b=m.nodeName.toLowerCase();if(!Object.keys(a).includes(b)){m.remove();continue}const _=[].concat(...m.attributes),C=[].concat(a["*"]||[],a[b]||[]);for(const y of _)la(y,C)||m.removeAttribute(y.nodeName)}return p.body.innerHTML})(t,this._config.allowList,this._config.sanitizeFn):t}_resolvePossibleFunction(t){return K(t,[void 0,this])}_putElementInTemplate(t,o){if(this._config.html)return o.innerHTML="",void o.append(t);o.textContent=t.textContent}}const fa=new Set(["sanitize","allowList","sanitizeFn"]),Vi="fade",Un="show",pa=".tooltip-inner",$s=".modal",Es="hide.bs.modal",Sn="hover",Mi="focus",zi="click",ha={AUTO:"auto",TOP:"top",RIGHT:q()?"left":"right",BOTTOM:"bottom",LEFT:q()?"right":"left"},ma={allowList:ks,animation:!0,boundary:"clippingParents",container:!1,customClass:"",delay:0,fallbackPlacements:["top","right","bottom","left"],html:!1,offset:[0,6],placement:"top",popperConfig:null,sanitize:!0,sanitizeFn:null,selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',title:"",trigger:"hover focus"},ga={allowList:"object",animation:"boolean",boundary:"(string|element)",container:"(string|element|boolean)",customClass:"(string|function)",delay:"(number|object)",fallbackPlacements:"array",html:"boolean",offset:"(array|string|function)",placement:"(string|function)",popperConfig:"(null|object|function)",sanitize:"boolean",sanitizeFn:"(null|function)",selector:"(string|boolean)",template:"string",title:"(string|element|function)",trigger:"string"};class He extends be{constructor(t,o){if(Qo===void 0)throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org/docs/v2/)");super(t,o),this._isEnabled=!0,this._timeout=0,this._isHovered=null,this._activeTrigger={},this._popper=null,this._templateFactory=null,this._newContent=null,this.tip=null,this._setListeners(),this._config.selector||this._fixTitle()}static get Default(){return ma}static get DefaultType(){return ga}static get NAME(){return"tooltip"}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(){this._isEnabled&&(this._isShown()?this._leave():this._enter())}dispose(){clearTimeout(this._timeout),g.off(this._element.closest($s),Es,this._hideModalHandler),this._element.getAttribute("data-bs-original-title")&&this._element.setAttribute("title",this._element.getAttribute("data-bs-original-title")),this._disposePopper(),super.dispose()}show(){if(this._element.style.display==="none")throw new Error("Please use show on visible elements");if(!this._isWithContent()||!this._isEnabled)return;const t=g.trigger(this._element,this.constructor.eventName("show")),o=(Q(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(t.defaultPrevented||!o)return;this._disposePopper();const a=this._getTipElement();this._element.setAttribute("aria-describedby",a.getAttribute("id"));const{container:f}=this._config;if(this._element.ownerDocument.documentElement.contains(this.tip)||(f.append(a),g.trigger(this._element,this.constructor.eventName("inserted"))),this._popper=this._createPopper(a),a.classList.add(Un),"ontouchstart"in document.documentElement)for(const p of[].concat(...document.body.children))g.on(p,"mouseover",U);this._queueCallback(()=>{g.trigger(this._element,this.constructor.eventName("shown")),this._isHovered===!1&&this._leave(),this._isHovered=!1},this.tip,this._isAnimated())}hide(){if(this._isShown()&&!g.trigger(this._element,this.constructor.eventName("hide")).defaultPrevented){if(this._getTipElement().classList.remove(Un),"ontouchstart"in document.documentElement)for(const t of[].concat(...document.body.children))g.off(t,"mouseover",U);this._activeTrigger[zi]=!1,this._activeTrigger[Mi]=!1,this._activeTrigger[Sn]=!1,this._isHovered=null,this._queueCallback(()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute("aria-describedby"),g.trigger(this._element,this.constructor.eventName("hidden")))},this.tip,this._isAnimated())}}update(){this._popper&&this._popper.update()}_isWithContent(){return!!this._getTitle()}_getTipElement(){return this.tip||(this.tip=this._createTipElement(this._newContent||this._getContentForTemplate())),this.tip}_createTipElement(t){const o=this._getTemplateFactory(t).toHtml();if(!o)return null;o.classList.remove(Vi,Un),o.classList.add(`bs-${this.constructor.NAME}-auto`);const a=(f=>{do f+=Math.floor(1e6*Math.random());while(document.getElementById(f));return f})(this.constructor.NAME).toString();return o.setAttribute("id",a),this._isAnimated()&&o.classList.add(Vi),o}setContent(t){this._newContent=t,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(t){return this._templateFactory?this._templateFactory.changeContent(t):this._templateFactory=new ua({...this._config,content:t,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{[pa]:this._getTitle()}}_getTitle(){return this._resolvePossibleFunction(this._config.title)||this._element.getAttribute("data-bs-original-title")}_initializeOnDelegatedTarget(t){return this.constructor.getOrCreateInstance(t.delegateTarget,this._getDelegateConfig())}_isAnimated(){return this._config.animation||this.tip&&this.tip.classList.contains(Vi)}_isShown(){return this.tip&&this.tip.classList.contains(Un)}_createPopper(t){const o=K(this._config.placement,[this,t,this._element]),a=ha[o.toUpperCase()];return Ai(this._element,t,this._getPopperConfig(a))}_getOffset(){const{offset:t}=this._config;return typeof t=="string"?t.split(",").map(o=>Number.parseInt(o,10)):typeof t=="function"?o=>t(o,this._element):t}_resolvePossibleFunction(t){return K(t,[this._element,this._element])}_getPopperConfig(t){const o={placement:t,modifiers:[{name:"flip",options:{fallbackPlacements:this._config.fallbackPlacements}},{name:"offset",options:{offset:this._getOffset()}},{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"arrow",options:{element:`.${this.constructor.NAME}-arrow`}},{name:"preSetPlacement",enabled:!0,phase:"beforeMain",fn:a=>{this._getTipElement().setAttribute("data-popper-placement",a.state.placement)}}]};return{...o,...K(this._config.popperConfig,[void 0,o])}}_setListeners(){const t=this._config.trigger.split(" ");for(const o of t)if(o==="click")g.on(this._element,this.constructor.eventName("click"),this._config.selector,a=>{const f=this._initializeOnDelegatedTarget(a);f._activeTrigger[zi]=!(f._isShown()&&f._activeTrigger[zi]),f.toggle()});else if(o!=="manual"){const a=o===Sn?this.constructor.eventName("mouseenter"):this.constructor.eventName("focusin"),f=o===Sn?this.constructor.eventName("mouseleave"):this.constructor.eventName("focusout");g.on(this._element,a,this._config.selector,p=>{const h=this._initializeOnDelegatedTarget(p);h._activeTrigger[p.type==="focusin"?Mi:Sn]=!0,h._enter()}),g.on(this._element,f,this._config.selector,p=>{const h=this._initializeOnDelegatedTarget(p);h._activeTrigger[p.type==="focusout"?Mi:Sn]=h._element.contains(p.relatedTarget),h._leave()})}this._hideModalHandler=()=>{this._element&&this.hide()},g.on(this._element.closest($s),Es,this._hideModalHandler)}_fixTitle(){const t=this._element.getAttribute("title");t&&(this._element.getAttribute("aria-label")||this._element.textContent.trim()||this._element.setAttribute("aria-label",t),this._element.setAttribute("data-bs-original-title",t),this._element.removeAttribute("title"))}_enter(){this._isShown()||this._isHovered?this._isHovered=!0:(this._isHovered=!0,this._setTimeout(()=>{this._isHovered&&this.show()},this._config.delay.show))}_leave(){this._isWithActiveTrigger()||(this._isHovered=!1,this._setTimeout(()=>{this._isHovered||this.hide()},this._config.delay.hide))}_setTimeout(t,o){clearTimeout(this._timeout),this._timeout=setTimeout(t,o)}_isWithActiveTrigger(){return Object.values(this._activeTrigger).includes(!0)}_getConfig(t){const o=Ne.getDataAttributes(this._element);for(const a of Object.keys(o))fa.has(a)&&delete o[a];return t={...o,...typeof t=="object"&&t?t:{}},t=this._mergeConfigObj(t),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}_configAfterMerge(t){return t.container=t.container===!1?document.body:B(t.container),typeof t.delay=="number"&&(t.delay={show:t.delay,hide:t.delay}),typeof t.title=="number"&&(t.title=t.title.toString()),typeof t.content=="number"&&(t.content=t.content.toString()),t}_getDelegateConfig(){const t={};for(const[o,a]of Object.entries(this._config))this.constructor.Default[o]!==a&&(t[o]=a);return t.selector=!1,t.trigger="manual",t}_disposePopper(){this._popper&&(this._popper.destroy(),this._popper=null),this.tip&&(this.tip.remove(),this.tip=null)}static jQueryInterface(t){return this.each(function(){const o=He.getOrCreateInstance(this,t);if(typeof t=="string"){if(o[t]===void 0)throw new TypeError(`No method named "${t}"`);o[t]()}})}}Y(He);const va=".popover-header",ba=".popover-body",ya={...He.Default,content:"",offset:[0,8],placement:"right",template:'<div class="popover" role="tooltip"><div class="popover-arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>',trigger:"click"},_a={...He.DefaultType,content:"(null|string|element|function)"};class Yn extends He{static get Default(){return ya}static get DefaultType(){return _a}static get NAME(){return"popover"}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{[va]:this._getTitle(),[ba]:this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(t){return this.each(function(){const o=Yn.getOrCreateInstance(this,t);if(typeof t=="string"){if(o[t]===void 0)throw new TypeError(`No method named "${t}"`);o[t]()}})}}Y(Yn);const Li=".bs.scrollspy",Ca=`activate${Li}`,ws=`click${Li}`,ka=`load${Li}.data-api`,mt="active",Ii="[href]",Ss=".nav-link",$a=`${Ss}, .nav-item > ${Ss}, .list-group-item`,Ea={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null,threshold:[.1,.5,1]},wa={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element",threshold:"array"};class Nn extends be{constructor(t,o){super(t,o),this._targetLinks=new Map,this._observableSections=new Map,this._rootElement=getComputedStyle(this._element).overflowY==="visible"?null:this._element,this._activeTarget=null,this._observer=null,this._previousScrollData={visibleEntryTop:0,parentScrollTop:0},this.refresh()}static get Default(){return Ea}static get DefaultType(){return wa}static get NAME(){return"scrollspy"}refresh(){this._initializeTargetsAndObservables(),this._maybeEnableSmoothScroll(),this._observer?this._observer.disconnect():this._observer=this._getNewObserver();for(const t of this._observableSections.values())this._observer.observe(t)}dispose(){this._observer.disconnect(),super.dispose()}_configAfterMerge(t){return t.target=B(t.target)||document.body,t.rootMargin=t.offset?`${t.offset}px 0px -30%`:t.rootMargin,typeof t.threshold=="string"&&(t.threshold=t.threshold.split(",").map(o=>Number.parseFloat(o))),t}_maybeEnableSmoothScroll(){this._config.smoothScroll&&(g.off(this._config.target,ws),g.on(this._config.target,ws,Ii,t=>{const o=this._observableSections.get(t.target.hash);if(o){t.preventDefault();const a=this._rootElement||window,f=o.offsetTop-this._element.offsetTop;if(a.scrollTo)return void a.scrollTo({top:f,behavior:"smooth"});a.scrollTop=f}}))}_getNewObserver(){const t={root:this._rootElement,threshold:this._config.threshold,rootMargin:this._config.rootMargin};return new IntersectionObserver(o=>this._observerCallback(o),t)}_observerCallback(t){const o=h=>this._targetLinks.get(`#${h.target.id}`),a=h=>{this._previousScrollData.visibleEntryTop=h.target.offsetTop,this._process(o(h))},f=(this._rootElement||document.documentElement).scrollTop,p=f>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=f;for(const h of t){if(!h.isIntersecting){this._activeTarget=null,this._clearActiveClass(o(h));continue}const m=h.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(p&&m){if(a(h),!f)return}else p||m||a(h)}}_initializeTargetsAndObservables(){this._targetLinks=new Map,this._observableSections=new Map;const t=k.find(Ii,this._config.target);for(const o of t){if(!o.hash||M(o))continue;const a=k.findOne(decodeURI(o.hash),this._element);x(a)&&(this._targetLinks.set(decodeURI(o.hash),o),this._observableSections.set(o.hash,a))}}_process(t){this._activeTarget!==t&&(this._clearActiveClass(this._config.target),this._activeTarget=t,t.classList.add(mt),this._activateParents(t),g.trigger(this._element,Ca,{relatedTarget:t}))}_activateParents(t){if(t.classList.contains("dropdown-item"))k.findOne(".dropdown-toggle",t.closest(".dropdown")).classList.add(mt);else for(const o of k.parents(t,".nav, .list-group"))for(const a of k.prev(o,$a))a.classList.add(mt)}_clearActiveClass(t){t.classList.remove(mt);const o=k.find(`${Ii}.${mt}`,t);for(const a of o)a.classList.remove(mt)}static jQueryInterface(t){return this.each(function(){const o=Nn.getOrCreateInstance(this,t);if(typeof t=="string"){if(o[t]===void 0||t.startsWith("_")||t==="constructor")throw new TypeError(`No method named "${t}"`);o[t]()}})}}g.on(window,ka,()=>{for(const s of k.find('[data-bs-spy="scroll"]'))Nn.getOrCreateInstance(s)}),Y(Nn);const Ue=".bs.tab",Sa=`hide${Ue}`,Na=`hidden${Ue}`,Ta=`show${Ue}`,Aa=`shown${Ue}`,Oa=`click${Ue}`,Ba=`keydown${Ue}`,Da=`load${Ue}`,Va="ArrowLeft",Ns="ArrowRight",Ma="ArrowUp",Ts="ArrowDown",Fi="Home",As="End",Ye="active",Os="fade",Pi="show",Bs=".dropdown-toggle",Wi=`:not(${Bs})`,Ds='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',ji=`.nav-link${Wi}, .list-group-item${Wi}, [role="tab"]${Wi}, ${Ds}`,za=`.${Ye}[data-bs-toggle="tab"], .${Ye}[data-bs-toggle="pill"], .${Ye}[data-bs-toggle="list"]`;class Xe extends be{constructor(t){super(t),this._parent=this._element.closest('.list-group, .nav, [role="tablist"]'),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),g.on(this._element,Ba,o=>this._keydown(o)))}static get NAME(){return"tab"}show(){const t=this._element;if(this._elemIsActive(t))return;const o=this._getActiveElem(),a=o?g.trigger(o,Sa,{relatedTarget:t}):null;g.trigger(t,Ta,{relatedTarget:o}).defaultPrevented||a&&a.defaultPrevented||(this._deactivate(o,t),this._activate(t,o))}_activate(t,o){t&&(t.classList.add(Ye),this._activate(k.getElementFromSelector(t)),this._queueCallback(()=>{t.getAttribute("role")==="tab"?(t.removeAttribute("tabindex"),t.setAttribute("aria-selected",!0),this._toggleDropDown(t,!0),g.trigger(t,Aa,{relatedTarget:o})):t.classList.add(Pi)},t,t.classList.contains(Os)))}_deactivate(t,o){t&&(t.classList.remove(Ye),t.blur(),this._deactivate(k.getElementFromSelector(t)),this._queueCallback(()=>{t.getAttribute("role")==="tab"?(t.setAttribute("aria-selected",!1),t.setAttribute("tabindex","-1"),this._toggleDropDown(t,!1),g.trigger(t,Na,{relatedTarget:o})):t.classList.remove(Pi)},t,t.classList.contains(Os)))}_keydown(t){if(![Va,Ns,Ma,Ts,Fi,As].includes(t.key))return;t.stopPropagation(),t.preventDefault();const o=this._getChildren().filter(f=>!M(f));let a;if([Fi,As].includes(t.key))a=o[t.key===Fi?0:o.length-1];else{const f=[Ns,Ts].includes(t.key);a=Se(o,t.target,f,!0)}a&&(a.focus({preventScroll:!0}),Xe.getOrCreateInstance(a).show())}_getChildren(){return k.find(ji,this._parent)}_getActiveElem(){return this._getChildren().find(t=>this._elemIsActive(t))||null}_setInitialAttributes(t,o){this._setAttributeIfNotExists(t,"role","tablist");for(const a of o)this._setInitialAttributesOnChild(a)}_setInitialAttributesOnChild(t){t=this._getInnerElement(t);const o=this._elemIsActive(t),a=this._getOuterElement(t);t.setAttribute("aria-selected",o),a!==t&&this._setAttributeIfNotExists(a,"role","presentation"),o||t.setAttribute("tabindex","-1"),this._setAttributeIfNotExists(t,"role","tab"),this._setInitialAttributesOnTargetPanel(t)}_setInitialAttributesOnTargetPanel(t){const o=k.getElementFromSelector(t);o&&(this._setAttributeIfNotExists(o,"role","tabpanel"),t.id&&this._setAttributeIfNotExists(o,"aria-labelledby",`${t.id}`))}_toggleDropDown(t,o){const a=this._getOuterElement(t);if(!a.classList.contains("dropdown"))return;const f=(p,h)=>{const m=k.findOne(p,a);m&&m.classList.toggle(h,o)};f(Bs,Ye),f(".dropdown-menu",Pi),a.setAttribute("aria-expanded",o)}_setAttributeIfNotExists(t,o,a){t.hasAttribute(o)||t.setAttribute(o,a)}_elemIsActive(t){return t.classList.contains(Ye)}_getInnerElement(t){return t.matches(ji)?t:k.findOne(ji,t)}_getOuterElement(t){return t.closest(".nav-item, .list-group-item")||t}static jQueryInterface(t){return this.each(function(){const o=Xe.getOrCreateInstance(this);if(typeof t=="string"){if(o[t]===void 0||t.startsWith("_")||t==="constructor")throw new TypeError(`No method named "${t}"`);o[t]()}})}}g.on(document,Oa,Ds,function(s){["A","AREA"].includes(this.tagName)&&s.preventDefault(),M(this)||Xe.getOrCreateInstance(this).show()}),g.on(window,Da,()=>{for(const s of k.find(za))Xe.getOrCreateInstance(s)}),Y(Xe);const Ve=".bs.toast",La=`mouseover${Ve}`,Ia=`mouseout${Ve}`,Fa=`focusin${Ve}`,Pa=`focusout${Ve}`,Wa=`hide${Ve}`,ja=`hidden${Ve}`,Ra=`show${Ve}`,xa=`shown${Ve}`,Vs="hide",Xn="show",Kn="showing",qa={animation:"boolean",autohide:"boolean",delay:"number"},Ha={animation:!0,autohide:!0,delay:5e3};class Tn extends be{constructor(t,o){super(t,o),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return Ha}static get DefaultType(){return qa}static get NAME(){return"toast"}show(){g.trigger(this._element,Ra).defaultPrevented||(this._clearTimeout(),this._config.animation&&this._element.classList.add("fade"),this._element.classList.remove(Vs),ie(this._element),this._element.classList.add(Xn,Kn),this._queueCallback(()=>{this._element.classList.remove(Kn),g.trigger(this._element,xa),this._maybeScheduleHide()},this._element,this._config.animation))}hide(){this.isShown()&&(g.trigger(this._element,Wa).defaultPrevented||(this._element.classList.add(Kn),this._queueCallback(()=>{this._element.classList.add(Vs),this._element.classList.remove(Kn,Xn),g.trigger(this._element,ja)},this._element,this._config.animation)))}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(Xn),super.dispose()}isShown(){return this._element.classList.contains(Xn)}_maybeScheduleHide(){this._config.autohide&&(this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout(()=>{this.hide()},this._config.delay)))}_onInteraction(t,o){switch(t.type){case"mouseover":case"mouseout":this._hasMouseInteraction=o;break;case"focusin":case"focusout":this._hasKeyboardInteraction=o}if(o)return void this._clearTimeout();const a=t.relatedTarget;this._element===a||this._element.contains(a)||this._maybeScheduleHide()}_setListeners(){g.on(this._element,La,t=>this._onInteraction(t,!0)),g.on(this._element,Ia,t=>this._onInteraction(t,!1)),g.on(this._element,Fa,t=>this._onInteraction(t,!0)),g.on(this._element,Pa,t=>this._onInteraction(t,!1))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(t){return this.each(function(){const o=Tn.getOrCreateInstance(this,t);if(typeof t=="string"){if(o[t]===void 0)throw new TypeError(`No method named "${t}"`);o[t](this)}})}}return Dn(Tn),Y(Tn),{Alert:yn,Button:_n,Carousel:ot,Collapse:rt,Dropdown:ye,Modal:qe,Offcanvas:Oe,Popover:Yn,ScrollSpy:Nn,Tab:Xe,Toast:Tn,Tooltip:He}})})(ni)),ni.exports}var Wc=Pc();const Ji=Ic(Wc);function cr(e,i=!0){const l=document.getElementById(e);let r=l?.parentElement;for(;r;){const c=(r.getAttribute("class")??"").match(/cl-tab-[0-9]+/);if(c){const u=document.querySelector(`input.${c}`);if(u){u.checked=!0;break}}r=r.parentElement}setTimeout(()=>{i?l?.scrollIntoView({behavior:"smooth"}):l?.scrollIntoView()},0)}let we=null;function mn(){we?.hide(),we=null}function Zi(e,i){mn();const l=document.getElementById(e);if(l){we=new Ji.Modal(l,{backdrop:"static"}),we.value=i,we.id=e,we.show();const r=document.querySelector(`#${e} [autofocus]`);r&&r.focus()}}function ii(e){return Ji.Modal.getInstance(document.getElementById(e))?.value}function jc(e){return we?e?we.id===e&&we._isShown:we._isShown:!1}function dr(e,i=0,l=25){return e?.slice(i*l,i*l+l)??[]}function Rc(e="#invalid"){document.querySelector(e)?.focus()}function ur(e,i=[]){for(const r of i)r.valid=!0;document.querySelector(`#${e} [autofocus]`)?.focus()}function fr(e,i){e&&(e.modelValue=i,e.valid=!0)}function pr(e){const i=document.querySelector(`#${e}`);return i?(document.querySelectorAll(`#${e} input, #${e} .form-control`).forEach(l=>{l.focus(),l.blur()}),i.checkValidity()===!1||document.querySelector(`#${e} :invalid, #${e} .invalid`)?(eo(e),!1):!0):(console.error("can’t find/validate form",e),!1)}async function hr(e){const i=document.getElementById(e);return i?(document.querySelectorAll(`#${e} input, #${e} .form-control`).forEach(l=>{l.focus(),l.blur()}),document.querySelectorAll(`#${e} .ace_editor`).forEach(l=>{l.click()}),new Promise(l=>setTimeout(()=>{if(i.checkValidity()===!1||document.querySelector(`#${e} :invalid, #${e} .invalid`)){eo(e),l(!1);return}l(!0)}))):(console.error("can’t find/validate form",e),Promise.resolve(!1))}function xc(e){document.querySelector(`#${e} [autofocus]`)?.focus()}function eo(e){document.querySelector(`#${e} :invalid, #${e} .invalid`)?.focus()}function qc(e){return e<1024?`${e}B`:e<1024*1024?`${Math.floor(e/1024)}kB`:e<1024*1024*1024?`${Math.floor(e/1024/1024)}MB`:`${Math.floor(e/1024/1024/1024)}GB`}function mr(e){const i=new Intl.DateTimeFormat("en",{year:"numeric"}).format(e),l=new Intl.DateTimeFormat("en",{month:"short"}).format(e);return`${new Intl.DateTimeFormat("en",{day:"2-digit"}).format(e)} ${l} ${i}`}function gr(e,i=!1){const[l,r,c]=[(""+e.getUTCHours()).padStart(2,"0"),(""+e.getUTCMinutes()).padStart(2,"0"),(""+e.getUTCSeconds()).padStart(2,"0")];return i?`${l}:${r}:${c}`:`${l}:${r}`}function Hc(e,i=!1){return`${mr(e)} ${gr(e,i)}`}function Uc(e,i,l=!0,r=!1){let c=i.getTime()-e.getTime();r?c+=1:l?c+=1e3:c+=60*1e3;const u=(""+c%1e3).padStart(3,"0");c=Math.floor(c/1e3);const d=(""+c%60).padStart(2,"0");c=Math.floor(c/60);const v=(""+c%60).padStart(2,"0");c=Math.floor(c/60);const E=(""+c).padStart(2,"0");return r?`${E}:${v}:${d}.${u}`:l?`${E}:${v}:${d}`:`${E}:${v}`}function Yc(e){const i=new Intl.DateTimeFormat("en",{year:"numeric"}).format(e);return`${new Intl.DateTimeFormat("en",{month:"short"}).format(e)} ${i}`}function ri(e,i=0){return e.toLocaleString("en",{minimumFractionDigits:i})}function Xc(e,i,l=2){switch(i){case"EUR":i="€";break;case"USD":i="$";break}return`${i} ${ri(e/10**l,l)}`}function Kc(e,i){return`${ri(e)} - ${ri(i)}`}function vr(e){return`**** **** **** ${e.replace(/ /g,"").substr(-4)}`}function Gc(e,i,l=e.ID_FORM){if(l){if(pr(l)&&!e.submitting)return e.submitting=!0,i().finally(()=>{e.submitting=!1})}else if(!e.submitting)return e.submitting=!0,i().finally(()=>{e.submitting=!1});return Promise.resolve()}function Qc(e,i,l=e.ID_FORM){return e.submitting?Promise.resolve():hr(l).then(r=>{if(r)return e.submitting=!0,i().finally(()=>{e.submitting=!1})})}function yt(e,i){const l=i.split("."),r=l.shift(),c=e[r];return[void 0,null].includes(c)?c:l.length>0?yt(c,l.join(".")):c}function br(e,i,l="ASC",r=!1){if(!e)return[];const c=typeof e=="function"?[...e()]:[...e],u=(d,v)=>d.localeCompare(v,void 0,{ignorePunctuation:!0});return l==="ASC"?c.sort((d,v)=>(d=yt(d,i)??"",v=yt(v,i)??"",typeof d=="string"&&typeof v=="string"?r?u(d.toUpperCase(),v.toUpperCase()):u(d,v):d>v?1:d<v?-1:0)):c.sort((d,v)=>(d=yt(d,i)??"",v=yt(v,i)??"",typeof d=="string"&&typeof v=="string"?r?u(v.toUpperCase(),d.toUpperCase()):u(v,d):d<v?1:d>v?-1:0))}function yr(e,i=0,l="ASC"){return{col:i,order:l,set:function(r,c){const u=this.sort(r,c);this.col=r,this.order=u},get:function(r){return this.col===r?this.order:"NONE"},sorted:[],sorter:e,sort:function(r=this.col,c=this.order){const{sorted:u,sortedOrder:d}=this.sorter(r,c);return this.sorted=u,d}}}function Jc(e,i,l=0,r=()=>0,c=()=>Number.MAX_SAFE_INTEGER){return yr((u,d)=>({sorted:dr(br(e,i[u],d),r(),c()),sortedOrder:d}),l)}function Zc(e,i=500,l="none"){clearTimeout(Js.get(l)),Js.set(l,setTimeout(e,i))}const Js=new Map;function ed(e=3,i=["lorem","ipsum","dolor","sit","amet","consectetur","adipiscing","elit","eiusmod","tempor","incididunt","labore","et","dolore","magna","aliqua"]){let l="";for(let r=0;r<e;r++)l+=" "+i[Math.floor(Math.random()*i.length)];return l.substr(1)}function td(e=3,i=["alpha","beta","gamma","delta","epsilon","zeta","eta","theta","iota","kappa","lambda","omicorn"]){const l=[];for(let r=0;r<e;r++)l.push(i[Math.floor(Math.random()*i.length)]);return l}function nd(e){navigator.clipboard.writeText(e)}function id(e,i=[],l=[],r=!0){const c=[];for(const u of i)if(typeof u=="function")c.push(u());else if(u){const d=u.shift();c.push(d(...u))}for(const u of l)if(typeof u=="function")c.push(u(!1));else if(u){const d=u.shift();c.push(d(u.shift(),!1))}return r?(e.loading=Promise.all(c).finally(()=>{r&&(e.loading=null)}),e.loading):Promise.all(c)}function od(e,i=[],l=[],r=!0){const c=[];for(const u of i)if(typeof u=="function")c.push(u(!0));else if(u){const d=u.shift();c.push(d(!0,...u))}for(const u of l)if(typeof u=="function")c.push(u(!1));else if(u){const d=u.shift();c.push(d(!1,...u))}return r?(e.loading=Promise.all(c).finally(()=>{r&&(e.loading=null)}),e.loading):Promise.all(c)}function sd(e){return new Promise(i=>setTimeout(i,e))}function rd(e){return e}function ld(e){return e}function ad(e){return e}const cd=n.defineComponent({name:"ClBackCancelOk",props:{ok:{type:String,default:"Ok"},back:{type:String,default:"Back"},cancel:{type:String,default:"Cancel"},disabled:{type:Boolean,default:!1},dirty:{type:Boolean,default:!1},hidden:{type:Boolean,default:!1},backHidden:{type:Boolean,default:!1},spinner:{type:Boolean,default:!1}},emits:["ok","cancel"],data(){return{ID_MODAL:"cl-modal-back-cancel-ok"}},methods:{clModalHide:mn,abort:function(){this.dirty?Zi(this.ID_MODAL,{}):this.$emit("cancel")},emit:function(e){mn(),this.$emit(e)}}}),dd={key:0},ud={key:1},fd=["disabled"];function pd(e,i,l,r,c,u){const d=n.resolveComponent("cl-modal"),v=n.resolveComponent("cl-section-main");return n.openBlock(),n.createBlock(v,{class:"cl-back-cancel-ok"},{default:n.withCtx(()=>[n.renderSlot(e.$slots,"default"),n.createElementVNode("div",{class:n.normalizeClass(["cl-spacing-box cl-spacing-medium it-buttons",[e.backHidden?"text-end":"cl-spread"]])},[e.backHidden?n.createCommentVNode("",!0):(n.openBlock(),n.createElementBlock("button",{key:0,type:"button",class:"btn cl-color-secondary it-cancel",onClick:i[0]||(i[0]=E=>e.abort())},[e.dirty?(n.openBlock(),n.createElementBlock("span",dd,n.toDisplayString(e.cancel),1)):(n.openBlock(),n.createElementBlock("span",ud,n.toDisplayString(e.back),1))])),e.hidden?n.createCommentVNode("",!0):(n.openBlock(),n.createElementBlock("button",{key:1,type:"button",class:n.normalizeClass(["btn cl-color-primary it-ok",{"cl-btn-spinner":e.spinner}]),disabled:e.disabled||!e.dirty,onClick:i[1]||(i[1]=E=>e.$emit("ok"))},[n.createElementVNode("span",null,n.toDisplayString(e.ok),1)],10,fd))],2),n.createVNode(d,{id:e.ID_MODAL},{title:n.withCtx(()=>[...i[4]||(i[4]=[n.createTextVNode(" Unsaved changes ",-1)])]),body:n.withCtx(()=>[n.renderSlot(e.$slots,"modal",{},()=>[i[5]||(i[5]=n.createElementVNode("p",null,"There are unsaved changes. Do you want to discard them or continue editing?",-1))])]),"footer-left":n.withCtx(()=>[n.createElementVNode("button",{type:"button",class:"btn cl-color-secondary it-cancel",onClick:i[2]||(i[2]=E=>e.emit("cancel",!0))}," Discard changes ")]),"footer-right":n.withCtx(()=>[n.createElementVNode("button",{type:"button",class:"btn cl-color-primary it-ok",onClick:i[3]||(i[3]=E=>e.clModalHide())}," Continue editing ")]),_:3},8,["id"])]),_:3})}const Ct=$(cd,[["render",pd]]);Ct.install=e=>{e.component(Ct.name??"ClNoName",Ct)};const hd=n.defineComponent({name:"ClCookieBanner",inheritAttrs:!1,props:{id:{type:String,default:void 0},class:{type:String,default:""},local:{type:Boolean,default:!1}},emits:["consent"],data(){return{fade:!1,visible:!0,cookie:"cl_banner_nok"}},computed:{clazz:function(){return(this.fade?" cl-fade-away":"")+(this.class?` ${this.class}`:"")}},created(){for(const e of document?.cookie?.split(/; */)??[]){const[i,l]=e.split("=");if(i===this.cookie&&["-mtm","+mtm"].includes(l)){this.visible=!1;break}}},methods:{accept:function(){document.cookie=this.cookieString("+mtm"),this.hide(),this.$emit("consent")},decline:function(){document.cookie=this.cookieString("-mtm"),this.hide()},cookieString:function(e){return this.local?`${this.cookie}=${e}; max-age=${3600*24*395}; path=/; SameSite=Lax;`:`${this.cookie}=${e}; max-age=${3600*24*395}; domain=.castlabs.com; path=/; SameSite=Lax;`},hide:function(){this.fade=!0,setTimeout(()=>{this.visible=!1},500)}}}),md=["id"],gd={class:"card-body"},vd={class:"cl-spacing-box text-center"};function bd(e,i,l,r,c,u){return e.visible?(n.openBlock(),n.createElementBlock("div",{key:0,id:e.id,class:n.normalizeClass(["card cl-card cl-cookie-banner",e.clazz])},[n.createElementVNode("div",gd,[n.renderSlot(e.$slots,"default",{},()=>[i[2]||(i[2]=n.createElementVNode("p",{class:"cl-p-small"},[n.createTextVNode(" For our services to work, we use essential cookies which we control. We'd also like to include others to analyze how our site is used to help improve it - but only if you accept. Learn more in our "),n.createElementVNode("a",{class:"cl-a-text",href:"https://castlabs.com/privacy-cookie-policy/"},"privacy policy"),n.createTextVNode(". ")],-1))]),n.createElementVNode("div",vd,[n.createElementVNode("button",{type:"button",class:"btn btn-sm cl-color-primary it-ok",onClick:i[0]||(i[0]=d=>e.accept())}," Accept "),n.createElementVNode("button",{type:"button",class:"btn btn-sm cl-color-secondary it-cancel",onClick:i[1]||(i[1]=d=>e.decline())}," Decline ")])])],10,md)):n.createCommentVNode("",!0)}const kt=$(hd,[["render",bd]]);kt.install=e=>{e.component(kt.name??"ClNoName",kt)};const vn={mounted(e,i){let l="";for(const c of["cl-tooltip-primary","cl-tooltip-secondary","cl-tooltip-light","cl-tooltip-dark"])e.classList.contains(c)&&(l+=` ${c}`);const r=new Ji.Tooltip(e,{title:i.value,placement:i.arg,html:!0,trigger:"hover",delay:{show:65,hide:0},template:`<div class="tooltip cl-tooltip${l}" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>`});return e.__tooltipInstance=r,e.addEventListener("show.bs.tooltip",function(){document.querySelectorAll(".cl-tooltip").forEach(u=>u.remove())}),r},unmounted(e){const i=e.__tooltipInstance;if(i){typeof i.dispose=="function"&&i.dispose();const l=document.querySelector(".cl-tooltip");l&&l.remove(),delete e.__tooltipInstance}}},to={mounted(e,i){e.addEventListener("click",function(){const l=typeof i.value=="function"?i.value():i.value;i.value!==""&&navigator.clipboard?.writeText(l),e.classList.add("cl-animation-flash-text"),setTimeout(()=>{e.classList.remove("cl-animation-flash-text")},1500)})}},yd=n.defineComponent({name:"ClCopy",directives:{tooltip:vn,clipboard:to},props:{show:{type:String,default:void 0},copy:{type:String,default:void 0},underline:{type:Boolean,default:!1},code:{type:Boolean,default:!1},unstyled:{type:Boolean,default:!1}},methods:{tooltip:function(){return this.show&&this.contentToCopy()!==this.show?`${this.contentToCopy()}<br><small>Click-to-copy!</small>`:"<small>Click-to-copy!</small>"},contentToCopy:function(){return this.copy??this.$refs.content?.textContent.trim()}}}),_d={key:0,ref:"content",class:"cl-copy"},Cd={ref:"content"};function kd(e,i,l,r,c,u){const d=n.resolveDirective("tooltip"),v=n.resolveDirective("clipboard");return e.unstyled?n.withDirectives((n.openBlock(),n.createElementBlock("span",_d,[e.show?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[n.createTextVNode(n.toDisplayString(e.show),1)],64)):e.$slots.default?n.renderSlot(e.$slots,"default",{key:1}):(n.openBlock(),n.createElementBlock(n.Fragment,{key:2},[n.createTextVNode(n.toDisplayString(e.copy??"?"),1)],64))])),[[d,e.tooltip,"top"],[v,e.contentToCopy]]):e.code?n.withDirectives((n.openBlock(),n.createElementBlock("span",{key:1,class:n.normalizeClass(e.underline?"cl-copy cl-copy-text":"cl-copy cl-copy-transparent")},[n.createElementVNode("code",Cd,[e.show?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[n.createTextVNode(n.toDisplayString(e.show),1)],64)):e.$slots.default?n.renderSlot(e.$slots,"default",{key:1}):(n.openBlock(),n.createElementBlock(n.Fragment,{key:2},[n.createTextVNode(n.toDisplayString(e.copy??"?"),1)],64))],512)],2)),[[d,e.tooltip,"top"],[v,e.contentToCopy]]):n.withDirectives((n.openBlock(),n.createElementBlock("span",{key:2,ref:"content",class:n.normalizeClass(e.underline?"cl-copy cl-copy-text":"cl-copy cl-copy-transparent")},[e.show?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[n.createTextVNode(n.toDisplayString(e.show),1)],64)):e.$slots.default?n.renderSlot(e.$slots,"default",{key:1}):(n.openBlock(),n.createElementBlock(n.Fragment,{key:2},[n.createTextVNode(n.toDisplayString(e.copy??"?"),1)],64))],2)),[[d,e.tooltip,"top"],[v,e.contentToCopy]])}const $t=$(yd,[["render",kd]]);$t.install=e=>{e.component($t.name??"ClNoName",$t)};const $d=n.defineComponent({name:"ClCreditcardNumber",props:{id:{type:String,default:void 0},class:{type:String,default:""},number:{type:String,default:"0000000000000000"},expires:{type:String,default:"MM/YYYY"},expired:{type:Boolean,default:!1}},computed:{clazz:function(){return this.class?` ${this.class}`:""},validText:function(){return this.expired?"expired":"valid until"}},methods:{clFormatCardNumber:vr}}),Ed=["id"];function wd(e,i,l,r,c,u){return n.openBlock(),n.createElementBlock(n.Fragment,null,[n.createElementVNode("code",{id:e.id,class:n.normalizeClass(e.clazz)},n.toDisplayString(e.clFormatCardNumber(e.number)),11,Ed),n.createTextVNode(", "+n.toDisplayString(e.validText)+" ",1),n.createElementVNode("code",null,n.toDisplayString(e.expires),1)],64)}const Et=$($d,[["render",wd]]);Et.install=e=>{e.component(Et.name??"ClNoName",Et)};function Zs(e){e.preventDefault()}const Sd=n.defineComponent({name:"ClDropzone",props:{what:{type:String,default:"a file"},why:{type:String,default:"to add"},accept:{type:String,default:void 0},camera:{type:Boolean,default:!1}},emits:["file","content"],data(){return{$uid:0,dragging:!1}},mounted(){["dragenter","dragover","dragleave","drop"].forEach(e=>{document.body.addEventListener(e,Zs)})},unmounted(){["dragenter","dragover","dragleave","drop"].forEach(e=>{document.body.removeEventListener(e,Zs)})},methods:{browse:function(){const e=document.getElementById(`cl-dropzone-file-${this.$uid}`);if(e&&document.createEvent){const i=document.createEvent("MouseEvents");i.initEvent("click",!0,!1),e.dispatchEvent(i)}},browsed:function(){const i=document.getElementById(`cl-dropzone-file-${this.$uid}`).files??[];i.length>0&&this.loadFile(i[0])},mock:function(e){this.$emit("file",e)},loadFile:function(e){const i=new FileReader,l=this.$emit;l("file",e),i.onload=function(r){l("content",r.target?.result)},i.readAsText(e)},onDrop:function(e){e.dataTransfer&&this.loadFile(e.dataTransfer.files[0]),this.dragging=!1},onDrag:function(e){this.dragging=e}}}),Nd=["id"],Td=["id","accept"];function Ad(e,i,l,r,c,u){return n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["cl-spacing-small",e.dragging?"cl-dragging":""]),onDragover:i[6]||(i[6]=d=>e.onDrag(!0)),onDragleave:i[7]||(i[7]=d=>e.onDrag(!1)),onDrop:i[8]||(i[8]=n.withModifiers((...d)=>e.onDrop&&e.onDrop(...d),["prevent"]))},[e.camera?(n.openBlock(),n.createElementBlock("input",{key:0,id:`cl-dropzone-file-${e.$uid}`,type:"file",accept:"image/*",class:"cl-dropzone-file",capture:"environment",onChange:i[0]||(i[0]=(...d)=>e.browsed&&e.browsed(...d)),tabindex:"-1"},null,40,Nd)):n.createCommentVNode("",!0),n.createElementVNode("input",{id:`cl-dropzone-file-${e.$uid}`,type:"file",accept:e.accept,class:"cl-dropzone-file",onChange:i[1]||(i[1]=(...d)=>e.browsed&&e.browsed(...d)),tabindex:"-1"},null,40,Td),e.camera?(n.openBlock(),n.createElementBlock("div",{key:1,class:"cl-dropzone",onClick:i[3]||(i[3]=d=>e.browse())},[i[9]||(i[9]=n.createElementVNode("i",{class:"fas fa-camera"},null,-1)),i[10]||(i[10]=n.createTextVNode("Use your ",-1)),n.createElementVNode("a",{href:"#",onClick:i[2]||(i[2]=n.withModifiers(()=>{},["prevent"]))},"camera"),n.createTextVNode(" to take a picture "+n.toDisplayString(e.why)+". ",1)])):(n.openBlock(),n.createElementBlock("div",{key:2,class:"cl-dropzone",onClick:i[5]||(i[5]=d=>e.browse())},[i[11]||(i[11]=n.createElementVNode("i",{class:"fas fa-file-upload"},null,-1)),i[12]||(i[12]=n.createTextVNode("Drop or ",-1)),n.createElementVNode("a",{href:"#",onClick:i[4]||(i[4]=n.withModifiers(()=>{},["prevent"]))},"browse"),n.createTextVNode(" "+n.toDisplayString(e.what)+" "+n.toDisplayString(e.why)+". ",1)])),n.renderSlot(e.$slots,"default")],34)}const wt=$(Sd,[["render",Ad]]);wt.install=e=>{e.component(wt.name??"ClNoName",wt)};const Od=n.defineComponent({name:"ClField",inheritAttrs:!1,props:{value:{type:String,default:void 0},type:{type:String,default:"text"},label:{type:String,default:void 0},placeholder:{type:String,default:void 0},class:{type:String,default:""},help:{type:String,default:void 0},error:{type:String,default:void 0},nofeedback:{type:Boolean,default:!1},required:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},autofocus:{type:Boolean,default:!1},autotrim:{type:Boolean,default:!1},prevalidate:{type:Boolean,default:!1},minlength:{type:String,default:void 0},maxlength:{type:String,default:void 0},min:{type:String,default:void 0},max:{type:String,default:void 0},pattern:{type:String,default:void 0}},emits:["valid","invalid","changed","update:modelValue"],data(){return{valid:!0,modelValue:this.value??"",invalidMessage:this.error??"Input invalid.",filePlaceholder:this.placeholder??"Please select ..."}},computed:{clazz:function(){return this.type==="file"?this.class+" cl-file"+(this.valid?"":" invalid"):this.class+" form-control"+(this.valid?"":" invalid")}},watch:{value(e){this.modelValue!==e&&(this.modelValue=e)}},mounted:function(){this.prevalidate&&this.validate()},methods:{runAutotrim:function(){if(this.autotrim||["number"].includes(this.type)){const e=this.$refs.input;e.value=e.value.trim(),this.modelValue=e.value}},focus:function(){this.$nextTick(()=>{this.$refs.input?.focus()})},validate:function(e=!1){if(this.valid=!0,e&&this.runAutotrim(),this.type==="file"&&this.modelValue!==""&&(this.filePlaceholder=this.modelValue.replace(/.*[/\\]/,"")),this.required&&(this.modelValue?.length??0)<=0)this.setInvalid("This field may not be blank.");else switch(this.type){case"number":this.validateNumber();break;case"email":this.validateEMail();break;default:this.validateText()}this.valid&&this.setValid(this.modelValue)},validateSilent:function(){if(this.required&&(this.modelValue?.length??0)<=0)return!1;switch(this.type){case"number":if(!this.validateNumber(!0))return!1;break;case"email":if(!this.validateEMail(!0))return!1;break;default:if(!this.validateText(!0))return!1}return!0},validateText:function(e=!1){const i=Number(this.minlength),l=Number(this.maxlength);return this.minlength&&(this.modelValue?.length??0)<i?(e||this.setInvalid(this.error??`Please enter at least ${i} character`+(i>1?"s.":".")),!1):this.maxlength&&(this.modelValue?.length??0)>l?(e||this.setInvalid(this.error??`Please enter at most ${l} character`+(i>1?"s.":".")),!1):this.pattern&&!new RegExp(this.pattern,"g").test(this.modelValue)?(e||this.setInvalid(this.error),!1):!0},validateNumber:function(e=!1){const i=this.modelValue.trim();if(!/^-?[0-9]*$/.test(i.trim()))return e||this.setInvalid("Please enter a number."),!1;const l=parseInt(i.trim());if(l.toString()!==i)return e||this.setInvalid("Please enter a number."),!1;if(this.min!==void 0&&this.max!==void 0){if(l<parseInt(this.min)||l>parseInt(this.max))return e||this.setInvalid(`Please enter a number between ${this.min} and ${this.max}.`),!1}else if(this.min!==void 0){if(l<parseInt(this.min))return e||this.setInvalid(`Please enter a number >= ${this.min}.`),!1}else if(this.max!==void 0&&l>parseInt(this.max))return e||this.setInvalid(`Please enter a number <= ${this.max}.`),!1;return!0},validateEMail:function(e=!1){return/^[^\s@]+@[^\s@]+\.[^\s@]+[^\s@.]$/.test(this.modelValue)?!0:(e||this.setInvalid("Please enter a valid email address."),!1)},setValid:function(e=""){this.valid=!0,this.modelValue=e,this.$emit("update:modelValue",this.modelValue),this.$emit("valid",this.help??""),this.$emit("changed",this.modelValue)},setInvalid:function(e){this.valid=!1,this.invalidMessage=e??"Input invalid.",this.$emit("update:modelValue",this.modelValue),this.$emit("invalid",this.invalidMessage),this.$emit("changed",this.modelValue)}}}),Bd=["for"],Dd={key:0,class:"required"},Vd=["id","autofocus","disabled","maxlength","minlength","placeholder","required"],Md=["id","autofocus","disabled","required"],zd=["id","autofocus","disabled","min","max","maxlength","minlength","pattern","placeholder","required","type"],Ld=["id","for"],Id={class:"invalid-feedback"},Fd={key:0,class:"valid-feedback"},Pd={key:1,class:"valid-feedback valid-feedback-none"};function Wd(e,i,l,r,c,u){return n.openBlock(),n.createElementBlock(n.Fragment,null,[e.label?(n.openBlock(),n.createElementBlock("label",{key:0,for:e.$uid,class:"form-label"},[n.createTextVNode(n.toDisplayString(e.label),1),e.required?(n.openBlock(),n.createElementBlock("span",Dd,"*")):n.createCommentVNode("",!0)],8,Bd)):n.createCommentVNode("",!0),e.type==="textarea"?n.withDirectives((n.openBlock(),n.createElementBlock("textarea",n.mergeProps({key:1,id:e.$uid},e.$attrs,{ref:"input","onUpdate:modelValue":i[0]||(i[0]=d=>e.modelValue=d),autofocus:e.autofocus,class:e.clazz,disabled:e.disabled,maxlength:e.maxlength,minlength:e.minlength,placeholder:e.placeholder,required:e.required,onBlur:i[1]||(i[1]=d=>e.validate(!0)),onChange:i[2]||(i[2]=d=>e.validate()),onInput:i[3]||(i[3]=d=>e.validate())}),null,16,Vd)),[[n.vModelText,e.modelValue]]):e.type==="select"?n.withDirectives((n.openBlock(),n.createElementBlock("select",n.mergeProps({key:2,id:e.$uid,"onUpdate:modelValue":i[4]||(i[4]=d=>e.modelValue=d),class:["form-select",e.clazz],autofocus:e.autofocus,disabled:e.disabled,required:e.required},e.$attrs,{onBlur:i[5]||(i[5]=d=>e.validate(!0)),onChange:i[6]||(i[6]=d=>e.validate())}),[n.renderSlot(e.$slots,"default")],16,Md)),[[n.vModelSelect,e.modelValue]]):n.withDirectives((n.openBlock(),n.createElementBlock("input",n.mergeProps({key:3,id:e.$uid},e.$attrs,{ref:"input","onUpdate:modelValue":i[7]||(i[7]=d=>e.modelValue=d),autofocus:e.autofocus,class:e.clazz,disabled:e.disabled,min:e.min,max:e.max,maxlength:e.maxlength,minlength:e.minlength,pattern:e.pattern,placeholder:e.placeholder,required:e.required,type:["number"].includes(e.type)?"text":e.type,onBlur:i[8]||(i[8]=d=>e.validate(!0)),onChange:i[9]||(i[9]=d=>e.validate()),onInput:i[10]||(i[10]=d=>e.validate())}),null,16,zd)),[[n.vModelDynamic,e.modelValue]]),e.type==="file"?(n.openBlock(),n.createElementBlock("label",{key:4,id:`${e.$uid}-companion`,for:e.$uid,class:"cl-file-companion"},n.toDisplayString(e.filePlaceholder),9,Ld)):n.createCommentVNode("",!0),e.nofeedback?n.createCommentVNode("",!0):(n.openBlock(),n.createElementBlock(n.Fragment,{key:5},[n.createElementVNode("p",Id,n.toDisplayString(e.invalidMessage),1),e.help?(n.openBlock(),n.createElementBlock("p",Fd,n.toDisplayString(e.help),1)):(n.openBlock(),n.createElementBlock("p",Pd))],64))],64)}const St=$(Od,[["render",Wd]]);St.install=e=>{e.component(St.name??"ClNoName",St)};const jd=n.defineComponent({name:"ClFieldCheck",inheritAttrs:!1,props:{id:{type:String,default:void 0},value:{type:Boolean,default:!1},label:{type:String,default:void 0},class:{type:String,default:""},inline:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},indeterminate:{type:Boolean,default:!1},autofocus:{type:Boolean,default:!1}},emits:["update:modelValue"],data(){return{modelValue:this.value}},computed:{clazz:function(){return`form-check${this.inline?" form-check-inline":""} ${this.class}`}},watch:{value(e){this.modelValue!==e&&(this.modelValue=e)}},methods:{check:function(e=!1){this.modelValue=e,this.$refs.input.checked=e},focus:function(){this.$nextTick(()=>{this.$refs.input.focus()})}}}),Rd=["id","disabled","indeterminate","autofocus"],xd=["for"];function qd(e,i,l,r,c,u){return n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(e.clazz)},[n.withDirectives(n.createElementVNode("input",n.mergeProps({id:e.id??e.$uid,"onUpdate:modelValue":i[0]||(i[0]=d=>e.modelValue=d),class:"form-check-input",type:"checkbox",disabled:e.disabled,indeterminate:e.indeterminate,autofocus:e.autofocus},e.$attrs,{onChange:i[1]||(i[1]=d=>e.$emit("update:modelValue",e.modelValue))}),null,16,Rd),[[n.vModelCheckbox,e.modelValue]]),n.createElementVNode("label",{class:"form-check-label",for:e.id??e.$uid},[n.renderSlot(e.$slots,"default")],8,xd)],2)}const Nt=$(jd,[["render",qd]]);Nt.install=e=>{e.component(Nt.name??"ClNoName",Nt)};const Hd=n.defineComponent({name:"ClFieldGroup",inheritAttrs:!1,props:{id:{type:String,default:void 0},class:{type:String,default:void 0},label:{type:String,default:void 0},help:{type:String,default:void 0},error:{type:String,default:void 0},required:{type:Boolean,default:!1}},data(){return{valid:!0,invalidMessage:this.error??"Input invalid."}},computed:{clazz:function(){return(this.valid?"":" invalid")+(this.class?` ${this.class}`:"")}},methods:{setValid:function(){this.valid=!0,this.invalidMessage="Input invalid."},setInvalid:function(e){this.valid=!1,this.invalidMessage=e??"Input invalid."}}}),Ud={key:0,class:"form-label"},Yd={key:0,class:"required"},Xd=["id"],Kd={class:"invalid-feedback"},Gd={key:1,class:"valid-feedback"};function Qd(e,i,l,r,c,u){return n.openBlock(),n.createElementBlock(n.Fragment,null,[e.label?(n.openBlock(),n.createElementBlock("label",Ud,[n.createTextVNode(n.toDisplayString(e.label),1),e.required?(n.openBlock(),n.createElementBlock("span",Yd,"*")):n.createCommentVNode("",!0)])):n.createCommentVNode("",!0),n.createElementVNode("div",{class:n.normalizeClass(`input-group${e.clazz}`),id:e.id},[n.renderSlot(e.$slots,"default")],10,Xd),n.createElementVNode("p",Kd,n.toDisplayString(e.invalidMessage),1),e.help?(n.openBlock(),n.createElementBlock("p",Gd,n.toDisplayString(e.help),1)):n.createCommentVNode("",!0)],64)}const Tt=$(Hd,[["render",Qd]]);Tt.install=e=>{e.component(Tt.name??"ClNoName",Tt)};const Jd=n.defineComponent({name:"ClHashtag",inheritAttrs:!1,props:{id:{type:String,default:void 0},class:{type:String,default:""},name:{type:String,default:""},primary:{type:Boolean,default:!1},secondary:{type:Boolean,default:!1},derived:{type:Boolean,default:!1}},computed:{clazz:function(){let e="cl-hashtag ";return!this.primary&&!this.secondary?this.class.includes("cl-color")||(e+=" cl-color-ash"):this.primary?e+=" cl-color-red":this.secondary&&(e+=" cl-color-steel"),e+(this.class?` ${this.class}`:"")}}}),Zd={key:0,class:"cl-badge-derived"},eu=["id"],tu=["id"];function nu(e,i,l,r,c,u){return e.derived?(n.openBlock(),n.createElementBlock("span",Zd,[n.createElementVNode("span",{id:e.id,class:n.normalizeClass(e.clazz)},[n.createTextVNode(n.toDisplayString(e.name),1),n.renderSlot(e.$slots,"default")],10,eu)])):(n.openBlock(),n.createElementBlock("span",{key:1,id:e.id,class:n.normalizeClass(e.clazz)},[n.createTextVNode(n.toDisplayString(e.name),1),n.renderSlot(e.$slots,"default")],10,tu))}const At=$(Jd,[["render",nu]]);At.install=e=>{e.component(At.name??"ClNoName",At)};const iu=n.defineComponent({name:"ClIconotron",props:{src:{type:String,default:void 0}}}),ou={class:"container cl-container-iconotron"},su={class:"row"},ru={class:"col-12 col-md-3"},lu=["src"],au={class:"col-12 col-md-9"};function cu(e,i,l,r,c,u){return n.openBlock(),n.createElementBlock("div",ou,[n.createElementVNode("div",su,[n.createElementVNode("div",ru,[n.createElementVNode("img",{src:e.src,alt:""},null,8,lu)]),n.createElementVNode("div",au,[n.renderSlot(e.$slots,"default")])])])}const Ot=$(iu,[["render",cu]]);Ot.install=e=>{e.component(Ot.name??"ClNoName",Ot)};const du=n.defineComponent({name:"ClInfo",directives:{tooltip:vn},props:{bottom:{type:Boolean,default:!1},left:{type:Boolean,default:!1},right:{type:Boolean,default:!1},top:{type:Boolean,default:!0},info:{type:String,default:"Tooltip"},faded:{type:Boolean,default:!0},icon:{type:String,default:"far fa-question-circle"}},computed:{classes:function(){return this.icon+(this.faded?" cl-faded":"")}}});function uu(e,i,l,r,c,u){const d=n.resolveDirective("tooltip");return e.bottom?n.withDirectives((n.openBlock(),n.createElementBlock("i",{key:0,class:n.normalizeClass(e.classes)},null,2)),[[d,e.info,"bottom"]]):e.left?n.withDirectives((n.openBlock(),n.createElementBlock("i",{key:1,class:n.normalizeClass(e.classes)},null,2)),[[d,e.info,"left"]]):e.right?n.withDirectives((n.openBlock(),n.createElementBlock("i",{key:2,class:n.normalizeClass(e.classes)},null,2)),[[d,e.info,"right"]]):n.withDirectives((n.openBlock(),n.createElementBlock("i",{key:3,class:n.normalizeClass(e.classes)},null,2)),[[d,e.info,"top"]])}const Bt=$(du,[["render",uu]]);Bt.install=e=>{e.component(Bt.name??"ClNoName",Bt)};const fu=n.defineComponent({name:"ClLinkExternal",props:{noicon:{type:Boolean,default:!1}}});function pu(e,i,l,r,c,u){return n.openBlock(),n.createElementBlock("a",{class:n.normalizeClass({"cl-a-external":!e.noicon}),target:"_blank",rel:"noopener noreferrer"},[n.renderSlot(e.$slots,"default")],2)}const Dt=$(fu,[["render",pu]]);Dt.install=e=>{e.component(Dt.name??"ClNoName",Dt)};const hu=`
2
2
  Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor
3
3
  incididunt ut labore et dolore magna aliqua. Sed ullamcorper morbi tincidunt
4
4
  ornare massa eget egestas purus viverra. Faucibus in ornare quam viverra orci
@@ -22,5 +22,5 @@
22
22
  Congue eu consequat ac felis donec. Aliquam etiam erat velit scelerisque in
23
23
  dictum non. Dis parturient montes nascetur ridiculus mus mauris vitae ultricies.
24
24
  Morbi quis commodo odio aenean sed adipiscing diam donec adipiscing. Sit amet
25
- justo donec enim diam.`,gu=n.defineComponent({name:"ClLorem",props:{words:{type:Number,default:10},paragraphs:{type:Number,default:0}},methods:{lorem(e){return((e%2?mu:hu).trim().replace(/\s+/g," ").split(" ").splice(0,this.words).join(" ")+".").replace(/\.+/g,".")}}});function vu(e,i,l,r,c,u){return e.paragraphs<=0?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[n.createTextVNode(n.toDisplayString(e.lorem(0)),1)],64)):(n.openBlock(!0),n.createElementBlock(n.Fragment,{key:1},n.renderList(parseInt(e.paragraphs),d=>(n.openBlock(),n.createElementBlock("p",{key:d},n.toDisplayString(e.lorem(d)),1))),128))}const Vt=$(gu,[["render",vu]]);Vt.install=e=>{e.component(Vt.name??"ClNoName",Vt)};const bu=n.defineComponent({name:"ClMailto",props:{to:{type:String,default:"office@castlabs.com"}}}),yu=["href"];function _u(e,i,l,r,c,u){return n.openBlock(),n.createElementBlock("a",{class:"cl-a-email",href:`mailto:${e.to}`},n.toDisplayString(e.to),9,yu)}const Mt=$(bu,[["render",_u]]);Mt.install=e=>{e.component(Mt.name??"ClNoName",Mt)};const Cu=n.defineComponent({props:{to:{type:void 0,default:()=>({})},class:{type:String,default:""}},computed:{classes:function(){return this.class}},methods:{push:function(){this.$router.push(this.to)}}}),ku=["to","name","aid","bid","cid","did","eid","fid","gid","hid","iid","jid","kid","lid","mid","nid","oid","pid","qid","rid","sid","tid","uid","vid","wid","xid","yid","zid"];function $u(e,i,l,r,c,u){return n.openBlock(),n.createElementBlock("a",{class:n.normalizeClass(e.classes),to:JSON.stringify(e.to),name:e.to.name,aid:e.to.params?.aid,bid:e.to.params?.bid,cid:e.to.params?.cid,did:e.to.params?.did,eid:e.to.params?.eid,fid:e.to.params?.fid,gid:e.to.params?.gid,hid:e.to.params?.hid,iid:e.to.params?.iid,jid:e.to.params?.jid,kid:e.to.params?.kid,lid:e.to.params?.lid,mid:e.to.params?.mid,nid:e.to.params?.nid,oid:e.to.params?.oid,pid:e.to.params?.pid,qid:e.to.params?.qid,rid:e.to.params?.rid,sid:e.to.params?.sid,tid:e.to.params?.tid,uid:e.to.params?.uid,vid:e.to.params?.vid,wid:e.to.params?.wid,xid:e.to.params?.xid,yid:e.to.params?.yid,zid:e.to.params?.zid,onClick:i[0]||(i[0]=d=>e.push())},[n.renderSlot(e.$slots,"default")],10,ku)}const On=$(Cu,[["render",$u]]);On.install=e=>{e.component(On.name??"ClNoName",On)};const Eu=n.defineComponent({name:"ClModal",inheritAttrs:!1,props:{id:{type:String,default:null},form:{type:Boolean,default:!1},class:{type:String,default:null},helpUrl:{type:String,default:null},onClose:{type:Function,default:null},onOpen:{type:Function,default:null}},computed:{clazz:function(){return this.class}},mounted(){const e=document.getElementById(this.id||""),i=this;e&&(e.addEventListener("hidden.bs.modal",function(){i.onClose&&i.onClose()}),e.addEventListener("show.bs.modal",function(){i.onOpen&&i.onOpen()}))}}),wu=["id"],Su={class:"modal-dialog"},Nu={class:"modal-content"},Tu={class:"modal-header"},Au=["href"],Ou=["id"],Bu={key:1,class:"modal-body"},Du={class:"modal-footer"},Vu={class:"modal-footer-left cl-spacing-box cl-spacing-none"},Mu={class:"modal-footer-center cl-spacing-box cl-spacing-none"},zu={class:"modal-footer-right cl-spacing-box cl-spacing-none"};function Lu(e,i,l,r,c,u){return n.openBlock(),n.createElementBlock("div",{id:e.id,class:n.normalizeClass(`modal ${e.clazz}`),tabindex:"-1","data-bs-backdrop":"static"},[n.createElementVNode("div",Su,[n.createElementVNode("div",Nu,[n.createElementVNode("div",Tu,[n.renderSlot(e.$slots,"title",{},()=>[i[1]||(i[1]=n.createTextVNode("Information",-1))]),e.helpUrl?(n.openBlock(),n.createElementBlock("a",{key:0,class:"modal-help",href:e.helpUrl,target:"_blank",title:"Show help in new window."},[...i[2]||(i[2]=[n.createElementVNode("i",{class:"far fa-question-circle"},null,-1)])],8,Au)):n.createCommentVNode("",!0)]),e.form?(n.openBlock(),n.createElementBlock("form",{key:0,id:`${e.id}-form`,class:"modal-body cl-form container",novalidate:"",onSubmit:i[0]||(i[0]=n.withModifiers(()=>{},["prevent"]))},[n.renderSlot(e.$slots,"default"),n.renderSlot(e.$slots,"body")],40,Ou)):(n.openBlock(),n.createElementBlock("div",Bu,[n.renderSlot(e.$slots,"default"),n.renderSlot(e.$slots,"body")])),n.createElementVNode("div",Du,[n.createElementVNode("span",Vu,[n.renderSlot(e.$slots,"footer-left")]),n.createElementVNode("span",Mu,[n.renderSlot(e.$slots,"footer")]),n.createElementVNode("span",zu,[n.renderSlot(e.$slots,"footer-right")])])])])],10,wu)}const zt=$(Eu,[["render",Lu]]);zt.install=e=>{e.component(zt.name??"ClNoName",zt)};const Iu=n.defineComponent({name:"ClModalConfirm",inheritAttrs:!1,props:{id:{type:String,default:"modal-confirm"},class:{type:String,default:void 0},text:{type:String,default:"confirm"},title:{type:String,default:"Are you sure?"},ok:{type:String,default:void 0},button:{type:String,default:"OK"},spinner:{type:Boolean,default:!1}},data(){return{valid:!1}},computed:{clazz:function(){return this.class?` ${this.class}`:""}},emits:["ok"],methods:{reset:function(){this.valid=!1,fr(this.$refs.text,""),ur(`${this.id}-form`)},validate:function(){this.valid=this.$refs.text?.validateSilent()}}});function Fu(e,i,l,r,c,u){const d=n.resolveComponent("cl-field"),v=n.resolveComponent("cl-modal-form");return n.openBlock(),n.createBlock(v,{id:e.id,class:n.normalizeClass(e.clazz),"on-open":e.reset,disabled:!e.valid,spinner:e.spinner,valid:e.valid,onOk:i[2]||(i[2]=E=>e.$emit("ok")),ok:e.ok??e.button},{title:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.title),1)]),body:n.withCtx(()=>[n.renderSlot(e.$slots,"default"),n.createElementVNode("p",null,[i[3]||(i[3]=n.createTextVNode(" To confirm your intention, please type ",-1)),n.createElementVNode("code",null,n.toDisplayString(e.text),1),i[4]||(i[4]=n.createTextVNode(" into this text field: ",-1))]),n.createVNode(d,{ref:"text",type:"text",required:"",pattern:`^${e.text}$`,class:"text-center cl-field-monospace it-confirm",autofocus:"",onChanged:i[0]||(i[0]=E=>e.validate()),onKeyup:i[1]||(i[1]=n.withKeys(E=>e.submit(),["enter"]))},null,8,["pattern"])]),_:3},8,["id","class","on-open","disabled","spinner","valid","ok"])}const Lt=$(Iu,[["render",Fu]]);Lt.install=e=>{e.component(Lt.name??"ClNoName",Lt)};const Pu=n.defineComponent({name:"ClModalForm",inheritAttrs:!1,props:{id:{type:String,default:"modal-form"},class:{type:String,default:void 0},title:{type:String,default:"Form"},ok:{type:String,default:"OK"},cancel:{type:String,default:"Cancel"},spinner:{type:Boolean,default:!1},valid:{type:Boolean,default:!0},onClose:{type:Function,default:null},onOpen:{type:Function,default:null}},computed:{clazz:function(){return this.class?` ${this.class}`:""}},emits:["ok"],methods:{submit:function(){this.valid&&this.$emit("ok")}}}),Wu={type:"button",class:"btn cl-color-secondary it-cancel","data-bs-dismiss":"modal"};function ju(e,i,l,r,c,u){const d=n.resolveComponent("cl-modal");return n.openBlock(),n.createBlock(d,{id:e.id,class:n.normalizeClass(e.clazz),form:"","on-open":e.onOpen,"on-close":e.onClose},n.createSlots({body:n.withCtx(()=>[n.renderSlot(e.$slots,"default"),n.renderSlot(e.$slots,"body")]),"footer-left":n.withCtx(()=>[n.createElementVNode("button",Wu,[n.createElementVNode("span",null,n.toDisplayString(e.cancel),1)])]),"footer-right":n.withCtx(()=>[n.createElementVNode("button",{type:"button",class:n.normalizeClass(["btn cl-color-primary it-ok",{disabled:!e.valid,"cl-btn-spinner":e.spinner}]),onClick:i[0]||(i[0]=v=>e.submit())},[n.createElementVNode("span",null,n.toDisplayString(e.ok),1)],2)]),_:2},[e.$slots.title?{name:"title",fn:n.withCtx(()=>[n.renderSlot(e.$slots,"title")]),key:"0"}:{name:"title",fn:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.title),1)]),key:"1"}]),1032,["id","class","on-open","on-close"])}const It=$(Pu,[["render",ju]]);It.install=e=>{e.component(It.name??"ClNoName",It)};const Ru=n.defineComponent({name:"ClModalOk",inheritAttrs:!1,props:{id:{type:String,default:"modal-ok"},class:{type:String,default:void 0},title:{type:String,default:"Information"},form:{type:Boolean,default:!1},body:{type:String,default:void 0},ok:{type:String,default:void 0},button:{type:String,default:"OK"},cancel:{type:String,default:null},spinner:{type:Boolean,default:!1},onClose:{type:Function,default:null},onOpen:{type:Function,default:null}},emits:["ok","cancel"],data(){return{emitted:!1}},computed:{clazz:function(){return this.class?` ${this.class}`:""}},methods:{buttonOk:function(){this.emitted=!0,mn(),this.$emit("ok",ii(this.id))},buttonCancel:function(){this.emitted=!0,mn(),this.$emit("cancel",ii(this.id))},opened:function(){this.emitted=!1,this.onOpen&&this.onOpen()},closed:function(){this.emitted||this.$emit("cancel",ii(this.id)),this.onClose&&this.onClose()}}});function xu(e,i,l,r,c,u){const d=n.resolveComponent("cl-modal");return n.openBlock(),n.createBlock(d,{id:e.id,class:n.normalizeClass(e.clazz),form:e.form,"on-open":e.opened,"on-close":e.closed},{title:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.title),1)]),body:n.withCtx(()=>[n.renderSlot(e.$slots,"default"),n.createTextVNode(n.toDisplayString(e.body),1)]),"footer-left":n.withCtx(()=>[e.cancel?(n.openBlock(),n.createElementBlock("button",{key:0,type:"button",class:"btn cl-color-secondary it-cancel",onClick:i[0]||(i[0]=(...v)=>e.buttonCancel&&e.buttonCancel(...v))},[n.createElementVNode("span",null,n.toDisplayString(e.cancel),1)])):n.createCommentVNode("",!0)]),"footer-right":n.withCtx(()=>[n.createElementVNode("button",{type:"button",class:n.normalizeClass(["btn cl-color-primary it-ok",{"cl-btn-spinner":e.spinner}]),onClick:i[1]||(i[1]=(...v)=>e.buttonOk&&e.buttonOk(...v))},[n.createElementVNode("span",null,n.toDisplayString(e.ok??e.button),1)],2)]),_:3},8,["id","class","form","on-open","on-close"])}const Ft=$(Ru,[["render",xu]]);Ft.install=e=>{e.component(Ft.name??"ClNoName",Ft)};function _r(){const e=document.getElementById("cl-nav-side");if(e)if(e.checked){e.parentNode.classList.add("cl-nav-side-open");try{localStorage.setItem("sidenavOpen","true")}catch(i){i.ignore?.()}}else{e.parentNode.classList.remove("cl-nav-side-open");try{localStorage.setItem("sidenavOpen","false")}catch(i){i.ignore?.()}}}function qu(){er(Hu()),document.querySelectorAll(".cl-nav-drawer a").forEach(e=>{e.addEventListener("click",()=>{if(Cr()){er(!1);try{localStorage.setItem("sidenavOpen","false")}catch(i){i.ignore?.()}}})}),document.getElementById("cl-nav-side")?.addEventListener("change",function(){_r()}),document.querySelectorAll(".cl-nav-drawer details[id]").forEach(e=>{e.addEventListener("toggle",i=>{try{localStorage.setItem(`cl-nav-${e.id}`,i.target.hasAttribute("open"))}catch(l){l.ignore?.()}});try{localStorage.getItem(`cl-nav-${e.id}`)==="true"&&(e.open=!0)}catch(i){i.ignore?.()}}),setTimeout(function(){document.querySelectorAll("body").forEach(e=>{e.classList.add("cl-animate")})},1e3)}function er(e){const i=document.getElementById("cl-nav-side");i&&(i.checked=e)}function Cr(){return Math.max(document?.documentElement?.clientWidth||0,window?.innerWidth||0)<1200}function Hu(){const e=localStorage.getItem("sidenavOpen");return e==null?!Cr():JSON.parse(e)}const Uu=n.defineComponent({name:"ClNavSide",inheritAttrs:!1,props:{class:{type:String,default:void 0}},computed:{clazz:function(){return this.class?` ${this.class}`:""}},mounted(){this.setup()},methods:{toggle:function(){_r()},setup:function(){this.$nextTick(()=>{qu()})}}}),Yu={class:"cl-nav-side"},Xu={class:"cl-nav-drawer"},Ku={"data-simplebar":""};function Gu(e,i,l,r,c,u){return n.openBlock(),n.createElementBlock(n.Fragment,null,[n.createElementVNode("input",{id:"cl-nav-side",type:"checkbox",class:n.normalizeClass(`cl-nav-checkbox${e.clazz}`),onChange:i[0]||(i[0]=(...d)=>e.toggle&&e.toggle(...d)),tabindex:"-1"},null,34),n.createElementVNode("nav",Yu,[i[1]||(i[1]=n.createElementVNode("label",{class:"cl-nav-backdrop",for:"cl-nav-side"},null,-1)),n.createElementVNode("div",Xu,[n.createElementVNode("div",Ku,[n.renderSlot(e.$slots,"default")])])])],64)}const Pt=$(Uu,[["render",Gu]]);Pt.install=e=>{e.component(Pt.name??"ClNoName",Pt)};const Qu=n.defineComponent({name:"ClNavTop",inheritAttrs:!1,props:{class:{type:String,default:void 0}},computed:{isFluid:function(){return this.$route.meta?.fluid},clazz:function(){return this.class?` ${this.class}`:""},containerClass:function(){return this.isFluid?"container-fluid":"container"}}}),Ju={class:"row"},Zu={class:"col-12 cl-grid-flex-centered"};function ef(e,i,l,r,c,u){return n.openBlock(),n.createElementBlock("nav",{id:"cl-nav-top",class:n.normalizeClass(`cl-nav-top${e.clazz}`)},[n.createElementVNode("div",{class:n.normalizeClass(e.containerClass)},[n.createElementVNode("div",Ju,[n.createElementVNode("div",Zu,[i[0]||(i[0]=n.createElementVNode("label",{class:"cl-nav-side-burger",for:"cl-nav-side"},[n.createElementVNode("i",{class:"fas fa-bars"})],-1)),n.renderSlot(e.$slots,"default"),n.renderSlot(e.$slots,"title")])])],2)],2)}const Wt=$(Qu,[["render",ef]]);Wt.install=e=>{e.component(Wt.name??"ClNoName",Wt)};const tf=n.defineComponent({name:"ClOrg",props:{name:{type:String,default:"No organization"}}}),nf={class:"cl-org"};function of(e,i,l,r,c,u){return n.openBlock(),n.createElementBlock("span",nf,[n.createTextVNode(n.toDisplayString(e.name),1),n.renderSlot(e.$slots,"default")])}const jt=$(tf,[["render",of]]);jt.install=e=>{e.component(jt.name??"ClNoName",jt)};const sf=n.defineComponent({name:"ClPage",inheritAttrs:!1,props:{id:{type:String,default:void 0},class:{type:String,default:""},title:{type:String,default:void 0},loading:{type:Boolean,default:!1},notFound:{type:Boolean,default:!1}},computed:{clazz:function(){return this.class?` ${this.class}`:""}},mounted(){const e=this.$route?.query?.goto;e&&cr(e)},methods:{back(){history.go(-1)}}}),rf={key:0,class:"cl-page-spinner"};function lf(e,i,l,r,c,u){const d=n.resolveComponent("cl-section-headline"),v=n.resolveComponent("cl-spinner"),E=n.resolveComponent("cl-section-main");return n.openBlock(),n.createElementBlock(n.Fragment,null,[n.createVNode(d,{id:e.id??e.$route.name,title:e.title??e.$route.meta?.title??"Castlabs",class:n.normalizeClass(e.clazz),fluid:e.$route.meta?.fluid},null,8,["id","title","class","fluid"]),e.loading?(n.openBlock(),n.createElementBlock("div",rf,[n.createVNode(v)])):e.notFound?n.renderSlot(e.$slots,"notFound",{key:1},()=>[n.createVNode(E,{fluid:e.$route.meta?.fluid},{default:n.withCtx(()=>[i[2]||(i[2]=n.createElementVNode("p",{class:"cl-p-large"},"Hmm, it seems we can’t find what you’re looking for.",-1)),i[3]||(i[3]=n.createElementVNode("p",{class:"alert cl-alert-info"},"This resource may have been moved or it might have expired.",-1)),n.createElementVNode("button",{type:"button",class:"btn cl-color-secondary cl-spacing-large",onClick:i[0]||(i[0]=(...B)=>e.back&&e.back(...B))},[...i[1]||(i[1]=[n.createElementVNode("span",null,"Back",-1)])])]),_:1},8,["fluid"])]):n.renderSlot(e.$slots,"default",{key:2})],64)}const Rt=$(sf,[["render",lf]]);Rt.install=e=>{e.component(Rt.name??"ClNoName",Rt)};function af(e,i,l,r){const c=[],u=Math.ceil(e/i);l<1&&(l=1),l>u&&(l=u);for(let d=1;d<=u;d++)(d>=l-r&&d<=l+r||d===1||d===u)&&c.push(d);return{previous:l>1?l-1:null,next:l<u?l+1:null,current:l,pages:c}}const cf=n.defineComponent({name:"ClPagination",props:{items:{type:Number,default:0},pagesize:{type:Number,default:25},current:{type:Number,default:1},window:{type:Number,default:3},test:{type:Boolean,default:!1}},emits:["page"],computed:{pager:function(){return af(this.items,this.pagesize,this.current,this.window)}}}),df={key:0,class:"col-12 cl-spacing-medium"},uf={class:"pagination"},ff={key:0,class:"page-item"},pf={key:1,class:"page-item disabled"},hf={key:0,class:"page-item disabled"},mf=["onClick"],gf={key:2,class:"page-item"},vf={key:3,class:"page-item disabled"};function bf(e,i,l,r,c,u){return e.pager?.pages?.length>1?(n.openBlock(),n.createElementBlock("nav",df,[n.createElementVNode("ul",uf,[e.pager.previous?(n.openBlock(),n.createElementBlock("li",ff,[n.createElementVNode("button",{type:"button",class:"page-link",onClick:i[0]||(i[0]=d=>e.$emit("page",e.pager.previous))},[i[2]||(i[2]=n.createElementVNode("i",{class:"fas fa-arrow-left"},null,-1)),e.test?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[n.createTextVNode("P")],64)):n.createCommentVNode("",!0)])])):(n.openBlock(),n.createElementBlock("li",pf,[i[3]||(i[3]=n.createElementVNode("i",{class:"fas fa-arrow-left"},null,-1)),e.test?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[n.createTextVNode("P")],64)):n.createCommentVNode("",!0)])),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.pager.pages,(d,v)=>(n.openBlock(),n.createElementBlock(n.Fragment,{key:d},[v>0&&e.pager.pages[v-1]!==d-1?(n.openBlock(),n.createElementBlock("li",hf," … ")):n.createCommentVNode("",!0),n.createElementVNode("li",{class:n.normalizeClass(["page-item",{active:d===e.pager.current}])},[n.createElementVNode("button",{class:"page-link",onClick:E=>e.$emit("page",d)},n.toDisplayString(d),9,mf)],2)],64))),128)),e.pager.next?(n.openBlock(),n.createElementBlock("li",gf,[n.createElementVNode("button",{type:"button",class:"page-link",onClick:i[1]||(i[1]=d=>e.$emit("page",e.pager.next))},[i[4]||(i[4]=n.createElementVNode("i",{class:"fas fa-arrow-right"},null,-1)),e.test?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[n.createTextVNode("N")],64)):n.createCommentVNode("",!0)])])):(n.openBlock(),n.createElementBlock("li",vf,[i[5]||(i[5]=n.createElementVNode("i",{class:"fas fa-arrow-right"},null,-1)),e.test?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[n.createTextVNode("N")],64)):n.createCommentVNode("",!0)]))])])):n.createCommentVNode("",!0)}const xt=$(cf,[["render",bf]]);xt.install=e=>{e.component(xt.name??"ClNoName",xt)};const yf=n.defineComponent({name:"ClPlan",inheritAttrs:!1,props:{id:{type:String,default:void 0},class:{type:String,default:""},name:{type:String,default:""},primary:{type:Boolean,default:!1},secondary:{type:Boolean,default:!1},derived:{type:Boolean,default:!1}},computed:{clazz:function(){let e="cl-plan ";return!this.primary&&!this.secondary?e+=" cl-color-ash":this.primary?e+=" cl-color-red":this.secondary&&(e+=" cl-color-steel"),e+(this.class?` ${this.class}`:"")}}}),_f={key:0,class:"cl-badge-derived"},Cf=["id"],kf=["id"];function $f(e,i,l,r,c,u){return e.derived?(n.openBlock(),n.createElementBlock("span",_f,[n.createElementVNode("span",{id:e.id,class:n.normalizeClass(e.clazz)},[n.createTextVNode(n.toDisplayString(e.name),1),n.renderSlot(e.$slots,"default")],10,Cf)])):(n.openBlock(),n.createElementBlock("span",{key:1,id:e.id,class:n.normalizeClass(e.clazz)},[n.createTextVNode(n.toDisplayString(e.name),1),n.renderSlot(e.$slots,"default")],10,kf))}const qt=$(yf,[["render",$f]]);qt.install=e=>{e.component(qt.name??"ClNoName",qt)};const Ef=n.defineComponent({name:"ClRole",inheritAttrs:!1,props:{id:{type:String,default:void 0},class:{type:String,default:""},name:{type:String,default:""},primary:{type:Boolean,default:!1},secondary:{type:Boolean,default:!1},derived:{type:Boolean,default:!1}},computed:{clazz:function(){let e="cl-role ";return!this.primary&&!this.secondary?e+=" cl-color-ash":this.primary?e+=" cl-color-red":this.secondary&&(e+=" cl-role-steel"),e+(this.class?` ${this.class}`:"")}}}),wf={key:0,class:"cl-badge-derived"},Sf=["id"],Nf=["id"];function Tf(e,i,l,r,c,u){return e.derived?(n.openBlock(),n.createElementBlock("span",wf,[n.createElementVNode("span",{id:e.id,class:n.normalizeClass(e.clazz)},[n.createTextVNode(n.toDisplayString(e.name),1),n.renderSlot(e.$slots,"default")],10,Sf)])):(n.openBlock(),n.createElementBlock("span",{key:1,id:e.id,class:n.normalizeClass(e.clazz)},[n.createTextVNode(n.toDisplayString(e.name),1),n.renderSlot(e.$slots,"default")],10,Nf))}const Ht=$(Ef,[["render",Tf]]);Ht.install=e=>{e.component(Ht.name??"ClNoName",Ht)};const Af=n.defineComponent({name:"ClSectionForm",props:{id:{type:String,default:"FORM"},fluid:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},noCol:{type:Boolean,default:!1}},computed:{isFluid:function(){return this.fluid||this.$route.meta?.fluid},containerClass:function(){return this.isFluid?"cl-form container-fluid":"cl-form container"}}}),Of={class:"cl-section cl-section-form cl-color-haze"},Bf=["id"],Df=["disabled"],Vf={key:1,class:"col-12"};function Mf(e,i,l,r,c,u){return n.openBlock(),n.createElementBlock("section",Of,[n.createElementVNode("form",{id:e.id,novalidate:"",class:n.normalizeClass(e.containerClass),onSubmit:i[0]||(i[0]=n.withModifiers(()=>{},["prevent"]))},[n.createElementVNode("fieldset",{class:"row",disabled:e.disabled},[e.noCol?n.renderSlot(e.$slots,"default",{key:0}):(n.openBlock(),n.createElementBlock("div",Vf,[n.renderSlot(e.$slots,"default")]))],8,Df)],42,Bf)])}const Ut=$(Af,[["render",Mf]]);Ut.install=e=>{e.component(Ut.name??"ClNoName",Ut)};const zf=n.defineComponent({name:"ClSectionHeadline",props:{fluid:{type:Boolean,default:!1},title:{type:String,default:void 0},href:{type:String,default:void 0}},computed:{isFluid:function(){return this.fluid||this.$route.meta?.fluid},containerClass:function(){return this.isFluid?"container-fluid cl-container-spacing-small":"container cl-container-spacing-small"}}}),Lf={class:"cl-section cl-section-headline"},If={class:"row"},Ff={class:"col-12"},Pf={key:0},Wf=["href"];function jf(e,i,l,r,c,u){return n.openBlock(),n.createElementBlock("section",Lf,[n.createElementVNode("div",{class:n.normalizeClass(e.containerClass)},[n.createElementVNode("div",If,[n.createElementVNode("div",Ff,[e.title?(n.openBlock(),n.createElementBlock("h1",Pf,[n.createTextVNode(n.toDisplayString(e.title),1),e.href?(n.openBlock(),n.createElementBlock("a",{key:0,href:e.href,class:"cl-headline-help-icon",target:"_blank",rel:"noopener noreferrer",title:"Help"},[...i[0]||(i[0]=[n.createElementVNode("i",{class:"fas fa-question-circle"},null,-1)])],8,Wf)):n.createCommentVNode("",!0)])):n.createCommentVNode("",!0),n.renderSlot(e.$slots,"default")])])],2)])}const Yt=$(zf,[["render",jf]]);Yt.install=e=>{e.component(Yt.name??"ClNoName",Yt)};const Rf=n.defineComponent({name:"ClSectionMain",props:{alternate:{type:Boolean,default:!1},fluid:{type:Boolean,default:!1},noCol:{type:Boolean,default:!1}},computed:{isFluid:function(){return this.fluid||this.$route.meta?.fluid},sectionClass:function(){return this.alternate?"cl-section-alternate":"cl-section"},containerClass:function(){return this.isFluid?"container-fluid":"container"}}}),xf={class:"row"},qf={key:1,class:"col-12"};function Hf(e,i,l,r,c,u){return n.openBlock(),n.createElementBlock("section",{class:n.normalizeClass(e.sectionClass)},[n.createElementVNode("div",{class:n.normalizeClass(e.containerClass)},[n.createElementVNode("div",xf,[e.noCol?n.renderSlot(e.$slots,"default",{key:0}):(n.openBlock(),n.createElementBlock("div",qf,[n.renderSlot(e.$slots,"default")]))])],2)],2)}const Qe=$(Rf,[["render",Hf]]);Qe.install=e=>{e.component(Qe.name??"ClNoName",Qe)};const Uf=n.defineComponent({name:"ClSectionMainSide",components:{ClSectionMain:Qe},props:{alternate:{type:Boolean,default:!1},fluid:{type:Boolean,default:!1},slim:{type:Boolean,default:!1}},computed:{isFluid:function(){return this.fluid||this.$route.meta?.fluid},mainClass:function(){return"col-12 "+(this.slim?"col-lg-9":"col-lg-8")},sideClass:function(){return"col-12 "+(this.slim?"col-lg-3":"col-lg-4")},sectionClass:function(){return"cl-section-main-side "+(this.alternate?"cl-section-alternate":"")}}});function Yf(e,i,l,r,c,u){const d=n.resolveComponent("cl-section-main");return n.openBlock(),n.createBlock(d,{class:n.normalizeClass(e.sectionClass),"no-col":"",fluid:e.isFluid},{default:n.withCtx(()=>[n.createElementVNode("div",{class:n.normalizeClass(e.mainClass)},[n.renderSlot(e.$slots,"default"),n.renderSlot(e.$slots,"main")],2),e.$slots.side?(n.openBlock(),n.createElementBlock("div",{key:0,class:n.normalizeClass(e.sideClass)},[n.renderSlot(e.$slots,"side")],2)):n.createCommentVNode("",!0)]),_:3},8,["class","fluid"])}const Xt=$(Uf,[["render",Yf]]);Xt.install=e=>{e.component(Xt.name??"ClNoName",Xt)};const Xf=n.defineComponent({name:"ClSpinner",props:{title:{type:String,default:"Loading ..."}}}),Kf={class:"cl-spinner"};function Gf(e,i,l,r,c,u){return n.openBlock(),n.createElementBlock("div",Kf,[n.createTextVNode(n.toDisplayString(e.title),1),i[0]||(i[0]=n.createElementVNode("i",{class:"fas fa-spinner fa-spin"},null,-1))])}const Kt=$(Xf,[["render",Gf]]);Kt.install=e=>{e.component(Kt.name??"ClNoName",Kt)};function Qf(e){document.querySelectorAll(`#${e} .cl-resizer`).forEach(i=>{Jf(i)})}let Bn=0,gn=null;function Jf(e){Bn=0,gn=null,e.addEventListener("mousedown",Zf),document.addEventListener("mousemove",ep),document.addEventListener("mouseup",tp)}const Zf=e=>{e.preventDefault(),gn=e.target?e.target.parentElement:null,Bn=e.pageX},ep=e=>{if(gn!==null){e.preventDefault();const i=e.pageX-Bn;Bn=e.pageX;const l=np(gn),r=e.target?.closest("table")?.id??"unknown";!!document.querySelector(`#${r}.cl-table-nowrap`)?document.querySelectorAll(`#${r} tr th:nth-child(${l-1})`).forEach(u=>{const d=(u.style.maxWidth===""?u.offsetWidth:parseInt(u.style.maxWidth))+i;u.style.width=(d>32?d:32)+"px",u.style.maxWidth=(d>32?d:32)+"px"}):(document.querySelectorAll(`#${r} tr td:nth-child(${l-1})`).forEach(u=>{const d=u.offsetWidth+i;u.style.width=(d>32?d:32)+"px"}),document.querySelectorAll(`#${r} tr td:nth-child(${l})`).forEach(u=>{const d=u.offsetWidth-i;u.style.width=(d>32?d:32)+"px"}))}},tp=e=>{gn!==null&&(e.preventDefault(),Bn=0,gn=null)};function np(e){let i=0;for(;e;)i++,e=e.previousElementSibling;return i}const ip=n.defineComponent({name:"ClTable",inheritAttrs:!1,props:{id:{type:String,default:void 0},class:{type:String,default:""},nowrap:{type:Boolean,default:!1},noDataText:{type:String,default:"No data available."},rows:{type:Number,default:1},nonresponsive:{type:Boolean,default:!1},hideCols:{type:Array,default:void 0},fixed:{type:Boolean,default:!1}},data(){return{show:Array(32).fill(!0)}},computed:{clazz:function(){let e=this.class;this.nonresponsive&&(e+=" cl-table-nonresponsive"),this.nowrap&&(e+=" cl-table-nowrap"),this.fixed&&(e+=" cl-table-fixed");for(let i=1;i<=this.show.length;i++)this.show[i-1]||(e+=` cl-table-col-${i}-hide`);return e}},watch:{rows:function(){this.setupResizer()}},mounted(){this.setupResizer()},methods:{setupResizer:function(){this.$nextTick(()=>{Qf(this.$uid)})}}}),op=["id"],sp=["id"],rp={key:0},lp={key:1},ap={class:"cl-tr-no-data"},cp={colspan:"100"},dp={key:2},up={class:"cl-tr-no-data"},fp={colspan:"100"},pp={key:3};function hp(e,i,l,r,c,u){const d=n.resolveComponent("cl-spinner"),v=n.resolveComponent("cl-field-check"),E=n.resolveComponent("cl-modal-ok");return n.openBlock(),n.createElementBlock(n.Fragment,null,[n.createElementVNode("div",{id:e.id,class:"cl-table-scroll"},[n.createElementVNode("table",{id:e.$uid,class:n.normalizeClass(`cl-table-data ${e.clazz}`)},[n.createElementVNode("thead",null,[n.createElementVNode("tr",null,[n.renderSlot(e.$slots,"header")])]),e.rows>=1?(n.openBlock(),n.createElementBlock("tbody",rp,[n.renderSlot(e.$slots,"default"),n.renderSlot(e.$slots,"body")])):e.rows===0?(n.openBlock(),n.createElementBlock("tbody",lp,[n.createElementVNode("tr",ap,[n.createElementVNode("td",cp,n.toDisplayString(e.noDataText),1)])])):(n.openBlock(),n.createElementBlock("tbody",dp,[n.createElementVNode("tr",up,[n.createElementVNode("td",fp,[n.createVNode(d)])])])),e.$slots.footer?(n.openBlock(),n.createElementBlock("tfoot",pp,[n.createElementVNode("tr",null,[n.renderSlot(e.$slots,"footer")])])):n.createCommentVNode("",!0),n.renderSlot(e.$slots,"tfoot")],10,sp)],8,op),e.hideCols?(n.openBlock(),n.createBlock(E,{key:0,id:e.$uid+"-settings",title:"Configure table"},{default:n.withCtx(()=>[i[0]||(i[0]=n.createElementVNode("p",null,"Which of the following columns would you like to see?",-1)),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.hideCols,(B,x)=>(n.openBlock(),n.createBlock(v,{key:B,value:e.show[x],modelValue:e.show[x],"onUpdate:modelValue":M=>e.show[x]=M},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(B),1)]),_:2},1032,["value","modelValue","onUpdate:modelValue"]))),128))]),_:1},8,["id"])):n.createCommentVNode("",!0)],64)}const Gt=$(ip,[["render",hp]]);Gt.install=e=>{e.component(Gt.name??"ClNoName",Gt)};const mp=n.defineComponent({name:"ClTableCel",props:{condensed:{type:Boolean,default:!1}}});function gp(e,i,l,r,c,u){return n.openBlock(),n.createElementBlock("td",{class:n.normalizeClass(e.condensed?"cl-font-condensed":"")},[n.renderSlot(e.$slots,"default")],2)}const Qt=$(mp,[["render",gp]]);Qt.install=e=>{e.component(Qt.name??"ClNoName",Qt)};const vp=n.defineComponent({name:"ClTableCelActions",props:{content:{type:String,default:""}}}),bp={class:"cl-td-actions"};function yp(e,i,l,r,c,u){return n.openBlock(),n.createElementBlock("td",bp,[n.createTextVNode(n.toDisplayString(e.content),1),n.renderSlot(e.$slots,"default")])}const Jt=$(vp,[["render",yp]]);Jt.install=e=>{e.component(Jt.name??"ClNoName",Jt)};const _p=n.defineComponent({name:"ClTableCelAudit",directives:{tooltip:vn},props:{value:{type:String,default:"???"}}}),Cp={class:"cl-td-audit"},kp={class:"fas fa-info-circle"};function $p(e,i,l,r,c,u){const d=n.resolveDirective("tooltip");return n.openBlock(),n.createElementBlock("td",Cp,[n.withDirectives(n.createElementVNode("i",kp,null,512),[[d,e.value,"left"]])])}const Zt=$(_p,[["render",$p]]);Zt.install=e=>{e.component(Zt.name??"ClNoName",Zt)};const Ep=n.defineComponent({name:"ClTableCelBoolean",props:{value:{type:Boolean,default:!1}}}),wp={class:"cl-td-boolean"};function Sp(e,i,l,r,c,u){return n.openBlock(),n.createElementBlock("td",wp,[n.createElementVNode("i",{class:n.normalizeClass(`fas ${e.value?"fa-check":"fa-minus"}`)},null,2)])}const en=$(Ep,[["render",Sp]]);en.install=e=>{e.component(en.name??"ClNoName",en)};const Np=n.defineComponent({name:"ClTableCelCheckbox",props:{id:{type:String,default:void 0},disabled:{type:Boolean,default:!1},value:{type:Boolean,default:!1}},emits:["update:modelValue","changed"],data(){return{modelValue:this.value}},watch:{value:function(e){this.modelValue=e}},methods:{emitAll:function(){this.$emit("update:modelValue",this.modelValue),this.$emit("changed",this.modelValue)}}}),Tp={class:"cl-td-checkbox"},Ap={class:"form-check text-center"},Op=["id","disabled"];function Bp(e,i,l,r,c,u){return n.openBlock(),n.createElementBlock("td",Tp,[n.createElementVNode("div",Ap,[n.withDirectives(n.createElementVNode("input",{id:e.id??e.$uid,"onUpdate:modelValue":i[0]||(i[0]=d=>e.modelValue=d),class:"form-check-input",type:"checkbox",disabled:e.disabled,onChange:i[1]||(i[1]=d=>e.emitAll())},null,40,Op),[[n.vModelCheckbox,e.modelValue]])])])}const tn=$(Np,[["render",Bp]]);tn.install=e=>{e.component(tn.name??"ClNoName",tn)};const Dp=n.defineComponent({name:"ClTableCelCode"}),Vp={class:"cl-td-code"};function Mp(e,i,l,r,c,u){return n.openBlock(),n.createElementBlock("td",Vp,[n.renderSlot(e.$slots,"default")])}const nn=$(Dp,[["render",Mp]]);nn.install=e=>{e.component(nn.name??"ClNoName",nn)};const zp=n.defineComponent({name:"ClTableCelCurrency",props:{amount:{type:Number,default:0},currency:{type:String,default:"EUR"}}}),Lp={class:"cl-td-currency"};function Ip(e,i,l,r,c,u){return n.openBlock(),n.createElementBlock("td",Lp,n.toDisplayString(e.currency)+" "+n.toDisplayString(new Intl.NumberFormat("en-US").format(e.amount)),1)}const on=$(zp,[["render",Ip]]);on.install=e=>{e.component(on.name??"ClNoName",on)};const Fp=n.defineComponent({name:"ClTableCelDate",props:{value:{type:String,default:void 0}},computed:{content:function(){if(this.value){const e=new Date(this.value),i=new Intl.DateTimeFormat("en",{year:"numeric"}).format(e),l=new Intl.DateTimeFormat("en",{month:"2-digit"}).format(e),r=new Intl.DateTimeFormat("en",{day:"2-digit"}).format(e),c=new Intl.DateTimeFormat("en",{hour:"2-digit",hour12:!1}).format(e),u=new Intl.DateTimeFormat("en",{minute:"2-digit"}).format(e);return`${i}-${l}-${r} ${c}:${u}`}return"-"}}}),Pp={class:"cl-td-date"};function Wp(e,i,l,r,c,u){return n.openBlock(),n.createElementBlock("td",Pp,n.toDisplayString(e.content),1)}const sn=$(Fp,[["render",Wp]]);sn.install=e=>{e.component(sn.name??"ClNoName",sn)};const jp=n.defineComponent({name:"ClTableCelId",directives:{tooltip:vn,clipboard:to},props:{value:{type:String,default:"ABCDEF01"},full:{type:String,default:void 0}},computed:{tooltip:function(){return(this.full??this.value)+"<br><small>click-to-copy!</small>"}}}),Rp={class:"cl-td-id"};function xp(e,i,l,r,c,u){const d=n.resolveDirective("tooltip"),v=n.resolveDirective("clipboard");return n.withDirectives((n.openBlock(),n.createElementBlock("td",Rp,[n.createTextVNode(n.toDisplayString(e.value),1)])),[[d,e.tooltip,"right"],[v,e.full??e.value]])}const rn=$(jp,[["render",xp]]);rn.install=e=>{e.component(rn.name??"ClNoName",rn)};const qp=n.defineComponent({name:"ClTableCelLinks",props:{content:{type:String,default:""}}}),Hp={class:"cl-td-links"};function Up(e,i,l,r,c,u){return n.openBlock(),n.createElementBlock("td",Hp,[n.createTextVNode(n.toDisplayString(e.content),1),n.renderSlot(e.$slots,"default")])}const ln=$(qp,[["render",Up]]);ln.install=e=>{e.component(ln.name??"ClNoName",ln)};const Yp=n.defineComponent({name:"ClTableCelTime"}),Xp={class:"cl-td-time"};function Kp(e,i,l,r,c,u){return n.openBlock(),n.createElementBlock("td",Xp,[n.renderSlot(e.$slots,"default")])}const an=$(Yp,[["render",Kp]]);an.install=e=>{e.component(an.name??"ClNoName",an)};const Gp=n.defineComponent({name:"ClTableCelUuid",props:{value:{type:String,default:"00000000-0000-0000-0000-000000000000"}}});function Qp(e,i,l,r,c,u){const d=n.resolveComponent("cl-table-cel-id");return n.openBlock(),n.createBlock(d,{value:e.value.substring(0,8),full:e.value},null,8,["value","full"])}const cn=$(Gp,[["render",Qp]]);cn.install=e=>{e.component(cn.name??"ClNoName",cn)};const Jp=n.defineComponent({name:"ClTableFootChecked",props:{checked:{type:Object,default:()=>({})}},computed:{any:function(){for(const e in this.checked)if(this.checked[e])return!0;return!1}}}),Zp={key:0,class:"cl-table-foot-checked"},eh={class:"cl-td-links",colspan:"100"};function th(e,i,l,r,c,u){return e.any?(n.openBlock(),n.createElementBlock("tfoot",Zp,[n.createElementVNode("tr",null,[n.createElementVNode("td",eh,[i[0]||(i[0]=n.createElementVNode("small",null,[n.createElementVNode("i",{class:"fas fa-share fa-rotate-270 cl-faded"})],-1)),i[1]||(i[1]=n.createTextVNode("   ",-1)),n.renderSlot(e.$slots,"default")])])])):n.createCommentVNode("",!0)}const dn=$(Jp,[["render",th]]);dn.install=e=>{e.component(dn.name??"ClNoName",dn)};const nh=n.defineComponent({name:"ClTableHead",directives:{tooltip:vn},props:{resize:{type:Boolean,default:!1},sort:{type:String,default:"OFF"},width:{type:String,default:""},checkbox:{type:Boolean,default:!1},initial:{type:String,default:"NONE"},sorter:{type:Object,default:null},col:{type:Number,default:0},settings:{type:Boolean,default:!1}},emits:["sort","all","none"],data(){return{checkState:this.initial,modelValue:this.initial==="ALL",mySorter:this.sorter}},watch:{initial:function(e,i){e!==i&&(this.checkState=e,this.modelValue=this.checkState==="ALL")}},mounted(){this.$nextTick(()=>{this.mySorter&&this.mySorter.col===this.col&&this.mySorter.sort()})},methods:{check(){switch(this.checkState){case"NONE":case"SOME":this.checkState="ALL",this.$emit("all");break;case"ALL":this.checkState="NONE",this.$emit("none");break}},openSettings(e){let i=e?.target;for(;i;){if(i.tagName==="TABLE"){Zi(`${i.id}-settings`);return}i=i.parentElement}},sortCol(){let e="NONE";switch(this.mySorter.col===this.col&&(e=this.mySorter?this.mySorter.order.toUpperCase():this.sort.toUpperCase()),e){case"OFF":break;case"ASC":this.mySorter?this.mySorter.set(this.col,"DESC"):this.$emit("sort","DESC");break;case"DESC":default:this.mySorter?this.mySorter.set(this.col,"ASC"):this.$emit("sort","ASC")}}}}),ih=["id","width"],oh={class:"fas fa-cog cl-faded"},sh={key:0,class:"cl-resizer"},rh={key:1,class:"form-check text-center"},lh=["indeterminate"],ah={key:2,class:"cl-resizer"};function ch(e,i,l,r,c,u){const d=n.resolveDirective("tooltip");return n.openBlock(),n.createElementBlock("th",{id:e.$uid,class:n.normalizeClass(["cl-table-head",{"cl-table-head-sort":e.sort!==null,"cl-table-head-checkbox":e.checkbox,"cl-th-links":e.settings}]),width:e.settings?"1%":e.width},[e.settings?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[n.createElementVNode("button",{type:"button",class:"cl-btn-ghost",onClick:i[0]||(i[0]=(...v)=>e.openSettings&&e.openSettings(...v))},[n.withDirectives(n.createElementVNode("i",oh,null,512),[[d,"Configure table","left"]])]),e.resize?(n.openBlock(),n.createElementBlock("div",sh)):n.createCommentVNode("",!0)],64)):e.checkbox?(n.openBlock(),n.createElementBlock("div",rh,[n.withDirectives(n.createElementVNode("input",{ref:"checkbox","onUpdate:modelValue":i[1]||(i[1]=v=>e.modelValue=v),class:"form-check-input",type:"checkbox",indeterminate:e.checkState==="SOME",onChange:i[2]||(i[2]=v=>e.check())},null,40,lh),[[n.vModelCheckbox,e.modelValue]])])):(n.openBlock(),n.createElementBlock(n.Fragment,{key:2},[e.sort?(n.openBlock(),n.createElementBlock("button",{key:0,type:"button",class:"cl-btn-ghost",onClick:i[3]||(i[3]=(...v)=>e.sortCol&&e.sortCol(...v))},[n.renderSlot(e.$slots,"default"),e.sorter?.col===e.col?(n.openBlock(),n.createElementBlock("i",{key:0,class:n.normalizeClass(["fas fa-fw",{"fa-sort-up":e.sorter.order.toUpperCase()==="ASC","fa-sort-down":e.sorter.order.toUpperCase()==="DESC","fa-sort":!["ASC","DESC"].includes(e.sorter.order.toUpperCase())}])},null,2)):e.sort!==null?(n.openBlock(),n.createElementBlock("i",{key:1,class:n.normalizeClass(["fas fa-fw",{"fa-sort-up":e.sort.toUpperCase()==="ASC","fa-sort-down":e.sort.toUpperCase()==="DESC","fa-sort":!["ASC","DESC"].includes(e.sort.toUpperCase())}])},null,2)):n.createCommentVNode("",!0)])):n.renderSlot(e.$slots,"default",{key:1}),e.resize?(n.openBlock(),n.createElementBlock("div",ah)):n.createCommentVNode("",!0)],64))],10,ih)}const un=$(nh,[["render",ch]]);un.install=e=>{e.component(un.name??"ClNoName",un)};const dh=n.defineComponent({name:"ClTableRow",props:{id:{type:String,default:null},class:{type:String,default:null},highlight:{type:Boolean,default:!1}},computed:{clazz:function(){return this.highlight?this.class+" cl-highlight":this.class}}}),uh=["id"];function fh(e,i,l,r,c,u){return n.openBlock(),n.createElementBlock("tr",{id:e.id,class:n.normalizeClass(e.clazz)},[n.renderSlot(e.$slots,"default")],10,uh)}const fn=$(dh,[["render",fh]]);fn.install=e=>{e.component(fn.name??"ClNoName",fn)};const ph=n.defineComponent({name:"ClTabs",props:{index:{type:Number,default:0}},emits:["tab"],data(){return{tabs:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16]}},methods:{slotExists(e){return this.$slots[`tabs-${e}-label`]!==void 0},emit(e){this.$emit("tab",e)}}}),hh={class:"cl-tabs"},mh=["id","name","checked","onChange"],gh=["for"];function vh(e,i,l,r,c,u){return n.openBlock(),n.createElementBlock("div",hh,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.tabs,d=>(n.openBlock(),n.createElementBlock(n.Fragment,{key:d},[e.slotExists(d)?(n.openBlock(),n.createElementBlock("input",{key:0,id:`tabs-${e.$uid}-${d}`,class:n.normalizeClass(`cl-tab-${d}`),type:"radio",name:`tabs-${e.$uid}`,checked:e.index===d-1,onChange:v=>e.emit(d)},null,42,mh)):n.createCommentVNode("",!0)],64))),128)),n.createElementVNode("ul",null,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.tabs,d=>(n.openBlock(),n.createElementBlock(n.Fragment,{key:d},[e.slotExists(d)?(n.openBlock(),n.createElementBlock("li",{key:0,class:n.normalizeClass(`cl-tab-${d}`)},[n.createElementVNode("label",{for:`tabs-${e.$uid}-${d}`},[n.renderSlot(e.$slots,`tabs-${d}-label`)],8,gh)],2)):n.createCommentVNode("",!0)],64))),128))]),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.tabs,d=>(n.openBlock(),n.createElementBlock(n.Fragment,{key:d},[e.slotExists(d)?(n.openBlock(),n.createElementBlock("div",{key:0,class:n.normalizeClass(`cl-tab-${d} cl-tab-content`)},[n.renderSlot(e.$slots,`tabs-${d}-content`)],2)):n.createCommentVNode("",!0)],64))),128))])}const pn=$(ph,[["render",vh]]);pn.install=e=>{e.component(pn.name??"ClNoName",pn)};const bh=n.defineComponent({name:"ClToggle",inheritAttrs:!1,props:{id:{type:String,default:void 0},class:{type:String,default:void 0},modelValue:{type:Boolean,default:!1},enabled:{type:Boolean,default:!0},title:{type:String,default:""},iconOn:{type:String,default:"fas fa-check"},iconOff:{type:String,default:"fas fa-times"}},emits:["update:modelValue"],data(){return{clazz:"cl-badge "+(this.class??"")}},methods:{toggle:function(){if(this.enabled){const e=document.getElementById(this.$uid);e&&(this.$emit("update:modelValue",e.checked),e.focus(),e.blur(),e.focus())}}}}),yh=["id","checked","disabled"],_h=["id","for","disabled"];function Ch(e,i,l,r,c,u){return n.openBlock(),n.createElementBlock(n.Fragment,null,[n.createElementVNode("input",{id:e.$uid,type:"checkbox",class:n.normalizeClass("cl-toggle-checkbox"),checked:e.modelValue,disabled:e.enabled?null:!0,onChange:i[0]||(i[0]=d=>e.toggle())},null,40,yh),n.createElementVNode("label",{id:e.id,class:n.normalizeClass(e.clazz),for:e.$uid,disabled:e.enabled?null:!0},[n.createElementVNode("i",{class:n.normalizeClass(`${e.iconOn} fa-fw`)},null,2),n.createElementVNode("i",{class:n.normalizeClass(`${e.iconOff} fa-fw`)},null,2),n.createTextVNode(n.toDisplayString(e.title),1)],10,_h)],64)}const hn=$(bh,[["render",Ch]]);hn.install=e=>{e.component(hn.name??"ClNoName",hn)};const kh={COLOR:{ASH:"#6d5e5e",BERRY:"#6e1c3b",BRICK:"#ba4f4f",CLAY:"#cfc8c8",EGGSHELL:"#fbf9f2",HAZE:"#eeece6",HONEY:"#dc9404",LEAF:"#53965d",NIGHT:"#262a35",ORCHID:"#b271bf",PETROL:"#096174",RED:"#fa423c",SAND:"#fdf5cf",SEA:"#5d9dd1",SKY:"#71c0ff",STEEL:"#a0a0a0"}},Je={DEV:"DEV",TEST:"TEST",PROD:"PROD"},kr={id:"CP",subtitle:"Access the Content Platform, manage, encode and watermark assets",title:"Content Platform",urlManage:function(e,i){return e===Je.PROD?`https://platform.content.castlabs.com/#/o/${i??""}`:`https://platform.content-stag.castlabs.com/#/o/${i??""}`},sidenav:!1},$r={id:"CS",subtitle:"Manage organizations, plans, downloads",title:"Castlabs hub",urlManage:function(e,i){return no(e,`https://account.test.cs.castlabs.com/o/${i??""}`,`https://account.castlabs.com/o/${i??""}`)},sidenav:!0},Er={id:"DT",subtitle:"Cloud DRM & CAS licensing",title:"DRMtoday",urlManage:function(e,i){return no(e,`https://fe.test.drmtoday.com/dashboard/${i?`${i}/`:""}index`,`https://fe.drmtoday.com/dashboard/${i?`${i}/`:""}index`)},sidenav:!0},wr={id:"DTO",subtitle:"",title:"DRMtoday Onboard (staging)",urlManage:function(e,i){return`https://onboard.castlabs.com/o/${i??""}/devices`},sidenav:!1},Sr={id:"DTS",subtitle:"Cloud DRM & CAS licensing",title:"DRMtoday (staging)",urlManage:function(e,i){return no(e,`https://fe.test.drmtoday.com/dashboard/${i?`${i}/`:""}index`,`https://fe.staging.drmtoday.com/dashboard/${i?`${i}/`:""}index`)},sidenav:!1},Nr={id:"PP",subtitle:"Cross-platform video players (via Castlabs hub)",title:"PRESTOplay",urlManage:function(e,i){return e===Je.PROD?`https://account.castlabs.com/o/${i}/prestoplay`:`https://account.test.cs.castlabs.com/o/${i}/prestoplay`},sidenav:!0},Tr={id:"VTK",subtitle:"Cloud encoding, packaging, watermarking",title:"Video Toolkit",urlManage:function(e){return e===Je.PROD?"https://vtk.castlabs.com/":"https://vtks.castlabs.com/"},sidenav:!0},Ar={id:"WM",subtitle:"Video & image forensic watermarking",title:"STARDUSTmark",urlManage:function(e,i){return e===Je.PROD?`https://watermark.castlabs.com/#/o/${i}`:`https://demo-stag.fwm.castlabs.com/#/o/${i}`},sidenav:!0};function no(e=Je.PROD,i,l){return[Je.DEV,Je.TEST].includes(e)?i:l}function $h(){return[$r,kr,Er,Sr,wr,Nr,Ar,Tr]}const Eh={CP:kr,CS:$r,DT:Er,DTS:Sr,DTO:wr,PP:Nr,WM:Ar,VTK:Tr},Or="✺";let Zn={};function wh(e,i="",l=!1){const r=Zn[i]??Fe(Br(i));return Object.keys(Zn).length>100&&(Zn={}),Zn[i]=r,Ge(l?e.toLowerCase():e,r,l)}function Ge(e,i,l){if(typeof i=="string"){const r=i.replaceAll(Or," ");return r[0]==="-"?!Ge(e,r.substring(1),l):l?e.includes(r):e.toLowerCase().includes(r.toLowerCase())}else switch(i[0]){case"&":return Ge(e,i[1])&&Ge(e,i[2]);case"|":return Ge(e,i[1])||Ge(e,i[2]);default:return!1}}function Br(e){const i=[];let l=!1;for(let d=0;d<e.length;d++)l?e[d]===l?l=!1:i.push([" "].includes(e[d])?Or:e[d]):["'",'"'].includes(e[d])?l=e[d]:i.push(e[d]);const r=i.join("").replace(/\s+/g," ").trim();if(r.length<=0)return"";const c=r.split(" ");if(c.length<=0)return"";const u=[];["NOT","-"].includes(c[0])||u.push(c.shift());for(let d=0;d<c.length;d++)switch(c[d]){case"AND":case"&":case"&&":switch(c[++d]){case"NOT":case"-":c[d+1]&&(u.push("&"),u.push("-"),u.push(c[++d]));break;case void 0:break;default:u.push("&"),u.push(c[d])}break;case"OR":case"|":case"||":switch(c[++d]){case"NOT":case"-":c[d+1]&&(u.push("|"),u.push("-"),u.push(c[++d]));break;case void 0:break;default:u.push("|"),u.push(c[d])}break;case"NOT":case"-":u.push("-"),u.push(c[++d]);break;default:u.push("&"),u.push(c[d])}return` ${u.join(" ")} `.replace(/ - /g," -").trim()}function Fe(e){const i=e.indexOf(" | ");if(i>=0)return["|",Fe(e.substring(0,i)),Fe(e.substring(i+3))];const l=e.indexOf(" & ");if(l>=0)return["&",Fe(e.substring(0,l)),Fe(e.substring(l+3))];const r=e.indexOf(" ");return r>=0?["&",Fe(e.substring(0,r)),Fe(e.substring(r+1))]:e}const Sh={install:e=>{let i=0;e.mixin({beforeCreate:function(){let r;const c="uid-"+i++;Object.defineProperties(this,(r={},r.$uid={get:function(){return c}},r))}})}};function Nh(){return{ClAlert:_t,ClBackCancelOk:Ct,ClCookieBanner:kt,ClCopy:$t,ClCreditcardNumber:Et,ClDropzone:wt,ClField:St,ClFieldCheck:Nt,ClFieldGroup:Tt,ClHashtag:At,ClIconotron:Ot,ClInfo:Bt,ClLinkExternal:Dt,ClLorem:Vt,ClMailto:Mt,ClModal:zt,ClModalConfirm:Lt,ClModalForm:It,ClModalOk:Ft,ClNavSide:Pt,ClNavTop:Wt,ClOrg:jt,ClPage:Rt,ClPagination:xt,ClPlan:qt,ClRole:Ht,ClSectionForm:Ut,ClSectionHeadline:Yt,ClSectionMain:Qe,ClSectionMainSide:Xt,ClSpinner:Kt,ClTable:Gt,ClTableCel:Qt,ClTableCelActions:Jt,ClTableCelAudit:Zt,ClTableCelBoolean:en,ClTableCelCheckbox:tn,ClTableCelCode:nn,ClTableCelCurrency:on,ClTableCelDate:sn,ClTableCelId:rn,ClTableCelLinks:ln,ClTableCelTime:an,ClTableCelUuid:cn,ClTableFootChecked:dn,ClTableHead:un,ClTableRow:fn,ClTabs:pn,ClToggle:hn}}const Th=[/[^a-z]don['`\s]*t/i,/do[\s]+not/i,/[^a-z]aren['`\s]*t/i,/are[\s]+not/i,/[^a-z]isn['`\s]*t/i,/is[\s]+not/i,/you['`]*re/i,/you[\s]+are/i,/we['`\s]*re/i,/we[\s]+are/i,/we['`]+ll/i,/we[\s]+will/i,/[^a-z]shouldn['`\s]*t/i,/should[\s]+not/i,/[^a-z]mustn['`\s]*t/i,/must[\s]+not/i,/[^a-z]didn['`\s]*t/i,/did[\s]+not/i,/[^a-z]wasn['`\s]*t/i,/was[\s]+not/i,/[^a-z]hasn['`\s]*t/i,/has[\s]+not/i,/[^a-z]can['`]+t/i,/can[\s]+not/i,/[a-z]n['`]+t/i];function Ah(){return[Sh]}function io(e,i){const l=JSON.parse(JSON.stringify(e));for(const r in i)typeof i[r]=="object"&&!Array.isArray(i[r])?l[r]=io(e[r]??{},i[r]):l[r]=i[r];return l}function Oh(e,i){return{store:io(e,i)}}const Xi={ClAlert:_t,ClBackCancelOk:Ct,ClCookieBanner:kt,ClCopy:$t,ClCreditcardNumber:Et,ClDropzone:wt,ClField:St,ClFieldCheck:Nt,ClFieldGroup:Tt,ClHashtag:At,ClIconotron:Ot,ClInfo:Bt,ClLinkExternal:Dt,ClLorem:Vt,ClMailto:Mt,ClModal:zt,ClModalConfirm:Lt,ClModalForm:It,ClModalOk:Ft,ClNavSide:Pt,ClNavTop:Wt,ClOrg:jt,ClPage:Rt,ClPagination:xt,ClPlan:qt,ClRole:Ht,ClSectionForm:Ut,ClSectionHeadline:Yt,ClSectionMain:Qe,ClSectionMainSide:Xt,ClSpinner:Kt,ClTable:Gt,ClTableCel:Qt,ClTableCelActions:Jt,ClTableCelAudit:Zt,ClTableCelBoolean:en,ClTableCelCheckbox:tn,ClTableCelCode:nn,ClTableCelCurrency:on,ClTableCelDate:sn,ClTableCelId:rn,ClTableCelLinks:ln,ClTableCelTime:an,ClTableCelUuid:cn,ClTableFootChecked:dn,ClTableHead:un,ClTableRow:fn,ClTabs:pn,ClToggle:hn,ClMockRouterLink:On,ClUI:Mc};function Bh(e){for(const i in Xi)e.component(Xi[i].name,Xi[i])}exports.CONST=kh;exports.ClAlert=_t;exports.ClBackCancelOk=Ct;exports.ClCookieBanner=kt;exports.ClCopy=$t;exports.ClCreditcardNumber=Et;exports.ClDropzone=wt;exports.ClField=St;exports.ClFieldCheck=Nt;exports.ClFieldGroup=Tt;exports.ClHashtag=At;exports.ClIconotron=Ot;exports.ClInfo=Bt;exports.ClLinkExternal=Dt;exports.ClLorem=Vt;exports.ClMailto=Mt;exports.ClMockRouterLink=On;exports.ClModal=zt;exports.ClModalConfirm=Lt;exports.ClModalForm=It;exports.ClModalOk=Ft;exports.ClNavSide=Pt;exports.ClNavTop=Wt;exports.ClOrg=jt;exports.ClPage=Rt;exports.ClPagination=xt;exports.ClPlan=qt;exports.ClRole=Ht;exports.ClSectionForm=Ut;exports.ClSectionHeadline=Yt;exports.ClSectionMain=Qe;exports.ClSectionMainSide=Xt;exports.ClSpinner=Kt;exports.ClTable=Gt;exports.ClTableCel=Qt;exports.ClTableCelActions=Jt;exports.ClTableCelAudit=Zt;exports.ClTableCelBoolean=en;exports.ClTableCelCheckbox=tn;exports.ClTableCelCode=nn;exports.ClTableCelCurrency=on;exports.ClTableCelDate=sn;exports.ClTableCelId=rn;exports.ClTableCelLinks=ln;exports.ClTableCelTime=an;exports.ClTableCelUuid=cn;exports.ClTableFootChecked=dn;exports.ClTableHead=un;exports.ClTableRow=fn;exports.ClTabs=pn;exports.ClToggle=hn;exports.FLECTIONS=Th;exports.NAV=Eh;exports._getProperty=yt;exports._sanitize=Br;exports._tokenize=Fe;exports.clCopyData=nd;exports.clDebounce=Zc;exports.clFocus=Rc;exports.clFormAutofocus=xc;exports.clFormFieldFocusFirstInvalid=eo;exports.clFormFieldReset=fr;exports.clFormIsValid=pr;exports.clFormIsValidAsync=hr;exports.clFormReset=ur;exports.clFormatAmount=Xc;exports.clFormatCardNumber=vr;exports.clFormatDate=mr;exports.clFormatDateTimeUTC=Hc;exports.clFormatDuration=Uc;exports.clFormatFilesize=qc;exports.clFormatNumber=ri;exports.clFormatPeriod=Yc;exports.clFormatRange=Kc;exports.clFormatTimeUTC=gr;exports.clGetAllComponents=Nh;exports.clGetAllPlugins=Ah;exports.clGetServices=$h;exports.clMatch=wh;exports.clModalHide=mn;exports.clModalIsShown=jc;exports.clModalShow=Zi;exports.clModalValue=ii;exports.clPaginate=dr;exports.clPatch=io;exports.clPatchStore=Oh;exports.clRandomList=td;exports.clRandomString=ed;exports.clRefClField=rd;exports.clRefClFieldGroup=ld;exports.clRefHTMLElement=ad;exports.clReload=od;exports.clReloadStore=id;exports.clScrollToId=cr;exports.clSleep=sd;exports.clSort=br;exports.clSynchronizedSubmit=Gc;exports.clSynchronizedSubmitAsync=Qc;exports.clTableSorter=yr;exports.clTableSorterObjects=Jc;exports.clUi=Bh;exports.clVClipboard=to;exports.clVTooltip=vn;
25
+ justo donec enim diam.`,gu=n.defineComponent({name:"ClLorem",props:{words:{type:Number,default:10},paragraphs:{type:Number,default:0}},methods:{lorem(e){return((e%2?mu:hu).trim().replace(/\s+/g," ").split(" ").splice(0,this.words).join(" ")+".").replace(/\.+/g,".")}}});function vu(e,i,l,r,c,u){return e.paragraphs<=0?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[n.createTextVNode(n.toDisplayString(e.lorem(0)),1)],64)):(n.openBlock(!0),n.createElementBlock(n.Fragment,{key:1},n.renderList(parseInt(e.paragraphs),d=>(n.openBlock(),n.createElementBlock("p",{key:d},n.toDisplayString(e.lorem(d)),1))),128))}const Vt=$(gu,[["render",vu]]);Vt.install=e=>{e.component(Vt.name??"ClNoName",Vt)};const bu=n.defineComponent({name:"ClMailto",props:{to:{type:String,default:"office@castlabs.com"}}}),yu=["href"];function _u(e,i,l,r,c,u){return n.openBlock(),n.createElementBlock("a",{class:"cl-a-email",href:`mailto:${e.to}`},n.toDisplayString(e.to),9,yu)}const Mt=$(bu,[["render",_u]]);Mt.install=e=>{e.component(Mt.name??"ClNoName",Mt)};const Cu=n.defineComponent({props:{to:{type:void 0,default:()=>({})},class:{type:String,default:""}},computed:{classes:function(){return this.class}},methods:{push:function(){this.$router.push(this.to)}}}),ku=["to","name","aid","bid","cid","did","eid","fid","gid","hid","iid","jid","kid","lid","mid","nid","oid","pid","qid","rid","sid","tid","uid","vid","wid","xid","yid","zid"];function $u(e,i,l,r,c,u){return n.openBlock(),n.createElementBlock("a",{class:n.normalizeClass(e.classes),to:JSON.stringify(e.to),name:e.to.name,aid:e.to.params?.aid,bid:e.to.params?.bid,cid:e.to.params?.cid,did:e.to.params?.did,eid:e.to.params?.eid,fid:e.to.params?.fid,gid:e.to.params?.gid,hid:e.to.params?.hid,iid:e.to.params?.iid,jid:e.to.params?.jid,kid:e.to.params?.kid,lid:e.to.params?.lid,mid:e.to.params?.mid,nid:e.to.params?.nid,oid:e.to.params?.oid,pid:e.to.params?.pid,qid:e.to.params?.qid,rid:e.to.params?.rid,sid:e.to.params?.sid,tid:e.to.params?.tid,uid:e.to.params?.uid,vid:e.to.params?.vid,wid:e.to.params?.wid,xid:e.to.params?.xid,yid:e.to.params?.yid,zid:e.to.params?.zid,onClick:i[0]||(i[0]=d=>e.push())},[n.renderSlot(e.$slots,"default")],10,ku)}const On=$(Cu,[["render",$u]]);On.install=e=>{e.component(On.name??"ClNoName",On)};const Eu=n.defineComponent({name:"ClModal",inheritAttrs:!1,props:{id:{type:String,default:null},form:{type:Boolean,default:!1},class:{type:String,default:null},helpUrl:{type:String,default:null},onClose:{type:Function,default:null},onOpen:{type:Function,default:null}},computed:{clazz:function(){return this.class}},mounted(){const e=document.getElementById(this.id||""),i=this;e&&(e.addEventListener("hidden.bs.modal",function(){i.onClose&&i.onClose()}),e.addEventListener("show.bs.modal",function(){i.onOpen&&i.onOpen()}))}}),wu=["id"],Su={class:"modal-dialog"},Nu={class:"modal-content"},Tu={class:"modal-header"},Au=["href"],Ou=["id"],Bu={key:1,class:"modal-body"},Du={class:"modal-footer"},Vu={class:"modal-footer-left cl-spacing-box cl-spacing-none"},Mu={class:"modal-footer-center cl-spacing-box cl-spacing-none"},zu={class:"modal-footer-right cl-spacing-box cl-spacing-none"};function Lu(e,i,l,r,c,u){return n.openBlock(),n.createElementBlock("div",{id:e.id,class:n.normalizeClass(`modal ${e.clazz}`),tabindex:"-1","data-bs-backdrop":"static"},[n.createElementVNode("div",Su,[n.createElementVNode("div",Nu,[n.createElementVNode("div",Tu,[n.renderSlot(e.$slots,"title",{},()=>[i[1]||(i[1]=n.createTextVNode("Information",-1))]),e.helpUrl?(n.openBlock(),n.createElementBlock("a",{key:0,class:"modal-help",href:e.helpUrl,target:"_blank",title:"Show help in new window."},[...i[2]||(i[2]=[n.createElementVNode("i",{class:"far fa-question-circle"},null,-1)])],8,Au)):n.createCommentVNode("",!0)]),e.form?(n.openBlock(),n.createElementBlock("form",{key:0,id:`${e.id}-form`,class:"modal-body cl-form container",novalidate:"",onSubmit:i[0]||(i[0]=n.withModifiers(()=>{},["prevent"]))},[n.renderSlot(e.$slots,"default"),n.renderSlot(e.$slots,"body")],40,Ou)):(n.openBlock(),n.createElementBlock("div",Bu,[n.renderSlot(e.$slots,"default"),n.renderSlot(e.$slots,"body")])),n.createElementVNode("div",Du,[n.createElementVNode("span",Vu,[n.renderSlot(e.$slots,"footer-left")]),n.createElementVNode("span",Mu,[n.renderSlot(e.$slots,"footer")]),n.createElementVNode("span",zu,[n.renderSlot(e.$slots,"footer-right")])])])])],10,wu)}const zt=$(Eu,[["render",Lu]]);zt.install=e=>{e.component(zt.name??"ClNoName",zt)};const Iu=n.defineComponent({name:"ClModalConfirm",inheritAttrs:!1,props:{id:{type:String,default:"modal-confirm"},class:{type:String,default:void 0},text:{type:String,default:"confirm"},title:{type:String,default:"Are you sure?"},ok:{type:String,default:void 0},button:{type:String,default:"OK"},spinner:{type:Boolean,default:!1}},data(){return{valid:!1}},computed:{clazz:function(){return this.class?` ${this.class}`:""}},emits:["ok"],methods:{reset:function(){this.valid=!1,fr(this.$refs.text,""),ur(`${this.id}-form`)},validate:function(){this.valid=this.$refs.text?.validateSilent()}}});function Fu(e,i,l,r,c,u){const d=n.resolveComponent("cl-field"),v=n.resolveComponent("cl-modal-form");return n.openBlock(),n.createBlock(v,{id:e.id,class:n.normalizeClass(e.clazz),"on-open":e.reset,disabled:!e.valid,spinner:e.spinner,valid:e.valid,onOk:i[2]||(i[2]=E=>e.$emit("ok")),ok:e.ok??e.button},{title:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.title),1)]),body:n.withCtx(()=>[n.renderSlot(e.$slots,"default"),n.createElementVNode("p",null,[i[3]||(i[3]=n.createTextVNode(" To confirm your intention, please type ",-1)),n.createElementVNode("code",null,n.toDisplayString(e.text),1),i[4]||(i[4]=n.createTextVNode(" into this text field: ",-1))]),n.createVNode(d,{ref:"text",type:"text",required:"",pattern:`^${e.text}$`,class:"text-center cl-field-monospace it-confirm",autofocus:"",onChanged:i[0]||(i[0]=E=>e.validate()),onKeyup:i[1]||(i[1]=n.withKeys(E=>e.submit(),["enter"]))},null,8,["pattern"])]),_:3},8,["id","class","on-open","disabled","spinner","valid","ok"])}const Lt=$(Iu,[["render",Fu]]);Lt.install=e=>{e.component(Lt.name??"ClNoName",Lt)};const Pu=n.defineComponent({name:"ClModalForm",inheritAttrs:!1,props:{id:{type:String,default:"modal-form"},class:{type:String,default:void 0},title:{type:String,default:"Form"},ok:{type:String,default:"OK"},cancel:{type:String,default:"Cancel"},spinner:{type:Boolean,default:!1},valid:{type:Boolean,default:!0},onClose:{type:Function,default:null},onOpen:{type:Function,default:null}},computed:{clazz:function(){return this.class?` ${this.class}`:""}},emits:["ok"],methods:{submit:function(){this.valid&&this.$emit("ok")}}}),Wu={type:"button",class:"btn cl-color-secondary it-cancel","data-bs-dismiss":"modal"};function ju(e,i,l,r,c,u){const d=n.resolveComponent("cl-modal");return n.openBlock(),n.createBlock(d,{id:e.id,class:n.normalizeClass(e.clazz),form:"","on-open":e.onOpen,"on-close":e.onClose},n.createSlots({body:n.withCtx(()=>[n.renderSlot(e.$slots,"default"),n.renderSlot(e.$slots,"body")]),"footer-left":n.withCtx(()=>[n.createElementVNode("button",Wu,[n.createElementVNode("span",null,n.toDisplayString(e.cancel),1)])]),"footer-right":n.withCtx(()=>[n.createElementVNode("button",{type:"button",class:n.normalizeClass(["btn cl-color-primary it-ok",{disabled:!e.valid,"cl-btn-spinner":e.spinner}]),onClick:i[0]||(i[0]=v=>e.submit())},[n.createElementVNode("span",null,n.toDisplayString(e.ok),1)],2)]),_:2},[e.$slots.title?{name:"title",fn:n.withCtx(()=>[n.renderSlot(e.$slots,"title")]),key:"0"}:{name:"title",fn:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.title),1)]),key:"1"}]),1032,["id","class","on-open","on-close"])}const It=$(Pu,[["render",ju]]);It.install=e=>{e.component(It.name??"ClNoName",It)};const Ru=n.defineComponent({name:"ClModalOk",inheritAttrs:!1,props:{id:{type:String,default:"modal-ok"},class:{type:String,default:void 0},title:{type:String,default:"Information"},form:{type:Boolean,default:!1},body:{type:String,default:void 0},ok:{type:String,default:void 0},button:{type:String,default:"OK"},cancel:{type:String,default:null},spinner:{type:Boolean,default:!1},onClose:{type:Function,default:null},onOpen:{type:Function,default:null}},emits:["ok","cancel"],data(){return{emitted:!1}},computed:{clazz:function(){return this.class?` ${this.class}`:""}},methods:{buttonOk:function(){this.emitted=!0,mn(),this.$emit("ok",ii(this.id))},buttonCancel:function(){this.emitted=!0,mn(),this.$emit("cancel",ii(this.id))},opened:function(){this.emitted=!1,this.onOpen&&this.onOpen()},closed:function(){this.emitted||this.$emit("cancel",ii(this.id)),this.onClose&&this.onClose()}}});function xu(e,i,l,r,c,u){const d=n.resolveComponent("cl-modal");return n.openBlock(),n.createBlock(d,{id:e.id,class:n.normalizeClass(e.clazz),form:e.form,"on-open":e.opened,"on-close":e.closed},{title:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.title),1)]),body:n.withCtx(()=>[n.renderSlot(e.$slots,"default"),n.createTextVNode(n.toDisplayString(e.body),1)]),"footer-left":n.withCtx(()=>[e.cancel?(n.openBlock(),n.createElementBlock("button",{key:0,type:"button",class:"btn cl-color-secondary it-cancel",onClick:i[0]||(i[0]=(...v)=>e.buttonCancel&&e.buttonCancel(...v))},[n.createElementVNode("span",null,n.toDisplayString(e.cancel),1)])):n.createCommentVNode("",!0)]),"footer-right":n.withCtx(()=>[n.createElementVNode("button",{type:"button",class:n.normalizeClass(["btn cl-color-primary it-ok",{"cl-btn-spinner":e.spinner}]),onClick:i[1]||(i[1]=(...v)=>e.buttonOk&&e.buttonOk(...v))},[n.createElementVNode("span",null,n.toDisplayString(e.ok??e.button),1)],2)]),_:3},8,["id","class","form","on-open","on-close"])}const Ft=$(Ru,[["render",xu]]);Ft.install=e=>{e.component(Ft.name??"ClNoName",Ft)};function _r(){const e=document.getElementById("cl-nav-side");if(e)if(e.checked){e.parentNode.classList.add("cl-nav-side-open");try{localStorage.setItem("sidenavOpen","true")}catch(i){i.ignore?.()}}else{e.parentNode.classList.remove("cl-nav-side-open");try{localStorage.setItem("sidenavOpen","false")}catch(i){i.ignore?.()}}}function qu(){er(Hu()),document.querySelectorAll(".cl-nav-drawer a").forEach(e=>{e.addEventListener("click",()=>{if(Cr()){er(!1);try{localStorage.setItem("sidenavOpen","false")}catch(i){i.ignore?.()}}})}),document.getElementById("cl-nav-side")?.addEventListener("change",function(){_r()}),document.querySelectorAll(".cl-nav-drawer details[id]").forEach(e=>{e.addEventListener("toggle",i=>{try{localStorage.setItem(`cl-nav-${e.id}`,i.target.hasAttribute("open"))}catch(l){l.ignore?.()}});try{localStorage.getItem(`cl-nav-${e.id}`)==="true"&&(e.open=!0)}catch(i){i.ignore?.()}}),setTimeout(function(){document.querySelectorAll("body").forEach(e=>{e.classList.add("cl-animate")})},1e3)}function er(e){const i=document.getElementById("cl-nav-side");i&&(i.checked=e)}function Cr(){return Math.max(document?.documentElement?.clientWidth||0,window?.innerWidth||0)<1200}function Hu(){const e=localStorage.getItem("sidenavOpen");return e==null?!Cr():JSON.parse(e)}const Uu=n.defineComponent({name:"ClNavSide",inheritAttrs:!1,props:{class:{type:String,default:void 0}},computed:{clazz:function(){return this.class?` ${this.class}`:""}},mounted(){this.setup()},methods:{toggle:function(){_r()},setup:function(){this.$nextTick(()=>{qu()})}}}),Yu={class:"cl-nav-side"},Xu={class:"cl-nav-drawer"},Ku={"data-simplebar":""};function Gu(e,i,l,r,c,u){return n.openBlock(),n.createElementBlock(n.Fragment,null,[n.createElementVNode("input",{id:"cl-nav-side",type:"checkbox",class:n.normalizeClass(`cl-nav-checkbox${e.clazz}`),onChange:i[0]||(i[0]=(...d)=>e.toggle&&e.toggle(...d)),tabindex:"-1"},null,34),n.createElementVNode("nav",Yu,[i[1]||(i[1]=n.createElementVNode("label",{class:"cl-nav-backdrop",for:"cl-nav-side"},null,-1)),n.createElementVNode("div",Xu,[n.createElementVNode("div",Ku,[n.renderSlot(e.$slots,"default")])])])],64)}const Pt=$(Uu,[["render",Gu]]);Pt.install=e=>{e.component(Pt.name??"ClNoName",Pt)};const Qu=n.defineComponent({name:"ClNavTop",inheritAttrs:!1,props:{class:{type:String,default:void 0}},computed:{isFluid:function(){return this.$route.meta?.fluid},clazz:function(){return this.class?` ${this.class}`:""},containerClass:function(){return this.isFluid?"container-fluid":"container"}}}),Ju={class:"row"},Zu={class:"col-12 cl-grid-flex-centered"};function ef(e,i,l,r,c,u){return n.openBlock(),n.createElementBlock("nav",{id:"cl-nav-top",class:n.normalizeClass(`cl-nav-top${e.clazz}`)},[n.createElementVNode("div",{class:n.normalizeClass(e.containerClass)},[n.createElementVNode("div",Ju,[n.createElementVNode("div",Zu,[i[0]||(i[0]=n.createElementVNode("label",{class:"cl-nav-side-burger",for:"cl-nav-side"},[n.createElementVNode("i",{class:"fas fa-bars"})],-1)),n.renderSlot(e.$slots,"default"),n.renderSlot(e.$slots,"title")])])],2)],2)}const Wt=$(Qu,[["render",ef]]);Wt.install=e=>{e.component(Wt.name??"ClNoName",Wt)};const tf=n.defineComponent({name:"ClOrg",props:{name:{type:String,default:"No organization"}}}),nf={class:"cl-org"};function of(e,i,l,r,c,u){return n.openBlock(),n.createElementBlock("span",nf,[n.createTextVNode(n.toDisplayString(e.name),1),n.renderSlot(e.$slots,"default")])}const jt=$(tf,[["render",of]]);jt.install=e=>{e.component(jt.name??"ClNoName",jt)};const sf=n.defineComponent({name:"ClPage",inheritAttrs:!1,props:{id:{type:String,default:void 0},class:{type:String,default:""},title:{type:String,default:void 0},loading:{type:Boolean,default:!1},notFound:{type:Boolean,default:!1}},computed:{clazz:function(){return this.class?` ${this.class}`:""}},mounted(){const e=this.$route?.query?.goto;e&&cr(e)},methods:{back(){history.go(-1)}}}),rf={key:0,class:"cl-page-spinner"};function lf(e,i,l,r,c,u){const d=n.resolveComponent("cl-section-headline"),v=n.resolveComponent("cl-spinner"),E=n.resolveComponent("cl-section-main");return n.openBlock(),n.createElementBlock(n.Fragment,null,[n.createVNode(d,{id:e.id??e.$route.name,title:e.title??e.$route.meta?.title??"Castlabs",class:n.normalizeClass(e.clazz),fluid:e.$route.meta?.fluid},null,8,["id","title","class","fluid"]),e.loading?(n.openBlock(),n.createElementBlock("div",rf,[n.createVNode(v)])):e.notFound?n.renderSlot(e.$slots,"notFound",{key:1},()=>[n.createVNode(E,{fluid:e.$route.meta?.fluid},{default:n.withCtx(()=>[i[2]||(i[2]=n.createElementVNode("p",{class:"cl-p-large"},"Hmm, it seems we can’t find what you’re looking for.",-1)),i[3]||(i[3]=n.createElementVNode("p",{class:"alert cl-alert-info"},"This resource may have been moved or it might have expired.",-1)),n.createElementVNode("button",{type:"button",class:"btn cl-color-secondary cl-spacing-large",onClick:i[0]||(i[0]=(...B)=>e.back&&e.back(...B))},[...i[1]||(i[1]=[n.createElementVNode("span",null,"Back",-1)])])]),_:1},8,["fluid"])]):n.renderSlot(e.$slots,"default",{key:2})],64)}const Rt=$(sf,[["render",lf]]);Rt.install=e=>{e.component(Rt.name??"ClNoName",Rt)};function af(e,i,l,r){const c=[],u=Math.ceil(e/i);l<1&&(l=1),l>u&&(l=u);for(let d=1;d<=u;d++)(d>=l-r&&d<=l+r||d===1||d===u)&&c.push(d);return{previous:l>1?l-1:null,next:l<u?l+1:null,current:l,pages:c}}const cf=n.defineComponent({name:"ClPagination",props:{items:{type:Number,default:0},pagesize:{type:Number,default:25},current:{type:Number,default:1},window:{type:Number,default:3},test:{type:Boolean,default:!1}},emits:["page"],computed:{pager:function(){return af(this.items,this.pagesize,this.current,this.window)}}}),df={key:0,class:"col-12 cl-spacing-medium"},uf={class:"pagination"},ff={key:0,class:"page-item"},pf={key:1,class:"page-item disabled"},hf={key:0,class:"page-item disabled"},mf=["onClick"],gf={key:2,class:"page-item"},vf={key:3,class:"page-item disabled"};function bf(e,i,l,r,c,u){return e.pager?.pages?.length>1?(n.openBlock(),n.createElementBlock("nav",df,[n.createElementVNode("ul",uf,[e.pager.previous?(n.openBlock(),n.createElementBlock("li",ff,[n.createElementVNode("button",{type:"button",class:"page-link",onClick:i[0]||(i[0]=d=>e.$emit("page",e.pager.previous))},[i[2]||(i[2]=n.createElementVNode("i",{class:"fas fa-arrow-left"},null,-1)),e.test?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[n.createTextVNode("P")],64)):n.createCommentVNode("",!0)])])):(n.openBlock(),n.createElementBlock("li",pf,[i[3]||(i[3]=n.createElementVNode("i",{class:"fas fa-arrow-left"},null,-1)),e.test?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[n.createTextVNode("P")],64)):n.createCommentVNode("",!0)])),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.pager.pages,(d,v)=>(n.openBlock(),n.createElementBlock(n.Fragment,{key:d},[v>0&&e.pager.pages[v-1]!==d-1?(n.openBlock(),n.createElementBlock("li",hf," … ")):n.createCommentVNode("",!0),n.createElementVNode("li",{class:n.normalizeClass(["page-item",{active:d===e.pager.current}])},[n.createElementVNode("button",{class:"page-link",onClick:E=>e.$emit("page",d)},n.toDisplayString(d),9,mf)],2)],64))),128)),e.pager.next?(n.openBlock(),n.createElementBlock("li",gf,[n.createElementVNode("button",{type:"button",class:"page-link",onClick:i[1]||(i[1]=d=>e.$emit("page",e.pager.next))},[i[4]||(i[4]=n.createElementVNode("i",{class:"fas fa-arrow-right"},null,-1)),e.test?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[n.createTextVNode("N")],64)):n.createCommentVNode("",!0)])])):(n.openBlock(),n.createElementBlock("li",vf,[i[5]||(i[5]=n.createElementVNode("i",{class:"fas fa-arrow-right"},null,-1)),e.test?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[n.createTextVNode("N")],64)):n.createCommentVNode("",!0)]))])])):n.createCommentVNode("",!0)}const xt=$(cf,[["render",bf]]);xt.install=e=>{e.component(xt.name??"ClNoName",xt)};const yf=n.defineComponent({name:"ClPlan",inheritAttrs:!1,props:{id:{type:String,default:void 0},class:{type:String,default:""},name:{type:String,default:""},primary:{type:Boolean,default:!1},secondary:{type:Boolean,default:!1},derived:{type:Boolean,default:!1}},computed:{clazz:function(){let e="cl-plan ";return!this.primary&&!this.secondary?e+=" cl-color-ash":this.primary?e+=" cl-color-red":this.secondary&&(e+=" cl-color-steel"),e+(this.class?` ${this.class}`:"")}}}),_f={key:0,class:"cl-badge-derived"},Cf=["id"],kf=["id"];function $f(e,i,l,r,c,u){return e.derived?(n.openBlock(),n.createElementBlock("span",_f,[n.createElementVNode("span",{id:e.id,class:n.normalizeClass(e.clazz)},[n.createTextVNode(n.toDisplayString(e.name),1),n.renderSlot(e.$slots,"default")],10,Cf)])):(n.openBlock(),n.createElementBlock("span",{key:1,id:e.id,class:n.normalizeClass(e.clazz)},[n.createTextVNode(n.toDisplayString(e.name),1),n.renderSlot(e.$slots,"default")],10,kf))}const qt=$(yf,[["render",$f]]);qt.install=e=>{e.component(qt.name??"ClNoName",qt)};const Ef=n.defineComponent({name:"ClRole",inheritAttrs:!1,props:{id:{type:String,default:void 0},class:{type:String,default:""},name:{type:String,default:""},primary:{type:Boolean,default:!1},secondary:{type:Boolean,default:!1},derived:{type:Boolean,default:!1}},computed:{clazz:function(){let e="cl-role ";return!this.primary&&!this.secondary?e+=" cl-color-ash":this.primary?e+=" cl-color-red":this.secondary&&(e+=" cl-role-steel"),e+(this.class?` ${this.class}`:"")}}}),wf={key:0,class:"cl-badge-derived"},Sf=["id"],Nf=["id"];function Tf(e,i,l,r,c,u){return e.derived?(n.openBlock(),n.createElementBlock("span",wf,[n.createElementVNode("span",{id:e.id,class:n.normalizeClass(e.clazz)},[n.createTextVNode(n.toDisplayString(e.name),1),n.renderSlot(e.$slots,"default")],10,Sf)])):(n.openBlock(),n.createElementBlock("span",{key:1,id:e.id,class:n.normalizeClass(e.clazz)},[n.createTextVNode(n.toDisplayString(e.name),1),n.renderSlot(e.$slots,"default")],10,Nf))}const Ht=$(Ef,[["render",Tf]]);Ht.install=e=>{e.component(Ht.name??"ClNoName",Ht)};const Af=n.defineComponent({name:"ClSectionForm",props:{id:{type:String,default:"FORM"},fluid:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},noCol:{type:Boolean,default:!1}},computed:{isFluid:function(){return this.fluid||this.$route.meta?.fluid},containerClass:function(){return this.isFluid?"cl-form container-fluid":"cl-form container"}}}),Of={class:"cl-section cl-section-form cl-color-haze"},Bf=["id"],Df=["disabled"],Vf={key:1,class:"col-12"};function Mf(e,i,l,r,c,u){return n.openBlock(),n.createElementBlock("section",Of,[n.createElementVNode("form",{id:e.id,novalidate:"",class:n.normalizeClass(e.containerClass),onSubmit:i[0]||(i[0]=n.withModifiers(()=>{},["prevent"]))},[n.createElementVNode("fieldset",{class:"row",disabled:e.disabled},[e.noCol?n.renderSlot(e.$slots,"default",{key:0}):(n.openBlock(),n.createElementBlock("div",Vf,[n.renderSlot(e.$slots,"default")]))],8,Df)],42,Bf)])}const Ut=$(Af,[["render",Mf]]);Ut.install=e=>{e.component(Ut.name??"ClNoName",Ut)};const zf=n.defineComponent({name:"ClSectionHeadline",props:{fluid:{type:Boolean,default:!1},title:{type:String,default:void 0},href:{type:String,default:void 0}},computed:{isFluid:function(){return this.fluid||this.$route.meta?.fluid},containerClass:function(){return this.isFluid?"container-fluid cl-container-spacing-small":"container cl-container-spacing-small"}}}),Lf={class:"cl-section cl-section-headline"},If={class:"row"},Ff={class:"col-12"},Pf={key:0},Wf=["href"];function jf(e,i,l,r,c,u){return n.openBlock(),n.createElementBlock("section",Lf,[n.createElementVNode("div",{class:n.normalizeClass(e.containerClass)},[n.createElementVNode("div",If,[n.createElementVNode("div",Ff,[e.title?(n.openBlock(),n.createElementBlock("h1",Pf,[n.createTextVNode(n.toDisplayString(e.title),1),e.href?(n.openBlock(),n.createElementBlock("a",{key:0,href:e.href,class:"cl-headline-help-icon",target:"_blank",rel:"noopener noreferrer",title:"Help"},[...i[0]||(i[0]=[n.createElementVNode("i",{class:"fas fa-question-circle"},null,-1)])],8,Wf)):n.createCommentVNode("",!0)])):n.createCommentVNode("",!0),n.renderSlot(e.$slots,"default")])])],2)])}const Yt=$(zf,[["render",jf]]);Yt.install=e=>{e.component(Yt.name??"ClNoName",Yt)};const Rf=n.defineComponent({name:"ClSectionMain",props:{alternate:{type:Boolean,default:!1},fluid:{type:Boolean,default:!1},noCol:{type:Boolean,default:!1}},computed:{isFluid:function(){return this.fluid||this.$route.meta?.fluid},sectionClass:function(){return this.alternate?"cl-section-alternate":"cl-section"},containerClass:function(){return this.isFluid?"container-fluid":"container"}}}),xf={class:"row"},qf={key:1,class:"col-12"};function Hf(e,i,l,r,c,u){return n.openBlock(),n.createElementBlock("section",{class:n.normalizeClass(e.sectionClass)},[n.createElementVNode("div",{class:n.normalizeClass(e.containerClass)},[n.createElementVNode("div",xf,[e.noCol?n.renderSlot(e.$slots,"default",{key:0}):(n.openBlock(),n.createElementBlock("div",qf,[n.renderSlot(e.$slots,"default")]))])],2)],2)}const Qe=$(Rf,[["render",Hf]]);Qe.install=e=>{e.component(Qe.name??"ClNoName",Qe)};const Uf=n.defineComponent({name:"ClSectionMainSide",components:{ClSectionMain:Qe},props:{alternate:{type:Boolean,default:!1},fluid:{type:Boolean,default:!1},slim:{type:Boolean,default:!1}},computed:{isFluid:function(){return this.fluid||this.$route.meta?.fluid},mainClass:function(){return"col-12 "+(this.slim?"col-lg-9":"col-lg-8")},sideClass:function(){return"col-12 "+(this.slim?"col-lg-3":"col-lg-4")},sectionClass:function(){return"cl-section-main-side "+(this.alternate?"cl-section-alternate":"")}}});function Yf(e,i,l,r,c,u){const d=n.resolveComponent("cl-section-main");return n.openBlock(),n.createBlock(d,{class:n.normalizeClass(e.sectionClass),"no-col":"",fluid:e.isFluid},{default:n.withCtx(()=>[n.createElementVNode("div",{class:n.normalizeClass(e.mainClass)},[n.renderSlot(e.$slots,"default"),n.renderSlot(e.$slots,"main")],2),e.$slots.side?(n.openBlock(),n.createElementBlock("div",{key:0,class:n.normalizeClass(e.sideClass)},[n.renderSlot(e.$slots,"side")],2)):n.createCommentVNode("",!0)]),_:3},8,["class","fluid"])}const Xt=$(Uf,[["render",Yf]]);Xt.install=e=>{e.component(Xt.name??"ClNoName",Xt)};const Xf=n.defineComponent({name:"ClSpinner",props:{title:{type:String,default:"Loading ..."}}}),Kf={class:"cl-spinner"};function Gf(e,i,l,r,c,u){return n.openBlock(),n.createElementBlock("div",Kf,[n.createTextVNode(n.toDisplayString(e.title),1),i[0]||(i[0]=n.createElementVNode("i",{class:"fas fa-spinner fa-spin"},null,-1))])}const Kt=$(Xf,[["render",Gf]]);Kt.install=e=>{e.component(Kt.name??"ClNoName",Kt)};function Qf(e){document.querySelectorAll(`#${e} .cl-resizer`).forEach(i=>{Jf(i)})}let Bn=0,gn=null;function Jf(e){Bn=0,gn=null,e.addEventListener("mousedown",Zf),document.addEventListener("mousemove",ep),document.addEventListener("mouseup",tp)}const Zf=e=>{e.preventDefault(),gn=e.target?e.target.parentElement:null,Bn=e.pageX},ep=e=>{if(gn!==null){e.preventDefault();const i=e.pageX-Bn;Bn=e.pageX;const l=np(gn),r=e.target?.closest("table")?.id??"unknown";!!document.querySelector(`#${r}.cl-table-nowrap`)?document.querySelectorAll(`#${r} tr th:nth-child(${l-1})`).forEach(u=>{const d=(u.style.maxWidth===""?u.offsetWidth:parseInt(u.style.maxWidth))+i;u.style.width=(d>32?d:32)+"px",u.style.maxWidth=(d>32?d:32)+"px"}):(document.querySelectorAll(`#${r} tr td:nth-child(${l-1})`).forEach(u=>{const d=u.offsetWidth+i;u.style.width=(d>32?d:32)+"px"}),document.querySelectorAll(`#${r} tr td:nth-child(${l})`).forEach(u=>{const d=u.offsetWidth-i;u.style.width=(d>32?d:32)+"px"}))}},tp=e=>{gn!==null&&(e.preventDefault(),Bn=0,gn=null)};function np(e){let i=0;for(;e;)i++,e=e.previousElementSibling;return i}const ip=n.defineComponent({name:"ClTable",inheritAttrs:!1,props:{id:{type:String,default:void 0},class:{type:String,default:""},nowrap:{type:Boolean,default:!1},noDataText:{type:String,default:"No data available."},rows:{type:Number,default:1},nonresponsive:{type:Boolean,default:!1},hideCols:{type:Array,default:void 0},fixed:{type:Boolean,default:!1}},data(){return{show:Array(32).fill(!0)}},computed:{clazz:function(){let e=this.class;this.nonresponsive&&(e+=" cl-table-nonresponsive"),this.nowrap&&(e+=" cl-table-nowrap"),this.fixed&&(e+=" cl-table-fixed");for(let i=1;i<=this.show.length;i++)this.show[i-1]||(e+=` cl-table-col-${i}-hide`);return e}},watch:{rows:function(){this.setupResizer()}},mounted(){this.setupResizer()},methods:{setupResizer:function(){this.$nextTick(()=>{Qf(this.$uid)})}}}),op=["id"],sp=["id"],rp={key:0},lp={key:1},ap={class:"cl-tr-no-data"},cp={colspan:"100"},dp={key:2},up={class:"cl-tr-no-data"},fp={colspan:"100"},pp={key:3};function hp(e,i,l,r,c,u){const d=n.resolveComponent("cl-spinner"),v=n.resolveComponent("cl-field-check"),E=n.resolveComponent("cl-modal-ok");return n.openBlock(),n.createElementBlock(n.Fragment,null,[n.createElementVNode("div",{id:e.id,class:"cl-table-scroll"},[n.createElementVNode("table",{id:e.$uid,class:n.normalizeClass(`cl-table-data ${e.clazz}`)},[n.createElementVNode("thead",null,[n.createElementVNode("tr",null,[n.renderSlot(e.$slots,"header")])]),e.rows>=1?(n.openBlock(),n.createElementBlock("tbody",rp,[n.renderSlot(e.$slots,"default"),n.renderSlot(e.$slots,"body")])):e.rows===0?(n.openBlock(),n.createElementBlock("tbody",lp,[n.createElementVNode("tr",ap,[n.createElementVNode("td",cp,n.toDisplayString(e.noDataText),1)])])):(n.openBlock(),n.createElementBlock("tbody",dp,[n.createElementVNode("tr",up,[n.createElementVNode("td",fp,[n.createVNode(d)])])])),e.$slots.footer?(n.openBlock(),n.createElementBlock("tfoot",pp,[n.createElementVNode("tr",null,[n.renderSlot(e.$slots,"footer")])])):n.createCommentVNode("",!0),n.renderSlot(e.$slots,"tfoot")],10,sp)],8,op),e.hideCols?(n.openBlock(),n.createBlock(E,{key:0,id:e.$uid+"-settings",title:"Configure table"},{default:n.withCtx(()=>[i[0]||(i[0]=n.createElementVNode("p",null,"Which of the following columns would you like to see?",-1)),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.hideCols,(B,x)=>(n.openBlock(),n.createBlock(v,{key:B,value:e.show[x],modelValue:e.show[x],"onUpdate:modelValue":M=>e.show[x]=M},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(B),1)]),_:2},1032,["value","modelValue","onUpdate:modelValue"]))),128))]),_:1},8,["id"])):n.createCommentVNode("",!0)],64)}const Gt=$(ip,[["render",hp]]);Gt.install=e=>{e.component(Gt.name??"ClNoName",Gt)};const mp=n.defineComponent({name:"ClTableCel",props:{condensed:{type:Boolean,default:!1}}});function gp(e,i,l,r,c,u){return n.openBlock(),n.createElementBlock("td",{class:n.normalizeClass(e.condensed?"cl-font-condensed":"")},[n.renderSlot(e.$slots,"default")],2)}const Qt=$(mp,[["render",gp]]);Qt.install=e=>{e.component(Qt.name??"ClNoName",Qt)};const vp=n.defineComponent({name:"ClTableCelActions",props:{content:{type:String,default:""}}}),bp={class:"cl-td-actions"};function yp(e,i,l,r,c,u){return n.openBlock(),n.createElementBlock("td",bp,[n.createTextVNode(n.toDisplayString(e.content),1),n.renderSlot(e.$slots,"default")])}const Jt=$(vp,[["render",yp]]);Jt.install=e=>{e.component(Jt.name??"ClNoName",Jt)};const _p=n.defineComponent({name:"ClTableCelAudit",directives:{tooltip:vn},props:{value:{type:String,default:"???"}}}),Cp={class:"cl-td-audit"},kp={class:"fas fa-info-circle"};function $p(e,i,l,r,c,u){const d=n.resolveDirective("tooltip");return n.openBlock(),n.createElementBlock("td",Cp,[n.withDirectives(n.createElementVNode("i",kp,null,512),[[d,e.value,"left"]])])}const Zt=$(_p,[["render",$p]]);Zt.install=e=>{e.component(Zt.name??"ClNoName",Zt)};const Ep=n.defineComponent({name:"ClTableCelBoolean",props:{value:{type:Boolean,default:!1}}}),wp={class:"cl-td-boolean"};function Sp(e,i,l,r,c,u){return n.openBlock(),n.createElementBlock("td",wp,[n.createElementVNode("i",{class:n.normalizeClass(`fas ${e.value?"fa-check":"fa-minus"}`)},null,2)])}const en=$(Ep,[["render",Sp]]);en.install=e=>{e.component(en.name??"ClNoName",en)};const Np=n.defineComponent({name:"ClTableCelCheckbox",props:{id:{type:String,default:void 0},disabled:{type:Boolean,default:!1},value:{type:Boolean,default:!1}},emits:["update:modelValue","changed"],data(){return{modelValue:this.value}},watch:{value:function(e){this.modelValue=e}},methods:{emitAll:function(){this.$emit("update:modelValue",this.modelValue),this.$emit("changed",this.modelValue)}}}),Tp={class:"cl-td-checkbox"},Ap={class:"form-check text-center"},Op=["id","disabled"];function Bp(e,i,l,r,c,u){return n.openBlock(),n.createElementBlock("td",Tp,[n.createElementVNode("div",Ap,[n.withDirectives(n.createElementVNode("input",{id:e.id??e.$uid,"onUpdate:modelValue":i[0]||(i[0]=d=>e.modelValue=d),class:"form-check-input",type:"checkbox",disabled:e.disabled,onChange:i[1]||(i[1]=d=>e.emitAll())},null,40,Op),[[n.vModelCheckbox,e.modelValue]])])])}const tn=$(Np,[["render",Bp]]);tn.install=e=>{e.component(tn.name??"ClNoName",tn)};const Dp=n.defineComponent({name:"ClTableCelCode"}),Vp={class:"cl-td-code"};function Mp(e,i,l,r,c,u){return n.openBlock(),n.createElementBlock("td",Vp,[n.renderSlot(e.$slots,"default")])}const nn=$(Dp,[["render",Mp]]);nn.install=e=>{e.component(nn.name??"ClNoName",nn)};const zp=n.defineComponent({name:"ClTableCelCurrency",props:{amount:{type:Number,default:0},currency:{type:String,default:"EUR"}}}),Lp={class:"cl-td-currency"};function Ip(e,i,l,r,c,u){return n.openBlock(),n.createElementBlock("td",Lp,n.toDisplayString(e.currency)+" "+n.toDisplayString(new Intl.NumberFormat("en-US").format(e.amount)),1)}const on=$(zp,[["render",Ip]]);on.install=e=>{e.component(on.name??"ClNoName",on)};const Fp=n.defineComponent({name:"ClTableCelDate",props:{value:{type:String,default:void 0}},computed:{content:function(){if(this.value){const e=new Date(this.value),i=new Intl.DateTimeFormat("en",{year:"numeric"}).format(e),l=new Intl.DateTimeFormat("en",{month:"2-digit"}).format(e),r=new Intl.DateTimeFormat("en",{day:"2-digit"}).format(e),c=new Intl.DateTimeFormat("en",{hour:"2-digit",hour12:!1}).format(e),u=new Intl.DateTimeFormat("en",{minute:"2-digit"}).format(e);return`${i}-${l}-${r} ${c}:${u}`}return"-"}}}),Pp={class:"cl-td-date"};function Wp(e,i,l,r,c,u){return n.openBlock(),n.createElementBlock("td",Pp,n.toDisplayString(e.content),1)}const sn=$(Fp,[["render",Wp]]);sn.install=e=>{e.component(sn.name??"ClNoName",sn)};const jp=n.defineComponent({name:"ClTableCelId",directives:{tooltip:vn,clipboard:to},props:{value:{type:String,default:"ABCDEF01"},full:{type:String,default:void 0}},computed:{tooltip:function(){return(this.full??this.value)+"<br><small>click-to-copy!</small>"}}}),Rp={class:"cl-td-id"};function xp(e,i,l,r,c,u){const d=n.resolveDirective("tooltip"),v=n.resolveDirective("clipboard");return n.withDirectives((n.openBlock(),n.createElementBlock("td",Rp,[n.createTextVNode(n.toDisplayString(e.value),1)])),[[d,e.tooltip,"right"],[v,e.full??e.value]])}const rn=$(jp,[["render",xp]]);rn.install=e=>{e.component(rn.name??"ClNoName",rn)};const qp=n.defineComponent({name:"ClTableCelLinks",props:{content:{type:String,default:""}}}),Hp={class:"cl-td-links"};function Up(e,i,l,r,c,u){return n.openBlock(),n.createElementBlock("td",Hp,[n.createTextVNode(n.toDisplayString(e.content),1),n.renderSlot(e.$slots,"default")])}const ln=$(qp,[["render",Up]]);ln.install=e=>{e.component(ln.name??"ClNoName",ln)};const Yp=n.defineComponent({name:"ClTableCelTime"}),Xp={class:"cl-td-time"};function Kp(e,i,l,r,c,u){return n.openBlock(),n.createElementBlock("td",Xp,[n.renderSlot(e.$slots,"default")])}const an=$(Yp,[["render",Kp]]);an.install=e=>{e.component(an.name??"ClNoName",an)};const Gp=n.defineComponent({name:"ClTableCelUuid",props:{value:{type:String,default:"00000000-0000-0000-0000-000000000000"}}});function Qp(e,i,l,r,c,u){const d=n.resolveComponent("cl-table-cel-id");return n.openBlock(),n.createBlock(d,{value:e.value.substring(0,8),full:e.value},null,8,["value","full"])}const cn=$(Gp,[["render",Qp]]);cn.install=e=>{e.component(cn.name??"ClNoName",cn)};const Jp=n.defineComponent({name:"ClTableFootChecked",props:{checked:{type:Object,default:()=>({})}},computed:{any:function(){for(const e in this.checked)if(this.checked[e])return!0;return!1}}}),Zp={key:0,class:"cl-table-foot-checked"},eh={class:"cl-td-links",colspan:"100"};function th(e,i,l,r,c,u){return e.any?(n.openBlock(),n.createElementBlock("tfoot",Zp,[n.createElementVNode("tr",null,[n.createElementVNode("td",eh,[i[0]||(i[0]=n.createElementVNode("small",null,[n.createElementVNode("i",{class:"fas fa-share fa-rotate-270 cl-faded"})],-1)),i[1]||(i[1]=n.createTextVNode("   ",-1)),n.renderSlot(e.$slots,"default")])])])):n.createCommentVNode("",!0)}const dn=$(Jp,[["render",th]]);dn.install=e=>{e.component(dn.name??"ClNoName",dn)};const nh=n.defineComponent({name:"ClTableHead",directives:{tooltip:vn},props:{resize:{type:Boolean,default:!1},sort:{type:String,default:"OFF"},width:{type:String,default:""},checkbox:{type:Boolean,default:!1},initial:{type:String,default:"NONE"},sorter:{type:Object,default:null},col:{type:Number,default:0},settings:{type:Boolean,default:!1}},emits:["sort","all","none"],data(){return{checkState:this.initial,modelValue:this.initial==="ALL",mySorter:this.sorter}},watch:{initial:function(e,i){e!==i&&(this.checkState=e,this.modelValue=this.checkState==="ALL")}},mounted(){this.$nextTick(()=>{this.mySorter&&this.mySorter.col===this.col&&this.mySorter.sort()})},methods:{check(){switch(this.checkState){case"NONE":case"SOME":this.checkState="ALL",this.$emit("all");break;case"ALL":this.checkState="NONE",this.$emit("none");break}},openSettings(e){let i=e?.target;for(;i;){if(i.tagName==="TABLE"){Zi(`${i.id}-settings`);return}i=i.parentElement}},sortCol(){let e="NONE";switch(this.mySorter.col===this.col&&(e=this.mySorter?this.mySorter.order.toUpperCase():this.sort.toUpperCase()),e){case"OFF":break;case"ASC":this.mySorter?this.mySorter.set(this.col,"DESC"):this.$emit("sort","DESC");break;case"DESC":default:this.mySorter?this.mySorter.set(this.col,"ASC"):this.$emit("sort","ASC")}}}}),ih=["id","width"],oh={class:"fas fa-cog cl-faded"},sh={key:0,class:"cl-resizer"},rh={key:1,class:"form-check text-center"},lh=["indeterminate"],ah={key:2,class:"cl-resizer"};function ch(e,i,l,r,c,u){const d=n.resolveDirective("tooltip");return n.openBlock(),n.createElementBlock("th",{id:e.$uid,class:n.normalizeClass(["cl-table-head",{"cl-table-head-sort":e.sort!==null,"cl-table-head-checkbox":e.checkbox,"cl-th-links":e.settings}]),width:e.settings?"1%":e.width},[e.settings?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[n.createElementVNode("button",{type:"button",class:"cl-btn-ghost",onClick:i[0]||(i[0]=(...v)=>e.openSettings&&e.openSettings(...v))},[n.withDirectives(n.createElementVNode("i",oh,null,512),[[d,"Configure table","left"]])]),e.resize?(n.openBlock(),n.createElementBlock("div",sh)):n.createCommentVNode("",!0)],64)):e.checkbox?(n.openBlock(),n.createElementBlock("div",rh,[n.withDirectives(n.createElementVNode("input",{ref:"checkbox","onUpdate:modelValue":i[1]||(i[1]=v=>e.modelValue=v),class:"form-check-input",type:"checkbox",indeterminate:e.checkState==="SOME",onChange:i[2]||(i[2]=v=>e.check())},null,40,lh),[[n.vModelCheckbox,e.modelValue]])])):(n.openBlock(),n.createElementBlock(n.Fragment,{key:2},[e.sort?(n.openBlock(),n.createElementBlock("button",{key:0,type:"button",class:"cl-btn-ghost",onClick:i[3]||(i[3]=(...v)=>e.sortCol&&e.sortCol(...v))},[n.renderSlot(e.$slots,"default"),e.sorter?.col===e.col?(n.openBlock(),n.createElementBlock("i",{key:0,class:n.normalizeClass(["fas fa-fw",{"fa-sort-up":e.sorter.order.toUpperCase()==="ASC","fa-sort-down":e.sorter.order.toUpperCase()==="DESC","fa-sort":!["ASC","DESC"].includes(e.sorter.order.toUpperCase())}])},null,2)):e.sort!==null?(n.openBlock(),n.createElementBlock("i",{key:1,class:n.normalizeClass(["fas fa-fw",{"fa-sort-up":e.sort.toUpperCase()==="ASC","fa-sort-down":e.sort.toUpperCase()==="DESC","fa-sort":!["ASC","DESC"].includes(e.sort.toUpperCase())}])},null,2)):n.createCommentVNode("",!0)])):n.renderSlot(e.$slots,"default",{key:1}),e.resize?(n.openBlock(),n.createElementBlock("div",ah)):n.createCommentVNode("",!0)],64))],10,ih)}const un=$(nh,[["render",ch]]);un.install=e=>{e.component(un.name??"ClNoName",un)};const dh=n.defineComponent({name:"ClTableRow",props:{id:{type:String,default:null},class:{type:String,default:null},highlight:{type:Boolean,default:!1}},computed:{clazz:function(){return this.highlight?this.class+" cl-highlight":this.class}}}),uh=["id"];function fh(e,i,l,r,c,u){return n.openBlock(),n.createElementBlock("tr",{id:e.id,class:n.normalizeClass(e.clazz)},[n.renderSlot(e.$slots,"default")],10,uh)}const fn=$(dh,[["render",fh]]);fn.install=e=>{e.component(fn.name??"ClNoName",fn)};const ph=n.defineComponent({name:"ClTabs",props:{index:{type:Number,default:0}},emits:["tab"],data(){return{tabs:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16]}},methods:{slotExists(e){return this.$slots[`tabs-${e}-label`]!==void 0},emit(e){this.$emit("tab",e)}}}),hh={class:"cl-tabs"},mh=["id","name","checked","onChange"],gh=["for"];function vh(e,i,l,r,c,u){return n.openBlock(),n.createElementBlock("div",hh,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.tabs,d=>(n.openBlock(),n.createElementBlock(n.Fragment,{key:d},[e.slotExists(d)?(n.openBlock(),n.createElementBlock("input",{key:0,id:`tabs-${e.$uid}-${d}`,class:n.normalizeClass(`cl-tab-${d}`),type:"radio",name:`tabs-${e.$uid}`,checked:e.index===d-1,onChange:v=>e.emit(d)},null,42,mh)):n.createCommentVNode("",!0)],64))),128)),n.createElementVNode("ul",null,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.tabs,d=>(n.openBlock(),n.createElementBlock(n.Fragment,{key:d},[e.slotExists(d)?(n.openBlock(),n.createElementBlock("li",{key:0,class:n.normalizeClass(`cl-tab-${d}`)},[n.createElementVNode("label",{for:`tabs-${e.$uid}-${d}`},[n.renderSlot(e.$slots,`tabs-${d}-label`)],8,gh)],2)):n.createCommentVNode("",!0)],64))),128))]),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.tabs,d=>(n.openBlock(),n.createElementBlock(n.Fragment,{key:d},[e.slotExists(d)?(n.openBlock(),n.createElementBlock("div",{key:0,class:n.normalizeClass(`cl-tab-${d} cl-tab-content`)},[n.renderSlot(e.$slots,`tabs-${d}-content`)],2)):n.createCommentVNode("",!0)],64))),128))])}const pn=$(ph,[["render",vh]]);pn.install=e=>{e.component(pn.name??"ClNoName",pn)};const bh=n.defineComponent({name:"ClToggle",inheritAttrs:!1,props:{id:{type:String,default:void 0},class:{type:String,default:void 0},modelValue:{type:Boolean,default:!1},enabled:{type:Boolean,default:!0},title:{type:String,default:""},iconOn:{type:String,default:"fas fa-check"},iconOff:{type:String,default:"fas fa-times"}},emits:["update:modelValue"],data(){return{clazz:"cl-badge "+(this.class??"")}},methods:{toggle:function(){if(this.enabled){const e=document.getElementById(this.$uid);e&&(this.$emit("update:modelValue",e.checked),e.focus(),e.blur(),e.focus())}}}}),yh=["id","checked","disabled"],_h=["id","for","disabled"];function Ch(e,i,l,r,c,u){return n.openBlock(),n.createElementBlock(n.Fragment,null,[n.createElementVNode("input",{id:e.$uid,type:"checkbox",class:n.normalizeClass("cl-toggle-checkbox"),checked:e.modelValue,disabled:e.enabled?null:!0,onChange:i[0]||(i[0]=d=>e.toggle())},null,40,yh),n.createElementVNode("label",{id:e.id,class:n.normalizeClass(e.clazz),for:e.$uid,disabled:e.enabled?null:!0},[n.createElementVNode("i",{class:n.normalizeClass(`${e.iconOn} fa-fw`)},null,2),n.createElementVNode("i",{class:n.normalizeClass(`${e.iconOff} fa-fw`)},null,2),n.createTextVNode(n.toDisplayString(e.title),1)],10,_h)],64)}const hn=$(bh,[["render",Ch]]);hn.install=e=>{e.component(hn.name??"ClNoName",hn)};const kh={COLOR:{ASH:"#6d5e5e",BERRY:"#6e1c3b",BRICK:"#ba4f4f",CLAY:"#cfc8c8",EGGSHELL:"#fbf9f2",HAZE:"#eeece6",HONEY:"#dc9404",LEAF:"#53965d",NIGHT:"#262a35",ORCHID:"#b271bf",PETROL:"#096174",RED:"#fa423c",SAND:"#fdf5cf",SEA:"#5d9dd1",SKY:"#71c0ff",STEEL:"#a0a0a0"},SPACING:{HUGE:"48px",LARGE:"32px",MEDIUM:"24px",SMALL:"16px",TINY:"8px",MICRO:"4px",NONE:"0px"}},Je={DEV:"DEV",TEST:"TEST",PROD:"PROD"},kr={id:"CP",subtitle:"Access the Content Platform, manage, encode and watermark assets",title:"Content Platform",urlManage:function(e,i){return e===Je.PROD?`https://platform.content.castlabs.com/#/o/${i??""}`:`https://platform.content-stag.castlabs.com/#/o/${i??""}`},sidenav:!1},$r={id:"CS",subtitle:"Manage organizations, plans, downloads",title:"Castlabs hub",urlManage:function(e,i){return no(e,`https://account.test.cs.castlabs.com/o/${i??""}`,`https://account.castlabs.com/o/${i??""}`)},sidenav:!0},Er={id:"DT",subtitle:"Cloud DRM & CAS licensing",title:"DRMtoday",urlManage:function(e,i){return no(e,`https://fe.test.drmtoday.com/dashboard/${i?`${i}/`:""}index`,`https://fe.drmtoday.com/dashboard/${i?`${i}/`:""}index`)},sidenav:!0},wr={id:"DTO",subtitle:"",title:"DRMtoday Onboard (staging)",urlManage:function(e,i){return`https://onboard.castlabs.com/o/${i??""}/devices`},sidenav:!1},Sr={id:"DTS",subtitle:"Cloud DRM & CAS licensing",title:"DRMtoday (staging)",urlManage:function(e,i){return no(e,`https://fe.test.drmtoday.com/dashboard/${i?`${i}/`:""}index`,`https://fe.staging.drmtoday.com/dashboard/${i?`${i}/`:""}index`)},sidenav:!1},Nr={id:"PP",subtitle:"Cross-platform video players (via Castlabs hub)",title:"PRESTOplay",urlManage:function(e,i){return e===Je.PROD?`https://account.castlabs.com/o/${i}/prestoplay`:`https://account.test.cs.castlabs.com/o/${i}/prestoplay`},sidenav:!0},Tr={id:"VTK",subtitle:"Cloud encoding, packaging, watermarking",title:"Video Toolkit",urlManage:function(e){return e===Je.PROD?"https://vtk.castlabs.com/":"https://vtks.castlabs.com/"},sidenav:!0},Ar={id:"WM",subtitle:"Video & image forensic watermarking",title:"STARDUSTmark",urlManage:function(e,i){return e===Je.PROD?`https://watermark.castlabs.com/#/o/${i}`:`https://demo-stag.fwm.castlabs.com/#/o/${i}`},sidenav:!0};function no(e=Je.PROD,i,l){return[Je.DEV,Je.TEST].includes(e)?i:l}function $h(){return[$r,kr,Er,Sr,wr,Nr,Ar,Tr]}const Eh={CP:kr,CS:$r,DT:Er,DTS:Sr,DTO:wr,PP:Nr,WM:Ar,VTK:Tr},Or="✺";let Zn={};function wh(e,i="",l=!1){const r=Zn[i]??Fe(Br(i));return Object.keys(Zn).length>100&&(Zn={}),Zn[i]=r,Ge(l?e.toLowerCase():e,r,l)}function Ge(e,i,l){if(typeof i=="string"){const r=i.replaceAll(Or," ");return r[0]==="-"?!Ge(e,r.substring(1),l):l?e.includes(r):e.toLowerCase().includes(r.toLowerCase())}else switch(i[0]){case"&":return Ge(e,i[1])&&Ge(e,i[2]);case"|":return Ge(e,i[1])||Ge(e,i[2]);default:return!1}}function Br(e){const i=[];let l=!1;for(let d=0;d<e.length;d++)l?e[d]===l?l=!1:i.push([" "].includes(e[d])?Or:e[d]):["'",'"'].includes(e[d])?l=e[d]:i.push(e[d]);const r=i.join("").replace(/\s+/g," ").trim();if(r.length<=0)return"";const c=r.split(" ");if(c.length<=0)return"";const u=[];["NOT","-"].includes(c[0])||u.push(c.shift());for(let d=0;d<c.length;d++)switch(c[d]){case"AND":case"&":case"&&":switch(c[++d]){case"NOT":case"-":c[d+1]&&(u.push("&"),u.push("-"),u.push(c[++d]));break;case void 0:break;default:u.push("&"),u.push(c[d])}break;case"OR":case"|":case"||":switch(c[++d]){case"NOT":case"-":c[d+1]&&(u.push("|"),u.push("-"),u.push(c[++d]));break;case void 0:break;default:u.push("|"),u.push(c[d])}break;case"NOT":case"-":u.push("-"),u.push(c[++d]);break;default:u.push("&"),u.push(c[d])}return` ${u.join(" ")} `.replace(/ - /g," -").trim()}function Fe(e){const i=e.indexOf(" | ");if(i>=0)return["|",Fe(e.substring(0,i)),Fe(e.substring(i+3))];const l=e.indexOf(" & ");if(l>=0)return["&",Fe(e.substring(0,l)),Fe(e.substring(l+3))];const r=e.indexOf(" ");return r>=0?["&",Fe(e.substring(0,r)),Fe(e.substring(r+1))]:e}const Sh={install:e=>{let i=0;e.mixin({beforeCreate:function(){let r;const c="uid-"+i++;Object.defineProperties(this,(r={},r.$uid={get:function(){return c}},r))}})}};function Nh(){return{ClAlert:_t,ClBackCancelOk:Ct,ClCookieBanner:kt,ClCopy:$t,ClCreditcardNumber:Et,ClDropzone:wt,ClField:St,ClFieldCheck:Nt,ClFieldGroup:Tt,ClHashtag:At,ClIconotron:Ot,ClInfo:Bt,ClLinkExternal:Dt,ClLorem:Vt,ClMailto:Mt,ClModal:zt,ClModalConfirm:Lt,ClModalForm:It,ClModalOk:Ft,ClNavSide:Pt,ClNavTop:Wt,ClOrg:jt,ClPage:Rt,ClPagination:xt,ClPlan:qt,ClRole:Ht,ClSectionForm:Ut,ClSectionHeadline:Yt,ClSectionMain:Qe,ClSectionMainSide:Xt,ClSpinner:Kt,ClTable:Gt,ClTableCel:Qt,ClTableCelActions:Jt,ClTableCelAudit:Zt,ClTableCelBoolean:en,ClTableCelCheckbox:tn,ClTableCelCode:nn,ClTableCelCurrency:on,ClTableCelDate:sn,ClTableCelId:rn,ClTableCelLinks:ln,ClTableCelTime:an,ClTableCelUuid:cn,ClTableFootChecked:dn,ClTableHead:un,ClTableRow:fn,ClTabs:pn,ClToggle:hn}}const Th=[/[^a-z]don['`\s]*t/i,/do[\s]+not/i,/[^a-z]aren['`\s]*t/i,/are[\s]+not/i,/[^a-z]isn['`\s]*t/i,/is[\s]+not/i,/you['`]*re/i,/you[\s]+are/i,/we['`\s]*re/i,/we[\s]+are/i,/we['`]+ll/i,/we[\s]+will/i,/[^a-z]shouldn['`\s]*t/i,/should[\s]+not/i,/[^a-z]mustn['`\s]*t/i,/must[\s]+not/i,/[^a-z]didn['`\s]*t/i,/did[\s]+not/i,/[^a-z]wasn['`\s]*t/i,/was[\s]+not/i,/[^a-z]hasn['`\s]*t/i,/has[\s]+not/i,/[^a-z]can['`]+t/i,/can[\s]+not/i,/[a-z]n['`]+t/i];function Ah(){return[Sh]}function io(e,i){const l=JSON.parse(JSON.stringify(e));for(const r in i)typeof i[r]=="object"&&!Array.isArray(i[r])?l[r]=io(e[r]??{},i[r]):l[r]=i[r];return l}function Oh(e,i){return{store:io(e,i)}}const Xi={ClAlert:_t,ClBackCancelOk:Ct,ClCookieBanner:kt,ClCopy:$t,ClCreditcardNumber:Et,ClDropzone:wt,ClField:St,ClFieldCheck:Nt,ClFieldGroup:Tt,ClHashtag:At,ClIconotron:Ot,ClInfo:Bt,ClLinkExternal:Dt,ClLorem:Vt,ClMailto:Mt,ClModal:zt,ClModalConfirm:Lt,ClModalForm:It,ClModalOk:Ft,ClNavSide:Pt,ClNavTop:Wt,ClOrg:jt,ClPage:Rt,ClPagination:xt,ClPlan:qt,ClRole:Ht,ClSectionForm:Ut,ClSectionHeadline:Yt,ClSectionMain:Qe,ClSectionMainSide:Xt,ClSpinner:Kt,ClTable:Gt,ClTableCel:Qt,ClTableCelActions:Jt,ClTableCelAudit:Zt,ClTableCelBoolean:en,ClTableCelCheckbox:tn,ClTableCelCode:nn,ClTableCelCurrency:on,ClTableCelDate:sn,ClTableCelId:rn,ClTableCelLinks:ln,ClTableCelTime:an,ClTableCelUuid:cn,ClTableFootChecked:dn,ClTableHead:un,ClTableRow:fn,ClTabs:pn,ClToggle:hn,ClMockRouterLink:On,ClUI:Mc};function Bh(e){for(const i in Xi)e.component(Xi[i].name,Xi[i])}exports.CONST=kh;exports.ClAlert=_t;exports.ClBackCancelOk=Ct;exports.ClCookieBanner=kt;exports.ClCopy=$t;exports.ClCreditcardNumber=Et;exports.ClDropzone=wt;exports.ClField=St;exports.ClFieldCheck=Nt;exports.ClFieldGroup=Tt;exports.ClHashtag=At;exports.ClIconotron=Ot;exports.ClInfo=Bt;exports.ClLinkExternal=Dt;exports.ClLorem=Vt;exports.ClMailto=Mt;exports.ClMockRouterLink=On;exports.ClModal=zt;exports.ClModalConfirm=Lt;exports.ClModalForm=It;exports.ClModalOk=Ft;exports.ClNavSide=Pt;exports.ClNavTop=Wt;exports.ClOrg=jt;exports.ClPage=Rt;exports.ClPagination=xt;exports.ClPlan=qt;exports.ClRole=Ht;exports.ClSectionForm=Ut;exports.ClSectionHeadline=Yt;exports.ClSectionMain=Qe;exports.ClSectionMainSide=Xt;exports.ClSpinner=Kt;exports.ClTable=Gt;exports.ClTableCel=Qt;exports.ClTableCelActions=Jt;exports.ClTableCelAudit=Zt;exports.ClTableCelBoolean=en;exports.ClTableCelCheckbox=tn;exports.ClTableCelCode=nn;exports.ClTableCelCurrency=on;exports.ClTableCelDate=sn;exports.ClTableCelId=rn;exports.ClTableCelLinks=ln;exports.ClTableCelTime=an;exports.ClTableCelUuid=cn;exports.ClTableFootChecked=dn;exports.ClTableHead=un;exports.ClTableRow=fn;exports.ClTabs=pn;exports.ClToggle=hn;exports.FLECTIONS=Th;exports.NAV=Eh;exports._getProperty=yt;exports._sanitize=Br;exports._tokenize=Fe;exports.clCopyData=nd;exports.clDebounce=Zc;exports.clFocus=Rc;exports.clFormAutofocus=xc;exports.clFormFieldFocusFirstInvalid=eo;exports.clFormFieldReset=fr;exports.clFormIsValid=pr;exports.clFormIsValidAsync=hr;exports.clFormReset=ur;exports.clFormatAmount=Xc;exports.clFormatCardNumber=vr;exports.clFormatDate=mr;exports.clFormatDateTimeUTC=Hc;exports.clFormatDuration=Uc;exports.clFormatFilesize=qc;exports.clFormatNumber=ri;exports.clFormatPeriod=Yc;exports.clFormatRange=Kc;exports.clFormatTimeUTC=gr;exports.clGetAllComponents=Nh;exports.clGetAllPlugins=Ah;exports.clGetServices=$h;exports.clMatch=wh;exports.clModalHide=mn;exports.clModalIsShown=jc;exports.clModalShow=Zi;exports.clModalValue=ii;exports.clPaginate=dr;exports.clPatch=io;exports.clPatchStore=Oh;exports.clRandomList=td;exports.clRandomString=ed;exports.clRefClField=rd;exports.clRefClFieldGroup=ld;exports.clRefHTMLElement=ad;exports.clReload=od;exports.clReloadStore=id;exports.clScrollToId=cr;exports.clSleep=sd;exports.clSort=br;exports.clSynchronizedSubmit=Gc;exports.clSynchronizedSubmitAsync=Qc;exports.clTableSorter=yr;exports.clTableSorterObjects=Jc;exports.clUi=Bh;exports.clVClipboard=to;exports.clVTooltip=vn;
26
26
  //# sourceMappingURL=castlabs-ui.common.js.map