Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

bootstrap.native

Package Overview
Dependencies
Maintainers
1
Versions
101
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bootstrap.native - npm Package Compare versions

Comparing version 5.0.1 to 5.0.2

10

cypress/e2e/dropdown.cy.ts

@@ -34,2 +34,12 @@ /// <reference types="cypress" />

it('Can discontinue when no menu is provided', () => {
cy.get('[data-bs-toggle="dropdown"]').last().then($element => {
const element = $element[0];
element.parentElement?.querySelector('.dropdown-menu')?.remove();
const instance = Dropdown.init(element);
expect(instance.element, 'element').to.equal(element);
expect(instance.menu, 'menu').to.not.exist;
});
});
it('Can do toggle()', () => {

@@ -36,0 +46,0 @@ cy.get('[data-bs-toggle="dropdown"]').each(($element, i) => {

2

dist/bootstrap-native.js

@@ -1,2 +0,2 @@

var BSN=function(B){"use strict";function Uo(t,e){for(var n=0;n<e.length;n++){const s=e[n];if(typeof s!="string"&&!Array.isArray(s)){for(const o in s)if(o!=="default"&&!(o in t)){const i=Object.getOwnPropertyDescriptor(s,o);i&&Object.defineProperty(t,o,i.get?i:{enumerable:!0,get:()=>s[o]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var b={};(function(t){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const e={},n=r=>{const{type:c,currentTarget:l}=r;[...e[c]].forEach(([d,h])=>{l===d&&[...h].forEach(([m,S])=>{m.apply(d,[r]),typeof S=="object"&&S.once&&o(d,c,m,S)})})},s=(r,c,l,d)=>{e[c]||(e[c]=new Map);const h=e[c];h.has(r)||h.set(r,new Map);const m=h.get(r),{size:S}=m;m.set(l,d),S||r.addEventListener(c,n,d)},o=(r,c,l,d)=>{const h=e[c],m=h&&h.get(r),S=m&&m.get(l),V=S!==void 0?S:d;m&&m.has(l)&&m.delete(l),h&&(!m||!m.size)&&h.delete(r),(!h||!h.size)&&delete e[c],(!m||!m.size)&&r.removeEventListener(c,n,V)},i=s,a=o;t.addListener=s,t.globalListener=n,t.off=a,t.on=i,t.registry=e,t.removeListener=o})(b);const _o=Uo({__proto__:null,default:b},[b]),Bn="aria-describedby",fe="aria-expanded",ue="aria-hidden",pe="aria-modal",Rn="aria-pressed",We="aria-selected",qo="DOMContentLoaded",je="focus",Fe="focusin",Wn="focusout",ge="keydown",Go="keyup",k="click",Qo="mousedown",Zo="hover",me="mouseenter",ze="mouseleave",Jo="pointerdown",ti="pointermove",ei="pointerup",ve="resize",be="scroll",Ke="touchstart",ni="dragstart",Ve="ArrowDown",Xe="ArrowUp",jn="ArrowLeft",Fn="ArrowRight",Ye="Escape",si="transitionDuration",oi="transitionDelay",Ue="transitionend",zn="transitionProperty",ii=navigator.userAgentData,we=ii,{userAgent:ri}=navigator,$e=ri,Kn=/iPhone|iPad|iPod|Android/i;we?we.brands.some(t=>Kn.test(t.brand)):Kn.test($e);const Vn=/(iPhone|iPod|iPad)/,ai=we?we.brands.some(t=>Vn.test(t.brand)):Vn.test($e);$e&&$e.includes("Firefox");const{head:Te}=document;["webkitPerspective","perspective"].some(t=>t in Te.style);const ci=(t,e,n,s)=>{const o=s||!1;t.addEventListener(e,n,o)},li=(t,e,n,s)=>{const o=s||!1;t.removeEventListener(e,n,o)},di=(t,e,n,s)=>{const o=i=>{(i.target===t||i.currentTarget===t)&&(n.apply(t,[i]),li(t,e,o,s))};ci(t,e,o,s)},_t=()=>{};(()=>{let t=!1;try{const e=Object.defineProperty({},"passive",{get:()=>(t=!0,t)});di(document,qo,_t,e)}catch{}return t})(),["webkitTransform","transform"].some(t=>t in Te.style),["webkitAnimation","animation"].some(t=>t in Te.style),["webkitTransition","transition"].some(t=>t in Te.style);const Ct=(t,e)=>t.getAttribute(e),ye=(t,e)=>t.hasAttribute(e),O=(t,e,n)=>t.setAttribute(e,n),St=(t,e)=>t.removeAttribute(e),f=(t,...e)=>{t.classList.add(...e)},v=(t,...e)=>{t.classList.remove(...e)},u=(t,e)=>t.classList.contains(e),qt=t=>t!=null&&typeof t=="object"||!1,A=t=>qt(t)&&typeof t.nodeType=="number"&&[1,2,3,4,5,6,7,8,9,10,11].some(e=>t.nodeType===e)||!1,E=t=>A(t)&&t.nodeType===1||!1,Gt=new Map,Ht={set:(t,e,n)=>{E(t)&&(Gt.has(e)||Gt.set(e,new Map),Gt.get(e).set(t,n))},getAllFor:t=>Gt.get(t)||null,get:(t,e)=>{if(!E(t)||!e)return null;const n=Ht.getAllFor(e);return t&&n&&n.get(t)||null},remove:(t,e)=>{const n=Ht.getAllFor(e);!n||!E(t)||(n.delete(t),n.size===0&&Gt.delete(e))}},W=(t,e)=>Ht.get(t,e),Pt=t=>typeof t=="string"||!1,_e=t=>qt(t)&&t.constructor.name==="Window"||!1,Xn=t=>A(t)&&t.nodeType===9||!1,$=t=>_e(t)?t.document:Xn(t)?t:A(t)?t.ownerDocument:window.document,Qt=t=>Object.entries(t),lt=t=>{if(!t)return;if(Pt(t))return $().createElement(t);const{tagName:e}=t,n=lt(e);if(!n)return;const s={...t};return delete s.tagName,Qt(s).forEach(([o,i])=>{Pt(o)&&Pt(i)&&O(n,o,i)}),n},w=(t,e)=>t.dispatchEvent(e),z=(t,e)=>{const n=getComputedStyle(t),s=e.replace("webkit","Webkit").replace(/([A-Z])/g,"-$1").toLowerCase();return n.getPropertyValue(s)},hi=t=>{const e=z(t,zn),n=z(t,oi),s=n.includes("ms")?1:1e3,o=e&&e!=="none"?parseFloat(n)*s:0;return Number.isNaN(o)?0:o},Zt=t=>{const e=z(t,zn),n=z(t,si),s=n.includes("ms")?1:1e3,o=e&&e!=="none"?parseFloat(n)*s:0;return Number.isNaN(o)?0:o},N=(t,e)=>{let n=0;const s=new Event(Ue),o=Zt(t),i=hi(t);if(o){const a=r=>{r.target===t&&(e.apply(t,[r]),t.removeEventListener(Ue,a),n=1)};t.addEventListener(Ue,a),setTimeout(()=>{n||w(t,s)},o+i+17)}else e.apply(t,[s])},it=(t,e)=>t.focus(e),Yn=t=>["true",!0].includes(t)?!0:["false",!1].includes(t)?!1:["null","",null,void 0].includes(t)?null:t!==""&&!Number.isNaN(+t)?+t:t,Wt=t=>t.toLowerCase(),fi=(t,e,n,s)=>{const o={...n},i={...t.dataset},a={...e},r={},c="title";return Qt(i).forEach(([l,d])=>{const h=s&&typeof l=="string"&&l.includes(s)?l.replace(s,"").replace(/[A-Z]/g,m=>Wt(m)):l;r[h]=Yn(d)}),Qt(o).forEach(([l,d])=>{o[l]=Yn(d)}),Qt(e).forEach(([l,d])=>{l in o?a[l]=o[l]:l in r?a[l]=r[l]:a[l]=l===c?Ct(t,c):d}),a},dt=(t,...e)=>Object.assign(t,...e),qe=t=>Object.keys(t),ui=t=>Object.values(t),T=(t,e)=>{const n=new CustomEvent(t,{cancelable:!0,bubbles:!0});return qt(e)&&dt(n,e),n},Z={passive:!0},Dt=t=>t.offsetHeight,L=(t,e)=>{Qt(e).forEach(([n,s])=>{if(s&&Pt(n)&&n.includes("--"))t.style.setProperty(n,s);else{const o={};o[n]=s,dt(t.style,o)}})},Ge=t=>qt(t)&&t.constructor.name==="Map"||!1,pi=t=>typeof t=="number"||!1,ht=new Map,p={set:(t,e,n,s)=>{!E(t)||(s&&s.length?(ht.has(t)||ht.set(t,new Map),ht.get(t).set(s,setTimeout(e,n))):ht.set(t,setTimeout(e,n)))},get:(t,e)=>{if(!E(t))return null;const n=ht.get(t);return e&&n&&Ge(n)?n.get(e)||null:pi(n)?n:null},clear:(t,e)=>{if(!E(t))return;const n=ht.get(t);e&&e.length&&Ge(n)?(clearTimeout(n.get(e)),n.delete(e),n.size===0&&ht.delete(t)):(clearTimeout(n),ht.delete(t))}},Jt=(t,e)=>{const{width:n,height:s,top:o,right:i,bottom:a,left:r}=t.getBoundingClientRect();let c=1,l=1;if(e&&E(t)){const{offsetWidth:d,offsetHeight:h}=t;c=d>0?Math.round(n)/d:1,l=h>0?Math.round(s)/h:1}return{width:n/c,height:s/l,top:o/l,right:i/c,bottom:a/l,left:r/c,x:r/c,y:o/l}},ft=t=>$(t).body,rt=t=>$(t).documentElement,Un=t=>A(t)&&t.constructor.name==="ShadowRoot"||!1,gi=t=>t.nodeName==="HTML"?t:E(t)&&t.assignedSlot||A(t)&&t.parentNode||Un(t)&&t.host||rt(t);let _n=0,qn=0;const jt=new Map,Gn=(t,e)=>{let n=e?_n:qn;if(e){const s=Gn(t),o=jt.get(s)||new Map;jt.has(s)||jt.set(s,o),Ge(o)&&!o.has(e)?(o.set(e,n),_n+=1):n=o.get(e)}else{const s=t.id||t;jt.has(s)?n=jt.get(s):(jt.set(s,n),qn+=1)}return n},Ft=t=>{var e;return t?Xn(t)?t.defaultView:A(t)?(e=t?.ownerDocument)==null?void 0:e.defaultView:t:window},mi=t=>Array.isArray(t)||!1,Qn=t=>{if(!A(t))return!1;const{top:e,bottom:n}=Jt(t),{clientHeight:s}=rt(t);return e<=s&&n>=0},Ee=t=>typeof t=="function"||!1,vi=t=>qt(t)&&t.constructor.name==="NodeList"||!1,ut=t=>rt(t).dir==="rtl",bi=t=>A(t)&&["TABLE","TD","TH"].includes(t.nodeName)||!1,x=(t,e)=>t?t.closest(e)||x(t.getRootNode().host,e):null,P=(t,e)=>E(t)?t:(A(e)?e:$()).querySelector(t),Qe=(t,e)=>(A(e)?e:$()).getElementsByTagName(t),J=(t,e)=>(A(e)?e:$()).querySelectorAll(t),pt=(t,e)=>(e&&A(e)?e:$()).getElementsByClassName(t),wi=(t,e)=>t.matches(e),R="fade",g="show",Ce="data-bs-dismiss",Se="alert",Zn="Alert",$i="5.0.1";class tt{element;options;constructor(e,n){const s=P(e);if(!s)throw Pt(e)?Error(`${this.name} Error: "${e}" is not a valid selector.`):Error(`${this.name} Error: your target is not an instance of HTMLElement.`);const o=Ht.get(s,this.name);o&&o.dispose(),this.element=s,this.defaults&&qe(this.defaults).length&&(this.options=fi(s,this.defaults,n||{},"bs")),Ht.set(s,this.name,this)}get version(){return $i}get name(){return"BaseComponent"}get defaults(){return{}}dispose(){Ht.remove(this.element,this.name),qe(this).forEach(e=>{delete this[e]})}}const Jn=`.${Se}`,Ti=`[${Ce}="${Se}"]`,ts=t=>W(t,Zn),yi=t=>new Je(t),es=T(`close.bs.${Se}`),Ei=T(`closed.bs.${Se}`),ns=t=>{const{element:e}=t;Ze(t),w(e,Ei),t.dispose(),e.remove()},Ze=(t,e)=>{const n=e?b.addListener:b.removeListener,{dismiss:s}=t;s&&n(s,k,t.close)};class Je extends tt{static selector=Jn;static init=yi;static getInstance=ts;dismiss;constructor(e){super(e),this.dismiss=P(Ti,this.element),Ze(this,!0)}get name(){return Zn}close(e){const n=e?ts(x(e.target,Jn)):this,{element:s}=n;if(s&&u(s,g)){if(w(s,es),es.defaultPrevented)return;v(s,g),u(s,R)?N(s,()=>ns(n)):ns(n)}}dispose(){Ze(this),super.dispose()}}const C="active",U="data-bs-toggle",Ci="button",ss="Button",Si=`[${U}="${Ci}"]`,os=t=>W(t,ss),Hi=t=>new tn(t),is=(t,e)=>{(e?b.addListener:b.removeListener)(t.element,k,t.toggle)};class tn extends tt{static selector=Si;static init=Hi;static getInstance=os;isActive=!1;constructor(e){super(e);const{element:n}=this;this.isActive=u(n,C),O(n,Rn,String(!!this.isActive)),is(this,!0)}get name(){return ss}toggle(e){e&&e.preventDefault();const n=e?os(e.target):this;if(!n.element)return;const{element:s,isActive:o}=n;if(u(s,"disabled"))return;(o?v:f)(s,C),O(s,Rn,o?"false":"true"),n.isActive=u(s,C)}dispose(){is(this),super.dispose()}}const en="data-bs-target",At="carousel",rs="Carousel",as="data-bs-parent",Pi="data-bs-container",j=t=>{const e=[en,as,Pi,"href"],n=$(t);return e.map(s=>{const o=Ct(t,s);return o?s===as?x(t,o):P(o,n):null}).filter(s=>s)[0]},te=`[data-bs-ride="${At}"]`,et=`${At}-item`,nn="data-bs-slide-to",gt="data-bs-slide",mt="paused",cs={pause:"hover",keyboard:!1,touch:!0,interval:5e3},st=t=>W(t,rs),Di=t=>new cn(t);let Lt=0,zt=0,ee=0;const sn=T(`slide.bs.${At}`),on=T(`slid.bs.${At}`),Ai=t=>{const{index:e,direction:n,element:s,slides:o,options:i}=t;if(t.isAnimating&&st(s)){const a=an(t),r=n==="left"?"next":"prev",c=n==="left"?"start":"end";f(o[e],C),v(o[e],`${et}-${r}`),v(o[e],`${et}-${c}`),v(o[a],C),v(o[a],`${et}-${c}`),w(s,on),p.clear(s,gt),!$(s).hidden&&i.interval&&!t.isPaused&&t.cycle()}};function Li(){const t=st(this);t&&!t.isPaused&&!p.get(this,mt)&&f(this,mt)}function Ii(){const t=st(this);t&&t.isPaused&&!p.get(this,mt)&&t.cycle()}function xi(t){t.preventDefault();const e=x(this,te)||j(this),n=st(e);if(!n||n.isAnimating)return;const s=+(Ct(this,nn)||0);this&&!u(this,C)&&!Number.isNaN(s)&&n.to(s)}function Oi(t){t.preventDefault();const e=x(this,te)||j(this),n=st(e);if(!n||n.isAnimating)return;const s=Ct(this,gt);s==="next"?n.next():s==="prev"&&n.prev()}const ki=({code:t,target:e})=>{const n=$(e),[s]=[...J(te,n)].filter(c=>Qn(c)),o=st(s);if(!o||o.isAnimating||/textarea|input/i.test(e.nodeName))return;const i=ut(s);t===(i?Fn:jn)?o.prev():t===(i?jn:Fn)&&o.next()};function ls(t){const{target:e}=t,n=st(this);n&&n.isTouch&&(n.indicator&&!n.indicator.contains(e)||!n.controls.includes(e))&&(t.stopImmediatePropagation(),t.stopPropagation(),t.preventDefault())}function Ni(t){const{target:e}=t,n=st(this);if(!n||n.isAnimating||n.isTouch)return;const{controls:s,indicators:o}=n;[...s,...o].some(i=>i===e||i.contains(e))||(Lt=t.pageX,this.contains(e)&&(n.isTouch=!0,ds(n,!0)))}const Mi=t=>{zt=t.pageX},Bi=t=>{const{target:e}=t,n=$(e),s=[...J(te,n)].map(r=>st(r)).find(r=>r.isTouch);if(!s)return;const{element:o,index:i}=s,a=ut(o);if(s.isTouch=!1,ds(s),n.getSelection()?.toString().length){Lt=0,zt=0,ee=0;return}if(ee=t.pageX,!o.contains(e)||Math.abs(Lt-ee)<120){Lt=0,zt=0,ee=0;return}zt<Lt?s.to(i+(a?-1:1)):zt>Lt&&s.to(i+(a?1:-1)),Lt=0,zt=0,ee=0},rn=(t,e)=>{const{indicators:n}=t;[...n].forEach(s=>v(s,C)),t.indicators[e]&&f(n[e],C)},ds=(t,e)=>{const{element:n}=t,s=e?b.addListener:b.removeListener;s($(n),ti,Mi,Z),s($(n),ei,Bi,Z)},hs=(t,e)=>{const{element:n,options:s,slides:o,controls:i,indicators:a}=t,{touch:r,pause:c,interval:l,keyboard:d}=s,h=e?b.addListener:b.removeListener;c&&l&&(h(n,me,Li),h(n,ze,Ii)),r&&o.length>2&&(h(n,Jo,Ni,Z),h(n,Ke,ls,{passive:!1}),h(n,ni,ls,{passive:!1})),i.length&&i.forEach(m=>{m&&h(m,k,Oi)}),a.length&&a.forEach(m=>{h(m,k,xi)}),d&&h($(n),ge,ki)},an=t=>{const{slides:e,element:n}=t,s=P(`.${et}.${C}`,n);return E(s)?[...e].indexOf(s):-1};class cn extends tt{static selector=te;static init=Di;static getInstance=st;constructor(e,n){super(e,n);const{element:s}=this;this.direction=ut(s)?"right":"left",this.index=0,this.isTouch=!1,this.slides=pt(et,s);const{slides:o}=this;if(o.length<2)return;const i=$(s);this.controls=[...J(`[${gt}]`,s),...J(`[${gt}][${en}="#${s.id}"]`,i)],this.indicator=P(`.${At}-indicators`,s),this.indicators=[...this.indicator?J(`[${nn}]`,this.indicator):[],...J(`[${nn}][${en}="#${s.id}"]`,i)];const{options:a}=this;this.options.interval=a.interval===!0?cs.interval:a.interval,an(this)<0&&(f(o[0],C),this.indicators.length&&rn(this,0)),hs(this,!0),a.interval&&this.cycle()}get name(){return rs}get defaults(){return cs}get isPaused(){return u(this.element,mt)}get isAnimating(){return P(`.${et}-next,.${et}-prev`,this.element)!==null}cycle(){const{element:e,options:n,isPaused:s,index:o}=this;p.clear(e,At),s&&(p.clear(e,mt),v(e,mt)),p.set(e,()=>{this.element&&!this.isPaused&&!this.isTouch&&Qn(e)&&this.to(o+1)},n.interval,At)}pause(){const{element:e,options:n}=this;!this.isPaused&&n.interval&&(f(e,mt),p.set(e,()=>{},1,mt))}next(){this.isAnimating||this.to(this.index+1)}prev(){this.isAnimating||this.to(this.index-1)}to(e){const{element:n,slides:s,options:o}=this,i=an(this),a=ut(n);let r=e;if(this.isAnimating||i===r||p.get(n,gt))return;i<r||i===0&&r===s.length-1?this.direction=a?"right":"left":(i>r||i===s.length-1&&r===0)&&(this.direction=a?"left":"right");const{direction:c}=this;r<0?r=s.length-1:r>=s.length&&(r=0);const l=c==="left"?"next":"prev",d=c==="left"?"start":"end",h={relatedTarget:s[r],from:i,to:r,direction:c};dt(sn,h),dt(on,h),w(n,sn),!sn.defaultPrevented&&(this.index=r,rn(this,r),Zt(s[r])&&u(n,"slide")?p.set(n,()=>{f(s[r],`${et}-${l}`),Dt(s[r]),f(s[r],`${et}-${d}`),f(s[i],`${et}-${d}`),N(s[r],()=>Ai(this))},0,gt):(f(s[r],C),v(s[i],C),p.set(n,()=>{p.clear(n,gt),n&&o.interval&&!this.isPaused&&this.cycle(),w(n,on)},0,gt)))}dispose(){const{slides:e}=this,n=["start","end","prev","next"];[...e].forEach((s,o)=>{u(s,C)&&rn(this,o),n.forEach(i=>v(s,`${et}-${i}`))}),hs(this),super.dispose()}}const It="collapsing",K="collapse",fs="Collapse",Ri=`.${K}`,us=`[${U}="${K}"]`,Wi={parent:null},He=t=>W(t,fs),ji=t=>new ln(t),ps=T(`show.bs.${K}`),Fi=T(`shown.bs.${K}`),gs=T(`hide.bs.${K}`),zi=T(`hidden.bs.${K}`),Ki=t=>{const{element:e,parent:n,triggers:s}=t;w(e,ps),!ps.defaultPrevented&&(p.set(e,_t,17),n&&p.set(n,_t,17),f(e,It),v(e,K),L(e,{height:`${e.scrollHeight}px`}),N(e,()=>{p.clear(e),n&&p.clear(n),s.forEach(o=>O(o,fe,"true")),v(e,It),f(e,K),f(e,g),L(e,{height:""}),w(e,Fi)}))},ms=t=>{const{element:e,parent:n,triggers:s}=t;w(e,gs),!gs.defaultPrevented&&(p.set(e,_t,17),n&&p.set(n,_t,17),L(e,{height:`${e.scrollHeight}px`}),v(e,K),v(e,g),f(e,It),Dt(e),L(e,{height:"0px"}),N(e,()=>{p.clear(e),n&&p.clear(n),s.forEach(o=>O(o,fe,"false")),v(e,It),f(e,K),L(e,{height:""}),w(e,zi)}))},vs=(t,e)=>{const n=e?b.addListener:b.removeListener,{triggers:s}=t;s.length&&s.forEach(o=>n(o,k,Vi))},Vi=t=>{const{target:e}=t,n=e&&x(e,us),s=n&&j(n),o=s&&He(s);o&&o.toggle(),n&&n.tagName==="A"&&t.preventDefault()};class ln extends tt{static selector=Ri;static init=ji;static getInstance=He;constructor(e,n){super(e,n);const{element:s,options:o}=this,i=$(s);this.triggers=[...J(us,i)].filter(a=>j(a)===s),this.parent=P(o.parent,i)||j(s)||null,this.parent=j(s)||null,vs(this,!0)}get name(){return fs}get defaults(){return Wi}toggle(){u(this.element,g)?this.hide():this.show()}hide(){const{triggers:e,element:n}=this;p.get(n)||(ms(this),e.length&&e.forEach(s=>f(s,`${K}d`)))}show(){const{element:e,parent:n,triggers:s}=this;let o,i;n&&(o=[...J(`.${K}.${g}`,n)].find(a=>He(a)),i=o&&He(o)),(!n||!p.get(n))&&!p.get(e)&&(i&&o!==e&&(ms(i),i.triggers.forEach(a=>{f(a,`${K}d`)})),Ki(this),s.length&&s.forEach(a=>v(a,`${K}d`)))}dispose(){vs(this),super.dispose()}}const xt=["dropdown","dropup","dropstart","dropend"],bs="Dropdown",ws="dropdown-menu",$s=t=>{const e=x(t,"A");return t.tagName==="A"&&ye(t,"href")&&t.href.slice(-1)==="#"||e&&ye(e,"href")&&e.href.slice(-1)==="#"},[nt,Pe,De,Ae]=xt,dn=`[${U}="${nt}"],[${U}="${Pe}"],[${U}="${Ae}"],[${U}="${De}"]`,Kt=t=>W(t,bs),Xi=t=>new un(t),Yi=`${ws}-end`,Ts=[nt,Pe],ys=[De,Ae],Es=["A","BUTTON"],Ui={offset:5,display:"dynamic"},hn=T(`show.bs.${nt}`),Cs=T(`shown.bs.${nt}`),fn=T(`hide.bs.${nt}`),Ss=T(`hidden.bs.${nt}`),Hs=T(`updated.bs.${nt}`),Ps=t=>{const{element:e,menu:n,parentElement:s,options:o}=t,{offset:i}=o;if(z(n,"position")==="static")return;const a=ut(e),r=u(n,Yi);["margin","top","bottom","left","right"].forEach(M=>{const Tt={};Tt[M]="",L(n,Tt)});let l=xt.find(M=>u(s,M))||nt;const d={dropdown:[i,0,0],dropup:[0,0,i],dropstart:a?[-1,0,0,i]:[-1,i,0],dropend:a?[-1,i,0]:[-1,0,0,i]},h={dropdown:{top:"100%"},dropup:{top:"auto",bottom:"100%"},dropstart:a?{left:"100%",right:"auto"}:{left:"auto",right:"100%"},dropend:a?{left:"auto",right:"100%"}:{left:"100%",right:"auto"},menuStart:a?{right:"0",left:"auto"}:{right:"auto",left:"0"},menuEnd:a?{right:"auto",left:"0"}:{right:"0",left:"auto"}},{offsetWidth:m,offsetHeight:S}=n,{clientWidth:V,clientHeight:y}=rt(e),{left:X,top:q,width:Xt,height:ct}=Jt(e),D=X-m-i<0,wt=X+m+Xt+i>=V,ot=q+S+i>=y,F=q+S+ct+i>=y,Y=q-S-i<0,H=(!a&&r||a&&!r)&&X+Xt-m<0,Yt=(a&&r||!a&&!r)&&X+m>=V;if(ys.includes(l)&&D&&wt&&(l=nt),l===De&&(a?wt:D)&&(l=Ae),l===Ae&&(a?D:wt)&&(l=De),l===Pe&&Y&&!F&&(l=nt),l===nt&&F&&!Y&&(l=Pe),ys.includes(l)&&ot&&dt(h[l],{top:"auto",bottom:0}),Ts.includes(l)&&(H||Yt)){let M={left:"auto",right:"auto"};!H&&Yt&&!a&&(M={left:"auto",right:0}),H&&!Yt&&a&&(M={left:0,right:"auto"}),M&&dt(h[l],M)}const $t=d[l];L(n,{...h[l],margin:`${$t.map(M=>M&&`${M}px`).join(" ")}`}),Ts.includes(l)&&r&&r&&L(n,h[!a&&H||a&&Yt?"menuStart":"menuEnd"]),w(s,Hs)},_i=t=>[...t.children].map(e=>{if(e&&Es.includes(e.tagName))return e;const{firstElementChild:n}=e;return n&&Es.includes(n.tagName)?n:null}).filter(e=>e),Ds=t=>{const{element:e,options:n}=t,s=t.open?b.addListener:b.removeListener,o=$(e);s(o,k,Ls),s(o,je,Ls),s(o,ge,Gi),s(o,Go,Qi),n.display==="dynamic"&&[be,ve].forEach(i=>{s(Ft(e),i,Zi,Z)})},As=(t,e)=>{(e?b.addListener:b.removeListener)(t.element,k,qi)},Le=t=>{const e=[...xt,"btn-group","input-group"].map(n=>pt(`${n} ${g}`,$(t))).find(n=>n.length);if(e&&e.length)return[...e[0].children].find(n=>xt.some(s=>s===Ct(n,U)))},Ls=t=>{const{target:e,type:n}=t;if(!e||!e.closest)return;const s=Le(e),o=s&&Kt(s);if(!o)return;const{parentElement:i,menu:a}=o,r=x(e,dn)!==null,c=i&&i.contains(e)&&(e.tagName==="form"||x(e,"form")!==null);n===k&&$s(e)&&t.preventDefault(),!(n===je&&(e===s||e===a||a.contains(e)))&&(c||r||o&&o.hide())},qi=t=>{const{target:e}=t,n=e&&x(e,dn),s=n&&Kt(n);s&&(t.stopImmediatePropagation(),s.toggle(),n&&$s(n)&&t.preventDefault())},Gi=t=>{[Ve,Xe].includes(t.code)&&t.preventDefault()};function Qi(t){const{code:e}=t,n=Le(this),s=n&&Kt(n),{activeElement:o}=n&&$(n);if(!s||!o)return;const{menu:i,open:a}=s,r=_i(i);if(r&&r.length&&[Ve,Xe].includes(e)){let c=r.indexOf(o);o===n?c=0:e===Xe?c=c>1?c-1:0:e===Ve&&(c=c<r.length-1?c+1:c),r[c]&&it(r[c])}Ye===e&&a&&(s.toggle(),it(n))}function Zi(){const t=Le(this),e=t&&Kt(t);e&&e.open&&Ps(e)}class un extends tt{static selector=dn;static init=Xi;static getInstance=Kt;constructor(e,n){super(e,n);const{parentElement:s}=this.element;this.parentElement=s,this.menu=P(`.${ws}`,s),As(this,!0)}get name(){return bs}get defaults(){return Ui}toggle(){this.open?this.hide():this.show()}show(){const{element:e,open:n,menu:s,parentElement:o}=this;if(n)return;const i=Le(e),a=i&&Kt(i);a&&a.hide(),[hn,Cs,Hs].forEach(r=>{r.relatedTarget=e}),w(o,hn),!hn.defaultPrevented&&(f(s,g),f(o,g),O(e,fe,"true"),Ps(this),this.open=!n,it(e),Ds(this),w(o,Cs))}hide(){const{element:e,open:n,menu:s,parentElement:o}=this;n&&([fn,Ss].forEach(i=>{i.relatedTarget=e}),w(o,fn),!fn.defaultPrevented&&(v(s,g),v(o,g),O(e,fe,"false"),this.open=!n,Ds(this),w(o,Ss)))}dispose(){this.open&&this.hide(),As(this),super.dispose()}}const _="modal",pn="Modal",gn="Offcanvas",Ji="fixed-top",tr="fixed-bottom",Is="sticky-top",xs="position-sticky",Os=t=>[...pt(Ji,t),...pt(tr,t),...pt(Is,t),...pt(xs,t),...pt("is-fixed",t)],er=t=>{const e=ft(t);L(e,{paddingRight:"",overflow:""});const n=Os(e);n.length&&n.forEach(s=>{L(s,{paddingRight:"",marginRight:""})})},ks=t=>{const{clientWidth:e}=rt(t),{innerWidth:n}=Ft(t);return Math.abs(n-e)},Ns=(t,e)=>{const n=ft(t),s=parseInt(z(n,"paddingRight"),10),i=z(n,"overflow")==="hidden"&&s?0:ks(t),a=Os(n);e&&(L(n,{overflow:"hidden",paddingRight:`${s+i}px`}),a.length&&a.forEach(r=>{const c=z(r,"paddingRight");if(r.style.paddingRight=`${parseInt(c,10)+i}px`,[Is,xs].some(l=>u(r,l))){const l=z(r,"marginRight");r.style.marginRight=`${parseInt(l,10)-i}px`}}))},G="offcanvas",vt=lt({tagName:"div"}),Ms=(t,e)=>{const n=A(e)&&e.nodeName==="BODY",s=A(e)&&!n?e:vt,o=n?e:ft(t);A(t)&&(s===vt&&o.append(vt),s.append(t))},Bs=(t,e)=>{const n=A(e)&&e.nodeName==="BODY",s=A(e)&&!n?e:vt;A(t)&&(t.remove(),s===vt&&!vt.children.length&&vt.remove())},Ot=(t,e)=>{const n=A(e)&&e.nodeName!=="BODY"?e:vt;return A(t)&&n.contains(t)},Rs="backdrop",Ws=`${_}-${Rs}`,js=`${G}-${Rs}`,Fs=`.${_}.${g}`,mn=`.${G}.${g}`,I=lt("div"),kt=t=>P(`${Fs},${mn}`,$(t)),vn=t=>{const e=t?Ws:js;[Ws,js].forEach(n=>{v(I,n)}),f(I,e)},zs=(t,e,n)=>{vn(n),Ms(I,ft(t)),e&&f(I,R)},Ks=()=>{u(I,g)||(f(I,g),Dt(I))},Ie=()=>{v(I,g)},Vs=t=>{kt(t)||(v(I,R),Bs(I,ft(t)),er(t))},Xs=t=>E(t)&&z(t,"visibility")!=="hidden"&&t.offsetParent!==null,nr=`.${_}`,Ys=`[${U}="${_}"]`,sr=`[${Ce}="${_}"]`,Us=`${_}-static`,or={backdrop:!0,keyboard:!0},ne=t=>W(t,pn),ir=t=>new wn(t),xe=T(`show.bs.${_}`),_s=T(`shown.bs.${_}`),bn=T(`hide.bs.${_}`),qs=T(`hidden.bs.${_}`),Gs=t=>{const{element:e}=t,n=ks(e),{clientHeight:s,scrollHeight:o}=rt(e),{clientHeight:i,scrollHeight:a}=e,r=i!==a;if(!r&&n){const c=ut(e)?"paddingLeft":"paddingRight",l={};l[c]=`${n}px`,L(e,l)}Ns(e,r||s!==o)},Qs=(t,e)=>{const n=e?b.addListener:b.removeListener,{element:s}=t;n(s,k,cr),n(Ft(s),ve,t.update,Z),n($(s),ge,ar)},Zs=(t,e)=>{const n=e?b.addListener:b.removeListener,{triggers:s}=t;s.length&&s.forEach(o=>n(o,k,rr))},Js=(t,e)=>{const{triggers:n,element:s,relatedTarget:o}=t;Vs(s),L(s,{paddingRight:"",display:""}),Qs(t);const i=xe.relatedTarget||n.find(Xs);i&&it(i),Ee(e)&&e(),qs.relatedTarget=o,w(s,qs)},to=t=>{const{element:e,relatedTarget:n}=t;it(e),Qs(t,!0),_s.relatedTarget=n,w(e,_s)},eo=t=>{const{element:e,hasFade:n}=t;L(e,{display:"block"}),Gs(t),kt(e)||L(ft(e),{overflow:"hidden"}),f(e,g),St(e,ue),O(e,pe,"true"),n?N(e,()=>to(t)):to(t)},no=(t,e)=>{const{element:n,options:s,hasFade:o}=t;s.backdrop&&!e&&o&&u(I,g)&&!kt(n)?(Ie(),N(I,()=>Js(t))):Js(t,e)},rr=t=>{const{target:e}=t,n=e&&x(e,Ys),s=n&&j(n),o=s&&ne(s);o&&(n&&n.tagName==="A"&&t.preventDefault(),o.relatedTarget=n,o.toggle())},ar=({code:t,target:e})=>{const n=P(Fs,$(e)),s=n&&ne(n);if(!s)return;const{options:o}=s;o.keyboard&&t===Ye&&u(n,g)&&(s.relatedTarget=null,s.hide())};function cr(t){const e=ne(this);if(!e||p.get(this))return;const{options:n,isStatic:s,modalDialog:o}=e,{backdrop:i}=n,{target:a}=t,r=$(this)?.getSelection()?.toString().length,c=o?.contains(a),l=a&&x(a,sr);s&&!c?p.set(this,()=>{f(this,Us),N(o,()=>lr(e))},17):(l||!r&&!s&&!c&&i)&&(e.relatedTarget=l||null,e.hide(),t.preventDefault())}const lr=t=>{const{element:e,modalDialog:n}=t,s=(E(n)?Zt(n):0)+17;v(e,Us),p.set(e,()=>p.clear(e),s)};class wn extends tt{static selector=nr;static init=ir;static getInstance=ne;constructor(e,n){super(e,n);const{element:s}=this;this.modalDialog=P(`.${_}-dialog`,s),this.triggers=[...J(Ys,$(s))].filter(o=>j(o)===s),this.isStatic=this.options.backdrop==="static",this.hasFade=u(s,R),this.relatedTarget=null,Zs(this,!0),this.update=this.update.bind(this)}get name(){return pn}get defaults(){return or}toggle(){u(this.element,g)?this.hide():this.show()}show(){const{element:e,options:n,hasFade:s,relatedTarget:o}=this,{backdrop:i}=n;let a=0;if(u(e,g)||(xe.relatedTarget=o||void 0,w(e,xe),xe.defaultPrevented))return;const r=kt(e);if(r&&r!==e){const c=ne(r)||W(r,gn);c&&c.hide()}i?(Ot(I)?vn(!0):zs(e,s,!0),a=Zt(I),Ks(),setTimeout(()=>eo(this),a)):(eo(this),r&&u(I,g)&&Ie())}hide(e){const{element:n,hasFade:s,relatedTarget:o}=this;u(n,g)&&(bn.relatedTarget=o||void 0,w(n,bn),!bn.defaultPrevented&&(v(n,g),O(n,ue,"true"),St(n,pe),s?N(n,()=>no(this,e)):no(this,e)))}update(){u(this.element,g)&&Gs(this)}dispose(){Zs(this),this.hide(()=>super.dispose())}}const dr=`.${G}`,$n=`[${U}="${G}"]`,hr=`[${Ce}="${G}"]`,Oe=`${G}-toggling`,fr={backdrop:!0,keyboard:!0,scroll:!1},se=t=>W(t,gn),ur=t=>new yn(t),ke=T(`show.bs.${G}`),so=T(`shown.bs.${G}`),Tn=T(`hide.bs.${G}`),oo=T(`hidden.bs.${G}`),pr=t=>{const{element:e}=t,{clientHeight:n,scrollHeight:s}=rt(e);Ns(e,n!==s)},io=(t,e)=>{const n=e?b.addListener:b.removeListener;t.triggers.forEach(s=>n(s,k,gr))},ro=(t,e)=>{const n=e?b.addListener:b.removeListener,s=$(t.element);n(s,ge,vr),n(s,k,mr)},ao=t=>{const{element:e,options:n}=t;n.scroll||(pr(t),L(ft(e),{overflow:"hidden"})),f(e,Oe),f(e,g),L(e,{visibility:"visible"}),N(e,()=>br(t))},co=(t,e)=>{const{element:n,options:s}=t,o=kt(n);n.blur(),!o&&s.backdrop&&u(I,g)?(Ie(),N(I,()=>lo(t,e))):lo(t,e)},gr=t=>{const e=x(t.target,$n),n=e&&j(e),s=n&&se(n);s&&(s.relatedTarget=e,s.toggle(),e&&e.tagName==="A"&&t.preventDefault())},mr=t=>{const{target:e}=t,n=P(mn,$(e)),s=P(hr,n),o=n&&se(n);if(!o)return;const{options:i,triggers:a}=o,{backdrop:r}=i,c=x(e,$n),l=$(n).getSelection();I.contains(e)&&r==="static"||(!(l&&l.toString().length)&&(!n.contains(e)&&r&&(!c||a.includes(e))||s&&s.contains(e))&&(o.relatedTarget=s&&s.contains(e)?s:null,o.hide()),c&&c.tagName==="A"&&t.preventDefault())},vr=({code:t,target:e})=>{const n=P(mn,$(e)),s=n&&se(n);s&&s.options.keyboard&&t===Ye&&(s.relatedTarget=null,s.hide())},br=t=>{const{element:e}=t;v(e,Oe),St(e,ue),O(e,pe,"true"),O(e,"role","dialog"),w(e,so),ro(t,!0),it(e)},lo=(t,e)=>{const{element:n,triggers:s}=t;O(n,ue,"true"),St(n,pe),St(n,"role"),L(n,{visibility:""});const o=ke.relatedTarget||s.find(Xs);o&&it(o),Vs(n),w(n,oo),v(n,Oe),kt(n)||ro(t),Ee(e)&&e()};class yn extends tt{static selector=dr;static init=ur;static getInstance=se;constructor(e,n){super(e,n);const{element:s}=this;this.triggers=[...J($n,$(s))].filter(o=>j(o)===s),this.relatedTarget=null,io(this,!0)}get name(){return gn}get defaults(){return fr}toggle(){u(this.element,g)?this.hide():this.show()}show(){const{element:e,options:n,relatedTarget:s}=this;let o=0;if(u(e,g)||(ke.relatedTarget=s||void 0,so.relatedTarget=s||void 0,w(e,ke),ke.defaultPrevented))return;const i=kt(e);if(i&&i!==e){const a=se(i)||W(i,pn);a&&a.hide()}n.backdrop?(Ot(I)?vn():zs(e,!0),o=Zt(I),Ks(),setTimeout(()=>ao(this),o)):(ao(this),i&&u(I,g)&&Ie())}hide(e){const{element:n,relatedTarget:s}=this;u(n,g)&&(Tn.relatedTarget=s||void 0,oo.relatedTarget=s||void 0,w(n,Tn),!Tn.defaultPrevented&&(f(n,Oe),v(n,g),e?co(this,e):N(n,()=>co(this,e))))}dispose(){io(this),this.hide(()=>super.dispose())}}const Nt="popover",Ne="Popover",at="tooltip",ho=t=>{const e=t===at,n=e?`${t}-inner`:`${t}-body`,s=e?"":`<h3 class="${t}-header"></h3>`,o=`<div class="${t}-arrow"></div>`,i=`<div class="${n}"></div>`;return`<div class="${t}" role="${at}">${s+o+i}</div>`},fo={top:"top",bottom:"bottom",left:"start",right:"end"},En=t=>{const e=/\b(top|bottom|start|end)+/,{element:n,tooltip:s,container:o,options:i,arrow:a}=t;if(!s)return;const r={...fo},c=ut(n);L(s,{top:"",left:"",right:"",bottom:""});const l=t.name===Ne,{offsetWidth:d,offsetHeight:h}=s,{clientWidth:m,clientHeight:S,offsetWidth:V}=rt(n);let{placement:y}=i;const{clientWidth:X,offsetWidth:q}=o,ct=z(o,"position")==="fixed",D=Math.abs(ct?X-q:m-V),wt=c&&ct?D:0,ot=m-(c?0:D)-1,{width:F,height:Y,left:H,right:Yt,top:$t}=Jt(n,!0),{x:M,y:Tt}={x:H,y:$t};L(a,{top:"",left:"",right:"",bottom:""});let Bt=0,ae="",yt=0,On="",Ut="",Be="",kn="";const Rt=a.offsetWidth||0,Et=a.offsetHeight||0,Nn=Rt/2;let ce=$t-h-Et<0,le=$t+h+Y+Et>=S,de=H-d-Rt<wt,he=H+d+F+Rt>=ot;const Re=["left","right"],Mn=["top","bottom"];ce=Re.includes(y)?$t+Y/2-h/2-Et<0:ce,le=Re.includes(y)?$t+h/2+Y/2+Et>=S:le,de=Mn.includes(y)?H+F/2-d/2<wt:de,he=Mn.includes(y)?H+d/2+F/2>=ot:he,y=Re.includes(y)&&de&&he?"top":y,y=y==="top"&&ce?"bottom":y,y=y==="bottom"&&le?"top":y,y=y==="left"&&de?"right":y,y=y==="right"&&he?"left":y,s.className.includes(y)||(s.className=s.className.replace(e,r[y])),Re.includes(y)?(y==="left"?yt=M-d-(l?Rt:0):yt=M+F+(l?Rt:0),ce&&le?(Bt=0,ae=0,Ut=$t+Y/2-Et/2):ce?(Bt=Tt,ae="",Ut=Y/2-Rt):le?(Bt=Tt-h+Y,ae="",Ut=h-Y/2-Rt):(Bt=Tt-h/2+Y/2,Ut=h/2-Et/2)):Mn.includes(y)&&(y==="top"?Bt=Tt-h-(l?Et:0):Bt=Tt+Y+(l?Et:0),de?(yt=0,Be=M+F/2-Nn):he?(yt="auto",On=0,kn=F/2+ot-Yt-Nn):(yt=M-d/2+F/2,Be=d/2-Nn)),L(s,{top:`${Bt}px`,bottom:ae===""?"":`${ae}px`,left:yt==="auto"?yt:`${yt}px`,right:On!==""?`${On}px`:""}),E(a)&&(Ut!==""&&(a.style.top=`${Ut}px`),Be!==""?a.style.left=`${Be}px`:kn!==""&&(a.style.right=`${kn}px`));const Zr=T(`updated.bs.${Wt(t.name)}`);w(n,Zr)},Cn={template:ho(at),title:"",customClass:"",trigger:"hover focus",placement:"top",sanitizeFn:void 0,animation:!0,delay:200,container:document.body,content:"",dismissible:!1,btnClose:""},uo="data-original-title",Mt="Tooltip",bt=(t,e,n)=>{if(!(!E(t)||Pt(e)&&!e.length))if(Pt(e)){let s=e.trim();Ee(n)&&(s=n(s));const i=new DOMParser().parseFromString(s,"text/html");t.append(...i.body.childNodes)}else E(e)?t.append(e):(vi(e)||mi(e)&&e.every(A))&&t.append(...e)},wr=t=>{const e=t.name===Mt,{id:n,element:s,options:o}=t,{title:i,placement:a,template:r,animation:c,customClass:l,sanitizeFn:d,dismissible:h,content:m,btnClose:S}=o,V=e?at:Nt,y={...fo};let X=[],q=[];ut(s)&&(y.left="end",y.right="start");const Xt=`bs-${V}-${y[a]}`;let ct;if(E(r))ct=r;else{const H=lt("div");bt(H,r,d),ct=H.firstChild}t.tooltip=E(ct)?ct.cloneNode(!0):void 0;const{tooltip:D}=t;if(!D)return;O(D,"id",n),O(D,"role",at);const wt=e?`${at}-inner`:`${Nt}-body`,ot=e?null:P(`.${Nt}-header`,D),F=P(`.${wt}`,D);t.arrow=P(`.${V}-arrow`,D);const{arrow:Y}=t;if(E(i))X=[i.cloneNode(!0)];else{const H=lt("div");bt(H,i,d),X=[...H.childNodes]}if(E(m))q=[m.cloneNode(!0)];else{const H=lt("div");bt(H,m,d),q=[...H.childNodes]}if(h)if(i)if(E(S))X=[...X,S.cloneNode(!0)];else{const H=lt("div");bt(H,S,d),X=[...X,H.firstChild]}else if(ot&&ot.remove(),E(S))q=[...q,S.cloneNode(!0)];else{const H=lt("div");bt(H,S,d),q=[...q,H.firstChild]}e?i&&F&&bt(F,i,d):(i&&ot&&bt(ot,X,d),m&&F&&bt(F,q,d),t.btn=P(".btn-close",D)||void 0),f(D,"position-fixed"),f(Y,"position-absolute"),u(D,V)||f(D,V),c&&!u(D,R)&&f(D,R),l&&!u(D,l)&&f(D,l),u(D,Xt)||f(D,Xt)},$r=t=>{const e=["HTML","BODY"],n=[];let{parentNode:s}=t;for(;s&&!e.includes(s.nodeName);)s=gi(s),Un(s)||bi(s)||n.push(s);return n.find((o,i)=>z(o,"position")!=="relative"&&n.slice(i+1).every(a=>z(a,"position")==="static")?o:null)||$(t).body},Tr=`[${U}="${at}"],[data-tip="${at}"]`,po="title";let go=t=>W(t,Mt);const yr=t=>new Me(t),Er=t=>{const{element:e,tooltip:n,container:s,offsetParent:o}=t;St(e,Bn),Bs(n,s===o?s:o)},Cr=(t,e)=>{const{element:n}=t;oe(t),ye(n,uo)&&t.name===Mt&&$o(t),e&&e()},mo=(t,e)=>{const n=e?b.addListener:b.removeListener,{element:s}=t;n($(s),Ke,t.handleTouch,Z),[be,ve].forEach(o=>{n(Ft(s),o,t.update,Z)})},vo=t=>{const{element:e}=t,n=T(`shown.bs.${Wt(t.name)}`);mo(t,!0),w(e,n),p.clear(e,"in")},bo=t=>{const{element:e,onHideComplete:n}=t,s=T(`hidden.bs.${Wt(t.name)}`);mo(t),Er(t),w(e,s),Ee(n)&&(n(),t.onHideComplete=void 0),p.clear(e,"out")},oe=(t,e)=>{const n=e?b.addListener:b.removeListener,{element:s,options:o,btn:i}=t,{trigger:a}=o,c=!!(t.name!==Mt&&o.dismissible);if(a.includes("manual"))return;t.enabled=!!e,a.split(" ").forEach(d=>{d===Zo?(n(s,Qo,t.show),n(s,me,t.show),c&&i?n(i,k,t.hide):(n(s,ze,t.hide),n($(s),Ke,t.handleTouch,Z))):d===k?n(s,d,c?t.show:t.toggle):d===je&&(n(s,Fe,t.show),c||n(s,Wn,t.hide),ai&&n(s,k,()=>it(s)))})},wo=(t,e)=>{const n=e?b.addListener:b.removeListener,{element:s,container:o,offsetParent:i}=t,{offsetHeight:a,scrollHeight:r}=o,c=x(s,`.${_}`),l=x(s,`.${G}`),d=Ft(s),m=o===i&&a!==r?o:d;n(m,ve,t.update,Z),n(m,be,t.update,Z),c&&n(c,`hide.bs.${_}`,t.hide),l&&n(l,`hide.bs.${G}`,t.hide)},$o=(t,e)=>{const n=[uo,po],{element:s}=t;O(s,n[e?0:1],e||Ct(s,n[0])||""),St(s,n[e?1:0])};class Me extends tt{static selector=Tr;static init=yr;static getInstance=go;static styleTip=En;constructor(e,n){super(e,n);const{element:s}=this,o=this.name===Mt,i=o?at:Nt,a=o?Mt:Ne;go=c=>W(c,a),this.enabled=!0,this.id=`${i}-${Gn(s,i)}`;const{options:r}=this;!r.title&&o||!o&&!r.content||(dt(Cn,{titleAttr:""}),this.handleTouch=this.handleTouch.bind(this),this.update=this.update.bind(this),this.show=this.show.bind(this),this.hide=this.hide.bind(this),this.toggle=this.toggle.bind(this),ye(s,po)&&o&&typeof r.title=="string"&&$o(this,r.title),this.container=$r(s),this.offsetParent=["sticky","fixed"].some(c=>z(this.container,"position")===c)?this.container:$(this.element).body,wr(this),oe(this,!0))}get name(){return Mt}get defaults(){return Cn}show(){const{options:e,tooltip:n,element:s,container:o,offsetParent:i,id:a}=this,{animation:r}=e,c=p.get(s,"out"),l=o===i?o:i;p.clear(s,"out"),n&&!c&&!Ot(n,l)&&p.set(s,()=>{const d=T(`show.bs.${Wt(this.name)}`);w(s,d),!d.defaultPrevented&&(Ms(n,l),O(s,Bn,`#${a}`),this.update(),wo(this,!0),u(n,g)||f(n,g),r?N(n,()=>vo(this)):vo(this))},17,"in")}hide(){const{options:e,tooltip:n,element:s,container:o,offsetParent:i}=this,{animation:a,delay:r}=e;p.clear(s,"in"),n&&Ot(n,o===i?o:i)&&p.set(s,()=>{const c=T(`hide.bs.${Wt(this.name)}`);w(s,c),!c.defaultPrevented&&(this.update(),v(n,g),wo(this),a?N(n,()=>bo(this)):bo(this))},r+17,"out")}update(){En(this)}toggle(){const{tooltip:e,container:n,offsetParent:s}=this;e&&!Ot(e,n===s?n:s)?this.show():this.hide()}enable(){const{enabled:e}=this;e||(oe(this,!0),this.enabled=!e)}disable(){const{tooltip:e,container:n,offsetParent:s,options:o,enabled:i}=this,{animation:a}=o;i&&(e&&Ot(e,n===s?n:s)&&a?(this.onHideComplete=()=>oe(this),this.hide()):oe(this),this.enabled=!i)}toggleEnabled(){this.enabled?this.disable():this.enable()}handleTouch({target:e}){const{tooltip:n,element:s}=this;n&&n.contains(e)||e===s||e&&s.contains(e)||this.hide()}dispose(){const{tooltip:e,container:n,offsetParent:s,options:o}=this,i=()=>Cr(this,()=>super.dispose());o.animation&&e&&Ot(e,n===s?n:s)?(this.options.delay=0,this.onHideComplete=i,this.hide()):i()}}const Sr=`[${U}="${Nt}"],[data-tip="${Nt}"]`,Hr=dt({},Cn,{template:ho(Nt),content:"",dismissible:!1,btnClose:'<button class="btn-close" aria-label="Close"></button>'}),Pr=t=>W(t,Ne),Dr=t=>new Sn(t);class Sn extends Me{static selector=Sr;static init=Dr;static getInstance=Pr;static styleTip=En;constructor(e,n){super(e,n)}get name(){return Ne}get defaults(){return Hr}show(){super.show();const{options:e,btn:n}=this;e.dismissible&&n&&setTimeout(()=>it(n),17)}}const Ar="scrollspy",To="ScrollSpy",Lr='[data-bs-spy="scroll"]',Ir={offset:10,target:null},xr=t=>W(t,To),Or=t=>new Hn(t),yo=T(`activate.bs.${Ar}`),kr=t=>{const{target:e,scrollTarget:n,options:s,itemsLength:o,scrollHeight:i,element:a}=t,{offset:r}=s,c=_e(n),l=e&&Qe("A",e),d=n?Eo(n):i;if(t.scrollTop=c?n.scrollY:n.scrollTop,l&&(d!==i||o!==l.length)){let h,m,S;t.items=[],t.offsets=[],t.scrollHeight=d,t.maxScroll=t.scrollHeight-Nr(t),[...l].forEach(V=>{h=Ct(V,"href"),m=h&&h.charAt(0)==="#"&&h.slice(-1)!=="#"&&P(h,$(a)),m&&(t.items.push(V),S=Jt(m),t.offsets.push((c?S.top+t.scrollTop:m.offsetTop)-r))}),t.itemsLength=t.items.length}},Eo=t=>E(t)?t.scrollHeight:rt(t).scrollHeight,Nr=({element:t,scrollTarget:e})=>_e(e)?e.innerHeight:Jt(t).height,Co=t=>{[...Qe("A",t)].forEach(e=>{u(e,C)&&v(e,C)})},So=(t,e)=>{const{target:n,element:s}=t;E(n)&&Co(n),t.activeItem=e,f(e,C);const o=[];let i=e;for(;i!==ft(s);)i=i.parentElement,(u(i,"nav")||u(i,"dropdown-menu"))&&o.push(i);o.forEach(a=>{const r=a.previousElementSibling;r&&!u(r,C)&&f(r,C)}),yo.relatedTarget=e,w(s,yo)},Ho=(t,e)=>{(e?b.addListener:b.removeListener)(t.scrollTarget,be,t.refresh,Z)};class Hn extends tt{static selector=Lr;static init=Or;static getInstance=xr;constructor(e,n){super(e,n);const{element:s,options:o}=this;this.target=P(o.target,$(s)),this.target&&(this.scrollTarget=s.clientHeight<s.scrollHeight?s:Ft(s),this.scrollHeight=Eo(this.scrollTarget),this.refresh=this.refresh.bind(this),Ho(this,!0),this.refresh())}get name(){return To}get defaults(){return Ir}refresh(){const{target:e}=this;if(e?.offsetHeight===0)return;kr(this);const{scrollTop:n,maxScroll:s,itemsLength:o,items:i,activeItem:a}=this;if(n>=s){const c=i[o-1];a!==c&&So(this,c);return}const{offsets:r}=this;if(a&&n<r[0]&&r[0]>0){this.activeItem=null,e&&Co(e);return}i.forEach((c,l)=>{a!==c&&n>=r[l]&&(typeof r[l+1]>"u"||n<r[l+1])&&So(this,c)})}dispose(){Ho(this),super.dispose()}}const ie="tab",Po="Tab",Do=`[${U}="${ie}"]`,Ao=t=>W(t,Po),Mr=t=>new An(t),Pn=T(`show.bs.${ie}`),Lo=T(`shown.bs.${ie}`),Dn=T(`hide.bs.${ie}`),Io=T(`hidden.bs.${ie}`),re=new Map,xo=t=>{const{tabContent:e,nav:n}=t;e&&u(e,It)&&(e.style.height="",v(e,It)),n&&p.clear(n)},Oo=t=>{const{element:e,tabContent:n,content:s,nav:o}=t,{tab:i}=E(o)&&re.get(o)||{tab:null};if(n&&s&&u(s,R)){const{currentHeight:a,nextHeight:r}=re.get(e)||{currentHeight:0,nextHeight:0};a===r?xo(t):setTimeout(()=>{n.style.height=`${r}px`,Dt(n),N(n,()=>xo(t))},50)}else o&&p.clear(o);Lo.relatedTarget=i,w(e,Lo)},ko=t=>{const{element:e,content:n,tabContent:s,nav:o}=t,{tab:i,content:a}=o&&re.get(o)||{tab:null,content:null};let r=0;if(s&&n&&u(n,R)&&([a,n].forEach(c=>{E(c)&&f(c,"overflow-hidden")}),r=E(a)?a.scrollHeight:0),Pn.relatedTarget=i,Io.relatedTarget=e,w(e,Pn),!Pn.defaultPrevented){if(n&&f(n,C),a&&v(a,C),s&&n&&u(n,R)){const c=n.scrollHeight;re.set(e,{currentHeight:r,nextHeight:c,tab:null,content:null}),f(s,It),s.style.height=`${r}px`,Dt(s),[a,n].forEach(l=>{l&&v(l,"overflow-hidden")})}n&&n&&u(n,R)?setTimeout(()=>{f(n,g),N(n,()=>{Oo(t)})},1):(n&&f(n,g),Oo(t)),i&&w(i,Io)}},No=t=>{const{nav:e}=t;if(!E(e))return{tab:null,content:null};const n=pt(C,e);let s=null;n.length===1&&!xt.some(i=>u(n[0].parentElement,i))?[s]=n:n.length>1&&(s=n[n.length-1]);const o=E(s)?j(s):null;return{tab:s,content:o}},Mo=t=>{if(!E(t))return null;const e=x(t,`.${xt.join(",.")}`);return e?P(`.${xt[0]}-toggle`,e):null},Bo=(t,e)=>{(e?b.addListener:b.removeListener)(t.element,k,Br)},Br=t=>{const e=Ao(t.target);e&&(t.preventDefault(),e.show())};class An extends tt{static selector=Do;static init=Mr;static getInstance=Ao;constructor(e){super(e);const{element:n}=this,s=j(n);if(!s)return;const o=x(n,".nav"),i=x(s,".tab-content");this.nav=o,this.content=s,this.tabContent=i,this.dropdown=Mo(n);const{tab:a}=No(this);if(o&&!a){const r=P(Do,o),c=r&&j(r);c&&(f(r,C),f(c,g),f(c,C),O(n,We,"true"))}Bo(this,!0)}get name(){return Po}show(){const{element:e,content:n,nav:s,dropdown:o}=this;if(!(s&&p.get(s))&&!u(e,C)){const{tab:i,content:a}=No(this);if(s&&re.set(s,{tab:i,content:a,currentHeight:0,nextHeight:0}),Dn.relatedTarget=e,E(i)&&w(i,Dn),Dn.defaultPrevented)return;f(e,C),O(e,We,"true");const r=E(i)&&Mo(i);if(r&&u(r,C)&&v(r,C),s){const c=()=>{i&&(v(i,C),O(i,We,"false")),o&&!u(o,C)&&f(o,C)};a&&(u(a,R)||n&&u(n,R))?p.set(s,c,1):c()}a&&(v(a,g),u(a,R)?N(a,()=>ko(this)):ko(this))}}dispose(){Bo(this),super.dispose()}}const Q="toast",Ro="Toast",Rr=`.${Q}`,Wr=`[${Ce}="${Q}"]`,Wo=`[${U}="${Q}"]`,Vt="showing",jo="hide",jr={animation:!0,autohide:!0,delay:5e3},Ln=t=>W(t,Ro),Fr=t=>new In(t),Fo=T(`show.bs.${Q}`),zr=T(`shown.bs.${Q}`),zo=T(`hide.bs.${Q}`),Kr=T(`hidden.bs.${Q}`),Ko=t=>{const{element:e,options:n}=t;v(e,Vt),p.clear(e,Vt),w(e,zr),n.autohide&&p.set(e,()=>t.hide(),n.delay,Q)},Vo=t=>{const{element:e}=t;v(e,Vt),v(e,g),f(e,jo),p.clear(e,Q),w(e,Kr)},Vr=t=>{const{element:e,options:n}=t;f(e,Vt),n.animation?(Dt(e),N(e,()=>Vo(t))):Vo(t)},Xr=t=>{const{element:e,options:n}=t;p.set(e,()=>{v(e,jo),Dt(e),f(e,g),f(e,Vt),n.animation?N(e,()=>Ko(t)):Ko(t)},17,Vt)},Xo=(t,e)=>{const n=e?b.addListener:b.removeListener,{element:s,triggers:o,dismiss:i,options:a}=t;i&&n(i,k,t.hide),a.autohide&&[Fe,Wn,me,ze].forEach(r=>n(s,r,_r)),o.length&&o.forEach(r=>n(r,k,Ur))},Yr=t=>{p.clear(t.element,Q),Xo(t)},Ur=t=>{const{target:e}=t,n=e&&x(e,Wo),s=n&&j(n),o=s&&Ln(s);o&&(n&&n.tagName==="A"&&t.preventDefault(),o.relatedTarget=n,o.show())},_r=t=>{const e=t.target,n=Ln(e),{type:s,relatedTarget:o}=t;!n||e===o||e.contains(o)||([me,Fe].includes(s)?p.clear(e,Q):p.set(e,()=>n.hide(),n.options.delay,Q))};class In extends tt{static selector=Rr;static init=Fr;static getInstance=Ln;constructor(e,n){super(e,n);const{element:s,options:o}=this;o.animation&&!u(s,R)?f(s,R):!o.animation&&u(s,R)&&v(s,R),this.dismiss=P(Wr,s),this.triggers=[...J(Wo,$(s))].filter(i=>j(i)===s),this.show=this.show.bind(this),this.hide=this.hide.bind(this),Xo(this,!0)}get name(){return Ro}get defaults(){return jr}get isShown(){return u(this.element,g)}show(){const{element:e,isShown:n}=this;if(e&&!n){if(w(e,Fo),Fo.defaultPrevented)return;Xr(this)}}hide(){const{element:e,isShown:n}=this;if(e&&n){if(w(e,zo),zo.defaultPrevented)return;Vr(this)}}dispose(){const{element:e,isShown:n}=this;n&&v(e,g),Yr(this),super.dispose()}}const Yo={Alert:Je,Button:tn,Carousel:cn,Collapse:ln,Dropdown:un,Modal:wn,Offcanvas:yn,Popover:Sn,ScrollSpy:Hn,Tab:An,Toast:In,Tooltip:Me},qr=(t,e)=>{[...e].forEach(n=>t(n))},Gr=(t,e)=>{const n=Ht.getAllFor(t);n&&[...n].forEach(([s,o])=>{e.contains(s)&&o.dispose()})},xn=t=>{const e=t&&t.nodeName?t:document,n=[...Qe("*",e)];ui(Yo).forEach(s=>{const{init:o,selector:i}=s;qr(o,n.filter(a=>wi(a,i)))})},Qr=t=>{const e=t&&t.nodeName?t:document;qe(Yo).forEach(n=>{Gr(n,e)})};return document.body?xn():b.addListener(document,"DOMContentLoaded",()=>xn(),{once:!0}),B.Alert=Je,B.Button=tn,B.Carousel=cn,B.Collapse=ln,B.Dropdown=un,B.Listener=_o,B.Modal=wn,B.Offcanvas=yn,B.Popover=Sn,B.ScrollSpy=Hn,B.Tab=An,B.Toast=In,B.Tooltip=Me,B.initCallback=xn,B.removeDataAPI=Qr,Object.defineProperty(B,Symbol.toStringTag,{value:"Module"}),B}({});
var BSN=function(N){"use strict";var C={};(function(t){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const n={},s=c=>{const{type:m,currentTarget:h}=c;[...n[m]].forEach(([p,v])=>{h===p&&[...v].forEach(([b,S])=>{b.apply(p,[c]),typeof S=="object"&&S.once&&a(p,m,b,S)})})},o=(c,m,h,p)=>{n[m]||(n[m]=new Map);const v=n[m];v.has(c)||v.set(c,new Map);const b=v.get(c),{size:S}=b;b.set(h,p),S||c.addEventListener(m,s,p)},a=(c,m,h,p)=>{const v=n[m],b=v&&v.get(c),S=b&&b.get(h),R=S!==void 0?S:p;b&&b.has(h)&&b.delete(h),v&&(!b||!b.size)&&v.delete(c),(!v||!v.size)&&delete n[m],(!b||!b.size)&&c.removeEventListener(m,s,R)},r=o,d=a;t.addListener=o,t.globalListener=s,t.off=d,t.on=r,t.registry=n,t.removeListener=a})(C);var e={};(function(t){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const n="aria-checked",s="aria-description",o="aria-describedby",a="aria-expanded",r="aria-haspopup",d="aria-hidden",c="aria-label",m="aria-labelledby",h="aria-modal",p="aria-pressed",v="aria-selected",b="aria-valuemin",S="aria-valuemax",R="aria-valuenow",y="aria-valuetext",M="abort",z="beforeunload",le="blur",X="change",A="contextmenu",Y="DOMContentLoaded",U="DOMMouseScroll",L="error",O="focus",w="focusin",ce="focusout",x="gesturechange",D="gestureend",ee="gesturestart",ie="keydown",pe="keypress",te="keyup",ze="load",de="click",Pe="dblclick",We="mousedown",ae="mouseup",ne="hover",qe="mouseenter",Ee="mouseleave",be="mousein",Ce="mouseout",ye="mouseover",Me="mousemove",Fe="mousewheel",Et="move",ao="orientationchange",ro="pointercancel",lo="pointerdown",co="pointerleave",uo="pointermove",mo="pointerup",ho="readystatechange",go="reset",fo="resize",vo="select",po="selectend",Eo="selectstart",bo="scroll",Co="submit",yo="touchstart",To="touchmove",wo="touchcancel",So="touchend",Ao="unload",Na={DOMContentLoaded:Y,DOMMouseScroll:U,abort:M,beforeunload:z,blur:le,change:X,click:de,contextmenu:A,dblclick:Pe,error:L,focus:O,focusin:w,focusout:ce,gesturechange:x,gestureend:D,gesturestart:ee,hover:ne,keydown:ie,keypress:pe,keyup:te,load:ze,mousedown:We,mousemove:Me,mousein:be,mouseout:Ce,mouseenter:qe,mouseleave:Ee,mouseover:ye,mouseup:ae,mousewheel:Fe,move:Et,orientationchange:ao,pointercancel:ro,pointerdown:lo,pointerleave:co,pointermove:uo,pointerup:mo,readystatechange:ho,reset:go,resize:fo,scroll:bo,select:vo,selectend:po,selectstart:Eo,submit:Co,touchcancel:wo,touchend:So,touchmove:To,touchstart:yo,unload:Ao},Pa="drag",Ma="dragstart",Oa="dragenter",Ba="dragleave",Ra="dragover",za="dragend",Wa="loadstart",qa={start:"mousedown",end:"mouseup",move:"mousemove",cancel:"mouseleave"},Fa={down:"mousedown",up:"mouseup"},ja="onmouseleave"in document?["mouseenter","mouseleave"]:["mouseover","mouseout"],Va={start:"touchstart",end:"touchend",move:"touchmove",cancel:"touchcancel"},Ua={in:"focusin",out:"focusout"},Ka={Backspace:"Backspace",Tab:"Tab",Enter:"Enter",Shift:"Shift",Control:"Control",Alt:"Alt",Pause:"Pause",CapsLock:"CapsLock",Escape:"Escape",Scape:"Space",ArrowLeft:"ArrowLeft",ArrowUp:"ArrowUp",ArrowRight:"ArrowRight",ArrowDown:"ArrowDown",Insert:"Insert",Delete:"Delete",Meta:"Meta",ContextMenu:"ContextMenu",ScrollLock:"ScrollLock"},Qa="Alt",Xa="ArrowDown",Ya="ArrowUp",Ga="ArrowLeft",Ja="ArrowRight",Za="Backspace",_a="CapsLock",xa="Control",er="Delete",tr="Enter",nr="Escape",sr="Insert",or="Meta",ir="Pause",ar="ScrollLock",rr="Shift",lr="Space",cr="Tab",Do="animationDuration",$o="animationDelay",an="animationName",bt="animationend",Ho="transitionDuration",Lo="transitionDelay",Ct="transitionend",rn="transitionProperty",dr="addEventListener",ur="removeEventListener",mr={linear:"linear",easingSinusoidalIn:"cubic-bezier(0.47,0,0.745,0.715)",easingSinusoidalOut:"cubic-bezier(0.39,0.575,0.565,1)",easingSinusoidalInOut:"cubic-bezier(0.445,0.05,0.55,0.95)",easingQuadraticIn:"cubic-bezier(0.550,0.085,0.680,0.530)",easingQuadraticOut:"cubic-bezier(0.250,0.460,0.450,0.940)",easingQuadraticInOut:"cubic-bezier(0.455,0.030,0.515,0.955)",easingCubicIn:"cubic-bezier(0.55,0.055,0.675,0.19)",easingCubicOut:"cubic-bezier(0.215,0.61,0.355,1)",easingCubicInOut:"cubic-bezier(0.645,0.045,0.355,1)",easingQuarticIn:"cubic-bezier(0.895,0.03,0.685,0.22)",easingQuarticOut:"cubic-bezier(0.165,0.84,0.44,1)",easingQuarticInOut:"cubic-bezier(0.77,0,0.175,1)",easingQuinticIn:"cubic-bezier(0.755,0.05,0.855,0.06)",easingQuinticOut:"cubic-bezier(0.23,1,0.32,1)",easingQuinticInOut:"cubic-bezier(0.86,0,0.07,1)",easingExponentialIn:"cubic-bezier(0.95,0.05,0.795,0.035)",easingExponentialOut:"cubic-bezier(0.19,1,0.22,1)",easingExponentialInOut:"cubic-bezier(1,0,0,1)",easingCircularIn:"cubic-bezier(0.6,0.04,0.98,0.335)",easingCircularOut:"cubic-bezier(0.075,0.82,0.165,1)",easingCircularInOut:"cubic-bezier(0.785,0.135,0.15,0.86)",easingBackIn:"cubic-bezier(0.6,-0.28,0.735,0.045)",easingBackOut:"cubic-bezier(0.175,0.885,0.32,1.275)",easingBackInOut:"cubic-bezier(0.68,-0.55,0.265,1.55)"},hr="offsetHeight",gr="offsetWidth",fr="scrollHeight",vr="scrollWidth",pr="tabindex",Er=navigator.userAgentData,Ze=Er,{userAgent:br}=navigator,_e=br,ko=/iPhone|iPad|iPod|Android/i;let ln=!1;Ze?ln=Ze.brands.some(i=>ko.test(i.brand)):ln=ko.test(_e);const Cr=ln,Io=/(iPhone|iPod|iPad)/,yr=Ze?Ze.brands.some(i=>Io.test(i.brand)):Io.test(_e),Tr=_e?_e.includes("Firefox"):!1,{head:xe}=document,wr=["webkitPerspective","perspective"].some(i=>i in xe.style),No=(i,l,u,g)=>{const f=g||!1;i.addEventListener(l,u,f)},Po=(i,l,u,g)=>{const f=g||!1;i.removeEventListener(l,u,f)},Mo=(i,l,u,g)=>{const f=I=>{(I.target===i||I.currentTarget===i)&&(u.apply(i,[I]),Po(i,l,f,g))};No(i,l,f,g)},Oo=()=>{},Sr=(()=>{let i=!1;try{const l=Object.defineProperty({},"passive",{get:()=>(i=!0,i)});Mo(document,Y,Oo,l)}catch{}return i})(),Ar=["webkitTransform","transform"].some(i=>i in xe.style),Dr="ontouchstart"in window||"msMaxTouchPoints"in navigator,$r=["webkitAnimation","animation"].some(i=>i in xe.style),Hr=["webkitTransition","transition"].some(i=>i in xe.style),Bo=(i,l)=>i.getAttribute(l),Lr=(i,l,u)=>l.getAttributeNS(i,u),kr=(i,l)=>i.hasAttribute(l),Ir=(i,l,u)=>l.hasAttributeNS(i,u),Nr=(i,l,u)=>i.setAttribute(l,u),Pr=(i,l,u,g)=>l.setAttributeNS(i,u,g),Mr=(i,l)=>i.removeAttribute(l),Or=(i,l,u)=>l.removeAttributeNS(i,u),Br=(i,...l)=>{i.classList.add(...l)},Rr=(i,...l)=>{i.classList.remove(...l)},zr=(i,l)=>i.classList.contains(l),{body:Wr}=document,{documentElement:qr}=document,Fr=i=>Array.from(i),ue=i=>i!=null&&typeof i=="object"||!1,k=i=>ue(i)&&typeof i.nodeType=="number"&&[1,2,3,4,5,6,7,8,9,10,11].some(l=>i.nodeType===l)||!1,W=i=>k(i)&&i.nodeType===1||!1,et=new Map,yt={set:(i,l,u)=>{W(i)&&(et.has(l)||et.set(l,new Map),et.get(l).set(i,u))},getAllFor:i=>et.get(i)||null,get:(i,l)=>{if(!W(i)||!l)return null;const u=yt.getAllFor(l);return i&&u&&u.get(i)||null},remove:(i,l)=>{const u=yt.getAllFor(l);!u||!W(i)||(u.delete(i),u.size===0&&et.delete(l))}},jr=(i,l)=>yt.get(i,l),tt=i=>typeof i=="string"||!1,cn=i=>ue(i)&&i.constructor.name==="Window"||!1,dn=i=>k(i)&&i.nodeType===9||!1,se=i=>cn(i)?i.document:dn(i)?i:k(i)?i.ownerDocument:window.document,nt=(i,...l)=>Object.assign(i,...l),Ro=i=>{if(!i)return;if(tt(i))return se().createElement(i);const{tagName:l}=i,u=Ro(l);if(!u)return;const g={...i};return delete g.tagName,nt(u,g)},zo=(i,l)=>{if(!i||!l)return;if(tt(l))return se().createElementNS(i,l);const{tagName:u}=l,g=zo(i,u);if(!g)return;const f={...l};return delete f.tagName,nt(g,f)},un=(i,l)=>i.dispatchEvent(l),Vr=(i,l,u)=>u.indexOf(i)===l,me=(i,l)=>{const u=getComputedStyle(i),g=l.replace("webkit","Webkit").replace(/([A-Z])/g,"-$1").toLowerCase();return u.getPropertyValue(g)},Wo=i=>{const l=me(i,an),u=me(i,$o),g=u.includes("ms")?1:1e3,f=l&&l!=="none"?parseFloat(u)*g:0;return Number.isNaN(f)?0:f},qo=i=>{const l=me(i,an),u=me(i,Do),g=u.includes("ms")?1:1e3,f=l&&l!=="none"?parseFloat(u)*g:0;return Number.isNaN(f)?0:f},Ur=(i,l)=>{let u=0;const g=new Event(bt),f=qo(i),I=Wo(i);if(f){const B=G=>{G.target===i&&(l.apply(i,[G]),i.removeEventListener(bt,B),u=1)};i.addEventListener(bt,B),setTimeout(()=>{u||un(i,g)},f+I+17)}else l.apply(i,[g])},Fo=i=>{const l=me(i,rn),u=me(i,Lo),g=u.includes("ms")?1:1e3,f=l&&l!=="none"?parseFloat(u)*g:0;return Number.isNaN(f)?0:f},jo=i=>{const l=me(i,rn),u=me(i,Ho),g=u.includes("ms")?1:1e3,f=l&&l!=="none"?parseFloat(u)*g:0;return Number.isNaN(f)?0:f},Kr=(i,l)=>{let u=0;const g=new Event(Ct),f=jo(i),I=Fo(i);if(f){const B=G=>{G.target===i&&(l.apply(i,[G]),i.removeEventListener(Ct,B),u=1)};i.addEventListener(Ct,B),setTimeout(()=>{u||un(i,g)},f+I+17)}else l.apply(i,[g])},Qr=i=>Float32Array.from(Array.from(i)),Xr=i=>Float64Array.from(Array.from(i)),Yr=(i,l)=>i.focus(l),mn=i=>["true",!0].includes(i)?!0:["false",!1].includes(i)?!1:["null","",null,void 0].includes(i)?null:i!==""&&!Number.isNaN(+i)?+i:i,st=i=>Object.entries(i),Vo=i=>i.toLowerCase(),Gr=(i,l,u,g)=>{const f={...u},I={...i.dataset},B={...l},G={},we="title";return st(I).forEach(([H,Se])=>{const wt=g&&typeof H=="string"&&H.includes(g)?H.replace(g,"").replace(/[A-Z]/g,Pl=>Vo(Pl)):H;G[wt]=mn(Se)}),st(f).forEach(([H,Se])=>{f[H]=mn(Se)}),st(l).forEach(([H,Se])=>{H in f?B[H]=f[H]:H in G?B[H]=G[H]:B[H]=H===we?Bo(i,we):Se}),B},Jr=(i,l)=>ue(i)&&(Object.hasOwn(i,l)||l in i),Zr=i=>Object.keys(i),_r=i=>Object.values(i),xr=(i,l)=>{const u=new CustomEvent(i,{cancelable:!0,bubbles:!0});return ue(l)&&nt(u,l),u},el={passive:!0},tl=i=>i.offsetHeight,nl=(i,l)=>{st(l).forEach(([u,g])=>{if(g&&tt(u)&&u.includes("--"))i.style.setProperty(u,g);else{const f={};f[u]=g,nt(i.style,f)}})},Tt=i=>ue(i)&&i.constructor.name==="Map"||!1,Uo=i=>typeof i=="number"||!1,Te=new Map,sl={set:(i,l,u,g)=>{W(i)&&(g&&g.length?(Te.has(i)||Te.set(i,new Map),Te.get(i).set(g,setTimeout(l,u))):Te.set(i,setTimeout(l,u)))},get:(i,l)=>{if(!W(i))return null;const u=Te.get(i);return l&&u&&Tt(u)?u.get(l)||null:Uo(u)?u:null},clear:(i,l)=>{if(!W(i))return;const u=Te.get(i);l&&l.length&&Tt(u)?(clearTimeout(u.get(l)),u.delete(l),u.size===0&&Te.delete(i)):(clearTimeout(u),Te.delete(i))}},ol=i=>i.toUpperCase(),je=(i,l)=>{const{width:u,height:g,top:f,right:I,bottom:B,left:G}=i.getBoundingClientRect();let we=1,H=1;if(l&&W(i)){const{offsetWidth:Se,offsetHeight:wt}=i;we=Se>0?Math.round(u)/Se:1,H=wt>0?Math.round(g)/wt:1}return{width:u/we,height:g/H,top:f/H,right:I/we,bottom:B/H,left:G/we,x:G/we,y:f/H}},il=i=>se(i).body,ot=i=>se(i).documentElement,al=i=>se(i).head,rl=i=>{const l=cn(i),u=l?i.scrollX:i.scrollLeft,g=l?i.scrollY:i.scrollTop;return{x:u,y:g}},Ko=i=>k(i)&&i.constructor.name==="ShadowRoot"||!1,ll=i=>i.nodeName==="HTML"?i:W(i)&&i.assignedSlot||k(i)&&i.parentNode||Ko(i)&&i.host||ot(i),Qo=i=>{if(!W(i))return!1;const{width:l,height:u}=je(i),{offsetWidth:g,offsetHeight:f}=i;return Math.round(l)!==g||Math.round(u)!==f},cl=(i,l,u)=>{const g=W(l),f=je(i,g&&Qo(l)),I={x:0,y:0};if(g){const B=je(l,!0);I.x=B.x+l.clientLeft,I.y=B.y+l.clientTop}return{x:f.left+u.x-I.x,y:f.top+u.y-I.y,width:f.width,height:f.height}};let Xo=0,Yo=0;const Ve=new Map,Go=(i,l)=>{let u=l?Xo:Yo;if(l){const g=Go(i),f=Ve.get(g)||new Map;Ve.has(g)||Ve.set(g,f),Tt(f)&&!f.has(l)?(f.set(l,u),Xo+=1):u=f.get(l)}else{const g=i.id||i;Ve.has(g)?u=Ve.get(g):(Ve.set(g,u),Yo+=1)}return u},dl=i=>i?dn(i)?i.defaultView:k(i)?i?.ownerDocument?.defaultView:i:window,Jo=i=>Array.isArray(i)||!1,ul=i=>k(i)&&i.nodeName==="CANVAS"||!1,Zo=i=>W(i)&&!!i.shadowRoot||!1,ml=i=>k(i)&&[1,2,3,4,5,6,7,8].some(l=>i.nodeType===l)||!1,hl=i=>{if(!k(i))return!1;const{top:l,bottom:u}=je(i),{clientHeight:g}=ot(i);return l<=g&&u>=0},gl=i=>{if(!k(i))return!1;const{clientWidth:l,clientHeight:u}=ot(i),{top:g,left:f,bottom:I,right:B}=je(i,!0);return g>=0&&f>=0&&I<=u&&B<=l},fl=i=>Jo(i)&&i.every(W)||!1,vl=i=>typeof i=="function"||!1,pl=i=>ue(i)&&i.constructor.name==="HTMLCollection"||!1,El=i=>W(i)&&i.tagName==="IMG"||!1,bl=i=>{if(!tt(i))return!1;try{JSON.parse(i)}catch{return!1}return!0},Cl=i=>ue(i)&&i.constructor.name==="WeakMap"||!1,yl=i=>k(i)&&["SVG","Image","Video","Canvas"].some(l=>i.constructor.name.includes(l))||!1,Tl=i=>ue(i)&&i.constructor.name==="NodeList"||!1,wl=i=>ot(i).dir==="rtl",Sl=i=>k(i)&&i.constructor.name.includes("SVG")||!1,Al=i=>k(i)&&["TABLE","TD","TH"].includes(i.nodeName)||!1,_o=(i,l)=>i?i.closest(l)||_o(i.getRootNode().host,l):null,Dl=(i,l)=>W(i)?i:(k(l)?l:se()).querySelector(i),xo=(i,l)=>(k(l)?l:se()).getElementsByTagName(i),$l=i=>[...xo("*",i)].filter(Zo),Hl=(i,l)=>se(l).getElementById(i)||null,Ll=(i,l)=>(k(l)?l:se()).querySelectorAll(i),kl=(i,l)=>(l&&k(l)?l:se()).getElementsByClassName(i),Il=(i,l)=>i.matches(l),Nl="2.0.0alpha12";t.ArrayFrom=Fr,t.DOMContentLoadedEvent=Y,t.DOMMouseScrollEvent=U,t.Data=yt,t.Float32ArrayFrom=Qr,t.Float64ArrayFrom=Xr,t.ObjectAssign=nt,t.ObjectEntries=st,t.ObjectHasOwn=Jr,t.ObjectKeys=Zr,t.ObjectValues=_r,t.Timer=sl,t.abortEvent=M,t.addClass=Br,t.addEventListener=dr,t.animationDelay=$o,t.animationDuration=Do,t.animationEndEvent=bt,t.animationName=an,t.ariaChecked=n,t.ariaDescribedBy=o,t.ariaDescription=s,t.ariaExpanded=a,t.ariaHasPopup=r,t.ariaHidden=d,t.ariaLabel=c,t.ariaLabelledBy=m,t.ariaModal=h,t.ariaPressed=p,t.ariaSelected=v,t.ariaValueMax=S,t.ariaValueMin=b,t.ariaValueNow=R,t.ariaValueText=y,t.beforeunloadEvent=z,t.bezierEasings=mr,t.blurEvent=le,t.changeEvent=X,t.closest=_o,t.contextmenuEvent=A,t.createCustomEvent=xr,t.createElement=Ro,t.createElementNS=zo,t.dispatchEvent=un,t.distinct=Vr,t.documentBody=Wr,t.documentElement=qr,t.documentHead=xe,t.dragEvent=Pa,t.dragendEvent=za,t.dragenterEvent=Oa,t.dragleaveEvent=Ba,t.dragoverEvent=Ra,t.dragstartEvent=Ma,t.emulateAnimationEnd=Ur,t.emulateTransitionEnd=Kr,t.errorEvent=L,t.focus=Yr,t.focusEvent=O,t.focusEvents=Ua,t.focusinEvent=w,t.focusoutEvent=ce,t.gesturechangeEvent=x,t.gestureendEvent=D,t.gesturestartEvent=ee,t.getAttribute=Bo,t.getAttributeNS=Lr,t.getBoundingClientRect=je,t.getCustomElements=$l,t.getDocument=se,t.getDocumentBody=il,t.getDocumentElement=ot,t.getDocumentHead=al,t.getElementAnimationDelay=Wo,t.getElementAnimationDuration=qo,t.getElementById=Hl,t.getElementStyle=me,t.getElementTransitionDelay=Fo,t.getElementTransitionDuration=jo,t.getElementsByClassName=kl,t.getElementsByTagName=xo,t.getInstance=jr,t.getNodeScroll=rl,t.getParentNode=ll,t.getRectRelativeToOffsetParent=cl,t.getUID=Go,t.getWindow=dl,t.hasAttribute=kr,t.hasAttributeNS=Ir,t.hasClass=zr,t.isApple=yr,t.isArray=Jo,t.isCanvas=ul,t.isCustomElement=Zo,t.isDocument=dn,t.isElement=ml,t.isElementInScrollRange=hl,t.isElementInViewport=gl,t.isElementsArray=fl,t.isFirefox=Tr,t.isFunction=vl,t.isHTMLCollection=pl,t.isHTMLElement=W,t.isHTMLImageElement=El,t.isJSON=bl,t.isMap=Tt,t.isMedia=yl,t.isMobile=Cr,t.isNode=k,t.isNodeList=Tl,t.isNumber=Uo,t.isObject=ue,t.isRTL=wl,t.isSVGElement=Sl,t.isScaledElement=Qo,t.isShadowRoot=Ko,t.isString=tt,t.isTableElement=Al,t.isWeakMap=Cl,t.isWindow=cn,t.keyAlt=Qa,t.keyArrowDown=Xa,t.keyArrowLeft=Ga,t.keyArrowRight=Ja,t.keyArrowUp=Ya,t.keyBackspace=Za,t.keyCapsLock=_a,t.keyControl=xa,t.keyDelete=er,t.keyEnter=tr,t.keyEscape=nr,t.keyInsert=sr,t.keyMeta=or,t.keyPause=ir,t.keyScrollLock=ar,t.keyShift=rr,t.keySpace=lr,t.keyTab=cr,t.keyboardEventKeys=Ka,t.keydownEvent=ie,t.keypressEvent=pe,t.keyupEvent=te,t.loadEvent=ze,t.loadstartEvent=Wa,t.matches=Il,t.mouseClickEvents=Fa,t.mouseHoverEvents=ja,t.mouseSwipeEvents=qa,t.mouseclickEvent=de,t.mousedblclickEvent=Pe,t.mousedownEvent=We,t.mouseenterEvent=qe,t.mousehoverEvent=ne,t.mouseinEvent=be,t.mouseleaveEvent=Ee,t.mousemoveEvent=Me,t.mouseoutEvent=Ce,t.mouseoverEvent=ye,t.mouseupEvent=ae,t.mousewheelEvent=Fe,t.moveEvent=Et,t.nativeEvents=Na,t.noop=Oo,t.normalizeOptions=Gr,t.normalizeValue=mn,t.off=Po,t.offsetHeight=hr,t.offsetWidth=gr,t.on=No,t.one=Mo,t.orientationchangeEvent=ao,t.passiveHandler=el,t.pointercancelEvent=ro,t.pointerdownEvent=lo,t.pointerleaveEvent=co,t.pointermoveEvent=uo,t.pointerupEvent=mo,t.querySelector=Dl,t.querySelectorAll=Ll,t.readystatechangeEvent=ho,t.reflow=tl,t.removeAttribute=Mr,t.removeAttributeNS=Or,t.removeClass=Rr,t.removeEventListener=ur,t.resetEvent=go,t.resizeEvent=fo,t.scrollEvent=bo,t.scrollHeight=fr,t.scrollWidth=vr,t.selectEvent=vo,t.selectendEvent=po,t.selectstartEvent=Eo,t.setAttribute=Nr,t.setAttributeNS=Pr,t.setElementStyle=nl,t.submitEvent=Co,t.support3DTransform=wr,t.supportAnimation=$r,t.supportPassive=Sr,t.supportTouch=Dr,t.supportTransform=Ar,t.supportTransition=Hr,t.tabindex=pr,t.toLowerCase=Vo,t.toUpperCase=ol,t.touchEvents=Va,t.touchcancelEvent=wo,t.touchendEvent=So,t.touchmoveEvent=To,t.touchstartEvent=yo,t.transitionDelay=Lo,t.transitionDuration=Ho,t.transitionEndEvent=Ct,t.transitionProperty=rn,t.unloadEvent=Ao,t.userAgent=_e,t.userAgentData=Ze,t.version=Nl})(e);const P="fade",E="show",it="data-bs-dismiss",at="alert",hn="Alert",ei="5.0.2";class J{element;options;constructor(n,s){const o=e.querySelector(n);if(!o)throw e.isString(n)?Error(`${this.name} Error: "${n}" is not a valid selector.`):Error(`${this.name} Error: your target is not an instance of HTMLElement.`);const a=e.Data.get(o,this.name);a&&a.dispose(),this.element=o,this.defaults&&e.ObjectKeys(this.defaults).length&&(this.options=e.normalizeOptions(o,this.defaults,s||{},"bs")),e.Data.set(o,this.name,this)}get version(){return ei}get name(){return"BaseComponent"}get defaults(){return{}}dispose(){e.Data.remove(this.element,this.name),e.ObjectKeys(this).forEach(n=>{delete this[n]})}}const gn=`.${at}`,ti=`[${it}="${at}"]`,fn=t=>e.getInstance(t,hn),ni=t=>new At(t),vn=e.createCustomEvent(`close.bs.${at}`),si=e.createCustomEvent(`closed.bs.${at}`),pn=t=>{const{element:n}=t;St(t),e.dispatchEvent(n,si),t.dispose(),n.remove()},St=(t,n)=>{const s=n?C.addListener:C.removeListener,{dismiss:o}=t;o&&s(o,e.mouseclickEvent,t.close)};class At extends J{static selector=gn;static init=ni;static getInstance=fn;dismiss;constructor(n){super(n),this.dismiss=e.querySelector(ti,this.element),St(this,!0)}get name(){return hn}close(n){const s=n?fn(e.closest(n.target,gn)):this,{element:o}=s;if(o&&e.hasClass(o,E)){if(e.dispatchEvent(o,vn),vn.defaultPrevented)return;e.removeClass(o,E),e.hasClass(o,P)?e.emulateTransitionEnd(o,()=>pn(s)):pn(s)}}dispose(){St(this),super.dispose()}}const T="active",j="data-bs-toggle",oi="button",En="Button",ii=`[${j}="${oi}"]`,bn=t=>e.getInstance(t,En),ai=t=>new Dt(t),Cn=(t,n)=>{(n?C.addListener:C.removeListener)(t.element,e.mouseclickEvent,t.toggle)};class Dt extends J{static selector=ii;static init=ai;static getInstance=bn;isActive=!1;constructor(n){super(n);const{element:s}=this;this.isActive=e.hasClass(s,T),e.setAttribute(s,e.ariaPressed,String(!!this.isActive)),Cn(this,!0)}get name(){return En}toggle(n){n&&n.preventDefault();const s=n?bn(n.target):this;if(!s.element)return;const{element:o,isActive:a}=s;if(e.hasClass(o,"disabled"))return;(a?e.removeClass:e.addClass)(o,T),e.setAttribute(o,e.ariaPressed,a?"false":"true"),s.isActive=e.hasClass(o,T)}dispose(){Cn(this),super.dispose()}}const $t="data-bs-target",Ae="carousel",yn="Carousel",Tn="data-bs-parent",ri="data-bs-container",q=t=>{const n=[$t,Tn,ri,"href"],s=e.getDocument(t);return n.map(o=>{const a=e.getAttribute(t,o);return a?o===Tn?e.closest(t,a):e.querySelector(a,s):null}).filter(o=>o)[0]},Ue=`[data-bs-ride="${Ae}"]`,Z=`${Ae}-item`,Ht="data-bs-slide-to",he="data-bs-slide",ge="paused",wn={pause:"hover",keyboard:!1,touch:!0,interval:5e3},oe=t=>e.getInstance(t,yn),li=t=>new Pt(t);let De=0,Oe=0,Ke=0;const Lt=e.createCustomEvent(`slide.bs.${Ae}`),kt=e.createCustomEvent(`slid.bs.${Ae}`),ci=t=>{const{index:n,direction:s,element:o,slides:a,options:r}=t;if(t.isAnimating&&oe(o)){const d=Nt(t),c=s==="left"?"next":"prev",m=s==="left"?"start":"end";e.addClass(a[n],T),e.removeClass(a[n],`${Z}-${c}`),e.removeClass(a[n],`${Z}-${m}`),e.removeClass(a[d],T),e.removeClass(a[d],`${Z}-${m}`),e.dispatchEvent(o,kt),e.Timer.clear(o,he),!e.getDocument(o).hidden&&r.interval&&!t.isPaused&&t.cycle()}};function di(){const t=oe(this);t&&!t.isPaused&&!e.Timer.get(this,ge)&&e.addClass(this,ge)}function ui(){const t=oe(this);t&&t.isPaused&&!e.Timer.get(this,ge)&&t.cycle()}function mi(t){t.preventDefault();const n=e.closest(this,Ue)||q(this),s=oe(n);if(!s||s.isAnimating)return;const o=+(e.getAttribute(this,Ht)||0);this&&!e.hasClass(this,T)&&!Number.isNaN(o)&&s.to(o)}function hi(t){t.preventDefault();const n=e.closest(this,Ue)||q(this),s=oe(n);if(!s||s.isAnimating)return;const o=e.getAttribute(this,he);o==="next"?s.next():o==="prev"&&s.prev()}const gi=({code:t,target:n})=>{const s=e.getDocument(n),[o]=[...e.querySelectorAll(Ue,s)].filter(m=>e.isElementInScrollRange(m)),a=oe(o);if(!a||a.isAnimating||/textarea|input/i.test(n.nodeName))return;const r=e.isRTL(o),d=r?e.keyArrowLeft:e.keyArrowRight,c=r?e.keyArrowRight:e.keyArrowLeft;t===c?a.prev():t===d&&a.next()};function Sn(t){const{target:n}=t,s=oe(this);s&&s.isTouch&&(s.indicator&&!s.indicator.contains(n)||!s.controls.includes(n))&&(t.stopImmediatePropagation(),t.stopPropagation(),t.preventDefault())}function fi(t){const{target:n}=t,s=oe(this);if(!s||s.isAnimating||s.isTouch)return;const{controls:o,indicators:a}=s;[...o,...a].some(r=>r===n||r.contains(n))||(De=t.pageX,this.contains(n)&&(s.isTouch=!0,An(s,!0)))}const vi=t=>{Oe=t.pageX},pi=t=>{const{target:n}=t,s=e.getDocument(n),o=[...e.querySelectorAll(Ue,s)].map(c=>oe(c)).find(c=>c.isTouch);if(!o)return;const{element:a,index:r}=o,d=e.isRTL(a);if(o.isTouch=!1,An(o),s.getSelection()?.toString().length){De=0,Oe=0,Ke=0;return}if(Ke=t.pageX,!a.contains(n)||Math.abs(De-Ke)<120){De=0,Oe=0,Ke=0;return}Oe<De?o.to(r+(d?-1:1)):Oe>De&&o.to(r+(d?1:-1)),De=0,Oe=0,Ke=0},It=(t,n)=>{const{indicators:s}=t;[...s].forEach(o=>e.removeClass(o,T)),t.indicators[n]&&e.addClass(s[n],T)},An=(t,n)=>{const{element:s}=t,o=n?C.addListener:C.removeListener;o(e.getDocument(s),e.pointermoveEvent,vi,e.passiveHandler),o(e.getDocument(s),e.pointerupEvent,pi,e.passiveHandler)},Dn=(t,n)=>{const{element:s,options:o,slides:a,controls:r,indicators:d}=t,{touch:c,pause:m,interval:h,keyboard:p}=o,v=n?C.addListener:C.removeListener;m&&h&&(v(s,e.mouseenterEvent,di),v(s,e.mouseleaveEvent,ui)),c&&a.length>2&&(v(s,e.pointerdownEvent,fi,e.passiveHandler),v(s,e.touchstartEvent,Sn,{passive:!1}),v(s,e.dragstartEvent,Sn,{passive:!1})),r.length&&r.forEach(b=>{b&&v(b,e.mouseclickEvent,hi)}),d.length&&d.forEach(b=>{v(b,e.mouseclickEvent,mi)}),p&&v(e.getDocument(s),e.keydownEvent,gi)},Nt=t=>{const{slides:n,element:s}=t,o=e.querySelector(`.${Z}.${T}`,s);return e.isHTMLElement(o)?[...n].indexOf(o):-1};class Pt extends J{static selector=Ue;static init=li;static getInstance=oe;constructor(n,s){super(n,s);const{element:o}=this;this.direction=e.isRTL(o)?"right":"left",this.index=0,this.isTouch=!1,this.slides=e.getElementsByClassName(Z,o);const{slides:a}=this;if(a.length<2)return;const r=e.getDocument(o);this.controls=[...e.querySelectorAll(`[${he}]`,o),...e.querySelectorAll(`[${he}][${$t}="#${o.id}"]`,r)],this.indicator=e.querySelector(`.${Ae}-indicators`,o),this.indicators=[...this.indicator?e.querySelectorAll(`[${Ht}]`,this.indicator):[],...e.querySelectorAll(`[${Ht}][${$t}="#${o.id}"]`,r)];const{options:d}=this;this.options.interval=d.interval===!0?wn.interval:d.interval,Nt(this)<0&&(e.addClass(a[0],T),this.indicators.length&&It(this,0)),Dn(this,!0),d.interval&&this.cycle()}get name(){return yn}get defaults(){return wn}get isPaused(){return e.hasClass(this.element,ge)}get isAnimating(){return e.querySelector(`.${Z}-next,.${Z}-prev`,this.element)!==null}cycle(){const{element:n,options:s,isPaused:o,index:a}=this;e.Timer.clear(n,Ae),o&&(e.Timer.clear(n,ge),e.removeClass(n,ge)),e.Timer.set(n,()=>{this.element&&!this.isPaused&&!this.isTouch&&e.isElementInScrollRange(n)&&this.to(a+1)},s.interval,Ae)}pause(){const{element:n,options:s}=this;!this.isPaused&&s.interval&&(e.addClass(n,ge),e.Timer.set(n,()=>{},1,ge))}next(){this.isAnimating||this.to(this.index+1)}prev(){this.isAnimating||this.to(this.index-1)}to(n){const{element:s,slides:o,options:a}=this,r=Nt(this),d=e.isRTL(s);let c=n;if(this.isAnimating||r===c||e.Timer.get(s,he))return;r<c||r===0&&c===o.length-1?this.direction=d?"right":"left":(r>c||r===o.length-1&&c===0)&&(this.direction=d?"left":"right");const{direction:m}=this;c<0?c=o.length-1:c>=o.length&&(c=0);const h=m==="left"?"next":"prev",p=m==="left"?"start":"end",v={relatedTarget:o[c],from:r,to:c,direction:m};e.ObjectAssign(Lt,v),e.ObjectAssign(kt,v),e.dispatchEvent(s,Lt),!Lt.defaultPrevented&&(this.index=c,It(this,c),e.getElementTransitionDuration(o[c])&&e.hasClass(s,"slide")?e.Timer.set(s,()=>{e.addClass(o[c],`${Z}-${h}`),e.reflow(o[c]),e.addClass(o[c],`${Z}-${p}`),e.addClass(o[r],`${Z}-${p}`),e.emulateTransitionEnd(o[c],()=>ci(this))},0,he):(e.addClass(o[c],T),e.removeClass(o[r],T),e.Timer.set(s,()=>{e.Timer.clear(s,he),s&&a.interval&&!this.isPaused&&this.cycle(),e.dispatchEvent(s,kt)},0,he)))}dispose(){const{slides:n}=this,s=["start","end","prev","next"];[...n].forEach((o,a)=>{e.hasClass(o,T)&&It(this,a),s.forEach(r=>e.removeClass(o,`${Z}-${r}`))}),Dn(this),super.dispose()}}const $e="collapsing",F="collapse",$n="Collapse",Ei=`.${F}`,Hn=`[${j}="${F}"]`,bi={parent:null},rt=t=>e.getInstance(t,$n),Ci=t=>new Mt(t),Ln=e.createCustomEvent(`show.bs.${F}`),yi=e.createCustomEvent(`shown.bs.${F}`),kn=e.createCustomEvent(`hide.bs.${F}`),Ti=e.createCustomEvent(`hidden.bs.${F}`),wi=t=>{const{element:n,parent:s,triggers:o}=t;e.dispatchEvent(n,Ln),!Ln.defaultPrevented&&(e.Timer.set(n,e.noop,17),s&&e.Timer.set(s,e.noop,17),e.addClass(n,$e),e.removeClass(n,F),e.setElementStyle(n,{height:`${n.scrollHeight}px`}),e.emulateTransitionEnd(n,()=>{e.Timer.clear(n),s&&e.Timer.clear(s),o.forEach(a=>e.setAttribute(a,e.ariaExpanded,"true")),e.removeClass(n,$e),e.addClass(n,F),e.addClass(n,E),e.setElementStyle(n,{height:""}),e.dispatchEvent(n,yi)}))},In=t=>{const{element:n,parent:s,triggers:o}=t;e.dispatchEvent(n,kn),!kn.defaultPrevented&&(e.Timer.set(n,e.noop,17),s&&e.Timer.set(s,e.noop,17),e.setElementStyle(n,{height:`${n.scrollHeight}px`}),e.removeClass(n,F),e.removeClass(n,E),e.addClass(n,$e),e.reflow(n),e.setElementStyle(n,{height:"0px"}),e.emulateTransitionEnd(n,()=>{e.Timer.clear(n),s&&e.Timer.clear(s),o.forEach(a=>e.setAttribute(a,e.ariaExpanded,"false")),e.removeClass(n,$e),e.addClass(n,F),e.setElementStyle(n,{height:""}),e.dispatchEvent(n,Ti)}))},Nn=(t,n)=>{const s=n?C.addListener:C.removeListener,{triggers:o}=t;o.length&&o.forEach(a=>s(a,e.mouseclickEvent,Si))},Si=t=>{const{target:n}=t,s=n&&e.closest(n,Hn),o=s&&q(s),a=o&&rt(o);a&&a.toggle(),s&&s.tagName==="A"&&t.preventDefault()};class Mt extends J{static selector=Ei;static init=Ci;static getInstance=rt;constructor(n,s){super(n,s);const{element:o,options:a}=this,r=e.getDocument(o);this.triggers=[...e.querySelectorAll(Hn,r)].filter(d=>q(d)===o),this.parent=e.isHTMLElement(a.parent)?a.parent:e.isString(a.parent)?q(o)||e.querySelector(a.parent,r):null,Nn(this,!0)}get name(){return $n}get defaults(){return bi}toggle(){e.hasClass(this.element,E)?this.hide():this.show()}hide(){const{triggers:n,element:s}=this;e.Timer.get(s)||(In(this),n.length&&n.forEach(o=>e.addClass(o,`${F}d`)))}show(){const{element:n,parent:s,triggers:o}=this;let a,r;s&&(a=[...e.querySelectorAll(`.${F}.${E}`,s)].find(d=>rt(d)),r=a&&rt(a)),(!s||!e.Timer.get(s))&&!e.Timer.get(n)&&(r&&a!==n&&(In(r),r.triggers.forEach(d=>{e.addClass(d,`${F}d`)})),wi(this),o.length&&o.forEach(d=>e.removeClass(d,`${F}d`)))}dispose(){Nn(this),super.dispose()}}const He=["dropdown","dropup","dropstart","dropend"],Pn="Dropdown",Mn="dropdown-menu",On=t=>{const n=e.closest(t,"A");return t.tagName==="A"&&e.hasAttribute(t,"href")&&t.href.slice(-1)==="#"||n&&e.hasAttribute(n,"href")&&n.href.slice(-1)==="#"},[_,lt,ct,dt]=He,Ot=`[${j}="${_}"],[${j}="${lt}"],[${j}="${dt}"],[${j}="${ct}"]`,Be=t=>e.getInstance(t,Pn),Ai=t=>new zt(t),Di=`${Mn}-end`,Bn=[_,lt],Rn=[ct,dt],zn=["A","BUTTON"],$i={offset:5,display:"dynamic"},Bt=e.createCustomEvent(`show.bs.${_}`),Wn=e.createCustomEvent(`shown.bs.${_}`),Rt=e.createCustomEvent(`hide.bs.${_}`),qn=e.createCustomEvent(`hidden.bs.${_}`),Fn=e.createCustomEvent(`updated.bs.${_}`),jn=t=>{const{element:n,menu:s,parentElement:o,options:a}=t,{offset:r}=a;if(e.getElementStyle(s,"position")==="static")return;const d=e.isRTL(n),c=e.hasClass(s,Di);["margin","top","bottom","left","right"].forEach(D=>{const ee={};ee[D]="",e.setElementStyle(s,ee)});let h=He.find(D=>e.hasClass(o,D))||_;const p={dropdown:[r,0,0],dropup:[0,0,r],dropstart:d?[-1,0,0,r]:[-1,r,0],dropend:d?[-1,r,0]:[-1,0,0,r]},v={dropdown:{top:"100%"},dropup:{top:"auto",bottom:"100%"},dropstart:d?{left:"100%",right:"auto"}:{left:"auto",right:"100%"},dropend:d?{left:"auto",right:"100%"}:{left:"100%",right:"auto"},menuStart:d?{right:"0",left:"auto"}:{right:"auto",left:"0"},menuEnd:d?{right:"auto",left:"0"}:{right:"0",left:"auto"}},{offsetWidth:b,offsetHeight:S}=s,{clientWidth:R,clientHeight:y}=e.getDocumentElement(n),{left:M,top:z,width:le,height:X}=e.getBoundingClientRect(n),A=M-b-r<0,Y=M+b+le+r>=R,U=z+S+r>=y,L=z+S+X+r>=y,O=z-S-r<0,w=(!d&&c||d&&!c)&&M+le-b<0,ce=(d&&c||!d&&!c)&&M+b>=R;if(Rn.includes(h)&&A&&Y&&(h=_),h===ct&&(d?Y:A)&&(h=dt),h===dt&&(d?A:Y)&&(h=ct),h===lt&&O&&!L&&(h=_),h===_&&L&&!O&&(h=lt),Rn.includes(h)&&U&&e.ObjectAssign(v[h],{top:"auto",bottom:0}),Bn.includes(h)&&(w||ce)){let D={left:"auto",right:"auto"};!w&&ce&&!d&&(D={left:"auto",right:0}),w&&!ce&&d&&(D={left:0,right:"auto"}),D&&e.ObjectAssign(v[h],D)}const x=p[h];if(e.setElementStyle(s,{...v[h],margin:`${x.map(D=>D&&`${D}px`).join(" ")}`}),Bn.includes(h)&&c&&c){const D=!d&&w||d&&ce?"menuStart":"menuEnd";e.setElementStyle(s,v[D])}e.dispatchEvent(o,Fn)},Hi=t=>[...t.children].map(n=>{if(n&&zn.includes(n.tagName))return n;const{firstElementChild:s}=n;return s&&zn.includes(s.tagName)?s:null}).filter(n=>n),Vn=t=>{const{element:n,options:s}=t,o=t.open?C.addListener:C.removeListener,a=e.getDocument(n);o(a,e.mouseclickEvent,Kn),o(a,e.focusEvent,Kn),o(a,e.keydownEvent,ki),o(a,e.keyupEvent,Ii),s.display==="dynamic"&&[e.scrollEvent,e.resizeEvent].forEach(r=>{o(e.getWindow(n),r,Ni,e.passiveHandler)})},Un=(t,n)=>{(n?C.addListener:C.removeListener)(t.element,e.mouseclickEvent,Li)},ut=t=>{const n=[...He,"btn-group","input-group"].map(s=>e.getElementsByClassName(`${s} ${E}`,e.getDocument(t))).find(s=>s.length);if(n&&n.length)return[...n[0].children].find(s=>He.some(o=>o===e.getAttribute(s,j)))},Kn=t=>{const{target:n,type:s}=t;if(!n||!n.closest)return;const o=ut(n),a=o&&Be(o);if(!a)return;const{parentElement:r,menu:d}=a,c=e.closest(n,Ot)!==null,m=r&&r.contains(n)&&(n.tagName==="form"||e.closest(n,"form")!==null);s===e.mouseclickEvent&&On(n)&&t.preventDefault(),!(s===e.focusEvent&&(n===o||n===d||d.contains(n)))&&(m||c||a&&a.hide())},Li=t=>{const{target:n}=t,s=n&&e.closest(n,Ot),o=s&&Be(s);o&&(t.stopImmediatePropagation(),o.toggle(),s&&On(s)&&t.preventDefault())},ki=t=>{[e.keyArrowDown,e.keyArrowUp].includes(t.code)&&t.preventDefault()};function Ii(t){const{code:n}=t,s=ut(this),o=s&&Be(s),{activeElement:a}=s&&e.getDocument(s);if(!o||!a)return;const{menu:r,open:d}=o,c=Hi(r);if(c&&c.length&&[e.keyArrowDown,e.keyArrowUp].includes(n)){let m=c.indexOf(a);a===s?m=0:n===e.keyArrowUp?m=m>1?m-1:0:n===e.keyArrowDown&&(m=m<c.length-1?m+1:m),c[m]&&e.focus(c[m])}e.keyEscape===n&&d&&(o.toggle(),e.focus(s))}function Ni(){const t=ut(this),n=t&&Be(t);n&&n.open&&jn(n)}class zt extends J{static selector=Ot;static init=Ai;static getInstance=Be;constructor(n,s){super(n,s);const{parentElement:o}=this.element,a=e.querySelector(`.${Mn}`,o);a&&(this.parentElement=o,this.menu=a,Un(this,!0))}get name(){return Pn}get defaults(){return $i}toggle(){this.open?this.hide():this.show()}show(){const{element:n,open:s,menu:o,parentElement:a}=this;if(s)return;const r=ut(n),d=r&&Be(r);d&&d.hide(),[Bt,Wn,Fn].forEach(c=>{c.relatedTarget=n}),e.dispatchEvent(a,Bt),!Bt.defaultPrevented&&(e.addClass(o,E),e.addClass(a,E),e.setAttribute(n,e.ariaExpanded,"true"),jn(this),this.open=!s,e.focus(n),Vn(this),e.dispatchEvent(a,Wn))}hide(){const{element:n,open:s,menu:o,parentElement:a}=this;s&&([Rt,qn].forEach(r=>{r.relatedTarget=n}),e.dispatchEvent(a,Rt),!Rt.defaultPrevented&&(e.removeClass(o,E),e.removeClass(a,E),e.setAttribute(n,e.ariaExpanded,"false"),this.open=!s,Vn(this),e.dispatchEvent(a,qn)))}dispose(){this.open&&this.hide(),Un(this),super.dispose()}}const V="modal",Wt="Modal",qt="Offcanvas",Pi="fixed-top",Mi="fixed-bottom",Qn="sticky-top",Xn="position-sticky",Yn=t=>[...e.getElementsByClassName(Pi,t),...e.getElementsByClassName(Mi,t),...e.getElementsByClassName(Qn,t),...e.getElementsByClassName(Xn,t),...e.getElementsByClassName("is-fixed",t)],Oi=t=>{const n=e.getDocumentBody(t);e.setElementStyle(n,{paddingRight:"",overflow:""});const s=Yn(n);s.length&&s.forEach(o=>{e.setElementStyle(o,{paddingRight:"",marginRight:""})})},Gn=t=>{const{clientWidth:n}=e.getDocumentElement(t),{innerWidth:s}=e.getWindow(t);return Math.abs(s-n)},Jn=(t,n)=>{const s=e.getDocumentBody(t),o=parseInt(e.getElementStyle(s,"paddingRight"),10),r=e.getElementStyle(s,"overflow")==="hidden"&&o?0:Gn(t),d=Yn(s);n&&(e.setElementStyle(s,{overflow:"hidden",paddingRight:`${o+r}px`}),d.length&&d.forEach(c=>{const m=e.getElementStyle(c,"paddingRight");if(c.style.paddingRight=`${parseInt(m,10)+r}px`,[Qn,Xn].some(h=>e.hasClass(c,h))){const h=e.getElementStyle(c,"marginRight");c.style.marginRight=`${parseInt(h,10)-r}px`}}))},K="offcanvas",fe=e.createElement({tagName:"div",className:"popup-container"}),Zn=(t,n)=>{const s=e.isNode(n)&&n.nodeName==="BODY",o=e.isNode(n)&&!s?n:fe,a=s?n:e.getDocumentBody(t);e.isNode(t)&&(o===fe&&a.append(fe),o.append(t))},_n=(t,n)=>{const s=e.isNode(n)&&n.nodeName==="BODY",o=e.isNode(n)&&!s?n:fe;e.isNode(t)&&(t.remove(),o===fe&&!fe.children.length&&fe.remove())},Le=(t,n)=>{const s=e.isNode(n)&&n.nodeName!=="BODY"?n:fe;return e.isNode(t)&&s.contains(t)},xn="backdrop",es=`${V}-${xn}`,ts=`${K}-${xn}`,ns=`.${V}.${E}`,Ft=`.${K}.${E}`,$=e.createElement("div"),ke=t=>e.querySelector(`${ns},${Ft}`,e.getDocument(t)),jt=t=>{const n=t?es:ts;[es,ts].forEach(s=>{e.removeClass($,s)}),e.addClass($,n)},ss=(t,n,s)=>{jt(s),Zn($,e.getDocumentBody(t)),n&&e.addClass($,P)},os=()=>{e.hasClass($,E)||(e.addClass($,E),e.reflow($))},mt=()=>{e.removeClass($,E)},is=t=>{ke(t)||(e.removeClass($,P),_n($,e.getDocumentBody(t)),Oi(t))},as=t=>e.isHTMLElement(t)&&e.getElementStyle(t,"visibility")!=="hidden"&&t.offsetParent!==null,Bi=`.${V}`,rs=`[${j}="${V}"]`,Ri=`[${it}="${V}"]`,ls=`${V}-static`,zi={backdrop:!0,keyboard:!0},Qe=t=>e.getInstance(t,Wt),Wi=t=>new Ut(t),ht=e.createCustomEvent(`show.bs.${V}`),cs=e.createCustomEvent(`shown.bs.${V}`),Vt=e.createCustomEvent(`hide.bs.${V}`),ds=e.createCustomEvent(`hidden.bs.${V}`),us=t=>{const{element:n}=t,s=Gn(n),{clientHeight:o,scrollHeight:a}=e.getDocumentElement(n),{clientHeight:r,scrollHeight:d}=n,c=r!==d;if(!c&&s){const m=e.isRTL(n)?"paddingLeft":"paddingRight",h={};h[m]=`${s}px`,e.setElementStyle(n,h)}Jn(n,c||o!==a)},ms=(t,n)=>{const s=n?C.addListener:C.removeListener,{element:o}=t;s(o,e.mouseclickEvent,ji),s(e.getWindow(o),e.resizeEvent,t.update,e.passiveHandler),s(e.getDocument(o),e.keydownEvent,Fi)},hs=(t,n)=>{const s=n?C.addListener:C.removeListener,{triggers:o}=t;o.length&&o.forEach(a=>s(a,e.mouseclickEvent,qi))},gs=(t,n)=>{const{triggers:s,element:o,relatedTarget:a}=t;is(o),e.setElementStyle(o,{paddingRight:"",display:""}),ms(t);const r=ht.relatedTarget||s.find(as);r&&e.focus(r),e.isFunction(n)&&n(),ds.relatedTarget=a,e.dispatchEvent(o,ds)},fs=t=>{const{element:n,relatedTarget:s}=t;e.focus(n),ms(t,!0),cs.relatedTarget=s,e.dispatchEvent(n,cs)},vs=t=>{const{element:n,hasFade:s}=t;e.setElementStyle(n,{display:"block"}),us(t),ke(n)||e.setElementStyle(e.getDocumentBody(n),{overflow:"hidden"}),e.addClass(n,E),e.removeAttribute(n,e.ariaHidden),e.setAttribute(n,e.ariaModal,"true"),s?e.emulateTransitionEnd(n,()=>fs(t)):fs(t)},ps=(t,n)=>{const{element:s,options:o,hasFade:a}=t;o.backdrop&&!n&&a&&e.hasClass($,E)&&!ke(s)?(mt(),e.emulateTransitionEnd($,()=>gs(t))):gs(t,n)},qi=t=>{const{target:n}=t,s=n&&e.closest(n,rs),o=s&&q(s),a=o&&Qe(o);a&&(s&&s.tagName==="A"&&t.preventDefault(),a.relatedTarget=s,a.toggle())},Fi=({code:t,target:n})=>{const s=e.querySelector(ns,e.getDocument(n)),o=s&&Qe(s);if(!o)return;const{options:a}=o;a.keyboard&&t===e.keyEscape&&e.hasClass(s,E)&&(o.relatedTarget=null,o.hide())};function ji(t){const n=Qe(this);if(!n||e.Timer.get(this))return;const{options:s,isStatic:o,modalDialog:a}=n,{backdrop:r}=s,{target:d}=t,c=e.getDocument(this)?.getSelection()?.toString().length,m=a?.contains(d),h=d&&e.closest(d,Ri);o&&!m?e.Timer.set(this,()=>{e.addClass(this,ls),e.emulateTransitionEnd(a,()=>Vi(n))},17):(h||!c&&!o&&!m&&r)&&(n.relatedTarget=h||null,n.hide(),t.preventDefault())}const Vi=t=>{const{element:n,modalDialog:s}=t,o=(e.isHTMLElement(s)?e.getElementTransitionDuration(s):0)+17;e.removeClass(n,ls),e.Timer.set(n,()=>e.Timer.clear(n),o)};class Ut extends J{static selector=Bi;static init=Wi;static getInstance=Qe;constructor(n,s){super(n,s);const{element:o}=this;this.modalDialog=e.querySelector(`.${V}-dialog`,o),this.triggers=[...e.querySelectorAll(rs,e.getDocument(o))].filter(a=>q(a)===o),this.isStatic=this.options.backdrop==="static",this.hasFade=e.hasClass(o,P),this.relatedTarget=null,hs(this,!0),this.update=this.update.bind(this)}get name(){return Wt}get defaults(){return zi}toggle(){e.hasClass(this.element,E)?this.hide():this.show()}show(){const{element:n,options:s,hasFade:o,relatedTarget:a}=this,{backdrop:r}=s;let d=0;if(e.hasClass(n,E)||(ht.relatedTarget=a||void 0,e.dispatchEvent(n,ht),ht.defaultPrevented))return;const c=ke(n);if(c&&c!==n){const m=Qe(c)||e.getInstance(c,qt);m&&m.hide()}r?(Le($)?jt(!0):ss(n,o,!0),d=e.getElementTransitionDuration($),os(),setTimeout(()=>vs(this),d)):(vs(this),c&&e.hasClass($,E)&&mt())}hide(n){const{element:s,hasFade:o,relatedTarget:a}=this;e.hasClass(s,E)&&(Vt.relatedTarget=a||void 0,e.dispatchEvent(s,Vt),!Vt.defaultPrevented&&(e.removeClass(s,E),e.setAttribute(s,e.ariaHidden,"true"),e.removeAttribute(s,e.ariaModal),o?e.emulateTransitionEnd(s,()=>ps(this,n)):ps(this,n)))}update(){e.hasClass(this.element,E)&&us(this)}dispose(){hs(this),this.hide(()=>super.dispose())}}const Ui=`.${K}`,Kt=`[${j}="${K}"]`,Ki=`[${it}="${K}"]`,gt=`${K}-toggling`,Qi={backdrop:!0,keyboard:!0,scroll:!1},Xe=t=>e.getInstance(t,qt),Xi=t=>new Xt(t),ft=e.createCustomEvent(`show.bs.${K}`),Es=e.createCustomEvent(`shown.bs.${K}`),Qt=e.createCustomEvent(`hide.bs.${K}`),bs=e.createCustomEvent(`hidden.bs.${K}`),Yi=t=>{const{element:n}=t,{clientHeight:s,scrollHeight:o}=e.getDocumentElement(n);Jn(n,s!==o)},Cs=(t,n)=>{const s=n?C.addListener:C.removeListener;t.triggers.forEach(o=>s(o,e.mouseclickEvent,Gi))},ys=(t,n)=>{const s=n?C.addListener:C.removeListener,o=e.getDocument(t.element);s(o,e.keydownEvent,Zi),s(o,e.mouseclickEvent,Ji)},Ts=t=>{const{element:n,options:s}=t;s.scroll||(Yi(t),e.setElementStyle(e.getDocumentBody(n),{overflow:"hidden"})),e.addClass(n,gt),e.addClass(n,E),e.setElementStyle(n,{visibility:"visible"}),e.emulateTransitionEnd(n,()=>_i(t))},ws=(t,n)=>{const{element:s,options:o}=t,a=ke(s);s.blur(),!a&&o.backdrop&&e.hasClass($,E)?(mt(),e.emulateTransitionEnd($,()=>Ss(t,n))):Ss(t,n)},Gi=t=>{const n=e.closest(t.target,Kt),s=n&&q(n),o=s&&Xe(s);o&&(o.relatedTarget=n,o.toggle(),n&&n.tagName==="A"&&t.preventDefault())},Ji=t=>{const{target:n}=t,s=e.querySelector(Ft,e.getDocument(n)),o=e.querySelector(Ki,s),a=s&&Xe(s);if(!a)return;const{options:r,triggers:d}=a,{backdrop:c}=r,m=e.closest(n,Kt),h=e.getDocument(s).getSelection();$.contains(n)&&c==="static"||(!(h&&h.toString().length)&&(!s.contains(n)&&c&&(!m||d.includes(n))||o&&o.contains(n))&&(a.relatedTarget=o&&o.contains(n)?o:null,a.hide()),m&&m.tagName==="A"&&t.preventDefault())},Zi=({code:t,target:n})=>{const s=e.querySelector(Ft,e.getDocument(n)),o=s&&Xe(s);o&&o.options.keyboard&&t===e.keyEscape&&(o.relatedTarget=null,o.hide())},_i=t=>{const{element:n}=t;e.removeClass(n,gt),e.removeAttribute(n,e.ariaHidden),e.setAttribute(n,e.ariaModal,"true"),e.setAttribute(n,"role","dialog"),e.dispatchEvent(n,Es),ys(t,!0),e.focus(n)},Ss=(t,n)=>{const{element:s,triggers:o}=t;e.setAttribute(s,e.ariaHidden,"true"),e.removeAttribute(s,e.ariaModal),e.removeAttribute(s,"role"),e.setElementStyle(s,{visibility:""});const a=ft.relatedTarget||o.find(as);a&&e.focus(a),is(s),e.dispatchEvent(s,bs),e.removeClass(s,gt),ke(s)||ys(t),e.isFunction(n)&&n()};class Xt extends J{static selector=Ui;static init=Xi;static getInstance=Xe;constructor(n,s){super(n,s);const{element:o}=this;this.triggers=[...e.querySelectorAll(Kt,e.getDocument(o))].filter(a=>q(a)===o),this.relatedTarget=null,Cs(this,!0)}get name(){return qt}get defaults(){return Qi}toggle(){e.hasClass(this.element,E)?this.hide():this.show()}show(){const{element:n,options:s,relatedTarget:o}=this;let a=0;if(e.hasClass(n,E)||(ft.relatedTarget=o||void 0,Es.relatedTarget=o||void 0,e.dispatchEvent(n,ft),ft.defaultPrevented))return;const r=ke(n);if(r&&r!==n){const d=Xe(r)||e.getInstance(r,Wt);d&&d.hide()}s.backdrop?(Le($)?jt():ss(n,!0),a=e.getElementTransitionDuration($),os(),setTimeout(()=>Ts(this),a)):(Ts(this),r&&e.hasClass($,E)&&mt())}hide(n){const{element:s,relatedTarget:o}=this;e.hasClass(s,E)&&(Qt.relatedTarget=o||void 0,bs.relatedTarget=o||void 0,e.dispatchEvent(s,Qt),!Qt.defaultPrevented&&(e.addClass(s,gt),e.removeClass(s,E),n?ws(this,n):e.emulateTransitionEnd(s,()=>ws(this,n))))}dispose(){Cs(this),this.hide(()=>super.dispose())}}const Ie="popover",vt="Popover",re="tooltip",As=t=>{const n=t===re,s=n?`${t}-inner`:`${t}-body`,o=n?"":`<h3 class="${t}-header"></h3>`,a=`<div class="${t}-arrow"></div>`,r=`<div class="${s}"></div>`;return`<div class="${t}" role="${re}">${o+a+r}</div>`},Ds={top:"top",bottom:"bottom",left:"start",right:"end"},Yt=t=>{const n=/\b(top|bottom|start|end)+/,{element:s,tooltip:o,container:a,options:r,arrow:d}=t;if(!o)return;const c={...Ds},m=e.isRTL(s);e.setElementStyle(o,{top:"",left:"",right:"",bottom:""});const h=t.name===vt,{offsetWidth:p,offsetHeight:v}=o,{clientWidth:b,clientHeight:S,offsetWidth:R}=e.getDocumentElement(s);let{placement:y}=r;const{clientWidth:M,offsetWidth:z}=a,X=e.getElementStyle(a,"position")==="fixed",A=Math.abs(X?M-z:b-R),Y=m&&X?A:0,U=b-(m?0:A)-1,{width:L,height:O,left:w,right:ce,top:x}=e.getBoundingClientRect(s,!0),{x:D,y:ee}={x:w,y:x};e.setElementStyle(d,{top:"",left:"",right:"",bottom:""});let ie=0,pe="",te=0,ze="",de="",Pe="",We="";const ae=d.offsetWidth||0,ne=d.offsetHeight||0,qe=ae/2;let Ee=x-v-ne<0,be=x+v+O+ne>=S,Ce=w-p-ae<Y,ye=w+p+L+ae>=U;const Me=["left","right"],Fe=["top","bottom"];Ee=Me.includes(y)?x+O/2-v/2-ne<0:Ee,be=Me.includes(y)?x+v/2+O/2+ne>=S:be,Ce=Fe.includes(y)?w+L/2-p/2<Y:Ce,ye=Fe.includes(y)?w+p/2+L/2>=U:ye,y=Me.includes(y)&&Ce&&ye?"top":y,y=y==="top"&&Ee?"bottom":y,y=y==="bottom"&&be?"top":y,y=y==="left"&&Ce?"right":y,y=y==="right"&&ye?"left":y,o.className.includes(y)||(o.className=o.className.replace(n,c[y])),Me.includes(y)?(y==="left"?te=D-p-(h?ae:0):te=D+L+(h?ae:0),Ee&&be?(ie=0,pe=0,de=x+O/2-ne/2):Ee?(ie=ee,pe="",de=O/2-ae):be?(ie=ee-v+O,pe="",de=v-O/2-ae):(ie=ee-v/2+O/2,de=v/2-ne/2)):Fe.includes(y)&&(y==="top"?ie=ee-v-(h?ne:0):ie=ee+O+(h?ne:0),Ce?(te=0,Pe=D+L/2-qe):ye?(te="auto",ze=0,We=L/2+U-ce-qe):(te=D-p/2+L/2,Pe=p/2-qe)),e.setElementStyle(o,{top:`${ie}px`,bottom:pe===""?"":`${pe}px`,left:te==="auto"?te:`${te}px`,right:ze!==""?`${ze}px`:""}),e.isHTMLElement(d)&&(de!==""&&(d.style.top=`${de}px`),Pe!==""?d.style.left=`${Pe}px`:We!==""&&(d.style.right=`${We}px`));const Et=e.createCustomEvent(`updated.bs.${e.toLowerCase(t.name)}`);e.dispatchEvent(s,Et)},Gt={template:As(re),title:"",customClass:"",trigger:"hover focus",placement:"top",sanitizeFn:void 0,animation:!0,delay:200,container:document.body,content:"",dismissible:!1,btnClose:""},$s="data-original-title",Ne="Tooltip",ve=(t,n,s)=>{if(!(!e.isHTMLElement(t)||e.isString(n)&&!n.length))if(e.isString(n)){let o=n.trim();e.isFunction(s)&&(o=s(o));const r=new DOMParser().parseFromString(o,"text/html");t.append(...r.body.childNodes)}else e.isHTMLElement(n)?t.append(n):(e.isNodeList(n)||e.isArray(n)&&n.every(e.isNode))&&t.append(...n)},xi=t=>{const n=t.name===Ne,{id:s,element:o,options:a}=t,{title:r,placement:d,template:c,animation:m,customClass:h,sanitizeFn:p,dismissible:v,content:b,btnClose:S}=a,R=n?re:Ie,y={...Ds};let M=[],z=[];e.isRTL(o)&&(y.left="end",y.right="start");const le=`bs-${R}-${y[d]}`;let X;if(e.isHTMLElement(c))X=c;else{const w=e.createElement("div");ve(w,c,p),X=w.firstChild}t.tooltip=e.isHTMLElement(X)?X.cloneNode(!0):void 0;const{tooltip:A}=t;if(!A)return;e.setAttribute(A,"id",s),e.setAttribute(A,"role",re);const Y=n?`${re}-inner`:`${Ie}-body`,U=n?null:e.querySelector(`.${Ie}-header`,A),L=e.querySelector(`.${Y}`,A);t.arrow=e.querySelector(`.${R}-arrow`,A);const{arrow:O}=t;if(e.isHTMLElement(r))M=[r.cloneNode(!0)];else{const w=e.createElement("div");ve(w,r,p),M=[...w.childNodes]}if(e.isHTMLElement(b))z=[b.cloneNode(!0)];else{const w=e.createElement("div");ve(w,b,p),z=[...w.childNodes]}if(v)if(r)if(e.isHTMLElement(S))M=[...M,S.cloneNode(!0)];else{const w=e.createElement("div");ve(w,S,p),M=[...M,w.firstChild]}else if(U&&U.remove(),e.isHTMLElement(S))z=[...z,S.cloneNode(!0)];else{const w=e.createElement("div");ve(w,S,p),z=[...z,w.firstChild]}n?r&&L&&ve(L,r,p):(r&&U&&ve(U,M,p),b&&L&&ve(L,z,p),t.btn=e.querySelector(".btn-close",A)||void 0),e.addClass(A,"position-fixed"),e.addClass(O,"position-absolute"),e.hasClass(A,R)||e.addClass(A,R),m&&!e.hasClass(A,P)&&e.addClass(A,P),h&&!e.hasClass(A,h)&&e.addClass(A,h),e.hasClass(A,le)||e.addClass(A,le)},ea=t=>{const n=["HTML","BODY"],s=[];let{parentNode:o}=t;for(;o&&!n.includes(o.nodeName);)o=e.getParentNode(o),e.isShadowRoot(o)||e.isTableElement(o)||s.push(o);return s.find((a,r)=>e.getElementStyle(a,"position")!=="relative"&&s.slice(r+1).every(d=>e.getElementStyle(d,"position")==="static")?a:null)||e.getDocument(t).body},ta=`[${j}="${re}"],[data-tip="${re}"]`,Hs="title";let Ls=t=>e.getInstance(t,Ne);const na=t=>new pt(t),sa=t=>{const{element:n,tooltip:s,container:o,offsetParent:a}=t;e.removeAttribute(n,e.ariaDescribedBy),_n(s,o===a?o:a)},oa=(t,n)=>{const{element:s}=t;Ye(t),e.hasAttribute(s,$s)&&t.name===Ne&&Ms(t),n&&n()},ks=(t,n)=>{const s=n?C.addListener:C.removeListener,{element:o}=t;s(e.getDocument(o),e.touchstartEvent,t.handleTouch,e.passiveHandler),[e.scrollEvent,e.resizeEvent].forEach(a=>{s(e.getWindow(o),a,t.update,e.passiveHandler)})},Is=t=>{const{element:n}=t,s=e.createCustomEvent(`shown.bs.${e.toLowerCase(t.name)}`);ks(t,!0),e.dispatchEvent(n,s),e.Timer.clear(n,"in")},Ns=t=>{const{element:n,onHideComplete:s}=t,o=e.createCustomEvent(`hidden.bs.${e.toLowerCase(t.name)}`);ks(t),sa(t),e.dispatchEvent(n,o),e.isFunction(s)&&(s(),t.onHideComplete=void 0),e.Timer.clear(n,"out")},Ye=(t,n)=>{const s=n?C.addListener:C.removeListener,{element:o,options:a,btn:r}=t,{trigger:d}=a,m=!!(t.name!==Ne&&a.dismissible);if(d.includes("manual"))return;t.enabled=!!n,d.split(" ").forEach(p=>{p===e.mousehoverEvent?(s(o,e.mousedownEvent,t.show),s(o,e.mouseenterEvent,t.show),m&&r?s(r,e.mouseclickEvent,t.hide):(s(o,e.mouseleaveEvent,t.hide),s(e.getDocument(o),e.touchstartEvent,t.handleTouch,e.passiveHandler))):p===e.mouseclickEvent?s(o,p,m?t.show:t.toggle):p===e.focusEvent&&(s(o,e.focusinEvent,t.show),m||s(o,e.focusoutEvent,t.hide),e.isApple&&s(o,e.mouseclickEvent,()=>e.focus(o)))})},Ps=(t,n)=>{const s=n?C.addListener:C.removeListener,{element:o,container:a,offsetParent:r}=t,{offsetHeight:d,scrollHeight:c}=a,m=e.closest(o,`.${V}`),h=e.closest(o,`.${K}`),p=e.getWindow(o),b=a===r&&d!==c?a:p;s(b,e.resizeEvent,t.update,e.passiveHandler),s(b,e.scrollEvent,t.update,e.passiveHandler),m&&s(m,`hide.bs.${V}`,t.hide),h&&s(h,`hide.bs.${K}`,t.hide)},Ms=(t,n)=>{const s=[$s,Hs],{element:o}=t;e.setAttribute(o,s[n?0:1],n||e.getAttribute(o,s[0])||""),e.removeAttribute(o,s[n?1:0])};class pt extends J{static selector=ta;static init=na;static getInstance=Ls;static styleTip=Yt;constructor(n,s){super(n,s);const{element:o}=this,a=this.name===Ne,r=a?re:Ie,d=a?Ne:vt;Ls=m=>e.getInstance(m,d),this.enabled=!0,this.id=`${r}-${e.getUID(o,r)}`;const{options:c}=this;!c.title&&a||!a&&!c.content||(e.ObjectAssign(Gt,{titleAttr:""}),this.handleTouch=this.handleTouch.bind(this),this.update=this.update.bind(this),this.show=this.show.bind(this),this.hide=this.hide.bind(this),this.toggle=this.toggle.bind(this),e.hasAttribute(o,Hs)&&a&&typeof c.title=="string"&&Ms(this,c.title),this.container=ea(o),this.offsetParent=["sticky","fixed"].some(m=>e.getElementStyle(this.container,"position")===m)?this.container:e.getDocument(this.element).body,xi(this),Ye(this,!0))}get name(){return Ne}get defaults(){return Gt}show(){const{options:n,tooltip:s,element:o,container:a,offsetParent:r,id:d}=this,{animation:c}=n,m=e.Timer.get(o,"out"),h=a===r?a:r;e.Timer.clear(o,"out"),s&&!m&&!Le(s,h)&&e.Timer.set(o,()=>{const p=e.createCustomEvent(`show.bs.${e.toLowerCase(this.name)}`);e.dispatchEvent(o,p),!p.defaultPrevented&&(Zn(s,h),e.setAttribute(o,e.ariaDescribedBy,`#${d}`),this.update(),Ps(this,!0),e.hasClass(s,E)||e.addClass(s,E),c?e.emulateTransitionEnd(s,()=>Is(this)):Is(this))},17,"in")}hide(){const{options:n,tooltip:s,element:o,container:a,offsetParent:r}=this,{animation:d,delay:c}=n;e.Timer.clear(o,"in"),s&&Le(s,a===r?a:r)&&e.Timer.set(o,()=>{const m=e.createCustomEvent(`hide.bs.${e.toLowerCase(this.name)}`);e.dispatchEvent(o,m),!m.defaultPrevented&&(this.update(),e.removeClass(s,E),Ps(this),d?e.emulateTransitionEnd(s,()=>Ns(this)):Ns(this))},c+17,"out")}update(){Yt(this)}toggle(){const{tooltip:n,container:s,offsetParent:o}=this;n&&!Le(n,s===o?s:o)?this.show():this.hide()}enable(){const{enabled:n}=this;n||(Ye(this,!0),this.enabled=!n)}disable(){const{tooltip:n,container:s,offsetParent:o,options:a,enabled:r}=this,{animation:d}=a;r&&(n&&Le(n,s===o?s:o)&&d?(this.onHideComplete=()=>Ye(this),this.hide()):Ye(this),this.enabled=!r)}toggleEnabled(){this.enabled?this.disable():this.enable()}handleTouch({target:n}){const{tooltip:s,element:o}=this;s&&s.contains(n)||n===o||n&&o.contains(n)||this.hide()}dispose(){const{tooltip:n,container:s,offsetParent:o,options:a}=this,r=()=>oa(this,()=>super.dispose());a.animation&&n&&Le(n,s===o?s:o)?(this.options.delay=0,this.onHideComplete=r,this.hide()):r()}}const ia=`[${j}="${Ie}"],[data-tip="${Ie}"]`,aa=e.ObjectAssign({},Gt,{template:As(Ie),content:"",dismissible:!1,btnClose:'<button class="btn-close" aria-label="Close"></button>'}),ra=t=>e.getInstance(t,vt),la=t=>new Jt(t);class Jt extends pt{static selector=ia;static init=la;static getInstance=ra;static styleTip=Yt;constructor(n,s){super(n,s)}get name(){return vt}get defaults(){return aa}show(){super.show();const{options:n,btn:s}=this;n.dismissible&&s&&setTimeout(()=>e.focus(s),17)}}const ca="scrollspy",Os="ScrollSpy",da='[data-bs-spy="scroll"]',ua={offset:10,target:null},ma=t=>e.getInstance(t,Os),ha=t=>new Zt(t),Bs=e.createCustomEvent(`activate.bs.${ca}`),ga=t=>{const{target:n,scrollTarget:s,options:o,itemsLength:a,scrollHeight:r,element:d}=t,{offset:c}=o,m=e.isWindow(s),h=n&&e.getElementsByTagName("A",n),p=s?Rs(s):r;if(t.scrollTop=m?s.scrollY:s.scrollTop,h&&(p!==r||a!==h.length)){let v,b,S;t.items=[],t.offsets=[],t.scrollHeight=p,t.maxScroll=t.scrollHeight-fa(t),[...h].forEach(R=>{v=e.getAttribute(R,"href"),b=v&&v.charAt(0)==="#"&&v.slice(-1)!=="#"&&e.querySelector(v,e.getDocument(d)),b&&(t.items.push(R),S=e.getBoundingClientRect(b),t.offsets.push((m?S.top+t.scrollTop:b.offsetTop)-c))}),t.itemsLength=t.items.length}},Rs=t=>e.isHTMLElement(t)?t.scrollHeight:e.getDocumentElement(t).scrollHeight,fa=({element:t,scrollTarget:n})=>e.isWindow(n)?n.innerHeight:e.getBoundingClientRect(t).height,zs=t=>{[...e.getElementsByTagName("A",t)].forEach(n=>{e.hasClass(n,T)&&e.removeClass(n,T)})},Ws=(t,n)=>{const{target:s,element:o}=t;e.isHTMLElement(s)&&zs(s),t.activeItem=n,e.addClass(n,T);const a=[];let r=n;for(;r!==e.getDocumentBody(o);)r=r.parentElement,(e.hasClass(r,"nav")||e.hasClass(r,"dropdown-menu"))&&a.push(r);a.forEach(d=>{const c=d.previousElementSibling;c&&!e.hasClass(c,T)&&e.addClass(c,T)}),Bs.relatedTarget=n,e.dispatchEvent(o,Bs)},qs=(t,n)=>{(n?C.addListener:C.removeListener)(t.scrollTarget,e.scrollEvent,t.refresh,e.passiveHandler)};class Zt extends J{static selector=da;static init=ha;static getInstance=ma;constructor(n,s){super(n,s);const{element:o,options:a}=this;this.target=e.querySelector(a.target,e.getDocument(o)),this.target&&(this.scrollTarget=o.clientHeight<o.scrollHeight?o:e.getWindow(o),this.scrollHeight=Rs(this.scrollTarget),this.refresh=this.refresh.bind(this),qs(this,!0),this.refresh())}get name(){return Os}get defaults(){return ua}refresh(){const{target:n}=this;if(n?.offsetHeight===0)return;ga(this);const{scrollTop:s,maxScroll:o,itemsLength:a,items:r,activeItem:d}=this;if(s>=o){const m=r[a-1];d!==m&&Ws(this,m);return}const{offsets:c}=this;if(d&&s<c[0]&&c[0]>0){this.activeItem=null,n&&zs(n);return}r.forEach((m,h)=>{d!==m&&s>=c[h]&&(typeof c[h+1]>"u"||s<c[h+1])&&Ws(this,m)})}dispose(){qs(this),super.dispose()}}const Ge="tab",Fs="Tab",js=`[${j}="${Ge}"]`,Vs=t=>e.getInstance(t,Fs),va=t=>new en(t),_t=e.createCustomEvent(`show.bs.${Ge}`),Us=e.createCustomEvent(`shown.bs.${Ge}`),xt=e.createCustomEvent(`hide.bs.${Ge}`),Ks=e.createCustomEvent(`hidden.bs.${Ge}`),Je=new Map,Qs=t=>{const{tabContent:n,nav:s}=t;n&&e.hasClass(n,$e)&&(n.style.height="",e.removeClass(n,$e)),s&&e.Timer.clear(s)},Xs=t=>{const{element:n,tabContent:s,content:o,nav:a}=t,{tab:r}=e.isHTMLElement(a)&&Je.get(a)||{tab:null};if(s&&o&&e.hasClass(o,P)){const{currentHeight:d,nextHeight:c}=Je.get(n)||{currentHeight:0,nextHeight:0};d===c?Qs(t):setTimeout(()=>{s.style.height=`${c}px`,e.reflow(s),e.emulateTransitionEnd(s,()=>Qs(t))},50)}else a&&e.Timer.clear(a);Us.relatedTarget=r,e.dispatchEvent(n,Us)},Ys=t=>{const{element:n,content:s,tabContent:o,nav:a}=t,{tab:r,content:d}=a&&Je.get(a)||{tab:null,content:null};let c=0;if(o&&s&&e.hasClass(s,P)&&([d,s].forEach(m=>{e.isHTMLElement(m)&&e.addClass(m,"overflow-hidden")}),c=e.isHTMLElement(d)?d.scrollHeight:0),_t.relatedTarget=r,Ks.relatedTarget=n,e.dispatchEvent(n,_t),!_t.defaultPrevented){if(s&&e.addClass(s,T),d&&e.removeClass(d,T),o&&s&&e.hasClass(s,P)){const m=s.scrollHeight;Je.set(n,{currentHeight:c,nextHeight:m,tab:null,content:null}),e.addClass(o,$e),o.style.height=`${c}px`,e.reflow(o),[d,s].forEach(h=>{h&&e.removeClass(h,"overflow-hidden")})}s&&s&&e.hasClass(s,P)?setTimeout(()=>{e.addClass(s,E),e.emulateTransitionEnd(s,()=>{Xs(t)})},1):(s&&e.addClass(s,E),Xs(t)),r&&e.dispatchEvent(r,Ks)}},Gs=t=>{const{nav:n}=t;if(!e.isHTMLElement(n))return{tab:null,content:null};const s=e.getElementsByClassName(T,n);let o=null;s.length===1&&!He.some(r=>e.hasClass(s[0].parentElement,r))?[o]=s:s.length>1&&(o=s[s.length-1]);const a=e.isHTMLElement(o)?q(o):null;return{tab:o,content:a}},Js=t=>{if(!e.isHTMLElement(t))return null;const n=e.closest(t,`.${He.join(",.")}`);return n?e.querySelector(`.${He[0]}-toggle`,n):null},Zs=(t,n)=>{(n?C.addListener:C.removeListener)(t.element,e.mouseclickEvent,pa)},pa=t=>{const n=Vs(t.target);n&&(t.preventDefault(),n.show())};class en extends J{static selector=js;static init=va;static getInstance=Vs;constructor(n){super(n);const{element:s}=this,o=q(s);if(!o)return;const a=e.closest(s,".nav"),r=e.closest(o,".tab-content");this.nav=a,this.content=o,this.tabContent=r,this.dropdown=Js(s);const{tab:d}=Gs(this);if(a&&!d){const c=e.querySelector(js,a),m=c&&q(c);m&&(e.addClass(c,T),e.addClass(m,E),e.addClass(m,T),e.setAttribute(s,e.ariaSelected,"true"))}Zs(this,!0)}get name(){return Fs}show(){const{element:n,content:s,nav:o,dropdown:a}=this;if(!(o&&e.Timer.get(o))&&!e.hasClass(n,T)){const{tab:r,content:d}=Gs(this);if(o&&Je.set(o,{tab:r,content:d,currentHeight:0,nextHeight:0}),xt.relatedTarget=n,e.isHTMLElement(r)&&e.dispatchEvent(r,xt),xt.defaultPrevented)return;e.addClass(n,T),e.setAttribute(n,e.ariaSelected,"true");const c=e.isHTMLElement(r)&&Js(r);if(c&&e.hasClass(c,T)&&e.removeClass(c,T),o){const m=()=>{r&&(e.removeClass(r,T),e.setAttribute(r,e.ariaSelected,"false")),a&&!e.hasClass(a,T)&&e.addClass(a,T)};d&&(e.hasClass(d,P)||s&&e.hasClass(s,P))?e.Timer.set(o,m,1):m()}d&&(e.removeClass(d,E),e.hasClass(d,P)?e.emulateTransitionEnd(d,()=>Ys(this)):Ys(this))}}dispose(){Zs(this),super.dispose()}}const Q="toast",_s="Toast",Ea=`.${Q}`,ba=`[${it}="${Q}"]`,xs=`[${j}="${Q}"]`,Re="showing",eo="hide",Ca={animation:!0,autohide:!0,delay:5e3},tn=t=>e.getInstance(t,_s),ya=t=>new nn(t),to=e.createCustomEvent(`show.bs.${Q}`),Ta=e.createCustomEvent(`shown.bs.${Q}`),no=e.createCustomEvent(`hide.bs.${Q}`),wa=e.createCustomEvent(`hidden.bs.${Q}`),so=t=>{const{element:n,options:s}=t;e.removeClass(n,Re),e.Timer.clear(n,Re),e.dispatchEvent(n,Ta),s.autohide&&e.Timer.set(n,()=>t.hide(),s.delay,Q)},oo=t=>{const{element:n}=t;e.removeClass(n,Re),e.removeClass(n,E),e.addClass(n,eo),e.Timer.clear(n,Q),e.dispatchEvent(n,wa)},Sa=t=>{const{element:n,options:s}=t;e.addClass(n,Re),s.animation?(e.reflow(n),e.emulateTransitionEnd(n,()=>oo(t))):oo(t)},Aa=t=>{const{element:n,options:s}=t;e.Timer.set(n,()=>{e.removeClass(n,eo),e.reflow(n),e.addClass(n,E),e.addClass(n,Re),s.animation?e.emulateTransitionEnd(n,()=>so(t)):so(t)},17,Re)},io=(t,n)=>{const s=n?C.addListener:C.removeListener,{element:o,triggers:a,dismiss:r,options:d}=t;r&&s(r,e.mouseclickEvent,t.hide),d.autohide&&[e.focusinEvent,e.focusoutEvent,e.mouseenterEvent,e.mouseleaveEvent].forEach(c=>s(o,c,Ha)),a.length&&a.forEach(c=>s(c,e.mouseclickEvent,$a))},Da=t=>{e.Timer.clear(t.element,Q),io(t)},$a=t=>{const{target:n}=t,s=n&&e.closest(n,xs),o=s&&q(s),a=o&&tn(o);a&&(s&&s.tagName==="A"&&t.preventDefault(),a.relatedTarget=s,a.show())},Ha=t=>{const n=t.target,s=tn(n),{type:o,relatedTarget:a}=t;!s||n===a||n.contains(a)||([e.mouseenterEvent,e.focusinEvent].includes(o)?e.Timer.clear(n,Q):e.Timer.set(n,()=>s.hide(),s.options.delay,Q))};class nn extends J{static selector=Ea;static init=ya;static getInstance=tn;constructor(n,s){super(n,s);const{element:o,options:a}=this;a.animation&&!e.hasClass(o,P)?e.addClass(o,P):!a.animation&&e.hasClass(o,P)&&e.removeClass(o,P),this.dismiss=e.querySelector(ba,o),this.triggers=[...e.querySelectorAll(xs,e.getDocument(o))].filter(r=>q(r)===o),this.show=this.show.bind(this),this.hide=this.hide.bind(this),io(this,!0)}get name(){return _s}get defaults(){return Ca}get isShown(){return e.hasClass(this.element,E)}show(){const{element:n,isShown:s}=this;if(n&&!s){if(e.dispatchEvent(n,to),to.defaultPrevented)return;Aa(this)}}hide(){const{element:n,isShown:s}=this;if(n&&s){if(e.dispatchEvent(n,no),no.defaultPrevented)return;Sa(this)}}dispose(){const{element:n,isShown:s}=this;s&&e.removeClass(n,E),Da(this),super.dispose()}}const sn=new Map;[At,Dt,Pt,Mt,zt,Ut,Xt,Jt,Zt,en,nn,pt].forEach(t=>sn.set(t.prototype.name,t));const La=(t,n)=>{[...n].forEach(s=>t(s))},ka=(t,n)=>{const s=e.Data.getAllFor(t);s&&[...s].forEach(([o,a])=>{n.contains(o)&&a.dispose()})},on=t=>{const n=t&&t.nodeName?t:document,s=[...e.getElementsByTagName("*",n)];sn.forEach(o=>{const{init:a,selector:r}=o;La(a,s.filter(d=>e.matches(d,r)))})},Ia=t=>{const n=t&&t.nodeName?t:document;sn.forEach(s=>{ka(s.prototype.name,n)})};return document.body?on():C.addListener(document,"DOMContentLoaded",()=>on(),{once:!0}),N.Alert=At,N.Button=Dt,N.Carousel=Pt,N.Collapse=Mt,N.Dropdown=zt,N.Listener=C,N.Modal=Ut,N.Offcanvas=Xt,N.Popover=Jt,N.ScrollSpy=Zt,N.Tab=en,N.Toast=nn,N.Tooltip=pt,N.initCallback=on,N.removeDataAPI=Ia,Object.defineProperty(N,Symbol.toStringTag,{value:"Module"}),N}({});
//# sourceMappingURL=bootstrap-native.js.map
{
"name": "bootstrap.native",
"version": "5.0.2",
"author": "thednp",
"license": "MIT",
"version": "5.0.1",
"description": "Bootstrap components build with Typescript",

@@ -13,5 +13,2 @@ "homepage": "https://thednp.github.io/bootstrap.native/",

"types": "dist/bootstrap-native.d.ts",
"bugs": {
"url": "https://github.com/thednp/bootstrap.native/issues"
},
"scripts": {

@@ -32,2 +29,5 @@ "format": "prettier --write \"src/**/*.ts\"",

},
"bugs": {
"url": "https://github.com/thednp/bootstrap.native/issues"
},
"publishConfig": {

@@ -34,0 +34,0 @@ "access": "public",

@@ -88,3 +88,2 @@ /* Native JavaScript for Bootstrap 5 | Alert

static getInstance = getAlertInstance;
dismiss: HTMLElement | null;

@@ -91,0 +90,0 @@

@@ -8,3 +8,2 @@ /* Native JavaScript for Bootstrap 5 | Button

addClass,
// ObjectAssign,
setAttribute,

@@ -11,0 +10,0 @@ mouseclickEvent,

@@ -22,2 +22,4 @@ /* Native JavaScript for Bootstrap 5 | Collapse

noop,
isHTMLElement,
isString,
} from '@thednp/shorty';

@@ -200,4 +202,7 @@

// set parent accordion
this.parent = querySelector(options.parent as HTMLElement | string, doc) || getTargetElement(element) || null;
this.parent = getTargetElement(element) || null;
this.parent = isHTMLElement(options.parent)
? options.parent
: isString(options.parent)
? getTargetElement(element) || querySelector(options.parent as string, doc)
: null;

@@ -204,0 +209,0 @@ // add event listeners

@@ -423,6 +423,10 @@ /* Native JavaScript for Bootstrap 5 | Dropdown

const { parentElement } = this.element;
const menu = querySelector(`.${dropdownMenuClass}`, parentElement as ParentNode);
// invalidate when dropdown-menu is missing
if (!menu) return;
// set targets
this.parentElement = parentElement as HTMLElement;
this.menu = querySelector(`.${dropdownMenuClass}`, parentElement as HTMLElement) as HTMLElement;
this.menu = menu;

@@ -429,0 +433,0 @@ // add event listener

@@ -1,2 +0,2 @@

import * as Listener from '@thednp/event-listener';
import Listener from '@thednp/event-listener';

@@ -16,3 +16,2 @@ import Alert from './components/alert';

// import Version from './version';
import { initCallback, removeDataAPI } from './util/init';

@@ -35,4 +34,3 @@

removeDataAPI,
// Version,
Listener,
};

@@ -1,2 +0,2 @@

import { Data, ObjectKeys, ObjectValues, getElementsByTagName, matches } from '@thednp/shorty';
import { Data, getElementsByTagName, matches } from '@thednp/shorty';

@@ -18,17 +18,22 @@ import { addListener } from '@thednp/event-listener';

const componentsList = {
Alert,
Button,
Carousel,
Collapse,
Dropdown,
Modal,
Offcanvas,
Popover,
ScrollSpy,
Tab,
Toast,
Tooltip,
};
const componentsList = new Map<
string,
| typeof Alert
| typeof Button
| typeof Carousel
| typeof Collapse
| typeof Dropdown
| typeof Modal
| typeof Offcanvas
| typeof Popover
| typeof ScrollSpy
| typeof Tab
| typeof Toast
| typeof Tooltip
>();
[Alert, Button, Carousel, Collapse, Dropdown, Modal, Offcanvas, Popover, ScrollSpy, Tab, Toast, Tooltip].forEach(c =>
componentsList.set(c.prototype.name, c),
);
/**

@@ -72,3 +77,3 @@ * Initialize all matched `Element`s for one component.

ObjectValues(componentsList).forEach(cs => {
componentsList.forEach(cs => {
const { init, selector } = cs;

@@ -90,8 +95,8 @@ initComponentDataAPI(

ObjectKeys(componentsList).forEach(comp => {
removeComponentDataAPI(comp, lookUp);
componentsList.forEach(comp => {
removeComponentDataAPI(comp.prototype.name, lookUp);
});
};
// bulk initialize all components
// Bulk initialize all components
if (document.body) initCallback();

@@ -98,0 +103,0 @@ else {

import { getDocumentBody, isNode, createElement } from '@thednp/shorty';
// the default container for Modal, Offcanvas, Popover and Tooltip
const popupContainer = createElement({ tagName: 'div' }) as HTMLElement;
const popupContainer = createElement({ tagName: 'div', className: 'popup-container' }) as HTMLElement;

@@ -6,0 +6,0 @@ const appendPopup = (target: HTMLElement, customContainer?: ParentNode) => {

@@ -1,2 +0,1 @@

// import {getWindow} from '@thednp/shorty';
import { isNode, isArray, isFunction, isString, isNodeList, isHTMLElement } from '@thednp/shorty';

@@ -21,3 +20,2 @@

// const win = getWindow(element);
const domParser = new DOMParser();

@@ -24,0 +22,0 @@ const tempDocument = domParser.parseFromString(dirty, 'text/html');

@@ -25,3 +25,4 @@ {

"noEmit": true,
"checkJs": true
"checkJs": true,
"skipLibCheck": true // allows dts-bundle-generator to import from package.json
},

@@ -28,0 +29,0 @@ "include": ["src/*", "src/**/*"],

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc