1
0
mirror of https://github.com/SuperBFG7/ympd synced 2024-06-26 06:33:15 +00:00
ympd/dist/htdocs/js/bootstrap-native-v4.min.js
2018-11-19 19:30:59 +00:00

43 lines
21 KiB
JavaScript

(function(z,g){"function"===typeof define&&define.amd?define([],g):"object"===typeof module&&module.exports?module.exports=g():(g=g(),z.Alert=g.Alert,z.Button=g.Button,z.Carousel=g.Carousel,z.Collapse=g.Collapse,z.Dropdown=g.Dropdown,z.Modal=g.Modal,z.Popover=g.Popover,z.ScrollSpy=g.ScrollSpy,z.Tab=g.Tab,z.Tooltip=g.Tooltip)})(this,function(){var z="undefined"!==typeof global?global:this||window,g=document,E=g.documentElement,Q=z.BSN={},D=Q.supports=[],K="onmouseleave"in g?["mouseenter","mouseleave"]:
["mouseover","mouseout"],ja=/\b(top|bottom|left|right)+/,P=0,N="WebkitTransition"in E.style||"transition"in E.style,S="WebkitTransition"in E.style?"webkitTransitionEnd":"transitionend",ka="WebkitDuration"in E.style?"webkitTransitionDuration":"transitionDuration",O=function(a){a.focus?a.focus():a.setActive()},w=function(a,c){a.classList.add(c)},y=function(a,c){a.classList.remove(c)},p=function(a,c){return a.classList.contains(c)},I=function(a,c){return[].slice.call(a.getElementsByClassName(c))},q=
function(a,c){c=c?c:g;return"object"===typeof a?a:c.querySelector(a)},G=function(a,c){var d=c.charAt(0),b=c.substr(1);if("."===d)for(;a&&a!==g;a=a.parentNode){if(null!==q(c,a.parentNode)&&p(a,b))return a}else if("#"===d)for(;a&&a!==g;a=a.parentNode)if(a.id===b)return a;return!1},u=function(a,c,d){a.addEventListener(c,d,!1)},L=function(a,c,d){a.removeEventListener(c,d,!1)},T=function(a,c,d){u(a,c,function f(m){d(m);L(a,c,f)})},R=function(a){a=z.getComputedStyle(a)[ka];a=parseFloat(a);a="number"!==
typeof a||isNaN(a)?0:1E3*a;return a+50},H=function(a,c){var d=0,b=R(a);N&&T(a,S,function(a){c(a);d=1});setTimeout(function(){!d&&c()},b)},x=function(a,c,d){a=new CustomEvent(a+".bs."+c);a.relatedTarget=d;this.dispatchEvent(a)},U=function(){return{y:z.pageYOffset||E.scrollTop,x:z.pageXOffset||E.scrollLeft}},W=function(a,c,d,b){var m=c.offsetWidth,f=c.offsetHeight,h=E.clientWidth||g.body.clientWidth,n=E.clientHeight||g.body.clientHeight;a=a.getBoundingClientRect();b=b===g.body?U():{x:b.offsetLeft+b.scrollLeft,
y:b.offsetTop+b.scrollTop};var v=a.right-a.left,k=a.bottom-a.top,e=p(c,"popover"),A=q(".arrow",c),l=0>a.top+k/2-f/2,r=0>a.left+v/2-m/2,x=a.left+m/2+v/2>=h,t=a.top+f/2+k/2>=n;var C=0>a.top-f;var F=0>a.left-m;n=a.top+f+k>=n;var M=a.left+m+v>=h;d=("left"===d||"right"===d)&&F&&M?"top":d;d="top"===d&&C?"bottom":d;d="bottom"===d&&n?"top":d;d="left"===d&&F?"right":d;d="right"===d&&M?"left":d;-1===c.className.indexOf(d)&&(c.className=c.className.replace(ja,d));n=A.offsetWidth;C=A.offsetHeight;if("left"===
d||"right"===d){var J="left"===d?a.left+b.x-m-(e?n:0):a.left+b.x+v;if(l){var w=a.top+b.y;var u=k/2-n}else t?(w=a.top+b.y-f+k,u=f-k/2-n):(w=a.top+b.y-f/2+k/2,u=f/2-(e?.9*C:C/2))}else if("top"===d||"bottom"===d)if(w="top"===d?a.top+b.y-f-(e?C:0):a.top+b.y+k,r){J=0;var y=a.left+v/2-n}else x?(J=h-1.01*m,y=m-(h-a.left)+v/2-n/2):(J=a.left+b.x-m/2+v/2,y=m/2-n/2);c.style.top=w+"px";c.style.left=J+"px";u&&(A.style.top=u+"px");y&&(A.style.left=y+"px")};Q.version="2.0.24";var X=function(a){a=q(a);var c=this,
d=G(a,".alert"),b=function(b){d=G(b.target,".alert");(a=q('[data-dismiss="alert"]',d))&&d&&(a===b.target||a.contains(b.target))&&c.close()},m=function(){x.call(d,"closed","alert");L(a,"click",b);d.parentNode.removeChild(d)};this.close=function(){d&&a&&p(d,"show")&&(x.call(d,"close","alert"),y(d,"show"),d&&(p(d,"fade")?H(d,m):m()))};"Alert"in a||u(a,"click",b);a.Alert=c};D.push(["Alert",X,'[data-dismiss="alert"]']);var Y=function(a){a=q(a);var c=!1,d=function(a){32===(a.which||a.keyCode)&&a.target===
g.activeElement&&m(a)},b=function(a){32===(a.which||a.keyCode)&&a.preventDefault()},m=function(b){var d="LABEL"===b.target.tagName?b.target:"LABEL"===b.target.parentNode.tagName?b.target.parentNode:null;if(d){b=I(b.target.parentNode,"btn");var f=d.getElementsByTagName("INPUT")[0];if(f){"checkbox"===f.type&&(f.checked?(y(d,"active"),f.getAttribute("checked"),f.removeAttribute("checked"),f.checked=!1):(w(d,"active"),f.getAttribute("checked"),f.setAttribute("checked","checked"),f.checked=!0),c||(c=!0,
x.call(f,"change","button"),x.call(a,"change","button")));if("radio"===f.type&&!c&&!f.checked){w(d,"active");f.setAttribute("checked","checked");f.checked=!0;x.call(f,"change","button");x.call(a,"change","button");c=!0;f=0;for(var h=b.length;f<h;f++){var e=b[f],m=e.getElementsByTagName("INPUT")[0];e!==d&&p(e,"active")&&(y(e,"active"),m.removeAttribute("checked"),m.checked=!1,x.call(m,"change","button"))}}setTimeout(function(){c=!1},50)}}};"Button"in a||(u(a,"click",m),q("[tabindex]",a)&&u(a,"keyup",
d),u(a,"keydown",b));d=I(a,"btn");b=d.length;for(var f=0;f<b;f++)!p(d[f],"active")&&q("input:checked",d[f])&&w(d[f],"active");a.Button=this};D.push(["Button",Y,'[data-toggle="buttons"]']);var Z=function(a,c){a=q(a);c=c||{};var d=a.getAttribute("data-interval"),b=c.interval;d="false"===d?0:parseInt(d);var m="hover"===a.getAttribute("data-pause")||!1,f="true"===a.getAttribute("data-keyboard")||!1;this.keyboard=!0===c.keyboard||f;this.pause="hover"===c.pause||m?"hover":!1;this.interval="number"===typeof b?
b:!1===b||0===d||!1===d?0:isNaN(d)?5E3:d;var h=this,n=a.index=0,v=a.timer=0,k=!1,e=I(a,"carousel-item"),A=e.length,l=this.direction="left",r=I(a,"carousel-control-prev")[0],B=I(a,"carousel-control-next")[0],t=(c=q(".carousel-indicators",a))&&c.getElementsByTagName("LI")||[];b=function(){!1===h.interval||p(a,"paused")||(w(a,"paused"),!k&&clearInterval(v))};d=function(){!1!==h.interval&&p(a,"paused")&&(y(a,"paused"),!k&&clearInterval(v),!k&&h.cycle())};m=function(a){a.preventDefault();if(!k){if((a=
a.target)&&!p(a,"active")&&a.getAttribute("data-slide-to"))n=parseInt(a.getAttribute("data-slide-to"),10);else return!1;h.slideTo(n)}};f=function(a){a.preventDefault();k||(a=a.currentTarget||a.srcElement,a===B?n++:a===r&&n--,h.slideTo(n))};var C=function(a){if(!k){switch(a.which){case 39:n++;break;case 37:n--;break;default:return}h.slideTo(n)}},F=function(a){for(var e=0,b=t.length;e<b;e++)y(t[e],"active");t[a]&&w(t[a],"active")};this.cycle=function(){v=setInterval(function(){var e=a.getBoundingClientRect();
e.top<=(z.innerHeight||E.clientHeight)&&0<=e.bottom&&(n++,h.slideTo(n))},this.interval)};this.slideTo=function(b){if(!k){var c=this.getActiveIndex();if(c!==b){if(c<b||0===c&&b===A-1)l=h.direction="left";else if(c>b||c===A-1&&0===b)l=h.direction="right";0>b?b=A-1:b===A&&(b=0);n=b;var d="left"===l?"next":"prev";x.call(a,"slide","carousel",e[b]);k=!0;clearInterval(v);F(b);N&&p(a,"slide")?(w(e[b],"carousel-item-"+d),e[b].offsetWidth,w(e[b],"carousel-item-"+l),w(e[c],"carousel-item-"+l),T(e[b],S,function(f){f=
f.target!==e[b]?1E3*f.elapsedTime+100:20;k&&setTimeout(function(){k=!1;w(e[b],"active");y(e[c],"active");y(e[b],"carousel-item-"+d);y(e[b],"carousel-item-"+l);y(e[c],"carousel-item-"+l);x.call(a,"slid","carousel",e[b]);g.hidden||!h.interval||p(a,"paused")||h.cycle()},f)})):(w(e[b],"active"),e[b].offsetWidth,y(e[c],"active"),setTimeout(function(){k=!1;h.interval&&!p(a,"paused")&&h.cycle();x.call(a,"slid","carousel",e[b])},100))}}};this.getActiveIndex=function(){return e.indexOf(I(a,"carousel-item active")[0])||
0};"Carousel"in a||(h.pause&&h.interval&&(u(a,K[0],b),u(a,K[1],d),u(a,"touchstart",b),u(a,"touchend",d)),B&&u(B,"click",f),r&&u(r,"click",f),c&&u(c,"click",m),!0===h.keyboard&&u(z,"keydown",C));0>h.getActiveIndex()&&(e.length&&w(e[0],"active"),t.length&&F(0));h.interval&&h.cycle();a.Carousel=h};D.push(["Carousel",Z,'[data-ride="carousel"]']);var aa=function(a,c){a=q(a);c=c||{};var d=null,b=null,m=this,f=a.getAttribute("data-parent"),h,g,v=function(a,b){x.call(a,"show","collapse");a.isAnimating=!0;
w(a,"collapsing");y(a,"collapse");a.style.height=a.scrollHeight+"px";H(a,function(){a.isAnimating=!1;a.setAttribute("aria-expanded","true");b.setAttribute("aria-expanded","true");y(a,"collapsing");w(a,"collapse");w(a,"show");a.style.height="";x.call(a,"shown","collapse")})},k=function(a,b){x.call(a,"hide","collapse");a.isAnimating=!0;a.style.height=a.scrollHeight+"px";y(a,"collapse");y(a,"show");w(a,"collapsing");a.offsetWidth;a.style.height="0px";H(a,function(){a.isAnimating=!1;a.setAttribute("aria-expanded",
"false");b.setAttribute("aria-expanded","false");y(a,"collapsing");w(a,"collapse");a.style.height="";x.call(a,"hidden","collapse")})};this.toggle=function(a){a.preventDefault();p(b,"show")?m.hide():m.show()};this.hide=function(){b.isAnimating||(k(b,a),w(a,"collapsed"))};this.show=function(){d&&(g=(h=q(".collapse.show",d))&&(q('[data-toggle="collapse"][data-target="#'+h.id+'"]',d)||q('[data-toggle="collapse"][href="#'+h.id+'"]',d)));if(!b.isAnimating||h&&!h.isAnimating)g&&h!==b&&(k(h,g),w(g,"collapsed")),
v(b,a),y(a,"collapsed")};"Collapse"in a||u(a,"click",m.toggle);b=function(){var b=a.href&&a.getAttribute("href"),c=a.getAttribute("data-target");return(b=b||c&&"#"===c.charAt(0)&&c)&&q(b)}();b.isAnimating=!1;d=q(c.parent)||f&&G(a,f);a.Collapse=m};D.push(["Collapse",aa,'[data-toggle="collapse"]']);var ba=function(a,c){a=q(a);this.persist=!0===c||"true"===a.getAttribute("data-persist")||!1;var d=this,b=a.parentNode,m=null,f=q(".dropdown-menu",b),h=function(){for(var a=f.children,b=[],c=0;c<a.length;c++){if(a[c].children.length)for(var d=
0;d<a[c].children.length;d++)"A"===a[c].children[d].tagName&&b.push(a[c].children[d]);"A"===a[c].tagName&&b.push(a[c])}return b}(),n=function(a){(a.href&&"#"===a.href.slice(-1)||a.parentNode&&a.parentNode.href&&"#"===a.parentNode.href.slice(-1))&&this.preventDefault()},v=function(){var b=a.open?u:L;b(g,"click",k);b(g,"keydown",A);b(g,"keyup",l)},k=function(b){var c=b.target,e=c&&("Dropdown"in c||"Dropdown"in c.parentNode);if(c!==f&&!f.contains(c)||!d.persist&&!e)m=c===a||a.contains(c)?a:null,B(),
n.call(b,c)},e=function(b){m=a;r();n.call(b,b.target)},A=function(a){var b=a.which||a.keyCode;38!==b&&40!==b||a.preventDefault()},l=function(b){b=b.which||b.keyCode;var c=g.activeElement,e=h.indexOf(c),l=c===a,n=f.contains(c);if((c=c.parentNode===f||c.parentNode.parentNode===f)||l){do if(e=l?0:38===b?1<e?e-1:0:40===b?e<h.length-1?e+1:e:e,0==e||e==h.length-1)break;while(!h[e].offsetHeight);h[e]&&O(h[e])}(h.length&&c||!h.length&&(n||l)||!n)&&a.open&&27===b&&(d.toggle(),m=null)},r=function(){x.call(b,
"show","dropdown",m);w(f,"show");w(b,"show");f.setAttribute("aria-expanded",!0);x.call(b,"shown","dropdown",m);a.open=!0;L(a,"click",e);setTimeout(function(){O(f.getElementsByTagName("INPUT")[0]||a);v()},1)},B=function(){x.call(b,"hide","dropdown",m);y(f,"show");y(b,"show");f.setAttribute("aria-expanded",!1);x.call(b,"hidden","dropdown",m);a.open=!1;v();O(a);setTimeout(function(){u(a,"click",e)},1)};a.open=!1;this.toggle=function(){p(b,"show")&&a.open?B():r()};"Dropdown"in a||(!1 in f&&f.setAttribute("tabindex",
"0"),u(a,"click",e));a.Dropdown=d};D.push(["Dropdown",ba,'[data-toggle="dropdown"]']);var ca=function(a,c){a=q(a);var d=a.getAttribute("data-target")||a.getAttribute("href");d=q(d);var b=p(a,"modal")?a:d,m;p(a,"modal")&&(a=null);if(b){c=c||{};this.keyboard=!1===c.keyboard||"false"===b.getAttribute("data-keyboard")?!1:!0;this.backdrop="static"===c.backdrop||"static"===b.getAttribute("data-backdrop")?"static":!0;this.backdrop=!1===c.backdrop||"false"===b.getAttribute("data-backdrop")?!1:this.backdrop;
this.content=c.content;var f=this,h=null,n,v,k,e,A=I(E,"fixed-top").concat(I(E,"fixed-bottom")),l=function(){var a=z.getComputedStyle(g.body);a=parseInt(a.paddingRight,10);if(n&&(g.body.style.paddingRight=a+k+"px",A.length))for(var b=0;b<A.length;b++)a=z.getComputedStyle(A[b]).paddingRight,A[b].style.paddingRight=parseInt(a)+k+"px"},r=function(){var a=g.body.clientWidth,c=E.getBoundingClientRect();n=a<(z.innerWidth||c.right-Math.abs(c.left));v=b.scrollHeight>E.clientHeight;a=g.createElement("div");
a.className="modal-scrollbar-measure";g.body.appendChild(a);c=a.offsetWidth-a.clientWidth;g.body.removeChild(a);k=c},B=function(){b.style.paddingLeft=!n&&v?k+"px":"";b.style.paddingRight=n&&!v?k+"px":""},t=function(){P=1;var a=g.createElement("div");e=q(".modal-backdrop");null===e&&(a.setAttribute("class","modal-backdrop fade"),e=a,g.body.appendChild(e))},C=function(){(e=q(".modal-backdrop"))&&null!==e&&"object"===typeof e&&(P=0,g.body.removeChild(e),e=null);x.call(b,"hidden","modal")},F=function(){p(b,
"show")?u(g,"keydown",V):L(g,"keydown",V)},M=function(){p(b,"show")?u(z,"resize",f.update):L(z,"resize",f.update)},J=function(){p(b,"show")?u(b,"click",K):L(b,"click",K)},D=function(){O(b);x.call(b,"shown","modal",h)},G=function(){b.style.display="";a&&O(a);if(!I(g,"modal show")[0]){b.style.paddingLeft="";b.style.paddingRight="";g.body.style.paddingRight="";if(A.length)for(var c=0;c<A.length;c++)A[c].style.paddingRight="";y(g.body,"modal-open");e&&p(e,"fade")?(y(e,"show"),H(e,C)):C();M();J();F()}};
c=function(c){var d=c.target;d=d.hasAttribute("data-target")||d.hasAttribute("href")?d:d.parentNode;d!==a||p(b,"show")||(h=b.modalTrigger=a,f.show(),c.preventDefault())};var V=function(a){f.keyboard&&27==a.which&&p(b,"show")&&f.hide()},K=function(a){var c=a.target;p(b,"show")&&("modal"===c.parentNode.getAttribute("data-dismiss")||"modal"===c.getAttribute("data-dismiss")||c===b&&"static"!==f.backdrop)&&(f.hide(),h=null,a.preventDefault())};this.toggle=function(){p(b,"show")?this.hide():this.show()};
this.show=function(){x.call(b,"show","modal",h);var a=I(g,"modal show")[0];a&&a!==b&&a.modalTrigger.Modal.hide();this.backdrop&&!P&&t();e&&P&&!p(e,"show")&&(e.offsetWidth,m=R(e),w(e,"show"));setTimeout(function(){b.style.display="block";r();l();B();w(g.body,"modal-open");w(b,"show");b.setAttribute("aria-hidden",!1);M();J();F();p(b,"fade")?H(b,D):D()},N&&e?m:0)};this.hide=function(){x.call(b,"hide","modal");m=(e=q(".modal-backdrop"))&&R(e);y(b,"show");b.setAttribute("aria-hidden",!0);setTimeout(function(){p(b,
"fade")?H(b,G):G()},N&&e?m:0)};this.setContent=function(a){q(".modal-content",b).innerHTML=a};this.update=function(){p(b,"show")&&(r(),l(),B())};!a||"Modal"in a||u(a,"click",c);f.content&&f.setContent(f.content);a&&(a.Modal=f)}};D.push(["Modal",ca,'[data-toggle="modal"]']);var da=function(a,c){a=q(a);c=c||{};var d=a.getAttribute("data-trigger"),b=a.getAttribute("data-animation"),m=a.getAttribute("data-placement"),f=a.getAttribute("data-dismissible"),h=a.getAttribute("data-delay"),n=a.getAttribute("data-container"),
v=q(c.container);n=q(n);var k=G(a,".modal"),e=G(a,".fixed-top"),A=G(a,".fixed-bottom");this.template=c.template?c.template:null;this.trigger=c.trigger?c.trigger:d||"hover";this.animation=c.animation&&"fade"!==c.animation?c.animation:b||"fade";this.placement=c.placement?c.placement:m||"top";this.delay=parseInt(c.delay||h)||200;this.dismissible=c.dismissible||"true"===f?!0:!1;this.container=v?v:n?n:e?e:A?A:k?k:g.body;var l=this,r=a.getAttribute("data-title")||null,B=a.getAttribute("data-content")||
null;if(B||this.template){var t=null,C=0,F=this.placement,M=function(a){null!==t&&a.target===q(".close",t)&&l.hide()},J=function(b){"click"!=l.trigger&&"focus"!=l.trigger||l.dismissible||b(a,"blur",l.hide);l.dismissible&&b(g,"click",M);b(z,"resize",l.hide)},D=function(){J(u);x.call(a,"shown","popover")},E=function(){J(L);l.container.removeChild(t);t=C=null;x.call(a,"hidden","popover")};this.toggle=function(){null===t?l.show():l.hide()};this.show=function(){clearTimeout(C);C=setTimeout(function(){if(null===
t){F=l.placement;r=a.getAttribute("data-title");B=a.getAttribute("data-content");t=g.createElement("div");var b=g.createElement("div");b.setAttribute("class","arrow");t.appendChild(b);null!==B&&null===l.template?(t.setAttribute("role","tooltip"),null!==r&&(b=g.createElement("h3"),b.setAttribute("class","popover-header"),b.innerHTML=l.dismissible?r+'<button type="button" class="close">\u00d7</button>':r,t.appendChild(b)),b=g.createElement("div"),b.setAttribute("class","popover-body"),b.innerHTML=l.dismissible&&
null===r?B+'<button type="button" class="close">\u00d7</button>':B,t.appendChild(b)):(b=g.createElement("div"),b.innerHTML=l.template,t.innerHTML=b.firstChild.innerHTML);l.container.appendChild(t);t.style.display="block";t.setAttribute("class","popover bs-popover-"+F+" "+l.animation);W(a,t,F,l.container);!p(t,"show")&&w(t,"show");x.call(a,"show","popover");l.animation?H(t,D):D()}},20)};this.hide=function(){clearTimeout(C);C=setTimeout(function(){t&&null!==t&&p(t,"show")&&(x.call(a,"hide","popover"),
y(t,"show"),l.animation?H(t,E):E())},l.delay)};"Popover"in a||("hover"===l.trigger?(u(a,K[0],l.show),l.dismissible||u(a,K[1],l.hide)):"click"!=l.trigger&&"focus"!=l.trigger||u(a,l.trigger,l.toggle));a.Popover=l}};D.push(["Popover",da,'[data-toggle="popover"]']);var ea=function(a,c){a=q(a);var d=q(a.getAttribute("data-target")),b=a.getAttribute("data-offset");c=c||{};if(c.target||d){d=(d=c.target&&q(c.target)||d)&&d.getElementsByTagName("A");var m=parseInt(b||c.offset)||10,f=[],h=[],g;c=a.offsetHeight<
a.scrollHeight?a:z;var v=c===z;b=0;for(var k=d.length;b<k;b++){var e=d[b].getAttribute("href");if(e=e&&"#"===e.charAt(0)&&"#"!==e.slice(-1)&&q(e))f.push(d[b]),h.push(e)}this.refresh=function(){g=v?U().y:a.scrollTop;for(var b=0,c=f.length;b<c;b++){var d=b,e=f[d],n=h[d],k=e.parentNode.parentNode;k=p(k,"dropdown")&&k.getElementsByTagName("A")[0];var q=v&&n.getBoundingClientRect(),u=p(e,"active")||!1,z=v?q.bottom+g-m:h[d+1]?h[d+1].offsetTop-m:a.scrollHeight;n=g>=(v?q.top+g:n.offsetTop)-m&&z>g;!u&&n?p(e,
"active")||(w(e,"active"),k&&!p(k,"active")&&w(k,"active"),x.call(a,"activate","scrollspy",f[d])):!n&&p(e,"active")&&(y(e,"active"),k&&p(k,"active")&&!I(e.parentNode,"active").length&&y(k,"active"))}};"ScrollSpy"in a||(u(c,"scroll",this.refresh),u(z,"resize",this.refresh));this.refresh();a.ScrollSpy=this}};D.push(["ScrollSpy",ea,'[data-spy="scroll"]']);var fa=function(a,c){a=q(a);var d=a.getAttribute("data-height");c=c||{};this.height=N?c.height||"true"===d:!1;var b=this,g,f=G(a,".nav"),h=!1,n=f&&
q(".dropdown-toggle",f),v,k,e,A,l,r,z=function(){h.style.height="";y(h,"collapsing");f.isAnimating=!1},t=function(){h?l?z():setTimeout(function(){h.style.height=r+"px";h.offsetWidth;H(h,z)},50):f.isAnimating=!1;x.call(g,"shown","tab",v)},C=function(){h&&(k.style["float"]="left",e.style["float"]="left",A=k.scrollHeight);w(e,"active");x.call(g,"show","tab",v);y(k,"active");x.call(v,"hidden","tab",g);h&&(r=e.scrollHeight,l=r===A,w(h,"collapsing"),h.style.height=A+"px",h.offsetHeight,k.style["float"]=
"",e.style["float"]="");p(e,"fade")?setTimeout(function(){w(e,"show");H(e,t)},20):t()};if(f){f.isAnimating=!1;var F=function(){var a=I(f,"active"),b;1!==a.length||p(a[0].parentNode,"dropdown")?1<a.length&&(b=a[a.length-1]):b=a[0];return b};c=function(a){var c=a.target.getAttribute("href");a.preventDefault();g="tab"===a.target.getAttribute("data-toggle")||c&&"#"===c.charAt(0)?a.target:a.target.parentNode;f.isAnimating||p(g,"active")||b.show()};this.show=function(){g=g||a;e=q(g.getAttribute("href"));
v=F();k=q(F().getAttribute("href"));f.isAnimating=!0;y(v,"active");w(g,"active");n&&(p(a.parentNode,"dropdown-menu")?p(n,"active")||w(n,"active"):p(n,"active")&&y(n,"active"));x.call(v,"hide","tab",g);p(k,"fade")?(y(k,"show"),H(k,C)):C()};"Tab"in a||u(a,"click",c);b.height&&(h=q(F().getAttribute("href")).parentNode);a.Tab=b}};D.push(["Tab",fa,'[data-toggle="tab"]']);var ha=function(a,c){a=q(a);c=c||{};var d=a.getAttribute("data-animation"),b=a.getAttribute("data-placement"),m=a.getAttribute("data-delay"),
f=a.getAttribute("data-container"),h=q(c.container);f=q(f);var n=G(a,".modal"),v=G(a,".fixed-top"),k=G(a,".fixed-bottom");this.animation=c.animation&&"fade"!==c.animation?c.animation:d||"fade";this.placement=c.placement?c.placement:b||"top";this.delay=parseInt(c.delay||m)||200;this.container=h?h:f?f:v?v:k?k:n?n:g.body;var e=this,A=0,l=this.placement,r=null,B=a.getAttribute("title")||a.getAttribute("data-title")||a.getAttribute("data-original-title");if(B&&""!=B){var t=function(){u(z,"resize",e.hide);
x.call(a,"shown","tooltip")},C=function(){L(z,"resize",e.hide);e.container.removeChild(r);A=r=null;x.call(a,"hidden","tooltip")};this.show=function(){clearTimeout(A);A=setTimeout(function(){if(null===r){l=e.placement;if((B=a.getAttribute("title")||a.getAttribute("data-title")||a.getAttribute("data-original-title"))&&""!=B){r=g.createElement("div");r.setAttribute("role","tooltip");var b=g.createElement("div");b.setAttribute("class","arrow");r.appendChild(b);b=g.createElement("div");b.setAttribute("class",
"tooltip-inner");r.appendChild(b);b.innerHTML=B;e.container.appendChild(r);r.setAttribute("class","tooltip bs-tooltip-"+l+" "+e.animation);b=void 0}else b=!1;0!=b&&(W(a,r,l,e.container),!p(r,"show")&&w(r,"show"),x.call(a,"show","tooltip"),e.animation?H(r,t):t())}},20)};this.hide=function(){clearTimeout(A);A=setTimeout(function(){r&&p(r,"show")&&(x.call(a,"hide","tooltip"),y(r,"show"),e.animation?H(r,C):C())},e.delay)};this.toggle=function(){r?e.hide():e.show()};"Tooltip"in a||(a.setAttribute("data-original-title",
B),a.removeAttribute("title"),u(a,K[0],e.show),u(a,K[1],e.hide));a.Tooltip=e}};D.push(["Tooltip",ha,'[data-toggle="tooltip"]']);var ia=Q.initCallback=function(a){a=a||g;for(var c=0,d=D.length;c<d;c++)for(var b=D[c][1],m=a.querySelectorAll(D[c][2]),f=0,h=m.length;f<h;f++)new b(m[f])};g.body?ia():u(g,"DOMContentLoaded",function(){ia()});return{Alert:X,Button:Y,Carousel:Z,Collapse:aa,Dropdown:ba,Modal:ca,Popover:da,ScrollSpy:ea,Tab:fa,Tooltip:ha}});