c&&st;)--G<0&&(G=11,ee--);for(e.drawMonth=G,e.drawYear=ee,a=this._get(e,"prevText"),a=B?this.formatDate(a,this._daylightSavingAdjust(new Date(ee,G-q,1)),this._getFormatConfig(e)):a,i=this._canAdjustMonth(e,-1,ee,G)?""+a+" ":z?"":""+a+" ",s=this._get(e,"nextText"),s=B?this.formatDate(s,this._daylightSavingAdjust(new Date(ee,G+q,1)),this._getFormatConfig(e)):s,r=this._canAdjustMonth(e,1,ee,G)?""+s+" ":z?"":""+s+" ",n=this._get(e,"currentText"),d=this._get(e,"gotoCurrent")&&e.currentDay?X:H,n=B?this.formatDate(n,d,this._getFormatConfig(e)):n,c=e.inline?"":""+this._get(e,"closeText")+" ",o=U?""+(P?c:"")+(this._isInRange(e,d)?""+n+" ":"")+(P?"":c)+"
":"",l=parseInt(this._get(e,"firstDay"),10),l=isNaN(l)?0:l,h=this._get(e,"showWeek"),u=this._get(e,"dayNames"),p=this._get(e,"dayNamesMin"),g=this._get(e,"monthNames"),_=this._get(e,"monthNamesShort"),f=this._get(e,"beforeShowDay"),k=this._get(e,"showOtherMonths"),D=this._get(e,"selectOtherMonths"),m=this._getDefaultDate(e),y="",M=0;M"}for(x+=""+(0":""):"")}y+=b}return y+=o,e._keyEvent=!1,y},_generateMonthYearHeader:function(e,t,a,i,s,r,n,d){var c,o,l,h,u,p,g,_,f=this._get(e,"changeMonth"),k=this._get(e,"changeYear"),D=this._get(e,"showMonthAfterYear"),m="",y="";if(r||!f)y+=""+n[t]+" ";else{for(c=i&&i.getFullYear()===a,o=s&&s.getFullYear()===a,y+="",l=0;l<12;l++)(!c||l>=i.getMonth())&&(!o||l<=s.getMonth())&&(y+=""+d[l]+" ");y+=" "}if(D||(m+=y+(!r&&f&&k?"":" ")),!e.yearshtml)if(e.yearshtml="",r||!k)m+=""+a+" ";else{for(h=this._get(e,"yearRange").split(":"),u=(new Date).getFullYear(),g=(p=function(e){var t=e.match(/c[+\-].*/)?a+parseInt(e.substring(1),10):e.match(/[+\-].*/)?u+parseInt(e,10):parseInt(e,10);return isNaN(t)?u:t})(h[0]),_=Math.max(g,p(h[1]||"")),g=i?Math.max(g,i.getFullYear()):g,_=s?Math.min(_,s.getFullYear()):_,e.yearshtml+="";g<=_;g++)e.yearshtml+=""+g+" ";e.yearshtml+=" ",m+=e.yearshtml,e.yearshtml=null}return m+=this._get(e,"yearSuffix"),D&&(m+=(!r&&f&&k?"":" ")+y),m+="
"},_adjustInstDate:function(e,t,a){var i=e.drawYear+("Y"===a?t:0),s=e.drawMonth+("M"===a?t:0),r=Math.min(e.selectedDay,this._getDaysInMonth(i,s))+("D"===a?t:0),n=this._restrictMinMax(e,this._daylightSavingAdjust(new Date(i,s,r)));e.selectedDay=n.getDate(),e.drawMonth=e.selectedMonth=n.getMonth(),e.drawYear=e.selectedYear=n.getFullYear(),"M"!==a&&"Y"!==a||this._notifyChange(e)},_restrictMinMax:function(e,t){var a=this._getMinMaxDate(e,"min"),i=this._getMinMaxDate(e,"max"),s=a&&t=s.getTime())&&(!r||t.getTime()<=r.getTime())&&(!n||t.getFullYear()>=n)&&(!d||t.getFullYear()<=d)},_getFormatConfig:function(e){var t=this._get(e,"shortYearCutoff");return{shortYearCutoff:t="string"!=typeof t?t:(new Date).getFullYear()%100+parseInt(t,10),dayNamesShort:this._get(e,"dayNamesShort"),dayNames:this._get(e,"dayNames"),monthNamesShort:this._get(e,"monthNamesShort"),monthNames:this._get(e,"monthNames")}},_formatDate:function(e,t,a,i){t||(e.currentDay=e.selectedDay,e.currentMonth=e.selectedMonth,e.currentYear=e.selectedYear);var s=t?"object"==typeof t?t:this._daylightSavingAdjust(new Date(i,a,t)):this._daylightSavingAdjust(new Date(e.currentYear,e.currentMonth,e.currentDay));return this.formatDate(this._get(e,"dateFormat"),s,this._getFormatConfig(e))}}),b.fn.datepicker=function(e){if(!this.length)return this;b.datepicker.initialized||(b(document).mousedown(b.datepicker._checkExternalClick),b.datepicker.initialized=!0),0===b("#"+b.datepicker._mainDivId).length&&b("body").append(b.datepicker.dpDiv);var t=Array.prototype.slice.call(arguments,1);return"string"!=typeof e||"isDisabled"!==e&&"getDate"!==e&&"widget"!==e?"option"===e&&2===arguments.length&&"string"==typeof arguments[1]?b.datepicker["_"+e+"Datepicker"].apply(b.datepicker,[this[0]].concat(t)):this.each(function(){"string"==typeof e?b.datepicker["_"+e+"Datepicker"].apply(b.datepicker,[this].concat(t)):b.datepicker._attachDatepicker(this,e)}):b.datepicker["_"+e+"Datepicker"].apply(b.datepicker,[this[0]].concat(t))},b.datepicker=new e,b.datepicker.initialized=!1,b.datepicker.uuid=(new Date).getTime(),b.datepicker.version="1.11.4",b.datepicker});
jQuery(document).ready(function(jQuery){jQuery.datepicker.setDefaults({"closeText":"Close","currentText":"Today","monthNames":["January","February","March","April","May","June","July","August","September","October","November","December"],"monthNamesShort":["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],"nextText":"Next","prevText":"Previous","dayNames":["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],"dayNamesShort":["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],"dayNamesMin":["S","M","T","W","T","F","S"],"dateFormat":"MM d, yy","firstDay":1,"isRTL":false});});window.wp=window.wp||{},window.bp=window.bp||{},function(e,t){"undefined"!=typeof BP_Nouveau&&(bp.Nouveau={start:function(){this.setupGlobals(),this.prepareDocument(),this.initObjects(),this.setHeartBeat(),this.addListeners()},setupGlobals:function(){this.ajax_request=null,this.objects=t.map(BP_Nouveau.objects,function(e){return e}),this.objectNavParent=BP_Nouveau.object_nav_parent,this.heartbeat=wp.heartbeat||{},this.querystring=this.getLinkParams()},prepareDocument:function(){if(t("body").hasClass("no-js")&&t("body").removeClass("no-js").addClass("js"),BP_Nouveau.warnings&&"undefined"!=typeof console&&console.warn&&t.each(BP_Nouveau.warnings,function(e,t){console.warn(t)}),t(".buddypress_object_nav .widget-title").length){var e=t(".buddypress_object_nav .widget-title").html();t("body").find('*:contains("'+e+'")').each(function(a,s){t(s).hasClass("widget-title")||e!==t(s).html()||t(s).is("a")||t(s).remove()})}},getStorage:function(e,t){var a=sessionStorage.getItem(e);return a=a?JSON.parse(a):{},void 0!==t?a[t]||!1:a},setStorage:function(e,t,a){var s=this.getStorage(e);return void 0===a&&void 0!==s[t]?delete s[t]:s[t]=a,sessionStorage.setItem(e,JSON.stringify(s)),null!==sessionStorage.getItem(e)},getLinkParams:function(e,t){var a;if(!(a=e?-1!==e.indexOf("?")?"?"+e.split("?")[1]:"":document.location.search))return null;var s=a.replace(/(^\?)/,"").split("&").map(function(e){return e=e.split("="),this[e[0]]=e[1],this}.bind({}))[0];return t?s[t]:s},urlDecode:function(e,t){var a=t||{amp:"&",lt:"<",gt:">",quot:'"',"#039":"'"};return decodeURIComponent(e.replace(/\+/g," ")).replace(/&([^;]+);/g,function(e,t){return a[t]||""})},ajax:function(e,a){this.ajax_request&&this.ajax_request.abort();var s=t.extend({},bp.Nouveau.getStorage("bp-"+a),{nonce:BP_Nouveau.nonces[a]},e);return void 0!==BP_Nouveau.customizer_settings&&(s.customized=BP_Nouveau.customizer_settings),this.ajax_request=t.post(BP_Nouveau.ajaxurl,s,"json"),this.ajax_request},inject:function(e,a,s){t(e).length&&a&&("append"===(s=s||"reset")?t(e).append(a):"prepend"===s?t(e).prepend(a):t(e).html(a),"undefined"==typeof bp_mentions&&void 0===bp.mentions||t(".bp-suggestions").bp_mentions(bp.mentions.users))},objectRequest:function(e){var a={},s=this;if((e=t.extend({object:"",scope:null,filter:null,target:"#buddypress [data-bp-list]",search_terms:"",page:1,extras:null,caller:null,template:null,method:"reset"},e)).object&&e.target)return e.search_terms&&(e.search_terms=e.search_terms.replace(//g,">")),null!==e.scope&&this.setStorage("bp-"+e.object,"scope",e.scope),null!==e.filter&&this.setStorage("bp-"+e.object,"filter",e.filter),null!==e.extras&&this.setStorage("bp-"+e.object,"extras",e.extras),t(this.objectNavParent+" [data-bp-object]").each(function(){t(this).removeClass("selected loading")}),t(this.objectNavParent+' [data-bp-scope="'+e.scope+'"], #object-nav li.current').addClass("selected loading"),t('#buddypress [data-bp-filter="'+e.object+'"] option[value="'+e.filter+'"]').prop("selected",!0),"friends"===e.object||"friend_requests"===e.object||"group_members"===e.object?(e.template=e.object,e.object="members"):"group_requests"===e.object?(e.object="groups",e.template="group_requests"):"notifications"===e.object&&(e.object="members",e.template="member_notifications"),a=t.extend({action:e.object+"_filter"},e),this.ajax(a,e.object).done(function(a){if(!1!==a.success)if(t(s.objectNavParent+' [data-bp-scope="'+e.scope+'"]').removeClass("loading"),"reset"!==e.method)s.inject(e.target,a.data.contents,e.method),t(e.target).trigger("bp_ajax_"+e.method,t.extend(e,{response:a.data}));else if("pag-bottom"===e.caller&&t("#subnav").length){var r=t("#subnav").parent();t("html,body").animate({scrollTop:r.offset().top},"slow",function(){t(e.target).fadeOut(100,function(){s.inject(this,a.data.contents,e.method),t(this).fadeIn(100,"swing",function(){t(e.target).trigger("bp_ajax_request",t.extend(e,{response:a.data}))})})})}else t(e.target).fadeOut(100,function(){s.inject(this,a.data.contents,e.method),t(this).fadeIn(100,"swing",function(){t(e.target).trigger("bp_ajax_request",t.extend(e,{response:a.data}))})})})},initObjects:function(){var e=this,a={},s={},r="all",n="",i=null,o=null;t.each(this.objects,function(d,p){void 0!==(a=e.getStorage("bp-"+p)).scope&&(r=a.scope),void 0!==a.extras&&"notifications"!==p&&(i=a.extras),t('#buddypress [data-bp-filter="'+p+'"]').length&&("-1"!==t('#buddypress [data-bp-filter="'+p+'"]').val()&&"0"!==t('#buddypress [data-bp-filter="'+p+'"]').val()?o=t('#buddypress [data-bp-filter="'+p+'"]').val():void 0!==a.filter&&(o=a.filter,t('#buddypress [data-bp-filter="'+p+'"] option[value="'+o+'"]').prop("selected",!0))),t(this.objectNavParent+' [data-bp-object="'+p+'"]').length&&(t(this.objectNavParent+' [data-bp-object="'+p+'"]').each(function(){t(this).removeClass("selected")}),t(this.objectNavParent+' [data-bp-scope="'+p+'"], #object-nav li.current').addClass("selected")),null!==e.querystring&&(void 0!==e.querystring[p+"_search"]?n=e.querystring[p+"_search"]:void 0!==e.querystring.s&&(n=e.querystring.s),n&&(n=e.urlDecode(n),t('#buddypress [data-bp-search="'+p+'"] input[type=search]').val(n))),t('#buddypress [data-bp-list="'+p+'"]').length&&(s={object:p,scope:r,filter:o,search_terms:n,extras:i},e.objectRequest(s))})},setHeartBeat:function(){void 0!==BP_Nouveau.pulse&&this.heartbeat&&(this.heartbeat.interval(Number(BP_Nouveau.pulse)),t.fn.extend({"heartbeat-send":function(){return this.bind("heartbeat-send.buddypress")}}),t.fn.extend({"heartbeat-tick":function(){return this.bind("heartbeat-tick.buddypress")}}))},addListeners:function(){t("[data-bp-disable-input]").on("change",this.toggleDisabledInput),t(document).on("heartbeat-send.buddypress",this.heartbeatSend),t(document).on("heartbeat-tick.buddypress",this.heartbeatTick),t(this.objectNavParent+" .bp-navs").on("click","a",this,this.scopeQuery),t("#buddypress [data-bp-filter]").on("change",this,this.filterQuery),t("#buddypress [data-bp-search]").on("submit","form",this,this.searchQuery),t("#buddypress [data-bp-search] form").on("search","input[type=search]",this.resetSearch),t("#buddypress [data-bp-list], #buddypress #item-header").on("click","[data-bp-btn-action]",this,this.buttonAction),t("#buddypress [data-bp-close]").on("click",this,this.closeNotice),t("#buddypress [data-bp-list]").on("click","[data-bp-pagination] a",this,this.paginateAction)},toggleDisabledInput:function(e){var a=t(e.currentTarget),s="#"+a.data("bp-disable-input"),r=a.prop("checked");a.removeClass("enabled disabled"),r?(a.addClass("enabled"),t(s).prop("disabled",!1)):(t(s).prop("disabled",!0),a.addClass("disabled"))},heartbeatSend:function(e,a){t("#buddypress").trigger("bp_heartbeat_send",a)},heartbeatTick:function(e,a){t("#buddypress").trigger("bp_heartbeat_tick",a)},scopeQuery:function(e){var a,s=e.data,r=t(e.currentTarget).parent(),n="all",i=null,o="";return r.hasClass("no-ajax")||t(e.currentTarget).hasClass("no-ajax")||!r.attr("data-bp-scope")?e:(n=r.data("bp-scope"),a=r.data("bp-object"),n&&a?(e.preventDefault(),i=t("#buddypress").find('[data-bp-filter="'+a+'"]').first().val(),t('#buddypress [data-bp-search="'+a+'"] input[type=search]').length&&(o=t('#buddypress [data-bp-search="'+a+'"] input[type=search]').val()),r.hasClass("dynamic")&&r.find("a span").html(""),void s.objectRequest({object:a,scope:n,filter:i,search_terms:o,page:1})):e)},filterQuery:function(e){var a=e.data,s=t(e.target).data("bp-filter"),r="all",n=t(e.target).val(),i="";if(!s)return e;t(a.objectNavParent+" [data-bp-object].selected").length&&(r=t(a.objectNavParent+" [data-bp-object].selected").data("bp-scope")),t('#buddypress [data-bp-search="'+s+'"] input[type=search]').length&&(i=t('#buddypress [data-bp-search="'+s+'"] input[type=search]').val()),a.objectRequest({object:s,scope:r,filter:n,search_terms:i,page:1,template:null})},searchQuery:function(e){var a,s=e.data,r="all",n=null,i="";if(t(e.delegateTarget).hasClass("no-ajax")||void 0===t(e.delegateTarget).data("bp-search"))return e;e.preventDefault(),a=t(e.delegateTarget).data("bp-search"),n=t("#buddypress").find('[data-bp-filter="'+a+'"]').first().val(),i=t(e.delegateTarget).find("input[type=search]").first().val(),t(s.objectNavParent+" [data-bp-object]").length&&(r=t(s.objectNavParent+' [data-bp-object="'+a+'"].selected').data("bp-scope")),s.objectRequest({object:a,scope:r,filter:n,search_terms:i,page:1,template:null})},showSearchSubmit:function(e){t(e.delegateTarget).find("[type=submit]").addClass("bp-show"),t("[type=submit]").hasClass("bp-hide")&&t("[type=submit]").removeClass("bp-hide")},resetSearch:function(e){t(e.target).val()?t(e.delegateTarget).find("[type=submit]").show():t(e.delegateTarget).submit()},buttonAction:function(e){var a=e.data,s=t(e.currentTarget),r=s.data("bp-btn-action"),n=s.data("bp-nonce"),i=s.closest("[data-bp-item-id]"),o=i.data("bp-item-id"),d=s.closest(".list-wrap"),p=i.data("bp-item-component"),c="";if(!r||!o||!p)return e;if(e.preventDefault(),void 0!==BP_Nouveau[r+"_confirm"]&&!1===window.confirm(BP_Nouveau[r+"_confirm"])||s.hasClass("pending"))return!1;c=n?(c=n.split("?_wpnonce="))[1]:a.getLinkParams(s.prop("href"),"_wpnonce");var u={is_friend:"remove_friend",not_friends:"add_friend",pending:"withdraw_friendship",accept_friendship:"accept_friendship",reject_friendship:"reject_friendship"};"members"===p&&void 0!==u[r]&&(r=u[r],p="friends"),s.addClass("pending loading"),a.ajax({action:p+"_"+r,item_id:o,_wpnonce:c},p).done(function(e){if(!1===e.success)d.prepend(e.data.feedback),s.removeClass("pending loading"),i.find(".bp-feedback").fadeOut(6e3);else{if("groups"===p&&void 0!==e.data.is_group&&e.data.is_group)return window.location.reload();if(void 0!==e.data.is_user&&e.data.is_user)return s.parent().html(e.data.feedback),void i.fadeOut(1500);if(t(a.objectNavParent+' [data-bp-scope="personal"]').length){var n=Number(t(a.objectNavParent+' [data-bp-scope="personal"] span').html())||0;-1!==t.inArray(r,["leave_group","remove_friend"])?n-=1:-1!==t.inArray(r,["join_group"])&&(n+=1),n<0&&(n=0),t(a.objectNavParent+' [data-bp-scope="personal"] span').html(n)}s.parent().replaceWith(e.data.contents)}})},closeNotice:function(e){var a=t(e.currentTarget);e.preventDefault(),"clear"===a.data("bp-close")&&(void 0!==t.cookie("bp-message")&&t.removeCookie("bp-message"),void 0!==t.cookie("bp-message-type")&&t.removeCookie("bp-message-type")),a.closest(".bp-feedback").hasClass("bp-sitewide-notice")&&bp.Nouveau.ajax({action:"messages_dismiss_sitewide_notice"},"messages"),a.closest(".bp-feedback").remove()},paginateAction:function(e){var a,s,r,n=e.data,i=t(e.currentTarget),o=null,d=null,p=null,c=null;if(null===(a=i.closest("[data-bp-pagination]").data("bp-pagination")||null))return e;e.preventDefault(),null!==(s=t(e.delegateTarget).data("bp-list")||null)&&(void 0!==(r=n.getStorage("bp-"+s)).scope&&(o=r.scope),void 0!==r.filter&&(d=r.filter),void 0!==r.extras&&(c=r.extras)),t('#buddypress [data-bp-search="'+s+'"] input[type=search]').length&&(p=t('#buddypress [data-bp-search="'+s+'"] input[type=search]').val());var u={object:s,scope:o,filter:d,search_terms:p,extras:c,page:n.getLinkParams(i.prop("href"),a)||1};n.objectRequest(u)}},bp.Nouveau.start())}(bp,jQuery);
var tdbAutoload={};
(function(f,c,l){var n=f(document),d=f(c);tdbAutoload={original_post_id:null,is_ajax_running:!1,init:function(){var a=f("#tdb-autoload-article");if(0!==a.length){var g=a.data("autoload"),b=a.data("autoload-type"),k=a.data("autoload-count"),e=a.data("autoload-org-post-id"),h=e,m=0;tdbAutoload.original_post_id=e;tdbAutoload.log("%c tdbAutoload(inf) art. settings","background: #ffaa00; color: #ffffff; padding:3px 6px");tdbAutoload.log("tdbAutoload status: "+g);tdbAutoload.log("tdbAutoload type: "+b);
tdbAutoload.log("tdbAutoload original post id: "+e);tdbAutoload.log("tdbAutoload count: "+parseInt(k,10));tdbAutoload.log("tdbAutoload scroll percent: "+c.tdb_globals.autoloadScrollPercent);b=l.debounce(function(){tdbAutoload.log("ajax autoload > scroll");if(!0!==tdbAutoload.is_ajax_running){var b=100*d.scrollTop()/(n.height()-d.height()),g=c.tdb_globals.autoloadScrollPercent;(!k||m=g&&e===h&&(tdbAutoload._ajaxLoadingStart(a),tdbAutoload.is_ajax_running=!0,f.ajax({timeout:5E4,
type:"POST",url:tdbAutoload._getRestEndPoint("td-cloud-library/ajax_autoload","uid="+tdbAutoload._getUniqueID()),beforeSend:function(a){a.setRequestHeader("X-WP-Nonce",c.tdb_globals.wpRestNonce);e=null},data:{currentPostId:h,originalPostId:tdbAutoload.original_post_id},success:function(b,g,d){null!==b&&void 0===b.error&&(void 0!==b.noPosts?tdbAutoload._ajaxLoadingEnd(a):(m++,g=f(b.article),f(g).appendTo(a.find(".tdc-content-wrap")),h=e=b.id,g.filter("#tdb-infinte-post-"+h+"-iframe").on("load",function(){var b=
f(this);tdbAutoload.is_ajax_running=!1;tdbAutoload._ajaxLoadingEnd(a);b.css("opacity",1);setTimeout(function(){var a=b.contents().find("html").outerHeight(!0)+2;tdbAutoload.log("initial iframe load height set to: "+a);b.height(a)},50);b.contents().find("html").attr("id",b.attr("id"));var g=c.MutationObserver||c.WebKitMutationObserver||c.MozMutationObserver,m=document.querySelector("#"+b.attr("id")),d=(m.contentDocument||m.contentWindow.document).getElementsByTagName("html"),e=l.debounce(function(){var a=
d[0].offsetHeight;tdbAutoload.log("setHeight: height set to: "+a);b.height(a)},10);(new g(function(a){a.forEach(function(a){tdbAutoload.log("mutation occurred!");tdbAutoload.log(a);e()})})).observe(d[0],{childList:!0,subtree:!0})})))},error:function(a,b,g){}}))}},100);var p=l.debounce(function(){tdbAutoload.log("ajax_autoload > resize");f(".tdb-autoload-wrap").find(".tdb-infinte-post-iframe").each(function(){var a=f(this);a.height(a.contents().find("html").outerHeight())})},100),q=l.debounce(function(){tdbAutoload.log("ajax autoload > scroll location change");
tdbAutoload._locationChange()},10);"on"===g&&(d.scroll(b),d.scroll(q),d.resize(p),d.resize(function(){}),d.scroll(function(){}))}},_fixSmartSidebar:function(){var a=d.scrollTop(),g=a+d.height();f(".tdb-autoload-wrap").find("iframe").each(function(){var b=f(this),c=b.offset().top-f("#wpadminbar").outerHeight(),d=b.outerHeight(!0);b=b.attr("id");cg&&document.getElementById(b).contentWindow.tdSmartSidebar.td_events_scroll(a-c)})},_locationChange:function(){var a=d.scrollTop(),g=a+d.height(),
b=[];f(".tdb-autoload-wrap").find("article, iframe").each(function(){var c=f(this);if(!c.parent().hasClass("wpb_video_wrapper")){var d=c.offset().top-(f(".td-header-menu-wrap.td-affix").outerHeight()+f("#wpadminbar").outerHeight()),e=c.outerHeight(!0),h=c.data("post-url"),k=c.data("post-edit-url");c=c.data("post-title");e=d+e;d g?b.push({top:d,bottom:e,post_url:h,post_edit_url:k,post_title:c}):d>a&&da&&e');tdLoadingBox.init(tds_theme_color_site_wide);setTimeout(function(){f(".td-loader-gif").removeClass("td-loader-animation-start").addClass("td-loader-animation-mid")},50)},_ajaxLoadingEnd:function(a){a.find(".td-loader-gif").removeClass("td-loader-animation-mid").addClass("td-loader-animation-end");setTimeout(function(){a.find(".td-loader-gif").remove();
tdLoadingBox.stop()},400)},_getRestEndPoint:function(a,d){return l.isEmpty(c.tdb_globals.permalinkStructure)?c.tdb_globals.wpRestUrl+a+"&"+d:c.tdb_globals.wpRestUrl+a+"?"+d},_getUniqueID:function(){function a(){return Math.floor(65536*(1+Math.random())).toString(16).substring(1)}return a()+a()+"-"+a()+"-"+a()+"-"+a()+"-"+a()+a()+a()},log:function(a,c){}};n.ready(function(){tdbAutoload.init()})})(jQuery,this,_);
var tdAnalytics={};
(function(){tdAnalytics={_fbPixelId:"",_gaTrackingId:"",_gaErrors:[],_fbErrors:[],init:function(){!0!==tdAnalytics._inIframe()&&("undefined"!==typeof window.dataLayer&&window.dataLayer.forEach(function(a,b,c){"config"===a[0]&&(tdAnalytics._gaTrackingId=a[1])}),"undefined"!==typeof fbq&&setTimeout(function(){tdAnalytics._fbPixelId=fbq.getState().pixels[0].id},500),jQuery("body").on("click",".tdm_block_button .tds-button .tdm-btn, .tdm_block_icon_box .tds-button .tdm-btn, .td_block_single_image .td_single_image_bg, .tds-newsletter .tdn-btn-wrap button",function(a){a.target.classList.contains("tdn-submit-btn")||
a.preventDefault();var b=jQuery(this),c={ga:{},fb:{},eventTarget:"",eventTargetAtt:a.target.getAttribute("target")};a.target.classList.contains("tdm-btn-text")?c.eventTarget=a.target.parentElement.getAttribute("href"):c.eventTarget=a.target.getAttribute("href");void 0!==b.data("ga-event-action")&&(c.ga.eventAction=b.data("ga-event-action"));void 0!==b.data("ga-event-cat")&&(c.ga.eventCategory=b.data("ga-event-cat"));void 0!==b.data("ga-event-label")&&(c.ga.eventLabel=b.data("ga-event-label"));void 0!==b.data("fb-event-name")&&(c.fb.eventName=b.data("fb-event-name"));void 0!==b.data("fb-event-content-name")&&(c.fb.eventContentName=b.data("fb-event-content-name"));tdAnalytics._trackEvent(c)}))},_trackEvent:function(a){"undefined"===typeof a.ga.eventAction&&tdAnalytics._gaErrors.push({errorId:"eventActionError",errorMessage:"Google analytics event action is undefined."});"undefined"===typeof a.ga.eventCategory&&tdAnalytics._gaErrors.push({errorId:"eventCategory",errorMessage:"Google analytics event category is undefined."});
window[window.GoogleAnalyticsObject||"ga"]||tdAnalytics._gaErrors.push({errorId:"GoogleAnalyticsPageCode",errorMessage:"Google Analytics code is not loaded on the current page."});""===tdAnalytics._gaTrackingId&&tdAnalytics._gaErrors.push({errorId:"GoogleAnalyticsTrackingId",errorMessage:"Google Analytics TrackingId is missing on the current page."});0===tdAnalytics._gaErrors.length&>ag("event",a.ga.eventAction,{event_category:a.ga.eventCategory,event_label:a.ga.eventLabel,event_callback:function(){console.log(" %c GA Success",
"color: green; font-weight: bold;")}});"undefined"===typeof window.fbq&&tdAnalytics._fbErrors.push({errorId:"FacebookPixelPageCode",errorMessage:"Facebook Pixel events code is not loaded on the current page."});""===tdAnalytics._fbPixelId&&tdAnalytics._fbErrors.push({errorId:"FacebookPixelTrackingId",errorMessage:"Facebook Pixel TrackingId is missing on the current page."});"undefined"===typeof a.fb.eventName&&tdAnalytics._fbErrors.push({errorId:"FacebookPixelEventName",errorMessage:"Facebook pixel standard event name is not set(undefined)."});
0===tdAnalytics._fbErrors.length&&("undefined"!==typeof a.fb.eventContentName?fbq("track",a.fb.eventName,{content_name:a.fb.eventContentName}):fbq("track",a.fb.eventName),console.log(" %c FB track sent","color: green; font-weight: bold;"));setTimeout(function(){a.eventTarget&&("_blank"===a.eventTargetAtt?window.open(a.eventTarget):window.location=a.eventTarget)},150)},_inIframe:function(){try{return window.self!==window.top}catch(a){return!0}},_displayErrors:function(){if(0(b/=f/2)?d/2*b*b+c:-d/2*(--b*(b-2)-1)+c},easeInCubic:function(a,b,c,d,f){return d*(b/=f)*b*b+c},easeOutCubic:function(a,b,c,d,f){return d*((b=b/f-1)*b*b+1)+c},easeInOutCubic:function(a,b,c,d,f){return 1>(b/=f/2)?d/2*b*b*b+c:
d/2*((b-=2)*b*b+2)+c},easeInQuart:function(a,b,c,d,f){return d*(b/=f)*b*b*b+c},easeOutQuart:function(a,b,c,d,f){return-d*((b=b/f-1)*b*b*b-1)+c},easeInOutQuart:function(a,b,c,d,f){return 1>(b/=f/2)?d/2*b*b*b*b+c:-d/2*((b-=2)*b*b*b-2)+c},easeInQuint:function(a,b,c,d,f){return d*(b/=f)*b*b*b*b+c},easeOutQuint:function(a,b,c,d,f){return d*((b=b/f-1)*b*b*b*b+1)+c},easeInOutQuint:function(a,b,c,d,f){return 1>(b/=f/2)?d/2*b*b*b*b*b+c:d/2*((b-=2)*b*b*b*b+2)+c},easeInSine:function(a,b,c,d,f){return-d*Math.cos(b/
f*(Math.PI/2))+d+c},easeOutSine:function(a,b,c,d,f){return d*Math.sin(b/f*(Math.PI/2))+c},easeInOutSine:function(a,b,c,d,f){return-d/2*(Math.cos(Math.PI*b/f)-1)+c},easeInExpo:function(a,b,c,d,f){return 0==b?c:d*Math.pow(2,10*(b/f-1))+c},easeOutExpo:function(a,b,c,d,f){return b==f?c+d:d*(-Math.pow(2,-10*b/f)+1)+c},easeInOutExpo:function(a,b,c,d,f){return 0==b?c:b==f?c+d:1>(b/=f/2)?d/2*Math.pow(2,10*(b-1))+c:d/2*(-Math.pow(2,-10*--b)+2)+c},easeInCirc:function(a,b,c,d,f){return-d*(Math.sqrt(1-(b/=f)*
b)-1)+c},easeOutCirc:function(a,b,c,d,f){return d*Math.sqrt(1-(b=b/f-1)*b)+c},easeInOutCirc:function(a,b,c,d,f){return 1>(b/=f/2)?-d/2*(Math.sqrt(1-b*b)-1)+c:d/2*(Math.sqrt(1-(b-=2)*b)+1)+c},easeInElastic:function(a,b,c,d,f){a=1.70158;var e=0,l=d;if(0==b)return c;if(1==(b/=f))return c+d;e||(e=.3*f);lb?-.5*l*Math.pow(2,10*--b)*Math.sin(2*(b*f-a)*Math.PI/e)+c:.5*l*Math.pow(2,-10*--b)*Math.sin(2*(b*f-a)*Math.PI/e)+d+c},easeInBack:function(a,b,c,d,f,e){void 0==e&&(e=1.70158);
return d*(b/=f)*b*((e+1)*b-e)+c},easeOutBack:function(a,b,c,d,f,e){void 0==e&&(e=1.70158);return d*((b=b/f-1)*b*((e+1)*b+e)+1)+c},easeInOutBack:function(a,b,c,d,f,e){void 0==e&&(e=1.70158);return 1>(b/=f/2)?d/2*b*b*(((e*=1.525)+1)*b-e)+c:d/2*((b-=2)*b*(((e*=1.525)+1)*b+e)+2)+c},easeInBounce:function(a,b,c,d,f){return d-jQuery.easing.easeOutBounce(a,f-b,0,d,f)+c},easeOutBounce:function(a,b,c,d,f){return(b/=f)<1/2.75?7.5625*d*b*b+c:b<2/2.75?d*(7.5625*(b-=1.5/2.75)*b+.75)+c:b<2.5/2.75?d*(7.5625*(b-=
2.25/2.75)*b+.9375)+c:d*(7.5625*(b-=2.625/2.75)*b+.984375)+c},easeInOutBounce:function(a,b,c,d,f){return b