From b66ce5452cda9577dc24bf13de05f84891678e3f Mon Sep 17 00:00:00 2001 From: thednp Date: Sat, 18 Mar 2017 04:12:43 +0200 Subject: [PATCH] Bump version. --- dist/bootstrap-native-v4.js | 14 +++++++------- dist/bootstrap-native-v4.min.js | 2 +- dist/bootstrap-native.js | 20 ++++++++++---------- dist/bootstrap-native.min.js | 4 ++-- 4 files changed, 20 insertions(+), 20 deletions(-) diff --git a/dist/bootstrap-native-v4.js b/dist/bootstrap-native-v4.js index 680b3140..a79fbd5f 100644 --- a/dist/bootstrap-native-v4.js +++ b/dist/bootstrap-native-v4.js @@ -128,8 +128,8 @@ bottom = 'bottom', // tooltip / popover - fixedTop = '.fixed-top', - fixedBottom = '.fixed-bottom', + fixedTop = 'fixed-top', + fixedBottom = 'fixed-bottom', mouseHover = ('onmouseleave' in document) ? [ 'mouseenter', 'mouseleave'] : [ 'mouseover', 'mouseout' ], tipPositions = /\b(top|bottom|left|top)+/, @@ -873,7 +873,7 @@ bodyIsOverflowing, modalIsOverflowing, scrollbarWidth, overlay, // also find fixed-top / fixed-bottom items - fixedItems = getElementsByClassName(doc,'fixed-top').concat(getElementsByClassName(doc,'fixed-bottom')), + fixedItems = getElementsByClassName(doc,fixedTop).concat(getElementsByClassName(doc,fixedBottom)), // private methods @@ -1120,8 +1120,8 @@ modal = getClosest(element,'.modal'), // maybe the element is inside a fixed navbar - navbarFixedTop = getClosest(element,fixedTop), - navbarFixedBottom = getClosest(element,fixedBottom); + navbarFixedTop = getClosest(element,'.'+fixedTop), + navbarFixedBottom = getClosest(element,'.'+fixedBottom); // set options options = options || {}; @@ -1516,8 +1516,8 @@ modal = getClosest(element,'.modal'), // maybe the element is inside a fixed navbar - navbarFixedTop = getClosest(element,fixedTop), - navbarFixedBottom = getClosest(element,fixedBottom); + navbarFixedTop = getClosest(element,'.'+fixedTop), + navbarFixedBottom = getClosest(element,'.'+fixedBottom); // set options options = options || {}; diff --git a/dist/bootstrap-native-v4.min.js b/dist/bootstrap-native-v4.min.js index 36dcb557..48d6963b 100644 --- a/dist/bootstrap-native-v4.min.js +++ b/dist/bootstrap-native-v4.min.js @@ -1,2 +1,2 @@ // Native Javascript for Bootstrap 4 v2.0.6 | © 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(){var t="undefined"!=typeof global?global:this||window,e=document.documentElement,n=document.body,i="data-toggle",o="data-dismiss",a="data-spy",l="data-ride",r="Alert",c="Button",u="Carousel",s="Collapse",d="Dropdown",f="Modal",h="Popover",p="ScrollSpy",m="Tab",v="Tooltip",g="data-backdrop",b="data-keyboard",T="data-target",x="data-interval",y="data-height",w="data-pause",C="data-original-title",I="data-dismissible",A="data-trigger",D="data-animation",L="data-container",E="data-placement",S="data-delay",k="backdrop",M="keyboard",B="delay",H="content",N="target",W="interval",F="pause",P="animation",$="placement",j="container",O="offsetTop",R="offsetLeft",q="scrollTop",z="scrollLeft",U="clientWidth",X="clientHeight",Y="offsetWidth",G="offsetHeight",J="innerWidth",K="innerHeight",Q="scrollHeight",V="height",Z="aria-expanded",_="aria-hidden",tt="click",et="hover",nt="keydown",it="resize",ot="scroll",at="show",lt="shown",rt="hide",ct="hidden",ut="close",st="closed",dt="slid",ft="slide",ht="change",pt="getAttribute",mt="setAttribute",vt="hasAttribute",gt="getElementsByTagName",bt="getBoundingClientRect",Tt="getElementsByClassName",xt="indexOf",yt="parentNode",wt="length",Ct="toLowerCase",It="Transition",At="Webkit",Dt="style",Lt="active",Et="show",St="collapsing",kt="left",Mt="right",Bt="top",Ht="bottom",Nt=".fixed-top",Wt=".fixed-bottom",Ft="onmouseleave"in document?["mouseenter","mouseleave"]:["mouseover","mouseout"],Pt=/\b(top|bottom|left|top)+/,$t=At+It in e[Dt]||It[Ct]()in e[Dt],jt=At+It in e[Dt]?At[Ct]()+It+"End":It[Ct]()+"end",Ot=function(t){t.focus?t.focus():t.setActive()},Rt=function(t,e){t.classList.add(e)},qt=function(t,e){t.classList.remove(e)},zt=function(t,e){return t.classList.contains(e)},Ut=function(t,e){return[].slice.call(t[Tt](e))},Xt=function(t,e){var n=e?e:document;return"object"==typeof t?t:n.querySelector(t)},Yt=function(t,e){for(var n=e.charAt(0);t&&t!==document;t=t[yt])if("."===n){if(null!==Xt(e,t[yt])&&zt(t,e.replace(".","")))return t}else if("#"===n&&t.id===e.substr(1))return t;return!1},Gt=function(t,e,n){t.addEventListener(e,n,!1)},Jt=function(t,e,n){t.removeEventListener(e,n,!1)},Kt=function(t,e,n){Gt(t,e,function i(o){n(o),Jt(t,e,i)})},Qt=function(t,e){$t?Kt(t,jt,function(t){e(t)}):e()},Vt=function(t,e,n){var i=new CustomEvent(t+".bs."+e);i.relatedTarget=n,this.dispatchEvent(i)},Zt=document[gt]("*"),_t=function(t,e,n,i){for(var o=i&&i[wt]?i:Zt,a=0;a-1||l===r)&&new e(o[a])}},te=/^\#(.)+$/,ee=function(e){var n=e&&t.getComputedStyle(e),i=/px/.test(n.borderTopWidth)?Math.round(n.borderTopWidth.replace("px","")):0,o=/px/.test(n.borderBottomWidth)?Math.round(n.borderBottomWidth.replace("px","")):0,a=/px/.test(n.marginTop)?Math.round(n.marginTop.replace("px","")):0,l=/px/.test(n.marginBottom)?Math.round(n.marginBottom.replace("px","")):0;return e[X]+parseInt(i)+parseInt(o)+parseInt(a)+parseInt(l)},ne=function(t){for(var e=0,n=0,i=t.children[wt];n=0&&i[kt]>=0&&i[Ht]<=(t[K]||e[X])&&i[Mt]<=(t[J]||e[U])},oe=function(){return{y:t.pageYOffset||e[q],x:t.pageXOffset||e[z]}},ae=function(t,e,i,o){var a=t[bt](),l=o===n?oe():{x:o[R]+o[z],y:o[O]+o[q]},r={w:a[Mt]-a[kt],h:a[Ht]-a[Bt]},c={w:e[Y],h:e[G]};i===Bt?(e[Dt][Bt]=a[Bt]+l.y-c.h+"px",e[Dt][kt]=a[kt]+l.x-c.w/2+r.w/2+"px"):i===Ht?(e[Dt][Bt]=a[Bt]+l.y+r.h+"px",e[Dt][kt]=a[kt]+l.x-c.w/2+r.w/2+"px"):i===kt?(e[Dt][Bt]=a[Bt]+l.y-c.h/2+r.h/2+"px",e[Dt][kt]=a[kt]+l.x-c.w+"px"):i===Mt&&(e[Dt][Bt]=a[Bt]+l.y-c.h/2+r.h/2+"px",e[Dt][kt]=a[kt]+l.x+r.w+"px"),e.className[xt](i)===-1&&(e.className=e.className.replace(Pt,i))},le=function(t){return t===Bt?Ht:t===Ht?Bt:t===kt?Mt:t===Mt?kt:t},re=function(t){t=Xt(t);var e=this,n="alert",i=Yt(t,"."+n),a=function(a){var l=a[N];l=l[vt](o)?l:l[yt],l&&l[vt](o)&&(i=Yt(l,"."+n),t=Xt("["+o+'="'+n+'"]',i),(t===l||t===l[yt])&&i&&e.close())},l=function(){Vt.call(i,st,n),Jt(t,tt,a),i[yt].removeChild(i)};this.close=function(){i&&t&&zt(i,Et)&&(Vt.call(i,ut,n),qt(i,Et),function(){i&&Qt(i,l)}())},r in t||Gt(t,tt,a),t[r]=this};_t(r,re,o);var ce=function(t){t=Xt(t);var e=!1,n="button",i="checked",o="LABEL",a="INPUT",l=function(l){var r=l[N][yt],c=l[N].tagName===o?l[N]:r.tagName===o?r:null;if(c){var u=this,s=Ut(u,"btn"),d=c[gt](a)[0];if(d){if("checkbox"===d.type&&(d[i]?(qt(c,Lt),d[pt](i),d.removeAttribute(i),d[i]=!1):(Rt(c,Lt),d[pt](i),d[mt](i,i),d[i]=!0),e||(e=!0,Vt.call(d,ht,n),Vt.call(t,ht,n))),"radio"===d.type&&!e&&!d[i]){Rt(c,Lt),d[mt](i,i),d[i]=!0,Vt.call(d,ht,n),Vt.call(t,ht,n),e=!0;for(var f=0,h=s[wt];fh||n===g-1&&0===h)&&(T=f[c]=Mt),f.slideTo(h)}},S=function(t){if(t.preventDefault(),!m){var e=t.currentTarget||t.srcElement;e===C?(h++,T=f[c]=kt,h===g-1?h=g-1:h===g&&(h=0)):e===y&&(h--,T=f[c]=Mt,0===h?h=0:h<0&&(h=g-1)),f.slideTo(h)}},k=function(t){if(!m){switch(t.which){case 39:h++,T=f[c]=kt,h==g-1?h=g-1:h==g&&(h=0);break;case 37:h--,T=f[c]=Mt,0==h?h=0:h<0&&(h=g-1);break;default:return}f.slideTo(h)}},B=function(t){for(var e=0,n=A[wt];e-1)&&(n.persist||l))return;r=null,p()}(/\#$/.test(s.href)||s[yt]&&/\#$/.test(s[yt].href))&&e.preventDefault()},h=function(){Vt.call(a,at,l,r),Rt(a,Et),c[mt](Z,!0),Vt.call(a,lt,l,r),Gt(document,nt,s),o=!0},p=function(){Vt.call(a,rt,l,r),qt(a,Et),c[mt](Z,!1),Vt.call(a,ct,l,r),Jt(document,nt,s),o=!1};this.toggle=function(){zt(a,Et)&&o?p():h()},d in t||(c[mt]("tabindex","0"),Gt(document,tt,f)),t[d]=this};_t(d,de,i);var fe=function(i,a){i=Xt(i);var l=i[pt](T)||i[pt]("href"),r=Xt(l),c=zt(i,"modal")?i:r,u="modal",s="static",d="paddingLeft",h="paddingRight",p="modal-backdrop";if(zt(i,"modal")&&(i=null),c){a=a||{},this[M]=a[M]!==!1&&"false"!==c[pt](b),this[k]=a[k]!==s&&c[pt](g)!==s||s,this[k]=a[k]!==!1&&"false"!==c[pt](g)&&this[k],this[H]=a[H];var m,v,x,y,w=this,C=this.open=!1,I=null,A=Ut(e,"fixed-top").concat(Ut(e,"fixed-bottom")),D=function(){var n=e[bt]();return t[J]||n[Mt]-Math.abs(n[kt])},L=function(){var e,i=t.getComputedStyle(n),o=parseInt(i[h],10);if(m&&(n[Dt][h]=o+x+"px",A[wt]))for(var a=0;ae[X],x=S()},W=function(){c[Dt][d]=!m&&v?x+"px":"",c[Dt][h]=m&&!v?x+"px":""},F=function(){c[Dt][d]="",c[Dt][h]=""},P=function(){var t=document.createElement("div");y=Xt("."+p),null===y&&(t[mt]("class",p+" fade"),y=t,n.appendChild(y))},$=function(){y=Xt("."+p),y&&null!==y&&"object"==typeof y&&(n.removeChild(y),y=null)},j=function(){zt(c,Et)?Jt(document,nt,z):Gt(document,nt,z)},O=function(){zt(c,Et)?Jt(t,it,w.update):Gt(t,it,w.update)},R=function(){zt(c,Et)?Jt(c,tt,G):Gt(c,tt,G)},q=function(t){var e=t[N];e=e[vt](T)||e[vt]("href")?e:e[yt],C||e!==i||zt(c,Et)||(c.modalTrigger=i,I=i,w.show(),t.preventDefault())},z=function(t){var e=t.which||t.keyCode;w[M]&&27==e&&C&&w.hide()},G=function(t){var e=t[N];C&&(e[yt][pt](o)===u||e[pt](o)===u||e===c&&w[k]!==s)&&(w.hide(),I=null,t.preventDefault())};this.toggle=function(){C&&zt(c,Et)?this.hide():this.show()},this.show=function(){Vt.call(c,at,u,I);var t=Ut(document,u+" "+Et)[0];t&&t!==c&&t.modalTrigger[f].hide(),this[k]&&P(),y&&!zt(y,Et)&&setTimeout(function(){Rt(y,Et)},0),setTimeout(function(){c[Dt].display="block",B(),L(),W(),O(),R(),j(),Rt(n,u+"-open"),Rt(c,Et),c[mt](_,!1),Qt(c,function(){C=w.open=!0,Ot(c),Vt.call(c,lt,u,I)})},$t?150:0)},this.hide=function(){Vt.call(c,rt,u),y=Xt("."+p),qt(c,Et),c[mt](_,!0),!!y&&qt(y,Et),setTimeout(function(){Qt(c,function(){O(),R(),j(),c[Dt].display="",C=w.open=!1,i&&Ot(i),Vt.call(c,ct,u),setTimeout(function(){Ut(document,u+" "+Et)[0]||(F(),E(),qt(n,u+"-open"),$())},100)})},$t?150:0)},this.setContent=function(t){Xt("."+u+"-content",c).innerHTML=t},this.update=function(){C&&(B(),L(),W())},!i||f in i||Gt(i,tt,q),this[H]&&this.setContent(this[H]),!!i&&(i[f]=this)}};_t(f,fe,i);var he=function(e,i){e=Xt(e);var o=e[pt](A),a=e[pt](D),l=e[pt](E),r=e[pt](I),c=e[pt](S),u=e[pt](L),s="popover",d="template",f="trigger",p="class",m="div",v="fade",g="data-title",b="data-content",T="dismissible",x='',y=Yt(e,".modal"),w=Yt(e,Nt),C=Yt(e,Wt);i=i||{},this[d]=i[d]?i[d]:null,this[f]=i[f]?i[f]:o||et,this[P]=i[P]&&i[P]!==v?i[P]:a||v,this[$]=i[$]?i[$]:l||Bt,this[B]=parseInt(i[B]||c)||200,this[T]=!(!i[T]&&"true"!==r),this[j]=Xt(i[j])?Xt(i[j]):Xt(u)?Xt(u):w?w:C?C:y?y:n;var k=this,M=e[pt](g)||null,H=e[pt](b)||null;if(H||this[d]){var W=null,F=0,O=this[$],R=function(t){null!==W&&t[N]===Xt(".close",W)&&k.hide()},q=function(){k[j].removeChild(W),F=null,W=null},z=function(){if(M=e[pt](g),H=e[pt](b),W=document.createElement(m),null!==H&&null===k[d]){if(W[mt]("role","tooltip"),null!==M){var t=document.createElement("h3");t[mt](p,s+"-title"),t.innerHTML=k[T]?M+x:M,W.appendChild(t)}var n=document.createElement(m);n[mt](p,s+"-content"),n.innerHTML=k[T]&&null===M?H+x:H,W.appendChild(n)}else{var i=document.createElement(m);i.innerHTML=k[d],W.innerHTML=i.firstChild.innerHTML}k[j].appendChild(W),W[Dt].display="block",W[mt](p,s+" "+s+"-"+O+" "+k[P])},U=function(){!zt(W,Et)&&Rt(W,Et)},X=function(){ae(e,W,O,k[j]),ie(W)||(O=le(O),ae(e,W,O,k[j]))};this.toggle=function(){null===W?k.show():k.hide()},this.show=function(){clearTimeout(F),F=setTimeout(function(){null===W&&(O=k[$],z(),X(),U(),Vt.call(e,at,s),Qt(W,function(){Vt.call(e,lt,s)}))},20)},this.hide=function(){clearTimeout(F),F=setTimeout(function(){W&&null!==W&&zt(W,Et)&&(Vt.call(e,rt,s),qt(W,Et),Qt(W,function(){q(),Vt.call(e,ct,s)}))},k[B])},h in e||(k[f]===et?(Gt(e,Ft[0],k.show),k[T]||Gt(e,Ft[1],k.hide)):/^(click|focus)$/.test(k[f])&&(Gt(e,k[f],k.toggle),k[T]||Gt(e,"blur",k.hide)),k[T]&&Gt(document,tt,R),Gt(t,it,k.hide)),e[h]=k}};_t(h,he,i);var pe=function(e,n){e=Xt(e);var i=Xt(e[pt](T));if(n=n||{},n[N]||i){for(var o,a=n[N]&&Xt(n[N])||i,l=a&&a[gt]("A"),r=[],c=[],u=e[G]=f&&h>o;if(!d&&p)zt(n,Lt)||(Rt(n,Lt),d=!0,l&&!zt(l,Lt)&&Rt(l,Lt),Vt.call(e,"activate","scrollspy",r[t]));else if(p){if(!p&&!d||d&&p)return}else zt(n,Lt)&&(qt(n,Lt),d=!1,l&&zt(l,Lt)&&!Ut(n[yt],Lt).length&&qt(l,Lt))},g=function(){o=s?oe().y:e[q];for(var t=0,n=r[wt];t1&&(t=e[e[wt]-1]):t=e[0],t},h=function(){return Xt(f()[pt]("href"))},p=function(t){t.preventDefault(),r=t[N][pt](i)===o||te.test(t[N][pt]("href"))?t[N]:t[N][yt],u.show()};this.show=function(){var e=Xt(r[pt]("href")),n=f(),i=h();n[l]&&r[l]||zt(r,Lt)||(n[l]=r[l]=!0,qt(n,Lt),Rt(r,Lt),d&&(zt(t[yt],"dropdown-menu")?zt(d,Lt)||Rt(d,Lt):zt(d,Lt)&&qt(d,Lt)),c&&(c[Dt][a]=ne(i)+"px"),function(){qt(i,Et),Vt.call(n,rt,o,r),function(){Qt(i,function(){qt(i,Lt),Rt(e,Lt),setTimeout(function(){Rt(e,Et),e[G],c&&Rt(c,St),function(){Vt.call(r,at,o,n),function(){c&&(c[Dt][a]=ne(e)+"px"),Vt.call(n,ct,o,r)}()}()},20)})}()}(),function(){Qt(e,function(){Vt.call(r,lt,o,n),c?!function(){Qt(c,function(){setTimeout(function(){c[Dt][a]="",qt(c,St),n[l]=r[l]=!1},200)})}():n[l]=r[l]=!1})}())},m in t||Gt(t,tt,p),this[a]&&(c=h()[yt]),t[m]=this}};_t(m,me,i);var ve=function(t,e){t=Xt(t);var i=t[pt](D);placementData=t[pt](E),delayData=t[pt](S),containerData=t[pt](L),component="tooltip",classString="class",title="title",fade="fade",div="div",modal=Yt(t,".modal"),navbarFixedTop=Yt(t,Nt),navbarFixedBottom=Yt(t,Wt),e=e||{},this[P]=e[P]&&e[P]!==fade?e[P]:i||fade,this[$]=e[$]?e[$]:placementData||Bt,this[B]=parseInt(e[B]||delayData)||200,this[j]=Xt(e[j])?Xt(e[j]):Xt(containerData)?Xt(containerData):navbarFixedTop?navbarFixedTop:navbarFixedBottom?navbarFixedBottom:modal?modal:n;var o=this,a=0,l=this[$],r=null,c=t[pt](title)||t[pt](C);if(c){var u=function(){o[j].removeChild(r),r=null,a=null},s=function(){c=t[pt](title)||t[pt](C),r=document.createElement(div),r[mt]("role",component);var e=document.createElement(div);e[mt](classString,component+"-inner"),r.appendChild(e),e.innerHTML=c,o[j].appendChild(r),r[mt](classString,component+" "+component+"-"+l+" "+o[P])},d=function(){ae(t,r,l,o[j]),ie(r)||(l=le(l),ae(t,r,l,o[j]))},f=function(){!zt(r,Et)&&Rt(r,Et)};this.show=function(){clearTimeout(a),a=setTimeout(function(){null===r&&(l=o[$],s(),d(),f(),Vt.call(t,at,component),Qt(r,function(){Vt.call(t,lt,component)}))},20)},this.hide=function(){clearTimeout(a),a=setTimeout(function(){r&&null!==r&&zt(r,Et)&&(Vt.call(t,rt,component),qt(r,Et),Qt(r,function(){u(),Vt.call(t,ct,component)}))},o[B])},this.toggle=function(){r?o.hide():o.show()},v in t||(t[mt](C,c),t.removeAttribute(title),Gt(t,Ft[0],this.show),Gt(t,Ft[1],this.hide)),t[v]=this}};return _t(v,ve,i),{Alert:re,Button:ce,Carousel:ue,Collapse:se,Dropdown:de,Modal:fe,Popover:he,ScrollSpy:pe,Tab:me,Tooltip:ve}}); +!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(){var t="undefined"!=typeof global?global:this||window,e=document.documentElement,n=document.body,i="data-toggle",o="data-dismiss",a="data-spy",l="data-ride",r="Alert",c="Button",u="Carousel",s="Collapse",d="Dropdown",f="Modal",h="Popover",p="ScrollSpy",m="Tab",v="Tooltip",g="data-backdrop",T="data-keyboard",b="data-target",x="data-interval",y="data-height",w="data-pause",C="data-original-title",I="data-dismissible",A="data-trigger",D="data-animation",L="data-container",E="data-placement",S="data-delay",k="backdrop",M="keyboard",B="delay",H="content",N="target",W="interval",F="pause",P="animation",$="placement",j="container",O="offsetTop",R="offsetLeft",q="scrollTop",z="scrollLeft",U="clientWidth",X="clientHeight",Y="offsetWidth",G="offsetHeight",J="innerWidth",K="innerHeight",Q="scrollHeight",V="height",Z="aria-expanded",_="aria-hidden",tt="click",et="hover",nt="keydown",it="resize",ot="scroll",at="show",lt="shown",rt="hide",ct="hidden",ut="close",st="closed",dt="slid",ft="slide",ht="change",pt="getAttribute",mt="setAttribute",vt="hasAttribute",gt="getElementsByTagName",Tt="getBoundingClientRect",bt="getElementsByClassName",xt="indexOf",yt="parentNode",wt="length",Ct="toLowerCase",It="Transition",At="Webkit",Dt="style",Lt="active",Et="show",St="collapsing",kt="left",Mt="right",Bt="top",Ht="bottom",Nt="fixed-top",Wt="fixed-bottom",Ft="onmouseleave"in document?["mouseenter","mouseleave"]:["mouseover","mouseout"],Pt=/\b(top|bottom|left|top)+/,$t=At+It in e[Dt]||It[Ct]()in e[Dt],jt=At+It in e[Dt]?At[Ct]()+It+"End":It[Ct]()+"end",Ot=function(t){t.focus?t.focus():t.setActive()},Rt=function(t,e){t.classList.add(e)},qt=function(t,e){t.classList.remove(e)},zt=function(t,e){return t.classList.contains(e)},Ut=function(t,e){return[].slice.call(t[bt](e))},Xt=function(t,e){var n=e?e:document;return"object"==typeof t?t:n.querySelector(t)},Yt=function(t,e){for(var n=e.charAt(0);t&&t!==document;t=t[yt])if("."===n){if(null!==Xt(e,t[yt])&&zt(t,e.replace(".","")))return t}else if("#"===n&&t.id===e.substr(1))return t;return!1},Gt=function(t,e,n){t.addEventListener(e,n,!1)},Jt=function(t,e,n){t.removeEventListener(e,n,!1)},Kt=function(t,e,n){Gt(t,e,function i(o){n(o),Jt(t,e,i)})},Qt=function(t,e){$t?Kt(t,jt,function(t){e(t)}):e()},Vt=function(t,e,n){var i=new CustomEvent(t+".bs."+e);i.relatedTarget=n,this.dispatchEvent(i)},Zt=document[gt]("*"),_t=function(t,e,n,i){for(var o=i&&i[wt]?i:Zt,a=0;a-1||l===r)&&new e(o[a])}},te=/^\#(.)+$/,ee=function(e){var n=e&&t.getComputedStyle(e),i=/px/.test(n.borderTopWidth)?Math.round(n.borderTopWidth.replace("px","")):0,o=/px/.test(n.borderBottomWidth)?Math.round(n.borderBottomWidth.replace("px","")):0,a=/px/.test(n.marginTop)?Math.round(n.marginTop.replace("px","")):0,l=/px/.test(n.marginBottom)?Math.round(n.marginBottom.replace("px","")):0;return e[X]+parseInt(i)+parseInt(o)+parseInt(a)+parseInt(l)},ne=function(t){for(var e=0,n=0,i=t.children[wt];n=0&&i[kt]>=0&&i[Ht]<=(t[K]||e[X])&&i[Mt]<=(t[J]||e[U])},oe=function(){return{y:t.pageYOffset||e[q],x:t.pageXOffset||e[z]}},ae=function(t,e,i,o){var a=t[Tt](),l=o===n?oe():{x:o[R]+o[z],y:o[O]+o[q]},r={w:a[Mt]-a[kt],h:a[Ht]-a[Bt]},c={w:e[Y],h:e[G]};i===Bt?(e[Dt][Bt]=a[Bt]+l.y-c.h+"px",e[Dt][kt]=a[kt]+l.x-c.w/2+r.w/2+"px"):i===Ht?(e[Dt][Bt]=a[Bt]+l.y+r.h+"px",e[Dt][kt]=a[kt]+l.x-c.w/2+r.w/2+"px"):i===kt?(e[Dt][Bt]=a[Bt]+l.y-c.h/2+r.h/2+"px",e[Dt][kt]=a[kt]+l.x-c.w+"px"):i===Mt&&(e[Dt][Bt]=a[Bt]+l.y-c.h/2+r.h/2+"px",e[Dt][kt]=a[kt]+l.x+r.w+"px"),e.className[xt](i)===-1&&(e.className=e.className.replace(Pt,i))},le=function(t){return t===Bt?Ht:t===Ht?Bt:t===kt?Mt:t===Mt?kt:t},re=function(t){t=Xt(t);var e=this,n="alert",i=Yt(t,"."+n),a=function(a){var l=a[N];l=l[vt](o)?l:l[yt],l&&l[vt](o)&&(i=Yt(l,"."+n),t=Xt("["+o+'="'+n+'"]',i),(t===l||t===l[yt])&&i&&e.close())},l=function(){Vt.call(i,st,n),Jt(t,tt,a),i[yt].removeChild(i)};this.close=function(){i&&t&&zt(i,Et)&&(Vt.call(i,ut,n),qt(i,Et),function(){i&&Qt(i,l)}())},r in t||Gt(t,tt,a),t[r]=this};_t(r,re,o);var ce=function(t){t=Xt(t);var e=!1,n="button",i="checked",o="LABEL",a="INPUT",l=function(l){var r=l[N][yt],c=l[N].tagName===o?l[N]:r.tagName===o?r:null;if(c){var u=this,s=Ut(u,"btn"),d=c[gt](a)[0];if(d){if("checkbox"===d.type&&(d[i]?(qt(c,Lt),d[pt](i),d.removeAttribute(i),d[i]=!1):(Rt(c,Lt),d[pt](i),d[mt](i,i),d[i]=!0),e||(e=!0,Vt.call(d,ht,n),Vt.call(t,ht,n))),"radio"===d.type&&!e&&!d[i]){Rt(c,Lt),d[mt](i,i),d[i]=!0,Vt.call(d,ht,n),Vt.call(t,ht,n),e=!0;for(var f=0,h=s[wt];fh||n===g-1&&0===h)&&(b=f[c]=Mt),f.slideTo(h)}},S=function(t){if(t.preventDefault(),!m){var e=t.currentTarget||t.srcElement;e===C?(h++,b=f[c]=kt,h===g-1?h=g-1:h===g&&(h=0)):e===y&&(h--,b=f[c]=Mt,0===h?h=0:h<0&&(h=g-1)),f.slideTo(h)}},k=function(t){if(!m){switch(t.which){case 39:h++,b=f[c]=kt,h==g-1?h=g-1:h==g&&(h=0);break;case 37:h--,b=f[c]=Mt,0==h?h=0:h<0&&(h=g-1);break;default:return}f.slideTo(h)}},B=function(t){for(var e=0,n=A[wt];e-1)&&(n.persist||l))return;r=null,p()}(/\#$/.test(s.href)||s[yt]&&/\#$/.test(s[yt].href))&&e.preventDefault()},h=function(){Vt.call(a,at,l,r),Rt(a,Et),c[mt](Z,!0),Vt.call(a,lt,l,r),Gt(document,nt,s),o=!0},p=function(){Vt.call(a,rt,l,r),qt(a,Et),c[mt](Z,!1),Vt.call(a,ct,l,r),Jt(document,nt,s),o=!1};this.toggle=function(){zt(a,Et)&&o?p():h()},d in t||(c[mt]("tabindex","0"),Gt(document,tt,f)),t[d]=this};_t(d,de,i);var fe=function(i,a){i=Xt(i);var l=i[pt](b)||i[pt]("href"),r=Xt(l),c=zt(i,"modal")?i:r,u="modal",s="static",d="paddingLeft",h="paddingRight",p="modal-backdrop";if(zt(i,"modal")&&(i=null),c){a=a||{},this[M]=a[M]!==!1&&"false"!==c[pt](T),this[k]=a[k]!==s&&c[pt](g)!==s||s,this[k]=a[k]!==!1&&"false"!==c[pt](g)&&this[k],this[H]=a[H];var m,v,x,y,w=this,C=this.open=!1,I=null,A=Ut(e,Nt).concat(Ut(e,Wt)),D=function(){var n=e[Tt]();return t[J]||n[Mt]-Math.abs(n[kt])},L=function(){var e,i=t.getComputedStyle(n),o=parseInt(i[h],10);if(m&&(n[Dt][h]=o+x+"px",A[wt]))for(var a=0;ae[X],x=S()},W=function(){c[Dt][d]=!m&&v?x+"px":"",c[Dt][h]=m&&!v?x+"px":""},F=function(){c[Dt][d]="",c[Dt][h]=""},P=function(){var t=document.createElement("div");y=Xt("."+p),null===y&&(t[mt]("class",p+" fade"),y=t,n.appendChild(y))},$=function(){y=Xt("."+p),y&&null!==y&&"object"==typeof y&&(n.removeChild(y),y=null)},j=function(){zt(c,Et)?Jt(document,nt,z):Gt(document,nt,z)},O=function(){zt(c,Et)?Jt(t,it,w.update):Gt(t,it,w.update)},R=function(){zt(c,Et)?Jt(c,tt,G):Gt(c,tt,G)},q=function(t){var e=t[N];e=e[vt](b)||e[vt]("href")?e:e[yt],C||e!==i||zt(c,Et)||(c.modalTrigger=i,I=i,w.show(),t.preventDefault())},z=function(t){var e=t.which||t.keyCode;w[M]&&27==e&&C&&w.hide()},G=function(t){var e=t[N];C&&(e[yt][pt](o)===u||e[pt](o)===u||e===c&&w[k]!==s)&&(w.hide(),I=null,t.preventDefault())};this.toggle=function(){C&&zt(c,Et)?this.hide():this.show()},this.show=function(){Vt.call(c,at,u,I);var t=Ut(document,u+" "+Et)[0];t&&t!==c&&t.modalTrigger[f].hide(),this[k]&&P(),y&&!zt(y,Et)&&setTimeout(function(){Rt(y,Et)},0),setTimeout(function(){c[Dt].display="block",B(),L(),W(),O(),R(),j(),Rt(n,u+"-open"),Rt(c,Et),c[mt](_,!1),Qt(c,function(){C=w.open=!0,Ot(c),Vt.call(c,lt,u,I)})},$t?150:0)},this.hide=function(){Vt.call(c,rt,u),y=Xt("."+p),qt(c,Et),c[mt](_,!0),!!y&&qt(y,Et),setTimeout(function(){Qt(c,function(){O(),R(),j(),c[Dt].display="",C=w.open=!1,i&&Ot(i),Vt.call(c,ct,u),setTimeout(function(){Ut(document,u+" "+Et)[0]||(F(),E(),qt(n,u+"-open"),$())},100)})},$t?150:0)},this.setContent=function(t){Xt("."+u+"-content",c).innerHTML=t},this.update=function(){C&&(B(),L(),W())},!i||f in i||Gt(i,tt,q),this[H]&&this.setContent(this[H]),!!i&&(i[f]=this)}};_t(f,fe,i);var he=function(e,i){e=Xt(e);var o=e[pt](A),a=e[pt](D),l=e[pt](E),r=e[pt](I),c=e[pt](S),u=e[pt](L),s="popover",d="template",f="trigger",p="class",m="div",v="fade",g="data-title",T="data-content",b="dismissible",x='',y=Yt(e,".modal"),w=Yt(e,"."+Nt),C=Yt(e,"."+Wt);i=i||{},this[d]=i[d]?i[d]:null,this[f]=i[f]?i[f]:o||et,this[P]=i[P]&&i[P]!==v?i[P]:a||v,this[$]=i[$]?i[$]:l||Bt,this[B]=parseInt(i[B]||c)||200,this[b]=!(!i[b]&&"true"!==r),this[j]=Xt(i[j])?Xt(i[j]):Xt(u)?Xt(u):w?w:C?C:y?y:n;var k=this,M=e[pt](g)||null,H=e[pt](T)||null;if(H||this[d]){var W=null,F=0,O=this[$],R=function(t){null!==W&&t[N]===Xt(".close",W)&&k.hide()},q=function(){k[j].removeChild(W),F=null,W=null},z=function(){if(M=e[pt](g),H=e[pt](T),W=document.createElement(m),null!==H&&null===k[d]){if(W[mt]("role","tooltip"),null!==M){var t=document.createElement("h3");t[mt](p,s+"-title"),t.innerHTML=k[b]?M+x:M,W.appendChild(t)}var n=document.createElement(m);n[mt](p,s+"-content"),n.innerHTML=k[b]&&null===M?H+x:H,W.appendChild(n)}else{var i=document.createElement(m);i.innerHTML=k[d],W.innerHTML=i.firstChild.innerHTML}k[j].appendChild(W),W[Dt].display="block",W[mt](p,s+" "+s+"-"+O+" "+k[P])},U=function(){!zt(W,Et)&&Rt(W,Et)},X=function(){ae(e,W,O,k[j]),ie(W)||(O=le(O),ae(e,W,O,k[j]))};this.toggle=function(){null===W?k.show():k.hide()},this.show=function(){clearTimeout(F),F=setTimeout(function(){null===W&&(O=k[$],z(),X(),U(),Vt.call(e,at,s),Qt(W,function(){Vt.call(e,lt,s)}))},20)},this.hide=function(){clearTimeout(F),F=setTimeout(function(){W&&null!==W&&zt(W,Et)&&(Vt.call(e,rt,s),qt(W,Et),Qt(W,function(){q(),Vt.call(e,ct,s)}))},k[B])},h in e||(k[f]===et?(Gt(e,Ft[0],k.show),k[b]||Gt(e,Ft[1],k.hide)):/^(click|focus)$/.test(k[f])&&(Gt(e,k[f],k.toggle),k[b]||Gt(e,"blur",k.hide)),k[b]&&Gt(document,tt,R),Gt(t,it,k.hide)),e[h]=k}};_t(h,he,i);var pe=function(e,n){e=Xt(e);var i=Xt(e[pt](b));if(n=n||{},n[N]||i){for(var o,a=n[N]&&Xt(n[N])||i,l=a&&a[gt]("A"),r=[],c=[],u=e[G]=f&&h>o;if(!d&&p)zt(n,Lt)||(Rt(n,Lt),d=!0,l&&!zt(l,Lt)&&Rt(l,Lt),Vt.call(e,"activate","scrollspy",r[t]));else if(p){if(!p&&!d||d&&p)return}else zt(n,Lt)&&(qt(n,Lt),d=!1,l&&zt(l,Lt)&&!Ut(n[yt],Lt).length&&qt(l,Lt))},g=function(){o=s?oe().y:e[q];for(var t=0,n=r[wt];t1&&(t=e[e[wt]-1]):t=e[0],t},h=function(){return Xt(f()[pt]("href"))},p=function(t){t.preventDefault(),r=t[N][pt](i)===o||te.test(t[N][pt]("href"))?t[N]:t[N][yt],u.show()};this.show=function(){var e=Xt(r[pt]("href")),n=f(),i=h();n[l]&&r[l]||zt(r,Lt)||(n[l]=r[l]=!0,qt(n,Lt),Rt(r,Lt),d&&(zt(t[yt],"dropdown-menu")?zt(d,Lt)||Rt(d,Lt):zt(d,Lt)&&qt(d,Lt)),c&&(c[Dt][a]=ne(i)+"px"),function(){qt(i,Et),Vt.call(n,rt,o,r),function(){Qt(i,function(){qt(i,Lt),Rt(e,Lt),setTimeout(function(){Rt(e,Et),e[G],c&&Rt(c,St),function(){Vt.call(r,at,o,n),function(){c&&(c[Dt][a]=ne(e)+"px"),Vt.call(n,ct,o,r)}()}()},20)})}()}(),function(){Qt(e,function(){Vt.call(r,lt,o,n),c?!function(){Qt(c,function(){setTimeout(function(){c[Dt][a]="",qt(c,St),n[l]=r[l]=!1},200)})}():n[l]=r[l]=!1})}())},m in t||Gt(t,tt,p),this[a]&&(c=h()[yt]),t[m]=this}};_t(m,me,i);var ve=function(t,e){t=Xt(t);var i=t[pt](D);placementData=t[pt](E),delayData=t[pt](S),containerData=t[pt](L),component="tooltip",classString="class",title="title",fade="fade",div="div",modal=Yt(t,".modal"),navbarFixedTop=Yt(t,"."+Nt),navbarFixedBottom=Yt(t,"."+Wt),e=e||{},this[P]=e[P]&&e[P]!==fade?e[P]:i||fade,this[$]=e[$]?e[$]:placementData||Bt,this[B]=parseInt(e[B]||delayData)||200,this[j]=Xt(e[j])?Xt(e[j]):Xt(containerData)?Xt(containerData):navbarFixedTop?navbarFixedTop:navbarFixedBottom?navbarFixedBottom:modal?modal:n;var o=this,a=0,l=this[$],r=null,c=t[pt](title)||t[pt](C);if(c){var u=function(){o[j].removeChild(r),r=null,a=null},s=function(){c=t[pt](title)||t[pt](C),r=document.createElement(div),r[mt]("role",component);var e=document.createElement(div);e[mt](classString,component+"-inner"),r.appendChild(e),e.innerHTML=c,o[j].appendChild(r),r[mt](classString,component+" "+component+"-"+l+" "+o[P])},d=function(){ae(t,r,l,o[j]),ie(r)||(l=le(l),ae(t,r,l,o[j]))},f=function(){!zt(r,Et)&&Rt(r,Et)};this.show=function(){clearTimeout(a),a=setTimeout(function(){null===r&&(l=o[$],s(),d(),f(),Vt.call(t,at,component),Qt(r,function(){Vt.call(t,lt,component)}))},20)},this.hide=function(){clearTimeout(a),a=setTimeout(function(){r&&null!==r&&zt(r,Et)&&(Vt.call(t,rt,component),qt(r,Et),Qt(r,function(){u(),Vt.call(t,ct,component)}))},o[B])},this.toggle=function(){r?o.hide():o.show()},v in t||(t[mt](C,c),t.removeAttribute(title),Gt(t,Ft[0],this.show),Gt(t,Ft[1],this.hide)),t[v]=this}};return _t(v,ve,i),{Alert:re,Button:ce,Carousel:ue,Collapse:se,Dropdown:de,Modal:fe,Popover:he,ScrollSpy:pe,Tab:me,Tooltip:ve}}); diff --git a/dist/bootstrap-native.js b/dist/bootstrap-native.js index c404fdd7..44d42623 100644 --- a/dist/bootstrap-native.js +++ b/dist/bootstrap-native.js @@ -1,4 +1,4 @@ -// Native Javascript for Bootstrap 3 v2.0.6 | © dnp_theme | MIT-License +// Native Javascript for Bootstrap 3 v2.0.7 | © dnp_theme | MIT-License (function (root, factory) { if (typeof define === 'function' && define.amd) { // AMD support: @@ -134,8 +134,8 @@ isIE8 = !('opacity' in body[style]), // tooltip / popover - fixedTop = '.navbar-fixed-top', - fixedBottom = '.navbar-fixed-bottom', + fixedTop = 'navbar-fixed-top', + fixedBottom = 'navbar-fixed-bottom', mouseHover = ('onmouseleave' in document) ? [ 'mouseenter', 'mouseleave'] : [ 'mouseover', 'mouseout' ], tipPositions = /\b(top|bottom|left|top)+/, @@ -1030,7 +1030,7 @@ bodyIsOverflowing, modalIsOverflowing, scrollbarWidth, overlay, // also find fixed-top / fixed-bottom items - fixedItems = getElementsByClassName(doc,'navbar-fixed-top').concat(getElementsByClassName(doc,'navbar-fixed-bottom')), + fixedItems = getElementsByClassName(doc,fixedTop).concat(getElementsByClassName(doc,fixedBottom)), // private methods getWindowWidth = function() { @@ -1276,8 +1276,8 @@ modal = getClosest(element,'.modal'), // maybe the element is inside a fixed navbar - navbarFixedTop = getClosest(element,fixedTop), - navbarFixedBottom = getClosest(element,fixedBottom); + navbarFixedTop = getClosest(element,'.'+fixedTop), + navbarFixedBottom = getClosest(element,'.'+fixedBottom); // set options options = options || {}; @@ -1655,8 +1655,8 @@ element = queryElement(element); // DATA API - var animationData = element[getAttribute](dataAnimation); - placementData = element[getAttribute](dataPlacement); + var animationData = element[getAttribute](dataAnimation), + placementData = element[getAttribute](dataPlacement), delayData = element[getAttribute](dataDelay), containerData = element[getAttribute](dataContainer), @@ -1671,8 +1671,8 @@ modal = getClosest(element,'.modal'), // maybe the element is inside a fixed navbar - navbarFixedTop = getClosest(element,fixedTop), - navbarFixedBottom = getClosest(element,fixedBottom); + navbarFixedTop = getClosest(element,'.'+fixedTop), + navbarFixedBottom = getClosest(element,'.'+fixedBottom); // set options options = options || {}; diff --git a/dist/bootstrap-native.min.js b/dist/bootstrap-native.min.js index 8fdc4a70..64fa1605 100644 --- a/dist/bootstrap-native.min.js +++ b/dist/bootstrap-native.min.js @@ -1,2 +1,2 @@ -// Native Javascript for Bootstrap 3 v2.0.6 | © dnp_theme | MIT-License -!function(t,e){if("function"==typeof define&&define.amd)define([],e);else if("object"==typeof module&&module.exports)module.exports=e();else{var n=e();t.Affix=n.Affix,t.Alert=n.Alert,t.Button=n.Button,t.Carousel=n.Carousel,t.Collapse=n.Collapse,t.Dropdown=n.Dropdown,t.Modal=n.Modal,t.Popover=n.Popover,t.ScrollSpy=n.ScrollSpy,t.Tab=n.Tab,t.Tooltip=n.Tooltip}}(this,function(){var t="undefined"!=typeof global?global:this||window,e=document.documentElement,n=document.body,i="data-toggle",o="data-dismiss",a="data-spy",l="data-ride",r="Affix",c="Alert",u="Button",s="Carousel",f="Collapse",d="Dropdown",h="Modal",p="Popover",m="ScrollSpy",v="Tab",g="Tooltip",b="data-backdrop",x="data-keyboard",T="data-target",y="data-interval",w="data-height",C="data-pause",I="data-original-title",A="data-original-text",L="data-dismissible",S="data-trigger",E="data-animation",M="data-container",D="data-placement",k="data-delay",B="data-offset-top",H="data-offset-bottom",N="backdrop",W="keyboard",F="delay",P="content",$="target",j="interval",O="pause",q="animation",z="placement",R="container",U="offsetTop",X="offsetBottom",Y="offsetLeft",G="scrollTop",J="scrollLeft",K="clientWidth",Q="clientHeight",V="offsetWidth",Z="offsetHeight",_="innerWidth",tt="innerHeight",et="scrollHeight",nt="height",it="aria-expanded",ot="aria-hidden",at="click",lt="hover",rt="keydown",ct="resize",ut="scroll",st="show",ft="shown",dt="hide",ht="hidden",pt="close",mt="closed",vt="slid",gt="slide",bt="change",xt="getAttribute",Tt="setAttribute",yt="hasAttribute",wt="getElementsByTagName",Ct="getBoundingClientRect",It="querySelectorAll",At="getElementsByClassName",Lt="indexOf",St="parentNode",Et="length",Mt="toLowerCase",Dt="Transition",kt="Webkit",Bt="style",Ht="active",Nt="in",Wt="collapsing",Ft="disabled",Pt="loading",$t="left",jt="right",Ot="top",qt="bottom",zt=!("opacity"in n[Bt]),Rt=".navbar-fixed-top",Ut=".navbar-fixed-bottom",Xt="onmouseleave"in document?["mouseenter","mouseleave"]:["mouseover","mouseout"],Yt=/\b(top|bottom|left|top)+/,Gt=kt+Dt in e[Bt]||Dt[Mt]()in e[Bt],Jt=kt+Dt in e[Bt]?kt[Mt]()+Dt+"End":Dt[Mt]()+"end",Kt=function(t){t.focus?t.focus():t.setActive()},Qt=function(t,e){t.classList.add(e)},Vt=function(t,e){t.classList.remove(e)},Zt=function(t,e){return t.classList.contains(e)},_t=function(t){for(var e=[],n=0,i=t[Et];n-1||l===r)&&new e(o[a])}},se=/^\#(.)+$/,fe=function(e){var n=e&&(e.currentStyle||t.getComputedStyle(e)),i=/px/.test(n.borderTopWidth)?Math.round(n.borderTopWidth.replace("px","")):0,o=/px/.test(n.borderBottomWidth)?Math.round(n.borderBottomWidth.replace("px","")):0,a=/px/.test(n.marginTop)?Math.round(n.marginTop.replace("px","")):0,l=/px/.test(n.marginBottom)?Math.round(n.marginBottom.replace("px","")):0;return e[Q]+parseInt(i)+parseInt(o)+parseInt(a)+parseInt(l)},de=function(t){for(var e=0,n=0,i=t.children[Et];n=0&&i[$t]>=0&&i[qt]<=(t[tt]||e[Q])&&i[jt]<=(t[_]||e[K])},pe=function(){return{y:t.pageYOffset||e[G],x:t.pageXOffset||e[J]}},me=function(t,e,i,o){var a=t[Ct](),l=o===n?pe():{x:o[Y]+o[J],y:o[U]+o[G]},r={w:a[jt]-a[$t],h:a[qt]-a[Ot]},c={w:e[V],h:e[Z]};i===Ot?(e[Bt][Ot]=a[Ot]+l.y-c.h+"px",e[Bt][$t]=a[$t]+l.x-c.w/2+r.w/2+"px"):i===qt?(e[Bt][Ot]=a[Ot]+l.y+r.h+"px",e[Bt][$t]=a[$t]+l.x-c.w/2+r.w/2+"px"):i===$t?(e[Bt][Ot]=a[Ot]+l.y-c.h/2+r.h/2+"px",e[Bt][$t]=a[$t]+l.x-c.w+"px"):i===jt&&(e[Bt][Ot]=a[Ot]+l.y-c.h/2+r.h/2+"px",e[Bt][$t]=a[$t]+l.x+r.w+"px"),e.className[Lt](i)===-1&&(e.className=e.className.replace(Yt,i))},ve=function(t){return t===Ot?qt:t===qt?Ot:t===$t?jt:t===jt?$t:t},ge=function(i,o){i=ee(i),o=o||{};var a=i[xt](T),l=i[xt](B),c=i[xt](H),u="affix",s="affixed",f="function",d="update",h="affix-top",p="affixed-top",m="affix-bottom",v="affixed-bottom";if(this[$]=o[$]?ee(o[$]):ee(a)||null,this[U]=o[U]?o[U]:parseInt(l)||0,this[X]=o[X]?o[X]:parseInt(c)||0,this[$]||this[U]||this[X]){var g,b,x,y,w,C,I=this,A=Gt?50:500,L=!1,S=!1,E=function(){return Math.max(n[et],n[Z],e[Q],e[et],e[Z])},M=function(){return null!==I[$]?I[$][Ct]()[Ot]+y:I[U]?parseInt(typeof I[U]===f?I[U]():I[U]||0):void 0},D=function(){if(I[X])return x-i[Z]-parseInt(typeof I[X]===f?I[X]():I[X]||0)},k=function(){x=E(),y=parseInt(pe().y,0),g=M(),b=D(),w=parseInt(g)-y<0&&y>parseInt(g),C=parseInt(b)-y<0&&y>parseInt(b)},N=function(){L||Zt(i,u)||(re.call(i,u,u),re.call(i,h,u),Qt(i,u),L=!0,re.call(i,s,u),re.call(i,p,u))},W=function(){L&&Zt(i,u)&&(Vt(i,u),L=!1)},F=function(){S||Zt(i,m)||(re.call(i,u,u),re.call(i,m,u),Qt(i,m),S=!0,re.call(i,s,u),re.call(i,v,u))},P=function(){S&&Zt(i,m)&&(Vt(i,m),S=!1)},j=function(){C?(w&&W(),F()):(P(),w?N():W())};this[d]=function(){k(),j()},r in i||(ie(t,ut,this[d]),ie(t,ct,function(){setTimeout(function(){I[d]()},A)})),i[r]=this,this[d]()}};ue(r,ge,a);var be=function(t){t=ee(t);var e=this,n="alert",i=ne(t,"."+n),a=function(a){var l=a[$];l=l[yt](o)?l:l[St],l&&l[yt](o)&&(i=ne(l,"."+n),t=ee("["+o+'="'+n+'"]',i),(t===l||t===l[St])&&i&&e.close())},l=function(){re.call(i,mt,n),oe(t,at,a),i[St].removeChild(i)};this.close=function(){i&&t&&Zt(i,Nt)&&(re.call(i,pt,n),Vt(i,Nt),function(){i&&le(i,l)}())},c in t||ie(t,at,a),t[c]=this};ue(c,be,o);var xe=function(t,e){t=ee(t),e=e||null;var n=!1,i="button",o="checked",a="reset",l="LABEL",r="INPUT",c=function(){e&&e!==a&&(e===Pt&&(Qt(t,Ft),t[Tt](Ft,Ft)),t[Tt](A,t.innerHTML.replace(/^\s+|\s+$/g,"")),t.innerHTML=t[xt]("data-"+e+"-text"))},s=function(){t[xt](A)&&((Zt(t,Ft)||t[xt](Ft)===Ft)&&(Vt(t,Ft),t.removeAttribute(Ft)),t.innerHTML=t[xt](A))},f=function(e){var a=e[$][St],c=e[$].tagName===l?e[$]:a.tagName===l?a:null;if(c){var u=this,s=te(u,"btn"),f=c[wt](r)[0];if(f){if("checkbox"===f.type&&(f[o]?(Vt(c,Ht),f[xt](o),f.removeAttribute(o),f[o]=!1):(Qt(c,Ht),f[xt](o),f[Tt](o,o),f[o]=!0),n||(n=!0,re.call(f,bt,i),re.call(t,bt,i))),"radio"===f.type&&!n&&!f[o]){Qt(c,Ht),f[Tt](o,o),f[o]=!0,re.call(f,bt,i),re.call(t,bt,i),n=!0;for(var d=0,h=s[Et];dd||n===v-1&&0===d)&&(g=f[c]=jt),f.slideTo(d)}},M=function(t){if(t.preventDefault(),!p){var e=t.currentTarget||t.srcElement;e===w?(d++,g=f[c]=$t,d===v-1?d=v-1:d===v&&(d=0)):e===T&&(d--,g=f[c]=jt,0===d?d=0:d<0&&(d=v-1)),f.slideTo(d)}},D=function(t){if(!p){switch(t.which){case 39:d++,g=f[c]=$t,d==v-1?d=v-1:d==v&&(d=0);break;case 37:d--,g=f[c]=jt,0==d?d=0:d<0&&(d=v-1);break;default:return}f.slideTo(d)}},k=function(t){for(var e=0,n=A[Et];e-1)&&(n.persist||l))return;c=null,m()}(/\#$/.test(r.href)||r[St]&&/\#$/.test(r[St].href))&&e.preventDefault()},p=function(){re.call(a,st,l,c),Qt(a,r),u[Tt](it,!0),re.call(a,ft,l,c),ie(document,rt,f),o=!0},m=function(){re.call(a,dt,l,c),Vt(a,r),u[Tt](it,!1),re.call(a,ht,l,c),oe(document,rt,f),o=!1};this.toggle=function(){Zt(a,r)&&o?m():p()},d in t||(u[Tt]("tabindex","0"),ie(document,at,h)),t[d]=this};ue(d,we,i);var Ce=function(i,a){i=ee(i);var l=i[xt](T)||i[xt]("href"),r=ee(l),c=Zt(i,"modal")?i:r,u="modal",s="static",f="paddingLeft",d="paddingRight",p="modal-backdrop";if(Zt(i,"modal")&&(i=null),c){a=a||{},this[W]=a[W]!==!1&&"false"!==c[xt](x),this[N]=a[N]!==s&&c[xt](b)!==s||s,this[N]=a[N]!==!1&&"false"!==c[xt](b)&&this[N],this[P]=a[P];var m,v,g,y,w=this,C=this.open=!1,I=null,A=te(e,"navbar-fixed-top").concat(te(e,"navbar-fixed-bottom")),L=function(){var n=e[Ct]();return t[_]||n[jt]-Math.abs(n[$t])},S=function(){var e,i=n.currentStyle||t.getComputedStyle(n),o=parseInt(i[d],10);if(m&&(n[Bt][d]=o+g+"px",A[Et]))for(var a=0;ae[Q],g=M()},k=function(){c[Bt][f]=!m&&v?g+"px":"",c[Bt][d]=m&&!v?g+"px":""},B=function(){c[Bt][f]="",c[Bt][d]=""},H=function(){var t=document.createElement("div");y=ee("."+p),null===y&&(t[Tt]("class",p+" fade"),y=t,n.appendChild(y))},F=function(){y=ee("."+p),y&&null!==y&&"object"==typeof y&&(n.removeChild(y),y=null)},j=function(){Zt(c,Nt)?oe(document,rt,R):ie(document,rt,R)},O=function(){Zt(c,Nt)?oe(t,ct,w.update):ie(t,ct,w.update)},q=function(){Zt(c,Nt)?oe(c,at,U):ie(c,at,U)},z=function(t){var e=t[$];e=e[yt](T)||e[yt]("href")?e:e[St],C||e!==i||Zt(c,Nt)||(c.modalTrigger=i,I=i,w.show(),t.preventDefault())},R=function(t){var e=t.which||t.keyCode;w[W]&&27==e&&C&&w.hide()},U=function(t){var e=t[$];C&&(e[St][xt](o)===u||e[xt](o)===u||e===c&&w[N]!==s)&&(w.hide(),I=null,t.preventDefault())};this.toggle=function(){C&&Zt(c,Nt)?this.hide():this.show()},this.show=function(){re.call(c,st,u,I);var t=te(document,u+" in")[0];t&&t!==c&&t.modalTrigger[h].hide(),this[N]&&H(),y&&!Zt(y,Nt)&&setTimeout(function(){Qt(y,Nt)},0),setTimeout(function(){c[Bt].display="block",D(),S(),k(),O(),q(),j(),Qt(n,u+"-open"),Qt(c,Nt),c[Tt](ot,!1),le(c,function(){C=w.open=!0,Kt(c),re.call(c,ft,u,I)})},Gt?150:0)},this.hide=function(){re.call(c,dt,u),y=ee("."+p),Vt(c,Nt),c[Tt](ot,!0),!!y&&Vt(y,Nt),setTimeout(function(){le(c,function(){O(),q(),j(),c[Bt].display="",C=w.open=!1,i&&Kt(i),re.call(c,ht,u),setTimeout(function(){te(document,u+" "+Nt)[0]||(B(),E(),Vt(n,u+"-open"),F())},100)})},Gt?150:0)},this.setContent=function(t){ee("."+u+"-content",c).innerHTML=t},this.update=function(){C&&(D(),S(),k())},!i||h in i||ie(i,at,z),this[P]&&this.setContent(this[P]),!!i&&(i[h]=this)}};ue(h,Ce,i);var Ie=function(e,i){e=ee(e);var o=e[xt](S),a=e[xt](E),l=e[xt](D),r=e[xt](L),c=e[xt](k),u=e[xt](M),s="popover",f="template",d="trigger",h="class",m="div",v="fade",g="data-title",b="data-content",x="dismissible",T='',y=ne(e,".modal"),w=ne(e,Rt),C=ne(e,Ut);i=i||{},this[f]=i[f]?i[f]:null,this[d]=i[d]?i[d]:o||lt,this[q]=i[q]&&i[q]!==v?i[q]:a||v,this[z]=i[z]?i[z]:l||Ot,this[F]=parseInt(i[F]||c)||200,this[x]=!(!i[x]&&"true"!==r),this[R]=ee(i[R])?ee(i[R]):ee(u)?ee(u):w?w:C?C:y?y:n;var I=this,A=e[xt](g)||null,B=e[xt](b)||null;if(B||this[f]){var H=null,N=0,W=this[z],P=function(t){null!==H&&t[$]===ee(".close",H)&&I.hide()},j=function(){I[R].removeChild(H),N=null,H=null},O=function(){if(A=e[xt](g),B=e[xt](b),H=document.createElement(m),null!==B&&null===I[f]){if(H[Tt]("role","tooltip"),null!==A){var t=document.createElement("h3");t[Tt](h,s+"-title"),t.innerHTML=I[x]?A+T:A,H.appendChild(t)}var n=document.createElement(m),i=document.createElement(m);n[Tt](h,"arrow"),i[Tt](h,s+"-content"),H.appendChild(n),H.appendChild(i),i.innerHTML=I[x]&&null===A?B+T:B}else{var o=document.createElement(m);o.innerHTML=I[f],H.innerHTML=o.firstChild.innerHTML}I[R].appendChild(H),H[Bt].display="block",H[Tt](h,s+" "+W+" "+I[q])},U=function(){!Zt(H,Nt)&&Qt(H,Nt)},X=function(){me(e,H,W,I[R]),he(H)||(W=ve(W),me(e,H,W,I[R]))};this.toggle=function(){null===H?I.show():I.hide()},this.show=function(){clearTimeout(N),N=setTimeout(function(){null===H&&(W=I[z],O(),X(),U(),re.call(e,st,s),le(H,function(){re.call(e,ft,s)}))},20)},this.hide=function(){clearTimeout(N),N=setTimeout(function(){H&&null!==H&&Zt(H,Nt)&&(re.call(e,dt,s),Vt(H,Nt),le(H,function(){j(),re.call(e,ht,s)}))},I[F])},p in e||(I[d]===lt?(ie(e,Xt[0],I.show),I[x]||ie(e,Xt[1],I.hide)):/^(click|focus)$/.test(I[d])&&(ie(e,I[d],I.toggle),I[x]||ie(e,"blur",I.hide)),I[x]&&ie(document,at,P),!zt&&ie(t,ct,I.hide)),e[p]=I}};ue(p,Ie,i);var Ae=function(e,n){e=ee(e);var i=ee(e[xt](T));if(n=n||{},n[$]||i){for(var o,a=n[$]&&ee(n[$])||i,l=a&&a[wt]("A"),r=[],c=[],u=e[Z]=f&&d>o;if(!u&&h)"LI"!==n.tagName||Zt(n,Ht)||(Qt(n,Ht),u=!0,a&&!Zt(a,Ht)&&Qt(a,Ht),re.call(e,"activate","scrollspy",r[t]));else if(h){if(!h&&!u||u&&h)return}else"LI"===n.tagName&&Zt(n,Ht)&&(Vt(n,Ht),u=!1,a&&Zt(a,Ht)&&!te(n[St],Ht).length&&Vt(a,Ht))},g=function(){o=s?pe().y:e[G];for(var t=0,n=r[Et];t1&&(t=e[e[Et]-1]):t=e[0],t[wt]("A")[0]},h=function(){return ee(d()[xt]("href"))},p=function(t){t.preventDefault(),r=t[$][xt](i)===o||se.test(t[$][xt]("href"))?t[$]:t[$][St],u.show()};this.show=function(){var e=ee(r[xt]("href")),n=d(),i=h();n[l]&&r[l]||Zt(r[St],Ht)||(n[l]=r[l]=!0,Vt(n[St],Ht),Qt(r[St],Ht),f&&(Zt(t[St][St],"dropdown-menu")?Zt(f,Ht)||Qt(f,Ht):Zt(f,Ht)&&Vt(f,Ht)),c&&(c[Bt][a]=de(i)+"px"),function(){Vt(i,Nt),re.call(n,dt,o,r),function(){le(i,function(){Vt(i,Ht),Qt(e,Ht),setTimeout(function(){Qt(e,Nt),e[Z],c&&Qt(c,Wt),function(){re.call(r,st,o,n),function(){c&&(c[Bt][a]=de(e)+"px"),re.call(n,ht,o,r)}()}()},20)})}()}(),function(){le(e,function(){re.call(r,ft,o,n),c?!function(){le(c,function(){setTimeout(function(){c[Bt][a]="",Vt(c,Wt),n[l]=r[l]=!1},200)})}():n[l]=r[l]=!1})}())},v in t||ie(t,at,p),this[a]&&(c=h()[St]),t[v]=this}};ue(v,Le,i);var Se=function(t,e){t=ee(t);var i=t[xt](E);placementData=t[xt](D),delayData=t[xt](k),containerData=t[xt](M),component="tooltip",classString="class",title="title",fade="fade",div="div",modal=ne(t,".modal"),navbarFixedTop=ne(t,Rt),navbarFixedBottom=ne(t,Ut),e=e||{},this[q]=e[q]&&e[q]!==fade?e[q]:i||fade,this[z]=e[z]?e[z]:placementData||Ot,this[F]=parseInt(e[F]||delayData)||200,this[R]=ee(e[R])?ee(e[R]):ee(containerData)?ee(containerData):navbarFixedTop?navbarFixedTop:navbarFixedBottom?navbarFixedBottom:modal?modal:n;var o=this,a=0,l=this[z],r=null,c=t[xt](title)||t[xt](I);if(c){var u=function(){o[R].removeChild(r),r=null,a=null},s=function(){c=t[xt](title)||t[xt](I),r=document.createElement(div),r[Tt]("role",component);var e=document.createElement(div),n=document.createElement(div);e[Tt](classString,component+"-arrow"),n[Tt](classString,component+"-inner"),r.appendChild(e),r.appendChild(n),n.innerHTML=c,o[R].appendChild(r),r[Tt](classString,component+" "+l+" "+o[q])},f=function(){me(t,r,l,o[R]),he(r)||(l=ve(l),me(t,r,l,o[R]))},d=function(){!Zt(r,Nt)&&Qt(r,Nt)};this.show=function(){clearTimeout(a),a=setTimeout(function(){null===r&&(l=o[z],s(),f(),d(),re.call(t,st,component),le(r,function(){re.call(t,ft,component)}))},20)},this.hide=function(){clearTimeout(a),a=setTimeout(function(){r&&null!==r&&Zt(r,Nt)&&(re.call(t,dt,component),Vt(r,Nt),le(r,function(){u(),re.call(t,ht,component)}))},o[F])},this.toggle=function(){r?o.hide():o.show()},g in t||(t[Tt](I,c),t.removeAttribute(title),ie(t,Xt[0],this.show),ie(t,Xt[1],this.hide)),t[g]=this}};return ue(g,Se,i),{Affix:ge,Alert:be,Button:xe,Carousel:Te,Collapse:ye,Dropdown:we,Modal:Ce,Popover:Ie,ScrollSpy:Ae,Tab:Le,Tooltip:Se}}); +// Native Javascript for Bootstrap 3 v2.0.7 | © dnp_theme | MIT-License +!function(t,e){if("function"==typeof define&&define.amd)define([],e);else if("object"==typeof module&&module.exports)module.exports=e();else{var n=e();t.Affix=n.Affix,t.Alert=n.Alert,t.Button=n.Button,t.Carousel=n.Carousel,t.Collapse=n.Collapse,t.Dropdown=n.Dropdown,t.Modal=n.Modal,t.Popover=n.Popover,t.ScrollSpy=n.ScrollSpy,t.Tab=n.Tab,t.Tooltip=n.Tooltip}}(this,function(){var t="undefined"!=typeof global?global:this||window,e=document.documentElement,n=document.body,i="data-toggle",o="data-dismiss",a="data-spy",l="data-ride",r="Affix",c="Alert",u="Button",s="Carousel",f="Collapse",d="Dropdown",h="Modal",p="Popover",m="ScrollSpy",v="Tab",g="Tooltip",b="data-backdrop",x="data-keyboard",T="data-target",y="data-interval",w="data-height",C="data-pause",I="data-original-title",A="data-original-text",L="data-dismissible",E="data-trigger",M="data-animation",k="data-container",S="data-placement",H="data-delay",B="data-offset-top",D="data-offset-bottom",N="backdrop",W="keyboard",P="delay",$="content",j="target",O="interval",q="pause",z="animation",R="placement",U="container",X="offsetTop",Y="offsetBottom",F="offsetLeft",G="scrollTop",J="scrollLeft",K="clientWidth",Q="clientHeight",V="offsetWidth",Z="offsetHeight",_="innerWidth",tt="innerHeight",et="scrollHeight",nt="height",it="aria-expanded",ot="aria-hidden",at="click",lt="hover",rt="keydown",ct="resize",ut="scroll",st="show",ft="shown",dt="hide",ht="hidden",pt="close",mt="closed",vt="slid",gt="slide",bt="change",xt="getAttribute",Tt="setAttribute",yt="hasAttribute",wt="getElementsByTagName",Ct="getBoundingClientRect",It="querySelectorAll",At="getElementsByClassName",Lt="indexOf",Et="parentNode",Mt="length",kt="toLowerCase",St="Transition",Ht="Webkit",Bt="style",Dt="active",Nt="in",Wt="collapsing",Pt="disabled",$t="loading",jt="left",Ot="right",qt="top",zt="bottom",Rt=!("opacity"in n[Bt]),Ut="navbar-fixed-top",Xt="navbar-fixed-bottom",Yt="onmouseleave"in document?["mouseenter","mouseleave"]:["mouseover","mouseout"],Ft=/\b(top|bottom|left|top)+/,Gt=Ht+St in e[Bt]||St[kt]()in e[Bt],Jt=Ht+St in e[Bt]?Ht[kt]()+St+"End":St[kt]()+"end",Kt=function(t){t.focus?t.focus():t.setActive()},Qt=function(t,e){t.classList.add(e)},Vt=function(t,e){t.classList.remove(e)},Zt=function(t,e){return t.classList.contains(e)},_t=function(t){for(var e=[],n=0,i=t[Mt];n-1||l===r)&&new e(o[a])}},se=/^\#(.)+$/,fe=function(e){var n=e&&(e.currentStyle||t.getComputedStyle(e)),i=/px/.test(n.borderTopWidth)?Math.round(n.borderTopWidth.replace("px","")):0,o=/px/.test(n.borderBottomWidth)?Math.round(n.borderBottomWidth.replace("px","")):0,a=/px/.test(n.marginTop)?Math.round(n.marginTop.replace("px","")):0,l=/px/.test(n.marginBottom)?Math.round(n.marginBottom.replace("px","")):0;return e[Q]+parseInt(i)+parseInt(o)+parseInt(a)+parseInt(l)},de=function(t){for(var e=0,n=0,i=t.children[Mt];n=0&&i[jt]>=0&&i[zt]<=(t[tt]||e[Q])&&i[Ot]<=(t[_]||e[K])},pe=function(){return{y:t.pageYOffset||e[G],x:t.pageXOffset||e[J]}},me=function(t,e,i,o){var a=t[Ct](),l=o===n?pe():{x:o[F]+o[J],y:o[X]+o[G]},r={w:a[Ot]-a[jt],h:a[zt]-a[qt]},c={w:e[V],h:e[Z]};i===qt?(e[Bt][qt]=a[qt]+l.y-c.h+"px",e[Bt][jt]=a[jt]+l.x-c.w/2+r.w/2+"px"):i===zt?(e[Bt][qt]=a[qt]+l.y+r.h+"px",e[Bt][jt]=a[jt]+l.x-c.w/2+r.w/2+"px"):i===jt?(e[Bt][qt]=a[qt]+l.y-c.h/2+r.h/2+"px",e[Bt][jt]=a[jt]+l.x-c.w+"px"):i===Ot&&(e[Bt][qt]=a[qt]+l.y-c.h/2+r.h/2+"px",e[Bt][jt]=a[jt]+l.x+r.w+"px"),e.className[Lt](i)===-1&&(e.className=e.className.replace(Ft,i))},ve=function(t){return t===qt?zt:t===zt?qt:t===jt?Ot:t===Ot?jt:t},ge=function(i,o){i=ee(i),o=o||{};var a=i[xt](T),l=i[xt](B),c=i[xt](D),u="affix",s="affixed",f="function",d="update",h="affix-top",p="affixed-top",m="affix-bottom",v="affixed-bottom";if(this[j]=o[j]?ee(o[j]):ee(a)||null,this[X]=o[X]?o[X]:parseInt(l)||0,this[Y]=o[Y]?o[Y]:parseInt(c)||0,this[j]||this[X]||this[Y]){var g,b,x,y,w,C,I=this,A=Gt?50:500,L=!1,E=!1,M=function(){return Math.max(n[et],n[Z],e[Q],e[et],e[Z])},k=function(){return null!==I[j]?I[j][Ct]()[qt]+y:I[X]?parseInt(typeof I[X]===f?I[X]():I[X]||0):void 0},S=function(){if(I[Y])return x-i[Z]-parseInt(typeof I[Y]===f?I[Y]():I[Y]||0)},H=function(){x=M(),y=parseInt(pe().y,0),g=k(),b=S(),w=parseInt(g)-y<0&&y>parseInt(g),C=parseInt(b)-y<0&&y>parseInt(b)},N=function(){L||Zt(i,u)||(re.call(i,u,u),re.call(i,h,u),Qt(i,u),L=!0,re.call(i,s,u),re.call(i,p,u))},W=function(){L&&Zt(i,u)&&(Vt(i,u),L=!1)},P=function(){E||Zt(i,m)||(re.call(i,u,u),re.call(i,m,u),Qt(i,m),E=!0,re.call(i,s,u),re.call(i,v,u))},$=function(){E&&Zt(i,m)&&(Vt(i,m),E=!1)},O=function(){C?(w&&W(),P()):($(),w?N():W())};this[d]=function(){H(),O()},r in i||(ie(t,ut,this[d]),ie(t,ct,function(){setTimeout(function(){I[d]()},A)})),i[r]=this,this[d]()}};ue(r,ge,a);var be=function(t){t=ee(t);var e=this,n="alert",i=ne(t,"."+n),a=function(a){var l=a[j];l=l[yt](o)?l:l[Et],l&&l[yt](o)&&(i=ne(l,"."+n),t=ee("["+o+'="'+n+'"]',i),(t===l||t===l[Et])&&i&&e.close())},l=function(){re.call(i,mt,n),oe(t,at,a),i[Et].removeChild(i)};this.close=function(){i&&t&&Zt(i,Nt)&&(re.call(i,pt,n),Vt(i,Nt),function(){i&&le(i,l)}())},c in t||ie(t,at,a),t[c]=this};ue(c,be,o);var xe=function(t,e){t=ee(t),e=e||null;var n=!1,i="button",o="checked",a="reset",l="LABEL",r="INPUT",c=function(){e&&e!==a&&(e===$t&&(Qt(t,Pt),t[Tt](Pt,Pt)),t[Tt](A,t.innerHTML.replace(/^\s+|\s+$/g,"")),t.innerHTML=t[xt]("data-"+e+"-text"))},s=function(){t[xt](A)&&((Zt(t,Pt)||t[xt](Pt)===Pt)&&(Vt(t,Pt),t.removeAttribute(Pt)),t.innerHTML=t[xt](A))},f=function(e){var a=e[j][Et],c=e[j].tagName===l?e[j]:a.tagName===l?a:null;if(c){var u=this,s=te(u,"btn"),f=c[wt](r)[0];if(f){if("checkbox"===f.type&&(f[o]?(Vt(c,Dt),f[xt](o),f.removeAttribute(o),f[o]=!1):(Qt(c,Dt),f[xt](o),f[Tt](o,o),f[o]=!0),n||(n=!0,re.call(f,bt,i),re.call(t,bt,i))),"radio"===f.type&&!n&&!f[o]){Qt(c,Dt),f[Tt](o,o),f[o]=!0,re.call(f,bt,i),re.call(t,bt,i),n=!0;for(var d=0,h=s[Mt];dd||n===v-1&&0===d)&&(g=f[c]=Ot),f.slideTo(d)}},k=function(t){if(t.preventDefault(),!p){var e=t.currentTarget||t.srcElement;e===w?(d++,g=f[c]=jt,d===v-1?d=v-1:d===v&&(d=0)):e===T&&(d--,g=f[c]=Ot,0===d?d=0:d<0&&(d=v-1)),f.slideTo(d)}},S=function(t){if(!p){switch(t.which){case 39:d++,g=f[c]=jt,d==v-1?d=v-1:d==v&&(d=0);break;case 37:d--,g=f[c]=Ot,0==d?d=0:d<0&&(d=v-1);break;default:return}f.slideTo(d)}},H=function(t){for(var e=0,n=A[Mt];e-1)&&(n.persist||l))return;c=null,m()}(/\#$/.test(r.href)||r[Et]&&/\#$/.test(r[Et].href))&&e.preventDefault()},p=function(){re.call(a,st,l,c),Qt(a,r),u[Tt](it,!0),re.call(a,ft,l,c),ie(document,rt,f),o=!0},m=function(){re.call(a,dt,l,c),Vt(a,r),u[Tt](it,!1),re.call(a,ht,l,c),oe(document,rt,f),o=!1};this.toggle=function(){Zt(a,r)&&o?m():p()},d in t||(u[Tt]("tabindex","0"),ie(document,at,h)),t[d]=this};ue(d,we,i);var Ce=function(i,a){i=ee(i);var l=i[xt](T)||i[xt]("href"),r=ee(l),c=Zt(i,"modal")?i:r,u="modal",s="static",f="paddingLeft",d="paddingRight",p="modal-backdrop";if(Zt(i,"modal")&&(i=null),c){a=a||{},this[W]=a[W]!==!1&&"false"!==c[xt](x),this[N]=a[N]!==s&&c[xt](b)!==s||s,this[N]=a[N]!==!1&&"false"!==c[xt](b)&&this[N],this[$]=a[$];var m,v,g,y,w=this,C=this.open=!1,I=null,A=te(e,Ut).concat(te(e,Xt)),L=function(){var n=e[Ct]();return t[_]||n[Ot]-Math.abs(n[jt])},E=function(){var e,i=n.currentStyle||t.getComputedStyle(n),o=parseInt(i[d],10);if(m&&(n[Bt][d]=o+g+"px",A[Mt]))for(var a=0;ae[Q],g=k()},H=function(){c[Bt][f]=!m&&v?g+"px":"",c[Bt][d]=m&&!v?g+"px":""},B=function(){c[Bt][f]="",c[Bt][d]=""},D=function(){var t=document.createElement("div");y=ee("."+p),null===y&&(t[Tt]("class",p+" fade"),y=t,n.appendChild(y))},P=function(){y=ee("."+p),y&&null!==y&&"object"==typeof y&&(n.removeChild(y),y=null)},O=function(){Zt(c,Nt)?oe(document,rt,U):ie(document,rt,U)},q=function(){Zt(c,Nt)?oe(t,ct,w.update):ie(t,ct,w.update)},z=function(){Zt(c,Nt)?oe(c,at,X):ie(c,at,X)},R=function(t){var e=t[j];e=e[yt](T)||e[yt]("href")?e:e[Et],C||e!==i||Zt(c,Nt)||(c.modalTrigger=i,I=i,w.show(),t.preventDefault())},U=function(t){var e=t.which||t.keyCode;w[W]&&27==e&&C&&w.hide()},X=function(t){var e=t[j];C&&(e[Et][xt](o)===u||e[xt](o)===u||e===c&&w[N]!==s)&&(w.hide(),I=null,t.preventDefault())};this.toggle=function(){C&&Zt(c,Nt)?this.hide():this.show()},this.show=function(){re.call(c,st,u,I);var t=te(document,u+" in")[0];t&&t!==c&&t.modalTrigger[h].hide(),this[N]&&D(),y&&!Zt(y,Nt)&&setTimeout(function(){Qt(y,Nt)},0),setTimeout(function(){c[Bt].display="block",S(),E(),H(),q(),z(),O(),Qt(n,u+"-open"),Qt(c,Nt),c[Tt](ot,!1),le(c,function(){C=w.open=!0,Kt(c),re.call(c,ft,u,I)})},Gt?150:0)},this.hide=function(){re.call(c,dt,u),y=ee("."+p),Vt(c,Nt),c[Tt](ot,!0),!!y&&Vt(y,Nt),setTimeout(function(){le(c,function(){q(),z(),O(),c[Bt].display="",C=w.open=!1,i&&Kt(i),re.call(c,ht,u),setTimeout(function(){te(document,u+" "+Nt)[0]||(B(),M(),Vt(n,u+"-open"),P())},100)})},Gt?150:0)},this.setContent=function(t){ee("."+u+"-content",c).innerHTML=t},this.update=function(){C&&(S(),E(),H())},!i||h in i||ie(i,at,R),this[$]&&this.setContent(this[$]),!!i&&(i[h]=this)}};ue(h,Ce,i);var Ie=function(e,i){e=ee(e);var o=e[xt](E),a=e[xt](M),l=e[xt](S),r=e[xt](L),c=e[xt](H),u=e[xt](k),s="popover",f="template",d="trigger",h="class",m="div",v="fade",g="data-title",b="data-content",x="dismissible",T='',y=ne(e,".modal"),w=ne(e,"."+Ut),C=ne(e,"."+Xt);i=i||{},this[f]=i[f]?i[f]:null,this[d]=i[d]?i[d]:o||lt,this[z]=i[z]&&i[z]!==v?i[z]:a||v,this[R]=i[R]?i[R]:l||qt,this[P]=parseInt(i[P]||c)||200,this[x]=!(!i[x]&&"true"!==r),this[U]=ee(i[U])?ee(i[U]):ee(u)?ee(u):w?w:C?C:y?y:n;var I=this,A=e[xt](g)||null,B=e[xt](b)||null;if(B||this[f]){var D=null,N=0,W=this[R],$=function(t){null!==D&&t[j]===ee(".close",D)&&I.hide()},O=function(){I[U].removeChild(D),N=null,D=null},q=function(){if(A=e[xt](g),B=e[xt](b),D=document.createElement(m),null!==B&&null===I[f]){if(D[Tt]("role","tooltip"),null!==A){var t=document.createElement("h3");t[Tt](h,s+"-title"),t.innerHTML=I[x]?A+T:A,D.appendChild(t)}var n=document.createElement(m),i=document.createElement(m);n[Tt](h,"arrow"),i[Tt](h,s+"-content"),D.appendChild(n),D.appendChild(i),i.innerHTML=I[x]&&null===A?B+T:B}else{var o=document.createElement(m);o.innerHTML=I[f],D.innerHTML=o.firstChild.innerHTML}I[U].appendChild(D),D[Bt].display="block",D[Tt](h,s+" "+W+" "+I[z])},X=function(){!Zt(D,Nt)&&Qt(D,Nt)},Y=function(){me(e,D,W,I[U]),he(D)||(W=ve(W),me(e,D,W,I[U]))};this.toggle=function(){null===D?I.show():I.hide()},this.show=function(){clearTimeout(N),N=setTimeout(function(){null===D&&(W=I[R],q(),Y(),X(),re.call(e,st,s),le(D,function(){re.call(e,ft,s)}))},20)},this.hide=function(){clearTimeout(N),N=setTimeout(function(){D&&null!==D&&Zt(D,Nt)&&(re.call(e,dt,s),Vt(D,Nt),le(D,function(){O(),re.call(e,ht,s)}))},I[P])},p in e||(I[d]===lt?(ie(e,Yt[0],I.show),I[x]||ie(e,Yt[1],I.hide)):/^(click|focus)$/.test(I[d])&&(ie(e,I[d],I.toggle),I[x]||ie(e,"blur",I.hide)),I[x]&&ie(document,at,$),!Rt&&ie(t,ct,I.hide)),e[p]=I}};ue(p,Ie,i);var Ae=function(e,n){e=ee(e);var i=ee(e[xt](T));if(n=n||{},n[j]||i){for(var o,a=n[j]&&ee(n[j])||i,l=a&&a[wt]("A"),r=[],c=[],u=e[Z]=f&&d>o;if(!u&&h)"LI"!==n.tagName||Zt(n,Dt)||(Qt(n,Dt),u=!0,a&&!Zt(a,Dt)&&Qt(a,Dt),re.call(e,"activate","scrollspy",r[t]));else if(h){if(!h&&!u||u&&h)return}else"LI"===n.tagName&&Zt(n,Dt)&&(Vt(n,Dt),u=!1,a&&Zt(a,Dt)&&!te(n[Et],Dt).length&&Vt(a,Dt))},g=function(){o=s?pe().y:e[G];for(var t=0,n=r[Mt];t1&&(t=e[e[Mt]-1]):t=e[0],t[wt]("A")[0]},h=function(){return ee(d()[xt]("href"))},p=function(t){t.preventDefault(),r=t[j][xt](i)===o||se.test(t[j][xt]("href"))?t[j]:t[j][Et],u.show()};this.show=function(){var e=ee(r[xt]("href")),n=d(),i=h();n[l]&&r[l]||Zt(r[Et],Dt)||(n[l]=r[l]=!0,Vt(n[Et],Dt),Qt(r[Et],Dt),f&&(Zt(t[Et][Et],"dropdown-menu")?Zt(f,Dt)||Qt(f,Dt):Zt(f,Dt)&&Vt(f,Dt)),c&&(c[Bt][a]=de(i)+"px"),function(){Vt(i,Nt),re.call(n,dt,o,r),function(){le(i,function(){Vt(i,Dt),Qt(e,Dt),setTimeout(function(){Qt(e,Nt),e[Z],c&&Qt(c,Wt),function(){re.call(r,st,o,n),function(){c&&(c[Bt][a]=de(e)+"px"),re.call(n,ht,o,r)}()}()},20)})}()}(),function(){le(e,function(){re.call(r,ft,o,n),c?!function(){le(c,function(){setTimeout(function(){c[Bt][a]="",Vt(c,Wt),n[l]=r[l]=!1},200)})}():n[l]=r[l]=!1})}())},v in t||ie(t,at,p),this[a]&&(c=h()[Et]),t[v]=this}};ue(v,Le,i);var Ee=function(t,e){t=ee(t);var i=t[xt](M),o=t[xt](S),a=t[xt](H),l=t[xt](k),r="tooltip",c="class",u="title",s="fade",f="div",d=ne(t,".modal"),h=ne(t,"."+Ut),p=ne(t,"."+Xt);e=e||{},this[z]=e[z]&&e[z]!==s?e[z]:i||s,this[R]=e[R]?e[R]:o||qt,this[P]=parseInt(e[P]||a)||200,this[U]=ee(e[U])?ee(e[U]):ee(l)?ee(l):h?h:p?p:d?d:n;var m=this,v=0,b=this[R],x=null,T=t[xt](u)||t[xt](I);if(T){var y=function(){m[U].removeChild(x),x=null,v=null},w=function(){T=t[xt](u)||t[xt](I),x=document.createElement(f),x[Tt]("role",r);var e=document.createElement(f),n=document.createElement(f);e[Tt](c,r+"-arrow"),n[Tt](c,r+"-inner"),x.appendChild(e),x.appendChild(n),n.innerHTML=T,m[U].appendChild(x),x[Tt](c,r+" "+b+" "+m[z])},C=function(){me(t,x,b,m[U]),he(x)||(b=ve(b),me(t,x,b,m[U]))},A=function(){!Zt(x,Nt)&&Qt(x,Nt)};this.show=function(){clearTimeout(v),v=setTimeout(function(){null===x&&(b=m[R],w(),C(),A(),re.call(t,st,r),le(x,function(){re.call(t,ft,r)}))},20)},this.hide=function(){clearTimeout(v),v=setTimeout(function(){x&&null!==x&&Zt(x,Nt)&&(re.call(t,dt,r),Vt(x,Nt),le(x,function(){y(),re.call(t,ht,r)}))},m[P])},this.toggle=function(){x?m.hide():m.show()},g in t||(t[Tt](I,T),t.removeAttribute(u),ie(t,Yt[0],this.show),ie(t,Yt[1],this.hide)),t[g]=this}};return ue(g,Ee,i),{Affix:ge,Alert:be,Button:xe,Carousel:Te,Collapse:ye,Dropdown:we,Modal:Ce,Popover:Ie,ScrollSpy:Ae,Tab:Le,Tooltip:Ee}});