var we=(c,r)=>()=>(r||c((r={exports:{}}).exports,r),r.exports);var Re=we((N,ee)=>{/*!
 * AdminLTE v4.0.0-rc3 (https://adminlte.io)
 * Copyright 2014-2025 Colorlib <https://colorlib.com>
 * Licensed under MIT (https://github.com/ColorlibHQ/AdminLTE/blob/master/LICENSE)
 */(function(c,r){typeof N=="object"&&typeof ee<"u"?r(N):typeof define=="function"&&define.amd?define(["exports"],r):(c=typeof globalThis<"u"?globalThis:c||self,r(c.adminlte={}))})(void 0,(function(c){const r=[],l=i=>{document.readyState==="loading"?(r.length||document.addEventListener("DOMContentLoaded",()=>{for(const e of r)e()}),r.push(i)):i()},p=(i,e=500)=>{i.style.transitionProperty="height, margin, padding",i.style.transitionDuration=`${e}ms`,i.style.boxSizing="border-box",i.style.height=`${i.offsetHeight}px`,i.style.overflow="hidden",globalThis.setTimeout(()=>{i.style.height="0",i.style.paddingTop="0",i.style.paddingBottom="0",i.style.marginTop="0",i.style.marginBottom="0"},1),globalThis.setTimeout(()=>{i.style.display="none",i.style.removeProperty("height"),i.style.removeProperty("padding-top"),i.style.removeProperty("padding-bottom"),i.style.removeProperty("margin-top"),i.style.removeProperty("margin-bottom"),i.style.removeProperty("overflow"),i.style.removeProperty("transition-duration"),i.style.removeProperty("transition-property")},e)},D=(i,e=500)=>{i.style.removeProperty("display");let{display:t}=globalThis.getComputedStyle(i);t==="none"&&(t="block"),i.style.display=t;const n=i.offsetHeight;i.style.overflow="hidden",i.style.height="0",i.style.paddingTop="0",i.style.paddingBottom="0",i.style.marginTop="0",i.style.marginBottom="0",globalThis.setTimeout(()=>{i.style.boxSizing="border-box",i.style.transitionProperty="height, margin, padding",i.style.transitionDuration=`${e}ms`,i.style.height=`${n}px`,i.style.removeProperty("padding-top"),i.style.removeProperty("padding-bottom"),i.style.removeProperty("margin-top"),i.style.removeProperty("margin-bottom")},1),globalThis.setTimeout(()=>{i.style.removeProperty("height"),i.style.removeProperty("overflow"),i.style.removeProperty("transition-duration"),i.style.removeProperty("transition-property")},e)};/**
 * --------------------------------------------
 * @file AdminLTE layout.ts
 * @description Layout for AdminLTE.
 * @license MIT
 * --------------------------------------------
 */const C="hold-transition",te="app-loaded";class v{_element;constructor(e){this._element=e}holdTransition(){let e;window.addEventListener("resize",()=>{document.body.classList.add(C),clearTimeout(e),e=setTimeout(()=>{document.body.classList.remove(C)},400)})}}l(()=>{new v(document.body).holdTransition(),setTimeout(()=>{document.body.classList.add(te)},400)});/**
 * --------------------------------------------
 * @file AdminLTE card-widget.ts
 * @description Card widget for AdminLTE.
 * @license MIT
 * --------------------------------------------
 */const d=".lte.card-widget",ne=`collapsed${d}`,ie=`expanded${d}`,oe=`remove${d}`,se=`maximized${d}`,ae=`minimized${d}`,M="card",f="collapsed-card",w="collapsing-card",R="expanding-card",b="was-collapsed",u="maximized-card",k='[data-lte-toggle="card-remove"]',x='[data-lte-toggle="card-collapse"]',O='[data-lte-toggle="card-maximize"]',ce=`.${M}`,$=".card-body",I=".card-footer",y={animationSpeed:500,collapseTrigger:x,removeTrigger:k,maximizeTrigger:O};class _{_element;_parent;_clone;_config;constructor(e,t){this._element=e,this._parent=e.closest(ce),e.classList.contains(M)&&(this._parent=e),this._config={...y,...t}}collapse(){const e=new Event(ne);this._parent&&(this._parent.classList.add(w),(this._parent?.querySelectorAll(`${$}, ${I}`)).forEach(n=>{n instanceof HTMLElement&&p(n,this._config.animationSpeed)}),setTimeout(()=>{this._parent&&(this._parent.classList.add(f),this._parent.classList.remove(w))},this._config.animationSpeed)),this._element?.dispatchEvent(e)}expand(){const e=new Event(ie);this._parent&&(this._parent.classList.add(R),(this._parent?.querySelectorAll(`${$}, ${I}`)).forEach(n=>{n instanceof HTMLElement&&D(n,this._config.animationSpeed)}),setTimeout(()=>{this._parent&&this._parent.classList.remove(f,R)},this._config.animationSpeed)),this._element?.dispatchEvent(e)}remove(){const e=new Event(oe);this._parent&&p(this._parent,this._config.animationSpeed),this._element?.dispatchEvent(e)}toggle(){if(this._parent?.classList.contains(f)){this.expand();return}this.collapse()}maximize(){const e=new Event(se);this._parent&&(this._parent.style.height=`${this._parent.offsetHeight}px`,this._parent.style.width=`${this._parent.offsetWidth}px`,this._parent.style.transition="all .15s",setTimeout(()=>{const t=document.querySelector("html");t&&t.classList.add(u),this._parent&&(this._parent.classList.add(u),this._parent.classList.contains(f)&&this._parent.classList.add(b))},150)),this._element?.dispatchEvent(e)}minimize(){const e=new Event(ae);this._parent&&(this._parent.style.height="auto",this._parent.style.width="auto",this._parent.style.transition="all .15s",setTimeout(()=>{const t=document.querySelector("html");t&&t.classList.remove(u),this._parent&&(this._parent.classList.remove(u),this._parent?.classList.contains(b)&&this._parent.classList.remove(b))},10)),this._element?.dispatchEvent(e)}toggleMaximize(){if(this._parent?.classList.contains(u)){this.minimize();return}this.maximize()}}l(()=>{document.querySelectorAll(x).forEach(n=>{n.addEventListener("click",o=>{o.preventDefault();const s=o.target;new _(s,y).toggle()})}),document.querySelectorAll(k).forEach(n=>{n.addEventListener("click",o=>{o.preventDefault();const s=o.target;new _(s,y).remove()})}),document.querySelectorAll(O).forEach(n=>{n.addEventListener("click",o=>{o.preventDefault();const s=o.target;new _(s,y).toggleMaximize()})})});/**
 * --------------------------------------------
 * @file AdminLTE treeview.ts
 * @description Treeview plugin for AdminLTE.
 * @license MIT
 * --------------------------------------------
 */const P=".lte.treeview",re=`expanded${P}`,le=`collapsed${P}`,m="menu-open",q=".nav-item",de=".nav-link",A=".nav-treeview",ue='[data-lte-toggle="treeview"]',S={animationSpeed:300,accordion:!0};class B{_element;_config;constructor(e,t){this._element=e,this._config={...S,...t}}open(){const e=new Event(re);this._config.accordion&&this._element.parentElement?.querySelectorAll(`${q}.${m}`)?.forEach(o=>{if(o!==this._element.parentElement){o.classList.remove(m);const s=o?.querySelector(A);s&&p(s,this._config.animationSpeed)}}),this._element.classList.add(m);const t=this._element?.querySelector(A);t&&D(t,this._config.animationSpeed),this._element.dispatchEvent(e)}close(){const e=new Event(le);this._element.classList.remove(m);const t=this._element?.querySelector(A);t&&p(t,this._config.animationSpeed),this._element.dispatchEvent(e)}toggle(){this._element.classList.contains(m)?this.close():this.open()}}l(()=>{document.querySelectorAll(ue).forEach(e=>{e.addEventListener("click",t=>{const n=t.target,o=n.closest(q),s=n.closest(de),a=t.currentTarget;if((n?.getAttribute("href")==="#"||s?.getAttribute("href")==="#")&&t.preventDefault(),o){const T=a.dataset.accordion,Q=a.dataset.animationSpeed,Me={accordion:T===void 0?S.accordion:T==="true",animationSpeed:Q===void 0?S.animationSpeed:Number(Q)};new B(o,Me).toggle()}})})});/**
 * --------------------------------------------
 * @file AdminLTE direct-chat.ts
 * @description Direct chat for AdminLTE.
 * @license MIT
 * --------------------------------------------
 */const V=".lte.direct-chat",me=`expanded${V}`,he=`collapsed${V}`,Ee='[data-lte-toggle="chat-pane"]',pe=".direct-chat",L="direct-chat-contacts-open";class F{_element;constructor(e){this._element=e}toggle(){if(this._element.classList.contains(L)){const e=new Event(he);this._element.classList.remove(L),this._element.dispatchEvent(e)}else{const e=new Event(me);this._element.classList.add(L),this._element.dispatchEvent(e)}}}l(()=>{document.querySelectorAll(Ee).forEach(e=>{e.addEventListener("click",t=>{t.preventDefault();const o=t.target.closest(pe);o&&new F(o).toggle()})})});/**
 * --------------------------------------------
 * @file AdminLTE fullscreen.ts
 * @description Fullscreen plugin for AdminLTE.
 * @license MIT
 * --------------------------------------------
 */const z=".lte.fullscreen",fe=`maximized${z}`,ye=`minimized${z}`,K='[data-lte-toggle="fullscreen"]',Y='[data-lte-icon="maximize"]',H='[data-lte-icon="minimize"]';class X{_element;_config;constructor(e,t){this._element=e,this._config=t}inFullScreen(){const e=new Event(fe),t=document.querySelector(Y),n=document.querySelector(H);document.documentElement.requestFullscreen(),t&&(t.style.display="none"),n&&(n.style.display="block"),this._element.dispatchEvent(e)}outFullscreen(){const e=new Event(ye),t=document.querySelector(Y),n=document.querySelector(H);document.exitFullscreen(),t&&(t.style.display="block"),n&&(n.style.display="none"),this._element.dispatchEvent(e)}toggleFullScreen(){document.fullscreenEnabled&&(document.fullscreenElement?this.outFullscreen():this.inFullScreen())}}l(()=>{document.querySelectorAll(K).forEach(e=>{e.addEventListener("click",t=>{t.preventDefault();const o=t.target.closest(K);o&&new X(o,void 0).toggleFullScreen()})})});/**
 * --------------------------------------------
 * @file AdminLTE push-menu.ts
 * @description Push menu for AdminLTE.
 * @license MIT
 * --------------------------------------------
 */const G=".lte.push-menu",_e=`open${G}`,ge=`collapse${G}`,W="sidebar-mini",g="sidebar-collapse",U="sidebar-open",Z="sidebar-expand",ve="sidebar-overlay",be="menu-open",Ae=".app-sidebar",Se=".sidebar-menu",Le=".nav-item",Te=".nav-treeview",Ne=".app-wrapper",De=`[class*="${Z}"]`,j='[data-lte-toggle="sidebar"]',h={sidebarBreakpoint:992};class E{_element;_config;constructor(e,t){this._element=e,this._config={...h,...t}}menusClose(){document.querySelectorAll(Te).forEach(o=>{o.style.removeProperty("display"),o.style.removeProperty("height")});const n=document.querySelector(Se)?.querySelectorAll(Le);n&&n.forEach(o=>{o.classList.remove(be)})}expand(){const e=new Event(_e);document.body.classList.remove(g),document.body.classList.add(U),this._element.dispatchEvent(e)}collapse(){const e=new Event(ge);document.body.classList.remove(U),document.body.classList.add(g),this._element.dispatchEvent(e)}addSidebarBreakPoint(){const e=document.querySelector(De)?.classList??[],t=Array.from(e).find(s=>s.startsWith(Z))??"",n=document.getElementsByClassName(t)[0],o=globalThis.getComputedStyle(n,"::before").getPropertyValue("content");this._config={...this._config,sidebarBreakpoint:Number(o.replace(/[^\d.-]/g,""))},window.innerWidth<=this._config.sidebarBreakpoint?this.collapse():(document.body.classList.contains(W)||this.expand(),document.body.classList.contains(W)&&document.body.classList.contains(g)&&this.collapse())}toggle(){document.body.classList.contains(g)?this.expand():this.collapse()}init(){this.addSidebarBreakPoint()}}l(()=>{const i=document?.querySelector(Ae);if(i){const o=new E(i,h);o.init(),window.addEventListener("resize",()=>{o.init()})}const e=document.createElement("div");e.className=ve,document.querySelector(Ne)?.append(e);let t=!1;e.addEventListener("touchstart",()=>{t=!1},{passive:!0}),e.addEventListener("touchmove",()=>{t=!0},{passive:!0}),e.addEventListener("touchend",o=>{if(!t){o.preventDefault();const s=o.currentTarget;new E(s,h).collapse()}},{passive:!1}),e.addEventListener("click",o=>{o.preventDefault();const s=o.currentTarget;new E(s,h).collapse()}),document.querySelectorAll(j).forEach(o=>{o.addEventListener("click",s=>{s.preventDefault();let a=s.currentTarget;a?.dataset.lteToggle!=="sidebar"&&(a=a?.closest(j)),a&&(s?.preventDefault(),new E(a,h).toggle())})})});class Ce{config;liveRegion=null;focusHistory=[];constructor(e={}){this.config={announcements:!0,skipLinks:!0,focusManagement:!0,keyboardNavigation:!0,reducedMotion:!0,...e},this.init()}init(){this.config.announcements&&this.createLiveRegion(),this.config.skipLinks&&this.addSkipLinks(),this.config.focusManagement&&this.initFocusManagement(),this.config.keyboardNavigation&&this.initKeyboardNavigation(),this.config.reducedMotion&&this.respectReducedMotion(),this.initErrorAnnouncements(),this.initTableAccessibility(),this.initFormAccessibility()}createLiveRegion(){this.liveRegion||(this.liveRegion=document.createElement("div"),this.liveRegion.id="live-region",this.liveRegion.className="live-region",this.liveRegion.setAttribute("aria-live","polite"),this.liveRegion.setAttribute("aria-atomic","true"),this.liveRegion.setAttribute("role","status"),document.body.append(this.liveRegion))}addSkipLinks(){const e=document.createElement("div");e.className="skip-links";const t=document.createElement("a");t.href="#main",t.className="skip-link",t.textContent="Skip to main content";const n=document.createElement("a");n.href="#navigation",n.className="skip-link",n.textContent="Skip to navigation",e.append(t),e.append(n),document.body.insertBefore(e,document.body.firstChild),this.ensureSkipTargets()}ensureSkipTargets(){const e=document.querySelector('#main, main, [role="main"]');e&&!e.id&&(e.id="main"),e&&!e.hasAttribute("tabindex")&&e.setAttribute("tabindex","-1");const t=document.querySelector('#navigation, nav, [role="navigation"]');t&&!t.id&&(t.id="navigation"),t&&!t.hasAttribute("tabindex")&&t.setAttribute("tabindex","-1")}initFocusManagement(){document.addEventListener("keydown",e=>{e.key==="Tab"&&this.handleTabNavigation(e),e.key==="Escape"&&this.handleEscapeKey(e)}),this.initModalFocusManagement(),this.initDropdownFocusManagement()}handleTabNavigation(e){const t=this.getFocusableElements(),n=t.indexOf(document.activeElement);e.shiftKey?n<=0&&(e.preventDefault(),t.at(-1)?.focus()):n>=t.length-1&&(e.preventDefault(),t[0]?.focus())}getFocusableElements(){const e=["a[href]","button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])",'[tabindex]:not([tabindex="-1"])','[contenteditable="true"]'].join(", ");return Array.from(document.querySelectorAll(e))}handleEscapeKey(e){const t=document.querySelector(".modal.show"),n=document.querySelector(".dropdown-menu.show");t?(t.querySelector('[data-bs-dismiss="modal"]')?.click(),e.preventDefault()):n&&(document.querySelector('[data-bs-toggle="dropdown"][aria-expanded="true"]')?.click(),e.preventDefault())}initKeyboardNavigation(){document.addEventListener("keydown",e=>{const t=e.target;t.closest(".nav, .navbar-nav, .dropdown-menu")&&this.handleMenuNavigation(e),(e.key==="Enter"||e.key===" ")&&t.hasAttribute("role")&&t.getAttribute("role")==="button"&&!t.matches('button, input[type="button"], input[type="submit"]')&&(e.preventDefault(),t.click())})}handleMenuNavigation(e){if(!["ArrowUp","ArrowDown","ArrowLeft","ArrowRight","Home","End"].includes(e.key))return;const t=e.target,n=Array.from(t.closest(".nav, .navbar-nav, .dropdown-menu")?.querySelectorAll("a, button")||[]),o=n.indexOf(t);let s;switch(e.key){case"ArrowDown":case"ArrowRight":{s=o<n.length-1?o+1:0;break}case"ArrowUp":case"ArrowLeft":{s=o>0?o-1:n.length-1;break}case"Home":{s=0;break}case"End":{s=n.length-1;break}default:return}e.preventDefault(),n[s]?.focus()}respectReducedMotion(){if(globalThis.matchMedia("(prefers-reduced-motion: reduce)").matches){document.body.classList.add("reduce-motion"),document.documentElement.style.scrollBehavior="auto";const t=document.createElement("style");t.textContent=`
        *, *::before, *::after {
          animation-duration: 0.01ms !important;
          animation-iteration-count: 1 !important;
          transition-duration: 0.01ms !important;
        }
      `,document.head.append(t)}}initErrorAnnouncements(){new MutationObserver(t=>{t.forEach(n=>{n.addedNodes.forEach(o=>{if(o.nodeType===Node.ELEMENT_NODE){const s=o;s.matches(".alert-danger, .invalid-feedback, .error")&&this.announce(s.textContent||"Error occurred","assertive"),s.matches(".alert-success, .success")&&this.announce(s.textContent||"Success","polite")}})})}).observe(document.body,{childList:!0,subtree:!0})}initTableAccessibility(){document.querySelectorAll("table").forEach(e=>{if(e.hasAttribute("role")||e.setAttribute("role","table"),e.querySelectorAll("th").forEach(t=>{if(!t.hasAttribute("scope")){const n=t.closest("thead"),o=t.cellIndex===0;n?t.setAttribute("scope","col"):o&&t.setAttribute("scope","row")}}),!e.querySelector("caption")&&e.hasAttribute("title")){const t=document.createElement("caption");t.textContent=e.getAttribute("title")||"",e.insertBefore(t,e.firstChild)}})}initFormAccessibility(){document.querySelectorAll("input, select, textarea").forEach(e=>{const t=e;if(!t.labels?.length&&!t.hasAttribute("aria-label")&&!t.hasAttribute("aria-labelledby")){const n=t.getAttribute("placeholder");n&&t.setAttribute("aria-label",n)}if(t.hasAttribute("required")){const n=t.labels?.[0];if(n&&!n.querySelector(".required-indicator")){const o=document.createElement("span");o.className="required-indicator sr-only",o.textContent=" (required)",n.append(o)}}t.addEventListener("invalid",()=>{this.handleFormError(t)})})}handleFormError(e){const t=`${e.id||e.name}-error`;let n=document.getElementById(t);n||(n=document.createElement("div"),n.id=t,n.className="invalid-feedback",n.setAttribute("role","alert"),e.parentNode?.insertBefore(n,e.nextSibling)),n.textContent=e.validationMessage,e.setAttribute("aria-describedby",t),e.classList.add("is-invalid"),this.announce(`Error in ${e.labels?.[0]?.textContent||e.name}: ${e.validationMessage}`,"assertive")}initModalFocusManagement(){document.addEventListener("shown.bs.modal",e=>{const n=e.target.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])');n.length>0&&n[0].focus(),this.focusHistory.push(document.activeElement)}),document.addEventListener("hidden.bs.modal",()=>{const e=this.focusHistory.pop();e&&e.focus()})}initDropdownFocusManagement(){document.addEventListener("shown.bs.dropdown",e=>{const o=e.target.querySelector(".dropdown-menu")?.querySelector("a, button");o&&o.focus()})}announce(e,t="polite"){this.liveRegion||this.createLiveRegion(),this.liveRegion&&(this.liveRegion.setAttribute("aria-live",t),this.liveRegion.textContent=e,setTimeout(()=>{this.liveRegion&&(this.liveRegion.textContent="")},1e3))}focusElement(e){const t=document.querySelector(e);t&&(t.focus(),t.scrollIntoView({behavior:"smooth",block:"center"}))}trapFocus(e){const t=e.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])'),n=Array.from(t),o=n[0],s=n.at(-1);e.addEventListener("keydown",a=>{a.key==="Tab"&&(a.shiftKey?document.activeElement===o&&(s?.focus(),a.preventDefault()):document.activeElement===s&&(o.focus(),a.preventDefault()))})}addLandmarks(){if(!document.querySelector("main")){const n=document.querySelector(".app-main");n&&(n.setAttribute("role","main"),n.id="main")}document.querySelectorAll(".navbar-nav, .nav").forEach((n,o)=>{n.hasAttribute("role")||n.setAttribute("role","navigation"),n.hasAttribute("aria-label")||n.setAttribute("aria-label",`Navigation ${o+1}`)});const t=document.querySelector('form[role="search"], .navbar-search');t&&!t.hasAttribute("role")&&t.setAttribute("role","search")}}const J=i=>new Ce(i);l(()=>{new v(document.body).holdTransition(),J({announcements:!0,skipLinks:!0,focusManagement:!0,keyboardNavigation:!0,reducedMotion:!0}).addLandmarks(),setTimeout(()=>{document.body.classList.add("app-loaded")},400)}),c.CardWidget=_,c.DirectChat=F,c.FullScreen=X,c.Layout=v,c.PushMenu=E,c.Treeview=B,c.initAccessibility=J}))});export default Re();
