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.26 to 2.0.27

demo.html

4

dist/bootstrap-native-v4.min.js

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

// Native Javascript for Bootstrap 4 v2.0.26 | © 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 i=e();t.Alert=i.Alert,t.Button=i.Button,t.Carousel=i.Carousel,t.Collapse=i.Collapse,t.Dropdown=i.Dropdown,t.Modal=i.Modal,t.Popover=i.Popover,t.ScrollSpy=i.ScrollSpy,t.Tab=i.Tab,t.Toast=i.Toast,t.Tooltip=i.Tooltip}}(this,function(){"use strict";var t="undefined"!=typeof global?global:this||window,e=document,i=e.documentElement,n="body",o=t.BSN={},a=o.supports=[],l="delay",r="target",s="animation",c="getAttribute",d="setAttribute",u="parentNode",h="length",f="Transition",p="Webkit",g="style",m="push",v="active",w="left",b="top",T="onmouseleave"in e?["mouseenter","mouseleave"]:["mouseover","mouseout"],y=/\b(top|bottom|left|right)+/,k=0,C=p+f in i[g]||f.toLowerCase()in i[g],x=p+f in i[g]?p.toLowerCase()+f+"End":f.toLowerCase()+"end",A=p+"Duration"in i[g]?p.toLowerCase()+f+"Duration":f.toLowerCase()+"Duration",E={start:"touchstart",end:"touchend",move:"touchmove"},L=function(t){t.focus?t.focus():t.setActive()},N=function(t,e){t.classList.add(e)},D=function(t,e){t.classList.remove(e)},I=function(t,e){return t.classList.contains(e)},H=function(t,e){return[].slice.call(t.getElementsByClassName(e))},B=function(t,i){var n=i||e;return"object"==typeof t?t:n.querySelector(t)},M=function(t,i){var n=i.charAt(0),o=i.substr(1);if("."===n){for(;t&&t!==e;t=t[u])if(null!==B(i,t[u])&&I(t,o))return t}else if("#"===n)for(;t&&t!==e;t=t[u])if(t.id===o)return t;return!1},S=function(t,e,i){t.addEventListener(e,i,!1)},W=function(t,e,i){t.removeEventListener(e,i,!1)},R=function(t,e,i){S(t,e,function n(o){i(o),W(t,e,n)})},P=function(e){var i=C?t.getComputedStyle(e)[A]:0;return i=parseFloat(i),i="number"!=typeof i||isNaN(i)?0:1e3*i},z=function(t,e){var i=0;P(t)?R(t,x,function(t){!i&&e(t),i=1}):setTimeout(function(){!i&&e(),i=1},17)},O=function(t,e,i){var n=new CustomEvent(t+".bs."+e);n.relatedTarget=i,this.dispatchEvent(n)},X=function(){return{y:t.pageYOffset||i.scrollTop,x:t.pageXOffset||i.scrollLeft}},j=function(t,o,a,l){var r,s,c,d,u,h,f={w:o.offsetWidth,h:o.offsetHeight},p=i.clientWidth||e[n].clientWidth,m=i.clientHeight||e[n].clientHeight,v=t.getBoundingClientRect(),T=l===e[n]?X():{x:l.offsetLeft+l.scrollLeft,y:l.offsetTop+l.scrollTop},k={w:v.right-v[w],h:v.bottom-v[b]},C=I(o,"popover"),x=B(".arrow",o),A=v[b]+k.h/2-f.h/2<0,E=v[w]+k.w/2-f.w/2<0,L=v[w]+f.w/2+k.w/2>=p,N=v[b]+f.h/2+k.h/2>=m,D=v[b]-f.h<0,H=v[w]-f.w<0,M=v[b]+f.h+k.h>=m,S=v[w]+f.w+k.w>=p;a=(a===w||"right"===a)&&H&&S?b:a,a=a===b&&D?"bottom":a,a="bottom"===a&&M?b:a,a=a===w&&H?"right":a,a="right"===a&&S?w:a,-1===o.className.indexOf(a)&&(o.className=o.className.replace(y,a)),u=x.offsetWidth,h=x.offsetHeight,a===w||"right"===a?(s=a===w?v[w]+T.x-f.w-(C?u:0):v[w]+T.x+k.w,A?(r=v[b]+T.y,c=k.h/2-u):N?(r=v[b]+T.y-f.h+k.h,c=f.h-k.h/2-u):(r=v[b]+T.y-f.h/2+k.h/2,c=f.h/2-(C?.9*h:h/2))):a!==b&&"bottom"!==a||(r=a===b?v[b]+T.y-f.h-(C?h:0):v[b]+T.y+k.h,E?(s=0,d=v[w]+k.w/2-u):L?(s=p-1.01*f.w,d=f.w-(p-v[w])+k.w/2-u/2):(s=v[w]+T.x-f.w/2+k.w/2,d=f.w/2-u/2)),o[g][b]=r+"px",o[g][w]=s+"px",c&&(x[g][b]=c+"px"),d&&(x[g][w]=d+"px")};o.version="2.0.26";var U=function(t){t=B(t);var e=this,i=M(t,".alert"),n=function(){I(i,"fade")?z(i,a):a()},o=function(n){i=M(n[r],".alert"),(t=B('[data-dismiss="alert"]',i))&&i&&(t===n[r]||t.contains(n[r]))&&e.close()},a=function(){O.call(i,"closed","alert"),W(t,"click",o),i[u].removeChild(i)};this.close=function(){i&&t&&I(i,"show")&&(O.call(i,"close","alert"),D(i,"show"),i&&n())},"Alert"in t||S(t,"click",o),t.Alert=e};a[m](["Alert",U,'[data-dismiss="alert"]']);var q=function(t){t=B(t);var i=!1,n="checked",o=function(t){32===(t.which||t.keyCode)&&t[r]===e.activeElement&&l(t)},a=function(t){32===(t.which||t.keyCode)&&t.preventDefault()},l=function(e){var o="LABEL"===e[r].tagName?e[r]:"LABEL"===e[r][u].tagName?e[r][u]:null;if(o){var a=e[r],l=H(a[u],"btn"),s=o.getElementsByTagName("INPUT")[0];if(s){if("checkbox"===s.type&&(s[n]?(D(o,v),s[c](n),s.removeAttribute(n),s[n]=!1):(N(o,v),s[c](n),s[d](n,n),s[n]=!0),i||(i=!0,O.call(s,"change","button"),O.call(t,"change","button"))),"radio"===s.type&&!i&&!s[n]){N(o,v),s[d](n,n),s[n]=!0,O.call(s,"change","button"),O.call(t,"change","button"),i=!0;for(var f=0,p=l[h];f<p;f++){var g=l[f],m=g.getElementsByTagName("INPUT")[0];g!==o&&I(g,v)&&(D(g,v),m.removeAttribute(n),m[n]=!1,O.call(m,"change","button"))}}setTimeout(function(){i=!1},50)}}};"Button"in t||(S(t,"click",l),B("[tabindex]",t)&&S(t,"keyup",o),S(t,"keydown",a));for(var s=H(t,"btn"),f=s[h],p=0;p<f;p++)!I(s[p],v)&&B("input:checked",s[p])&&N(s[p],v);t.Button=this};a[m](["Button",q,'[data-toggle="buttons"]']);var F=function(n,o){n=B(n),o=o||{};var a=n[c]("data-interval"),l=o.interval,s="false"===a?0:parseInt(a),d="hover"===n[c]("data-pause")||!1,u="true"===n[c]("data-keyboard")||!1;this.keyboard=!0===o.keyboard||u,this.pause=!("hover"!==o.pause&&!d)&&"hover",this.interval="number"==typeof l?l:!1===l||0===s||!1===s?0:isNaN(s)?5e3:s;var f=this,p=n.index=0,g=n.timer=0,m=!1,y=!1,k=null,x=null,A=null,L=H(n,"carousel-item"),M=L[h],R=this.direction=w,P=H(n,"carousel-control-prev")[0],X=H(n,"carousel-control-next")[0],j=B(".carousel-indicators",n),U=j&&j.getElementsByTagName("LI")||[];if(!(M<2)){var q=function(){!1===f.interval||I(n,"paused")||(N(n,"paused"),!m&&(clearInterval(g),g=null))},F=function(){!1!==f.interval&&I(n,"paused")&&(D(n,"paused"),!m&&(clearInterval(g),g=null),!m&&f.cycle())},Y=function(t){if(t.preventDefault(),!m){var e=t[r];if(!e||I(e,v)||!e[c]("data-slide-to"))return!1;p=parseInt(e[c]("data-slide-to"),10),f.slideTo(p)}},G=function(t){if(t.preventDefault(),!m){var e=t.currentTarget||t.srcElement;e===X?p++:e===P&&p--,f.slideTo(p)}},J=function(t){if(!m){switch(t.which){case 39:p++;break;case 37:p--;break;default:return}f.slideTo(p)}},K=function(t){t(n,E.move,V),t(n,E.end,Z)},Q=function(t){y||(k=parseInt(t.touches[0].pageX),n.contains(t[r])&&(y=!0,K(S)))},V=function(t){return y?(x=parseInt(t.touches[0].pageX),"touchmove"===t.type&&t.touches[h]>1?(t.preventDefault(),!1):void 0):void t.preventDefault()},Z=function(t){if(y&&!m&&(A=x||parseInt(t.touches[0].pageX),y)){if((!n.contains(t[r])||!n.contains(t.relatedTarget))&&Math.abs(k-A)<75)return!1;x<k?p++:x>k&&p--,y=!1,f.slideTo(p),K(W)}},$=function(){var e=n.getBoundingClientRect(),o=t.innerHeight||i.clientHeight;return e[b]<=o&&e.bottom>=0},_=function(t){for(var e=0,i=U[h];e<i;e++)D(U[e],v);U[t]&&N(U[t],v)};this.cycle=function(){g&&(clearInterval(g),g=null),g=setInterval(function(){$()&&(p++,f.slideTo(p))},this.interval)},this.slideTo=function(t){if(!m){var i,o=this.getActiveIndex();o!==t&&(o<t||0===o&&t===M-1?R=f.direction=w:(o>t||o===M-1&&0===t)&&(R=f.direction="right"),t<0?t=M-1:t>=M&&(t=0),p=t,i=R===w?"next":"prev",O.call(n,"slide","carousel",L[t]),m=!0,clearInterval(g),g=null,_(t),C&&I(n,"slide")?(N(L[t],"carousel-item-"+i),L[t].offsetWidth,N(L[t],"carousel-item-"+R),N(L[o],"carousel-item-"+R),z(L[t],function(a){var l=a&&a[r]!==L[t]?1e3*a.elapsedTime+100:20;m&&setTimeout(function(){m=!1,N(L[t],v),D(L[o],v),D(L[t],"carousel-item-"+i),D(L[t],"carousel-item-"+R),D(L[o],"carousel-item-"+R),O.call(n,"slid","carousel",L[t]),e.hidden||!f.interval||I(n,"paused")||f.cycle()},l)})):(N(L[t],v),L[t].offsetWidth,D(L[o],v),setTimeout(function(){m=!1,f.interval&&!I(n,"paused")&&f.cycle(),O.call(n,"slid","carousel",L[t])},100)))}},this.getActiveIndex=function(){return L.indexOf(H(n,"carousel-item active")[0])||0},"Carousel"in n||(f.pause&&f.interval&&(S(n,T[0],q),S(n,T[1],F),S(n,E.start,q),S(n,E.end,F)),L[h]>1&&S(n,E.start,Q),X&&S(X,"click",G),P&&S(P,"click",G),j&&S(j,"click",Y),!0===f.keyboard&&S(t,"keydown",J)),f.getActiveIndex()<0&&(L[h]&&N(L[0],v),U[h]&&_(0)),f.interval&&f.cycle(),n.Carousel=f}};a[m](["Carousel",F,'[data-ride="carousel"]']);var Y=function(t,e){t=B(t),e=e||{};var i,n,o=null,a=null,l=this,r=t[c]("data-parent"),s=function(t,e){O.call(t,"show","collapse"),t.isAnimating=!0,N(t,"collapsing"),D(t,"collapse"),t[g].height=t.scrollHeight+"px",z(t,function(){t.isAnimating=!1,t[d]("aria-expanded","true"),e[d]("aria-expanded","true"),D(t,"collapsing"),N(t,"collapse"),N(t,"show"),t[g].height="",O.call(t,"shown","collapse")})},u=function(t,e){O.call(t,"hide","collapse"),t.isAnimating=!0,t[g].height=t.scrollHeight+"px",D(t,"collapse"),D(t,"show"),N(t,"collapsing"),t.offsetWidth,t[g].height="0px",z(t,function(){t.isAnimating=!1,t[d]("aria-expanded","false"),e[d]("aria-expanded","false"),D(t,"collapsing"),N(t,"collapse"),t[g].height="",O.call(t,"hidden","collapse")})};this.toggle=function(t){t.preventDefault(),I(a,"show")?l.hide():l.show()},this.hide=function(){a.isAnimating||(u(a,t),N(t,"collapsed"))},this.show=function(){o&&(i=B(".collapse.show",o),n=i&&(B('[data-target="#'+i.id+'"]',o)||B('[href="#'+i.id+'"]',o))),(!a.isAnimating||i&&!i.isAnimating)&&(n&&i!==a&&(u(i,n),N(n,"collapsed")),s(a,t),D(t,"collapsed"))},"Collapse"in t||S(t,"click",l.toggle),a=function(){var e=t.href&&t[c]("href"),i=t[c]("data-target"),n=e||i&&"#"===i.charAt(0)&&i;return n&&B(n)}(),a.isAnimating=!1,o=B(e.parent)||r&&M(t,r),t.Collapse=l};a[m](["Collapse",Y,'[data-toggle="collapse"]']);var G=function(t,i){t=B(t),this.persist=!0===i||"true"===t[c]("data-persist")||!1;var n=this,o=t[u],a=null,l=B(".dropdown-menu",o),s=function(){for(var t=l.children,e=[],i=0;i<t[h];i++)t[i].children[h]&&"A"===t[i].children[0].tagName&&e[m](t[i].children[0]),"A"===t[i].tagName&&e[m](t[i]);return e}(),f=function(t){(t.href&&"#"===t.href.slice(-1)||t[u]&&t[u].href&&"#"===t[u].href.slice(-1))&&this.preventDefault()},p=function(){var i=t.open?S:W;i(e,"click",g),i(e,"keydown",w),i(e,"keyup",b)},g=function(e){var i=e[r],o=i&&("Dropdown"in i||"Dropdown"in i[u]);(i!==l&&!l.contains(i)||!n.persist&&!o)&&(a=i===t||t.contains(i)?t:null,y(),f.call(e,i))},v=function(e){a=t,T(),f.call(e,e[r])},w=function(t){var e=t.which||t.keyCode;38!==e&&40!==e||t.preventDefault()},b=function(i){var o=i.which||i.keyCode,r=e.activeElement,c=s.indexOf(r),d=r===t,f=l.contains(r),p=r[u]===l||r[u][u]===l;(p||d)&&(c=d?0:38===o?c>1?c-1:0:40===o&&c<s[h]-1?c+1:c,s[c]&&L(s[c])),(s[h]&&p||!s[h]&&(f||d)||!f)&&t.open&&27===o&&(n.toggle(),a=null)},T=function(){O.call(o,"show","dropdown",a),N(l,"show"),N(o,"show"),t[d]("aria-expanded",!0),O.call(o,"shown","dropdown",a),t.open=!0,W(t,"click",v),setTimeout(function(){L(l.getElementsByTagName("INPUT")[0]||t),p()},1)},y=function(){O.call(o,"hide","dropdown",a),D(l,"show"),D(o,"show"),t[d]("aria-expanded",!1),O.call(o,"hidden","dropdown",a),t.open=!1,p(),L(t),setTimeout(function(){S(t,"click",v)},1)};t.open=!1,this.toggle=function(){I(o,"show")&&t.open?y():T()},"Dropdown"in t||(!1 in l&&l[d]("tabindex","0"),S(t,"click",v)),t.Dropdown=n};a[m](["Dropdown",G,'[data-toggle="dropdown"]']);var J=function(o,a){o=B(o);var l=o[c]("data-target")||o[c]("href"),s=B(l),f=I(o,"modal")?o:s;if(I(o,"modal")&&(o=null),f){a=a||{},this.keyboard=!1!==a.keyboard&&"false"!==f[c]("data-keyboard"),this.backdrop="static"!==a.backdrop&&"static"!==f[c]("data-backdrop")||"static",this.backdrop=!1!==a.backdrop&&"false"!==f[c]("data-backdrop")&&this.backdrop,this.content=a.content;var p,m,v,b,T=this,y=null,x=H(i,"fixed-top").concat(H(i,"fixed-bottom")),A=function(){var e=i.getBoundingClientRect();return t.innerWidth||e.right-Math.abs(e[w])},E=function(){var i,o=t.getComputedStyle(e[n]),a=parseInt(o.paddingRight,10);if(p&&(e[n][g].paddingRight=a+m+"px",f[g].paddingRight=m+"px",x[h]))for(var l=0;l<x[h];l++)i=t.getComputedStyle(x[l]).paddingRight,x[l][g].paddingRight=parseInt(i)+m+"px"},M=function(){if(e[n][g].paddingRight="",f[g].paddingRight="",x[h])for(var t=0;t<x[h];t++)x[t][g].paddingRight=""},R=function(){var t,i=e.createElement("div");return i.className="modal-scrollbar-measure",e[n].appendChild(i),t=i.offsetWidth-i.clientWidth,e[n].removeChild(i),t},X=function(){p=e[n].clientWidth<A(),m=R()},j=function(){k=1;var t=e.createElement("div");null===(v=B(".modal-backdrop"))&&(t[d]("class","modal-backdrop fade"),v=t,e[n].appendChild(v))},U=function(){v=B(".modal-backdrop"),v&&null!==v&&"object"==typeof v&&(k=0,e[n].removeChild(v),v=null),O.call(f,"hidden","modal")},q=function(){I(f,"show")?S(e,"keydown",Q):W(e,"keydown",Q)},F=function(){I(f,"show")?S(t,"resize",T.update):W(t,"resize",T.update)},Y=function(){I(f,"show")?S(f,"click",V):W(f,"click",V)},G=function(){F(),Y(),q(),L(f),O.call(f,"shown","modal",y)},J=function(){f[g].display="",o&&L(o),function(){H(e,"modal show")[0]||(M(),D(e[n],"modal-open"),v&&I(v,"fade")?(D(v,"show"),z(v,U)):U(),F(),Y(),q())}()},K=function(t){var e=t[r];(e=e.hasAttribute("data-target")||e.hasAttribute("href")?e:e[u])!==o||I(f,"show")||(f.modalTrigger=o,y=o,T.show(),t.preventDefault())},Q=function(t){T.keyboard&&27==t.which&&I(f,"show")&&T.hide()},V=function(t){var e=t[r];I(f,"show")&&("modal"===e[u][c]("data-dismiss")||"modal"===e[c]("data-dismiss")||e===f&&"static"!==T.backdrop)&&(T.hide(),y=null,t.preventDefault())};this.toggle=function(){I(f,"show")?this.hide():this.show()},this.show=function(){O.call(f,"show","modal",y);var t=H(e,"modal show")[0];t&&t!==f&&("modalTrigger"in t&&t.modalTrigger.Modal.hide(),"Modal"in t&&t.Modal.hide()),this.backdrop&&!k&&j(),v&&k&&!I(v,"show")&&(v.offsetWidth,b=P(v),N(v,"show")),setTimeout(function(){f[g].display="block",X(),E(),N(e[n],"modal-open"),N(f,"show"),f[d]("aria-hidden",!1),I(f,"fade")?z(f,G):G()},C&&v?b:0)},this.hide=function(){O.call(f,"hide","modal"),v=B(".modal-backdrop"),b=v&&P(v),D(f,"show"),f[d]("aria-hidden",!0),setTimeout(function(){I(f,"fade")?z(f,J):J()},C&&v?b:0)},this.setContent=function(t){B(".modal-content",f).innerHTML=t},this.update=function(){I(f,"show")&&(X(),E())},!o||"Modal"in o||S(o,"click",K),T.content&&T.setContent(T.content),o?(o.Modal=T,f.modalTrigger=o):f.Modal=T}};a[m](["Modal",J,'[data-toggle="modal"]']);var K=function(i,o){i=B(i),o=o||{};var a=i[c]("data-trigger"),u=i[c]("data-animation"),h=i[c]("data-placement"),f=i[c]("data-dismissible"),p=i[c]("data-delay"),m=i[c]("data-container"),v='<button type="button" class="close">×</button>',w=B(o.container),y=B(m),k=M(i,".modal"),C=M(i,".fixed-top"),x=M(i,".fixed-bottom");this.template=o.template?o.template:null,this.trigger=o.trigger?o.trigger:a||"hover",this[s]=o[s]&&"fade"!==o[s]?o[s]:u||"fade",this.placement=o.placement?o.placement:h||b,this[l]=parseInt(o[l]||p)||200,this.dismissible=!(!o.dismissible&&"true"!==f),this.container=w||(y||(C||(x||(k||e[n]))));var A=this,E=i[c]("data-title")||null,L=i[c]("data-content")||null;if(L||this.template){var H=null,R=0,P=this.placement,X=function(t){null!==H&&t[r]===B(".close",H)&&A.hide()},U=function(){A.container.removeChild(H),R=null,H=null},q=function(){E=o.title||i[c]("data-title")||null,L=o.content||i[c]("data-content")||null,H=e.createElement("div");var t=e.createElement("div");if(t[d]("class","arrow"),H.appendChild(t),null!==L&&null===A.template){if(H[d]("role","tooltip"),null!==E){var n=e.createElement("h3");n[d]("class","popover-header"),n.innerHTML=A.dismissible?E+v:E,H.appendChild(n)}var a=e.createElement("div");a[d]("class","popover-body"),a.innerHTML=A.dismissible&&null===E?L+v:L,H.appendChild(a)}else{var l=e.createElement("div");l.innerHTML=A.template,H.innerHTML=l.firstChild.innerHTML}A.container.appendChild(H),H[g].display="block",H[d]("class","popover bs-popover-"+P+" "+A[s])},F=function(){!I(H,"show")&&N(H,"show")},Y=function(){j(i,H,P,A.container)},G=function(n){"click"!=A.trigger&&"focus"!=A.trigger||!A.dismissible&&n(i,"blur",A.hide),A.dismissible&&n(e,"click",X),n(t,"resize",A.hide)},J=function(){G(S),O.call(i,"shown","popover")},K=function(){G(W),U(),O.call(i,"hidden","popover")};this.toggle=function(){null===H?A.show():A.hide()},this.show=function(){clearTimeout(R),R=setTimeout(function(){null===H&&(P=A.placement,q(),Y(),F(),O.call(i,"show","popover"),A[s]?z(H,J):J())},20)},this.hide=function(){clearTimeout(R),R=setTimeout(function(){H&&null!==H&&I(H,"show")&&(O.call(i,"hide","popover"),D(H,"show"),A[s]?z(H,K):K())},A[l])},"Popover"in i||("hover"===A.trigger?(S(i,T[0],A.show),A.dismissible||S(i,T[1],A.hide)):"click"!=A.trigger&&"focus"!=A.trigger||S(i,A.trigger,A.toggle)),i.Popover=A}};a[m](["Popover",K,'[data-toggle="popover"]']);var Q=function(e,i){e=B(e);var n=B(e[c]("data-target")),o=e[c]("data-offset");if(i=i||{},i[r]||n){for(var a,l=this,s=i[r]&&B(i[r])||n,d=s&&s.getElementsByTagName("A"),f=parseInt(i.offset||o)||10,p=[],g=[],w=e.offsetHeight<e.scrollHeight?e:t,T=w===t,y=0,k=d[h];y<k;y++){var C=d[y][c]("href"),x=C&&"#"===C.charAt(0)&&"#"!==C.slice(-1)&&B(C);x&&(p[m](d[y]),g[m](x))}var A=function(t){var i=p[t],n=g[t],o=i[u][u],l=I(o,"dropdown")&&o.getElementsByTagName("A")[0],r=T&&n.getBoundingClientRect(),s=I(i,v)||!1,c=(T?r[b]+a:n.offsetTop)-f,d=T?r.bottom+a-f:g[t+1]?g[t+1].offsetTop-f:e.scrollHeight,h=a>=c&&d>a;if(!s&&h)I(i,v)||(N(i,v),l&&!I(l,v)&&N(l,v),O.call(e,"activate","scrollspy",p[t]));else if(h){if(!h&&!s||s&&h)return}else I(i,v)&&(D(i,v),l&&I(l,v)&&!H(i[u],v).length&&D(l,v))},E=function(){a=T?X().y:e.scrollTop;for(var t=0,i=p[h];t<i;t++)A(t)};this.refresh=function(){E()},"ScrollSpy"in e||(S(w,"scroll",l.refresh),S(t,"resize",l.refresh)),l.refresh(),e.ScrollSpy=l}};a[m](["ScrollSpy",Q,'[data-spy="scroll"]']);var V=function(t,e){t=B(t);var i=t[c]("data-height");e=e||{},this.height=!!C&&(e.height||"true"===i);var n,o,a,l,r,s,f,p=this,m=M(t,".nav"),b=!1,T=m&&B(".dropdown-toggle",m),y=function(){b[g].height="",D(b,"collapsing"),m.isAnimating=!1},k=function(){b?s?y():setTimeout(function(){b[g].height=f+"px",b.offsetWidth,z(b,y)},50):m.isAnimating=!1,O.call(n,"shown","tab",o)},x=function(){b&&(a[g].float=w,l[g].float=w,r=a.scrollHeight),N(l,v),O.call(n,"show","tab",o),D(a,v),O.call(o,"hidden","tab",n),b&&(f=l.scrollHeight,s=f===r,N(b,"collapsing"),b[g].height=r+"px",b.offsetHeight,a[g].float="",l[g].float=""),I(l,"fade")?setTimeout(function(){N(l,"show"),z(l,k)},20):k()};if(m){m.isAnimating=!1;var A=function(){var t,e=H(m,v);return 1!==e[h]||I(e[0][u],"dropdown")?e[h]>1&&(t=e[e[h]-1]):t=e[0],t},E=function(){return B(A()[c]("href"))},L=function(t){t.preventDefault(),n=t.currentTarget,!m.isAnimating&&!I(n,v)&&p.show()};this.show=function(){n=n||t,l=B(n[c]("href")),o=A(),a=E(),m.isAnimating=!0,D(o,v),o[d]("aria-selected","false"),N(n,v),n[d]("aria-selected","true"),T&&(I(t[u],"dropdown-menu")?I(T,v)||N(T,v):I(T,v)&&D(T,v)),O.call(o,"hide","tab",n),I(a,"fade")?(D(a,"show"),z(a,x)):x()},"Tab"in t||S(t,"click",L),p.height&&(b=E()[u]),t.Tab=p}};a[m](["Tab",V,'[data-toggle="tab"]']);var Z=function(t,e){t=B(t),e=e||{};var i=t[c]("data-animation"),n=t[c]("data-autohide"),o=t[c]("data-delay");this.animation=!1===e.animation||"false"===i?0:1,this.autohide=!1===e.autohide||"false"===n?0:1,this[l]=parseInt(e[l]||o)||500;var a=this,r=0,s=M(t,".toast"),d=function(){D(s,"showing"),N(s,"show"),O.call(s,"shown","toast"),a.autohide&&a.hide()},u=function(){N(s,"hide"),O.call(s,"hidden","toast")},h=function(){D(s,"show"),a.animation?z(s,u):u()},f=function(){clearTimeout(r),r=null,N(s,"hide"),W(t,"click",a.hide),t.Toast=null,t=null,s=null};this.show=function(){s&&(O.call(s,"show","toast"),a.animation&&N(s,"fade"),D(s,"hide"),N(s,"showing"),a.animation?z(s,d):d())},this.hide=function(t){s&&I(s,"show")&&(O.call(s,"hide","toast"),t?h():r=setTimeout(h,a[l]))},this.dispose=function(){s&&I(s,"show")&&(D(s,"show"),a.animation?z(s,f):f())},"Toast"in t||S(t,"click",a.hide),t.Toast=a};a[m](["Toast",Z,'[data-dismiss="toast"]']);var $=function(i,o){i=B(i),o=o||{};var a=i[c]("data-animation"),r=i[c]("data-placement"),u=i[c]("data-delay"),h=i[c]("data-container"),f=B(o.container),p=B(h),g=M(i,".modal"),m=M(i,".fixed-top"),v=M(i,".fixed-bottom");this[s]=o[s]&&"fade"!==o[s]?o[s]:a||"fade",this.placement=o.placement?o.placement:r||b,this[l]=parseInt(o[l]||u)||200,this.container=f||(p||(m||(v||(g||e[n]))));var w=this,y=0,k=this.placement,C=null,x=i[c]("title")||i[c]("data-title")||i[c]("data-original-title");if(x&&""!=x){var A=function(){w.container.removeChild(C),C=null,y=null},E=function(){if(!(x=i[c]("title")||i[c]("data-title")||i[c]("data-original-title"))||""==x)return!1;C=e.createElement("div"),C[d]("role","tooltip");var t=e.createElement("div");t[d]("class","arrow"),C.appendChild(t);var n=e.createElement("div");n[d]("class","tooltip-inner"),C.appendChild(n),n.innerHTML=x,w.container.appendChild(C),C[d]("class","tooltip bs-tooltip-"+k+" "+w[s])},L=function(){j(i,C,k,w.container)},H=function(){!I(C,"show")&&N(C,"show")},R=function(){S(t,"resize",w.hide),O.call(i,"shown","tooltip")},P=function(){W(t,"resize",w.hide),A(),O.call(i,"hidden","tooltip")};this.show=function(){clearTimeout(y),y=setTimeout(function(){if(null===C){if(k=w.placement,0==E())return;L(),H(),O.call(i,"show","tooltip"),w[s]?z(C,R):R()}},20)},this.hide=function(){clearTimeout(y),y=setTimeout(function(){C&&I(C,"show")&&(O.call(i,"hide","tooltip"),D(C,"show"),w[s]?z(C,P):P())},w[l])},this.toggle=function(){C?w.hide():w.show()},"Tooltip"in i||(i[d]("data-original-title",x),i.removeAttribute("title"),S(i,T[0],w.show),S(i,T[1],w.hide)),i.Tooltip=w}};a[m](["Tooltip",$,'[data-toggle="tooltip"]']);var _=function(t,e){for(var i=0,n=e[h];i<n;i++)new t(e[i])},tt=o.initCallback=function(t){t=t||e;for(var i=0,n=a[h];i<n;i++)_(a[i][1],t.querySelectorAll(a[i][2]))};return e[n]?tt():S(e,"DOMContentLoaded",function(){tt()}),{Alert:U,Button:q,Carousel:F,Collapse:Y,Dropdown:G,Modal:J,Popover:K,ScrollSpy:Q,Tab:V,Toast:Z,Tooltip:$}});
// Native Javascript for Bootstrap 4 v2.0.27 | © 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 i=e();t.Alert=i.Alert,t.Button=i.Button,t.Carousel=i.Carousel,t.Collapse=i.Collapse,t.Dropdown=i.Dropdown,t.Modal=i.Modal,t.Popover=i.Popover,t.ScrollSpy=i.ScrollSpy,t.Tab=i.Tab,t.Toast=i.Toast,t.Tooltip=i.Tooltip}}(this,function(){"use strict";var t="undefined"!=typeof global?global:this||window,e=document,i=e.documentElement,n="body",o=t.BSN={},a=o.supports=[],l="data-toggle",s="delay",r="target",c="animation",d="onmouseleave"in e?["mouseenter","mouseleave"]:["mouseover","mouseout"],u={start:"touchstart",end:"touchend",move:"touchmove"},h="getAttribute",f="setAttribute",p="parentNode",m="length",g="Transition",v="Webkit",w="style",b="push",T="active",y="left",k="top",A=/\b(top|bottom|left|right)+/,C=0,x=v+g in i[w]||g.toLowerCase()in i[w],E=v+g in i[w]?v.toLowerCase()+g+"End":g.toLowerCase()+"end",L=v+"Duration"in i[w]?v.toLowerCase()+g+"Duration":g.toLowerCase()+"Duration",N=function(t){t.focus?t.focus():t.setActive()},I=function(t,e){t.classList.add(e)},B=function(t,e){t.classList.remove(e)},D=function(t,e){return t.classList.contains(e)},H=function(t,e){return[].slice.call(t.getElementsByClassName(e))},M=function(t,i){var n=i||e;return"object"==typeof t?t:n.querySelector(t)},S=function(t,i){var n=i.charAt(0),o=i.substr(1);if("."===n){for(;t&&t!==e;t=t[p])if(null!==M(i,t[p])&&D(t,o))return t}else if("#"===n)for(;t&&t!==e;t=t[p])if(t.id===o)return t;return!1},W=function(t,e,i,n){n=n||!1,t.addEventListener(e,i,n)},P=function(t,e,i,n){n=n||!1,t.removeEventListener(e,i,n)},R=function(t,e,i,n){W(t,e,function o(a){i(a),P(t,e,o,n)},n)},O=function(){var e=!1;try{var i=Object.defineProperty({},"passive",{get:function(){e=!0}});R(t,"testPassive",null,i)}catch(t){}return e}(),z=!!O&&{passive:!0},X=function(e){var i=x?t.getComputedStyle(e)[L]:0;return i=parseFloat(i),i="number"!=typeof i||isNaN(i)?0:1e3*i},j=function(t,e){var i=0;X(t)?R(t,E,function(t){!i&&e(t),i=1}):setTimeout(function(){!i&&e(),i=1},17)},U=function(t,e,i){var n=new CustomEvent(t+".bs."+e);n.relatedTarget=i,this.dispatchEvent(n)},q=function(){return{y:t.pageYOffset||i.scrollTop,x:t.pageXOffset||i.scrollLeft}},Y=function(t,o,a,l){var s,r,c,d,u,h,f={w:o.offsetWidth,h:o.offsetHeight},p=i.clientWidth||e[n].clientWidth,m=i.clientHeight||e[n].clientHeight,g=t.getBoundingClientRect(),v=l===e[n]?q():{x:l.offsetLeft+l.scrollLeft,y:l.offsetTop+l.scrollTop},b={w:g.right-g[y],h:g.bottom-g[k]},T=D(o,"popover"),C=M(".arrow",o),x=g[k]+b.h/2-f.h/2<0,E=g[y]+b.w/2-f.w/2<0,L=g[y]+f.w/2+b.w/2>=p,N=g[k]+f.h/2+b.h/2>=m,I=g[k]-f.h<0,B=g[y]-f.w<0,H=g[k]+f.h+b.h>=m,S=g[y]+f.w+b.w>=p;a=(a===y||"right"===a)&&B&&S?k:a,a=a===k&&I?"bottom":a,a="bottom"===a&&H?k:a,a=a===y&&B?"right":a,a="right"===a&&S?y:a,-1===o.className.indexOf(a)&&(o.className=o.className.replace(A,a)),u=C.offsetWidth,h=C.offsetHeight,a===y||"right"===a?(r=a===y?g[y]+v.x-f.w-(T?u:0):g[y]+v.x+b.w,x?(s=g[k]+v.y,c=b.h/2-u):N?(s=g[k]+v.y-f.h+b.h,c=f.h-b.h/2-u):(s=g[k]+v.y-f.h/2+b.h/2,c=f.h/2-(T?.9*h:h/2))):a!==k&&"bottom"!==a||(s=a===k?g[k]+v.y-f.h-(T?h:0):g[k]+v.y+b.h,E?(r=0,d=g[y]+b.w/2-u):L?(r=p-1.01*f.w,d=f.w-(p-g[y])+b.w/2-u/2):(r=g[y]+v.x-f.w/2+b.w/2,d=f.w/2-(T?u:u/2))),o[w][k]=s+"px",o[w][y]=r+"px",c&&(C[w][k]=c+"px"),d&&(C[w][y]=d+"px")};o.version="2.0.27";var F=function(t){t=M(t);var e=this,i=S(t,".alert"),n=function(){D(i,"fade")?j(i,a):a()},o=function(n){i=S(n[r],".alert"),(t=M('[data-dismiss="alert"]',i))&&i&&(t===n[r]||t.contains(n[r]))&&e.close()},a=function(){U.call(i,"closed","alert"),P(t,"click",o),i[p].removeChild(i)};this.close=function(){i&&t&&D(i,"show")&&(U.call(i,"close","alert"),B(i,"show"),i&&n())},"Alert"in t||W(t,"click",o),t.Alert=e};a[b](["Alert",F,'[data-dismiss="alert"]']);var G=function(t){t=M(t);var i=!1,n="checked",o=function(t){32===(t.which||t.keyCode)&&t[r]===e.activeElement&&l(t)},a=function(t){32===(t.which||t.keyCode)&&t.preventDefault()},l=function(e){var o="LABEL"===e[r].tagName?e[r]:"LABEL"===e[r][p].tagName?e[r][p]:null;if(o){var a=H(o[p],"btn"),l=o.getElementsByTagName("INPUT")[0];if(l){if("checkbox"===l.type&&(l[n]?(B(o,T),l[h](n),l.removeAttribute(n),l[n]=!1):(I(o,T),l[h](n),l[f](n,n),l[n]=!0),i||(i=!0,U.call(l,"change","button"),U.call(t,"change","button"))),"radio"===l.type&&!i&&(!l[n]||0===e.screenX&&0==e.screenY)){I(o,T),I(o,"focus"),l[f](n,n),l[n]=!0,U.call(l,"change","button"),U.call(t,"change","button"),i=!0;for(var s=0,c=a[m];s<c;s++){var d=a[s],u=d.getElementsByTagName("INPUT")[0];d!==o&&D(d,T)&&(B(d,T),u.removeAttribute(n),u[n]=!1,U.call(u,"change","button"))}}setTimeout(function(){i=!1},50)}}},s=function(t){I(t[r][p],"focus")},c=function(t){B(t[r][p],"focus")};if(!("Button"in t)){W(t,"click",l),W(t,"keyup",o),W(t,"keydown",a);for(var d=H(t,"btn"),u=0;u<d.length;u++){var g=d[u].getElementsByTagName("INPUT")[0];W(g,"focus",s),W(g,"blur",c)}}for(var v=H(t,"btn"),w=v[m],u=0;u<w;u++)!D(v[u],T)&&M("input:checked",v[u])&&I(v[u],T);t.Button=this};a[b](["Button",G,'[data-toggle="buttons"]']);var J=function(n,o){n=M(n),o=o||{};var a=n[h]("data-interval"),l=o.interval,s="false"===a?0:parseInt(a),c="hover"===n[h]("data-pause")||!1,f="true"===n[h]("data-keyboard")||!1;this.keyboard=!0===o.keyboard||f,this.pause=!("hover"!==o.pause&&!c)&&"hover",this.interval="number"==typeof l?l:!1===l||0===s||!1===s?0:isNaN(s)?5e3:s;var p=this,g=n.index=0,v=n.timer=0,w=!1,b=!1,A=null,C=null,E=null,L=H(n,"carousel-item"),N=L[m],S=this.direction=y,R=H(n,"carousel-control-prev")[0],O=H(n,"carousel-control-next")[0],X=M(".carousel-indicators",n),q=X&&X.getElementsByTagName("LI")||[];if(!(N<2)){var Y=function(){!1===p.interval||D(n,"paused")||(I(n,"paused"),!w&&(clearInterval(v),v=null))},F=function(){!1!==p.interval&&D(n,"paused")&&(B(n,"paused"),!w&&(clearInterval(v),v=null),!w&&p.cycle())},G=function(t){if(t.preventDefault(),!w){var e=t[r];if(!e||D(e,T)||!e[h]("data-slide-to"))return!1;g=parseInt(e[h]("data-slide-to"),10),p.slideTo(g)}},J=function(t){if(t.preventDefault(),!w){var e=t.currentTarget||t.srcElement;e===O?g++:e===R&&g--,p.slideTo(g)}},K=function(t){if(!w){switch(t.which){case 39:g++;break;case 37:g--;break;default:return}p.slideTo(g)}},Q=function(t){t(n,u.move,Z,z),t(n,u.end,$,z)},V=function(t){b||(A=parseInt(t.touches[0].pageX),n.contains(t[r])&&(b=!0,Q(W)))},Z=function(t){return b?(C=parseInt(t.touches[0].pageX),"touchmove"===t.type&&t.touches[m]>1?(t.preventDefault(),!1):void 0):void t.preventDefault()},$=function(t){if(b&&!w&&(E=C||parseInt(t.touches[0].pageX),b)){if((!n.contains(t[r])||!n.contains(t.relatedTarget))&&Math.abs(A-E)<75)return!1;C<A?g++:C>A&&g--,b=!1,p.slideTo(g),Q(P)}},_=function(){var e=n.getBoundingClientRect(),o=t.innerHeight||i.clientHeight;return e[k]<=o&&e.bottom>=0},tt=function(t){for(var e=0,i=q[m];e<i;e++)B(q[e],T);q[t]&&I(q[t],T)};this.cycle=function(){v&&(clearInterval(v),v=null),v=setInterval(function(){_()&&(g++,p.slideTo(g))},this.interval)},this.slideTo=function(t){if(!w){var i,o=this.getActiveIndex();o!==t&&(o<t||0===o&&t===N-1?S=p.direction=y:(o>t||o===N-1&&0===t)&&(S=p.direction="right"),t<0?t=N-1:t>=N&&(t=0),g=t,i=S===y?"next":"prev",U.call(n,"slide","carousel",L[t]),w=!0,clearInterval(v),v=null,tt(t),x&&D(n,"slide")?(I(L[t],"carousel-item-"+i),L[t].offsetWidth,I(L[t],"carousel-item-"+S),I(L[o],"carousel-item-"+S),j(L[t],function(a){var l=a&&a[r]!==L[t]?1e3*a.elapsedTime+100:20;w&&setTimeout(function(){w=!1,I(L[t],T),B(L[o],T),B(L[t],"carousel-item-"+i),B(L[t],"carousel-item-"+S),B(L[o],"carousel-item-"+S),U.call(n,"slid","carousel",L[t]),e.hidden||!p.interval||D(n,"paused")||p.cycle()},l)})):(I(L[t],T),L[t].offsetWidth,B(L[o],T),setTimeout(function(){w=!1,p.interval&&!D(n,"paused")&&p.cycle(),U.call(n,"slid","carousel",L[t])},100)))}},this.getActiveIndex=function(){return L.indexOf(H(n,"carousel-item active")[0])||0},"Carousel"in n||(p.pause&&p.interval&&(W(n,d[0],Y),W(n,d[1],F),W(n,u.start,Y,z),W(n,u.end,F,z)),L[m]>1&&W(n,u.start,V,z),O&&W(O,"click",J),R&&W(R,"click",J),X&&W(X,"click",G),p.keyboard&&W(t,"keydown",K)),p.getActiveIndex()<0&&(L[m]&&I(L[0],T),q[m]&&tt(0)),p.interval&&p.cycle(),n.Carousel=p}};a[b](["Carousel",J,'[data-ride="carousel"]']);var K=function(t,e){t=M(t),e=e||{};var i,n,o=null,a=null,l=this,s=t[h]("data-parent"),r=function(t,e){U.call(t,"show","collapse"),t.isAnimating=!0,I(t,"collapsing"),B(t,"collapse"),t[w].height=t.scrollHeight+"px",j(t,function(){t.isAnimating=!1,t[f]("aria-expanded","true"),e[f]("aria-expanded","true"),B(t,"collapsing"),I(t,"collapse"),I(t,"show"),t[w].height="",U.call(t,"shown","collapse")})},c=function(t,e){U.call(t,"hide","collapse"),t.isAnimating=!0,t[w].height=t.scrollHeight+"px",B(t,"collapse"),B(t,"show"),I(t,"collapsing"),t.offsetWidth,t[w].height="0px",j(t,function(){t.isAnimating=!1,t[f]("aria-expanded","false"),e[f]("aria-expanded","false"),B(t,"collapsing"),I(t,"collapse"),t[w].height="",U.call(t,"hidden","collapse")})};this.toggle=function(t){t.preventDefault(),D(a,"show")?l.hide():l.show()},this.hide=function(){a.isAnimating||(c(a,t),I(t,"collapsed"))},this.show=function(){o&&(i=M(".collapse.show",o),n=i&&(M('[data-target="#'+i.id+'"]',o)||M('[href="#'+i.id+'"]',o))),(!a.isAnimating||i&&!i.isAnimating)&&(n&&i!==a&&(c(i,n),I(n,"collapsed")),r(a,t),B(t,"collapsed"))},"Collapse"in t||W(t,"click",l.toggle),a=function(){var e=t.href&&t[h]("href"),i=t[h]("data-target"),n=e||i&&"#"===i.charAt(0)&&i;return n&&M(n)}(),a.isAnimating=!1,o=M(e.parent)||s&&S(t,s),t.Collapse=l};a[b](["Collapse",K,'[data-toggle="collapse"]']);var Q=function(t,i){t=M(t),this.persist=!0===i||"true"===t[h]("data-persist")||!1;var n=this,o=t[p],a=null,s=M(".dropdown-menu",o),c=function(){for(var t=s.children,e=[],i=0;i<t[m];i++)t[i].children[m]&&"A"===t[i].children[0].tagName&&e[b](t[i].children[0]),"A"===t[i].tagName&&e[b](t[i]);return e}(),d=function(t){(t.href&&"#"===t.href.slice(-1)||t[p]&&t[p].href&&"#"===t[p].href.slice(-1))&&this.preventDefault()},u=function(){var i=t.open?W:P;i(e,"click",g),i(e,"keydown",w),i(e,"keyup",T),i(e,"focus",g,!0)},g=function(e){var i=e[r],o=i&&(i[h](l)||i[p]&&h in i[p]&&i[p][h](l));("focus"!==e.type||i!==t&&i!==s&&!s.contains(i))&&(i!==s&&!s.contains(i)||!n.persist&&!o)&&(a=i===t||t.contains(i)?t:null,k(),d.call(e,i))},v=function(e){a=t,y(),d.call(e,e[r])},w=function(t){var e=t.which||t.keyCode;38!==e&&40!==e||t.preventDefault()},T=function(i){var o=i.which||i.keyCode,l=e.activeElement,r=c.indexOf(l),d=l===t,u=s.contains(l),h=l[p]===s||l[p][p]===s;h&&(r=d?0:38===o?r>1?r-1:0:40===o&&r<c[m]-1?r+1:r,c[r]&&N(c[r])),(c[m]&&h||!c[m]&&(u||d)||!u)&&t.open&&27===o&&(n.toggle(),a=null)},y=function(){U.call(o,"show","dropdown",a),I(s,"show"),I(o,"show"),t[f]("aria-expanded",!0),U.call(o,"shown","dropdown",a),t.open=!0,P(t,"click",v),setTimeout(function(){N(s.getElementsByTagName("INPUT")[0]||t),u()},1)},k=function(){U.call(o,"hide","dropdown",a),B(s,"show"),B(o,"show"),t[f]("aria-expanded",!1),U.call(o,"hidden","dropdown",a),t.open=!1,u(),N(t),setTimeout(function(){W(t,"click",v)},1)};t.open=!1,this.toggle=function(){D(o,"show")&&t.open?k():y()},"Dropdown"in t||(!1 in s&&s[f]("tabindex","0"),W(t,"click",v)),t.Dropdown=n};a[b](["Dropdown",Q,'[data-toggle="dropdown"]']);var V=function(o,a){o=M(o);var l=o[h]("data-target")||o[h]("href"),s=M(l),d=D(o,"modal")?o:s;if(D(o,"modal")&&(o=null),d){a=a||{},this.keyboard=!1!==a.keyboard&&"false"!==d[h]("data-keyboard"),this.backdrop="static"!==a.backdrop&&"static"!==d[h]("data-backdrop")||"static",this.backdrop=!1!==a.backdrop&&"false"!==d[h]("data-backdrop")&&this.backdrop,this[c]=!!D(d,"fade"),this.content=a.content,d.isAnimating=!1;var u,g,v,b,T,k=this,A=null,E=H(i,"fixed-top").concat(H(i,"fixed-bottom")),L=function(){var e=i.getBoundingClientRect();return t.innerWidth||e.right-Math.abs(e[y])},S=function(){var i,o=t.getComputedStyle(e[n]),a=parseInt(o.paddingRight,10);if(u&&(e[n][w].paddingRight=a+g+"px",d[w].paddingRight=g+"px",E[m]))for(var l=0;l<E[m];l++)i=t.getComputedStyle(E[l]).paddingRight,E[l][w].paddingRight=parseInt(i)+g+"px"},R=function(){if(e[n][w].paddingRight="",d[w].paddingRight="",E[m])for(var t=0;t<E[m];t++)E[t][w].paddingRight=""},O=function(){var t,i=e.createElement("div");return i.className="modal-scrollbar-measure",e[n].appendChild(i),t=i.offsetWidth-i.clientWidth,e[n].removeChild(i),t},q=function(){u=e[n].clientWidth<L(),g=O()},Y=function(){var t=e.createElement("div");v=M(".modal-backdrop"),null===v&&(t[f]("class","modal-backdrop"+(k[c]?" fade":"")),v=t,e[n].appendChild(v)),C=1},F=function(){(v=M(".modal-backdrop"))&&null!==v&&"object"==typeof v&&(C=0,e[n].removeChild(v),v=null)},G=function(){N(d),d.isAnimating=!1,U.call(d,"shown","modal",A),W(t,"resize",k.update,z),W(d,"click",V),W(e,"keydown",Q)},J=function(){d[w].display="",o&&N(o),U.call(d,"hidden","modal"),function(){H(e,"modal show")[0]||(R(),B(e[n],"modal-open"),v&&D(v,"fade")?(B(v,"show"),j(v,F)):F(),P(t,"resize",k.update,z),P(d,"click",V),P(e,"keydown",Q))}(),d.isAnimating=!1},K=function(t){if(!d.isAnimating){var e=t[r];e=e.hasAttribute("data-target")||e.hasAttribute("href")?e:e[p],e!==o||D(d,"show")||(d.modalTrigger=o,A=o,k.show(),t.preventDefault())}},Q=function(t){d.isAnimating||k.keyboard&&27==t.which&&D(d,"show")&&k.hide()},V=function(t){if(!d.isAnimating){var e=t[r];D(d,"show")&&("modal"===e[p][h]("data-dismiss")||"modal"===e[h]("data-dismiss")||e===d&&"static"!==k.backdrop)&&(k.hide(),A=null,t.preventDefault())}};this.toggle=function(){D(d,"show")?this.hide():this.show()},this.show=function(){D(d,"show")||d.isAnimating||(clearTimeout(T),T=setTimeout(function(){d.isAnimating=!0,U.call(d,"show","modal",A);var t=H(e,"modal show")[0];t&&t!==d&&("modalTrigger"in t&&t.modalTrigger.Modal.hide(),"Modal"in t&&t.Modal.hide()),k.backdrop&&!C&&!v&&Y(),v&&!D(v,"show")&&(v.offsetWidth,b=X(v),I(v,"show")),setTimeout(function(){d[w].display="block",q(),S(),I(e[n],"modal-open"),I(d,"show"),d[f]("aria-hidden",!1),D(d,"fade")?j(d,G):G()},x&&v&&b?b:1)},1))},this.hide=function(){!d.isAnimating&&D(d,"show")&&(clearTimeout(T),T=setTimeout(function(){d.isAnimating=!0,U.call(d,"hide","modal"),v=M(".modal-backdrop"),b=v&&X(v),B(d,"show"),d[f]("aria-hidden",!0),setTimeout(function(){D(d,"fade")?j(d,J):J()},x&&v&&b?b:2)},2))},this.setContent=function(t){M(".modal-content",d).innerHTML=t},this.update=function(){D(d,"show")&&(q(),S())},!o||"Modal"in o||W(o,"click",K),k.content&&k.setContent(k.content),o?(o.Modal=k,d.modalTrigger=o):d.Modal=k}};a[b](["Modal",V,'[data-toggle="modal"]']);var Z=function(i,o){i=M(i),o=o||{};var a=i[h]("data-trigger"),l=i[h]("data-animation"),u=i[h]("data-placement"),p=i[h]("data-dismissible"),m=i[h]("data-delay"),g=i[h]("data-container"),v='<button type="button" class="close">×</button>',b=M(o.container),T=M(g),y=S(i,".modal"),A=S(i,".fixed-top"),C=S(i,".fixed-bottom");this.template=o.template?o.template:null,this.trigger=o.trigger?o.trigger:a||"hover",this[c]=o[c]&&"fade"!==o[c]?o[c]:l||"fade",this.placement=o.placement?o.placement:u||k,this[s]=parseInt(o[s]||m)||200,this.dismissible=!(!o.dismissible&&"true"!==p),this.container=b||(T||(A||(C||(y||e[n]))));var x=this,E=o.title||i[h]("data-title")||null,L=o.content||i[h]("data-content")||null;if(L||this.template){var N=null,H=0,R=this.placement,O=function(t){null!==N&&t[r]===M(".close",N)&&x.hide()},X=function(){x.container.removeChild(N),H=null,N=null},q=function(){E=o.title||i[h]("data-title"),L=o.content||i[h]("data-content"),L=L?L.trim():null,N=e.createElement("div");var t=e.createElement("div");if(t[f]("class","arrow"),N.appendChild(t),null!==L&&null===x.template){if(N[f]("role","tooltip"),null!==E){var n=e.createElement("h3");n[f]("class","popover-header"),n.innerHTML=x.dismissible?E+v:E,N.appendChild(n)}var a=e.createElement("div");a[f]("class","popover-body"),a.innerHTML=x.dismissible&&null===E?L+v:L,N.appendChild(a)}else{var l=e.createElement("div");x.template=x.template.trim(),l.innerHTML=x.template,N.innerHTML=l.firstChild.innerHTML}x.container.appendChild(N),N[w].display="block",N[f]("class","popover bs-popover-"+R+" "+x[c])},F=function(){!D(N,"show")&&I(N,"show")},G=function(){Y(i,N,R,x.container)},J=function(n){"click"!=x.trigger&&"focus"!=x.trigger||!x.dismissible&&n(i,"blur",x.hide),x.dismissible&&n(e,"click",O),n(t,"resize",x.hide,z)},K=function(){J(W),U.call(i,"shown","popover")},Q=function(){J(P),X(),U.call(i,"hidden","popover")};this.toggle=function(){null===N?x.show():x.hide()},this.show=function(){clearTimeout(H),H=setTimeout(function(){null===N&&(R=x.placement,q(),G(),F(),U.call(i,"show","popover"),x[c]?j(N,K):K())},20)},this.hide=function(){clearTimeout(H),H=setTimeout(function(){N&&null!==N&&D(N,"show")&&(U.call(i,"hide","popover"),B(N,"show"),x[c]?j(N,Q):Q())},x[s])},"Popover"in i||("hover"===x.trigger?(W(i,d[0],x.show),x.dismissible||W(i,d[1],x.hide)):"click"!=x.trigger&&"focus"!=x.trigger||W(i,x.trigger,x.toggle)),i.Popover=x}};a[b](["Popover",Z,'[data-toggle="popover"]']);var $=function(e,i){e=M(e);var n=M(e[h]("data-target")),o=e[h]("data-offset");if(i=i||{},i[r]||n){for(var a,l=this,s=i[r]&&M(i[r])||n,c=s&&s.getElementsByTagName("A"),d=parseInt(i.offset||o)||10,u=[],f=[],g=e.offsetHeight<e.scrollHeight?e:t,v=g===t,w=0,y=c[m];w<y;w++){var A=c[w][h]("href"),C=A&&"#"===A.charAt(0)&&"#"!==A.slice(-1)&&M(A);C&&(u[b](c[w]),f[b](C))}var x=function(t){var i=u[t],n=f[t],o=i[p][p],l=D(o,"dropdown")&&o.getElementsByTagName("A")[0],s=v&&n.getBoundingClientRect(),r=D(i,T)||!1,c=(v?s[k]+a:n.offsetTop)-d,h=v?s.bottom+a-d:f[t+1]?f[t+1].offsetTop-d:e.scrollHeight,m=a>=c&&h>a;if(!r&&m)D(i,T)||(I(i,T),l&&!D(l,T)&&I(l,T),U.call(e,"activate","scrollspy",u[t]));else if(m){if(!m&&!r||r&&m)return}else D(i,T)&&(B(i,T),l&&D(l,T)&&!H(i[p],T).length&&B(l,T))},E=function(){a=v?q().y:e.scrollTop;for(var t=0,i=u[m];t<i;t++)x(t)};this.refresh=function(){E()},"ScrollSpy"in e||(W(g,"scroll",l.refresh,z),W(t,"resize",l.refresh,z)),l.refresh(),e.ScrollSpy=l}};a[b](["ScrollSpy",$,'[data-spy="scroll"]']);var _=function(t,e){t=M(t);var i=t[h]("data-height");e=e||{},this.height=!!x&&(e.height||"true"===i);var n,o,a,l,s,r,c,d=this,u=S(t,".nav"),g=!1,v=u&&M(".dropdown-toggle",u),b=function(){g[w].height="",B(g,"collapsing"),u.isAnimating=!1},k=function(){g?r?b():setTimeout(function(){g[w].height=c+"px",g.offsetWidth,j(g,b)},50):u.isAnimating=!1,U.call(n,"shown","tab",o)},A=function(){g&&(a[w].float=y,l[w].float=y,s=a.scrollHeight),I(l,T),U.call(n,"show","tab",o),B(a,T),U.call(o,"hidden","tab",n),g&&(c=l.scrollHeight,r=c===s,I(g,"collapsing"),g[w].height=s+"px",g.offsetHeight,a[w].float="",l[w].float=""),D(l,"fade")?setTimeout(function(){I(l,"show"),j(l,k)},20):k()};if(u){u.isAnimating=!1;var C=function(){var t,e=H(u,T);return 1!==e[m]||D(e[0][p],"dropdown")?e[m]>1&&(t=e[e[m]-1]):t=e[0],t},E=function(){return M(C()[h]("href"))},L=function(t){t.preventDefault(),n=t.currentTarget,!u.isAnimating&&!D(n,T)&&d.show()};this.show=function(){n=n||t,l=M(n[h]("href")),o=C(),a=E(),u.isAnimating=!0,B(o,T),o[f]("aria-selected","false"),I(n,T),n[f]("aria-selected","true"),v&&(D(t[p],"dropdown-menu")?D(v,T)||I(v,T):D(v,T)&&B(v,T)),U.call(o,"hide","tab",n),D(a,"fade")?(B(a,"show"),j(a,A)):A()},"Tab"in t||W(t,"click",L),d.height&&(g=E()[p]),t.Tab=d}};a[b](["Tab",_,'[data-toggle="tab"]']);var tt=function(t,e){t=M(t),e=e||{};var i=t[h]("data-animation"),n=t[h]("data-autohide"),o=t[h]("data-delay");this.animation=!1===e.animation||"false"===i?0:1,this.autohide=!1===e.autohide||"false"===n?0:1,this[s]=parseInt(e[s]||o)||500;var a=this,l=0,r=S(t,".toast"),c=function(){B(r,"showing"),I(r,"show"),U.call(r,"shown","toast"),a.autohide&&a.hide()},d=function(){I(r,"hide"),U.call(r,"hidden","toast")},u=function(){B(r,"show"),a.animation?j(r,d):d()},f=function(){clearTimeout(l),l=null,I(r,"hide"),P(t,"click",a.hide),t.Toast=null,t=null,r=null};this.show=function(){r&&(U.call(r,"show","toast"),a.animation&&I(r,"fade"),B(r,"hide"),I(r,"showing"),a.animation?j(r,c):c())},this.hide=function(t){r&&D(r,"show")&&(U.call(r,"hide","toast"),t?u():l=setTimeout(u,a[s]))},this.dispose=function(){r&&D(r,"show")&&(B(r,"show"),a.animation?j(r,f):f())},"Toast"in t||W(t,"click",a.hide),t.Toast=a};a[b](["Toast",tt,'[data-dismiss="toast"]']);var et=function(i,o){i=M(i),o=o||{};var a=i[h]("data-animation"),l=i[h]("data-placement"),r=i[h]("data-delay"),u=i[h]("data-container"),p=M(o.container),m=M(u),g=S(i,".modal"),v=S(i,".fixed-top"),b=S(i,".fixed-bottom");this[c]=o[c]&&"fade"!==o[c]?o[c]:a||"fade",this.placement=o.placement?o.placement:l||k,this[s]=parseInt(o[s]||r)||200,this.container=p||(m||(v||(b||(g||e[n]))));var T=this,A=0,C=this.placement,x=null,E=i[h]("title")||i[h]("data-title")||i[h]("data-original-title");if(E&&""!=E){var L=function(){T.container.removeChild(x),x=null,A=null},N=function(){if((E=i[h]("title")||i[h]("data-title")||i[h]("data-original-title"))&&""!==E){x=e.createElement("div"),x[f]("role","tooltip"),x[w][y]="0",x[w][k]="0";var t=e.createElement("div");t[f]("class","arrow"),x.appendChild(t);var n=e.createElement("div");n[f]("class","tooltip-inner"),x.appendChild(n),n.innerHTML=E,T.container.appendChild(x),x[f]("class","tooltip bs-tooltip-"+C+" "+T[c])}},H=function(){Y(i,x,C,T.container)},R=function(){!D(x,"show")&&I(x,"show")},O=function(){W(t,"resize",T.hide,z),U.call(i,"shown","tooltip")},X=function(){P(t,"resize",T.hide,z),L(),U.call(i,"hidden","tooltip")};this.show=function(){clearTimeout(A),A=setTimeout(function(){null===x&&(C=T.placement,!1!==N()&&(H(),R(),U.call(i,"show","tooltip"),T[c]?j(x,O):O()))},20)},this.hide=function(){clearTimeout(A),A=setTimeout(function(){x&&D(x,"show")&&(U.call(i,"hide","tooltip"),B(x,"show"),T[c]?j(x,X):X())},T[s])},this.toggle=function(){x?T.hide():T.show()},"Tooltip"in i||(i[f]("data-original-title",E),i.removeAttribute("title"),W(i,d[0],T.show),W(i,d[1],T.hide)),i.Tooltip=T}};a[b](["Tooltip",et,'[data-toggle="tooltip"]']);var it=function(t,e){for(var i=0,n=e[m];i<n;i++)new t(e[i])},nt=o.initCallback=function(t){t=t||e;for(var i=0,n=a[m];i<n;i++)it(a[i][1],t.querySelectorAll(a[i][2]))};return e[n]?nt():W(e,"DOMContentLoaded",function(){nt()}),{Alert:F,Button:G,Carousel:J,Collapse:K,Dropdown:Q,Modal:V,Popover:Z,ScrollSpy:$,Tab:_,Toast:tt,Tooltip:et}});

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

// Native Javascript for Bootstrap 3 v2.0.26 | © 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 i=e();t.Affix=i.Affix,t.Alert=i.Alert,t.Button=i.Button,t.Carousel=i.Carousel,t.Collapse=i.Collapse,t.Dropdown=i.Dropdown,t.Modal=i.Modal,t.Popover=i.Popover,t.ScrollSpy=i.ScrollSpy,t.Tab=i.Tab,t.Tooltip=i.Tooltip}}(this,function(){"use strict";var t="undefined"!=typeof global?global:this||window,e=document,i=e.documentElement,n="body",o=t.BSN={},a=o.supports=[],l="target",r="animation",c="getAttribute",s="setAttribute",d="parentNode",f="length",u="Transition",h="Webkit",p="style",g="push",m="active",v="left",b="top",y=!("opacity"in i[p]),w="onmouseleave"in e?["mouseenter","mouseleave"]:["mouseover","mouseout"],T=/\b(top|bottom|left|right)+/,x=0,k="navbar-fixed-top",C=h+u in i[p]||u.toLowerCase()in i[p],A=h+u in i[p]?h.toLowerCase()+u+"End":u.toLowerCase()+"end",I=h+"Duration"in i[p]?h.toLowerCase()+u+"Duration":u.toLowerCase()+"Duration",L={start:"touchstart",end:"touchend",move:"touchmove"},B=function(t){t.focus?t.focus():t.setActive()},H=function(t,e){t.classList.add(e)},E=function(t,e){t.classList.remove(e)},N=function(t,e){return t.classList.contains(e)},M=function(t){for(var e=[],i=0,n=t[f];i<n;i++)e[g](t[i]);return e},D=function(t,e){return M(t[y?"querySelectorAll":"getElementsByClassName"](y?"."+e.replace(/\s(?=[a-z])/g,"."):e))},S=function(t,i){var n=i||e;return"object"==typeof t?t:n.querySelector(t)},R=function(t,i){var n=i.charAt(0),o=i.substr(1);if("."===n){for(;t&&t!==e;t=t[d])if(null!==S(i,t[d])&&N(t,o))return t}else if("#"===n)for(;t&&t!==e;t=t[d])if(t.id===o)return t;return!1},W=function(t,e,i){t.addEventListener(e,i,!1)},P=function(t,e,i){t.removeEventListener(e,i,!1)},z=function(t,e,i){W(t,e,function n(o){i(o),P(t,e,n)})},O=function(e){var i=C?t.getComputedStyle(e)[I]:0;return i=parseFloat(i),i="number"!=typeof i||isNaN(i)?0:1e3*i},X=function(t,e){var i=0;O(t)?z(t,A,function(t){!i&&e(t),i=1}):setTimeout(function(){!i&&e(),i=1},17)},j=function(t,e,i){var n=new CustomEvent(t+".bs."+e);n.relatedTarget=i,this.dispatchEvent(n)},q=function(){return{y:t.pageYOffset||i.scrollTop,x:t.pageXOffset||i.scrollLeft}},U=function(t,o,a,l){var r,c,s,d,f={w:o.offsetWidth,h:o.offsetHeight},u=i.clientWidth||e[n].clientWidth,h=i.clientHeight||e[n].clientHeight,g=t.getBoundingClientRect(),m=l===e[n]?q():{x:l.offsetLeft+l.scrollLeft,y:l.offsetTop+l.scrollTop},y={w:g.right-g[v],h:g.bottom-g[b]},w=S('[class*="arrow"]',o),x=g[b]+y.h/2-f.h/2<0,k=g[v]+y.w/2-f.w/2<0,C=g[v]+f.w/2+y.w/2>=u,A=g[b]+f.h/2+y.h/2>=h,I=g[b]-f.h<0,L=g[v]-f.w<0,B=g[b]+f.h+y.h>=h,H=g[v]+f.w+y.w>=u;a=(a===v||"right"===a)&&L&&H?b:a,a=a===b&&I?"bottom":a,a="bottom"===a&&B?b:a,a=a===v&&L?"right":a,a="right"===a&&H?v:a,a===v||"right"===a?(c=a===v?g[v]+m.x-f.w:g[v]+m.x+y.w,x?(r=g[b]+m.y,s=y.h/2):A?(r=g[b]+m.y-f.h+y.h,s=f.h-y.h/2):r=g[b]+m.y-f.h/2+y.h/2):a!==b&&"bottom"!==a||(r=a===b?g[b]+m.y-f.h:g[b]+m.y+y.h,k?(c=0,d=g[v]+y.w/2):C?(c=u-1.01*f.w,d=f.w-(u-g[v])+y.w/2):c=g[v]+m.x-f.w/2+y.w/2),o[p][b]=r+"px",o[p][v]=c+"px",s&&(w[p][b]=s+"px"),d&&(w[p][v]=d+"px"),-1===o.className.indexOf(a)&&(o.className=o.className.replace(T,a))};o.version="2.0.26";var F=function(o,a){o=S(o),a=a||{};var r=o[c]("data-target"),s=o[c]("data-offset-top"),d=o[c]("data-offset-bottom"),f="affix",u="function";if(this[l]=a[l]?S(a[l]):S(r)||null,this.offsetTop=a.offsetTop?a.offsetTop:parseInt(s)||0,this.offsetBottom=a.offsetBottom?a.offsetBottom:parseInt(d)||0,this[l]||this.offsetTop||this.offsetBottom){var h,p,g,m,v,w,T=this,x=!1,k=!1,C=function(){return Math.max(e[n].scrollHeight,e[n].offsetHeight,i.clientHeight,i.scrollHeight,i.offsetHeight)},A=function(){return null!==T[l]?T[l].getBoundingClientRect()[b]+m:T.offsetTop?parseInt(typeof T.offsetTop===u?T.offsetTop():T.offsetTop||0):void 0},I=function(){if(T.offsetBottom)return g-o.offsetHeight-parseInt(typeof T.offsetBottom===u?T.offsetBottom():T.offsetBottom||0)},L=function(){g=C(),m=parseInt(q().y,0),h=A(),p=I(),v=parseInt(h)-m<0&&m>parseInt(h),w=parseInt(p)-m<0&&m>parseInt(p)},B=function(){x||N(o,f)||(j.call(o,f,f),j.call(o,"affix-top",f),H(o,f),x=!0,j.call(o,"affixed",f),j.call(o,"affixed-top",f))},M=function(){x&&N(o,f)&&(E(o,f),x=!1)},D=function(){k||N(o,"affix-bottom")||(j.call(o,f,f),j.call(o,"affix-bottom",f),H(o,"affix-bottom"),k=!0,j.call(o,"affixed",f),j.call(o,"affixed-bottom",f))},R=function(){k&&N(o,"affix-bottom")&&(E(o,"affix-bottom"),k=!1)},P=function(){w?(v&&M(),D()):(R(),v?B():M())};this.update=function(){L(),P()},"Affix"in o||(W(t,"scroll",T.update),!y&&W(t,"resize",T.update)),o.Affix=T,T.update()}};a[g](["Affix",F,'[data-spy="affix"]']);var Y=function(t){t=S(t);var e=this,i=R(t,".alert"),n=function(){N(i,"fade")?X(i,a):a()},o=function(n){i=R(n[l],".alert"),(t=S('[data-dismiss="alert"]',i))&&i&&(t===n[l]||t.contains(n[l]))&&e.close()},a=function(){j.call(i,"closed","alert"),P(t,"click",o),i[d].removeChild(i)};this.close=function(){i&&t&&N(i,"in")&&(j.call(i,"close","alert"),E(i,"in"),i&&n())},"Alert"in t||W(t,"click",o),t.Alert=e};a[g](["Alert",Y,'[data-dismiss="alert"]']);var G=function(t,i){t=S(t),i=i||null;var n=!1,o="checked",a=function(t){32===(t.which||t.keyCode)&&t[l]===e.activeElement&&u(t)},r=function(t){32===(t.which||t.keyCode)&&t.preventDefault()},u=function(e){var i="LABEL"===e[l].tagName?e[l]:"LABEL"===e[l][d].tagName?e[l][d]:null;if(i){var a=e[l],r=D(a[d],"btn"),u=i.getElementsByTagName("INPUT")[0];if(u){if("checkbox"===u.type&&(u[o]?(E(i,m),u[c](o),u.removeAttribute(o),u[o]=!1):(H(i,m),u[c](o),u[s](o,o),u[o]=!0),n||(n=!0,j.call(u,"change","button"),j.call(t,"change","button"))),"radio"===u.type&&!n&&!u[o]){H(i,m),u[s](o,o),u[o]=!0,j.call(u,"change","button"),j.call(t,"change","button"),n=!0;for(var h=0,p=r[f];h<p;h++){var g=r[h],v=g.getElementsByTagName("INPUT")[0];g!==i&&N(g,m)&&(E(g,m),v.removeAttribute(o),v[o]=!1,j.call(v,"change","button"))}}setTimeout(function(){n=!1},50)}}};if(N(t,"btn"))null!==i&&("reset"!==i?function(){i&&"reset"!==i&&("loading"===i&&(H(t,"disabled"),t[s]("disabled","disabled"),t[s]("data-original-text",t.innerHTML.trim())),t.innerHTML=t[c]("data-"+i+"-text"))}():function(){t[c]("data-original-text")&&((N(t,"disabled")||"disabled"===t[c]("disabled"))&&(E(t,"disabled"),t.removeAttribute("disabled")),t.innerHTML=t[c]("data-original-text"))}());else{"Button"in t||(W(t,"click",u),S("[tabindex]",t)&&W(t,"keyup",a),W(t,"keydown",r));for(var h=D(t,"btn"),p=h[f],g=0;g<p;g++)!N(h[g],m)&&S("input",h[g])[c](o)&&H(h[g],m);t.Button=this}};a[g](["Button",G,'[data-toggle="buttons"]']);var J=function(e,n){e=S(e),n=n||{};var o=e[c]("data-interval"),a=n.interval,r="false"===o?0:parseInt(o),s="hover"===e[c]("data-pause")||!1,d="true"===e[c]("data-keyboard")||!1;this.keyboard=!0===n.keyboard||d,this.pause=!("hover"!==n.pause&&!s)&&"hover",this.interval="number"==typeof a?a:!1===a||0===r||!1===r?0:isNaN(r)?5e3:r;var u=this,h=e.index=0,p=e.timer=0,g=!1,y=!1,T=null,x=null,k=null,A=D(e,"item"),I=A[f],B=this.direction=v,M=D(e,"carousel-control"),R=M[0],z=M[1],O=S(".carousel-indicators",e),q=O&&O.getElementsByTagName("LI")||[];if(!(I<2)){var U=function(){!1===u.interval||N(e,"paused")||(H(e,"paused"),!g&&(clearInterval(p),p=null))},F=function(){!1!==u.interval&&N(e,"paused")&&(E(e,"paused"),!g&&(clearInterval(p),p=null),!g&&u.cycle())},Y=function(t){if(t.preventDefault(),!g){var e=t[l];if(!e||N(e,m)||!e[c]("data-slide-to"))return!1;h=parseInt(e[c]("data-slide-to"),10),u.slideTo(h)}},G=function(t){if(t.preventDefault(),!g){var e=t.currentTarget||t.srcElement;e===z?h++:e===R&&h--,u.slideTo(h)}},J=function(t){if(!g){switch(t.which){case 39:h++;break;case 37:h--;break;default:return}u.slideTo(h)}},K=function(t){t(e,L.move,V),t(e,L.end,Z)},Q=function(t){y||(T=parseInt(t.touches[0].pageX),e.contains(t[l])&&(y=!0,K(W)))},V=function(t){return y?(x=parseInt(t.touches[0].pageX),"touchmove"===t.type&&t.touches[f]>1?(t.preventDefault(),!1):void 0):void t.preventDefault()},Z=function(t){if(y&&!g&&(k=x||parseInt(t.touches[0].pageX),y)){if((!e.contains(t[l])||!e.contains(t.relatedTarget))&&Math.abs(T-k)<75)return!1;x<T?h++:x>T&&h--,y=!1,u.slideTo(h),K(P)}},$=function(){var n=e.getBoundingClientRect(),o=t.innerHeight||i.clientHeight;return n[b]<=o&&n.bottom>=0},_=function(t){for(var e=0,i=q[f];e<i;e++)E(q[e],m);q[t]&&H(q[t],m)};this.cycle=function(){p&&(clearInterval(p),p=null),p=setInterval(function(){$()&&(h++,u.slideTo(h))},this.interval)},this.slideTo=function(t){if(!g){var i,n=this.getActiveIndex();n!==t&&(n<t||0===n&&t===I-1?B=u.direction=v:(n>t||n===I-1&&0===t)&&(B=u.direction="right"),t<0?t=I-1:t>=I&&(t=0),h=t,i=B===v?"next":"prev",j.call(e,"slide","carousel",A[t]),g=!0,clearInterval(p),p=null,_(t),C&&N(e,"slide")?(H(A[t],i),A[t].offsetWidth,H(A[t],B),H(A[n],B),X(A[t],function(o){var a=o&&o[l]!==A[t]?1e3*o.elapsedTime+100:20;g&&setTimeout(function(){g=!1,H(A[t],m),E(A[n],m),E(A[t],i),E(A[t],B),E(A[n],B),j.call(e,"slid","carousel",A[t]),u.interval&&!N(e,"paused")&&u.cycle()},a)})):(H(A[t],m),A[t].offsetWidth,E(A[n],m),setTimeout(function(){g=!1,u.interval&&!N(e,"paused")&&u.cycle(),j.call(e,"slid","carousel",A[t])},100)))}},this.getActiveIndex=function(){return A.indexOf(D(e,"item active")[0])||0},"Carousel"in e||(u.pause&&u.interval&&(W(e,w[0],U),W(e,w[1],F),W(e,L.start,U),W(e,L.end,F)),A[f]>1&&W(e,L.start,Q),z&&W(z,"click",G),R&&W(R,"click",G),O&&W(O,"click",Y),u.keyboard&&W(t,"keydown",J)),u.getActiveIndex()<0&&(A[f]&&H(A[0],m),q[f]&&_(0)),u.interval&&u.cycle(),e.Carousel=u}};a[g](["Carousel",J,'[data-ride="carousel"]']);var K=function(t,e){t=S(t),e=e||{};var i,n,o=null,a=null,l=this,r=t[c]("data-parent"),d=function(t,e){j.call(t,"show","collapse"),t.isAnimating=!0,H(t,"collapsing"),E(t,"collapse"),t[p].height=t.scrollHeight+"px",X(t,function(){t.isAnimating=!1,t[s]("aria-expanded","true"),e[s]("aria-expanded","true"),E(t,"collapsing"),H(t,"collapse"),H(t,"in"),t[p].height="",j.call(t,"shown","collapse")})},f=function(t,e){j.call(t,"hide","collapse"),t.isAnimating=!0,t[p].height=t.scrollHeight+"px",E(t,"collapse"),E(t,"in"),H(t,"collapsing"),t.offsetWidth,t[p].height="0px",X(t,function(){t.isAnimating=!1,t[s]("aria-expanded","false"),e[s]("aria-expanded","false"),E(t,"collapsing"),H(t,"collapse"),t[p].height="",j.call(t,"hidden","collapse")})};this.toggle=function(t){t.preventDefault(),N(a,"in")?l.hide():l.show()},this.hide=function(){a.isAnimating||(f(a,t),H(t,"collapsed"))},this.show=function(){o&&(i=S(".collapse.in",o),n=i&&(S('[data-target="#'+i.id+'"]',o)||S('[href="#'+i.id+'"]',o))),(!a.isAnimating||i&&!i.isAnimating)&&(n&&i!==a&&(f(i,n),H(n,"collapsed")),d(a,t),E(t,"collapsed"))},"Collapse"in t||W(t,"click",l.toggle),a=function(){var e=t.href&&t[c]("href"),i=t[c]("data-target"),n=e||i&&"#"===i.charAt(0)&&i;return n&&S(n)}(),a.isAnimating=!1,o=S(e.parent)||r&&R(t,r),t.Collapse=l};a[g](["Collapse",K,'[data-toggle="collapse"]']);var Q=function(t,i){t=S(t),this.persist=!0===i||"true"===t[c]("data-persist")||!1;var n=this,o=t[d],a="open",r=null,u=S(".dropdown-menu",o),h=function(){for(var t=u.children,e=[],i=0;i<t[f];i++)t[i].children[f]&&"A"===t[i].children[0].tagName&&e[g](t[i]);return e}(),p=function(t){(t.href&&"#"===t.href.slice(-1)||t[d]&&t[d].href&&"#"===t[d].href.slice(-1))&&this.preventDefault()},m=function(){var i=t[a]?W:P;i(e,"click",v),i(e,"keydown",y),i(e,"keyup",w)},v=function(e){var i=e[l],o=i&&("Dropdown"in i||"Dropdown"in i[d]);(i!==u&&!u.contains(i)||!n.persist&&!o)&&(r=i===t||t.contains(i)?t:null,x(),p.call(e,i))},b=function(e){r=t,T(),p.call(e,e[l])},y=function(t){var e=t.which||t.keyCode;38!==e&&40!==e||t.preventDefault()},w=function(i){var o=i.which||i.keyCode,l=e.activeElement,c=h.indexOf(l[d]),s=l===t,p=u.contains(l),g=l[d][d]===u;(g||s)&&(c=s?0:38===o?c>1?c-1:0:40===o&&c<h[f]-1?c+1:c,h[c]&&B(h[c].children[0])),(h[f]&&g||!h[f]&&(p||s)||!p)&&t[a]&&27===o&&(n.toggle(),r=null)},T=function(){j.call(o,"show","dropdown",r),H(o,a),t[s]("aria-expanded",!0),j.call(o,"shown","dropdown",r),t[a]=!0,P(t,"click",b),setTimeout(function(){B(u.getElementsByTagName("INPUT")[0]||t),m()},1)},x=function(){j.call(o,"hide","dropdown",r),E(o,a),t[s]("aria-expanded",!1),j.call(o,"hidden","dropdown",r),t[a]=!1,m(),B(t),setTimeout(function(){W(t,"click",b)},1)};t[a]=!1,this.toggle=function(){N(o,a)&&t[a]?x():T()},"Dropdown"in t||(!1 in u&&u[s]("tabindex","0"),W(t,"click",b)),t.Dropdown=n};a[g](["Dropdown",Q,'[data-toggle="dropdown"]']);var V=function(o,a){o=S(o);var r=o[c]("data-target")||o[c]("href"),u=S(r),h=N(o,"modal")?o:u;if(N(o,"modal")&&(o=null),h){a=a||{},this.keyboard=!1!==a.keyboard&&"false"!==h[c]("data-keyboard"),this.backdrop="static"!==a.backdrop&&"static"!==h[c]("data-backdrop")||"static",this.backdrop=!1!==a.backdrop&&"false"!==h[c]("data-backdrop")&&this.backdrop,this.content=a.content;var g,m,b,y,w=this,T=null,A=D(i,k).concat(D(i,"navbar-fixed-bottom")),I=function(){var e=i.getBoundingClientRect();return t.innerWidth||e.right-Math.abs(e[v])},L=function(){var i,o=e[n].currentStyle||t.getComputedStyle(e[n]),a=parseInt(o.paddingRight,10);if(g&&(e[n][p].paddingRight=a+m+"px",h[p].paddingRight=m+"px",A[f]))for(var l=0;l<A[f];l++)i=(A[l].currentStyle||t.getComputedStyle(A[l])).paddingRight,A[l][p].paddingRight=parseInt(i)+m+"px"},M=function(){if(e[n][p].paddingRight="",h[p].paddingRight="",A[f])for(var t=0;t<A[f];t++)A[t][p].paddingRight=""},R=function(){var t,i=e.createElement("div");return i.className="modal-scrollbar-measure",e[n].appendChild(i),t=i.offsetWidth-i.clientWidth,e[n].removeChild(i),t},z=function(){g=e[n].clientWidth<I(),m=R()},q=function(){x=1;var t=e.createElement("div");null===(b=S(".modal-backdrop"))&&(t[s]("class","modal-backdrop fade"),b=t,e[n].appendChild(b))},U=function(){b=S(".modal-backdrop"),b&&null!==b&&"object"==typeof b&&(x=0,e[n].removeChild(b),b=null),j.call(h,"hidden","modal")},F=function(){N(h,"in")?W(e,"keydown",V):P(e,"keydown",V)},Y=function(){N(h,"in")?W(t,"resize",w.update):P(t,"resize",w.update)},G=function(){N(h,"in")?W(h,"click",Z):P(h,"click",Z)},J=function(){Y(),G(),F(),B(h),j.call(h,"shown","modal",T)},K=function(){h[p].display="",o&&B(o),function(){D(e,"modal in")[0]||(M(),E(e[n],"modal-open"),b&&N(b,"fade")?(E(b,"in"),X(b,U)):U(),Y(),G(),F())}()},Q=function(t){var e=t[l];(e=e.hasAttribute("data-target")||e.hasAttribute("href")?e:e[d])!==o||N(h,"in")||(h.modalTrigger=o,T=o,w.show(),t.preventDefault())},V=function(t){var e=t.which||t.keyCode;w.keyboard&&27==e&&N(h,"in")&&w.hide()},Z=function(t){var e=t[l];N(h,"in")&&("modal"===e[d][c]("data-dismiss")||"modal"===e[c]("data-dismiss")||e===h&&"static"!==w.backdrop)&&(w.hide(),T=null,t.preventDefault())};this.toggle=function(){N(h,"in")?this.hide():this.show()},this.show=function(){j.call(h,"show","modal",T);var t=D(e,"modal in")[0];t&&t!==h&&("modalTrigger"in t&&t.modalTrigger.Modal.hide(),"Modal"in t&&t.Modal.hide()),this.backdrop&&!x&&q(),b&&x&&!N(b,"in")&&(b.offsetWidth,y=O(b),H(b,"in")),setTimeout(function(){h[p].display="block",z(),L(),H(e[n],"modal-open"),H(h,"in"),h[s]("aria-hidden",!1),N(h,"fade")?X(h,J):J()},C&&b?y:0)},this.hide=function(){j.call(h,"hide","modal"),b=S(".modal-backdrop"),y=b&&O(b),E(h,"in"),h[s]("aria-hidden",!0),setTimeout(function(){N(h,"fade")?X(h,K):K()},C&&b?y:0)},this.setContent=function(t){S(".modal-content",h).innerHTML=t},this.update=function(){N(h,"in")&&(z(),L())},!o||"Modal"in o||W(o,"click",Q),w.content&&w.setContent(w.content),o?(o.Modal=w,h.modalTrigger=o):h.Modal=w}};a[g](["Modal",V,'[data-toggle="modal"]']);var Z=function(i,o){i=S(i),o=o||{};var a=i[c]("data-trigger"),d=i[c]("data-animation"),f=i[c]("data-placement"),u=i[c]("data-dismissible"),h=i[c]("data-delay"),g=i[c]("data-container"),m='<button type="button" class="close">×</button>',v=S(o.container),T=S(g),x=R(i,".modal"),C=R(i,"."+k),A=R(i,".navbar-fixed-bottom");this.template=o.template?o.template:null,this.trigger=o.trigger?o.trigger:a||"hover",this[r]=o[r]&&"fade"!==o[r]?o[r]:d||"fade",this.placement=o.placement?o.placement:f||b,this.delay=parseInt(o.delay||h)||200,this.dismissible=!(!o.dismissible&&"true"!==u),this.container=v||(T||(C||(A||(x||e[n]))));var I=this,L=o.title||i[c]("data-title")||null,B=o.content||i[c]("data-content")||null;if(B||this.template){var M=null,D=0,z=this.placement,O=function(t){null!==M&&t[l]===S(".close",M)&&I.hide()},q=function(){I.container.removeChild(M),D=null,M=null},F=function(){if(L=i[c]("data-title"),B=i[c]("data-content"),M=e.createElement("div"),null!==B&&null===I.template){if(M[s]("role","tooltip"),null!==L){var t=e.createElement("h3");t[s]("class","popover-title"),t.innerHTML=I.dismissible?L+m:L,M.appendChild(t)}var n=e.createElement("div"),o=e.createElement("div");n[s]("class","arrow"),o[s]("class","popover-content"),M.appendChild(n),M.appendChild(o),o.innerHTML=I.dismissible&&null===L?B+m:B}else{var a=e.createElement("div");a.innerHTML=I.template,M.innerHTML=a.firstChild.innerHTML}I.container.appendChild(M),M[p].display="block",M[s]("class","popover "+z+" "+I[r])},Y=function(){!N(M,"in")&&H(M,"in")},G=function(){U(i,M,z,I.container)},J=function(n){"click"!=I.trigger&&"focus"!=I.trigger||!I.dismissible&&n(i,"blur",I.hide),I.dismissible&&n(e,"click",O),!y&&n(t,"resize",I.hide)},K=function(){J(W),j.call(i,"shown","popover")},Q=function(){J(P),q(),j.call(i,"hidden","popover")};this.toggle=function(){null===M?I.show():I.hide()},this.show=function(){clearTimeout(D),D=setTimeout(function(){null===M&&(z=I.placement,F(),G(),Y(),j.call(i,"show","popover"),I[r]?X(M,K):K())},20)},this.hide=function(){clearTimeout(D),D=setTimeout(function(){M&&null!==M&&N(M,"in")&&(j.call(i,"hide","popover"),E(M,"in"),I[r]?X(M,Q):Q())},I.delay)},"Popover"in i||("hover"===I.trigger?(W(i,w[0],I.show),I.dismissible||W(i,w[1],I.hide)):"click"!=I.trigger&&"focus"!=I.trigger||W(i,I.trigger,I.toggle)),i.Popover=I}};a[g](["Popover",Z,'[data-toggle="popover"]']);var $=function(e,i){e=S(e);var n=S(e[c]("data-target")),o=e[c]("data-offset");if(i=i||{},i[l]||n){for(var a,r=this,s=i[l]&&S(i[l])||n,u=s&&s.getElementsByTagName("A"),h=parseInt(i.offset||o)||10,p=[],v=[],w=e.offsetHeight<e.scrollHeight?e:t,T=w===t,x=0,k=u[f];x<k;x++){var C=u[x][c]("href"),A=C&&"#"===C.charAt(0)&&"#"!==C.slice(-1)&&S(C);A&&(p[g](u[x]),v[g](A))}var I=function(t){var i=p[t][d],n=v[t],o=R(i,".dropdown"),l=T&&n.getBoundingClientRect(),r=N(i,m)||!1,c=(T?l[b]+a:n.offsetTop)-h,s=T?l.bottom+a-h:v[t+1]?v[t+1].offsetTop-h:e.scrollHeight,f=a>=c&&s>a;if(!r&&f)"LI"!==i.tagName||N(i,m)||(H(i,m),o&&!N(o,m)&&H(o,m),j.call(e,"activate","scrollspy",p[t]));else if(f){if(!f&&!r||r&&f)return}else"LI"===i.tagName&&N(i,m)&&(E(i,m),o&&N(o,m)&&!D(i[d],m).length&&E(o,m))},L=function(){a=T?q().y:e.scrollTop;for(var t=0,i=p[f];t<i;t++)I(t)};this.refresh=function(){L()},"ScrollSpy"in e||(W(w,"scroll",r.refresh),!y&&W(t,"resize",r.refresh)),r.refresh(),e.ScrollSpy=r}};a[g](["ScrollSpy",$,'[data-spy="scroll"]']);var _=function(t,e){t=S(t);var i=t[c]("data-height");e=e||{},this.height=!!C&&(e.height||"true"===i);var n,o,a,l,r,u,h,g=this,b=R(t,".nav"),y=!1,w=b&&S(".dropdown",b),T=function(){y[p].height="",E(y,"collapsing"),b.isAnimating=!1},x=function(){y?u?T():setTimeout(function(){y[p].height=h+"px",y.offsetWidth,X(y,T)},50):b.isAnimating=!1,j.call(n,"shown","tab",o)},k=function(){y&&(a[p].float=v,l[p].float=v,r=a.scrollHeight),H(l,m),j.call(n,"show","tab",o),E(a,m),j.call(o,"hidden","tab",n),y&&(h=l.scrollHeight,u=h===r,H(y,"collapsing"),y[p].height=r+"px",y.offsetHeight,a[p].float="",l[p].float=""),N(l,"fade")?setTimeout(function(){H(l,"in"),X(l,x)},20):x()};if(b){b.isAnimating=!1;var A=function(){var t,e=D(b,m);return 1!==e[f]||N(e[0],"dropdown")?e[f]>1&&(t=e[e[f]-1]):t=e[0],t.getElementsByTagName("A")[0]},I=function(){return S(A()[c]("href"))},L=function(t){t.preventDefault(),n=t.currentTarget||this,!b.isAnimating&&!N(n[d],m)&&g.show()};this.show=function(){n=n||t,l=S(n[c]("href")),o=A(),a=I(),b.isAnimating=!0,E(o[d],m),o[s]("aria-expanded","false"),H(n[d],m),n[s]("aria-expanded","true"),w&&(N(t[d][d],"dropdown-menu")?N(w,m)||H(w,m):N(w,m)&&E(w,m)),j.call(o,"hide","tab",n),N(a,"fade")?(E(a,"in"),X(a,k)):k()},"Tab"in t||W(t,"click",L),g.height&&(y=I()[d]),t.Tab=g}};a[g](["Tab",_,'[data-toggle="tab"]']);var tt=function(i,o){i=S(i),o=o||{};var a=i[c]("data-animation"),l=i[c]("data-placement"),d=i[c]("data-delay"),f=i[c]("data-container"),u=S(o.container),h=S(f),p=R(i,".modal"),g=R(i,"."+k),m=R(i,".navbar-fixed-bottom");this[r]=o[r]&&"fade"!==o[r]?o[r]:a||"fade",this.placement=o.placement?o.placement:l||b,this.delay=parseInt(o.delay||d)||200,this.container=u||(h||(g||(m||(p||e[n]))));var v=this,T=0,x=this.placement,C=null,A=i[c]("title")||i[c]("data-title")||i[c]("data-original-title");if(A&&""!=A){var I=function(){v.container.removeChild(C),C=null,T=null},L=function(){if(!(A=i[c]("title")||i[c]("data-title")||i[c]("data-original-title"))||""==A)return!1;C=e.createElement("div"),C[s]("role","tooltip");var t=e.createElement("div"),n=e.createElement("div");t[s]("class","tooltip-arrow"),n[s]("class","tooltip-inner"),C.appendChild(t),C.appendChild(n),n.innerHTML=A,v.container.appendChild(C),C[s]("class","tooltip "+x+" "+v[r])},B=function(){U(i,C,x,v.container)},M=function(){!N(C,"in")&&H(C,"in")},D=function(){j.call(i,"shown","tooltip"),!y&&W(t,"resize",v.hide)},z=function(){!y&&P(t,"resize",v.hide),I(),j.call(i,"hidden","tooltip")};this.show=function(){clearTimeout(T),T=setTimeout(function(){if(null===C){if(x=v.placement,0==L())return;B(),M(),j.call(i,"show","tooltip"),v[r]?X(C,D):D()}},20)},this.hide=function(){clearTimeout(T),T=setTimeout(function(){C&&N(C,"in")&&(j.call(i,"hide","tooltip"),E(C,"in"),v[r]?X(C,z):z())},v.delay)},this.toggle=function(){C?v.hide():v.show()},"Tooltip"in i||(i[s]("data-original-title",A),i.removeAttribute("title"),W(i,w[0],v.show),W(i,w[1],v.hide)),i.Tooltip=v}};a[g](["Tooltip",tt,'[data-toggle="tooltip"]']);var et=function(t,e){for(var i=0,n=e[f];i<n;i++)new t(e[i])},it=o.initCallback=function(t){t=t||e;for(var i=0,n=a[f];i<n;i++)et(a[i][1],t.querySelectorAll(a[i][2]))};return e[n]?it():W(e,"DOMContentLoaded",function(){it()}),{Affix:F,Alert:Y,Button:G,Carousel:J,Collapse:K,Dropdown:Q,Modal:V,Popover:Z,ScrollSpy:$,Tab:_,Tooltip:tt}});
// Native Javascript for Bootstrap 3 v2.0.27 | © 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 i=e();t.Affix=i.Affix,t.Alert=i.Alert,t.Button=i.Button,t.Carousel=i.Carousel,t.Collapse=i.Collapse,t.Dropdown=i.Dropdown,t.Modal=i.Modal,t.Popover=i.Popover,t.ScrollSpy=i.ScrollSpy,t.Tab=i.Tab,t.Tooltip=i.Tooltip}}(this,function(){"use strict";var t="undefined"!=typeof global?global:this||window,e=document,i=e.documentElement,n="body",a=t.BSN={},o=a.supports=[],l="data-toggle",r="target",s="animation",c="onmouseleave"in e?["mouseenter","mouseleave"]:["mouseover","mouseout"],d={start:"touchstart",end:"touchend",move:"touchmove"},f="getAttribute",u="setAttribute",h="parentNode",p="length",g="Transition",m="Webkit",v="style",b="push",y="active",T="left",w="top",x=!("opacity"in i[v]),k=/\b(top|bottom|left|right)+/,A=0,C="navbar-fixed-top",I=m+g in i[v]||g.toLowerCase()in i[v],L=m+g in i[v]?m.toLowerCase()+g+"End":g.toLowerCase()+"end",B=m+"Duration"in i[v]?m.toLowerCase()+g+"Duration":g.toLowerCase()+"Duration",H=function(t){t.focus?t.focus():t.setActive()},E=function(t,e){t.classList.add(e)},N=function(t,e){t.classList.remove(e)},M=function(t,e){return t.classList.contains(e)},D=function(t){for(var e=[],i=0,n=t[p];i<n;i++)e[b](t[i]);return e},S=function(t,e){return D(t[x?"querySelectorAll":"getElementsByClassName"](x?"."+e.replace(/\s(?=[a-z])/g,"."):e))},R=function(t,i){var n=i||e;return"object"==typeof t?t:n.querySelector(t)},W=function(t,i){var n=i.charAt(0),a=i.substr(1);if("."===n){for(;t&&t!==e;t=t[h])if(null!==R(i,t[h])&&M(t,a))return t}else if("#"===n)for(;t&&t!==e;t=t[h])if(t.id===a)return t;return!1},P=function(t,e,i,n){n=n||!1,t.addEventListener(e,i,n)},z=function(t,e,i,n){n=n||!1,t.removeEventListener(e,i,n)},O=function(t,e,i,n){P(t,e,function a(o){i(o),z(t,e,a,n)},n)},X=function(){var e=!1;try{var i=Object.defineProperty({},"passive",{get:function(){e=!0}});O(t,"testPassive",null,i)}catch(t){}return e}(),j=!!X&&{passive:!0},q=function(e){var i=I?t.getComputedStyle(e)[B]:0;return i=parseFloat(i),i="number"!=typeof i||isNaN(i)?0:1e3*i},U=function(t,e){var i=0;q(t)?O(t,L,function(t){!i&&e(t),i=1}):setTimeout(function(){!i&&e(),i=1},17)},Y=function(t,e,i){var n=new CustomEvent(t+".bs."+e);n.relatedTarget=i,this.dispatchEvent(n)},$=function(){return{y:t.pageYOffset||i.scrollTop,x:t.pageXOffset||i.scrollLeft}},F=function(t,a,o,l){var r,s,c,d,f={w:a.offsetWidth,h:a.offsetHeight},u=i.clientWidth||e[n].clientWidth,h=i.clientHeight||e[n].clientHeight,p=t.getBoundingClientRect(),g=l===e[n]?$():{x:l.offsetLeft+l.scrollLeft,y:l.offsetTop+l.scrollTop},m={w:p.right-p[T],h:p.bottom-p[w]},b=R('[class*="arrow"]',a),y=p[w]+m.h/2-f.h/2<0,x=p[T]+m.w/2-f.w/2<0,A=p[T]+f.w/2+m.w/2>=u,C=p[w]+f.h/2+m.h/2>=h,I=p[w]-f.h<0,L=p[T]-f.w<0,B=p[w]+f.h+m.h>=h,H=p[T]+f.w+m.w>=u;o=(o===T||"right"===o)&&L&&H?w:o,o=o===w&&I?"bottom":o,o="bottom"===o&&B?w:o,o=o===T&&L?"right":o,o="right"===o&&H?T:o,o===T||"right"===o?(s=o===T?p[T]+g.x-f.w:p[T]+g.x+m.w,y?(r=p[w]+g.y,c=m.h/2):C?(r=p[w]+g.y-f.h+m.h,c=f.h-m.h/2):r=p[w]+g.y-f.h/2+m.h/2):o!==w&&"bottom"!==o||(r=o===w?p[w]+g.y-f.h:p[w]+g.y+m.h,x?(s=0,d=p[T]+m.w/2):A?(s=u-1.01*f.w,d=f.w-(u-p[T])+m.w/2):s=p[T]+g.x-f.w/2+m.w/2),a[v][w]=r+"px",a[v][T]=s+"px",c&&(b[v][w]=c+"px"),d&&(b[v][T]=d+"px"),-1===a.className.indexOf(o)&&(a.className=a.className.replace(k,o))};a.version="2.0.27";var G=function(a,o){a=R(a),o=o||{};var l=a[f]("data-target"),s=a[f]("data-offset-top"),c=a[f]("data-offset-bottom"),d="affix",u="function";if(this[r]=o[r]?R(o[r]):R(l)||null,this.offsetTop=o.offsetTop?o.offsetTop:parseInt(s)||0,this.offsetBottom=o.offsetBottom?o.offsetBottom:parseInt(c)||0,this[r]||this.offsetTop||this.offsetBottom){var h,p,g,m,v,b,y=this,T=!1,k=!1,A=function(){return Math.max(e[n].scrollHeight,e[n].offsetHeight,i.clientHeight,i.scrollHeight,i.offsetHeight)},C=function(){return null!==y[r]?y[r].getBoundingClientRect()[w]+m:y.offsetTop?parseInt(typeof y.offsetTop===u?y.offsetTop():y.offsetTop||0):void 0},I=function(){if(y.offsetBottom)return g-a.offsetHeight-parseInt(typeof y.offsetBottom===u?y.offsetBottom():y.offsetBottom||0)},L=function(){g=A(),m=parseInt($().y,0),h=C(),p=I(),v=parseInt(h)-m<0&&m>parseInt(h),b=parseInt(p)-m<0&&m>parseInt(p)},B=function(){T||M(a,d)||(Y.call(a,d,d),Y.call(a,"affix-top",d),E(a,d),T=!0,Y.call(a,"affixed",d),Y.call(a,"affixed-top",d))},H=function(){T&&M(a,d)&&(N(a,d),T=!1)},D=function(){k||M(a,"affix-bottom")||(Y.call(a,d,d),Y.call(a,"affix-bottom",d),E(a,"affix-bottom"),k=!0,Y.call(a,"affixed",d),Y.call(a,"affixed-bottom",d))},S=function(){k&&M(a,"affix-bottom")&&(N(a,"affix-bottom"),k=!1)},W=function(){b?(v&&H(),D()):(S(),v?B():H())};this.update=function(){L(),W()},"Affix"in a||(P(t,"scroll",y.update,j),!x&&P(t,"resize",y.update,j)),a.Affix=y,y.update()}};o[b](["Affix",G,'[data-spy="affix"]']);var J=function(t){t=R(t);var e=this,i=W(t,".alert"),n=function(){M(i,"fade")?U(i,o):o()},a=function(n){i=W(n[r],".alert"),(t=R('[data-dismiss="alert"]',i))&&i&&(t===n[r]||t.contains(n[r]))&&e.close()},o=function(){Y.call(i,"closed","alert"),z(t,"click",a),i[h].removeChild(i)};this.close=function(){i&&t&&M(i,"in")&&(Y.call(i,"close","alert"),N(i,"in"),i&&n())},"Alert"in t||P(t,"click",a),t.Alert=e};o[b](["Alert",J,'[data-dismiss="alert"]']);var K=function(t,i){t=R(t),i=i||null;var n=!1,a="checked",o=function(t){32===(t.which||t.keyCode)&&t[r]===e.activeElement&&s(t)},l=function(t){32===(t.which||t.keyCode)&&t.preventDefault()},s=function(e){var i="LABEL"===e[r].tagName?e[r]:"LABEL"===e[r][h].tagName?e[r][h]:null;if(i){var o=S(i[h],"btn"),l=i.getElementsByTagName("INPUT")[0];if(l){if("checkbox"===l.type&&(l[a]?(N(i,y),l[f](a),l.removeAttribute(a),l[a]=!1):(E(i,y),l[f](a),l[u](a,a),l[a]=!0),n||(n=!0,Y.call(l,"change","button"),Y.call(t,"change","button"))),"radio"===l.type&&!n&&(!l[a]||0===e.screenX&&0==e.screenY)){E(i,y),l[u](a,a),l[a]=!0,Y.call(l,"change","button"),Y.call(t,"change","button"),n=!0;for(var s=0,c=o[p];s<c;s++){var d=o[s],g=d.getElementsByTagName("INPUT")[0];d!==i&&M(d,y)&&(N(d,y),g.removeAttribute(a),g[a]=!1,Y.call(g,"change","button"))}}setTimeout(function(){n=!1},50)}}};if(M(t,"btn"))null!==i&&("reset"!==i?function(){i&&"reset"!==i&&("loading"===i&&(E(t,"disabled"),t[u]("disabled","disabled"),t[u]("data-original-text",t.innerHTML.trim())),t.innerHTML=t[f]("data-"+i+"-text"))}():function(){t[f]("data-original-text")&&((M(t,"disabled")||"disabled"===t[f]("disabled"))&&(N(t,"disabled"),t.removeAttribute("disabled")),t.innerHTML=t[f]("data-original-text"))}());else{"Button"in t||(P(t,"click",s),P(t,"keyup",o),P(t,"keydown",l));for(var c=S(t,"btn"),d=c[p],g=0;g<d;g++)!M(c[g],y)&&R("input",c[g])[f](a)&&E(c[g],y);t.Button=this}};o[b](["Button",K,'[data-toggle="buttons"]']);var Q=function(e,n){e=R(e),n=n||{};var a=e[f]("data-interval"),o=n.interval,l="false"===a?0:parseInt(a),s="hover"===e[f]("data-pause")||!1,u="true"===e[f]("data-keyboard")||!1;this.keyboard=!0===n.keyboard||u,this.pause=!("hover"!==n.pause&&!s)&&"hover",this.interval="number"==typeof o?o:!1===o||0===l||!1===l?0:isNaN(l)?5e3:l;var h=this,g=e.index=0,m=e.timer=0,v=!1,b=!1,x=null,k=null,A=null,C=S(e,"item"),L=C[p],B=this.direction=T,H=S(e,"carousel-control"),D=H[0],W=H[1],O=R(".carousel-indicators",e),X=O&&O.getElementsByTagName("LI")||[];if(!(L<2)){var q=function(){!1===h.interval||M(e,"paused")||(E(e,"paused"),!v&&(clearInterval(m),m=null))},$=function(){!1!==h.interval&&M(e,"paused")&&(N(e,"paused"),!v&&(clearInterval(m),m=null),!v&&h.cycle())},F=function(t){if(t.preventDefault(),!v){var e=t[r];if(!e||M(e,y)||!e[f]("data-slide-to"))return!1;g=parseInt(e[f]("data-slide-to"),10),h.slideTo(g)}},G=function(t){if(t.preventDefault(),!v){var e=t.currentTarget||t.srcElement;e===W?g++:e===D&&g--,h.slideTo(g)}},J=function(t){if(!v){switch(t.which){case 39:g++;break;case 37:g--;break;default:return}h.slideTo(g)}},K=function(t){t(e,d.move,V,j),t(e,d.end,Z,j)},Q=function(t){b||(x=parseInt(t.touches[0].pageX),e.contains(t[r])&&(b=!0,K(P)))},V=function(t){return b?(k=parseInt(t.touches[0].pageX),"touchmove"===t.type&&t.touches[p]>1?(t.preventDefault(),!1):void 0):void t.preventDefault()},Z=function(t){if(b&&!v&&(A=k||parseInt(t.touches[0].pageX),b)){if((!e.contains(t[r])||!e.contains(t.relatedTarget))&&Math.abs(x-A)<75)return!1;k<x?g++:k>x&&g--,b=!1,h.slideTo(g),K(z)}},_=function(){var n=e.getBoundingClientRect(),a=t.innerHeight||i.clientHeight;return n[w]<=a&&n.bottom>=0},tt=function(t){for(var e=0,i=X[p];e<i;e++)N(X[e],y);X[t]&&E(X[t],y)};this.cycle=function(){m&&(clearInterval(m),m=null),m=setInterval(function(){_()&&(g++,h.slideTo(g))},this.interval)},this.slideTo=function(t){if(!v){var i,n=this.getActiveIndex();n!==t&&(n<t||0===n&&t===L-1?B=h.direction=T:(n>t||n===L-1&&0===t)&&(B=h.direction="right"),t<0?t=L-1:t>=L&&(t=0),g=t,i=B===T?"next":"prev",Y.call(e,"slide","carousel",C[t]),v=!0,clearInterval(m),m=null,tt(t),I&&M(e,"slide")?(E(C[t],i),C[t].offsetWidth,E(C[t],B),E(C[n],B),U(C[t],function(a){var o=a&&a[r]!==C[t]?1e3*a.elapsedTime+100:20;v&&setTimeout(function(){v=!1,E(C[t],y),N(C[n],y),N(C[t],i),N(C[t],B),N(C[n],B),Y.call(e,"slid","carousel",C[t]),h.interval&&!M(e,"paused")&&h.cycle()},o)})):(E(C[t],y),C[t].offsetWidth,N(C[n],y),setTimeout(function(){v=!1,h.interval&&!M(e,"paused")&&h.cycle(),Y.call(e,"slid","carousel",C[t])},100)))}},this.getActiveIndex=function(){return C.indexOf(S(e,"item active")[0])||0},"Carousel"in e||(h.pause&&h.interval&&(P(e,c[0],q),P(e,c[1],$),P(e,d.start,q,j),P(e,d.end,$,j)),C[p]>1&&P(e,d.start,Q,j),W&&P(W,"click",G),D&&P(D,"click",G),O&&P(O,"click",F),h.keyboard&&P(t,"keydown",J)),h.getActiveIndex()<0&&(C[p]&&E(C[0],y),X[p]&&tt(0)),h.interval&&h.cycle(),e.Carousel=h}};o[b](["Carousel",Q,'[data-ride="carousel"]']);var V=function(t,e){t=R(t),e=e||{};var i,n,a=null,o=null,l=this,r=t[f]("data-parent"),s=function(t,e){Y.call(t,"show","collapse"),t.isAnimating=!0,E(t,"collapsing"),N(t,"collapse"),t[v].height=t.scrollHeight+"px",U(t,function(){t.isAnimating=!1,t[u]("aria-expanded","true"),e[u]("aria-expanded","true"),N(t,"collapsing"),E(t,"collapse"),E(t,"in"),t[v].height="",Y.call(t,"shown","collapse")})},c=function(t,e){Y.call(t,"hide","collapse"),t.isAnimating=!0,t[v].height=t.scrollHeight+"px",N(t,"collapse"),N(t,"in"),E(t,"collapsing"),t.offsetWidth,t[v].height="0px",U(t,function(){t.isAnimating=!1,t[u]("aria-expanded","false"),e[u]("aria-expanded","false"),N(t,"collapsing"),E(t,"collapse"),t[v].height="",Y.call(t,"hidden","collapse")})};this.toggle=function(t){t.preventDefault(),M(o,"in")?l.hide():l.show()},this.hide=function(){o.isAnimating||(c(o,t),E(t,"collapsed"))},this.show=function(){a&&(i=R(".collapse.in",a),n=i&&(R('[data-target="#'+i.id+'"]',a)||R('[href="#'+i.id+'"]',a))),(!o.isAnimating||i&&!i.isAnimating)&&(n&&i!==o&&(c(i,n),E(n,"collapsed")),s(o,t),N(t,"collapsed"))},"Collapse"in t||P(t,"click",l.toggle),o=function(){var e=t.href&&t[f]("href"),i=t[f]("data-target"),n=e||i&&"#"===i.charAt(0)&&i;return n&&R(n)}(),o.isAnimating=!1,a=R(e.parent)||r&&W(t,r),t.Collapse=l};o[b](["Collapse",V,'[data-toggle="collapse"]']);var Z=function(t,i){t=R(t),this.persist=!0===i||"true"===t[f]("data-persist")||!1;var n=this,a=t[h],o="open",s=null,c=R(".dropdown-menu",a),d=function(){for(var t=c.children,e=[],i=0;i<t[p];i++)t[i].children[p]&&"A"===t[i].children[0].tagName&&e[b](t[i]);return e}(),g=function(t){(t.href&&"#"===t.href.slice(-1)||t[h]&&t[h].href&&"#"===t[h].href.slice(-1))&&this.preventDefault()},m=function(){var i=t[o]?P:z;i(e,"click",v),i(e,"keydown",T),i(e,"keyup",w),i(e,"focus",v,!0)},v=function(e){var i=e[r],a=i&&(i[f](l)||i[h]&&f in i[h]&&i[h][f](l));("focus"!==e.type||i!==t&&i!==c&&!c.contains(i))&&(i!==c&&!c.contains(i)||!n.persist&&!a)&&(s=i===t||t.contains(i)?t:null,k(),g.call(e,i))},y=function(e){s=t,x(),g.call(e,e[r])},T=function(t){var e=t.which||t.keyCode;38!==e&&40!==e||t.preventDefault()},w=function(i){var a=i.which||i.keyCode,l=e.activeElement,r=d.indexOf(l[h]),f=l===t,u=c.contains(l),g=l[h][h]===c;g&&(r=f?0:38===a?r>1?r-1:0:40===a&&r<d[p]-1?r+1:r,d[r]&&H(d[r].children[0])),(d[p]&&g||!d[p]&&(u||f)||!u)&&t[o]&&27===a&&(n.toggle(),s=null)},x=function(){Y.call(a,"show","dropdown",s),E(a,o),t[u]("aria-expanded",!0),Y.call(a,"shown","dropdown",s),t[o]=!0,z(t,"click",y),setTimeout(function(){H(c.getElementsByTagName("INPUT")[0]||t),m()},1)},k=function(){Y.call(a,"hide","dropdown",s),N(a,o),t[u]("aria-expanded",!1),Y.call(a,"hidden","dropdown",s),t[o]=!1,m(),H(t),setTimeout(function(){P(t,"click",y)},1)};t[o]=!1,this.toggle=function(){M(a,o)&&t[o]?k():x()},"Dropdown"in t||(!1 in c&&c[u]("tabindex","0"),P(t,"click",y)),t.Dropdown=n};o[b](["Dropdown",Z,'[data-toggle="dropdown"]']);var _=function(a,o){a=R(a);var l=a[f]("data-target")||a[f]("href"),c=R(l),d=M(a,"modal")?a:c;if(M(a,"modal")&&(a=null),d){o=o||{},this.keyboard=!1!==o.keyboard&&"false"!==d[f]("data-keyboard"),this.backdrop="static"!==o.backdrop&&"static"!==d[f]("data-backdrop")||"static",this.backdrop=!1!==o.backdrop&&"false"!==d[f]("data-backdrop")&&this.backdrop,this[s]=!!M(d,"fade"),this.content=o.content,d.isAnimating=!1;var g,m,b,y,w,x=this,k=null,L=S(i,C).concat(S(i,"navbar-fixed-bottom")),B=function(){var e=i.getBoundingClientRect();return t.innerWidth||e.right-Math.abs(e[T])},D=function(){var i,a=e[n].currentStyle||t.getComputedStyle(e[n]),o=parseInt(a.paddingRight,10);if(g&&(e[n][v].paddingRight=o+m+"px",d[v].paddingRight=m+"px",L[p]))for(var l=0;l<L[p];l++)i=(L[l].currentStyle||t.getComputedStyle(L[l])).paddingRight,L[l][v].paddingRight=parseInt(i)+m+"px"},W=function(){if(e[n][v].paddingRight="",d[v].paddingRight="",L[p])for(var t=0;t<L[p];t++)L[t][v].paddingRight=""},O=function(){var t,i=e.createElement("div");return i.className="modal-scrollbar-measure",e[n].appendChild(i),t=i.offsetWidth-i.clientWidth,e[n].removeChild(i),t},X=function(){g=e[n].clientWidth<B(),m=O()},$=function(){var t=e.createElement("div");b=R(".modal-backdrop"),null===b&&(t[u]("class","modal-backdrop"+(x[s]?" fade":"")),b=t,e[n].appendChild(b)),A=1},F=function(){(b=R(".modal-backdrop"))&&null!==b&&"object"==typeof b&&(A=0,e[n].removeChild(b),b=null)},G=function(){H(d),d.isAnimating=!1,Y.call(d,"shown","modal",k),P(t,"resize",x.update,j),P(d,"click",V),P(e,"keydown",Q)},J=function(){d[v].display="",a&&H(a),Y.call(d,"hidden","modal"),function(){S(e,"modal in")[0]||(W(),N(e[n],"modal-open"),b&&M(b,"fade")?(N(b,"in"),U(b,F)):F(),z(t,"resize",x.update,j),z(d,"click",V),z(e,"keydown",Q))}(),d.isAnimating=!1},K=function(t){if(!d.isAnimating){var e=t[r];e=e.hasAttribute("data-target")||e.hasAttribute("href")?e:e[h],e!==a||M(d,"in")||(d.modalTrigger=a,k=a,x.show(),t.preventDefault())}},Q=function(t){if(!d.isAnimating){var e=t.which||t.keyCode;x.keyboard&&27==e&&M(d,"in")&&x.hide()}},V=function(t){if(!d.isAnimating){var e=t[r];M(d,"in")&&("modal"===e[h][f]("data-dismiss")||"modal"===e[f]("data-dismiss")||e===d&&"static"!==x.backdrop)&&(x.hide(),k=null,t.preventDefault())}};this.toggle=function(){M(d,"in")?this.hide():this.show()},this.show=function(){M(d,"in")||d.isAnimating||(clearTimeout(w),w=setTimeout(function(){d.isAnimating=!0,Y.call(d,"show","modal",k);var t=S(e,"modal in")[0];t&&t!==d&&("modalTrigger"in t&&t.modalTrigger.Modal.hide(),"Modal"in t&&t.Modal.hide()),x.backdrop&&!A&&!b&&$(),b&&!M(b,"in")&&(b.offsetWidth,y=q(b),E(b,"in")),setTimeout(function(){d[v].display="block",X(),D(),E(e[n],"modal-open"),E(d,"in"),d[u]("aria-hidden",!1),M(d,"fade")?U(d,G):G()},I&&b&&y?y:1)},1))},this.hide=function(){!d.isAnimating&&M(d,"in")&&(clearTimeout(w),w=setTimeout(function(){d.isAnimating=!0,Y.call(d,"hide","modal"),b=R(".modal-backdrop"),y=b&&q(b),N(d,"in"),d[u]("aria-hidden",!0),setTimeout(function(){M(d,"fade")?U(d,J):J()},I&&b&&y?y:2)},2))},this.setContent=function(t){R(".modal-content",d).innerHTML=t},this.update=function(){M(d,"in")&&(X(),D())},!a||"Modal"in a||P(a,"click",K),x.content&&x.setContent(x.content),a?(a.Modal=x,d.modalTrigger=a):d.Modal=x}};o[b](["Modal",_,'[data-toggle="modal"]']);var tt=function(i,a){i=R(i),a=a||{};var o=i[f]("data-trigger"),l=i[f]("data-animation"),d=i[f]("data-placement"),h=i[f]("data-dismissible"),p=i[f]("data-delay"),g=i[f]("data-container"),m='<button type="button" class="close">×</button>',b=R(a.container),y=R(g),T=W(i,".modal"),k=W(i,"."+C),A=W(i,".navbar-fixed-bottom");this.template=a.template?a.template:null,this.trigger=a.trigger?a.trigger:o||"hover",this[s]=a[s]&&"fade"!==a[s]?a[s]:l||"fade",this.placement=a.placement?a.placement:d||w,this.delay=parseInt(a.delay||p)||200,this.dismissible=!(!a.dismissible&&"true"!==h),this.container=b||(y||(k||(A||(T||e[n]))));var I=this,L=a.title||i[f]("data-title")||null,B=a.content||i[f]("data-content")||null;if(B||this.template){var H=null,D=0,S=this.placement,O=function(t){null!==H&&t[r]===R(".close",H)&&I.hide()},X=function(){I.container.removeChild(H),D=null,H=null},q=function(){if(L=a.title||i[f]("data-title"),B=a.content||i[f]("data-content"),B=B?B.replace(/^\s+|\s+$/g,""):null,H=e.createElement("div"),null!==B&&null===I.template){if(H[u]("role","tooltip"),null!==L){var t=e.createElement("h3");t[u]("class","popover-title"),t.innerHTML=I.dismissible?L+m:L,H.appendChild(t)}var n=e.createElement("div"),o=e.createElement("div");n[u]("class","arrow"),o[u]("class","popover-content"),H.appendChild(n),H.appendChild(o),o.innerHTML=I.dismissible&&null===L?B+m:B}else{var l=e.createElement("div");I.template=I.template.replace(/^\s+|\s+$/g,""),l.innerHTML=I.template,H.innerHTML=l.firstChild.innerHTML}I.container.appendChild(H),H[v].display="block",H[u]("class","popover "+S+" "+I[s])},$=function(){!M(H,"in")&&E(H,"in")},G=function(){F(i,H,S,I.container)},J=function(n){"click"!=I.trigger&&"focus"!=I.trigger||!I.dismissible&&n(i,"blur",I.hide),I.dismissible&&n(e,"click",O),!x&&n(t,"resize",I.hide,j)},K=function(){J(P),Y.call(i,"shown","popover")},Q=function(){J(z),X(),Y.call(i,"hidden","popover")};this.toggle=function(){null===H?I.show():I.hide()},this.show=function(){clearTimeout(D),D=setTimeout(function(){null===H&&(S=I.placement,q(),G(),$(),Y.call(i,"show","popover"),I[s]?U(H,K):K())},20)},this.hide=function(){clearTimeout(D),D=setTimeout(function(){H&&null!==H&&M(H,"in")&&(Y.call(i,"hide","popover"),N(H,"in"),I[s]?U(H,Q):Q())},I.delay)},"Popover"in i||("hover"===I.trigger?(P(i,c[0],I.show),I.dismissible||P(i,c[1],I.hide)):"click"!=I.trigger&&"focus"!=I.trigger||P(i,I.trigger,I.toggle)),i.Popover=I}};o[b](["Popover",tt,'[data-toggle="popover"]']);var et=function(e,i){e=R(e);var n=R(e[f]("data-target")),a=e[f]("data-offset");if(i=i||{},i[r]||n){for(var o,l=this,s=i[r]&&R(i[r])||n,c=s&&s.getElementsByTagName("A"),d=parseInt(i.offset||a)||10,u=[],g=[],m=e.offsetHeight<e.scrollHeight?e:t,v=m===t,T=0,k=c[p];T<k;T++){var A=c[T][f]("href"),C=A&&"#"===A.charAt(0)&&"#"!==A.slice(-1)&&R(A);C&&(u[b](c[T]),g[b](C))}var I=function(t){var i=u[t][h],n=g[t],a=W(i,".dropdown"),l=v&&n.getBoundingClientRect(),r=M(i,y)||!1,s=(v?l[w]+o:n.offsetTop)-d,c=v?l.bottom+o-d:g[t+1]?g[t+1].offsetTop-d:e.scrollHeight,f=o>=s&&c>o;if(!r&&f)"LI"!==i.tagName||M(i,y)||(E(i,y),a&&!M(a,y)&&E(a,y),Y.call(e,"activate","scrollspy",u[t]));else if(f){if(!f&&!r||r&&f)return}else"LI"===i.tagName&&M(i,y)&&(N(i,y),a&&M(a,y)&&!S(i[h],y).length&&N(a,y))},L=function(){o=v?$().y:e.scrollTop;for(var t=0,i=u[p];t<i;t++)I(t)};this.refresh=function(){L()},"ScrollSpy"in e||(P(m,"scroll",l.refresh,j),!x&&P(t,"resize",l.refresh,j)),l.refresh(),e.ScrollSpy=l}};o[b](["ScrollSpy",et,'[data-spy="scroll"]']);var it=function(t,e){t=R(t);var i=t[f]("data-height");e=e||{},this.height=!!I&&(e.height||"true"===i);var n,a,o,l,r,s,c,d=this,g=W(t,".nav"),m=!1,b=g&&R(".dropdown",g),w=function(){m[v].height="",N(m,"collapsing"),g.isAnimating=!1},x=function(){m?s?w():setTimeout(function(){m[v].height=c+"px",m.offsetWidth,U(m,w)},50):g.isAnimating=!1,Y.call(n,"shown","tab",a)},k=function(){m&&(o[v].float=T,l[v].float=T,r=o.scrollHeight),E(l,y),Y.call(n,"show","tab",a),N(o,y),Y.call(a,"hidden","tab",n),m&&(c=l.scrollHeight,s=c===r,E(m,"collapsing"),m[v].height=r+"px",m.offsetHeight,o[v].float="",l[v].float=""),M(l,"fade")?setTimeout(function(){E(l,"in"),U(l,x)},20):x()};if(g){g.isAnimating=!1;var A=function(){var t,e=S(g,y);return 1!==e[p]||M(e[0],"dropdown")?e[p]>1&&(t=e[e[p]-1]):t=e[0],t.getElementsByTagName("A")[0]},C=function(){return R(A()[f]("href"))},L=function(t){t.preventDefault(),n=t.currentTarget||this,!g.isAnimating&&!M(n[h],y)&&d.show()};this.show=function(){n=n||t,l=R(n[f]("href")),a=A(),o=C(),g.isAnimating=!0,N(a[h],y),a[u]("aria-expanded","false"),E(n[h],y),n[u]("aria-expanded","true"),b&&(M(t[h][h],"dropdown-menu")?M(b,y)||E(b,y):M(b,y)&&N(b,y)),Y.call(a,"hide","tab",n),M(o,"fade")?(N(o,"in"),U(o,k)):k()},"Tab"in t||P(t,"click",L),d.height&&(m=C()[h]),t.Tab=d}};o[b](["Tab",it,'[data-toggle="tab"]']);var nt=function(i,a){i=R(i),a=a||{};var o=i[f]("data-animation"),l=i[f]("data-placement"),r=i[f]("data-delay"),d=i[f]("data-container"),h=R(a.container),p=R(d),g=W(i,".modal"),m=W(i,"."+C),v=W(i,".navbar-fixed-bottom");this[s]=a[s]&&"fade"!==a[s]?a[s]:o||"fade",this.placement=a.placement?a.placement:l||w,this.delay=parseInt(a.delay||r)||200,this.container=h||(p||(m||(v||(g||e[n]))));var b=this,y=0,T=this.placement,k=null,A=i[f]("title")||i[f]("data-title")||i[f]("data-original-title");if(A&&""!=A){var I=function(){b.container.removeChild(k),k=null,y=null},L=function(){if(!(A=i[f]("title")||i[f]("data-title")||i[f]("data-original-title"))||""==A)return!1;k=e.createElement("div"),k[u]("role","tooltip");var t=e.createElement("div"),n=e.createElement("div");t[u]("class","tooltip-arrow"),n[u]("class","tooltip-inner"),k.appendChild(t),k.appendChild(n),n.innerHTML=A,b.container.appendChild(k),k[u]("class","tooltip "+T+" "+b[s])},B=function(){F(i,k,T,b.container)},H=function(){!M(k,"in")&&E(k,"in")},D=function(){Y.call(i,"shown","tooltip"),!x&&P(t,"resize",b.hide,j)},S=function(){!x&&z(t,"resize",b.hide,j),I(),Y.call(i,"hidden","tooltip")};this.show=function(){clearTimeout(y),y=setTimeout(function(){if(null===k){if(T=b.placement,0==L())return;B(),H(),Y.call(i,"show","tooltip"),b[s]?U(k,D):D()}},20)},this.hide=function(){clearTimeout(y),y=setTimeout(function(){k&&M(k,"in")&&(Y.call(i,"hide","tooltip"),N(k,"in"),b[s]?U(k,S):S())},b.delay)},this.toggle=function(){k?b.hide():b.show()},"Tooltip"in i||(i[u]("data-original-title",A),i.removeAttribute("title"),P(i,c[0],b.show),P(i,c[1],b.hide)),i.Tooltip=b}};o[b](["Tooltip",nt,'[data-toggle="tooltip"]']);var at=function(t,e){for(var i=0,n=e[p];i<n;i++)new t(e[i])},ot=a.initCallback=function(t){t=t||e;for(var i=0,n=o[p];i<n;i++)at(o[i][1],t.querySelectorAll(o[i][2]))};return e[n]?ot():P(e,"DOMContentLoaded",function(){ot()}),{Affix:G,Alert:J,Button:K,Carousel:Q,Collapse:V,Dropdown:Z,Modal:_,Popover:tt,ScrollSpy:et,Tab:it,Tooltip:nt}});

@@ -112,5 +112,5 @@

if ( !(stringAffix in element ) ) { // prevent adding event handlers twice
on( globalObject, scrollEvent, self[update] );
!isIE8 && on( globalObject, resizeEvent, self[update] );
}
on( globalObject, scrollEvent, self[update], passiveHandler );
!isIE8 && on( globalObject, resizeEvent, self[update], passiveHandler );
}
element[stringAffix] = self;

@@ -117,0 +117,0 @@

@@ -58,7 +58,6 @@

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

@@ -87,3 +86,4 @@ // manage the dom manipulation

if ( input.type === 'radio' && !toggled ) { // radio buttons
if ( !input[checked] ) { // don't trigger if already active
// don't trigger if already active (the OR condition is a hack to check if the buttons were selected with key press and NOT mouse click)
if ( !input[checked] || (e.screenX === 0 && e.screenY == 0) ) {
addClass(label,active);

@@ -120,4 +120,3 @@ input[setAttribute](checked,checked);

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

@@ -124,0 +123,0 @@

@@ -105,5 +105,5 @@

toggleTouchEvents = function(toggle){
toggle( element, touchEvents.move, touchMoveHandler );
toggle( element, touchEvents.end, touchEndHandler );
},
toggle( element, touchEvents.move, touchMoveHandler, passiveHandler );
toggle( element, touchEvents.end, touchEndHandler, passiveHandler );
},
touchDownHandler = function(e) {

@@ -177,3 +177,4 @@ if ( isTouch ) { return; }

this.slideTo = function( next ) {
if (isSliding) return; // when controled via methods, make sure to check again
if (isSliding) return; // when controled via methods, make sure to check again
var activeItem = this.getActiveIndex(), // the current active

@@ -243,3 +244,3 @@ orientation;

}
bootstrapCustomEvent.call(element, slidEvent, component, slides[next]); // here we go with the slid event
bootstrapCustomEvent.call(element, slidEvent, component, slides[next]);
}, 100 );

@@ -258,7 +259,7 @@ }

on( element, mouseHover[1], resumeHandler );
on( element, touchEvents.start, pauseHandler );
on( element, touchEvents.end, resumeHandler );
}
on( element, touchEvents.start, pauseHandler, passiveHandler );
on( element, touchEvents.end, resumeHandler, passiveHandler );
}
slides[length] > 1 && on( element, touchEvents.start, touchDownHandler );
slides[length] > 1 && on( element, touchEvents.start, touchDownHandler, passiveHandler );

@@ -265,0 +266,0 @@ rightArrow && on( rightArrow, clickEvent, controlsHandler );

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

type(DOC, keyupEvent, keyHandler);
type(DOC, focusEvent, dismissHandler, true);
},

@@ -46,3 +47,8 @@

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

@@ -72,3 +78,3 @@ else {

if ( isMenuItem || isSameElement ) { // navigate up | down
if ( isMenuItem ) { // navigate up | down
idx = isSameElement ? 0

@@ -75,0 +81,0 @@ : key === 38 ? (idx>1?idx-1:0)

@@ -18,7 +18,8 @@

modalBackdropString = 'modal-backdrop',
isAnimating = 'isAnimating',
// determine modal, triggering element
btnCheck = element[getAttribute](dataTarget)||element[getAttribute]('href'),
checkModal = queryElement( btnCheck ),
modal = hasClass(element,component) ? element : checkModal;
modal = hasClass(element,component) ? element : checkModal;
if ( hasClass(element, component) ) { element = null; } // modal is now independent of it's triggering element

@@ -34,7 +35,11 @@

this[backdrop] = options[backdrop] === false || modal[getAttribute](databackdrop) === 'false' ? false : this[backdrop];
this[animation] = hasClass(modal, 'fade') ? true : false;
this[content] = options[content]; // JavaScript only
// set an initial state of the modal
modal[isAnimating] = false;
// bind, constants, event targets and other vars
var self = this, relatedTarget = null,
bodyIsOverflowing, scrollBarWidth, overlay, overlayDelay,
bodyIsOverflowing, scrollBarWidth, overlay, overlayDelay, modalTimer,

@@ -85,4 +90,2 @@ // also find fixed-top / fixed-bottom items

createOverlay = function() {
modalOverlay = 1;
var newOverlay = DOC[createElement]('div');

@@ -92,6 +95,7 @@ overlay = queryElement('.'+modalBackdropString);

if ( overlay === null ) {
newOverlay[setAttribute]('class',modalBackdropString+' fade');
newOverlay[setAttribute]('class', modalBackdropString + (self[animation] ? ' fade' : ''));
overlay = newOverlay;
DOC[body][appendChild](overlay);
}
modalOverlay = 1;
},

@@ -103,33 +107,13 @@ removeOverlay = function() {

DOC[body].removeChild(overlay); overlay = null;
}
bootstrapCustomEvent.call(modal, hiddenEvent, component);
}
},
keydownHandlerToggle = function() {
if (hasClass(modal,inClass)) {
on(DOC, keydownEvent, keyHandler);
} else {
off(DOC, keydownEvent, keyHandler);
}
},
resizeHandlerToggle = function() {
if (hasClass(modal,inClass)) {
on(globalObject, resizeEvent, self.update);
} else {
off(globalObject, resizeEvent, self.update);
}
},
dismissHandlerToggle = function() {
if (hasClass(modal,inClass)) {
on(modal, clickEvent, dismissHandler);
} else {
off(modal, clickEvent, dismissHandler);
}
},
// triggers
triggerShow = function() {
resizeHandlerToggle();
dismissHandlerToggle();
keydownHandlerToggle();
setFocus(modal);
modal[isAnimating] = false;
bootstrapCustomEvent.call(modal, shownEvent, component, relatedTarget);
on(globalObject, resizeEvent, self.update, passiveHandler);
on(modal, clickEvent, dismissHandler);
on(DOC, keydownEvent, keyHandler);
},

@@ -139,3 +123,4 @@ triggerHide = function() {

element && (setFocus(element));
bootstrapCustomEvent.call(modal, hiddenEvent, component);
(function(){

@@ -145,13 +130,16 @@ if (!getElementsByClassName(DOC,component+' '+inClass)[0]) {

removeClass(DOC[body],component+'-open');
overlay && hasClass(overlay,'fade') ? (removeClass(overlay,inClass), emulateTransitionEnd(overlay,removeOverlay))
overlay && hasClass(overlay,'fade') ? (removeClass(overlay,inClass), emulateTransitionEnd(overlay,removeOverlay))
: removeOverlay();
resizeHandlerToggle();
dismissHandlerToggle();
keydownHandlerToggle();
off(globalObject, resizeEvent, self.update, passiveHandler);
off(modal, clickEvent, dismissHandler);
off(DOC, keydownEvent, keyHandler);
}
}());
modal[isAnimating] = false;
},
// handlers
clickHandler = function(e) {
if ( modal[isAnimating] ) return;
var clickTarget = e[target];

@@ -167,2 +155,4 @@ clickTarget = clickTarget[hasAttribute](dataTarget) || clickTarget[hasAttribute]('href') ? clickTarget : clickTarget[parentNode];

keyHandler = function(e) {
if ( modal[isAnimating] ) return;
var key = e.which || e.keyCode; // keyCode for IE8

@@ -174,6 +164,8 @@ if (self[keyboard] && key == 27 && hasClass(modal,inClass)) {

dismissHandler = function(e) {
if ( modal[isAnimating] ) return;
var clickTarget = e[target];
if ( hasClass(modal,inClass) && (clickTarget[parentNode][getAttribute](dataDismiss) === component
|| clickTarget[getAttribute](dataDismiss) === component
|| (clickTarget === modal && self[backdrop] !== staticString) ) ) {
|| clickTarget === modal && self[backdrop] !== staticString) ) {
self.hide(); relatedTarget = null;

@@ -189,45 +181,57 @@ e[preventDefault]();

this.show = function() {
bootstrapCustomEvent.call(modal, showEvent, component, relatedTarget);
if ( hasClass(modal,inClass) || modal[isAnimating] ) {return}
// we elegantly hide any opened modal
var currentOpen = getElementsByClassName(DOC,component+' in')[0];
if (currentOpen && currentOpen !== modal) {
modalTrigger in currentOpen && currentOpen[modalTrigger][stringModal].hide();
stringModal in currentOpen && currentOpen[stringModal].hide();
}
clearTimeout(modalTimer);
modalTimer = setTimeout(function(){
modal[isAnimating] = true;
bootstrapCustomEvent.call(modal, showEvent, component, relatedTarget);
if ( this[backdrop] ) {
!modalOverlay && createOverlay();
}
// we elegantly hide any opened modal
var currentOpen = getElementsByClassName(DOC,component+' in')[0];
if (currentOpen && currentOpen !== modal) {
modalTrigger in currentOpen && currentOpen[modalTrigger][stringModal].hide();
stringModal in currentOpen && currentOpen[stringModal].hide();
}
if ( overlay && modalOverlay && !hasClass(overlay,inClass)) {
overlay[offsetWidth]; // force reflow to enable trasition
overlayDelay = getTransitionDurationFromElement(overlay);
addClass(overlay,inClass);
}
if ( self[backdrop] ) {
!modalOverlay && !overlay && createOverlay();
}
setTimeout(function() {
modal[style].display = 'block';
if ( overlay && !hasClass(overlay,inClass)) {
overlay[offsetWidth]; // force reflow to enable trasition
overlayDelay = getTransitionDurationFromElement(overlay);
addClass(overlay,inClass);
}
checkScrollbar();
setScrollbar();
setTimeout( function() {
modal[style].display = 'block';
addClass(DOC[body],component+'-open');
addClass(modal,inClass);
modal[setAttribute](ariaHidden, false);
checkScrollbar();
setScrollbar();
hasClass(modal,'fade') ? emulateTransitionEnd(modal, triggerShow) : triggerShow();
}, supportTransitions && overlay ? overlayDelay : 0);
addClass(DOC[body],component+'-open');
addClass(modal,inClass);
modal[setAttribute](ariaHidden, false);
hasClass(modal,'fade') ? emulateTransitionEnd(modal, triggerShow) : triggerShow();
}, supportTransitions && overlay && overlayDelay ? overlayDelay : 1);
},1);
};
this.hide = function() {
bootstrapCustomEvent.call(modal, hideEvent, component);
overlay = queryElement('.'+modalBackdropString);
overlayDelay = overlay && getTransitionDurationFromElement(overlay);
if ( modal[isAnimating] || !hasClass(modal,inClass) ) {return}
removeClass(modal,inClass);
modal[setAttribute](ariaHidden, true);
clearTimeout(modalTimer);
modalTimer = setTimeout(function(){
modal[isAnimating] = true;
bootstrapCustomEvent.call(modal, hideEvent, component);
overlay = queryElement('.'+modalBackdropString);
overlayDelay = overlay && getTransitionDurationFromElement(overlay);
setTimeout(function(){
hasClass(modal,'fade') ? emulateTransitionEnd(modal, triggerHide) : triggerHide();
}, supportTransitions && overlay ? overlayDelay : 0);
removeClass(modal,inClass);
modal[setAttribute](ariaHidden, true);
setTimeout(function(){
hasClass(modal,'fade') ? emulateTransitionEnd(modal, triggerHide) : triggerHide();
}, supportTransitions && overlay && overlayDelay ? overlayDelay : 2);
},2)
};

@@ -234,0 +238,0 @@ this.setContent = function( content ) {

@@ -81,4 +81,6 @@

createPopover = function() {
titleString = element[getAttribute](dataTitle); // check content again
contentString = element[getAttribute](dataContent);
titleString = options.title || element[getAttribute](dataTitle);
contentString = options.content || element[getAttribute](dataContent);
// fixing https://github.com/thednp/bootstrap.native/issues/233
contentString = !!contentString ? contentString.replace(/^\s+|\s+$/g, '') : null;

@@ -108,2 +110,3 @@ popover = DOC[createElement](div);

var popoverTemplate = DOC[createElement](div);
self[template] = self[template].replace(/^\s+|\s+$/g, '');
popoverTemplate[innerHTML] = self[template];

@@ -131,3 +134,3 @@ popover[innerHTML] = popoverTemplate.firstChild[innerHTML];

self[dismissible] && type( DOC, clickEvent, dismissibleHandler );
!isIE8 && type( globalObject, resizeEvent, self.hide );
!isIE8 && type( globalObject, resizeEvent, self.hide, passiveHandler );
},

@@ -134,0 +137,0 @@

@@ -87,5 +87,5 @@

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

@@ -92,0 +92,0 @@ element[stringScrollSpy] = self;

@@ -75,3 +75,3 @@

if ( hasClass(nextContent, 'fade') ) {
setTimeout(function(){ // makes sure to go forward
setTimeout(function(){
addClass(nextContent,inClass);

@@ -78,0 +78,0 @@ emulateTransitionEnd(nextContent,triggerShow);

@@ -86,6 +86,6 @@

bootstrapCustomEvent.call(element, shownEvent, component);
!isIE8 && on( globalObject, resizeEvent, self.hide );
!isIE8 && on( globalObject, resizeEvent, self.hide, passiveHandler );
},
hideTrigger = function() {
!isIE8 && off( globalObject, resizeEvent, self.hide );
!isIE8 && off( globalObject, resizeEvent, self.hide, passiveHandler );
removeToolTip();

@@ -92,0 +92,0 @@ bootstrapCustomEvent.call(element, hiddenEvent, component);

@@ -73,7 +73,11 @@

clickEvent = 'click',
focusEvent = 'focus',
hoverEvent = 'hover',
keydownEvent = 'keydown',
keyupEvent = 'keyup',
resizeEvent = 'resize',
scrollEvent = 'scroll',
resizeEvent = 'resize', // passive
scrollEvent = 'scroll', // passive
mouseHover = ('onmouseleave' in DOC) ? [ 'mouseenter', 'mouseleave'] : [ 'mouseover', 'mouseout' ],
// touch since 2.0.26
touchEvents = { start: 'touchstart', end: 'touchend', move:'touchmove' }, // passive
// originalEvents

@@ -130,3 +134,2 @@ showEvent = 'show',

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

@@ -144,5 +147,2 @@

// touch since 2.0.26
touchEvents = { start: 'touchstart', end: 'touchend', move:'touchmove' },
// set new focus element since 2.0.3

@@ -193,14 +193,35 @@ setFocus = function(element){

// event attach jQuery style / trigger since 1.2.0
on = function (element, event, handler) {
element.addEventListener(event, handler, false);
on = function (element, event, handler, options) {
options = options || false;
element.addEventListener(event, handler, options);
},
off = function(element, event, handler) {
element.removeEventListener(event, handler, false);
off = function(element, event, handler, options) {
options = options || false;
element.removeEventListener(event, handler, options);
},
one = function (element, event, handler) { // one since 2.0.4
one = function (element, event, handler, options) { // one since 2.0.4
on(element, event, function handlerWrapper(e){
handler(e);
off(element, event, handlerWrapper);
});
off(element, event, handlerWrapper, options);
}, options);
},
// determine support for passive events
supportPassive = (function(){
// Test via a getter in the options object to see if the passive property is accessed
var result = false;
try {
var opts = Object.defineProperty({}, 'passive', {
get: function() {
result = true;
}
});
one(globalObject, 'testPassive', null, opts);
} catch (e) {}
return result;
}()),
// event options
// https://github.com/WICG/EventListenerOptions/blob/gh-pages/explainer.md#feature-detection
passiveHandler = supportPassive ? { passive: true } : false,
// transitions
getTransitionDurationFromElement = function(element) {

@@ -207,0 +228,0 @@ var duration = supportTransitions ? globalObject[getComputedStyle](element)[transitionDuration] : 0;

@@ -18,3 +18,2 @@

checked = 'checked',
reset = 'reset',
LABEL = 'LABEL',

@@ -37,7 +36,6 @@ INPUT = 'INPUT',

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

@@ -66,4 +64,6 @@ // manage the dom manipulation

if ( input.type === 'radio' && !toggled ) { // radio buttons
if ( !input[checked] ) { // don't trigger if already active
// don't trigger if already active (the OR condition is a hack to check if the buttons were selected with key press and NOT mouse click)
if ( !input[checked] || (e.screenX === 0 && e.screenY == 0) ) {
addClass(label,active);
addClass(label,focusEvent);
input[setAttribute](checked,checked);

@@ -87,2 +87,8 @@ input[checked] = true;

setTimeout( function() { toggled = false; }, 50 );
},
focusHandler = function(e) {
addClass(e[target][parentNode],focusEvent);
},
blurHandler = function(e) {
removeClass(e[target][parentNode],focusEvent);
};

@@ -93,4 +99,9 @@

on( element, clickEvent, toggle );
queryElement('['+tabindex+']',element) && on( element, keyupEvent, keyHandler ),
on( element, keydownEvent, preventScroll );
on( element, keyupEvent, keyHandler ), on( element, keydownEvent, preventScroll );
var allBtns = getElementsByClassName(element, 'btn');
for (var i=0; i<allBtns.length; i++) {
var input = allBtns[i][getElementsByTagName](INPUT)[0];
on( input, focusEvent, focusHandler), on( input, 'blur', blurHandler);
}
}

@@ -97,0 +108,0 @@

@@ -106,5 +106,5 @@

toggleTouchEvents = function(toggle){
toggle( element, touchEvents.move, touchMoveHandler );
toggle( element, touchEvents.end, touchEndHandler );
},
toggle( element, touchEvents.move, touchMoveHandler, passiveHandler );
toggle( element, touchEvents.end, touchEndHandler, passiveHandler );
},
touchDownHandler = function(e) {

@@ -259,7 +259,7 @@ if ( isTouch ) { return; }

on( element, mouseHover[1], resumeHandler );
on( element, touchEvents.start, pauseHandler );
on( element, touchEvents.end, resumeHandler );
}
on( element, touchEvents.start, pauseHandler, passiveHandler );
on( element, touchEvents.end, resumeHandler, passiveHandler );
}
slides[length] > 1 && on( element, touchEvents.start, touchDownHandler );
slides[length] > 1 && on( element, touchEvents.start, touchDownHandler, passiveHandler );

@@ -270,3 +270,4 @@ rightArrow && on( rightArrow, clickEvent, controlsHandler );

indicator && on( indicator, clickEvent, indicatorHandler );
self[keyboard] === true && on( globalObject, keydownEvent, keyHandler );
self[keyboard] && on( globalObject, keydownEvent, keyHandler );
}

@@ -273,0 +274,0 @@ if (self.getActiveIndex()<0) {

@@ -42,2 +42,3 @@

type(DOC, keyupEvent, keyHandler);
type(DOC, focusEvent, dismissHandler, true);
},

@@ -47,3 +48,8 @@

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

@@ -73,3 +79,3 @@ else {

if ( isMenuItem || isSameElement ) { // navigate up | down
if ( isMenuItem ) { // navigate up | down
idx = isSameElement ? 0

@@ -76,0 +82,0 @@ : key === 38 ? (idx>1?idx-1:0)

@@ -18,7 +18,8 @@

modalBackdropString = 'modal-backdrop',
isAnimating = 'isAnimating',
// determine modal, triggering element
btnCheck = element[getAttribute](dataTarget)||element[getAttribute]('href'),
checkModal = queryElement( btnCheck ),
modal = hasClass(element,component) ? element : checkModal;
modal = hasClass(element,component) ? element : checkModal;
if ( hasClass(element, component) ) { element = null; } // modal is now independent of it's triggering element

@@ -34,7 +35,11 @@

this[backdrop] = options[backdrop] === false || modal[getAttribute](databackdrop) === 'false' ? false : this[backdrop];
this[animation] = hasClass(modal, 'fade') ? true : false;
this[content] = options[content]; // JavaScript only
// set an initial state of the modal
modal[isAnimating] = false;
// bind, constants, event targets and other vars
var self = this, relatedTarget = null,
bodyIsOverflowing, scrollBarWidth, overlay, overlayDelay,
bodyIsOverflowing, scrollBarWidth, overlay, overlayDelay, modalTimer,

@@ -85,4 +90,2 @@ // also find fixed-top / fixed-bottom items

createOverlay = function() {
modalOverlay = 1;
var newOverlay = DOC[createElement]('div');

@@ -92,6 +95,7 @@ overlay = queryElement('.'+modalBackdropString);

if ( overlay === null ) {
newOverlay[setAttribute]('class',modalBackdropString+' fade');
newOverlay[setAttribute]('class', modalBackdropString + (self[animation] ? ' fade' : ''));
overlay = newOverlay;
DOC[body][appendChild](overlay);
}
modalOverlay = 1;
},

@@ -101,35 +105,15 @@ removeOverlay = function() {

if ( overlay && overlay !== null && typeof overlay === 'object' ) {
modalOverlay = 0;
modalOverlay = 0;
DOC[body].removeChild(overlay); overlay = null;
}
bootstrapCustomEvent.call(modal, hiddenEvent, component);
},
keydownHandlerToggle = function() {
if (hasClass(modal,showClass)) {
on(DOC, keydownEvent, keyHandler);
} else {
off(DOC, keydownEvent, keyHandler);
}
},
resizeHandlerToggle = function() {
if (hasClass(modal,showClass)) {
on(globalObject, resizeEvent, self.update);
} else {
off(globalObject, resizeEvent, self.update);
}
},
dismissHandlerToggle = function() {
if (hasClass(modal,showClass)) {
on(modal, clickEvent, dismissHandler);
} else {
off(modal, clickEvent, dismissHandler);
}
},
// triggers
triggerShow = function() {
resizeHandlerToggle();
dismissHandlerToggle();
keydownHandlerToggle();
setFocus(modal);
modal[isAnimating] = false;
bootstrapCustomEvent.call(modal, shownEvent, component, relatedTarget);
on(globalObject, resizeEvent, self.update, passiveHandler);
on(modal, clickEvent, dismissHandler);
on(DOC, keydownEvent, keyHandler);
},

@@ -139,3 +123,4 @@ triggerHide = function() {

element && (setFocus(element));
bootstrapCustomEvent.call(modal, hiddenEvent, component);
(function(){

@@ -145,13 +130,16 @@ if (!getElementsByClassName(DOC,component+' '+showClass)[0]) {

removeClass(DOC[body],component+'-open');
overlay && hasClass(overlay,'fade') ? (removeClass(overlay,showClass), emulateTransitionEnd(overlay,removeOverlay))
overlay && hasClass(overlay,'fade') ? (removeClass(overlay,showClass), emulateTransitionEnd(overlay,removeOverlay))
: removeOverlay();
resizeHandlerToggle();
dismissHandlerToggle();
keydownHandlerToggle();
off(globalObject, resizeEvent, self.update, passiveHandler);
off(modal, clickEvent, dismissHandler);
off(DOC, keydownEvent, keyHandler);
}
}());
modal[isAnimating] = false;
},
// handlers
clickHandler = function(e) {
if ( modal[isAnimating] ) return;
var clickTarget = e[target];

@@ -167,3 +155,5 @@ clickTarget = clickTarget[hasAttribute](dataTarget) || clickTarget[hasAttribute]('href') ? clickTarget : clickTarget[parentNode];

keyHandler = function(e) {
if (self[keyboard] && e.which == 27 && hasClass(modal,showClass)) {
if ( modal[isAnimating] ) return;
if (self[keyboard] && e.which == 27 && hasClass(modal,showClass) ) {
self.hide();

@@ -173,6 +163,8 @@ }

dismissHandler = function(e) {
if ( modal[isAnimating] ) return;
var clickTarget = e[target];
if ( hasClass(modal,showClass) && (clickTarget[parentNode][getAttribute](dataDismiss) === component
if ( hasClass(modal,showClass) && ( clickTarget[parentNode][getAttribute](dataDismiss) === component
|| clickTarget[getAttribute](dataDismiss) === component
|| (clickTarget === modal && self[backdrop] !== staticString) ) ) {
|| clickTarget === modal && self[backdrop] !== staticString ) ) {
self.hide(); relatedTarget = null;

@@ -188,45 +180,57 @@ e[preventDefault]();

this.show = function() {
bootstrapCustomEvent.call(modal, showEvent, component, relatedTarget);
if ( hasClass(modal,showClass) || modal[isAnimating] ) {return}
// we elegantly hide any opened modal
var currentOpen = getElementsByClassName(DOC,component+' '+showClass)[0];
if (currentOpen && currentOpen !== modal) {
modalTrigger in currentOpen && currentOpen[modalTrigger][stringModal].hide();
stringModal in currentOpen && currentOpen[stringModal].hide();
}
clearTimeout(modalTimer);
modalTimer = setTimeout(function(){
modal[isAnimating] = true;
bootstrapCustomEvent.call(modal, showEvent, component, relatedTarget);
if ( this[backdrop] ) {
!modalOverlay && createOverlay();
}
// we elegantly hide any opened modal
var currentOpen = getElementsByClassName(DOC,component+' '+showClass)[0];
if (currentOpen && currentOpen !== modal) {
modalTrigger in currentOpen && currentOpen[modalTrigger][stringModal].hide();
stringModal in currentOpen && currentOpen[stringModal].hide();
}
if ( overlay && modalOverlay && !hasClass(overlay,showClass)) {
overlay[offsetWidth]; // force reflow to enable trasition
overlayDelay = getTransitionDurationFromElement(overlay);
addClass(overlay, showClass);
}
if ( self[backdrop] ) {
!modalOverlay && !overlay && createOverlay();
}
setTimeout( function() {
modal[style].display = 'block';
if ( overlay && !hasClass(overlay,showClass) ) {
overlay[offsetWidth]; // force reflow to enable trasition
overlayDelay = getTransitionDurationFromElement(overlay);
addClass(overlay, showClass);
}
checkScrollbar();
setScrollbar();
setTimeout( function() {
modal[style].display = 'block';
addClass(DOC[body],component+'-open');
addClass(modal,showClass);
modal[setAttribute](ariaHidden, false);
checkScrollbar();
setScrollbar();
hasClass(modal,'fade') ? emulateTransitionEnd(modal, triggerShow) : triggerShow();
}, supportTransitions && overlay ? overlayDelay : 0);
addClass(DOC[body],component+'-open');
addClass(modal,showClass);
modal[setAttribute](ariaHidden, false);
hasClass(modal,'fade') ? emulateTransitionEnd(modal, triggerShow) : triggerShow();
}, supportTransitions && overlay && overlayDelay ? overlayDelay : 1);
},1);
};
this.hide = function() {
bootstrapCustomEvent.call(modal, hideEvent, component);
overlay = queryElement('.'+modalBackdropString);
overlayDelay = overlay && getTransitionDurationFromElement(overlay);
if ( modal[isAnimating] || !hasClass(modal,showClass) ) {return}
removeClass(modal,showClass);
modal[setAttribute](ariaHidden, true);
clearTimeout(modalTimer);
modalTimer = setTimeout(function(){
modal[isAnimating] = true;
bootstrapCustomEvent.call(modal, hideEvent, component);
overlay = queryElement('.'+modalBackdropString);
overlayDelay = overlay && getTransitionDurationFromElement(overlay);
setTimeout(function(){
hasClass(modal,'fade') ? emulateTransitionEnd(modal, triggerHide) : triggerHide();
}, supportTransitions && overlay ? overlayDelay : 0);
removeClass(modal,showClass);
modal[setAttribute](ariaHidden, true);
setTimeout(function(){
hasClass(modal,'fade') ? emulateTransitionEnd(modal, triggerHide) : triggerHide();
}, supportTransitions && overlay && overlayDelay ? overlayDelay : 2);
},2)
};

@@ -233,0 +237,0 @@ this.setContent = function( content ) {

@@ -60,4 +60,4 @@

var self = this,
titleString = element[getAttribute](dataTitle) || null,
contentString = element[getAttribute](dataContent) || null;
titleString = options.title || element[getAttribute](dataTitle) || null,
contentString = options.content || element[getAttribute](dataContent) || null;

@@ -82,4 +82,6 @@ if ( !contentString && !this[template] ) return; // invalidate

createPopover = function() {
titleString = options.title || element[getAttribute](dataTitle) || null,
contentString = options.content || element[getAttribute](dataContent) || null;
titleString = options.title || element[getAttribute](dataTitle);
contentString = options.content || element[getAttribute](dataContent);
// fixing https://github.com/thednp/bootstrap.native/issues/233
contentString = !!contentString ? contentString.trim() : null;

@@ -95,3 +97,3 @@ popover = DOC[createElement](div);

popover[setAttribute]('role','tooltip');
popover[setAttribute]('role','tooltip');

@@ -114,2 +116,3 @@ if (titleString !== null) {

var popoverTemplate = DOC[createElement](div);
self[template] = self[template].trim();
popoverTemplate[innerHTML] = self[template];

@@ -128,3 +131,3 @@ popover[innerHTML] = popoverTemplate.firstChild[innerHTML];

updatePopover = function() {
styleTip(element,popover,placementSetting,self[container]);
styleTip(element, popover, placementSetting, self[container]);
},

@@ -138,3 +141,3 @@

self[dismissible] && type( DOC, clickEvent, dismissibleHandler );
type( globalObject, resizeEvent, self.hide );
type( globalObject, resizeEvent, self.hide, passiveHandler );
},

@@ -141,0 +144,0 @@

@@ -18,4 +18,6 @@

options = options || {};
if ( !options[target] && !targetData ) { return; } // invalidate
// invalidate
if ( !options[target] && !targetData ) { return; }
// event targets, constants

@@ -87,4 +89,4 @@ var self = this, spyTarget = options[target] && queryElement(options[target]) || targetData,

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

@@ -91,0 +93,0 @@ self.refresh();

@@ -51,3 +51,3 @@

var self = this, timer = 0, placementSetting = this[placement], tooltip = null,
titleString = element[getAttribute](title) || element[getAttribute](dataTitle) || element[getAttribute](dataOriginalTitle);
titleString = element[getAttribute](title) || element[getAttribute](dataTitle) || element[getAttribute](dataOriginalTitle);

@@ -63,21 +63,25 @@ if ( !titleString || titleString == "" ) return; // invalidate

titleString = element[getAttribute](title) || element[getAttribute](dataTitle) || element[getAttribute](dataOriginalTitle); // read the title again
if ( !titleString || titleString == "" ) return false; // invalidate
tooltip = DOC[createElement](div);
tooltip[setAttribute]('role',component);
// tooltip arrow
var tooltipArrow = DOC[createElement](div);
tooltipArrow[setAttribute](classString,'arrow');
tooltip[appendChild](tooltipArrow);
var tooltipInner = DOC[createElement](div);
tooltipInner[setAttribute](classString,component+'-inner');
tooltip[appendChild](tooltipInner);
tooltipInner[innerHTML] = titleString;
if ( titleString && titleString !== "" ) { // invalidate, maybe markup changed
tooltip = DOC[createElement](div);
tooltip[setAttribute]('role',component);
tooltip[style][left] = '0';
tooltip[style][top] = '0';
self[container][appendChild](tooltip);
tooltip[setAttribute](classString, component + ' bs-' + component+'-'+placementSetting + ' ' + self[animation]);
// tooltip arrow
var tooltipArrow = DOC[createElement](div);
tooltipArrow[setAttribute](classString,'arrow');
tooltip[appendChild](tooltipArrow);
var tooltipInner = DOC[createElement](div);
tooltipInner[setAttribute](classString,component+'-inner');
tooltip[appendChild](tooltipInner);
tooltipInner[innerHTML] = titleString;
self[container][appendChild](tooltip);
tooltip[setAttribute](classString, component + ' bs-' + component+'-'+placementSetting + ' ' + self[animation]);
}
},
updateTooltip = function () {
styleTip(element,tooltip,placementSetting,self[container]);
styleTip(element, tooltip, placementSetting, self[container]);
},

@@ -89,7 +93,7 @@ showTooltip = function () {

showTrigger = function() {
on( globalObject, resizeEvent, self.hide );
on( globalObject, resizeEvent, self.hide, passiveHandler );
bootstrapCustomEvent.call(element, shownEvent, component);
},
hideTrigger = function() {
off( globalObject, resizeEvent, self.hide );
off( globalObject, resizeEvent, self.hide, passiveHandler );
removeToolTip();

@@ -105,7 +109,9 @@ bootstrapCustomEvent.call(element, hiddenEvent, component);

placementSetting = self[placement]; // we reset placement in all cases
if(createToolTip() == false) return;
updateTooltip();
showTooltip();
bootstrapCustomEvent.call(element, showEvent, component);
!!self[animation] ? emulateTransitionEnd(tooltip, showTrigger) : showTrigger();
// if(createToolTip() == false) return;
if(createToolTip() !== false) {
updateTooltip();
showTooltip();
bootstrapCustomEvent.call(element, showEvent, component);
!!self[animation] ? emulateTransitionEnd(tooltip, showTrigger) : showTrigger();
}
}

@@ -112,0 +118,0 @@ }, 20 );

@@ -63,3 +63,4 @@

innerWidth = 'innerWidth', innerHeight = 'innerHeight',
scrollHeight = 'scrollHeight', height = 'height',
scrollHeight = 'scrollHeight', scrollWidth = 'scrollWidth',
height = 'height',

@@ -73,7 +74,11 @@ // aria

clickEvent = 'click',
focusEvent = 'focus',
hoverEvent = 'hover',
keydownEvent = 'keydown',
keyupEvent = 'keyup',
resizeEvent = 'resize',
scrollEvent = 'scroll',
resizeEvent = 'resize', // passive
scrollEvent = 'scroll', // passive
mouseHover = ('onmouseleave' in DOC) ? [ 'mouseenter', 'mouseleave'] : [ 'mouseover', 'mouseout' ],
// touch since 2.0.26
touchEvents = { start: 'touchstart', end: 'touchend', move:'touchmove' }, // passive
// originalEvents

@@ -127,3 +132,2 @@ showEvent = 'show',

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

@@ -141,5 +145,2 @@

// touch since 2.0.26
touchEvents = { start: 'touchstart', end: 'touchend', move:'touchmove' },
// set new focus element since 2.0.3

@@ -185,14 +186,35 @@ setFocus = function(element){

// event attach jQuery style / trigger since 1.2.0
on = function (element, event, handler) {
element.addEventListener(event, handler, false);
on = function (element, event, handler, options) {
options = options || false;
element.addEventListener(event, handler, options);
},
off = function(element, event, handler) {
element.removeEventListener(event, handler, false);
off = function(element, event, handler, options) {
options = options || false;
element.removeEventListener(event, handler, options);
},
one = function (element, event, handler) { // one since 2.0.4
one = function (element, event, handler, options) { // one since 2.0.4
on(element, event, function handlerWrapper(e){
handler(e);
off(element, event, handlerWrapper);
});
off(element, event, handlerWrapper, options);
}, options);
},
// determine support for passive events
supportPassive = (function(){
// Test via a getter in the options object to see if the passive property is accessed
var result = false;
try {
var opts = Object.defineProperty({}, 'passive', {
get: function() {
result = true;
}
});
one(globalObject, 'testPassive', null, opts);
} catch (e) {}
return result;
}()),
// event options
// https://github.com/WICG/EventListenerOptions/blob/gh-pages/explainer.md#feature-detection
passiveHandler = supportPassive ? { passive: true } : false,
// transitions
getTransitionDurationFromElement = function(element) {

@@ -291,3 +313,3 @@ var duration = supportTransitions ? globalObject[getComputedStyle](element)[transitionDuration] : 0;

leftPosition = rect[left] + scroll.x - elementDimensions.w/2 + linkDimensions.w/2;
arrowLeft = elementDimensions.w/2 - arrowWidth/2;
arrowLeft = elementDimensions.w/2 - ( isPopover ? arrowWidth : arrowWidth/2 );
}

@@ -294,0 +316,0 @@ }

{
"name": "bootstrap.native",
"version": "2.0.26",
"version": "2.0.27",
"description": "Native JavaScript for Bootstrap, the sweetest JavaScript library without jQuery.",

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

@@ -9,3 +9,3 @@ # Native JavaScript for Bootstrap

The library is under ***20Kb*** minified and ***6.5Kb*** gZipped. See <a href="http://thednp.github.io/bootstrap.native/">demo</a> for scripting examples and instructions.
The library is around ***20Kb*** minified and ***6.5Kb*** gZipped. See <a href="http://thednp.github.io/bootstrap.native/">demo</a> for scripting examples and instructions.

@@ -15,3 +15,3 @@ If you use webpack, here is the accompanying [webpack loader](https://github.com/jonathanfleckenstein/bootstrap.native-loader).

# Wiki
Please take a minute to check the `bootstrap.native` Wiki pages, they're updated with every new commit:
Please check the `bootstrap.native` Wiki pages, they're updated with every new commit:
* [Acknowledgements](https://github.com/thednp/bootstrap.native/wiki/Acknowledgements) - A quick note on some of the similarities and differences with the original jQuery plugins. Nothing to worry about, but still good to know all the tricks on how to maximize your workflow.

@@ -18,0 +18,0 @@ * [How to use](https://github.com/thednp/bootstrap.native/wiki/How-to-use) - An in depth guide on how to use it with stuff like `npm`, `RequireJS` or `CDN` links.

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