!function(t,a){t.addEventListener("load",function(){var n,t,e,o;vkExOpt.entry_count&&0!=(n=a.getElementsByClassName("veu_count_sns_hb")).length&&(t=vkExOpt.entry_from_post?{method:"POST",headers:{"Content-Type":"application/json; charset=utf-8"},body:'{"linkurl": "'+location.href+'"}'}:{method:"GET"},e=location.href.replace(/\//g,"-#-"),fetch(vkExOpt.entry_from_post?vkExOpt.hatena_entry:vkExOpt.hatena_entry+encodeURIComponent(e),t).then(function(t){t.ok&&t.json().then(function(e){void 0!==e.count&&Array.prototype.forEach.call(n,function(t){return t.innerHTML=e.count})})}).catch(function(t){}),o=a.getElementsByClassName("veu_count_sns_fb"),vkExOpt.facebook_count_enable)&&fetch(vkExOpt.entry_from_post?vkExOpt.facebook_entry:vkExOpt.facebook_entry+encodeURIComponent(e),t).then(function(t){t.ok&&t.json().then(function(e){void 0!==e.count&&Array.prototype.forEach.call(o,function(t){return t.innerHTML=e.count})})}).catch(function(t){})},!1)}(window,document);var taxonomyWidgetAll=document.querySelectorAll(".veu_widget_taxonmomy");taxonomyWidgetAll.length&&taxonomyWidgetAll.forEach(function(t){t.addEventListener("change",function(){taxName=t.name,""!==(taxValue=t.value)&&(document.location.href=vkExOpt.homeUrl+"/?"+taxName+"="+taxValue)})}),function(t,e,n){t.addEventListener("scroll",function(){0<t.pageYOffset?e.body.classList.add(n):e.body.classList.remove(n)})}(window,document,"scrolled"),function(t){var e=t.body.id;if(e)"top"!==e&&(t.getElementById("page_top").href="#"+e);else{for(var n="top",o=0,a=t.querySelectorAll("*");Array.from(a).some(function(t){return t.id===n});)n="top",0<o&&(n+="-".concat(o)),t.getElementById("page_top").href="#"+n,o++;t.body.id=n}}((window,document));