/* https://ca.onair.cc/wp-includes/js/admin-bar.min.js */ try{ "undefined"!=typeof jQuery?("undefined"==typeof jQuery.fn.hoverIntent&&!function(a){a.fn.hoverIntent=function(b,c,d){var e={interval:100,sensitivity:6,timeout:0};e="object"==typeof b?a.extend(e,b):a.isFunction(c)?a.extend(e,{over:b,out:c,selector:d}):a.extend(e,{over:b,out:b,selector:c});var f,g,h,i,j=function(a){f=a.pageX,g=a.pageY},k=function(b,c){return c.hoverIntent_t=clearTimeout(c.hoverIntent_t),Math.sqrt((h-f)*(h-f)+(i-g)*(i-g)) .ab-item").bind("keydown.adminbar",function(c){if(13==c.which){var d=a(c.target),e=d.closest(".ab-sub-wrapper"),f=d.parent().hasClass("hover");c.stopPropagation(),c.preventDefault(),e.length||(e=a("#wpadminbar .quicklinks")),e.find(".menupop").removeClass("hover"),f||d.parent().toggleClass("hover"),d.siblings(".ab-sub-wrapper").find(".ab-item").each(b)}}).each(b),a("#wpadminbar .ab-item").bind("keydown.adminbar",function(c){if(27==c.which){var d=a(c.target);c.stopPropagation(),c.preventDefault(),d.closest(".hover").removeClass("hover").children(".ab-item").focus(),d.siblings(".ab-sub-wrapper").find(".ab-item").each(b)}}),e.click(function(b){"wpadminbar"!=b.target.id&&"wp-admin-bar-top-secondary"!=b.target.id||(e.find("li.menupop.hover").removeClass("hover"),a("html, body").animate({scrollTop:0},"fast"),b.preventDefault())}),a(".screen-reader-shortcut").keydown(function(b){var c,d;13==b.which&&(c=a(this).attr("href"),d=navigator.userAgent.toLowerCase(),d.indexOf("applewebkit")!=-1&&c&&"#"==c.charAt(0)&&setTimeout(function(){a(c).focus()},100))}),a("#adminbar-search").on({focus:function(){a("#adminbarsearch").addClass("adminbar-focused")},blur:function(){a("#adminbarsearch").removeClass("adminbar-focused")}}),"sessionStorage"in window&&a("#wp-admin-bar-logout a").click(function(){try{for(var a in sessionStorage)a.indexOf("wp-autosave-")!=-1&&sessionStorage.removeItem(a)}catch(b){}}),navigator.userAgent&&document.body.className.indexOf("no-font-face")===-1&&/Android (1.0|1.1|1.5|1.6|2.0|2.1)|Nokia|Opera Mini|w(eb)?OSBrowser|webOS|UCWEB|Windows Phone OS 7|XBLWP7|ZuneWP7|MSIE 7/.test(navigator.userAgent)&&(document.body.className+=" no-font-face")})):!function(a,b){var c,d=function(a,b,c){a.addEventListener?a.addEventListener(b,c,!1):a.attachEvent&&a.attachEvent("on"+b,function(){return c.call(a,window.event)})},e=new RegExp("\\bhover\\b","g"),f=[],g=new RegExp("\\bselected\\b","g"),h=function(a){for(var b=f.length;b--;)if(f[b]&&a==f[b][1])return f[b][0];return!1},i=function(b){for(var d,i,j,k,l,m,n=[],o=0;b&&b!=c&&b!=a;)"LI"==b.nodeName.toUpperCase()&&(n[n.length]=b,i=h(b),i&&clearTimeout(i),b.className=b.className?b.className.replace(e,"")+" hover":"hover",k=b),b=b.parentNode;if(k&&k.parentNode&&(l=k.parentNode,l&&"UL"==l.nodeName.toUpperCase()))for(d=l.childNodes.length;d--;)m=l.childNodes[d],m!=k&&(m.className=m.className?m.className.replace(g,""):"");for(d=f.length;d--;){for(j=!1,o=n.length;o--;)n[o]==f[d][1]&&(j=!0);j||(f[d][1].className=f[d][1].className?f[d][1].className.replace(e,""):"")}},j=function(b){for(;b&&b!=c&&b!=a;)"LI"==b.nodeName.toUpperCase()&&!function(a){var b=setTimeout(function(){a.className=a.className?a.className.replace(e,""):""},500);f[f.length]=[b,a]}(b),b=b.parentNode},k=function(b){for(var d,e,f,h=b.target||b.srcElement;;){if(!h||h==a||h==c)return;if(h.id&&"wp-admin-bar-get-shortlink"==h.id)break;h=h.parentNode}for(b.preventDefault&&b.preventDefault(),b.returnValue=!1,-1==h.className.indexOf("selected")&&(h.className+=" selected"),d=0,e=h.childNodes.length;d800?130:100,c=Math.min(12,Math.round(b/g)),d=b>800?Math.round(b/30):Math.round(b/20),e=[],f=0;b;)b-=d,b<0&&(b=0),e.push(b),setTimeout(function(){window.scrollTo(0,e.shift())},f*c),f++};d(b,"load",function(){c=a.getElementById("wpadminbar"),a.body&&c&&(a.body.appendChild(c),c.className&&(c.className=c.className.replace(/nojs/,"")),d(c,"mouseover",function(a){i(a.target||a.srcElement)}),d(c,"mouseout",function(a){j(a.target||a.srcElement)}),d(c,"click",k),d(c,"click",function(a){l(a.target||a.srcElement)}),d(document.getElementById("wp-admin-bar-logout"),"click",function(){if("sessionStorage"in window)try{for(var a in sessionStorage)a.indexOf("wp-autosave-")!=-1&&sessionStorage.removeItem(a)}catch(b){}})),b.location.hash&&b.scrollBy(0,-32),navigator.userAgent&&document.body.className.indexOf("no-font-face")===-1&&/Android (1.0|1.1|1.5|1.6|2.0|2.1)|Nokia|Opera Mini|w(eb)?OSBrowser|webOS|UCWEB|Windows Phone OS 7|XBLWP7|ZuneWP7|MSIE 7/.test(navigator.userAgent)&&(document.body.className+=" no-font-face")})}(document,window); } catch(e){console.error("An error has occurred: "+e.stack);} /* https://ca.onair.cc/wp-content/plugins/bbpress/templates/default/js/engagements.min.js */ try{ /*! This file is automatically generated. */ jQuery(document).ready(function(t){function e(e,o,n,a,c){var b={action:e,id:o,type:n,nonce:a};t.post(bbpEngagementJS.bbp_ajaxurl,b,function(e){e.success?t(c).html(e.content):(e.content||(e.content=bbpEngagementJS.generic_ajax_error),window.alert(e.content))})}t("#favorite-toggle").on("click","span a.favorite-toggle",function(o){o.preventDefault(),e("favorite",t(this).data("bbp-object-id"),t(this).data("bbp-object-type"),t(this).data("bbp-nonce"),"#favorite-toggle")}),t("#subscription-toggle").on("click","span a.subscription-toggle",function(o){o.preventDefault(),e("subscription",t(this).data("bbp-object-id"),t(this).data("bbp-object-type"),t(this).data("bbp-nonce"),"#subscription-toggle")}),t(".bbp-alert-outer").on("click",".bbp-alert-close",function(e){e.preventDefault(),t(this).closest(".bbp-alert-outer").fadeOut()}),t(".bbp-alert-outer").on("click",function(e){this===e.target&&t(this).closest(".bbp-alert-outer").fadeOut()}),t(document).keyup(function(e){27===e.keyCode&&t(".bbp-alert-outer .bbp-alert-close").click()})}); } catch(e){console.error("An error has occurred: "+e.stack);} /* https://ca.onair.cc/wp-content/plugins/bbpress/templates/default/js/reply.min.js */ try{ /*! This file is automatically generated. */ addReply={moveForm:function(e,t,n,o){var i=this,d=i.getElement(e),l=i.getElement(n),r=i.getElement("bbp-cancel-reply-to-link"),m=i.getElement("bbp_reply_to"),p=i.getElement("bbp_topic_id");if(i.removeEditor(),d&&l&&r&&m){if(i.respondId=n,o=o||!1,!i.getElement("bbp-temp-form-div")){var s=document.createElement("div");s.id="bbp-temp-form-div",s.style.display="none",l.parentNode.appendChild(s)}return d.parentNode.appendChild(l),p&&o&&(p.value=o),m.value=t,r.style.display="",i.addEditor(),r.onclick=function(){var e=addReply,t=e.getElement("bbp-temp-form-div"),n=e.getElement(e.respondId);e.removeEditor(),t&&n&&(e.getElement("bbp_reply_to").value="0",t.parentNode.insertBefore(n,t),t.parentNode.removeChild(t),this.style.display="none",this.onclick=null,e.addEditor())},i.scrollToForm(),!1}},scrollToForm:function(){var e=this,t=e.getElement("new-post").getBoundingClientRect(),n=(window.pageYOffset||document.scrollTop)-(document.clientTop||0),o=n+t.top,i=o800?30:20,m=Math.min(12,Math.round(distance/r)),p=Math.round(distance/r),s=[],c=0;if(!0===i)for(;n>o;)(n-=p)o&&(n=o),s.push(n-l),setTimeout(function(){window.scrollTo(0,s.shift())},c*m),c++},getElement:function(e){return document.getElementById(e)},removeEditor:function(){if("undefined"!=typeof tinyMCE){var e=tinyMCE.get("bbp_reply_content");e&&!e.isHidden()?(this.mode="tmce",e.remove()):this.mode="html"}},addEditor:function(){"undefined"!=typeof tinyMCE&&("tmce"===this.mode?switchEditors.go("bbp_reply_content","tmce"):"html"===this.mode&&switchEditors.go("bbp_reply_content","html"))}}; } catch(e){console.error("An error has occurred: "+e.stack);} /* https://ca.onair.cc/wp-content/plugins/wp-user-avatar/assets/js/frontend.min.js */ try{ !function(){"use strict";!function($,e,t){(new function(){var a=this;this.init=function(){e.ppFormRecaptchaLoadCallback=this.recaptcha_processing,$(".pp-del-profile-avatar").click(this.delete_avatar),$(".pp-del-cover-image").click(this.delete_profile_image_cover),$(document).on("click",".has-password-visibility-icon .pp-form-material-icons",this.toggle_password_visibility),$(document.body).on("click","a.showlogin",(function(){$(".pp_wc_login").slideToggle()})),$(e).on("load resize",(function(){a.defaultUserProfileResponsive()})),"true"!==pp_ajax_form.disable_ajax_form&&($(document).on("submit",'form[data-pp-form-submit="login"]',this.ajax_login),$(document).on("submit",'form[data-pp-form-submit="signup"]',this.ajax_registration),$(document).on("submit",'form[data-pp-form-submit="passwordreset"]',this.ajax_password_reset),$(document).on("submit",'form[data-pp-form-submit="editprofile"]',this.ajax_edit_profile))},this.recaptcha_processing=function(){$(".pp-g-recaptcha").each((function(e,t){var s=$(t).attr("data-sitekey"),r=$(this).parents(".pp-form-container").find("form");if("v3"===$(t).attr("data-type"))r.find("input.pp-submit-form").on("click",(function(e){e.preventDefault(),a._add_processing_label(r),grecaptcha.ready((function(){grecaptcha.execute(s,{action:"form"}).then((function(e){r.find('[name="g-recaptcha-response"]').remove(),r.append($("",{type:"hidden",value:e,name:"g-recaptcha-response"})),r.submit()}))}))}));else{var i=grecaptcha.render(t,{sitekey:s,theme:$(t).attr("data-theme"),size:$(t).attr("data-size")});r.on("pp_form_submitted",(function(){grecaptcha.reset(i)}))}}))},this.reset_form=function(e){e.find("input:text, input:password, input:file, select, textarea").val(""),e.find("input:radio, input:checkbox").removeAttr("checked").removeAttr("selected")},this.toggle_password_visibility=function(e){e.preventDefault();var t=$(this).parents(".pp-form-field-input-textarea-wrap").find(".pp-form-field");"password"===t.attr("type")?(t.attr("type","text"),$(this).text("visibility_off")):(t.attr("type","password"),$(this).text("visibility"))},this.ajax_edit_profile=function(t){if(void 0!==e.FormData&&e.FormData){t.preventDefault();var s=$('form[data-pp-form-submit="editprofile"]'),r=a.get_melange_id(s),i=new FormData(this);i.append("action","pp_ajax_editprofile"),i.append("nonce",pp_ajax_form.nonce),i.append("melange_id",r),$(".profilepress-edit-profile-status").remove(),$(".profilepress-edit-profile-success").remove(),""!==e.edit_profile_msg_class&&$("."+e.edit_profile_msg_class).remove(),a._add_processing_label(s),$.post({url:pp_ajax_form.ajaxurl,data:i,cache:!1,contentType:!1,enctype:"multipart/form-data",processData:!1,dataType:"json",success:function(t){s.trigger("pp_form_submitted"),s.trigger("pp_form_edit_profile_success",[s]),"avatar_url"in t&&""!==t.avatar_url&&($("img[data-del='avatar'], img.pp-user-avatar").attr("src",t.avatar_url),$("input[name=eup_avatar]",s).val("")),"cover_image_url"in t&&""!==t.cover_image_url&&($("img[data-del='cover-image'], img.pp-user-cover-image").attr("src",t.cover_image_url),$("input[name=eup_cover_image]",s).val(""),$(".profilepress-myaccount-has-cover-image",s).show(),$(".profilepress-myaccount-cover-image-empty",s).hide()),"message"in t&&(e.edit_profile_msg_class=$(t.message).attr("class"),s.before(t.message)),"redirect"in t&&(s.trigger("pp_edit_profile_success_before_redirect"),e.location.assign(t.redirect)),a._remove_processing_label(s)}},"json")}},this.ajax_password_reset=function(e){e.preventDefault();var t=$(this),s=a.get_melange_id(t),r="true"===t.find('input[name="is-pp-tab-widget"]').val(),i={action:"pp_ajax_passwordreset",data:$(this).serialize()+"&melange_id="+s};a._remove_status_notice(),t.parents(".pp-tab-widget-form").prev(".pp-tab-status").remove(),a._add_processing_label(t),$.post(pp_ajax_form.ajaxurl,i,(function(e){if(t.trigger("pp_form_submitted"),"object"!=typeof e)return a._remove_processing_label(t);if("message"in e){if(t.trigger("pp_password_reset_status"),r){var s=e.message.replace("profilepress-reset-status","pp-tab-status");t.parents(".pp-tab-widget-form").before(s)}else t.parents(".lucidContainer").length>0?t.parents(".lucidContainer").before(e.message):t.before(e.message);"status"in e&&!0===e.status&&t.hide(),$('input[name="user_login"]',t).val("")}a._remove_processing_label(t)}),"json")},this.ajax_registration=function(t){if(void 0!==e.FormData&&e.FormData){t.preventDefault();var s=$(this),r=a.get_melange_id(s),i=new FormData(this),p="true"===s.find('input[name="is-pp-tab-widget"]').val();i.append("action","pp_ajax_signup"),i.append("melange_id",r),a._remove_status_notice(),s.parents(".pp-tab-widget-form").prev(".pp-tab-status").remove(),a._add_processing_label(s),$.post({url:pp_ajax_form.ajaxurl,data:i,cache:!1,contentType:!1,enctype:"multipart/form-data",processData:!1,dataType:"json",success:function(t){if(s.trigger("pp_form_submitted"),"object"!=typeof t)return a._remove_processing_label(s);if("message"in t){if(s.trigger("pp_registration_error",[t]),s.trigger("pp_registration_ajax_response",[t]),p){var r=t.message.replace("profilepress-reg-status","pp-tab-status");s.parents(".pp-tab-widget-form").before(r)}else s.parents(".lucidContainer").length>0?s.parents(".lucidContainer").before(t.message):s.before(t.message);a.reset_form(s)}else"redirect"in t&&(s.trigger("pp_registration_success",[t]),e.location.assign(t.redirect));a._remove_processing_label(s)}})}},this.ajax_login=function(t){t.preventDefault();var s=$(this),r={action:"pp_ajax_login",data:$(this).serialize()},i="true"===s.find('input[name="is-pp-tab-widget"]').val();a._remove_status_notice(),a._add_processing_label(s),$.post(pp_ajax_form.ajaxurl,r,(function(t){if(s.trigger("pp_form_submitted"),null===t||"object"!=typeof t)return a._remove_processing_label(s);if("success"in t&&!0===t.success&&"redirect"in t)s.trigger("pp_login_form_success"),e.location.assign(t.redirect);else if(s.trigger("pp_login_form_error"),"code"in t&&"pp2fa_auth_code_invalid"==t.code&&s.find(".pp-2fa").show(),i){var r=t.message.replace("profilepress-login-status","pp-tab-status");s.parents(".pp-tab-widget-form").before(r)}else s.parents(".lucidContainer").length>0?s.parents(".lucidContainer").before(t.message):s.before(t.message);a._remove_processing_label(s)}),"json")},this.delete_avatar=function(e){e.preventDefault();var t=$(this).text(),a=$(this);e.preventDefault(),confirm(pp_ajax_form.confirm_delete)&&(a.is("button")&&a.text(pp_ajax_form.deleting_text),$.post(pp_ajax_form.ajaxurl,{action:"pp_del_avatar",nonce:pp_ajax_form.nonce}).done((function(e){"error"in e&&"nonce_failed"===e.error?(a.text(t),alert(pp_ajax_form.deleting_error)):"success"in e&&($("img[data-del='avatar']").attr("src",e.default),a.remove())})))},this.delete_profile_image_cover=function(e){e.preventDefault();var t=$(this).text(),a=$(this);e.preventDefault(),confirm(pp_ajax_form.confirm_delete)&&(a.is("button")&&a.text(pp_ajax_form.deleting_text),$.post(pp_ajax_form.ajaxurl,{action:"pp_del_cover_image",nonce:pp_ajax_form.nonce}).done((function(e){"error"in e&&"nonce_failed"===e.error&&(a.text(t),alert(pp_ajax_form.deleting_error)),"success"in e&&(""!==e.default?($("img[data-del='cover-image']").attr("src",e.default),a.parent().find(".profilepress-myaccount-has-cover-image").show(),a.parent().find(".profilepress-myaccount-cover-image-empty").hide()):(a.parent().find(".profilepress-myaccount-has-cover-image").hide(),a.parent().find(".profilepress-myaccount-cover-image-empty").show()),a.remove())})))},this.get_melange_id=function(e){var a=$("input.pp_melange_id",e).val();return a===t?"":a},this._add_processing_label=function(e){var t=e.find("input[data-pp-submit-label]");t.attr({value:t.data("pp-processing-label"),disabled:"disabled"}).css("opacity",".4")},this._remove_processing_label=function(e){var t=e.find("input[data-pp-submit-label]");t.attr("value",t.data("pp-submit-label")),t.attr({value:t.data("pp-submit-label"),disabled:null}).css("opacity","")},this._remove_status_notice=function(){$(".profilepress-login-status,.pp-tab-status,.profilepress-edit-profile-success,.profilepress-edit-profile-status,.pp-reset-success,.profilepress-reset-status,.profilepress-reg-status").remove()},this.defaultUserProfileResponsive=function(){$(".ppress-default-profile, .pp-member-directory").each((function(){var e=$(this),t=e.width();t<=340?(e.removeClass("ppressui340"),e.removeClass("ppressui500"),e.removeClass("ppressui800"),e.removeClass("ppressui960"),e.addClass("ppressui340")):t<=500?(e.removeClass("ppressui340"),e.removeClass("ppressui500"),e.removeClass("ppressui800"),e.removeClass("ppressui960"),e.addClass("ppressui500")):t<=800?(e.removeClass("ppressui340"),e.removeClass("ppressui500"),e.removeClass("ppressui800"),e.removeClass("ppressui960"),e.addClass("ppressui800")):t<=960?(e.removeClass("ppressui340"),e.removeClass("ppressui500"),e.removeClass("ppressui800"),e.removeClass("ppressui960"),e.addClass("ppressui960")):t>960&&(e.removeClass("ppressui340"),e.removeClass("ppressui500"),e.removeClass("ppressui800"),e.removeClass("ppressui960")),e.css("opacity",1)})),$(".ppress-default-profile-cover, .ppress-default-profile-cover-e").each((function(){var e=$(this),t=Math.round(e.width()/e.data("ratio"))+"px";e.height(t),e.find(".ppress-dpf-cover-add").height(t)}))}}).init()}(jQuery,window,void 0)}(); } catch(e){console.error("An error has occurred: "+e.stack);} /* https://ca.onair.cc/wp-content/plugins/wp-lightbox-2/js/dist/wp-lightbox-2.min.js */ try{ "use strict";function _readOnlyError(a){throw new Error("\""+a+"\" is read-only")}function _classCallCheck(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function _defineProperties(a,b){for(var c,d=0;dj&&(l=j/d),c*=l,d*=l,l=1,c>k&&(l=k/c),c=a(c*l),d=a(d*l)}var m=this.helper.getPageScroll(),n=m.yScroll+.5*h,o=n-.5*d,p=m.xScroll,q=document.getElementById("lightboxImage");q.style.width=c,q.style.height=d,this.resizeImageContainer(c,d,o,p)}}},{key:"resizeImageContainer",value:function resizeImageContainer(a,b,d,e){var f=Math.max,g=this,h=document.getElementById("outerImageContainer"),i=document.getElementById("imageDataContainer");if(h&&i){this.config.widthCurrent=h.offsetWidth,this.config.heightCurrent=h.offsetHeight;var j=f(350,a+2*(this.config.borderSize||0)),k=b+2*(this.config.borderSize||0);this.config.xScale=100*(j/this.config.widthCurrent),this.config.yScale=100*(k/this.config.heightCurrent),this.helper.setLightBoxPos(d,e),c("#imageDataContainer").animate({width:j},this.config.resizeSpeed,"linear"),c("#outerImageContainer").animate({width:j},this.config.resizeSpeed,"linear",function(){c("#outerImageContainer").animate({height:k},g.config.resizeSpeed,"linear",function(){g.showImage()})}),this.showNavigationElements(),document.getElementById("prevLink")&&(document.getElementById("prevLink").style.height=b),document.getElementById("nextLink")&&(document.getElementById("nextLink").style.height=b)}}},{key:"showImage",value:function showImage(){this.helper.show(document.getElementById("imageData")),this.helper.show(document.getElementById("caption")),this.helper.hide(document.getElementById("loading")),0this.config.activeImage){var c=new Image;c.src=this.config.imageArray[this.config.activeImage+1][0]}if(0"+this.config.strings.download+"":"",g="";1"+this.config.strings.prevLinkText+""),(this.config.activeImage+1"+this.config.strings.nextLinkText+"")),c=d+c+e+f+g,""!=c&&document.getElementById("numberDisplay")&&(document.getElementById("numberDisplay").innerHTML=c,this.helper.show(document.getElementById("numberDisplay")))}},{key:"showNavigationElements",value:function showNavigationElements(){var a=document.getElementById("prevLink"),b=document.getElementById("prevLinkText"),c=document.getElementById("nextLink"),d=document.getElementById("nextLinkText");1",a=1!=b.querySelectorAll("param").length),b=null}return a}},{key:"getPageScroll",value:function getPageScroll(){var a=0,b=0;self.pageYOffset?(b=self.pageYOffset,a=self.pageXOffset):document.documentElement&&document.documentElement.scrollTop?(b=document.documentElement.scrollTop,a=document.documentElement.scrollLeft):document.body&&(b=document.body.scrollTop,a=document.body.scrollLeft);var c=document.getElementById("wpadminbar");if(c){var d=window.getComputedStyle(c),e=d.getPropertyValue("top");this.config.adminBarHeight&&0===parseInt(e,10)&&(b+=this.config.adminBarHeight)}return{xScroll:a,yScroll:b}}},{key:"setLightBoxPos",value:function setLightBoxPos(a,b){return 0
",e="
";this.config.displayHelp&&(e+=""+this.config.strings.help+""),e+="
";var f;this.config.navbarOnTop?(f="
"+e+d+"
",c("body").append(f),c("#imageDataContainer").addClass("ontop")):(f="
"+d+e+"
",c("body").append(f));var g=document.getElementById("overlay"),h=document.getElementById("lightbox"),i=document.getElementById("loadingLink"),j=document.getElementById("bottomNavClose"),k=document.getElementById("outerImageContainer"),l=document.getElementById("imageDataContainer"),m=document.getElementById("lightboxImage"),n=document.getElementById("hoverNav");g&&(g.addEventListener("click",function(){return a.end()}),this.helper.hide(g)),h&&(h.addEventListener("click",function(){return a.end()}),this.helper.hide(h)),i&&i.addEventListener("click",function(){return a.end()}),j&&j.addEventListener("click",function(){return a.end()}),this.events.bindNavigationButtons(this.display.changeImage.bind(this.display)),this.events.enableKeyboardNav(this.display.changeImage.bind(this.display)),k&&(k.style.width=this.config.widthCurrent+"px",k.style.height=this.config.heightCurrent+"px"),l&&(l.style.width=this.config.widthCurrent+"px")}},{key:"resizeListener",value:function resizeListener(){var a=this;this.config.resizeTimeout&&(clearTimeout(this.config.resizeTimeout),this.config.resizeTimeout=!1),this.config.resizeTimeout=setTimeout(function(){a.display.doScale(!1)},50)}},{key:"start",value:function start(b){var d=this;document.querySelectorAll("select, embed, object").forEach(function(a){d.helper.hide(a)});var e=this.helper.getPageSize(),f=this.helper.getPageScroll(),g=0,h=document.getElementById("overlay");c("#overlay").hide().css({width:e.pageDocumentWidth+"px",height:e.pageDocumentHeight+"px",opacity:this.config.overlayOpacity}).fadeIn(400),this.config.isIE8&&4096==e.pageDocumentHeight&&1e3<=f.yScroll&&(g=f.yScroll-1e3,0>e.documentScrollHeight-(f.yScroll+3096)&&(g-=f.yScroll+3096-e.documentScrollHeight),h.style.top=g+"px");var k=0;if(!this.config.jsonData)if(this.config.imageArray=[],!b.rel||""==b.rel){var l=b.title||b.parentElement.firstChild.title||"";console.log(b),this.config.imageArray.push([b.href,this.config.displayTitle?l:""])}else document.querySelectorAll("a").forEach(function(c){if(c.href&&c.rel===b.rel){var a="",e=c.parentElement.querySelector("img:first-of-type");c.title?a=c.title:e&&(a=e.title);var f="",g="",h=c.parentElement.parentElement.querySelector(".gallery-caption"),i=c.parentElement.querySelector(".wp-caption-text");h?(f=h.textContent,g=h.innerHTML):i&&(f=i.textContent,g=i.innerHTML),a=a.trim(),g=g.trim(),a.toLowerCase()===g.toLowerCase()&&(a=g,f="");var j="";""!=a&&(j=""+a+""),""!=f&&(""!=a&&(j+="
"),j+=""+f+""),d.config.imageArray.push([c.href,d.config.displayTitle?j:""])}});if(1a;i--)this.config.imageArray[a][0]==this.config.imageArray[i][0]&&this.config.imageArray.splice(i,1);for(;this.config.imageArray[k][0]!=b.href;)k++}this.helper.setLightBoxPos(f[1],f[0]),this.display.changeImage(k)}},{key:"end",value:function end(){var a=this;document.getElementById("lightbox").remove(),c("#overlay").fadeOut(function(){document.getElementById("overlay").remove()}),document.querySelectorAll("select, embed, object").forEach(function(b){a.helper.show(b)})}}]),a}();b.exports=g},{"./Display":3,"./Events":4,"./Helper":5}]},{},[1]); } catch(e){console.error("An error has occurred: "+e.stack);} /* https://ca.onair.cc/wp-content/plugins/lazy-load-for-videos/assets/js/lazyload-all.js */ try{ !function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=10)}([function(t,e,n){"use strict";var r=n(3),o=function(t){var e=window.jQuery||window.$;e&&e(document).ajaxStop((function(){t()}))},i=n(1);function a(t,e){var n=t;n.style.backgroundImage="url(".concat(e,")"),n.style.backgroundColor="#000",n.style.backgroundPosition="center center",n.style.backgroundRepeat="no-repeat"}function c(t){var e=function(t){var e=t&&t.parentNode&&t.parentNode.parentNode,n=e&&e.classList.contains("wp-has-aspect-ratio"),r=String(e.classList),o=r.substring(r.lastIndexOf("wp-embed-aspect-"),r.lastIndexOf(" ")).trim();if(n&&o){var i=o.replace("wp-embed-aspect-","").split("-"),a=Number(i[1])/Number(i[0]);return a.toString().split(".")[1].length>4?Math.round(1e4*a)/1e4:a}return.5625}(t);Object(i.a)("object, embed, iframe, .preview-lazyload, .lazy-load-div",t).forEach((function(t){var n=t,r=n.parentNode.clientWidth,o=Math.round(r*e);n.setAttribute("height","".concat(o,"px")),n.setAttribute("width","".concat(r,"px")),n.style.height="".concat(o,"px"),n.style.width="".concat(r,"px")}))}n.d(e,"d",(function(){return a})),n.d(e,"c",(function(){return c})),n.d(e,"b",(function(){return d})),n.d(e,"a",(function(){return s}));var u=function(t,e){for(var n=this,r=arguments.length,o=new Array(r>2?r-2:0),i=2;i1&&void 0!==arguments[1]?arguments[1]:document;return[].slice.call(e.querySelectorAll(t))}},function(t,e,n){"use strict";function r(t){var e=document.createDocumentFragment(),n=document.createElement("div");for(n.innerHTML=t;n.childNodes[0];)e.appendChild(n.childNodes[0]);return e}n.d(e,"a",(function(){return r}))},function(t,e,n){"use strict";function r(t){var e=window.jQuery||window.$;e&&e.fn&&e(window).bindFirst("load",t)}n.d(e,"b",(function(){return r})),e.a=function(){var t=window.jQuery||window.$;t&&t.fn&&(t.fn.bindFirst=function(e,n){var r=t(this);r.unbind(e,n),r.bind(e,n);var o=t._data(r[0]).events,i=o[e];i.unshift(i.pop()),o[e]=i})}},function(t,e,n){"use strict";function r(t){"complete"===document.readyState||"interactive"===document.readyState?t():document.addEventListener("DOMContentLoaded",t)}n.d(e,"a",(function(){return r}))},function(t,e,n){"use strict";var r=n(0),o=n(2),i=n(1);function a(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function c(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function u(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if(!(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=t[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}window.showThumb=function(t){var e=t[0];lazyload_video_settings.vimeo.loadthumbnail&&Object(i.a)('[id="'.concat(e.id,'"]')).forEach((function(t){Object(r.d)(t,e.thumbnail_large)}))};var l,d="preview-vimeo",s={buttonstyle:"",playercolour:"",loadthumbnail:!0};function f(t){var e=t,n=u(e.getAttribute("id").match(/[\w]+/),1)[0];e.setAttribute("id",n),e.innerHTML="",function(t,e){var n=Object(o.a)('');if(t.appendChild(n),lazyload_video_settings.vimeo.loadthumbnail){var a=t.getAttribute("data-video-thumbnail");if(a)Object(r.a)(Object(i.a)('[id="'.concat(e,'"]')),(function(t){return Object(r.d)(t,a)}));else{var c=document.createElement("script");c.src="".concat("https://vimeo.com/api/v2/video/".concat(e,".json"),".json?callback=showThumb"),t.parentNode.insertBefore(c,t.firstChild)}}if(lazyload_video_settings.vimeo.show_title){var u=t.getAttribute("data-video-title"),d=Object(o.a)('"));t.appendChild(d)}l.buttonstyle&&t.classList.add(l.buttonstyle)}(e,n)}function p(t){t.addEventListener("click",(function(t){var e=t.currentTarget;if(t.preventDefault(),"a"===e.tagName.toLowerCase()){var n=e.getAttribute("id");e.classList.remove(d);var r="";l.playercolour!==r&&(l.playercolour=l.playercolour.toString().replace(/[.#]/g,""),r="&color=".concat(l.playercolour));var i,a=Object(o.a)(''));e.parentNode.replaceChild(a,e)}}))}function b(){Object(i.a)(".".concat(d)).forEach((function(t){f(t),Object(r.c)(t.parentNode),p(t)}))}e.a=function(t){l=function(t){for(var e=1;e0&&(i.playlist=u.join(","));var l,d=s({},i,{},r);return d.t&&(d.start=function(t){if(Number(t))return Number(t);var e=0,n=[3600,60,1],r=t.match(/(?:(\d+)(?:h))?(?:(\d+)(?:m))?(?:(\d+)(?:s))?/);if(r)for(var o=1;o')).firstChild;i.addEventListener("load",(function(){120===i.clientWidth&&(n=n.replace("maxresdefault","0")),t.style.backgroundImage||Object(r.d)(t,n),i.parentNode.removeChild(i)})),document.body.appendChild(i)}function g(t){var e=t,n=m(e.getAttribute("href")),i=n.videoId,a=n.queryParams;e.innerHTML='");var c=Object(o.a)('');e.insertBefore(c,e.firstChild),p.buttonstyle&&e.classList.add(p.buttonstyle),Object(r.c)(e.parentNode),e.addEventListener("click",(function(t){var n=t.currentTarget;if(t.preventDefault(),"a"===n.tagName.toLowerCase()){n.classList.remove(b);var r=y({pluginOptions:p,videoId:i,urlOptions:a}),c=Object(o.a)(''));n.parentNode.replaceChild(c,n)}}))}function O(){var t=Object(i.a)("a.lazy-load-youtube");t.forEach(g),p.loadthumbnail&&Object(r.a)(t,(function(t){return h(t)}))}e.a=function(t){p=s({},v,{},t),Object(r.b)({load:O,pluginOptions:p,previewVideoSelector:".".concat(b)})}},,,,function(t,e,n){"use strict";n.r(e);n(11);var r=n(3),o=n(4),i=n(5),a=n(6);Object(o.a)((function(){Object(r.a)(),Object(i.a)(lazyload_video_settings.vimeo),Object(a.a)(lazyload_video_settings.youtube)}))},function(t,e,n){}]); } catch(e){console.error("An error has occurred: "+e.stack);} /* https://ca.onair.cc/wp-content/themes/onair-7.0/lib/responsive-scripts.js */ try{ jQuery(document).ready(function(a){a("a[href=#scroll-top]").click(function(){a("html, body").animate({scrollTop:0},"slow");return!1})});(function(b){function a(d){this.input=d;if(d.attr("type")=="password"){this.handlePassword()}b(d[0].form).submit(function(){if(d.hasClass("placeholder")&&d[0].value==d.attr("placeholder")){d[0].value=""}})}a.prototype={show:function(f){if(this.input[0].value===""||(f&&this.valueIsPlaceholder())){if(this.isPassword){try{this.input[0].setAttribute("type","text")}catch(d){this.input.before(this.fakePassword.show()).hide()}}this.input.addClass("placeholder");this.input[0].value=this.input.attr("placeholder")}},hide:function(){if(this.valueIsPlaceholder()&&this.input.hasClass("placeholder")){this.input.removeClass("placeholder");this.input[0].value="";if(this.isPassword){try{this.input[0].setAttribute("type","password")}catch(d){}this.input.show();this.input[0].focus()}}},valueIsPlaceholder:function(){return this.input[0].value==this.input.attr("placeholder")},handlePassword:function(){var d=this.input;d.attr("realType","password");this.isPassword=!0;if(b.browser.msie&&d[0].outerHTML){var e=b(d[0].outerHTML.replace(/type=(['"])?password\1/gi,"type=$1text$1"));this.fakePassword=e.val(d.attr("placeholder")).addClass("placeholder").focus(function(){d.trigger("focus");b(this).hide()});b(d[0].form).submit(function(){e.remove();d.show()})}}};var c=!!("placeholder" in document.createElement("input"));b.fn.placeholder=function(){return c?this:this.each(function(){var d=b(this);var e=new a(d);e.show(!0);d.focus(function(){e.hide()});d.blur(function(){e.show(!1)});if(b.browser.msie){b(window).load(function(){if(d.val()){d.removeClass("placeholder")}e.show(!0)});d.focus(function(){if(this.value==""){var f=this.createTextRange();f.collapse(!0);f.moveStart("character",0);f.select()}})}})}})(jQuery);(function(a){a.fn.fitVids=function(b){var c={customSelector:null};var e=document.createElement("div"),d=document.getElementsByTagName("base")[0]||document.getElementsByTagName("script")[0];e.className="fit-vids-style";e.innerHTML="­";d.parentNode.insertBefore(e,d);if(b){a.extend(c,b)}return this.each(function(){var f=["iframe[src^='https://player.vimeo.com']","iframe[src^='https://www.youtube.com']","iframe[src^='https://www.youtube.com']","iframe[src^='https://www.kickstarter.com']","object","embed"];if(c.customSelector){f.push(c.customSelector)}var g=a(this).find(f.join(","));g.each(function(){var k=a(this);if(this.tagName.toLowerCase()=="embed"&&k.parent("object").length||k.parent(".fluid-width-video-wrapper").length){return}var h=this.tagName.toLowerCase()=="object"?k.attr("height"):k.height(),i=h/k.width();if(!k.attr("id")){var j="fitvid"+Math.floor(Math.random()*999999);k.attr("id",j)}k.wrap('
').parent(".fluid-width-video-wrapper").css("padding-top",(i*100)+"%");k.removeAttr("height").removeAttr("width")})})}})(jQuery);window.matchMedia=window.matchMedia||(function(e,f){var c,a=e.documentElement,b=a.firstElementChild||a.firstChild,d=e.createElement("body"),g=e.createElement("div");g.id="mq-test-1";g.style.cssText="position:absolute;top:-100em";d.style.background="none";d.appendChild(g);return function(h){g.innerHTML='­';a.insertBefore(d,b);c=g.offsetWidth==42;a.removeChild(d);return{matches:c,media:h}}})(document);(function(e){e.respond={};respond.update=function(){};respond.mediaQueriesSupported=e.matchMedia&&e.matchMedia("only all").matches;if(respond.mediaQueriesSupported){return}var w=e.document,s=w.documentElement,i=[],k=[],q=[],o={},h=30,f=w.getElementsByTagName("head")[0]||s,g=w.getElementsByTagName("base")[0],b=f.getElementsByTagName("link"),d=[],a=function(){var D=b,y=D.length,B=0,A,z,C,x;for(;B-1,minw:F.match(/\(min\-width:[\s]*([\s]*[0-9\.]+)(px|em)[\s]*\)/)&&parseFloat(RegExp.$1)+(RegExp.$2||""),maxw:F.match(/\(max\-width:[\s]*([\s]*[0-9\.]+)(px|em)[\s]*\)/)&&parseFloat(RegExp.$1)+(RegExp.$2||"")})}}j()},l,r,v=function(){var z,A=w.createElement("div"),x=w.body,y=!1;A.style.cssText="position:absolute;font-size:1em;width:1em";if(!x){x=y=w.createElement("body");x.style.background="none"}x.appendChild(A);s.insertBefore(x,s.firstChild);z=A.offsetWidth;if(y){s.removeChild(x)}else{x.removeChild(A)}z=p=parseFloat(z);return z},p,j=function(I){var x="clientWidth",B=s[x],H=w.compatMode==="CSS1Compat"&&B||w.body[x]||B,D={},G=b[b.length-1],z=(new Date()).getTime();if(I&&l&&z-l-1?(p||v()):1)}if(!!J){J=parseFloat(J)*(J.indexOf(y)>-1?(p||v()):1)}if(!K.hasquery||(!A||!L)&&(A||H>=C)&&(L||H<=J)){if(!D[K.media]){D[K.media]=[]}D[K.media].push(k[K.rules])}}for(var E in q){if(q[E]&&q[E].parentNode===f){f.removeChild(q[E])}}for(var E in D){var M=w.createElement("style"),F=D[E].join("\n");M.type="text/css";M.media=E;f.insertBefore(M,G.nextSibling);if(M.styleSheet){M.styleSheet.cssText=F}else{M.appendChild(w.createTextNode(F))}q.push(M)}},n=function(x,z){var y=c();if(!y){return}y.open("GET",x,!0);y.onreadystatechange=function(){if(y.readyState!=4||y.status!=200&&y.status!=304){return}z(y.responseText)};if(y.readyState==4){return}y.send(null)},c=(function(){var x=!1;try{x=new XMLHttpRequest()}catch(y){x=new ActiveXObject("Microsoft.XMLHTTP")}return function(){return x}})();a();respond.update=a;function t(){j(!0)}if(e.addEventListener){e.addEventListener("resize",t,!1)}else{if(e.attachEvent){e.attachEvent("onresize",t)}}})(this); } catch(e){console.error("An error has occurred: "+e.stack);} /* https://ca.onair.cc/wp-content/themes/onair-7.0/lib/responsive-plugins.js */ try{ /*! * Responsive JS Plugins v1.1.0 */ jQuery(function(){jQuery('input[placeholder], textarea[placeholder]').placeholder()});jQuery(document).ready(function(){jQuery("#wrapper").fitVids()}); } catch(e){console.error("An error has occurred: "+e.stack);} /* https://ca.onair.cc/wp-content/themes/onair-7.0/lib/jquery.colorbox-min.js */ try{ // ColorBox v1.3.19 - jQuery lightbox plugin // (c) 2011 Jack Moore - jacklmoore.com // License: https://www.opensource.org/licenses/mit-license.php (function(a,b,c){function Z(c,d,e){var g=b.createElement(c);return d&&(g.id=f+d),e&&(g.style.cssText=e),a(g)}function $(a){var b=y.length,c=(Q+a)%b;return c<0?b+c:c}function _(a,b){return Math.round((/%/.test(a)?(b==="x"?z.width():z.height())/100:1)*parseInt(a,10))}function ba(a){return K.photo||/\.(gif|png|jpe?g|bmp|ico)((#|\?).*)?$/i.test(a)}function bb(){var b;K=a.extend({},a.data(P,e));for(b in K)a.isFunction(K[b])&&b.slice(0,2)!=="on"&&(K[b]=K[b].call(P));K.rel=K.rel||P.rel||"nofollow",K.href=K.href||a(P).attr("href"),K.title=K.title||P.title,typeof K.href=="string"&&(K.href=a.trim(K.href))}function bc(b,c){a.event.trigger(b),c&&c.call(P)}function bd(){var a,b=f+"Slideshow_",c="click."+f,d,e,g;K.slideshow&&y[1]?(d=function(){F.text(K.slideshowStop).unbind(c).bind(j,function(){if(K.loop||y[Q+1])a=setTimeout(W.next,K.slideshowSpeed)}).bind(i,function(){clearTimeout(a)}).one(c+" "+k,e),r.removeClass(b+"off").addClass(b+"on"),a=setTimeout(W.next,K.slideshowSpeed)},e=function(){clearTimeout(a),F.text(K.slideshowStart).unbind([j,i,k,c].join(" ")).one(c,function(){W.next(),d()}),r.removeClass(b+"on").addClass(b+"off")},K.slideshowAuto?d():e()):r.removeClass(b+"off "+b+"on")}function be(b){U||(P=b,bb(),y=a(P),Q=0,K.rel!=="nofollow"&&(y=a("."+g).filter(function(){var b=a.data(this,e).rel||this.rel;return b===K.rel}),Q=y.index(P),Q===-1&&(y=y.add(P),Q=y.length-1)),S||(S=T=!0,r.show(),K.returnFocus&&a(P).blur().one(l,function(){a(this).focus()}),q.css({opacity:+K.opacity,cursor:K.overlayClose?"pointer":"auto"}).show(),K.w=_(K.initialWidth,"x"),K.h=_(K.initialHeight,"y"),W.position(),o&&z.bind("resize."+p+" scroll."+p,function(){q.css({width:z.width(),height:z.height(),top:z.scrollTop(),left:z.scrollLeft()})}).trigger("resize."+p),bc(h,K.onOpen),J.add(D).hide(),I.html(K.close).show()),W.load(!0))}function bf(){!r&&b.body&&(Y=!1,z=a(c),r=Z(X).attr({id:e,"class":n?f+(o?"IE6":"IE"):""}).hide(),q=Z(X,"Overlay",o?"position:absolute":"").hide(),s=Z(X,"Wrapper"),t=Z(X,"Content").append(A=Z(X,"LoadedContent","width:0; height:0; overflow:hidden"),C=Z(X,"LoadingOverlay").add(Z(X,"LoadingGraphic")),D=Z(X,"Title"),E=Z(X,"Current"),G=Z(X,"Next"),H=Z(X,"Previous"),F=Z(X,"Slideshow").bind(h,bd),I=Z(X,"Close")),s.append(Z(X).append(Z(X,"TopLeft"),u=Z(X,"TopCenter"),Z(X,"TopRight")),Z(X,!1,"clear:left").append(v=Z(X,"MiddleLeft"),t,w=Z(X,"MiddleRight")),Z(X,!1,"clear:left").append(Z(X,"BottomLeft"),x=Z(X,"BottomCenter"),Z(X,"BottomRight"))).find("div div").css({"float":"left"}),B=Z(X,!1,"position:absolute; width:9999px; visibility:hidden; display:none"),J=G.add(H).add(E).add(F),a(b.body).append(q,r.append(s,B)))}function bg(){return r?(Y||(Y=!0,L=u.height()+x.height()+t.outerHeight(!0)-t.height(),M=v.width()+w.width()+t.outerWidth(!0)-t.width(),N=A.outerHeight(!0),O=A.outerWidth(!0),r.css({"padding-bottom":L,"padding-right":M}),G.click(function(){W.next()}),H.click(function(){W.prev()}),I.click(function(){W.close()}),q.click(function(){K.overlayClose&&W.close()}),a(b).bind("keydown."+f,function(a){var b=a.keyCode;S&&K.escKey&&b===27&&(a.preventDefault(),W.close()),S&&K.arrowKey&&y[1]&&(b===37?(a.preventDefault(),H.click()):b===39&&(a.preventDefault(),G.click()))}),a("."+g,b).on("click",function(a){a.which>1||a.shiftKey||a.altKey||a.metaKey||(a.preventDefault(),be(this))})),!0):!1}var d={transition:"elastic",speed:300,width:!1,initialWidth:"600",innerWidth:!1,maxWidth:!1,height:!1,initialHeight:"450",innerHeight:!1,maxHeight:!1,scalePhotos:!0,scrolling:!0,inline:!1,html:!1,iframe:!1,fastIframe:!0,photo:!1,href:!1,title:!1,rel:!1,opacity:.9,preloading:!0,current:"image {current} of {total}",previous:"previous",next:"next",close:"close",open:!1,returnFocus:!0,reposition:!0,loop:!0,slideshow:!1,slideshowAuto:!0,slideshowSpeed:2500,slideshowStart:"start slideshow",slideshowStop:"stop slideshow",onOpen:!1,onLoad:!1,onComplete:!1,onCleanup:!1,onClosed:!1,overlayClose:!0,escKey:!0,arrowKey:!0,top:!1,bottom:!1,left:!1,right:!1,fixed:!1,data:undefined},e="colorbox",f="cbox",g=f+"Element",h=f+"_open",i=f+"_load",j=f+"_complete",k=f+"_cleanup",l=f+"_closed",m=f+"_purge",n=!a.support.opacity&&!a.support.style,o=n&&!c.XMLHttpRequest,p=f+"_IE6",q,r,s,t,u,v,w,x,y,z,A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X="div",Y;if(a.colorbox)return;a(bf),W=a.fn[e]=a[e]=function(b,c){var f=this;b=b||{},bf();if(bg()){if(!f[0]){if(f.selector)return f;f=a(""),b.open=!0}c&&(b.onComplete=c),f.each(function(){a.data(this,e,a.extend({},a.data(this,e)||d,b))}).addClass(g),(a.isFunction(b.open)&&b.open.call(f)||b.open)&&be(f[0])}return f},W.position=function(a,b){function i(a){u[0].style.width=x[0].style.width=t[0].style.width=a.style.width,t[0].style.height=v[0].style.height=w[0].style.height=a.style.height}var c=0,d=0,e=r.offset(),g=z.scrollTop(),h=z.scrollLeft();z.unbind("resize."+f),r.css({top:-9e4,left:-9e4}),K.fixed&&!o?(e.top-=g,e.left-=h,r.css({position:"fixed"})):(c=g,d=h,r.css({position:"absolute"})),K.right!==!1?d+=Math.max(z.width()-K.w-O-M-_(K.right,"x"),0):K.left!==!1?d+=_(K.left,"x"):d+=Math.round(Math.max(z.width()-K.w-O-M,0)/2),K.bottom!==!1?c+=Math.max(z.height()-K.h-N-L-_(K.bottom,"y"),0):K.top!==!1?c+=_(K.top,"y"):c+=Math.round(Math.max(z.height()-K.h-N-L,0)/2),r.css({top:e.top,left:e.left}),a=r.width()===K.w+O&&r.height()===K.h+N?0:a||0,s[0].style.width=s[0].style.height="9999px",r.dequeue().animate({width:K.w+O,height:K.h+N,top:c,left:d},{duration:a,complete:function(){i(this),T=!1,s[0].style.width=K.w+O+M+"px",s[0].style.height=K.h+N+L+"px",K.reposition&&setTimeout(function(){z.bind("resize."+f,W.position)},1),b&&b()},step:function(){i(this)}})},W.resize=function(a){S&&(a=a||{},a.width&&(K.w=_(a.width,"x")-O-M),a.innerWidth&&(K.w=_(a.innerWidth,"x")),A.css({width:K.w}),a.height&&(K.h=_(a.height,"y")-N-L),a.innerHeight&&(K.h=_(a.innerHeight,"y")),!a.innerHeight&&!a.height&&(A.css({height:"auto"}),K.h=A.height()),A.css({height:K.h}),W.position(K.transition==="none"?0:K.speed))},W.prep=function(b){function g(){return K.w=K.w||A.width(),K.w=K.mw&&K.mw1){typeof K.current=="string"&&E.html(K.current.replace("{current}",Q+1).replace("{total}",g)).show(),G[K.loop||QK.mw&&(a=(R.width-K.mw)/R.width,d()),K.mh&&R.height>K.mh&&(a=(R.height-K.mh)/R.height,d())),K.h&&(R.style.marginTop=Math.max(K.h-R.height,0)/2+"px"),y[1]&&(K.loop||y[Q+1])&&(R.style.cursor="pointer",R.onclick=function(){W.next()}),n&&(R.style.msInterpolationMode="bicubic"),setTimeout(function(){e(R)},1)}),setTimeout(function(){R.src=c},1)):c&&B.load(c,K.data,function(b,c,d){e(c==="error"?Z(X,"Error").text("Request unsuccessful: "+d.statusText):a(this).contents())})},W.next=function(){!T&&y[1]&&(K.loop||y[Q+1])&&(Q=$(1),W.load())},W.prev=function(){!T&&y[1]&&(K.loop||Q)&&(Q=$(-1),W.load())},W.close=function(){S&&!U&&(U=!0,S=!1,bc(k,K.onCleanup),z.unbind("."+f+" ."+p),q.fadeTo(200,0),r.stop().fadeTo(300,0,function(){r.add(q).css({opacity:1,cursor:"auto"}).hide(),bc(m),A.remove(),setTimeout(function(){U=!1,bc(l,K.onClosed)},1)}))},W.remove=function(){a([]).add(r).add(q).remove(),r=null,a("."+g).removeData(e).removeClass(g).die()},W.element=function(){return a(P)},W.settings=d})(jQuery,document,this); } catch(e){console.error("An error has occurred: "+e.stack);} /* https://ca.onair.cc/wp-content/themes/onair-7.0/lib/jqtable/jqtable.min.js */ try{ //JQuery JQTable Plugin v1.1 //Written By Adnan ÅžAHÄ°N !function(a){"use strict";a.fn.JQTable=function(e){var i=a.extend({pageSize:10,pageNumberSize:5},e),n=i.pageSize,d=i.pageNumberSize,t=a(this).find("tbody"),s=t.find("tr");a("
").insertAfter(this);var p=s.length,r=2,o=Math.round(p/n);if(p>0&&n*o=o&&(d=o,r=1),o>=1&&d>=1){a("#paging").append("
<"),o>d&&a("#paging").append("");for(var g=1;g<=o;g++)g<=d?a("#paging").append(""+g+""):g>d&&a("#paging").append("");o>d&&a("#paging").append("..."),a("#paging").append(">"),t.find("tr:gt("+(n-1)+")").hide(),a("#paging a:eq("+r+")").addClass("active")}a("#pre_point").on("click",function(e){if(e.preventDefault(),r<=1)return!1;var i=a(this).nextAll("a:not('.hidden,#next_point')").first().index();a("#paging a:eq("+(i+d-1)+")").addClass("hidden"),a("#paging a").removeClass("active"),a("#paging a:eq("+(i-1)+")").removeClass("hidden").addClass("active");var t=n*((r=i-1)-1);s.hide();for(var p=t-n;p2&&dd&&d2&&d=o&&(r-=1),a("#paging a").removeClass("active"),a("#paging a:not('#next_point'):eq("+r+")").addClass("active"),a("#paging a:not('#next_point'):eq("+r+")").removeClass("hidden"),a("#paging a.hidden").length>=1&&a("#paging a:not('#next_point,#paging a:last'):eq("+(r+d)+")").addClass("hidden"),s.hide(),d=o||r-1===o&&dd&&d=o&&(r+=1);var p=n*r;dd&&a("#paging a.hidden").length>=1&&a("#paging a:not('#next_point,#paging a:last'):eq("+(r-d)+")").addClass("hidden"),s.hide();for(var g=p-n;gh;h++){var j=this[h],k=a.data(j,b);if(k)if(a.isFunction(k[e])&&"_"!==e.charAt(0)){var l=k[e].apply(k,g);if(void 0!==l)return l}else f("no such method '"+e+"' for "+b+" instance");else f("cannot call methods on "+b+" prior to initialization; attempted to call '"+e+"'")}return this}return this.each(function(){var d=a.data(this,b);d?(d.option(e),d._init()):(d=new c(this,e),a.data(this,b,d))})}}if(a){var f="undefined"==typeof console?b:function(a){console.error(a)};return a.bridget=function(a,b){c(b),e(a,b)},a.bridget}}var d=Array.prototype.slice;"function"==typeof define&&define.amd?define("jquery-bridget/jquery.bridget",["jquery"],c):c("object"==typeof exports?require("jquery"):a.jQuery)}(window),function(a){function b(b){var c=a.event;return c.target=c.target||c.srcElement||b,c}var c=document.documentElement,d=function(){};c.addEventListener?d=function(a,b,c){a.addEventListener(b,c,!1)}:c.attachEvent&&(d=function(a,c,d){a[c+d]=d.handleEvent?function(){var c=b(a);d.handleEvent.call(d,c)}:function(){var c=b(a);d.call(a,c)},a.attachEvent("on"+c,a[c+d])});var e=function(){};c.removeEventListener?e=function(a,b,c){a.removeEventListener(b,c,!1)}:c.detachEvent&&(e=function(a,b,c){a.detachEvent("on"+b,a[b+c]);try{delete a[b+c]}catch(d){a[b+c]=void 0}});var f={bind:d,unbind:e};"function"==typeof define&&define.amd?define("eventie/eventie",f):"object"==typeof exports?module.exports=f:a.eventie=f}(window),function(){function a(){}function b(a,b){for(var c=a.length;c--;)if(a[c].listener===b)return c;return-1}function c(a){return function(){return this[a].apply(this,arguments)}}var d=a.prototype,e=this,f=e.EventEmitter;d.getListeners=function(a){var b,c,d=this._getEvents();if(a instanceof RegExp){b={};for(c in d)d.hasOwnProperty(c)&&a.test(c)&&(b[c]=d[c])}else b=d[a]||(d[a]=[]);return b},d.flattenListeners=function(a){var b,c=[];for(b=0;be;e++)if(b=c[e]+a,"string"==typeof d[b])return b}}var c="Webkit Moz ms Ms O".split(" "),d=document.documentElement.style;"function"==typeof define&&define.amd?define("get-style-property/get-style-property",[],function(){return b}):"object"==typeof exports?module.exports=b:a.getStyleProperty=b}(window),function(a){function b(a){var b=parseFloat(a),c=-1===a.indexOf("%")&&!isNaN(b);return c&&b}function c(){}function d(){for(var a={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0},b=0,c=g.length;c>b;b++){var d=g[b];a[d]=0}return a}function e(c){function e(){if(!m){m=!0;var d=a.getComputedStyle;if(j=function(){var a=d?function(a){return d(a,null)}:function(a){return a.currentStyle};return function(b){var c=a(b);return c||f("Style returned "+c+". Are you running this code in a hidden iframe on Firefox? See https://bit.ly/getsizebug1"),c}}(),k=c("boxSizing")){var e=document.createElement("div");e.style.width="200px",e.style.padding="1px 2px 3px 4px",e.style.borderStyle="solid",e.style.borderWidth="1px 2px 3px 4px",e.style[k]="border-box";var g=document.body||document.documentElement;g.appendChild(e);var h=j(e);l=200===b(h.width),g.removeChild(e)}}}function h(a){if(e(),"string"==typeof a&&(a=document.querySelector(a)),a&&"object"==typeof a&&a.nodeType){var c=j(a);if("none"===c.display)return d();var f={};f.width=a.offsetWidth,f.height=a.offsetHeight;for(var h=f.isBorderBox=!(!k||!c[k]||"border-box"!==c[k]),m=0,n=g.length;n>m;m++){var o=g[m],p=c[o];p=i(a,p);var q=parseFloat(p);f[o]=isNaN(q)?0:q}var r=f.paddingLeft+f.paddingRight,s=f.paddingTop+f.paddingBottom,t=f.marginLeft+f.marginRight,u=f.marginTop+f.marginBottom,v=f.borderLeftWidth+f.borderRightWidth,w=f.borderTopWidth+f.borderBottomWidth,x=h&&l,y=b(c.width);y!==!1&&(f.width=y+(x?0:r+v));var z=b(c.height);return z!==!1&&(f.height=z+(x?0:s+w)),f.innerWidth=f.width-(r+v),f.innerHeight=f.height-(s+w),f.outerWidth=f.width+t,f.outerHeight=f.height+u,f}}function i(b,c){if(a.getComputedStyle||-1===c.indexOf("%"))return c;var d=b.style,e=d.left,f=b.runtimeStyle,g=f&&f.left;return g&&(f.left=b.currentStyle.left),d.left=c,c=d.pixelLeft,d.left=e,g&&(f.left=g),c}var j,k,l,m=!1;return h}var f="undefined"==typeof console?c:function(a){console.error(a)},g=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"];"function"==typeof define&&define.amd?define("get-size/get-size",["get-style-property/get-style-property"],e):"object"==typeof exports?module.exports=e(require("desandro-get-style-property")):a.getSize=e(a.getStyleProperty)}(window),function(a){function b(a){"function"==typeof a&&(b.isReady?a():g.push(a))}function c(a){var c="readystatechange"===a.type&&"complete"!==f.readyState;b.isReady||c||d()}function d(){b.isReady=!0;for(var a=0,c=g.length;c>a;a++){var d=g[a];d()}}function e(e){return"complete"===f.readyState?d():(e.bind(f,"DOMContentLoaded",c),e.bind(f,"readystatechange",c),e.bind(a,"load",c)),b}var f=a.document,g=[];b.isReady=!1,"function"==typeof define&&define.amd?define("doc-ready/doc-ready",["eventie/eventie"],e):"object"==typeof exports?module.exports=e(require("eventie")):a.docReady=e(a.eventie)}(window),function(a){function b(a,b){return a[g](b)}function c(a){if(!a.parentNode){var b=document.createDocumentFragment();b.appendChild(a)}}function d(a,b){c(a);for(var d=a.parentNode.querySelectorAll(b),e=0,f=d.length;f>e;e++)if(d[e]===a)return!0;return!1}function e(a,d){return c(a),b(a,d)}var f,g=function(){if(a.matches)return"matches";if(a.matchesSelector)return"matchesSelector";for(var b=["webkit","moz","ms","o"],c=0,d=b.length;d>c;c++){var e=b[c],f=e+"MatchesSelector";if(a[f])return f}}();if(g){var h=document.createElement("div"),i=b(h,"div");f=i?b:e}else f=d;"function"==typeof define&&define.amd?define("matches-selector/matches-selector",[],function(){return f}):"object"==typeof exports?module.exports=f:window.matchesSelector=f}(Element.prototype),function(a,b){"function"==typeof define&&define.amd?define("fizzy-ui-utils/utils",["doc-ready/doc-ready","matches-selector/matches-selector"],function(c,d){return b(a,c,d)}):"object"==typeof exports?module.exports=b(a,require("doc-ready"),require("desandro-matches-selector")):a.fizzyUIUtils=b(a,a.docReady,a.matchesSelector)}(window,function(a,b,c){var d={};d.extend=function(a,b){for(var c in b)a[c]=b[c];return a},d.modulo=function(a,b){return(a%b+b)%b};var e=Object.prototype.toString;d.isArray=function(a){return"[object Array]"==e.call(a)},d.makeArray=function(a){var b=[];if(d.isArray(a))b=a;else if(a&&"number"==typeof a.length)for(var c=0,e=a.length;e>c;c++)b.push(a[c]);else b.push(a);return b},d.indexOf=Array.prototype.indexOf?function(a,b){return a.indexOf(b)}:function(a,b){for(var c=0,d=a.length;d>c;c++)if(a[c]===b)return c;return-1},d.removeFrom=function(a,b){var c=d.indexOf(a,b);-1!=c&&a.splice(c,1)},d.isElement="function"==typeof HTMLElement||"object"==typeof HTMLElement?function(a){return a instanceof HTMLElement}:function(a){return a&&"object"==typeof a&&1==a.nodeType&&"string"==typeof a.nodeName},d.setText=function(){function a(a,c){b=b||(void 0!==document.documentElement.textContent?"textContent":"innerText"),a[b]=c}var b;return a}(),d.getParent=function(a,b){for(;a!=document.body;)if(a=a.parentNode,c(a,b))return a},d.getQueryElement=function(a){return"string"==typeof a?document.querySelector(a):a},d.handleEvent=function(a){var b="on"+a.type;this[b]&&this[b](a)},d.filterFindElements=function(a,b){a=d.makeArray(a);for(var e=[],f=0,g=a.length;g>f;f++){var h=a[f];if(d.isElement(h))if(b){c(h,b)&&e.push(h);for(var i=h.querySelectorAll(b),j=0,k=i.length;k>j;j++)e.push(i[j])}else e.push(h)}return e},d.debounceMethod=function(a,b,c){var d=a.prototype[b],e=b+"Timeout";a.prototype[b]=function(){var a=this[e];a&&clearTimeout(a);var b=arguments,f=this;this[e]=setTimeout(function(){d.apply(f,b),delete f[e]},c||100)}},d.toDashed=function(a){return a.replace(/(.)([A-Z])/g,function(a,b,c){return b+"-"+c}).toLowerCase()};var f=a.console;return d.htmlInit=function(c,e){b(function(){for(var b=d.toDashed(e),g=document.querySelectorAll(".js-"+b),h="data-"+b+"-options",i=0,j=g.length;j>i;i++){var k,l=g[i],m=l.getAttribute(h);try{k=m&&JSON.parse(m)}catch(n){f&&f.error("Error parsing "+h+" on "+l.nodeName.toLowerCase()+(l.id?"#"+l.id:"")+": "+n);continue}var o=new c(l,k),p=a.jQuery;p&&p.data(l,e,o)}})},d}),function(a,b){"function"==typeof define&&define.amd?define("outlayer/item",["eventEmitter/EventEmitter","get-size/get-size","get-style-property/get-style-property","fizzy-ui-utils/utils"],function(c,d,e,f){return b(a,c,d,e,f)}):"object"==typeof exports?module.exports=b(a,require("wolfy87-eventemitter"),require("get-size"),require("desandro-get-style-property"),require("fizzy-ui-utils")):(a.Outlayer={},a.Outlayer.Item=b(a,a.EventEmitter,a.getSize,a.getStyleProperty,a.fizzyUIUtils))}(window,function(a,b,c,d,e){function f(a){for(var b in a)return!1;return b=null,!0}function g(a,b){a&&(this.element=a,this.layout=b,this.position={x:0,y:0},this._create())}function h(a){return a.replace(/([A-Z])/g,function(a){return"-"+a.toLowerCase()})}var i=a.getComputedStyle,j=i?function(a){return i(a,null)}:function(a){return a.currentStyle},k=d("transition"),l=d("transform"),m=k&&l,n=!!d("perspective"),o={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"otransitionend",transition:"transitionend"}[k],p=["transform","transition","transitionDuration","transitionProperty"],q=function(){for(var a={},b=0,c=p.length;c>b;b++){var e=p[b],f=d(e);f&&f!==e&&(a[e]=f)}return a}();e.extend(g.prototype,b.prototype),g.prototype._create=function(){this._transn={ingProperties:{},clean:{},onEnd:{}},this.css({position:"absolute"})},g.prototype.handleEvent=function(a){var b="on"+a.type;this[b]&&this[b](a)},g.prototype.getSize=function(){this.size=c(this.element)},g.prototype.css=function(a){var b=this.element.style;for(var c in a){var d=q[c]||c;b[d]=a[c]}},g.prototype.getPosition=function(){var a=j(this.element),b=this.layout.options,c=b.isOriginLeft,d=b.isOriginTop,e=a[c?"left":"right"],f=a[d?"top":"bottom"],g=this.layout.size,h=-1!=e.indexOf("%")?parseFloat(e)/100*g.width:parseInt(e,10),i=-1!=f.indexOf("%")?parseFloat(f)/100*g.height:parseInt(f,10);h=isNaN(h)?0:h,i=isNaN(i)?0:i,h-=c?g.paddingLeft:g.paddingRight,i-=d?g.paddingTop:g.paddingBottom,this.position.x=h,this.position.y=i},g.prototype.layoutPosition=function(){var a=this.layout.size,b=this.layout.options,c={},d=b.isOriginLeft?"paddingLeft":"paddingRight",e=b.isOriginLeft?"left":"right",f=b.isOriginLeft?"right":"left",g=this.position.x+a[d];c[e]=this.getXValue(g),c[f]="";var h=b.isOriginTop?"paddingTop":"paddingBottom",i=b.isOriginTop?"top":"bottom",j=b.isOriginTop?"bottom":"top",k=this.position.y+a[h];c[i]=this.getYValue(k),c[j]="",this.css(c),this.emitEvent("layout",[this])},g.prototype.getXValue=function(a){var b=this.layout.options;return b.percentPosition&&!b.isHorizontal?a/this.layout.size.width*100+"%":a+"px"},g.prototype.getYValue=function(a){var b=this.layout.options;return b.percentPosition&&b.isHorizontal?a/this.layout.size.height*100+"%":a+"px"},g.prototype._transitionTo=function(a,b){this.getPosition();var c=this.position.x,d=this.position.y,e=parseInt(a,10),f=parseInt(b,10),g=e===this.position.x&&f===this.position.y;if(this.setPosition(a,b),g&&!this.isTransitioning)return void this.layoutPosition();var h=a-c,i=b-d,j={};j.transform=this.getTranslate(h,i),this.transition({to:j,onTransitionEnd:{transform:this.layoutPosition},isCleaning:!0})},g.prototype.getTranslate=function(a,b){var c=this.layout.options;return a=c.isOriginLeft?a:-a,b=c.isOriginTop?b:-b,n?"translate3d("+a+"px, "+b+"px, 0)":"translate("+a+"px, "+b+"px)"},g.prototype.goTo=function(a,b){this.setPosition(a,b),this.layoutPosition()},g.prototype.moveTo=m?g.prototype._transitionTo:g.prototype.goTo,g.prototype.setPosition=function(a,b){this.position.x=parseInt(a,10),this.position.y=parseInt(b,10)},g.prototype._nonTransition=function(a){this.css(a.to),a.isCleaning&&this._removeStyles(a.to);for(var b in a.onTransitionEnd)a.onTransitionEnd[b].call(this)},g.prototype._transition=function(a){if(!parseFloat(this.layout.options.transitionDuration))return void this._nonTransition(a);var b=this._transn;for(var c in a.onTransitionEnd)b.onEnd[c]=a.onTransitionEnd[c];for(c in a.to)b.ingProperties[c]=!0,a.isCleaning&&(b.clean[c]=!0);if(a.from){this.css(a.from);var d=this.element.offsetHeight;d=null}this.enableTransition(a.to),this.css(a.to),this.isTransitioning=!0};var r="opacity,"+h(q.transform||"transform");g.prototype.enableTransition=function(){this.isTransitioning||(this.css({transitionProperty:r,transitionDuration:this.layout.options.transitionDuration}),this.element.addEventListener(o,this,!1))},g.prototype.transition=g.prototype[k?"_transition":"_nonTransition"],g.prototype.onwebkitTransitionEnd=function(a){this.ontransitionend(a)},g.prototype.onotransitionend=function(a){this.ontransitionend(a)};var s={"-webkit-transform":"transform","-moz-transform":"transform","-o-transform":"transform"};g.prototype.ontransitionend=function(a){if(a.target===this.element){var b=this._transn,c=s[a.propertyName]||a.propertyName;if(delete b.ingProperties[c],f(b.ingProperties)&&this.disableTransition(),c in b.clean&&(this.element.style[a.propertyName]="",delete b.clean[c]),c in b.onEnd){var d=b.onEnd[c];d.call(this),delete b.onEnd[c]}this.emitEvent("transitionEnd",[this])}},g.prototype.disableTransition=function(){this.removeTransitionStyles(),this.element.removeEventListener(o,this,!1),this.isTransitioning=!1},g.prototype._removeStyles=function(a){var b={};for(var c in a)b[c]="";this.css(b)};var t={transitionProperty:"",transitionDuration:""};return g.prototype.removeTransitionStyles=function(){this.css(t)},g.prototype.removeElem=function(){this.element.parentNode.removeChild(this.element),this.css({display:""}),this.emitEvent("remove",[this])},g.prototype.remove=function(){if(!k||!parseFloat(this.layout.options.transitionDuration))return void this.removeElem();var a=this;this.once("transitionEnd",function(){a.removeElem()}),this.hide()},g.prototype.reveal=function(){delete this.isHidden,this.css({display:""});var a=this.layout.options,b={},c=this.getHideRevealTransitionEndProperty("visibleStyle");b[c]=this.onRevealTransitionEnd,this.transition({from:a.hiddenStyle,to:a.visibleStyle,isCleaning:!0,onTransitionEnd:b})},g.prototype.onRevealTransitionEnd=function(){this.isHidden||this.emitEvent("reveal")},g.prototype.getHideRevealTransitionEndProperty=function(a){var b=this.layout.options[a];if(b.opacity)return"opacity";for(var c in b)return c},g.prototype.hide=function(){this.isHidden=!0,this.css({display:""});var a=this.layout.options,b={},c=this.getHideRevealTransitionEndProperty("hiddenStyle");b[c]=this.onHideTransitionEnd,this.transition({from:a.visibleStyle,to:a.hiddenStyle,isCleaning:!0,onTransitionEnd:b})},g.prototype.onHideTransitionEnd=function(){this.isHidden&&(this.css({display:"none"}),this.emitEvent("hide"))},g.prototype.destroy=function(){this.css({position:"",left:"",right:"",top:"",bottom:"",transition:"",transform:""})},g}),function(a,b){"function"==typeof define&&define.amd?define("outlayer/outlayer",["eventie/eventie","eventEmitter/EventEmitter","get-size/get-size","fizzy-ui-utils/utils","./item"],function(c,d,e,f,g){return b(a,c,d,e,f,g)}):"object"==typeof exports?module.exports=b(a,require("eventie"),require("wolfy87-eventemitter"),require("get-size"),require("fizzy-ui-utils"),require("./item")):a.Outlayer=b(a,a.eventie,a.EventEmitter,a.getSize,a.fizzyUIUtils,a.Outlayer.Item)}(window,function(a,b,c,d,e,f){function g(a,b){var c=e.getQueryElement(a);if(!c)return void(h&&h.error("Bad element for "+this.constructor.namespace+": "+(c||a)));this.element=c,i&&(this.$element=i(this.element)),this.options=e.extend({},this.constructor.defaults),this.option(b);var d=++k;this.element.outlayerGUID=d,l[d]=this,this._create(),this.options.isInitLayout&&this.layout()}var h=a.console,i=a.jQuery,j=function(){},k=0,l={};return g.namespace="outlayer",g.Item=f,g.defaults={containerStyle:{position:"relative"},isInitLayout:!0,isOriginLeft:!0,isOriginTop:!0,isResizeBound:!0,isResizingContainer:!0,transitionDuration:"0.4s",hiddenStyle:{opacity:0,transform:"scale(0.001)"},visibleStyle:{opacity:1,transform:"scale(1)"}},e.extend(g.prototype,c.prototype),g.prototype.option=function(a){e.extend(this.options,a)},g.prototype._create=function(){this.reloadItems(),this.stamps=[],this.stamp(this.options.stamp),e.extend(this.element.style,this.options.containerStyle),this.options.isResizeBound&&this.bindResize()},g.prototype.reloadItems=function(){this.items=this._itemize(this.element.children)},g.prototype._itemize=function(a){for(var b=this._filterFindItemElements(a),c=this.constructor.Item,d=[],e=0,f=b.length;f>e;e++){var g=b[e],h=new c(g,this);d.push(h)}return d},g.prototype._filterFindItemElements=function(a){return e.filterFindElements(a,this.options.itemSelector)},g.prototype.getItemElements=function(){for(var a=[],b=0,c=this.items.length;c>b;b++)a.push(this.items[b].element);return a},g.prototype.layout=function(){this._resetLayout(),this._manageStamps();var a=void 0!==this.options.isLayoutInstant?this.options.isLayoutInstant:!this._isLayoutInited;this.layoutItems(this.items,a),this._isLayoutInited=!0},g.prototype._init=g.prototype.layout,g.prototype._resetLayout=function(){this.getSize()},g.prototype.getSize=function(){this.size=d(this.element)},g.prototype._getMeasurement=function(a,b){var c,f=this.options[a];f?("string"==typeof f?c=this.element.querySelector(f):e.isElement(f)&&(c=f),this[a]=c?d(c)[b]:f):this[a]=0},g.prototype.layoutItems=function(a,b){a=this._getItemsForLayout(a),this._layoutItems(a,b),this._postLayout()},g.prototype._getItemsForLayout=function(a){for(var b=[],c=0,d=a.length;d>c;c++){var e=a[c];e.isIgnored||b.push(e)}return b},g.prototype._layoutItems=function(a,b){if(this._emitCompleteOnItems("layout",a),a&&a.length){for(var c=[],d=0,e=a.length;e>d;d++){var f=a[d],g=this._getItemLayoutPosition(f);g.item=f,g.isInstant=b||f.isLayoutInstant,c.push(g)}this._processLayoutQueue(c)}},g.prototype._getItemLayoutPosition=function(){return{x:0,y:0}},g.prototype._processLayoutQueue=function(a){for(var b=0,c=a.length;c>b;b++){var d=a[b];this._positionItem(d.item,d.x,d.y,d.isInstant)}},g.prototype._positionItem=function(a,b,c,d){d?a.goTo(b,c):a.moveTo(b,c)},g.prototype._postLayout=function(){this.resizeContainer()},g.prototype.resizeContainer=function(){if(this.options.isResizingContainer){var a=this._getContainerSize();a&&(this._setContainerMeasure(a.width,!0),this._setContainerMeasure(a.height,!1))}},g.prototype._getContainerSize=j,g.prototype._setContainerMeasure=function(a,b){if(void 0!==a){var c=this.size;c.isBorderBox&&(a+=b?c.paddingLeft+c.paddingRight+c.borderLeftWidth+c.borderRightWidth:c.paddingBottom+c.paddingTop+c.borderTopWidth+c.borderBottomWidth),a=Math.max(a,0),this.element.style[b?"width":"height"]=a+"px"}},g.prototype._emitCompleteOnItems=function(a,b){function c(){e.dispatchEvent(a+"Complete",null,[b])}function d(){g++,g===f&&c()}var e=this,f=b.length;if(!b||!f)return void c();for(var g=0,h=0,i=b.length;i>h;h++){var j=b[h];j.once(a,d)}},g.prototype.dispatchEvent=function(a,b,c){var d=b?[b].concat(c):c;if(this.emitEvent(a,d),i)if(this.$element=this.$element||i(this.element),b){var e=i.Event(b);e.type=a,this.$element.trigger(e,c)}else this.$element.trigger(a,c)},g.prototype.ignore=function(a){var b=this.getItem(a);b&&(b.isIgnored=!0)},g.prototype.unignore=function(a){var b=this.getItem(a);b&&delete b.isIgnored},g.prototype.stamp=function(a){if(a=this._find(a)){this.stamps=this.stamps.concat(a);for(var b=0,c=a.length;c>b;b++){var d=a[b];this.ignore(d)}}},g.prototype.unstamp=function(a){if(a=this._find(a))for(var b=0,c=a.length;c>b;b++){var d=a[b];e.removeFrom(this.stamps,d),this.unignore(d)}},g.prototype._find=function(a){return a?("string"==typeof a&&(a=this.element.querySelectorAll(a)),a=e.makeArray(a)):void 0},g.prototype._manageStamps=function(){if(this.stamps&&this.stamps.length){this._getBoundingRect();for(var a=0,b=this.stamps.length;b>a;a++){var c=this.stamps[a];this._manageStamp(c)}}},g.prototype._getBoundingRect=function(){var a=this.element.getBoundingClientRect(),b=this.size;this._boundingRect={left:a.left+b.paddingLeft+b.borderLeftWidth,top:a.top+b.paddingTop+b.borderTopWidth,right:a.right-(b.paddingRight+b.borderRightWidth),bottom:a.bottom-(b.paddingBottom+b.borderBottomWidth)}},g.prototype._manageStamp=j,g.prototype._getElementOffset=function(a){var b=a.getBoundingClientRect(),c=this._boundingRect,e=d(a),f={left:b.left-c.left-e.marginLeft,top:b.top-c.top-e.marginTop,right:c.right-b.right-e.marginRight,bottom:c.bottom-b.bottom-e.marginBottom};return f},g.prototype.handleEvent=function(a){var b="on"+a.type;this[b]&&this[b](a)},g.prototype.bindResize=function(){this.isResizeBound||(b.bind(a,"resize",this),this.isResizeBound=!0)},g.prototype.unbindResize=function(){this.isResizeBound&&b.unbind(a,"resize",this),this.isResizeBound=!1},g.prototype.onresize=function(){function a(){b.resize(),delete b.resizeTimeout}this.resizeTimeout&&clearTimeout(this.resizeTimeout);var b=this;this.resizeTimeout=setTimeout(a,100)},g.prototype.resize=function(){this.isResizeBound&&this.needsResizeLayout()&&this.layout()},g.prototype.needsResizeLayout=function(){var a=d(this.element),b=this.size&&a;return b&&a.innerWidth!==this.size.innerWidth},g.prototype.addItems=function(a){var b=this._itemize(a);return b.length&&(this.items=this.items.concat(b)),b},g.prototype.appended=function(a){var b=this.addItems(a);b.length&&(this.layoutItems(b,!0),this.reveal(b))},g.prototype.prepended=function(a){var b=this._itemize(a);if(b.length){var c=this.items.slice(0);this.items=b.concat(c),this._resetLayout(),this._manageStamps(),this.layoutItems(b,!0),this.reveal(b),this.layoutItems(c)}},g.prototype.reveal=function(a){this._emitCompleteOnItems("reveal",a);for(var b=a&&a.length,c=0;b&&b>c;c++){var d=a[c];d.reveal()}},g.prototype.hide=function(a){this._emitCompleteOnItems("hide",a);for(var b=a&&a.length,c=0;b&&b>c;c++){var d=a[c];d.hide()}},g.prototype.revealItemElements=function(a){var b=this.getItems(a);this.reveal(b)},g.prototype.hideItemElements=function(a){var b=this.getItems(a);this.hide(b)},g.prototype.getItem=function(a){for(var b=0,c=this.items.length;c>b;b++){var d=this.items[b];if(d.element===a)return d}},g.prototype.getItems=function(a){a=e.makeArray(a);for(var b=[],c=0,d=a.length;d>c;c++){var f=a[c],g=this.getItem(f);g&&b.push(g)}return b},g.prototype.remove=function(a){var b=this.getItems(a);if(this._emitCompleteOnItems("remove",b),b&&b.length)for(var c=0,d=b.length;d>c;c++){var f=b[c];f.remove(),e.removeFrom(this.items,f)}},g.prototype.destroy=function(){var a=this.element.style;a.height="",a.position="",a.width="";for(var b=0,c=this.items.length;c>b;b++){var d=this.items[b];d.destroy()}this.unbindResize();var e=this.element.outlayerGUID;delete l[e],delete this.element.outlayerGUID,i&&i.removeData(this.element,this.constructor.namespace)},g.data=function(a){a=e.getQueryElement(a);var b=a&&a.outlayerGUID;return b&&l[b]},g.create=function(a,b){function c(){g.apply(this,arguments)}return Object.create?c.prototype=Object.create(g.prototype):e.extend(c.prototype,g.prototype),c.prototype.constructor=c,c.defaults=e.extend({},g.defaults),e.extend(c.defaults,b),c.prototype.settings={},c.namespace=a,c.data=g.data,c.Item=function(){f.apply(this,arguments)},c.Item.prototype=new f,e.htmlInit(c,a),i&&i.bridget&&i.bridget(a,c),c},g.Item=f,g}),function(a,b){"function"==typeof define&&define.amd?define(["outlayer/outlayer","get-size/get-size","fizzy-ui-utils/utils"],b):"object"==typeof exports?module.exports=b(require("outlayer"),require("get-size"),require("fizzy-ui-utils")):a.Masonry=b(a.Outlayer,a.getSize,a.fizzyUIUtils)}(window,function(a,b,c){var d=a.create("masonry");return d.prototype._resetLayout=function(){this.getSize(),this._getMeasurement("columnWidth","outerWidth"),this._getMeasurement("gutter","outerWidth"),this.measureColumns();var a=this.cols;for(this.colYs=[];a--;)this.colYs.push(0);this.maxY=0},d.prototype.measureColumns=function(){if(this.getContainerWidth(),!this.columnWidth){var a=this.items[0],c=a&&a.element;this.columnWidth=c&&b(c).outerWidth||this.containerWidth}var d=this.columnWidth+=this.gutter,e=this.containerWidth+this.gutter,f=e/d,g=d-e%d,h=g&&1>g?"round":"floor";f=Math[h](f),this.cols=Math.max(f,1)},d.prototype.getContainerWidth=function(){var a=this.options.isFitWidth?this.element.parentNode:this.element,c=b(a);this.containerWidth=c&&c.innerWidth},d.prototype._getItemLayoutPosition=function(a){a.getSize();var b=a.size.outerWidth%this.columnWidth,d=b&&1>b?"round":"ceil",e=Math[d](a.size.outerWidth/this.columnWidth);e=Math.min(e,this.cols);for(var f=this._getColGroup(e),g=Math.min.apply(Math,f),h=c.indexOf(f,g),i={x:this.columnWidth*h,y:g},j=g+a.size.outerHeight,k=this.cols+1-f.length,l=0;k>l;l++)this.colYs[h+l]=j;return i},d.prototype._getColGroup=function(a){if(2>a)return this.colYs;for(var b=[],c=this.cols+1-a,d=0;c>d;d++){var e=this.colYs.slice(d,d+a);b[d]=Math.max.apply(Math,e)}return b},d.prototype._manageStamp=function(a){var c=b(a),d=this._getElementOffset(a),e=this.options.isOriginLeft?d.left:d.right,f=e+c.outerWidth,g=Math.floor(e/this.columnWidth);g=Math.max(0,g);var h=Math.floor(f/this.columnWidth);h-=f%this.columnWidth?0:1,h=Math.min(this.cols-1,h);for(var i=(this.options.isOriginTop?d.top:d.bottom)+c.outerHeight,j=g;h>=j;j++)this.colYs[j]=Math.max(i,this.colYs[j])},d.prototype._getContainerSize=function(){this.maxY=Math.max.apply(Math,this.colYs);var a={height:this.maxY};return this.options.isFitWidth&&(a.width=this._getContainerFitWidth()),a},d.prototype._getContainerFitWidth=function(){for(var a=0,b=this.cols;--b&&0===this.colYs[b];)a++;return(this.cols-a)*this.columnWidth-this.gutter},d.prototype.needsResizeLayout=function(){var a=this.containerWidth;return this.getContainerWidth(),a!==this.containerWidth},d}); } catch(e){console.error("An error has occurred: "+e.stack);} /* https://ca.onair.cc/wp-content/themes/onair-7.0/assets/js/menu-imp.js */ try{ jQuery(document).ready(function(){(function($){$.fn.outside=function(ename,cb){return this.each(function(){var $this=$(this),self=this;$(document).bind(ename,function tempo(e){if(e.target!==self&&!$.contains(self,e.target)){cb.apply(self,[e]);if(!self.parentNode)$(document.body).unbind(ename,tempo)}})})}}(jQuery));jQuery('.nav .dropdown > .dropdown-toggle').each(function(){var width=jQuery(this).width();var currentId=jQuery(this).parent().attr('id');if(jQuery('#'+currentId+' .dropdown-toplvl').length==0&&jQuery(this).attr('href')!='#'){var topClone=jQuery(this).clone(this);topClone.prependTo('#'+currentId+' > .dropdown-menu');jQuery('#'+currentId+' .dropdown-menu > .dropdown-toggle:first-child').removeAttr('data-toggle').removeClass('disapear dropdown-toggle').addClass('dropdown-toggled').wrapAll('');jQuery('#'+currentId+' > .dropdown-menu .dropdown-toplvl .caret').remove()} jQuery(this).attr('href','#')});jQuery.hasTouch=!1;window.addEventListener('touchstart',function setHasTouch(){jQuery.hasTouch=!0;window.removeEventListener('touchstart',setHasTouch)},!1);jQuery('.nav li.menu-item-has-children').each(function(){var link=jQuery(this).find('> a.dropdown-toggle');link.dblclick(function(){window.location.replace(jQuery(this).attr('href'))});link.click(function(){if(('ontouchstart' in window)||(navigator.maxTouchPoints>0)||(navigator.msMaxTouchPoints>0)){jQuery.hasTouch=!0} if(!jQuery.hasTouch){window.location.replace(jQuery(this).attr('href'))}})});jQuery('#wp-admin-bar-howto a').click(function(){jQuery('#howto').modal('show')});jQuery('.oa-navicon').hover(function(){var element=jQuery(this);var altSrc=jQuery(element).find('img').attr('oa-alt');var nowSrc=jQuery(element).find('img').attr('src');jQuery(element).find('img').attr('oa-alt',nowSrc);jQuery(element).find('img').attr('src',altSrc)},function(){var element=jQuery(this);var altSrc=jQuery(element).find('img').attr('oa-alt');var nowSrc=jQuery(element).find('img').attr('src');jQuery(element).find('img').attr('oa-alt',nowSrc);jQuery(element).find('img').attr('src',altSrc)});jQuery('.oa-navicon').click(function(){var element=jQuery(this);var altSrc=jQuery(element).find('img').attr('oa-alt');var nowSrc=jQuery(element).find('img').attr('src');jQuery(element).find('img').attr('oa-alt',nowSrc);jQuery(element).find('img').attr('src',altSrc)},function(){var element=jQuery(this);var altSrc=jQuery(element).find('img').attr('oa-alt');var nowSrc=jQuery(element).find('img').attr('src');jQuery(element).find('img').attr('oa-alt',nowSrc);jQuery(element).find('img').attr('src',altSrc)});var bc_dropdown=jQuery('.top-title-container .breadcrumb-mod .current .dropdown-menu');if(bc_dropdown.length>0){jQuery('.top-title-container .breadcrumb-mod .current').mouseover(function(){jQuery('.top-title-container .breadcrumb-mod .current .dropdown-menu').show()});jQuery('.top-title-container .breadcrumb-mod .current').mouseout(function(){jQuery('.top-title-container .breadcrumb-mod .current .dropdown-menu').hide()})} jQuery('.cat-post-widget .post-title').each(function(){jQuery(this).insertAfter(jQuery(this).next())});if(jQuery('#header > .navbar').length>0){jQuery.navbarHeight=jQuery('#header > .navbar').offset().top-jQuery('#wpadminbar').outerHeight();jQuery(window).scroll(function(){if(jQuery(window).scrollTop()>jQuery.navbarHeight){jQuery('#header > .navbar').addClass('fixed')}else{jQuery('#header > .navbar').removeClass('fixed')}})} jQuery.expr[':'].focus=function(elem){return elem===document.activeElement&&(elem.type||elem.href)};jQuery('.intel-nav-container .caret').click(function(){jQuery(this).toggleClass('open')});if(!isLargeScreen()){var searchWrapper=jQuery('');jQuery('#wp-toolbar #wp-admin-bar-advsearch > div > form#searchform').clone().attr('id','').appendTo(searchWrapper);searchWrapper.appendTo('#sitemap> ul.intelnav:last-child')}}); } catch(e){console.error("An error has occurred: "+e.stack);} /* https://ca.onair.cc/wp-content/themes/onair-7.0/lib/jquery.autoellipsis-1.0.10.min.js */ try{ /*! Copyright (c) 2011 Peter van der Spek Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */(function(a){function m(){if(!d){d=!0;for(var c in b)a(c).each(function(){var d,e;d=a(this),e=d.data("jqae"),(e.containerWidth!=d.width()||e.containerHeight!=d.height())&&f(d,b[c])});d=!1}}function l(a){b[a]&&(delete b[a],b.length||c&&(window.clearInterval(c),c=undefined))}function k(a,d){b[a]=d,c||(c=window.setInterval(function(){m()},200))}function j(){return this.nodeType===3}function i(b){if(b.contents().length){var c=b.contents(),d=c.eq(c.length-1);if(d.filter(j).length){var e=d.get(0).nodeValue;e=a.trim(e);if(e==""){d.remove();return!0}return!1}while(i(d));if(d.contents().length)return!1;d.remove();return!0}return!1}function h(a){if(a.contents().length){var b=a.contents(),c=b.eq(b.length-1);return c.filter(j).length?c:h(c)}a.append("");var b=a.contents();return b.eq(b.length-1)}function g(b){var c=h(b);if(c.length){var d=c.get(0).nodeValue,e=d.lastIndexOf(" ");e>-1?(d=a.trim(d.substring(0,e)),c.get(0).nodeValue=d):c.get(0).nodeValue="";return!0}return!1}function f(b,c){var d=b.data("jqae");d||(d={});var e=d.wrapperElement;e||(e=b.wrapInner("
").find(">div"),e.css({margin:0,padding:0,border:0}));var f=e.data("jqae");f||(f={});var j=f.originalContent;j?e=f.originalContent.clone(!0).data("jqae",{originalContent:j}).replaceAll(e):e.data("jqae",{originalContent:e.clone(!0)}),b.data("jqae",{wrapperElement:e,containerWidth:b.width(),containerHeight:b.height()});var k=b.height(),l=(parseInt(b.css("padding-top"),10)||0)+(parseInt(b.css("border-top-width"),10)||0)-(e.offset().top-b.offset().top),m=!1,n=e;c.selector&&(n=a(e.find(c.selector).get().reverse())),n.each(function(){var b=a(this),d=b.text(),f=!1;if(e.innerHeight()-b.innerHeight()>k+l)b.remove();else{i(b);if(b.contents().length){m&&(h(b).get(0).nodeValue+=c.ellipsis,m=!1);while(e.innerHeight()>k+l){f=g(b);if(!f){m=!0,b.remove();break}i(b);if(b.contents().length)h(b).get(0).nodeValue+=c.ellipsis;else{m=!0,b.remove();break}}c.setTitle=="onEllipsis"&&f||c.setTitle=="always"?b.attr("title",d):c.setTitle!="never"&&b.removeAttr("title")}}})}var b={},c,d=!1,e={ellipsis:"...",setTitle:"never",live:!1};a.fn.ellipsis=function(b,c){var d,g;d=a(this),typeof b!="string"&&(c=b,b=undefined),g=a.extend({},e,c),g.selector=b,d.each(function(){var b=a(this);f(b,g)}),g.live?k(d.selector,g):l(d.selector);return this}})(jQuery); } catch(e){console.error("An error has occurred: "+e.stack);} /* https://ca.onair.cc/wp-content/themes/onair-7.0/assets/js/masonry-imp.js */ try{ jQuery(document).ready(function(){var container=jQuery('.cat-widget-container');jQuery(container).imagesLoaded(function(){jQuery(container).masonry({itemSelector:'.cat-widget',})})}); } catch(e){console.error("An error has occurred: "+e.stack);} /* https://ca.onair.cc/wp-content/themes/onair-7.0/assets/js/external-imp.js */ try{ jQuery(document).ready(function(){jQuery('a').not('[href^="http"],[href^="https"],[href^="mailto:"],[href^="#"]').each(function(){jQuery(this).attr('href',function(index,value){if(value!=undefined){if(value.substr(0,1)!=="/"){value=window.location.pathname+value} var hostBase=location.host;return'https://'+hostBase+value}})})});jQuery(document).ready(function(){var hostname=new RegExp(location.host);jQuery('a').each(function(){var internal=jQuery(this).text();if(internal.length!=0){var found=jQuery(this).find('img');if(found.length==0){var url=jQuery(this).attr("href");if(url!=undefined){if(hostname.test(url)){}else if(url.slice(0,1)=="#"){jQuery(this).addClass('anchor')}else{jQuery(this).addClass('external');jQuery(this).attr('title',function(i,val){if(val!=undefined){return val+' [external resource] (New Window)'}else{return'[external resource] (New Window)'}});jQuery(this).attr('target','_blank')}}}else{var url=jQuery(this).attr("href");if(url!=undefined){if(hostname.test(url)){}else if(url.slice(0,1)=="#"){jQuery(this).addClass('anchor')}else{jQuery(this).attr('title',function(i,val){if(val!=undefined){return val+' [external resource]'}else{return'[external resource]'}})}}}}})}); } catch(e){console.error("An error has occurred: "+e.stack);} /* https://ca.onair.cc/wp-content/themes/onair-7.0/assets/js/top_news.js */ try{ (function($){$.fn.topNewsInterface=function(displayContainerSelector,titleSelector,kwargs={}){jQuery(this).each(function(){topNewsInterface(jQuery(this),displayContainerSelector,titleSelector,kwargs)});return this}})(jQuery);function topNewsInterface($postContainer,displayContainerSelector,titleSelector,kwargs={}){console.debug('Enter topNewsInterface; titleSelector: '+titleSelector+'; kwargs: '+kwargs);console.debug($postContainer);$postContainer=jQuery($postContainer);var $topNews=$postContainer.find('* div.topnews');var $items=$topNews.find('.tn_row');if($items.length==0)return;var $displayObj=$postContainer.find(displayContainerSelector);if($displayObj.is('a')){$displayObj.attr('linkOn','1');$displayObj.click(function(){return jQuery(this).attr('linkOn')=='1'})}else if($displayObj.parent().is('a')){$displayObj=$displayObj.parent();$displayObj.attr('linkOn','1');$displayObj.click(function(){return jQuery(this).attr('linkOn')=='1'})} var title=$postContainer.find(titleSelector).text().trim();if($items.length>6&&$topNews.find('> h2').length==0){$tnContainer=jQuery($items[0]).parent();var i;var newSections={};var tnType;var $item;if($topNews.attr('data-latest')!='hide'){newSections.Latest=[];var maxLatest=$items.length;if($topNews.attr('data-latest')!='unlimited') maxLatest=Math.min(maxLatest,parseInt($topNews.attr('data-latest')));for(i=0;i');$topNews.prepend($tabs)} for(var sectionName in newSections){if(newSections[sectionName].length==0)continue;var sectionId="news-section-"+sectionName.replace(/[\s\:\;\'\"\.\,\?\~\!\@\#\$\%\^\&\*\(\)\[\]]+/g,'-').toLowerCase();var $sectionContainer=jQuery('
');$topNews.append($sectionContainer);var sectionDisplayName=sectionName;if(tnTypeH2s[sectionName]!=undefined) sectionDisplayName=tnTypeH2s[sectionName];$last=jQuery('

'+sectionDisplayName+'

').appendTo($sectionContainer);if(tabs)$tabs.append('
  • '+sectionDisplayName+'
  • ');for(i=0;iendDatetime)endDatetime.setTime(endDatetime.getTime()+24*3600*1000);let now=new Date();if(now a').replaceWith(function(){return jQuery(''+jQuery(this).html()+'')});$tnObj.click({postContainerSelector:('.'+$postContainer.attr('class').trim().replace(/ +/g,'.').replace(/\.loading/,'')),displayContainerSelector:displayContainerSelector,titleSelector:titleSelector,scrollToContainer:scrollToContainer},toggleTopNews);$tnObj.addClass('dynamic')} function toggleTopNews(event){var $next=jQuery(this);var $tnParent=$next.closest('.topnews');var $prev=$tnParent.find(' .tn_row.active');var $postContainer=$next.closest(event.data.postContainerSelector);var $displayContainer=$postContainer.find(event.data.displayContainerSelector);var $captionIcon=jQuery('#content .caption_info');if($prev[0]==$next[0]){if($displayContainer.is('a')) $displayContainer.attr('linkOn','1');else if($displayContainer.parent().is('a')) $displayContainer.parent().attr('linkOn','1');hidePreviousTopNewsItem($prev,$displayContainer);if($captionIcon.length)$captionIcon.show()}else{if($captionIcon.length){if($captionIcon.hasClass('active')){$captionIcon.click()} $captionIcon.hide()} if(event.data.scrollToContainer){scrollPos=$displayContainer.offset().top-jQuery('#wpadminbar').outerHeight()-8;if(jQuery("body,html").scrollTop()>scrollPos) jQuery("body,html").animate({scrollTop:scrollPos},500)} if($displayContainer.is('a')) $displayContainer.attr('linkOn','0');else if($displayContainer.parent().is('a')) $displayContainer.parent().attr('linkOn','0');var targetId=$next.attr('data-targetid');if($next.attr('data-initialized')==undefined){$next.attr('data-initialized','1');var $targetContent=null;var fullTitle=$next.attr('data-full-title');var $titleBlock=jQuery('
    ');if(typeof fullTitle!=='undefined'&&fullTitle!==!1){$titleBlock.append('

    '+fullTitle+'

    ')}else{$titleBlock.append('

    '+$next.find('span.title').html().trim()+'

    ')} if(['Article','Information','PressRelease','Commentary'].includes($next.attr('data-tn-type'))){$targetContent=$next.find('.tn_summary');$targetContent.attr('id',targetId);var $source=$next.find('.source');var sourceUrl=$next.find('.title').attr('href');var validSourceUrl=(typeof sourceUrl!=='undefined'&&sourceUrl!==!1&&sourceUrl!='');var sourceTitle='';if($source.length==1)sourceTitle=$source.html().trim();if(sourceTitle!='') if(validSourceUrl) $targetContent.prepend('

    '+sourceTitle+'

    ');else $targetContent.prepend('

    '+sourceTitle+'

    ');else if(validSourceUrl) $targetContent.prepend('

    Source

    ');$targetContent.prepend($titleBlock)}else if(['Livestream','OnAir','Video'].includes($next.attr('data-tn-type'))){$targetContent=$next.find('.tn_summary');$targetContent.attr('id',targetId);$targetContent.find('> p:first-child:empty, > p:last-child:empty').remove();$targetFirstChild=$targetContent.find('> :first-child');$targetFirstChild.append($titleBlock)}else if('Org'==$next.attr('data-tn-type')){$targetContent=$next.find('.tn_summary');$targetContent.attr('id',targetId);$targetContent.prepend($titleBlock)}else{} if($targetContent!=null){$targetContent.addClass('tn_container');$targetContent.addClass($next.attr('data-tn-type'));$displayContainer.append($targetContent)}}else{$targetContent=$displayContainer.find('#'+targetId);if(['Livestream','OnAir','Video'].includes($next.attr('data-tn-type'))) resumeVideo($targetContent)} if($targetContent!=null) $next.addClass('active');$targetContent.fadeIn('slow');if($prev.length>0)hidePreviousTopNewsItem($prev,$displayContainer)}} function hidePreviousTopNewsItem($prevItem,$container){$prevItem.removeClass('active');var $prevItemContainer=$container.find('> #'+$prevItem.attr('data-targetid'));$prevItemContainer.fadeOut('slow');if(['Livestream','OnAir','Video'].includes($prevItem.attr('data-tn-type'))){pauseVideo($prevItemContainer)}} function getElementIndex(node){var index=0;while((node=node.previousElementSibling)){index++} return index} var videoUrlPat_youtube=/https:\/\/(www\.)?youtube\.com\/watch\?([^\=]+=[^\&]+\&)*v=([0-9a-zA-Z_\-]+)/;var videoUrlPat_youtube2=/https:\/\/(www\.)?youtu\.be\/([0-9a-zA-Z_\-]+)/;var videoUrlPat_vimeo=/https:\/\/(www\.|player\.)?vimeo\.com\/(video\/)?([0-9]+)/;function generateEmbedUrl(url){var siteType='';var returnVal=null;if(url.includes('vimeo.com')){siteType='vimeo';var match=url.match(videoUrlPat_vimeo);if(match){var vimId=match[3];url='https://player.vimeo.com/video/'+vimId+'?autoplay=1';returnVal=[url,siteType]}}else if(url.includes('youtu.be')){siteType='youtube';var match=url.match(videoUrlPat_youtube);if(match){var ytId=match[3];url='https://www.youtube-nocookie.com/embed/'+ytId+'?autoplay=1&modestbranding=1&rel=0&iv_load_policy=3&color=red&version=3&enablejsapi=1';returnVal=[url,siteType]}}else if(url.includes('youtube.com')){siteType='youtube';var match=url.match(videoUrlPat_youtube);if(match){var ytId=match[3];url='https://www.youtube-nocookie.com/embed/'+ytId+'?autoplay=1&modestbranding=1&rel=0&iv_load_policy=3&color=red&version=3&enablejsapi=1';returnVal=[url,siteType]}}else if(url.includes('youtu.be')){siteType='youtube';var match=url.match(videoUrlPat_youtube2);if(match){var ytId=match[2];url='https://www.youtube-nocookie.com/embed/'+ytId+'?autoplay=1&modestbranding=1&rel=0&iv_load_policy=3&color=red&version=3&enablejsapi=1';returnVal=[url,siteType]}} return returnVal} function generateEmbedCode(url,iframeIndex){var urlAndType=generateEmbedUrl(url);if(urlAndType==null)return null;var embedUrl=urlAndType[0];var videoType=urlAndType[1];var embedCode='';return embedCode}; } catch(e){console.error("An error has occurred: "+e.stack);} /* https://ca.onair.cc/wp-content/themes/onair-7.0/assets/js/oa-utils.js */ try{ function getURLParameter(name){return decodeURIComponent((new RegExp('[?|&]'+name+'='+'([^&;]+?)(&|#|;|$)').exec(location.search)||[null,''])[1].replace(/\+/g,'%20'))||null} jQuery.loadScript=function(url,callback){jQuery.ajax({url:url,dataType:'script',success:callback,async:!0})} jQuery.fn.isInViewport=function(){var elementTop=jQuery(this).offset().top;var elementBottom=elementTop+jQuery(this).outerHeight();var viewportTop=jQuery(window).scrollTop();var viewportBottom=viewportTop+jQuery(window).height();return elementBottom>viewportTop&&elementTopsmallscreenWidth)} function pauseVideo($player){var src=$player.attr('src');if(typeof src=='undefined'||src==!1) $player=$player.find('[src]');if($player.length){$player.attr('pausesrc',$player.attr('src'));$player.attr('src','')}} function resumeVideo($player){var pausesrc=$player.attr('pausesrc');if(typeof pausesrc=='undefined'||pausesrc==!1) $player=$player.find('[pausesrc]');if($player.length) $player.attr('src',$player.attr('pausesrc'))}; } catch(e){console.error("An error has occurred: "+e.stack);} /* https://ca.onair.cc/wp-content/themes/onair-7.0/assets/js/oa-ux-general.js */ try{ function delayLoadTwitter(){jQuery(window).on('resize scroll',function($el){return function(){if($el.hasClass('twitter-timeline-delay')&&$el.isInViewport()&&$el[0].getBoundingClientRect().y>jQuery('#wpadminbar').outerHeight()){$el.removeClass('twitter-timeline-delay').addClass('twitter-timeline');$el.after('')}}}(jQuery(this)));jQuery('body').on('click',function($el){return function(){if($el.hasClass('twitter-timeline-delay')&&$el.isInViewport()&&$el[0].getBoundingClientRect().y>jQuery('#wpadminbar').outerHeight()){$el.removeClass('twitter-timeline-delay').addClass('twitter-timeline');$el.after('')}}}(jQuery(this)))} jQuery(document).mouseup(function(e){var container=jQuery('.sponsor-bar .addtoany_shortcode');if(!container.is(e.target)&&!container.parent().is(e.target)&&!container.parent().find('span').is(e.target)&&container.has(e.target).length===0){container.parent().removeClass('active')}});function categoryWidgetSetLoad(){var $container=jQuery(this);var winBottom=jQuery(window).scrollTop()+jQuery(window).height();var currentPosts=$container.children();var $lastPost=jQuery(currentPosts[currentPosts.length-1]);var triggerPosition=$lastPost.offset().top;if($container.is(':visible')&&(triggerPosition-winBottom<0)){console.log('categoryWidgetSetLoad triggering load');$container.attr('data-dynamic','0');var ids;var postsPerReq=8;if($container.attr('data-posts-per'))postsPerReq=$container.attr('data-posts-per');if($container.data('post-ids')){if(typeof $container.data('post-ids')=='string'){ids=$container.attr('data-post-ids').split(',')}else{ids=$container.data('post-ids')}}else{console.warn('Error: container has no "data-post-ids" attribute');return} if(ids.length==0){$container.attr('data-dynamic','0');return} $container.data('post-ids',ids.slice(postsPerReq));var params={'include':ids.slice(0,postsPerReq),};var showNews=$container.attr('data-show-news',0);var jqxhr=jQuery.getJSON('/wp-json/wp/v2/posts',params,loadWidgetsHandler($container,showNews));jqxhr.fail(function(){console.warn('Failed to load widgets for set; need to try again');$container.data('post-ids',ids);$container.attr('data-dynamic','1')})}} function showNewsAfterLoad(typeAndSlug){var typeAndSlugArr=typeAndSlug.split('>');console.log('in showNewsAfterLoad with typeAndSlug '+typeAndSlug);if(typeAndSlugArr.length==2){var postType=typeAndSlugArr[0];var slug=typeAndSlugArr[1];$widget=jQuery('.post-widget.'+slug);if($widget.length){$newsTab=$widget.find('.main-nav > div[title="News"]');if($newsTab.length>0){$newsTab.click();$widget.find('div.topnews:visible div:visible > div.tn_row:first-child, div.topnews:visible div:visible > h2 + div.tn_row:nth-child(2)').click()}}}} function loadWidgetsHandler($container,showNews=0){return function(json,textStatus,jqXHR){console.log('loadWidgetsHandler Enter; '+json.length+' entries');for(post_ind in json){post=json[post_ind];console.log('loadWidgetsHandler showNews is '+showNews);if(showNews) createWidgetByJson(post,$container,post.type,'','',showNewsAfterLoad);else createWidgetByJson(post,$container,post.type)} if($container.children().length<$container.attr('data-max-posts')){$container.attr('data-dynamic','1')}}} jQuery(window).scroll(function(){jQuery('.category-widget-set[data-dynamic="1"]').each(categoryWidgetSetLoad)});function hidePreviousFeaturedItem($prevItem,$container){$prevItem.removeClass('active');var $prevItemContainer=$container.find('> #'+$prevItem.attr('data-targetid'));if($prevItemContainer.attr('data-behavior')=='slide') $prevItemContainer.fadeOut('slow');else if($prevItemContainer.attr('data-behavior')=='slide-down') $prevItemContainer.slideToggle('slow');else $prevItemContainer.fadeOut('slow');if($prevItem.attr('data-isvideo'))pauseVideo($prevItemContainer)} function toggleFeaturedSummaryItem(event){var $next=jQuery(this);var $summary=$next.closest('.summary');var $prev=$summary.find('.featured_row.active');var $postContainer=event.data.postContainer;var $displayContainer=event.data.displayContainer;var $captionIcon=jQuery('#content .caption_info');var targetId=$next.attr('data-targetid');if($prev[0]==$next[0]){if($displayContainer.is('a'))$displayTarget.attr('linkOn','1');else if($displayContainer.parent().is('a'))$displayContainer.parent().attr('linkOn','1');hidePreviousFeaturedItem($prev,$displayContainer);if($captionIcon.length)$captionIcon.show()}else{if($captionIcon.hasClass('active'))$captionIcon.click();$captionIcon.hide();if(event.data.behavior=='scroll'){var scrollPos=$displayContainer.offset().top-jQuery('#wpadminbar').outerHeight()-8;if(jQuery("body,html").scrollTop()>scrollPos) jQuery("body,html").animate({scrollTop:scrollPos},500)} var targetId=$next.attr('data-targetId');var callback=null;if($next.attr('data-initialized')==undefined){$next.attr('data-initialized','1');if($next.attr('data-content')!=undefined) $targetContent=jQuery('
    '+$next.attr('data-content')+'
    ');else if($next.find('>.featured_content').length>0) $targetContent=$next.find('>.featured_content');var fullTitle=$next.attr('data-full-title');var $titleBlock=jQuery('
    ');if(typeof fullTitle!=='undefined'&&fullTitle!==!1){$titleBlock.append('

    '+fullTitle+'

    ')}else{$titleBlock.append('

    '+$next.find('span.title').html().trim()+'

    ')} if($next.attr('data-feat-type')=='video'){}else if($next.attr('data-feat-type')=='google-slide'){}else if($next.attr('data-feat-type')=='quote'){$targetContent.prepend($titleBlock)} $targetContent.addClass('featured_container');$targetContent.addClass($next.attr('data-feat-type'));$targetContent.attr('data-behavior',event.data.behavior);$targetContent.attr('id',targetId);$targetContent.hide();$displayContainer.append($targetContent);callback=function(){$targetContent.find('> .container-lazyload > a.preview-lazyload > div.lazy-load-div').click()}}else{$targetContent=$displayContainer.find('#'+targetId);if($next.attr('data-feat-type')=='video')resumeVideo($targetContent)} if($prev.length>0)hidePreviousFeaturedItem($prev,$displayContainer);$next.addClass('active');if(event.data.behavior=='scroll'||event.data.behavior=='fade') $targetContent.fadeIn('slow',callback);else if(event.data.behavior=='slide-down') $targetContent.slideToggle('slow',callback)}} function setupSummaryFeature($featSource,$postContainer,$displayTarget,behavior){$featSource.attr('data-targetid','summary-featured-'+(Math.floor(Math.random()*100000)));$featSource.click({postContainer:$postContainer,displayContainer:$displayTarget,behavior:behavior},toggleFeaturedSummaryItem);$featSource.addClass('dynamic')} function summaryFeatures($postDiv,context=null,behavior=null,$displayTarget=null){$postDiv=jQuery($postDiv);console.debug('summaryFeatures Context: '+context);console.debug($postDiv);if(behavior==null||$displayTarget==null){if(context==null){if($postDiv.hasClass('container')&&$postDiv.parent().hasClass('cycleContainer')) context='slider';else if($postDiv.hasClass('postWidget')) context='widget';else if($postDiv.hasClass('post')) context='page';else console.warning('No context given and unable to determine context from $postDiv');return} if(context=='widget'){if(behavior==null)behavior='scroll';if($displayTarget==null)$displayTarget=$postDiv.find('span.cat-post-thumbnail')}else if(context=='page'){if(behavior==null)behavior='scroll';if($displayTarget==null)$displayTarget=$postDiv.find('> .post_featured_image')}else if(context=='slider'){if(behavior==null)behavior='fade';if($displayTarget==null)$displayTarget=$postDiv.find('.slider-img-container > .slider-img')}} console.debug('Context: '+context+', behavior: '+behavior);if($displayTarget!=null&&$displayTarget.length)console.debug('display target: '+$displayTarget[0]);else console.debug($displayTarget);console.debug($displayTarget);if(behavior==null||$displayTarget==null){console.warn('summary_features - behavior and $displayTarget not provided, and context is unknown');return} var $features=$postDiv.find('.post-entry .summary .featured .featured_row:not([data-targetid])');$features.each(function(){setupSummaryFeature(jQuery(this),$postDiv,$displayTarget,behavior)});if($features.length>0){$playFeatured=jQuery('');$playFeatured.click(function(){$postDiv.find('.post-entry .summary .featured .featured_row:first-child').click()});$displayTarget.append($playFeatured)}} jQuery(document).ready(function(){jQuery('body').css('padding-bottom',jQuery('#footer').outerHeight()+'px');jQuery('.mw-cite-backlink a.anchor').each(function(){var href=jQuery(this).attr('href');jQuery(this).attr('href','#rdp-we-'+href.substr(1))});jQuery('.category-widget-set[data-dynamic="1"]').each(categoryWidgetSetLoad);if(location.hash){setTimeout(function(){if(jQuery(location.hash).length){console.log(jQuery(location.hash).offset().top-jQuery('#wpadminbar').outerHeight()-7);jQuery('html,body').animate({scrollTop:(jQuery(location.hash).offset().top-jQuery('#wpadminbar').outerHeight()-7)},50)}},360)} jQuery('body.home #widgets .summary').each(function(){if(this.offsetHeight
    ');jQuery(this).find('.arrow').click(function(){var arrow=jQuery(this);if(arrow.hasClass('down')){arrow.parent().animate({height:extendedHeight},600,function(){jQuery(this).closest('.cat-post-item').removeClass('hasoverflow');var arrow=jQuery(this).find('.arrow.down');arrow.removeClass('down') arrow.attr('alt','Read less');arrow.attr('title','Read less')})}else{arrow.parent().animate({height:initHeight},600,function(){jQuery(this).closest('.cat-post-item').addClass('hasoverflow');var arrow=jQuery(this).find('.arrow');arrow.addClass('down');arrow.attr('title','Read more');arrow.attr('alt','Read more')})}})}});jQuery('.home-widgets .grid').each(function(){var self=jQuery(this);if(self.html().trim().length==0)self.remove()});jQuery('.twitter-timeline-delay').each(delayLoadTwitter);var $post=jQuery('.content-margin > .post');if($post.length>0)summaryFeatures(jQuery('.content-margin > .post'),'page');jQuery('.cycleContainer > .slide').each(function(){summaryFeatures(jQuery(this),'slider')})});(function(jQuery){jQuery.each(['show','hide'],function(i,ev){var el=jQuery.fn[ev];jQuery.fn[ev]=function(){this.trigger(ev);return el.apply(this,arguments)}})})(jQuery); } catch(e){console.error("An error has occurred: "+e.stack);} /* https://ca.onair.cc/wp-includes/js/jquery/jquery.query.js */ try{ new function(e){var d=e.separator||"&";var c=e.spaces===!1?false:!0;var a=e.suffix===!1?"":"[]";var g=e.prefix===!1?false:!0;var b=g?e.hash===!0?"#":"?":"";var f=e.numbers===!1?false:!0;jQuery.query=new function(){var h=function(m,l){return m!=undefined&&m!==null&&(!!l?m.constructor==l:!0)};var i=function(r){var l,q=/\[([^[]*)\]/g,n=/^([^[]+)(\[.*\])?$/.exec(r),o=n[1],p=[];while(l=q.exec(n[2])){p.push(l[1])}return[o,p]};var k=function(s,r,q){var t,p=r.shift();if(typeof s!="object"){s=null}if(p===""){if(!s){s=[]}if(h(s,Array)){s.push(r.length==0?q:k(null,r.slice(0),q))}else{if(h(s,Object)){var n=0;while(s[n++]!=null){}s[--n]=r.length==0?q:k(s[n],r.slice(0),q)}else{s=[];s.push(r.length==0?q:k(null,r.slice(0),q))}}}else{if(p&&p.match(/^\s*[0-9]+\s*$/)){var m=parseInt(p,10);if(!s){s=[]}s[m]=r.length==0?q:k(s[m],r.slice(0),q)}else{if(p){var m=p.replace(/^\s*|\s*$/g,"");if(!s){s={}}if(h(s,Array)){var l={};for(var n=0;n0){r.push(b)}r.push(q.join(d));return r.join("")}};return new j(location.search,location.hash)}}(jQuery.query||{}); } catch(e){console.error("An error has occurred: "+e.stack);} /* https://ca.onair.cc/wp-content/plugins/rdp-wiki-embed/pl/js/url.min.js */ try{ /*! url - v1.8.6 - 2013-11-22 */window.url=function(){function a(a){return!isNaN(parseFloat(a))&&isFinite(a)}return function(b,c){var d=c||window.location.toString();if(!b)return d;b=b.toString(),"//"===d.substring(0,2)?d="http:"+d:1===d.split("://").length&&(d="https://"+d),c=d.split("/");var e={auth:""},f=c[2].split("@");1===f.length?f=f[0].split(":"):(e.auth=f[0],f=f[1].split(":")),e.protocol=c[0],e.hostname=f[0],e.port=f[1]||("https"===e.protocol.split(":")[0].toLowerCase()?"443":"80"),e.pathname=(c.length>3?"/":"")+c.slice(3,c.length).join("/").split("?")[0].split("#")[0];var g=e.pathname;"/"===g.charAt(g.length-1)&&(g=g.substring(0,g.length-1));var h=e.hostname,i=h.split("."),j=g.split("/");if("hostname"===b)return h;if("domain"===b)return/^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$/.test(h)?h:i.slice(-2).join(".");if("sub"===b)return i.slice(0,i.length-2).join(".");if("port"===b)return e.port;if("protocol"===b)return e.protocol.split(":")[0];if("auth"===b)return e.auth;if("user"===b)return e.auth.split(":")[0];if("pass"===b)return e.auth.split(":")[1]||"";if("path"===b)return e.pathname;if("."===b.charAt(0)){if(b=b.substring(1),a(b))return b=parseInt(b,10),i[0>b?i.length+b:b-1]||""}else{if(a(b))return b=parseInt(b,10),j[0>b?j.length+b:b]||"";if("file"===b)return j.slice(-1)[0];if("filename"===b)return j.slice(-1)[0].split(".")[0];if("fileext"===b)return j.slice(-1)[0].split(".")[1]||"";if("?"===b.charAt(0)||"#"===b.charAt(0)){var k=d,l=null;if("?"===b.charAt(0)?k=(k.split("?")[1]||"").split("#")[0]:"#"===b.charAt(0)&&(k=k.split("#")[1]||""),!b.charAt(1))return k;b=b.substring(1),k=k.split("&");for(var m=0,n=k.length;n>m;m++)if(l=k[m].split("="),l[0]===b)return l[1]||"";return null}}return""}}(),"undefined"!=typeof jQuery&&jQuery.extend({url:function(a,b){return window.url(a,b)}}); } catch(e){console.error("An error has occurred: "+e.stack);} /* https://ca.onair.cc/wp-includes/js/jquery/ui/core.min.js */ try{ /*! * jQuery UI Core 1.11.4 * https://jqueryui.com * * Copyright jQuery Foundation and other contributors * Released under the MIT license. * https://jquery.org/license * * https://api.jqueryui.com/category/ui-core/ */ !function(a){"function"==typeof define&&define.amd?define(["jquery"],a):a(jQuery)}(function(a){function b(b,d){var e,f,g,h=b.nodeName.toLowerCase();return"area"===h?(e=b.parentNode,f=e.name,!(!b.href||!f||"map"!==e.nodeName.toLowerCase())&&(g=a("img[usemap='#"+f+"']")[0],!!g&&c(g))):(/^(input|select|textarea|button|object)$/.test(h)?!b.disabled:"a"===h?b.href||d:d)&&c(b)}function c(b){return a.expr.filters.visible(b)&&!a(b).parents().addBack().filter(function(){return"hidden"===a.css(this,"visibility")}).length}a.ui=a.ui||{},a.extend(a.ui,{version:"1.11.4",keyCode:{BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38}}),a.fn.extend({scrollParent:function(b){var c=this.css("position"),d="absolute"===c,e=b?/(auto|scroll|hidden)/:/(auto|scroll)/,f=this.parents().filter(function(){var b=a(this);return(!d||"static"!==b.css("position"))&&e.test(b.css("overflow")+b.css("overflow-y")+b.css("overflow-x"))}).eq(0);return"fixed"!==c&&f.length?f:a(this[0].ownerDocument||document)},uniqueId:function(){var a=0;return function(){return this.each(function(){this.id||(this.id="ui-id-"+ ++a)})}}(),removeUniqueId:function(){return this.each(function(){/^ui-id-\d+$/.test(this.id)&&a(this).removeAttr("id")})}}),a.extend(a.expr[":"],{data:a.expr.createPseudo?a.expr.createPseudo(function(b){return function(c){return!!a.data(c,b)}}):function(b,c,d){return!!a.data(b,d[3])},focusable:function(c){return b(c,!isNaN(a.attr(c,"tabindex")))},tabbable:function(c){var d=a.attr(c,"tabindex"),e=isNaN(d);return(e||d>=0)&&b(c,!e)}}),a("").outerWidth(1).jquery||a.each(["Width","Height"],function(b,c){function d(b,c,d,f){return a.each(e,function(){c-=parseFloat(a.css(b,"padding"+this))||0,d&&(c-=parseFloat(a.css(b,"border"+this+"Width"))||0),f&&(c-=parseFloat(a.css(b,"margin"+this))||0)}),c}var e="Width"===c?["Left","Right"]:["Top","Bottom"],f=c.toLowerCase(),g={innerWidth:a.fn.innerWidth,innerHeight:a.fn.innerHeight,outerWidth:a.fn.outerWidth,outerHeight:a.fn.outerHeight};a.fn["inner"+c]=function(b){return void 0===b?g["inner"+c].call(this):this.each(function(){a(this).css(f,d(this,b)+"px")})},a.fn["outer"+c]=function(b,e){return"number"!=typeof b?g["outer"+c].call(this,b):this.each(function(){a(this).css(f,d(this,b,!0,e)+"px")})}}),a.fn.addBack||(a.fn.addBack=function(a){return this.add(null==a?this.prevObject:this.prevObject.filter(a))}),a("").data("a-b","a").removeData("a-b").data("a-b")&&(a.fn.removeData=function(b){return function(c){return arguments.length?b.call(this,a.camelCase(c)):b.call(this)}}(a.fn.removeData)),a.ui.ie=!!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase()),a.fn.extend({focus:function(b){return function(c,d){return"number"==typeof c?this.each(function(){var b=this;setTimeout(function(){a(b).focus(),d&&d.call(b)},c)}):b.apply(this,arguments)}}(a.fn.focus),disableSelection:function(){var a="onselectstart"in document.createElement("div")?"selectstart":"mousedown";return function(){return this.bind(a+".ui-disableSelection",function(a){a.preventDefault()})}}(),enableSelection:function(){return this.unbind(".ui-disableSelection")},zIndex:function(b){if(void 0!==b)return this.css("zIndex",b);if(this.length)for(var c,d,e=a(this[0]);e.length&&e[0]!==document;){if(c=e.css("position"),("absolute"===c||"relative"===c||"fixed"===c)&&(d=parseInt(e.css("zIndex"),10),!isNaN(d)&&0!==d))return d;e=e.parent()}return 0}}),a.ui.plugin={add:function(b,c,d){var e,f=a.ui[b].prototype;for(e in d)f.plugins[e]=f.plugins[e]||[],f.plugins[e].push([c,d[e]])},call:function(a,b,c,d){var e,f=a.plugins[b];if(f&&(d||a.element[0].parentNode&&11!==a.element[0].parentNode.nodeType))for(e=0;e",options:{disabled:!1,create:null},_createWidget:function(c,d){d=a(d||this.defaultElement||this)[0],this.element=a(d),this.uuid=b++,this.eventNamespace="."+this.widgetName+this.uuid,this.bindings=a(),this.hoverable=a(),this.focusable=a(),d!==this&&(a.data(d,this.widgetFullName,this),this._on(!0,this.element,{remove:function(a){a.target===d&&this.destroy()}}),this.document=a(d.style?d.ownerDocument:d.document||d),this.window=a(this.document[0].defaultView||this.document[0].parentWindow)),this.options=a.widget.extend({},this.options,this._getCreateOptions(),c),this._create(),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:a.noop,_getCreateEventData:a.noop,_create:a.noop,_init:a.noop,destroy:function(){this._destroy(),this.element.unbind(this.eventNamespace).removeData(this.widgetFullName).removeData(a.camelCase(this.widgetFullName)),this.widget().unbind(this.eventNamespace).removeAttr("aria-disabled").removeClass(this.widgetFullName+"-disabled ui-state-disabled"),this.bindings.unbind(this.eventNamespace),this.hoverable.removeClass("ui-state-hover"),this.focusable.removeClass("ui-state-focus")},_destroy:a.noop,widget:function(){return this.element},option:function(b,c){var d,e,f,g=b;if(0===arguments.length)return a.widget.extend({},this.options);if("string"==typeof b)if(g={},d=b.split("."),b=d.shift(),d.length){for(e=g[b]=a.widget.extend({},this.options[b]),f=0;f=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return!0}})}); } catch(e){console.error("An error has occurred: "+e.stack);} /* https://ca.onair.cc/wp-includes/js/jquery/ui/sortable.min.js */ try{ /*! * jQuery UI Sortable 1.11.4 * https://jqueryui.com * * Copyright jQuery Foundation and other contributors * Released under the MIT license. * https://jquery.org/license * * https://api.jqueryui.com/sortable/ */ !function(a){"function"==typeof define&&define.amd?define(["jquery","./core","./mouse","./widget"],a):a(jQuery)}(function(a){return a.widget("ui.sortable",a.ui.mouse,{version:"1.11.4",widgetEventPrefix:"sort",ready:!1,options:{appendTo:"parent",axis:!1,connectWith:!1,containment:!1,cursor:"auto",cursorAt:!1,dropOnEmpty:!0,forcePlaceholderSize:!1,forceHelperSize:!1,grid:!1,handle:!1,helper:"original",items:"> *",opacity:!1,placeholder:!1,revert:!1,scroll:!0,scrollSensitivity:20,scrollSpeed:20,scope:"default",tolerance:"intersect",zIndex:1e3,activate:null,beforeStop:null,change:null,deactivate:null,out:null,over:null,receive:null,remove:null,sort:null,start:null,stop:null,update:null},_isOverAxis:function(a,b,c){return a>=b&&a=0;a--)this.items[a].item.removeData(this.widgetName+"-item");return this},_mouseCapture:function(b,c){var d=null,e=!1,f=this;return!this.reverting&&(!this.options.disabled&&"static"!==this.options.type&&(this._refreshItems(b),a(b.target).parents().each(function(){if(a.data(this,f.widgetName+"-item")===f)return d=a(this),!1}),a.data(b.target,f.widgetName+"-item")===f&&(d=a(b.target)),!!d&&(!(this.options.handle&&!c&&(a(this.options.handle,d).find("*").addBack().each(function(){this===b.target&&(e=!0)}),!e))&&(this.currentItem=d,this._removeCurrentsFromItems(),!0))))},_mouseStart:function(b,c,d){var e,f,g=this.options;if(this.currentContainer=this,this.refreshPositions(),this.helper=this._createHelper(b),this._cacheHelperProportions(),this._cacheMargins(),this.scrollParent=this.helper.scrollParent(),this.offset=this.currentItem.offset(),this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left},a.extend(this.offset,{click:{left:b.pageX-this.offset.left,top:b.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()}),this.helper.css("position","absolute"),this.cssPosition=this.helper.css("position"),this.originalPosition=this._generatePosition(b),this.originalPageX=b.pageX,this.originalPageY=b.pageY,g.cursorAt&&this._adjustOffsetFromHelper(g.cursorAt),this.domPosition={prev:this.currentItem.prev()[0],parent:this.currentItem.parent()[0]},this.helper[0]!==this.currentItem[0]&&this.currentItem.hide(),this._createPlaceholder(),g.containment&&this._setContainment(),g.cursor&&"auto"!==g.cursor&&(f=this.document.find("body"),this.storedCursor=f.css("cursor"),f.css("cursor",g.cursor),this.storedStylesheet=a("").appendTo(f)),g.opacity&&(this.helper.css("opacity")&&(this._storedOpacity=this.helper.css("opacity")),this.helper.css("opacity",g.opacity)),g.zIndex&&(this.helper.css("zIndex")&&(this._storedZIndex=this.helper.css("zIndex")),this.helper.css("zIndex",g.zIndex)),this.scrollParent[0]!==this.document[0]&&"HTML"!==this.scrollParent[0].tagName&&(this.overflowOffset=this.scrollParent.offset()),this._trigger("start",b,this._uiHash()),this._preserveHelperProportions||this._cacheHelperProportions(),!d)for(e=this.containers.length-1;e>=0;e--)this.containers[e]._trigger("activate",b,this._uiHash(this));return a.ui.ddmanager&&(a.ui.ddmanager.current=this),a.ui.ddmanager&&!g.dropBehaviour&&a.ui.ddmanager.prepareOffsets(this,b),this.dragging=!0,this.helper.addClass("ui-sortable-helper"),this._mouseDrag(b),!0},_mouseDrag:function(b){var c,d,e,f,g=this.options,h=!1;for(this.position=this._generatePosition(b),this.positionAbs=this._convertPositionTo("absolute"),this.lastPositionAbs||(this.lastPositionAbs=this.positionAbs),this.options.scroll&&(this.scrollParent[0]!==this.document[0]&&"HTML"!==this.scrollParent[0].tagName?(this.overflowOffset.top+this.scrollParent[0].offsetHeight-b.pageY=0;c--)if(d=this.items[c],e=d.item[0],f=this._intersectsWithPointer(d),f&&d.instance===this.currentContainer&&!(e===this.currentItem[0]||this.placeholder[1===f?"next":"prev"]()[0]===e||a.contains(this.placeholder[0],e)||"semi-dynamic"===this.options.type&&a.contains(this.element[0],e))){if(this.direction=1===f?"down":"up","pointer"!==this.options.tolerance&&!this._intersectsWithSides(d))break;this._rearrange(b,d),this._trigger("change",b,this._uiHash());break}return this._contactContainers(b),a.ui.ddmanager&&a.ui.ddmanager.drag(this,b),this._trigger("sort",b,this._uiHash()),this.lastPositionAbs=this.positionAbs,!1},_mouseStop:function(b,c){if(b){if(a.ui.ddmanager&&!this.options.dropBehaviour&&a.ui.ddmanager.drop(this,b),this.options.revert){var d=this,e=this.placeholder.offset(),f=this.options.axis,g={};f&&"x"!==f||(g.left=e.left-this.offset.parent.left-this.margins.left+(this.offsetParent[0]===this.document[0].body?0:this.offsetParent[0].scrollLeft)),f&&"y"!==f||(g.top=e.top-this.offset.parent.top-this.margins.top+(this.offsetParent[0]===this.document[0].body?0:this.offsetParent[0].scrollTop)),this.reverting=!0,a(this.helper).animate(g,parseInt(this.options.revert,10)||500,function(){d._clear(b)})}else this._clear(b,c);return!1}},cancel:function(){if(this.dragging){this._mouseUp({target:null}),"original"===this.options.helper?this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper"):this.currentItem.show();for(var b=this.containers.length-1;b>=0;b--)this.containers[b]._trigger("deactivate",null,this._uiHash(this)),this.containers[b].containerCache.over&&(this.containers[b]._trigger("out",null,this._uiHash(this)),this.containers[b].containerCache.over=0)}return this.placeholder&&(this.placeholder[0].parentNode&&this.placeholder[0].parentNode.removeChild(this.placeholder[0]),"original"!==this.options.helper&&this.helper&&this.helper[0].parentNode&&this.helper.remove(),a.extend(this,{helper:null,dragging:!1,reverting:!1,_noFinalSort:null}),this.domPosition.prev?a(this.domPosition.prev).after(this.currentItem):a(this.domPosition.parent).prepend(this.currentItem)),this},serialize:function(b){var c=this._getItemsAsjQuery(b&&b.connected),d=[];return b=b||{},a(c).each(function(){var c=(a(b.item||this).attr(b.attribute||"id")||"").match(b.expression||/(.+)[\-=_](.+)/);c&&d.push((b.key||c[1]+"[]")+"="+(b.key&&b.expression?c[1]:c[2]))}),!d.length&&b.key&&d.push(b.key+"="),d.join("&")},toArray:function(b){var c=this._getItemsAsjQuery(b&&b.connected),d=[];return b=b||{},c.each(function(){d.push(a(b.item||this).attr(b.attribute||"id")||"")}),d},_intersectsWith:function(a){var b=this.positionAbs.left,c=b+this.helperProportions.width,d=this.positionAbs.top,e=d+this.helperProportions.height,f=a.left,g=f+a.width,h=a.top,i=h+a.height,j=this.offset.click.top,k=this.offset.click.left,l="x"===this.options.axis||d+j>h&&d+jf&&b+ka[this.floating?"width":"height"]?n:f0?"down":"up")},_getDragHorizontalDirection:function(){var a=this.positionAbs.left-this.lastPositionAbs.left;return 0!==a&&(a>0?"right":"left")},refresh:function(a){return this._refreshItems(a),this._setHandleClassName(),this.refreshPositions(),this},_connectWith:function(){var a=this.options;return a.connectWith.constructor===String?[a.connectWith]:a.connectWith},_getItemsAsjQuery:function(b){function c(){h.push(this)}var d,e,f,g,h=[],i=[],j=this._connectWith();if(j&&b)for(d=j.length-1;d>=0;d--)for(f=a(j[d],this.document[0]),e=f.length-1;e>=0;e--)g=a.data(f[e],this.widgetFullName),g&&g!==this&&!g.options.disabled&&i.push([a.isFunction(g.options.items)?g.options.items.call(g.element):a(g.options.items,g.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),g]);for(i.push([a.isFunction(this.options.items)?this.options.items.call(this.element,null,{options:this.options,item:this.currentItem}):a(this.options.items,this.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),this]),d=i.length-1;d>=0;d--)i[d][0].each(c);return a(h)},_removeCurrentsFromItems:function(){var b=this.currentItem.find(":data("+this.widgetName+"-item)");this.items=a.grep(this.items,function(a){for(var c=0;c=0;c--)for(e=a(m[c],this.document[0]),d=e.length-1;d>=0;d--)f=a.data(e[d],this.widgetFullName),f&&f!==this&&!f.options.disabled&&(l.push([a.isFunction(f.options.items)?f.options.items.call(f.element[0],b,{item:this.currentItem}):a(f.options.items,f.element),f]),this.containers.push(f));for(c=l.length-1;c>=0;c--)for(g=l[c][1],h=l[c][0],d=0,j=h.length;d=0;c--)d=this.items[c],d.instance!==this.currentContainer&&this.currentContainer&&d.item[0]!==this.currentItem[0]||(e=this.options.toleranceElement?a(this.options.toleranceElement,d.item):d.item,b||(d.width=e.outerWidth(),d.height=e.outerHeight()),f=e.offset(),d.left=f.left,d.top=f.top);if(this.options.custom&&this.options.custom.refreshContainers)this.options.custom.refreshContainers.call(this);else for(c=this.containers.length-1;c>=0;c--)f=this.containers[c].element.offset(),this.containers[c].containerCache.left=f.left,this.containers[c].containerCache.top=f.top,this.containers[c].containerCache.width=this.containers[c].element.outerWidth(),this.containers[c].containerCache.height=this.containers[c].element.outerHeight();return this},_createPlaceholder:function(b){b=b||this;var c,d=b.options;d.placeholder&&d.placeholder.constructor!==String||(c=d.placeholder,d.placeholder={element:function(){var d=b.currentItem[0].nodeName.toLowerCase(),e=a("<"+d+">",b.document[0]).addClass(c||b.currentItem[0].className+" ui-sortable-placeholder").removeClass("ui-sortable-helper");return"tbody"===d?b._createTrPlaceholder(b.currentItem.find("tr").eq(0),a("",b.document[0]).appendTo(e)):"tr"===d?b._createTrPlaceholder(b.currentItem,e):"img"===d&&e.attr("src",b.currentItem.attr("src")),c||e.css("visibility","hidden"),e},update:function(a,e){c&&!d.forcePlaceholderSize||(e.height()||e.height(b.currentItem.innerHeight()-parseInt(b.currentItem.css("paddingTop")||0,10)-parseInt(b.currentItem.css("paddingBottom")||0,10)),e.width()||e.width(b.currentItem.innerWidth()-parseInt(b.currentItem.css("paddingLeft")||0,10)-parseInt(b.currentItem.css("paddingRight")||0,10)))}}),b.placeholder=a(d.placeholder.element.call(b.element,b.currentItem)),b.currentItem.after(b.placeholder),d.placeholder.update(b,b.placeholder)},_createTrPlaceholder:function(b,c){var d=this;b.children().each(function(){a(" ",d.document[0]).attr("colspan",a(this).attr("colspan")||1).appendTo(c)})},_contactContainers:function(b){var c,d,e,f,g,h,i,j,k,l,m=null,n=null;for(c=this.containers.length-1;c>=0;c--)if(!a.contains(this.currentItem[0],this.containers[c].element[0]))if(this._intersectsWith(this.containers[c].containerCache)){if(m&&a.contains(this.containers[c].element[0],m.element[0]))continue;m=this.containers[c],n=c}else this.containers[c].containerCache.over&&(this.containers[c]._trigger("out",b,this._uiHash(this)),this.containers[c].containerCache.over=0);if(m)if(1===this.containers.length)this.containers[n].containerCache.over||(this.containers[n]._trigger("over",b,this._uiHash(this)),this.containers[n].containerCache.over=1);else{for(e=1e4,f=null,k=m.floating||this._isFloating(this.currentItem),g=k?"left":"top",h=k?"width":"height",l=k?"clientX":"clientY",d=this.items.length-1;d>=0;d--)a.contains(this.containers[n].element[0],this.items[d].item[0])&&this.items[d].item[0]!==this.currentItem[0]&&(i=this.items[d].item.offset()[g],j=!1,b[l]-i>this.items[d][h]/2&&(j=!0),Math.abs(b[l]-i)this.containment[2]&&(f=this.containment[2]+this.offset.click.left),b.pageY-this.offset.click.top>this.containment[3]&&(g=this.containment[3]+this.offset.click.top)),e.grid&&(c=this.originalPageY+Math.round((g-this.originalPageY)/e.grid[1])*e.grid[1],g=this.containment?c-this.offset.click.top>=this.containment[1]&&c-this.offset.click.top<=this.containment[3]?c:c-this.offset.click.top>=this.containment[1]?c-e.grid[1]:c+e.grid[1]:c,d=this.originalPageX+Math.round((f-this.originalPageX)/e.grid[0])*e.grid[0],f=this.containment?d-this.offset.click.left>=this.containment[0]&&d-this.offset.click.left<=this.containment[2]?d:d-this.offset.click.left>=this.containment[0]?d-e.grid[0]:d+e.grid[0]:d)),{top:g-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.scrollParent.scrollTop():i?0:h.scrollTop()),left:f-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():i?0:h.scrollLeft())}},_rearrange:function(a,b,c,d){c?c[0].appendChild(this.placeholder[0]):b.item[0].parentNode.insertBefore(this.placeholder[0],"down"===this.direction?b.item[0]:b.item[0].nextSibling),this.counter=this.counter?++this.counter:1;var e=this.counter;this._delay(function(){e===this.counter&&this.refreshPositions(!d)})},_clear:function(a,b){function c(a,b,c){return function(d){c._trigger(a,d,b._uiHash(b))}}this.reverting=!1;var d,e=[];if(!this._noFinalSort&&this.currentItem.parent().length&&this.placeholder.before(this.currentItem),this._noFinalSort=null,this.helper[0]===this.currentItem[0]){for(d in this._storedCSS)"auto"!==this._storedCSS[d]&&"static"!==this._storedCSS[d]||(this._storedCSS[d]="");this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper")}else this.currentItem.show();for(this.fromOutside&&!b&&e.push(function(a){this._trigger("receive",a,this._uiHash(this.fromOutside))}),!this.fromOutside&&this.domPosition.prev===this.currentItem.prev().not(".ui-sortable-helper")[0]&&this.domPosition.parent===this.currentItem.parent()[0]||b||e.push(function(a){this._trigger("update",a,this._uiHash())}),this!==this.currentContainer&&(b||(e.push(function(a){this._trigger("remove",a,this._uiHash())}),e.push(function(a){return function(b){a._trigger("receive",b,this._uiHash(this))}}.call(this,this.currentContainer)),e.push(function(a){return function(b){a._trigger("update",b,this._uiHash(this))}}.call(this,this.currentContainer)))),d=this.containers.length-1;d>=0;d--)b||e.push(c("deactivate",this,this.containers[d])),this.containers[d].containerCache.over&&(e.push(c("out",this,this.containers[d])),this.containers[d].containerCache.over=0);if(this.storedCursor&&(this.document.find("body").css("cursor",this.storedCursor),this.storedStylesheet.remove()),this._storedOpacity&&this.helper.css("opacity",this._storedOpacity),this._storedZIndex&&this.helper.css("zIndex","auto"===this._storedZIndex?"":this._storedZIndex),this.dragging=!1,b||this._trigger("beforeStop",a,this._uiHash()),this.placeholder[0].parentNode.removeChild(this.placeholder[0]),this.cancelHelperRemoval||(this.helper[0]!==this.currentItem[0]&&this.helper.remove(),this.helper=null),!b){for(d=0;d1&&c===d}}(),_create:function(){var b=this,c=this.options;this.running=!1,this.element.addClass("ui-tabs ui-widget ui-widget-content ui-corner-all").toggleClass("ui-tabs-collapsible",c.collapsible),this._processTabs(),c.active=this._initialActive(),a.isArray(c.disabled)&&(c.disabled=a.unique(c.disabled.concat(a.map(this.tabs.filter(".ui-state-disabled"),function(a){return b.tabs.index(a)}))).sort()),this.options.active!==!1&&this.anchors.length?this.active=this._findActive(c.active):this.active=a(),this._refresh(),this.active.length&&this.load(c.active)},_initialActive:function(){var b=this.options.active,c=this.options.collapsible,d=location.hash.substring(1);return null===b&&(d&&this.tabs.each(function(c,e){if(a(e).attr("aria-controls")===d)return b=c,!1}),null===b&&(b=this.tabs.index(this.tabs.filter(".ui-tabs-active"))),null!==b&&b!==-1||(b=!!this.tabs.length&&0)),b!==!1&&(b=this.tabs.index(this.tabs.eq(b)),b===-1&&(b=!c&&0)),!c&&b===!1&&this.anchors.length&&(b=0),b},_getCreateEventData:function(){return{tab:this.active,panel:this.active.length?this._getPanelForTab(this.active):a()}},_tabKeydown:function(b){var c=a(this.document[0].activeElement).closest("li"),d=this.tabs.index(c),e=!0;if(!this._handlePageNav(b)){switch(b.keyCode){case a.ui.keyCode.RIGHT:case a.ui.keyCode.DOWN:d++;break;case a.ui.keyCode.UP:case a.ui.keyCode.LEFT:e=!1,d--;break;case a.ui.keyCode.END:d=this.anchors.length-1;break;case a.ui.keyCode.HOME:d=0;break;case a.ui.keyCode.SPACE:return b.preventDefault(),clearTimeout(this.activating),void this._activate(d);case a.ui.keyCode.ENTER:return b.preventDefault(),clearTimeout(this.activating),void this._activate(d!==this.options.active&&d);default:return}b.preventDefault(),clearTimeout(this.activating),d=this._focusNextTab(d,e),b.ctrlKey||b.metaKey||(c.attr("aria-selected","false"),this.tabs.eq(d).attr("aria-selected","true"),this.activating=this._delay(function(){this.option("active",d)},this.delay))}},_panelKeydown:function(b){this._handlePageNav(b)||b.ctrlKey&&b.keyCode===a.ui.keyCode.UP&&(b.preventDefault(),this.active.focus())},_handlePageNav:function(b){return b.altKey&&b.keyCode===a.ui.keyCode.PAGE_UP?(this._activate(this._focusNextTab(this.options.active-1,!1)),!0):b.altKey&&b.keyCode===a.ui.keyCode.PAGE_DOWN?(this._activate(this._focusNextTab(this.options.active+1,!0)),!0):void 0},_findNextTab:function(b,c){function d(){return b>e&&(b=0),b<0&&(b=e),b}for(var e=this.tabs.length-1;a.inArray(d(),this.options.disabled)!==-1;)b=c?b+1:b-1;return b},_focusNextTab:function(a,b){return a=this._findNextTab(a,b),this.tabs.eq(a).focus(),a},_setOption:function(a,b){return"active"===a?void this._activate(b):"disabled"===a?void this._setupDisabled(b):(this._super(a,b),"collapsible"===a&&(this.element.toggleClass("ui-tabs-collapsible",b),b||this.options.active!==!1||this._activate(0)),"event"===a&&this._setupEvents(b),void("heightStyle"===a&&this._setupHeightStyle(b)))},_sanitizeSelector:function(a){return a?a.replace(/[!"$%&'()*+,.\/:;<=>?@\[\]\^`{|}~]/g,"\\$&"):""},refresh:function(){var b=this.options,c=this.tablist.children(":has(a[href])");b.disabled=a.map(c.filter(".ui-state-disabled"),function(a){return c.index(a)}),this._processTabs(),b.active!==!1&&this.anchors.length?this.active.length&&!a.contains(this.tablist[0],this.active[0])?this.tabs.length===b.disabled.length?(b.active=!1,this.active=a()):this._activate(this._findNextTab(Math.max(0,b.active-1),!1)):b.active=this.tabs.index(this.active):(b.active=!1,this.active=a()),this._refresh()},_refresh:function(){this._setupDisabled(this.options.disabled),this._setupEvents(this.options.event),this._setupHeightStyle(this.options.heightStyle),this.tabs.not(this.active).attr({"aria-selected":"false","aria-expanded":"false",tabIndex:-1}),this.panels.not(this._getPanelForTab(this.active)).hide().attr({"aria-hidden":"true"}),this.active.length?(this.active.addClass("ui-tabs-active ui-state-active").attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0}),this._getPanelForTab(this.active).show().attr({"aria-hidden":"false"})):this.tabs.eq(0).attr("tabIndex",0)},_processTabs:function(){var b=this,c=this.tabs,d=this.anchors,e=this.panels;this.tablist=this._getList().addClass("ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all").attr("role","tablist").delegate("> li","mousedown"+this.eventNamespace,function(b){a(this).is(".ui-state-disabled")&&b.preventDefault()}).delegate(".ui-tabs-anchor","focus"+this.eventNamespace,function(){a(this).closest("li").is(".ui-state-disabled")&&this.blur()}),this.tabs=this.tablist.find("> li:has(a[href])").addClass("ui-state-default ui-corner-top").attr({role:"tab",tabIndex:-1}),this.anchors=this.tabs.map(function(){return a("a",this)[0]}).addClass("ui-tabs-anchor").attr({role:"presentation",tabIndex:-1}),this.panels=a(),this.anchors.each(function(c,d){var e,f,g,h=a(d).uniqueId().attr("id"),i=a(d).closest("li"),j=i.attr("aria-controls");b._isLocal(d)?(e=d.hash,g=e.substring(1),f=b.element.find(b._sanitizeSelector(e))):(g=i.attr("aria-controls")||a({}).uniqueId()[0].id,e="#"+g,f=b.element.find(e),f.length||(f=b._createPanel(g),f.insertAfter(b.panels[c-1]||b.tablist)),f.attr("aria-live","polite")),f.length&&(b.panels=b.panels.add(f)),j&&i.data("ui-tabs-aria-controls",j),i.attr({"aria-controls":g,"aria-labelledby":h}),f.attr("aria-labelledby",h)}),this.panels.addClass("ui-tabs-panel ui-widget-content ui-corner-bottom").attr("role","tabpanel"),c&&(this._off(c.not(this.tabs)),this._off(d.not(this.anchors)),this._off(e.not(this.panels)))},_getList:function(){return this.tablist||this.element.find("ol,ul").eq(0)},_createPanel:function(b){return a("
    ").attr("id",b).addClass("ui-tabs-panel ui-widget-content ui-corner-bottom").data("ui-tabs-destroy",!0)},_setupDisabled:function(b){a.isArray(b)&&(b.length?b.length===this.anchors.length&&(b=!0):b=!1);for(var c,d=0;c=this.tabs[d];d++)b===!0||a.inArray(d,b)!==-1?a(c).addClass("ui-state-disabled").attr("aria-disabled","true"):a(c).removeClass("ui-state-disabled").removeAttr("aria-disabled");this.options.disabled=b},_setupEvents:function(b){var c={};b&&a.each(b.split(" "),function(a,b){c[b]="_eventHandler"}),this._off(this.anchors.add(this.tabs).add(this.panels)),this._on(!0,this.anchors,{click:function(a){a.preventDefault()}}),this._on(this.anchors,c),this._on(this.tabs,{keydown:"_tabKeydown"}),this._on(this.panels,{keydown:"_panelKeydown"}),this._focusable(this.tabs),this._hoverable(this.tabs)},_setupHeightStyle:function(b){var c,d=this.element.parent();"fill"===b?(c=d.height(),c-=this.element.outerHeight()-this.element.height(),this.element.siblings(":visible").each(function(){var b=a(this),d=b.css("position");"absolute"!==d&&"fixed"!==d&&(c-=b.outerHeight(!0))}),this.element.children().not(this.panels).each(function(){c-=a(this).outerHeight(!0)}),this.panels.each(function(){a(this).height(Math.max(0,c-a(this).innerHeight()+a(this).height()))}).css("overflow","auto")):"auto"===b&&(c=0,this.panels.each(function(){c=Math.max(c,a(this).height("").height())}).height(c))},_eventHandler:function(b){var c=this.options,d=this.active,e=a(b.currentTarget),f=e.closest("li"),g=f[0]===d[0],h=g&&c.collapsible,i=h?a():this._getPanelForTab(f),j=d.length?this._getPanelForTab(d):a(),k={oldTab:d,oldPanel:j,newTab:h?a():f,newPanel:i};b.preventDefault(),f.hasClass("ui-state-disabled")||f.hasClass("ui-tabs-loading")||this.running||g&&!c.collapsible||this._trigger("beforeActivate",b,k)===!1||(c.active=!h&&this.tabs.index(f),this.active=g?a():f,this.xhr&&this.xhr.abort(),j.length||i.length||a.error("jQuery UI Tabs: Mismatching fragment identifier."),i.length&&this.load(this.tabs.index(f),b),this._toggle(b,k))},_toggle:function(b,c){function d(){f.running=!1,f._trigger("activate",b,c)}function e(){c.newTab.closest("li").addClass("ui-tabs-active ui-state-active"),g.length&&f.options.show?f._show(g,f.options.show,d):(g.show(),d())}var f=this,g=c.newPanel,h=c.oldPanel;this.running=!0,h.length&&this.options.hide?this._hide(h,this.options.hide,function(){c.oldTab.closest("li").removeClass("ui-tabs-active ui-state-active"),e()}):(c.oldTab.closest("li").removeClass("ui-tabs-active ui-state-active"),h.hide(),e()),h.attr("aria-hidden","true"),c.oldTab.attr({"aria-selected":"false","aria-expanded":"false"}),g.length&&h.length?c.oldTab.attr("tabIndex",-1):g.length&&this.tabs.filter(function(){return 0===a(this).attr("tabIndex")}).attr("tabIndex",-1),g.attr("aria-hidden","false"),c.newTab.attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0})},_activate:function(b){var c,d=this._findActive(b);d[0]!==this.active[0]&&(d.length||(d=this.active),c=d.find(".ui-tabs-anchor")[0],this._eventHandler({target:c,currentTarget:c,preventDefault:a.noop}))},_findActive:function(b){return b===!1?a():this.tabs.eq(b)},_getIndex:function(a){return"string"==typeof a&&(a=this.anchors.index(this.anchors.filter("[href$='"+a+"']"))),a},_destroy:function(){this.xhr&&this.xhr.abort(),this.element.removeClass("ui-tabs ui-widget ui-widget-content ui-corner-all ui-tabs-collapsible"),this.tablist.removeClass("ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all").removeAttr("role"),this.anchors.removeClass("ui-tabs-anchor").removeAttr("role").removeAttr("tabIndex").removeUniqueId(),this.tablist.unbind(this.eventNamespace),this.tabs.add(this.panels).each(function(){a.data(this,"ui-tabs-destroy")?a(this).remove():a(this).removeClass("ui-state-default ui-state-active ui-state-disabled ui-corner-top ui-corner-bottom ui-widget-content ui-tabs-active ui-tabs-panel").removeAttr("tabIndex").removeAttr("aria-live").removeAttr("aria-busy").removeAttr("aria-selected").removeAttr("aria-labelledby").removeAttr("aria-hidden").removeAttr("aria-expanded").removeAttr("role")}),this.tabs.each(function(){var b=a(this),c=b.data("ui-tabs-aria-controls");c?b.attr("aria-controls",c).removeData("ui-tabs-aria-controls"):b.removeAttr("aria-controls")}),this.panels.show(),"content"!==this.options.heightStyle&&this.panels.css("height","")},enable:function(b){var c=this.options.disabled;c!==!1&&(void 0===b?c=!1:(b=this._getIndex(b),c=a.isArray(c)?a.map(c,function(a){return a!==b?a:null}):a.map(this.tabs,function(a,c){return c!==b?c:null})),this._setupDisabled(c))},disable:function(b){var c=this.options.disabled;if(c!==!0){if(void 0===b)c=!0;else{if(b=this._getIndex(b),a.inArray(b,c)!==-1)return;c=a.isArray(c)?a.merge([b],c).sort():[b]}this._setupDisabled(c)}},load:function(b,c){b=this._getIndex(b);var d=this,e=this.tabs.eq(b),f=e.find(".ui-tabs-anchor"),g=this._getPanelForTab(e),h={tab:e,panel:g},i=function(a,b){"abort"===b&&d.panels.stop(!1,!0),e.removeClass("ui-tabs-loading"),g.removeAttr("aria-busy"),a===d.xhr&&delete d.xhr};this._isLocal(f[0])||(this.xhr=a.ajax(this._ajaxSettings(f,c,h)),this.xhr&&"canceled"!==this.xhr.statusText&&(e.addClass("ui-tabs-loading"),g.attr("aria-busy","true"),this.xhr.done(function(a,b,e){setTimeout(function(){g.html(a),d._trigger("load",c,h),i(e,b)},1)}).fail(function(a,b){setTimeout(function(){i(a,b)},1)})))},_ajaxSettings:function(b,c,d){var e=this;return{url:b.attr("href"),beforeSend:function(b,f){return e._trigger("beforeLoad",c,a.extend({jqXHR:b,ajaxSettings:f},d))}}},_getPanelForTab:function(b){var c=a(b).attr("aria-controls");return this.element.find(this._sanitizeSelector("#"+c))}})}); } catch(e){console.error("An error has occurred: "+e.stack);} /* https://ca.onair.cc/wp-includes/js/jquery/ui/datepicker.min.js */ try{ /*! * jQuery UI Datepicker 1.11.4 * https://jqueryui.com * * Copyright jQuery Foundation and other contributors * Released under the MIT license. * https://jquery.org/license * * https://api.jqueryui.com/datepicker/ */ !function(a){"function"==typeof define&&define.amd?define(["jquery","./core"],a):a(jQuery)}(function(a){function b(a){for(var b,c;a.length&&a[0]!==document;){if(b=a.css("position"),("absolute"===b||"relative"===b||"fixed"===b)&&(c=parseInt(a.css("zIndex"),10),!isNaN(c)&&0!==c))return c;a=a.parent()}return 0}function c(){this._curInst=null,this._keyEvent=!1,this._disabledInputs=[],this._datepickerShowing=!1,this._inDialog=!1,this._mainDivId="ui-datepicker-div",this._inlineClass="ui-datepicker-inline",this._appendClass="ui-datepicker-append",this._triggerClass="ui-datepicker-trigger",this._dialogClass="ui-datepicker-dialog",this._disableClass="ui-datepicker-disabled",this._unselectableClass="ui-datepicker-unselectable",this._currentClass="ui-datepicker-current-day",this._dayOverClass="ui-datepicker-days-cell-over",this.regional=[],this.regional[""]={closeText:"Done",prevText:"Prev",nextText:"Next",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"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],weekHeader:"Wk",dateFormat:"mm/dd/yy",firstDay:0,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""},this._defaults={showOn:"focus",showAnim:"fadeIn",showOptions:{},defaultDate:null,appendText:"",buttonText:"...",buttonImage:"",buttonImageOnly:!1,hideIfNoPrevNext:!1,navigationAsDateFormat:!1,gotoCurrent:!1,changeMonth:!1,changeYear:!1,yearRange:"c-10:c+10",showOtherMonths:!1,selectOtherMonths:!1,showWeek:!1,calculateWeek:this.iso8601Week,shortYearCutoff:"+10",minDate:null,maxDate:null,duration:"fast",beforeShowDay:null,beforeShow:null,onSelect:null,onChangeMonthYear:null,onClose:null,numberOfMonths:1,showCurrentAtPos:0,stepMonths:1,stepBigMonths:12,altField:"",altFormat:"",constrainInput:!0,showButtonPanel:!1,autoSize:!1,disabled:!1},a.extend(this._defaults,this.regional[""]),this.regional.en=a.extend(!0,{},this.regional[""]),this.regional["en-US"]=a.extend(!0,{},this.regional.en),this.dpDiv=d(a("
    "))}function d(b){var c="button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a";return b.delegate(c,"mouseout",function(){a(this).removeClass("ui-state-hover"),this.className.indexOf("ui-datepicker-prev")!==-1&&a(this).removeClass("ui-datepicker-prev-hover"),this.className.indexOf("ui-datepicker-next")!==-1&&a(this).removeClass("ui-datepicker-next-hover")}).delegate(c,"mouseover",e)}function e(){a.datepicker._isDisabledDatepicker(g.inline?g.dpDiv.parent()[0]:g.input[0])||(a(this).parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover"),a(this).addClass("ui-state-hover"),this.className.indexOf("ui-datepicker-prev")!==-1&&a(this).addClass("ui-datepicker-prev-hover"),this.className.indexOf("ui-datepicker-next")!==-1&&a(this).addClass("ui-datepicker-next-hover"))}function f(b,c){a.extend(b,c);for(var d in c)null==c[d]&&(b[d]=c[d]);return b}a.extend(a.ui,{datepicker:{version:"1.11.4"}});var g;return a.extend(c.prototype,{markerClassName:"hasDatepicker",maxRows:4,_widgetDatepicker:function(){return this.dpDiv},setDefaults:function(a){return f(this._defaults,a||{}),this},_attachDatepicker:function(b,c){var d,e,f;d=b.nodeName.toLowerCase(),e="div"===d||"span"===d,b.id||(this.uuid+=1,b.id="dp"+this.uuid),f=this._newInst(a(b),e),f.settings=a.extend({},c||{}),"input"===d?this._connectDatepicker(b,f):e&&this._inlineDatepicker(b,f)},_newInst:function(b,c){var e=b[0].id.replace(/([^A-Za-z0-9_\-])/g,"\\\\$1");return{id:e,input:b,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:c,dpDiv:c?d(a("
    ")):this.dpDiv}},_connectDatepicker:function(b,c){var d=a(b);c.append=a([]),c.trigger=a([]),d.hasClass(this.markerClassName)||(this._attachments(d,c),d.addClass(this.markerClassName).keydown(this._doKeyDown).keypress(this._doKeyPress).keyup(this._doKeyUp),this._autoSize(c),a.data(b,"datepicker",c),c.settings.disabled&&this._disableDatepicker(b))},_attachments:function(b,c){var d,e,f,g=this._get(c,"appendText"),h=this._get(c,"isRTL");c.append&&c.append.remove(),g&&(c.append=a(""+g+""),b[h?"before":"after"](c.append)),b.unbind("focus",this._showDatepicker),c.trigger&&c.trigger.remove(),d=this._get(c,"showOn"),"focus"!==d&&"both"!==d||b.focus(this._showDatepicker),"button"!==d&&"both"!==d||(e=this._get(c,"buttonText"),f=this._get(c,"buttonImage"),c.trigger=a(this._get(c,"buttonImageOnly")?a("").addClass(this._triggerClass).attr({src:f,alt:e,title:e}):a("").addClass(this._triggerClass).html(f?a("").attr({src:f,alt:e,title:e}):e)),b[h?"before":"after"](c.trigger),c.trigger.click(function(){return a.datepicker._datepickerShowing&&a.datepicker._lastInput===b[0]?a.datepicker._hideDatepicker():a.datepicker._datepickerShowing&&a.datepicker._lastInput!==b[0]?(a.datepicker._hideDatepicker(),a.datepicker._showDatepicker(b[0])):a.datepicker._showDatepicker(b[0]),!1}))},_autoSize:function(a){if(this._get(a,"autoSize")&&!a.inline){var b,c,d,e,f=new Date(2009,11,20),g=this._get(a,"dateFormat");g.match(/[DM]/)&&(b=function(a){for(c=0,d=0,e=0;ec&&(c=a[e].length,d=e);return d},f.setMonth(b(this._get(a,g.match(/MM/)?"monthNames":"monthNamesShort"))),f.setDate(b(this._get(a,g.match(/DD/)?"dayNames":"dayNamesShort"))+20-f.getDay())),a.input.attr("size",this._formatDate(a,f).length)}},_inlineDatepicker:function(b,c){var d=a(b);d.hasClass(this.markerClassName)||(d.addClass(this.markerClassName).append(c.dpDiv),a.data(b,"datepicker",c),this._setDate(c,this._getDefaultDate(c),!0),this._updateDatepicker(c),this._updateAlternate(c),c.settings.disabled&&this._disableDatepicker(b),c.dpDiv.css("display","block"))},_dialogDatepicker:function(b,c,d,e,g){var h,i,j,k,l,m=this._dialogInst;return m||(this.uuid+=1,h="dp"+this.uuid,this._dialogInput=a(""),this._dialogInput.keydown(this._doKeyDown),a("body").append(this._dialogInput),m=this._dialogInst=this._newInst(this._dialogInput,!1),m.settings={},a.data(this._dialogInput[0],"datepicker",m)),f(m.settings,e||{}),c=c&&c.constructor===Date?this._formatDate(m,c):c,this._dialogInput.val(c),this._pos=g?g.length?g:[g.pageX,g.pageY]:null,this._pos||(i=document.documentElement.clientWidth,j=document.documentElement.clientHeight,k=document.documentElement.scrollLeft||document.body.scrollLeft,l=document.documentElement.scrollTop||document.body.scrollTop,this._pos=[i/2-100+k,j/2-150+l]),this._dialogInput.css("left",this._pos[0]+20+"px").css("top",this._pos[1]+"px"),m.settings.onSelect=d,this._inDialog=!0,this.dpDiv.addClass(this._dialogClass),this._showDatepicker(this._dialogInput[0]),a.blockUI&&a.blockUI(this.dpDiv),a.data(this._dialogInput[0],"datepicker",m),this},_destroyDatepicker:function(b){var c,d=a(b),e=a.data(b,"datepicker");d.hasClass(this.markerClassName)&&(c=b.nodeName.toLowerCase(),a.removeData(b,"datepicker"),"input"===c?(e.append.remove(),e.trigger.remove(),d.removeClass(this.markerClassName).unbind("focus",this._showDatepicker).unbind("keydown",this._doKeyDown).unbind("keypress",this._doKeyPress).unbind("keyup",this._doKeyUp)):"div"!==c&&"span"!==c||d.removeClass(this.markerClassName).empty(),g===e&&(g=null))},_enableDatepicker:function(b){var c,d,e=a(b),f=a.data(b,"datepicker");e.hasClass(this.markerClassName)&&(c=b.nodeName.toLowerCase(),"input"===c?(b.disabled=!1,f.trigger.filter("button").each(function(){this.disabled=!1}).end().filter("img").css({opacity:"1.0",cursor:""})):"div"!==c&&"span"!==c||(d=e.children("."+this._inlineClass),d.children().removeClass("ui-state-disabled"),d.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!1)),this._disabledInputs=a.map(this._disabledInputs,function(a){return a===b?null:a}))},_disableDatepicker:function(b){var c,d,e=a(b),f=a.data(b,"datepicker");e.hasClass(this.markerClassName)&&(c=b.nodeName.toLowerCase(),"input"===c?(b.disabled=!0,f.trigger.filter("button").each(function(){this.disabled=!0}).end().filter("img").css({opacity:"0.5",cursor:"default"})):"div"!==c&&"span"!==c||(d=e.children("."+this._inlineClass),d.children().addClass("ui-state-disabled"),d.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!0)),this._disabledInputs=a.map(this._disabledInputs,function(a){return a===b?null:a}),this._disabledInputs[this._disabledInputs.length]=b)},_isDisabledDatepicker:function(a){if(!a)return!1;for(var b=0;b-1},_doKeyUp:function(b){var c,d=a.datepicker._getInst(b.target);if(d.input.val()!==d.lastVal)try{c=a.datepicker.parseDate(a.datepicker._get(d,"dateFormat"),d.input?d.input.val():null,a.datepicker._getFormatConfig(d)),c&&(a.datepicker._setDateFromField(d),a.datepicker._updateAlternate(d),a.datepicker._updateDatepicker(d))}catch(e){}return!0},_showDatepicker:function(c){if(c=c.target||c,"input"!==c.nodeName.toLowerCase()&&(c=a("input",c.parentNode)[0]),!a.datepicker._isDisabledDatepicker(c)&&a.datepicker._lastInput!==c){var d,e,g,h,i,j,k;d=a.datepicker._getInst(c),a.datepicker._curInst&&a.datepicker._curInst!==d&&(a.datepicker._curInst.dpDiv.stop(!0,!0),d&&a.datepicker._datepickerShowing&&a.datepicker._hideDatepicker(a.datepicker._curInst.input[0])),e=a.datepicker._get(d,"beforeShow"),g=e?e.apply(c,[c,d]):{},g!==!1&&(f(d.settings,g),d.lastVal=null,a.datepicker._lastInput=c,a.datepicker._setDateFromField(d),a.datepicker._inDialog&&(c.value=""),a.datepicker._pos||(a.datepicker._pos=a.datepicker._findPos(c),a.datepicker._pos[1]+=c.offsetHeight),h=!1,a(c).parents().each(function(){return h|="fixed"===a(this).css("position"),!h}),i={left:a.datepicker._pos[0],top:a.datepicker._pos[1]},a.datepicker._pos=null,d.dpDiv.empty(),d.dpDiv.css({position:"absolute",display:"block",top:"-1000px"}),a.datepicker._updateDatepicker(d),i=a.datepicker._checkOffset(d,i,h),d.dpDiv.css({position:a.datepicker._inDialog&&a.blockUI?"static":h?"fixed":"absolute",display:"none",left:i.left+"px",top:i.top+"px"}),d.inline||(j=a.datepicker._get(d,"showAnim"),k=a.datepicker._get(d,"duration"),d.dpDiv.css("z-index",b(a(c))+1),a.datepicker._datepickerShowing=!0,a.effects&&a.effects.effect[j]?d.dpDiv.show(j,a.datepicker._get(d,"showOptions"),k):d.dpDiv[j||"show"](j?k:null),a.datepicker._shouldFocusInput(d)&&d.input.focus(),a.datepicker._curInst=d))}},_updateDatepicker:function(b){this.maxRows=4,g=b,b.dpDiv.empty().append(this._generateHTML(b)),this._attachHandlers(b);var c,d=this._getNumberOfMonths(b),f=d[1],h=17,i=b.dpDiv.find("."+this._dayOverClass+" a");i.length>0&&e.apply(i.get(0)),b.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width(""),f>1&&b.dpDiv.addClass("ui-datepicker-multi-"+f).css("width",h*f+"em"),b.dpDiv[(1!==d[0]||1!==d[1]?"add":"remove")+"Class"]("ui-datepicker-multi"),b.dpDiv[(this._get(b,"isRTL")?"add":"remove")+"Class"]("ui-datepicker-rtl"),b===a.datepicker._curInst&&a.datepicker._datepickerShowing&&a.datepicker._shouldFocusInput(b)&&b.input.focus(),b.yearshtml&&(c=b.yearshtml,setTimeout(function(){c===b.yearshtml&&b.yearshtml&&b.dpDiv.find("select.ui-datepicker-year:first").replaceWith(b.yearshtml),c=b.yearshtml=null},0))},_shouldFocusInput:function(a){return a.input&&a.input.is(":visible")&&!a.input.is(":disabled")&&!a.input.is(":focus")},_checkOffset:function(b,c,d){var e=b.dpDiv.outerWidth(),f=b.dpDiv.outerHeight(),g=b.input?b.input.outerWidth():0,h=b.input?b.input.outerHeight():0,i=document.documentElement.clientWidth+(d?0:a(document).scrollLeft()),j=document.documentElement.clientHeight+(d?0:a(document).scrollTop());return c.left-=this._get(b,"isRTL")?e-g:0,c.left-=d&&c.left===b.input.offset().left?a(document).scrollLeft():0,c.top-=d&&c.top===b.input.offset().top+h?a(document).scrollTop():0,c.left-=Math.min(c.left,c.left+e>i&&i>e?Math.abs(c.left+e-i):0),c.top-=Math.min(c.top,c.top+f>j&&j>f?Math.abs(f+h):0),c},_findPos:function(b){for(var c,d=this._getInst(b),e=this._get(d,"isRTL");b&&("hidden"===b.type||1!==b.nodeType||a.expr.filters.hidden(b));)b=b[e?"previousSibling":"nextSibling"];return c=a(b).offset(),[c.left,c.top]},_hideDatepicker:function(b){var c,d,e,f,g=this._curInst;!g||b&&g!==a.data(b,"datepicker")||this._datepickerShowing&&(c=this._get(g,"showAnim"),d=this._get(g,"duration"),e=function(){a.datepicker._tidyDialog(g)},a.effects&&(a.effects.effect[c]||a.effects[c])?g.dpDiv.hide(c,a.datepicker._get(g,"showOptions"),d,e):g.dpDiv["slideDown"===c?"slideUp":"fadeIn"===c?"fadeOut":"hide"](c?d:null,e),c||e(),this._datepickerShowing=!1,f=this._get(g,"onClose"),f&&f.apply(g.input?g.input[0]:null,[g.input?g.input.val():"",g]),this._lastInput=null,this._inDialog&&(this._dialogInput.css({position:"absolute",left:"0",top:"-100px"}),a.blockUI&&(a.unblockUI(),a("body").append(this.dpDiv))),this._inDialog=!1)},_tidyDialog:function(a){a.dpDiv.removeClass(this._dialogClass).unbind(".ui-datepicker-calendar")},_checkExternalClick:function(b){if(a.datepicker._curInst){var c=a(b.target),d=a.datepicker._getInst(c[0]);(c[0].id===a.datepicker._mainDivId||0!==c.parents("#"+a.datepicker._mainDivId).length||c.hasClass(a.datepicker.markerClassName)||c.closest("."+a.datepicker._triggerClass).length||!a.datepicker._datepickerShowing||a.datepicker._inDialog&&a.blockUI)&&(!c.hasClass(a.datepicker.markerClassName)||a.datepicker._curInst===d)||a.datepicker._hideDatepicker()}},_adjustDate:function(b,c,d){var e=a(b),f=this._getInst(e[0]);this._isDisabledDatepicker(e[0])||(this._adjustInstDate(f,c+("M"===d?this._get(f,"showCurrentAtPos"):0),d),this._updateDatepicker(f))},_gotoToday:function(b){var c,d=a(b),e=this._getInst(d[0]);this._get(e,"gotoCurrent")&&e.currentDay?(e.selectedDay=e.currentDay,e.drawMonth=e.selectedMonth=e.currentMonth,e.drawYear=e.selectedYear=e.currentYear):(c=new Date,e.selectedDay=c.getDate(),e.drawMonth=e.selectedMonth=c.getMonth(),e.drawYear=e.selectedYear=c.getFullYear()),this._notifyChange(e),this._adjustDate(d)},_selectMonthYear:function(b,c,d){var e=a(b),f=this._getInst(e[0]);f["selected"+("M"===d?"Month":"Year")]=f["draw"+("M"===d?"Month":"Year")]=parseInt(c.options[c.selectedIndex].value,10),this._notifyChange(f),this._adjustDate(e)},_selectDay:function(b,c,d,e){var f,g=a(b);a(e).hasClass(this._unselectableClass)||this._isDisabledDatepicker(g[0])||(f=this._getInst(g[0]),f.selectedDay=f.currentDay=a("a",e).html(),f.selectedMonth=f.currentMonth=c,f.selectedYear=f.currentYear=d,this._selectDate(b,this._formatDate(f,f.currentDay,f.currentMonth,f.currentYear)))},_clearDate:function(b){var c=a(b);this._selectDate(c,"")},_selectDate:function(b,c){var d,e=a(b),f=this._getInst(e[0]);c=null!=c?c:this._formatDate(f),f.input&&f.input.val(c),this._updateAlternate(f),d=this._get(f,"onSelect"),d?d.apply(f.input?f.input[0]:null,[c,f]):f.input&&f.input.trigger("change"),f.inline?this._updateDatepicker(f):(this._hideDatepicker(),this._lastInput=f.input[0],"object"!=typeof f.input[0]&&f.input.focus(),this._lastInput=null)},_updateAlternate:function(b){var c,d,e,f=this._get(b,"altField");f&&(c=this._get(b,"altFormat")||this._get(b,"dateFormat"),d=this._getDate(b),e=this.formatDate(c,d,this._getFormatConfig(b)),a(f).each(function(){a(this).val(e)}))},noWeekends:function(a){var b=a.getDay();return[b>0&&b<6,""]},iso8601Week:function(a){var b,c=new Date(a.getTime());return c.setDate(c.getDate()+4-(c.getDay()||7)),b=c.getTime(),c.setMonth(0),c.setDate(1),Math.floor(Math.round((b-c)/864e5)/7)+1},parseDate:function(b,c,d){if(null==b||null==c)throw"Invalid arguments";if(c="object"==typeof c?c.toString():c+"",""===c)return null;var e,f,g,h,i=0,j=(d?d.shortYearCutoff:null)||this._defaults.shortYearCutoff,k="string"!=typeof j?j:(new Date).getFullYear()%100+parseInt(j,10),l=(d?d.dayNamesShort:null)||this._defaults.dayNamesShort,m=(d?d.dayNames:null)||this._defaults.dayNames,n=(d?d.monthNamesShort:null)||this._defaults.monthNamesShort,o=(d?d.monthNames:null)||this._defaults.monthNames,p=-1,q=-1,r=-1,s=-1,t=!1,u=function(a){var c=e+1-1)for(q=1,r=s;;){if(f=this._getDaysInMonth(p,q-1),r<=f)break;q++,r-=f}if(h=this._daylightSavingAdjust(new Date(p,q-1,r)),h.getFullYear()!==p||h.getMonth()+1!==q||h.getDate()!==r)throw"Invalid date";return h},ATOM:"yy-mm-dd",COOKIE:"D, dd M yy",ISO_8601:"yy-mm-dd",RFC_822:"D, d M y",RFC_850:"DD, dd-M-y",RFC_1036:"D, d M y",RFC_1123:"D, d M yy",RFC_2822:"D, d M yy",RSS:"D, d M y",TICKS:"!",TIMESTAMP:"@",W3C:"yy-mm-dd",_ticksTo1970:24*(718685+Math.floor(492.5)-Math.floor(19.7)+Math.floor(4.925))*60*60*1e7,formatDate:function(a,b,c){if(!b)return"";var d,e=(c?c.dayNamesShort:null)||this._defaults.dayNamesShort,f=(c?c.dayNames:null)||this._defaults.dayNames,g=(c?c.monthNamesShort:null)||this._defaults.monthNamesShort,h=(c?c.monthNames:null)||this._defaults.monthNames,i=function(b){var c=d+112?a.getHours()+2:0),a):null},_setDate:function(a,b,c){var d=!b,e=a.selectedMonth,f=a.selectedYear,g=this._restrictMinMax(a,this._determineDate(a,b,new Date));a.selectedDay=a.currentDay=g.getDate(),a.drawMonth=a.selectedMonth=a.currentMonth=g.getMonth(),a.drawYear=a.selectedYear=a.currentYear=g.getFullYear(),e===a.selectedMonth&&f===a.selectedYear||c||this._notifyChange(a),this._adjustInstDate(a),a.input&&a.input.val(d?"":this._formatDate(a))},_getDate:function(a){var b=!a.currentYear||a.input&&""===a.input.val()?null:this._daylightSavingAdjust(new Date(a.currentYear,a.currentMonth,a.currentDay));return b},_attachHandlers:function(b){var c=this._get(b,"stepMonths"),d="#"+b.id.replace(/\\\\/g,"\\");b.dpDiv.find("[data-handler]").map(function(){var b={prev:function(){a.datepicker._adjustDate(d,-c,"M")},next:function(){a.datepicker._adjustDate(d,+c,"M")},hide:function(){a.datepicker._hideDatepicker()},today:function(){a.datepicker._gotoToday(d)},selectDay:function(){return a.datepicker._selectDay(d,+this.getAttribute("data-month"),+this.getAttribute("data-year"),this),!1},selectMonth:function(){return a.datepicker._selectMonthYear(d,this,"M"),!1},selectYear:function(){return a.datepicker._selectMonthYear(d,this,"Y"),!1}};a(this).bind(this.getAttribute("data-event"),b[this.getAttribute("data-handler")])})},_generateHTML:function(a){var b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,A,B,C,D,E,F,G,H,I,J,K,L,M,N,O=new Date,P=this._daylightSavingAdjust(new Date(O.getFullYear(),O.getMonth(),O.getDate())),Q=this._get(a,"isRTL"),R=this._get(a,"showButtonPanel"),S=this._get(a,"hideIfNoPrevNext"),T=this._get(a,"navigationAsDateFormat"),U=this._getNumberOfMonths(a),V=this._get(a,"showCurrentAtPos"),W=this._get(a,"stepMonths"),X=1!==U[0]||1!==U[1],Y=this._daylightSavingAdjust(a.currentDay?new Date(a.currentYear,a.currentMonth,a.currentDay):new Date(9999,9,9)),Z=this._getMinMaxDate(a,"min"),$=this._getMinMaxDate(a,"max"),_=a.drawMonth-V,aa=a.drawYear;if(_<0&&(_+=12,aa--),$)for(b=this._daylightSavingAdjust(new Date($.getFullYear(),$.getMonth()-U[0]*U[1]+1,$.getDate())),b=Z&&bb;)_--,_<0&&(_=11,aa--);for(a.drawMonth=_,a.drawYear=aa,c=this._get(a,"prevText"),c=T?this.formatDate(c,this._daylightSavingAdjust(new Date(aa,_-W,1)),this._getFormatConfig(a)):c,d=this._canAdjustMonth(a,-1,aa,_)?"
    "+c+"":S?"":""+c+"",e=this._get(a,"nextText"),e=T?this.formatDate(e,this._daylightSavingAdjust(new Date(aa,_+W,1)),this._getFormatConfig(a)):e,f=this._canAdjustMonth(a,1,aa,_)?""+e+"":S?"":""+e+"",g=this._get(a,"currentText"),h=this._get(a,"gotoCurrent")&&a.currentDay?Y:P,g=T?this.formatDate(g,h,this._getFormatConfig(a)):g,i=a.inline?"":"",j=R?"
    "+(Q?i:"")+(this._isInRange(a,h)?"":"")+(Q?"":i)+"
    ":"",k=parseInt(this._get(a,"firstDay"),10),k=isNaN(k)?0:k,l=this._get(a,"showWeek"),m=this._get(a,"dayNames"),n=this._get(a,"dayNamesMin"),o=this._get(a,"monthNames"),p=this._get(a,"monthNamesShort"),q=this._get(a,"beforeShowDay"),r=this._get(a,"showOtherMonths"),s=this._get(a,"selectOtherMonths"),t=this._getDefaultDate(a),u="",w=0;w1)switch(y){case 0:B+=" ui-datepicker-group-first",A=" ui-corner-"+(Q?"right":"left");break;case U[1]-1:B+=" ui-datepicker-group-last",A=" ui-corner-"+(Q?"left":"right");break;default:B+=" ui-datepicker-group-middle",A=""}B+="'>"}for(B+="
    "+(/all|left/.test(A)&&0===w?Q?f:d:"")+(/all|right/.test(A)&&0===w?Q?d:f:"")+this._generateMonthYearHeader(a,_,aa,Z,$,w>0||y>0,o,p)+"
    ",C=l?"":"",v=0;v<7;v++)D=(v+k)%7,C+="";for(B+=C+"",E=this._getDaysInMonth(aa,_),aa===a.selectedYear&&_===a.selectedMonth&&(a.selectedDay=Math.min(a.selectedDay,E)),F=(this._getFirstDayOfMonth(aa,_)-k+7)%7,G=Math.ceil((F+E)/7),H=X&&this.maxRows>G?this.maxRows:G,this.maxRows=H,I=this._daylightSavingAdjust(new Date(aa,_,1-F)),J=0;J",K=l?"":"",v=0;v<7;v++)L=q?q.apply(a.input?a.input[0]:null,[I]):[!0,""],M=I.getMonth()!==_,N=M&&!s||!L[0]||Z&&I$,K+="",I.setDate(I.getDate()+1),I=this._daylightSavingAdjust(I);B+=K+""}_++,_>11&&(_=0,aa++),B+="
    "+this._get(a,"weekHeader")+"=5?" class='ui-datepicker-week-end'":"")+">"+n[D]+"
    "+this._get(a,"calculateWeek")(I)+""+(M&&!r?" ":N?""+I.getDate()+"":""+I.getDate()+"")+"
    "+(X?"
    "+(U[0]>0&&y===U[1]-1?"
    ":""):""),x+=B}u+=x}return u+=j,a._keyEvent=!1,u},_generateMonthYearHeader:function(a,b,c,d,e,f,g,h){var i,j,k,l,m,n,o,p,q=this._get(a,"changeMonth"),r=this._get(a,"changeYear"),s=this._get(a,"showMonthAfterYear"),t="
    ",u="";if(f||!q)u+=""+g[b]+"";else{ for(i=d&&d.getFullYear()===c,j=e&&e.getFullYear()===c,u+=""}if(s||(t+=u+(!f&&q&&r?"":" ")),!a.yearshtml)if(a.yearshtml="",f||!r)t+=""+c+"";else{for(l=this._get(a,"yearRange").split(":"),m=(new Date).getFullYear(),n=function(a){var b=a.match(/c[+\-].*/)?c+parseInt(a.substring(1),10):a.match(/[+\-].*/)?m+parseInt(a,10):parseInt(a,10);return isNaN(b)?m:b},o=n(l[0]),p=Math.max(o,n(l[1]||"")),o=d?Math.max(o,d.getFullYear()):o,p=e?Math.min(p,e.getFullYear()):p,a.yearshtml+="",t+=a.yearshtml,a.yearshtml=null}return t+=this._get(a,"yearSuffix"),s&&(t+=(!f&&q&&r?"":" ")+u),t+="
    "},_adjustInstDate:function(a,b,c){var d=a.drawYear+("Y"===c?b:0),e=a.drawMonth+("M"===c?b:0),f=Math.min(a.selectedDay,this._getDaysInMonth(d,e))+("D"===c?b:0),g=this._restrictMinMax(a,this._daylightSavingAdjust(new Date(d,e,f)));a.selectedDay=g.getDate(),a.drawMonth=a.selectedMonth=g.getMonth(),a.drawYear=a.selectedYear=g.getFullYear(),"M"!==c&&"Y"!==c||this._notifyChange(a)},_restrictMinMax:function(a,b){var c=this._getMinMaxDate(a,"min"),d=this._getMinMaxDate(a,"max"),e=c&&bd?d:e},_notifyChange:function(a){var b=this._get(a,"onChangeMonthYear");b&&b.apply(a.input?a.input[0]:null,[a.selectedYear,a.selectedMonth+1,a])},_getNumberOfMonths:function(a){var b=this._get(a,"numberOfMonths");return null==b?[1,1]:"number"==typeof b?[1,b]:b},_getMinMaxDate:function(a,b){return this._determineDate(a,this._get(a,b+"Date"),null)},_getDaysInMonth:function(a,b){return 32-this._daylightSavingAdjust(new Date(a,b,32)).getDate()},_getFirstDayOfMonth:function(a,b){return new Date(a,b,1).getDay()},_canAdjustMonth:function(a,b,c,d){var e=this._getNumberOfMonths(a),f=this._daylightSavingAdjust(new Date(c,d+(b<0?b:e[0]*e[1]),1));return b<0&&f.setDate(this._getDaysInMonth(f.getFullYear(),f.getMonth())),this._isInRange(a,f)},_isInRange:function(a,b){var c,d,e=this._getMinMaxDate(a,"min"),f=this._getMinMaxDate(a,"max"),g=null,h=null,i=this._get(a,"yearRange");return i&&(c=i.split(":"),d=(new Date).getFullYear(),g=parseInt(c[0],10),h=parseInt(c[1],10),c[0].match(/[+\-].*/)&&(g+=d),c[1].match(/[+\-].*/)&&(h+=d)),(!e||b.getTime()>=e.getTime())&&(!f||b.getTime()<=f.getTime())&&(!g||b.getFullYear()>=g)&&(!h||b.getFullYear()<=h)},_getFormatConfig:function(a){var b=this._get(a,"shortYearCutoff");return b="string"!=typeof b?b:(new Date).getFullYear()%100+parseInt(b,10),{shortYearCutoff:b,dayNamesShort:this._get(a,"dayNamesShort"),dayNames:this._get(a,"dayNames"),monthNamesShort:this._get(a,"monthNamesShort"),monthNames:this._get(a,"monthNames")}},_formatDate:function(a,b,c,d){b||(a.currentDay=a.selectedDay,a.currentMonth=a.selectedMonth,a.currentYear=a.selectedYear);var e=b?"object"==typeof b?b:this._daylightSavingAdjust(new Date(d,c,b)):this._daylightSavingAdjust(new Date(a.currentYear,a.currentMonth,a.currentDay));return this.formatDate(this._get(a,"dateFormat"),e,this._getFormatConfig(a))}}),a.fn.datepicker=function(b){if(!this.length)return this;a.datepicker.initialized||(a(document).mousedown(a.datepicker._checkExternalClick),a.datepicker.initialized=!0),0===a("#"+a.datepicker._mainDivId).length&&a("body").append(a.datepicker.dpDiv);var c=Array.prototype.slice.call(arguments,1);return"string"!=typeof b||"isDisabled"!==b&&"getDate"!==b&&"widget"!==b?"option"===b&&2===arguments.length&&"string"==typeof arguments[1]?a.datepicker["_"+b+"Datepicker"].apply(a.datepicker,[this[0]].concat(c)):this.each(function(){"string"==typeof b?a.datepicker["_"+b+"Datepicker"].apply(a.datepicker,[this].concat(c)):a.datepicker._attachDatepicker(this,b)}):a.datepicker["_"+b+"Datepicker"].apply(a.datepicker,[this[0]].concat(c))},a.datepicker=new c,a.datepicker.initialized=!1,a.datepicker.uuid=(new Date).getTime(),a.datepicker.version="1.11.4",a.datepicker}); } catch(e){console.error("An error has occurred: "+e.stack);} try{ 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});}); } catch(e){console.error("An error has occurred: "+e.stack);} /* https://ca.onair.cc/wp-includes/js/jquery/ui/effect.min.js */ try{ /*! * jQuery UI Effects 1.11.4 * https://jqueryui.com * * Copyright jQuery Foundation and other contributors * Released under the MIT license. * https://jquery.org/license * * https://api.jqueryui.com/category/effects-core/ */ !function(a){"function"==typeof define&&define.amd?define(["jquery"],a):a(jQuery)}(function(a){var b="ui-effects-",c=a;/*! * jQuery Color Animations v2.1.2 * https://github.com/jquery/jquery-color * * Copyright 2014 jQuery Foundation and other contributors * Released under the MIT license. * https://jquery.org/license * * Date: Wed Jan 16 08:47:09 2013 -0600 */ return a.effects={effect:{}},function(a,b){function c(a,b,c){var d=l[b.type]||{};return null==a?c||!b.def?null:b.def:(a=d.floor?~~a:parseFloat(a),isNaN(a)?b.def:d.mod?(a+d.mod)%d.mod:0>a?0:d.max")[0],o=a.each;n.style.cssText="background-color:rgba(1,1,1,.5)",m.rgba=n.style.backgroundColor.indexOf("rgba")>-1,o(k,function(a,b){b.cache="_"+a,b.props.alpha={idx:3,type:"percent",def:1}}),j.fn=a.extend(j.prototype,{parse:function(e,g,h,i){if(e===b)return this._rgba=[null,null,null,null],this;(e.jquery||e.nodeType)&&(e=a(e).css(g),g=b);var l=this,m=a.type(e),n=this._rgba=[];return g!==b&&(e=[e,g,h,i],m="array"),"string"===m?this.parse(d(e)||f._default):"array"===m?(o(k.rgba.props,function(a,b){n[b.idx]=c(e[b.idx],b)}),this):"object"===m?(e instanceof j?o(k,function(a,b){e[b.cache]&&(l[b.cache]=e[b.cache].slice())}):o(k,function(b,d){var f=d.cache;o(d.props,function(a,b){if(!l[f]&&d.to){if("alpha"===a||null==e[a])return;l[f]=d.to(l._rgba)}l[f][b.idx]=c(e[a],b,!0)}),l[f]&&a.inArray(null,l[f].slice(0,3))<0&&(l[f][3]=1,d.from&&(l._rgba=d.from(l[f])))}),this):void 0},is:function(a){var b=j(a),c=!0,d=this;return o(k,function(a,e){var f,g=b[e.cache];return g&&(f=d[e.cache]||e.to&&e.to(d._rgba)||[],o(e.props,function(a,b){if(null!=g[b.idx])return c=g[b.idx]===f[b.idx]})),c}),c},_space:function(){var a=[],b=this;return o(k,function(c,d){b[d.cache]&&a.push(c)}),a.pop()},transition:function(a,b){var d=j(a),e=d._space(),f=k[e],g=0===this.alpha()?j("transparent"):this,h=g[f.cache]||f.to(g._rgba),i=h.slice();return d=d[f.cache],o(f.props,function(a,e){var f=e.idx,g=h[f],j=d[f],k=l[e.type]||{};null!==j&&(null===g?i[f]=j:(k.mod&&(j-g>k.mod/2?g+=k.mod:g-j>k.mod/2&&(g-=k.mod)),i[f]=c((j-g)*b+g,e)))}),this[e](i)},blend:function(b){if(1===this._rgba[3])return this;var c=this._rgba.slice(),d=c.pop(),e=j(b)._rgba;return j(a.map(c,function(a,b){return(1-d)*e[b]+d*a}))},toRgbaString:function(){var b="rgba(",c=a.map(this._rgba,function(a,b){return null==a?b>2?1:0:a});return 1===c[3]&&(c.pop(),b="rgb("),b+c.join()+")"},toHslaString:function(){var b="hsla(",c=a.map(this.hsla(),function(a,b){return null==a&&(a=b>2?1:0),b&&b<3&&(a=Math.round(100*a)+"%"),a});return 1===c[3]&&(c.pop(),b="hsl("),b+c.join()+")"},toHexString:function(b){var c=this._rgba.slice(),d=c.pop();return b&&c.push(~~(255*d)),"#"+a.map(c,function(a){return a=(a||0).toString(16),1===a.length?"0"+a:a}).join("")},toString:function(){return 0===this._rgba[3]?"transparent":this.toRgbaString()}}),j.fn.parse.prototype=j.fn,k.hsla.to=function(a){if(null==a[0]||null==a[1]||null==a[2])return[null,null,null,a[3]];var b,c,d=a[0]/255,e=a[1]/255,f=a[2]/255,g=a[3],h=Math.max(d,e,f),i=Math.min(d,e,f),j=h-i,k=h+i,l=.5*k;return b=i===h?0:d===h?60*(e-f)/j+360:e===h?60*(f-d)/j+120:60*(d-e)/j+240,c=0===j?0:l<=.5?j/k:j/(2-k),[Math.round(b)%360,c,l,null==g?1:g]},k.hsla.from=function(a){if(null==a[0]||null==a[1]||null==a[2])return[null,null,null,a[3]];var b=a[0]/360,c=a[1],d=a[2],f=a[3],g=d<=.5?d*(1+c):d+c-d*c,h=2*d-g;return[Math.round(255*e(h,g,b+1/3)),Math.round(255*e(h,g,b)),Math.round(255*e(h,g,b-1/3)),f]},o(k,function(d,e){var f=e.props,g=e.cache,i=e.to,k=e.from;j.fn[d]=function(d){if(i&&!this[g]&&(this[g]=i(this._rgba)),d===b)return this[g].slice();var e,h=a.type(d),l="array"===h||"object"===h?d:arguments,m=this[g].slice();return o(f,function(a,b){var d=l["object"===h?a:b.idx];null==d&&(d=m[b.idx]),m[b.idx]=c(d,b)}),k?(e=j(k(m)),e[g]=m,e):j(m)},o(f,function(b,c){j.fn[b]||(j.fn[b]=function(e){var f,g=a.type(e),i="alpha"===b?this._hsla?"hsla":"rgba":d,j=this[i](),k=j[c.idx];return"undefined"===g?k:("function"===g&&(e=e.call(this,k),g=a.type(e)),null==e&&c.empty?this:("string"===g&&(f=h.exec(e),f&&(e=k+parseFloat(f[2])*("+"===f[1]?1:-1))),j[c.idx]=e,this[i](j)))})})}),j.hook=function(b){var c=b.split(" ");o(c,function(b,c){a.cssHooks[c]={set:function(b,e){var f,g,h="";if("transparent"!==e&&("string"!==a.type(e)||(f=d(e)))){if(e=j(f||e),!m.rgba&&1!==e._rgba[3]){for(g="backgroundColor"===c?b.parentNode:b;(""===h||"transparent"===h)&&g&&g.style;)try{h=a.css(g,"backgroundColor"),g=g.parentNode}catch(i){}e=e.blend(h&&"transparent"!==h?h:"_default")}e=e.toRgbaString()}try{b.style[c]=e}catch(i){}}},a.fx.step[c]=function(b){b.colorInit||(b.start=j(b.elem,c),b.end=j(b.end),b.colorInit=!0),a.cssHooks[c].set(b.elem,b.start.transition(b.end,b.pos))}})},j.hook(g),a.cssHooks.borderColor={expand:function(a){var b={};return o(["Top","Right","Bottom","Left"],function(c,d){b["border"+d+"Color"]=a}),b}},f=a.Color.names={aqua:"#00ffff",black:"#000000",blue:"#0000ff",fuchsia:"#ff00ff",gray:"#808080",green:"#008000",lime:"#00ff00",maroon:"#800000",navy:"#000080",olive:"#808000",purple:"#800080",red:"#ff0000",silver:"#c0c0c0",teal:"#008080",white:"#ffffff",yellow:"#ffff00",transparent:[null,null,null,0],_default:"#ffffff"}}(c),function(){function b(b){var c,d,e=b.ownerDocument.defaultView?b.ownerDocument.defaultView.getComputedStyle(b,null):b.currentStyle,f={};if(e&&e.length&&e[0]&&e[e[0]])for(d=e.length;d--;)c=e[d],"string"==typeof e[c]&&(f[a.camelCase(c)]=e[c]);else for(c in e)"string"==typeof e[c]&&(f[c]=e[c]);return f}function d(b,c){var d,e,g={};for(d in c)e=c[d],b[d]!==e&&(f[d]||!a.fx.step[d]&&isNaN(parseFloat(e))||(g[d]=e));return g}var e=["add","remove","toggle"],f={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1};a.each(["borderLeftStyle","borderRightStyle","borderBottomStyle","borderTopStyle"],function(b,d){a.fx.step[d]=function(a){("none"!==a.end&&!a.setAttr||1===a.pos&&!a.setAttr)&&(c.style(a.elem,d,a.end),a.setAttr=!0)}}),a.fn.addBack||(a.fn.addBack=function(a){return this.add(null==a?this.prevObject:this.prevObject.filter(a))}),a.effects.animateClass=function(c,f,g,h){var i=a.speed(f,g,h);return this.queue(function(){var f,g=a(this),h=g.attr("class")||"",j=i.children?g.find("*").addBack():g;j=j.map(function(){var c=a(this);return{el:c,start:b(this)}}),f=function(){a.each(e,function(a,b){c[b]&&g[b+"Class"](c[b])})},f(),j=j.map(function(){return this.end=b(this.el[0]),this.diff=d(this.start,this.end),this}),g.attr("class",h),j=j.map(function(){var b=this,c=a.Deferred(),d=a.extend({},i,{queue:!1,complete:function(){c.resolve(b)}});return this.el.animate(this.diff,d),c.promise()}),a.when.apply(a,j.get()).done(function(){f(),a.each(arguments,function(){var b=this.el;a.each(this.diff,function(a){b.css(a,"")})}),i.complete.call(g[0])})})},a.fn.extend({addClass:function(b){return function(c,d,e,f){return d?a.effects.animateClass.call(this,{add:c},d,e,f):b.apply(this,arguments)}}(a.fn.addClass),removeClass:function(b){return function(c,d,e,f){return arguments.length>1?a.effects.animateClass.call(this,{remove:c},d,e,f):b.apply(this,arguments)}}(a.fn.removeClass),toggleClass:function(b){return function(c,d,e,f,g){return"boolean"==typeof d||void 0===d?e?a.effects.animateClass.call(this,d?{add:c}:{remove:c},e,f,g):b.apply(this,arguments):a.effects.animateClass.call(this,{toggle:c},d,e,f)}}(a.fn.toggleClass),switchClass:function(b,c,d,e,f){return a.effects.animateClass.call(this,{add:c,remove:b},d,e,f)}})}(),function(){function c(b,c,d,e){return a.isPlainObject(b)&&(c=b,b=b.effect),b={effect:b},null==c&&(c={}),a.isFunction(c)&&(e=c,d=null,c={}),("number"==typeof c||a.fx.speeds[c])&&(e=d,d=c,c={}),a.isFunction(d)&&(e=d,d=null),c&&a.extend(b,c),d=d||c.duration,b.duration=a.fx.off?0:"number"==typeof d?d:d in a.fx.speeds?a.fx.speeds[d]:a.fx.speeds._default,b.complete=e||c.complete,b}function d(b){return!(b&&"number"!=typeof b&&!a.fx.speeds[b])||("string"==typeof b&&!a.effects.effect[b]||(!!a.isFunction(b)||"object"==typeof b&&!b.effect))}a.extend(a.effects,{version:"1.11.4",save:function(a,c){for(var d=0;d").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0}),e={width:b.width(),height:b.height()},f=document.activeElement;try{f.id}catch(g){f=document.body}return b.wrap(d),(b[0]===f||a.contains(b[0],f))&&a(f).focus(),d=b.parent(),"static"===b.css("position")?(d.css({position:"relative"}),b.css({position:"relative"})):(a.extend(c,{position:b.css("position"),zIndex:b.css("z-index")}),a.each(["top","left","bottom","right"],function(a,d){c[d]=b.css(d),isNaN(parseInt(c[d],10))&&(c[d]="auto")}),b.css({position:"relative",top:0,left:0,right:"auto",bottom:"auto"})),b.css(e),d.css(c).show()},removeWrapper:function(b){var c=document.activeElement;return b.parent().is(".ui-effects-wrapper")&&(b.parent().replaceWith(b),(b[0]===c||a.contains(b[0],c))&&a(c).focus()),b},setTransition:function(b,c,d,e){return e=e||{},a.each(c,function(a,c){var f=b.cssUnit(c);f[0]>0&&(e[c]=f[0]*d+f[1])}),e}}),a.fn.extend({effect:function(){function b(b){function c(){a.isFunction(f)&&f.call(e[0]),a.isFunction(b)&&b()}var e=a(this),f=d.complete,h=d.mode;(e.is(":hidden")?"hide"===h:"show"===h)?(e[h](),c()):g.call(e[0],d,c)}var d=c.apply(this,arguments),e=d.mode,f=d.queue,g=a.effects.effect[d.effect];return a.fx.off||!g?e?this[e](d.duration,d.complete):this.each(function(){d.complete&&d.complete.call(this)}):f===!1?this.each(b):this.queue(f||"fx",b)},show:function(a){return function(b){if(d(b))return a.apply(this,arguments);var e=c.apply(this,arguments);return e.mode="show",this.effect.call(this,e)}}(a.fn.show),hide:function(a){return function(b){if(d(b))return a.apply(this,arguments);var e=c.apply(this,arguments);return e.mode="hide",this.effect.call(this,e)}}(a.fn.hide),toggle:function(a){return function(b){if(d(b)||"boolean"==typeof b)return a.apply(this,arguments);var e=c.apply(this,arguments);return e.mode="toggle",this.effect.call(this,e)}}(a.fn.toggle),cssUnit:function(b){var c=this.css(b),d=[];return a.each(["em","px","%","pt"],function(a,b){c.indexOf(b)>0&&(d=[parseFloat(c),b])}),d}})}(),function(){var b={};a.each(["Quad","Cubic","Quart","Quint","Expo"],function(a,c){b[c]=function(b){return Math.pow(b,a+2)}}),a.extend(b,{Sine:function(a){return 1-Math.cos(a*Math.PI/2)},Circ:function(a){return 1-Math.sqrt(1-a*a)},Elastic:function(a){return 0===a||1===a?a:-Math.pow(2,8*(a-1))*Math.sin((80*(a-1)-7.5)*Math.PI/15)},Back:function(a){return a*a*(3*a-2)},Bounce:function(a){for(var b,c=4;a<((b=Math.pow(2,--c))-1)/11;);return 1/Math.pow(4,3-c)-7.5625*Math.pow((3*b-2)/22-a,2)}}),a.each(b,function(b,c){a.easing["easeIn"+b]=c,a.easing["easeOut"+b]=function(a){return 1-c(1-a)},a.easing["easeInOut"+b]=function(a){return a<.5?c(2*a)/2:1-c(a*-2+2)/2}})}(),a.effects}); } catch(e){console.error("An error has occurred: "+e.stack);} /* https://ca.onair.cc/wp-includes/js/jquery/ui/effect-slide.min.js */ try{ /*! * jQuery UI Effects Slide 1.11.4 * https://jqueryui.com * * Copyright jQuery Foundation and other contributors * Released under the MIT license. * https://jquery.org/license * * https://api.jqueryui.com/slide-effect/ */ !function(a){"function"==typeof define&&define.amd?define(["jquery","./effect"],a):a(jQuery)}(function(a){return a.effects.effect.slide=function(b,c){var d,e=a(this),f=["position","top","bottom","left","right","width","height"],g=a.effects.setMode(e,b.mode||"show"),h="show"===g,i=b.direction||"left",j="up"===i||"down"===i?"top":"left",k="up"===i||"left"===i,l={};a.effects.save(e,f),e.show(),d=b.distance||e["top"===j?"outerHeight":"outerWidth"](!0),a.effects.createWrapper(e).css({overflow:"hidden"}),h&&e.css(j,k?isNaN(d)?"-"+d:-d:d),l[j]=(h?k?"+=":"-=":k?"-=":"+=")+d,e.animate(l,{queue:!1,duration:b.duration,easing:b.easing,complete:function(){"hide"===g&&e.hide(),a.effects.restore(e,f),a.effects.removeWrapper(e),c()}})}}); } catch(e){console.error("An error has occurred: "+e.stack);} /* https://ca.onair.cc/wp-content/themes/onair-7.0/lib/slidergen/js/cycle-imp.js */ try{ jQuery(document).ready(function(){if(isLargeScreen!="function"||isLargeScreen())jQuery('.cycleContainer').oa_slider()});(function($){$.fn.oa_slider=function(){if(this.length==0)return;var slider=this;slider.playstate=!0;this.attr('data-slider-root','true');slider.addClass('sliderHost');var cycleNav=new Object();cycleNav.advanceNumeral=!1;slider.prop('cycleNav',cycleNav);var navType='thumbnails';if(slider.attr('data-nav')!=undefined) navType=this.attr('data-nav');var createWidgetsNav=!0;var createListNav=!1;slider.closest('.sliderOuterContainer').addClass('nav-'+navType);this.excerpts={};var thumbSize;thumbSize='784x441';thumbSize='335x190';if(slider.attr('data-thumb-size')!=undefined)thumbSize=slider.attr('data-thumb-size');var titles=slider.find('div.slide .slider-content[post_title]').map(function(){return jQuery(this).attr('post_title').trim()});var thumbs=slider.find('div.slide').map(function(){var $this=jQuery(this);if($this.find("img").length) return $this.find("img").attr('src');else return-1});var excerpts=slider.find('div.slide div.slider-main-content').map(function(){return jQuery(this)});var articlelinks=slider.find('div.slide .slider-img > a').map(function(){return jQuery(this).attr('href')});if(titles.length>1){var returnToFirst='';if(titles.length>=8)returnToFirst='
    ';var slideNumWidth=1+1.35*(1+Math.log10(titles.length));slider.append('
    '+returnToFirst+'
    1 / '+titles.length+'
    ');enableManualCycleControl(slider)} slider.prop('cycleNav').prevSlide=function(){var active=jQuery('#cycle-numeral-nav li.active');var nextActive;active.removeClass('active');if(active.attr('idx')==active.parent().find('li:first-child').attr('idx')){if(slider.prop('cycleNav').multipleSets){if(active.parent().attr('idx')=="0"){jQuery('#cycle-numeral-nav ul:last-child li:last-child').addClass('active')}else{active.parent().prev().find('li:last-child').addClass('active')} prevNavSet()}else{active.parent().find('li:last-child').addClass('active')}}else{active.prev().addClass('active')}} slider.prop('cycleNav').nextSlide=function(){var active=jQuery('#cycle-numeral-nav li.active');var nextActive;active.removeClass('active');if(active.attr('idx')==active.parent().find('li:last-child').attr('idx')){if(slider.prop('cycleNav').multipleSets){if(active.parent().attr('idx')==jQuery('#cycle-numeral-nav ul:last-child').attr('idx')){jQuery('#cycle-numeral-nav ul:first-child li:first-child').addClass('active')}else{active.parent().next().find('li:first-child').addClass('active')} nextNavSet()}else{active.parent().find('li:first-child').addClass('active')}}else{active.next().addClass('active')}} slider.prop('cycleNav').setSlide=function(event){var index=event.data.index;var currentLi=jQuery('#cycle-numeral-nav ul li.active');var currentUlIndex=currentLi.parent().attr('idx');var toLi=jQuery('#cycle-numeral-nav ul li.idx'+index);var toUlIndex=toLi.parent().attr('idx');if(index!=currentLi.attr('idx')){currentLi.removeClass('active');toLi.addClass('active');if(currentUlIndex!=toUlIndex){currentLi.parent().removeClass('active');currentLi.parent().css('display','none');toLi.parent().addClass('active');toLi.parent().css('display','inline-block')}}} if(navType=='numeric'){slider.prop('cycleNav').advanceNumeral=!0;slider.prop('cycleNav').prevSlide=function(){var active=jQuery('#cycle-numeral-nav li.active');var nextActive;active.removeClass('active');if(active.attr('idx')==active.parent().find('li:first-child').attr('idx')){if(slider.prop('cycleNav').multipleSets){if(active.parent().attr('idx')=="0"){jQuery('#cycle-numeral-nav ul:last-child li:last-child').addClass('active')}else{active.parent().prev().find('li:last-child').addClass('active')} prevNavSet()}else{active.parent().find('li:last-child').addClass('active')}}else{active.prev().addClass('active')}} slider.prop('cycleNav').nextSlide=function(){var active=jQuery('#cycle-numeral-nav li.active');var nextActive;active.removeClass('active');if(active.attr('idx')==active.parent().find('li:last-child').attr('idx')){if(slider.prop('cycleNav').multipleSets){if(active.parent().attr('idx')==jQuery('#cycle-numeral-nav ul:last-child').attr('idx')){jQuery('#cycle-numeral-nav ul:first-child li:first-child').addClass('active')}else{active.parent().next().find('li:first-child').addClass('active')} nextNavSet()}else{active.parent().find('li:first-child').addClass('active')}}else{active.next().addClass('active')}}} if(slider.parent().siblings('.nav-container').length==0){slider.parent().after('')} slider.parent().siblings('.nav-container').append('
      ');if(navType=='widgets'){jQuery('#cycle-nav').append('
      ');jQuery('#widget-control .hide-feat-img').click(function(){var div=jQuery(this);if(div.hasClass('active')){div.attr('title','Show Featured Images')}else{div.attr('title','Hide Featured Images')} div.toggleClass('active');jQuery('.cyclenav').toggleClass('hide-feat-im')});jQuery('#widget-control .hide-summary').click(function(){var div=jQuery(this);if(div.hasClass('active')){div.attr('title','Show Summaries')}else{div.attr('title','Hide Summaries')} div.toggleClass('active');jQuery('.cyclenav').toggleClass('hide-summary')});jQuery.widgetControlTop=jQuery('.nav-container').offset().top-jQuery('#wpadminbar').outerHeight()-25;jQuery('#widget-control').after('');jQuery(window).scroll(function(){var widgCtrl=jQuery('#widget-control');widgCtrl.toggleClass('fixed',jQuery(this).scrollTop()>jQuery.widgetControlTop)})}else if(navType=='thumbnails'&&titles.length>8){var numSets=Math.ceil(titles.length/8);var navContainer=slider.parent().siblings('.nav-container');var setSelector=jQuery('
      ').appendTo(navContainer);var selectors=Array(numSets).fill().map(function(val,idx,arr){var minInd=8*(idx)+1;var maxInd=Math.min(minInd+7,titles.length);var navButtonText;if(maxInd>minInd)navButtonText=minInd+'–'+maxInd;else navButtonText=minInd;var navButton=jQuery('
      '+navButtonText+'
      ');navButton.appendTo(setSelector).click(function(){var activeSelector=jQuery(this).siblings('.selected');if(activeSelector.length==0)return;var activeIdx=Number(activeSelector.attr('data-idx'));var cyclenav=setSelector.parent().find('.cyclenav');var newScroll=idx*(cyclenav.width()+3);cyclenav.animate({scrollLeft:newScroll});activeSelector.removeClass('selected');jQuery(this).addClass('selected')});if(idx==0)navButton.addClass('selected')});if(numSets>3) jQuery('
      ').appendTo(setSelector).click(function(){var activeIdx=Number(jQuery(this).siblings('.selected').attr('data-idx'));var newIdx=(activeIdx+1)%numSets;jQuery(this).siblings('.button[data-idx="'+newIdx+'"]').click()})} var oa_autostop=!1;var oa_autostop_count=0;oa_autostop=!0;oa_autostop_count=jQuery('#cycleContainer > .slide.container').length+1;var oa_cycle_first_delay=0;if(!oa_cycle_auto_play){oa_autostop=0;playstate=!1} var options={fx:'fade',autostop:oa_autostop,autostopCount:oa_autostop_count,pause:!0,before:beforeTransition,after:afterTransition,delay:oa_cycle_initial_delay,timeout:oa_cycle_delay,slideResize:!0,containerResize:!1,width:'100%',fit:1,prev:'.prev',next:'.next',slideExpr:'.slide',pager:'#cycle-nav',pagerEvent:'click',fastOnEvent:!0,pagerAnchorBuilder:function(index,slide){slide=jQuery(slide);var container=slide.closest('.cycleContainer');slide.attr('idx',index);var imgThumb=thumbs[index];var link=articlelinks[index];var titleStr=titles[index];slider.prop('cycleNav').multipleSets=!1;var titleCutLength=65;if(titleStr.length>titleCutLength){var cutat=titleStr.lastIndexOf(' ',titleCutLength);if(cutat!=-1)titleStr=titleStr.substring(0,cutat)+' ...'} var newListItem=null;if(navType=='numeric'){if(index%10==0){if(index==0){jQuery('#cycle-numeral-nav div').append('
        ')}else{jQuery('#cycle-numeral-nav div').append('')}} if(index==11){slider.prop('cycleNav').multipleSets=!0;jQuery('#cycle-numeral-nav').addClass('multi-list')} var curList=jQuery('#cycle-numeral-nav div > ul:last-child');curList.append('
      • '+(index+1)+'
      • ');var curLi=curList.find('li').last()}else if(navType=='thumbnails'){var newThumbFilename;var sizeRe=/(.*[^\-])(\-\d+x\d+)(\.[^\.]{3}[^\.]?)$/;var re_match=null;if(imgThumb!=-1)re_match=imgThumb.match(sizeRe);if(re_match){var imgExtension=re_match[3];var imgNameWithoutExtension=re_match[1]+re_match[2];var imgNameWithoutWPSize=re_match[1];newThumbFilename=imgNameWithoutWPSize+'-'+thumbSize+imgExtension}else{if(imgThumb!=-1){var imgExtension=/[^\.]*$/.exec(imgThumb);var imgNameWithoutExtension=/.*(?=\.)/.exec(imgThumb);newThumbFilename=imgNameWithoutExtension+'-'+thumbSize+'.'+imgExtension}else{newThumbFilename=null}} console.debug('newThumbFilename1: '+newThumbFilename);if(newThumbFilename&&newThumbFilename.includes('/plugins/featured-video-plus')){var $thumbObj=slide.find('a.preview-lazyload');newThumbFilename=$thumbObj.attr('data-video-thumbnail');if(!newThumbFilename)newThumbFilename=$thumbObj.css('background-image').replace(new RegExp(/url\(\"?/),'').replace(new RegExp(/\"?\)/),'');console.debug('newThumbFilename2: '+newThumbFilename)} if(newThumbFilename=='none'){newListItem='
        '+titleStr+'
        ';newListItem='';var newThumbFilename=$thumbObj.css('background-image').replace(new RegExp(/\"/,'g'),'');if($thumbObj.css('background-image')!='none')jQuery('.navlist[idx='+index+'] > div').prepend('
        ')}else if(newThumbFilename){newListItem='
        '+titleStr+' thumbnail'+titleStr+'
        ';var img=new Image();img.onerror=function(){jQuery(jQuery('#cycle-nav > li.navlist > a > div > img')[index]).attr('src',imgThumb)};img.src=newThumbFilename;newListItem=''}else{newListItem=''}}else if(navType=='widgets'){var newThumbFilename;var sizeRe=/(.*[^\-])(\-\d+x\d+)(\.[^\.]{3}[^\.]?)$/;var re_match=null;if(imgThumb!=-1)re_match=imgThumb.match(sizeRe);if(re_match){var imgExtension=re_match[3];var imgNameWithoutExtension=re_match[1]+re_match[2];var imgNameWithoutWPSize=re_match[1];newThumbFilename=imgNameWithoutWPSize+'-'+thumbSize+imgExtension}else{if(imgThumb!=-1){var imgExtension=/[^\.]*$/.exec(imgThumb);var imgNameWithoutExtension=/.*(?=\.)/.exec(imgThumb);newThumbFilename=imgNameWithoutExtension+'-'+thumbSize+'.'+imgExtension}else{newThumbFilename=null}} if(newThumbFilename.includes('/plugins/featured-video-plus')){var vidHtml;if(container.find('.slide:nth-child('+(index+1)+') .slider-img .container-lazyload').length>0){vidHtml=container.find('.slide:nth-child('+(index+1)+') .slider-img > div.featured-video-plus').html()}else{vidHtml=container.find('.slide:nth-child('+(index+1)+') .slider-img > a').html()} newListItem=''}else{if(newThumbFilename){jQuery.get(newThumbFilename).done(function(){}).fail(function(){jQuery.get(imgThumb).done(function(){jQuery(jQuery('#cycle-nav > li.navlist > a > div > img')[index]).attr('src',imgThumb)}).fail(function(){})});if(newThumbFilename!=null){newListItem='
        '+titleStr+''}else{newListItem='
        '+titleStr+''} newListItem=''}else{newListItem=''}}} return newListItem},updateActivePagerLink:function(pager,currSlideIndex){jQuery(pager).find('.navlist').removeClass('active').filter('.navlist:eq('+currSlideIndex+')').addClass('active')}};slider.cycle(options);if(navType=='thumbnails'&&titles.length>8&&titles.length%8>0){for(var j=titles.length%8+1;j<=8;j++) slider.closest('.sliderOuterContainer').find('.cyclenav.thumbnails').append('');} slider.prop('cycleNav').fullscreenSlider=this.attr('data-display')=='fullscreen';if(!slider.prop('cycleNav').fullscreenSlider){this.find('.slide').each(function(){resizeMainContent(jQuery(this))})}else{slider.find('.slider-content').removeClass('fit');slider.find('.slider-main-content').each(function(){var $this=jQuery(this);$this.find('p').each(function(){var $p=jQuery(this);if($this.html().match(/^\s*( )?\s*$/))$this.remove()});if($this.html().match(/^\s*( )?\s*$/))$this.remove()});slider.find('.slider-content').each(function(){var sliderContent=jQuery(this);sliderContent.click(function(){window.location=sliderContent.find('h2.slider-header > a').attr('href')})});slider.find('div.slide div.slider-img a').map(function(){var sliderImgA=jQuery(this);var bgImg=sliderImgA.find('img');if(bgImg.length==1){var bgImgSrc=bgImg.attr('src');if(slider.prop('cycleNav').fullscreenSlider){var sizeRe=/(.*[^\-])(\-\d+x\d+)(\.[^\.]{3}[^\.]?)$/;var re_match=bgImgSrc.match(sizeRe);var urlBase;var urlExt;if(re_match){urlBase=re_match[1];urlExt=re_match[3]}else{sizeRe=/(.*[^\.])(\.[^\.]{3}[^\.]?)$/;re_match=bgImgSrc.match(sizeRe);if(re_match){urlBase=re_match[1];urlExt=re_match[2]}else{sliderImgA.css('background-image','url("'+bgImgSrc+'")');bgImg.css('display','none');return}} bgImgSrc=urlBase+urlExt} sliderImgA.css('background-image','url("'+bgImgSrc+'")');bgImg.css('display','none')}});slider.find('.slider-content').addClass('on');slider.find('.slider-content').each(function(){var excerptDiv=jQuery(this).find('.slider-main-content');var excerptCutLen=200;if(excerptDiv.length==1){if(excerptDiv.text().length>excerptCutLen){var cutat=excerptDiv.text().lastIndexOf(' ',excerptCutLen);if(cutat!=-1)excerptDiv.text(excerptDiv.text().substring(0,cutat)+' ...')}}else{jQuery(this).hide()}})} if(oa_cycle_auto_play){this.find('.cycle-state').each(function(){togglePlayButton(jQuery(this))})} jQuery('.cycle-state').click(function(){togglePlayButton(jQuery(this))});jQuery('li.navlist').mouseover(function(){slider.cycle('pause')}).mouseout(function(){if(playstate==!0){jQuery('.cycleContainer').cycle('resume')}});jQuery('#cycle-nav li a').click(function(){var tLink=jQuery(this).attr("dbctarget");window.open(tLink,"_self")});this.find('.slide.container .slider-main-content .summary .topnews').each(function(){var topnews=jQuery(this);var container=topnews.closest('.slider-main-content');container.append(topnews);container.find('.summary').remove()});this.find('.slide.container:not([data-loadedfull])').topNewsInterface('.slider-img-container','.slider-header > a');this.find('.sliderContainer .slide.container .slider-main-content *:not(.tn_details) > a[href*="youtube.com"]').each(function(){var match=jQuery(this).attr('href').match(videoUrlPat_youtube);if(match){var ytId=match[2];jQuery(this).click(function(){var container=jQuery(this).closest('.slide.container').find('.slider-img-container');var targetVideo=container.find('#yt'+ytId);var visiblePlayer=container.find('> .video-embed:visible');if(visiblePlayer.length>0&&(targetVideo.length==0||!targetVideo.is(':visible'))){pauseSliderVideo(visiblePlayer)} if(targetVideo.length>0){if(!targetVideo.is(':visible')){container.find('> *:visible').fadeOut('fast');targetVideo.fadeIn('fast');resumeSliderVideo(targetVideo)}}else{var targetVideo=jQuery('');container.append(targetVideo);container.find('> *:visible').fadeOut('fast');targetVideo.fadeIn('fast')} return!1});jQuery(this).removeClass('external').attr('title','View video')}});this.find('.sliderContainer .slide.container .slider-main-content *:not(.tn_details) > a[href*="vimeo.com"]').each(function(){var match=jQuery(this).attr('href').match(videoUrlPat_vimeo);if(match){var vimId=match[3];jQuery(this).click(function(){var container=jQuery(this).closest('.slide.container').find('.slider-img-container');var targetVideo=container.find('#vim'+vimId);var visiblePlayer=container.find('> .video-embed:visible');if(visiblePlayer.length>0&&(targetVideo.length==0||!targetVideo.is(':visible'))){pauseSliderVideo(visiblePlayer)} if(targetVideo.length>0){if(!targetVideo.is(':visible')){container.find('> *:visible').fadeOut('fast');targetVideo.fadeIn('fast');resumeSliderVideo(targetVideo)}}else{var targetVideo=jQuery('');container.append(targetVideo);container.find('> *:visible').fadeOut('slow');targetVideo.fadeIn('slow')} return!1});jQuery(this).removeClass('external').attr('title','View video')}});if(!oa_cycle_auto_play){this.cycle('pause');this.playstate=!1} return this}})(jQuery);function addWidgetInterfaceToSlide($container,content,slideNav=!0){var $sliderMainContent=$container.find('.slider-main-content');$sliderMainContent.find('> *').remove();$sliderMainContent.html(content).addClass('full').addClass('post-entry');$container.find('.slider-content').addClass('post-widget');$container.topNewsInterface('.slider-img','.slider-item-title');if($container.find('.summary .featured').length>0&&$container.find('.summary .featured').attr('data-targetid')==undefined){summaryFeatures($container,'slider','fade')} createWidgetInterface($container,'.slider-header','.slider-main-content',{'showNav':!1});$container.find('.twitter-timeline-delay').each(delayLoadTwitter);$sliderMainContent.initialTop=$sliderMainContent.offset().top;$sliderMainContent.heightTaken=$container.find('.post-title').outerHeight()+$container.find('.sponsor-bar').outerHeight();var resizeSliderContent;if($sliderMainContent.is(':visible')) resizeSliderContent=function(){var otherHeight=$sliderMainContent.heightTaken+($sliderMainContent.offset().top-$sliderMainContent.initialTop);$sliderMainContent.css('height','calc(100% - '+otherHeight+'px)')};else resizeSliderContent=function(){var navHeight=0;var $visNav=$container.find('.headings-nav:visible');if($visNav.length>0)navHeight=$visNav.outerHeight(!0);var otherHeight=$container.find('.post-title').outerHeight()+navHeight+$container.find('.sponsor-bar').outerHeight();$sliderMainContent.css('height','calc(100% - '+otherHeight+'px)')};$container.find('.nav-toggle').click(resizeSliderContent);$container.find('.headings-nav > div').click(resizeSliderContent);var $mainNav=$container.find('.main-nav');if(slideNav){var $visibleNav=$container.find('.headings-nav:visible');if($visibleNav.length==0)$visibleNav=$mainNav;$visibleNav.hide().slideDown({duration:350,progress:resizeSliderContent,start:function(){enterWidget($container)},})}else{$mainNav.show();enterWidget($container)}} togglePlayButton=function(cycleStateObj){if(cycleStateObj.hasClass('pause')){cycleStateObj.removeClass('pause').addClass('play').prop('title','Play').attr('alt','Play');jQuery('.cycleContainer').cycle('pause');playstate=!1}else{cycleStateObj.removeClass('play').addClass('pause').prop('title','Pause').attr('alt','Pause');jQuery('.cycleContainer').cycle('resume');playstate=!0}} enableManualCycleControl=function(slider){if(slider.prop('cycleNav').fullscreenSlider){slider.find('div.sliderContainer .cycleContainer').append('
        ');slider.find('.slider-content').css('padding-right','30px')} slider.parent().find('.tostart').click(function(){jQuery(this).closest('.sliderContainer').find('.cycleContainer').cycle(0)});jQuery(document).keydown(function(e){switch(e.which){case 37:slider.cycle('prev');break;case 38:break;case 39:slider.cycle('next');break;case 40:break;default:return} e.preventDefault()})} prevNavSet=function(){var active=jQuery('#cycle-numeral-nav ul.active');var prev;if(active.attr('idx')==0){prev=jQuery('#cycle-numeral-nav ul').last()}else{prev=active.prev()} active.removeClass('active');prev.addClass('active');active.css('display','none');prev.css('display','inline-block')} nextNavSet=function(){var active=jQuery('#cycle-numeral-nav ul.active');var next;var lastIndex=jQuery('#cycle-numeral-nav ul:last-child').attr('idx');if(lastIndex==active.attr('idx')){next=jQuery('#cycle-numeral-nav ul').first()}else{next=active.next()} active.removeClass('active');active.css('display','none');next.addClass('active');next.css('display','inline-block')} slideTransition=function(elOut,elIn,options){elIn=jQuery(elIn);elOut=jQuery(elOut);var inIndex=elIn.attr('idx');var inIndexInt=parseInt(inIndex);if(!isNaN(inIndexInt)){jQuery('.slide-numbers > .current').html((inIndexInt+1)+'')} var outIndex=elOut.attr('idx');var outIndexInt=parseInt(outIndex);var lastIndex=jQuery('#cycle-numeral-nav ul:last-child li:last-child').attr('idx');if(elIn.closest('sliderHost').cycleNav.advanceNumeral||lastIndex==outIndex){if(inIndexInt==outIndexInt+1||(inIndexInt==0&&outIndex==lastIndex)){nextSlide()}else if(inIndexInt==outIndexInt-1||(outIndexInt==0&&inIndex==lastIndex)){prevSlide()}} jQuery.cycleNav.advanceNumeral=!0} function beforeTransition(elOut,elIn,options){elIn=jQuery(elIn);elOut=jQuery(elOut);var inIndex=elIn.attr('idx');var inIndexInt=parseInt(inIndex);if(!isNaN(inIndexInt)){jQuery('.slide-numbers > .current').html((inIndexInt+1)+'')} var outIndex=elOut.attr('idx');var outIndexInt=parseInt(outIndex);var lastIndex=jQuery('#cycle-numeral-nav ul:last-child li:last-child').attr('idx');var slider=elIn.closest('.sliderHost');if(slider.prop('cycleNav').advanceNumeral||lastIndex==outIndex){if(inIndexInt==outIndexInt+1||(inIndexInt==0&&outIndex==lastIndex)){slider.prop('cycleNav').nextSlide()}else if(inIndexInt==outIndexInt-1||(outIndexInt==0&&inIndex==lastIndex)){slider.prop('cycleNav').prevSlide()}} slider.prop('cycleNav').advanceNumeral=!0;var navSet=Math.floor(inIndexInt/8);if(Math.floor(outIndex/8)!=navSet){elIn.closest('.sliderOuterContainer').find('.cyclenav-set-selector .button[data-idx="'+navSet+'"]').click()} if(elIn.data('loadedfull')==undefined){var h2=elIn.find('h2.slider-header');var postType=h2.data('post-type');var slug=h2.data('slug');var $widget=jQuery('.post-widget.'+slug+'.'+postType);if($widget.length&&$widget.find('.main-nav').length==0&&$widget.find('.post-content').length){elIn.data('default-tab',$widget.data('default-tab'));addWidgetInterfaceToSlide(elIn,$widget.find('.post-content').html(),!1)}else{getPostBySlug(slug,postType,function(json){if(json.length){elIn.data('default-tab',json[0].display_options.default_tab);addWidgetInterfaceToSlide(elIn,stripJs(json[0].content.rendered))}})} elIn.data('loadedfull','1')}} function afterTransition(elOut,elIn,options){if(jQuery('#fullscreenSlider').length==0){resizeMainContent(jQuery(elIn))}} function resizeMainContent($slide){var subtract=0;if($slide.find('.post-title').length>0) subtract=$slide.find('.post-title').outerHeight();else if($slide.find('.slider-header').length>0) subtract=$slide.find('.slider-header').outerHeight();if($slide.closest('.sliderOuterContainer').hasClass('nav-thumbnails')) subtract+=$slide.find('.sponsor-bar').outerHeight();if($slide.find('.headings-nav:visible').length) subtract+=$slide.find('.headings-nav:visible').outerHeight();$slide.find('.slider-main-content').css('height','calc(100% - '+subtract+'px)')} scrollOn=function(idx){jQuery(jQuery('.sliderContainer')[idx]).addClass('scroll')} prevSlide=function(){var active=jQuery('#cycle-numeral-nav li.active');var nextActive;active.removeClass('active');if(active.attr('idx')==active.parent().find('li:first-child').attr('idx')){if(jQuery.cycleNav.multipleSets){if(active.parent().attr('idx')=="0"){jQuery('#cycle-numeral-nav ul:last-child li:last-child').addClass('active')}else{active.parent().prev().find('li:last-child').addClass('active')} prevNavSet()}else{active.parent().find('li:last-child').addClass('active')}}else{active.prev().addClass('active')}} nextSlide=function(){var active=jQuery('#cycle-numeral-nav li.active');var nextActive;active.removeClass('active');if(active.attr('idx')==active.parent().find('li:last-child').attr('idx')){if(jQuery.cycleNav.multipleSets){if(active.parent().attr('idx')==jQuery('#cycle-numeral-nav ul:last-child').attr('idx')){jQuery('#cycle-numeral-nav ul:first-child li:first-child').addClass('active')}else{active.parent().next().find('li:first-child').addClass('active')} nextNavSet()}else{active.parent().find('li:first-child').addClass('active')}}else{active.next().addClass('active')}} setSlide=function(event){var index=event.data.index;var currentLi=jQuery('#cycle-numeral-nav ul li.active');var currentUlIndex=currentLi.parent().attr('idx');var toLi=jQuery('#cycle-numeral-nav ul li.idx'+index);var toUlIndex=toLi.parent().attr('idx');if(index!=currentLi.attr('idx')){currentLi.removeClass('active');toLi.addClass('active');if(currentUlIndex!=toUlIndex){currentLi.parent().removeClass('active');currentLi.parent().css('display','none');toLi.parent().addClass('active');toLi.parent().css('display','inline-block')}}} updateNavHeight=function(){var setHeight=Math.min(Math.max(115,jQuery(window).height()-370),jQuery('#cycle-nav').height()+8);var container=jQuery('.nav-container');if(container.prop('scrollHeight')>setHeight){jQuery('#cycle-nav').css('left','7px');jQuery('#cycle-nav-container').css('margin-left','-60px')}else{jQuery('#cycle-nav').css('left','0');jQuery('#cycle-nav-container').css('margin-left','-61px')} container.height(setHeight)}; } catch(e){console.error("An error has occurred: "+e.stack);} /* https://ca.onair.cc/wp-includes/js/wp-embed.min.js */ try{ !function(a,b){"use strict";function c(){if(!e){e=!0;var a,c,d,f,g=-1!==navigator.appVersion.indexOf("MSIE 10"),h=!!navigator.userAgent.match(/Trident.*rv:11\./),i=b.querySelectorAll("iframe.wp-embedded-content");for(c=0;c1e3)g=1e3;else if(~~g<200)g=200;f.height=g}if("link"===d.message)if(h=b.createElement("a"),i=b.createElement("a"),h.href=f.getAttribute("src"),i.href=d.value,i.host===h.host)if(b.activeElement===f)a.top.location.href=d.value}else;}},d)a.addEventListener("message",a.wp.receiveEmbedMessage,!1),b.addEventListener("DOMContentLoaded",c,!1),a.addEventListener("load",c,!1)}(window,document); } catch(e){console.error("An error has occurred: "+e.stack);} /* https://ca.onair.cc/wp-content/themes/onair-7.0/modules/oa/toc/toc-init.js */ try{ jQuery.toc=new Object();jQuery.toc.globalLiSelected=null;jQuery.toc.globalExpandedUl=null;jQuery.toc.globalCollapsePrevUl=!1;jQuery.toc.hide=!1;jQuery.toc.maxCharacters=50; } catch(e){console.error("An error has occurred: "+e.stack);} /* https://ca.onair.cc/wp-content/themes/onair-7.0/modules/oa/toc/toc-functions.js */ try{ if(!jQuery.toc){jQuery.toc=new Object()} jQuery.toc.globalLiSelected=null;jQuery.toc.globalExpandedUl=null;jQuery.toc.globalCollapsePrevUl=!1;jQuery.toc.maxCharacters=50;var _minItemsPerH=1;var includeTNSections=!1;function htmlTableOfContents(documentRef){var documentRef=documentRef||document;var $toc=jQuery('#toc-naver');var maxLevels=2;var hLevels=[];for(i=0;i
        ');if(jQuery('#widget-inflow').hasClass('closed')){var $outerToggle=jQuery('#widgetToggle');$outerToggle.addClass('on');setWidgetTogglePosition();jQuery('#content').toggleClass('full');jQuery('#toggleInflow').show()} while(curHtmlLevel<=5&&curTocLevel h'+curHtmlLevel));if(curHtmlLevel==2&&includeTNSections)headings=[...[].slice.call(documentRef.body.querySelectorAll('.post-entry .topnews > h2')),...$headings];var keptHeadings=[];var items=0;var numHeadings=$headings.length;if(curTocLevel>0||numHeadings>=_minItemsPerH){$headings.forEach(function(heading,index){if(jQuery(heading).text().length>0){items++}else{}});if(curTocLevel>0||items>=_minItemsPerH){hLevels[curTocLevel]=curHtmlLevel;hToLevelMap[curHtmlLevel]=curTocLevel+1;curTocLevel++}}} if(curTocLevel>0)jQuery('#widgets .toc').show();var selectors;if(includeTNSections)selectors='.post-entry h'+hLevels[0];else selectors='.post-entry > h'+hLevels[0];var not='.tn_summary h'+hLevels[0];for(var level=1;level");var $ul=jQuery('#toc-list');var $titleJQ=jQuery('.post-entry').prevAll('h1');var $menuJQ=jQuery('#wrapper_page');$menuJQ.attr('id','toc-title');var $lastLi=null;var headingLabel,tocId,prevTocId;$headings.each(function(index,heading){headingLabel=heading.textContent.trim();var $heading=jQuery(heading);if(index==0)prevTocId='toc-top';else prevTocId=tocId;if(headingLabel){$heading.addClass('toc-anchor');tocId=headingLabel.replace(/[\s\:\;\'\"\.\,\?\~\!\@\#\$\%\^\&\*\(\)\[\]]+/g,'-').toLowerCase();var baseId=tocId;var incr=1;while(jQuery('#'+tocId).length>0){tocId=baseId+incr;incr++} $heading.attr('id',tocId);var level=hToLevelMap[parseInt(heading.tagName.charAt(1))] if(!$lastLi)level=lastLevel;if(level>lastLevel){$ul.append('');ulStack.push($ul);$ul=jQuery('#ul-'+prevTocId);$lastLi.before('');$lastLi.toggleClass('has-children');jQuery('#caret-for-'+prevTocId).click({label:prevTocId},function(event){var id=event.data.label;var $caret=jQuery('#caret-for-'+id);$caret.toggleClass('down');var $ul=jQuery('#ul-'+id);if(jQuery.toc.globalExpandedId!=null&&jQuery.toc.globalExpandedId!=id&&jQuery.toc.globalCollapsePrevUl&&jQuery('#caret-for-'+jQuery.toc.globalExpandedId).hasClass('down')){jQuery('#ul-'+jQuery.toc.globalExpandedId).slideToggle();jQuery('#caret-for-'+jQuery.toc.globalExpandedId).toggleClass('down')} if($caret.hasClass('down')){jQuery.toc.globalExpandedId=id} $ul.slideToggle({'progress':updateTocScrolling})})}else if(level');$li=jQuery('#li-'+tocId);$li.click(function(){var $li=jQuery(this);var tocId=$li.attr('id').substring(3);tocScroll('#'+tocId,13);tocToggleSelectedItem($li)});if(headingLabel.length>jQuery.toc.maxCharacters){var cutat=headingLabel.lastIndexOf(' ',jQuery.toc.maxCharacters);if(cutat!=-1)headingLabel=headingLabel.substring(0,cutat)+' ...'} $li.append(''+headingLabel+'');$lastLi=$li}});jQuery('#widgetToggle').toggleClass('sticky',jQuery('#widgets').hasClass('sticky'));setWidgetTogglePosition();jQuery('#widgets .post_tools .widget-close').click(function(){var $outerToggle=jQuery('#widgetToggle');$outerToggle.addClass('on');jQuery('#widget-inflow').toggleClass('closed');setWidgetTogglePosition();jQuery('#content').toggleClass('full')});jQuery('#widgetToggle').click(function(){var isOn=!jQuery(this).hasClass('on');var toggleContentWidth=(isOn||$stickyWindow.width()<980)?"100%":"74.6%";if(jQuery('#widgets').hasClass('sticky')){if(isOn){jQuery('#widget-inflow').toggleClass('closed');jQuery('#widgetToggle').toggleClass('on');setWidgetTogglePosition()}else{jQuery('#widget-inflow').toggleClass('closed');jQuery('#widgetToggle').toggleClass('on');setWidgetTogglePosition()}}else{jQuery('#widget-inflow').css({'width':jQuery('#widget-inflow').width(),'height':jQuery('#widget-inflow').height()});jQuery('#widgetToggle').toggleClass('on');setWidgetTogglePosition();jQuery('#widget-inflow').toggleClass('closed')} jQuery('#content').toggleClass('full')});elTop=jQuery('#content').offset().top-adminbarOffset;wasPastTop=$stickyWindow.scrollTop()>elTop;$stickyEl.toggleClass('sticky',$stickyWindow.scrollTop()>elTop);$stickyWindow.scroll(tocAdjustOnScroll);tocAdjustOnScroll();jQuery.toc.nonTocHeight=0;jQuery('#toc-naver').siblings().each(function(){jQuery.toc.nonTocHeight+=jQuery(this).height()});jQuery('#toc-naver').parent().parent().siblings().each(function(){jQuery.toc.nonTocHeight+=jQuery(this).height()});setSidebarMaxHeight();updateTocScrolling();$stickyWindow.resize(tocAdjustOnResize);tocAdjustOnResize();if(typeof tocInitClose=="undefined"||!tocInitClose)jQuery('#toc-naver .caret').click()} var adminbarOffset=0;jQuery(document).ready(function(){if(jQuery('#wpadminbar').is(":visible")){adminbarOffset=jQuery('#wpadminbar').outerHeight()}});function tocScroll(anchorId,offset,time){if(offset===undefined)offset=0;var $target=jQuery(anchorId);while($target.length>0&&!$target.is(':visible')){$target=$target.next()} if($target.length==0){$target=jQuery('body')} if(time===undefined||time==0){jQuery('html, body').scrollTop($target.offset().top-offset-adminbarOffset)}else{jQuery('html, body').animate({'scrollTop':$target.offset().top},time)}} function tocToggleSelectedItem(selectedLi){var tocId=selectedLi.attr('id').replace('li-','');var caret=jQuery('#caret-for-'+tocId);var ul=jQuery('#ul-'+tocId);if(caret.length==1&&(!caret.hasClass('down')||(jQuery.toc.globalLiSelected&&selectedLi.attr('id')==jQuery.toc.globalLiSelected.attr('id')))){caret.toggleClass('down');ul.slideToggle({'progress':updateTocScrolling})} if(selectedLi!=jQuery.toc.globalLiSelected){selectedLi.toggleClass('selected');if(jQuery.toc.globalLiSelected!=null){jQuery.toc.globalLiSelected.toggleClass('selected')}} if(caret.length==1){if(jQuery.toc.globalCollapsePrevUl&&jQuery.toc.globalExpandedId!=null&&jQuery.toc.globalExpandedId!=tocId&&jQuery('#caret-for-'+jQuery.toc.globalExpandedId).hasClass('down')){jQuery('#ul-'+jQuery.toc.globalExpandedId).slideToggle({'progress':updateTocScrolling});jQuery('#caret-for-'+jQuery.toc.globalExpandedId).toggleClass('down')} jQuery.toc.globalExpandedId=tocId} jQuery.toc.globalLiSelected=selectedLi} try{module.exports=htmlTableOfContents}catch(e){} function updateTocScrolling(){jQuery('#toc-naver').toggleClass('scrolling',jQuery('#toc-list').height()>jQuery('#toc-naver').height());jQuery('#toc-list').toggleClass('scrolling',jQuery('#toc-list').height()>jQuery('#toc-naver').height())} function dvLinkHandler(){jQuery('.post-entry').on('click','.dv-link',function(e){e.preventDefault();var obj=jQuery(this);var target=obj.attr('href');var targetObj=jQuery(target);console.debug(target);jQuery(target).reveal({animation:'fadeAndPop',animationspeed:300,closeonbackgroundclick:!0,dismissmodalclass:'close-reveal-modal'})})} jQuery(document).ready(function(){if(isLargeScreen()){htmlTableOfContents();try {jQuery('.toc-anchor:not(.post_summary)').each(function(){jQuery(this).nextUntil('.toc-anchor').wrapAll('
        ')})}catch(e){}}});var $stickyWindow=jQuery(window),$stickyEl=jQuery('#widgets'),elTop,wasPastTop,pastTop;var sibling=document.getElementById('toc-naver').parentNode.parentNode.nextElementSibling;while(sibling!=null){sibling.style.display='none';sibling=sibling.nextElementSibling} function tocAdjustOnScroll(){$stickyEl.toggleClass('sticky',$stickyWindow.scrollTop()>elTop);wasPastTop=pastTop;pastTop=$stickyWindow.scrollTop()>elTop;jQuery('#widgetToggle').toggleClass('sticky',pastTop);setSidebarMaxHeight();setWidgetTogglePosition()} function tocAdjustOnResize(){setSidebarMaxHeight();setWidgetTogglePosition();updateTocScrolling();var isOn=jQuery('#widgetToggle').hasClass('on');if(jQuery(window).width()>=980){if(!isOn){$stickyEl.attr('width',jQuery('#widget-inflow').width())} jQuery('#toggleInflow').show()}else{$stickyEl.attr('width','0');jQuery('#toggleInflow').hide()}} function setSidebarMaxHeight(){var maxHeight;if(pastTop){maxHeight=jQuery(window).height()-adminbarOffset}else{maxHeight=jQuery(window).height()-(jQuery('#widget-inflow').offset().top-jQuery(window).scrollTop())} if(jQuery(document).scrollTop()+jQuery(window).innerHeight()>jQuery('#footer').offset().top){var relOffset=jQuery('#footer').offset().top-jQuery(document).scrollTop();maxHeight-=jQuery(window).innerHeight()-relOffset} jQuery('#widgets').css({'max-height':(maxHeight)+"px"});var tocNaverMax=maxHeight-jQuery.toc.nonTocHeight;jQuery('#toc-naver').css({'max-height':(tocNaverMax)+"px"});updateTocScrolling()} function setWidgetTogglePosition(){}; } catch(e){console.error("An error has occurred: "+e.stack);}