(function(z,g){"function"===typeof define&&define.amd?define([],g):"object"===typeof module&&module.exports?module.exports=g():(g=g(),z.Alert=g.Alert,z.Button=g.Button,z.Carousel=g.Carousel,z.Collapse=g.Collapse,z.Dropdown=g.Dropdown,z.Modal=g.Modal,z.Popover=g.Popover,z.ScrollSpy=g.ScrollSpy,z.Tab=g.Tab,z.Tooltip=g.Tooltip)})(this,function(){var z="undefined"!==typeof global?global:this||window,g=document,E=g.documentElement,Q=z.BSN={},D=Q.supports=[],K="onmouseleave"in g?["mouseenter","mouseleave"]: ["mouseover","mouseout"],ja=/\b(top|bottom|left|right)+/,P=0,N="WebkitTransition"in E.style||"transition"in E.style,T="WebkitTransition"in E.style?"webkitTransitionEnd":"transitionend",ka="WebkitDuration"in E.style?"webkitTransitionDuration":"transitionDuration",O=function(a){a.focus?a.focus():a.setActive()},w=function(a,c){a.classList.add(c)},y=function(a,c){a.classList.remove(c)},p=function(a,c){return a.classList.contains(c)},I=function(a,c){return[].slice.call(a.getElementsByClassName(c))},q= function(a,c){c=c?c:g;return"object"===typeof a?a:c.querySelector(a)},G=function(a,c){var e=c.charAt(0),b=c.substr(1);if("."===e)for(;a&&a!==g;a=a.parentNode){if(null!==q(c,a.parentNode)&&p(a,b))return a}else if("#"===e)for(;a&&a!==g;a=a.parentNode)if(a.id===b)return a;return!1},u=function(a,c,e){a.addEventListener(c,e,!1)},L=function(a,c,e){a.removeEventListener(c,e,!1)},U=function(a,c,e){u(a,c,function f(m){e(m);L(a,c,f)})},R=function(a){a=z.getComputedStyle(a)[ka];a=parseFloat(a);a="number"!== typeof a||isNaN(a)?0:1E3*a;return a+50},H=function(a,c){var e=0,b=R(a);N&&U(a,T,function(a){c(a);e=1});setTimeout(function(){!e&&c()},b)},x=function(a,c,e){a=new CustomEvent(a+".bs."+c);a.relatedTarget=e;this.dispatchEvent(a)},V=function(){return{y:z.pageYOffset||E.scrollTop,x:z.pageXOffset||E.scrollLeft}},W=function(a,c,e,b){var m=c.offsetWidth,f=c.offsetHeight,h=E.clientWidth||g.body.clientWidth,n=E.clientHeight||g.body.clientHeight;a=a.getBoundingClientRect();b=b===g.body?V():{x:b.offsetLeft+b.scrollLeft, y:b.offsetTop+b.scrollTop};var v=a.right-a.left,k=a.bottom-a.top,d=p(c,"popover"),A=q(".arrow",c),l=0>a.top+k/2-f/2,r=0>a.left+v/2-m/2,x=a.left+m/2+v/2>=h,t=a.top+f/2+k/2>=n;var C=0>a.top-f;var F=0>a.left-m;n=a.top+f+k>=n;var M=a.left+m+v>=h;e=("left"===e||"right"===e)&&F&&M?"top":e;e="top"===e&&C?"bottom":e;e="bottom"===e&&n?"top":e;e="left"===e&&F?"right":e;e="right"===e&&M?"left":e;-1===c.className.indexOf(e)&&(c.className=c.className.replace(ja,e));n=A.offsetWidth;C=A.offsetHeight;if("left"=== e||"right"===e){var J="left"===e?a.left+b.x-m-(d?n:0):a.left+b.x+v;if(l){var w=a.top+b.y;var u=k/2-n}else t?(w=a.top+b.y-f+k,u=f-k/2-n):(w=a.top+b.y-f/2+k/2,u=f/2-(d?.9*C:C/2))}else if("top"===e||"bottom"===e)if(w="top"===e?a.top+b.y-f-(d?C:0):a.top+b.y+k,r){J=0;var y=a.left+v/2-n}else x?(J=h-1.01*m,y=m-(h-a.left)+v/2-n/2):(J=a.left+b.x-m/2+v/2,y=m/2-n/2);c.style.top=w+"px";c.style.left=J+"px";u&&(A.style.top=u+"px");y&&(A.style.left=y+"px")};Q.version="2.0.23";var X=function(a){a=q(a);var c=this, e=G(a,".alert"),b=function(b){e=G(b.target,".alert");(a=q('[data-dismiss="alert"]',e))&&e&&(a===b.target||a.contains(b.target))&&c.close()},m=function(){x.call(e,"closed","alert");L(a,"click",b);e.parentNode.removeChild(e)};this.close=function(){e&&a&&p(e,"show")&&(x.call(e,"close","alert"),y(e,"show"),e&&(p(e,"fade")?H(e,m):m()))};"Alert"in a||u(a,"click",b);a.Alert=c};D.push(["Alert",X,'[data-dismiss="alert"]']);var Y=function(a){a=q(a);var c=!1,e=function(a){32===(a.which||a.keyCode)&&a.target=== g.activeElement&&m(a)},b=function(a){32===(a.which||a.keyCode)&&a.preventDefault()},m=function(b){var e="LABEL"===b.target.tagName?b.target:"LABEL"===b.target.parentNode.tagName?b.target.parentNode:null;if(e){b=I(b.target.parentNode,"btn");var f=e.getElementsByTagName("INPUT")[0];if(f){"checkbox"===f.type&&(f.checked?(y(e,"active"),f.getAttribute("checked"),f.removeAttribute("checked"),f.checked=!1):(w(e,"active"),f.getAttribute("checked"),f.setAttribute("checked","checked"),f.checked=!0),c||(c=!0, x.call(f,"change","button"),x.call(a,"change","button")));if("radio"===f.type&&!c&&!f.checked){w(e,"active");f.setAttribute("checked","checked");f.checked=!0;x.call(f,"change","button");x.call(a,"change","button");c=!0;f=0;for(var h=b.length;fb||c===A-1&&0===b)l=h.direction="right";0>b?b=A-1:b===A&&(b=0);n=b;var e="left"===l?"next":"prev";x.call(a,"slide","carousel",d[b]);k=!0;clearInterval(v);F(b);N&&p(a,"slide")?(w(d[b],"carousel-item-"+e),d[b].offsetWidth,w(d[b],"carousel-item-"+l),w(d[c],"carousel-item-"+l),U(d[b],T,function(f){f=f.target!== d[b]?1E3*f.elapsedTime+100:20;k&&setTimeout(function(){k=!1;w(d[b],"active");y(d[c],"active");y(d[b],"carousel-item-"+e);y(d[b],"carousel-item-"+l);y(d[c],"carousel-item-"+l);x.call(a,"slid","carousel",d[b]);g.hidden||!h.interval||p(a,"paused")||h.cycle()},f)})):(w(d[b],"active"),d[b].offsetWidth,y(d[c],"active"),setTimeout(function(){k=!1;h.interval&&!p(a,"paused")&&h.cycle();x.call(a,"slid","carousel",d[b])},100))}};this.getActiveIndex=function(){return d.indexOf(I(a,"carousel-item active")[0])|| 0};"Carousel"in a||(h.pause&&h.interval&&(u(a,K[0],b),u(a,K[1],e),u(a,"touchstart",b),u(a,"touchend",e)),B&&u(B,"click",f),r&&u(r,"click",f),c&&u(c,"click",m),!0===h.keyboard&&u(z,"keydown",C));0>h.getActiveIndex()&&(d.length&&w(d[0],"active"),t.length&&F(0));h.interval&&h.cycle();a.Carousel=h};D.push(["Carousel",Z,'[data-ride="carousel"]']);var aa=function(a,c){a=q(a);c=c||{};var e=null,b=null,m=this,f=a.getAttribute("data-parent"),h,g,v=function(a,b){x.call(a,"show","collapse");a.isAnimating=!0; w(a,"collapsing");y(a,"collapse");a.style.height=a.scrollHeight+"px";H(a,function(){a.isAnimating=!1;a.setAttribute("aria-expanded","true");b.setAttribute("aria-expanded","true");y(a,"collapsing");w(a,"collapse");w(a,"show");a.style.height="";x.call(a,"shown","collapse")})},k=function(a,b){x.call(a,"hide","collapse");a.isAnimating=!0;a.style.height=a.scrollHeight+"px";y(a,"collapse");y(a,"show");w(a,"collapsing");a.offsetWidth;a.style.height="0px";H(a,function(){a.isAnimating=!1;a.setAttribute("aria-expanded", "false");b.setAttribute("aria-expanded","false");y(a,"collapsing");w(a,"collapse");a.style.height="";x.call(a,"hidden","collapse")})};this.toggle=function(a){a.preventDefault();p(b,"show")?m.hide():m.show()};this.hide=function(){b.isAnimating||(k(b,a),w(a,"collapsed"))};this.show=function(){e&&(g=(h=q(".collapse.show",e))&&(q('[data-toggle="collapse"][data-target="#'+h.id+'"]',e)||q('[data-toggle="collapse"][href="#'+h.id+'"]',e)));if(!b.isAnimating||h&&!h.isAnimating)g&&h!==b&&(k(h,g),w(g,"collapsed")), v(b,a),y(a,"collapsed")};"Collapse"in a||u(a,"click",m.toggle);b=function(){var b=a.href&&a.getAttribute("href"),c=a.getAttribute("data-target");return(b=b||c&&"#"===c.charAt(0)&&c)&&q(b)}();b.isAnimating=!1;e=q(c.parent)||f&&G(a,f);a.Collapse=m};D.push(["Collapse",aa,'[data-toggle="collapse"]']);var ba=function(a,c){a=q(a);this.persist=!0===c||"true"===a.getAttribute("data-persist")||!1;var e=this,b=a.parentNode,m=null,f=q(".dropdown-menu",b),h=function(){for(var a=f.children,b=[],c=0;cE.clientHeight;a=g.createElement("div");a.className="modal-scrollbar-measure";g.body.appendChild(a);c=a.offsetWidth-a.clientWidth;g.body.removeChild(a); k=c},B=function(){b.style.paddingLeft=!n&&v?k+"px":"";b.style.paddingRight=n&&!v?k+"px":""},t=function(){P=1;var a=g.createElement("div");d=q(".modal-backdrop");null===d&&(a.setAttribute("class","modal-backdrop fade"),d=a,g.body.appendChild(d))},C=function(){(d=q(".modal-backdrop"))&&null!==d&&"object"===typeof d&&(P=0,g.body.removeChild(d),d=null);x.call(b,"hidden","modal")},F=function(){p(b,"show")?u(g,"keydown",S):L(g,"keydown",S)},M=function(){p(b,"show")?u(z,"resize",f.update):L(z,"resize",f.update)}, J=function(){p(b,"show")?u(b,"click",K):L(b,"click",K)},D=function(){O(b);x.call(b,"shown","modal",h)},G=function(){b.style.display="";a&&O(a);if(!I(g,"modal show")[0]){b.style.paddingLeft="";b.style.paddingRight="";g.body.style.paddingRight="";if(A.length)for(var c=0;c\u00d7':r,t.appendChild(b)),b=g.createElement("div"),b.setAttribute("class","popover-body"),b.innerHTML=l.dismissible&&null===r?B+'':B,t.appendChild(b)):(b=g.createElement("div"), b.innerHTML=l.template,t.innerHTML=b.firstChild.innerHTML);l.container.appendChild(t);t.style.display="block";t.setAttribute("class","popover bs-popover-"+F+" "+l.animation);W(a,t,F,l.container);!p(t,"show")&&w(t,"show");x.call(a,"show","popover");l.animation?H(t,D):D()}},20)};this.hide=function(){clearTimeout(C);C=setTimeout(function(){t&&null!==t&&p(t,"show")&&(x.call(a,"hide","popover"),y(t,"show"),l.animation?H(t,E):E())},l.delay)};"Popover"in a||("hover"===l.trigger?(u(a,K[0],l.show),l.dismissible|| u(a,K[1],l.hide)):"click"!=l.trigger&&"focus"!=l.trigger||u(a,l.trigger,l.toggle));a.Popover=l}};D.push(["Popover",da,'[data-toggle="popover"]']);var ea=function(a,c){a=q(a);var e=q(a.getAttribute("data-target")),b=a.getAttribute("data-offset");c=c||{};if(c.target||e){e=(e=c.target&&q(c.target)||e)&&e.getElementsByTagName("A");var m=parseInt(b||c.offset)||10,f=[],h=[],g;c=a.offsetHeight=(v?q.top+g:n.offsetTop)-m&&z>g;!u&&n?p(e,"active")||(w(e,"active"),k&&!p(k,"active")&&w(k,"active"),x.call(a,"activate","scrollspy",f[d])):!n&&p(e,"active")&&(y(e, "active"),k&&p(k,"active")&&!I(e.parentNode,"active").length&&y(k,"active"))}};"ScrollSpy"in a||(u(c,"scroll",this.refresh),u(z,"resize",this.refresh));this.refresh();a.ScrollSpy=this}};D.push(["ScrollSpy",ea,'[data-spy="scroll"]']);var fa=function(a,c){a=q(a);var e=a.getAttribute("data-height");c=c||{};this.height=N?c.height||"true"===e:!1;var b=this,g,f=G(a,".nav"),h=!1,n=f&&q(".dropdown-toggle",f),v,k,d,A,l,r,z=function(){h.style.height="";y(h,"collapsing");f.isAnimating=!1},t=function(){h?l?z(): setTimeout(function(){h.style.height=r+"px";h.offsetWidth;H(h,z)},50):f.isAnimating=!1;x.call(g,"shown","tab",v)},C=function(){h&&(k.style["float"]="left",d.style["float"]="left",A=k.scrollHeight);w(d,"active");x.call(g,"show","tab",v);y(k,"active");x.call(v,"hidden","tab",g);h&&(r=d.scrollHeight,l=r===A,w(h,"collapsing"),h.style.height=A+"px",h.offsetHeight,k.style["float"]="",d.style["float"]="");p(d,"fade")?setTimeout(function(){w(d,"show");H(d,t)},20):t()};if(f){f.isAnimating=!1;var F=function(){var a= I(f,"active"),b;1!==a.length||p(a[0].parentNode,"dropdown")?1