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