bootstrap.native
Advanced tools
@@ -1,2 +0,2 @@ | ||
// Native JavaScript for Bootstrap v3.0.15-alpha1 | 2021 © dnp_theme | MIT-License | ||
const t="webkitTransition"in document.head.style?"webkitTransitionEnd":"transitionend",e="webkitTransition"in document.head.style||"transition"in document.head.style,n="webkitTransition"in document.head.style?"webkitTransitionDuration":"transitionDuration",o="webkitTransition"in document.head.style?"webkitTransitionProperty":"transitionProperty";function s(t){const s=getComputedStyle(t),i=s[o],a=s[n],l=a.includes("ms")?1:1e3,r=e&&i&&"none"!==i?parseFloat(a)*l:0;return Number.isNaN(r)?0:r}function i(e,n){let o=0;const i=new Event(t),a=s(e);a?(e.addEventListener(t,(function s(i){i.target===e&&(n.apply(e,[i]),e.removeEventListener(t,s),o=1)})),setTimeout(()=>{o||e.dispatchEvent(i)},a+17)):n.apply(e,[i])}function a(t,e){const n=e&&e instanceof Element?e:document;return t instanceof Element?t:n.querySelector(t)}function l(t,e){return t.classList.contains(e)}function r(t,e){t.classList.remove(e)}const c="addEventListener";function d(t,e){const n=new CustomEvent(t,{cancelable:!0});return e instanceof Object&&Object.keys(e).forEach(t=>{Object.defineProperty(n,t,{value:e[t]})}),n}function h(t){return"true"===t||"false"!==t&&(Number.isNaN(+t)?""===t||"null"===t?null:t:+t)}class u{constructor(t,e,n,o){const s=this,i=a(e);i[t]&&i[t].dispose(),s.element=i,n&&Object.keys(n).length&&(s.options=function(t,e,n,o){const s={},i={},a={...t.dataset};return Object.keys(a).forEach(t=>{const e=t.includes(o)?t.replace(o,"").replace(/[A-Z]/,t=>t.toLowerCase()):t;i[e]=h(a[t])}),Object.keys(n).forEach(t=>{n[t]=h(n[t])}),Object.keys(e).forEach(t=>{s[t]=t in n?n[t]:t in i?i[t]:e[t]}),s}(i,n,o||{},"bs")),i[t]=s}dispose(t){const e=this;e.element[t]=null,Object.keys(e).forEach(t=>{e[t]=null})}}const p=d("close.bs.alert"),m=d("closed.bs.alert");function f(t){const{element:e,relatedTarget:n}=t;g(t),n&&(m.relatedTarget=n),e.dispatchEvent(m),t.dispose(),e.parentNode.removeChild(e)}function g(t,e){const n=e?c:"removeEventListener";t.dismiss&&t.dismiss[n]("click",t.close)}class v extends u{constructor(t){super("Alert",t);const{element:e}=this;this.dismiss=a('[data-bs-dismiss="alert"]',e),this.relatedTarget=null,g(this,1)}close(t){const e=t?t.target:null,n=t?t.target.closest(".alert").Alert:this,{element:o}=n;if(n&&o&&l(o,"show")){if(e&&(p.relatedTarget=e,n.relatedTarget=e),o.dispatchEvent(p),p.defaultPrevented)return;r(o,"show"),l(o,"fade")?i(o,()=>f(n)):f(n)}}dispose(){g(this),super.dispose("Alert")}}const b={component:"Alert",selector:".alert",constructor:v};function w(t,e){t.classList.add(e)}const y="data-bs-toggle";function E(t,e){const n=e?c:"removeEventListener";t.element[n]("click",t.toggle)}class A extends u{constructor(t){super("Button",t);const{element:e}=this;this.isActive=l(e,"active"),e.setAttribute("aria-pressed",!!this.isActive),E(this,1)}toggle(t){t&&t.preventDefault();const e=t?this.Button:this,{element:n}=e;if(l(n,"disabled"))return;e.isActive=l(n,"active");const{isActive:o}=e,s=o?"false":"true";(o?r:w)(n,"active"),n.setAttribute("aria-pressed",s)}dispose(){E(this),super.dispose("Button")}}const T={component:"Button",selector:'[data-bs-toggle="button"]',constructor:A};var C=!!(()=>{let t=!1;try{const e=Object.defineProperty({},"passive",{get:()=>(t=!0,t)});document.addEventListener("DOMContentLoaded",(function t(){document.removeEventListener("DOMContentLoaded",t,e)}),e)}catch(t){throw Error("Passive events are not supported")}return t})()&&{passive:!0};function x(t){return t.offsetHeight}function k(t){const e=t.getBoundingClientRect(),n=window.innerHeight||document.documentElement.clientHeight;return e.top<=n&&e.bottom>=0}const H='[data-bs-ride="carousel"]',L={pause:"hover",keyboard:!1,touch:!0,interval:5e3};let N=0,P=0,S=0;const D=d("slide.bs.carousel"),O=d("slid.bs.carousel");function M(t){const e=t.target.closest(H).Carousel,{element:n,isAnimating:o}=e;l(n,"paused")||(w(n,"paused"),o||(clearInterval(e.timer),e.timer=null))}function B(t){const e=t.target.closest(H).Carousel,{isPaused:n,isAnimating:o,element:s}=e;!n&&l(s,"paused")&&(r(s,"paused"),o||(clearInterval(e.timer),e.timer=null,e.cycle()))}function I(t){t.preventDefault();const e=t.target,n=e.closest(H).Carousel,o=e.getAttribute("data-bs-slide-to");n.isAnimating||e&&!l(e,"active")&&o&&n.to(+o)}function R(t){const e=t.currentTarget||t.srcElement,n=e.closest(H).Carousel,{controls:o}=n;t.preventDefault(),o[1]&&e===o[1]?n.next():o[1]&&e===o[0]&&n.prev()}function W({which:t}){const[e]=Array.from(document.querySelectorAll(H)).filter(t=>k(t));if(!e)return;const n=e.Carousel;switch(t){case 39:n.next();break;case 37:n.prev()}}function j(t){const e=this.Carousel;e&&!e.isTouch&&(N=t.changedTouches[0].pageX,this.contains(t.target)&&(e.isTouch=!0,$(e,1)))}function F(t){const e=this.Carousel;e&&e.isTouch&&(P=t.changedTouches[0].pageX,"touchmove"===t.type&&t.changedTouches.length>1&&t.preventDefault())}function z(t){const e=this,n=e.Carousel;if(n&&n.isTouch&&(S=P||t.changedTouches[0].pageX,n.isTouch)){if((!e.contains(t.target)||!e.contains(t.relatedTarget))&&Math.abs(N-S)<75)return;P<N?n.index+=1:P>N&&(n.index-=1),n.isTouch=!1,n.to(n.index),$(n)}}function X(t,e){const{indicators:n}=t;Array.from(n).forEach(t=>r(t,"active")),t.indicators[e]&&w(n[e],"active")}function $(t,e){const{element:n}=t,o=e?c:"removeEventListener";n[o]("touchmove",F,C),n[o]("touchend",z,C)}function q(t,e){const{element:n,options:o,slides:s,controls:i,indicator:a}=t,{touch:l,pause:r,interval:d,keyboard:h}=o,u=e?c:"removeEventListener";r&&d&&(n[u]("mouseenter",M),n[u]("mouseleave",B),n[u]("touchstart",M,C),n[u]("touchend",B,C)),l&&s.length>1&&n[u]("touchstart",j,C),i.forEach(t=>{t&&t[u]("click",R)}),a&&a[u]("click",I),h&&window[u]("keydown",W)}function Y(t){const{slides:e,element:n}=t;return Array.from(e).indexOf(n.getElementsByClassName("carousel-item active")[0])||0}class V extends u{constructor(t,e){super("Carousel",t,L,e);const n=this;n.timer=null,n.direction="left",n.isPaused=!1,n.isAnimating=!1,n.index=0,n.timer=null,n.isTouch=!1;const{element:o}=n;n.slides=o.getElementsByClassName("carousel-item");const{slides:s}=n;if(s.length<2)return;n.controls=[a(".carousel-control-prev",o),a(".carousel-control-next",o)],n.indicator=a(".carousel-indicators",o),n.indicators=n.indicator&&n.indicator.getElementsByTagName("LI")||[];const{options:i}=n;n.options.interval=!0===i.interval?L.interval:i.interval,Y(n)<0&&(s.length&&w(s[0],"active"),n.indicators.length&&X(n,0)),q(n,1),i.interval&&n.cycle()}cycle(){const t=this,{isPaused:e,element:n,options:o}=t;t.timer&&(clearInterval(t.timer),t.timer=null),e&&(r(n,"paused"),t.isPaused=!e),t.timer=setInterval(()=>{k(n)&&(t.index+=1,t.to(t.index))},o.interval)}pause(){const t=this,{element:e,options:n,isPaused:o}=t;n.interval&&!o&&(clearInterval(t.timer),t.timer=null,w(e,"paused"),t.isPaused=!o)}next(){const t=this;t.isAnimating||(t.index+=1,t.to(t.index))}prev(){const t=this;t.isAnimating||(t.index-=1,t.to(t.index))}to(t){const e=this,{element:n,isAnimating:o,slides:a,options:c}=e,d=Y(e);let h=t;if(o||d===h)return;d<h||0===d&&h===a.length-1?e.direction="left":(d>h||d===a.length-1&&0===h)&&(e.direction="right");const{direction:u}=e;h<0?h=a.length-1:h>=a.length&&(h=0);const p="left"===u?"next":"prev",m="left"===u?"start":"end",f={relatedTarget:a[h],direction:u,from:d,to:h};Object.keys(f).forEach(t=>{D[t]=f[t],O[t]=f[t]}),n.dispatchEvent(D),D.defaultPrevented||(e.index=h,clearInterval(e.timer),e.timer=null,e.isAnimating=!0,X(e,h),s(a[h])&&l(n,"slide")?(w(a[h],"carousel-item-"+p),x(a[h]),w(a[h],"carousel-item-"+m),w(a[d],"carousel-item-"+m),i(a[h],()=>function(t){const{index:e,direction:n,element:o,slides:s,options:i,isAnimating:a}=t;if(a&&o.Carousel){const a=Y(t),c="left"===n?"next":"prev",d="left"===n?"start":"end";t.isAnimating=!1,w(s[e],"active"),r(s[a],"active"),r(s[e],"carousel-item-"+c),r(s[e],"carousel-item-"+d),r(s[a],"carousel-item-"+d),o.dispatchEvent(O),document.hidden||!i.interval||l(o,"paused")||t.cycle()}}(e))):(w(a[h],"active"),r(a[d],"active"),setTimeout(()=>{e.isAnimating=!1,n&&c.interval&&!l(n,"paused")&&e.cycle(),n.dispatchEvent(O)},100)))}dispose(){const t=this,{slides:e}=t,n=["start","end","prev","next"];Array.from(e).forEach((e,o)=>{l(e,"active")&&X(t,o),n.forEach(t=>r(e,"carousel-item-"+t))}),q(t),clearInterval(t.timer),super.dispose("Carousel")}}const G={component:"Carousel",selector:H,constructor:V};function U(t){return a(t.getAttribute("data-bs-target")||t.getAttribute("href"))||t.closest(t.getAttribute("data-bs-parent"))||a(t.getAttribute("data-bs-container"))}const Z=d("show.bs.collapse"),J=d("shown.bs.collapse"),K=d("hide.bs.collapse"),Q=d("hidden.bs.collapse");function _(t){const{element:e,parent:n,triggers:o}=t;e.dispatchEvent(K),K.defaultPrevented||(t.isAnimating=!0,n&&(n.isAnimating=!0),e.style.height=e.scrollHeight+"px",r(e,"collapse"),r(e,"show"),w(e,"collapsing"),x(e),e.style.height="0px",i(e,()=>{t.isAnimating=!1,n&&(n.isAnimating=!1),o.forEach(t=>t.setAttribute("aria-expanded","false")),r(e,"collapsing"),w(e,"collapse"),e.style.height="",e.dispatchEvent(Q)}))}function tt(t,e){const n=e?c:"removeEventListener",{triggers:o}=t;o.length&&o.forEach(t=>t[n]("click",et))}function et(t){const{target:e}=t,n=e.closest('[data-bs-toggle="collapse"]'),o=U(n),s=o&&o.Collapse;s&&s.toggle(e),n&&"A"===n.tagName&&t.preventDefault()}class nt extends u{constructor(t,e){super("Collapse",t,{parent:null},e);const{element:n}=this;this.triggers=Array.from(document.querySelectorAll('[data-bs-toggle="collapse"]')).filter(t=>U(t)===n),this.parent=a(this.options.parent);const{parent:o}=this;this.isAnimating=!1,o&&(o.isAnimating=!1),tt(this,1)}toggle(t){l(this.element,"show")?this.hide(t):this.show(t)}hide(){const{triggers:t,isAnimating:e}=this;e||(_(this),t.length&&t.forEach(t=>w(t,"collapsed")))}show(){const t=this,{element:e,parent:n,triggers:o,isAnimating:s}=t;let a,l;n&&(a=Array.from(n.querySelectorAll(".collapse.show")).find(t=>t.Collapse),l=a&&a.Collapse),n&&(!n||n.isAnimating)||s||(l&&a!==e&&(_(l),l.triggers.forEach(t=>{w(t,"collapsed")})),function(t){const{element:e,parent:n,triggers:o}=t;e.dispatchEvent(Z),Z.defaultPrevented||(t.isAnimating=!0,n&&(n.isAnimating=!0),w(e,"collapsing"),r(e,"collapse"),e.style.height=e.scrollHeight+"px",i(e,()=>{t.isAnimating=!1,n&&(n.isAnimating=!1),o.forEach(t=>t.setAttribute("aria-expanded","true")),r(e,"collapsing"),w(e,"collapse"),w(e,"show"),e.style.height="",e.dispatchEvent(J)}))}(t),o.length&&o.forEach(t=>r(t,"collapsed")))}dispose(){const{parent:t}=this;tt(this),t&&delete t.isAnimating,super.dispose("Collapse")}}const ot={component:"Collapse",selector:".collapse",constructor:nt},st=["dropdown","dropup","dropstart","dropend"];function it(t){const e=t.closest("A");return t&&(t.href&&"#"===t.href.slice(-1)||e&&e.href&&"#"===e.href.slice(-1))}function at(t){t.focus()}const[lt]=st,rt=`[data-bs-toggle="${lt}"]`,ct=st[1],dt=st[2],ht=st[3],ut=["d-block","invisible"],pt=[lt,ct],mt=[dt,ht],ft={offset:5,display:"dynamic"},gt=d("show.bs."+lt),vt=d("shown.bs."+lt),bt=d("hide.bs."+lt),wt=d("hidden.bs."+lt);function yt(t,e){const{element:n,menu:o,originalClass:s,menuEnd:i,options:a}=t,c=n.parentElement;if(o.style.margin="",!e){c.className=s.join(" ");return void(i&&!l(o,"dropdown-menu-end")?w:r)(o,"dropdown-menu-end")}const{offset:d}=a;let h=st.find(t=>s.includes(t)),u={dropdown:[d,0,0],dropup:[0,0,d],dropstart:[-1,d,0],dropend:[-1,0,0,d]};ut.forEach(t=>w(o,t));const p=new RegExp(`\\b(${lt}|${ct}|${dt}|${ht})+`),m=n.offsetWidth,f=n.offsetHeight,g=o.offsetWidth,v=o.offsetHeight,b=document.documentElement,y=document.body,E=b.clientWidth||y.clientWidth,A=b.clientHeight||y.clientHeight,T=n.getBoundingClientRect(),C=T.left+m-g<0,x=T.left-g<0,k=T.left+g>=E,H=T.left+g+m>=E,L=T.top+v>=A,N=T.top+v+f>=A,P=T.top-v<0,S=c.parentNode.closest(".btn-group,.btn-group-vertical");if(mt.includes(h)&&x&&H&&(h=lt),mt.includes(h)&&L&&(h=ct),h===dt&&x&&!L&&(h=ht),h===ht&&H&&!L&&(h=dt),h===ct&&P&&!N&&(h=lt),h===lt&&N&&!P&&(h=ct),u=u[h],o.style.margin=""+u.map(t=>t?t+"px":t).join(" "),l(c,h)||(c.className=c.className.replace(p,h)),pt.includes(h)){const t=k?w:r;S?C&&w(c,"position-static"):t(o,"dropdown-menu-end")}ut.forEach(t=>r(o,t))}function Et(t){const e=t.open?c:"removeEventListener";document[e]("click",Ct),document[e]("focus",Ct),document[e]("keydown",kt),document[e]("keyup",Ht),"dynamic"===t.options.display&&(window[e]("scroll",Lt,C),window[e]("resize",Lt,C))}function At(t,e){const n=e?c:"removeEventListener";t.element[n]("click",xt)}function Tt(){const t=st.map(t=>document.getElementsByClassName(t+" show")).find(t=>t.length);return t&&t.length?Array.from(t[0].children).find(t=>t.hasAttribute(y)):null}function Ct(t){const{target:e,type:n}=t;if(!e.closest)return;const o=Tt(),s=o&&o.parentNode,i=o&&o.Dropdown,a=i&&i.menu,l=null!==e.closest(rt),r=s&&s.contains(e)&&("form"===e.tagName||null!==e.closest("form"));"click"===n&&it(e)&&t.preventDefault(),("focus"!==n||e!==o&&e!==a&&!a.contains(e))&&(r||l||i&&i.hide(o))}function xt(t){this.Dropdown.toggle(this),it(t.target)&&t.preventDefault()}function kt(t){38!==t.which&&40!==t.which||t.preventDefault()}function Ht({which:t}){const e=Tt(),n=e.Dropdown,{menu:o,menuItems:s,open:i}=n,a=document.activeElement,l=a===e,r=o.contains(a),c=a.parentNode===o||a.parentNode.parentNode===o;let d=s.indexOf(a);c&&(l?d=0:38===t?d=d>1?d-1:0:40===t&&(d=d<s.length-1?d+1:d),s[d]&&at(s[d])),(s.length&&c||!s.length&&(r||l)||!r)&&i&&27===t&&n.toggle()}function Lt(){const t=Tt(),e=t&&t.Dropdown;e&&e.open&&yt(e,1)}class Nt extends u{constructor(t,e){super("Dropdown",t,ft,e);const n=this,{element:o}=n,s=o.parentElement;n.menu=a(".dropdown-menu",s);const{menu:i}=n;n.originalClass=Array.from(s.classList),n.menuEnd=l(i,"dropdown-menu-end"),n.menuItems=[],Array.from(i.children).forEach(t=>{t.children.length&&"A"===t.children[0].tagName&&n.menuItems.push(t.children[0]),"A"===t.tagName&&n.menuItems.push(t)}),n.open=!1,At(n,1)}toggle(t){const{open:e}=this;e?this.hide(t):this.show(t)}show(t){const e=this,n=a(st.map(t=>`.${t}.show`).join(",")),o=n&&a(rt,n);o&&o.Dropdown.hide();const{element:s,menu:i,open:l}=e,r=s.parentNode;gt.relatedTarget=t||null,r.dispatchEvent(gt),gt.defaultPrevented||(yt(e,1),w(i,"show"),w(r,"show"),s.setAttribute("aria-expanded",!0),e.open=!l,setTimeout(()=>{at(i.getElementsByTagName("INPUT")[0]||s),Et(e),vt.relatedTarget=t||null,r.dispatchEvent(vt)},1))}hide(t){const e=this,{element:n,menu:o,open:s}=e,i=n.parentNode;bt.relatedTarget=t||null,i.dispatchEvent(bt),bt.defaultPrevented||(r(o,"show"),r(i,"show"),yt(e),n.setAttribute("aria-expanded",!1),e.open=!s,at(n),setTimeout(()=>Et(e),1),wt.relatedTarget=t||null,i.dispatchEvent(wt))}dispose(){const{element:t}=this;l(t.parentNode,"show")&&this.open&&this.hide(),At(this),super.dispose("Dropdown")}}const Pt={component:"Dropdown",selector:rt,constructor:Nt},St=Array.from(document.getElementsByClassName("fixed-top")).concat(Array.from(document.getElementsByClassName("fixed-bottom"))).concat(Array.from(document.getElementsByClassName("sticky-top"))).concat(Array.from(document.getElementsByClassName("is-fixed")));function Dt(){const t=document.body;t.style.paddingRight="",t.style.overflow="",St.length&&St.forEach(t=>{t.style.paddingRight="",t.style.marginRight=""})}function Ot(){const t=document.createElement("div"),e=document.body;t.className="modal-scrollbar-measure",e.appendChild(t);const n=t.offsetWidth-t.clientWidth;return e.removeChild(t),n}function Mt(t,e,n){const o=document.body,s=parseInt(getComputedStyle(o).paddingRight,10),i=n&&s?0:t;e&&(o.style.paddingRight=s+i+"px",o.style.overflow="hidden",St.length&&St.forEach(t=>{const e=l(t,"sticky-top"),n=getComputedStyle(t).paddingRight;if(t.style.paddingRight=parseInt(n,10)+i+"px",e){const e=getComputedStyle(t).marginRight;t.style.marginRight=parseInt(e,10)-i+"px"}}))}const Bt={backdrop:!0,keyboard:!0},It=d("show.bs.modal"),Rt=d("shown.bs.modal"),Wt=d("hide.bs.modal"),jt=d("hidden.bs.modal");function Ft(t){const{element:e}=t,n=document.body,o=document.documentElement,s=l(n,"modal-open"),i=o.clientHeight!==o.scrollHeight||n.clientHeight!==n.scrollHeight,a=e.clientHeight!==e.scrollHeight,r=Ot();!a&&r&&(e.style.paddingRight=r+"px"),Mt(r,a||i,s)}function zt(t){let e=a(".modal-backdrop");const n=document.body,o=a(".modal.show");e&&!o&&(n.removeChild(e),e=null),t.isAnimating=!1,null===e&&(r(n,"modal-open"),t.element.style.paddingRight="",Dt())}function Xt(t,e){const n=e?c:"removeEventListener";window[n]("resize",t.update,C),t.element[n]("click",Zt),document[n]("keydown",Ut)}function $t(t,e){const n=e?c:"removeEventListener";t.triggers&&t.triggers.length&&t.triggers.forEach(t=>t[n]("click",Gt))}function qt(t){const{element:e,hasFade:n}=t;e.style.display="block",Ft(t),a(".modal.show")||w(document.body,"modal-open"),w(e,"show"),e.removeAttribute("aria-hidden"),e.setAttribute("aria-modal",!0),n?i(e,()=>Yt(t)):Yt(t)}function Yt(t){const{element:e,relatedTarget:n}=t;at(e),t.isAnimating=!1,Xt(t,1),Rt.relatedTarget=n,e.dispatchEvent(Rt)}function Vt(t,e){const{relatedTarget:n,hasFade:o,element:s,triggers:c}=t,d=a(".modal-backdrop");s.style.display="",c.length&&at(c[0]),!e&&d&&o&&l(d,"show")&&!a(".modal.show")?(r(d,"show"),i(d,()=>zt(t))):zt(t),Xt(t),jt.relatedTarget=n,s.dispatchEvent(jt)}function Gt(t){const{target:e}=t,n=e.closest('[data-bs-toggle="modal"]'),o=U(n),s=o&&o.Modal;"A"===n.tagName&&t.preventDefault(),s.isAnimating||(s.relatedTarget=n,s.toggle(n))}function Ut({which:t}){const e=a(".modal.show"),n=e.Modal,{options:o,isAnimating:s}=n;!s&&o.keyboard&&27===t&&l(e,"show")&&(n.relatedTarget=null,n.hide())}function Zt(t){const e=this,n=e.Modal;if(n.isAnimating)return;const{isStatic:o,modalDialog:a}=n,{target:l}=t,c=document.getSelection().toString().length,d=a.contains(l),h=l.closest('[data-bs-dismiss="modal"]');o&&!d?(w(e,"modal-static"),n.isAnimating=!0,i(a,()=>function(t){const e=s(t.modalDialog)+17;r(t.element,"modal-static"),setTimeout(()=>{t.isAnimating=!1},e)}(n))):!h&&(c||o||d)||(n.relatedTarget=h||null,n.hide(),t.preventDefault())}class Jt extends u{constructor(t,e){super("Modal",t,Bt,e);const{element:n}=this;this.modalDialog=a(".modal-dialog",n),this.triggers=Array.from(document.querySelectorAll('[data-bs-toggle="modal"]')).filter(t=>U(t)===n),this.isStatic="static"===this.options.backdrop,this.hasFade=l(n,"fade"),this.isAnimating=!1,this.relatedTarget=null,$t(this,1),this.update=this.update.bind(this)}toggle(t){l(this.element,"show")?this.hide():this.show(t)}show(t){const e=this,{element:n,isAnimating:o,options:i}=e;if(l(n,"show")&&!o)return;if(It.relatedTarget=t,n.dispatchEvent(It),It.defaultPrevented)return;e.isAnimating=!0;const r=a(".modal.show"),c=i.backdrop?function(t){let e=a(".modal-backdrop");if(null===e){const n=document.createElement("div");n.setAttribute("class","modal-backdrop"+(t.hasFade?" fade":"")),e=n,document.body.appendChild(e)}return e}(e):null;let d=0;r&&r!==n&&r.Modal&&r.Modal.hide(),!c||r||l(c,"show")||(x(c),d=s(c),w(c,"show")),r?qt(e):setTimeout(()=>qt(e),c&&d?d:0)}hide(t){const e=this,{element:n,isAnimating:o,hasFade:s,relatedTarget:a}=e;(l(n,"show")||o)&&(Wt.relatedTarget=a,n.dispatchEvent(Wt),Wt.defaultPrevented||(e.isAnimating=!0,r(n,"show"),n.setAttribute("aria-hidden",!0),n.removeAttribute("aria-modal"),s&&1!==t?i(n,()=>{Vt(e)}):Vt(e,t)))}update(){l(this.element,"show")&&Ft(this)}dispose(){this.hide(1),$t(this),super.dispose("Modal")}}const Kt={component:"Modal",selector:".modal",constructor:Jt},Qt={backdrop:!0,keyboard:!0,scroll:!1},_t=d("show.bs.offcanvas"),te=d("shown.bs.offcanvas"),ee=d("hide.bs.offcanvas"),ne=d("hidden.bs.offcanvas");function oe(t){const e=this,n=U(e),o=n&&n.Offcanvas;"A"===e.tagName&&t.preventDefault(),setTimeout(()=>{o&&o.toggle(e)},17)}function se(t){const e=a(".offcanvas.show"),n=e&&a('[data-bs-dismiss="offcanvas"]',e),o=e&&e.Offcanvas,{open:s,triggers:i}=o,{target:l}=t,r=l.closest('[data-bs-toggle="offcanvas"]');r&&"A"===r.tagName&&t.preventDefault(),o&&s&&(!e.contains(l)&&e!==l&&(!r||r&&!i.includes(r))||l===n)&&o.hide(l===n?n:null)}function ie({which:t}){const e=a(".offcanvas.show"),n=e&&e.Offcanvas;n&&n.options.keyboard&&27===t&&n.hide()}function ae(t,e){const{triggers:n}=t,o=e?c:"removeEventListener";n.forEach(t=>t[o]("click",oe))}function le(t){const e=t?c:"removeEventListener";document[e]("keydown",ie),document[e]("click",se)}class re extends u{constructor(t,e){super("Offcanvas",t,Qt,e);const{element:n}=this;this.triggers=Array.from(document.querySelectorAll('[data-bs-toggle="offcanvas"]')).filter(t=>U(t)===n),this.open=!1,ae(this,1)}toggle(t){return this.open?this.hide(t):this.show(t)}show(t){const e=a(".offcanvas.show");e&&e.Offcanvas.hide();const n=this.Offcanvas?this.Offcanvas:this,{element:o,options:s}=n;n.open||(_t.relatedTarget=t||null,o.dispatchEvent(_t),_t.defaultPrevented||(n.open=!0,o.style.visibility="visible",s.backdrop&&w(document.body,"offcanvas-backdrop"),s.scroll||function(){const t=document.body,e=document.documentElement,n=l(t,"offcanvas-backdrop"),o=e.clientHeight!==e.scrollHeight||t.clientHeight!==t.scrollHeight;Mt(Ot(),o,n)}(),w(o,"offcanvas-toggling"),w(o,"show"),le(1),i(o,()=>function(t,e){const{element:n,triggers:o}=t;r(n,"offcanvas-toggling"),n.removeAttribute("aria-hidden"),n.setAttribute("aria-modal",!0),n.setAttribute("role","dialog"),o.length&&o.forEach(t=>t.setAttribute("aria-expanded",!0)),te.relatedTarget=e||null,n.dispatchEvent(te),at(n)}(n,t))))}hide(t){const e=this,{element:n}=e;e.open&&(ee.relatedTarget=t||null,n.dispatchEvent(ee),ee.defaultPrevented||(w(n,"offcanvas-toggling"),n.blur(),e.open=!1,r(n,"show"),le(),i(n,()=>function(t,e){const{element:n,options:o,triggers:s}=t;n.setAttribute("aria-hidden",!0),n.removeAttribute("aria-modal"),n.removeAttribute("role"),n.style.visibility="hidden",s.length&&(at(s[0]),s.forEach(t=>t.setAttribute("aria-expanded",!1))),ne.relatedTarget=e||null,n.dispatchEvent(ne),r(n,"offcanvas-toggling"),a(".offcanvas.show")||(o.backdrop&&r(document.body,"offcanvas-backdrop"),o.scroll||Dt())}(e,t))))}dispose(){ae(this),super.dispose("Offcanvas")}}const ce={component:"Offcanvas",selector:".offcanvas",constructor:re};var de={top:"top",bottom:"bottom",left:"start",right:"end"};function he(t,e){return e.contains(t)}function ue(t){return[SVGElement,HTMLImageElement,HTMLVideoElement].some(e=>t instanceof e)}function pe(t,e){const n=/\b(top|bottom|start|end)+/,o=t.tooltip||t.popover;o.style.top="",o.style.left="",o.style.right="";const s=!!t.popover;let i={w:o.offsetWidth,h:o.offsetHeight};const a=document.documentElement.clientWidth||document.body.clientWidth,l=document.documentElement.clientHeight||document.body.clientHeight,{element:r,options:c,arrow:d}=t;let{container:h,placement:u}=c,p=h===document.body;const m=getComputedStyle(r).position,f=getComputedStyle(h).position,g=!p&&"static"===f;let v=!p&&"relative"===f;const b=g&&function(t){let e=null,n=t;for(;n!==document.body;)if(n=n.parentElement,"relative"===getComputedStyle(n).position){e=n;break}return e}(h);h=b||h,v=g&&b?1:v,p=h===document.body;const w=h.getBoundingClientRect(),y=v?w.left:0,E=v?w.right:a,A="absolute"===m,T=r.getBoundingClientRect(),C=p?{x:window.pageXOffset,y:window.pageYOffset}:{x:h.scrollLeft,y:h.scrollTop},x=r.offsetWidth,k=r.offsetHeight,H=v?r.offsetTop:T.top,L=v?r.offsetLeft:T.left;let N,P,S,D,O,M;d.style.top="",d.style.left="",d.style.right="";let B=T.top-i.h<0,I=T.top+i.h+k>=l,R=T.left-i.w<y,W=T.left+i.w+x>=E;B=["left","right"].includes(u)?T.top+k/2-i.h/2<0:B,I=["left","right"].includes(u)?T.top+i.h/2+k/2>=l:I,R=["top","bottom"].includes(u)?T.left+x/2-i.w/2<y:R,W=["top","bottom"].includes(u)?T.left+i.w/2+x/2>=E:W,u=["left","right"].includes(u)&&R&&W?"top":u,u="top"===u&&B?"bottom":u,u="bottom"===u&&I?"top":u,u="left"===u&&R?"right":u,u="right"===u&&W?"left":u,o.className.includes(u)||(o.className=o.className.replace(n,de[u])),i={w:o.offsetWidth,h:o.offsetHeight};const j=d.offsetWidth||0,F=d.offsetHeight||0,z=j/2;if(["left","right"].includes(u))P="left"===u?L+C.x-i.w-(s?j:0):L+C.x+x+(s?j:0),B?(N=H+C.y,D=k/2-j):I?(N=H+C.y-i.h+k,D=i.h-k/2-j):(N=H+C.y-i.h/2+k/2,D=i.h/2-F/2);else if(["top","bottom"].includes(u))if(e&&ue(r)){const t=v?e.layerX+(A?r.offsetLeft:0):e.pageX,n=v?e.layerY+(A?r.offsetTop:0):e.pageY;N="top"===u?n-i.h-(s?j:F):n+F,e.clientX-i.w/2<y?(P=0,O=t-z):e.clientX+.51*i.w>=E?(P="auto",S=0,O=i.w-(E-t)-z):(P=t-i.w/2,O=i.w/2-z)}else N="top"===u?H+C.y-i.h-(s?F:0):H+C.y+k+(s?F:0),R?(P=0,O=L+x/2-z):W?(P="auto",S=0,M=x/2+(w.right-T.right)-z):(P=L+C.x-i.w/2+x/2,O=i.w/2-z);o.style.top=N+"px",o.style.left="auto"===P?P:P+"px",o.style.right=void 0!==S?S+"px":"",void 0!==D&&(d.style.top=D+"px"),void 0!==O?d.style.left=O+"px":void 0!==M&&(d.style.right=M+"px")}let me=1;function fe(t,e){return me+=1,t[e]||me}function ge(t){const e=t.closest(".modal"),n=t.closest(".fixed-top,.fixed-bottom");return e||n||document.body}const ve={template:'<div class="popover" role="tooltip"><div class="popover-arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>',title:null,content:null,sanitizeFn:null,customClass:null,dismissible:!1,animation:!0,trigger:"hover",placement:"top",delay:200},be=/(iPhone|iPod|iPad)/.test(navigator.userAgent);let we='<button type="button" class="btn-close"></button>';const ye=d("show.bs.popover"),Ee=d("shown.bs.popover"),Ae=d("hide.bs.popover"),Te=d("hidden.bs.popover");function Ce(){at(this)}function xe({target:t}){const e=this,{popover:n,element:o}=e;n&&n.contains(t)||t===o||o.contains(t)||e.hide()}function ke(t,e){const n=e?c:"removeEventListener",{element:o,options:s}=t,{trigger:i,dismissible:a}=s;t.enabled=!!e,"hover"===i?(o[n]("mousedown",t.show),o[n]("mouseenter",t.show),ue(o)&&o[n]("mousemove",t.update,C),a||o[n]("mouseleave",t.hide)):"click"===i?o[n](i,t.toggle):"focus"===i&&(be&&o[n]("click",Ce),o[n]("focusin",t.show))}function He(t,e){const n=e?c:"removeEventListener",{options:o,element:s,popover:i}=t,{trigger:a,dismissible:l}=o;if(l){const[e]=i.getElementsByClassName("btn-close");e&&e[n]("click",t.hide)}else"focus"===a&&s[n]("focusout",t.hide),"hover"===a&&document[n]("touchstart",xe,C);ue(s)||(window[n]("scroll",t.update,C),window[n]("resize",t.update,C))}function Le(t){He(t,1),t.element.dispatchEvent(Ee)}function Ne(t){He(t),function(t){const{element:e,popover:n,options:o}=t;e.removeAttribute("aria-describedby"),o.container.removeChild(n),t.timer=null}(t),t.element.dispatchEvent(Te)}class Pe extends u{constructor(t,e){ve.container=ge(a(t)),super("Popover",t,ve,e);const{element:n}=this;this.timer=null,this.popover=null,this.arrow=null,this.enabled=!1,this.id="popover-"+fe(n);const{options:o}=this;this.options.container=ue(n)?ve.container:a(o.container),ve.container=null,o.content&&(!function(t){const{id:e,options:n}=t,{animation:o,customClass:s,sanitizeFn:i,placement:r,dismissible:c}=n;let{title:d,content:h,template:u}=n;const p="bs-popover-"+de[r];d=d?d.trim():null,h=h?h.trim():null,i&&(d=d?i(d):null,h=h?i(h):null,u=u?i(u):null,we=i(we)),t.popover=document.createElement("div");const{popover:m}=t;m.setAttribute("id",e),m.setAttribute("role","tooltip");const f=document.createElement("div");f.innerHTML=u.trim(),m.className=f.firstChild.className,m.innerHTML=f.firstChild.innerHTML;const g=a(".popover-header",m),v=a(".popover-body",m);t.arrow=a(".popover-arrow",m),c&&(d=d?d+we:d,h=null===d?+we:h),d&&g&&(g.innerHTML=d.trim()),h&&v&&(v.innerHTML=h.trim()),l(m,"popover")||w(m,"popover"),o&&!l(m,"fade")&&w(m,"fade"),s&&!l(m,s)&&w(m,s),l(m,p)||w(m,p)}(this),this.update=this.update.bind(this),ke(this,1))}update(t){pe(this,t)}toggle(t){const e=t?this.Popover:this,{popover:n,options:o}=e;he(n,o.container)?e.hide():e.show()}show(t){const e=t?this.Popover:this,{element:n,popover:o,options:s,id:a}=e,{container:r}=s;clearTimeout(e.timer),e.timer=setTimeout(()=>{if(!he(o,r)){if(n.dispatchEvent(ye),ye.defaultPrevented)return;r.appendChild(o),n.setAttribute("aria-describedby",a),e.update(t),l(o,"show")||w(o,"show"),s.animation?i(o,()=>Le(e)):Le(e)}},17)}hide(t){let e;if(t&&this.Popover)e=this.Popover;else if(t){const t=this.closest(".popover"),n=t&&a(`[aria-describedby="${t.id}"]`);e=n.Popover}else e=this;const{element:n,popover:o,options:s}=e;clearTimeout(e.timer),e.timer=setTimeout(()=>{if(he(o,s.container)){if(n.dispatchEvent(Ae),Ae.defaultPrevented)return;r(o,"show"),s.animation?i(o,()=>Ne(e)):Ne(e)}},s.delay+17)}enable(){const t=this,{enabled:e}=t;e||(ke(t,1),t.enabled=!e)}disable(){const t=this,{enabled:e,popover:n,options:o}=t;e&&(he(n,o.container)&&o.animation?(t.hide(),setTimeout(()=>ke(t),s(n)+o.delay+17)):ke(t),t.enabled=!e)}toggleEnabled(){this.enabled?this.disable():this.enable()}dispose(){const t=this,{popover:e,options:n}=t,{container:o,animation:s}=n;s&&he(e,o)?(n.delay=0,t.hide(),i(e,()=>ke(t))):ke(t),super.dispose("Popover")}}const Se={component:"Popover",selector:'[data-bs-toggle="popover"],[data-tip="popover"]',constructor:Pe},De={offset:10,target:null},Oe=d("activate.bs.scrollspy");function Me(t){const{target:e,scrollTarget:n,isWindow:o,options:s,itemsLength:i,scrollHeight:l}=t,{offset:r}=s,c=e.getElementsByTagName("A");if(t.scrollTop=o?n.pageYOffset:n.scrollTop,i!==c.length||Be(n)!==l){let e,s,i;t.items=[],t.offsets=[],t.scrollHeight=Be(n),t.maxScroll=t.scrollHeight-function({element:t,isWindow:e}){return e?window.innerHeight:t.getBoundingClientRect().height}(t),Array.from(c).forEach(n=>{e=n.getAttribute("href"),s=e&&"#"===e.charAt(0)&&"#"!==e.slice(-1)&&a(e),s&&(t.items.push(n),i=s.getBoundingClientRect(),t.offsets.push((o?i.top+t.scrollTop:s.offsetTop)-r))}),t.itemsLength=t.items.length}}function Be(t){return t.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)}function Ie(t){Array.from(t.getElementsByTagName("A")).forEach(t=>{l(t,"active")&&r(t,"active")})}function Re(t,e){const{target:n,element:o}=t;Ie(n),t.activeItem=e,w(e,"active");const s=[];let i=e;for(;i!==document.body;)i=i.parentNode,(l(i,"nav")||l(i,"dropdown-menu"))&&s.push(i);s.forEach(t=>{const e=t.previousElementSibling;e&&!l(e,"active")&&w(e,"active")}),Oe.relatedTarget=e,o.dispatchEvent(Oe)}function We(t,e){const n=e?c:"removeEventListener";t.scrollTarget[n]("scroll",t.refresh,C)}class je extends u{constructor(t,e){super("ScrollSpy",t,De,e);const{element:n,options:o}=this;this.target=a(o.target),this.target&&(this.scrollTarget=n.clientHeight<n.scrollHeight?n:window,this.isWindow=this.scrollTarget===window,this.scrollTop=0,this.maxScroll=0,this.scrollHeight=0,this.activeItem=null,this.items=[],this.offsets=[],this.refresh=this.refresh.bind(this),We(this,1),this.refresh())}refresh(){const t=this,{target:e}=t;if(0===e.offsetHeight)return;Me(t);const{scrollTop:n,maxScroll:o,itemsLength:s,items:i,activeItem:a}=t;if(n>=o){const e=i[s-1];return void(a!==e&&Re(t,e))}const{offsets:l}=t;if(a&&n<l[0]&&l[0]>0)return t.activeItem=null,void Ie(e);i.forEach((e,o)=>{a!==e&&n>=l[o]&&(void 0===l[o+1]||n<l[o+1])&&Re(t,e)})}dispose(){We(this),super.dispose("ScrollSpy")}}const Fe={component:"ScrollSpy",selector:'[data-bs-spy="scroll"]',constructor:je},ze=d("show.bs.tab"),Xe=d("shown.bs.tab"),$e=d("hide.bs.tab"),qe=d("hidden.bs.tab");let Ye,Ve,Ge,Ue,Ze,Je,Ke;function Qe(t){const{tabContent:e,nav:n}=t;e.style.height="",r(e,"collapsing"),n.isAnimating=!1}function _e(t){const{tabContent:e,nav:n}=t;e?Ke?Qe(t):setTimeout(()=>{e.style.height=Ge+"px",x(e),i(e,()=>Qe(t))},50):n.isAnimating=!1,Xe.relatedTarget=Ue,Ye.dispatchEvent(Xe)}function tn(t){const{tabContent:e}=t;e&&(Ze.style.float="left",Ve.style.float="left",Je=Ze.scrollHeight),ze.relatedTarget=Ue,qe.relatedTarget=Ye,Ye.dispatchEvent(ze),ze.defaultPrevented||(w(Ve,"active"),r(Ze,"active"),e&&(Ge=Ve.scrollHeight,Ke=Ge===Je,w(e,"collapsing"),e.style.height=Je+"px",x(e),Ze.style.float="",Ve.style.float=""),l(Ve,"fade")?setTimeout(()=>{w(Ve,"show"),i(Ve,()=>{_e(t)})},20):_e(t),Ue.dispatchEvent(qe))}function en({nav:t}){const e=t.getElementsByClassName("active");return 1!==e.length||st.some(t=>l(e[0].parentNode,t))?e.length>1&&(Ue=e[e.length-1]):[Ue]=e,Ue}function nn(t){return a(en(t).getAttribute("href"))}function on(t,e){const n=e?c:"removeEventListener";t.element[n]("click",sn)}function sn(t){const e=this.Tab;t.preventDefault(),e.nav.isAnimating||e.show()}class an extends u{constructor(t){super("Tab",t);const{element:n}=this;this.nav=n.closest(".nav");const{nav:o}=this;this.dropdown=o&&a(`.${st[0]}-toggle`,o),Ze=nn(this),this.tabContent=e&&Ze.closest(".tab-content"),Je=Ze.scrollHeight,o.isAnimating=!1,on(this,1)}show(){const t=this,{element:e,nav:n,dropdown:o}=t;if(Ye=e,!l(Ye,"active")){if(Ve=a(Ye.getAttribute("href")),Ue=en({nav:n}),Ze=nn({nav:n}),$e.relatedTarget=Ye,Ue.dispatchEvent($e),$e.defaultPrevented)return;n.isAnimating=!0,r(Ue,"active"),Ue.setAttribute("aria-selected","false"),w(Ye,"active"),Ye.setAttribute("aria-selected","true"),o&&(l(e.parentNode,"dropdown-menu")?l(o,"active")||w(o,"active"):l(o,"active")&&r(o,"active")),l(Ze,"fade")?(r(Ze,"show"),i(Ze,()=>tn(t))):tn(t)}}dispose(){on(this),super.dispose("Tab")}}const ln={component:"Tab",selector:'[data-bs-toggle="tab"]',constructor:an},rn={animation:!0,autohide:!0,delay:500},cn=d("show.bs.toast"),dn=d("hide.bs.toast"),hn=d("shown.bs.toast"),un=d("hidden.bs.toast");function pn(t){const{element:e,options:n}=t;n.animation||(r(e,"showing"),w(e,"show")),e.dispatchEvent(hn),n.autohide&&t.hide()}function mn(t){const{element:e}=t;w(e,"hide"),e.dispatchEvent(un)}function fn(t,e){const n=e?c:"removeEventListener";t.dismiss&&t.dismiss[n]("click",t.hide)}function gn(t){clearTimeout(t.timer),fn(t)}class vn extends u{constructor(t,e){super("Toast",t,rn,e);this.dismiss=a('[data-bs-dismiss="toast"]',this.element),this.show=this.show.bind(this),this.hide=this.hide.bind(this),fn(this,1)}show(){const t=this,{element:e}=t;if(e&&l(e,"hide")){if(e.dispatchEvent(cn),cn.defaultPrevented)return;w(e,"fade"),clearTimeout(t.timer),t.timer=setTimeout(()=>function(t){const{element:e,options:n}=t;r(e,"hide"),n.animation?(x(e),w(e,"showing"),w(e,"show"),i(e,()=>pn(t))):pn(t)}(t),10)}}hide(t){const e=this,{element:n,options:o}=e;if(n&&l(n,"show")){if(n.dispatchEvent(dn),dn.defaultPrevented)return;clearTimeout(e.timer),e.timer=setTimeout(function(t){const{element:e,options:n}=t;r(e,"show"),n.animation?(x(e),i(e,()=>mn(t))):mn(t)}(e),t?10:o.delay)}}dispose(){const t=this,{element:e,options:n}=t;t.hide(),n.animation?i(e,()=>gn(t)):gn(t),super.dispose("Toast")}}const bn={component:"Toast",selector:".toast",constructor:vn},wn={title:null,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',placement:"top",animation:!0,customClass:null,delay:200,sanitizeFn:null},yn=d("show.bs.tooltip"),En=d("shown.bs.tooltip"),An=d("hide.bs.tooltip"),Tn=d("hidden.bs.tooltip");function Cn(t){const{element:e}=t;Ln(t),e.hasAttribute("data-original-title")&&Nn(t)}function xn(t,e){const n=e?c:"removeEventListener";document[n]("touchstart",Pn,C),ue(t.element)||(window[n]("scroll",t.update,C),window[n]("resize",t.update,C))}function kn(t){xn(t,1),t.element.dispatchEvent(En)}function Hn(t){xn(t),function(t){const{element:e,options:n,tooltip:o}=t;e.removeAttribute("aria-describedby"),n.container.removeChild(o),t.timer=null}(t),t.element.dispatchEvent(Tn)}function Ln(t,e){const n=e?c:"removeEventListener",{element:o}=t;ue(o)&&o[n]("mousemove",t.update,C),o[n]("mousedown",t.show),o[n]("mouseenter",t.show),o[n]("mouseleave",t.hide)}function Nn(t,e){const n=["data-original-title","title"],{element:o}=t;o.setAttribute(n[e?0:1],e||o.getAttribute(n[0])),o.removeAttribute(n[e?1:0])}function Pn({target:t}){const{tooltip:e,element:n}=this;e.contains(t)||t===n||n.contains(t)||this.hide()}class Sn extends u{constructor(t,e){const n=a(t);wn.title=n.getAttribute("title"),wn.container=ge(n),super("Tooltip",n,wn,e);this.tooltip=null,this.arrow=null,this.timer=null,this.enabled=!1;const{options:o}=this;this.options.container=ue(n)?wn.container:a(o.container),wn.container=null,wn.title=null,o.title&&(Pn.bind(this),this.update=this.update.bind(this),n.hasAttribute("title")&&Nn(this,o.title),this.id="tooltip-"+fe(n),function(t){const{options:e,id:n}=t,o="bs-tooltip-"+de[e.placement];let s=e.title.trim();if(e.sanitizeFn&&(s=e.sanitizeFn(s),e.template=e.sanitizeFn(e.template)),!s)return;t.tooltip=document.createElement("div");const{tooltip:i}=t;i.setAttribute("id",n);const r=document.createElement("div");r.innerHTML=e.template.trim(),i.className=r.firstChild.className,i.innerHTML=r.firstChild.innerHTML,a(".tooltip-inner",i).innerHTML=s,t.arrow=a(".tooltip-arrow",i),i.setAttribute("role","tooltip"),l(i,"tooltip")||w(i,"tooltip"),e.animation&&!l(i,"fade")&&w(i,"fade"),e.customClass&&!l(i,e.customClass)&&w(i,e.customClass),l(i,o)||w(i,o)}(this),Ln(this,1))}show(t){const e=t?this.Tooltip:this,{options:n,tooltip:o,element:s,id:a}=e;clearTimeout(e.timer),e.timer=setTimeout(()=>{if(!he(o,n.container)){if(s.dispatchEvent(yn),yn.defaultPrevented)return;n.container.appendChild(o),s.setAttribute("aria-describedby",a),e.update(t),l(o,"show")||w(o,"show"),n.animation?i(o,()=>kn(e)):kn(e)}},20)}hide(t){const e=t?this.Tooltip:this,{options:n,tooltip:o,element:s}=e;clearTimeout(e.timer),e.timer=setTimeout(()=>{if(he(o,n.container)){if(s.dispatchEvent(An),An.defaultPrevented)return;r(o,"show"),n.animation?i(o,()=>Hn(e)):Hn(e)}},n.delay)}update(t){pe(this,t)}toggle(){const{tooltip:t,options:e}=this;he(t,e.container)?this.hide():this.show()}enable(){const t=this,{enabled:e}=t;e||(Ln(t,1),t.enabled=!e)}disable(){const t=this,{tooltip:e,options:n,enabled:o}=t;o&&(!he(e,n.container)&&n.animation?(t.hide(),setTimeout(()=>Ln(t),s(e)+n.delay+17)):Ln(t),t.enabled=!o)}toggleEnabled(){this.enabled?this.disable():this.enable()}dispose(){const t=this,{tooltip:e,options:n}=t;n.animation&&he(e,n.container)?(n.delay=0,t.hide(),i(e,()=>Cn(t))):Cn(t),super.dispose("Tooltip")}}const Dn={Alert:b,Button:T,Carousel:G,Collapse:ot,Dropdown:Pt,Modal:Kt,Offcanvas:ce,Popover:Se,ScrollSpy:Fe,Tab:ln,Toast:bn,Tooltip:{component:"Tooltip",selector:'[data-bs-toggle="tooltip"],[data-tip="tooltip"]',constructor:Sn}};function On(t){const e=t instanceof Element?t:document;Object.keys(Dn).forEach(t=>{const{constructor:n,selector:o}=Dn[t];var s,i;s=n,i=e.querySelectorAll(o),Array.from(i).forEach(t=>new s(t))})}document.body?On():document.addEventListener("DOMContentLoaded",()=>On(),{once:!0});var Mn={Alert:v,Button:A,Carousel:V,Collapse:nt,Dropdown:Nt,Modal:Jt,Offcanvas:re,Popover:Pe,ScrollSpy:je,Tab:an,Toast:vn,Tooltip:Sn,initCallback:On,Version:"3.0.15-alpha1"};export default Mn; | ||
// Native JavaScript for Bootstrap v3.0.15-alpha2 | 2021 © dnp_theme | MIT-License | ||
const t="webkitTransition"in document.head.style?"webkitTransitionEnd":"transitionend",e="webkitTransition"in document.head.style||"transition"in document.head.style,n="webkitTransition"in document.head.style?"webkitTransitionDuration":"transitionDuration",o="webkitTransition"in document.head.style?"webkitTransitionProperty":"transitionProperty";function s(t){const s=getComputedStyle(t),i=s[o],a=s[n],l=a.includes("ms")?1:1e3,r=e&&i&&"none"!==i?parseFloat(a)*l:0;return Number.isNaN(r)?0:r}function i(e,n){let o=0;const i=new Event(t),a=s(e);a?(e.addEventListener(t,(function s(i){i.target===e&&(n.apply(e,[i]),e.removeEventListener(t,s),o=1)})),setTimeout(()=>{o||e.dispatchEvent(i)},a+17)):n.apply(e,[i])}function a(t,e){const n=e&&e instanceof Element?e:document;return t instanceof Element?t:n.querySelector(t)}function l(t,e){return t.classList.contains(e)}function r(t,e){t.classList.remove(e)}const c="addEventListener";function d(t,e){const n=new CustomEvent(t,{cancelable:!0});return e instanceof Object&&Object.keys(e).forEach(t=>{Object.defineProperty(n,t,{value:e[t]})}),n}function h(t){return"true"===t||"false"!==t&&(Number.isNaN(+t)?""===t||"null"===t?null:t:+t)}class u{constructor(t,e,n,o){const s=this,i=a(e);i[t]&&i[t].dispose(),s.element=i,n&&Object.keys(n).length&&(s.options=function(t,e,n,o){const s={},i={},a={...t.dataset};return Object.keys(a).forEach(t=>{const e=t.includes(o)?t.replace(o,"").replace(/[A-Z]/,t=>t.toLowerCase()):t;i[e]=h(a[t])}),Object.keys(n).forEach(t=>{n[t]=h(n[t])}),Object.keys(e).forEach(t=>{s[t]=t in n?n[t]:t in i?i[t]:e[t]}),s}(i,n,o||{},"bs")),i[t]=s}dispose(t){const e=this;e.element[t]=null,Object.keys(e).forEach(t=>{e[t]=null})}}const p=d("close.bs.alert"),m=d("closed.bs.alert");function f(t){const{element:e,relatedTarget:n}=t;g(t),n&&(m.relatedTarget=n),e.dispatchEvent(m),t.dispose(),e.parentNode.removeChild(e)}function g(t,e){const n=e?c:"removeEventListener";t.dismiss&&t.dismiss[n]("click",t.close)}class v extends u{constructor(t){super("Alert",t);const{element:e}=this;this.dismiss=a('[data-bs-dismiss="alert"]',e),this.relatedTarget=null,g(this,1)}close(t){const e=t?t.target:null,n=t?t.target.closest(".alert").Alert:this,{element:o}=n;if(n&&o&&l(o,"show")){if(e&&(p.relatedTarget=e,n.relatedTarget=e),o.dispatchEvent(p),p.defaultPrevented)return;r(o,"show"),l(o,"fade")?i(o,()=>f(n)):f(n)}}dispose(){g(this),super.dispose("Alert")}}const b={component:"Alert",selector:".alert",constructor:v};function w(t,e){t.classList.add(e)}const y="data-bs-toggle";function E(t,e){const n=e?c:"removeEventListener";t.element[n]("click",t.toggle)}class A extends u{constructor(t){super("Button",t);const{element:e}=this;this.isActive=l(e,"active"),e.setAttribute("aria-pressed",!!this.isActive),E(this,1)}toggle(t){t&&t.preventDefault();const e=t?this.Button:this,{element:n}=e;if(l(n,"disabled"))return;e.isActive=l(n,"active");const{isActive:o}=e,s=o?"false":"true";(o?r:w)(n,"active"),n.setAttribute("aria-pressed",s)}dispose(){E(this),super.dispose("Button")}}const T={component:"Button",selector:'[data-bs-toggle="button"]',constructor:A};var C=!!(()=>{let t=!1;try{const e=Object.defineProperty({},"passive",{get:()=>(t=!0,t)});document.addEventListener("DOMContentLoaded",(function t(){document.removeEventListener("DOMContentLoaded",t,e)}),e)}catch(t){throw Error("Passive events are not supported")}return t})()&&{passive:!0};function x(t){return t.offsetHeight}function k(t){const e=t.getBoundingClientRect(),n=window.innerHeight||document.documentElement.clientHeight;return e.top<=n&&e.bottom>=0}const H='[data-bs-ride="carousel"]',L={pause:"hover",keyboard:!1,touch:!0,interval:5e3};let N=0,P=0,S=0;const D=d("slide.bs.carousel"),O=d("slid.bs.carousel");function M(t){const e=t.target.closest(H).Carousel,{element:n,isAnimating:o}=e;l(n,"paused")||(w(n,"paused"),o||(clearInterval(e.timer),e.timer=null))}function B(t){const e=t.target.closest(H).Carousel,{isPaused:n,isAnimating:o,element:s}=e;!n&&l(s,"paused")&&(r(s,"paused"),o||(clearInterval(e.timer),e.timer=null,e.cycle()))}function I(t){t.preventDefault();const{target:e}=t,n=e.closest(H).Carousel;if(n.isAnimating)return;const o=e.getAttribute("data-bs-slide-to");e&&!l(e,"active")&&o&&n.to(+o)}function R(t){t.preventDefault();const e=this.closest(H).Carousel,{controls:n}=e;n[1]&&this===n[1]?e.next():n[1]&&this===n[0]&&e.prev()}function W({which:t}){const[e]=Array.from(document.querySelectorAll(H)).filter(t=>k(t));if(!e)return;const n=e.Carousel;switch(t){case 39:n.next();break;case 37:n.prev()}}function j(t){const e=this.Carousel;e&&!e.isTouch&&(N=t.changedTouches[0].pageX,this.contains(t.target)&&(e.isTouch=!0,X(e,1)))}function F(t){const{changedTouches:e,type:n}=t,o=this.Carousel;o&&o.isTouch&&(P=e[0].pageX,"touchmove"===n&&e.length>1&&t.preventDefault())}function z(t){const e=this,n=e.Carousel;if(n&&n.isTouch&&(S=P||t.changedTouches[0].pageX,n.isTouch)){if((!e.contains(t.target)||!e.contains(t.relatedTarget))&&Math.abs(N-S)<75)return;P<N?n.index+=1:P>N&&(n.index-=1),n.isTouch=!1,n.to(n.index),X(n)}}function q(t,e){const{indicators:n}=t;Array.from(n).forEach(t=>r(t,"active")),t.indicators[e]&&w(n[e],"active")}function X(t,e){const{element:n}=t,o=e?c:"removeEventListener";n[o]("touchmove",F,C),n[o]("touchend",z,C)}function $(t,e){const{element:n,options:o,slides:s,controls:i,indicator:a}=t,{touch:l,pause:r,interval:d,keyboard:h}=o,u=e?c:"removeEventListener";r&&d&&(n[u]("mouseenter",M),n[u]("mouseleave",B),n[u]("touchstart",M,C),n[u]("touchend",B,C)),l&&s.length>1&&n[u]("touchstart",j,C),i.forEach(t=>{t&&t[u]("click",R)}),a&&a[u]("click",I),h&&window[u]("keydown",W)}function Y(t){const{slides:e,element:n}=t;return Array.from(e).indexOf(n.getElementsByClassName("carousel-item active")[0])||0}class V extends u{constructor(t,e){super("Carousel",t,L,e);const n=this;n.timer=null,n.direction="left",n.isPaused=!1,n.isAnimating=!1,n.index=0,n.timer=null,n.isTouch=!1;const{element:o}=n;n.slides=o.getElementsByClassName("carousel-item");const{slides:s}=n;if(s.length<2)return;n.controls=[a(".carousel-control-prev",o),a(".carousel-control-next",o)],n.indicator=a(".carousel-indicators",o),n.indicators=n.indicator&&n.indicator.querySelectorAll("[data-bs-slide-to]")||[];const{options:i}=n;n.options.interval=!0===i.interval?L.interval:i.interval,Y(n)<0&&(s.length&&w(s[0],"active"),n.indicators.length&&q(n,0)),$(n,1),i.interval&&n.cycle()}cycle(){const t=this,{isPaused:e,element:n,options:o}=t;t.timer&&(clearInterval(t.timer),t.timer=null),e&&(r(n,"paused"),t.isPaused=!e),t.timer=setInterval(()=>{k(n)&&(t.index+=1,t.to(t.index))},o.interval)}pause(){const t=this,{element:e,options:n,isPaused:o}=t;n.interval&&!o&&(clearInterval(t.timer),t.timer=null,w(e,"paused"),t.isPaused=!o)}next(){const t=this;t.isAnimating||(t.index+=1,t.to(t.index))}prev(){const t=this;t.isAnimating||(t.index-=1,t.to(t.index))}to(t){const e=this,{element:n,isAnimating:o,slides:a,options:c}=e,d=Y(e);let h=t;if(o||d===h)return;d<h||0===d&&h===a.length-1?e.direction="left":(d>h||d===a.length-1&&0===h)&&(e.direction="right");const{direction:u}=e;h<0?h=a.length-1:h>=a.length&&(h=0);const p="left"===u?"next":"prev",m="left"===u?"start":"end",f={relatedTarget:a[h],direction:u,from:d,to:h};Object.keys(f).forEach(t=>{D[t]=f[t],O[t]=f[t]}),n.dispatchEvent(D),D.defaultPrevented||(e.index=h,clearInterval(e.timer),e.timer=null,e.isAnimating=!0,q(e,h),s(a[h])&&l(n,"slide")?(w(a[h],"carousel-item-"+p),x(a[h]),w(a[h],"carousel-item-"+m),w(a[d],"carousel-item-"+m),i(a[h],()=>function(t){const{index:e,direction:n,element:o,slides:s,options:i,isAnimating:a}=t;if(a&&o.Carousel){const a=Y(t),c="left"===n?"next":"prev",d="left"===n?"start":"end";t.isAnimating=!1,w(s[e],"active"),r(s[a],"active"),r(s[e],"carousel-item-"+c),r(s[e],"carousel-item-"+d),r(s[a],"carousel-item-"+d),o.dispatchEvent(O),document.hidden||!i.interval||l(o,"paused")||t.cycle()}}(e))):(w(a[h],"active"),r(a[d],"active"),setTimeout(()=>{e.isAnimating=!1,n&&c.interval&&!l(n,"paused")&&e.cycle(),n.dispatchEvent(O)},100)))}dispose(){const t=this,{slides:e}=t,n=["start","end","prev","next"];Array.from(e).forEach((e,o)=>{l(e,"active")&&q(t,o),n.forEach(t=>r(e,"carousel-item-"+t))}),$(t),clearInterval(t.timer),super.dispose("Carousel")}}const G={component:"Carousel",selector:H,constructor:V};function U(t){return a(t.getAttribute("data-bs-target")||t.getAttribute("href"))||t.closest(t.getAttribute("data-bs-parent"))||a(t.getAttribute("data-bs-container"))}const Z=d("show.bs.collapse"),J=d("shown.bs.collapse"),K=d("hide.bs.collapse"),Q=d("hidden.bs.collapse");function _(t){const{element:e,parent:n,triggers:o}=t;e.dispatchEvent(K),K.defaultPrevented||(t.isAnimating=!0,n&&(n.isAnimating=!0),e.style.height=e.scrollHeight+"px",r(e,"collapse"),r(e,"show"),w(e,"collapsing"),x(e),e.style.height="0px",i(e,()=>{t.isAnimating=!1,n&&(n.isAnimating=!1),o.forEach(t=>t.setAttribute("aria-expanded","false")),r(e,"collapsing"),w(e,"collapse"),e.style.height="",e.dispatchEvent(Q)}))}function tt(t,e){const n=e?c:"removeEventListener",{triggers:o}=t;o.length&&o.forEach(t=>t[n]("click",et))}function et(t){const{target:e}=t,n=e.closest('[data-bs-toggle="collapse"]'),o=U(n),s=o&&o.Collapse;s&&s.toggle(e),n&&"A"===n.tagName&&t.preventDefault()}class nt extends u{constructor(t,e){super("Collapse",t,{parent:null},e);const{element:n}=this;this.triggers=Array.from(document.querySelectorAll('[data-bs-toggle="collapse"]')).filter(t=>U(t)===n),this.parent=a(this.options.parent);const{parent:o}=this;this.isAnimating=!1,o&&(o.isAnimating=!1),tt(this,1)}toggle(t){l(this.element,"show")?this.hide(t):this.show(t)}hide(){const{triggers:t,isAnimating:e}=this;e||(_(this),t.length&&t.forEach(t=>w(t,"collapsed")))}show(){const t=this,{element:e,parent:n,triggers:o,isAnimating:s}=t;let a,l;n&&(a=Array.from(n.querySelectorAll(".collapse.show")).find(t=>t.Collapse),l=a&&a.Collapse),n&&(!n||n.isAnimating)||s||(l&&a!==e&&(_(l),l.triggers.forEach(t=>{w(t,"collapsed")})),function(t){const{element:e,parent:n,triggers:o}=t;e.dispatchEvent(Z),Z.defaultPrevented||(t.isAnimating=!0,n&&(n.isAnimating=!0),w(e,"collapsing"),r(e,"collapse"),e.style.height=e.scrollHeight+"px",i(e,()=>{t.isAnimating=!1,n&&(n.isAnimating=!1),o.forEach(t=>t.setAttribute("aria-expanded","true")),r(e,"collapsing"),w(e,"collapse"),w(e,"show"),e.style.height="",e.dispatchEvent(J)}))}(t),o.length&&o.forEach(t=>r(t,"collapsed")))}dispose(){const{parent:t}=this;tt(this),t&&delete t.isAnimating,super.dispose("Collapse")}}const ot={component:"Collapse",selector:".collapse",constructor:nt},st=["dropdown","dropup","dropstart","dropend"];function it(t){const e=t.closest("A");return t&&(t.href&&"#"===t.href.slice(-1)||e&&e.href&&"#"===e.href.slice(-1))}function at(t){t.focus()}const[lt]=st,rt=`[data-bs-toggle="${lt}"]`,ct=st[1],dt=st[2],ht=st[3],ut=["d-block","invisible"],pt=[lt,ct],mt=[dt,ht],ft={offset:5,display:"dynamic"},gt=d("show.bs."+lt),vt=d("shown.bs."+lt),bt=d("hide.bs."+lt),wt=d("hidden.bs."+lt);function yt(t,e){const{element:n,menu:o,originalClass:s,menuEnd:i,options:a}=t,c=n.parentElement;if(o.style.margin="",!e){c.className=s.join(" ");return void(i&&!l(o,"dropdown-menu-end")?w:r)(o,"dropdown-menu-end")}const{offset:d}=a;let h=st.find(t=>s.includes(t)),u={dropdown:[d,0,0],dropup:[0,0,d],dropstart:[-1,d,0],dropend:[-1,0,0,d]};ut.forEach(t=>w(o,t));const p=new RegExp(`\\b(${lt}|${ct}|${dt}|${ht})+`),m=n.offsetWidth,f=n.offsetHeight,g=o.offsetWidth,v=o.offsetHeight,b=document.documentElement,y=document.body,E=b.clientWidth||y.clientWidth,A=b.clientHeight||y.clientHeight,T=n.getBoundingClientRect(),C=T.left+m-g<0,x=T.left-g<0,k=T.left+g>=E,H=T.left+g+m>=E,L=T.top+v>=A,N=T.top+v+f>=A,P=T.top-v<0,S=c.parentNode.closest(".btn-group,.btn-group-vertical");if(mt.includes(h)&&x&&H&&(h=lt),mt.includes(h)&&L&&(h=ct),h===dt&&x&&!L&&(h=ht),h===ht&&H&&!L&&(h=dt),h===ct&&P&&!N&&(h=lt),h===lt&&N&&!P&&(h=ct),u=u[h],o.style.margin=""+u.map(t=>t?t+"px":t).join(" "),l(c,h)||(c.className=c.className.replace(p,h)),pt.includes(h)){const t=k?w:r;S?C&&w(c,"position-static"):t(o,"dropdown-menu-end")}ut.forEach(t=>r(o,t))}function Et(t){const e=t.open?c:"removeEventListener";document[e]("click",Ct),document[e]("focus",Ct),document[e]("keydown",kt),document[e]("keyup",Ht),"dynamic"===t.options.display&&(window[e]("scroll",Lt,C),window[e]("resize",Lt,C))}function At(t,e){const n=e?c:"removeEventListener";t.element[n]("click",xt)}function Tt(){const t=st.map(t=>document.getElementsByClassName(t+" show")).find(t=>t.length);return t&&t.length?Array.from(t[0].children).find(t=>t.hasAttribute(y)):null}function Ct(t){const{target:e,type:n}=t;if(!e.closest)return;const o=Tt(),s=o&&o.parentNode,i=o&&o.Dropdown,a=i&&i.menu,l=null!==e.closest(rt),r=s&&s.contains(e)&&("form"===e.tagName||null!==e.closest("form"));"click"===n&&it(e)&&t.preventDefault(),("focus"!==n||e!==o&&e!==a&&!a.contains(e))&&(r||l||i&&i.hide(o))}function xt(t){this.Dropdown.toggle(this),it(t.target)&&t.preventDefault()}function kt(t){38!==t.which&&40!==t.which||t.preventDefault()}function Ht({which:t}){const e=Tt(),n=e.Dropdown,{menu:o,menuItems:s,open:i}=n,a=document.activeElement,l=a===e,r=o.contains(a),c=a.parentNode===o||a.parentNode.parentNode===o;let d=s.indexOf(a);c&&(l?d=0:38===t?d=d>1?d-1:0:40===t&&(d=d<s.length-1?d+1:d),s[d]&&at(s[d])),(s.length&&c||!s.length&&(r||l)||!r)&&i&&27===t&&n.toggle()}function Lt(){const t=Tt(),e=t&&t.Dropdown;e&&e.open&&yt(e,1)}class Nt extends u{constructor(t,e){super("Dropdown",t,ft,e);const n=this,{element:o}=n,s=o.parentElement;n.menu=a(".dropdown-menu",s);const{menu:i}=n;n.originalClass=Array.from(s.classList),n.menuEnd=l(i,"dropdown-menu-end"),n.menuItems=[],Array.from(i.children).forEach(t=>{t.children.length&&"A"===t.children[0].tagName&&n.menuItems.push(t.children[0]),"A"===t.tagName&&n.menuItems.push(t)}),n.open=!1,At(n,1)}toggle(t){const{open:e}=this;e?this.hide(t):this.show(t)}show(t){const e=this,n=a(st.map(t=>`.${t}.show`).join(",")),o=n&&a(rt,n);o&&o.Dropdown.hide();const{element:s,menu:i,open:l}=e,r=s.parentNode;gt.relatedTarget=t||null,r.dispatchEvent(gt),gt.defaultPrevented||(yt(e,1),w(i,"show"),w(r,"show"),s.setAttribute("aria-expanded",!0),e.open=!l,setTimeout(()=>{at(i.getElementsByTagName("INPUT")[0]||s),Et(e),vt.relatedTarget=t||null,r.dispatchEvent(vt)},1))}hide(t){const e=this,{element:n,menu:o,open:s}=e,i=n.parentNode;bt.relatedTarget=t||null,i.dispatchEvent(bt),bt.defaultPrevented||(r(o,"show"),r(i,"show"),yt(e),n.setAttribute("aria-expanded",!1),e.open=!s,at(n),setTimeout(()=>Et(e),1),wt.relatedTarget=t||null,i.dispatchEvent(wt))}dispose(){const{element:t}=this;l(t.parentNode,"show")&&this.open&&this.hide(),At(this),super.dispose("Dropdown")}}const Pt={component:"Dropdown",selector:rt,constructor:Nt},St=Array.from(document.getElementsByClassName("fixed-top")).concat(Array.from(document.getElementsByClassName("fixed-bottom"))).concat(Array.from(document.getElementsByClassName("sticky-top"))).concat(Array.from(document.getElementsByClassName("is-fixed")));function Dt(){const t=document.body;t.style.paddingRight="",t.style.overflow="",St.length&&St.forEach(t=>{t.style.paddingRight="",t.style.marginRight=""})}function Ot(){const t=document.createElement("div"),e=document.body;t.className="modal-scrollbar-measure",e.appendChild(t);const n=t.offsetWidth-t.clientWidth;return e.removeChild(t),n}function Mt(t,e,n){const o=document.body,s=parseInt(getComputedStyle(o).paddingRight,10),i=n&&s?0:t;e&&(o.style.paddingRight=s+i+"px",o.style.overflow="hidden",St.length&&St.forEach(t=>{const e=l(t,"sticky-top"),n=getComputedStyle(t).paddingRight;if(t.style.paddingRight=parseInt(n,10)+i+"px",e){const e=getComputedStyle(t).marginRight;t.style.marginRight=parseInt(e,10)-i+"px"}}))}const Bt={backdrop:!0,keyboard:!0},It=d("show.bs.modal"),Rt=d("shown.bs.modal"),Wt=d("hide.bs.modal"),jt=d("hidden.bs.modal");function Ft(t){const{element:e}=t,n=document.body,o=document.documentElement,s=l(n,"modal-open"),i=o.clientHeight!==o.scrollHeight||n.clientHeight!==n.scrollHeight,a=e.clientHeight!==e.scrollHeight,r=Ot();!a&&r&&(e.style.paddingRight=r+"px"),Mt(r,a||i,s)}function zt(t){let e=a(".modal-backdrop");const n=document.body,o=a(".modal.show");e&&!o&&(n.removeChild(e),e=null),t.isAnimating=!1,null===e&&(r(n,"modal-open"),t.element.style.paddingRight="",Dt())}function qt(t,e){const n=e?c:"removeEventListener";window[n]("resize",t.update,C),t.element[n]("click",Zt),document[n]("keydown",Ut)}function Xt(t,e){const n=e?c:"removeEventListener";t.triggers&&t.triggers.length&&t.triggers.forEach(t=>t[n]("click",Gt))}function $t(t){const{element:e,hasFade:n}=t;e.style.display="block",Ft(t),a(".modal.show")||w(document.body,"modal-open"),w(e,"show"),e.removeAttribute("aria-hidden"),e.setAttribute("aria-modal",!0),n?i(e,()=>Yt(t)):Yt(t)}function Yt(t){const{element:e,relatedTarget:n}=t;at(e),t.isAnimating=!1,qt(t,1),Rt.relatedTarget=n,e.dispatchEvent(Rt)}function Vt(t,e){const{relatedTarget:n,hasFade:o,element:s,triggers:c}=t,d=a(".modal-backdrop");s.style.display="",c.length&&at(c[0]),!e&&d&&o&&l(d,"show")&&!a(".modal.show")?(r(d,"show"),i(d,()=>zt(t))):zt(t),qt(t),jt.relatedTarget=n,s.dispatchEvent(jt)}function Gt(t){const{target:e}=t,n=e.closest('[data-bs-toggle="modal"]'),o=U(n),s=o&&o.Modal;"A"===n.tagName&&t.preventDefault(),s.isAnimating||(s.relatedTarget=n,s.toggle(n))}function Ut({which:t}){const e=a(".modal.show"),n=e.Modal,{options:o,isAnimating:s}=n;!s&&o.keyboard&&27===t&&l(e,"show")&&(n.relatedTarget=null,n.hide())}function Zt(t){const e=this,n=e.Modal;if(n.isAnimating)return;const{isStatic:o,modalDialog:a}=n,{target:l}=t,c=document.getSelection().toString().length,d=a.contains(l),h=l.closest('[data-bs-dismiss="modal"]');o&&!d?(w(e,"modal-static"),n.isAnimating=!0,i(a,()=>function(t){const e=s(t.modalDialog)+17;r(t.element,"modal-static"),setTimeout(()=>{t.isAnimating=!1},e)}(n))):!h&&(c||o||d)||(n.relatedTarget=h||null,n.hide(),t.preventDefault())}class Jt extends u{constructor(t,e){super("Modal",t,Bt,e);const{element:n}=this;this.modalDialog=a(".modal-dialog",n),this.triggers=Array.from(document.querySelectorAll('[data-bs-toggle="modal"]')).filter(t=>U(t)===n),this.isStatic="static"===this.options.backdrop,this.hasFade=l(n,"fade"),this.isAnimating=!1,this.relatedTarget=null,Xt(this,1),this.update=this.update.bind(this)}toggle(t){l(this.element,"show")?this.hide():this.show(t)}show(t){const e=this,{element:n,isAnimating:o,options:i}=e;if(l(n,"show")&&!o)return;if(It.relatedTarget=t,n.dispatchEvent(It),It.defaultPrevented)return;e.isAnimating=!0;const r=a(".modal.show"),c=i.backdrop?function(t){let e=a(".modal-backdrop");if(null===e){const n=document.createElement("div");n.setAttribute("class","modal-backdrop"+(t.hasFade?" fade":"")),e=n,document.body.appendChild(e)}return e}(e):null;let d=0;r&&r!==n&&r.Modal&&r.Modal.hide(),!c||r||l(c,"show")||(x(c),d=s(c),w(c,"show")),r?$t(e):setTimeout(()=>$t(e),c&&d?d:0)}hide(t){const e=this,{element:n,isAnimating:o,hasFade:s,relatedTarget:a}=e;(l(n,"show")||o)&&(Wt.relatedTarget=a,n.dispatchEvent(Wt),Wt.defaultPrevented||(e.isAnimating=!0,r(n,"show"),n.setAttribute("aria-hidden",!0),n.removeAttribute("aria-modal"),s&&1!==t?i(n,()=>{Vt(e)}):Vt(e,t)))}update(){l(this.element,"show")&&Ft(this)}dispose(){this.hide(1),Xt(this),super.dispose("Modal")}}const Kt={component:"Modal",selector:".modal",constructor:Jt},Qt={backdrop:!0,keyboard:!0,scroll:!1},_t=d("show.bs.offcanvas"),te=d("shown.bs.offcanvas"),ee=d("hide.bs.offcanvas"),ne=d("hidden.bs.offcanvas");function oe(t){const e=this,n=U(e),o=n&&n.Offcanvas;"A"===e.tagName&&t.preventDefault(),setTimeout(()=>{o&&o.toggle(e)},17)}function se(t){const e=a(".offcanvas.show"),n=e&&a('[data-bs-dismiss="offcanvas"]',e),o=e&&e.Offcanvas,{open:s,triggers:i}=o,{target:l}=t,r=l.closest('[data-bs-toggle="offcanvas"]');r&&"A"===r.tagName&&t.preventDefault(),o&&s&&(!e.contains(l)&&e!==l&&(!r||r&&!i.includes(r))||l===n)&&o.hide(l===n?n:null)}function ie({which:t}){const e=a(".offcanvas.show"),n=e&&e.Offcanvas;n&&n.options.keyboard&&27===t&&n.hide()}function ae(t,e){const{triggers:n}=t,o=e?c:"removeEventListener";n.forEach(t=>t[o]("click",oe))}function le(t){const e=t?c:"removeEventListener";document[e]("keydown",ie),document[e]("click",se)}class re extends u{constructor(t,e){super("Offcanvas",t,Qt,e);const{element:n}=this;this.triggers=Array.from(document.querySelectorAll('[data-bs-toggle="offcanvas"]')).filter(t=>U(t)===n),this.open=!1,ae(this,1)}toggle(t){return this.open?this.hide(t):this.show(t)}show(t){const e=a(".offcanvas.show");e&&e.Offcanvas.hide();const n=this.Offcanvas?this.Offcanvas:this,{element:o,options:s}=n;n.open||(_t.relatedTarget=t||null,o.dispatchEvent(_t),_t.defaultPrevented||(n.open=!0,o.style.visibility="visible",s.backdrop&&w(document.body,"offcanvas-backdrop"),s.scroll||function(){const t=document.body,e=document.documentElement,n=l(t,"offcanvas-backdrop"),o=e.clientHeight!==e.scrollHeight||t.clientHeight!==t.scrollHeight;Mt(Ot(),o,n)}(),w(o,"offcanvas-toggling"),w(o,"show"),le(1),i(o,()=>function(t,e){const{element:n,triggers:o}=t;r(n,"offcanvas-toggling"),n.removeAttribute("aria-hidden"),n.setAttribute("aria-modal",!0),n.setAttribute("role","dialog"),o.length&&o.forEach(t=>t.setAttribute("aria-expanded",!0)),te.relatedTarget=e||null,n.dispatchEvent(te),at(n)}(n,t))))}hide(t){const e=this,{element:n}=e;e.open&&(ee.relatedTarget=t||null,n.dispatchEvent(ee),ee.defaultPrevented||(w(n,"offcanvas-toggling"),n.blur(),e.open=!1,r(n,"show"),le(),i(n,()=>function(t,e){const{element:n,options:o,triggers:s}=t;n.setAttribute("aria-hidden",!0),n.removeAttribute("aria-modal"),n.removeAttribute("role"),n.style.visibility="hidden",s.length&&(at(s[0]),s.forEach(t=>t.setAttribute("aria-expanded",!1))),ne.relatedTarget=e||null,n.dispatchEvent(ne),r(n,"offcanvas-toggling"),a(".offcanvas.show")||(o.backdrop&&r(document.body,"offcanvas-backdrop"),o.scroll||Dt())}(e,t))))}dispose(){ae(this),super.dispose("Offcanvas")}}const ce={component:"Offcanvas",selector:".offcanvas",constructor:re};var de={top:"top",bottom:"bottom",left:"start",right:"end"};function he(t,e){return e.contains(t)}function ue(t){return[SVGElement,HTMLImageElement,HTMLVideoElement].some(e=>t instanceof e)}function pe(t,e){const n=/\b(top|bottom|start|end)+/,o=t.tooltip||t.popover;o.style.top="",o.style.left="",o.style.right="";const s=!!t.popover;let i={w:o.offsetWidth,h:o.offsetHeight};const a=document.documentElement.clientWidth||document.body.clientWidth,l=document.documentElement.clientHeight||document.body.clientHeight,{element:r,options:c,arrow:d}=t;let{container:h,placement:u}=c,p=h===document.body;const m=getComputedStyle(r).position,f=getComputedStyle(h).position,g=!p&&"static"===f;let v=!p&&"relative"===f;const b=g&&function(t){let e=null,n=t;for(;n!==document.body;)if(n=n.parentElement,"relative"===getComputedStyle(n).position){e=n;break}return e}(h);h=b||h,v=g&&b?1:v,p=h===document.body;const w=h.getBoundingClientRect(),y=v?w.left:0,E=v?w.right:a,A="absolute"===m,T=r.getBoundingClientRect(),C=p?{x:window.pageXOffset,y:window.pageYOffset}:{x:h.scrollLeft,y:h.scrollTop},x=r.offsetWidth,k=r.offsetHeight,H=v?r.offsetTop:T.top,L=v?r.offsetLeft:T.left;let N,P,S,D,O,M;d.style.top="",d.style.left="",d.style.right="";let B=T.top-i.h<0,I=T.top+i.h+k>=l,R=T.left-i.w<y,W=T.left+i.w+x>=E;B=["left","right"].includes(u)?T.top+k/2-i.h/2<0:B,I=["left","right"].includes(u)?T.top+i.h/2+k/2>=l:I,R=["top","bottom"].includes(u)?T.left+x/2-i.w/2<y:R,W=["top","bottom"].includes(u)?T.left+i.w/2+x/2>=E:W,u=["left","right"].includes(u)&&R&&W?"top":u,u="top"===u&&B?"bottom":u,u="bottom"===u&&I?"top":u,u="left"===u&&R?"right":u,u="right"===u&&W?"left":u,o.className.includes(u)||(o.className=o.className.replace(n,de[u])),i={w:o.offsetWidth,h:o.offsetHeight};const j=d.offsetWidth||0,F=d.offsetHeight||0,z=j/2;if(["left","right"].includes(u))P="left"===u?L+C.x-i.w-(s?j:0):L+C.x+x+(s?j:0),B?(N=H+C.y,D=k/2-j):I?(N=H+C.y-i.h+k,D=i.h-k/2-j):(N=H+C.y-i.h/2+k/2,D=i.h/2-F/2);else if(["top","bottom"].includes(u))if(e&&ue(r)){const t=v?e.layerX+(A?r.offsetLeft:0):e.pageX,n=v?e.layerY+(A?r.offsetTop:0):e.pageY;N="top"===u?n-i.h-(s?j:F):n+F,e.clientX-i.w/2<y?(P=0,O=t-z):e.clientX+.51*i.w>=E?(P="auto",S=0,O=i.w-(E-t)-z):(P=t-i.w/2,O=i.w/2-z)}else N="top"===u?H+C.y-i.h-(s?F:0):H+C.y+k+(s?F:0),R?(P=0,O=L+x/2-z):W?(P="auto",S=0,M=x/2+(w.right-T.right)-z):(P=L+C.x-i.w/2+x/2,O=i.w/2-z);o.style.top=N+"px",o.style.left="auto"===P?P:P+"px",o.style.right=void 0!==S?S+"px":"",void 0!==D&&(d.style.top=D+"px"),void 0!==O?d.style.left=O+"px":void 0!==M&&(d.style.right=M+"px")}let me=1;function fe(t,e){return me+=1,t[e]||me}function ge(t){const e=t.closest(".modal"),n=t.closest(".fixed-top,.fixed-bottom");return e||n||document.body}const ve={template:'<div class="popover" role="tooltip"><div class="popover-arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>',title:null,content:null,sanitizeFn:null,customClass:null,dismissible:!1,animation:!0,trigger:"hover",placement:"top",delay:200},be=/(iPhone|iPod|iPad)/.test(navigator.userAgent);let we='<button type="button" class="btn-close"></button>';const ye=d("show.bs.popover"),Ee=d("shown.bs.popover"),Ae=d("hide.bs.popover"),Te=d("hidden.bs.popover");function Ce(){at(this)}function xe({target:t}){const e=this,{popover:n,element:o}=e;n&&n.contains(t)||t===o||o.contains(t)||e.hide()}function ke(t,e){const n=e?c:"removeEventListener",{element:o,options:s}=t,{trigger:i,dismissible:a}=s;t.enabled=!!e,"hover"===i?(o[n]("mousedown",t.show),o[n]("mouseenter",t.show),ue(o)&&o[n]("mousemove",t.update,C),a||o[n]("mouseleave",t.hide)):"click"===i?o[n](i,t.toggle):"focus"===i&&(be&&o[n]("click",Ce),o[n]("focusin",t.show))}function He(t,e){const n=e?c:"removeEventListener",{options:o,element:s,popover:i}=t,{trigger:a,dismissible:l}=o;if(l){const[e]=i.getElementsByClassName("btn-close");e&&e[n]("click",t.hide)}else"focus"===a&&s[n]("focusout",t.hide),"hover"===a&&document[n]("touchstart",xe,C);ue(s)||(window[n]("scroll",t.update,C),window[n]("resize",t.update,C))}function Le(t){He(t,1),t.element.dispatchEvent(Ee)}function Ne(t){He(t),function(t){const{element:e,popover:n,options:o}=t;e.removeAttribute("aria-describedby"),o.container.removeChild(n),t.timer=null}(t),t.element.dispatchEvent(Te)}class Pe extends u{constructor(t,e){ve.container=ge(a(t)),super("Popover",t,ve,e);const{element:n}=this;this.timer=null,this.popover=null,this.arrow=null,this.enabled=!1,this.id="popover-"+fe(n);const{options:o}=this;this.options.container=ue(n)?ve.container:a(o.container),ve.container=null,o.content&&(!function(t){const{id:e,options:n}=t,{animation:o,customClass:s,sanitizeFn:i,placement:r,dismissible:c}=n;let{title:d,content:h,template:u}=n;const p="bs-popover-"+de[r];d=d?d.trim():null,h=h?h.trim():null,i&&(d=d?i(d):null,h=h?i(h):null,u=u?i(u):null,we=i(we)),t.popover=document.createElement("div");const{popover:m}=t;m.setAttribute("id",e),m.setAttribute("role","tooltip");const f=document.createElement("div");f.innerHTML=u.trim(),m.className=f.firstChild.className,m.innerHTML=f.firstChild.innerHTML;const g=a(".popover-header",m),v=a(".popover-body",m);t.arrow=a(".popover-arrow",m),c&&(d=d?d+we:d,h=null===d?+we:h),d&&g&&(g.innerHTML=d.trim()),h&&v&&(v.innerHTML=h.trim()),l(m,"popover")||w(m,"popover"),o&&!l(m,"fade")&&w(m,"fade"),s&&!l(m,s)&&w(m,s),l(m,p)||w(m,p)}(this),this.update=this.update.bind(this),ke(this,1))}update(t){pe(this,t)}toggle(t){const e=t?this.Popover:this,{popover:n,options:o}=e;he(n,o.container)?e.hide():e.show()}show(t){const e=t?this.Popover:this,{element:n,popover:o,options:s,id:a}=e,{container:r}=s;clearTimeout(e.timer),e.timer=setTimeout(()=>{if(!he(o,r)){if(n.dispatchEvent(ye),ye.defaultPrevented)return;r.appendChild(o),n.setAttribute("aria-describedby",a),e.update(t),l(o,"show")||w(o,"show"),s.animation?i(o,()=>Le(e)):Le(e)}},17)}hide(t){let e;if(t&&this.Popover)e=this.Popover;else if(t){const t=this.closest(".popover"),n=t&&a(`[aria-describedby="${t.id}"]`);e=n.Popover}else e=this;const{element:n,popover:o,options:s}=e;clearTimeout(e.timer),e.timer=setTimeout(()=>{if(he(o,s.container)){if(n.dispatchEvent(Ae),Ae.defaultPrevented)return;r(o,"show"),s.animation?i(o,()=>Ne(e)):Ne(e)}},s.delay+17)}enable(){const t=this,{enabled:e}=t;e||(ke(t,1),t.enabled=!e)}disable(){const t=this,{enabled:e,popover:n,options:o}=t;e&&(he(n,o.container)&&o.animation?(t.hide(),setTimeout(()=>ke(t),s(n)+o.delay+17)):ke(t),t.enabled=!e)}toggleEnabled(){this.enabled?this.disable():this.enable()}dispose(){const t=this,{popover:e,options:n}=t,{container:o,animation:s}=n;s&&he(e,o)?(n.delay=0,t.hide(),i(e,()=>ke(t))):ke(t),super.dispose("Popover")}}const Se={component:"Popover",selector:'[data-bs-toggle="popover"],[data-tip="popover"]',constructor:Pe},De={offset:10,target:null},Oe=d("activate.bs.scrollspy");function Me(t){const{target:e,scrollTarget:n,isWindow:o,options:s,itemsLength:i,scrollHeight:l}=t,{offset:r}=s,c=e.getElementsByTagName("A");if(t.scrollTop=o?n.pageYOffset:n.scrollTop,i!==c.length||Be(n)!==l){let e,s,i;t.items=[],t.offsets=[],t.scrollHeight=Be(n),t.maxScroll=t.scrollHeight-function({element:t,isWindow:e}){return e?window.innerHeight:t.getBoundingClientRect().height}(t),Array.from(c).forEach(n=>{e=n.getAttribute("href"),s=e&&"#"===e.charAt(0)&&"#"!==e.slice(-1)&&a(e),s&&(t.items.push(n),i=s.getBoundingClientRect(),t.offsets.push((o?i.top+t.scrollTop:s.offsetTop)-r))}),t.itemsLength=t.items.length}}function Be(t){return t.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)}function Ie(t){Array.from(t.getElementsByTagName("A")).forEach(t=>{l(t,"active")&&r(t,"active")})}function Re(t,e){const{target:n,element:o}=t;Ie(n),t.activeItem=e,w(e,"active");const s=[];let i=e;for(;i!==document.body;)i=i.parentNode,(l(i,"nav")||l(i,"dropdown-menu"))&&s.push(i);s.forEach(t=>{const e=t.previousElementSibling;e&&!l(e,"active")&&w(e,"active")}),Oe.relatedTarget=e,o.dispatchEvent(Oe)}function We(t,e){const n=e?c:"removeEventListener";t.scrollTarget[n]("scroll",t.refresh,C)}class je extends u{constructor(t,e){super("ScrollSpy",t,De,e);const{element:n,options:o}=this;this.target=a(o.target),this.target&&(this.scrollTarget=n.clientHeight<n.scrollHeight?n:window,this.isWindow=this.scrollTarget===window,this.scrollTop=0,this.maxScroll=0,this.scrollHeight=0,this.activeItem=null,this.items=[],this.offsets=[],this.refresh=this.refresh.bind(this),We(this,1),this.refresh())}refresh(){const t=this,{target:e}=t;if(0===e.offsetHeight)return;Me(t);const{scrollTop:n,maxScroll:o,itemsLength:s,items:i,activeItem:a}=t;if(n>=o){const e=i[s-1];return void(a!==e&&Re(t,e))}const{offsets:l}=t;if(a&&n<l[0]&&l[0]>0)return t.activeItem=null,void Ie(e);i.forEach((e,o)=>{a!==e&&n>=l[o]&&(void 0===l[o+1]||n<l[o+1])&&Re(t,e)})}dispose(){We(this),super.dispose("ScrollSpy")}}const Fe={component:"ScrollSpy",selector:'[data-bs-spy="scroll"]',constructor:je},ze=d("show.bs.tab"),qe=d("shown.bs.tab"),Xe=d("hide.bs.tab"),$e=d("hidden.bs.tab");let Ye,Ve,Ge,Ue,Ze,Je,Ke;function Qe(t){const{tabContent:e,nav:n}=t;e.style.height="",r(e,"collapsing"),n.isAnimating=!1}function _e(t){const{tabContent:e,nav:n}=t;e?Ke?Qe(t):setTimeout(()=>{e.style.height=Ge+"px",x(e),i(e,()=>Qe(t))},50):n.isAnimating=!1,qe.relatedTarget=Ue,Ye.dispatchEvent(qe)}function tn(t){const{tabContent:e}=t;e&&(Ze.style.float="left",Ve.style.float="left",Je=Ze.scrollHeight),ze.relatedTarget=Ue,$e.relatedTarget=Ye,Ye.dispatchEvent(ze),ze.defaultPrevented||(w(Ve,"active"),r(Ze,"active"),e&&(Ge=Ve.scrollHeight,Ke=Ge===Je,w(e,"collapsing"),e.style.height=Je+"px",x(e),Ze.style.float="",Ve.style.float=""),l(Ve,"fade")?setTimeout(()=>{w(Ve,"show"),i(Ve,()=>{_e(t)})},20):_e(t),Ue.dispatchEvent($e))}function en({nav:t}){const e=t.getElementsByClassName("active");return 1!==e.length||st.some(t=>l(e[0].parentNode,t))?e.length>1&&(Ue=e[e.length-1]):[Ue]=e,Ue}function nn(t){return a(en(t).getAttribute("href"))}function on(t,e){const n=e?c:"removeEventListener";t.element[n]("click",sn)}function sn(t){const e=this.Tab;t.preventDefault(),e.nav.isAnimating||e.show()}class an extends u{constructor(t){super("Tab",t);const{element:n}=this;this.nav=n.closest(".nav");const{nav:o}=this;this.dropdown=o&&a(`.${st[0]}-toggle`,o),Ze=nn(this),this.tabContent=e&&Ze.closest(".tab-content"),Je=Ze.scrollHeight,o.isAnimating=!1,on(this,1)}show(){const t=this,{element:e,nav:n,dropdown:o}=t;if(Ye=e,!l(Ye,"active")){if(Ve=a(Ye.getAttribute("href")),Ue=en({nav:n}),Ze=nn({nav:n}),Xe.relatedTarget=Ye,Ue.dispatchEvent(Xe),Xe.defaultPrevented)return;n.isAnimating=!0,r(Ue,"active"),Ue.setAttribute("aria-selected","false"),w(Ye,"active"),Ye.setAttribute("aria-selected","true"),o&&(l(e.parentNode,"dropdown-menu")?l(o,"active")||w(o,"active"):l(o,"active")&&r(o,"active")),l(Ze,"fade")?(r(Ze,"show"),i(Ze,()=>tn(t))):tn(t)}}dispose(){on(this),super.dispose("Tab")}}const ln={component:"Tab",selector:'[data-bs-toggle="tab"]',constructor:an},rn={animation:!0,autohide:!0,delay:500},cn=d("show.bs.toast"),dn=d("hide.bs.toast"),hn=d("shown.bs.toast"),un=d("hidden.bs.toast");function pn(t){const{element:e,options:n}=t;n.animation||(r(e,"showing"),w(e,"show")),e.dispatchEvent(hn),n.autohide&&t.hide()}function mn(t){const{element:e}=t;w(e,"hide"),e.dispatchEvent(un)}function fn(t,e){const n=e?c:"removeEventListener";t.dismiss&&t.dismiss[n]("click",t.hide)}function gn(t){clearTimeout(t.timer),fn(t)}class vn extends u{constructor(t,e){super("Toast",t,rn,e);this.dismiss=a('[data-bs-dismiss="toast"]',this.element),this.show=this.show.bind(this),this.hide=this.hide.bind(this),fn(this,1)}show(){const t=this,{element:e}=t;if(e&&l(e,"hide")){if(e.dispatchEvent(cn),cn.defaultPrevented)return;w(e,"fade"),clearTimeout(t.timer),t.timer=setTimeout(()=>function(t){const{element:e,options:n}=t;r(e,"hide"),n.animation?(x(e),w(e,"showing"),w(e,"show"),i(e,()=>pn(t))):pn(t)}(t),10)}}hide(t){const e=this,{element:n,options:o}=e;if(n&&l(n,"show")){if(n.dispatchEvent(dn),dn.defaultPrevented)return;clearTimeout(e.timer),e.timer=setTimeout(function(t){const{element:e,options:n}=t;r(e,"show"),n.animation?(x(e),i(e,()=>mn(t))):mn(t)}(e),t?10:o.delay)}}dispose(){const t=this,{element:e,options:n}=t;t.hide(),n.animation?i(e,()=>gn(t)):gn(t),super.dispose("Toast")}}const bn={component:"Toast",selector:".toast",constructor:vn},wn={title:null,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',placement:"top",animation:!0,customClass:null,delay:200,sanitizeFn:null},yn=d("show.bs.tooltip"),En=d("shown.bs.tooltip"),An=d("hide.bs.tooltip"),Tn=d("hidden.bs.tooltip");function Cn(t){const{element:e}=t;Ln(t),e.hasAttribute("data-original-title")&&Nn(t)}function xn(t,e){const n=e?c:"removeEventListener";document[n]("touchstart",Pn,C),ue(t.element)||(window[n]("scroll",t.update,C),window[n]("resize",t.update,C))}function kn(t){xn(t,1),t.element.dispatchEvent(En)}function Hn(t){xn(t),function(t){const{element:e,options:n,tooltip:o}=t;e.removeAttribute("aria-describedby"),n.container.removeChild(o),t.timer=null}(t),t.element.dispatchEvent(Tn)}function Ln(t,e){const n=e?c:"removeEventListener",{element:o}=t;ue(o)&&o[n]("mousemove",t.update,C),o[n]("mousedown",t.show),o[n]("mouseenter",t.show),o[n]("mouseleave",t.hide)}function Nn(t,e){const n=["data-original-title","title"],{element:o}=t;o.setAttribute(n[e?0:1],e||o.getAttribute(n[0])),o.removeAttribute(n[e?1:0])}function Pn({target:t}){const{tooltip:e,element:n}=this;e.contains(t)||t===n||n.contains(t)||this.hide()}class Sn extends u{constructor(t,e){const n=a(t);wn.title=n.getAttribute("title"),wn.container=ge(n),super("Tooltip",n,wn,e);this.tooltip=null,this.arrow=null,this.timer=null,this.enabled=!1;const{options:o}=this;this.options.container=ue(n)?wn.container:a(o.container),wn.container=null,wn.title=null,o.title&&(Pn.bind(this),this.update=this.update.bind(this),n.hasAttribute("title")&&Nn(this,o.title),this.id="tooltip-"+fe(n),function(t){const{options:e,id:n}=t,o="bs-tooltip-"+de[e.placement];let s=e.title.trim();if(e.sanitizeFn&&(s=e.sanitizeFn(s),e.template=e.sanitizeFn(e.template)),!s)return;t.tooltip=document.createElement("div");const{tooltip:i}=t;i.setAttribute("id",n);const r=document.createElement("div");r.innerHTML=e.template.trim(),i.className=r.firstChild.className,i.innerHTML=r.firstChild.innerHTML,a(".tooltip-inner",i).innerHTML=s,t.arrow=a(".tooltip-arrow",i),i.setAttribute("role","tooltip"),l(i,"tooltip")||w(i,"tooltip"),e.animation&&!l(i,"fade")&&w(i,"fade"),e.customClass&&!l(i,e.customClass)&&w(i,e.customClass),l(i,o)||w(i,o)}(this),Ln(this,1))}show(t){const e=t?this.Tooltip:this,{options:n,tooltip:o,element:s,id:a}=e;clearTimeout(e.timer),e.timer=setTimeout(()=>{if(!he(o,n.container)){if(s.dispatchEvent(yn),yn.defaultPrevented)return;n.container.appendChild(o),s.setAttribute("aria-describedby",a),e.update(t),l(o,"show")||w(o,"show"),n.animation?i(o,()=>kn(e)):kn(e)}},20)}hide(t){const e=t?this.Tooltip:this,{options:n,tooltip:o,element:s}=e;clearTimeout(e.timer),e.timer=setTimeout(()=>{if(he(o,n.container)){if(s.dispatchEvent(An),An.defaultPrevented)return;r(o,"show"),n.animation?i(o,()=>Hn(e)):Hn(e)}},n.delay)}update(t){pe(this,t)}toggle(){const{tooltip:t,options:e}=this;he(t,e.container)?this.hide():this.show()}enable(){const t=this,{enabled:e}=t;e||(Ln(t,1),t.enabled=!e)}disable(){const t=this,{tooltip:e,options:n,enabled:o}=t;o&&(!he(e,n.container)&&n.animation?(t.hide(),setTimeout(()=>Ln(t),s(e)+n.delay+17)):Ln(t),t.enabled=!o)}toggleEnabled(){this.enabled?this.disable():this.enable()}dispose(){const t=this,{tooltip:e,options:n}=t;n.animation&&he(e,n.container)?(n.delay=0,t.hide(),i(e,()=>Cn(t))):Cn(t),super.dispose("Tooltip")}}const Dn={Alert:b,Button:T,Carousel:G,Collapse:ot,Dropdown:Pt,Modal:Kt,Offcanvas:ce,Popover:Se,ScrollSpy:Fe,Tab:ln,Toast:bn,Tooltip:{component:"Tooltip",selector:'[data-bs-toggle="tooltip"],[data-tip="tooltip"]',constructor:Sn}};function On(t){const e=t instanceof Element?t:document;Object.keys(Dn).forEach(t=>{const{constructor:n,selector:o}=Dn[t];var s,i;s=n,i=e.querySelectorAll(o),Array.from(i).forEach(t=>new s(t))})}document.body?On():document.addEventListener("DOMContentLoaded",()=>On(),{once:!0});var Mn={Alert:v,Button:A,Carousel:V,Collapse:nt,Dropdown:Nt,Modal:Jt,Offcanvas:re,Popover:Pe,ScrollSpy:je,Tab:an,Toast:vn,Tooltip:Sn,initCallback:On,Version:"3.0.15-alpha2"};export default Mn; |
@@ -1,2 +0,2 @@ | ||
// Native JavaScript for Bootstrap v3.0.15-alpha1 | 2021 © dnp_theme | MIT-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).BSN=e()}(this,(function(){"use strict";const t="webkitTransition"in document.head.style?"webkitTransitionEnd":"transitionend",e="webkitTransition"in document.head.style||"transition"in document.head.style,n="webkitTransition"in document.head.style?"webkitTransitionDuration":"transitionDuration",o="webkitTransition"in document.head.style?"webkitTransitionProperty":"transitionProperty";function s(t){const s=getComputedStyle(t),i=s[o],a=s[n],l=a.includes("ms")?1:1e3,r=e&&i&&"none"!==i?parseFloat(a)*l:0;return Number.isNaN(r)?0:r}function i(e,n){let o=0;const i=new Event(t),a=s(e);a?(e.addEventListener(t,(function s(i){i.target===e&&(n.apply(e,[i]),e.removeEventListener(t,s),o=1)})),setTimeout(()=>{o||e.dispatchEvent(i)},a+17)):n.apply(e,[i])}function a(t,e){const n=e&&e instanceof Element?e:document;return t instanceof Element?t:n.querySelector(t)}function l(t,e){return t.classList.contains(e)}function r(t,e){t.classList.remove(e)}const c="addEventListener";function d(t,e){const n=new CustomEvent(t,{cancelable:!0});return e instanceof Object&&Object.keys(e).forEach(t=>{Object.defineProperty(n,t,{value:e[t]})}),n}function h(t){return"true"===t||"false"!==t&&(Number.isNaN(+t)?""===t||"null"===t?null:t:+t)}class u{constructor(t,e,n,o){const s=this,i=a(e);i[t]&&i[t].dispose(),s.element=i,n&&Object.keys(n).length&&(s.options=function(t,e,n,o){const s={},i={},a={...t.dataset};return Object.keys(a).forEach(t=>{const e=t.includes(o)?t.replace(o,"").replace(/[A-Z]/,t=>t.toLowerCase()):t;i[e]=h(a[t])}),Object.keys(n).forEach(t=>{n[t]=h(n[t])}),Object.keys(e).forEach(t=>{s[t]=t in n?n[t]:t in i?i[t]:e[t]}),s}(i,n,o||{},"bs")),i[t]=s}dispose(t){const e=this;e.element[t]=null,Object.keys(e).forEach(t=>{e[t]=null})}}const p=d("close.bs.alert"),m=d("closed.bs.alert");function f(t){const{element:e,relatedTarget:n}=t;g(t),n&&(m.relatedTarget=n),e.dispatchEvent(m),t.dispose(),e.parentNode.removeChild(e)}function g(t,e){const n=e?c:"removeEventListener";t.dismiss&&t.dismiss[n]("click",t.close)}class v extends u{constructor(t){super("Alert",t);const{element:e}=this;this.dismiss=a('[data-bs-dismiss="alert"]',e),this.relatedTarget=null,g(this,1)}close(t){const e=t?t.target:null,n=t?t.target.closest(".alert").Alert:this,{element:o}=n;if(n&&o&&l(o,"show")){if(e&&(p.relatedTarget=e,n.relatedTarget=e),o.dispatchEvent(p),p.defaultPrevented)return;r(o,"show"),l(o,"fade")?i(o,()=>f(n)):f(n)}}dispose(){g(this),super.dispose("Alert")}}const b={component:"Alert",selector:".alert",constructor:v};function y(t,e){t.classList.add(e)}const w="data-bs-toggle",E=`[${w}="button"]`;function A(t,e){const n=e?c:"removeEventListener";t.element[n]("click",t.toggle)}class T extends u{constructor(t){super("Button",t);const{element:e}=this;this.isActive=l(e,"active"),e.setAttribute("aria-pressed",!!this.isActive),A(this,1)}toggle(t){t&&t.preventDefault();const e=t?this.Button:this,{element:n}=e;if(l(n,"disabled"))return;e.isActive=l(n,"active");const{isActive:o}=e,s=o?"false":"true";(o?r:y)(n,"active"),n.setAttribute("aria-pressed",s)}dispose(){A(this),super.dispose("Button")}}const C={component:"Button",selector:E,constructor:T};var x=!!(()=>{let t=!1;try{const e=Object.defineProperty({},"passive",{get:()=>(t=!0,t)});document[c]("DOMContentLoaded",(function t(){document.removeEventListener("DOMContentLoaded",t,e)}),e)}catch(t){throw Error("Passive events are not supported")}return t})()&&{passive:!0};function k(t){return t.offsetHeight}function N(t){const e=t.getBoundingClientRect(),n=window.innerHeight||document.documentElement.clientHeight;return e.top<=n&&e.bottom>=0}const H='[data-bs-ride="carousel"]',L={pause:"hover",keyboard:!1,touch:!0,interval:5e3};let P=0,S=0,D=0;const O=d("slide.bs.carousel"),B=d("slid.bs.carousel");function M(t){const e=t.target.closest(H).Carousel,{element:n,isAnimating:o}=e;l(n,"paused")||(y(n,"paused"),o||(clearInterval(e.timer),e.timer=null))}function I(t){const e=t.target.closest(H).Carousel,{isPaused:n,isAnimating:o,element:s}=e;!n&&l(s,"paused")&&(r(s,"paused"),o||(clearInterval(e.timer),e.timer=null,e.cycle()))}function R(t){t.preventDefault();const e=t.target,n=e.closest(H).Carousel,o=e.getAttribute("data-bs-slide-to");n.isAnimating||e&&!l(e,"active")&&o&&n.to(+o)}function $(t){const e=t.currentTarget||t.srcElement,n=e.closest(H).Carousel,{controls:o}=n;t.preventDefault(),o[1]&&e===o[1]?n.next():o[1]&&e===o[0]&&n.prev()}function j({which:t}){const[e]=Array.from(document.querySelectorAll(H)).filter(t=>N(t));if(!e)return;const n=e.Carousel;switch(t){case 39:n.next();break;case 37:n.prev()}}function W(t){const e=this.Carousel;e&&!e.isTouch&&(P=t.changedTouches[0].pageX,this.contains(t.target)&&(e.isTouch=!0,q(e,1)))}function F(t){const e=this.Carousel;e&&e.isTouch&&(S=t.changedTouches[0].pageX,"touchmove"===t.type&&t.changedTouches.length>1&&t.preventDefault())}function z(t){const e=this,n=e.Carousel;if(n&&n.isTouch&&(D=S||t.changedTouches[0].pageX,n.isTouch)){if((!e.contains(t.target)||!e.contains(t.relatedTarget))&&Math.abs(P-D)<75)return;S<P?n.index+=1:S>P&&(n.index-=1),n.isTouch=!1,n.to(n.index),q(n)}}function X(t,e){const{indicators:n}=t;Array.from(n).forEach(t=>r(t,"active")),t.indicators[e]&&y(n[e],"active")}function q(t,e){const{element:n}=t,o=e?c:"removeEventListener";n[o]("touchmove",F,x),n[o]("touchend",z,x)}function Y(t,e){const{element:n,options:o,slides:s,controls:i,indicator:a}=t,{touch:l,pause:r,interval:d,keyboard:h}=o,u=e?c:"removeEventListener";r&&d&&(n[u]("mouseenter",M),n[u]("mouseleave",I),n[u]("touchstart",M,x),n[u]("touchend",I,x)),l&&s.length>1&&n[u]("touchstart",W,x),i.forEach(t=>{t&&t[u]("click",$)}),a&&a[u]("click",R),h&&window[u]("keydown",j)}function V(t){const{slides:e,element:n}=t;return Array.from(e).indexOf(n.getElementsByClassName("carousel-item active")[0])||0}class G extends u{constructor(t,e){super("Carousel",t,L,e);const n=this;n.timer=null,n.direction="left",n.isPaused=!1,n.isAnimating=!1,n.index=0,n.timer=null,n.isTouch=!1;const{element:o}=n;n.slides=o.getElementsByClassName("carousel-item");const{slides:s}=n;if(s.length<2)return;n.controls=[a(".carousel-control-prev",o),a(".carousel-control-next",o)],n.indicator=a(".carousel-indicators",o),n.indicators=n.indicator&&n.indicator.getElementsByTagName("LI")||[];const{options:i}=n;n.options.interval=!0===i.interval?L.interval:i.interval,V(n)<0&&(s.length&&y(s[0],"active"),n.indicators.length&&X(n,0)),Y(n,1),i.interval&&n.cycle()}cycle(){const t=this,{isPaused:e,element:n,options:o}=t;t.timer&&(clearInterval(t.timer),t.timer=null),e&&(r(n,"paused"),t.isPaused=!e),t.timer=setInterval(()=>{N(n)&&(t.index+=1,t.to(t.index))},o.interval)}pause(){const t=this,{element:e,options:n,isPaused:o}=t;n.interval&&!o&&(clearInterval(t.timer),t.timer=null,y(e,"paused"),t.isPaused=!o)}next(){const t=this;t.isAnimating||(t.index+=1,t.to(t.index))}prev(){const t=this;t.isAnimating||(t.index-=1,t.to(t.index))}to(t){const e=this,{element:n,isAnimating:o,slides:a,options:c}=e,d=V(e);let h=t;if(o||d===h)return;d<h||0===d&&h===a.length-1?e.direction="left":(d>h||d===a.length-1&&0===h)&&(e.direction="right");const{direction:u}=e;h<0?h=a.length-1:h>=a.length&&(h=0);const p="left"===u?"next":"prev",m="left"===u?"start":"end",f={relatedTarget:a[h],direction:u,from:d,to:h};Object.keys(f).forEach(t=>{O[t]=f[t],B[t]=f[t]}),n.dispatchEvent(O),O.defaultPrevented||(e.index=h,clearInterval(e.timer),e.timer=null,e.isAnimating=!0,X(e,h),s(a[h])&&l(n,"slide")?(y(a[h],"carousel-item-"+p),k(a[h]),y(a[h],"carousel-item-"+m),y(a[d],"carousel-item-"+m),i(a[h],()=>function(t){const{index:e,direction:n,element:o,slides:s,options:i,isAnimating:a}=t;if(a&&o.Carousel){const a=V(t),c="left"===n?"next":"prev",d="left"===n?"start":"end";t.isAnimating=!1,y(s[e],"active"),r(s[a],"active"),r(s[e],"carousel-item-"+c),r(s[e],"carousel-item-"+d),r(s[a],"carousel-item-"+d),o.dispatchEvent(B),document.hidden||!i.interval||l(o,"paused")||t.cycle()}}(e))):(y(a[h],"active"),r(a[d],"active"),setTimeout(()=>{e.isAnimating=!1,n&&c.interval&&!l(n,"paused")&&e.cycle(),n.dispatchEvent(B)},100)))}dispose(){const t=this,{slides:e}=t,n=["start","end","prev","next"];Array.from(e).forEach((e,o)=>{l(e,"active")&&X(t,o),n.forEach(t=>r(e,"carousel-item-"+t))}),Y(t),clearInterval(t.timer),super.dispose("Carousel")}}const U={component:"Carousel",selector:H,constructor:G};function Z(t){return a(t.getAttribute("data-bs-target")||t.getAttribute("href"))||t.closest(t.getAttribute("data-bs-parent"))||a(t.getAttribute("data-bs-container"))}const J=`[${w}="collapse"]`,K=d("show.bs.collapse"),Q=d("shown.bs.collapse"),_=d("hide.bs.collapse"),tt=d("hidden.bs.collapse");function et(t){const{element:e,parent:n,triggers:o}=t;e.dispatchEvent(_),_.defaultPrevented||(t.isAnimating=!0,n&&(n.isAnimating=!0),e.style.height=e.scrollHeight+"px",r(e,"collapse"),r(e,"show"),y(e,"collapsing"),k(e),e.style.height="0px",i(e,()=>{t.isAnimating=!1,n&&(n.isAnimating=!1),o.forEach(t=>t.setAttribute("aria-expanded","false")),r(e,"collapsing"),y(e,"collapse"),e.style.height="",e.dispatchEvent(tt)}))}function nt(t,e){const n=e?c:"removeEventListener",{triggers:o}=t;o.length&&o.forEach(t=>t[n]("click",ot))}function ot(t){const{target:e}=t,n=e.closest(J),o=Z(n),s=o&&o.Collapse;s&&s.toggle(e),n&&"A"===n.tagName&&t.preventDefault()}class st extends u{constructor(t,e){super("Collapse",t,{parent:null},e);const{element:n}=this;this.triggers=Array.from(document.querySelectorAll(J)).filter(t=>Z(t)===n),this.parent=a(this.options.parent);const{parent:o}=this;this.isAnimating=!1,o&&(o.isAnimating=!1),nt(this,1)}toggle(t){l(this.element,"show")?this.hide(t):this.show(t)}hide(){const{triggers:t,isAnimating:e}=this;e||(et(this),t.length&&t.forEach(t=>y(t,"collapsed")))}show(){const t=this,{element:e,parent:n,triggers:o,isAnimating:s}=t;let a,l;n&&(a=Array.from(n.querySelectorAll(".collapse.show")).find(t=>t.Collapse),l=a&&a.Collapse),n&&(!n||n.isAnimating)||s||(l&&a!==e&&(et(l),l.triggers.forEach(t=>{y(t,"collapsed")})),function(t){const{element:e,parent:n,triggers:o}=t;e.dispatchEvent(K),K.defaultPrevented||(t.isAnimating=!0,n&&(n.isAnimating=!0),y(e,"collapsing"),r(e,"collapse"),e.style.height=e.scrollHeight+"px",i(e,()=>{t.isAnimating=!1,n&&(n.isAnimating=!1),o.forEach(t=>t.setAttribute("aria-expanded","true")),r(e,"collapsing"),y(e,"collapse"),y(e,"show"),e.style.height="",e.dispatchEvent(Q)}))}(t),o.length&&o.forEach(t=>r(t,"collapsed")))}dispose(){const{parent:t}=this;nt(this),t&&delete t.isAnimating,super.dispose("Collapse")}}const it={component:"Collapse",selector:".collapse",constructor:st},at=["dropdown","dropup","dropstart","dropend"];function lt(t){const e=t.closest("A");return t&&(t.href&&"#"===t.href.slice(-1)||e&&e.href&&"#"===e.href.slice(-1))}function rt(t){t.focus()}const[ct]=at,dt=`[${w}="${ct}"]`,ht=at[1],ut=at[2],pt=at[3],mt=["d-block","invisible"],ft=[ct,ht],gt=[ut,pt],vt={offset:5,display:"dynamic"},bt=d("show.bs."+ct),yt=d("shown.bs."+ct),wt=d("hide.bs."+ct),Et=d("hidden.bs."+ct);function At(t,e){const{element:n,menu:o,originalClass:s,menuEnd:i,options:a}=t,c=n.parentElement;if(o.style.margin="",!e){c.className=s.join(" ");return void(i&&!l(o,"dropdown-menu-end")?y:r)(o,"dropdown-menu-end")}const{offset:d}=a;let h=at.find(t=>s.includes(t)),u={dropdown:[d,0,0],dropup:[0,0,d],dropstart:[-1,d,0],dropend:[-1,0,0,d]};mt.forEach(t=>y(o,t));const p=new RegExp(`\\b(${ct}|${ht}|${ut}|${pt})+`),m=n.offsetWidth,f=n.offsetHeight,g=o.offsetWidth,v=o.offsetHeight,b=document.documentElement,w=document.body,E=b.clientWidth||w.clientWidth,A=b.clientHeight||w.clientHeight,T=n.getBoundingClientRect(),C=T.left+m-g<0,x=T.left-g<0,k=T.left+g>=E,N=T.left+g+m>=E,H=T.top+v>=A,L=T.top+v+f>=A,P=T.top-v<0,S=c.parentNode.closest(".btn-group,.btn-group-vertical");if(gt.includes(h)&&x&&N&&(h=ct),gt.includes(h)&&H&&(h=ht),h===ut&&x&&!H&&(h=pt),h===pt&&N&&!H&&(h=ut),h===ht&&P&&!L&&(h=ct),h===ct&&L&&!P&&(h=ht),u=u[h],o.style.margin=""+u.map(t=>t?t+"px":t).join(" "),l(c,h)||(c.className=c.className.replace(p,h)),ft.includes(h)){const t=k?y:r;S?C&&y(c,"position-static"):t(o,"dropdown-menu-end")}mt.forEach(t=>r(o,t))}function Tt(t){const e=t.open?c:"removeEventListener";document[e]("click",kt),document[e]("focus",kt),document[e]("keydown",Ht),document[e]("keyup",Lt),"dynamic"===t.options.display&&(window[e]("scroll",Pt,x),window[e]("resize",Pt,x))}function Ct(t,e){const n=e?c:"removeEventListener";t.element[n]("click",Nt)}function xt(){const t=at.map(t=>document.getElementsByClassName(t+" show")).find(t=>t.length);return t&&t.length?Array.from(t[0].children).find(t=>t.hasAttribute(w)):null}function kt(t){const{target:e,type:n}=t;if(!e.closest)return;const o=xt(),s=o&&o.parentNode,i=o&&o.Dropdown,a=i&&i.menu,l=null!==e.closest(dt),r=s&&s.contains(e)&&("form"===e.tagName||null!==e.closest("form"));"click"===n&<(e)&&t.preventDefault(),("focus"!==n||e!==o&&e!==a&&!a.contains(e))&&(r||l||i&&i.hide(o))}function Nt(t){this.Dropdown.toggle(this),lt(t.target)&&t.preventDefault()}function Ht(t){38!==t.which&&40!==t.which||t.preventDefault()}function Lt({which:t}){const e=xt(),n=e.Dropdown,{menu:o,menuItems:s,open:i}=n,a=document.activeElement,l=a===e,r=o.contains(a),c=a.parentNode===o||a.parentNode.parentNode===o;let d=s.indexOf(a);c&&(l?d=0:38===t?d=d>1?d-1:0:40===t&&(d=d<s.length-1?d+1:d),s[d]&&rt(s[d])),(s.length&&c||!s.length&&(r||l)||!r)&&i&&27===t&&n.toggle()}function Pt(){const t=xt(),e=t&&t.Dropdown;e&&e.open&&At(e,1)}class St extends u{constructor(t,e){super("Dropdown",t,vt,e);const n=this,{element:o}=n,s=o.parentElement;n.menu=a(".dropdown-menu",s);const{menu:i}=n;n.originalClass=Array.from(s.classList),n.menuEnd=l(i,"dropdown-menu-end"),n.menuItems=[],Array.from(i.children).forEach(t=>{t.children.length&&"A"===t.children[0].tagName&&n.menuItems.push(t.children[0]),"A"===t.tagName&&n.menuItems.push(t)}),n.open=!1,Ct(n,1)}toggle(t){const{open:e}=this;e?this.hide(t):this.show(t)}show(t){const e=this,n=a(at.map(t=>`.${t}.show`).join(",")),o=n&&a(dt,n);o&&o.Dropdown.hide();const{element:s,menu:i,open:l}=e,r=s.parentNode;bt.relatedTarget=t||null,r.dispatchEvent(bt),bt.defaultPrevented||(At(e,1),y(i,"show"),y(r,"show"),s.setAttribute("aria-expanded",!0),e.open=!l,setTimeout(()=>{rt(i.getElementsByTagName("INPUT")[0]||s),Tt(e),yt.relatedTarget=t||null,r.dispatchEvent(yt)},1))}hide(t){const e=this,{element:n,menu:o,open:s}=e,i=n.parentNode;wt.relatedTarget=t||null,i.dispatchEvent(wt),wt.defaultPrevented||(r(o,"show"),r(i,"show"),At(e),n.setAttribute("aria-expanded",!1),e.open=!s,rt(n),setTimeout(()=>Tt(e),1),Et.relatedTarget=t||null,i.dispatchEvent(Et))}dispose(){const{element:t}=this;l(t.parentNode,"show")&&this.open&&this.hide(),Ct(this),super.dispose("Dropdown")}}const Dt={component:"Dropdown",selector:dt,constructor:St},Ot=Array.from(document.getElementsByClassName("fixed-top")).concat(Array.from(document.getElementsByClassName("fixed-bottom"))).concat(Array.from(document.getElementsByClassName("sticky-top"))).concat(Array.from(document.getElementsByClassName("is-fixed")));function Bt(){const t=document.body;t.style.paddingRight="",t.style.overflow="",Ot.length&&Ot.forEach(t=>{t.style.paddingRight="",t.style.marginRight=""})}function Mt(){const t=document.createElement("div"),e=document.body;t.className="modal-scrollbar-measure",e.appendChild(t);const n=t.offsetWidth-t.clientWidth;return e.removeChild(t),n}function It(t,e,n){const o=document.body,s=parseInt(getComputedStyle(o).paddingRight,10),i=n&&s?0:t;e&&(o.style.paddingRight=s+i+"px",o.style.overflow="hidden",Ot.length&&Ot.forEach(t=>{const e=l(t,"sticky-top"),n=getComputedStyle(t).paddingRight;if(t.style.paddingRight=parseInt(n,10)+i+"px",e){const e=getComputedStyle(t).marginRight;t.style.marginRight=parseInt(e,10)-i+"px"}}))}const Rt=`[${w}="modal"]`,$t={backdrop:!0,keyboard:!0},jt=d("show.bs.modal"),Wt=d("shown.bs.modal"),Ft=d("hide.bs.modal"),zt=d("hidden.bs.modal");function Xt(t){const{element:e}=t,n=document.body,o=document.documentElement,s=l(n,"modal-open"),i=o.clientHeight!==o.scrollHeight||n.clientHeight!==n.scrollHeight,a=e.clientHeight!==e.scrollHeight,r=Mt();!a&&r&&(e.style.paddingRight=r+"px"),It(r,a||i,s)}function qt(t){let e=a(".modal-backdrop");const n=document.body,o=a(".modal.show");e&&!o&&(n.removeChild(e),e=null),t.isAnimating=!1,null===e&&(r(n,"modal-open"),t.element.style.paddingRight="",Bt())}function Yt(t,e){const n=e?c:"removeEventListener";window[n]("resize",t.update,x),t.element[n]("click",Qt),document[n]("keydown",Kt)}function Vt(t,e){const n=e?c:"removeEventListener";t.triggers&&t.triggers.length&&t.triggers.forEach(t=>t[n]("click",Jt))}function Gt(t){const{element:e,hasFade:n}=t;e.style.display="block",Xt(t),a(".modal.show")||y(document.body,"modal-open"),y(e,"show"),e.removeAttribute("aria-hidden"),e.setAttribute("aria-modal",!0),n?i(e,()=>Ut(t)):Ut(t)}function Ut(t){const{element:e,relatedTarget:n}=t;rt(e),t.isAnimating=!1,Yt(t,1),Wt.relatedTarget=n,e.dispatchEvent(Wt)}function Zt(t,e){const{relatedTarget:n,hasFade:o,element:s,triggers:c}=t,d=a(".modal-backdrop");s.style.display="",c.length&&rt(c[0]),!e&&d&&o&&l(d,"show")&&!a(".modal.show")?(r(d,"show"),i(d,()=>qt(t))):qt(t),Yt(t),zt.relatedTarget=n,s.dispatchEvent(zt)}function Jt(t){const{target:e}=t,n=e.closest(Rt),o=Z(n),s=o&&o.Modal;"A"===n.tagName&&t.preventDefault(),s.isAnimating||(s.relatedTarget=n,s.toggle(n))}function Kt({which:t}){const e=a(".modal.show"),n=e.Modal,{options:o,isAnimating:s}=n;!s&&o.keyboard&&27===t&&l(e,"show")&&(n.relatedTarget=null,n.hide())}function Qt(t){const e=this,n=e.Modal;if(n.isAnimating)return;const{isStatic:o,modalDialog:a}=n,{target:l}=t,c=document.getSelection().toString().length,d=a.contains(l),h=l.closest('[data-bs-dismiss="modal"]');o&&!d?(y(e,"modal-static"),n.isAnimating=!0,i(a,()=>function(t){const e=s(t.modalDialog)+17;r(t.element,"modal-static"),setTimeout(()=>{t.isAnimating=!1},e)}(n))):!h&&(c||o||d)||(n.relatedTarget=h||null,n.hide(),t.preventDefault())}class _t extends u{constructor(t,e){super("Modal",t,$t,e);const{element:n}=this;this.modalDialog=a(".modal-dialog",n),this.triggers=Array.from(document.querySelectorAll(Rt)).filter(t=>Z(t)===n),this.isStatic="static"===this.options.backdrop,this.hasFade=l(n,"fade"),this.isAnimating=!1,this.relatedTarget=null,Vt(this,1),this.update=this.update.bind(this)}toggle(t){l(this.element,"show")?this.hide():this.show(t)}show(t){const e=this,{element:n,isAnimating:o,options:i}=e;if(l(n,"show")&&!o)return;if(jt.relatedTarget=t,n.dispatchEvent(jt),jt.defaultPrevented)return;e.isAnimating=!0;const r=a(".modal.show"),c=i.backdrop?function(t){let e=a(".modal-backdrop");if(null===e){const n=document.createElement("div");n.setAttribute("class","modal-backdrop"+(t.hasFade?" fade":"")),e=n,document.body.appendChild(e)}return e}(e):null;let d=0;r&&r!==n&&r.Modal&&r.Modal.hide(),!c||r||l(c,"show")||(k(c),d=s(c),y(c,"show")),r?Gt(e):setTimeout(()=>Gt(e),c&&d?d:0)}hide(t){const e=this,{element:n,isAnimating:o,hasFade:s,relatedTarget:a}=e;(l(n,"show")||o)&&(Ft.relatedTarget=a,n.dispatchEvent(Ft),Ft.defaultPrevented||(e.isAnimating=!0,r(n,"show"),n.setAttribute("aria-hidden",!0),n.removeAttribute("aria-modal"),s&&1!==t?i(n,()=>{Zt(e)}):Zt(e,t)))}update(){l(this.element,"show")&&Xt(this)}dispose(){this.hide(1),Vt(this),super.dispose("Modal")}}const te={component:"Modal",selector:".modal",constructor:_t},ee=`[${w}="offcanvas"]`,ne={backdrop:!0,keyboard:!0,scroll:!1},oe=d("show.bs.offcanvas"),se=d("shown.bs.offcanvas"),ie=d("hide.bs.offcanvas"),ae=d("hidden.bs.offcanvas");function le(t){const e=this,n=Z(e),o=n&&n.Offcanvas;"A"===e.tagName&&t.preventDefault(),setTimeout(()=>{o&&o.toggle(e)},17)}function re(t){const e=a(".offcanvas.show"),n=e&&a('[data-bs-dismiss="offcanvas"]',e),o=e&&e.Offcanvas,{open:s,triggers:i}=o,{target:l}=t,r=l.closest(ee);r&&"A"===r.tagName&&t.preventDefault(),o&&s&&(!e.contains(l)&&e!==l&&(!r||r&&!i.includes(r))||l===n)&&o.hide(l===n?n:null)}function ce({which:t}){const e=a(".offcanvas.show"),n=e&&e.Offcanvas;n&&n.options.keyboard&&27===t&&n.hide()}function de(t,e){const{triggers:n}=t,o=e?c:"removeEventListener";n.forEach(t=>t[o]("click",le))}function he(t){const e=t?c:"removeEventListener";document[e]("keydown",ce),document[e]("click",re)}class ue extends u{constructor(t,e){super("Offcanvas",t,ne,e);const{element:n}=this;this.triggers=Array.from(document.querySelectorAll(ee)).filter(t=>Z(t)===n),this.open=!1,de(this,1)}toggle(t){return this.open?this.hide(t):this.show(t)}show(t){const e=a(".offcanvas.show");e&&e.Offcanvas.hide();const n=this.Offcanvas?this.Offcanvas:this,{element:o,options:s}=n;n.open||(oe.relatedTarget=t||null,o.dispatchEvent(oe),oe.defaultPrevented||(n.open=!0,o.style.visibility="visible",s.backdrop&&y(document.body,"offcanvas-backdrop"),s.scroll||function(){const t=document.body,e=document.documentElement,n=l(t,"offcanvas-backdrop"),o=e.clientHeight!==e.scrollHeight||t.clientHeight!==t.scrollHeight;It(Mt(),o,n)}(),y(o,"offcanvas-toggling"),y(o,"show"),he(1),i(o,()=>function(t,e){const{element:n,triggers:o}=t;r(n,"offcanvas-toggling"),n.removeAttribute("aria-hidden"),n.setAttribute("aria-modal",!0),n.setAttribute("role","dialog"),o.length&&o.forEach(t=>t.setAttribute("aria-expanded",!0)),se.relatedTarget=e||null,n.dispatchEvent(se),rt(n)}(n,t))))}hide(t){const e=this,{element:n}=e;e.open&&(ie.relatedTarget=t||null,n.dispatchEvent(ie),ie.defaultPrevented||(y(n,"offcanvas-toggling"),n.blur(),e.open=!1,r(n,"show"),he(),i(n,()=>function(t,e){const{element:n,options:o,triggers:s}=t;n.setAttribute("aria-hidden",!0),n.removeAttribute("aria-modal"),n.removeAttribute("role"),n.style.visibility="hidden",s.length&&(rt(s[0]),s.forEach(t=>t.setAttribute("aria-expanded",!1))),ae.relatedTarget=e||null,n.dispatchEvent(ae),r(n,"offcanvas-toggling"),a(".offcanvas.show")||(o.backdrop&&r(document.body,"offcanvas-backdrop"),o.scroll||Bt())}(e,t))))}dispose(){de(this),super.dispose("Offcanvas")}}const pe={component:"Offcanvas",selector:".offcanvas",constructor:ue};var me={top:"top",bottom:"bottom",left:"start",right:"end"};function fe(t,e){return e.contains(t)}function ge(t){return[SVGElement,HTMLImageElement,HTMLVideoElement].some(e=>t instanceof e)}function ve(t,e){const n=/\b(top|bottom|start|end)+/,o=t.tooltip||t.popover;o.style.top="",o.style.left="",o.style.right="";const s=!!t.popover;let i={w:o.offsetWidth,h:o.offsetHeight};const a=document.documentElement.clientWidth||document.body.clientWidth,l=document.documentElement.clientHeight||document.body.clientHeight,{element:r,options:c,arrow:d}=t;let{container:h,placement:u}=c,p=h===document.body;const m=getComputedStyle(r).position,f=getComputedStyle(h).position,g=!p&&"static"===f;let v=!p&&"relative"===f;const b=g&&function(t){let e=null,n=t;for(;n!==document.body;)if(n=n.parentElement,"relative"===getComputedStyle(n).position){e=n;break}return e}(h);h=b||h,v=g&&b?1:v,p=h===document.body;const y=h.getBoundingClientRect(),w=v?y.left:0,E=v?y.right:a,A="absolute"===m,T=r.getBoundingClientRect(),C=p?{x:window.pageXOffset,y:window.pageYOffset}:{x:h.scrollLeft,y:h.scrollTop},x=r.offsetWidth,k=r.offsetHeight,N=v?r.offsetTop:T.top,H=v?r.offsetLeft:T.left;let L,P,S,D,O,B;d.style.top="",d.style.left="",d.style.right="";let M=T.top-i.h<0,I=T.top+i.h+k>=l,R=T.left-i.w<w,$=T.left+i.w+x>=E;M=["left","right"].includes(u)?T.top+k/2-i.h/2<0:M,I=["left","right"].includes(u)?T.top+i.h/2+k/2>=l:I,R=["top","bottom"].includes(u)?T.left+x/2-i.w/2<w:R,$=["top","bottom"].includes(u)?T.left+i.w/2+x/2>=E:$,u=["left","right"].includes(u)&&R&&$?"top":u,u="top"===u&&M?"bottom":u,u="bottom"===u&&I?"top":u,u="left"===u&&R?"right":u,u="right"===u&&$?"left":u,o.className.includes(u)||(o.className=o.className.replace(n,me[u])),i={w:o.offsetWidth,h:o.offsetHeight};const j=d.offsetWidth||0,W=d.offsetHeight||0,F=j/2;if(["left","right"].includes(u))P="left"===u?H+C.x-i.w-(s?j:0):H+C.x+x+(s?j:0),M?(L=N+C.y,D=k/2-j):I?(L=N+C.y-i.h+k,D=i.h-k/2-j):(L=N+C.y-i.h/2+k/2,D=i.h/2-W/2);else if(["top","bottom"].includes(u))if(e&&ge(r)){const t=v?e.layerX+(A?r.offsetLeft:0):e.pageX,n=v?e.layerY+(A?r.offsetTop:0):e.pageY;L="top"===u?n-i.h-(s?j:W):n+W,e.clientX-i.w/2<w?(P=0,O=t-F):e.clientX+.51*i.w>=E?(P="auto",S=0,O=i.w-(E-t)-F):(P=t-i.w/2,O=i.w/2-F)}else L="top"===u?N+C.y-i.h-(s?W:0):N+C.y+k+(s?W:0),R?(P=0,O=H+x/2-F):$?(P="auto",S=0,B=x/2+(y.right-T.right)-F):(P=H+C.x-i.w/2+x/2,O=i.w/2-F);o.style.top=L+"px",o.style.left="auto"===P?P:P+"px",o.style.right=void 0!==S?S+"px":"",void 0!==D&&(d.style.top=D+"px"),void 0!==O?d.style.left=O+"px":void 0!==B&&(d.style.right=B+"px")}let be=1;function ye(t,e){return be+=1,t[e]||be}function we(t){const e=t.closest(".modal"),n=t.closest(".fixed-top,.fixed-bottom");return e||n||document.body}const Ee=`[${w}="popover"],[data-tip="popover"]`,Ae={template:'<div class="popover" role="tooltip"><div class="popover-arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>',title:null,content:null,sanitizeFn:null,customClass:null,dismissible:!1,animation:!0,trigger:"hover",placement:"top",delay:200},Te=/(iPhone|iPod|iPad)/.test(navigator.userAgent);let Ce='<button type="button" class="btn-close"></button>';const xe=d("show.bs.popover"),ke=d("shown.bs.popover"),Ne=d("hide.bs.popover"),He=d("hidden.bs.popover");function Le(){rt(this)}function Pe({target:t}){const e=this,{popover:n,element:o}=e;n&&n.contains(t)||t===o||o.contains(t)||e.hide()}function Se(t,e){const n=e?c:"removeEventListener",{element:o,options:s}=t,{trigger:i,dismissible:a}=s;t.enabled=!!e,"hover"===i?(o[n]("mousedown",t.show),o[n]("mouseenter",t.show),ge(o)&&o[n]("mousemove",t.update,x),a||o[n]("mouseleave",t.hide)):"click"===i?o[n](i,t.toggle):"focus"===i&&(Te&&o[n]("click",Le),o[n]("focusin",t.show))}function De(t,e){const n=e?c:"removeEventListener",{options:o,element:s,popover:i}=t,{trigger:a,dismissible:l}=o;if(l){const[e]=i.getElementsByClassName("btn-close");e&&e[n]("click",t.hide)}else"focus"===a&&s[n]("focusout",t.hide),"hover"===a&&document[n]("touchstart",Pe,x);ge(s)||(window[n]("scroll",t.update,x),window[n]("resize",t.update,x))}function Oe(t){De(t,1),t.element.dispatchEvent(ke)}function Be(t){De(t),function(t){const{element:e,popover:n,options:o}=t;e.removeAttribute("aria-describedby"),o.container.removeChild(n),t.timer=null}(t),t.element.dispatchEvent(He)}class Me extends u{constructor(t,e){Ae.container=we(a(t)),super("Popover",t,Ae,e);const{element:n}=this;this.timer=null,this.popover=null,this.arrow=null,this.enabled=!1,this.id="popover-"+ye(n);const{options:o}=this;this.options.container=ge(n)?Ae.container:a(o.container),Ae.container=null,o.content&&(!function(t){const{id:e,options:n}=t,{animation:o,customClass:s,sanitizeFn:i,placement:r,dismissible:c}=n;let{title:d,content:h,template:u}=n;const p="bs-popover-"+me[r];d=d?d.trim():null,h=h?h.trim():null,i&&(d=d?i(d):null,h=h?i(h):null,u=u?i(u):null,Ce=i(Ce)),t.popover=document.createElement("div");const{popover:m}=t;m.setAttribute("id",e),m.setAttribute("role","tooltip");const f=document.createElement("div");f.innerHTML=u.trim(),m.className=f.firstChild.className,m.innerHTML=f.firstChild.innerHTML;const g=a(".popover-header",m),v=a(".popover-body",m);t.arrow=a(".popover-arrow",m),c&&(d=d?d+Ce:d,h=null===d?+Ce:h),d&&g&&(g.innerHTML=d.trim()),h&&v&&(v.innerHTML=h.trim()),l(m,"popover")||y(m,"popover"),o&&!l(m,"fade")&&y(m,"fade"),s&&!l(m,s)&&y(m,s),l(m,p)||y(m,p)}(this),this.update=this.update.bind(this),Se(this,1))}update(t){ve(this,t)}toggle(t){const e=t?this.Popover:this,{popover:n,options:o}=e;fe(n,o.container)?e.hide():e.show()}show(t){const e=t?this.Popover:this,{element:n,popover:o,options:s,id:a}=e,{container:r}=s;clearTimeout(e.timer),e.timer=setTimeout(()=>{if(!fe(o,r)){if(n.dispatchEvent(xe),xe.defaultPrevented)return;r.appendChild(o),n.setAttribute("aria-describedby",a),e.update(t),l(o,"show")||y(o,"show"),s.animation?i(o,()=>Oe(e)):Oe(e)}},17)}hide(t){let e;if(t&&this.Popover)e=this.Popover;else if(t){const t=this.closest(".popover"),n=t&&a(`[aria-describedby="${t.id}"]`);e=n.Popover}else e=this;const{element:n,popover:o,options:s}=e;clearTimeout(e.timer),e.timer=setTimeout(()=>{if(fe(o,s.container)){if(n.dispatchEvent(Ne),Ne.defaultPrevented)return;r(o,"show"),s.animation?i(o,()=>Be(e)):Be(e)}},s.delay+17)}enable(){const t=this,{enabled:e}=t;e||(Se(t,1),t.enabled=!e)}disable(){const t=this,{enabled:e,popover:n,options:o}=t;e&&(fe(n,o.container)&&o.animation?(t.hide(),setTimeout(()=>Se(t),s(n)+o.delay+17)):Se(t),t.enabled=!e)}toggleEnabled(){this.enabled?this.disable():this.enable()}dispose(){const t=this,{popover:e,options:n}=t,{container:o,animation:s}=n;s&&fe(e,o)?(n.delay=0,t.hide(),i(e,()=>Se(t))):Se(t),super.dispose("Popover")}}const Ie={component:"Popover",selector:Ee,constructor:Me},Re={offset:10,target:null},$e=d("activate.bs.scrollspy");function je(t){const{target:e,scrollTarget:n,isWindow:o,options:s,itemsLength:i,scrollHeight:l}=t,{offset:r}=s,c=e.getElementsByTagName("A");if(t.scrollTop=o?n.pageYOffset:n.scrollTop,i!==c.length||We(n)!==l){let e,s,i;t.items=[],t.offsets=[],t.scrollHeight=We(n),t.maxScroll=t.scrollHeight-function({element:t,isWindow:e}){return e?window.innerHeight:t.getBoundingClientRect().height}(t),Array.from(c).forEach(n=>{e=n.getAttribute("href"),s=e&&"#"===e.charAt(0)&&"#"!==e.slice(-1)&&a(e),s&&(t.items.push(n),i=s.getBoundingClientRect(),t.offsets.push((o?i.top+t.scrollTop:s.offsetTop)-r))}),t.itemsLength=t.items.length}}function We(t){return t.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)}function Fe(t){Array.from(t.getElementsByTagName("A")).forEach(t=>{l(t,"active")&&r(t,"active")})}function ze(t,e){const{target:n,element:o}=t;Fe(n),t.activeItem=e,y(e,"active");const s=[];let i=e;for(;i!==document.body;)i=i.parentNode,(l(i,"nav")||l(i,"dropdown-menu"))&&s.push(i);s.forEach(t=>{const e=t.previousElementSibling;e&&!l(e,"active")&&y(e,"active")}),$e.relatedTarget=e,o.dispatchEvent($e)}function Xe(t,e){const n=e?c:"removeEventListener";t.scrollTarget[n]("scroll",t.refresh,x)}class qe extends u{constructor(t,e){super("ScrollSpy",t,Re,e);const{element:n,options:o}=this;this.target=a(o.target),this.target&&(this.scrollTarget=n.clientHeight<n.scrollHeight?n:window,this.isWindow=this.scrollTarget===window,this.scrollTop=0,this.maxScroll=0,this.scrollHeight=0,this.activeItem=null,this.items=[],this.offsets=[],this.refresh=this.refresh.bind(this),Xe(this,1),this.refresh())}refresh(){const t=this,{target:e}=t;if(0===e.offsetHeight)return;je(t);const{scrollTop:n,maxScroll:o,itemsLength:s,items:i,activeItem:a}=t;if(n>=o){const e=i[s-1];return void(a!==e&&ze(t,e))}const{offsets:l}=t;if(a&&n<l[0]&&l[0]>0)return t.activeItem=null,void Fe(e);i.forEach((e,o)=>{a!==e&&n>=l[o]&&(void 0===l[o+1]||n<l[o+1])&&ze(t,e)})}dispose(){Xe(this),super.dispose("ScrollSpy")}}const Ye={component:"ScrollSpy",selector:'[data-bs-spy="scroll"]',constructor:qe},Ve=`[${w}="tab"]`,Ge=d("show.bs.tab"),Ue=d("shown.bs.tab"),Ze=d("hide.bs.tab"),Je=d("hidden.bs.tab");let Ke,Qe,_e,tn,en,nn,on;function sn(t){const{tabContent:e,nav:n}=t;e.style.height="",r(e,"collapsing"),n.isAnimating=!1}function an(t){const{tabContent:e,nav:n}=t;e?on?sn(t):setTimeout(()=>{e.style.height=_e+"px",k(e),i(e,()=>sn(t))},50):n.isAnimating=!1,Ue.relatedTarget=tn,Ke.dispatchEvent(Ue)}function ln(t){const{tabContent:e}=t;e&&(en.style.float="left",Qe.style.float="left",nn=en.scrollHeight),Ge.relatedTarget=tn,Je.relatedTarget=Ke,Ke.dispatchEvent(Ge),Ge.defaultPrevented||(y(Qe,"active"),r(en,"active"),e&&(_e=Qe.scrollHeight,on=_e===nn,y(e,"collapsing"),e.style.height=nn+"px",k(e),en.style.float="",Qe.style.float=""),l(Qe,"fade")?setTimeout(()=>{y(Qe,"show"),i(Qe,()=>{an(t)})},20):an(t),tn.dispatchEvent(Je))}function rn({nav:t}){const e=t.getElementsByClassName("active");return 1!==e.length||at.some(t=>l(e[0].parentNode,t))?e.length>1&&(tn=e[e.length-1]):[tn]=e,tn}function cn(t){return a(rn(t).getAttribute("href"))}function dn(t,e){const n=e?c:"removeEventListener";t.element[n]("click",hn)}function hn(t){const e=this.Tab;t.preventDefault(),e.nav.isAnimating||e.show()}class un extends u{constructor(t){super("Tab",t);const{element:n}=this;this.nav=n.closest(".nav");const{nav:o}=this;this.dropdown=o&&a(`.${at[0]}-toggle`,o),en=cn(this),this.tabContent=e&&en.closest(".tab-content"),nn=en.scrollHeight,o.isAnimating=!1,dn(this,1)}show(){const t=this,{element:e,nav:n,dropdown:o}=t;if(Ke=e,!l(Ke,"active")){if(Qe=a(Ke.getAttribute("href")),tn=rn({nav:n}),en=cn({nav:n}),Ze.relatedTarget=Ke,tn.dispatchEvent(Ze),Ze.defaultPrevented)return;n.isAnimating=!0,r(tn,"active"),tn.setAttribute("aria-selected","false"),y(Ke,"active"),Ke.setAttribute("aria-selected","true"),o&&(l(e.parentNode,"dropdown-menu")?l(o,"active")||y(o,"active"):l(o,"active")&&r(o,"active")),l(en,"fade")?(r(en,"show"),i(en,()=>ln(t))):ln(t)}}dispose(){dn(this),super.dispose("Tab")}}const pn={component:"Tab",selector:Ve,constructor:un},mn={animation:!0,autohide:!0,delay:500},fn=d("show.bs.toast"),gn=d("hide.bs.toast"),vn=d("shown.bs.toast"),bn=d("hidden.bs.toast");function yn(t){const{element:e,options:n}=t;n.animation||(r(e,"showing"),y(e,"show")),e.dispatchEvent(vn),n.autohide&&t.hide()}function wn(t){const{element:e}=t;y(e,"hide"),e.dispatchEvent(bn)}function En(t,e){const n=e?c:"removeEventListener";t.dismiss&&t.dismiss[n]("click",t.hide)}function An(t){clearTimeout(t.timer),En(t)}class Tn extends u{constructor(t,e){super("Toast",t,mn,e);this.dismiss=a('[data-bs-dismiss="toast"]',this.element),this.show=this.show.bind(this),this.hide=this.hide.bind(this),En(this,1)}show(){const t=this,{element:e}=t;if(e&&l(e,"hide")){if(e.dispatchEvent(fn),fn.defaultPrevented)return;y(e,"fade"),clearTimeout(t.timer),t.timer=setTimeout(()=>function(t){const{element:e,options:n}=t;r(e,"hide"),n.animation?(k(e),y(e,"showing"),y(e,"show"),i(e,()=>yn(t))):yn(t)}(t),10)}}hide(t){const e=this,{element:n,options:o}=e;if(n&&l(n,"show")){if(n.dispatchEvent(gn),gn.defaultPrevented)return;clearTimeout(e.timer),e.timer=setTimeout(function(t){const{element:e,options:n}=t;r(e,"show"),n.animation?(k(e),i(e,()=>wn(t))):wn(t)}(e),t?10:o.delay)}}dispose(){const t=this,{element:e,options:n}=t;t.hide(),n.animation?i(e,()=>An(t)):An(t),super.dispose("Toast")}}const Cn={component:"Toast",selector:".toast",constructor:Tn},xn=`[${w}="tooltip"],[data-tip="tooltip"]`,kn={title:null,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',placement:"top",animation:!0,customClass:null,delay:200,sanitizeFn:null},Nn=d("show.bs.tooltip"),Hn=d("shown.bs.tooltip"),Ln=d("hide.bs.tooltip"),Pn=d("hidden.bs.tooltip");function Sn(t){const{element:e}=t;Mn(t),e.hasAttribute("data-original-title")&&In(t)}function Dn(t,e){const n=e?c:"removeEventListener";document[n]("touchstart",Rn,x),ge(t.element)||(window[n]("scroll",t.update,x),window[n]("resize",t.update,x))}function On(t){Dn(t,1),t.element.dispatchEvent(Hn)}function Bn(t){Dn(t),function(t){const{element:e,options:n,tooltip:o}=t;e.removeAttribute("aria-describedby"),n.container.removeChild(o),t.timer=null}(t),t.element.dispatchEvent(Pn)}function Mn(t,e){const n=e?c:"removeEventListener",{element:o}=t;ge(o)&&o[n]("mousemove",t.update,x),o[n]("mousedown",t.show),o[n]("mouseenter",t.show),o[n]("mouseleave",t.hide)}function In(t,e){const n=["data-original-title","title"],{element:o}=t;o.setAttribute(n[e?0:1],e||o.getAttribute(n[0])),o.removeAttribute(n[e?1:0])}function Rn({target:t}){const{tooltip:e,element:n}=this;e.contains(t)||t===n||n.contains(t)||this.hide()}class $n extends u{constructor(t,e){const n=a(t);kn.title=n.getAttribute("title"),kn.container=we(n),super("Tooltip",n,kn,e);this.tooltip=null,this.arrow=null,this.timer=null,this.enabled=!1;const{options:o}=this;this.options.container=ge(n)?kn.container:a(o.container),kn.container=null,kn.title=null,o.title&&(Rn.bind(this),this.update=this.update.bind(this),n.hasAttribute("title")&&In(this,o.title),this.id="tooltip-"+ye(n),function(t){const{options:e,id:n}=t,o="bs-tooltip-"+me[e.placement];let s=e.title.trim();if(e.sanitizeFn&&(s=e.sanitizeFn(s),e.template=e.sanitizeFn(e.template)),!s)return;t.tooltip=document.createElement("div");const{tooltip:i}=t;i.setAttribute("id",n);const r=document.createElement("div");r.innerHTML=e.template.trim(),i.className=r.firstChild.className,i.innerHTML=r.firstChild.innerHTML,a(".tooltip-inner",i).innerHTML=s,t.arrow=a(".tooltip-arrow",i),i.setAttribute("role","tooltip"),l(i,"tooltip")||y(i,"tooltip"),e.animation&&!l(i,"fade")&&y(i,"fade"),e.customClass&&!l(i,e.customClass)&&y(i,e.customClass),l(i,o)||y(i,o)}(this),Mn(this,1))}show(t){const e=t?this.Tooltip:this,{options:n,tooltip:o,element:s,id:a}=e;clearTimeout(e.timer),e.timer=setTimeout(()=>{if(!fe(o,n.container)){if(s.dispatchEvent(Nn),Nn.defaultPrevented)return;n.container.appendChild(o),s.setAttribute("aria-describedby",a),e.update(t),l(o,"show")||y(o,"show"),n.animation?i(o,()=>On(e)):On(e)}},20)}hide(t){const e=t?this.Tooltip:this,{options:n,tooltip:o,element:s}=e;clearTimeout(e.timer),e.timer=setTimeout(()=>{if(fe(o,n.container)){if(s.dispatchEvent(Ln),Ln.defaultPrevented)return;r(o,"show"),n.animation?i(o,()=>Bn(e)):Bn(e)}},n.delay)}update(t){ve(this,t)}toggle(){const{tooltip:t,options:e}=this;fe(t,e.container)?this.hide():this.show()}enable(){const t=this,{enabled:e}=t;e||(Mn(t,1),t.enabled=!e)}disable(){const t=this,{tooltip:e,options:n,enabled:o}=t;o&&(!fe(e,n.container)&&n.animation?(t.hide(),setTimeout(()=>Mn(t),s(e)+n.delay+17)):Mn(t),t.enabled=!o)}toggleEnabled(){this.enabled?this.disable():this.enable()}dispose(){const t=this,{tooltip:e,options:n}=t;n.animation&&fe(e,n.container)?(n.delay=0,t.hide(),i(e,()=>Sn(t))):Sn(t),super.dispose("Tooltip")}}const jn={Alert:b,Button:C,Carousel:U,Collapse:it,Dropdown:Dt,Modal:te,Offcanvas:pe,Popover:Ie,ScrollSpy:Ye,Tab:pn,Toast:Cn,Tooltip:{component:"Tooltip",selector:xn,constructor:$n}};function Wn(t){const e=t instanceof Element?t:document;Object.keys(jn).forEach(t=>{const{constructor:n,selector:o}=jn[t];var s,i;s=n,i=e.querySelectorAll(o),Array.from(i).forEach(t=>new s(t))})}return document.body?Wn():document.addEventListener("DOMContentLoaded",()=>Wn(),{once:!0}),{Alert:v,Button:T,Carousel:G,Collapse:st,Dropdown:St,Modal:_t,Offcanvas:ue,Popover:Me,ScrollSpy:qe,Tab:un,Toast:Tn,Tooltip:$n,initCallback:Wn,Version:"3.0.15-alpha1"}})); | ||
// Native JavaScript for Bootstrap v3.0.15-alpha2 | 2021 © dnp_theme | MIT-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).BSN=e()}(this,(function(){"use strict";const t="webkitTransition"in document.head.style?"webkitTransitionEnd":"transitionend",e="webkitTransition"in document.head.style||"transition"in document.head.style,n="webkitTransition"in document.head.style?"webkitTransitionDuration":"transitionDuration",o="webkitTransition"in document.head.style?"webkitTransitionProperty":"transitionProperty";function s(t){const s=getComputedStyle(t),i=s[o],a=s[n],l=a.includes("ms")?1:1e3,r=e&&i&&"none"!==i?parseFloat(a)*l:0;return Number.isNaN(r)?0:r}function i(e,n){let o=0;const i=new Event(t),a=s(e);a?(e.addEventListener(t,(function s(i){i.target===e&&(n.apply(e,[i]),e.removeEventListener(t,s),o=1)})),setTimeout(()=>{o||e.dispatchEvent(i)},a+17)):n.apply(e,[i])}function a(t,e){const n=e&&e instanceof Element?e:document;return t instanceof Element?t:n.querySelector(t)}function l(t,e){return t.classList.contains(e)}function r(t,e){t.classList.remove(e)}const c="addEventListener";function d(t,e){const n=new CustomEvent(t,{cancelable:!0});return e instanceof Object&&Object.keys(e).forEach(t=>{Object.defineProperty(n,t,{value:e[t]})}),n}function h(t){return"true"===t||"false"!==t&&(Number.isNaN(+t)?""===t||"null"===t?null:t:+t)}class u{constructor(t,e,n,o){const s=this,i=a(e);i[t]&&i[t].dispose(),s.element=i,n&&Object.keys(n).length&&(s.options=function(t,e,n,o){const s={},i={},a={...t.dataset};return Object.keys(a).forEach(t=>{const e=t.includes(o)?t.replace(o,"").replace(/[A-Z]/,t=>t.toLowerCase()):t;i[e]=h(a[t])}),Object.keys(n).forEach(t=>{n[t]=h(n[t])}),Object.keys(e).forEach(t=>{s[t]=t in n?n[t]:t in i?i[t]:e[t]}),s}(i,n,o||{},"bs")),i[t]=s}dispose(t){const e=this;e.element[t]=null,Object.keys(e).forEach(t=>{e[t]=null})}}const p=d("close.bs.alert"),m=d("closed.bs.alert");function f(t){const{element:e,relatedTarget:n}=t;g(t),n&&(m.relatedTarget=n),e.dispatchEvent(m),t.dispose(),e.parentNode.removeChild(e)}function g(t,e){const n=e?c:"removeEventListener";t.dismiss&&t.dismiss[n]("click",t.close)}class v extends u{constructor(t){super("Alert",t);const{element:e}=this;this.dismiss=a('[data-bs-dismiss="alert"]',e),this.relatedTarget=null,g(this,1)}close(t){const e=t?t.target:null,n=t?t.target.closest(".alert").Alert:this,{element:o}=n;if(n&&o&&l(o,"show")){if(e&&(p.relatedTarget=e,n.relatedTarget=e),o.dispatchEvent(p),p.defaultPrevented)return;r(o,"show"),l(o,"fade")?i(o,()=>f(n)):f(n)}}dispose(){g(this),super.dispose("Alert")}}const b={component:"Alert",selector:".alert",constructor:v};function y(t,e){t.classList.add(e)}const w="data-bs-toggle",E=`[${w}="button"]`;function A(t,e){const n=e?c:"removeEventListener";t.element[n]("click",t.toggle)}class T extends u{constructor(t){super("Button",t);const{element:e}=this;this.isActive=l(e,"active"),e.setAttribute("aria-pressed",!!this.isActive),A(this,1)}toggle(t){t&&t.preventDefault();const e=t?this.Button:this,{element:n}=e;if(l(n,"disabled"))return;e.isActive=l(n,"active");const{isActive:o}=e,s=o?"false":"true";(o?r:y)(n,"active"),n.setAttribute("aria-pressed",s)}dispose(){A(this),super.dispose("Button")}}const C={component:"Button",selector:E,constructor:T};var x=!!(()=>{let t=!1;try{const e=Object.defineProperty({},"passive",{get:()=>(t=!0,t)});document[c]("DOMContentLoaded",(function t(){document.removeEventListener("DOMContentLoaded",t,e)}),e)}catch(t){throw Error("Passive events are not supported")}return t})()&&{passive:!0};function k(t){return t.offsetHeight}function H(t){const e=t.getBoundingClientRect(),n=window.innerHeight||document.documentElement.clientHeight;return e.top<=n&&e.bottom>=0}const N='[data-bs-ride="carousel"]',L={pause:"hover",keyboard:!1,touch:!0,interval:5e3};let P=0,S=0,D=0;const O=d("slide.bs.carousel"),M=d("slid.bs.carousel");function B(t){const e=t.target.closest(N).Carousel,{element:n,isAnimating:o}=e;l(n,"paused")||(y(n,"paused"),o||(clearInterval(e.timer),e.timer=null))}function I(t){const e=t.target.closest(N).Carousel,{isPaused:n,isAnimating:o,element:s}=e;!n&&l(s,"paused")&&(r(s,"paused"),o||(clearInterval(e.timer),e.timer=null,e.cycle()))}function R(t){t.preventDefault();const{target:e}=t,n=e.closest(N).Carousel;if(n.isAnimating)return;const o=e.getAttribute("data-bs-slide-to");e&&!l(e,"active")&&o&&n.to(+o)}function $(t){t.preventDefault();const e=this.closest(N).Carousel,{controls:n}=e;n[1]&&this===n[1]?e.next():n[1]&&this===n[0]&&e.prev()}function j({which:t}){const[e]=Array.from(document.querySelectorAll(N)).filter(t=>H(t));if(!e)return;const n=e.Carousel;switch(t){case 39:n.next();break;case 37:n.prev()}}function W(t){const e=this.Carousel;e&&!e.isTouch&&(P=t.changedTouches[0].pageX,this.contains(t.target)&&(e.isTouch=!0,X(e,1)))}function F(t){const{changedTouches:e,type:n}=t,o=this.Carousel;o&&o.isTouch&&(S=e[0].pageX,"touchmove"===n&&e.length>1&&t.preventDefault())}function z(t){const e=this,n=e.Carousel;if(n&&n.isTouch&&(D=S||t.changedTouches[0].pageX,n.isTouch)){if((!e.contains(t.target)||!e.contains(t.relatedTarget))&&Math.abs(P-D)<75)return;S<P?n.index+=1:S>P&&(n.index-=1),n.isTouch=!1,n.to(n.index),X(n)}}function q(t,e){const{indicators:n}=t;Array.from(n).forEach(t=>r(t,"active")),t.indicators[e]&&y(n[e],"active")}function X(t,e){const{element:n}=t,o=e?c:"removeEventListener";n[o]("touchmove",F,x),n[o]("touchend",z,x)}function Y(t,e){const{element:n,options:o,slides:s,controls:i,indicator:a}=t,{touch:l,pause:r,interval:d,keyboard:h}=o,u=e?c:"removeEventListener";r&&d&&(n[u]("mouseenter",B),n[u]("mouseleave",I),n[u]("touchstart",B,x),n[u]("touchend",I,x)),l&&s.length>1&&n[u]("touchstart",W,x),i.forEach(t=>{t&&t[u]("click",$)}),a&&a[u]("click",R),h&&window[u]("keydown",j)}function V(t){const{slides:e,element:n}=t;return Array.from(e).indexOf(n.getElementsByClassName("carousel-item active")[0])||0}class G extends u{constructor(t,e){super("Carousel",t,L,e);const n=this;n.timer=null,n.direction="left",n.isPaused=!1,n.isAnimating=!1,n.index=0,n.timer=null,n.isTouch=!1;const{element:o}=n;n.slides=o.getElementsByClassName("carousel-item");const{slides:s}=n;if(s.length<2)return;n.controls=[a(".carousel-control-prev",o),a(".carousel-control-next",o)],n.indicator=a(".carousel-indicators",o),n.indicators=n.indicator&&n.indicator.querySelectorAll("[data-bs-slide-to]")||[];const{options:i}=n;n.options.interval=!0===i.interval?L.interval:i.interval,V(n)<0&&(s.length&&y(s[0],"active"),n.indicators.length&&q(n,0)),Y(n,1),i.interval&&n.cycle()}cycle(){const t=this,{isPaused:e,element:n,options:o}=t;t.timer&&(clearInterval(t.timer),t.timer=null),e&&(r(n,"paused"),t.isPaused=!e),t.timer=setInterval(()=>{H(n)&&(t.index+=1,t.to(t.index))},o.interval)}pause(){const t=this,{element:e,options:n,isPaused:o}=t;n.interval&&!o&&(clearInterval(t.timer),t.timer=null,y(e,"paused"),t.isPaused=!o)}next(){const t=this;t.isAnimating||(t.index+=1,t.to(t.index))}prev(){const t=this;t.isAnimating||(t.index-=1,t.to(t.index))}to(t){const e=this,{element:n,isAnimating:o,slides:a,options:c}=e,d=V(e);let h=t;if(o||d===h)return;d<h||0===d&&h===a.length-1?e.direction="left":(d>h||d===a.length-1&&0===h)&&(e.direction="right");const{direction:u}=e;h<0?h=a.length-1:h>=a.length&&(h=0);const p="left"===u?"next":"prev",m="left"===u?"start":"end",f={relatedTarget:a[h],direction:u,from:d,to:h};Object.keys(f).forEach(t=>{O[t]=f[t],M[t]=f[t]}),n.dispatchEvent(O),O.defaultPrevented||(e.index=h,clearInterval(e.timer),e.timer=null,e.isAnimating=!0,q(e,h),s(a[h])&&l(n,"slide")?(y(a[h],"carousel-item-"+p),k(a[h]),y(a[h],"carousel-item-"+m),y(a[d],"carousel-item-"+m),i(a[h],()=>function(t){const{index:e,direction:n,element:o,slides:s,options:i,isAnimating:a}=t;if(a&&o.Carousel){const a=V(t),c="left"===n?"next":"prev",d="left"===n?"start":"end";t.isAnimating=!1,y(s[e],"active"),r(s[a],"active"),r(s[e],"carousel-item-"+c),r(s[e],"carousel-item-"+d),r(s[a],"carousel-item-"+d),o.dispatchEvent(M),document.hidden||!i.interval||l(o,"paused")||t.cycle()}}(e))):(y(a[h],"active"),r(a[d],"active"),setTimeout(()=>{e.isAnimating=!1,n&&c.interval&&!l(n,"paused")&&e.cycle(),n.dispatchEvent(M)},100)))}dispose(){const t=this,{slides:e}=t,n=["start","end","prev","next"];Array.from(e).forEach((e,o)=>{l(e,"active")&&q(t,o),n.forEach(t=>r(e,"carousel-item-"+t))}),Y(t),clearInterval(t.timer),super.dispose("Carousel")}}const U={component:"Carousel",selector:N,constructor:G};function Z(t){return a(t.getAttribute("data-bs-target")||t.getAttribute("href"))||t.closest(t.getAttribute("data-bs-parent"))||a(t.getAttribute("data-bs-container"))}const J=`[${w}="collapse"]`,K=d("show.bs.collapse"),Q=d("shown.bs.collapse"),_=d("hide.bs.collapse"),tt=d("hidden.bs.collapse");function et(t){const{element:e,parent:n,triggers:o}=t;e.dispatchEvent(_),_.defaultPrevented||(t.isAnimating=!0,n&&(n.isAnimating=!0),e.style.height=e.scrollHeight+"px",r(e,"collapse"),r(e,"show"),y(e,"collapsing"),k(e),e.style.height="0px",i(e,()=>{t.isAnimating=!1,n&&(n.isAnimating=!1),o.forEach(t=>t.setAttribute("aria-expanded","false")),r(e,"collapsing"),y(e,"collapse"),e.style.height="",e.dispatchEvent(tt)}))}function nt(t,e){const n=e?c:"removeEventListener",{triggers:o}=t;o.length&&o.forEach(t=>t[n]("click",ot))}function ot(t){const{target:e}=t,n=e.closest(J),o=Z(n),s=o&&o.Collapse;s&&s.toggle(e),n&&"A"===n.tagName&&t.preventDefault()}class st extends u{constructor(t,e){super("Collapse",t,{parent:null},e);const{element:n}=this;this.triggers=Array.from(document.querySelectorAll(J)).filter(t=>Z(t)===n),this.parent=a(this.options.parent);const{parent:o}=this;this.isAnimating=!1,o&&(o.isAnimating=!1),nt(this,1)}toggle(t){l(this.element,"show")?this.hide(t):this.show(t)}hide(){const{triggers:t,isAnimating:e}=this;e||(et(this),t.length&&t.forEach(t=>y(t,"collapsed")))}show(){const t=this,{element:e,parent:n,triggers:o,isAnimating:s}=t;let a,l;n&&(a=Array.from(n.querySelectorAll(".collapse.show")).find(t=>t.Collapse),l=a&&a.Collapse),n&&(!n||n.isAnimating)||s||(l&&a!==e&&(et(l),l.triggers.forEach(t=>{y(t,"collapsed")})),function(t){const{element:e,parent:n,triggers:o}=t;e.dispatchEvent(K),K.defaultPrevented||(t.isAnimating=!0,n&&(n.isAnimating=!0),y(e,"collapsing"),r(e,"collapse"),e.style.height=e.scrollHeight+"px",i(e,()=>{t.isAnimating=!1,n&&(n.isAnimating=!1),o.forEach(t=>t.setAttribute("aria-expanded","true")),r(e,"collapsing"),y(e,"collapse"),y(e,"show"),e.style.height="",e.dispatchEvent(Q)}))}(t),o.length&&o.forEach(t=>r(t,"collapsed")))}dispose(){const{parent:t}=this;nt(this),t&&delete t.isAnimating,super.dispose("Collapse")}}const it={component:"Collapse",selector:".collapse",constructor:st},at=["dropdown","dropup","dropstart","dropend"];function lt(t){const e=t.closest("A");return t&&(t.href&&"#"===t.href.slice(-1)||e&&e.href&&"#"===e.href.slice(-1))}function rt(t){t.focus()}const[ct]=at,dt=`[${w}="${ct}"]`,ht=at[1],ut=at[2],pt=at[3],mt=["d-block","invisible"],ft=[ct,ht],gt=[ut,pt],vt={offset:5,display:"dynamic"},bt=d("show.bs."+ct),yt=d("shown.bs."+ct),wt=d("hide.bs."+ct),Et=d("hidden.bs."+ct);function At(t,e){const{element:n,menu:o,originalClass:s,menuEnd:i,options:a}=t,c=n.parentElement;if(o.style.margin="",!e){c.className=s.join(" ");return void(i&&!l(o,"dropdown-menu-end")?y:r)(o,"dropdown-menu-end")}const{offset:d}=a;let h=at.find(t=>s.includes(t)),u={dropdown:[d,0,0],dropup:[0,0,d],dropstart:[-1,d,0],dropend:[-1,0,0,d]};mt.forEach(t=>y(o,t));const p=new RegExp(`\\b(${ct}|${ht}|${ut}|${pt})+`),m=n.offsetWidth,f=n.offsetHeight,g=o.offsetWidth,v=o.offsetHeight,b=document.documentElement,w=document.body,E=b.clientWidth||w.clientWidth,A=b.clientHeight||w.clientHeight,T=n.getBoundingClientRect(),C=T.left+m-g<0,x=T.left-g<0,k=T.left+g>=E,H=T.left+g+m>=E,N=T.top+v>=A,L=T.top+v+f>=A,P=T.top-v<0,S=c.parentNode.closest(".btn-group,.btn-group-vertical");if(gt.includes(h)&&x&&H&&(h=ct),gt.includes(h)&&N&&(h=ht),h===ut&&x&&!N&&(h=pt),h===pt&&H&&!N&&(h=ut),h===ht&&P&&!L&&(h=ct),h===ct&&L&&!P&&(h=ht),u=u[h],o.style.margin=""+u.map(t=>t?t+"px":t).join(" "),l(c,h)||(c.className=c.className.replace(p,h)),ft.includes(h)){const t=k?y:r;S?C&&y(c,"position-static"):t(o,"dropdown-menu-end")}mt.forEach(t=>r(o,t))}function Tt(t){const e=t.open?c:"removeEventListener";document[e]("click",kt),document[e]("focus",kt),document[e]("keydown",Nt),document[e]("keyup",Lt),"dynamic"===t.options.display&&(window[e]("scroll",Pt,x),window[e]("resize",Pt,x))}function Ct(t,e){const n=e?c:"removeEventListener";t.element[n]("click",Ht)}function xt(){const t=at.map(t=>document.getElementsByClassName(t+" show")).find(t=>t.length);return t&&t.length?Array.from(t[0].children).find(t=>t.hasAttribute(w)):null}function kt(t){const{target:e,type:n}=t;if(!e.closest)return;const o=xt(),s=o&&o.parentNode,i=o&&o.Dropdown,a=i&&i.menu,l=null!==e.closest(dt),r=s&&s.contains(e)&&("form"===e.tagName||null!==e.closest("form"));"click"===n&<(e)&&t.preventDefault(),("focus"!==n||e!==o&&e!==a&&!a.contains(e))&&(r||l||i&&i.hide(o))}function Ht(t){this.Dropdown.toggle(this),lt(t.target)&&t.preventDefault()}function Nt(t){38!==t.which&&40!==t.which||t.preventDefault()}function Lt({which:t}){const e=xt(),n=e.Dropdown,{menu:o,menuItems:s,open:i}=n,a=document.activeElement,l=a===e,r=o.contains(a),c=a.parentNode===o||a.parentNode.parentNode===o;let d=s.indexOf(a);c&&(l?d=0:38===t?d=d>1?d-1:0:40===t&&(d=d<s.length-1?d+1:d),s[d]&&rt(s[d])),(s.length&&c||!s.length&&(r||l)||!r)&&i&&27===t&&n.toggle()}function Pt(){const t=xt(),e=t&&t.Dropdown;e&&e.open&&At(e,1)}class St extends u{constructor(t,e){super("Dropdown",t,vt,e);const n=this,{element:o}=n,s=o.parentElement;n.menu=a(".dropdown-menu",s);const{menu:i}=n;n.originalClass=Array.from(s.classList),n.menuEnd=l(i,"dropdown-menu-end"),n.menuItems=[],Array.from(i.children).forEach(t=>{t.children.length&&"A"===t.children[0].tagName&&n.menuItems.push(t.children[0]),"A"===t.tagName&&n.menuItems.push(t)}),n.open=!1,Ct(n,1)}toggle(t){const{open:e}=this;e?this.hide(t):this.show(t)}show(t){const e=this,n=a(at.map(t=>`.${t}.show`).join(",")),o=n&&a(dt,n);o&&o.Dropdown.hide();const{element:s,menu:i,open:l}=e,r=s.parentNode;bt.relatedTarget=t||null,r.dispatchEvent(bt),bt.defaultPrevented||(At(e,1),y(i,"show"),y(r,"show"),s.setAttribute("aria-expanded",!0),e.open=!l,setTimeout(()=>{rt(i.getElementsByTagName("INPUT")[0]||s),Tt(e),yt.relatedTarget=t||null,r.dispatchEvent(yt)},1))}hide(t){const e=this,{element:n,menu:o,open:s}=e,i=n.parentNode;wt.relatedTarget=t||null,i.dispatchEvent(wt),wt.defaultPrevented||(r(o,"show"),r(i,"show"),At(e),n.setAttribute("aria-expanded",!1),e.open=!s,rt(n),setTimeout(()=>Tt(e),1),Et.relatedTarget=t||null,i.dispatchEvent(Et))}dispose(){const{element:t}=this;l(t.parentNode,"show")&&this.open&&this.hide(),Ct(this),super.dispose("Dropdown")}}const Dt={component:"Dropdown",selector:dt,constructor:St},Ot=Array.from(document.getElementsByClassName("fixed-top")).concat(Array.from(document.getElementsByClassName("fixed-bottom"))).concat(Array.from(document.getElementsByClassName("sticky-top"))).concat(Array.from(document.getElementsByClassName("is-fixed")));function Mt(){const t=document.body;t.style.paddingRight="",t.style.overflow="",Ot.length&&Ot.forEach(t=>{t.style.paddingRight="",t.style.marginRight=""})}function Bt(){const t=document.createElement("div"),e=document.body;t.className="modal-scrollbar-measure",e.appendChild(t);const n=t.offsetWidth-t.clientWidth;return e.removeChild(t),n}function It(t,e,n){const o=document.body,s=parseInt(getComputedStyle(o).paddingRight,10),i=n&&s?0:t;e&&(o.style.paddingRight=s+i+"px",o.style.overflow="hidden",Ot.length&&Ot.forEach(t=>{const e=l(t,"sticky-top"),n=getComputedStyle(t).paddingRight;if(t.style.paddingRight=parseInt(n,10)+i+"px",e){const e=getComputedStyle(t).marginRight;t.style.marginRight=parseInt(e,10)-i+"px"}}))}const Rt=`[${w}="modal"]`,$t={backdrop:!0,keyboard:!0},jt=d("show.bs.modal"),Wt=d("shown.bs.modal"),Ft=d("hide.bs.modal"),zt=d("hidden.bs.modal");function qt(t){const{element:e}=t,n=document.body,o=document.documentElement,s=l(n,"modal-open"),i=o.clientHeight!==o.scrollHeight||n.clientHeight!==n.scrollHeight,a=e.clientHeight!==e.scrollHeight,r=Bt();!a&&r&&(e.style.paddingRight=r+"px"),It(r,a||i,s)}function Xt(t){let e=a(".modal-backdrop");const n=document.body,o=a(".modal.show");e&&!o&&(n.removeChild(e),e=null),t.isAnimating=!1,null===e&&(r(n,"modal-open"),t.element.style.paddingRight="",Mt())}function Yt(t,e){const n=e?c:"removeEventListener";window[n]("resize",t.update,x),t.element[n]("click",Qt),document[n]("keydown",Kt)}function Vt(t,e){const n=e?c:"removeEventListener";t.triggers&&t.triggers.length&&t.triggers.forEach(t=>t[n]("click",Jt))}function Gt(t){const{element:e,hasFade:n}=t;e.style.display="block",qt(t),a(".modal.show")||y(document.body,"modal-open"),y(e,"show"),e.removeAttribute("aria-hidden"),e.setAttribute("aria-modal",!0),n?i(e,()=>Ut(t)):Ut(t)}function Ut(t){const{element:e,relatedTarget:n}=t;rt(e),t.isAnimating=!1,Yt(t,1),Wt.relatedTarget=n,e.dispatchEvent(Wt)}function Zt(t,e){const{relatedTarget:n,hasFade:o,element:s,triggers:c}=t,d=a(".modal-backdrop");s.style.display="",c.length&&rt(c[0]),!e&&d&&o&&l(d,"show")&&!a(".modal.show")?(r(d,"show"),i(d,()=>Xt(t))):Xt(t),Yt(t),zt.relatedTarget=n,s.dispatchEvent(zt)}function Jt(t){const{target:e}=t,n=e.closest(Rt),o=Z(n),s=o&&o.Modal;"A"===n.tagName&&t.preventDefault(),s.isAnimating||(s.relatedTarget=n,s.toggle(n))}function Kt({which:t}){const e=a(".modal.show"),n=e.Modal,{options:o,isAnimating:s}=n;!s&&o.keyboard&&27===t&&l(e,"show")&&(n.relatedTarget=null,n.hide())}function Qt(t){const e=this,n=e.Modal;if(n.isAnimating)return;const{isStatic:o,modalDialog:a}=n,{target:l}=t,c=document.getSelection().toString().length,d=a.contains(l),h=l.closest('[data-bs-dismiss="modal"]');o&&!d?(y(e,"modal-static"),n.isAnimating=!0,i(a,()=>function(t){const e=s(t.modalDialog)+17;r(t.element,"modal-static"),setTimeout(()=>{t.isAnimating=!1},e)}(n))):!h&&(c||o||d)||(n.relatedTarget=h||null,n.hide(),t.preventDefault())}class _t extends u{constructor(t,e){super("Modal",t,$t,e);const{element:n}=this;this.modalDialog=a(".modal-dialog",n),this.triggers=Array.from(document.querySelectorAll(Rt)).filter(t=>Z(t)===n),this.isStatic="static"===this.options.backdrop,this.hasFade=l(n,"fade"),this.isAnimating=!1,this.relatedTarget=null,Vt(this,1),this.update=this.update.bind(this)}toggle(t){l(this.element,"show")?this.hide():this.show(t)}show(t){const e=this,{element:n,isAnimating:o,options:i}=e;if(l(n,"show")&&!o)return;if(jt.relatedTarget=t,n.dispatchEvent(jt),jt.defaultPrevented)return;e.isAnimating=!0;const r=a(".modal.show"),c=i.backdrop?function(t){let e=a(".modal-backdrop");if(null===e){const n=document.createElement("div");n.setAttribute("class","modal-backdrop"+(t.hasFade?" fade":"")),e=n,document.body.appendChild(e)}return e}(e):null;let d=0;r&&r!==n&&r.Modal&&r.Modal.hide(),!c||r||l(c,"show")||(k(c),d=s(c),y(c,"show")),r?Gt(e):setTimeout(()=>Gt(e),c&&d?d:0)}hide(t){const e=this,{element:n,isAnimating:o,hasFade:s,relatedTarget:a}=e;(l(n,"show")||o)&&(Ft.relatedTarget=a,n.dispatchEvent(Ft),Ft.defaultPrevented||(e.isAnimating=!0,r(n,"show"),n.setAttribute("aria-hidden",!0),n.removeAttribute("aria-modal"),s&&1!==t?i(n,()=>{Zt(e)}):Zt(e,t)))}update(){l(this.element,"show")&&qt(this)}dispose(){this.hide(1),Vt(this),super.dispose("Modal")}}const te={component:"Modal",selector:".modal",constructor:_t},ee=`[${w}="offcanvas"]`,ne={backdrop:!0,keyboard:!0,scroll:!1},oe=d("show.bs.offcanvas"),se=d("shown.bs.offcanvas"),ie=d("hide.bs.offcanvas"),ae=d("hidden.bs.offcanvas");function le(t){const e=this,n=Z(e),o=n&&n.Offcanvas;"A"===e.tagName&&t.preventDefault(),setTimeout(()=>{o&&o.toggle(e)},17)}function re(t){const e=a(".offcanvas.show"),n=e&&a('[data-bs-dismiss="offcanvas"]',e),o=e&&e.Offcanvas,{open:s,triggers:i}=o,{target:l}=t,r=l.closest(ee);r&&"A"===r.tagName&&t.preventDefault(),o&&s&&(!e.contains(l)&&e!==l&&(!r||r&&!i.includes(r))||l===n)&&o.hide(l===n?n:null)}function ce({which:t}){const e=a(".offcanvas.show"),n=e&&e.Offcanvas;n&&n.options.keyboard&&27===t&&n.hide()}function de(t,e){const{triggers:n}=t,o=e?c:"removeEventListener";n.forEach(t=>t[o]("click",le))}function he(t){const e=t?c:"removeEventListener";document[e]("keydown",ce),document[e]("click",re)}class ue extends u{constructor(t,e){super("Offcanvas",t,ne,e);const{element:n}=this;this.triggers=Array.from(document.querySelectorAll(ee)).filter(t=>Z(t)===n),this.open=!1,de(this,1)}toggle(t){return this.open?this.hide(t):this.show(t)}show(t){const e=a(".offcanvas.show");e&&e.Offcanvas.hide();const n=this.Offcanvas?this.Offcanvas:this,{element:o,options:s}=n;n.open||(oe.relatedTarget=t||null,o.dispatchEvent(oe),oe.defaultPrevented||(n.open=!0,o.style.visibility="visible",s.backdrop&&y(document.body,"offcanvas-backdrop"),s.scroll||function(){const t=document.body,e=document.documentElement,n=l(t,"offcanvas-backdrop"),o=e.clientHeight!==e.scrollHeight||t.clientHeight!==t.scrollHeight;It(Bt(),o,n)}(),y(o,"offcanvas-toggling"),y(o,"show"),he(1),i(o,()=>function(t,e){const{element:n,triggers:o}=t;r(n,"offcanvas-toggling"),n.removeAttribute("aria-hidden"),n.setAttribute("aria-modal",!0),n.setAttribute("role","dialog"),o.length&&o.forEach(t=>t.setAttribute("aria-expanded",!0)),se.relatedTarget=e||null,n.dispatchEvent(se),rt(n)}(n,t))))}hide(t){const e=this,{element:n}=e;e.open&&(ie.relatedTarget=t||null,n.dispatchEvent(ie),ie.defaultPrevented||(y(n,"offcanvas-toggling"),n.blur(),e.open=!1,r(n,"show"),he(),i(n,()=>function(t,e){const{element:n,options:o,triggers:s}=t;n.setAttribute("aria-hidden",!0),n.removeAttribute("aria-modal"),n.removeAttribute("role"),n.style.visibility="hidden",s.length&&(rt(s[0]),s.forEach(t=>t.setAttribute("aria-expanded",!1))),ae.relatedTarget=e||null,n.dispatchEvent(ae),r(n,"offcanvas-toggling"),a(".offcanvas.show")||(o.backdrop&&r(document.body,"offcanvas-backdrop"),o.scroll||Mt())}(e,t))))}dispose(){de(this),super.dispose("Offcanvas")}}const pe={component:"Offcanvas",selector:".offcanvas",constructor:ue};var me={top:"top",bottom:"bottom",left:"start",right:"end"};function fe(t,e){return e.contains(t)}function ge(t){return[SVGElement,HTMLImageElement,HTMLVideoElement].some(e=>t instanceof e)}function ve(t,e){const n=/\b(top|bottom|start|end)+/,o=t.tooltip||t.popover;o.style.top="",o.style.left="",o.style.right="";const s=!!t.popover;let i={w:o.offsetWidth,h:o.offsetHeight};const a=document.documentElement.clientWidth||document.body.clientWidth,l=document.documentElement.clientHeight||document.body.clientHeight,{element:r,options:c,arrow:d}=t;let{container:h,placement:u}=c,p=h===document.body;const m=getComputedStyle(r).position,f=getComputedStyle(h).position,g=!p&&"static"===f;let v=!p&&"relative"===f;const b=g&&function(t){let e=null,n=t;for(;n!==document.body;)if(n=n.parentElement,"relative"===getComputedStyle(n).position){e=n;break}return e}(h);h=b||h,v=g&&b?1:v,p=h===document.body;const y=h.getBoundingClientRect(),w=v?y.left:0,E=v?y.right:a,A="absolute"===m,T=r.getBoundingClientRect(),C=p?{x:window.pageXOffset,y:window.pageYOffset}:{x:h.scrollLeft,y:h.scrollTop},x=r.offsetWidth,k=r.offsetHeight,H=v?r.offsetTop:T.top,N=v?r.offsetLeft:T.left;let L,P,S,D,O,M;d.style.top="",d.style.left="",d.style.right="";let B=T.top-i.h<0,I=T.top+i.h+k>=l,R=T.left-i.w<w,$=T.left+i.w+x>=E;B=["left","right"].includes(u)?T.top+k/2-i.h/2<0:B,I=["left","right"].includes(u)?T.top+i.h/2+k/2>=l:I,R=["top","bottom"].includes(u)?T.left+x/2-i.w/2<w:R,$=["top","bottom"].includes(u)?T.left+i.w/2+x/2>=E:$,u=["left","right"].includes(u)&&R&&$?"top":u,u="top"===u&&B?"bottom":u,u="bottom"===u&&I?"top":u,u="left"===u&&R?"right":u,u="right"===u&&$?"left":u,o.className.includes(u)||(o.className=o.className.replace(n,me[u])),i={w:o.offsetWidth,h:o.offsetHeight};const j=d.offsetWidth||0,W=d.offsetHeight||0,F=j/2;if(["left","right"].includes(u))P="left"===u?N+C.x-i.w-(s?j:0):N+C.x+x+(s?j:0),B?(L=H+C.y,D=k/2-j):I?(L=H+C.y-i.h+k,D=i.h-k/2-j):(L=H+C.y-i.h/2+k/2,D=i.h/2-W/2);else if(["top","bottom"].includes(u))if(e&&ge(r)){const t=v?e.layerX+(A?r.offsetLeft:0):e.pageX,n=v?e.layerY+(A?r.offsetTop:0):e.pageY;L="top"===u?n-i.h-(s?j:W):n+W,e.clientX-i.w/2<w?(P=0,O=t-F):e.clientX+.51*i.w>=E?(P="auto",S=0,O=i.w-(E-t)-F):(P=t-i.w/2,O=i.w/2-F)}else L="top"===u?H+C.y-i.h-(s?W:0):H+C.y+k+(s?W:0),R?(P=0,O=N+x/2-F):$?(P="auto",S=0,M=x/2+(y.right-T.right)-F):(P=N+C.x-i.w/2+x/2,O=i.w/2-F);o.style.top=L+"px",o.style.left="auto"===P?P:P+"px",o.style.right=void 0!==S?S+"px":"",void 0!==D&&(d.style.top=D+"px"),void 0!==O?d.style.left=O+"px":void 0!==M&&(d.style.right=M+"px")}let be=1;function ye(t,e){return be+=1,t[e]||be}function we(t){const e=t.closest(".modal"),n=t.closest(".fixed-top,.fixed-bottom");return e||n||document.body}const Ee=`[${w}="popover"],[data-tip="popover"]`,Ae={template:'<div class="popover" role="tooltip"><div class="popover-arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>',title:null,content:null,sanitizeFn:null,customClass:null,dismissible:!1,animation:!0,trigger:"hover",placement:"top",delay:200},Te=/(iPhone|iPod|iPad)/.test(navigator.userAgent);let Ce='<button type="button" class="btn-close"></button>';const xe=d("show.bs.popover"),ke=d("shown.bs.popover"),He=d("hide.bs.popover"),Ne=d("hidden.bs.popover");function Le(){rt(this)}function Pe({target:t}){const e=this,{popover:n,element:o}=e;n&&n.contains(t)||t===o||o.contains(t)||e.hide()}function Se(t,e){const n=e?c:"removeEventListener",{element:o,options:s}=t,{trigger:i,dismissible:a}=s;t.enabled=!!e,"hover"===i?(o[n]("mousedown",t.show),o[n]("mouseenter",t.show),ge(o)&&o[n]("mousemove",t.update,x),a||o[n]("mouseleave",t.hide)):"click"===i?o[n](i,t.toggle):"focus"===i&&(Te&&o[n]("click",Le),o[n]("focusin",t.show))}function De(t,e){const n=e?c:"removeEventListener",{options:o,element:s,popover:i}=t,{trigger:a,dismissible:l}=o;if(l){const[e]=i.getElementsByClassName("btn-close");e&&e[n]("click",t.hide)}else"focus"===a&&s[n]("focusout",t.hide),"hover"===a&&document[n]("touchstart",Pe,x);ge(s)||(window[n]("scroll",t.update,x),window[n]("resize",t.update,x))}function Oe(t){De(t,1),t.element.dispatchEvent(ke)}function Me(t){De(t),function(t){const{element:e,popover:n,options:o}=t;e.removeAttribute("aria-describedby"),o.container.removeChild(n),t.timer=null}(t),t.element.dispatchEvent(Ne)}class Be extends u{constructor(t,e){Ae.container=we(a(t)),super("Popover",t,Ae,e);const{element:n}=this;this.timer=null,this.popover=null,this.arrow=null,this.enabled=!1,this.id="popover-"+ye(n);const{options:o}=this;this.options.container=ge(n)?Ae.container:a(o.container),Ae.container=null,o.content&&(!function(t){const{id:e,options:n}=t,{animation:o,customClass:s,sanitizeFn:i,placement:r,dismissible:c}=n;let{title:d,content:h,template:u}=n;const p="bs-popover-"+me[r];d=d?d.trim():null,h=h?h.trim():null,i&&(d=d?i(d):null,h=h?i(h):null,u=u?i(u):null,Ce=i(Ce)),t.popover=document.createElement("div");const{popover:m}=t;m.setAttribute("id",e),m.setAttribute("role","tooltip");const f=document.createElement("div");f.innerHTML=u.trim(),m.className=f.firstChild.className,m.innerHTML=f.firstChild.innerHTML;const g=a(".popover-header",m),v=a(".popover-body",m);t.arrow=a(".popover-arrow",m),c&&(d=d?d+Ce:d,h=null===d?+Ce:h),d&&g&&(g.innerHTML=d.trim()),h&&v&&(v.innerHTML=h.trim()),l(m,"popover")||y(m,"popover"),o&&!l(m,"fade")&&y(m,"fade"),s&&!l(m,s)&&y(m,s),l(m,p)||y(m,p)}(this),this.update=this.update.bind(this),Se(this,1))}update(t){ve(this,t)}toggle(t){const e=t?this.Popover:this,{popover:n,options:o}=e;fe(n,o.container)?e.hide():e.show()}show(t){const e=t?this.Popover:this,{element:n,popover:o,options:s,id:a}=e,{container:r}=s;clearTimeout(e.timer),e.timer=setTimeout(()=>{if(!fe(o,r)){if(n.dispatchEvent(xe),xe.defaultPrevented)return;r.appendChild(o),n.setAttribute("aria-describedby",a),e.update(t),l(o,"show")||y(o,"show"),s.animation?i(o,()=>Oe(e)):Oe(e)}},17)}hide(t){let e;if(t&&this.Popover)e=this.Popover;else if(t){const t=this.closest(".popover"),n=t&&a(`[aria-describedby="${t.id}"]`);e=n.Popover}else e=this;const{element:n,popover:o,options:s}=e;clearTimeout(e.timer),e.timer=setTimeout(()=>{if(fe(o,s.container)){if(n.dispatchEvent(He),He.defaultPrevented)return;r(o,"show"),s.animation?i(o,()=>Me(e)):Me(e)}},s.delay+17)}enable(){const t=this,{enabled:e}=t;e||(Se(t,1),t.enabled=!e)}disable(){const t=this,{enabled:e,popover:n,options:o}=t;e&&(fe(n,o.container)&&o.animation?(t.hide(),setTimeout(()=>Se(t),s(n)+o.delay+17)):Se(t),t.enabled=!e)}toggleEnabled(){this.enabled?this.disable():this.enable()}dispose(){const t=this,{popover:e,options:n}=t,{container:o,animation:s}=n;s&&fe(e,o)?(n.delay=0,t.hide(),i(e,()=>Se(t))):Se(t),super.dispose("Popover")}}const Ie={component:"Popover",selector:Ee,constructor:Be},Re={offset:10,target:null},$e=d("activate.bs.scrollspy");function je(t){const{target:e,scrollTarget:n,isWindow:o,options:s,itemsLength:i,scrollHeight:l}=t,{offset:r}=s,c=e.getElementsByTagName("A");if(t.scrollTop=o?n.pageYOffset:n.scrollTop,i!==c.length||We(n)!==l){let e,s,i;t.items=[],t.offsets=[],t.scrollHeight=We(n),t.maxScroll=t.scrollHeight-function({element:t,isWindow:e}){return e?window.innerHeight:t.getBoundingClientRect().height}(t),Array.from(c).forEach(n=>{e=n.getAttribute("href"),s=e&&"#"===e.charAt(0)&&"#"!==e.slice(-1)&&a(e),s&&(t.items.push(n),i=s.getBoundingClientRect(),t.offsets.push((o?i.top+t.scrollTop:s.offsetTop)-r))}),t.itemsLength=t.items.length}}function We(t){return t.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)}function Fe(t){Array.from(t.getElementsByTagName("A")).forEach(t=>{l(t,"active")&&r(t,"active")})}function ze(t,e){const{target:n,element:o}=t;Fe(n),t.activeItem=e,y(e,"active");const s=[];let i=e;for(;i!==document.body;)i=i.parentNode,(l(i,"nav")||l(i,"dropdown-menu"))&&s.push(i);s.forEach(t=>{const e=t.previousElementSibling;e&&!l(e,"active")&&y(e,"active")}),$e.relatedTarget=e,o.dispatchEvent($e)}function qe(t,e){const n=e?c:"removeEventListener";t.scrollTarget[n]("scroll",t.refresh,x)}class Xe extends u{constructor(t,e){super("ScrollSpy",t,Re,e);const{element:n,options:o}=this;this.target=a(o.target),this.target&&(this.scrollTarget=n.clientHeight<n.scrollHeight?n:window,this.isWindow=this.scrollTarget===window,this.scrollTop=0,this.maxScroll=0,this.scrollHeight=0,this.activeItem=null,this.items=[],this.offsets=[],this.refresh=this.refresh.bind(this),qe(this,1),this.refresh())}refresh(){const t=this,{target:e}=t;if(0===e.offsetHeight)return;je(t);const{scrollTop:n,maxScroll:o,itemsLength:s,items:i,activeItem:a}=t;if(n>=o){const e=i[s-1];return void(a!==e&&ze(t,e))}const{offsets:l}=t;if(a&&n<l[0]&&l[0]>0)return t.activeItem=null,void Fe(e);i.forEach((e,o)=>{a!==e&&n>=l[o]&&(void 0===l[o+1]||n<l[o+1])&&ze(t,e)})}dispose(){qe(this),super.dispose("ScrollSpy")}}const Ye={component:"ScrollSpy",selector:'[data-bs-spy="scroll"]',constructor:Xe},Ve=`[${w}="tab"]`,Ge=d("show.bs.tab"),Ue=d("shown.bs.tab"),Ze=d("hide.bs.tab"),Je=d("hidden.bs.tab");let Ke,Qe,_e,tn,en,nn,on;function sn(t){const{tabContent:e,nav:n}=t;e.style.height="",r(e,"collapsing"),n.isAnimating=!1}function an(t){const{tabContent:e,nav:n}=t;e?on?sn(t):setTimeout(()=>{e.style.height=_e+"px",k(e),i(e,()=>sn(t))},50):n.isAnimating=!1,Ue.relatedTarget=tn,Ke.dispatchEvent(Ue)}function ln(t){const{tabContent:e}=t;e&&(en.style.float="left",Qe.style.float="left",nn=en.scrollHeight),Ge.relatedTarget=tn,Je.relatedTarget=Ke,Ke.dispatchEvent(Ge),Ge.defaultPrevented||(y(Qe,"active"),r(en,"active"),e&&(_e=Qe.scrollHeight,on=_e===nn,y(e,"collapsing"),e.style.height=nn+"px",k(e),en.style.float="",Qe.style.float=""),l(Qe,"fade")?setTimeout(()=>{y(Qe,"show"),i(Qe,()=>{an(t)})},20):an(t),tn.dispatchEvent(Je))}function rn({nav:t}){const e=t.getElementsByClassName("active");return 1!==e.length||at.some(t=>l(e[0].parentNode,t))?e.length>1&&(tn=e[e.length-1]):[tn]=e,tn}function cn(t){return a(rn(t).getAttribute("href"))}function dn(t,e){const n=e?c:"removeEventListener";t.element[n]("click",hn)}function hn(t){const e=this.Tab;t.preventDefault(),e.nav.isAnimating||e.show()}class un extends u{constructor(t){super("Tab",t);const{element:n}=this;this.nav=n.closest(".nav");const{nav:o}=this;this.dropdown=o&&a(`.${at[0]}-toggle`,o),en=cn(this),this.tabContent=e&&en.closest(".tab-content"),nn=en.scrollHeight,o.isAnimating=!1,dn(this,1)}show(){const t=this,{element:e,nav:n,dropdown:o}=t;if(Ke=e,!l(Ke,"active")){if(Qe=a(Ke.getAttribute("href")),tn=rn({nav:n}),en=cn({nav:n}),Ze.relatedTarget=Ke,tn.dispatchEvent(Ze),Ze.defaultPrevented)return;n.isAnimating=!0,r(tn,"active"),tn.setAttribute("aria-selected","false"),y(Ke,"active"),Ke.setAttribute("aria-selected","true"),o&&(l(e.parentNode,"dropdown-menu")?l(o,"active")||y(o,"active"):l(o,"active")&&r(o,"active")),l(en,"fade")?(r(en,"show"),i(en,()=>ln(t))):ln(t)}}dispose(){dn(this),super.dispose("Tab")}}const pn={component:"Tab",selector:Ve,constructor:un},mn={animation:!0,autohide:!0,delay:500},fn=d("show.bs.toast"),gn=d("hide.bs.toast"),vn=d("shown.bs.toast"),bn=d("hidden.bs.toast");function yn(t){const{element:e,options:n}=t;n.animation||(r(e,"showing"),y(e,"show")),e.dispatchEvent(vn),n.autohide&&t.hide()}function wn(t){const{element:e}=t;y(e,"hide"),e.dispatchEvent(bn)}function En(t,e){const n=e?c:"removeEventListener";t.dismiss&&t.dismiss[n]("click",t.hide)}function An(t){clearTimeout(t.timer),En(t)}class Tn extends u{constructor(t,e){super("Toast",t,mn,e);this.dismiss=a('[data-bs-dismiss="toast"]',this.element),this.show=this.show.bind(this),this.hide=this.hide.bind(this),En(this,1)}show(){const t=this,{element:e}=t;if(e&&l(e,"hide")){if(e.dispatchEvent(fn),fn.defaultPrevented)return;y(e,"fade"),clearTimeout(t.timer),t.timer=setTimeout(()=>function(t){const{element:e,options:n}=t;r(e,"hide"),n.animation?(k(e),y(e,"showing"),y(e,"show"),i(e,()=>yn(t))):yn(t)}(t),10)}}hide(t){const e=this,{element:n,options:o}=e;if(n&&l(n,"show")){if(n.dispatchEvent(gn),gn.defaultPrevented)return;clearTimeout(e.timer),e.timer=setTimeout(function(t){const{element:e,options:n}=t;r(e,"show"),n.animation?(k(e),i(e,()=>wn(t))):wn(t)}(e),t?10:o.delay)}}dispose(){const t=this,{element:e,options:n}=t;t.hide(),n.animation?i(e,()=>An(t)):An(t),super.dispose("Toast")}}const Cn={component:"Toast",selector:".toast",constructor:Tn},xn=`[${w}="tooltip"],[data-tip="tooltip"]`,kn={title:null,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',placement:"top",animation:!0,customClass:null,delay:200,sanitizeFn:null},Hn=d("show.bs.tooltip"),Nn=d("shown.bs.tooltip"),Ln=d("hide.bs.tooltip"),Pn=d("hidden.bs.tooltip");function Sn(t){const{element:e}=t;Bn(t),e.hasAttribute("data-original-title")&&In(t)}function Dn(t,e){const n=e?c:"removeEventListener";document[n]("touchstart",Rn,x),ge(t.element)||(window[n]("scroll",t.update,x),window[n]("resize",t.update,x))}function On(t){Dn(t,1),t.element.dispatchEvent(Nn)}function Mn(t){Dn(t),function(t){const{element:e,options:n,tooltip:o}=t;e.removeAttribute("aria-describedby"),n.container.removeChild(o),t.timer=null}(t),t.element.dispatchEvent(Pn)}function Bn(t,e){const n=e?c:"removeEventListener",{element:o}=t;ge(o)&&o[n]("mousemove",t.update,x),o[n]("mousedown",t.show),o[n]("mouseenter",t.show),o[n]("mouseleave",t.hide)}function In(t,e){const n=["data-original-title","title"],{element:o}=t;o.setAttribute(n[e?0:1],e||o.getAttribute(n[0])),o.removeAttribute(n[e?1:0])}function Rn({target:t}){const{tooltip:e,element:n}=this;e.contains(t)||t===n||n.contains(t)||this.hide()}class $n extends u{constructor(t,e){const n=a(t);kn.title=n.getAttribute("title"),kn.container=we(n),super("Tooltip",n,kn,e);this.tooltip=null,this.arrow=null,this.timer=null,this.enabled=!1;const{options:o}=this;this.options.container=ge(n)?kn.container:a(o.container),kn.container=null,kn.title=null,o.title&&(Rn.bind(this),this.update=this.update.bind(this),n.hasAttribute("title")&&In(this,o.title),this.id="tooltip-"+ye(n),function(t){const{options:e,id:n}=t,o="bs-tooltip-"+me[e.placement];let s=e.title.trim();if(e.sanitizeFn&&(s=e.sanitizeFn(s),e.template=e.sanitizeFn(e.template)),!s)return;t.tooltip=document.createElement("div");const{tooltip:i}=t;i.setAttribute("id",n);const r=document.createElement("div");r.innerHTML=e.template.trim(),i.className=r.firstChild.className,i.innerHTML=r.firstChild.innerHTML,a(".tooltip-inner",i).innerHTML=s,t.arrow=a(".tooltip-arrow",i),i.setAttribute("role","tooltip"),l(i,"tooltip")||y(i,"tooltip"),e.animation&&!l(i,"fade")&&y(i,"fade"),e.customClass&&!l(i,e.customClass)&&y(i,e.customClass),l(i,o)||y(i,o)}(this),Bn(this,1))}show(t){const e=t?this.Tooltip:this,{options:n,tooltip:o,element:s,id:a}=e;clearTimeout(e.timer),e.timer=setTimeout(()=>{if(!fe(o,n.container)){if(s.dispatchEvent(Hn),Hn.defaultPrevented)return;n.container.appendChild(o),s.setAttribute("aria-describedby",a),e.update(t),l(o,"show")||y(o,"show"),n.animation?i(o,()=>On(e)):On(e)}},20)}hide(t){const e=t?this.Tooltip:this,{options:n,tooltip:o,element:s}=e;clearTimeout(e.timer),e.timer=setTimeout(()=>{if(fe(o,n.container)){if(s.dispatchEvent(Ln),Ln.defaultPrevented)return;r(o,"show"),n.animation?i(o,()=>Mn(e)):Mn(e)}},n.delay)}update(t){ve(this,t)}toggle(){const{tooltip:t,options:e}=this;fe(t,e.container)?this.hide():this.show()}enable(){const t=this,{enabled:e}=t;e||(Bn(t,1),t.enabled=!e)}disable(){const t=this,{tooltip:e,options:n,enabled:o}=t;o&&(!fe(e,n.container)&&n.animation?(t.hide(),setTimeout(()=>Bn(t),s(e)+n.delay+17)):Bn(t),t.enabled=!o)}toggleEnabled(){this.enabled?this.disable():this.enable()}dispose(){const t=this,{tooltip:e,options:n}=t;n.animation&&fe(e,n.container)?(n.delay=0,t.hide(),i(e,()=>Sn(t))):Sn(t),super.dispose("Tooltip")}}const jn={Alert:b,Button:C,Carousel:U,Collapse:it,Dropdown:Dt,Modal:te,Offcanvas:pe,Popover:Ie,ScrollSpy:Ye,Tab:pn,Toast:Cn,Tooltip:{component:"Tooltip",selector:xn,constructor:$n}};function Wn(t){const e=t instanceof Element?t:document;Object.keys(jn).forEach(t=>{const{constructor:n,selector:o}=jn[t];var s,i;s=n,i=e.querySelectorAll(o),Array.from(i).forEach(t=>new s(t))})}return document.body?Wn():document.addEventListener("DOMContentLoaded",()=>Wn(),{once:!0}),{Alert:v,Button:T,Carousel:G,Collapse:st,Dropdown:St,Modal:_t,Offcanvas:ue,Popover:Be,ScrollSpy:Xe,Tab:un,Toast:Tn,Tooltip:$n,initCallback:Wn,Version:"3.0.15-alpha2"}})); |
@@ -1,2 +0,2 @@ | ||
// Native JavaScript for Bootstrap v3.0.15-alpha1 | 2021 © dnp_theme | MIT-License | ||
var t="webkitTransition"in document.head.style?"webkitTransitionEnd":"transitionend",e="webkitTransition"in document.head.style||"transition"in document.head.style,i="webkitTransition"in document.head.style?"webkitTransitionDuration":"transitionDuration",n="webkitTransition"in document.head.style?"webkitTransitionProperty":"transitionProperty";function a(t){var a=getComputedStyle(t),o=a[n],s=a[i],l=s.includes("ms")?1:1e3,c=e&&o&&"none"!==o?parseFloat(s)*l:0;return Number.isNaN(c)?0:c}function o(e,i){var n=0,o=new Event(t),s=a(e);s?(e.addEventListener(t,(function a(o){o.target===e&&(i.apply(e,[o]),e.removeEventListener(t,a),n=1)})),setTimeout((function(){n||e.dispatchEvent(o)}),s+17)):i.apply(e,[o])}function s(t,e){var i=e&&e instanceof Element?e:document;return t instanceof Element?t:i.querySelector(t)}function l(t,e,i){var n=new CustomEvent(t+".bs."+e,{cancelable:!0});return void 0!==i&&Object.keys(i).forEach((function(t){Object.defineProperty(n,t,{value:i[t]})})),n}function c(t){this&&this.dispatchEvent(t)}function r(t){var e,i,n=this,a=l("close","alert"),r=l("closed","alert");function d(t){e[t?"addEventListener":"removeEventListener"]("click",u,!1)}function u(t){i=t&&t.target.closest(".alert"),(e=s('[data-dismiss="alert"]',i))&&i&&(e===t.target||e.contains(t.target))&&n.close()}function m(){d(),i.parentNode.removeChild(i),c.call(i,r)}n.close=function(){if(i&&e&&i.classList.contains("show")){if(c.call(i,a),a.defaultPrevented)return;n.dispose(),i.classList.remove("show"),i.classList.contains("fade")?o(i,m):m()}},n.dispose=function(){d(),delete e.Alert},e=s(t),i=e.closest(".alert"),e.Alert&&e.Alert.dispose(),e.Alert||d(1),n.element=e,e.Alert=n}function d(t){var e,i,n=l("change","button");function a(t){var a=t.target,o=a.closest("LABEL"),s=null;"LABEL"===a.tagName?s=a:o&&(s=o);var l=s&&s.getElementsByTagName("INPUT")[0];if(l){if(c.call(l,n),c.call(e,n),"checkbox"===l.type){if(n.defaultPrevented)return;l.checked?(s.classList.remove("active"),l.getAttribute("checked"),l.removeAttribute("checked"),l.checked=!1):(s.classList.add("active"),l.getAttribute("checked"),l.setAttribute("checked","checked"),l.checked=!0),e.toggled||(e.toggled=!0)}if("radio"===l.type&&!e.toggled){if(n.defaultPrevented)return;(!l.checked||0===t.screenX&&0===t.screenY)&&(s.classList.add("active"),s.classList.add("focus"),l.setAttribute("checked","checked"),l.checked=!0,e.toggled=!0,Array.from(i).forEach((function(t){var e=t.getElementsByTagName("INPUT")[0];t!==s&&t.classList.contains("active")&&(c.call(e,n),t.classList.remove("active"),e.removeAttribute("checked"),e.checked=!1)})))}setTimeout((function(){e.toggled=!1}),50)}}function o(t){32===(t.which||t.keyCode)&&t.target===document.activeElement&&a(t)}function r(t){32===(t.which||t.keyCode)&&t.preventDefault()}function d(t){if("INPUT"===t.target.tagName){var e="focusin"===t.type?"add":"remove";t.target.closest(".btn").classList[e]("focus")}}function u(t){var i=t?"addEventListener":"removeEventListener";e[i]("click",a,!1),e[i]("keyup",o,!1),e[i]("keydown",r,!1),e[i]("focusin",d,!1),e[i]("focusout",d,!1)}this.dispose=function(){u(),delete e.Button},(e=s(t)).Button&&e.Button.dispose(),(i=e.getElementsByClassName("btn")).length&&(e.Button||u(1),e.toggled=!1,e.Button=this,Array.from(i).forEach((function(t){var e=s("input:checked",t);!t.classList.contains("active")&&e&&t.classList.add("active"),t.classList.contains("active")&&!e&&t.classList.remove("active")})))}var u="onmouseleave"in document?["mouseenter","mouseleave"]:["mouseover","mouseout"],m=!!function(){var t=!1;try{var e=Object.defineProperty({},"passive",{get:function(){return t=!0}});document.addEventListener("DOMContentLoaded",(function t(){document.removeEventListener("DOMContentLoaded",t,e)}),e)}catch(t){throw Error("Passive events are not supported")}return t}()&&{passive:!0};function f(t){return t.offsetHeight}function h(t,e){var i,n,r,d,h,g,p,v,L,b,y,w,A,T=e||{},E=this;function k(){!1===g.interval||d.classList.contains("paused")||(d.classList.add("paused"),h.isSliding||(clearInterval(h.timer),h.timer=null))}function x(){!1!==g.interval&&d.classList.contains("paused")&&(d.classList.remove("paused"),h.isSliding||(clearInterval(h.timer),h.timer=null,E.cycle()))}function C(t){if(t.preventDefault(),!h.isSliding){var e=t.target;e&&!e.classList.contains("active")&&e.getAttribute("data-slide-to")&&(h.index=+e.getAttribute("data-slide-to"),E.slideTo(h.index))}}function N(t){if(t.preventDefault(),!h.isSliding){var e=t.currentTarget||t.srcElement;e===y?h.index+=1:e===b&&(h.index-=1),E.slideTo(h.index)}}function P(t){var e=t.which;if(!h.isSliding){switch(e){case 39:h.index+=1;break;case 37:h.index-=1;break;default:return}E.slideTo(h.index)}}function H(t){var e=t?"addEventListener":"removeEventListener";g.pause&&g.interval&&(d[e](u[0],k,!1),d[e](u[1],x,!1),d[e]("touchstart",k,m),d[e]("touchend",x,m)),g.touch&&L.length>1&&d[e]("touchstart",B,m),y&&y[e]("click",N,!1),b&&b[e]("click",N,!1),w&&w[e]("click",C,!1),g.keyboard&&window[e]("keydown",P,!1)}function S(t){var e=t?"addEventListener":"removeEventListener";d[e]("touchmove",M,m),d[e]("touchend",I,m)}function B(t){h.isTouch||(h.touchPosition.startX=t.changedTouches[0].pageX,d.contains(t.target)&&(h.isTouch=!0,S(1)))}function M(t){h.isTouch?(h.touchPosition.currentX=t.changedTouches[0].pageX,"touchmove"===t.type&&t.changedTouches.length>1&&t.preventDefault()):t.preventDefault()}function I(t){if(h.isTouch&&!h.isSliding&&(h.touchPosition.endX=h.touchPosition.currentX||t.changedTouches[0].pageX,h.isTouch)){if((!d.contains(t.target)||!d.contains(t.relatedTarget))&&Math.abs(h.touchPosition.startX-h.touchPosition.endX)<75)return;h.touchPosition.currentX<h.touchPosition.startX?h.index+=1:h.touchPosition.currentX>h.touchPosition.startX&&(h.index-=1),h.isTouch=!1,E.slideTo(h.index),S()}}function D(t){Array.from(A).forEach((function(t){return t.classList.remove("active")})),A[t]&&A[t].classList.add("active")}function X(t){if(h.touchPosition){var e=h.index,i=t&&t.target!==L[e]?1e3*t.elapsedTime+100:20,n=E.getActiveIndex(),a="left"===h.direction?"next":"prev";h.isSliding&&setTimeout((function(){h.touchPosition&&(h.isSliding=!1,L[e].classList.add("active"),L[n].classList.remove("active"),L[e].classList.remove("carousel-item-"+a),L[e].classList.remove("carousel-item-"+h.direction),L[n].classList.remove("carousel-item-"+h.direction),c.call(d,v),document.hidden||!g.interval||d.classList.contains("paused")||E.cycle())}),i)}}if(E.cycle=function(){h.timer&&(clearInterval(h.timer),h.timer=null),h.timer=setInterval((function(){var t=h.index||E.getActiveIndex();(function(t){var e=t.getBoundingClientRect(),i=window.innerHeight||document.documentElement.clientHeight;return e.top<=i&&e.bottom>=0})(d)&&(t+=1,E.slideTo(t))}),g.interval)},E.slideTo=function(t){if(!h.isSliding){var e=E.getActiveIndex(),i=t;if(e!==i){e<i||0===e&&i===L.length-1?h.direction="left":(e>i||e===L.length-1&&0===i)&&(h.direction="right"),i<0?i=L.length-1:i>=L.length&&(i=0);var n="left"===h.direction?"next":"prev",s={relatedTarget:L[i],direction:h.direction,from:e,to:i};p=l("slide","carousel",s),v=l("slid","carousel",s),c.call(d,p),p.defaultPrevented||(h.index=i,h.isSliding=!0,clearInterval(h.timer),h.timer=null,D(i),a(L[i])&&d.classList.contains("slide")?(L[i].classList.add("carousel-item-"+n),f(L[i]),L[i].classList.add("carousel-item-"+h.direction),L[e].classList.add("carousel-item-"+h.direction),o(L[i],X)):(L[i].classList.add("active"),f(L[i]),L[e].classList.remove("active"),setTimeout((function(){h.isSliding=!1,g.interval&&d&&!d.classList.contains("paused")&&E.cycle(),c.call(d,v)}),100)))}}},E.getActiveIndex=function(){return Array.from(L).indexOf(d.getElementsByClassName("carousel-item active")[0])||0},E.dispose=function(){var t=["left","right","prev","next"];Array.from(L).forEach((function(e,i){e.classList.contains("active")&&D(i),t.forEach((function(t){return e.classList.remove("carousel-item-"+t)}))})),clearInterval(h.timer),H(),h={},g={},delete d.Carousel},(d=s(t)).Carousel&&d.Carousel.dispose(),L=d.getElementsByClassName("carousel-item"),i=d.getElementsByClassName("carousel-control-prev"),b=i[0],n=d.getElementsByClassName("carousel-control-next"),y=n[0],r=d.getElementsByClassName("carousel-indicators"),w=r[0],A=w&&w.getElementsByTagName("LI")||[],!(L.length<2)){var O=d.getAttribute("data-interval"),R="false"===O?0:+O,W="false"===d.getAttribute("data-touch")?0:1,j="hover"===d.getAttribute("data-pause")||!1,z="true"===d.getAttribute("data-keyboard")||!1,U=T.interval,q=T.touch;(g={}).keyboard=!0===T.keyboard||z,g.pause=!("hover"!==T.pause&&!j)&&"hover",g.touch=q||W,g.interval=5e3,"number"==typeof U?g.interval=U:!1===U||0===R||!1===R?g.interval=0:Number.isNaN(R)||(g.interval=R),E.getActiveIndex()<0&&(L.length&&L[0].classList.add("active"),A.length&&D(0)),(h={}).direction="left",h.index=0,h.timer=null,h.isSliding=!1,h.isTouch=!1,h.touchPosition={startX:0,currentX:0,endX:0},H(1),g.interval&&E.cycle(),d.Carousel=E}}function g(t,e){var i,n,a,r,d,u,m,h=e||{},g=this,p=null,v=null;function L(t,e){c.call(t,u),u.defaultPrevented||(t.isAnimating=!0,t.style.height=t.scrollHeight+"px",t.classList.remove("collapse"),t.classList.remove("show"),t.classList.add("collapsing"),f(t),t.style.height="0px",o(t,(function(){t.isAnimating=!1,t.setAttribute("aria-expanded","false"),e.setAttribute("aria-expanded","false"),t.classList.remove("collapsing"),t.classList.add("collapse"),t.style.height="",c.call(t,m)})))}g.toggle=function(t){(t&&"A"===t.target.tagName||"A"===i.tagName)&&t.preventDefault(),(i.contains(t.target)||t.target===i)&&(v.classList.contains("show")?g.hide():g.show())},g.hide=function(){v.isAnimating||(L(v,i),i.classList.add("collapsed"))},g.show=function(){var t,e,l;p&&(t=p.getElementsByClassName("collapse show"),n=t[0],a=n&&(s('[data-target="#'+n.id+'"]',p)||s('[href="#'+n.id+'"]',p))),v.isAnimating||(a&&n!==v&&(L(n,a),a.classList.add("collapsed")),e=v,l=i,c.call(e,r),r.defaultPrevented||(e.isAnimating=!0,e.classList.add("collapsing"),e.classList.remove("collapse"),e.style.height=e.scrollHeight+"px",o(e,(function(){e.isAnimating=!1,e.setAttribute("aria-expanded","true"),l.setAttribute("aria-expanded","true"),e.classList.remove("collapsing"),e.classList.add("collapse"),e.classList.add("show"),e.style.height="",c.call(e,d)}))),i.classList.remove("collapsed"))},g.dispose=function(){i.removeEventListener("click",g.toggle,!1),delete i.Collapse},(i=s(t)).Collapse&&i.Collapse.dispose();var b=i.getAttribute("data-parent");r=l("show","collapse"),d=l("shown","collapse"),u=l("hide","collapse"),m=l("hidden","collapse"),null!==(v=s(h.target||i.getAttribute("data-target")||i.getAttribute("href")))&&(v.isAnimating=!1),p=i.closest(h.parent||b),i.Collapse||i.addEventListener("click",g.toggle,!1),i.Collapse=g}function p(t){t.focus()}function v(t,e){var i,n,a,o,r,d,u,m,f=this,h=null,g=[];function v(t){(t.href&&"#"===t.href.slice(-1)||t.parentNode&&t.parentNode.href&&"#"===t.parentNode.href.slice(-1))&&this.preventDefault()}function L(){var t=i.open?"addEventListener":"removeEventListener";document[t]("click",b,!1),document[t]("keydown",w,!1),document[t]("keyup",A,!1),document[t]("focus",b,!1)}function b(t){var e=t.target;if(e.getAttribute){var n=e&&e.getAttribute("data-toggle")||e.parentNode&&e.parentNode.getAttribute&&e.parentNode.getAttribute("data-toggle");("focus"!==t.type||e!==i&&e!==u&&!u.contains(e))&&(e!==u&&!u.contains(e)||!m&&!n)&&(h=e===i||i.contains(e)?i:null,f.hide(),v.call(t,e))}}function y(t){h=i,f.show(),v.call(t,t.target)}function w(t){var e=t.which||t.keyCode;38!==e&&40!==e||t.preventDefault()}function A(t){var e=t.which||t.keyCode,n=document.activeElement,a=n===i,o=u.contains(n),s=n.parentNode===u||n.parentNode.parentNode===u,l=g.indexOf(n);s&&(a?l=0:38===e?l=l>1?l-1:0:40===e&&(l=l<g.length-1?l+1:l),g[l]&&p(g[l])),(g.length&&s||!g.length&&(o||a)||!o)&&i.open&&27===e&&(f.toggle(),h=null)}f.show=function(){n=l("show","dropdown",{relatedTarget:h}),c.call(d,n),n.defaultPrevented||(u.classList.add("show"),d.classList.add("show"),i.setAttribute("aria-expanded",!0),i.open=!0,i.removeEventListener("click",y,!1),setTimeout((function(){p(u.getElementsByTagName("INPUT")[0]||i),L(),a=l("shown","dropdown",{relatedTarget:h}),c.call(d,a)}),1))},f.hide=function(){o=l("hide","dropdown",{relatedTarget:h}),c.call(d,o),o.defaultPrevented||(u.classList.remove("show"),d.classList.remove("show"),i.setAttribute("aria-expanded",!1),i.open=!1,L(),p(i),setTimeout((function(){i.Dropdown&&i.addEventListener("click",y,!1)}),1),r=l("hidden","dropdown",{relatedTarget:h}),c.call(d,r))},f.toggle=function(){d.classList.contains("show")&&i.open?f.hide():f.show()},f.dispose=function(){d.classList.contains("show")&&i.open&&f.hide(),i.removeEventListener("click",y,!1),delete i.Dropdown},(i=s(t)).Dropdown&&i.Dropdown.dispose(),d=i.parentNode,u=s(".dropdown-menu",d),Array.from(u.children).forEach((function(t){t.children.length&&"A"===t.children[0].tagName&&g.push(t.children[0]),"A"===t.tagName&&g.push(t)})),i.Dropdown||("tabindex"in u||u.setAttribute("tabindex","0"),i.addEventListener("click",y,!1)),m=!0===e||"true"===i.getAttribute("data-persist")||!1,i.open=!1,i.Dropdown=f}function L(t,e){var i,n,r,d,u,h,g,v,L,b,y=e||{},w=this,A=null,T={};function E(){var t=document.body.classList.contains("modal-open"),e=parseInt(getComputedStyle(document.body).paddingRight,10),i=document.documentElement.clientHeight,a=document.documentElement.scrollHeight,o=document.body.clientHeight,s=document.body.scrollHeight,l=i!==a||o!==s,c=n.clientHeight!==n.scrollHeight;g=function(){var t=document.createElement("div");t.className="modal-scrollbar-measure",document.body.appendChild(t);var e=t.offsetWidth-t.clientWidth;return document.body.removeChild(t),e}(),n.style.paddingRight=!c&&g?g+"px":"",document.body.style.paddingRight=c||l?e+(t?0:g)+"px":"",b.length&&b.forEach((function(e){var i=getComputedStyle(e).paddingRight;e.style.paddingRight=c||l?parseInt(i,10)+(t?0:g)+"px":parseInt(i,10)+"px"}))}function k(){(v=s(".modal-backdrop"))&&!document.getElementsByClassName("modal show")[0]&&(document.body.removeChild(v),v=null),null===v&&(document.body.classList.remove("modal-open"),document.body.style.paddingRight="",n.style.paddingRight="",b.length&&b.forEach((function(t){t.style.paddingRight=""})))}function x(t){var e=t?"addEventListener":"removeEventListener";window[e]("resize",w.update,m),n[e]("click",B,!1),document[e]("keydown",S,!1)}function C(){n.style.display="block",E(),document.getElementsByClassName("modal show")[0]||document.body.classList.add("modal-open"),n.classList.add("show"),n.setAttribute("aria-hidden",!1),n.classList.contains("fade")?o(n,N):N()}function N(){p(n),n.isAnimating=!1,x(1),d=l("shown","modal",{relatedTarget:A}),c.call(n,d)}function P(t){n.style.display="",i&&p(i),v=s(".modal-backdrop"),1!==t&&v&&v.classList.contains("show")&&!document.getElementsByClassName("modal show")[0]?(v.classList.remove("show"),o(v,k)):k(),x(),n.isAnimating=!1,h=l("hidden","modal"),c.call(n,h)}function H(t){if(!n.isAnimating){var e=t.target,a="#"+n.getAttribute("id"),o=e.getAttribute("data-target")||e.getAttribute("href"),s=i.getAttribute("data-target")||i.getAttribute("href");!n.classList.contains("show")&&(e===i&&o===a||i.contains(e)&&s===a)&&(n.modalTrigger=i,A=i,w.show(),t.preventDefault())}}function S(t){var e=t.which;!n.isAnimating&&T.keyboard&&27===e&&n.classList.contains("show")&&w.hide()}function B(t){if(!n.isAnimating){var e=t.target,i="modal"===e.getAttribute("data-dismiss"),a=e.closest('[data-dismiss="modal"]');n.classList.contains("show")&&(a||i||e===n&&"static"!==T.backdrop)&&(w.hide(),A=null,t.preventDefault())}}w.toggle=function(){n.classList.contains("show")?w.hide():w.show()},w.show=function(){if(!(n.classList.contains("show")&&n.isAnimating||(r=l("show","modal",{relatedTarget:A}),c.call(n,r),r.defaultPrevented))){n.isAnimating=!0;var t,e=document.getElementsByClassName("modal show")[0];e&&e!==n&&(e.modalTrigger&&e.modalTrigger.Modal.hide(),e.Modal&&e.Modal.hide()),T.backdrop&&(t=document.createElement("div"),null===(v=s(".modal-backdrop"))&&(t.setAttribute("class","modal-backdrop"+(T.animation?" fade":"")),v=t,document.body.appendChild(v)),v=v),!v||e||v.classList.contains("show")||(f(v),L=a(v),v.classList.add("show")),e?C():setTimeout(C,v&&L?L:0)}},w.hide=function(t){n.classList.contains("show")&&(u=l("hide","modal"),c.call(n,u),u.defaultPrevented||(n.isAnimating=!0,n.classList.remove("show"),n.setAttribute("aria-hidden",!0),n.classList.contains("fade")&&1!==t?o(n,P):P()))},w.setContent=function(t){s(".modal-content",n).innerHTML=t},w.update=function(){n.classList.contains("show")&&E()},w.dispose=function(){w.hide(1),i?(i.removeEventListener("click",H,!1),delete i.Modal):delete n.Modal},i=s(t);var M=s(i.getAttribute("data-target")||i.getAttribute("href"));n=i.classList.contains("modal")?i:M,b=Array.from(document.getElementsByClassName("fixed-top")).concat(Array.from(document.getElementsByClassName("fixed-bottom"))),i.classList.contains("modal")&&(i=null),i&&i.Modal&&i.Modal.dispose(),n&&n.Modal&&n.Modal.dispose(),T.keyboard=!(!1===y.keyboard||"false"===n.getAttribute("data-keyboard")),T.backdrop="static"!==y.backdrop&&"static"!==n.getAttribute("data-backdrop")||"static",T.backdrop=!1!==y.backdrop&&"false"!==n.getAttribute("data-backdrop")&&T.backdrop,T.animation=!!n.classList.contains("fade"),T.content=y.content,n.isAnimating=!1,i&&!i.Modal&&i.addEventListener("click",H,!1),T.content&&w.setContent(T.content.trim()),i?(n.modalTrigger=i,i.Modal=w):n.Modal=w}var b="mousedown";function y(){return{y:window.pageYOffset||document.documentElement.scrollTop,x:window.pageXOffset||document.documentElement.scrollLeft}}function w(t,e,i,n){var a,o,s,l,c=e.offsetWidth,r=e.offsetHeight,d=document.documentElement.clientWidth||document.body.clientWidth,u=document.documentElement.clientHeight||document.body.clientHeight,m=t.getBoundingClientRect(),f=n===document.body?y():{x:n.offsetLeft+n.scrollLeft,y:n.offsetTop+n.scrollTop},h=m.right-m.left,g=m.bottom-m.top,p=e.classList.contains("popover"),v=e.getElementsByClassName("arrow")[0],L=m.top+g/2-r/2<0,b=m.left+h/2-c/2<0,w=m.left+c/2+h/2>=d,A=m.top+r/2+g/2>=u,T=m.top-r<0,E=m.left-c<0,k=m.top+r+g>=u,x=m.left+c+h>=d,C=i;C="right"===(C="left"===(C="bottom"===(C="top"===(C=("left"===C||"right"===C)&&E&&x?"top":C)&&T?"bottom":C)&&k?"top":C)&&E?"right":C)&&x?"left":C,-1===e.className.indexOf(C)&&(e.className=e.className.replace(/\b(top|bottom|left|right)+/,C));var N=v.offsetWidth,P=v.offsetHeight;"left"===C||"right"===C?(o="left"===C?m.left+f.x-c-(p?N:0):m.left+f.x+h,L?(a=m.top+f.y,s=g/2-N):A?(a=m.top+f.y-r+g,s=r-g/2-N):(a=m.top+f.y-r/2+g/2,s=r/2-(p?.9*P:P/2))):"top"!==C&&"bottom"!==C||(a="top"===C?m.top+f.y-r-(p?P:0):m.top+f.y+g,b?(o=0,l=m.left+h/2-N):w?(o=d-1.01*c,l=c-(d-m.left)+h/2-N/2):(o=m.left+f.x-c/2+h/2,l=c/2-(p?N:N/2))),e.style.top=a+"px",e.style.left=o+"px",s&&(v.style.top=s+"px"),l&&(v.style.left=l+"px")}function A(t,e){var i,n,a,r,d,f,h,g,p,v,L=e||{},y=this,A=null,T=0,E=/(iPhone|iPod|iPad)/.test(navigator.userAgent),k={};function x(t){null!==A&&t.target===s(".close",A)&&y.hide()}function C(){return{0:L.title||n.getAttribute("data-title")||null,1:L.content||n.getAttribute("data-content")||null}}function N(){null===A&&n.focus()}function P(t){var e=t?"addEventListener":"removeEventListener";"hover"===k.trigger?(n[e](b,y.show),n[e](u[0],y.show),k.dismissible||n[e](u[1],y.hide)):"click"===k.trigger?n[e](k.trigger,y.toggle):"focus"===k.trigger&&(E&&n[e]("click",N,!1),n[e](k.trigger,y.toggle))}function H(t){A&&A.contains(t.target)||t.target===n||n.contains(t.target)||y.hide()}function S(t){var e=t?"addEventListener":"removeEventListener";k.dismissible?document[e]("click",x,!1):("focus"===k.trigger&&n[e]("blur",y.hide),"hover"===k.trigger&&document[e]("touchstart",H,m)),window[e]("resize",y.hide,m)}function B(){S(1),c.call(n,g)}function M(){S(),k.container.removeChild(A),T=null,A=null,c.call(n,v)}y.toggle=function(){null===A?y.show():y.hide()},y.show=function(){clearTimeout(T),T=setTimeout((function(){if(null===A){if(c.call(n,h),h.defaultPrevented)return;!function(){var t;t=C(),a=t[0],r=(r=t[1])?r.trim():null,A=document.createElement("div");var e=document.createElement("div");if(e.classList.add("arrow"),A.appendChild(e),null!==r&&null===k.template){if(A.setAttribute("role","tooltip"),null!==a){var i=document.createElement("h3");i.classList.add("popover-header"),i.innerHTML=k.dismissible?a+f:a,A.appendChild(i)}var n=document.createElement("div");n.classList.add("popover-body"),n.innerHTML=k.dismissible&&null===a?r+f:r,A.appendChild(n)}else{var o=document.createElement("div");o.innerHTML=k.template.trim(),A.className=o.firstChild.className,A.innerHTML=o.firstChild.innerHTML;var l=s(".popover-header",A),c=s(".popover-body",A);a&&l&&(l.innerHTML=a.trim()),r&&c&&(c.innerHTML=r.trim())}k.container.appendChild(A),A.style.display="block",A.classList.contains("popover")||A.classList.add("popover"),A.classList.contains(k.animation)||A.classList.add(k.animation),A.classList.contains(d)||A.classList.add(d)}(),w(n,A,k.placement,k.container),A.classList.contains("show")||A.classList.add("show"),k.animation?o(A,B):B()}}),20)},y.hide=function(){clearTimeout(T),T=setTimeout((function(){if(A&&null!==A&&A.classList.contains("show")){if(c.call(n,p),p.defaultPrevented)return;A.classList.remove("show"),k.animation?o(A,M):M()}}),k.delay)},y.dispose=function(){y.hide(),P(),delete n.Popover},(n=s(t)).Popover&&n.Popover.dispose();var I=n.getAttribute("data-trigger"),D=n.getAttribute("data-animation"),X=n.getAttribute("data-placement"),O=n.getAttribute("data-dismissible"),R=n.getAttribute("data-delay"),W=n.getAttribute("data-container");f='<button type="button" class="close">×</button>',h=l("show","popover"),g=l("shown","popover"),p=l("hide","popover"),v=l("hidden","popover");var j=s(L.container),z=s(W),U=n.closest(".modal"),q=n.closest(".fixed-top"),Y=n.closest(".fixed-bottom");k.template=L.template?L.template:null,k.trigger=L.trigger?L.trigger:I||"hover",k.animation=L.animation&&"fade"!==L.animation?L.animation:D||"fade",k.placement=L.placement?L.placement:X||"top",k.delay=parseInt(L.delay||R,10)||200,k.dismissible=!(!L.dismissible&&"true"!==O),k.container=j||z||q||Y||U||document.body,d="bs-popover-"+k.placement,i=C(),a=i[0],((r=i[1])||k.template)&&(n.Popover||P(1),n.Popover=y)}function T(t,e){var i,n,a,o,r,d=e||{},u=this,f={};function h(){var t,e,l;(a=o.getElementsByTagName("A"),n.scrollTop=n.isWindow?y().y:i.scrollTop,n.length!==a.length||p()!==n.scrollHeight)&&(n.items=[],n.offsets=[],n.scrollHeight=p(),n.maxScroll=n.scrollHeight-(n.isWindow?window.innerHeight:i.getBoundingClientRect().height),Array.from(a).forEach((function(i){t=i.getAttribute("href"),(e=t&&"#"===t.charAt(0)&&"#"!==t.slice(-1)&&s(t))&&(n.items.push(i),l=e.getBoundingClientRect(),n.offsets.push((n.isWindow?l.top+n.scrollTop:e.offsetTop)-f.offset))})),n.length=n.items.length)}function g(t){var e=t?"addEventListener":"removeEventListener";r[e]("scroll",u.refresh,m),window[e]("resize",u.refresh,m)}function p(){return r.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)}function v(){Array.from(a).map((function(t){return t.classList.contains("active")&&t.classList.remove("active")}))}function L(t){var e,a=t;v(),n.activeItem=a,a.classList.add("active");for(var o=[];a.parentNode!==document.body;)((e=(a=a.parentNode).classList).contains("dropdown-menu")||e.contains("nav"))&&o.push(a);o.forEach((function(t){var e=t.previousElementSibling;e&&!e.classList.contains("active")&&e.classList.add("active")})),c.call(i,l("activate","scrollspy",{relatedTarget:n.activeItem}))}u.refresh=function(){if(h(),n.scrollTop>=n.maxScroll){var t=n.items[n.length-1];n.activeItem!==t&&L(t)}else{if(n.activeItem&&n.scrollTop<n.offsets[0]&&n.offsets[0]>0)return n.activeItem=null,void v();for(var e=n.length;e>-1;)n.activeItem!==n.items[e]&&n.scrollTop>=n.offsets[e]&&(void 0===n.offsets[e+1]||n.scrollTop<n.offsets[e+1])&&L(n.items[e]),e-=1}},u.dispose=function(){g(),delete i.ScrollSpy},(i=s(t)).ScrollSpy&&i.ScrollSpy.dispose();var b=i.getAttribute("data-target"),w=i.getAttribute("data-offset");o=s(d.target||b),r=i.clientHeight<i.scrollHeight?i:window,o&&(f.offset=+(d.offset||w)||10,(n={}).length=0,n.items=[],n.offsets=[],n.isWindow=r===window,n.activeItem=null,n.scrollHeight=0,n.maxScroll=0,i.ScrollSpy||g(1),u.refresh(),i.ScrollSpy=u)}function E(t,i){var n,a,r,d,u,m,h,g,p,v,L,b,y,w,A=i||{},T=this,E=!1;function k(){E.style.height="",E.classList.remove("collapsing"),a.isAnimating=!1}function x(){E?y?k():setTimeout((function(){E.style.height=w+"px",f(E),o(E,k)}),50):a.isAnimating=!1,u=l("shown","tab",{relatedTarget:p}),c.call(g,u)}function C(){E&&(v.style.float="left",L.style.float="left",b=v.scrollHeight),d=l("show","tab",{relatedTarget:p}),h=l("hidden","tab",{relatedTarget:g}),c.call(g,d),d.defaultPrevented||(L.classList.add("active"),v.classList.remove("active"),E&&(w=L.scrollHeight,y=w===b,E.classList.add("collapsing"),E.style.height=b+"px",f(E),v.style.float="",L.style.float=""),L.classList.contains("fade")?setTimeout((function(){L.classList.add("show"),o(L,x)}),20):x(),c.call(p,h))}function N(){var t=a.getElementsByClassName("active");return 1!==t.length||t[0].parentNode.classList.contains("dropdown")?t.length>1&&(p=t[t.length-1]):p=t[0],p}function P(){return s(N().getAttribute("href"))}function H(t){t.preventDefault(),g=t.currentTarget,a.isAnimating||T.show()}T.show=function(){if(!(g=g||n).classList.contains("active")){if(L=s(g.getAttribute("href")),p=N(),v=P(),m=l("hide","tab",{relatedTarget:g}),c.call(p,m),m.defaultPrevented)return;a.isAnimating=!0,p.classList.remove("active"),p.setAttribute("aria-selected","false"),g.classList.add("active"),g.setAttribute("aria-selected","true"),r&&(n.parentNode.classList.contains("dropdown-menu")?r.classList.contains("active")||r.classList.add("active"):r.classList.contains("active")&&r.classList.remove("active")),v.classList.contains("fade")?(v.classList.remove("show"),o(v,C)):C()}},T.dispose=function(){n.removeEventListener("click",H,!1),delete n.Tab},(n=s(t)).Tab&&n.Tab.dispose();var S=n.getAttribute("data-height");a=n.closest(".nav"),r=a&&s(".dropdown-toggle",a);var B=!(!e||!1===A.height||"false"===S);a.isAnimating=!1,n.Tab||n.addEventListener("click",H,!1),B&&(E=P().parentNode),n.Tab=T}function k(t,e){var i,n,a,r,d,u,m=e||{},h=this,g=0,p={};function v(){n.classList.remove("showing"),n.classList.add("show"),c.call(n,d),p.autohide&&h.hide()}function L(){n.classList.add("hide"),c.call(n,u)}function b(){n.classList.remove("show"),p.animation?o(n,L):L()}function y(){clearTimeout(g),i.removeEventListener("click",h.hide,!1),delete i.Toast}h.show=function(){if(n&&!n.classList.contains("show")){if(c.call(n,a),a.defaultPrevented)return;p.animation&&n.classList.add("fade"),n.classList.remove("hide"),f(n),n.classList.add("showing"),p.animation?o(n,v):v()}},h.hide=function(t){if(n&&n.classList.contains("show")){if(c.call(n,r),r.defaultPrevented)return;t?b():g=setTimeout(b,p.delay)}},h.dispose=function(){p.animation?o(n,y):y()},(i=s(t)).Toast&&i.Toast.dispose(),n=i.closest(".toast");var w=i.getAttribute("data-animation"),A=i.getAttribute("data-autohide"),T=i.getAttribute("data-delay");a=l("show","toast"),r=l("hide","toast"),d=l("shown","toast"),u=l("hidden","toast"),p.animation=!1===m.animation||"false"===w?0:1,p.autohide=!1===m.autohide||"false"===A?0:1,p.delay=parseInt(m.delay||T,10)||500,i.Toast||i.addEventListener("click",h.hide,!1),i.Toast=h}function x(t,e){var i,n,a,r,d,f,h,g=e||{},p=this,v=null,L=0,y={};function A(){return i.getAttribute("title")||i.getAttribute("data-title")||i.getAttribute("data-original-title")}function T(t){v&&v.contains(t.target)||t.target===i||i.contains(t.target)||p.hide()}function E(t){var e=t?"addEventListener":"removeEventListener";document[e]("touchstart",T,m),window[e]("resize",p.hide,m)}function k(){E(1),c.call(i,d)}function x(){E(),y.container.removeChild(v),v=null,L=null,c.call(i,h)}function C(t){var e=t?"addEventListener":"removeEventListener";i[e](b,p.show,!1),i[e](u[0],p.show,!1),i[e](u[1],p.hide,!1)}p.show=function(){clearTimeout(L),L=setTimeout((function(){if(null===v){if(c.call(i,r),r.defaultPrevented)return;!1!==function(){if(n=A()){if(v=document.createElement("div"),y.template){var t=document.createElement("div");t.innerHTML=y.template.trim(),v.className=t.firstChild.className,v.innerHTML=t.firstChild.innerHTML,s(".tooltip-inner",v).innerHTML=n.trim()}else{var e=document.createElement("div");e.classList.add("arrow"),v.appendChild(e);var i=document.createElement("div");i.classList.add("tooltip-inner"),v.appendChild(i),i.innerHTML=n}v.style.left="0",v.style.top="0",v.setAttribute("role","tooltip"),v.classList.contains("tooltip")||v.classList.add("tooltip"),v.classList.contains(y.animation)||v.classList.add(y.animation),v.classList.contains(a)||v.classList.add(a),y.container.appendChild(v)}}()&&(w(i,v,y.placement,y.container),v.classList.contains("show")||v.classList.add("show"),y.animation?o(v,k):k())}}),20)},p.hide=function(){clearTimeout(L),L=setTimeout((function(){if(v&&v.classList.contains("show")){if(c.call(i,f),f.defaultPrevented)return;v.classList.remove("show"),y.animation?o(v,x):x()}}),y.delay)},p.toggle=function(){v?p.hide():p.show()},p.dispose=function(){C(),p.hide(),i.setAttribute("title",i.getAttribute("data-original-title")),i.removeAttribute("data-original-title"),delete i.Tooltip},(i=s(t)).Tooltip&&i.Tooltip.dispose();var N=i.getAttribute("data-animation"),P=i.getAttribute("data-placement"),H=i.getAttribute("data-delay"),S=i.getAttribute("data-container"),B=s(g.container),M=s(S),I=i.closest(".modal");r=l("show","tooltip"),d=l("shown","tooltip"),f=l("hide","tooltip"),h=l("hidden","tooltip");var D=i.closest(".fixed-top"),X=i.closest(".fixed-bottom");y.animation=g.animation&&"fade"!==g.animation?g.animation:N||"fade",y.placement=g.placement?g.placement:P||"top",y.template=g.template?g.template:null,y.delay=parseInt(g.delay||H,10)||200,y.container=B||M||D||X||I||document.body,a="bs-tooltip-"+y.placement,(n=A())&&(i.Tooltip||(i.setAttribute("data-original-title",n),i.removeAttribute("title"),C(1)),i.Tooltip=p)}var C={};function N(t){var e=t instanceof Element?t:document;Object.keys(C).forEach((function(t){var i,n;i=C[t][0],n=e.querySelectorAll(C[t][1]),Array.from(n).map((function(t){return new i(t)}))}))}C.Alert=[r,'[data-dismiss="alert"]'],C.Button=[d,'[data-toggle="buttons"]'],C.Carousel=[h,'[data-ride="carousel"]'],C.Collapse=[g,'[data-toggle="collapse"]'],C.Dropdown=[v,'[data-toggle="dropdown"]'],C.Modal=[L,'[data-toggle="modal"]'],C.Popover=[A,'[data-toggle="popover"],[data-tip="popover"]'],C.ScrollSpy=[T,'[data-spy="scroll"]'],C.Tab=[E,'[data-toggle="tab"]'],C.Toast=[k,'[data-dismiss="toast"]'],C.Tooltip=[x,'[data-toggle="tooltip"],[data-tip="tooltip"]'],document.body?N():document.addEventListener("DOMContentLoaded",(function t(){N(),document.removeEventListener("DOMContentLoaded",t,!1)}),!1);var P={Alert:r,Button:d,Carousel:h,Collapse:g,Dropdown:v,Modal:L,Popover:A,ScrollSpy:T,Tab:E,Toast:k,Tooltip:x,initCallback:N,removeDataAPI:function(t){var e=t instanceof Element?t:document;Object.keys(C).forEach((function(t){var i,n;i=t,n=e.querySelectorAll(C[t][1]),Array.from(n).map((function(t){return t[i].dispose()}))}))},componentsInit:C,Version:"3.0.15-alpha1"};export default P; | ||
// Native JavaScript for Bootstrap v3.0.15-alpha2 | 2021 © dnp_theme | MIT-License | ||
var t="webkitTransition"in document.head.style?"webkitTransitionEnd":"transitionend",e="webkitTransition"in document.head.style||"transition"in document.head.style,i="webkitTransition"in document.head.style?"webkitTransitionDuration":"transitionDuration",n="webkitTransition"in document.head.style?"webkitTransitionProperty":"transitionProperty";function a(t){var a=getComputedStyle(t),o=a[n],s=a[i],l=s.includes("ms")?1:1e3,c=e&&o&&"none"!==o?parseFloat(s)*l:0;return Number.isNaN(c)?0:c}function o(e,i){var n=0,o=new Event(t),s=a(e);s?(e.addEventListener(t,(function a(o){o.target===e&&(i.apply(e,[o]),e.removeEventListener(t,a),n=1)})),setTimeout((function(){n||e.dispatchEvent(o)}),s+17)):i.apply(e,[o])}function s(t,e){var i=e&&e instanceof Element?e:document;return t instanceof Element?t:i.querySelector(t)}function l(t,e,i){var n=new CustomEvent(t+".bs."+e,{cancelable:!0});return void 0!==i&&Object.keys(i).forEach((function(t){Object.defineProperty(n,t,{value:i[t]})})),n}function c(t){this&&this.dispatchEvent(t)}function r(t){var e,i,n=this,a=l("close","alert"),r=l("closed","alert");function d(t){e[t?"addEventListener":"removeEventListener"]("click",u,!1)}function u(t){i=t&&t.target.closest(".alert"),(e=s('[data-dismiss="alert"]',i))&&i&&(e===t.target||e.contains(t.target))&&n.close()}function m(){d(),i.parentNode.removeChild(i),c.call(i,r)}n.close=function(){if(i&&e&&i.classList.contains("show")){if(c.call(i,a),a.defaultPrevented)return;n.dispose(),i.classList.remove("show"),i.classList.contains("fade")?o(i,m):m()}},n.dispose=function(){d(),delete e.Alert},e=s(t),i=e.closest(".alert"),e.Alert&&e.Alert.dispose(),e.Alert||d(1),n.element=e,e.Alert=n}function d(t){var e,i,n=l("change","button");function a(t){var a=t.target,o=a.closest("LABEL"),s=null;"LABEL"===a.tagName?s=a:o&&(s=o);var l=s&&s.getElementsByTagName("INPUT")[0];if(l){if(c.call(l,n),c.call(e,n),"checkbox"===l.type){if(n.defaultPrevented)return;l.checked?(s.classList.remove("active"),l.getAttribute("checked"),l.removeAttribute("checked"),l.checked=!1):(s.classList.add("active"),l.getAttribute("checked"),l.setAttribute("checked","checked"),l.checked=!0),e.toggled||(e.toggled=!0)}if("radio"===l.type&&!e.toggled){if(n.defaultPrevented)return;(!l.checked||0===t.screenX&&0===t.screenY)&&(s.classList.add("active"),s.classList.add("focus"),l.setAttribute("checked","checked"),l.checked=!0,e.toggled=!0,Array.from(i).forEach((function(t){var e=t.getElementsByTagName("INPUT")[0];t!==s&&t.classList.contains("active")&&(c.call(e,n),t.classList.remove("active"),e.removeAttribute("checked"),e.checked=!1)})))}setTimeout((function(){e.toggled=!1}),50)}}function o(t){32===(t.which||t.keyCode)&&t.target===document.activeElement&&a(t)}function r(t){32===(t.which||t.keyCode)&&t.preventDefault()}function d(t){if("INPUT"===t.target.tagName){var e="focusin"===t.type?"add":"remove";t.target.closest(".btn").classList[e]("focus")}}function u(t){var i=t?"addEventListener":"removeEventListener";e[i]("click",a,!1),e[i]("keyup",o,!1),e[i]("keydown",r,!1),e[i]("focusin",d,!1),e[i]("focusout",d,!1)}this.dispose=function(){u(),delete e.Button},(e=s(t)).Button&&e.Button.dispose(),(i=e.getElementsByClassName("btn")).length&&(e.Button||u(1),e.toggled=!1,e.Button=this,Array.from(i).forEach((function(t){var e=s("input:checked",t);!t.classList.contains("active")&&e&&t.classList.add("active"),t.classList.contains("active")&&!e&&t.classList.remove("active")})))}var u="onmouseleave"in document?["mouseenter","mouseleave"]:["mouseover","mouseout"],m=!!function(){var t=!1;try{var e=Object.defineProperty({},"passive",{get:function(){return t=!0}});document.addEventListener("DOMContentLoaded",(function t(){document.removeEventListener("DOMContentLoaded",t,e)}),e)}catch(t){throw Error("Passive events are not supported")}return t}()&&{passive:!0};function f(t){return t.offsetHeight}function h(t,e){var i,n,r,d,h,g,p,v,L,b,y,w,A,T=e||{},E=this;function k(){!1===g.interval||d.classList.contains("paused")||(d.classList.add("paused"),h.isSliding||(clearInterval(h.timer),h.timer=null))}function x(){!1!==g.interval&&d.classList.contains("paused")&&(d.classList.remove("paused"),h.isSliding||(clearInterval(h.timer),h.timer=null,E.cycle()))}function C(t){if(t.preventDefault(),!h.isSliding){var e=t.target;e&&!e.classList.contains("active")&&e.getAttribute("data-slide-to")&&(h.index=+e.getAttribute("data-slide-to"),E.slideTo(h.index))}}function N(t){if(t.preventDefault(),!h.isSliding){var e=t.currentTarget||t.srcElement;e===y?h.index+=1:e===b&&(h.index-=1),E.slideTo(h.index)}}function P(t){var e=t.which;if(!h.isSliding){switch(e){case 39:h.index+=1;break;case 37:h.index-=1;break;default:return}E.slideTo(h.index)}}function H(t){var e=t?"addEventListener":"removeEventListener";g.pause&&g.interval&&(d[e](u[0],k,!1),d[e](u[1],x,!1),d[e]("touchstart",k,m),d[e]("touchend",x,m)),g.touch&&L.length>1&&d[e]("touchstart",B,m),y&&y[e]("click",N,!1),b&&b[e]("click",N,!1),w&&w[e]("click",C,!1),g.keyboard&&window[e]("keydown",P,!1)}function S(t){var e=t?"addEventListener":"removeEventListener";d[e]("touchmove",M,m),d[e]("touchend",I,m)}function B(t){h.isTouch||(h.touchPosition.startX=t.changedTouches[0].pageX,d.contains(t.target)&&(h.isTouch=!0,S(1)))}function M(t){h.isTouch?(h.touchPosition.currentX=t.changedTouches[0].pageX,"touchmove"===t.type&&t.changedTouches.length>1&&t.preventDefault()):t.preventDefault()}function I(t){if(h.isTouch&&!h.isSliding&&(h.touchPosition.endX=h.touchPosition.currentX||t.changedTouches[0].pageX,h.isTouch)){if((!d.contains(t.target)||!d.contains(t.relatedTarget))&&Math.abs(h.touchPosition.startX-h.touchPosition.endX)<75)return;h.touchPosition.currentX<h.touchPosition.startX?h.index+=1:h.touchPosition.currentX>h.touchPosition.startX&&(h.index-=1),h.isTouch=!1,E.slideTo(h.index),S()}}function D(t){Array.from(A).forEach((function(t){return t.classList.remove("active")})),A[t]&&A[t].classList.add("active")}function X(t){if(h.touchPosition){var e=h.index,i=t&&t.target!==L[e]?1e3*t.elapsedTime+100:20,n=E.getActiveIndex(),a="left"===h.direction?"next":"prev";h.isSliding&&setTimeout((function(){h.touchPosition&&(h.isSliding=!1,L[e].classList.add("active"),L[n].classList.remove("active"),L[e].classList.remove("carousel-item-"+a),L[e].classList.remove("carousel-item-"+h.direction),L[n].classList.remove("carousel-item-"+h.direction),c.call(d,v),document.hidden||!g.interval||d.classList.contains("paused")||E.cycle())}),i)}}if(E.cycle=function(){h.timer&&(clearInterval(h.timer),h.timer=null),h.timer=setInterval((function(){var t=h.index||E.getActiveIndex();(function(t){var e=t.getBoundingClientRect(),i=window.innerHeight||document.documentElement.clientHeight;return e.top<=i&&e.bottom>=0})(d)&&(t+=1,E.slideTo(t))}),g.interval)},E.slideTo=function(t){if(!h.isSliding){var e=E.getActiveIndex(),i=t;if(e!==i){e<i||0===e&&i===L.length-1?h.direction="left":(e>i||e===L.length-1&&0===i)&&(h.direction="right"),i<0?i=L.length-1:i>=L.length&&(i=0);var n="left"===h.direction?"next":"prev",s={relatedTarget:L[i],direction:h.direction,from:e,to:i};p=l("slide","carousel",s),v=l("slid","carousel",s),c.call(d,p),p.defaultPrevented||(h.index=i,h.isSliding=!0,clearInterval(h.timer),h.timer=null,D(i),a(L[i])&&d.classList.contains("slide")?(L[i].classList.add("carousel-item-"+n),f(L[i]),L[i].classList.add("carousel-item-"+h.direction),L[e].classList.add("carousel-item-"+h.direction),o(L[i],X)):(L[i].classList.add("active"),f(L[i]),L[e].classList.remove("active"),setTimeout((function(){h.isSliding=!1,g.interval&&d&&!d.classList.contains("paused")&&E.cycle(),c.call(d,v)}),100)))}}},E.getActiveIndex=function(){return Array.from(L).indexOf(d.getElementsByClassName("carousel-item active")[0])||0},E.dispose=function(){var t=["left","right","prev","next"];Array.from(L).forEach((function(e,i){e.classList.contains("active")&&D(i),t.forEach((function(t){return e.classList.remove("carousel-item-"+t)}))})),clearInterval(h.timer),H(),h={},g={},delete d.Carousel},(d=s(t)).Carousel&&d.Carousel.dispose(),L=d.getElementsByClassName("carousel-item"),i=d.getElementsByClassName("carousel-control-prev"),b=i[0],n=d.getElementsByClassName("carousel-control-next"),y=n[0],r=d.getElementsByClassName("carousel-indicators"),w=r[0],A=w&&w.getElementsByTagName("LI")||[],!(L.length<2)){var O=d.getAttribute("data-interval"),R="false"===O?0:+O,W="false"===d.getAttribute("data-touch")?0:1,j="hover"===d.getAttribute("data-pause")||!1,z="true"===d.getAttribute("data-keyboard")||!1,U=T.interval,q=T.touch;(g={}).keyboard=!0===T.keyboard||z,g.pause=!("hover"!==T.pause&&!j)&&"hover",g.touch=q||W,g.interval=5e3,"number"==typeof U?g.interval=U:!1===U||0===R||!1===R?g.interval=0:Number.isNaN(R)||(g.interval=R),E.getActiveIndex()<0&&(L.length&&L[0].classList.add("active"),A.length&&D(0)),(h={}).direction="left",h.index=0,h.timer=null,h.isSliding=!1,h.isTouch=!1,h.touchPosition={startX:0,currentX:0,endX:0},H(1),g.interval&&E.cycle(),d.Carousel=E}}function g(t,e){var i,n,a,r,d,u,m,h=e||{},g=this,p=null,v=null;function L(t,e){c.call(t,u),u.defaultPrevented||(t.isAnimating=!0,t.style.height=t.scrollHeight+"px",t.classList.remove("collapse"),t.classList.remove("show"),t.classList.add("collapsing"),f(t),t.style.height="0px",o(t,(function(){t.isAnimating=!1,t.setAttribute("aria-expanded","false"),e.setAttribute("aria-expanded","false"),t.classList.remove("collapsing"),t.classList.add("collapse"),t.style.height="",c.call(t,m)})))}g.toggle=function(t){(t&&"A"===t.target.tagName||"A"===i.tagName)&&t.preventDefault(),(i.contains(t.target)||t.target===i)&&(v.classList.contains("show")?g.hide():g.show())},g.hide=function(){v.isAnimating||(L(v,i),i.classList.add("collapsed"))},g.show=function(){var t,e,l;p&&(t=p.getElementsByClassName("collapse show"),n=t[0],a=n&&(s('[data-target="#'+n.id+'"]',p)||s('[href="#'+n.id+'"]',p))),v.isAnimating||(a&&n!==v&&(L(n,a),a.classList.add("collapsed")),e=v,l=i,c.call(e,r),r.defaultPrevented||(e.isAnimating=!0,e.classList.add("collapsing"),e.classList.remove("collapse"),e.style.height=e.scrollHeight+"px",o(e,(function(){e.isAnimating=!1,e.setAttribute("aria-expanded","true"),l.setAttribute("aria-expanded","true"),e.classList.remove("collapsing"),e.classList.add("collapse"),e.classList.add("show"),e.style.height="",c.call(e,d)}))),i.classList.remove("collapsed"))},g.dispose=function(){i.removeEventListener("click",g.toggle,!1),delete i.Collapse},(i=s(t)).Collapse&&i.Collapse.dispose();var b=i.getAttribute("data-parent");r=l("show","collapse"),d=l("shown","collapse"),u=l("hide","collapse"),m=l("hidden","collapse"),null!==(v=s(h.target||i.getAttribute("data-target")||i.getAttribute("href")))&&(v.isAnimating=!1),p=i.closest(h.parent||b),i.Collapse||i.addEventListener("click",g.toggle,!1),i.Collapse=g}function p(t){t.focus()}function v(t,e){var i,n,a,o,r,d,u,m,f=this,h=null,g=[];function v(t){(t.href&&"#"===t.href.slice(-1)||t.parentNode&&t.parentNode.href&&"#"===t.parentNode.href.slice(-1))&&this.preventDefault()}function L(){var t=i.open?"addEventListener":"removeEventListener";document[t]("click",b,!1),document[t]("keydown",w,!1),document[t]("keyup",A,!1),document[t]("focus",b,!1)}function b(t){var e=t.target;if(e.getAttribute){var n=e&&e.getAttribute("data-toggle")||e.parentNode&&e.parentNode.getAttribute&&e.parentNode.getAttribute("data-toggle");("focus"!==t.type||e!==i&&e!==u&&!u.contains(e))&&(e!==u&&!u.contains(e)||!m&&!n)&&(h=e===i||i.contains(e)?i:null,f.hide(),v.call(t,e))}}function y(t){h=i,f.show(),v.call(t,t.target)}function w(t){var e=t.which||t.keyCode;38!==e&&40!==e||t.preventDefault()}function A(t){var e=t.which||t.keyCode,n=document.activeElement,a=n===i,o=u.contains(n),s=n.parentNode===u||n.parentNode.parentNode===u,l=g.indexOf(n);s&&(a?l=0:38===e?l=l>1?l-1:0:40===e&&(l=l<g.length-1?l+1:l),g[l]&&p(g[l])),(g.length&&s||!g.length&&(o||a)||!o)&&i.open&&27===e&&(f.toggle(),h=null)}f.show=function(){n=l("show","dropdown",{relatedTarget:h}),c.call(d,n),n.defaultPrevented||(u.classList.add("show"),d.classList.add("show"),i.setAttribute("aria-expanded",!0),i.open=!0,i.removeEventListener("click",y,!1),setTimeout((function(){p(u.getElementsByTagName("INPUT")[0]||i),L(),a=l("shown","dropdown",{relatedTarget:h}),c.call(d,a)}),1))},f.hide=function(){o=l("hide","dropdown",{relatedTarget:h}),c.call(d,o),o.defaultPrevented||(u.classList.remove("show"),d.classList.remove("show"),i.setAttribute("aria-expanded",!1),i.open=!1,L(),p(i),setTimeout((function(){i.Dropdown&&i.addEventListener("click",y,!1)}),1),r=l("hidden","dropdown",{relatedTarget:h}),c.call(d,r))},f.toggle=function(){d.classList.contains("show")&&i.open?f.hide():f.show()},f.dispose=function(){d.classList.contains("show")&&i.open&&f.hide(),i.removeEventListener("click",y,!1),delete i.Dropdown},(i=s(t)).Dropdown&&i.Dropdown.dispose(),d=i.parentNode,u=s(".dropdown-menu",d),Array.from(u.children).forEach((function(t){t.children.length&&"A"===t.children[0].tagName&&g.push(t.children[0]),"A"===t.tagName&&g.push(t)})),i.Dropdown||("tabindex"in u||u.setAttribute("tabindex","0"),i.addEventListener("click",y,!1)),m=!0===e||"true"===i.getAttribute("data-persist")||!1,i.open=!1,i.Dropdown=f}function L(t,e){var i,n,r,d,u,h,g,v,L,b,y=e||{},w=this,A=null,T={};function E(){var t=document.body.classList.contains("modal-open"),e=parseInt(getComputedStyle(document.body).paddingRight,10),i=document.documentElement.clientHeight,a=document.documentElement.scrollHeight,o=document.body.clientHeight,s=document.body.scrollHeight,l=i!==a||o!==s,c=n.clientHeight!==n.scrollHeight;g=function(){var t=document.createElement("div");t.className="modal-scrollbar-measure",document.body.appendChild(t);var e=t.offsetWidth-t.clientWidth;return document.body.removeChild(t),e}(),n.style.paddingRight=!c&&g?g+"px":"",document.body.style.paddingRight=c||l?e+(t?0:g)+"px":"",b.length&&b.forEach((function(e){var i=getComputedStyle(e).paddingRight;e.style.paddingRight=c||l?parseInt(i,10)+(t?0:g)+"px":parseInt(i,10)+"px"}))}function k(){(v=s(".modal-backdrop"))&&!document.getElementsByClassName("modal show")[0]&&(document.body.removeChild(v),v=null),null===v&&(document.body.classList.remove("modal-open"),document.body.style.paddingRight="",n.style.paddingRight="",b.length&&b.forEach((function(t){t.style.paddingRight=""})))}function x(t){var e=t?"addEventListener":"removeEventListener";window[e]("resize",w.update,m),n[e]("click",B,!1),document[e]("keydown",S,!1)}function C(){n.style.display="block",E(),document.getElementsByClassName("modal show")[0]||document.body.classList.add("modal-open"),n.classList.add("show"),n.setAttribute("aria-hidden",!1),n.classList.contains("fade")?o(n,N):N()}function N(){p(n),n.isAnimating=!1,x(1),d=l("shown","modal",{relatedTarget:A}),c.call(n,d)}function P(t){n.style.display="",i&&p(i),v=s(".modal-backdrop"),1!==t&&v&&v.classList.contains("show")&&!document.getElementsByClassName("modal show")[0]?(v.classList.remove("show"),o(v,k)):k(),x(),n.isAnimating=!1,h=l("hidden","modal"),c.call(n,h)}function H(t){if(!n.isAnimating){var e=t.target,a="#"+n.getAttribute("id"),o=e.getAttribute("data-target")||e.getAttribute("href"),s=i.getAttribute("data-target")||i.getAttribute("href");!n.classList.contains("show")&&(e===i&&o===a||i.contains(e)&&s===a)&&(n.modalTrigger=i,A=i,w.show(),t.preventDefault())}}function S(t){var e=t.which;!n.isAnimating&&T.keyboard&&27===e&&n.classList.contains("show")&&w.hide()}function B(t){if(!n.isAnimating){var e=t.target,i="modal"===e.getAttribute("data-dismiss"),a=e.closest('[data-dismiss="modal"]');n.classList.contains("show")&&(a||i||e===n&&"static"!==T.backdrop)&&(w.hide(),A=null,t.preventDefault())}}w.toggle=function(){n.classList.contains("show")?w.hide():w.show()},w.show=function(){if(!(n.classList.contains("show")&&n.isAnimating||(r=l("show","modal",{relatedTarget:A}),c.call(n,r),r.defaultPrevented))){n.isAnimating=!0;var t,e=document.getElementsByClassName("modal show")[0];e&&e!==n&&(e.modalTrigger&&e.modalTrigger.Modal.hide(),e.Modal&&e.Modal.hide()),T.backdrop&&(t=document.createElement("div"),null===(v=s(".modal-backdrop"))&&(t.setAttribute("class","modal-backdrop"+(T.animation?" fade":"")),v=t,document.body.appendChild(v)),v=v),!v||e||v.classList.contains("show")||(f(v),L=a(v),v.classList.add("show")),e?C():setTimeout(C,v&&L?L:0)}},w.hide=function(t){n.classList.contains("show")&&(u=l("hide","modal"),c.call(n,u),u.defaultPrevented||(n.isAnimating=!0,n.classList.remove("show"),n.setAttribute("aria-hidden",!0),n.classList.contains("fade")&&1!==t?o(n,P):P()))},w.setContent=function(t){s(".modal-content",n).innerHTML=t},w.update=function(){n.classList.contains("show")&&E()},w.dispose=function(){w.hide(1),i?(i.removeEventListener("click",H,!1),delete i.Modal):delete n.Modal},i=s(t);var M=s(i.getAttribute("data-target")||i.getAttribute("href"));n=i.classList.contains("modal")?i:M,b=Array.from(document.getElementsByClassName("fixed-top")).concat(Array.from(document.getElementsByClassName("fixed-bottom"))),i.classList.contains("modal")&&(i=null),i&&i.Modal&&i.Modal.dispose(),n&&n.Modal&&n.Modal.dispose(),T.keyboard=!(!1===y.keyboard||"false"===n.getAttribute("data-keyboard")),T.backdrop="static"!==y.backdrop&&"static"!==n.getAttribute("data-backdrop")||"static",T.backdrop=!1!==y.backdrop&&"false"!==n.getAttribute("data-backdrop")&&T.backdrop,T.animation=!!n.classList.contains("fade"),T.content=y.content,n.isAnimating=!1,i&&!i.Modal&&i.addEventListener("click",H,!1),T.content&&w.setContent(T.content.trim()),i?(n.modalTrigger=i,i.Modal=w):n.Modal=w}var b="mousedown";function y(){return{y:window.pageYOffset||document.documentElement.scrollTop,x:window.pageXOffset||document.documentElement.scrollLeft}}function w(t,e,i,n){var a,o,s,l,c=e.offsetWidth,r=e.offsetHeight,d=document.documentElement.clientWidth||document.body.clientWidth,u=document.documentElement.clientHeight||document.body.clientHeight,m=t.getBoundingClientRect(),f=n===document.body?y():{x:n.offsetLeft+n.scrollLeft,y:n.offsetTop+n.scrollTop},h=m.right-m.left,g=m.bottom-m.top,p=e.classList.contains("popover"),v=e.getElementsByClassName("arrow")[0],L=m.top+g/2-r/2<0,b=m.left+h/2-c/2<0,w=m.left+c/2+h/2>=d,A=m.top+r/2+g/2>=u,T=m.top-r<0,E=m.left-c<0,k=m.top+r+g>=u,x=m.left+c+h>=d,C=i;C="right"===(C="left"===(C="bottom"===(C="top"===(C=("left"===C||"right"===C)&&E&&x?"top":C)&&T?"bottom":C)&&k?"top":C)&&E?"right":C)&&x?"left":C,-1===e.className.indexOf(C)&&(e.className=e.className.replace(/\b(top|bottom|left|right)+/,C));var N=v.offsetWidth,P=v.offsetHeight;"left"===C||"right"===C?(o="left"===C?m.left+f.x-c-(p?N:0):m.left+f.x+h,L?(a=m.top+f.y,s=g/2-N):A?(a=m.top+f.y-r+g,s=r-g/2-N):(a=m.top+f.y-r/2+g/2,s=r/2-(p?.9*P:P/2))):"top"!==C&&"bottom"!==C||(a="top"===C?m.top+f.y-r-(p?P:0):m.top+f.y+g,b?(o=0,l=m.left+h/2-N):w?(o=d-1.01*c,l=c-(d-m.left)+h/2-N/2):(o=m.left+f.x-c/2+h/2,l=c/2-(p?N:N/2))),e.style.top=a+"px",e.style.left=o+"px",s&&(v.style.top=s+"px"),l&&(v.style.left=l+"px")}function A(t,e){var i,n,a,r,d,f,h,g,p,v,L=e||{},y=this,A=null,T=0,E=/(iPhone|iPod|iPad)/.test(navigator.userAgent),k={};function x(t){null!==A&&t.target===s(".close",A)&&y.hide()}function C(){return{0:L.title||n.getAttribute("data-title")||null,1:L.content||n.getAttribute("data-content")||null}}function N(){null===A&&n.focus()}function P(t){var e=t?"addEventListener":"removeEventListener";"hover"===k.trigger?(n[e](b,y.show),n[e](u[0],y.show),k.dismissible||n[e](u[1],y.hide)):"click"===k.trigger?n[e](k.trigger,y.toggle):"focus"===k.trigger&&(E&&n[e]("click",N,!1),n[e](k.trigger,y.toggle))}function H(t){A&&A.contains(t.target)||t.target===n||n.contains(t.target)||y.hide()}function S(t){var e=t?"addEventListener":"removeEventListener";k.dismissible?document[e]("click",x,!1):("focus"===k.trigger&&n[e]("blur",y.hide),"hover"===k.trigger&&document[e]("touchstart",H,m)),window[e]("resize",y.hide,m)}function B(){S(1),c.call(n,g)}function M(){S(),k.container.removeChild(A),T=null,A=null,c.call(n,v)}y.toggle=function(){null===A?y.show():y.hide()},y.show=function(){clearTimeout(T),T=setTimeout((function(){if(null===A){if(c.call(n,h),h.defaultPrevented)return;!function(){var t;t=C(),a=t[0],r=(r=t[1])?r.trim():null,A=document.createElement("div");var e=document.createElement("div");if(e.classList.add("arrow"),A.appendChild(e),null!==r&&null===k.template){if(A.setAttribute("role","tooltip"),null!==a){var i=document.createElement("h3");i.classList.add("popover-header"),i.innerHTML=k.dismissible?a+f:a,A.appendChild(i)}var n=document.createElement("div");n.classList.add("popover-body"),n.innerHTML=k.dismissible&&null===a?r+f:r,A.appendChild(n)}else{var o=document.createElement("div");o.innerHTML=k.template.trim(),A.className=o.firstChild.className,A.innerHTML=o.firstChild.innerHTML;var l=s(".popover-header",A),c=s(".popover-body",A);a&&l&&(l.innerHTML=a.trim()),r&&c&&(c.innerHTML=r.trim())}k.container.appendChild(A),A.style.display="block",A.classList.contains("popover")||A.classList.add("popover"),A.classList.contains(k.animation)||A.classList.add(k.animation),A.classList.contains(d)||A.classList.add(d)}(),w(n,A,k.placement,k.container),A.classList.contains("show")||A.classList.add("show"),k.animation?o(A,B):B()}}),20)},y.hide=function(){clearTimeout(T),T=setTimeout((function(){if(A&&null!==A&&A.classList.contains("show")){if(c.call(n,p),p.defaultPrevented)return;A.classList.remove("show"),k.animation?o(A,M):M()}}),k.delay)},y.dispose=function(){y.hide(),P(),delete n.Popover},(n=s(t)).Popover&&n.Popover.dispose();var I=n.getAttribute("data-trigger"),D=n.getAttribute("data-animation"),X=n.getAttribute("data-placement"),O=n.getAttribute("data-dismissible"),R=n.getAttribute("data-delay"),W=n.getAttribute("data-container");f='<button type="button" class="close">×</button>',h=l("show","popover"),g=l("shown","popover"),p=l("hide","popover"),v=l("hidden","popover");var j=s(L.container),z=s(W),U=n.closest(".modal"),q=n.closest(".fixed-top"),Y=n.closest(".fixed-bottom");k.template=L.template?L.template:null,k.trigger=L.trigger?L.trigger:I||"hover",k.animation=L.animation&&"fade"!==L.animation?L.animation:D||"fade",k.placement=L.placement?L.placement:X||"top",k.delay=parseInt(L.delay||R,10)||200,k.dismissible=!(!L.dismissible&&"true"!==O),k.container=j||z||q||Y||U||document.body,d="bs-popover-"+k.placement,i=C(),a=i[0],((r=i[1])||k.template)&&(n.Popover||P(1),n.Popover=y)}function T(t,e){var i,n,a,o,r,d=e||{},u=this,f={};function h(){var t,e,l;(a=o.getElementsByTagName("A"),n.scrollTop=n.isWindow?y().y:i.scrollTop,n.length!==a.length||p()!==n.scrollHeight)&&(n.items=[],n.offsets=[],n.scrollHeight=p(),n.maxScroll=n.scrollHeight-(n.isWindow?window.innerHeight:i.getBoundingClientRect().height),Array.from(a).forEach((function(i){t=i.getAttribute("href"),(e=t&&"#"===t.charAt(0)&&"#"!==t.slice(-1)&&s(t))&&(n.items.push(i),l=e.getBoundingClientRect(),n.offsets.push((n.isWindow?l.top+n.scrollTop:e.offsetTop)-f.offset))})),n.length=n.items.length)}function g(t){var e=t?"addEventListener":"removeEventListener";r[e]("scroll",u.refresh,m),window[e]("resize",u.refresh,m)}function p(){return r.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)}function v(){Array.from(a).map((function(t){return t.classList.contains("active")&&t.classList.remove("active")}))}function L(t){var e,a=t;v(),n.activeItem=a,a.classList.add("active");for(var o=[];a.parentNode!==document.body;)((e=(a=a.parentNode).classList).contains("dropdown-menu")||e.contains("nav"))&&o.push(a);o.forEach((function(t){var e=t.previousElementSibling;e&&!e.classList.contains("active")&&e.classList.add("active")})),c.call(i,l("activate","scrollspy",{relatedTarget:n.activeItem}))}u.refresh=function(){if(h(),n.scrollTop>=n.maxScroll){var t=n.items[n.length-1];n.activeItem!==t&&L(t)}else{if(n.activeItem&&n.scrollTop<n.offsets[0]&&n.offsets[0]>0)return n.activeItem=null,void v();for(var e=n.length;e>-1;)n.activeItem!==n.items[e]&&n.scrollTop>=n.offsets[e]&&(void 0===n.offsets[e+1]||n.scrollTop<n.offsets[e+1])&&L(n.items[e]),e-=1}},u.dispose=function(){g(),delete i.ScrollSpy},(i=s(t)).ScrollSpy&&i.ScrollSpy.dispose();var b=i.getAttribute("data-target"),w=i.getAttribute("data-offset");o=s(d.target||b),r=i.clientHeight<i.scrollHeight?i:window,o&&(f.offset=+(d.offset||w)||10,(n={}).length=0,n.items=[],n.offsets=[],n.isWindow=r===window,n.activeItem=null,n.scrollHeight=0,n.maxScroll=0,i.ScrollSpy||g(1),u.refresh(),i.ScrollSpy=u)}function E(t,i){var n,a,r,d,u,m,h,g,p,v,L,b,y,w,A=i||{},T=this,E=!1;function k(){E.style.height="",E.classList.remove("collapsing"),a.isAnimating=!1}function x(){E?y?k():setTimeout((function(){E.style.height=w+"px",f(E),o(E,k)}),50):a.isAnimating=!1,u=l("shown","tab",{relatedTarget:p}),c.call(g,u)}function C(){E&&(v.style.float="left",L.style.float="left",b=v.scrollHeight),d=l("show","tab",{relatedTarget:p}),h=l("hidden","tab",{relatedTarget:g}),c.call(g,d),d.defaultPrevented||(L.classList.add("active"),v.classList.remove("active"),E&&(w=L.scrollHeight,y=w===b,E.classList.add("collapsing"),E.style.height=b+"px",f(E),v.style.float="",L.style.float=""),L.classList.contains("fade")?setTimeout((function(){L.classList.add("show"),o(L,x)}),20):x(),c.call(p,h))}function N(){var t=a.getElementsByClassName("active");return 1!==t.length||t[0].parentNode.classList.contains("dropdown")?t.length>1&&(p=t[t.length-1]):p=t[0],p}function P(){return s(N().getAttribute("href"))}function H(t){t.preventDefault(),g=t.currentTarget,a.isAnimating||T.show()}T.show=function(){if(!(g=g||n).classList.contains("active")){if(L=s(g.getAttribute("href")),p=N(),v=P(),m=l("hide","tab",{relatedTarget:g}),c.call(p,m),m.defaultPrevented)return;a.isAnimating=!0,p.classList.remove("active"),p.setAttribute("aria-selected","false"),g.classList.add("active"),g.setAttribute("aria-selected","true"),r&&(n.parentNode.classList.contains("dropdown-menu")?r.classList.contains("active")||r.classList.add("active"):r.classList.contains("active")&&r.classList.remove("active")),v.classList.contains("fade")?(v.classList.remove("show"),o(v,C)):C()}},T.dispose=function(){n.removeEventListener("click",H,!1),delete n.Tab},(n=s(t)).Tab&&n.Tab.dispose();var S=n.getAttribute("data-height");a=n.closest(".nav"),r=a&&s(".dropdown-toggle",a);var B=!(!e||!1===A.height||"false"===S);a.isAnimating=!1,n.Tab||n.addEventListener("click",H,!1),B&&(E=P().parentNode),n.Tab=T}function k(t,e){var i,n,a,r,d,u,m=e||{},h=this,g=0,p={};function v(){n.classList.remove("showing"),n.classList.add("show"),c.call(n,d),p.autohide&&h.hide()}function L(){n.classList.add("hide"),c.call(n,u)}function b(){n.classList.remove("show"),p.animation?o(n,L):L()}function y(){clearTimeout(g),i.removeEventListener("click",h.hide,!1),delete i.Toast}h.show=function(){if(n&&!n.classList.contains("show")){if(c.call(n,a),a.defaultPrevented)return;p.animation&&n.classList.add("fade"),n.classList.remove("hide"),f(n),n.classList.add("showing"),p.animation?o(n,v):v()}},h.hide=function(t){if(n&&n.classList.contains("show")){if(c.call(n,r),r.defaultPrevented)return;t?b():g=setTimeout(b,p.delay)}},h.dispose=function(){p.animation?o(n,y):y()},(i=s(t)).Toast&&i.Toast.dispose(),n=i.closest(".toast");var w=i.getAttribute("data-animation"),A=i.getAttribute("data-autohide"),T=i.getAttribute("data-delay");a=l("show","toast"),r=l("hide","toast"),d=l("shown","toast"),u=l("hidden","toast"),p.animation=!1===m.animation||"false"===w?0:1,p.autohide=!1===m.autohide||"false"===A?0:1,p.delay=parseInt(m.delay||T,10)||500,i.Toast||i.addEventListener("click",h.hide,!1),i.Toast=h}function x(t,e){var i,n,a,r,d,f,h,g=e||{},p=this,v=null,L=0,y={};function A(){return i.getAttribute("title")||i.getAttribute("data-title")||i.getAttribute("data-original-title")}function T(t){v&&v.contains(t.target)||t.target===i||i.contains(t.target)||p.hide()}function E(t){var e=t?"addEventListener":"removeEventListener";document[e]("touchstart",T,m),window[e]("resize",p.hide,m)}function k(){E(1),c.call(i,d)}function x(){E(),y.container.removeChild(v),v=null,L=null,c.call(i,h)}function C(t){var e=t?"addEventListener":"removeEventListener";i[e](b,p.show,!1),i[e](u[0],p.show,!1),i[e](u[1],p.hide,!1)}p.show=function(){clearTimeout(L),L=setTimeout((function(){if(null===v){if(c.call(i,r),r.defaultPrevented)return;!1!==function(){if(n=A()){if(v=document.createElement("div"),y.template){var t=document.createElement("div");t.innerHTML=y.template.trim(),v.className=t.firstChild.className,v.innerHTML=t.firstChild.innerHTML,s(".tooltip-inner",v).innerHTML=n.trim()}else{var e=document.createElement("div");e.classList.add("arrow"),v.appendChild(e);var i=document.createElement("div");i.classList.add("tooltip-inner"),v.appendChild(i),i.innerHTML=n}v.style.left="0",v.style.top="0",v.setAttribute("role","tooltip"),v.classList.contains("tooltip")||v.classList.add("tooltip"),v.classList.contains(y.animation)||v.classList.add(y.animation),v.classList.contains(a)||v.classList.add(a),y.container.appendChild(v)}}()&&(w(i,v,y.placement,y.container),v.classList.contains("show")||v.classList.add("show"),y.animation?o(v,k):k())}}),20)},p.hide=function(){clearTimeout(L),L=setTimeout((function(){if(v&&v.classList.contains("show")){if(c.call(i,f),f.defaultPrevented)return;v.classList.remove("show"),y.animation?o(v,x):x()}}),y.delay)},p.toggle=function(){v?p.hide():p.show()},p.dispose=function(){C(),p.hide(),i.setAttribute("title",i.getAttribute("data-original-title")),i.removeAttribute("data-original-title"),delete i.Tooltip},(i=s(t)).Tooltip&&i.Tooltip.dispose();var N=i.getAttribute("data-animation"),P=i.getAttribute("data-placement"),H=i.getAttribute("data-delay"),S=i.getAttribute("data-container"),B=s(g.container),M=s(S),I=i.closest(".modal");r=l("show","tooltip"),d=l("shown","tooltip"),f=l("hide","tooltip"),h=l("hidden","tooltip");var D=i.closest(".fixed-top"),X=i.closest(".fixed-bottom");y.animation=g.animation&&"fade"!==g.animation?g.animation:N||"fade",y.placement=g.placement?g.placement:P||"top",y.template=g.template?g.template:null,y.delay=parseInt(g.delay||H,10)||200,y.container=B||M||D||X||I||document.body,a="bs-tooltip-"+y.placement,(n=A())&&(i.Tooltip||(i.setAttribute("data-original-title",n),i.removeAttribute("title"),C(1)),i.Tooltip=p)}var C={};function N(t){var e=t instanceof Element?t:document;Object.keys(C).forEach((function(t){var i,n;i=C[t][0],n=e.querySelectorAll(C[t][1]),Array.from(n).map((function(t){return new i(t)}))}))}C.Alert=[r,'[data-dismiss="alert"]'],C.Button=[d,'[data-toggle="buttons"]'],C.Carousel=[h,'[data-ride="carousel"]'],C.Collapse=[g,'[data-toggle="collapse"]'],C.Dropdown=[v,'[data-toggle="dropdown"]'],C.Modal=[L,'[data-toggle="modal"]'],C.Popover=[A,'[data-toggle="popover"],[data-tip="popover"]'],C.ScrollSpy=[T,'[data-spy="scroll"]'],C.Tab=[E,'[data-toggle="tab"]'],C.Toast=[k,'[data-dismiss="toast"]'],C.Tooltip=[x,'[data-toggle="tooltip"],[data-tip="tooltip"]'],document.body?N():document.addEventListener("DOMContentLoaded",(function t(){N(),document.removeEventListener("DOMContentLoaded",t,!1)}),!1);var P={Alert:r,Button:d,Carousel:h,Collapse:g,Dropdown:v,Modal:L,Popover:A,ScrollSpy:T,Tab:E,Toast:k,Tooltip:x,initCallback:N,removeDataAPI:function(t){var e=t instanceof Element?t:document;Object.keys(C).forEach((function(t){var i,n;i=t,n=e.querySelectorAll(C[t][1]),Array.from(n).map((function(t){return t[i].dispose()}))}))},componentsInit:C,Version:"3.0.15-alpha2"};export default P; |
@@ -1,2 +0,2 @@ | ||
// Native JavaScript for Bootstrap v3.0.15-alpha1 | 2021 © dnp_theme | MIT-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).BSN=e()}(this,(function(){"use strict";var t="webkitTransition"in document.head.style?"webkitTransitionEnd":"transitionend",e="webkitTransition"in document.head.style||"transition"in document.head.style,i="webkitTransition"in document.head.style?"webkitTransitionDuration":"transitionDuration",n="webkitTransition"in document.head.style?"webkitTransitionProperty":"transitionProperty";function a(t){var a=getComputedStyle(t),o=a[n],s=a[i],l=s.includes("ms")?1:1e3,c=e&&o&&"none"!==o?parseFloat(s)*l:0;return Number.isNaN(c)?0:c}function o(e,i){var n=0,o=new Event(t),s=a(e);s?(e.addEventListener(t,(function a(o){o.target===e&&(i.apply(e,[o]),e.removeEventListener(t,a),n=1)})),setTimeout((function(){n||e.dispatchEvent(o)}),s+17)):i.apply(e,[o])}function s(t,e){var i=e&&e instanceof Element?e:document;return t instanceof Element?t:i.querySelector(t)}function l(t,e,i){var n=new CustomEvent(t+".bs."+e,{cancelable:!0});return void 0!==i&&Object.keys(i).forEach((function(t){Object.defineProperty(n,t,{value:i[t]})})),n}function c(t){this&&this.dispatchEvent(t)}function r(t){var e,i,n=this,a=l("close","alert"),r=l("closed","alert");function d(t){e[t?"addEventListener":"removeEventListener"]("click",u,!1)}function u(t){i=t&&t.target.closest(".alert"),(e=s('[data-dismiss="alert"]',i))&&i&&(e===t.target||e.contains(t.target))&&n.close()}function m(){d(),i.parentNode.removeChild(i),c.call(i,r)}n.close=function(){if(i&&e&&i.classList.contains("show")){if(c.call(i,a),a.defaultPrevented)return;n.dispose(),i.classList.remove("show"),i.classList.contains("fade")?o(i,m):m()}},n.dispose=function(){d(),delete e.Alert},e=s(t),i=e.closest(".alert"),e.Alert&&e.Alert.dispose(),e.Alert||d(1),n.element=e,e.Alert=n}function d(t){var e,i,n=l("change","button");function a(t){var a=t.target,o=a.closest("LABEL"),s=null;"LABEL"===a.tagName?s=a:o&&(s=o);var l=s&&s.getElementsByTagName("INPUT")[0];if(l){if(c.call(l,n),c.call(e,n),"checkbox"===l.type){if(n.defaultPrevented)return;l.checked?(s.classList.remove("active"),l.getAttribute("checked"),l.removeAttribute("checked"),l.checked=!1):(s.classList.add("active"),l.getAttribute("checked"),l.setAttribute("checked","checked"),l.checked=!0),e.toggled||(e.toggled=!0)}if("radio"===l.type&&!e.toggled){if(n.defaultPrevented)return;(!l.checked||0===t.screenX&&0===t.screenY)&&(s.classList.add("active"),s.classList.add("focus"),l.setAttribute("checked","checked"),l.checked=!0,e.toggled=!0,Array.from(i).forEach((function(t){var e=t.getElementsByTagName("INPUT")[0];t!==s&&t.classList.contains("active")&&(c.call(e,n),t.classList.remove("active"),e.removeAttribute("checked"),e.checked=!1)})))}setTimeout((function(){e.toggled=!1}),50)}}function o(t){32===(t.which||t.keyCode)&&t.target===document.activeElement&&a(t)}function r(t){32===(t.which||t.keyCode)&&t.preventDefault()}function d(t){if("INPUT"===t.target.tagName){var e="focusin"===t.type?"add":"remove";t.target.closest(".btn").classList[e]("focus")}}function u(t){var i=t?"addEventListener":"removeEventListener";e[i]("click",a,!1),e[i]("keyup",o,!1),e[i]("keydown",r,!1),e[i]("focusin",d,!1),e[i]("focusout",d,!1)}this.dispose=function(){u(),delete e.Button},(e=s(t)).Button&&e.Button.dispose(),(i=e.getElementsByClassName("btn")).length&&(e.Button||u(1),e.toggled=!1,e.Button=this,Array.from(i).forEach((function(t){var e=s("input:checked",t);!t.classList.contains("active")&&e&&t.classList.add("active"),t.classList.contains("active")&&!e&&t.classList.remove("active")})))}var u="onmouseleave"in document?["mouseenter","mouseleave"]:["mouseover","mouseout"],m=!!function(){var t=!1;try{var e=Object.defineProperty({},"passive",{get:function(){return t=!0}});document.addEventListener("DOMContentLoaded",(function t(){document.removeEventListener("DOMContentLoaded",t,e)}),e)}catch(t){throw Error("Passive events are not supported")}return t}()&&{passive:!0};function f(t){return t.offsetHeight}function h(t,e){var i,n,r,d,h,g,p,v,L,b,y,w,A,T=e||{},E=this;function k(){!1===g.interval||d.classList.contains("paused")||(d.classList.add("paused"),h.isSliding||(clearInterval(h.timer),h.timer=null))}function x(){!1!==g.interval&&d.classList.contains("paused")&&(d.classList.remove("paused"),h.isSliding||(clearInterval(h.timer),h.timer=null,E.cycle()))}function C(t){if(t.preventDefault(),!h.isSliding){var e=t.target;e&&!e.classList.contains("active")&&e.getAttribute("data-slide-to")&&(h.index=+e.getAttribute("data-slide-to"),E.slideTo(h.index))}}function N(t){if(t.preventDefault(),!h.isSliding){var e=t.currentTarget||t.srcElement;e===y?h.index+=1:e===b&&(h.index-=1),E.slideTo(h.index)}}function P(t){var e=t.which;if(!h.isSliding){switch(e){case 39:h.index+=1;break;case 37:h.index-=1;break;default:return}E.slideTo(h.index)}}function H(t){var e=t?"addEventListener":"removeEventListener";g.pause&&g.interval&&(d[e](u[0],k,!1),d[e](u[1],x,!1),d[e]("touchstart",k,m),d[e]("touchend",x,m)),g.touch&&L.length>1&&d[e]("touchstart",B,m),y&&y[e]("click",N,!1),b&&b[e]("click",N,!1),w&&w[e]("click",C,!1),g.keyboard&&window[e]("keydown",P,!1)}function S(t){var e=t?"addEventListener":"removeEventListener";d[e]("touchmove",M,m),d[e]("touchend",I,m)}function B(t){h.isTouch||(h.touchPosition.startX=t.changedTouches[0].pageX,d.contains(t.target)&&(h.isTouch=!0,S(1)))}function M(t){h.isTouch?(h.touchPosition.currentX=t.changedTouches[0].pageX,"touchmove"===t.type&&t.changedTouches.length>1&&t.preventDefault()):t.preventDefault()}function I(t){if(h.isTouch&&!h.isSliding&&(h.touchPosition.endX=h.touchPosition.currentX||t.changedTouches[0].pageX,h.isTouch)){if((!d.contains(t.target)||!d.contains(t.relatedTarget))&&Math.abs(h.touchPosition.startX-h.touchPosition.endX)<75)return;h.touchPosition.currentX<h.touchPosition.startX?h.index+=1:h.touchPosition.currentX>h.touchPosition.startX&&(h.index-=1),h.isTouch=!1,E.slideTo(h.index),S()}}function D(t){Array.from(A).forEach((function(t){return t.classList.remove("active")})),A[t]&&A[t].classList.add("active")}function X(t){if(h.touchPosition){var e=h.index,i=t&&t.target!==L[e]?1e3*t.elapsedTime+100:20,n=E.getActiveIndex(),a="left"===h.direction?"next":"prev";h.isSliding&&setTimeout((function(){h.touchPosition&&(h.isSliding=!1,L[e].classList.add("active"),L[n].classList.remove("active"),L[e].classList.remove("carousel-item-"+a),L[e].classList.remove("carousel-item-"+h.direction),L[n].classList.remove("carousel-item-"+h.direction),c.call(d,v),document.hidden||!g.interval||d.classList.contains("paused")||E.cycle())}),i)}}if(E.cycle=function(){h.timer&&(clearInterval(h.timer),h.timer=null),h.timer=setInterval((function(){var t=h.index||E.getActiveIndex();(function(t){var e=t.getBoundingClientRect(),i=window.innerHeight||document.documentElement.clientHeight;return e.top<=i&&e.bottom>=0})(d)&&(t+=1,E.slideTo(t))}),g.interval)},E.slideTo=function(t){if(!h.isSliding){var e=E.getActiveIndex(),i=t;if(e!==i){e<i||0===e&&i===L.length-1?h.direction="left":(e>i||e===L.length-1&&0===i)&&(h.direction="right"),i<0?i=L.length-1:i>=L.length&&(i=0);var n="left"===h.direction?"next":"prev",s={relatedTarget:L[i],direction:h.direction,from:e,to:i};p=l("slide","carousel",s),v=l("slid","carousel",s),c.call(d,p),p.defaultPrevented||(h.index=i,h.isSliding=!0,clearInterval(h.timer),h.timer=null,D(i),a(L[i])&&d.classList.contains("slide")?(L[i].classList.add("carousel-item-"+n),f(L[i]),L[i].classList.add("carousel-item-"+h.direction),L[e].classList.add("carousel-item-"+h.direction),o(L[i],X)):(L[i].classList.add("active"),f(L[i]),L[e].classList.remove("active"),setTimeout((function(){h.isSliding=!1,g.interval&&d&&!d.classList.contains("paused")&&E.cycle(),c.call(d,v)}),100)))}}},E.getActiveIndex=function(){return Array.from(L).indexOf(d.getElementsByClassName("carousel-item active")[0])||0},E.dispose=function(){var t=["left","right","prev","next"];Array.from(L).forEach((function(e,i){e.classList.contains("active")&&D(i),t.forEach((function(t){return e.classList.remove("carousel-item-"+t)}))})),clearInterval(h.timer),H(),h={},g={},delete d.Carousel},(d=s(t)).Carousel&&d.Carousel.dispose(),L=d.getElementsByClassName("carousel-item"),i=d.getElementsByClassName("carousel-control-prev"),b=i[0],n=d.getElementsByClassName("carousel-control-next"),y=n[0],r=d.getElementsByClassName("carousel-indicators"),w=r[0],A=w&&w.getElementsByTagName("LI")||[],!(L.length<2)){var O=d.getAttribute("data-interval"),R="false"===O?0:+O,W="false"===d.getAttribute("data-touch")?0:1,j="hover"===d.getAttribute("data-pause")||!1,z="true"===d.getAttribute("data-keyboard")||!1,U=T.interval,q=T.touch;(g={}).keyboard=!0===T.keyboard||z,g.pause=!("hover"!==T.pause&&!j)&&"hover",g.touch=q||W,g.interval=5e3,"number"==typeof U?g.interval=U:!1===U||0===R||!1===R?g.interval=0:Number.isNaN(R)||(g.interval=R),E.getActiveIndex()<0&&(L.length&&L[0].classList.add("active"),A.length&&D(0)),(h={}).direction="left",h.index=0,h.timer=null,h.isSliding=!1,h.isTouch=!1,h.touchPosition={startX:0,currentX:0,endX:0},H(1),g.interval&&E.cycle(),d.Carousel=E}}function g(t,e){var i,n,a,r,d,u,m,h=e||{},g=this,p=null,v=null;function L(t,e){c.call(t,u),u.defaultPrevented||(t.isAnimating=!0,t.style.height=t.scrollHeight+"px",t.classList.remove("collapse"),t.classList.remove("show"),t.classList.add("collapsing"),f(t),t.style.height="0px",o(t,(function(){t.isAnimating=!1,t.setAttribute("aria-expanded","false"),e.setAttribute("aria-expanded","false"),t.classList.remove("collapsing"),t.classList.add("collapse"),t.style.height="",c.call(t,m)})))}g.toggle=function(t){(t&&"A"===t.target.tagName||"A"===i.tagName)&&t.preventDefault(),(i.contains(t.target)||t.target===i)&&(v.classList.contains("show")?g.hide():g.show())},g.hide=function(){v.isAnimating||(L(v,i),i.classList.add("collapsed"))},g.show=function(){var t,e,l;p&&(t=p.getElementsByClassName("collapse show"),n=t[0],a=n&&(s('[data-target="#'+n.id+'"]',p)||s('[href="#'+n.id+'"]',p))),v.isAnimating||(a&&n!==v&&(L(n,a),a.classList.add("collapsed")),e=v,l=i,c.call(e,r),r.defaultPrevented||(e.isAnimating=!0,e.classList.add("collapsing"),e.classList.remove("collapse"),e.style.height=e.scrollHeight+"px",o(e,(function(){e.isAnimating=!1,e.setAttribute("aria-expanded","true"),l.setAttribute("aria-expanded","true"),e.classList.remove("collapsing"),e.classList.add("collapse"),e.classList.add("show"),e.style.height="",c.call(e,d)}))),i.classList.remove("collapsed"))},g.dispose=function(){i.removeEventListener("click",g.toggle,!1),delete i.Collapse},(i=s(t)).Collapse&&i.Collapse.dispose();var b=i.getAttribute("data-parent");r=l("show","collapse"),d=l("shown","collapse"),u=l("hide","collapse"),m=l("hidden","collapse"),null!==(v=s(h.target||i.getAttribute("data-target")||i.getAttribute("href")))&&(v.isAnimating=!1),p=i.closest(h.parent||b),i.Collapse||i.addEventListener("click",g.toggle,!1),i.Collapse=g}function p(t){t.focus()}function v(t,e){var i,n,a,o,r,d,u,m,f=this,h=null,g=[];function v(t){(t.href&&"#"===t.href.slice(-1)||t.parentNode&&t.parentNode.href&&"#"===t.parentNode.href.slice(-1))&&this.preventDefault()}function L(){var t=i.open?"addEventListener":"removeEventListener";document[t]("click",b,!1),document[t]("keydown",w,!1),document[t]("keyup",A,!1),document[t]("focus",b,!1)}function b(t){var e=t.target;if(e.getAttribute){var n=e&&e.getAttribute("data-toggle")||e.parentNode&&e.parentNode.getAttribute&&e.parentNode.getAttribute("data-toggle");("focus"!==t.type||e!==i&&e!==u&&!u.contains(e))&&(e!==u&&!u.contains(e)||!m&&!n)&&(h=e===i||i.contains(e)?i:null,f.hide(),v.call(t,e))}}function y(t){h=i,f.show(),v.call(t,t.target)}function w(t){var e=t.which||t.keyCode;38!==e&&40!==e||t.preventDefault()}function A(t){var e=t.which||t.keyCode,n=document.activeElement,a=n===i,o=u.contains(n),s=n.parentNode===u||n.parentNode.parentNode===u,l=g.indexOf(n);s&&(a?l=0:38===e?l=l>1?l-1:0:40===e&&(l=l<g.length-1?l+1:l),g[l]&&p(g[l])),(g.length&&s||!g.length&&(o||a)||!o)&&i.open&&27===e&&(f.toggle(),h=null)}f.show=function(){n=l("show","dropdown",{relatedTarget:h}),c.call(d,n),n.defaultPrevented||(u.classList.add("show"),d.classList.add("show"),i.setAttribute("aria-expanded",!0),i.open=!0,i.removeEventListener("click",y,!1),setTimeout((function(){p(u.getElementsByTagName("INPUT")[0]||i),L(),a=l("shown","dropdown",{relatedTarget:h}),c.call(d,a)}),1))},f.hide=function(){o=l("hide","dropdown",{relatedTarget:h}),c.call(d,o),o.defaultPrevented||(u.classList.remove("show"),d.classList.remove("show"),i.setAttribute("aria-expanded",!1),i.open=!1,L(),p(i),setTimeout((function(){i.Dropdown&&i.addEventListener("click",y,!1)}),1),r=l("hidden","dropdown",{relatedTarget:h}),c.call(d,r))},f.toggle=function(){d.classList.contains("show")&&i.open?f.hide():f.show()},f.dispose=function(){d.classList.contains("show")&&i.open&&f.hide(),i.removeEventListener("click",y,!1),delete i.Dropdown},(i=s(t)).Dropdown&&i.Dropdown.dispose(),d=i.parentNode,u=s(".dropdown-menu",d),Array.from(u.children).forEach((function(t){t.children.length&&"A"===t.children[0].tagName&&g.push(t.children[0]),"A"===t.tagName&&g.push(t)})),i.Dropdown||("tabindex"in u||u.setAttribute("tabindex","0"),i.addEventListener("click",y,!1)),m=!0===e||"true"===i.getAttribute("data-persist")||!1,i.open=!1,i.Dropdown=f}function L(t,e){var i,n,r,d,u,h,g,v,L,b,y=e||{},w=this,A=null,T={};function E(){var t=document.body.classList.contains("modal-open"),e=parseInt(getComputedStyle(document.body).paddingRight,10),i=document.documentElement.clientHeight,a=document.documentElement.scrollHeight,o=document.body.clientHeight,s=document.body.scrollHeight,l=i!==a||o!==s,c=n.clientHeight!==n.scrollHeight;g=function(){var t=document.createElement("div");t.className="modal-scrollbar-measure",document.body.appendChild(t);var e=t.offsetWidth-t.clientWidth;return document.body.removeChild(t),e}(),n.style.paddingRight=!c&&g?g+"px":"",document.body.style.paddingRight=c||l?e+(t?0:g)+"px":"",b.length&&b.forEach((function(e){var i=getComputedStyle(e).paddingRight;e.style.paddingRight=c||l?parseInt(i,10)+(t?0:g)+"px":parseInt(i,10)+"px"}))}function k(){(v=s(".modal-backdrop"))&&!document.getElementsByClassName("modal show")[0]&&(document.body.removeChild(v),v=null),null===v&&(document.body.classList.remove("modal-open"),document.body.style.paddingRight="",n.style.paddingRight="",b.length&&b.forEach((function(t){t.style.paddingRight=""})))}function x(t){var e=t?"addEventListener":"removeEventListener";window[e]("resize",w.update,m),n[e]("click",B,!1),document[e]("keydown",S,!1)}function C(){n.style.display="block",E(),document.getElementsByClassName("modal show")[0]||document.body.classList.add("modal-open"),n.classList.add("show"),n.setAttribute("aria-hidden",!1),n.classList.contains("fade")?o(n,N):N()}function N(){p(n),n.isAnimating=!1,x(1),d=l("shown","modal",{relatedTarget:A}),c.call(n,d)}function P(t){n.style.display="",i&&p(i),v=s(".modal-backdrop"),1!==t&&v&&v.classList.contains("show")&&!document.getElementsByClassName("modal show")[0]?(v.classList.remove("show"),o(v,k)):k(),x(),n.isAnimating=!1,h=l("hidden","modal"),c.call(n,h)}function H(t){if(!n.isAnimating){var e=t.target,a="#"+n.getAttribute("id"),o=e.getAttribute("data-target")||e.getAttribute("href"),s=i.getAttribute("data-target")||i.getAttribute("href");!n.classList.contains("show")&&(e===i&&o===a||i.contains(e)&&s===a)&&(n.modalTrigger=i,A=i,w.show(),t.preventDefault())}}function S(t){var e=t.which;!n.isAnimating&&T.keyboard&&27===e&&n.classList.contains("show")&&w.hide()}function B(t){if(!n.isAnimating){var e=t.target,i="modal"===e.getAttribute("data-dismiss"),a=e.closest('[data-dismiss="modal"]');n.classList.contains("show")&&(a||i||e===n&&"static"!==T.backdrop)&&(w.hide(),A=null,t.preventDefault())}}w.toggle=function(){n.classList.contains("show")?w.hide():w.show()},w.show=function(){if(!(n.classList.contains("show")&&n.isAnimating||(r=l("show","modal",{relatedTarget:A}),c.call(n,r),r.defaultPrevented))){n.isAnimating=!0;var t,e=document.getElementsByClassName("modal show")[0];e&&e!==n&&(e.modalTrigger&&e.modalTrigger.Modal.hide(),e.Modal&&e.Modal.hide()),T.backdrop&&(t=document.createElement("div"),null===(v=s(".modal-backdrop"))&&(t.setAttribute("class","modal-backdrop"+(T.animation?" fade":"")),v=t,document.body.appendChild(v)),v=v),!v||e||v.classList.contains("show")||(f(v),L=a(v),v.classList.add("show")),e?C():setTimeout(C,v&&L?L:0)}},w.hide=function(t){n.classList.contains("show")&&(u=l("hide","modal"),c.call(n,u),u.defaultPrevented||(n.isAnimating=!0,n.classList.remove("show"),n.setAttribute("aria-hidden",!0),n.classList.contains("fade")&&1!==t?o(n,P):P()))},w.setContent=function(t){s(".modal-content",n).innerHTML=t},w.update=function(){n.classList.contains("show")&&E()},w.dispose=function(){w.hide(1),i?(i.removeEventListener("click",H,!1),delete i.Modal):delete n.Modal},i=s(t);var M=s(i.getAttribute("data-target")||i.getAttribute("href"));n=i.classList.contains("modal")?i:M,b=Array.from(document.getElementsByClassName("fixed-top")).concat(Array.from(document.getElementsByClassName("fixed-bottom"))),i.classList.contains("modal")&&(i=null),i&&i.Modal&&i.Modal.dispose(),n&&n.Modal&&n.Modal.dispose(),T.keyboard=!(!1===y.keyboard||"false"===n.getAttribute("data-keyboard")),T.backdrop="static"!==y.backdrop&&"static"!==n.getAttribute("data-backdrop")||"static",T.backdrop=!1!==y.backdrop&&"false"!==n.getAttribute("data-backdrop")&&T.backdrop,T.animation=!!n.classList.contains("fade"),T.content=y.content,n.isAnimating=!1,i&&!i.Modal&&i.addEventListener("click",H,!1),T.content&&w.setContent(T.content.trim()),i?(n.modalTrigger=i,i.Modal=w):n.Modal=w}var b="mousedown";function y(){return{y:window.pageYOffset||document.documentElement.scrollTop,x:window.pageXOffset||document.documentElement.scrollLeft}}function w(t,e,i,n){var a,o,s,l,c=e.offsetWidth,r=e.offsetHeight,d=document.documentElement.clientWidth||document.body.clientWidth,u=document.documentElement.clientHeight||document.body.clientHeight,m=t.getBoundingClientRect(),f=n===document.body?y():{x:n.offsetLeft+n.scrollLeft,y:n.offsetTop+n.scrollTop},h=m.right-m.left,g=m.bottom-m.top,p=e.classList.contains("popover"),v=e.getElementsByClassName("arrow")[0],L=m.top+g/2-r/2<0,b=m.left+h/2-c/2<0,w=m.left+c/2+h/2>=d,A=m.top+r/2+g/2>=u,T=m.top-r<0,E=m.left-c<0,k=m.top+r+g>=u,x=m.left+c+h>=d,C=i;C="right"===(C="left"===(C="bottom"===(C="top"===(C=("left"===C||"right"===C)&&E&&x?"top":C)&&T?"bottom":C)&&k?"top":C)&&E?"right":C)&&x?"left":C,-1===e.className.indexOf(C)&&(e.className=e.className.replace(/\b(top|bottom|left|right)+/,C));var N=v.offsetWidth,P=v.offsetHeight;"left"===C||"right"===C?(o="left"===C?m.left+f.x-c-(p?N:0):m.left+f.x+h,L?(a=m.top+f.y,s=g/2-N):A?(a=m.top+f.y-r+g,s=r-g/2-N):(a=m.top+f.y-r/2+g/2,s=r/2-(p?.9*P:P/2))):"top"!==C&&"bottom"!==C||(a="top"===C?m.top+f.y-r-(p?P:0):m.top+f.y+g,b?(o=0,l=m.left+h/2-N):w?(o=d-1.01*c,l=c-(d-m.left)+h/2-N/2):(o=m.left+f.x-c/2+h/2,l=c/2-(p?N:N/2))),e.style.top=a+"px",e.style.left=o+"px",s&&(v.style.top=s+"px"),l&&(v.style.left=l+"px")}function A(t,e){var i,n,a,r,d,f,h,g,p,v,L=e||{},y=this,A=null,T=0,E=/(iPhone|iPod|iPad)/.test(navigator.userAgent),k={};function x(t){null!==A&&t.target===s(".close",A)&&y.hide()}function C(){return{0:L.title||n.getAttribute("data-title")||null,1:L.content||n.getAttribute("data-content")||null}}function N(){null===A&&n.focus()}function P(t){var e=t?"addEventListener":"removeEventListener";"hover"===k.trigger?(n[e](b,y.show),n[e](u[0],y.show),k.dismissible||n[e](u[1],y.hide)):"click"===k.trigger?n[e](k.trigger,y.toggle):"focus"===k.trigger&&(E&&n[e]("click",N,!1),n[e](k.trigger,y.toggle))}function H(t){A&&A.contains(t.target)||t.target===n||n.contains(t.target)||y.hide()}function S(t){var e=t?"addEventListener":"removeEventListener";k.dismissible?document[e]("click",x,!1):("focus"===k.trigger&&n[e]("blur",y.hide),"hover"===k.trigger&&document[e]("touchstart",H,m)),window[e]("resize",y.hide,m)}function B(){S(1),c.call(n,g)}function M(){S(),k.container.removeChild(A),T=null,A=null,c.call(n,v)}y.toggle=function(){null===A?y.show():y.hide()},y.show=function(){clearTimeout(T),T=setTimeout((function(){if(null===A){if(c.call(n,h),h.defaultPrevented)return;!function(){var t;t=C(),a=t[0],r=(r=t[1])?r.trim():null,A=document.createElement("div");var e=document.createElement("div");if(e.classList.add("arrow"),A.appendChild(e),null!==r&&null===k.template){if(A.setAttribute("role","tooltip"),null!==a){var i=document.createElement("h3");i.classList.add("popover-header"),i.innerHTML=k.dismissible?a+f:a,A.appendChild(i)}var n=document.createElement("div");n.classList.add("popover-body"),n.innerHTML=k.dismissible&&null===a?r+f:r,A.appendChild(n)}else{var o=document.createElement("div");o.innerHTML=k.template.trim(),A.className=o.firstChild.className,A.innerHTML=o.firstChild.innerHTML;var l=s(".popover-header",A),c=s(".popover-body",A);a&&l&&(l.innerHTML=a.trim()),r&&c&&(c.innerHTML=r.trim())}k.container.appendChild(A),A.style.display="block",A.classList.contains("popover")||A.classList.add("popover"),A.classList.contains(k.animation)||A.classList.add(k.animation),A.classList.contains(d)||A.classList.add(d)}(),w(n,A,k.placement,k.container),A.classList.contains("show")||A.classList.add("show"),k.animation?o(A,B):B()}}),20)},y.hide=function(){clearTimeout(T),T=setTimeout((function(){if(A&&null!==A&&A.classList.contains("show")){if(c.call(n,p),p.defaultPrevented)return;A.classList.remove("show"),k.animation?o(A,M):M()}}),k.delay)},y.dispose=function(){y.hide(),P(),delete n.Popover},(n=s(t)).Popover&&n.Popover.dispose();var I=n.getAttribute("data-trigger"),D=n.getAttribute("data-animation"),X=n.getAttribute("data-placement"),O=n.getAttribute("data-dismissible"),R=n.getAttribute("data-delay"),W=n.getAttribute("data-container");f='<button type="button" class="close">×</button>',h=l("show","popover"),g=l("shown","popover"),p=l("hide","popover"),v=l("hidden","popover");var j=s(L.container),z=s(W),U=n.closest(".modal"),q=n.closest(".fixed-top"),Y=n.closest(".fixed-bottom");k.template=L.template?L.template:null,k.trigger=L.trigger?L.trigger:I||"hover",k.animation=L.animation&&"fade"!==L.animation?L.animation:D||"fade",k.placement=L.placement?L.placement:X||"top",k.delay=parseInt(L.delay||R,10)||200,k.dismissible=!(!L.dismissible&&"true"!==O),k.container=j||z||q||Y||U||document.body,d="bs-popover-"+k.placement,i=C(),a=i[0],((r=i[1])||k.template)&&(n.Popover||P(1),n.Popover=y)}function T(t,e){var i,n,a,o,r,d=e||{},u=this,f={};function h(){var t,e,l;(a=o.getElementsByTagName("A"),n.scrollTop=n.isWindow?y().y:i.scrollTop,n.length!==a.length||p()!==n.scrollHeight)&&(n.items=[],n.offsets=[],n.scrollHeight=p(),n.maxScroll=n.scrollHeight-(n.isWindow?window.innerHeight:i.getBoundingClientRect().height),Array.from(a).forEach((function(i){t=i.getAttribute("href"),(e=t&&"#"===t.charAt(0)&&"#"!==t.slice(-1)&&s(t))&&(n.items.push(i),l=e.getBoundingClientRect(),n.offsets.push((n.isWindow?l.top+n.scrollTop:e.offsetTop)-f.offset))})),n.length=n.items.length)}function g(t){var e=t?"addEventListener":"removeEventListener";r[e]("scroll",u.refresh,m),window[e]("resize",u.refresh,m)}function p(){return r.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)}function v(){Array.from(a).map((function(t){return t.classList.contains("active")&&t.classList.remove("active")}))}function L(t){var e,a=t;v(),n.activeItem=a,a.classList.add("active");for(var o=[];a.parentNode!==document.body;)((e=(a=a.parentNode).classList).contains("dropdown-menu")||e.contains("nav"))&&o.push(a);o.forEach((function(t){var e=t.previousElementSibling;e&&!e.classList.contains("active")&&e.classList.add("active")})),c.call(i,l("activate","scrollspy",{relatedTarget:n.activeItem}))}u.refresh=function(){if(h(),n.scrollTop>=n.maxScroll){var t=n.items[n.length-1];n.activeItem!==t&&L(t)}else{if(n.activeItem&&n.scrollTop<n.offsets[0]&&n.offsets[0]>0)return n.activeItem=null,void v();for(var e=n.length;e>-1;)n.activeItem!==n.items[e]&&n.scrollTop>=n.offsets[e]&&(void 0===n.offsets[e+1]||n.scrollTop<n.offsets[e+1])&&L(n.items[e]),e-=1}},u.dispose=function(){g(),delete i.ScrollSpy},(i=s(t)).ScrollSpy&&i.ScrollSpy.dispose();var b=i.getAttribute("data-target"),w=i.getAttribute("data-offset");o=s(d.target||b),r=i.clientHeight<i.scrollHeight?i:window,o&&(f.offset=+(d.offset||w)||10,(n={}).length=0,n.items=[],n.offsets=[],n.isWindow=r===window,n.activeItem=null,n.scrollHeight=0,n.maxScroll=0,i.ScrollSpy||g(1),u.refresh(),i.ScrollSpy=u)}function E(t,i){var n,a,r,d,u,m,h,g,p,v,L,b,y,w,A=i||{},T=this,E=!1;function k(){E.style.height="",E.classList.remove("collapsing"),a.isAnimating=!1}function x(){E?y?k():setTimeout((function(){E.style.height=w+"px",f(E),o(E,k)}),50):a.isAnimating=!1,u=l("shown","tab",{relatedTarget:p}),c.call(g,u)}function C(){E&&(v.style.float="left",L.style.float="left",b=v.scrollHeight),d=l("show","tab",{relatedTarget:p}),h=l("hidden","tab",{relatedTarget:g}),c.call(g,d),d.defaultPrevented||(L.classList.add("active"),v.classList.remove("active"),E&&(w=L.scrollHeight,y=w===b,E.classList.add("collapsing"),E.style.height=b+"px",f(E),v.style.float="",L.style.float=""),L.classList.contains("fade")?setTimeout((function(){L.classList.add("show"),o(L,x)}),20):x(),c.call(p,h))}function N(){var t=a.getElementsByClassName("active");return 1!==t.length||t[0].parentNode.classList.contains("dropdown")?t.length>1&&(p=t[t.length-1]):p=t[0],p}function P(){return s(N().getAttribute("href"))}function H(t){t.preventDefault(),g=t.currentTarget,a.isAnimating||T.show()}T.show=function(){if(!(g=g||n).classList.contains("active")){if(L=s(g.getAttribute("href")),p=N(),v=P(),m=l("hide","tab",{relatedTarget:g}),c.call(p,m),m.defaultPrevented)return;a.isAnimating=!0,p.classList.remove("active"),p.setAttribute("aria-selected","false"),g.classList.add("active"),g.setAttribute("aria-selected","true"),r&&(n.parentNode.classList.contains("dropdown-menu")?r.classList.contains("active")||r.classList.add("active"):r.classList.contains("active")&&r.classList.remove("active")),v.classList.contains("fade")?(v.classList.remove("show"),o(v,C)):C()}},T.dispose=function(){n.removeEventListener("click",H,!1),delete n.Tab},(n=s(t)).Tab&&n.Tab.dispose();var S=n.getAttribute("data-height");a=n.closest(".nav"),r=a&&s(".dropdown-toggle",a);var B=!(!e||!1===A.height||"false"===S);a.isAnimating=!1,n.Tab||n.addEventListener("click",H,!1),B&&(E=P().parentNode),n.Tab=T}function k(t,e){var i,n,a,r,d,u,m=e||{},h=this,g=0,p={};function v(){n.classList.remove("showing"),n.classList.add("show"),c.call(n,d),p.autohide&&h.hide()}function L(){n.classList.add("hide"),c.call(n,u)}function b(){n.classList.remove("show"),p.animation?o(n,L):L()}function y(){clearTimeout(g),i.removeEventListener("click",h.hide,!1),delete i.Toast}h.show=function(){if(n&&!n.classList.contains("show")){if(c.call(n,a),a.defaultPrevented)return;p.animation&&n.classList.add("fade"),n.classList.remove("hide"),f(n),n.classList.add("showing"),p.animation?o(n,v):v()}},h.hide=function(t){if(n&&n.classList.contains("show")){if(c.call(n,r),r.defaultPrevented)return;t?b():g=setTimeout(b,p.delay)}},h.dispose=function(){p.animation?o(n,y):y()},(i=s(t)).Toast&&i.Toast.dispose(),n=i.closest(".toast");var w=i.getAttribute("data-animation"),A=i.getAttribute("data-autohide"),T=i.getAttribute("data-delay");a=l("show","toast"),r=l("hide","toast"),d=l("shown","toast"),u=l("hidden","toast"),p.animation=!1===m.animation||"false"===w?0:1,p.autohide=!1===m.autohide||"false"===A?0:1,p.delay=parseInt(m.delay||T,10)||500,i.Toast||i.addEventListener("click",h.hide,!1),i.Toast=h}function x(t,e){var i,n,a,r,d,f,h,g=e||{},p=this,v=null,L=0,y={};function A(){return i.getAttribute("title")||i.getAttribute("data-title")||i.getAttribute("data-original-title")}function T(t){v&&v.contains(t.target)||t.target===i||i.contains(t.target)||p.hide()}function E(t){var e=t?"addEventListener":"removeEventListener";document[e]("touchstart",T,m),window[e]("resize",p.hide,m)}function k(){E(1),c.call(i,d)}function x(){E(),y.container.removeChild(v),v=null,L=null,c.call(i,h)}function C(t){var e=t?"addEventListener":"removeEventListener";i[e](b,p.show,!1),i[e](u[0],p.show,!1),i[e](u[1],p.hide,!1)}p.show=function(){clearTimeout(L),L=setTimeout((function(){if(null===v){if(c.call(i,r),r.defaultPrevented)return;!1!==function(){if(n=A()){if(v=document.createElement("div"),y.template){var t=document.createElement("div");t.innerHTML=y.template.trim(),v.className=t.firstChild.className,v.innerHTML=t.firstChild.innerHTML,s(".tooltip-inner",v).innerHTML=n.trim()}else{var e=document.createElement("div");e.classList.add("arrow"),v.appendChild(e);var i=document.createElement("div");i.classList.add("tooltip-inner"),v.appendChild(i),i.innerHTML=n}v.style.left="0",v.style.top="0",v.setAttribute("role","tooltip"),v.classList.contains("tooltip")||v.classList.add("tooltip"),v.classList.contains(y.animation)||v.classList.add(y.animation),v.classList.contains(a)||v.classList.add(a),y.container.appendChild(v)}}()&&(w(i,v,y.placement,y.container),v.classList.contains("show")||v.classList.add("show"),y.animation?o(v,k):k())}}),20)},p.hide=function(){clearTimeout(L),L=setTimeout((function(){if(v&&v.classList.contains("show")){if(c.call(i,f),f.defaultPrevented)return;v.classList.remove("show"),y.animation?o(v,x):x()}}),y.delay)},p.toggle=function(){v?p.hide():p.show()},p.dispose=function(){C(),p.hide(),i.setAttribute("title",i.getAttribute("data-original-title")),i.removeAttribute("data-original-title"),delete i.Tooltip},(i=s(t)).Tooltip&&i.Tooltip.dispose();var N=i.getAttribute("data-animation"),P=i.getAttribute("data-placement"),H=i.getAttribute("data-delay"),S=i.getAttribute("data-container"),B=s(g.container),M=s(S),I=i.closest(".modal");r=l("show","tooltip"),d=l("shown","tooltip"),f=l("hide","tooltip"),h=l("hidden","tooltip");var D=i.closest(".fixed-top"),X=i.closest(".fixed-bottom");y.animation=g.animation&&"fade"!==g.animation?g.animation:N||"fade",y.placement=g.placement?g.placement:P||"top",y.template=g.template?g.template:null,y.delay=parseInt(g.delay||H,10)||200,y.container=B||M||D||X||I||document.body,a="bs-tooltip-"+y.placement,(n=A())&&(i.Tooltip||(i.setAttribute("data-original-title",n),i.removeAttribute("title"),C(1)),i.Tooltip=p)}var C={};function N(t){var e=t instanceof Element?t:document;Object.keys(C).forEach((function(t){var i,n;i=C[t][0],n=e.querySelectorAll(C[t][1]),Array.from(n).map((function(t){return new i(t)}))}))}C.Alert=[r,'[data-dismiss="alert"]'],C.Button=[d,'[data-toggle="buttons"]'],C.Carousel=[h,'[data-ride="carousel"]'],C.Collapse=[g,'[data-toggle="collapse"]'],C.Dropdown=[v,'[data-toggle="dropdown"]'],C.Modal=[L,'[data-toggle="modal"]'],C.Popover=[A,'[data-toggle="popover"],[data-tip="popover"]'],C.ScrollSpy=[T,'[data-spy="scroll"]'],C.Tab=[E,'[data-toggle="tab"]'],C.Toast=[k,'[data-dismiss="toast"]'],C.Tooltip=[x,'[data-toggle="tooltip"],[data-tip="tooltip"]'],document.body?N():document.addEventListener("DOMContentLoaded",(function t(){N(),document.removeEventListener("DOMContentLoaded",t,!1)}),!1);return{Alert:r,Button:d,Carousel:h,Collapse:g,Dropdown:v,Modal:L,Popover:A,ScrollSpy:T,Tab:E,Toast:k,Tooltip:x,initCallback:N,removeDataAPI:function(t){var e=t instanceof Element?t:document;Object.keys(C).forEach((function(t){var i,n;i=t,n=e.querySelectorAll(C[t][1]),Array.from(n).map((function(t){return t[i].dispose()}))}))},componentsInit:C,Version:"3.0.15-alpha1"}})); | ||
// Native JavaScript for Bootstrap v3.0.15-alpha2 | 2021 © dnp_theme | MIT-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).BSN=e()}(this,(function(){"use strict";var t="webkitTransition"in document.head.style?"webkitTransitionEnd":"transitionend",e="webkitTransition"in document.head.style||"transition"in document.head.style,i="webkitTransition"in document.head.style?"webkitTransitionDuration":"transitionDuration",n="webkitTransition"in document.head.style?"webkitTransitionProperty":"transitionProperty";function a(t){var a=getComputedStyle(t),o=a[n],s=a[i],l=s.includes("ms")?1:1e3,c=e&&o&&"none"!==o?parseFloat(s)*l:0;return Number.isNaN(c)?0:c}function o(e,i){var n=0,o=new Event(t),s=a(e);s?(e.addEventListener(t,(function a(o){o.target===e&&(i.apply(e,[o]),e.removeEventListener(t,a),n=1)})),setTimeout((function(){n||e.dispatchEvent(o)}),s+17)):i.apply(e,[o])}function s(t,e){var i=e&&e instanceof Element?e:document;return t instanceof Element?t:i.querySelector(t)}function l(t,e,i){var n=new CustomEvent(t+".bs."+e,{cancelable:!0});return void 0!==i&&Object.keys(i).forEach((function(t){Object.defineProperty(n,t,{value:i[t]})})),n}function c(t){this&&this.dispatchEvent(t)}function r(t){var e,i,n=this,a=l("close","alert"),r=l("closed","alert");function d(t){e[t?"addEventListener":"removeEventListener"]("click",u,!1)}function u(t){i=t&&t.target.closest(".alert"),(e=s('[data-dismiss="alert"]',i))&&i&&(e===t.target||e.contains(t.target))&&n.close()}function m(){d(),i.parentNode.removeChild(i),c.call(i,r)}n.close=function(){if(i&&e&&i.classList.contains("show")){if(c.call(i,a),a.defaultPrevented)return;n.dispose(),i.classList.remove("show"),i.classList.contains("fade")?o(i,m):m()}},n.dispose=function(){d(),delete e.Alert},e=s(t),i=e.closest(".alert"),e.Alert&&e.Alert.dispose(),e.Alert||d(1),n.element=e,e.Alert=n}function d(t){var e,i,n=l("change","button");function a(t){var a=t.target,o=a.closest("LABEL"),s=null;"LABEL"===a.tagName?s=a:o&&(s=o);var l=s&&s.getElementsByTagName("INPUT")[0];if(l){if(c.call(l,n),c.call(e,n),"checkbox"===l.type){if(n.defaultPrevented)return;l.checked?(s.classList.remove("active"),l.getAttribute("checked"),l.removeAttribute("checked"),l.checked=!1):(s.classList.add("active"),l.getAttribute("checked"),l.setAttribute("checked","checked"),l.checked=!0),e.toggled||(e.toggled=!0)}if("radio"===l.type&&!e.toggled){if(n.defaultPrevented)return;(!l.checked||0===t.screenX&&0===t.screenY)&&(s.classList.add("active"),s.classList.add("focus"),l.setAttribute("checked","checked"),l.checked=!0,e.toggled=!0,Array.from(i).forEach((function(t){var e=t.getElementsByTagName("INPUT")[0];t!==s&&t.classList.contains("active")&&(c.call(e,n),t.classList.remove("active"),e.removeAttribute("checked"),e.checked=!1)})))}setTimeout((function(){e.toggled=!1}),50)}}function o(t){32===(t.which||t.keyCode)&&t.target===document.activeElement&&a(t)}function r(t){32===(t.which||t.keyCode)&&t.preventDefault()}function d(t){if("INPUT"===t.target.tagName){var e="focusin"===t.type?"add":"remove";t.target.closest(".btn").classList[e]("focus")}}function u(t){var i=t?"addEventListener":"removeEventListener";e[i]("click",a,!1),e[i]("keyup",o,!1),e[i]("keydown",r,!1),e[i]("focusin",d,!1),e[i]("focusout",d,!1)}this.dispose=function(){u(),delete e.Button},(e=s(t)).Button&&e.Button.dispose(),(i=e.getElementsByClassName("btn")).length&&(e.Button||u(1),e.toggled=!1,e.Button=this,Array.from(i).forEach((function(t){var e=s("input:checked",t);!t.classList.contains("active")&&e&&t.classList.add("active"),t.classList.contains("active")&&!e&&t.classList.remove("active")})))}var u="onmouseleave"in document?["mouseenter","mouseleave"]:["mouseover","mouseout"],m=!!function(){var t=!1;try{var e=Object.defineProperty({},"passive",{get:function(){return t=!0}});document.addEventListener("DOMContentLoaded",(function t(){document.removeEventListener("DOMContentLoaded",t,e)}),e)}catch(t){throw Error("Passive events are not supported")}return t}()&&{passive:!0};function f(t){return t.offsetHeight}function h(t,e){var i,n,r,d,h,g,p,v,L,b,y,w,A,T=e||{},E=this;function k(){!1===g.interval||d.classList.contains("paused")||(d.classList.add("paused"),h.isSliding||(clearInterval(h.timer),h.timer=null))}function x(){!1!==g.interval&&d.classList.contains("paused")&&(d.classList.remove("paused"),h.isSliding||(clearInterval(h.timer),h.timer=null,E.cycle()))}function C(t){if(t.preventDefault(),!h.isSliding){var e=t.target;e&&!e.classList.contains("active")&&e.getAttribute("data-slide-to")&&(h.index=+e.getAttribute("data-slide-to"),E.slideTo(h.index))}}function N(t){if(t.preventDefault(),!h.isSliding){var e=t.currentTarget||t.srcElement;e===y?h.index+=1:e===b&&(h.index-=1),E.slideTo(h.index)}}function P(t){var e=t.which;if(!h.isSliding){switch(e){case 39:h.index+=1;break;case 37:h.index-=1;break;default:return}E.slideTo(h.index)}}function H(t){var e=t?"addEventListener":"removeEventListener";g.pause&&g.interval&&(d[e](u[0],k,!1),d[e](u[1],x,!1),d[e]("touchstart",k,m),d[e]("touchend",x,m)),g.touch&&L.length>1&&d[e]("touchstart",B,m),y&&y[e]("click",N,!1),b&&b[e]("click",N,!1),w&&w[e]("click",C,!1),g.keyboard&&window[e]("keydown",P,!1)}function S(t){var e=t?"addEventListener":"removeEventListener";d[e]("touchmove",M,m),d[e]("touchend",I,m)}function B(t){h.isTouch||(h.touchPosition.startX=t.changedTouches[0].pageX,d.contains(t.target)&&(h.isTouch=!0,S(1)))}function M(t){h.isTouch?(h.touchPosition.currentX=t.changedTouches[0].pageX,"touchmove"===t.type&&t.changedTouches.length>1&&t.preventDefault()):t.preventDefault()}function I(t){if(h.isTouch&&!h.isSliding&&(h.touchPosition.endX=h.touchPosition.currentX||t.changedTouches[0].pageX,h.isTouch)){if((!d.contains(t.target)||!d.contains(t.relatedTarget))&&Math.abs(h.touchPosition.startX-h.touchPosition.endX)<75)return;h.touchPosition.currentX<h.touchPosition.startX?h.index+=1:h.touchPosition.currentX>h.touchPosition.startX&&(h.index-=1),h.isTouch=!1,E.slideTo(h.index),S()}}function D(t){Array.from(A).forEach((function(t){return t.classList.remove("active")})),A[t]&&A[t].classList.add("active")}function X(t){if(h.touchPosition){var e=h.index,i=t&&t.target!==L[e]?1e3*t.elapsedTime+100:20,n=E.getActiveIndex(),a="left"===h.direction?"next":"prev";h.isSliding&&setTimeout((function(){h.touchPosition&&(h.isSliding=!1,L[e].classList.add("active"),L[n].classList.remove("active"),L[e].classList.remove("carousel-item-"+a),L[e].classList.remove("carousel-item-"+h.direction),L[n].classList.remove("carousel-item-"+h.direction),c.call(d,v),document.hidden||!g.interval||d.classList.contains("paused")||E.cycle())}),i)}}if(E.cycle=function(){h.timer&&(clearInterval(h.timer),h.timer=null),h.timer=setInterval((function(){var t=h.index||E.getActiveIndex();(function(t){var e=t.getBoundingClientRect(),i=window.innerHeight||document.documentElement.clientHeight;return e.top<=i&&e.bottom>=0})(d)&&(t+=1,E.slideTo(t))}),g.interval)},E.slideTo=function(t){if(!h.isSliding){var e=E.getActiveIndex(),i=t;if(e!==i){e<i||0===e&&i===L.length-1?h.direction="left":(e>i||e===L.length-1&&0===i)&&(h.direction="right"),i<0?i=L.length-1:i>=L.length&&(i=0);var n="left"===h.direction?"next":"prev",s={relatedTarget:L[i],direction:h.direction,from:e,to:i};p=l("slide","carousel",s),v=l("slid","carousel",s),c.call(d,p),p.defaultPrevented||(h.index=i,h.isSliding=!0,clearInterval(h.timer),h.timer=null,D(i),a(L[i])&&d.classList.contains("slide")?(L[i].classList.add("carousel-item-"+n),f(L[i]),L[i].classList.add("carousel-item-"+h.direction),L[e].classList.add("carousel-item-"+h.direction),o(L[i],X)):(L[i].classList.add("active"),f(L[i]),L[e].classList.remove("active"),setTimeout((function(){h.isSliding=!1,g.interval&&d&&!d.classList.contains("paused")&&E.cycle(),c.call(d,v)}),100)))}}},E.getActiveIndex=function(){return Array.from(L).indexOf(d.getElementsByClassName("carousel-item active")[0])||0},E.dispose=function(){var t=["left","right","prev","next"];Array.from(L).forEach((function(e,i){e.classList.contains("active")&&D(i),t.forEach((function(t){return e.classList.remove("carousel-item-"+t)}))})),clearInterval(h.timer),H(),h={},g={},delete d.Carousel},(d=s(t)).Carousel&&d.Carousel.dispose(),L=d.getElementsByClassName("carousel-item"),i=d.getElementsByClassName("carousel-control-prev"),b=i[0],n=d.getElementsByClassName("carousel-control-next"),y=n[0],r=d.getElementsByClassName("carousel-indicators"),w=r[0],A=w&&w.getElementsByTagName("LI")||[],!(L.length<2)){var O=d.getAttribute("data-interval"),R="false"===O?0:+O,W="false"===d.getAttribute("data-touch")?0:1,j="hover"===d.getAttribute("data-pause")||!1,z="true"===d.getAttribute("data-keyboard")||!1,U=T.interval,q=T.touch;(g={}).keyboard=!0===T.keyboard||z,g.pause=!("hover"!==T.pause&&!j)&&"hover",g.touch=q||W,g.interval=5e3,"number"==typeof U?g.interval=U:!1===U||0===R||!1===R?g.interval=0:Number.isNaN(R)||(g.interval=R),E.getActiveIndex()<0&&(L.length&&L[0].classList.add("active"),A.length&&D(0)),(h={}).direction="left",h.index=0,h.timer=null,h.isSliding=!1,h.isTouch=!1,h.touchPosition={startX:0,currentX:0,endX:0},H(1),g.interval&&E.cycle(),d.Carousel=E}}function g(t,e){var i,n,a,r,d,u,m,h=e||{},g=this,p=null,v=null;function L(t,e){c.call(t,u),u.defaultPrevented||(t.isAnimating=!0,t.style.height=t.scrollHeight+"px",t.classList.remove("collapse"),t.classList.remove("show"),t.classList.add("collapsing"),f(t),t.style.height="0px",o(t,(function(){t.isAnimating=!1,t.setAttribute("aria-expanded","false"),e.setAttribute("aria-expanded","false"),t.classList.remove("collapsing"),t.classList.add("collapse"),t.style.height="",c.call(t,m)})))}g.toggle=function(t){(t&&"A"===t.target.tagName||"A"===i.tagName)&&t.preventDefault(),(i.contains(t.target)||t.target===i)&&(v.classList.contains("show")?g.hide():g.show())},g.hide=function(){v.isAnimating||(L(v,i),i.classList.add("collapsed"))},g.show=function(){var t,e,l;p&&(t=p.getElementsByClassName("collapse show"),n=t[0],a=n&&(s('[data-target="#'+n.id+'"]',p)||s('[href="#'+n.id+'"]',p))),v.isAnimating||(a&&n!==v&&(L(n,a),a.classList.add("collapsed")),e=v,l=i,c.call(e,r),r.defaultPrevented||(e.isAnimating=!0,e.classList.add("collapsing"),e.classList.remove("collapse"),e.style.height=e.scrollHeight+"px",o(e,(function(){e.isAnimating=!1,e.setAttribute("aria-expanded","true"),l.setAttribute("aria-expanded","true"),e.classList.remove("collapsing"),e.classList.add("collapse"),e.classList.add("show"),e.style.height="",c.call(e,d)}))),i.classList.remove("collapsed"))},g.dispose=function(){i.removeEventListener("click",g.toggle,!1),delete i.Collapse},(i=s(t)).Collapse&&i.Collapse.dispose();var b=i.getAttribute("data-parent");r=l("show","collapse"),d=l("shown","collapse"),u=l("hide","collapse"),m=l("hidden","collapse"),null!==(v=s(h.target||i.getAttribute("data-target")||i.getAttribute("href")))&&(v.isAnimating=!1),p=i.closest(h.parent||b),i.Collapse||i.addEventListener("click",g.toggle,!1),i.Collapse=g}function p(t){t.focus()}function v(t,e){var i,n,a,o,r,d,u,m,f=this,h=null,g=[];function v(t){(t.href&&"#"===t.href.slice(-1)||t.parentNode&&t.parentNode.href&&"#"===t.parentNode.href.slice(-1))&&this.preventDefault()}function L(){var t=i.open?"addEventListener":"removeEventListener";document[t]("click",b,!1),document[t]("keydown",w,!1),document[t]("keyup",A,!1),document[t]("focus",b,!1)}function b(t){var e=t.target;if(e.getAttribute){var n=e&&e.getAttribute("data-toggle")||e.parentNode&&e.parentNode.getAttribute&&e.parentNode.getAttribute("data-toggle");("focus"!==t.type||e!==i&&e!==u&&!u.contains(e))&&(e!==u&&!u.contains(e)||!m&&!n)&&(h=e===i||i.contains(e)?i:null,f.hide(),v.call(t,e))}}function y(t){h=i,f.show(),v.call(t,t.target)}function w(t){var e=t.which||t.keyCode;38!==e&&40!==e||t.preventDefault()}function A(t){var e=t.which||t.keyCode,n=document.activeElement,a=n===i,o=u.contains(n),s=n.parentNode===u||n.parentNode.parentNode===u,l=g.indexOf(n);s&&(a?l=0:38===e?l=l>1?l-1:0:40===e&&(l=l<g.length-1?l+1:l),g[l]&&p(g[l])),(g.length&&s||!g.length&&(o||a)||!o)&&i.open&&27===e&&(f.toggle(),h=null)}f.show=function(){n=l("show","dropdown",{relatedTarget:h}),c.call(d,n),n.defaultPrevented||(u.classList.add("show"),d.classList.add("show"),i.setAttribute("aria-expanded",!0),i.open=!0,i.removeEventListener("click",y,!1),setTimeout((function(){p(u.getElementsByTagName("INPUT")[0]||i),L(),a=l("shown","dropdown",{relatedTarget:h}),c.call(d,a)}),1))},f.hide=function(){o=l("hide","dropdown",{relatedTarget:h}),c.call(d,o),o.defaultPrevented||(u.classList.remove("show"),d.classList.remove("show"),i.setAttribute("aria-expanded",!1),i.open=!1,L(),p(i),setTimeout((function(){i.Dropdown&&i.addEventListener("click",y,!1)}),1),r=l("hidden","dropdown",{relatedTarget:h}),c.call(d,r))},f.toggle=function(){d.classList.contains("show")&&i.open?f.hide():f.show()},f.dispose=function(){d.classList.contains("show")&&i.open&&f.hide(),i.removeEventListener("click",y,!1),delete i.Dropdown},(i=s(t)).Dropdown&&i.Dropdown.dispose(),d=i.parentNode,u=s(".dropdown-menu",d),Array.from(u.children).forEach((function(t){t.children.length&&"A"===t.children[0].tagName&&g.push(t.children[0]),"A"===t.tagName&&g.push(t)})),i.Dropdown||("tabindex"in u||u.setAttribute("tabindex","0"),i.addEventListener("click",y,!1)),m=!0===e||"true"===i.getAttribute("data-persist")||!1,i.open=!1,i.Dropdown=f}function L(t,e){var i,n,r,d,u,h,g,v,L,b,y=e||{},w=this,A=null,T={};function E(){var t=document.body.classList.contains("modal-open"),e=parseInt(getComputedStyle(document.body).paddingRight,10),i=document.documentElement.clientHeight,a=document.documentElement.scrollHeight,o=document.body.clientHeight,s=document.body.scrollHeight,l=i!==a||o!==s,c=n.clientHeight!==n.scrollHeight;g=function(){var t=document.createElement("div");t.className="modal-scrollbar-measure",document.body.appendChild(t);var e=t.offsetWidth-t.clientWidth;return document.body.removeChild(t),e}(),n.style.paddingRight=!c&&g?g+"px":"",document.body.style.paddingRight=c||l?e+(t?0:g)+"px":"",b.length&&b.forEach((function(e){var i=getComputedStyle(e).paddingRight;e.style.paddingRight=c||l?parseInt(i,10)+(t?0:g)+"px":parseInt(i,10)+"px"}))}function k(){(v=s(".modal-backdrop"))&&!document.getElementsByClassName("modal show")[0]&&(document.body.removeChild(v),v=null),null===v&&(document.body.classList.remove("modal-open"),document.body.style.paddingRight="",n.style.paddingRight="",b.length&&b.forEach((function(t){t.style.paddingRight=""})))}function x(t){var e=t?"addEventListener":"removeEventListener";window[e]("resize",w.update,m),n[e]("click",B,!1),document[e]("keydown",S,!1)}function C(){n.style.display="block",E(),document.getElementsByClassName("modal show")[0]||document.body.classList.add("modal-open"),n.classList.add("show"),n.setAttribute("aria-hidden",!1),n.classList.contains("fade")?o(n,N):N()}function N(){p(n),n.isAnimating=!1,x(1),d=l("shown","modal",{relatedTarget:A}),c.call(n,d)}function P(t){n.style.display="",i&&p(i),v=s(".modal-backdrop"),1!==t&&v&&v.classList.contains("show")&&!document.getElementsByClassName("modal show")[0]?(v.classList.remove("show"),o(v,k)):k(),x(),n.isAnimating=!1,h=l("hidden","modal"),c.call(n,h)}function H(t){if(!n.isAnimating){var e=t.target,a="#"+n.getAttribute("id"),o=e.getAttribute("data-target")||e.getAttribute("href"),s=i.getAttribute("data-target")||i.getAttribute("href");!n.classList.contains("show")&&(e===i&&o===a||i.contains(e)&&s===a)&&(n.modalTrigger=i,A=i,w.show(),t.preventDefault())}}function S(t){var e=t.which;!n.isAnimating&&T.keyboard&&27===e&&n.classList.contains("show")&&w.hide()}function B(t){if(!n.isAnimating){var e=t.target,i="modal"===e.getAttribute("data-dismiss"),a=e.closest('[data-dismiss="modal"]');n.classList.contains("show")&&(a||i||e===n&&"static"!==T.backdrop)&&(w.hide(),A=null,t.preventDefault())}}w.toggle=function(){n.classList.contains("show")?w.hide():w.show()},w.show=function(){if(!(n.classList.contains("show")&&n.isAnimating||(r=l("show","modal",{relatedTarget:A}),c.call(n,r),r.defaultPrevented))){n.isAnimating=!0;var t,e=document.getElementsByClassName("modal show")[0];e&&e!==n&&(e.modalTrigger&&e.modalTrigger.Modal.hide(),e.Modal&&e.Modal.hide()),T.backdrop&&(t=document.createElement("div"),null===(v=s(".modal-backdrop"))&&(t.setAttribute("class","modal-backdrop"+(T.animation?" fade":"")),v=t,document.body.appendChild(v)),v=v),!v||e||v.classList.contains("show")||(f(v),L=a(v),v.classList.add("show")),e?C():setTimeout(C,v&&L?L:0)}},w.hide=function(t){n.classList.contains("show")&&(u=l("hide","modal"),c.call(n,u),u.defaultPrevented||(n.isAnimating=!0,n.classList.remove("show"),n.setAttribute("aria-hidden",!0),n.classList.contains("fade")&&1!==t?o(n,P):P()))},w.setContent=function(t){s(".modal-content",n).innerHTML=t},w.update=function(){n.classList.contains("show")&&E()},w.dispose=function(){w.hide(1),i?(i.removeEventListener("click",H,!1),delete i.Modal):delete n.Modal},i=s(t);var M=s(i.getAttribute("data-target")||i.getAttribute("href"));n=i.classList.contains("modal")?i:M,b=Array.from(document.getElementsByClassName("fixed-top")).concat(Array.from(document.getElementsByClassName("fixed-bottom"))),i.classList.contains("modal")&&(i=null),i&&i.Modal&&i.Modal.dispose(),n&&n.Modal&&n.Modal.dispose(),T.keyboard=!(!1===y.keyboard||"false"===n.getAttribute("data-keyboard")),T.backdrop="static"!==y.backdrop&&"static"!==n.getAttribute("data-backdrop")||"static",T.backdrop=!1!==y.backdrop&&"false"!==n.getAttribute("data-backdrop")&&T.backdrop,T.animation=!!n.classList.contains("fade"),T.content=y.content,n.isAnimating=!1,i&&!i.Modal&&i.addEventListener("click",H,!1),T.content&&w.setContent(T.content.trim()),i?(n.modalTrigger=i,i.Modal=w):n.Modal=w}var b="mousedown";function y(){return{y:window.pageYOffset||document.documentElement.scrollTop,x:window.pageXOffset||document.documentElement.scrollLeft}}function w(t,e,i,n){var a,o,s,l,c=e.offsetWidth,r=e.offsetHeight,d=document.documentElement.clientWidth||document.body.clientWidth,u=document.documentElement.clientHeight||document.body.clientHeight,m=t.getBoundingClientRect(),f=n===document.body?y():{x:n.offsetLeft+n.scrollLeft,y:n.offsetTop+n.scrollTop},h=m.right-m.left,g=m.bottom-m.top,p=e.classList.contains("popover"),v=e.getElementsByClassName("arrow")[0],L=m.top+g/2-r/2<0,b=m.left+h/2-c/2<0,w=m.left+c/2+h/2>=d,A=m.top+r/2+g/2>=u,T=m.top-r<0,E=m.left-c<0,k=m.top+r+g>=u,x=m.left+c+h>=d,C=i;C="right"===(C="left"===(C="bottom"===(C="top"===(C=("left"===C||"right"===C)&&E&&x?"top":C)&&T?"bottom":C)&&k?"top":C)&&E?"right":C)&&x?"left":C,-1===e.className.indexOf(C)&&(e.className=e.className.replace(/\b(top|bottom|left|right)+/,C));var N=v.offsetWidth,P=v.offsetHeight;"left"===C||"right"===C?(o="left"===C?m.left+f.x-c-(p?N:0):m.left+f.x+h,L?(a=m.top+f.y,s=g/2-N):A?(a=m.top+f.y-r+g,s=r-g/2-N):(a=m.top+f.y-r/2+g/2,s=r/2-(p?.9*P:P/2))):"top"!==C&&"bottom"!==C||(a="top"===C?m.top+f.y-r-(p?P:0):m.top+f.y+g,b?(o=0,l=m.left+h/2-N):w?(o=d-1.01*c,l=c-(d-m.left)+h/2-N/2):(o=m.left+f.x-c/2+h/2,l=c/2-(p?N:N/2))),e.style.top=a+"px",e.style.left=o+"px",s&&(v.style.top=s+"px"),l&&(v.style.left=l+"px")}function A(t,e){var i,n,a,r,d,f,h,g,p,v,L=e||{},y=this,A=null,T=0,E=/(iPhone|iPod|iPad)/.test(navigator.userAgent),k={};function x(t){null!==A&&t.target===s(".close",A)&&y.hide()}function C(){return{0:L.title||n.getAttribute("data-title")||null,1:L.content||n.getAttribute("data-content")||null}}function N(){null===A&&n.focus()}function P(t){var e=t?"addEventListener":"removeEventListener";"hover"===k.trigger?(n[e](b,y.show),n[e](u[0],y.show),k.dismissible||n[e](u[1],y.hide)):"click"===k.trigger?n[e](k.trigger,y.toggle):"focus"===k.trigger&&(E&&n[e]("click",N,!1),n[e](k.trigger,y.toggle))}function H(t){A&&A.contains(t.target)||t.target===n||n.contains(t.target)||y.hide()}function S(t){var e=t?"addEventListener":"removeEventListener";k.dismissible?document[e]("click",x,!1):("focus"===k.trigger&&n[e]("blur",y.hide),"hover"===k.trigger&&document[e]("touchstart",H,m)),window[e]("resize",y.hide,m)}function B(){S(1),c.call(n,g)}function M(){S(),k.container.removeChild(A),T=null,A=null,c.call(n,v)}y.toggle=function(){null===A?y.show():y.hide()},y.show=function(){clearTimeout(T),T=setTimeout((function(){if(null===A){if(c.call(n,h),h.defaultPrevented)return;!function(){var t;t=C(),a=t[0],r=(r=t[1])?r.trim():null,A=document.createElement("div");var e=document.createElement("div");if(e.classList.add("arrow"),A.appendChild(e),null!==r&&null===k.template){if(A.setAttribute("role","tooltip"),null!==a){var i=document.createElement("h3");i.classList.add("popover-header"),i.innerHTML=k.dismissible?a+f:a,A.appendChild(i)}var n=document.createElement("div");n.classList.add("popover-body"),n.innerHTML=k.dismissible&&null===a?r+f:r,A.appendChild(n)}else{var o=document.createElement("div");o.innerHTML=k.template.trim(),A.className=o.firstChild.className,A.innerHTML=o.firstChild.innerHTML;var l=s(".popover-header",A),c=s(".popover-body",A);a&&l&&(l.innerHTML=a.trim()),r&&c&&(c.innerHTML=r.trim())}k.container.appendChild(A),A.style.display="block",A.classList.contains("popover")||A.classList.add("popover"),A.classList.contains(k.animation)||A.classList.add(k.animation),A.classList.contains(d)||A.classList.add(d)}(),w(n,A,k.placement,k.container),A.classList.contains("show")||A.classList.add("show"),k.animation?o(A,B):B()}}),20)},y.hide=function(){clearTimeout(T),T=setTimeout((function(){if(A&&null!==A&&A.classList.contains("show")){if(c.call(n,p),p.defaultPrevented)return;A.classList.remove("show"),k.animation?o(A,M):M()}}),k.delay)},y.dispose=function(){y.hide(),P(),delete n.Popover},(n=s(t)).Popover&&n.Popover.dispose();var I=n.getAttribute("data-trigger"),D=n.getAttribute("data-animation"),X=n.getAttribute("data-placement"),O=n.getAttribute("data-dismissible"),R=n.getAttribute("data-delay"),W=n.getAttribute("data-container");f='<button type="button" class="close">×</button>',h=l("show","popover"),g=l("shown","popover"),p=l("hide","popover"),v=l("hidden","popover");var j=s(L.container),z=s(W),U=n.closest(".modal"),q=n.closest(".fixed-top"),Y=n.closest(".fixed-bottom");k.template=L.template?L.template:null,k.trigger=L.trigger?L.trigger:I||"hover",k.animation=L.animation&&"fade"!==L.animation?L.animation:D||"fade",k.placement=L.placement?L.placement:X||"top",k.delay=parseInt(L.delay||R,10)||200,k.dismissible=!(!L.dismissible&&"true"!==O),k.container=j||z||q||Y||U||document.body,d="bs-popover-"+k.placement,i=C(),a=i[0],((r=i[1])||k.template)&&(n.Popover||P(1),n.Popover=y)}function T(t,e){var i,n,a,o,r,d=e||{},u=this,f={};function h(){var t,e,l;(a=o.getElementsByTagName("A"),n.scrollTop=n.isWindow?y().y:i.scrollTop,n.length!==a.length||p()!==n.scrollHeight)&&(n.items=[],n.offsets=[],n.scrollHeight=p(),n.maxScroll=n.scrollHeight-(n.isWindow?window.innerHeight:i.getBoundingClientRect().height),Array.from(a).forEach((function(i){t=i.getAttribute("href"),(e=t&&"#"===t.charAt(0)&&"#"!==t.slice(-1)&&s(t))&&(n.items.push(i),l=e.getBoundingClientRect(),n.offsets.push((n.isWindow?l.top+n.scrollTop:e.offsetTop)-f.offset))})),n.length=n.items.length)}function g(t){var e=t?"addEventListener":"removeEventListener";r[e]("scroll",u.refresh,m),window[e]("resize",u.refresh,m)}function p(){return r.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)}function v(){Array.from(a).map((function(t){return t.classList.contains("active")&&t.classList.remove("active")}))}function L(t){var e,a=t;v(),n.activeItem=a,a.classList.add("active");for(var o=[];a.parentNode!==document.body;)((e=(a=a.parentNode).classList).contains("dropdown-menu")||e.contains("nav"))&&o.push(a);o.forEach((function(t){var e=t.previousElementSibling;e&&!e.classList.contains("active")&&e.classList.add("active")})),c.call(i,l("activate","scrollspy",{relatedTarget:n.activeItem}))}u.refresh=function(){if(h(),n.scrollTop>=n.maxScroll){var t=n.items[n.length-1];n.activeItem!==t&&L(t)}else{if(n.activeItem&&n.scrollTop<n.offsets[0]&&n.offsets[0]>0)return n.activeItem=null,void v();for(var e=n.length;e>-1;)n.activeItem!==n.items[e]&&n.scrollTop>=n.offsets[e]&&(void 0===n.offsets[e+1]||n.scrollTop<n.offsets[e+1])&&L(n.items[e]),e-=1}},u.dispose=function(){g(),delete i.ScrollSpy},(i=s(t)).ScrollSpy&&i.ScrollSpy.dispose();var b=i.getAttribute("data-target"),w=i.getAttribute("data-offset");o=s(d.target||b),r=i.clientHeight<i.scrollHeight?i:window,o&&(f.offset=+(d.offset||w)||10,(n={}).length=0,n.items=[],n.offsets=[],n.isWindow=r===window,n.activeItem=null,n.scrollHeight=0,n.maxScroll=0,i.ScrollSpy||g(1),u.refresh(),i.ScrollSpy=u)}function E(t,i){var n,a,r,d,u,m,h,g,p,v,L,b,y,w,A=i||{},T=this,E=!1;function k(){E.style.height="",E.classList.remove("collapsing"),a.isAnimating=!1}function x(){E?y?k():setTimeout((function(){E.style.height=w+"px",f(E),o(E,k)}),50):a.isAnimating=!1,u=l("shown","tab",{relatedTarget:p}),c.call(g,u)}function C(){E&&(v.style.float="left",L.style.float="left",b=v.scrollHeight),d=l("show","tab",{relatedTarget:p}),h=l("hidden","tab",{relatedTarget:g}),c.call(g,d),d.defaultPrevented||(L.classList.add("active"),v.classList.remove("active"),E&&(w=L.scrollHeight,y=w===b,E.classList.add("collapsing"),E.style.height=b+"px",f(E),v.style.float="",L.style.float=""),L.classList.contains("fade")?setTimeout((function(){L.classList.add("show"),o(L,x)}),20):x(),c.call(p,h))}function N(){var t=a.getElementsByClassName("active");return 1!==t.length||t[0].parentNode.classList.contains("dropdown")?t.length>1&&(p=t[t.length-1]):p=t[0],p}function P(){return s(N().getAttribute("href"))}function H(t){t.preventDefault(),g=t.currentTarget,a.isAnimating||T.show()}T.show=function(){if(!(g=g||n).classList.contains("active")){if(L=s(g.getAttribute("href")),p=N(),v=P(),m=l("hide","tab",{relatedTarget:g}),c.call(p,m),m.defaultPrevented)return;a.isAnimating=!0,p.classList.remove("active"),p.setAttribute("aria-selected","false"),g.classList.add("active"),g.setAttribute("aria-selected","true"),r&&(n.parentNode.classList.contains("dropdown-menu")?r.classList.contains("active")||r.classList.add("active"):r.classList.contains("active")&&r.classList.remove("active")),v.classList.contains("fade")?(v.classList.remove("show"),o(v,C)):C()}},T.dispose=function(){n.removeEventListener("click",H,!1),delete n.Tab},(n=s(t)).Tab&&n.Tab.dispose();var S=n.getAttribute("data-height");a=n.closest(".nav"),r=a&&s(".dropdown-toggle",a);var B=!(!e||!1===A.height||"false"===S);a.isAnimating=!1,n.Tab||n.addEventListener("click",H,!1),B&&(E=P().parentNode),n.Tab=T}function k(t,e){var i,n,a,r,d,u,m=e||{},h=this,g=0,p={};function v(){n.classList.remove("showing"),n.classList.add("show"),c.call(n,d),p.autohide&&h.hide()}function L(){n.classList.add("hide"),c.call(n,u)}function b(){n.classList.remove("show"),p.animation?o(n,L):L()}function y(){clearTimeout(g),i.removeEventListener("click",h.hide,!1),delete i.Toast}h.show=function(){if(n&&!n.classList.contains("show")){if(c.call(n,a),a.defaultPrevented)return;p.animation&&n.classList.add("fade"),n.classList.remove("hide"),f(n),n.classList.add("showing"),p.animation?o(n,v):v()}},h.hide=function(t){if(n&&n.classList.contains("show")){if(c.call(n,r),r.defaultPrevented)return;t?b():g=setTimeout(b,p.delay)}},h.dispose=function(){p.animation?o(n,y):y()},(i=s(t)).Toast&&i.Toast.dispose(),n=i.closest(".toast");var w=i.getAttribute("data-animation"),A=i.getAttribute("data-autohide"),T=i.getAttribute("data-delay");a=l("show","toast"),r=l("hide","toast"),d=l("shown","toast"),u=l("hidden","toast"),p.animation=!1===m.animation||"false"===w?0:1,p.autohide=!1===m.autohide||"false"===A?0:1,p.delay=parseInt(m.delay||T,10)||500,i.Toast||i.addEventListener("click",h.hide,!1),i.Toast=h}function x(t,e){var i,n,a,r,d,f,h,g=e||{},p=this,v=null,L=0,y={};function A(){return i.getAttribute("title")||i.getAttribute("data-title")||i.getAttribute("data-original-title")}function T(t){v&&v.contains(t.target)||t.target===i||i.contains(t.target)||p.hide()}function E(t){var e=t?"addEventListener":"removeEventListener";document[e]("touchstart",T,m),window[e]("resize",p.hide,m)}function k(){E(1),c.call(i,d)}function x(){E(),y.container.removeChild(v),v=null,L=null,c.call(i,h)}function C(t){var e=t?"addEventListener":"removeEventListener";i[e](b,p.show,!1),i[e](u[0],p.show,!1),i[e](u[1],p.hide,!1)}p.show=function(){clearTimeout(L),L=setTimeout((function(){if(null===v){if(c.call(i,r),r.defaultPrevented)return;!1!==function(){if(n=A()){if(v=document.createElement("div"),y.template){var t=document.createElement("div");t.innerHTML=y.template.trim(),v.className=t.firstChild.className,v.innerHTML=t.firstChild.innerHTML,s(".tooltip-inner",v).innerHTML=n.trim()}else{var e=document.createElement("div");e.classList.add("arrow"),v.appendChild(e);var i=document.createElement("div");i.classList.add("tooltip-inner"),v.appendChild(i),i.innerHTML=n}v.style.left="0",v.style.top="0",v.setAttribute("role","tooltip"),v.classList.contains("tooltip")||v.classList.add("tooltip"),v.classList.contains(y.animation)||v.classList.add(y.animation),v.classList.contains(a)||v.classList.add(a),y.container.appendChild(v)}}()&&(w(i,v,y.placement,y.container),v.classList.contains("show")||v.classList.add("show"),y.animation?o(v,k):k())}}),20)},p.hide=function(){clearTimeout(L),L=setTimeout((function(){if(v&&v.classList.contains("show")){if(c.call(i,f),f.defaultPrevented)return;v.classList.remove("show"),y.animation?o(v,x):x()}}),y.delay)},p.toggle=function(){v?p.hide():p.show()},p.dispose=function(){C(),p.hide(),i.setAttribute("title",i.getAttribute("data-original-title")),i.removeAttribute("data-original-title"),delete i.Tooltip},(i=s(t)).Tooltip&&i.Tooltip.dispose();var N=i.getAttribute("data-animation"),P=i.getAttribute("data-placement"),H=i.getAttribute("data-delay"),S=i.getAttribute("data-container"),B=s(g.container),M=s(S),I=i.closest(".modal");r=l("show","tooltip"),d=l("shown","tooltip"),f=l("hide","tooltip"),h=l("hidden","tooltip");var D=i.closest(".fixed-top"),X=i.closest(".fixed-bottom");y.animation=g.animation&&"fade"!==g.animation?g.animation:N||"fade",y.placement=g.placement?g.placement:P||"top",y.template=g.template?g.template:null,y.delay=parseInt(g.delay||H,10)||200,y.container=B||M||D||X||I||document.body,a="bs-tooltip-"+y.placement,(n=A())&&(i.Tooltip||(i.setAttribute("data-original-title",n),i.removeAttribute("title"),C(1)),i.Tooltip=p)}var C={};function N(t){var e=t instanceof Element?t:document;Object.keys(C).forEach((function(t){var i,n;i=C[t][0],n=e.querySelectorAll(C[t][1]),Array.from(n).map((function(t){return new i(t)}))}))}C.Alert=[r,'[data-dismiss="alert"]'],C.Button=[d,'[data-toggle="buttons"]'],C.Carousel=[h,'[data-ride="carousel"]'],C.Collapse=[g,'[data-toggle="collapse"]'],C.Dropdown=[v,'[data-toggle="dropdown"]'],C.Modal=[L,'[data-toggle="modal"]'],C.Popover=[A,'[data-toggle="popover"],[data-tip="popover"]'],C.ScrollSpy=[T,'[data-spy="scroll"]'],C.Tab=[E,'[data-toggle="tab"]'],C.Toast=[k,'[data-dismiss="toast"]'],C.Tooltip=[x,'[data-toggle="tooltip"],[data-tip="tooltip"]'],document.body?N():document.addEventListener("DOMContentLoaded",(function t(){N(),document.removeEventListener("DOMContentLoaded",t,!1)}),!1);return{Alert:r,Button:d,Carousel:h,Collapse:g,Dropdown:v,Modal:L,Popover:A,ScrollSpy:T,Tab:E,Toast:k,Tooltip:x,initCallback:N,removeDataAPI:function(t){var e=t instanceof Element?t:document;Object.keys(C).forEach((function(t){var i,n;i=t,n=e.querySelectorAll(C[t][1]),Array.from(n).map((function(t){return t[i].dispose()}))}))},componentsInit:C,Version:"3.0.15-alpha2"}})); |
/*! | ||
* Native JavaScript for Bootstrap Alert v3.0.15-alpha1 (https://thednp.github.io/bootstrap.native/) | ||
* Native JavaScript for Bootstrap Alert v3.0.15-alpha2 (https://thednp.github.io/bootstrap.native/) | ||
* Copyright 2015-2021 © dnp_theme | ||
@@ -4,0 +4,0 @@ * Licensed under MIT (https://github.com/thednp/bootstrap.native/blob/master/LICENSE) |
/*! | ||
* Native JavaScript for Bootstrap Alert v3.0.15-alpha1 (https://thednp.github.io/bootstrap.native/) | ||
* Native JavaScript for Bootstrap Alert v3.0.15-alpha2 (https://thednp.github.io/bootstrap.native/) | ||
* Copyright 2015-2021 © dnp_theme | ||
@@ -4,0 +4,0 @@ * Licensed under MIT (https://github.com/thednp/bootstrap.native/blob/master/LICENSE) |
/*! | ||
* Native JavaScript for Bootstrap Button v3.0.15-alpha1 (https://thednp.github.io/bootstrap.native/) | ||
* Native JavaScript for Bootstrap Button v3.0.15-alpha2 (https://thednp.github.io/bootstrap.native/) | ||
* Copyright 2015-2021 © dnp_theme | ||
@@ -4,0 +4,0 @@ * Licensed under MIT (https://github.com/thednp/bootstrap.native/blob/master/LICENSE) |
/*! | ||
* Native JavaScript for Bootstrap Button v3.0.15-alpha1 (https://thednp.github.io/bootstrap.native/) | ||
* Native JavaScript for Bootstrap Button v3.0.15-alpha2 (https://thednp.github.io/bootstrap.native/) | ||
* Copyright 2015-2021 © dnp_theme | ||
@@ -4,0 +4,0 @@ * Licensed under MIT (https://github.com/thednp/bootstrap.native/blob/master/LICENSE) |
/*! | ||
* Native JavaScript for Bootstrap Carousel v3.0.15-alpha1 (https://thednp.github.io/bootstrap.native/) | ||
* Native JavaScript for Bootstrap Carousel v3.0.15-alpha2 (https://thednp.github.io/bootstrap.native/) | ||
* Copyright 2015-2021 © dnp_theme | ||
@@ -4,0 +4,0 @@ * Licensed under MIT (https://github.com/thednp/bootstrap.native/blob/master/LICENSE) |
/*! | ||
* Native JavaScript for Bootstrap Carousel v3.0.15-alpha1 (https://thednp.github.io/bootstrap.native/) | ||
* Native JavaScript for Bootstrap Carousel v3.0.15-alpha2 (https://thednp.github.io/bootstrap.native/) | ||
* Copyright 2015-2021 © dnp_theme | ||
@@ -4,0 +4,0 @@ * Licensed under MIT (https://github.com/thednp/bootstrap.native/blob/master/LICENSE) |
/*! | ||
* Native JavaScript for Bootstrap Collapse v3.0.15-alpha1 (https://thednp.github.io/bootstrap.native/) | ||
* Native JavaScript for Bootstrap Collapse v3.0.15-alpha2 (https://thednp.github.io/bootstrap.native/) | ||
* Copyright 2015-2021 © dnp_theme | ||
@@ -4,0 +4,0 @@ * Licensed under MIT (https://github.com/thednp/bootstrap.native/blob/master/LICENSE) |
/*! | ||
* Native JavaScript for Bootstrap Collapse v3.0.15-alpha1 (https://thednp.github.io/bootstrap.native/) | ||
* Native JavaScript for Bootstrap Collapse v3.0.15-alpha2 (https://thednp.github.io/bootstrap.native/) | ||
* Copyright 2015-2021 © dnp_theme | ||
@@ -4,0 +4,0 @@ * Licensed under MIT (https://github.com/thednp/bootstrap.native/blob/master/LICENSE) |
/*! | ||
* Native JavaScript for Bootstrap Dropdown v3.0.15-alpha1 (https://thednp.github.io/bootstrap.native/) | ||
* Native JavaScript for Bootstrap Dropdown v3.0.15-alpha2 (https://thednp.github.io/bootstrap.native/) | ||
* Copyright 2015-2021 © dnp_theme | ||
@@ -4,0 +4,0 @@ * Licensed under MIT (https://github.com/thednp/bootstrap.native/blob/master/LICENSE) |
/*! | ||
* Native JavaScript for Bootstrap Dropdown v3.0.15-alpha1 (https://thednp.github.io/bootstrap.native/) | ||
* Native JavaScript for Bootstrap Dropdown v3.0.15-alpha2 (https://thednp.github.io/bootstrap.native/) | ||
* Copyright 2015-2021 © dnp_theme | ||
@@ -4,0 +4,0 @@ * Licensed under MIT (https://github.com/thednp/bootstrap.native/blob/master/LICENSE) |
/*! | ||
* Native JavaScript for Bootstrap Modal v3.0.15-alpha1 (https://thednp.github.io/bootstrap.native/) | ||
* Native JavaScript for Bootstrap Modal v3.0.15-alpha2 (https://thednp.github.io/bootstrap.native/) | ||
* Copyright 2015-2021 © dnp_theme | ||
@@ -4,0 +4,0 @@ * Licensed under MIT (https://github.com/thednp/bootstrap.native/blob/master/LICENSE) |
/*! | ||
* Native JavaScript for Bootstrap Modal v3.0.15-alpha1 (https://thednp.github.io/bootstrap.native/) | ||
* Native JavaScript for Bootstrap Modal v3.0.15-alpha2 (https://thednp.github.io/bootstrap.native/) | ||
* Copyright 2015-2021 © dnp_theme | ||
@@ -4,0 +4,0 @@ * Licensed under MIT (https://github.com/thednp/bootstrap.native/blob/master/LICENSE) |
/*! | ||
* Native JavaScript for Bootstrap Popover v3.0.15-alpha1 (https://thednp.github.io/bootstrap.native/) | ||
* Native JavaScript for Bootstrap Popover v3.0.15-alpha2 (https://thednp.github.io/bootstrap.native/) | ||
* Copyright 2015-2021 © dnp_theme | ||
@@ -4,0 +4,0 @@ * Licensed under MIT (https://github.com/thednp/bootstrap.native/blob/master/LICENSE) |
/*! | ||
* Native JavaScript for Bootstrap Popover v3.0.15-alpha1 (https://thednp.github.io/bootstrap.native/) | ||
* Native JavaScript for Bootstrap Popover v3.0.15-alpha2 (https://thednp.github.io/bootstrap.native/) | ||
* Copyright 2015-2021 © dnp_theme | ||
@@ -4,0 +4,0 @@ * Licensed under MIT (https://github.com/thednp/bootstrap.native/blob/master/LICENSE) |
/*! | ||
* Native JavaScript for Bootstrap ScrollSpy v3.0.15-alpha1 (https://thednp.github.io/bootstrap.native/) | ||
* Native JavaScript for Bootstrap ScrollSpy v3.0.15-alpha2 (https://thednp.github.io/bootstrap.native/) | ||
* Copyright 2015-2021 © dnp_theme | ||
@@ -4,0 +4,0 @@ * Licensed under MIT (https://github.com/thednp/bootstrap.native/blob/master/LICENSE) |
/*! | ||
* Native JavaScript for Bootstrap ScrollSpy v3.0.15-alpha1 (https://thednp.github.io/bootstrap.native/) | ||
* Native JavaScript for Bootstrap ScrollSpy v3.0.15-alpha2 (https://thednp.github.io/bootstrap.native/) | ||
* Copyright 2015-2021 © dnp_theme | ||
@@ -4,0 +4,0 @@ * Licensed under MIT (https://github.com/thednp/bootstrap.native/blob/master/LICENSE) |
/*! | ||
* Native JavaScript for Bootstrap Tab v3.0.15-alpha1 (https://thednp.github.io/bootstrap.native/) | ||
* Native JavaScript for Bootstrap Tab v3.0.15-alpha2 (https://thednp.github.io/bootstrap.native/) | ||
* Copyright 2015-2021 © dnp_theme | ||
@@ -4,0 +4,0 @@ * Licensed under MIT (https://github.com/thednp/bootstrap.native/blob/master/LICENSE) |
/*! | ||
* Native JavaScript for Bootstrap Tab v3.0.15-alpha1 (https://thednp.github.io/bootstrap.native/) | ||
* Native JavaScript for Bootstrap Tab v3.0.15-alpha2 (https://thednp.github.io/bootstrap.native/) | ||
* Copyright 2015-2021 © dnp_theme | ||
@@ -4,0 +4,0 @@ * Licensed under MIT (https://github.com/thednp/bootstrap.native/blob/master/LICENSE) |
/*! | ||
* Native JavaScript for Bootstrap Toast v3.0.15-alpha1 (https://thednp.github.io/bootstrap.native/) | ||
* Native JavaScript for Bootstrap Toast v3.0.15-alpha2 (https://thednp.github.io/bootstrap.native/) | ||
* Copyright 2015-2021 © dnp_theme | ||
@@ -4,0 +4,0 @@ * Licensed under MIT (https://github.com/thednp/bootstrap.native/blob/master/LICENSE) |
/*! | ||
* Native JavaScript for Bootstrap Toast v3.0.15-alpha1 (https://thednp.github.io/bootstrap.native/) | ||
* Native JavaScript for Bootstrap Toast v3.0.15-alpha2 (https://thednp.github.io/bootstrap.native/) | ||
* Copyright 2015-2021 © dnp_theme | ||
@@ -4,0 +4,0 @@ * Licensed under MIT (https://github.com/thednp/bootstrap.native/blob/master/LICENSE) |
/*! | ||
* Native JavaScript for Bootstrap Tooltip v3.0.15-alpha1 (https://thednp.github.io/bootstrap.native/) | ||
* Native JavaScript for Bootstrap Tooltip v3.0.15-alpha2 (https://thednp.github.io/bootstrap.native/) | ||
* Copyright 2015-2021 © dnp_theme | ||
@@ -4,0 +4,0 @@ * Licensed under MIT (https://github.com/thednp/bootstrap.native/blob/master/LICENSE) |
/*! | ||
* Native JavaScript for Bootstrap Tooltip v3.0.15-alpha1 (https://thednp.github.io/bootstrap.native/) | ||
* Native JavaScript for Bootstrap Tooltip v3.0.15-alpha2 (https://thednp.github.io/bootstrap.native/) | ||
* Copyright 2015-2021 © dnp_theme | ||
@@ -4,0 +4,0 @@ * Licensed under MIT (https://github.com/thednp/bootstrap.native/blob/master/LICENSE) |
{ | ||
"name": "bootstrap.native", | ||
"version": "3.0.15-alpha1", | ||
"version": "3.0.15-alpha2", | ||
"description": "Native JavaScript for Bootstrap, the sweetest JavaScript library without jQuery.", | ||
@@ -5,0 +5,0 @@ "main": "dist/bootstrap-native.min.js", |
@@ -106,9 +106,10 @@ /* Native JavaScript for Bootstrap 5 | Carousel | ||
e.preventDefault(); | ||
const eventTarget = e.target; // event target | the current active item | ||
const self = eventTarget.closest(carouselSelector)[carouselComponent]; | ||
const newIndex = eventTarget.getAttribute(dataBsSlideTo); | ||
const { target } = e; | ||
const self = target.closest(carouselSelector)[carouselComponent]; | ||
if (self.isAnimating) return; | ||
if (eventTarget && !hasClass(eventTarget, activeClass) // event target is not active | ||
const newIndex = target.getAttribute(dataBsSlideTo); | ||
if (target && !hasClass(target, activeClass) // event target is not active | ||
&& newIndex) { // AND has the specific attribute | ||
@@ -120,10 +121,10 @@ self.to(+newIndex); // do the slide | ||
function carouselControlsHandler(e) { | ||
const eventTarget = e.currentTarget || e.srcElement; | ||
const self = eventTarget.closest(carouselSelector)[carouselComponent]; | ||
e.preventDefault(); | ||
const that = this; | ||
const self = that.closest(carouselSelector)[carouselComponent]; | ||
const { controls } = self; | ||
e.preventDefault(); | ||
if (controls[1] && eventTarget === controls[1]) { | ||
if (controls[1] && that === controls[1]) { | ||
self.next(); | ||
} else if (controls[1] && eventTarget === controls[0]) { | ||
} else if (controls[1] && that === controls[0]) { | ||
self.prev(); | ||
@@ -168,2 +169,3 @@ } | ||
function carouselTouchMoveHandler(e) { | ||
const { changedTouches, type } = e; | ||
const self = this[carouselComponent]; | ||
@@ -173,6 +175,6 @@ | ||
currentX = e.changedTouches[0].pageX; | ||
currentX = changedTouches[0].pageX; | ||
// cancel touch if more than one changedTouches detected | ||
if (e.type === 'touchmove' && e.changedTouches.length > 1) { | ||
if (type === 'touchmove' && changedTouches.length > 1) { | ||
e.preventDefault(); | ||
@@ -294,3 +296,3 @@ } | ||
self.indicator = queryElement('.carousel-indicators', element); | ||
self.indicators = (self.indicator && self.indicator.getElementsByTagName('LI')) || []; | ||
self.indicators = (self.indicator && self.indicator.querySelectorAll(`[${dataBsSlideTo}]`)) || []; | ||
@@ -297,0 +299,0 @@ // set JavaScript and DATA API options |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
21259
0.01%0
-100%961064
-0.03%