/*! For license information please see bootstrap.min.js.LICENSE.txt */ (()=>{"use strict";var t={d:(e,i)=>{for(var n in i)t.o(i,n)&&!t.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:i[n]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r:t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},e={};t.r(e),t.d(e,{afterMain:()=>w,afterRead:()=>b,afterWrite:()=>A,applyStyles:()=>S,arrow:()=>Y,auto:()=>r,basePlacements:()=>a,beforeMain:()=>v,beforeRead:()=>g,beforeWrite:()=>E,bottom:()=>n,clippingParents:()=>h,computeStyles:()=>Z,createPopper:()=>Ct,createPopperBase:()=>kt,createPopperLite:()=>xt,detectOverflow:()=>pt,end:()=>c,eventListeners:()=>tt,flip:()=>mt,hide:()=>bt,left:()=>o,main:()=>y,modifierPhases:()=>O,offset:()=>vt,placements:()=>m,popper:()=>u,popperGenerator:()=>Lt,popperOffsets:()=>yt,preventOverflow:()=>wt,read:()=>_,reference:()=>f,right:()=>s,start:()=>l,top:()=>i,variationPlacements:()=>p,viewport:()=>d,write:()=>T});var i="top",n="bottom",s="right",o="left",r="auto",a=[i,n,s,o],l="start",c="end",h="clippingParents",d="viewport",u="popper",f="reference",p=a.reduce((function(t,e){return t.concat([e+"-"+l,e+"-"+c])}),[]),m=[].concat(a,[r]).reduce((function(t,e){return t.concat([e,e+"-"+l,e+"-"+c])}),[]),g="beforeRead",_="read",b="afterRead",v="beforeMain",y="main",w="afterMain",E="beforeWrite",T="write",A="afterWrite",O=[g,_,b,v,y,w,E,T,A];function L(t){return t?(t.nodeName||"").toLowerCase():null}function k(t){if(null==t)return window;if("[object Window]"!==t.toString()){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function C(t){return t instanceof k(t).Element||t instanceof Element}function x(t){return t instanceof k(t).HTMLElement||t instanceof HTMLElement}function D(t){return"undefined"!=typeof ShadowRoot&&(t instanceof k(t).ShadowRoot||t instanceof ShadowRoot)}const S={name:"applyStyles",enabled:!0,phase:"write",fn:function(t){var e=t.state;Object.keys(e.elements).forEach((function(t){var i=e.styles[t]||{},n=e.attributes[t]||{},s=e.elements[t];x(s)&&L(s)&&(Object.assign(s.style,i),Object.keys(n).forEach((function(t){var e=n[t];!1===e?s.removeAttribute(t):s.setAttribute(t,!0===e?"":e)})))}))},effect:function(t){var e=t.state,i={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,i.popper),e.styles=i,e.elements.arrow&&Object.assign(e.elements.arrow.style,i.arrow),function(){Object.keys(e.elements).forEach((function(t){var n=e.elements[t],s=e.attributes[t]||{},o=Object.keys(e.styles.hasOwnProperty(t)?e.styles[t]:i[t]).reduce((function(t,e){return t[e]="",t}),{});x(n)&&L(n)&&(Object.assign(n.style,o),Object.keys(s).forEach((function(t){n.removeAttribute(t)})))}))}},requires:["computeStyles"]};function N(t){return t.split("-")[0]}function j(t){var e=t.getBoundingClientRect();return{width:e.width,height:e.height,top:e.top,right:e.right,bottom:e.bottom,left:e.left,x:e.left,y:e.top}}function I(t){var e=j(t),i=t.offsetWidth,n=t.offsetHeight;return Math.abs(e.width-i)<=1&&(i=e.width),Math.abs(e.height-n)<=1&&(n=e.height),{x:t.offsetLeft,y:t.offsetTop,width:i,height:n}}function P(t,e){var i=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(i&&D(i)){var n=e;do{if(n&&t.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function M(t){return k(t).getComputedStyle(t)}function H(t){return["table","td","th"].indexOf(L(t))>=0}function R(t){return((C(t)?t.ownerDocument:t.document)||window.document).documentElement}function $(t){return"html"===L(t)?t:t.assignedSlot||t.parentNode||(D(t)?t.host:null)||R(t)}function B(t){return x(t)&&"fixed"!==M(t).position?t.offsetParent:null}function W(t){for(var e=k(t),i=B(t);i&&H(i)&&"static"===M(i).position;)i=B(i);return i&&("html"===L(i)||"body"===L(i)&&"static"===M(i).position)?e:i||function(t){var e=-1!==navigator.userAgent.toLowerCase().indexOf("firefox");if(-1!==navigator.userAgent.indexOf("Trident")&&x(t)&&"fixed"===M(t).position)return null;for(var i=$(t);x(i)&&["html","body"].indexOf(L(i))<0;){var n=M(i);if("none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||-1!==["transform","perspective"].indexOf(n.willChange)||e&&"filter"===n.willChange||e&&n.filter&&"none"!==n.filter)return i;i=i.parentNode}return null}(t)||e}function q(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}var z=Math.max,U=Math.min,F=Math.round;function V(t,e,i){return z(t,U(e,i))}function K(t){return Object.assign({},{top:0,right:0,bottom:0,left:0},t)}function X(t,e){return e.reduce((function(e,i){return e[i]=t,e}),{})}const Y={name:"arrow",enabled:!0,phase:"main",fn:function(t){var e,r=t.state,l=t.name,c=t.options,h=r.elements.arrow,d=r.modifiersData.popperOffsets,u=N(r.placement),f=q(u),p=[o,s].indexOf(u)>=0?"height":"width";if(h&&d){var m=function(t,e){return K("number"!=typeof(t="function"==typeof t?t(Object.assign({},e.rects,{placement:e.placement})):t)?t:X(t,a))}(c.padding,r),g=I(h),_="y"===f?i:o,b="y"===f?n:s,v=r.rects.reference[p]+r.rects.reference[f]-d[f]-r.rects.popper[p],y=d[f]-r.rects.reference[f],w=W(h),E=w?"y"===f?w.clientHeight||0:w.clientWidth||0:0,T=v/2-y/2,A=m[_],O=E-g[p]-m[b],L=E/2-g[p]/2+T,k=V(A,L,O),C=f;r.modifiersData[l]=((e={})[C]=k,e.centerOffset=k-L,e)}},effect:function(t){var e=t.state,i=t.options.element,n=void 0===i?"[data-popper-arrow]":i;null!=n&&("string"!=typeof n||(n=e.elements.popper.querySelector(n)))&&P(e.elements.popper,n)&&(e.elements.arrow=n)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};var Q={top:"auto",right:"auto",bottom:"auto",left:"auto"};function G(t){var e,r=t.popper,a=t.popperRect,l=t.placement,c=t.offsets,h=t.position,d=t.gpuAcceleration,u=t.adaptive,f=t.roundOffsets,p=!0===f?function(t){var e=t.x,i=t.y,n=window.devicePixelRatio||1;return{x:F(F(e*n)/n)||0,y:F(F(i*n)/n)||0}}(c):"function"==typeof f?f(c):c,m=p.x,g=void 0===m?0:m,_=p.y,b=void 0===_?0:_,v=c.hasOwnProperty("x"),y=c.hasOwnProperty("y"),w=o,E=i,T=window;if(u){var A=W(r),O="clientHeight",L="clientWidth";A===k(r)&&"static"!==M(A=R(r)).position&&(O="scrollHeight",L="scrollWidth"),A=A,l===i&&(E=n,b-=A[O]-a.height,b*=d?1:-1),l===o&&(w=s,g-=A[L]-a.width,g*=d?1:-1)}var C,x=Object.assign({position:h},u&&Q);return d?Object.assign({},x,((C={})[E]=y?"0":"",C[w]=v?"0":"",C.transform=(T.devicePixelRatio||1)<2?"translate("+g+"px, "+b+"px)":"translate3d("+g+"px, "+b+"px, 0)",C)):Object.assign({},x,((e={})[E]=y?b+"px":"",e[w]=v?g+"px":"",e.transform="",e))}const Z={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(t){var e=t.state,i=t.options,n=i.gpuAcceleration,s=void 0===n||n,o=i.adaptive,r=void 0===o||o,a=i.roundOffsets,l=void 0===a||a,c={placement:N(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:s};null!=e.modifiersData.popperOffsets&&(e.styles.popper=Object.assign({},e.styles.popper,G(Object.assign({},c,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:r,roundOffsets:l})))),null!=e.modifiersData.arrow&&(e.styles.arrow=Object.assign({},e.styles.arrow,G(Object.assign({},c,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})},data:{}};var J={passive:!0};const tt={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(t){var e=t.state,i=t.instance,n=t.options,s=n.scroll,o=void 0===s||s,r=n.resize,a=void 0===r||r,l=k(e.elements.popper),c=[].concat(e.scrollParents.reference,e.scrollParents.popper);return o&&c.forEach((function(t){t.addEventListener("scroll",i.update,J)})),a&&l.addEventListener("resize",i.update,J),function(){o&&c.forEach((function(t){t.removeEventListener("scroll",i.update,J)})),a&&l.removeEventListener("resize",i.update,J)}},data:{}};var et={left:"right",right:"left",bottom:"top",top:"bottom"};function it(t){return t.replace(/left|right|bottom|top/g,(function(t){return et[t]}))}var nt={start:"end",end:"start"};function st(t){return t.replace(/start|end/g,(function(t){return nt[t]}))}function ot(t){var e=k(t);return{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function rt(t){return j(R(t)).left+ot(t).scrollLeft}function at(t){var e=M(t),i=e.overflow,n=e.overflowX,s=e.overflowY;return/auto|scroll|overlay|hidden/.test(i+s+n)}function lt(t){return["html","body","#document"].indexOf(L(t))>=0?t.ownerDocument.body:x(t)&&at(t)?t:lt($(t))}function ct(t,e){var i;void 0===e&&(e=[]);var n=lt(t),s=n===(null==(i=t.ownerDocument)?void 0:i.body),o=k(n),r=s?[o].concat(o.visualViewport||[],at(n)?n:[]):n,a=e.concat(r);return s?a:a.concat(ct($(r)))}function ht(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function dt(t,e){return e===d?ht(function(t){var e=k(t),i=R(t),n=e.visualViewport,s=i.clientWidth,o=i.clientHeight,r=0,a=0;return n&&(s=n.width,o=n.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(r=n.offsetLeft,a=n.offsetTop)),{width:s,height:o,x:r+rt(t),y:a}}(t)):x(e)?function(t){var e=j(t);return e.top=e.top+t.clientTop,e.left=e.left+t.clientLeft,e.bottom=e.top+t.clientHeight,e.right=e.left+t.clientWidth,e.width=t.clientWidth,e.height=t.clientHeight,e.x=e.left,e.y=e.top,e}(e):ht(function(t){var e,i=R(t),n=ot(t),s=null==(e=t.ownerDocument)?void 0:e.body,o=z(i.scrollWidth,i.clientWidth,s?s.scrollWidth:0,s?s.clientWidth:0),r=z(i.scrollHeight,i.clientHeight,s?s.scrollHeight:0,s?s.clientHeight:0),a=-n.scrollLeft+rt(t),l=-n.scrollTop;return"rtl"===M(s||i).direction&&(a+=z(i.clientWidth,s?s.clientWidth:0)-o),{width:o,height:r,x:a,y:l}}(R(t)))}function ut(t){return t.split("-")[1]}function ft(t){var e,r=t.reference,a=t.element,h=t.placement,d=h?N(h):null,u=h?ut(h):null,f=r.x+r.width/2-a.width/2,p=r.y+r.height/2-a.height/2;switch(d){case i:e={x:f,y:r.y-a.height};break;case n:e={x:f,y:r.y+r.height};break;case s:e={x:r.x+r.width,y:p};break;case o:e={x:r.x-a.width,y:p};break;default:e={x:r.x,y:r.y}}var m=d?q(d):null;if(null!=m){var g="y"===m?"height":"width";switch(u){case l:e[m]=e[m]-(r[g]/2-a[g]/2);break;case c:e[m]=e[m]+(r[g]/2-a[g]/2)}}return e}function pt(t,e){void 0===e&&(e={});var o=e,r=o.placement,l=void 0===r?t.placement:r,c=o.boundary,p=void 0===c?h:c,m=o.rootBoundary,g=void 0===m?d:m,_=o.elementContext,b=void 0===_?u:_,v=o.altBoundary,y=void 0!==v&&v,w=o.padding,E=void 0===w?0:w,T=K("number"!=typeof E?E:X(E,a)),A=b===u?f:u,O=t.elements.reference,k=t.rects.popper,D=t.elements[y?A:b],S=function(t,e,i){var n="clippingParents"===e?function(t){var e=ct($(t)),i=["absolute","fixed"].indexOf(M(t).position)>=0&&x(t)?W(t):t;return C(i)?e.filter((function(t){return C(t)&&P(t,i)&&"body"!==L(t)})):[]}(t):[].concat(e),s=[].concat(n,[i]),o=s[0],r=s.reduce((function(e,i){var n=dt(t,i);return e.top=z(n.top,e.top),e.right=U(n.right,e.right),e.bottom=U(n.bottom,e.bottom),e.left=z(n.left,e.left),e}),dt(t,o));return r.width=r.right-r.left,r.height=r.bottom-r.top,r.x=r.left,r.y=r.top,r}(C(D)?D:D.contextElement||R(t.elements.popper),p,g),N=j(O),I=ft({reference:N,element:k,strategy:"absolute",placement:l}),H=ht(Object.assign({},k,I)),B=b===u?H:N,q={top:S.top-B.top+T.top,bottom:B.bottom-S.bottom+T.bottom,left:S.left-B.left+T.left,right:B.right-S.right+T.right},F=t.modifiersData.offset;if(b===u&&F){var V=F[l];Object.keys(q).forEach((function(t){var e=[s,n].indexOf(t)>=0?1:-1,o=[i,n].indexOf(t)>=0?"y":"x";q[t]+=V[o]*e}))}return q}const mt={name:"flip",enabled:!0,phase:"main",fn:function(t){var e=t.state,c=t.options,h=t.name;if(!e.modifiersData[h]._skip){for(var d=c.mainAxis,u=void 0===d||d,f=c.altAxis,g=void 0===f||f,_=c.fallbackPlacements,b=c.padding,v=c.boundary,y=c.rootBoundary,w=c.altBoundary,E=c.flipVariations,T=void 0===E||E,A=c.allowedAutoPlacements,O=e.options.placement,L=N(O),k=_||(L!==O&&T?function(t){if(N(t)===r)return[];var e=it(t);return[st(t),e,st(e)]}(O):[it(O)]),C=[O].concat(k).reduce((function(t,i){return t.concat(N(i)===r?function(t,e){void 0===e&&(e={});var i=e,n=i.placement,s=i.boundary,o=i.rootBoundary,r=i.padding,l=i.flipVariations,c=i.allowedAutoPlacements,h=void 0===c?m:c,d=ut(n),u=d?l?p:p.filter((function(t){return ut(t)===d})):a,f=u.filter((function(t){return h.indexOf(t)>=0}));0===f.length&&(f=u);var g=f.reduce((function(e,i){return e[i]=pt(t,{placement:i,boundary:s,rootBoundary:o,padding:r})[N(i)],e}),{});return Object.keys(g).sort((function(t,e){return g[t]-g[e]}))}(e,{placement:i,boundary:v,rootBoundary:y,padding:b,flipVariations:T,allowedAutoPlacements:A}):i)}),[]),x=e.rects.reference,D=e.rects.popper,S=new Map,j=!0,I=C[0],P=0;P=0,B=$?"width":"height",W=pt(e,{placement:M,boundary:v,rootBoundary:y,altBoundary:w,padding:b}),q=$?R?s:o:R?n:i;x[B]>D[B]&&(q=it(q));var z=it(q),U=[];if(u&&U.push(W[H]<=0),g&&U.push(W[q]<=0,W[z]<=0),U.every((function(t){return t}))){I=M,j=!1;break}S.set(M,U)}if(j)for(var F=function(t){var e=C.find((function(e){var i=S.get(e);if(i)return i.slice(0,t).every((function(t){return t}))}));if(e)return I=e,"break"},V=T?3:1;V>0&&"break"!==F(V);V--);e.placement!==I&&(e.modifiersData[h]._skip=!0,e.placement=I,e.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function gt(t,e,i){return void 0===i&&(i={x:0,y:0}),{top:t.top-e.height-i.y,right:t.right-e.width+i.x,bottom:t.bottom-e.height+i.y,left:t.left-e.width-i.x}}function _t(t){return[i,s,n,o].some((function(e){return t[e]>=0}))}const bt={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(t){var e=t.state,i=t.name,n=e.rects.reference,s=e.rects.popper,o=e.modifiersData.preventOverflow,r=pt(e,{elementContext:"reference"}),a=pt(e,{altBoundary:!0}),l=gt(r,n),c=gt(a,s,o),h=_t(l),d=_t(c);e.modifiersData[i]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:h,hasPopperEscaped:d},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":h,"data-popper-escaped":d})}},vt={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(t){var e=t.state,n=t.options,r=t.name,a=n.offset,l=void 0===a?[0,0]:a,c=m.reduce((function(t,n){return t[n]=function(t,e,n){var r=N(t),a=[o,i].indexOf(r)>=0?-1:1,l="function"==typeof n?n(Object.assign({},e,{placement:t})):n,c=l[0],h=l[1];return c=c||0,h=(h||0)*a,[o,s].indexOf(r)>=0?{x:h,y:c}:{x:c,y:h}}(n,e.rects,l),t}),{}),h=c[e.placement],d=h.x,u=h.y;null!=e.modifiersData.popperOffsets&&(e.modifiersData.popperOffsets.x+=d,e.modifiersData.popperOffsets.y+=u),e.modifiersData[r]=c}},yt={name:"popperOffsets",enabled:!0,phase:"read",fn:function(t){var e=t.state,i=t.name;e.modifiersData[i]=ft({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})},data:{}},wt={name:"preventOverflow",enabled:!0,phase:"main",fn:function(t){var e=t.state,r=t.options,a=t.name,c=r.mainAxis,h=void 0===c||c,d=r.altAxis,u=void 0!==d&&d,f=r.boundary,p=r.rootBoundary,m=r.altBoundary,g=r.padding,_=r.tether,b=void 0===_||_,v=r.tetherOffset,y=void 0===v?0:v,w=pt(e,{boundary:f,rootBoundary:p,padding:g,altBoundary:m}),E=N(e.placement),T=ut(e.placement),A=!T,O=q(E),L="x"===O?"y":"x",k=e.modifiersData.popperOffsets,C=e.rects.reference,x=e.rects.popper,D="function"==typeof y?y(Object.assign({},e.rects,{placement:e.placement})):y,S={x:0,y:0};if(k){if(h||u){var j="y"===O?i:o,P="y"===O?n:s,M="y"===O?"height":"width",H=k[O],R=k[O]+w[j],$=k[O]-w[P],B=b?-x[M]/2:0,F=T===l?C[M]:x[M],K=T===l?-x[M]:-C[M],X=e.elements.arrow,Y=b&&X?I(X):{width:0,height:0},Q=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},G=Q[j],Z=Q[P],J=V(0,C[M],Y[M]),tt=A?C[M]/2-B-J-G-D:F-J-G-D,et=A?-C[M]/2+B+J+Z+D:K+J+Z+D,it=e.elements.arrow&&W(e.elements.arrow),nt=it?"y"===O?it.clientTop||0:it.clientLeft||0:0,st=e.modifiersData.offset?e.modifiersData.offset[e.placement][O]:0,ot=k[O]+tt-st-nt,rt=k[O]+et-st;if(h){var at=V(b?U(R,ot):R,H,b?z($,rt):$);k[O]=at,S[O]=at-H}if(u){var lt="x"===O?i:o,ct="x"===O?n:s,ht=k[L],dt=ht+w[lt],ft=ht-w[ct],mt=V(b?U(dt,ot):dt,ht,b?z(ft,rt):ft);k[L]=mt,S[L]=mt-ht}}e.modifiersData[a]=S}},requiresIfExists:["offset"]};function Et(t,e,i){void 0===i&&(i=!1);var n,s,o=R(e),r=j(t),a=x(e),l={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(a||!a&&!i)&&(("body"!==L(e)||at(o))&&(l=(n=e)!==k(n)&&x(n)?{scrollLeft:(s=n).scrollLeft,scrollTop:s.scrollTop}:ot(n)),x(e)?((c=j(e)).x+=e.clientLeft,c.y+=e.clientTop):o&&(c.x=rt(o))),{x:r.left+l.scrollLeft-c.x,y:r.top+l.scrollTop-c.y,width:r.width,height:r.height}}function Tt(t){var e=new Map,i=new Set,n=[];function s(t){i.add(t.name),[].concat(t.requires||[],t.requiresIfExists||[]).forEach((function(t){if(!i.has(t)){var n=e.get(t);n&&s(n)}})),n.push(t)}return t.forEach((function(t){e.set(t.name,t)})),t.forEach((function(t){i.has(t.name)||s(t)})),n}var At={placement:"bottom",modifiers:[],strategy:"absolute"};function Ot(){for(var t=arguments.length,e=new Array(t),i=0;i[].concat(...Element.prototype.querySelectorAll.call(e,t)),findOne:(t,e=document.documentElement)=>Element.prototype.querySelector.call(e,t),children:(t,e)=>[].concat(...t.children).filter((t=>t.matches(e))),parents(t,e){const i=[];let n=t.parentNode;for(;n&&n.nodeType===Node.ELEMENT_NODE&&3!==n.nodeType;)n.matches(e)&&i.push(n),n=n.parentNode;return i},prev(t,e){let i=t.previousElementSibling;for(;i;){if(i.matches(e))return[i];i=i.previousElementSibling}return[]},next(t,e){let i=t.nextElementSibling;for(;i;){if(i.matches(e))return[i];i=i.nextElementSibling}return[]}},St="transitionend",Nt=t=>{do{t+=Math.floor(1e6*Math.random())}while(document.getElementById(t));return t},jt=t=>{let e=t.getAttribute("data-bs-target");if(!e||"#"===e){let i=t.getAttribute("href");if(!i||!i.includes("#")&&!i.startsWith("."))return null;i.includes("#")&&!i.startsWith("#")&&(i=`#${i.split("#")[1]}`),e=i&&"#"!==i?i.trim():null}return e},It=t=>{const e=jt(t);return e&&document.querySelector(e)?e:null},Pt=t=>{const e=jt(t);return e?document.querySelector(e):null},Mt=t=>{if(!t)return 0;let{transitionDuration:e,transitionDelay:i}=window.getComputedStyle(t);const n=Number.parseFloat(e),s=Number.parseFloat(i);return n||s?(e=e.split(",")[0],i=i.split(",")[0],1e3*(Number.parseFloat(e)+Number.parseFloat(i))):0},Ht=t=>{t.dispatchEvent(new Event(St))},Rt=t=>!(!t||"object"!=typeof t)&&(void 0!==t.jquery&&(t=t[0]),void 0!==t.nodeType),$t=t=>Rt(t)?t.jquery?t[0]:t:"string"==typeof t&&t.length>0?Dt.findOne(t):null,Bt=(t,e)=>{let i=!1;const n=e+5;t.addEventListener(St,(function e(){i=!0,t.removeEventListener(St,e)})),setTimeout((()=>{i||Ht(t)}),n)},Wt=(t,e,i)=>{Object.keys(i).forEach((n=>{const s=i[n],o=e[n],r=o&&Rt(o)?"element":null==(a=o)?`${a}`:{}.toString.call(a).match(/\s([a-z]+)/i)[1].toLowerCase();var a;if(!new RegExp(s).test(r))throw new TypeError(`${t.toUpperCase()}: Option "${n}" provided type "${r}" but expected type "${s}".`)}))},qt=t=>{if(!t)return!1;if(t.style&&t.parentNode&&t.parentNode.style){const e=getComputedStyle(t),i=getComputedStyle(t.parentNode);return"none"!==e.display&&"none"!==i.display&&"hidden"!==e.visibility}return!1},zt=t=>!t||t.nodeType!==Node.ELEMENT_NODE||!!t.classList.contains("disabled")||(void 0!==t.disabled?t.disabled:t.hasAttribute("disabled")&&"false"!==t.getAttribute("disabled")),Ut=t=>{if(!document.documentElement.attachShadow)return null;if("function"==typeof t.getRootNode){const e=t.getRootNode();return e instanceof ShadowRoot?e:null}return t instanceof ShadowRoot?t:t.parentNode?Ut(t.parentNode):null},Ft=()=>{},Vt=t=>t.offsetHeight,Kt=()=>{const{jQuery:t}=window;return t&&!document.body.hasAttribute("data-bs-no-jquery")?t:null},Xt=()=>"rtl"===document.documentElement.dir,Yt=t=>{var e;e=()=>{const e=Kt();if(e){const i=t.NAME,n=e.fn[i];e.fn[i]=t.jQueryInterface,e.fn[i].Constructor=t,e.fn[i].noConflict=()=>(e.fn[i]=n,t.jQueryInterface)}},"loading"===document.readyState?document.addEventListener("DOMContentLoaded",e):e()},Qt=t=>{"function"==typeof t&&t()},Gt=new Map;var Zt={set(t,e,i){Gt.has(t)||Gt.set(t,new Map);const n=Gt.get(t);n.has(e)||0===n.size?n.set(e,i):console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(n.keys())[0]}.`)},get:(t,e)=>Gt.has(t)&&Gt.get(t).get(e)||null,remove(t,e){if(!Gt.has(t))return;const i=Gt.get(t);i.delete(e),0===i.size&&Gt.delete(t)}};const Jt=/[^.]*(?=\..*)\.|.*/,te=/\..*/,ee=/::\d+$/,ie={};let ne=1;const se={mouseenter:"mouseover",mouseleave:"mouseout"},oe=/^(mouseenter|mouseleave)/i,re=new Set(["click","dblclick","mouseup","mousedown","contextmenu","mousewheel","DOMMouseScroll","mouseover","mouseout","mousemove","selectstart","selectend","keydown","keypress","keyup","orientationchange","touchstart","touchmove","touchend","touchcancel","pointerdown","pointermove","pointerup","pointerleave","pointercancel","gesturestart","gesturechange","gestureend","focus","blur","change","reset","select","submit","focusin","focusout","load","unload","beforeunload","resize","move","DOMContentLoaded","readystatechange","error","abort","scroll"]);function ae(t,e){return e&&`${e}::${ne++}`||t.uidEvent||ne++}function le(t){const e=ae(t);return t.uidEvent=e,ie[e]=ie[e]||{},ie[e]}function ce(t,e,i=null){const n=Object.keys(t);for(let s=0,o=n.length;sfunction(e){if(!e.relatedTarget||e.relatedTarget!==e.delegateTarget&&!e.delegateTarget.contains(e.relatedTarget))return t.call(this,e)};n?n=t(n):i=t(i)}const[o,r,a]=he(e,i,n),l=le(t),c=l[a]||(l[a]={}),h=ce(c,r,o?i:null);if(h)return void(h.oneOff=h.oneOff&&s);const d=ae(r,e.replace(Jt,"")),u=o?function(t,e,i){return function n(s){const o=t.querySelectorAll(e);for(let{target:r}=s;r&&r!==this;r=r.parentNode)for(let a=o.length;a--;)if(o[a]===r)return s.delegateTarget=r,n.oneOff&&pe.off(t,s.type,e,i),i.apply(r,[s]);return null}}(t,i,n):function(t,e){return function i(n){return n.delegateTarget=t,i.oneOff&&pe.off(t,n.type,e),e.apply(t,[n])}}(t,i);u.delegationSelector=o?i:null,u.originalHandler=r,u.oneOff=s,u.uidEvent=d,c[d]=u,t.addEventListener(a,u,o)}function ue(t,e,i,n,s){const o=ce(e[i],n,s);o&&(t.removeEventListener(i,o,Boolean(s)),delete e[i][o.uidEvent])}function fe(t){return t=t.replace(te,""),se[t]||t}const pe={on(t,e,i,n){de(t,e,i,n,!1)},one(t,e,i,n){de(t,e,i,n,!0)},off(t,e,i,n){if("string"!=typeof e||!t)return;const[s,o,r]=he(e,i,n),a=r!==e,l=le(t),c=e.startsWith(".");if(void 0!==o){if(!l||!l[r])return;return void ue(t,l,r,o,s?i:null)}c&&Object.keys(l).forEach((i=>{!function(t,e,i,n){const s=e[i]||{};Object.keys(s).forEach((o=>{if(o.includes(n)){const n=s[o];ue(t,e,i,n.originalHandler,n.delegationSelector)}}))}(t,l,i,e.slice(1))}));const h=l[r]||{};Object.keys(h).forEach((i=>{const n=i.replace(ee,"");if(!a||e.includes(n)){const e=h[i];ue(t,l,r,e.originalHandler,e.delegationSelector)}}))},trigger(t,e,i){if("string"!=typeof e||!t)return null;const n=Kt(),s=fe(e),o=e!==s,r=re.has(s);let a,l=!0,c=!0,h=!1,d=null;return o&&n&&(a=n.Event(e,i),n(t).trigger(a),l=!a.isPropagationStopped(),c=!a.isImmediatePropagationStopped(),h=a.isDefaultPrevented()),r?(d=document.createEvent("HTMLEvents"),d.initEvent(s,l,!0)):d=new CustomEvent(e,{bubbles:l,cancelable:!0}),void 0!==i&&Object.keys(i).forEach((t=>{Object.defineProperty(d,t,{get:()=>i[t]})})),h&&d.preventDefault(),c&&t.dispatchEvent(d),d.defaultPrevented&&void 0!==a&&a.preventDefault(),d}};class me{constructor(t){(t=$t(t))&&(this._element=t,Zt.set(this._element,this.constructor.DATA_KEY,this))}dispose(){Zt.remove(this._element,this.constructor.DATA_KEY),pe.off(this._element,this.constructor.EVENT_KEY),Object.getOwnPropertyNames(this).forEach((t=>{this[t]=null}))}_queueCallback(t,e,i=!0){if(!i)return void Qt(t);const n=Mt(e);pe.one(e,"transitionend",(()=>Qt(t))),Bt(e,n)}static getInstance(t){return Zt.get(t,this.DATA_KEY)}static get VERSION(){return"5.0.1"}static get NAME(){throw new Error('You have to implement the static method "NAME", for each component!')}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}}class ge extends me{static get NAME(){return"alert"}close(t){const e=t?this._getRootElement(t):this._element,i=this._triggerCloseEvent(e);null===i||i.defaultPrevented||this._removeElement(e)}_getRootElement(t){return Pt(t)||t.closest(".alert")}_triggerCloseEvent(t){return pe.trigger(t,"close.bs.alert")}_removeElement(t){t.classList.remove("show");const e=t.classList.contains("fade");this._queueCallback((()=>this._destroyElement(t)),t,e)}_destroyElement(t){t.parentNode&&t.parentNode.removeChild(t),pe.trigger(t,"closed.bs.alert")}static jQueryInterface(t){return this.each((function(){let e=Zt.get(this,"bs.alert");e||(e=new ge(this)),"close"===t&&e[t](this)}))}static handleDismiss(t){return function(e){e&&e.preventDefault(),t.close(this)}}}pe.on(document,"click.bs.alert.data-api",'[data-bs-dismiss="alert"]',ge.handleDismiss(new ge)),Yt(ge);const _e="bs.button",be='[data-bs-toggle="button"]';class ve extends me{static get NAME(){return"button"}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle("active"))}static jQueryInterface(t){return this.each((function(){let e=Zt.get(this,_e);e||(e=new ve(this)),"toggle"===t&&e[t]()}))}}function ye(t){return"true"===t||"false"!==t&&(t===Number(t).toString()?Number(t):""===t||"null"===t?null:t)}function we(t){return t.replace(/[A-Z]/g,(t=>`-${t.toLowerCase()}`))}pe.on(document,"click.bs.button.data-api",be,(t=>{t.preventDefault();const e=t.target.closest(be);let i=Zt.get(e,_e);i||(i=new ve(e)),i.toggle()})),Yt(ve);const Ee={setDataAttribute(t,e,i){t.setAttribute(`data-bs-${we(e)}`,i)},removeDataAttribute(t,e){t.removeAttribute(`data-bs-${we(e)}`)},getDataAttributes(t){if(!t)return{};const e={};return Object.keys(t.dataset).filter((t=>t.startsWith("bs"))).forEach((i=>{let n=i.replace(/^bs/,"");n=n.charAt(0).toLowerCase()+n.slice(1,n.length),e[n]=ye(t.dataset[i])})),e},getDataAttribute:(t,e)=>ye(t.getAttribute(`data-bs-${we(e)}`)),offset(t){const e=t.getBoundingClientRect();return{top:e.top+document.body.scrollTop,left:e.left+document.body.scrollLeft}},position:t=>({top:t.offsetTop,left:t.offsetLeft})},Te="carousel",Ae="bs.carousel",Oe={interval:5e3,keyboard:!0,slide:!1,pause:"hover",wrap:!0,touch:!0},Le={interval:"(number|boolean)",keyboard:"boolean",slide:"(boolean|string)",pause:"(string|boolean)",wrap:"boolean",touch:"boolean"},ke="next",Ce="prev",xe="left",De="right",Se="slid.bs.carousel",Ne="active",je=".active.carousel-item",Ie="touch";class Pe extends me{constructor(t,e){super(t),this._items=null,this._interval=null,this._activeElement=null,this._isPaused=!1,this._isSliding=!1,this.touchTimeout=null,this.touchStartX=0,this.touchDeltaX=0,this._config=this._getConfig(e),this._indicatorsElement=Dt.findOne(".carousel-indicators",this._element),this._touchSupported="ontouchstart"in document.documentElement||navigator.maxTouchPoints>0,this._pointerEvent=Boolean(window.PointerEvent),this._addEventListeners()}static get Default(){return Oe}static get NAME(){return Te}next(){this._isSliding||this._slide(ke)}nextWhenVisible(){!document.hidden&&qt(this._element)&&this.next()}prev(){this._isSliding||this._slide(Ce)}pause(t){t||(this._isPaused=!0),Dt.findOne(".carousel-item-next, .carousel-item-prev",this._element)&&(Ht(this._element),this.cycle(!0)),clearInterval(this._interval),this._interval=null}cycle(t){t||(this._isPaused=!1),this._interval&&(clearInterval(this._interval),this._interval=null),this._config&&this._config.interval&&!this._isPaused&&(this._updateInterval(),this._interval=setInterval((document.visibilityState?this.nextWhenVisible:this.next).bind(this),this._config.interval))}to(t){this._activeElement=Dt.findOne(je,this._element);const e=this._getItemIndex(this._activeElement);if(t>this._items.length-1||t<0)return;if(this._isSliding)return void pe.one(this._element,Se,(()=>this.to(t)));if(e===t)return this.pause(),void this.cycle();const i=t>e?ke:Ce;this._slide(i,this._items[t])}_getConfig(t){return t={...Oe,...t},Wt(Te,t,Le),t}_handleSwipe(){const t=Math.abs(this.touchDeltaX);if(t<=40)return;const e=t/this.touchDeltaX;this.touchDeltaX=0,e&&this._slide(e>0?De:xe)}_addEventListeners(){this._config.keyboard&&pe.on(this._element,"keydown.bs.carousel",(t=>this._keydown(t))),"hover"===this._config.pause&&(pe.on(this._element,"mouseenter.bs.carousel",(t=>this.pause(t))),pe.on(this._element,"mouseleave.bs.carousel",(t=>this.cycle(t)))),this._config.touch&&this._touchSupported&&this._addTouchEventListeners()}_addTouchEventListeners(){const t=t=>{!this._pointerEvent||"pen"!==t.pointerType&&t.pointerType!==Ie?this._pointerEvent||(this.touchStartX=t.touches[0].clientX):this.touchStartX=t.clientX},e=t=>{this.touchDeltaX=t.touches&&t.touches.length>1?0:t.touches[0].clientX-this.touchStartX},i=t=>{!this._pointerEvent||"pen"!==t.pointerType&&t.pointerType!==Ie||(this.touchDeltaX=t.clientX-this.touchStartX),this._handleSwipe(),"hover"===this._config.pause&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout((t=>this.cycle(t)),500+this._config.interval))};Dt.find(".carousel-item img",this._element).forEach((t=>{pe.on(t,"dragstart.bs.carousel",(t=>t.preventDefault()))})),this._pointerEvent?(pe.on(this._element,"pointerdown.bs.carousel",(e=>t(e))),pe.on(this._element,"pointerup.bs.carousel",(t=>i(t))),this._element.classList.add("pointer-event")):(pe.on(this._element,"touchstart.bs.carousel",(e=>t(e))),pe.on(this._element,"touchmove.bs.carousel",(t=>e(t))),pe.on(this._element,"touchend.bs.carousel",(t=>i(t))))}_keydown(t){/input|textarea/i.test(t.target.tagName)||("ArrowLeft"===t.key?(t.preventDefault(),this._slide(De)):"ArrowRight"===t.key&&(t.preventDefault(),this._slide(xe)))}_getItemIndex(t){return this._items=t&&t.parentNode?Dt.find(".carousel-item",t.parentNode):[],this._items.indexOf(t)}_getItemByOrder(t,e){const i=t===ke,n=t===Ce,s=this._getItemIndex(e),o=this._items.length-1;if((n&&0===s||i&&s===o)&&!this._config.wrap)return e;const r=(s+(n?-1:1))%this._items.length;return-1===r?this._items[this._items.length-1]:this._items[r]}_triggerSlideEvent(t,e){const i=this._getItemIndex(t),n=this._getItemIndex(Dt.findOne(je,this._element));return pe.trigger(this._element,"slide.bs.carousel",{relatedTarget:t,direction:e,from:n,to:i})}_setActiveIndicatorElement(t){if(this._indicatorsElement){const e=Dt.findOne(".active",this._indicatorsElement);e.classList.remove(Ne),e.removeAttribute("aria-current");const i=Dt.find("[data-bs-target]",this._indicatorsElement);for(let e=0;e{pe.trigger(this._element,Se,{relatedTarget:o,direction:d,from:s,to:r})};if(this._element.classList.contains("slide")){o.classList.add(h),Vt(o),n.classList.add(c),o.classList.add(c);const t=()=>{o.classList.remove(c,h),o.classList.add(Ne),n.classList.remove(Ne,h,c),this._isSliding=!1,setTimeout(u,0)};this._queueCallback(t,n,!0)}else n.classList.remove(Ne),o.classList.add(Ne),this._isSliding=!1,u();a&&this.cycle()}_directionToOrder(t){return[De,xe].includes(t)?Xt()?t===xe?Ce:ke:t===xe?ke:Ce:t}_orderToDirection(t){return[ke,Ce].includes(t)?Xt()?t===Ce?xe:De:t===Ce?De:xe:t}static carouselInterface(t,e){let i=Zt.get(t,Ae),n={...Oe,...Ee.getDataAttributes(t)};"object"==typeof e&&(n={...n,...e});const s="string"==typeof e?e:n.slide;if(i||(i=new Pe(t,n)),"number"==typeof e)i.to(e);else if("string"==typeof s){if(void 0===i[s])throw new TypeError(`No method named "${s}"`);i[s]()}else n.interval&&n.ride&&(i.pause(),i.cycle())}static jQueryInterface(t){return this.each((function(){Pe.carouselInterface(this,t)}))}static dataApiClickHandler(t){const e=Pt(this);if(!e||!e.classList.contains("carousel"))return;const i={...Ee.getDataAttributes(e),...Ee.getDataAttributes(this)},n=this.getAttribute("data-bs-slide-to");n&&(i.interval=!1),Pe.carouselInterface(e,i),n&&Zt.get(e,Ae).to(n),t.preventDefault()}}pe.on(document,"click.bs.carousel.data-api","[data-bs-slide], [data-bs-slide-to]",Pe.dataApiClickHandler),pe.on(window,"load.bs.carousel.data-api",(()=>{const t=Dt.find('[data-bs-ride="carousel"]');for(let e=0,i=t.length;et===this._element));null!==n&&s.length&&(this._selector=n,this._triggerArray.push(e))}this._parent=this._config.parent?this._getParent():null,this._config.parent||this._addAriaAndCollapsedClass(this._element,this._triggerArray),this._config.toggle&&this.toggle()}static get Default(){return Re}static get NAME(){return Me}toggle(){this._element.classList.contains(Be)?this.hide():this.show()}show(){if(this._isTransitioning||this._element.classList.contains(Be))return;let t,e;this._parent&&(t=Dt.find(".show, .collapsing",this._parent).filter((t=>"string"==typeof this._config.parent?t.getAttribute("data-bs-parent")===this._config.parent:t.classList.contains(We))),0===t.length&&(t=null));const i=Dt.findOne(this._selector);if(t){const n=t.find((t=>i!==t));if(e=n?Zt.get(n,He):null,e&&e._isTransitioning)return}if(pe.trigger(this._element,"show.bs.collapse").defaultPrevented)return;t&&t.forEach((t=>{i!==t&&Ve.collapseInterface(t,"hide"),e||Zt.set(t,He,null)}));const n=this._getDimension();this._element.classList.remove(We),this._element.classList.add(qe),this._element.style[n]=0,this._triggerArray.length&&this._triggerArray.forEach((t=>{t.classList.remove(ze),t.setAttribute("aria-expanded",!0)})),this.setTransitioning(!0);const s=`scroll${n[0].toUpperCase()+n.slice(1)}`;this._queueCallback((()=>{this._element.classList.remove(qe),this._element.classList.add(We,Be),this._element.style[n]="",this.setTransitioning(!1),pe.trigger(this._element,"shown.bs.collapse")}),this._element,!0),this._element.style[n]=`${this._element[s]}px`}hide(){if(this._isTransitioning||!this._element.classList.contains(Be))return;if(pe.trigger(this._element,"hide.bs.collapse").defaultPrevented)return;const t=this._getDimension();this._element.style[t]=`${this._element.getBoundingClientRect()[t]}px`,Vt(this._element),this._element.classList.add(qe),this._element.classList.remove(We,Be);const e=this._triggerArray.length;if(e>0)for(let t=0;t{this.setTransitioning(!1),this._element.classList.remove(qe),this._element.classList.add(We),pe.trigger(this._element,"hidden.bs.collapse")}),this._element,!0)}setTransitioning(t){this._isTransitioning=t}_getConfig(t){return(t={...Re,...t}).toggle=Boolean(t.toggle),Wt(Me,t,$e),t}_getDimension(){return this._element.classList.contains(Ue)?Ue:"height"}_getParent(){let{parent:t}=this._config;t=$t(t);const e=`${Fe}[data-bs-parent="${t}"]`;return Dt.find(e,t).forEach((t=>{const e=Pt(t);this._addAriaAndCollapsedClass(e,[t])})),t}_addAriaAndCollapsedClass(t,e){if(!t||!e.length)return;const i=t.classList.contains(Be);e.forEach((t=>{i?t.classList.remove(ze):t.classList.add(ze),t.setAttribute("aria-expanded",i)}))}static collapseInterface(t,e){let i=Zt.get(t,He);const n={...Re,...Ee.getDataAttributes(t),..."object"==typeof e&&e?e:{}};if(!i&&n.toggle&&"string"==typeof e&&/show|hide/.test(e)&&(n.toggle=!1),i||(i=new Ve(t,n)),"string"==typeof e){if(void 0===i[e])throw new TypeError(`No method named "${e}"`);i[e]()}}static jQueryInterface(t){return this.each((function(){Ve.collapseInterface(this,t)}))}}pe.on(document,"click.bs.collapse.data-api",Fe,(function(t){("A"===t.target.tagName||t.delegateTarget&&"A"===t.delegateTarget.tagName)&&t.preventDefault();const e=Ee.getDataAttributes(this),i=It(this);Dt.find(i).forEach((t=>{const i=Zt.get(t,He);let n;i?(null===i._parent&&"string"==typeof e.parent&&(i._config.parent=e.parent,i._parent=i._getParent()),n="toggle"):n=e,Ve.collapseInterface(t,n)}))})),Yt(Ve);const Ke="dropdown",Xe="bs.dropdown",Ye="Escape",Qe="Space",Ge="ArrowUp",Ze="ArrowDown",Je=new RegExp("ArrowUp|ArrowDown|Escape"),ti="click.bs.dropdown.data-api",ei="keydown.bs.dropdown.data-api",ii="show",ni='[data-bs-toggle="dropdown"]',si=".dropdown-menu",oi=Xt()?"top-end":"top-start",ri=Xt()?"top-start":"top-end",ai=Xt()?"bottom-end":"bottom-start",li=Xt()?"bottom-start":"bottom-end",ci=Xt()?"left-start":"right-start",hi=Xt()?"right-start":"left-start",di={offset:[0,2],boundary:"clippingParents",reference:"toggle",display:"dynamic",popperConfig:null,autoClose:!0},ui={offset:"(array|string|function)",boundary:"(string|element)",reference:"(string|element|object)",display:"string",popperConfig:"(null|object|function)",autoClose:"(boolean|string)"};class fi extends me{constructor(t,e){super(t),this._popper=null,this._config=this._getConfig(e),this._menu=this._getMenuElement(),this._inNavbar=this._detectNavbar(),this._addEventListeners()}static get Default(){return di}static get DefaultType(){return ui}static get NAME(){return Ke}toggle(){zt(this._element)||(this._element.classList.contains(ii)?this.hide():this.show())}show(){if(zt(this._element)||this._menu.classList.contains(ii))return;const t=fi.getParentFromElement(this._element),i={relatedTarget:this._element};if(!pe.trigger(this._element,"show.bs.dropdown",i).defaultPrevented){if(this._inNavbar)Ee.setDataAttribute(this._menu,"popper","none");else{if(void 0===e)throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)");let i=this._element;"parent"===this._config.reference?i=t:Rt(this._config.reference)?i=$t(this._config.reference):"object"==typeof this._config.reference&&(i=this._config.reference);const n=this._getPopperConfig(),s=n.modifiers.find((t=>"applyStyles"===t.name&&!1===t.enabled));this._popper=Ct(i,this._menu,n),s&&Ee.setDataAttribute(this._menu,"popper","static")}"ontouchstart"in document.documentElement&&!t.closest(".navbar-nav")&&[].concat(...document.body.children).forEach((t=>pe.on(t,"mouseover",Ft))),this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.toggle(ii),this._element.classList.toggle(ii),pe.trigger(this._element,"shown.bs.dropdown",i)}}hide(){if(zt(this._element)||!this._menu.classList.contains(ii))return;const t={relatedTarget:this._element};this._completeHide(t)}dispose(){this._popper&&this._popper.destroy(),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_addEventListeners(){pe.on(this._element,"click.bs.dropdown",(t=>{t.preventDefault(),this.toggle()}))}_completeHide(t){pe.trigger(this._element,"hide.bs.dropdown",t).defaultPrevented||("ontouchstart"in document.documentElement&&[].concat(...document.body.children).forEach((t=>pe.off(t,"mouseover",Ft))),this._popper&&this._popper.destroy(),this._menu.classList.remove(ii),this._element.classList.remove(ii),this._element.setAttribute("aria-expanded","false"),Ee.removeDataAttribute(this._menu,"popper"),pe.trigger(this._element,"hidden.bs.dropdown",t))}_getConfig(t){if(t={...this.constructor.Default,...Ee.getDataAttributes(this._element),...t},Wt(Ke,t,this.constructor.DefaultType),"object"==typeof t.reference&&!Rt(t.reference)&&"function"!=typeof t.reference.getBoundingClientRect)throw new TypeError(`${Ke.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return t}_getMenuElement(){return Dt.next(this._element,si)[0]}_getPlacement(){const t=this._element.parentNode;if(t.classList.contains("dropend"))return ci;if(t.classList.contains("dropstart"))return hi;const e="end"===getComputedStyle(this._menu).getPropertyValue("--bs-position").trim();return t.classList.contains("dropup")?e?ri:oi:e?li:ai}_detectNavbar(){return null!==this._element.closest(".navbar")}_getOffset(){const{offset:t}=this._config;return"string"==typeof t?t.split(",").map((t=>Number.parseInt(t,10))):"function"==typeof t?e=>t(e,this._element):t}_getPopperConfig(){const t={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return"static"===this._config.display&&(t.modifiers=[{name:"applyStyles",enabled:!1}]),{...t,..."function"==typeof this._config.popperConfig?this._config.popperConfig(t):this._config.popperConfig}}_selectMenuItem(t){const e=Dt.find(".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",this._menu).filter(qt);if(!e.length)return;let i=e.indexOf(t.target);t.key===Ge&&i>0&&i--,t.key===Ze&&ithis.matches(ni)?this:Dt.prev(this,ni)[0];if(t.key===Ye)return i().focus(),void fi.clearMenus();e||t.key!==Ge&&t.key!==Ze?e&&t.key!==Qe?fi.getInstance(i())._selectMenuItem(t):fi.clearMenus():i().click()}}pe.on(document,ei,ni,fi.dataApiKeydownHandler),pe.on(document,ei,si,fi.dataApiKeydownHandler),pe.on(document,ti,fi.clearMenus),pe.on(document,"keyup.bs.dropdown.data-api",fi.clearMenus),pe.on(document,ti,ni,(function(t){t.preventDefault(),fi.dropdownInterface(this)})),Yt(fi);const pi=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",mi=".sticky-top",gi=()=>{const t=document.documentElement.clientWidth;return Math.abs(window.innerWidth-t)},_i=(t=gi())=>{bi(),vi("body","paddingRight",(e=>e+t)),vi(pi,"paddingRight",(e=>e+t)),vi(mi,"marginRight",(e=>e-t))},bi=()=>{const t=document.body.style.overflow;t&&Ee.setDataAttribute(document.body,"overflow",t),document.body.style.overflow="hidden"},vi=(t,e,i)=>{const n=gi();Dt.find(t).forEach((t=>{if(t!==document.body&&window.innerWidth>t.clientWidth+n)return;const s=t.style[e],o=window.getComputedStyle(t)[e];Ee.setDataAttribute(t,e,s),t.style[e]=`${i(Number.parseFloat(o))}px`}))},yi=()=>{wi("body","overflow"),wi("body","paddingRight"),wi(pi,"paddingRight"),wi(mi,"marginRight")},wi=(t,e)=>{Dt.find(t).forEach((t=>{const i=Ee.getDataAttribute(t,e);void 0===i?t.style.removeProperty(e):(Ee.removeDataAttribute(t,e),t.style[e]=i)}))},Ei={isVisible:!0,isAnimated:!1,rootElement:document.body,clickCallback:null},Ti={isVisible:"boolean",isAnimated:"boolean",rootElement:"element",clickCallback:"(function|null)"},Ai="show",Oi="mousedown.bs.backdrop";class Li{constructor(t){this._config=this._getConfig(t),this._isAppended=!1,this._element=null}show(t){this._config.isVisible?(this._append(),this._config.isAnimated&&Vt(this._getElement()),this._getElement().classList.add(Ai),this._emulateAnimation((()=>{Qt(t)}))):Qt(t)}hide(t){this._config.isVisible?(this._getElement().classList.remove(Ai),this._emulateAnimation((()=>{this.dispose(),Qt(t)}))):Qt(t)}_getElement(){if(!this._element){const t=document.createElement("div");t.className="modal-backdrop",this._config.isAnimated&&t.classList.add("fade"),this._element=t}return this._element}_getConfig(t){return(t={...Ei,..."object"==typeof t?t:{}}).rootElement=t.rootElement||document.body,Wt("backdrop",t,Ti),t}_append(){this._isAppended||(this._config.rootElement.appendChild(this._getElement()),pe.on(this._getElement(),Oi,(()=>{Qt(this._config.clickCallback)})),this._isAppended=!0)}dispose(){this._isAppended&&(pe.off(this._element,Oi),this._getElement().parentNode.removeChild(this._element),this._isAppended=!1)}_emulateAnimation(t){if(!this._config.isAnimated)return void Qt(t);const e=Mt(this._getElement());pe.one(this._getElement(),"transitionend",(()=>Qt(t))),Bt(this._getElement(),e)}}const ki="modal",Ci="Escape",xi={backdrop:!0,keyboard:!0,focus:!0},Di={backdrop:"(boolean|string)",keyboard:"boolean",focus:"boolean"},Si="hidden.bs.modal",Ni="show.bs.modal",ji="focusin.bs.modal",Ii="resize.bs.modal",Pi="click.dismiss.bs.modal",Mi="keydown.dismiss.bs.modal",Hi="mousedown.dismiss.bs.modal",Ri="modal-open",$i="show",Bi="modal-static";class Wi extends me{constructor(t,e){super(t),this._config=this._getConfig(e),this._dialog=Dt.findOne(".modal-dialog",this._element),this._backdrop=this._initializeBackDrop(),this._isShown=!1,this._ignoreBackdropClick=!1,this._isTransitioning=!1}static get Default(){return xi}static get NAME(){return ki}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){if(this._isShown||this._isTransitioning)return;this._isAnimated()&&(this._isTransitioning=!0);const e=pe.trigger(this._element,Ni,{relatedTarget:t});this._isShown||e.defaultPrevented||(this._isShown=!0,_i(),document.body.classList.add(Ri),this._adjustDialog(),this._setEscapeEvent(),this._setResizeEvent(),pe.on(this._element,Pi,'[data-bs-dismiss="modal"]',(t=>this.hide(t))),pe.on(this._dialog,Hi,(()=>{pe.one(this._element,"mouseup.dismiss.bs.modal",(t=>{t.target===this._element&&(this._ignoreBackdropClick=!0)}))})),this._showBackdrop((()=>this._showElement(t))))}hide(t){if(t&&t.preventDefault(),!this._isShown||this._isTransitioning)return;if(pe.trigger(this._element,"hide.bs.modal").defaultPrevented)return;this._isShown=!1;const e=this._isAnimated();e&&(this._isTransitioning=!0),this._setEscapeEvent(),this._setResizeEvent(),pe.off(document,ji),this._element.classList.remove($i),pe.off(this._element,Pi),pe.off(this._dialog,Hi),this._queueCallback((()=>this._hideModal()),this._element,e)}dispose(){[window,this._dialog].forEach((t=>pe.off(t,".bs.modal"))),this._backdrop.dispose(),super.dispose(),pe.off(document,ji)}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new Li({isVisible:Boolean(this._config.backdrop),isAnimated:this._isAnimated()})}_getConfig(t){return t={...xi,...Ee.getDataAttributes(this._element),...t},Wt(ki,t,Di),t}_showElement(t){const e=this._isAnimated(),i=Dt.findOne(".modal-body",this._dialog);this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE||document.body.appendChild(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.scrollTop=0,i&&(i.scrollTop=0),e&&Vt(this._element),this._element.classList.add($i),this._config.focus&&this._enforceFocus(),this._queueCallback((()=>{this._config.focus&&this._element.focus(),this._isTransitioning=!1,pe.trigger(this._element,"shown.bs.modal",{relatedTarget:t})}),this._dialog,e)}_enforceFocus(){pe.off(document,ji),pe.on(document,ji,(t=>{document===t.target||this._element===t.target||this._element.contains(t.target)||this._element.focus()}))}_setEscapeEvent(){this._isShown?pe.on(this._element,Mi,(t=>{this._config.keyboard&&t.key===Ci?(t.preventDefault(),this.hide()):this._config.keyboard||t.key!==Ci||this._triggerBackdropTransition()})):pe.off(this._element,Mi)}_setResizeEvent(){this._isShown?pe.on(window,Ii,(()=>this._adjustDialog())):pe.off(window,Ii)}_hideModal(){this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._isTransitioning=!1,this._backdrop.hide((()=>{document.body.classList.remove(Ri),this._resetAdjustments(),yi(),pe.trigger(this._element,Si)}))}_showBackdrop(t){pe.on(this._element,Pi,(t=>{this._ignoreBackdropClick?this._ignoreBackdropClick=!1:t.target===t.currentTarget&&(!0===this._config.backdrop?this.hide():"static"===this._config.backdrop&&this._triggerBackdropTransition())})),this._backdrop.show(t)}_isAnimated(){return this._element.classList.contains("fade")}_triggerBackdropTransition(){if(pe.trigger(this._element,"hidePrevented.bs.modal").defaultPrevented)return;const t=this._element.scrollHeight>document.documentElement.clientHeight;t||(this._element.style.overflowY="hidden"),this._element.classList.add(Bi);const e=Mt(this._dialog);pe.off(this._element,"transitionend"),pe.one(this._element,"transitionend",(()=>{this._element.classList.remove(Bi),t||(pe.one(this._element,"transitionend",(()=>{this._element.style.overflowY=""})),Bt(this._element,e))})),Bt(this._element,e),this._element.focus()}_adjustDialog(){const t=this._element.scrollHeight>document.documentElement.clientHeight,e=gi(),i=e>0;(!i&&t&&!Xt()||i&&!t&&Xt())&&(this._element.style.paddingLeft=`${e}px`),(i&&!t&&!Xt()||!i&&t&&Xt())&&(this._element.style.paddingRight=`${e}px`)}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(t,e){return this.each((function(){const i=Wi.getInstance(this)||new Wi(this,"object"==typeof t?t:{});if("string"==typeof t){if(void 0===i[t])throw new TypeError(`No method named "${t}"`);i[t](e)}}))}}pe.on(document,"click.bs.modal.data-api",'[data-bs-toggle="modal"]',(function(t){const e=Pt(this);["A","AREA"].includes(this.tagName)&&t.preventDefault(),pe.one(e,Ni,(t=>{t.defaultPrevented||pe.one(e,Si,(()=>{qt(this)&&this.focus()}))})),(Wi.getInstance(e)||new Wi(e)).toggle(this)})),Yt(Wi);const qi="offcanvas",zi="bs.offcanvas",Ui={backdrop:!0,keyboard:!0,scroll:!1},Fi={backdrop:"boolean",keyboard:"boolean",scroll:"boolean"},Vi="show",Ki=".offcanvas.show",Xi="hidden.bs.offcanvas",Yi="focusin.bs.offcanvas";class Qi extends me{constructor(t,e){super(t),this._config=this._getConfig(e),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._addEventListeners()}static get NAME(){return qi}static get Default(){return Ui}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){this._isShown||pe.trigger(this._element,"show.bs.offcanvas",{relatedTarget:t}).defaultPrevented||(this._isShown=!0,this._element.style.visibility="visible",this._backdrop.show(),this._config.scroll||(_i(),this._enforceFocusOnElement(this._element)),this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(Vi),this._queueCallback((()=>{pe.trigger(this._element,"shown.bs.offcanvas",{relatedTarget:t})}),this._element,!0))}hide(){this._isShown&&(pe.trigger(this._element,"hide.bs.offcanvas").defaultPrevented||(pe.off(document,Yi),this._element.blur(),this._isShown=!1,this._element.classList.remove(Vi),this._backdrop.hide(),this._queueCallback((()=>{this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._element.style.visibility="hidden",this._config.scroll||yi(),pe.trigger(this._element,Xi)}),this._element,!0)))}dispose(){this._backdrop.dispose(),super.dispose(),pe.off(document,Yi)}_getConfig(t){return t={...Ui,...Ee.getDataAttributes(this._element),..."object"==typeof t?t:{}},Wt(qi,t,Fi),t}_initializeBackDrop(){return new Li({isVisible:this._config.backdrop,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:()=>this.hide()})}_enforceFocusOnElement(t){pe.off(document,Yi),pe.on(document,Yi,(e=>{document===e.target||t===e.target||t.contains(e.target)||t.focus()})),t.focus()}_addEventListeners(){pe.on(this._element,"click.dismiss.bs.offcanvas",'[data-bs-dismiss="offcanvas"]',(()=>this.hide())),pe.on(this._element,"keydown.dismiss.bs.offcanvas",(t=>{this._config.keyboard&&"Escape"===t.key&&this.hide()}))}static jQueryInterface(t){return this.each((function(){const e=Zt.get(this,zi)||new Qi(this,"object"==typeof t?t:{});if("string"==typeof t){if(void 0===e[t]||t.startsWith("_")||"constructor"===t)throw new TypeError(`No method named "${t}"`);e[t](this)}}))}}pe.on(document,"click.bs.offcanvas.data-api",'[data-bs-toggle="offcanvas"]',(function(t){const e=Pt(this);if(["A","AREA"].includes(this.tagName)&&t.preventDefault(),zt(this))return;pe.one(e,Xi,(()=>{qt(this)&&this.focus()}));const i=Dt.findOne(Ki);i&&i!==e&&Qi.getInstance(i).hide(),(Zt.get(e,zi)||new Qi(e)).toggle(this)})),pe.on(window,"load.bs.offcanvas.data-api",(()=>{Dt.find(Ki).forEach((t=>(Zt.get(t,zi)||new Qi(t)).show()))})),Yt(Qi);const Gi=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),Zi=/^(?:(?:https?|mailto|ftp|tel|file):|[^#&/:?]*(?:[#/?]|$))/i,Ji=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[\d+/a-z]+=*$/i,tn=(t,e)=>{const i=t.nodeName.toLowerCase();if(e.includes(i))return!Gi.has(i)||Boolean(Zi.test(t.nodeValue)||Ji.test(t.nodeValue));const n=e.filter((t=>t instanceof RegExp));for(let t=0,e=n.length;t{tn(t,a)||i.removeAttribute(t.nodeName)}))}return n.body.innerHTML}const nn="tooltip",sn=new RegExp("(^|\\s)bs-tooltip\\S+","g"),on=new Set(["sanitize","allowList","sanitizeFn"]),rn={animation:"boolean",template:"string",title:"(string|element|function)",trigger:"string",delay:"(number|object)",html:"boolean",selector:"(string|boolean)",placement:"(string|function)",offset:"(array|string|function)",container:"(string|element|boolean)",fallbackPlacements:"array",boundary:"(string|element)",customClass:"(string|function)",sanitize:"boolean",sanitizeFn:"(null|function)",allowList:"object",popperConfig:"(null|object|function)"},an={AUTO:"auto",TOP:"top",RIGHT:Xt()?"left":"right",BOTTOM:"bottom",LEFT:Xt()?"right":"left"},ln={animation:!0,template:'',trigger:"hover focus",title:"",delay:0,html:!1,selector:!1,placement:"top",offset:[0,0],container:!1,fallbackPlacements:["top","right","bottom","left"],boundary:"clippingParents",customClass:"",sanitize:!0,sanitizeFn:null,allowList:{"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],div:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","srcset","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},popperConfig:null},cn={HIDE:"hide.bs.tooltip",HIDDEN:"hidden.bs.tooltip",SHOW:"show.bs.tooltip",SHOWN:"shown.bs.tooltip",INSERTED:"inserted.bs.tooltip",CLICK:"click.bs.tooltip",FOCUSIN:"focusin.bs.tooltip",FOCUSOUT:"focusout.bs.tooltip",MOUSEENTER:"mouseenter.bs.tooltip",MOUSELEAVE:"mouseleave.bs.tooltip"},hn="fade",dn="show",un="show",fn="out",pn="hover",mn="focus";class gn extends me{constructor(t,i){if(void 0===e)throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)");super(t),this._isEnabled=!0,this._timeout=0,this._hoverState="",this._activeTrigger={},this._popper=null,this._config=this._getConfig(i),this.tip=null,this._setListeners()}static get Default(){return ln}static get NAME(){return nn}static get Event(){return cn}static get DefaultType(){return rn}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(t){if(this._isEnabled)if(t){const e=this._initializeOnDelegatedTarget(t);e._activeTrigger.click=!e._activeTrigger.click,e._isWithActiveTrigger()?e._enter(null,e):e._leave(null,e)}else{if(this.getTipElement().classList.contains(dn))return void this._leave(null,this);this._enter(null,this)}}dispose(){clearTimeout(this._timeout),pe.off(this._element.closest(".modal"),"hide.bs.modal",this._hideModalHandler),this.tip&&this.tip.parentNode&&this.tip.parentNode.removeChild(this.tip),this._popper&&this._popper.destroy(),super.dispose()}show(){if("none"===this._element.style.display)throw new Error("Please use show on visible elements");if(!this.isWithContent()||!this._isEnabled)return;const t=pe.trigger(this._element,this.constructor.Event.SHOW),e=Ut(this._element),i=null===e?this._element.ownerDocument.documentElement.contains(this._element):e.contains(this._element);if(t.defaultPrevented||!i)return;const n=this.getTipElement(),s=Nt(this.constructor.NAME);n.setAttribute("id",s),this._element.setAttribute("aria-describedby",s),this.setContent(),this._config.animation&&n.classList.add(hn);const o="function"==typeof this._config.placement?this._config.placement.call(this,n,this._element):this._config.placement,r=this._getAttachment(o);this._addAttachmentClass(r);const{container:a}=this._config;Zt.set(n,this.constructor.DATA_KEY,this),this._element.ownerDocument.documentElement.contains(this.tip)||(a.appendChild(n),pe.trigger(this._element,this.constructor.Event.INSERTED)),this._popper?this._popper.update():this._popper=Ct(this._element,n,this._getPopperConfig(r)),n.classList.add(dn);const l="function"==typeof this._config.customClass?this._config.customClass():this._config.customClass;l&&n.classList.add(...l.split(" ")),"ontouchstart"in document.documentElement&&[].concat(...document.body.children).forEach((t=>{pe.on(t,"mouseover",Ft)}));const c=this.tip.classList.contains(hn);this._queueCallback((()=>{const t=this._hoverState;this._hoverState=null,pe.trigger(this._element,this.constructor.Event.SHOWN),t===fn&&this._leave(null,this)}),this.tip,c)}hide(){if(!this._popper)return;const t=this.getTipElement();if(pe.trigger(this._element,this.constructor.Event.HIDE).defaultPrevented)return;t.classList.remove(dn),"ontouchstart"in document.documentElement&&[].concat(...document.body.children).forEach((t=>pe.off(t,"mouseover",Ft))),this._activeTrigger.click=!1,this._activeTrigger.focus=!1,this._activeTrigger.hover=!1;const e=this.tip.classList.contains(hn);this._queueCallback((()=>{this._isWithActiveTrigger()||(this._hoverState!==un&&t.parentNode&&t.parentNode.removeChild(t),this._cleanTipClass(),this._element.removeAttribute("aria-describedby"),pe.trigger(this._element,this.constructor.Event.HIDDEN),this._popper&&(this._popper.destroy(),this._popper=null))}),this.tip,e),this._hoverState=""}update(){null!==this._popper&&this._popper.update()}isWithContent(){return Boolean(this.getTitle())}getTipElement(){if(this.tip)return this.tip;const t=document.createElement("div");return t.innerHTML=this._config.template,this.tip=t.children[0],this.tip}setContent(){const t=this.getTipElement();this.setElementContent(Dt.findOne(".tooltip-inner",t),this.getTitle()),t.classList.remove(hn,dn)}setElementContent(t,e){if(null!==t)return Rt(e)?(e=$t(e),void(this._config.html?e.parentNode!==t&&(t.innerHTML="",t.appendChild(e)):t.textContent=e.textContent)):void(this._config.html?(this._config.sanitize&&(e=en(e,this._config.allowList,this._config.sanitizeFn)),t.innerHTML=e):t.textContent=e)}getTitle(){let t=this._element.getAttribute("data-bs-original-title");return t||(t="function"==typeof this._config.title?this._config.title.call(this._element):this._config.title),t}updateAttachment(t){return"right"===t?"end":"left"===t?"start":t}_initializeOnDelegatedTarget(t,e){const i=this.constructor.DATA_KEY;return(e=e||Zt.get(t.delegateTarget,i))||(e=new this.constructor(t.delegateTarget,this._getDelegateConfig()),Zt.set(t.delegateTarget,i,e)),e}_getOffset(){const{offset:t}=this._config;return"string"==typeof t?t.split(",").map((t=>Number.parseInt(t,10))):"function"==typeof t?e=>t(e,this._element):t}_getPopperConfig(t){const e={placement:t,modifiers:[{name:"flip",options:{fallbackPlacements:this._config.fallbackPlacements}},{name:"offset",options:{offset:this._getOffset()}},{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"arrow",options:{element:`.${this.constructor.NAME}-arrow`}},{name:"onChange",enabled:!0,phase:"afterWrite",fn:t=>this._handlePopperPlacementChange(t)}],onFirstUpdate:t=>{t.options.placement!==t.placement&&this._handlePopperPlacementChange(t)}};return{...e,..."function"==typeof this._config.popperConfig?this._config.popperConfig(e):this._config.popperConfig}}_addAttachmentClass(t){this.getTipElement().classList.add(`bs-tooltip-${this.updateAttachment(t)}`)}_getAttachment(t){return an[t.toUpperCase()]}_setListeners(){this._config.trigger.split(" ").forEach((t=>{if("click"===t)pe.on(this._element,this.constructor.Event.CLICK,this._config.selector,(t=>this.toggle(t)));else if("manual"!==t){const e=t===pn?this.constructor.Event.MOUSEENTER:this.constructor.Event.FOCUSIN,i=t===pn?this.constructor.Event.MOUSELEAVE:this.constructor.Event.FOCUSOUT;pe.on(this._element,e,this._config.selector,(t=>this._enter(t))),pe.on(this._element,i,this._config.selector,(t=>this._leave(t)))}})),this._hideModalHandler=()=>{this._element&&this.hide()},pe.on(this._element.closest(".modal"),"hide.bs.modal",this._hideModalHandler),this._config.selector?this._config={...this._config,trigger:"manual",selector:""}:this._fixTitle()}_fixTitle(){const t=this._element.getAttribute("title"),e=typeof this._element.getAttribute("data-bs-original-title");(t||"string"!==e)&&(this._element.setAttribute("data-bs-original-title",t||""),!t||this._element.getAttribute("aria-label")||this._element.textContent||this._element.setAttribute("aria-label",t),this._element.setAttribute("title",""))}_enter(t,e){e=this._initializeOnDelegatedTarget(t,e),t&&(e._activeTrigger["focusin"===t.type?mn:pn]=!0),e.getTipElement().classList.contains(dn)||e._hoverState===un?e._hoverState=un:(clearTimeout(e._timeout),e._hoverState=un,e._config.delay&&e._config.delay.show?e._timeout=setTimeout((()=>{e._hoverState===un&&e.show()}),e._config.delay.show):e.show())}_leave(t,e){e=this._initializeOnDelegatedTarget(t,e),t&&(e._activeTrigger["focusout"===t.type?mn:pn]=e._element.contains(t.relatedTarget)),e._isWithActiveTrigger()||(clearTimeout(e._timeout),e._hoverState=fn,e._config.delay&&e._config.delay.hide?e._timeout=setTimeout((()=>{e._hoverState===fn&&e.hide()}),e._config.delay.hide):e.hide())}_isWithActiveTrigger(){for(const t in this._activeTrigger)if(this._activeTrigger[t])return!0;return!1}_getConfig(t){const e=Ee.getDataAttributes(this._element);return Object.keys(e).forEach((t=>{on.has(t)&&delete e[t]})),(t={...this.constructor.Default,...e,..."object"==typeof t&&t?t:{}}).container=!1===t.container?document.body:$t(t.container),"number"==typeof t.delay&&(t.delay={show:t.delay,hide:t.delay}),"number"==typeof t.title&&(t.title=t.title.toString()),"number"==typeof t.content&&(t.content=t.content.toString()),Wt(nn,t,this.constructor.DefaultType),t.sanitize&&(t.template=en(t.template,t.allowList,t.sanitizeFn)),t}_getDelegateConfig(){const t={};if(this._config)for(const e in this._config)this.constructor.Default[e]!==this._config[e]&&(t[e]=this._config[e]);return t}_cleanTipClass(){const t=this.getTipElement(),e=t.getAttribute("class").match(sn);null!==e&&e.length>0&&e.map((t=>t.trim())).forEach((e=>t.classList.remove(e)))}_handlePopperPlacementChange(t){const{state:e}=t;e&&(this.tip=e.elements.popper,this._cleanTipClass(),this._addAttachmentClass(this._getAttachment(e.placement)))}static jQueryInterface(t){return this.each((function(){let e=Zt.get(this,"bs.tooltip");const i="object"==typeof t&&t;if((e||!/dispose|hide/.test(t))&&(e||(e=new gn(this,i)),"string"==typeof t)){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t]()}}))}}Yt(gn);const _n="bs.popover",bn=new RegExp("(^|\\s)bs-popover\\S+","g"),vn={...gn.Default,placement:"right",offset:[0,8],trigger:"click",content:"",template:''},yn={...gn.DefaultType,content:"(string|element|function)"},wn={HIDE:"hide.bs.popover",HIDDEN:"hidden.bs.popover",SHOW:"show.bs.popover",SHOWN:"shown.bs.popover",INSERTED:"inserted.bs.popover",CLICK:"click.bs.popover",FOCUSIN:"focusin.bs.popover",FOCUSOUT:"focusout.bs.popover",MOUSEENTER:"mouseenter.bs.popover",MOUSELEAVE:"mouseleave.bs.popover"};class En extends gn{static get Default(){return vn}static get NAME(){return"popover"}static get Event(){return wn}static get DefaultType(){return yn}isWithContent(){return this.getTitle()||this._getContent()}setContent(){const t=this.getTipElement();this.setElementContent(Dt.findOne(".popover-header",t),this.getTitle());let e=this._getContent();"function"==typeof e&&(e=e.call(this._element)),this.setElementContent(Dt.findOne(".popover-body",t),e),t.classList.remove("fade","show")}_addAttachmentClass(t){this.getTipElement().classList.add(`bs-popover-${this.updateAttachment(t)}`)}_getContent(){return this._element.getAttribute("data-bs-content")||this._config.content}_cleanTipClass(){const t=this.getTipElement(),e=t.getAttribute("class").match(bn);null!==e&&e.length>0&&e.map((t=>t.trim())).forEach((e=>t.classList.remove(e)))}static jQueryInterface(t){return this.each((function(){let e=Zt.get(this,_n);const i="object"==typeof t?t:null;if((e||!/dispose|hide/.test(t))&&(e||(e=new En(this,i),Zt.set(this,_n,e)),"string"==typeof t)){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t]()}}))}}Yt(En);const Tn="scrollspy",An={offset:10,method:"auto",target:""},On={offset:"number",method:"string",target:"(string|element)"},Ln="active",kn="position";class Cn extends me{constructor(t,e){super(t),this._scrollElement="BODY"===this._element.tagName?window:this._element,this._config=this._getConfig(e),this._selector=`${this._config.target} .nav-link, ${this._config.target} .list-group-item, ${this._config.target} .dropdown-item`,this._offsets=[],this._targets=[],this._activeTarget=null,this._scrollHeight=0,pe.on(this._scrollElement,"scroll.bs.scrollspy",(()=>this._process())),this.refresh(),this._process()}static get Default(){return An}static get NAME(){return Tn}refresh(){const t=this._scrollElement===this._scrollElement.window?"offset":kn,e="auto"===this._config.method?t:this._config.method,i=e===kn?this._getScrollTop():0;this._offsets=[],this._targets=[],this._scrollHeight=this._getScrollHeight(),Dt.find(this._selector).map((t=>{const n=It(t),s=n?Dt.findOne(n):null;if(s){const t=s.getBoundingClientRect();if(t.width||t.height)return[Ee[e](s).top+i,n]}return null})).filter((t=>t)).sort(((t,e)=>t[0]-e[0])).forEach((t=>{this._offsets.push(t[0]),this._targets.push(t[1])}))}dispose(){pe.off(this._scrollElement,".bs.scrollspy"),super.dispose()}_getConfig(t){if("string"!=typeof(t={...An,...Ee.getDataAttributes(this._element),..."object"==typeof t&&t?t:{}}).target&&Rt(t.target)){let{id:e}=t.target;e||(e=Nt(Tn),t.target.id=e),t.target=`#${e}`}return Wt(Tn,t,On),t}_getScrollTop(){return this._scrollElement===window?this._scrollElement.pageYOffset:this._scrollElement.scrollTop}_getScrollHeight(){return this._scrollElement.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)}_getOffsetHeight(){return this._scrollElement===window?window.innerHeight:this._scrollElement.getBoundingClientRect().height}_process(){const t=this._getScrollTop()+this._config.offset,e=this._getScrollHeight(),i=this._config.offset+e-this._getOffsetHeight();if(this._scrollHeight!==e&&this.refresh(),t>=i){const t=this._targets[this._targets.length-1];this._activeTarget!==t&&this._activate(t)}else{if(this._activeTarget&&t0)return this._activeTarget=null,void this._clear();for(let e=this._offsets.length;e--;)this._activeTarget!==this._targets[e]&&t>=this._offsets[e]&&(void 0===this._offsets[e+1]||t`${e}[data-bs-target="${t}"],${e}[href="${t}"]`)),i=Dt.findOne(e.join(","));i.classList.contains("dropdown-item")?(Dt.findOne(".dropdown-toggle",i.closest(".dropdown")).classList.add(Ln),i.classList.add(Ln)):(i.classList.add(Ln),Dt.parents(i,".nav, .list-group").forEach((t=>{Dt.prev(t,".nav-link, .list-group-item").forEach((t=>t.classList.add(Ln))),Dt.prev(t,".nav-item").forEach((t=>{Dt.children(t,".nav-link").forEach((t=>t.classList.add(Ln)))}))}))),pe.trigger(this._scrollElement,"activate.bs.scrollspy",{relatedTarget:t})}_clear(){Dt.find(this._selector).filter((t=>t.classList.contains(Ln))).forEach((t=>t.classList.remove(Ln)))}static jQueryInterface(t){return this.each((function(){const e=Cn.getInstance(this)||new Cn(this,"object"==typeof t?t:{});if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t]()}}))}}pe.on(window,"load.bs.scrollspy.data-api",(()=>{Dt.find('[data-bs-spy="scroll"]').forEach((t=>new Cn(t)))})),Yt(Cn);const xn="bs.tab",Dn="active",Sn="fade",Nn="show",jn=".active",In=":scope > li > .active";class Pn extends me{static get NAME(){return"tab"}show(){if(this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE&&this._element.classList.contains(Dn))return;let t;const e=Pt(this._element),i=this._element.closest(".nav, .list-group");if(i){const e="UL"===i.nodeName||"OL"===i.nodeName?In:jn;t=Dt.find(e,i),t=t[t.length-1]}const n=t?pe.trigger(t,"hide.bs.tab",{relatedTarget:this._element}):null;if(pe.trigger(this._element,"show.bs.tab",{relatedTarget:t}).defaultPrevented||null!==n&&n.defaultPrevented)return;this._activate(this._element,i);const s=()=>{pe.trigger(t,"hidden.bs.tab",{relatedTarget:this._element}),pe.trigger(this._element,"shown.bs.tab",{relatedTarget:t})};e?this._activate(e,e.parentNode,s):s()}_activate(t,e,i){const n=(!e||"UL"!==e.nodeName&&"OL"!==e.nodeName?Dt.children(e,jn):Dt.find(In,e))[0],s=i&&n&&n.classList.contains(Sn),o=()=>this._transitionComplete(t,n,i);n&&s?(n.classList.remove(Nn),this._queueCallback(o,t,!0)):o()}_transitionComplete(t,e,i){if(e){e.classList.remove(Dn);const t=Dt.findOne(":scope > .dropdown-menu .active",e.parentNode);t&&t.classList.remove(Dn),"tab"===e.getAttribute("role")&&e.setAttribute("aria-selected",!1)}t.classList.add(Dn),"tab"===t.getAttribute("role")&&t.setAttribute("aria-selected",!0),Vt(t),t.classList.contains(Sn)&&t.classList.add(Nn);let n=t.parentNode;if(n&&"LI"===n.nodeName&&(n=n.parentNode),n&&n.classList.contains("dropdown-menu")){const e=t.closest(".dropdown");e&&Dt.find(".dropdown-toggle",e).forEach((t=>t.classList.add(Dn))),t.setAttribute("aria-expanded",!0)}i&&i()}static jQueryInterface(t){return this.each((function(){const e=Zt.get(this,xn)||new Pn(this);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t]()}}))}}pe.on(document,"click.bs.tab.data-api",'[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',(function(t){["A","AREA"].includes(this.tagName)&&t.preventDefault(),zt(this)||(Zt.get(this,xn)||new Pn(this)).show()})),Yt(Pn);const Mn="toast",Hn="hide",Rn="show",$n="showing",Bn={animation:"boolean",autohide:"boolean",delay:"number"},Wn={animation:!0,autohide:!0,delay:5e3};class qn extends me{constructor(t,e){super(t),this._config=this._getConfig(e),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get DefaultType(){return Bn}static get Default(){return Wn}static get NAME(){return Mn}show(){pe.trigger(this._element,"show.bs.toast").defaultPrevented||(this._clearTimeout(),this._config.animation&&this._element.classList.add("fade"),this._element.classList.remove(Hn),Vt(this._element),this._element.classList.add($n),this._queueCallback((()=>{this._element.classList.remove($n),this._element.classList.add(Rn),pe.trigger(this._element,"shown.bs.toast"),this._maybeScheduleHide()}),this._element,this._config.animation))}hide(){this._element.classList.contains(Rn)&&(pe.trigger(this._element,"hide.bs.toast").defaultPrevented||(this._element.classList.remove(Rn),this._queueCallback((()=>{this._element.classList.add(Hn),pe.trigger(this._element,"hidden.bs.toast")}),this._element,this._config.animation)))}dispose(){this._clearTimeout(),this._element.classList.contains(Rn)&&this._element.classList.remove(Rn),super.dispose()}_getConfig(t){return t={...Wn,...Ee.getDataAttributes(this._element),..."object"==typeof t&&t?t:{}},Wt(Mn,t,this.constructor.DefaultType),t}_maybeScheduleHide(){this._config.autohide&&(this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout((()=>{this.hide()}),this._config.delay)))}_onInteraction(t,e){switch(t.type){case"mouseover":case"mouseout":this._hasMouseInteraction=e;break;case"focusin":case"focusout":this._hasKeyboardInteraction=e}if(e)return void this._clearTimeout();const i=t.relatedTarget;this._element===i||this._element.contains(i)||this._maybeScheduleHide()}_setListeners(){pe.on(this._element,"click.dismiss.bs.toast",'[data-bs-dismiss="toast"]',(()=>this.hide())),pe.on(this._element,"mouseover.bs.toast",(t=>this._onInteraction(t,!0))),pe.on(this._element,"mouseout.bs.toast",(t=>this._onInteraction(t,!1))),pe.on(this._element,"focusin.bs.toast",(t=>this._onInteraction(t,!0))),pe.on(this._element,"focusout.bs.toast",(t=>this._onInteraction(t,!1)))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(t){return this.each((function(){let e=Zt.get(this,"bs.toast");if(e||(e=new qn(this,"object"==typeof t&&t)),"string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t](this)}}))}}Yt(qn)})();