1(()=>{const e=document.querySelectorAll(".coblocks-animate");if("IntersectionObserver"in window){const t=new IntersectionObserver((e=>{e.forEach((e=>{e.isIntersecting&&(e.target.classList.add(e.target.dataset.coblocksAnimation),t.unobserve(e.target))}))}),{threshold:[.15]});e.forEach((e=>{t.observe(e)}))}else e.forEach((e=>{e.classList.remove("coblocks-animate"),delete e.dataset.coblocksAnimation}))})();; 2jQuery(document).ready(function($) { 3 4 function navMenu() { 5 6 var sidebarToggle = $('#sidebar-toggle'); 7 var menuToggle = $('#menu-toggle'); 8 var socialLinksToggle = $('#social-links-toggle'); 9 var searchToggle = $('#search-toggle'); 10 11 var socialLinksNav = $('#social-links-toggle-nav'); 12 var sidebarNav = $('#sidebar-toggle-nav'); 13 var searchNav = $('#search-toggle-nav'); 14 var menuNav = $('#menu-toggle-nav'); 15 16 function myToggleClass( $myvar ) { 17 if ( $myvar.hasClass( 'active' ) ) { 18 $myvar.removeClass( 'active' ); 19 } else { 20 $myvar.addClass('active'); 21 } 22 } 23 24 // Display/hide sidebar 25 sidebarToggle.on('click', function() { 26 sidebarNav.slideToggle(); 27 myToggleClass($(this)); 28 29 // Remove mejs players from sidebar 30 $( '#sidebar-toggle-nav .mejs-container' ).each( function( i, el ) { 31 if ( mejs.players[ el.id ] ) { 32 mejs.players[ el.id ].remove(); 33 } 34 } ); 35 36 socialLinksNav.hide(); 37 menuNav.hide(); 38 searchNav.hide(); 39 40 searchToggle.removeClass('active'); 41 menuToggle.removeClass('active'); 42 socialLinksToggle.removeClass('active'); 43 44 if ( ! sidebarNav.hasClass( 'active' ) ) { 45 // Re-initialize mediaelement players. 46 setTimeout( function() { 47 if ( window.wp && window.wp.mediaelement ) { 48 window.wp.mediaelement.initialize(); 49 } 50 } ); 51 52 // Trigger resize event to display VideoPress player. 53 setTimeout( function(){ 54 if ( typeof( Event ) === 'function' ) { 55 window.dispatchEvent( new Event( 'resize' ) ); 56 } else { 57 var event = window.document.createEvent( 'UIEvents' ); 58 event.initUIEvent( 'resize', true, false, window, 0 ); 59 window.dispatchEvent( event ); 60 } 61 } ); 62 } 63 64 $('#sidebar-toggle-nav').resize(); 65 }); 66 // Display/hide social links 67 socialLinksToggle.on('click', function() { 68 socialLinksNav.slideToggle(); 69 myToggleClass($(this)); 70 71 menuNav.hide(); 72 searchNav.hide(); 73 sidebarNav.hide(); 74 75 searchToggle.removeClass('active'); 76 menuToggle.removeClass('active'); 77 sidebarToggle.removeClass('active'); 78 }); 79 // Display/hide menu 80 menuToggle.on('click', function() { 81 menuNav.slideToggle(); 82 myToggleClass($(this)); 83 84 container = document.getElementById( 'site-navigation' ); 85 86 // Fix child menus for touch devices. 87 function fixMenuTouchTaps( container ) { 88 var touchStartFn, 89 parentLink = container.querySelectorAll( '.menu-item-has-children > a, .page_item_has_children > a' ); 90 91 if ( 'ontouchstart' in window ) { 92 touchStartFn = function( e ) { 93 var menuItem = this.parentNode; 94 95 if ( ! menuItem.classList.contains( 'focus' ) ) { 96 e.preventDefault(); 97 for( var i = 0; i < menuItem.parentNode.children.length; ++i ) { 98 if ( menuItem === menuItem.parentNode.children[i] ) { 99 continue; 100 } 101 menuItem.parentNode.children[i].classList.remove( 'focus' ); 102 } 103 menuItem.classList.add( 'focus' ); 104 } else { 105 menuItem.classList.remove( 'focus' ); 106 } 107 }; 108 109 for ( var i = 0; i < parentLink.length; ++i ) { 110 parentLink[i].addEventListener( 'touchstart', touchStartFn, false ) 111 } 112 } 113 } 114 115 fixMenuTouchTaps( container ); 116 117 searchNav.hide(); 118 sidebarNav.hide(); 119 socialLinksNav.hide(); 120 121 searchToggle.removeClass('active'); 122 sidebarToggle.removeClass('active'); 123 socialLinksToggle.removeClass('active'); 124 }); 125 // Display/hide search 126 searchToggle.on('click', function() { 127 searchNav.slideToggle(); 128 myToggleClass($(this)); 129 130 sidebarNav.hide(); 131 socialLinksNav.hide(); 132 menuNav.hide(); 133 134 sidebarToggle.removeClass('active'); 135 menuToggle.removeClass('active'); 136 socialLinksToggle.removeClass('active'); 137 }); 138 } 139 $(window).on('load', navMenu); 140} ); 141; 142( function() { 143 var is_webkit = navigator.userAgent.toLowerCase().indexOf( 'webkit' ) > -1, 144 is_opera = navigator.userAgent.toLowerCase().indexOf( 'opera' ) > -1, 145 is_ie = navigator.userAgent.toLowerCase().indexOf( 'msie' ) > -1; 146 147 if ( ( is_webkit || is_opera || is_ie ) && 'undefined' !== typeof( document.getElementById ) ) { 148 var eventMethod = ( window.addEventListener ) ? 'addEventListener' : 'attachEvent';
149 window[ eventMethod ]( 'hashchange', function() { 150 var element = document.getElementById( location.hash.substring( 1 ) ); 151 152 if ( element ) { 153 if ( ! /^(?:a|select|input|button|textarea)$/i.test( element.tagName ) ) 154 element.tabIndex = -1; 155 156 element.focus(); 157 } 158 }, false ); 159 } 160})(); 161; 162(()=>{var e=[],t=!1,n=2e3,i=[],o=new Promise(e=>{"loading"!==document.readyState?e():window.addEventListener("DOMContentLoaded",()=>e())});function s(e,t){if("string"==typeof e)try{e=JSON.parse(e)}catch{return}if(t&&"function"==typeof t.postMessage)try{t.postMessage(JSON.stringify({type:"likesMessage",data:e}),"*")}catch{}}function r(){const t=[];document.querySelectorAll("div.jetpack-likes-widget-unloaded").forEach(n=>{if(!(e.indexOf(n.id)>-1)&&d(n)){e.push(n.id);var i,o=/like-(post|comment)-wrapper-(\d+)-(\d+)-(\w+)/.exec(n.id);o&&5===o.length&&(i={blog_id:o[2],width:n.width},"post"===o[1]?i.post_id=o[3]:"comment"===o[1]&&(i.comment_id=o[3]),i.obj_id=o[4],t.push(i))}}),t.length>0&&s({event:"initialBatch",requests:t},window.frames["likes-master"])}function a(){const e=document.querySelector("#likes-other-gravatars");if(e){e.style.display="none",e.setAttribute("aria-hidden","true");const t=e.__resizeHandler;t&&(window.removeEventListener("resize",t),delete e.__resizeHandler)}}function l(){var e;if(!t)return s({event:"queryMasterReady"},window.frames["likes-master"]),void setTimeout(l,500);!function(){for(let e=i.length-1;e>=0;e--){const t=i[e];if(!d(t)){const n=t&&t.parentElement&&t.parentElement.parentElement;n.classList.remove("jetpack-likes-widget-loaded"),n.classList.remove("jetpack-likes-widget-loading"),n.classList.add("jetpack-likes-widget-unloaded");const o=n.querySelector(".likes-widget-placeholder");o&&(o.style.display=""),i.splice(e,1),t.remove()}}}(),function(){if(!g)return;document.querySelectorAll("div.jetpack-likes-widget-unloaded").forEach(e=>g.observe(e))}();var n=[...document.querySelectorAll("div.jetpack-likes-widget-unloaded")].filter(e=>d(e));n.length>0&&r();for(var o=0,a=n.length;o<=a-1;o++)(e=n[o].id)&&c(e)}function c(e){if(void 0===e)return;const t=document.querySelector("#"+e);t.querySelectorAll("iframe").forEach(e=>e.remove());const n=t.querySelector(".likes-widget-placeholder");if(n&&n.classList.contains("post-likes-widget-placeholder")){const e=document.createElement("iframe");e.classList.add("post-likes-widget","jetpack-likes-widget"),e.name=t.dataset.name,e.src=t.dataset.src,e.height="55px",e.width="100%",e.frameBorder="0",e.scrolling="no",e.title=t.dataset.title,n.after(e)}if(n.classList.contains("comment-likes-widget-placeholder")){const e=document.createElement("iframe");e.class="comment-likes-widget-frame jetpack-likes-widget-frame",e.name=t.dataset.name,e.src=t.dataset.src,e.height="18px",e.width="100%",e.frameBorder="0",e.scrolling="no",t.querySelector(".comment-like-feedback").after(e),i.push(e)}t.classList.remove("jetpack-likes-widget-unloaded"),t.classList.add("jetpack-likes-widget-loading"),t.querySelector("iframe").addEventListener("load",e=>{t.contains(e.target)&&(s({event:"loadLikeWidget",name:e.target.name,width:e.target.width},window.frames["likes-master"]),n&&(n.style.display="none"),t.classList.remove("jetpack-likes-widget-loading"),t.classList.add("jetpack-likes-widget-loaded"))})}function d(e){const t=e.getBoundingClientRect().top,i=e.getBoundingClientRect().bottom;return t+n>=0&&i<=window.innerHeight+n}window.addEventListener("message",function(e){let n=e&&e.data;if("string"==typeof n)try{n=JSON.parse(n)}catch{return}const i=n&&n.type,l=n&&n.data;if("likesMessage"!==i||void 0===l.event)return;if("https://widgets.wp.com"===e.origin)switch(l.event){case"masterReady":o.then(()=>{t=!0;const e={event:"injectStyles"},n=document.querySelector(".sd-text-color"),i=document.querySelector(".sd-link-color"),o=n&&getComputedStyle(n)||{},a=i&&getComputedStyle(i)||{};document.body.classList.contains("single")&&s({event:"reblogsEnabled"},window.frames["likes-master"]),e.textStyles={color:o.color,fontFamily:o["font-family"],fontSize:o["font-size"],direction:o.direction,fontWeight:o["font-weight"],fontStyle:o["font-style"],textDecoration:o["text-decoration"]},e.linkStyles={color:a.color,fontFamily:a["font-family"],fontSize:a["font-size"],textDecoration:a["text-decoration"],fontWeight:a["font-weight"],fontStyle:a["font-style"]},s(e,window.frames["likes-master"]),r()});break;case"showLikeWidget":case"showCommentLikeWidget":break;case"killCommentLikes":document.querySelectorAll(".jetpack-comment-likes-widget-wrapper").forEach(e
162=>e.remove());break;case"clickReblogFlair":wpcom_reblog&&"function"==typeof wpcom_reblog.toggle_reblog_box_flair&&wpcom_reblog.toggle_reblog_box_flair(l.obj_id);break;case"hideOtherGravatars":a();break;case"showOtherGravatars":{const e=document.querySelector("#likes-other-gravatars");if(!e)break;const t=e.querySelector("ul");e.style.display="none",t.innerHTML="",e.querySelectorAll(".likes-text span").forEach(e=>e.textContent=l.totalLikesLabel),(l.likers||[]).forEach(async(e,n)=>{if("http"!==e.profile_URL.substr(0,4))return;const i=document.createElement("li");t.append(i);const o=encodeURI(e.profile_URL),r=encodeURI(e.avatar_URL);i.innerHTML=`<a href="${o}" rel="nofollow" target="_parent" class="wpl-liker">\n\t\t\t\t\t\t<img src="${r}"\n\t\t\t\t\t\t\talt=""\n\t\t\t\t\t\t\tstyle="width: 28px; height: 28px;" />\n\t\t\t\t\t\t<span></span>\n\t\t\t\t\t</a>`,i.classList.add(e.css_class),i.querySelector("img").alt=l.avatarAltTitle.replace("%s",e.name),i.querySelector("span").innerText=e.name,n===l.likers.length-1&&i.addEventListener("keydown",e=>{"Tab"!==e.key||e.shiftKey||(e.preventDefault(),a(),s({event:"focusLikesCount",parent:l.parent},window.frames["likes-master"]))})});const n=function(){const t="rtl"===getComputedStyle(e).direction,n=document.querySelector(`*[name='${l.parent}']`),i=n.getBoundingClientRect(),o=n.ownerDocument.defaultView,s=i.top+o.pageYOffset,r=i.left+o.pageXOffset;let a;if(e.style.top=s+l.position.top-1+"px",t){const t=l&&l.likers?Math.min(l.likers.length,5):0;a=r+l.position.left+24*t+4,e.style.transform="translateX(-100%)"}else a=r+l.position.left;e.style.left=a+"px",e.style.left="-9999px",e.style.display="block";const c=e.offsetWidth;a+c>o.innerWidth&&(a=i.right-c),e.style.left=a+"px",e.setAttribute("aria-hidden","false")};n(),e.focus();const i=function(e,t){var n;return function(){var i=this,o=arguments;clearTimeout(n),n=setTimeout(function(){e.apply(i,o)},t)}},o=i(n,100);e.__resizeHandler=o,window.addEventListener("resize",o),e.focus()}}}),document.addEventListener("click",a);var f,m,u,p=(f=250,m=l,function(){clearTimeout(u),u=setTimeout(m,f)}),g="function"==typeof IntersectionObserver?new IntersectionObserver(p,{rootMargin:"2000px",threshold:[0,1]}):null;l(),window.addEventListener("scroll",p,!0)})();;
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.