/*! * Tabler v1.6.1 (https://tabler.io) * Copyright 2018-2026 The Tabler Authors * Copyright 2018-2026 codecalm.net Paweł Kuna * Licensed under MIT (https://github.com/tabler/tabler/blob/master/LICENSE) */ !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).tabler={})}(this,function(t){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});var e=Object.defineProperty,i=(t,i)=>{let n={};for(var s in t)e(n,s,{get:t[s],enumerable:!0});return i||e(n,Symbol.toStringTag,{value:"Module"}),n},n=new Map,s={set(t,e,i){n.has(t)||n.set(t,new Map);const s=n.get(t);s.has(e)||0===s.size?s.set(e,i):console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(s.keys())[0]}.`)},get:(t,e)=>n.has(t)&&n.get(t).get(e)||null,remove(t,e){if(!n.has(t))return;const i=n.get(t);i.delete(e),0===i.size&&n.delete(t)}},r="transitionend",o=t=>(t&&"undefined"!=typeof CSS&&"function"==typeof CSS.escape&&(t=t.replace(/#([^\s"#']+)/g,(t,e)=>`#${CSS.escape(e)}`)),t),a=t=>null==t?`${t}`:Object.prototype.toString.call(t).match(/\s([a-z]+)/i)[1].toLowerCase(),l=t=>{t.dispatchEvent(new Event(r))},c=t=>t&&"object"==typeof t&&void 0!==t.jquery?t[0]:t,h=t=>!(!(t=c(t))||"object"!=typeof t)&&void 0!==t.nodeType,u=t=>(t=c(t),h(t)?t:"string"==typeof t&&t.length>0?document.querySelector(o(t)):null),d=t=>{if(!h(t)||0===t.getClientRects().length)return!1;const e="visible"===getComputedStyle(t).getPropertyValue("visibility"),i=t.closest("details:not([open])");if(!i)return e;if(i!==t){const e=t.closest("summary");if(e&&e.parentNode!==i)return!1;if(null===e)return!1}return e},f=t=>!t||t.nodeType!==Node.ELEMENT_NODE||(!!t.classList.contains("disabled")||("disabled"in t&&void 0!==t.disabled?Boolean(t.disabled):t.hasAttribute("disabled")&&"false"!==t.getAttribute("disabled"))),p=t=>{if(!document.documentElement.attachShadow)return null;if("function"==typeof t.getRootNode){const e=t.getRootNode();return e instanceof ShadowRoot?e:null}return t instanceof ShadowRoot?t:t.parentNode?p(t.parentNode):null},m=()=>{},g=t=>{t.offsetHeight},_=()=>"rtl"===document.documentElement.dir,v=()=>!window.jQuery||document.body.hasAttribute("data-bs-no-jquery")||document.body.hasAttribute("data-tblr-no-jquery")?null:window.jQuery,b=[],y=t=>{"loading"===document.readyState?(b.length||document.addEventListener("DOMContentLoaded",()=>{for(const t of b)t()}),b.push(t)):t()},w=t=>{y(()=>{const e=v();if(e){const i=t.NAME,n=e.fn[i];e.fn[i]=t.jQueryInterface,e.fn[i].Constructor=t,e.fn[i].noConflict=()=>(e.fn[i]=n,t.jQueryInterface)}})},A=(t,e=[],i=t)=>"function"==typeof t?t.call(e[0],...e.slice(1)):i,E=(t,e,i=!0)=>{if(!i)return void A(t);const n=(t=>{if(!t)return 0;let{transitionDuration:e,transitionDelay:i}=window.getComputedStyle(t);return Number.parseFloat(e)||Number.parseFloat(i)?(e=e.split(",")[0],i=i.split(",")[0],1e3*(Number.parseFloat(e)+Number.parseFloat(i))):0})(e)+5;let s=!1;const o=({target:i})=>{i===e&&(s=!0,e.removeEventListener(r,o),A(t))};e.addEventListener(r,o),setTimeout(()=>{s||l(e)},n)},x=(t,e,i,n)=>{const s=t.length;let r=t.indexOf(e);return-1===r?!i&&n?t[s-1]:t[0]:(r+=i?1:-1,n&&(r=(r+s)%s),t[Math.max(0,Math.min(r,s-1))])},C=/[^.]*(?=\..*)\.|.*/,S=/\..*/,T=/::\d+$/,k={},O=1,D={mouseenter:"mouseover",mouseleave:"mouseout"},$=new Set(["click","dblclick","mouseup","mousedown","contextmenu","mousewheel","DOMMouseScroll","mouseover","mouseout","mousemove","selectstart","selectend","keydown","keypress","keyup","orientationchange","touchstart","touchmove","touchend","touchcancel","pointerdown","pointermove","pointerup","pointerleave","pointercancel","gesturestart","gesturechange","gestureend","focus","blur","change","reset","select","submit","focusin","focusout","load","unload","beforeunload","resize","move","DOMContentLoaded","readystatechange","error","abort","scroll"]);function I(t,e){return e&&`${e}::${O++}`||t.uidEvent||O++}function L(t){const e=I(t);return t.uidEvent=e,k[e]=k[e]||{},k[e]}function M(t,e,i=null){return Object.values(t).find(t=>t.callable===e&&t.delegationSelector===i)}function N(t,e,i){const n="string"==typeof e,s=n?i:e||i;let r=z(t);return $.has(r)||(r=t),[n,s,r]}function P(t,e,i,n,s){if("string"!=typeof e||!t)return;let[r,o,a]=N(e,i,n);if(e in D){const t=t=>function(e){const i=e;if(!i.relatedTarget||i.relatedTarget!==i.delegateTarget&&!i.delegateTarget.contains(i.relatedTarget))return t.call(this,e)};o=t(o)}const l=L(t),c=l[a]||(l[a]={}),h=M(c,o,r?i:null);if(h)return void(h.oneOff=h.oneOff&&s);const u=I(o,e.replace(C,"")),d=r?function(t,e,i){return function n(s){const r=t.querySelectorAll(e);for(let{target:o}=s;o&&o!==this;o=o.parentNode)for(const a of r)if(a===o)return W(s,{delegateTarget:o}),n.oneOff&&H.off(t,s.type,e,i),i.apply(o,[s])}}(t,i,o):function(t,e){return function i(n){return W(n,{delegateTarget:t}),i.oneOff&&H.off(t,n.type,e),e.apply(t,[n])}}(t,o);d.delegationSelector=r?i:null,d.callable=o,d.oneOff=s,d.uidEvent=u,c[u]=d,t.addEventListener(a,d,r)}function j(t,e,i,n,s){const r=M(e[i],n,null!=s?s:null);r&&(t.removeEventListener(i,r,Boolean(s)),delete e[i][r.uidEvent])}function F(t,e,i,n){const s=e[i]||{};for(const[r,o]of Object.entries(s))r.includes(n)&&j(t,e,i,o.callable,o.delegationSelector)}function z(t){return t=t.replace(S,""),D[t]||t}var H={on(t,e,i,n){P(t,e,i,n,!1)},one(t,e,i,n){P(t,e,i,n,!0)},off(t,e,i,n){if("string"!=typeof e||!t)return;const[s,r,o]=N(e,i,n),a=o!==e,l=L(t),c=l[o]||{},h=e.startsWith(".");if(void 0===r){if(h)for(const i of Object.keys(l))F(t,l,i,e.slice(1));for(const[i,n]of Object.entries(c)){const s=i.replace(T,"");a&&!e.includes(s)||j(t,l,o,n.callable,n.delegationSelector)}}else{if(!Object.keys(c).length)return;j(t,l,o,r,s?i:null)}},trigger(t,e,i){if("string"!=typeof e||!t)return null;const n=v();let s=null,r=!0,o=!0,a=!1;e!==z(e)&&n&&(s=n.Event(e,i),n(t).trigger(s),r=!s.isPropagationStopped(),o=!s.isImmediatePropagationStopped(),a=s.isDefaultPrevented());const l=W(new Event(e,{bubbles:r,cancelable:!0}),i);return a&&l.preventDefault(),o&&t.dispatchEvent(l),l.defaultPrevented&&s&&s.preventDefault(),l}};function W(t,e={}){for(const[i,n]of Object.entries(e))try{t[i]=n}catch(e){Object.defineProperty(t,i,{configurable:!0,get:()=>n})}return t}function B(t){if("true"===t)return!0;if("false"===t)return!1;if(t===Number(t).toString())return Number(t);if(""===t||"null"===t)return null;if("string"!=typeof t)return t;try{return JSON.parse(decodeURIComponent(t))}catch(e){return t}}function R(t){return t.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`)}var V=["tblr","bs"],q={setDataAttribute(t,e,i){t.setAttribute(`data-bs-${R(e)}`,i)},removeDataAttribute(t,e){for(const i of V)t.removeAttribute(`data-${i}-${R(e)}`)},getDataAttributes(t){if(!t)return{};const e={};for(const i of V){const n=Object.keys(t.dataset).filter(t=>t.startsWith(i)&&!t.startsWith(`${i}Config`));for(const s of n){let n=s.replace(new RegExp(`^${i}`),"");n=n.charAt(0).toLowerCase()+n.slice(1),n in e||(e[n]=B(t.dataset[s]))}}return e},getDataAttribute(t,e){for(const i of V){const n=t.getAttribute(`data-${i}-${R(e)}`);if(null!==n)return B(n)}return null}};function Y(t){return Y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Y(t)}function U(t){var e=function(t,e){if("object"!=Y(t)||!t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var n=i.call(t,e||"default");if("object"!=Y(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Y(e)?e:e+""}function K(t,e,i){return(e=U(e))in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function X(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),i.push.apply(i,n)}return i}function Q(t){for(var e=1;e{this._element&&t()},e,i)}_getConfig(t){return t=this._mergeConfigObj(t,this._element),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}static getInstance(t){return s.get(u(t),this.DATA_KEY)}static getOrCreateInstance(t,e={}){return this.getInstance(t)||new this(t,"object"==typeof e?e:void 0)}static get VERSION(){return"5.3.8"}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}static eventName(t){return`${t}${this.EVENT_KEY}`}},J=t=>{let e=t.getAttribute("data-tblr-target")||t.getAttribute("data-bs-target");if(!e||"#"===e){let i=t.getAttribute("href");if(!i||!i.includes("#")&&!i.startsWith("."))return null;i.includes("#")&&!i.startsWith("#")&&(i=`#${i.split("#")[1]}`),e=i&&"#"!==i?i.trim():null}return e?e.split(",").map(t=>o(t)).join(","):null},tt={find:(t,e=document.documentElement)=>Array.from(e.querySelectorAll(t)),findOne:(t,e=document.documentElement)=>e.querySelector(t),children:(t,e)=>Array.from(t.children).filter(t=>t.matches(e)),parents(t,e){const i=[];let n=t.parentNode&&t.parentNode.closest(e);for(;n;)i.push(n),n=n.parentNode&&n.parentNode.closest(e);return i},prev(t,e){let i=t.previousElementSibling;for(;i;){if(i.matches(e))return[i];i=i.previousElementSibling}return[]},next(t,e){let i=t.nextElementSibling;for(;i;){if(i.matches(e))return[i];i=i.nextElementSibling}return[]},focusableChildren(t){const e=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map(t=>`${t}:not([tabindex^="-"])`).join(",");return this.find(e,t).filter(t=>!f(t)&&d(t))},getSelectorFromElement(t){const e=J(t);return e&&tt.findOne(e)?e:null},getElementFromSelector(t){const e=J(t);return e?tt.findOne(e):null},getMultipleElementsFromSelector(t){const e=J(t);return e?tt.find(e):[]}},et=(t,e="hide")=>{const i=`click.dismiss${t.EVENT_KEY}`,n=t.NAME;H.on(document,i,`[data-bs-dismiss="${n}"], [data-tblr-dismiss="${n}"]`,function(i){if(["A","AREA"].includes(this.tagName)&&i.preventDefault(),f(this))return;const s=tt.getElementFromSelector(this)||this.closest(`.${n}`);((t,e)=>{const i=t[e];"function"==typeof i&&i.call(t)})(t.getOrCreateInstance(s),e)})},it=(t,e,i=null)=>{for(const n of tt.find(t))if(!i||i(n))try{e.getOrCreateInstance(n)}catch(t){console.error(t)}},nt="autosize",st=`resized.bs.${nt}`,rt=`[data-bs-toggle="${nt}"], [data-tblr-toggle="${nt}"]`,ot={},at={},lt=class extends Z{constructor(t,e){var i;super(t,e),this._observer=null,this._inlineStyle="",this._width=0,this._onInput=()=>this.update(),this._element&&(this._inlineStyle=null!==(i=this._element.getAttribute("style"))&&void 0!==i?i:"",this._element.style.resize="none",this._element.style.overflowY="hidden",this._element.addEventListener("input",this._onInput),"undefined"!=typeof ResizeObserver&&(this._observer=new ResizeObserver(()=>{this._element.offsetWidth!==this._width&&(this._width=this._element.offsetWidth,this.update())}),this._observer.observe(this._element)),this.update())}static get Default(){return ot}static get DefaultType(){return at}static get NAME(){return nt}update(){const t=this._element;if(!t.isConnected||0===t.getClientRects().length)return;const{scrollTop:e}=document.documentElement,i=getComputedStyle(t),n="border-box"===i.boxSizing?Number.parseFloat(i.borderTopWidth)+Number.parseFloat(i.borderBottomWidth):-(Number.parseFloat(i.paddingTop)+Number.parseFloat(i.paddingBottom)),s=t.style.height;t.style.overflowY="hidden",t.style.height="auto";const r=`${t.scrollHeight+n}px`;t.style.height=r,t.style.overflowY=t.scrollHeight>t.clientHeight?"auto":"hidden",document.documentElement.scrollTop=e,r!==s&&H.trigger(t,st)}dispose(){var t;this._element.removeEventListener("input",this._onInput),null===(t=this._observer)||void 0===t||t.disconnect(),this._inlineStyle?this._element.setAttribute("style",this._inlineStyle):this._element.removeAttribute("style"),super.dispose()}};function ct(t,e,i,n,s,r,o){try{var a=t[r](o),l=a.value}catch(t){return void i(t)}a.done?e(l):Promise.resolve(l).then(n,s)}function ht(t){return function(){var e=this,i=arguments;return new Promise(function(n,s){var r=t.apply(e,i);function o(t){ct(r,n,s,o,a,"next",t)}function a(t){ct(r,n,s,o,a,"throw",t)}o(void 0)})}}it(rt,lt);var ut="clipboard",dt=`.bs.${ut}`,ft=`copied${dt}`,pt=`error${dt}`,mt=`[data-bs-toggle="${ut}"], [data-tblr-toggle="${ut}"]`,gt=`.${ut}-label`,_t=`.${ut}-feedback`,vt={target:null,text:null,delay:2e3},bt={target:"(string|null)",text:"(string|number|null)",delay:"number"},yt=(t,e)=>{e?t.setAttribute("hidden",""):t.removeAttribute("hidden")},wt=class extends Z{constructor(t,e){if(super(t,e),this._labels=[],this._feedbacks=[],this._timeout=0,this._element){this._labels=tt.find(gt,this._element),this._feedbacks=tt.find(_t,this._element);for(const t of this._feedbacks)yt(t,!0),t.hasAttribute("role")||t.setAttribute("role","status");H.on(this._element,`click${dt}`,t=>{t.preventDefault(),this.copy()})}}static get Default(){return vt}static get DefaultType(){return bt}static get NAME(){return ut}get text(){var t;const{text:e,target:i}=this._config;if(null!==e&&""!==e)return String(e);const n=i?u(i):null;return n?n instanceof HTMLInputElement||n instanceof HTMLTextAreaElement?n.value:(n instanceof HTMLElement?n.innerText:null!==(t=n.textContent)&&void 0!==t?t:"").trim():""}copy(){var t=this;return ht(function*(){const{text:e}=t;if(e&&navigator.clipboard){try{yield navigator.clipboard.writeText(e)}catch(e){return void H.trigger(t._element,pt)}t._showCopied(),H.trigger(t._element,ft)}else H.trigger(t._element,pt)})()}reset(){window.clearTimeout(this._timeout),this._toggleCopied(!1)}dispose(){window.clearTimeout(this._timeout),super.dispose()}_mergeConfigObj(t,e){var i;const n=null!==(i=null==e?void 0:e.getAttribute("data-bs-text"))&&void 0!==i?i:null==e?void 0:e.getAttribute("data-tblr-text"),s=null==n?{}:{text:n};return super._mergeConfigObj(Q(Q({},s),t),e)}_showCopied(){window.clearTimeout(this._timeout),this._toggleCopied(!0),this._config.delay>0&&(this._timeout=window.setTimeout(()=>this._toggleCopied(!1),this._config.delay))}_toggleCopied(t){this._element.classList.toggle("copied",t);for(const e of this._labels)yt(e,t);for(const e of this._feedbacks)yt(e,!t)}};it(mt,wt);var At="confetti",Et=`.bs.${At}`,xt=`start${Et}`,Ct=`end${Et}`,St=`click${Et}.data-api`,Tt=`${At}-canvas`,kt=`[data-bs-toggle="${At}"], [data-tblr-toggle="${At}"]`,Ot=[["blue","#066fd1"],["azure","#4299e1"],["indigo","#4263eb"],["purple","#ae3ec9"],["pink","#d6336c"],["red","#d63939"],["orange","#f76707"],["yellow","#f59f00"],["lime","#74b816"],["green","#2fb344"],["teal","#0ca678"],["cyan","#17a2b8"]],Dt=1e3/60,$t={count:220,duration:3500,decay:3.5,fade:.15,speed:1,colors:null},It={count:"number",duration:"number",decay:"number",fade:"number",speed:"number",colors:"(array|string|null)"},Lt={canvas:null,context:null,particles:[],emitters:[],frame:0,lastTick:0,add(t){return this._mount(),!!this.context&&(this.emitters.push(t),this.frame||(this.lastTick=performance.now(),this.frame=requestAnimationFrame(t=>this._tick(t))),!0)},_mount(){if(this.canvas)return;const t=document.createElement("canvas");t.className=Tt,t.setAttribute("aria-hidden","true"),Object.assign(t.style,{position:"fixed",inset:"0",width:"100%",height:"100%",zIndex:"9999",pointerEvents:"none",display:"block"});const e=t.getContext("2d");e&&(document.body.append(t),this.canvas=t,this.context=e,this._resize(),window.addEventListener("resize",this._onResize))},_unmount(){var t;cancelAnimationFrame(this.frame),this.frame=0,window.removeEventListener("resize",this._onResize),null===(t=this.canvas)||void 0===t||t.remove(),this.canvas=null,this.context=null,this.particles=[],this.emitters=[]},_onResize:()=>{Lt._resize()},_resize(){if(!this.canvas||!this.context)return;const t=Math.min(window.devicePixelRatio||1,2);this.canvas.width=document.documentElement.clientWidth*t,this.canvas.height=window.innerHeight*t,this.context.setTransform(t,0,0,t,0,0)},_spawn(t){var e;const{colors:i,config:n}=t,s=window.innerHeight/800*n.speed;return{emitter:t,x:Math.random()*window.innerWidth,y:-20-30*Math.random(),w:6+3.6*Math.random(),h:10+4.4*Math.random(),color:null!==(e=i[Math.floor(Math.random()*i.length)])&&void 0!==e?e:"#000",vx:1.2*(Math.random()-.5),vy:(1.5+2.1*Math.random())*s,speed:s,angle:Math.random()*Math.PI*2,spin:.25*(Math.random()-.5),flip:Math.random()*Math.PI*2,flipSpeed:.12+.15*Math.random(),sway:Math.random()*Math.PI*2,alpha:1}},_pour(t,e){const{count:i,duration:n,decay:s}=t.config,r=e-t.startedAt;if(t.stopped||r>=n)return;const o=r/n,a=Math.round(i*(1-Math.exp(-s*o))/(1-Math.exp(-s)));for(;t.emitted=0;t--){const n=this.particles[t],r=s*(1-n.emitter.config.fade);n.sway+=.05*i,n.vy=Math.min(n.vy+.025*n.speed*i,4.2*n.speed),n.x+=(n.vx+.7*Math.sin(n.sway))*i,n.y+=n.vy*i,n.angle+=n.spin*i,n.flip+=n.flipSpeed*i,n.y>r&&(n.alpha=Math.max(0,1-(n.y-r)/(s-r))),0!==n.alpha?(e.save(),e.globalAlpha=n.alpha,e.translate(n.x,n.y),e.rotate(n.angle),e.scale(1,Math.cos(n.flip)),e.fillStyle=n.color,e.fillRect(-n.w/2,-n.h/2,n.w,n.h),e.restore()):this.particles.splice(t,1)}this._settle(t),0!==this.emitters.length?this.frame=requestAnimationFrame(t=>this._tick(t)):this._unmount()},_settle(t){for(let e=this.emitters.length-1;e>=0;e--){const i=this.emitters[e],n=!i.stopped&&t-i.startedAtt.emitter===i);n||s||(this.emitters.splice(e,1),i.done=!0,i.detached||H.trigger(i.element,Ct))}}},Mt=class extends Z{constructor(t,e){super(t,e),this._emitter=null}static get Default(){return $t}static get DefaultType(){return It}static get NAME(){return At}burst(){const t=H.trigger(this._element,xt);(null==t?void 0:t.defaultPrevented)||(this.stop(),window.matchMedia("(prefers-reduced-motion: reduce)").matches?H.trigger(this._element,Ct):(this._emitter={element:this._element,config:this._config,colors:this._colors(),startedAt:performance.now(),emitted:0,stopped:!1,done:!1,detached:!1},Lt.add(this._emitter)||(this._emitter=null,H.trigger(this._element,Ct))))}stop(){this._emitter&&!this._emitter.done&&(this._emitter.stopped=!0),this._emitter=null}dispose(){this._emitter&&(this._emitter.detached=!0),this.stop(),super.dispose()}_configAfterMerge(t){return"string"==typeof t.colors&&(t.colors=t.colors.split(",").map(t=>t.trim()).filter(Boolean)),t}_colors(){const{colors:t}=this._config;if(t&&t.length>0)return t;const e=getComputedStyle(document.documentElement);return Ot.map(([t,i])=>e.getPropertyValue(`--tblr-${t}`).trim()||i)}};H.on(document,St,kt,function(t){if(["A","AREA"].includes(this.tagName)&&t.preventDefault(),f(this))return;const e=tt.getElementFromSelector(this)||this,i=q.getDataAttributes(this),n=Mt.getOrCreateInstance(e,i);e!==this&&(n._config=n._getConfig(i)),n.burst()});var Nt="countup",Pt=`.bs.${Nt}`,jt=`data-${Nt}`,Ft=`start${Pt}`,zt=`complete${Pt}`,Ht=`data-tblr-${Nt}`,Wt=`[${jt}], [${Ht}]`,Bt={autoAnimate:!0,startVal:0,duration:2,decimalPlaces:0,useEasing:!0,useGrouping:!0,separator:",",decimal:".",prefix:"",suffix:"",format:"number",formatter:null},Rt={autoAnimate:"boolean",startVal:"number",duration:"number",decimalPlaces:"number",useEasing:"boolean",useGrouping:"boolean",separator:"string",decimal:"string",prefix:"string",suffix:"string",format:"string",formatter:"(function|null)"},Vt=(t,e)=>{if("number"==typeof t)return t;if("time"===e){const e=/^\D{0,32}(\d{1,4}):(\d{1,2})/.exec(t);return e?60*Number(e[1])+Number(e[2]):NaN}return Number.parseFloat(t.replace(/[^0-9.-]/g,""))},qt=class extends Z{constructor(t,e){var i;if(super(t,e),this._endVal=0,this._value=0,this._frame=0,this._observer=null,this._from=0,this._elapsed=0,this._running=!1,this._paused=!1,this._started=!1,!this._element)return;const n=Vt(null!==(i=this._element.textContent)&&void 0!==i?i:"",this._config.format);Number.isNaN(n)||(this._endVal=n,this._value=this._config.startVal,this._print(this._value),this._config.autoAnimate&&"undefined"!=typeof IntersectionObserver?(this._observer=new IntersectionObserver(t=>this._observerCallback(t)),this._observer.observe(this._element)):this.start())}static get Default(){return Bt}static get DefaultType(){return Rt}static get NAME(){return Nt}start(){this._animate(this._value,this._endVal)}reset(){this._stop(),this._started=!1,this._value=this._config.startVal,this._print(this._value)}update(t){const e=Vt(t,this._config.format);Number.isNaN(e)||(this._endVal=e,this._animate(this._value,this._endVal))}pauseResume(){this._paused?(this._paused=!1,this._run()):this._running&&(this._paused=!0,cancelAnimationFrame(this._frame))}dispose(){var t;this._stop(),null===(t=this._observer)||void 0===t||t.disconnect(),super.dispose()}_mergeConfigObj(t,e){var i;let n={};const s=null!==(i=null==e?void 0:e.getAttribute(jt))&&void 0!==i?i:null==e?void 0:e.getAttribute(Ht);if(s)try{const t=JSON.parse(s);t&&"object"==typeof t&&!Array.isArray(t)&&(n=t)}catch(t){}return super._mergeConfigObj(Q(Q({},(t=>{const e=Q({},t);for(const[i,n]of Object.entries(t)){const t=Rt[i];"string"!=typeof n||"number"!==t||""===n.trim()||Number.isNaN(Number(n))?"string"!=typeof n||"boolean"!==t||"true"!==n&&"false"!==n?"number"==typeof n&&"string"===t&&(e[i]=String(n)):e[i]="true"===n:e[i]=Number(n)}return e})(n)),t),e)}_observerCallback(t){var e;t.some(t=>t.isIntersecting)&&(null===(e=this._observer)||void 0===e||e.disconnect(),this._observer=null,this._started||this.start())}_animate(t,e){this._stop(),this._started=!0,t===e||this._config.duration<=0||window.matchMedia("(prefers-reduced-motion: reduce)").matches?this._finish(e):(this._from=t,this._elapsed=0,this._running=!0,H.trigger(this._element,Ft),this._run())}_run(){const t=1e3*this._config.duration;let e=performance.now();const i=n=>{this._elapsed+=n-e,e=n;const s=Math.min(1,this._elapsed/t),r=this._config.useEasing?(t=>t>=1?1:1024*(1-Math.pow(2,-10*t))/1023)(s):s;this._value=this._from+(this._endVal-this._from)*r,this._print(this._value),s<1?this._frame=requestAnimationFrame(i):this._finish(this._endVal)};this._frame=requestAnimationFrame(i)}_finish(t){this._running=!1,this._paused=!1,this._value=t,this._print(t),H.trigger(this._element,zt)}_stop(){cancelAnimationFrame(this._frame),this._running=!1,this._paused=!1}_print(t){this._element.textContent=this._format(t)}_format(t){const{decimalPlaces:e,useGrouping:i,separator:n,decimal:s,prefix:r,suffix:o,format:a,formatter:l}=this._config;if(l)return l(t);if("time"===a){const e=Math.sign(t)*Math.round(Math.abs(t)),i=Math.abs(e);return`${e<0?"-":""}${r}${Math.floor(i/60)}:${String(i%60).padStart(2,"0")}${o}`}const c=t.toFixed(e),[h,u]=c.replace("-","").split("."),d=i?h.replace(/\B(?=(\d{3})+(?!\d))/g,n):h;return`${Number(c)<0?"-":""}${r}${d}${u?s+u:""}${o}`}};it(Wt,qt);var Yt="datepicker",Ut=`.bs.${Yt}`,Kt=".data-api",Xt=`change${Ut}`,Qt=`show${Ut}`,Gt=`shown${Ut}`,Zt=`hide${Ut}`,Jt=`hidden${Ut}`,te=`focusin${Ut}`,ee=`click${Ut}${Kt}`,ie=`focusin${Ut}${Kt}`,ne='[data-bs-toggle="datepicker"], [data-tblr-toggle="datepicker"]',se='input[type="hidden"], input[name]',re=/^(\d{4})-(\d{2})-(\d{2})$/,oe=["annotations","months","motion","time","weeks"],ae=new WeakMap,le={datepickerTheme:null,dateMin:null,dateMax:null,dateFormat:null,displayElement:null,displayMonthsCount:1,firstWeekday:1,inline:!1,locale:"default",positionElement:null,selectedDates:[],selectionMode:"single",placement:"left",vcpOptions:{}},ce={datepickerTheme:"(null|string)",dateMin:"(null|string|number|object|date)",dateMax:"(null|string|number|object|date)",dateFormat:"(null|object|function)",displayElement:"(null|string|element|boolean)",displayMonthsCount:"number",firstWeekday:"number",inline:"boolean",locale:"string",positionElement:"(null|string|element)",selectedDates:"array",selectionMode:"string",placement:"string",vcpOptions:"object"},he=t=>{setTimeout(()=>setTimeout(t))},ue=class extends Z{constructor(t,e){super(t,e),this._calendar=null,this._isShown=!1,this._isShowing=!1,this._isHiding=!1,this._isSilent=!1,this._skipPluginShow=!1,this._resolveShown=null,this._hideTimeout=0,this._isInput=!1,this._isInline=!1,this._boundInput=null,this._positionElement=null,this._displayElement=null,this._themeObserver=null,this._onFocusIn=null,this._onResize=()=>this._alignToPositionElement(),this._selectedDates=[],this._element&&window.VanillaCalendarPro&&this._initCalendar()}static get Default(){return le}static get DefaultType(){return ce}static get NAME(){return Yt}get calendar(){return this._calendar}toggle(){return this._config.inline?Promise.resolve():this._isShown?this.hide():this.show()}show(){var t=this;return ht(function*(){if(t._config.inline)return;if(!t._calendar||f(t._element)||t._isShown||t._isShowing)return;const e=H.trigger(t._element,Qt);(null==e?void 0:e.defaultPrevented)||(t._isShowing=!0,t._skipPluginShow=!1,t._calendar.show(),t._isShown||(yield new Promise(e=>{t._resolveShown=e,he(e)})),t._resolveShown=null,t._isShowing=!1)})()}hide(){var t=this;return ht(function*(){if(t._config.inline)return;if(!t._calendar||!t._isShown)return;const e=H.trigger(t._element,Zt);(null==e?void 0:e.defaultPrevented)||(t._skipPluginShow=!0,he(()=>{t._skipPluginShow=!1}),t._isHiding=!0,t._calendar.hide(),t._isHiding=!1)})()}dispose(){var t;if(window.clearTimeout(this._hideTimeout),null===(t=this._themeObserver)||void 0===t||t.disconnect(),window.removeEventListener("resize",this._onResize),this._onFocusIn&&H.off(document,te,this._onFocusIn),this._calendar){this._calendar.destroy();const t=this._calendar.context.mainElement;if(t&&t!==this._element&&t.isConnected)if(this._isInput)t.replaceWith(this._element);else if(this._boundInput){const e=tt.findOne(se,t);e?e.replaceWith(this._boundInput):t.append(this._boundInput)}}super.dispose()}getSelectedDates(){var t;const e=null===(t=this._calendar)||void 0===t||null===(t=t.context)||void 0===t?void 0:t.selectedDates;return e&&e.length>0?[...e]:[...this._selectedDates]}setSelectedDates(t){var e;this._selectedDates=t.map(t=>this._toIsoDate(t)),null===(e=this._calendar)||void 0===e||e.set(Q({selectedDates:this._selectedDates},this._monthOf(this._selectedDates[0]))),this._writeSelection(this._selectedDates)}_initCalendar(){this._isInput="INPUT"===this._element.tagName,this._isInline=this._config.inline,this._isInline&&!this._isInput&&(this._boundInput=tt.findOne(se,this._element)),this._positionElement=this._resolvePositionElement(),this._displayElement=this._resolveDisplayElement(),this._selectedDates=[...this._config.selectedDates],this._calendar=new window.VanillaCalendarPro.Calendar(this._element,this._buildCalendarOptions()),this._calendar.init(),this._boundInput&&!this._boundInput.isConnected&&this._element.after(this._boundInput),this._setupThemeObserver(),this._setupDismissOnFocus(),this._isInput&&this._element.value&&this._parseInputValue(),this._updateDisplayWithSelectedDates()}_updateDisplayWithSelectedDates(){0!==this._selectedDates.length&&this._writeSelection(this._selectedDates)}_writeSelection(t){const e=this._formatDateForInput(t);this._isInput&&(this._element.value=e,ae.set(this._element,{text:e,dates:[...t]})),this._boundInput&&(this._boundInput.value=t.join(",")),this._displayElement&&(this._displayElement.textContent=e)}_resolvePositionElement(){let{positionElement:t}=this._config;return"string"==typeof t&&(t=u(t)),t||!this._isInput||this._isInline||(t=this._element.closest(".input-icon, .input-group")),t||this._element}_resolveDisplayElement(){const{displayElement:t}=this._config;return"string"==typeof t?u(t):!0===t||null===t&&!this._isInput&&!this._isInline?tt.findOne("[data-bs-datepicker-display], [data-tblr-datepicker-display]",this._element)||this._element:t}_alignToPositionElement(){var t;const e=null===(t=this._calendar)||void 0===t||null===(t=t.context)||void 0===t?void 0:t.mainElement;if(!e||this._isInline||!this._positionElement||this._positionElement===this._element)return;const i=this._positionElement.getBoundingClientRect(),n=e.getBoundingClientRect();let{placement:s}=this._config;"auto"===s&&(s=i.left+n.width>document.documentElement.clientWidth?"right":"left");const r="right"===s?i.right-n.width:"center"===s?i.left+(i.width-n.width)/2:i.left;e.style.left=`${r+window.scrollX}px`}_getThemeAncestor(){return this._element.closest("[data-bs-theme]")}_getEffectiveTheme(){var t;const{datepickerTheme:e}=this._config;return e||((null===(t=this._getThemeAncestor())||void 0===t?void 0:t.getAttribute("data-bs-theme"))||null)}_syncThemeAttribute(t){if(!t)return;const e=this._getEffectiveTheme();e?t.setAttribute("data-bs-theme",e):t.removeAttribute("data-bs-theme")}_setupThemeObserver(){const t=this._getThemeAncestor();t&&!this._config.datepickerTheme&&(this._themeObserver=new MutationObserver(()=>{var t;this._syncThemeAttribute(null===(t=this._calendar)||void 0===t||null===(t=t.context)||void 0===t?void 0:t.mainElement)}),this._themeObserver.observe(t,{attributes:!0,attributeFilter:["data-bs-theme"]}))}_setupDismissOnFocus(){this._isInline||(this._onFocusIn=t=>{var e;if(!this._isShown)return;const{target:i}=t,n=null===(e=this._calendar)||void 0===e||null===(e=e.context)||void 0===e?void 0:e.mainElement;i instanceof Node&&(this._element.contains(i)||(null==n?void 0:n.contains(i)))||this.hide()},H.on(document,te,this._onFocusIn))}_silently(t){this._isSilent=!0,t(),this._isSilent=!1}_handlePluginShow(){var t;const e=this._calendar;if(!e)return;var i;if(!this._isSilent&&!this._isShown&&(this._skipPluginShow||!this._isShowing&&(null===(i=H.trigger(this._element,Qt))||void 0===i?void 0:i.defaultPrevented)))return void this._silently(()=>e.hide());const n=this._isShown;this._isShown=!0,this._syncThemeAttribute(e.context.mainElement),this._alignToPositionElement(),window.removeEventListener("resize",this._onResize),window.addEventListener("resize",this._onResize),n||H.trigger(this._element,Gt),null===(t=this._resolveShown)||void 0===t||t.call(this)}_handlePluginHide(){var t;const e=this._calendar;e&&!this._isSilent&&this._isShown&&(this._isHiding||!(null===(t=H.trigger(this._element,Zt))||void 0===t?void 0:t.defaultPrevented)?(this._isShown=!1,window.removeEventListener("resize",this._onResize),H.trigger(this._element,Jt)):this._silently(()=>e.show()))}_calendarExtensions(t=[]){const e=window.VanillaCalendarPro,i=[...t];for(const t of oe){const n=null==e?void 0:e[t];n&&"object"==typeof n&&!i.includes(n)&&i.push(n)}return i}_buildCalendarOptions(){const t=this._getEffectiveTheme(),e=t&&"auto"!==t?t:"system",i=this._config.vcpOptions,n=this._calendarExtensions(i.extensions),s=Q(Q(Q({},i),n.length>0?{extensions:n}:{}),{},{inputMode:!this._isInline,positionToInput:this._config.placement,firstWeekday:this._config.firstWeekday,locale:this._config.locale,selectionDatesMode:this._config.selectionMode,selectedDates:this._config.selectedDates,displayMonthsCount:this._config.displayMonthsCount,type:this._config.displayMonthsCount>1?"multiple":"default",selectedTheme:e,themeAttrDetect:"[data-bs-theme]",onClickDate:(t,e)=>this._handleDateClick(t,e),onInit:t=>{this._syncThemeAttribute(t.context.mainElement)},onShow:()=>this._handlePluginShow(),onHide:()=>this._handlePluginHide()}),[r]=this._config.selectedDates;if(r){const t=this._parseDate(r);s.selectedMonth=t.getMonth(),s.selectedYear=t.getFullYear()}return this._config.dateMin&&(s.dateMin=this._config.dateMin),this._config.dateMax&&(s.dateMax=this._config.dateMax),s}_handleDateClick(t,e){const i=[...t.context.selectedDates];this._selectedDates=i,this._writeSelection(i);const n={dates:i,event:e};H.trigger(this._element,Xt,n),this._maybeHideAfterSelection(i)}_maybeHideAfterSelection(t){this._isInline||("single"===this._config.selectionMode&&t.length>0||"multiple-ranged"===this._config.selectionMode&&t.length>=2)&&(window.clearTimeout(this._hideTimeout),this._hideTimeout=window.setTimeout(()=>this.hide(),100))}_parseDate(t){const[e=0,i=1,n=1]=t.split("-").map(Number);return new Date(e,i-1,n)}_formatDate(t){const e=this._parseDate(t),i="default"===this._config.locale?void 0:this._config.locale,{dateFormat:n}=this._config;return"function"==typeof n?n(e,i):n&&"object"==typeof n?new Intl.DateTimeFormat(i,n).format(e):e.toLocaleDateString(i)}_formatDateForInput(t){if(0===t.length)return"";if(1===t.length)return this._formatDate(t[0]);const e="multiple-ranged"===this._config.selectionMode?" – ":", ";return t.map(t=>this._formatDate(t)).join(e)}_parseInputValue(){var t;const e=this._element.value.trim();if(!e)return;const i=ae.get(this._element);var n;if(i&&i.text.trim()===e)return this._selectedDates=[...i.dates],void(null===(n=this._calendar)||void 0===n||n.set(Q({selectedDates:this._selectedDates},this._monthOf(this._selectedDates[0]))));const s=re.test(e)?this._parseDate(e):new Date(e);Number.isNaN(s.getTime())||(this._selectedDates=[this._toIsoDate(s)],null===(t=this._calendar)||void 0===t||t.set(Q({selectedDates:this._selectedDates},this._monthOf(this._selectedDates[0]))))}_toIsoDate(t){if("string"==typeof t&&re.test(t))return t;const e=t instanceof Date?t:"string"==typeof t&&re.test(t)?this._parseDate(t):new Date(t);return Number.isNaN(e.getTime())?String(t):`${e.getFullYear()}-${String(e.getMonth()+1).padStart(2,"0")}-${String(e.getDate()).padStart(2,"0")}`}_monthOf(t){if(!t||!re.test(t))return{};const e=this._parseDate(t);return{selectedMonth:e.getMonth(),selectedYear:e.getFullYear()}}};H.on(document,ee,ne,function(t){"INPUT"!==this.tagName&&"true"!==this.dataset.bsInline&&"true"!==this.dataset.tblrInline&&(t.preventDefault(),ue.getOrCreateInstance(this).toggle())}),H.on(document,ie,ne,function(){"INPUT"===this.tagName&&ue.getOrCreateInstance(this).show()}),it(ne,ue,t=>{const{dataset:e}=t;return"true"===e.bsInline||"true"===e.tblrInline||"bsSelectedDates"in e||"tblrSelectedDates"in e||Boolean(t.value)});var de="data-mask",fe="data-mask-visible",pe=`[${de}]`,me={mask:"",lazy:!0},ge={mask:"(string|function|regexp|object|array)",lazy:"boolean"},_e=class extends Z{constructor(t,e){super(t,e),this._mask=null,this._element&&this._config.mask&&window.IMask&&(this._mask=new window.IMask(this._element,Q({},this._config)))}static get Default(){return me}static get DefaultType(){return ge}static get NAME(){return"input-mask"}get mask(){return this._mask}update(){var t;null===(t=this._mask)||void 0===t||t.updateValue()}dispose(){var t;null===(t=this._mask)||void 0===t||t.destroy(),super.dispose()}_mergeConfigObj(t,e){const i={},n=null==e?void 0:e.getAttribute(de);return n&&(i.mask=n),(null==e?void 0:e.hasAttribute(fe))&&(i.lazy="false"===e.getAttribute(fe)),super._mergeConfigObj(Q(Q({},i),t),e)}};it(pe,_e);var ve="bottom",be="right",ye="left",we="auto",Ae=["top",ve,be,ye],Ee="start",xe="clippingParents",Ce="viewport",Se="popper",Te="reference",ke=Ae.reduce(function(t,e){return t.concat([e+"-"+Ee,e+"-end"])},[]),Oe=[].concat(Ae,[we]).reduce(function(t,e){return t.concat([e,e+"-"+Ee,e+"-end"])},[]),De="beforeRead",$e="read",Ie="afterRead",Le="beforeMain",Me="main",Ne="afterMain",Pe="beforeWrite",je="write",Fe="afterWrite",ze=[De,$e,Ie,Le,Me,Ne,Pe,je,Fe];function He(t){return t?(t.nodeName||"").toLowerCase():null}function We(t){if(null==t)return window;if("[object Window]"!==t.toString()){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function Be(t){return t instanceof We(t).Element||t instanceof Element}function Re(t){return t instanceof We(t).HTMLElement||t instanceof HTMLElement}function Ve(t){return"undefined"!=typeof ShadowRoot&&(t instanceof We(t).ShadowRoot||t instanceof ShadowRoot)}var qe={name:"applyStyles",enabled:!0,phase:"write",fn:function(t){var e=t.state;Object.keys(e.elements).forEach(function(t){var i=e.styles[t]||{},n=e.attributes[t]||{},s=e.elements[t];Re(s)&&He(s)&&(Object.assign(s.style,i),Object.keys(n).forEach(function(t){var e=n[t];!1===e?s.removeAttribute(t):s.setAttribute(t,!0===e?"":e)}))})},effect:function(t){var e=t.state,i={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,i.popper),e.styles=i,e.elements.arrow&&Object.assign(e.elements.arrow.style,i.arrow),function(){Object.keys(e.elements).forEach(function(t){var n=e.elements[t],s=e.attributes[t]||{},r=Object.keys(e.styles.hasOwnProperty(t)?e.styles[t]:i[t]).reduce(function(t,e){return t[e]="",t},{});Re(n)&&He(n)&&(Object.assign(n.style,r),Object.keys(s).forEach(function(t){n.removeAttribute(t)}))})}},requires:["computeStyles"]};function Ye(t){return t.split("-")[0]}var Ue=Math.max,Ke=Math.min,Xe=Math.round;function Qe(){var t=navigator.userAgentData;return null!=t&&t.brands&&Array.isArray(t.brands)?t.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function Ge(){return!/^((?!chrome|android).)*safari/i.test(Qe())}function Ze(t,e,i){void 0===e&&(e=!1),void 0===i&&(i=!1);var n=t.getBoundingClientRect(),s=1,r=1;e&&Re(t)&&(s=t.offsetWidth>0&&Xe(n.width)/t.offsetWidth||1,r=t.offsetHeight>0&&Xe(n.height)/t.offsetHeight||1);var o=(Be(t)?We(t):window).visualViewport,a=!Ge()&&i,l=(n.left+(a&&o?o.offsetLeft:0))/s,c=(n.top+(a&&o?o.offsetTop:0))/r,h=n.width/s,u=n.height/r;return{width:h,height:u,top:c,right:l+h,bottom:c+u,left:l,x:l,y:c}}function Je(t){var e=Ze(t),i=t.offsetWidth,n=t.offsetHeight;return Math.abs(e.width-i)<=1&&(i=e.width),Math.abs(e.height-n)<=1&&(n=e.height),{x:t.offsetLeft,y:t.offsetTop,width:i,height:n}}function ti(t,e){var i=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(i&&Ve(i)){var n=e;do{if(n&&t.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function ei(t){return We(t).getComputedStyle(t)}function ii(t){return["table","td","th"].indexOf(He(t))>=0}function ni(t){return((Be(t)?t.ownerDocument:t.document)||window.document).documentElement}function si(t){return"html"===He(t)?t:t.assignedSlot||t.parentNode||(Ve(t)?t.host:null)||ni(t)}function ri(t){return Re(t)&&"fixed"!==ei(t).position?t.offsetParent:null}function oi(t){for(var e=We(t),i=ri(t);i&&ii(i)&&"static"===ei(i).position;)i=ri(i);return i&&("html"===He(i)||"body"===He(i)&&"static"===ei(i).position)?e:i||function(t){var e=/firefox/i.test(Qe());if(/Trident/i.test(Qe())&&Re(t)&&"fixed"===ei(t).position)return null;var i=si(t);for(Ve(i)&&(i=i.host);Re(i)&&["html","body"].indexOf(He(i))<0;){var n=ei(i);if("none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||-1!==["transform","perspective"].indexOf(n.willChange)||e&&"filter"===n.willChange||e&&n.filter&&"none"!==n.filter)return i;i=i.parentNode}return null}(t)||e}function ai(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function li(t,e,i){return Ue(t,Ke(e,i))}function ci(t){return Object.assign({},{top:0,right:0,bottom:0,left:0},t)}function hi(t,e){return e.reduce(function(e,i){return e[i]=t,e},{})}var ui={name:"arrow",enabled:!0,phase:"main",fn:function(t){var e,i=t.state,n=t.name,s=t.options,r=i.elements.arrow,o=i.modifiersData.popperOffsets,a=Ye(i.placement),l=ai(a),c=["left","right"].indexOf(a)>=0?"height":"width";if(r&&o){var h=function(t,e){return ci("number"!=typeof(t="function"==typeof t?t(Object.assign({},e.rects,{placement:e.placement})):t)?t:hi(t,Ae))}(s.padding,i),u=Je(r),d="y"===l?"top":ye,f="y"===l?ve:be,p=i.rects.reference[c]+i.rects.reference[l]-o[l]-i.rects.popper[c],m=o[l]-i.rects.reference[l],g=oi(r),_=g?"y"===l?g.clientHeight||0:g.clientWidth||0:0,v=p/2-m/2,b=h[d],y=_-u[c]-h[f],w=_/2-u[c]/2+v,A=li(b,w,y),E=l;i.modifiersData[n]=((e={})[E]=A,e.centerOffset=A-w,e)}},effect:function(t){var e=t.state,i=t.options.element,n=void 0===i?"[data-popper-arrow]":i;null!=n&&("string"!=typeof n||(n=e.elements.popper.querySelector(n)))&&ti(e.elements.popper,n)&&(e.elements.arrow=n)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function di(t){return t.split("-")[1]}var fi={top:"auto",right:"auto",bottom:"auto",left:"auto"};function pi(t){var e,i=t.popper,n=t.popperRect,s=t.placement,r=t.variation,o=t.offsets,a=t.position,l=t.gpuAcceleration,c=t.adaptive,h=t.roundOffsets,u=t.isFixed,d=o.x,f=void 0===d?0:d,p=o.y,m=void 0===p?0:p,g="function"==typeof h?h({x:f,y:m}):{x:f,y:m};f=g.x,m=g.y;var _=o.hasOwnProperty("x"),v=o.hasOwnProperty("y"),b=ye,y="top",w=window;if(c){var A=oi(i),E="clientHeight",x="clientWidth";if(A===We(i)&&"static"!==ei(A=ni(i)).position&&"absolute"===a&&(E="scrollHeight",x="scrollWidth"),"top"===s||("left"===s||"right"===s)&&"end"===r)y=ve,m-=(u&&A===w&&w.visualViewport?w.visualViewport.height:A[E])-n.height,m*=l?1:-1;if("left"===s||("top"===s||"bottom"===s)&&"end"===r)b=be,f-=(u&&A===w&&w.visualViewport?w.visualViewport.width:A[x])-n.width,f*=l?1:-1}var C,S=Object.assign({position:a},c&&fi),T=!0===h?function(t,e){var i=t.x,n=t.y,s=e.devicePixelRatio||1;return{x:Xe(i*s)/s||0,y:Xe(n*s)/s||0}}({x:f,y:m},We(i)):{x:f,y:m};return f=T.x,m=T.y,l?Object.assign({},S,((C={})[y]=v?"0":"",C[b]=_?"0":"",C.transform=(w.devicePixelRatio||1)<=1?"translate("+f+"px, "+m+"px)":"translate3d("+f+"px, "+m+"px, 0)",C)):Object.assign({},S,((e={})[y]=v?m+"px":"",e[b]=_?f+"px":"",e.transform="",e))}var mi={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(t){var e=t.state,i=t.options,n=i.gpuAcceleration,s=void 0===n||n,r=i.adaptive,o=void 0===r||r,a=i.roundOffsets,l=void 0===a||a,c={placement:Ye(e.placement),variation:di(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:s,isFixed:"fixed"===e.options.strategy};null!=e.modifiersData.popperOffsets&&(e.styles.popper=Object.assign({},e.styles.popper,pi(Object.assign({},c,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:o,roundOffsets:l})))),null!=e.modifiersData.arrow&&(e.styles.arrow=Object.assign({},e.styles.arrow,pi(Object.assign({},c,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})},data:{}},gi={passive:!0};var _i={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(t){var e=t.state,i=t.instance,n=t.options,s=n.scroll,r=void 0===s||s,o=n.resize,a=void 0===o||o,l=We(e.elements.popper),c=[].concat(e.scrollParents.reference,e.scrollParents.popper);return r&&c.forEach(function(t){t.addEventListener("scroll",i.update,gi)}),a&&l.addEventListener("resize",i.update,gi),function(){r&&c.forEach(function(t){t.removeEventListener("scroll",i.update,gi)}),a&&l.removeEventListener("resize",i.update,gi)}},data:{}},vi={left:"right",right:"left",bottom:"top",top:"bottom"};function bi(t){return t.replace(/left|right|bottom|top/g,function(t){return vi[t]})}var yi={start:"end",end:"start"};function wi(t){return t.replace(/start|end/g,function(t){return yi[t]})}function Ai(t){var e=We(t);return{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Ei(t){return Ze(ni(t)).left+Ai(t).scrollLeft}function xi(t){var e=ei(t),i=e.overflow,n=e.overflowX,s=e.overflowY;return/auto|scroll|overlay|hidden/.test(i+s+n)}function Ci(t){return["html","body","#document"].indexOf(He(t))>=0?t.ownerDocument.body:Re(t)&&xi(t)?t:Ci(si(t))}function Si(t,e){var i;void 0===e&&(e=[]);var n=Ci(t),s=n===(null==(i=t.ownerDocument)?void 0:i.body),r=We(n),o=s?[r].concat(r.visualViewport||[],xi(n)?n:[]):n,a=e.concat(o);return s?a:a.concat(Si(si(o)))}function Ti(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function ki(t,e,i){return"viewport"===e?Ti(function(t,e){var i=We(t),n=ni(t),s=i.visualViewport,r=n.clientWidth,o=n.clientHeight,a=0,l=0;if(s){r=s.width,o=s.height;var c=Ge();(c||!c&&"fixed"===e)&&(a=s.offsetLeft,l=s.offsetTop)}return{width:r,height:o,x:a+Ei(t),y:l}}(t,i)):Be(e)?function(t,e){var i=Ze(t,!1,"fixed"===e);return i.top=i.top+t.clientTop,i.left=i.left+t.clientLeft,i.bottom=i.top+t.clientHeight,i.right=i.left+t.clientWidth,i.width=t.clientWidth,i.height=t.clientHeight,i.x=i.left,i.y=i.top,i}(e,i):Ti(function(t){var e,i=ni(t),n=Ai(t),s=null==(e=t.ownerDocument)?void 0:e.body,r=Ue(i.scrollWidth,i.clientWidth,s?s.scrollWidth:0,s?s.clientWidth:0),o=Ue(i.scrollHeight,i.clientHeight,s?s.scrollHeight:0,s?s.clientHeight:0),a=-n.scrollLeft+Ei(t),l=-n.scrollTop;return"rtl"===ei(s||i).direction&&(a+=Ue(i.clientWidth,s?s.clientWidth:0)-r),{width:r,height:o,x:a,y:l}}(ni(t)))}function Oi(t,e,i,n){var s="clippingParents"===e?function(t){var e=Si(si(t)),i=["absolute","fixed"].indexOf(ei(t).position)>=0&&Re(t)?oi(t):t;return Be(i)?e.filter(function(t){return Be(t)&&ti(t,i)&&"body"!==He(t)}):[]}(t):[].concat(e),r=[].concat(s,[i]),o=r[0],a=r.reduce(function(e,i){var s=ki(t,i,n);return e.top=Ue(s.top,e.top),e.right=Ke(s.right,e.right),e.bottom=Ke(s.bottom,e.bottom),e.left=Ue(s.left,e.left),e},ki(t,o,n));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function Di(t){var e,i=t.reference,n=t.element,s=t.placement,r=s?Ye(s):null,o=s?di(s):null,a=i.x+i.width/2-n.width/2,l=i.y+i.height/2-n.height/2;switch(r){case"top":e={x:a,y:i.y-n.height};break;case ve:e={x:a,y:i.y+i.height};break;case be:e={x:i.x+i.width,y:l};break;case ye:e={x:i.x-n.width,y:l};break;default:e={x:i.x,y:i.y}}var c=r?ai(r):null;if(null!=c){var h="y"===c?"height":"width";switch(o){case Ee:e[c]=e[c]-(i[h]/2-n[h]/2);break;case"end":e[c]=e[c]+(i[h]/2-n[h]/2)}}return e}function $i(t,e){void 0===e&&(e={});var i=e,n=i.placement,s=void 0===n?t.placement:n,r=i.strategy,o=void 0===r?t.strategy:r,a=i.boundary,l=void 0===a?xe:a,c=i.rootBoundary,h=void 0===c?Ce:c,u=i.elementContext,d=void 0===u?Se:u,f=i.altBoundary,p=void 0!==f&&f,m=i.padding,g=void 0===m?0:m,_=ci("number"!=typeof g?g:hi(g,Ae)),v="popper"===d?Te:Se,b=t.rects.popper,y=t.elements[p?v:d],w=Oi(Be(y)?y:y.contextElement||ni(t.elements.popper),l,h,o),A=Ze(t.elements.reference),E=Di({reference:A,element:b,strategy:"absolute",placement:s}),x=Ti(Object.assign({},b,E)),C="popper"===d?x:A,S={top:w.top-C.top+_.top,bottom:C.bottom-w.bottom+_.bottom,left:w.left-C.left+_.left,right:C.right-w.right+_.right},T=t.modifiersData.offset;if("popper"===d&&T){var k=T[s];Object.keys(S).forEach(function(t){var e=["right","bottom"].indexOf(t)>=0?1:-1,i=["top","bottom"].indexOf(t)>=0?"y":"x";S[t]+=k[i]*e})}return S}function Ii(t,e){void 0===e&&(e={});var i=e,n=i.placement,s=i.boundary,r=i.rootBoundary,o=i.padding,a=i.flipVariations,l=i.allowedAutoPlacements,c=void 0===l?Oe:l,h=di(n),u=h?a?ke:ke.filter(function(t){return di(t)===h}):Ae,d=u.filter(function(t){return c.indexOf(t)>=0});0===d.length&&(d=u);var f=d.reduce(function(e,i){return e[i]=$i(t,{placement:i,boundary:s,rootBoundary:r,padding:o})[Ye(i)],e},{});return Object.keys(f).sort(function(t,e){return f[t]-f[e]})}var Li={name:"flip",enabled:!0,phase:"main",fn:function(t){var e=t.state,i=t.options,n=t.name;if(!e.modifiersData[n]._skip){for(var s=i.mainAxis,r=void 0===s||s,o=i.altAxis,a=void 0===o||o,l=i.fallbackPlacements,c=i.padding,h=i.boundary,u=i.rootBoundary,d=i.altBoundary,f=i.flipVariations,p=void 0===f||f,m=i.allowedAutoPlacements,g=e.options.placement,_=Ye(g)===g,v=l||(_||!p?[bi(g)]:function(t){if("auto"===Ye(t))return[];var e=bi(t);return[wi(t),e,wi(e)]}(g)),b=[g].concat(v).reduce(function(t,i){return t.concat("auto"===Ye(i)?Ii(e,{placement:i,boundary:h,rootBoundary:u,padding:c,flipVariations:p,allowedAutoPlacements:m}):i)},[]),y=e.rects.reference,w=e.rects.popper,A=new Map,E=!0,x=b[0],C=0;C=0,D=O?"width":"height",$=$i(e,{placement:S,boundary:h,rootBoundary:u,altBoundary:d,padding:c}),I=O?k?be:ye:k?ve:"top";y[D]>w[D]&&(I=bi(I));var L=bi(I),M=[];if(r&&M.push($[T]<=0),a&&M.push($[I]<=0,$[L]<=0),M.every(function(t){return t})){x=S,E=!1;break}A.set(S,M)}if(E)for(var N=function(t){var e=b.find(function(e){var i=A.get(e);if(i)return i.slice(0,t).every(function(t){return t})});if(e)return x=e,"break"},P=p?3:1;P>0&&"break"!==N(P);P--);e.placement!==x&&(e.modifiersData[n]._skip=!0,e.placement=x,e.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function Mi(t,e,i){return void 0===i&&(i={x:0,y:0}),{top:t.top-e.height-i.y,right:t.right-e.width+i.x,bottom:t.bottom-e.height+i.y,left:t.left-e.width-i.x}}function Ni(t){return["top",be,ve,ye].some(function(e){return t[e]>=0})}var Pi={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(t){var e=t.state,i=t.name,n=e.rects.reference,s=e.rects.popper,r=e.modifiersData.preventOverflow,o=$i(e,{elementContext:"reference"}),a=$i(e,{altBoundary:!0}),l=Mi(o,n),c=Mi(a,s,r),h=Ni(l),u=Ni(c);e.modifiersData[i]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:h,hasPopperEscaped:u},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":h,"data-popper-escaped":u})}};var ji={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(t){var e=t.state,i=t.options,n=t.name,s=i.offset,r=void 0===s?[0,0]:s,o=Oe.reduce(function(t,i){return t[i]=function(t,e,i){var n=Ye(t),s=["left","top"].indexOf(n)>=0?-1:1,r="function"==typeof i?i(Object.assign({},e,{placement:t})):i,o=r[0],a=r[1];return o=o||0,a=(a||0)*s,["left","right"].indexOf(n)>=0?{x:a,y:o}:{x:o,y:a}}(i,e.rects,r),t},{}),a=o[e.placement],l=a.x,c=a.y;null!=e.modifiersData.popperOffsets&&(e.modifiersData.popperOffsets.x+=l,e.modifiersData.popperOffsets.y+=c),e.modifiersData[n]=o}};var Fi={name:"popperOffsets",enabled:!0,phase:"read",fn:function(t){var e=t.state,i=t.name;e.modifiersData[i]=Di({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})},data:{}};var zi={name:"preventOverflow",enabled:!0,phase:"main",fn:function(t){var e=t.state,i=t.options,n=t.name,s=i.mainAxis,r=void 0===s||s,o=i.altAxis,a=void 0!==o&&o,l=i.boundary,c=i.rootBoundary,h=i.altBoundary,u=i.padding,d=i.tether,f=void 0===d||d,p=i.tetherOffset,m=void 0===p?0:p,g=$i(e,{boundary:l,rootBoundary:c,padding:u,altBoundary:h}),_=Ye(e.placement),v=di(e.placement),b=!v,y=ai(_),w="x"===y?"y":"x",A=e.modifiersData.popperOffsets,E=e.rects.reference,x=e.rects.popper,C="function"==typeof m?m(Object.assign({},e.rects,{placement:e.placement})):m,S="number"==typeof C?{mainAxis:C,altAxis:C}:Object.assign({mainAxis:0,altAxis:0},C),T=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,k={x:0,y:0};if(A){if(r){var O,D="y"===y?"top":ye,$="y"===y?ve:be,I="y"===y?"height":"width",L=A[y],M=L+g[D],N=L-g[$],P=f?-x[I]/2:0,j="start"===v?E[I]:x[I],F="start"===v?-x[I]:-E[I],z=e.elements.arrow,H=f&&z?Je(z):{width:0,height:0},W=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},B=W[D],R=W[$],V=li(0,E[I],H[I]),q=b?E[I]/2-P-V-B-S.mainAxis:j-V-B-S.mainAxis,Y=b?-E[I]/2+P+V+R+S.mainAxis:F+V+R+S.mainAxis,U=e.elements.arrow&&oi(e.elements.arrow),K=U?"y"===y?U.clientTop||0:U.clientLeft||0:0,X=null!=(O=null==T?void 0:T[y])?O:0,Q=L+Y-X,G=li(f?Ke(M,L+q-X-K):M,L,f?Ue(N,Q):N);A[y]=G,k[y]=G-L}if(a){var Z,J="x"===y?"top":ye,tt="x"===y?ve:be,et=A[w],it="y"===w?"height":"width",nt=et+g[J],st=et-g[tt],rt=-1!==["top",ye].indexOf(_),ot=null!=(Z=null==T?void 0:T[w])?Z:0,at=rt?nt:et-E[it]-x[it]-ot+S.altAxis,lt=rt?et+E[it]+x[it]-ot-S.altAxis:st,ct=f&&rt?function(t,e,i){var n=li(t,e,i);return n>i?i:n}(at,et,lt):li(f?at:nt,et,f?lt:st);A[w]=ct,k[w]=ct-et}e.modifiersData[n]=k}},requiresIfExists:["offset"]};function Hi(t,e,i){void 0===i&&(i=!1);var n,s,r=Re(e),o=Re(e)&&function(t){var e=t.getBoundingClientRect(),i=Xe(e.width)/t.offsetWidth||1,n=Xe(e.height)/t.offsetHeight||1;return 1!==i||1!==n}(e),a=ni(e),l=Ze(t,o,i),c={scrollLeft:0,scrollTop:0},h={x:0,y:0};return(r||!r&&!i)&&(("body"!==He(e)||xi(a))&&(c=(n=e)!==We(n)&&Re(n)?{scrollLeft:(s=n).scrollLeft,scrollTop:s.scrollTop}:Ai(n)),Re(e)?((h=Ze(e,!0)).x+=e.clientLeft,h.y+=e.clientTop):a&&(h.x=Ei(a))),{x:l.left+c.scrollLeft-h.x,y:l.top+c.scrollTop-h.y,width:l.width,height:l.height}}function Wi(t){var e=new Map,i=new Set,n=[];function s(t){i.add(t.name),[].concat(t.requires||[],t.requiresIfExists||[]).forEach(function(t){if(!i.has(t)){var n=e.get(t);n&&s(n)}}),n.push(t)}return t.forEach(function(t){e.set(t.name,t)}),t.forEach(function(t){i.has(t.name)||s(t)}),n}var Bi={placement:"bottom",modifiers:[],strategy:"absolute"};function Ri(){for(var t=arguments.length,e=new Array(t),i=0;iNe,afterRead:()=>Ie,afterWrite:()=>Fe,applyStyles:()=>qe,arrow:()=>ui,auto:()=>we,basePlacements:()=>Ae,beforeMain:()=>Le,beforeRead:()=>De,beforeWrite:()=>Pe,bottom:()=>ve,clippingParents:()=>xe,computeStyles:()=>mi,createPopper:()=>Ui,createPopperBase:()=>qi,createPopperLite:()=>Yi,detectOverflow:()=>$i,end:()=>"end",eventListeners:()=>_i,flip:()=>Li,hide:()=>Pi,left:()=>ye,main:()=>Me,modifierPhases:()=>ze,offset:()=>ji,placements:()=>Oe,popper:()=>Se,popperGenerator:()=>Vi,popperOffsets:()=>Fi,preventOverflow:()=>zi,read:()=>$e,reference:()=>Te,right:()=>be,start:()=>Ee,top:()=>"top",variationPlacements:()=>ke,viewport:()=>Ce,write:()=>je}),Xi=".bs.alert",Qi=`close${Xi}`,Gi=`closed${Xi}`,Zi=class t extends Z{static get NAME(){return"alert"}close(){const t=H.trigger(this._element,Qi);if(null==t?void 0:t.defaultPrevented)return;this._element.classList.remove("show");const e=this._element.classList.contains("fade");this._queueCallback(()=>this._destroyElement(),this._element,e)}_destroyElement(){this._element.remove(),H.trigger(this._element,Gi),this.dispose()}static jQueryInterface(e){return this.each(function(){const i=t.getOrCreateInstance(this);if("string"==typeof e){if(void 0===i[e]||e.startsWith("_")||"constructor"===e)throw new TypeError(`No method named "${e}"`);i[e](this)}})}};et(Zi,"close"),w(Zi);var Ji='[data-bs-toggle="button"], [data-tblr-toggle="button"]',tn=class t extends Z{static get NAME(){return"button"}toggle(){this._element.setAttribute("aria-pressed",String(this._element.classList.toggle("active")))}static jQueryInterface(e){return this.each(function(){const i=t.getOrCreateInstance(this);"toggle"===e&&i.toggle()})}};H.on(document,"click.bs.button.data-api",Ji,t=>{var e;t.preventDefault();const i=null===(e=t.target)||void 0===e?void 0:e.closest(Ji);i&&tn.getOrCreateInstance(i).toggle()}),w(tn);var en=".bs.swipe",nn=`touchstart${en}`,sn=`touchmove${en}`,rn=`touchend${en}`,on=`pointerdown${en}`,an=`pointerup${en}`,ln={endCallback:null,leftCallback:null,rightCallback:null},cn={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"},hn=class t extends G{constructor(e,i){super(),this._element=e,e&&t.isSupported()&&(this._config=this._getConfig(i),this._deltaX=0,this._supportPointerEvents=Boolean(window.PointerEvent),this._initEvents())}static get Default(){return ln}static get DefaultType(){return cn}static get NAME(){return"swipe"}dispose(){H.off(this._element,en)}_start(t){this._supportPointerEvents?this._eventIsPointerPenTouch(t)&&(this._deltaX=t.clientX):this._deltaX=t.touches[0].clientX}_end(t){this._eventIsPointerPenTouch(t)&&(this._deltaX=t.clientX-this._deltaX),this._handleSwipe(),A(this._config.endCallback)}_move(t){this._deltaX=t.touches&&t.touches.length>1?0:t.touches[0].clientX-this._deltaX}_handleSwipe(){const t=Math.abs(this._deltaX);if(t<=40)return;const e=t/this._deltaX;this._deltaX=0,e&&A(e>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(H.on(this._element,on,t=>this._start(t)),H.on(this._element,an,t=>this._end(t)),this._element.classList.add("pointer-event")):(H.on(this._element,nn,t=>this._start(t)),H.on(this._element,sn,t=>this._move(t)),H.on(this._element,rn,t=>this._end(t)))}_eventIsPointerPenTouch(t){return this._supportPointerEvents&&("pen"===t.pointerType||"touch"===t.pointerType)}static isSupported(){return"ontouchstart"in document.documentElement||navigator.maxTouchPoints>0}},un=".bs.carousel",dn=".data-api",fn="ArrowLeft",pn="ArrowRight",mn="next",gn="prev",_n="left",vn="right",bn=`slide${un}`,yn=`slid${un}`,wn=`keydown${un}`,An=`mouseenter${un}`,En=`mouseleave${un}`,xn=`dragstart${un}`,Cn=`load${un}${dn}`,Sn=`click${un}${dn}`,Tn="carousel",kn="active",On={[fn]:vn,[pn]:_n},Dn={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},$n={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"},In=class t extends Z{constructor(t,e){super(t,e),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=tt.findOne(".carousel-indicators",this._element),this._addEventListeners(),this._config.ride===Tn&&this.cycle()}static get Default(){return Dn}static get DefaultType(){return $n}static get NAME(){return"carousel"}next(){this._slide(mn)}nextWhenVisible(){!document.hidden&&d(this._element)&&this.next()}prev(){this._slide(gn)}pause(){this._isSliding&&l(this._element),this._clearInterval()}cycle(){this._clearInterval(),this._updateInterval(),this._interval=setInterval(()=>this.nextWhenVisible(),this._config.interval)}_maybeEnableCycle(){this._config.ride&&(this._isSliding?H.one(this._element,yn,()=>this.cycle()):this.cycle())}to(t){const e=this._getItems();if(t>e.length-1||t<0)return;if(this._isSliding)return void H.one(this._element,yn,()=>this.to(t));const i=this._getItemIndex(this._getActive());if(i===t)return;const n=t>i?mn:gn;this._slide(n,e[t])}dispose(){this._swipeHelper&&this._swipeHelper.dispose(),super.dispose()}_configAfterMerge(t){return t.defaultInterval=t.interval,t}_addEventListeners(){this._config.keyboard&&H.on(this._element,wn,t=>this._keydown(t)),"hover"===this._config.pause&&(H.on(this._element,An,()=>this.pause()),H.on(this._element,En,()=>this._maybeEnableCycle())),this._config.touch&&hn.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(const t of tt.find(".carousel-item img",this._element))H.on(t,xn,t=>t.preventDefault());const t={leftCallback:()=>this._slide(this._directionToOrder(_n)),rightCallback:()=>this._slide(this._directionToOrder(vn)),endCallback:()=>{"hover"===this._config.pause&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout(()=>this._maybeEnableCycle(),500+this._config.interval))}};this._swipeHelper=new hn(this._element,t)}_keydown(t){if(/input|textarea/i.test(t.target.tagName))return;const e=On[t.key];e&&(t.preventDefault(),this._slide(this._directionToOrder(e)))}_getItemIndex(t){return this._getItems().indexOf(t)}_setActiveIndicatorElement(t){if(!this._indicatorsElement)return;const e=tt.findOne(".active",this._indicatorsElement);e.classList.remove(kn),e.removeAttribute("aria-current");const i=tt.findOne(`[data-bs-slide-to="${t}"], [data-tblr-slide-to="${t}"]`,this._indicatorsElement);i&&(i.classList.add(kn),i.setAttribute("aria-current","true"))}_updateInterval(){var t;const e=this._activeElement||this._getActive();if(!e)return;const i=Number.parseInt(e.getAttribute("data-bs-interval")||e.getAttribute("data-tblr-interval")||"",10);this._config.interval=i||(null!==(t=this._config.defaultInterval)&&void 0!==t?t:this._config.interval)}_slide(t,e=null){if(this._isSliding)return;const i=this._getActive(),n=t===mn,s=e||x(this._getItems(),i,n,this._config.wrap);if(s===i)return;const r=this._getItemIndex(s),o=e=>H.trigger(this._element,e,{relatedTarget:s,direction:this._orderToDirection(t),from:this._getItemIndex(i),to:r}),a=o(bn);if(null==a?void 0:a.defaultPrevented)return;if(!i||!s)return;const l=Boolean(this._interval);this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(r),this._activeElement=s;const c=n?"carousel-item-start":"carousel-item-end",h=n?"carousel-item-next":"carousel-item-prev";s.classList.add(h),g(s),i.classList.add(c),s.classList.add(c);this._queueCallback(()=>{s.classList.remove(c,h),s.classList.add(kn),i.classList.remove(kn,h,c),this._isSliding=!1,o(yn)},i,this._isAnimated()),l&&this.cycle()}_isAnimated(){return this._element.classList.contains("slide")}_getActive(){return tt.findOne(".active.carousel-item",this._element)}_getItems(){return tt.find(".carousel-item",this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(t){return _()?t===_n?gn:mn:t===_n?mn:gn}_orderToDirection(t){return _()?t===gn?_n:vn:t===gn?vn:_n}static jQueryInterface(e){return this.each(function(){const i=t.getOrCreateInstance(this,e);if("number"!=typeof e){if("string"==typeof e){if(void 0===i[e]||e.startsWith("_")||"constructor"===e)throw new TypeError(`No method named "${e}"`);i[e]()}}else i.to(e)})}};H.on(document,Sn,"[data-bs-slide], [data-bs-slide-to], [data-tblr-slide], [data-tblr-slide-to]",function(t){const e=tt.getElementFromSelector(this);if(!e||!e.classList.contains(Tn))return;t.preventDefault();const i=In.getOrCreateInstance(e),n=this.getAttribute("data-bs-slide-to")||this.getAttribute("data-tblr-slide-to");return n?(i.to(Number(n)),void i._maybeEnableCycle()):"next"===q.getDataAttribute(this,"slide")?(i.next(),void i._maybeEnableCycle()):(i.prev(),void i._maybeEnableCycle())}),H.on(window,Cn,()=>{const t=tt.find('[data-bs-ride="carousel"], [data-tblr-ride="carousel"]');for(const e of t)In.getOrCreateInstance(e)}),w(In);var Ln=".bs.collapse",Mn=`show${Ln}`,Nn=`shown${Ln}`,Pn=`hide${Ln}`,jn=`hidden${Ln}`,Fn=`click${Ln}.data-api`,zn="show",Hn="collapse",Wn="collapsing",Bn=`:scope .${Hn} .${Hn}`,Rn='[data-bs-toggle="collapse"], [data-tblr-toggle="collapse"]',Vn={parent:null,toggle:!0},qn={parent:"(null|element)",toggle:"boolean"},Yn=class t extends Z{constructor(t,e){super(t,e),this._isTransitioning=!1,this._triggerArray=[];const i=tt.find(Rn);for(const t of i){const e=tt.getSelectorFromElement(t),i=tt.find(e).filter(t=>t===this._element);null!==e&&i.length&&this._triggerArray.push(t)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return Vn}static get DefaultType(){return qn}static get NAME(){return"collapse"}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let e=[];if(this._config.parent&&(e=this._getFirstLevelChildren(".collapse.show, .collapse.collapsing").filter(t=>t!==this._element).map(e=>t.getOrCreateInstance(e,{toggle:!1}))),e.length&&e[0]._isTransitioning)return;const i=H.trigger(this._element,Mn);if(null==i?void 0:i.defaultPrevented)return;for(const t of e)t.hide();const n=this._getDimension();this._element.classList.remove(Hn),this._element.classList.add(Wn),this._element.style[n]="0",this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const s=`scroll${n[0].toUpperCase()+n.slice(1)}`;this._queueCallback(()=>{this._isTransitioning=!1,this._element.classList.remove(Wn),this._element.classList.add(Hn,zn),this._element.style[n]="",H.trigger(this._element,Nn)},this._element,!0),this._element.style[n]=`${this._element[s]}px`}hide(){if(this._isTransitioning||!this._isShown())return;const t=H.trigger(this._element,Pn);if(null==t?void 0:t.defaultPrevented)return;const e=this._getDimension();this._element.style[e]=`${this._element.getBoundingClientRect()[e]}px`,g(this._element),this._element.classList.add(Wn),this._element.classList.remove(Hn,zn);for(const t of this._triggerArray){const e=tt.getElementFromSelector(t);e&&!this._isShown(e)&&this._addAriaAndCollapsedClass([t],!1)}this._isTransitioning=!0;this._element.style[e]="",this._queueCallback(()=>{this._isTransitioning=!1,this._element.classList.remove(Wn),this._element.classList.add(Hn),H.trigger(this._element,jn)},this._element,!0)}_isShown(t=this._element){return t.classList.contains(zn)}_configAfterMerge(t){return t.toggle=Boolean(t.toggle),t.parent=u(t.parent),t}_getDimension(){return this._element.classList.contains("collapse-horizontal")?"width":"height"}_initializeChildren(){if(!this._config.parent)return;const t=this._getFirstLevelChildren(Rn);for(const e of t){const t=tt.getElementFromSelector(e);t&&this._addAriaAndCollapsedClass([e],this._isShown(t))}}_getFirstLevelChildren(t){const e=tt.find(Bn,this._config.parent);return tt.find(t,this._config.parent).filter(t=>!e.includes(t))}_addAriaAndCollapsedClass(t,e){if(t.length)for(const i of t)i.classList.toggle("collapsed",!e),i.setAttribute("aria-expanded",String(e))}static jQueryInterface(e){const i={};return"string"==typeof e&&/show|hide/.test(e)&&(i.toggle=!1),this.each(function(){const n=t.getOrCreateInstance(this,i);if("string"==typeof e){if(void 0===n[e])throw new TypeError(`No method named "${e}"`);n[e]()}})}};H.on(document,Fn,Rn,function(t){const{delegateTarget:e}=t;("A"===t.target.tagName||e&&"A"===e.tagName)&&t.preventDefault();for(const t of tt.getMultipleElementsFromSelector(this))Yn.getOrCreateInstance(t,{toggle:!1}).toggle()}),w(Yn);var Un="dropdown",Kn=".bs.dropdown",Xn=".data-api",Qn="ArrowUp",Gn="ArrowDown",Zn=`hide${Kn}`,Jn=`hidden${Kn}`,ts=`show${Kn}`,es=`shown${Kn}`,is=`click${Kn}${Xn}`,ns=`keydown${Kn}${Xn}`,ss=`keyup${Kn}${Xn}`,rs="show",os='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled), [data-tblr-toggle="dropdown"]:not(.disabled):not(:disabled)',as=os.split(", ").map(t=>`${t}.${rs}`).join(", "),ls=".dropdown-menu",cs=_()?"top-end":"top-start",hs=_()?"top-start":"top-end",us=_()?"bottom-end":"bottom-start",ds=_()?"bottom-start":"bottom-end",fs=_()?"left-start":"right-start",ps=_()?"right-start":"left-start",ms={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},gs={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"},_s=class t extends Z{constructor(t,e){super(t,e),this._popper=null,this._parent=this._element.parentNode,this._menu=tt.next(this._element,ls)[0]||tt.prev(this._element,ls)[0]||tt.findOne(ls,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return ms}static get DefaultType(){return gs}static get NAME(){return Un}toggle(){this._isShown()?this.hide():this.show()}show(){if(f(this._element)||this._isShown())return;const t={relatedTarget:this._element},e=H.trigger(this._element,ts,t);if(!(null==e?void 0:e.defaultPrevented)){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest(".navbar-nav"))for(const t of Array.from(document.body.children))H.on(t,"mouseover",m);this._element.focus(),this._element.setAttribute("aria-expanded","true"),this._menu.classList.add(rs),this._element.classList.add(rs),H.trigger(this._element,es,t)}}hide(){if(f(this._element)||!this._isShown())return;const t={relatedTarget:this._element};this._completeHide(t)}dispose(){this._popper&&this._popper.destroy(),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_completeHide(t){const e=H.trigger(this._element,Zn,t);if(!(null==e?void 0:e.defaultPrevented)){if("ontouchstart"in document.documentElement)for(const t of Array.from(document.body.children))H.off(t,"mouseover",m);this._popper&&this._popper.destroy(),this._menu.classList.remove(rs),this._element.classList.remove(rs),this._element.setAttribute("aria-expanded","false"),q.removeDataAttribute(this._menu,"popper"),H.trigger(this._element,Jn,t)}}_getConfig(t){const e=super._getConfig(t);if("object"==typeof e.reference&&!h(e.reference)&&"function"!=typeof e.reference.getBoundingClientRect)throw new TypeError(`${Un.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return e}_createPopper(){if(void 0===Ki)throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org/docs/v2/)");let t=this._element;"parent"===this._config.reference?t=this._parent:h(this._config.reference)?t=u(this._config.reference):"object"==typeof this._config.reference&&(t=this._config.reference);const e=this._getPopperConfig();this._popper=Ui(t,this._menu,e)}_isShown(){return this._menu.classList.contains(rs)}_getPlacement(){const t=this._parent;if(t.classList.contains("dropend"))return fs;if(t.classList.contains("dropstart"))return ps;if(t.classList.contains("dropup-center"))return"top";if(t.classList.contains("dropdown-center"))return"bottom";const e="end"===getComputedStyle(this._menu).getPropertyValue("--bs-position").trim();return t.classList.contains("dropup")?e?hs:cs:e?ds:us}_detectNavbar(){return null!==this._element.closest(".navbar")}_getOffset(){const{offset:t}=this._config;return"string"==typeof t?t.split(",").map(t=>Number.parseInt(t,10)):"function"==typeof t?e=>t(e,this._element):t}_getPopperConfig(){const t={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};(this._inNavbar||"static"===this._config.display)&&(q.setDataAttribute(this._menu,"popper","static"),t.modifiers=[{name:"applyStyles",enabled:!1}]);const e=A(this._config.popperConfig,[void 0,t]);return Q(Q({},t),"object"==typeof e&&null!==e?e:{})}_selectMenuItem({key:t,target:e}){const i=tt.find(".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",this._menu).filter(t=>d(t));if(!i.length)return;const n=e;x(i,n,t===Gn,!i.includes(n)).focus()}static clearMenus(e){if(2===e.button||"keyup"===e.type&&"Tab"!==e.key)return;const i=tt.find(as);for(const n of i){const i=t.getInstance(n);if(!i||!1===i._config.autoClose)continue;const s=e.composedPath(),r=s.includes(i._menu);if(s.includes(i._element)||"inside"===i._config.autoClose&&!r||"outside"===i._config.autoClose&&r)continue;if(i._menu.contains(e.target)&&("keyup"===e.type&&"Tab"===e.key||/input|select|option|textarea|form/i.test(e.target.tagName)))continue;const o={relatedTarget:i._element};"click"===e.type&&(o.clickEvent=e),i._completeHide(o)}}static dataApiKeydownHandler(e){const i=/input|textarea/i.test(e.target.tagName),n="Escape"===e.key,s=[Qn,Gn].includes(e.key);if(!s&&!n)return;if(i&&!n)return;e.preventDefault();const r=this.matches(os)?this:tt.prev(this,os)[0]||tt.next(this,os)[0]||tt.findOne(os,e.delegateTarget.parentNode),o=t.getOrCreateInstance(r);if(s)return e.stopPropagation(),o.show(),void o._selectMenuItem(e);o._isShown()&&(e.stopPropagation(),o.hide(),r.focus())}static jQueryInterface(e){return this.each(function(){const i=t.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===i[e])throw new TypeError(`No method named "${e}"`);i[e]()}})}};H.on(document,ns,os,_s.dataApiKeydownHandler),H.on(document,ns,ls,_s.dataApiKeydownHandler),H.on(document,is,_s.clearMenus),H.on(document,ss,_s.clearMenus),H.on(document,is,os,function(t){t.preventDefault(),_s.getOrCreateInstance(this).toggle()}),w(_s);var vs="backdrop",bs="show",ys=`mousedown.bs.${vs}`,ws={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},As={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"},Es=class extends G{constructor(t){super(),this._config=this._getConfig(t),this._isAppended=!1,this._element=null}static get Default(){return ws}static get DefaultType(){return As}static get NAME(){return vs}show(t){if(!this._config.isVisible)return void A(t);this._append();const e=this._getElement();this._config.isAnimated&&g(e),e.classList.add(bs),this._emulateAnimation(()=>{A(t)})}hide(t){this._config.isVisible?(this._getElement().classList.remove(bs),this._emulateAnimation(()=>{this.dispose(),A(t)})):A(t)}dispose(){this._isAppended&&(H.off(this._element,ys),this._element.remove(),this._isAppended=!1)}_getElement(){if(!this._element){const t=document.createElement("div");t.className=this._config.className,this._config.isAnimated&&t.classList.add("fade"),this._element=t}return this._element}_configAfterMerge(t){return t.rootElement=u(t.rootElement),t}_append(){if(this._isAppended)return;const t=this._getElement();this._config.rootElement.append(t),H.on(t,ys,()=>{A(this._config.clickCallback)}),this._isAppended=!0}_emulateAnimation(t){E(t,this._getElement(),this._config.isAnimated)}},xs=".bs.focustrap",Cs=`focusin${xs}`,Ss=`keydown.tab${xs}`,Ts="backward",ks={autofocus:!0,trapElement:null},Os={autofocus:"boolean",trapElement:"element"},Ds=class extends G{constructor(t){super(),this._config=this._getConfig(t),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return ks}static get DefaultType(){return Os}static get NAME(){return"focustrap"}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),H.off(document,xs),H.on(document,Cs,t=>this._handleFocusin(t)),H.on(document,Ss,t=>this._handleKeydown(t)),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,H.off(document,xs))}_handleFocusin(t){const{trapElement:e}=this._config;if(!e||t.target===document||t.target===e||e.contains(t.target))return;const i=tt.focusableChildren(e);0===i.length?e.focus():this._lastTabNavDirection===Ts?i[i.length-1].focus():i[0].focus()}_handleKeydown(t){"Tab"===t.key&&(this._lastTabNavDirection=t.shiftKey?Ts:"forward")}},$s=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",Is=".sticky-top",Ls="padding-right",Ms="margin-right",Ns=class{constructor(){this._element=document.body}getWidth(){const t=document.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}hide(){const t=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,Ls,e=>e+t),this._setElementAttributes($s,Ls,e=>e+t),this._setElementAttributes(Is,Ms,e=>e-t)}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,Ls),this._resetElementAttributes($s,Ls),this._resetElementAttributes(Is,Ms)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(t,e,i){const n=this.getWidth();this._applyManipulationCallback(t,t=>{if(t!==this._element&&window.innerWidth>t.clientWidth+n)return;this._saveInitialAttribute(t,e);const s=window.getComputedStyle(t).getPropertyValue(e);t.style.setProperty(e,`${i(Number.parseFloat(s))}px`)})}_saveInitialAttribute(t,e){const i=t.style.getPropertyValue(e);i&&q.setDataAttribute(t,e,i)}_resetElementAttributes(t,e){this._applyManipulationCallback(t,t=>{const i=q.getDataAttribute(t,e);null!==i?(q.removeDataAttribute(t,e),t.style.setProperty(e,String(i))):t.style.removeProperty(e)})}_applyManipulationCallback(t,e){if(h(t))e(t);else for(const i of tt.find(t,this._element))e(i)}},Ps=".bs.modal",js=`hide${Ps}`,Fs=`hidePrevented${Ps}`,zs=`hidden${Ps}`,Hs=`show${Ps}`,Ws=`shown${Ps}`,Bs=`resize${Ps}`,Rs=`click.dismiss${Ps}`,Vs=`mousedown.dismiss${Ps}`,qs=`keydown.dismiss${Ps}`,Ys=`click${Ps}.data-api`,Us="modal-open",Ks="show",Xs="modal-static",Qs={backdrop:!0,focus:!0,keyboard:!0},Gs={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"},Zs=class t extends Z{constructor(t,e){super(t,e),this._dialog=tt.findOne(".modal-dialog",this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new Ns,this._addEventListeners()}static get Default(){return Qs}static get DefaultType(){return Gs}static get NAME(){return"modal"}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){if(this._isShown||this._isTransitioning)return;const e=H.trigger(this._element,Hs,{relatedTarget:t});(null==e?void 0:e.defaultPrevented)||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(Us),this._adjustDialog(),this._backdrop.show(()=>this._showElement(t)))}hide(){if(!this._isShown||this._isTransitioning)return;const t=H.trigger(this._element,js);(null==t?void 0:t.defaultPrevented)||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(Ks),this._queueCallback(()=>this._hideModal(),this._element,this._isAnimated()))}dispose(){H.off(window,Ps),H.off(this._dialog,Ps),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new Es({isVisible:Boolean(this._config.backdrop),isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new Ds({trapElement:this._element})}_showElement(t){document.body.contains(this._element)||document.body.append(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal","true"),this._element.setAttribute("role","dialog"),this._element.scrollTop=0;const e=this._dialog?tt.findOne(".modal-body",this._dialog):null;e&&(e.scrollTop=0),g(this._element),this._element.classList.add(Ks);this._queueCallback(()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,H.trigger(this._element,Ws,{relatedTarget:t})},this._dialog,this._isAnimated())}_addEventListeners(){H.on(this._element,qs,t=>{"Escape"===t.key&&(this._config.keyboard?this.hide():this._triggerBackdropTransition())}),H.on(window,Bs,()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()}),H.on(this._element,Vs,t=>{H.one(this._element,Rs,e=>{this._element===t.target&&this._element===e.target&&("static"!==this._config.backdrop?this._config.backdrop&&this.hide():this._triggerBackdropTransition())})})}_hideModal(){this._element.style.display="none",this._element.setAttribute("aria-hidden","true"),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._isTransitioning=!1,this._backdrop.hide(()=>{document.body.classList.remove(Us),this._resetAdjustments(),this._scrollBar.reset(),H.trigger(this._element,zs)})}_isAnimated(){return this._element.classList.contains("fade")}_triggerBackdropTransition(){const t=H.trigger(this._element,Fs);if(null==t?void 0:t.defaultPrevented)return;const e=this._element.scrollHeight>document.documentElement.clientHeight,i=this._element.style.overflowY;"hidden"===i||this._element.classList.contains(Xs)||(e||(this._element.style.overflowY="hidden"),this._element.classList.add(Xs),this._queueCallback(()=>{this._element.classList.remove(Xs),this._queueCallback(()=>{this._element.style.overflowY=i},this._dialog)},this._dialog),this._element.focus())}_adjustDialog(){const t=this._element.scrollHeight>document.documentElement.clientHeight,e=this._scrollBar.getWidth(),i=e>0;if(i&&!t){const t=_()?"paddingLeft":"paddingRight";this._element.style[t]=`${e}px`}if(!i&&t){const t=_()?"paddingRight":"paddingLeft";this._element.style[t]=`${e}px`}}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(e,i){return this.each(function(){const n=t.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===n[e])throw new TypeError(`No method named "${e}"`);n[e](i)}})}};H.on(document,Ys,'[data-bs-toggle="modal"], [data-tblr-toggle="modal"]',function(t){const e=tt.getElementFromSelector(this);if(["A","AREA"].includes(this.tagName)&&t.preventDefault(),!e)return;H.one(e,Hs,t=>{(null==t?void 0:t.defaultPrevented)||H.one(e,zs,()=>{d(this)&&this.focus()})});const i=tt.findOne(".modal.show");i&&Zs.getInstance(i).hide(),Zs.getOrCreateInstance(e).toggle(this)}),et(Zs),w(Zs);var Js=".bs.offcanvas",tr=".data-api",er=`load${Js}${tr}`,ir="show",nr="showing",sr="hiding",rr=".offcanvas.show",or=`show${Js}`,ar=`shown${Js}`,lr=`hide${Js}`,cr=`hidePrevented${Js}`,hr=`hidden${Js}`,ur=`resize${Js}`,dr=`click${Js}${tr}`,fr=`keydown.dismiss${Js}`,pr={backdrop:!0,keyboard:!0,scroll:!1},mr={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"},gr=class t extends Z{constructor(t,e){super(t,e),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return pr}static get DefaultType(){return mr}static get NAME(){return"offcanvas"}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){if(this._isShown)return;const e=H.trigger(this._element,or,{relatedTarget:t});if(null==e?void 0:e.defaultPrevented)return;this._isShown=!0,this._backdrop.show(),this._config.scroll||(new Ns).hide(),this._element.setAttribute("aria-modal","true"),this._element.setAttribute("role","dialog"),this._element.classList.add(nr);this._queueCallback(()=>{this._config.scroll&&!this._config.backdrop||this._focustrap.activate(),this._element.classList.add(ir),this._element.classList.remove(nr),H.trigger(this._element,ar,{relatedTarget:t})},this._element,!0)}hide(){if(!this._isShown)return;const t=H.trigger(this._element,lr);if(null==t?void 0:t.defaultPrevented)return;this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add(sr),this._backdrop.hide();this._queueCallback(()=>{this._element.classList.remove(ir,sr),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||(new Ns).reset(),H.trigger(this._element,hr)},this._element,!0)}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){const t=Boolean(this._config.backdrop);return new Es({className:"offcanvas-backdrop",isVisible:t,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:t?()=>{"static"!==this._config.backdrop?this.hide():H.trigger(this._element,cr)}:null})}_initializeFocusTrap(){return new Ds({trapElement:this._element})}_addEventListeners(){H.on(this._element,fr,t=>{"Escape"===t.key&&(this._config.keyboard?this.hide():H.trigger(this._element,cr))})}static jQueryInterface(e){return this.each(function(){const i=t.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===i[e]||e.startsWith("_")||"constructor"===e)throw new TypeError(`No method named "${e}"`);i[e](this)}})}};H.on(document,dr,'[data-bs-toggle="offcanvas"], [data-tblr-toggle="offcanvas"]',function(t){const e=tt.getElementFromSelector(this);if(["A","AREA"].includes(this.tagName)&&t.preventDefault(),!e)return;if(f(this))return;H.one(e,hr,()=>{d(this)&&this.focus()});const i=tt.findOne(rr);i&&i!==e&&gr.getInstance(i).hide(),gr.getOrCreateInstance(e).toggle(this)}),H.on(window,er,()=>{for(const t of tt.find(rr))gr.getOrCreateInstance(t).show()}),H.on(window,ur,()=>{for(const t of tt.find("[aria-modal][class*=show][class*=offcanvas-]"))"fixed"!==getComputedStyle(t).position&&gr.getOrCreateInstance(t).hide()}),et(gr),w(gr);var _r={"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],dd:[],div:[],dl:[],dt:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","srcset","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},vr=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),br=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,yr=(t,e)=>{const i=t.nodeName.toLowerCase();return e.includes(i)?!vr.has(i)||Boolean(br.test(t.nodeValue)):e.filter(t=>t instanceof RegExp).some(t=>t.test(i))};var wr={allowList:_r,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"
"},Ar={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},Er={entry:"(string|element|function|null)",selector:"(string|element)"},xr=class extends G{constructor(t){super(),this._config=this._getConfig(t)}static get Default(){return wr}static get DefaultType(){return Ar}static get NAME(){return"TemplateFactory"}getContent(){return Object.values(this._config.content).map(t=>this._resolvePossibleFunction(t)).filter(Boolean)}hasContent(){return this.getContent().length>0}changeContent(t){return this._checkContent(t),this._config.content=Q(Q({},this._config.content),t),this}toHtml(){const t=document.createElement("div");t.innerHTML=this._maybeSanitize(this._config.template);for(const[e,i]of Object.entries(this._config.content))this._setContent(t,i,e);const e=t.children[0],i=this._resolvePossibleFunction(this._config.extraClass);return i&&e.classList.add(...i.split(" ")),e}_typeCheckConfig(t){super._typeCheckConfig(t),this._checkContent(t.content)}_checkContent(t){for(const[e,i]of Object.entries(t))super._typeCheckConfig({selector:e,entry:i},Er)}_setContent(t,e,i){const n=tt.findOne(i,t);n&&((e=this._resolvePossibleFunction(e))?h(e)?this._putElementInTemplate(u(e),n):this._config.html?n.innerHTML=this._maybeSanitize(e):n.textContent=e:n.remove())}_maybeSanitize(t){return this._config.sanitize?function(t,e,i){if(!t.length)return t;if(i&&"function"==typeof i)return i(t);const n=(new window.DOMParser).parseFromString(t,"text/html"),s=Array.from(n.body.querySelectorAll("*"));for(const t of s){const i=t.nodeName.toLowerCase();if(!Object.keys(e).includes(i)){t.remove();continue}const n=Array.from(t.attributes),s=[...e["*"]||[],...e[i]||[]];for(const e of n)yr(e,s)||t.removeAttribute(e.nodeName)}return n.body.innerHTML}(t,this._config.allowList,this._config.sanitizeFn):t}_resolvePossibleFunction(t){return A(t,[void 0,this])}_putElementInTemplate(t,e){if(this._config.html)return e.innerHTML="",void e.append(t);e.textContent=t.textContent}},Cr=new Set(["sanitize","allowList","sanitizeFn"]),Sr="fade",Tr="show",kr=".tooltip-inner",Or=".modal",Dr="hide.bs.modal",$r="hover",Ir="focus",Lr="click",Mr={AUTO:"auto",TOP:"top",RIGHT:_()?"left":"right",BOTTOM:"bottom",LEFT:_()?"right":"left"},Nr={allowList:_r,animation:!0,boundary:"clippingParents",container:!1,customClass:"",delay:0,fallbackPlacements:["top","right","bottom","left"],html:!1,offset:[0,6],placement:"top",popperConfig:null,sanitize:!0,sanitizeFn:null,selector:!1,template:'',title:"",trigger:"hover focus"},Pr={allowList:"object",animation:"boolean",boundary:"(string|element)",container:"(string|element|boolean)",customClass:"(string|function)",delay:"(number|object)",fallbackPlacements:"array",html:"boolean",offset:"(array|string|function)",placement:"(string|function)",popperConfig:"(null|object|function)",sanitize:"boolean",sanitizeFn:"(null|function)",selector:"(string|boolean)",template:"string",title:"(string|element|function)",trigger:"string"},jr=class t extends Z{constructor(t,e){if(void 0===Ki)throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org/docs/v2/)");super(t,e),this._isEnabled=!0,this._timeout=0,this._isHovered=null,this._activeTrigger={},this._popper=null,this._templateFactory=null,this._newContent=null,this.tip=null,this._hideModalHandler=()=>{this._element&&this.hide()},this._setListeners(),this._config.selector||this._fixTitle()}static get Default(){return Nr}static get DefaultType(){return Pr}static get NAME(){return"tooltip"}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(){this._isEnabled&&(this._isShown()?this._leave():this._enter())}dispose(){clearTimeout(this._timeout),H.off(this._element.closest(Or),Dr,this._hideModalHandler),(this._element.getAttribute("data-bs-original-title")||this._element.getAttribute("data-tblr-original-title"))&&this._element.setAttribute("title",this._element.getAttribute("data-bs-original-title")||this._element.getAttribute("data-tblr-original-title")||""),this._disposePopper(),super.dispose()}show(){if("none"===this._element.style.display)throw new Error("Please use show on visible elements");if(!this._isWithContent()||!this._isEnabled)return;const t=H.trigger(this._element,this.constructor.eventName("show")),e=(p(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if((null==t?void 0:t.defaultPrevented)||!e)return;this._disposePopper();const i=this._getTipElement();this._element.setAttribute("aria-describedby",i.getAttribute("id"));const{container:n}=this._config;if(this._element.ownerDocument.documentElement.contains(this.tip)||(n.append(i),H.trigger(this._element,this.constructor.eventName("inserted"))),this._popper=this._createPopper(i),i.classList.add(Tr),"ontouchstart"in document.documentElement)for(const t of Array.from(document.body.children))H.on(t,"mouseover",m);this._queueCallback(()=>{H.trigger(this._element,this.constructor.eventName("shown")),!1===this._isHovered&&this._leave(),this._isHovered=!1},this.tip,this._isAnimated())}hide(){if(!this._isShown())return;const t=H.trigger(this._element,this.constructor.eventName("hide"));if(null==t?void 0:t.defaultPrevented)return;if(this._getTipElement().classList.remove(Tr),"ontouchstart"in document.documentElement)for(const t of Array.from(document.body.children))H.off(t,"mouseover",m);this._activeTrigger[Lr]=!1,this._activeTrigger[Ir]=!1,this._activeTrigger[$r]=!1,this._isHovered=null;this._queueCallback(()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute("aria-describedby"),H.trigger(this._element,this.constructor.eventName("hidden")))},this.tip,this._isAnimated())}update(){this._popper&&this._popper.update()}_isWithContent(){return Boolean(this._getTitle())}_getTipElement(){return this.tip||(this.tip=this._createTipElement(this._newContent||this._getContentForTemplate())),this.tip}_createTipElement(t){const e=this._getTemplateFactory(t).toHtml();if(!e)return null;e.classList.remove(Sr,Tr),e.classList.add(`bs-${this.constructor.NAME}-auto`);const i=(t=>{do{t+=Math.floor(1e6*Math.random())}while(document.getElementById(t));return t})(this.constructor.NAME).toString();return e.setAttribute("id",i),this._isAnimated()&&e.classList.add(Sr),e}setContent(t){this._newContent=t,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(t){return this._templateFactory?this._templateFactory.changeContent(t):this._templateFactory=new xr(Q(Q({},this._config),{},{content:t,extraClass:this._resolvePossibleFunction(this._config.customClass)})),this._templateFactory}_getContentForTemplate(){return{[kr]:this._getTitle()}}_getTitle(){return this._resolvePossibleFunction(this._config.title)||this._element.getAttribute("data-bs-original-title")||this._element.getAttribute("data-tblr-original-title")||""}_initializeOnDelegatedTarget(t){return this.constructor.getOrCreateInstance(t.delegateTarget,this._getDelegateConfig())}_isAnimated(){return this._config.animation||null!==this.tip&&this.tip.classList.contains(Sr)}_isShown(){return null!==this.tip&&this.tip.classList.contains(Tr)}_createPopper(t){const e=Mr[A(this._config.placement,[this,t,this._element]).toUpperCase()];return Ui(this._element,t,this._getPopperConfig(e))}_getOffset(){const{offset:t}=this._config;return"string"==typeof t?t.split(",").map(t=>Number.parseInt(t,10)):"function"==typeof t?e=>t(e,this._element):t}_resolvePossibleFunction(t){return A(t,[this._element,this._element])}_getPopperConfig(t){const e={placement:t,modifiers:[{name:"flip",options:{fallbackPlacements:this._config.fallbackPlacements}},{name:"offset",options:{offset:this._getOffset()}},{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"arrow",options:{element:`.${this.constructor.NAME}-arrow`}},{name:"preSetPlacement",enabled:!0,phase:"beforeMain",fn:t=>{this._getTipElement().setAttribute("data-popper-placement",t.state.placement)}}]},i=A(this._config.popperConfig,[void 0,e]);return Q(Q({},e),"object"==typeof i&&null!==i?i:{})}_setListeners(){const t=this._config.trigger.split(" ");for(const e of t)if("click"===e)H.on(this._element,this.constructor.eventName("click"),this._config.selector,t=>{const e=this._initializeOnDelegatedTarget(t);e._activeTrigger[Lr]=!(e._isShown()&&e._activeTrigger[Lr]),e.toggle()});else if("manual"!==e){const t=e===$r?this.constructor.eventName("mouseenter"):this.constructor.eventName("focusin"),i=e===$r?this.constructor.eventName("mouseleave"):this.constructor.eventName("focusout");H.on(this._element,t,this._config.selector,t=>{const e=this._initializeOnDelegatedTarget(t);e._activeTrigger["focusin"===t.type?Ir:$r]=!0,e._enter()}),H.on(this._element,i,this._config.selector,t=>{const e=this._initializeOnDelegatedTarget(t);e._activeTrigger["focusout"===t.type?Ir:$r]=e._element.contains(t.relatedTarget),e._leave()})}H.on(this._element.closest(Or),Dr,this._hideModalHandler)}_fixTitle(){const t=this._element.getAttribute("title");t&&(this._element.getAttribute("aria-label")||this._element.textContent.trim()||this._element.setAttribute("aria-label",t),this._element.setAttribute("data-bs-original-title",t),this._element.removeAttribute("title"))}_enter(){this._isShown()||this._isHovered?this._isHovered=!0:(this._isHovered=!0,this._setTimeout(()=>{this._isHovered&&this.show()},this._getDelay().show))}_leave(){this._isWithActiveTrigger()||(this._isHovered=!1,this._setTimeout(()=>{this._isHovered||this.hide()},this._getDelay().hide))}_getDelay(){const{delay:t}=this._config;return"number"==typeof t?{show:t,hide:t}:t}_setTimeout(t,e){clearTimeout(this._timeout),this._timeout=setTimeout(t,e)}_isWithActiveTrigger(){return Object.values(this._activeTrigger).includes(!0)}_getConfig(t){const e=q.getDataAttributes(this._element);for(const t of Object.keys(e))Cr.has(t)&&delete e[t];let i=Q(Q({},e),"object"==typeof t&&t?t:{});return i=this._mergeConfigObj(i),i=this._configAfterMerge(i),this._typeCheckConfig(i),i}_configAfterMerge(t){t.container=!1===t.container?document.body:u(t.container),"number"==typeof t.delay&&(t.delay={show:t.delay,hide:t.delay});const e=t;return"number"==typeof e.title&&(e.title=e.title.toString()),"number"==typeof e.content&&(e.content=e.content.toString()),t}_getDelegateConfig(){const t={},e=this.constructor.Default;for(const[i,n]of Object.entries(this._config))e[i]!==n&&(t[i]=n);return t.selector=!1,t.trigger="manual",t}_disposePopper(){this._popper&&(this._popper.destroy(),this._popper=null),this.tip&&(this.tip.remove(),this.tip=null)}static jQueryInterface(e){return this.each(function(){const i=t.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===i[e])throw new TypeError(`No method named "${e}"`);i[e]()}})}};w(jr);var Fr=".popover-header",zr=".popover-body",Hr=Q(Q({},jr.Default),{},{content:"",offset:[0,8],placement:"right",template:'',trigger:"click"}),Wr=Q(Q({},jr.DefaultType),{},{content:"(null|string|element|function)"}),Br=class t extends jr{constructor(t,e){super(t,e)}static get Default(){return Hr}static get DefaultType(){return Wr}static get NAME(){return"popover"}_isWithContent(){return Boolean(this._getTitle()||this._getContent())}_getContentForTemplate(){return{[Fr]:this._getTitle(),[zr]:this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(e){return this.each(function(){const i=t.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===i[e])throw new TypeError(`No method named "${e}"`);i[e]()}})}};w(Br);var Rr=".bs.scrollspy",Vr=`activate${Rr}`,qr=`click${Rr}`,Yr=`load${Rr}.data-api`,Ur="active",Kr="[href]",Xr=".nav-link",Qr=`${Xr}, .nav-item > ${Xr}, .list-group-item`,Gr={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null,threshold:[.1,.5,1]},Zr={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element",threshold:"array"},Jr=class t extends Z{constructor(t,e){super(t,e),this._targetLinks=new Map,this._observableSections=new Map,this._rootElement="visible"===getComputedStyle(this._element).overflowY?null:this._element,this._activeTarget=null,this._observer=null,this._previousScrollData={visibleEntryTop:0,parentScrollTop:0},this.refresh()}static get Default(){return Gr}static get DefaultType(){return Zr}static get NAME(){return"scrollspy"}refresh(){this._initializeTargetsAndObservables(),this._maybeEnableSmoothScroll(),this._observer?this._observer.disconnect():this._observer=this._getNewObserver();for(const t of this._observableSections.values())this._observer.observe(t)}dispose(){this._observer.disconnect(),super.dispose()}_configAfterMerge(t){t.target=u(t.target)||document.body,t.rootMargin=t.offset?`${t.offset}px 0px -30%`:t.rootMargin;const e=t.threshold;return"string"==typeof e&&(t.threshold=e.split(",").map(t=>Number.parseFloat(t))),t}_maybeEnableSmoothScroll(){this._config.smoothScroll&&(H.off(this._config.target,qr),H.on(this._config.target,qr,Kr,t=>{const e=this._observableSections.get(t.target.hash);if(e){t.preventDefault();const i=this._rootElement||window,n=e.offsetTop-this._element.offsetTop;if("scrollTo"in i)return void i.scrollTo({top:n,behavior:"smooth"});i.scrollTop=n}}))}_getNewObserver(){const t={root:this._rootElement,threshold:this._config.threshold,rootMargin:this._config.rootMargin};return new IntersectionObserver(t=>this._observerCallback(t),t)}_observerCallback(t){const e=t=>this._targetLinks.get(`#${t.target.id}`),i=t=>{this._previousScrollData.visibleEntryTop=t.target.offsetTop,this._process(e(t))},n=(this._rootElement||document.documentElement).scrollTop,s=n>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=n;for(const r of t){if(!r.isIntersecting){this._activeTarget=null,this._clearActiveClass(e(r));continue}const t=r.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(s&&t){if(i(r),!n)return}else s||t||i(r)}}_initializeTargetsAndObservables(){this._targetLinks=new Map,this._observableSections=new Map;const t=tt.find(Kr,this._config.target);for(const e of t){if(!e.hash||f(e))continue;const t=tt.findOne(o(decodeURI(e.hash)),this._element);d(t)&&(this._targetLinks.set(decodeURI(e.hash),e),this._observableSections.set(e.hash,t))}}_process(t){this._activeTarget!==t&&(this._clearActiveClass(this._config.target),this._activeTarget=t,t.classList.add(Ur),this._activateParents(t),H.trigger(this._element,Vr,{relatedTarget:t}))}_activateParents(t){if(t.classList.contains("dropdown-item"))tt.findOne(".dropdown-toggle",t.closest(".dropdown")).classList.add(Ur);else for(const e of tt.parents(t,".nav, .list-group"))for(const t of tt.prev(e,Qr))t.classList.add(Ur)}_clearActiveClass(t){t.classList.remove(Ur);const e=tt.find(`${Kr}.${Ur}`,t);for(const t of e)t.classList.remove(Ur)}static jQueryInterface(e){return this.each(function(){const i=t.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===i[e]||e.startsWith("_")||"constructor"===e)throw new TypeError(`No method named "${e}"`);i[e]()}})}};H.on(window,Yr,()=>{for(const t of tt.find('[data-bs-spy="scroll"], [data-tblr-spy="scroll"]'))Jr.getOrCreateInstance(t)}),w(Jr);var to=".bs.tab",eo=`hide${to}`,io=`hidden${to}`,no=`show${to}`,so=`shown${to}`,ro=`click${to}`,oo=`keydown${to}`,ao=`load${to}`,lo="ArrowLeft",co="ArrowRight",ho="ArrowUp",uo="ArrowDown",fo="Home",po="End",mo="active",go="fade",_o="show",vo=".dropdown-toggle",bo=`:not(${vo})`,yo='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"], [data-tblr-toggle="tab"], [data-tblr-toggle="pill"], [data-tblr-toggle="list"]',wo=`${`.nav-link${bo}, .list-group-item${bo}, [role="tab"]${bo}`}, ${yo}`,Ao=`.${mo}[data-bs-toggle="tab"], .${mo}[data-bs-toggle="pill"], .${mo}[data-bs-toggle="list"], .${mo}[data-tblr-toggle="tab"], .${mo}[data-tblr-toggle="pill"], .${mo}[data-tblr-toggle="list"]`,Eo=class t extends Z{constructor(t){super(t),this._parent=this._element.closest('.list-group, .nav, [role="tablist"]'),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),H.on(this._element,oo,t=>this._keydown(t)))}static get NAME(){return"tab"}show(){const t=this._element;if(this._elemIsActive(t))return;const e=this._getActiveElem(),i=e?H.trigger(e,eo,{relatedTarget:t}):null,n=H.trigger(t,no,{relatedTarget:e});(null==n?void 0:n.defaultPrevented)||(null==i?void 0:i.defaultPrevented)||(this._deactivate(e,t),this._activate(t,e))}_activate(t,e){if(!t)return;t.classList.add(mo),this._activate(tt.getElementFromSelector(t));this._queueCallback(()=>{"tab"===t.getAttribute("role")?(t.removeAttribute("tabindex"),t.setAttribute("aria-selected","true"),this._toggleDropDown(t,!0),H.trigger(t,so,{relatedTarget:e})):t.classList.add(_o)},t,t.classList.contains(go))}_deactivate(t,e){if(!t)return;t.classList.remove(mo),t.blur(),this._deactivate(tt.getElementFromSelector(t));this._queueCallback(()=>{"tab"===t.getAttribute("role")?(t.setAttribute("aria-selected","false"),t.setAttribute("tabindex","-1"),this._toggleDropDown(t,!1),H.trigger(t,io,{relatedTarget:e})):t.classList.remove(_o)},t,t.classList.contains(go))}_keydown(e){if(![lo,co,ho,uo,fo,po].includes(e.key))return;e.stopPropagation(),e.preventDefault();const i=this._getChildren().filter(t=>!f(t));let n;if([fo,po].includes(e.key))n=i[e.key===fo?0:i.length-1];else{const t=[co,uo].includes(e.key);n=x(i,e.target,t,!0)}n&&(n.focus({preventScroll:!0}),t.getOrCreateInstance(n).show())}_getChildren(){return tt.find(wo,this._parent)}_getActiveElem(){return this._getChildren().find(t=>this._elemIsActive(t))||null}_setInitialAttributes(t,e){this._setAttributeIfNotExists(t,"role","tablist");for(const t of e)this._setInitialAttributesOnChild(t)}_setInitialAttributesOnChild(t){t=this._getInnerElement(t);const e=this._elemIsActive(t),i=this._getOuterElement(t);t.setAttribute("aria-selected",String(e)),i!==t&&this._setAttributeIfNotExists(i,"role","presentation"),e||t.setAttribute("tabindex","-1"),this._setAttributeIfNotExists(t,"role","tab"),this._setInitialAttributesOnTargetPanel(t)}_setInitialAttributesOnTargetPanel(t){const e=tt.getElementFromSelector(t);e&&(this._setAttributeIfNotExists(e,"role","tabpanel"),t.id&&this._setAttributeIfNotExists(e,"aria-labelledby",`${t.id}`))}_toggleDropDown(t,e){const i=this._getOuterElement(t);if(!i.classList.contains("dropdown"))return;const n=(t,n)=>{const s=tt.findOne(t,i);s&&s.classList.toggle(n,e)};n(vo,mo),n(".dropdown-menu",_o),i.setAttribute("aria-expanded",String(e))}_setAttributeIfNotExists(t,e,i){t.hasAttribute(e)||t.setAttribute(e,i)}_elemIsActive(t){return t.classList.contains(mo)}_getInnerElement(t){return t.matches(wo)?t:tt.findOne(wo,t)}_getOuterElement(t){return t.closest(".nav-item, .list-group-item")||t}static jQueryInterface(e){return this.each(function(){const i=t.getOrCreateInstance(this);if("string"==typeof e){if(void 0===i[e]||e.startsWith("_")||"constructor"===e)throw new TypeError(`No method named "${e}"`);i[e]()}})}};H.on(document,ro,yo,function(t){["A","AREA"].includes(this.tagName)&&t.preventDefault(),f(this)||Eo.getOrCreateInstance(this).show()}),H.on(window,ao,()=>{for(const t of tt.find(Ao))Eo.getOrCreateInstance(t)}),w(Eo);var xo=".bs.toast",Co=`mouseover${xo}`,So=`mouseout${xo}`,To=`focusin${xo}`,ko=`focusout${xo}`,Oo=`hide${xo}`,Do=`hidden${xo}`,$o=`show${xo}`,Io=`shown${xo}`,Lo="hide",Mo="show",No="showing",Po={animation:"boolean",autohide:"boolean",delay:"number"},jo={animation:!0,autohide:!0,delay:5e3},Fo=class t extends Z{constructor(t,e){super(t,e),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return jo}static get DefaultType(){return Po}static get NAME(){return"toast"}show(){const t=H.trigger(this._element,$o);if(null==t?void 0:t.defaultPrevented)return;this._clearTimeout(),this._config.animation&&this._element.classList.add("fade");this._element.classList.remove(Lo),g(this._element),this._element.classList.add(Mo,No),this._queueCallback(()=>{this._element.classList.remove(No),H.trigger(this._element,Io),this._maybeScheduleHide()},this._element,this._config.animation)}hide(){if(!this.isShown())return;const t=H.trigger(this._element,Oo);if(null==t?void 0:t.defaultPrevented)return;this._element.classList.add(No),this._queueCallback(()=>{this._element.classList.add(Lo),this._element.classList.remove(No,Mo),H.trigger(this._element,Do)},this._element,this._config.animation)}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(Mo),super.dispose()}isShown(){return this._element.classList.contains(Mo)}_maybeScheduleHide(){this._config.autohide&&(this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout(()=>{this.hide()},this._config.delay)))}_onInteraction(t,e){switch(t.type){case"mouseover":case"mouseout":this._hasMouseInteraction=e;break;case"focusin":case"focusout":this._hasKeyboardInteraction=e}if(e)return void this._clearTimeout();const i=t.relatedTarget;this._element===i||this._element.contains(i)||this._maybeScheduleHide()}_setListeners(){H.on(this._element,Co,t=>this._onInteraction(t,!0)),H.on(this._element,So,t=>this._onInteraction(t,!1)),H.on(this._element,To,t=>this._onInteraction(t,!0)),H.on(this._element,ko,t=>this._onInteraction(t,!1))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(e){return this.each(function(){const i=t.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===i[e])throw new TypeError(`No method named "${e}"`);i[e](this)}})}};et(Fo),w(Fo);var zo={Alert:Zi,Button:tn,Carousel:In,Collapse:Yn,Dropdown:_s,Modal:Zs,Offcanvas:gr,Popover:Br,ScrollSpy:Jr,Tab:Eo,Toast:Fo,Tooltip:jr};y(()=>{for(const t of document.querySelectorAll('[data-bs-toggle="dropdown"], [data-tblr-toggle="dropdown"]'))try{const e={boundary:"viewport"===q.getDataAttribute(t,"boundary")?document.documentElement:"clippingParents"};_s.getOrCreateInstance(t,e)}catch(t){console.error(t)}});var Ho=t=>{for(const e of document.querySelectorAll('[data-bs-toggle="sidebar-folded"], [data-tblr-toggle="sidebar-folded"]'))e.setAttribute("aria-pressed",String(t))},Wo=t=>{for(const i of document.querySelectorAll('.navbar-vertical [data-bs-toggle="dropdown"][aria-expanded="true"]'))if(i!==t){var e;null===(e=_s.getInstance(i))||void 0===e||e.hide()}};function Bo(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Ro(t,e,i){if("function"==typeof t?t===e:t.has(e))return arguments.length<3?e:i;throw new TypeError("Private element is not present on this object")}function Vo(t,e){return t.get(Ro(t,e))}document.addEventListener("click",t=>{if(!(null!==(e=document.documentElement.getAttribute("data-bs-sidebar"))&&void 0!==e?e:"").startsWith("folded")&&!document.querySelector(".navbar-vertical.navbar-folded, .navbar-vertical.navbar-folded-hover"))return;var e;const i=t.target;i instanceof Element&&!i.closest(".navbar-vertical .dropdown-menu")&&Wo(i.closest('.navbar-vertical [data-bs-toggle="dropdown"]'))}),document.addEventListener("mouseleave",t=>{const e=t.target;e instanceof Element&&e.matches(".navbar-vertical")&&("folded-hover"===document.documentElement.getAttribute("data-bs-sidebar")||e.classList.contains("navbar-folded-hover"))&&Wo()},!0),y(()=>{var t;const e=(null!==(t=document.documentElement.getAttribute("data-bs-sidebar"))&&void 0!==t?t:"").startsWith("folded");if(Ho(e),e)for(const t of document.querySelectorAll(".navbar-vertical .dropdown-menu.show")){var i;t.classList.remove("show"),null===(i=t.parentElement)||void 0===i||null===(i=i.querySelector('[data-bs-toggle="dropdown"]'))||void 0===i||i.setAttribute("aria-expanded","false")}}),document.addEventListener("click",t=>{var e;if(!(t.target instanceof Element&&t.target.closest('[data-bs-toggle="sidebar-folded"], [data-tblr-toggle="sidebar-folded"]')))return;const i=document.documentElement,n=!(null!==(e=i.getAttribute("data-bs-sidebar"))&&void 0!==e?e:"").startsWith("folded");n?i.setAttribute("data-bs-sidebar","folded-hover"):i.removeAttribute("data-bs-sidebar");try{localStorage.setItem("tabler-sidebar",n?"folded-hover":"default")}catch(t){}Ho(n),Wo(),document.dispatchEvent(new CustomEvent("tabler:sidebar-folded",{detail:{folded:n}}))}),y(()=>{for(const i of document.querySelectorAll('[data-bs-toggle="tooltip"], [data-tblr-toggle="tooltip"]'))try{var t,e;const n={delay:null!==(t=q.getDataAttribute(i,"delay"))&&void 0!==t?t:{show:50,hide:50},placement:null!==(e=q.getDataAttribute(i,"placement"))&&void 0!==e?e:"auto"};jr.getOrCreateInstance(i,n)}catch(t){console.error(t)}}),y(()=>{for(const i of document.querySelectorAll('[data-bs-toggle="popover"], [data-tblr-toggle="popover"]'))try{var t,e;const n={delay:null!==(t=q.getDataAttribute(i,"delay"))&&void 0!==t?t:{show:50,hide:50},placement:null!==(e=q.getDataAttribute(i,"placement"))&&void 0!==e?e:"auto"};Br.getOrCreateInstance(i,n)}catch(t){console.error(t)}});var qo="switch-icon",Yo=`.bs.${qo}`,Uo=`click${Yo}`,Ko=`toggle${Yo}`,Xo=`change${Yo}`,Qo="active",Go="switch-icon-loading",Zo=".switch-icon",Jo=`[data-bs-toggle="${qo}"], [data-tblr-toggle="${qo}"]`,ta={},ea={},ia=new WeakMap,na=new WeakSet,sa=class extends Z{constructor(t,e){var i,n,s;super(t,e),Bo(n=this,s=na),s.add(n),function(t,e,i){Bo(t,e),e.set(t,i)}(this,ia,void 0),this._element&&(!function(t,e,i){t.set(Ro(t,e),i)}(ia,this,this._element.matches(Zo)?this._element:null!==(i=tt.findOne(Zo,this._element))&&void 0!==i?i:this._element),this._element.hasAttribute("aria-pressed")||this._element.setAttribute("aria-pressed",String(this.isActive)),H.on(this._element,Uo,t=>{t.stopPropagation(),this._element.classList.contains("disabled")||"true"===this._element.getAttribute("aria-disabled")||this.toggle()}))}static get Default(){return ta}static get DefaultType(){return ea}static get NAME(){return qo}get isActive(){return Vo(ia,this).classList.contains(Qo)}get isLoading(){return Vo(ia,this).classList.contains(Go)}toggle(t){if(this.isLoading)return;const e=null!=t?t:!this.isActive;let i;const n=H.trigger(this._element,Ko,{active:e,wait:t=>{i=t}});(null==n?void 0:n.defaultPrevented)||(i?(Ro(na,this,oa).call(this,!0),i.then(()=>Ro(na,this,ra).call(this,e),()=>{}).finally(()=>Ro(na,this,oa).call(this,!1))):Ro(na,this,ra).call(this,e))}dispose(){Ro(na,this,oa).call(this,!1),super.dispose()}};function ra(t){this._element&&(Vo(ia,this).classList.toggle(Qo,t),this._element.setAttribute("aria-pressed",String(t)),H.trigger(this._element,Xo,{active:t}))}function oa(t){this._element&&(Vo(ia,this).classList.toggle(Go,t),t?this._element.setAttribute("aria-busy","true"):this._element.removeAttribute("aria-busy"))}it(Jo,sa);y(()=>{const t=window.location.hash;if(t)for(const e of document.querySelectorAll('[data-bs-toggle="tab"], [data-tblr-toggle="tab"]'))if(e.hash===t)try{Eo.getOrCreateInstance(e).show()}catch(t){console.error(t)}}),y(()=>{for(const t of document.querySelectorAll('[data-bs-toggle="toast"], [data-tblr-toggle="toast"]'))try{const e=tt.getElementFromSelector(t);if(!e)continue;const i=Fo.getOrCreateInstance(e);t.addEventListener("click",()=>{i.show()})}catch(t){console.error(t)}});var aa="sortable",la=`data-${aa}`,ca=`[${la}]`,ha={},ua={},da=class extends Z{constructor(t,e){super(t,e),this._sortable=null,this._element&&window.Sortable&&(this._sortable=new window.Sortable(this._element,this._config))}static get Default(){return ha}static get DefaultType(){return ua}static get NAME(){return aa}get sortable(){return this._sortable}toArray(){var t,e;return null!==(t=null===(e=this._sortable)||void 0===e?void 0:e.toArray())&&void 0!==t?t:[]}sort(t,e){var i;null===(i=this._sortable)||void 0===i||i.sort(t,e)}dispose(){var t;null===(t=this._sortable)||void 0===t||t.destroy(),super.dispose()}_mergeConfigObj(t,e){let i={};const n=null==e?void 0:e.getAttribute(la);if(n)try{const t=JSON.parse(n);t&&"object"==typeof t&&!Array.isArray(t)&&(i=t)}catch(t){}return super._mergeConfigObj(Q(Q({},i),t),e)}};it(ca,da);var fa="otpInput",pa=`.bs.${fa}`,ma=`input${pa}`,ga=`complete${pa}`,_a="otp-rendered",va=["blur","keyup","select"],ba=["click","pointercancel"],ya={numeric:{inputmode:"numeric",pattern:"[0-9]*",filter:/[^0-9]/g},alphanumeric:{inputmode:"text",pattern:"[A-Za-z0-9]*",filter:/[^A-Za-z0-9]/g},alpha:{inputmode:"text",pattern:"[A-Za-z]*",filter:/[^A-Za-z]/g}},wa={groups:null,length:null,mask:!1,separator:"·",type:"numeric"},Aa={groups:"(array|null)",length:"(number|null)",mask:"boolean",separator:"string",type:"string"},Ea=class extends Z{constructor(t,e){var i;if(super(t,e),this._length=0,this._wasComplete=!1,this._slots=[],this._slotsContainer=null,this._pointerActive=!1,this._pointerIndex=0,this._composedValue=null,this._onInput=t=>{if(t.isComposing)return;const e=this._composedValue;this._composedValue=null,null!==e&&e===this._input.value||this._handleInput()},this._onCompositionEnd=()=>{this._handleInput(),this._composedValue=this._input.value},this._onBeforeInput=t=>this._handleBeforeInput(t),this._onFocus=()=>this._handleFocus(),this._onPointerDown=t=>this._handlePointerDown(t),this._onPointerEnd=()=>{this._pointerActive=!1},this._onSync=()=>this._render(),this._onSelectionChange=()=>{document.activeElement===this._input&&this._render()},!this._element)return;const n=tt.findOne("input",this._element);n&&(this._input=n,this._type=null!==(i=ya[this._config.type])&&void 0!==i?i:ya.numeric,this._length=this._resolveLength(),this._setupInput(),this._renderSlots(),this._addEventListeners(),this._render(),this._wasComplete=this._input.value.length===this._length)}static get Default(){return wa}static get DefaultType(){return Aa}static get NAME(){return fa}getValue(){return this._input.value}setValue(t){this._input.value=this._sanitize(String(t)),this._render(),this._checkComplete()}clear(){this._input.value="",this._render(),this._input.focus()}focus(){this._pointerActive=!1,this._input.focus(),this._selectSlot(this._firstEmptyIndex()),this._render()}dispose(){var t;if(this._input){this._input.removeEventListener("input",this._onInput),this._input.removeEventListener("beforeinput",this._onBeforeInput),this._input.removeEventListener("focus",this._onFocus),this._input.removeEventListener("pointerdown",this._onPointerDown),this._input.removeEventListener("compositionend",this._onCompositionEnd);for(const t of ba)this._input.removeEventListener(t,this._onPointerEnd);for(const t of va)this._input.removeEventListener(t,this._onSync);document.removeEventListener("selectionchange",this._onSelectionChange),null===(t=this._slotsContainer)||void 0===t||t.remove(),this._element.classList.remove(_a),super.dispose()}else super.dispose()}_resolveLength(){var t;const e=[this._config.length,Number.parseInt(null!==(t=this._input.getAttribute("maxlength"))&&void 0!==t?t:"",10)],{groups:i}=this._config;Array.isArray(i)&&i.length>0&&e.push(i.reduce((t,e)=>t+Number(e),0));for(const t of e)if("number"==typeof t&&Number.isInteger(t)&&t>0)return Math.min(t,32);return 6}_setupInput(){const t=this._input;"text"!==t.type&&"tel"!==t.type&&(t.type="text"),t.classList.add("otp-input"),t.setAttribute("maxlength",String(this._length)),t.setAttribute("inputmode",this._type.inputmode),t.setAttribute("pattern",this._type.pattern),t.getAttribute("autocomplete")||t.setAttribute("autocomplete","one-time-code"),t.value&&(t.value=this._sanitize(t.value))}_renderSlots(){const t=document.createElement("div");t.className="otp-slots",t.setAttribute("aria-hidden","true");const{groups:e,separator:i}=this._config;let n=0,s=0;for(let r=0;r0&&(s++,s===e[n]&&ri?(s.splice(i,n-i),this._input.value=s.join(""),this._selectSlot(i)):i>0&&(s.splice(i-1,1),this._input.value=s.join(""),this._selectSlot(i-1)),void this._afterValueChange(e)}if("deleteContentForward"===e){var a,l;t.preventDefault();const e=this._input.value,i=null!==(a=this._input.selectionStart)&&void 0!==a?a:0,n=null!==(l=this._input.selectionEnd)&&void 0!==l?l:i,s=[...this._input.value];n>i?(s.splice(i,n-i),this._input.value=s.join("")):i=s.left:t<=s.right)||i===this._slots.length-1)return i}return null}_afterValueChange(t){this._render(),void 0!==t&&t===this._input.value||(H.trigger(this._element,ma,{value:this._input.value}),this._checkComplete())}_firstEmptyIndex(){return Math.min(this._input.value.length,this._length-1)}_selectSlot(t){const e=Math.max(0,Math.min(t,this._length-1)),i=edocument.createElementNS("http://www.w3.org/2000/svg",t),Ma=(t,e)=>{for(const[i,n]of Object.entries(e))null!=n&&t.setAttribute(i,String(n))},Na=t=>`var(${Da}-${t})`,Pa=(t,e)=>{const i=e-t;return 0===i?1:i},ja=t=>Array.isArray(t)?t.map(Number).filter(Number.isFinite):"number"==typeof t?Number.isFinite(t)?[t]:[]:(t=>{const e=String(null!=t?t:"").trim();if(!e)return[];if(e.startsWith("["))try{const t=JSON.parse(e);return Array.isArray(t)?t.map(Number).filter(Number.isFinite):[]}catch(t){return[]}return e.split(",").map(t=>Number(t.trim())).filter(Number.isFinite)})(t),Fa=(t,e,i,...n)=>{const s=null!=e?e:Math.min(...t,...n),r=null!=i?i:Math.max(...t,...n);return{min:s,max:r,span:Pa(s,r)}},za=/-?\d*\.?\d+(?:e[-+]?\d+)?/g,Ha=(t,e,i)=>{const n=t.match(za),s=e.match(za);if(!n||!s||n.length!==s.length||t.replace(za,"#")!==e.replace(za,"#"))return e;let r=0;return e.replace(za,()=>{const t=Number(n[r])+(Number(s[r])-Number(n[r]))*i;return r++,String(Math.round(1e3*t)/1e3)})},Wa=(t,e,i)=>{const n=getComputedStyle(t).getPropertyValue(`${Da}-${e}`).trim(),s=Number.parseFloat(n);return Number.isFinite(s)?s:i},Ba=class extends Z{constructor(t,e){super(t,e),this._userConfig={},this._frame=0,this._element&&(this._userConfig=Q({},e),this.render())}static get Default(){return $a}static get DefaultType(){return Ia}static get NAME(){return xa}update(t){const e=Array.isArray(t)?t.join(","):String(t),i=this._element.hasAttribute("data-tblr-values")?"data-tblr-values":"data-bs-values";this._element.setAttribute(i,e),delete this._userConfig.values,this.render(),H.trigger(this._element,Ta)}render(){var t;this._config=this._getConfig(this._userConfig);const e=this._element.querySelector("svg");if(null===(t=this._element.querySelector(`.${ka}`))||void 0===t||t.remove(),0===this._config.values.length)return cancelAnimationFrame(this._frame),null==e||e.remove(),void H.trigger(this._element,Sa);let i;switch(this._config.type){case"bar":i=this._renderBars();break;case"tristate":i=this._renderTristate();break;case"circle":i=this._renderCircle();break;default:i=this._renderLine()}e&&this._canAnimate(e,i)?this._animate(e,i):(cancelAnimationFrame(this._frame),null==e||e.remove(),this._element.append(i));const n=this._labelText();if(""!==n){const t=document.createElement("span");t.className=ka,t.textContent=n,this._element.append(t)}H.trigger(this._element,Sa)}dispose(){var t,e;cancelAnimationFrame(this._frame),null===(t=this._element.querySelector("svg"))||void 0===t||t.remove(),null===(e=this._element.querySelector(`.${ka}`))||void 0===e||e.remove(),super.dispose()}_configAfterMerge(t){return t.values=ja(t.values),t}_labelText(){const{label:t,values:e,type:i}=this._config;return null===t||!1===t||""===t?"":"auto"!==t&&!0!==t?String(t):"circle"===i?`${Math.round(100*this._circleRatio())}%`:String(e[e.length-1])}_circleRatio(){var t,e,i;const n=this._config,s=null!==(t=n.values[0])&&void 0!==t?t:0,r=null!==(e=n.max)&&void 0!==e?e:n.values.length>1?n.values[1]:100,o=null!==(i=n.min)&&void 0!==i?i:0;return Math.max(0,Math.min(1,(s-o)/Pa(o,r)))}_canAnimate(t,e){return!(this._config.animation<=0||window.matchMedia("(prefers-reduced-motion: reduce)").matches)&&(t.getAttribute("viewBox")===e.getAttribute("viewBox")&&t.children.length===e.children.length&&Array.from(t.children).every((t,i)=>t.tagName===e.children[i].tagName))}_animate(t,e){cancelAnimationFrame(this._frame);const i=Array.from(e.children).map((e,i)=>{const n=t.children[i],s=[];for(const{name:t}of Array.from(n.attributes))e.hasAttribute(t)||n.removeAttribute(t);for(const{name:t,value:i}of Array.from(e.attributes)){const e=n.getAttribute(t);null===e||e===i?n.setAttribute(t,i):s.push([t,e,i])}return{source:n,tweens:s}}),n=this._config.animation,s=performance.now(),r=t=>{const e=(t=>1-Math.pow(1-t,3))(Math.min(1,(t-s)/n));for(const{source:t,tweens:n}of i)for(const[i,s,r]of n)t.setAttribute(i,e>=1?r:Ha(s,r,e));e<1&&(this._frame=requestAnimationFrame(r))};this._frame=requestAnimationFrame(r)}_hairline(t,e,i,n=!1){const s=La("line");Ma(s,{x1:0,x2:this._config.width,y1:e,y2:e,stroke:Na(i),"stroke-width":1,"stroke-dasharray":n?"3 2":null,"vector-effect":"non-scaling-stroke"}),t.append(s)}_createSvg(){const{width:t,height:e}=this._config,i=La("svg");return Ma(i,{viewBox:`0 0 ${t} ${e}`,preserveAspectRatio:"none",width:t,height:e,class:"sparkline-svg","aria-hidden":"true"}),i}_renderLine(){const t=this._config,e=this._createSvg(),{min:i,span:n}=Fa(t.values,t.min,t.max,...null===t.threshold?[]:[t.threshold]),s=e=>t.pad+(1-(e-i)/n)*(t.height-2*t.pad),r=1===t.values.length?[s(t.values[0]),s(t.values[0])]:t.values.map(s),o=t.width/(r.length-1);if(null!==t.threshold&&this._hairline(e,s(t.threshold),"threshold",!0),"auto"===t.fill){const i=La("path");Ma(i,{d:this._areaPath(r,o,t.height),fill:Na("fill"),stroke:"none"}),e.append(i)}const a=La("polyline");Ma(a,{points:r.map((t,e)=>`${e*o},${t}`).join(" "),fill:"none",stroke:Na("stroke"),"stroke-width":Na("stroke-width"),"stroke-linecap":"round","stroke-linejoin":"round"}),e.append(a);const l=((t,e)=>{if(0===t.length||"none"===e)return-1;if("last"===e)return t.length-1;let i=0;for(let n=1;nt[i])&&(i=n);return i})(t.values,t.spot);if(l>=0){const i=La("circle");Ma(i,{cx:1===t.values.length?t.width/2:l*o,cy:r[l],r:Wa(this._element,"spot-size",2),fill:Na("spot")}),e.append(i)}return e}_areaPath(t,e,i){return`${t.map((t,i)=>`${0===i?"M":"L"} ${i*e} ${t}`).join(" ")} L ${(t.length-1)*e} ${i} L 0 ${i} Z`}_renderBars(){const t=this._config,e=this._createSvg(),{min:i,span:n}=Fa(t.values,t.min,t.max,0,...null===t.threshold?[]:[t.threshold]),s=e=>t.height-(e-i)/n*t.height,r=t.values.length,o=(t.width-t.barGap*(r-1))/r,a=s(0);i<0&&this._hairline(e,a,"zero"),null!==t.threshold&&this._hairline(e,s(t.threshold),"threshold",!0);const l=e=>Math.max(0,Math.min(t.height,e));return t.values.forEach((i,n)=>{const r=l(s(Math.max(i,0))),a=l(s(Math.min(i,0))),c=null===t.threshold?i<0:i{const a=La("rect"),l=i>0?{y:0,height:s,fill:"stroke"}:i<0?{y:s,height:s,fill:"negative"}:{y:s-r/2,height:r,fill:"track"};Ma(a,{x:o*(n+t.barGap),y:l.y,width:n,height:l.height,rx:t.barRadius,fill:Na(l.fill)}),e.append(a)}),e}_renderCircle(){const t=this._config,e=this._createSvg(),i=Wa(this._element,"stroke-width",2),n=Math.max(0,Math.min(t.width,t.height)/2-i/2),s=t.width/2,r=t.height/2,o=this._circleRatio(),a=2*Math.PI*n,l=La("circle");Ma(l,{cx:s,cy:r,r:n,fill:"none",stroke:Na("track"),"stroke-width":i}),e.append(l);const c=La("circle");return Ma(c,{cx:s,cy:r,r:n,fill:"none",stroke:Na("stroke"),"stroke-width":i,"stroke-linecap":"round","stroke-dasharray":a,"stroke-dashoffset":a*(1-o),transform:`rotate(-90 ${s} ${r})`}),e.append(c),e}};it(Oa,Ba);var Ra="strength",Va=`change.bs.${Ra}`,qa=`[data-bs-${Ra}], [data-tblr-${Ra}]`,Ya=`.${Ra}-segment`,Ua=`.${Ra}-text`,Ka=["weak","fair","good","strong"],Xa={input:null,minLength:8,messages:{weak:"Weak",fair:"Fair",good:"Good",strong:"Strong"},weights:{minLength:1,extraLength:1,longPassword:1,lowercase:1,uppercase:1,numbers:1,special:1,multipleSpecial:1},thresholds:[2,4,6],scorer:null},Qa={input:"(string|null)",minLength:"number",messages:"object",weights:"object",thresholds:"array",scorer:"(function|null)"},Ga=class extends Z{constructor(t,e){var i,n;super(t,e),this._input=null,this._segments=[],this._text=null,this._emptyText="",this._level=null,this._onInput=()=>this.evaluate(),this._element&&(this._input=this._getInput(),this._segments=tt.find(Ya,this._element),this._text=this._getText(),this._emptyText=null!==(i=null===(n=this._text)||void 0===n||null===(n=n.textContent)||void 0===n?void 0:n.trim())&&void 0!==i?i:"",this._setUpAria(),this._input&&(this._input.addEventListener("input",this._onInput),this.evaluate()))}static get Default(){return Xa}static get DefaultType(){return Qa}static get NAME(){return Ra}get level(){return this._level}evaluate(){if(!this._input)return;const t=this._input.value,e=this._score(t),i=this._level_(e);i!==this._level&&(this._level=i,this._render(i),H.trigger(this._element,Va,{strength:i,score:e}))}dispose(){var t;null===(t=this._input)||void 0===t||t.removeEventListener("input",this._onInput),super.dispose()}_configAfterMerge(t){return Q(Q({},t),{},{messages:Q(Q({},Xa.messages),t.messages),weights:Q(Q({},Xa.weights),t.weights)})}_getInput(){var t,e;const{input:i}=this._config;if(i)return u(i);const n=this._element.parentElement,s=n?tt.find('input[type="password"]',n):[],r=s.filter(t=>Boolean(t.compareDocumentPosition(this._element)&Node.DOCUMENT_POSITION_FOLLOWING));return null!==(t=null!==(e=r[r.length-1])&&void 0!==e?e:s[0])&&void 0!==t?t:null}_getText(){const t=this._element.parentElement;return t?tt.findOne(Ua,t):null}_setUpAria(){var t;const e=this._element;e.setAttribute("role","progressbar"),e.setAttribute("aria-valuemin","0"),e.setAttribute("aria-valuemax",String(Ka.length)),e.setAttribute("aria-valuenow","0"),e.hasAttribute("aria-label")||e.hasAttribute("aria-labelledby")||e.setAttribute("aria-label","Password strength");for(const t of this._segments)t.setAttribute("aria-hidden","true");null===(t=this._text)||void 0===t||t.setAttribute("aria-live","polite")}_score(t){var e;if(!t)return 0;const{scorer:i,weights:n,minLength:s}=this._config;return"function"==typeof i?i(t):[[t.length>=s,n.minLength],[t.length>=s+4,n.extraLength],[t.length>=16,n.longPassword],[/[a-z]/.test(t),n.lowercase],[/[A-Z]/.test(t),n.uppercase],[/\d/.test(t),n.numbers],[/[^\dA-Za-z]/.test(t),n.special],[(null!==(e=t.match(/[^\dA-Za-z]/g))&&void 0!==e?e:[]).length>1,n.multipleSpecial]].reduce((t,[e,i])=>t+(e&&null!=i?i:0),0)}_level_(t){var e;if(t<=0)return null;const i=this._config.thresholds.findIndex(e=>t<=e);return null!==(e=Ka[-1===i?Ka.length-1:i])&&void 0!==e?e:null}_render(t){const e=this._element,i=t?Ka.indexOf(t):-1;var n;(e.dataset.bsStrength=null!=t?t:"",e.setAttribute("aria-valuenow",String(i+1)),t)?e.setAttribute("aria-valuetext",null!==(n=this._config.messages[t])&&void 0!==n?n:t):e.removeAttribute("aria-valuetext");const s=t?Math.ceil((i+1)/Ka.length*this._segments.length):0;for(const[t,e]of this._segments.entries())e.classList.toggle("active",tel,hexToRgba:()=>tl,prefix:()=>Ja}),Ja="tblr-",tl=(t,e)=>{const i=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);return i?`rgba(${parseInt(i[1],16)}, ${parseInt(i[2],16)}, ${parseInt(i[3],16)}, ${e})`:null},el=(t,e=1)=>{var i;const n=getComputedStyle(document.body).getPropertyValue(`--${Ja}${t}`).trim();return 1===e?n:null!==(i=tl(n,e))&&void 0!==i?i:n?`color-mix(in srgb, ${n} ${100*e}%, transparent)`:null};t.Alert=Zi,t.Autosize=lt,t.Button=tn,t.Carousel=In,t.Clipboard=wt,t.Collapse=Yn,t.Confetti=Mt,t.CountUp=qt,t.Datepicker=ue,t.Dropdown=_s,t.InputMask=_e,t.Modal=Zs,t.Offcanvas=gr,t.OtpInput=Ea,t.Popover=Br,Object.defineProperty(t,"Popper",{enumerable:!0,get:function(){return Ki}}),t.ScrollSpy=Jr,t.Sortable=da,t.Sparkline=Ba,t.Strength=Ga,t.SwitchIcon=sa,t.Tab=Eo,t.Toast=Fo,t.Tooltip=jr,t.bootstrap=zo,Object.defineProperty(t,"tabler",{enumerable:!0,get:function(){return Za}})}); //# sourceMappingURL=tabler.min.js.map