New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.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.19 to 2.0.20

lib/V3/utils-init.js

7

build-v4.js

@@ -112,4 +112,5 @@ #!/usr/bin/env node

function wrap(main) {
var utils = fs.readFileSync(`${libPath}/V4/utils.js`, 'utf8').split('\n').join('\n '); // Indentation
main = main.split('\n').join('\n '); // Indentation
var utils = fs.readFileSync(`${libPath}/V4/utils.js`, 'utf8').split('\n').join('\n ');
var init = fs.readFileSync(`${libPath}/V4/utils-init.js`, 'utf8').split('\n').join('\n ');
main = main.split('\n').join('\n ');
// Initialize arrays:

@@ -139,3 +140,5 @@ // Arrays will be used in the template literal below

${utils}
BSN.version = '${pack.version}';
${main}
${init}
return {

@@ -142,0 +145,0 @@ ${returns.join(',\n ')/* add indentation and comma */}

@@ -112,4 +112,5 @@ #!/usr/bin/env node

function wrap(main) {
var utils = fs.readFileSync(`${libPath}/V3/utils.js`, 'utf8').split('\n').join('\n '); // Indentation
main = main.split('\n').join('\n '); // Indentation
var utils = fs.readFileSync(`${libPath}/V3/utils.js`, 'utf8').split('\n').join('\n ');
var init = fs.readFileSync(`${libPath}/V3/utils-init.js`, 'utf8').split('\n').join('\n ');
main = main.split('\n').join('\n ');
// Initialize arrays:

@@ -139,3 +140,5 @@ // Arrays will be used in the template literal below

${utils}
BSN.version = '${pack.version}';
${main}
${init}
return {

@@ -142,0 +145,0 @@ ${returns.join(',\n ')/* add indentation and comma */}

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

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

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

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

@@ -16,3 +16,3 @@ /* Native JavaScript for Bootstrap 3 IE8+ Polyfill

// object | array related
prototype = 'prototype', indexOf = 'indexOf', length = 'length', split = 'split',
prototype = 'prototype', indexOf = 'indexOf', length = 'length', split = 'split', trim = 'trim',

@@ -51,2 +51,8 @@ // event related

if (!String[prototype][trim]) {
String[prototype][trim] = function () {
return this.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, '');
};
}
// Element.prototype.classList by thednp

@@ -53,0 +59,0 @@ if( !(classList in ELEMENT[prototype]) ) {

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

// Native JavaScript for Bootstrap 3 Polyfill
!function(){var e=document,t=this.Document||this.HTMLDocument,n=window,s=this.constructor||this.Window||Window,i=Element,a="prototype";if(n.HTMLElement||(n.HTMLElement=n[i]),Array[a].indexOf||(Array[a].indexOf=function(e){if(void 0===this||null===this)throw new TypeError(this+" is not an object");var t=this instanceof String?this.split(""):this,n=Math.max(Math.min(t.length,9007199254740991),0)||0,s=Number(arguments[1])||0;for(s=(s<0?Math.max(n+s,0):s)-1;++s<n;)if(s in t&&t[s]===e)return s;return-1}),!("classList"in i[a])){var r=function(e){var t=(e.getAttribute("class")||"").replace(/^\s+|\s+$/g,"").split(/\s+/)||[];hasClass=this.contains=function(e){return t.indexOf(e)>-1},addClass=this.add=function(n){hasClass(n)||(t.push(n),e.setAttribute("class",t.join(" ")))},removeClass=this.remove=function(n){hasClass(n)&&(t.splice(t.indexOf(n),1),e.setAttribute("class",t.join(" ")))},toggleClass=this.toggle=function(e){hasClass(e)?removeClass(e):addClass(e)}};Object.defineProperty(i[a],"classList",{get:function(){return new r(this)}})}n.Event&&s[a].Event||(n.Event=s[a].Event=t[a].Event=i[a].Event=function(t,n){if(!t)throw new Error("Not enough arguments");var s,i=!(!n||void 0===n.bubbles)&&n.bubbles,a=!(!n||void 0===n.cancelable)&&n.cancelable;return"createEvent"in e?(s=e.createEvent("Event")).initEvent(t,i,a):((s=e.createEventObject()).type=t,s.bubbles=i,s.cancelable=a),s}),"CustomEvent"in n&&"CustomEvent"in s[a]||(n.CustomEvent=s[a].CustomEvent=t[a].CustomEvent=Element[a].CustomEvent=function(e,t){if(!e)throw Error("CustomEvent TypeError: An event name must be provided.");var n=new Event(e,t);return n.detail=t&&t.detail||null,n}),n.addEventListener&&s[a].addEventListener||(n.addEventListener=s[a].addEventListener=t[a].addEventListener=i[a].addEventListener=function(){var t=this,n=arguments[0],s=arguments[1];t._events||(t._events={}),t._events[n]||(t._events[n]=function(n){var s,i=t._events[n.type].list,a=i.slice(),r=-1,o=a.length;for(n.preventDefault=function(){!1!==n.cancelable&&(n.returnValue=!1)},n.stopPropagation=function(){n.cancelBubble=!0},n.stopImmediatePropagation=function(){n.cancelBubble=!0,n.cancelImmediate=!0},n.currentTarget=t,n.relatedTarget=n.relatedTarget||n.fromElement||null,n.target=n.target||n.srcElement||t,n.timeStamp=(new Date).getTime(),n.clientX&&(n.pageX=n.clientX+e.documentElement.scrollLeft,n.pageY=n.clientY+e.documentElement.scrollTop);++r<o&&!n.cancelImmediate;)r in a&&(s=a[r],-1!==i.indexOf(s)&&"function"==typeof s&&s.call(t,n))},t._events[n].list=[],t.attachEvent&&t.attachEvent("on"+n,t._events[n])),t._events[n].list.push(s)},n.removeEventListener=s[a].removeEventListener=t[a].removeEventListener=i[a].removeEventListener=function(){var e,t=this,n=arguments[0],s=arguments[1];t._events&&t._events[n]&&t._events[n].list&&-1!==(e=t._events[n].list.indexOf(s))&&(t._events[n].list.splice(e,1),t._events[n].list.length||(t.detachEvent&&t.detachEvent("on"+n,t._events[n]),delete t._events[n]))}),n.dispatchEvent&&s[a].dispatchEvent&&t[a].dispatchEvent&&i[a].dispatchEvent||(n.dispatchEvent=s[a].dispatchEvent=t[a].dispatchEvent=i[a].dispatchEvent=function(e){if(!arguments.length)throw new Error("Not enough arguments");if(!e||"string"!=typeof e.type)throw new Error("DOM Events Exception 0");var t=this,s=e.type;try{if(!e.bubbles){e.cancelBubble=!0;var i=function(e){e.cancelBubble=!0,(t||n).detachEvent("on"+s,i)};this.attachEvent("on"+s,i)}this.fireEvent("on"+s,e)}catch(n){e.target=t;do{e.currentTarget=t,"_events"in t&&"function"==typeof t._events[s]&&t._events[s].call(t,e),"function"==typeof t["on"+s]&&t["on"+s].call(t,e),t=9===t.nodeType?t.parentWindow:t.parentNode}while(t&&!e.cancelBubble)}return!0})}();
// Native JavaScript for Bootstrap 3/4 Polyfill
(function(){var F="Document",i=document,g=this[F]||this.HTMLDocument,l="Window",E=window,p=this.constructor||this[l]||Window,u="HTMLElement",k="documentElement",D=Element,J="className",d="add",c="classList",x="remove",z="contains",s="class",e="setAttribute",A="getAttribute",t="prototype",o="indexOf",r="length",y="split",b="trim",f="Event",I="CustomEvent",C="_events",n="type",a="target",m="currentTarget",B="relatedTarget",v="cancelable",q="bubbles",w="cancelBubble",H="cancelImmediate",K="detail",L="addEventListener",h="removeEventListener",j="dispatchEvent";if(!E[u]){E[u]=E[D]}if(!Array[t][o]){Array[t][o]=function(O){if(this===undefined||this===null){throw new TypeError(this+" is not an object")}var N=this instanceof String?this[y](""):this,P=Math.max(Math.min(N[r],9007199254740991),0)||0,M=Number(arguments[1])||0;M=(M<0?Math.max(P+M,0):M)-1;while(++M<P){if(M in N&&N[M]===O){return M}}return -1}}if(!String[t][b]){String[t][b]=function(){return this.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}}if(!(c in D[t])){var G=function(M){var N=(M[A](s)||"").replace(/^\s+|\s+$/g,"")[y](/\s+/)||[];hasClass=this[z]=function(O){return N[o](O)>-1},addClass=this[d]=function(O){if(!hasClass(O)){N.push(O);M[e](s,N.join(" "))}},removeClass=this[x]=function(O){if(hasClass(O)){N.splice(N[o](O),1);M[e](s,N.join(" "))}},toggleClass=this.toggle=function(O){if(hasClass(O)){removeClass(O)}else{addClass(O)}}};Object.defineProperty(D[t],c,{get:function(){return new G(this)}})}if(!E[f]||!p[t][f]){E[f]=p[t][f]=g[t][f]=D[t][f]=function(O,Q){if(!O){throw new Error("Not enough arguments")}var P,N=Q&&Q[q]!==undefined?Q[q]:false,M=Q&&Q[v]!==undefined?Q[v]:false;if("createEvent" in i){P=i.createEvent(f);P.initEvent(O,N,M)}else{P=i.createEventObject();P[n]=O;P[q]=N;P[v]=M}return P}}if(!(I in E)||!(I in p[t])){E[I]=p[t][I]=g[t][I]=Element[t][I]=function(M,O){if(!M){throw Error("CustomEvent TypeError: An event name must be provided.")}var N=new Event(M,O);N[K]=O&&O[K]||null;return N}}if(!E[L]||!p[t][L]){E[L]=p[t][L]=g[t][L]=D[t][L]=function(){var M=this,N=arguments[0],O=arguments[1];if(!M[C]){M[C]={}}if(!M[C][N]){M[C][N]=function(T){var U=M[C][T[n]].list,R=U.slice(),Q=-1,S=R[r],P;T.preventDefault=function(){if(T[v]!==false){T.returnValue=false}};T.stopPropagation=function(){T[w]=true};T.stopImmediatePropagation=function(){T[w]=true;T[H]=true};T[m]=M;T[B]=T[B]||T.fromElement||null;T[a]=T[a]||T.srcElement||M;T.timeStamp=new Date().getTime();if(T.clientX){T.pageX=T.clientX+i[k].scrollLeft;T.pageY=T.clientY+i[k].scrollTop}while(++Q<S&&!T[H]){if(Q in R){P=R[Q];if(U[o](P)!==-1&&typeof P==="function"){P.call(M,T)}}}};M[C][N].list=[];if(M.attachEvent){M.attachEvent("on"+N,M[C][N])}}M[C][N].list.push(O)};E[h]=p[t][h]=g[t][h]=D[t][h]=function(){var N=this,O=arguments[0],P=arguments[1],M;if(N[C]&&N[C][O]&&N[C][O].list){M=N[C][O].list[o](P);if(M!==-1){N[C][O].list.splice(M,1);if(!N[C][O].list[r]){if(N.detachEvent){N.detachEvent("on"+O,N[C][O])}delete N[C][O]}}}}}if(!E[j]||!p[t][j]||!g[t][j]||!D[t][j]){E[j]=p[t][j]=g[t][j]=D[t][j]=function(Q){if(!arguments[r]){throw new Error("Not enough arguments")}if(!Q||typeof Q[n]!=="string"){throw new Error("DOM Events Exception 0")}var N=this,P=Q[n];try{if(!Q[q]){Q[w]=true;var O=function(R){R[w]=true;(N||E).detachEvent("on"+P,O)};this.attachEvent("on"+P,O)}this.fireEvent("on"+P,Q)}catch(M){Q[a]=N;do{Q[m]=N;if(C in N&&typeof N[C][P]==="function"){N[C][P].call(N,Q)}if(typeof N["on"+P]==="function"){N["on"+P].call(N,Q)}N=N.nodeType===9?N.parentWindow:N.parentNode}while(N&&!Q[w])}return true}}}());

@@ -115,5 +115,5 @@

}
element[stringAffix] = this;
element[stringAffix] = self;
this[update]();
self[update]();
};

@@ -123,3 +123,4 @@

// =================
initializeDataAPI( stringAffix, Affix, DOC[querySelectorAll]('['+dataSpy+'="affix"]') );
supports[push]([stringAffix, Affix, '['+dataSpy+'="affix"]']);

@@ -41,3 +41,3 @@

}
element[stringAlert] = this;
element[stringAlert] = self;
};

@@ -47,4 +47,4 @@

// ==============
initializeDataAPI ( stringAlert, Alert, DOC[querySelectorAll]('['+dataDismiss+'="alert"]') );
supports[push]([stringAlert, Alert, '['+dataDismiss+'="alert"]']);

@@ -31,5 +31,5 @@

element[setAttribute](disabled,disabled);
element[setAttribute](dataOriginalText, element.innerHTML.replace(/^\s+|\s+$/g, '')); // trim the text
element[setAttribute](dataOriginalText, element[innerHTML].trim()); // trim the text
}
element.innerHTML = element[getAttribute]('data-'+option+'-text');
element[innerHTML] = element[getAttribute]('data-'+option+'-text');
}

@@ -43,5 +43,13 @@ },

}
element.innerHTML = element[getAttribute](dataOriginalText);
element[innerHTML] = element[getAttribute](dataOriginalText);
}
},
keyHandler = function(e){
var key = e.which || e.keyCode;
key === 32 && e[target] === DOC.activeElement && toggle(e);
},
preventScroll = function(e){
var key = e.which || e.keyCode;
key === 32 && e[preventDefault]();
},
toggle = function(e) {

@@ -52,4 +60,4 @@ var label = e[target].tagName === LABEL ? e[target] : e[target][parentNode].tagName === LABEL ? e[target][parentNode] : null; // the .btn label

var eventTarget = this, // the button group, the target of the handler function
labels = getElementsByClassName(eventTarget,'btn'), // all the button group buttons
var eventTarget = e[target], // the button itself, the target of the handler function
labels = getElementsByClassName(eventTarget[parentNode],'btn'), // all the button group buttons
input = label[getElementsByTagName](INPUT)[0];

@@ -113,2 +121,4 @@

on( element, clickEvent, toggle );
queryElement('['+tabindex+']',element) && on( element, keyupEvent, keyHandler ),
on( element, keydownEvent, preventScroll );
}

@@ -128,3 +138,3 @@

// =================
initializeDataAPI( stringButton, Button, DOC[querySelectorAll]('['+dataToggle+'="buttons"]') );
supports[push]( [ stringButton, Button, '['+dataToggle+'="buttons"]' ] );

@@ -29,3 +29,3 @@

if ( !( options[interval] || intervalData ) ) { // determine slide interval
if ( !options[interval] || !intervalData ) { // determine slide interval
this[interval] = false;

@@ -64,3 +64,3 @@ } else {

var eventTarget = e[target], activeIndicator = self.getActiveIndex(); // event target | the current active item
var eventTarget = e[target]; // event target | the current active item

@@ -193,3 +193,3 @@ if ( eventTarget && !hasClass(eventTarget,active) && eventTarget[getAttribute](dataSlideTo) ) {

if ( this[pause] && this[interval] ) {
if ( self[pause] && self[interval] ) {
on( element, mouseHover[0], pauseHandler );

@@ -204,7 +204,7 @@ on( element, mouseHover[1], resumeHandler );

indicator && on( indicator, clickEvent, indicatorHandler, false);
this[keyboard] === true && on( globalObject, keydownEvent, keyHandler, false);
indicator && on( indicator, clickEvent, indicatorHandler );
self[keyboard] && on( globalObject, keydownEvent, keyHandler );
}
if (this.getActiveIndex()<0) {
if (self.getActiveIndex()<0) {
slides[length] && addClass(slides[0],active);

@@ -214,4 +214,4 @@ indicators[length] && setActivePage(0);

if ( this[interval] ){ this.cycle(); }
element[stringCarousel] = this;
if ( self[interval] ){ self.cycle(); }
element[stringCarousel] = self;
};

@@ -221,3 +221,3 @@

// =================
initializeDataAPI( stringCarousel, Carousel, DOC[querySelectorAll]('['+dataRide+'="carousel"]') );
supports[push]( [ stringCarousel, Carousel, '['+dataRide+'="carousel"]' ] );

@@ -15,3 +15,2 @@

// event targets and constants

@@ -66,3 +65,3 @@ var accordion = null, collapse = null, self = this,

parent = element[getAttribute](dataTarget),
id = href || ( parent && targetsReg.test(parent) ) && parent;
id = href || ( parent && parent.charAt(0) === '#' ) && parent;
return id && queryElement(id);

@@ -101,7 +100,7 @@ };

if ( !(stringCollapse in element ) ) { // prevent adding event handlers twice
on(element, clickEvent, this.toggle);
on(element, clickEvent, self.toggle);
}
collapse = getTarget();
accordion = queryElement(options.parent) || accordionData && getClosest(element, accordionData);
element[stringCollapse] = this;
element[stringCollapse] = self;
};

@@ -111,3 +110,3 @@

// =================
initializeDataAPI(stringCollapse, Collapse, DOC[querySelectorAll]('['+dataToggle+'="collapse"]'));
supports[push]( [ stringCollapse, Collapse, '['+dataToggle+'="collapse"]' ] );

@@ -16,3 +16,3 @@

// constants, event targets, strings
var self = this,
var self = this, children = 'children',
parent = element[parentNode],

@@ -22,6 +22,14 @@ component = 'dropdown', open = 'open',

menu = queryElement('.dropdown-menu', parent),
menuItems = (function(){
var set = menu[children], newSet = [];
for ( var i=0; i<set[length]; i++ ){
set[i][children][length] && (set[i][children][0].tagName === 'A' && newSet[push](set[i]));
}
return newSet;
})(),
// preventDefault on empty anchor links
preventEmptyAnchor = function(anchor){
(/\#$/.test(anchor.href) || anchor[parentNode] && /\#$/.test(anchor[parentNode].href)) && this[preventDefault](); // should be here to prevent jumps
(anchor.href && anchor.href.slice(-1) === '#' || anchor[parentNode] && anchor[parentNode].href
&& anchor[parentNode].href.slice(-1) === '#') && this[preventDefault]();
},

@@ -32,4 +40,5 @@

var type = element[open] ? on : off;
type(DOC, keydownEvent, keyHandler);
type(DOC, clickEvent, dismissHandler);
type(DOC, keydownEvent, preventScroll);
type(DOC, keyupEvent, keyHandler);
},

@@ -39,7 +48,3 @@

dismissHandler = function(e) {
var eventTarget = e[target],
hasData = eventTarget && (eventTarget[getAttribute](dataToggle)
|| eventTarget[parentNode] && getAttribute in eventTarget[parentNode]
&& eventTarget[parentNode][getAttribute](dataToggle));
var eventTarget = e[target], hasData = eventTarget && stringDropdown in eventTarget;
if ( (eventTarget === menu || menu.contains(eventTarget)) && (self.persist || hasData) ) { return; }

@@ -52,5 +57,2 @@ else {

},
keyHandler = function(e) {
if (element[open] && (e.which === 27 || e.keyCode === 27)) { relatedTarget = null; hide(); } // e.keyCode for IE8
},
clickHandler = function(e) {

@@ -61,2 +63,29 @@ relatedTarget = element;

},
preventScroll = function(e){
var key = e.which || e.keyCode;
if( key === 38 || key === 40 ) { e[preventDefault](); }
},
keyHandler = function(e){
var key = e.which || e.keyCode,
activeItem = DOC.activeElement,
idx = menuItems[indexOf](activeItem[parentNode]),
isSameElement = activeItem === element,
isInsideMenu = menu.contains(activeItem),
isMenuItem = activeItem[parentNode][parentNode] === menu;
if ( isMenuItem || isSameElement ) { // navigate up | down
idx = isSameElement ? 0
: key === 38 ? (idx>1?idx-1:0)
: key === 40 ? (idx<menuItems[length]-1?idx+1:idx) : idx;
menuItems[idx] && setFocus(menuItems[idx][children][0]);
}
if ( (menuItems[length] && isMenuItem // menu has items
|| !menuItems[length] && (isInsideMenu || isSameElement) // menu might be a form
|| !isInsideMenu ) // or the focused element is not in the menu at all
&& element[open] && key === 27 // menu must be open
) {
self.toggle();
relatedTarget = null;
}
},

@@ -71,3 +100,6 @@ // private methods

off(element, clickEvent, clickHandler);
setTimeout(function(){ toggleDismiss(); },1);
setTimeout(function(){
setFocus( menu[getElementsByTagName]('INPUT')[0] || element ); // focus the first input item | element
toggleDismiss();
},1);
},

@@ -81,7 +113,8 @@ hide = function() {

toggleDismiss();
setFocus(element);
setTimeout(function(){ on(element, clickEvent, clickHandler); },1);
};
// set initial state to closed
element[open] = false;
// set initial state to closed
element[open] = false;

@@ -95,8 +128,8 @@ // public methods

// init
if ( !(stringDropdown in element) ) { // prevent adding event handlers twice
menu[setAttribute]('tabindex', '0'); // Fix onblur on Chrome | Safari
if (!(stringDropdown in element)) { // prevent adding event handlers twice
!tabindex in menu && menu[setAttribute](tabindex, '0'); // Fix onblur on Chrome | Safari
on(element, clickEvent, clickHandler);
}
element[stringDropdown] = this;
element[stringDropdown] = self;
};

@@ -106,3 +139,3 @@

// =================
initializeDataAPI( stringDropdown, Dropdown, DOC[querySelectorAll]('['+dataToggle+'="dropdown"]') );
supports[push]( [stringDropdown, Dropdown, '['+dataToggle+'="dropdown"]'] );

@@ -70,5 +70,5 @@

measureScrollbar = function () { // thx walsh
var scrollDiv = document.createElement('div'), scrollBarWidth;
var scrollDiv = DOC[createElement]('div'), scrollBarWidth;
scrollDiv.className = component+'-scrollbar-measure'; // this is here to stay
DOC[body].appendChild(scrollDiv);
DOC[body][appendChild](scrollDiv);
scrollBarWidth = scrollDiv[offsetWidth] - scrollDiv[clientWidth];

@@ -94,3 +94,3 @@ DOC[body].removeChild(scrollDiv);

var newOverlay = document.createElement('div');
var newOverlay = DOC[createElement]('div');
overlay = queryElement('.'+modalBackdropString);

@@ -101,3 +101,3 @@

overlay = newOverlay;
DOC[body].appendChild(overlay);
DOC[body][appendChild](overlay);
}

@@ -115,5 +115,5 @@ },

if (hasClass(modal,inClass)) {
on(document, keydownEvent, keyHandler);
on(DOC, keydownEvent, keyHandler);
} else {
off(document, keydownEvent, keyHandler);
off(DOC, keydownEvent, keyHandler);
}

@@ -145,3 +145,3 @@ },

setTimeout(function(){
if (!getElementsByClassName(document,component+' '+inClass)[0]) {
if (!getElementsByClassName(DOC,component+' '+inClass)[0]) {
resetAdjustments();

@@ -194,3 +194,3 @@ resetScrollbar();

// we elegantly hide any opened modal
var currentOpen = getElementsByClassName(document,component+' in')[0];
var currentOpen = getElementsByClassName(DOC,component+' in')[0];
currentOpen && currentOpen !== modal && currentOpen.modalTrigger[stringModal].hide();

@@ -237,3 +237,3 @@

this.setContent = function( content ) {
queryElement('.'+component+'-content',modal).innerHTML = content;
queryElement('.'+component+'-content',modal)[innerHTML] = content;
};

@@ -254,7 +254,7 @@ this.update = function() {

}
if ( !!this[content] ) { this.setContent( this[content] ); }
!!element && (element[stringModal] = this);
if ( !!self[content] ) { self.setContent( self[content] ); }
!!element && (element[stringModal] = self);
};
// DATA API
initializeDataAPI(stringModal, Modal, DOC[querySelectorAll]('['+dataToggle+'="modal"]'));
supports[push]( [ stringModal, Modal, '['+dataToggle+'="modal"]' ] );

@@ -12,2 +12,5 @@

// set options
options = options || {};
// DATA API

@@ -32,2 +35,6 @@ var triggerData = element[getAttribute](dataTrigger), // click / hover / focus

closeBtn = '<button type="button" class="close">×</button>',
// check container
containerElement = queryElement(options[container]),
containerDataElement = queryElement(containerData),

@@ -41,4 +48,3 @@ // maybe the element is inside a modal

// set options
options = options || {};
// set instance options
this[template] = options[template] ? options[template] : null; // JavaScript only

@@ -50,4 +56,4 @@ this[trigger] = options[trigger] ? options[trigger] : triggerData || hoverEvent;

this[dismissible] = options[dismissible] || dismissibleData === 'true' ? true : false;
this[container] = queryElement(options[container]) ? queryElement(options[container])
: queryElement(containerData) ? queryElement(containerData)
this[container] = containerElement ? containerElement
: containerDataElement ? containerDataElement
: navbarFixedTop ? navbarFixedTop

@@ -83,3 +89,3 @@ : navbarFixedBottom ? navbarFixedBottom

popover = document.createElement(div);
popover = DOC[createElement](div);

@@ -91,24 +97,24 @@ if ( contentString !== null && self[template] === null ) { //create the popover from data attributes

if (titleString !== null) {
var popoverTitle = document.createElement('h3');
var popoverTitle = DOC[createElement]('h3');
popoverTitle[setAttribute](classString,component+'-title');
popoverTitle.innerHTML = self[dismissible] ? titleString + closeBtn : titleString;
popover.appendChild(popoverTitle);
popoverTitle[innerHTML] = self[dismissible] ? titleString + closeBtn : titleString;
popover[appendChild](popoverTitle);
}
var popoverArrow = document.createElement(div), popoverContent = document.createElement(div);
var popoverArrow = DOC[createElement](div), popoverContent = DOC[createElement](div);
popoverArrow[setAttribute](classString,'arrow'); popoverContent[setAttribute](classString,component+'-content');
popover.appendChild(popoverArrow); popover.appendChild(popoverContent);
popover[appendChild](popoverArrow); popover[appendChild](popoverContent);
//set popover content
popoverContent.innerHTML = self[dismissible] && titleString === null ? contentString + closeBtn : contentString;
popoverContent[innerHTML] = self[dismissible] && titleString === null ? contentString + closeBtn : contentString;
} else { // or create the popover from template
var popoverTemplate = document.createElement(div);
popoverTemplate.innerHTML = self[template];
popover.innerHTML = popoverTemplate.firstChild.innerHTML;
var popoverTemplate = DOC[createElement](div);
popoverTemplate[innerHTML] = self[template];
popover[innerHTML] = popoverTemplate.firstChild[innerHTML];
}
//append to the container
self[container].appendChild(popover);
self[container][appendChild](popover);
popover[style].display = 'block';

@@ -126,6 +132,6 @@ popover[setAttribute](classString, component+ ' ' + placementSetting + ' ' + self[animation]);

dismissHandlerToggle = function(type){
if (/^(click|focus)$/.test(self[trigger])) {
if (clickEvent == self[trigger] || 'focus' == self[trigger]) {
!self[dismissible] && type( element, 'blur', self.hide );
}
self[dismissible] && type( document, clickEvent, dismissibleHandler );
self[dismissible] && type( DOC, clickEvent, dismissibleHandler );
!isIE8 && type( globalObject, resizeEvent, self.hide );

@@ -179,3 +185,3 @@ },

if (!self[dismissible]) { on( element, mouseHover[1], self.hide ); }
} else if (/^(click|focus)$/.test(self[trigger])) {
} else if (clickEvent == self[trigger] || 'focus' == self[trigger]) {
on( element, self[trigger], self.toggle );

@@ -189,3 +195,3 @@ }

// ================
initializeDataAPI(stringPopover, Popover, DOC[querySelectorAll]('['+dataToggle+'="popover"]'));
supports[push]( [ stringPopover, Popover, '['+dataToggle+'="popover"]' ] );

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

// event targets, constants
var spyTarget = options[target] && queryElement(options[target]) || targetData,
var self = this, spyTarget = options[target] && queryElement(options[target]) || targetData,
links = spyTarget && spyTarget[getElementsByTagName]('A'),

@@ -32,6 +32,6 @@ offset = parseInt(offsetData || options['offset']) || 10,

var href = links[i][getAttribute]('href'),
targetItem = href && targetsReg.test(href) && queryElement(href);
targetItem = href && href.charAt(0) === '#' && href.slice(-1) !== '#' && queryElement(href);
if ( !!targetItem ) {
items.push(links[i]);
targetItems.push(targetItem);
items[push](links[i]);
targetItems[push](targetItem);
}

@@ -57,3 +57,2 @@ }

addClass(parent,active);
isActive = true;
if (dropdown && !hasClass(dropdown,active) ) {

@@ -67,3 +66,2 @@ addClass(dropdown,active);

removeClass(parent,active);
isActive = false;
if (dropdown && hasClass(dropdown,active) && !getElementsByClassName(parent[parentNode],active).length ) {

@@ -91,7 +89,7 @@ removeClass(dropdown,active);

if ( !(stringScrollSpy in element) ) { // prevent adding event handlers twice
on( scrollTarget, scrollEvent, this.refresh );
!isIE8 && on( globalObject, resizeEvent, this.refresh );
on( scrollTarget, scrollEvent, self.refresh );
!isIE8 && on( globalObject, resizeEvent, self.refresh );
}
this.refresh();
element[stringScrollSpy] = this;
self.refresh();
element[stringScrollSpy] = self;
};

@@ -101,3 +99,3 @@

// ==================
initializeDataAPI(stringScrollSpy, ScrollSpy, DOC[querySelectorAll]('['+dataSpy+'="scroll"]'));
supports[push]( [ stringScrollSpy, ScrollSpy, '['+dataSpy+'="scroll"]' ] );

@@ -102,4 +102,5 @@

clickHandler = function(e) {
var href = e[target][getAttribute]('href');
e[preventDefault]();
next = e[target][getAttribute](dataToggle) === component || targetsReg.test(e[target][getAttribute]('href'))
next = e[target][getAttribute](dataToggle) === component || (href && href.charAt(0) === '#')
? e[target] : e[target][parentNode]; // allow for child elements like icons to use the handler

@@ -140,4 +141,4 @@ !tabs[isAnimating] && !hasClass(next[parentNode],active) && self.show();

}
if (this[height]) { tabsContentContainer = getActiveContent()[parentNode]; }
element[stringTab] = this;
if (self[height]) { tabsContentContainer = getActiveContent()[parentNode]; }
element[stringTab] = self;
};

@@ -147,3 +148,3 @@

// ============
initializeDataAPI(stringTab, Tab, DOC[querySelectorAll]('['+dataToggle+'="tab"]'));
supports[push]( [ stringTab, Tab, '['+dataToggle+'="tab"]' ] );

@@ -12,2 +12,5 @@

// set options
options = options || {};
// DATA API

@@ -26,2 +29,6 @@ var animationData = element[getAttribute](dataAnimation),

// check container
containerElement = queryElement(options[container]),
containerDataElement = queryElement(containerData),
// maybe the element is inside a modal

@@ -34,9 +41,8 @@ modal = getClosest(element,'.modal'),

// set options
options = options || {};
// set instance options
this[animation] = options[animation] && options[animation] !== fade ? options[animation] : animationData || fade;
this[placement] = options[placement] ? options[placement] : placementData || top;
this[delay] = parseInt(options[delay] || delayData) || 200;
this[container] = queryElement(options[container]) ? queryElement(options[container])
: queryElement(containerData) ? queryElement(containerData)
this[container] = containerElement ? containerElement
: containerDataElement ? containerDataElement
: navbarFixedTop ? navbarFixedTop

@@ -61,13 +67,13 @@ : navbarFixedBottom ? navbarFixedBottom

tooltip = document.createElement(div);
tooltip = DOC[createElement](div);
tooltip[setAttribute]('role',component);
var tooltipArrow = document.createElement(div), tooltipInner = document.createElement(div);
var tooltipArrow = DOC[createElement](div), tooltipInner = DOC[createElement](div);
tooltipArrow[setAttribute](classString, component+'-arrow'); tooltipInner[setAttribute](classString,component+'-inner');
tooltip.appendChild(tooltipArrow); tooltip.appendChild(tooltipInner);
tooltip[appendChild](tooltipArrow); tooltip[appendChild](tooltipInner);
tooltipInner.innerHTML = titleString;
tooltipInner[innerHTML] = titleString;
self[container].appendChild(tooltip);
self[container][appendChild](tooltip);
tooltip[setAttribute](classString, component + ' ' + placementSetting + ' ' + self[animation]);

@@ -109,3 +115,3 @@ },

timer = setTimeout( function() {
if (tooltip && tooltip !== null && hasClass(tooltip,inClass)) {
if (tooltip && hasClass(tooltip,inClass)) {
bootstrapCustomEvent.call(element, hideEvent, component);

@@ -129,3 +135,3 @@ removeClass(tooltip,inClass);

}
element[stringTooltip] = this;
element[stringTooltip] = self;
};

@@ -135,3 +141,3 @@

// =================
initializeDataAPI(stringTooltip, Tooltip, DOC[querySelectorAll]('['+dataToggle+'="tooltip"]'));
supports[push]( [ stringTooltip, Tooltip, '['+dataToggle+'="tooltip"]' ] );

@@ -8,4 +8,8 @@

var globalObject = typeof global !== 'undefined' ? global : this||window,
HTML = document.documentElement, DOC = document, body = 'body', // allow the library to be used in <head>
DOC = document, HTML = DOC.documentElement, body = 'body', // allow the library to be used in <head>
// Native Javascript for Bootstrap Global Object
BSN = globalObject.BSN = {},
supports = BSN.supports = [],
// function toggle attributes

@@ -72,2 +76,3 @@ dataToggle = 'data-toggle',

keydownEvent = 'keydown',
keyupEvent = 'keyup',
resizeEvent = 'resize',

@@ -87,9 +92,12 @@ scrollEvent = 'scroll',

// other
getAttribute = 'getAttribute',
setAttribute = 'setAttribute',
hasAttribute = 'hasAttribute',
getElementsByTagName = 'getElementsByTagName',
preventDefault = 'preventDefault',
getBoundingClientRect= 'getBoundingClientRect',
querySelectorAll = 'querySelectorAll',
getAttribute = 'getAttribute',
setAttribute = 'setAttribute',
hasAttribute = 'hasAttribute',
createElement = 'createElement',
appendChild = 'appendChild',
innerHTML = 'innerHTML',
getElementsByTagName = 'getElementsByTagName',
preventDefault = 'preventDefault',
getBoundingClientRect = 'getBoundingClientRect',
querySelectorAll = 'querySelectorAll',
getElementsByCLASSNAME = 'getElementsByClassName',

@@ -104,2 +112,4 @@

style = 'style',
push = 'push',
tabindex = 'tabindex',

@@ -120,3 +130,3 @@ active = 'active',

// tooltip / popover
mouseHover = ('onmouseleave' in document) ? [ 'mouseenter', 'mouseleave'] : [ 'mouseover', 'mouseout' ],
mouseHover = ('onmouseleave' in DOC) ? [ 'mouseenter', 'mouseleave'] : [ 'mouseover', 'mouseout' ],
tipPositions = /\b(top|bottom|left|right)+/,

@@ -131,3 +141,3 @@

supportTransitions = Webkit+Transition in HTML[style] || Transition[toLowerCase]() in HTML[style],
transitionEndEvent = Webkit+Transition in HTML[style] ? Webkit[toLowerCase]()+Transition+'End' : Transition[toLowerCase]()+'end',
transitionEndEvent = Webkit+Transition in HTML[style] ? Webkit[toLowerCase]()+Transition+'End' : Transition[toLowerCase]()+'end',

@@ -152,3 +162,3 @@ // set new focus element since 2.0.3

nodeListToArray = function(nodeList){
var childItems = []; for (var i = 0, nll = nodeList[length]; i<nll; i++) { childItems.push( nodeList[i] ) }
var childItems = []; for (var i = 0, nll = nodeList[length]; i<nll; i++) { childItems[push]( nodeList[i] ) }
return childItems;

@@ -161,14 +171,16 @@ },

queryElement = function (selector, parent) {
var lookUp = parent ? parent : document;
var lookUp = parent ? parent : DOC;
return typeof selector === 'object' ? selector : lookUp.querySelector(selector);
},
getClosest = function (element, selector) { //element is the element and selector is for the closest parent element to find
// source http://gomakethings.com/climbing-up-and-down-the-dom-tree-with-vanilla-javascript/
var firstChar = selector.charAt(0);
for ( ; element && element !== document; element = element[parentNode] ) {// Get closest match
if ( firstChar === '.' ) {// If selector is a class
if ( queryElement(selector,element[parentNode]) !== null && hasClass(element,selector.replace('.','')) ) { return element; }
} else if ( firstChar === '#' ) { // If selector is an ID
if ( element.id === selector.substr(1) ) { return element; }
// source http://gomakethings.com/climbing-up-and-down-the-dom-tree-with-vanilla-javascript/
var firstChar = selector.charAt(0), selectorSubstring = selector.substr(1);
if ( firstChar === '.' ) {// If selector is a class
for ( ; element && element !== DOC; element = element[parentNode] ) { // Get closest match
if ( queryElement(selector,element[parentNode]) !== null && hasClass(element,selectorSubstring) ) { return element; }
}
} else if ( firstChar === '#' ) { // If selector is an ID
for ( ; element && element !== DOC; element = element[parentNode] ) { // Get closest match
if ( element.id === selectorSubstring ) { return element; }
}
}

@@ -201,12 +213,2 @@ return false;

// Init DATA API
initializeDataAPI = function( component, constructor, collection ){
for (var i=0; i < collection[length]; i++) {
new constructor(collection[i]);
}
},
// tab / collapse stuff
targetsReg = /^\#(.)+$/,
// tooltip / popover stuff

@@ -249,3 +251,3 @@ getScroll = function() { // also Affix and ScrollSpy uses it

leftPosition = rect[left] + scroll.x - elementDimensions.w;
} else if ( position === right ) { // RIGHT
} else { // RIGHT
leftPosition = rect[left] + scroll.x + linkDimensions.w;

@@ -267,3 +269,3 @@ }

topPosition = rect[top] + scroll.y - elementDimensions.h;
} else if ( position === bottom ) { // BOTTOM
} else { // BOTTOM
topPosition = rect[top] + scroll.y + linkDimensions.h;

@@ -270,0 +272,0 @@ }

@@ -41,3 +41,3 @@

}
element[stringAlert] = this;
element[stringAlert] = self;
};

@@ -47,3 +47,3 @@

// ==============
initializeDataAPI ( stringAlert, Alert, DOC[querySelectorAll]('['+dataDismiss+'="alert"]') );
supports[push]([stringAlert, Alert, '['+dataDismiss+'="alert"]']);

@@ -23,2 +23,10 @@

// private methods
keyHandler = function(e){
var key = e.which || e.keyCode;
key === 32 && e[target] === DOC.activeElement && toggle(e);
},
preventScroll = function(e){
var key = e.which || e.keyCode;
key === 32 && e[preventDefault]();
},
toggle = function(e) {

@@ -29,4 +37,4 @@ var label = e[target].tagName === LABEL ? e[target] : e[target][parentNode].tagName === LABEL ? e[target][parentNode] : null; // the .btn label

var eventTarget = this, // the button group, the target of the handler function
labels = getElementsByClassName(eventTarget,'btn'), // all the button group buttons
var eventTarget = e[target], // the button itself, the target of the handler function
labels = getElementsByClassName(eventTarget[parentNode],'btn'), // all the button group buttons
input = label[getElementsByTagName](INPUT)[0];

@@ -83,2 +91,4 @@

on( element, clickEvent, toggle );
queryElement('['+tabindex+']',element) && on( element, keyupEvent, keyHandler ),
on( element, keydownEvent, preventScroll );
}

@@ -97,3 +107,3 @@

// =================
initializeDataAPI( stringButton, Button, DOC[querySelectorAll]('['+dataToggle+'="buttons"]') );
supports[push]( [ stringButton, Button, '['+dataToggle+'="buttons"]' ] );

@@ -30,3 +30,3 @@

if ( !( options[interval] || intervalData ) ) { // determine slide interval
if ( !options[interval] || !intervalData ) { // determine slide interval
this[interval] = false;

@@ -65,3 +65,3 @@ } else {

var eventTarget = e[target], activeIndicator = self.getActiveIndex(); // event target | the current active item
var eventTarget = e[target]; // event target | the current active item

@@ -170,3 +170,3 @@ if ( eventTarget && !hasClass(eventTarget,active) && eventTarget[getAttribute](dataSlideTo) ) {

if ( !document.hidden && self[interval] && !hasClass(element,paused) ) {
if ( !DOC.hidden && self[interval] && !hasClass(element,paused) ) {
self.cycle();

@@ -197,3 +197,3 @@ }

if ( this[pause] && this[interval] ) {
if ( self[pause] && self[interval] ) {
on( element, mouseHover[0], pauseHandler );

@@ -208,6 +208,6 @@ on( element, mouseHover[1], resumeHandler );

indicator && on( indicator, clickEvent, indicatorHandler, false);
this[keyboard] === true && on( globalObject, keydownEvent, keyHandler, false);
indicator && on( indicator, clickEvent, indicatorHandler );
self[keyboard] === true && on( globalObject, keydownEvent, keyHandler );
}
if (this.getActiveIndex()<0) {
if (self.getActiveIndex()<0) {
slides[length] && addClass(slides[0],active);

@@ -217,4 +217,4 @@ indicators[length] && setActivePage(0);

if ( this[interval] ){ this.cycle(); }
element[stringCarousel] = this;
if ( self[interval] ){ self.cycle(); }
element[stringCarousel] = self;
};

@@ -224,3 +224,3 @@

// =================
initializeDataAPI( stringCarousel, Carousel, DOC[querySelectorAll]('['+dataRide+'="carousel"]') );
supports[push]( [ stringCarousel, Carousel, '['+dataRide+'="carousel"]' ] );

@@ -15,3 +15,2 @@

// event targets and constants

@@ -66,3 +65,3 @@ var accordion = null, collapse = null, self = this,

parent = element[getAttribute](dataTarget),
id = href || ( parent && targetsReg.test(parent) ) && parent;
id = href || ( parent && parent.charAt(0) === '#' ) && parent;
return id && queryElement(id);

@@ -101,7 +100,7 @@ };

if ( !(stringCollapse in element ) ) { // prevent adding event handlers twice
on(element, clickEvent, this.toggle);
on(element, clickEvent, self.toggle);
}
collapse = getTarget();
accordion = queryElement(options.parent) || accordionData && getClosest(element, accordionData);
element[stringCollapse] = this;
element[stringCollapse] = self;
};

@@ -111,3 +110,3 @@

// =================
initializeDataAPI(stringCollapse, Collapse, DOC[querySelectorAll]('['+dataToggle+'="collapse"]'));
supports[push]( [ stringCollapse, Collapse, '['+dataToggle+'="collapse"]' ] );

@@ -16,3 +16,3 @@

// constants, event targets, strings
var self = this,
var self = this, children = 'children',
parent = element[parentNode],

@@ -22,6 +22,15 @@ component = 'dropdown', open = 'open',

menu = queryElement('.dropdown-menu', parent),
menuItems = (function(){
var set = menu[children], newSet = [];
for ( var i=0; i<set[length]; i++ ){
set[i][children][length] && (set[i][children][0].tagName === 'A' && newSet[push](set[i][children][0]));
set[i].tagName === 'A' && newSet[push](set[i]);
}
return newSet;
})(),
// preventDefault on empty anchor links
preventEmptyAnchor = function(anchor){
(/\#$/.test(anchor.href) || anchor[parentNode] && /\#$/.test(anchor[parentNode].href)) && this[preventDefault](); // should be here to prevent jumps
(anchor.href && anchor.href.slice(-1) === '#' || anchor[parentNode] && anchor[parentNode].href
&& anchor[parentNode].href.slice(-1) === '#') && this[preventDefault]();
},

@@ -32,4 +41,5 @@

var type = element[open] ? on : off;
type(DOC, keydownEvent, keyHandler);
type(DOC, clickEvent, dismissHandler);
type(DOC, keydownEvent, preventScroll);
type(DOC, keyupEvent, keyHandler);
},

@@ -39,7 +49,3 @@

dismissHandler = function(e) {
var eventTarget = e[target],
hasData = eventTarget && (eventTarget[getAttribute](dataToggle)
|| eventTarget[parentNode] && getAttribute in eventTarget[parentNode]
&& eventTarget[parentNode][getAttribute](dataToggle));
var eventTarget = e[target], hasData = eventTarget && stringDropdown in eventTarget;
if ( (eventTarget === menu || menu.contains(eventTarget)) && (self.persist || hasData) ) { return; }

@@ -52,5 +58,2 @@ else {

},
keyHandler = function(e) {
if ( element[open] && e.which === 27 ) { relatedTarget = null; hide(); }
},
clickHandler = function(e) {

@@ -61,3 +64,30 @@ relatedTarget = element;

},
preventScroll = function(e){
var key = e.which || e.keyCode;
if( key === 38 || key === 40 ) { e[preventDefault](); }
},
keyHandler = function(e){
var key = e.which || e.keyCode,
activeItem = DOC.activeElement,
idx = menuItems[indexOf](activeItem),
isSameElement = activeItem === element,
isInsideMenu = menu.contains(activeItem),
isMenuItem = activeItem[parentNode] === menu || activeItem[parentNode][parentNode] === menu;
if ( isMenuItem || isSameElement ) { // navigate up | down
idx = isSameElement ? 0
: key === 38 ? (idx>1?idx-1:0)
: key === 40 ? (idx<menuItems[length]-1?idx+1:idx) : idx;
menuItems[idx] && setFocus(menuItems[idx]);
}
if ( (menuItems[length] && isMenuItem // menu has items
|| !menuItems[length] && (isInsideMenu || isSameElement) // menu might be a form
|| !isInsideMenu ) // or the focused element is not in the menu at all
&& element[open] && key === 27 // menu must be open
) {
self.toggle();
relatedTarget = null;
}
},
// private methods

@@ -72,3 +102,6 @@ show = function() {

off(element, clickEvent, clickHandler);
setTimeout(function(){ toggleDismiss(); },1);
setTimeout(function(){
setFocus( menu[getElementsByTagName]('INPUT')[0] || element ); // focus the first input item | element
toggleDismiss();
},1);
},

@@ -83,2 +116,3 @@ hide = function() {

toggleDismiss();
setFocus(element);
setTimeout(function(){ on(element, clickEvent, clickHandler); },1);

@@ -98,7 +132,7 @@ };

if ( !(stringDropdown in element) ) { // prevent adding event handlers twice
menu[setAttribute]('tabindex', '0'); // Fix onblur on Chrome | Safari
!tabindex in menu && menu[setAttribute]('tabindex', '0'); // Fix onblur on Chrome | Safari
on(element, clickEvent, clickHandler);
}
element[stringDropdown] = this;
element[stringDropdown] = self;
};

@@ -108,3 +142,3 @@

// =================
initializeDataAPI( stringDropdown, Dropdown, DOC[querySelectorAll]('['+dataToggle+'="dropdown"]') );
supports[push]( [stringDropdown, Dropdown, '['+dataToggle+'="dropdown"]'] );

@@ -70,5 +70,5 @@

measureScrollbar = function () { // thx walsh
var scrollDiv = document.createElement('div'), scrollBarWidth;
var scrollDiv = DOC[createElement]('div'), scrollBarWidth;
scrollDiv.className = component+'-scrollbar-measure'; // this is here to stay
DOC[body].appendChild(scrollDiv);
DOC[body][appendChild](scrollDiv);
scrollBarWidth = scrollDiv[offsetWidth] - scrollDiv[clientWidth];

@@ -94,3 +94,3 @@ DOC[body].removeChild(scrollDiv);

var newOverlay = document.createElement('div');
var newOverlay = DOC[createElement]('div');
overlay = queryElement('.'+modalBackdropString);

@@ -101,3 +101,3 @@

overlay = newOverlay;
DOC[body].appendChild(overlay);
DOC[body][appendChild](overlay);
}

@@ -115,5 +115,5 @@ },

if (hasClass(modal,showClass)) {
on(document, keydownEvent, keyHandler);
on(DOC, keydownEvent, keyHandler);
} else {
off(document, keydownEvent, keyHandler);
off(DOC, keydownEvent, keyHandler);
}

@@ -145,3 +145,3 @@ },

setTimeout(function(){
if (!getElementsByClassName(document,component+' '+showClass)[0]) {
if (!getElementsByClassName(DOC,component+' '+showClass)[0]) {
resetAdjustments();

@@ -193,3 +193,3 @@ resetScrollbar();

// we elegantly hide any opened modal
var currentOpen = getElementsByClassName(document,component+' '+showClass)[0];
var currentOpen = getElementsByClassName(DOC,component+' '+showClass)[0];
currentOpen && currentOpen !== modal && currentOpen.modalTrigger[stringModal].hide();

@@ -236,3 +236,3 @@

this.setContent = function( content ) {
queryElement('.'+component+'-content',modal).innerHTML = content;
queryElement('.'+component+'-content',modal)[innerHTML] = content;
};

@@ -253,7 +253,7 @@ this.update = function() {

}
if ( !!this[content] ) { this.setContent( this[content] ); }
!!element && (element[stringModal] = this);
if ( !!self[content] ) { self.setContent( self[content] ); }
!!element && (element[stringModal] = self);
};
// DATA API
initializeDataAPI(stringModal, Modal, DOC[querySelectorAll]('['+dataToggle+'="modal"]'));
supports[push]( [ stringModal, Modal, '['+dataToggle+'="modal"]' ] );

@@ -12,2 +12,5 @@

// set options
options = options || {};
// DATA API

@@ -32,2 +35,6 @@ var triggerData = element[getAttribute](dataTrigger), // click / hover / focus

closeBtn = '<button type="button" class="close">×</button>',
// check container
containerElement = queryElement(options[container]),
containerDataElement = queryElement(containerData),

@@ -41,4 +48,3 @@ // maybe the element is inside a modal

// set options
options = options || {};
// set instance options
this[template] = options[template] ? options[template] : null; // JavaScript only

@@ -50,4 +56,4 @@ this[trigger] = options[trigger] ? options[trigger] : triggerData || hoverEvent;

this[dismissible] = options[dismissible] || dismissibleData === 'true' ? true : false;
this[container] = queryElement(options[container]) ? queryElement(options[container])
: queryElement(containerData) ? queryElement(containerData)
this[container] = containerElement ? containerElement
: containerDataElement ? containerDataElement
: navbarFixedTop ? navbarFixedTop

@@ -83,8 +89,8 @@ : navbarFixedBottom ? navbarFixedBottom

popover = document.createElement(div);
popover = DOC[createElement](div);
// popover arrow
var popoverArrow = document.createElement(div);
var popoverArrow = DOC[createElement](div);
popoverArrow[setAttribute](classString,'arrow');
popover.appendChild(popoverArrow);
popover[appendChild](popoverArrow);

@@ -96,23 +102,23 @@ if ( contentString !== null && self[template] === null ) { //create the popover from data attributes

if (titleString !== null) {
var popoverTitle = document.createElement('h3');
var popoverTitle = DOC[createElement]('h3');
popoverTitle[setAttribute](classString,component+'-header');
popoverTitle.innerHTML = self[dismissible] ? titleString + closeBtn : titleString;
popover.appendChild(popoverTitle);
popoverTitle[innerHTML] = self[dismissible] ? titleString + closeBtn : titleString;
popover[appendChild](popoverTitle);
}
//set popover content
var popoverContent = document.createElement(div);
var popoverContent = DOC[createElement](div);
popoverContent[setAttribute](classString,component+'-body');
popoverContent.innerHTML = self[dismissible] && titleString === null ? contentString + closeBtn : contentString;
popover.appendChild(popoverContent);
popoverContent[innerHTML] = self[dismissible] && titleString === null ? contentString + closeBtn : contentString;
popover[appendChild](popoverContent);
} else { // or create the popover from template
var popoverTemplate = document.createElement(div);
popoverTemplate.innerHTML = self[template];
popover.innerHTML = popoverTemplate.firstChild.innerHTML;
var popoverTemplate = DOC[createElement](div);
popoverTemplate[innerHTML] = self[template];
popover[innerHTML] = popoverTemplate.firstChild[innerHTML];
}
//append to the container
self[container].appendChild(popover);
self[container][appendChild](popover);
popover[style].display = 'block';

@@ -130,6 +136,6 @@ popover[setAttribute](classString, component+ ' bs-' + component+'-'+placementSetting + ' ' + self[animation]);

dismissHandlerToggle = function(type){
if (/^(click|focus)$/.test(self[trigger])) {
if (clickEvent == self[trigger] || 'focus' == self[trigger]) {
!self[dismissible] && type( element, 'blur', self.hide );
}
self[dismissible] && type( document, clickEvent, dismissibleHandler );
self[dismissible] && type( DOC, clickEvent, dismissibleHandler );
type( globalObject, resizeEvent, self.hide );

@@ -183,3 +189,3 @@ },

if (!self[dismissible]) { on( element, mouseHover[1], self.hide ); }
} else if (/^(click|focus)$/.test(self[trigger])) {
} else if (clickEvent == self[trigger] || 'focus' == self[trigger]) {
on( element, self[trigger], self.toggle );

@@ -193,3 +199,3 @@ }

// ================
initializeDataAPI(stringPopover, Popover, DOC[querySelectorAll]('['+dataToggle+'="popover"]'));
supports[push]( [ stringPopover, Popover, '['+dataToggle+'="popover"]' ] );

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

// event targets, constants
var spyTarget = options[target] && queryElement(options[target]) || targetData,
var self = this, spyTarget = options[target] && queryElement(options[target]) || targetData,
links = spyTarget && spyTarget[getElementsByTagName]('A'),

@@ -32,6 +32,6 @@ offset = parseInt(offsetData || options['offset']) || 10,

var href = links[i][getAttribute]('href'),
targetItem = href && targetsReg.test(href) && queryElement(href);
targetItem = href && href.charAt(0) === '#' && href.slice(-1) !== '#' && queryElement(href);
if ( !!targetItem ) {
items.push(links[i]);
targetItems.push(targetItem);
items[push](links[i]);
targetItems[push](targetItem);
}

@@ -58,3 +58,2 @@ }

addClass(item,active);
isActive = true;
if (dropdownLink && !hasClass(dropdownLink,active) ) {

@@ -68,3 +67,2 @@ addClass(dropdownLink,active);

removeClass(item,active);
isActive = false;
if (dropdownLink && hasClass(dropdownLink,active) && !getElementsByClassName(item[parentNode],active).length ) {

@@ -92,7 +90,7 @@ removeClass(dropdownLink,active);

if ( !(stringScrollSpy in element) ) { // prevent adding event handlers twice
on( scrollTarget, scrollEvent, this.refresh );
on( globalObject, resizeEvent, this.refresh );
on( scrollTarget, scrollEvent, self.refresh );
on( globalObject, resizeEvent, self.refresh );
}
this.refresh();
element[stringScrollSpy] = this;
self.refresh();
element[stringScrollSpy] = self;
};

@@ -102,3 +100,3 @@

// ==================
initializeDataAPI(stringScrollSpy, ScrollSpy, DOC[querySelectorAll]('['+dataSpy+'="scroll"]'));
supports[push]( [ stringScrollSpy, ScrollSpy, '['+dataSpy+'="scroll"]' ] );

@@ -102,6 +102,7 @@

clickHandler = function(e) {
var href = e[target][getAttribute]('href');
e[preventDefault]();
next = e[target][getAttribute](dataToggle) === component || targetsReg.test(e[target][getAttribute]('href'))
next = e[target][getAttribute](dataToggle) === component || (href && href.charAt(0) === '#')
? e[target] : e[target][parentNode]; // allow for child elements like icons to use the handler
!tabs[isAnimating] && !hasClass(next,active) && self.show();
!tabs[isAnimating] && !hasClass(next[parentNode],active) && self.show();
};

@@ -140,4 +141,4 @@

}
if (this[height]) { tabsContentContainer = getActiveContent()[parentNode]; }
element[stringTab] = this;
if (self[height]) { tabsContentContainer = getActiveContent()[parentNode]; }
element[stringTab] = self;
};

@@ -147,3 +148,3 @@

// ============
initializeDataAPI(stringTab, Tab, DOC[querySelectorAll]('['+dataToggle+'="tab"]'));
supports[push]( [ stringTab, Tab, '['+dataToggle+'="tab"]' ] );

@@ -12,2 +12,5 @@

// set options
options = options || {};
// DATA API

@@ -26,2 +29,6 @@ var animationData = element[getAttribute](dataAnimation),

// check container
containerElement = queryElement(options[container]),
containerDataElement = queryElement(containerData),
// maybe the element is inside a modal

@@ -34,9 +41,8 @@ modal = getClosest(element,'.modal'),

// set options
options = options || {};
// set instance options
this[animation] = options[animation] && options[animation] !== fade ? options[animation] : animationData || fade;
this[placement] = options[placement] ? options[placement] : placementData || top;
this[delay] = parseInt(options[delay] || delayData) || 200;
this[container] = queryElement(options[container]) ? queryElement(options[container])
: queryElement(containerData) ? queryElement(containerData)
this[container] = containerElement ? containerElement
: containerDataElement ? containerDataElement
: navbarFixedTop ? navbarFixedTop

@@ -60,16 +66,16 @@ : navbarFixedBottom ? navbarFixedBottom

if ( !titleString || titleString == "" ) return false; // invalidate
tooltip = document.createElement(div);
tooltip = DOC[createElement](div);
tooltip[setAttribute]('role',component);
// tooltip arrow
var tooltipArrow = document.createElement(div);
var tooltipArrow = DOC[createElement](div);
tooltipArrow[setAttribute](classString,'arrow');
tooltip.appendChild(tooltipArrow);
tooltip[appendChild](tooltipArrow);
var tooltipInner = document.createElement(div);
var tooltipInner = DOC[createElement](div);
tooltipInner[setAttribute](classString,component+'-inner');
tooltip.appendChild(tooltipInner);
tooltipInner.innerHTML = titleString;
tooltip[appendChild](tooltipInner);
tooltipInner[innerHTML] = titleString;
self[container].appendChild(tooltip);
self[container][appendChild](tooltip);
tooltip[setAttribute](classString, component + ' bs-' + component+'-'+placementSetting + ' ' + self[animation]);

@@ -111,3 +117,3 @@ },

timer = setTimeout( function() {
if (tooltip && tooltip !== null && hasClass(tooltip,showClass)) {
if (tooltip && hasClass(tooltip,showClass)) {
bootstrapCustomEvent.call(element, hideEvent, component);

@@ -128,6 +134,6 @@ removeClass(tooltip,showClass);

element.removeAttribute(title);
on(element, mouseHover[0], this.show);
on(element, mouseHover[1], this.hide);
on(element, mouseHover[0], self.show);
on(element, mouseHover[1], self.hide);
}
element[stringTooltip] = this;
element[stringTooltip] = self;
};

@@ -137,3 +143,3 @@

// =================
initializeDataAPI(stringTooltip, Tooltip, DOC[querySelectorAll]('['+dataToggle+'="tooltip"]'));
supports[push]( [ stringTooltip, Tooltip, '['+dataToggle+'="tooltip"]' ] );

@@ -8,4 +8,8 @@

var globalObject = typeof global !== 'undefined' ? global : this||window,
HTML = document.documentElement, DOC = document, body = 'body', // allow the library to be used in <head>
DOC = document, HTML = DOC.documentElement, body = 'body', // allow the library to be used in <head>
// Native Javascript for Bootstrap Global Object
BSN = globalObject.BSN = {},
supports = BSN.supports = [],
// function toggle attributes

@@ -71,2 +75,3 @@ dataToggle = 'data-toggle',

keydownEvent = 'keydown',
keyupEvent = 'keyup',
resizeEvent = 'resize',

@@ -86,10 +91,13 @@ scrollEvent = 'scroll',

// other
getAttribute = 'getAttribute',
setAttribute = 'setAttribute',
hasAttribute = 'hasAttribute',
getElementsByTagName = 'getElementsByTagName',
preventDefault = 'preventDefault',
getBoundingClientRect = 'getBoundingClientRect',
querySelectorAll = 'querySelectorAll',
getElementsByCLASSNAME = 'getElementsByClassName',
getAttribute = 'getAttribute',
setAttribute = 'setAttribute',
hasAttribute = 'hasAttribute',
createElement = 'createElement',
appendChild = 'appendChild',
innerHTML = 'innerHTML',
getElementsByTagName = 'getElementsByTagName',
preventDefault = 'preventDefault',
getBoundingClientRect = 'getBoundingClientRect',
querySelectorAll = 'querySelectorAll',
getElementsByCLASSNAME = 'getElementsByClassName',

@@ -103,2 +111,4 @@ indexOf = 'indexOf',

style = 'style',
push = 'push',
tabindex = 'tabindex',

@@ -116,3 +126,3 @@ active = 'active',

// tooltip / popover
mouseHover = ('onmouseleave' in document) ? [ 'mouseenter', 'mouseleave'] : [ 'mouseover', 'mouseout' ],
mouseHover = ('onmouseleave' in DOC) ? [ 'mouseenter', 'mouseleave'] : [ 'mouseover', 'mouseout' ],
tipPositions = /\b(top|bottom|left|right)+/,

@@ -150,14 +160,16 @@

queryElement = function (selector, parent) {
var lookUp = parent ? parent : document;
var lookUp = parent ? parent : DOC;
return typeof selector === 'object' ? selector : lookUp.querySelector(selector);
},
getClosest = function (element, selector) { //element is the element and selector is for the closest parent element to find
// source http://gomakethings.com/climbing-up-and-down-the-dom-tree-with-vanilla-javascript/
var firstChar = selector.charAt(0);
for ( ; element && element !== document; element = element[parentNode] ) {// Get closest match
if ( firstChar === '.' ) {// If selector is a class
if ( queryElement(selector,element[parentNode]) !== null && hasClass(element,selector.replace('.','')) ) { return element; }
} else if ( firstChar === '#' ) { // If selector is an ID
if ( element.id === selector.substr(1) ) { return element; }
// source http://gomakethings.com/climbing-up-and-down-the-dom-tree-with-vanilla-javascript/
var firstChar = selector.charAt(0), selectorSubstring = selector.substr(1);
if ( firstChar === '.' ) {// If selector is a class
for ( ; element && element !== DOC; element = element[parentNode] ) { // Get closest match
if ( queryElement(selector,element[parentNode]) !== null && hasClass(element,selectorSubstring) ) { return element; }
}
} else if ( firstChar === '#' ) { // If selector is an ID
for ( ; element && element !== DOC; element = element[parentNode] ) { // Get closest match
if ( element.id === selectorSubstring ) { return element; }
}
}

@@ -190,12 +202,2 @@ return false;

// Init DATA API
initializeDataAPI = function( component, constructor, collection ){
for (var i=0; i < collection[length]; i++) {
new constructor(collection[i]);
}
},
// tab / collapse stuff
targetsReg = /^\#(.)+$/,
// tooltip / popover stuff

@@ -239,3 +241,3 @@ getScroll = function() { // also Affix and ScrollSpy uses it

leftPosition = rect[left] + scroll.x - elementDimensions.w;
} else if ( position === right ) { // RIGHT
} else { // RIGHT
leftPosition = rect[left] + scroll.x + linkDimensions.w;

@@ -247,9 +249,9 @@ }

topPosition = rect[top] + scroll.y;
arrowTop = linkDimensions.h/2 - arrowWidth/2;
arrowTop = linkDimensions.h/2;
} else if (halfBottomExceed) {
topPosition = rect[top] + scroll.y - elementDimensions.h + linkDimensions.h;
arrowTop = elementDimensions.h - linkDimensions.h/2 - arrowWidth/2;
arrowTop = elementDimensions.h - linkDimensions.h/2;
} else {
topPosition = rect[top] + scroll.y - elementDimensions.h/2 + linkDimensions.h/2;
arrowTop = elementDimensions.h/2 - arrowWidth/2;
arrowTop = elementDimensions.h/2;
}

@@ -259,3 +261,3 @@ } else if ( position === top || position === bottom ) { // primary|vertical positions

topPosition = rect[top] + scroll.y - elementDimensions.h;
} else if ( position === bottom ) { // BOTTOM
} else { // BOTTOM
topPosition = rect[top] + scroll.y + linkDimensions.h;

@@ -266,9 +268,9 @@ }

leftPosition = 0;
arrowLeft = rect[left] + linkDimensions.w/2 - arrowWidth/2;
arrowLeft = rect[left] + linkDimensions.w/2;
} else if (halfRightExceed) {
leftPosition = windowWidth - elementDimensions.w*1.01;
arrowLeft = elementDimensions.w - ( windowWidth - rect[left] ) + linkDimensions.w/2 - arrowWidth/2;
arrowLeft = elementDimensions.w - ( windowWidth - rect[left] ) + linkDimensions.w/2;
} else {
leftPosition = rect[left] + scroll.x - elementDimensions.w/2 + linkDimensions.w/2;
arrowLeft = elementDimensions.w/2 - arrowWidth/2;
arrowLeft = elementDimensions.w/2;
}

@@ -275,0 +277,0 @@ }

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

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

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

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