'use strict';(function(){function k(e,b){if(!(e instanceof b))throw new TypeError("Cannot call a class as a function");}function z(e,b){for(var f=0;f<b.length;f++){var a=b[f];a.enumerable=a.enumerable||!1;a.configurable=!0;"value"in a&&(a.writable=!0);var c=Object,d=c.defineProperty;a:{var g=a.key;if("object"===typeof g&&null!==g){var h=g[Symbol.toPrimitive];if(void 0!==h){g=h.call(g,"string");if("object"!==typeof g)break a;throw new TypeError("@@toPrimitive must return a primitive value.");}g=String(g)}}d.call(c,
  e,"symbol"===typeof g?g:String(g),a)}}function l(e,b,f){b&&z(e.prototype,b);f&&z(e,f);Object.defineProperty(e,"prototype",{writable:!1});return e}function p(e,b){if("function"!==typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(b&&b.prototype,{constructor:{value:e,writable:!0,configurable:!0}});Object.defineProperty(e,"prototype",{writable:!1});b&&v(e,b)}function u(e){u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(b){return b.__proto__||
  Object.getPrototypeOf(b)};return u(e)}function v(e,b){v=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(f,a){f.__proto__=a;return f};return v(e,b)}function B(){if("undefined"===typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function n(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
  return e}function q(e){var b=B();return function(){var f=u(e);if(b){var a=u(this).constructor;f=Reflect.construct(f,arguments,a)}else f=f.apply(this,arguments);if(!f||"object"!==typeof f&&"function"!==typeof f){if(void 0!==f)throw new TypeError("Derived constructors may only return object or undefined");f=n(this)}return f}}function t(e){var b=Array.isArray(e)?w(e):void 0;b||(b="undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"]?Array.from(e):void 0);if(!b)a:{if(e){if("string"===
  typeof e){b=w(e,void 0);break a}b=Object.prototype.toString.call(e).slice(8,-1);"Object"===b&&e.constructor&&(b=e.constructor.name);if("Map"===b||"Set"===b){b=Array.from(e);break a}if("Arguments"===b||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(b)){b=w(e,void 0);break a}}b=void 0}if(!(e=b))throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");return e}function w(e,b){if(null==b||b>e.length)b=
  e.length;for(var f=0,a=Array(b);f<b;f++)a[f]=e[f];return a}var C=function(){function e(){k(this,e);this.handlers={}}l(e,[{key:"addEventListener",value:function(){var b=0<arguments.length&&void 0!==arguments[0]?arguments[0]:document,f=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"click";this.handlers[f]={func:2<arguments.length?arguments[2]:void 0,target:b};var a=f.split(".")[0];b.addEventListener(a,this.handlers[f].func)}},{key:"removeEventListener",value:function(){var b=0<arguments.length&&
  void 0!==arguments[0]?arguments[0]:"click",f=b.split(".")[0],a=this.handlers[b];a.target.removeEventListener(f,a.func);delete this.handlers[b]}},{key:"removeAll",value:function(){for(var b in this.handlers)this.removeEventListener(b)}}]);return e}(),D=function(){return"".concat(0<arguments.length&&void 0!==arguments[0]?arguments[0]:"id","-").concat(Math.random().toString(36).substr(2,8))},m=function(){function e(){k(this,e);this.events=new C;this.callback=function(){};this.updateInstanceId()}l(e,
  [{key:"eventHandler",value:function(b,f){var a=this,c=f.share_url,d=f.windowTitle,g=f.windowWidth,h=f.windowHeight;b.preventDefault();f=Math.round((window.outerHeight||window.document.documentElement.offsetHeight)/2-h/2);var r=Math.round((window.outerWidth||window.document.documentElement.offsetWidth)/2-g/2);g="width=".concat(g,",height=").concat(h);f="left=".concat(r,",top=").concat(f);var A="".concat(g,",").concat(f,",location=no,toolbar=no,menubar=no"),x=window.open(c,d,A),E=setInterval(function(){x.closed&&
  (a.callback(b,{share_url:c,windowTitle:d,windowOptions:A},x),clearInterval(E))},10);return x}},{key:"setShareCallback",value:function(b){this.callback=b}},{key:"createEvents",value:function(b){var f=this;t(b).forEach(function(a){var c=f.getPreparedData(a);f.events.addEventListener(a,"click.".concat(f.instanceId),function(d){return f.eventHandler.call(f,d,c)})})}},{key:"getInstance",value:function(){"function"===typeof this.shareWindow&&this.shareWindow();"function"===typeof this.getCounter&&this.getCounter();
  return this}},{key:"updateInstanceId",value:function(){this.instanceId=D()}},{key:"reNewInstance",value:function(){this.events.removeAll();this.updateInstanceId();return this.getInstance()}}]);return e}(),y=function(e){function b(){var a=0<arguments.length&&void 0!==arguments[0]?arguments[0]:document.location.href,c=1<arguments.length&&void 0!==arguments[1]?arguments[1]:document.title,d=2<arguments.length&&void 0!==arguments[2]?arguments[2]:document.querySelector('link[rel="apple-touch-icon"]');k(this,
  b);var g=f.call(this);g.url=encodeURIComponent(a);g.title=encodeURIComponent(c);g.image=d?encodeURIComponent(d.href):"";g.createEvents=g.createEvents.bind(n(g));return g}p(b,e);var f=q(b);l(b,[{key:"getPreparedData",value:function(a){var c=a.dataset.url?encodeURIComponent(a.dataset.url):this.url,d=a.dataset.title?encodeURIComponent(a.dataset.title):this.title;a=a.dataset.image?encodeURIComponent(a.dataset.image):this.image;c="https://vk.com/share.php?url=".concat(c,"&title=").concat(d,"&image=").concat(a);
  return{callback:this.callback,share_url:c,windowTitle:"Share this",windowWidth:640,windowHeight:480}}},{key:"shareWindow",value:function(){var a=document.querySelectorAll('[data-social="vkontakte"]');return this.createEvents(a)}},{key:"getCounter",value:function(){var a=document.createElement("script"),c=document.querySelectorAll('[data-counter="vkontakte"]'),d="https://vk.com/share.php?act=count&index=1&url=".concat(this.url);window.VK=Object.assign({},{Share:{}},window.VK);0<c.length&&(window.VK.Share.count=
  function(g,h){t(c).forEach(function(r){r.innerHTML=h});null!==a.parentNode&&a.parentNode.removeChild(a)},a.src=d,document.body.appendChild(a))}}]);return b}(m),F=function(e){function b(){var a=0<arguments.length&&void 0!==arguments[0]?arguments[0]:document.location.href,c=1<arguments.length&&void 0!==arguments[1]?arguments[1]:document.title;k(this,b);var d=f.call(this);d.url=encodeURIComponent(a);d.title=encodeURIComponent(c);d.createEvents=d.createEvents.bind(n(d));return d}p(b,e);var f=q(b);l(b,
  [{key:"getPreparedData",value:function(a){var c=a.dataset.url?encodeURIComponent(a.dataset.url):this.url;a=a.dataset.title?encodeURIComponent(a.dataset.title):this.title;c="https://facebook.com/sharer/sharer.php?u=".concat(c,"&t=").concat(a);return{callback:this.callback,share_url:c,windowTitle:"Share this",windowWidth:640,windowHeight:480}}},{key:"shareWindow",value:function(){var a=document.querySelectorAll('[data-social="facebook"]');return this.createEvents(a)}},{key:"getCounter",value:function(){var a=
  document.createElement("script"),c=("goodshare_"+Math.random()).replace(".",""),d=document.querySelectorAll('[data-counter="facebook"]'),g="https://graph.facebook.com/?id=".concat(this.url,"&callback=").concat(c);0<d.length&&(window[c]=function(h){t(d).forEach(function(r){r.innerHTML=h.share?h.share.share_count:0});null!==a.parentNode&&a.parentNode.removeChild(a)},a.src=g,document.body.appendChild(a))}}]);return b}(m),G=function(e){function b(){var a=0<arguments.length&&void 0!==arguments[0]?arguments[0]:
  document.location.href,c=1<arguments.length&&void 0!==arguments[1]?arguments[1]:document.title;k(this,b);var d=f.call(this);d.url=encodeURIComponent(a);d.title=encodeURIComponent(c);d.createEvents=d.createEvents.bind(n(d));return d}p(b,e);var f=q(b);l(b,[{key:"getPreparedData",value:function(a){var c=a.dataset.url?encodeURIComponent(a.dataset.url):this.url;a=a.dataset.title?encodeURIComponent(a.dataset.title):this.title;c="https://connect.ok.ru/offer?url=".concat(c,"&title=").concat(a);return{callback:this.callback,
  share_url:c,windowTitle:"Share this",windowWidth:640,windowHeight:480}}},{key:"shareWindow",value:function(){var a=document.querySelectorAll('[data-social="odnoklassniki"]');return this.createEvents(a)}},{key:"getCounter",value:function(){var a=document.createElement("script"),c=document.querySelectorAll('[data-counter="odnoklassniki"]'),d="https://connect.ok.ru/dk?st.cmd=extLike&uid=1&ref=".concat(this.url);window.ODKL={};0<c.length&&(window.ODKL.updateCount=function(g,h){t(c).forEach(function(r){r.innerHTML=
  h});null!==a.parentNode&&a.parentNode.removeChild(a)},a.src=d,document.body.appendChild(a))}}]);return b}(m),H=function(e){function b(){var a=0<arguments.length&&void 0!==arguments[0]?arguments[0]:document.location.href,c=1<arguments.length&&void 0!==arguments[1]?arguments[1]:document.title,d=2<arguments.length&&void 0!==arguments[2]?arguments[2]:document.querySelector('meta[name="description"]'),g=3<arguments.length&&void 0!==arguments[3]?arguments[3]:document.querySelector('link[rel="apple-touch-icon"]');
  k(this,b);var h=f.call(this);h.url=encodeURIComponent(a);h.title=encodeURIComponent(c);h.description=d?encodeURIComponent(d.content):"";h.image=g?encodeURIComponent(g.href):"";h.createEvents=h.createEvents.bind(n(h));return h}p(b,e);var f=q(b);l(b,[{key:"getPreparedData",value:function(a){var c=a.dataset.url?encodeURIComponent(a.dataset.url):this.url,d=a.dataset.title?encodeURIComponent(a.dataset.title):this.title,g=a.dataset.description?encodeURIComponent(a.dataset.description):this.description;
  a=a.dataset.image?encodeURIComponent(a.dataset.image):this.image;c="https://connect.mail.ru/share?url=".concat(c,"&title=").concat(d,"&description=").concat(g,"&imageurl=").concat(a);return{callback:this.callback,share_url:c,windowTitle:"Share this",windowWidth:640,windowHeight:480}}},{key:"shareWindow",value:function(){var a=document.querySelectorAll('[data-social="moimir"]');return this.createEvents(a)}},{key:"getCounter",value:function(){var a=document.createElement("script"),c=encodeURIComponent(this.url.replace(/^.*?:\/\//,
  "")),d=("goodshare_"+Math.random()).replace(".",""),g=document.querySelectorAll('[data-counter="moimir"]');0<g.length&&(window[d]=function(h){t(g).forEach(function(r){r.innerHTML=h.share_mm});null!==a.parentNode&&a.parentNode.removeChild(a)},a.src="https://appsmail.ru/share/count/"+c+"?callback="+d,document.body.appendChild(a))}}]);return b}(m),I=function(e){function b(){var a=0<arguments.length&&void 0!==arguments[0]?arguments[0]:document.location.href,c=1<arguments.length&&void 0!==arguments[1]?
  arguments[1]:document.title,d=2<arguments.length&&void 0!==arguments[2]?arguments[2]:document.querySelector('meta[name="description"]');k(this,b);var g=f.call(this);g.url=encodeURIComponent(a);g.title=encodeURIComponent(c);g.description=d?encodeURIComponent(d.content):"";g.createEvents=g.createEvents.bind(n(g));return g}p(b,e);var f=q(b);l(b,[{key:"getPreparedData",value:function(a){var c=a.dataset.url?encodeURIComponent(a.dataset.url):this.url,d=a.dataset.title?encodeURIComponent(a.dataset.title):
  this.title;a=a.dataset.description?encodeURIComponent(a.dataset.description):this.description;c="https://www.tumblr.com/widgets/share/tool?canonicalUrl=".concat(c,"&title=").concat(d,"&caption=").concat(a,"&posttype=link");return{callback:this.callback,share_url:c,windowTitle:"Share this",windowWidth:640,windowHeight:480}}},{key:"shareWindow",value:function(){var a=document.querySelectorAll('[data-social="tumblr"]');return this.createEvents(a)}},{key:"getCounter",value:function(){var a=document.createElement("script"),
  c=("goodshare_"+Math.random()).replace(".",""),d=document.querySelectorAll('[data-counter="tumblr"]'),g="https://api.tumblr.com/v2/share/stats?url=".concat(this.url,"&callback=").concat(c);0<d.length&&(window[c]=function(h){t(d).forEach(function(r){r.innerHTML=h.response.note_count});null!==a.parentNode&&a.parentNode.removeChild(a)},a.src=g,document.body.appendChild(a))}}]);return b}(m),J=function(e){function b(){var a=0<arguments.length&&void 0!==arguments[0]?arguments[0]:document.location.href,
  c=1<arguments.length&&void 0!==arguments[1]?arguments[1]:document.querySelector('meta[name="description"]'),d=2<arguments.length&&void 0!==arguments[2]?arguments[2]:document.querySelector('link[rel="apple-touch-icon"]');k(this,b);var g=f.call(this);g.url=encodeURIComponent(a);g.description=c?encodeURIComponent(c.content):"";g.image=d?encodeURIComponent(d.href):"";g.createEvents=g.createEvents.bind(n(g));return g}p(b,e);var f=q(b);l(b,[{key:"getPreparedData",value:function(a){var c=a.dataset.url?encodeURIComponent(a.dataset.url):
  this.url,d=a.dataset.description?encodeURIComponent(a.dataset.description):this.description;a=a.dataset.image?encodeURIComponent(a.dataset.image):this.image;c="https://www.pinterest.com/pin/create/button/?url=".concat(c,"&description=").concat(d,"&media=").concat(a);return{callback:this.callback,share_url:c,windowTitle:"Share this",windowWidth:640,windowHeight:480}}},{key:"shareWindow",value:function(){var a=document.querySelectorAll('[data-social="pinterest"]');return this.createEvents(a)}},{key:"getCounter",
  value:function(){var a=document.createElement("script"),c=("goodshare_"+Math.random()).replace(".",""),d=document.querySelectorAll('[data-counter="pinterest"]'),g="https://api.pinterest.com/v1/urls/count.json?url=".concat(this.url,"&callback=").concat(c);0<d.length&&(window[c]=function(h){t(d).forEach(function(r){r.innerHTML=0<h.length?h.count:0});null!==a.parentNode&&a.parentNode.removeChild(a)},a.src=g,document.body.appendChild(a))}}]);return b}(m),K=function(e){function b(){var a=0<arguments.length&&
  void 0!==arguments[0]?arguments[0]:document.location.href,c=1<arguments.length&&void 0!==arguments[1]?arguments[1]:document.title;k(this,b);var d=f.call(this);d.url=encodeURIComponent(a);d.title=encodeURIComponent(c);d.createEvents=d.createEvents.bind(n(d));return d}p(b,e);var f=q(b);l(b,[{key:"getPreparedData",value:function(a){var c=a.dataset.url?encodeURIComponent(a.dataset.url):this.url;a=a.dataset.title?encodeURIComponent(a.dataset.title):this.title;c="https://reddit.com/submit?url=".concat(c,
  "&title=").concat(a);return{callback:this.callback,share_url:c,windowTitle:"Share this",windowWidth:640,windowHeight:480}}},{key:"shareWindow",value:function(){var a=document.querySelectorAll('[data-social="reddit"]');return this.createEvents(a)}}]);return b}(m),L=function(e){function b(){var a=0<arguments.length&&void 0!==arguments[0]?arguments[0]:document.location.href,c=1<arguments.length&&void 0!==arguments[1]?arguments[1]:document.title;k(this,b);var d=f.call(this);d.url=encodeURIComponent(a);
  d.title=encodeURIComponent(c);d.createEvents=d.createEvents.bind(n(d));return d}p(b,e);var f=q(b);l(b,[{key:"getPreparedData",value:function(a){var c=a.dataset.url?encodeURIComponent(a.dataset.url):this.url;a=a.dataset.title?encodeURIComponent(a.dataset.title):this.title;c="https://buffer.com/add?url=".concat(c,"&text=").concat(a);return{callback:this.callback,share_url:c,windowTitle:"Share this",windowWidth:640,windowHeight:480}}},{key:"shareWindow",value:function(){var a=document.querySelectorAll('[data-social="buffer"]');
  return this.createEvents(a)}},{key:"getCounter",value:function(){var a=document.createElement("script"),c=("goodshare_"+Math.random()).replace(".",""),d=document.querySelectorAll('[data-counter="buffer"]'),g="https://api.bufferapp.com/1/links/shares.json?url=".concat(this.url,"&callback=").concat(c);0<d.length&&(window[c]=function(h){t(d).forEach(function(r){r.innerHTML=h?h.shares:0});a.parentNode.removeChild(a)},a.src=g,document.body.appendChild(a))}}]);return b}(m),M=function(e){function b(){var a=
  0<arguments.length&&void 0!==arguments[0]?arguments[0]:document.location.href,c=1<arguments.length&&void 0!==arguments[1]?arguments[1]:document.title,d=2<arguments.length&&void 0!==arguments[2]?arguments[2]:"";k(this,b);var g=f.call(this);g.url=encodeURIComponent(a);g.title=encodeURIComponent(c);g.hashtags=encodeURIComponent(d);g.createEvents=g.createEvents.bind(n(g));return g}p(b,e);var f=q(b);l(b,[{key:"getPreparedData",value:function(a){var c=a.dataset.url?encodeURIComponent(a.dataset.url):this.url,
  d=a.dataset.title?encodeURIComponent(a.dataset.title):this.title;a=a.dataset.hashtags?encodeURIComponent(a.dataset.hashtags):this.hashtags;c="https://twitter.com/share?url=".concat(c,"&text=").concat(d,"&hashtags=").concat(a);return{callback:this.callback,share_url:c,windowTitle:"Share this",windowWidth:640,windowHeight:480}}},{key:"shareWindow",value:function(){var a=document.querySelectorAll('[data-social="twitter"]');return this.createEvents(a)}}]);return b}(m),N=function(e){function b(){var a=
  0<arguments.length&&void 0!==arguments[0]?arguments[0]:document.location.href,c=1<arguments.length&&void 0!==arguments[1]?arguments[1]:document.title;k(this,b);var d=f.call(this);d.url=encodeURIComponent(a);d.title=encodeURIComponent(c);d.createEvents=d.createEvents.bind(n(d));return d}p(b,e);var f=q(b);l(b,[{key:"getPreparedData",value:function(a){var c=a.dataset.url?encodeURIComponent(a.dataset.url):this.url;a=a.dataset.title?encodeURIComponent(a.dataset.title):this.title;c="https://livejournal.com/update.bml?event=".concat(c,
  "&subject=").concat(a);return{callback:this.callback,share_url:c,windowTitle:"Share this",windowWidth:640,windowHeight:480}}},{key:"shareWindow",value:function(){var a=document.querySelectorAll('[data-social="livejournal"]');return this.createEvents(a)}}]);return b}(m),O=function(e){function b(){var a=0<arguments.length&&void 0!==arguments[0]?arguments[0]:document.location.href,c=1<arguments.length&&void 0!==arguments[1]?arguments[1]:document.title,d=2<arguments.length&&void 0!==arguments[2]?arguments[2]:
  document.querySelector('meta[name="description"]');k(this,b);var g=f.call(this);g.url=encodeURIComponent(a);g.title=encodeURIComponent(c);g.description=d?encodeURIComponent(d.content):"";g.createEvents=g.createEvents.bind(n(g));return g}p(b,e);var f=q(b);l(b,[{key:"getPreparedData",value:function(a){var c=a.dataset.url?encodeURIComponent(a.dataset.url):this.url,d=a.dataset.title?encodeURIComponent(a.dataset.title):this.title;a=a.dataset.description?encodeURIComponent(a.dataset.description):this.description;
  c="https://www.linkedin.com/shareArticle?url=".concat(c,"&text=").concat(d,"&summary=").concat(a,"&mini=true");return{callback:this.callback,share_url:c,windowTitle:"Share this",windowWidth:640,windowHeight:480}}},{key:"shareWindow",value:function(){var a=document.querySelectorAll('[data-social="linkedin"]');return this.createEvents(a)}}]);return b}(m),P=function(e){function b(){var a=0<arguments.length&&void 0!==arguments[0]?arguments[0]:document.location.href,c=1<arguments.length&&void 0!==arguments[1]?
  arguments[1]:document.title,d=2<arguments.length&&void 0!==arguments[2]?arguments[2]:document.querySelector('meta[name="description"]');k(this,b);var g=f.call(this);g.url=encodeURIComponent(a);g.title=encodeURIComponent(c);g.description=d?encodeURIComponent(d.content):"";g.createEvents=g.createEvents.bind(n(g));return g}p(b,e);var f=q(b);l(b,[{key:"getPreparedData",value:function(a){var c=a.dataset.url?encodeURIComponent(a.dataset.url):this.url,d=a.dataset.title?encodeURIComponent(a.dataset.title):
  this.title;a=a.dataset.description?encodeURIComponent(a.dataset.description):this.description;c="https://www.evernote.com/clip.action?url=".concat(c,"&title=").concat(d,"&body=").concat(a);return{callback:this.callback,share_url:c,windowTitle:"Share this",windowWidth:640,windowHeight:480}}},{key:"shareWindow",value:function(){var a=document.querySelectorAll('[data-social="evernote"]');return this.createEvents(a)}}]);return b}(m),Q=function(e){function b(){var a=0<arguments.length&&void 0!==arguments[0]?
  arguments[0]:document.location.href,c=1<arguments.length&&void 0!==arguments[1]?arguments[1]:document.title;k(this,b);var d=f.call(this);d.url=encodeURIComponent(a);d.title=encodeURIComponent(c);d.createEvents=d.createEvents.bind(n(d));return d}p(b,e);var f=q(b);l(b,[{key:"getPreparedData",value:function(a){var c=a.dataset.url?encodeURIComponent(a.dataset.url):this.url;a=a.dataset.title?encodeURIComponent(a.dataset.title):this.title;c="https://del.icio.us/save?url=".concat(c,"&title=").concat(a);
  return{callback:this.callback,share_url:c,windowTitle:"Share this",windowWidth:640,windowHeight:480}}},{key:"shareWindow",value:function(){var a=document.querySelectorAll('[data-social="delicious"]');return this.createEvents(a)}}]);return b}(m),R=function(e){function b(){var a=0<arguments.length&&void 0!==arguments[0]?arguments[0]:document.location.href,c=1<arguments.length&&void 0!==arguments[1]?arguments[1]:document.title;k(this,b);var d=f.call(this);d.url=encodeURIComponent(a);d.title=encodeURIComponent(c);
  d.createEvents=d.createEvents.bind(n(d));return d}p(b,e);var f=q(b);l(b,[{key:"getPreparedData",value:function(a){var c=a.dataset.url?encodeURIComponent(a.dataset.url):this.url;a=a.dataset.title?encodeURIComponent(a.dataset.title):this.title;c="https://share.flipboard.com/bookmarklet/popout?ext=sharethis&title=".concat(a,"&url=").concat(c,"&v=2");return{callback:this.callback,share_url:c,windowTitle:"Share this",windowWidth:640,windowHeight:480}}},{key:"shareWindow",value:function(){var a=document.querySelectorAll('[data-social="flipboard"]');
  return this.createEvents(a)}}]);return b}(m),S=function(e){function b(){var a=0<arguments.length&&void 0!==arguments[0]?arguments[0]:document.location.href;k(this,b);var c=f.call(this);c.url=encodeURIComponent(a);c.createEvents=c.createEvents.bind(n(c));return c}p(b,e);var f=q(b);l(b,[{key:"getPreparedData",value:function(a){a=a.dataset.url?encodeURIComponent(a.dataset.url):this.url;a="https://mix.com/mixit?su=submit&url=".concat(a);return{callback:this.callback,share_url:a,windowTitle:"Share this",
  windowWidth:640,windowHeight:480}}},{key:"shareWindow",value:function(){var a=document.querySelectorAll('[data-social="mix"]');return this.createEvents(a)}}]);return b}(m),T=function(e){function b(){var a=0<arguments.length&&void 0!==arguments[0]?arguments[0]:document.location.href;k(this,b);var c=f.call(this);c.url=encodeURIComponent(a);c.createEvents=c.createEvents.bind(n(c));return c}p(b,e);var f=q(b);l(b,[{key:"getPreparedData",value:function(a){a=a.dataset.url?encodeURIComponent(a.dataset.url):
  this.url;a="https://www.meneame.net/submit?url=".concat(a);return{callback:this.callback,share_url:a,windowTitle:"Share this",windowWidth:640,windowHeight:480}}},{key:"shareWindow",value:function(){var a=document.querySelectorAll('[data-social="meneame"]');return this.createEvents(a)}}]);return b}(m),U=function(e){function b(){var a=0<arguments.length&&void 0!==arguments[0]?arguments[0]:document.location.href,c=1<arguments.length&&void 0!==arguments[1]?arguments[1]:document.title;k(this,b);var d=
  f.call(this);d.url=encodeURIComponent(a);d.title=encodeURIComponent(c);d.createEvents=d.createEvents.bind(n(d));return d}p(b,e);var f=q(b);l(b,[{key:"getPreparedData",value:function(a){var c=a.dataset.url?encodeURIComponent(a.dataset.url):this.url;a=a.dataset.title?encodeURIComponent(a.dataset.title):this.title;c="https://www.blogger.com/blog-this.g?u=".concat(c,"&n=").concat(a);return{callback:this.callback,share_url:c,windowTitle:"Share this",windowWidth:640,windowHeight:480}}},{key:"shareWindow",
  value:function(){var a=document.querySelectorAll('[data-social="blogger"]');return this.createEvents(a)}}]);return b}(m),V=function(e){function b(){var a=0<arguments.length&&void 0!==arguments[0]?arguments[0]:document.location.href,c=1<arguments.length&&void 0!==arguments[1]?arguments[1]:document.title;k(this,b);var d=f.call(this);d.url=encodeURIComponent(a);d.title=encodeURIComponent(c);d.createEvents=d.createEvents.bind(n(d));return d}p(b,e);var f=q(b);l(b,[{key:"getPreparedData",value:function(a){var c=
  a.dataset.url?encodeURIComponent(a.dataset.url):this.url;a=a.dataset.title?encodeURIComponent(a.dataset.title):this.title;c="https://getpocket.com/save?url=".concat(c,"&title=").concat(a);return{callback:this.callback,share_url:c,windowTitle:"Share this",windowWidth:640,windowHeight:480}}},{key:"shareWindow",value:function(){var a=document.querySelectorAll('[data-social="pocket"]');return this.createEvents(a)}}]);return b}(m),W=function(e){function b(){var a=0<arguments.length&&void 0!==arguments[0]?
  arguments[0]:document.location.href,c=1<arguments.length&&void 0!==arguments[1]?arguments[1]:document.title;k(this,b);var d=f.call(this);d.url=encodeURIComponent(a);d.title=encodeURIComponent(c);d.createEvents=d.createEvents.bind(n(d));return d}p(b,e);var f=q(b);l(b,[{key:"getPreparedData",value:function(a){var c=a.dataset.url?encodeURIComponent(a.dataset.url):this.url;a=a.dataset.title?encodeURIComponent(a.dataset.title):this.title;c="https://www.instapaper.com/edit?url=".concat(c,"&title=").concat(a);
  return{callback:this.callback,share_url:c,windowTitle:"Share this",windowWidth:640,windowHeight:480}}},{key:"shareWindow",value:function(){var a=document.querySelectorAll('[data-social="instapaper"]');return this.createEvents(a)}}]);return b}(m),X=function(e){function b(){var a=0<arguments.length&&void 0!==arguments[0]?arguments[0]:document.location.href,c=1<arguments.length&&void 0!==arguments[1]?arguments[1]:document.title;k(this,b);var d=f.call(this);d.url=encodeURIComponent(a);d.title=encodeURIComponent(c);
  d.createEvents=d.createEvents.bind(n(d));return d}p(b,e);var f=q(b);l(b,[{key:"getPreparedData",value:function(a){var c=a.dataset.url?encodeURIComponent(a.dataset.url):this.url;a=a.dataset.title?encodeURIComponent(a.dataset.title):this.title;c="https://digg.com/submit?url=".concat(c,"&title=").concat(a);return{callback:this.callback,share_url:c,windowTitle:"Share this",windowWidth:640,windowHeight:480}}},{key:"shareWindow",value:function(){var a=document.querySelectorAll('[data-social="digg"]');return this.createEvents(a)}}]);
  return b}(m),Y=function(e){function b(){var a=0<arguments.length&&void 0!==arguments[0]?arguments[0]:document.location.href,c=1<arguments.length&&void 0!==arguments[1]?arguments[1]:document.title;k(this,b);var d=f.call(this);d.url=encodeURIComponent(a);d.title=encodeURIComponent(c);d.createEvents=d.createEvents.bind(n(d));return d}p(b,e);var f=q(b);l(b,[{key:"getPreparedData",value:function(a){var c=a.dataset.url?encodeURIComponent(a.dataset.url):this.url;a=a.dataset.title?encodeURIComponent(a.dataset.title):
  this.title;c="http://www.liveinternet.ru/journal_post.php?action=n_add&cnurl=".concat(c,"&cntitle=").concat(a);return{callback:this.callback,share_url:c,windowTitle:"Share this",windowWidth:640,windowHeight:480}}},{key:"shareWindow",value:function(){var a=document.querySelectorAll('[data-social="liveinternet"]');return this.createEvents(a)}}]);return b}(m),Z=function(e){function b(){var a=0<arguments.length&&void 0!==arguments[0]?arguments[0]:document.location.href,c=1<arguments.length&&void 0!==
  arguments[1]?arguments[1]:document.title,d=2<arguments.length&&void 0!==arguments[2]?arguments[2]:document.querySelector('meta[name="description"]');k(this,b);var g=f.call(this);g.url=encodeURIComponent(a);g.title=encodeURIComponent(c);g.description=d?encodeURIComponent(d.content):"";g.createEvents=g.createEvents.bind(n(g));return g}p(b,e);var f=q(b);l(b,[{key:"getPreparedData",value:function(a){var c=a.dataset.url?encodeURIComponent(a.dataset.url):this.url,d=a.dataset.title?encodeURIComponent(a.dataset.title):
  this.title;a=a.dataset.description?encodeURIComponent(a.dataset.description):this.description;c="https://surfingbird.ru/share?url=".concat(c,"&title=").concat(d,"&description=").concat(a);return{callback:this.callback,share_url:c,windowTitle:"Share this",windowWidth:640,windowHeight:480}}},{key:"shareWindow",value:function(){var a=document.querySelectorAll('[data-social="surfingbird"]');return this.createEvents(a)}}]);return b}(m),aa=function(e){function b(){var a=0<arguments.length&&void 0!==arguments[0]?
  arguments[0]:document.location.href;k(this,b);var c=f.call(this);c.url=encodeURIComponent(a);c.createEvents=c.createEvents.bind(n(c));return c}p(b,e);var f=q(b);l(b,[{key:"getPreparedData",value:function(a){a=a.dataset.url?encodeURIComponent(a.dataset.url):this.url;a="https://www.xing.com/spi/shares/new?url=".concat(a);return{callback:this.callback,share_url:a,windowTitle:"Share this",windowWidth:640,windowHeight:480}}},{key:"shareWindow",value:function(){var a=document.querySelectorAll('[data-social="xing"]');
  return this.createEvents(a)}}]);return b}(m),ba=function(e){function b(){var a=0<arguments.length&&void 0!==arguments[0]?arguments[0]:document.location.href,c=1<arguments.length&&void 0!==arguments[1]?arguments[1]:document.title,d=2<arguments.length&&void 0!==arguments[2]?arguments[2]:document.querySelector('meta[name="description"]'),g=3<arguments.length&&void 0!==arguments[3]?arguments[3]:document.querySelector('link[rel="apple-touch-icon"]');k(this,b);var h=f.call(this);h.url=encodeURIComponent(a);
  h.title=encodeURIComponent(c);h.description=d?encodeURIComponent(d.content):"";h.image=g?encodeURIComponent(g.href):"";h.createEvents=h.createEvents.bind(n(h));return h}p(b,e);var f=q(b);l(b,[{key:"getPreparedData",value:function(a){var c=a.dataset.url?encodeURIComponent(a.dataset.url):this.url,d=a.dataset.title?encodeURIComponent(a.dataset.title):this.title,g=a.dataset.description?encodeURIComponent(a.dataset.description):this.description;a=a.dataset.image?encodeURIComponent(a.dataset.image):this.image;
  c="https://wordpress.com/wp-admin/press-this.php?u=".concat(c,"&t=").concat(d,"&s=").concat(g,"&i=").concat(a,"&v=2");return{callback:this.callback,share_url:c,windowTitle:"Share this",windowWidth:640,windowHeight:480}}},{key:"shareWindow",value:function(){var a=document.querySelectorAll('[data-social="wordpress"]');return this.createEvents(a)}}]);return b}(m),ca=function(e){function b(){var a=0<arguments.length&&void 0!==arguments[0]?arguments[0]:document.location.href,c=1<arguments.length&&void 0!==
  arguments[1]?arguments[1]:document.title,d=2<arguments.length&&void 0!==arguments[2]?arguments[2]:document.querySelector('meta[name="description"]');k(this,b);var g=f.call(this);g.url=encodeURIComponent(a);g.title=encodeURIComponent(c);g.description=d?encodeURIComponent(d.content):"";g.createEvents=g.createEvents.bind(n(g));return g}p(b,e);var f=q(b);l(b,[{key:"getPreparedData",value:function(a){var c=a.dataset.url?encodeURIComponent(a.dataset.url):this.url,d=a.dataset.title?encodeURIComponent(a.dataset.title):
  this.title;a=a.dataset.description?encodeURIComponent(a.dataset.description):this.description;c="https://cang.baidu.com/do/add?iu=".concat(c,"&it=").concat(d,"&dc=").concat(a,"&fr=ien");return{callback:this.callback,share_url:c,windowTitle:"Share this",windowWidth:640,windowHeight:480}}},{key:"shareWindow",value:function(){var a=document.querySelectorAll('[data-social="baidu"]');return this.createEvents(a)}}]);return b}(m),da=function(e){function b(){var a=0<arguments.length&&void 0!==arguments[0]?
  arguments[0]:document.location.href,c=1<arguments.length&&void 0!==arguments[1]?arguments[1]:document.title;k(this,b);var d=f.call(this);d.url=encodeURIComponent(a);d.title=encodeURIComponent(c);d.createEvents=d.createEvents.bind(n(d));return d}p(b,e);var f=q(b);l(b,[{key:"getPreparedData",value:function(a){var c=a.dataset.url?encodeURIComponent(a.dataset.url):this.url;a=a.dataset.title?encodeURIComponent(a.dataset.title):this.title;c="http://share.renren.com/share/buttonshare.do?url=".concat(c,"&title=").concat(a);
  return{callback:this.callback,share_url:c,windowTitle:"Share this",windowWidth:640,windowHeight:480}}},{key:"shareWindow",value:function(){var a=document.querySelectorAll('[data-social="renren"]');return this.createEvents(a)}}]);return b}(m),ea=function(e){function b(){var a=0<arguments.length&&void 0!==arguments[0]?arguments[0]:document.location.href,c=1<arguments.length&&void 0!==arguments[1]?arguments[1]:document.title;k(this,b);var d=f.call(this);d.url=encodeURIComponent(a);d.title=encodeURIComponent(c);
  d.createEvents=d.createEvents.bind(n(d));return d}p(b,e);var f=q(b);l(b,[{key:"getPreparedData",value:function(a){var c=a.dataset.url?encodeURIComponent(a.dataset.url):this.url;a=a.dataset.title?encodeURIComponent(a.dataset.title):this.title;c="https://service.weibo.com/share/share.php?url=".concat(c,"&title=").concat(a);return{callback:this.callback,share_url:c,windowTitle:"Share this",windowWidth:640,windowHeight:480}}},{key:"shareWindow",value:function(){var a=document.querySelectorAll('[data-social="weibo"]');
  return this.createEvents(a)}}]);return b}(m),fa=function(e){function b(){var a=0<arguments.length&&void 0!==arguments[0]?arguments[0]:document.location.href;k(this,b);var c=f.call(this);c.url=encodeURIComponent(a);c.createEvents=c.createEvents.bind(n(c));return c}p(b,e);var f=q(b);l(b,[{key:"getPreparedData",value:function(a){a=a.dataset.url?encodeURIComponent(a.dataset.url):this.url;a="sms:?&body=".concat(a);return{callback:this.callback,share_url:a,windowTitle:"Share this",windowWidth:640,windowHeight:480}}},
  {key:"shareWindow",value:function(){var a=document.querySelectorAll('[data-social="sms"]');return this.createEvents(a)}}]);return b}(m),ha=function(e){function b(){var a=0<arguments.length&&void 0!==arguments[0]?arguments[0]:document.location.href,c=1<arguments.length&&void 0!==arguments[1]?arguments[1]:document.title;k(this,b);var d=f.call(this);d.url=encodeURIComponent(a);d.title=encodeURIComponent(c);d.createEvents=d.createEvents.bind(n(d));return d}p(b,e);var f=q(b);l(b,[{key:"getPreparedData",
  value:function(a){var c=a.dataset.url?encodeURIComponent(a.dataset.url):this.url;a=a.dataset.title?encodeURIComponent(a.dataset.title):this.title;c="https://web.skype.com/share?url=".concat(c,"&text=").concat(a);return{callback:this.callback,share_url:c,windowTitle:"Share this",windowWidth:640,windowHeight:480}}},{key:"shareWindow",value:function(){var a=document.querySelectorAll('[data-social="skype"]');return this.createEvents(a)}}]);return b}(m),ia=function(e){function b(){var a=0<arguments.length&&
  void 0!==arguments[0]?arguments[0]:document.location.href;k(this,b);var c=f.call(this);c.url=encodeURIComponent(a);c.createEvents=c.createEvents.bind(n(c));return c}p(b,e);var f=q(b);l(b,[{key:"getPreparedData",value:function(a){var c=a.dataset.url?encodeURIComponent(a.dataset.url):this.url;a=a.dataset.rhash?a.dataset.rhash:null;var d="https://t.me/share/url?url=".concat(c);null!==a&&(d="https://t.me/iv?url=".concat(c,"&rhash=").concat(a));return{callback:this.callback,share_url:d,windowTitle:"Share this",
  windowWidth:640,windowHeight:480}}},{key:"shareWindow",value:function(){var a=document.querySelectorAll('[data-social="telegram"]');return this.createEvents(a)}}]);return b}(m),ja=function(e){function b(){var a=0<arguments.length&&void 0!==arguments[0]?arguments[0]:document.location.href;k(this,b);var c=f.call(this);c.url=encodeURIComponent(a);c.createEvents=c.createEvents.bind(n(c));return c}p(b,e);var f=q(b);l(b,[{key:"getPreparedData",value:function(a){a=a.dataset.url?encodeURIComponent(a.dataset.url):
  this.url;a="viber://forward?text=".concat(a);return{callback:this.callback,share_url:a,windowTitle:"Share this",windowWidth:640,windowHeight:480}}},{key:"shareWindow",value:function(){var a=document.querySelectorAll('[data-social="viber"]');return this.createEvents(a)}}]);return b}(m),ka=function(e){function b(){var a=0<arguments.length&&void 0!==arguments[0]?arguments[0]:document.location.href;k(this,b);var c=f.call(this);c.url=encodeURIComponent(a);c.createEvents=c.createEvents.bind(n(c));return c}
  p(b,e);var f=q(b);l(b,[{key:"getPreparedData",value:function(a){a=a.dataset.url?encodeURIComponent(a.dataset.url):this.url;a="https://api.whatsapp.com/send?text=".concat(a);return{callback:this.callback,share_url:a,windowTitle:"Share this",windowWidth:640,windowHeight:480}}},{key:"shareWindow",value:function(){var a=document.querySelectorAll('[data-social="whatsapp"]');return this.createEvents(a)}}]);return b}(m),la=function(e){function b(){var a=0<arguments.length&&void 0!==arguments[0]?arguments[0]:
  document.location.href;k(this,b);var c=f.call(this);c.url=encodeURIComponent(a);c.createEvents=c.createEvents.bind(n(c));return c}p(b,e);var f=q(b);l(b,[{key:"getPreparedData",value:function(a){a=a.dataset.url?encodeURIComponent(a.dataset.url):this.url;a="https://chart.apis.google.com/chart?cht=qr&chs=196x196&chld=Q%7C0&chl=".concat(a);return{callback:this.callback,share_url:a,windowTitle:"Share this",windowWidth:640,windowHeight:480}}},{key:"shareWindow",value:function(){var a=document.querySelectorAll('[data-social="wechat"]');
  return this.createEvents(a)}}]);return b}(m),ma=function(e){function b(){var a=0<arguments.length&&void 0!==arguments[0]?arguments[0]:document.location.href;k(this,b);var c=f.call(this);c.url=encodeURIComponent(a);c.createEvents=c.createEvents.bind(n(c));return c}p(b,e);var f=q(b);l(b,[{key:"getPreparedData",value:function(a){a=a.dataset.url?encodeURIComponent(a.dataset.url):this.url;a="line://msg/text/".concat(a);return{callback:this.callback,share_url:a,windowTitle:"Share this",windowWidth:640,
  windowHeight:480}}},{key:"shareWindow",value:function(){var a=document.querySelectorAll('[data-social="line"]');return this.createEvents(a)}}]);return b}(m);m=function(e){function b(){var a=0<arguments.length&&void 0!==arguments[0]?arguments[0]:document.location.href;k(this,b);var c=f.call(this);c.url=a;c.createEvents=c.createEvents.bind(n(c));return c}p(b,e);var f=q(b);l(b,[{key:"getPreparedData",value:function(a){return{callback:this.callback,share_url:a.dataset.url?a.dataset.url:this.url}}},{key:"createFakeTextarea",
  value:function(a){var c="rtl"===document.documentElement.getAttribute("dir"),d=document.createElement("textarea");d.style.fontSize="12pt";d.style.border="0";d.style.padding="0";d.style.margin="0";d.style.position="absolute";d.style[c?"right":"left"]="-9999px";d.style.top="".concat(window.pageYOffset||document.documentElement.scrollTop,"px");d.setAttribute("readonly","");d.value=a;return d}},{key:"legacyCopyToClipboard",value:function(a){var c=this;return new Promise(function(){var d=c.createFakeTextarea(a);
  document.body.appendChild(d);d.select();d.setSelectionRange(0,d.value.length);document.execCommand("copy");document.body.removeChild(d)})}},{key:"eventHandler",value:function(a,c){var d=this,g=c.share_url;a.preventDefault();try{navigator.permissions.query({name:"clipboard-write"}).then(function(h){"granted"===h.state||"prompt"===h.state?navigator.clipboard.writeText(g).then(function(){d.callback(a,{share_url:g})}):d.legacyCopyToClipboard(g).then(function(){d.callback(a,{share_url:g})})})}catch(h){this.legacyCopyToClipboard(g).then(function(){d.callback(a,
  {share_url:g})})}}},{key:"shareWindow",value:function(){var a=document.querySelectorAll('[data-social="copy-to-clipboard"]');return this.createEvents(a)}}]);return b}(m);var na=[y,F,G,H,O,I,J,K,L,M,N,P,Q,R,V,S,T,U,W,X,Y,Z,aa,ba,ca,da,ea,fa,ha,ia,ja,ka,la,ma,m];y=function(){function e(){k(this,e);this.providers=na;this.getProviders()}l(e,[{key:"setShareCallback",value:function(b){this.providers=this.providers.map(function(f){return f.setShareCallback(b)})}},{key:"getProviders",value:function(){return this.providers=
  this.providers.map(function(b){return(new b).getInstance()})}},{key:"reNewAllInstance",value:function(){this.providers=this.providers.map(function(b){return b.reNewInstance()})}}]);return e}();window._goodshare=new y})()