flowbite 2.3.0 → 3.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1,27 @@
1
- var n1=(q,U)=>()=>(U||q((U={exports:{}}).exports,U),U.exports);var p8=function(){function q(U,K){if(K===void 0)K=[];this._eventType=U,this._eventFunctions=K}return q.prototype.init=function(){var U=this;this._eventFunctions.forEach(function(K){if(typeof window!=="undefined")window.addEventListener(U._eventType,K)})},q}(),X8=p8;var c8=function(){function q(){this._instances={Accordion:{},Carousel:{},Collapse:{},Dial:{},Dismiss:{},Drawer:{},Dropdown:{},Modal:{},Popover:{},Tabs:{},Tooltip:{},InputCounter:{},CopyClipboard:{}}}return q.prototype.addInstance=function(U,K,J,Q){if(Q===void 0)Q=!1;if(!this._instances[U])return console.warn("Flowbite: Component ".concat(U," does not exist.")),!1;if(this._instances[U][J]&&!Q){console.warn("Flowbite: Instance with ID ".concat(J," already exists."));return}if(Q&&this._instances[U][J])this._instances[U][J].destroyAndRemoveInstance();this._instances[U][J?J:this._generateRandomId()]=K},q.prototype.getAllInstances=function(){return this._instances},q.prototype.getInstances=function(U){if(!this._instances[U])return console.warn("Flowbite: Component ".concat(U," does not exist.")),!1;return this._instances[U]},q.prototype.getInstance=function(U,K){if(!this._componentAndInstanceCheck(U,K))return;if(!this._instances[U][K]){console.warn("Flowbite: Instance with ID ".concat(K," does not exist."));return}return this._instances[U][K]},q.prototype.destroyAndRemoveInstance=function(U,K){if(!this._componentAndInstanceCheck(U,K))return;this.destroyInstanceObject(U,K),this.removeInstance(U,K)},q.prototype.removeInstance=function(U,K){if(!this._componentAndInstanceCheck(U,K))return;delete this._instances[U][K]},q.prototype.destroyInstanceObject=function(U,K){if(!this._componentAndInstanceCheck(U,K))return;this._instances[U][K].destroy()},q.prototype.instanceExists=function(U,K){if(!this._instances[U])return!1;if(!this._instances[U][K])return!1;return!0},q.prototype._generateRandomId=function(){return Math.random().toString(36).substr(2,9)},q.prototype._componentAndInstanceCheck=function(U,K){if(!this._instances[U])return console.warn("Flowbite: Component ".concat(U," does not exist.")),!1;if(!this._instances[U][K])return console.warn("Flowbite: Instance with ID ".concat(K," does not exist.")),!1;return!0},q}(),L8=new c8,L=L8;if(typeof window!=="undefined")window.FlowbiteInstances=L8;function I0(){document.querySelectorAll("[data-accordion]").forEach(function(q){var U=q.getAttribute("data-accordion"),K=q.getAttribute("data-active-classes"),J=q.getAttribute("data-inactive-classes"),Q=[];q.querySelectorAll("[data-accordion-target]").forEach(function(Z){if(Z.closest("[data-accordion]")===q){var z={id:Z.getAttribute("data-accordion-target"),triggerEl:Z,targetEl:document.querySelector(Z.getAttribute("data-accordion-target")),iconEl:Z.querySelector("[data-accordion-icon]"),active:Z.getAttribute("aria-expanded")==="true"?!0:!1};Q.push(z)}}),new bU(q,Q,{alwaysOpen:U==="open"?!0:!1,activeClasses:K?K:qU.activeClasses,inactiveClasses:J?J:qU.inactiveClasses})})}var UU=function(){return UU=Object.assign||function(q){for(var U,K=1,J=arguments.length;K<J;K++){U=arguments[K];for(var Q in U)if(Object.prototype.hasOwnProperty.call(U,Q))q[Q]=U[Q]}return q},UU.apply(this,arguments)},qU={alwaysOpen:!1,activeClasses:"bg-gray-100 dark:bg-gray-800 text-gray-900 dark:text-white",inactiveClasses:"text-gray-500 dark:text-gray-400",onOpen:function(){},onClose:function(){},onToggle:function(){}},l8={id:null,override:!0},bU=function(){function q(U,K,J,Q){if(U===void 0)U=null;if(K===void 0)K=[];if(J===void 0)J=qU;if(Q===void 0)Q=l8;this._instanceId=Q.id?Q.id:U.id,this._accordionEl=U,this._items=K,this._options=UU(UU({},qU),J),this._initialized=!1,this.init(),L.addInstance("Accordion",this,this._instanceId,Q.override)}return q.prototype.init=function(){var U=this;if(this._items.length&&!this._initialized)this._items.forEach(function(K){if(K.active)U.open(K.id);var J=function(){U.toggle(K.id)};K.triggerEl.addEventListener("click",J),K.clickHandler=J}),this._initialized=!0},q.prototype.destroy=function(){if(this._items.length&&this._initialized)this._items.forEach(function(U){U.triggerEl.removeEventListener("click",U.clickHandler),delete U.clickHandler}),this._initialized=!1},q.prototype.removeInstance=function(){L.removeInstance("Accordion",this._instanceId)},q.prototype.destroyAndRemoveInstance=function(){this.destroy(),this.removeInstance()},q.prototype.getItem=function(U){return this._items.filter(function(K){return K.id===U})[0]},q.prototype.open=function(U){var K,J,Q=this,Z=this.getItem(U);if(!this._options.alwaysOpen)this._items.map(function(z){var G,Y;if(z!==Z){if((G=z.triggerEl.classList).remove.apply(G,Q._options.activeClasses.split(" ")),(Y=z.triggerEl.classList).add.apply(Y,Q._options.inactiveClasses.split(" ")),z.targetEl.classList.add("hidden"),z.triggerEl.setAttribute("aria-expanded","false"),z.active=!1,z.iconEl)z.iconEl.classList.add("rotate-180")}});if((K=Z.triggerEl.classList).add.apply(K,this._options.activeClasses.split(" ")),(J=Z.triggerEl.classList).remove.apply(J,this._options.inactiveClasses.split(" ")),Z.triggerEl.setAttribute("aria-expanded","true"),Z.targetEl.classList.remove("hidden"),Z.active=!0,Z.iconEl)Z.iconEl.classList.remove("rotate-180");this._options.onOpen(this,Z)},q.prototype.toggle=function(U){var K=this.getItem(U);if(K.active)this.close(U);else this.open(U);this._options.onToggle(this,K)},q.prototype.close=function(U){var K,J,Q=this.getItem(U);if((K=Q.triggerEl.classList).remove.apply(K,this._options.activeClasses.split(" ")),(J=Q.triggerEl.classList).add.apply(J,this._options.inactiveClasses.split(" ")),Q.targetEl.classList.add("hidden"),Q.triggerEl.setAttribute("aria-expanded","false"),Q.active=!1,Q.iconEl)Q.iconEl.classList.add("rotate-180");this._options.onClose(this,Q)},q.prototype.updateOnOpen=function(U){this._options.onOpen=U},q.prototype.updateOnClose=function(U){this._options.onClose=U},q.prototype.updateOnToggle=function(U){this._options.onToggle=U},q}();if(typeof window!=="undefined")window.Accordion=bU,window.initAccordions=I0;var r8=bU;function S0(){document.querySelectorAll("[data-collapse-toggle]").forEach(function(q){var U=q.getAttribute("data-collapse-toggle"),K=document.getElementById(U);if(K)if(!L.instanceExists("Collapse",K.getAttribute("id")))new JU(K,q);else new JU(K,q,{},{id:K.getAttribute("id")+"_"+L._generateRandomId()});else console.error("The target element with id \"".concat(U,"\" does not exist. Please check the data-collapse-toggle attribute."))})}var KU=function(){return KU=Object.assign||function(q){for(var U,K=1,J=arguments.length;K<J;K++){U=arguments[K];for(var Q in U)if(Object.prototype.hasOwnProperty.call(U,Q))q[Q]=U[Q]}return q},KU.apply(this,arguments)},W8={onCollapse:function(){},onExpand:function(){},onToggle:function(){}},a8={id:null,override:!0},JU=function(){function q(U,K,J,Q){if(U===void 0)U=null;if(K===void 0)K=null;if(J===void 0)J=W8;if(Q===void 0)Q=a8;this._instanceId=Q.id?Q.id:U.id,this._targetEl=U,this._triggerEl=K,this._options=KU(KU({},W8),J),this._visible=!1,this._initialized=!1,this.init(),L.addInstance("Collapse",this,this._instanceId,Q.override)}return q.prototype.init=function(){var U=this;if(this._triggerEl&&this._targetEl&&!this._initialized){if(this._triggerEl.hasAttribute("aria-expanded"))this._visible=this._triggerEl.getAttribute("aria-expanded")==="true";else this._visible=!this._targetEl.classList.contains("hidden");this._clickHandler=function(){U.toggle()},this._triggerEl.addEventListener("click",this._clickHandler),this._initialized=!0}},q.prototype.destroy=function(){if(this._triggerEl&&this._initialized)this._triggerEl.removeEventListener("click",this._clickHandler),this._initialized=!1},q.prototype.removeInstance=function(){L.removeInstance("Collapse",this._instanceId)},q.prototype.destroyAndRemoveInstance=function(){this.destroy(),this.removeInstance()},q.prototype.collapse=function(){if(this._targetEl.classList.add("hidden"),this._triggerEl)this._triggerEl.setAttribute("aria-expanded","false");this._visible=!1,this._options.onCollapse(this)},q.prototype.expand=function(){if(this._targetEl.classList.remove("hidden"),this._triggerEl)this._triggerEl.setAttribute("aria-expanded","true");this._visible=!0,this._options.onExpand(this)},q.prototype.toggle=function(){if(this._visible)this.collapse();else this.expand();this._options.onToggle(this)},q.prototype.updateOnCollapse=function(U){this._options.onCollapse=U},q.prototype.updateOnExpand=function(U){this._options.onExpand=U},q.prototype.updateOnToggle=function(U){this._options.onToggle=U},q}();if(typeof window!=="undefined")window.Collapse=JU,window.initCollapses=S0;var o8=JU;function k0(){document.querySelectorAll("[data-carousel]").forEach(function(q){var U=q.getAttribute("data-carousel-interval"),K=q.getAttribute("data-carousel")==="slide"?!0:!1,J=[],Q=0;if(q.querySelectorAll("[data-carousel-item]").length)Array.from(q.querySelectorAll("[data-carousel-item]")).map(function(X,H){if(J.push({position:H,el:X}),X.getAttribute("data-carousel-item")==="active")Q=H});var Z=[];if(q.querySelectorAll("[data-carousel-slide-to]").length)Array.from(q.querySelectorAll("[data-carousel-slide-to]")).map(function(X){Z.push({position:parseInt(X.getAttribute("data-carousel-slide-to")),el:X})});var z=new hU(q,J,{defaultPosition:Q,indicators:{items:Z},interval:U?U:QU.interval});if(K)z.cycle();var G=q.querySelector("[data-carousel-next]"),Y=q.querySelector("[data-carousel-prev]");if(G)G.addEventListener("click",function(){z.next()});if(Y)Y.addEventListener("click",function(){z.prev()})})}var X0=function(){return X0=Object.assign||function(q){for(var U,K=1,J=arguments.length;K<J;K++){U=arguments[K];for(var Q in U)if(Object.prototype.hasOwnProperty.call(U,Q))q[Q]=U[Q]}return q},X0.apply(this,arguments)},QU={defaultPosition:0,indicators:{items:[],activeClasses:"bg-white dark:bg-gray-800",inactiveClasses:"bg-white/50 dark:bg-gray-800/50 hover:bg-white dark:hover:bg-gray-800"},interval:3000,onNext:function(){},onPrev:function(){},onChange:function(){}},s8={id:null,override:!0},hU=function(){function q(U,K,J,Q){if(U===void 0)U=null;if(K===void 0)K=[];if(J===void 0)J=QU;if(Q===void 0)Q=s8;this._instanceId=Q.id?Q.id:U.id,this._carouselEl=U,this._items=K,this._options=X0(X0(X0({},QU),J),{indicators:X0(X0({},QU.indicators),J.indicators)}),this._activeItem=this.getItem(this._options.defaultPosition),this._indicators=this._options.indicators.items,this._intervalDuration=this._options.interval,this._intervalInstance=null,this._initialized=!1,this.init(),L.addInstance("Carousel",this,this._instanceId,Q.override)}return q.prototype.init=function(){var U=this;if(this._items.length&&!this._initialized){if(this._items.map(function(K){K.el.classList.add("absolute","inset-0","transition-transform","transform")}),this.getActiveItem())this.slideTo(this.getActiveItem().position);else this.slideTo(0);this._indicators.map(function(K,J){K.el.addEventListener("click",function(){U.slideTo(J)})}),this._initialized=!0}},q.prototype.destroy=function(){if(this._initialized)this._initialized=!1},q.prototype.removeInstance=function(){L.removeInstance("Carousel",this._instanceId)},q.prototype.destroyAndRemoveInstance=function(){this.destroy(),this.removeInstance()},q.prototype.getItem=function(U){return this._items[U]},q.prototype.slideTo=function(U){var K=this._items[U],J={left:K.position===0?this._items[this._items.length-1]:this._items[K.position-1],middle:K,right:K.position===this._items.length-1?this._items[0]:this._items[K.position+1]};if(this._rotate(J),this._setActiveItem(K),this._intervalInstance)this.pause(),this.cycle();this._options.onChange(this)},q.prototype.next=function(){var U=this.getActiveItem(),K=null;if(U.position===this._items.length-1)K=this._items[0];else K=this._items[U.position+1];this.slideTo(K.position),this._options.onNext(this)},q.prototype.prev=function(){var U=this.getActiveItem(),K=null;if(U.position===0)K=this._items[this._items.length-1];else K=this._items[U.position-1];this.slideTo(K.position),this._options.onPrev(this)},q.prototype._rotate=function(U){if(this._items.map(function(K){K.el.classList.add("hidden")}),this._items.length===1){U.middle.el.classList.remove("-translate-x-full","translate-x-full","translate-x-0","hidden","z-10"),U.middle.el.classList.add("translate-x-0","z-20");return}U.left.el.classList.remove("-translate-x-full","translate-x-full","translate-x-0","hidden","z-20"),U.left.el.classList.add("-translate-x-full","z-10"),U.middle.el.classList.remove("-translate-x-full","translate-x-full","translate-x-0","hidden","z-10"),U.middle.el.classList.add("translate-x-0","z-30"),U.right.el.classList.remove("-translate-x-full","translate-x-full","translate-x-0","hidden","z-30"),U.right.el.classList.add("translate-x-full","z-20")},q.prototype.cycle=function(){var U=this;if(typeof window!=="undefined")this._intervalInstance=window.setInterval(function(){U.next()},this._intervalDuration)},q.prototype.pause=function(){clearInterval(this._intervalInstance)},q.prototype.getActiveItem=function(){return this._activeItem},q.prototype._setActiveItem=function(U){var K,J,Q=this;this._activeItem=U;var Z=U.position;if(this._indicators.length)this._indicators.map(function(z){var G,Y;z.el.setAttribute("aria-current","false"),(G=z.el.classList).remove.apply(G,Q._options.indicators.activeClasses.split(" ")),(Y=z.el.classList).add.apply(Y,Q._options.indicators.inactiveClasses.split(" "))}),(K=this._indicators[Z].el.classList).add.apply(K,this._options.indicators.activeClasses.split(" ")),(J=this._indicators[Z].el.classList).remove.apply(J,this._options.indicators.inactiveClasses.split(" ")),this._indicators[Z].el.setAttribute("aria-current","true")},q.prototype.updateOnNext=function(U){this._options.onNext=U},q.prototype.updateOnPrev=function(U){this._options.onPrev=U},q.prototype.updateOnChange=function(U){this._options.onChange=U},q}();if(typeof window!=="undefined")window.Carousel=hU,window.initCarousels=k0;var i8=hU;function x0(){document.querySelectorAll("[data-dismiss-target]").forEach(function(q){var U=q.getAttribute("data-dismiss-target"),K=document.querySelector(U);if(K)new vU(K,q);else console.error("The dismiss element with id \"".concat(U,"\" does not exist. Please check the data-dismiss-target attribute."))})}var ZU=function(){return ZU=Object.assign||function(q){for(var U,K=1,J=arguments.length;K<J;K++){U=arguments[K];for(var Q in U)if(Object.prototype.hasOwnProperty.call(U,Q))q[Q]=U[Q]}return q},ZU.apply(this,arguments)},B8={transition:"transition-opacity",duration:300,timing:"ease-out",onHide:function(){}},n8={id:null,override:!0},vU=function(){function q(U,K,J,Q){if(U===void 0)U=null;if(K===void 0)K=null;if(J===void 0)J=B8;if(Q===void 0)Q=n8;this._instanceId=Q.id?Q.id:U.id,this._targetEl=U,this._triggerEl=K,this._options=ZU(ZU({},B8),J),this._initialized=!1,this.init(),L.addInstance("Dismiss",this,this._instanceId,Q.override)}return q.prototype.init=function(){var U=this;if(this._triggerEl&&this._targetEl&&!this._initialized)this._clickHandler=function(){U.hide()},this._triggerEl.addEventListener("click",this._clickHandler),this._initialized=!0},q.prototype.destroy=function(){if(this._triggerEl&&this._initialized)this._triggerEl.removeEventListener("click",this._clickHandler),this._initialized=!1},q.prototype.removeInstance=function(){L.removeInstance("Dismiss",this._instanceId)},q.prototype.destroyAndRemoveInstance=function(){this.destroy(),this.removeInstance()},q.prototype.hide=function(){var U=this;this._targetEl.classList.add(this._options.transition,"duration-".concat(this._options.duration),this._options.timing,"opacity-0"),setTimeout(function(){U._targetEl.classList.add("hidden")},this._options.duration),this._options.onHide(this,this._targetEl)},q.prototype.updateOnHide=function(U){this._options.onHide=U},q}();if(typeof window!=="undefined")window.Dismiss=vU,window.initDismisses=x0;var t8=vU;var k="top",h="bottom",D="right",y="left",GU="auto",e=[k,h,D,y],s="start",L0="end",F8="clippingParents",zU="viewport",C0="popper",N8="reference",PU=e.reduce(function(q,U){return q.concat([U+"-"+s,U+"-"+L0])},[]),YU=[].concat(e,[GU]).reduce(function(q,U){return q.concat([U,U+"-"+s,U+"-"+L0])},[]),e8="beforeRead",U1="read",q1="afterRead",K1="beforeMain",J1="main",Q1="afterMain",Z1="beforeWrite",G1="write",z1="afterWrite",V8=[e8,U1,q1,K1,J1,Q1,Z1,G1,z1];function w(q){return q?(q.nodeName||"").toLowerCase():null}function I(q){if(q==null)return window;if(q.toString()!=="[object Window]"){var U=q.ownerDocument;return U?U.defaultView||window:window}return q}var g=function(q){var U=I(q).Element;return q instanceof U||q instanceof Element},v=function(q){var U=I(q).HTMLElement;return q instanceof U||q instanceof HTMLElement},y0=function(q){if(typeof ShadowRoot==="undefined")return!1;var U=I(q).ShadowRoot;return q instanceof U||q instanceof ShadowRoot};var Y1=function(q){var U=q.state;Object.keys(U.elements).forEach(function(K){var J=U.styles[K]||{},Q=U.attributes[K]||{},Z=U.elements[K];if(!v(Z)||!w(Z))return;Object.assign(Z.style,J),Object.keys(Q).forEach(function(z){var G=Q[z];if(G===!1)Z.removeAttribute(z);else Z.setAttribute(z,G===!0?"":G)})})},H1=function(q){var U=q.state,K={popper:{position:U.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};if(Object.assign(U.elements.popper.style,K.popper),U.styles=K,U.elements.arrow)Object.assign(U.elements.arrow.style,K.arrow);return function(){Object.keys(U.elements).forEach(function(J){var Q=U.elements[J],Z=U.attributes[J]||{},z=Object.keys(U.styles.hasOwnProperty(J)?U.styles[J]:K[J]),G=z.reduce(function(Y,X){return Y[X]="",Y},{});if(!v(Q)||!w(Q))return;Object.assign(Q.style,G),Object.keys(Z).forEach(function(Y){Q.removeAttribute(Y)})})}},R8={name:"applyStyles",enabled:!0,phase:"write",fn:Y1,effect:H1,requires:["computeStyles"]};function $(q){return q.split("-")[0]}var{max:r,min:W0,round:i}=Math;function D0(){var q=navigator.userAgentData;if(q!=null&&q.brands&&Array.isArray(q.brands))return q.brands.map(function(U){return U.brand+"/"+U.version}).join(" ");return navigator.userAgent}function d0(){return!/^((?!chrome|android).)*safari/i.test(D0())}function d(q,U,K){if(U===void 0)U=!1;if(K===void 0)K=!1;var J=q.getBoundingClientRect(),Q=1,Z=1;if(U&&v(q))Q=q.offsetWidth>0?i(J.width)/q.offsetWidth||1:1,Z=q.offsetHeight>0?i(J.height)/q.offsetHeight||1:1;var z=g(q)?I(q):window,G=z.visualViewport,Y=!d0()&&K,X=(J.left+(Y&&G?G.offsetLeft:0))/Q,H=(J.top+(Y&&G?G.offsetTop:0))/Z,V=J.width/Q,T=J.height/Z;return{width:V,height:T,top:H,right:X+V,bottom:H+T,left:X,x:X,y:H}}function B0(q){var U=d(q),K=q.offsetWidth,J=q.offsetHeight;if(Math.abs(U.width-K)<=1)K=U.width;if(Math.abs(U.height-J)<=1)J=U.height;return{x:q.offsetLeft,y:q.offsetTop,width:K,height:J}}function p0(q,U){var K=U.getRootNode&&U.getRootNode();if(q.contains(U))return!0;else if(K&&y0(K)){var J=U;do{if(J&&q.isSameNode(J))return!0;J=J.parentNode||J.host}while(J)}return!1}function f(q){return I(q).getComputedStyle(q)}function wU(q){return["table","td","th"].indexOf(w(q))>=0}function u(q){return((g(q)?q.ownerDocument:q.document)||window.document).documentElement}function n(q){if(w(q)==="html")return q;return q.assignedSlot||q.parentNode||(y0(q)?q.host:null)||u(q)}var A8=function(q){if(!v(q)||f(q).position==="fixed")return null;return q.offsetParent},X1=function(q){var U=/firefox/i.test(D0()),K=/Trident/i.test(D0());if(K&&v(q)){var J=f(q);if(J.position==="fixed")return null}var Q=n(q);if(y0(Q))Q=Q.host;while(v(Q)&&["html","body"].indexOf(w(Q))<0){var Z=f(Q);if(Z.transform!=="none"||Z.perspective!=="none"||Z.contain==="paint"||["transform","perspective"].indexOf(Z.willChange)!==-1||U&&Z.willChange==="filter"||U&&Z.filter&&Z.filter!=="none")return Q;else Q=Q.parentNode}return null};function a(q){var U=I(q),K=A8(q);while(K&&wU(K)&&f(K).position==="static")K=A8(K);if(K&&(w(K)==="html"||w(K)==="body"&&f(K).position==="static"))return U;return K||X1(q)||U}function F0(q){return["top","bottom"].indexOf(q)>=0?"x":"y"}function N0(q,U,K){return r(q,W0(U,K))}function T8(q,U,K){var J=N0(q,U,K);return J>K?K:J}function c0(){return{top:0,right:0,bottom:0,left:0}}function l0(q){return Object.assign({},c0(),q)}function r0(q,U){return U.reduce(function(K,J){return K[J]=q,K},{})}var W1=function(q){var U,K=q.state,J=q.name,Q=q.options,Z=K.elements.arrow,z=K.modifiersData.popperOffsets,G=$(K.placement),Y=F0(G),X=[y,D].indexOf(G)>=0,H=X?"height":"width";if(!Z||!z)return;var V=L1(Q.padding,K),T=B0(Z),W=Y==="y"?k:y,j=Y==="y"?h:D,N=K.rects.reference[H]+K.rects.reference[Y]-z[Y]-K.rects.popper[H],F=z[Y]-K.rects.reference[Y],M=a(Z),x=M?Y==="y"?M.clientHeight||0:M.clientWidth||0:0,C=N/2-F/2,B=V[W],R=x-T[H]-V[j],A=x/2-T[H]/2+C,S=N0(B,A,R),O=Y;K.modifiersData[J]=(U={},U[O]=S,U.centerOffset=S-A,U)},B1=function(q){var{state:U,options:K}=q,J=K.element,Q=J===void 0?"[data-popper-arrow]":J;if(Q==null)return;if(typeof Q==="string"){if(Q=U.elements.popper.querySelector(Q),!Q)return}if(!p0(U.elements.popper,Q))return;U.elements.arrow=Q},L1=function q(U,K){return U=typeof U==="function"?U(Object.assign({},K.rects,{placement:K.placement})):U,l0(typeof U!=="number"?U:r0(U,e))},M8={name:"arrow",enabled:!0,phase:"main",fn:W1,effect:B1,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function p(q){return q.split("-")[1]}var N1=function(q,U){var{x:K,y:J}=q,Q=U.devicePixelRatio||1;return{x:i(K*Q)/Q||0,y:i(J*Q)/Q||0}};function j8(q){var U,K=q.popper,J=q.popperRect,Q=q.placement,Z=q.variation,z=q.offsets,G=q.position,Y=q.gpuAcceleration,X=q.adaptive,H=q.roundOffsets,V=q.isFixed,T=z.x,W=T===void 0?0:T,j=z.y,N=j===void 0?0:j,F=typeof H==="function"?H({x:W,y:N}):{x:W,y:N};W=F.x,N=F.y;var M=z.hasOwnProperty("x"),x=z.hasOwnProperty("y"),C=y,B=k,R=window;if(X){var A=a(K),S="clientHeight",O="clientWidth";if(A===I(K)){if(A=u(K),f(A).position!=="static"&&G==="absolute")S="scrollHeight",O="scrollWidth"}if(A=A,Q===k||(Q===y||Q===D)&&Z===L0){B=h;var P=V&&A===R&&R.visualViewport?R.visualViewport.height:A[S];N-=P-J.height,N*=Y?1:-1}if(Q===y||(Q===k||Q===h)&&Z===L0){C=D;var b=V&&A===R&&R.visualViewport?R.visualViewport.width:A[O];W-=b-J.width,W*=Y?1:-1}}var E=Object.assign({position:G},X&&F1),c=H===!0?N1({x:W,y:N},I(K)):{x:W,y:N};if(W=c.x,N=c.y,Y){var _;return Object.assign({},E,(_={},_[B]=x?"0":"",_[C]=M?"0":"",_.transform=(R.devicePixelRatio||1)<=1?"translate("+W+"px, "+N+"px)":"translate3d("+W+"px, "+N+"px, 0)",_))}return Object.assign({},E,(U={},U[B]=x?N+"px":"",U[C]=M?W+"px":"",U.transform="",U))}var V1=function(q){var{state:U,options:K}=q,J=K.gpuAcceleration,Q=J===void 0?!0:J,Z=K.adaptive,z=Z===void 0?!0:Z,G=K.roundOffsets,Y=G===void 0?!0:G,X={placement:$(U.placement),variation:p(U.placement),popper:U.elements.popper,popperRect:U.rects.popper,gpuAcceleration:Q,isFixed:U.options.strategy==="fixed"};if(U.modifiersData.popperOffsets!=null)U.styles.popper=Object.assign({},U.styles.popper,j8(Object.assign({},X,{offsets:U.modifiersData.popperOffsets,position:U.options.strategy,adaptive:z,roundOffsets:Y})));if(U.modifiersData.arrow!=null)U.styles.arrow=Object.assign({},U.styles.arrow,j8(Object.assign({},X,{offsets:U.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:Y})));U.attributes.popper=Object.assign({},U.attributes.popper,{"data-popper-placement":U.placement})},F1={top:"auto",right:"auto",bottom:"auto",left:"auto"},I8={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:V1,data:{}};var R1=function(q){var{state:U,instance:K,options:J}=q,Q=J.scroll,Z=Q===void 0?!0:Q,z=J.resize,G=z===void 0?!0:z,Y=I(U.elements.popper),X=[].concat(U.scrollParents.reference,U.scrollParents.popper);if(Z)X.forEach(function(H){H.addEventListener("scroll",K.update,HU)});if(G)Y.addEventListener("resize",K.update,HU);return function(){if(Z)X.forEach(function(H){H.removeEventListener("scroll",K.update,HU)});if(G)Y.removeEventListener("resize",K.update,HU)}},HU={passive:!0},S8={name:"eventListeners",enabled:!0,phase:"write",fn:function q(){},effect:R1,data:{}};var A1={left:"right",right:"left",bottom:"top",top:"bottom"};function b0(q){return q.replace(/left|right|bottom|top/g,function(U){return A1[U]})}var T1={start:"end",end:"start"};function XU(q){return q.replace(/start|end/g,function(U){return T1[U]})}function V0(q){var U=I(q),K=U.pageXOffset,J=U.pageYOffset;return{scrollLeft:K,scrollTop:J}}function R0(q){return d(u(q)).left+V0(q).scrollLeft}function $U(q,U){var K=I(q),J=u(q),Q=K.visualViewport,Z=J.clientWidth,z=J.clientHeight,G=0,Y=0;if(Q){Z=Q.width,z=Q.height;var X=d0();if(X||!X&&U==="fixed")G=Q.offsetLeft,Y=Q.offsetTop}return{width:Z,height:z,x:G+R0(q),y:Y}}function OU(q){var U,K=u(q),J=V0(q),Q=(U=q.ownerDocument)==null?void 0:U.body,Z=r(K.scrollWidth,K.clientWidth,Q?Q.scrollWidth:0,Q?Q.clientWidth:0),z=r(K.scrollHeight,K.clientHeight,Q?Q.scrollHeight:0,Q?Q.clientHeight:0),G=-J.scrollLeft+R0(q),Y=-J.scrollTop;if(f(Q||K).direction==="rtl")G+=r(K.clientWidth,Q?Q.clientWidth:0)-Z;return{width:Z,height:z,x:G,y:Y}}function A0(q){var U=f(q),K=U.overflow,J=U.overflowX,Q=U.overflowY;return/auto|scroll|overlay|hidden/.test(K+Q+J)}function LU(q){if(["html","body","#document"].indexOf(w(q))>=0)return q.ownerDocument.body;if(v(q)&&A0(q))return q;return LU(n(q))}function U0(q,U){var K;if(U===void 0)U=[];var J=LU(q),Q=J===((K=q.ownerDocument)==null?void 0:K.body),Z=I(J),z=Q?[Z].concat(Z.visualViewport||[],A0(J)?J:[]):J,G=U.concat(z);return Q?G:G.concat(U0(n(z)))}function h0(q){return Object.assign({},q,{left:q.x,top:q.y,right:q.x+q.width,bottom:q.y+q.height})}var M1=function(q,U){var K=d(q,!1,U==="fixed");return K.top=K.top+q.clientTop,K.left=K.left+q.clientLeft,K.bottom=K.top+q.clientHeight,K.right=K.left+q.clientWidth,K.width=q.clientWidth,K.height=q.clientHeight,K.x=K.left,K.y=K.top,K},k8=function(q,U,K){return U===zU?h0($U(q,K)):g(U)?M1(U,K):h0(OU(u(q)))},j1=function(q){var U=U0(n(q)),K=["absolute","fixed"].indexOf(f(q).position)>=0,J=K&&v(q)?a(q):q;if(!g(J))return[];return U.filter(function(Q){return g(Q)&&p0(Q,J)&&w(Q)!=="body"})};function uU(q,U,K,J){var Q=U==="clippingParents"?j1(q):[].concat(U),Z=[].concat(Q,[K]),z=Z[0],G=Z.reduce(function(Y,X){var H=k8(q,X,J);return Y.top=r(H.top,Y.top),Y.right=W0(H.right,Y.right),Y.bottom=W0(H.bottom,Y.bottom),Y.left=r(H.left,Y.left),Y},k8(q,z,J));return G.width=G.right-G.left,G.height=G.bottom-G.top,G.x=G.left,G.y=G.top,G}function a0(q){var{reference:U,element:K,placement:J}=q,Q=J?$(J):null,Z=J?p(J):null,z=U.x+U.width/2-K.width/2,G=U.y+U.height/2-K.height/2,Y;switch(Q){case k:Y={x:z,y:U.y-K.height};break;case h:Y={x:z,y:U.y+U.height};break;case D:Y={x:U.x+U.width,y:G};break;case y:Y={x:U.x-K.width,y:G};break;default:Y={x:U.x,y:U.y}}var X=Q?F0(Q):null;if(X!=null){var H=X==="y"?"height":"width";switch(Z){case s:Y[X]=Y[X]-(U[H]/2-K[H]/2);break;case L0:Y[X]=Y[X]+(U[H]/2-K[H]/2);break;default:}}return Y}function o(q,U){if(U===void 0)U={};var K=U,J=K.placement,Q=J===void 0?q.placement:J,Z=K.strategy,z=Z===void 0?q.strategy:Z,G=K.boundary,Y=G===void 0?F8:G,X=K.rootBoundary,H=X===void 0?zU:X,V=K.elementContext,T=V===void 0?C0:V,W=K.altBoundary,j=W===void 0?!1:W,N=K.padding,F=N===void 0?0:N,M=l0(typeof F!=="number"?F:r0(F,e)),x=T===C0?N8:C0,C=q.rects.popper,B=q.elements[j?x:T],R=uU(g(B)?B:B.contextElement||u(q.elements.popper),Y,H,z),A=d(q.elements.reference),S=a0({reference:A,element:C,strategy:"absolute",placement:Q}),O=h0(Object.assign({},C,S)),P=T===C0?O:A,b={top:R.top-P.top+M.top,bottom:P.bottom-R.bottom+M.bottom,left:R.left-P.left+M.left,right:P.right-R.right+M.right},E=q.modifiersData.offset;if(T===C0&&E){var c=E[Q];Object.keys(b).forEach(function(_){var Z0=[D,h].indexOf(_)>=0?1:-1,G0=[k,h].indexOf(_)>=0?"y":"x";b[_]+=c[G0]*Z0})}return b}function EU(q,U){if(U===void 0)U={};var K=U,J=K.placement,Q=K.boundary,Z=K.rootBoundary,z=K.padding,G=K.flipVariations,Y=K.allowedAutoPlacements,X=Y===void 0?YU:Y,H=p(J),V=H?G?PU:PU.filter(function(j){return p(j)===H}):e,T=V.filter(function(j){return X.indexOf(j)>=0});if(T.length===0)T=V;var W=T.reduce(function(j,N){return j[N]=o(q,{placement:N,boundary:Q,rootBoundary:Z,padding:z})[$(N)],j},{});return Object.keys(W).sort(function(j,N){return W[j]-W[N]})}var I1=function(q){if($(q)===GU)return[];var U=b0(q);return[XU(q),U,XU(U)]},S1=function(q){var{state:U,options:K,name:J}=q;if(U.modifiersData[J]._skip)return;var Q=K.mainAxis,Z=Q===void 0?!0:Q,z=K.altAxis,G=z===void 0?!0:z,Y=K.fallbackPlacements,X=K.padding,H=K.boundary,V=K.rootBoundary,T=K.altBoundary,W=K.flipVariations,j=W===void 0?!0:W,N=K.allowedAutoPlacements,F=U.options.placement,M=$(F),x=M===F,C=Y||(x||!j?[b0(F)]:I1(F)),B=[F].concat(C).reduce(function(j0,t){return j0.concat($(t)===GU?EU(U,{placement:t,boundary:H,rootBoundary:V,padding:X,flipVariations:j,allowedAutoPlacements:N}):t)},[]),R=U.rects.reference,A=U.rects.popper,S=new Map,O=!0,P=B[0];for(var b=0;b<B.length;b++){var E=B[b],c=$(E),_=p(E)===s,Z0=[k,h].indexOf(c)>=0,G0=Z0?"width":"height",m=o(U,{placement:E,boundary:H,rootBoundary:V,altBoundary:T,padding:X}),l=Z0?_?D:y:_?h:k;if(R[G0]>A[G0])l=b0(l);var s0=b0(l),z0=[];if(Z)z0.push(m[c]<=0);if(G)z0.push(m[l]<=0,m[s0]<=0);if(z0.every(function(j0){return j0})){P=E,O=!1;break}S.set(E,z0)}if(O){var i0=j?3:1,xU=function j0(t){var g0=B.find(function(t0){var Y0=S.get(t0);if(Y0)return Y0.slice(0,t).every(function(CU){return CU})});if(g0)return P=g0,"break"};for(var m0=i0;m0>0;m0--){var n0=xU(m0);if(n0==="break")break}}if(U.placement!==P)U.modifiersData[J]._skip=!0,U.placement=P,U.reset=!0},x8={name:"flip",enabled:!0,phase:"main",fn:S1,requiresIfExists:["offset"],data:{_skip:!1}};var C8=function(q,U,K){if(K===void 0)K={x:0,y:0};return{top:q.top-U.height-K.y,right:q.right-U.width+K.x,bottom:q.bottom-U.height+K.y,left:q.left-U.width-K.x}},y8=function(q){return[k,D,h,y].some(function(U){return q[U]>=0})},k1=function(q){var{state:U,name:K}=q,J=U.rects.reference,Q=U.rects.popper,Z=U.modifiersData.preventOverflow,z=o(U,{elementContext:"reference"}),G=o(U,{altBoundary:!0}),Y=C8(z,J),X=C8(G,Q,Z),H=y8(Y),V=y8(X);U.modifiersData[K]={referenceClippingOffsets:Y,popperEscapeOffsets:X,isReferenceHidden:H,hasPopperEscaped:V},U.attributes.popper=Object.assign({},U.attributes.popper,{"data-popper-reference-hidden":H,"data-popper-escaped":V})},D8={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:k1};function x1(q,U,K){var J=$(q),Q=[y,k].indexOf(J)>=0?-1:1,Z=typeof K==="function"?K(Object.assign({},U,{placement:q})):K,z=Z[0],G=Z[1];return z=z||0,G=(G||0)*Q,[y,D].indexOf(J)>=0?{x:G,y:z}:{x:z,y:G}}var C1=function(q){var{state:U,options:K,name:J}=q,Q=K.offset,Z=Q===void 0?[0,0]:Q,z=YU.reduce(function(H,V){return H[V]=x1(V,U.rects,Z),H},{}),G=z[U.placement],Y=G.x,X=G.y;if(U.modifiersData.popperOffsets!=null)U.modifiersData.popperOffsets.x+=Y,U.modifiersData.popperOffsets.y+=X;U.modifiersData[J]=z},b8={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:C1};var y1=function(q){var{state:U,name:K}=q;U.modifiersData[K]=a0({reference:U.rects.reference,element:U.rects.popper,strategy:"absolute",placement:U.placement})},h8={name:"popperOffsets",enabled:!0,phase:"read",fn:y1,data:{}};function _U(q){return q==="x"?"y":"x"}var D1=function(q){var{state:U,options:K,name:J}=q,Q=K.mainAxis,Z=Q===void 0?!0:Q,z=K.altAxis,G=z===void 0?!1:z,Y=K.boundary,X=K.rootBoundary,H=K.altBoundary,V=K.padding,T=K.tether,W=T===void 0?!0:T,j=K.tetherOffset,N=j===void 0?0:j,F=o(U,{boundary:Y,rootBoundary:X,padding:V,altBoundary:H}),M=$(U.placement),x=p(U.placement),C=!x,B=F0(M),R=_U(B),A=U.modifiersData.popperOffsets,S=U.rects.reference,O=U.rects.popper,P=typeof N==="function"?N(Object.assign({},U.rects,{placement:U.placement})):N,b=typeof P==="number"?{mainAxis:P,altAxis:P}:Object.assign({mainAxis:0,altAxis:0},P),E=U.modifiersData.offset?U.modifiersData.offset[U.placement]:null,c={x:0,y:0};if(!A)return;if(Z){var _,Z0=B==="y"?k:y,G0=B==="y"?h:D,m=B==="y"?"height":"width",l=A[B],s0=l+F[Z0],z0=l-F[G0],i0=W?-O[m]/2:0,xU=x===s?S[m]:O[m],m0=x===s?-O[m]:-S[m],n0=U.elements.arrow,j0=W&&n0?B0(n0):{width:0,height:0},t=U.modifiersData["arrow#persistent"]?U.modifiersData["arrow#persistent"].padding:c0(),g0=t[Z0],t0=t[G0],Y0=N0(0,S[m],j0[m]),CU=C?S[m]/2-i0-Y0-g0-b.mainAxis:xU-Y0-g0-b.mainAxis,E8=C?-S[m]/2+i0+Y0+t0+b.mainAxis:m0+Y0+t0+b.mainAxis,yU=U.elements.arrow&&a(U.elements.arrow),_8=yU?B==="y"?yU.clientTop||0:yU.clientLeft||0:0,q8=(_=E==null?void 0:E[B])!=null?_:0,f8=l+CU-q8-_8,m8=l+E8-q8,K8=N0(W?W0(s0,f8):s0,l,W?r(z0,m8):z0);A[B]=K8,c[B]=K8-l}if(G){var J8,g8=B==="x"?k:y,d8=B==="x"?h:D,H0=A[R],e0=R==="y"?"height":"width",Q8=H0+F[g8],Z8=H0-F[d8],DU=[k,y].indexOf(M)!==-1,G8=(J8=E==null?void 0:E[R])!=null?J8:0,z8=DU?Q8:H0-S[e0]-O[e0]-G8+b.altAxis,Y8=DU?H0+S[e0]+O[e0]-G8-b.altAxis:Z8,H8=W&&DU?T8(z8,H0,Y8):N0(W?z8:Q8,H0,W?Y8:Z8);A[R]=H8,c[R]=H8-H0}U.modifiersData[J]=c},v8={name:"preventOverflow",enabled:!0,phase:"main",fn:D1,requiresIfExists:["offset"]};function fU(q){return{scrollLeft:q.scrollLeft,scrollTop:q.scrollTop}}function mU(q){if(q===I(q)||!v(q))return V0(q);else return fU(q)}var b1=function(q){var U=q.getBoundingClientRect(),K=i(U.width)/q.offsetWidth||1,J=i(U.height)/q.offsetHeight||1;return K!==1||J!==1};function gU(q,U,K){if(K===void 0)K=!1;var J=v(U),Q=v(U)&&b1(U),Z=u(U),z=d(q,Q,K),G={scrollLeft:0,scrollTop:0},Y={x:0,y:0};if(J||!J&&!K){if(w(U)!=="body"||A0(Z))G=mU(U);if(v(U))Y=d(U,!0),Y.x+=U.clientLeft,Y.y+=U.clientTop;else if(Z)Y.x=R0(Z)}return{x:z.left+G.scrollLeft-Y.x,y:z.top+G.scrollTop-Y.y,width:z.width,height:z.height}}var h1=function(q){var U=new Map,K=new Set,J=[];q.forEach(function(Z){U.set(Z.name,Z)});function Q(Z){K.add(Z.name);var z=[].concat(Z.requires||[],Z.requiresIfExists||[]);z.forEach(function(G){if(!K.has(G)){var Y=U.get(G);if(Y)Q(Y)}}),J.push(Z)}return q.forEach(function(Z){if(!K.has(Z.name))Q(Z)}),J};function dU(q){var U=h1(q);return V8.reduce(function(K,J){return K.concat(U.filter(function(Q){return Q.phase===J}))},[])}function pU(q){var U;return function(){if(!U)U=new Promise(function(K){Promise.resolve().then(function(){U=void 0,K(q())})});return U}}function cU(q){var U=q.reduce(function(K,J){var Q=K[J.name];return K[J.name]=Q?Object.assign({},Q,J,{options:Object.assign({},Q.options,J.options),data:Object.assign({},Q.data,J.data)}):J,K},{});return Object.keys(U).map(function(K){return U[K]})}var w8=function(){for(var q=arguments.length,U=new Array(q),K=0;K<q;K++)U[K]=arguments[K];return!U.some(function(J){return!(J&&typeof J.getBoundingClientRect==="function")})};function $8(q){if(q===void 0)q={};var U=q,K=U.defaultModifiers,J=K===void 0?[]:K,Q=U.defaultOptions,Z=Q===void 0?P8:Q;return function z(G,Y,X){if(X===void 0)X=Z;var H={placement:"bottom",orderedModifiers:[],options:Object.assign({},P8,Z),modifiersData:{},elements:{reference:G,popper:Y},attributes:{},styles:{}},V=[],T=!1,W={state:H,setOptions:function F(M){var x=typeof M==="function"?M(H.options):M;N(),H.options=Object.assign({},Z,H.options,x),H.scrollParents={reference:g(G)?U0(G):G.contextElement?U0(G.contextElement):[],popper:U0(Y)};var C=dU(cU([].concat(J,H.options.modifiers)));return H.orderedModifiers=C.filter(function(B){return B.enabled}),j(),W.update()},forceUpdate:function F(){if(T)return;var M=H.elements,x=M.reference,C=M.popper;if(!w8(x,C))return;H.rects={reference:gU(x,a(C),H.options.strategy==="fixed"),popper:B0(C)},H.reset=!1,H.placement=H.options.placement,H.orderedModifiers.forEach(function(b){return H.modifiersData[b.name]=Object.assign({},b.data)});for(var B=0;B<H.orderedModifiers.length;B++){if(H.reset===!0){H.reset=!1,B=-1;continue}var R=H.orderedModifiers[B],A=R.fn,S=R.options,O=S===void 0?{}:S,P=R.name;if(typeof A==="function")H=A({state:H,options:O,name:P,instance:W})||H}},update:pU(function(){return new Promise(function(F){W.forceUpdate(),F(H)})}),destroy:function F(){N(),T=!0}};if(!w8(G,Y))return W;W.setOptions(X).then(function(F){if(!T&&X.onFirstUpdate)X.onFirstUpdate(F)});function j(){H.orderedModifiers.forEach(function(F){var{name:M,options:x}=F,C=x===void 0?{}:x,B=F.effect;if(typeof B==="function"){var R=B({state:H,name:M,instance:W,options:C}),A=function S(){};V.push(R||A)}})}function N(){V.forEach(function(F){return F()}),V=[]}return W}}var P8={placement:"bottom",modifiers:[],strategy:"absolute"};var v1=[S8,h8,I8,R8,b8,x8,v8,M8,D8],T0=$8({defaultModifiers:v1});function v0(){document.querySelectorAll("[data-dropdown-toggle]").forEach(function(q){var U=q.getAttribute("data-dropdown-toggle"),K=document.getElementById(U);if(K){var J=q.getAttribute("data-dropdown-placement"),Q=q.getAttribute("data-dropdown-offset-skidding"),Z=q.getAttribute("data-dropdown-offset-distance"),z=q.getAttribute("data-dropdown-trigger"),G=q.getAttribute("data-dropdown-delay"),Y=q.getAttribute("data-dropdown-ignore-click-outside-class");new lU(K,q,{placement:J?J:K0.placement,triggerType:z?z:K0.triggerType,offsetSkidding:Q?parseInt(Q):K0.offsetSkidding,offsetDistance:Z?parseInt(Z):K0.offsetDistance,delay:G?parseInt(G):K0.delay,ignoreClickOutsideClass:Y?Y:K0.ignoreClickOutsideClass})}else console.error("The dropdown element with id \"".concat(U,"\" does not exist. Please check the data-dropdown-toggle attribute."))})}var q0=function(){return q0=Object.assign||function(q){for(var U,K=1,J=arguments.length;K<J;K++){U=arguments[K];for(var Q in U)if(Object.prototype.hasOwnProperty.call(U,Q))q[Q]=U[Q]}return q},q0.apply(this,arguments)},WU=function(q,U,K){if(K||arguments.length===2){for(var J=0,Q=U.length,Z;J<Q;J++)if(Z||!(J in U)){if(!Z)Z=Array.prototype.slice.call(U,0,J);Z[J]=U[J]}}return q.concat(Z||Array.prototype.slice.call(U))},K0={placement:"bottom",triggerType:"click",offsetSkidding:0,offsetDistance:10,delay:300,ignoreClickOutsideClass:!1,onShow:function(){},onHide:function(){},onToggle:function(){}},P1={id:null,override:!0},lU=function(){function q(U,K,J,Q){if(U===void 0)U=null;if(K===void 0)K=null;if(J===void 0)J=K0;if(Q===void 0)Q=P1;this._instanceId=Q.id?Q.id:U.id,this._targetEl=U,this._triggerEl=K,this._options=q0(q0({},K0),J),this._popperInstance=null,this._visible=!1,this._initialized=!1,this.init(),L.addInstance("Dropdown",this,this._instanceId,Q.override)}return q.prototype.init=function(){if(this._triggerEl&&this._targetEl&&!this._initialized)this._popperInstance=this._createPopperInstance(),this._setupEventListeners(),this._initialized=!0},q.prototype.destroy=function(){var U=this,K=this._getTriggerEvents();if(this._options.triggerType==="click")K.showEvents.forEach(function(J){U._triggerEl.removeEventListener(J,U._clickHandler)});if(this._options.triggerType==="hover")K.showEvents.forEach(function(J){U._triggerEl.removeEventListener(J,U._hoverShowTriggerElHandler),U._targetEl.removeEventListener(J,U._hoverShowTargetElHandler)}),K.hideEvents.forEach(function(J){U._triggerEl.removeEventListener(J,U._hoverHideHandler),U._targetEl.removeEventListener(J,U._hoverHideHandler)});this._popperInstance.destroy(),this._initialized=!1},q.prototype.removeInstance=function(){L.removeInstance("Dropdown",this._instanceId)},q.prototype.destroyAndRemoveInstance=function(){this.destroy(),this.removeInstance()},q.prototype._setupEventListeners=function(){var U=this,K=this._getTriggerEvents();if(this._clickHandler=function(){U.toggle()},this._options.triggerType==="click")K.showEvents.forEach(function(J){U._triggerEl.addEventListener(J,U._clickHandler)});if(this._hoverShowTriggerElHandler=function(J){if(J.type==="click")U.toggle();else setTimeout(function(){U.show()},U._options.delay)},this._hoverShowTargetElHandler=function(){U.show()},this._hoverHideHandler=function(){setTimeout(function(){if(!U._targetEl.matches(":hover"))U.hide()},U._options.delay)},this._options.triggerType==="hover")K.showEvents.forEach(function(J){U._triggerEl.addEventListener(J,U._hoverShowTriggerElHandler),U._targetEl.addEventListener(J,U._hoverShowTargetElHandler)}),K.hideEvents.forEach(function(J){U._triggerEl.addEventListener(J,U._hoverHideHandler),U._targetEl.addEventListener(J,U._hoverHideHandler)})},q.prototype._createPopperInstance=function(){return T0(this._triggerEl,this._targetEl,{placement:this._options.placement,modifiers:[{name:"offset",options:{offset:[this._options.offsetSkidding,this._options.offsetDistance]}}]})},q.prototype._setupClickOutsideListener=function(){var U=this;this._clickOutsideEventListener=function(K){U._handleClickOutside(K,U._targetEl)},document.body.addEventListener("click",this._clickOutsideEventListener,!0)},q.prototype._removeClickOutsideListener=function(){document.body.removeEventListener("click",this._clickOutsideEventListener,!0)},q.prototype._handleClickOutside=function(U,K){var J=U.target,Q=this._options.ignoreClickOutsideClass,Z=!1;if(Q){var z=document.querySelectorAll(".".concat(Q));z.forEach(function(G){if(G.contains(J)){Z=!0;return}})}if(J!==K&&!K.contains(J)&&!this._triggerEl.contains(J)&&!Z&&this.isVisible())this.hide()},q.prototype._getTriggerEvents=function(){switch(this._options.triggerType){case"hover":return{showEvents:["mouseenter","click"],hideEvents:["mouseleave"]};case"click":return{showEvents:["click"],hideEvents:[]};case"none":return{showEvents:[],hideEvents:[]};default:return{showEvents:["click"],hideEvents:[]}}},q.prototype.toggle=function(){if(this.isVisible())this.hide();else this.show();this._options.onToggle(this)},q.prototype.isVisible=function(){return this._visible},q.prototype.show=function(){this._targetEl.classList.remove("hidden"),this._targetEl.classList.add("block"),this._popperInstance.setOptions(function(U){return q0(q0({},U),{modifiers:WU(WU([],U.modifiers,!0),[{name:"eventListeners",enabled:!0}],!1)})}),this._setupClickOutsideListener(),this._popperInstance.update(),this._visible=!0,this._options.onShow(this)},q.prototype.hide=function(){this._targetEl.classList.remove("block"),this._targetEl.classList.add("hidden"),this._popperInstance.setOptions(function(U){return q0(q0({},U),{modifiers:WU(WU([],U.modifiers,!0),[{name:"eventListeners",enabled:!1}],!1)})}),this._visible=!1,this._removeClickOutsideListener(),this._options.onHide(this)},q.prototype.updateOnShow=function(U){this._options.onShow=U},q.prototype.updateOnHide=function(U){this._options.onHide=U},q.prototype.updateOnToggle=function(U){this._options.onToggle=U},q}();if(typeof window!=="undefined")window.Dropdown=lU,window.initDropdowns=v0;var w1=lU;function P0(){document.querySelectorAll("[data-modal-target]").forEach(function(q){var U=q.getAttribute("data-modal-target"),K=document.getElementById(U);if(K){var J=K.getAttribute("data-modal-placement"),Q=K.getAttribute("data-modal-backdrop");new rU(K,{placement:J?J:FU.placement,backdrop:Q?Q:FU.backdrop})}else console.error("Modal with id ".concat(U," does not exist. Are you sure that the data-modal-target attribute points to the correct modal id?."))}),document.querySelectorAll("[data-modal-toggle]").forEach(function(q){var U=q.getAttribute("data-modal-toggle"),K=document.getElementById(U);if(K){var J=L.getInstance("Modal",U);if(J){var Q=function(){J.toggle()};q.addEventListener("click",Q),J.addEventListenerInstance(q,"click",Q)}else console.error("Modal with id ".concat(U," has not been initialized. Please initialize it using the data-modal-target attribute."))}else console.error("Modal with id ".concat(U," does not exist. Are you sure that the data-modal-toggle attribute points to the correct modal id?"))}),document.querySelectorAll("[data-modal-show]").forEach(function(q){var U=q.getAttribute("data-modal-show"),K=document.getElementById(U);if(K){var J=L.getInstance("Modal",U);if(J){var Q=function(){J.show()};q.addEventListener("click",Q),J.addEventListenerInstance(q,"click",Q)}else console.error("Modal with id ".concat(U," has not been initialized. Please initialize it using the data-modal-target attribute."))}else console.error("Modal with id ".concat(U," does not exist. Are you sure that the data-modal-show attribute points to the correct modal id?"))}),document.querySelectorAll("[data-modal-hide]").forEach(function(q){var U=q.getAttribute("data-modal-hide"),K=document.getElementById(U);if(K){var J=L.getInstance("Modal",U);if(J){var Q=function(){J.hide()};q.addEventListener("click",Q),J.addEventListenerInstance(q,"click",Q)}else console.error("Modal with id ".concat(U," has not been initialized. Please initialize it using the data-modal-target attribute."))}else console.error("Modal with id ".concat(U," does not exist. Are you sure that the data-modal-hide attribute points to the correct modal id?"))})}var BU=function(){return BU=Object.assign||function(q){for(var U,K=1,J=arguments.length;K<J;K++){U=arguments[K];for(var Q in U)if(Object.prototype.hasOwnProperty.call(U,Q))q[Q]=U[Q]}return q},BU.apply(this,arguments)},FU={placement:"center",backdropClasses:"bg-gray-900/50 dark:bg-gray-900/80 fixed inset-0 z-40",backdrop:"dynamic",closable:!0,onHide:function(){},onShow:function(){},onToggle:function(){}},$1={id:null,override:!0},rU=function(){function q(U,K,J){if(U===void 0)U=null;if(K===void 0)K=FU;if(J===void 0)J=$1;this._eventListenerInstances=[],this._instanceId=J.id?J.id:U.id,this._targetEl=U,this._options=BU(BU({},FU),K),this._isHidden=!0,this._backdropEl=null,this._initialized=!1,this.init(),L.addInstance("Modal",this,this._instanceId,J.override)}return q.prototype.init=function(){var U=this;if(this._targetEl&&!this._initialized)this._getPlacementClasses().map(function(K){U._targetEl.classList.add(K)}),this._initialized=!0},q.prototype.destroy=function(){if(this._initialized)this.removeAllEventListenerInstances(),this._destroyBackdropEl(),this._initialized=!1},q.prototype.removeInstance=function(){L.removeInstance("Modal",this._instanceId)},q.prototype.destroyAndRemoveInstance=function(){this.destroy(),this.removeInstance()},q.prototype._createBackdrop=function(){var U;if(this._isHidden){var K=document.createElement("div");K.setAttribute("modal-backdrop",""),(U=K.classList).add.apply(U,this._options.backdropClasses.split(" ")),document.querySelector("body").append(K),this._backdropEl=K}},q.prototype._destroyBackdropEl=function(){if(!this._isHidden)document.querySelector("[modal-backdrop]").remove()},q.prototype._setupModalCloseEventListeners=function(){var U=this;if(this._options.backdrop==="dynamic")this._clickOutsideEventListener=function(K){U._handleOutsideClick(K.target)},this._targetEl.addEventListener("click",this._clickOutsideEventListener,!0);this._keydownEventListener=function(K){if(K.key==="Escape")U.hide()},document.body.addEventListener("keydown",this._keydownEventListener,!0)},q.prototype._removeModalCloseEventListeners=function(){if(this._options.backdrop==="dynamic")this._targetEl.removeEventListener("click",this._clickOutsideEventListener,!0);document.body.removeEventListener("keydown",this._keydownEventListener,!0)},q.prototype._handleOutsideClick=function(U){if(U===this._targetEl||U===this._backdropEl&&this.isVisible())this.hide()},q.prototype._getPlacementClasses=function(){switch(this._options.placement){case"top-left":return["justify-start","items-start"];case"top-center":return["justify-center","items-start"];case"top-right":return["justify-end","items-start"];case"center-left":return["justify-start","items-center"];case"center":return["justify-center","items-center"];case"center-right":return["justify-end","items-center"];case"bottom-left":return["justify-start","items-end"];case"bottom-center":return["justify-center","items-end"];case"bottom-right":return["justify-end","items-end"];default:return["justify-center","items-center"]}},q.prototype.toggle=function(){if(this._isHidden)this.show();else this.hide();this._options.onToggle(this)},q.prototype.show=function(){if(this.isHidden){if(this._targetEl.classList.add("flex"),this._targetEl.classList.remove("hidden"),this._targetEl.setAttribute("aria-modal","true"),this._targetEl.setAttribute("role","dialog"),this._targetEl.removeAttribute("aria-hidden"),this._createBackdrop(),this._isHidden=!1,this._options.closable)this._setupModalCloseEventListeners();document.body.classList.add("overflow-hidden"),this._options.onShow(this)}},q.prototype.hide=function(){if(this.isVisible){if(this._targetEl.classList.add("hidden"),this._targetEl.classList.remove("flex"),this._targetEl.setAttribute("aria-hidden","true"),this._targetEl.removeAttribute("aria-modal"),this._targetEl.removeAttribute("role"),this._destroyBackdropEl(),this._isHidden=!0,document.body.classList.remove("overflow-hidden"),this._options.closable)this._removeModalCloseEventListeners();this._options.onHide(this)}},q.prototype.isVisible=function(){return!this._isHidden},q.prototype.isHidden=function(){return this._isHidden},q.prototype.addEventListenerInstance=function(U,K,J){this._eventListenerInstances.push({element:U,type:K,handler:J})},q.prototype.removeAllEventListenerInstances=function(){this._eventListenerInstances.map(function(U){U.element.removeEventListener(U.type,U.handler)}),this._eventListenerInstances=[]},q.prototype.getAllEventListenerInstances=function(){return this._eventListenerInstances},q.prototype.updateOnShow=function(U){this._options.onShow=U},q.prototype.updateOnHide=function(U){this._options.onHide=U},q.prototype.updateOnToggle=function(U){this._options.onToggle=U},q}();if(typeof window!=="undefined")window.Modal=rU,window.initModals=P0;var O1=rU;function w0(){document.querySelectorAll("[data-drawer-target]").forEach(function(q){var U=q.getAttribute("data-drawer-target"),K=document.getElementById(U);if(K){var J=q.getAttribute("data-drawer-placement"),Q=q.getAttribute("data-drawer-body-scrolling"),Z=q.getAttribute("data-drawer-backdrop"),z=q.getAttribute("data-drawer-edge"),G=q.getAttribute("data-drawer-edge-offset");new aU(K,{placement:J?J:M0.placement,bodyScrolling:Q?Q==="true"?!0:!1:M0.bodyScrolling,backdrop:Z?Z==="true"?!0:!1:M0.backdrop,edge:z?z==="true"?!0:!1:M0.edge,edgeOffset:G?G:M0.edgeOffset})}else console.error("Drawer with id ".concat(U," not found. Are you sure that the data-drawer-target attribute points to the correct drawer id?"))}),document.querySelectorAll("[data-drawer-toggle]").forEach(function(q){var U=q.getAttribute("data-drawer-toggle"),K=document.getElementById(U);if(K){var J=L.getInstance("Drawer",U);if(J){var Q=function(){J.toggle()};q.addEventListener("click",Q),J.addEventListenerInstance(q,"click",Q)}else console.error("Drawer with id ".concat(U," has not been initialized. Please initialize it using the data-drawer-target attribute."))}else console.error("Drawer with id ".concat(U," not found. Are you sure that the data-drawer-target attribute points to the correct drawer id?"))}),document.querySelectorAll("[data-drawer-dismiss], [data-drawer-hide]").forEach(function(q){var U=q.getAttribute("data-drawer-dismiss")?q.getAttribute("data-drawer-dismiss"):q.getAttribute("data-drawer-hide"),K=document.getElementById(U);if(K){var J=L.getInstance("Drawer",U);if(J){var Q=function(){J.hide()};q.addEventListener("click",Q),J.addEventListenerInstance(q,"click",Q)}else console.error("Drawer with id ".concat(U," has not been initialized. Please initialize it using the data-drawer-target attribute."))}else console.error("Drawer with id ".concat(U," not found. Are you sure that the data-drawer-target attribute points to the correct drawer id"))}),document.querySelectorAll("[data-drawer-show]").forEach(function(q){var U=q.getAttribute("data-drawer-show"),K=document.getElementById(U);if(K){var J=L.getInstance("Drawer",U);if(J){var Q=function(){J.show()};q.addEventListener("click",Q),J.addEventListenerInstance(q,"click",Q)}else console.error("Drawer with id ".concat(U," has not been initialized. Please initialize it using the data-drawer-target attribute."))}else console.error("Drawer with id ".concat(U," not found. Are you sure that the data-drawer-target attribute points to the correct drawer id?"))})}var NU=function(){return NU=Object.assign||function(q){for(var U,K=1,J=arguments.length;K<J;K++){U=arguments[K];for(var Q in U)if(Object.prototype.hasOwnProperty.call(U,Q))q[Q]=U[Q]}return q},NU.apply(this,arguments)},M0={placement:"left",bodyScrolling:!1,backdrop:!0,edge:!1,edgeOffset:"bottom-[60px]",backdropClasses:"bg-gray-900/50 dark:bg-gray-900/80 fixed inset-0 z-30",onShow:function(){},onHide:function(){},onToggle:function(){}},u1={id:null,override:!0},aU=function(){function q(U,K,J){if(U===void 0)U=null;if(K===void 0)K=M0;if(J===void 0)J=u1;this._eventListenerInstances=[],this._instanceId=J.id?J.id:U.id,this._targetEl=U,this._options=NU(NU({},M0),K),this._visible=!1,this._initialized=!1,this.init(),L.addInstance("Drawer",this,this._instanceId,J.override)}return q.prototype.init=function(){var U=this;if(this._targetEl&&!this._initialized)this._targetEl.setAttribute("aria-hidden","true"),this._targetEl.classList.add("transition-transform"),this._getPlacementClasses(this._options.placement).base.map(function(K){U._targetEl.classList.add(K)}),this._handleEscapeKey=function(K){if(K.key==="Escape"){if(U.isVisible())U.hide()}},document.addEventListener("keydown",this._handleEscapeKey),this._initialized=!0},q.prototype.destroy=function(){if(this._initialized)this.removeAllEventListenerInstances(),this._destroyBackdropEl(),document.removeEventListener("keydown",this._handleEscapeKey),this._initialized=!1},q.prototype.removeInstance=function(){L.removeInstance("Drawer",this._instanceId)},q.prototype.destroyAndRemoveInstance=function(){this.destroy(),this.removeInstance()},q.prototype.hide=function(){var U=this;if(this._options.edge)this._getPlacementClasses(this._options.placement+"-edge").active.map(function(K){U._targetEl.classList.remove(K)}),this._getPlacementClasses(this._options.placement+"-edge").inactive.map(function(K){U._targetEl.classList.add(K)});else this._getPlacementClasses(this._options.placement).active.map(function(K){U._targetEl.classList.remove(K)}),this._getPlacementClasses(this._options.placement).inactive.map(function(K){U._targetEl.classList.add(K)});if(this._targetEl.setAttribute("aria-hidden","true"),this._targetEl.removeAttribute("aria-modal"),this._targetEl.removeAttribute("role"),!this._options.bodyScrolling)document.body.classList.remove("overflow-hidden");if(this._options.backdrop)this._destroyBackdropEl();this._visible=!1,this._options.onHide(this)},q.prototype.show=function(){var U=this;if(this._options.edge)this._getPlacementClasses(this._options.placement+"-edge").active.map(function(K){U._targetEl.classList.add(K)}),this._getPlacementClasses(this._options.placement+"-edge").inactive.map(function(K){U._targetEl.classList.remove(K)});else this._getPlacementClasses(this._options.placement).active.map(function(K){U._targetEl.classList.add(K)}),this._getPlacementClasses(this._options.placement).inactive.map(function(K){U._targetEl.classList.remove(K)});if(this._targetEl.setAttribute("aria-modal","true"),this._targetEl.setAttribute("role","dialog"),this._targetEl.removeAttribute("aria-hidden"),!this._options.bodyScrolling)document.body.classList.add("overflow-hidden");if(this._options.backdrop)this._createBackdrop();this._visible=!0,this._options.onShow(this)},q.prototype.toggle=function(){if(this.isVisible())this.hide();else this.show()},q.prototype._createBackdrop=function(){var U,K=this;if(!this._visible){var J=document.createElement("div");J.setAttribute("drawer-backdrop",""),(U=J.classList).add.apply(U,this._options.backdropClasses.split(" ")),document.querySelector("body").append(J),J.addEventListener("click",function(){K.hide()})}},q.prototype._destroyBackdropEl=function(){if(this._visible&&document.querySelector("[drawer-backdrop]")!==null)document.querySelector("[drawer-backdrop]").remove()},q.prototype._getPlacementClasses=function(U){switch(U){case"top":return{base:["top-0","left-0","right-0"],active:["transform-none"],inactive:["-translate-y-full"]};case"right":return{base:["right-0","top-0"],active:["transform-none"],inactive:["translate-x-full"]};case"bottom":return{base:["bottom-0","left-0","right-0"],active:["transform-none"],inactive:["translate-y-full"]};case"left":return{base:["left-0","top-0"],active:["transform-none"],inactive:["-translate-x-full"]};case"bottom-edge":return{base:["left-0","top-0"],active:["transform-none"],inactive:["translate-y-full",this._options.edgeOffset]};default:return{base:["left-0","top-0"],active:["transform-none"],inactive:["-translate-x-full"]}}},q.prototype.isHidden=function(){return!this._visible},q.prototype.isVisible=function(){return this._visible},q.prototype.addEventListenerInstance=function(U,K,J){this._eventListenerInstances.push({element:U,type:K,handler:J})},q.prototype.removeAllEventListenerInstances=function(){this._eventListenerInstances.map(function(U){U.element.removeEventListener(U.type,U.handler)}),this._eventListenerInstances=[]},q.prototype.getAllEventListenerInstances=function(){return this._eventListenerInstances},q.prototype.updateOnShow=function(U){this._options.onShow=U},q.prototype.updateOnHide=function(U){this._options.onHide=U},q.prototype.updateOnToggle=function(U){this._options.onToggle=U},q}();if(typeof window!=="undefined")window.Drawer=aU,window.initDrawers=w0;var E1=aU;function $0(){document.querySelectorAll("[data-tabs-toggle]").forEach(function(q){var U=[],K=q.getAttribute("data-tabs-active-classes"),J=q.getAttribute("data-tabs-inactive-classes"),Q=null;q.querySelectorAll('[role="tab"]').forEach(function(Z){var z=Z.getAttribute("aria-selected")==="true",G={id:Z.getAttribute("data-tabs-target"),triggerEl:Z,targetEl:document.querySelector(Z.getAttribute("data-tabs-target"))};if(U.push(G),z)Q=G.id}),new oU(q,U,{defaultTabId:Q,activeClasses:K?K:RU.activeClasses,inactiveClasses:J?J:RU.inactiveClasses})})}var VU=function(){return VU=Object.assign||function(q){for(var U,K=1,J=arguments.length;K<J;K++){U=arguments[K];for(var Q in U)if(Object.prototype.hasOwnProperty.call(U,Q))q[Q]=U[Q]}return q},VU.apply(this,arguments)},RU={defaultTabId:null,activeClasses:"text-blue-600 hover:text-blue-600 dark:text-blue-500 dark:hover:text-blue-500 border-blue-600 dark:border-blue-500",inactiveClasses:"dark:border-transparent text-gray-500 hover:text-gray-600 dark:text-gray-400 border-gray-100 hover:border-gray-300 dark:border-gray-700 dark:hover:text-gray-300",onShow:function(){}},_1={id:null,override:!0},oU=function(){function q(U,K,J,Q){if(U===void 0)U=null;if(K===void 0)K=[];if(J===void 0)J=RU;if(Q===void 0)Q=_1;this._instanceId=Q.id?Q.id:U.id,this._tabsEl=U,this._items=K,this._activeTab=J?this.getTab(J.defaultTabId):null,this._options=VU(VU({},RU),J),this._initialized=!1,this.init(),L.addInstance("Tabs",this,this._tabsEl.id,!0),L.addInstance("Tabs",this,this._instanceId,Q.override)}return q.prototype.init=function(){var U=this;if(this._items.length&&!this._initialized){if(!this._activeTab)this.setActiveTab(this._items[0]);this.show(this._activeTab.id,!0),this._items.map(function(K){K.triggerEl.addEventListener("click",function(J){J.preventDefault(),U.show(K.id)})})}},q.prototype.destroy=function(){if(this._initialized)this._initialized=!1},q.prototype.removeInstance=function(){this.destroy(),L.removeInstance("Tabs",this._instanceId)},q.prototype.destroyAndRemoveInstance=function(){this.destroy(),this.removeInstance()},q.prototype.getActiveTab=function(){return this._activeTab},q.prototype.setActiveTab=function(U){this._activeTab=U},q.prototype.getTab=function(U){return this._items.filter(function(K){return K.id===U})[0]},q.prototype.show=function(U,K){var J,Q,Z=this;if(K===void 0)K=!1;var z=this.getTab(U);if(z===this._activeTab&&!K)return;this._items.map(function(G){var Y,X;if(G!==z)(Y=G.triggerEl.classList).remove.apply(Y,Z._options.activeClasses.split(" ")),(X=G.triggerEl.classList).add.apply(X,Z._options.inactiveClasses.split(" ")),G.targetEl.classList.add("hidden"),G.triggerEl.setAttribute("aria-selected","false")}),(J=z.triggerEl.classList).add.apply(J,this._options.activeClasses.split(" ")),(Q=z.triggerEl.classList).remove.apply(Q,this._options.inactiveClasses.split(" ")),z.triggerEl.setAttribute("aria-selected","true"),z.targetEl.classList.remove("hidden"),this.setActiveTab(z),this._options.onShow(this,z)},q.prototype.updateOnShow=function(U){this._options.onShow=U},q}();if(typeof window!=="undefined")window.Tabs=oU,window.initTabs=$0;var f1=oU;function O0(){document.querySelectorAll("[data-tooltip-target]").forEach(function(q){var U=q.getAttribute("data-tooltip-target"),K=document.getElementById(U);if(K){var J=q.getAttribute("data-tooltip-trigger"),Q=q.getAttribute("data-tooltip-placement");new sU(K,q,{placement:Q?Q:TU.placement,triggerType:J?J:TU.triggerType})}else console.error("The tooltip element with id \"".concat(U,"\" does not exist. Please check the data-tooltip-target attribute."))})}var J0=function(){return J0=Object.assign||function(q){for(var U,K=1,J=arguments.length;K<J;K++){U=arguments[K];for(var Q in U)if(Object.prototype.hasOwnProperty.call(U,Q))q[Q]=U[Q]}return q},J0.apply(this,arguments)},AU=function(q,U,K){if(K||arguments.length===2){for(var J=0,Q=U.length,Z;J<Q;J++)if(Z||!(J in U)){if(!Z)Z=Array.prototype.slice.call(U,0,J);Z[J]=U[J]}}return q.concat(Z||Array.prototype.slice.call(U))},TU={placement:"top",triggerType:"hover",onShow:function(){},onHide:function(){},onToggle:function(){}},m1={id:null,override:!0},sU=function(){function q(U,K,J,Q){if(U===void 0)U=null;if(K===void 0)K=null;if(J===void 0)J=TU;if(Q===void 0)Q=m1;this._instanceId=Q.id?Q.id:U.id,this._targetEl=U,this._triggerEl=K,this._options=J0(J0({},TU),J),this._popperInstance=null,this._visible=!1,this._initialized=!1,this.init(),L.addInstance("Tooltip",this,this._instanceId,Q.override)}return q.prototype.init=function(){if(this._triggerEl&&this._targetEl&&!this._initialized)this._setupEventListeners(),this._popperInstance=this._createPopperInstance(),this._initialized=!0},q.prototype.destroy=function(){var U=this;if(this._initialized){var K=this._getTriggerEvents();if(K.showEvents.forEach(function(J){U._triggerEl.removeEventListener(J,U._showHandler)}),K.hideEvents.forEach(function(J){U._triggerEl.removeEventListener(J,U._hideHandler)}),this._removeKeydownListener(),this._removeClickOutsideListener(),this._popperInstance)this._popperInstance.destroy();this._initialized=!1}},q.prototype.removeInstance=function(){L.removeInstance("Tooltip",this._instanceId)},q.prototype.destroyAndRemoveInstance=function(){this.destroy(),this.removeInstance()},q.prototype._setupEventListeners=function(){var U=this,K=this._getTriggerEvents();this._showHandler=function(){U.show()},this._hideHandler=function(){U.hide()},K.showEvents.forEach(function(J){U._triggerEl.addEventListener(J,U._showHandler)}),K.hideEvents.forEach(function(J){U._triggerEl.addEventListener(J,U._hideHandler)})},q.prototype._createPopperInstance=function(){return T0(this._triggerEl,this._targetEl,{placement:this._options.placement,modifiers:[{name:"offset",options:{offset:[0,8]}}]})},q.prototype._getTriggerEvents=function(){switch(this._options.triggerType){case"hover":return{showEvents:["mouseenter","focus"],hideEvents:["mouseleave","blur"]};case"click":return{showEvents:["click","focus"],hideEvents:["focusout","blur"]};case"none":return{showEvents:[],hideEvents:[]};default:return{showEvents:["mouseenter","focus"],hideEvents:["mouseleave","blur"]}}},q.prototype._setupKeydownListener=function(){var U=this;this._keydownEventListener=function(K){if(K.key==="Escape")U.hide()},document.body.addEventListener("keydown",this._keydownEventListener,!0)},q.prototype._removeKeydownListener=function(){document.body.removeEventListener("keydown",this._keydownEventListener,!0)},q.prototype._setupClickOutsideListener=function(){var U=this;this._clickOutsideEventListener=function(K){U._handleClickOutside(K,U._targetEl)},document.body.addEventListener("click",this._clickOutsideEventListener,!0)},q.prototype._removeClickOutsideListener=function(){document.body.removeEventListener("click",this._clickOutsideEventListener,!0)},q.prototype._handleClickOutside=function(U,K){var J=U.target;if(J!==K&&!K.contains(J)&&!this._triggerEl.contains(J)&&this.isVisible())this.hide()},q.prototype.isVisible=function(){return this._visible},q.prototype.toggle=function(){if(this.isVisible())this.hide();else this.show()},q.prototype.show=function(){this._targetEl.classList.remove("opacity-0","invisible"),this._targetEl.classList.add("opacity-100","visible"),this._popperInstance.setOptions(function(U){return J0(J0({},U),{modifiers:AU(AU([],U.modifiers,!0),[{name:"eventListeners",enabled:!0}],!1)})}),this._setupClickOutsideListener(),this._setupKeydownListener(),this._popperInstance.update(),this._visible=!0,this._options.onShow(this)},q.prototype.hide=function(){this._targetEl.classList.remove("opacity-100","visible"),this._targetEl.classList.add("opacity-0","invisible"),this._popperInstance.setOptions(function(U){return J0(J0({},U),{modifiers:AU(AU([],U.modifiers,!0),[{name:"eventListeners",enabled:!1}],!1)})}),this._removeClickOutsideListener(),this._removeKeydownListener(),this._visible=!1,this._options.onHide(this)},q.prototype.updateOnShow=function(U){this._options.onShow=U},q.prototype.updateOnHide=function(U){this._options.onHide=U},q.prototype.updateOnToggle=function(U){this._options.onToggle=U},q}();if(typeof window!=="undefined")window.Tooltip=sU,window.initTooltips=O0;var g1=sU;function u0(){document.querySelectorAll("[data-popover-target]").forEach(function(q){var U=q.getAttribute("data-popover-target"),K=document.getElementById(U);if(K){var J=q.getAttribute("data-popover-trigger"),Q=q.getAttribute("data-popover-placement"),Z=q.getAttribute("data-popover-offset");new iU(K,q,{placement:Q?Q:o0.placement,offset:Z?parseInt(Z):o0.offset,triggerType:J?J:o0.triggerType})}else console.error("The popover element with id \"".concat(U,"\" does not exist. Please check the data-popover-target attribute."))})}var Q0=function(){return Q0=Object.assign||function(q){for(var U,K=1,J=arguments.length;K<J;K++){U=arguments[K];for(var Q in U)if(Object.prototype.hasOwnProperty.call(U,Q))q[Q]=U[Q]}return q},Q0.apply(this,arguments)},MU=function(q,U,K){if(K||arguments.length===2){for(var J=0,Q=U.length,Z;J<Q;J++)if(Z||!(J in U)){if(!Z)Z=Array.prototype.slice.call(U,0,J);Z[J]=U[J]}}return q.concat(Z||Array.prototype.slice.call(U))},o0={placement:"top",offset:10,triggerType:"hover",onShow:function(){},onHide:function(){},onToggle:function(){}},d1={id:null,override:!0},iU=function(){function q(U,K,J,Q){if(U===void 0)U=null;if(K===void 0)K=null;if(J===void 0)J=o0;if(Q===void 0)Q=d1;this._instanceId=Q.id?Q.id:U.id,this._targetEl=U,this._triggerEl=K,this._options=Q0(Q0({},o0),J),this._popperInstance=null,this._visible=!1,this._initialized=!1,this.init(),L.addInstance("Popover",this,Q.id?Q.id:this._targetEl.id,Q.override)}return q.prototype.init=function(){if(this._triggerEl&&this._targetEl&&!this._initialized)this._setupEventListeners(),this._popperInstance=this._createPopperInstance(),this._initialized=!0},q.prototype.destroy=function(){var U=this;if(this._initialized){var K=this._getTriggerEvents();if(K.showEvents.forEach(function(J){U._triggerEl.removeEventListener(J,U._showHandler),U._targetEl.removeEventListener(J,U._showHandler)}),K.hideEvents.forEach(function(J){U._triggerEl.removeEventListener(J,U._hideHandler),U._targetEl.removeEventListener(J,U._hideHandler)}),this._removeKeydownListener(),this._removeClickOutsideListener(),this._popperInstance)this._popperInstance.destroy();this._initialized=!1}},q.prototype.removeInstance=function(){L.removeInstance("Popover",this._instanceId)},q.prototype.destroyAndRemoveInstance=function(){this.destroy(),this.removeInstance()},q.prototype._setupEventListeners=function(){var U=this,K=this._getTriggerEvents();this._showHandler=function(){U.show()},this._hideHandler=function(){setTimeout(function(){if(!U._targetEl.matches(":hover"))U.hide()},100)},K.showEvents.forEach(function(J){U._triggerEl.addEventListener(J,U._showHandler),U._targetEl.addEventListener(J,U._showHandler)}),K.hideEvents.forEach(function(J){U._triggerEl.addEventListener(J,U._hideHandler),U._targetEl.addEventListener(J,U._hideHandler)})},q.prototype._createPopperInstance=function(){return T0(this._triggerEl,this._targetEl,{placement:this._options.placement,modifiers:[{name:"offset",options:{offset:[0,this._options.offset]}}]})},q.prototype._getTriggerEvents=function(){switch(this._options.triggerType){case"hover":return{showEvents:["mouseenter","focus"],hideEvents:["mouseleave","blur"]};case"click":return{showEvents:["click","focus"],hideEvents:["focusout","blur"]};case"none":return{showEvents:[],hideEvents:[]};default:return{showEvents:["mouseenter","focus"],hideEvents:["mouseleave","blur"]}}},q.prototype._setupKeydownListener=function(){var U=this;this._keydownEventListener=function(K){if(K.key==="Escape")U.hide()},document.body.addEventListener("keydown",this._keydownEventListener,!0)},q.prototype._removeKeydownListener=function(){document.body.removeEventListener("keydown",this._keydownEventListener,!0)},q.prototype._setupClickOutsideListener=function(){var U=this;this._clickOutsideEventListener=function(K){U._handleClickOutside(K,U._targetEl)},document.body.addEventListener("click",this._clickOutsideEventListener,!0)},q.prototype._removeClickOutsideListener=function(){document.body.removeEventListener("click",this._clickOutsideEventListener,!0)},q.prototype._handleClickOutside=function(U,K){var J=U.target;if(J!==K&&!K.contains(J)&&!this._triggerEl.contains(J)&&this.isVisible())this.hide()},q.prototype.isVisible=function(){return this._visible},q.prototype.toggle=function(){if(this.isVisible())this.hide();else this.show();this._options.onToggle(this)},q.prototype.show=function(){this._targetEl.classList.remove("opacity-0","invisible"),this._targetEl.classList.add("opacity-100","visible"),this._popperInstance.setOptions(function(U){return Q0(Q0({},U),{modifiers:MU(MU([],U.modifiers,!0),[{name:"eventListeners",enabled:!0}],!1)})}),this._setupClickOutsideListener(),this._setupKeydownListener(),this._popperInstance.update(),this._visible=!0,this._options.onShow(this)},q.prototype.hide=function(){this._targetEl.classList.remove("opacity-100","visible"),this._targetEl.classList.add("opacity-0","invisible"),this._popperInstance.setOptions(function(U){return Q0(Q0({},U),{modifiers:MU(MU([],U.modifiers,!0),[{name:"eventListeners",enabled:!1}],!1)})}),this._removeClickOutsideListener(),this._removeKeydownListener(),this._visible=!1,this._options.onHide(this)},q.prototype.updateOnShow=function(U){this._options.onShow=U},q.prototype.updateOnHide=function(U){this._options.onHide=U},q.prototype.updateOnToggle=function(U){this._options.onToggle=U},q}();if(typeof window!=="undefined")window.Popover=iU,window.initPopovers=u0;var p1=iU;function E0(){document.querySelectorAll("[data-dial-init]").forEach(function(q){var U=q.querySelector("[data-dial-toggle]");if(U){var K=U.getAttribute("data-dial-toggle"),J=document.getElementById(K);if(J){var Q=U.getAttribute("data-dial-trigger");new tU(q,U,J,{triggerType:Q?Q:nU.triggerType})}else console.error("Dial with id ".concat(K," does not exist. Are you sure that the data-dial-toggle attribute points to the correct modal id?"))}else console.error("Dial with id ".concat(q.id," does not have a trigger element. Are you sure that the data-dial-toggle attribute exists?"))})}var jU=function(){return jU=Object.assign||function(q){for(var U,K=1,J=arguments.length;K<J;K++){U=arguments[K];for(var Q in U)if(Object.prototype.hasOwnProperty.call(U,Q))q[Q]=U[Q]}return q},jU.apply(this,arguments)},nU={triggerType:"hover",onShow:function(){},onHide:function(){},onToggle:function(){}},c1={id:null,override:!0},tU=function(){function q(U,K,J,Q,Z){if(U===void 0)U=null;if(K===void 0)K=null;if(J===void 0)J=null;if(Q===void 0)Q=nU;if(Z===void 0)Z=c1;this._instanceId=Z.id?Z.id:J.id,this._parentEl=U,this._triggerEl=K,this._targetEl=J,this._options=jU(jU({},nU),Q),this._visible=!1,this._initialized=!1,this.init(),L.addInstance("Dial",this,this._instanceId,Z.override)}return q.prototype.init=function(){var U=this;if(this._triggerEl&&this._targetEl&&!this._initialized){var K=this._getTriggerEventTypes(this._options.triggerType);this._showEventHandler=function(){U.show()},K.showEvents.forEach(function(J){U._triggerEl.addEventListener(J,U._showEventHandler),U._targetEl.addEventListener(J,U._showEventHandler)}),this._hideEventHandler=function(){if(!U._parentEl.matches(":hover"))U.hide()},K.hideEvents.forEach(function(J){U._parentEl.addEventListener(J,U._hideEventHandler)}),this._initialized=!0}},q.prototype.destroy=function(){var U=this;if(this._initialized){var K=this._getTriggerEventTypes(this._options.triggerType);K.showEvents.forEach(function(J){U._triggerEl.removeEventListener(J,U._showEventHandler),U._targetEl.removeEventListener(J,U._showEventHandler)}),K.hideEvents.forEach(function(J){U._parentEl.removeEventListener(J,U._hideEventHandler)}),this._initialized=!1}},q.prototype.removeInstance=function(){L.removeInstance("Dial",this._instanceId)},q.prototype.destroyAndRemoveInstance=function(){this.destroy(),this.removeInstance()},q.prototype.hide=function(){if(this._targetEl.classList.add("hidden"),this._triggerEl)this._triggerEl.setAttribute("aria-expanded","false");this._visible=!1,this._options.onHide(this)},q.prototype.show=function(){if(this._targetEl.classList.remove("hidden"),this._triggerEl)this._triggerEl.setAttribute("aria-expanded","true");this._visible=!0,this._options.onShow(this)},q.prototype.toggle=function(){if(this._visible)this.hide();else this.show()},q.prototype.isHidden=function(){return!this._visible},q.prototype.isVisible=function(){return this._visible},q.prototype._getTriggerEventTypes=function(U){switch(U){case"hover":return{showEvents:["mouseenter","focus"],hideEvents:["mouseleave","blur"]};case"click":return{showEvents:["click","focus"],hideEvents:["focusout","blur"]};case"none":return{showEvents:[],hideEvents:[]};default:return{showEvents:["mouseenter","focus"],hideEvents:["mouseleave","blur"]}}},q.prototype.updateOnShow=function(U){this._options.onShow=U},q.prototype.updateOnHide=function(U){this._options.onHide=U},q.prototype.updateOnToggle=function(U){this._options.onToggle=U},q}();if(typeof window!=="undefined")window.Dial=tU,window.initDials=E0;var l1=tU;function _0(){document.querySelectorAll("[data-input-counter]").forEach(function(q){var U=q.id,K=document.querySelector('[data-input-counter-increment="'+U+'"]'),J=document.querySelector('[data-input-counter-decrement="'+U+'"]'),Q=q.getAttribute("data-input-counter-min"),Z=q.getAttribute("data-input-counter-max");if(q){if(!L.instanceExists("InputCounter",q.getAttribute("id")))new eU(q,K?K:null,J?J:null,{minValue:Q?parseInt(Q):null,maxValue:Z?parseInt(Z):null})}else console.error("The target element with id \"".concat(U,"\" does not exist. Please check the data-input-counter attribute."))})}var IU=function(){return IU=Object.assign||function(q){for(var U,K=1,J=arguments.length;K<J;K++){U=arguments[K];for(var Q in U)if(Object.prototype.hasOwnProperty.call(U,Q))q[Q]=U[Q]}return q},IU.apply(this,arguments)},O8={minValue:null,maxValue:null,onIncrement:function(){},onDecrement:function(){}},r1={id:null,override:!0},eU=function(){function q(U,K,J,Q,Z){if(U===void 0)U=null;if(K===void 0)K=null;if(J===void 0)J=null;if(Q===void 0)Q=O8;if(Z===void 0)Z=r1;this._instanceId=Z.id?Z.id:U.id,this._targetEl=U,this._incrementEl=K,this._decrementEl=J,this._options=IU(IU({},O8),Q),this._initialized=!1,this.init(),L.addInstance("InputCounter",this,this._instanceId,Z.override)}return q.prototype.init=function(){var U=this;if(this._targetEl&&!this._initialized){if(this._inputHandler=function(K){{var J=K.target;if(!/^\d*$/.test(J.value))J.value=J.value.replace(/[^\d]/g,"");if(U._options.maxValue!==null&&parseInt(J.value)>U._options.maxValue)J.value=U._options.maxValue.toString();if(U._options.minValue!==null&&parseInt(J.value)<U._options.minValue)J.value=U._options.minValue.toString()}},this._incrementClickHandler=function(){U.increment()},this._decrementClickHandler=function(){U.decrement()},this._targetEl.addEventListener("input",this._inputHandler),this._incrementEl)this._incrementEl.addEventListener("click",this._incrementClickHandler);if(this._decrementEl)this._decrementEl.addEventListener("click",this._decrementClickHandler);this._initialized=!0}},q.prototype.destroy=function(){if(this._targetEl&&this._initialized){if(this._targetEl.removeEventListener("input",this._inputHandler),this._incrementEl)this._incrementEl.removeEventListener("click",this._incrementClickHandler);if(this._decrementEl)this._decrementEl.removeEventListener("click",this._decrementClickHandler);this._initialized=!1}},q.prototype.removeInstance=function(){L.removeInstance("InputCounter",this._instanceId)},q.prototype.destroyAndRemoveInstance=function(){this.destroy(),this.removeInstance()},q.prototype.getCurrentValue=function(){return parseInt(this._targetEl.value)||0},q.prototype.increment=function(){if(this._options.maxValue!==null&&this.getCurrentValue()>=this._options.maxValue)return;this._targetEl.value=(this.getCurrentValue()+1).toString(),this._options.onIncrement(this)},q.prototype.decrement=function(){if(this._options.minValue!==null&&this.getCurrentValue()<=this._options.minValue)return;this._targetEl.value=(this.getCurrentValue()-1).toString(),this._options.onDecrement(this)},q.prototype.updateOnIncrement=function(U){this._options.onIncrement=U},q.prototype.updateOnDecrement=function(U){this._options.onDecrement=U},q}();if(typeof window!=="undefined")window.InputCounter=eU,window.initInputCounters=_0;var a1=eU;function f0(){document.querySelectorAll("[data-copy-to-clipboard-target]").forEach(function(q){var U=q.getAttribute("data-copy-to-clipboard-target"),K=document.getElementById(U),J=q.getAttribute("data-copy-to-clipboard-content-type"),Q=q.getAttribute("data-copy-to-clipboard-html-entities");if(K){if(!L.instanceExists("CopyClipboard",K.getAttribute("id")))new U8(q,K,{htmlEntities:Q&&Q==="true"?!0:kU.htmlEntities,contentType:J?J:kU.contentType})}else console.error("The target element with id \"".concat(U,"\" does not exist. Please check the data-copy-to-clipboard-target attribute."))})}var SU=function(){return SU=Object.assign||function(q){for(var U,K=1,J=arguments.length;K<J;K++){U=arguments[K];for(var Q in U)if(Object.prototype.hasOwnProperty.call(U,Q))q[Q]=U[Q]}return q},SU.apply(this,arguments)},kU={htmlEntities:!1,contentType:"input",onCopy:function(){}},o1={id:null,override:!0},U8=function(){function q(U,K,J,Q){if(U===void 0)U=null;if(K===void 0)K=null;if(J===void 0)J=kU;if(Q===void 0)Q=o1;this._instanceId=Q.id?Q.id:K.id,this._triggerEl=U,this._targetEl=K,this._options=SU(SU({},kU),J),this._initialized=!1,this.init(),L.addInstance("CopyClipboard",this,this._instanceId,Q.override)}return q.prototype.init=function(){var U=this;if(this._targetEl&&this._triggerEl&&!this._initialized){if(this._triggerElClickHandler=function(){U.copy()},this._triggerEl)this._triggerEl.addEventListener("click",this._triggerElClickHandler);this._initialized=!0}},q.prototype.destroy=function(){if(this._triggerEl&&this._targetEl&&this._initialized){if(this._triggerEl)this._triggerEl.removeEventListener("click",this._triggerElClickHandler);this._initialized=!1}},q.prototype.removeInstance=function(){L.removeInstance("CopyClipboard",this._instanceId)},q.prototype.destroyAndRemoveInstance=function(){this.destroy(),this.removeInstance()},q.prototype.getTargetValue=function(){if(this._options.contentType==="input")return this._targetEl.value;if(this._options.contentType==="innerHTML")return this._targetEl.innerHTML;if(this._options.contentType==="textContent")return this._targetEl.textContent.replace(/\s+/g," ").trim()},q.prototype.copy=function(){var U=this.getTargetValue();if(this._options.htmlEntities)U=this.decodeHTML(U);var K=document.createElement("textarea");return K.value=U,document.body.appendChild(K),K.select(),document.execCommand("copy"),document.body.removeChild(K),this._options.onCopy(this),U},q.prototype.decodeHTML=function(U){var K=document.createElement("textarea");return K.innerHTML=U,K.textContent},q.prototype.updateOnCopyCallback=function(U){this._options.onCopy=U},q}();if(typeof window!=="undefined")window.CopyClipboard=U8,window.initClipboards=f0;var s1=U8;function u8(){I0(),S0(),k0(),x0(),v0(),P0(),w0(),$0(),O0(),u0(),E0(),_0(),f0()}if(typeof window!=="undefined")window.initFlowbite=u8;var i1=new X8("load",[I0,S0,k0,x0,v0,P0,w0,$0,O0,u0,E0,_0,f0]);i1.init();
1
+ var P7=Object.create;var{getPrototypeOf:b7,defineProperty:PJ,getOwnPropertyNames:NQ}=Object;var FQ=Object.prototype.hasOwnProperty,j9=(Q,J,Z)=>{for(let G of NQ(J))if(!FQ.call(Q,G)&&G!=="default")PJ(Q,G,{get:()=>J[G],enumerable:!0});if(Z){for(let G of NQ(J))if(!FQ.call(Z,G)&&G!=="default")PJ(Z,G,{get:()=>J[G],enumerable:!0});return Z}},M9=(Q,J,Z)=>{Z=Q!=null?P7(b7(Q)):{};let G=J||!Q||!Q.__esModule?PJ(Z,"default",{value:Q,enumerable:!0}):Z;for(let K of NQ(Q))if(!FQ.call(G,K))PJ(G,K,{get:()=>Q[K],enumerable:!0});return G};var C9=(Q,J)=>()=>(J||Q((J={exports:{}}).exports,J),J.exports);var y7=function(){function Q(J,Z){if(Z===void 0)Z=[];this._eventType=J,this._eventFunctions=Z}return Q.prototype.init=function(){var J=this;this._eventFunctions.forEach(function(Z){if(typeof window!=="undefined")window.addEventListener(J._eventType,Z)})},Q}(),A1=y7;var $7=function(){function Q(){this._instances={Accordion:{},Carousel:{},Collapse:{},Dial:{},Dismiss:{},Drawer:{},Dropdown:{},Modal:{},Popover:{},Tabs:{},Tooltip:{},InputCounter:{},CopyClipboard:{},Datepicker:{}}}return Q.prototype.addInstance=function(J,Z,G,K){if(K===void 0)K=!1;if(!this._instances[J])return console.warn("Flowbite: Component ".concat(J," does not exist.")),!1;if(this._instances[J][G]&&!K){console.warn("Flowbite: Instance with ID ".concat(G," already exists."));return}if(K&&this._instances[J][G])this._instances[J][G].destroyAndRemoveInstance();this._instances[J][G?G:this._generateRandomId()]=Z},Q.prototype.getAllInstances=function(){return this._instances},Q.prototype.getInstances=function(J){if(!this._instances[J])return console.warn("Flowbite: Component ".concat(J," does not exist.")),!1;return this._instances[J]},Q.prototype.getInstance=function(J,Z){if(!this._componentAndInstanceCheck(J,Z))return;if(!this._instances[J][Z]){console.warn("Flowbite: Instance with ID ".concat(Z," does not exist."));return}return this._instances[J][Z]},Q.prototype.destroyAndRemoveInstance=function(J,Z){if(!this._componentAndInstanceCheck(J,Z))return;this.destroyInstanceObject(J,Z),this.removeInstance(J,Z)},Q.prototype.removeInstance=function(J,Z){if(!this._componentAndInstanceCheck(J,Z))return;delete this._instances[J][Z]},Q.prototype.destroyInstanceObject=function(J,Z){if(!this._componentAndInstanceCheck(J,Z))return;this._instances[J][Z].destroy()},Q.prototype.instanceExists=function(J,Z){if(!this._instances[J])return!1;if(!this._instances[J][Z])return!1;return!0},Q.prototype._generateRandomId=function(){return Math.random().toString(36).substr(2,9)},Q.prototype._componentAndInstanceCheck=function(J,Z){if(!this._instances[J])return console.warn("Flowbite: Component ".concat(J," does not exist.")),!1;if(!this._instances[J][Z])return console.warn("Flowbite: Instance with ID ".concat(Z," does not exist.")),!1;return!0},Q}(),R1=new $7,F=R1;if(typeof window!=="undefined")window.FlowbiteInstances=R1;var bJ=function(){return bJ=Object.assign||function(Q){for(var J,Z=1,G=arguments.length;Z<G;Z++){J=arguments[Z];for(var K in J)if(Object.prototype.hasOwnProperty.call(J,K))Q[K]=J[K]}return Q},bJ.apply(this,arguments)},yJ={alwaysOpen:!1,activeClasses:"bg-gray-100 dark:bg-gray-800 text-gray-900 dark:text-white",inactiveClasses:"text-gray-500 dark:text-gray-400",onOpen:function(){},onClose:function(){},onToggle:function(){}},v7={id:null,override:!0},AQ=function(){function Q(J,Z,G,K){if(J===void 0)J=null;if(Z===void 0)Z=[];if(G===void 0)G=yJ;if(K===void 0)K=v7;this._instanceId=K.id?K.id:J.id,this._accordionEl=J,this._items=Z,this._options=bJ(bJ({},yJ),G),this._initialized=!1,this.init(),F.addInstance("Accordion",this,this._instanceId,K.override)}return Q.prototype.init=function(){var J=this;if(this._items.length&&!this._initialized)this._items.forEach(function(Z){if(Z.active)J.open(Z.id);var G=function(){J.toggle(Z.id)};Z.triggerEl.addEventListener("click",G),Z.clickHandler=G}),this._initialized=!0},Q.prototype.destroy=function(){if(this._items.length&&this._initialized)this._items.forEach(function(J){J.triggerEl.removeEventListener("click",J.clickHandler),delete J.clickHandler}),this._initialized=!1},Q.prototype.removeInstance=function(){F.removeInstance("Accordion",this._instanceId)},Q.prototype.destroyAndRemoveInstance=function(){this.destroy(),this.removeInstance()},Q.prototype.getItem=function(J){return this._items.filter(function(Z){return Z.id===J})[0]},Q.prototype.open=function(J){var Z,G,K=this,q=this.getItem(J);if(!this._options.alwaysOpen)this._items.map(function(z){var X,H;if(z!==q){if((X=z.triggerEl.classList).remove.apply(X,K._options.activeClasses.split(" ")),(H=z.triggerEl.classList).add.apply(H,K._options.inactiveClasses.split(" ")),z.targetEl.classList.add("hidden"),z.triggerEl.setAttribute("aria-expanded","false"),z.active=!1,z.iconEl)z.iconEl.classList.add("rotate-180")}});if((Z=q.triggerEl.classList).add.apply(Z,this._options.activeClasses.split(" ")),(G=q.triggerEl.classList).remove.apply(G,this._options.inactiveClasses.split(" ")),q.triggerEl.setAttribute("aria-expanded","true"),q.targetEl.classList.remove("hidden"),q.active=!0,q.iconEl)q.iconEl.classList.remove("rotate-180");this._options.onOpen(this,q)},Q.prototype.toggle=function(J){var Z=this.getItem(J);if(Z.active)this.close(J);else this.open(J);this._options.onToggle(this,Z)},Q.prototype.close=function(J){var Z,G,K=this.getItem(J);if((Z=K.triggerEl.classList).remove.apply(Z,this._options.activeClasses.split(" ")),(G=K.triggerEl.classList).add.apply(G,this._options.inactiveClasses.split(" ")),K.targetEl.classList.add("hidden"),K.triggerEl.setAttribute("aria-expanded","false"),K.active=!1,K.iconEl)K.iconEl.classList.add("rotate-180");this._options.onClose(this,K)},Q.prototype.updateOnOpen=function(J){this._options.onOpen=J},Q.prototype.updateOnClose=function(J){this._options.onClose=J},Q.prototype.updateOnToggle=function(J){this._options.onToggle=J},Q}();function O0(){document.querySelectorAll("[data-accordion]").forEach(function(Q){var J=Q.getAttribute("data-accordion"),Z=Q.getAttribute("data-active-classes"),G=Q.getAttribute("data-inactive-classes"),K=[];Q.querySelectorAll("[data-accordion-target]").forEach(function(q){if(q.closest("[data-accordion]")===Q){var z={id:q.getAttribute("data-accordion-target"),triggerEl:q,targetEl:document.querySelector(q.getAttribute("data-accordion-target")),iconEl:q.querySelector("[data-accordion-icon]"),active:q.getAttribute("aria-expanded")==="true"?!0:!1};K.push(z)}}),new AQ(Q,K,{alwaysOpen:J==="open"?!0:!1,activeClasses:Z?Z:yJ.activeClasses,inactiveClasses:G?G:yJ.inactiveClasses})})}if(typeof window!=="undefined")window.Accordion=AQ,window.initAccordions=O0;var D7=AQ;var $J=function(){return $J=Object.assign||function(Q){for(var J,Z=1,G=arguments.length;Z<G;Z++){J=arguments[Z];for(var K in J)if(Object.prototype.hasOwnProperty.call(J,K))Q[K]=J[K]}return Q},$J.apply(this,arguments)},L1={onCollapse:function(){},onExpand:function(){},onToggle:function(){}},h7={id:null,override:!0},vJ=function(){function Q(J,Z,G,K){if(J===void 0)J=null;if(Z===void 0)Z=null;if(G===void 0)G=L1;if(K===void 0)K=h7;this._instanceId=K.id?K.id:J.id,this._targetEl=J,this._triggerEl=Z,this._options=$J($J({},L1),G),this._visible=!1,this._initialized=!1,this.init(),F.addInstance("Collapse",this,this._instanceId,K.override)}return Q.prototype.init=function(){var J=this;if(this._triggerEl&&this._targetEl&&!this._initialized){if(this._triggerEl.hasAttribute("aria-expanded"))this._visible=this._triggerEl.getAttribute("aria-expanded")==="true";else this._visible=!this._targetEl.classList.contains("hidden");this._clickHandler=function(){J.toggle()},this._triggerEl.addEventListener("click",this._clickHandler),this._initialized=!0}},Q.prototype.destroy=function(){if(this._triggerEl&&this._initialized)this._triggerEl.removeEventListener("click",this._clickHandler),this._initialized=!1},Q.prototype.removeInstance=function(){F.removeInstance("Collapse",this._instanceId)},Q.prototype.destroyAndRemoveInstance=function(){this.destroy(),this.removeInstance()},Q.prototype.collapse=function(){if(this._targetEl.classList.add("hidden"),this._triggerEl)this._triggerEl.setAttribute("aria-expanded","false");this._visible=!1,this._options.onCollapse(this)},Q.prototype.expand=function(){if(this._targetEl.classList.remove("hidden"),this._triggerEl)this._triggerEl.setAttribute("aria-expanded","true");this._visible=!0,this._options.onExpand(this)},Q.prototype.toggle=function(){if(this._visible)this.collapse();else this.expand();this._options.onToggle(this)},Q.prototype.updateOnCollapse=function(J){this._options.onCollapse=J},Q.prototype.updateOnExpand=function(J){this._options.onExpand=J},Q.prototype.updateOnToggle=function(J){this._options.onToggle=J},Q}();function w0(){document.querySelectorAll("[data-collapse-toggle]").forEach(function(Q){var J=Q.getAttribute("data-collapse-toggle"),Z=document.getElementById(J);if(Z)if(!F.instanceExists("Collapse",Z.getAttribute("id")))new vJ(Z,Q);else new vJ(Z,Q,{},{id:Z.getAttribute("id")+"_"+F._generateRandomId()});else console.error('The target element with id "'.concat(J,'" does not exist. Please check the data-collapse-toggle attribute.'))})}if(typeof window!=="undefined")window.Collapse=vJ,window.initCollapses=w0;var O7=vJ;var R0=function(){return R0=Object.assign||function(Q){for(var J,Z=1,G=arguments.length;Z<G;Z++){J=arguments[Z];for(var K in J)if(Object.prototype.hasOwnProperty.call(J,K))Q[K]=J[K]}return Q},R0.apply(this,arguments)},DJ={defaultPosition:0,indicators:{items:[],activeClasses:"bg-white dark:bg-gray-800",inactiveClasses:"bg-white/50 dark:bg-gray-800/50 hover:bg-white dark:hover:bg-gray-800"},interval:3000,onNext:function(){},onPrev:function(){},onChange:function(){}},w7={id:null,override:!0},RQ=function(){function Q(J,Z,G,K){if(J===void 0)J=null;if(Z===void 0)Z=[];if(G===void 0)G=DJ;if(K===void 0)K=w7;this._instanceId=K.id?K.id:J.id,this._carouselEl=J,this._items=Z,this._options=R0(R0(R0({},DJ),G),{indicators:R0(R0({},DJ.indicators),G.indicators)}),this._activeItem=this.getItem(this._options.defaultPosition),this._indicators=this._options.indicators.items,this._intervalDuration=this._options.interval,this._intervalInstance=null,this._initialized=!1,this.init(),F.addInstance("Carousel",this,this._instanceId,K.override)}return Q.prototype.init=function(){var J=this;if(this._items.length&&!this._initialized){if(this._items.map(function(Z){Z.el.classList.add("absolute","inset-0","transition-transform","transform")}),this.getActiveItem())this.slideTo(this.getActiveItem().position);else this.slideTo(0);this._indicators.map(function(Z,G){Z.el.addEventListener("click",function(){J.slideTo(G)})}),this._initialized=!0}},Q.prototype.destroy=function(){if(this._initialized)this._initialized=!1},Q.prototype.removeInstance=function(){F.removeInstance("Carousel",this._instanceId)},Q.prototype.destroyAndRemoveInstance=function(){this.destroy(),this.removeInstance()},Q.prototype.getItem=function(J){return this._items[J]},Q.prototype.slideTo=function(J){var Z=this._items[J],G={left:Z.position===0?this._items[this._items.length-1]:this._items[Z.position-1],middle:Z,right:Z.position===this._items.length-1?this._items[0]:this._items[Z.position+1]};if(this._rotate(G),this._setActiveItem(Z),this._intervalInstance)this.pause(),this.cycle();this._options.onChange(this)},Q.prototype.next=function(){var J=this.getActiveItem(),Z=null;if(J.position===this._items.length-1)Z=this._items[0];else Z=this._items[J.position+1];this.slideTo(Z.position),this._options.onNext(this)},Q.prototype.prev=function(){var J=this.getActiveItem(),Z=null;if(J.position===0)Z=this._items[this._items.length-1];else Z=this._items[J.position-1];this.slideTo(Z.position),this._options.onPrev(this)},Q.prototype._rotate=function(J){if(this._items.map(function(Z){Z.el.classList.add("hidden")}),this._items.length===1){J.middle.el.classList.remove("-translate-x-full","translate-x-full","translate-x-0","hidden","z-10"),J.middle.el.classList.add("translate-x-0","z-20");return}J.left.el.classList.remove("-translate-x-full","translate-x-full","translate-x-0","hidden","z-20"),J.left.el.classList.add("-translate-x-full","z-10"),J.middle.el.classList.remove("-translate-x-full","translate-x-full","translate-x-0","hidden","z-10"),J.middle.el.classList.add("translate-x-0","z-30"),J.right.el.classList.remove("-translate-x-full","translate-x-full","translate-x-0","hidden","z-30"),J.right.el.classList.add("translate-x-full","z-20")},Q.prototype.cycle=function(){var J=this;if(typeof window!=="undefined")this._intervalInstance=window.setInterval(function(){J.next()},this._intervalDuration)},Q.prototype.pause=function(){clearInterval(this._intervalInstance)},Q.prototype.getActiveItem=function(){return this._activeItem},Q.prototype._setActiveItem=function(J){var Z,G,K=this;this._activeItem=J;var q=J.position;if(this._indicators.length)this._indicators.map(function(z){var X,H;z.el.setAttribute("aria-current","false"),(X=z.el.classList).remove.apply(X,K._options.indicators.activeClasses.split(" ")),(H=z.el.classList).add.apply(H,K._options.indicators.inactiveClasses.split(" "))}),(Z=this._indicators[q].el.classList).add.apply(Z,this._options.indicators.activeClasses.split(" ")),(G=this._indicators[q].el.classList).remove.apply(G,this._options.indicators.inactiveClasses.split(" ")),this._indicators[q].el.setAttribute("aria-current","true")},Q.prototype.updateOnNext=function(J){this._options.onNext=J},Q.prototype.updateOnPrev=function(J){this._options.onPrev=J},Q.prototype.updateOnChange=function(J){this._options.onChange=J},Q}();function E0(){document.querySelectorAll("[data-carousel]").forEach(function(Q){var J=Q.getAttribute("data-carousel-interval"),Z=Q.getAttribute("data-carousel")==="slide"?!0:!1,G=[],K=0;if(Q.querySelectorAll("[data-carousel-item]").length)Array.from(Q.querySelectorAll("[data-carousel-item]")).map(function(W,Y){if(G.push({position:Y,el:W}),W.getAttribute("data-carousel-item")==="active")K=Y});var q=[];if(Q.querySelectorAll("[data-carousel-slide-to]").length)Array.from(Q.querySelectorAll("[data-carousel-slide-to]")).map(function(W){q.push({position:parseInt(W.getAttribute("data-carousel-slide-to")),el:W})});var z=new RQ(Q,G,{defaultPosition:K,indicators:{items:q},interval:J?J:DJ.interval});if(Z)z.cycle();var X=Q.querySelector("[data-carousel-next]"),H=Q.querySelector("[data-carousel-prev]");if(X)X.addEventListener("click",function(){z.next()});if(H)H.addEventListener("click",function(){z.prev()})})}if(typeof window!=="undefined")window.Carousel=RQ,window.initCarousels=E0;var E7=RQ;var hJ=function(){return hJ=Object.assign||function(Q){for(var J,Z=1,G=arguments.length;Z<G;Z++){J=arguments[Z];for(var K in J)if(Object.prototype.hasOwnProperty.call(J,K))Q[K]=J[K]}return Q},hJ.apply(this,arguments)},V1={transition:"transition-opacity",duration:300,timing:"ease-out",onHide:function(){}},u7={id:null,override:!0},LQ=function(){function Q(J,Z,G,K){if(J===void 0)J=null;if(Z===void 0)Z=null;if(G===void 0)G=V1;if(K===void 0)K=u7;this._instanceId=K.id?K.id:J.id,this._targetEl=J,this._triggerEl=Z,this._options=hJ(hJ({},V1),G),this._initialized=!1,this.init(),F.addInstance("Dismiss",this,this._instanceId,K.override)}return Q.prototype.init=function(){var J=this;if(this._triggerEl&&this._targetEl&&!this._initialized)this._clickHandler=function(){J.hide()},this._triggerEl.addEventListener("click",this._clickHandler),this._initialized=!0},Q.prototype.destroy=function(){if(this._triggerEl&&this._initialized)this._triggerEl.removeEventListener("click",this._clickHandler),this._initialized=!1},Q.prototype.removeInstance=function(){F.removeInstance("Dismiss",this._instanceId)},Q.prototype.destroyAndRemoveInstance=function(){this.destroy(),this.removeInstance()},Q.prototype.hide=function(){var J=this;this._targetEl.classList.add(this._options.transition,"duration-".concat(this._options.duration),this._options.timing,"opacity-0"),setTimeout(function(){J._targetEl.classList.add("hidden")},this._options.duration),this._options.onHide(this,this._targetEl)},Q.prototype.updateOnHide=function(J){this._options.onHide=J},Q}();function u0(){document.querySelectorAll("[data-dismiss-target]").forEach(function(Q){var J=Q.getAttribute("data-dismiss-target"),Z=document.querySelector(J);if(Z)new LQ(Z,Q);else console.error('The dismiss element with id "'.concat(J,'" does not exist. Please check the data-dismiss-target attribute.'))})}if(typeof window!=="undefined")window.Dismiss=LQ,window.initDismisses=u0;var k7=LQ;var v="top",w="bottom",O="right",h="left",OJ="auto",q0=[v,w,O,h],e="start",L0="end",I1="clippingParents",wJ="viewport",k0="popper",T1="reference",VQ=q0.reduce(function(Q,J){return Q.concat([J+"-"+e,J+"-"+L0])},[]),EJ=[].concat(q0,[OJ]).reduce(function(Q,J){return Q.concat([J,J+"-"+e,J+"-"+L0])},[]),_7="beforeRead",f7="read",m7="afterRead",g7="beforeMain",d7="main",c7="afterMain",p7="beforeWrite",l7="write",o7="afterWrite",S1=[_7,f7,m7,g7,d7,c7,p7,l7,o7];function k(Q){return Q?(Q.nodeName||"").toLowerCase():null}function $(Q){if(Q==null)return window;if(Q.toString()!=="[object Window]"){var J=Q.ownerDocument;return J?J.defaultView||window:window}return Q}function l(Q){var J=$(Q).Element;return Q instanceof J||Q instanceof Element}function E(Q){var J=$(Q).HTMLElement;return Q instanceof J||Q instanceof HTMLElement}function _0(Q){if(typeof ShadowRoot==="undefined")return!1;var J=$(Q).ShadowRoot;return Q instanceof J||Q instanceof ShadowRoot}function r7(Q){var J=Q.state;Object.keys(J.elements).forEach(function(Z){var G=J.styles[Z]||{},K=J.attributes[Z]||{},q=J.elements[Z];if(!E(q)||!k(q))return;Object.assign(q.style,G),Object.keys(K).forEach(function(z){var X=K[z];if(X===!1)q.removeAttribute(z);else q.setAttribute(z,X===!0?"":X)})})}function s7(Q){var J=Q.state,Z={popper:{position:J.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};if(Object.assign(J.elements.popper.style,Z.popper),J.styles=Z,J.elements.arrow)Object.assign(J.elements.arrow.style,Z.arrow);return function(){Object.keys(J.elements).forEach(function(G){var K=J.elements[G],q=J.attributes[G]||{},z=Object.keys(J.styles.hasOwnProperty(G)?J.styles[G]:Z[G]),X=z.reduce(function(H,W){return H[W]="",H},{});if(!E(K)||!k(K))return;Object.assign(K.style,X),Object.keys(q).forEach(function(H){K.removeAttribute(H)})})}}var j1={name:"applyStyles",enabled:!0,phase:"write",fn:r7,effect:s7,requires:["computeStyles"]};function _(Q){return Q.split("-")[0]}var{max:n,min:V0,round:J0}=Math;function f0(){var Q=navigator.userAgentData;if(Q!=null&&Q.brands&&Array.isArray(Q.brands))return Q.brands.map(function(J){return J.brand+"/"+J.version}).join(" ");return navigator.userAgent}function KJ(){return!/^((?!chrome|android).)*safari/i.test(f0())}function o(Q,J,Z){if(J===void 0)J=!1;if(Z===void 0)Z=!1;var G=Q.getBoundingClientRect(),K=1,q=1;if(J&&E(Q))K=Q.offsetWidth>0?J0(G.width)/Q.offsetWidth||1:1,q=Q.offsetHeight>0?J0(G.height)/Q.offsetHeight||1:1;var z=l(Q)?$(Q):window,X=z.visualViewport,H=!KJ()&&Z,W=(G.left+(H&&X?X.offsetLeft:0))/K,Y=(G.top+(H&&X?X.offsetTop:0))/q,U=G.width/K,N=G.height/q;return{width:U,height:N,top:Y,right:W+U,bottom:Y+N,left:W,x:W,y:Y}}function I0(Q){var J=o(Q),Z=Q.offsetWidth,G=Q.offsetHeight;if(Math.abs(J.width-Z)<=1)Z=J.width;if(Math.abs(J.height-G)<=1)G=J.height;return{x:Q.offsetLeft,y:Q.offsetTop,width:Z,height:G}}function qJ(Q,J){var Z=J.getRootNode&&J.getRootNode();if(Q.contains(J))return!0;else if(Z&&_0(Z)){var G=J;do{if(G&&Q.isSameNode(G))return!0;G=G.parentNode||G.host}while(G)}return!1}function g(Q){return $(Q).getComputedStyle(Q)}function IQ(Q){return["table","td","th"].indexOf(k(Q))>=0}function f(Q){return((l(Q)?Q.ownerDocument:Q.document)||window.document).documentElement}function Q0(Q){if(k(Q)==="html")return Q;return Q.assignedSlot||Q.parentNode||(_0(Q)?Q.host:null)||f(Q)}function M1(Q){if(!E(Q)||g(Q).position==="fixed")return null;return Q.offsetParent}function n7(Q){var J=/firefox/i.test(f0()),Z=/Trident/i.test(f0());if(Z&&E(Q)){var G=g(Q);if(G.position==="fixed")return null}var K=Q0(Q);if(_0(K))K=K.host;while(E(K)&&["html","body"].indexOf(k(K))<0){var q=g(K);if(q.transform!=="none"||q.perspective!=="none"||q.contain==="paint"||["transform","perspective"].indexOf(q.willChange)!==-1||J&&q.willChange==="filter"||J&&q.filter&&q.filter!=="none")return K;else K=K.parentNode}return null}function a(Q){var J=$(Q),Z=M1(Q);while(Z&&IQ(Z)&&g(Z).position==="static")Z=M1(Z);if(Z&&(k(Z)==="html"||k(Z)==="body"&&g(Z).position==="static"))return J;return Z||n7(Q)||J}function T0(Q){return["top","bottom"].indexOf(Q)>=0?"x":"y"}function S0(Q,J,Z){return n(Q,V0(J,Z))}function C1(Q,J,Z){var G=S0(Q,J,Z);return G>Z?Z:G}function XJ(){return{top:0,right:0,bottom:0,left:0}}function zJ(Q){return Object.assign({},XJ(),Q)}function HJ(Q,J){return J.reduce(function(Z,G){return Z[G]=Q,Z},{})}var a7=function Q(J,Z){return J=typeof J==="function"?J(Object.assign({},Z.rects,{placement:Z.placement})):J,zJ(typeof J!=="number"?J:HJ(J,q0))};function i7(Q){var J,Z=Q.state,G=Q.name,K=Q.options,q=Z.elements.arrow,z=Z.modifiersData.popperOffsets,X=_(Z.placement),H=T0(X),W=[h,O].indexOf(X)>=0,Y=W?"height":"width";if(!q||!z)return;var U=a7(K.padding,Z),N=I0(q),B=H==="y"?v:h,V=H==="y"?w:O,R=Z.rects.reference[Y]+Z.rects.reference[H]-z[H]-Z.rects.popper[Y],A=z[H]-Z.rects.reference[H],j=a(q),P=j?H==="y"?j.clientHeight||0:j.clientWidth||0:0,b=R/2-A/2,L=U[B],I=P-N[Y]-U[V],T=P/2-N[Y]/2+b,C=S0(L,T,I),x=H;Z.modifiersData[G]=(J={},J[x]=C,J.centerOffset=C-T,J)}function t7(Q){var{state:J,options:Z}=Q,G=Z.element,K=G===void 0?"[data-popper-arrow]":G;if(K==null)return;if(typeof K==="string"){if(K=J.elements.popper.querySelector(K),!K)return}if(!qJ(J.elements.popper,K))return;J.elements.arrow=K}var x1={name:"arrow",enabled:!0,phase:"main",fn:i7,effect:t7,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function r(Q){return Q.split("-")[1]}var e7={top:"auto",right:"auto",bottom:"auto",left:"auto"};function J8(Q,J){var{x:Z,y:G}=Q,K=J.devicePixelRatio||1;return{x:J0(Z*K)/K||0,y:J0(G*K)/K||0}}function P1(Q){var J,Z=Q.popper,G=Q.popperRect,K=Q.placement,q=Q.variation,z=Q.offsets,X=Q.position,H=Q.gpuAcceleration,W=Q.adaptive,Y=Q.roundOffsets,U=Q.isFixed,N=z.x,B=N===void 0?0:N,V=z.y,R=V===void 0?0:V,A=typeof Y==="function"?Y({x:B,y:R}):{x:B,y:R};B=A.x,R=A.y;var j=z.hasOwnProperty("x"),P=z.hasOwnProperty("y"),b=h,L=v,I=window;if(W){var T=a(Z),C="clientHeight",x="clientWidth";if(T===$(Z)){if(T=f(Z),g(T).position!=="static"&&X==="absolute")C="scrollHeight",x="scrollWidth"}if(T=T,K===v||(K===h||K===O)&&q===L0){L=w;var M=U&&T===I&&I.visualViewport?I.visualViewport.height:T[C];R-=M-G.height,R*=H?1:-1}if(K===h||(K===v||K===w)&&q===L0){b=O;var S=U&&T===I&&I.visualViewport?I.visualViewport.width:T[x];B-=S-G.width,B*=H?1:-1}}var y=Object.assign({position:X},W&&e7),d=Y===!0?J8({x:B,y:R},$(Z)):{x:B,y:R};if(B=d.x,R=d.y,H){var u;return Object.assign({},y,(u={},u[L]=P?"0":"",u[b]=j?"0":"",u.transform=(I.devicePixelRatio||1)<=1?"translate("+B+"px, "+R+"px)":"translate3d("+B+"px, "+R+"px, 0)",u))}return Object.assign({},y,(J={},J[L]=P?R+"px":"",J[b]=j?B+"px":"",J.transform="",J))}function Q8(Q){var{state:J,options:Z}=Q,G=Z.gpuAcceleration,K=G===void 0?!0:G,q=Z.adaptive,z=q===void 0?!0:q,X=Z.roundOffsets,H=X===void 0?!0:X,W={placement:_(J.placement),variation:r(J.placement),popper:J.elements.popper,popperRect:J.rects.popper,gpuAcceleration:K,isFixed:J.options.strategy==="fixed"};if(J.modifiersData.popperOffsets!=null)J.styles.popper=Object.assign({},J.styles.popper,P1(Object.assign({},W,{offsets:J.modifiersData.popperOffsets,position:J.options.strategy,adaptive:z,roundOffsets:H})));if(J.modifiersData.arrow!=null)J.styles.arrow=Object.assign({},J.styles.arrow,P1(Object.assign({},W,{offsets:J.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:H})));J.attributes.popper=Object.assign({},J.attributes.popper,{"data-popper-placement":J.placement})}var b1={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Q8,data:{}};var uJ={passive:!0};function Z8(Q){var{state:J,instance:Z,options:G}=Q,K=G.scroll,q=K===void 0?!0:K,z=G.resize,X=z===void 0?!0:z,H=$(J.elements.popper),W=[].concat(J.scrollParents.reference,J.scrollParents.popper);if(q)W.forEach(function(Y){Y.addEventListener("scroll",Z.update,uJ)});if(X)H.addEventListener("resize",Z.update,uJ);return function(){if(q)W.forEach(function(Y){Y.removeEventListener("scroll",Z.update,uJ)});if(X)H.removeEventListener("resize",Z.update,uJ)}}var y1={name:"eventListeners",enabled:!0,phase:"write",fn:function Q(){},effect:Z8,data:{}};var G8={left:"right",right:"left",bottom:"top",top:"bottom"};function m0(Q){return Q.replace(/left|right|bottom|top/g,function(J){return G8[J]})}var K8={start:"end",end:"start"};function kJ(Q){return Q.replace(/start|end/g,function(J){return K8[J]})}function j0(Q){var J=$(Q),Z=J.pageXOffset,G=J.pageYOffset;return{scrollLeft:Z,scrollTop:G}}function M0(Q){return o(f(Q)).left+j0(Q).scrollLeft}function TQ(Q,J){var Z=$(Q),G=f(Q),K=Z.visualViewport,q=G.clientWidth,z=G.clientHeight,X=0,H=0;if(K){q=K.width,z=K.height;var W=KJ();if(W||!W&&J==="fixed")X=K.offsetLeft,H=K.offsetTop}return{width:q,height:z,x:X+M0(Q),y:H}}function SQ(Q){var J,Z=f(Q),G=j0(Q),K=(J=Q.ownerDocument)==null?void 0:J.body,q=n(Z.scrollWidth,Z.clientWidth,K?K.scrollWidth:0,K?K.clientWidth:0),z=n(Z.scrollHeight,Z.clientHeight,K?K.scrollHeight:0,K?K.clientHeight:0),X=-G.scrollLeft+M0(Q),H=-G.scrollTop;if(g(K||Z).direction==="rtl")X+=n(Z.clientWidth,K?K.clientWidth:0)-q;return{width:q,height:z,x:X,y:H}}function C0(Q){var J=g(Q),Z=J.overflow,G=J.overflowX,K=J.overflowY;return/auto|scroll|overlay|hidden/.test(Z+K+G)}function _J(Q){if(["html","body","#document"].indexOf(k(Q))>=0)return Q.ownerDocument.body;if(E(Q)&&C0(Q))return Q;return _J(Q0(Q))}function X0(Q,J){var Z;if(J===void 0)J=[];var G=_J(Q),K=G===((Z=Q.ownerDocument)==null?void 0:Z.body),q=$(G),z=K?[q].concat(q.visualViewport||[],C0(G)?G:[]):G,X=J.concat(z);return K?X:X.concat(X0(Q0(z)))}function g0(Q){return Object.assign({},Q,{left:Q.x,top:Q.y,right:Q.x+Q.width,bottom:Q.y+Q.height})}function q8(Q,J){var Z=o(Q,!1,J==="fixed");return Z.top=Z.top+Q.clientTop,Z.left=Z.left+Q.clientLeft,Z.bottom=Z.top+Q.clientHeight,Z.right=Z.left+Q.clientWidth,Z.width=Q.clientWidth,Z.height=Q.clientHeight,Z.x=Z.left,Z.y=Z.top,Z}function $1(Q,J,Z){return J===wJ?g0(TQ(Q,Z)):l(J)?q8(J,Z):g0(SQ(f(Q)))}function X8(Q){var J=X0(Q0(Q)),Z=["absolute","fixed"].indexOf(g(Q).position)>=0,G=Z&&E(Q)?a(Q):Q;if(!l(G))return[];return J.filter(function(K){return l(K)&&qJ(K,G)&&k(K)!=="body"})}function jQ(Q,J,Z,G){var K=J==="clippingParents"?X8(Q):[].concat(J),q=[].concat(K,[Z]),z=q[0],X=q.reduce(function(H,W){var Y=$1(Q,W,G);return H.top=n(Y.top,H.top),H.right=V0(Y.right,H.right),H.bottom=V0(Y.bottom,H.bottom),H.left=n(Y.left,H.left),H},$1(Q,z,G));return X.width=X.right-X.left,X.height=X.bottom-X.top,X.x=X.left,X.y=X.top,X}function WJ(Q){var{reference:J,element:Z,placement:G}=Q,K=G?_(G):null,q=G?r(G):null,z=J.x+J.width/2-Z.width/2,X=J.y+J.height/2-Z.height/2,H;switch(K){case v:H={x:z,y:J.y-Z.height};break;case w:H={x:z,y:J.y+J.height};break;case O:H={x:J.x+J.width,y:X};break;case h:H={x:J.x-Z.width,y:X};break;default:H={x:J.x,y:J.y}}var W=K?T0(K):null;if(W!=null){var Y=W==="y"?"height":"width";switch(q){case e:H[W]=H[W]-(J[Y]/2-Z[Y]/2);break;case L0:H[W]=H[W]+(J[Y]/2-Z[Y]/2);break;default:}}return H}function i(Q,J){if(J===void 0)J={};var Z=J,G=Z.placement,K=G===void 0?Q.placement:G,q=Z.strategy,z=q===void 0?Q.strategy:q,X=Z.boundary,H=X===void 0?I1:X,W=Z.rootBoundary,Y=W===void 0?wJ:W,U=Z.elementContext,N=U===void 0?k0:U,B=Z.altBoundary,V=B===void 0?!1:B,R=Z.padding,A=R===void 0?0:R,j=zJ(typeof A!=="number"?A:HJ(A,q0)),P=N===k0?T1:k0,b=Q.rects.popper,L=Q.elements[V?P:N],I=jQ(l(L)?L:L.contextElement||f(Q.elements.popper),H,Y,z),T=o(Q.elements.reference),C=WJ({reference:T,element:b,strategy:"absolute",placement:K}),x=g0(Object.assign({},b,C)),M=N===k0?x:T,S={top:I.top-M.top+j.top,bottom:M.bottom-I.bottom+j.bottom,left:I.left-M.left+j.left,right:M.right-I.right+j.right},y=Q.modifiersData.offset;if(N===k0&&y){var d=y[K];Object.keys(S).forEach(function(u){var t=[O,w].indexOf(u)>=0?1:-1,D=[v,w].indexOf(u)>=0?"y":"x";S[u]+=d[D]*t})}return S}function MQ(Q,J){if(J===void 0)J={};var Z=J,G=Z.placement,K=Z.boundary,q=Z.rootBoundary,z=Z.padding,X=Z.flipVariations,H=Z.allowedAutoPlacements,W=H===void 0?EJ:H,Y=r(G),U=Y?X?VQ:VQ.filter(function(V){return r(V)===Y}):q0,N=U.filter(function(V){return W.indexOf(V)>=0});if(N.length===0)N=U;var B=N.reduce(function(V,R){return V[R]=i(Q,{placement:R,boundary:K,rootBoundary:q,padding:z})[_(R)],V},{});return Object.keys(B).sort(function(V,R){return B[V]-B[R]})}function z8(Q){if(_(Q)===OJ)return[];var J=m0(Q);return[kJ(Q),J,kJ(J)]}function H8(Q){var{state:J,options:Z,name:G}=Q;if(J.modifiersData[G]._skip)return;var K=Z.mainAxis,q=K===void 0?!0:K,z=Z.altAxis,X=z===void 0?!0:z,H=Z.fallbackPlacements,W=Z.padding,Y=Z.boundary,U=Z.rootBoundary,N=Z.altBoundary,B=Z.flipVariations,V=B===void 0?!0:B,R=Z.allowedAutoPlacements,A=J.options.placement,j=_(A),P=j===A,b=H||(P||!V?[m0(A)]:z8(A)),L=[A].concat(b).reduce(function(h0,K0){return h0.concat(_(K0)===OJ?MQ(J,{placement:K0,boundary:Y,rootBoundary:U,padding:W,flipVariations:V,allowedAutoPlacements:R}):K0)},[]),I=J.rects.reference,T=J.rects.popper,C=new Map,x=!0,M=L[0];for(var S=0;S<L.length;S++){var y=L[S],d=_(y),u=r(y)===e,t=[v,w].indexOf(d)>=0,D=t?"width":"height",m=i(J,{placement:y,boundary:Y,rootBoundary:U,altBoundary:N,padding:W}),c=t?u?O:h:u?w:v;if(I[D]>T[D])c=m0(c);var SJ=m0(c),N0=[];if(q)N0.push(m[d]<=0);if(X)N0.push(m[c]<=0,m[SJ]<=0);if(N0.every(function(h0){return h0})){M=y,x=!1;break}C.set(y,N0)}if(x){var jJ=V?3:1,WQ=function h0(K0){var GJ=L.find(function(CJ){var F0=C.get(CJ);if(F0)return F0.slice(0,K0).every(function(YQ){return YQ})});if(GJ)return M=GJ,"break"};for(var ZJ=jJ;ZJ>0;ZJ--){var MJ=WQ(ZJ);if(MJ==="break")break}}if(J.placement!==M)J.modifiersData[G]._skip=!0,J.placement=M,J.reset=!0}var v1={name:"flip",enabled:!0,phase:"main",fn:H8,requiresIfExists:["offset"],data:{_skip:!1}};function D1(Q,J,Z){if(Z===void 0)Z={x:0,y:0};return{top:Q.top-J.height-Z.y,right:Q.right-J.width+Z.x,bottom:Q.bottom-J.height+Z.y,left:Q.left-J.width-Z.x}}function h1(Q){return[v,O,w,h].some(function(J){return Q[J]>=0})}function W8(Q){var{state:J,name:Z}=Q,G=J.rects.reference,K=J.rects.popper,q=J.modifiersData.preventOverflow,z=i(J,{elementContext:"reference"}),X=i(J,{altBoundary:!0}),H=D1(z,G),W=D1(X,K,q),Y=h1(H),U=h1(W);J.modifiersData[Z]={referenceClippingOffsets:H,popperEscapeOffsets:W,isReferenceHidden:Y,hasPopperEscaped:U},J.attributes.popper=Object.assign({},J.attributes.popper,{"data-popper-reference-hidden":Y,"data-popper-escaped":U})}var O1={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:W8};function Y8(Q,J,Z){var G=_(Q),K=[h,v].indexOf(G)>=0?-1:1,q=typeof Z==="function"?Z(Object.assign({},J,{placement:Q})):Z,z=q[0],X=q[1];return z=z||0,X=(X||0)*K,[h,O].indexOf(G)>=0?{x:X,y:z}:{x:z,y:X}}function U8(Q){var{state:J,options:Z,name:G}=Q,K=Z.offset,q=K===void 0?[0,0]:K,z=EJ.reduce(function(Y,U){return Y[U]=Y8(U,J.rects,q),Y},{}),X=z[J.placement],H=X.x,W=X.y;if(J.modifiersData.popperOffsets!=null)J.modifiersData.popperOffsets.x+=H,J.modifiersData.popperOffsets.y+=W;J.modifiersData[G]=z}var w1={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:U8};function B8(Q){var{state:J,name:Z}=Q;J.modifiersData[Z]=WJ({reference:J.rects.reference,element:J.rects.popper,strategy:"absolute",placement:J.placement})}var E1={name:"popperOffsets",enabled:!0,phase:"read",fn:B8,data:{}};function CQ(Q){return Q==="x"?"y":"x"}function N8(Q){var{state:J,options:Z,name:G}=Q,K=Z.mainAxis,q=K===void 0?!0:K,z=Z.altAxis,X=z===void 0?!1:z,H=Z.boundary,W=Z.rootBoundary,Y=Z.altBoundary,U=Z.padding,N=Z.tether,B=N===void 0?!0:N,V=Z.tetherOffset,R=V===void 0?0:V,A=i(J,{boundary:H,rootBoundary:W,padding:U,altBoundary:Y}),j=_(J.placement),P=r(J.placement),b=!P,L=T0(j),I=CQ(L),T=J.modifiersData.popperOffsets,C=J.rects.reference,x=J.rects.popper,M=typeof R==="function"?R(Object.assign({},J.rects,{placement:J.placement})):R,S=typeof M==="number"?{mainAxis:M,altAxis:M}:Object.assign({mainAxis:0,altAxis:0},M),y=J.modifiersData.offset?J.modifiersData.offset[J.placement]:null,d={x:0,y:0};if(!T)return;if(q){var u,t=L==="y"?v:h,D=L==="y"?w:O,m=L==="y"?"height":"width",c=T[L],SJ=c+A[t],N0=c-A[D],jJ=B?-x[m]/2:0,WQ=P===e?C[m]:x[m],ZJ=P===e?-x[m]:-C[m],MJ=J.elements.arrow,h0=B&&MJ?I0(MJ):{width:0,height:0},K0=J.modifiersData["arrow#persistent"]?J.modifiersData["arrow#persistent"].padding:XJ(),GJ=K0[t],CJ=K0[D],F0=S0(0,C[m],h0[m]),YQ=b?C[m]/2-jJ-F0-GJ-S.mainAxis:WQ-F0-GJ-S.mainAxis,T7=b?-C[m]/2+jJ+F0+CJ+S.mainAxis:ZJ+F0+CJ+S.mainAxis,UQ=J.elements.arrow&&a(J.elements.arrow),S7=UQ?L==="y"?UQ.clientTop||0:UQ.clientLeft||0:0,X1=(u=y==null?void 0:y[L])!=null?u:0,j7=c+YQ-X1-S7,M7=c+T7-X1,z1=S0(B?V0(SJ,j7):SJ,c,B?n(N0,M7):N0);T[L]=z1,d[L]=z1-c}if(X){var H1,C7=L==="x"?v:h,x7=L==="x"?w:O,A0=T[I],xJ=I==="y"?"height":"width",W1=A0+A[C7],Y1=A0-A[x7],BQ=[v,h].indexOf(j)!==-1,U1=(H1=y==null?void 0:y[I])!=null?H1:0,B1=BQ?W1:A0-C[xJ]-x[xJ]-U1+S.altAxis,N1=BQ?A0+C[xJ]+x[xJ]-U1-S.altAxis:Y1,F1=B&&BQ?C1(B1,A0,N1):S0(B?B1:W1,A0,B?N1:Y1);T[I]=F1,d[I]=F1-A0}J.modifiersData[G]=d}var u1={name:"preventOverflow",enabled:!0,phase:"main",fn:N8,requiresIfExists:["offset"]};function xQ(Q){return{scrollLeft:Q.scrollLeft,scrollTop:Q.scrollTop}}function PQ(Q){if(Q===$(Q)||!E(Q))return j0(Q);else return xQ(Q)}function F8(Q){var J=Q.getBoundingClientRect(),Z=J0(J.width)/Q.offsetWidth||1,G=J0(J.height)/Q.offsetHeight||1;return Z!==1||G!==1}function bQ(Q,J,Z){if(Z===void 0)Z=!1;var G=E(J),K=E(J)&&F8(J),q=f(J),z=o(Q,K,Z),X={scrollLeft:0,scrollTop:0},H={x:0,y:0};if(G||!G&&!Z){if(k(J)!=="body"||C0(q))X=PQ(J);if(E(J))H=o(J,!0),H.x+=J.clientLeft,H.y+=J.clientTop;else if(q)H.x=M0(q)}return{x:z.left+X.scrollLeft-H.x,y:z.top+X.scrollTop-H.y,width:z.width,height:z.height}}function A8(Q){var J=new Map,Z=new Set,G=[];Q.forEach(function(q){J.set(q.name,q)});function K(q){Z.add(q.name);var z=[].concat(q.requires||[],q.requiresIfExists||[]);z.forEach(function(X){if(!Z.has(X)){var H=J.get(X);if(H)K(H)}}),G.push(q)}return Q.forEach(function(q){if(!Z.has(q.name))K(q)}),G}function yQ(Q){var J=A8(Q);return S1.reduce(function(Z,G){return Z.concat(J.filter(function(K){return K.phase===G}))},[])}function $Q(Q){var J;return function(){if(!J)J=new Promise(function(Z){Promise.resolve().then(function(){J=void 0,Z(Q())})});return J}}function vQ(Q){var J=Q.reduce(function(Z,G){var K=Z[G.name];return Z[G.name]=K?Object.assign({},K,G,{options:Object.assign({},K.options,G.options),data:Object.assign({},K.data,G.data)}):G,Z},{});return Object.keys(J).map(function(Z){return J[Z]})}var k1={placement:"bottom",modifiers:[],strategy:"absolute"};function _1(){for(var Q=arguments.length,J=new Array(Q),Z=0;Z<Q;Z++)J[Z]=arguments[Z];return!J.some(function(G){return!(G&&typeof G.getBoundingClientRect==="function")})}function f1(Q){if(Q===void 0)Q={};var J=Q,Z=J.defaultModifiers,G=Z===void 0?[]:Z,K=J.defaultOptions,q=K===void 0?k1:K;return function z(X,H,W){if(W===void 0)W=q;var Y={placement:"bottom",orderedModifiers:[],options:Object.assign({},k1,q),modifiersData:{},elements:{reference:X,popper:H},attributes:{},styles:{}},U=[],N=!1,B={state:Y,setOptions:function A(j){var P=typeof j==="function"?j(Y.options):j;R(),Y.options=Object.assign({},q,Y.options,P),Y.scrollParents={reference:l(X)?X0(X):X.contextElement?X0(X.contextElement):[],popper:X0(H)};var b=yQ(vQ([].concat(G,Y.options.modifiers)));return Y.orderedModifiers=b.filter(function(L){return L.enabled}),V(),B.update()},forceUpdate:function A(){if(N)return;var j=Y.elements,P=j.reference,b=j.popper;if(!_1(P,b))return;Y.rects={reference:bQ(P,a(b),Y.options.strategy==="fixed"),popper:I0(b)},Y.reset=!1,Y.placement=Y.options.placement,Y.orderedModifiers.forEach(function(S){return Y.modifiersData[S.name]=Object.assign({},S.data)});for(var L=0;L<Y.orderedModifiers.length;L++){if(Y.reset===!0){Y.reset=!1,L=-1;continue}var I=Y.orderedModifiers[L],T=I.fn,C=I.options,x=C===void 0?{}:C,M=I.name;if(typeof T==="function")Y=T({state:Y,options:x,name:M,instance:B})||Y}},update:$Q(function(){return new Promise(function(A){B.forceUpdate(),A(Y)})}),destroy:function A(){R(),N=!0}};if(!_1(X,H))return B;B.setOptions(W).then(function(A){if(!N&&W.onFirstUpdate)W.onFirstUpdate(A)});function V(){Y.orderedModifiers.forEach(function(A){var{name:j,options:P}=A,b=P===void 0?{}:P,L=A.effect;if(typeof L==="function"){var I=L({state:Y,name:j,instance:B,options:b}),T=function C(){};U.push(I||T)}})}function R(){U.forEach(function(A){return A()}),U=[]}return B}}var R8=[y1,E1,b1,j1,w1,v1,u1,x1,O1],x0=f1({defaultModifiers:R8});var z0=function(){return z0=Object.assign||function(Q){for(var J,Z=1,G=arguments.length;Z<G;Z++){J=arguments[Z];for(var K in J)if(Object.prototype.hasOwnProperty.call(J,K))Q[K]=J[K]}return Q},z0.apply(this,arguments)},fJ=function(Q,J,Z){if(Z||arguments.length===2){for(var G=0,K=J.length,q;G<K;G++)if(q||!(G in J)){if(!q)q=Array.prototype.slice.call(J,0,G);q[G]=J[G]}}return Q.concat(q||Array.prototype.slice.call(J))},H0={placement:"bottom",triggerType:"click",offsetSkidding:0,offsetDistance:10,delay:300,ignoreClickOutsideClass:!1,onShow:function(){},onHide:function(){},onToggle:function(){}},L8={id:null,override:!0},DQ=function(){function Q(J,Z,G,K){if(J===void 0)J=null;if(Z===void 0)Z=null;if(G===void 0)G=H0;if(K===void 0)K=L8;this._instanceId=K.id?K.id:J.id,this._targetEl=J,this._triggerEl=Z,this._options=z0(z0({},H0),G),this._popperInstance=null,this._visible=!1,this._initialized=!1,this.init(),F.addInstance("Dropdown",this,this._instanceId,K.override)}return Q.prototype.init=function(){if(this._triggerEl&&this._targetEl&&!this._initialized)this._popperInstance=this._createPopperInstance(),this._setupEventListeners(),this._initialized=!0},Q.prototype.destroy=function(){var J=this,Z=this._getTriggerEvents();if(this._options.triggerType==="click")Z.showEvents.forEach(function(G){J._triggerEl.removeEventListener(G,J._clickHandler)});if(this._options.triggerType==="hover")Z.showEvents.forEach(function(G){J._triggerEl.removeEventListener(G,J._hoverShowTriggerElHandler),J._targetEl.removeEventListener(G,J._hoverShowTargetElHandler)}),Z.hideEvents.forEach(function(G){J._triggerEl.removeEventListener(G,J._hoverHideHandler),J._targetEl.removeEventListener(G,J._hoverHideHandler)});this._popperInstance.destroy(),this._initialized=!1},Q.prototype.removeInstance=function(){F.removeInstance("Dropdown",this._instanceId)},Q.prototype.destroyAndRemoveInstance=function(){this.destroy(),this.removeInstance()},Q.prototype._setupEventListeners=function(){var J=this,Z=this._getTriggerEvents();if(this._clickHandler=function(){J.toggle()},this._options.triggerType==="click")Z.showEvents.forEach(function(G){J._triggerEl.addEventListener(G,J._clickHandler)});if(this._hoverShowTriggerElHandler=function(G){if(G.type==="click")J.toggle();else setTimeout(function(){J.show()},J._options.delay)},this._hoverShowTargetElHandler=function(){J.show()},this._hoverHideHandler=function(){setTimeout(function(){if(!J._targetEl.matches(":hover"))J.hide()},J._options.delay)},this._options.triggerType==="hover")Z.showEvents.forEach(function(G){J._triggerEl.addEventListener(G,J._hoverShowTriggerElHandler),J._targetEl.addEventListener(G,J._hoverShowTargetElHandler)}),Z.hideEvents.forEach(function(G){J._triggerEl.addEventListener(G,J._hoverHideHandler),J._targetEl.addEventListener(G,J._hoverHideHandler)})},Q.prototype._createPopperInstance=function(){return x0(this._triggerEl,this._targetEl,{placement:this._options.placement,modifiers:[{name:"offset",options:{offset:[this._options.offsetSkidding,this._options.offsetDistance]}}]})},Q.prototype._setupClickOutsideListener=function(){var J=this;this._clickOutsideEventListener=function(Z){J._handleClickOutside(Z,J._targetEl)},document.body.addEventListener("click",this._clickOutsideEventListener,!0)},Q.prototype._removeClickOutsideListener=function(){document.body.removeEventListener("click",this._clickOutsideEventListener,!0)},Q.prototype._handleClickOutside=function(J,Z){var G=J.target,K=this._options.ignoreClickOutsideClass,q=!1;if(K){var z=document.querySelectorAll(".".concat(K));z.forEach(function(X){if(X.contains(G)){q=!0;return}})}if(G!==Z&&!Z.contains(G)&&!this._triggerEl.contains(G)&&!q&&this.isVisible())this.hide()},Q.prototype._getTriggerEvents=function(){switch(this._options.triggerType){case"hover":return{showEvents:["mouseenter","click"],hideEvents:["mouseleave"]};case"click":return{showEvents:["click"],hideEvents:[]};case"none":return{showEvents:[],hideEvents:[]};default:return{showEvents:["click"],hideEvents:[]}}},Q.prototype.toggle=function(){if(this.isVisible())this.hide();else this.show();this._options.onToggle(this)},Q.prototype.isVisible=function(){return this._visible},Q.prototype.show=function(){this._targetEl.classList.remove("hidden"),this._targetEl.classList.add("block"),this._targetEl.removeAttribute("aria-hidden"),this._popperInstance.setOptions(function(J){return z0(z0({},J),{modifiers:fJ(fJ([],J.modifiers,!0),[{name:"eventListeners",enabled:!0}],!1)})}),this._setupClickOutsideListener(),this._popperInstance.update(),this._visible=!0,this._options.onShow(this)},Q.prototype.hide=function(){this._targetEl.classList.remove("block"),this._targetEl.classList.add("hidden"),this._targetEl.setAttribute("aria-hidden","true"),this._popperInstance.setOptions(function(J){return z0(z0({},J),{modifiers:fJ(fJ([],J.modifiers,!0),[{name:"eventListeners",enabled:!1}],!1)})}),this._visible=!1,this._removeClickOutsideListener(),this._options.onHide(this)},Q.prototype.updateOnShow=function(J){this._options.onShow=J},Q.prototype.updateOnHide=function(J){this._options.onHide=J},Q.prototype.updateOnToggle=function(J){this._options.onToggle=J},Q}();function d0(){document.querySelectorAll("[data-dropdown-toggle]").forEach(function(Q){var J=Q.getAttribute("data-dropdown-toggle"),Z=document.getElementById(J);if(Z){var G=Q.getAttribute("data-dropdown-placement"),K=Q.getAttribute("data-dropdown-offset-skidding"),q=Q.getAttribute("data-dropdown-offset-distance"),z=Q.getAttribute("data-dropdown-trigger"),X=Q.getAttribute("data-dropdown-delay"),H=Q.getAttribute("data-dropdown-ignore-click-outside-class");new DQ(Z,Q,{placement:G?G:H0.placement,triggerType:z?z:H0.triggerType,offsetSkidding:K?parseInt(K):H0.offsetSkidding,offsetDistance:q?parseInt(q):H0.offsetDistance,delay:X?parseInt(X):H0.delay,ignoreClickOutsideClass:H?H:H0.ignoreClickOutsideClass})}else console.error('The dropdown element with id "'.concat(J,'" does not exist. Please check the data-dropdown-toggle attribute.'))})}if(typeof window!=="undefined")window.Dropdown=DQ,window.initDropdowns=d0;var V8=DQ;var mJ=function(){return mJ=Object.assign||function(Q){for(var J,Z=1,G=arguments.length;Z<G;Z++){J=arguments[Z];for(var K in J)if(Object.prototype.hasOwnProperty.call(J,K))Q[K]=J[K]}return Q},mJ.apply(this,arguments)},gJ={placement:"center",backdropClasses:"bg-gray-900/50 dark:bg-gray-900/80 fixed inset-0 z-40",backdrop:"dynamic",closable:!0,onHide:function(){},onShow:function(){},onToggle:function(){}},I8={id:null,override:!0},hQ=function(){function Q(J,Z,G){if(J===void 0)J=null;if(Z===void 0)Z=gJ;if(G===void 0)G=I8;this._eventListenerInstances=[],this._instanceId=G.id?G.id:J.id,this._targetEl=J,this._options=mJ(mJ({},gJ),Z),this._isHidden=!0,this._backdropEl=null,this._initialized=!1,this.init(),F.addInstance("Modal",this,this._instanceId,G.override)}return Q.prototype.init=function(){var J=this;if(this._targetEl&&!this._initialized)this._getPlacementClasses().map(function(Z){J._targetEl.classList.add(Z)}),this._initialized=!0},Q.prototype.destroy=function(){if(this._initialized)this.removeAllEventListenerInstances(),this._destroyBackdropEl(),this._initialized=!1},Q.prototype.removeInstance=function(){F.removeInstance("Modal",this._instanceId)},Q.prototype.destroyAndRemoveInstance=function(){this.destroy(),this.removeInstance()},Q.prototype._createBackdrop=function(){var J;if(this._isHidden){var Z=document.createElement("div");(J=Z.classList).add.apply(J,this._options.backdropClasses.split(" ")),document.querySelector("body").append(Z),this._backdropEl=Z}},Q.prototype._destroyBackdropEl=function(){if(!this._isHidden&&this._backdropEl)this._backdropEl.remove(),this._backdropEl=null},Q.prototype._setupModalCloseEventListeners=function(){var J=this;if(this._options.backdrop==="dynamic")this._clickOutsideEventListener=function(Z){J._handleOutsideClick(Z.target)},this._targetEl.addEventListener("click",this._clickOutsideEventListener,!0);this._keydownEventListener=function(Z){if(Z.key==="Escape")J.hide()},document.body.addEventListener("keydown",this._keydownEventListener,!0)},Q.prototype._removeModalCloseEventListeners=function(){if(this._options.backdrop==="dynamic")this._targetEl.removeEventListener("click",this._clickOutsideEventListener,!0);document.body.removeEventListener("keydown",this._keydownEventListener,!0)},Q.prototype._handleOutsideClick=function(J){if(J===this._targetEl||J===this._backdropEl&&this.isVisible())this.hide()},Q.prototype._getPlacementClasses=function(){switch(this._options.placement){case"top-left":return["justify-start","items-start"];case"top-center":return["justify-center","items-start"];case"top-right":return["justify-end","items-start"];case"center-left":return["justify-start","items-center"];case"center":return["justify-center","items-center"];case"center-right":return["justify-end","items-center"];case"bottom-left":return["justify-start","items-end"];case"bottom-center":return["justify-center","items-end"];case"bottom-right":return["justify-end","items-end"];default:return["justify-center","items-center"]}},Q.prototype.toggle=function(){if(this._isHidden)this.show();else this.hide();this._options.onToggle(this)},Q.prototype.show=function(){if(this.isHidden){if(this._targetEl.classList.add("flex"),this._targetEl.classList.remove("hidden"),this._targetEl.setAttribute("aria-modal","true"),this._targetEl.setAttribute("role","dialog"),this._targetEl.removeAttribute("aria-hidden"),this._createBackdrop(),this._isHidden=!1,this._options.closable)this._setupModalCloseEventListeners();document.body.classList.add("overflow-hidden"),this._options.onShow(this)}},Q.prototype.hide=function(){if(this.isVisible){if(this._targetEl.classList.add("hidden"),this._targetEl.classList.remove("flex"),this._targetEl.setAttribute("aria-hidden","true"),this._targetEl.removeAttribute("aria-modal"),this._targetEl.removeAttribute("role"),this._destroyBackdropEl(),this._isHidden=!0,document.body.classList.remove("overflow-hidden"),this._options.closable)this._removeModalCloseEventListeners();this._options.onHide(this)}},Q.prototype.isVisible=function(){return!this._isHidden},Q.prototype.isHidden=function(){return this._isHidden},Q.prototype.addEventListenerInstance=function(J,Z,G){this._eventListenerInstances.push({element:J,type:Z,handler:G})},Q.prototype.removeAllEventListenerInstances=function(){this._eventListenerInstances.map(function(J){J.element.removeEventListener(J.type,J.handler)}),this._eventListenerInstances=[]},Q.prototype.getAllEventListenerInstances=function(){return this._eventListenerInstances},Q.prototype.updateOnShow=function(J){this._options.onShow=J},Q.prototype.updateOnHide=function(J){this._options.onHide=J},Q.prototype.updateOnToggle=function(J){this._options.onToggle=J},Q}();function c0(){document.querySelectorAll("[data-modal-target]").forEach(function(Q){var J=Q.getAttribute("data-modal-target"),Z=document.getElementById(J);if(Z){var G=Z.getAttribute("data-modal-placement"),K=Z.getAttribute("data-modal-backdrop");new hQ(Z,{placement:G?G:gJ.placement,backdrop:K?K:gJ.backdrop})}else console.error("Modal with id ".concat(J," does not exist. Are you sure that the data-modal-target attribute points to the correct modal id?."))}),document.querySelectorAll("[data-modal-toggle]").forEach(function(Q){var J=Q.getAttribute("data-modal-toggle"),Z=document.getElementById(J);if(Z){var G=F.getInstance("Modal",J);if(G){var K=function(){G.toggle()};Q.addEventListener("click",K),G.addEventListenerInstance(Q,"click",K)}else console.error("Modal with id ".concat(J," has not been initialized. Please initialize it using the data-modal-target attribute."))}else console.error("Modal with id ".concat(J," does not exist. Are you sure that the data-modal-toggle attribute points to the correct modal id?"))}),document.querySelectorAll("[data-modal-show]").forEach(function(Q){var J=Q.getAttribute("data-modal-show"),Z=document.getElementById(J);if(Z){var G=F.getInstance("Modal",J);if(G){var K=function(){G.show()};Q.addEventListener("click",K),G.addEventListenerInstance(Q,"click",K)}else console.error("Modal with id ".concat(J," has not been initialized. Please initialize it using the data-modal-target attribute."))}else console.error("Modal with id ".concat(J," does not exist. Are you sure that the data-modal-show attribute points to the correct modal id?"))}),document.querySelectorAll("[data-modal-hide]").forEach(function(Q){var J=Q.getAttribute("data-modal-hide"),Z=document.getElementById(J);if(Z){var G=F.getInstance("Modal",J);if(G){var K=function(){G.hide()};Q.addEventListener("click",K),G.addEventListenerInstance(Q,"click",K)}else console.error("Modal with id ".concat(J," has not been initialized. Please initialize it using the data-modal-target attribute."))}else console.error("Modal with id ".concat(J," does not exist. Are you sure that the data-modal-hide attribute points to the correct modal id?"))})}if(typeof window!=="undefined")window.Modal=hQ,window.initModals=c0;var T8=hQ;var dJ=function(){return dJ=Object.assign||function(Q){for(var J,Z=1,G=arguments.length;Z<G;Z++){J=arguments[Z];for(var K in J)if(Object.prototype.hasOwnProperty.call(J,K))Q[K]=J[K]}return Q},dJ.apply(this,arguments)},P0={placement:"left",bodyScrolling:!1,backdrop:!0,edge:!1,edgeOffset:"bottom-[60px]",backdropClasses:"bg-gray-900/50 dark:bg-gray-900/80 fixed inset-0 z-30",onShow:function(){},onHide:function(){},onToggle:function(){}},S8={id:null,override:!0},OQ=function(){function Q(J,Z,G){if(J===void 0)J=null;if(Z===void 0)Z=P0;if(G===void 0)G=S8;this._eventListenerInstances=[],this._instanceId=G.id?G.id:J.id,this._targetEl=J,this._options=dJ(dJ({},P0),Z),this._visible=!1,this._initialized=!1,this.init(),F.addInstance("Drawer",this,this._instanceId,G.override)}return Q.prototype.init=function(){var J=this;if(this._targetEl&&!this._initialized)this._targetEl.setAttribute("aria-hidden","true"),this._targetEl.classList.add("transition-transform"),this._getPlacementClasses(this._options.placement).base.map(function(Z){J._targetEl.classList.add(Z)}),this._handleEscapeKey=function(Z){if(Z.key==="Escape"){if(J.isVisible())J.hide()}},document.addEventListener("keydown",this._handleEscapeKey),this._initialized=!0},Q.prototype.destroy=function(){if(this._initialized)this.removeAllEventListenerInstances(),this._destroyBackdropEl(),document.removeEventListener("keydown",this._handleEscapeKey),this._initialized=!1},Q.prototype.removeInstance=function(){F.removeInstance("Drawer",this._instanceId)},Q.prototype.destroyAndRemoveInstance=function(){this.destroy(),this.removeInstance()},Q.prototype.hide=function(){var J=this;if(this._options.edge)this._getPlacementClasses(this._options.placement+"-edge").active.map(function(Z){J._targetEl.classList.remove(Z)}),this._getPlacementClasses(this._options.placement+"-edge").inactive.map(function(Z){J._targetEl.classList.add(Z)});else this._getPlacementClasses(this._options.placement).active.map(function(Z){J._targetEl.classList.remove(Z)}),this._getPlacementClasses(this._options.placement).inactive.map(function(Z){J._targetEl.classList.add(Z)});if(this._targetEl.setAttribute("aria-hidden","true"),this._targetEl.removeAttribute("aria-modal"),this._targetEl.removeAttribute("role"),!this._options.bodyScrolling)document.body.classList.remove("overflow-hidden");if(this._options.backdrop)this._destroyBackdropEl();this._visible=!1,this._options.onHide(this)},Q.prototype.show=function(){var J=this;if(this._options.edge)this._getPlacementClasses(this._options.placement+"-edge").active.map(function(Z){J._targetEl.classList.add(Z)}),this._getPlacementClasses(this._options.placement+"-edge").inactive.map(function(Z){J._targetEl.classList.remove(Z)});else this._getPlacementClasses(this._options.placement).active.map(function(Z){J._targetEl.classList.add(Z)}),this._getPlacementClasses(this._options.placement).inactive.map(function(Z){J._targetEl.classList.remove(Z)});if(this._targetEl.setAttribute("aria-modal","true"),this._targetEl.setAttribute("role","dialog"),this._targetEl.removeAttribute("aria-hidden"),!this._options.bodyScrolling)document.body.classList.add("overflow-hidden");if(this._options.backdrop)this._createBackdrop();this._visible=!0,this._options.onShow(this)},Q.prototype.toggle=function(){if(this.isVisible())this.hide();else this.show()},Q.prototype._createBackdrop=function(){var J,Z=this;if(!this._visible){var G=document.createElement("div");G.setAttribute("drawer-backdrop",""),(J=G.classList).add.apply(J,this._options.backdropClasses.split(" ")),document.querySelector("body").append(G),G.addEventListener("click",function(){Z.hide()})}},Q.prototype._destroyBackdropEl=function(){if(this._visible&&document.querySelector("[drawer-backdrop]")!==null)document.querySelector("[drawer-backdrop]").remove()},Q.prototype._getPlacementClasses=function(J){switch(J){case"top":return{base:["top-0","left-0","right-0"],active:["transform-none"],inactive:["-translate-y-full"]};case"right":return{base:["right-0","top-0"],active:["transform-none"],inactive:["translate-x-full"]};case"bottom":return{base:["bottom-0","left-0","right-0"],active:["transform-none"],inactive:["translate-y-full"]};case"left":return{base:["left-0","top-0"],active:["transform-none"],inactive:["-translate-x-full"]};case"bottom-edge":return{base:["left-0","top-0"],active:["transform-none"],inactive:["translate-y-full",this._options.edgeOffset]};default:return{base:["left-0","top-0"],active:["transform-none"],inactive:["-translate-x-full"]}}},Q.prototype.isHidden=function(){return!this._visible},Q.prototype.isVisible=function(){return this._visible},Q.prototype.addEventListenerInstance=function(J,Z,G){this._eventListenerInstances.push({element:J,type:Z,handler:G})},Q.prototype.removeAllEventListenerInstances=function(){this._eventListenerInstances.map(function(J){J.element.removeEventListener(J.type,J.handler)}),this._eventListenerInstances=[]},Q.prototype.getAllEventListenerInstances=function(){return this._eventListenerInstances},Q.prototype.updateOnShow=function(J){this._options.onShow=J},Q.prototype.updateOnHide=function(J){this._options.onHide=J},Q.prototype.updateOnToggle=function(J){this._options.onToggle=J},Q}();function p0(){document.querySelectorAll("[data-drawer-target]").forEach(function(Q){var J=Q.getAttribute("data-drawer-target"),Z=document.getElementById(J);if(Z){var G=Q.getAttribute("data-drawer-placement"),K=Q.getAttribute("data-drawer-body-scrolling"),q=Q.getAttribute("data-drawer-backdrop"),z=Q.getAttribute("data-drawer-edge"),X=Q.getAttribute("data-drawer-edge-offset");new OQ(Z,{placement:G?G:P0.placement,bodyScrolling:K?K==="true"?!0:!1:P0.bodyScrolling,backdrop:q?q==="true"?!0:!1:P0.backdrop,edge:z?z==="true"?!0:!1:P0.edge,edgeOffset:X?X:P0.edgeOffset})}else console.error("Drawer with id ".concat(J," not found. Are you sure that the data-drawer-target attribute points to the correct drawer id?"))}),document.querySelectorAll("[data-drawer-toggle]").forEach(function(Q){var J=Q.getAttribute("data-drawer-toggle"),Z=document.getElementById(J);if(Z){var G=F.getInstance("Drawer",J);if(G){var K=function(){G.toggle()};Q.addEventListener("click",K),G.addEventListenerInstance(Q,"click",K)}else console.error("Drawer with id ".concat(J," has not been initialized. Please initialize it using the data-drawer-target attribute."))}else console.error("Drawer with id ".concat(J," not found. Are you sure that the data-drawer-target attribute points to the correct drawer id?"))}),document.querySelectorAll("[data-drawer-dismiss], [data-drawer-hide]").forEach(function(Q){var J=Q.getAttribute("data-drawer-dismiss")?Q.getAttribute("data-drawer-dismiss"):Q.getAttribute("data-drawer-hide"),Z=document.getElementById(J);if(Z){var G=F.getInstance("Drawer",J);if(G){var K=function(){G.hide()};Q.addEventListener("click",K),G.addEventListenerInstance(Q,"click",K)}else console.error("Drawer with id ".concat(J," has not been initialized. Please initialize it using the data-drawer-target attribute."))}else console.error("Drawer with id ".concat(J," not found. Are you sure that the data-drawer-target attribute points to the correct drawer id"))}),document.querySelectorAll("[data-drawer-show]").forEach(function(Q){var J=Q.getAttribute("data-drawer-show"),Z=document.getElementById(J);if(Z){var G=F.getInstance("Drawer",J);if(G){var K=function(){G.show()};Q.addEventListener("click",K),G.addEventListenerInstance(Q,"click",K)}else console.error("Drawer with id ".concat(J," has not been initialized. Please initialize it using the data-drawer-target attribute."))}else console.error("Drawer with id ".concat(J," not found. Are you sure that the data-drawer-target attribute points to the correct drawer id?"))})}if(typeof window!=="undefined")window.Drawer=OQ,window.initDrawers=p0;var j8=OQ;var cJ=function(){return cJ=Object.assign||function(Q){for(var J,Z=1,G=arguments.length;Z<G;Z++){J=arguments[Z];for(var K in J)if(Object.prototype.hasOwnProperty.call(J,K))Q[K]=J[K]}return Q},cJ.apply(this,arguments)},pJ={defaultTabId:null,activeClasses:"text-blue-600 hover:text-blue-600 dark:text-blue-500 dark:hover:text-blue-500 border-blue-600 dark:border-blue-500",inactiveClasses:"dark:border-transparent text-gray-500 hover:text-gray-600 dark:text-gray-400 border-gray-100 hover:border-gray-300 dark:border-gray-700 dark:hover:text-gray-300",onShow:function(){}},M8={id:null,override:!0},wQ=function(){function Q(J,Z,G,K){if(J===void 0)J=null;if(Z===void 0)Z=[];if(G===void 0)G=pJ;if(K===void 0)K=M8;this._instanceId=K.id?K.id:J.id,this._tabsEl=J,this._items=Z,this._activeTab=G?this.getTab(G.defaultTabId):null,this._options=cJ(cJ({},pJ),G),this._initialized=!1,this.init(),F.addInstance("Tabs",this,this._instanceId,K.override)}return Q.prototype.init=function(){var J=this;if(this._items.length&&!this._initialized){if(!this._activeTab)this.setActiveTab(this._items[0]);this.show(this._activeTab.id,!0),this._items.map(function(Z){Z.triggerEl.addEventListener("click",function(G){G.preventDefault(),J.show(Z.id)})})}},Q.prototype.destroy=function(){if(this._initialized)this._initialized=!1},Q.prototype.removeInstance=function(){this.destroy(),F.removeInstance("Tabs",this._instanceId)},Q.prototype.destroyAndRemoveInstance=function(){this.destroy(),this.removeInstance()},Q.prototype.getActiveTab=function(){return this._activeTab},Q.prototype.setActiveTab=function(J){this._activeTab=J},Q.prototype.getTab=function(J){return this._items.filter(function(Z){return Z.id===J})[0]},Q.prototype.show=function(J,Z){var G,K,q=this;if(Z===void 0)Z=!1;var z=this.getTab(J);if(z===this._activeTab&&!Z)return;this._items.map(function(X){var H,W;if(X!==z)(H=X.triggerEl.classList).remove.apply(H,q._options.activeClasses.split(" ")),(W=X.triggerEl.classList).add.apply(W,q._options.inactiveClasses.split(" ")),X.targetEl.classList.add("hidden"),X.triggerEl.setAttribute("aria-selected","false")}),(G=z.triggerEl.classList).add.apply(G,this._options.activeClasses.split(" ")),(K=z.triggerEl.classList).remove.apply(K,this._options.inactiveClasses.split(" ")),z.triggerEl.setAttribute("aria-selected","true"),z.targetEl.classList.remove("hidden"),this.setActiveTab(z),this._options.onShow(this,z)},Q.prototype.updateOnShow=function(J){this._options.onShow=J},Q}();function l0(){document.querySelectorAll("[data-tabs-toggle]").forEach(function(Q){var J=[],Z=Q.getAttribute("data-tabs-active-classes"),G=Q.getAttribute("data-tabs-inactive-classes"),K=null;Q.querySelectorAll('[role="tab"]').forEach(function(q){var z=q.getAttribute("aria-selected")==="true",X={id:q.getAttribute("data-tabs-target"),triggerEl:q,targetEl:document.querySelector(q.getAttribute("data-tabs-target"))};if(J.push(X),z)K=X.id}),new wQ(Q,J,{defaultTabId:K,activeClasses:Z?Z:pJ.activeClasses,inactiveClasses:G?G:pJ.inactiveClasses})})}if(typeof window!=="undefined")window.Tabs=wQ,window.initTabs=l0;var C8=wQ;var W0=function(){return W0=Object.assign||function(Q){for(var J,Z=1,G=arguments.length;Z<G;Z++){J=arguments[Z];for(var K in J)if(Object.prototype.hasOwnProperty.call(J,K))Q[K]=J[K]}return Q},W0.apply(this,arguments)},lJ=function(Q,J,Z){if(Z||arguments.length===2){for(var G=0,K=J.length,q;G<K;G++)if(q||!(G in J)){if(!q)q=Array.prototype.slice.call(J,0,G);q[G]=J[G]}}return Q.concat(q||Array.prototype.slice.call(J))},oJ={placement:"top",triggerType:"hover",onShow:function(){},onHide:function(){},onToggle:function(){}},x8={id:null,override:!0},EQ=function(){function Q(J,Z,G,K){if(J===void 0)J=null;if(Z===void 0)Z=null;if(G===void 0)G=oJ;if(K===void 0)K=x8;this._instanceId=K.id?K.id:J.id,this._targetEl=J,this._triggerEl=Z,this._options=W0(W0({},oJ),G),this._popperInstance=null,this._visible=!1,this._initialized=!1,this.init(),F.addInstance("Tooltip",this,this._instanceId,K.override)}return Q.prototype.init=function(){if(this._triggerEl&&this._targetEl&&!this._initialized)this._setupEventListeners(),this._popperInstance=this._createPopperInstance(),this._initialized=!0},Q.prototype.destroy=function(){var J=this;if(this._initialized){var Z=this._getTriggerEvents();if(Z.showEvents.forEach(function(G){J._triggerEl.removeEventListener(G,J._showHandler)}),Z.hideEvents.forEach(function(G){J._triggerEl.removeEventListener(G,J._hideHandler)}),this._removeKeydownListener(),this._removeClickOutsideListener(),this._popperInstance)this._popperInstance.destroy();this._initialized=!1}},Q.prototype.removeInstance=function(){F.removeInstance("Tooltip",this._instanceId)},Q.prototype.destroyAndRemoveInstance=function(){this.destroy(),this.removeInstance()},Q.prototype._setupEventListeners=function(){var J=this,Z=this._getTriggerEvents();this._showHandler=function(){J.show()},this._hideHandler=function(){J.hide()},Z.showEvents.forEach(function(G){J._triggerEl.addEventListener(G,J._showHandler)}),Z.hideEvents.forEach(function(G){J._triggerEl.addEventListener(G,J._hideHandler)})},Q.prototype._createPopperInstance=function(){return x0(this._triggerEl,this._targetEl,{placement:this._options.placement,modifiers:[{name:"offset",options:{offset:[0,8]}}]})},Q.prototype._getTriggerEvents=function(){switch(this._options.triggerType){case"hover":return{showEvents:["mouseenter","focus"],hideEvents:["mouseleave","blur"]};case"click":return{showEvents:["click","focus"],hideEvents:["focusout","blur"]};case"none":return{showEvents:[],hideEvents:[]};default:return{showEvents:["mouseenter","focus"],hideEvents:["mouseleave","blur"]}}},Q.prototype._setupKeydownListener=function(){var J=this;this._keydownEventListener=function(Z){if(Z.key==="Escape")J.hide()},document.body.addEventListener("keydown",this._keydownEventListener,!0)},Q.prototype._removeKeydownListener=function(){document.body.removeEventListener("keydown",this._keydownEventListener,!0)},Q.prototype._setupClickOutsideListener=function(){var J=this;this._clickOutsideEventListener=function(Z){J._handleClickOutside(Z,J._targetEl)},document.body.addEventListener("click",this._clickOutsideEventListener,!0)},Q.prototype._removeClickOutsideListener=function(){document.body.removeEventListener("click",this._clickOutsideEventListener,!0)},Q.prototype._handleClickOutside=function(J,Z){var G=J.target;if(G!==Z&&!Z.contains(G)&&!this._triggerEl.contains(G)&&this.isVisible())this.hide()},Q.prototype.isVisible=function(){return this._visible},Q.prototype.toggle=function(){if(this.isVisible())this.hide();else this.show()},Q.prototype.show=function(){this._targetEl.classList.remove("opacity-0","invisible"),this._targetEl.classList.add("opacity-100","visible"),this._popperInstance.setOptions(function(J){return W0(W0({},J),{modifiers:lJ(lJ([],J.modifiers,!0),[{name:"eventListeners",enabled:!0}],!1)})}),this._setupClickOutsideListener(),this._setupKeydownListener(),this._popperInstance.update(),this._visible=!0,this._options.onShow(this)},Q.prototype.hide=function(){this._targetEl.classList.remove("opacity-100","visible"),this._targetEl.classList.add("opacity-0","invisible"),this._popperInstance.setOptions(function(J){return W0(W0({},J),{modifiers:lJ(lJ([],J.modifiers,!0),[{name:"eventListeners",enabled:!1}],!1)})}),this._removeClickOutsideListener(),this._removeKeydownListener(),this._visible=!1,this._options.onHide(this)},Q.prototype.updateOnShow=function(J){this._options.onShow=J},Q.prototype.updateOnHide=function(J){this._options.onHide=J},Q.prototype.updateOnToggle=function(J){this._options.onToggle=J},Q}();function o0(){document.querySelectorAll("[data-tooltip-target]").forEach(function(Q){var J=Q.getAttribute("data-tooltip-target"),Z=document.getElementById(J);if(Z){var G=Q.getAttribute("data-tooltip-trigger"),K=Q.getAttribute("data-tooltip-placement");new EQ(Z,Q,{placement:K?K:oJ.placement,triggerType:G?G:oJ.triggerType})}else console.error('The tooltip element with id "'.concat(J,'" does not exist. Please check the data-tooltip-target attribute.'))})}if(typeof window!=="undefined")window.Tooltip=EQ,window.initTooltips=o0;var P8=EQ;var Y0=function(){return Y0=Object.assign||function(Q){for(var J,Z=1,G=arguments.length;Z<G;Z++){J=arguments[Z];for(var K in J)if(Object.prototype.hasOwnProperty.call(J,K))Q[K]=J[K]}return Q},Y0.apply(this,arguments)},rJ=function(Q,J,Z){if(Z||arguments.length===2){for(var G=0,K=J.length,q;G<K;G++)if(q||!(G in J)){if(!q)q=Array.prototype.slice.call(J,0,G);q[G]=J[G]}}return Q.concat(q||Array.prototype.slice.call(J))},YJ={placement:"top",offset:10,triggerType:"hover",onShow:function(){},onHide:function(){},onToggle:function(){}},b8={id:null,override:!0},uQ=function(){function Q(J,Z,G,K){if(J===void 0)J=null;if(Z===void 0)Z=null;if(G===void 0)G=YJ;if(K===void 0)K=b8;this._instanceId=K.id?K.id:J.id,this._targetEl=J,this._triggerEl=Z,this._options=Y0(Y0({},YJ),G),this._popperInstance=null,this._visible=!1,this._initialized=!1,this.init(),F.addInstance("Popover",this,K.id?K.id:this._targetEl.id,K.override)}return Q.prototype.init=function(){if(this._triggerEl&&this._targetEl&&!this._initialized)this._setupEventListeners(),this._popperInstance=this._createPopperInstance(),this._initialized=!0},Q.prototype.destroy=function(){var J=this;if(this._initialized){var Z=this._getTriggerEvents();if(Z.showEvents.forEach(function(G){J._triggerEl.removeEventListener(G,J._showHandler),J._targetEl.removeEventListener(G,J._showHandler)}),Z.hideEvents.forEach(function(G){J._triggerEl.removeEventListener(G,J._hideHandler),J._targetEl.removeEventListener(G,J._hideHandler)}),this._removeKeydownListener(),this._removeClickOutsideListener(),this._popperInstance)this._popperInstance.destroy();this._initialized=!1}},Q.prototype.removeInstance=function(){F.removeInstance("Popover",this._instanceId)},Q.prototype.destroyAndRemoveInstance=function(){this.destroy(),this.removeInstance()},Q.prototype._setupEventListeners=function(){var J=this,Z=this._getTriggerEvents();this._showHandler=function(){J.show()},this._hideHandler=function(){setTimeout(function(){if(!J._targetEl.matches(":hover"))J.hide()},100)},Z.showEvents.forEach(function(G){J._triggerEl.addEventListener(G,J._showHandler),J._targetEl.addEventListener(G,J._showHandler)}),Z.hideEvents.forEach(function(G){J._triggerEl.addEventListener(G,J._hideHandler),J._targetEl.addEventListener(G,J._hideHandler)})},Q.prototype._createPopperInstance=function(){return x0(this._triggerEl,this._targetEl,{placement:this._options.placement,modifiers:[{name:"offset",options:{offset:[0,this._options.offset]}}]})},Q.prototype._getTriggerEvents=function(){switch(this._options.triggerType){case"hover":return{showEvents:["mouseenter","focus"],hideEvents:["mouseleave","blur"]};case"click":return{showEvents:["click","focus"],hideEvents:["focusout","blur"]};case"none":return{showEvents:[],hideEvents:[]};default:return{showEvents:["mouseenter","focus"],hideEvents:["mouseleave","blur"]}}},Q.prototype._setupKeydownListener=function(){var J=this;this._keydownEventListener=function(Z){if(Z.key==="Escape")J.hide()},document.body.addEventListener("keydown",this._keydownEventListener,!0)},Q.prototype._removeKeydownListener=function(){document.body.removeEventListener("keydown",this._keydownEventListener,!0)},Q.prototype._setupClickOutsideListener=function(){var J=this;this._clickOutsideEventListener=function(Z){J._handleClickOutside(Z,J._targetEl)},document.body.addEventListener("click",this._clickOutsideEventListener,!0)},Q.prototype._removeClickOutsideListener=function(){document.body.removeEventListener("click",this._clickOutsideEventListener,!0)},Q.prototype._handleClickOutside=function(J,Z){var G=J.target;if(G!==Z&&!Z.contains(G)&&!this._triggerEl.contains(G)&&this.isVisible())this.hide()},Q.prototype.isVisible=function(){return this._visible},Q.prototype.toggle=function(){if(this.isVisible())this.hide();else this.show();this._options.onToggle(this)},Q.prototype.show=function(){this._targetEl.classList.remove("opacity-0","invisible"),this._targetEl.classList.add("opacity-100","visible"),this._popperInstance.setOptions(function(J){return Y0(Y0({},J),{modifiers:rJ(rJ([],J.modifiers,!0),[{name:"eventListeners",enabled:!0}],!1)})}),this._setupClickOutsideListener(),this._setupKeydownListener(),this._popperInstance.update(),this._visible=!0,this._options.onShow(this)},Q.prototype.hide=function(){this._targetEl.classList.remove("opacity-100","visible"),this._targetEl.classList.add("opacity-0","invisible"),this._popperInstance.setOptions(function(J){return Y0(Y0({},J),{modifiers:rJ(rJ([],J.modifiers,!0),[{name:"eventListeners",enabled:!1}],!1)})}),this._removeClickOutsideListener(),this._removeKeydownListener(),this._visible=!1,this._options.onHide(this)},Q.prototype.updateOnShow=function(J){this._options.onShow=J},Q.prototype.updateOnHide=function(J){this._options.onHide=J},Q.prototype.updateOnToggle=function(J){this._options.onToggle=J},Q}();function r0(){document.querySelectorAll("[data-popover-target]").forEach(function(Q){var J=Q.getAttribute("data-popover-target"),Z=document.getElementById(J);if(Z){var G=Q.getAttribute("data-popover-trigger"),K=Q.getAttribute("data-popover-placement"),q=Q.getAttribute("data-popover-offset");new uQ(Z,Q,{placement:K?K:YJ.placement,offset:q?parseInt(q):YJ.offset,triggerType:G?G:YJ.triggerType})}else console.error('The popover element with id "'.concat(J,'" does not exist. Please check the data-popover-target attribute.'))})}if(typeof window!=="undefined")window.Popover=uQ,window.initPopovers=r0;var y8=uQ;var sJ=function(){return sJ=Object.assign||function(Q){for(var J,Z=1,G=arguments.length;Z<G;Z++){J=arguments[Z];for(var K in J)if(Object.prototype.hasOwnProperty.call(J,K))Q[K]=J[K]}return Q},sJ.apply(this,arguments)},kQ={triggerType:"hover",onShow:function(){},onHide:function(){},onToggle:function(){}},$8={id:null,override:!0},_Q=function(){function Q(J,Z,G,K,q){if(J===void 0)J=null;if(Z===void 0)Z=null;if(G===void 0)G=null;if(K===void 0)K=kQ;if(q===void 0)q=$8;this._instanceId=q.id?q.id:G.id,this._parentEl=J,this._triggerEl=Z,this._targetEl=G,this._options=sJ(sJ({},kQ),K),this._visible=!1,this._initialized=!1,this.init(),F.addInstance("Dial",this,this._instanceId,q.override)}return Q.prototype.init=function(){var J=this;if(this._triggerEl&&this._targetEl&&!this._initialized){var Z=this._getTriggerEventTypes(this._options.triggerType);this._showEventHandler=function(){J.show()},Z.showEvents.forEach(function(G){J._triggerEl.addEventListener(G,J._showEventHandler),J._targetEl.addEventListener(G,J._showEventHandler)}),this._hideEventHandler=function(){if(!J._parentEl.matches(":hover"))J.hide()},Z.hideEvents.forEach(function(G){J._parentEl.addEventListener(G,J._hideEventHandler)}),this._initialized=!0}},Q.prototype.destroy=function(){var J=this;if(this._initialized){var Z=this._getTriggerEventTypes(this._options.triggerType);Z.showEvents.forEach(function(G){J._triggerEl.removeEventListener(G,J._showEventHandler),J._targetEl.removeEventListener(G,J._showEventHandler)}),Z.hideEvents.forEach(function(G){J._parentEl.removeEventListener(G,J._hideEventHandler)}),this._initialized=!1}},Q.prototype.removeInstance=function(){F.removeInstance("Dial",this._instanceId)},Q.prototype.destroyAndRemoveInstance=function(){this.destroy(),this.removeInstance()},Q.prototype.hide=function(){if(this._targetEl.classList.add("hidden"),this._triggerEl)this._triggerEl.setAttribute("aria-expanded","false");this._visible=!1,this._options.onHide(this)},Q.prototype.show=function(){if(this._targetEl.classList.remove("hidden"),this._triggerEl)this._triggerEl.setAttribute("aria-expanded","true");this._visible=!0,this._options.onShow(this)},Q.prototype.toggle=function(){if(this._visible)this.hide();else this.show()},Q.prototype.isHidden=function(){return!this._visible},Q.prototype.isVisible=function(){return this._visible},Q.prototype._getTriggerEventTypes=function(J){switch(J){case"hover":return{showEvents:["mouseenter","focus"],hideEvents:["mouseleave","blur"]};case"click":return{showEvents:["click","focus"],hideEvents:["focusout","blur"]};case"none":return{showEvents:[],hideEvents:[]};default:return{showEvents:["mouseenter","focus"],hideEvents:["mouseleave","blur"]}}},Q.prototype.updateOnShow=function(J){this._options.onShow=J},Q.prototype.updateOnHide=function(J){this._options.onHide=J},Q.prototype.updateOnToggle=function(J){this._options.onToggle=J},Q}();function s0(){document.querySelectorAll("[data-dial-init]").forEach(function(Q){var J=Q.querySelector("[data-dial-toggle]");if(J){var Z=J.getAttribute("data-dial-toggle"),G=document.getElementById(Z);if(G){var K=J.getAttribute("data-dial-trigger");new _Q(Q,J,G,{triggerType:K?K:kQ.triggerType})}else console.error("Dial with id ".concat(Z," does not exist. Are you sure that the data-dial-toggle attribute points to the correct modal id?"))}else console.error("Dial with id ".concat(Q.id," does not have a trigger element. Are you sure that the data-dial-toggle attribute exists?"))})}if(typeof window!=="undefined")window.Dial=_Q,window.initDials=s0;var v8=_Q;var nJ=function(){return nJ=Object.assign||function(Q){for(var J,Z=1,G=arguments.length;Z<G;Z++){J=arguments[Z];for(var K in J)if(Object.prototype.hasOwnProperty.call(J,K))Q[K]=J[K]}return Q},nJ.apply(this,arguments)},m1={minValue:null,maxValue:null,onIncrement:function(){},onDecrement:function(){}},D8={id:null,override:!0},fQ=function(){function Q(J,Z,G,K,q){if(J===void 0)J=null;if(Z===void 0)Z=null;if(G===void 0)G=null;if(K===void 0)K=m1;if(q===void 0)q=D8;this._instanceId=q.id?q.id:J.id,this._targetEl=J,this._incrementEl=Z,this._decrementEl=G,this._options=nJ(nJ({},m1),K),this._initialized=!1,this.init(),F.addInstance("InputCounter",this,this._instanceId,q.override)}return Q.prototype.init=function(){var J=this;if(this._targetEl&&!this._initialized){if(this._inputHandler=function(Z){{var G=Z.target;if(!/^\d*$/.test(G.value))G.value=G.value.replace(/[^\d]/g,"");if(J._options.maxValue!==null&&parseInt(G.value)>J._options.maxValue)G.value=J._options.maxValue.toString();if(J._options.minValue!==null&&parseInt(G.value)<J._options.minValue)G.value=J._options.minValue.toString()}},this._incrementClickHandler=function(){J.increment()},this._decrementClickHandler=function(){J.decrement()},this._targetEl.addEventListener("input",this._inputHandler),this._incrementEl)this._incrementEl.addEventListener("click",this._incrementClickHandler);if(this._decrementEl)this._decrementEl.addEventListener("click",this._decrementClickHandler);this._initialized=!0}},Q.prototype.destroy=function(){if(this._targetEl&&this._initialized){if(this._targetEl.removeEventListener("input",this._inputHandler),this._incrementEl)this._incrementEl.removeEventListener("click",this._incrementClickHandler);if(this._decrementEl)this._decrementEl.removeEventListener("click",this._decrementClickHandler);this._initialized=!1}},Q.prototype.removeInstance=function(){F.removeInstance("InputCounter",this._instanceId)},Q.prototype.destroyAndRemoveInstance=function(){this.destroy(),this.removeInstance()},Q.prototype.getCurrentValue=function(){return parseInt(this._targetEl.value)||0},Q.prototype.increment=function(){if(this._options.maxValue!==null&&this.getCurrentValue()>=this._options.maxValue)return;this._targetEl.value=(this.getCurrentValue()+1).toString(),this._options.onIncrement(this)},Q.prototype.decrement=function(){if(this._options.minValue!==null&&this.getCurrentValue()<=this._options.minValue)return;this._targetEl.value=(this.getCurrentValue()-1).toString(),this._options.onDecrement(this)},Q.prototype.updateOnIncrement=function(J){this._options.onIncrement=J},Q.prototype.updateOnDecrement=function(J){this._options.onDecrement=J},Q}();function n0(){document.querySelectorAll("[data-input-counter]").forEach(function(Q){var J=Q.id,Z=document.querySelector('[data-input-counter-increment="'+J+'"]'),G=document.querySelector('[data-input-counter-decrement="'+J+'"]'),K=Q.getAttribute("data-input-counter-min"),q=Q.getAttribute("data-input-counter-max");if(Q){if(!F.instanceExists("InputCounter",Q.getAttribute("id")))new fQ(Q,Z?Z:null,G?G:null,{minValue:K?parseInt(K):null,maxValue:q?parseInt(q):null})}else console.error('The target element with id "'.concat(J,'" does not exist. Please check the data-input-counter attribute.'))})}if(typeof window!=="undefined")window.InputCounter=fQ,window.initInputCounters=n0;var h8=fQ;var aJ=function(){return aJ=Object.assign||function(Q){for(var J,Z=1,G=arguments.length;Z<G;Z++){J=arguments[Z];for(var K in J)if(Object.prototype.hasOwnProperty.call(J,K))Q[K]=J[K]}return Q},aJ.apply(this,arguments)},iJ={htmlEntities:!1,contentType:"input",onCopy:function(){}},O8={id:null,override:!0},mQ=function(){function Q(J,Z,G,K){if(J===void 0)J=null;if(Z===void 0)Z=null;if(G===void 0)G=iJ;if(K===void 0)K=O8;this._instanceId=K.id?K.id:Z.id,this._triggerEl=J,this._targetEl=Z,this._options=aJ(aJ({},iJ),G),this._initialized=!1,this.init(),F.addInstance("CopyClipboard",this,this._instanceId,K.override)}return Q.prototype.init=function(){var J=this;if(this._targetEl&&this._triggerEl&&!this._initialized){if(this._triggerElClickHandler=function(){J.copy()},this._triggerEl)this._triggerEl.addEventListener("click",this._triggerElClickHandler);this._initialized=!0}},Q.prototype.destroy=function(){if(this._triggerEl&&this._targetEl&&this._initialized){if(this._triggerEl)this._triggerEl.removeEventListener("click",this._triggerElClickHandler);this._initialized=!1}},Q.prototype.removeInstance=function(){F.removeInstance("CopyClipboard",this._instanceId)},Q.prototype.destroyAndRemoveInstance=function(){this.destroy(),this.removeInstance()},Q.prototype.getTargetValue=function(){if(this._options.contentType==="input")return this._targetEl.value;if(this._options.contentType==="innerHTML")return this._targetEl.innerHTML;if(this._options.contentType==="textContent")return this._targetEl.textContent.replace(/\s+/g," ").trim()},Q.prototype.copy=function(){var J=this.getTargetValue();if(this._options.htmlEntities)J=this.decodeHTML(J);var Z=document.createElement("textarea");return Z.value=J,document.body.appendChild(Z),Z.select(),document.execCommand("copy"),document.body.removeChild(Z),this._options.onCopy(this),J},Q.prototype.decodeHTML=function(J){var Z=document.createElement("textarea");return Z.innerHTML=J,Z.textContent},Q.prototype.updateOnCopyCallback=function(J){this._options.onCopy=J},Q}();function a0(){document.querySelectorAll("[data-copy-to-clipboard-target]").forEach(function(Q){var J=Q.getAttribute("data-copy-to-clipboard-target"),Z=document.getElementById(J),G=Q.getAttribute("data-copy-to-clipboard-content-type"),K=Q.getAttribute("data-copy-to-clipboard-html-entities");if(Z){if(!F.instanceExists("CopyClipboard",Z.getAttribute("id")))new mQ(Q,Z,{htmlEntities:K&&K==="true"?!0:iJ.htmlEntities,contentType:G?G:iJ.contentType})}else console.error('The target element with id "'.concat(J,'" does not exist. Please check the data-copy-to-clipboard-target attribute.'))})}if(typeof window!=="undefined")window.CopyClipboard=mQ,window.initClipboards=a0;var w8=mQ;function sQ(Q,J){(J==null||J>Q.length)&&(J=Q.length);for(var Z=0,G=Array(J);Z<J;Z++)G[Z]=Q[Z];return G}function E8(Q){if(Array.isArray(Q))return Q}function u8(Q){if(Array.isArray(Q))return sQ(Q)}function k8(Q){if(Q===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Q}function tQ(Q,J,Z){return J=B0(J),d8(Q,q7()?Reflect.construct(J,Z||[],B0(Q).constructor):J.apply(Q,Z))}function $0(Q,J){if(!(Q instanceof J))throw new TypeError("Cannot call a class as a function")}function g1(Q,J){for(var Z=0;Z<J.length;Z++){var G=J[Z];G.enumerable=G.enumerable||!1,G.configurable=!0,"value"in G&&(G.writable=!0),Object.defineProperty(Q,l8(G.key),G)}}function v0(Q,J,Z){return J&&g1(Q.prototype,J),Z&&g1(Q,Z),Object.defineProperty(Q,"prototype",{writable:!1}),Q}function AJ(){return AJ=typeof Reflect!="undefined"&&Reflect.get?Reflect.get.bind():function(Q,J,Z){var G=c8(Q,J);if(G){var K=Object.getOwnPropertyDescriptor(G,J);return K.get?K.get.call(arguments.length<3?Q:Z):K.value}},AJ.apply(null,arguments)}function B0(Q){return B0=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(J){return J.__proto__||Object.getPrototypeOf(J)},B0(Q)}function eQ(Q,J){if(typeof J!="function"&&J!==null)throw new TypeError("Super expression must either be null or a function");Q.prototype=Object.create(J&&J.prototype,{constructor:{value:Q,writable:!0,configurable:!0}}),Object.defineProperty(Q,"prototype",{writable:!1}),J&&nQ(Q,J)}function q7(){try{var Q=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(J){}return(q7=function(){return!!Q})()}function _8(Q){if(typeof Symbol!="undefined"&&Q[Symbol.iterator]!=null||Q["@@iterator"]!=null)return Array.from(Q)}function f8(Q,J){var Z=Q==null?null:typeof Symbol!="undefined"&&Q[Symbol.iterator]||Q["@@iterator"];if(Z!=null){var G,K,q,z,X=[],H=!0,W=!1;try{if(q=(Z=Z.call(Q)).next,J===0){if(Object(Z)!==Z)return;H=!1}else for(;!(H=(G=q.call(Z)).done)&&(X.push(G.value),X.length!==J);H=!0);}catch(Y){W=!0,K=Y}finally{try{if(!H&&Z.return!=null&&(z=Z.return(),Object(z)!==z))return}finally{if(W)throw K}}return X}}function m8(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
2
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function g8(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
3
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function d8(Q,J){if(J&&(typeof J=="object"||typeof J=="function"))return J;if(J!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return k8(Q)}function nQ(Q,J){return nQ=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(Z,G){return Z.__proto__=G,Z},nQ(Q,J)}function p(Q,J){return E8(Q)||f8(Q,J)||X7(Q,J)||m8()}function c8(Q,J){for(;!{}.hasOwnProperty.call(Q,J)&&(Q=B0(Q))!==null;);return Q}function VJ(Q){return u8(Q)||_8(Q)||X7(Q)||g8()}function p8(Q,J){if(typeof Q!="object"||!Q)return Q;var Z=Q[Symbol.toPrimitive];if(Z!==void 0){var G=Z.call(Q,J||"default");if(typeof G!="object")return G;throw new TypeError("@@toPrimitive must return a primitive value.")}return(J==="string"?String:Number)(Q)}function l8(Q){var J=p8(Q,"string");return typeof J=="symbol"?J:J+""}function JQ(Q){return JQ=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(J){return typeof J}:function(J){return J&&typeof Symbol=="function"&&J.constructor===Symbol&&J!==Symbol.prototype?"symbol":typeof J},JQ(Q)}function X7(Q,J){if(Q){if(typeof Q=="string")return sQ(Q,J);var Z={}.toString.call(Q).slice(8,-1);return Z==="Object"&&Q.constructor&&(Z=Q.constructor.name),Z==="Map"||Z==="Set"?Array.from(Q):Z==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Z)?sQ(Q,J):void 0}}function Z0(Q,J){return Object.prototype.hasOwnProperty.call(Q,J)}function J1(Q){return Q[Q.length-1]}function y0(Q){for(var J=arguments.length,Z=new Array(J>1?J-1:0),G=1;G<J;G++)Z[G-1]=arguments[G];return Z.forEach(function(K){if(Q.includes(K))return;Q.push(K)}),Q}function gQ(Q,J){return Q?Q.split(J):[]}function Q1(Q,J,Z){var G=J===void 0||Q>=J,K=Z===void 0||Q<=Z;return G&&K}function z7(Q,J,Z){if(Q<J)return J;if(Q>Z)return Z;return Q}function JJ(Q,J){var Z=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},G=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,K=arguments.length>4&&arguments[4]!==void 0?arguments[4]:"",q=Object.keys(Z).reduce(function(X,H){var W=Z[H];if(typeof W==="function")W=W(G);return"".concat(X," ").concat(H,'="').concat(W,'"')},Q);K+="<".concat(q,"></").concat(Q,">");var z=G+1;return z<J?JJ(Q,J,Z,z,K):K}function Z1(Q){return Q.replace(/>\s+/g,">").replace(/\s+</,"<")}function aQ(Q){return new Date(Q).setHours(0,0,0,0)}function D0(){return new Date().setHours(0,0,0,0)}function U0(){switch(arguments.length){case 0:return D0();case 1:return aQ(arguments.length<=0?void 0:arguments[0])}var Q=new Date(0);return Q.setFullYear.apply(Q,arguments),Q.setHours(0,0,0,0)}function i0(Q,J){var Z=new Date(Q);return Z.setDate(Z.getDate()+J)}function o8(Q,J){return i0(Q,J*7)}function QQ(Q,J){var Z=new Date(Q),G=Z.getMonth()+J,K=G%12;if(K<0)K+=12;var q=Z.setMonth(G);return Z.getMonth()!==K?Z.setDate(0):q}function t0(Q,J){var Z=new Date(Q),G=Z.getMonth(),K=Z.setFullYear(Z.getFullYear()+J);return G===1&&Z.getMonth()===2?Z.setDate(0):K}function d1(Q,J){return(Q-J+7)%7}function ZQ(Q,J){var Z=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,G=new Date(Q).getDay();return i0(Q,d1(J,Z)-d1(G,Z))}function r8(Q){var J=ZQ(Q,4,1),Z=ZQ(new Date(J).setMonth(0,4),4,1);return Math.round((J-Z)/604800000)+1}function b0(Q,J){var Z=new Date(Q).getFullYear();return Math.floor(Z/J)*J}var iQ=/dd?|DD?|mm?|MM?|yy?(?:yy)?/,s8=/[\s!-/:-@[-`{-~年月日]+/,dQ={},c1={y:function Q(J,Z){return new Date(J).setFullYear(parseInt(Z,10))},m:function Q(J,Z,G){var K=new Date(J),q=parseInt(Z,10)-1;if(isNaN(q)){if(!Z)return NaN;var z=Z.toLowerCase(),X=function H(W){return W.toLowerCase().startsWith(z)};if(q=G.monthsShort.findIndex(X),q<0)q=G.months.findIndex(X);if(q<0)return NaN}return K.setMonth(q),K.getMonth()!==H7(q)?K.setDate(0):K.getTime()},d:function Q(J,Z){return new Date(J).setDate(parseInt(Z,10))}},n8={d:function Q(J){return J.getDate()},dd:function Q(J){return tJ(J.getDate(),2)},D:function Q(J,Z){return Z.daysShort[J.getDay()]},DD:function Q(J,Z){return Z.days[J.getDay()]},m:function Q(J){return J.getMonth()+1},mm:function Q(J){return tJ(J.getMonth()+1,2)},M:function Q(J,Z){return Z.monthsShort[J.getMonth()]},MM:function Q(J,Z){return Z.months[J.getMonth()]},y:function Q(J){return J.getFullYear()},yy:function Q(J){return tJ(J.getFullYear(),2).slice(-2)},yyyy:function Q(J){return tJ(J.getFullYear(),4)}};function H7(Q){return Q>-1?Q%12:H7(Q+12)}function tJ(Q,J){return Q.toString().padStart(J,"0")}function W7(Q){if(typeof Q!=="string")throw new Error("Invalid date format.");if(Q in dQ)return dQ[Q];var J=Q.split(iQ),Z=Q.match(new RegExp(iQ,"g"));if(J.length===0||!Z)throw new Error("Invalid date format.");var G=Z.map(function(q){return n8[q]}),K=Object.keys(c1).reduce(function(q,z){var X=Z.find(function(H){return H[0]!=="D"&&H[0].toLowerCase()===z});if(X)q.push(z);return q},[]);return dQ[Q]={parser:function q(z,X){var H=z.split(s8).reduce(function(W,Y,U){if(Y.length>0&&Z[U]){var N=Z[U][0];if(N==="M")W.m=Y;else if(N!=="D")W[N]=Y}return W},{});return K.reduce(function(W,Y){var U=c1[Y](W,H[Y],X);return isNaN(U)?W:U},D0())},formatter:function q(z,X){var H=G.reduce(function(W,Y,U){return W+="".concat(J[U]).concat(Y(z,X))},"");return H+=J1(J)}}}function RJ(Q,J,Z){if(Q instanceof Date||typeof Q==="number"){var G=aQ(Q);return isNaN(G)?void 0:G}if(!Q)return;if(Q==="today")return D0();if(J&&J.toValue){var K=J.toValue(Q,J,Z);return isNaN(K)?void 0:aQ(K)}return W7(J).parser(Q,Z)}function LJ(Q,J,Z){if(isNaN(Q)||!Q&&Q!==0)return"";var G=typeof Q==="number"?new Date(Q):Q;if(J.toDisplay)return J.toDisplay(G,J,Z);return W7(J).formatter(G,Z)}var GQ=new WeakMap,Y7=EventTarget.prototype,p1=Y7.addEventListener,l1=Y7.removeEventListener;function G1(Q,J){var Z=GQ.get(Q);if(!Z)Z=[],GQ.set(Q,Z);J.forEach(function(G){p1.call.apply(p1,VJ(G)),Z.push(G)})}function U7(Q){var J=GQ.get(Q);if(!J)return;J.forEach(function(Z){l1.call.apply(l1,VJ(Z))}),GQ.delete(Q)}if(!Event.prototype.composedPath)o1=function Q(J){var Z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];Z.push(J);var G;if(J.parentNode)G=J.parentNode;else if(J.host)G=J.host;else if(J.defaultView)G=J.defaultView;return G?Q(G,Z):Z},Event.prototype.composedPath=function(){return o1(this.target)};var o1;function B7(Q,J,Z){var G=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,K=Q[G];if(J(K))return K;else if(K===Z||!K.parentElement)return;return B7(Q,J,Z,G+1)}function N7(Q,J){var Z=typeof J==="function"?J:function(G){return G.matches(J)};return B7(Q.composedPath(),Z,Q.currentTarget)}var UJ={en:{days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],daysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],daysMin:["Su","Mo","Tu","We","Th","Fr","Sa"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],today:"Today",clear:"Clear",titleFormat:"MM y"}},IJ={autohide:!1,beforeShowDay:null,beforeShowDecade:null,beforeShowMonth:null,beforeShowYear:null,calendarWeeks:!1,clearBtn:!1,dateDelimiter:",",datesDisabled:[],daysOfWeekDisabled:[],daysOfWeekHighlighted:[],defaultViewDate:void 0,disableTouchKeyboard:!1,format:"mm/dd/yyyy",language:"en",maxDate:null,maxNumberOfDates:1,maxView:3,minDate:null,nextArrow:'<svg class="w-4 h-4 rtl:rotate-180 text-gray-800 dark:text-white" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 14 10"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M1 5h12m0 0L9 1m4 4L9 9"/></svg>',orientation:"auto",pickLevel:0,prevArrow:'<svg class="w-4 h-4 rtl:rotate-180 text-gray-800 dark:text-white" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 14 10"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13 5H1m0 0 4 4M1 5l4-4"/></svg>',showDaysOfWeek:!0,showOnClick:!0,showOnFocus:!0,startView:0,title:"",todayBtn:!1,todayBtnMode:0,todayHighlight:!1,updateOnBlur:!0,weekStart:0},cQ=null;function G0(Q){if(cQ==null)cQ=document.createRange();return cQ.createContextualFragment(Q)}function NJ(Q){if(Q.style.display==="none")return;if(Q.style.display)Q.dataset.styleDisplay=Q.style.display;Q.style.display="none"}function FJ(Q){if(Q.style.display!=="none")return;if(Q.dataset.styleDisplay)Q.style.display=Q.dataset.styleDisplay,delete Q.dataset.styleDisplay;else Q.style.display=""}function KQ(Q){if(Q.firstChild)Q.removeChild(Q.firstChild),KQ(Q)}function a8(Q,J){if(KQ(Q),J instanceof DocumentFragment)Q.appendChild(J);else if(typeof J==="string")Q.appendChild(G0(J));else if(typeof J.forEach==="function")J.forEach(function(Z){Q.appendChild(Z)})}var{language:pQ,format:i8,weekStart:t8}=IJ;function r1(Q,J){return Q.length<6&&J>=0&&J<7?y0(Q,J):Q}function s1(Q){return(Q+6)%7}function n1(Q,J,Z,G){var K=RJ(Q,J,Z);return K!==void 0?K:G}function lQ(Q,J){var Z=arguments.length>2&&arguments[2]!==void 0?arguments[2]:3,G=parseInt(Q,10);return G>=0&&G<=Z?G:J}function oQ(Q,J){var Z=Object.assign({},Q),G={},K=J.constructor.locales,q=J.config||{},z=q.format,X=q.language,H=q.locale,W=q.maxDate,Y=q.maxView,U=q.minDate,N=q.pickLevel,B=q.startView,V=q.weekStart;if(Z.language){var R;if(Z.language!==X){if(K[Z.language])R=Z.language;else if(R=Z.language.split("-")[0],K[R]===void 0)R=!1}if(delete Z.language,R){X=G.language=R;var A=H||K[pQ];if(H=Object.assign({format:i8,weekStart:t8},K[pQ]),X!==pQ)Object.assign(H,K[X]);if(G.locale=H,z===A.format)z=G.format=H.format;if(V===A.weekStart)V=G.weekStart=H.weekStart,G.weekEnd=s1(H.weekStart)}}if(Z.format){var j=typeof Z.format.toDisplay==="function",P=typeof Z.format.toValue==="function",b=iQ.test(Z.format);if(j&&P||b)z=G.format=Z.format;delete Z.format}var L=U,I=W;if(Z.minDate!==void 0)L=Z.minDate===null?U0(0,0,1):n1(Z.minDate,z,H,L),delete Z.minDate;if(Z.maxDate!==void 0)I=Z.maxDate===null?void 0:n1(Z.maxDate,z,H,I),delete Z.maxDate;if(I<L)U=G.minDate=I,W=G.maxDate=L;else{if(U!==L)U=G.minDate=L;if(W!==I)W=G.maxDate=I}if(Z.datesDisabled)G.datesDisabled=Z.datesDisabled.reduce(function(D,m){var c=RJ(m,z,H);return c!==void 0?y0(D,c):D},[]),delete Z.datesDisabled;if(Z.defaultViewDate!==void 0){var T=RJ(Z.defaultViewDate,z,H);if(T!==void 0)G.defaultViewDate=T;delete Z.defaultViewDate}if(Z.weekStart!==void 0){var C=Number(Z.weekStart)%7;if(!isNaN(C))V=G.weekStart=C,G.weekEnd=s1(C);delete Z.weekStart}if(Z.daysOfWeekDisabled)G.daysOfWeekDisabled=Z.daysOfWeekDisabled.reduce(r1,[]),delete Z.daysOfWeekDisabled;if(Z.daysOfWeekHighlighted)G.daysOfWeekHighlighted=Z.daysOfWeekHighlighted.reduce(r1,[]),delete Z.daysOfWeekHighlighted;if(Z.maxNumberOfDates!==void 0){var x=parseInt(Z.maxNumberOfDates,10);if(x>=0)G.maxNumberOfDates=x,G.multidate=x!==1;delete Z.maxNumberOfDates}if(Z.dateDelimiter)G.dateDelimiter=String(Z.dateDelimiter),delete Z.dateDelimiter;var M=N;if(Z.pickLevel!==void 0)M=lQ(Z.pickLevel,2),delete Z.pickLevel;if(M!==N)N=G.pickLevel=M;var S=Y;if(Z.maxView!==void 0)S=lQ(Z.maxView,Y),delete Z.maxView;if(S=N>S?N:S,S!==Y)Y=G.maxView=S;var y=B;if(Z.startView!==void 0)y=lQ(Z.startView,y),delete Z.startView;if(y<N)y=N;else if(y>Y)y=Y;if(y!==B)G.startView=y;if(Z.prevArrow){var d=G0(Z.prevArrow);if(d.childNodes.length>0)G.prevArrow=d.childNodes;delete Z.prevArrow}if(Z.nextArrow){var u=G0(Z.nextArrow);if(u.childNodes.length>0)G.nextArrow=u.childNodes;delete Z.nextArrow}if(Z.disableTouchKeyboard!==void 0)G.disableTouchKeyboard="ontouchstart"in document&&!!Z.disableTouchKeyboard,delete Z.disableTouchKeyboard;if(Z.orientation){var t=Z.orientation.toLowerCase().split(/\s+/g);G.orientation={x:t.find(function(D){return D==="left"||D==="right"})||"auto",y:t.find(function(D){return D==="top"||D==="bottom"})||"auto"},delete Z.orientation}if(Z.todayBtnMode!==void 0){switch(Z.todayBtnMode){case 0:case 1:G.todayBtnMode=Z.todayBtnMode}delete Z.todayBtnMode}return Object.keys(Z).forEach(function(D){if(Z[D]!==void 0&&Z0(IJ,D))G[D]=Z[D]}),G}var e8=Z1(`<div class="datepicker hidden">
4
+ <div class="datepicker-picker inline-block rounded-lg bg-white dark:bg-gray-700 shadow-lg p-4">
5
+ <div class="datepicker-header">
6
+ <div class="datepicker-title bg-white dark:bg-gray-700 dark:text-white px-2 py-3 text-center font-semibold"></div>
7
+ <div class="datepicker-controls flex justify-between mb-2">
8
+ <button type="button" class="bg-white dark:bg-gray-700 rounded-lg text-gray-500 dark:text-white hover:bg-gray-100 dark:hover:bg-gray-600 hover:text-gray-900 dark:hover:text-white text-lg p-2.5 focus:outline-none focus:ring-2 focus:ring-gray-200 prev-btn"></button>
9
+ <button type="button" class="text-sm rounded-lg text-gray-900 dark:text-white bg-white dark:bg-gray-700 font-semibold py-2.5 px-5 hover:bg-gray-100 dark:hover:bg-gray-600 focus:outline-none focus:ring-2 focus:ring-gray-200 view-switch"></button>
10
+ <button type="button" class="bg-white dark:bg-gray-700 rounded-lg text-gray-500 dark:text-white hover:bg-gray-100 dark:hover:bg-gray-600 hover:text-gray-900 dark:hover:text-white text-lg p-2.5 focus:outline-none focus:ring-2 focus:ring-gray-200 next-btn"></button>
11
+ </div>
12
+ </div>
13
+ <div class="datepicker-main p-1"></div>
14
+ <div class="datepicker-footer">
15
+ <div class="datepicker-controls flex space-x-2 rtl:space-x-reverse mt-2">
16
+ <button type="button" class="%buttonClass% today-btn text-white bg-blue-700 !bg-primary-700 dark:bg-blue-600 dark:!bg-primary-600 hover:bg-blue-800 hover:!bg-primary-800 dark:hover:bg-blue-700 dark:hover:!bg-primary-700 focus:ring-4 focus:ring-blue-300 focus:!ring-primary-300 font-medium rounded-lg text-sm px-5 py-2 text-center w-1/2"></button>
17
+ <button type="button" class="%buttonClass% clear-btn text-gray-900 dark:text-white bg-white dark:bg-gray-700 border border-gray-300 dark:border-gray-600 hover:bg-gray-100 dark:hover:bg-gray-600 focus:ring-4 focus:ring-blue-300 focus:!ring-primary-300 font-medium rounded-lg text-sm px-5 py-2 text-center w-1/2"></button>
18
+ </div>
19
+ </div>
20
+ </div>
21
+ </div>`),J9=Z1(`<div class="days">
22
+ <div class="days-of-week grid grid-cols-7 mb-1">`.concat(JJ("span",7,{class:"dow block flex-1 leading-9 border-0 rounded-lg cursor-default text-center text-gray-900 font-semibold text-sm"}),`</div>
23
+ <div class="datepicker-grid w-64 grid grid-cols-7">`).concat(JJ("span",42,{class:"block flex-1 leading-9 border-0 rounded-lg cursor-default text-center text-gray-900 font-semibold text-sm h-6 leading-6 text-sm font-medium text-gray-500 dark:text-gray-400"}),`</div>
24
+ </div>`)),Q9=Z1(`<div class="calendar-weeks">
25
+ <div class="days-of-week flex"><span class="dow h-6 leading-6 text-sm font-medium text-gray-500 dark:text-gray-400"></span></div>
26
+ <div class="weeks">`.concat(JJ("span",6,{class:"week block flex-1 leading-9 border-0 rounded-lg cursor-default text-center text-gray-900 font-semibold text-sm"}),`</div>
27
+ </div>`)),K1=function(){function Q(J,Z){$0(this,Q),Object.assign(this,Z,{picker:J,element:G0('<div class="datepicker-view flex"></div>').firstChild,selected:[]}),this.init(this.picker.datepicker.config)}return v0(Q,[{key:"init",value:function J(Z){if(Z.pickLevel!==void 0)this.isMinView=this.id===Z.pickLevel;this.setOptions(Z),this.updateFocus(),this.updateSelection()}},{key:"performBeforeHook",value:function J(Z,G,K){var q=this.beforeShow(new Date(K));switch(JQ(q)){case"boolean":q={enabled:q};break;case"string":q={classes:q}}if(q){if(q.enabled===!1)Z.classList.add("disabled"),y0(this.disabled,G);if(q.classes){var z,X=q.classes.split(/\s+/);if((z=Z.classList).add.apply(z,VJ(X)),X.includes("disabled"))y0(this.disabled,G)}if(q.content)a8(Z,q.content)}}}])}(),Z9=function(Q){function J(Z){return $0(this,J),tQ(this,J,[Z,{id:0,name:"days",cellClass:"day"}])}return eQ(J,Q),v0(J,[{key:"init",value:function Z(G){var K=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(K){var q=G0(J9).firstChild;this.dow=q.firstChild,this.grid=q.lastChild,this.element.appendChild(q)}AJ(B0(J.prototype),"init",this).call(this,G)}},{key:"setOptions",value:function Z(G){var K=this,q;if(Z0(G,"minDate"))this.minDate=G.minDate;if(Z0(G,"maxDate"))this.maxDate=G.maxDate;if(G.datesDisabled)this.datesDisabled=G.datesDisabled;if(G.daysOfWeekDisabled)this.daysOfWeekDisabled=G.daysOfWeekDisabled,q=!0;if(G.daysOfWeekHighlighted)this.daysOfWeekHighlighted=G.daysOfWeekHighlighted;if(G.todayHighlight!==void 0)this.todayHighlight=G.todayHighlight;if(G.weekStart!==void 0)this.weekStart=G.weekStart,this.weekEnd=G.weekEnd,q=!0;if(G.locale){var z=this.locale=G.locale;this.dayNames=z.daysMin,this.switchLabelFormat=z.titleFormat,q=!0}if(G.beforeShowDay!==void 0)this.beforeShow=typeof G.beforeShowDay==="function"?G.beforeShowDay:void 0;if(G.calendarWeeks!==void 0){if(G.calendarWeeks&&!this.calendarWeeks){var X=G0(Q9).firstChild;this.calendarWeeks={element:X,dow:X.firstChild,weeks:X.lastChild},this.element.insertBefore(X,this.element.firstChild)}else if(this.calendarWeeks&&!G.calendarWeeks)this.element.removeChild(this.calendarWeeks.element),this.calendarWeeks=null}if(G.showDaysOfWeek!==void 0){if(G.showDaysOfWeek){if(FJ(this.dow),this.calendarWeeks)FJ(this.calendarWeeks.dow)}else if(NJ(this.dow),this.calendarWeeks)NJ(this.calendarWeeks.dow)}if(q)Array.from(this.dow.children).forEach(function(H,W){var Y=(K.weekStart+W)%7;H.textContent=K.dayNames[Y],H.className=K.daysOfWeekDisabled.includes(Y)?"dow disabled text-center h-6 leading-6 text-sm font-medium text-gray-500 dark:text-gray-400 cursor-not-allowed":"dow text-center h-6 leading-6 text-sm font-medium text-gray-500 dark:text-gray-400"})}},{key:"updateFocus",value:function Z(){var G=new Date(this.picker.viewDate),K=G.getFullYear(),q=G.getMonth(),z=U0(K,q,1),X=ZQ(z,this.weekStart,this.weekStart);this.first=z,this.last=U0(K,q+1,0),this.start=X,this.focused=this.picker.viewDate}},{key:"updateSelection",value:function Z(){var G=this.picker.datepicker,K=G.dates,q=G.rangepicker;if(this.selected=K,q)this.range=q.dates}},{key:"render",value:function Z(){var G=this;this.today=this.todayHighlight?D0():void 0,this.disabled=VJ(this.datesDisabled);var K=LJ(this.focused,this.switchLabelFormat,this.locale);if(this.picker.setViewSwitchLabel(K),this.picker.setPrevBtnDisabled(this.first<=this.minDate),this.picker.setNextBtnDisabled(this.last>=this.maxDate),this.calendarWeeks){var q=ZQ(this.first,1,1);Array.from(this.calendarWeeks.weeks.children).forEach(function(z,X){z.textContent=r8(o8(q,X))})}Array.from(this.grid.children).forEach(function(z,X){var H=z.classList,W=i0(G.start,X),Y=new Date(W),U=Y.getDay();if(z.className="datepicker-cell hover:bg-gray-100 dark:hover:bg-gray-600 block flex-1 leading-9 border-0 rounded-lg cursor-pointer text-center text-gray-900 dark:text-white font-semibold text-sm ".concat(G.cellClass),z.dataset.date=W,z.textContent=Y.getDate(),W<G.first)H.add("prev","text-gray-500","dark:text-white");else if(W>G.last)H.add("next","text-gray-500","dark:text-white");if(G.today===W)H.add("today","bg-gray-100","dark:bg-gray-600");if(W<G.minDate||W>G.maxDate||G.disabled.includes(W))H.add("disabled","cursor-not-allowed","text-gray-400","dark:text-gray-500"),H.remove("hover:bg-gray-100","dark:hover:bg-gray-600","text-gray-900","dark:text-white","cursor-pointer");if(G.daysOfWeekDisabled.includes(U))H.add("disabled","cursor-not-allowed","text-gray-400","dark:text-gray-500"),H.remove("hover:bg-gray-100","dark:hover:bg-gray-600","text-gray-900","dark:text-white","cursor-pointer"),y0(G.disabled,W);if(G.daysOfWeekHighlighted.includes(U))H.add("highlighted");if(G.range){var N=p(G.range,2),B=N[0],V=N[1];if(W>B&&W<V)H.add("range","bg-gray-200","dark:bg-gray-600"),H.remove("rounded-lg","rounded-l-lg","rounded-r-lg");if(W===B)H.add("range-start","bg-gray-100","dark:bg-gray-600","rounded-l-lg"),H.remove("rounded-lg","rounded-r-lg");if(W===V)H.add("range-end","bg-gray-100","dark:bg-gray-600","rounded-r-lg"),H.remove("rounded-lg","rounded-l-lg")}if(G.selected.includes(W))H.add("selected","bg-blue-700","!bg-primary-700","text-white","dark:bg-blue-600","dark:!bg-primary-600","dark:text-white"),H.remove("text-gray-900","text-gray-500","hover:bg-gray-100","dark:text-white","dark:hover:bg-gray-600","dark:bg-gray-600","bg-gray-100","bg-gray-200");if(W===G.focused)H.add("focused");if(G.beforeShow)G.performBeforeHook(z,W,W)})}},{key:"refresh",value:function Z(){var G=this,K=this.range||[],q=p(K,2),z=q[0],X=q[1];this.grid.querySelectorAll(".range, .range-start, .range-end, .selected, .focused").forEach(function(H){H.classList.remove("range","range-start","range-end","selected","bg-blue-700","!bg-primary-700","text-white","dark:bg-blue-600","dark:!bg-primary-600","dark:text-white","focused"),H.classList.add("text-gray-900","rounded-lg","dark:text-white")}),Array.from(this.grid.children).forEach(function(H){var W=Number(H.dataset.date),Y=H.classList;if(Y.remove("bg-gray-200","dark:bg-gray-600","rounded-l-lg","rounded-r-lg"),W>z&&W<X)Y.add("range","bg-gray-200","dark:bg-gray-600"),Y.remove("rounded-lg");if(W===z)Y.add("range-start","bg-gray-200","dark:bg-gray-600","rounded-l-lg"),Y.remove("rounded-lg");if(W===X)Y.add("range-end","bg-gray-200","dark:bg-gray-600","rounded-r-lg"),Y.remove("rounded-lg");if(G.selected.includes(W))Y.add("selected","bg-blue-700","!bg-primary-700","text-white","dark:bg-blue-600","dark:!bg-primary-600","dark:text-white"),Y.remove("text-gray-900","hover:bg-gray-100","dark:text-white","dark:hover:bg-gray-600","bg-gray-100","bg-gray-200","dark:bg-gray-600");if(W===G.focused)Y.add("focused")})}},{key:"refreshFocus",value:function Z(){var G=Math.round((this.focused-this.start)/86400000);this.grid.querySelectorAll(".focused").forEach(function(K){K.classList.remove("focused")}),this.grid.children[G].classList.add("focused")}}])}(K1);function a1(Q,J){if(!Q||!Q[0]||!Q[1])return;var Z=p(Q,2),G=p(Z[0],2),K=G[0],q=G[1],z=p(Z[1],2),X=z[0],H=z[1];if(K>J||X<J)return;return[K===J?q:-1,X===J?H:12]}var G9=function(Q){function J(Z){return $0(this,J),tQ(this,J,[Z,{id:1,name:"months",cellClass:"month"}])}return eQ(J,Q),v0(J,[{key:"init",value:function Z(G){var K=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(K)this.grid=this.element,this.element.classList.add("months","datepicker-grid","w-64","grid","grid-cols-4"),this.grid.appendChild(G0(JJ("span",12,{"data-month":function q(z){return z}})));AJ(B0(J.prototype),"init",this).call(this,G)}},{key:"setOptions",value:function Z(G){if(G.locale)this.monthNames=G.locale.monthsShort;if(Z0(G,"minDate"))if(G.minDate===void 0)this.minYear=this.minMonth=this.minDate=void 0;else{var K=new Date(G.minDate);this.minYear=K.getFullYear(),this.minMonth=K.getMonth(),this.minDate=K.setDate(1)}if(Z0(G,"maxDate"))if(G.maxDate===void 0)this.maxYear=this.maxMonth=this.maxDate=void 0;else{var q=new Date(G.maxDate);this.maxYear=q.getFullYear(),this.maxMonth=q.getMonth(),this.maxDate=U0(this.maxYear,this.maxMonth+1,0)}if(G.beforeShowMonth!==void 0)this.beforeShow=typeof G.beforeShowMonth==="function"?G.beforeShowMonth:void 0}},{key:"updateFocus",value:function Z(){var G=new Date(this.picker.viewDate);this.year=G.getFullYear(),this.focused=G.getMonth()}},{key:"updateSelection",value:function Z(){var G=this.picker.datepicker,K=G.dates,q=G.rangepicker;if(this.selected=K.reduce(function(z,X){var H=new Date(X),W=H.getFullYear(),Y=H.getMonth();if(z[W]===void 0)z[W]=[Y];else y0(z[W],Y);return z},{}),q&&q.dates)this.range=q.dates.map(function(z){var X=new Date(z);return isNaN(X)?void 0:[X.getFullYear(),X.getMonth()]})}},{key:"render",value:function Z(){var G=this;this.disabled=[],this.picker.setViewSwitchLabel(this.year),this.picker.setPrevBtnDisabled(this.year<=this.minYear),this.picker.setNextBtnDisabled(this.year>=this.maxYear);var K=this.selected[this.year]||[],q=this.year<this.minYear||this.year>this.maxYear,z=this.year===this.minYear,X=this.year===this.maxYear,H=a1(this.range,this.year);Array.from(this.grid.children).forEach(function(W,Y){var U=W.classList,N=U0(G.year,Y,1);if(W.className="datepicker-cell hover:bg-gray-100 dark:hover:bg-gray-600 block flex-1 leading-9 border-0 rounded-lg cursor-pointer text-center text-gray-900 dark:text-white font-semibold text-sm ".concat(G.cellClass),G.isMinView)W.dataset.date=N;if(W.textContent=G.monthNames[Y],q||z&&Y<G.minMonth||X&&Y>G.maxMonth)U.add("disabled");if(H){var B=p(H,2),V=B[0],R=B[1];if(Y>V&&Y<R)U.add("range");if(Y===V)U.add("range-start");if(Y===R)U.add("range-end")}if(K.includes(Y))U.add("selected","bg-blue-700","!bg-primary-700","text-white","dark:bg-blue-600","dark:!bg-primary-600","dark:text-white"),U.remove("text-gray-900","hover:bg-gray-100","dark:text-white","dark:hover:bg-gray-600");if(Y===G.focused)U.add("focused");if(G.beforeShow)G.performBeforeHook(W,Y,N)})}},{key:"refresh",value:function Z(){var G=this,K=this.selected[this.year]||[],q=a1(this.range,this.year)||[],z=p(q,2),X=z[0],H=z[1];this.grid.querySelectorAll(".range, .range-start, .range-end, .selected, .focused").forEach(function(W){W.classList.remove("range","range-start","range-end","selected","bg-blue-700","!bg-primary-700","dark:bg-blue-600","dark:!bg-primary-700","dark:text-white","text-white","focused"),W.classList.add("text-gray-900","hover:bg-gray-100","dark:text-white","dark:hover:bg-gray-600")}),Array.from(this.grid.children).forEach(function(W,Y){var U=W.classList;if(Y>X&&Y<H)U.add("range");if(Y===X)U.add("range-start");if(Y===H)U.add("range-end");if(K.includes(Y))U.add("selected","bg-blue-700","!bg-primary-700","text-white","dark:bg-blue-600","dark:!bg-primary-600","dark:text-white"),U.remove("text-gray-900","hover:bg-gray-100","dark:text-white","dark:hover:bg-gray-600");if(Y===G.focused)U.add("focused")})}},{key:"refreshFocus",value:function Z(){this.grid.querySelectorAll(".focused").forEach(function(G){G.classList.remove("focused")}),this.grid.children[this.focused].classList.add("focused")}}])}(K1);function K9(Q){return VJ(Q).reduce(function(J,Z,G){return J+=G?Z:Z.toUpperCase()},"")}var i1=function(Q){function J(Z,G){return $0(this,J),tQ(this,J,[Z,G])}return eQ(J,Q),v0(J,[{key:"init",value:function Z(G){var K=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(K)this.navStep=this.step*10,this.beforeShowOption="beforeShow".concat(K9(this.cellClass)),this.grid=this.element,this.element.classList.add(this.name,"datepicker-grid","w-64","grid","grid-cols-4"),this.grid.appendChild(G0(JJ("span",12)));AJ(B0(J.prototype),"init",this).call(this,G)}},{key:"setOptions",value:function Z(G){if(Z0(G,"minDate"))if(G.minDate===void 0)this.minYear=this.minDate=void 0;else this.minYear=b0(G.minDate,this.step),this.minDate=U0(this.minYear,0,1);if(Z0(G,"maxDate"))if(G.maxDate===void 0)this.maxYear=this.maxDate=void 0;else this.maxYear=b0(G.maxDate,this.step),this.maxDate=U0(this.maxYear,11,31);if(G[this.beforeShowOption]!==void 0){var K=G[this.beforeShowOption];this.beforeShow=typeof K==="function"?K:void 0}}},{key:"updateFocus",value:function Z(){var G=new Date(this.picker.viewDate),K=b0(G,this.navStep),q=K+9*this.step;this.first=K,this.last=q,this.start=K-this.step,this.focused=b0(G,this.step)}},{key:"updateSelection",value:function Z(){var G=this,K=this.picker.datepicker,q=K.dates,z=K.rangepicker;if(this.selected=q.reduce(function(X,H){return y0(X,b0(H,G.step))},[]),z&&z.dates)this.range=z.dates.map(function(X){if(X!==void 0)return b0(X,G.step)})}},{key:"render",value:function Z(){var G=this;this.disabled=[],this.picker.setViewSwitchLabel("".concat(this.first,"-").concat(this.last)),this.picker.setPrevBtnDisabled(this.first<=this.minYear),this.picker.setNextBtnDisabled(this.last>=this.maxYear),Array.from(this.grid.children).forEach(function(K,q){var z=K.classList,X=G.start+q*G.step,H=U0(X,0,1);if(K.className="datepicker-cell hover:bg-gray-100 dark:hover:bg-gray-600 block flex-1 leading-9 border-0 rounded-lg cursor-pointer text-center text-gray-900 dark:text-white font-semibold text-sm ".concat(G.cellClass),G.isMinView)K.dataset.date=H;if(K.textContent=K.dataset.year=X,q===0)z.add("prev");else if(q===11)z.add("next");if(X<G.minYear||X>G.maxYear)z.add("disabled");if(G.range){var W=p(G.range,2),Y=W[0],U=W[1];if(X>Y&&X<U)z.add("range");if(X===Y)z.add("range-start");if(X===U)z.add("range-end")}if(G.selected.includes(X))z.add("selected","bg-blue-700","!bg-primary-700","text-white","dark:bg-blue-600","dark:!bg-primary-600","dark:text-white"),z.remove("text-gray-900","hover:bg-gray-100","dark:text-white","dark:hover:bg-gray-600");if(X===G.focused)z.add("focused");if(G.beforeShow)G.performBeforeHook(K,X,H)})}},{key:"refresh",value:function Z(){var G=this,K=this.range||[],q=p(K,2),z=q[0],X=q[1];this.grid.querySelectorAll(".range, .range-start, .range-end, .selected, .focused").forEach(function(H){H.classList.remove("range","range-start","range-end","selected","bg-blue-700","!bg-primary-700","text-white","dark:bg-blue-600","dark!bg-primary-600","dark:text-white","focused")}),Array.from(this.grid.children).forEach(function(H){var W=Number(H.textContent),Y=H.classList;if(W>z&&W<X)Y.add("range");if(W===z)Y.add("range-start");if(W===X)Y.add("range-end");if(G.selected.includes(W))Y.add("selected","bg-blue-700","!bg-primary-700","text-white","dark:bg-blue-600","dark:!bg-primary-600","dark:text-white"),Y.remove("text-gray-900","hover:bg-gray-100","dark:text-white","dark:hover:bg-gray-600");if(W===G.focused)Y.add("focused")})}},{key:"refreshFocus",value:function Z(){var G=Math.round((this.focused-this.start)/this.step);this.grid.querySelectorAll(".focused").forEach(function(K){K.classList.remove("focused")}),this.grid.children[G].classList.add("focused")}}])}(K1);function e0(Q,J){var Z={date:Q.getDate(),viewDate:new Date(Q.picker.viewDate),viewId:Q.picker.currentView.id,datepicker:Q};Q.element.dispatchEvent(new CustomEvent(J,{detail:Z}))}function qQ(Q,J){var Z=Q.config,G=Z.minDate,K=Z.maxDate,q=Q.picker,z=q.currentView,X=q.viewDate,H;switch(z.id){case 0:H=QQ(X,J);break;case 1:H=t0(X,J);break;default:H=t0(X,J*z.navStep)}H=z7(H,G,K),Q.picker.changeFocus(H).render()}function F7(Q){var J=Q.picker.currentView.id;if(J===Q.config.maxView)return;Q.picker.changeView(J+1).render()}function A7(Q){if(Q.config.updateOnBlur)Q.update({autohide:!0});else Q.refresh("input"),Q.hide()}function t1(Q,J){var Z=Q.picker,G=new Date(Z.viewDate),K=Z.currentView.id,q=K===1?QQ(G,J-G.getMonth()):t0(G,J-G.getFullYear());Z.changeFocus(q).changeView(K-1).render()}function q9(Q){var J=Q.picker,Z=D0();if(Q.config.todayBtnMode===1){if(Q.config.autohide){Q.setDate(Z);return}Q.setDate(Z,{render:!1}),J.update()}if(J.viewDate!==Z)J.changeFocus(Z);J.changeView(0).render()}function X9(Q){Q.setDate({clear:!0})}function z9(Q){F7(Q)}function H9(Q){qQ(Q,-1)}function W9(Q){qQ(Q,1)}function Y9(Q,J){var Z=N7(J,".datepicker-cell");if(!Z||Z.classList.contains("disabled"))return;var G=Q.picker.currentView,K=G.id,q=G.isMinView;if(q)Q.setDate(Number(Z.dataset.date));else if(K===1)t1(Q,Number(Z.dataset.month));else t1(Q,Number(Z.dataset.year))}function U9(Q){if(!Q.inline&&!Q.config.disableTouchKeyboard)Q.inputField.focus()}function e1(Q,J){if(J.title!==void 0)if(J.title)Q.controls.title.textContent=J.title,FJ(Q.controls.title);else Q.controls.title.textContent="",NJ(Q.controls.title);if(J.prevArrow){var Z=Q.controls.prevBtn;KQ(Z),J.prevArrow.forEach(function(X){Z.appendChild(X.cloneNode(!0))})}if(J.nextArrow){var G=Q.controls.nextBtn;KQ(G),J.nextArrow.forEach(function(X){G.appendChild(X.cloneNode(!0))})}if(J.locale)Q.controls.todayBtn.textContent=J.locale.today,Q.controls.clearBtn.textContent=J.locale.clear;if(J.todayBtn!==void 0)if(J.todayBtn)FJ(Q.controls.todayBtn);else NJ(Q.controls.todayBtn);if(Z0(J,"minDate")||Z0(J,"maxDate")){var K=Q.datepicker.config,q=K.minDate,z=K.maxDate;Q.controls.todayBtn.disabled=!Q1(D0(),q,z)}if(J.clearBtn!==void 0)if(J.clearBtn)FJ(Q.controls.clearBtn);else NJ(Q.controls.clearBtn)}function J7(Q){var{dates:J,config:Z}=Q,G=J.length>0?J1(J):Z.defaultViewDate;return z7(G,Z.minDate,Z.maxDate)}function Q7(Q,J){var Z=new Date(Q.viewDate),G=new Date(J),K=Q.currentView,q=K.id,z=K.year,X=K.first,H=K.last,W=G.getFullYear();if(Q.viewDate=J,W!==Z.getFullYear())e0(Q.datepicker,"changeYear");if(G.getMonth()!==Z.getMonth())e0(Q.datepicker,"changeMonth");switch(q){case 0:return J<X||J>H;case 1:return W!==z;default:return W<X||W>H}}function rQ(Q){return window.getComputedStyle(Q).direction}var B9=function(){function Q(J){$0(this,Q),this.datepicker=J;var Z=e8.replace(/%buttonClass%/g,J.config.buttonClass),G=this.element=G0(Z).firstChild,K=p(G.firstChild.children,3),q=K[0],z=K[1],X=K[2],H=q.firstElementChild,W=p(q.lastElementChild.children,3),Y=W[0],U=W[1],N=W[2],B=p(X.firstChild.children,2),V=B[0],R=B[1],A={title:H,prevBtn:Y,viewSwitch:U,nextBtn:N,todayBtn:V,clearBtn:R};this.main=z,this.controls=A;var j=J.inline?"inline":"dropdown";G.classList.add("datepicker-".concat(j)),j==="dropdown"&&G.classList.add("dropdown","absolute","top-0","left-0","z-50","pt-2"),e1(this,J.config),this.viewDate=J7(J),G1(J,[[G,"click",U9.bind(null,J),{capture:!0}],[z,"click",Y9.bind(null,J)],[A.viewSwitch,"click",z9.bind(null,J)],[A.prevBtn,"click",H9.bind(null,J)],[A.nextBtn,"click",W9.bind(null,J)],[A.todayBtn,"click",q9.bind(null,J)],[A.clearBtn,"click",X9.bind(null,J)]]),this.views=[new Z9(this),new G9(this),new i1(this,{id:2,name:"years",cellClass:"year",step:1}),new i1(this,{id:3,name:"decades",cellClass:"decade",step:10})],this.currentView=this.views[J.config.startView],this.currentView.render(),this.main.appendChild(this.currentView.element),J.config.container.appendChild(this.element)}return v0(Q,[{key:"setOptions",value:function J(Z){e1(this,Z),this.views.forEach(function(G){G.init(Z,!1)}),this.currentView.render()}},{key:"detach",value:function J(){this.datepicker.config.container.removeChild(this.element)}},{key:"show",value:function J(){if(this.active)return;this.element.classList.add("active","block"),this.element.classList.remove("hidden"),this.active=!0;var Z=this.datepicker;if(!Z.inline){var G=rQ(Z.inputField);if(G!==rQ(Z.config.container))this.element.dir=G;else if(this.element.dir)this.element.removeAttribute("dir");if(this.place(),Z.config.disableTouchKeyboard)Z.inputField.blur()}e0(Z,"show")}},{key:"hide",value:function J(){if(!this.active)return;this.datepicker.exitEditMode(),this.element.classList.remove("active","block"),this.element.classList.add("active","block","hidden"),this.active=!1,e0(this.datepicker,"hide")}},{key:"place",value:function J(){var Z=this.element,G=Z.classList,K=Z.style,q=this.datepicker,z=q.config,X=q.inputField,H=z.container,W=this.element.getBoundingClientRect(),Y=W.width,U=W.height,N=H.getBoundingClientRect(),B=N.left,V=N.top,R=N.width,A=X.getBoundingClientRect(),j=A.left,P=A.top,b=A.width,L=A.height,I=z.orientation,T=I.x,C=I.y,x,M,S;if(H===document.body)x=window.scrollY,M=j+window.scrollX,S=P+x;else x=H.scrollTop,M=j-B,S=P-V+x;if(T==="auto")if(M<0)T="left",M=10;else if(M+Y>R)T="right";else T=rQ(X)==="rtl"?"right":"left";if(T==="right")M-=Y-b;if(C==="auto")C=S-U<x?"bottom":"top";if(C==="top")S-=U;else S+=L;G.remove("datepicker-orient-top","datepicker-orient-bottom","datepicker-orient-right","datepicker-orient-left"),G.add("datepicker-orient-".concat(C),"datepicker-orient-".concat(T)),K.top=S?"".concat(S,"px"):S,K.left=M?"".concat(M,"px"):M}},{key:"setViewSwitchLabel",value:function J(Z){this.controls.viewSwitch.textContent=Z}},{key:"setPrevBtnDisabled",value:function J(Z){this.controls.prevBtn.disabled=Z}},{key:"setNextBtnDisabled",value:function J(Z){this.controls.nextBtn.disabled=Z}},{key:"changeView",value:function J(Z){var G=this.currentView,K=this.views[Z];if(K.id!==G.id)this.currentView=K,this._renderMethod="render",e0(this.datepicker,"changeView"),this.main.replaceChild(K.element,G.element);return this}},{key:"changeFocus",value:function J(Z){return this._renderMethod=Q7(this,Z)?"render":"refreshFocus",this.views.forEach(function(G){G.updateFocus()}),this}},{key:"update",value:function J(){var Z=J7(this.datepicker);return this._renderMethod=Q7(this,Z)?"render":"refresh",this.views.forEach(function(G){G.updateFocus(),G.updateSelection()}),this}},{key:"render",value:function J(){var Z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,G=Z&&this._renderMethod||"render";delete this._renderMethod,this.currentView[G]()}}])}();function R7(Q,J,Z,G,K,q){if(!Q1(Q,K,q))return;if(G(Q)){var z=J(Q,Z);return R7(z,J,Z,G,K,q)}return Q}function eJ(Q,J,Z,G){var K=Q.picker,q=K.currentView,z=q.step||1,X=K.viewDate,H,W;switch(q.id){case 0:if(G)X=i0(X,Z*7);else if(J.ctrlKey||J.metaKey)X=t0(X,Z);else X=i0(X,Z);H=i0,W=function Y(U){return q.disabled.includes(U)};break;case 1:X=QQ(X,G?Z*4:Z),H=QQ,W=function Y(U){var N=new Date(U),B=q.year,V=q.disabled;return N.getFullYear()===B&&V.includes(N.getMonth())};break;default:X=t0(X,Z*(G?4:1)*z),H=t0,W=function Y(U){return q.disabled.includes(b0(U,z))}}if(X=R7(X,H,Z<0?-z:z,W,q.minDate,q.maxDate),X!==void 0)K.changeFocus(X).render()}function N9(Q,J){if(J.key==="Tab"){A7(Q);return}var Z=Q.picker,G=Z.currentView,K=G.id,q=G.isMinView;if(!Z.active)switch(J.key){case"ArrowDown":case"Escape":Z.show();break;case"Enter":Q.update();break;default:return}else if(Q.editMode)switch(J.key){case"Escape":Z.hide();break;case"Enter":Q.exitEditMode({update:!0,autohide:Q.config.autohide});break;default:return}else switch(J.key){case"Escape":Z.hide();break;case"ArrowLeft":if(J.ctrlKey||J.metaKey)qQ(Q,-1);else if(J.shiftKey){Q.enterEditMode();return}else eJ(Q,J,-1,!1);break;case"ArrowRight":if(J.ctrlKey||J.metaKey)qQ(Q,1);else if(J.shiftKey){Q.enterEditMode();return}else eJ(Q,J,1,!1);break;case"ArrowUp":if(J.ctrlKey||J.metaKey)F7(Q);else if(J.shiftKey){Q.enterEditMode();return}else eJ(Q,J,-1,!0);break;case"ArrowDown":if(J.shiftKey&&!J.ctrlKey&&!J.metaKey){Q.enterEditMode();return}eJ(Q,J,1,!0);break;case"Enter":if(q)Q.setDate(Z.viewDate);else Z.changeView(K-1).render();break;case"Backspace":case"Delete":Q.enterEditMode();return;default:if(J.key.length===1&&!J.ctrlKey&&!J.metaKey)Q.enterEditMode();return}J.preventDefault(),J.stopPropagation()}function F9(Q){if(Q.config.showOnFocus&&!Q._showing)Q.show()}function A9(Q,J){var Z=J.target;if(Q.picker.active||Q.config.showOnClick)Z._active=Z===document.activeElement,Z._clicking=setTimeout(function(){delete Z._active,delete Z._clicking},2000)}function R9(Q,J){var Z=J.target;if(!Z._clicking)return;if(clearTimeout(Z._clicking),delete Z._clicking,Z._active)Q.enterEditMode();if(delete Z._active,Q.config.showOnClick)Q.show()}function L9(Q,J){if(J.clipboardData.types.includes("text/plain"))Q.enterEditMode()}function V9(Q,J){var Z=Q.element;if(Z!==document.activeElement)return;var G=Q.picker.element;if(N7(J,function(K){return K===Z||K===G}))return;A7(Q)}function L7(Q,J){return Q.map(function(Z){return LJ(Z,J.format,J.locale)}).join(J.dateDelimiter)}function V7(Q,J){var Z=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,G=Q.config,K=Q.dates,q=Q.rangepicker;if(J.length===0)return Z?[]:void 0;var z=q&&Q===q.datepickers[1],X=J.reduce(function(H,W){var Y=RJ(W,G.format,G.locale);if(Y===void 0)return H;if(G.pickLevel>0){var U=new Date(Y);if(G.pickLevel===1)Y=z?U.setMonth(U.getMonth()+1,0):U.setDate(1);else Y=z?U.setFullYear(U.getFullYear()+1,0,0):U.setMonth(0,1)}if(Q1(Y,G.minDate,G.maxDate)&&!H.includes(Y)&&!G.datesDisabled.includes(Y)&&!G.daysOfWeekDisabled.includes(new Date(Y).getDay()))H.push(Y);return H},[]);if(X.length===0)return;if(G.multidate&&!Z)X=X.reduce(function(H,W){if(!K.includes(W))H.push(W);return H},K.filter(function(H){return!X.includes(H)}));return G.maxNumberOfDates&&X.length>G.maxNumberOfDates?X.slice(G.maxNumberOfDates*-1):X}function XQ(Q){var J=arguments.length>1&&arguments[1]!==void 0?arguments[1]:3,Z=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,G=Q.config,K=Q.picker,q=Q.inputField;if(J&2){var z=K.active?G.pickLevel:G.startView;K.update().changeView(z).render(Z)}if(J&1&&q)q.value=L7(Q.dates,G)}function Z7(Q,J,Z){var{clear:G,render:K,autohide:q}=Z;if(K===void 0)K=!0;if(!K)q=!1;else if(q===void 0)q=Q.config.autohide;var z=V7(Q,J,G);if(!z)return;if(z.toString()!==Q.dates.toString())Q.dates=z,XQ(Q,K?3:1),e0(Q,"changeDate");else XQ(Q,1);if(q)Q.hide()}var TJ=function(){function Q(J){var Z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},G=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0;$0(this,Q),J.datepicker=this,this.element=J;var K=this.config=Object.assign({buttonClass:Z.buttonClass&&String(Z.buttonClass)||"button",container:document.body,defaultViewDate:D0(),maxDate:void 0,minDate:void 0},oQ(IJ,this));this._options=Z,Object.assign(K,oQ(Z,this));var q=this.inline=J.tagName!=="INPUT",z,X;if(q)K.container=J,X=gQ(J.dataset.date,K.dateDelimiter),delete J.dataset.date;else{var H=Z.container?document.querySelector(Z.container):null;if(H)K.container=H;z=this.inputField=J,z.classList.add("datepicker-input"),X=gQ(z.value,K.dateDelimiter)}if(G){var W=G.inputs.indexOf(z),Y=G.datepickers;if(W<0||W>1||!Array.isArray(Y))throw Error("Invalid rangepicker object.");Y[W]=this,Object.defineProperty(this,"rangepicker",{get:function R(){return G}})}this.dates=[];var U=V7(this,X);if(U&&U.length>0)this.dates=U;if(z)z.value=L7(this.dates,K);var N=this.picker=new B9(this);if(q)this.show();else{var B=V9.bind(null,this),V=[[z,"keydown",N9.bind(null,this)],[z,"focus",F9.bind(null,this)],[z,"mousedown",A9.bind(null,this)],[z,"click",R9.bind(null,this)],[z,"paste",L9.bind(null,this)],[document,"mousedown",B],[document,"touchstart",B],[window,"resize",N.place.bind(N)]];G1(this,V)}}return v0(Q,[{key:"active",get:function J(){return!!(this.picker&&this.picker.active)}},{key:"pickerElement",get:function J(){return this.picker?this.picker.element:void 0}},{key:"setOptions",value:function J(Z){var G=this.picker,K=oQ(Z,this);Object.assign(this._options,Z),Object.assign(this.config,K),G.setOptions(K),XQ(this,3)}},{key:"show",value:function J(){if(this.inputField){if(this.inputField.disabled)return;if(this.inputField!==document.activeElement)this._showing=!0,this.inputField.focus(),delete this._showing}this.picker.show()}},{key:"hide",value:function J(){if(this.inline)return;this.picker.hide(),this.picker.update().changeView(this.config.startView).render()}},{key:"destroy",value:function J(){if(this.hide(),U7(this),this.picker.detach(),!this.inline)this.inputField.classList.remove("datepicker-input");return delete this.element.datepicker,this}},{key:"getDate",value:function J(){var Z=this,G=arguments.length>0&&arguments[0]!==void 0?arguments[0]:void 0,K=G?function(q){return LJ(q,G,Z.config.locale)}:function(q){return new Date(q)};if(this.config.multidate)return this.dates.map(K);if(this.dates.length>0)return K(this.dates[0])}},{key:"setDate",value:function J(){for(var Z=arguments.length,G=new Array(Z),K=0;K<Z;K++)G[K]=arguments[K];var q=[].concat(G),z={},X=J1(G);if(JQ(X)==="object"&&!Array.isArray(X)&&!(X instanceof Date)&&X)Object.assign(z,q.pop());var H=Array.isArray(q[0])?q[0]:q;Z7(this,H,z)}},{key:"update",value:function J(){var Z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:void 0;if(this.inline)return;var G={clear:!0,autohide:!!(Z&&Z.autohide)},K=gQ(this.inputField.value,this.config.dateDelimiter);Z7(this,K,G)}},{key:"refresh",value:function J(){var Z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:void 0,G=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(Z&&typeof Z!=="string")G=Z,Z=void 0;var K;if(Z==="picker")K=2;else if(Z==="input")K=1;else K=3;XQ(this,K,!G)}},{key:"enterEditMode",value:function J(){if(this.inline||!this.picker.active||this.editMode)return;this.editMode=!0,this.inputField.classList.add("in-edit","border-blue-700","!border-primary-700")}},{key:"exitEditMode",value:function J(){var Z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:void 0;if(this.inline||!this.editMode)return;var G=Object.assign({update:!1},Z);if(delete this.editMode,this.inputField.classList.remove("in-edit","border-blue-700","!border-primary-700"),G.update)this.update(G)}}],[{key:"formatDate",value:function J(Z,G,K){return LJ(Z,G,K&&UJ[K]||UJ.en)}},{key:"parseDate",value:function J(Z,G,K){return RJ(Z,G,K&&UJ[K]||UJ.en)}},{key:"locales",get:function J(){return UJ}}])}();function G7(Q){var J=Object.assign({},Q);return delete J.inputs,delete J.allowOneSidedRange,delete J.maxNumberOfDates,J}function K7(Q,J,Z,G){G1(Q,[[Z,"changeDate",J]]),new TJ(Z,G,Q)}function BJ(Q,J){if(Q._updating)return;Q._updating=!0;var Z=J.target;if(Z.datepicker===void 0)return;var G=Q.datepickers,K={render:!1},q=Q.inputs.indexOf(Z),z=q===0?1:0,X=G[q].dates[0],H=G[z].dates[0];if(X!==void 0&&H!==void 0){if(q===0&&X>H)G[0].setDate(H,K),G[1].setDate(X,K);else if(q===1&&X<H)G[0].setDate(X,K),G[1].setDate(H,K)}else if(!Q.allowOneSidedRange){if(X!==void 0||H!==void 0)K.clear=!0,G[z].setDate(G[q].dates,K)}G[0].picker.update().render(),G[1].picker.update().render(),delete Q._updating}var zQ=function(){function Q(J){var Z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};$0(this,Q);var G=Array.isArray(Z.inputs)?Z.inputs:Array.from(J.querySelectorAll("input"));if(G.length<2)return;J.rangepicker=this,this.element=J,this.inputs=G.slice(0,2),this.allowOneSidedRange=!!Z.allowOneSidedRange;var K=BJ.bind(null,this),q=G7(Z),z=[];if(Object.defineProperty(this,"datepickers",{get:function X(){return z}}),K7(this,K,this.inputs[0],q),K7(this,K,this.inputs[1],q),Object.freeze(z),z[0].dates.length>0)BJ(this,{target:this.inputs[0]});else if(z[1].dates.length>0)BJ(this,{target:this.inputs[1]})}return v0(Q,[{key:"dates",get:function J(){return this.datepickers.length===2?[this.datepickers[0].dates[0],this.datepickers[1].dates[0]]:void 0}},{key:"setOptions",value:function J(Z){this.allowOneSidedRange=!!Z.allowOneSidedRange;var G=G7(Z);this.datepickers[0].setOptions(G),this.datepickers[1].setOptions(G)}},{key:"destroy",value:function J(){this.datepickers[0].destroy(),this.datepickers[1].destroy(),U7(this),delete this.element.rangepicker}},{key:"getDates",value:function J(){var Z=this,G=arguments.length>0&&arguments[0]!==void 0?arguments[0]:void 0,K=G?function(q){return LJ(q,G,Z.datepickers[0].config.locale)}:function(q){return new Date(q)};return this.dates.map(function(q){return q===void 0?q:K(q)})}},{key:"setDates",value:function J(Z,G){var K=p(this.datepickers,2),q=K[0],z=K[1],X=this.dates;if(this._updating=!0,q.setDate(Z),z.setDate(G),delete this._updating,z.dates[0]!==X[1])BJ(this,{target:this.inputs[1]});else if(q.dates[0]!==X[0])BJ(this,{target:this.inputs[0]})}}])}();var HQ=function(){return HQ=Object.assign||function(Q){for(var J,Z=1,G=arguments.length;Z<G;Z++){J=arguments[Z];for(var K in J)if(Object.prototype.hasOwnProperty.call(J,K))Q[K]=J[K]}return Q},HQ.apply(this,arguments)},s={defaultDatepickerId:null,autohide:!1,format:"mm/dd/yyyy",maxDate:null,minDate:null,orientation:"bottom",buttons:!1,autoSelectToday:0,title:null,language:"en",rangePicker:!1,onShow:function(){},onHide:function(){}},I9={id:null,override:!0},q1=function(){function Q(J,Z,G){if(J===void 0)J=null;if(Z===void 0)Z=s;if(G===void 0)G=I9;this._instanceId=G.id?G.id:J.id,this._datepickerEl=J,this._datepickerInstance=null,this._options=HQ(HQ({},s),Z),this._initialized=!1,this.init(),F.addInstance("Datepicker",this,this._instanceId,G.override)}return Q.prototype.init=function(){if(this._datepickerEl&&!this._initialized){if(this._options.rangePicker)this._datepickerInstance=new zQ(this._datepickerEl,this._getDatepickerOptions(this._options));else this._datepickerInstance=new TJ(this._datepickerEl,this._getDatepickerOptions(this._options));this._initialized=!0}},Q.prototype.destroy=function(){if(this._initialized)this._initialized=!1,this._datepickerInstance.destroy()},Q.prototype.removeInstance=function(){this.destroy(),F.removeInstance("Datepicker",this._instanceId)},Q.prototype.destroyAndRemoveInstance=function(){this.destroy(),this.removeInstance()},Q.prototype.getDatepickerInstance=function(){return this._datepickerInstance},Q.prototype.getDate=function(){if(this._options.rangePicker&&this._datepickerInstance instanceof zQ)return this._datepickerInstance.getDates();if(!this._options.rangePicker&&this._datepickerInstance instanceof TJ)return this._datepickerInstance.getDate()},Q.prototype.setDate=function(J){if(this._options.rangePicker&&this._datepickerInstance instanceof zQ)return this._datepickerInstance.setDates(J);if(!this._options.rangePicker&&this._datepickerInstance instanceof TJ)return this._datepickerInstance.setDate(J)},Q.prototype.show=function(){this._datepickerInstance.show(),this._options.onShow(this)},Q.prototype.hide=function(){this._datepickerInstance.hide(),this._options.onHide(this)},Q.prototype._getDatepickerOptions=function(J){var Z={};if(J.buttons){if(Z.todayBtn=!0,Z.clearBtn=!0,J.autoSelectToday)Z.todayBtnMode=1}if(J.autohide)Z.autohide=!0;if(J.format)Z.format=J.format;if(J.maxDate)Z.maxDate=J.maxDate;if(J.minDate)Z.minDate=J.minDate;if(J.orientation)Z.orientation=J.orientation;if(J.title)Z.title=J.title;if(J.language)Z.language=J.language;return Z},Q.prototype.updateOnShow=function(J){this._options.onShow=J},Q.prototype.updateOnHide=function(J){this._options.onHide=J},Q}();function QJ(){document.querySelectorAll("[datepicker], [inline-datepicker], [date-rangepicker]").forEach(function(Q){if(Q){var J=Q.hasAttribute("datepicker-buttons"),Z=Q.hasAttribute("datepicker-autoselect-today"),G=Q.hasAttribute("datepicker-autohide"),K=Q.getAttribute("datepicker-format"),q=Q.getAttribute("datepicker-max-date"),z=Q.getAttribute("datepicker-min-date"),X=Q.getAttribute("datepicker-orientation"),H=Q.getAttribute("datepicker-title"),W=Q.getAttribute("datepicker-language"),Y=Q.hasAttribute("date-rangepicker");new q1(Q,{buttons:J?J:s.buttons,autoSelectToday:Z?Z:s.autoSelectToday,autohide:G?G:s.autohide,format:K?K:s.format,maxDate:q?q:s.maxDate,minDate:z?z:s.minDate,orientation:X?X:s.orientation,title:H?H:s.title,language:W?W:s.language,rangePicker:Y?Y:s.rangePicker})}else console.error("The datepicker element does not exist. Please check the datepicker attribute.")})}if(typeof window!=="undefined")window.Datepicker=q1,window.initDatepickers=QJ;var T9=q1;function I7(){O0(),w0(),E0(),u0(),d0(),c0(),p0(),l0(),o0(),r0(),s0(),n0(),a0(),QJ()}if(typeof window!=="undefined")window.initFlowbite=I7;var S9=new A1("load",[O0,w0,E0,u0,d0,c0,p0,l0,o0,r0,s0,n0,a0,QJ]);S9.init();