!function(t){"function"==typeof define&&define.amd?define("scripts",t):t()}((function(){"use strict";function t(t,e,n){var o;if(n){var i=new Date;i.setTime(i.getTime()+24*n*60*60*1e3),o="; expires="+i.toGMTString()}else o="";document.cookie=encodeURIComponent(t)+"="+encodeURIComponent(e)+o+"; path=/"}function e(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.addEventListener("DOMContentLoaded",(function(){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(){t(this).scrollTop()>100?e<991?"on"===n.data("mob")&&n.fadeIn():n.fadeIn():n.fadeOut()}))})),jQuery((function(t){t(document).on("click",".js-spoiler-box-title",(function(){t(this).toggleClass("active").next().slideToggle()}))})),function(t,e,n){n&&(n.fn.wpshoplightbox=function(o){var i=n(this),a=n('<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>');i.on("click",(function(){var o=n(this).attr("href"),i=e.createElement("img"),r=n(i);if(o.match(/(\.jpg|\.gif|\.jpeg|\.png|\.webp|\.svg)$/i))return r.attr("src",o),a.appendTo("body")[0],n("head").append('<style id="wpshoplightbox-scroll-style" type="text/css">.wpshoplightbox-scroll{margin-right:'+(t.innerWidth-e.documentElement.clientWidth)+"px;}</style>"),n("body").addClass("wpshoplightbox-scroll"),a.find(".wpshoplightbox-image").html(r),setTimeout((function(){a.addClass("wpshoplightbox--open")}),10),!1})),n(e).on("click",".wpshoplightbox-body, .wpshoplightbox-close",(function(){n(e).find(".wpshoplightbox-container").removeClass("wpshoplightbox--open"),setTimeout((function(){n(e).find(".wpshoplightbox-container").remove()}),400),n("body").removeClass("wpshoplightbox-scroll"),n("#wpshoplightbox-scroll-style").remove()}))})}(window,document,jQuery),jQuery((function(t){var e=window.wpshop_ajax||window.wps_ajax;void 0!==e?(t(document).on("click",".js-star-rating-item",(function(){var n=t(this),o=n.parent(),i=n.data("score"),a=o.data("post-id"),r=o.data("rating-count"),s=o.data("rating-sum"),c=o.data("rating-value");if(!o.hasClass("disabled")){o.addClass("disabled process");var l={action:"wpshop_star_rating_submit",nonce:e.nonce,post_id:a,score:i,rating_count:r,rating_sum:s,rating_value:c};jQuery.post(e.url,l,(function(e){if(e.success){r++,c=((s+=i)/r).toFixed(2);var a="assessment",l=t("html").attr("lang");"undefined"!=typeof rating_count_text_filter?a=rating_count_text_filter:("ru-RU"===l&&(a=d(r,["оценка","оценки","оценок"])),"uk"===l&&(a=d(r,["оцінка","оцінки","оцінок"]))),n.parent().parent().find(".star-rating-text").html("<em>(<strong>"+r+"</strong> "+a+", "+settings_array.rating_text_average+" <strong>"+c+"</strong> "+settings_array.rating_text_from+" <strong>5</strong>)</em></div>")}else e.data,console.log(e);o.removeClass("process")}))}function d(t,e){return e[t%100>4&&t%100<20?2:[2,0,1,1,1,2][t%10<5?t%10:5]]}})),t(".js-star-rating-item").on({mouseenter:function(){t(this).parent().hasClass("disabled")||(t(this).parent().addClass("hover"),t(this).addClass("hover").prevAll().addClass("hover"))},mouseleave:function(){t(this).parent().hasClass("disabled")||(t(this).parent().removeClass("hover"),t(".js-star-rating-item").removeClass("hover"))}})):console.error("Unable to find ajax parameters for rating scrips")})),jQuery(document).ready((function(t){function e(e){if(0!==e.length){var n=t(window).scrollTop(),o=n+t(window).height();if(t("body").is(":animated"))for(console.log("animated"),s=0;s<e.length;s++)e[s].curTopOffset<=n&&(console.log("body anim"),t(e[s]).removeClass("w-animate w-animate_no-hover"));!function(e,n){if(e.length)for(var o=0;o<e.length;o++){var a=i(t(e[o]),n);e[o].curTopOffset<a&&(t(e[o]).removeClass("w-animate--wait"),t(e[o]).addClass("w-animate--started"))}}(e,o)}}function n(){var n=t(".w-animate");function r(){!function(e){for(var n=0;n<e.length;n++)e[n].curTopOffset=t(e[n]).offset().top}(n)}!function(e){var n=t(window).scrollTop(),a=n+t(window).height();e.each((function(){var e=t(this),r=e.offset().top;r<n-450&&e.removeClass("w-animate w-animate_no-hover");var s=i(e,a);!function(t,e,n){var i=t.attr("data-animate-style"),a=t.attr("data-animate-distance");0!==a&&""!==a&&(void 0===a&&(a="40"),a=a.replace("px",""),t.css({"transition-duration":"0s","transition-delay":"0s"}),"fadeinup"===i&&t.css("transform","translate3d(0,"+a+"px,0)"),"fadeindown"===i&&t.css("transform","translate3d(0,-"+a+"px,0)"),"fadeinleft"===i&&t.css("transform","translate3d("+a+"px,0,0)"),"fadeinright"===i&&t.css("transform","translate3d(-"+a+"px,0,0)"),o(t,e,n),t.css({"transition-duration":"","transition-delay":""}));var r=t.attr("data-animate-scale");0!==r&&""!==r&&(t.css({"transition-duration":"0s","transition-delay":"0s"}),t.css("transform","scale("+r+")"),o(t,e,n),t.css({"transition-duration":"","transition-delay":""}));var s=t.attr("data-animate-delay");0!==s&&""!==s&&(void 0===s&&(s=Math.random()/4),t.css("transition-delay",s+"s"));var c=t.attr("data-animate-duration");void 0===c&&(c="1.5");0!==c&&""!==c&&t.css("transition-duration",c+"s")}(e,r,a),r<s&&(e.addClass("w-animate--started"),e.is('[data-animate-style="animatednumber"]')),r>=s&&e.addClass("w-animate--wait")}))}(n),n=n.filter(".w-animate--wait"),r(),t(window).bind("resize",a(r,200)),t(window).bind("scroll",a((function(){e(n)}),200))}function o(t,e,n){if(e<n+450)return t[0].offsetHeight}function i(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-1*(n=n.replace("px",""))),o}function a(t,e,n){var o,i;return e||(e=250),function(){var a=n||this,r=+new Date,s=arguments;o&&r<o+e?(clearTimeout(i),i=setTimeout((function(){o=r,t.apply(a,s)}),e)):(o=r,t.apply(a,s))}}var r,c,l,d;r=window.navigator.userAgent,c=r.indexOf("MSIE"),l="",d=!1,c>0&&(8!==(l=parseInt(r.substring(c+5,r.indexOf(".",c))))&&9!==l||(d=!0)),!d&&t(window).width()>=980&&!window.isSearchBot&&!window.isMobile&&t(window).width()>=980?setTimeout((function(){n()}),300):t(".w-animate").removeClass("w-animate")})),jQuery((function(t){"undefined"!=typeof wpshop_views_counter_params&&t.ajax({type:"GET",url:wpshop_views_counter_params.url,data:"id="+wpshop_views_counter_params.post_id+"&action=wpshop_views_counter"}).done((function(e){e.success&&e.data.forEach((function(e){var n,o,i;n=e.id,o=e.count,(i=t('.js-views-count[data-post_id="'+n+'"]')).length&&i.text(o)}))}))})),function(){function t(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function n(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 o(t,e,o){return e&&n(t.prototype,e),o&&n(t,o),t}function i(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&&r(t,e)}function a(t){return(a=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function r(t,e){return r=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},r(t,e)}function s(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function c(t,e){return!e||"object"!=typeof e&&"function"!=typeof e?s(t):e}function l(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(e||(e=Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t)?Array.from(t):void 0),!(t=e))throw new TypeError("Invalid attempt to spread non-iterable instance");return t}var d=function(){function e(){t(this,e),this.handlers={}}return o(e,[{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)}}]),e}(),u=function(){function e(){t(this,e),this.events=new d,this.callback=function(){},this.updateInstanceId()}return o(e,[{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 s=Math.round((window.outerWidth||window.document.documentElement.offsetWidth)/2-a/2);a="width=".concat(a,",height=").concat(r),e="left=".concat(s,",top=").concat(e);var c="".concat(a,",").concat(e,",location=no,toolbar=no,menubar=no"),l=window.open(o,i,c),d=setInterval((function(){l.closed&&(n.callback(t,{share_url:o,windowTitle:i,windowOptions:c},l),clearInterval(d))}),10);return l}},{key:"setShareCallback",value:function(t){this.callback=t}},{key:"createEvents",value:function(t){var e=this;l(t).forEach((function(t){var n=e.getPreparedData(t);e.events.addEventListener(t,"click.".concat(e.instanceId),(function(t){return e.eventHandler.call(e,t,n)}))}))}},{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()}}]),e}(),h=function(n){function r(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:document.location.href,n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:document.title,o=2<arguments.length&&void 0!==arguments[2]?arguments[2]:document.querySelector('link[rel="apple-touch-icon"]');t(this,r);var i=c(this,a(r).call(this));return i.url=encodeURIComponent(e),i.title=encodeURIComponent(n),i.image=o?encodeURIComponent(o.href):"",i.createEvents=i.createEvents.bind(s(i)),i}return i(r,n),o(r,[{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 t=document.createElement("script"),n=document.querySelectorAll('[data-counter="vkontakte"]'),o="https://vk.com/share.php?act=count&index=1&url=".concat(this.url);window.VK=Object.assign({},{Share:{}},window.VK),0<n.length&&(window.VK.Share.count=function(o,i){l(n).forEach((function(t){t.innerHTML=e(i)})),null!==t.parentNode&&t.parentNode.removeChild(t)},t.src=o,document.body.appendChild(t))}}]),r}(u),p=function(e){function n(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:document.location.href,o=1<arguments.length&&void 0!==arguments[1]?arguments[1]:document.title;t(this,n);var i=c(this,a(n).call(this));return i.url=encodeURIComponent(e),i.title=encodeURIComponent(o),i.createEvents=i.createEvents.bind(s(i)),i}return i(n,e),o(n,[{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){l(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))}}]),n}(u),v=function(n){function r(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:document.location.href,n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:document.title;t(this,r);var o=c(this,a(r).call(this));return o.url=encodeURIComponent(e),o.title=encodeURIComponent(n),o.createEvents=o.createEvents.bind(s(o)),o}return i(r,n),o(r,[{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 t=document.createElement("script"),n=document.querySelectorAll('[data-counter="odnoklassniki"]'),o="https://connect.ok.ru/dk?st.cmd=extLike&uid=1&ref=".concat(this.url);window.ODKL={},0<n.length&&(window.ODKL.updateCount=function(o,i){l(n).forEach((function(t){t.innerHTML=e(i)})),null!==t.parentNode&&t.parentNode.removeChild(t)},t.src=o,document.body.appendChild(t))}}]),r}(u),m=function(n){function r(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:document.location.href,n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:document.title,o=2<arguments.length&&void 0!==arguments[2]?arguments[2]:document.querySelector('meta[name="description"]'),i=3<arguments.length&&void 0!==arguments[3]?arguments[3]:document.querySelector('link[rel="apple-touch-icon"]');t(this,r);var l=c(this,a(r).call(this));return l.url=encodeURIComponent(e),l.title=encodeURIComponent(n),l.description=o?encodeURIComponent(o.content):"",l.image=i?encodeURIComponent(i.href):"",l.createEvents=l.createEvents.bind(s(l)),l}return i(r,n),o(r,[{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"),n=encodeURIComponent(this.url.replace(/^.*?:\/\//,"")),o=("goodshare_"+Math.random()).replace(".",""),i=document.querySelectorAll('[data-counter="moimir"]');0<i.length&&(window[o]=function(n){l(i).forEach((function(t){t.innerHTML=e(n.share_mm)})),null!==t.parentNode&&t.parentNode.removeChild(t)},t.src="https://appsmail.ru/share/count/"+n+"?callback="+o,document.body.appendChild(t))}}]),r}(u),f=function(n){function r(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:document.location.href,n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:document.title,o=2<arguments.length&&void 0!==arguments[2]?arguments[2]:document.querySelector('meta[name="description"]');t(this,r);var i=c(this,a(r).call(this));return i.url=encodeURIComponent(e),i.title=encodeURIComponent(n),i.description=o?encodeURIComponent(o.content):"",i.createEvents=i.createEvents.bind(s(i)),i}return i(r,n),o(r,[{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"),n=("goodshare_"+Math.random()).replace(".",""),o=document.querySelectorAll('[data-counter="tumblr"]'),i="https://api.tumblr.com/v2/share/stats?url=".concat(this.url,"&callback=").concat(n);0<o.length&&(window[n]=function(n){l(o).forEach((function(t){t.innerHTML=e(n.response.note_count)})),null!==t.parentNode&&t.parentNode.removeChild(t)},t.src=i,document.body.appendChild(t))}}]),r}(u),w=function(e){function n(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:document.location.href,o=1<arguments.length&&void 0!==arguments[1]?arguments[1]:document.querySelector('meta[name="description"]'),i=2<arguments.length&&void 0!==arguments[2]?arguments[2]:document.querySelector('link[rel="apple-touch-icon"]');t(this,n);var r=c(this,a(n).call(this));return r.url=encodeURIComponent(e),r.description=o?encodeURIComponent(o.content):"",r.image=i?encodeURIComponent(i.href):"",r.createEvents=r.createEvents.bind(s(r)),r}return i(n,e),o(n,[{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){l(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))}}]),n}(u),g=function(e){function n(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:document.location.href,o=1<arguments.length&&void 0!==arguments[1]?arguments[1]:document.title;t(this,n);var i=c(this,a(n).call(this));return i.url=encodeURIComponent(e),i.title=encodeURIComponent(o),i.createEvents=i.createEvents.bind(s(i)),i}return i(n,e),o(n,[{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)}}]),n}(u),b=function(e){function n(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:document.location.href,o=1<arguments.length&&void 0!==arguments[1]?arguments[1]:document.title;t(this,n);var i=c(this,a(n).call(this));return i.url=encodeURIComponent(e),i.title=encodeURIComponent(o),i.createEvents=i.createEvents.bind(s(i)),i}return i(n,e),o(n,[{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){l(n).forEach((function(t){t.innerHTML=e?e.shares:""})),t.parentNode.removeChild(t)},t.src=o,document.body.appendChild(t))}}]),n}(u),y=function(e){function n(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:document.location.href,o=1<arguments.length&&void 0!==arguments[1]?arguments[1]:document.title;t(this,n);var i=c(this,a(n).call(this));return i.url=encodeURIComponent(e),i.title=encodeURIComponent(o),i.createEvents=i.createEvents.bind(s(i)),i}return i(n,e),o(n,[{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)}}]),n}(u),k=function(e){function n(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:document.location.href,o=1<arguments.length&&void 0!==arguments[1]?arguments[1]:document.title;t(this,n);var i=c(this,a(n).call(this));return i.url=encodeURIComponent(e),i.title=encodeURIComponent(o),i.createEvents=i.createEvents.bind(s(i)),i}return i(n,e),o(n,[{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)}}]),n}(u),C=function(e){function n(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:document.location.href,o=1<arguments.length&&void 0!==arguments[1]?arguments[1]:document.title,i=2<arguments.length&&void 0!==arguments[2]?arguments[2]:document.querySelector('meta[name="description"]');t(this,n);var r=c(this,a(n).call(this));return r.url=encodeURIComponent(e),r.title=encodeURIComponent(o),r.description=i?encodeURIComponent(i.content):"",r.createEvents=r.createEvents.bind(s(r)),r}return i(n,e),o(n,[{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)}}]),n}(u),I=function(e){function n(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:document.location.href,o=1<arguments.length&&void 0!==arguments[1]?arguments[1]:document.title,i=2<arguments.length&&void 0!==arguments[2]?arguments[2]:document.querySelector('meta[name="description"]');t(this,n);var r=c(this,a(n).call(this));return r.url=encodeURIComponent(e),r.title=encodeURIComponent(o),r.description=i?encodeURIComponent(i.content):"",r.createEvents=r.createEvents.bind(s(r)),r}return i(n,e),o(n,[{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)}}]),n}(u),_=function(e){function n(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:document.location.href,o=1<arguments.length&&void 0!==arguments[1]?arguments[1]:document.title;t(this,n);var i=c(this,a(n).call(this));return i.url=encodeURIComponent(e),i.title=encodeURIComponent(o),i.createEvents=i.createEvents.bind(s(i)),i}return i(n,e),o(n,[{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)}}]),n}(u),U=function(e){function n(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:document.location.href,o=1<arguments.length&&void 0!==arguments[1]?arguments[1]:document.title;t(this,n);var i=c(this,a(n).call(this));return i.url=encodeURIComponent(e),i.title=encodeURIComponent(o),i.createEvents=i.createEvents.bind(s(i)),i}return i(n,e),o(n,[{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)}}]),n}(u),R=function(e){function n(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:document.location.href;t(this,n);var o=c(this,a(n).call(this));return o.url=encodeURIComponent(e),o.createEvents=o.createEvents.bind(s(o)),o}return i(n,e),o(n,[{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)}}]),n}(u),E=function(e){function n(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:document.location.href;t(this,n);var o=c(this,a(n).call(this));return o.url=encodeURIComponent(e),o.createEvents=o.createEvents.bind(s(o)),o}return i(n,e),o(n,[{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)}}]),n}(u),x=function(e){function n(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:document.location.href,o=1<arguments.length&&void 0!==arguments[1]?arguments[1]:document.title;t(this,n);var i=c(this,a(n).call(this));return i.url=encodeURIComponent(e),i.title=encodeURIComponent(o),i.createEvents=i.createEvents.bind(s(i)),i}return i(n,e),o(n,[{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)}}]),n}(u),S=function(e){function n(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:document.location.href,o=1<arguments.length&&void 0!==arguments[1]?arguments[1]:document.title;t(this,n);var i=c(this,a(n).call(this));return i.url=encodeURIComponent(e),i.title=encodeURIComponent(o),i.createEvents=i.createEvents.bind(s(i)),i}return i(n,e),o(n,[{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)}}]),n}(u),T=function(e){function n(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:document.location.href,o=1<arguments.length&&void 0!==arguments[1]?arguments[1]:document.title;t(this,n);var i=c(this,a(n).call(this));return i.url=encodeURIComponent(e),i.title=encodeURIComponent(o),i.createEvents=i.createEvents.bind(s(i)),i}return i(n,e),o(n,[{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)}}]),n}(u),W=function(e){function n(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:document.location.href,o=1<arguments.length&&void 0!==arguments[1]?arguments[1]:document.title;t(this,n);var i=c(this,a(n).call(this));return i.url=encodeURIComponent(e),i.title=encodeURIComponent(o),i.createEvents=i.createEvents.bind(s(i)),i}return i(n,e),o(n,[{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)}}]),n}(u),A=function(e){function n(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:document.location.href,o=1<arguments.length&&void 0!==arguments[1]?arguments[1]:document.title;t(this,n);var i=c(this,a(n).call(this));return i.url=encodeURIComponent(e),i.title=encodeURIComponent(o),i.createEvents=i.createEvents.bind(s(i)),i}return i(n,e),o(n,[{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)}}]),n}(u),j=function(e){function n(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:document.location.href,o=1<arguments.length&&void 0!==arguments[1]?arguments[1]:document.title,i=2<arguments.length&&void 0!==arguments[2]?arguments[2]:document.querySelector('meta[name="description"]');t(this,n);var r=c(this,a(n).call(this));return r.url=encodeURIComponent(e),r.title=encodeURIComponent(o),r.description=i?encodeURIComponent(i.content):"",r.createEvents=r.createEvents.bind(s(r)),r}return i(n,e),o(n,[{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)}}]),n}(u),H=function(e){function n(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:document.location.href;t(this,n);var o=c(this,a(n).call(this));return o.url=encodeURIComponent(e),o.createEvents=o.createEvents.bind(s(o)),o}return i(n,e),o(n,[{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)}}]),n}(u),q=function(e){function n(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:document.location.href,o=1<arguments.length&&void 0!==arguments[1]?arguments[1]:document.title,i=2<arguments.length&&void 0!==arguments[2]?arguments[2]:document.querySelector('meta[name="description"]'),r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:document.querySelector('link[rel="apple-touch-icon"]');t(this,n);var l=c(this,a(n).call(this));return l.url=encodeURIComponent(e),l.title=encodeURIComponent(o),l.description=i?encodeURIComponent(i.content):"",l.image=r?encodeURIComponent(r.href):"",l.createEvents=l.createEvents.bind(s(l)),l}return i(n,e),o(n,[{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)}}]),n}(u),P=function(e){function n(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:document.location.href,o=1<arguments.length&&void 0!==arguments[1]?arguments[1]:document.title,i=2<arguments.length&&void 0!==arguments[2]?arguments[2]:document.querySelector('meta[name="description"]');t(this,n);var r=c(this,a(n).call(this));return r.url=encodeURIComponent(e),r.title=encodeURIComponent(o),r.description=i?encodeURIComponent(i.content):"",r.createEvents=r.createEvents.bind(s(r)),r}return i(n,e),o(n,[{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)}}]),n}(u),D=function(e){function n(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:document.location.href,o=1<arguments.length&&void 0!==arguments[1]?arguments[1]:document.title;t(this,n);var i=c(this,a(n).call(this));return i.url=encodeURIComponent(e),i.title=encodeURIComponent(o),i.createEvents=i.createEvents.bind(s(i)),i}return i(n,e),o(n,[{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)}}]),n}(u),M=function(e){function n(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:document.location.href,o=1<arguments.length&&void 0!==arguments[1]?arguments[1]:document.title;t(this,n);var i=c(this,a(n).call(this));return i.url=encodeURIComponent(e),i.title=encodeURIComponent(o),i.createEvents=i.createEvents.bind(s(i)),i}return i(n,e),o(n,[{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)}}]),n}(u),O=function(e){function n(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:document.location.href;t(this,n);var o=c(this,a(n).call(this));return o.url=encodeURIComponent(e),o.createEvents=o.createEvents.bind(s(o)),o}return i(n,e),o(n,[{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)}}]),n}(u),N=function(e){function n(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:document.location.href;t(this,n);var o=c(this,a(n).call(this));return o.url=encodeURIComponent(e),o.createEvents=o.createEvents.bind(s(o)),o}return i(n,e),o(n,[{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)}}]),n}(u),L=function(e){function n(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:document.location.href;t(this,n);var o=c(this,a(n).call(this));return o.url=encodeURIComponent(e),o.createEvents=o.createEvents.bind(s(o)),o}return i(n,e),o(n,[{key:"getPreparedData",value:function(t){var e=t.dataset.url?encodeURIComponent(t.dataset.url):this.url;t=t.dataset.rhash?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)}}]),n}(u),Q=function(e){function n(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:document.location.href;t(this,n);var o=c(this,a(n).call(this));return o.url=encodeURIComponent(e),o.createEvents=o.createEvents.bind(s(o)),o}return i(n,e),o(n,[{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)}}]),n}(u),z=function(e){function n(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:document.location.href;t(this,n);var o=c(this,a(n).call(this));return o.url=encodeURIComponent(e),o.createEvents=o.createEvents.bind(s(o)),o}return i(n,e),o(n,[{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)}}]),n}(u),B=function(e){function n(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:document.location.href;t(this,n);var o=c(this,a(n).call(this));return o.url=encodeURIComponent(e),o.createEvents=o.createEvents.bind(s(o)),o}return i(n,e),o(n,[{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)}}]),n}(u);u=function(e){function n(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:document.location.href;t(this,n);var o=c(this,a(n).call(this));return o.url=encodeURIComponent(e),o.createEvents=o.createEvents.bind(s(o)),o}return i(n,e),o(n,[{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)}}]),n}(u);var K=[h,p,v,m,C,f,w,g,b,y,k,I,_,U,S,R,E,x,T,W,A,j,H,q,P,D,M,O,N,L,Q,z,B,u];h=function(){function e(){t(this,e),this.providers=K,this.getProviders()}return o(e,[{key:"setShareCallback",value:function(t){this.providers=this.providers.map((function(e){return e.setShareCallback(t)}))}},{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()}))}}]),e}(),window._goodshare=new h}(),jQuery((function(t){(function(){var t,e;t=this.jQuery||window.jQuery,e=t(window),t.fn.stick_in_parent=function(n){var o,i,a,r,s,c,l,d,u,h,p;for(null==n&&(n={}),p=n.sticky_class,s=n.inner_scrolling,h=n.recalc_every,u=n.parent,d=n.offset_top,l=n.spacer,i=n.bottoming,null==d&&(d=0),null==u&&(u=void 0),null==s&&(s=!0),null==p&&(p="is_stuck"),o=t(document),null==i&&(i=!0),a=function(n,a,r,c,v,m,f,w){var g,b,y,k,C,I,_,U,R,E,x,S;if(!n.data("sticky_kit")){if(n.data("sticky_kit",!0),C=o.height(),_=n.parent(),null!=u&&(_=_.closest(u)),!_.length)throw"failed to find stick parent";if(g=y=!1,(x=null!=l?l&&n.closest(l):t("<div />"))&&x.css("position",n.css("position")),U=function(){var t,e,i;if(!w&&(C=o.height(),t=parseInt(_.css("border-top-width"),10),e=parseInt(_.css("padding-top"),10),a=parseInt(_.css("padding-bottom"),10),r=_.offset().top+t+e,c=_.height(),y&&(g=y=!1,null==l&&(n.insertAfter(x),x.detach()),n.css({position:"",top:"",width:"",bottom:""}).removeClass(p),i=!0),v=n.offset().top-(parseInt(n.css("margin-top"),10)||0)-d,m=n.outerHeight(!0),f=n.css("float"),x&&x.css({width:n.outerWidth(!0),height:m,display:n.css("display"),"vertical-align":n.css("vertical-align"),float:f}),i))return S()},U(),m!==c)return k=void 0,I=d,E=h,S=function(){var t,u,b,R;if(!w&&(b=!1,null!=E&&(0>=--E&&(E=h,U(),b=!0)),b||o.height()===C||U(),b=e.scrollTop(),null!=k&&(u=b-k),k=b,y?(i&&(R=b+m+I>c+r,g&&!R&&(g=!1,n.css({position:"fixed",bottom:"",top:I}).trigger("sticky_kit:unbottom"))),b<v&&(y=!1,I=d,null==l&&("left"!==f&&"right"!==f||n.insertAfter(x),x.detach()),t={position:"",width:"",top:""},n.css(t).removeClass(p).trigger("sticky_kit:unstick")),s&&(t=e.height(),m+d>t&&!g&&(I-=u,I=Math.max(t-m,I),I=Math.min(d,I),y&&n.css({top:I+"px"})))):b>v&&(y=!0,(t={position:"fixed",top:I}).width="border-box"===n.css("box-sizing")?n.outerWidth()+"px":n.width()+"px",n.css(t).addClass(p),null==l&&(n.after(x),"left"!==f&&"right"!==f||x.append(n)),n.trigger("sticky_kit:stick")),y&&i&&(null==R&&(R=b+m+I>c+r),!g&&R)))return g=!0,"static"===_.css("position")&&_.css({position:"relative"}),n.css({position:"absolute",bottom:a,top:"auto"}).trigger("sticky_kit:bottom")},R=function(){return U(),S()},b=function(){if(w=!0,e.off("touchmove",S),e.off("scroll",S),e.off("resize",R),t(document.body).off("sticky_kit:recalc",R),n.off("sticky_kit:detach",b),n.removeData("sticky_kit"),n.css({position:"",bottom:"",top:"",width:""}),_.position("position",""),y)return null==l&&("left"!==f&&"right"!==f||n.insertAfter(x),x.remove()),n.removeClass(p)},e.on("touchmove",S),e.on("scroll",S),e.on("resize",R),t(document.body).on("sticky_kit:recalc",R),n.on("sticky_kit:detach",b),setTimeout(S,0)}},r=0,c=this.length;r<c;r++)n=this[r],a(t(n));return this}}).call(this)})),jQuery((function(t){var e=t(window).width();"undefined"!=typeof fixed_header&&"yes"===fixed_header&&(t("#masthead").addClass("site-header-fixed"),t(".site-header-fixed, .main-navigation").css("margin-bottom","0"),t(".card-slider-container, .card-slider-container+.site-content, .mobile-menu-placeholder+.site-content").css("margin-top","0"),t(".site-header-fixed+.header-separator").css("margin-top",t("#masthead").outerHeight()),t(window).on("resize",(function(){t(".site-header-fixed+.header-separator").css("margin-top",t("#masthead").outerHeight())})));var n,o,i,a=t(".js-humburger");t("#site-navigation").length?(i=t("#site-navigation"),n=t("#header_menu")):(n=(o=t('<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(n));var r=t("#top-menu"),s=t(".widget-mobile-menu ul"),c=t(".js-mobile-menu-placeholder"),l=r.clone(),d=s.clone();if(l.find("li").addClass("only-hamburger"),d.find("li").addClass("only-hamburger"),void 0===window.top_menu_mobile_position&&(window.top_menu_mobile_position="prepend"),"bottom"===window.top_menu_mobile_position&&(window.top_menu_mobile_position="append"),"append"===window.top_menu_mobile_position?n.append(l.html()):"prepend"===window.top_menu_mobile_position&&n.prepend(l.html()),n.append(d.html()),t("#site-navigation").length?c.append(i.clone().attr("id","site-navigation-mobile")):c.append(o.clone().attr("id","site-navigation-mobile")),a.on("click",(function(){t(".js-search-screen").is(":visible")&&h(),a.toggleClass("open"),c.toggleClass("open").find("#site-navigation-mobile").slideToggle()})),e<=991&&t("#masthead").hasClass("site-header-fixed")){var u=t("#masthead").outerHeight();t("body").hasClass("admin-bar")&&(u+=32),t("#site-navigation-mobile").css({position:"fixed",top:u,left:0,bottom:0,width:"100%","z-index":"99999",overflow:"auto"})}function h(){var e=t(".js-search-screen"),n=t(".js-search-screen-overlay"),o=t("body");t(".site-content").removeClass("blur"),e.removeClass("open"),n.removeClass("open"),setTimeout((function(){e.css("display","none"),n.css("display","none")}),150),t(".js-search-icon").removeClass("close"),o.removeClass("scroll-locked"),o.css("padding-right","")}function p(){t(".entry-image--fullscreen").length&&t(".entry-image--fullscreen").css("height","calc(100vh - "+t(".entry-image--fullscreen").offset().top+"px)")}function v(){t(".entry-content iframe, .responsive-iframe iframe").each((function(){if(!t(this).parents(".wp-has-aspect-ratio").length&&!(t(this).parents(".not-responsive").length||t(this).width()<=t(this).parent().width())){var e=t(this).width(),n=t(this).height();t(this).attr("data-original-w")?(e=t(this).attr("data-original-w"),n=t(this).attr("data-original-h")):(t(this).attr("data-original-w",e),t(this).attr("data-original-h",n));var o=t(this).parent().width(),i=o/e,a=Math.round(n*i);t(this).css({width:o,height:a})}}))}if("undefined"!=typeof fixed_main_menu&&"yes"===fixed_main_menu&&(t("#site-navigation").clone().attr("id","").addClass("site-navigation-fixed").appendTo("body"),t(".site-navigation-fixed").hide(),t(window).on("scroll",(function(){if(t(this).scrollTop()>t(".site-header").outerHeight()&&t(window).width()>974){if(t(".site-navigation-fixed").show(),t(".site-navigation-fixed").css("width",t("#site-navigation").outerWidth()),t(".site-navigation-fixed").css("left",t("#site-navigation").offset().left),t("#masthead").hasClass("site-header-fixed")){var e=t("#masthead").outerHeight();t("body").hasClass("admin-bar")&&(e+=32),t(".site-navigation-fixed").css("top",e)}}else t(".site-navigation-fixed").hide()})),t(window).on("resize",(function(){if(t(".site-navigation-fixed").is(":visible")&&(t(".site-navigation-fixed").css("width",t("#site-navigation").outerWidth()),t(".site-navigation-fixed").css("left",t("#site-navigation").offset().left),t("#masthead").hasClass("site-header-fixed"))){var e=t("#masthead").outerHeight();t("body").hasClass("admin-bar")&&(e+=32),t(".site-navigation-fixed").css("top",e)}}))),e>991&&t(".main-navigation, .top-menu").each((function(){var e,n=t(this);n.find(".menu-item a, .menu-item .removed-link").on("mouseenter",(function(){t(this).parent().parent().find(".sub-menu:visible").hide(),t(this).parent().find(".sub-menu:first").show(),clearTimeout(e)})),n.on({mouseenter:function(){clearTimeout(e)},mouseleave:function(){e=setTimeout((function(){n.find(".sub-menu").slideUp(200)}),400)}})})),e<=991&&(t(".main-navigation").on("click",".menu-item-has-children",(function(e){"A"!==e.target.nodeName&&"a"!==e.target.nodeName&&(e.stopPropagation(),t(this).toggleClass("open"),t(this).find(".sub-menu:first").slideToggle())})),t("#footer_menu").on("click",".menu-item-has-children",(function(e){"A"!==e.target.nodeName&&"a"!==e.target.nodeName&&(e.stopPropagation(),t(this).toggleClass("open"),t(this).find(".sub-menu:first").slideToggle())}))),t(".widget_nav_menu").on("click",".menu-item-has-children",(function(e){"A"!==e.target.nodeName&&"a"!==e.target.nodeName&&(e.stopPropagation(),t(this).toggleClass("open"),t(this).find(".sub-menu:first").slideToggle())})),t(".js-search-icon").on("click",(function(){t("#site-navigation-mobile").is(":visible")&&(a.toggleClass("open"),c.find("#site-navigation-mobile").slideToggle());var e=t(".js-search-screen"),n=t(".js-search-screen-overlay"),o=t(this),i=t("body");if(e.is(":visible"))h();else{t(".site-content").addClass("blur"),n.css("display","block"),e.css("display","block"),e.find(".search-field").focus(),setTimeout((function(){e.addClass("open"),n.addClass("open")}),10),o.addClass("close");var r=i.outerWidth();i.addClass("scroll-locked");var s=i.outerWidth()-r;i.css("padding-right",s+"px")}})),t(".js-search-screen-overlay").on("click",(function(){h()})),p(),setTimeout(p,300),setTimeout(p,1e3),1==settings_array.lightbox_display&&(t(".entry-content").find("a:has(img:not('.lightbox-skip'))").wpshoplightbox(),t(document).find("a:has(img.lightbox-open)").wpshoplightbox()),t(".entry-content table").wrap(t("<div class='table-responsive' />")),jQuery(document).on("click",".js-link",(function(t){var e=jQuery(this).data("href");if("http"!==e.substring(0,4)&&"viber"!==e.substring(0,5)){var 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,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",c=0,l=0,d="",u=[];if(!t)return t;t+="";do{e=(r=s.indexOf(t.charAt(c++))<<18|s.indexOf(t.charAt(c++))<<12|(i=s.indexOf(t.charAt(c++)))<<6|(a=s.indexOf(t.charAt(c++))))>>16&255,n=r>>8&255,o=255&r,u[l++]=64===i?String.fromCharCode(e):64===a?String.fromCharCode(e,n):String.fromCharCode(e,n,o)}while(c<t.length);return d=u.join(""),decodeURIComponent(escape(d.replace(/\0+$/,"")))}(e);"http"===n.substring(0,4)&&(e=n)}var o="self";"blank"!==jQuery(this).data("target")&&"_blank"!==jQuery(this).data("target")&&"blank"!==jQuery(this).attr("target")&&"_blank"!==jQuery(this).attr("target")||(o="blank"),"blank"===o?window.open(e):document.location.href=e})),v(),t(window).on("resize",(function(){v()})),e>=992&&1==settings_array.sidebar_fixed){var m=t(".js-sticky-sidebar"),f=m.height();m.stick_in_parent({offset_top:20}),t(window).on("resize",(function(e){return t(document.body).trigger("sticky_kit:recalc")})),setInterval((function(){f!==m.height()&&(f=m.height(),t(document.body).trigger("sticky_kit:recalc"))}),1e3)}function w(){t(window).width()>=992?t("body").css("margin-bottom",t(".site-footer-container").outerHeight()):t("body").css("margin-bottom",0)}t(".site-footer-container").length&&!t(".site-footer-container").hasClass("site-footer-container--disable-sticky")&&(w(),t(window).on("resize",(function(){w()})),setInterval(w,1e3))})),jQuery((function(e){e(document).on("click",".js-table-of-contents-hide",(function(){var n=e(this).parents(".table-of-contents");n.toggleClass("open"),n.hasClass("open")?(t("wpshop_toc_hide","",-1),e(".js-table-of-contents-list").slideDown()):(t("wpshop_toc_hide","hide"),e(".js-table-of-contents-list").slideUp())})),e(document).on("click",'.table-of-contents a[href*="#"]',(function(t){var n=e(this).parents(".entry-content").find(this.hash);e("html,body").stop().animate({scrollTop:n.offset().top-100},{duration:500,step:function(t,e){var o=n.offset().top-100;e.end!==o&&(e.end=o)}}),t.preventDefault()}))}))}));