var ai=Object.defineProperty;var li=(n,t,e)=>t in n?ai(n,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):n[t]=e;var ct=(n,t,e)=>(li(n,typeof t!="symbol"?t+"":t,e),e);(function(){var n;function t(a){for(var f in a)return f}function e(a){switch(typeof a){case"string":return"java.lang.String";case"number":return typeof a=="number"&&(a|0)===a&&1/a!==1/-0?a<<24>>24===a?"java.lang.Byte":a<<16>>16===a?"java.lang.Short":"java.lang.Integer":typeof a!="number"||a===a&&Math.fround(a)!==a?"java.lang.Double":"java.lang.Float";case"boolean":return"java.lang.Boolean";case"undefined":return"java.lang.Void";default:return a===null?a.x():a instanceof M?"java.lang.Long":a&&a.$classData?a.$classData.name:null.y()}}var s=0,i=new WeakMap;function r(a){switch(typeof a){case"string":return Z(a);case"number":x||(x=new P);var f=x,g=a|0;return g===a&&1/a!==-1/0?a=g:(f.p[0]=a,a=(f.j[0]|0)^(f.j[1]|0)),a;case"bigint":for(f=0,a>=BigInt(32);return f;case"boolean":return a?1231:1237;case"undefined":return 0;case"symbol":return a=a.description,a===void 0?0:Z(a);default:return a===null?0:(f=i.get(a),f===void 0&&(s=f=s+1|0,i.set(a,f)),f)}}function o(){}o.prototype.constructor=o;function l(){}l.prototype=o.prototype,o.prototype.o=function(){return r(this)},o.prototype.q=function(){var a=this.o();return e(this)+"@"+(+(a>>>0)).toString(16)},o.prototype.toString=function(){return this.q()};function c(a){if(typeof a=="number"){this.a=Array(a);for(var f=0;f$===A,A.name=g,A.isPrimitive=!0,A.isInstance=()=>!1,_!==void 0&&(A.f=N(A,_)),A}function y(a,f,g,_){var A=new I,$=t(a);return A.b=g,A.c="L"+f+";",A.e=w=>!!w.b[$],A.name=f,A.isInterface=!1,A.isInstance=_||(w=>!!(w&&w.$classData&&w.$classData.b[$])),A}function N(a,f,g){var _=new I;f.prototype.$classData=_;var A="["+a.c;return _.k=f,_.b={d:1,v:1,l:1},_.g=a,_.h=1,_.c=A,_.name=A,_.isArrayClass=!0,_.e=g||($=>_===$),_.isInstance=$=>$ instanceof f,_}function L(){function a(w){if(typeof w=="number"){this.a=Array(w);for(var k=0;k{var k=w.h;return k===A?_.e(w.g):k>A&&_===O};return g.e=$,g.isInstance=w=>(w=w&&w.$classData,!!w&&(w===g||$(w))),g}var O=new I;O.b={d:1},O.c="Ljava.lang.Object;",O.e=a=>!a.isPrimitive,O.name="java.lang.Object",O.isInstance=a=>a!==null,O.f=N(O,c,a=>{var f=a.h;return f===1?!a.g.isPrimitive:1>31?""+a:0>f?"-"+W(-a|0,a!==0?~f:-f|0):W(a,f)},M.prototype.$classData=y({s:0},"org.scalajs.linker.runtime.RuntimeLong",{s:1,d:1});function W(a,f){if(!(-2097152&f))f=""+(4294967296*f+ +(a>>>0));else{var g=(32+(Math.clz32(1e9)|0)|0)-(f!==0?Math.clz32(f)|0:32+(Math.clz32(a)|0)|0)|0,_=g,A=32&_?0:1e9<<_;_=32&_?1e9<<_:5e8>>>(31-_|0)|0|0<<_;var $=a,w=f;for(a=f=0;0<=g&&-2097152&w;){var k=$,z=w,tt=A,lt=_;(z===lt?(-2147483648^k)>=(-2147483648^tt):(-2147483648^z)>=(-2147483648^lt))&&(k=w,z=_,w=$-A|0,k=(-2147483648^w)>(-2147483648^$)?-1+(k-z|0)|0:k-z|0,$=w,w=k,32>g?f|=1<>>1|0,A=A>>>1|0|_<<31,_=k}g=w,(g===0?-1147483648<=(-2147483648^$):-2147483648<=(-2147483648^g))&&(g=4294967296*w+ +($>>>0),$=g/1e9,A=$/4294967296|0,_=f,f=$=_+($|0)|0,a=(-2147483648^$)<(-2147483648^_)?1+(a+A|0)|0:a+A|0,$=g%1e9|0),g=""+$,f=""+(4294967296*a+ +(f>>>0))+"000000000".substring(g.length)+g}return f}function R(){}R.prototype=new l,R.prototype.constructor=R,R.prototype.$classData=y({t:0},"org.scalajs.linker.runtime.RuntimeLong$",{t:1,d:1});function Z(a){for(var f=0,g=1,_=-1+a.length|0;0<=_;)f=f+Math.imul(a.charCodeAt(_),g)|0,g=Math.imul(31,g),_=-1+_|0;return f}var U=y({u:0},"java.lang.String",{u:1,d:1,l:1,A:1,z:1,B:1,C:1},a=>typeof a=="string");n=new M(0,0),V.r=n,U.f||(U.f=L()),new U.f.k([])}).call(globalThis);var H="top",F="bottom",K="right",j="left",_e="auto",jt=[H,F,K,j],At="start",Mt="end",ns="clippingParents",ze="viewport",Dt="popper",ss="reference",je=jt.reduce(function(n,t){return n.concat([t+"-"+At,t+"-"+Mt])},[]),Ge=[].concat(jt,[_e]).reduce(function(n,t){return n.concat([t,t+"-"+At,t+"-"+Mt])},[]),is="beforeRead",rs="read",os="afterRead",as="beforeMain",ls="main",cs="afterMain",us="beforeWrite",hs="write",fs="afterWrite",ds=[is,rs,os,as,ls,cs,us,hs,fs];function st(n){return n?(n.nodeName||"").toLowerCase():null}function Y(n){if(n==null)return window;if(n.toString()!=="[object Window]"){var t=n.ownerDocument;return t&&t.defaultView||window}return n}function Tt(n){var t=Y(n).Element;return n instanceof t||n instanceof Element}function G(n){var t=Y(n).HTMLElement;return n instanceof t||n instanceof HTMLElement}function qe(n){if(typeof ShadowRoot>"u")return!1;var t=Y(n).ShadowRoot;return n instanceof t||n instanceof ShadowRoot}function ci(n){var t=n.state;Object.keys(t.elements).forEach(function(e){var s=t.styles[e]||{},i=t.attributes[e]||{},r=t.elements[e];!G(r)||!st(r)||(Object.assign(r.style,s),Object.keys(i).forEach(function(o){var l=i[o];l===!1?r.removeAttribute(o):r.setAttribute(o,l===!0?"":l)}))})}function ui(n){var t=n.state,e={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,e.popper),t.styles=e,t.elements.arrow&&Object.assign(t.elements.arrow.style,e.arrow),function(){Object.keys(t.elements).forEach(function(s){var i=t.elements[s],r=t.attributes[s]||{},o=Object.keys(t.styles.hasOwnProperty(s)?t.styles[s]:e[s]),l=o.reduce(function(c,d){return c[d]="",c},{});!G(i)||!st(i)||(Object.assign(i.style,l),Object.keys(r).forEach(function(c){i.removeAttribute(c)}))})}}const Xe={name:"applyStyles",enabled:!0,phase:"write",fn:ci,effect:ui,requires:["computeStyles"]};function et(n){return n.split("-")[0]}var yt=Math.max,he=Math.min,Pt=Math.round;function We(){var n=navigator.userAgentData;return n!=null&&n.brands&&Array.isArray(n.brands)?n.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function ps(){return!/^((?!chrome|android).)*safari/i.test(We())}function xt(n,t,e){t===void 0&&(t=!1),e===void 0&&(e=!1);var s=n.getBoundingClientRect(),i=1,r=1;t&&G(n)&&(i=n.offsetWidth>0&&Pt(s.width)/n.offsetWidth||1,r=n.offsetHeight>0&&Pt(s.height)/n.offsetHeight||1);var o=Tt(n)?Y(n):window,l=o.visualViewport,c=!ps()&&e,d=(s.left+(c&&l?l.offsetLeft:0))/i,h=(s.top+(c&&l?l.offsetTop:0))/r,E=s.width/i,v=s.height/r;return{width:E,height:v,top:h,right:d+E,bottom:h+v,left:d,x:d,y:h}}function Qe(n){var t=xt(n),e=n.offsetWidth,s=n.offsetHeight;return Math.abs(t.width-e)<=1&&(e=t.width),Math.abs(t.height-s)<=1&&(s=t.height),{x:n.offsetLeft,y:n.offsetTop,width:e,height:s}}function _s(n,t){var e=t.getRootNode&&t.getRootNode();if(n.contains(t))return!0;if(e&&qe(e)){var s=t;do{if(s&&n.isSameNode(s))return!0;s=s.parentNode||s.host}while(s)}return!1}function ot(n){return Y(n).getComputedStyle(n)}function hi(n){return["table","td","th"].indexOf(st(n))>=0}function pt(n){return((Tt(n)?n.ownerDocument:n.document)||window.document).documentElement}function me(n){return st(n)==="html"?n:n.assignedSlot||n.parentNode||(qe(n)?n.host:null)||pt(n)}function yn(n){return!G(n)||ot(n).position==="fixed"?null:n.offsetParent}function fi(n){var t=/firefox/i.test(We()),e=/Trident/i.test(We());if(e&&G(n)){var s=ot(n);if(s.position==="fixed")return null}var i=me(n);for(qe(i)&&(i=i.host);G(i)&&["html","body"].indexOf(st(i))<0;){var r=ot(i);if(r.transform!=="none"||r.perspective!=="none"||r.contain==="paint"||["transform","perspective"].indexOf(r.willChange)!==-1||t&&r.willChange==="filter"||t&&r.filter&&r.filter!=="none")return i;i=i.parentNode}return null}function Gt(n){for(var t=Y(n),e=yn(n);e&&hi(e)&&ot(e).position==="static";)e=yn(e);return e&&(st(e)==="html"||st(e)==="body"&&ot(e).position==="static")?t:e||fi(n)||t}function Je(n){return["top","bottom"].indexOf(n)>=0?"x":"y"}function Yt(n,t,e){return yt(n,he(t,e))}function di(n,t,e){var s=Yt(n,t,e);return s>e?e:s}function ms(){return{top:0,right:0,bottom:0,left:0}}function gs(n){return Object.assign({},ms(),n)}function Es(n,t){return t.reduce(function(e,s){return e[s]=n,e},{})}var pi=function(t,e){return t=typeof t=="function"?t(Object.assign({},e.rects,{placement:e.placement})):t,gs(typeof t!="number"?t:Es(t,jt))};function _i(n){var t,e=n.state,s=n.name,i=n.options,r=e.elements.arrow,o=e.modifiersData.popperOffsets,l=et(e.placement),c=Je(l),d=[j,K].indexOf(l)>=0,h=d?"height":"width";if(!(!r||!o)){var E=pi(i.padding,e),v=Qe(r),m=c==="y"?H:j,C=c==="y"?F:K,b=e.rects.reference[h]+e.rects.reference[c]-o[c]-e.rects.popper[h],T=o[c]-e.rects.reference[c],D=Gt(r),I=D?c==="y"?D.clientHeight||0:D.clientWidth||0:0,S=b/2-T/2,y=E[m],N=I-v[h]-E[C],L=I/2-v[h]/2+S,O=Yt(y,L,N),V=c;e.modifiersData[s]=(t={},t[V]=O,t.centerOffset=O-L,t)}}function mi(n){var t=n.state,e=n.options,s=e.element,i=s===void 0?"[data-popper-arrow]":s;i!=null&&(typeof i=="string"&&(i=t.elements.popper.querySelector(i),!i)||_s(t.elements.popper,i)&&(t.elements.arrow=i))}const vs={name:"arrow",enabled:!0,phase:"main",fn:_i,effect:mi,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Rt(n){return n.split("-")[1]}var gi={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Ei(n,t){var e=n.x,s=n.y,i=t.devicePixelRatio||1;return{x:Pt(e*i)/i||0,y:Pt(s*i)/i||0}}function An(n){var t,e=n.popper,s=n.popperRect,i=n.placement,r=n.variation,o=n.offsets,l=n.position,c=n.gpuAcceleration,d=n.adaptive,h=n.roundOffsets,E=n.isFixed,v=o.x,m=v===void 0?0:v,C=o.y,b=C===void 0?0:C,T=typeof h=="function"?h({x:m,y:b}):{x:m,y:b};m=T.x,b=T.y;var D=o.hasOwnProperty("x"),I=o.hasOwnProperty("y"),S=j,y=H,N=window;if(d){var L=Gt(e),O="clientHeight",V="clientWidth";if(L===Y(e)&&(L=pt(e),ot(L).position!=="static"&&l==="absolute"&&(O="scrollHeight",V="scrollWidth")),L=L,i===H||(i===j||i===K)&&r===Mt){y=F;var P=E&&L===N&&N.visualViewport?N.visualViewport.height:L[O];b-=P-s.height,b*=c?1:-1}if(i===j||(i===H||i===F)&&r===Mt){S=K;var x=E&&L===N&&N.visualViewport?N.visualViewport.width:L[V];m-=x-s.width,m*=c?1:-1}}var M=Object.assign({position:l},d&&gi),W=h===!0?Ei({x:m,y:b},Y(e)):{x:m,y:b};if(m=W.x,b=W.y,c){var R;return Object.assign({},M,(R={},R[y]=I?"0":"",R[S]=D?"0":"",R.transform=(N.devicePixelRatio||1)<=1?"translate("+m+"px, "+b+"px)":"translate3d("+m+"px, "+b+"px, 0)",R))}return Object.assign({},M,(t={},t[y]=I?b+"px":"",t[S]=D?m+"px":"",t.transform="",t))}function vi(n){var t=n.state,e=n.options,s=e.gpuAcceleration,i=s===void 0?!0:s,r=e.adaptive,o=r===void 0?!0:r,l=e.roundOffsets,c=l===void 0?!0:l,d={placement:et(t.placement),variation:Rt(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,An(Object.assign({},d,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:o,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,An(Object.assign({},d,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const Ze={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:vi,data:{}};var ee={passive:!0};function bi(n){var t=n.state,e=n.instance,s=n.options,i=s.scroll,r=i===void 0?!0:i,o=s.resize,l=o===void 0?!0:o,c=Y(t.elements.popper),d=[].concat(t.scrollParents.reference,t.scrollParents.popper);return r&&d.forEach(function(h){h.addEventListener("scroll",e.update,ee)}),l&&c.addEventListener("resize",e.update,ee),function(){r&&d.forEach(function(h){h.removeEventListener("scroll",e.update,ee)}),l&&c.removeEventListener("resize",e.update,ee)}}const tn={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:bi,data:{}};var yi={left:"right",right:"left",bottom:"top",top:"bottom"};function le(n){return n.replace(/left|right|bottom|top/g,function(t){return yi[t]})}var Ai={start:"end",end:"start"};function Tn(n){return n.replace(/start|end/g,function(t){return Ai[t]})}function en(n){var t=Y(n),e=t.pageXOffset,s=t.pageYOffset;return{scrollLeft:e,scrollTop:s}}function nn(n){return xt(pt(n)).left+en(n).scrollLeft}function Ti(n,t){var e=Y(n),s=pt(n),i=e.visualViewport,r=s.clientWidth,o=s.clientHeight,l=0,c=0;if(i){r=i.width,o=i.height;var d=ps();(d||!d&&t==="fixed")&&(l=i.offsetLeft,c=i.offsetTop)}return{width:r,height:o,x:l+nn(n),y:c}}function wi(n){var t,e=pt(n),s=en(n),i=(t=n.ownerDocument)==null?void 0:t.body,r=yt(e.scrollWidth,e.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),o=yt(e.scrollHeight,e.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),l=-s.scrollLeft+nn(n),c=-s.scrollTop;return ot(i||e).direction==="rtl"&&(l+=yt(e.clientWidth,i?i.clientWidth:0)-r),{width:r,height:o,x:l,y:c}}function sn(n){var t=ot(n),e=t.overflow,s=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(e+i+s)}function bs(n){return["html","body","#document"].indexOf(st(n))>=0?n.ownerDocument.body:G(n)&&sn(n)?n:bs(me(n))}function Ut(n,t){var e;t===void 0&&(t=[]);var s=bs(n),i=s===((e=n.ownerDocument)==null?void 0:e.body),r=Y(s),o=i?[r].concat(r.visualViewport||[],sn(s)?s:[]):s,l=t.concat(o);return i?l:l.concat(Ut(me(o)))}function Be(n){return Object.assign({},n,{left:n.x,top:n.y,right:n.x+n.width,bottom:n.y+n.height})}function Oi(n,t){var e=xt(n,!1,t==="fixed");return e.top=e.top+n.clientTop,e.left=e.left+n.clientLeft,e.bottom=e.top+n.clientHeight,e.right=e.left+n.clientWidth,e.width=n.clientWidth,e.height=n.clientHeight,e.x=e.left,e.y=e.top,e}function wn(n,t,e){return t===ze?Be(Ti(n,e)):Tt(t)?Oi(t,e):Be(wi(pt(n)))}function Ci(n){var t=Ut(me(n)),e=["absolute","fixed"].indexOf(ot(n).position)>=0,s=e&&G(n)?Gt(n):n;return Tt(s)?t.filter(function(i){return Tt(i)&&_s(i,s)&&st(i)!=="body"}):[]}function Si(n,t,e,s){var i=t==="clippingParents"?Ci(n):[].concat(t),r=[].concat(i,[e]),o=r[0],l=r.reduce(function(c,d){var h=wn(n,d,s);return c.top=yt(h.top,c.top),c.right=he(h.right,c.right),c.bottom=he(h.bottom,c.bottom),c.left=yt(h.left,c.left),c},wn(n,o,s));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function ys(n){var t=n.reference,e=n.element,s=n.placement,i=s?et(s):null,r=s?Rt(s):null,o=t.x+t.width/2-e.width/2,l=t.y+t.height/2-e.height/2,c;switch(i){case H:c={x:o,y:t.y-e.height};break;case F:c={x:o,y:t.y+t.height};break;case K:c={x:t.x+t.width,y:l};break;case j:c={x:t.x-e.width,y:l};break;default:c={x:t.x,y:t.y}}var d=i?Je(i):null;if(d!=null){var h=d==="y"?"height":"width";switch(r){case At:c[d]=c[d]-(t[h]/2-e[h]/2);break;case Mt:c[d]=c[d]+(t[h]/2-e[h]/2);break}}return c}function kt(n,t){t===void 0&&(t={});var e=t,s=e.placement,i=s===void 0?n.placement:s,r=e.strategy,o=r===void 0?n.strategy:r,l=e.boundary,c=l===void 0?ns:l,d=e.rootBoundary,h=d===void 0?ze:d,E=e.elementContext,v=E===void 0?Dt:E,m=e.altBoundary,C=m===void 0?!1:m,b=e.padding,T=b===void 0?0:b,D=gs(typeof T!="number"?T:Es(T,jt)),I=v===Dt?ss:Dt,S=n.rects.popper,y=n.elements[C?I:v],N=Si(Tt(y)?y:y.contextElement||pt(n.elements.popper),c,h,o),L=xt(n.elements.reference),O=ys({reference:L,element:S,strategy:"absolute",placement:i}),V=Be(Object.assign({},S,O)),P=v===Dt?V:L,x={top:N.top-P.top+D.top,bottom:P.bottom-N.bottom+D.bottom,left:N.left-P.left+D.left,right:P.right-N.right+D.right},M=n.modifiersData.offset;if(v===Dt&&M){var W=M[i];Object.keys(x).forEach(function(R){var Z=[K,F].indexOf(R)>=0?1:-1,U=[H,F].indexOf(R)>=0?"y":"x";x[R]+=W[U]*Z})}return x}function Ni(n,t){t===void 0&&(t={});var e=t,s=e.placement,i=e.boundary,r=e.rootBoundary,o=e.padding,l=e.flipVariations,c=e.allowedAutoPlacements,d=c===void 0?Ge:c,h=Rt(s),E=h?l?je:je.filter(function(C){return Rt(C)===h}):jt,v=E.filter(function(C){return d.indexOf(C)>=0});v.length===0&&(v=E);var m=v.reduce(function(C,b){return C[b]=kt(n,{placement:b,boundary:i,rootBoundary:r,padding:o})[et(b)],C},{});return Object.keys(m).sort(function(C,b){return m[C]-m[b]})}function Di(n){if(et(n)===_e)return[];var t=le(n);return[Tn(n),t,Tn(t)]}function Li(n){var t=n.state,e=n.options,s=n.name;if(!t.modifiersData[s]._skip){for(var i=e.mainAxis,r=i===void 0?!0:i,o=e.altAxis,l=o===void 0?!0:o,c=e.fallbackPlacements,d=e.padding,h=e.boundary,E=e.rootBoundary,v=e.altBoundary,m=e.flipVariations,C=m===void 0?!0:m,b=e.allowedAutoPlacements,T=t.options.placement,D=et(T),I=D===T,S=c||(I||!C?[le(T)]:Di(T)),y=[T].concat(S).reduce(function(z,tt){return z.concat(et(tt)===_e?Ni(t,{placement:tt,boundary:h,rootBoundary:E,padding:d,flipVariations:C,allowedAutoPlacements:b}):tt)},[]),N=t.rects.reference,L=t.rects.popper,O=new Map,V=!0,P=y[0],x=0;x=0,U=Z?"width":"height",a=kt(t,{placement:M,boundary:h,rootBoundary:E,altBoundary:v,padding:d}),f=Z?R?K:j:R?F:H;N[U]>L[U]&&(f=le(f));var g=le(f),_=[];if(r&&_.push(a[W]<=0),l&&_.push(a[f]<=0,a[g]<=0),_.every(function(z){return z})){P=M,V=!1;break}O.set(M,_)}if(V)for(var A=C?3:1,$=function(tt){var lt=y.find(function(Zt){var gt=O.get(Zt);if(gt)return gt.slice(0,tt).every(function(Te){return Te})});if(lt)return P=lt,"break"},w=A;w>0;w--){var k=$(w);if(k==="break")break}t.placement!==P&&(t.modifiersData[s]._skip=!0,t.placement=P,t.reset=!0)}}const As={name:"flip",enabled:!0,phase:"main",fn:Li,requiresIfExists:["offset"],data:{_skip:!1}};function On(n,t,e){return e===void 0&&(e={x:0,y:0}),{top:n.top-t.height-e.y,right:n.right-t.width+e.x,bottom:n.bottom-t.height+e.y,left:n.left-t.width-e.x}}function Cn(n){return[H,K,F,j].some(function(t){return n[t]>=0})}function $i(n){var t=n.state,e=n.name,s=t.rects.reference,i=t.rects.popper,r=t.modifiersData.preventOverflow,o=kt(t,{elementContext:"reference"}),l=kt(t,{altBoundary:!0}),c=On(o,s),d=On(l,i,r),h=Cn(c),E=Cn(d);t.modifiersData[e]={referenceClippingOffsets:c,popperEscapeOffsets:d,isReferenceHidden:h,hasPopperEscaped:E},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":h,"data-popper-escaped":E})}const Ts={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:$i};function Ii(n,t,e){var s=et(n),i=[j,H].indexOf(s)>=0?-1:1,r=typeof e=="function"?e(Object.assign({},t,{placement:n})):e,o=r[0],l=r[1];return o=o||0,l=(l||0)*i,[j,K].indexOf(s)>=0?{x:l,y:o}:{x:o,y:l}}function Mi(n){var t=n.state,e=n.options,s=n.name,i=e.offset,r=i===void 0?[0,0]:i,o=Ge.reduce(function(h,E){return h[E]=Ii(E,t.rects,r),h},{}),l=o[t.placement],c=l.x,d=l.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=d),t.modifiersData[s]=o}const ws={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Mi};function Pi(n){var t=n.state,e=n.name;t.modifiersData[e]=ys({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const rn={name:"popperOffsets",enabled:!0,phase:"read",fn:Pi,data:{}};function xi(n){return n==="x"?"y":"x"}function Ri(n){var t=n.state,e=n.options,s=n.name,i=e.mainAxis,r=i===void 0?!0:i,o=e.altAxis,l=o===void 0?!1:o,c=e.boundary,d=e.rootBoundary,h=e.altBoundary,E=e.padding,v=e.tether,m=v===void 0?!0:v,C=e.tetherOffset,b=C===void 0?0:C,T=kt(t,{boundary:c,rootBoundary:d,padding:E,altBoundary:h}),D=et(t.placement),I=Rt(t.placement),S=!I,y=Je(D),N=xi(y),L=t.modifiersData.popperOffsets,O=t.rects.reference,V=t.rects.popper,P=typeof b=="function"?b(Object.assign({},t.rects,{placement:t.placement})):b,x=typeof P=="number"?{mainAxis:P,altAxis:P}:Object.assign({mainAxis:0,altAxis:0},P),M=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,W={x:0,y:0};if(L){if(r){var R,Z=y==="y"?H:j,U=y==="y"?F:K,a=y==="y"?"height":"width",f=L[y],g=f+T[Z],_=f-T[U],A=m?-V[a]/2:0,$=I===At?O[a]:V[a],w=I===At?-V[a]:-O[a],k=t.elements.arrow,z=m&&k?Qe(k):{width:0,height:0},tt=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:ms(),lt=tt[Z],Zt=tt[U],gt=Yt(0,O[a],z[a]),Te=S?O[a]/2-A-gt-lt-x.mainAxis:$-gt-lt-x.mainAxis,ei=S?-O[a]/2+A+gt+Zt+x.mainAxis:w+gt+Zt+x.mainAxis,we=t.elements.arrow&&Gt(t.elements.arrow),ni=we?y==="y"?we.clientTop||0:we.clientLeft||0:0,fn=(R=M==null?void 0:M[y])!=null?R:0,si=f+Te-fn-ni,ii=f+ei-fn,dn=Yt(m?he(g,si):g,f,m?yt(_,ii):_);L[y]=dn,W[y]=dn-f}if(l){var pn,ri=y==="x"?H:j,oi=y==="x"?F:K,Et=L[N],te=N==="y"?"height":"width",_n=Et+T[ri],mn=Et-T[oi],Oe=[H,j].indexOf(D)!==-1,gn=(pn=M==null?void 0:M[N])!=null?pn:0,En=Oe?_n:Et-O[te]-V[te]-gn+x.altAxis,vn=Oe?Et+O[te]+V[te]-gn-x.altAxis:mn,bn=m&&Oe?di(En,Et,vn):Yt(m?En:_n,Et,m?vn:mn);L[N]=bn,W[N]=bn-Et}t.modifiersData[s]=W}}const Os={name:"preventOverflow",enabled:!0,phase:"main",fn:Ri,requiresIfExists:["offset"]};function ki(n){return{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}}function Vi(n){return n===Y(n)||!G(n)?en(n):ki(n)}function Hi(n){var t=n.getBoundingClientRect(),e=Pt(t.width)/n.offsetWidth||1,s=Pt(t.height)/n.offsetHeight||1;return e!==1||s!==1}function ji(n,t,e){e===void 0&&(e=!1);var s=G(t),i=G(t)&&Hi(t),r=pt(t),o=xt(n,i,e),l={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(s||!s&&!e)&&((st(t)!=="body"||sn(r))&&(l=Vi(t)),G(t)?(c=xt(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):r&&(c.x=nn(r))),{x:o.left+l.scrollLeft-c.x,y:o.top+l.scrollTop-c.y,width:o.width,height:o.height}}function Wi(n){var t=new Map,e=new Set,s=[];n.forEach(function(r){t.set(r.name,r)});function i(r){e.add(r.name);var o=[].concat(r.requires||[],r.requiresIfExists||[]);o.forEach(function(l){if(!e.has(l)){var c=t.get(l);c&&i(c)}}),s.push(r)}return n.forEach(function(r){e.has(r.name)||i(r)}),s}function Bi(n){var t=Wi(n);return ds.reduce(function(e,s){return e.concat(t.filter(function(i){return i.phase===s}))},[])}function Fi(n){var t;return function(){return t||(t=new Promise(function(e){Promise.resolve().then(function(){t=void 0,e(n())})})),t}}function Ki(n){var t=n.reduce(function(e,s){var i=e[s.name];return e[s.name]=i?Object.assign({},i,s,{options:Object.assign({},i.options,s.options),data:Object.assign({},i.data,s.data)}):s,e},{});return Object.keys(t).map(function(e){return t[e]})}var Sn={placement:"bottom",modifiers:[],strategy:"absolute"};function Nn(){for(var n=arguments.length,t=new Array(n),e=0;e(n&&window.CSS&&window.CSS.escape&&(n=n.replace(/#([^\s"#']+)/g,(t,e)=>`#${CSS.escape(e)}`)),n),Qi=n=>n==null?`${n}`:Object.prototype.toString.call(n).match(/\s([a-z]+)/i)[1].toLowerCase(),Ji=n=>{do n+=Math.floor(Math.random()*qi);while(document.getElementById(n));return n},Zi=n=>{if(!n)return 0;let{transitionDuration:t,transitionDelay:e}=window.getComputedStyle(n);const s=Number.parseFloat(t),i=Number.parseFloat(e);return!s&&!i?0:(t=t.split(",")[0],e=e.split(",")[0],(Number.parseFloat(t)+Number.parseFloat(e))*Xi)},Ns=n=>{n.dispatchEvent(new Event(Fe))},it=n=>!n||typeof n!="object"?!1:(typeof n.jquery<"u"&&(n=n[0]),typeof n.nodeType<"u"),ht=n=>it(n)?n.jquery?n[0]:n:typeof n=="string"&&n.length>0?document.querySelector(Ss(n)):null,Wt=n=>{if(!it(n)||n.getClientRects().length===0)return!1;const t=getComputedStyle(n).getPropertyValue("visibility")==="visible",e=n.closest("details:not([open])");if(!e)return t;if(e!==n){const s=n.closest("summary");if(s&&s.parentNode!==e||s===null)return!1}return t},ft=n=>!n||n.nodeType!==Node.ELEMENT_NODE||n.classList.contains("disabled")?!0:typeof n.disabled<"u"?n.disabled:n.hasAttribute("disabled")&&n.getAttribute("disabled")!=="false",Ds=n=>{if(!document.documentElement.attachShadow)return null;if(typeof n.getRootNode=="function"){const t=n.getRootNode();return t instanceof ShadowRoot?t:null}return n instanceof ShadowRoot?n:n.parentNode?Ds(n.parentNode):null},fe=()=>{},qt=n=>{n.offsetHeight},Ls=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,Se=[],tr=n=>{document.readyState==="loading"?(Se.length||document.addEventListener("DOMContentLoaded",()=>{for(const t of Se)t()}),Se.push(n)):n()},q=()=>document.documentElement.dir==="rtl",Q=n=>{tr(()=>{const t=Ls();if(t){const e=n.NAME,s=t.fn[e];t.fn[e]=n.jQueryInterface,t.fn[e].Constructor=n,t.fn[e].noConflict=()=>(t.fn[e]=s,n.jQueryInterface)}})},B=(n,t=[],e=n)=>typeof n=="function"?n(...t):e,$s=(n,t,e=!0)=>{if(!e){B(n);return}const s=5,i=Zi(t)+s;let r=!1;const o=({target:l})=>{l===t&&(r=!0,t.removeEventListener(Fe,o),B(n))};t.addEventListener(Fe,o),setTimeout(()=>{r||Ns(t)},i)},an=(n,t,e,s)=>{const i=n.length;let r=n.indexOf(t);return r===-1?!e&&s?n[i-1]:n[0]:(r+=e?1:-1,s&&(r=(r+i)%i),n[Math.max(0,Math.min(r,i-1))])},er=/[^.]*(?=\..*)\.|.*/,nr=/\..*/,sr=/::\d+$/,Ne={};let Dn=1;const Is={mouseenter:"mouseover",mouseleave:"mouseout"},ir=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 Ms(n,t){return t&&`${t}::${Dn++}`||n.uidEvent||Dn++}function Ps(n){const t=Ms(n);return n.uidEvent=t,Ne[t]=Ne[t]||{},Ne[t]}function rr(n,t){return function e(s){return ln(s,{delegateTarget:n}),e.oneOff&&u.off(n,s.type,t),t.apply(n,[s])}}function or(n,t,e){return function s(i){const r=n.querySelectorAll(t);for(let{target:o}=i;o&&o!==this;o=o.parentNode)for(const l of r)if(l===o)return ln(i,{delegateTarget:o}),s.oneOff&&u.off(n,i.type,t,e),e.apply(o,[i])}}function xs(n,t,e=null){return Object.values(n).find(s=>s.callable===t&&s.delegationSelector===e)}function Rs(n,t,e){const s=typeof t=="string",i=s?e:t||e;let r=ks(n);return ir.has(r)||(r=n),[s,i,r]}function Ln(n,t,e,s,i){if(typeof t!="string"||!n)return;let[r,o,l]=Rs(t,e,s);t in Is&&(o=(C=>function(b){if(!b.relatedTarget||b.relatedTarget!==b.delegateTarget&&!b.delegateTarget.contains(b.relatedTarget))return C.call(this,b)})(o));const c=Ps(n),d=c[l]||(c[l]={}),h=xs(d,o,r?e:null);if(h){h.oneOff=h.oneOff&&i;return}const E=Ms(o,t.replace(er,"")),v=r?or(n,e,o):rr(n,o);v.delegationSelector=r?e:null,v.callable=o,v.oneOff=i,v.uidEvent=E,d[E]=v,n.addEventListener(l,v,r)}function Ke(n,t,e,s,i){const r=xs(t[e],s,i);r&&(n.removeEventListener(e,r,!!i),delete t[e][r.uidEvent])}function ar(n,t,e,s){const i=t[e]||{};for(const[r,o]of Object.entries(i))r.includes(s)&&Ke(n,t,e,o.callable,o.delegationSelector)}function ks(n){return n=n.replace(nr,""),Is[n]||n}const u={on(n,t,e,s){Ln(n,t,e,s,!1)},one(n,t,e,s){Ln(n,t,e,s,!0)},off(n,t,e,s){if(typeof t!="string"||!n)return;const[i,r,o]=Rs(t,e,s),l=o!==t,c=Ps(n),d=c[o]||{},h=t.startsWith(".");if(typeof r<"u"){if(!Object.keys(d).length)return;Ke(n,c,o,r,i?e:null);return}if(h)for(const E of Object.keys(c))ar(n,c,E,t.slice(1));for(const[E,v]of Object.entries(d)){const m=E.replace(sr,"");(!l||t.includes(m))&&Ke(n,c,o,v.callable,v.delegationSelector)}},trigger(n,t,e){if(typeof t!="string"||!n)return null;const s=Ls(),i=ks(t),r=t!==i;let o=null,l=!0,c=!0,d=!1;r&&s&&(o=s.Event(t,e),s(n).trigger(o),l=!o.isPropagationStopped(),c=!o.isImmediatePropagationStopped(),d=o.isDefaultPrevented());const h=ln(new Event(t,{bubbles:l,cancelable:!0}),e);return d&&h.preventDefault(),c&&n.dispatchEvent(h),h.defaultPrevented&&o&&o.preventDefault(),h}};function ln(n,t={}){for(const[e,s]of Object.entries(t))try{n[e]=s}catch{Object.defineProperty(n,e,{configurable:!0,get(){return s}})}return n}function $n(n){if(n==="true")return!0;if(n==="false")return!1;if(n===Number(n).toString())return Number(n);if(n===""||n==="null")return null;if(typeof n!="string")return n;try{return JSON.parse(decodeURIComponent(n))}catch{return n}}function De(n){return n.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`)}const rt={setDataAttribute(n,t,e){n.setAttribute(`data-bs-${De(t)}`,e)},removeDataAttribute(n,t){n.removeAttribute(`data-bs-${De(t)}`)},getDataAttributes(n){if(!n)return{};const t={},e=Object.keys(n.dataset).filter(s=>s.startsWith("bs")&&!s.startsWith("bsConfig"));for(const s of e){let i=s.replace(/^bs/,"");i=i.charAt(0).toLowerCase()+i.slice(1,i.length),t[i]=$n(n.dataset[s])}return t},getDataAttribute(n,t){return $n(n.getAttribute(`data-bs-${De(t)}`))}};class Xt{static get Default(){return{}}static get DefaultType(){return{}}static get NAME(){throw new Error('You have to implement the static method "NAME", for each component!')}_getConfig(t){return t=this._mergeConfigObj(t),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}_configAfterMerge(t){return t}_mergeConfigObj(t,e){const s=it(e)?rt.getDataAttribute(e,"config"):{};return{...this.constructor.Default,...typeof s=="object"?s:{},...it(e)?rt.getDataAttributes(e):{},...typeof t=="object"?t:{}}}_typeCheckConfig(t,e=this.constructor.DefaultType){for(const[s,i]of Object.entries(e)){const r=t[s],o=it(r)?"element":Qi(r);if(!new RegExp(i).test(o))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${s}" provided type "${o}" but expected type "${i}".`)}}}const lr="5.3.0";class J extends Xt{constructor(t,e){super(),t=ht(t),t&&(this._element=t,this._config=this._getConfig(e),Ce.set(this._element,this.constructor.DATA_KEY,this))}dispose(){Ce.remove(this._element,this.constructor.DATA_KEY),u.off(this._element,this.constructor.EVENT_KEY);for(const t of Object.getOwnPropertyNames(this))this[t]=null}_queueCallback(t,e,s=!0){$s(t,e,s)}_getConfig(t){return t=this._mergeConfigObj(t,this._element),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}static getInstance(t){return Ce.get(ht(t),this.DATA_KEY)}static getOrCreateInstance(t,e={}){return this.getInstance(t)||new this(t,typeof e=="object"?e:null)}static get VERSION(){return lr}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}static eventName(t){return`${t}${this.EVENT_KEY}`}}const Le=n=>{let t=n.getAttribute("data-bs-target");if(!t||t==="#"){let e=n.getAttribute("href");if(!e||!e.includes("#")&&!e.startsWith("."))return null;e.includes("#")&&!e.startsWith("#")&&(e=`#${e.split("#")[1]}`),t=e&&e!=="#"?e.trim():null}return Ss(t)},p={find(n,t=document.documentElement){return[].concat(...Element.prototype.querySelectorAll.call(t,n))},findOne(n,t=document.documentElement){return Element.prototype.querySelector.call(t,n)},children(n,t){return[].concat(...n.children).filter(e=>e.matches(t))},parents(n,t){const e=[];let s=n.parentNode.closest(t);for(;s;)e.push(s),s=s.parentNode.closest(t);return e},prev(n,t){let e=n.previousElementSibling;for(;e;){if(e.matches(t))return[e];e=e.previousElementSibling}return[]},next(n,t){let e=n.nextElementSibling;for(;e;){if(e.matches(t))return[e];e=e.nextElementSibling}return[]},focusableChildren(n){const t=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map(e=>`${e}:not([tabindex^="-"])`).join(",");return this.find(t,n).filter(e=>!ft(e)&&Wt(e))},getSelectorFromElement(n){const t=Le(n);return t&&p.findOne(t)?t:null},getElementFromSelector(n){const t=Le(n);return t?p.findOne(t):null},getMultipleElementsFromSelector(n){const t=Le(n);return t?p.find(t):[]}},Ee=(n,t="hide")=>{const e=`click.dismiss${n.EVENT_KEY}`,s=n.NAME;u.on(document,e,`[data-bs-dismiss="${s}"]`,function(i){if(["A","AREA"].includes(this.tagName)&&i.preventDefault(),ft(this))return;const r=p.getElementFromSelector(this)||this.closest(`.${s}`);n.getOrCreateInstance(r)[t]()})},cr="alert",ur="bs.alert",Vs=`.${ur}`,hr=`close${Vs}`,fr=`closed${Vs}`,dr="fade",pr="show";class ve extends J{static get NAME(){return cr}close(){if(u.trigger(this._element,hr).defaultPrevented)return;this._element.classList.remove(pr);const e=this._element.classList.contains(dr);this._queueCallback(()=>this._destroyElement(),this._element,e)}_destroyElement(){this._element.remove(),u.trigger(this._element,fr),this.dispose()}static jQueryInterface(t){return this.each(function(){const e=ve.getOrCreateInstance(this);if(typeof t=="string"){if(e[t]===void 0||t.startsWith("_")||t==="constructor")throw new TypeError(`No method named "${t}"`);e[t](this)}})}}Ee(ve,"close");Q(ve);const _r="button",mr="bs.button",gr=`.${mr}`,Er=".data-api",vr="active",In='[data-bs-toggle="button"]',br=`click${gr}${Er}`;class be extends J{static get NAME(){return _r}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle(vr))}static jQueryInterface(t){return this.each(function(){const e=be.getOrCreateInstance(this);t==="toggle"&&e[t]()})}}u.on(document,br,In,n=>{n.preventDefault();const t=n.target.closest(In);be.getOrCreateInstance(t).toggle()});Q(be);const yr="swipe",Bt=".bs.swipe",Ar=`touchstart${Bt}`,Tr=`touchmove${Bt}`,wr=`touchend${Bt}`,Or=`pointerdown${Bt}`,Cr=`pointerup${Bt}`,Sr="touch",Nr="pen",Dr="pointer-event",Lr=40,$r={endCallback:null,leftCallback:null,rightCallback:null},Ir={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"};class de extends Xt{constructor(t,e){super(),this._element=t,!(!t||!de.isSupported())&&(this._config=this._getConfig(e),this._deltaX=0,this._supportPointerEvents=!!window.PointerEvent,this._initEvents())}static get Default(){return $r}static get DefaultType(){return Ir}static get NAME(){return yr}dispose(){u.off(this._element,Bt)}_start(t){if(!this._supportPointerEvents){this._deltaX=t.touches[0].clientX;return}this._eventIsPointerPenTouch(t)&&(this._deltaX=t.clientX)}_end(t){this._eventIsPointerPenTouch(t)&&(this._deltaX=t.clientX-this._deltaX),this._handleSwipe(),B(this._config.endCallback)}_move(t){this._deltaX=t.touches&&t.touches.length>1?0:t.touches[0].clientX-this._deltaX}_handleSwipe(){const t=Math.abs(this._deltaX);if(t<=Lr)return;const e=t/this._deltaX;this._deltaX=0,e&&B(e>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(u.on(this._element,Or,t=>this._start(t)),u.on(this._element,Cr,t=>this._end(t)),this._element.classList.add(Dr)):(u.on(this._element,Ar,t=>this._start(t)),u.on(this._element,Tr,t=>this._move(t)),u.on(this._element,wr,t=>this._end(t)))}_eventIsPointerPenTouch(t){return this._supportPointerEvents&&(t.pointerType===Nr||t.pointerType===Sr)}static isSupported(){return"ontouchstart"in document.documentElement||navigator.maxTouchPoints>0}}const Mr="carousel",Pr="bs.carousel",_t=`.${Pr}`,Hs=".data-api",xr="ArrowLeft",Rr="ArrowRight",kr=500,Ft="next",St="prev",Lt="left",ce="right",Vr=`slide${_t}`,$e=`slid${_t}`,Hr=`keydown${_t}`,jr=`mouseenter${_t}`,Wr=`mouseleave${_t}`,Br=`dragstart${_t}`,Fr=`load${_t}${Hs}`,Kr=`click${_t}${Hs}`,js="carousel",ne="active",Yr="slide",Ur="carousel-item-end",zr="carousel-item-start",Gr="carousel-item-next",qr="carousel-item-prev",Ws=".active",Bs=".carousel-item",Xr=Ws+Bs,Qr=".carousel-item img",Jr=".carousel-indicators",Zr="[data-bs-slide], [data-bs-slide-to]",to='[data-bs-ride="carousel"]',eo={[xr]:ce,[Rr]:Lt},no={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},so={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"};class Qt extends J{constructor(t,e){super(t,e),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=p.findOne(Jr,this._element),this._addEventListeners(),this._config.ride===js&&this.cycle()}static get Default(){return no}static get DefaultType(){return so}static get NAME(){return Mr}next(){this._slide(Ft)}nextWhenVisible(){!document.hidden&&Wt(this._element)&&this.next()}prev(){this._slide(St)}pause(){this._isSliding&&Ns(this._element),this._clearInterval()}cycle(){this._clearInterval(),this._updateInterval(),this._interval=setInterval(()=>this.nextWhenVisible(),this._config.interval)}_maybeEnableCycle(){if(this._config.ride){if(this._isSliding){u.one(this._element,$e,()=>this.cycle());return}this.cycle()}}to(t){const e=this._getItems();if(t>e.length-1||t<0)return;if(this._isSliding){u.one(this._element,$e,()=>this.to(t));return}const s=this._getItemIndex(this._getActive());if(s===t)return;const i=t>s?Ft:St;this._slide(i,e[t])}dispose(){this._swipeHelper&&this._swipeHelper.dispose(),super.dispose()}_configAfterMerge(t){return t.defaultInterval=t.interval,t}_addEventListeners(){this._config.keyboard&&u.on(this._element,Hr,t=>this._keydown(t)),this._config.pause==="hover"&&(u.on(this._element,jr,()=>this.pause()),u.on(this._element,Wr,()=>this._maybeEnableCycle())),this._config.touch&&de.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(const s of p.find(Qr,this._element))u.on(s,Br,i=>i.preventDefault());const e={leftCallback:()=>this._slide(this._directionToOrder(Lt)),rightCallback:()=>this._slide(this._directionToOrder(ce)),endCallback:()=>{this._config.pause==="hover"&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout(()=>this._maybeEnableCycle(),kr+this._config.interval))}};this._swipeHelper=new de(this._element,e)}_keydown(t){if(/input|textarea/i.test(t.target.tagName))return;const e=eo[t.key];e&&(t.preventDefault(),this._slide(this._directionToOrder(e)))}_getItemIndex(t){return this._getItems().indexOf(t)}_setActiveIndicatorElement(t){if(!this._indicatorsElement)return;const e=p.findOne(Ws,this._indicatorsElement);e.classList.remove(ne),e.removeAttribute("aria-current");const s=p.findOne(`[data-bs-slide-to="${t}"]`,this._indicatorsElement);s&&(s.classList.add(ne),s.setAttribute("aria-current","true"))}_updateInterval(){const t=this._activeElement||this._getActive();if(!t)return;const e=Number.parseInt(t.getAttribute("data-bs-interval"),10);this._config.interval=e||this._config.defaultInterval}_slide(t,e=null){if(this._isSliding)return;const s=this._getActive(),i=t===Ft,r=e||an(this._getItems(),s,i,this._config.wrap);if(r===s)return;const o=this._getItemIndex(r),l=m=>u.trigger(this._element,m,{relatedTarget:r,direction:this._orderToDirection(t),from:this._getItemIndex(s),to:o});if(l(Vr).defaultPrevented||!s||!r)return;const d=!!this._interval;this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(o),this._activeElement=r;const h=i?zr:Ur,E=i?Gr:qr;r.classList.add(E),qt(r),s.classList.add(h),r.classList.add(h);const v=()=>{r.classList.remove(h,E),r.classList.add(ne),s.classList.remove(ne,E,h),this._isSliding=!1,l($e)};this._queueCallback(v,s,this._isAnimated()),d&&this.cycle()}_isAnimated(){return this._element.classList.contains(Yr)}_getActive(){return p.findOne(Xr,this._element)}_getItems(){return p.find(Bs,this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(t){return q()?t===Lt?St:Ft:t===Lt?Ft:St}_orderToDirection(t){return q()?t===St?Lt:ce:t===St?ce:Lt}static jQueryInterface(t){return this.each(function(){const e=Qt.getOrCreateInstance(this,t);if(typeof t=="number"){e.to(t);return}if(typeof t=="string"){if(e[t]===void 0||t.startsWith("_")||t==="constructor")throw new TypeError(`No method named "${t}"`);e[t]()}})}}u.on(document,Kr,Zr,function(n){const t=p.getElementFromSelector(this);if(!t||!t.classList.contains(js))return;n.preventDefault();const e=Qt.getOrCreateInstance(t),s=this.getAttribute("data-bs-slide-to");if(s){e.to(s),e._maybeEnableCycle();return}if(rt.getDataAttribute(this,"slide")==="next"){e.next(),e._maybeEnableCycle();return}e.prev(),e._maybeEnableCycle()});u.on(window,Fr,()=>{const n=p.find(to);for(const t of n)Qt.getOrCreateInstance(t)});Q(Qt);const io="collapse",ro="bs.collapse",Jt=`.${ro}`,oo=".data-api",ao=`show${Jt}`,lo=`shown${Jt}`,co=`hide${Jt}`,uo=`hidden${Jt}`,ho=`click${Jt}${oo}`,Ie="show",It="collapse",se="collapsing",fo="collapsed",po=`:scope .${It} .${It}`,_o="collapse-horizontal",mo="width",go="height",Eo=".collapse.show, .collapse.collapsing",Ye='[data-bs-toggle="collapse"]',vo={parent:null,toggle:!0},bo={parent:"(null|element)",toggle:"boolean"};class zt extends J{constructor(t,e){super(t,e),this._isTransitioning=!1,this._triggerArray=[];const s=p.find(Ye);for(const i of s){const r=p.getSelectorFromElement(i),o=p.find(r).filter(l=>l===this._element);r!==null&&o.length&&this._triggerArray.push(i)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return vo}static get DefaultType(){return bo}static get NAME(){return io}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let t=[];if(this._config.parent&&(t=this._getFirstLevelChildren(Eo).filter(l=>l!==this._element).map(l=>zt.getOrCreateInstance(l,{toggle:!1}))),t.length&&t[0]._isTransitioning||u.trigger(this._element,ao).defaultPrevented)return;for(const l of t)l.hide();const s=this._getDimension();this._element.classList.remove(It),this._element.classList.add(se),this._element.style[s]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const i=()=>{this._isTransitioning=!1,this._element.classList.remove(se),this._element.classList.add(It,Ie),this._element.style[s]="",u.trigger(this._element,lo)},o=`scroll${s[0].toUpperCase()+s.slice(1)}`;this._queueCallback(i,this._element,!0),this._element.style[s]=`${this._element[o]}px`}hide(){if(this._isTransitioning||!this._isShown()||u.trigger(this._element,co).defaultPrevented)return;const e=this._getDimension();this._element.style[e]=`${this._element.getBoundingClientRect()[e]}px`,qt(this._element),this._element.classList.add(se),this._element.classList.remove(It,Ie);for(const i of this._triggerArray){const r=p.getElementFromSelector(i);r&&!this._isShown(r)&&this._addAriaAndCollapsedClass([i],!1)}this._isTransitioning=!0;const s=()=>{this._isTransitioning=!1,this._element.classList.remove(se),this._element.classList.add(It),u.trigger(this._element,uo)};this._element.style[e]="",this._queueCallback(s,this._element,!0)}_isShown(t=this._element){return t.classList.contains(Ie)}_configAfterMerge(t){return t.toggle=!!t.toggle,t.parent=ht(t.parent),t}_getDimension(){return this._element.classList.contains(_o)?mo:go}_initializeChildren(){if(!this._config.parent)return;const t=this._getFirstLevelChildren(Ye);for(const e of t){const s=p.getElementFromSelector(e);s&&this._addAriaAndCollapsedClass([e],this._isShown(s))}}_getFirstLevelChildren(t){const e=p.find(po,this._config.parent);return p.find(t,this._config.parent).filter(s=>!e.includes(s))}_addAriaAndCollapsedClass(t,e){if(t.length)for(const s of t)s.classList.toggle(fo,!e),s.setAttribute("aria-expanded",e)}static jQueryInterface(t){const e={};return typeof t=="string"&&/show|hide/.test(t)&&(e.toggle=!1),this.each(function(){const s=zt.getOrCreateInstance(this,e);if(typeof t=="string"){if(typeof s[t]>"u")throw new TypeError(`No method named "${t}"`);s[t]()}})}}u.on(document,ho,Ye,function(n){(n.target.tagName==="A"||n.delegateTarget&&n.delegateTarget.tagName==="A")&&n.preventDefault();for(const t of p.getMultipleElementsFromSelector(this))zt.getOrCreateInstance(t,{toggle:!1}).toggle()});Q(zt);const Mn="dropdown",yo="bs.dropdown",wt=`.${yo}`,cn=".data-api",Ao="Escape",Pn="Tab",To="ArrowUp",xn="ArrowDown",wo=2,Oo=`hide${wt}`,Co=`hidden${wt}`,So=`show${wt}`,No=`shown${wt}`,Fs=`click${wt}${cn}`,Ks=`keydown${wt}${cn}`,Do=`keyup${wt}${cn}`,$t="show",Lo="dropup",$o="dropend",Io="dropstart",Mo="dropup-center",Po="dropdown-center",vt='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',xo=`${vt}.${$t}`,ue=".dropdown-menu",Ro=".navbar",ko=".navbar-nav",Vo=".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",Ho=q()?"top-end":"top-start",jo=q()?"top-start":"top-end",Wo=q()?"bottom-end":"bottom-start",Bo=q()?"bottom-start":"bottom-end",Fo=q()?"left-start":"right-start",Ko=q()?"right-start":"left-start",Yo="top",Uo="bottom",zo={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},Go={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"};class nt extends J{constructor(t,e){super(t,e),this._popper=null,this._parent=this._element.parentNode,this._menu=p.next(this._element,ue)[0]||p.prev(this._element,ue)[0]||p.findOne(ue,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return zo}static get DefaultType(){return Go}static get NAME(){return Mn}toggle(){return this._isShown()?this.hide():this.show()}show(){if(ft(this._element)||this._isShown())return;const t={relatedTarget:this._element};if(!u.trigger(this._element,So,t).defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest(ko))for(const s of[].concat(...document.body.children))u.on(s,"mouseover",fe);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add($t),this._element.classList.add($t),u.trigger(this._element,No,t)}}hide(){if(ft(this._element)||!this._isShown())return;const t={relatedTarget:this._element};this._completeHide(t)}dispose(){this._popper&&this._popper.destroy(),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_completeHide(t){if(!u.trigger(this._element,Oo,t).defaultPrevented){if("ontouchstart"in document.documentElement)for(const s of[].concat(...document.body.children))u.off(s,"mouseover",fe);this._popper&&this._popper.destroy(),this._menu.classList.remove($t),this._element.classList.remove($t),this._element.setAttribute("aria-expanded","false"),rt.removeDataAttribute(this._menu,"popper"),u.trigger(this._element,Co,t)}}_getConfig(t){if(t=super._getConfig(t),typeof t.reference=="object"&&!it(t.reference)&&typeof t.reference.getBoundingClientRect!="function")throw new TypeError(`${Mn.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return t}_createPopper(){if(typeof Cs>"u")throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)");let t=this._element;this._config.reference==="parent"?t=this._parent:it(this._config.reference)?t=ht(this._config.reference):typeof this._config.reference=="object"&&(t=this._config.reference);const e=this._getPopperConfig();this._popper=on(t,this._menu,e)}_isShown(){return this._menu.classList.contains($t)}_getPlacement(){const t=this._parent;if(t.classList.contains($o))return Fo;if(t.classList.contains(Io))return Ko;if(t.classList.contains(Mo))return Yo;if(t.classList.contains(Po))return Uo;const e=getComputedStyle(this._menu).getPropertyValue("--bs-position").trim()==="end";return t.classList.contains(Lo)?e?jo:Ho:e?Bo:Wo}_detectNavbar(){return this._element.closest(Ro)!==null}_getOffset(){const{offset:t}=this._config;return typeof t=="string"?t.split(",").map(e=>Number.parseInt(e,10)):typeof t=="function"?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(this._inNavbar||this._config.display==="static")&&(rt.setDataAttribute(this._menu,"popper","static"),t.modifiers=[{name:"applyStyles",enabled:!1}]),{...t,...B(this._config.popperConfig,[t])}}_selectMenuItem({key:t,target:e}){const s=p.find(Vo,this._menu).filter(i=>Wt(i));s.length&&an(s,e,t===xn,!s.includes(e)).focus()}static jQueryInterface(t){return this.each(function(){const e=nt.getOrCreateInstance(this,t);if(typeof t=="string"){if(typeof e[t]>"u")throw new TypeError(`No method named "${t}"`);e[t]()}})}static clearMenus(t){if(t.button===wo||t.type==="keyup"&&t.key!==Pn)return;const e=p.find(xo);for(const s of e){const i=nt.getInstance(s);if(!i||i._config.autoClose===!1)continue;const r=t.composedPath(),o=r.includes(i._menu);if(r.includes(i._element)||i._config.autoClose==="inside"&&!o||i._config.autoClose==="outside"&&o||i._menu.contains(t.target)&&(t.type==="keyup"&&t.key===Pn||/input|select|option|textarea|form/i.test(t.target.tagName)))continue;const l={relatedTarget:i._element};t.type==="click"&&(l.clickEvent=t),i._completeHide(l)}}static dataApiKeydownHandler(t){const e=/input|textarea/i.test(t.target.tagName),s=t.key===Ao,i=[To,xn].includes(t.key);if(!i&&!s||e&&!s)return;t.preventDefault();const r=this.matches(vt)?this:p.prev(this,vt)[0]||p.next(this,vt)[0]||p.findOne(vt,t.delegateTarget.parentNode),o=nt.getOrCreateInstance(r);if(i){t.stopPropagation(),o.show(),o._selectMenuItem(t);return}o._isShown()&&(t.stopPropagation(),o.hide(),r.focus())}}u.on(document,Ks,vt,nt.dataApiKeydownHandler);u.on(document,Ks,ue,nt.dataApiKeydownHandler);u.on(document,Fs,nt.clearMenus);u.on(document,Do,nt.clearMenus);u.on(document,Fs,vt,function(n){n.preventDefault(),nt.getOrCreateInstance(this).toggle()});Q(nt);const Ys="backdrop",qo="fade",Rn="show",kn=`mousedown.bs.${Ys}`,Xo={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},Qo={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};class Us extends Xt{constructor(t){super(),this._config=this._getConfig(t),this._isAppended=!1,this._element=null}static get Default(){return Xo}static get DefaultType(){return Qo}static get NAME(){return Ys}show(t){if(!this._config.isVisible){B(t);return}this._append();const e=this._getElement();this._config.isAnimated&&qt(e),e.classList.add(Rn),this._emulateAnimation(()=>{B(t)})}hide(t){if(!this._config.isVisible){B(t);return}this._getElement().classList.remove(Rn),this._emulateAnimation(()=>{this.dispose(),B(t)})}dispose(){this._isAppended&&(u.off(this._element,kn),this._element.remove(),this._isAppended=!1)}_getElement(){if(!this._element){const t=document.createElement("div");t.className=this._config.className,this._config.isAnimated&&t.classList.add(qo),this._element=t}return this._element}_configAfterMerge(t){return t.rootElement=ht(t.rootElement),t}_append(){if(this._isAppended)return;const t=this._getElement();this._config.rootElement.append(t),u.on(t,kn,()=>{B(this._config.clickCallback)}),this._isAppended=!0}_emulateAnimation(t){$s(t,this._getElement(),this._config.isAnimated)}}const Jo="focustrap",Zo="bs.focustrap",pe=`.${Zo}`,ta=`focusin${pe}`,ea=`keydown.tab${pe}`,na="Tab",sa="forward",Vn="backward",ia={autofocus:!0,trapElement:null},ra={autofocus:"boolean",trapElement:"element"};class zs extends Xt{constructor(t){super(),this._config=this._getConfig(t),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return ia}static get DefaultType(){return ra}static get NAME(){return Jo}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),u.off(document,pe),u.on(document,ta,t=>this._handleFocusin(t)),u.on(document,ea,t=>this._handleKeydown(t)),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,u.off(document,pe))}_handleFocusin(t){const{trapElement:e}=this._config;if(t.target===document||t.target===e||e.contains(t.target))return;const s=p.focusableChildren(e);s.length===0?e.focus():this._lastTabNavDirection===Vn?s[s.length-1].focus():s[0].focus()}_handleKeydown(t){t.key===na&&(this._lastTabNavDirection=t.shiftKey?Vn:sa)}}const Hn=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",jn=".sticky-top",ie="padding-right",Wn="margin-right";class Ue{constructor(){this._element=document.body}getWidth(){const t=document.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}hide(){const t=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,ie,e=>e+t),this._setElementAttributes(Hn,ie,e=>e+t),this._setElementAttributes(jn,Wn,e=>e-t)}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,ie),this._resetElementAttributes(Hn,ie),this._resetElementAttributes(jn,Wn)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(t,e,s){const i=this.getWidth(),r=o=>{if(o!==this._element&&window.innerWidth>o.clientWidth+i)return;this._saveInitialAttribute(o,e);const l=window.getComputedStyle(o).getPropertyValue(e);o.style.setProperty(e,`${s(Number.parseFloat(l))}px`)};this._applyManipulationCallback(t,r)}_saveInitialAttribute(t,e){const s=t.style.getPropertyValue(e);s&&rt.setDataAttribute(t,e,s)}_resetElementAttributes(t,e){const s=i=>{const r=rt.getDataAttribute(i,e);if(r===null){i.style.removeProperty(e);return}rt.removeDataAttribute(i,e),i.style.setProperty(e,r)};this._applyManipulationCallback(t,s)}_applyManipulationCallback(t,e){if(it(t)){e(t);return}for(const s of p.find(t,this._element))e(s)}}const oa="modal",aa="bs.modal",X=`.${aa}`,la=".data-api",ca="Escape",ua=`hide${X}`,ha=`hidePrevented${X}`,Gs=`hidden${X}`,qs=`show${X}`,fa=`shown${X}`,da=`resize${X}`,pa=`click.dismiss${X}`,_a=`mousedown.dismiss${X}`,ma=`keydown.dismiss${X}`,ga=`click${X}${la}`,Bn="modal-open",Ea="fade",Fn="show",Me="modal-static",va=".modal.show",ba=".modal-dialog",ya=".modal-body",Aa='[data-bs-toggle="modal"]',Ta={backdrop:!0,focus:!0,keyboard:!0},wa={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"};class Vt extends J{constructor(t,e){super(t,e),this._dialog=p.findOne(ba,this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new Ue,this._addEventListeners()}static get Default(){return Ta}static get DefaultType(){return wa}static get NAME(){return oa}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){this._isShown||this._isTransitioning||u.trigger(this._element,qs,{relatedTarget:t}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(Bn),this._adjustDialog(),this._backdrop.show(()=>this._showElement(t)))}hide(){!this._isShown||this._isTransitioning||u.trigger(this._element,ua).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(Fn),this._queueCallback(()=>this._hideModal(),this._element,this._isAnimated()))}dispose(){u.off(window,X),u.off(this._dialog,X),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new Us({isVisible:!!this._config.backdrop,isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new zs({trapElement:this._element})}_showElement(t){document.body.contains(this._element)||document.body.append(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.scrollTop=0;const e=p.findOne(ya,this._dialog);e&&(e.scrollTop=0),qt(this._element),this._element.classList.add(Fn);const s=()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,u.trigger(this._element,fa,{relatedTarget:t})};this._queueCallback(s,this._dialog,this._isAnimated())}_addEventListeners(){u.on(this._element,ma,t=>{if(t.key===ca){if(this._config.keyboard){this.hide();return}this._triggerBackdropTransition()}}),u.on(window,da,()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()}),u.on(this._element,_a,t=>{u.one(this._element,pa,e=>{if(!(this._element!==t.target||this._element!==e.target)){if(this._config.backdrop==="static"){this._triggerBackdropTransition();return}this._config.backdrop&&this.hide()}})})}_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(Bn),this._resetAdjustments(),this._scrollBar.reset(),u.trigger(this._element,Gs)})}_isAnimated(){return this._element.classList.contains(Ea)}_triggerBackdropTransition(){if(u.trigger(this._element,ha).defaultPrevented)return;const e=this._element.scrollHeight>document.documentElement.clientHeight,s=this._element.style.overflowY;s==="hidden"||this._element.classList.contains(Me)||(e||(this._element.style.overflowY="hidden"),this._element.classList.add(Me),this._queueCallback(()=>{this._element.classList.remove(Me),this._queueCallback(()=>{this._element.style.overflowY=s},this._dialog)},this._dialog),this._element.focus())}_adjustDialog(){const t=this._element.scrollHeight>document.documentElement.clientHeight,e=this._scrollBar.getWidth(),s=e>0;if(s&&!t){const i=q()?"paddingLeft":"paddingRight";this._element.style[i]=`${e}px`}if(!s&&t){const i=q()?"paddingRight":"paddingLeft";this._element.style[i]=`${e}px`}}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(t,e){return this.each(function(){const s=Vt.getOrCreateInstance(this,t);if(typeof t=="string"){if(typeof s[t]>"u")throw new TypeError(`No method named "${t}"`);s[t](e)}})}}u.on(document,ga,Aa,function(n){const t=p.getElementFromSelector(this);["A","AREA"].includes(this.tagName)&&n.preventDefault(),u.one(t,qs,i=>{i.defaultPrevented||u.one(t,Gs,()=>{Wt(this)&&this.focus()})});const e=p.findOne(va);e&&Vt.getInstance(e).hide(),Vt.getOrCreateInstance(t).toggle(this)});Ee(Vt);Q(Vt);const Oa="offcanvas",Ca="bs.offcanvas",at=`.${Ca}`,Xs=".data-api",Sa=`load${at}${Xs}`,Na="Escape",Kn="show",Yn="showing",Un="hiding",Da="offcanvas-backdrop",Qs=".offcanvas.show",La=`show${at}`,$a=`shown${at}`,Ia=`hide${at}`,zn=`hidePrevented${at}`,Js=`hidden${at}`,Ma=`resize${at}`,Pa=`click${at}${Xs}`,xa=`keydown.dismiss${at}`,Ra='[data-bs-toggle="offcanvas"]',ka={backdrop:!0,keyboard:!0,scroll:!1},Va={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"};class dt extends J{constructor(t,e){super(t,e),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return ka}static get DefaultType(){return Va}static get NAME(){return Oa}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){if(this._isShown||u.trigger(this._element,La,{relatedTarget:t}).defaultPrevented)return;this._isShown=!0,this._backdrop.show(),this._config.scroll||new Ue().hide(),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(Yn);const s=()=>{(!this._config.scroll||this._config.backdrop)&&this._focustrap.activate(),this._element.classList.add(Kn),this._element.classList.remove(Yn),u.trigger(this._element,$a,{relatedTarget:t})};this._queueCallback(s,this._element,!0)}hide(){if(!this._isShown||u.trigger(this._element,Ia).defaultPrevented)return;this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add(Un),this._backdrop.hide();const e=()=>{this._element.classList.remove(Kn,Un),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||new Ue().reset(),u.trigger(this._element,Js)};this._queueCallback(e,this._element,!0)}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){const t=()=>{if(this._config.backdrop==="static"){u.trigger(this._element,zn);return}this.hide()},e=!!this._config.backdrop;return new Us({className:Da,isVisible:e,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:e?t:null})}_initializeFocusTrap(){return new zs({trapElement:this._element})}_addEventListeners(){u.on(this._element,xa,t=>{if(t.key===Na){if(this._config.keyboard){this.hide();return}u.trigger(this._element,zn)}})}static jQueryInterface(t){return this.each(function(){const e=dt.getOrCreateInstance(this,t);if(typeof t=="string"){if(e[t]===void 0||t.startsWith("_")||t==="constructor")throw new TypeError(`No method named "${t}"`);e[t](this)}})}}u.on(document,Pa,Ra,function(n){const t=p.getElementFromSelector(this);if(["A","AREA"].includes(this.tagName)&&n.preventDefault(),ft(this))return;u.one(t,Js,()=>{Wt(this)&&this.focus()});const e=p.findOne(Qs);e&&e!==t&&dt.getInstance(e).hide(),dt.getOrCreateInstance(t).toggle(this)});u.on(window,Sa,()=>{for(const n of p.find(Qs))dt.getOrCreateInstance(n).show()});u.on(window,Ma,()=>{for(const n of p.find("[aria-modal][class*=show][class*=offcanvas-]"))getComputedStyle(n).position!=="fixed"&&dt.getOrCreateInstance(n).hide()});Ee(dt);Q(dt);const Ha=/^aria-[\w-]*$/i,Zs={"*":["class","dir","id","lang","role",Ha],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:[]},ja=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),Wa=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,Ba=(n,t)=>{const e=n.nodeName.toLowerCase();return t.includes(e)?ja.has(e)?!!Wa.test(n.nodeValue):!0:t.filter(s=>s instanceof RegExp).some(s=>s.test(e))};function Fa(n,t,e){if(!n.length)return n;if(e&&typeof e=="function")return e(n);const i=new window.DOMParser().parseFromString(n,"text/html"),r=[].concat(...i.body.querySelectorAll("*"));for(const o of r){const l=o.nodeName.toLowerCase();if(!Object.keys(t).includes(l)){o.remove();continue}const c=[].concat(...o.attributes),d=[].concat(t["*"]||[],t[l]||[]);for(const h of c)Ba(h,d)||o.removeAttribute(h.nodeName)}return i.body.innerHTML}const Ka="TemplateFactory",Ya={allowList:Zs,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"
"},Ua={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},za={entry:"(string|element|function|null)",selector:"(string|element)"};class Ga extends Xt{constructor(t){super(),this._config=this._getConfig(t)}static get Default(){return Ya}static get DefaultType(){return Ua}static get NAME(){return Ka}getContent(){return Object.values(this._config.content).map(t=>this._resolvePossibleFunction(t)).filter(Boolean)}hasContent(){return this.getContent().length>0}changeContent(t){return this._checkContent(t),this._config.content={...this._config.content,...t},this}toHtml(){const t=document.createElement("div");t.innerHTML=this._maybeSanitize(this._config.template);for(const[i,r]of Object.entries(this._config.content))this._setContent(t,r,i);const e=t.children[0],s=this._resolvePossibleFunction(this._config.extraClass);return s&&e.classList.add(...s.split(" ")),e}_typeCheckConfig(t){super._typeCheckConfig(t),this._checkContent(t.content)}_checkContent(t){for(const[e,s]of Object.entries(t))super._typeCheckConfig({selector:e,entry:s},za)}_setContent(t,e,s){const i=p.findOne(s,t);if(i){if(e=this._resolvePossibleFunction(e),!e){i.remove();return}if(it(e)){this._putElementInTemplate(ht(e),i);return}if(this._config.html){i.innerHTML=this._maybeSanitize(e);return}i.textContent=e}}_maybeSanitize(t){return this._config.sanitize?Fa(t,this._config.allowList,this._config.sanitizeFn):t}_resolvePossibleFunction(t){return B(t,[this])}_putElementInTemplate(t,e){if(this._config.html){e.innerHTML="",e.append(t);return}e.textContent=t.textContent}}const qa="tooltip",Xa=new Set(["sanitize","allowList","sanitizeFn"]),Pe="fade",Qa="modal",re="show",Ja=".tooltip-inner",Gn=`.${Qa}`,qn="hide.bs.modal",Kt="hover",xe="focus",Za="click",tl="manual",el="hide",nl="hidden",sl="show",il="shown",rl="inserted",ol="click",al="focusin",ll="focusout",cl="mouseenter",ul="mouseleave",hl={AUTO:"auto",TOP:"top",RIGHT:q()?"left":"right",BOTTOM:"bottom",LEFT:q()?"right":"left"},fl={allowList:Zs,animation:!0,boundary:"clippingParents",container:!1,customClass:"",delay:0,fallbackPlacements:["top","right","bottom","left"],html:!1,offset:[0,6],placement:"top",popperConfig:null,sanitize:!0,sanitizeFn:null,selector:!1,template:'',title:"",trigger:"hover focus"},dl={allowList:"object",animation:"boolean",boundary:"(string|element)",container:"(string|element|boolean)",customClass:"(string|function)",delay:"(number|object)",fallbackPlacements:"array",html:"boolean",offset:"(array|string|function)",placement:"(string|function)",popperConfig:"(null|object|function)",sanitize:"boolean",sanitizeFn:"(null|function)",selector:"(string|boolean)",template:"string",title:"(string|element|function)",trigger:"string"};class Ot extends J{constructor(t,e){if(typeof Cs>"u")throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)");super(t,e),this._isEnabled=!0,this._timeout=0,this._isHovered=null,this._activeTrigger={},this._popper=null,this._templateFactory=null,this._newContent=null,this.tip=null,this._setListeners(),this._config.selector||this._fixTitle()}static get Default(){return fl}static get DefaultType(){return dl}static get NAME(){return qa}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(){if(this._isEnabled){if(this._activeTrigger.click=!this._activeTrigger.click,this._isShown()){this._leave();return}this._enter()}}dispose(){clearTimeout(this._timeout),u.off(this._element.closest(Gn),qn,this._hideModalHandler),this._element.getAttribute("data-bs-original-title")&&this._element.setAttribute("title",this._element.getAttribute("data-bs-original-title")),this._disposePopper(),super.dispose()}show(){if(this._element.style.display==="none")throw new Error("Please use show on visible elements");if(!(this._isWithContent()&&this._isEnabled))return;const t=u.trigger(this._element,this.constructor.eventName(sl)),s=(Ds(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(t.defaultPrevented||!s)return;this._disposePopper();const i=this._getTipElement();this._element.setAttribute("aria-describedby",i.getAttribute("id"));const{container:r}=this._config;if(this._element.ownerDocument.documentElement.contains(this.tip)||(r.append(i),u.trigger(this._element,this.constructor.eventName(rl))),this._popper=this._createPopper(i),i.classList.add(re),"ontouchstart"in document.documentElement)for(const l of[].concat(...document.body.children))u.on(l,"mouseover",fe);const o=()=>{u.trigger(this._element,this.constructor.eventName(il)),this._isHovered===!1&&this._leave(),this._isHovered=!1};this._queueCallback(o,this.tip,this._isAnimated())}hide(){if(!this._isShown()||u.trigger(this._element,this.constructor.eventName(el)).defaultPrevented)return;if(this._getTipElement().classList.remove(re),"ontouchstart"in document.documentElement)for(const i of[].concat(...document.body.children))u.off(i,"mouseover",fe);this._activeTrigger[Za]=!1,this._activeTrigger[xe]=!1,this._activeTrigger[Kt]=!1,this._isHovered=null;const s=()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute("aria-describedby"),u.trigger(this._element,this.constructor.eventName(nl)))};this._queueCallback(s,this.tip,this._isAnimated())}update(){this._popper&&this._popper.update()}_isWithContent(){return!!this._getTitle()}_getTipElement(){return this.tip||(this.tip=this._createTipElement(this._newContent||this._getContentForTemplate())),this.tip}_createTipElement(t){const e=this._getTemplateFactory(t).toHtml();if(!e)return null;e.classList.remove(Pe,re),e.classList.add(`bs-${this.constructor.NAME}-auto`);const s=Ji(this.constructor.NAME).toString();return e.setAttribute("id",s),this._isAnimated()&&e.classList.add(Pe),e}setContent(t){this._newContent=t,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(t){return this._templateFactory?this._templateFactory.changeContent(t):this._templateFactory=new Ga({...this._config,content:t,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{[Ja]:this._getTitle()}}_getTitle(){return this._resolvePossibleFunction(this._config.title)||this._element.getAttribute("data-bs-original-title")}_initializeOnDelegatedTarget(t){return this.constructor.getOrCreateInstance(t.delegateTarget,this._getDelegateConfig())}_isAnimated(){return this._config.animation||this.tip&&this.tip.classList.contains(Pe)}_isShown(){return this.tip&&this.tip.classList.contains(re)}_createPopper(t){const e=B(this._config.placement,[this,t,this._element]),s=hl[e.toUpperCase()];return on(this._element,t,this._getPopperConfig(s))}_getOffset(){const{offset:t}=this._config;return typeof t=="string"?t.split(",").map(e=>Number.parseInt(e,10)):typeof t=="function"?e=>t(e,this._element):t}_resolvePossibleFunction(t){return B(t,[this._element])}_getPopperConfig(t){const e={placement:t,modifiers:[{name:"flip",options:{fallbackPlacements:this._config.fallbackPlacements}},{name:"offset",options:{offset:this._getOffset()}},{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"arrow",options:{element:`.${this.constructor.NAME}-arrow`}},{name:"preSetPlacement",enabled:!0,phase:"beforeMain",fn:s=>{this._getTipElement().setAttribute("data-popper-placement",s.state.placement)}}]};return{...e,...B(this._config.popperConfig,[e])}}_setListeners(){const t=this._config.trigger.split(" ");for(const e of t)if(e==="click")u.on(this._element,this.constructor.eventName(ol),this._config.selector,s=>{this._initializeOnDelegatedTarget(s).toggle()});else if(e!==tl){const s=e===Kt?this.constructor.eventName(cl):this.constructor.eventName(al),i=e===Kt?this.constructor.eventName(ul):this.constructor.eventName(ll);u.on(this._element,s,this._config.selector,r=>{const o=this._initializeOnDelegatedTarget(r);o._activeTrigger[r.type==="focusin"?xe:Kt]=!0,o._enter()}),u.on(this._element,i,this._config.selector,r=>{const o=this._initializeOnDelegatedTarget(r);o._activeTrigger[r.type==="focusout"?xe:Kt]=o._element.contains(r.relatedTarget),o._leave()})}this._hideModalHandler=()=>{this._element&&this.hide()},u.on(this._element.closest(Gn),qn,this._hideModalHandler)}_fixTitle(){const t=this._element.getAttribute("title");t&&(!this._element.getAttribute("aria-label")&&!this._element.textContent.trim()&&this._element.setAttribute("aria-label",t),this._element.setAttribute("data-bs-original-title",t),this._element.removeAttribute("title"))}_enter(){if(this._isShown()||this._isHovered){this._isHovered=!0;return}this._isHovered=!0,this._setTimeout(()=>{this._isHovered&&this.show()},this._config.delay.show)}_leave(){this._isWithActiveTrigger()||(this._isHovered=!1,this._setTimeout(()=>{this._isHovered||this.hide()},this._config.delay.hide))}_setTimeout(t,e){clearTimeout(this._timeout),this._timeout=setTimeout(t,e)}_isWithActiveTrigger(){return Object.values(this._activeTrigger).includes(!0)}_getConfig(t){const e=rt.getDataAttributes(this._element);for(const s of Object.keys(e))Xa.has(s)&&delete e[s];return t={...e,...typeof t=="object"&&t?t:{}},t=this._mergeConfigObj(t),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}_configAfterMerge(t){return t.container=t.container===!1?document.body:ht(t.container),typeof t.delay=="number"&&(t.delay={show:t.delay,hide:t.delay}),typeof t.title=="number"&&(t.title=t.title.toString()),typeof t.content=="number"&&(t.content=t.content.toString()),t}_getDelegateConfig(){const t={};for(const[e,s]of Object.entries(this._config))this.constructor.Default[e]!==s&&(t[e]=s);return t.selector=!1,t.trigger="manual",t}_disposePopper(){this._popper&&(this._popper.destroy(),this._popper=null),this.tip&&(this.tip.remove(),this.tip=null)}static jQueryInterface(t){return this.each(function(){const e=Ot.getOrCreateInstance(this,t);if(typeof t=="string"){if(typeof e[t]>"u")throw new TypeError(`No method named "${t}"`);e[t]()}})}}Q(Ot);const pl="popover",_l=".popover-header",ml=".popover-body",gl={...Ot.Default,content:"",offset:[0,8],placement:"right",template:'',trigger:"click"},El={...Ot.DefaultType,content:"(null|string|element|function)"};class un extends Ot{static get Default(){return gl}static get DefaultType(){return El}static get NAME(){return pl}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{[_l]:this._getTitle(),[ml]:this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(t){return this.each(function(){const e=un.getOrCreateInstance(this,t);if(typeof t=="string"){if(typeof e[t]>"u")throw new TypeError(`No method named "${t}"`);e[t]()}})}}Q(un);const vl="scrollspy",bl="bs.scrollspy",hn=`.${bl}`,yl=".data-api",Al=`activate${hn}`,Xn=`click${hn}`,Tl=`load${hn}${yl}`,wl="dropdown-item",Nt="active",Ol='[data-bs-spy="scroll"]',Re="[href]",Cl=".nav, .list-group",Qn=".nav-link",Sl=".nav-item",Nl=".list-group-item",Dl=`${Qn}, ${Sl} > ${Qn}, ${Nl}`,Ll=".dropdown",$l=".dropdown-toggle",Il={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null,threshold:[.1,.5,1]},Ml={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element",threshold:"array"};class ye extends J{constructor(t,e){super(t,e),this._targetLinks=new Map,this._observableSections=new Map,this._rootElement=getComputedStyle(this._element).overflowY==="visible"?null:this._element,this._activeTarget=null,this._observer=null,this._previousScrollData={visibleEntryTop:0,parentScrollTop:0},this.refresh()}static get Default(){return Il}static get DefaultType(){return Ml}static get NAME(){return vl}refresh(){this._initializeTargetsAndObservables(),this._maybeEnableSmoothScroll(),this._observer?this._observer.disconnect():this._observer=this._getNewObserver();for(const t of this._observableSections.values())this._observer.observe(t)}dispose(){this._observer.disconnect(),super.dispose()}_configAfterMerge(t){return t.target=ht(t.target)||document.body,t.rootMargin=t.offset?`${t.offset}px 0px -30%`:t.rootMargin,typeof t.threshold=="string"&&(t.threshold=t.threshold.split(",").map(e=>Number.parseFloat(e))),t}_maybeEnableSmoothScroll(){this._config.smoothScroll&&(u.off(this._config.target,Xn),u.on(this._config.target,Xn,Re,t=>{const e=this._observableSections.get(t.target.hash);if(e){t.preventDefault();const s=this._rootElement||window,i=e.offsetTop-this._element.offsetTop;if(s.scrollTo){s.scrollTo({top:i,behavior:"smooth"});return}s.scrollTop=i}}))}_getNewObserver(){const t={root:this._rootElement,threshold:this._config.threshold,rootMargin:this._config.rootMargin};return new IntersectionObserver(e=>this._observerCallback(e),t)}_observerCallback(t){const e=o=>this._targetLinks.get(`#${o.target.id}`),s=o=>{this._previousScrollData.visibleEntryTop=o.target.offsetTop,this._process(e(o))},i=(this._rootElement||document.documentElement).scrollTop,r=i>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=i;for(const o of t){if(!o.isIntersecting){this._activeTarget=null,this._clearActiveClass(e(o));continue}const l=o.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(r&&l){if(s(o),!i)return;continue}!r&&!l&&s(o)}}_initializeTargetsAndObservables(){this._targetLinks=new Map,this._observableSections=new Map;const t=p.find(Re,this._config.target);for(const e of t){if(!e.hash||ft(e))continue;const s=p.findOne(decodeURI(e.hash),this._element);Wt(s)&&(this._targetLinks.set(decodeURI(e.hash),e),this._observableSections.set(e.hash,s))}}_process(t){this._activeTarget!==t&&(this._clearActiveClass(this._config.target),this._activeTarget=t,t.classList.add(Nt),this._activateParents(t),u.trigger(this._element,Al,{relatedTarget:t}))}_activateParents(t){if(t.classList.contains(wl)){p.findOne($l,t.closest(Ll)).classList.add(Nt);return}for(const e of p.parents(t,Cl))for(const s of p.prev(e,Dl))s.classList.add(Nt)}_clearActiveClass(t){t.classList.remove(Nt);const e=p.find(`${Re}.${Nt}`,t);for(const s of e)s.classList.remove(Nt)}static jQueryInterface(t){return this.each(function(){const e=ye.getOrCreateInstance(this,t);if(typeof t=="string"){if(e[t]===void 0||t.startsWith("_")||t==="constructor")throw new TypeError(`No method named "${t}"`);e[t]()}})}}u.on(window,Tl,()=>{for(const n of p.find(Ol))ye.getOrCreateInstance(n)});Q(ye);const Pl="tab",xl="bs.tab",Ct=`.${xl}`,Rl=`hide${Ct}`,kl=`hidden${Ct}`,Vl=`show${Ct}`,Hl=`shown${Ct}`,jl=`click${Ct}`,Wl=`keydown${Ct}`,Bl=`load${Ct}`,Fl="ArrowLeft",Jn="ArrowRight",Kl="ArrowUp",Zn="ArrowDown",bt="active",ts="fade",ke="show",Yl="dropdown",Ul=".dropdown-toggle",zl=".dropdown-menu",Ve=":not(.dropdown-toggle)",Gl='.list-group, .nav, [role="tablist"]',ql=".nav-item, .list-group-item",Xl=`.nav-link${Ve}, .list-group-item${Ve}, [role="tab"]${Ve}`,ti='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',He=`${Xl}, ${ti}`,Ql=`.${bt}[data-bs-toggle="tab"], .${bt}[data-bs-toggle="pill"], .${bt}[data-bs-toggle="list"]`;class Ht extends J{constructor(t){super(t),this._parent=this._element.closest(Gl),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),u.on(this._element,Wl,e=>this._keydown(e)))}static get NAME(){return Pl}show(){const t=this._element;if(this._elemIsActive(t))return;const e=this._getActiveElem(),s=e?u.trigger(e,Rl,{relatedTarget:t}):null;u.trigger(t,Vl,{relatedTarget:e}).defaultPrevented||s&&s.defaultPrevented||(this._deactivate(e,t),this._activate(t,e))}_activate(t,e){if(!t)return;t.classList.add(bt),this._activate(p.getElementFromSelector(t));const s=()=>{if(t.getAttribute("role")!=="tab"){t.classList.add(ke);return}t.removeAttribute("tabindex"),t.setAttribute("aria-selected",!0),this._toggleDropDown(t,!0),u.trigger(t,Hl,{relatedTarget:e})};this._queueCallback(s,t,t.classList.contains(ts))}_deactivate(t,e){if(!t)return;t.classList.remove(bt),t.blur(),this._deactivate(p.getElementFromSelector(t));const s=()=>{if(t.getAttribute("role")!=="tab"){t.classList.remove(ke);return}t.setAttribute("aria-selected",!1),t.setAttribute("tabindex","-1"),this._toggleDropDown(t,!1),u.trigger(t,kl,{relatedTarget:e})};this._queueCallback(s,t,t.classList.contains(ts))}_keydown(t){if(![Fl,Jn,Kl,Zn].includes(t.key))return;t.stopPropagation(),t.preventDefault();const e=[Jn,Zn].includes(t.key),s=an(this._getChildren().filter(i=>!ft(i)),t.target,e,!0);s&&(s.focus({preventScroll:!0}),Ht.getOrCreateInstance(s).show())}_getChildren(){return p.find(He,this._parent)}_getActiveElem(){return this._getChildren().find(t=>this._elemIsActive(t))||null}_setInitialAttributes(t,e){this._setAttributeIfNotExists(t,"role","tablist");for(const s of e)this._setInitialAttributesOnChild(s)}_setInitialAttributesOnChild(t){t=this._getInnerElement(t);const e=this._elemIsActive(t),s=this._getOuterElement(t);t.setAttribute("aria-selected",e),s!==t&&this._setAttributeIfNotExists(s,"role","presentation"),e||t.setAttribute("tabindex","-1"),this._setAttributeIfNotExists(t,"role","tab"),this._setInitialAttributesOnTargetPanel(t)}_setInitialAttributesOnTargetPanel(t){const e=p.getElementFromSelector(t);e&&(this._setAttributeIfNotExists(e,"role","tabpanel"),t.id&&this._setAttributeIfNotExists(e,"aria-labelledby",`${t.id}`))}_toggleDropDown(t,e){const s=this._getOuterElement(t);if(!s.classList.contains(Yl))return;const i=(r,o)=>{const l=p.findOne(r,s);l&&l.classList.toggle(o,e)};i(Ul,bt),i(zl,ke),s.setAttribute("aria-expanded",e)}_setAttributeIfNotExists(t,e,s){t.hasAttribute(e)||t.setAttribute(e,s)}_elemIsActive(t){return t.classList.contains(bt)}_getInnerElement(t){return t.matches(He)?t:p.findOne(He,t)}_getOuterElement(t){return t.closest(ql)||t}static jQueryInterface(t){return this.each(function(){const e=Ht.getOrCreateInstance(this);if(typeof t=="string"){if(e[t]===void 0||t.startsWith("_")||t==="constructor")throw new TypeError(`No method named "${t}"`);e[t]()}})}}u.on(document,jl,ti,function(n){["A","AREA"].includes(this.tagName)&&n.preventDefault(),!ft(this)&&Ht.getOrCreateInstance(this).show()});u.on(window,Bl,()=>{for(const n of p.find(Ql))Ht.getOrCreateInstance(n)});Q(Ht);const Jl="toast",Zl="bs.toast",mt=`.${Zl}`,tc=`mouseover${mt}`,ec=`mouseout${mt}`,nc=`focusin${mt}`,sc=`focusout${mt}`,ic=`hide${mt}`,rc=`hidden${mt}`,oc=`show${mt}`,ac=`shown${mt}`,lc="fade",es="hide",oe="show",ae="showing",cc={animation:"boolean",autohide:"boolean",delay:"number"},uc={animation:!0,autohide:!0,delay:5e3};class Ae extends J{constructor(t,e){super(t,e),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return uc}static get DefaultType(){return cc}static get NAME(){return Jl}show(){if(u.trigger(this._element,oc).defaultPrevented)return;this._clearTimeout(),this._config.animation&&this._element.classList.add(lc);const e=()=>{this._element.classList.remove(ae),u.trigger(this._element,ac),this._maybeScheduleHide()};this._element.classList.remove(es),qt(this._element),this._element.classList.add(oe,ae),this._queueCallback(e,this._element,this._config.animation)}hide(){if(!this.isShown()||u.trigger(this._element,ic).defaultPrevented)return;const e=()=>{this._element.classList.add(es),this._element.classList.remove(ae,oe),u.trigger(this._element,rc)};this._element.classList.add(ae),this._queueCallback(e,this._element,this._config.animation)}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(oe),super.dispose()}isShown(){return this._element.classList.contains(oe)}_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;break}}if(e){this._clearTimeout();return}const s=t.relatedTarget;this._element===s||this._element.contains(s)||this._maybeScheduleHide()}_setListeners(){u.on(this._element,tc,t=>this._onInteraction(t,!0)),u.on(this._element,ec,t=>this._onInteraction(t,!1)),u.on(this._element,nc,t=>this._onInteraction(t,!0)),u.on(this._element,sc,t=>this._onInteraction(t,!1))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(t){return this.each(function(){const e=Ae.getOrCreateInstance(this,t);if(typeof t=="string"){if(typeof e[t]>"u")throw new TypeError(`No method named "${t}"`);e[t](this)}})}}Ee(Ae);Q(Ae);class hc extends HTMLElement{constructor(){super();const t=this.getAttribute("uri");t!==null&&(window.location=t)}}class fc extends HTMLElement{constructor(){super();ct(this,"form");ct(this,"submit");ct(this,"inputs");ct(this,"code");this.form=this.closest("form")||new HTMLFormElement,this.submit=this.form.querySelector('button[type="submit"]')||new HTMLButtonElement,this.submit.setAttribute("disabled","disabled"),this.inputs=Array.from(this.querySelectorAll('input:not([name="code"])'))||[],this.code=this.querySelector('input[name="code"]')||new HTMLInputElement;for(let e of this.inputs)e.addEventListener("keyup",s=>this.handleInput(s)),e.addEventListener("paste",s=>this.handlePaste(s))}handlePaste(e){var r;const i=(((r=e.clipboardData)==null?void 0:r.getData("text"))||"").replaceAll(/\s*/gi,"");for(let o in this.inputs){let l=this.inputs[o];l.value=i[o]||"",i!==null&&i[o]&&l.focus()}this.checkCode()}handleInput(e){const s=e.target;e.key=="Backspace"?s.previousElementSibling&&s.value==""&&(s.previousElementSibling.setSelectionRange(1,1),s.previousElementSibling.focus()):s.nextElementSibling&&s.value&&s.nextElementSibling.focus(),this.checkCode()}checkCode(){this.classList.remove("has-error");let e="";for(let s of this.inputs){if(s.value=="")return this.submit.setAttribute("disabled","disabled"),!1;e+=s.value}return this.submit.removeAttribute("disabled"),this.code.value=e,!0}}class dc extends HTMLElement{constructor(){super(),this.classList.add("toggle-annuaire");let t=this.getAttribute("toggle-target")||"";t===""&&console.error("Please provide a toggle-target attribute to this element ",this);let e=document.getElementById(t);if(e===null){console.error("Can't find the target element #"+t);return}this.addEventListener("click",()=>{e.type==="password"?e.type="text":e.type="password"})}}class pc extends HTMLElement{constructor(){super();ct(this,"form");ct(this,"button");ct(this,"alreadySubmit");this.alreadySubmit=!1,this.form=this.querySelector("form")||new HTMLFormElement,this.button=this.querySelector("[type='submit']")||new HTMLElement,this.form.addEventListener("submit",e=>this.handleSubmit(e))}handleSubmit(e){this.alreadySubmit&&e.preventDefault(),this.alreadySubmit=!0,this.button.setAttribute("disabled","disabled"),this.button.innerHTML='
',this.button.classList.add("sending")}}class _c extends HTMLElement{constructor(){super(),this.classList.add("capslock-detector");let t=this.getAttribute("target")||"";t===""&&console.error("Please provide a target attribute to this element ",this);let e=document.getElementById(t);if(e===null){console.error("Can't find the target element #"+t);return}e.addEventListener("keydown",s=>{s.getModifierState("CapsLock")?this.style.display="block":this.style.display="none"})}}customElements.define("redirect-uri",hc);customElements.define("inputs-code",fc);customElements.define("toggle-annuaire",dc);customElements.define("secure-form",pc);customElements.define("capslock-detector",_c);const mc=Array.from(document.querySelectorAll('[data-bs-toggle="tooltip"]'));[...mc].map(n=>new Ot(n));