!function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(e,t){"use strict";var n=[],i=Object.getPrototypeOf,r=n.slice,o=n.flat?function(e){return n.flat.call(e)}:function(e){return n.concat.apply([],e)},s=n.push,a=n.indexOf,l={},c=l.toString,u=l.hasOwnProperty,f=u.toString,d=f.call(Object),p={},h=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType&&"function"!=typeof e.item},m=function(e){return null!=e&&e===e.window},g=e.document,v={type:!0,src:!0,nonce:!0,noModule:!0};function y(e,t,n){var i,r,o=(n=n||g).createElement("script");if(o.text=e,t)for(i in v)(r=t[i]||t.getAttribute&&t.getAttribute(i))&&o.setAttribute(i,r);n.head.appendChild(o).parentNode.removeChild(o)}function b(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?l[c.call(e)]||"object":typeof e}var _="3.7.1",w=/HTML$/i,x=function(e,t){return new x.fn.init(e,t)};function T(e){var t=!!e&&"length"in e&&e.length,n=b(e);return!h(e)&&!m(e)&&("array"===n||0===t||"number"==typeof t&&0+~]|"+O+")"+O+"*"),R=new RegExp(O+"|>"),W=new RegExp($),B=new RegExp("^"+M+"$"),z={ID:new RegExp("^#("+M+")"),CLASS:new RegExp("^\\.("+M+")"),TAG:new RegExp("^("+M+"|[*])"),ATTR:new RegExp("^"+I),PSEUDO:new RegExp("^"+$),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+O+"*(even|odd|(([+-]|)(\\d*)n|)"+O+"*(?:([+-]|)"+O+"*(\\d+)|))"+O+"*\\)|)","i"),bool:new RegExp("^(?:"+P+")$","i"),needsContext:new RegExp("^"+O+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+O+"*((?:-\\d)?\\d*)"+O+"*\\)|)(?=[^-]|$)","i")},V=/^(?:input|select|textarea|button)$/i,U=/^h\d$/i,X=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,Y=/[+~]/,Q=new RegExp("\\\\[\\da-fA-F]{1,6}"+O+"?|\\\\([^\\r\\n\\f])","g"),K=function(e,t){var n="0x"+e.slice(1)-65536;return t||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},G=function(){le()},J=de(function(e){return!0===e.disabled&&E(e,"fieldset")},{dir:"parentNode",next:"legend"});try{g.apply(n=r.call(j.childNodes),j.childNodes)}catch(t){g={apply:function(e,t){N.apply(e,r.call(t))},call:function(e){N.apply(e,r.call(arguments,1))}}}function Z(e,t,n,i){var r,o,s,a,l,u,f,m=t&&t.ownerDocument,y=t?t.nodeType:9;if(n=n||[],"string"!=typeof e||!e||1!==y&&9!==y&&11!==y)return n;if(!i&&(le(t),t=t||c,d)){if(11!==y&&(l=X.exec(e)))if(r=l[1]){if(9===y){if(!(s=t.getElementById(r)))return n;if(s.id===r)return g.call(n,s),n}else if(m&&(s=m.getElementById(r))&&Z.contains(t,s)&&s.id===r)return g.call(n,s),n}else{if(l[2])return g.apply(n,t.getElementsByTagName(e)),n;if((r=l[3])&&t.getElementsByClassName)return g.apply(n,t.getElementsByClassName(r)),n}if(!(D[e+" "]||h&&h.test(e))){if(f=e,m=t,1===y&&(R.test(e)||F.test(e))){for((m=Y.test(e)&&ae(t.parentNode)||t)==t&&p.scope||((a=t.getAttribute("id"))?a=x.escapeSelector(a):t.setAttribute("id",a=v)),o=(u=ue(e)).length;o--;)u[o]=(a?"#"+a:":scope")+" "+fe(u[o]);f=u.join(",")}try{return g.apply(n,m.querySelectorAll(f)),n}catch(t){D(e,!0)}finally{a===v&&t.removeAttribute("id")}}}return ye(e.replace(S,"$1"),t,n,i)}function ee(){var e=[];return function t(n,r){return e.push(n+" ")>i.cacheLength&&delete t[e.shift()],t[n+" "]=r}}function te(e){return e[v]=!0,e}function ne(e){var t=c.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function ie(e){return function(t){return E(t,"input")&&t.type===e}}function re(e){return function(t){return(E(t,"input")||E(t,"button"))&&t.type===e}}function oe(e){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&J(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function se(e){return te(function(t){return t=+t,te(function(n,i){for(var r,o=e([],n.length,t),s=o.length;s--;)n[r=o[s]]&&(n[r]=!(i[r]=n[r]))})})}function ae(e){return e&&void 0!==e.getElementsByTagName&&e}function le(e){var t,n=e?e.ownerDocument||e:j;return n!=c&&9===n.nodeType&&n.documentElement&&(f=(c=n).documentElement,d=!x.isXMLDoc(c),m=f.matches||f.webkitMatchesSelector||f.msMatchesSelector,f.msMatchesSelector&&j!=c&&(t=c.defaultView)&&t.top!==t&&t.addEventListener("unload",G),p.getById=ne(function(e){return f.appendChild(e).id=x.expando,!c.getElementsByName||!c.getElementsByName(x.expando).length}),p.disconnectedMatch=ne(function(e){return m.call(e,"*")}),p.scope=ne(function(){return c.querySelectorAll(":scope")}),p.cssHas=ne(function(){try{return c.querySelector(":has(*,:jqfake)"),!1}catch(e){return!0}}),p.getById?(i.filter.ID=function(e){var t=e.replace(Q,K);return function(e){return e.getAttribute("id")===t}},i.find.ID=function(e,t){if(void 0!==t.getElementById&&d){var n=t.getElementById(e);return n?[n]:[]}}):(i.filter.ID=function(e){var t=e.replace(Q,K);return function(e){var n=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}},i.find.ID=function(e,t){if(void 0!==t.getElementById&&d){var n,i,r,o=t.getElementById(e);if(o){if((n=o.getAttributeNode("id"))&&n.value===e)return[o];for(r=t.getElementsByName(e),i=0;o=r[i++];)if((n=o.getAttributeNode("id"))&&n.value===e)return[o]}return[]}}),i.find.TAG=function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):t.querySelectorAll(e)},i.find.CLASS=function(e,t){if(void 0!==t.getElementsByClassName&&d)return t.getElementsByClassName(e)},h=[],ne(function(e){var t;f.appendChild(e).innerHTML="",e.querySelectorAll("[selected]").length||h.push("\\["+O+"*(?:value|"+P+")"),e.querySelectorAll("[id~="+v+"-]").length||h.push("~="),e.querySelectorAll("a#"+v+"+*").length||h.push(".#.+[+~]"),e.querySelectorAll(":checked").length||h.push(":checked"),(t=c.createElement("input")).setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),f.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&h.push(":enabled",":disabled"),(t=c.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||h.push("\\["+O+"*name"+O+"*="+O+"*(?:''|\"\")")}),p.cssHas||h.push(":has"),h=h.length&&new RegExp(h.join("|")),L=function(e,t){if(e===t)return l=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(1&(n=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!p.sortDetached&&t.compareDocumentPosition(e)===n?e===c||e.ownerDocument==j&&Z.contains(j,e)?-1:t===c||t.ownerDocument==j&&Z.contains(j,t)?1:s?a.call(s,e)-a.call(s,t):0:4&n?-1:1)}),c}for(t in Z.matches=function(e,t){return Z(e,null,null,t)},Z.matchesSelector=function(e,t){if(le(e),d&&!D[t+" "]&&(!h||!h.test(t)))try{var n=m.call(e,t);if(n||p.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(e){D(t,!0)}return 0":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(Q,K),e[3]=(e[3]||e[4]||e[5]||"").replace(Q,K),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||Z.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&Z.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return z.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&W.test(n)&&(t=ue(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(Q,K).toLowerCase();return"*"===e?function(){return!0}:function(e){return E(e,t)}},CLASS:function(e){var t=_[e+" "];return t||(t=new RegExp("(^|"+O+")"+e+"("+O+"|$)"))&&_(e,function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(e,t,n){return function(i){var r=Z.attr(i,e);return null==r?"!="===t:!t||(r+="","="===t?r===n:"!="===t?r!==n:"^="===t?n&&0===r.indexOf(n):"*="===t?n&&-1:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function H(e,t,n){return h(t)?x.grep(e,function(e,i){return!!t.call(e,i,e)!==n}):t.nodeType?x.grep(e,function(e){return e===t!==n}):"string"!=typeof t?x.grep(e,function(e){return-1)[^>]*|#([\w-]+))$/;(x.fn.init=function(e,t,n){var i,r;if(!e)return this;if(n=n||q,"string"==typeof e){if(!(i="<"===e[0]&&">"===e[e.length-1]&&3<=e.length?[null,e,null]:F.exec(e))||!i[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(i[1]){if(x.merge(this,x.parseHTML(i[1],(t=t instanceof x?t[0]:t)&&t.nodeType?t.ownerDocument||t:g,!0)),$.test(i[1])&&x.isPlainObject(t))for(i in t)h(this[i])?this[i](t[i]):this.attr(i,t[i]);return this}return(r=g.getElementById(i[2]))&&(this[0]=r,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):h(e)?void 0!==n.ready?n.ready(e):e(x):x.makeArray(e,this)}).prototype=x.fn,q=x(g);var R=/^(?:parents|prev(?:Until|All))/,W={children:!0,contents:!0,next:!0,prev:!0};function B(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}x.fn.extend({has:function(e){var t=x(e,this),n=t.length;return this.filter(function(){for(var e=0;e\x20\t\r\n\f]*)/i,Te=/^$|^module$|\/(?:java|ecma)script/i;be=g.createDocumentFragment().appendChild(g.createElement("div")),(_e=g.createElement("input")).setAttribute("type","radio"),_e.setAttribute("checked","checked"),_e.setAttribute("name","t"),be.appendChild(_e),p.checkClone=be.cloneNode(!0).cloneNode(!0).lastChild.checked,be.innerHTML="",p.noCloneChecked=!!be.cloneNode(!0).lastChild.defaultValue,be.innerHTML="",p.option=!!be.lastChild;var Ee={thead:[1,"","
"],col:[2,"","
"],tr:[2,"","
"],td:[3,"","
"],_default:[0,"",""]};function Ce(e,t){var n;return n=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&E(e,t)?x.merge([e],n):n}function Ae(e,t){for(var n=0,i=e.length;n",""]);var ke=/<|&#?\w+;/;function Oe(e,t,n,i,r){for(var o,s,a,l,c,u,f=t.createDocumentFragment(),d=[],p=0,h=e.length;p\s*$/g;function $e(e,t){return E(e,"table")&&E(11!==t.nodeType?t:t.firstChild,"tr")&&x(e).children("tbody")[0]||e}function He(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function qe(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Fe(e,t){var n,i,r,o,s,a;if(1===t.nodeType){if(re.hasData(e)&&(a=re.get(e).events))for(r in re.remove(t,"handle events"),a)for(n=0,i=a[r].length;n").attr(e.scriptAttrs||{}).prop({charset:e.scriptCharset,src:e.url}).on("load error",n=function(e){t.remove(),n=null,e&&r("error"===e.type?404:200,e.type)}),g.head.appendChild(t[0])},abort:function(){n&&n()}}});var Gt,Jt=[],Zt=/(=)\?(?=&|$)|\?\?/;x.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Jt.pop()||x.expando+"_"+kt.guid++;return this[e]=!0,e}}),x.ajaxPrefilter("json jsonp",function(t,n,i){var r,o,s,a=!1!==t.jsonp&&(Zt.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&Zt.test(t.data)&&"data");if(a||"jsonp"===t.dataTypes[0])return r=t.jsonpCallback=h(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,a?t[a]=t[a].replace(Zt,"$1"+r):!1!==t.jsonp&&(t.url+=(Ot.test(t.url)?"&":"?")+t.jsonp+"="+r),t.converters["script json"]=function(){return s||x.error(r+" was not called"),s[0]},t.dataTypes[0]="json",o=e[r],e[r]=function(){s=arguments},i.always(function(){void 0===o?x(e).removeProp(r):e[r]=o,t[r]&&(t.jsonpCallback=n.jsonpCallback,Jt.push(r)),s&&h(o)&&o(s[0]),s=o=void 0}),"script"}),p.createHTMLDocument=((Gt=g.implementation.createHTMLDocument("").body).innerHTML="
",2===Gt.childNodes.length),x.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(p.createHTMLDocument?((i=(t=g.implementation.createHTMLDocument("")).createElement("base")).href=g.location.href,t.head.appendChild(i)):t=g),o=!n&&[],(r=$.exec(e))?[t.createElement(r[1])]:(r=Oe([e],t,o),o&&o.length&&x(o).remove(),x.merge([],r.childNodes)));var i,r,o},x.fn.load=function(e,t,n){var i,r,o,s=this,a=e.indexOf(" ");return-1").append(x.parseHTML(e)).find(i):e)}).always(n&&function(e,t){s.each(function(){n.apply(this,o||[e.responseText,t,e])})}),this},x.expr.pseudos.animated=function(e){return x.grep(x.timers,function(t){return e===t.elem}).length},x.offset={setOffset:function(e,t,n){var i,r,o,s,a,l,c=x.css(e,"position"),u=x(e),f={};"static"===c&&(e.style.position="relative"),a=u.offset(),o=x.css(e,"top"),l=x.css(e,"left"),("absolute"===c||"fixed"===c)&&-1<(o+l).indexOf("auto")?(s=(i=u.position()).top,r=i.left):(s=parseFloat(o)||0,r=parseFloat(l)||0),h(t)&&(t=t.call(e,n,x.extend({},a))),null!=t.top&&(f.top=t.top-a.top+s),null!=t.left&&(f.left=t.left-a.left+r),"using"in t?t.using.call(e,f):u.css(f)}},x.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each(function(t){x.offset.setOffset(this,e,t)});var t,n,i=this[0];return i?i.getClientRects().length?{top:(t=i.getBoundingClientRect()).top+(n=i.ownerDocument.defaultView).pageYOffset,left:t.left+n.pageXOffset}:{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,i=this[0],r={top:0,left:0};if("fixed"===x.css(i,"position"))t=i.getBoundingClientRect();else{for(t=this.offset(),n=i.ownerDocument,e=i.offsetParent||n.documentElement;e&&(e===n.body||e===n.documentElement)&&"static"===x.css(e,"position");)e=e.parentNode;e&&e!==i&&1===e.nodeType&&((r=x(e).offset()).top+=x.css(e,"borderTopWidth",!0),r.left+=x.css(e,"borderLeftWidth",!0))}return{top:t.top-r.top-x.css(i,"marginTop",!0),left:t.left-r.left-x.css(i,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent;e&&"static"===x.css(e,"position");)e=e.offsetParent;return e||de})}}),x.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,t){var n="pageYOffset"===t;x.fn[e]=function(i){return G(this,function(e,i,r){var o;if(m(e)?o=e:9===e.nodeType&&(o=e.defaultView),void 0===r)return o?o[t]:e[i];o?o.scrollTo(n?o.pageXOffset:r,n?r:o.pageYOffset):e[i]=r},e,i,arguments.length)}}),x.each(["top","left"],function(e,t){x.cssHooks[t]=Qe(p.pixelPosition,function(e,n){if(n)return n=Ye(e,t),Be.test(n)?x(e).position()[t]+"px":n})}),x.each({Height:"height",Width:"width"},function(e,t){x.each({padding:"inner"+e,content:t,"":"outer"+e},function(n,i){x.fn[i]=function(r,o){var s=arguments.length&&(n||"boolean"!=typeof r),a=n||(!0===r||!0===o?"margin":"border");return G(this,function(t,n,r){var o;return m(t)?0===i.indexOf("outer")?t["inner"+e]:t.document.documentElement["client"+e]:9===t.nodeType?(o=t.documentElement,Math.max(t.body["scroll"+e],o["scroll"+e],t.body["offset"+e],o["offset"+e],o["client"+e])):void 0===r?x.css(t,n,a):x.style(t,n,r,a)},t,s?r:void 0,s)}})}),x.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){x.fn[t]=function(e){return this.on(t,e)}}),x.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,i){return this.on(t,e,n,i)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)},hover:function(e,t){return this.on("mouseenter",e).on("mouseleave",t||e)}}),x.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,t){x.fn[t]=function(e,n){return 0=n.clientWidth&&e.height>=n.clientHeight}),u=0c[e]&&!t.escapeWithReference&&(i=W(u[n],c[e]-("right"===e?u.width:u.height))),Z({},n,i)}};return t.priority.forEach(function(e){var t=-1===["left","top"].indexOf(e)?"secondary":"primary";u=ee({},u,f[t](e))}),e.offsets.popper=u,e},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(e){var t=e.offsets,n=t.popper,i=t.reference,r=e.placement.split("-")[0],o=B,s=-1!==["top","bottom"].indexOf(r),a=s?"right":"bottom",l=s?"left":"top",c=s?"width":"height";return n[a]o(i[a])&&(e.offsets.popper[l]=o(i[a])),e}},arrow:{order:500,enabled:!0,fn:function(e,n){var i;if(!F(e.instance.modifiers,"arrow","keepTogether"))return e;var r=n.element;if("string"==typeof r){if(!(r=e.instance.popper.querySelector(r)))return e}else if(!e.instance.popper.contains(r))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),e;var o=e.placement.split("-")[0],s=e.offsets,a=s.popper,l=s.reference,c=-1!==["left","right"].indexOf(o),u=c?"height":"width",f=c?"Top":"Left",d=f.toLowerCase(),p=c?"left":"top",m=c?"bottom":"right",g=E(r)[u];l[m]-ga[m]&&(e.offsets.popper[d]+=l[d]+g-a[m]),e.offsets.popper=h(e.offsets.popper);var v=l[d]+l[u]/2-g/2,y=t(e.instance.popper),b=parseFloat(y["margin"+f]),_=parseFloat(y["border"+f+"Width"]),w=v-e.offsets.popper[d]-b-_;return w=V(W(a[u]-g,w),0),e.arrowElement=r,e.offsets.arrow=(Z(i={},d,z(w)),Z(i,p,""),i),e},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(e,t){if(D(e.instance.modifiers,"inner"))return e;if(e.flipped&&e.placement===e.originalPlacement)return e;var n=_(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),i=e.placement.split("-")[0],r=C(i),o=e.placement.split("-")[1]||"",s=[];switch(t.behavior){case"flip":s=[i,r];break;case"clockwise":s=R(i);break;case"counterclockwise":s=R(i,!0);break;default:s=t.behavior}return s.forEach(function(a,l){if(i!==a||s.length===l+1)return e;i=e.placement.split("-")[0],r=C(i);var c=e.offsets.popper,u=e.offsets.reference,f=B,d="left"===i&&f(c.right)>f(u.left)||"right"===i&&f(c.left)f(u.top)||"bottom"===i&&f(c.top)f(n.right),m=f(c.top)f(n.bottom),v="left"===i&&p||"right"===i&&h||"top"===i&&m||"bottom"===i&&g,y=-1!==["top","bottom"].indexOf(i),b=!!t.flipVariations&&(y&&"start"===o&&p||y&&"end"===o&&h||!y&&"start"===o&&m||!y&&"end"===o&&g)||!!t.flipVariationsByContent&&(y&&"start"===o&&h||y&&"end"===o&&p||!y&&"start"===o&&g||!y&&"end"===o&&m);(d||v||b)&&(e.flipped=!0,(d||v)&&(i=s[l+1]),b&&(o=function(e){return"end"===e?"start":"start"===e?"end":e}(o)),e.placement=i+(o?"-"+o:""),e.offsets.popper=ee({},e.offsets.popper,A(e.instance.popper,e.offsets.reference,e.placement)),e=O(e.instance.modifiers,e,"flip"))}),e},behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:function(e){var t=e.placement,n=t.split("-")[0],i=e.offsets,r=i.popper,o=i.reference,s=-1!==["left","right"].indexOf(n),a=-1===["top","left"].indexOf(n);return r[s?"left":"top"]=o[n]-(a?r[s?"width":"height"]:0),e.placement=C(t),e.offsets.popper=h(r),e}},hide:{order:800,enabled:!0,fn:function(e){if(!F(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=k(e.instance.modifiers,function(e){return"preventOverflow"===e.name}).boundaries;if(t.bottomn.right||t.top>n.bottom||t.rightwindow.devicePixelRatio||!te),h="bottom"===n?"top":"bottom",g="right"===i?"left":"right",v=L("transform");if(l="bottom"==h?"HTML"===u.nodeName?-u.clientHeight+p.bottom:-f.height+p.bottom:p.top,a="right"==g?"HTML"===u.nodeName?-u.clientWidth+p.right:-f.width+p.right:p.left,c&&v)d[v]="translate3d("+a+"px, "+l+"px, 0)",d[h]=0,d[g]=0,d.willChange="transform";else{var y="right"==g?-1:1;d[h]=l*("bottom"==h?-1:1),d[g]=a*y,d.willChange=h+", "+g}return e.attributes=ee({},{"x-placement":e.placement},e.attributes),e.styles=ee({},d,e.styles),e.arrowStyles=ee({},e.offsets.arrow,e.arrowStyles),e},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function(e){return q(e.instance.popper,e.styles),function(e,t){Object.keys(t).forEach(function(n){!1===t[n]?e.removeAttribute(n):e.setAttribute(n,t[n])})}(e.instance.popper,e.attributes),e.arrowElement&&Object.keys(e.arrowStyles).length&&q(e.arrowElement,e.arrowStyles),e},onLoad:function(e,t,n,i,r){var o=T(r,t,e,n.positionFixed),s=x(n.placement,o,t,e,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return t.setAttribute("x-placement",s),q(t,{position:n.positionFixed?"fixed":"absolute"}),n},gpuAcceleration:void 0}}},re}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).bootstrap=t()}(this,function(){"use strict";const e=new Map,t={set(t,n,i){e.has(t)||e.set(t,new Map);const r=e.get(t);r.has(n)||0===r.size?r.set(n,i):console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(r.keys())[0]}.`)},get:(t,n)=>e.has(t)&&e.get(t).get(n)||null,remove(t,n){if(!e.has(t))return;const i=e.get(t);i.delete(n),0===i.size&&e.delete(t)}},n="transitionend",i=e=>(e&&window.CSS&&window.CSS.escape&&(e=e.replace(/#([^\s"#']+)/g,(e,t)=>`#${CSS.escape(t)}`)),e),r=e=>{e.dispatchEvent(new Event(n))},o=e=>!(!e||"object"!=typeof e)&&(void 0!==e.jquery&&(e=e[0]),void 0!==e.nodeType),s=e=>o(e)?e.jquery?e[0]:e:"string"==typeof e&&e.length>0?document.querySelector(i(e)):null,a=e=>{if(!o(e)||0===e.getClientRects().length)return!1;const t="visible"===getComputedStyle(e).getPropertyValue("visibility"),n=e.closest("details:not([open])");if(!n)return t;if(n!==e){const t=e.closest("summary");if(t&&t.parentNode!==n)return!1;if(null===t)return!1}return t},l=e=>!e||e.nodeType!==Node.ELEMENT_NODE||!!e.classList.contains("disabled")||(void 0!==e.disabled?e.disabled:e.hasAttribute("disabled")&&"false"!==e.getAttribute("disabled")),c=e=>{if(!document.documentElement.attachShadow)return null;if("function"==typeof e.getRootNode){const t=e.getRootNode();return t instanceof ShadowRoot?t:null}return e instanceof ShadowRoot?e:e.parentNode?c(e.parentNode):null},u=()=>{},f=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,d=[],p=()=>"rtl"===document.documentElement.dir,h=e=>{var t;t=()=>{const t=f();if(t){const n=e.NAME,i=t.fn[n];t.fn[n]=e.jQueryInterface,t.fn[n].Constructor=e,t.fn[n].noConflict=()=>(t.fn[n]=i,e.jQueryInterface)}},"loading"===document.readyState?(d.length||document.addEventListener("DOMContentLoaded",()=>{for(const e of d)e()}),d.push(t)):t()},m=(e,t=[],n=e)=>"function"==typeof e?e(...t):n,g=(e,t,i=!0)=>{if(!i)return void m(e);const o=(e=>{if(!e)return 0;let{transitionDuration:t,transitionDelay:n}=window.getComputedStyle(e);const i=Number.parseFloat(t),r=Number.parseFloat(n);return i||r?(t=t.split(",")[0],n=n.split(",")[0],1e3*(Number.parseFloat(t)+Number.parseFloat(n))):0})(t)+5;let s=!1;const a=({target:i})=>{i===t&&(s=!0,t.removeEventListener(n,a),m(e))};t.addEventListener(n,a),setTimeout(()=>{s||r(t)},o)},v=(e,t,n,i)=>{const r=e.length;let o=e.indexOf(t);return-1===o?!n&&i?e[r-1]:e[0]:(o+=n?1:-1,i&&(o=(o+r)%r),e[Math.max(0,Math.min(o,r-1))])},y=/[^.]*(?=\..*)\.|.*/,b=/\..*/,_=/::\d+$/,w={};let x=1;const T={mouseenter:"mouseover",mouseleave:"mouseout"},E=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 C(e,t){return t&&`${t}::${x++}`||e.uidEvent||x++}function A(e){const t=C(e);return e.uidEvent=t,w[t]=w[t]||{},w[t]}function k(e,t,n=null){return Object.values(e).find(e=>e.callable===t&&e.delegationSelector===n)}function O(e,t,n){const i="string"==typeof t,r=i?n:t||n;let o=j(e);return E.has(o)||(o=e),[i,r,o]}function S(e,t,n,i,r){if("string"!=typeof t||!e)return;let[o,s,a]=O(t,n,i);t in T&&(s=(e=>function(t){if(!t.relatedTarget||t.relatedTarget!==t.delegateTarget&&!t.delegateTarget.contains(t.relatedTarget))return e.call(this,t)})(s));const l=A(e),c=l[a]||(l[a]={}),u=k(c,s,o?n:null);if(u)return void(u.oneOff=u.oneOff&&r);const f=C(s,t.replace(y,"")),d=o?function(e,t,n){return function i(r){const o=e.querySelectorAll(t);for(let{target:s}=r;s&&s!==this;s=s.parentNode)for(const a of o)if(a===s)return P(r,{delegateTarget:s}),i.oneOff&&N.off(e,r.type,t,n),n.apply(s,[r])}}(e,n,s):function(e,t){return function n(i){return P(i,{delegateTarget:e}),n.oneOff&&N.off(e,i.type,t),t.apply(e,[i])}}(e,s);d.delegationSelector=o?n:null,d.callable=s,d.oneOff=r,d.uidEvent=f,c[f]=d,e.addEventListener(a,d,o)}function D(e,t,n,i,r){const o=k(t[n],i,r);o&&(e.removeEventListener(n,o,Boolean(r)),delete t[n][o.uidEvent])}function L(e,t,n,i){const r=t[n]||{};for(const[o,s]of Object.entries(r))o.includes(i)&&D(e,t,n,s.callable,s.delegationSelector)}function j(e){return e=e.replace(b,""),T[e]||e}const N={on(e,t,n,i){S(e,t,n,i,!1)},one(e,t,n,i){S(e,t,n,i,!0)},off(e,t,n,i){if("string"!=typeof t||!e)return;const[r,o,s]=O(t,n,i),a=s!==t,l=A(e),c=l[s]||{},u=t.startsWith(".");if(void 0===o){if(u)for(const n of Object.keys(l))L(e,l,n,t.slice(1));for(const[n,i]of Object.entries(c)){const r=n.replace(_,"");a&&!t.includes(r)||D(e,l,s,i.callable,i.delegationSelector)}}else{if(!Object.keys(c).length)return;D(e,l,s,o,r?n:null)}},trigger(e,t,n){if("string"!=typeof t||!e)return null;const i=f();let r=null,o=!0,s=!0,a=!1;t!==j(t)&&i&&(r=i.Event(t,n),i(e).trigger(r),o=!r.isPropagationStopped(),s=!r.isImmediatePropagationStopped(),a=r.isDefaultPrevented());const l=P(new Event(t,{bubbles:o,cancelable:!0}),n);return a&&l.preventDefault(),s&&e.dispatchEvent(l),l.defaultPrevented&&r&&r.preventDefault(),l}};function P(e,t={}){for(const[n,i]of Object.entries(t))try{e[n]=i}catch(t){Object.defineProperty(e,n,{configurable:!0,get:()=>i})}return e}function M(e){if("true"===e)return!0;if("false"===e)return!1;if(e===Number(e).toString())return Number(e);if(""===e||"null"===e)return null;if("string"!=typeof e)return e;try{return JSON.parse(decodeURIComponent(e))}catch(t){return e}}function I(e){return e.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)}const $={setDataAttribute(e,t,n){e.setAttribute(`data-bs-${I(t)}`,n)},removeDataAttribute(e,t){e.removeAttribute(`data-bs-${I(t)}`)},getDataAttributes(e){if(!e)return{};const t={},n=Object.keys(e.dataset).filter(e=>e.startsWith("bs")&&!e.startsWith("bsConfig"));for(const i of n){let n=i.replace(/^bs/,"");n=n.charAt(0).toLowerCase()+n.slice(1,n.length),t[n]=M(e.dataset[i])}return t},getDataAttribute:(e,t)=>M(e.getAttribute(`data-bs-${I(t)}`))};class H{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(e){return e=this._mergeConfigObj(e),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}_configAfterMerge(e){return e}_mergeConfigObj(e,t){const n=o(t)?$.getDataAttribute(t,"config"):{};return{...this.constructor.Default,..."object"==typeof n?n:{},...o(t)?$.getDataAttributes(t):{},..."object"==typeof e?e:{}}}_typeCheckConfig(e,t=this.constructor.DefaultType){for(const[i,r]of Object.entries(t)){const t=e[i],s=o(t)?"element":null==(n=t)?`${n}`:Object.prototype.toString.call(n).match(/\s([a-z]+)/i)[1].toLowerCase();if(!new RegExp(r).test(s))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${i}" provided type "${s}" but expected type "${r}".`)}var n}}class q extends H{constructor(e,n){super(),(e=s(e))&&(this._element=e,this._config=this._getConfig(n),t.set(this._element,this.constructor.DATA_KEY,this))}dispose(){t.remove(this._element,this.constructor.DATA_KEY),N.off(this._element,this.constructor.EVENT_KEY);for(const e of Object.getOwnPropertyNames(this))this[e]=null}_queueCallback(e,t,n=!0){g(e,t,n)}_getConfig(e){return e=this._mergeConfigObj(e,this._element),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}static getInstance(e){return t.get(s(e),this.DATA_KEY)}static getOrCreateInstance(e,t={}){return this.getInstance(e)||new this(e,"object"==typeof t?t:null)}static get VERSION(){return"5.3.3"}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}static eventName(e){return`${e}${this.EVENT_KEY}`}}const F=e=>{let t=e.getAttribute("data-bs-target");if(!t||"#"===t){let n=e.getAttribute("href");if(!n||!n.includes("#")&&!n.startsWith("."))return null;n.includes("#")&&!n.startsWith("#")&&(n=`#${n.split("#")[1]}`),t=n&&"#"!==n?n.trim():null}return t?t.split(",").map(e=>i(e)).join(","):null},R={find:(e,t=document.documentElement)=>[].concat(...Element.prototype.querySelectorAll.call(t,e)),findOne:(e,t=document.documentElement)=>Element.prototype.querySelector.call(t,e),children:(e,t)=>[].concat(...e.children).filter(e=>e.matches(t)),parents(e,t){const n=[];let i=e.parentNode.closest(t);for(;i;)n.push(i),i=i.parentNode.closest(t);return n},prev(e,t){let n=e.previousElementSibling;for(;n;){if(n.matches(t))return[n];n=n.previousElementSibling}return[]},next(e,t){let n=e.nextElementSibling;for(;n;){if(n.matches(t))return[n];n=n.nextElementSibling}return[]},focusableChildren(e){const t=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map(e=>`${e}:not([tabindex^="-"])`).join(",");return this.find(t,e).filter(e=>!l(e)&&a(e))},getSelectorFromElement(e){const t=F(e);return t&&R.findOne(t)?t:null},getElementFromSelector(e){const t=F(e);return t?R.findOne(t):null},getMultipleElementsFromSelector(e){const t=F(e);return t?R.find(t):[]}},W=(e,t="hide")=>{const n=e.NAME;N.on(document,`click.dismiss${e.EVENT_KEY}`,`[data-bs-dismiss="${n}"]`,function(i){if(["A","AREA"].includes(this.tagName)&&i.preventDefault(),l(this))return;const r=R.getElementFromSelector(this)||this.closest(`.${n}`);e.getOrCreateInstance(r)[t]()})},B=".bs.alert",z=`close${B}`,V=`closed${B}`;class U extends q{static get NAME(){return"alert"}close(){if(N.trigger(this._element,z).defaultPrevented)return;this._element.classList.remove("show");const e=this._element.classList.contains("fade");this._queueCallback(()=>this._destroyElement(),this._element,e)}_destroyElement(){this._element.remove(),N.trigger(this._element,V),this.dispose()}static jQueryInterface(e){return this.each(function(){const t=U.getOrCreateInstance(this);if("string"==typeof e){if(void 0===t[e]||e.startsWith("_")||"constructor"===e)throw new TypeError(`No method named "${e}"`);t[e](this)}})}}W(U,"close"),h(U);const X='[data-bs-toggle="button"]';class Y extends q{static get NAME(){return"button"}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle("active"))}static jQueryInterface(e){return this.each(function(){const t=Y.getOrCreateInstance(this);"toggle"===e&&t[e]()})}}N.on(document,"click.bs.button.data-api",X,e=>{e.preventDefault();const t=e.target.closest(X);Y.getOrCreateInstance(t).toggle()}),h(Y);const Q=".bs.swipe",K=`touchstart${Q}`,G=`touchmove${Q}`,J=`touchend${Q}`,Z=`pointerdown${Q}`,ee=`pointerup${Q}`,te={endCallback:null,leftCallback:null,rightCallback:null},ne={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"};class ie extends H{constructor(e,t){super(),this._element=e,e&&ie.isSupported()&&(this._config=this._getConfig(t),this._deltaX=0,this._supportPointerEvents=Boolean(window.PointerEvent),this._initEvents())}static get Default(){return te}static get DefaultType(){return ne}static get NAME(){return"swipe"}dispose(){N.off(this._element,Q)}_start(e){this._supportPointerEvents?this._eventIsPointerPenTouch(e)&&(this._deltaX=e.clientX):this._deltaX=e.touches[0].clientX}_end(e){this._eventIsPointerPenTouch(e)&&(this._deltaX=e.clientX-this._deltaX),this._handleSwipe(),m(this._config.endCallback)}_move(e){this._deltaX=e.touches&&e.touches.length>1?0:e.touches[0].clientX-this._deltaX}_handleSwipe(){const e=Math.abs(this._deltaX);if(e<=40)return;const t=e/this._deltaX;this._deltaX=0,t&&m(t>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(N.on(this._element,Z,e=>this._start(e)),N.on(this._element,ee,e=>this._end(e)),this._element.classList.add("pointer-event")):(N.on(this._element,K,e=>this._start(e)),N.on(this._element,G,e=>this._move(e)),N.on(this._element,J,e=>this._end(e)))}_eventIsPointerPenTouch(e){return this._supportPointerEvents&&("pen"===e.pointerType||"touch"===e.pointerType)}static isSupported(){return"ontouchstart"in document.documentElement||navigator.maxTouchPoints>0}}const re=".bs.carousel",oe=".data-api",se="next",ae="prev",le="left",ce="right",ue=`slide${re}`,fe=`slid${re}`,de=`keydown${re}`,pe=`mouseenter${re}`,he=`mouseleave${re}`,me=`dragstart${re}`,ge=`load${re}${oe}`,ve=`click${re}${oe}`,ye="carousel",be="active",_e={ArrowLeft:ce,ArrowRight:le},we={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},xe={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"};class Te extends q{constructor(e,t){super(e,t),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=R.findOne(".carousel-indicators",this._element),this._addEventListeners(),this._config.ride===ye&&this.cycle()}static get Default(){return we}static get DefaultType(){return xe}static get NAME(){return"carousel"}next(){this._slide(se)}nextWhenVisible(){!document.hidden&&a(this._element)&&this.next()}prev(){this._slide(ae)}pause(){this._isSliding&&r(this._element),this._clearInterval()}cycle(){this._clearInterval(),this._updateInterval(),this._interval=setInterval(()=>this.nextWhenVisible(),this._config.interval)}_maybeEnableCycle(){this._config.ride&&(this._isSliding?N.one(this._element,fe,()=>this.cycle()):this.cycle())}to(e){const t=this._getItems();if(e>t.length-1||e<0)return;if(this._isSliding)return void N.one(this._element,fe,()=>this.to(e));const n=this._getItemIndex(this._getActive());n!==e&&this._slide(e>n?se:ae,t[e])}dispose(){this._swipeHelper&&this._swipeHelper.dispose(),super.dispose()}_configAfterMerge(e){return e.defaultInterval=e.interval,e}_addEventListeners(){this._config.keyboard&&N.on(this._element,de,e=>this._keydown(e)),"hover"===this._config.pause&&(N.on(this._element,pe,()=>this.pause()),N.on(this._element,he,()=>this._maybeEnableCycle())),this._config.touch&&ie.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(const e of R.find(".carousel-item img",this._element))N.on(e,me,e=>e.preventDefault());this._swipeHelper=new ie(this._element,{leftCallback:()=>this._slide(this._directionToOrder(le)),rightCallback:()=>this._slide(this._directionToOrder(ce)),endCallback:()=>{"hover"===this._config.pause&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout(()=>this._maybeEnableCycle(),500+this._config.interval))}})}_keydown(e){if(/input|textarea/i.test(e.target.tagName))return;const t=_e[e.key];t&&(e.preventDefault(),this._slide(this._directionToOrder(t)))}_getItemIndex(e){return this._getItems().indexOf(e)}_setActiveIndicatorElement(e){if(!this._indicatorsElement)return;const t=R.findOne(".active",this._indicatorsElement);t.classList.remove(be),t.removeAttribute("aria-current");const n=R.findOne(`[data-bs-slide-to="${e}"]`,this._indicatorsElement);n&&(n.classList.add(be),n.setAttribute("aria-current","true"))}_updateInterval(){const e=this._activeElement||this._getActive();if(!e)return;const t=Number.parseInt(e.getAttribute("data-bs-interval"),10);this._config.interval=t||this._config.defaultInterval}_slide(e,t=null){if(this._isSliding)return;const n=this._getActive(),i=e===se,r=t||v(this._getItems(),n,i,this._config.wrap);if(r===n)return;const o=this._getItemIndex(r),s=t=>N.trigger(this._element,t,{relatedTarget:r,direction:this._orderToDirection(e),from:this._getItemIndex(n),to:o});if(s(ue).defaultPrevented)return;if(!n||!r)return;const a=Boolean(this._interval);this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(o),this._activeElement=r;const l=i?"carousel-item-start":"carousel-item-end",c=i?"carousel-item-next":"carousel-item-prev";r.classList.add(c),n.classList.add(l),r.classList.add(l),this._queueCallback(()=>{r.classList.remove(l,c),r.classList.add(be),n.classList.remove(be,c,l),this._isSliding=!1,s(fe)},n,this._isAnimated()),a&&this.cycle()}_isAnimated(){return this._element.classList.contains("slide")}_getActive(){return R.findOne(".active.carousel-item",this._element)}_getItems(){return R.find(".carousel-item",this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(e){return p()?e===le?ae:se:e===le?se:ae}_orderToDirection(e){return p()?e===ae?le:ce:e===ae?ce:le}static jQueryInterface(e){return this.each(function(){const t=Te.getOrCreateInstance(this,e);if("number"!=typeof e){if("string"==typeof e){if(void 0===t[e]||e.startsWith("_")||"constructor"===e)throw new TypeError(`No method named "${e}"`);t[e]()}}else t.to(e)})}}N.on(document,ve,"[data-bs-slide], [data-bs-slide-to]",function(e){const t=R.getElementFromSelector(this);if(!t||!t.classList.contains(ye))return;e.preventDefault();const n=Te.getOrCreateInstance(t),i=this.getAttribute("data-bs-slide-to");return i?(n.to(i),void n._maybeEnableCycle()):"next"===$.getDataAttribute(this,"slide")?(n.next(),void n._maybeEnableCycle()):(n.prev(),void n._maybeEnableCycle())}),N.on(window,ge,()=>{const e=R.find('[data-bs-ride="carousel"]');for(const t of e)Te.getOrCreateInstance(t)}),h(Te);const Ee=".bs.collapse",Ce=`show${Ee}`,Ae=`shown${Ee}`,ke=`hide${Ee}`,Oe=`hidden${Ee}`,Se=`click${Ee}.data-api`,De="show",Le="collapse",je="collapsing",Ne=`:scope .${Le} .${Le}`,Pe='[data-bs-toggle="collapse"]',Me={parent:null,toggle:!0},Ie={parent:"(null|element)",toggle:"boolean"};class $e extends q{constructor(e,t){super(e,t),this._isTransitioning=!1,this._triggerArray=[];const n=R.find(Pe);for(const i of n){const e=R.getSelectorFromElement(i),t=R.find(e).filter(e=>e===this._element);null!==e&&t.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 Me}static get DefaultType(){return Ie}static get NAME(){return"collapse"}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let e=[];if(this._config.parent&&(e=this._getFirstLevelChildren(".collapse.show, .collapse.collapsing").filter(e=>e!==this._element).map(e=>$e.getOrCreateInstance(e,{toggle:!1}))),e.length&&e[0]._isTransitioning)return;if(N.trigger(this._element,Ce).defaultPrevented)return;for(const i of e)i.hide();const t=this._getDimension();this._element.classList.remove(Le),this._element.classList.add(je),this._element.style[t]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const n=`scroll${t[0].toUpperCase()+t.slice(1)}`;this._queueCallback(()=>{this._isTransitioning=!1,this._element.classList.remove(je),this._element.classList.add(Le,De),this._element.style[t]="",N.trigger(this._element,Ae)},this._element,!0),this._element.style[t]=`${this._element[n]}px`}hide(){if(this._isTransitioning||!this._isShown())return;if(N.trigger(this._element,ke).defaultPrevented)return;const e=this._getDimension();this._element.style[e]=`${this._element.getBoundingClientRect()[e]}px`,this._element.classList.add(je),this._element.classList.remove(Le,De);for(const t of this._triggerArray){const e=R.getElementFromSelector(t);e&&!this._isShown(e)&&this._addAriaAndCollapsedClass([t],!1)}this._isTransitioning=!0,this._element.style[e]="",this._queueCallback(()=>{this._isTransitioning=!1,this._element.classList.remove(je),this._element.classList.add(Le),N.trigger(this._element,Oe)},this._element,!0)}_isShown(e=this._element){return e.classList.contains(De)}_configAfterMerge(e){return e.toggle=Boolean(e.toggle),e.parent=s(e.parent),e}_getDimension(){return this._element.classList.contains("collapse-horizontal")?"width":"height"}_initializeChildren(){if(!this._config.parent)return;const e=this._getFirstLevelChildren(Pe);for(const t of e){const e=R.getElementFromSelector(t);e&&this._addAriaAndCollapsedClass([t],this._isShown(e))}}_getFirstLevelChildren(e){const t=R.find(Ne,this._config.parent);return R.find(e,this._config.parent).filter(e=>!t.includes(e))}_addAriaAndCollapsedClass(e,t){if(e.length)for(const n of e)n.classList.toggle("collapsed",!t),n.setAttribute("aria-expanded",t)}static jQueryInterface(e){const t={};return"string"==typeof e&&/show|hide/.test(e)&&(t.toggle=!1),this.each(function(){const n=$e.getOrCreateInstance(this,t);if("string"==typeof e){if(void 0===n[e])throw new TypeError(`No method named "${e}"`);n[e]()}})}}N.on(document,Se,Pe,function(e){("A"===e.target.tagName||e.delegateTarget&&"A"===e.delegateTarget.tagName)&&e.preventDefault();for(const t of R.getMultipleElementsFromSelector(this))$e.getOrCreateInstance(t,{toggle:!1}).toggle()}),h($e);var He="top",qe="bottom",Fe="right",Re="left",We="auto",Be=[He,qe,Fe,Re],ze="start",Ve="end",Ue="clippingParents",Xe="viewport",Ye="popper",Qe="reference",Ke=Be.reduce(function(e,t){return e.concat([t+"-"+ze,t+"-"+Ve])},[]),Ge=[].concat(Be,[We]).reduce(function(e,t){return e.concat([t,t+"-"+ze,t+"-"+Ve])},[]),Je="beforeRead",Ze="read",et="afterRead",tt="beforeMain",nt="main",it="afterMain",rt="beforeWrite",ot="write",st="afterWrite",at=[Je,Ze,et,tt,nt,it,rt,ot,st];function lt(e){return e?(e.nodeName||"").toLowerCase():null}function ct(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function ut(e){return e instanceof ct(e).Element||e instanceof Element}function ft(e){return e instanceof ct(e).HTMLElement||e instanceof HTMLElement}function dt(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ct(e).ShadowRoot||e instanceof ShadowRoot)}const pt={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach(function(e){var n=t.styles[e]||{},i=t.attributes[e]||{},r=t.elements[e];ft(r)&<(r)&&(Object.assign(r.style,n),Object.keys(i).forEach(function(e){var t=i[e];!1===t?r.removeAttribute(e):r.setAttribute(e,!0===t?"":t)}))})},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(e){var i=t.elements[e],r=t.attributes[e]||{},o=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce(function(e,t){return e[t]="",e},{});ft(i)&<(i)&&(Object.assign(i.style,o),Object.keys(r).forEach(function(e){i.removeAttribute(e)}))})}},requires:["computeStyles"]};function ht(e){return e.split("-")[0]}var mt=Math.max,gt=Math.min,vt=Math.round;function yt(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function bt(){return!/^((?!chrome|android).)*safari/i.test(yt())}function _t(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var i=e.getBoundingClientRect(),r=1,o=1;t&&ft(e)&&(r=e.offsetWidth>0&&vt(i.width)/e.offsetWidth||1,o=e.offsetHeight>0&&vt(i.height)/e.offsetHeight||1);var s=(ut(e)?ct(e):window).visualViewport,a=!bt()&&n,l=(i.left+(a&&s?s.offsetLeft:0))/r,c=(i.top+(a&&s?s.offsetTop:0))/o,u=i.width/r,f=i.height/o;return{width:u,height:f,top:c,right:l+u,bottom:c+f,left:l,x:l,y:c}}function wt(e){var t=_t(e),n=e.offsetWidth,i=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-i)<=1&&(i=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:i}}function xt(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&dt(n)){var i=t;do{if(i&&e.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function Tt(e){return ct(e).getComputedStyle(e)}function Et(e){return["table","td","th"].indexOf(lt(e))>=0}function Ct(e){return((ut(e)?e.ownerDocument:e.document)||window.document).documentElement}function At(e){return"html"===lt(e)?e:e.assignedSlot||e.parentNode||(dt(e)?e.host:null)||Ct(e)}function kt(e){return ft(e)&&"fixed"!==Tt(e).position?e.offsetParent:null}function Ot(e){for(var t=ct(e),n=kt(e);n&&Et(n)&&"static"===Tt(n).position;)n=kt(n);return n&&("html"===lt(n)||"body"===lt(n)&&"static"===Tt(n).position)?t:n||function(e){var t=/firefox/i.test(yt());if(/Trident/i.test(yt())&&ft(e)&&"fixed"===Tt(e).position)return null;var n=At(e);for(dt(n)&&(n=n.host);ft(n)&&["html","body"].indexOf(lt(n))<0;){var i=Tt(n);if("none"!==i.transform||"none"!==i.perspective||"paint"===i.contain||-1!==["transform","perspective"].indexOf(i.willChange)||t&&"filter"===i.willChange||t&&i.filter&&"none"!==i.filter)return n;n=n.parentNode}return null}(e)||t}function St(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Dt(e,t,n){return mt(e,gt(t,n))}function Lt(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function jt(e,t){return t.reduce(function(t,n){return t[n]=e,t},{})}const Nt={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,i=e.name,r=e.options,o=n.elements.arrow,s=n.modifiersData.popperOffsets,a=ht(n.placement),l=St(a),c=[Re,Fe].indexOf(a)>=0?"height":"width";if(o&&s){var u=function(e,t){return Lt("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:jt(e,Be))}(r.padding,n),f=wt(o),d="y"===l?He:Re,p="y"===l?qe:Fe,h=n.rects.reference[c]+n.rects.reference[l]-s[l]-n.rects.popper[c],m=s[l]-n.rects.reference[l],g=Ot(o),v=g?"y"===l?g.clientHeight||0:g.clientWidth||0:0,y=v/2-f[c]/2+(h/2-m/2),b=Dt(u[d],y,v-f[c]-u[p]);n.modifiersData[i]=((t={})[l]=b,t.centerOffset=b-y,t)}},effect:function(e){var t=e.state,n=e.options.element,i=void 0===n?"[data-popper-arrow]":n;null!=i&&("string"!=typeof i||(i=t.elements.popper.querySelector(i)))&&xt(t.elements.popper,i)&&(t.elements.arrow=i)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Pt(e){return e.split("-")[1]}var Mt={top:"auto",right:"auto",bottom:"auto",left:"auto"};function It(e){var t,n=e.popper,i=e.popperRect,r=e.placement,o=e.variation,s=e.offsets,a=e.position,l=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,f=e.isFixed,d=s.x,p=void 0===d?0:d,h=s.y,m=void 0===h?0:h,g="function"==typeof u?u({x:p,y:m}):{x:p,y:m};p=g.x,m=g.y;var v=s.hasOwnProperty("x"),y=s.hasOwnProperty("y"),b=Re,_=He,w=window;if(c){var x=Ot(n),T="clientHeight",E="clientWidth";x===ct(n)&&"static"!==Tt(x=Ct(n)).position&&"absolute"===a&&(T="scrollHeight",E="scrollWidth"),(r===He||(r===Re||r===Fe)&&o===Ve)&&(_=qe,m-=(f&&x===w&&w.visualViewport?w.visualViewport.height:x[T])-i.height,m*=l?1:-1),r!==Re&&(r!==He&&r!==qe||o!==Ve)||(b=Fe,p-=(f&&x===w&&w.visualViewport?w.visualViewport.width:x[E])-i.width,p*=l?1:-1)}var C,A=Object.assign({position:a},c&&Mt),k=!0===u?function(e,t){var n=e.y,i=t.devicePixelRatio||1;return{x:vt(e.x*i)/i||0,y:vt(n*i)/i||0}}({x:p,y:m},ct(n)):{x:p,y:m};return p=k.x,m=k.y,Object.assign({},A,l?((C={})[_]=y?"0":"",C[b]=v?"0":"",C.transform=(w.devicePixelRatio||1)<=1?"translate("+p+"px, "+m+"px)":"translate3d("+p+"px, "+m+"px, 0)",C):((t={})[_]=y?m+"px":"",t[b]=v?p+"px":"",t.transform="",t))}const $t={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,i=n.gpuAcceleration,r=void 0===i||i,o=n.adaptive,s=void 0===o||o,a=n.roundOffsets,l=void 0===a||a,c={placement:ht(t.placement),variation:Pt(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:r,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,It(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,It(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}};var Ht={passive:!0};const qt={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,i=e.options,r=i.scroll,o=void 0===r||r,s=i.resize,a=void 0===s||s,l=ct(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&c.forEach(function(e){e.addEventListener("scroll",n.update,Ht)}),a&&l.addEventListener("resize",n.update,Ht),function(){o&&c.forEach(function(e){e.removeEventListener("scroll",n.update,Ht)}),a&&l.removeEventListener("resize",n.update,Ht)}},data:{}};var Ft={left:"right",right:"left",bottom:"top",top:"bottom"};function Rt(e){return e.replace(/left|right|bottom|top/g,function(e){return Ft[e]})}var Wt={start:"end",end:"start"};function Bt(e){return e.replace(/start|end/g,function(e){return Wt[e]})}function zt(e){var t=ct(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Vt(e){return _t(Ct(e)).left+zt(e).scrollLeft}function Ut(e){var t=Tt(e);return/auto|scroll|overlay|hidden/.test(t.overflow+t.overflowY+t.overflowX)}function Xt(e){return["html","body","#document"].indexOf(lt(e))>=0?e.ownerDocument.body:ft(e)&&Ut(e)?e:Xt(At(e))}function Yt(e,t){var n;void 0===t&&(t=[]);var i=Xt(e),r=i===(null==(n=e.ownerDocument)?void 0:n.body),o=ct(i),s=r?[o].concat(o.visualViewport||[],Ut(i)?i:[]):i,a=t.concat(s);return r?a:a.concat(Yt(At(s)))}function Qt(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Kt(e,t,n){return t===Xe?Qt(function(e,t){var n=ct(e),i=Ct(e),r=n.visualViewport,o=i.clientWidth,s=i.clientHeight,a=0,l=0;if(r){o=r.width,s=r.height;var c=bt();(c||!c&&"fixed"===t)&&(a=r.offsetLeft,l=r.offsetTop)}return{width:o,height:s,x:a+Vt(e),y:l}}(e,n)):ut(t)?function(e,t){var n=_t(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}(t,n):Qt(function(e){var t,n=Ct(e),i=zt(e),r=null==(t=e.ownerDocument)?void 0:t.body,o=mt(n.scrollWidth,n.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),s=mt(n.scrollHeight,n.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),a=-i.scrollLeft+Vt(e),l=-i.scrollTop;return"rtl"===Tt(r||n).direction&&(a+=mt(n.clientWidth,r?r.clientWidth:0)-o),{width:o,height:s,x:a,y:l}}(Ct(e)))}function Gt(e){var t,n=e.reference,i=e.element,r=e.placement,o=r?ht(r):null,s=r?Pt(r):null,a=n.x+n.width/2-i.width/2,l=n.y+n.height/2-i.height/2;switch(o){case He:t={x:a,y:n.y-i.height};break;case qe:t={x:a,y:n.y+n.height};break;case Fe:t={x:n.x+n.width,y:l};break;case Re:t={x:n.x-i.width,y:l};break;default:t={x:n.x,y:n.y}}var c=o?St(o):null;if(null!=c){var u="y"===c?"height":"width";switch(s){case ze:t[c]=t[c]-(n[u]/2-i[u]/2);break;case Ve:t[c]=t[c]+(n[u]/2-i[u]/2)}}return t}function Jt(e,t){void 0===t&&(t={});var n=t.placement,i=void 0===n?e.placement:n,r=t.strategy,o=void 0===r?e.strategy:r,s=t.boundary,a=void 0===s?Ue:s,l=t.rootBoundary,c=void 0===l?Xe:l,u=t.elementContext,f=void 0===u?Ye:u,d=t.altBoundary,p=void 0!==d&&d,h=t.padding,m=void 0===h?0:h,g=Lt("number"!=typeof m?m:jt(m,Be)),v=e.rects.popper,y=e.elements[p?f===Ye?Qe:Ye:f],b=function(e,t,n,i){var r="clippingParents"===t?function(e){var t=Yt(At(e)),n=["absolute","fixed"].indexOf(Tt(e).position)>=0&&ft(e)?Ot(e):e;return ut(n)?t.filter(function(e){return ut(e)&&xt(e,n)&&"body"!==lt(e)}):[]}(e):[].concat(t),o=[].concat(r,[n]),s=o.reduce(function(t,n){var r=Kt(e,n,i);return t.top=mt(r.top,t.top),t.right=gt(r.right,t.right),t.bottom=gt(r.bottom,t.bottom),t.left=mt(r.left,t.left),t},Kt(e,o[0],i));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}(ut(y)?y:y.contextElement||Ct(e.elements.popper),a,c,o),_=_t(e.elements.reference),w=Gt({reference:_,element:v,strategy:"absolute",placement:i}),x=Qt(Object.assign({},v,w)),T=f===Ye?x:_,E={top:b.top-T.top+g.top,bottom:T.bottom-b.bottom+g.bottom,left:b.left-T.left+g.left,right:T.right-b.right+g.right},C=e.modifiersData.offset;if(f===Ye&&C){var A=C[i];Object.keys(E).forEach(function(e){var t=[Fe,qe].indexOf(e)>=0?1:-1,n=[He,qe].indexOf(e)>=0?"y":"x";E[e]+=A[n]*t})}return E}const Zt={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,i=e.name;if(!t.modifiersData[i]._skip){for(var r=n.mainAxis,o=void 0===r||r,s=n.altAxis,a=void 0===s||s,l=n.fallbackPlacements,c=n.padding,u=n.boundary,f=n.rootBoundary,d=n.altBoundary,p=n.flipVariations,h=void 0===p||p,m=n.allowedAutoPlacements,g=t.options.placement,v=ht(g),y=l||(v!==g&&h?function(e){if(ht(e)===We)return[];var t=Rt(e);return[Bt(e),t,Bt(t)]}(g):[Rt(g)]),b=[g].concat(y).reduce(function(e,n){return e.concat(ht(n)===We?function(e,t){void 0===t&&(t={});var n=t.boundary,i=t.rootBoundary,r=t.padding,o=t.flipVariations,s=t.allowedAutoPlacements,a=void 0===s?Ge:s,l=Pt(t.placement),c=l?o?Ke:Ke.filter(function(e){return Pt(e)===l}):Be,u=c.filter(function(e){return a.indexOf(e)>=0});0===u.length&&(u=c);var f=u.reduce(function(t,o){return t[o]=Jt(e,{placement:o,boundary:n,rootBoundary:i,padding:r})[ht(o)],t},{});return Object.keys(f).sort(function(e,t){return f[e]-f[t]})}(t,{placement:n,boundary:u,rootBoundary:f,padding:c,flipVariations:h,allowedAutoPlacements:m}):n)},[]),_=t.rects.reference,w=t.rects.popper,x=new Map,T=!0,E=b[0],C=0;C=0,D=S?"width":"height",L=Jt(t,{placement:A,boundary:u,rootBoundary:f,altBoundary:d,padding:c}),j=S?O?Fe:Re:O?qe:He;_[D]>w[D]&&(j=Rt(j));var N=Rt(j),P=[];if(o&&P.push(L[k]<=0),a&&P.push(L[j]<=0,L[N]<=0),P.every(function(e){return e})){E=A,T=!1;break}x.set(A,P)}if(T)for(var M=function(e){var t=b.find(function(t){var n=x.get(t);if(n)return n.slice(0,e).every(function(e){return e})});if(t)return E=t,"break"},I=h?3:1;I>0&&"break"!==M(I);I--);t.placement!==E&&(t.modifiersData[i]._skip=!0,t.placement=E,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function en(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function tn(e){return[He,Fe,qe,Re].some(function(t){return e[t]>=0})}const nn={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,i=t.rects.reference,r=t.rects.popper,o=t.modifiersData.preventOverflow,s=Jt(t,{elementContext:"reference"}),a=Jt(t,{altBoundary:!0}),l=en(s,i),c=en(a,r,o),u=tn(l),f=tn(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":f})}},rn={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.name,i=e.options.offset,r=void 0===i?[0,0]:i,o=Ge.reduce(function(e,n){return e[n]=function(e,t,n){var i=ht(e),r=[Re,He].indexOf(i)>=0?-1:1,o="function"==typeof n?n(Object.assign({},t,{placement:e})):n,s=o[0],a=o[1];return s=s||0,a=(a||0)*r,[Re,Fe].indexOf(i)>=0?{x:a,y:s}:{x:s,y:a}}(n,t.rects,r),e},{}),s=o[t.placement],a=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=s.x,t.modifiersData.popperOffsets.y+=a),t.modifiersData[n]=o}},on={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state;t.modifiersData[e.name]=Gt({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},sn={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,i=e.name,r=n.mainAxis,o=void 0===r||r,s=n.altAxis,a=void 0!==s&&s,l=n.tether,c=void 0===l||l,u=n.tetherOffset,f=void 0===u?0:u,d=Jt(t,{boundary:n.boundary,rootBoundary:n.rootBoundary,padding:n.padding,altBoundary:n.altBoundary}),p=ht(t.placement),h=Pt(t.placement),m=!h,g=St(p),v="x"===g?"y":"x",y=t.modifiersData.popperOffsets,b=t.rects.reference,_=t.rects.popper,w="function"==typeof f?f(Object.assign({},t.rects,{placement:t.placement})):f,x="number"==typeof w?{mainAxis:w,altAxis:w}:Object.assign({mainAxis:0,altAxis:0},w),T=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,E={x:0,y:0};if(y){if(o){var C,A="y"===g?He:Re,k="y"===g?qe:Fe,O="y"===g?"height":"width",S=y[g],D=S+d[A],L=S-d[k],j=c?-_[O]/2:0,N=h===ze?b[O]:_[O],P=h===ze?-_[O]:-b[O],M=t.elements.arrow,I=c&&M?wt(M):{width:0,height:0},$=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},H=$[A],q=$[k],F=Dt(0,b[O],I[O]),R=m?b[O]/2-j-F-H-x.mainAxis:N-F-H-x.mainAxis,W=m?-b[O]/2+j+F+q+x.mainAxis:P+F+q+x.mainAxis,B=t.elements.arrow&&Ot(t.elements.arrow),z=null!=(C=null==T?void 0:T[g])?C:0,V=S+W-z,U=Dt(c?gt(D,S+R-z-(B?"y"===g?B.clientTop||0:B.clientLeft||0:0)):D,S,c?mt(L,V):L);y[g]=U,E[g]=U-S}if(a){var X,Y=y[v],Q="y"===v?"height":"width",K=Y+d["x"===g?He:Re],G=Y-d["x"===g?qe:Fe],J=-1!==[He,Re].indexOf(p),Z=null!=(X=null==T?void 0:T[v])?X:0,ee=J?K:Y-b[Q]-_[Q]-Z+x.altAxis,te=J?Y+b[Q]+_[Q]-Z-x.altAxis:G,ne=c&&J?function(e,t,n){var i=Dt(e,t,n);return i>n?n:i}(ee,Y,te):Dt(c?ee:K,Y,c?te:G);y[v]=ne,E[v]=ne-Y}t.modifiersData[i]=E}},requiresIfExists:["offset"]};function an(e,t,n){void 0===n&&(n=!1);var i,r,o=ft(t),s=ft(t)&&function(e){var t=e.getBoundingClientRect(),n=vt(t.width)/e.offsetWidth||1,i=vt(t.height)/e.offsetHeight||1;return 1!==n||1!==i}(t),a=Ct(t),l=_t(e,s,n),c={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(o||!o&&!n)&&(("body"!==lt(t)||Ut(a))&&(c=(i=t)!==ct(i)&&ft(i)?{scrollLeft:(r=i).scrollLeft,scrollTop:r.scrollTop}:zt(i)),ft(t)?((u=_t(t,!0)).x+=t.clientLeft,u.y+=t.clientTop):a&&(u.x=Vt(a))),{x:l.left+c.scrollLeft-u.x,y:l.top+c.scrollTop-u.y,width:l.width,height:l.height}}function ln(e){var t=new Map,n=new Set,i=[];function r(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach(function(e){if(!n.has(e)){var i=t.get(e);i&&r(i)}}),i.push(e)}return e.forEach(function(e){t.set(e.name,e)}),e.forEach(function(e){n.has(e.name)||r(e)}),i}var cn={placement:"bottom",modifiers:[],strategy:"absolute"};function un(){for(var e=arguments.length,t=new Array(e),n=0;nNumber.parseInt(e,10)):"function"==typeof e?t=>e(t,this._element):e}_getPopperConfig(){const e={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return(this._inNavbar||"static"===this._config.display)&&($.setDataAttribute(this._menu,"popper","static"),e.modifiers=[{name:"applyStyles",enabled:!1}]),{...e,...m(this._config.popperConfig,[e])}}_selectMenuItem({key:e,target:t}){const n=R.find(".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",this._menu).filter(e=>a(e));n.length&&v(n,t,e===_n,!n.includes(t)).focus()}static jQueryInterface(e){return this.each(function(){const t=Fn.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e])throw new TypeError(`No method named "${e}"`);t[e]()}})}static clearMenus(e){if(2===e.button||"keyup"===e.type&&"Tab"!==e.key)return;const t=R.find(Dn);for(const n of t){const t=Fn.getInstance(n);if(!t||!1===t._config.autoClose)continue;const i=e.composedPath(),r=i.includes(t._menu);if(i.includes(t._element)||"inside"===t._config.autoClose&&!r||"outside"===t._config.autoClose&&r)continue;if(t._menu.contains(e.target)&&("keyup"===e.type&&"Tab"===e.key||/input|select|option|textarea|form/i.test(e.target.tagName)))continue;const o={relatedTarget:t._element};"click"===e.type&&(o.clickEvent=e),t._completeHide(o)}}static dataApiKeydownHandler(e){const t=/input|textarea/i.test(e.target.tagName),n="Escape"===e.key,i=[bn,_n].includes(e.key);if(!i&&!n)return;if(t&&!n)return;e.preventDefault();const r=this.matches(Sn)?this:R.prev(this,Sn)[0]||R.next(this,Sn)[0]||R.findOne(Sn,e.delegateTarget.parentNode),o=Fn.getOrCreateInstance(r);if(i)return e.stopPropagation(),o.show(),void o._selectMenuItem(e);o._isShown()&&(e.stopPropagation(),o.hide(),r.focus())}}N.on(document,An,Sn,Fn.dataApiKeydownHandler),N.on(document,An,Ln,Fn.dataApiKeydownHandler),N.on(document,Cn,Fn.clearMenus),N.on(document,kn,Fn.clearMenus),N.on(document,Cn,Sn,function(e){e.preventDefault(),Fn.getOrCreateInstance(this).toggle()}),h(Fn);const Rn="backdrop",Wn="show",Bn=`mousedown.bs.${Rn}`,zn={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},Vn={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};class Un extends H{constructor(e){super(),this._config=this._getConfig(e),this._isAppended=!1,this._element=null}static get Default(){return zn}static get DefaultType(){return Vn}static get NAME(){return Rn}show(e){this._config.isVisible?(this._append(),this._getElement().classList.add(Wn),this._emulateAnimation(()=>{m(e)})):m(e)}hide(e){this._config.isVisible?(this._getElement().classList.remove(Wn),this._emulateAnimation(()=>{this.dispose(),m(e)})):m(e)}dispose(){this._isAppended&&(N.off(this._element,Bn),this._element.remove(),this._isAppended=!1)}_getElement(){if(!this._element){const e=document.createElement("div");e.className=this._config.className,this._config.isAnimated&&e.classList.add("fade"),this._element=e}return this._element}_configAfterMerge(e){return e.rootElement=s(e.rootElement),e}_append(){if(this._isAppended)return;const e=this._getElement();this._config.rootElement.append(e),N.on(e,Bn,()=>{m(this._config.clickCallback)}),this._isAppended=!0}_emulateAnimation(e){g(e,this._getElement(),this._config.isAnimated)}}const Xn=".bs.focustrap",Yn=`focusin${Xn}`,Qn=`keydown.tab${Xn}`,Kn="backward",Gn={autofocus:!0,trapElement:null},Jn={autofocus:"boolean",trapElement:"element"};class Zn extends H{constructor(e){super(),this._config=this._getConfig(e),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return Gn}static get DefaultType(){return Jn}static get NAME(){return"focustrap"}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),N.off(document,Xn),N.on(document,Yn,e=>this._handleFocusin(e)),N.on(document,Qn,e=>this._handleKeydown(e)),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,N.off(document,Xn))}_handleFocusin(e){const{trapElement:t}=this._config;if(e.target===document||e.target===t||t.contains(e.target))return;const n=R.focusableChildren(t);0===n.length?t.focus():this._lastTabNavDirection===Kn?n[n.length-1].focus():n[0].focus()}_handleKeydown(e){"Tab"===e.key&&(this._lastTabNavDirection=e.shiftKey?Kn:"forward")}}const ei=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",ti=".sticky-top",ni="padding-right",ii="margin-right";class ri{constructor(){this._element=document.body}getWidth(){const e=document.documentElement.clientWidth;return Math.abs(window.innerWidth-e)}hide(){const e=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,ni,t=>t+e),this._setElementAttributes(ei,ni,t=>t+e),this._setElementAttributes(ti,ii,t=>t-e)}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,ni),this._resetElementAttributes(ei,ni),this._resetElementAttributes(ti,ii)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(e,t,n){const i=this.getWidth();this._applyManipulationCallback(e,e=>{if(e!==this._element&&window.innerWidth>e.clientWidth+i)return;this._saveInitialAttribute(e,t);const r=window.getComputedStyle(e).getPropertyValue(t);e.style.setProperty(t,`${n(Number.parseFloat(r))}px`)})}_saveInitialAttribute(e,t){const n=e.style.getPropertyValue(t);n&&$.setDataAttribute(e,t,n)}_resetElementAttributes(e,t){this._applyManipulationCallback(e,e=>{const n=$.getDataAttribute(e,t);null!==n?($.removeDataAttribute(e,t),e.style.setProperty(t,n)):e.style.removeProperty(t)})}_applyManipulationCallback(e,t){if(o(e))t(e);else for(const n of R.find(e,this._element))t(n)}}const oi=".bs.modal",si=`hide${oi}`,ai=`hidePrevented${oi}`,li=`hidden${oi}`,ci=`show${oi}`,ui=`shown${oi}`,fi=`resize${oi}`,di=`click.dismiss${oi}`,pi=`mousedown.dismiss${oi}`,hi=`keydown.dismiss${oi}`,mi=`click${oi}.data-api`,gi="modal-open",vi="show",yi="modal-static",bi={backdrop:!0,focus:!0,keyboard:!0},_i={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"};class wi extends q{constructor(e,t){super(e,t),this._dialog=R.findOne(".modal-dialog",this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new ri,this._addEventListeners()}static get Default(){return bi}static get DefaultType(){return _i}static get NAME(){return"modal"}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){this._isShown||this._isTransitioning||N.trigger(this._element,ci,{relatedTarget:e}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(gi),this._adjustDialog(),this._backdrop.show(()=>this._showElement(e)))}hide(){this._isShown&&!this._isTransitioning&&(N.trigger(this._element,si).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(vi),this._queueCallback(()=>this._hideModal(),this._element,this._isAnimated())))}dispose(){N.off(window,oi),N.off(this._dialog,oi),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new Un({isVisible:Boolean(this._config.backdrop),isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new Zn({trapElement:this._element})}_showElement(e){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 t=R.findOne(".modal-body",this._dialog);t&&(t.scrollTop=0),this._element.classList.add(vi),this._queueCallback(()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,N.trigger(this._element,ui,{relatedTarget:e})},this._dialog,this._isAnimated())}_addEventListeners(){N.on(this._element,hi,e=>{"Escape"===e.key&&(this._config.keyboard?this.hide():this._triggerBackdropTransition())}),N.on(window,fi,()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()}),N.on(this._element,pi,e=>{N.one(this._element,di,t=>{this._element===e.target&&this._element===t.target&&("static"!==this._config.backdrop?this._config.backdrop&&this.hide():this._triggerBackdropTransition())})})}_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(gi),this._resetAdjustments(),this._scrollBar.reset(),N.trigger(this._element,li)})}_isAnimated(){return this._element.classList.contains("fade")}_triggerBackdropTransition(){if(N.trigger(this._element,ai).defaultPrevented)return;const e=this._element.scrollHeight>document.documentElement.clientHeight,t=this._element.style.overflowY;"hidden"===t||this._element.classList.contains(yi)||(e||(this._element.style.overflowY="hidden"),this._element.classList.add(yi),this._queueCallback(()=>{this._element.classList.remove(yi),this._queueCallback(()=>{this._element.style.overflowY=t},this._dialog)},this._dialog),this._element.focus())}_adjustDialog(){const e=this._element.scrollHeight>document.documentElement.clientHeight,t=this._scrollBar.getWidth(),n=t>0;if(n&&!e){const e=p()?"paddingLeft":"paddingRight";this._element.style[e]=`${t}px`}if(!n&&e){const e=p()?"paddingRight":"paddingLeft";this._element.style[e]=`${t}px`}}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(e,t){return this.each(function(){const n=wi.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===n[e])throw new TypeError(`No method named "${e}"`);n[e](t)}})}}N.on(document,mi,'[data-bs-toggle="modal"]',function(e){const t=R.getElementFromSelector(this);["A","AREA"].includes(this.tagName)&&e.preventDefault(),N.one(t,ci,e=>{e.defaultPrevented||N.one(t,li,()=>{a(this)&&this.focus()})});const n=R.findOne(".modal.show");n&&wi.getInstance(n).hide(),wi.getOrCreateInstance(t).toggle(this)}),W(wi),h(wi);const xi=".bs.offcanvas",Ti=".data-api",Ei=`load${xi}${Ti}`,Ci="show",Ai="showing",ki="hiding",Oi=".offcanvas.show",Si=`show${xi}`,Di=`shown${xi}`,Li=`hide${xi}`,ji=`hidePrevented${xi}`,Ni=`hidden${xi}`,Pi=`resize${xi}`,Mi=`click${xi}${Ti}`,Ii=`keydown.dismiss${xi}`,$i={backdrop:!0,keyboard:!0,scroll:!1},Hi={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"};class qi extends q{constructor(e,t){super(e,t),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return $i}static get DefaultType(){return Hi}static get NAME(){return"offcanvas"}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){this._isShown||N.trigger(this._element,Si,{relatedTarget:e}).defaultPrevented||(this._isShown=!0,this._backdrop.show(),this._config.scroll||(new ri).hide(),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(Ai),this._queueCallback(()=>{this._config.scroll&&!this._config.backdrop||this._focustrap.activate(),this._element.classList.add(Ci),this._element.classList.remove(Ai),N.trigger(this._element,Di,{relatedTarget:e})},this._element,!0))}hide(){this._isShown&&(N.trigger(this._element,Li).defaultPrevented||(this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add(ki),this._backdrop.hide(),this._queueCallback(()=>{this._element.classList.remove(Ci,ki),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||(new ri).reset(),N.trigger(this._element,Ni)},this._element,!0)))}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){const e=Boolean(this._config.backdrop);return new Un({className:"offcanvas-backdrop",isVisible:e,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:e?()=>{"static"!==this._config.backdrop?this.hide():N.trigger(this._element,ji)}:null})}_initializeFocusTrap(){return new Zn({trapElement:this._element})}_addEventListeners(){N.on(this._element,Ii,e=>{"Escape"===e.key&&(this._config.keyboard?this.hide():N.trigger(this._element,ji))})}static jQueryInterface(e){return this.each(function(){const t=qi.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e]||e.startsWith("_")||"constructor"===e)throw new TypeError(`No method named "${e}"`);t[e](this)}})}}N.on(document,Mi,'[data-bs-toggle="offcanvas"]',function(e){const t=R.getElementFromSelector(this);if(["A","AREA"].includes(this.tagName)&&e.preventDefault(),l(this))return;N.one(t,Ni,()=>{a(this)&&this.focus()});const n=R.findOne(Oi);n&&n!==t&&qi.getInstance(n).hide(),qi.getOrCreateInstance(t).toggle(this)}),N.on(window,Ei,()=>{for(const e of R.find(Oi))qi.getOrCreateInstance(e).show()}),N.on(window,Pi,()=>{for(const e of R.find("[aria-modal][class*=show][class*=offcanvas-]"))"fixed"!==getComputedStyle(e).position&&qi.getOrCreateInstance(e).hide()}),W(qi),h(qi);const Fi={"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],dd:[],div:[],dl:[],dt:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","srcset","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},Ri=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),Wi=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,Bi=(e,t)=>{const n=e.nodeName.toLowerCase();return t.includes(n)?!Ri.has(n)||Boolean(Wi.test(e.nodeValue)):t.filter(e=>e instanceof RegExp).some(e=>e.test(n))},zi={allowList:Fi,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"
"},Vi={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},Ui={entry:"(string|element|function|null)",selector:"(string|element)"};class Xi extends H{constructor(e){super(),this._config=this._getConfig(e)}static get Default(){return zi}static get DefaultType(){return Vi}static get NAME(){return"TemplateFactory"}getContent(){return Object.values(this._config.content).map(e=>this._resolvePossibleFunction(e)).filter(Boolean)}hasContent(){return this.getContent().length>0}changeContent(e){return this._checkContent(e),this._config.content={...this._config.content,...e},this}toHtml(){const e=document.createElement("div");e.innerHTML=this._maybeSanitize(this._config.template);for(const[i,r]of Object.entries(this._config.content))this._setContent(e,r,i);const t=e.children[0],n=this._resolvePossibleFunction(this._config.extraClass);return n&&t.classList.add(...n.split(" ")),t}_typeCheckConfig(e){super._typeCheckConfig(e),this._checkContent(e.content)}_checkContent(e){for(const[t,n]of Object.entries(e))super._typeCheckConfig({selector:t,entry:n},Ui)}_setContent(e,t,n){const i=R.findOne(n,e);i&&((t=this._resolvePossibleFunction(t))?o(t)?this._putElementInTemplate(s(t),i):this._config.html?i.innerHTML=this._maybeSanitize(t):i.textContent=t:i.remove())}_maybeSanitize(e){return this._config.sanitize?function(e,t,n){if(!e.length)return e;if(n&&"function"==typeof n)return n(e);const i=(new window.DOMParser).parseFromString(e,"text/html"),r=[].concat(...i.body.querySelectorAll("*"));for(const o of r){const e=o.nodeName.toLowerCase();if(!Object.keys(t).includes(e)){o.remove();continue}const n=[].concat(...o.attributes),i=[].concat(t["*"]||[],t[e]||[]);for(const t of n)Bi(t,i)||o.removeAttribute(t.nodeName)}return i.body.innerHTML}(e,this._config.allowList,this._config.sanitizeFn):e}_resolvePossibleFunction(e){return m(e,[this])}_putElementInTemplate(e,t){if(this._config.html)return t.innerHTML="",void t.append(e);t.textContent=e.textContent}}const Yi=new Set(["sanitize","allowList","sanitizeFn"]),Qi="fade",Ki="show",Gi=".modal",Ji="hide.bs.modal",Zi="hover",er="focus",tr={AUTO:"auto",TOP:"top",RIGHT:p()?"left":"right",BOTTOM:"bottom",LEFT:p()?"right":"left"},nr={allowList:Fi,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"},ir={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 rr extends q{constructor(e,t){if(void 0===mn)throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)");super(e,t),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 nr}static get DefaultType(){return ir}static get NAME(){return"tooltip"}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(){this._isEnabled&&(this._activeTrigger.click=!this._activeTrigger.click,this._isShown()?this._leave():this._enter())}dispose(){clearTimeout(this._timeout),N.off(this._element.closest(Gi),Ji,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("none"===this._element.style.display)throw new Error("Please use show on visible elements");if(!this._isWithContent()||!this._isEnabled)return;const e=N.trigger(this._element,this.constructor.eventName("show")),t=(c(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(e.defaultPrevented||!t)return;this._disposePopper();const n=this._getTipElement();this._element.setAttribute("aria-describedby",n.getAttribute("id"));const{container:i}=this._config;if(this._element.ownerDocument.documentElement.contains(this.tip)||(i.append(n),N.trigger(this._element,this.constructor.eventName("inserted"))),this._popper=this._createPopper(n),n.classList.add(Ki),"ontouchstart"in document.documentElement)for(const r of[].concat(...document.body.children))N.on(r,"mouseover",u);this._queueCallback(()=>{N.trigger(this._element,this.constructor.eventName("shown")),!1===this._isHovered&&this._leave(),this._isHovered=!1},this.tip,this._isAnimated())}hide(){if(this._isShown()&&!N.trigger(this._element,this.constructor.eventName("hide")).defaultPrevented){if(this._getTipElement().classList.remove(Ki),"ontouchstart"in document.documentElement)for(const e of[].concat(...document.body.children))N.off(e,"mouseover",u);this._activeTrigger.click=!1,this._activeTrigger[er]=!1,this._activeTrigger[Zi]=!1,this._isHovered=null,this._queueCallback(()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute("aria-describedby"),N.trigger(this._element,this.constructor.eventName("hidden")))},this.tip,this._isAnimated())}}update(){this._popper&&this._popper.update()}_isWithContent(){return Boolean(this._getTitle())}_getTipElement(){return this.tip||(this.tip=this._createTipElement(this._newContent||this._getContentForTemplate())),this.tip}_createTipElement(e){const t=this._getTemplateFactory(e).toHtml();if(!t)return null;t.classList.remove(Qi,Ki),t.classList.add(`bs-${this.constructor.NAME}-auto`);const n=(e=>{do{e+=Math.floor(1e6*Math.random())}while(document.getElementById(e));return e})(this.constructor.NAME).toString();return t.setAttribute("id",n),this._isAnimated()&&t.classList.add(Qi),t}setContent(e){this._newContent=e,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(e){return this._templateFactory?this._templateFactory.changeContent(e):this._templateFactory=new Xi({...this._config,content:e,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{".tooltip-inner":this._getTitle()}}_getTitle(){return this._resolvePossibleFunction(this._config.title)||this._element.getAttribute("data-bs-original-title")}_initializeOnDelegatedTarget(e){return this.constructor.getOrCreateInstance(e.delegateTarget,this._getDelegateConfig())}_isAnimated(){return this._config.animation||this.tip&&this.tip.classList.contains(Qi)}_isShown(){return this.tip&&this.tip.classList.contains(Ki)}_createPopper(e){const t=m(this._config.placement,[this,e,this._element]),n=tr[t.toUpperCase()];return hn(this._element,e,this._getPopperConfig(n))}_getOffset(){const{offset:e}=this._config;return"string"==typeof e?e.split(",").map(e=>Number.parseInt(e,10)):"function"==typeof e?t=>e(t,this._element):e}_resolvePossibleFunction(e){return m(e,[this._element])}_getPopperConfig(e){const t={placement:e,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:e=>{this._getTipElement().setAttribute("data-popper-placement",e.state.placement)}}]};return{...t,...m(this._config.popperConfig,[t])}}_setListeners(){const e=this._config.trigger.split(" ");for(const t of e)if("click"===t)N.on(this._element,this.constructor.eventName("click"),this._config.selector,e=>{this._initializeOnDelegatedTarget(e).toggle()});else if("manual"!==t){const e=this.constructor.eventName(t===Zi?"mouseenter":"focusin"),n=this.constructor.eventName(t===Zi?"mouseleave":"focusout");N.on(this._element,e,this._config.selector,e=>{const t=this._initializeOnDelegatedTarget(e);t._activeTrigger["focusin"===e.type?er:Zi]=!0,t._enter()}),N.on(this._element,n,this._config.selector,e=>{const t=this._initializeOnDelegatedTarget(e);t._activeTrigger["focusout"===e.type?er:Zi]=t._element.contains(e.relatedTarget),t._leave()})}this._hideModalHandler=()=>{this._element&&this.hide()},N.on(this._element.closest(Gi),Ji,this._hideModalHandler)}_fixTitle(){const e=this._element.getAttribute("title");e&&(this._element.getAttribute("aria-label")||this._element.textContent.trim()||this._element.setAttribute("aria-label",e),this._element.setAttribute("data-bs-original-title",e),this._element.removeAttribute("title"))}_enter(){this._isShown()||this._isHovered?this._isHovered=!0:(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(e,t){clearTimeout(this._timeout),this._timeout=setTimeout(e,t)}_isWithActiveTrigger(){return Object.values(this._activeTrigger).includes(!0)}_getConfig(e){const t=$.getDataAttributes(this._element);for(const n of Object.keys(t))Yi.has(n)&&delete t[n];return e={...t,..."object"==typeof e&&e?e:{}},e=this._mergeConfigObj(e),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}_configAfterMerge(e){return e.container=!1===e.container?document.body:s(e.container),"number"==typeof e.delay&&(e.delay={show:e.delay,hide:e.delay}),"number"==typeof e.title&&(e.title=e.title.toString()),"number"==typeof e.content&&(e.content=e.content.toString()),e}_getDelegateConfig(){const e={};for(const[t,n]of Object.entries(this._config))this.constructor.Default[t]!==n&&(e[t]=n);return e.selector=!1,e.trigger="manual",e}_disposePopper(){this._popper&&(this._popper.destroy(),this._popper=null),this.tip&&(this.tip.remove(),this.tip=null)}static jQueryInterface(e){return this.each(function(){const t=rr.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e])throw new TypeError(`No method named "${e}"`);t[e]()}})}}h(rr);const or={...rr.Default,content:"",offset:[0,8],placement:"right",template:'',trigger:"click"},sr={...rr.DefaultType,content:"(null|string|element|function)"};class ar extends rr{static get Default(){return or}static get DefaultType(){return sr}static get NAME(){return"popover"}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{".popover-header":this._getTitle(),".popover-body":this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(e){return this.each(function(){const t=ar.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e])throw new TypeError(`No method named "${e}"`);t[e]()}})}}h(ar);const lr=".bs.scrollspy",cr=`activate${lr}`,ur=`click${lr}`,fr=`load${lr}.data-api`,dr="active",pr="[href]",hr=".nav-link",mr=`${hr}, .nav-item > ${hr}, .list-group-item`,gr={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null,threshold:[.1,.5,1]},vr={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element",threshold:"array"};class yr extends q{constructor(e,t){super(e,t),this._targetLinks=new Map,this._observableSections=new Map,this._rootElement="visible"===getComputedStyle(this._element).overflowY?null:this._element,this._activeTarget=null,this._observer=null,this._previousScrollData={visibleEntryTop:0,parentScrollTop:0},this.refresh()}static get Default(){return gr}static get DefaultType(){return vr}static get NAME(){return"scrollspy"}refresh(){this._initializeTargetsAndObservables(),this._maybeEnableSmoothScroll(),this._observer?this._observer.disconnect():this._observer=this._getNewObserver();for(const e of this._observableSections.values())this._observer.observe(e)}dispose(){this._observer.disconnect(),super.dispose()}_configAfterMerge(e){return e.target=s(e.target)||document.body,e.rootMargin=e.offset?`${e.offset}px 0px -30%`:e.rootMargin,"string"==typeof e.threshold&&(e.threshold=e.threshold.split(",").map(e=>Number.parseFloat(e))),e}_maybeEnableSmoothScroll(){this._config.smoothScroll&&(N.off(this._config.target,ur),N.on(this._config.target,ur,pr,e=>{const t=this._observableSections.get(e.target.hash);if(t){e.preventDefault();const n=this._rootElement||window,i=t.offsetTop-this._element.offsetTop;if(n.scrollTo)return void n.scrollTo({top:i,behavior:"smooth"});n.scrollTop=i}}))}_getNewObserver(){return new IntersectionObserver(e=>this._observerCallback(e),{root:this._rootElement,threshold:this._config.threshold,rootMargin:this._config.rootMargin})}_observerCallback(e){const t=e=>this._targetLinks.get(`#${e.target.id}`),n=e=>{this._previousScrollData.visibleEntryTop=e.target.offsetTop,this._process(t(e))},i=(this._rootElement||document.documentElement).scrollTop,r=i>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=i;for(const o of e){if(!o.isIntersecting){this._activeTarget=null,this._clearActiveClass(t(o));continue}const e=o.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(r&&e){if(n(o),!i)return}else r||e||n(o)}}_initializeTargetsAndObservables(){this._targetLinks=new Map,this._observableSections=new Map;const e=R.find(pr,this._config.target);for(const t of e){if(!t.hash||l(t))continue;const e=R.findOne(decodeURI(t.hash),this._element);a(e)&&(this._targetLinks.set(decodeURI(t.hash),t),this._observableSections.set(t.hash,e))}}_process(e){this._activeTarget!==e&&(this._clearActiveClass(this._config.target),this._activeTarget=e,e.classList.add(dr),this._activateParents(e),N.trigger(this._element,cr,{relatedTarget:e}))}_activateParents(e){if(e.classList.contains("dropdown-item"))R.findOne(".dropdown-toggle",e.closest(".dropdown")).classList.add(dr);else for(const t of R.parents(e,".nav, .list-group"))for(const e of R.prev(t,mr))e.classList.add(dr)}_clearActiveClass(e){e.classList.remove(dr);const t=R.find(`${pr}.${dr}`,e);for(const n of t)n.classList.remove(dr)}static jQueryInterface(e){return this.each(function(){const t=yr.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e]||e.startsWith("_")||"constructor"===e)throw new TypeError(`No method named "${e}"`);t[e]()}})}}N.on(window,fr,()=>{for(const e of R.find('[data-bs-spy="scroll"]'))yr.getOrCreateInstance(e)}),h(yr);const br=".bs.tab",_r=`hide${br}`,wr=`hidden${br}`,xr=`show${br}`,Tr=`shown${br}`,Er=`click${br}`,Cr=`keydown${br}`,Ar=`load${br}`,kr="ArrowLeft",Or="ArrowRight",Sr="ArrowUp",Dr="ArrowDown",Lr="Home",jr="End",Nr="active",Pr="fade",Mr="show",Ir=".dropdown-toggle",$r=`:not(${Ir})`,Hr='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',qr=`.nav-link${$r}, .list-group-item${$r}, [role="tab"]${$r}, ${Hr}`,Fr=`.${Nr}[data-bs-toggle="tab"], .${Nr}[data-bs-toggle="pill"], .${Nr}[data-bs-toggle="list"]`;class Rr extends q{constructor(e){super(e),this._parent=this._element.closest('.list-group, .nav, [role="tablist"]'),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),N.on(this._element,Cr,e=>this._keydown(e)))}static get NAME(){return"tab"}show(){const e=this._element;if(this._elemIsActive(e))return;const t=this._getActiveElem(),n=t?N.trigger(t,_r,{relatedTarget:e}):null;N.trigger(e,xr,{relatedTarget:t}).defaultPrevented||n&&n.defaultPrevented||(this._deactivate(t,e),this._activate(e,t))}_activate(e,t){e&&(e.classList.add(Nr),this._activate(R.getElementFromSelector(e)),this._queueCallback(()=>{"tab"===e.getAttribute("role")?(e.removeAttribute("tabindex"),e.setAttribute("aria-selected",!0),this._toggleDropDown(e,!0),N.trigger(e,Tr,{relatedTarget:t})):e.classList.add(Mr)},e,e.classList.contains(Pr)))}_deactivate(e,t){e&&(e.classList.remove(Nr),e.blur(),this._deactivate(R.getElementFromSelector(e)),this._queueCallback(()=>{"tab"===e.getAttribute("role")?(e.setAttribute("aria-selected",!1),e.setAttribute("tabindex","-1"),this._toggleDropDown(e,!1),N.trigger(e,wr,{relatedTarget:t})):e.classList.remove(Mr)},e,e.classList.contains(Pr)))}_keydown(e){if(![kr,Or,Sr,Dr,Lr,jr].includes(e.key))return;e.stopPropagation(),e.preventDefault();const t=this._getChildren().filter(e=>!l(e));let n;if([Lr,jr].includes(e.key))n=t[e.key===Lr?0:t.length-1];else{const i=[Or,Dr].includes(e.key);n=v(t,e.target,i,!0)}n&&(n.focus({preventScroll:!0}),Rr.getOrCreateInstance(n).show())}_getChildren(){return R.find(qr,this._parent)}_getActiveElem(){return this._getChildren().find(e=>this._elemIsActive(e))||null}_setInitialAttributes(e,t){this._setAttributeIfNotExists(e,"role","tablist");for(const n of t)this._setInitialAttributesOnChild(n)}_setInitialAttributesOnChild(e){e=this._getInnerElement(e);const t=this._elemIsActive(e),n=this._getOuterElement(e);e.setAttribute("aria-selected",t),n!==e&&this._setAttributeIfNotExists(n,"role","presentation"),t||e.setAttribute("tabindex","-1"),this._setAttributeIfNotExists(e,"role","tab"),this._setInitialAttributesOnTargetPanel(e)}_setInitialAttributesOnTargetPanel(e){const t=R.getElementFromSelector(e);t&&(this._setAttributeIfNotExists(t,"role","tabpanel"),e.id&&this._setAttributeIfNotExists(t,"aria-labelledby",`${e.id}`))}_toggleDropDown(e,t){const n=this._getOuterElement(e);if(!n.classList.contains("dropdown"))return;const i=(e,i)=>{const r=R.findOne(e,n);r&&r.classList.toggle(i,t)};i(Ir,Nr),i(".dropdown-menu",Mr),n.setAttribute("aria-expanded",t)}_setAttributeIfNotExists(e,t,n){e.hasAttribute(t)||e.setAttribute(t,n)}_elemIsActive(e){return e.classList.contains(Nr)}_getInnerElement(e){return e.matches(qr)?e:R.findOne(qr,e)}_getOuterElement(e){return e.closest(".nav-item, .list-group-item")||e}static jQueryInterface(e){return this.each(function(){const t=Rr.getOrCreateInstance(this);if("string"==typeof e){if(void 0===t[e]||e.startsWith("_")||"constructor"===e)throw new TypeError(`No method named "${e}"`);t[e]()}})}}N.on(document,Er,Hr,function(e){["A","AREA"].includes(this.tagName)&&e.preventDefault(),l(this)||Rr.getOrCreateInstance(this).show()}),N.on(window,Ar,()=>{for(const e of R.find(Fr))Rr.getOrCreateInstance(e)}),h(Rr);const Wr=".bs.toast",Br=`mouseover${Wr}`,zr=`mouseout${Wr}`,Vr=`focusin${Wr}`,Ur=`focusout${Wr}`,Xr=`hide${Wr}`,Yr=`hidden${Wr}`,Qr=`show${Wr}`,Kr=`shown${Wr}`,Gr="hide",Jr="show",Zr="showing",eo={animation:"boolean",autohide:"boolean",delay:"number"},to={animation:!0,autohide:!0,delay:5e3};class no extends q{constructor(e,t){super(e,t),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return to}static get DefaultType(){return eo}static get NAME(){return"toast"}show(){N.trigger(this._element,Qr).defaultPrevented||(this._clearTimeout(),this._config.animation&&this._element.classList.add("fade"),this._element.classList.remove(Gr),this._element.classList.add(Jr,Zr),this._queueCallback(()=>{this._element.classList.remove(Zr),N.trigger(this._element,Kr),this._maybeScheduleHide()},this._element,this._config.animation))}hide(){this.isShown()&&(N.trigger(this._element,Xr).defaultPrevented||(this._element.classList.add(Zr),this._queueCallback(()=>{this._element.classList.add(Gr),this._element.classList.remove(Zr,Jr),N.trigger(this._element,Yr)},this._element,this._config.animation)))}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(Jr),super.dispose()}isShown(){return this._element.classList.contains(Jr)}_maybeScheduleHide(){this._config.autohide&&(this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout(()=>{this.hide()},this._config.delay)))}_onInteraction(e,t){switch(e.type){case"mouseover":case"mouseout":this._hasMouseInteraction=t;break;case"focusin":case"focusout":this._hasKeyboardInteraction=t}if(t)return void this._clearTimeout();const n=e.relatedTarget;this._element===n||this._element.contains(n)||this._maybeScheduleHide()}_setListeners(){N.on(this._element,Br,e=>this._onInteraction(e,!0)),N.on(this._element,zr,e=>this._onInteraction(e,!1)),N.on(this._element,Vr,e=>this._onInteraction(e,!0)),N.on(this._element,Ur,e=>this._onInteraction(e,!1))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(e){return this.each(function(){const t=no.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e])throw new TypeError(`No method named "${e}"`);t[e](this)}})}}return W(no),h(no),{Alert:U,Button:Y,Carousel:Te,Collapse:$e,Dropdown:Fn,Modal:wi,Offcanvas:qi,Popover:ar,ScrollSpy:yr,Tab:Rr,Toast:no,Tooltip:rr}});