!function(t){"function"==typeof define&&define.amd?define("scripts",t):t()}(function(){"use strict";function n(t,e,n){var o=n?((o=new Date).setTime(o.getTime()+24*n*60*60*1e3),"; expires="+o.toGMTString()):"";document.cookie=encodeURIComponent(t)+"="+encodeURIComponent(e)+o+"; path=/"}var o,i,a;function St(t){return 0===t?"":t}window.isMobile=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),window.isSearchBot=/Bot/i.test(navigator.userAgent),window.isMobile&&document.body.classList.add("is-mobile"),jQuery(function(t){var e=t(window).width(),n=t(".js-scrolltop");n.on("click",function(){return t("body,html").animate({scrollTop:0},500)}),t(window).on("scroll",function(){100<t(this).scrollTop()?e<991&&"on"!==n.data("mob")||n.fadeIn():n.fadeOut()})}),jQuery(function(t){t(document).on("click",".js-spoiler-box-title",function(){t(this).toggleClass("active").next().slideToggle()})}),o=window,i=document,(a=jQuery)&&(a.fn.wpshoplightbox=function(t){var e=a(this),n=a('<div class="wpshoplightbox-container" role="dialog" tabindex="-1"><div class="wpshoplightbox-bg"></div><div class="wpshoplightbox-inner"><div class="wpshoplightbox-close"><svg width="17" height="17" xmlns="http://www.w3.org/2000/svg"><path fill="none" d="M-1-1h19v19h-19z"/><path fill="#fff" d="M8.485 7.071l-7.071-7.071-1.414 1.414 7.071 7.071-7.071 7.071 1.414 1.414 7.071-7.071 7.071 7.071 1.414-1.414-7.071-7.071 7.071-7.071-1.414-1.414-7.071 7.071z"/></svg></div><div class="wpshoplightbox-body"><div class="wpshoplightbox-image"></div></div><div class="wpshoplightbox-caption"></div></div></div>');e.on("click",function(){var t=a(this).attr("href"),e=i.createElement("img"),e=a(e);if(t.match(/(\.jpg|\.gif|\.jpeg|\.png|\.webp|\.svg)$/i)){e.attr("src",t);n.appendTo("body")[0];return a("head").append('<style id="wpshoplightbox-scroll-style" type="text/css">.wpshoplightbox-scroll{margin-right:'+(o.innerWidth-i.documentElement.clientWidth)+"px;}</style>"),a("body").addClass("wpshoplightbox-scroll"),n.find(".wpshoplightbox-image").html(e),setTimeout(function(){n.addClass("wpshoplightbox--open")},10),!1}}),a(i).on("click",".wpshoplightbox-body, .wpshoplightbox-close",function(){a(i).find(".wpshoplightbox-container").removeClass("wpshoplightbox--open"),setTimeout(function(){a(i).find(".wpshoplightbox-container").remove()},400),a("body").removeClass("wpshoplightbox-scroll"),a("#wpshoplightbox-scroll-style").remove()})}),jQuery(function(d){d(document).on("click",".js-star-rating-item",function(){var o=d(this),i=o.parent(),a=o.data("score"),t=i.data("post-id"),r=i.data("rating-count"),c=i.data("rating-sum"),s=i.data("rating-value");function l(t,e){return e[4<t%100&&t%100<20?2:[2,0,1,1,1,2][t%10<5?t%10:5]]}i.hasClass("disabled")||(i.addClass("disabled process"),t={action:"wpshop_star_rating_submit",nonce:wps_ajax.nonce,post_id:t,score:a,rating_count:r,rating_sum:c,rating_value:s},jQuery.post(wps_ajax.url,t,function(t){var e,n;t.success?(s=((c+=a)/++r).toFixed(2),e="assessment",n=d("html").attr("lang"),"undefined"!=typeof rating_count_text_filter?e=rating_count_text_filter:("ru-RU"===n&&(e=l(r,["оценка","оценки","оценок"])),"uk"===n&&(e=l(r,["оцінка","оцінки","оцінок"]))),o.parent().parent().find(".star-rating-text").html("<em>( <strong>"+r+"</strong> "+e+", "+settings_array.rating_text_average+" <strong>"+s+"</strong> "+settings_array.rating_text_from+" <strong>5</strong> )</em></div>")):(t.data,console.log(t)),i.removeClass("process")}))}),d(".js-star-rating-item").on({mouseenter:function(){d(this).parent().hasClass("disabled")||(d(this).parent().addClass("hover"),d(this).addClass("hover").prevAll().addClass("hover"))},mouseleave:function(){d(this).parent().hasClass("disabled")||(d(this).parent().removeClass("hover"),d(".js-star-rating-item").removeClass("hover"))}})}),jQuery(document).ready(function(d){function o(t){if(0!==t.length){var e=d(window).scrollTop(),n=e+d(window).height();if(d("body").is(":animated"))for(console.log("animated"),s=0;s<t.length;s++)t[s].curTopOffset<=e&&(console.log("body anim"),d(t[s]).removeClass("w-animate w-animate_no-hover"));!function(t,e){if(t.length)for(var n=0;n<t.length;n++){var o=h(d(t[n]),e);t[n].curTopOffset<o&&(d(t[n]).removeClass("w-animate--wait"),d(t[n]).addClass("w-animate--started"))}}(t,n)}}function t(){var t,s,l,e=d(".w-animate");function n(){!function(t){for(var e=0;e<t.length;e++)t[e].curTopOffset=d(t[e]).offset().top}(e)}t=e,s=d(window).scrollTop(),l=s+d(window).height(),t.each(function(){var t=d(this),e=t.offset().top;e<s-450&&t.removeClass("w-animate w-animate_no-hover");var n,o,i,a,r,c=h(t,l);o=e,i=l,a=(n=t).attr("data-animate-style"),0!==(r=n.attr("data-animate-distance"))&&""!==r&&(void 0===r&&(r="40"),r=r.replace("px",""),n.css({"transition-duration":"0s","transition-delay":"0s"}),"fadeinup"===a&&n.css("transform","translate3d(0,"+r+"px,0)"),"fadeindown"===a&&n.css("transform","translate3d(0,-"+r+"px,0)"),"fadeinleft"===a&&n.css("transform","translate3d("+r+"px,0,0)"),"fadeinright"===a&&n.css("transform","translate3d(-"+r+"px,0,0)"),u(n,o,i),n.css({"transition-duration":"","transition-delay":""})),0!==(r=n.attr("data-animate-scale"))&&""!==r&&(n.css({"transition-duration":"0s","transition-delay":"0s"}),n.css("transform","scale("+r+")"),u(n,o,i),n.css({"transition-duration":"","transition-delay":""})),0!==(i=n.attr("data-animate-delay"))&&""!==i&&(void 0===i&&(i=Math.random()/4),n.css("transition-delay",i+"s")),void 0===(i=n.attr("data-animate-duration"))&&(i="1.5"),0!==i&&""!==i&&n.css("transition-duration",i+"s"),e<c&&(t.addClass("w-animate--started"),t.is('[data-animate-style="animatednumber"]')),c<=e&&t.addClass("w-animate--wait")}),e=e.filter(".w-animate--wait"),n(),d(window).bind("resize",i(n,200)),d(window).bind("scroll",i(function(){o(e)},200))}function u(t,e,n){return e<n+450&&t[0].offsetHeight}function h(t,e){var n=t.attr("data-animate-trigger-offset"),o=e;return void 0===n&&(n=(t.innerHeight()/3).toString()),void 0!==n&&""!==n&&(o=e-+(n=n.replace("px",""))),o}function i(o,i,a){var r,c;return i=i||250,function(){var t=a||this,e=+new Date,n=arguments;r&&e<r+i?(clearTimeout(c),c=setTimeout(function(){r=e,o.apply(t,n)},i)):(r=e,o.apply(t,n))}}var e,n,a,r;e=window.navigator.userAgent,n=e.indexOf("MSIE"),a="",r=!1,0<n&&(8!==(a=parseInt(e.substring(n+5,e.indexOf(".",n))))&&9!==a||(r=!0)),!r&&980<=d(window).width()&&!window.isSearchBot&&!window.isMobile&&980<=d(window).width()?setTimeout(function(){t()},300):d(".w-animate").removeClass("w-animate")}),jQuery(function(n){"undefined"!=typeof wpshop_views_counter_params&&n.ajax({type:"GET",url:wpshop_views_counter_params.url,data:"id="+wpshop_views_counter_params.post_id+"&action=wpshop_views_counter"}).done(function(t){t.success&&t.data.forEach(function(t){var e;e=t.id,t=t.count,(e=n('.js-views-count[data-post_id="'+e+'"]')).length&&e.text(t)})})}),function(){function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function t(t,e,n){return e&&o(t.prototype,e),n&&o(t,n),t}function e(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&n(t,e)}function r(t){return(r=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function n(t,e){return(n=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function c(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function s(t,e){return!e||"object"!=typeof e&&"function"!=typeof e?c(t):e}function i(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];e=n}else e=void 0;if(!(t=e=e||(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t)?Array.from(t):void 0)))throw new TypeError("Invalid attempt to spread non-iterable instance");return t}var l=(t(Ut,[{key:"addEventListener",value:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:document,e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"click";this.handlers[e]={func:2<arguments.length?arguments[2]:void 0,target:t};var n=e.split(".")[0];t.addEventListener(n,this.handlers[e].func)}},{key:"removeEventListener",value:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"click",e=t.split(".")[0],n=this.handlers[t];n.target.removeEventListener(e,n.func),delete this.handlers[t]}},{key:"removeAll",value:function(){for(var t in this.handlers)this.removeEventListener(t)}}]),Ut),d=(t(It,[{key:"eventHandler",value:function(t,e){var n=this,o=e.share_url,i=e.windowTitle,a=e.windowWidth,r=e.windowHeight;t.preventDefault(),e=Math.round((window.outerHeight||window.document.documentElement.offsetHeight)/2-r/2);var c=Math.round((window.outerWidth||window.document.documentElement.offsetWidth)/2-a/2),a="width=".concat(a,",height=").concat(r);e="left=".concat(c,",top=").concat(e);var s="".concat(a,",").concat(e,",location=no,toolbar=no,menubar=no"),l=window.open(o,i,s),d=setInterval(function(){l.closed&&(n.callback(t,{share_url:o,windowTitle:i,windowOptions:s},l),clearInterval(d))},10);return l}},{key:"setShareCallback",value:function(t){this.callback=t}},{key:"createEvents",value:function(t){var n=this;i(t).forEach(function(t){var e=n.getPreparedData(t);n.events.addEventListener(t,"click.".concat(n.instanceId),function(t){return n.eventHandler.call(n,t,e)})})}},{key:"getInstance",value:function(){return"function"==typeof this.shareWindow&&this.shareWindow(),"function"==typeof this.getCounter&&this.getCounter(),this}},{key:"updateInstanceId",value:function(){this.instanceId=function(){return"".concat(0<arguments.length&&void 0!==arguments[0]?arguments[0]:"id","-").concat(Math.random().toString(36).substr(2,8))}()}},{key:"reNewInstance",value:function(){return this.events.removeAll(),this.updateInstanceId(),this.getInstance()}}]),It),u=(e(Ct,d),t(Ct,[{key:"getPreparedData",value:function(t){var e=t.dataset.url?encodeURIComponent(t.dataset.url):this.url,n=t.dataset.title?encodeURIComponent(t.dataset.title):this.title;return t=t.dataset.image?encodeURIComponent(t.dataset.image):this.image,e="https://vk.com/share.php?url=".concat(e,"&title=").concat(n,"&image=").concat(t),{callback:this.callback,share_url:e,windowTitle:"Share this",windowWidth:640,windowHeight:480}}},{key:"shareWindow",value:function(){var t=document.querySelectorAll('[data-social="vkontakte"]');return this.createEvents(t)}},{key:"getCounter",value:function(){var n=document.createElement("script"),o=document.querySelectorAll('[data-counter="vkontakte"]'),t="https://vk.com/share.php?act=count&index=1&url=".concat(this.url);window.VK=Object.assign({},{Share:{}},window.VK),0<o.length&&(window.VK.Share.count=function(t,e){i(o).forEach(function(t){t.innerHTML=St(e)}),null!==n.parentNode&&n.parentNode.removeChild(n)},n.src=t,document.body.appendChild(n))}}]),Ct),h=(e(kt,d),t(kt,[{key:"getPreparedData",value:function(t){var e=t.dataset.url?encodeURIComponent(t.dataset.url):this.url;return t=t.dataset.title?encodeURIComponent(t.dataset.title):this.title,e="https://facebook.com/sharer/sharer.php?u=".concat(e,"&t=").concat(t),{callback:this.callback,share_url:e,windowTitle:"Share this",windowWidth:640,windowHeight:480}}},{key:"shareWindow",value:function(){var t=document.querySelectorAll('[data-social="facebook"]');return this.createEvents(t)}},{key:"getCounter",value:function(){var t=document.createElement("script"),e=("goodshare_"+Math.random()).replace(".",""),n=document.querySelectorAll('[data-counter="facebook"]'),o="https://graph.facebook.com/?id=".concat(this.url,"&callback=").concat(e);0<n.length&&(window[e]=function(e){i(n).forEach(function(t){t.innerHTML=e.share?e.share.share_count:""}),null!==t.parentNode&&t.parentNode.removeChild(t)},t.src=o,document.body.appendChild(t))}}]),kt),p=(e(yt,d),t(yt,[{key:"getPreparedData",value:function(t){var e=t.dataset.url?encodeURIComponent(t.dataset.url):this.url;return t=t.dataset.title?encodeURIComponent(t.dataset.title):this.title,e="https://connect.ok.ru/offer?url=".concat(e,"&title=").concat(t),{callback:this.callback,share_url:e,windowTitle:"Share this",windowWidth:640,windowHeight:480}}},{key:"shareWindow",value:function(){var t=document.querySelectorAll('[data-social="odnoklassniki"]');return this.createEvents(t)}},{key:"getCounter",value:function(){var n=document.createElement("script"),o=document.querySelectorAll('[data-counter="odnoklassniki"]'),t="https://connect.ok.ru/dk?st.cmd=extLike&uid=1&ref=".concat(this.url);window.ODKL={},0<o.length&&(window.ODKL.updateCount=function(t,e){i(o).forEach(function(t){t.innerHTML=St(e)}),null!==n.parentNode&&n.parentNode.removeChild(n)},n.src=t,document.body.appendChild(n))}}]),yt),v=(e(bt,d),t(bt,[{key:"getPreparedData",value:function(t){var e=t.dataset.url?encodeURIComponent(t.dataset.url):this.url,n=t.dataset.title?encodeURIComponent(t.dataset.title):this.title,o=t.dataset.description?encodeURIComponent(t.dataset.description):this.description;return t=t.dataset.image?encodeURIComponent(t.dataset.image):this.image,e="https://connect.mail.ru/share?url=".concat(e,"&title=").concat(n,"&description=").concat(o,"&imageurl=").concat(t),{callback:this.callback,share_url:e,windowTitle:"Share this",windowWidth:640,windowHeight:480}}},{key:"shareWindow",value:function(){var t=document.querySelectorAll('[data-social="moimir"]');return this.createEvents(t)}},{key:"getCounter",value:function(){var t=document.createElement("script"),e=encodeURIComponent(this.url.replace(/^.*?:\/\//,"")),n=("goodshare_"+Math.random()).replace(".",""),o=document.querySelectorAll('[data-counter="moimir"]');0<o.length&&(window[n]=function(e){i(o).forEach(function(t){t.innerHTML=St(e.share_mm)}),null!==t.parentNode&&t.parentNode.removeChild(t)},t.src="https://appsmail.ru/share/count/"+e+"?callback="+n,document.body.appendChild(t))}}]),bt),m=(e(gt,d),t(gt,[{key:"getPreparedData",value:function(t){var e=t.dataset.url?encodeURIComponent(t.dataset.url):this.url,n=t.dataset.title?encodeURIComponent(t.dataset.title):this.title;return t=t.dataset.description?encodeURIComponent(t.dataset.description):this.description,e="https://www.tumblr.com/widgets/share/tool?canonicalUrl=".concat(e,"&title=").concat(n,"&caption=").concat(t,"&posttype=link"),{callback:this.callback,share_url:e,windowTitle:"Share this",windowWidth:640,windowHeight:480}}},{key:"shareWindow",value:function(){var t=document.querySelectorAll('[data-social="tumblr"]');return this.createEvents(t)}},{key:"getCounter",value:function(){var t=document.createElement("script"),e=("goodshare_"+Math.random()).replace(".",""),n=document.querySelectorAll('[data-counter="tumblr"]'),o="https://api.tumblr.com/v2/share/stats?url=".concat(this.url,"&callback=").concat(e);0<n.length&&(window[e]=function(e){i(n).forEach(function(t){t.innerHTML=St(e.response.note_count)}),null!==t.parentNode&&t.parentNode.removeChild(t)},t.src=o,document.body.appendChild(t))}}]),gt),f=(e(wt,d),t(wt,[{key:"getPreparedData",value:function(t){var e=t.dataset.url?encodeURIComponent(t.dataset.url):this.url,n=t.dataset.description?encodeURIComponent(t.dataset.description):this.description;return t=t.dataset.image?encodeURIComponent(t.dataset.image):this.image,e="https://www.pinterest.com/pin/create/button/?url=".concat(e,"&description=").concat(n,"&media=").concat(t),{callback:this.callback,share_url:e,windowTitle:"Share this",windowWidth:640,windowHeight:480}}},{key:"shareWindow",value:function(){var t=document.querySelectorAll('[data-social="pinterest"]');return this.createEvents(t)}},{key:"getCounter",value:function(){var t=document.createElement("script"),e=("goodshare_"+Math.random()).replace(".",""),n=document.querySelectorAll('[data-counter="pinterest"]'),o="https://api.pinterest.com/v1/urls/count.json?url=".concat(this.url,"&callback=").concat(e);0<n.length&&(window[e]=function(e){i(n).forEach(function(t){t.innerHTML=0<e.length?e.count:""}),null!==t.parentNode&&t.parentNode.removeChild(t)},t.src=o,document.body.appendChild(t))}}]),wt),w=(e(ft,d),t(ft,[{key:"getPreparedData",value:function(t){var e=t.dataset.url?encodeURIComponent(t.dataset.url):this.url;return t=t.dataset.title?encodeURIComponent(t.dataset.title):this.title,e="https://reddit.com/submit?url=".concat(e,"&title=").concat(t),{callback:this.callback,share_url:e,windowTitle:"Share this",windowWidth:640,windowHeight:480}}},{key:"shareWindow",value:function(){var t=document.querySelectorAll('[data-social="reddit"]');return this.createEvents(t)}}]),ft),g=(e(mt,d),t(mt,[{key:"getPreparedData",value:function(t){var e=t.dataset.url?encodeURIComponent(t.dataset.url):this.url;return t=t.dataset.title?encodeURIComponent(t.dataset.title):this.title,e="https://buffer.com/add?url=".concat(e,"&text=").concat(t),{callback:this.callback,share_url:e,windowTitle:"Share this",windowWidth:640,windowHeight:480}}},{key:"shareWindow",value:function(){var t=document.querySelectorAll('[data-social="buffer"]');return this.createEvents(t)}},{key:"getCounter",value:function(){var t=document.createElement("script"),e=("goodshare_"+Math.random()).replace(".",""),n=document.querySelectorAll('[data-counter="buffer"]'),o="https://api.bufferapp.com/1/links/shares.json?url=".concat(this.url,"&callback=").concat(e);0<n.length&&(window[e]=function(e){i(n).forEach(function(t){t.innerHTML=e?e.shares:""}),t.parentNode.removeChild(t)},t.src=o,document.body.appendChild(t))}}]),mt),b=(e(vt,d),t(vt,[{key:"getPreparedData",value:function(t){var e=t.dataset.url?encodeURIComponent(t.dataset.url):this.url;return t=t.dataset.title?encodeURIComponent(t.dataset.title):this.title,e="https://twitter.com/share?url=".concat(e,"&text=").concat(t),{callback:this.callback,share_url:e,windowTitle:"Share this",windowWidth:640,windowHeight:480}}},{key:"shareWindow",value:function(){var t=document.querySelectorAll('[data-social="twitter"]');return this.createEvents(t)}}]),vt),y=(e(pt,d),t(pt,[{key:"getPreparedData",value:function(t){var e=t.dataset.url?encodeURIComponent(t.dataset.url):this.url;return t=t.dataset.title?encodeURIComponent(t.dataset.title):this.title,e="https://livejournal.com/update.bml?event=".concat(e,"&subject=").concat(t),{callback:this.callback,share_url:e,windowTitle:"Share this",windowWidth:640,windowHeight:480}}},{key:"shareWindow",value:function(){var t=document.querySelectorAll('[data-social="livejournal"]');return this.createEvents(t)}}]),pt),k=(e(ht,d),t(ht,[{key:"getPreparedData",value:function(t){var e=t.dataset.url?encodeURIComponent(t.dataset.url):this.url,n=t.dataset.title?encodeURIComponent(t.dataset.title):this.title;return t=t.dataset.description?encodeURIComponent(t.dataset.description):this.description,e="https://www.linkedin.com/shareArticle?url=".concat(e,"&text=").concat(n,"&summary=").concat(t,"&mini=true"),{callback:this.callback,share_url:e,windowTitle:"Share this",windowWidth:640,windowHeight:480}}},{key:"shareWindow",value:function(){var t=document.querySelectorAll('[data-social="linkedin"]');return this.createEvents(t)}}]),ht),C=(e(ut,d),t(ut,[{key:"getPreparedData",value:function(t){var e=t.dataset.url?encodeURIComponent(t.dataset.url):this.url,n=t.dataset.title?encodeURIComponent(t.dataset.title):this.title;return t=t.dataset.description?encodeURIComponent(t.dataset.description):this.description,e="https://www.evernote.com/clip.action?url=".concat(e,"&title=").concat(n,"&body=").concat(t),{callback:this.callback,share_url:e,windowTitle:"Share this",windowWidth:640,windowHeight:480}}},{key:"shareWindow",value:function(){var t=document.querySelectorAll('[data-social="evernote"]');return this.createEvents(t)}}]),ut),I=(e(dt,d),t(dt,[{key:"getPreparedData",value:function(t){var e=t.dataset.url?encodeURIComponent(t.dataset.url):this.url;return t=t.dataset.title?encodeURIComponent(t.dataset.title):this.title,e="https://del.icio.us/save?url=".concat(e,"&title=").concat(t),{callback:this.callback,share_url:e,windowTitle:"Share this",windowWidth:640,windowHeight:480}}},{key:"shareWindow",value:function(){var t=document.querySelectorAll('[data-social="delicious"]');return this.createEvents(t)}}]),dt),U=(e(lt,d),t(lt,[{key:"getPreparedData",value:function(t){var e=t.dataset.url?encodeURIComponent(t.dataset.url):this.url;return t=t.dataset.title?encodeURIComponent(t.dataset.title):this.title,e="https://share.flipboard.com/bookmarklet/popout?ext=sharethis&title=".concat(t,"&url=").concat(e,"&v=2"),{callback:this.callback,share_url:e,windowTitle:"Share this",windowWidth:640,windowHeight:480}}},{key:"shareWindow",value:function(){var t=document.querySelectorAll('[data-social="flipboard"]');return this.createEvents(t)}}]),lt),R=(e(st,d),t(st,[{key:"getPreparedData",value:function(t){return t=t.dataset.url?encodeURIComponent(t.dataset.url):this.url,t="https://mix.com/mixit?su=submit&url=".concat(t),{callback:this.callback,share_url:t,windowTitle:"Share this",windowWidth:640,windowHeight:480}}},{key:"shareWindow",value:function(){var t=document.querySelectorAll('[data-social="mix"]');return this.createEvents(t)}}]),st),_=(e(ct,d),t(ct,[{key:"getPreparedData",value:function(t){return t=t.dataset.url?encodeURIComponent(t.dataset.url):this.url,t="https://www.meneame.net/submit?url=".concat(t),{callback:this.callback,share_url:t,windowTitle:"Share this",windowWidth:640,windowHeight:480}}},{key:"shareWindow",value:function(){var t=document.querySelectorAll('[data-social="meneame"]');return this.createEvents(t)}}]),ct),E=(e(rt,d),t(rt,[{key:"getPreparedData",value:function(t){var e=t.dataset.url?encodeURIComponent(t.dataset.url):this.url;return t=t.dataset.title?encodeURIComponent(t.dataset.title):this.title,e="https://www.blogger.com/blog-this.g?u=".concat(e,"&n=").concat(t),{callback:this.callback,share_url:e,windowTitle:"Share this",windowWidth:640,windowHeight:480}}},{key:"shareWindow",value:function(){var t=document.querySelectorAll('[data-social="blogger"]');return this.createEvents(t)}}]),rt),S=(e(at,d),t(at,[{key:"getPreparedData",value:function(t){var e=t.dataset.url?encodeURIComponent(t.dataset.url):this.url;return t=t.dataset.title?encodeURIComponent(t.dataset.title):this.title,e="https://getpocket.com/save?url=".concat(e,"&title=").concat(t),{callback:this.callback,share_url:e,windowTitle:"Share this",windowWidth:640,windowHeight:480}}},{key:"shareWindow",value:function(){var t=document.querySelectorAll('[data-social="pocket"]');return this.createEvents(t)}}]),at),x=(e(it,d),t(it,[{key:"getPreparedData",value:function(t){var e=t.dataset.url?encodeURIComponent(t.dataset.url):this.url;return t=t.dataset.title?encodeURIComponent(t.dataset.title):this.title,e="https://www.instapaper.com/edit?url=".concat(e,"&title=").concat(t),{callback:this.callback,share_url:e,windowTitle:"Share this",windowWidth:640,windowHeight:480}}},{key:"shareWindow",value:function(){var t=document.querySelectorAll('[data-social="instapaper"]');return this.createEvents(t)}}]),it),T=(e(ot,d),t(ot,[{key:"getPreparedData",value:function(t){var e=t.dataset.url?encodeURIComponent(t.dataset.url):this.url;return t=t.dataset.title?encodeURIComponent(t.dataset.title):this.title,e="https://digg.com/submit?url=".concat(e,"&title=").concat(t),{callback:this.callback,share_url:e,windowTitle:"Share this",windowWidth:640,windowHeight:480}}},{key:"shareWindow",value:function(){var t=document.querySelectorAll('[data-social="digg"]');return this.createEvents(t)}}]),ot),W=(e(nt,d),t(nt,[{key:"getPreparedData",value:function(t){var e=t.dataset.url?encodeURIComponent(t.dataset.url):this.url;return t=t.dataset.title?encodeURIComponent(t.dataset.title):this.title,e="http://www.liveinternet.ru/journal_post.php?action=n_add&cnurl=".concat(e,"&cntitle=").concat(t),{callback:this.callback,share_url:e,windowTitle:"Share this",windowWidth:640,windowHeight:480}}},{key:"shareWindow",value:function(){var t=document.querySelectorAll('[data-social="liveinternet"]');return this.createEvents(t)}}]),nt),A=(e(et,d),t(et,[{key:"getPreparedData",value:function(t){var e=t.dataset.url?encodeURIComponent(t.dataset.url):this.url,n=t.dataset.title?encodeURIComponent(t.dataset.title):this.title;return t=t.dataset.description?encodeURIComponent(t.dataset.description):this.description,e="https://surfingbird.ru/share?url=".concat(e,"&title=").concat(n,"&description=").concat(t),{callback:this.callback,share_url:e,windowTitle:"Share this",windowWidth:640,windowHeight:480}}},{key:"shareWindow",value:function(){var t=document.querySelectorAll('[data-social="surfingbird"]');return this.createEvents(t)}}]),et),j=(e(tt,d),t(tt,[{key:"getPreparedData",value:function(t){return t=t.dataset.url?encodeURIComponent(t.dataset.url):this.url,t="https://www.xing.com/spi/shares/new?url=".concat(t),{callback:this.callback,share_url:t,windowTitle:"Share this",windowWidth:640,windowHeight:480}}},{key:"shareWindow",value:function(){var t=document.querySelectorAll('[data-social="xing"]');return this.createEvents(t)}}]),tt),q=(e(Z,d),t(Z,[{key:"getPreparedData",value:function(t){var e=t.dataset.url?encodeURIComponent(t.dataset.url):this.url,n=t.dataset.title?encodeURIComponent(t.dataset.title):this.title,o=t.dataset.description?encodeURIComponent(t.dataset.description):this.description;return t=t.dataset.image?encodeURIComponent(t.dataset.image):this.image,e="https://wordpress.com/wp-admin/press-this.php?u=".concat(e,"&t=").concat(n,"&s=").concat(o,"&i=").concat(t,"&v=2"),{callback:this.callback,share_url:e,windowTitle:"Share this",windowWidth:640,windowHeight:480}}},{key:"shareWindow",value:function(){var t=document.querySelectorAll('[data-social="wordpress"]');return this.createEvents(t)}}]),Z),H=(e(Y,d),t(Y,[{key:"getPreparedData",value:function(t){var e=t.dataset.url?encodeURIComponent(t.dataset.url):this.url,n=t.dataset.title?encodeURIComponent(t.dataset.title):this.title;return t=t.dataset.description?encodeURIComponent(t.dataset.description):this.description,e="https://cang.baidu.com/do/add?iu=".concat(e,"&it=").concat(n,"&dc=").concat(t,"&fr=ien"),{callback:this.callback,share_url:e,windowTitle:"Share this",windowWidth:640,windowHeight:480}}},{key:"shareWindow",value:function(){var t=document.querySelectorAll('[data-social="baidu"]');return this.createEvents(t)}}]),Y),P=(e(X,d),t(X,[{key:"getPreparedData",value:function(t){var e=t.dataset.url?encodeURIComponent(t.dataset.url):this.url;return t=t.dataset.title?encodeURIComponent(t.dataset.title):this.title,e="http://share.renren.com/share/buttonshare.do?url=".concat(e,"&title=").concat(t),{callback:this.callback,share_url:e,windowTitle:"Share this",windowWidth:640,windowHeight:480}}},{key:"shareWindow",value:function(){var t=document.querySelectorAll('[data-social="renren"]');return this.createEvents(t)}}]),X),D=(e(J,d),t(J,[{key:"getPreparedData",value:function(t){var e=t.dataset.url?encodeURIComponent(t.dataset.url):this.url;return t=t.dataset.title?encodeURIComponent(t.dataset.title):this.title,e="https://service.weibo.com/share/share.php?url=".concat(e,"&title=").concat(t),{callback:this.callback,share_url:e,windowTitle:"Share this",windowWidth:640,windowHeight:480}}},{key:"shareWindow",value:function(){var t=document.querySelectorAll('[data-social="weibo"]');return this.createEvents(t)}}]),J),M=(e($,d),t($,[{key:"getPreparedData",value:function(t){return t=t.dataset.url?encodeURIComponent(t.dataset.url):this.url,t="sms:?&body=".concat(t),{callback:this.callback,share_url:t,windowTitle:"Share this",windowWidth:640,windowHeight:480}}},{key:"shareWindow",value:function(){var t=document.querySelectorAll('[data-social="sms"]');return this.createEvents(t)}}]),$),O=(e(F,d),t(F,[{key:"getPreparedData",value:function(t){return t=t.dataset.url?encodeURIComponent(t.dataset.url):this.url,t="https://web.skype.com/share?".concat(t),{callback:this.callback,share_url:t,windowTitle:"Share this",windowWidth:640,windowHeight:480}}},{key:"shareWindow",value:function(){var t=document.querySelectorAll('[data-social="skype"]');return this.createEvents(t)}}]),F),N=(e(G,d),t(G,[{key:"getPreparedData",value:function(t){var e=t.dataset.url?encodeURIComponent(t.dataset.url):this.url;t=t.dataset.rhash||null;var n="https://t.me/share/url?url=".concat(e);return null!==t&&(n="https://t.me/iv?url=".concat(e,"&rhash=").concat(t)),{callback:this.callback,share_url:n,windowTitle:"Share this",windowWidth:640,windowHeight:480}}},{key:"shareWindow",value:function(){var t=document.querySelectorAll('[data-social="telegram"]');return this.createEvents(t)}}]),G),Q=(e(V,d),t(V,[{key:"getPreparedData",value:function(t){return t=t.dataset.url?encodeURIComponent(t.dataset.url):this.url,t="viber://forward?text=".concat(t),{callback:this.callback,share_url:t,windowTitle:"Share this",windowWidth:640,windowHeight:480}}},{key:"shareWindow",value:function(){var t=document.querySelectorAll('[data-social="viber"]');return this.createEvents(t)}}]),V),L=(e(K,d),t(K,[{key:"getPreparedData",value:function(t){return t=t.dataset.url?encodeURIComponent(t.dataset.url):this.url,t="https://api.whatsapp.com/send?text=".concat(t),{callback:this.callback,share_url:t,windowTitle:"Share this",windowWidth:640,windowHeight:480}}},{key:"shareWindow",value:function(){var t=document.querySelectorAll('[data-social="whatsapp"]');return this.createEvents(t)}}]),K),z=(e(B,d),t(B,[{key:"getPreparedData",value:function(t){return t=t.dataset.url?encodeURIComponent(t.dataset.url):this.url,t="https://chart.apis.google.com/chart?cht=qr&chs=196x196&chld=Q%7C0&chl=".concat(t),{callback:this.callback,share_url:t,windowTitle:"Share this",windowWidth:640,windowHeight:480}}},{key:"shareWindow",value:function(){var t=document.querySelectorAll('[data-social="wechat"]');return this.createEvents(t)}}]),B);function B(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:document.location.href;a(this,B);var e=s(this,r(B).call(this));return e.url=encodeURIComponent(t),e.createEvents=e.createEvents.bind(c(e)),e}function K(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:document.location.href;a(this,K);var e=s(this,r(K).call(this));return e.url=encodeURIComponent(t),e.createEvents=e.createEvents.bind(c(e)),e}function V(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:document.location.href;a(this,V);var e=s(this,r(V).call(this));return e.url=encodeURIComponent(t),e.createEvents=e.createEvents.bind(c(e)),e}function G(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:document.location.href;a(this,G);var e=s(this,r(G).call(this));return e.url=encodeURIComponent(t),e.createEvents=e.createEvents.bind(c(e)),e}function F(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:document.location.href;a(this,F);var e=s(this,r(F).call(this));return e.url=encodeURIComponent(t),e.createEvents=e.createEvents.bind(c(e)),e}function $(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:document.location.href;a(this,$);var e=s(this,r($).call(this));return e.url=encodeURIComponent(t),e.createEvents=e.createEvents.bind(c(e)),e}function J(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:document.location.href,e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:document.title;a(this,J);var n=s(this,r(J).call(this));return n.url=encodeURIComponent(t),n.title=encodeURIComponent(e),n.createEvents=n.createEvents.bind(c(n)),n}function X(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:document.location.href,e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:document.title;a(this,X);var n=s(this,r(X).call(this));return n.url=encodeURIComponent(t),n.title=encodeURIComponent(e),n.createEvents=n.createEvents.bind(c(n)),n}function Y(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:document.location.href,e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:document.title,n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:document.querySelector('meta[name="description"]');a(this,Y);var o=s(this,r(Y).call(this));return o.url=encodeURIComponent(t),o.title=encodeURIComponent(e),o.description=n?encodeURIComponent(n.content):"",o.createEvents=o.createEvents.bind(c(o)),o}function Z(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:document.location.href,e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:document.title,n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:document.querySelector('meta[name="description"]'),o=3<arguments.length&&void 0!==arguments[3]?arguments[3]:document.querySelector('link[rel="apple-touch-icon"]');a(this,Z);var i=s(this,r(Z).call(this));return i.url=encodeURIComponent(t),i.title=encodeURIComponent(e),i.description=n?encodeURIComponent(n.content):"",i.image=o?encodeURIComponent(o.href):"",i.createEvents=i.createEvents.bind(c(i)),i}function tt(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:document.location.href;a(this,tt);var e=s(this,r(tt).call(this));return e.url=encodeURIComponent(t),e.createEvents=e.createEvents.bind(c(e)),e}function et(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:document.location.href,e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:document.title,n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:document.querySelector('meta[name="description"]');a(this,et);var o=s(this,r(et).call(this));return o.url=encodeURIComponent(t),o.title=encodeURIComponent(e),o.description=n?encodeURIComponent(n.content):"",o.createEvents=o.createEvents.bind(c(o)),o}function nt(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:document.location.href,e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:document.title;a(this,nt);var n=s(this,r(nt).call(this));return n.url=encodeURIComponent(t),n.title=encodeURIComponent(e),n.createEvents=n.createEvents.bind(c(n)),n}function ot(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:document.location.href,e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:document.title;a(this,ot);var n=s(this,r(ot).call(this));return n.url=encodeURIComponent(t),n.title=encodeURIComponent(e),n.createEvents=n.createEvents.bind(c(n)),n}function it(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:document.location.href,e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:document.title;a(this,it);var n=s(this,r(it).call(this));return n.url=encodeURIComponent(t),n.title=encodeURIComponent(e),n.createEvents=n.createEvents.bind(c(n)),n}function at(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:document.location.href,e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:document.title;a(this,at);var n=s(this,r(at).call(this));return n.url=encodeURIComponent(t),n.title=encodeURIComponent(e),n.createEvents=n.createEvents.bind(c(n)),n}function rt(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:document.location.href,e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:document.title;a(this,rt);var n=s(this,r(rt).call(this));return n.url=encodeURIComponent(t),n.title=encodeURIComponent(e),n.createEvents=n.createEvents.bind(c(n)),n}function ct(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:document.location.href;a(this,ct);var e=s(this,r(ct).call(this));return e.url=encodeURIComponent(t),e.createEvents=e.createEvents.bind(c(e)),e}function st(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:document.location.href;a(this,st);var e=s(this,r(st).call(this));return e.url=encodeURIComponent(t),e.createEvents=e.createEvents.bind(c(e)),e}function lt(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:document.location.href,e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:document.title;a(this,lt);var n=s(this,r(lt).call(this));return n.url=encodeURIComponent(t),n.title=encodeURIComponent(e),n.createEvents=n.createEvents.bind(c(n)),n}function dt(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:document.location.href,e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:document.title;a(this,dt);var n=s(this,r(dt).call(this));return n.url=encodeURIComponent(t),n.title=encodeURIComponent(e),n.createEvents=n.createEvents.bind(c(n)),n}function ut(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:document.location.href,e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:document.title,n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:document.querySelector('meta[name="description"]');a(this,ut);var o=s(this,r(ut).call(this));return o.url=encodeURIComponent(t),o.title=encodeURIComponent(e),o.description=n?encodeURIComponent(n.content):"",o.createEvents=o.createEvents.bind(c(o)),o}function ht(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:document.location.href,e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:document.title,n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:document.querySelector('meta[name="description"]');a(this,ht);var o=s(this,r(ht).call(this));return o.url=encodeURIComponent(t),o.title=encodeURIComponent(e),o.description=n?encodeURIComponent(n.content):"",o.createEvents=o.createEvents.bind(c(o)),o}function pt(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:document.location.href,e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:document.title;a(this,pt);var n=s(this,r(pt).call(this));return n.url=encodeURIComponent(t),n.title=encodeURIComponent(e),n.createEvents=n.createEvents.bind(c(n)),n}function vt(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:document.location.href,e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:document.title;a(this,vt);var n=s(this,r(vt).call(this));return n.url=encodeURIComponent(t),n.title=encodeURIComponent(e),n.createEvents=n.createEvents.bind(c(n)),n}function mt(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:document.location.href,e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:document.title;a(this,mt);var n=s(this,r(mt).call(this));return n.url=encodeURIComponent(t),n.title=encodeURIComponent(e),n.createEvents=n.createEvents.bind(c(n)),n}function ft(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:document.location.href,e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:document.title;a(this,ft);var n=s(this,r(ft).call(this));return n.url=encodeURIComponent(t),n.title=encodeURIComponent(e),n.createEvents=n.createEvents.bind(c(n)),n}function wt(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:document.location.href,e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:document.querySelector('meta[name="description"]'),n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:document.querySelector('link[rel="apple-touch-icon"]');a(this,wt);var o=s(this,r(wt).call(this));return o.url=encodeURIComponent(t),o.description=e?encodeURIComponent(e.content):"",o.image=n?encodeURIComponent(n.href):"",o.createEvents=o.createEvents.bind(c(o)),o}function gt(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:document.location.href,e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:document.title,n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:document.querySelector('meta[name="description"]');a(this,gt);var o=s(this,r(gt).call(this));return o.url=encodeURIComponent(t),o.title=encodeURIComponent(e),o.description=n?encodeURIComponent(n.content):"",o.createEvents=o.createEvents.bind(c(o)),o}function bt(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:document.location.href,e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:document.title,n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:document.querySelector('meta[name="description"]'),o=3<arguments.length&&void 0!==arguments[3]?arguments[3]:document.querySelector('link[rel="apple-touch-icon"]');a(this,bt);var i=s(this,r(bt).call(this));return i.url=encodeURIComponent(t),i.title=encodeURIComponent(e),i.description=n?encodeURIComponent(n.content):"",i.image=o?encodeURIComponent(o.href):"",i.createEvents=i.createEvents.bind(c(i)),i}function yt(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:document.location.href,e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:document.title;a(this,yt);var n=s(this,r(yt).call(this));return n.url=encodeURIComponent(t),n.title=encodeURIComponent(e),n.createEvents=n.createEvents.bind(c(n)),n}function kt(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:document.location.href,e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:document.title;a(this,kt);var n=s(this,r(kt).call(this));return n.url=encodeURIComponent(t),n.title=encodeURIComponent(e),n.createEvents=n.createEvents.bind(c(n)),n}function Ct(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:document.location.href,e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:document.title,n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:document.querySelector('link[rel="apple-touch-icon"]');a(this,Ct);var o=s(this,r(Ct).call(this));return o.url=encodeURIComponent(t),o.title=encodeURIComponent(e),o.image=n?encodeURIComponent(n.href):"",o.createEvents=o.createEvents.bind(c(o)),o}function It(){a(this,It),this.events=new l,this.callback=function(){},this.updateInstanceId()}function Ut(){a(this,Ut),this.handlers={}}function Rt(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:document.location.href;a(this,Rt);var e=s(this,r(Rt).call(this));return e.url=encodeURIComponent(t),e.createEvents=e.createEvents.bind(c(e)),e}e(Rt,d),t(Rt,[{key:"getPreparedData",value:function(t){return t=t.dataset.url?encodeURIComponent(t.dataset.url):this.url,t="line://msg/text/".concat(t),{callback:this.callback,share_url:t,windowTitle:"Share this",windowWidth:640,windowHeight:480}}},{key:"shareWindow",value:function(){var t=document.querySelectorAll('[data-social="line"]');return this.createEvents(t)}}]);var _t=[u,h,p,v,k,m,f,w,g,b,y,C,I,U,S,R,_,E,x,T,W,A,j,q,H,P,D,M,O,N,Q,L,z,Rt];function Et(){a(this,Et),this.providers=_t,this.getProviders()}t(Et,[{key:"setShareCallback",value:function(e){this.providers=this.providers.map(function(t){return t.setShareCallback(e)})}},{key:"getProviders",value:function(){return this.providers=this.providers.map(function(t){return(new t).getInstance()})}},{key:"reNewAllInstance",value:function(){this.providers=this.providers.map(function(t){return t.reNewInstance()})}}]),u=Et,window._goodshare=new u}(),jQuery(function(t){(function(){var x=this.jQuery||window.jQuery,T=x(window);x.fn.stick_in_parent=function(t){var k,C,e,n,I,o,U,R,_,E,S;for(null==t&&(t={}),S=t.sticky_class,I=t.inner_scrolling,E=t.recalc_every,_=t.parent,R=t.offset_top,U=t.spacer,C=t.bottoming,null==R&&(R=0),null==_&&(_=void 0),null==I&&(I=!0),null==S&&(S="is_stuck"),k=x(document),null==C&&(C=!0),e=function(i,a,r,c,s,l,d,u){var h,t,p,v,m,f,w,g,e,b,y,o;if(!i.data("sticky_kit")){if(i.data("sticky_kit",!0),m=k.height(),w=i.parent(),null!=_&&(w=w.closest(_)),!w.length)throw"failed to find stick parent";if(h=p=!1,(y=null!=U?U&&i.closest(U):x("<div />"))&&y.css("position",i.css("position")),(g=function(){var t,e,n;if(!u&&(m=k.height(),t=parseInt(w.css("border-top-width"),10),e=parseInt(w.css("padding-top"),10),a=parseInt(w.css("padding-bottom"),10),r=w.offset().top+t+e,c=w.height(),p&&(h=p=!1,null==U&&(i.insertAfter(y),y.detach()),i.css({position:"",top:"",width:"",bottom:""}).removeClass(S),n=!0),s=i.offset().top-(parseInt(i.css("margin-top"),10)||0)-R,l=i.outerHeight(!0),d=i.css("float"),y&&y.css({width:i.outerWidth(!0),height:l,display:i.css("display"),"vertical-align":i.css("vertical-align"),float:d}),n))return o()})(),l!==c)return v=void 0,f=R,b=E,o=function(){var t,e,n,o;if(!u&&(n=!1,null!=b&&(--b<=0&&(b=E,g(),n=!0)),n||k.height()===m||g(),n=T.scrollTop(),null!=v&&(e=n-v),v=n,p?(C&&(o=c+r<n+l+f,h&&!o&&(h=!1,i.css({position:"fixed",bottom:"",top:f}).trigger("sticky_kit:unbottom"))),n<s&&(p=!1,f=R,null==U&&("left"!==d&&"right"!==d||i.insertAfter(y),y.detach()),t={position:"",width:"",top:""},i.css(t).removeClass(S).trigger("sticky_kit:unstick")),I&&((t=T.height())<l+R&&!h&&(f-=e,f=Math.max(t-l,f),f=Math.min(R,f),p&&i.css({top:f+"px"})))):s<n&&(p=!0,(t={position:"fixed",top:f}).width="border-box"===i.css("box-sizing")?i.outerWidth()+"px":i.width()+"px",i.css(t).addClass(S),null==U&&(i.after(y),"left"!==d&&"right"!==d||y.append(i)),i.trigger("sticky_kit:stick")),p&&C&&(null==o&&(o=c+r<n+l+f),!h&&o)))return h=!0,"static"===w.css("position")&&w.css({position:"relative"}),i.css({position:"absolute",bottom:a,top:"auto"}).trigger("sticky_kit:bottom")},e=function(){return g(),o()},t=function(){if(u=!0,T.off("touchmove",o),T.off("scroll",o),T.off("resize",e),x(document.body).off("sticky_kit:recalc",e),i.off("sticky_kit:detach",t),i.removeData("sticky_kit"),i.css({position:"",bottom:"",top:"",width:""}),w.position("position",""),p)return null==U&&("left"!==d&&"right"!==d||i.insertAfter(y),y.remove()),i.removeClass(S)},T.on("touchmove",o),T.on("scroll",o),T.on("resize",e),x(document.body).on("sticky_kit:recalc",e),i.on("sticky_kit:detach",t),setTimeout(o,0)}},n=0,o=this.length;n<o;n++)t=this[n],e(x(t));return this}}).call(this)}),jQuery(function(i){var t,e,n,o=i(window).width(),a=i(".js-humburger");i("#site-navigation").length?(n=i("#site-navigation"),t=i("#header_menu")):(t=(e=i('<nav id="site-navigation-mobile" class="main-navigation fixed"><div class="main-navigation-inner full"><div><ul id="header_menu" class="menu"></ul></div></div></nav>')).find("#header_menu"),console.log(t));var r,c,s=i("#top-menu"),l=i(".widget-mobile-menu ul"),d=i(".js-mobile-menu-placeholder"),s=s.clone(),l=l.clone();function u(){var t=i(".js-search-screen"),e=i(".js-search-screen-overlay"),n=i("body");i(".site-content").removeClass("blur"),t.removeClass("open"),e.removeClass("open"),setTimeout(function(){t.css("display","none"),e.css("display","none")},150),i(".js-search-icon").removeClass("close"),n.removeClass("scroll-locked"),n.css("padding-right","")}function h(){i(".entry-image--fullscreen").length&&i(".entry-image--fullscreen").css("height","calc(100vh - "+i(".entry-image--fullscreen").offset().top+"px)")}function p(){i(".entry-content iframe, .responsive-iframe iframe").each(function(){var t,e,n;i(this).parents(".not-responsive").length||i(this).width()<=i(this).parent().width()||(n=i(this).width(),t=i(this).height(),i(this).attr("data-original-w")?(n=i(this).attr("data-original-w"),t=i(this).attr("data-original-h")):(i(this).attr("data-original-w",n),i(this).attr("data-original-h",t)),n=(e=i(this).parent().width())/n,n=Math.round(t*n),i(this).css({width:e,height:n}))})}function v(){992<=i(window).width()?i("body").css("margin-bottom",i(".site-footer-container").outerHeight()):i("body").css("margin-bottom",0)}s.find("li").addClass("only-hamburger"),l.find("li").addClass("only-hamburger"),"undefined"!=typeof top_menu_mobile_position&&"bottom"===top_menu_mobile_position?t.append(s.html()):t.prepend(s.html()),t.append(l.html()),i("#site-navigation").length?d.append(n.clone().attr("id","site-navigation-mobile")):d.append(e.clone().attr("id","site-navigation-mobile")),a.on("click",function(){i(".js-search-screen").is(":visible")&&u(),a.toggleClass("open"),d.toggleClass("open").find("#site-navigation-mobile").slideToggle()}),"undefined"!=typeof fixed_main_menu&&"yes"===fixed_main_menu&&(i("#site-navigation").clone().attr("id","").addClass("site-navigation-fixed").appendTo("body"),i(".site-navigation-fixed").hide(),i(window).on("scroll",function(){i(this).scrollTop()>i(".site-header").outerHeight()&&974<i(window).width()?(i(".site-navigation-fixed").show(),i(".site-navigation-fixed").css("width",i("#site-navigation").outerWidth()),i(".site-navigation-fixed").css("left",i("#site-navigation").offset().left)):i(".site-navigation-fixed").hide()}),i(window).on("resize",function(){i(".site-navigation-fixed").is(":visible")&&(i(".site-navigation-fixed").css("width",i("#site-navigation").outerWidth()),i(".site-navigation-fixed").css("left",i("#site-navigation").offset().left))})),991<o&&i(".main-navigation, .top-menu").each(function(){var t,e=i(this);e.find(".menu-item a, .menu-item .removed-link").on("mouseenter",function(){i(this).parent().parent().find(".sub-menu:visible").hide(),i(this).parent().find(".sub-menu:first").show(),clearTimeout(t)}),e.on({mouseenter:function(){clearTimeout(t)},mouseleave:function(){t=setTimeout(function(){e.find(".sub-menu").slideUp(200)},400)}})}),o<=991&&(i(".main-navigation").on("click",".menu-item-has-children",function(t){"A"!==t.target.nodeName&&"a"!==t.target.nodeName&&(t.stopPropagation(),i(this).toggleClass("open"),i(this).find(".sub-menu:first").slideToggle())}),i("#footer_menu").on("click",".menu-item-has-children",function(t){"A"!==t.target.nodeName&&"a"!==t.target.nodeName&&(t.stopPropagation(),i(this).toggleClass("open"),i(this).find(".sub-menu:first").slideToggle())})),i(".widget_nav_menu").on("click",".menu-item-has-children",function(t){"A"!==t.target.nodeName&&"a"!==t.target.nodeName&&(t.stopPropagation(),i(this).toggleClass("open"),i(this).find(".sub-menu:first").slideToggle())}),i(".js-search-icon").on("click",function(){i("#site-navigation-mobile").is(":visible")&&(a.toggleClass("open"),d.find("#site-navigation-mobile").slideToggle());var t=i(".js-search-screen"),e=i(".js-search-screen-overlay"),n=i(this),o=i("body");t.is(":visible")?u():(i(".site-content").addClass("blur"),e.css("display","block"),t.css("display","block"),t.find(".search-field").focus(),setTimeout(function(){t.addClass("open"),e.addClass("open")},10),n.addClass("close"),n=o.outerWidth(),o.addClass("scroll-locked"),n=o.outerWidth()-n,o.css("padding-right",n+"px"))}),i(".js-search-screen-overlay").on("click",function(){u()}),h(),setTimeout(h,300),setTimeout(h,1e3),1==settings_array.lightbox_display&&(i(".entry-content").find("a:has(img)").wpshoplightbox(),i(document).find("a:has(img.lightbox-open)").wpshoplightbox()),i(".entry-content table").wrap(i("<div class='table-responsive' />")),jQuery(document).on("click",".js-link",function(t){var e=jQuery(this).data("href");"http"===e.substring(0,4)||"viber"===e.substring(0,5)||"http"===(n=function(t){if("undefined"==typeof window)return new Buffer(t,"base64").toString("utf-8");if(void 0!==window.atob)return decodeURIComponent(escape(window.atob(t)));var e,n,o,i,a,r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",c=0,s=0,l="",d=[];if(!t)return t;for(t+="";e=(a=r.indexOf(t.charAt(c++))<<18|r.indexOf(t.charAt(c++))<<12|(o=r.indexOf(t.charAt(c++)))<<6|(i=r.indexOf(t.charAt(c++))))>>16&255,n=a>>8&255,a=255&a,d[s++]=64===o?String.fromCharCode(e):64===i?String.fromCharCode(e,n):String.fromCharCode(e,n,a),c<t.length;);return l=d.join(""),decodeURIComponent(escape(l.replace(/\0+$/,"")))}(e)).substring(0,4)&&(e=n);var n="self";"blank"!==jQuery(this).data("target")&&"_blank"!==jQuery(this).data("target")&&"blank"!==jQuery(this).attr("target")&&"_blank"!==jQuery(this).attr("target")||(n="blank"),"blank"===n?window.open(e):document.location.href=e}),p(),i(window).on("resize",function(){p()}),992<=o&&1==settings_array.sidebar_fixed&&(r=i(".js-sticky-sidebar"),c=r.height(),r.stick_in_parent({offset_top:20}),i(window).on("resize",function(t){return i(document.body).trigger("sticky_kit:recalc")}),setInterval(function(){c!==r.height()&&(c=r.height(),i(document.body).trigger("sticky_kit:recalc"))},1e3)),i(".site-footer-container").length&&!i(".site-footer-container").hasClass("site-footer-container--disable-sticky")&&(v(),i(window).on("resize",function(){v()}),setInterval(v,1e3))}),jQuery(function(e){e(document).on("click",".js-table-of-contents-hide",function(){var t=e(this).parents(".table-of-contents");t.toggleClass("open"),t.hasClass("open")?(n("wpshop_toc_hide","",-1),e(".js-table-of-contents-list").slideDown()):(n("wpshop_toc_hide","hide"),e(".js-table-of-contents-list").slideUp())}),e(document).on("click",'.table-of-contents a[href*="#"]',function(t){var o=e(this).parents(".entry-content").find(this.hash);e("html,body").stop().animate({scrollTop:o.offset().top-100},{duration:500,step:function(t,e){var n=o.offset().top-100;e.end!==n&&(e.end=n)}}),t.preventDefault()})})});