bootstrap.native
Advanced tools
Comparing version 3.0.8 to 3.0.9
@@ -1,2 +0,2 @@ | ||
// Native JavaScript for Bootstrap v3.0.8 | 2020 © dnp_theme | MIT-License | ||
var t="webkitTransition"in document.body.style?"webkitTransitionEnd":"transitionend",e="webkitTransition"in document.body.style||"transition"in document.body.style,i="webkitTransition"in document.body.style?"webkitTransitionDuration":"transitionDuration";function n(t){var n=e?parseFloat(getComputedStyle(t)[i]):0;return n="number"!=typeof n||isNaN(n)?0:1e3*n}function s(e,i){var s=0;n(e)?e.addEventListener(t,(function n(a){!s&&i(a),s=1,e.removeEventListener(t,n)})):setTimeout((function(){!s&&i(),s=1}),17)}function a(t,e){var i=e&&e instanceof Element?e:document;return t instanceof Element?t:i.querySelector(t)}function o(t,e,i){var n=new CustomEvent(t+".bs."+e,{cancelable:!0});return n.relatedTarget=i,n}function l(t){this&&this.dispatchEvent(t)}function c(t){var e,i=this,n=o("close","alert"),c=o("closed","alert");function r(e){t[e=e?"addEventListener":"removeEventListener"]("click",d,!1)}function d(n){e=n&&n.target.closest(".alert"),(t=a('[data-dismiss="alert"]',e))&&e&&(t===n.target||t.contains(n.target))&&i.close()}function u(){r(),e.parentNode.removeChild(e),l.call(e,c)}i.close=function(){if(e&&t&&e.classList.contains("show")){if(l.call(e,n),n.defaultPrevented)return;i.dispose(),e.classList.remove("show"),e.classList.contains("fade")?s(e,u):u()}},i.dispose=function(){r(),delete t.Alert},t=a(t),e=t.closest(".alert"),t.Alert&&t.Alert.dispose(),t.Alert||r(1),i.element=t,t.Alert=i}function r(t){var e,i=o("change","button");function n(n){var s,a="LABEL"===n.target.tagName?n.target:n.target.closest("LABEL")?n.target.closest("LABEL"):null;if(s=a&&a.getElementsByTagName("INPUT")[0]){if(l.call(s,i),l.call(t,i),"checkbox"===s.type){if(i.defaultPrevented)return;s.checked?(a.classList.remove("active"),s.getAttribute("checked"),s.removeAttribute("checked"),s.checked=!1):(a.classList.add("active"),s.getAttribute("checked"),s.setAttribute("checked","checked"),s.checked=!0),t.toggled||(t.toggled=!0)}if("radio"===s.type&&!t.toggled){if(i.defaultPrevented)return;(!s.checked||0===n.screenX&&0==n.screenY)&&(a.classList.add("active"),a.classList.add("focus"),s.setAttribute("checked","checked"),s.checked=!0,t.toggled=!0,Array.from(e).map((function(t){var e=t.getElementsByTagName("INPUT")[0];t!==a&&t.classList.contains("active")&&(l.call(e,i),t.classList.remove("active"),e.removeAttribute("checked"),e.checked=!1)})))}setTimeout((function(){t.toggled=!1}),50)}}function s(t){32===(t.which||t.keyCode)&&t.target===document.activeElement&&n(t)}function c(t){32===(t.which||t.keyCode)&&t.preventDefault()}function r(t){if("INPUT"===t.target.tagName){var e="focusin"===t.type?"add":"remove";t.target.closest(".btn").classList[e]("focus")}}function d(e){t[e=e?"addEventListener":"removeEventListener"]("click",n,!1),t[e]("keyup",s,!1),t[e]("keydown",c,!1),t[e]("focusin",r,!1),t[e]("focusout",r,!1)}this.dispose=function(){d(),delete t.Button},(t=a(t)).Button&&t.Button.dispose(),(e=t.getElementsByClassName("btn")).length&&(t.Button||d(1),t.toggled=!1,t.Button=this,Array.from(e).map((function(t){!t.classList.contains("active")&&a("input:checked",t)&&t.classList.add("active"),t.classList.contains("active")&&!a("input:checked",t)&&t.classList.remove("active")})))}var d="onmouseleave"in document?["mouseenter","mouseleave"]:["mouseover","mouseout"],u=!!function(){var t=!1;try{var e=Object.defineProperty({},"passive",{get:function(){t=!0}});document.addEventListener("DOMContentLoaded",(function t(){document.removeEventListener("DOMContentLoaded",t,e)}),e)}catch(t){}return t}()&&{passive:!0};function m(t,e){e=e||{};var i,c,r,m,f,g,h,p,v,L=this;function b(){!1===c.interval||t.classList.contains("paused")||(t.classList.add("paused"),!i.isSliding&&(clearInterval(i.timer),i.timer=null))}function y(){!1!==c.interval&&t.classList.contains("paused")&&(t.classList.remove("paused"),!i.isSliding&&(clearInterval(i.timer),i.timer=null),!i.isSliding&&L.cycle())}function w(t){if(t.preventDefault(),!i.isSliding){var e=t.target;if(!e||e.classList.contains("active")||!e.getAttribute("data-slide-to"))return!1;i.index=parseInt(e.getAttribute("data-slide-to")),L.slideTo(i.index)}}function A(t){if(t.preventDefault(),!i.isSliding){var e=t.currentTarget||t.srcElement;e===h?i.index++:e===g&&i.index--,L.slideTo(i.index)}}function T(t){var e=t.which;if(!i.isSliding){switch(e){case 39:i.index++;break;case 37:i.index--;break;default:return}L.slideTo(i.index)}}function E(e){e=e?"addEventListener":"removeEventListener",c.pause&&c.interval&&(t[e](d[0],b,!1),t[e](d[1],y,!1),t[e]("touchstart",b,u),t[e]("touchend",y,u)),c.touch&&f.length>1&&t[e]("touchstart",C,u),h&&h[e]("click",A,!1),g&&g[e]("click",A,!1),p&&p[e]("click",w,!1),c.keyboard&&window[e]("keydown",T,!1)}function k(e){t[e=e?"addEventListener":"removeEventListener"]("touchmove",x,u),t[e]("touchend",N,u)}function C(e){i.isTouch||(i.touchPosition.startX=e.changedTouches[0].pageX,t.contains(e.target)&&(i.isTouch=!0,k(1)))}function x(t){if(i.isTouch)return i.touchPosition.currentX=t.changedTouches[0].pageX,"touchmove"===t.type&&t.changedTouches.length>1?(t.preventDefault(),!1):void 0;t.preventDefault()}function N(e){if(i.isTouch&&!i.isSliding&&(i.touchPosition.endX=i.touchPosition.currentX||e.changedTouches[0].pageX,i.isTouch)){if((!t.contains(e.target)||!t.contains(e.relatedTarget))&&Math.abs(i.touchPosition.startX-i.touchPosition.endX)<75)return!1;i.touchPosition.currentX<i.touchPosition.startX?i.index++:i.touchPosition.currentX>i.touchPosition.startX&&i.index--,i.isTouch=!1,L.slideTo(i.index),k()}}function P(t){Array.from(v).map((function(t){t.classList.remove("active")})),v[t]&&v[t].classList.add("active")}function B(e){if(i.touchPosition){var n=i.index,s=e&&e.target!==f[n]?1e3*e.elapsedTime+100:20,a=L.getActiveIndex(),o="left"===i.direction?"next":"prev";i.isSliding&&setTimeout((function(){i.touchPosition&&(i.isSliding=!1,f[n].classList.add("active"),f[a].classList.remove("active"),f[n].classList.remove("carousel-item-"+o),f[n].classList.remove("carousel-item-"+i.direction),f[a].classList.remove("carousel-item-"+i.direction),l.call(t,m),document.hidden||!c.interval||t.classList.contains("paused")||L.cycle())}),s)}}if(L.cycle=function(){i.timer&&(clearInterval(i.timer),i.timer=null),i.timer=setInterval((function(){var e=i.index||L.getActiveIndex();(function(t){var e=t.getBoundingClientRect(),i=window.innerHeight||document.documentElement.clientHeight;return e.top<=i&&e.bottom>=0})(t)&&(e++,L.slideTo(e))}),c.interval)},L.slideTo=function(e){if(!i.isSliding){var a,d=L.getActiveIndex();d!==e&&(d<e||0===d&&e===f.length-1?i.direction="left":(d>e||d===f.length-1&&0===e)&&(i.direction="right"),e<0?e=f.length-1:e>=f.length&&(e=0),a="left"===i.direction?"next":"prev",r=o("slide","carousel",f[e]),m=o("slid","carousel",f[e]),l.call(t,r),r.defaultPrevented||(i.index=e,i.isSliding=!0,clearInterval(i.timer),i.timer=null,P(e),n(f[e])&&t.classList.contains("slide")?(f[e].classList.add("carousel-item-"+a),f[e].offsetWidth,f[e].classList.add("carousel-item-"+i.direction),f[d].classList.add("carousel-item-"+i.direction),s(f[e],B)):(f[e].classList.add("active"),f[e].offsetWidth,f[d].classList.remove("active"),setTimeout((function(){i.isSliding=!1,c.interval&&t&&!t.classList.contains("paused")&&L.cycle(),l.call(t,m)}),100))))}},L.getActiveIndex=function(){return Array.from(f).indexOf(t.getElementsByClassName("carousel-item active")[0])||0},L.dispose=function(){var e=["left","right","prev","next"];Array.from(f).map((function(t,i){t.classList.contains("active")&&P(i),e.map((function(e){return t.classList.remove("carousel-item-"+e)}))})),clearInterval(i.timer),E(),i={},c={},delete t.Carousel},(t=a(t)).Carousel&&t.Carousel.dispose(),f=t.getElementsByClassName("carousel-item"),g=t.getElementsByClassName("carousel-control-prev")[0],h=t.getElementsByClassName("carousel-control-next")[0],p=t.getElementsByClassName("carousel-indicators")[0],v=p&&p.getElementsByTagName("LI")||[],!(f.length<2)){var S=t.getAttribute("data-interval"),H="false"===S?0:parseInt(S),M="false"===t.getAttribute("data-touch")?0:1,I="hover"===t.getAttribute("data-pause")||!1,D="true"===t.getAttribute("data-keyboard")||!1,X=e.interval,W=e.touch;(c={}).keyboard=!0===e.keyboard||D,c.pause=!("hover"!==e.pause&&!I)&&"hover",c.touch=W||M,c.interval="number"==typeof X?X:!1===X||0===H||!1===H?0:isNaN(H)?5e3:H,L.getActiveIndex()<0&&(f.length&&f[0].classList.add("active"),v.length&&P(0)),(i={}).direction="left",i.index=0,i.timer=null,i.isSliding=!1,i.isTouch=!1,i.touchPosition={startX:0,currentX:0,endX:0},E(1),c.interval&&L.cycle(),t.Carousel=L}}function f(t,e){e=e||{};var i,n,c,r,d,u,m=this,f=null,g=null;function h(t,e){l.call(t,d),d.defaultPrevented||(t.isAnimating=!0,t.style.height=t.scrollHeight+"px",t.classList.remove("collapse"),t.classList.remove("show"),t.classList.add("collapsing"),t.offsetWidth,t.style.height="0px",s(t,(function(){t.isAnimating=!1,t.setAttribute("aria-expanded","false"),e.setAttribute("aria-expanded","false"),t.classList.remove("collapsing"),t.classList.add("collapse"),t.style.height="",l.call(t,u)})))}m.toggle=function(e){(e&&"A"===e.target.tagName||"A"===t.tagName)&&e.preventDefault(),(t.contains(e.target)||e.target===t)&&(g.classList.contains("show")?m.hide():m.show())},m.hide=function(){g.isAnimating||(h(g,t),t.classList.add("collapsed"))},m.show=function(){var e,o;f&&(i=f.getElementsByClassName("collapse show")[0],n=i&&(a('[data-target="#'+i.id+'"]',f)||a('[href="#'+i.id+'"]',f))),g.isAnimating||(n&&i!==g&&(h(i,n),n.classList.add("collapsed")),e=g,o=t,l.call(e,c),c.defaultPrevented||(e.isAnimating=!0,e.classList.add("collapsing"),e.classList.remove("collapse"),e.style.height=e.scrollHeight+"px",s(e,(function(){e.isAnimating=!1,e.setAttribute("aria-expanded","true"),o.setAttribute("aria-expanded","true"),e.classList.remove("collapsing"),e.classList.add("collapse"),e.classList.add("show"),e.style.height="",l.call(e,r)}))),t.classList.remove("collapsed"))},m.dispose=function(){t.removeEventListener("click",m.toggle,!1),delete t.Collapse},(t=a(t)).Collapse&&t.Collapse.dispose();var p=t.getAttribute("data-parent");c=o("show","collapse"),r=o("shown","collapse"),d=o("hide","collapse"),u=o("hidden","collapse"),(g=a(e.target||t.getAttribute("data-target")||t.getAttribute("href"))).isAnimating=!1,f=t.closest(e.parent||p),t.Collapse||t.addEventListener("click",m.toggle,!1),t.Collapse=m}function g(t){t.focus?t.focus():t.setActive()}function h(t,e){var i,n,s,c,r,d,u,m=this,f=null,h=[];function p(t){(t.href&&"#"===t.href.slice(-1)||t.parentNode&&t.parentNode.href&&"#"===t.parentNode.href.slice(-1))&&this.preventDefault()}function v(){var e=t.open?"addEventListener":"removeEventListener";document[e]("click",L,!1),document[e]("keydown",y,!1),document[e]("keyup",w,!1),document[e]("focus",L,!1)}function L(e){var i=e.target,n=i&&(i.getAttribute("data-toggle")||i.parentNode&&i.parentNode.getAttribute&&i.parentNode.getAttribute("data-toggle"));("focus"!==e.type||i!==t&&i!==d&&!d.contains(i))&&(i!==d&&!d.contains(i)||!u&&!n)&&(f=i===t||t.contains(i)?t:null,m.hide(),p.call(e,i))}function b(e){f=t,m.show(),p.call(e,e.target)}function y(t){var e=t.which||t.keyCode;38!==e&&40!==e||t.preventDefault()}function w(e){var i=e.which||e.keyCode,n=document.activeElement,s=n===t,a=d.contains(n),o=n.parentNode===d||n.parentNode.parentNode===d,l=h.indexOf(n);o&&(l=s?0:38===i?l>1?l-1:0:40===i&&l<h.length-1?l+1:l,h[l]&&g(h[l])),(h.length&&o||!h.length&&(a||s)||!a)&&t.open&&27===i&&(m.toggle(),f=null)}m.show=function(){i=o("show","dropdown",f),l.call(r,i),i.defaultPrevented||(d.classList.add("show"),r.classList.add("show"),t.setAttribute("aria-expanded",!0),t.open=!0,t.removeEventListener("click",b,!1),setTimeout((function(){g(d.getElementsByTagName("INPUT")[0]||t),v(),n=o("shown","dropdown",f),l.call(r,n)}),1))},m.hide=function(){s=o("hide","dropdown",f),l.call(r,s),s.defaultPrevented||(d.classList.remove("show"),r.classList.remove("show"),t.setAttribute("aria-expanded",!1),t.open=!1,v(),g(t),setTimeout((function(){t.Dropdown&&t.addEventListener("click",b,!1)}),1),c=o("hidden","dropdown",f),l.call(r,c))},m.toggle=function(){r.classList.contains("show")&&t.open?m.hide():m.show()},m.dispose=function(){r.classList.contains("show")&&t.open&&m.hide(),t.removeEventListener("click",b,!1),delete t.Dropdown},(t=a(t)).Dropdown&&t.Dropdown.dispose(),r=t.parentNode,d=a(".dropdown-menu",r),Array.from(d.children).map((function(t){t.children.length&&"A"===t.children[0].tagName&&h.push(t.children[0]),"A"===t.tagName&&h.push(t)})),t.Dropdown||(!("tabindex"in d)&&d.setAttribute("tabindex","0"),t.addEventListener("click",b,!1)),u=!0===e||"true"===t.getAttribute("data-persist")||!1,t.open=!1,t.Dropdown=m}function p(t,e){e=e||{};var i,c,r,d,m,f,h,p,v,L=this,b=null,y={};function w(){var t,e,n=document.body.classList.contains("modal-open"),s=parseInt(getComputedStyle(document.body).paddingRight),a=document.documentElement.clientHeight!==document.documentElement.scrollHeight||document.body.clientHeight!==document.body.scrollHeight,o=i.clientHeight!==i.scrollHeight;(e=document.createElement("div")).className="modal-scrollbar-measure",document.body.appendChild(e),t=e.offsetWidth-e.clientWidth,document.body.removeChild(e),f=t,i.style.paddingRight=!o&&f?f+"px":"",document.body.style.paddingRight=o||a?s+(n?0:f)+"px":"",v.length&&v.map((function(t){var e=getComputedStyle(t).paddingRight;t.style.paddingRight=o||a?parseInt(e)+(n?0:f)+"px":parseInt(e)+"px"}))}function A(){(h=a(".modal-backdrop"))&&!document.getElementsByClassName("modal show")[0]&&(document.body.removeChild(h),h=null),null===h&&(document.body.classList.remove("modal-open"),document.body.style.paddingRight="",i.style.paddingRight="",v.length&&v.map((function(t){t.style.paddingRight=""})))}function T(t){t=t?"addEventListener":"removeEventListener",window[t]("resize",L.update,u),i[t]("click",P,!1),document[t]("keydown",N,!1)}function E(){i.style.display="block",w(),!document.getElementsByClassName("modal show")[0]&&document.body.classList.add("modal-open"),i.classList.add("show"),i.setAttribute("aria-hidden",!1),i.classList.contains("fade")?s(i,k):k()}function k(){g(i),i.isAnimating=!1,T(1),r=o("shown","modal",b),l.call(i,r)}function C(e){i.style.display="",t&&g(t),h=a(".modal-backdrop"),1!==e&&h&&h.classList.contains("show")&&!document.getElementsByClassName("modal show")[0]?(h.classList.remove("show"),s(h,A)):A(),T(),i.isAnimating=!1,m=o("hidden","modal"),l.call(i,m)}function x(e){if(!i.isAnimating){var n=e.target,s="#"+i.getAttribute("id"),a=n.getAttribute("data-target")||n.getAttribute("href"),o=t.getAttribute("data-target")||t.getAttribute("href");!i.classList.contains("show")&&(n===t&&a===s||t.contains(n)&&o===s)&&(i.modalTrigger=t,b=t,L.show(),e.preventDefault())}}function N(t){var e=t.which;!i.isAnimating&&y.keyboard&&27==e&&i.classList.contains("show")&&L.hide()}function P(t){if(!i.isAnimating){var e=t.target,n="modal"===e.getAttribute("data-dismiss"),s=e.closest('[data-dismiss="modal"]');i.classList.contains("show")&&(s||n||e===i&&"static"!==y.backdrop)&&(L.hide(),b=null,t.preventDefault())}}L.toggle=function(){i.classList.contains("show")?L.hide():L.show()},L.show=function(){if(!(i.classList.contains("show")&&i.isAnimating||(c=o("show","modal",b),l.call(i,c),c.defaultPrevented))){i.isAnimating=!0;var t,e=document.getElementsByClassName("modal show")[0];e&&e!==i&&(e.modalTrigger&&e.modalTrigger.Modal.hide(),e.Modal&&e.Modal.hide()),y.backdrop&&(t=document.createElement("div"),null===(h=a(".modal-backdrop"))&&(t.setAttribute("class","modal-backdrop"+(y.animation?" fade":"")),h=t,document.body.appendChild(h)),h=h),!h||e||h.classList.contains("show")||(h.offsetWidth,p=n(h),h.classList.add("show")),e?E():setTimeout(E,h&&p?p:0)}},L.hide=function(t){i.classList.contains("show")&&(d=o("hide","modal"),l.call(i,d),d.defaultPrevented||(i.isAnimating=!0,i.classList.remove("show"),i.setAttribute("aria-hidden",!0),i.classList.contains("fade")&&1!==t?s(i,C):C()))},L.setContent=function(t){a(".modal-content",i).innerHTML=t},L.update=function(){i.classList.contains("show")&&w()},L.dispose=function(){L.hide(1),t?(t.removeEventListener("click",x,!1),delete t.Modal):delete i.Modal},t=a(t);var B=a(t.getAttribute("data-target")||t.getAttribute("href"));i=t.classList.contains("modal")?t:B,v=Array.from(document.getElementsByClassName("fixed-top")).concat(Array.from(document.getElementsByClassName("fixed-bottom"))),t.classList.contains("modal")&&(t=null),t&&t.Modal&&t.Modal.dispose(),i&&i.Modal&&i.Modal.dispose(),y.keyboard=!1!==e.keyboard&&"false"!==i.getAttribute("data-keyboard"),y.backdrop="static"!==e.backdrop&&"static"!==i.getAttribute("data-backdrop")||"static",y.backdrop=!1!==e.backdrop&&"false"!==i.getAttribute("data-backdrop")&&y.backdrop,y.animation=!!i.classList.contains("fade"),y.content=e.content,i.isAnimating=!1,t&&!t.Modal&&t.addEventListener("click",x,!1),y.content&&L.setContent(y.content.trim()),t?(i.modalTrigger=t,t.Modal=L):i.Modal=L}var v="mousedown";function L(){return{y:window.pageYOffset||document.documentElement.scrollTop,x:window.pageXOffset||document.documentElement.scrollLeft}}function b(t,e,i,n){var s,a,o,l,c,r,d=e.offsetWidth,u=e.offsetHeight,m=document.documentElement.clientWidth||document.body.clientWidth,f=document.documentElement.clientHeight||document.body.clientHeight,g=t.getBoundingClientRect(),h=n===document.body?L():{x:n.offsetLeft+n.scrollLeft,y:n.offsetTop+n.scrollTop},p=g.right-g.left,v=g.bottom-g.top,b=e.classList.contains("popover"),y=e.getElementsByClassName("arrow")[0],w=g.top+v/2-u/2<0,A=g.left+p/2-d/2<0,T=g.left+d/2+p/2>=m,E=g.top+u/2+v/2>=f,k=g.top-u<0,C=g.left-d<0,x=g.top+u+v>=f,N=g.left+d+p>=m;i="right"===(i="left"===(i="bottom"===(i="top"===(i=("left"===i||"right"===i)&&C&&N?"top":i)&&k?"bottom":i)&&x?"top":i)&&C?"right":i)&&N?"left":i,-1===e.className.indexOf(i)&&(e.className=e.className.replace(/\b(top|bottom|left|right)+/,i)),c=y.offsetWidth,r=y.offsetHeight,"left"===i||"right"===i?(a="left"===i?g.left+h.x-d-(b?c:0):g.left+h.x+p,w?(s=g.top+h.y,o=v/2-c):E?(s=g.top+h.y-u+v,o=u-v/2-c):(s=g.top+h.y-u/2+v/2,o=u/2-(b?.9*r:r/2))):"top"!==i&&"bottom"!==i||(s="top"===i?g.top+h.y-u-(b?r:0):g.top+h.y+v,A?(a=0,l=g.left+p/2-c):T?(a=m-1.01*d,l=d-(m-g.left)+p/2-c/2):(a=g.left+h.x-d/2+p/2,l=d/2-(b?c:c/2))),e.style.top=s+"px",e.style.left=a+"px",o&&(y.style.top=o+"px"),l&&(y.style.left=l+"px")}function y(t,e){e=e||{};var i,n,c,r,m,f,g,h,p,L,y,w,A,T,E,k,C,x,N,P=this,B=null,S=0,H=/(iPhone|iPod|iPad)/.test(navigator.userAgent),M={};function I(t){null!==B&&t.target===a(".close",B)&&P.hide()}function D(){return{0:e.title||t.getAttribute("data-title")||null,1:e.content||t.getAttribute("data-content")||null}}function X(){null===B&&t.focus()}function W(e){e=e?"addEventListener":"removeEventListener","hover"===M.trigger?(t[e](v,P.show),t[e](d[0],P.show),M.dismissible||t[e](d[1],P.hide)):"click"==M.trigger?t[e](M.trigger,P.toggle):"focus"==M.trigger&&(H&&t[e]("click",X,!1),t[e](M.trigger,P.toggle))}function O(e){B&&B.contains(e.target)||e.target===t||t.contains(e.target)||P.hide()}function R(e){e=e?"addEventListener":"removeEventListener",M.dismissible?document[e]("click",I,!1):("focus"==M.trigger&&t[e]("blur",P.hide),"hover"==M.trigger&&document[e]("touchstart",O,u)),window[e]("resize",P.hide,u)}function z(){R(1),l.call(t,y)}function U(){R(),M.container.removeChild(B),S=null,B=null,l.call(t,A)}P.toggle=function(){null===B?P.show():P.hide()},P.show=function(){clearTimeout(S),S=setTimeout((function(){if(null===B){if(l.call(t,L),L.defaultPrevented)return;!function(){i=D()[0]||null,n=(n=D()[1])?n.trim():null,B=document.createElement("div");var t=document.createElement("div");if(t.classList.add("arrow"),B.appendChild(t),null!==n&&null===M.template){if(B.setAttribute("role","tooltip"),null!==i){var e=document.createElement("h3");e.classList.add("popover-header"),e.innerHTML=M.dismissible?i+p:i,B.appendChild(e)}var s=document.createElement("div");s.classList.add("popover-body"),s.innerHTML=M.dismissible&&null===i?n+p:n,B.appendChild(s)}else{var o=document.createElement("div");o.innerHTML=M.template.trim(),B.className=o.firstChild.className,B.innerHTML=o.firstChild.innerHTML;var l=a(".popover-header",B),c=a(".popover-body",B);i&&l&&(l.innerHTML=i.trim()),n&&c&&(c.innerHTML=n.trim())}M.container.appendChild(B),B.style.display="block",!B.classList.contains("popover")&&B.classList.add("popover"),!B.classList.contains(M.animation)&&B.classList.add(M.animation),!B.classList.contains(N)&&B.classList.add(N)}(),b(t,B,M.placement,M.container),!B.classList.contains("show")&&B.classList.add("show"),M.animation?s(B,z):z()}}),20)},P.hide=function(){clearTimeout(S),S=setTimeout((function(){if(B&&null!==B&&B.classList.contains("show")){if(l.call(t,w),w.defaultPrevented)return;B.classList.remove("show"),M.animation?s(B,U):U()}}),M.delay)},P.dispose=function(){P.hide(),W(),delete t.Popover},(t=a(t)).Popover&&t.Popover.dispose(),c=t.getAttribute("data-trigger"),r=t.getAttribute("data-animation"),m=t.getAttribute("data-placement"),f=t.getAttribute("data-dismissible"),g=t.getAttribute("data-delay"),h=t.getAttribute("data-container"),p='<button type="button" class="close">×</button>',L=o("show","popover"),y=o("shown","popover"),w=o("hide","popover"),A=o("hidden","popover"),T=a(e.container),E=a(h),k=t.closest(".modal"),C=t.closest(".fixed-top"),x=t.closest(".fixed-bottom"),M.template=e.template?e.template:null,M.trigger=e.trigger?e.trigger:c||"hover",M.animation=e.animation&&"fade"!==e.animation?e.animation:r||"fade",M.placement=e.placement?e.placement:m||"top",M.delay=parseInt(e.delay||g)||200,M.dismissible=!(!e.dismissible&&"true"!==f),M.container=T||(E||(C||(x||(k||document.body)))),N="bs-popover-"+M.placement;var q=D();i=q[0],((n=q[1])||M.template)&&(t.Popover||W(1),t.Popover=P)}function w(t,e){e=e||{};var i,n,s,c,r,d=this,m={};function f(){var e;e=c.getElementsByTagName("A"),i.length!==e.length&&(i.items=[],i.targets=[],Array.from(e).map((function(t){var e=t.getAttribute("href"),n=e&&"#"===e.charAt(0)&&"#"!==e.slice(-1)&&a(e);n&&(i.items.push(t),i.targets.push(n))})),i.length=e.length),i.scrollOffset=i.isWindow?L().y:t.scrollTop,i.items.map((function(e,n){return function(e){var n=i.items[e],s=i.targets[e],a=n.classList.contains("dropdown-item")&&n.closest(".dropdown-menu"),c=a&&a.previousElementSibling,r=n.nextElementSibling,d=r&&r.getElementsByClassName("active").length,u=i.isWindow&&s.getBoundingClientRect(),f=n.classList.contains("active")||!1,g=(i.isWindow?u.top+i.scrollOffset:s.offsetTop)-m.offset,h=i.isWindow?u.bottom+i.scrollOffset-m.offset:i.targets[e+1]?i.targets[e+1].offsetTop-m.offset:t.scrollHeight,p=d||i.scrollOffset>=g&&h>i.scrollOffset;if(!f&&p)n.classList.add("active"),c&&!c.classList.contains("active")&&c.classList.add("active"),l.call(t,o("activate","scrollspy",i.items[e]));else if(f&&!p)n.classList.remove("active"),c&&c.classList.contains("active")&&!n.parentNode.getElementsByClassName("active").length&&c.classList.remove("active");else if(f&&p||!p&&!f)return}(n)}))}function g(t){r[t=t?"addEventListener":"removeEventListener"]("scroll",d.refresh,u),window[t]("resize",d.refresh,u)}d.refresh=function(){f()},d.dispose=function(){g(),delete t.ScrollSpy},(t=a(t)).ScrollSpy&&t.ScrollSpy.dispose(),n=t.getAttribute("data-target"),s=t.getAttribute("data-offset"),c=a(e.target||n),r=t.offsetHeight<t.scrollHeight?t:window,c&&(m.target=c,m.offset=parseInt(e.offset||s)||10,(i={}).length=0,i.items=[],i.targets=[],i.isWindow=r===window,t.ScrollSpy||g(1),d.refresh(),t.ScrollSpy=d)}function A(t,i){i=i||{};var n,c,r,d,u,m,f,g,h,p,v,L,b,y,w,A=this,T=!1;function E(){T.style.height="",T.classList.remove("collapsing"),c.isAnimating=!1}function k(){T?b?E():setTimeout((function(){T.style.height=y+"px",T.offsetWidth,s(T,E)}),50):c.isAnimating=!1,u=o("shown","tab",h),l.call(g,u)}function C(){T&&(p.style.float="left",v.style.float="left",L=p.scrollHeight),d=o("show","tab",h),f=o("hidden","tab",g),l.call(g,d),d.defaultPrevented||(v.classList.add("active"),p.classList.remove("active"),T&&(y=v.scrollHeight,b=y===L,T.classList.add("collapsing"),T.style.height=L+"px",T.offsetHeight,p.style.float="",v.style.float=""),v.classList.contains("fade")?setTimeout((function(){v.classList.add("show"),s(v,k)}),20):k(),l.call(h,f))}function x(){var t,e=c.getElementsByClassName("active");return 1!==e.length||e[0].parentNode.classList.contains("dropdown")?e.length>1&&(t=e[e.length-1]):t=e[0],t}function N(){return a(x().getAttribute("href"))}function P(t){t.preventDefault(),g=t.currentTarget,!c.isAnimating&&A.show()}A.show=function(){if(!(g=g||t).classList.contains("active")){if(v=a(g.getAttribute("href")),h=x(),p=N(),m=o("hide","tab",g),l.call(h,m),m.defaultPrevented)return;c.isAnimating=!0,h.classList.remove("active"),h.setAttribute("aria-selected","false"),g.classList.add("active"),g.setAttribute("aria-selected","true"),r&&(t.parentNode.classList.contains("dropdown-menu")?r.classList.contains("active")||r.classList.add("active"):r.classList.contains("active")&&r.classList.remove("active")),p.classList.contains("fade")?(p.classList.remove("show"),s(p,C)):C()}},A.dispose=function(){t.removeEventListener("click",P,!1),delete t.Tab},(t=a(t)).Tab&&t.Tab.dispose(),n=t.getAttribute("data-height"),c=t.closest(".nav"),r=c&&a(".dropdown-toggle",c),w=!(!e||!1===i.height||"false"===n),c.isAnimating=!1,t.Tab||t.addEventListener("click",P,!1),w&&(T=N().parentNode),t.Tab=A}function T(t,e){e=e||{};var i,n,c,r,d,u,m,f,g=this,h=0,p={};function v(){i.classList.remove("showing"),i.classList.add("show"),l.call(i,m),p.autohide&&g.hide()}function L(){i.classList.add("hide"),l.call(i,f)}function b(){i.classList.remove("show"),p.animation?s(i,L):L()}function y(){clearTimeout(h),t.removeEventListener("click",g.hide,!1),delete t.Toast}g.show=function(){if(i&&!i.classList.contains("show")){if(l.call(i,d),d.defaultPrevented)return;p.animation&&i.classList.add("fade"),i.classList.remove("hide"),i.offsetWidth,i.classList.add("showing"),p.animation?s(i,v):v()}},g.hide=function(t){if(i&&i.classList.contains("show")){if(l.call(i,u),u.defaultPrevented)return;t?b():h=setTimeout(b,p.delay)}},g.dispose=function(){p.animation?s(i,y):y()},(t=a(t)).Toast&&t.Toast.dispose(),i=t.closest(".toast"),n=t.getAttribute("data-animation"),c=t.getAttribute("data-autohide"),r=t.getAttribute("data-delay"),d=o("show","toast"),u=o("hide","toast"),m=o("shown","toast"),f=o("hidden","toast"),p.animation=!1===e.animation||"false"===n?0:1,p.autohide=!1===e.autohide||"false"===c?0:1,p.delay=parseInt(e.delay||r)||500,t.Toast||t.addEventListener("click",g.hide,!1),t.Toast=g}function E(t,e){e=e||{};var i,n,c,r,m,f,g,h,p,L,y,w,A,T,E,k=this,C=null,x=0,N={};function P(){return t.getAttribute("title")||t.getAttribute("data-title")||t.getAttribute("data-original-title")}function B(e){C&&C.contains(e.target)||e.target===t||t.contains(e.target)||k.hide()}function S(t){t=t?"addEventListener":"removeEventListener",document[t]("touchstart",B,u),window[t]("resize",k.hide,u)}function H(){S(1),l.call(t,g)}function M(){S(),N.container.removeChild(C),C=null,x=null,l.call(t,p)}function I(e){t[e=e?"addEventListener":"removeEventListener"](v,k.show,!1),t[e](d[0],k.show,!1),t[e](d[1],k.hide,!1)}k.show=function(){clearTimeout(x),x=setTimeout((function(){if(null===C){if(l.call(t,f),f.defaultPrevented)return;!1!==function(){if(i=P()){if(C=document.createElement("div"),N.template){var t=document.createElement("div");t.innerHTML=N.template.trim(),C.className=t.firstChild.className,C.innerHTML=t.firstChild.innerHTML,a(".tooltip-inner",C).innerHTML=i.trim()}else{var e=document.createElement("div");e.classList.add("arrow"),C.appendChild(e);var n=document.createElement("div");n.classList.add("tooltip-inner"),C.appendChild(n),n.innerHTML=i}C.style.left="0",C.style.top="0",C.setAttribute("role","tooltip"),!C.classList.contains("tooltip")&&C.classList.add("tooltip"),!C.classList.contains(N.animation)&&C.classList.add(N.animation),!C.classList.contains(E)&&C.classList.add(E),N.container.appendChild(C)}}()&&(b(t,C,N.placement,N.container),!C.classList.contains("show")&&C.classList.add("show"),N.animation?s(C,H):H())}}),20)},k.hide=function(){clearTimeout(x),x=setTimeout((function(){if(C&&C.classList.contains("show")){if(l.call(t,h),h.defaultPrevented)return;C.classList.remove("show"),N.animation?s(C,M):M()}}),N.delay)},k.toggle=function(){C?k.hide():k.show()},k.dispose=function(){I(),k.hide(),t.setAttribute("title",t.getAttribute("data-original-title")),t.removeAttribute("data-original-title"),delete t.Tooltip},(t=a(t)).Tooltip&&t.Tooltip.dispose(),n=t.getAttribute("data-animation"),c=t.getAttribute("data-placement"),r=t.getAttribute("data-delay"),m=t.getAttribute("data-container"),f=o("show","tooltip"),g=o("shown","tooltip"),h=o("hide","tooltip"),p=o("hidden","tooltip"),L=a(e.container),y=a(m),w=t.closest(".modal"),A=t.closest(".fixed-top"),T=t.closest(".fixed-bottom"),N.animation=e.animation&&"fade"!==e.animation?e.animation:n||"fade",N.placement=e.placement?e.placement:c||"top",N.template=e.template?e.template:null,N.delay=parseInt(e.delay||r)||200,N.container=L||(y||(A||(T||(w||document.body)))),E="bs-tooltip-"+N.placement,(i=P())&&(t.Tooltip||(t.setAttribute("data-original-title",i),t.removeAttribute("title"),I(1)),t.Tooltip=k)}var k={};function C(t,e){Array.from(e).map((function(e){return new t(e)}))}function x(t){for(var e in t=t||document,k)C(k[e][0],t.querySelectorAll(k[e][1]))}function N(t,e){Array.from(e).map((function(e){return e[t].dispose()}))}k.Alert=[c,'[data-dismiss="alert"]'],k.Button=[r,'[data-toggle="buttons"]'],k.Carousel=[m,'[data-ride="carousel"]'],k.Collapse=[f,'[data-toggle="collapse"]'],k.Dropdown=[h,'[data-toggle="dropdown"]'],k.Modal=[p,'[data-toggle="modal"]'],k.Popover=[y,'[data-toggle="popover"],[data-tip="popover"]'],k.ScrollSpy=[w,'[data-spy="scroll"]'],k.Tab=[A,'[data-toggle="tab"]'],k.Toast=[T,'[data-dismiss="toast"]'],k.Tooltip=[E,'[data-toggle="tooltip"],[data-tip="tooltip"]'],document.body?x():document.addEventListener("DOMContentLoaded",(function t(){x(),document.removeEventListener("DOMContentLoaded",t,!1)}),!1);var P={Alert:c,Button:r,Carousel:m,Collapse:f,Dropdown:h,Modal:p,Popover:y,ScrollSpy:w,Tab:A,Toast:T,Tooltip:E,initCallback:x,removeDataAPI:function(t){for(var e in t=t||document,k)N(e,t.querySelectorAll(k[e][1]))},componentsInit:k,Version:"3.0.8"};export default P; | ||
// Native JavaScript for Bootstrap v3.0.9 | 2020 © dnp_theme | MIT-License | ||
var t="webkitTransition"in document.body.style?"webkitTransitionEnd":"transitionend",e="webkitTransition"in document.body.style||"transition"in document.body.style,i="webkitTransition"in document.body.style?"webkitTransitionDuration":"transitionDuration";function n(t){var n=e?parseFloat(getComputedStyle(t)[i]):0;return n="number"!=typeof n||isNaN(n)?0:1e3*n}function s(e,i){var s=0;n(e)?e.addEventListener(t,(function n(a){!s&&i(a),s=1,e.removeEventListener(t,n)})):setTimeout((function(){!s&&i(),s=1}),17)}function a(t,e){var i=e&&e instanceof Element?e:document;return t instanceof Element?t:i.querySelector(t)}function o(t,e,i){var n=new CustomEvent(t+".bs."+e,{cancelable:!0});return n.relatedTarget=i,n}function l(t){this&&this.dispatchEvent(t)}function c(t){var e,i=this,n=o("close","alert"),c=o("closed","alert");function r(e){t[e=e?"addEventListener":"removeEventListener"]("click",d,!1)}function d(n){e=n&&n.target.closest(".alert"),(t=a('[data-dismiss="alert"]',e))&&e&&(t===n.target||t.contains(n.target))&&i.close()}function u(){r(),e.parentNode.removeChild(e),l.call(e,c)}i.close=function(){if(e&&t&&e.classList.contains("show")){if(l.call(e,n),n.defaultPrevented)return;i.dispose(),e.classList.remove("show"),e.classList.contains("fade")?s(e,u):u()}},i.dispose=function(){r(),delete t.Alert},t=a(t),e=t.closest(".alert"),t.Alert&&t.Alert.dispose(),t.Alert||r(1),i.element=t,t.Alert=i}function r(t){var e,i=o("change","button");function n(n){var s,a="LABEL"===n.target.tagName?n.target:n.target.closest("LABEL")?n.target.closest("LABEL"):null;if(s=a&&a.getElementsByTagName("INPUT")[0]){if(l.call(s,i),l.call(t,i),"checkbox"===s.type){if(i.defaultPrevented)return;s.checked?(a.classList.remove("active"),s.getAttribute("checked"),s.removeAttribute("checked"),s.checked=!1):(a.classList.add("active"),s.getAttribute("checked"),s.setAttribute("checked","checked"),s.checked=!0),t.toggled||(t.toggled=!0)}if("radio"===s.type&&!t.toggled){if(i.defaultPrevented)return;(!s.checked||0===n.screenX&&0==n.screenY)&&(a.classList.add("active"),a.classList.add("focus"),s.setAttribute("checked","checked"),s.checked=!0,t.toggled=!0,Array.from(e).map((function(t){var e=t.getElementsByTagName("INPUT")[0];t!==a&&t.classList.contains("active")&&(l.call(e,i),t.classList.remove("active"),e.removeAttribute("checked"),e.checked=!1)})))}setTimeout((function(){t.toggled=!1}),50)}}function s(t){32===(t.which||t.keyCode)&&t.target===document.activeElement&&n(t)}function c(t){32===(t.which||t.keyCode)&&t.preventDefault()}function r(t){if("INPUT"===t.target.tagName){var e="focusin"===t.type?"add":"remove";t.target.closest(".btn").classList[e]("focus")}}function d(e){t[e=e?"addEventListener":"removeEventListener"]("click",n,!1),t[e]("keyup",s,!1),t[e]("keydown",c,!1),t[e]("focusin",r,!1),t[e]("focusout",r,!1)}this.dispose=function(){d(),delete t.Button},(t=a(t)).Button&&t.Button.dispose(),(e=t.getElementsByClassName("btn")).length&&(t.Button||d(1),t.toggled=!1,t.Button=this,Array.from(e).map((function(t){!t.classList.contains("active")&&a("input:checked",t)&&t.classList.add("active"),t.classList.contains("active")&&!a("input:checked",t)&&t.classList.remove("active")})))}var d="onmouseleave"in document?["mouseenter","mouseleave"]:["mouseover","mouseout"],u=!!function(){var t=!1;try{var e=Object.defineProperty({},"passive",{get:function(){t=!0}});document.addEventListener("DOMContentLoaded",(function t(){document.removeEventListener("DOMContentLoaded",t,e)}),e)}catch(t){}return t}()&&{passive:!0};function m(t,e){e=e||{};var i,c,r,m,f,g,h,p,v,L=this;function b(){!1===c.interval||t.classList.contains("paused")||(t.classList.add("paused"),!i.isSliding&&(clearInterval(i.timer),i.timer=null))}function y(){!1!==c.interval&&t.classList.contains("paused")&&(t.classList.remove("paused"),!i.isSliding&&(clearInterval(i.timer),i.timer=null),!i.isSliding&&L.cycle())}function w(t){if(t.preventDefault(),!i.isSliding){var e=t.target;if(!e||e.classList.contains("active")||!e.getAttribute("data-slide-to"))return!1;i.index=parseInt(e.getAttribute("data-slide-to")),L.slideTo(i.index)}}function A(t){if(t.preventDefault(),!i.isSliding){var e=t.currentTarget||t.srcElement;e===h?i.index++:e===g&&i.index--,L.slideTo(i.index)}}function T(t){var e=t.which;if(!i.isSliding){switch(e){case 39:i.index++;break;case 37:i.index--;break;default:return}L.slideTo(i.index)}}function E(e){e=e?"addEventListener":"removeEventListener",c.pause&&c.interval&&(t[e](d[0],b,!1),t[e](d[1],y,!1),t[e]("touchstart",b,u),t[e]("touchend",y,u)),c.touch&&f.length>1&&t[e]("touchstart",C,u),h&&h[e]("click",A,!1),g&&g[e]("click",A,!1),p&&p[e]("click",w,!1),c.keyboard&&window[e]("keydown",T,!1)}function k(e){t[e=e?"addEventListener":"removeEventListener"]("touchmove",x,u),t[e]("touchend",N,u)}function C(e){i.isTouch||(i.touchPosition.startX=e.changedTouches[0].pageX,t.contains(e.target)&&(i.isTouch=!0,k(1)))}function x(t){if(i.isTouch)return i.touchPosition.currentX=t.changedTouches[0].pageX,"touchmove"===t.type&&t.changedTouches.length>1?(t.preventDefault(),!1):void 0;t.preventDefault()}function N(e){if(i.isTouch&&!i.isSliding&&(i.touchPosition.endX=i.touchPosition.currentX||e.changedTouches[0].pageX,i.isTouch)){if((!t.contains(e.target)||!t.contains(e.relatedTarget))&&Math.abs(i.touchPosition.startX-i.touchPosition.endX)<75)return!1;i.touchPosition.currentX<i.touchPosition.startX?i.index++:i.touchPosition.currentX>i.touchPosition.startX&&i.index--,i.isTouch=!1,L.slideTo(i.index),k()}}function P(t){Array.from(v).map((function(t){t.classList.remove("active")})),v[t]&&v[t].classList.add("active")}function B(e){if(i.touchPosition){var n=i.index,s=e&&e.target!==f[n]?1e3*e.elapsedTime+100:20,a=L.getActiveIndex(),o="left"===i.direction?"next":"prev";i.isSliding&&setTimeout((function(){i.touchPosition&&(i.isSliding=!1,f[n].classList.add("active"),f[a].classList.remove("active"),f[n].classList.remove("carousel-item-"+o),f[n].classList.remove("carousel-item-"+i.direction),f[a].classList.remove("carousel-item-"+i.direction),l.call(t,m),document.hidden||!c.interval||t.classList.contains("paused")||L.cycle())}),s)}}if(L.cycle=function(){i.timer&&(clearInterval(i.timer),i.timer=null),i.timer=setInterval((function(){var e=i.index||L.getActiveIndex();(function(t){var e=t.getBoundingClientRect(),i=window.innerHeight||document.documentElement.clientHeight;return e.top<=i&&e.bottom>=0})(t)&&(e++,L.slideTo(e))}),c.interval)},L.slideTo=function(e){if(!i.isSliding){var a,d=L.getActiveIndex();d!==e&&(d<e||0===d&&e===f.length-1?i.direction="left":(d>e||d===f.length-1&&0===e)&&(i.direction="right"),e<0?e=f.length-1:e>=f.length&&(e=0),a="left"===i.direction?"next":"prev",r=o("slide","carousel",f[e]),m=o("slid","carousel",f[e]),l.call(t,r),r.defaultPrevented||(i.index=e,i.isSliding=!0,clearInterval(i.timer),i.timer=null,P(e),n(f[e])&&t.classList.contains("slide")?(f[e].classList.add("carousel-item-"+a),f[e].offsetWidth,f[e].classList.add("carousel-item-"+i.direction),f[d].classList.add("carousel-item-"+i.direction),s(f[e],B)):(f[e].classList.add("active"),f[e].offsetWidth,f[d].classList.remove("active"),setTimeout((function(){i.isSliding=!1,c.interval&&t&&!t.classList.contains("paused")&&L.cycle(),l.call(t,m)}),100))))}},L.getActiveIndex=function(){return Array.from(f).indexOf(t.getElementsByClassName("carousel-item active")[0])||0},L.dispose=function(){var e=["left","right","prev","next"];Array.from(f).map((function(t,i){t.classList.contains("active")&&P(i),e.map((function(e){return t.classList.remove("carousel-item-"+e)}))})),clearInterval(i.timer),E(),i={},c={},delete t.Carousel},(t=a(t)).Carousel&&t.Carousel.dispose(),f=t.getElementsByClassName("carousel-item"),g=t.getElementsByClassName("carousel-control-prev")[0],h=t.getElementsByClassName("carousel-control-next")[0],p=t.getElementsByClassName("carousel-indicators")[0],v=p&&p.getElementsByTagName("LI")||[],!(f.length<2)){var S=t.getAttribute("data-interval"),H="false"===S?0:parseInt(S),M="false"===t.getAttribute("data-touch")?0:1,I="hover"===t.getAttribute("data-pause")||!1,D="true"===t.getAttribute("data-keyboard")||!1,X=e.interval,W=e.touch;(c={}).keyboard=!0===e.keyboard||D,c.pause=!("hover"!==e.pause&&!I)&&"hover",c.touch=W||M,c.interval="number"==typeof X?X:!1===X||0===H||!1===H?0:isNaN(H)?5e3:H,L.getActiveIndex()<0&&(f.length&&f[0].classList.add("active"),v.length&&P(0)),(i={}).direction="left",i.index=0,i.timer=null,i.isSliding=!1,i.isTouch=!1,i.touchPosition={startX:0,currentX:0,endX:0},E(1),c.interval&&L.cycle(),t.Carousel=L}}function f(t,e){e=e||{};var i,n,c,r,d,u,m=this,f=null,g=null;function h(t,e){l.call(t,d),d.defaultPrevented||(t.isAnimating=!0,t.style.height=t.scrollHeight+"px",t.classList.remove("collapse"),t.classList.remove("show"),t.classList.add("collapsing"),t.offsetWidth,t.style.height="0px",s(t,(function(){t.isAnimating=!1,t.setAttribute("aria-expanded","false"),e.setAttribute("aria-expanded","false"),t.classList.remove("collapsing"),t.classList.add("collapse"),t.style.height="",l.call(t,u)})))}m.toggle=function(e){(e&&"A"===e.target.tagName||"A"===t.tagName)&&e.preventDefault(),(t.contains(e.target)||e.target===t)&&(g.classList.contains("show")?m.hide():m.show())},m.hide=function(){g.isAnimating||(h(g,t),t.classList.add("collapsed"))},m.show=function(){var e,o;f&&(i=f.getElementsByClassName("collapse show")[0],n=i&&(a('[data-target="#'+i.id+'"]',f)||a('[href="#'+i.id+'"]',f))),g.isAnimating||(n&&i!==g&&(h(i,n),n.classList.add("collapsed")),e=g,o=t,l.call(e,c),c.defaultPrevented||(e.isAnimating=!0,e.classList.add("collapsing"),e.classList.remove("collapse"),e.style.height=e.scrollHeight+"px",s(e,(function(){e.isAnimating=!1,e.setAttribute("aria-expanded","true"),o.setAttribute("aria-expanded","true"),e.classList.remove("collapsing"),e.classList.add("collapse"),e.classList.add("show"),e.style.height="",l.call(e,r)}))),t.classList.remove("collapsed"))},m.dispose=function(){t.removeEventListener("click",m.toggle,!1),delete t.Collapse},(t=a(t)).Collapse&&t.Collapse.dispose();var p=t.getAttribute("data-parent");c=o("show","collapse"),r=o("shown","collapse"),d=o("hide","collapse"),u=o("hidden","collapse"),(g=a(e.target||t.getAttribute("data-target")||t.getAttribute("href"))).isAnimating=!1,f=t.closest(e.parent||p),t.Collapse||t.addEventListener("click",m.toggle,!1),t.Collapse=m}function g(t){t.focus?t.focus():t.setActive()}function h(t,e){var i,n,s,c,r,d,u,m=this,f=null,h=[];function p(t){(t.href&&"#"===t.href.slice(-1)||t.parentNode&&t.parentNode.href&&"#"===t.parentNode.href.slice(-1))&&this.preventDefault()}function v(){var e=t.open?"addEventListener":"removeEventListener";document[e]("click",L,!1),document[e]("keydown",y,!1),document[e]("keyup",w,!1),document[e]("focus",L,!1)}function L(e){var i=e.target,n=i&&(i.getAttribute("data-toggle")||i.parentNode&&i.parentNode.getAttribute&&i.parentNode.getAttribute("data-toggle"));("focus"!==e.type||i!==t&&i!==d&&!d.contains(i))&&(i!==d&&!d.contains(i)||!u&&!n)&&(f=i===t||t.contains(i)?t:null,m.hide(),p.call(e,i))}function b(e){f=t,m.show(),p.call(e,e.target)}function y(t){var e=t.which||t.keyCode;38!==e&&40!==e||t.preventDefault()}function w(e){var i=e.which||e.keyCode,n=document.activeElement,s=n===t,a=d.contains(n),o=n.parentNode===d||n.parentNode.parentNode===d,l=h.indexOf(n);o&&(l=s?0:38===i?l>1?l-1:0:40===i&&l<h.length-1?l+1:l,h[l]&&g(h[l])),(h.length&&o||!h.length&&(a||s)||!a)&&t.open&&27===i&&(m.toggle(),f=null)}m.show=function(){i=o("show","dropdown",f),l.call(r,i),i.defaultPrevented||(d.classList.add("show"),r.classList.add("show"),t.setAttribute("aria-expanded",!0),t.open=!0,t.removeEventListener("click",b,!1),setTimeout((function(){g(d.getElementsByTagName("INPUT")[0]||t),v(),n=o("shown","dropdown",f),l.call(r,n)}),1))},m.hide=function(){s=o("hide","dropdown",f),l.call(r,s),s.defaultPrevented||(d.classList.remove("show"),r.classList.remove("show"),t.setAttribute("aria-expanded",!1),t.open=!1,v(),g(t),setTimeout((function(){t.Dropdown&&t.addEventListener("click",b,!1)}),1),c=o("hidden","dropdown",f),l.call(r,c))},m.toggle=function(){r.classList.contains("show")&&t.open?m.hide():m.show()},m.dispose=function(){r.classList.contains("show")&&t.open&&m.hide(),t.removeEventListener("click",b,!1),delete t.Dropdown},(t=a(t)).Dropdown&&t.Dropdown.dispose(),r=t.parentNode,d=a(".dropdown-menu",r),Array.from(d.children).map((function(t){t.children.length&&"A"===t.children[0].tagName&&h.push(t.children[0]),"A"===t.tagName&&h.push(t)})),t.Dropdown||(!("tabindex"in d)&&d.setAttribute("tabindex","0"),t.addEventListener("click",b,!1)),u=!0===e||"true"===t.getAttribute("data-persist")||!1,t.open=!1,t.Dropdown=m}function p(t,e){e=e||{};var i,c,r,d,m,f,h,p,v,L=this,b=null,y={};function w(){var t,e,n=document.body.classList.contains("modal-open"),s=parseInt(getComputedStyle(document.body).paddingRight),a=document.documentElement.clientHeight!==document.documentElement.scrollHeight||document.body.clientHeight!==document.body.scrollHeight,o=i.clientHeight!==i.scrollHeight;(e=document.createElement("div")).className="modal-scrollbar-measure",document.body.appendChild(e),t=e.offsetWidth-e.clientWidth,document.body.removeChild(e),f=t,i.style.paddingRight=!o&&f?f+"px":"",document.body.style.paddingRight=o||a?s+(n?0:f)+"px":"",v.length&&v.map((function(t){var e=getComputedStyle(t).paddingRight;t.style.paddingRight=o||a?parseInt(e)+(n?0:f)+"px":parseInt(e)+"px"}))}function A(){(h=a(".modal-backdrop"))&&!document.getElementsByClassName("modal show")[0]&&(document.body.removeChild(h),h=null),null===h&&(document.body.classList.remove("modal-open"),document.body.style.paddingRight="",i.style.paddingRight="",v.length&&v.map((function(t){t.style.paddingRight=""})))}function T(t){t=t?"addEventListener":"removeEventListener",window[t]("resize",L.update,u),i[t]("click",P,!1),document[t]("keydown",N,!1)}function E(){i.style.display="block",w(),!document.getElementsByClassName("modal show")[0]&&document.body.classList.add("modal-open"),i.classList.add("show"),i.setAttribute("aria-hidden",!1),i.classList.contains("fade")?s(i,k):k()}function k(){g(i),i.isAnimating=!1,T(1),r=o("shown","modal",b),l.call(i,r)}function C(e){i.style.display="",t&&g(t),h=a(".modal-backdrop"),1!==e&&h&&h.classList.contains("show")&&!document.getElementsByClassName("modal show")[0]?(h.classList.remove("show"),s(h,A)):A(),T(),i.isAnimating=!1,m=o("hidden","modal"),l.call(i,m)}function x(e){if(!i.isAnimating){var n=e.target,s="#"+i.getAttribute("id"),a=n.getAttribute("data-target")||n.getAttribute("href"),o=t.getAttribute("data-target")||t.getAttribute("href");!i.classList.contains("show")&&(n===t&&a===s||t.contains(n)&&o===s)&&(i.modalTrigger=t,b=t,L.show(),e.preventDefault())}}function N(t){var e=t.which;!i.isAnimating&&y.keyboard&&27==e&&i.classList.contains("show")&&L.hide()}function P(t){if(!i.isAnimating){var e=t.target,n="modal"===e.getAttribute("data-dismiss"),s=e.closest('[data-dismiss="modal"]');i.classList.contains("show")&&(s||n||e===i&&"static"!==y.backdrop)&&(L.hide(),b=null,t.preventDefault())}}L.toggle=function(){i.classList.contains("show")?L.hide():L.show()},L.show=function(){if(!(i.classList.contains("show")&&i.isAnimating||(c=o("show","modal",b),l.call(i,c),c.defaultPrevented))){i.isAnimating=!0;var t,e=document.getElementsByClassName("modal show")[0];e&&e!==i&&(e.modalTrigger&&e.modalTrigger.Modal.hide(),e.Modal&&e.Modal.hide()),y.backdrop&&(t=document.createElement("div"),null===(h=a(".modal-backdrop"))&&(t.setAttribute("class","modal-backdrop"+(y.animation?" fade":"")),h=t,document.body.appendChild(h)),h=h),!h||e||h.classList.contains("show")||(h.offsetWidth,p=n(h),h.classList.add("show")),e?E():setTimeout(E,h&&p?p:0)}},L.hide=function(t){i.classList.contains("show")&&(d=o("hide","modal"),l.call(i,d),d.defaultPrevented||(i.isAnimating=!0,i.classList.remove("show"),i.setAttribute("aria-hidden",!0),i.classList.contains("fade")&&1!==t?s(i,C):C()))},L.setContent=function(t){a(".modal-content",i).innerHTML=t},L.update=function(){i.classList.contains("show")&&w()},L.dispose=function(){L.hide(1),t?(t.removeEventListener("click",x,!1),delete t.Modal):delete i.Modal},t=a(t);var B=a(t.getAttribute("data-target")||t.getAttribute("href"));i=t.classList.contains("modal")?t:B,v=Array.from(document.getElementsByClassName("fixed-top")).concat(Array.from(document.getElementsByClassName("fixed-bottom"))),t.classList.contains("modal")&&(t=null),t&&t.Modal&&t.Modal.dispose(),i&&i.Modal&&i.Modal.dispose(),y.keyboard=!1!==e.keyboard&&"false"!==i.getAttribute("data-keyboard"),y.backdrop="static"!==e.backdrop&&"static"!==i.getAttribute("data-backdrop")||"static",y.backdrop=!1!==e.backdrop&&"false"!==i.getAttribute("data-backdrop")&&y.backdrop,y.animation=!!i.classList.contains("fade"),y.content=e.content,i.isAnimating=!1,t&&!t.Modal&&t.addEventListener("click",x,!1),y.content&&L.setContent(y.content.trim()),t?(i.modalTrigger=t,t.Modal=L):i.Modal=L}var v="mousedown";function L(){return{y:window.pageYOffset||document.documentElement.scrollTop,x:window.pageXOffset||document.documentElement.scrollLeft}}function b(t,e,i,n){var s,a,o,l,c,r,d=e.offsetWidth,u=e.offsetHeight,m=document.documentElement.clientWidth||document.body.clientWidth,f=document.documentElement.clientHeight||document.body.clientHeight,g=t.getBoundingClientRect(),h=n===document.body?L():{x:n.offsetLeft+n.scrollLeft,y:n.offsetTop+n.scrollTop},p=g.right-g.left,v=g.bottom-g.top,b=e.classList.contains("popover"),y=e.getElementsByClassName("arrow")[0],w=g.top+v/2-u/2<0,A=g.left+p/2-d/2<0,T=g.left+d/2+p/2>=m,E=g.top+u/2+v/2>=f,k=g.top-u<0,C=g.left-d<0,x=g.top+u+v>=f,N=g.left+d+p>=m;i="right"===(i="left"===(i="bottom"===(i="top"===(i=("left"===i||"right"===i)&&C&&N?"top":i)&&k?"bottom":i)&&x?"top":i)&&C?"right":i)&&N?"left":i,-1===e.className.indexOf(i)&&(e.className=e.className.replace(/\b(top|bottom|left|right)+/,i)),c=y.offsetWidth,r=y.offsetHeight,"left"===i||"right"===i?(a="left"===i?g.left+h.x-d-(b?c:0):g.left+h.x+p,w?(s=g.top+h.y,o=v/2-c):E?(s=g.top+h.y-u+v,o=u-v/2-c):(s=g.top+h.y-u/2+v/2,o=u/2-(b?.9*r:r/2))):"top"!==i&&"bottom"!==i||(s="top"===i?g.top+h.y-u-(b?r:0):g.top+h.y+v,A?(a=0,l=g.left+p/2-c):T?(a=m-1.01*d,l=d-(m-g.left)+p/2-c/2):(a=g.left+h.x-d/2+p/2,l=d/2-(b?c:c/2))),e.style.top=s+"px",e.style.left=a+"px",o&&(y.style.top=o+"px"),l&&(y.style.left=l+"px")}function y(t,e){e=e||{};var i,n,c,r,m,f,g,h,p,L,y,w,A,T,E,k,C,x,N,P=this,B=null,S=0,H=/(iPhone|iPod|iPad)/.test(navigator.userAgent),M={};function I(t){null!==B&&t.target===a(".close",B)&&P.hide()}function D(){return{0:e.title||t.getAttribute("data-title")||null,1:e.content||t.getAttribute("data-content")||null}}function X(){null===B&&t.focus()}function W(e){e=e?"addEventListener":"removeEventListener","hover"===M.trigger?(t[e](v,P.show),t[e](d[0],P.show),M.dismissible||t[e](d[1],P.hide)):"click"==M.trigger?t[e](M.trigger,P.toggle):"focus"==M.trigger&&(H&&t[e]("click",X,!1),t[e](M.trigger,P.toggle))}function O(e){B&&B.contains(e.target)||e.target===t||t.contains(e.target)||P.hide()}function R(e){e=e?"addEventListener":"removeEventListener",M.dismissible?document[e]("click",I,!1):("focus"==M.trigger&&t[e]("blur",P.hide),"hover"==M.trigger&&document[e]("touchstart",O,u)),window[e]("resize",P.hide,u)}function z(){R(1),l.call(t,y)}function U(){R(),M.container.removeChild(B),S=null,B=null,l.call(t,A)}P.toggle=function(){null===B?P.show():P.hide()},P.show=function(){clearTimeout(S),S=setTimeout((function(){if(null===B){if(l.call(t,L),L.defaultPrevented)return;!function(){i=D()[0]||null,n=(n=D()[1])?n.trim():null,B=document.createElement("div");var t=document.createElement("div");if(t.classList.add("arrow"),B.appendChild(t),null!==n&&null===M.template){if(B.setAttribute("role","tooltip"),null!==i){var e=document.createElement("h3");e.classList.add("popover-header"),e.innerHTML=M.dismissible?i+p:i,B.appendChild(e)}var s=document.createElement("div");s.classList.add("popover-body"),s.innerHTML=M.dismissible&&null===i?n+p:n,B.appendChild(s)}else{var o=document.createElement("div");o.innerHTML=M.template.trim(),B.className=o.firstChild.className,B.innerHTML=o.firstChild.innerHTML;var l=a(".popover-header",B),c=a(".popover-body",B);i&&l&&(l.innerHTML=i.trim()),n&&c&&(c.innerHTML=n.trim())}M.container.appendChild(B),B.style.display="block",!B.classList.contains("popover")&&B.classList.add("popover"),!B.classList.contains(M.animation)&&B.classList.add(M.animation),!B.classList.contains(N)&&B.classList.add(N)}(),b(t,B,M.placement,M.container),!B.classList.contains("show")&&B.classList.add("show"),M.animation?s(B,z):z()}}),20)},P.hide=function(){clearTimeout(S),S=setTimeout((function(){if(B&&null!==B&&B.classList.contains("show")){if(l.call(t,w),w.defaultPrevented)return;B.classList.remove("show"),M.animation?s(B,U):U()}}),M.delay)},P.dispose=function(){P.hide(),W(),delete t.Popover},(t=a(t)).Popover&&t.Popover.dispose(),c=t.getAttribute("data-trigger"),r=t.getAttribute("data-animation"),m=t.getAttribute("data-placement"),f=t.getAttribute("data-dismissible"),g=t.getAttribute("data-delay"),h=t.getAttribute("data-container"),p='<button type="button" class="close">×</button>',L=o("show","popover"),y=o("shown","popover"),w=o("hide","popover"),A=o("hidden","popover"),T=a(e.container),E=a(h),k=t.closest(".modal"),C=t.closest(".fixed-top"),x=t.closest(".fixed-bottom"),M.template=e.template?e.template:null,M.trigger=e.trigger?e.trigger:c||"hover",M.animation=e.animation&&"fade"!==e.animation?e.animation:r||"fade",M.placement=e.placement?e.placement:m||"top",M.delay=parseInt(e.delay||g)||200,M.dismissible=!(!e.dismissible&&"true"!==f),M.container=T||(E||(C||(x||(k||document.body)))),N="bs-popover-"+M.placement;var q=D();i=q[0],((n=q[1])||M.template)&&(t.Popover||W(1),t.Popover=P)}function w(t,e){e=e||{};var i,n,s,c,r,d=this,m={};function f(){var e;e=c.getElementsByTagName("A"),i.length!==e.length&&(i.items=[],i.targets=[],Array.from(e).map((function(t){var e=t.getAttribute("href"),n=e&&"#"===e.charAt(0)&&"#"!==e.slice(-1)&&a(e);n&&(i.items.push(t),i.targets.push(n))})),i.length=e.length),i.scrollOffset=i.isWindow?L().y:t.scrollTop,i.items.map((function(e,n){return function(e){var n=i.items[e],s=i.targets[e],a=n.classList.contains("dropdown-item")&&n.closest(".dropdown-menu"),c=a&&a.previousElementSibling,r=n.nextElementSibling,d=r&&r.getElementsByClassName("active").length,u=i.isWindow&&s.getBoundingClientRect(),f=n.classList.contains("active")||!1,g=(i.isWindow?u.top+i.scrollOffset:s.offsetTop)-m.offset,h=i.isWindow?u.bottom+i.scrollOffset-m.offset:i.targets[e+1]?i.targets[e+1].offsetTop-m.offset:t.scrollHeight,p=d||i.scrollOffset>=g&&h>i.scrollOffset;if(!f&&p)n.classList.add("active"),c&&!c.classList.contains("active")&&c.classList.add("active"),l.call(t,o("activate","scrollspy",i.items[e]));else if(f&&!p)n.classList.remove("active"),c&&c.classList.contains("active")&&!n.parentNode.getElementsByClassName("active").length&&c.classList.remove("active");else if(f&&p||!p&&!f)return}(n)}))}function g(t){r[t=t?"addEventListener":"removeEventListener"]("scroll",d.refresh,u),window[t]("resize",d.refresh,u)}d.refresh=function(){f()},d.dispose=function(){g(),delete t.ScrollSpy},(t=a(t)).ScrollSpy&&t.ScrollSpy.dispose(),n=t.getAttribute("data-target"),s=t.getAttribute("data-offset"),c=a(e.target||n),r=t.offsetHeight<t.scrollHeight?t:window,c&&(m.target=c,m.offset=parseInt(e.offset||s)||10,(i={}).length=0,i.items=[],i.targets=[],i.isWindow=r===window,t.ScrollSpy||g(1),d.refresh(),t.ScrollSpy=d)}function A(t,i){i=i||{};var n,c,r,d,u,m,f,g,h,p,v,L,b,y,w,A=this,T=!1;function E(){T.style.height="",T.classList.remove("collapsing"),c.isAnimating=!1}function k(){T?b?E():setTimeout((function(){T.style.height=y+"px",T.offsetWidth,s(T,E)}),50):c.isAnimating=!1,u=o("shown","tab",h),l.call(g,u)}function C(){T&&(p.style.float="left",v.style.float="left",L=p.scrollHeight),d=o("show","tab",h),f=o("hidden","tab",g),l.call(g,d),d.defaultPrevented||(v.classList.add("active"),p.classList.remove("active"),T&&(y=v.scrollHeight,b=y===L,T.classList.add("collapsing"),T.style.height=L+"px",T.offsetHeight,p.style.float="",v.style.float=""),v.classList.contains("fade")?setTimeout((function(){v.classList.add("show"),s(v,k)}),20):k(),l.call(h,f))}function x(){var t,e=c.getElementsByClassName("active");return 1!==e.length||e[0].parentNode.classList.contains("dropdown")?e.length>1&&(t=e[e.length-1]):t=e[0],t}function N(){return a(x().getAttribute("href"))}function P(t){t.preventDefault(),g=t.currentTarget,!c.isAnimating&&A.show()}A.show=function(){if(!(g=g||t).classList.contains("active")){if(v=a(g.getAttribute("href")),h=x(),p=N(),m=o("hide","tab",g),l.call(h,m),m.defaultPrevented)return;c.isAnimating=!0,h.classList.remove("active"),h.setAttribute("aria-selected","false"),g.classList.add("active"),g.setAttribute("aria-selected","true"),r&&(t.parentNode.classList.contains("dropdown-menu")?r.classList.contains("active")||r.classList.add("active"):r.classList.contains("active")&&r.classList.remove("active")),p.classList.contains("fade")?(p.classList.remove("show"),s(p,C)):C()}},A.dispose=function(){t.removeEventListener("click",P,!1),delete t.Tab},(t=a(t)).Tab&&t.Tab.dispose(),n=t.getAttribute("data-height"),c=t.closest(".nav"),r=c&&a(".dropdown-toggle",c),w=!(!e||!1===i.height||"false"===n),c.isAnimating=!1,t.Tab||t.addEventListener("click",P,!1),w&&(T=N().parentNode),t.Tab=A}function T(t,e){e=e||{};var i,n,c,r,d,u,m,f,g=this,h=0,p={};function v(){i.classList.remove("showing"),i.classList.add("show"),l.call(i,m),p.autohide&&g.hide()}function L(){i.classList.add("hide"),l.call(i,f)}function b(){i.classList.remove("show"),p.animation?s(i,L):L()}function y(){clearTimeout(h),t.removeEventListener("click",g.hide,!1),delete t.Toast}g.show=function(){if(i&&!i.classList.contains("show")){if(l.call(i,d),d.defaultPrevented)return;p.animation&&i.classList.add("fade"),i.classList.remove("hide"),i.offsetWidth,i.classList.add("showing"),p.animation?s(i,v):v()}},g.hide=function(t){if(i&&i.classList.contains("show")){if(l.call(i,u),u.defaultPrevented)return;t?b():h=setTimeout(b,p.delay)}},g.dispose=function(){p.animation?s(i,y):y()},(t=a(t)).Toast&&t.Toast.dispose(),i=t.closest(".toast"),n=t.getAttribute("data-animation"),c=t.getAttribute("data-autohide"),r=t.getAttribute("data-delay"),d=o("show","toast"),u=o("hide","toast"),m=o("shown","toast"),f=o("hidden","toast"),p.animation=!1===e.animation||"false"===n?0:1,p.autohide=!1===e.autohide||"false"===c?0:1,p.delay=parseInt(e.delay||r)||500,t.Toast||t.addEventListener("click",g.hide,!1),t.Toast=g}function E(t,e){e=e||{};var i,n,c,r,m,f,g,h,p,L,y,w,A,T,E,k=this,C=null,x=0,N={};function P(){return t.getAttribute("title")||t.getAttribute("data-title")||t.getAttribute("data-original-title")}function B(e){C&&C.contains(e.target)||e.target===t||t.contains(e.target)||k.hide()}function S(t){t=t?"addEventListener":"removeEventListener",document[t]("touchstart",B,u),window[t]("resize",k.hide,u)}function H(){S(1),l.call(t,g)}function M(){S(),N.container.removeChild(C),C=null,x=null,l.call(t,p)}function I(e){t[e=e?"addEventListener":"removeEventListener"](v,k.show,!1),t[e](d[0],k.show,!1),t[e](d[1],k.hide,!1)}k.show=function(){clearTimeout(x),x=setTimeout((function(){if(null===C){if(l.call(t,f),f.defaultPrevented)return;!1!==function(){if(i=P()){if(C=document.createElement("div"),N.template){var t=document.createElement("div");t.innerHTML=N.template.trim(),C.className=t.firstChild.className,C.innerHTML=t.firstChild.innerHTML,a(".tooltip-inner",C).innerHTML=i.trim()}else{var e=document.createElement("div");e.classList.add("arrow"),C.appendChild(e);var n=document.createElement("div");n.classList.add("tooltip-inner"),C.appendChild(n),n.innerHTML=i}C.style.left="0",C.style.top="0",C.setAttribute("role","tooltip"),!C.classList.contains("tooltip")&&C.classList.add("tooltip"),!C.classList.contains(N.animation)&&C.classList.add(N.animation),!C.classList.contains(E)&&C.classList.add(E),N.container.appendChild(C)}}()&&(b(t,C,N.placement,N.container),!C.classList.contains("show")&&C.classList.add("show"),N.animation?s(C,H):H())}}),20)},k.hide=function(){clearTimeout(x),x=setTimeout((function(){if(C&&C.classList.contains("show")){if(l.call(t,h),h.defaultPrevented)return;C.classList.remove("show"),N.animation?s(C,M):M()}}),N.delay)},k.toggle=function(){C?k.hide():k.show()},k.dispose=function(){I(),k.hide(),t.setAttribute("title",t.getAttribute("data-original-title")),t.removeAttribute("data-original-title"),delete t.Tooltip},(t=a(t)).Tooltip&&t.Tooltip.dispose(),n=t.getAttribute("data-animation"),c=t.getAttribute("data-placement"),r=t.getAttribute("data-delay"),m=t.getAttribute("data-container"),f=o("show","tooltip"),g=o("shown","tooltip"),h=o("hide","tooltip"),p=o("hidden","tooltip"),L=a(e.container),y=a(m),w=t.closest(".modal"),A=t.closest(".fixed-top"),T=t.closest(".fixed-bottom"),N.animation=e.animation&&"fade"!==e.animation?e.animation:n||"fade",N.placement=e.placement?e.placement:c||"top",N.template=e.template?e.template:null,N.delay=parseInt(e.delay||r)||200,N.container=L||(y||(A||(T||(w||document.body)))),E="bs-tooltip-"+N.placement,(i=P())&&(t.Tooltip||(t.setAttribute("data-original-title",i),t.removeAttribute("title"),I(1)),t.Tooltip=k)}var k={};function C(t,e){Array.from(e).map((function(e){return new t(e)}))}function x(t){for(var e in t=t||document,k)C(k[e][0],t.querySelectorAll(k[e][1]))}function N(t,e){Array.from(e).map((function(e){return e[t].dispose()}))}k.Alert=[c,'[data-dismiss="alert"]'],k.Button=[r,'[data-toggle="buttons"]'],k.Carousel=[m,'[data-ride="carousel"]'],k.Collapse=[f,'[data-toggle="collapse"]'],k.Dropdown=[h,'[data-toggle="dropdown"]'],k.Modal=[p,'[data-toggle="modal"]'],k.Popover=[y,'[data-toggle="popover"],[data-tip="popover"]'],k.ScrollSpy=[w,'[data-spy="scroll"]'],k.Tab=[A,'[data-toggle="tab"]'],k.Toast=[T,'[data-dismiss="toast"]'],k.Tooltip=[E,'[data-toggle="tooltip"],[data-tip="tooltip"]'],document.body?x():document.addEventListener("DOMContentLoaded",(function t(){x(),document.removeEventListener("DOMContentLoaded",t,!1)}),!1);var P={Alert:c,Button:r,Carousel:m,Collapse:f,Dropdown:h,Modal:p,Popover:y,ScrollSpy:w,Tab:A,Toast:T,Tooltip:E,initCallback:x,removeDataAPI:function(t){for(var e in t=t||document,k)N(e,t.querySelectorAll(k[e][1]))},componentsInit:k,Version:"3.0.9"};export default P; |
@@ -1,2 +0,2 @@ | ||
// Native JavaScript for Bootstrap v3.0.8 | 2020 © dnp_theme | MIT-License | ||
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t=t||self).BSN=e()}(this,(function(){"use strict";var t="webkitTransition"in document.body.style?"webkitTransitionEnd":"transitionend",e="webkitTransition"in document.body.style||"transition"in document.body.style,i="webkitTransition"in document.body.style?"webkitTransitionDuration":"transitionDuration";function n(t){var n=e?parseFloat(getComputedStyle(t)[i]):0;return n="number"!=typeof n||isNaN(n)?0:1e3*n}function s(e,i){var s=0;n(e)?e.addEventListener(t,(function n(o){!s&&i(o),s=1,e.removeEventListener(t,n)})):setTimeout((function(){!s&&i(),s=1}),17)}function o(t,e){var i=e&&e instanceof Element?e:document;return t instanceof Element?t:i.querySelector(t)}function a(t,e,i){var n=new CustomEvent(t+".bs."+e,{cancelable:!0});return n.relatedTarget=i,n}function l(t){this&&this.dispatchEvent(t)}function c(t){var e,i=this,n=a("close","alert"),c=a("closed","alert");function r(e){t[e=e?"addEventListener":"removeEventListener"]("click",d,!1)}function d(n){e=n&&n.target.closest(".alert"),(t=o('[data-dismiss="alert"]',e))&&e&&(t===n.target||t.contains(n.target))&&i.close()}function u(){r(),e.parentNode.removeChild(e),l.call(e,c)}i.close=function(){if(e&&t&&e.classList.contains("show")){if(l.call(e,n),n.defaultPrevented)return;i.dispose(),e.classList.remove("show"),e.classList.contains("fade")?s(e,u):u()}},i.dispose=function(){r(),delete t.Alert},t=o(t),e=t.closest(".alert"),t.Alert&&t.Alert.dispose(),t.Alert||r(1),i.element=t,t.Alert=i}function r(t){var e,i=a("change","button");function n(n){var s,o="LABEL"===n.target.tagName?n.target:n.target.closest("LABEL")?n.target.closest("LABEL"):null;if(s=o&&o.getElementsByTagName("INPUT")[0]){if(l.call(s,i),l.call(t,i),"checkbox"===s.type){if(i.defaultPrevented)return;s.checked?(o.classList.remove("active"),s.getAttribute("checked"),s.removeAttribute("checked"),s.checked=!1):(o.classList.add("active"),s.getAttribute("checked"),s.setAttribute("checked","checked"),s.checked=!0),t.toggled||(t.toggled=!0)}if("radio"===s.type&&!t.toggled){if(i.defaultPrevented)return;(!s.checked||0===n.screenX&&0==n.screenY)&&(o.classList.add("active"),o.classList.add("focus"),s.setAttribute("checked","checked"),s.checked=!0,t.toggled=!0,Array.from(e).map((function(t){var e=t.getElementsByTagName("INPUT")[0];t!==o&&t.classList.contains("active")&&(l.call(e,i),t.classList.remove("active"),e.removeAttribute("checked"),e.checked=!1)})))}setTimeout((function(){t.toggled=!1}),50)}}function s(t){32===(t.which||t.keyCode)&&t.target===document.activeElement&&n(t)}function c(t){32===(t.which||t.keyCode)&&t.preventDefault()}function r(t){if("INPUT"===t.target.tagName){var e="focusin"===t.type?"add":"remove";t.target.closest(".btn").classList[e]("focus")}}function d(e){t[e=e?"addEventListener":"removeEventListener"]("click",n,!1),t[e]("keyup",s,!1),t[e]("keydown",c,!1),t[e]("focusin",r,!1),t[e]("focusout",r,!1)}this.dispose=function(){d(),delete t.Button},(t=o(t)).Button&&t.Button.dispose(),(e=t.getElementsByClassName("btn")).length&&(t.Button||d(1),t.toggled=!1,t.Button=this,Array.from(e).map((function(t){!t.classList.contains("active")&&o("input:checked",t)&&t.classList.add("active"),t.classList.contains("active")&&!o("input:checked",t)&&t.classList.remove("active")})))}var d="onmouseleave"in document?["mouseenter","mouseleave"]:["mouseover","mouseout"],u=!!function(){var t=!1;try{var e=Object.defineProperty({},"passive",{get:function(){t=!0}});document.addEventListener("DOMContentLoaded",(function t(){document.removeEventListener("DOMContentLoaded",t,e)}),e)}catch(t){}return t}()&&{passive:!0};function m(t,e){e=e||{};var i,c,r,m,f,h,g,p,v,L=this;function b(){!1===c.interval||t.classList.contains("paused")||(t.classList.add("paused"),!i.isSliding&&(clearInterval(i.timer),i.timer=null))}function y(){!1!==c.interval&&t.classList.contains("paused")&&(t.classList.remove("paused"),!i.isSliding&&(clearInterval(i.timer),i.timer=null),!i.isSliding&&L.cycle())}function w(t){if(t.preventDefault(),!i.isSliding){var e=t.target;if(!e||e.classList.contains("active")||!e.getAttribute("data-slide-to"))return!1;i.index=parseInt(e.getAttribute("data-slide-to")),L.slideTo(i.index)}}function A(t){if(t.preventDefault(),!i.isSliding){var e=t.currentTarget||t.srcElement;e===g?i.index++:e===h&&i.index--,L.slideTo(i.index)}}function T(t){var e=t.which;if(!i.isSliding){switch(e){case 39:i.index++;break;case 37:i.index--;break;default:return}L.slideTo(i.index)}}function E(e){e=e?"addEventListener":"removeEventListener",c.pause&&c.interval&&(t[e](d[0],b,!1),t[e](d[1],y,!1),t[e]("touchstart",b,u),t[e]("touchend",y,u)),c.touch&&f.length>1&&t[e]("touchstart",C,u),g&&g[e]("click",A,!1),h&&h[e]("click",A,!1),p&&p[e]("click",w,!1),c.keyboard&&window[e]("keydown",T,!1)}function k(e){t[e=e?"addEventListener":"removeEventListener"]("touchmove",x,u),t[e]("touchend",N,u)}function C(e){i.isTouch||(i.touchPosition.startX=e.changedTouches[0].pageX,t.contains(e.target)&&(i.isTouch=!0,k(1)))}function x(t){if(i.isTouch)return i.touchPosition.currentX=t.changedTouches[0].pageX,"touchmove"===t.type&&t.changedTouches.length>1?(t.preventDefault(),!1):void 0;t.preventDefault()}function N(e){if(i.isTouch&&!i.isSliding&&(i.touchPosition.endX=i.touchPosition.currentX||e.changedTouches[0].pageX,i.isTouch)){if((!t.contains(e.target)||!t.contains(e.relatedTarget))&&Math.abs(i.touchPosition.startX-i.touchPosition.endX)<75)return!1;i.touchPosition.currentX<i.touchPosition.startX?i.index++:i.touchPosition.currentX>i.touchPosition.startX&&i.index--,i.isTouch=!1,L.slideTo(i.index),k()}}function P(t){Array.from(v).map((function(t){t.classList.remove("active")})),v[t]&&v[t].classList.add("active")}function B(e){if(i.touchPosition){var n=i.index,s=e&&e.target!==f[n]?1e3*e.elapsedTime+100:20,o=L.getActiveIndex(),a="left"===i.direction?"next":"prev";i.isSliding&&setTimeout((function(){i.touchPosition&&(i.isSliding=!1,f[n].classList.add("active"),f[o].classList.remove("active"),f[n].classList.remove("carousel-item-"+a),f[n].classList.remove("carousel-item-"+i.direction),f[o].classList.remove("carousel-item-"+i.direction),l.call(t,m),document.hidden||!c.interval||t.classList.contains("paused")||L.cycle())}),s)}}if(L.cycle=function(){i.timer&&(clearInterval(i.timer),i.timer=null),i.timer=setInterval((function(){var e=i.index||L.getActiveIndex();(function(t){var e=t.getBoundingClientRect(),i=window.innerHeight||document.documentElement.clientHeight;return e.top<=i&&e.bottom>=0})(t)&&(e++,L.slideTo(e))}),c.interval)},L.slideTo=function(e){if(!i.isSliding){var o,d=L.getActiveIndex();d!==e&&(d<e||0===d&&e===f.length-1?i.direction="left":(d>e||d===f.length-1&&0===e)&&(i.direction="right"),e<0?e=f.length-1:e>=f.length&&(e=0),o="left"===i.direction?"next":"prev",r=a("slide","carousel",f[e]),m=a("slid","carousel",f[e]),l.call(t,r),r.defaultPrevented||(i.index=e,i.isSliding=!0,clearInterval(i.timer),i.timer=null,P(e),n(f[e])&&t.classList.contains("slide")?(f[e].classList.add("carousel-item-"+o),f[e].offsetWidth,f[e].classList.add("carousel-item-"+i.direction),f[d].classList.add("carousel-item-"+i.direction),s(f[e],B)):(f[e].classList.add("active"),f[e].offsetWidth,f[d].classList.remove("active"),setTimeout((function(){i.isSliding=!1,c.interval&&t&&!t.classList.contains("paused")&&L.cycle(),l.call(t,m)}),100))))}},L.getActiveIndex=function(){return Array.from(f).indexOf(t.getElementsByClassName("carousel-item active")[0])||0},L.dispose=function(){var e=["left","right","prev","next"];Array.from(f).map((function(t,i){t.classList.contains("active")&&P(i),e.map((function(e){return t.classList.remove("carousel-item-"+e)}))})),clearInterval(i.timer),E(),i={},c={},delete t.Carousel},(t=o(t)).Carousel&&t.Carousel.dispose(),f=t.getElementsByClassName("carousel-item"),h=t.getElementsByClassName("carousel-control-prev")[0],g=t.getElementsByClassName("carousel-control-next")[0],p=t.getElementsByClassName("carousel-indicators")[0],v=p&&p.getElementsByTagName("LI")||[],!(f.length<2)){var S=t.getAttribute("data-interval"),H="false"===S?0:parseInt(S),M="false"===t.getAttribute("data-touch")?0:1,I="hover"===t.getAttribute("data-pause")||!1,D="true"===t.getAttribute("data-keyboard")||!1,X=e.interval,W=e.touch;(c={}).keyboard=!0===e.keyboard||D,c.pause=!("hover"!==e.pause&&!I)&&"hover",c.touch=W||M,c.interval="number"==typeof X?X:!1===X||0===H||!1===H?0:isNaN(H)?5e3:H,L.getActiveIndex()<0&&(f.length&&f[0].classList.add("active"),v.length&&P(0)),(i={}).direction="left",i.index=0,i.timer=null,i.isSliding=!1,i.isTouch=!1,i.touchPosition={startX:0,currentX:0,endX:0},E(1),c.interval&&L.cycle(),t.Carousel=L}}function f(t,e){e=e||{};var i,n,c,r,d,u,m=this,f=null,h=null;function g(t,e){l.call(t,d),d.defaultPrevented||(t.isAnimating=!0,t.style.height=t.scrollHeight+"px",t.classList.remove("collapse"),t.classList.remove("show"),t.classList.add("collapsing"),t.offsetWidth,t.style.height="0px",s(t,(function(){t.isAnimating=!1,t.setAttribute("aria-expanded","false"),e.setAttribute("aria-expanded","false"),t.classList.remove("collapsing"),t.classList.add("collapse"),t.style.height="",l.call(t,u)})))}m.toggle=function(e){(e&&"A"===e.target.tagName||"A"===t.tagName)&&e.preventDefault(),(t.contains(e.target)||e.target===t)&&(h.classList.contains("show")?m.hide():m.show())},m.hide=function(){h.isAnimating||(g(h,t),t.classList.add("collapsed"))},m.show=function(){var e,a;f&&(i=f.getElementsByClassName("collapse show")[0],n=i&&(o('[data-target="#'+i.id+'"]',f)||o('[href="#'+i.id+'"]',f))),h.isAnimating||(n&&i!==h&&(g(i,n),n.classList.add("collapsed")),e=h,a=t,l.call(e,c),c.defaultPrevented||(e.isAnimating=!0,e.classList.add("collapsing"),e.classList.remove("collapse"),e.style.height=e.scrollHeight+"px",s(e,(function(){e.isAnimating=!1,e.setAttribute("aria-expanded","true"),a.setAttribute("aria-expanded","true"),e.classList.remove("collapsing"),e.classList.add("collapse"),e.classList.add("show"),e.style.height="",l.call(e,r)}))),t.classList.remove("collapsed"))},m.dispose=function(){t.removeEventListener("click",m.toggle,!1),delete t.Collapse},(t=o(t)).Collapse&&t.Collapse.dispose();var p=t.getAttribute("data-parent");c=a("show","collapse"),r=a("shown","collapse"),d=a("hide","collapse"),u=a("hidden","collapse"),(h=o(e.target||t.getAttribute("data-target")||t.getAttribute("href"))).isAnimating=!1,f=t.closest(e.parent||p),t.Collapse||t.addEventListener("click",m.toggle,!1),t.Collapse=m}function h(t){t.focus?t.focus():t.setActive()}function g(t,e){var i,n,s,c,r,d,u,m=this,f=null,g=[];function p(t){(t.href&&"#"===t.href.slice(-1)||t.parentNode&&t.parentNode.href&&"#"===t.parentNode.href.slice(-1))&&this.preventDefault()}function v(){var e=t.open?"addEventListener":"removeEventListener";document[e]("click",L,!1),document[e]("keydown",y,!1),document[e]("keyup",w,!1),document[e]("focus",L,!1)}function L(e){var i=e.target,n=i&&(i.getAttribute("data-toggle")||i.parentNode&&i.parentNode.getAttribute&&i.parentNode.getAttribute("data-toggle"));("focus"!==e.type||i!==t&&i!==d&&!d.contains(i))&&(i!==d&&!d.contains(i)||!u&&!n)&&(f=i===t||t.contains(i)?t:null,m.hide(),p.call(e,i))}function b(e){f=t,m.show(),p.call(e,e.target)}function y(t){var e=t.which||t.keyCode;38!==e&&40!==e||t.preventDefault()}function w(e){var i=e.which||e.keyCode,n=document.activeElement,s=n===t,o=d.contains(n),a=n.parentNode===d||n.parentNode.parentNode===d,l=g.indexOf(n);a&&(l=s?0:38===i?l>1?l-1:0:40===i&&l<g.length-1?l+1:l,g[l]&&h(g[l])),(g.length&&a||!g.length&&(o||s)||!o)&&t.open&&27===i&&(m.toggle(),f=null)}m.show=function(){i=a("show","dropdown",f),l.call(r,i),i.defaultPrevented||(d.classList.add("show"),r.classList.add("show"),t.setAttribute("aria-expanded",!0),t.open=!0,t.removeEventListener("click",b,!1),setTimeout((function(){h(d.getElementsByTagName("INPUT")[0]||t),v(),n=a("shown","dropdown",f),l.call(r,n)}),1))},m.hide=function(){s=a("hide","dropdown",f),l.call(r,s),s.defaultPrevented||(d.classList.remove("show"),r.classList.remove("show"),t.setAttribute("aria-expanded",!1),t.open=!1,v(),h(t),setTimeout((function(){t.Dropdown&&t.addEventListener("click",b,!1)}),1),c=a("hidden","dropdown",f),l.call(r,c))},m.toggle=function(){r.classList.contains("show")&&t.open?m.hide():m.show()},m.dispose=function(){r.classList.contains("show")&&t.open&&m.hide(),t.removeEventListener("click",b,!1),delete t.Dropdown},(t=o(t)).Dropdown&&t.Dropdown.dispose(),r=t.parentNode,d=o(".dropdown-menu",r),Array.from(d.children).map((function(t){t.children.length&&"A"===t.children[0].tagName&&g.push(t.children[0]),"A"===t.tagName&&g.push(t)})),t.Dropdown||(!("tabindex"in d)&&d.setAttribute("tabindex","0"),t.addEventListener("click",b,!1)),u=!0===e||"true"===t.getAttribute("data-persist")||!1,t.open=!1,t.Dropdown=m}function p(t,e){e=e||{};var i,c,r,d,m,f,g,p,v,L=this,b=null,y={};function w(){var t,e,n=document.body.classList.contains("modal-open"),s=parseInt(getComputedStyle(document.body).paddingRight),o=document.documentElement.clientHeight!==document.documentElement.scrollHeight||document.body.clientHeight!==document.body.scrollHeight,a=i.clientHeight!==i.scrollHeight;(e=document.createElement("div")).className="modal-scrollbar-measure",document.body.appendChild(e),t=e.offsetWidth-e.clientWidth,document.body.removeChild(e),f=t,i.style.paddingRight=!a&&f?f+"px":"",document.body.style.paddingRight=a||o?s+(n?0:f)+"px":"",v.length&&v.map((function(t){var e=getComputedStyle(t).paddingRight;t.style.paddingRight=a||o?parseInt(e)+(n?0:f)+"px":parseInt(e)+"px"}))}function A(){(g=o(".modal-backdrop"))&&!document.getElementsByClassName("modal show")[0]&&(document.body.removeChild(g),g=null),null===g&&(document.body.classList.remove("modal-open"),document.body.style.paddingRight="",i.style.paddingRight="",v.length&&v.map((function(t){t.style.paddingRight=""})))}function T(t){t=t?"addEventListener":"removeEventListener",window[t]("resize",L.update,u),i[t]("click",P,!1),document[t]("keydown",N,!1)}function E(){i.style.display="block",w(),!document.getElementsByClassName("modal show")[0]&&document.body.classList.add("modal-open"),i.classList.add("show"),i.setAttribute("aria-hidden",!1),i.classList.contains("fade")?s(i,k):k()}function k(){h(i),i.isAnimating=!1,T(1),r=a("shown","modal",b),l.call(i,r)}function C(e){i.style.display="",t&&h(t),g=o(".modal-backdrop"),1!==e&&g&&g.classList.contains("show")&&!document.getElementsByClassName("modal show")[0]?(g.classList.remove("show"),s(g,A)):A(),T(),i.isAnimating=!1,m=a("hidden","modal"),l.call(i,m)}function x(e){if(!i.isAnimating){var n=e.target,s="#"+i.getAttribute("id"),o=n.getAttribute("data-target")||n.getAttribute("href"),a=t.getAttribute("data-target")||t.getAttribute("href");!i.classList.contains("show")&&(n===t&&o===s||t.contains(n)&&a===s)&&(i.modalTrigger=t,b=t,L.show(),e.preventDefault())}}function N(t){var e=t.which;!i.isAnimating&&y.keyboard&&27==e&&i.classList.contains("show")&&L.hide()}function P(t){if(!i.isAnimating){var e=t.target,n="modal"===e.getAttribute("data-dismiss"),s=e.closest('[data-dismiss="modal"]');i.classList.contains("show")&&(s||n||e===i&&"static"!==y.backdrop)&&(L.hide(),b=null,t.preventDefault())}}L.toggle=function(){i.classList.contains("show")?L.hide():L.show()},L.show=function(){if(!(i.classList.contains("show")&&i.isAnimating||(c=a("show","modal",b),l.call(i,c),c.defaultPrevented))){i.isAnimating=!0;var t,e=document.getElementsByClassName("modal show")[0];e&&e!==i&&(e.modalTrigger&&e.modalTrigger.Modal.hide(),e.Modal&&e.Modal.hide()),y.backdrop&&(t=document.createElement("div"),null===(g=o(".modal-backdrop"))&&(t.setAttribute("class","modal-backdrop"+(y.animation?" fade":"")),g=t,document.body.appendChild(g)),g=g),!g||e||g.classList.contains("show")||(g.offsetWidth,p=n(g),g.classList.add("show")),e?E():setTimeout(E,g&&p?p:0)}},L.hide=function(t){i.classList.contains("show")&&(d=a("hide","modal"),l.call(i,d),d.defaultPrevented||(i.isAnimating=!0,i.classList.remove("show"),i.setAttribute("aria-hidden",!0),i.classList.contains("fade")&&1!==t?s(i,C):C()))},L.setContent=function(t){o(".modal-content",i).innerHTML=t},L.update=function(){i.classList.contains("show")&&w()},L.dispose=function(){L.hide(1),t?(t.removeEventListener("click",x,!1),delete t.Modal):delete i.Modal},t=o(t);var B=o(t.getAttribute("data-target")||t.getAttribute("href"));i=t.classList.contains("modal")?t:B,v=Array.from(document.getElementsByClassName("fixed-top")).concat(Array.from(document.getElementsByClassName("fixed-bottom"))),t.classList.contains("modal")&&(t=null),t&&t.Modal&&t.Modal.dispose(),i&&i.Modal&&i.Modal.dispose(),y.keyboard=!1!==e.keyboard&&"false"!==i.getAttribute("data-keyboard"),y.backdrop="static"!==e.backdrop&&"static"!==i.getAttribute("data-backdrop")||"static",y.backdrop=!1!==e.backdrop&&"false"!==i.getAttribute("data-backdrop")&&y.backdrop,y.animation=!!i.classList.contains("fade"),y.content=e.content,i.isAnimating=!1,t&&!t.Modal&&t.addEventListener("click",x,!1),y.content&&L.setContent(y.content.trim()),t?(i.modalTrigger=t,t.Modal=L):i.Modal=L}var v="mousedown";function L(){return{y:window.pageYOffset||document.documentElement.scrollTop,x:window.pageXOffset||document.documentElement.scrollLeft}}function b(t,e,i,n){var s,o,a,l,c,r,d=e.offsetWidth,u=e.offsetHeight,m=document.documentElement.clientWidth||document.body.clientWidth,f=document.documentElement.clientHeight||document.body.clientHeight,h=t.getBoundingClientRect(),g=n===document.body?L():{x:n.offsetLeft+n.scrollLeft,y:n.offsetTop+n.scrollTop},p=h.right-h.left,v=h.bottom-h.top,b=e.classList.contains("popover"),y=e.getElementsByClassName("arrow")[0],w=h.top+v/2-u/2<0,A=h.left+p/2-d/2<0,T=h.left+d/2+p/2>=m,E=h.top+u/2+v/2>=f,k=h.top-u<0,C=h.left-d<0,x=h.top+u+v>=f,N=h.left+d+p>=m;i="right"===(i="left"===(i="bottom"===(i="top"===(i=("left"===i||"right"===i)&&C&&N?"top":i)&&k?"bottom":i)&&x?"top":i)&&C?"right":i)&&N?"left":i,-1===e.className.indexOf(i)&&(e.className=e.className.replace(/\b(top|bottom|left|right)+/,i)),c=y.offsetWidth,r=y.offsetHeight,"left"===i||"right"===i?(o="left"===i?h.left+g.x-d-(b?c:0):h.left+g.x+p,w?(s=h.top+g.y,a=v/2-c):E?(s=h.top+g.y-u+v,a=u-v/2-c):(s=h.top+g.y-u/2+v/2,a=u/2-(b?.9*r:r/2))):"top"!==i&&"bottom"!==i||(s="top"===i?h.top+g.y-u-(b?r:0):h.top+g.y+v,A?(o=0,l=h.left+p/2-c):T?(o=m-1.01*d,l=d-(m-h.left)+p/2-c/2):(o=h.left+g.x-d/2+p/2,l=d/2-(b?c:c/2))),e.style.top=s+"px",e.style.left=o+"px",a&&(y.style.top=a+"px"),l&&(y.style.left=l+"px")}function y(t,e){e=e||{};var i,n,c,r,m,f,h,g,p,L,y,w,A,T,E,k,C,x,N,P=this,B=null,S=0,H=/(iPhone|iPod|iPad)/.test(navigator.userAgent),M={};function I(t){null!==B&&t.target===o(".close",B)&&P.hide()}function D(){return{0:e.title||t.getAttribute("data-title")||null,1:e.content||t.getAttribute("data-content")||null}}function X(){null===B&&t.focus()}function W(e){e=e?"addEventListener":"removeEventListener","hover"===M.trigger?(t[e](v,P.show),t[e](d[0],P.show),M.dismissible||t[e](d[1],P.hide)):"click"==M.trigger?t[e](M.trigger,P.toggle):"focus"==M.trigger&&(H&&t[e]("click",X,!1),t[e](M.trigger,P.toggle))}function O(e){B&&B.contains(e.target)||e.target===t||t.contains(e.target)||P.hide()}function R(e){e=e?"addEventListener":"removeEventListener",M.dismissible?document[e]("click",I,!1):("focus"==M.trigger&&t[e]("blur",P.hide),"hover"==M.trigger&&document[e]("touchstart",O,u)),window[e]("resize",P.hide,u)}function z(){R(1),l.call(t,y)}function U(){R(),M.container.removeChild(B),S=null,B=null,l.call(t,A)}P.toggle=function(){null===B?P.show():P.hide()},P.show=function(){clearTimeout(S),S=setTimeout((function(){if(null===B){if(l.call(t,L),L.defaultPrevented)return;!function(){i=D()[0]||null,n=(n=D()[1])?n.trim():null,B=document.createElement("div");var t=document.createElement("div");if(t.classList.add("arrow"),B.appendChild(t),null!==n&&null===M.template){if(B.setAttribute("role","tooltip"),null!==i){var e=document.createElement("h3");e.classList.add("popover-header"),e.innerHTML=M.dismissible?i+p:i,B.appendChild(e)}var s=document.createElement("div");s.classList.add("popover-body"),s.innerHTML=M.dismissible&&null===i?n+p:n,B.appendChild(s)}else{var a=document.createElement("div");a.innerHTML=M.template.trim(),B.className=a.firstChild.className,B.innerHTML=a.firstChild.innerHTML;var l=o(".popover-header",B),c=o(".popover-body",B);i&&l&&(l.innerHTML=i.trim()),n&&c&&(c.innerHTML=n.trim())}M.container.appendChild(B),B.style.display="block",!B.classList.contains("popover")&&B.classList.add("popover"),!B.classList.contains(M.animation)&&B.classList.add(M.animation),!B.classList.contains(N)&&B.classList.add(N)}(),b(t,B,M.placement,M.container),!B.classList.contains("show")&&B.classList.add("show"),M.animation?s(B,z):z()}}),20)},P.hide=function(){clearTimeout(S),S=setTimeout((function(){if(B&&null!==B&&B.classList.contains("show")){if(l.call(t,w),w.defaultPrevented)return;B.classList.remove("show"),M.animation?s(B,U):U()}}),M.delay)},P.dispose=function(){P.hide(),W(),delete t.Popover},(t=o(t)).Popover&&t.Popover.dispose(),c=t.getAttribute("data-trigger"),r=t.getAttribute("data-animation"),m=t.getAttribute("data-placement"),f=t.getAttribute("data-dismissible"),h=t.getAttribute("data-delay"),g=t.getAttribute("data-container"),p='<button type="button" class="close">×</button>',L=a("show","popover"),y=a("shown","popover"),w=a("hide","popover"),A=a("hidden","popover"),T=o(e.container),E=o(g),k=t.closest(".modal"),C=t.closest(".fixed-top"),x=t.closest(".fixed-bottom"),M.template=e.template?e.template:null,M.trigger=e.trigger?e.trigger:c||"hover",M.animation=e.animation&&"fade"!==e.animation?e.animation:r||"fade",M.placement=e.placement?e.placement:m||"top",M.delay=parseInt(e.delay||h)||200,M.dismissible=!(!e.dismissible&&"true"!==f),M.container=T||(E||(C||(x||(k||document.body)))),N="bs-popover-"+M.placement;var q=D();i=q[0],((n=q[1])||M.template)&&(t.Popover||W(1),t.Popover=P)}function w(t,e){e=e||{};var i,n,s,c,r,d=this,m={};function f(){var e;e=c.getElementsByTagName("A"),i.length!==e.length&&(i.items=[],i.targets=[],Array.from(e).map((function(t){var e=t.getAttribute("href"),n=e&&"#"===e.charAt(0)&&"#"!==e.slice(-1)&&o(e);n&&(i.items.push(t),i.targets.push(n))})),i.length=e.length),i.scrollOffset=i.isWindow?L().y:t.scrollTop,i.items.map((function(e,n){return function(e){var n=i.items[e],s=i.targets[e],o=n.classList.contains("dropdown-item")&&n.closest(".dropdown-menu"),c=o&&o.previousElementSibling,r=n.nextElementSibling,d=r&&r.getElementsByClassName("active").length,u=i.isWindow&&s.getBoundingClientRect(),f=n.classList.contains("active")||!1,h=(i.isWindow?u.top+i.scrollOffset:s.offsetTop)-m.offset,g=i.isWindow?u.bottom+i.scrollOffset-m.offset:i.targets[e+1]?i.targets[e+1].offsetTop-m.offset:t.scrollHeight,p=d||i.scrollOffset>=h&&g>i.scrollOffset;if(!f&&p)n.classList.add("active"),c&&!c.classList.contains("active")&&c.classList.add("active"),l.call(t,a("activate","scrollspy",i.items[e]));else if(f&&!p)n.classList.remove("active"),c&&c.classList.contains("active")&&!n.parentNode.getElementsByClassName("active").length&&c.classList.remove("active");else if(f&&p||!p&&!f)return}(n)}))}function h(t){r[t=t?"addEventListener":"removeEventListener"]("scroll",d.refresh,u),window[t]("resize",d.refresh,u)}d.refresh=function(){f()},d.dispose=function(){h(),delete t.ScrollSpy},(t=o(t)).ScrollSpy&&t.ScrollSpy.dispose(),n=t.getAttribute("data-target"),s=t.getAttribute("data-offset"),c=o(e.target||n),r=t.offsetHeight<t.scrollHeight?t:window,c&&(m.target=c,m.offset=parseInt(e.offset||s)||10,(i={}).length=0,i.items=[],i.targets=[],i.isWindow=r===window,t.ScrollSpy||h(1),d.refresh(),t.ScrollSpy=d)}function A(t,i){i=i||{};var n,c,r,d,u,m,f,h,g,p,v,L,b,y,w,A=this,T=!1;function E(){T.style.height="",T.classList.remove("collapsing"),c.isAnimating=!1}function k(){T?b?E():setTimeout((function(){T.style.height=y+"px",T.offsetWidth,s(T,E)}),50):c.isAnimating=!1,u=a("shown","tab",g),l.call(h,u)}function C(){T&&(p.style.float="left",v.style.float="left",L=p.scrollHeight),d=a("show","tab",g),f=a("hidden","tab",h),l.call(h,d),d.defaultPrevented||(v.classList.add("active"),p.classList.remove("active"),T&&(y=v.scrollHeight,b=y===L,T.classList.add("collapsing"),T.style.height=L+"px",T.offsetHeight,p.style.float="",v.style.float=""),v.classList.contains("fade")?setTimeout((function(){v.classList.add("show"),s(v,k)}),20):k(),l.call(g,f))}function x(){var t,e=c.getElementsByClassName("active");return 1!==e.length||e[0].parentNode.classList.contains("dropdown")?e.length>1&&(t=e[e.length-1]):t=e[0],t}function N(){return o(x().getAttribute("href"))}function P(t){t.preventDefault(),h=t.currentTarget,!c.isAnimating&&A.show()}A.show=function(){if(!(h=h||t).classList.contains("active")){if(v=o(h.getAttribute("href")),g=x(),p=N(),m=a("hide","tab",h),l.call(g,m),m.defaultPrevented)return;c.isAnimating=!0,g.classList.remove("active"),g.setAttribute("aria-selected","false"),h.classList.add("active"),h.setAttribute("aria-selected","true"),r&&(t.parentNode.classList.contains("dropdown-menu")?r.classList.contains("active")||r.classList.add("active"):r.classList.contains("active")&&r.classList.remove("active")),p.classList.contains("fade")?(p.classList.remove("show"),s(p,C)):C()}},A.dispose=function(){t.removeEventListener("click",P,!1),delete t.Tab},(t=o(t)).Tab&&t.Tab.dispose(),n=t.getAttribute("data-height"),c=t.closest(".nav"),r=c&&o(".dropdown-toggle",c),w=!(!e||!1===i.height||"false"===n),c.isAnimating=!1,t.Tab||t.addEventListener("click",P,!1),w&&(T=N().parentNode),t.Tab=A}function T(t,e){e=e||{};var i,n,c,r,d,u,m,f,h=this,g=0,p={};function v(){i.classList.remove("showing"),i.classList.add("show"),l.call(i,m),p.autohide&&h.hide()}function L(){i.classList.add("hide"),l.call(i,f)}function b(){i.classList.remove("show"),p.animation?s(i,L):L()}function y(){clearTimeout(g),t.removeEventListener("click",h.hide,!1),delete t.Toast}h.show=function(){if(i&&!i.classList.contains("show")){if(l.call(i,d),d.defaultPrevented)return;p.animation&&i.classList.add("fade"),i.classList.remove("hide"),i.offsetWidth,i.classList.add("showing"),p.animation?s(i,v):v()}},h.hide=function(t){if(i&&i.classList.contains("show")){if(l.call(i,u),u.defaultPrevented)return;t?b():g=setTimeout(b,p.delay)}},h.dispose=function(){p.animation?s(i,y):y()},(t=o(t)).Toast&&t.Toast.dispose(),i=t.closest(".toast"),n=t.getAttribute("data-animation"),c=t.getAttribute("data-autohide"),r=t.getAttribute("data-delay"),d=a("show","toast"),u=a("hide","toast"),m=a("shown","toast"),f=a("hidden","toast"),p.animation=!1===e.animation||"false"===n?0:1,p.autohide=!1===e.autohide||"false"===c?0:1,p.delay=parseInt(e.delay||r)||500,t.Toast||t.addEventListener("click",h.hide,!1),t.Toast=h}function E(t,e){e=e||{};var i,n,c,r,m,f,h,g,p,L,y,w,A,T,E,k=this,C=null,x=0,N={};function P(){return t.getAttribute("title")||t.getAttribute("data-title")||t.getAttribute("data-original-title")}function B(e){C&&C.contains(e.target)||e.target===t||t.contains(e.target)||k.hide()}function S(t){t=t?"addEventListener":"removeEventListener",document[t]("touchstart",B,u),window[t]("resize",k.hide,u)}function H(){S(1),l.call(t,h)}function M(){S(),N.container.removeChild(C),C=null,x=null,l.call(t,p)}function I(e){t[e=e?"addEventListener":"removeEventListener"](v,k.show,!1),t[e](d[0],k.show,!1),t[e](d[1],k.hide,!1)}k.show=function(){clearTimeout(x),x=setTimeout((function(){if(null===C){if(l.call(t,f),f.defaultPrevented)return;!1!==function(){if(i=P()){if(C=document.createElement("div"),N.template){var t=document.createElement("div");t.innerHTML=N.template.trim(),C.className=t.firstChild.className,C.innerHTML=t.firstChild.innerHTML,o(".tooltip-inner",C).innerHTML=i.trim()}else{var e=document.createElement("div");e.classList.add("arrow"),C.appendChild(e);var n=document.createElement("div");n.classList.add("tooltip-inner"),C.appendChild(n),n.innerHTML=i}C.style.left="0",C.style.top="0",C.setAttribute("role","tooltip"),!C.classList.contains("tooltip")&&C.classList.add("tooltip"),!C.classList.contains(N.animation)&&C.classList.add(N.animation),!C.classList.contains(E)&&C.classList.add(E),N.container.appendChild(C)}}()&&(b(t,C,N.placement,N.container),!C.classList.contains("show")&&C.classList.add("show"),N.animation?s(C,H):H())}}),20)},k.hide=function(){clearTimeout(x),x=setTimeout((function(){if(C&&C.classList.contains("show")){if(l.call(t,g),g.defaultPrevented)return;C.classList.remove("show"),N.animation?s(C,M):M()}}),N.delay)},k.toggle=function(){C?k.hide():k.show()},k.dispose=function(){I(),k.hide(),t.setAttribute("title",t.getAttribute("data-original-title")),t.removeAttribute("data-original-title"),delete t.Tooltip},(t=o(t)).Tooltip&&t.Tooltip.dispose(),n=t.getAttribute("data-animation"),c=t.getAttribute("data-placement"),r=t.getAttribute("data-delay"),m=t.getAttribute("data-container"),f=a("show","tooltip"),h=a("shown","tooltip"),g=a("hide","tooltip"),p=a("hidden","tooltip"),L=o(e.container),y=o(m),w=t.closest(".modal"),A=t.closest(".fixed-top"),T=t.closest(".fixed-bottom"),N.animation=e.animation&&"fade"!==e.animation?e.animation:n||"fade",N.placement=e.placement?e.placement:c||"top",N.template=e.template?e.template:null,N.delay=parseInt(e.delay||r)||200,N.container=L||(y||(A||(T||(w||document.body)))),E="bs-tooltip-"+N.placement,(i=P())&&(t.Tooltip||(t.setAttribute("data-original-title",i),t.removeAttribute("title"),I(1)),t.Tooltip=k)}var k={};function C(t,e){Array.from(e).map((function(e){return new t(e)}))}function x(t){for(var e in t=t||document,k)C(k[e][0],t.querySelectorAll(k[e][1]))}function N(t,e){Array.from(e).map((function(e){return e[t].dispose()}))}k.Alert=[c,'[data-dismiss="alert"]'],k.Button=[r,'[data-toggle="buttons"]'],k.Carousel=[m,'[data-ride="carousel"]'],k.Collapse=[f,'[data-toggle="collapse"]'],k.Dropdown=[g,'[data-toggle="dropdown"]'],k.Modal=[p,'[data-toggle="modal"]'],k.Popover=[y,'[data-toggle="popover"],[data-tip="popover"]'],k.ScrollSpy=[w,'[data-spy="scroll"]'],k.Tab=[A,'[data-toggle="tab"]'],k.Toast=[T,'[data-dismiss="toast"]'],k.Tooltip=[E,'[data-toggle="tooltip"],[data-tip="tooltip"]'],document.body?x():document.addEventListener("DOMContentLoaded",(function t(){x(),document.removeEventListener("DOMContentLoaded",t,!1)}),!1);return{Alert:c,Button:r,Carousel:m,Collapse:f,Dropdown:g,Modal:p,Popover:y,ScrollSpy:w,Tab:A,Toast:T,Tooltip:E,initCallback:x,removeDataAPI:function(t){for(var e in t=t||document,k)N(e,t.querySelectorAll(k[e][1]))},componentsInit:k,Version:"3.0.8"}})); | ||
// Native JavaScript for Bootstrap v3.0.9 | 2020 © dnp_theme | MIT-License | ||
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t=t||self).BSN=e()}(this,(function(){"use strict";var t="webkitTransition"in document.body.style?"webkitTransitionEnd":"transitionend",e="webkitTransition"in document.body.style||"transition"in document.body.style,i="webkitTransition"in document.body.style?"webkitTransitionDuration":"transitionDuration";function n(t){var n=e?parseFloat(getComputedStyle(t)[i]):0;return n="number"!=typeof n||isNaN(n)?0:1e3*n}function s(e,i){var s=0;n(e)?e.addEventListener(t,(function n(o){!s&&i(o),s=1,e.removeEventListener(t,n)})):setTimeout((function(){!s&&i(),s=1}),17)}function o(t,e){var i=e&&e instanceof Element?e:document;return t instanceof Element?t:i.querySelector(t)}function a(t,e,i){var n=new CustomEvent(t+".bs."+e,{cancelable:!0});return n.relatedTarget=i,n}function l(t){this&&this.dispatchEvent(t)}function c(t){var e,i=this,n=a("close","alert"),c=a("closed","alert");function r(e){t[e=e?"addEventListener":"removeEventListener"]("click",d,!1)}function d(n){e=n&&n.target.closest(".alert"),(t=o('[data-dismiss="alert"]',e))&&e&&(t===n.target||t.contains(n.target))&&i.close()}function u(){r(),e.parentNode.removeChild(e),l.call(e,c)}i.close=function(){if(e&&t&&e.classList.contains("show")){if(l.call(e,n),n.defaultPrevented)return;i.dispose(),e.classList.remove("show"),e.classList.contains("fade")?s(e,u):u()}},i.dispose=function(){r(),delete t.Alert},t=o(t),e=t.closest(".alert"),t.Alert&&t.Alert.dispose(),t.Alert||r(1),i.element=t,t.Alert=i}function r(t){var e,i=a("change","button");function n(n){var s,o="LABEL"===n.target.tagName?n.target:n.target.closest("LABEL")?n.target.closest("LABEL"):null;if(s=o&&o.getElementsByTagName("INPUT")[0]){if(l.call(s,i),l.call(t,i),"checkbox"===s.type){if(i.defaultPrevented)return;s.checked?(o.classList.remove("active"),s.getAttribute("checked"),s.removeAttribute("checked"),s.checked=!1):(o.classList.add("active"),s.getAttribute("checked"),s.setAttribute("checked","checked"),s.checked=!0),t.toggled||(t.toggled=!0)}if("radio"===s.type&&!t.toggled){if(i.defaultPrevented)return;(!s.checked||0===n.screenX&&0==n.screenY)&&(o.classList.add("active"),o.classList.add("focus"),s.setAttribute("checked","checked"),s.checked=!0,t.toggled=!0,Array.from(e).map((function(t){var e=t.getElementsByTagName("INPUT")[0];t!==o&&t.classList.contains("active")&&(l.call(e,i),t.classList.remove("active"),e.removeAttribute("checked"),e.checked=!1)})))}setTimeout((function(){t.toggled=!1}),50)}}function s(t){32===(t.which||t.keyCode)&&t.target===document.activeElement&&n(t)}function c(t){32===(t.which||t.keyCode)&&t.preventDefault()}function r(t){if("INPUT"===t.target.tagName){var e="focusin"===t.type?"add":"remove";t.target.closest(".btn").classList[e]("focus")}}function d(e){t[e=e?"addEventListener":"removeEventListener"]("click",n,!1),t[e]("keyup",s,!1),t[e]("keydown",c,!1),t[e]("focusin",r,!1),t[e]("focusout",r,!1)}this.dispose=function(){d(),delete t.Button},(t=o(t)).Button&&t.Button.dispose(),(e=t.getElementsByClassName("btn")).length&&(t.Button||d(1),t.toggled=!1,t.Button=this,Array.from(e).map((function(t){!t.classList.contains("active")&&o("input:checked",t)&&t.classList.add("active"),t.classList.contains("active")&&!o("input:checked",t)&&t.classList.remove("active")})))}var d="onmouseleave"in document?["mouseenter","mouseleave"]:["mouseover","mouseout"],u=!!function(){var t=!1;try{var e=Object.defineProperty({},"passive",{get:function(){t=!0}});document.addEventListener("DOMContentLoaded",(function t(){document.removeEventListener("DOMContentLoaded",t,e)}),e)}catch(t){}return t}()&&{passive:!0};function m(t,e){e=e||{};var i,c,r,m,f,h,g,p,v,L=this;function b(){!1===c.interval||t.classList.contains("paused")||(t.classList.add("paused"),!i.isSliding&&(clearInterval(i.timer),i.timer=null))}function y(){!1!==c.interval&&t.classList.contains("paused")&&(t.classList.remove("paused"),!i.isSliding&&(clearInterval(i.timer),i.timer=null),!i.isSliding&&L.cycle())}function w(t){if(t.preventDefault(),!i.isSliding){var e=t.target;if(!e||e.classList.contains("active")||!e.getAttribute("data-slide-to"))return!1;i.index=parseInt(e.getAttribute("data-slide-to")),L.slideTo(i.index)}}function A(t){if(t.preventDefault(),!i.isSliding){var e=t.currentTarget||t.srcElement;e===g?i.index++:e===h&&i.index--,L.slideTo(i.index)}}function T(t){var e=t.which;if(!i.isSliding){switch(e){case 39:i.index++;break;case 37:i.index--;break;default:return}L.slideTo(i.index)}}function E(e){e=e?"addEventListener":"removeEventListener",c.pause&&c.interval&&(t[e](d[0],b,!1),t[e](d[1],y,!1),t[e]("touchstart",b,u),t[e]("touchend",y,u)),c.touch&&f.length>1&&t[e]("touchstart",C,u),g&&g[e]("click",A,!1),h&&h[e]("click",A,!1),p&&p[e]("click",w,!1),c.keyboard&&window[e]("keydown",T,!1)}function k(e){t[e=e?"addEventListener":"removeEventListener"]("touchmove",x,u),t[e]("touchend",N,u)}function C(e){i.isTouch||(i.touchPosition.startX=e.changedTouches[0].pageX,t.contains(e.target)&&(i.isTouch=!0,k(1)))}function x(t){if(i.isTouch)return i.touchPosition.currentX=t.changedTouches[0].pageX,"touchmove"===t.type&&t.changedTouches.length>1?(t.preventDefault(),!1):void 0;t.preventDefault()}function N(e){if(i.isTouch&&!i.isSliding&&(i.touchPosition.endX=i.touchPosition.currentX||e.changedTouches[0].pageX,i.isTouch)){if((!t.contains(e.target)||!t.contains(e.relatedTarget))&&Math.abs(i.touchPosition.startX-i.touchPosition.endX)<75)return!1;i.touchPosition.currentX<i.touchPosition.startX?i.index++:i.touchPosition.currentX>i.touchPosition.startX&&i.index--,i.isTouch=!1,L.slideTo(i.index),k()}}function P(t){Array.from(v).map((function(t){t.classList.remove("active")})),v[t]&&v[t].classList.add("active")}function B(e){if(i.touchPosition){var n=i.index,s=e&&e.target!==f[n]?1e3*e.elapsedTime+100:20,o=L.getActiveIndex(),a="left"===i.direction?"next":"prev";i.isSliding&&setTimeout((function(){i.touchPosition&&(i.isSliding=!1,f[n].classList.add("active"),f[o].classList.remove("active"),f[n].classList.remove("carousel-item-"+a),f[n].classList.remove("carousel-item-"+i.direction),f[o].classList.remove("carousel-item-"+i.direction),l.call(t,m),document.hidden||!c.interval||t.classList.contains("paused")||L.cycle())}),s)}}if(L.cycle=function(){i.timer&&(clearInterval(i.timer),i.timer=null),i.timer=setInterval((function(){var e=i.index||L.getActiveIndex();(function(t){var e=t.getBoundingClientRect(),i=window.innerHeight||document.documentElement.clientHeight;return e.top<=i&&e.bottom>=0})(t)&&(e++,L.slideTo(e))}),c.interval)},L.slideTo=function(e){if(!i.isSliding){var o,d=L.getActiveIndex();d!==e&&(d<e||0===d&&e===f.length-1?i.direction="left":(d>e||d===f.length-1&&0===e)&&(i.direction="right"),e<0?e=f.length-1:e>=f.length&&(e=0),o="left"===i.direction?"next":"prev",r=a("slide","carousel",f[e]),m=a("slid","carousel",f[e]),l.call(t,r),r.defaultPrevented||(i.index=e,i.isSliding=!0,clearInterval(i.timer),i.timer=null,P(e),n(f[e])&&t.classList.contains("slide")?(f[e].classList.add("carousel-item-"+o),f[e].offsetWidth,f[e].classList.add("carousel-item-"+i.direction),f[d].classList.add("carousel-item-"+i.direction),s(f[e],B)):(f[e].classList.add("active"),f[e].offsetWidth,f[d].classList.remove("active"),setTimeout((function(){i.isSliding=!1,c.interval&&t&&!t.classList.contains("paused")&&L.cycle(),l.call(t,m)}),100))))}},L.getActiveIndex=function(){return Array.from(f).indexOf(t.getElementsByClassName("carousel-item active")[0])||0},L.dispose=function(){var e=["left","right","prev","next"];Array.from(f).map((function(t,i){t.classList.contains("active")&&P(i),e.map((function(e){return t.classList.remove("carousel-item-"+e)}))})),clearInterval(i.timer),E(),i={},c={},delete t.Carousel},(t=o(t)).Carousel&&t.Carousel.dispose(),f=t.getElementsByClassName("carousel-item"),h=t.getElementsByClassName("carousel-control-prev")[0],g=t.getElementsByClassName("carousel-control-next")[0],p=t.getElementsByClassName("carousel-indicators")[0],v=p&&p.getElementsByTagName("LI")||[],!(f.length<2)){var S=t.getAttribute("data-interval"),H="false"===S?0:parseInt(S),M="false"===t.getAttribute("data-touch")?0:1,I="hover"===t.getAttribute("data-pause")||!1,D="true"===t.getAttribute("data-keyboard")||!1,X=e.interval,W=e.touch;(c={}).keyboard=!0===e.keyboard||D,c.pause=!("hover"!==e.pause&&!I)&&"hover",c.touch=W||M,c.interval="number"==typeof X?X:!1===X||0===H||!1===H?0:isNaN(H)?5e3:H,L.getActiveIndex()<0&&(f.length&&f[0].classList.add("active"),v.length&&P(0)),(i={}).direction="left",i.index=0,i.timer=null,i.isSliding=!1,i.isTouch=!1,i.touchPosition={startX:0,currentX:0,endX:0},E(1),c.interval&&L.cycle(),t.Carousel=L}}function f(t,e){e=e||{};var i,n,c,r,d,u,m=this,f=null,h=null;function g(t,e){l.call(t,d),d.defaultPrevented||(t.isAnimating=!0,t.style.height=t.scrollHeight+"px",t.classList.remove("collapse"),t.classList.remove("show"),t.classList.add("collapsing"),t.offsetWidth,t.style.height="0px",s(t,(function(){t.isAnimating=!1,t.setAttribute("aria-expanded","false"),e.setAttribute("aria-expanded","false"),t.classList.remove("collapsing"),t.classList.add("collapse"),t.style.height="",l.call(t,u)})))}m.toggle=function(e){(e&&"A"===e.target.tagName||"A"===t.tagName)&&e.preventDefault(),(t.contains(e.target)||e.target===t)&&(h.classList.contains("show")?m.hide():m.show())},m.hide=function(){h.isAnimating||(g(h,t),t.classList.add("collapsed"))},m.show=function(){var e,a;f&&(i=f.getElementsByClassName("collapse show")[0],n=i&&(o('[data-target="#'+i.id+'"]',f)||o('[href="#'+i.id+'"]',f))),h.isAnimating||(n&&i!==h&&(g(i,n),n.classList.add("collapsed")),e=h,a=t,l.call(e,c),c.defaultPrevented||(e.isAnimating=!0,e.classList.add("collapsing"),e.classList.remove("collapse"),e.style.height=e.scrollHeight+"px",s(e,(function(){e.isAnimating=!1,e.setAttribute("aria-expanded","true"),a.setAttribute("aria-expanded","true"),e.classList.remove("collapsing"),e.classList.add("collapse"),e.classList.add("show"),e.style.height="",l.call(e,r)}))),t.classList.remove("collapsed"))},m.dispose=function(){t.removeEventListener("click",m.toggle,!1),delete t.Collapse},(t=o(t)).Collapse&&t.Collapse.dispose();var p=t.getAttribute("data-parent");c=a("show","collapse"),r=a("shown","collapse"),d=a("hide","collapse"),u=a("hidden","collapse"),(h=o(e.target||t.getAttribute("data-target")||t.getAttribute("href"))).isAnimating=!1,f=t.closest(e.parent||p),t.Collapse||t.addEventListener("click",m.toggle,!1),t.Collapse=m}function h(t){t.focus?t.focus():t.setActive()}function g(t,e){var i,n,s,c,r,d,u,m=this,f=null,g=[];function p(t){(t.href&&"#"===t.href.slice(-1)||t.parentNode&&t.parentNode.href&&"#"===t.parentNode.href.slice(-1))&&this.preventDefault()}function v(){var e=t.open?"addEventListener":"removeEventListener";document[e]("click",L,!1),document[e]("keydown",y,!1),document[e]("keyup",w,!1),document[e]("focus",L,!1)}function L(e){var i=e.target,n=i&&(i.getAttribute("data-toggle")||i.parentNode&&i.parentNode.getAttribute&&i.parentNode.getAttribute("data-toggle"));("focus"!==e.type||i!==t&&i!==d&&!d.contains(i))&&(i!==d&&!d.contains(i)||!u&&!n)&&(f=i===t||t.contains(i)?t:null,m.hide(),p.call(e,i))}function b(e){f=t,m.show(),p.call(e,e.target)}function y(t){var e=t.which||t.keyCode;38!==e&&40!==e||t.preventDefault()}function w(e){var i=e.which||e.keyCode,n=document.activeElement,s=n===t,o=d.contains(n),a=n.parentNode===d||n.parentNode.parentNode===d,l=g.indexOf(n);a&&(l=s?0:38===i?l>1?l-1:0:40===i&&l<g.length-1?l+1:l,g[l]&&h(g[l])),(g.length&&a||!g.length&&(o||s)||!o)&&t.open&&27===i&&(m.toggle(),f=null)}m.show=function(){i=a("show","dropdown",f),l.call(r,i),i.defaultPrevented||(d.classList.add("show"),r.classList.add("show"),t.setAttribute("aria-expanded",!0),t.open=!0,t.removeEventListener("click",b,!1),setTimeout((function(){h(d.getElementsByTagName("INPUT")[0]||t),v(),n=a("shown","dropdown",f),l.call(r,n)}),1))},m.hide=function(){s=a("hide","dropdown",f),l.call(r,s),s.defaultPrevented||(d.classList.remove("show"),r.classList.remove("show"),t.setAttribute("aria-expanded",!1),t.open=!1,v(),h(t),setTimeout((function(){t.Dropdown&&t.addEventListener("click",b,!1)}),1),c=a("hidden","dropdown",f),l.call(r,c))},m.toggle=function(){r.classList.contains("show")&&t.open?m.hide():m.show()},m.dispose=function(){r.classList.contains("show")&&t.open&&m.hide(),t.removeEventListener("click",b,!1),delete t.Dropdown},(t=o(t)).Dropdown&&t.Dropdown.dispose(),r=t.parentNode,d=o(".dropdown-menu",r),Array.from(d.children).map((function(t){t.children.length&&"A"===t.children[0].tagName&&g.push(t.children[0]),"A"===t.tagName&&g.push(t)})),t.Dropdown||(!("tabindex"in d)&&d.setAttribute("tabindex","0"),t.addEventListener("click",b,!1)),u=!0===e||"true"===t.getAttribute("data-persist")||!1,t.open=!1,t.Dropdown=m}function p(t,e){e=e||{};var i,c,r,d,m,f,g,p,v,L=this,b=null,y={};function w(){var t,e,n=document.body.classList.contains("modal-open"),s=parseInt(getComputedStyle(document.body).paddingRight),o=document.documentElement.clientHeight!==document.documentElement.scrollHeight||document.body.clientHeight!==document.body.scrollHeight,a=i.clientHeight!==i.scrollHeight;(e=document.createElement("div")).className="modal-scrollbar-measure",document.body.appendChild(e),t=e.offsetWidth-e.clientWidth,document.body.removeChild(e),f=t,i.style.paddingRight=!a&&f?f+"px":"",document.body.style.paddingRight=a||o?s+(n?0:f)+"px":"",v.length&&v.map((function(t){var e=getComputedStyle(t).paddingRight;t.style.paddingRight=a||o?parseInt(e)+(n?0:f)+"px":parseInt(e)+"px"}))}function A(){(g=o(".modal-backdrop"))&&!document.getElementsByClassName("modal show")[0]&&(document.body.removeChild(g),g=null),null===g&&(document.body.classList.remove("modal-open"),document.body.style.paddingRight="",i.style.paddingRight="",v.length&&v.map((function(t){t.style.paddingRight=""})))}function T(t){t=t?"addEventListener":"removeEventListener",window[t]("resize",L.update,u),i[t]("click",P,!1),document[t]("keydown",N,!1)}function E(){i.style.display="block",w(),!document.getElementsByClassName("modal show")[0]&&document.body.classList.add("modal-open"),i.classList.add("show"),i.setAttribute("aria-hidden",!1),i.classList.contains("fade")?s(i,k):k()}function k(){h(i),i.isAnimating=!1,T(1),r=a("shown","modal",b),l.call(i,r)}function C(e){i.style.display="",t&&h(t),g=o(".modal-backdrop"),1!==e&&g&&g.classList.contains("show")&&!document.getElementsByClassName("modal show")[0]?(g.classList.remove("show"),s(g,A)):A(),T(),i.isAnimating=!1,m=a("hidden","modal"),l.call(i,m)}function x(e){if(!i.isAnimating){var n=e.target,s="#"+i.getAttribute("id"),o=n.getAttribute("data-target")||n.getAttribute("href"),a=t.getAttribute("data-target")||t.getAttribute("href");!i.classList.contains("show")&&(n===t&&o===s||t.contains(n)&&a===s)&&(i.modalTrigger=t,b=t,L.show(),e.preventDefault())}}function N(t){var e=t.which;!i.isAnimating&&y.keyboard&&27==e&&i.classList.contains("show")&&L.hide()}function P(t){if(!i.isAnimating){var e=t.target,n="modal"===e.getAttribute("data-dismiss"),s=e.closest('[data-dismiss="modal"]');i.classList.contains("show")&&(s||n||e===i&&"static"!==y.backdrop)&&(L.hide(),b=null,t.preventDefault())}}L.toggle=function(){i.classList.contains("show")?L.hide():L.show()},L.show=function(){if(!(i.classList.contains("show")&&i.isAnimating||(c=a("show","modal",b),l.call(i,c),c.defaultPrevented))){i.isAnimating=!0;var t,e=document.getElementsByClassName("modal show")[0];e&&e!==i&&(e.modalTrigger&&e.modalTrigger.Modal.hide(),e.Modal&&e.Modal.hide()),y.backdrop&&(t=document.createElement("div"),null===(g=o(".modal-backdrop"))&&(t.setAttribute("class","modal-backdrop"+(y.animation?" fade":"")),g=t,document.body.appendChild(g)),g=g),!g||e||g.classList.contains("show")||(g.offsetWidth,p=n(g),g.classList.add("show")),e?E():setTimeout(E,g&&p?p:0)}},L.hide=function(t){i.classList.contains("show")&&(d=a("hide","modal"),l.call(i,d),d.defaultPrevented||(i.isAnimating=!0,i.classList.remove("show"),i.setAttribute("aria-hidden",!0),i.classList.contains("fade")&&1!==t?s(i,C):C()))},L.setContent=function(t){o(".modal-content",i).innerHTML=t},L.update=function(){i.classList.contains("show")&&w()},L.dispose=function(){L.hide(1),t?(t.removeEventListener("click",x,!1),delete t.Modal):delete i.Modal},t=o(t);var B=o(t.getAttribute("data-target")||t.getAttribute("href"));i=t.classList.contains("modal")?t:B,v=Array.from(document.getElementsByClassName("fixed-top")).concat(Array.from(document.getElementsByClassName("fixed-bottom"))),t.classList.contains("modal")&&(t=null),t&&t.Modal&&t.Modal.dispose(),i&&i.Modal&&i.Modal.dispose(),y.keyboard=!1!==e.keyboard&&"false"!==i.getAttribute("data-keyboard"),y.backdrop="static"!==e.backdrop&&"static"!==i.getAttribute("data-backdrop")||"static",y.backdrop=!1!==e.backdrop&&"false"!==i.getAttribute("data-backdrop")&&y.backdrop,y.animation=!!i.classList.contains("fade"),y.content=e.content,i.isAnimating=!1,t&&!t.Modal&&t.addEventListener("click",x,!1),y.content&&L.setContent(y.content.trim()),t?(i.modalTrigger=t,t.Modal=L):i.Modal=L}var v="mousedown";function L(){return{y:window.pageYOffset||document.documentElement.scrollTop,x:window.pageXOffset||document.documentElement.scrollLeft}}function b(t,e,i,n){var s,o,a,l,c,r,d=e.offsetWidth,u=e.offsetHeight,m=document.documentElement.clientWidth||document.body.clientWidth,f=document.documentElement.clientHeight||document.body.clientHeight,h=t.getBoundingClientRect(),g=n===document.body?L():{x:n.offsetLeft+n.scrollLeft,y:n.offsetTop+n.scrollTop},p=h.right-h.left,v=h.bottom-h.top,b=e.classList.contains("popover"),y=e.getElementsByClassName("arrow")[0],w=h.top+v/2-u/2<0,A=h.left+p/2-d/2<0,T=h.left+d/2+p/2>=m,E=h.top+u/2+v/2>=f,k=h.top-u<0,C=h.left-d<0,x=h.top+u+v>=f,N=h.left+d+p>=m;i="right"===(i="left"===(i="bottom"===(i="top"===(i=("left"===i||"right"===i)&&C&&N?"top":i)&&k?"bottom":i)&&x?"top":i)&&C?"right":i)&&N?"left":i,-1===e.className.indexOf(i)&&(e.className=e.className.replace(/\b(top|bottom|left|right)+/,i)),c=y.offsetWidth,r=y.offsetHeight,"left"===i||"right"===i?(o="left"===i?h.left+g.x-d-(b?c:0):h.left+g.x+p,w?(s=h.top+g.y,a=v/2-c):E?(s=h.top+g.y-u+v,a=u-v/2-c):(s=h.top+g.y-u/2+v/2,a=u/2-(b?.9*r:r/2))):"top"!==i&&"bottom"!==i||(s="top"===i?h.top+g.y-u-(b?r:0):h.top+g.y+v,A?(o=0,l=h.left+p/2-c):T?(o=m-1.01*d,l=d-(m-h.left)+p/2-c/2):(o=h.left+g.x-d/2+p/2,l=d/2-(b?c:c/2))),e.style.top=s+"px",e.style.left=o+"px",a&&(y.style.top=a+"px"),l&&(y.style.left=l+"px")}function y(t,e){e=e||{};var i,n,c,r,m,f,h,g,p,L,y,w,A,T,E,k,C,x,N,P=this,B=null,S=0,H=/(iPhone|iPod|iPad)/.test(navigator.userAgent),M={};function I(t){null!==B&&t.target===o(".close",B)&&P.hide()}function D(){return{0:e.title||t.getAttribute("data-title")||null,1:e.content||t.getAttribute("data-content")||null}}function X(){null===B&&t.focus()}function W(e){e=e?"addEventListener":"removeEventListener","hover"===M.trigger?(t[e](v,P.show),t[e](d[0],P.show),M.dismissible||t[e](d[1],P.hide)):"click"==M.trigger?t[e](M.trigger,P.toggle):"focus"==M.trigger&&(H&&t[e]("click",X,!1),t[e](M.trigger,P.toggle))}function O(e){B&&B.contains(e.target)||e.target===t||t.contains(e.target)||P.hide()}function R(e){e=e?"addEventListener":"removeEventListener",M.dismissible?document[e]("click",I,!1):("focus"==M.trigger&&t[e]("blur",P.hide),"hover"==M.trigger&&document[e]("touchstart",O,u)),window[e]("resize",P.hide,u)}function z(){R(1),l.call(t,y)}function U(){R(),M.container.removeChild(B),S=null,B=null,l.call(t,A)}P.toggle=function(){null===B?P.show():P.hide()},P.show=function(){clearTimeout(S),S=setTimeout((function(){if(null===B){if(l.call(t,L),L.defaultPrevented)return;!function(){i=D()[0]||null,n=(n=D()[1])?n.trim():null,B=document.createElement("div");var t=document.createElement("div");if(t.classList.add("arrow"),B.appendChild(t),null!==n&&null===M.template){if(B.setAttribute("role","tooltip"),null!==i){var e=document.createElement("h3");e.classList.add("popover-header"),e.innerHTML=M.dismissible?i+p:i,B.appendChild(e)}var s=document.createElement("div");s.classList.add("popover-body"),s.innerHTML=M.dismissible&&null===i?n+p:n,B.appendChild(s)}else{var a=document.createElement("div");a.innerHTML=M.template.trim(),B.className=a.firstChild.className,B.innerHTML=a.firstChild.innerHTML;var l=o(".popover-header",B),c=o(".popover-body",B);i&&l&&(l.innerHTML=i.trim()),n&&c&&(c.innerHTML=n.trim())}M.container.appendChild(B),B.style.display="block",!B.classList.contains("popover")&&B.classList.add("popover"),!B.classList.contains(M.animation)&&B.classList.add(M.animation),!B.classList.contains(N)&&B.classList.add(N)}(),b(t,B,M.placement,M.container),!B.classList.contains("show")&&B.classList.add("show"),M.animation?s(B,z):z()}}),20)},P.hide=function(){clearTimeout(S),S=setTimeout((function(){if(B&&null!==B&&B.classList.contains("show")){if(l.call(t,w),w.defaultPrevented)return;B.classList.remove("show"),M.animation?s(B,U):U()}}),M.delay)},P.dispose=function(){P.hide(),W(),delete t.Popover},(t=o(t)).Popover&&t.Popover.dispose(),c=t.getAttribute("data-trigger"),r=t.getAttribute("data-animation"),m=t.getAttribute("data-placement"),f=t.getAttribute("data-dismissible"),h=t.getAttribute("data-delay"),g=t.getAttribute("data-container"),p='<button type="button" class="close">×</button>',L=a("show","popover"),y=a("shown","popover"),w=a("hide","popover"),A=a("hidden","popover"),T=o(e.container),E=o(g),k=t.closest(".modal"),C=t.closest(".fixed-top"),x=t.closest(".fixed-bottom"),M.template=e.template?e.template:null,M.trigger=e.trigger?e.trigger:c||"hover",M.animation=e.animation&&"fade"!==e.animation?e.animation:r||"fade",M.placement=e.placement?e.placement:m||"top",M.delay=parseInt(e.delay||h)||200,M.dismissible=!(!e.dismissible&&"true"!==f),M.container=T||(E||(C||(x||(k||document.body)))),N="bs-popover-"+M.placement;var q=D();i=q[0],((n=q[1])||M.template)&&(t.Popover||W(1),t.Popover=P)}function w(t,e){e=e||{};var i,n,s,c,r,d=this,m={};function f(){var e;e=c.getElementsByTagName("A"),i.length!==e.length&&(i.items=[],i.targets=[],Array.from(e).map((function(t){var e=t.getAttribute("href"),n=e&&"#"===e.charAt(0)&&"#"!==e.slice(-1)&&o(e);n&&(i.items.push(t),i.targets.push(n))})),i.length=e.length),i.scrollOffset=i.isWindow?L().y:t.scrollTop,i.items.map((function(e,n){return function(e){var n=i.items[e],s=i.targets[e],o=n.classList.contains("dropdown-item")&&n.closest(".dropdown-menu"),c=o&&o.previousElementSibling,r=n.nextElementSibling,d=r&&r.getElementsByClassName("active").length,u=i.isWindow&&s.getBoundingClientRect(),f=n.classList.contains("active")||!1,h=(i.isWindow?u.top+i.scrollOffset:s.offsetTop)-m.offset,g=i.isWindow?u.bottom+i.scrollOffset-m.offset:i.targets[e+1]?i.targets[e+1].offsetTop-m.offset:t.scrollHeight,p=d||i.scrollOffset>=h&&g>i.scrollOffset;if(!f&&p)n.classList.add("active"),c&&!c.classList.contains("active")&&c.classList.add("active"),l.call(t,a("activate","scrollspy",i.items[e]));else if(f&&!p)n.classList.remove("active"),c&&c.classList.contains("active")&&!n.parentNode.getElementsByClassName("active").length&&c.classList.remove("active");else if(f&&p||!p&&!f)return}(n)}))}function h(t){r[t=t?"addEventListener":"removeEventListener"]("scroll",d.refresh,u),window[t]("resize",d.refresh,u)}d.refresh=function(){f()},d.dispose=function(){h(),delete t.ScrollSpy},(t=o(t)).ScrollSpy&&t.ScrollSpy.dispose(),n=t.getAttribute("data-target"),s=t.getAttribute("data-offset"),c=o(e.target||n),r=t.offsetHeight<t.scrollHeight?t:window,c&&(m.target=c,m.offset=parseInt(e.offset||s)||10,(i={}).length=0,i.items=[],i.targets=[],i.isWindow=r===window,t.ScrollSpy||h(1),d.refresh(),t.ScrollSpy=d)}function A(t,i){i=i||{};var n,c,r,d,u,m,f,h,g,p,v,L,b,y,w,A=this,T=!1;function E(){T.style.height="",T.classList.remove("collapsing"),c.isAnimating=!1}function k(){T?b?E():setTimeout((function(){T.style.height=y+"px",T.offsetWidth,s(T,E)}),50):c.isAnimating=!1,u=a("shown","tab",g),l.call(h,u)}function C(){T&&(p.style.float="left",v.style.float="left",L=p.scrollHeight),d=a("show","tab",g),f=a("hidden","tab",h),l.call(h,d),d.defaultPrevented||(v.classList.add("active"),p.classList.remove("active"),T&&(y=v.scrollHeight,b=y===L,T.classList.add("collapsing"),T.style.height=L+"px",T.offsetHeight,p.style.float="",v.style.float=""),v.classList.contains("fade")?setTimeout((function(){v.classList.add("show"),s(v,k)}),20):k(),l.call(g,f))}function x(){var t,e=c.getElementsByClassName("active");return 1!==e.length||e[0].parentNode.classList.contains("dropdown")?e.length>1&&(t=e[e.length-1]):t=e[0],t}function N(){return o(x().getAttribute("href"))}function P(t){t.preventDefault(),h=t.currentTarget,!c.isAnimating&&A.show()}A.show=function(){if(!(h=h||t).classList.contains("active")){if(v=o(h.getAttribute("href")),g=x(),p=N(),m=a("hide","tab",h),l.call(g,m),m.defaultPrevented)return;c.isAnimating=!0,g.classList.remove("active"),g.setAttribute("aria-selected","false"),h.classList.add("active"),h.setAttribute("aria-selected","true"),r&&(t.parentNode.classList.contains("dropdown-menu")?r.classList.contains("active")||r.classList.add("active"):r.classList.contains("active")&&r.classList.remove("active")),p.classList.contains("fade")?(p.classList.remove("show"),s(p,C)):C()}},A.dispose=function(){t.removeEventListener("click",P,!1),delete t.Tab},(t=o(t)).Tab&&t.Tab.dispose(),n=t.getAttribute("data-height"),c=t.closest(".nav"),r=c&&o(".dropdown-toggle",c),w=!(!e||!1===i.height||"false"===n),c.isAnimating=!1,t.Tab||t.addEventListener("click",P,!1),w&&(T=N().parentNode),t.Tab=A}function T(t,e){e=e||{};var i,n,c,r,d,u,m,f,h=this,g=0,p={};function v(){i.classList.remove("showing"),i.classList.add("show"),l.call(i,m),p.autohide&&h.hide()}function L(){i.classList.add("hide"),l.call(i,f)}function b(){i.classList.remove("show"),p.animation?s(i,L):L()}function y(){clearTimeout(g),t.removeEventListener("click",h.hide,!1),delete t.Toast}h.show=function(){if(i&&!i.classList.contains("show")){if(l.call(i,d),d.defaultPrevented)return;p.animation&&i.classList.add("fade"),i.classList.remove("hide"),i.offsetWidth,i.classList.add("showing"),p.animation?s(i,v):v()}},h.hide=function(t){if(i&&i.classList.contains("show")){if(l.call(i,u),u.defaultPrevented)return;t?b():g=setTimeout(b,p.delay)}},h.dispose=function(){p.animation?s(i,y):y()},(t=o(t)).Toast&&t.Toast.dispose(),i=t.closest(".toast"),n=t.getAttribute("data-animation"),c=t.getAttribute("data-autohide"),r=t.getAttribute("data-delay"),d=a("show","toast"),u=a("hide","toast"),m=a("shown","toast"),f=a("hidden","toast"),p.animation=!1===e.animation||"false"===n?0:1,p.autohide=!1===e.autohide||"false"===c?0:1,p.delay=parseInt(e.delay||r)||500,t.Toast||t.addEventListener("click",h.hide,!1),t.Toast=h}function E(t,e){e=e||{};var i,n,c,r,m,f,h,g,p,L,y,w,A,T,E,k=this,C=null,x=0,N={};function P(){return t.getAttribute("title")||t.getAttribute("data-title")||t.getAttribute("data-original-title")}function B(e){C&&C.contains(e.target)||e.target===t||t.contains(e.target)||k.hide()}function S(t){t=t?"addEventListener":"removeEventListener",document[t]("touchstart",B,u),window[t]("resize",k.hide,u)}function H(){S(1),l.call(t,h)}function M(){S(),N.container.removeChild(C),C=null,x=null,l.call(t,p)}function I(e){t[e=e?"addEventListener":"removeEventListener"](v,k.show,!1),t[e](d[0],k.show,!1),t[e](d[1],k.hide,!1)}k.show=function(){clearTimeout(x),x=setTimeout((function(){if(null===C){if(l.call(t,f),f.defaultPrevented)return;!1!==function(){if(i=P()){if(C=document.createElement("div"),N.template){var t=document.createElement("div");t.innerHTML=N.template.trim(),C.className=t.firstChild.className,C.innerHTML=t.firstChild.innerHTML,o(".tooltip-inner",C).innerHTML=i.trim()}else{var e=document.createElement("div");e.classList.add("arrow"),C.appendChild(e);var n=document.createElement("div");n.classList.add("tooltip-inner"),C.appendChild(n),n.innerHTML=i}C.style.left="0",C.style.top="0",C.setAttribute("role","tooltip"),!C.classList.contains("tooltip")&&C.classList.add("tooltip"),!C.classList.contains(N.animation)&&C.classList.add(N.animation),!C.classList.contains(E)&&C.classList.add(E),N.container.appendChild(C)}}()&&(b(t,C,N.placement,N.container),!C.classList.contains("show")&&C.classList.add("show"),N.animation?s(C,H):H())}}),20)},k.hide=function(){clearTimeout(x),x=setTimeout((function(){if(C&&C.classList.contains("show")){if(l.call(t,g),g.defaultPrevented)return;C.classList.remove("show"),N.animation?s(C,M):M()}}),N.delay)},k.toggle=function(){C?k.hide():k.show()},k.dispose=function(){I(),k.hide(),t.setAttribute("title",t.getAttribute("data-original-title")),t.removeAttribute("data-original-title"),delete t.Tooltip},(t=o(t)).Tooltip&&t.Tooltip.dispose(),n=t.getAttribute("data-animation"),c=t.getAttribute("data-placement"),r=t.getAttribute("data-delay"),m=t.getAttribute("data-container"),f=a("show","tooltip"),h=a("shown","tooltip"),g=a("hide","tooltip"),p=a("hidden","tooltip"),L=o(e.container),y=o(m),w=t.closest(".modal"),A=t.closest(".fixed-top"),T=t.closest(".fixed-bottom"),N.animation=e.animation&&"fade"!==e.animation?e.animation:n||"fade",N.placement=e.placement?e.placement:c||"top",N.template=e.template?e.template:null,N.delay=parseInt(e.delay||r)||200,N.container=L||(y||(A||(T||(w||document.body)))),E="bs-tooltip-"+N.placement,(i=P())&&(t.Tooltip||(t.setAttribute("data-original-title",i),t.removeAttribute("title"),I(1)),t.Tooltip=k)}var k={};function C(t,e){Array.from(e).map((function(e){return new t(e)}))}function x(t){for(var e in t=t||document,k)C(k[e][0],t.querySelectorAll(k[e][1]))}function N(t,e){Array.from(e).map((function(e){return e[t].dispose()}))}k.Alert=[c,'[data-dismiss="alert"]'],k.Button=[r,'[data-toggle="buttons"]'],k.Carousel=[m,'[data-ride="carousel"]'],k.Collapse=[f,'[data-toggle="collapse"]'],k.Dropdown=[g,'[data-toggle="dropdown"]'],k.Modal=[p,'[data-toggle="modal"]'],k.Popover=[y,'[data-toggle="popover"],[data-tip="popover"]'],k.ScrollSpy=[w,'[data-spy="scroll"]'],k.Tab=[A,'[data-toggle="tab"]'],k.Toast=[T,'[data-dismiss="toast"]'],k.Tooltip=[E,'[data-toggle="tooltip"],[data-tip="tooltip"]'],document.body?x():document.addEventListener("DOMContentLoaded",(function t(){x(),document.removeEventListener("DOMContentLoaded",t,!1)}),!1);return{Alert:c,Button:r,Carousel:m,Collapse:f,Dropdown:g,Modal:p,Popover:y,ScrollSpy:w,Tab:A,Toast:T,Tooltip:E,initCallback:x,removeDataAPI:function(t){for(var e in t=t||document,k)N(e,t.querySelectorAll(k[e][1]))},componentsInit:k,Version:"3.0.9"}})); |
{ | ||
"name": "bootstrap.native", | ||
"version": "3.0.8", | ||
"version": "3.0.9", | ||
"description": "Native JavaScript for Bootstrap, the sweetest JavaScript library without jQuery.", | ||
@@ -10,2 +10,3 @@ "main": "dist/bootstrap-native.min.js", | ||
"dist/*.{js,map}", | ||
"dist/**/*.{js,map}", | ||
"src/*.{js,map}", | ||
@@ -12,0 +13,0 @@ "src/**/*.{js,map}" |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
470207
55
9721