diff --git a/dist/bootstrap-native-v4.js b/dist/bootstrap-native-v4.js
index 419e33e2..ba20b510 100644
--- a/dist/bootstrap-native-v4.js
+++ b/dist/bootstrap-native-v4.js
@@ -215,12 +215,12 @@
var duration = supportTransitions ? globalObject[getComputedStyle](element)[transitionDuration] : 0;
duration = parseFloat(duration);
duration = typeof duration === 'number' && !isNaN(duration) ? duration * 1000 : 0;
- return duration + 17; // we take a short offset to make sure we fire on the next frame after animation
+ return duration; // 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
var called = 0, duration = getTransitionDurationFromElement(element);
- supportTransitions ? one(element, transitionEndEvent, function(e){ !called && handler(e), called = 1; })
- : setTimeout(function() { !called && handler(), called = 1; }, duration);
+ duration ? one(element, transitionEndEvent, function(e){ !called && handler(e), called = 1; })
+ : setTimeout(function() { !called && handler(), called = 1; }, 17);
},
bootstrapCustomEvent = function (eventName, componentName, related) {
var OriginalCustomEvent = new CustomEvent( eventName + '.bs.' + componentName);
diff --git a/dist/bootstrap-native-v4.min.js b/dist/bootstrap-native-v4.min.js
index 74793108..e8266904 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.26 | © dnp_theme | MIT-License
-!function(t,e){if("function"==typeof define&&define.amd)define([],e);else if("object"==typeof module&&module.exports)module.exports=e();else{var i=e();t.Alert=i.Alert,t.Button=i.Button,t.Carousel=i.Carousel,t.Collapse=i.Collapse,t.Dropdown=i.Dropdown,t.Modal=i.Modal,t.Popover=i.Popover,t.ScrollSpy=i.ScrollSpy,t.Tab=i.Tab,t.Toast=i.Toast,t.Tooltip=i.Tooltip}}(this,function(){"use strict";var t="undefined"!=typeof global?global:this||window,e=document,i=e.documentElement,o="body",n=t.BSN={},a=n.supports=[],l="delay",r="target",s="animation",c="getAttribute",d="setAttribute",h="parentNode",u="length",f="Transition",p="Webkit",g="style",m="push",v="active",w="left",b="top",T="onmouseleave"in e?["mouseenter","mouseleave"]:["mouseover","mouseout"],y=/\b(top|bottom|left|right)+/,k=0,C=p+f in i[g]||f.toLowerCase()in i[g],x=p+f in i[g]?p.toLowerCase()+f+"End":f.toLowerCase()+"end",A=p+"Duration"in i[g]?p.toLowerCase()+f+"Duration":f.toLowerCase()+"Duration",E=function(t){t.focus?t.focus():t.setActive()},L=function(t,e){t.classList.add(e)},N=function(t,e){t.classList.remove(e)},D=function(t,e){return t.classList.contains(e)},H=function(t,e){return[].slice.call(t.getElementsByClassName(e))},B=function(t,i){var o=i||e;return"object"==typeof t?t:o.querySelector(t)},I=function(t,i){var o=i.charAt(0),n=i.substr(1);if("."===o){for(;t&&t!==e;t=t[h])if(null!==B(i,t[h])&&D(t,n))return t}else if("#"===o)for(;t&&t!==e;t=t[h])if(t.id===n)return t;return!1},M=function(t,e,i){t.addEventListener(e,i,!1)},S=function(t,e,i){t.removeEventListener(e,i,!1)},W=function(t,e,i){M(t,e,function o(n){i(n),S(t,e,o)})},R=function(e){var i=C?t.getComputedStyle(e)[A]:0;return i=parseFloat(i),(i="number"!=typeof i||isNaN(i)?0:1e3*i)+17},P=function(t,e){var i=0,o=R(t);C?W(t,x,function(t){!i&&e(t),i=1}):setTimeout(function(){!i&&e(),i=1},o)},z=function(t,e,i){var o=new CustomEvent(t+".bs."+e);o.relatedTarget=i,this.dispatchEvent(o)},O=function(){return{y:t.pageYOffset||i.scrollTop,x:t.pageXOffset||i.scrollLeft}},j=function(t,n,a,l){var r,s,c,d,h,u,f={w:n.offsetWidth,h:n.offsetHeight},p=i.clientWidth||e[o].clientWidth,m=i.clientHeight||e[o].clientHeight,v=t.getBoundingClientRect(),T=l===e[o]?O():{x:l.offsetLeft+l.scrollLeft,y:l.offsetTop+l.scrollTop},k={w:v.right-v[w],h:v.bottom-v[b]},C=D(n,"popover"),x=B(".arrow",n),A=v[b]+k.h/2-f.h/2<0,E=v[w]+k.w/2-f.w/2<0,L=v[w]+f.w/2+k.w/2>=p,N=v[b]+f.h/2+k.h/2>=m,H=v[b]-f.h<0,I=v[w]-f.w<0,M=v[b]+f.h+k.h>=m,S=v[w]+f.w+k.w>=p;a=(a===w||"right"===a)&&I&&S?b:a,a=a===b&&H?"bottom":a,a="bottom"===a&&M?b:a,a=a===w&&I?"right":a,a="right"===a&&S?w:a,-1===n.className.indexOf(a)&&(n.className=n.className.replace(y,a)),h=x.offsetWidth,u=x.offsetHeight,a===w||"right"===a?(s=a===w?v[w]+T.x-f.w-(C?h:0):v[w]+T.x+k.w,A?(r=v[b]+T.y,c=k.h/2-h):N?(r=v[b]+T.y-f.h+k.h,c=f.h-k.h/2-h):(r=v[b]+T.y-f.h/2+k.h/2,c=f.h/2-(C?.9*u:u/2))):a!==b&&"bottom"!==a||(r=a===b?v[b]+T.y-f.h-(C?u:0):v[b]+T.y+k.h,E?(s=0,d=v[w]+k.w/2-h):L?(s=p-1.01*f.w,d=f.w-(p-v[w])+k.w/2-h/2):(s=v[w]+T.x-f.w/2+k.w/2,d=f.w/2-h/2)),n[g][b]=r+"px",n[g][w]=s+"px",c&&(x[g][b]=c+"px"),d&&(x[g][w]=d+"px")};n.version="2.0.26";var U=function(t){t=B(t);var e=this,i=I(t,".alert"),o=function(){D(i,"fade")?P(i,a):a()},n=function(o){i=I(o[r],".alert"),(t=B('[data-dismiss="alert"]',i))&&i&&(t===o[r]||t.contains(o[r]))&&e.close()},a=function(){z.call(i,"closed","alert"),S(t,"click",n),i[h].removeChild(i)};this.close=function(){i&&t&&D(i,"show")&&(z.call(i,"close","alert"),N(i,"show"),i&&o())},"Alert"in t||M(t,"click",n),t.Alert=e};a[m](["Alert",U,'[data-dismiss="alert"]']);var q=function(t){t=B(t);var i=!1,o="checked",n=function(t){32===(t.which||t.keyCode)&&t[r]===e.activeElement&&l(t)},a=function(t){32===(t.which||t.keyCode)&&t.preventDefault()},l=function(e){var n="LABEL"===e[r].tagName?e[r]:"LABEL"===e[r][h].tagName?e[r][h]:null;if(n){var a=e[r],l=H(a[h],"btn"),s=n.getElementsByTagName("INPUT")[0];if(s){if("checkbox"===s.type&&(s[o]?(N(n,v),s[c](o),s.removeAttribute(o),s[o]=!1):(L(n,v),s[c](o),s[d](o,o),s[o]=!0),i||(i=!0,z.call(s,"change","button"),z.call(t,"change","button"))),"radio"===s.type&&!i&&!s[o]){L(n,v),s[d](o,o),s[o]=!0,z.call(s,"change","button"),z.call(t,"change","button"),i=!0;for(var f=0,p=l[u];f
=0},F=function(t){for(var e=0,i=S[u];et||n===k-1&&0===t)&&(x=f.direction="right"),t<0?t=k-1:t>=k&&(t=0),p=t,i=x===w?"next":"prev",z.call(o,"slide","carousel",y[t]),m=!0,clearInterval(g),g=null,F(t),C&&D(o,"slide")?(L(y[t],"carousel-item-"+i),y[t].offsetWidth,L(y[t],"carousel-item-"+x),L(y[n],"carousel-item-"+x),P(y[t],function(a){var l=a&&a[r]!==y[t]?1e3*a.elapsedTime+100:20;m&&setTimeout(function(){m=!1,L(y[t],v),N(y[n],v),N(y[t],"carousel-item-"+i),N(y[t],"carousel-item-"+x),N(y[n],"carousel-item-"+x),z.call(o,"slid","carousel",y[t]),e.hidden||!f.interval||D(o,"paused")||f.cycle()},l)})):(L(y[t],v),y[t].offsetWidth,N(y[n],v),setTimeout(function(){m=!1,f.interval&&!D(o,"paused")&&f.cycle(),z.call(o,"slid","carousel",y[t])},100)))}},this.getActiveIndex=function(){return y.indexOf(H(o,"carousel-item active")[0])||0},"Carousel"in o||(f.pause&&f.interval&&(M(o,T[0],W),M(o,T[1],R),M(o,"touchstart",W),M(o,"touchend",R)),E&&M(E,"click",j),A&&M(A,"click",j),I&&M(I,"click",O),!0===f.keyboard&&M(t,"keydown",U)),f.getActiveIndex()<0&&(y[u]&&L(y[0],v),S[u]&&F(0)),f.interval&&f.cycle(),o.Carousel=f}};a[m](["Carousel",F,'[data-ride="carousel"]']);var X=function(t,e){t=B(t),e=e||{};var i,o,n=null,a=null,l=this,r=t[c]("data-parent"),s=function(t,e){z.call(t,"show","collapse"),t.isAnimating=!0,L(t,"collapsing"),N(t,"collapse"),t[g].height=t.scrollHeight+"px",P(t,function(){t.isAnimating=!1,t[d]("aria-expanded","true"),e[d]("aria-expanded","true"),N(t,"collapsing"),L(t,"collapse"),L(t,"show"),t[g].height="",z.call(t,"shown","collapse")})},h=function(t,e){z.call(t,"hide","collapse"),t.isAnimating=!0,t[g].height=t.scrollHeight+"px",N(t,"collapse"),N(t,"show"),L(t,"collapsing"),t.offsetWidth,t[g].height="0px",P(t,function(){t.isAnimating=!1,t[d]("aria-expanded","false"),e[d]("aria-expanded","false"),N(t,"collapsing"),L(t,"collapse"),t[g].height="",z.call(t,"hidden","collapse")})};this.toggle=function(t){t.preventDefault(),D(a,"show")?l.hide():l.show()},this.hide=function(){a.isAnimating||(h(a,t),L(t,"collapsed"))},this.show=function(){n&&(i=B(".collapse.show",n),o=i&&(B('[data-toggle="collapse"][data-target="#'+i.id+'"]',n)||B('[data-toggle="collapse"][href="#'+i.id+'"]',n))),(!a.isAnimating||i&&!i.isAnimating)&&(o&&i!==a&&(h(i,o),L(o,"collapsed")),s(a,t),N(t,"collapsed"))},"Collapse"in t||M(t,"click",l.toggle),a=function(){var e=t.href&&t[c]("href"),i=t[c]("data-target"),o=e||i&&"#"===i.charAt(0)&&i;return o&&B(o)}(),a.isAnimating=!1,n=B(e.parent)||r&&I(t,r),t.Collapse=l};a[m](["Collapse",X,'[data-toggle="collapse"]']);var Y=function(t,i){t=B(t),this.persist=!0===i||"true"===t[c]("data-persist")||!1;var o=this,n=t[h],a=null,l=B(".dropdown-menu",n),s=function(){for(var t=l.children,e=[],i=0;i1?c-1:0:40===n&&c×',w=B(n.container),y=B(m),k=I(i,".modal"),C=I(i,".fixed-top"),x=I(i,".fixed-bottom");this.template=n.template?n.template:null,this.trigger=n.trigger?n.trigger:a||"hover",this[s]=n[s]&&"fade"!==n[s]?n[s]:h||"fade",this.placement=n.placement?n.placement:u||b,this[l]=parseInt(n[l]||p)||200,this.dismissible=!(!n.dismissible&&"true"!==f),this.container=w||(y||(C||(x||(k||e[o]))));var A=this,E=i[c]("data-title")||null,H=i[c]("data-content")||null;if(H||this.template){var W=null,R=0,O=this.placement,U=function(t){null!==W&&t[r]===B(".close",W)&&A.hide()},q=function(){A.container.removeChild(W),R=null,W=null},F=function(){E=i[c]("data-title"),H=i[c]("data-content"),W=e.createElement("div");var t=e.createElement("div");if(t[d]("class","arrow"),W.appendChild(t),null!==H&&null===A.template){if(W[d]("role","tooltip"),null!==E){var o=e.createElement("h3");o[d]("class","popover-header"),o.innerHTML=A.dismissible?E+v:E,W.appendChild(o)}var n=e.createElement("div");n[d]("class","popover-body"),n.innerHTML=A.dismissible&&null===E?H+v:H,W.appendChild(n)}else{var a=e.createElement("div");a.innerHTML=A.template,W.innerHTML=a.firstChild.innerHTML}A.container.appendChild(W),W[g].display="block",W[d]("class","popover bs-popover-"+O+" "+A[s])},X=function(){!D(W,"show")&&L(W,"show")},Y=function(){j(i,W,O,A.container)},G=function(o){"click"!=A.trigger&&"focus"!=A.trigger||!A.dismissible&&o(i,"blur",A.hide),A.dismissible&&o(e,"click",U),o(t,"resize",A.hide)},J=function(){G(M),z.call(i,"shown","popover")},K=function(){G(S),q(),z.call(i,"hidden","popover")};this.toggle=function(){null===W?A.show():A.hide()},this.show=function(){clearTimeout(R),R=setTimeout(function(){null===W&&(O=A.placement,F(),Y(),X(),z.call(i,"show","popover"),A[s]?P(W,J):J())},20)},this.hide=function(){clearTimeout(R),R=setTimeout(function(){W&&null!==W&&D(W,"show")&&(z.call(i,"hide","popover"),N(W,"show"),A[s]?P(W,K):K())},A[l])},"Popover"in i||("hover"===A.trigger?(M(i,T[0],A.show),A.dismissible||M(i,T[1],A.hide)):"click"!=A.trigger&&"focus"!=A.trigger||M(i,A.trigger,A.toggle)),i.Popover=A}};a[m](["Popover",J,'[data-toggle="popover"]']);var K=function(e,i){e=B(e);var o=B(e[c]("data-target")),n=e[c]("data-offset");if(i=i||{},i[r]||o){for(var a,l=this,s=i[r]&&B(i[r])||o,d=s&&s.getElementsByTagName("A"),f=parseInt(n||i.offset)||10,p=[],g=[],w=e.offsetHeight=c&&d>a;if(!s&&u)D(i,v)||(L(i,v),l&&!D(l,v)&&L(l,v),z.call(e,"activate","scrollspy",p[t]));else if(u){if(!u&&!s||s&&u)return}else D(i,v)&&(N(i,v),l&&D(l,v)&&!H(i[h],v).length&&N(l,v))},E=function(){a=T?O().y:e.scrollTop;for(var t=0,i=p[u];t1&&(t=e[e[u]-1]):t=e[0],t},E=function(){return B(A()[c]("href"))},S=function(t){t.preventDefault(),o=t.currentTarget,!m.isAnimating&&!D(o,v)&&p.show()};this.show=function(){o=o||t,l=B(o[c]("href")),n=A(),a=E(),m.isAnimating=!0,N(n,v),n[d]("aria-selected","false"),L(o,v),o[d]("aria-selected","true"),T&&(D(t[h],"dropdown-menu")?D(T,v)||L(T,v):D(T,v)&&N(T,v)),z.call(n,"hide","tab",o),D(a,"fade")?(N(a,"show"),P(a,x)):x()},"Tab"in t||M(t,"click",S),p.height&&(b=E()[h]),t.Tab=p}};a[m](["Tab",Q,'[data-toggle="tab"]']);var V=function(t,e){t=B(t),e=e||{};var i=t[c]("data-animation"),o=t[c]("data-autohide"),n=t[c]("data-delay");this.animation=!1===e.animation||"false"===i?0:1,this.autohide=!1===e.autohide||"false"===o?0:1,this[l]=parseInt(e[l]||n)||500;var a=this,r=0,s=I(t,".toast"),d=function(){N(s,"showing"),L(s,"show"),z.call(s,"shown","toast"),a.autohide&&a.hide()},h=function(){L(s,"hide"),z.call(s,"hidden","toast")},u=function(){N(s,"show"),a.animation?P(s,h):h()},f=function(){clearTimeout(r),r=null,L(s,"hide"),S(t,"click",a.hide),t.Toast=null,t=null,s=null};this.show=function(){s&&(z.call(s,"show","toast"),a.animation&&L(s,"fade"),N(s,"hide"),L(s,"showing"),a.animation?P(s,d):d())},this.hide=function(t){s&&D(s,"show")&&(z.call(s,"hide","toast"),t?u():r=setTimeout(u,a[l]))},this.dispose=function(){s&&D(s,"show")&&(N(s,"show"),a.animation?P(s,f):f())},"Toast"in t||M(t,"click",a.hide),t.Toast=a};a[m](["Toast",V,'[data-dismiss="toast"]']);var Z=function(i,n){i=B(i),n=n||{};var a=i[c]("data-animation"),r=i[c]("data-placement"),h=i[c]("data-delay"),u=i[c]("data-container"),f=B(n.container),p=B(u),g=I(i,".modal"),m=I(i,".fixed-top"),v=I(i,".fixed-bottom");this[s]=n[s]&&"fade"!==n[s]?n[s]:a||"fade",this.placement=n.placement?n.placement:r||b,this[l]=parseInt(n[l]||h)||200,this.container=f||(p||(m||(v||(g||e[o]))));var w=this,y=0,k=this.placement,C=null,x=i[c]("title")||i[c]("data-title")||i[c]("data-original-title");if(x&&""!=x){var A=function(){w.container.removeChild(C),C=null,y=null},E=function(){if(!(x=i[c]("title")||i[c]("data-title")||i[c]("data-original-title"))||""==x)return!1;C=e.createElement("div"),C[d]("role","tooltip");var t=e.createElement("div");t[d]("class","arrow"),C.appendChild(t);var o=e.createElement("div");o[d]("class","tooltip-inner"),C.appendChild(o),o.innerHTML=x,w.container.appendChild(C),C[d]("class","tooltip bs-tooltip-"+k+" "+w[s])},H=function(){j(i,C,k,w.container)},W=function(){!D(C,"show")&&L(C,"show")},R=function(){M(t,"resize",w.hide),z.call(i,"shown","tooltip")},O=function(){S(t,"resize",w.hide),A(),z.call(i,"hidden","tooltip")};this.show=function(){clearTimeout(y),y=setTimeout(function(){if(null===C){if(k=w.placement,0==E())return;H(),W(),z.call(i,"show","tooltip"),w[s]?P(C,R):R()}},20)},this.hide=function(){clearTimeout(y),y=setTimeout(function(){C&&D(C,"show")&&(z.call(i,"hide","tooltip"),N(C,"show"),w[s]?P(C,O):O())},w[l])},this.toggle=function(){C?w.hide():w.show()},"Tooltip"in i||(i[d]("data-original-title",x),i.removeAttribute("title"),M(i,T[0],w.show),M(i,T[1],w.hide)),i.Tooltip=w}};a[m](["Tooltip",Z,'[data-toggle="tooltip"]']);var $=function(t,e){for(var i=0,o=e[u];i=p,N=v[b]+f.h/2+k.h/2>=m,H=v[b]-f.h<0,I=v[w]-f.w<0,M=v[b]+f.h+k.h>=m,S=v[w]+f.w+k.w>=p;a=(a===w||"right"===a)&&I&&S?b:a,a=a===b&&H?"bottom":a,a="bottom"===a&&M?b:a,a=a===w&&I?"right":a,a="right"===a&&S?w:a,-1===n.className.indexOf(a)&&(n.className=n.className.replace(y,a)),h=x.offsetWidth,u=x.offsetHeight,a===w||"right"===a?(s=a===w?v[w]+T.x-f.w-(C?h:0):v[w]+T.x+k.w,A?(r=v[b]+T.y,c=k.h/2-h):N?(r=v[b]+T.y-f.h+k.h,c=f.h-k.h/2-h):(r=v[b]+T.y-f.h/2+k.h/2,c=f.h/2-(C?.9*u:u/2))):a!==b&&"bottom"!==a||(r=a===b?v[b]+T.y-f.h-(C?u:0):v[b]+T.y+k.h,E?(s=0,d=v[w]+k.w/2-h):L?(s=p-1.01*f.w,d=f.w-(p-v[w])+k.w/2-h/2):(s=v[w]+T.x-f.w/2+k.w/2,d=f.w/2-h/2)),n[g][b]=r+"px",n[g][w]=s+"px",c&&(x[g][b]=c+"px"),d&&(x[g][w]=d+"px")};n.version="2.0.26";var U=function(t){t=B(t);var e=this,i=I(t,".alert"),o=function(){D(i,"fade")?P(i,a):a()},n=function(o){i=I(o[r],".alert"),(t=B('[data-dismiss="alert"]',i))&&i&&(t===o[r]||t.contains(o[r]))&&e.close()},a=function(){z.call(i,"closed","alert"),S(t,"click",n),i[h].removeChild(i)};this.close=function(){i&&t&&D(i,"show")&&(z.call(i,"close","alert"),N(i,"show"),i&&o())},"Alert"in t||M(t,"click",n),t.Alert=e};a[m](["Alert",U,'[data-dismiss="alert"]']);var q=function(t){t=B(t);var i=!1,o="checked",n=function(t){32===(t.which||t.keyCode)&&t[r]===e.activeElement&&l(t)},a=function(t){32===(t.which||t.keyCode)&&t.preventDefault()},l=function(e){var n="LABEL"===e[r].tagName?e[r]:"LABEL"===e[r][h].tagName?e[r][h]:null;if(n){var a=e[r],l=H(a[h],"btn"),s=n.getElementsByTagName("INPUT")[0];if(s){if("checkbox"===s.type&&(s[o]?(N(n,v),s[c](o),s.removeAttribute(o),s[o]=!1):(L(n,v),s[c](o),s[d](o,o),s[o]=!0),i||(i=!0,z.call(s,"change","button"),z.call(t,"change","button"))),"radio"===s.type&&!i&&!s[o]){L(n,v),s[d](o,o),s[o]=!0,z.call(s,"change","button"),z.call(t,"change","button"),i=!0;for(var f=0,p=l[u];f=0},F=function(t){for(var e=0,i=S[u];et||n===k-1&&0===t)&&(x=f.direction="right"),t<0?t=k-1:t>=k&&(t=0),p=t,i=x===w?"next":"prev",z.call(o,"slide","carousel",y[t]),m=!0,clearInterval(g),g=null,F(t),C&&D(o,"slide")?(L(y[t],"carousel-item-"+i),y[t].offsetWidth,L(y[t],"carousel-item-"+x),L(y[n],"carousel-item-"+x),P(y[t],function(a){var l=a&&a[r]!==y[t]?1e3*a.elapsedTime+100:20;m&&setTimeout(function(){m=!1,L(y[t],v),N(y[n],v),N(y[t],"carousel-item-"+i),N(y[t],"carousel-item-"+x),N(y[n],"carousel-item-"+x),z.call(o,"slid","carousel",y[t]),e.hidden||!f.interval||D(o,"paused")||f.cycle()},l)})):(L(y[t],v),y[t].offsetWidth,N(y[n],v),setTimeout(function(){m=!1,f.interval&&!D(o,"paused")&&f.cycle(),z.call(o,"slid","carousel",y[t])},100)))}},this.getActiveIndex=function(){return y.indexOf(H(o,"carousel-item active")[0])||0},"Carousel"in o||(f.pause&&f.interval&&(M(o,T[0],W),M(o,T[1],R),M(o,"touchstart",W),M(o,"touchend",R)),E&&M(E,"click",j),A&&M(A,"click",j),I&&M(I,"click",O),!0===f.keyboard&&M(t,"keydown",U)),f.getActiveIndex()<0&&(y[u]&&L(y[0],v),S[u]&&F(0)),f.interval&&f.cycle(),o.Carousel=f}};a[m](["Carousel",F,'[data-ride="carousel"]']);var X=function(t,e){t=B(t),e=e||{};var i,o,n=null,a=null,l=this,r=t[c]("data-parent"),s=function(t,e){z.call(t,"show","collapse"),t.isAnimating=!0,L(t,"collapsing"),N(t,"collapse"),t[g].height=t.scrollHeight+"px",P(t,function(){t.isAnimating=!1,t[d]("aria-expanded","true"),e[d]("aria-expanded","true"),N(t,"collapsing"),L(t,"collapse"),L(t,"show"),t[g].height="",z.call(t,"shown","collapse")})},h=function(t,e){z.call(t,"hide","collapse"),t.isAnimating=!0,t[g].height=t.scrollHeight+"px",N(t,"collapse"),N(t,"show"),L(t,"collapsing"),t.offsetWidth,t[g].height="0px",P(t,function(){t.isAnimating=!1,t[d]("aria-expanded","false"),e[d]("aria-expanded","false"),N(t,"collapsing"),L(t,"collapse"),t[g].height="",z.call(t,"hidden","collapse")})};this.toggle=function(t){t.preventDefault(),D(a,"show")?l.hide():l.show()},this.hide=function(){a.isAnimating||(h(a,t),L(t,"collapsed"))},this.show=function(){n&&(i=B(".collapse.show",n),o=i&&(B('[data-toggle="collapse"][data-target="#'+i.id+'"]',n)||B('[data-toggle="collapse"][href="#'+i.id+'"]',n))),(!a.isAnimating||i&&!i.isAnimating)&&(o&&i!==a&&(h(i,o),L(o,"collapsed")),s(a,t),N(t,"collapsed"))},"Collapse"in t||M(t,"click",l.toggle),a=function(){var e=t.href&&t[c]("href"),i=t[c]("data-target"),o=e||i&&"#"===i.charAt(0)&&i;return o&&B(o)}(),a.isAnimating=!1,n=B(e.parent)||r&&I(t,r),t.Collapse=l};a[m](["Collapse",X,'[data-toggle="collapse"]']);var Y=function(t,i){t=B(t),this.persist=!0===i||"true"===t[c]("data-persist")||!1;var o=this,n=t[h],a=null,l=B(".dropdown-menu",n),s=function(){for(var t=l.children,e=[],i=0;i1?c-1:0:40===n&&c×',w=B(n.container),y=B(m),k=I(i,".modal"),C=I(i,".fixed-top"),x=I(i,".fixed-bottom");this.template=n.template?n.template:null,this.trigger=n.trigger?n.trigger:a||"hover",this[s]=n[s]&&"fade"!==n[s]?n[s]:h||"fade",this.placement=n.placement?n.placement:u||b,this[l]=parseInt(n[l]||p)||200,this.dismissible=!(!n.dismissible&&"true"!==f),this.container=w||(y||(C||(x||(k||e[o]))));var A=this,E=i[c]("data-title")||null,H=i[c]("data-content")||null;if(H||this.template){var W=null,R=0,O=this.placement,U=function(t){null!==W&&t[r]===B(".close",W)&&A.hide()},q=function(){A.container.removeChild(W),R=null,W=null},F=function(){E=i[c]("data-title"),H=i[c]("data-content"),W=e.createElement("div");var t=e.createElement("div");if(t[d]("class","arrow"),W.appendChild(t),null!==H&&null===A.template){if(W[d]("role","tooltip"),null!==E){var o=e.createElement("h3");o[d]("class","popover-header"),o.innerHTML=A.dismissible?E+v:E,W.appendChild(o)}var n=e.createElement("div");n[d]("class","popover-body"),n.innerHTML=A.dismissible&&null===E?H+v:H,W.appendChild(n)}else{var a=e.createElement("div");a.innerHTML=A.template,W.innerHTML=a.firstChild.innerHTML}A.container.appendChild(W),W[g].display="block",W[d]("class","popover bs-popover-"+O+" "+A[s])},X=function(){!D(W,"show")&&L(W,"show")},Y=function(){j(i,W,O,A.container)},G=function(o){"click"!=A.trigger&&"focus"!=A.trigger||!A.dismissible&&o(i,"blur",A.hide),A.dismissible&&o(e,"click",U),o(t,"resize",A.hide)},J=function(){G(M),z.call(i,"shown","popover")},K=function(){G(S),q(),z.call(i,"hidden","popover")};this.toggle=function(){null===W?A.show():A.hide()},this.show=function(){clearTimeout(R),R=setTimeout(function(){null===W&&(O=A.placement,F(),Y(),X(),z.call(i,"show","popover"),A[s]?P(W,J):J())},20)},this.hide=function(){clearTimeout(R),R=setTimeout(function(){W&&null!==W&&D(W,"show")&&(z.call(i,"hide","popover"),N(W,"show"),A[s]?P(W,K):K())},A[l])},"Popover"in i||("hover"===A.trigger?(M(i,T[0],A.show),A.dismissible||M(i,T[1],A.hide)):"click"!=A.trigger&&"focus"!=A.trigger||M(i,A.trigger,A.toggle)),i.Popover=A}};a[m](["Popover",J,'[data-toggle="popover"]']);var K=function(e,i){e=B(e);var o=B(e[c]("data-target")),n=e[c]("data-offset");if(i=i||{},i[r]||o){for(var a,l=this,s=i[r]&&B(i[r])||o,d=s&&s.getElementsByTagName("A"),f=parseInt(n||i.offset)||10,p=[],g=[],w=e.offsetHeight=c&&d>a;if(!s&&u)D(i,v)||(L(i,v),l&&!D(l,v)&&L(l,v),z.call(e,"activate","scrollspy",p[t]));else if(u){if(!u&&!s||s&&u)return}else D(i,v)&&(N(i,v),l&&D(l,v)&&!H(i[h],v).length&&N(l,v))},E=function(){a=T?O().y:e.scrollTop;for(var t=0,i=p[u];t1&&(t=e[e[u]-1]):t=e[0],t},E=function(){return B(A()[c]("href"))},S=function(t){t.preventDefault(),o=t.currentTarget,!m.isAnimating&&!D(o,v)&&p.show()};this.show=function(){o=o||t,l=B(o[c]("href")),n=A(),a=E(),m.isAnimating=!0,N(n,v),n[d]("aria-selected","false"),L(o,v),o[d]("aria-selected","true"),T&&(D(t[h],"dropdown-menu")?D(T,v)||L(T,v):D(T,v)&&N(T,v)),z.call(n,"hide","tab",o),D(a,"fade")?(N(a,"show"),P(a,x)):x()},"Tab"in t||M(t,"click",S),p.height&&(b=E()[h]),t.Tab=p}};a[m](["Tab",Q,'[data-toggle="tab"]']);var V=function(t,e){t=B(t),e=e||{};var i=t[c]("data-animation"),o=t[c]("data-autohide"),n=t[c]("data-delay");this.animation=!1===e.animation||"false"===i?0:1,this.autohide=!1===e.autohide||"false"===o?0:1,this[l]=parseInt(e[l]||n)||500;var a=this,r=0,s=I(t,".toast"),d=function(){N(s,"showing"),L(s,"show"),z.call(s,"shown","toast"),a.autohide&&a.hide()},h=function(){L(s,"hide"),z.call(s,"hidden","toast")},u=function(){N(s,"show"),a.animation?P(s,h):h()},f=function(){clearTimeout(r),r=null,L(s,"hide"),S(t,"click",a.hide),t.Toast=null,t=null,s=null};this.show=function(){s&&(z.call(s,"show","toast"),a.animation&&L(s,"fade"),N(s,"hide"),L(s,"showing"),a.animation?P(s,d):d())},this.hide=function(t){s&&D(s,"show")&&(z.call(s,"hide","toast"),t?u():r=setTimeout(u,a[l]))},this.dispose=function(){s&&D(s,"show")&&(N(s,"show"),a.animation?P(s,f):f())},"Toast"in t||M(t,"click",a.hide),t.Toast=a};a[m](["Toast",V,'[data-dismiss="toast"]']);var Z=function(i,n){i=B(i),n=n||{};var a=i[c]("data-animation"),r=i[c]("data-placement"),h=i[c]("data-delay"),u=i[c]("data-container"),f=B(n.container),p=B(u),g=I(i,".modal"),m=I(i,".fixed-top"),v=I(i,".fixed-bottom");this[s]=n[s]&&"fade"!==n[s]?n[s]:a||"fade",this.placement=n.placement?n.placement:r||b,this[l]=parseInt(n[l]||h)||200,this.container=f||(p||(m||(v||(g||e[o]))));var w=this,y=0,k=this.placement,C=null,x=i[c]("title")||i[c]("data-title")||i[c]("data-original-title");if(x&&""!=x){var A=function(){w.container.removeChild(C),C=null,y=null},E=function(){if(!(x=i[c]("title")||i[c]("data-title")||i[c]("data-original-title"))||""==x)return!1;C=e.createElement("div"),C[d]("role","tooltip");var t=e.createElement("div");t[d]("class","arrow"),C.appendChild(t);var o=e.createElement("div");o[d]("class","tooltip-inner"),C.appendChild(o),o.innerHTML=x,w.container.appendChild(C),C[d]("class","tooltip bs-tooltip-"+k+" "+w[s])},H=function(){j(i,C,k,w.container)},W=function(){!D(C,"show")&&L(C,"show")},R=function(){M(t,"resize",w.hide),z.call(i,"shown","tooltip")},O=function(){S(t,"resize",w.hide),A(),z.call(i,"hidden","tooltip")};this.show=function(){clearTimeout(y),y=setTimeout(function(){if(null===C){if(k=w.placement,0==E())return;H(),W(),z.call(i,"show","tooltip"),w[s]?P(C,R):R()}},20)},this.hide=function(){clearTimeout(y),y=setTimeout(function(){C&&D(C,"show")&&(z.call(i,"hide","tooltip"),N(C,"show"),w[s]?P(C,O):O())},w[l])},this.toggle=function(){C?w.hide():w.show()},"Tooltip"in i||(i[d]("data-original-title",x),i.removeAttribute("title"),M(i,T[0],w.show),M(i,T[1],w.hide)),i.Tooltip=w}};a[m](["Tooltip",Z,'[data-toggle="tooltip"]']);var $=function(t,e){for(var i=0,o=e[u];i=u,A=g[b]+f.h/2+w.h/2>=h,L=g[b]-f.h<0,I=g[v]-f.w<0,B=g[b]+f.h+w.h>=h,H=g[v]+f.w+w.w>=u;a=(a===v||"right"===a)&&I&&H?b:a,a=a===b&&L?"bottom":a,a="bottom"===a&&B?b:a,a=a===v&&I?"right":a,a="right"===a&&H?v:a,a===v||"right"===a?(c=a===v?g[v]+m.x-f.w:g[v]+m.x+w.w,x?(r=g[b]+m.y,s=w.h/2):A?(r=g[b]+m.y-f.h+w.h,s=f.h-w.h/2):r=g[b]+m.y-f.h/2+w.h/2):a!==b&&"bottom"!==a||(r=a===b?g[b]+m.y-f.h:g[b]+m.y+w.h,k?(c=0,d=g[v]+w.w/2):C?(c=u-1.01*f.w,d=f.w-(u-g[v])+w.w/2):c=g[v]+m.x-f.w/2+w.w/2),o[p][b]=r+"px",o[p][v]=c+"px",s&&(y[p][b]=s+"px"),d&&(y[p][v]=d+"px"),-1===o.className.indexOf(a)&&(o.className=o.className.replace(T,a))};o.version="2.0.26";var F=function(o,a){o=D(o),a=a||{};var r=o[c]("data-target"),s=o[c]("data-offset-top"),d=o[c]("data-offset-bottom"),f="affix",u="function";if(this[l]=a[l]?D(a[l]):D(r)||null,this.offsetTop=a.offsetTop?a.offsetTop:parseInt(s)||0,this.offsetBottom=a.offsetBottom?a.offsetBottom:parseInt(d)||0,this[l]||this.offsetTop||this.offsetBottom){var h,p,g,m,v,y,T=this,x=!1,k=!1,C=function(){return Math.max(e[n].scrollHeight,e[n].offsetHeight,i.clientHeight,i.scrollHeight,i.offsetHeight)},A=function(){return null!==T[l]?T[l].getBoundingClientRect()[b]+m:T.offsetTop?parseInt(typeof T.offsetTop===u?T.offsetTop():T.offsetTop||0):void 0},L=function(){if(T.offsetBottom)return g-o.offsetHeight-parseInt(typeof T.offsetBottom===u?T.offsetBottom():T.offsetBottom||0)},I=function(){g=C(),m=parseInt(q().y,0),h=A(),p=L(),v=parseInt(h)-m<0&&m>parseInt(h),y=parseInt(p)-m<0&&m>parseInt(p)},N=function(){x||E(o,f)||(j.call(o,f,f),j.call(o,"affix-top",f),B(o,f),x=!0,j.call(o,"affixed",f),j.call(o,"affixed-top",f))},M=function(){x&&E(o,f)&&(H(o,f),x=!1)},S=function(){k||E(o,"affix-bottom")||(j.call(o,f,f),j.call(o,"affix-bottom",f),B(o,"affix-bottom"),k=!0,j.call(o,"affixed",f),j.call(o,"affixed-bottom",f))},W=function(){k&&E(o,"affix-bottom")&&(H(o,"affix-bottom"),k=!1)},P=function(){y?(v&&M(),S()):(W(),v?N():M())};this.update=function(){I(),P()},"Affix"in o||(R(t,"scroll",T.update),!w&&R(t,"resize",T.update)),o.Affix=T,T.update()}};a[g](["Affix",F,'[data-spy="affix"]']);var X=function(t){t=D(t);var e=this,i=S(t,".alert"),n=function(){E(i,"fade")?O(i,a):a()},o=function(n){i=S(n[l],".alert"),(t=D('[data-dismiss="alert"]',i))&&i&&(t===n[l]||t.contains(n[l]))&&e.close()},a=function(){j.call(i,"closed","alert"),W(t,"click",o),i[d].removeChild(i)};this.close=function(){i&&t&&E(i,"in")&&(j.call(i,"close","alert"),H(i,"in"),i&&n())},"Alert"in t||R(t,"click",o),t.Alert=e};a[g](["Alert",X,'[data-dismiss="alert"]']);var Y=function(t,i){t=D(t),i=i||null;var n=!1,o="checked",a=function(t){32===(t.which||t.keyCode)&&t[l]===e.activeElement&&u(t)},r=function(t){32===(t.which||t.keyCode)&&t.preventDefault()},u=function(e){var i="LABEL"===e[l].tagName?e[l]:"LABEL"===e[l][d].tagName?e[l][d]:null;if(i){var a=e[l],r=M(a[d],"btn"),u=i.getElementsByTagName("INPUT")[0];if(u){if("checkbox"===u.type&&(u[o]?(H(i,m),u[c](o),u.removeAttribute(o),u[o]=!1):(B(i,m),u[c](o),u[s](o,o),u[o]=!0),n||(n=!0,j.call(u,"change","button"),j.call(t,"change","button"))),"radio"===u.type&&!n&&!u[o]){B(i,m),u[s](o,o),u[o]=!0,j.call(u,"change","button"),j.call(t,"change","button"),n=!0;for(var h=0,p=r[f];h=0},F=function(t){for(var e=0,i=N[f];et||n===T-1&&0===t)&&(x=u.direction="right"),t<0?t=T-1:t>=T&&(t=0),h=t,i=x===v?"next":"prev",j.call(e,"slide","carousel",w[t]),g=!0,clearInterval(p),p=null,F(t),C&&E(e,"slide")?(B(w[t],i),w[t].offsetWidth,B(w[t],x),B(w[n],x),O(w[t],function(o){var a=o&&o[l]!==w[t]?1e3*o.elapsedTime+100:20;g&&setTimeout(function(){g=!1,B(w[t],m),H(w[n],m),H(w[t],i),H(w[t],x),H(w[n],x),j.call(e,"slid","carousel",w[t]),u.interval&&!E(e,"paused")&&u.cycle()},a)})):(B(w[t],m),w[t].offsetWidth,H(w[n],m),setTimeout(function(){g=!1,u.interval&&!E(e,"paused")&&u.cycle(),j.call(e,"slid","carousel",w[t])},100)))}},this.getActiveIndex=function(){return w.indexOf(M(e,"item active")[0])||0},"Carousel"in e||(u.pause&&u.interval&&(R(e,y[0],S),R(e,y[1],W),R(e,"touchstart",S),R(e,"touchend",W)),L&&R(L,"click",z),A&&R(A,"click",z),I&&R(I,"click",P),u.keyboard&&R(t,"keydown",q)),u.getActiveIndex()<0&&(w[f]&&B(w[0],m),N[f]&&F(0)),u.interval&&u.cycle(),e.Carousel=u}};a[g](["Carousel",G,'[data-ride="carousel"]']);var J=function(t,e){t=D(t),e=e||{};var i,n,o=null,a=null,l=this,r=t[c]("data-parent"),d=function(t,e){j.call(t,"show","collapse"),t.isAnimating=!0,B(t,"collapsing"),H(t,"collapse"),t[p].height=t.scrollHeight+"px",O(t,function(){t.isAnimating=!1,t[s]("aria-expanded","true"),e[s]("aria-expanded","true"),H(t,"collapsing"),B(t,"collapse"),B(t,"in"),t[p].height="",j.call(t,"shown","collapse")})},f=function(t,e){j.call(t,"hide","collapse"),t.isAnimating=!0,t[p].height=t.scrollHeight+"px",H(t,"collapse"),H(t,"in"),B(t,"collapsing"),t.offsetWidth,t[p].height="0px",O(t,function(){t.isAnimating=!1,t[s]("aria-expanded","false"),e[s]("aria-expanded","false"),H(t,"collapsing"),B(t,"collapse"),t[p].height="",j.call(t,"hidden","collapse")})};this.toggle=function(t){t.preventDefault(),E(a,"in")?l.hide():l.show()},this.hide=function(){a.isAnimating||(f(a,t),B(t,"collapsed"))},this.show=function(){o&&(i=D(".collapse.in",o),n=i&&(D('[data-toggle="collapse"][data-target="#'+i.id+'"]',o)||D('[data-toggle="collapse"][href="#'+i.id+'"]',o))),(!a.isAnimating||i&&!i.isAnimating)&&(n&&i!==a&&(f(i,n),B(n,"collapsed")),d(a,t),H(t,"collapsed"))},"Collapse"in t||R(t,"click",l.toggle),a=function(){var e=t.href&&t[c]("href"),i=t[c]("data-target"),n=e||i&&"#"===i.charAt(0)&&i;return n&&D(n)}(),a.isAnimating=!1,o=D(e.parent)||r&&S(t,r),t.Collapse=l};a[g](["Collapse",J,'[data-toggle="collapse"]']);var K=function(t,i){t=D(t),this.persist=!0===i||"true"===t[c]("data-persist")||!1;var n=this,o=t[d],a="open",r=null,u=D(".dropdown-menu",o),h=function(){for(var t=u.children,e=[],i=0;i1?c-1:0:40===o&&c×',v=D(o.container),T=D(g),x=S(i,".modal"),C=S(i,"."+k),A=S(i,".navbar-fixed-bottom");this.template=o.template?o.template:null,this.trigger=o.trigger?o.trigger:a||"hover",this[r]=o[r]&&"fade"!==o[r]?o[r]:d||"fade",this.placement=o.placement?o.placement:f||b,this.delay=parseInt(o.delay||h)||200,this.dismissible=!(!o.dismissible&&"true"!==u),this.container=v||(T||(C||(A||(x||e[n]))));var L=this,I=i[c]("data-title")||null,N=i[c]("data-content")||null;if(N||this.template){var M=null,P=0,z=this.placement,q=function(t){null!==M&&t[l]===D(".close",M)&&L.hide()},F=function(){L.container.removeChild(M),P=null,M=null},X=function(){if(I=i[c]("data-title"),N=i[c]("data-content"),M=e.createElement("div"),null!==N&&null===L.template){if(M[s]("role","tooltip"),null!==I){var t=e.createElement("h3");t[s]("class","popover-title"),t.innerHTML=L.dismissible?I+m:I,M.appendChild(t)}var n=e.createElement("div"),o=e.createElement("div");n[s]("class","arrow"),o[s]("class","popover-content"),M.appendChild(n),M.appendChild(o),o.innerHTML=L.dismissible&&null===I?N+m:N}else{var a=e.createElement("div");a.innerHTML=L.template,M.innerHTML=a.firstChild.innerHTML}L.container.appendChild(M),M[p].display="block",M[s]("class","popover "+z+" "+L[r])},Y=function(){!E(M,"in")&&B(M,"in")},G=function(){U(i,M,z,L.container)},J=function(n){"click"!=L.trigger&&"focus"!=L.trigger||!L.dismissible&&n(i,"blur",L.hide),L.dismissible&&n(e,"click",q),!w&&n(t,"resize",L.hide)},K=function(){J(R),j.call(i,"shown","popover")},Q=function(){J(W),F(),j.call(i,"hidden","popover")};this.toggle=function(){null===M?L.show():L.hide()},this.show=function(){clearTimeout(P),P=setTimeout(function(){null===M&&(z=L.placement,X(),G(),Y(),j.call(i,"show","popover"),L[r]?O(M,K):K())},20)},this.hide=function(){clearTimeout(P),P=setTimeout(function(){M&&null!==M&&E(M,"in")&&(j.call(i,"hide","popover"),H(M,"in"),L[r]?O(M,Q):Q())},L.delay)},"Popover"in i||("hover"===L.trigger?(R(i,y[0],L.show),L.dismissible||R(i,y[1],L.hide)):"click"!=L.trigger&&"focus"!=L.trigger||R(i,L.trigger,L.toggle)),i.Popover=L}};a[g](["Popover",V,'[data-toggle="popover"]']);var Z=function(e,i){e=D(e);var n=D(e[c]("data-target")),o=e[c]("data-offset");if(i=i||{},i[l]||n){for(var a,r=this,s=i[l]&&D(i[l])||n,u=s&&s.getElementsByTagName("A"),h=parseInt(o||i.offset)||10,p=[],v=[],y=e.offsetHeight=c&&s>a;if(!r&&f)"LI"!==i.tagName||E(i,m)||(B(i,m),o&&!E(o,m)&&B(o,m),j.call(e,"activate","scrollspy",p[t]));else if(f){if(!f&&!r||r&&f)return}else"LI"===i.tagName&&E(i,m)&&(H(i,m),o&&E(o,m)&&!M(i[d],m).length&&H(o,m))},I=function(){a=T?q().y:e.scrollTop;for(var t=0,i=p[f];t1&&(t=e[e[f]-1]):t=e[0],t.getElementsByTagName("A")[0]},L=function(){return D(A()[c]("href"))},I=function(t){t.preventDefault(),n=t.currentTarget||this,!b.isAnimating&&!E(n[d],m)&&g.show()};this.show=function(){n=n||t,l=D(n[c]("href")),o=A(),a=L(),b.isAnimating=!0,H(o[d],m),o[s]("aria-expanded","false"),B(n[d],m),n[s]("aria-expanded","true"),y&&(E(t[d][d],"dropdown-menu")?E(y,m)||B(y,m):E(y,m)&&H(y,m)),j.call(o,"hide","tab",n),E(a,"fade")?(H(a,"in"),O(a,k)):k()},"Tab"in t||R(t,"click",I),g.height&&(w=L()[d]),t.Tab=g}};a[g](["Tab",$,'[data-toggle="tab"]']);var _=function(i,o){i=D(i),o=o||{};var a=i[c]("data-animation"),l=i[c]("data-placement"),d=i[c]("data-delay"),f=i[c]("data-container"),u=D(o.container),h=D(f),p=S(i,".modal"),g=S(i,"."+k),m=S(i,".navbar-fixed-bottom");this[r]=o[r]&&"fade"!==o[r]?o[r]:a||"fade",this.placement=o.placement?o.placement:l||b,this.delay=parseInt(o.delay||d)||200,this.container=u||(h||(g||(m||(p||e[n]))));var v=this,T=0,x=this.placement,C=null,A=i[c]("title")||i[c]("data-title")||i[c]("data-original-title");if(A&&""!=A){var L=function(){v.container.removeChild(C),C=null,T=null},I=function(){if(!(A=i[c]("title")||i[c]("data-title")||i[c]("data-original-title"))||""==A)return!1;C=e.createElement("div"),C[s]("role","tooltip");var t=e.createElement("div"),n=e.createElement("div");t[s]("class","tooltip-arrow"),n[s]("class","tooltip-inner"),C.appendChild(t),C.appendChild(n),n.innerHTML=A,v.container.appendChild(C),C[s]("class","tooltip "+x+" "+v[r])},N=function(){U(i,C,x,v.container)},M=function(){!E(C,"in")&&B(C,"in")},P=function(){j.call(i,"shown","tooltip"),!w&&R(t,"resize",v.hide)},z=function(){!w&&W(t,"resize",v.hide),L(),j.call(i,"hidden","tooltip")};this.show=function(){clearTimeout(T),T=setTimeout(function(){if(null===C){if(x=v.placement,0==I())return;N(),M(),j.call(i,"show","tooltip"),v[r]?O(C,P):P()}},20)},this.hide=function(){clearTimeout(T),T=setTimeout(function(){C&&E(C,"in")&&(j.call(i,"hide","tooltip"),H(C,"in"),v[r]?O(C,z):z())},v.delay)},this.toggle=function(){C?v.hide():v.show()},"Tooltip"in i||(i[s]("data-original-title",A),i.removeAttribute("title"),R(i,y[0],v.show),R(i,y[1],v.hide)),i.Tooltip=v}};a[g](["Tooltip",_,'[data-toggle="tooltip"]']);var tt=function(t,e){for(var i=0,n=e[f];i=u,A=g[b]+f.h/2+w.h/2>=h,L=g[b]-f.h<0,I=g[v]-f.w<0,B=g[b]+f.h+w.h>=h,H=g[v]+f.w+w.w>=u;a=(a===v||"right"===a)&&I&&H?b:a,a=a===b&&L?"bottom":a,a="bottom"===a&&B?b:a,a=a===v&&I?"right":a,a="right"===a&&H?v:a,a===v||"right"===a?(c=a===v?g[v]+m.x-f.w:g[v]+m.x+w.w,x?(r=g[b]+m.y,s=w.h/2):A?(r=g[b]+m.y-f.h+w.h,s=f.h-w.h/2):r=g[b]+m.y-f.h/2+w.h/2):a!==b&&"bottom"!==a||(r=a===b?g[b]+m.y-f.h:g[b]+m.y+w.h,k?(c=0,d=g[v]+w.w/2):C?(c=u-1.01*f.w,d=f.w-(u-g[v])+w.w/2):c=g[v]+m.x-f.w/2+w.w/2),o[p][b]=r+"px",o[p][v]=c+"px",s&&(y[p][b]=s+"px"),d&&(y[p][v]=d+"px"),-1===o.className.indexOf(a)&&(o.className=o.className.replace(T,a))};o.version="2.0.26";var F=function(o,a){o=D(o),a=a||{};var r=o[c]("data-target"),s=o[c]("data-offset-top"),d=o[c]("data-offset-bottom"),f="affix",u="function";if(this[l]=a[l]?D(a[l]):D(r)||null,this.offsetTop=a.offsetTop?a.offsetTop:parseInt(s)||0,this.offsetBottom=a.offsetBottom?a.offsetBottom:parseInt(d)||0,this[l]||this.offsetTop||this.offsetBottom){var h,p,g,m,v,y,T=this,x=!1,k=!1,C=function(){return Math.max(e[n].scrollHeight,e[n].offsetHeight,i.clientHeight,i.scrollHeight,i.offsetHeight)},A=function(){return null!==T[l]?T[l].getBoundingClientRect()[b]+m:T.offsetTop?parseInt(typeof T.offsetTop===u?T.offsetTop():T.offsetTop||0):void 0},L=function(){if(T.offsetBottom)return g-o.offsetHeight-parseInt(typeof T.offsetBottom===u?T.offsetBottom():T.offsetBottom||0)},I=function(){g=C(),m=parseInt(q().y,0),h=A(),p=L(),v=parseInt(h)-m<0&&m>parseInt(h),y=parseInt(p)-m<0&&m>parseInt(p)},N=function(){x||E(o,f)||(j.call(o,f,f),j.call(o,"affix-top",f),B(o,f),x=!0,j.call(o,"affixed",f),j.call(o,"affixed-top",f))},M=function(){x&&E(o,f)&&(H(o,f),x=!1)},S=function(){k||E(o,"affix-bottom")||(j.call(o,f,f),j.call(o,"affix-bottom",f),B(o,"affix-bottom"),k=!0,j.call(o,"affixed",f),j.call(o,"affixed-bottom",f))},W=function(){k&&E(o,"affix-bottom")&&(H(o,"affix-bottom"),k=!1)},P=function(){y?(v&&M(),S()):(W(),v?N():M())};this.update=function(){I(),P()},"Affix"in o||(R(t,"scroll",T.update),!w&&R(t,"resize",T.update)),o.Affix=T,T.update()}};a[g](["Affix",F,'[data-spy="affix"]']);var X=function(t){t=D(t);var e=this,i=S(t,".alert"),n=function(){E(i,"fade")?O(i,a):a()},o=function(n){i=S(n[l],".alert"),(t=D('[data-dismiss="alert"]',i))&&i&&(t===n[l]||t.contains(n[l]))&&e.close()},a=function(){j.call(i,"closed","alert"),W(t,"click",o),i[d].removeChild(i)};this.close=function(){i&&t&&E(i,"in")&&(j.call(i,"close","alert"),H(i,"in"),i&&n())},"Alert"in t||R(t,"click",o),t.Alert=e};a[g](["Alert",X,'[data-dismiss="alert"]']);var Y=function(t,i){t=D(t),i=i||null;var n=!1,o="checked",a=function(t){32===(t.which||t.keyCode)&&t[l]===e.activeElement&&u(t)},r=function(t){32===(t.which||t.keyCode)&&t.preventDefault()},u=function(e){var i="LABEL"===e[l].tagName?e[l]:"LABEL"===e[l][d].tagName?e[l][d]:null;if(i){var a=e[l],r=M(a[d],"btn"),u=i.getElementsByTagName("INPUT")[0];if(u){if("checkbox"===u.type&&(u[o]?(H(i,m),u[c](o),u.removeAttribute(o),u[o]=!1):(B(i,m),u[c](o),u[s](o,o),u[o]=!0),n||(n=!0,j.call(u,"change","button"),j.call(t,"change","button"))),"radio"===u.type&&!n&&!u[o]){B(i,m),u[s](o,o),u[o]=!0,j.call(u,"change","button"),j.call(t,"change","button"),n=!0;for(var h=0,p=r[f];h=0},F=function(t){for(var e=0,i=N[f];et||n===T-1&&0===t)&&(x=u.direction="right"),t<0?t=T-1:t>=T&&(t=0),h=t,i=x===v?"next":"prev",j.call(e,"slide","carousel",w[t]),g=!0,clearInterval(p),p=null,F(t),C&&E(e,"slide")?(B(w[t],i),w[t].offsetWidth,B(w[t],x),B(w[n],x),O(w[t],function(o){var a=o&&o[l]!==w[t]?1e3*o.elapsedTime+100:20;g&&setTimeout(function(){g=!1,B(w[t],m),H(w[n],m),H(w[t],i),H(w[t],x),H(w[n],x),j.call(e,"slid","carousel",w[t]),u.interval&&!E(e,"paused")&&u.cycle()},a)})):(B(w[t],m),w[t].offsetWidth,H(w[n],m),setTimeout(function(){g=!1,u.interval&&!E(e,"paused")&&u.cycle(),j.call(e,"slid","carousel",w[t])},100)))}},this.getActiveIndex=function(){return w.indexOf(M(e,"item active")[0])||0},"Carousel"in e||(u.pause&&u.interval&&(R(e,y[0],S),R(e,y[1],W),R(e,"touchstart",S),R(e,"touchend",W)),L&&R(L,"click",z),A&&R(A,"click",z),I&&R(I,"click",P),u.keyboard&&R(t,"keydown",q)),u.getActiveIndex()<0&&(w[f]&&B(w[0],m),N[f]&&F(0)),u.interval&&u.cycle(),e.Carousel=u}};a[g](["Carousel",G,'[data-ride="carousel"]']);var J=function(t,e){t=D(t),e=e||{};var i,n,o=null,a=null,l=this,r=t[c]("data-parent"),d=function(t,e){j.call(t,"show","collapse"),t.isAnimating=!0,B(t,"collapsing"),H(t,"collapse"),t[p].height=t.scrollHeight+"px",O(t,function(){t.isAnimating=!1,t[s]("aria-expanded","true"),e[s]("aria-expanded","true"),H(t,"collapsing"),B(t,"collapse"),B(t,"in"),t[p].height="",j.call(t,"shown","collapse")})},f=function(t,e){j.call(t,"hide","collapse"),t.isAnimating=!0,t[p].height=t.scrollHeight+"px",H(t,"collapse"),H(t,"in"),B(t,"collapsing"),t.offsetWidth,t[p].height="0px",O(t,function(){t.isAnimating=!1,t[s]("aria-expanded","false"),e[s]("aria-expanded","false"),H(t,"collapsing"),B(t,"collapse"),t[p].height="",j.call(t,"hidden","collapse")})};this.toggle=function(t){t.preventDefault(),E(a,"in")?l.hide():l.show()},this.hide=function(){a.isAnimating||(f(a,t),B(t,"collapsed"))},this.show=function(){o&&(i=D(".collapse.in",o),n=i&&(D('[data-toggle="collapse"][data-target="#'+i.id+'"]',o)||D('[data-toggle="collapse"][href="#'+i.id+'"]',o))),(!a.isAnimating||i&&!i.isAnimating)&&(n&&i!==a&&(f(i,n),B(n,"collapsed")),d(a,t),H(t,"collapsed"))},"Collapse"in t||R(t,"click",l.toggle),a=function(){var e=t.href&&t[c]("href"),i=t[c]("data-target"),n=e||i&&"#"===i.charAt(0)&&i;return n&&D(n)}(),a.isAnimating=!1,o=D(e.parent)||r&&S(t,r),t.Collapse=l};a[g](["Collapse",J,'[data-toggle="collapse"]']);var K=function(t,i){t=D(t),this.persist=!0===i||"true"===t[c]("data-persist")||!1;var n=this,o=t[d],a="open",r=null,u=D(".dropdown-menu",o),h=function(){for(var t=u.children,e=[],i=0;i1?c-1:0:40===o&&c×',v=D(o.container),T=D(g),x=S(i,".modal"),C=S(i,"."+k),A=S(i,".navbar-fixed-bottom");this.template=o.template?o.template:null,this.trigger=o.trigger?o.trigger:a||"hover",this[r]=o[r]&&"fade"!==o[r]?o[r]:d||"fade",this.placement=o.placement?o.placement:f||b,this.delay=parseInt(o.delay||h)||200,this.dismissible=!(!o.dismissible&&"true"!==u),this.container=v||(T||(C||(A||(x||e[n]))));var L=this,I=i[c]("data-title")||null,N=i[c]("data-content")||null;if(N||this.template){var M=null,P=0,z=this.placement,q=function(t){null!==M&&t[l]===D(".close",M)&&L.hide()},F=function(){L.container.removeChild(M),P=null,M=null},X=function(){if(I=i[c]("data-title"),N=i[c]("data-content"),M=e.createElement("div"),null!==N&&null===L.template){if(M[s]("role","tooltip"),null!==I){var t=e.createElement("h3");t[s]("class","popover-title"),t.innerHTML=L.dismissible?I+m:I,M.appendChild(t)}var n=e.createElement("div"),o=e.createElement("div");n[s]("class","arrow"),o[s]("class","popover-content"),M.appendChild(n),M.appendChild(o),o.innerHTML=L.dismissible&&null===I?N+m:N}else{var a=e.createElement("div");a.innerHTML=L.template,M.innerHTML=a.firstChild.innerHTML}L.container.appendChild(M),M[p].display="block",M[s]("class","popover "+z+" "+L[r])},Y=function(){!E(M,"in")&&B(M,"in")},G=function(){U(i,M,z,L.container)},J=function(n){"click"!=L.trigger&&"focus"!=L.trigger||!L.dismissible&&n(i,"blur",L.hide),L.dismissible&&n(e,"click",q),!w&&n(t,"resize",L.hide)},K=function(){J(R),j.call(i,"shown","popover")},Q=function(){J(W),F(),j.call(i,"hidden","popover")};this.toggle=function(){null===M?L.show():L.hide()},this.show=function(){clearTimeout(P),P=setTimeout(function(){null===M&&(z=L.placement,X(),G(),Y(),j.call(i,"show","popover"),L[r]?O(M,K):K())},20)},this.hide=function(){clearTimeout(P),P=setTimeout(function(){M&&null!==M&&E(M,"in")&&(j.call(i,"hide","popover"),H(M,"in"),L[r]?O(M,Q):Q())},L.delay)},"Popover"in i||("hover"===L.trigger?(R(i,y[0],L.show),L.dismissible||R(i,y[1],L.hide)):"click"!=L.trigger&&"focus"!=L.trigger||R(i,L.trigger,L.toggle)),i.Popover=L}};a[g](["Popover",V,'[data-toggle="popover"]']);var Z=function(e,i){e=D(e);var n=D(e[c]("data-target")),o=e[c]("data-offset");if(i=i||{},i[l]||n){for(var a,r=this,s=i[l]&&D(i[l])||n,u=s&&s.getElementsByTagName("A"),h=parseInt(o||i.offset)||10,p=[],v=[],y=e.offsetHeight=c&&s>a;if(!r&&f)"LI"!==i.tagName||E(i,m)||(B(i,m),o&&!E(o,m)&&B(o,m),j.call(e,"activate","scrollspy",p[t]));else if(f){if(!f&&!r||r&&f)return}else"LI"===i.tagName&&E(i,m)&&(H(i,m),o&&E(o,m)&&!M(i[d],m).length&&H(o,m))},I=function(){a=T?q().y:e.scrollTop;for(var t=0,i=p[f];t1&&(t=e[e[f]-1]):t=e[0],t.getElementsByTagName("A")[0]},L=function(){return D(A()[c]("href"))},I=function(t){t.preventDefault(),n=t.currentTarget||this,!b.isAnimating&&!E(n[d],m)&&g.show()};this.show=function(){n=n||t,l=D(n[c]("href")),o=A(),a=L(),b.isAnimating=!0,H(o[d],m),o[s]("aria-expanded","false"),B(n[d],m),n[s]("aria-expanded","true"),y&&(E(t[d][d],"dropdown-menu")?E(y,m)||B(y,m):E(y,m)&&H(y,m)),j.call(o,"hide","tab",n),E(a,"fade")?(H(a,"in"),O(a,k)):k()},"Tab"in t||R(t,"click",I),g.height&&(w=L()[d]),t.Tab=g}};a[g](["Tab",$,'[data-toggle="tab"]']);var _=function(i,o){i=D(i),o=o||{};var a=i[c]("data-animation"),l=i[c]("data-placement"),d=i[c]("data-delay"),f=i[c]("data-container"),u=D(o.container),h=D(f),p=S(i,".modal"),g=S(i,"."+k),m=S(i,".navbar-fixed-bottom");this[r]=o[r]&&"fade"!==o[r]?o[r]:a||"fade",this.placement=o.placement?o.placement:l||b,this.delay=parseInt(o.delay||d)||200,this.container=u||(h||(g||(m||(p||e[n]))));var v=this,T=0,x=this.placement,C=null,A=i[c]("title")||i[c]("data-title")||i[c]("data-original-title");if(A&&""!=A){var L=function(){v.container.removeChild(C),C=null,T=null},I=function(){if(!(A=i[c]("title")||i[c]("data-title")||i[c]("data-original-title"))||""==A)return!1;C=e.createElement("div"),C[s]("role","tooltip");var t=e.createElement("div"),n=e.createElement("div");t[s]("class","tooltip-arrow"),n[s]("class","tooltip-inner"),C.appendChild(t),C.appendChild(n),n.innerHTML=A,v.container.appendChild(C),C[s]("class","tooltip "+x+" "+v[r])},N=function(){U(i,C,x,v.container)},M=function(){!E(C,"in")&&B(C,"in")},P=function(){j.call(i,"shown","tooltip"),!w&&R(t,"resize",v.hide)},z=function(){!w&&W(t,"resize",v.hide),L(),j.call(i,"hidden","tooltip")};this.show=function(){clearTimeout(T),T=setTimeout(function(){if(null===C){if(x=v.placement,0==I())return;N(),M(),j.call(i,"show","tooltip"),v[r]?O(C,P):P()}},20)},this.hide=function(){clearTimeout(T),T=setTimeout(function(){C&&E(C,"in")&&(j.call(i,"hide","tooltip"),H(C,"in"),v[r]?O(C,z):z())},v.delay)},this.toggle=function(){C?v.hide():v.show()},"Tooltip"in i||(i[s]("data-original-title",A),i.removeAttribute("title"),R(i,y[0],v.show),R(i,y[1],v.hide)),i.Tooltip=v}};a[g](["Tooltip",_,'[data-toggle="tooltip"]']);var tt=function(t,e){for(var i=0,n=e[f];i