// Native Javascript for Bootstrap 4 v2.0.23 | © dnp_theme | MIT-License
!function(t,e){if("function"==typeof define&&define.amd)define([],e);else if("object"==typeof module&&module.exports)module.exports=e();else{var n=e();t.Alert=n.Alert,t.Button=n.Button,t.Carousel=n.Carousel,t.Collapse=n.Collapse,t.Dropdown=n.Dropdown,t.Modal=n.Modal,t.Popover=n.Popover,t.ScrollSpy=n.ScrollSpy,t.Tab=n.Tab,t.Tooltip=n.Tooltip}}(this,function(){"use strict";var t="undefined"!=typeof global?global:this||window,e=document,n=e.documentElement,i="body",o=t.BSN={},a=o.supports=[],l="data-toggle",r="data-dismiss",c="data-spy",u="data-ride",s="Alert",f="Button",h="Carousel",d="Collapse",v="Dropdown",p="Modal",m="Popover",g="ScrollSpy",w="Tab",b="Tooltip",y="data-backdrop",T="data-keyboard",x="data-target",C="data-interval",A="data-height",k="data-pause",I="data-title",L="data-original-title",N="data-dismissible",E="data-trigger",S="data-animation",B="data-container",M="data-placement",D="data-delay",P="backdrop",H="keyboard",O="delay",W="content",j="target",q="interval",R="pause",U="animation",z="placement",X="container",Y="offsetTop",F="offsetLeft",G="scrollTop",J="scrollLeft",K="clientWidth",Q="clientHeight",V="offsetWidth",Z="offsetHeight",$="innerWidth",_="innerHeight",tt="scrollHeight",et="height",nt="aria-expanded",it="aria-hidden",ot="click",at="hover",lt="keydown",rt="keyup",ct="resize",ut="scroll",st="show",ft="shown",ht="hide",dt="hidden",vt="close",pt="closed",mt="slid",gt="slide",wt="change",bt="getAttribute",yt="setAttribute",Tt="hasAttribute",xt="createElement",Ct="appendChild",At="innerHTML",kt="getElementsByTagName",It="preventDefault",Lt="getBoundingClientRect",Nt="querySelectorAll",Et="getElementsByClassName",St="indexOf",Bt="parentNode",Mt="length",Dt="toLowerCase",Pt="Transition",Ht="Webkit",Ot="style",Wt="push",jt="tabindex",qt="contains",Rt="active",Ut="show",zt="collapsing",Xt="left",Yt="right",Ft="top",Gt="bottom",Jt="onmouseleave"in e?["mouseenter","mouseleave"]:["mouseover","mouseout"],Kt=/\b(top|bottom|left|right)+/,Qt=0,Vt="fixed-top",Zt="fixed-bottom",$t=Ht+Pt in n[Ot]||Pt[Dt]()in n[Ot],_t=Ht+Pt in n[Ot]?Ht[Dt]()+Pt+"End":Pt[Dt]()+"end",te=function(t){t.focus?t.focus():t.setActive()},ee=function(t,e){t.classList.add(e)},ne=function(t,e){t.classList.remove(e)},ie=function(t,e){return t.classList[qt](e)},oe=function(t,e){return[].slice.call(t[Et](e))},ae=function(t,n){var i=n?n:e;return"object"==typeof t?t:i.querySelector(t)},le=function(t,n){var i=n.charAt(0),o=n.substr(1);if("."===i){for(;t&&t!==e;t=t[Bt])if(null!==ae(n,t[Bt])&&ie(t,o))return t}else if("#"===i)for(;t&&t!==e;t=t[Bt])if(t.id===o)return t;return!1},re=function(t,e,n){t.addEventListener(e,n,!1)},ce=function(t,e,n){t.removeEventListener(e,n,!1)},ue=function(t,e,n){re(t,e,function i(o){n(o),ce(t,e,i)})},se=function(t,e){$t?ue(t,_t,function(t){e(t)}):e()},fe=function(t,e,n){var i=new CustomEvent(t+".bs."+e);i.relatedTarget=n,this.dispatchEvent(i)},he=function(){return{y:t.pageYOffset||n[G],x:t.pageXOffset||n[J]}},de=function(t,o,a,l){var r,c,u,s,f,h,d={w:o[V],h:o[Z]},v=n[K]||e[i][K],p=n[Q]||e[i][Q],m=t[Lt](),g=l===e[i]?he():{x:l[F]+l[J],y:l[Y]+l[G]},w={w:m[Yt]-m[Xt],h:m[Gt]-m[Ft]},b=ie(o,"popover"),y=ae(".arrow",o),T=m[Ft]+w.h/2-d.h/2<0,x=m[Xt]+w.w/2-d.w/2<0,C=m[Xt]+d.w/2+w.w/2>=v,A=m[Ft]+d.h/2+w.h/2>=p,k=m[Ft]-d.h<0,I=m[Xt]-d.w<0,L=m[Ft]+d.h+w.h>=p,N=m[Xt]+d.w+w.w>=v;a=(a===Xt||a===Yt)&&I&&N?Ft:a,a=a===Ft&&k?Gt:a,a=a===Gt&&L?Ft:a,a=a===Xt&&I?Yt:a,a=a===Yt&&N?Xt:a,o.className[St](a)===-1&&(o.className=o.className.replace(Kt,a)),f=y[V],h=y[Z],a===Xt||a===Yt?(c=a===Xt?m[Xt]+g.x-d.w-(b?f:0):m[Xt]+g.x+w.w,T?(r=m[Ft]+g.y,u=w.h/2-f):A?(r=m[Ft]+g.y-d.h+w.h,u=d.h-w.h/2-f):(r=m[Ft]+g.y-d.h/2+w.h/2,u=d.h/2-(b?.9*h:h/2))):a!==Ft&&a!==Gt||(r=a===Ft?m[Ft]+g.y-d.h-(b?h:0):m[Ft]+g.y+w.h,x?(c=0,s=m[Xt]+w.w/2-f):C?(c=v-1.01*d.w,s=d.w-(v-m[Xt])+w.w/2-f/2):(c=m[Xt]+g.x-d.w/2+w.w/2,s=d.w/2-f/2)),o[Ot][Ft]=r+"px",o[Ot][Xt]=c+"px",u&&(y[Ot][Ft]=u+"px"),s&&(y[Ot][Xt]=s+"px")};o.version="2.0.23";var ve=function(t){t=ae(t);var e=this,n="alert",i=le(t,"."+n),o=function(){ie(i,"fade")?se(i,l):l()},a=function(o){i=le(o[j],"."+n),t=ae("["+r+'="'+n+'"]',i),t&&i&&(t===o[j]||t[qt](o[j]))&&e.close()},l=function(){fe.call(i,pt,n),ce(t,ot,a),i[Bt].removeChild(i)};this.close=function(){i&&t&&ie(i,Ut)&&(fe.call(i,vt,n),ne(i,Ut),i&&o())},s in t||re(t,ot,a),t[s]=e};a[Wt]([s,ve,"["+r+'="alert"]']);var pe=function(t){t=ae(t);var n=!1,i="button",o="checked",a="LABEL",l="INPUT",r=function(t){var n=t.which||t.keyCode;32===n&&t[j]===e.activeElement&&u(t)},c=function(t){var e=t.which||t.keyCode;32===e&&t[It]()},u=function(e){var r=e[j].tagName===a?e[j]:e[j][Bt].tagName===a?e[j][Bt]:null;if(r){var c=e[j],u=oe(c[Bt],"btn"),s=r[kt](l)[0];if(s){if("checkbox"===s.type&&(s[o]?(ne(r,Rt),s[bt](o),s.removeAttribute(o),s[o]=!1):(ee(r,Rt),s[bt](o),s[yt](o,o),s[o]=!0),n||(n=!0,fe.call(s,wt,i),fe.call(t,wt,i))),"radio"===s.type&&!n&&!s[o]){ee(r,Rt),s[yt](o,o),s[o]=!0,fe.call(s,wt,i),fe.call(t,wt,i),n=!0;for(var f=0,h=u[Mt];f<h;f++){var d=u[f],v=d[kt](l)[0];d!==r&&ie(d,Rt)&&(ne(d,Rt),v.removeAttribute(o),v[o]=!1,fe.call(v,wt,i))}}setTimeout(function(){n=!1},50)}}};f in t||(re(t,ot,u),ae("["+jt+"]",t)&&re(t,rt,r),re(t,lt,c));for(var s=oe(t,"btn"),h=s[Mt],d=0;d<h;d++)!ie(s[d],Rt)&&ae("input:checked",s[d])&&ee(s[d],Rt);t[f]=this};a[Wt]([f,pe,"["+l+'="buttons"]']);var me=function(i,o){i=ae(i),o=o||{};var a=i[bt](C),l=o[q],r="false"===a?0:parseInt(a),c=i[bt](k)===at||!1,u="true"===i[bt](T)||!1,s="carousel",f="paused",d="direction",v="carousel-item",p="data-slide-to";this[H]=o[H]===!0||u,this[R]=!(o[R]!==at&&!c)&&at,this[q]="number"==typeof l?l:0===r||r===!1?0:5e3;var m=this,g=i.index=0,w=i.timer=0,b=!1,y=oe(i,v),x=y[Mt],A=this[d]=Xt,I=oe(i,s+"-control-prev")[0],L=oe(i,s+"-control-next")[0],N=ae("."+s+"-indicators",i),E=N&&N[kt]("LI")||[],S=function(){m[q]===!1||ie(i,f)||(ee(i,f),!b&&clearInterval(w))},B=function(){m[q]!==!1&&ie(i,f)&&(ne(i,f),!b&&clearInterval(w),!b&&m.cycle())},M=function(t){if(t[It](),!b){var e=t[j];if(!e||ie(e,Rt)||!e[bt](p))return!1;g=parseInt(e[bt](p),10),m.slideTo(g)}},D=function(t){if(t[It](),!b){var e=t.currentTarget||t.srcElement;e===L?g++:e===I&&g--,m.slideTo(g)}},P=function(t){if(!b){switch(t.which){case 39:g++;break;case 37:g--;break;default:return}m.slideTo(g)}},O=function(){var e=i[Lt](),o=t[_]||n[Q];return e[Ft]<=o&&e[Gt]>=0},W=function(t){for(var e=0,n=E[Mt];e<n;e++)ne(E[e],Rt);E[t]&&ee(E[t],Rt)};this.cycle=function(){w=setInterval(function(){O()&&(g++,m.slideTo(g))},this[q])},this.slideTo=function(t){if(!b){var n,o=this.getActiveIndex();o<t||0===o&&t===x-1?A=m[d]=Xt:(o>t||o===x-1&&0===t)&&(A=m[d]=Yt),t<0?t=x-1:t===x&&(t=0),g=t,n=A===Xt?"next":"prev",fe.call(i,gt,s,y[t]),b=!0,clearInterval(w),W(t),$t&&ie(i,"slide")?(ee(y[t],v+"-"+n),y[t][V],ee(y[t],v+"-"+A),ee(y[o],v+"-"+A),ue(y[o],_t,function(a){var l=a[j]!==y[o]?1e3*a.elapsedTime:0;setTimeout(function(){b=!1,ee(y[t],Rt),ne(y[o],Rt),ne(y[t],v+"-"+n),ne(y[t],v+"-"+A),ne(y[o],v+"-"+A),fe.call(i,mt,s,y[t]),e.hidden||!m[q]||ie(i,f)||m.cycle()},l+100)})):(ee(y[t],Rt),y[t][V],ne(y[o],Rt),setTimeout(function(){b=!1,m[q]&&!ie(i,f)&&m.cycle(),fe.call(i,mt,s,y[t])},100))}},this.getActiveIndex=function(){return y[St](oe(i,v+" active")[0])||0},h in i||(m[R]&&m[q]&&(re(i,Jt[0],S),re(i,Jt[1],B),re(i,"touchstart",S),re(i,"touchend",B)),L&&re(L,ot,D),I&&re(I,ot,D),N&&re(N,ot,M),m[H]===!0&&re(t,lt,P)),m.getActiveIndex()<0&&(y[Mt]&&ee(y[0],Rt),E[Mt]&&W(0)),m[q]&&m.cycle(),i[h]=m};a[Wt]([h,me,"["+u+'="carousel"]']);var ge=function(t,e){t=ae(t),e=e||{};var n=null,i=null,o=this,a=!1,r=t[bt]("data-parent"),c="collapse",u="collapsed",s=function(t,e){fe.call(t,st,c),a=!0,ee(t,zt),ne(t,c),t[Ot][et]=t[tt]+"px",se(t,function(){a=!1,t[yt](nt,"true"),e[yt](nt,"true"),ne(t,zt),ee(t,c),ee(t,Ut),t[Ot][et]="",fe.call(t,ft,c)})},f=function(t,e){fe.call(t,ht,c),a=!0,t[Ot][et]=t[tt]+"px",ne(t,c),ne(t,Ut),ee(t,zt),t[V],t[Ot][et]="0px",se(t,function(){a=!1,t[yt](nt,"false"),e[yt](nt,"false"),ne(t,zt),ee(t,c),t[Ot][et]="",fe.call(t,dt,c)})},h=function(){var e=t.href&&t[bt]("href"),n=t[bt](x),i=e||n&&"#"===n.charAt(0)&&n;return i&&ae(i)};this.toggle=function(t){t[It](),a||(ie(i,Ut)?o.hide():o.show())},this.hide=function(){f(i,t),ee(t,u)},this.show=function(){if(n){var e=ae("."+c+"."+Ut,n),o=e&&(ae("["+l+'="'+c+'"]['+x+'="#'+e.id+'"]',n)||ae("["+l+'="'+c+'"][href="#'+e.id+'"]',n)),a=o&&(o[bt](x)||o.href);e&&o&&e!==i&&(f(e,o),a.split("#")[1]!==i.id?ee(o,u):ne(o,u))}s(i,t),ne(t,u)},d in t||re(t,ot,o.toggle),i=h(),n=ae(e.parent)||r&&le(t,r),t[d]=o};a[Wt]([d,ge,"["+l+'="collapse"]']);var we=function(t,n){t=ae(t),this.persist=n===!0||"true"===t[bt]("data-persist")||!1;var i=this,o="children",a=t[Bt],l="dropdown",r="open",c=null,u=ae(".dropdown-menu",a),s=function(){for(var t=u[o],e=[],n=0;n<t[Mt];n++)t[n][o][Mt]&&"A"===t[n][o][0].tagName&&e[Wt](t[n][o][0]),"A"===t[n].tagName&&e[Wt](t[n]);return e}(),f=function(t){(t.href&&"#"===t.href.slice(-1)||t[Bt]&&t[Bt].href&&"#"===t[Bt].href.slice(-1))&&this[It]()},h=function(){var n=t[r]?re:ce;n(e,ot,d),n(e,lt,m),n(e,rt,g)},d=function(e){var n=e[j],o=n&&(v in n||v in n[Bt]);(n!==u&&!u[qt](n)||!i.persist&&!o)&&(c=n===t||t[qt](n)?t:null,b(),f.call(e,n))},p=function(e){c=t,w(),f.call(e,e[j])},m=function(t){var e=t.which||t.keyCode;38!==e&&40!==e||t[It]()},g=function(n){var o=n.which||n.keyCode,a=e.activeElement,l=s[St](a),f=a===t,h=u[qt](a),d=a[Bt]===u||a[Bt][Bt]===u;(d||f)&&(l=f?0:38===o?l>1?l-1:0:40===o&&l<s[Mt]-1?l+1:l,s[l]&&te(s[l])),(s[Mt]&&d||!s[Mt]&&(h||f)||!h)&&t[r]&&27===o&&(i.toggle(),c=null)},w=function(){fe.call(a,st,l,c),ee(u,Ut),ee(a,Ut),u[yt](nt,!0),fe.call(a,ft,l,c),t[r]=!0,ce(t,ot,p),setTimeout(function(){te(u[kt]("INPUT")[0]||t),h()},1)},b=function(){fe.call(a,ht,l,c),ne(u,Ut),ne(a,Ut),u[yt](nt,!1),fe.call(a,dt,l,c),t[r]=!1,h(),te(t),setTimeout(function(){re(t,ot,p)},1)};t[r]=!1,this.toggle=function(){ie(a,Ut)&&t[r]?b():w()},v in t||(!jt in u&&u[yt](jt,"0"),re(t,ot,p)),t[v]=i};a[Wt]([v,we,"["+l+'="dropdown"]']);var be=function(o,a){o=ae(o);var l=o[bt](x)||o[bt]("href"),c=ae(l),u=ie(o,"modal")?o:c,s="modal",f="static",h="paddingLeft",d="paddingRight",v="modal-backdrop";if(ie(o,"modal")&&(o=null),u){a=a||{},this[H]=a[H]!==!1&&"false"!==u[bt](T),this[P]=a[P]!==f&&u[bt](y)!==f||f,this[P]=a[P]!==!1&&"false"!==u[bt](y)&&this[P],this[W]=a[W];var m,g,w,b,C=this,A=null,k=oe(n,Vt).concat(oe(n,Zt)),I=function(){var e=n[Lt]();return t[$]||e[Yt]-Math.abs(e[Xt])},L=function(){var n,o=t.getComputedStyle(e[i]),a=parseInt(o[d],10);if(m&&(e[i][Ot][d]=a+w+"px",k[Mt]))for(var l=0;l<k[Mt];l++)n=t.getComputedStyle(k[l])[d],k[l][Ot][d]=parseInt(n)+w+"px"},N=function(){if(e[i][Ot][d]="",k[Mt])for(var t=0;t<k[Mt];t++)k[t][Ot][d]=""},E=function(){var t,n=e[xt]("div");return n.className=s+"-scrollbar-measure",e[i][Ct](n),t=n[V]-n[K],e[i].removeChild(n),t},S=function(){m=e[i][K]<I(),g=u[tt]>n[Q],w=E()},B=function(){u[Ot][h]=!m&&g?w+"px":"",u[Ot][d]=m&&!g?w+"px":""},M=function(){u[Ot][h]="",u[Ot][d]=""},D=function(){Qt=1;var t=e[xt]("div");b=ae("."+v),null===b&&(t[yt]("class",v+" fade"),b=t,e[i][Ct](b))},O=function(){b=ae("."+v),b&&null!==b&&"object"==typeof b&&(Qt=0,e[i].removeChild(b),b=null),fe.call(u,dt,s)},q=function(){ie(u,Ut)?re(e,lt,F):ce(e,lt,F)},R=function(){ie(u,Ut)?re(t,ct,C.update):ce(t,ct,C.update)},U=function(){ie(u,Ut)?re(u,ot,G):ce(u,ot,G)},z=function(){te(u),fe.call(u,ft,s,A)},X=function(){u[Ot].display="",o&&te(o),function(){oe(e,s+" "+Ut)[0]||(M(),N(),ne(e[i],s+"-open"),b&&ie(b,"fade")?(ne(b,Ut),se(b,O)):O(),R(),U(),q())}()},Y=function(t){var e=t[j];e=e[Tt](x)||e[Tt]("href")?e:e[Bt],e!==o||ie(u,Ut)||(u.modalTrigger=o,A=o,C.show(),t[It]())},F=function(t){C[H]&&27==t.which&&ie(u,Ut)&&C.hide()},G=function(t){var e=t[j];ie(u,Ut)&&(e[Bt][bt](r)===s||e[bt](r)===s||e===u&&C[P]!==f)&&(C.hide(),A=null,t[It]())};this.toggle=function(){ie(u,Ut)?this.hide():this.show()},this.show=function(){fe.call(u,st,s,A);var t=oe(e,s+" "+Ut)[0];t&&t!==u&&t.modalTrigger[p].hide(),this[P]&&!Qt&&D(),b&&Qt&&!ie(b,Ut)&&(b[V],ee(b,Ut)),setTimeout(function(){u[Ot].display="block",S(),L(),B(),ee(e[i],s+"-open"),ee(u,Ut),u[yt](it,!1),R(),U(),q(),ie(u,"fade")?se(u,z):z()},$t?150:0)},this.hide=function(){fe.call(u,ht,s),b=ae("."+v),ne(u,Ut),u[yt](it,!0),function(){ie(u,"fade")?se(u,X):X()}()},this.setContent=function(t){ae("."+s+"-content",u)[At]=t},this.update=function(){ie(u,Ut)&&(S(),L(),B())},!o||p in o||re(o,ot,Y),C[W]&&C.setContent(C[W]),!!o&&(o[p]=C)}};a[Wt]([p,be,"["+l+'="modal"]']);var ye=function(n,o){n=ae(n),o=o||{};var a=n[bt](E),l=n[bt](S),r=n[bt](M),c=n[bt](N),u=n[bt](D),s=n[bt](B),f="popover",h="template",d="trigger",v="class",p="div",g="fade",w="data-content",b="dismissible",y='<button type="button" class="close">×</button>',T=ae(o[X]),x=ae(s),C=le(n,".modal"),A=le(n,"."+Vt),k=le(n,"."+Zt);this[h]=o[h]?o[h]:null,this[d]=o[d]?o[d]:a||at,this[U]=o[U]&&o[U]!==g?o[U]:l||g,this[z]=o[z]?o[z]:r||Ft,this[O]=parseInt(o[O]||u)||200,this[b]=!(!o[b]&&"true"!==c),this[X]=T?T:x?x:A?A:k?k:C?C:e[i];var L=this,P=n[bt](I)||null,H=n[bt](w)||null;if(H||this[h]){var W=null,q=0,R=this[z],Y=function(t){null!==W&&t[j]===ae(".close",W)&&L.hide()},F=function(){L[X].removeChild(W),q=null,W=null},G=function(){P=n[bt](I),H=n[bt](w),W=e[xt](p);var t=e[xt](p);if(t[yt](v,"arrow"),W[Ct](t),null!==H&&null===L[h]){if(W[yt]("role","tooltip"),null!==P){var i=e[xt]("h3");i[yt](v,f+"-header"),i[At]=L[b]?P+y:P,W[Ct](i)}var o=e[xt](p);o[yt](v,f+"-body"),o[At]=L[b]&&null===P?H+y:H,W[Ct](o)}else{var a=e[xt](p);a[At]=L[h],W[At]=a.firstChild[At]}L[X][Ct](W),W[Ot].display="block",W[yt](v,f+" bs-"+f+"-"+R+" "+L[U])},J=function(){!ie(W,Ut)&&ee(W,Ut)},K=function(){de(n,W,R,L[X])},Q=function(i){ot!=L[d]&&"focus"!=L[d]||!L[b]&&i(n,"blur",L.hide),L[b]&&i(e,ot,Y),i(t,ct,L.hide)},V=function(){Q(re),fe.call(n,ft,f)},Z=function(){Q(ce),F(),fe.call(n,dt,f)};this.toggle=function(){null===W?L.show():L.hide()},this.show=function(){clearTimeout(q),q=setTimeout(function(){null===W&&(R=L[z],G(),K(),J(),fe.call(n,st,f),L[U]?se(W,V):V())},20)},this.hide=function(){clearTimeout(q),q=setTimeout(function(){W&&null!==W&&ie(W,Ut)&&(fe.call(n,ht,f),ne(W,Ut),L[U]?se(W,Z):Z())},L[O])},m in n||(L[d]===at?(re(n,Jt[0],L.show),L[b]||re(n,Jt[1],L.hide)):ot!=L[d]&&"focus"!=L[d]||re(n,L[d],L.toggle)),n[m]=L}};a[Wt]([m,ye,"["+l+'="popover"]']);var Te=function(e,n){e=ae(e);var i=ae(e[bt](x)),o=e[bt]("data-offset");if(n=n||{},n[j]||i){for(var a,l=this,r=n[j]&&ae(n[j])||i,c=r&&r[kt]("A"),u=parseInt(o||n.offset)||10,s=[],f=[],h=e[Z]<e[tt]?e:t,d=h===t,v=0,p=c[Mt];v<p;v++){var m=c[v][bt]("href"),w=m&&"#"===m.charAt(0)&&"#"!==m.slice(-1)&&ae(m);w&&(s[Wt](c[v]),f[Wt](w))}var b=function(t){var n=s[t],i=f[t],o=n[Bt][Bt],l=ie(o,"dropdown")&&o[kt]("A")[0],r=d&&i[Lt](),c=ie(n,Rt)||!1,h=(d?r[Ft]+a:i[Y])-u,v=d?r[Gt]+a-u:f[t+1]?f[t+1][Y]-u:e[tt],p=a>=h&&v>a;if(!c&&p)ie(n,Rt)||(ee(n,Rt),l&&!ie(l,Rt)&&ee(l,Rt),fe.call(e,"activate","scrollspy",s[t]));else if(p){if(!p&&!c||c&&p)return}else ie(n,Rt)&&(ne(n,Rt),l&&ie(l,Rt)&&!oe(n[Bt],Rt).length&&ne(l,Rt))},y=function(){a=d?he().y:e[G];for(var t=0,n=s[Mt];t<n;t++)b(t)};this.refresh=function(){y()},g in e||(re(h,ut,l.refresh),re(t,ct,l.refresh)),l.refresh(),e[g]=l}};a[Wt]([g,Te,"["+c+'="scroll"]']);var xe=function(t,e){t=ae(t);var n=t[bt](A),i="tab",o="height",a="float",r="isAnimating";e=e||{},this[o]=!!$t&&(e[o]||"true"===n);var c,u,s,f,h,d,v,p=this,m=le(t,".nav"),g=!1,b=m&&ae(".dropdown-toggle",m),y=function(){g[Ot][o]="",ne(g,zt),m[r]=!1},T=function(){g?d?y():setTimeout(function(){g[Ot][o]=v+"px",g[V],se(g,y)},1):m[r]=!1,fe.call(c,ft,i,u)},x=function(){g&&(s[Ot][a]=Xt,f[Ot][a]=Xt,h=s[tt]),ee(f,Rt),fe.call(c,st,i,u),ne(s,Rt),fe.call(u,dt,i,c),g&&(v=f[tt],d=v===h,ee(g,zt),g[Ot][o]=h+"px",g[Z],s[Ot][a]="",f[Ot][a]=""),ie(f,"fade")?setTimeout(function(){ee(f,Ut),se(f,T)},20):T()};if(m){m[r]=!1;var C=function(){var t,e=oe(m,Rt);return 1!==e[Mt]||ie(e[0][Bt],"dropdown")?e[Mt]>1&&(t=e[e[Mt]-1]):t=e[0],t},k=function(){return ae(C()[bt]("href"))},I=function(t){var e=t[j][bt]("href");t[It](),c=t[j][bt](l)===i||e&&"#"===e.charAt(0)?t[j]:t[j][Bt],!m[r]&&!ie(c,Rt)&&p.show()};this.show=function(){c=c||t,f=ae(c[bt]("href")),u=C(),s=k(),m[r]=!0,ne(u,Rt),ee(c,Rt),b&&(ie(t[Bt],"dropdown-menu")?ie(b,Rt)||ee(b,Rt):ie(b,Rt)&&ne(b,Rt)),fe.call(u,ht,i,c),ie(s,"fade")?(ne(s,Ut),se(s,x)):x()},w in t||re(t,ot,I),p[o]&&(g=k()[Bt]),t[w]=p}};a[Wt]([w,xe,"["+l+'="tab"]']);var Ce=function(n,o){n=ae(n),o=o||{};var a=n[bt](S),l=n[bt](M),r=n[bt](D),c=n[bt](B),u="tooltip",s="class",f="title",h="fade",d="div",v=ae(o[X]),p=ae(c),m=le(n,".modal"),g=le(n,"."+Vt),w=le(n,"."+Zt);this[U]=o[U]&&o[U]!==h?o[U]:a||h,this[z]=o[z]?o[z]:l||Ft,this[O]=parseInt(o[O]||r)||200,this[X]=v?v:p?p:g?g:w?w:m?m:e[i];var y=this,T=0,x=this[z],C=null,A=n[bt](f)||n[bt](I)||n[bt](L);if(A&&""!=A){var k=function(){y[X].removeChild(C),C=null,T=null},N=function(){if(A=n[bt](f)||n[bt](I)||n[bt](L),!A||""==A)return!1;C=e[xt](d),C[yt]("role",u);var t=e[xt](d);t[yt](s,"arrow"),C[Ct](t);var i=e[xt](d);i[yt](s,u+"-inner"),C[Ct](i),i[At]=A,y[X][Ct](C),C[yt](s,u+" bs-"+u+"-"+x+" "+y[U])},E=function(){de(n,C,x,y[X])},P=function(){!ie(C,Ut)&&ee(C,Ut)},H=function(){re(t,ct,y.hide),fe.call(n,ft,u)},W=function(){ce(t,ct,y.hide),k(),fe.call(n,dt,u)};this.show=function(){clearTimeout(T),T=setTimeout(function(){if(null===C){if(x=y[z],0==N())return;E(),P(),fe.call(n,st,u),y[U]?se(C,H):H()}},20)},this.hide=function(){clearTimeout(T),T=setTimeout(function(){C&&ie(C,Ut)&&(fe.call(n,ht,u),ne(C,Ut),y[U]?se(C,W):W())},y[O])},this.toggle=function(){C?y.hide():y.show()},b in n||(n[yt](L,A),n.removeAttribute(f),re(n,Jt[0],y.show),re(n,Jt[1],y.hide)),n[b]=y}};a[Wt]([b,Ce,"["+l+'="tooltip"]']);var Ae=function(t,e){for(var n=0,i=e[Mt];n<i;n++)new t(e[n])},ke=o.initCallback=function(t){t=t||e;for(var n=0,i=a[Mt];n<i;n++)Ae(a[n][1],t[Nt](a[n][2]))};return e[i]?ke():re(e,"DOMContentLoaded",function(){ke()}),{Alert:ve,Button:pe,Carousel:me,Collapse:ge,Dropdown:we,Modal:be,Popover:ye,ScrollSpy:Te,Tab:xe,Tooltip:Ce}});