/*! * bootstrap v5.2.3 (https://getbootstrap.com/) * copyright 2011-2022 the bootstrap authors (https://github.com/twbs/bootstrap/graphs/contributors) * licensed under mit (https://github.com/twbs/bootstrap/blob/main/license) */ !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t="undefined"!=typeof globalthis?globalthis:t||self).bootstrap=e()}(this,(function(){"use strict";const t="transitionend",e=t=>{let e=t.getattribute("data-bs-target");if(!e||"#"===e){let i=t.getattribute("href");if(!i||!i.includes("#")&&!i.startswith("."))return null;i.includes("#")&&!i.startswith("#")&&(i=`#${i.split("#")[1]}`),e=i&&"#"!==i?i.trim():null}return e},i=t=>{const i=e(t);return i&&document.queryselector(i)?i:null},n=t=>{const i=e(t);return i?document.queryselector(i):null},s=e=>{e.dispatchevent(new event(t))},o=t=>!(!t||"object"!=typeof t)&&(void 0!==t.jquery&&(t=t[0]),void 0!==t.nodetype),r=t=>o(t)?t.jquery?t[0]:t:"string"==typeof t&&t.length>0?document.queryselector(t):null,a=t=>{if(!o(t)||0===t.getclientrects().length)return!1;const e="visible"===getcomputedstyle(t).getpropertyvalue("visibility"),i=t.closest("details:not([open])");if(!i)return e;if(i!==t){const e=t.closest("summary");if(e&&e.parentnode!==i)return!1;if(null===e)return!1}return e},l=t=>!t||t.nodetype!==node.element_node||!!t.classlist.contains("disabled")||(void 0!==t.disabled?t.disabled:t.hasattribute("disabled")&&"false"!==t.getattribute("disabled")),c=t=>{if(!document.documentelement.attachshadow)return null;if("function"==typeof t.getrootnode){const e=t.getrootnode();return e instanceof shadowroot?e:null}return t instanceof shadowroot?t:t.parentnode?c(t.parentnode):null},h=()=>{},d=t=>{t.offsetheight},u=()=>window.jquery&&!document.body.hasattribute("data-bs-no-jquery")?window.jquery:null,f=[],p=()=>"rtl"===document.documentelement.dir,g=t=>{var e;e=()=>{const e=u();if(e){const i=t.name,n=e.fn[i];e.fn[i]=t.jqueryinterface,e.fn[i].constructor=t,e.fn[i].noconflict=()=>(e.fn[i]=n,t.jqueryinterface)}},"loading"===document.readystate?(f.length||document.addeventlistener("domcontentloaded",(()=>{for(const t of f)t()})),f.push(e)):e()},m=t=>{"function"==typeof t&&t()},_=(e,i,n=!0)=>{if(!n)return void m(e);const o=(t=>{if(!t)return 0;let{transitionduration:e,transitiondelay:i}=window.getcomputedstyle(t);const n=number.parsefloat(e),s=number.parsefloat(i);return n||s?(e=e.split(",")[0],i=i.split(",")[0],1e3*(number.parsefloat(e)+number.parsefloat(i))):0})(i)+5;let r=!1;const a=({target:n})=>{n===i&&(r=!0,i.removeeventlistener(t,a),m(e))};i.addeventlistener(t,a),settimeout((()=>{r||s(i)}),o)},b=(t,e,i,n)=>{const s=t.length;let o=t.indexof(e);return-1===o?!i&&n?t[s-1]:t[0]:(o+=i?1:-1,n&&(o=(o+s)%s),t[math.max(0,math.min(o,s-1))])},v=/[^.]*(?=\..*)\.|.*/,y=/\..*/,w=/::\d+$/,a={};let e=1;const t={mouseenter:"mouseover",mouseleave:"mouseout"},c=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 o(t,e){return e&&`${e}::${e++}`||t.uidevent||e++}function x(t){const e=o(t);return t.uidevent=e,a[e]=a[e]||{},a[e]}function k(t,e,i=null){return object.values(t).find((t=>t.callable===e&&t.delegationselector===i))}function l(t,e,i){const n="string"==typeof e,s=n?i:e||i;let o=n(t);return c.has(o)||(o=t),[n,s,o]}function d(t,e,i,n,s){if("string"!=typeof e||!t)return;let[o,r,a]=l(e,i,n);if(e in t){const t=t=>function(e){if(!e.relatedtarget||e.relatedtarget!==e.delegatetarget&&!e.delegatetarget.contains(e.relatedtarget))return t.call(this,e)};r=t(r)}const l=x(t),c=l[a]||(l[a]={}),h=k(c,r,o?i:null);if(h)return void(h.oneoff=h.oneoff&&s);const d=o(r,e.replace(v,"")),u=o?function(t,e,i){return function n(s){const o=t.queryselectorall(e);for(let{target:r}=s;r&&r!==this;r=r.parentnode)for(const a of o)if(a===r)return j(s,{delegatetarget:r}),n.oneoff&&p.off(t,s.type,e,i),i.apply(r,[s])}}(t,i,r):function(t,e){return function i(n){return j(n,{delegatetarget:t}),i.oneoff&&p.off(t,n.type,e),e.apply(t,[n])}}(t,r);u.delegationselector=o?i:null,u.callable=r,u.oneoff=s,u.uidevent=d,c[d]=u,t.addeventlistener(a,u,o)}function s(t,e,i,n,s){const o=k(e[i],n,s);o&&(t.removeeventlistener(i,o,boolean(s)),delete e[i][o.uidevent])}function i(t,e,i,n){const s=e[i]||{};for(const o of object.keys(s))if(o.includes(n)){const n=s[o];s(t,e,i,n.callable,n.delegationselector)}}function n(t){return t=t.replace(y,""),t[t]||t}const p={on(t,e,i,n){d(t,e,i,n,!1)},one(t,e,i,n){d(t,e,i,n,!0)},off(t,e,i,n){if("string"!=typeof e||!t)return;const[s,o,r]=l(e,i,n),a=r!==e,l=x(t),c=l[r]||{},h=e.startswith(".");if(void 0===o){if(h)for(const i of object.keys(l))i(t,l,i,e.slice(1));for(const i of object.keys(c)){const n=i.replace(w,"");if(!a||e.includes(n)){const e=c[i];s(t,l,r,e.callable,e.delegationselector)}}}else{if(!object.keys(c).length)return;s(t,l,r,o,s?i:null)}},trigger(t,e,i){if("string"!=typeof e||!t)return null;const n=u();let s=null,o=!0,r=!0,a=!1;e!==n(e)&&n&&(s=n.event(e,i),n(t).trigger(s),o=!s.ispropagationstopped(),r=!s.isimmediatepropagationstopped(),a=s.isdefaultprevented());let l=new event(e,{bubbles:o,cancelable:!0});return l=j(l,i),a&&l.preventdefault(),r&&t.dispatchevent(l),l.defaultprevented&&s&&s.preventdefault(),l}};function j(t,e){for(const[i,n]of object.entries(e||{}))try{t[i]=n}catch(e){object.defineproperty(t,i,{configurable:!0,get:()=>n})}return t}const m=new map,h={set(t,e,i){m.has(t)||m.set(t,new map);const n=m.get(t);n.has(e)||0===n.size?n.set(e,i):console.error(`bootstrap doesn't allow more than one instance per element. bound instance: ${array.from(n.keys())[0]}.`)},get:(t,e)=>m.has(t)&&m.get(t).get(e)||null,remove(t,e){if(!m.has(t))return;const i=m.get(t);i.delete(e),0===i.size&&m.delete(t)}};function $(t){if("true"===t)return!0;if("false"===t)return!1;if(t===number(t).tostring())return number(t);if(""===t||"null"===t)return null;if("string"!=typeof t)return t;try{return json.parse(decodeuricomponent(t))}catch(e){return t}}function w(t){return t.replace(/[a-z]/g,(t=>`-${t.tolowercase()}`))}const b={setdataattribute(t,e,i){t.setattribute(`data-bs-${w(e)}`,i)},removedataattribute(t,e){t.removeattribute(`data-bs-${w(e)}`)},getdataattributes(t){if(!t)return{};const e={},i=object.keys(t.dataset).filter((t=>t.startswith("bs")&&!t.startswith("bsconfig")));for(const n of i){let i=n.replace(/^bs/,"");i=i.charat(0).tolowercase()+i.slice(1,i.length),e[i]=$(t.dataset[n])}return e},getdataattribute:(t,e)=>$(t.getattribute(`data-bs-${w(e)}`))};class f{static get default(){return{}}static get defaulttype(){return{}}static get name(){throw new error('you have to implement the static method "name", for each component!')}_getconfig(t){return t=this._mergeconfigobj(t),t=this._configaftermerge(t),this._typecheckconfig(t),t}_configaftermerge(t){return t}_mergeconfigobj(t,e){const i=o(e)?b.getdataattribute(e,"config"):{};return{...this.constructor.default,..."object"==typeof i?i:{},...o(e)?b.getdataattributes(e):{},..."object"==typeof t?t:{}}}_typecheckconfig(t,e=this.constructor.defaulttype){for(const n of object.keys(e)){const s=e[n],r=t[n],a=o(r)?"element":null==(i=r)?`${i}`:object.prototype.tostring.call(i).match(/\s([a-z]+)/i)[1].tolowercase();if(!new regexp(s).test(a))throw new typeerror(`${this.constructor.name.touppercase()}: option "${n}" provided type "${a}" but expected type "${s}".`)}var i}}class z extends f{constructor(t,e){super(),(t=r(t))&&(this._element=t,this._config=this._getconfig(e),h.set(this._element,this.constructor.data_key,this))}dispose(){h.remove(this._element,this.constructor.data_key),p.off(this._element,this.constructor.event_key);for(const t of object.getownpropertynames(this))this[t]=null}_queuecallback(t,e,i=!0){_(t,e,i)}_getconfig(t){return t=this._mergeconfigobj(t,this._element),t=this._configaftermerge(t),this._typecheckconfig(t),t}static getinstance(t){return h.get(r(t),this.data_key)}static getorcreateinstance(t,e={}){return this.getinstance(t)||new this(t,"object"==typeof e?e:null)}static get version(){return"5.2.3"}static get data_key(){return`bs.${this.name}`}static get event_key(){return`.${this.data_key}`}static eventname(t){return`${t}${this.event_key}`}}const q=(t,e="hide")=>{const i=`click.dismiss${t.event_key}`,s=t.name;p.on(document,i,`[data-bs-dismiss="${s}"]`,(function(i){if(["a","area"].includes(this.tagname)&&i.preventdefault(),l(this))return;const o=n(this)||this.closest(`.${s}`);t.getorcreateinstance(o)[e]()}))};class r extends z{static get name(){return"alert"}close(){if(p.trigger(this._element,"close.bs.alert").defaultprevented)return;this._element.classlist.remove("show");const t=this._element.classlist.contains("fade");this._queuecallback((()=>this._destroyelement()),this._element,t)}_destroyelement(){this._element.remove(),p.trigger(this._element,"closed.bs.alert"),this.dispose()}static jqueryinterface(t){return this.each((function(){const e=r.getorcreateinstance(this);if("string"==typeof t){if(void 0===e[t]||t.startswith("_")||"constructor"===t)throw new typeerror(`no method named "${t}"`);e[t](this)}}))}}q(r,"close"),g(r);const v='[data-bs-toggle="button"]';class k extends z{static get name(){return"button"}toggle(){this._element.setattribute("aria-pressed",this._element.classlist.toggle("active"))}static jqueryinterface(t){return this.each((function(){const e=k.getorcreateinstance(this);"toggle"===t&&e[t]()}))}}p.on(document,"click.bs.button.data-api",v,(t=>{t.preventdefault();const e=t.target.closest(v);k.getorcreateinstance(e).toggle()})),g(k);const q={find:(t,e=document.documentelement)=>[].concat(...element.prototype.queryselectorall.call(e,t)),findone:(t,e=document.documentelement)=>element.prototype.queryselector.call(e,t),children:(t,e)=>[].concat(...t.children).filter((t=>t.matches(e))),parents(t,e){const i=[];let n=t.parentnode.closest(e);for(;n;)i.push(n),n=n.parentnode.closest(e);return i},prev(t,e){let i=t.previouselementsibling;for(;i;){if(i.matches(e))return[i];i=i.previouselementsibling}return[]},next(t,e){let i=t.nextelementsibling;for(;i;){if(i.matches(e))return[i];i=i.nextelementsibling}return[]},focusablechildren(t){const e=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map((t=>`${t}:not([tabindex^="-"])`)).join(",");return this.find(e,t).filter((t=>!l(t)&&a(t)))}},x={endcallback:null,leftcallback:null,rightcallback:null},y={endcallback:"(function|null)",leftcallback:"(function|null)",rightcallback:"(function|null)"};class u extends f{constructor(t,e){super(),this._element=t,t&&u.issupported()&&(this._config=this._getconfig(e),this._deltax=0,this._supportpointerevents=boolean(window.pointerevent),this._initevents())}static get default(){return x}static get defaulttype(){return y}static get name(){return"swipe"}dispose(){p.off(this._element,".bs.swipe")}_start(t){this._supportpointerevents?this._eventispointerpentouch(t)&&(this._deltax=t.clientx):this._deltax=t.touches[0].clientx}_end(t){this._eventispointerpentouch(t)&&(this._deltax=t.clientx-this._deltax),this._handleswipe(),m(this._config.endcallback)}_move(t){this._deltax=t.touches&&t.touches.length>1?0:t.touches[0].clientx-this._deltax}_handleswipe(){const t=math.abs(this._deltax);if(t<=40)return;const e=t/this._deltax;this._deltax=0,e&&m(e>0?this._config.rightcallback:this._config.leftcallback)}_initevents(){this._supportpointerevents?(p.on(this._element,"pointerdown.bs.swipe",(t=>this._start(t))),p.on(this._element,"pointerup.bs.swipe",(t=>this._end(t))),this._element.classlist.add("pointer-event")):(p.on(this._element,"touchstart.bs.swipe",(t=>this._start(t))),p.on(this._element,"touchmove.bs.swipe",(t=>this._move(t))),p.on(this._element,"touchend.bs.swipe",(t=>this._end(t))))}_eventispointerpentouch(t){return this._supportpointerevents&&("pen"===t.pointertype||"touch"===t.pointertype)}static issupported(){return"ontouchstart"in document.documentelement||navigator.maxtouchpoints>0}}const g="next",j="prev",z="left",tt="right",et="slid.bs.carousel",it="carousel",nt="active",st={arrowleft:tt,arrowright:z},ot={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},rt={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"};class at extends z{constructor(t,e){super(t,e),this._interval=null,this._activeelement=null,this._issliding=!1,this.touchtimeout=null,this._swipehelper=null,this._indicatorselement=q.findone(".carousel-indicators",this._element),this._addeventlisteners(),this._config.ride===it&&this.cycle()}static get default(){return ot}static get defaulttype(){return rt}static get name(){return"carousel"}next(){this._slide(g)}nextwhenvisible(){!document.hidden&&a(this._element)&&this.next()}prev(){this._slide(j)}pause(){this._issliding&&s(this._element),this._clearinterval()}cycle(){this._clearinterval(),this._updateinterval(),this._interval=setinterval((()=>this.nextwhenvisible()),this._config.interval)}_maybeenablecycle(){this._config.ride&&(this._issliding?p.one(this._element,et,(()=>this.cycle())):this.cycle())}to(t){const e=this._getitems();if(t>e.length-1||t<0)return;if(this._issliding)return void p.one(this._element,et,(()=>this.to(t)));const i=this._getitemindex(this._getactive());if(i===t)return;const n=t>i?g:j;this._slide(n,e[t])}dispose(){this._swipehelper&&this._swipehelper.dispose(),super.dispose()}_configaftermerge(t){return t.defaultinterval=t.interval,t}_addeventlisteners(){this._config.keyboard&&p.on(this._element,"keydown.bs.carousel",(t=>this._keydown(t))),"hover"===this._config.pause&&(p.on(this._element,"mouseenter.bs.carousel",(()=>this.pause())),p.on(this._element,"mouseleave.bs.carousel",(()=>this._maybeenablecycle()))),this._config.touch&&u.issupported()&&this._addtoucheventlisteners()}_addtoucheventlisteners(){for(const t of q.find(".carousel-item img",this._element))p.on(t,"dragstart.bs.carousel",(t=>t.preventdefault()));const t={leftcallback:()=>this._slide(this._directiontoorder(z)),rightcallback:()=>this._slide(this._directiontoorder(tt)),endcallback:()=>{"hover"===this._config.pause&&(this.pause(),this.touchtimeout&&cleartimeout(this.touchtimeout),this.touchtimeout=settimeout((()=>this._maybeenablecycle()),500+this._config.interval))}};this._swipehelper=new u(this._element,t)}_keydown(t){if(/input|textarea/i.test(t.target.tagname))return;const e=st[t.key];e&&(t.preventdefault(),this._slide(this._directiontoorder(e)))}_getitemindex(t){return this._getitems().indexof(t)}_setactiveindicatorelement(t){if(!this._indicatorselement)return;const e=q.findone(".active",this._indicatorselement);e.classlist.remove(nt),e.removeattribute("aria-current");const i=q.findone(`[data-bs-slide-to="${t}"]`,this._indicatorselement);i&&(i.classlist.add(nt),i.setattribute("aria-current","true"))}_updateinterval(){const t=this._activeelement||this._getactive();if(!t)return;const e=number.parseint(t.getattribute("data-bs-interval"),10);this._config.interval=e||this._config.defaultinterval}_slide(t,e=null){if(this._issliding)return;const i=this._getactive(),n=t===g,s=e||b(this._getitems(),i,n,this._config.wrap);if(s===i)return;const o=this._getitemindex(s),r=e=>p.trigger(this._element,e,{relatedtarget:s,direction:this._ordertodirection(t),from:this._getitemindex(i),to:o});if(r("slide.bs.carousel").defaultprevented)return;if(!i||!s)return;const a=boolean(this._interval);this.pause(),this._issliding=!0,this._setactiveindicatorelement(o),this._activeelement=s;const l=n?"carousel-item-start":"carousel-item-end",c=n?"carousel-item-next":"carousel-item-prev";s.classlist.add(c),d(s),i.classlist.add(l),s.classlist.add(l),this._queuecallback((()=>{s.classlist.remove(l,c),s.classlist.add(nt),i.classlist.remove(nt,c,l),this._issliding=!1,r(et)}),i,this._isanimated()),a&&this.cycle()}_isanimated(){return this._element.classlist.contains("slide")}_getactive(){return q.findone(".active.carousel-item",this._element)}_getitems(){return q.find(".carousel-item",this._element)}_clearinterval(){this._interval&&(clearinterval(this._interval),this._interval=null)}_directiontoorder(t){return p()?t===z?j:g:t===z?g:j}_ordertodirection(t){return p()?t===j?z:tt:t===j?tt:z}static jqueryinterface(t){return this.each((function(){const e=at.getorcreateinstance(this,t);if("number"!=typeof t){if("string"==typeof t){if(void 0===e[t]||t.startswith("_")||"constructor"===t)throw new typeerror(`no method named "${t}"`);e[t]()}}else e.to(t)}))}}p.on(document,"click.bs.carousel.data-api","[data-bs-slide], [data-bs-slide-to]",(function(t){const e=n(this);if(!e||!e.classlist.contains(it))return;t.preventdefault();const i=at.getorcreateinstance(e),s=this.getattribute("data-bs-slide-to");return s?(i.to(s),void i._maybeenablecycle()):"next"===b.getdataattribute(this,"slide")?(i.next(),void i._maybeenablecycle()):(i.prev(),void i._maybeenablecycle())})),p.on(window,"load.bs.carousel.data-api",(()=>{const t=q.find('[data-bs-ride="carousel"]');for(const e of t)at.getorcreateinstance(e)})),g(at);const lt="show",ct="collapse",ht="collapsing",dt='[data-bs-toggle="collapse"]',ut={parent:null,toggle:!0},ft={parent:"(null|element)",toggle:"boolean"};class pt extends z{constructor(t,e){super(t,e),this._istransitioning=!1,this._triggerarray=[];const n=q.find(dt);for(const t of n){const e=i(t),n=q.find(e).filter((t=>t===this._element));null!==e&&n.length&&this._triggerarray.push(t)}this._initializechildren(),this._config.parent||this._addariaandcollapsedclass(this._triggerarray,this._isshown()),this._config.toggle&&this.toggle()}static get default(){return ut}static get defaulttype(){return ft}static get name(){return"collapse"}toggle(){this._isshown()?this.hide():this.show()}show(){if(this._istransitioning||this._isshown())return;let t=[];if(this._config.parent&&(t=this._getfirstlevelchildren(".collapse.show, .collapse.collapsing").filter((t=>t!==this._element)).map((t=>pt.getorcreateinstance(t,{toggle:!1})))),t.length&&t[0]._istransitioning)return;if(p.trigger(this._element,"show.bs.collapse").defaultprevented)return;for(const e of t)e.hide();const e=this._getdimension();this._element.classlist.remove(ct),this._element.classlist.add(ht),this._element.style[e]=0,this._addariaandcollapsedclass(this._triggerarray,!0),this._istransitioning=!0;const i=`scroll${e[0].touppercase()+e.slice(1)}`;this._queuecallback((()=>{this._istransitioning=!1,this._element.classlist.remove(ht),this._element.classlist.add(ct,lt),this._element.style[e]="",p.trigger(this._element,"shown.bs.collapse")}),this._element,!0),this._element.style[e]=`${this._element[i]}px`}hide(){if(this._istransitioning||!this._isshown())return;if(p.trigger(this._element,"hide.bs.collapse").defaultprevented)return;const t=this._getdimension();this._element.style[t]=`${this._element.getboundingclientrect()[t]}px`,d(this._element),this._element.classlist.add(ht),this._element.classlist.remove(ct,lt);for(const t of this._triggerarray){const e=n(t);e&&!this._isshown(e)&&this._addariaandcollapsedclass([t],!1)}this._istransitioning=!0,this._element.style[t]="",this._queuecallback((()=>{this._istransitioning=!1,this._element.classlist.remove(ht),this._element.classlist.add(ct),p.trigger(this._element,"hidden.bs.collapse")}),this._element,!0)}_isshown(t=this._element){return t.classlist.contains(lt)}_configaftermerge(t){return t.toggle=boolean(t.toggle),t.parent=r(t.parent),t}_getdimension(){return this._element.classlist.contains("collapse-horizontal")?"width":"height"}_initializechildren(){if(!this._config.parent)return;const t=this._getfirstlevelchildren(dt);for(const e of t){const t=n(e);t&&this._addariaandcollapsedclass([e],this._isshown(t))}}_getfirstlevelchildren(t){const e=q.find(":scope .collapse .collapse",this._config.parent);return q.find(t,this._config.parent).filter((t=>!e.includes(t)))}_addariaandcollapsedclass(t,e){if(t.length)for(const i of t)i.classlist.toggle("collapsed",!e),i.setattribute("aria-expanded",e)}static jqueryinterface(t){const e={};return"string"==typeof t&&/show|hide/.test(t)&&(e.toggle=!1),this.each((function(){const i=pt.getorcreateinstance(this,e);if("string"==typeof t){if(void 0===i[t])throw new typeerror(`no method named "${t}"`);i[t]()}}))}}p.on(document,"click.bs.collapse.data-api",dt,(function(t){("a"===t.target.tagname||t.delegatetarget&&"a"===t.delegatetarget.tagname)&&t.preventdefault();const e=i(this),n=q.find(e);for(const t of n)pt.getorcreateinstance(t,{toggle:!1}).toggle()})),g(pt);var gt="top",mt="bottom",_t="right",bt="left",vt="auto",yt=[gt,mt,_t,bt],wt="start",at="end",et="clippingparents",tt="viewport",ct="popper",ot="reference",xt=yt.reduce((function(t,e){return t.concat([e+"-"+wt,e+"-"+at])}),[]),kt=[].concat(yt,[vt]).reduce((function(t,e){return t.concat([e,e+"-"+wt,e+"-"+at])}),[]),lt="beforeread",dt="read",st="afterread",it="beforemain",nt="main",pt="aftermain",jt="beforewrite",mt="write",ht="afterwrite",$t=[lt,dt,st,it,nt,pt,jt,mt,ht];function wt(t){return t?(t.nodename||"").tolowercase():null}function bt(t){if(null==t)return window;if("[object window]"!==t.tostring()){var e=t.ownerdocument;return e&&e.defaultview||window}return t}function ft(t){return t instanceof bt(t).element||t instanceof element}function zt(t){return t instanceof bt(t).htmlelement||t instanceof htmlelement}function qt(t){return"undefined"!=typeof shadowroot&&(t instanceof bt(t).shadowroot||t instanceof shadowroot)}const rt={name:"applystyles",enabled:!0,phase:"write",fn:function(t){var e=t.state;object.keys(e.elements).foreach((function(t){var i=e.styles[t]||{},n=e.attributes[t]||{},s=e.elements[t];zt(s)&&wt(s)&&(object.assign(s.style,i),object.keys(n).foreach((function(t){var e=n[t];!1===e?s.removeattribute(t):s.setattribute(t,!0===e?"":e)})))}))},effect:function(t){var e=t.state,i={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return object.assign(e.elements.popper.style,i.popper),e.styles=i,e.elements.arrow&&object.assign(e.elements.arrow.style,i.arrow),function(){object.keys(e.elements).foreach((function(t){var n=e.elements[t],s=e.attributes[t]||{},o=object.keys(e.styles.hasownproperty(t)?e.styles[t]:i[t]).reduce((function(t,e){return t[e]="",t}),{});zt(n)&&wt(n)&&(object.assign(n.style,o),object.keys(s).foreach((function(t){n.removeattribute(t)})))}))}},requires:["computestyles"]};function vt(t){return t.split("-")[0]}var kt=math.max,qt=math.min,xt=math.round;function yt(){var t=navigator.useragentdata;return null!=t&&t.brands?t.brands.map((function(t){return t.brand+"/"+t.version})).join(" "):navigator.useragent}function ut(){return!/^((?!chrome|android).)*safari/i.test(yt())}function gt(t,e,i){void 0===e&&(e=!1),void 0===i&&(i=!1);var n=t.getboundingclientrect(),s=1,o=1;e&&zt(t)&&(s=t.offsetwidth>0&&xt(n.width)/t.offsetwidth||1,o=t.offsetheight>0&&xt(n.height)/t.offsetheight||1);var r=(ft(t)?bt(t):window).visualviewport,a=!ut()&&i,l=(n.left+(a&&r?r.offsetleft:0))/s,c=(n.top+(a&&r?r.offsettop:0))/o,h=n.width/s,d=n.height/o;return{width:h,height:d,top:c,right:l+h,bottom:c+d,left:l,x:l,y:c}}function jt(t){var e=gt(t),i=t.offsetwidth,n=t.offsetheight;return math.abs(e.width-i)<=1&&(i=e.width),math.abs(e.height-n)<=1&&(n=e.height),{x:t.offsetleft,y:t.offsettop,width:i,height:n}}function zt(t,e){var i=e.getrootnode&&e.getrootnode();if(t.contains(e))return!0;if(i&&qt(i)){var n=e;do{if(n&&t.issamenode(n))return!0;n=n.parentnode||n.host}while(n)}return!1}function te(t){return bt(t).getcomputedstyle(t)}function ee(t){return["table","td","th"].indexof(wt(t))>=0}function ie(t){return((ft(t)?t.ownerdocument:t.document)||window.document).documentelement}function ne(t){return"html"===wt(t)?t:t.assignedslot||t.parentnode||(qt(t)?t.host:null)||ie(t)}function se(t){return zt(t)&&"fixed"!==te(t).position?t.offsetparent:null}function oe(t){for(var e=bt(t),i=se(t);i&&ee(i)&&"static"===te(i).position;)i=se(i);return i&&("html"===wt(i)||"body"===wt(i)&&"static"===te(i).position)?e:i||function(t){var e=/firefox/i.test(yt());if(/trident/i.test(yt())&&zt(t)&&"fixed"===te(t).position)return null;var i=ne(t);for(qt(i)&&(i=i.host);zt(i)&&["html","body"].indexof(wt(i))<0;){var n=te(i);if("none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||-1!==["transform","perspective"].indexof(n.willchange)||e&&"filter"===n.willchange||e&&n.filter&&"none"!==n.filter)return i;i=i.parentnode}return null}(t)||e}function re(t){return["top","bottom"].indexof(t)>=0?"x":"y"}function ae(t,e,i){return kt(t,qt(e,i))}function le(t){return object.assign({},{top:0,right:0,bottom:0,left:0},t)}function ce(t,e){return e.reduce((function(e,i){return e[i]=t,e}),{})}const he={name:"arrow",enabled:!0,phase:"main",fn:function(t){var e,i=t.state,n=t.name,s=t.options,o=i.elements.arrow,r=i.modifiersdata.popperoffsets,a=vt(i.placement),l=re(a),c=[bt,_t].indexof(a)>=0?"height":"width";if(o&&r){var h=function(t,e){return le("number"!=typeof(t="function"==typeof t?t(object.assign({},e.rects,{placement:e.placement})):t)?t:ce(t,yt))}(s.padding,i),d=jt(o),u="y"===l?gt:bt,f="y"===l?mt:_t,p=i.rects.reference[c]+i.rects.reference[l]-r[l]-i.rects.popper[c],g=r[l]-i.rects.reference[l],m=oe(o),_=m?"y"===l?m.clientheight||0:m.clientwidth||0:0,b=p/2-g/2,v=h[u],y=_-d[c]-h[f],w=_/2-d[c]/2+b,a=ae(v,w,y),e=l;i.modifiersdata[n]=((e={})[e]=a,e.centeroffset=a-w,e)}},effect:function(t){var e=t.state,i=t.options.element,n=void 0===i?"[data-popper-arrow]":i;null!=n&&("string"!=typeof n||(n=e.elements.popper.queryselector(n)))&&zt(e.elements.popper,n)&&(e.elements.arrow=n)},requires:["popperoffsets"],requiresifexists:["preventoverflow"]};function de(t){return t.split("-")[1]}var ue={top:"auto",right:"auto",bottom:"auto",left:"auto"};function fe(t){var e,i=t.popper,n=t.popperrect,s=t.placement,o=t.variation,r=t.offsets,a=t.position,l=t.gpuacceleration,c=t.adaptive,h=t.roundoffsets,d=t.isfixed,u=r.x,f=void 0===u?0:u,p=r.y,g=void 0===p?0:p,m="function"==typeof h?h({x:f,y:g}):{x:f,y:g};f=m.x,g=m.y;var _=r.hasownproperty("x"),b=r.hasownproperty("y"),v=bt,y=gt,w=window;if(c){var a=oe(i),e="clientheight",t="clientwidth";a===bt(i)&&"static"!==te(a=ie(i)).position&&"absolute"===a&&(e="scrollheight",t="scrollwidth"),(s===gt||(s===bt||s===_t)&&o===at)&&(y=mt,g-=(d&&a===w&&w.visualviewport?w.visualviewport.height:a[e])-n.height,g*=l?1:-1),s!==bt&&(s!==gt&&s!==mt||o!==at)||(v=_t,f-=(d&&a===w&&w.visualviewport?w.visualviewport.width:a[t])-n.width,f*=l?1:-1)}var c,o=object.assign({position:a},c&&ue),x=!0===h?function(t){var e=t.x,i=t.y,n=window.devicepixelratio||1;return{x:xt(e*n)/n||0,y:xt(i*n)/n||0}}({x:f,y:g}):{x:f,y:g};return f=x.x,g=x.y,l?object.assign({},o,((c={})[y]=b?"0":"",c[v]=_?"0":"",c.transform=(w.devicepixelratio||1)<=1?"translate("+f+"px, "+g+"px)":"translate3d("+f+"px, "+g+"px, 0)",c)):object.assign({},o,((e={})[y]=b?g+"px":"",e[v]=_?f+"px":"",e.transform="",e))}const pe={name:"computestyles",enabled:!0,phase:"beforewrite",fn:function(t){var e=t.state,i=t.options,n=i.gpuacceleration,s=void 0===n||n,o=i.adaptive,r=void 0===o||o,a=i.roundoffsets,l=void 0===a||a,c={placement:vt(e.placement),variation:de(e.placement),popper:e.elements.popper,popperrect:e.rects.popper,gpuacceleration:s,isfixed:"fixed"===e.options.strategy};null!=e.modifiersdata.popperoffsets&&(e.styles.popper=object.assign({},e.styles.popper,fe(object.assign({},c,{offsets:e.modifiersdata.popperoffsets,position:e.options.strategy,adaptive:r,roundoffsets:l})))),null!=e.modifiersdata.arrow&&(e.styles.arrow=object.assign({},e.styles.arrow,fe(object.assign({},c,{offsets:e.modifiersdata.arrow,position:"absolute",adaptive:!1,roundoffsets:l})))),e.attributes.popper=object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})},data:{}};var ge={passive:!0};const me={name:"eventlisteners",enabled:!0,phase:"write",fn:function(){},effect:function(t){var e=t.state,i=t.instance,n=t.options,s=n.scroll,o=void 0===s||s,r=n.resize,a=void 0===r||r,l=bt(e.elements.popper),c=[].concat(e.scrollparents.reference,e.scrollparents.popper);return o&&c.foreach((function(t){t.addeventlistener("scroll",i.update,ge)})),a&&l.addeventlistener("resize",i.update,ge),function(){o&&c.foreach((function(t){t.removeeventlistener("scroll",i.update,ge)})),a&&l.removeeventlistener("resize",i.update,ge)}},data:{}};var _e={left:"right",right:"left",bottom:"top",top:"bottom"};function be(t){return t.replace(/left|right|bottom|top/g,(function(t){return _e[t]}))}var ve={start:"end",end:"start"};function ye(t){return t.replace(/start|end/g,(function(t){return ve[t]}))}function we(t){var e=bt(t);return{scrollleft:e.pagexoffset,scrolltop:e.pageyoffset}}function ae(t){return gt(ie(t)).left+we(t).scrollleft}function ee(t){var e=te(t),i=e.overflow,n=e.overflowx,s=e.overflowy;return/auto|scroll|overlay|hidden/.test(i+s+n)}function te(t){return["html","body","#document"].indexof(wt(t))>=0?t.ownerdocument.body:zt(t)&&ee(t)?t:te(ne(t))}function ce(t,e){var i;void 0===e&&(e=[]);var n=te(t),s=n===(null==(i=t.ownerdocument)?void 0:i.body),o=bt(n),r=s?[o].concat(o.visualviewport||[],ee(n)?n:[]):n,a=e.concat(r);return s?a:a.concat(ce(ne(r)))}function oe(t){return object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function xe(t,e,i){return e===tt?oe(function(t,e){var i=bt(t),n=ie(t),s=i.visualviewport,o=n.clientwidth,r=n.clientheight,a=0,l=0;if(s){o=s.width,r=s.height;var c=ut();(c||!c&&"fixed"===e)&&(a=s.offsetleft,l=s.offsettop)}return{width:o,height:r,x:a+ae(t),y:l}}(t,i)):ft(e)?function(t,e){var i=gt(t,!1,"fixed"===e);return i.top=i.top+t.clienttop,i.left=i.left+t.clientleft,i.bottom=i.top+t.clientheight,i.right=i.left+t.clientwidth,i.width=t.clientwidth,i.height=t.clientheight,i.x=i.left,i.y=i.top,i}(e,i):oe(function(t){var e,i=ie(t),n=we(t),s=null==(e=t.ownerdocument)?void 0:e.body,o=kt(i.scrollwidth,i.clientwidth,s?s.scrollwidth:0,s?s.clientwidth:0),r=kt(i.scrollheight,i.clientheight,s?s.scrollheight:0,s?s.clientheight:0),a=-n.scrollleft+ae(t),l=-n.scrolltop;return"rtl"===te(s||i).direction&&(a+=kt(i.clientwidth,s?s.clientwidth:0)-o),{width:o,height:r,x:a,y:l}}(ie(t)))}function ke(t){var e,i=t.reference,n=t.element,s=t.placement,o=s?vt(s):null,r=s?de(s):null,a=i.x+i.width/2-n.width/2,l=i.y+i.height/2-n.height/2;switch(o){case gt:e={x:a,y:i.y-n.height};break;case mt:e={x:a,y:i.y+i.height};break;case _t:e={x:i.x+i.width,y:l};break;case bt:e={x:i.x-n.width,y:l};break;default:e={x:i.x,y:i.y}}var c=o?re(o):null;if(null!=c){var h="y"===c?"height":"width";switch(r){case wt:e[c]=e[c]-(i[h]/2-n[h]/2);break;case at:e[c]=e[c]+(i[h]/2-n[h]/2)}}return e}function le(t,e){void 0===e&&(e={});var i=e,n=i.placement,s=void 0===n?t.placement:n,o=i.strategy,r=void 0===o?t.strategy:o,a=i.boundary,l=void 0===a?et:a,c=i.rootboundary,h=void 0===c?tt:c,d=i.elementcontext,u=void 0===d?ct:d,f=i.altboundary,p=void 0!==f&&f,g=i.padding,m=void 0===g?0:g,_=le("number"!=typeof m?m:ce(m,yt)),b=u===ct?ot:ct,v=t.rects.popper,y=t.elements[p?b:u],w=function(t,e,i,n){var s="clippingparents"===e?function(t){var e=ce(ne(t)),i=["absolute","fixed"].indexof(te(t).position)>=0&&zt(t)?oe(t):t;return ft(i)?e.filter((function(t){return ft(t)&&zt(t,i)&&"body"!==wt(t)})):[]}(t):[].concat(e),o=[].concat(s,[i]),r=o[0],a=o.reduce((function(e,i){var s=xe(t,i,n);return e.top=kt(s.top,e.top),e.right=qt(s.right,e.right),e.bottom=qt(s.bottom,e.bottom),e.left=kt(s.left,e.left),e}),xe(t,r,n));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}(ft(y)?y:y.contextelement||ie(t.elements.popper),l,h,r),a=gt(t.elements.reference),e=ke({reference:a,element:v,strategy:"absolute",placement:s}),t=oe(object.assign({},v,e)),c=u===ct?t:a,o={top:w.top-c.top+_.top,bottom:c.bottom-w.bottom+_.bottom,left:w.left-c.left+_.left,right:c.right-w.right+_.right},x=t.modifiersdata.offset;if(u===ct&&x){var k=x[s];object.keys(o).foreach((function(t){var e=[_t,mt].indexof(t)>=0?1:-1,i=[gt,mt].indexof(t)>=0?"y":"x";o[t]+=k[i]*e}))}return o}function de(t,e){void 0===e&&(e={});var i=e,n=i.placement,s=i.boundary,o=i.rootboundary,r=i.padding,a=i.flipvariations,l=i.allowedautoplacements,c=void 0===l?kt:l,h=de(n),d=h?a?xt:xt.filter((function(t){return de(t)===h})):yt,u=d.filter((function(t){return c.indexof(t)>=0}));0===u.length&&(u=d);var f=u.reduce((function(e,i){return e[i]=le(t,{placement:i,boundary:s,rootboundary:o,padding:r})[vt(i)],e}),{});return object.keys(f).sort((function(t,e){return f[t]-f[e]}))}const se={name:"flip",enabled:!0,phase:"main",fn:function(t){var e=t.state,i=t.options,n=t.name;if(!e.modifiersdata[n]._skip){for(var s=i.mainaxis,o=void 0===s||s,r=i.altaxis,a=void 0===r||r,l=i.fallbackplacements,c=i.padding,h=i.boundary,d=i.rootboundary,u=i.altboundary,f=i.flipvariations,p=void 0===f||f,g=i.allowedautoplacements,m=e.options.placement,_=vt(m),b=l||(_!==m&&p?function(t){if(vt(t)===vt)return[];var e=be(t);return[ye(t),e,ye(e)]}(m):[be(m)]),v=[m].concat(b).reduce((function(t,i){return t.concat(vt(i)===vt?de(e,{placement:i,boundary:h,rootboundary:d,padding:c,flipvariations:p,allowedautoplacements:g}):i)}),[]),y=e.rects.reference,w=e.rects.popper,a=new map,e=!0,t=v[0],c=0;c=0,d=l?"width":"height",s=le(e,{placement:o,boundary:h,rootboundary:d,altboundary:u,padding:c}),i=l?k?_t:bt:k?mt:gt;y[d]>w[d]&&(i=be(i));var n=be(i),p=[];if(o&&p.push(s[x]<=0),a&&p.push(s[i]<=0,s[n]<=0),p.every((function(t){return t}))){t=o,e=!1;break}a.set(o,p)}if(e)for(var j=function(t){var e=v.find((function(e){var i=a.get(e);if(i)return i.slice(0,t).every((function(t){return t}))}));if(e)return t=e,"break"},m=p?3:1;m>0&&"break"!==j(m);m--);e.placement!==t&&(e.modifiersdata[n]._skip=!0,e.placement=t,e.reset=!0)}},requiresifexists:["offset"],data:{_skip:!1}};function ie(t,e,i){return void 0===i&&(i={x:0,y:0}),{top:t.top-e.height-i.y,right:t.right-e.width+i.x,bottom:t.bottom-e.height+i.y,left:t.left-e.width-i.x}}function ne(t){return[gt,_t,mt,bt].some((function(e){return t[e]>=0}))}const pe={name:"hide",enabled:!0,phase:"main",requiresifexists:["preventoverflow"],fn:function(t){var e=t.state,i=t.name,n=e.rects.reference,s=e.rects.popper,o=e.modifiersdata.preventoverflow,r=le(e,{elementcontext:"reference"}),a=le(e,{altboundary:!0}),l=ie(r,n),c=ie(a,s,o),h=ne(l),d=ne(c);e.modifiersdata[i]={referenceclippingoffsets:l,popperescapeoffsets:c,isreferencehidden:h,haspopperescaped:d},e.attributes.popper=object.assign({},e.attributes.popper,{"data-popper-reference-hidden":h,"data-popper-escaped":d})}},je={name:"offset",enabled:!0,phase:"main",requires:["popperoffsets"],fn:function(t){var e=t.state,i=t.options,n=t.name,s=i.offset,o=void 0===s?[0,0]:s,r=kt.reduce((function(t,i){return t[i]=function(t,e,i){var n=vt(t),s=[bt,gt].indexof(n)>=0?-1:1,o="function"==typeof i?i(object.assign({},e,{placement:t})):i,r=o[0],a=o[1];return r=r||0,a=(a||0)*s,[bt,_t].indexof(n)>=0?{x:a,y:r}:{x:r,y:a}}(i,e.rects,o),t}),{}),a=r[e.placement],l=a.x,c=a.y;null!=e.modifiersdata.popperoffsets&&(e.modifiersdata.popperoffsets.x+=l,e.modifiersdata.popperoffsets.y+=c),e.modifiersdata[n]=r}},me={name:"popperoffsets",enabled:!0,phase:"read",fn:function(t){var e=t.state,i=t.name;e.modifiersdata[i]=ke({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})},data:{}},he={name:"preventoverflow",enabled:!0,phase:"main",fn:function(t){var e=t.state,i=t.options,n=t.name,s=i.mainaxis,o=void 0===s||s,r=i.altaxis,a=void 0!==r&&r,l=i.boundary,c=i.rootboundary,h=i.altboundary,d=i.padding,u=i.tether,f=void 0===u||u,p=i.tetheroffset,g=void 0===p?0:p,m=le(e,{boundary:l,rootboundary:c,padding:d,altboundary:h}),_=vt(e.placement),b=de(e.placement),v=!b,y=re(_),w="x"===y?"y":"x",a=e.modifiersdata.popperoffsets,e=e.rects.reference,t=e.rects.popper,c="function"==typeof g?g(object.assign({},e.rects,{placement:e.placement})):g,o="number"==typeof c?{mainaxis:c,altaxis:c}:object.assign({mainaxis:0,altaxis:0},c),x=e.modifiersdata.offset?e.modifiersdata.offset[e.placement]:null,k={x:0,y:0};if(a){if(o){var l,d="y"===y?gt:bt,s="y"===y?mt:_t,i="y"===y?"height":"width",n=a[y],p=n+m[d],j=n-m[s],m=f?-t[i]/2:0,h=b===wt?e[i]:t[i],$=b===wt?-t[i]:-e[i],w=e.elements.arrow,b=f&&w?jt(w):{width:0,height:0},f=e.modifiersdata["arrow#persistent"]?e.modifiersdata["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},z=f[d],q=f[s],r=ae(0,e[i],b[i]),v=v?e[i]/2-m-r-z-o.mainaxis:h-r-z-o.mainaxis,k=v?-e[i]/2+m+r+q+o.mainaxis:$+r+q+o.mainaxis,q=e.elements.arrow&&oe(e.elements.arrow),x=q?"y"===y?q.clienttop||0:q.clientleft||0:0,y=null!=(l=null==x?void 0:x[y])?l:0,u=n+k-y,g=ae(f?qt(p,n+v-y-x):p,n,f?kt(j,u):j);a[y]=g,k[y]=g-n}if(a){var j,z="x"===y?gt:bt,tt="x"===y?mt:_t,et=a[w],it="y"===w?"height":"width",nt=et+m[z],st=et-m[tt],ot=-1!==[gt,bt].indexof(_),rt=null!=(j=null==x?void 0:x[w])?j:0,at=ot?nt:et-e[it]-t[it]-rt+o.altaxis,lt=ot?et+e[it]+t[it]-rt-o.altaxis:st,ct=f&&ot?function(t,e,i){var n=ae(t,e,i);return n>i?i:n}(at,et,lt):ae(f?at:nt,et,f?lt:st);a[w]=ct,k[w]=ct-et}e.modifiersdata[n]=k}},requiresifexists:["offset"]};function $e(t,e,i){void 0===i&&(i=!1);var n,s,o=zt(e),r=zt(e)&&function(t){var e=t.getboundingclientrect(),i=xt(e.width)/t.offsetwidth||1,n=xt(e.height)/t.offsetheight||1;return 1!==i||1!==n}(e),a=ie(e),l=gt(t,r,i),c={scrollleft:0,scrolltop:0},h={x:0,y:0};return(o||!o&&!i)&&(("body"!==wt(e)||ee(a))&&(c=(n=e)!==bt(n)&&zt(n)?{scrollleft:(s=n).scrollleft,scrolltop:s.scrolltop}:we(n)),zt(e)?((h=gt(e,!0)).x+=e.clientleft,h.y+=e.clienttop):a&&(h.x=ae(a))),{x:l.left+c.scrollleft-h.x,y:l.top+c.scrolltop-h.y,width:l.width,height:l.height}}function we(t){var e=new map,i=new set,n=[];function s(t){i.add(t.name),[].concat(t.requires||[],t.requiresifexists||[]).foreach((function(t){if(!i.has(t)){var n=e.get(t);n&&s(n)}})),n.push(t)}return t.foreach((function(t){e.set(t.name,t)})),t.foreach((function(t){i.has(t.name)||s(t)})),n}var be={placement:"bottom",modifiers:[],strategy:"absolute"};function fe(){for(var t=arguments.length,e=new array(t),i=0;inumber.parseint(t,10))):"function"==typeof t?e=>t(e,this._element):t}_getpopperconfig(){const t={placement:this._getplacement(),modifiers:[{name:"preventoverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getoffset()}}]};return(this._innavbar||"static"===this._config.display)&&(b.setdataattribute(this._menu,"popper","static"),t.modifiers=[{name:"applystyles",enabled:!1}]),{...t,..."function"==typeof this._config.popperconfig?this._config.popperconfig(t):this._config.popperconfig}}_selectmenuitem({key:t,target:e}){const i=q.find(".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",this._menu).filter((t=>a(t)));i.length&&b(i,e,t===ye,!i.includes(e)).focus()}static jqueryinterface(t){return this.each((function(){const e=hi.getorcreateinstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new typeerror(`no method named "${t}"`);e[t]()}}))}static clearmenus(t){if(2===t.button||"keyup"===t.type&&"tab"!==t.key)return;const e=q.find(ti);for(const i of e){const e=hi.getinstance(i);if(!e||!1===e._config.autoclose)continue;const n=t.composedpath(),s=n.includes(e._menu);if(n.includes(e._element)||"inside"===e._config.autoclose&&!s||"outside"===e._config.autoclose&&s)continue;if(e._menu.contains(t.target)&&("keyup"===t.type&&"tab"===t.key||/input|select|option|textarea|form/i.test(t.target.tagname)))continue;const o={relatedtarget:e._element};"click"===t.type&&(o.clickevent=t),e._completehide(o)}}static dataapikeydownhandler(t){const e=/input|textarea/i.test(t.target.tagname),i="escape"===t.key,n=[xe,ye].includes(t.key);if(!n&&!i)return;if(e&&!i)return;t.preventdefault();const s=this.matches(ze)?this:q.prev(this,ze)[0]||q.next(this,ze)[0]||q.findone(ze,t.delegatetarget.parentnode),o=hi.getorcreateinstance(s);if(n)return t.stoppropagation(),o.show(),void o._selectmenuitem(t);o._isshown()&&(t.stoppropagation(),o.hide(),s.focus())}}p.on(document,ge,ze,hi.dataapikeydownhandler),p.on(document,ge,ei,hi.dataapikeydownhandler),p.on(document,ue,hi.clearmenus),p.on(document,"keyup.bs.dropdown.data-api",hi.clearmenus),p.on(document,ue,ze,(function(t){t.preventdefault(),hi.getorcreateinstance(this).toggle()})),g(hi);const di=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",ui=".sticky-top",fi="padding-right",pi="margin-right";class gi{constructor(){this._element=document.body}getwidth(){const t=document.documentelement.clientwidth;return math.abs(window.innerwidth-t)}hide(){const t=this.getwidth();this._disableoverflow(),this._setelementattributes(this._element,fi,(e=>e+t)),this._setelementattributes(di,fi,(e=>e+t)),this._setelementattributes(ui,pi,(e=>e-t))}reset(){this._resetelementattributes(this._element,"overflow"),this._resetelementattributes(this._element,fi),this._resetelementattributes(di,fi),this._resetelementattributes(ui,pi)}isoverflowing(){return this.getwidth()>0}_disableoverflow(){this._saveinitialattribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setelementattributes(t,e,i){const n=this.getwidth();this._applymanipulationcallback(t,(t=>{if(t!==this._element&&window.innerwidth>t.clientwidth+n)return;this._saveinitialattribute(t,e);const s=window.getcomputedstyle(t).getpropertyvalue(e);t.style.setproperty(e,`${i(number.parsefloat(s))}px`)}))}_saveinitialattribute(t,e){const i=t.style.getpropertyvalue(e);i&&b.setdataattribute(t,e,i)}_resetelementattributes(t,e){this._applymanipulationcallback(t,(t=>{const i=b.getdataattribute(t,e);null!==i?(b.removedataattribute(t,e),t.style.setproperty(e,i)):t.style.removeproperty(e)}))}_applymanipulationcallback(t,e){if(o(t))e(t);else for(const i of q.find(t,this._element))e(i)}}const mi="show",_i="mousedown.bs.backdrop",bi={classname:"modal-backdrop",clickcallback:null,isanimated:!1,isvisible:!0,rootelement:"body"},vi={classname:"string",clickcallback:"(function|null)",isanimated:"boolean",isvisible:"boolean",rootelement:"(element|string)"};class yi extends f{constructor(t){super(),this._config=this._getconfig(t),this._isappended=!1,this._element=null}static get default(){return bi}static get defaulttype(){return vi}static get name(){return"backdrop"}show(t){if(!this._config.isvisible)return void m(t);this._append();const e=this._getelement();this._config.isanimated&&d(e),e.classlist.add(mi),this._emulateanimation((()=>{m(t)}))}hide(t){this._config.isvisible?(this._getelement().classlist.remove(mi),this._emulateanimation((()=>{this.dispose(),m(t)}))):m(t)}dispose(){this._isappended&&(p.off(this._element,_i),this._element.remove(),this._isappended=!1)}_getelement(){if(!this._element){const t=document.createelement("div");t.classname=this._config.classname,this._config.isanimated&&t.classlist.add("fade"),this._element=t}return this._element}_configaftermerge(t){return t.rootelement=r(t.rootelement),t}_append(){if(this._isappended)return;const t=this._getelement();this._config.rootelement.append(t),p.on(t,_i,(()=>{m(this._config.clickcallback)})),this._isappended=!0}_emulateanimation(t){_(t,this._getelement(),this._config.isanimated)}}const wi=".bs.focustrap",ai="backward",ei={autofocus:!0,trapelement:null},ti={autofocus:"boolean",trapelement:"element"};class ci extends f{constructor(t){super(),this._config=this._getconfig(t),this._isactive=!1,this._lasttabnavdirection=null}static get default(){return ei}static get defaulttype(){return ti}static get name(){return"focustrap"}activate(){this._isactive||(this._config.autofocus&&this._config.trapelement.focus(),p.off(document,wi),p.on(document,"focusin.bs.focustrap",(t=>this._handlefocusin(t))),p.on(document,"keydown.tab.bs.focustrap",(t=>this._handlekeydown(t))),this._isactive=!0)}deactivate(){this._isactive&&(this._isactive=!1,p.off(document,wi))}_handlefocusin(t){const{trapelement:e}=this._config;if(t.target===document||t.target===e||e.contains(t.target))return;const i=q.focusablechildren(e);0===i.length?e.focus():this._lasttabnavdirection===ai?i[i.length-1].focus():i[0].focus()}_handlekeydown(t){"tab"===t.key&&(this._lasttabnavdirection=t.shiftkey?ai:"forward")}}const oi="hidden.bs.modal",xi="show.bs.modal",ki="modal-open",li="show",di="modal-static",si={backdrop:!0,focus:!0,keyboard:!0},ii={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"};class ni extends z{constructor(t,e){super(t,e),this._dialog=q.findone(".modal-dialog",this._element),this._backdrop=this._initializebackdrop(),this._focustrap=this._initializefocustrap(),this._isshown=!1,this._istransitioning=!1,this._scrollbar=new gi,this._addeventlisteners()}static get default(){return si}static get defaulttype(){return ii}static get name(){return"modal"}toggle(t){return this._isshown?this.hide():this.show(t)}show(t){this._isshown||this._istransitioning||p.trigger(this._element,xi,{relatedtarget:t}).defaultprevented||(this._isshown=!0,this._istransitioning=!0,this._scrollbar.hide(),document.body.classlist.add(ki),this._adjustdialog(),this._backdrop.show((()=>this._showelement(t))))}hide(){this._isshown&&!this._istransitioning&&(p.trigger(this._element,"hide.bs.modal").defaultprevented||(this._isshown=!1,this._istransitioning=!0,this._focustrap.deactivate(),this._element.classlist.remove(li),this._queuecallback((()=>this._hidemodal()),this._element,this._isanimated())))}dispose(){for(const t of[window,this._dialog])p.off(t,".bs.modal");this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleupdate(){this._adjustdialog()}_initializebackdrop(){return new yi({isvisible:boolean(this._config.backdrop),isanimated:this._isanimated()})}_initializefocustrap(){return new ci({trapelement:this._element})}_showelement(t){document.body.contains(this._element)||document.body.append(this._element),this._element.style.display="block",this._element.removeattribute("aria-hidden"),this._element.setattribute("aria-modal",!0),this._element.setattribute("role","dialog"),this._element.scrolltop=0;const e=q.findone(".modal-body",this._dialog);e&&(e.scrolltop=0),d(this._element),this._element.classlist.add(li),this._queuecallback((()=>{this._config.focus&&this._focustrap.activate(),this._istransitioning=!1,p.trigger(this._element,"shown.bs.modal",{relatedtarget:t})}),this._dialog,this._isanimated())}_addeventlisteners(){p.on(this._element,"keydown.dismiss.bs.modal",(t=>{if("escape"===t.key)return this._config.keyboard?(t.preventdefault(),void this.hide()):void this._triggerbackdroptransition()})),p.on(window,"resize.bs.modal",(()=>{this._isshown&&!this._istransitioning&&this._adjustdialog()})),p.on(this._element,"mousedown.dismiss.bs.modal",(t=>{p.one(this._element,"click.dismiss.bs.modal",(e=>{this._element===t.target&&this._element===e.target&&("static"!==this._config.backdrop?this._config.backdrop&&this.hide():this._triggerbackdroptransition())}))}))}_hidemodal(){this._element.style.display="none",this._element.setattribute("aria-hidden",!0),this._element.removeattribute("aria-modal"),this._element.removeattribute("role"),this._istransitioning=!1,this._backdrop.hide((()=>{document.body.classlist.remove(ki),this._resetadjustments(),this._scrollbar.reset(),p.trigger(this._element,oi)}))}_isanimated(){return this._element.classlist.contains("fade")}_triggerbackdroptransition(){if(p.trigger(this._element,"hideprevented.bs.modal").defaultprevented)return;const t=this._element.scrollheight>document.documentelement.clientheight,e=this._element.style.overflowy;"hidden"===e||this._element.classlist.contains(di)||(t||(this._element.style.overflowy="hidden"),this._element.classlist.add(di),this._queuecallback((()=>{this._element.classlist.remove(di),this._queuecallback((()=>{this._element.style.overflowy=e}),this._dialog)}),this._dialog),this._element.focus())}_adjustdialog(){const t=this._element.scrollheight>document.documentelement.clientheight,e=this._scrollbar.getwidth(),i=e>0;if(i&&!t){const t=p()?"paddingleft":"paddingright";this._element.style[t]=`${e}px`}if(!i&&t){const t=p()?"paddingright":"paddingleft";this._element.style[t]=`${e}px`}}_resetadjustments(){this._element.style.paddingleft="",this._element.style.paddingright=""}static jqueryinterface(t,e){return this.each((function(){const i=ni.getorcreateinstance(this,t);if("string"==typeof t){if(void 0===i[t])throw new typeerror(`no method named "${t}"`);i[t](e)}}))}}p.on(document,"click.bs.modal.data-api",'[data-bs-toggle="modal"]',(function(t){const e=n(this);["a","area"].includes(this.tagname)&&t.preventdefault(),p.one(e,xi,(t=>{t.defaultprevented||p.one(e,oi,(()=>{a(this)&&this.focus()}))}));const i=q.findone(".modal.show");i&&ni.getinstance(i).hide(),ni.getorcreateinstance(e).toggle(this)})),q(ni),g(ni);const pi="show",ji="showing",mi="hiding",hi=".offcanvas.show",$i="hideprevented.bs.offcanvas",wi="hidden.bs.offcanvas",bi={backdrop:!0,keyboard:!0,scroll:!1},fi={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"};class zi extends z{constructor(t,e){super(t,e),this._isshown=!1,this._backdrop=this._initializebackdrop(),this._focustrap=this._initializefocustrap(),this._addeventlisteners()}static get default(){return bi}static get defaulttype(){return fi}static get name(){return"offcanvas"}toggle(t){return this._isshown?this.hide():this.show(t)}show(t){this._isshown||p.trigger(this._element,"show.bs.offcanvas",{relatedtarget:t}).defaultprevented||(this._isshown=!0,this._backdrop.show(),this._config.scroll||(new gi).hide(),this._element.setattribute("aria-modal",!0),this._element.setattribute("role","dialog"),this._element.classlist.add(ji),this._queuecallback((()=>{this._config.scroll&&!this._config.backdrop||this._focustrap.activate(),this._element.classlist.add(pi),this._element.classlist.remove(ji),p.trigger(this._element,"shown.bs.offcanvas",{relatedtarget:t})}),this._element,!0))}hide(){this._isshown&&(p.trigger(this._element,"hide.bs.offcanvas").defaultprevented||(this._focustrap.deactivate(),this._element.blur(),this._isshown=!1,this._element.classlist.add(mi),this._backdrop.hide(),this._queuecallback((()=>{this._element.classlist.remove(pi,mi),this._element.removeattribute("aria-modal"),this._element.removeattribute("role"),this._config.scroll||(new gi).reset(),p.trigger(this._element,wi)}),this._element,!0)))}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializebackdrop(){const t=boolean(this._config.backdrop);return new yi({classname:"offcanvas-backdrop",isvisible:t,isanimated:!0,rootelement:this._element.parentnode,clickcallback:t?()=>{"static"!==this._config.backdrop?this.hide():p.trigger(this._element,$i)}:null})}_initializefocustrap(){return new ci({trapelement:this._element})}_addeventlisteners(){p.on(this._element,"keydown.dismiss.bs.offcanvas",(t=>{"escape"===t.key&&(this._config.keyboard?this.hide():p.trigger(this._element,$i))}))}static jqueryinterface(t){return this.each((function(){const e=zi.getorcreateinstance(this,t);if("string"==typeof t){if(void 0===e[t]||t.startswith("_")||"constructor"===t)throw new typeerror(`no method named "${t}"`);e[t](this)}}))}}p.on(document,"click.bs.offcanvas.data-api",'[data-bs-toggle="offcanvas"]',(function(t){const e=n(this);if(["a","area"].includes(this.tagname)&&t.preventdefault(),l(this))return;p.one(e,wi,(()=>{a(this)&&this.focus()}));const i=q.findone(hi);i&&i!==e&&zi.getinstance(i).hide(),zi.getorcreateinstance(e).toggle(this)})),p.on(window,"load.bs.offcanvas.data-api",(()=>{for(const t of q.find(hi))zi.getorcreateinstance(t).show()})),p.on(window,"resize.bs.offcanvas",(()=>{for(const t of q.find("[aria-modal][class*=show][class*=offcanvas-]"))"fixed"!==getcomputedstyle(t).position&&zi.getorcreateinstance(t).hide()})),q(zi),g(zi);const qi=new set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),ri=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^#&/:?]*(?:[#/?]|$))/i,vi=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[\d+/a-z]+=*$/i,ki=(t,e)=>{const i=t.nodename.tolowercase();return e.includes(i)?!qi.has(i)||boolean(ri.test(t.nodevalue)||vi.test(t.nodevalue)):e.filter((t=>t instanceof regexp)).some((t=>t.test(i)))},qi={"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],div:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","srcset","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},xi={allowlist:qi,content:{},extraclass:"",html:!1,sanitize:!0,sanitizefn:null,template:"
"},yi={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 gi extends f{constructor(t){super(),this._config=this._getconfig(t)}static get default(){return xi}static get defaulttype(){return yi}static get name(){return"templatefactory"}getcontent(){return object.values(this._config.content).map((t=>this._resolvepossiblefunction(t))).filter(boolean)}hascontent(){return this.getcontent().length>0}changecontent(t){return this._checkcontent(t),this._config.content={...this._config.content,...t},this}tohtml(){const t=document.createelement("div");t.innerhtml=this._maybesanitize(this._config.template);for(const[e,i]of object.entries(this._config.content))this._setcontent(t,i,e);const e=t.children[0],i=this._resolvepossiblefunction(this._config.extraclass);return i&&e.classlist.add(...i.split(" ")),e}_typecheckconfig(t){super._typecheckconfig(t),this._checkcontent(t.content)}_checkcontent(t){for(const[e,i]of object.entries(t))super._typecheckconfig({selector:e,entry:i},ui)}_setcontent(t,e,i){const n=q.findone(i,t);n&&((e=this._resolvepossiblefunction(e))?o(e)?this._putelementintemplate(r(e),n):this._config.html?n.innerhtml=this._maybesanitize(e):n.textcontent=e:n.remove())}_maybesanitize(t){return this._config.sanitize?function(t,e,i){if(!t.length)return t;if(i&&"function"==typeof i)return i(t);const n=(new window.domparser).parsefromstring(t,"text/html"),s=[].concat(...n.body.queryselectorall("*"));for(const t of s){const i=t.nodename.tolowercase();if(!object.keys(e).includes(i)){t.remove();continue}const n=[].concat(...t.attributes),s=[].concat(e["*"]||[],e[i]||[]);for(const e of n)ki(e,s)||t.removeattribute(e.nodename)}return n.body.innerhtml}(t,this._config.allowlist,this._config.sanitizefn):t}_resolvepossiblefunction(t){return"function"==typeof t?t(this):t}_putelementintemplate(t,e){if(this._config.html)return e.innerhtml="",void e.append(t);e.textcontent=t.textcontent}}const ji=new set(["sanitize","allowlist","sanitizefn"]),zi="fade",tn="show",en=".modal",nn="hide.bs.modal",sn="hover",on="focus",rn={auto:"auto",top:"top",right:p()?"left":"right",bottom:"bottom",left:p()?"right":"left"},an={allowlist:qi,animation:!0,boundary:"clippingparents",container:!1,customclass:"",delay:0,fallbackplacements:["top","right","bottom","left"],html:!1,offset:[0,0],placement:"top",popperconfig:null,sanitize:!0,sanitizefn:null,selector:!1,template:'',title:"",trigger:"hover focus"},ln={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 cn extends z{constructor(t,e){if(void 0===ke)throw new typeerror("bootstrap's tooltips require popper (https://popper.js.org)");super(t,e),this._isenabled=!0,this._timeout=0,this._ishovered=null,this._activetrigger={},this._popper=null,this._templatefactory=null,this._newcontent=null,this.tip=null,this._setlisteners(),this._config.selector||this._fixtitle()}static get default(){return an}static get defaulttype(){return ln}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),p.off(this._element.closest(en),nn,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 t=p.trigger(this._element,this.constructor.eventname("show")),e=(c(this._element)||this._element.ownerdocument.documentelement).contains(this._element);if(t.defaultprevented||!e)return;this._disposepopper();const i=this._gettipelement();this._element.setattribute("aria-describedby",i.getattribute("id"));const{container:n}=this._config;if(this._element.ownerdocument.documentelement.contains(this.tip)||(n.append(i),p.trigger(this._element,this.constructor.eventname("inserted"))),this._popper=this._createpopper(i),i.classlist.add(tn),"ontouchstart"in document.documentelement)for(const t of[].concat(...document.body.children))p.on(t,"mouseover",h);this._queuecallback((()=>{p.trigger(this._element,this.constructor.eventname("shown")),!1===this._ishovered&&this._leave(),this._ishovered=!1}),this.tip,this._isanimated())}hide(){if(this._isshown()&&!p.trigger(this._element,this.constructor.eventname("hide")).defaultprevented){if(this._gettipelement().classlist.remove(tn),"ontouchstart"in document.documentelement)for(const t of[].concat(...document.body.children))p.off(t,"mouseover",h);this._activetrigger.click=!1,this._activetrigger.focus=!1,this._activetrigger.hover=!1,this._ishovered=null,this._queuecallback((()=>{this._iswithactivetrigger()||(this._ishovered||this._disposepopper(),this._element.removeattribute("aria-describedby"),p.trigger(this._element,this.constructor.eventname("hidden")))}),this.tip,this._isanimated())}}update(){this._popper&&this._popper.update()}_iswithcontent(){return boolean(this._gettitle())}_gettipelement(){return this.tip||(this.tip=this._createtipelement(this._newcontent||this._getcontentfortemplate())),this.tip}_createtipelement(t){const e=this._gettemplatefactory(t).tohtml();if(!e)return null;e.classlist.remove(zi,tn),e.classlist.add(`bs-${this.constructor.name}-auto`);const i=(t=>{do{t+=math.floor(1e6*math.random())}while(document.getelementbyid(t));return t})(this.constructor.name).tostring();return e.setattribute("id",i),this._isanimated()&&e.classlist.add(zi),e}setcontent(t){this._newcontent=t,this._isshown()&&(this._disposepopper(),this.show())}_gettemplatefactory(t){return this._templatefactory?this._templatefactory.changecontent(t):this._templatefactory=new gi({...this._config,content:t,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(t){return this.constructor.getorcreateinstance(t.delegatetarget,this._getdelegateconfig())}_isanimated(){return this._config.animation||this.tip&&this.tip.classlist.contains(zi)}_isshown(){return this.tip&&this.tip.classlist.contains(tn)}_createpopper(t){const e="function"==typeof this._config.placement?this._config.placement.call(this,t,this._element):this._config.placement,i=rn[e.touppercase()];return ve(this._element,t,this._getpopperconfig(i))}_getoffset(){const{offset:t}=this._config;return"string"==typeof t?t.split(",").map((t=>number.parseint(t,10))):"function"==typeof t?e=>t(e,this._element):t}_resolvepossiblefunction(t){return"function"==typeof t?t.call(this._element):t}_getpopperconfig(t){const e={placement:t,modifiers:[{name:"flip",options:{fallbackplacements:this._config.fallbackplacements}},{name:"offset",options:{offset:this._getoffset()}},{name:"preventoverflow",options:{boundary:this._config.boundary}},{name:"arrow",options:{element:`.${this.constructor.name}-arrow`}},{name:"presetplacement",enabled:!0,phase:"beforemain",fn:t=>{this._gettipelement().setattribute("data-popper-placement",t.state.placement)}}]};return{...e,..."function"==typeof this._config.popperconfig?this._config.popperconfig(e):this._config.popperconfig}}_setlisteners(){const t=this._config.trigger.split(" ");for(const e of t)if("click"===e)p.on(this._element,this.constructor.eventname("click"),this._config.selector,(t=>{this._initializeondelegatedtarget(t).toggle()}));else if("manual"!==e){const t=e===sn?this.constructor.eventname("mouseenter"):this.constructor.eventname("focusin"),i=e===sn?this.constructor.eventname("mouseleave"):this.constructor.eventname("focusout");p.on(this._element,t,this._config.selector,(t=>{const e=this._initializeondelegatedtarget(t);e._activetrigger["focusin"===t.type?on:sn]=!0,e._enter()})),p.on(this._element,i,this._config.selector,(t=>{const e=this._initializeondelegatedtarget(t);e._activetrigger["focusout"===t.type?on:sn]=e._element.contains(t.relatedtarget),e._leave()}))}this._hidemodalhandler=()=>{this._element&&this.hide()},p.on(this._element.closest(en),nn,this._hidemodalhandler)}_fixtitle(){const t=this._element.getattribute("title");t&&(this._element.getattribute("aria-label")||this._element.textcontent.trim()||this._element.setattribute("aria-label",t),this._element.setattribute("data-bs-original-title",t),this._element.removeattribute("title"))}_enter(){this._isshown()||this._ishovered?this._ishovered=!0:(this._ishovered=!0,this._settimeout((()=>{this._ishovered&&this.show()}),this._config.delay.show))}_leave(){this._iswithactivetrigger()||(this._ishovered=!1,this._settimeout((()=>{this._ishovered||this.hide()}),this._config.delay.hide))}_settimeout(t,e){cleartimeout(this._timeout),this._timeout=settimeout(t,e)}_iswithactivetrigger(){return object.values(this._activetrigger).includes(!0)}_getconfig(t){const e=b.getdataattributes(this._element);for(const t of object.keys(e))ji.has(t)&&delete e[t];return t={...e,..."object"==typeof t&&t?t:{}},t=this._mergeconfigobj(t),t=this._configaftermerge(t),this._typecheckconfig(t),t}_configaftermerge(t){return t.container=!1===t.container?document.body:r(t.container),"number"==typeof t.delay&&(t.delay={show:t.delay,hide:t.delay}),"number"==typeof t.title&&(t.title=t.title.tostring()),"number"==typeof t.content&&(t.content=t.content.tostring()),t}_getdelegateconfig(){const t={};for(const e in this._config)this.constructor.default[e]!==this._config[e]&&(t[e]=this._config[e]);return t.selector=!1,t.trigger="manual",t}_disposepopper(){this._popper&&(this._popper.destroy(),this._popper=null),this.tip&&(this.tip.remove(),this.tip=null)}static jqueryinterface(t){return this.each((function(){const e=cn.getorcreateinstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new typeerror(`no method named "${t}"`);e[t]()}}))}}g(cn);const hn={...cn.default,content:"",offset:[0,8],placement:"right",template:'',trigger:"click"},dn={...cn.defaulttype,content:"(null|string|element|function)"};class un extends cn{static get default(){return hn}static get defaulttype(){return dn}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(t){return this.each((function(){const e=un.getorcreateinstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new typeerror(`no method named "${t}"`);e[t]()}}))}}g(un);const fn="click.bs.scrollspy",pn="active",gn="[href]",mn={offset:null,rootmargin:"0px 0px -25%",smoothscroll:!1,target:null,threshold:[.1,.5,1]},_n={offset:"(number|null)",rootmargin:"string",smoothscroll:"boolean",target:"element",threshold:"array"};class bn extends z{constructor(t,e){super(t,e),this._targetlinks=new map,this._observablesections=new map,this._rootelement="visible"===getcomputedstyle(this._element).overflowy?null:this._element,this._activetarget=null,this._observer=null,this._previousscrolldata={visibleentrytop:0,parentscrolltop:0},this.refresh()}static get default(){return mn}static get defaulttype(){return _n}static get name(){return"scrollspy"}refresh(){this._initializetargetsandobservables(),this._maybeenablesmoothscroll(),this._observer?this._observer.disconnect():this._observer=this._getnewobserver();for(const t of this._observablesections.values())this._observer.observe(t)}dispose(){this._observer.disconnect(),super.dispose()}_configaftermerge(t){return t.target=r(t.target)||document.body,t.rootmargin=t.offset?`${t.offset}px 0px -30%`:t.rootmargin,"string"==typeof t.threshold&&(t.threshold=t.threshold.split(",").map((t=>number.parsefloat(t)))),t}_maybeenablesmoothscroll(){this._config.smoothscroll&&(p.off(this._config.target,fn),p.on(this._config.target,fn,gn,(t=>{const e=this._observablesections.get(t.target.hash);if(e){t.preventdefault();const i=this._rootelement||window,n=e.offsettop-this._element.offsettop;if(i.scrollto)return void i.scrollto({top:n,behavior:"smooth"});i.scrolltop=n}})))}_getnewobserver(){const t={root:this._rootelement,threshold:this._config.threshold,rootmargin:this._config.rootmargin};return new intersectionobserver((t=>this._observercallback(t)),t)}_observercallback(t){const e=t=>this._targetlinks.get(`#${t.target.id}`),i=t=>{this._previousscrolldata.visibleentrytop=t.target.offsettop,this._process(e(t))},n=(this._rootelement||document.documentelement).scrolltop,s=n>=this._previousscrolldata.parentscrolltop;this._previousscrolldata.parentscrolltop=n;for(const o of t){if(!o.isintersecting){this._activetarget=null,this._clearactiveclass(e(o));continue}const t=o.target.offsettop>=this._previousscrolldata.visibleentrytop;if(s&&t){if(i(o),!n)return}else s||t||i(o)}}_initializetargetsandobservables(){this._targetlinks=new map,this._observablesections=new map;const t=q.find(gn,this._config.target);for(const e of t){if(!e.hash||l(e))continue;const t=q.findone(e.hash,this._element);a(t)&&(this._targetlinks.set(e.hash,e),this._observablesections.set(e.hash,t))}}_process(t){this._activetarget!==t&&(this._clearactiveclass(this._config.target),this._activetarget=t,t.classlist.add(pn),this._activateparents(t),p.trigger(this._element,"activate.bs.scrollspy",{relatedtarget:t}))}_activateparents(t){if(t.classlist.contains("dropdown-item"))q.findone(".dropdown-toggle",t.closest(".dropdown")).classlist.add(pn);else for(const e of q.parents(t,".nav, .list-group"))for(const t of q.prev(e,".nav-link, .nav-item > .nav-link, .list-group-item"))t.classlist.add(pn)}_clearactiveclass(t){t.classlist.remove(pn);const e=q.find("[href].active",t);for(const t of e)t.classlist.remove(pn)}static jqueryinterface(t){return this.each((function(){const e=bn.getorcreateinstance(this,t);if("string"==typeof t){if(void 0===e[t]||t.startswith("_")||"constructor"===t)throw new typeerror(`no method named "${t}"`);e[t]()}}))}}p.on(window,"load.bs.scrollspy.data-api",(()=>{for(const t of q.find('[data-bs-spy="scroll"]'))bn.getorcreateinstance(t)})),g(bn);const vn="arrowleft",yn="arrowright",wn="arrowup",an="arrowdown",en="active",tn="fade",cn="show",on='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',xn=`.nav-link:not(.dropdown-toggle), .list-group-item:not(.dropdown-toggle), [role="tab"]:not(.dropdown-toggle), ${on}`;class kn extends z{constructor(t){super(t),this._parent=this._element.closest('.list-group, .nav, [role="tablist"]'),this._parent&&(this._setinitialattributes(this._parent,this._getchildren()),p.on(this._element,"keydown.bs.tab",(t=>this._keydown(t))))}static get name(){return"tab"}show(){const t=this._element;if(this._elemisactive(t))return;const e=this._getactiveelem(),i=e?p.trigger(e,"hide.bs.tab",{relatedtarget:t}):null;p.trigger(t,"show.bs.tab",{relatedtarget:e}).defaultprevented||i&&i.defaultprevented||(this._deactivate(e,t),this._activate(t,e))}_activate(t,e){t&&(t.classlist.add(en),this._activate(n(t)),this._queuecallback((()=>{"tab"===t.getattribute("role")?(t.removeattribute("tabindex"),t.setattribute("aria-selected",!0),this._toggledropdown(t,!0),p.trigger(t,"shown.bs.tab",{relatedtarget:e})):t.classlist.add(cn)}),t,t.classlist.contains(tn)))}_deactivate(t,e){t&&(t.classlist.remove(en),t.blur(),this._deactivate(n(t)),this._queuecallback((()=>{"tab"===t.getattribute("role")?(t.setattribute("aria-selected",!1),t.setattribute("tabindex","-1"),this._toggledropdown(t,!1),p.trigger(t,"hidden.bs.tab",{relatedtarget:e})):t.classlist.remove(cn)}),t,t.classlist.contains(tn)))}_keydown(t){if(![vn,yn,wn,an].includes(t.key))return;t.stoppropagation(),t.preventdefault();const e=[yn,an].includes(t.key),i=b(this._getchildren().filter((t=>!l(t))),t.target,e,!0);i&&(i.focus({preventscroll:!0}),kn.getorcreateinstance(i).show())}_getchildren(){return q.find(xn,this._parent)}_getactiveelem(){return this._getchildren().find((t=>this._elemisactive(t)))||null}_setinitialattributes(t,e){this._setattributeifnotexists(t,"role","tablist");for(const t of e)this._setinitialattributesonchild(t)}_setinitialattributesonchild(t){t=this._getinnerelement(t);const e=this._elemisactive(t),i=this._getouterelement(t);t.setattribute("aria-selected",e),i!==t&&this._setattributeifnotexists(i,"role","presentation"),e||t.setattribute("tabindex","-1"),this._setattributeifnotexists(t,"role","tab"),this._setinitialattributesontargetpanel(t)}_setinitialattributesontargetpanel(t){const e=n(t);e&&(this._setattributeifnotexists(e,"role","tabpanel"),t.id&&this._setattributeifnotexists(e,"aria-labelledby",`#${t.id}`))}_toggledropdown(t,e){const i=this._getouterelement(t);if(!i.classlist.contains("dropdown"))return;const n=(t,n)=>{const s=q.findone(t,i);s&&s.classlist.toggle(n,e)};n(".dropdown-toggle",en),n(".dropdown-menu",cn),i.setattribute("aria-expanded",e)}_setattributeifnotexists(t,e,i){t.hasattribute(e)||t.setattribute(e,i)}_elemisactive(t){return t.classlist.contains(en)}_getinnerelement(t){return t.matches(xn)?t:q.findone(xn,t)}_getouterelement(t){return t.closest(".nav-item, .list-group-item")||t}static jqueryinterface(t){return this.each((function(){const e=kn.getorcreateinstance(this);if("string"==typeof t){if(void 0===e[t]||t.startswith("_")||"constructor"===t)throw new typeerror(`no method named "${t}"`);e[t]()}}))}}p.on(document,"click.bs.tab",on,(function(t){["a","area"].includes(this.tagname)&&t.preventdefault(),l(this)||kn.getorcreateinstance(this).show()})),p.on(window,"load.bs.tab",(()=>{for(const t of q.find('.active[data-bs-toggle="tab"], .active[data-bs-toggle="pill"], .active[data-bs-toggle="list"]'))kn.getorcreateinstance(t)})),g(kn);const ln="hide",dn="show",sn="showing",in={animation:"boolean",autohide:"boolean",delay:"number"},nn={animation:!0,autohide:!0,delay:5e3};class pn extends z{constructor(t,e){super(t,e),this._timeout=null,this._hasmouseinteraction=!1,this._haskeyboardinteraction=!1,this._setlisteners()}static get default(){return nn}static get defaulttype(){return in}static get name(){return"toast"}show(){p.trigger(this._element,"show.bs.toast").defaultprevented||(this._cleartimeout(),this._config.animation&&this._element.classlist.add("fade"),this._element.classlist.remove(ln),d(this._element),this._element.classlist.add(dn,sn),this._queuecallback((()=>{this._element.classlist.remove(sn),p.trigger(this._element,"shown.bs.toast"),this._maybeschedulehide()}),this._element,this._config.animation))}hide(){this.isshown()&&(p.trigger(this._element,"hide.bs.toast").defaultprevented||(this._element.classlist.add(sn),this._queuecallback((()=>{this._element.classlist.add(ln),this._element.classlist.remove(sn,dn),p.trigger(this._element,"hidden.bs.toast")}),this._element,this._config.animation)))}dispose(){this._cleartimeout(),this.isshown()&&this._element.classlist.remove(dn),super.dispose()}isshown(){return this._element.classlist.contains(dn)}_maybeschedulehide(){this._config.autohide&&(this._hasmouseinteraction||this._haskeyboardinteraction||(this._timeout=settimeout((()=>{this.hide()}),this._config.delay)))}_oninteraction(t,e){switch(t.type){case"mouseover":case"mouseout":this._hasmouseinteraction=e;break;case"focusin":case"focusout":this._haskeyboardinteraction=e}if(e)return void this._cleartimeout();const i=t.relatedtarget;this._element===i||this._element.contains(i)||this._maybeschedulehide()}_setlisteners(){p.on(this._element,"mouseover.bs.toast",(t=>this._oninteraction(t,!0))),p.on(this._element,"mouseout.bs.toast",(t=>this._oninteraction(t,!1))),p.on(this._element,"focusin.bs.toast",(t=>this._oninteraction(t,!0))),p.on(this._element,"focusout.bs.toast",(t=>this._oninteraction(t,!1)))}_cleartimeout(){cleartimeout(this._timeout),this._timeout=null}static jqueryinterface(t){return this.each((function(){const e=pn.getorcreateinstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new typeerror(`no method named "${t}"`);e[t](this)}}))}}return q(pn),g(pn),{alert:r,button:k,carousel:at,collapse:pt,dropdown:hi,modal:ni,offcanvas:zi,popover:un,scrollspy:bn,tab:kn,toast:pn,tooltip:cn}})); //# sourcemappingurl=bootstrap.bundle.min.js.map