Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

bootstrap.native

Package Overview
Dependencies
Maintainers
1
Versions
101
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bootstrap.native - npm Package Compare versions

Comparing version 2.0.15 to 2.0.16

.vscode/settings.json

80

dist/bootstrap-native-v4.js

@@ -1,2 +0,2 @@

// Native Javascript for Bootstrap 4 v2.0.15 | © dnp_theme | MIT-License
// Native Javascript for Bootstrap 4 v2.0.16 | © dnp_theme | MIT-License
(function (root, factory) {

@@ -281,9 +281,5 @@ if (typeof define === 'function' && define.amd) {

clickHandler = function(e){
var eventTarget = e[target];
eventTarget = eventTarget[hasAttribute](dataDismiss) ? eventTarget : eventTarget[parentNode];
if (eventTarget && eventTarget[hasAttribute](dataDismiss)) { // we double check the data attribute, it's important
alert = getClosest(eventTarget,'.'+component);
element = queryElement('['+dataDismiss+'="'+component+'"]',alert);
(element === eventTarget || element === eventTarget[parentNode]) && alert && self.close();
}
alert = getClosest(e[target],'.'+component);
element = queryElement('['+dataDismiss+'="'+component+'"]',alert);
element && alert && (element === e[target] || element.contains(e[target])) && self.close();
},

@@ -339,5 +335,4 @@ transitionEndHandler = function(){

toggle = function(e) {
var parent = e[target][parentNode],
label = e[target].tagName === LABEL ? e[target] : parent.tagName === LABEL ? parent : null; // the .btn label
var label = e[target].tagName === LABEL ? e[target] : e[target][parentNode].tagName === LABEL ? e[target][parentNode] : null; // the .btn label
if ( !label ) return; //react if a label or its immediate child is clicked

@@ -475,9 +470,2 @@

index = parseInt( eventTarget[getAttribute](dataSlideTo), 10 );
//determine direction first
if ( (activeIndicator < index ) || (activeIndicator === 0 && index === total -1 ) ) {
slideDirection = self[direction] = left; // next
} else if ( (activeIndicator > index) || (activeIndicator === total - 1 && index === 0 ) ) {
slideDirection = self[direction] = right; // prev
}
} else { return false; }

@@ -495,18 +483,4 @@

index++;
slideDirection = self[direction] = left; //set direction first
if( index === total - 1 ) {
index = total - 1;
} else if ( index === total ){
index = 0;
}
} else if ( eventTarget === leftArrow ) {
index--;
slideDirection = self[direction] = right; //set direction first
if( index === 0 ) {
index = 0;
} else if ( index < 0 ){
index = total - 1
}
}

@@ -521,11 +495,5 @@

index++;
slideDirection = self[direction] = left;
if( index == total - 1 ) { index = total - 1; } else
if ( index == total ){ index = 0 }
break;
case 37:
index--;
slideDirection = self[direction] = right;
if ( index == 0 ) { index = 0; } else
if ( index < 0 ) { index = total - 1 }
break;

@@ -547,7 +515,5 @@ default: return;

this.cycle = function() {
slideDirection = this[direction] = left; // make sure to always come back to default slideDirection
timer = setInterval(function() {
index++;
index = index === total ? 0 : index;
self.slideTo( index );

@@ -557,5 +523,22 @@ }, this[interval]);

this.slideTo = function( next ) {
if (isSliding) return; // when controled via methods, make sure to check again
var activeItem = this.getActiveIndex(), // the current active
orientation = slideDirection === left ? 'next' : 'prev'; //determine type
orientation;
// determine slideDirection first
if ( (activeItem < next ) || (activeItem === 0 && next === total -1 ) ) {
slideDirection = self[direction] = left; // next
} else if ( (activeItem > next) || (activeItem === total - 1 && next === 0 ) ) {
slideDirection = self[direction] = right; // prev
}
// find the right next index
if ( next < 0 ) { next = total - 1; }
else if ( next === total ){ next = 0; }
// update index
index = next;
orientation = slideDirection === left ? 'next' : 'prev'; //determine type
bootstrapCustomEvent.call(element, slideEvent, component, slides[next]); // here we go with the slide

@@ -688,2 +671,3 @@

removeClass(collapseElement,component);
removeClass(collapseElement,showClass);
addClass(collapseElement,collapsing);

@@ -698,3 +682,2 @@ collapseElement[offsetWidth]; // force reflow to enable transition

addClass(collapseElement,component);
removeClass(collapseElement,showClass);
collapseElement[style][height] = '';

@@ -772,3 +755,2 @@ bootstrapCustomEvent.call(collapseElement, hiddenEvent, component);

menu = queryElement('.dropdown-menu', parent),
children = menu[getElementsByTagName]('*'),

@@ -788,3 +770,3 @@ // handlers

} else if ( isOpen ) {
if ( (eventTarget === menu || children && [].slice.call(children)[indexOf](eventTarget) > -1) && ( self.persist || hasData ) ) {
if ( eventTarget === menu || menu.contains(eventTarget) && ( self.persist || hasData ) ) {
return;

@@ -1285,3 +1267,4 @@ } else { relatedTarget = null; hide(); }

// DATA API
var targetData = queryElement(element[getAttribute](dataTarget));
var targetData = queryElement(element[getAttribute](dataTarget)),
offsetData = element[getAttribute]('data-offset');

@@ -1294,3 +1277,4 @@ // set options

var spyTarget = options[target] && queryElement(options[target]) || targetData,
links = spyTarget && spyTarget[getElementsByTagName]('A'),
links = spyTarget && spyTarget[getElementsByTagName]('A'),
offset = parseInt(offsetData || options['offset']) || 10,
items = [], targetItems = [], scrollOffset,

@@ -1321,4 +1305,4 @@ scrollTarget = element[offsetHeight] < element[scrollHeight] ? element : globalObject, // determine which is the real scrollTarget

topEdge = isWindow ? targetRect[top] + scrollOffset : targetItem[offsetTop] - (targetItems[index-1] ? 0 : 10),
bottomEdge = isWindow ? targetRect[bottom] + scrollOffset : targetItems[index+1] ? targetItems[index+1][offsetTop] : element[scrollHeight],
topEdge = (isWindow ? targetRect[top] + scrollOffset : targetItem[offsetTop]) - offset,
bottomEdge = isWindow ? targetRect[bottom] + scrollOffset - offset : targetItems[index+1] ? targetItems[index+1][offsetTop] - offset : element[scrollHeight],

@@ -1325,0 +1309,0 @@ inside = scrollOffset >= topEdge && bottomEdge > scrollOffset;

4

dist/bootstrap-native-v4.min.js

@@ -1,2 +0,2 @@

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

@@ -1,2 +0,2 @@

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

@@ -18,9 +18,5 @@

clickHandler = function(e){
var eventTarget = e[target];
eventTarget = eventTarget[hasAttribute](dataDismiss) ? eventTarget : eventTarget[parentNode];
if (eventTarget && eventTarget[hasAttribute](dataDismiss)) { // we double check the data attribute, it's important
alert = getClosest(eventTarget,'.'+component);
element = queryElement('['+dataDismiss+'="'+component+'"]',alert);
(element === eventTarget || element === eventTarget[parentNode]) && alert && self.close();
}
alert = getClosest(e[target],'.'+component);
element = queryElement('['+dataDismiss+'="'+component+'"]',alert);
element && alert && (element === e[target] || element.contains(e[target])) && self.close();
},

@@ -27,0 +23,0 @@ transitionEndHandler = function(){

@@ -46,5 +46,4 @@

toggle = function(e) {
var parent = e[target][parentNode],
label = e[target].tagName === LABEL ? e[target] : parent.tagName === LABEL ? parent : null; // the .btn label
var label = e[target].tagName === LABEL ? e[target] : e[target][parentNode].tagName === LABEL ? e[target][parentNode] : null; // the .btn label
if ( !label ) return; //react if a label or its immediate child is clicked

@@ -51,0 +50,0 @@

@@ -67,9 +67,2 @@

index = parseInt( eventTarget[getAttribute](dataSlideTo), 10 );
//determine direction first
if ( (activeIndicator < index ) || (activeIndicator === 0 && index === total -1 ) ) {
slideDirection = self[direction] = left; // next
} else if ( (activeIndicator > index) || (activeIndicator === total - 1 && index === 0 ) ) {
slideDirection = self[direction] = right; // prev
}
} else { return false; }

@@ -87,18 +80,4 @@

index++;
slideDirection = self[direction] = left; //set direction first
if( index === total - 1 ) {
index = total - 1;
} else if ( index === total ){
index = 0;
}
} else if ( eventTarget === leftArrow ) {
index--;
slideDirection = self[direction] = right; //set direction first
if( index === 0 ) {
index = 0;
} else if ( index < 0 ){
index = total - 1
}
}

@@ -113,11 +92,5 @@

index++;
slideDirection = self[direction] = left;
if( index == total - 1 ) { index = total - 1; } else
if ( index == total ){ index = 0 }
break;
case 37:
index--;
slideDirection = self[direction] = right;
if ( index == 0 ) { index = 0; } else
if ( index < 0 ) { index = total - 1 }
break;

@@ -139,7 +112,4 @@ default: return;

this.cycle = function() {
slideDirection = this[direction] = left; // make sure to always come back to default slideDirection
timer = setInterval(function() {
index++;
index = index === total ? 0 : index;
self.slideTo( index );

@@ -149,8 +119,24 @@ }, this[interval]);

this.slideTo = function( next ) {
if (isSliding) return; // when controled via methods, make sure to check again
var activeItem = this.getActiveIndex(), // the current active
orientation = slideDirection === left ? 'next' : 'prev'; //determine type
orientation;
// determine slideDirection first
if ( (activeItem < next ) || (activeItem === 0 && next === total -1 ) ) {
slideDirection = self[direction] = left; // next
} else if ( (activeItem > next) || (activeItem === total - 1 && next === 0 ) ) {
slideDirection = self[direction] = right; // prev
}
// find the right next index
if ( next < 0 ) { next = total - 1; }
else if ( next === total ){ next = 0; }
// update index
index = next;
orientation = slideDirection === left ? 'next' : 'prev'; //determine type
bootstrapCustomEvent.call(element, slideEvent, component, slides[next]); // here we go with the slide
isSliding = this.isSliding = true;
isSliding = true;
clearInterval(timer);

@@ -169,3 +155,3 @@ setActivePage( next );

setTimeout(function(){
isSliding = self.isSliding = false;
isSliding = false;

@@ -172,0 +158,0 @@ addClass(slides[next],active);

@@ -38,3 +38,3 @@

addClass(collapseElement, component);
addClass(collapseElement,inClass);
addClass(collapseElement, inClass);
collapseElement[style][height] = '';

@@ -49,3 +49,4 @@ bootstrapCustomEvent.call(collapseElement, shownEvent, component);

removeClass(collapseElement,component);
addClass(collapseElement,collapsing);
removeClass(collapseElement, inClass);
addClass(collapseElement, collapsing);
collapseElement[offsetWidth]; // force reflow to enable transition

@@ -59,3 +60,2 @@ collapseElement[style][height] = '0px';

addClass(collapseElement,component);
removeClass(collapseElement,inClass);
collapseElement[style][height] = '';

@@ -62,0 +62,0 @@ bootstrapCustomEvent.call(collapseElement, hiddenEvent, component);

@@ -21,3 +21,2 @@

menu = queryElement('.dropdown-menu', parent),
children = menu[getElementsByTagName]('*'),

@@ -36,3 +35,3 @@ // handlers

} else if ( isOpen ) {
if ( eventTarget === menu || children && nodeListToArray(children)[indexOf](eventTarget) > -1 && (self.persist || hasData) ) {
if ( eventTarget === menu || menu.contains(eventTarget) && (self.persist || hasData) ) {
return;

@@ -39,0 +38,0 @@ } else { relatedTarget = null; hide(); }

@@ -55,3 +55,3 @@

for (var i = 0; i < fixedItems[length]; i++) {
itemPad = globalObject.getComputedStyle(fixedItems[i])[paddingRight];
itemPad = (fixedItems[i].currentStyle || globalObject.getComputedStyle(fixedItems[i]))[paddingRight];
fixedItems[i][style][paddingRight] = ( parseInt(itemPad) + scrollbarWidth) + 'px';

@@ -58,0 +58,0 @@ }

@@ -13,3 +13,4 @@

// DATA API
var targetData = queryElement(element[getAttribute](dataTarget));
var targetData = queryElement(element[getAttribute](dataTarget)),
offsetData = element[getAttribute]('data-offset');

@@ -22,3 +23,4 @@ // set options

var spyTarget = options[target] && queryElement(options[target]) || targetData,
links = spyTarget && spyTarget[getElementsByTagName]('A'),
links = spyTarget && spyTarget[getElementsByTagName]('A'),
offset = parseInt(offsetData || options['offset']) || 10,
items = [], targetItems = [], scrollOffset,

@@ -47,4 +49,4 @@ scrollTarget = element[offsetHeight] < element[scrollHeight] ? element : globalObject, // determine which is the real scrollTarget

topEdge = isWindow ? targetRect[top] + scrollOffset : targetItem[offsetTop] - (targetItems[index-1] ? 0 : 10),
bottomEdge = isWindow ? targetRect[bottom] + scrollOffset : targetItems[index+1] ? targetItems[index+1][offsetTop] : element[scrollHeight],
topEdge = (isWindow ? targetRect[top] + scrollOffset : targetItem[offsetTop]) - offset,
bottomEdge = isWindow ? targetRect[bottom] + scrollOffset - offset : targetItems[index+1] ? targetItems[index+1][offsetTop] - offset : element[scrollHeight],

@@ -51,0 +53,0 @@ inside = scrollOffset >= topEdge && bottomEdge > scrollOffset;

@@ -18,9 +18,5 @@

clickHandler = function(e){
var eventTarget = e[target];
eventTarget = eventTarget[hasAttribute](dataDismiss) ? eventTarget : eventTarget[parentNode];
if (eventTarget && eventTarget[hasAttribute](dataDismiss)) { // we double check the data attribute, it's important
alert = getClosest(eventTarget,'.'+component);
element = queryElement('['+dataDismiss+'="'+component+'"]',alert);
(element === eventTarget || element === eventTarget[parentNode]) && alert && self.close();
}
alert = getClosest(e[target],'.'+component);
element = queryElement('['+dataDismiss+'="'+component+'"]',alert);
element && alert && (element === e[target] || element.contains(e[target])) && self.close();
},

@@ -27,0 +23,0 @@ transitionEndHandler = function(){

@@ -24,5 +24,4 @@

toggle = function(e) {
var parent = e[target][parentNode],
label = e[target].tagName === LABEL ? e[target] : parent.tagName === LABEL ? parent : null; // the .btn label
var label = e[target].tagName === LABEL ? e[target] : e[target][parentNode].tagName === LABEL ? e[target][parentNode] : null; // the .btn label
if ( !label ) return; //react if a label or its immediate child is clicked

@@ -29,0 +28,0 @@

@@ -68,9 +68,2 @@

index = parseInt( eventTarget[getAttribute](dataSlideTo), 10 );
//determine direction first
if ( (activeIndicator < index ) || (activeIndicator === 0 && index === total -1 ) ) {
slideDirection = self[direction] = left; // next
} else if ( (activeIndicator > index) || (activeIndicator === total - 1 && index === 0 ) ) {
slideDirection = self[direction] = right; // prev
}
} else { return false; }

@@ -88,18 +81,4 @@

index++;
slideDirection = self[direction] = left; //set direction first
if( index === total - 1 ) {
index = total - 1;
} else if ( index === total ){
index = 0;
}
} else if ( eventTarget === leftArrow ) {
index--;
slideDirection = self[direction] = right; //set direction first
if( index === 0 ) {
index = 0;
} else if ( index < 0 ){
index = total - 1
}
}

@@ -114,11 +93,5 @@

index++;
slideDirection = self[direction] = left;
if( index == total - 1 ) { index = total - 1; } else
if ( index == total ){ index = 0 }
break;
case 37:
index--;
slideDirection = self[direction] = right;
if ( index == 0 ) { index = 0; } else
if ( index < 0 ) { index = total - 1 }
break;

@@ -140,7 +113,5 @@ default: return;

this.cycle = function() {
slideDirection = this[direction] = left; // make sure to always come back to default slideDirection
timer = setInterval(function() {
index++;
index = index === total ? 0 : index;
self.slideTo( index );

@@ -150,5 +121,22 @@ }, this[interval]);

this.slideTo = function( next ) {
if (isSliding) return; // when controled via methods, make sure to check again
var activeItem = this.getActiveIndex(), // the current active
orientation = slideDirection === left ? 'next' : 'prev'; //determine type
orientation;
// determine slideDirection first
if ( (activeItem < next ) || (activeItem === 0 && next === total -1 ) ) {
slideDirection = self[direction] = left; // next
} else if ( (activeItem > next) || (activeItem === total - 1 && next === 0 ) ) {
slideDirection = self[direction] = right; // prev
}
// find the right next index
if ( next < 0 ) { next = total - 1; }
else if ( next === total ){ next = 0; }
// update index
index = next;
orientation = slideDirection === left ? 'next' : 'prev'; //determine type
bootstrapCustomEvent.call(element, slideEvent, component, slides[next]); // here we go with the slide

@@ -155,0 +143,0 @@

@@ -48,2 +48,3 @@

removeClass(collapseElement,component);
removeClass(collapseElement,showClass);
addClass(collapseElement,collapsing);

@@ -58,3 +59,2 @@ collapseElement[offsetWidth]; // force reflow to enable transition

addClass(collapseElement,component);
removeClass(collapseElement,showClass);
collapseElement[style][height] = '';

@@ -61,0 +61,0 @@ bootstrapCustomEvent.call(collapseElement, hiddenEvent, component);

@@ -21,3 +21,2 @@

menu = queryElement('.dropdown-menu', parent),
children = menu[getElementsByTagName]('*'),

@@ -37,3 +36,3 @@ // handlers

} else if ( isOpen ) {
if ( (eventTarget === menu || children && [].slice.call(children)[indexOf](eventTarget) > -1) && ( self.persist || hasData ) ) {
if ( eventTarget === menu || menu.contains(eventTarget) && ( self.persist || hasData ) ) {
return;

@@ -40,0 +39,0 @@ } else { relatedTarget = null; hide(); }

@@ -13,3 +13,4 @@

// DATA API
var targetData = queryElement(element[getAttribute](dataTarget));
var targetData = queryElement(element[getAttribute](dataTarget)),
offsetData = element[getAttribute]('data-offset');

@@ -22,3 +23,4 @@ // set options

var spyTarget = options[target] && queryElement(options[target]) || targetData,
links = spyTarget && spyTarget[getElementsByTagName]('A'),
links = spyTarget && spyTarget[getElementsByTagName]('A'),
offset = parseInt(offsetData || options['offset']) || 10,
items = [], targetItems = [], scrollOffset,

@@ -49,4 +51,4 @@ scrollTarget = element[offsetHeight] < element[scrollHeight] ? element : globalObject, // determine which is the real scrollTarget

topEdge = isWindow ? targetRect[top] + scrollOffset : targetItem[offsetTop] - (targetItems[index-1] ? 0 : 10),
bottomEdge = isWindow ? targetRect[bottom] + scrollOffset : targetItems[index+1] ? targetItems[index+1][offsetTop] : element[scrollHeight],
topEdge = (isWindow ? targetRect[top] + scrollOffset : targetItem[offsetTop]) - offset,
bottomEdge = isWindow ? targetRect[bottom] + scrollOffset - offset : targetItems[index+1] ? targetItems[index+1][offsetTop] - offset : element[scrollHeight],

@@ -53,0 +55,0 @@ inside = scrollOffset >= topEdge && bottomEdge > scrollOffset;

{
"name": "bootstrap.native",
"version": "2.0.15",
"version": "2.0.16",
"description": "Native Javascript for Bootstrap, the sweetest Javascript library without jQuery.",

@@ -5,0 +5,0 @@ "main": "dist/bootstrap-native.js",

@@ -1,103 +0,14 @@

# Native Javascript for Bootstrap
This is a library developed with native Javascript for both <strong>Bootstrap 3</strong> and <strong>Bootstrap 4</strong> series, featuring superior performance compared to the original jQuery Plugins. Thanks to [Ingwie Phoenix](https://github.com/IngwiePhoenix) for contributing with npm/RequireJS/CommonJS compatibility. A huge advantage is the size, this library is only ***20Kb*** minified and ***6.5Kb*** gZipped.
# Native JavaScript for Bootstrap
This is a library developed with native JavaScript for both <strong>Bootstrap 3</strong> and <strong>Bootstrap 4</strong> series, featuring superior performance compared to the original jQuery Plugins. Thanks to [Ingwie Phoenix](https://github.com/IngwiePhoenix) for contributing with npm/RequireJS/CommonJS compatibility. The library is only ***20Kb*** minified and ***6.5Kb*** gZipped.
See <a href="http://thednp.github.io/bootstrap.native/">demo</a> for scripting examples and instructions.
# CDN
New releases will be available automatically on <a href="http://www.jsdelivr.com/#!bootstrap.native">jsdelivr</a> CDN repositories and CDN repositories on <a href="https://cdnjs.com/libraries/bootstrap.native">CDNjs</a> repositories. You may also find more <a href="https://www.google.com/search?q=bootstrap+native+cdn" target="_blank">Google</a> as well.
# Wiki
Please take a minute to check the `bootstrap.native` Wiki pages:
* [Acknowledgements](https://github.com/thednp/bootstrap.native/wiki/Acknowledgements) - A quick note on some of the similarities and differences with the original jQuery plugins. Nothing to worry about, but still good to know all the tricks on how to maximize your workflow.
* [How to use](https://github.com/thednp/bootstrap.native/wiki/How-to-use) - An in depth guide on how to use it with stuff like `npm`, `RequireJS` or `CDN` links.
* [Browser support](https://github.com/thednp/bootstrap.native/wiki/Browser-support) - A word on how to enable the library for legacy browsers.
* [FAQs](https://github.com/thednp/bootstrap.native/wiki/FAQs) - A short list of frequent asked questions regarding the use of the library.
* [About](https://github.com/thednp/bootstrap.native/wiki/About) - Learn about the `bootstrap.native` project inception, goals and motivations.
# Bower and NPM
You can install this package by using either Bower or NPM.
```
$ npm install --save bootstrap.native
# Or
$ bower install --save bootstrap.native
```
# Usage
`bootstrap.native` is UMD (Universal Module Definition) compatible. It will work correctly in CommonJS and AMD environments, but falls back to exporting to `window` in a normal `<script>` tag environment.
**Traditional script-tag example:**
```html
<!-- Using one of the CDN repositories-->
<script type="text/javascript" src="//cdn.jsdelivr.net/npm/bootstrap.native@2.0.15/dist/bootstrap-native.min.js"></script>
<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/bootstrap.native/2.0.15/bootstrap-native.min.js"></script>
<!-- Using a local assets folder -->
<script type="text/javascript" src="/assets/js/bootstrap-native.min.js"></script>
<!-- Using Bower -->
<script type="text/javascript" src="/bower_components/bootstrap.native/dist/bootstrap-native.min.js"></script>
```
**Use the Bootstrap 4 version:**
```html
<!-- Using one of the CDN repositories-->
<script type="text/javascript" src="//cdn.jsdelivr.net/npm/bootstrap.native@2.0.15/dist/bootstrap-native-v4.js"></script>
<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/bootstrap.native/2.0.15/bootstrap-native-v4.min.js"></script>
<!-- Using a local assets folder -->
<script type="text/javascript" src="/assets/js/bootstrap-native-v4.min.js"></script>
<!-- Using Bower -->
<script type="text/javascript" src="/bower_components/bootstrap.native/dist/bootstrap-native-v4.min.js"></script>
```
**Warning:** Do not use files directly from `/lib` folder! These files are just sources for the builds located in the `/dist` folder.
You can also use `bootstrap.native` in a CommonJS environment:
```js
var bsn = require("bootstrap.native");
// Create a button:
var btn = new bsn.Button(element,'loading');
```
Additionally, to use V4, you can do the following:
```
var bsn = require('bootstrap.native/dist/bootstrap-native-v4');
var btn = new bsn.Button(element,'loading');
```
**Note:** If you are working in a virtual browser environment (i.e. running front-end tests in NodeJS), `bootstrap.native` requires both `window` and `document` to be in scope. You will need to use a mock browser.
## Note About the Factory Methods
As mentioned above, the object properties of the exported object, when using `require()`, are actual classes when `document` and `window` are given - in which case we are sure to be facing an actual browser - and if absent, will be factory methods.
So when using `bootstrap.native` inside of a NodeJS app, make sure you create a proper Browser-like environment first to avoid unexpected behaviour.
# Browser Support
The components are developed with clean code mainly for modern browsers that nativelly support HTML5. When using polyfills, IE8-IE10 will thank you. The library comes with a custom polyfill you can use right away.
```html
<!-- Using one of the CDN repositories-->
<script type="text/javascript" src="//cdn.jsdelivr.net/npm/bootstrap.native@2.0.15/dist/polyfill.min.js"></script>
<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/bootstrap.native/2.0.15/polyfill.min.js"></script>
<!-- Using a local assets folder -->
<script type="text/javascript" src="/assets/js/polyfill.min.js"></script>
<!-- Using Bower -->
<script type="text/javascript" src="/bower_components/bootstrap.native/dist/polyfill.min.js"></script>
```
# Custom Builds
You can make a custom build of bootstrap-native, including only the modules you need, by using the `build.js` and `build-v4.js` scripts.
## Usage:
```
$ node build.js --help
node build.js [--minify] [--ignore=<modules>...|--only=<modules>...]
Options:
--minify, -m Minify output [boolean] [default: false]
--ignore, -i Omit the given module(s) from the bundle [array]
--only Only include the given module(s) in the bundle [array]
--help Show help [boolean]
Running without --ignore or --only will compile all the modules.
Writes to stdout
```
\*nix users can run `./build.js` as well as `node build.js`.
# Contributors

@@ -109,2 +20,2 @@ - [Ingwie Phoenix](https://github.com/IngwiePhoenix): RequireJS/CommonJS compatibility and usability with common package managers. _Was glad to help!_

# License
The library is released under the [MIT license](https://github.com/thednp/bootstrap.native/blob/master/LICENSE).
The library is released under the [MIT license](https://github.com/thednp/bootstrap.native/blob/master/LICENSE).

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc