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

bootstrap.native

Package Overview
Dependencies
Maintainers
1
Versions
101
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bootstrap.native - npm Package Compare versions

Comparing version 2.0.22 to 2.0.23

2

build-module-v4.js

@@ -89,3 +89,3 @@ var fs = require('fs');

var utils = fs.readFileSync(`${libPath}/V4/utils.js`, 'utf8').split('\n').join('\n ');
var init = fs.readFileSync(`${libPath}/V4/utils-init.js`, 'utf8').split('\n').join('\n ');
var init = options.autoInitDataAPI === false ? '' : options.noInitDataAPI ? '' : fs.readFileSync(`${libPath}/V4/utils-init.js`, 'utf8').split('\n').join('\n ');
main = main.split('\n').join('\n ');

@@ -92,0 +92,0 @@ // Initialize arrays:

@@ -89,3 +89,3 @@ var fs = require('fs');

var utils = fs.readFileSync(`${libPath}/V3/utils.js`, 'utf8').split('\n').join('\n ');
var init = fs.readFileSync(`${libPath}/V3/utils-init.js`, 'utf8').split('\n').join('\n ');
var init = options.autoInitDataAPI === false ? '' : fs.readFileSync(`${libPath}/V3/utils-init.js`, 'utf8').split('\n').join('\n ');
main = main.split('\n').join('\n ');

@@ -92,0 +92,0 @@ // Initialize arrays:

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

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

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

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

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

intervalOption = options[interval],
intervalData = intervalAttribute === 'false' ? 0 : parseInt(intervalAttribute) || 5000, // bootstrap carousel default interval
intervalData = intervalAttribute === 'false' ? 0 : parseInt(intervalAttribute),
pauseData = element[getAttribute](dataPause) === hoverEvent || false,

@@ -33,4 +33,4 @@ keyboardData = element[getAttribute](dataKeyboard) === 'true' || false,

this[interval] = typeof intervalOption === 'number' ? intervalOption
: intervalData === 0 ? 0
: intervalData;
: intervalOption === false || intervalData === 0 || intervalData === false ? 0
: 5000; // bootstrap carousel default interval

@@ -153,5 +153,5 @@ // bind, event targets

one(slides[activeItem], transitionEndEvent, function(e) {
var timeout = e[target] !== slides[activeItem] ? e.elapsedTime*1000 : 0;
setTimeout(function(){
one(slides[next], transitionEndEvent, function(e) {
var timeout = e[target] !== slides[next] ? e.elapsedTime*1000+100 : 20;
isSliding && setTimeout(function(){
isSliding = false;

@@ -171,3 +171,3 @@

}
},timeout+100);
}, timeout);
});

@@ -174,0 +174,0 @@

@@ -17,4 +17,4 @@

var accordion = null, collapse = null, self = this,
isAnimating = false, // when true it will prevent click handlers
accordionData = element[getAttribute]('data-parent'),
activeCollapse, activeElement,

@@ -24,2 +24,3 @@ // component strings

collapsed = 'collapsed',
isAnimating = 'isAnimating',

@@ -29,3 +30,3 @@ // private methods

bootstrapCustomEvent.call(collapseElement, showEvent, component);
isAnimating = true;
collapseElement[isAnimating] = true;
addClass(collapseElement,collapsing);

@@ -36,3 +37,3 @@ removeClass(collapseElement,component);

emulateTransitionEnd(collapseElement, function() {
isAnimating = false;
collapseElement[isAnimating] = false;
collapseElement[setAttribute](ariaExpanded,'true');

@@ -49,3 +50,3 @@ toggle[setAttribute](ariaExpanded,'true');

bootstrapCustomEvent.call(collapseElement, hideEvent, component);
isAnimating = true;
collapseElement[isAnimating] = true;
collapseElement[style][height] = collapseElement[scrollHeight] + 'px'; // set height first

@@ -59,3 +60,3 @@ removeClass(collapseElement,component);

emulateTransitionEnd(collapseElement, function() {
isAnimating = false;
collapseElement[isAnimating] = false;
collapseElement[setAttribute](ariaExpanded,'false');

@@ -79,3 +80,2 @@ toggle[setAttribute](ariaExpanded,'false');

e[preventDefault]();
if ( isAnimating ) return;
if (!hasClass(collapse,inClass)) { self.show(); }

@@ -85,2 +85,3 @@ else { self.hide(); }

this.hide = function() {
if ( collapse[isAnimating] ) return;
closeAction(collapse,element);

@@ -91,15 +92,15 @@ addClass(element,collapsed);

if ( accordion ) {
var activeCollapse = queryElement('.'+component+'.'+inClass,accordion),
toggle = activeCollapse && (queryElement('['+dataToggle+'="'+component+'"]['+dataTarget+'="#'+activeCollapse.id+'"]',accordion)
|| queryElement('['+dataToggle+'="'+component+'"][href="#'+activeCollapse.id+'"]',accordion) ),
correspondingCollapse = toggle && (toggle[getAttribute](dataTarget) || toggle.href);
if ( activeCollapse && toggle && activeCollapse !== collapse ) {
closeAction(activeCollapse,toggle);
if ( correspondingCollapse.split('#')[1] !== collapse.id ) { addClass(toggle,collapsed); }
else { removeClass(toggle,collapsed); }
activeCollapse = queryElement('.'+component+'.'+inClass,accordion);
activeElement = activeCollapse && (queryElement('['+dataToggle+'="'+component+'"]['+dataTarget+'="#'+activeCollapse.id+'"]', accordion)
|| queryElement('['+dataToggle+'="'+component+'"][href="#'+activeCollapse.id+'"]',accordion) );
}
if ( !collapse[isAnimating] || activeCollapse && !activeCollapse[isAnimating] ) {
if ( activeElement && activeCollapse !== collapse ) {
closeAction(activeCollapse,activeElement);
addClass(activeElement,collapsed);
}
openAction(collapse,element);
removeClass(element,collapsed);
}
openAction(collapse,element);
removeClass(element,collapsed);
};

@@ -112,2 +113,3 @@

collapse = getTarget();
collapse[isAnimating] = false; // when true it will prevent click handlers
accordion = queryElement(options.parent) || accordionData && getClosest(element, accordionData);

@@ -114,0 +116,0 @@ element[stringCollapse] = self;

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

modal = hasClass(element,'modal') ? element : checkModal,
overlayDelay,

@@ -50,3 +51,3 @@ // strings

setScrollbar = function () {
var bodyStyle = DOC[body].currentStyle || globalObject.getComputedStyle(DOC[body]),
var bodyStyle = DOC[body].currentStyle || globalObject[getComputedStyle](DOC[body]),
bodyPad = parseInt((bodyStyle[paddingRight]), 10), itemPad;

@@ -57,3 +58,3 @@ if (bodyIsOverflowing) {

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

@@ -201,6 +202,7 @@ }

overlay[offsetWidth]; // force reflow to enable trasition
overlayDelay = getTransitionDurationFromElement(overlay);
addClass(overlay,inClass);
}
(function() {
setTimeout(function() {
modal[style].display = 'block';

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

hasClass(modal,'fade') ? emulateTransitionEnd(modal, triggerShow) : triggerShow();
}());
}, supportTransitions && overlay ? overlayDelay : 0);
};

@@ -227,2 +229,3 @@ this.hide = function() {

overlay = queryElement('.'+modalBackdropString);
overlayDelay = overlay && getTransitionDurationFromElement(overlay);

@@ -234,3 +237,3 @@ removeClass(modal,inClass);

hasClass(modal,'fade') ? emulateTransitionEnd(modal, triggerHide) : triggerHide();
}, supportTransitions ? 150 : 0);
}, supportTransitions && overlay ? overlayDelay : 0);
};

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

@@ -44,3 +44,3 @@

emulateTransitionEnd(tabsContentContainer, triggerEnd);
},1);
},50);
}

@@ -47,0 +47,0 @@ } else {

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

getElementsByCLASSNAME = 'getElementsByClassName',
getComputedStyle = 'getComputedStyle',

@@ -108,2 +109,3 @@ indexOf = 'indexOf',

Transition = 'Transition',
Duration = 'Duration',
Webkit = 'Webkit',

@@ -140,2 +142,3 @@ style = 'style',

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

@@ -199,5 +202,12 @@ // set new focus element since 2.0.3

},
getTransitionDurationFromElement = function(element) {
var duration = globalObject[getComputedStyle](element)[transitionDuration];
duration = parseFloat(duration);
duration = typeof duration === 'number' && !isNaN(duration) ? duration * 1000 : 0;
return duration + 50; // we take a short offset to make sure we fire on the next frame after animation
},
emulateTransitionEnd = function(element,handler){ // emulateTransitionEnd since 2.0.4
if (supportTransitions) { one(element, transitionEndEvent, function(e){ handler(e); }); }
else { handler(); }
var called = 0, duration = getTransitionDurationFromElement(element);
supportTransitions && one(element, transitionEndEvent, function(e){ handler(e); called = 1; });
setTimeout(function() { !called && handler(); }, duration);
},

@@ -204,0 +214,0 @@ bootstrapCustomEvent = function (eventName, componentName, related) {

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

intervalOption = options[interval],
intervalData = intervalAttribute === 'false' ? 0 : parseInt(intervalAttribute) || 5000, // bootstrap carousel default interval
intervalData = intervalAttribute === 'false' ? 0 : parseInt(intervalAttribute),
pauseData = element[getAttribute](dataPause) === hoverEvent || false,

@@ -34,4 +34,4 @@ keyboardData = element[getAttribute](dataKeyboard) === 'true' || false,

this[interval] = typeof intervalOption === 'number' ? intervalOption
: intervalData === 0 ? 0
: intervalData;
: intervalOption === false || intervalData === 0 || intervalData === false ? 0
: 5000; // bootstrap carousel default interval

@@ -155,6 +155,6 @@ // bind, event targets

one(slides[activeItem], transitionEndEvent, function(e) {
var timeout = e[target] !== slides[activeItem] ? e.elapsedTime*1000 : 0;
one(slides[next], transitionEndEvent, function(e) {
var timeout = e[target] !== slides[next] ? e.elapsedTime*1000+100 : 20;
setTimeout(function(){
isSliding && setTimeout(function(){
isSliding = false;

@@ -174,3 +174,3 @@

}
},timeout+100);
}, timeout);
});

@@ -177,0 +177,0 @@

@@ -17,4 +17,4 @@

var accordion = null, collapse = null, self = this,
isAnimating = false, // when true it will prevent click handlers
accordionData = element[getAttribute]('data-parent'),
activeCollapse, activeElement,

@@ -24,2 +24,3 @@ // component strings

collapsed = 'collapsed',
isAnimating = 'isAnimating',

@@ -29,3 +30,3 @@ // private methods

bootstrapCustomEvent.call(collapseElement, showEvent, component);
isAnimating = true;
collapseElement[isAnimating] = true;
addClass(collapseElement,collapsing);

@@ -36,3 +37,3 @@ removeClass(collapseElement,component);

emulateTransitionEnd(collapseElement, function() {
isAnimating = false;
collapseElement[isAnimating] = false;
collapseElement[setAttribute](ariaExpanded,'true');

@@ -49,3 +50,3 @@ toggle[setAttribute](ariaExpanded,'true');

bootstrapCustomEvent.call(collapseElement, hideEvent, component);
isAnimating = true;
collapseElement[isAnimating] = true;
collapseElement[style][height] = collapseElement[scrollHeight] + 'px'; // set height first

@@ -59,3 +60,3 @@ removeClass(collapseElement,component);

emulateTransitionEnd(collapseElement, function() {
isAnimating = false;
collapseElement[isAnimating] = false;
collapseElement[setAttribute](ariaExpanded,'false');

@@ -79,3 +80,2 @@ toggle[setAttribute](ariaExpanded,'false');

e[preventDefault]();
if (isAnimating) return;
if (!hasClass(collapse,showClass)) { self.show(); }

@@ -85,2 +85,3 @@ else { self.hide(); }

this.hide = function() {
if ( collapse[isAnimating] ) return;
closeAction(collapse,element);

@@ -91,15 +92,15 @@ addClass(element,collapsed);

if ( accordion ) {
var activeCollapse = queryElement('.'+component+'.'+showClass,accordion),
toggle = activeCollapse && (queryElement('['+dataToggle+'="'+component+'"]['+dataTarget+'="#'+activeCollapse.id+'"]',accordion)
|| queryElement('['+dataToggle+'="'+component+'"][href="#'+activeCollapse.id+'"]',accordion) ),
correspondingCollapse = toggle && (toggle[getAttribute](dataTarget) || toggle.href);
if ( activeCollapse && toggle && activeCollapse !== collapse ) {
closeAction(activeCollapse,toggle);
if ( correspondingCollapse.split('#')[1] !== collapse.id ) { addClass(toggle,collapsed); }
else { removeClass(toggle,collapsed); }
activeCollapse = queryElement('.'+component+'.'+showClass,accordion);
activeElement = activeCollapse && (queryElement('['+dataToggle+'="'+component+'"]['+dataTarget+'="#'+activeCollapse.id+'"]',accordion)
|| queryElement('['+dataToggle+'="'+component+'"][href="#'+activeCollapse.id+'"]',accordion) );
}
if ( !collapse[isAnimating] || activeCollapse && !activeCollapse[isAnimating] ) {
if ( activeElement && activeCollapse !== collapse ) {
closeAction(activeCollapse,activeElement);
addClass(activeElement,collapsed);
}
openAction(collapse,element);
removeClass(element,collapsed);
}
openAction(collapse,element);
removeClass(element,collapsed);
};

@@ -112,2 +113,3 @@

collapse = getTarget();
collapse[isAnimating] = false; // when true it will prevent click handlers
accordion = queryElement(options.parent) || accordionData && getClosest(element, accordionData);

@@ -114,0 +116,0 @@ element[stringCollapse] = self;

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

modal = hasClass(element,'modal') ? element : checkModal,
overlayDelay,

@@ -50,3 +51,3 @@ // strings

setScrollbar = function () {
var bodyStyle = globalObject.getComputedStyle(DOC[body]),
var bodyStyle = globalObject[getComputedStyle](DOC[body]),
bodyPad = parseInt((bodyStyle[paddingRight]), 10), itemPad;

@@ -57,3 +58,3 @@ if (bodyIsOverflowing) {

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

@@ -200,2 +201,3 @@ }

overlay[offsetWidth]; // force reflow to enable trasition
overlayDelay = getTransitionDurationFromElement(overlay);
addClass(overlay, showClass);

@@ -220,3 +222,3 @@ }

hasClass(modal,'fade') ? emulateTransitionEnd(modal, triggerShow) : triggerShow();
}, supportTransitions ? 150 : 0);
}, supportTransitions && overlay ? overlayDelay : 0);
};

@@ -226,2 +228,3 @@ this.hide = function() {

overlay = queryElement('.'+modalBackdropString);
overlayDelay = overlay && getTransitionDurationFromElement(overlay);

@@ -231,5 +234,5 @@ removeClass(modal,showClass);

(function(){
setTimeout(function(){
hasClass(modal,'fade') ? emulateTransitionEnd(modal, triggerHide) : triggerHide();
}());
}, supportTransitions && overlay ? overlayDelay : 0);
};

@@ -236,0 +239,0 @@ this.setContent = function( content ) {

@@ -44,3 +44,3 @@

emulateTransitionEnd(tabsContentContainer, triggerEnd);
},1);
},50);
}

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

activeContent[style][float] = '';
nextContent[style][float] = '';
nextContent[style][float] = '';
}

@@ -75,0 +75,0 @@

@@ -74,3 +74,3 @@

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

@@ -95,3 +95,3 @@ scrollEvent = 'scroll',

appendChild = 'appendChild',
innerHTML = 'innerHTML',
innerHTML = 'innerHTML',
getElementsByTagName = 'getElementsByTagName',

@@ -102,2 +102,3 @@ preventDefault = 'preventDefault',

getElementsByCLASSNAME = 'getElementsByClassName',
getComputedStyle = 'getComputedStyle',

@@ -109,2 +110,3 @@ indexOf = 'indexOf',

Transition = 'Transition',
Duration = 'Duration',
Webkit = 'Webkit',

@@ -129,3 +131,3 @@ style = 'style',

tipPositions = /\b(top|bottom|left|right)+/,
// modal

@@ -135,6 +137,7 @@ modalOverlay = 0,

fixedBottom = 'fixed-bottom',
// transitionEnd since 2.0.4
supportTransitions = Webkit+Transition in HTML[style] || Transition[toLowerCase]() in HTML[style],
transitionEndEvent = Webkit+Transition in HTML[style] ? Webkit[toLowerCase]()+Transition+'End' : Transition[toLowerCase]()+'end',
transitionDuration = Webkit+Duration in HTML[style] ? Webkit[toLowerCase]()+Transition+Duration : Transition[toLowerCase]()+Duration,

@@ -193,5 +196,12 @@ // set new focus element since 2.0.3

},
getTransitionDurationFromElement = function(element) {
var duration = globalObject[getComputedStyle](element)[transitionDuration];
duration = parseFloat(duration);
duration = typeof duration === 'number' && !isNaN(duration) ? duration * 1000 : 0;
return duration + 50; // we take a short offset to make sure we fire on the next frame after animation
},
emulateTransitionEnd = function(element,handler){ // emulateTransitionEnd since 2.0.4
if (supportTransitions) { one(element, transitionEndEvent, function(e){ handler(e); }); }
else { handler(); }
var called = 0, duration = getTransitionDurationFromElement(element);
supportTransitions && one(element, transitionEndEvent, function(e){ handler(e); called = 1; });
setTimeout(function() { !called && handler(); }, duration);
},

@@ -219,4 +229,4 @@ bootstrapCustomEvent = function (eventName, componentName, related) {

isPopover = hasClass(element,'popover'),
topPosition, leftPosition,
topPosition, leftPosition,
arrow = queryElement('.arrow',element),

@@ -240,3 +250,3 @@ arrowTop, arrowLeft, arrowWidth, arrowHeight,

position = position === right && rightExceed ? left : position;
// update tooltip/popover class

@@ -243,0 +253,0 @@ element.className[indexOf](position) === -1 && (element.className = element.className.replace(tipPositions,position));

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

@@ -12,3 +12,3 @@ "main": "dist/bootstrap-native.js",

"build-v4-min": "node build-v4.js -m > dist/bootstrap-native-v4.min.js",
"watch": "onchange \"lib/*\" -i -- npm run build"
"watch": "onchange \"lib/*/**\" -i -- npm run build && npm run build-v4"
},

@@ -15,0 +15,0 @@ "repository": {

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