!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{"use strict";const e=window.location.search.slice(1),t=document.getElementsByClassName("vk-filter-search"),l=(()=>{const t={};return e?(e.split("&").forEach(function(e){const l=e.split("=");l[0]=l[0].replace("%5B%5D",""),t[l[0]]+=","+l[1],t[l[0]]=t[l[0]].replace("undefined",""),t[l[0]]=t[l[0]].replace(",,",","),t[l[0]].startsWith(",")&&(t[l[0]]=t[l[0]].slice(1)),t[l[0]].endsWith(",")&&(t[l[0]]=t[l[0]].slice(0,-1)),void 0!==t[l[0]]&&"undefined"!==t[l[0]]||(t[l[0]]="")}),t):t})(),s=[...new Set(Object.keys(l).map(e=>{let t=e.replace(/^vkfs_/,"");return"keyword"===t&&(t="s"),t}).filter(e=>""!==e&&"submitted"!==e&&"form_id"!==e))],r=e=>{s.forEach(s=>{const r=(e=>{if("s"===e){if(void 0!==l.s)return l.s;if(void 0!==l.keyword)return l.keyword}return void 0!==l[e]?l[e]:l[`vkfs_${e}`]})(s);if(void 0===r)return;let n;if(n=-1!==r.indexOf(",")?r.split(","):[r],"s"===s){const l=t[e].querySelector('.vkfs__keyword input[name="s"]');null!==l&&(l.value=decodeURI(r))}else if("post_type"===s){const l=t[e].querySelectorAll(".vkfs__input-wrap--select.vkfs__input-wrap--post_type");if(null!=l)for(let e=0;e{t[e].value===decodeURI(n[l])&&(t[e].selected=!0)})}}else{const l=t[e].querySelectorAll(`.vkfs__input-wrap--select.vkfs__input-wrap--${s}`);if(null!=l)for(let e=0;e{t[e].value===decodeURI(n[l])&&(t[e].selected=!0)})}}})};if(-1===e.indexOf("vkfs_submitted=true"))for(let e=0;e