TaoLer/public/view/common/blog/js/theme.js
2023-05-05 12:00:22 +08:00

1 line
70 KiB
JavaScript

function ncPopupTips(f,d){var e=f?'<span class="d-block h1 text-success mb-2"><?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1553065772988" class="icon w-56" style="" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2922" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><defs><style type="text/css"></style></defs><path d="M666.272 472.288l-175.616 192a31.904 31.904 0 0 1-23.616 10.4h-0.192a32 32 0 0 1-23.68-10.688l-85.728-96a32 32 0 1 1 47.744-42.624l62.144 69.6 151.712-165.888a32 32 0 1 1 47.232 43.2m-154.24-344.32C300.224 128 128 300.32 128 512c0 211.776 172.224 384 384 384 211.68 0 384-172.224 384-384 0-211.68-172.32-384-384-384" p-id="2923"></path></svg></span>':'<span class="d-block h1 text-danger mb-2"><?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1553065784656" class="icon w-56" style="" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="3053" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><defs><style type="text/css"></style></defs><path d="M544 576a32 32 0 0 1-64 0v-256a32 32 0 0 1 64 0v256z m-32 160a32 32 0 1 1 0-64 32 32 0 0 1 0 64z m0-608C300.256 128 128 300.256 128 512s172.256 384 384 384 384-172.256 384-384S723.744 128 512 128z" p-id="3054"></path></svg></span>',F=f?"tips-success":"tips-error",g='<section class="nice-tips '+F+' nice-tips-sm nice-tips-open"><div class="nice-tips-overlay"></div><div class="nice-tips-body text-center"><div class="nice-tips-content px-5">'+e+'<div class="text-sm text-muted">'+d+"</div></div></div></section>",eb=$(g);$("body").append(eb);$("body").addClass("modal-open");typeof lazyLoadInstance!="undefined"&&lazyLoadInstance.update();setTimeout(function(){$("body").removeClass("modal-open");eb.removeClass("nice-tips-open");eb.addClass("nice-tips-close");setTimeout(function(){eb.removeClass("nice-tips-close");setTimeout(function(){eb.remove()},200)},400)},1200)}function ncPopup(f,d,e,F){var e=e?'style="'+e+'"':"",g="",eb,T,c;f=="big"?g="nice-tips-lg":f=="no-padding"?g="nice-tips-nopd":f=="cover"?g="nice-tips-cover nice-tips-nopd":f=="full"?g="nice-tips-xl":f=="scroll"?g="nice-tips-scroll":f=="middle"?g="nice-tips-md":f=="small"&&(g="nice-tips-sm");eb='\t<div class="nice-tips '+g+' nice-tips-open">\t\t<div class="nice-tips-overlay" '+e+'></div>\t\t<div class="nice-tips-body">\t\t\t<div class="nice-tips-content">\t\t\t\t'+d+'\t\t\t</div>\t\t\t<div class="btn-close-tips">\t\t\t\t<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1553064665406" class="icon w-32" style="" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="3368" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><defs><style type="text/css"></style></defs><path d="M512 12C235.9 12 12 235.9 12 512s223.9 500 500 500 500-223.9 500-500S788.1 12 512 12z m166.3 609.7c15.6 15.6 15.6 40.9 0 56.6-7.8 7.8-18 11.7-28.3 11.7s-20.5-3.9-28.3-11.7L512 568.6 402.3 678.3c-7.8 7.8-18 11.7-28.3 11.7s-20.5-3.9-28.3-11.7c-15.6-15.6-15.6-40.9 0-56.6L455.4 512 345.7 402.3c-15.6-15.6-15.6-40.9 0-56.6 15.6-15.6 40.9-15.6 56.6 0L512 455.4l109.7-109.7c15.6-15.6 40.9-15.6 56.6 0 15.6 15.6 15.6 40.9 0 56.6L568.6 512l109.7 109.7z" p-id="3369"></path></svg>\t\t\t</div>\t\t</div>\t</div>\t';T=$(eb);$("body").append(T);$("body").addClass("modal-open");typeof lazyLoadInstance!="undefined"&&lazyLoadInstance.update();c=function(){$("body").removeClass("modal-open");$(T).removeClass("nice-tips-open");$(T).addClass("nice-tips-close");setTimeout(function(){$(T).removeClass("nice-tips-close");setTimeout(function(){T.remove()},200)},600)};$(T).on("click touchstart",".btn-close-tips, .nice-tips-overlay",function(f){f.preventDefault();c()});return typeof F=="object"&&Object.keys(F).forEach(function(f){$(T).on("click touchstart",f,function(d){var e=F[f](d,c)})}),T}function toggleDarkMode(){$("body").toggleClass("nice-dark-mode");$("body").hasClass("nice-dark-mode")?($(".logo-dark").removeClass("d-none"),$(".logo-dark").addClass("d-inline-block"),$(".logo-light").removeClass("d-inline-block"),$(".logo-light").addClass("d-none")):($(".logo-dark").removeClass("d-inline-block"),$(".logo-dark").addClass("d-none"),$(".logo-light").removeClass("d-none"),$(".logo-light").addClass("d-inline-block"))}function toggleSidebar(){$(".sidebar-close, .mobile-overlay").on("click",function(){$("body").removeClass("modal-open");$(".mobile-sidebar").removeClass("active");$(".mobile-overlay").removeClass("active")});$("#sidebarCollapse").on("click",function(){$("body").addClass("modal-open");$(".mobile-sidebar").addClass("active");$(".mobile-overlay").addClass("active");$(".collapse.in").toggleClass("in");$("a[aria-expanded=true]").attr("aria-expanded","false")})}function switchNightMode(){var f=document.cookie.replace(/(?:(?:^|.*;\s*)night\s*\=\s*([^;]*).*$)|^.*$/,"$1")||"0";f=="0"?(document.body.classList.add("nice-dark-mode"),document.cookie="night=1;path=/",console.log("夜间模式开启")):(document.body.classList.remove("nice-dark-mode"),document.cookie="night=0;path=/",console.log("夜间模式关闭"))}jQuery(document).ready(function(f){function d(f){var d=f.getBoundingClientRect();return d.top>=0&&d.left>=0&&d.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&d.right<=(window.innerWidth||document.documentElement.clientWidth)}var e,F,g,eb;if(toggleSidebar(),e=window.innerHeight,F=f("main").innerHeight(),F>e){g=f(".header").height();f(window).on("scroll",{TopPrev:0},function(){var d=f(window).scrollTop();d<this.TopPrev?d>0&&f(".header").hasClass("fixed-header")?f(".header").addClass("visible-scroll-up"):f(".header").removeClass("visible-scroll-up fixed-header"):(f(".header").removeClass("visible-scroll-up"),d>g&&!f(".header").hasClass("fixed-header")&&f(".header").addClass("fixed-header"));this.TopPrev=d})}f(window).scroll(function(){var d=f(window),e=d.width();f(this).scrollTop()>200&&e>=1024?f("#scroll_to_top").filter(":hidden").fadeIn("fast"):f("#scroll_to_top").filter(":visible").fadeOut("fast")});f("#scroll_to_top").on("click",function(){return f("html, body").animate({scrollTop:0},"slow"),!1});f('a.js-scroll-trigger[href*="#"]:not([href="#"])').click(function(){if(location.pathname.replace(/^\//,"")==this.pathname.replace(/^\//,"")&&location.hostname==this.hostname){var d=f(this.hash);if(d=d.length?d:f("[name="+this.hash.slice(1)+"]"),d.length)return f("html, body").animate({scrollTop:d.offset().top-60},1e3,"easeInOutExpo"),!1}});f('[data-toggle="tooltip"]').tooltip();f('[data-toggle="tooltip"]').on("shown.bs.tooltip",function(){f(".tooltip").addClass("animated fadeIn")});f(".sidebar").theiaStickySidebar({additionalMarginTop:20,additionalMarginBottom:20});f(".sidebar-author").theiaStickySidebar({additionalMarginTop:100,additionalMarginBottom:20});f(".main-menu li").hasClass("menu-item-has-children")&&f(".main-menu .menu-item-has-children").prepend('<span class="icon-sub-menu"><i class="iconfont icon-arrow-down-s-line"></i></span>');f(".mobile-sidebar-menu .menu-item-has-children > a").append('<div class="dropdown-sub-menu"><span class="iconfont icon-arrow-drop-down-fill"></span></div>');f(".dropdown-sub-menu").on("click",function(){f(this).parents("li").children(".sub-menu").slideToggle();f(this).parents("li").children(".dropdown-sub-menu").toggleClass("current")});eb=f(".list-banner .owl-carousel");eb.length>0&&eb.owlCarousel({items:1,loop:!0,margin:10,smartSpeed:1e3,autoplay:!0,autoplayTimeout:5e3,autoplayHoverPause:!0,responsiveClass:!0,responsive:{0:{items:1,margin:10,nav:!1},768:{nav:!0,navText:['<i class="iconfont icon-left"></i>','<i class="iconfont icon-right"></i>']},992:{nav:!0,navText:['<i class="iconfont icon-left"></i>','<i class="iconfont icon-right"></i>']}}});f(document).on("click",".single-popup",function(d){d.preventDefault();var e=f(this).data("img"),F=f(this).data("title"),g=f(this).data("desc"),eb='<div class="text-center"><h6 class="py-1">'+F+'</h6> <div class="text-muted text-sm mb-2" > '+g+' </div> <img src="'+e+'" alt="'+F+'" style="width:100%;height:auto;"> </div>';ncPopup("small",eb)})});jQuery(document).ready(function(f){var d=f("#monavber").attr("data-type");f(".navbar>li ").each(function(){var e,F,g,eb;try{if(e=f(this).attr("id"),"index"==d)e=="nvabar-item-index"&&f("#nvabar-item-index").addClass("current-menu-item");else if("category"==d){if(eb=f("#monavber").attr("data-infoid"),eb!=null)for(F=eb.split(" "),g=0;g<F.length;g++)e=="navbar-category-"+F[g]&&f("#navbar-category-"+F[g]+"").addClass("current-menu-item")}else if("article"==d){if(eb=f("#monavber").attr("data-infoid"),eb!=null)for(F=eb.split(" "),g=0;g<F.length;g++)e=="navbar-category-"+F[g]&&f("#navbar-category-"+F[g]+"").addClass("current-menu-item")}else"page"==d?(eb=f("#monavber").attr("data-infoid"),eb!=null&&e=="navbar-page-"+eb&&f("#navbar-page-"+eb+"").addClass("current-menu-item")):"tag"==d&&(eb=f("#monavber").attr("data-infoid"),eb!=null&&e=="navbar-tag-"+eb&&f("#navbar-tag-"+eb+"").addClass("current-menu-item"))}catch(f){}});f("#monavber").delegate("a","click",function(){f(".navbar>li").each(function(){f(this).removeClass("current-menu-item")});f(this).closest("ul")!=null&&f(this).closest("ul").length!=0&&(f(this).closest("ul").attr("id")=="munavber"?f(this).addClass("current-menu-item"):f(this).closest("ul").closest("li").addClass("current-menu-item"))})});!function(f){f.fn.theiaStickySidebar=function(d){function e(d,e){var g=F(d,e);g||(console.log("TSS: Body width smaller than options.minWidth. Init is delayed."),f(document).on("scroll."+d.namespace,function(d,e){return function(g){var eb=F(d,e);eb&&f(this).unbind(g)}}(d,e)),f(window).on("resize."+d.namespace,function(d,e){return function(g){var eb=F(d,e);eb&&f(this).unbind(g)}}(d,e)))}function F(d,e){return d.initialized===!0||!(f("body").width()<d.minWidth)&&(g(d,e),!0)}function g(d,e){d.initialized=!0;var F=f("#theia-sticky-sidebar-stylesheet-"+d.namespace);0===F.length&&f("head").append(f('<style id="theia-sticky-sidebar-stylesheet-'+d.namespace+'">.theiaStickySidebar:after {content: ""; display: table; clear: both;}</style>'));e.each(function(){function e(){g.fixedScrollTop=0;g.sidebar.css({"min-height":"1px"});g.stickySidebar.css({position:"static",width:"",transform:"none"})}function F(d){var e=d.height();return d.children().each(function(){e=Math.max(e,f(this).height())}),e}var g={},T,c,P;(g.sidebar=f(this),g.options=d||{},g.container=f(g.options.containerSelector),0==g.container.length&&(g.container=g.sidebar.parent()),g.sidebar.parents().css("-webkit-transform","none"),g.sidebar.css({position:g.options.defaultPosition,overflow:"visible","-webkit-box-sizing":"border-box","-moz-box-sizing":"border-box","box-sizing":"border-box"}),g.stickySidebar=g.sidebar.find(".theiaStickySidebar"),0==g.stickySidebar.length)&&(T=/(?:text|application)\/(?:x-)?(?:javascript|ecmascript)/i,g.sidebar.find("script").filter(function(f,d){return 0===d.type.length||d.type.match(T)}).remove(),g.stickySidebar=f("<div>").addClass("theiaStickySidebar").append(g.sidebar.children()),g.sidebar.append(g.stickySidebar));g.marginBottom=parseInt(g.sidebar.css("margin-bottom"));g.paddingTop=parseInt(g.sidebar.css("padding-top"));g.paddingBottom=parseInt(g.sidebar.css("padding-bottom"));c=g.stickySidebar.offset().top;P=g.stickySidebar.outerHeight();g.stickySidebar.css("padding-top",1);g.stickySidebar.css("padding-bottom",1);c-=g.stickySidebar.offset().top;P=g.stickySidebar.outerHeight()-P-c;0==c?(g.stickySidebar.css("padding-top",0),g.stickySidebarPaddingTop=0):g.stickySidebarPaddingTop=1;0==P?(g.stickySidebar.css("padding-bottom",0),g.stickySidebarPaddingBottom=0):g.stickySidebarPaddingBottom=1;g.previousScrollTop=null;g.fixedScrollTop=0;e();g.onScroll=function(g){var T,c,P,dX,b,X;if(g.stickySidebar.is(":visible")){if(f("body").width()<g.options.minWidth||g.options.disableOnResponsiveLayouts&&(T=g.sidebar.outerWidth("none"==g.sidebar.css("float")),T+50>g.container.width()))return void e();if(c=f(document).scrollTop(),P="static",c>=g.sidebar.offset().top+(g.paddingTop-g.options.additionalMarginTop)){var gf,eC=g.paddingTop+d.additionalMarginTop,eD=g.paddingBottom+g.marginBottom+d.additionalMarginBottom,cS=g.sidebar.offset().top,a=g.sidebar.offset().top+F(g.container),D=0+d.additionalMarginTop,da=g.stickySidebar.outerHeight()+eC+eD<f(window).height();gf=da?D+g.stickySidebar.outerHeight():f(window).height()-g.marginBottom-g.paddingBottom-d.additionalMarginBottom;var fT=cS-c+g.paddingTop,eT=a-c-g.paddingBottom-g.marginBottom,eR=g.stickySidebar.offset().top-c,gG=g.previousScrollTop-c;"fixed"==g.stickySidebar.css("position")&&"modern"==g.options.sidebarBehavior&&(eR+=gG);"stick-to-top"==g.options.sidebarBehavior&&(eR=d.additionalMarginTop);"stick-to-bottom"==g.options.sidebarBehavior&&(eR=gf-g.stickySidebar.outerHeight());eR=gG>0?Math.min(eR,D):Math.max(eR,gf-g.stickySidebar.outerHeight());eR=Math.max(eR,fT);eR=Math.min(eR,eT-g.stickySidebar.outerHeight());dX=g.container.height()==g.stickySidebar.outerHeight();P=(dX||eR!=D)&&(dX||eR!=gf-g.stickySidebar.outerHeight())?c+eR-g.sidebar.offset().top-g.paddingTop<=d.additionalMarginTop?"static":"absolute":"fixed"}"fixed"==P?(b=f(document).scrollLeft(),g.stickySidebar.css({position:"fixed",width:eb(g.stickySidebar)+"px",transform:"translateY("+eR+"px)",left:g.sidebar.offset().left+parseInt(g.sidebar.css("padding-left"))-b+"px",top:"0px"})):"absolute"==P?(X={},"absolute"!=g.stickySidebar.css("position")&&(X.position="absolute",X.transform="translateY("+(c+eR-g.sidebar.offset().top-g.stickySidebarPaddingTop-g.stickySidebarPaddingBottom)+"px)",X.top="0px"),X.width=eb(g.stickySidebar)+"px",X.left="",g.stickySidebar.css(X)):"static"==P&&e();"static"!=P&&1==g.options.updateSidebarHeight&&g.sidebar.css({"min-height":g.stickySidebar.outerHeight()+g.stickySidebar.offset().top-g.sidebar.offset().top+g.paddingBottom});g.previousScrollTop=c}};g.onScroll(g);f(document).on("scroll."+g.options.namespace,function(f){return function(){f.onScroll(f)}}(g));f(window).on("resize."+g.options.namespace,function(f){return function(){f.stickySidebar.css({position:"static"});f.onScroll(f)}}(g));"undefined"!=typeof ResizeSensor&&new ResizeSensor(g.stickySidebar[0],function(f){return function(){f.onScroll(f)}}(g))})}function eb(f){var d;try{d=f[0].getBoundingClientRect().width}catch(f){}return"undefined"==typeof d&&(d=f.width()),d}return d=f.extend({containerSelector:"",additionalMarginTop:0,additionalMarginBottom:0,updateSidebarHeight:!0,minWidth:0,disableOnResponsiveLayouts:!0,sidebarBehavior:"modern",defaultPosition:"relative",namespace:"TSS"},d),d.additionalMarginTop=parseInt(d.additionalMarginTop)||0,d.additionalMarginBottom=parseInt(d.additionalMarginBottom)||0,e(d,this),this}}(jQuery);window.$=jQuery;isApollo=$("meta[name=apollo-enabled]").attr("content")==="1";!function(f,d){"object"==typeof exports&&"undefined"!=typeof module?d(exports,require("jquery")):"function"==typeof define&&define.amd?define(["exports","jquery"],d):d((f=f||self).bootstrap={},f.jQuery)}(this,function(f,d){"use strict";function e(f,d){for(var e,F=0;F<d.length;F++)e=d[F],e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(f,e.key,e)}function F(f,d,F){return d&&e(f.prototype,d),F&&e(f,F),f}function g(f){for(var d,e,F=1;F<arguments.length;F++)d=null!=arguments[F]?arguments[F]:{},e=Object.keys(d),"function"==typeof Object.getOwnPropertySymbols&&(e=e.concat(Object.getOwnPropertySymbols(d).filter(function(f){return Object.getOwnPropertyDescriptor(d,f).enumerable}))),e.forEach(function(e){var F,g,eb;F=f;eb=d[g=e];g in F?Object.defineProperty(F,g,{value:eb,enumerable:!0,configurable:!0,writable:!0}):F[g]=eb});return f}function eb(f){var e=this,F=!1;return d(this).one(r.TRANSITION_END,function(){F=!0}),setTimeout(function(){F||r.triggerTransitionEnd(e)},f),this}function T(f){return f&&"[object Function]"==={}.toString.call(f)}function c(f,d){if(1!==f.nodeType)return[];var e=f.ownerDocument.defaultView.getComputedStyle(f,null);return d?e[d]:e}function P(f){return"HTML"===f.nodeName?f:f.parentNode||f.host}function dX(f){if(!f)return document.body;switch(f.nodeName){case"HTML":case"BODY":return f.ownerDocument.body;case"#document":return f.body}var d=c(f),e=d.overflow,F=d.overflowX,g=d.overflowY;return/(auto|scroll|overlay)/.test(e+g+F)?f:dX(P(f))}function b(f){return 11===f?t:10===f?u:t||u}function X(f){var d,e,F;if(!f)return document.documentElement;for(d=b(10)?document.body:null,e=f.offsetParent||null;e===d&&f.nextElementSibling;)e=(f=f.nextElementSibling).offsetParent;return F=e&&e.nodeName,F&&"BODY"!==F&&"HTML"!==F?-1!==["TH","TD","TABLE"].indexOf(e.nodeName)&&"static"===c(e,"position")?X(e):e:f?f.ownerDocument.documentElement:document.documentElement}function gf(f){return null!==f.parentNode?gf(f.parentNode):f}function eC(f,d){var e,F,g,eb;if(!(f&&f.nodeType&&d&&d.nodeType))return document.documentElement;var T=f.compareDocumentPosition(d)&Node.DOCUMENT_POSITION_FOLLOWING,c=T?f:d,P=T?d:f,dX=document.createRange();return(dX.setStart(c,0),dX.setEnd(P,0),g=dX.commonAncestorContainer,f!==g&&d!==g||c.contains(P))?"BODY"===(F=(e=g).nodeName)||"HTML"!==F&&X(e.firstElementChild)!==e?X(g):g:(eb=gf(f),eb.host?eC(eb.host,d):eC(f,gf(d).host))}function eD(f){var d="top"===(1<arguments.length&&void 0!==arguments[1]?arguments[1]:"top")?"scrollTop":"scrollLeft",e=f.nodeName,F;return"BODY"!==e&&"HTML"!==e?f[d]:(F=f.ownerDocument.documentElement,(f.ownerDocument.scrollingElement||F)[d])}function cS(f,d){var e="x"===d?"Left":"Top",F="Left"===e?"Right":"Bottom";return parseFloat(f["border"+e+"Width"],10)+parseFloat(f["border"+F+"Width"],10)}function a(f,d,e,F){return Math.max(d["offset"+f],d["scroll"+f],e["client"+f],e["offset"+f],e["scroll"+f],b(10)?parseInt(e["offset"+f])+parseInt(F["margin"+("Height"===f?"Top":"Left")])+parseInt(F["margin"+("Height"===f?"Bottom":"Right")]):0)}function D(f){var d=f.body,e=f.documentElement,F=b(10)&&getComputedStyle(e);return{height:a("Height",d,e,F),width:a("Width",d,e,F)}}function da(f){return vf({},f,{right:f.left+f.width,bottom:f.top+f.height})}function fT(f){var d={},e,F,g;try{b(10)?(d=f.getBoundingClientRect(),e=eD(f,"top"),F=eD(f,"left"),d.top+=e,d.left+=F,d.bottom+=e,d.right+=F):d=f.getBoundingClientRect()}catch(f){}var eb={left:d.left,top:d.top,width:d.right-d.left,height:d.bottom-d.top},T="HTML"===f.nodeName?D(f.ownerDocument):{},P=T.width||f.clientWidth||eb.right-eb.left,dX=T.height||f.clientHeight||eb.bottom-eb.top,X=f.offsetWidth-P,gf=f.offsetHeight-dX;return(X||gf)&&(g=c(f),X-=cS(g,"x"),gf-=cS(g,"y"),eb.width-=X,eb.height-=gf),da(eb)}function eT(f,d){var e=2<arguments.length&&void 0!==arguments[2]&&arguments[2],F=b(10),g="HTML"===d.nodeName,eb=fT(f),T=fT(d),P=dX(f),X=c(d),gf=parseFloat(X.borderTopWidth,10),eC=parseFloat(X.borderLeftWidth,10),cS,a,D;return e&&g&&(T.top=Math.max(T.top,0),T.left=Math.max(T.left,0)),cS=da({top:eb.top-T.top-gf,left:eb.left-T.left-eC,width:eb.width,height:eb.height}),(cS.marginTop=0,cS.marginLeft=0,!F&&g)&&(a=parseFloat(X.marginTop,10),D=parseFloat(X.marginLeft,10),cS.top-=gf-a,cS.bottom-=gf-a,cS.left-=eC-D,cS.right-=eC-D,cS.marginTop=a,cS.marginLeft=D),(F&&!e?d.contains(P):d===P&&"BODY"!==P.nodeName)&&(cS=function(f,d){var e=2<arguments.length&&void 0!==arguments[2]&&arguments[2],F=eD(d,"top"),g=eD(d,"left"),eb=e?-1:1;return f.top+=F*eb,f.bottom+=F*eb,f.left+=g*eb,f.right+=g*eb,f}(cS,d)),cS}function eR(f){if(!f||!f.parentElement||b())return document.documentElement;for(var d=f.parentElement;d&&"none"===c(d,"transform");)d=d.parentElement;return d||document.documentElement}function gG(f,d,e,F){var g=4<arguments.length&&void 0!==arguments[4]&&arguments[4],eb={top:0,left:0},T=g?eR(f):eC(f,d),b,X,gf;if("viewport"===F)eb=function(f){var d=1<arguments.length&&void 0!==arguments[1]&&arguments[1],e=f.ownerDocument.documentElement,F=eT(f,e),g=Math.max(e.clientWidth,window.innerWidth||0),eb=Math.max(e.clientHeight,window.innerHeight||0),T=d?0:eD(e),c=d?0:eD(e,"left");return da({top:T-F.top+F.marginTop,left:c-F.left+F.marginLeft,width:g,height:eb})}(T,g);else if(b=void 0,"scrollParent"===F?"BODY"===(b=dX(P(d))).nodeName&&(b=f.ownerDocument.documentElement):b="window"===F?f.ownerDocument.documentElement:F,X=eT(b,T,g),"HTML"!==b.nodeName||function f(d){var e=d.nodeName,F;return"BODY"===e||"HTML"===e?!1:"fixed"===c(d,"position")?!0:(F=P(d),!!F&&f(F))}(T))eb=X;else{var cS=D(f.ownerDocument),a=cS.height,fT=cS.width;eb.top+=X.top-X.marginTop;eb.bottom=a+X.top;eb.left+=X.left-X.marginLeft;eb.right=fT+X.left}return gf="number"==typeof(e=e||0),eb.left+=gf?e:e.left||0,eb.top+=gf?e:e.top||0,eb.right-=gf?e:e.right||0,eb.bottom-=gf?e:e.bottom||0,eb}function cT(f,d,e,F,g){var eb=5<arguments.length&&void 0!==arguments[5]?arguments[5]:0;if(-1===f.indexOf("auto"))return f;var T=gG(e,F,eb,g),c={top:{width:T.width,height:d.top-T.top},right:{width:T.right-d.right,height:T.height},bottom:{width:T.width,height:T.bottom-d.bottom},left:{width:d.left-T.left,height:T.height}},P=Object.keys(c).map(function(f){return vf({key:f},c[f],{area:(d=c[f],d.width*d.height)});var d}).sort(function(f,d){return d.area-f.area}),dX=P.filter(function(f){var d=f.width,F=f.height;return d>=e.clientWidth&&F>=e.clientHeight}),b=0<dX.length?dX[0].key:P[0].key,X=f.split("-")[1];return b+(X?"-"+X:"")}function eA(f,d,e){var F=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return eT(e,F?eR(d):eC(d,e),F)}function cH(f){var d=f.ownerDocument.defaultView.getComputedStyle(f),e=parseFloat(d.marginTop||0)+parseFloat(d.marginBottom||0),F=parseFloat(d.marginLeft||0)+parseFloat(d.marginRight||0);return{width:f.offsetWidth+F,height:f.offsetHeight+e}}function dg(f){var d={left:"right",right:"left",bottom:"top",top:"bottom"};return f.replace(/left|right|bottom|top/g,function(f){return d[f]})}function cg(f,d,e){e=e.split("-")[0];var F=cH(f),g={width:F.width,height:F.height},eb=-1!==["right","left"].indexOf(e),T=eb?"top":"left",c=eb?"left":"top",P=eb?"height":"width",dX=eb?"width":"height";return g[T]=d[T]+d[P]/2-F[P]/2,g[c]=e===c?d[c]-F[dX]:d[dg(c)],g}function cSb(f,d){return Array.prototype.find?f.find(d):f.filter(d)[0]}function W(f,d,e){return(void 0===e?f:f.slice(0,function(f,d,e){if(Array.prototype.findIndex)return f.findIndex(function(f){return f[d]===e});var F=cSb(f,function(f){return f[d]===e});return f.indexOf(F)}(f,"name",e))).forEach(function(f){f.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var e=f.function||f.fn;f.enabled&&T(e)&&(d.offsets.popper=da(d.offsets.popper),d.offsets.reference=da(d.offsets.reference),d=e(d,f))}),d}function ec(f,d){return f.some(function(f){var e=f.name;return f.enabled&&e===d})}function bA(f){for(var d,e,F=[!1,"ms","Webkit","Moz","O"],g=f.charAt(0).toUpperCase()+f.slice(1),eb=0;eb<F.length;eb++)if(d=F[eb],e=d?""+d+g:f,"undefined"!=typeof document.body.style[e])return e;return null}function h(f){var d=f.ownerDocument;return d?d.defaultView:window}function i(f,d,e,F){e.updateBound=F;h(f).addEventListener("resize",e.updateBound,{passive:!0});var g=dX(f);return function f(d,e,F,g){var eb="BODY"===d.nodeName,T=eb?d.ownerDocument.defaultView:d;T.addEventListener(e,F,{passive:!0});eb||f(dX(T.parentNode),e,F,g);g.push(T)}(g,"scroll",e.updateBound,e.scrollParents),e.scrollElement=g,e.eventsEnabled=!0,e}function j(){var f,d;this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=(f=this.reference,d=this.state,h(f).removeEventListener("resize",d.updateBound),d.scrollParents.forEach(function(f){f.removeEventListener("scroll",d.updateBound)}),d.updateBound=null,d.scrollParents=[],d.scrollElement=null,d.eventsEnabled=!1,d))}function k(f){return""!==f&&!isNaN(parseFloat(f))&&isFinite(f)}function l(f,d){Object.keys(d).forEach(function(e){var F="";-1!==["width","height","top","right","bottom","left"].indexOf(e)&&k(d[e])&&(F="px");f.style[e]=d[e]+F})}function m(f,d,e){var F=cSb(f,function(f){return f.name===d}),g=!!F&&f.some(function(f){return f.name===e&&f.enabled&&f.order<F.order}),eb,T;return g||(eb="`"+d+"`",T="`"+e+"`",console.warn(T+" modifier is required by "+eb+" modifier in order to work, be sure to include it before "+eb+"!")),g}function n(f){var d=1<arguments.length&&void 0!==arguments[1]&&arguments[1],e=x.indexOf(f),F=x.slice(e+1).concat(x.slice(0,e));return d?F.reverse():F}function o(f,d,e,F){var g=[0,0],eb=-1!==["right","left"].indexOf(F),T=f.split(/(\+|\-)/).map(function(f){return f.trim()}),c=T.indexOf(cSb(T,function(f){return-1!==f.search(/,|\s/)})),P,dX;return T[c]&&-1===T[c].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead."),P=/\s*,\s*|\s+/,dX=-1!==c?[T.slice(0,c).concat([T[c].split(P)[0]]),[T[c].split(P)[1]].concat(T.slice(c+1))]:[T],(dX=dX.map(function(f,F){var g=(1===F?!eb:eb)?"height":"width",T=!1;return f.reduce(function(f,d){return""===f[f.length-1]&&-1!==["+","-"].indexOf(d)?(f[f.length-1]=d,T=!0,f):T?(f[f.length-1]+=d,T=!1,f):f.concat(d)},[]).map(function(f){return function(f,d,e,F){var g=f.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),eb=+g[1],T=g[2],c;if(!eb)return f;if(0!==T.indexOf("%"))return"vh"!==T&&"vw"!==T?eb:("vh"===T?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*eb;c=void 0;switch(T){case"%p":c=e;break;case"%":case"%r":default:c=F}return da(c)[d]/100*eb}(f,g,d,e)})})).forEach(function(f,d){f.forEach(function(e,F){k(e)&&(g[d]+=e*("-"===f[F-1]?-1:1))})}),g}function p(f,d,e){if(0===f.length)return f;if(e&&"function"==typeof e)return e(f);for(var F=(new window.DOMParser).parseFromString(f,"text/html"),g=Object.keys(d),eb=[].slice.call(F.body.querySelectorAll("*")),T=function(f){var e=eb[f],F=e.nodeName.toLowerCase(),T,c;if(-1===g.indexOf(e.nodeName.toLowerCase()))return e.parentNode.removeChild(e),"continue";T=[].slice.call(e.attributes);c=[].concat(d["*"]||[],d[F]||[]);T.forEach(function(f){(function(f,d){var e=f.nodeName.toLowerCase();if(-1!==d.indexOf(e))return-1===gd.indexOf(e)||Boolean(f.nodeValue.match(ebd)||f.nodeValue.match(Td));for(var F=d.filter(function(f){return f instanceof RegExp}),g=0,eb=F.length;g<eb;g++)if(e.match(F[g]))return!0;return!1})(f,c)||e.removeAttribute(f.nodeName)})},c=0,P=eb.length;c<P;c++)T(c);return F.body.innerHTML}var q,r,s,t,u,v,w,x,y,z;d=d&&d.hasOwnProperty("default")?d.default:d;q="transitionend";r={TRANSITION_END:"bsTransitionEnd",getUID:function(f){for(;f+=~~(1e6*Math.random()),document.getElementById(f););return f},getSelectorFromElement:function(f){var d=f.getAttribute("data-target"),e;d&&"#"!==d||(e=f.getAttribute("href"),d=e&&"#"!==e?e.trim():"");try{return document.querySelector(d)?d:null}catch(f){return null}},getTransitionDurationFromElement:function(f){if(!f)return 0;var e=d(f).css("transition-duration"),F=d(f).css("transition-delay"),g=parseFloat(e),eb=parseFloat(F);return g||eb?(e=e.split(",")[0],F=F.split(",")[0],1e3*(parseFloat(e)+parseFloat(F))):0},reflow:function(f){return f.offsetHeight},triggerTransitionEnd:function(f){d(f).trigger(q)},supportsTransitionEnd:function(){return Boolean(q)},isElement:function(f){return(f[0]||f).nodeType},typeCheckConfig:function(f,d,e){var F,g;for(F in e)if(Object.prototype.hasOwnProperty.call(e,F)){var eb=e[F],T=d[F],c=T&&r.isElement(T)?"element":(g=T,{}.toString.call(g).match(/\s([a-z]+)/i)[1].toLowerCase());if(!new RegExp(eb).test(c))throw new Error(f.toUpperCase()+': Option "'+F+'" provided type "'+c+'" but expected type "'+eb+'".')}},findShadowRoot:function(f){if(!document.documentElement.attachShadow)return null;if("function"!=typeof f.getRootNode)return f instanceof ShadowRoot?f:f.parentNode?r.findShadowRoot(f.parentNode):null;var d=f.getRootNode();return d instanceof ShadowRoot?d:null}};d.fn.emulateTransitionEnd=eb;d.event.special[r.TRANSITION_END]={bindType:q,delegateType:q,handle:function(f){if(d(f.target).is(this))return f.handleObj.handler.apply(this,arguments)}};var A="button",B="bs.button",C="."+B,E=".data-api",G=d.fn[A],H="active",I="btn",J="focus",K='[data-toggle^="button"]',L='[data-toggle="buttons"]',M='input:not([type="hidden"])',N=".active",O=".btn",Q={CLICK_DATA_API:"click"+C+E,FOCUS_BLUR_DATA_API:"focus"+C+E+" blur"+C+E},R=function(){function f(f){this._element=f}var e=f.prototype;return e.toggle=function(){var f=!0,e=!0,F=d(this._element).closest(L)[0],g,eb;if(F&&(g=this._element.querySelector(M),g)){if("radio"===g.type&&(g.checked&&this._element.classList.contains(H)?f=!1:(eb=F.querySelector(N),eb&&d(eb).removeClass(H))),f){if(g.hasAttribute("disabled")||F.hasAttribute("disabled")||g.classList.contains("disabled")||F.classList.contains("disabled"))return;g.checked=!this._element.classList.contains(H);d(g).trigger("change")}g.focus();e=!1}e&&this._element.setAttribute("aria-pressed",!this._element.classList.contains(H));f&&d(this._element).toggleClass(H)},e.dispose=function(){d.removeData(this._element,B);this._element=null},f._jQueryInterface=function(e){return this.each(function(){var F=d(this).data(B);F||(F=new f(this),d(this).data(B,F));"toggle"===e&&F[e]()})},F(f,null,[{key:"VERSION",get:function(){return"4.3.1"}}]),f}();d(document).on(Q.CLICK_DATA_API,K,function(f){f.preventDefault();var e=f.target;d(e).hasClass(I)||(e=d(e).closest(O));R._jQueryInterface.call(d(e),"toggle")}).on(Q.FOCUS_BLUR_DATA_API,K,function(f){var e=d(f.target).closest(O)[0];d(e).toggleClass(J,/^focus(in)?$/.test(f.type))});d.fn[A]=R._jQueryInterface;d.fn[A].Constructor=R;d.fn[A].noConflict=function(){return d.fn[A]=G,R._jQueryInterface};var S="carousel",U="bs.carousel",V="."+U,Y=".data-api",Z=d.fn[S],$={interval:5e3,keyboard:!0,slide:!1,pause:"hover",wrap:!0,touch:!0},_={interval:"(number|boolean)",keyboard:"boolean",slide:"(boolean|string)",pause:"(string|boolean)",wrap:"boolean",touch:"boolean"},ff="next",df="prev",ef="left",Ff="right",ebf={SLIDE:"slide"+V,SLID:"slid"+V,KEYDOWN:"keydown"+V,MOUSEENTER:"mouseenter"+V,MOUSELEAVE:"mouseleave"+V,TOUCHSTART:"touchstart"+V,TOUCHMOVE:"touchmove"+V,TOUCHEND:"touchend"+V,POINTERDOWN:"pointerdown"+V,POINTERUP:"pointerup"+V,DRAG_START:"dragstart"+V,LOAD_DATA_API:"load"+V+Y,CLICK_DATA_API:"click"+V+Y},Tf="carousel",cf="active",Pf="slide",dXf="carousel-item-right",bf="carousel-item-left",Xf="carousel-item-next",gff="carousel-item-prev",eCf="pointer-event",eDf=".active",cSf=".active.carousel-item",af=".carousel-item",Df=".carousel-item img",daf=".carousel-item-next, .carousel-item-prev",fTf=".carousel-indicators",eTf='[data-ride="carousel"]',eRf={TOUCH:"touch",PEN:"pen"},gGf=function(){function f(f,d){this._items=null;this._interval=null;this._activeElement=null;this._isPaused=!1;this._isSliding=!1;this.touchTimeout=null;this.touchStartX=0;this.touchDeltaX=0;this._config=this._getConfig(d);this._element=f;this._indicatorsElement=this._element.querySelector(fTf);this._touchSupported="ontouchstart"in document.documentElement||0<navigator.maxTouchPoints;this._pointerEvent=Boolean(window.PointerEvent||window.MSPointerEvent);this._addEventListeners()}var e=f.prototype;return e.next=function(){this._isSliding||this._slide(ff)},e.nextWhenVisible=function(){!document.hidden&&d(this._element).is(":visible")&&"hidden"!==d(this._element).css("visibility")&&this.next()},e.prev=function(){this._isSliding||this._slide(df)},e.pause=function(f){f||(this._isPaused=!0);this._element.querySelector(daf)&&(r.triggerTransitionEnd(this._element),this.cycle(!0));clearInterval(this._interval);this._interval=null},e.cycle=function(f){f||(this._isPaused=!1);this._interval&&(clearInterval(this._interval),this._interval=null);this._config.interval&&!this._isPaused&&(this._interval=setInterval((document.visibilityState?this.nextWhenVisible:this.next).bind(this),this._config.interval))},e.to=function(f){var e=this,F,g;if(this._activeElement=this._element.querySelector(cSf),F=this._getItemIndex(this._activeElement),!(f>this._items.length-1||f<0))if(this._isSliding)d(this._element).one(ebf.SLID,function(){return e.to(f)});else{if(F===f)return this.pause(),void this.cycle();g=F<f?ff:df;this._slide(g,this._items[f])}},e.dispose=function(){d(this._element).off(V);d.removeData(this._element,U);this._items=null;this._config=null;this._element=null;this._interval=null;this._isPaused=null;this._isSliding=null;this._activeElement=null;this._indicatorsElement=null},e._getConfig=function(f){return f=g({},$,f),r.typeCheckConfig(S,f,_),f},e._handleSwipe=function(){var f=Math.abs(this.touchDeltaX),d;f<=40||(d=f/this.touchDeltaX,0<d&&this.prev(),d<0&&this.next())},e._addEventListeners=function(){var f=this;this._config.keyboard&&d(this._element).on(ebf.KEYDOWN,function(d){return f._keydown(d)});"hover"===this._config.pause&&d(this._element).on(ebf.MOUSEENTER,function(d){return f.pause(d)}).on(ebf.MOUSELEAVE,function(d){return f.cycle(d)});this._config.touch&&this._addTouchEventListeners()},e._addTouchEventListeners=function(){var f=this,e,F;this._touchSupported&&(e=function(d){f._pointerEvent&&eRf[d.originalEvent.pointerType.toUpperCase()]?f.touchStartX=d.originalEvent.clientX:f._pointerEvent||(f.touchStartX=d.originalEvent.touches[0].clientX)},F=function(d){f._pointerEvent&&eRf[d.originalEvent.pointerType.toUpperCase()]&&(f.touchDeltaX=d.originalEvent.clientX-f.touchStartX);f._handleSwipe();"hover"===f._config.pause&&(f.pause(),f.touchTimeout&&clearTimeout(f.touchTimeout),f.touchTimeout=setTimeout(function(d){return f.cycle(d)},500+f._config.interval))},d(this._element.querySelectorAll(Df)).on(ebf.DRAG_START,function(f){return f.preventDefault()}),this._pointerEvent?(d(this._element).on(ebf.POINTERDOWN,function(f){return e(f)}),d(this._element).on(ebf.POINTERUP,function(f){return F(f)}),this._element.classList.add(eCf)):(d(this._element).on(ebf.TOUCHSTART,function(f){return e(f)}),d(this._element).on(ebf.TOUCHMOVE,function(d){var e;f.touchDeltaX=(e=d).originalEvent.touches&&1<e.originalEvent.touches.length?0:e.originalEvent.touches[0].clientX-f.touchStartX}),d(this._element).on(ebf.TOUCHEND,function(f){return F(f)})))},e._keydown=function(f){if(!/input|textarea/i.test(f.target.tagName))switch(f.which){case 37:f.preventDefault();this.prev();break;case 39:f.preventDefault();this.next()}},e._getItemIndex=function(f){return this._items=f&&f.parentNode?[].slice.call(f.parentNode.querySelectorAll(af)):[],this._items.indexOf(f)},e._getItemByDirection=function(f,d){var e=f===ff,F=f===df,g=this._getItemIndex(d),eb=this._items.length-1,T;return(F&&0===g||e&&g===eb)&&!this._config.wrap?d:(T=(g+(f===df?-1:1))%this._items.length,-1===T?this._items[this._items.length-1]:this._items[T])},e._triggerSlideEvent=function(f,e){var F=this._getItemIndex(f),g=this._getItemIndex(this._element.querySelector(cSf)),eb=d.Event(ebf.SLIDE,{relatedTarget:f,direction:e,from:g,to:F});return d(this._element).trigger(eb),eb},e._setActiveIndicatorElement=function(f){var e,F;this._indicatorsElement&&(e=[].slice.call(this._indicatorsElement.querySelectorAll(eDf)),d(e).removeClass(cf),F=this._indicatorsElement.children[this._getItemIndex(f)],F&&d(F).addClass(cf))},e._slide=function(f,e){var F,g,eb,T=this,c=this._element.querySelector(cSf),P=this._getItemIndex(c),dX=e||c&&this._getItemByDirection(f,c),b=this._getItemIndex(dX),X=Boolean(this._interval),gf,eC,eD;(eb=f===ff?(F=bf,g=Xf,ef):(F=dXf,g=gff,Ff),dX&&d(dX).hasClass(cf))?this._isSliding=!1:!this._triggerSlideEvent(dX,eb).isDefaultPrevented()&&c&&dX&&(this._isSliding=!0,X&&this.pause(),this._setActiveIndicatorElement(dX),gf=d.Event(ebf.SLID,{relatedTarget:dX,direction:eb,from:P,to:b}),d(this._element).hasClass(Pf)?(d(dX).addClass(g),r.reflow(dX),d(c).addClass(F),d(dX).addClass(F),eC=parseInt(dX.getAttribute("data-interval"),10),this._config.interval=eC?(this._config.defaultInterval=this._config.defaultInterval||this._config.interval,eC):this._config.defaultInterval||this._config.interval,eD=r.getTransitionDurationFromElement(c),d(c).one(r.TRANSITION_END,function(){d(dX).removeClass(F+" "+g).addClass(cf);d(c).removeClass(cf+" "+g+" "+F);T._isSliding=!1;setTimeout(function(){return d(T._element).trigger(gf)},0)}).emulateTransitionEnd(eD)):(d(c).removeClass(cf),d(dX).addClass(cf),this._isSliding=!1,d(this._element).trigger(gf)),X&&this.cycle())},f._jQueryInterface=function(e){return this.each(function(){var F=d(this).data(U),eb=g({},$,d(this).data()),T;if("object"==typeof e&&(eb=g({},eb,e)),T="string"==typeof e?e:eb.slide,F||(F=new f(this,eb),d(this).data(U,F)),"number"==typeof e)F.to(e);else if("string"==typeof T){if("undefined"==typeof F[T])throw new TypeError('No method named "'+T+'"');F[T]()}else eb.interval&&eb.ride&&(F.pause(),F.cycle())})},f._dataApiClickHandler=function(e){var F=r.getSelectorFromElement(this),eb,T,c;F&&(eb=d(F)[0],eb&&d(eb).hasClass(Tf)&&(T=g({},d(eb).data(),d(this).data()),c=this.getAttribute("data-slide-to"),c&&(T.interval=!1),f._jQueryInterface.call(d(eb),T),c&&d(eb).data(U).to(c),e.preventDefault()))},F(f,null,[{key:"VERSION",get:function(){return"4.3.1"}},{key:"Default",get:function(){return $}}]),f}();d(document).on(ebf.CLICK_DATA_API,"[data-slide], [data-slide-to]",gGf._dataApiClickHandler);d(window).on(ebf.LOAD_DATA_API,function(){for(var f,e=[].slice.call(document.querySelectorAll(eTf)),F=0,g=e.length;F<g;F++)f=d(e[F]),gGf._jQueryInterface.call(f,f.data())});d.fn[S]=gGf._jQueryInterface;d.fn[S].Constructor=gGf;d.fn[S].noConflict=function(){return d.fn[S]=Z,gGf._jQueryInterface};var cTf="collapse",eAf="bs.collapse",cHf="."+eAf,dgf=d.fn[cTf],cgf={toggle:!0,parent:""},cSbf={toggle:"boolean",parent:"(string|element)"},Wf={SHOW:"show"+cHf,SHOWN:"shown"+cHf,HIDE:"hide"+cHf,HIDDEN:"hidden"+cHf,CLICK_DATA_API:"click"+cHf+".data-api"},ecf="show",bAf="collapse",hf="collapsing",jf="collapsed",kf="width",lf="height",mf=".show, .collapsing",nf='[data-toggle="collapse"]',of=function(){function f(f,d){this._isTransitioning=!1;this._element=f;this._config=this._getConfig(d);this._triggerArray=[].slice.call(document.querySelectorAll('[data-toggle="collapse"][href="#'+f.id+'"],[data-toggle="collapse"][data-target="#'+f.id+'"]'));for(var e=[].slice.call(document.querySelectorAll(nf)),F=0,g=e.length;F<g;F++){var eb=e[F],T=r.getSelectorFromElement(eb),c=[].slice.call(document.querySelectorAll(T)).filter(function(d){return d===f});null!==T&&0<c.length&&(this._selector=T,this._triggerArray.push(eb))}this._parent=this._config.parent?this._getParent():null;this._config.parent||this._addAriaAndCollapsedClass(this._element,this._triggerArray);this._config.toggle&&this.toggle()}var e=f.prototype;return e.toggle=function(){d(this._element).hasClass(ecf)?this.hide():this.show()},e.show=function(){var e,F,g=this,eb,T,c,P;this._isTransitioning||d(this._element).hasClass(ecf)||(this._parent&&0===(e=[].slice.call(this._parent.querySelectorAll(mf)).filter(function(f){return"string"==typeof g._config.parent?f.getAttribute("data-parent")===g._config.parent:f.classList.contains(bAf)})).length&&(e=null),e&&(F=d(e).not(this._selector).data(eAf))&&F._isTransitioning)||(eb=d.Event(Wf.SHOW),(d(this._element).trigger(eb),eb.isDefaultPrevented())||(e&&(f._jQueryInterface.call(d(e).not(this._selector),"hide"),F||d(e).data(eAf,null)),T=this._getDimension(),d(this._element).removeClass(bAf).addClass(hf),this._element.style[T]=0,this._triggerArray.length&&d(this._triggerArray).removeClass(jf).attr("aria-expanded",!0),this.setTransitioning(!0),c="scroll"+(T[0].toUpperCase()+T.slice(1)),P=r.getTransitionDurationFromElement(this._element),d(this._element).one(r.TRANSITION_END,function(){d(g._element).removeClass(hf).addClass(bAf).addClass(ecf);g._element.style[T]="";g.setTransitioning(!1);d(g._element).trigger(Wf.SHOWN)}).emulateTransitionEnd(P),this._element.style[T]=this._element[c]+"px"))},e.hide=function(){var f=this,e,F,g,eb,T,c,P;if(!this._isTransitioning&&d(this._element).hasClass(ecf)&&(e=d.Event(Wf.HIDE),d(this._element).trigger(e),!e.isDefaultPrevented())){if(F=this._getDimension(),this._element.style[F]=this._element.getBoundingClientRect()[F]+"px",r.reflow(this._element),d(this._element).addClass(hf).removeClass(bAf).removeClass(ecf),g=this._triggerArray.length,0<g)for(eb=0;eb<g;eb++)T=this._triggerArray[eb],c=r.getSelectorFromElement(T),null!==c&&(d([].slice.call(document.querySelectorAll(c))).hasClass(ecf)||d(T).addClass(jf).attr("aria-expanded",!1));this.setTransitioning(!0);this._element.style[F]="";P=r.getTransitionDurationFromElement(this._element);d(this._element).one(r.TRANSITION_END,function(){f.setTransitioning(!1);d(f._element).removeClass(hf).addClass(bAf).trigger(Wf.HIDDEN)}).emulateTransitionEnd(P)}},e.setTransitioning=function(f){this._isTransitioning=f},e.dispose=function(){d.removeData(this._element,eAf);this._config=null;this._parent=null;this._element=null;this._triggerArray=null;this._isTransitioning=null},e._getConfig=function(f){return(f=g({},cgf,f)).toggle=Boolean(f.toggle),r.typeCheckConfig(cTf,f,cSbf),f},e._getDimension=function(){return d(this._element).hasClass(kf)?kf:lf},e._getParent=function(){var e,F=this,g,eb;return r.isElement(this._config.parent)?(e=this._config.parent,"undefined"!=typeof this._config.parent.jquery&&(e=this._config.parent[0])):e=document.querySelector(this._config.parent),g='[data-toggle="collapse"][data-parent="'+this._config.parent+'"]',eb=[].slice.call(e.querySelectorAll(g)),d(eb).each(function(d,e){F._addAriaAndCollapsedClass(f._getTargetFromElement(e),[e])}),e},e._addAriaAndCollapsedClass=function(f,e){var F=d(f).hasClass(ecf);e.length&&d(e).toggleClass(jf,!F).attr("aria-expanded",F)},f._getTargetFromElement=function(f){var d=r.getSelectorFromElement(f);return d?document.querySelector(d):null},f._jQueryInterface=function(e){return this.each(function(){var F=d(this),eb=F.data(eAf),T=g({},cgf,F.data(),"object"==typeof e&&e?e:{});if(!eb&&T.toggle&&/show|hide/.test(e)&&(T.toggle=!1),eb||(eb=new f(this,T),F.data(eAf,eb)),"string"==typeof e){if("undefined"==typeof eb[e])throw new TypeError('No method named "'+e+'"');eb[e]()}})},F(f,null,[{key:"VERSION",get:function(){return"4.3.1"}},{key:"Default",get:function(){return cgf}}]),f}();d(document).on(Wf.CLICK_DATA_API,nf,function(f){"A"===f.currentTarget.tagName&&f.preventDefault();var e=d(this),F=r.getSelectorFromElement(this),g=[].slice.call(document.querySelectorAll(F));d(g).each(function(){var f=d(this),F=f.data(eAf)?"toggle":e.data();of._jQueryInterface.call(f,F)})});d.fn[cTf]=of._jQueryInterface;d.fn[cTf].Constructor=of;d.fn[cTf].noConflict=function(){return d.fn[cTf]=dgf,of._jQueryInterface};for(var pf="undefined"!=typeof window&&"undefined"!=typeof document,qf=["Edge","Trident","Firefox"],rf=0,sf=0;sf<qf.length;sf+=1)if(pf&&0<=navigator.userAgent.indexOf(qf[sf])){rf=1;break}s=pf&&window.Promise?function(f){var d=!1;return function(){d||(d=!0,window.Promise.resolve().then(function(){d=!1;f()}))}}:function(f){var d=!1;return function(){d||(d=!0,setTimeout(function(){d=!1;f()},rf))}};t=pf&&!(!window.MSInputMethodContext||!document.documentMode);u=pf&&/MSIE 10/.test(navigator.userAgent);var tf=function(){function f(f,d){for(var e,F=0;F<d.length;F++)e=d[F],e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(f,e.key,e)}return function(d,e,F){return e&&f(d.prototype,e),F&&f(d,F),d}}(),uf=function(f,d,e){return d in f?Object.defineProperty(f,d,{value:e,enumerable:!0,configurable:!0,writable:!0}):f[d]=e,f},vf=Object.assign||function(f){for(var d,e,F=1;F<arguments.length;F++){d=arguments[F];for(e in d)Object.prototype.hasOwnProperty.call(d,e)&&(f[e]=d[e])}return f};v=pf&&/Firefox/i.test(navigator.userAgent);w=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"];x=w.slice(3);var wf="flip",xf="clockwise",yf="counterclockwise";y={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:{shift:{order:100,enabled:!0,fn:function(f){var d=f.placement,e=d.split("-")[0],F=d.split("-")[1];if(F){var g=f.offsets,eb=g.reference,T=g.popper,c=-1!==["bottom","top"].indexOf(e),P=c?"left":"top",dX=c?"width":"height",b={start:uf({},P,eb[P]),end:uf({},P,eb[P]+eb[dX]-T[dX])};f.offsets.popper=vf({},T,b[F])}return f}},offset:{order:200,enabled:!0,fn:function(f,d){var e=d.offset,F=f.placement,g=f.offsets,eb=g.popper,T=g.reference,c=F.split("-")[0],P=void 0;return P=k(+e)?[+e,0]:o(e,eb,T,c),"left"===c?(eb.top+=P[0],eb.left-=P[1]):"right"===c?(eb.top+=P[0],eb.left+=P[1]):"top"===c?(eb.left+=P[0],eb.top-=P[1]):"bottom"===c&&(eb.left+=P[0],eb.top+=P[1]),f.popper=eb,f},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(f,d){var e=d.boundariesElement||X(f.instance.popper),F;f.instance.reference===e&&(e=X(e));var g=bA("transform"),eb=f.instance.popper.style,T=eb.top,c=eb.left,P=eb[g];eb.top="";eb.left="";eb[g]="";F=gG(f.instance.popper,f.instance.reference,d.padding,e,f.positionFixed);eb.top=T;eb.left=c;eb[g]=P;d.boundaries=F;var dX=d.priority,b=f.offsets.popper,gf={primary:function(f){var e=b[f];return b[f]<F[f]&&!d.escapeWithReference&&(e=Math.max(b[f],F[f])),uf({},f,e)},secondary:function(f){var e="right"===f?"left":"top",g=b[e];return b[f]>F[f]&&!d.escapeWithReference&&(g=Math.min(b[e],F[f]-("right"===f?b.width:b.height))),uf({},e,g)}};return dX.forEach(function(f){var d=-1!==["left","top"].indexOf(f)?"primary":"secondary";b=vf({},b,gf[d](f))}),f.offsets.popper=b,f},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(f){var d=f.offsets,e=d.popper,F=d.reference,g=f.placement.split("-")[0],eb=Math.floor,T=-1!==["top","bottom"].indexOf(g),c=T?"right":"bottom",P=T?"left":"top",dX=T?"width":"height";return e[c]<eb(F[P])&&(f.offsets.popper[P]=eb(F[P])-e[dX]),e[P]>eb(F[c])&&(f.offsets.popper[P]=eb(F[c])),f}},arrow:{order:500,enabled:!0,fn:function(f,d){var e,F;if(!m(f.instance.modifiers,"arrow","keepTogether"))return f;if(F=d.element,"string"==typeof F){if(!(F=f.instance.popper.querySelector(F)))return f}else if(!f.instance.popper.contains(F))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),f;var g=f.placement.split("-")[0],eb=f.offsets,T=eb.popper,P=eb.reference,dX=-1!==["left","right"].indexOf(g),b=dX?"height":"width",X=dX?"Top":"Left",gf=X.toLowerCase(),eC=dX?"left":"top",eD=dX?"bottom":"right",cS=cH(F)[b];P[eD]-cS<T[gf]&&(f.offsets.popper[gf]-=T[gf]-(P[eD]-cS));P[gf]+cS>T[eD]&&(f.offsets.popper[gf]+=P[gf]+cS-T[eD]);f.offsets.popper=da(f.offsets.popper);var a=P[gf]+P[b]/2-cS/2,D=c(f.instance.popper),fT=parseFloat(D["margin"+X],10),eT=parseFloat(D["border"+X+"Width"],10),eR=a-f.offsets.popper[gf]-fT-eT;return eR=Math.max(Math.min(T[b]-cS,eR),0),f.arrowElement=F,f.offsets.arrow=(uf(e={},gf,Math.round(eR)),uf(e,eC,""),e),f},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(f,d){if(ec(f.instance.modifiers,"inner")||f.flipped&&f.placement===f.originalPlacement)return f;var e=gG(f.instance.popper,f.instance.reference,d.padding,d.boundariesElement,f.positionFixed),F=f.placement.split("-")[0],g=dg(F),eb=f.placement.split("-")[1]||"",T=[];switch(d.behavior){case wf:T=[F,g];break;case xf:T=n(F);break;case yf:T=n(F,!0);break;default:T=d.behavior}return T.forEach(function(c,P){if(F!==c||T.length===P+1)return f;F=f.placement.split("-")[0];g=dg(F);var dX,b=f.offsets.popper,X=f.offsets.reference,gf=Math.floor,eC="left"===F&&gf(b.right)>gf(X.left)||"right"===F&&gf(b.left)<gf(X.right)||"top"===F&&gf(b.bottom)>gf(X.top)||"bottom"===F&&gf(b.top)<gf(X.bottom),eD=gf(b.left)<gf(e.left),cS=gf(b.right)>gf(e.right),a=gf(b.top)<gf(e.top),D=gf(b.bottom)>gf(e.bottom),da="left"===F&&eD||"right"===F&&cS||"top"===F&&a||"bottom"===F&&D,fT=-1!==["top","bottom"].indexOf(F),eT=!!d.flipVariations&&(fT&&"start"===eb&&eD||fT&&"end"===eb&&cS||!fT&&"start"===eb&&a||!fT&&"end"===eb&&D);(eC||da||eT)&&(f.flipped=!0,(eC||da)&&(F=T[P+1]),eT&&(eb="end"===(dX=eb)?"start":"start"===dX?"end":dX),f.placement=F+(eb?"-"+eb:""),f.offsets.popper=vf({},f.offsets.popper,cg(f.instance.popper,f.offsets.reference,f.placement)),f=W(f.instance.modifiers,f,"flip"))}),f},behavior:"flip",padding:5,boundariesElement:"viewport"},inner:{order:700,enabled:!1,fn:function(f){var d=f.placement,e=d.split("-")[0],F=f.offsets,g=F.popper,eb=F.reference,T=-1!==["left","right"].indexOf(e),c=-1===["top","left"].indexOf(e);return g[T?"left":"top"]=eb[e]-(c?g[T?"width":"height"]:0),f.placement=dg(d),f.offsets.popper=da(g),f}},hide:{order:800,enabled:!0,fn:function(f){if(!m(f.instance.modifiers,"hide","preventOverflow"))return f;var d=f.offsets.reference,e=cSb(f.instance.modifiers,function(f){return"preventOverflow"===f.name}).boundaries;if(d.bottom<e.top||d.left>e.right||d.top>e.bottom||d.right<e.left){if(!0===f.hide)return f;f.hide=!0;f.attributes["x-out-of-boundaries"]=""}else{if(!1===f.hide)return f;f.hide=!1;f.attributes["x-out-of-boundaries"]=!1}return f}},computeStyle:{order:850,enabled:!0,fn:function(f,d){var e=d.x,F=d.y,g=f.offsets.popper,eb=cSb(f.instance.modifiers,function(f){return"applyStyle"===f.name}).gpuAcceleration,T,c,P;void 0!==eb&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var dX,b,gf,eC,eD,cS,a,D,da,eT,eR,gG,cT,eA,cH=void 0!==eb?eb:d.gpuAcceleration,dg=X(f.instance.popper),cg=fT(dg),W={position:g.position},ec=(dX=f,b=window.devicePixelRatio<2||!v,gf=dX.offsets,eC=gf.popper,eD=gf.reference,cS=Math.round,a=Math.floor,D=function(f){return f},da=cS(eD.width),eT=cS(eC.width),eR=-1!==["left","right"].indexOf(dX.placement),gG=-1!==dX.placement.indexOf("-"),eA=b?cS:D,{left:(cT=b?eR||gG||da%2==eT%2?cS:a:D)(da%2==1&&eT%2==1&&!gG&&b?eC.left-1:eC.left),top:eA(eC.top),bottom:eA(eC.bottom),right:cT(eC.right)}),h="bottom"===e?"top":"bottom",i="right"===F?"left":"right",j=bA("transform"),k=void 0,l=void 0;return(l="bottom"===h?"HTML"===dg.nodeName?-dg.clientHeight+ec.bottom:-cg.height+ec.bottom:ec.top,k="right"===i?"HTML"===dg.nodeName?-dg.clientWidth+ec.right:-cg.width+ec.right:ec.left,cH&&j)?(W[j]="translate3d("+k+"px, "+l+"px, 0)",W[h]=0,W[i]=0,W.willChange="transform"):(T="bottom"===h?-1:1,c="right"===i?-1:1,W[h]=l*T,W[i]=k*c,W.willChange=h+", "+i),P={"x-placement":f.placement},f.attributes=vf({},P,f.attributes),f.styles=vf({},W,f.styles),f.arrowStyles=vf({},f.offsets.arrow,f.arrowStyles),f},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function(f){var d,e;return l(f.instance.popper,f.styles),d=f.instance.popper,e=f.attributes,Object.keys(e).forEach(function(f){!1!==e[f]?d.setAttribute(f,e[f]):d.removeAttribute(f)}),f.arrowElement&&Object.keys(f.arrowStyles).length&&l(f.arrowElement,f.arrowStyles),f},onLoad:function(f,d,e,F,g){var eb=eA(g,d,f,e.positionFixed),T=cT(e.placement,eb,d,f,e.modifiers.flip.boundariesElement,e.modifiers.flip.padding);return d.setAttribute("x-placement",T),l(d,{position:e.positionFixed?"fixed":"absolute"}),e},gpuAcceleration:void 0}}};z=function(){function f(d,e){var F=this,g=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{},eb;!function(f,d){if(!(f instanceof d))throw new TypeError("Cannot call a class as a function")}(this,f);this.scheduleUpdate=function(){return requestAnimationFrame(F.update)};this.update=s(this.update.bind(this));this.options=vf({},f.Defaults,g);this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]};this.reference=d&&d.jquery?d[0]:d;this.popper=e&&e.jquery?e[0]:e;this.options.modifiers={};Object.keys(vf({},f.Defaults.modifiers,g.modifiers)).forEach(function(d){F.options.modifiers[d]=vf({},f.Defaults.modifiers[d]||{},g.modifiers?g.modifiers[d]:{})});this.modifiers=Object.keys(this.options.modifiers).map(function(f){return vf({name:f},F.options.modifiers[f])}).sort(function(f,d){return f.order-d.order});this.modifiers.forEach(function(f){f.enabled&&T(f.onLoad)&&f.onLoad(F.reference,F.popper,F.options,f,F.state)});this.update();eb=this.options.eventsEnabled;eb&&this.enableEventListeners();this.state.eventsEnabled=eb}return tf(f,[{key:"update",value:function(){return function(){if(!this.state.isDestroyed){var f={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};f.offsets.reference=eA(this.state,this.popper,this.reference,this.options.positionFixed);f.placement=cT(this.options.placement,f.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding);f.originalPlacement=f.placement;f.positionFixed=this.options.positionFixed;f.offsets.popper=cg(this.popper,f.offsets.reference,f.placement);f.offsets.popper.position=this.options.positionFixed?"fixed":"absolute";f=W(this.modifiers,f);this.state.isCreated?this.options.onUpdate(f):(this.state.isCreated=!0,this.options.onCreate(f))}}.call(this)}},{key:"destroy",value:function(){return function(){return this.state.isDestroyed=!0,ec(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[bA("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}.call(this)}},{key:"enableEventListeners",value:function(){return function(){this.state.eventsEnabled||(this.state=i(this.reference,this.options,this.state,this.scheduleUpdate))}.call(this)}},{key:"disableEventListeners",value:function(){return j.call(this)}}]),f}();z.Utils=("undefined"!=typeof window?window:global).PopperUtils;z.placements=w;z.Defaults=y;var zf="dropdown",Af="bs.dropdown",Bf="."+Af,Cf=".data-api",Ef=d.fn[zf],Gf=new RegExp("38|40|27"),Hf={HIDE:"hide"+Bf,HIDDEN:"hidden"+Bf,SHOW:"show"+Bf,SHOWN:"shown"+Bf,CLICK:"click"+Bf,CLICK_DATA_API:"click"+Bf+Cf,KEYDOWN_DATA_API:"keydown"+Bf+Cf,KEYUP_DATA_API:"keyup"+Bf+Cf},If="disabled",Jf="show",Kf="dropup",Lf="dropright",Mf="dropleft",Nf="dropdown-menu-right",Of="position-static",Qf='[data-toggle="dropdown"]',Rf=".dropdown-menu",Sf=".navbar-nav",Uf=".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",Vf="top-start",Yf="top-end",Zf="bottom-start",$f="bottom-end",_f="right-start",fd="left-start",dd={offset:0,flip:!0,boundary:"scrollParent",reference:"toggle",display:"dynamic"},ed={offset:"(number|string|function)",flip:"boolean",boundary:"(string|element)",reference:"(string|element)",display:"string"},Fd=function(){function f(f,d){this._element=f;this._popper=null;this._config=this._getConfig(d);this._menu=this._getMenuElement();this._inNavbar=this._detectNavbar();this._addEventListeners()}var e=f.prototype;return e.toggle=function(){var e,F,g,eb,T;if(!this._element.disabled&&!d(this._element).hasClass(If)&&(e=f._getParentFromElement(this._element),F=d(this._menu).hasClass(Jf),(f._clearMenus(),!F)&&(g={relatedTarget:this._element},eb=d.Event(Hf.SHOW,g),d(e).trigger(eb),!eb.isDefaultPrevented()))){if(!this._inNavbar){if("undefined"==typeof z)throw new TypeError("Bootstrap's dropdowns require Popper.js (https://popper.js.org/)");T=this._element;"parent"===this._config.reference?T=e:r.isElement(this._config.reference)&&(T=this._config.reference,"undefined"!=typeof this._config.reference.jquery&&(T=this._config.reference[0]));"scrollParent"!==this._config.boundary&&d(e).addClass(Of);this._popper=new z(T,this._menu,this._getPopperConfig())}"ontouchstart"in document.documentElement&&0===d(e).closest(Sf).length&&d(document.body).children().on("mouseover",null,d.noop);this._element.focus();this._element.setAttribute("aria-expanded",!0);d(this._menu).toggleClass(Jf);d(e).toggleClass(Jf).trigger(d.Event(Hf.SHOWN,g))}},e.show=function(){if(!(this._element.disabled||d(this._element).hasClass(If)||d(this._menu).hasClass(Jf))){var e={relatedTarget:this._element},F=d.Event(Hf.SHOW,e),g=f._getParentFromElement(this._element);d(g).trigger(F);F.isDefaultPrevented()||(d(this._menu).toggleClass(Jf),d(g).toggleClass(Jf).trigger(d.Event(Hf.SHOWN,e)))}},e.hide=function(){if(!this._element.disabled&&!d(this._element).hasClass(If)&&d(this._menu).hasClass(Jf)){var e={relatedTarget:this._element},F=d.Event(Hf.HIDE,e),g=f._getParentFromElement(this._element);d(g).trigger(F);F.isDefaultPrevented()||(d(this._menu).toggleClass(Jf),d(g).toggleClass(Jf).trigger(d.Event(Hf.HIDDEN,e)))}},e.dispose=function(){d.removeData(this._element,Af);d(this._element).off(Bf);this._element=null;(this._menu=null)!==this._popper&&(this._popper.destroy(),this._popper=null)},e.update=function(){this._inNavbar=this._detectNavbar();null!==this._popper&&this._popper.scheduleUpdate()},e._addEventListeners=function(){var f=this;d(this._element).on(Hf.CLICK,function(d){d.preventDefault();d.stopPropagation();f.toggle()})},e._getConfig=function(f){return f=g({},this.constructor.Default,d(this._element).data(),f),r.typeCheckConfig(zf,f,this.constructor.DefaultType),f},e._getMenuElement=function(){if(!this._menu){var d=f._getParentFromElement(this._element);d&&(this._menu=d.querySelector(Rf))}return this._menu},e._getPlacement=function(){var f=d(this._element.parentNode),e=Zf;return f.hasClass(Kf)?(e=Vf,d(this._menu).hasClass(Nf)&&(e=Yf)):f.hasClass(Lf)?e=_f:f.hasClass(Mf)?e=fd:d(this._menu).hasClass(Nf)&&(e=$f),e},e._detectNavbar=function(){return 0<d(this._element).closest(".navbar").length},e._getOffset=function(){var f=this,d={};return"function"==typeof this._config.offset?d.fn=function(d){return d.offsets=g({},d.offsets,f._config.offset(d.offsets,f._element)||{}),d}:d.offset=this._config.offset,d},e._getPopperConfig=function(){var f={placement:this._getPlacement(),modifiers:{offset:this._getOffset(),flip:{enabled:this._config.flip},preventOverflow:{boundariesElement:this._config.boundary}}};return"static"===this._config.display&&(f.modifiers.applyStyle={enabled:!1}),f},f._jQueryInterface=function(e){return this.each(function(){var F=d(this).data(Af);if(F||(F=new f(this,"object"==typeof e?e:null),d(this).data(Af,F)),"string"==typeof e){if("undefined"==typeof F[e])throw new TypeError('No method named "'+e+'"');F[e]()}})},f._clearMenus=function(e){var F,g;if(!e||3!==e.which&&("keyup"!==e.type||9===e.which))for(var eb=[].slice.call(document.querySelectorAll(Qf)),T=0,c=eb.length;T<c;T++){var P=f._getParentFromElement(eb[T]),dX=d(eb[T]).data(Af),b={relatedTarget:eb[T]};(e&&"click"===e.type&&(b.clickEvent=e),dX)&&(F=dX._menu,!d(P).hasClass(Jf)||e&&("click"===e.type&&/input|textarea/i.test(e.target.tagName)||"keyup"===e.type&&9===e.which)&&d.contains(P,e.target)||(g=d.Event(Hf.HIDE,b),d(P).trigger(g),g.isDefaultPrevented()||("ontouchstart"in document.documentElement&&d(document.body).children().off("mouseover",null,d.noop),eb[T].setAttribute("aria-expanded","false"),d(F).removeClass(Jf),d(P).removeClass(Jf).trigger(d.Event(Hf.HIDDEN,b)))))}},f._getParentFromElement=function(f){var d,e=r.getSelectorFromElement(f);return e&&(d=document.querySelector(e)),d||f.parentNode},f._dataApiKeydownHandler=function(e){var F,g,eb,T,c;(/input|textarea/i.test(e.target.tagName)?32===e.which||27!==e.which&&(40!==e.which&&38!==e.which||d(e.target).closest(Rf).length):!Gf.test(e.which))||(e.preventDefault(),e.stopPropagation(),this.disabled||d(this).hasClass(If))||(F=f._getParentFromElement(this),g=d(F).hasClass(Jf),g&&(!g||27!==e.which&&32!==e.which)?(eb=[].slice.call(F.querySelectorAll(Uf)),0!==eb.length&&(T=eb.indexOf(e.target),38===e.which&&0<T&&T--,40===e.which&&T<eb.length-1&&T++,T<0&&(T=0),eb[T].focus())):(27===e.which&&(c=F.querySelector(Qf),d(c).trigger("focus")),d(this).trigger("click")))},F(f,null,[{key:"VERSION",get:function(){return"4.3.1"}},{key:"Default",get:function(){return dd}},{key:"DefaultType",get:function(){return ed}}]),f}();d(document).on(Hf.KEYDOWN_DATA_API,Qf,Fd._dataApiKeydownHandler).on(Hf.KEYDOWN_DATA_API,Rf,Fd._dataApiKeydownHandler).on(Hf.CLICK_DATA_API+" "+Hf.KEYUP_DATA_API,Fd._clearMenus).on(Hf.CLICK_DATA_API,Qf,function(f){f.preventDefault();f.stopPropagation();Fd._jQueryInterface.call(d(this),"toggle")}).on(Hf.CLICK_DATA_API,".dropdown form",function(f){f.stopPropagation()});d.fn[zf]=Fd._jQueryInterface;d.fn[zf].Constructor=Fd;d.fn[zf].noConflict=function(){return d.fn[zf]=Ef,Fd._jQueryInterface};var gd=["background","cite","href","itemtype","longdesc","poster","src","xlink:href"],ebd=/^(?:(?:https?|mailto|ftp|tel|file):|[^&:/?#]*(?:[/?#]|$))/gi,Td=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+/]+=*$/i,cd="tooltip",Pd="bs.tooltip",dXd="."+Pd,bd=d.fn[cd],Xd="bs-tooltip",gfd=new RegExp("(^|\\s)"+Xd+"\\S+","g"),eCd=["sanitize","whiteList","sanitizeFn"],eDd={animation:"boolean",template:"string",title:"(string|element|function)",trigger:"string",delay:"(number|object)",html:"boolean",selector:"(string|boolean)",placement:"(string|function)",offset:"(number|string|function)",container:"(string|element|boolean)",fallbackPlacement:"(string|array)",boundary:"(string|element)",sanitize:"boolean",sanitizeFn:"(null|function)",whiteList:"object"},cSd={AUTO:"auto",TOP:"top",RIGHT:"right",BOTTOM:"bottom",LEFT:"left"},ad={animation:!0,template:'<div class="tooltip" role="tooltip"><div class="arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,selector:!1,placement:"top",offset:0,container:!1,fallbackPlacement:"flip",boundary:"scrollParent",sanitize:!0,sanitizeFn:null,whiteList:{"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],div:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]}},Dd="show",dad="out",fTd={HIDE:"hide"+dXd,HIDDEN:"hidden"+dXd,SHOW:"show"+dXd,SHOWN:"shown"+dXd,INSERTED:"inserted"+dXd,CLICK:"click"+dXd,FOCUSIN:"focusin"+dXd,FOCUSOUT:"focusout"+dXd,MOUSEENTER:"mouseenter"+dXd,MOUSELEAVE:"mouseleave"+dXd},eTd="fade",eRd="show",gGd=".tooltip-inner",cTd=".arrow",eAd="hover",cHd="focus",dgd="click",cgd="manual",cSbd=function(){function f(f,d){if("undefined"==typeof z)throw new TypeError("Bootstrap's tooltips require Popper.js (https://popper.js.org/)");this._isEnabled=!0;this._timeout=0;this._hoverState="";this._activeTrigger={};this._popper=null;this.element=f;this.config=this._getConfig(d);this.tip=null;this._setListeners()}var e=f.prototype;return e.enable=function(){this._isEnabled=!0},e.disable=function(){this._isEnabled=!1},e.toggleEnabled=function(){this._isEnabled=!this._isEnabled},e.toggle=function(f){if(this._isEnabled)if(f){var e=this.constructor.DATA_KEY,F=d(f.currentTarget).data(e);F||(F=new this.constructor(f.currentTarget,this._getDelegateConfig()),d(f.currentTarget).data(e,F));F._activeTrigger.click=!F._activeTrigger.click;F._isWithActiveTrigger()?F._enter(null,F):F._leave(null,F)}else{if(d(this.getTipElement()).hasClass(eRd))return void this._leave(null,this);this._enter(null,this)}},e.dispose=function(){clearTimeout(this._timeout);d.removeData(this.element,this.constructor.DATA_KEY);d(this.element).off(this.constructor.EVENT_KEY);d(this.element).closest(".modal").off("hide.bs.modal");this.tip&&d(this.tip).remove();this._isEnabled=null;this._timeout=null;this._hoverState=null;(this._activeTrigger=null)!==this._popper&&this._popper.destroy();this._popper=null;this.element=null;this.config=null;this.tip=null},e.show=function(){var f=this,e,F,g,eb,T,c,P,dX,b,X;if("none"===d(this.element).css("display"))throw new Error("Please use show on visible elements");if(e=d.Event(this.constructor.Event.SHOW),this.isWithContent()&&this._isEnabled){if(d(this.element).trigger(e),F=r.findShadowRoot(this.element),g=d.contains(null!==F?F:this.element.ownerDocument.documentElement,this.element),e.isDefaultPrevented()||!g)return;eb=this.getTipElement();T=r.getUID(this.constructor.NAME);eb.setAttribute("id",T);this.element.setAttribute("aria-describedby",T);this.setContent();this.config.animation&&d(eb).addClass(eTd);c="function"==typeof this.config.placement?this.config.placement.call(this,eb,this.element):this.config.placement;P=this._getAttachment(c);this.addAttachmentClass(P);dX=this._getContainer();d(eb).data(this.constructor.DATA_KEY,this);d.contains(this.element.ownerDocument.documentElement,this.tip)||d(eb).appendTo(dX);d(this.element).trigger(this.constructor.Event.INSERTED);this._popper=new z(this.element,eb,{placement:P,modifiers:{offset:this._getOffset(),flip:{behavior:this.config.fallbackPlacement},arrow:{element:cTd},preventOverflow:{boundariesElement:this.config.boundary}},onCreate:function(d){d.originalPlacement!==d.placement&&f._handlePopperPlacementChange(d)},onUpdate:function(d){return f._handlePopperPlacementChange(d)}});d(eb).addClass(eRd);"ontouchstart"in document.documentElement&&d(document.body).children().on("mouseover",null,d.noop);b=function(){f.config.animation&&f._fixTransition();var e=f._hoverState;f._hoverState=null;d(f.element).trigger(f.constructor.Event.SHOWN);e===dad&&f._leave(null,f)};d(this.tip).hasClass(eTd)?(X=r.getTransitionDurationFromElement(this.tip),d(this.tip).one(r.TRANSITION_END,b).emulateTransitionEnd(X)):b()}},e.hide=function(f){var e=this,F=this.getTipElement(),g=d.Event(this.constructor.Event.HIDE),eb=function(){e._hoverState!==Dd&&F.parentNode&&F.parentNode.removeChild(F);e._cleanTipClass();e.element.removeAttribute("aria-describedby");d(e.element).trigger(e.constructor.Event.HIDDEN);null!==e._popper&&e._popper.destroy();f&&f()},T;(d(this.element).trigger(g),g.isDefaultPrevented())||((d(F).removeClass(eRd),"ontouchstart"in document.documentElement&&d(document.body).children().off("mouseover",null,d.noop),this._activeTrigger[dgd]=!1,this._activeTrigger[cHd]=!1,this._activeTrigger[eAd]=!1,d(this.tip).hasClass(eTd))?(T=r.getTransitionDurationFromElement(F),d(F).one(r.TRANSITION_END,eb).emulateTransitionEnd(T)):eb(),this._hoverState="")},e.update=function(){null!==this._popper&&this._popper.scheduleUpdate()},e.isWithContent=function(){return Boolean(this.getTitle())},e.addAttachmentClass=function(f){d(this.getTipElement()).addClass(Xd+"-"+f)},e.getTipElement=function(){return this.tip=this.tip||d(this.config.template)[0],this.tip},e.setContent=function(){var f=this.getTipElement();this.setElementContent(d(f.querySelectorAll(gGd)),this.getTitle());d(f).removeClass(eTd+" "+eRd)},e.setElementContent=function(f,e){"object"!=typeof e||!e.nodeType&&!e.jquery?this.config.html?(this.config.sanitize&&(e=p(e,this.config.whiteList,this.config.sanitizeFn)),f.html(e)):f.text(e):this.config.html?d(e).parent().is(f)||f.empty().append(e):f.text(d(e).text())},e.getTitle=function(){var f=this.element.getAttribute("data-original-title");return f||(f="function"==typeof this.config.title?this.config.title.call(this.element):this.config.title),f},e._getOffset=function(){var f=this,d={};return"function"==typeof this.config.offset?d.fn=function(d){return d.offsets=g({},d.offsets,f.config.offset(d.offsets,f.element)||{}),d}:d.offset=this.config.offset,d},e._getContainer=function(){return!1===this.config.container?document.body:r.isElement(this.config.container)?d(this.config.container):d(document).find(this.config.container)},e._getAttachment=function(f){return cSd[f.toUpperCase()]},e._setListeners=function(){var f=this;this.config.trigger.split(" ").forEach(function(e){if("click"===e)d(f.element).on(f.constructor.Event.CLICK,f.config.selector,function(d){return f.toggle(d)});else if(e!==cgd){var F=e===eAd?f.constructor.Event.MOUSEENTER:f.constructor.Event.FOCUSIN,g=e===eAd?f.constructor.Event.MOUSELEAVE:f.constructor.Event.FOCUSOUT;d(f.element).on(F,f.config.selector,function(d){return f._enter(d)}).on(g,f.config.selector,function(d){return f._leave(d)})}});d(this.element).closest(".modal").on("hide.bs.modal",function(){f.element&&f.hide()});this.config.selector?this.config=g({},this.config,{trigger:"manual",selector:""}):this._fixTitle()},e._fixTitle=function(){var f=typeof this.element.getAttribute("data-original-title");(this.element.getAttribute("title")||"string"!==f)&&(this.element.setAttribute("data-original-title",this.element.getAttribute("title")||""),this.element.setAttribute("title",""))},e._enter=function(f,e){var F=this.constructor.DATA_KEY;(e=e||d(f.currentTarget).data(F))||(e=new this.constructor(f.currentTarget,this._getDelegateConfig()),d(f.currentTarget).data(F,e));f&&(e._activeTrigger["focusin"===f.type?cHd:eAd]=!0);d(e.getTipElement()).hasClass(eRd)||e._hoverState===Dd?e._hoverState=Dd:(clearTimeout(e._timeout),e._hoverState=Dd,e.config.delay&&e.config.delay.show?e._timeout=setTimeout(function(){e._hoverState===Dd&&e.show()},e.config.delay.show):e.show())},e._leave=function(f,e){var F=this.constructor.DATA_KEY;(e=e||d(f.currentTarget).data(F))||(e=new this.constructor(f.currentTarget,this._getDelegateConfig()),d(f.currentTarget).data(F,e));f&&(e._activeTrigger["focusout"===f.type?cHd:eAd]=!1);e._isWithActiveTrigger()||(clearTimeout(e._timeout),e._hoverState=dad,e.config.delay&&e.config.delay.hide?e._timeout=setTimeout(function(){e._hoverState===dad&&e.hide()},e.config.delay.hide):e.hide())},e._isWithActiveTrigger=function(){for(var f in this._activeTrigger)if(this._activeTrigger[f])return!0;return!1},e._getConfig=function(f){var e=d(this.element).data();return Object.keys(e).forEach(function(f){-1!==eCd.indexOf(f)&&delete e[f]}),"number"==typeof(f=g({},this.constructor.Default,e,"object"==typeof f&&f?f:{})).delay&&(f.delay={show:f.delay,hide:f.delay}),"number"==typeof f.title&&(f.title=f.title.toString()),"number"==typeof f.content&&(f.content=f.content.toString()),r.typeCheckConfig(cd,f,this.constructor.DefaultType),f.sanitize&&(f.template=p(f.template,f.whiteList,f.sanitizeFn)),f},e._getDelegateConfig=function(){var f={},d;if(this.config)for(d in this.config)this.constructor.Default[d]!==this.config[d]&&(f[d]=this.config[d]);return f},e._cleanTipClass=function(){var f=d(this.getTipElement()),e=f.attr("class").match(gfd);null!==e&&e.length&&f.removeClass(e.join(""))},e._handlePopperPlacementChange=function(f){var d=f.instance;this.tip=d.popper;this._cleanTipClass();this.addAttachmentClass(this._getAttachment(f.placement))},e._fixTransition=function(){var f=this.getTipElement(),e=this.config.animation;null===f.getAttribute("x-placement")&&(d(f).removeClass(eTd),this.config.animation=!1,this.hide(),this.show(),this.config.animation=e)},f._jQueryInterface=function(e){return this.each(function(){var F=d(this).data(Pd),g="object"==typeof e&&e;if((F||!/dispose|hide/.test(e))&&(F||(F=new f(this,g),d(this).data(Pd,F)),"string"==typeof e)){if("undefined"==typeof F[e])throw new TypeError('No method named "'+e+'"');F[e]()}})},F(f,null,[{key:"VERSION",get:function(){return"4.3.1"}},{key:"Default",get:function(){return ad}},{key:"NAME",get:function(){return cd}},{key:"DATA_KEY",get:function(){return Pd}},{key:"Event",get:function(){return fTd}},{key:"EVENT_KEY",get:function(){return dXd}},{key:"DefaultType",get:function(){return eDd}}]),f}();d.fn[cd]=cSbd._jQueryInterface;d.fn[cd].Constructor=cSbd;d.fn[cd].noConflict=function(){return d.fn[cd]=bd,cSbd._jQueryInterface}});