1"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[1349,6794],{6794:(e,n,t)=>{t.r(n),t.d(n,{initAds:()=>v,placeAdsInNewContainers:()=>w});var r=t(7757),a=t.n(r);function o(e,n,t,r,a,o,i){try{var c=e[o](i),u=c.value}catch(e){return void t(e)}c.done?n(u):Promise.resolve(u).then(r,a)}function i(e){return function(){var n=this,t=arguments;return new Promise((function(r,a){var i=e.apply(n,t);function c(e){o(i,r,a,c,u,"next",e)}function u(e){o(i,r,a,c,u,"throw",e)}c(void 0)}))}}var c=[".horizontal-ad",".square-ad",".square-ad-dynamic",".horizontal-ad-dynamic",".skyscraper-ad"],u=["mv-ad-box","sidebar_btf_placeholder"];window.loadedLocalAds=window.loadedLocalAds||[],window.loadedContainers=window.loadedContainers||[];var d=function(){var e=i(a().mark((function e(n){var t,r;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!window.loadedLocalAds.includes(n.dataset.placement)){e.next=2;break}return e.abrupt("return",!1);case 2:if(!l(n)){e.next=4;break}return e.abrupt("return",!1);case 4:return t="".concat(window.adserver,"/api/ads/serve/secure"),r=new URLSearchParams({data:n.dataset.adData}),null!=n.dataset.uri&&null!=n.dataset.uri&&(t="".concat(window.adserver,"/api/ads/serve"),r=new URLSearchParams({content_type:n.dataset.contentType,uri:n.dataset.uri,placement:n.dataset.placement,site:n.dataset.site})),e.abrupt("return",fetch("".concat(t,"?").concat(r.toString())).then((function(e){return e.json()})).then((function(e){if(0===e.ads.length)return!1;var t=e.ads[0],r=window.innerWidth<1e3?t.mobile_image:t.desktop_image;if(null===r)return!1;var a=document.createElement("div"),o=document.createElement("img");if(o.src=r,0===o.src.length)return!1;null!==t.url&&((a=document.createElement("a")).href=t.url,a.target="_blank",a.rel="sponsored"),a.appendChild(o),n.appendChild(a);var i=document.createElement("img");return i.classList="track h-logged-in",i.src=t.track,i.alt="Ad tracking pixel",document.body.appendChild(i),!0})).catch((function(e){return"production"!==window.env&&console.debug("Error placing ad"),!1})));case 8:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),s=function(){var e=i(a().mark((function e(n){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!loadedContainers.includes(n)){e.next=2;break}return e.abrupt("return");case 2:return loadedContainers.push(n),e.next=5,d(n);case 5:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),l=function(e){if(e.classList.contains("nested-ad")&&(e=e.closest(".nested-ad-container")),e.classList.contains("dvag-ad"))return!1;for(var n=p(e,2),t=0;t<n.length;t++){var r=n[t];if(f(r))return!0}return!1},f=function(e){for(var n=0;n<u.length;n++)if(e.classList.contains(u[n]))return!0;return!1},p=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3,t=h(e,!1,n),r=h(e,!0,n);return r.concat(t)},h=function(e){for(var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],t=arguments.length>2?arguments[2]:void 0,r=[],a=n?e.previousElementSibling:e.nextElementSibling;a&&r.length<t;)r.push(a),a=n?a.previousElementSibling:a.nextElementSibling;return r},m=function(){c.forEach((function(e){(document.querySelectorAll(e)||[]).forEach((function(e){l(e)&&e.remove()}))}))},v=function(){var e=i(a().mark((function e(){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:c.forEach((function(e){(document.querySelectorAll(e)||[]).forEach((function(e){s(e)}))})),setTimeout((function(){m()}),500),setTimeout((function(){m()}),2e3),setTimeout((function(){m()}),5e3);case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),w=function(){var e=i(a().mark((function e(){var n;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=[".horizontal-ad",".square-ad",".square-ad-dynamic",".horizontal-ad-dynamic",".skyscraper-ad"],window.loadedContainers=window.loadedContainers||[],n.forEach((function(e){document.querySelectorAll(e).forEach((function(e){window.loadedContainers.includes(e)||(window.loadedContainers.push(e),d(e))}))}));case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()},1349:(e,n,t)=>{t.r(n),t.d(n,{default:()=>a});var r=t(6794);const a=function(){var e=document.querySelector(".js-load-more"),n=e.querySelector(".js-load-more-form"),t=e.querySelector(".js-load-more-target"),a=n.querySelector("button"),o=1;n.addEventListener("submit",(function(e){e.preventDefault();var i={method:"POST",body:new FormData(n)};if(o+=1,"URLSearchParams"in window){var c=new URLSearchParams(window.location.search);c.set("page",o);var u=window.location.pathname+"?"+c.toString();history.pushState(null,"",u)}a.disabled=!0,fetch("",i).then((function(e){return e.text()})).then((function(e){var r=document.createElement("div");if(r.innerHTML=e,t.appendChild(r),parseInt(r.querySelector(".js-count").value)<16)a.remove();else{var o=n.querySelector('input[name="offset"]');o.value=parseInt(o.value)+16,a.disabled=!1}}
1)).then((function(){(0,r.placeAdsInNewContainers)(t)}))}))}}}]);
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.