(function(G,M,I){if(G.post_widget===I){var J=function(){var b=document.createElement("div"),c=b.getElementsByTagName("i"),e=3;do b.innerHTML="\x3c!--[if gt IE "+ ++e+"]\x3e\x3ci\x3e\x3c/i\x3e\x3c![endif]--\x3e";while(c[0]);return 4<e?e:I}(),K;if(6!==J){K=function(){var b=["android","iphone","ipad","ipod","windows phone"],c=G.navigator.userAgent.toLowerCase(),e=b.length,d=!1,a=G.screen.availWidth,f=G.screen.availHeight,g;for(g=0;g<e;g++)if(c.match(RegExp(b[g],"g"))){d={platform:b[g],height:f,tablet:600<=
a,width:a};"i"===b[g].charAt(0)&&(d.iosV=c.match(/os ([0-9]+)/g)[0].split(" ")[1]);break}return d}();var H,q;(function(b){var c,e,d={};e=Object.prototype;c=function(a){var b=[],c=a.length,h,k;for(k=0;k<c;k++)h=a[k].split("/"),h=h[h.length-1],b.push(d[h]);return b};q=function(a,f,g){"[object Array]"!==e.toString.call(f)?(g=f,d[a]="function"!==typeof g?g:g()):d[a]=g.apply(b,c(f))};H=function(a,f){if("string"!==typeof a)f.apply(b,c(a));else return d[a.split("/").pop()]}})();q("env",{version:"3_43_1_pch_796",
logServer:"//p.po.st",cdnServer:("https:"==M.location.protocol?"https://s.po.st":"http://i.po.st")+"/static/v3",cdnServerNonSecure:"http://i.po.st/static/v3",shareServer:"//po.st",widgetBuildNumber:"3.43.1-pch-796",displayCmUrl:"//rs.gwallet.com/r1/cm/t0p23",displayBcmUrl:"//rs.gwallet.com/r1/pixel/x8208",ieVersion:J,isMobile:K});q("enumeration",{none:"none",post:"post",postShare:"post-share",copypaste:"copypaste",more:"more",pinterest:"pinterest",pinterestImage:"pinterest-image",services:"services",
retina:"retina",print:"print",favorites:"favorites",popular:"popular",widgetVersion:{old:"2.1",neu:"3.0"},events:{click:"click",mouseover:"mouseover",mouseout:"mouseout",resize:"resize"},look:{square:"square",nativ:"native",looknative:"looknative",postShare:"post-share"},size:{small:"small",medium:"medium",large:"large",xlarge:"xlarge"},counter:{name:"counter",none:"none",show:"show",vertical:"vertical",horizontal:"horizontal"},layout:{name:"layout",vertical:"vertical",horizontal:"horizontal"},viewType:{button:"button",
widget:"widget",list:"list",popup:"popup.popular",popupList:"popup.list",aftershare:"popup.aftershare"},widgetType:{singleButton:"singleButton",buttonCollection:"buttonCollection"},dataloggerEvent:{view:"view",share:"share",more:"more",clickback:"clickback",copyPaste:"copy-paste"},shareMode:{classic:"classic"},initType:{immediate:"immediate",lazy:"lazy"},container:{custombox:"custombox"}});q("globals",function(){var b;b=window;return{win:b,navigator:b.navigator,document:b.document,docElement:b.document.documentElement,
appVersion:b.navigator.appVersion,appName:b.navigator.appName,notDefined:void 0,ArrayProto:Array.prototype,ObjProto:Object.prototype}});q("util",["globals"],function(b){var c,e={};c=function(){return(65536*(1+Math.random())|0).toString(16).substring(1)};e.systemLanguage=function(){return b.navigator.userLanguage||b.navigator.language||b.navigator.systemLanguage};e.redirect=function(d){b.win.location.replace(d)};e.hasProperty=function(d,a){return b.ObjProto.hasOwnProperty.call(d,a)};e.each=function(d,
a){var b,c;if(this.isCollection(d)||this.isArray(d)){if(d=this.HTMLCollectionToArray(d),this.isFunction(a))for(b=d.length,c=0;c<b&&!1!==a(c,d[c]);c++);}else if(this.isObject(d)&&this.isFunction(a))for(b in d)if(this.hasProperty(d,b)&&!1===a(b,d[b]))break;return this};e.eachTimes=function(d,a){var b;if(this.isFunction(a))for(b=0;b<d;b++)a(b,d);return this};e.isFunction=function(d){return"function"===typeof d};e.getPropertyByPath=function(d,a){var c,g=d;a&&(c=a.split("."),this.each(c,function(a,d){g=
e.isUndefined(g)?b.notDefined:g[d]}));return g};e.setPropertyByPath=function(d,a,b){var c;a=a.split(".");for(c=0;c<a.length-1;c+=1)d=d[a[c]];d[a[a.length-1]]=b};e.prop=function(d,a,b){if(b)e.setPropertyByPath(d,a,b);else return e.getPropertyByPath(d,a)};e.isString=function(d){return"string"===typeof d};e.isArray=function(d){return"[object Array]"===b.ObjProto.toString.call(d)};e.arrayToString=function(d,a){var b=d;a=a||",";e.isArray(d)&&(b=d.join(a));return b};e.isCollection=function(d){var a=b.ObjProto.toString.call(d),
c=!1;"[object HTMLCollection]"===a||"[object NodeList]"===a?c=!0:e.isObject(d)&&e.hasProperty(d,"length")&&(0===d.length||"object"===typeof d[0]&&0<d[0].nodeType)&&(c=!0);return c};e.addToFavorites=function(d,a,c){try{b.win.external.AddFavorite(a,d)}catch(e){try{b.win.sidebar.addPanel(d,a,"")}catch(h){this.isDefined(c)&&c()}}};e.closeThisWindow=function(){b.win.open("","_self");b.win.close()};e.notify=function(d){b.win.alert(d)};e.print=function(){"Opera"===b.appName?setTimeout(b.win.print,1E3):b.win.print()};
e.openWindow=function(d,a){return b.win.open(d,"",a)};e.HTMLCollectionToArray=function(d){var a=[],b;if(this.isCollection(d)){for(b=0;b<d.length;b++)a[b]=d[b];d=a}return d};e.GUID=function(d){var a="";d=d?"-":"";this.eachTimes(8,function(b,e){a=b<e-1?a+(c()+d):a+c()});return a};e.rand=function(){return Math.round(1E4*Math.random())};e.getTimeStamp=function(){return(new Date).getTime()};e.toInt=function(d){return d>>0};e.prepareQueryParams=function(d){var a="?";this.each(d,function(d,b){a+=encodeURIComponent(d)+
"\x3d"+encodeURIComponent(b)+"\x26"});return a};e._prepareQueryParams=function(d){var a="?",b=this;this.each(d,function(d,h){b.isArray(h)?b.each(h,function(b,h){a+=encodeURIComponent(d)+"\x3d"+encodeURIComponent(h)+"\x26"}):a+=encodeURIComponent(d)+"\x3d"+encodeURIComponent(h)+"\x26"});return a};e.bind=function(d,a){return function(){return a.apply(d,arguments)}};e.bindAll=function(d,a){var c=a||b.ArrayProto.slice.call(arguments,1)[0],g,h;for(g=0;g<c.length;g++)h=c[g],d[h]=e.bind(d,d[h]);return d};
e.mergeObjects=function(d,a,b){var c,h;e.isObject(a)||(a={});for(c in d)h=d[c],e.hasProperty(d,c)&&(b&&"on"!==c.substr(0,2)||!b)&&(!e.isObject(h)||e.isArray(h)||e.isDOMElement(h)?a[c]=h:a[c]=e.mergeObjects(h,a[c],b));return a};e.isDOMElement=function(d){return"object"===typeof HTMLElement?d instanceof HTMLElement:d&&"object"===typeof d&&null!==d&&1===d.nodeType&&"string"===typeof d.nodeName};e.isDefined=function(d){var a=!0;if(e.isNull(d)||e.isUndefined(d))a=!1;return a};e.arrayMaximum=function(d){return Math.max.apply(Math,
d)};e.template=function(d,a){this.each(a,function(a,b){d=e.replaceAll(d,"{{"+a+"}}",b)});return d};e.replaceAll=function(d,a,b){return d.replace(RegExp(a,"g"),b)};e.trim=function(d){return e.replaceAll(d," ","")};e.unMergeArrays=function(d,a,b){var c=[];b?(c=d.slice(0),e.each(c,function(b,k){var c=e.indexOfArray(a,k);-1===c&&(c=e.indexOfArray(d,k),d.splice(c,1))})):e.each(a,function(a,b){var c=e.indexOfArray(d,b);-1!==c&&d.splice(c,1)});return d};e.stringToArray=function(d,a){return e.isString(d)?
e.trim(d).split(a||","):d};e.hashParams=function(d,a){var b=d.split("\x26"),c={},h;1===b.length?(h=b[0].split("\x3d"),c[h[0]]=h[1]):this.each(b,function(b,d){h=d.split("\x3d");-1<e.indexOfArray(a,h[0])&&(c[h[0]]=h[1])});return c};e.indexOfArray=function(d,a){var c=-1;b.ArrayProto.indexOf?c=d.indexOf(a):this.each(d,function(b,d){d===a&&(c=b)});return c};e.mergeToArray=function(b,a){b=b||[];this.isCollection(a)||this.isArray(a)||(a=[a]);return b.concat(a)};e.fixShema=function(b){1===b.split("://").length&&
(b="http://"+b);return b};e.isUndefined=function(d){return d===b.notDefined};e.isNull=function(b){return null===b};e.isBoolean=function(b){return"boolean"===typeof b};e.isObject=function(b){return"object"===typeof b};e.askUser=function(d,a){return b.win.prompt(d||"",a||"")};e.cloneObj=function(b){var a={};e.isObject(b)&&e.each(b,function(b,d){a[b]=d});return a};e.uniq=function(b){var a={},c=[];e.each(b,function(b,d){e.hasProperty(a,d)||(a[d]=!0,c.push(d))});return c};e.isObjEmpty=function(b){var a;
if(e.isObject(b))for(a in b)if(e.hasProperty(b,a))return!1;return!0};e.removeTrackingParam=function(b){return b.replace(/[\?&#]{1}([a-z\d]{16})\.([\d]{2})(?:|$)/i,"")};e.sGUID=function(){var b="";this.eachTimes(16,function(){b+="abcdefghijklmopqrstuvwxyzABCDEFGHIJKLMOPQRSTUVWXYZ0123456789".charAt(Math.round(59*Math.random()))});return b};e.countWords=function(b){if(b)return b.replace(/(^\s*)|(\s*$)/gi,"").replace(/[ ]{2,}/gi," ").replace(/\n /,"\n").split(" ").length};e.isFlashInstalled=function(){var d=
b.navigator.mimeTypes,a=!1,c=b.navigator.plugins,e=b.win;if(c&&c.length)d&&d["application/x-shockwave-flash"]&&d["application/x-shockwave-flash"].enabledPlugin&&(a=!0);else if(-1===b.navigator.appVersion.indexOf("Mac")&&e.execScript)try{new e.ActiveXObject("ShockwaveFlash.ShockwaveFlash"),a=!0}catch(h){}return a};e.tryValue=function(b,a){e.isFunction(a)&&a(b);return this};e.strToBoolean=function(d){return this.isString(d)?"true"===d:b.notDefined};e.getObjectKeys=function(b){var a=[],c;if(Object.keys)a=
Object.keys(b);else if(this.isObject(b))for(c in b)b.hasOwnProperty(c)&&a.push(c);return a};e.extend=function(b,a){var c,e=this.cloneObj(b);for(c in a)a.hasOwnProperty(c)&&(e[c]=a[c]);return e};return e});q("pubsub",["util"],function(b){var c={},e={};c.subscribe=function(d,a,c){var g=b.GUID(!1),h=e;c&&(h=c.triggers);if(!h[d]||c)h[d]=[];h[d].push({id:g,fn:a});return g};c.publish=function(d,a,c){var g=e;c&&(g=c.triggers);g[d]&&(c=g[d],b.each(c,function(b,c){c.fn(d,a)}))};return c});q("status",["util"],
function(b){var c,e=[],d={},a={},f=0,g=!1;c="pt ru vGUID mGUID sGUID bGUID label clicked".split(" ");a.getFetchingState=function(){return g};a.setFetchingState=function(b){g=b};a.optout=function(a){b.isUndefined(a)||(f=a);return f};a.getRestrictedOptOutParams=function(){return c};a.addInterstitial=function(a,d){b.isUndefined(this.getInterstitial(a))&&e.push({publisherKey:a,value:d})};a.getInterstitial=function(a){var d;b.each(e,function(b,c){if(c.publisherKey===a)return d=c.value,!1});return d};a.addCustomShorteners=
function(a,c){b.isUndefined(this.getCustomShortener(a))&&(d[a]=c)};a.getCustomShortener=function(b){return d[b]};return a});q("dom",["util","globals"],function(b,c){var e=c.document,d={},a,f,g;a=function(a,d){var c=[],g,f=[];e.getElementsByClassName?c=d.getElementsByClassName(a):d.querySelectorAll?c=d.querySelectorAll("."+a):(g=RegExp("(^|\\s)"+a+"(\\s|$)"),f=d.getElementsByTagName("*"),b.each(f,function(b,a){g.test(a.className)&&c.push(a)}));return c};g=function(a,c,e,g,f){var m;m=function(s){e(s,
a);(b.isUndefined(f)||f)&&d.preventDefault(s);d.stopPropagation(s);g&&d.removeEvent(a,c,m)};a.addEventListener?a.addEventListener(c,m,!1):a.attachEvent?a.attachEvent("on"+c,m):a["on"+c]=m;return m};f=function(a){b.isString(a)&&(a=d.getBy(a));b.isCollection(a)||(a=[a]);return a};d.returnElement=f;d.createElement=function(a,c){var g=e.createElement(a);b.each(c,function(a,b){"innerHTML"===a?g.innerHTML=b:"className"===a?g.className=b:"style"===a?d.setStyle(g,b):g.setAttribute(a,b)});return g};d.getBy=
function(c,d){var g=[],f=c.split(" "),l=[],m;d=d||e;1<f.length&&(m=f[1].toUpperCase(),c=f[0],f=null);switch(c.charAt(0)){case "#":f=e.getElementById(c.substr(1));break;case ".":f=a(c.substr(1),d);break;default:f=d.getElementsByTagName(c)}b.isDefined(f)&&(f=b.HTMLCollectionToArray(f),m&&b.each(f,function(a,c){b.each(c.childNodes,function(a,b){b.nodeName===m&&g.push(b)})}),l=1<g.length?g:f);return l};d.setStyle=function(a,c){a=f(a)[0];b.each(c,function(b,c){a.style[b]=c})};d.setTitle=function(a){c.document.title=
a};d.hasChild=function(a,b){for(var c=b.parentNode;null!==c;){if(c===a)return!0;c=c.parentNode}return!1};d.listenPostMessage=function(a,b){b=b||c.win;b.postMessage&&d.addEvent(b,"message",function(b){a&&a(b.data,b.origin)})};d.isHidden=function(a){return"none"===a.style.display};d.appendTo=function(a,b){return f(a)[0].appendChild(b)};d.insertHTML=function(a,b){a.innerHTML+=b};d.html=function(a,b){var c=d;b?a.innerHTML=b:c=a.innerHTML;return c};d.getNodeText=function(a){return a.innerText||a.textContent};
d.removeNode=function(a){a&&a.parentNode&&a.parentNode.removeChild(a)};d.loadScript=function(a,b){var c,d,e;c=this.createElement("script",{src:a,async:!0});c.onload=c.onreadystatechange=function(){d||this.readyState&&"loaded"!==this.readyState&&"complete"!==this.readyState||(d=!0,c.onload=c.onreadystatechange=null,b&&b(),c&&c.parentNode&&c.parentNode.removeChild(c))};e||(e=this.getBy("head")[0]);this.appendTo(e,c)};d.addEvent=function(a,c,d,e,f){var m;b.isArray(a)?b.each(a,function(a,b){m=g(b,c,d,
e,f)}):m=g(a,c,d,e,f);return m};d.removeEvent=function(a,b,c){a.removeEventListener?a.removeEventListener(b,c,!1):a.detachEvent?a.detachEvent("on"+b,c):a["on"+b]=null};d.attr=function(a,c,d){var e;if(d)a.setAttribute(c,d);else return(e=a.getAttribute&&a.getAttribute(c)||null)||b.each(a.attributes,function(a,b){b.nodeName===c&&(e=b.nodeValue)}),"boolean"===typeof e?e.toString():e};d.addClass=function(a,b){f(a)[0].className+=" "+b};d.classList=function(a,c){var d=(f(a)[0].className||"").split(" "),
e=!1;c&&(c=b.isArray(c)?c:[c],b.each(c,function(a,c){if(-1<b.indexOfArray(d,c))return e=!0,!1}));return c?e:d};d.setClass=function(a,b){f(a)[0].className=b};d.replaceClass=function(a,b,c){a=f(a)[0];a.className=a.className.replace(b,c)};d.loadCSS=function(a){a=this.createElement("link",{rel:"stylesheet",type:"text/css",href:a,media:"all"});this.appendTo("head",a)};d.ready=function(a){function b(){m||(m=!0,a())}function d(){if(!m&&e.body)try{g.doScroll("left"),b()}catch(a){setTimeout(d,0)}}var g=document.documentElement,
f=e.readyState,m=!1;"complete"===f&&b();e.addEventListener?e.addEventListener("DOMContentLoaded",function(){b()},!1):e.attachEvent&&(g.doScroll&&c.win===c.win.top&&d(),e.attachEvent("onreadystatechange",function(){"complete"===f&&b()}));c.win.addEventListener?c.win.addEventListener("load",b,!1):c.win.attachEvent&&c.win.attachEvent("onload",b)};d.stopPropagation=function(a){a=a||c.win.event;a.stopPropagation?a.stopPropagation():a.cancelBubble=!0};d.doc=function(a){return a?b.getPropertyByPath(e,a):
e};d.win=function(a){return a?b.getPropertyByPath(c.win,a):c.win};d.parent=function(a,b){return b?a.parentNode[b]:a.parentNode};d.insertBefore=function(a,b){a.parentNode.insertBefore(b,a.nextSibling)};d.childs=function(a,c){var d=[];a=f(a)[0];c=c.toUpperCase();b.each(a.childNodes,function(a,b){c===b.tagName&&d.push(b)});return d};d.preventDefault=function(a){a=a||c.win.event;a.preventDefault?a.preventDefault():a.returnValue=!1};d.display=function(a,b){if(a=f(a)[0])switch(b){case "hide":a.style.display=
"none";break;default:a.style.display="block"}};d.getClientOffset=function(){var a={};c.win.opera?(a.w=c.win.innerWidth,a.h=c.win.innerHeight):"CSS1Compat"===e.compatMode?(a.w=e.documentElement.clientWidth,a.h=e.documentElement.clientHeight):(a.w=e.body.clientWidth,a.h=e.body.clientHeight);return a};d.getScrollPosition=function(){return{x:c.win.pageXOffset||e.documentElement.scrollLeft,y:c.win.pageYOffset||e.documentElement.scrollTop}};d.getElementOffset=function(a){return a.getBoundingClientRect?
this.getOffsetRect(a):this.getOffsetSum(a)};d.getOffsetRect=function(a){a=a.getBoundingClientRect();var b=e.body,d=e.documentElement,g=a.top+(c.win.pageYOffset||d.scrollTop||b.scrollTop)-(d.clientTop||b.clientTop||0);return{left:Math.round(a.left+(c.win.pageXOffset||d.scrollLeft||b.scrollLeft)-(d.clientLeft||b.clientLeft||0)),top:Math.round(g)}};d.getOffsetSum=function(a){for(var c=0,d=0;a;)d+=b.toInt(a.offsetLeft),c+=b.toInt(a.offsetTop),a=a.offsetParent;return{left:d,top:c}};d.getParentByClassList=
function(a,b){for(var c;a.parentNode&&"body"!==a.localName;)if(this.classList(a.parentNode,b)){c=a.parentNode;break}else a=a.parentNode;return c};d.getElementSize=function(a){return{height:a.offsetHeight,width:a.offsetWidth}};d.getTransitionEndEventName=function(){var a={transition:"transitionend",WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend"},b,d;for(b in a)if(a.hasOwnProperty(b)&&c.document.body.style[b]!==c.notDefined){d=a[b];break}return d};d.onTransitionEnd=function(a,
e){var g={transition:"transitionend",WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend"},f,l;for(f in g)if(g.hasOwnProperty(f)&&c.document.body.style[f]!==c.notDefined){l=g[f];break}l&&b.isFunction(e)&&d.addEvent(a,l,e,!0)};d.isNodeElement=function(a){return 0<a.nodeType};d.getWindowHeight=function(){return c.win.innerHeight};d.removeClass=function(a,c){var d=[];b.each(this.classList(a),function(a,b){b!==c&&d.push(b)});this.setClass(a,d.join(" "))};return d});q("copyPaste",["util",
"dom","globals"],function(b,c,e){var d;d={additionalScroll:20,postBlockClassName:"copy-paste-block",dublication:!1};return{init:function(a){this.options=b.mergeObjects(d,a||{});b.bindAll(this,["copyCallback"]);c.addEvent(e.document.body,"copy",this.copyCallback,!1,!1)},hasImage:function(){var a=!1,d;b.isDefined(e.win.getSelection)?d=e.win.getSelection().getRangeAt(0).cloneContents():(d=c.createElement("div"),d.innerHTML=e.document.selection.createRange().htmlText);d=d.querySelectorAll("img");return d.length?
a=this.checkSizeImages(d):a},checkSizeImages:function(a){var c=this.options.copypasteImageSize,d=!1;b.each(a,function(a,b){e.document.body.appendChild(b);c[1]<=b.offsetHeight&&c[0]<=b.offsetWidth&&(d=!0);e.document.body.removeChild(b)});return d},copyCallback:function(a){a=a.target||a.srcElement;var c=b.isDefined(e.win.getSelection)?getSelection().toString():e.document.selection.createRange().text;(c.replace(/^\s+|\s+$/g,"").length||this.hasImage())&&"TEXTAREA"!==a.nodeName&&"INPUT"!==a.nodeName&&
(this.checkForUrl(c.replace(/^\s+|\s+$/g,""))||this.formatCopiedText(a,c,this.options.onCopy))},formatCopiedText:function(a,c,d){a=c.replace(/^\s+|\s+$/g,"").split(/\s+/).length;var h,k;e.document.selection&&e.document.selection.createRange||(h=e.win.getSelection().getRangeAt(0).cloneRange());if(a>=this.options.min||this.hasImage())b.isFunction(d)&&d(c,a>=this.options.min),this.options.tracking&&this.textUpdater(),e.document.selection&&e.document.selection.createRange||setTimeout(function(){k=e.win.getSelection();
k.removeAllRanges();k.addRange(h)},0)},checkForUrl:function(a){return(/(https?:\/\/[^\s]+)/g.test(a)||0===a.indexOf("www"))&&-1===a.indexOf(" ")},appendUrlToImages:function(a){var d;(a=c.getBy("img",a))&&b.each(a,function(a,b){d=c.createElement("p",{innerHTML:"image: "+b.src});b.parentNode.insertBefore(d,b)})},textUpdater:function(){var a,b,d,h,k,n=this,v=c.getScrollPosition();if(n.options.dublication)return!1;n.options.dublication=!0;a=c.createElement("a",{href:this.options.url,innerHTML:encodeURIComponent(this.options.url),
style:{color:"#003399"}});a=this.options.msg.replace(RegExp("{link}","g"),a);k=c.createElement("span",{innerHTML:"\x3cbr/\x3e"+a});h=c.createElement("div",{className:this.options.postBlockClassName});e.document.selection&&e.document.selection.createRange?(d=c.createElement("div",{className:this.options.postBlockClassName,style:{left:v.x+this.options.additionalScroll+"px",top:v.y+this.options.additionalScroll+"px"}}),c.appendTo(c.getBy("body"),d),b=e.document.selection.createRange(),h.innerHTML="\x3cbr/\x3e"+
b.htmlText,c.appendTo(h,k),c.appendTo(d,h),this.appendUrlToImages(h),a=e.document.body.createTextRange(),a.moveToElementText(h),a.select(),setTimeout(function(){c.removeNode(d);""!==b.text&&(b.select(),e.document.body.scrollLeft=e.document.documentElement.scrollLeft=v.x+n.options.additionalScroll+"px",e.document.body.scrollTop=e.document.documentElement.scrollTop=v.y+n.options.additionalScroll+"px");n.options.dublication=!1},0)):(a=e.win.getSelection(),b=e.document.createRange(),c.appendTo(c.getBy("body"),
h),c.appendTo(h,a.getRangeAt(0).cloneContents()),c.appendTo(h,k),this.appendUrlToImages(h),b.selectNode(h),a.removeAllRanges(),a.addRange(b),setTimeout(function(){c.removeNode(h);n.options.dublication=!1},0))}}});q("support",["util","globals","pubsub","env","enumeration"],function(b,c,e,d,a){c={};var f=!1;e.subscribe("application.ready",function(a){f=!0});c.fixPinterest=function(a){if("imageURL"===a||"Image"===a||"pinterestImage"===a)a="image";return a};c.appReady=function(a){var c=setInterval(function(){f&&
(b.isFunction(a)&&a(),clearInterval(c))},1)};c.fixPinterestPwConf=function(a){var c={},d=this;b.each(a,function(a,b){c[d.fixPinterest(a)]=b});return c};c.updateServices=function(c){var e,k;c.p_share_popup&&(c.p_share_popup=b.arrayToString(c.p_share_popup),d.isMobile&&(c.p_share_popup=b.replaceAll(c.p_share_popup,a.favorites,"")),c.p_share_popup=b.stringToArray(c.p_share_popup));c.more_popup&&(c.more_popup=b.arrayToString(c.more_popup),d.isMobile&&(c.more_popup=b.replaceAll(c.more_popup,a.favorites,
""),d.isMobile.iosV||(c.more_popup=b.replaceAll(c.more_popup,a.print,""))),c.more_popup=b.stringToArray(c.more_popup));c.exclude&&(b.isString(c.exclude)?e=k=b.stringToArray(c.exclude):b.isObject(c.exclude)&&(c.exclude.popup&&(e=b.stringToArray(c.exclude.popup)),c.exclude.popular&&(k=b.stringToArray(c.exclude.popular))),c.exclude={popup:e||[],popular:k||[]});d.isMobile&&(c.exclude=c.exclude||{popup:[],popular:[]},c.exclude.popup=c.exclude.popup.concat([a.favorites]),c.exclude.popular=c.exclude.popular.concat([a.favorites]));
d.isMobile&&!d.isMobile.iosV&&(c.exclude.popup=c.exclude.popup.concat([a.print]),c.exclude.popular=c.exclude.popular.concat([a.print]));return c};return c});q("scriptParams",["util","dom"],function(b,c){var e,d={},a,f;e=["publisherKey","init","lc","retina","clean"];f=function(){b.each(c.getBy("script"),function(c,d){var k=d.src;-1<k.search(/post-widget.js/)&&(a=(k=k.split("#")[1])?b.hashParams(k,e):{})})};d.get=function(b){a||f();return a[b]};return d});q("pwConfig",["util","dom","enumeration","globals"],
function(b,c,e,d){var a={},f={},g;g={publisherKey:d.notDefined,clean:!1,copypaste:!0,copypasteOptions:{minWords:7,copypasteImageSize:[100,100]},onshare:null,locale:null,mobileOverlay:!1,shareQuote:!0,shareQuoteOptions:{buttons:d.notDefined,more_popup_exclude:d.notDefined},onload:null,track:!0,trackAddressBar:!1,init:d.notDefined,mode:e.shareMode.classic,version:d.notDefined,vguid:d.notDefined,retina:!1,gaTrackEvents:{enabled:!1,nonInteraction:!1},gaTrackSocialInteractions:{enabled:!1,pagePath:d.notDefined},
i18n:{readMore:d.notDefined},readMoreUrl:d.notDefined,defaults:{view_type:d.notDefined,hidePopupDelay:1500,transformations:{tracking:!0,shorten:d.notDefined},afterShare:{baseElement:d.notDefined,center:!1,offset:[0,0]},shareAgain:!0,afterShareText:!0,onshowaftershare:d.notDefined,onhideaftershare:d.notDefined,onbuttonclick:d.notDefined,sharePopups:!1,image:d.notDefined,imageURL:d.notDefined,pinterestImage:d.notDefined,url:b.removeTrackingParam(c.doc("location.href")),title:c.doc("title"),referrer:d.notDefined,
showPost:!0,services:{twitter:{via:"po_st"},p_share_popup:d.notDefined,more_popup:d.notDefined,exclude:d.notDefined},size:e.size.small,buttons:["facebook","twitter","linkedin"],click:!1,button:d.notDefined,vertical:!1,counter:d.notDefined,internal:{sharedVia:d.notDefined}}};a.val=function(a){return b.getPropertyByPath(g,a)};a.update=function(c,d){b.isObject(c)&&(g=b.mergeObjects(c,g),d&&(f=b.mergeObjects(c,f)));return a};a.setUserPwConfig=function(a){b.isObject(a)&&(f=b.mergeObjects(a,f))};a.getUserPwConfig=
function(){return f};a.isDefinedByUser=function(a){return!b.isUndefined(b.getPropertyByPath(f,a))};return a});q("i18n",["util","pwConfig","env","enumeration"],function(b,c,e,d){var a=void 0,f={en:["us"],de:["de"],fr:["fr"],it:["it"],pt:["br"],ru:["ru"],ja:["jp"],es:["la"],zh:["cn"],pl:["pl"],cs:["cs"],da:["da"],nl:["nl"],no:["no"],sv:["sv"],fi:["fi"],ar:["ar"]},g={share:{"en-us":"Share","de-de":"Teilen","fr-fr":"Partager","it-it":"Condividi","pt-br":"Compartilhar","ru-ru":"\u041f\u043e\u0434\u0435\u043b\u0438\u0442\u044c\u0441\u044f",
"ja-jp":"\u5171\u6709\u3059\u308b","es-la":"Compartir","zh-cn":"\u5206\u4eab","pl-pl":"Udost\u0119pnij","cs-cs":"Sd\u00edlet","da-da":"Del","nl-nl":"Deel","no-no":"Del","sv-sv":"Dela","fi-fi":"Jaa","ar-ar":"\u0645\u0634\u0627\u0631\u0643\u0629"},shareTitle:{"en-us":"Share with friends","de-de":"Mit Freunden teilen","fr-fr":"Partager avec vos amis","it-it":"Condividi con gli amici","pt-br":"Compartilhar com amigos","ru-ru":"\u041f\u043e\u0434\u0435\u043b\u0438\u0442\u044c\u0441\u044f \u0441 \u0434\u0440\u0443\u0437\u044c\u044f\u043c\u0438",
"ja-jp":"\u53cb\u9054\u3068\u5171\u6709\u3059\u308b","es-la":"Compartir con amigos","zh-cn":"\u4e0e\u597d\u53cb\u5206\u4eab","pl-pl":"Udost\u0119pnij znajomym","cs-cs":"Sd\u00edlen\u00ed s p\u0159\u00e1teli","da-da":"Del med venner","nl-nl":"Deel met vrienden","no-no":"Del med venner","sv-sv":"Dela med v\u00e4nner","fi-fi":"Jaa yst\u00e4vien kanssa","ar-ar":"\u0634\u0627\u0631\u0643 \u0645\u0639 \u0627\u0644\u0623\u0635\u062f\u0642\u0627\u0621"},privacy:{"en-us":"Privacy","de-de":"Datenschutz","fr-fr":"Confidentialit\u00e9",
"it-it":"Privacy","pt-br":"Privacidade","ru-ru":"\u041f\u0440\u0438\u0432\u0430\u0442\u043d\u043e\u0441\u0442\u044c","ja-jp":"\u30d7\u30e9\u30a4\u30d0\u30b7\u30fc","es-la":"Privacidad","zh-cn":"\u9690\u79c1\u653f\u7b56","pl-pl":"Prywatno\u015b\u0107","cs-cs":"Ochrana osobn\u00edch \u00fadaj\u016f","da-da":"Privat","nl-nl":"Privacy","no-no":"Personvern","sv-sv":"Sekretess","fi-fi":"Yksityisyys","ar-ar":"\u0627\u0644\u062e\u0635\u0648\u0635\u064a\u0629"},powered:{"en-us":"Powered by Po.st","de-de":"Bereitgestellt von Po.st",
"fr-fr":"Op\u00e9r\u00e9 par Po.st","it-it":"Con tecnologia Po.st","pt-br":"Habilitado por Po.st","ru-ru":"\u0420\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u043d\u0430 \u0442\u0435\u0445\u043d\u043e\u043b\u043e\u0433\u0438\u0438 Po.st","ja-jp":"Po.st\u306b\u3088\u308b\u63d0\u4f9b","es-la":"Publicado gracias a Po.st","zh-cn":"\u91c7\u7528 Po.st \u5e73\u53f0","pl-pl":"Dzia\u0142a w oparciu o rozwi\u0105zania Po.st","cs-cs":"Vyu\u017e\u00edv\u00e1 slu\u017ebu Po.st","da-da":"St\u00f8ttet af Po.st",
"nl-nl":"Mogelijk gemaakt door Po.st","no-no":"Levert av Po.st","sv-sv":"Byggd med Po.st","fi-fi":"Palvelun tarjoaa Po.st","ar-ar":"\u0645\u064f\u0634\u063a\u0651\u0644 \u0628\u0648\u0627\u0633\u0637\u0629 Po.st"},more:{"en-us":"More","de-de":"Mehr","fr-fr":"Plus","it-it":"Altro","pt-br":"Mais","ru-ru":"\u0415\u0449\u0435","ja-jp":"\u3082\u3063\u3068","es-la":"M\u00e1s","zh-cn":"\u66f4\u591a","pl-pl":"Wi\u0119cej","cs-cs":"V\u00edce","da-da":"Mere","nl-nl":"Meer","no-no":"Mer","sv-sv":"Mer","fi-fi":"Lis\u00e4\u00e4",
"ar-ar":"\u0627\u0644\u0645\u0632\u064a\u062f"},moreServices:{"en-us":"More services","de-de":"Weitere dienste","fr-fr":"Plus de services","it-it":"Altri servizi","pt-br":"Mais servi\u00e7os","ru-ru":"\u0412\u0441\u0435 \u0441\u043b\u0443\u0436\u0431\u044b","ja-jp":"\u305d\u306e\u4ed6\u306e\u30b5\u30fc\u30d3\u30b9","es-la":"M\u00e1s servicios","zh-cn":"\u66f4\u591a\u670d\u52a1","pl-pl":"Inne us\u0142ugi","cs-cs":"Dal\u0161\u00ed slu\u017eby","da-da":"Flere enheder","nl-nl":"Meer diensten","no-no":"Flere tjenester",
"sv-sv":"Fler tj\u00e4nster","fi-fi":"Lis\u00e4\u00e4 palveluita","ar-ar":"\u0627\u0644\u0645\u0632\u064a\u062f \u0645\u0646 \u0627\u0644\u062e\u062f\u0645\u0627\u062a"},email:{"en-us":"Email","de-de":"E-Mail","fr-fr":"E-mail","it-it":"E-mail","pt-br":"Email","ru-ru":"Email","ja-jp":"E\u30e1\u30fc\u30eb","es-la":"Correo electr\u00f3nico","zh-cn":"\u7535\u5b50\u90ae\u4ef6","pl-pl":"E-mail","cs-cs":"E-mail","da-da":"E-mail","nl-nl":"E-mail","no-no":"E-post","sv-sv":"E-post","fi-fi":"S\u00e4hk\u00f6posti",
"ar-ar":"\u0627\u0644\u0628\u0631\u064a\u062f \u0627\u0644\u0625\u0644\u0643\u062a\u0631\u0648\u0646\u064a"},favorites:{"en-us":"Favorites","de-de":"Favoriten","fr-fr":"Favoris","it-it":"Preferiti","pt-br":"Favoritos","ru-ru":"\u0418\u0437\u0431\u0440\u0430\u043d\u043d\u043e\u0435","ja-jp":"\u304a\u6c17\u306b\u5165\u308a","es-la":"Favoritos","zh-cn":"\u6536\u85cf\u5939","pl-pl":"Ulubione","cs-cs":"Obl\u00edben\u00e9","da-da":"Favoritter","nl-nl":"Favorieten","no-no":"Favoritter","sv-sv":"Favoriter",
"fi-fi":"Suosikit","ar-ar":"\u0627\u0644\u062a\u0641\u0636\u064a\u0644\u0627\u062a"},print:{"en-us":"Print","de-de":"Drucken","fr-fr":"Imprimer","it-it":"Stampa","pt-br":"Imprimir","ru-ru":"\u0420\u0430\u0441\u043f\u0435\u0447\u0430\u0442\u0430\u0442\u044c","ja-jp":"\u5370\u5237","es-la":"Imprimir","zh-cn":"\u6253\u5370","pl-pl":"Drukuj","cs-cs":"Tisk","da-da":"Print","nl-nl":"Druk af","no-no":"Skriv ut","sv-sv":"Skriv ut","fi-fi":"Tulosta","ar-ar":"\u0637\u0628\u0627\u0639\u0629"},sharingSuccessful:{"en-us":"Sharing Successful!",
"de-de":"Teilen erfolgreich!","fr-fr":"Partage effectu\u00e9!","it-it":"Condivisione riuscita!","pt-br":"Compartilhamento Feito!","ru-ru":"\u0412\u044b \u0443\u0441\u043f\u0435\u0448\u043d\u043e \u043f\u043e\u0434\u0435\u043b\u0438\u043b\u0438\u0441\u044c \u0441\u0441\u044b\u043b\u043a\u043e\u0439","ja-jp":"\u304d\u3061\u3093\u3068\u5171\u6709\u3055\u308c\u307e\u3057\u305f","es-la":"Compartido exitosamente","zh-cn":"\u5206\u4eab\u6210\u529f","pl-pl":"Udost\u0119pnianie zako\u0144czone powodzeniem",
"cs-cs":"Sd\u00edlen\u00ed bylo \u00fasp\u011b\u0161n\u00e9","da-da":"Succesfuld deling","nl-nl":"Delen gelukt","no-no":"Deling vellykket","sv-sv":"Delningen har lyckats","fi-fi":"Jakaminen onnistui","ar-ar":"\u062a\u0645\u062a \u0627\u0644\u0645\u0634\u0627\u0631\u0643\u0629 \u0628\u0646\u062c\u0627\u062d"},successfullyShared:{"en-us":"You've successfully shared using Po.st!","de-de":"Sie haben etwas erfolgreich \u00fcber Po.st geteilt!","fr-fr":"Vous avez partag\u00e9 en utilisant Po.st !","it-it":"Hai effettuato una condivisione usando Po.st!",
"pt-br":"Voc\u00ea compartilhou com sucesso usando Po.st!","ru-ru":"\u0412\u044b \u0443\u0441\u043f\u0435\u0448\u043d\u043e \u043f\u043e\u0434\u0435\u043b\u0438\u043b\u0438\u0441\u044c \u043f\u0440\u0438 \u043f\u043e\u043c\u043e\u0449\u0438 Po.st!","ja-jp":"Po.st\u3092\u4f7f\u3063\u3066\u304d\u3061\u3093\u3068\u5171\u6709\u51fa\u6765\u307e\u3057\u305f\uff01","es-la":"\u00a1Haz compartido exitosamente usando Po.st!","zh-cn":"\u5df2\u6210\u529f\u901a\u8fc7 Po.st \u5206\u4eab\uff01","pl-pl":"Udost\u0119pni\u0142e\u015b tre\u015bci, korzystaj\u0105c z serwisu Po.st!",
"cs-cs":"\u00dasp\u011b\u0161n\u011b jste sd\u00edleli pomoc\u00ed slu\u017eby Po.st.","da-da":"Du har med succes delt med Po.st!","nl-nl":"Je hebt succesvol gedeeld middels Po.st!","no-no":"Din deling med Po.st var vellykket!","sv-sv":"Du har lyckats dela med hj\u00e4lp av Po.st!","fi-fi":"Jakaminen Po.stia k\u00e4ytt\u00e4en onnistui!","ar-ar":"\u0644\u0642\u062f \u0642\u0645\u062a \u0628\u0639\u0645\u0644 \u0645\u0634\u0627\u0631\u0643\u0629 \u0628\u0646\u062c\u0627\u062d \u0628\u0627\u0633\u062a\u062e\u062f\u0627\u0645 Po.st!"},
shareAgain:{"en-us":"Share again!","de-de":"Mehr teilen!","fr-fr":"Partager de nouveau!","it-it":"Condividi ancora!","pt-br":"Compartilhar novamente!","ru-ru":"\u041f\u043e\u0434\u0435\u043b\u0438\u0442\u044c\u0441\u044f \u0441\u043d\u043e\u0432\u0430","ja-jp":"\u3082\u3046\u4e00\u5ea6\u5171\u6709\u3059\u308b","es-la":"Compartir otra vez","zh-cn":"\u518d\u6b21\u5206\u4eab","pl-pl":"Udost\u0119pniaj ponownie","cs-cs":"Sd\u00edlet znovu","da-da":"Del igen","nl-nl":"Deel nog een keer","no-no":"Del igjen",
"sv-sv":"Dela igen","fi-fi":"Jaa uudelleen","ar-ar":"\u0625\u0639\u0627\u062f\u0629 \u0627\u0644\u0645\u0634\u0627\u0631\u0643\u0629"},readMore:{"en-us":"Read more at {link}","de-de":"Mehr lesen auf {link}","fr-fr":"En savoir plus sur {link}","it-it":"Scopri di pi\u00f9 su {link}","pt-br":"Leia mais em {link}","ru-ru":"\u0427\u0438\u0442\u0430\u0439\u0442\u0435 \u0434\u0430\u043b\u0435\u0435 \u043d\u0430 {link}","ja-jp":"{link} \u3067\u8a73\u7d30\u3092\u8aad\u3080","es-la":"Lea m\u00e1s en {link}",
"zh-cn":"\u5728 {link} \u4e86\u89e3\u8be6\u60c5","pl-pl":"Przeczytaj wi\u0119cej tutaj: {link}","cs-cs":"Dal\u0161\u00ed informace naleznete na webu {link}","da-da":"L\u00e6s mere p\u00e5: {link}","nl-nl":"Lees meer via {link}","no-no":"Les mer p\u00e5 {link}","sv-sv":"L\u00e4s mer p\u00e5 {link}","fi-fi":"Lue lis\u00e4\u00e4: {link}","ar-ar":"{link} \u064a\u0645\u0643\u0646\u0643 \u0642\u0631\u0627\u0621\u0629 \u0627\u0644\u0645\u0632\u064a\u062f \u0639\u0644\u0649"},enterWordpressURL:{"en-us":"Please enter your WordPress Blog URL",
"de-de":"Geben Sie Ihre Wordpress-Blog-URL ein","fr-fr":"Entrez le lien de votre blog WordPress","it-it":"Inserisci l'URL del tuo blog WordPress","pt-br":"Digite a URL do seu Blog WordPress","ru-ru":"\u041f\u043e\u0436\u0430\u043b\u0443\u0439\u0441\u0442\u0430, \u0432\u0432\u0435\u0434\u0438\u0442\u0435 URL \u0432\u0430\u0448\u0435\u0433\u043e \u0431\u043b\u043e\u0433\u0430 \u043d\u0430 WordPress","ja-jp":"WordPress\u30d6\u30ed\u30b0\u306eURL\u3092\u5165\u529b\u3057\u3066\u304f\u3060\u3055\u3044\u3002",
"es-la":"Por favor introduzca la direcci\u00f3n URL de su blog de WordPress","zh-cn":"\u8bf7\u8f93\u5165 WordPress \u535a\u5ba2 URL","pl-pl":"Wprowad\u017a adres URL swojego bloga w serwisie WordPress","cs-cs":"Zadejte pros\u00edm adresu sv\u00e9ho blogu ve slu\u017eb\u011b WordPress.","da-da":"Indtast venligst din WordPress blog URL","nl-nl":"Voer de URL in van jouw WordPress blog","no-no":"Vennligst skriv inn WordPress-blogg URL-en din","sv-sv":"Var god fyll i URL-adressen f\u00f6r din WordPress-blogg",
"fi-fi":"Sy\u00f6t\u00e4 WordPress-blogisi URL","ar-ar":"\u064a\u0631\u062c\u0649 \u0625\u062f\u062e\u0627\u0644 \u0639\u0646\u0648\u0627\u0646 URL \u0627\u0644\u062e\u0627\u0635 \u0628\u0645\u062f\u0648\u0646\u0629 WordPress \u062e\u0627\u0635\u062a\u0643"},pressToBookmark:{"en-us":"Please press Ctrl+D to bookmark this page.","de-de":"Bitte dr\u00fccken Sie Strg+D, um diese Seite als Lesezeichen zu speichern.","fr-fr":"Merci d'appuyer sur Ctrl+D pour sauvegarder cette page.","it-it":"Premi Ctrl+D per salvare questa pagina nei segnalibri.",
"pt-br":"Por favor, digite Ctrl+D para favoritar esta p\u00e1gina.","ru-ru":"\u041f\u043e\u0436\u0430\u043b\u0443\u0439\u0441\u0442\u0430, \u043d\u0430\u0436\u043c\u0438\u0442\u0435 Ctrl+D, \u0447\u0442\u043e\u0431\u044b \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u044d\u0442\u0443 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443 \u0432 \u0438\u0437\u0431\u0440\u0430\u043d\u043d\u043e\u0435.","ja-jp":"\u3053\u306e\u30da\u30fc\u30b8\u3092\u30d6\u30c3\u30af\u30de\u30fc\u30af\u306b\u8ffd\u52a0\u3059\u308b\u306b\u306fCtrl+D\u3092\u62bc\u3057\u3066\u304f\u3060\u3055\u3044\u3002",
"es-la":"Por favor, pulse Ctrl + D para marcar esta p\u00e1gina.","zh-cn":"\u8bf7\u6309 Ctrl+D \u5bf9\u6b64\u9875\u9762\u6dfb\u52a0\u4e66\u7b7e\u3002","pl-pl":"Aby doda\u0107 t\u0119 stron\u0119 do ulubionych, naci\u015bnij Ctr+D","cs-cs":"P\u0159idejte si pros\u00edm tuto str\u00e1nku mezi z\u00e1lo\u017eky stisknut\u00edm kl\u00e1vesov\u00e9 zkratky CTRL+D","da-da":"Tryk venligst Ctrl+D for at bogm\u00e6rke denne side","nl-nl":"Druk opCtrl+Dom deze pagine aan de favorieten toe te voegen.","no-no":"Vennligst trykk p\u00e5 Ctrl+D for \u00e5 bokmerke denne siden.",
"sv-sv":"Var god tryck p\u00e5 Ctrl+D f\u00f6r att l\u00e4gga till sidan i favoriter.","fi-fi":"Paina Ctrl+D, jos haluat lis\u00e4t\u00e4 t\u00e4m\u00e4n sivun kirjanmerkkeihin.","ar-ar":"\u0645\u0646 \u0641\u0636\u0644\u0643 \u0627\u0636\u063a\u0637 Ctrl+D \u0644\u0625\u0636\u0627\u0641\u0629 \u0647\u0630\u0647 \u0627\u0644\u0635\u0641\u062d\u0629 \u0641\u064a \u0627\u0644\u0639\u0644\u0627\u0645\u0627\u062a \u0627\u0644\u0645\u0631\u062c\u0639\u064a\u0629."},twitterLookNative:{"en-us":"Tweet","de-de":"Twittern",
"fr-fr":"Tweeter","it-it":"Tweet","pt-br":"Tweetar","ru-ru":"\u0422\u0432\u0438\u0442\u043d\u0443\u0442\u044c","ja-jp":"\u30c4\u30a4\u30fc\u30c8","es-la":"Twittear","zh-cn":"Tweet","pl-pl":"Tweetnij","cs-cs":"Tweet","da-da":"Tweet","nl-nl":"Tweet","no-no":"Tweet","sv-sv":"Tweet","fi-fi":"Twiittaa","ar-ar":"\u0627\u0644\u0646\u0634\u0631 \u0639\u0644\u0649 \u062a\u0648\u064a\u062a\u0631"},close:{"en-us":"Close","de-de":"Schlie\u00dfen","fr-fr":"Fermer","it-it":"Chiudere","pt-br":"Fechar","ru-ru":"\u0417\u0430\u043a\u0440\u044b\u0442\u044c",
"ja-jp":"\u30af\u30ed\u30fc\u30ba","es-la":"Cerrar","zh-cn":"\u5173\u95ed","pl-pl":"Zamkn\u0105\u0107","cs-cs":"Zav\u0159\u00edt","da-da":"Luk","nl-nl":"Sluit","no-no":"Lukk","sv-sv":"St\u00e4ng","fi-fi":"Sulje","ar-ar":"\u0625\u063a\u0644\u0627\u0642"}},h={"":"facebook twitter whatsapp email print stumbleupon favorites linkedin googlebookmarks tumblr reddit pinterest".split(" "),"ru-ru":"vkontakte odnoklassniki facebook twitter mailru print favorites googlebookmarks whatsapp reddit livejournal googleplus gmail linkedin stumbleupon tumblr blogger pinterest".split(" "),
"en-us":"facebook twitter print email pinterest whatsapp gmail stumbleupon favorites reddit tumblr googlebookmarks blogger linkedin yahoomail digg googleplus".split(" "),"en-gb":"facebook twitter print email stumbleupon favorites whatsapp gmail reddit blogger googlebookmarks linkedin tumblr googleplus pinterest digg delicious".split(" "),"fr-fr":"facebook twitter print email whatsapp gmail favorites linkedin stumbleupon googlebookmarks reddit viadeo blogger googleplus pinterest tumblr".split(" "),
"fr-ch":"facebook print email twitter favorites whatsapp gmail blogger stumbleupon".split(" "),"de-de":"facebook print twitter stumbleupon favorites email googlebookmarks xing whatsapp meinvz reddit blogger tumblr googleplus digg delicious".split(" "),"de-ch":"facebook twitter email print reddit stumbleupon favorites whatsapp gmail blogger tumblr pinterest".split(" "),"it-it":"facebook twitter print email stumbleupon linkedin googlebookmarks favorites whatsapp googleplus blogger tumblr reddit gmail".split(" "),
"it-ch":"facebook twitter email print reddit stumbleupon favorites whatsapp gmail blogger tumblr pinterest".split(" "),"pt-pt":"facebook twitter print email blogger googlebookmarks whatsapp gmail favorites aollifestream googleplus stumbleupon digg linkedin tumblr".split(" "),"pt-br":"facebook twitter email print googlebookmarks blogger favorites whatsapp googleplus aollifestream gmail digg stumbleupon reddit linkedin".split(" "),"ja-jp":"twitter facebook print favorites googlebookmarks stumbleupon delicious email whatsapp blogger tumblr digg googleplus gmail linkedin mixi line".split(" "),
"zh-cn":"twitter facebook weibo reddit whatsapp gmail pinterest favorites print googlebookmarks linkedin stumbleupon email tumblr baidu delicious".split(" "),"es-la":"facebook twitter print email whatsapp gmail stumbleupon favorites googlebookmarks blogger googleplus linkedin hotmail tumblr".split(" "),"pl-pl":"facebook twitter print reddit googlebookmarks vkontakte stumbleupon favorites whatsapp digg gmail email linkedin googleplus delicious".split(" "),"cs-cs":"facebook twitter print whatsapp gmail email favorites pinterest reddit stumbleupon tumblr linkedin odnoklassniki googleplus blogger vkontakte".split(" "),
"da-da":"facebook print twitter email linkedin whatsapp gmail pinterest reddit favorites stumbleupon blogger delicious tumblr googleplus".split(" "),"nl-nl":"facebook twitter print email linkedin whatsapp gmail pinterest favorites googleplus reddit stumbleupon tumblr vkontakte".split(" "),"no-no":"facebook print twitter email whatsapp gmail pinterest favorites linkedin reddit stumbleupon tumblr googleplus blogger".split(" "),"sv-sv":"facebook print twitter email whatsapp gmail linkedin stumbleupon pinterest favorites reddit tumblr delicious digg googleplus".split(" "),
"ar-ar":"facebook twitter print whatsapp gmail favorites stumbleupon linkedin googleplus email tumblr pinterest blogger delicious".split(" "),"fi-fi":"facebook twitter print whatsapp gmail pinterest email favorites linkedin reddit stumbleupon tumblr delicious blogger googleplus".split(" ")};return{getChannelsByRegion:function(c){var f=h[a]||h[""];e.isMobile&&!c&&(b.tryValue(b.indexOfArray(f,d.print),function(a){-1<a&&f.splice(a,1).concat([d.print])}),b.tryValue(b.indexOfArray(f,d.favorites),function(a){-1<
a&&f.splice(a,1).concat([d.favorites])}));return f},t:function(a){return(g[a]||{})[c.val("locale")]||a},validateUserLocale:function(c){var d="en-us",e,g;c&&(c=("auto"===c||2>c.length?b.systemLanguage():c).toLowerCase(),g=c.split("-")[1],e=c.split("-")[0],f[e]&&(d=g&&-1<b.indexOfArray(f[e],g)?c:e+"-"+f[e][0]));a=h[c]?c:d;return d},getBCP47tag:function(){var a=c.val("locale").split("-");return a[0]+"_"+a[a[1]?1:0].toUpperCase()},addDictionary:function(a){g=b.mergeObjects(g,a)}}});q("config",["env",
"util","enumeration","dom"],function(b,c,e,d){var a={};return a={getCssQuerySelector:function(b,d,e){b=a.cssQuerySelector[b][d||a.widgetVersion];e&&(b=c.template(b,e));return b},getPropFromClass:function(b,c,d){var e;d=d||a.widgetVersion;c.replace(a.regexpPatterns[b][d],function(a,b){e=b});return e},getAttrValue:function(b,c){return d.attr(b,"data-"+c)||d.attr(b,a.attrPrefix+c)},attrPrefix:"pw:",widgetVersion:"3.0",privacyPolicyLink:"http://www.po.st/privacy.html",privacyLinkMobile:"http://m.radiumone.com/about/privacy.html",
poStLink:"http://www.po.st",mainCssPath:b.cdnServer+"/css/r1post.css?"+b.version,wpAskUrlDefaultValue:"http://",pinMarkletUrl:"//assets.pinterest.com/js/pinmarklet.js",buttonSize:{small:[16,16],medium:[24,24],large:[32,32],xlarge:[40,40]},externalModules:{shareQuote:b.cdnServer+"/js/external/shareQuote.js",postImages:b.cdnServer+"/js/external/postImages.js"},externalCss:{retina:b.cdnServer+"/css/r1post_retina.css"},postShareAliases:["pw_post","pw_share","pw_post-share"],postWidgetAliases:["pw-widget",
"pw_widget"],widgetClassList:"pw pw-widget ",regexpPatterns:{buttonContainer:{"2.1":/pw_(.+)/i,"3.0":/pw-button-(\S+)/g},size:{"2.1":/pw_size_([a-z]+)/g,"3.0":/pw-size-([a-z]+)/g},layout:{"2.1":/pw_layout_([a-z]+)/g,"3.0":/pw-layout-([a-z]+)/g},copypaste:{"2.1":/pw_copypaste_([a-z]+)/g,"3.0":/pw-copypaste-([a-z]+)/g},counter:{"2.1":/pw_counter_([a-z]+)/g,"3.0":/pw-counter-([a-z]+)/g},counterButton:{"2.1":/pw_counter/g,"3.0":/pw-counter/g},looknative:{"3.0":/look-native/g},"share-popups":{"3.0":/pw-share-popups/g},
popularChannel:/popular-([0-9]+)/g,nativeButton:/-like?|-share?|twitter-twitt?|-plus?/g},cssQuerySelector:{defaultButton:{"2.1":".pw_{{channel}}","3.0":".pw-button-{{channel}}"},nativeButton:{"2.1":"a .pw_{{channel}}_button","3.0":"a .pw-button-{{channel}}-{{prefix}}"},widget:{"2.1":".pw_widget","3.0":".pw-widget"},counterNode:{"2.1":".ra1-pw-button-counter-value","3.0":".ra1-pw-button-counter-value"}},cssClasses:{pwButton:"pw-button",pwWidgetCore:"pw",pwLogImage:"ra1-pw-logImage",lookNativeButton:"look-native",
lookNativeWidget:"pw-widget-look-native",defaultWidgetCounter:"pw-counter-horizontal",nativeContainer:"ra1-pw-originalbuttons",htmlPwLocale:"pw-locale-",transparentButton:"pw-button-post-share-transparent",counterLookNative:"pw-counter-look-native",disablePostButton:"pw_post_false",buttonTypePrefix:"button-type-"},pwWidgetId:"pw_widget_{{id}}",buttonAttributes:[{name:"size",defaultValue:e.size.small,definedAsClass:"pw-size-{{value}}"},{name:"counter",defaultValue:!1,definedAsClass:"pw-button-counter-{{value}}"},
{name:"url",defaultValue:!1,definedAsClass:!1},{name:"title",defaultValue:!1,definedAsClass:!1},{name:"image",defaultValue:!1,definedAsClass:!1}],widgetAttributes:[{name:"size",defaultValue:e.size.small,definedAsClass:"ra1-pw_size_{{value}}"},{name:"layout",defaultValue:e.layout.horizontal,definedAsClass:"pw-layout-{{value}}"},{name:"url"},{name:"title"},{name:"image"},{name:"pinterest-image"},{name:"counter",definedAsClass:"pw-counter-{{value}}"},{name:"copypaste",definedAsClass:"pw-copypaste-{{value}}"},
{name:"twitter-via",defaultsPath:"services.twitter.via"},{name:"share-popups",defaultsPath:"sharePopups",definedAsClass:"pw-share-popups"},{name:"counter-look",defaultsPath:"counterLook"}],counterAttributes:[{name:"url"},{name:"channel"}],replaceAttributes:{button:[{s:/pw-counter/g,r:"pw-button-counter-show"}],widget:[{s:/pw-vertical/g,r:"pw-layout-vertical"}]},templates:{buttonIcon:'\x3cspan class\x3d"pw-icon ra1-pw-icon ra1-pw-icon-{{channel}}"\x3e\x3c/span\x3e',buttonLookNative:'\x3cspan class\x3d"pw-button-type-{{type}}"\x3e{{icon}}\x3cspan class\x3d"pw-button-type-{{type}}__txt"\x3e{{label}}\x3c/span\x3e\x3c/span\x3e',
buttonCounterDefault:'\x3cspan class\x3d"pw-button-counter"\x3e\x3ci class\x3d"pw-button-counter__brd"\x3e\x3c/i\x3e\x3cspan class\x3d"pw-button-counter__count ra1-pw-button-counter-value"\x3e0\x3c/span\x3e\x3c/span\x3e',buttonCounterTop:'\x3cspan class\x3d"pw-button-counter-top"\x3e\x3ci class\x3d"pw-button-counter-top__brd"\x3e\x3c/i\x3e\x3cspan class\x3d"pw-button-counter-top__count ra1-pw-button-counter-value"\x3e0\x3c/span\x3e\x3c/span\x3e',buttonDefault:'\x3ca class\x3d"pw-button-{{channel}} {{classes}}" {{attrs}}\x3e\x3c/a\x3e',
buttonNative:'\x3cspan class\x3d"{{className}}"\x3e{{code}}\x3c/span\x3e'}}});q("jsonp",["util","dom","globals"],function(b,c,e){return{fetch:function(d,a,f){var g;b.isFunction(a)?(f=a,a="?"):b.isString(a)||(a=b.prepareQueryParams(a));g="r1PoStJSONP"+b.rand();e.win[g]=function(a){f(a);try{delete e.win[g]}catch(b){}e.win[g]=null};c.loadScript(d+a+(new Date).getTime()+"\x26callback\x3d"+g);return g}}});q("channels",["util","i18n","enumeration","env"],function(b,c,e,d){var a={},f=[],g=!1,h,k,n;k=function(a){var c;
b.each(a,function(a,b){c={id:b[0],name:b[1],displayName:b[2],value:b[3]};b[4]&&(c.extra=b[4]);f.push(c)})};n=function(c,d){var e=a.get("name",d);b.getPropertyByPath(e,"extra.hideFromPopUp")||c.push(e.name);return c};h=function(a){var c=[];b.each(f,function(d,e){b.getPropertyByPath(e,a)&&c.push(e.name)});return c};a.init=function(){g||(k([["02","twitter","Twitter","https://twitter.com/intent/tweet?url\x3d[URL]\x26text\x3d[TITLE]\x26via\x3d{{via}}",{nativeImpl:{prefix:"twitt"},popUpSize:[640,480],counter:!0,
shorten:!0,fake:!0,fakeI18n:c.t("twitterLookNative"),maxSymbols:140}],["01","facebook","Facebook","https://www.facebook.com/sharer/sharer.php?u\x3d[URL]",{nativeImpl:{prefix:"like"},popUpSize:[640,480],counter:!0,fake:!0,fakeI18n:c.t("share")}],["07","linkedin","LinkedIn","http://www.linkedin.com/shareArticle?mini\x3dtrue\x26url\x3d[URL]\x26title\x3d[TITLE]\x26summary\x3d[DESCRIPTION]",{nativeImpl:{prefix:"share"},popUpSize:[600,420],shorten:!0,counter:!0,fake:!0,fakeI18n:c.t("share")}],["08","googlebookmarks",
"Google Bookmarks","http://www.google.com/bookmarks/mark?op\x3dedit\x26bkmk\x3d[URL]\x26title\x3d[TITLE]\x26annotation\x3d[DESCRIPTION]",{otherNames:["google_bookmarks","google-bookmarks"]}],["17","yahoomail","Yahoo Mail","http://compose.mail.yahoo.com/?Subject\x3d[TITLE]\x26Body\x3d[DESCRIPTION]+[URL]"],["23","aollifestream","AOL LifeStream","http://lifestream.aol.com/share/?url\x3d[URL]\x26title\x3d[TITLE]\x26description\x3d[DESCRIPTION]",{shorten:!0}],["30","googleplus","Google+","https://plus.google.com/share?url\x3d[URL]\x26t\x3d[TITLE]",
{nativeImpl:{prefix:"plusone"},popUpSize:[640,480],counter:!0,fake:!0,fakeI18n:c.t("share")}],["32","pinterest","Pin It","http://pinterest.com/pin/create/button/?url\x3d[URL]\x26description\x3d[TITLE]\x26media\x3d{{imageurl}}",{nativeImpl:{prefix:"share"},popUpSize:[680,500],counter:!0,fake:!0,fakeI18n:c.t("share")}],["05","stumbleupon","StumbleUpon","http://www.stumbleupon.com/submit?url\x3d[URL]\x26title\x3d[TITLE]",{shorten:!1,counter:!0,fake:!0,fakeI18n:"Stumble"}],["11","delicious","Delicious",
"http://delicious.com/save?url\x3d[URL]\x26title\x3d[TITLE]"],["12","digg","Digg","http://digg.com/submit?phase\x3d2\x26url\x3d[URL]\x26title\x3d[TITLE]"],["14","gmail","GMail","http://mail.google.com/mail/?view\x3dcm\x26fs\x3d1\x26to\x26su\x3d[TITLE]\x26body\x3d[DESCRIPTION]+[URL]\x26ui\x3d2\x26tf\x3d1"],["15","blogger","Blogger","http://www.blogger.com/blog_this.pyra?t\x26u\x3d[URL]\x26n\x3d[TITLE]\x26pli\x3d1",{counter:!0,fake:!0}],["16","reddit","Reddit","http://reddit.com/submit?resubmit\x3dtrue\x26url\x3d[URL]\x26title\x3d[TITLE]",
{counter:!0,fake:!0,shorten:!1}],["18","tumblr","Tumblr","http://www.tumblr.com/share?v\x3d3\x26u\x3d[URL]\x26t\x3d[TITLE]\x26s\x3d[DESCRIPTION]",{counter:!0,fake:!0}],["19","hotmail","Hotmail","https://bay179.mail.live.com/default.aspx?id\x3d64855\x26action\x3dcompose\x26to\x3d\x26subject\x3d[TITLE]\x26body\x3d[DESCRIPTION]+[URL]"],["20","aolmail","AOL Mail","http://webmail.aol.com/25045/aol/en-us/Mail/compose-message.aspx?to\x3d\x26subject\x3d[TITLE]\x26body\x3d[DESCRIPTION]+[URL]"],["21","livejournal",
"LiveJournal","http://www.livejournal.com/update.bml?subject\x3d[TITLE]\x26event\x3d[DESCRIPTION]+[URL]"],["26","vkontakte","VKontakte","http://vkontakte.ru/share.php?url\x3d[URL]\x26title\x3d[TITLE]\x26description\x3d[DESCRIPTION]"],["27","baidu","Baidu","http://cang.baidu.com/do/add?it\x3d[TITLE]\x26iu\x3d[URL]\x26fr\x3dien\x26dc\x3d[DESCRIPTION]"],["28","mailru","Mail.ru","http://connect.mail.ru/share?url\x3d[URL]\x26title\x3d[TITLE]\x26description\x3d[DESCRIPTION]"],["33","xing","XING","https://www.xing.com/social_plugins/share?h\x3d1\x26url\x3d[URL]\x26message\x3dsdfsdfsdfsdfsdfsdf"],
["34","meinvz","MeinVZ","http://www.meinvz.net/Link/Share/?url\x3d[URL]\x26title\x3d[TITLE]\x26description\x3d[DESCRIPTION]"],["35","skyrock","Skyrock","http://www.skyrock.com/m/blog/share.php?url\x3d[URL]\x26desc\x3d[DESCRIPTION] [URL]"],["36","viadeo","Viadeo","http://www.viadeo.com/?url\x3d[URL]\x26title\x3d[TITLE]\x26affiliate\x3d45584",{maxSymbols:140,shorten:!0,counter:!0,fake:!0,fakeI18n:c.t("share")}],["37","odnoklassniki","Odnoklassniki","http://www.odnoklassniki.ru/dk?st.cmd\x3daddShare\x26st.s\x3d1\x26st._surl\x3d[URL]\x26st.comments\x3d[DESCRIPTION]"],
["38","weibo","Sina Weibo","http://service.weibo.com/share/share.php?url\x3d[URL]\x26title\x3d[TITLE]",{maxSymbols:140}],["39","qzone","QZone","http://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?url\x3d[URL]\x26title\x3d[TITLE]"],["40","kaixin","Kaixin Repaste","http://www.kaixin001.com/rest/records.php?url\x3d[URL]\x26content\x3d[TITLE]\x26style\x3d11",{maxSymbols:140,shorten:!0}],["41","whatsapp","WhatsApp","whatsapp://send?text\x3d[TITLE] [URL]",{viaShareQuote:"whatsapp://send?text\x3d[DESCRIPTION] [URL]"}],
["42","mixi","Mixi","http://mixi.jp/share.pl?u\x3d[URL]\x26t\x3d[DESCRIPTION]",{counter:!0,fake:!0,fakeI18n:c.t("share"),shorten:!1}],["43","line","Line","line://msg/text/[TITLE] [URL]",{counter:!0,fake:!0,fakeI18n:c.t("share"),viaShareQuote:"line://msg/text/[DESCRIPTION] [URL]"}],["44","pocket","Pocket","https://getpocket.com/save?url\x3d[URL]",{shorten:!0}],["24","wordpress","WordPress","{{url}}/wp-admin/press-this.php?u\x3d[URL]\x26t\x3d[TITLE]\x26v\x3d4\x26s\x3d[DESCRIPTION]"],["03","email",c.t("email"),
"",{counter:!0,fake:!0}],["04",e.print,c.t(e.print),""],["06",e.favorites,c.t(e.favorites),""],["999","post",c.t(e.favorites),"",{hideFromPopUp:!0,counter:!0}],["998","post-share",c.t("share"),"",{hideFromPopUp:!0,counter:!0,fakeI18n:c.t("share")}],["97","addressbar","","",{hideFromPopUp:!0}],["99","clipboard","","",{hideFromPopUp:!0}],["997","share",c.t("share"),"",{hideFromPopUp:!0}],["998","more",c.t("more"),"",{hideFromPopUp:!0}]]),g=!0)};a.orderByRegion=function(a){var d=[],e=c.getChannelsByRegion(a);
b.each(e,function(a,b){n(d,b)});b.each(f,function(a,c){-1===b.indexOfArray(e,c.name)&&n(d,c.name)});return d};a.getPopularChannel=function(b){return a.orderByRegion(!0)[b-1]};a.get=function(a,c){var d;b.each(f,function(b,e){c===e[a]&&(d=e)});return d};a.getWithCounters=function(){return h("extra.counter")};a.getLookNative=function(){return h("extra.fake")};return a});q("url",["util","dom"],function(b,c){var e=/^(?:(https?:\/\/|\/\/|\s)|(..|\/|\?|#)|[^;:@=\.\s])/i,d=/^(?:(https?):\/\/|\/\/)(?:([^:@\s]+:?[^:@\s]+?)@)?((?:[^;:@=\/\?\.\s]+\.)+[A-Za-z0-9\-]{2,})(?::(\d+))?(?=\/|\?|#|$)([^\?#]+)?(?:\?([^#]+))?(?:#(.+))?/i,
a,f,g,h={};f=function(){var a,b;if(a=c.getBy("base")[0])a=a.getAttribute("href"),a.length&&"absolute"===h.getType(a)&&(b=h.normalize(a));return b};a=function(){var a,d,e=c.doc("location");b.each(c.getBy("link"),function(a,b){"canonical"===b.getAttribute("rel")&&(g=b.getAttribute("href"))});g&&"relative"===h.getType(g)&&(d=g.substr(0,1),a=f(),"/"===d||"."===d?(g=g.substr(1),a?(a=h.parseAbsoluteURL(a),g=a.shema+"://"+a.domain+"/"+g):g=e.protocol+"//"+e.host+"/"+g):(a||(a=h.prepareBaseURL()),g=a+"/"+
g))};h.getType=function(a){a=a.match(e);var b=null;a&&(b=a[1]?"absolute":"relative");return b};h.normalize=function(a){"/"===a.charAt(a.length-1)&&(a=a.slice(0,-1));return a};h.parseAbsoluteURL=function(a){var b=a.match(d);return b?{shema:b[1],domain:b[3],path:b[5],params:{query:b[6],hash:b[7]}}:a};h.parseHref=function(a){var b=document.createElement("a");b.href=a;return b};h.prepareBaseURL=function(){var a=h.parseAbsoluteURL(c.doc("location").toString()),b=a.shema+"://"+a.domain,d,e=a.path;a.path?
(d=a.path.charAt(a.path.length-1),"/"===d?a=b+a.path.slice(0,-1):(e=e.split("/"),e.pop(),a=b+e.join("/"))):a=b;return a};h.canonical={get:function(){b.isUndefined(g)&&a();return g}};return h});q("oo",["util"],function(b){var c={};c.defineClass=function(){var c;c=function(b,a){function c(){}c.prototype=a.prototype;b.prototype=new c;b.prototype.constructor=b;b.__super__=b.su=a.prototype};return function(d){var a;a="Object"===d.constructor.name?function(){}:d.constructor;d.inherit&&c(a,d.inherit);b.each(d,
function(b,c){"constructor"!==b&&"inherit"!==b&&(a.prototype[b]=c)});a.prototype.prop=function(a,c){var d;b.isFunction(this[a])||(c?this[a]=c:d=this[a]);return d};a.prototype.bindAll=function(){b.bindAll(this,arguments)};return a}}();return c});q("ga",["util","dom","pwConfig","globals"],function(b,c,e,d){var a,f;b={};var g,h,k=d.win,n,v;k._gaq=k._gaq||[];f=a=!1;g={enabled:!1};v=function(a,b){var c;if(a&&(c=RegExp("[\\?\x26#]"+b+"\x3d([^\x26#]*)"),c=c.exec(a),null!==c))return unescape(c[1])};h=function(a,
b,c){g.enabled&&k._gaq.push(["_trackSocial",c||"Po.st",a,b,g.pagePath])};n=function(b,c){a&&k._gaq.push(["_trackEvent","Po.st",b,c,void 0,f])};b.init=function(){var b=e.val("gaTrackEvents"),c=e.val("gaTrackSocialInteractions");b.hasOwnProperty("enabled")?(a=b.enabled,f=b.nonInteraction):a=b;c.hasOwnProperty("enabled")?(g.enabled=c.enabled,g.pagePath=c.pagePath):g.enabled=c};b.track=function(a,b,c){c=c||k.location.toString();switch(a){case "social":h(b,c);break;case "event":n(b,c)}};b.fbEvents=function(){g.enabled&&
(k.FB.Event.subscribe("edge.create",function(a){h("like",a,"Facebook")}),k.FB.Event.subscribe("edge.remove",function(a){h("unlike",a,"Facebook")}),k.FB.Event.subscribe("message.send",function(a){h("send",a,"Facebook")}))};b.twitterEvents=function(){g.enabled&&k.twttr.ready(function(){k.twttr.events.bind("tweet",function(a){var b;a&&(a.target&&"IFRAME"===a.target.nodeName&&(b=v(a.target.src,"url")),h("tweet",b,"Twitter"))})})};return b});q("proxy","util jsonp config enumeration dom pwConfig env pubsub status url channels".split(" "),
function(b,c,e,d,a,f,g,h,k,n,v){var l,m,s,t,p,B,y,r;h={};var u=[],q,w,z,C;l=g.shareServer+"/v1/aftershare";m=g.cdnServerNonSecure+"/share/share.html";s=g.cdnServerNonSecure+"/share/mobile_popup.html";t=g.shareServer+"/v1/status";p=g.shareServer+"/v1/counter";B={default_:g.shareServer+"/v1/shorten?sc\x3d{{channel}}\x26longUrl\x3d{{longUrl}}\x26pub\x3d{{publisherKey}}\x26sGUID\x3d{{sGUID}}",bitly:"https://api-ssl.bitly.com/v3/shorten?format\x3djson\x26longUrl\x3d{{longUrl}}\x26access_token\x3d{{shortenerKey}}\x26",
awesm:"http://api.awe.sm/url.json?v\x3d3\x26url\x3d{{longUrl}}\x26key\x3d{{shortenerKey}}\x26channel\x3d{{channel}}\x26tool\x3dmKU7uN\x26"};y={default_:"url",bitly:"data.url",awesm:"awesm_url"};r=g.logServer+"/p";z=function(c,p){var w=f.val("version"),t=b.isDefined(w)?w:g.widgetBuildNumber,w=r,h;if(c===d.dataloggerEvent.share&&(C&&(h=b.cloneObj(C)),C={sc1:p.sc1,random:p.random},h&&h.sc1===p.sc1&&0.5>(p.random-h.random)/1E3))return;h={t:c,pub:f.val("publisherKey"),pu:p.pu||f.val("defaults.url"),pt:p.pt||
f.val("defaults.title"),ru:a.doc("referrer"),v:t};p=b.mergeObjects(p,h);!0===k.optout()&&b.each(k.getRestrictedOptOutParams(),function(a,b){delete p[b]});w+=b.prepareQueryParams(p);"\x26"===w.charAt(w.length-1)&&(w=w.slice(0,-1));w=a.createElement("img",{className:e.cssClasses.pwLogImage,src:w});a.appendTo("html",w);a.removeNode(w)};w=function(a,b){u.push({name:a,params:b})};q=function(){u.length&&(b.each(u,function(a,b){z(b.name,b.params)}),u=[])};h.logEvent=function(a,b){0===k.optout()?w(a,b):z(a,
b)};h.getUrl=function(a,c){var d;switch(a){case "sharePoint":d=m;break;case "shareList":d=s}return d+b.prepareQueryParams(c)};h.fetchStatus=function(a,d){c.fetch(t,d||{},function(c){b.tryValue(c,a);q()})};h.prepareURLForSharing=function(a,c,d,e,p,w){var g=p.tracking,t=v.get("id",d),t=b.getPropertyByPath(t,"extra.shorten"),h=f.val("track"),z="";c=n.parseHref(c);if(k.getCustomShortener(a))t=!1;else if(!b.isDefined(t)||b.isDefined(t)&&!0===t)w?t=!1:b.isDefined(p.shorten)&&(t=p.shorten);!b.isUndefined(c)&&
!t&&h&&g&&(z=e+"."+d,!0!==h?c.search=0<c.search.length?c.search+"\x26"+z:z:c.hash="#"+z);return c.href};h.requestAfterShare=function(a,b){c.fetch(l,{publisherKey:a},function(a){b(a.html||"")})};h.fetchCounter=function(a,d,e){a.publisherKey&&(a=b.prepareQueryParams(a)+(d?d+"\x26":""),c.fetch(p,a,function(a){e(a)}))};h.getShortUrl=function(a){var d=k.getCustomShortener(a.shortenParams.publisherKey)||{},e;e=d.shortener||"default_";a.shortenParams.shortenerKey=d.shortenerKey;c.fetch(b.template(B[e],a.shortenParams),
"",function(c){b.isFunction(a.fnCallback)&&a.fnCallback(b.isObject(c)?b.prop(c,y[e]):c)})};return h});q("counter","env jsonp pubsub util dom config channels enumeration".split(" "),function(b,c,e,d,a,f,g,h){var k,n;function v(b,c){this.domNode=a.getBy(m.queries.value,b)[0]||b;this.init(c)}var l,m,s;m={counterUrl:b.shareServer+"/v1/counter",syncChannels:["01","02","07","30","32"],queries:{value:".ra1-pw-button-counter-value",boxCounter:".pw-box-counter"},attributes:[{name:"url"},{name:"channel",defaultValue:h.post}],
readyEvent:"counter.query.ready",fetchDelay:50};k=void 0;n={};s={formatCount:function(a,b,c){a=Math.round(a/c*10)/10;4<a.toString().length&&(a=Math.round(a));return a+b},beautifyCount:function(a){var b=a.toString(),c=b.length;3<c&&(b=7>c?this.formatCount(a,"K",1E3):10>c?this.formatCount(a,"M",1E6):this.formatCount(a,"B",1E9));return b},getSyncChannels:function(a){var b=[];d.each(a,function(a,c){-1<d.indexOfArray(m.syncChannels,c)&&b.push(c)});return b}};l={query:function(a,b){c.fetch(m.counterUrl,
d._prepareQueryParams(d.mergeObjects({increment:a},b)),function(a){e.publish(m.readyEvent,{publisherKey:b.publisherKey,url:b.url,values:a})})},fetch:function(a){n[a.publisherKey]=n[a.publisherKey]||{};n[a.publisherKey][a.url]=n[a.publisherKey][a.url]||[];n[a.publisherKey][a.url].push(a.channelId);k&&clearTimeout(k);k=setTimeout(function(){l.clearFetchStack()},m.fetchDelay)},clearFetchStack:function(){d.each(n,function(a,b){d.each(b,function(b,c){var d={publisherKey:a,url:b},e=s.getSyncChannels(c);
e&&(d.sc=e);l.query(!1,d)})});n={}}};v.prototype={constructor:v,init:function(a){this.publisherKey=a.publisherKey;this.attributes=this.readAttributes(a.attributes||{});this.channelId=g.get("name",this.attributes.channel).id;this.events={onReady:a.onReady};d.bindAll(this,["updateValue"]);e.subscribe(m.readyEvent,this.updateValue);this.fetch()},updateValue:function(b,c){var e=this.attributes.channel;if(c.publisherKey===this.publisherKey&&c.url===this.attributes.url){if(e===h.post||e===h.postShare)e=
"total";e=c.values[e]||"0";a.html(this.domNode,s.beautifyCount(e));d.tryValue(e,this.events.onReady)}},readAttributes:function(a){var b={},c=this;d.each(m.attributes,function(d,e){var g=e.name;b[g]=f.getAttrValue(c.domNode,g)||a[g]||e.defaultValue});return b},updateAttribute:function(a,b){this.attributes[a]=b;"url"===a&&this.fetch()},fetch:function(){l.fetch({publisherKey:this.publisherKey,channelId:this.channelId,url:this.attributes.url})}};return{increment:function(a){l.query(!0,a)},createCounter:function(a,
b){return new v(a,b)},initBoxCounters:function(b,c,e){var g=this;d.each(a.getBy(m.queries.boxCounter,b),function(b,d){a.getParentByClassList(d,f.postWidgetAliases)&&!e||g.createCounter(d,c)})}}});q("emailFrame","util oo dom enumeration env pubsub".split(" "),function(b,c,e,d,a,f){var g,h={};g=a.cdnServer+"/classic-email.html";h.EmailFrame=c.defineClass({constructor:function(){this.bindAll("onCloseIconClick","showInCenter");this.render();this.bindEvents()},render:function(){this.overlayNode=e.createElement("div",
{className:"ra1-pw-emailoverlay",style:{display:"none"}});this.closeIconNode=e.createElement("div",{className:"ra1-pw-emailclose",style:{width:"54px",height:"30px",zIndex:10002}});e.appendTo("body",this.overlayNode);e.appendTo("body",this.closeIconNode)},bindEvents:function(){e.addEvent(this.closeIconNode,d.events.click,this.onCloseIconClick);e.addEvent(e.win(),d.events.resize,this.showInCenter)},show:function(a){var c=this;this.widgetOptions={url:a.url,publisherKey:a.pubKey};this.iframeNode=e.createElement("iframe",
{style:{position:"fixed",border:"0px",zIndex:10001,height:"515px",width:"575px",left:"0px",top:"0px"},allowTransparency:!0,frameBorder:0,src:g+b.prepareQueryParams(a)});e.attr(this.iframeNode,"scrolling","no");e.display(this.closeIconNode,"show");e.display(this.overlayNode,"show");e.insertBefore(this.overlayNode,this.iframeNode);this.showInCenter();setTimeout(function(){e.setStyle(c.iframeNode,{border:"0px"})},500)},onCloseIconClick:function(){e.display(this.overlayNode,"hide");e.display(this.closeIconNode,
"hide");e.removeNode(this.iframeNode);this.widgetOptions.request=!0;f.publish("counters.fetch",this.widgetOptions)},showInCenter:function(){var a,c,d;this.iframeNode&&(d=this.iframeNode,c=e.win("innerHeight")||e.doc("documentElement.clientHeight"),a=e.win("innerWidth")||e.doc("documentElement.clientWidth"),a=b.toInt(a/2-d.offsetWidth/2),c=b.toInt(c/2-d.offsetHeight/2),e.setStyle(d,{left:a+"px",top:c+"px"}),e.setStyle(this.closeIconNode,{left:a+575-54+"px",top:c+"px"}))}});return h});q("listView",
"util oo dom channels i18n globals enumeration config env".split(" "),function(b,c,e,d,a,f,g,h,k){var n={},v=k.isMobile?9:12;n.ListView=c.defineClass({targetNode:f.notDefined,constructor:function(a,b,c){this.targetNode=a;this.onClickHandler=b.onClickHandler;this.widgetViewType=c;this.init()},init:function(){this.bindAll("onChannelClick","expand")},populateChannels:function(a,c){var e=d.orderByRegion(),f;a&&e.push(g.more);e=a&&c.p_share_popup?b.unMergeArrays(e,c.p_share_popup,!0):!a&&c.more_popup?
b.unMergeArrays(e,c.more_popup,!0):b.unMergeArrays(e,c.exclude.popup);a&&(f=b.indexOfArray(e,g.more),e=e.slice(0,v),-1!==f&&e.push(g.more));return e},show:function(a,c){var f=!1,h=[],p=this.populateChannels(a,c),B=this,y=g.size.small;k.isMobile&&this.widgetViewType!==g.viewType.list&&(y=g.size.large);b.each(p,function(a,b){b!==g.more?B.pushChannelToList(h,d.get("name",b)):f=!0});f&&B.pushChannelToList(h,d.get("name",g.more));p=b.template('\x3cul class\x3d"ra1-pw-popup__ul pw-size-{{iconSize}}"\x3e{{list}}\x3c/ul\x3e',
{iconSize:y,list:h.join(" ")});this.setTargetNodeHTML(p);e.addEvent(e.getBy("a",this.targetNode),"click",this.onChannelClick)},pushChannelToList:function(c,d){var e='\x3cli class\x3d"ra1-pw-popup__li--{{name}}"\x3e\x3ca data-channel\x3d"{{name}}"\x3e\x3ci class\x3d"pw-icon ra1-pw-icon-{{name}}"\x3e\x3c/i\x3e\x3cspan class\x3d"ra1-pw-txt ra1-pw-txt-{{name}}"\x3e{{displayName}}\x3c/span\x3e\x3c/a\x3e\x3c/li\x3e',f=d.displayName;d.name===g.more&&k.isMobile&&(e='\x3cli class\x3d"more-services"\x3e\x3ca data-channel\x3d"{{name}}" href\x3d"" class\x3d"more-services__item"\x3e{{displayName}}\x3c/a\x3e\x3c/li\x3e',
f=a.t("moreServices"));b.getPropertyByPath(d,"extra.disabled")||c.push(b.template(e,{displayName:f,attrPrefix:h.attrPrefix,name:d.name}))},onChannelClick:function(a,b){var c=e.attr(b,"data-channel"),f=d.get("name",c);if(this.onClickHandler)this.onClickHandler(c,f,b)},getHeight:function(){var a=e.getBy("li",this.targetNode),c=b.toInt(a.length/3);return e.getElementSize(a[0]).height*c},setTargetNodeHTML:function(a){e.html(this.targetNode,a)}});return n});q("popup","util oo config i18n dom pubsub channels enumeration env listView pwConfig".split(" "),
function(b,c,e,d,a,f,g,h,k,n,v){g={};var l="ra1-pw-popup"+(k.isMobile?" ra1-pw-"+(k.isMobile.tablet?"tablet":"mobile"):""),m='\x3cdiv class\x3d"ra1-pw-share-offer"'+(k.isMobile?' style\x3d"max-height: 300px; overflow: hidden;"':"")+"\x3e{{offer}}\x3c/div\x3e";g.PopupView=c.defineClass({mode:h.viewType.popup,constructor:function(a){this.options=a;this.init()},init:function(){this.bindAll("hide","closePopup","onChannelClick","onShareAgain","clearTimeOut","onMouseOut","expand");this.render();this.bindEvents();
this.subscribe()},subscribe:function(){f.subscribe("hide.popup",this.onMouseOut);f.subscribe("clear.timeOut",this.clearTimeOut)},bindEvents:function(){a.addEvent(this.getNode(".ra1-pw-popup-close"),h.events.click,this.closePopup);k.isMobile||(a.addEvent(this.domNode,h.events.mouseover,this.clearTimeOut),a.addEvent(this.domNode,h.events.mouseout,this.onMouseOut))},getCoreClass:function(){var a=l;this.isMobile(function(){k.isMobile.tablet||(a+=" ra1-pw-mobile-true")});return a},isMobileEnabled:function(a){k.isMobile&&
v.val("mobileOverlay")&&a()},render:function(){var c=b.template('\x3cdiv class\x3d"ra1-pw-popup-i"\x3e\x3cdiv class\x3d"ra1-pw-popup-o"\x3e\x3cb class\x3d"ra1-pw-popup-title"\x3e\x3cspan class\x3d"ra1-pw-popup-title-text"\x3e{{title}}\x3c/span\x3e\x3ca class\x3d"ra1-pw-popup-close"\x3e\x3c/a\x3e\x3c/b\x3e\x3cdiv class\x3d"ra1-pw-popup-body"\x3e\x3cdiv class\x3d"ra1-pw-popup-area"\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv class\x3d"ra1-pw-popup-footer"\x3e\x3ca target\x3d"_blank" href\x3d"{{poweredByLink}}" class\x3d"ra1-pw-powered"\x3e{{poweredBy}}\x3c/a\x3e\x3ca target\x3d"_blank" href\x3d"{{privacyLink}}" class\x3d"ra1-pw-privacy"\x3e{{privacy}}\x3c/a\x3e\x3c/div\x3e\x3c/div\x3e',
{poweredByLink:e.poStLink,privacyLink:e[k.isMobile?"privacyLinkMobile":"privacyPolicyLink"],poweredBy:d.t("powered"),privacy:d.t("privacy"),title:d.t("shareTitle")}),f=this,p="body";this.domNode=a.createElement("div",{className:this.getCoreClass(),innerHTML:c,style:{display:h.none}});this.isMobile(function(){f.overlayNode=a.createElement("div",{className:"ra1-pw-overlay",style:{display:"block"}});a.appendTo("body",f.overlayNode)});this.options.parentNode?p=this.options.parentNode[0]:this.overlayNode&&
(p=this.overlayNode);a.appendTo(p,this.domNode);this.popupBody=this.getNode(".ra1-pw-popup-area");this.popupTitle=this.getNode(".ra1-pw-popup-title-text");this.popupTop=this.getNode(".ra1-pw-popup-o");this.ListView=new n.ListView(this.popupBody,{onClickHandler:this.onChannelClick})},getNode:function(b){return a.getBy(b,this.domNode)[0]},setPopupBodyHeight:function(){var b=this;this.isMobileEnabled(function(){a.setStyle(b.popupBody,{height:b.popupBodyHeight+"px"})})},renderSharingList:function(b){var c=
this,e;this.isMobileEnabled(function(){a.display(c.overlayNode);k.isMobile.tablet&&(b=!1)});e=b?"pw-popup-type_simplelist":"ra1-pw-popup-area-scroll pw-popup-type_extendlist";this.lastSharingFromMode=b?h.viewType.popup:h.viewType.popupList;this.ListView.show(b,this.options.services);this.setTitle(d.t("shareTitle"));a.setClass(this.domNode,this.getCoreClass()+" "+e);k.isMobile&&a.removeNode(this.getNode(".ra1-pw-tools"));this.showDomNode();b?(this.resetBodyHeight(),this.popupBodyHeight=a.getElementSize(this.popupBody).height,
this.setPopupBodyHeight()):k.isMobile&&!this.options.widgetViewType&&(e=400,k.isMobile.tablet||(e=a.getWindowHeight()-107,this.popupBodyHeight&&a.addClass(c.popupBody,"ra1-pw-anim-height")),a.setStyle(c.popupBody,{height:e+"px"}),this.popupBody.scrollTop=10);this.isMobileEnabled(function(){if(!k.isMobile.tablet)a.onTransitionEnd(c.popupBody,function(){a.replaceClass(c.popupBody,"ra1-pw-anim-height","")})});this.setPageTitle(d.t("shareTitle"));this.changePopupPosition()},setPageTitle:function(b){this.options.widgetViewType&&
"html"!==v.val("mode")&&k.isMobile&&a.setTitle(d.t(b))},isMobile:function(a){(k.isMobile&&!this.options.widgetViewType||k.isMobile&&b.prop(this.options.widgetAttributes,"afterShare.center"))&&a()},renderAfterShare:function(c){var e=this,p,f;p=this.options.widgetAttributes;var g=b.prop(p,"afterShare.center"),r=d.t("sharingSuccessful");this.isMobile(function(){a.display(e.overlayNode)});f=b.isBoolean(this.options.afterShareText)?this.options.afterShareText?d.t("successfullyShared"):"":this.options.afterShareText;
c=b.template(m,{offer:c.replace("[R1_FLASH]",b.isFlashInstalled()?"f":"")});a.setClass(this.domNode,this.getCoreClass()+" pw-popup-type_aftershare");k.isMobile?(r=f,c=b.template("{{afterShareOffer}}",{afterShareOffer:c}),this.getNode(".ra1-pw-tools")||a.insertBefore(this.popupTop,a.createElement("div",{className:"ra1-pw-tools",innerHTML:b.template('\x3ca href\x3d"#" class\x3d"ra1-pw-tools__again"\x3e{{shareAgain}}\x3c/a\x3e\x3ca class\x3d"ra1-pw-tools__close"\x3e{{close}}\x3c/a\x3e',{shareAgain:d.t("shareAgain"),
close:d.t("close")})}))):c=b.template('\x3cdiv class\x3d"ra1-pw-share-txt"\x3e\x3ca href\x3d"#" class\x3d"ra1-pw-small-btn ra1-pw-tools__again"\x3e\x3cspan\x3e\x3cspan class\x3d"ra1-pw-share-again"\x3e{{shareAgain}}\x3c/span\x3e\x3c/span\x3e\x3c/a\x3e\x3cp class\x3d"ra1-pw-share-txt-text"\x3e{{successfullyShared}}\x3c/p\x3e\x3c/div\x3e{{afterShareOffer}}',{successfullyShared:f,shareAgain:d.t("shareAgain"),afterShareOffer:c});c=b.template('\x3cdiv class\x3d"ra1-pw-share-success"\x3e{{body}}\x3c/div\x3e',
{body:c});this.setPageTitle(d.t("successfullyShared"));this.setTitle(r);this.setBody(c);p.shareAgain&&(!k.isMobile||v.val("mobileOverlay")||this.options.widgetViewType)||a.display(this.getNode(".ra1-pw-tools__again"),"hide");!1===p.afterShareText&&a.display(this.getNode(".ra1-pw-share-txt-text"),"hide");(p=this.getNode("img"))?p.onload=function(){e.hasCoords()&&e.showDomNode();g||e.changePopupPosition()}:(this.showDomNode(),this.changePopupPosition());this.resetBodyHeight();b.each(a.getBy("script",
this.domNode),function(a,b){eval(b.innerHTML)});a.addEvent(e.getNode(".ra1-pw-tools__again"),"click",e.onShareAgain,!0);k.isMobile&&(a.addEvent(this.getNode(".ra1-pw-tools__close"),h.events.click,this.closePopup,!0),this.showDomNode());this.popupBodyHeight=a.getElementSize(this.popupBody).height;this.clearTimeOut();this.setPopupBodyHeight();e.hasCoords()||this.showDomNode();g&&this.setOnCenter()},showDomNode:function(){a.display(this.domNode)},onShareAgain:function(){this.mode=h.viewType.popupList;
this.renderSharingList(!1)},setTitle:function(b){a.html(this.popupTitle,b)},setBody:function(b){a.html(this.popupBody,b)},show:function(a){this.options=a;a.mode&&(this.mode=a.mode);switch(this.mode){case h.viewType.aftershare:this.renderAfterShare(this.options.afterShare.offer);break;case h.viewType.popupList:this.renderSharingList(!1);break;case h.viewType.popup:this.renderSharingList(!0)}},closePopup:function(){this.options.widgetViewType&&k.isMobile&&!this.options.standalone&&b.closeThisWindow();
this.hide()},hide:function(){var c=this;this.clearTimeOut();if(!a.isHidden(this.domNode)&&(a.display(this.domNode,"hide"),this.setTitle(" "),this.setBody(" "),this.mode===h.viewType.aftershare&&b.isFunction(this.options.onHideAfterShare)))this.options.onHideAfterShare();this.isMobile(function(){a.display(c.overlayNode,"hide")})},onChannelClick:function(a,b,c){a===h.more&&this.expand();f.publish("button.click",{name:a,coords:this.options.coords,buttonSizePX:this.options.buttonSizePX,node:[c]},this.options.widgetInstance);
this.clearTimeOut()},onMouseOut:function(a,b){this.clearTimeOut();this.mode===h.viewType.popup&&(this.timeoutId=setTimeout(this.hide,this.options.widgetInstance.attributes.hidePopupDelay))},clearTimeOut:function(){this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=null)},expand:function(){this.clearTimeOut();this.options.widgetViewType!==h.viewType.list?(this.mode===h.viewType.aftershare&&this.hide(),this.mode=h.viewType.popupList,this.renderSharingList(!1)):this.hide()},resetBodyHeight:function(){a.setStyle(this.popupBody,
{height:""})},hasCoords:function(){return this.options.coords||b.prop(this.options.widgetAttributes,"afterShare.baseElement")},getCoords:function(){var c=this.options.coords,d=this.options.widgetAttributes,e=b.prop(d,"afterShare.offset"),f=[0,0],d=b.prop(d,"afterShare.baseElement");this.mode===h.viewType.aftershare&&(b.isArray(e)&&(f=e),b.isFunction(e)&&(f=e(this.domNode,d)));d&&(c=a.getElementOffset(d),c={left:c.left+f[0],top:c.top+d.offsetHeight+f[1]});return c},changePopupPosition:function(){var c,
d,e,f,g="pw-popup-side_left",r=this.getCoords();!k.isMobile&&r&&(d=a.getClientOffset(),k.isMobile&&v.val("mobileOverlay")||this.mode===h.viewType.popupList?this.setOnCenter():(f=a.getScrollPosition(),c=d.h+f.y,d=d.w+f.x,e=this.domNode.offsetHeight,f=this.domNode.offsetWidth,r.top+e>c&&e<c?(c=r.top-e-(this.options.buttonSizePX?this.options.buttonSizePX[1]:0),0>c&&(c=0)):c=r.top,r.left+f>d&&f<d?(f=r.left-f+(this.options.buttonSizePX?this.options.buttonSizePX[0]:0),0>f&&(f=0),g="pw-popup-side_right"):
f=r.left,a.addClass(this.domNode,g)),b.isDefined(f)&&b.isDefined(c)&&a.setStyle(this.domNode,{left:f+"px",top:c+"px"}))},setOnCenter:function(){var c=a.getClientOffset(),d=a.getScrollPosition();a.setStyle(this.domNode,{left:b.toInt(c.w/2)-b.toInt(this.domNode.offsetWidth/2)+"px",top:d.y+(b.toInt(c.h/2)-b.toInt(this.domNode.offsetHeight/2))+"px"})}});return g});q("viewCore","oo config util dom enumeration pwConfig".split(" "),function(b,c,e,d,a,f){var g,h={},k;g=[{s:"pw_widget",r:"pw-widget"},{s:"pw_size_16",
r:"pw-size-small"},{s:"pw_size_24",r:"pw-size-medium"},{s:"pw_size_32",r:"pw-size-large"},{s:"pw_counter_true",r:"pw-counter-show"},{s:"pw_counter_false",r:"pw-counter-none"},{s:"pw_copypaste_true",r:"pw-copypaste-true"},{s:"pw_copypaste_false",r:"pw-copypaste-false"},{s:"pw_vertical",r:"pw-vertical"}];k=function(b){return-1<e.indexOfArray([a.counter.horizontal,a.counter.vertical,a.counter.none],b)};h.ViewClass=b.defineClass({archVersion:c.widgetVersion,domNode:null,viewType:a.viewType.button,attrsNotDefinedByUser:[],
constructor:function(){},prepareAttributes:function(b,h){var l=this,m=[],s;l.attrsNotDefinedByUser=[];b=b||d.classList(l.domNode).join(" ");this.viewType===a.viewType.widget&&(-1<b.indexOf("pw_counter_buttons")&&-1<b.indexOf("pw_vertical")&&(b=b.replace("pw_counter_buttons","pw-counter-vertical")),e.each(g,function(a,c){b=b.replace(c.s,c.r)}),e.each(d.getBy("a",this.domNode),function(a,b){var c=d.getNodeText(b);"pw_title"===b.className&&(l.attributes.title=c,d.removeNode(b));"pw_url"===b.className&&
(l.attributes.url=c,d.removeNode(b));"pw_separator"===b.className&&("?"===c&&f.update({track:"query"},!0),d.removeNode(b))}));s=c[l.viewType+"Attributes"];l.prop("viewType")===a.viewType.widget&&(e.each(c.replaceAttributes.widget,function(a,c){b=b.replace(c.s,c.r)}),-1<b.indexOf(c.cssClasses.counterLookNative)&&(b=b.replace(c.cssClasses.counterLookNative,""),this.setCounterLookNative()),e.each(b.split(" "),function(a,b){-1<b.indexOf(c.cssClasses.pwWidgetCore)&&(b=e.replaceAll(b,"_","-"));m.push(b)}),
b=m.join(" "));e.each(s,function(d,g){var h=l.attributes[g.name],y=f.isDefinedByUser("defaults."+g.name),r,u;g.definedAsClass&&(u=c.getPropFromClass(g.name,b,c.widgetVersion),"share-popups"===g.name&&u&&(u=!0),!u&&l.prop("viewType")===a.viewType.button&&g.name===a.counter.name&&(u=c.getPropFromClass("counterButton",b,c.widgetVersion)))&&(u=a.counter.show);if(r=c.getAttrValue(l.domNode,g.name))u=r,g.name===a.counter.name&&"false"===u&&(u=a.counter.none);u||(g.defaultValue&&(u=e.hasProperty(l.attributes,
g.name)?h:g.defaultValue),(!y&&l.prop("viewType")===a.viewType.widget||l.prop("viewType")===a.viewType.button)&&l.attrsNotDefinedByUser.push(g.name));g.name===a.counter.name&&(l.prop("viewType")===a.viewType.widget&&(!h&&!k(u)||h&&!k(h))&&(u=l.attributes.layout),l.prop("viewType")===a.viewType.button&&(u||(u=a.counter.none),u!==a.counter.none&&(u=h===a.counter.none?l.options.attributes.layout:h)));u&&("size"!==g.name||c.buttonSize[u]||(u=a.size.small),"true"===u&&(u=!0),"false"===u&&(u=!1),g.defaultsPath?
e.prop(l.attributes,g.defaultsPath,u):g.name===a.pinterestImage?l.attributes.image=u:l.attributes[g.name]=u)});l.prop("viewType")===a.viewType.button&&e.each(c.replaceAttributes.button,function(a,c){b=b.replace(c.s,c.r)});h&&h(b);return b},setClassList:function(b){var f=this,g=[],h=this.attributes,k=[],t=this.viewType,p,B;switch(t){case a.viewType.widget:B=c.widgetAttributes;p=c.widgetClassList+"ra1-pw-classicWidget ";break;case a.viewType.button:p=c.cssClasses.pwButton,B=c.buttonAttributes,p=p+" "+
p+"-"+this.channelName+" ",this.look===a.look.nativ&&(p=c.cssClasses.nativeContainer+" "+p),p=p+c.cssClasses.buttonTypePrefix+this.look+" "}e.each(B,function(b,c){var d;c.definedAsClass&&(d=h[c.name],e.isDefined(d)&&d!==a.counter.none&&k.push(e.template(c.definedAsClass,{value:d})))});t===a.viewType.widget&&((this.has.lookNativeButtons||this.has.nativeButtons)&&k.push(c.cssClasses.lookNativeWidget),this.attributes.counterLook===a.look.nativ&&k.push(c.cssClasses.counterLookNative));t===a.viewType.button&&
(this.look===a.look.looknative&&k.push(c.cssClasses.lookNativeButton),this.isTransparent&&k.push(c.cssClasses.transparentButton));e.each(b.split(" "),function(b,d){d.substring(0,2)!==c.cssClasses.pwWidgetCore&&d!==c.cssClasses.lookNativeButton&&(g.push(d),t===a.viewType.widget&&f.nodeMarker.push("."+d))});g.length&&k.push(g.join(" "));d.setClass(this.domNode,p+k.join(" "))}});return h});q("nativeButton","util dom i18n config enumeration pwConfig ga proxy channels globals".split(" "),function(b,c,
e,d,a,f,g,h,k,n){var v;f={};var l,m,s=n.win,t={};v={twitter:"\x3ca href\x3d'https://twitter.com/share' data-text\x3d'{{title}}' class\x3d'twitter-share-button' data-count\x3d'{{counter}}' data-url\x3d'{{url}}' data-lang\x3d'{{lang}}' data-via\x3d'{{via}}'\x3eTweet\x3c/a\x3e",facebook:"\x3cdiv class\x3d'fb-like' data-href\x3d'{{url}}' data-send\x3d'false' data-layout\x3d'{{counter}}' data-width\x3d'70' data-height\x3d'65' data-show-faces\x3d'false' data-font\x3d'arial'\x3e\x3c/div\x3e",googleplus:"\x3cdiv class\x3d'g-plusone' data-href\x3d'{{url}}' data-annotation\x3d'{{counter}}' data-size\x3d'{{size}}'\x3e\x3c/div\x3e",
pinterest:"\x3ca href\x3d'//pinterest.com/pin/create/button/?url\x3d{{url}}\x26media\x3d{{image}}' class\x3d'pin-it-button' count-layout\x3d'{{counter}}'\x3e\x3cimg border\x3d'0' src\x3d'//assets.pinterest.com/images/PinExt.png' title\x3d'Pin It' /\x3e\x3c/a\x3e"};l={facebookButtonsCount:0,facebookButtonsPrevCount:0,inreaseFacebookInterval:n.notDefined,load:function(a,d,e){var f;b.isDefined(t[a])?f=setInterval(function(){2===t[a]&&(b.getPropertyByPath(e,"hasScript")&&e.hasScript(),b.getPropertyByPath(e,
"success")&&e.success(),clearInterval(f))},100):(t[a]=1,c.loadScript(d,function(){t[a]=2;b.getPropertyByPath(e,"scriptLoaded")&&e.scriptLoaded();b.getPropertyByPath(e,"success")&&e.success()}))},facebook:function(){var a=this,b;b=function(){s.FB.init({status:!0,cookie:!0,xfbml:!0});g.fbEvents()};a.load("facebook","//connect.facebook.net/"+(e.getBCP47tag()||"en_US")+"/all.js",{success:function(){a.facebookButtonsCount++}});a.inreaseFacebookInterval||(a.inreaseFacebookInterval=setInterval(function(){a.facebookButtonsPrevCount===
a.facebookButtonsCount&&s.FB&&(b(),a.facebookButtonsCount=0,a.facebookButtonsPrevCount=0,clearInterval(a.inreaseFacebookInterval));a.facebookButtonsPrevCount=a.facebookButtonsCount},100))},linkedin:function(){s.IN?s.IN.parse(document):this.load("linkedin","//platform.linkedin.com/in.js")},pinterest:function(){if(s.parsePinBtns)s.parsePinBtns(document);else{var a=document,b=a.getElementsByTagName("SCRIPT")[0],a=a.createElement("SCRIPT");a.type="text/javascript";a.async=!0;a.src="//assets.pinterest.com/js/pinit.js";
a["data-pin-build"]="parsePinBtns";b.parentNode.insertBefore(a,b)}},googleplus:function(){s.gapi?s.gapi.plusone.go():(s.___gcfg=s.___gcfg||{lang:e.getBCP47tag().replace("_","-")},this.load("googleplus","https://apis.google.com/js/plusone.js"))},twitter:function(){var a=function(){s.twttr.widgets?s.twttr.widgets.load():setTimeout(a,1)};s.twttr?a():s.twttr=function(a,b,c){var d,e=a.getElementsByTagName(b)[0];if(!a.getElementById(c))return a=a.createElement(b),a.id=c,a.src="//platform.twitter.com/widgets.js",
e.parentNode.insertBefore(a,e),s.twttr||(d={_e:[],ready:function(a){d._e.push(a)}})}(document,"script","twitter-wjs");g.twitterEvents()}};m={facebook:function(b){var c="button";b.counter===a.counter.horizontal?c="button_count":b.counter===a.counter.vertical&&(c="box_count");return{counter:c}},googleplus:function(b){var c=a.size.medium;b.counter===a.counter.vertical&&(c="tall");return{size:c,counter:b.counter!==a.counter.none?"bubble":a.counter.none}},twitter:function(a){var b={lang:e.getBCP47tag(),
size:a.size,counter:a.counter,title:a.title,via:a.services.twitter.via};"-"===a.services.twitter.via&&(b.via="");return b},pinterest:function(a){return{image:a.image||"",counter:a.counter}},render:function(a,c,d){var e,f={};e=v[a];f.url=a===k.get("id","32").name?encodeURIComponent(d):d;f=b.mergeObjects(this[a](c),f);return b.template(e,f)}};f.insert=function(e,f,g,r){var t,n,w=g.url;g.shortUrl?w=g.shortUrl:e===k.get("id","02").name&&(w=h.prepareURLForSharing(r.publisherKey,g.url,k.get("name",e).id,
b.sGUID(),r.transformations,!0));r=c.createElement("span");e===k.get("id","07").name?(t=c.createElement("span"),c.addClass(t,"pw-button__native"),n=c.createElement("script"),c.attr(n,"type","in/share"),c.attr(n,"data-url",w),g.counter===a.counter.vertical?c.attr(n,"data-counter","top"):g.counter!==a.counter.none&&c.attr(n,"data-counter","right"),t.appendChild(n),r.appendChild(t)):(g=m.render(e,g,w),c.insertHTML(r,b.template(d.templates.buttonNative,{code:g,className:"pw-button__native"})));c.insertBefore(f,
r);c.removeNode(f);s.FB&&e===k.get("id","01").name&&s.FB.XFBML.parse();l[e]();return r};return f});q("button","dom util config oo enumeration viewCore pubsub channels i18n nativeButton proxy counter".split(" "),function(b,c,e,d,a,f,g,h,k,n,v,l){var m,s;k={};m=e.templates;s=[{from:"facebook_button",to:"facebook-like"},{from:"googleplus_button",to:"google-plus"},{from:"linkedin_button",to:"linkedin-share"},{from:"twitter_button",to:"twitter-twitt"},{from:"pinterest_button",to:"pinterest-share"},{from:"share",
to:"post-share"},{from:"mail",to:"email"}];k.tools={getButtonClassName:function(a){return e.cssClasses.pwButton+"-"+a},getLook:function(b,d){var f=a.look.square;d===a.postShare||c.isNull(d.match(e.regexpPatterns.nativeButton))||(f=a.look.nativ);e.getPropFromClass(a.look.looknative,b,e.widgetVersion)&&-1<c.indexOfArray(h.getLookNative(),d)&&(f=a.look.looknative);d===a.postShare&&(f=a.postShare);return f},resolveName:function(a){c.each(s,function(b,c){c.from===a&&(a=c.to)});return a.replace("_","").replace(".",
"")}};k.ButtonClass=d.defineClass({inherit:f.ViewClass,name:"",channelName:"",channelOptions:{},isTransparent:!1,isDead:!1,look:a.look.square,values:{counter:0},constructor:function(a){this.options=a;this.domNode=a.domNode;this.attributes=c.mergeObjects(a.attributes,{});this.widgetData=a.widgetData;this.triggers={};this.channelName=a.channelName;this.look=a.look;this.name=this.channelName;a.archVersion&&(this.archVersion=a.archVersion);this.bindAll("onButtonClick","onButtonMouseOver","onButtonMouseOut",
"updateCounter","showAllTweetsByUrl");this.render();this.bindEvents()},render:function(){var d=this,f=b.classList(d.domNode).join(" "),g;-1<f.indexOf(e.cssClasses.transparentButton)&&(this.isTransparent=!0,this.look=a.look.postShare,this.channelName=a.postShare,f=f.replace(e.cssClasses.transparentButton,""));this.channelOptions=h.get("name",this.channelName);!this.channelOptions||c.getPropertyByPath(this.channelOptions,"extra.disabled")?(this.isDead=!0,this.attributes.counter=a.counter.none):(f=this.prepareAttributes(f),
this.look===a.look.nativ?this.widgetData.transformations.shorten?(g=c.sGUID(),v.getShortUrl({shortenParams:{sGUID:g,longUrl:encodeURIComponent(v.prepareURLForSharing(this.widgetData.publisherKey,this.attributes.url,this.channelOptions.id,g,this.widgetData.transformations)),publisherKey:this.widgetData.publisherKey,channel:this.channelName},fnCallback:function(a){d.updateAttribute("shortUrl",a);d.createButton(f)}})):d.createButton(f):d.createButton(f))},showAllTweetsByUrl:function(){var a=c.openWindow("https://twitter.com/search?f\x3drealtime\x26q\x3d"+
this.attributes.url);a&&a.focus()},createButton:function(d){var e=this,f="",f="",g,k=m.buttonCounterDefault;this.channelName===a.post&&-1<c.indexOfArray(this.attrsNotDefinedByUser,a.counter.name)&&-1===c.indexOfArray(this.options.widgetData.attrsNotDefinedByUser,a.counter.name)&&(this.attributes.counter=this.options.attributes.counter);(this.look===a.look.looknative||this.look===a.look.nativ||this.channelName===a.postShare)&&this.options.attributes.counter!==a.counter.none&&-1<c.indexOfArray(this.attrsNotDefinedByUser,
a.counter.name)&&(this.attributes.counter=this.options.attributes.counter);if(this.look===a.look.nativ)this.domNode=n.insert(this.channelName,this.domNode,this.attributes,this.options.widgetData);else{f=c.template(m.buttonIcon,{channel:this.channelName.split("-")[0]});if(this.look===a.postShare||this.look===a.look.looknative)f=c.template(m.buttonLookNative,{label:c.getPropertyByPath(this.channelOptions,"extra.fakeI18n")||this.channelOptions.displayName,icon:f,type:this.look});this.attributes.counter!==
a.counter.none&&-1===c.indexOfArray(h.getWithCounters(),this.channelName)&&(this.attributes.counter=a.counter.none);this.attributes.counter!==a.counter.none&&(this.attributes.counter===a.counter.vertical&&(k=m.buttonCounterTop,g=!0),f=g?k+f:f+k);b.insertHTML(this.domNode,f);this.attributes.counter!==a.counter.none&&("twitter"===this.channelName&&b.addEvent(b.getBy(".ra1-pw-button-counter-value",this.domNode),a.events.click,this.showAllTweetsByUrl),this.counter=l.createCounter(this.domNode,{publisherKey:this.options.widgetData.publisherKey,
attributes:{url:this.attributes.url,channel:this.channelName},onReady:function(){e.publishButtonReadyEvent()}}))}this.isPostButton()&&b.attr(this.domNode,"aria-haspopup","true");this.setClassList(d);this.attributes.counter===a.counter.none&&this.publishButtonReadyEvent()},publishButtonReadyEvent:function(){g.publish("button.ready",{owner:this.options.owner})},updateNativeButton:function(d){this.look===a.look.nativ&&(this.attributes=c.mergeObjects(d,this.attributes),this.domNode=n.insert(this.channelName,
this.domNode,this.attributes,this.options.widgetData),this.setClassList(b.classList(this.domNode).join(" ")))},bindEvents:function(){this.look!==a.look.nativ&&(this.isPostButton()?(this.addEvent(this.attributes.click?a.events.click:a.events.mouseover),this.addEvent(a.events.mouseout)):this.addEvent(a.events.click))},addEvent:function(c){var d=c===a.events.click?"onButtonClick":"onButtonMouseOver";c===a.events.mouseout&&(d="onButtonMouseOut");b.addEvent(this.domNode,c,this[d])},onButtonMouseOver:function(a,
b){g.publish("button.hover",this.getPublishOptions(b),this.options.owner);g.publish("clear.timeOut")},onButtonMouseOut:function(a,b){g.publish("hide.popup")},isPostButton:function(){return-1<a.postShare.indexOf(this.channelName)},onButtonClick:function(a,b){var d={pinterestImage:this.attributes.image},d=c.mergeObjects(d,this.getPublishOptions(b));g.publish("button.click",d,this.options.owner)},getPublishOptions:function(a){var c=b.getElementOffset(a);return{coords:{left:c.left,top:c.top+a.offsetHeight},
buttonSizePX:e.buttonSize[this.attributes.size],node:[this.domNode],name:this.channelName,url:this.attributes.url}},getName:function(){return this.channelName},isPinterestButton:function(){return h.get("id","32").name===this.getName()},isNative:function(){return this.look===a.look.nativ},isLookNative:function(){return this.look===a.look.looknative},hasCounter:function(){return this.attributes.counter!==a.counter.none},updateAttribute:function(a,b){this.attributes[a]=b;"url"===a&&this.counter&&this.counter.updateAttribute("url",
b)},getAttribute:function(a){return this.attributes[a]},getId:function(){return this.channelOptions.id},getWidth:function(){var d=0;c.each(b.getBy("span",this.domNode),function(a,c){if(-1!==c.className.indexOf("pw-button-type")||b.classList(c,"pw-icon"))return d=b.getElementSize(c).width,!1});this.attributes.counter===a.counter.horizontal&&(d+=b.getElementSize(b.getBy(".pw-button-counter",this.domNode)[0]).width);this.attributes.counter===a.counter.vertical&&(d=c.arrayMaximum([d,b.getElementSize(b.getBy(".ra1-pw-button-counter-value",
this.domNode)[0]).width]));return d}});return k});q("jsApi","util config enumeration dom support pubsub pwConfig channels globals counter".split(" "),function(b,c,e,d,a,f,g,h,k,n){var v={},l,m,s,t,p=[],q=!1;f.subscribe("application.ready",function(){q=!0;window.pwidget_modules.post_images&&(b.each(p,function(a,b){window.pwidget_modules.post_images(b)}),p=[])});v.publicApi={};l=function(a,b){return c.attrPrefix+a+'\x3d"'+b+'"'};s=function(a){return b.template(c.templates.buttonDefault,{channel:a.channel,
classes:a.classes||"",attrs:a.attrs||""})};t=function(d,e){var f="";b.each(c.buttonAttributes,function(b,c){d=a.fixPinterest(d);if(d===c.name)return f=l(d,e),!1});return f};m=function(a,f,g){b.each(c.widgetAttributes,function(h,w){if(w.name===f)return b.isObject(g)&&f===e.counter.name?(b.isDefined(g.look)&&d.attr(a,c.attrPrefix+f+"-look",g.look),b.isDefined(g.layout)&&d.attr(a,c.attrPrefix+f,g.layout)):d.attr(a,c.attrPrefix+f,g),!1});return""};v.createWidgetButtons=function(a){var d=[],e=[];a&&b.each(a,
function(a,f){var g=[];b.isString(f)?e.push(s({channel:f})):(!f.image&&f.imageUrl&&f.pinterestImage&&(f.image=f.imageUrl,delete f.imageUrl,delete f.pinterestImage),b.each(f,function(a,b){"id"!==a&&"look"!==a&&g.push(t(a,b))}),"transparent"===f.style&&d.push(c.cssClasses.transparentButton),f.look&&b.indexOfArray(d,c.cssClasses.lookNativeButton)&&d.push(c.cssClasses.lookNativeButton),e.push(s({channel:f.id,classes:d.join(" "),attrs:g.join(" ")})))});return e};v.createWidgetDOM=function(c,f,g){c=d.returnElement(c);
var h=f.container,w=f.buttons,k=f.view_type,C={},D=[];delete f.view_type;delete f.container;delete f.buttons;b.isString(f.button)&&(w=[f.button],delete f.button);b.each(f,function(b,c){b=a.fixPinterest(b);C[b]=b===e.services?a.updateServices(c):c});h!==e.container.custombox&&k!==e.viewType.list&&(D=v.createWidgetButtons(w),b.each(c,function(a,b){C.counter&&m(b,e.counter.name,C.counter);d.insertHTML(b,D.join(" "))}));b.isFunction(g)&&g(c,C,h,k)};v.publicApi.counter=function(c,e){e=e||{};b.isUndefined(c)||
a.appReady(function(){b.each(d.returnElement(c),function(a,b){n.createCounter(b,{publisherKey:e.publisherKey||g.val("publisherKey"),attributes:{url:e.url||g.val("defaults.url"),channel:e.channel}})})})};v.publicApi.showAfterShare=function(a){var c=d.appendTo(d.getBy("body")[0],d.createElement("div")),f=a?a.onhideaftershare:k.notDefined;a=a||{};a.view_type=e.viewType.aftershare;b.prop(a,"afterShare.baseElement")||(a.afterShare={center:!0});a.onhideaftershare=function(){k.win.post_widget(c).destroy();
f&&f()};k.win.post_widget(c,a)};v.publicApi.post_images=function(a,b){var e={query:a,options:b};window.pwidget_modules.post_images?q?window.pwidget_modules.post_images(e):p.push(e):d.loadScript(c.externalModules.postImages,function(){v.publicApi.post_images(a,b)})};return v});q("widget","env util button oo dom enumeration config viewCore pubsub jsonp proxy pwConfig i18n ga jsApi channels support listView status globals counter".split(" "),function(b,c,e,d,a,f,g,h,k,n,v,l,m,s,t,p,q,y,r,u,F){n={};n.WidgetClass=
d.defineClass({inherit:h.ViewClass,pinterestCallBack:null,attributes:{},buttonsMap:[],fetchedCounters:!1,has:{lookNativeButtons:!1,nativeButtons:!1},widgetId:"",vGUID:"",ButtonClass:e.ButtonClass,buttonCollection:[],customBox:!1,viewType:f.viewType.widget,constructor:function(a){this.domNode=a.domNode;this.options=a;this.nodeMarker=[];this.triggers={};this.notPopularButtons=[];this.popularFixPosition=0;this.widgetId=c.GUID();this.pinterestCallBack=a.pinterestCallBack;a.archVersion&&(this.archVersion=
a.archVersion);this.customBox=a.container===f.container.custombox;this.widgetViewType=a.viewType;this.fetchedCounters=!1;this.bindAll("onButtonClick","onButtonHover","onButtonReady","onTrackMore","onCustomBoxShowPopup","onCustomBoxHidePopup");this.subscribe();this.init();this.bindEvents()},subscribe:function(){k.subscribe("button.click",this.onButtonClick,this);k.subscribe("button.hover",this.onButtonHover,this);k.subscribe("track.more",this.onTrackMore,this);k.subscribe("button.ready",this.onButtonReady)},
onButtonReady:function(a,b){var c=this,d;b.owner===this&&(d&&clearTimeout(d),d=setTimeout(function(){c.setVerticalWidth()},50))},bindEvents:function(){var b=this.attributes;this.customBox&&(a.addEvent(this.domNode,b.click?f.events.click:f.events.mouseover,this.onCustomBoxShowPopup),a.addEvent(this.domNode,f.events.mouseout,this.onCustomBoxHidePopup))},init:function(){var b=this,d=this.getWidgetLinks();this.setAttributesFromPWConfig(this.options.customPwConfig);this.attributes.publisherKey&&(d.length||
this.customBox||this.widgetViewType||(d=this.prepareButtonsFromPWConfig()),this.archVersion===f.widgetVersion.old&&(a.classList(this.domNode,g.cssClasses.disablePostButton)||(d=this.oldVersionAddPostButton(d))),c.isNull(a.attr(this.domNode,"id"))||this.nodeMarker.push("#"+a.attr(this.domNode,"id")),this.nodeMarker.push(this.domNode.nodeName.toLowerCase()),this.vGUID=l.val("vguid")||c.GUID(!0),this.prepareAttributes(a.classList(this.domNode).join(" "),function(a){d=b.getWidgetLinks();b.fixAttributes();
b.updateServiceAttributes();d=b.analyzeWidgetLinks(d);b.has.nativeButtons?b.fetchStatus(function(){b.initButtons(d,a);b.initViewType();b.afterInit()}):(b.fetchStatus(),b.initButtons(d,a),b.initViewType(),b.afterInit())}),F.initBoxCounters(this.domNode,{publisherKey:this.attributes.publisherKey,attributes:{url:this.attributes.url}},!0))},onUpdateCustomShorteners:function(a,b){b&&b.publisherKey===this.attributes.publisherKey&&this.updateConfig(b.updateAttributes||{})},initViewType:function(){switch(this.widgetViewType){case f.viewType.list:this.initListViewType();
break;case f.viewType.popup:case f.viewType.popupList:this.fireShowPopup({parentNode:[this.domNode],popupMode:this.widgetViewType});break;case f.viewType.aftershare:this.showAfterShare({})}},oldVersionAddPostButton:function(b){var d=!1,e=!1;c.each(b,function(b,c){-1<c.className.indexOf("_button")&&(e=!0);a.classList(c,g.postShareAliases)&&(d=!0)});d||(a.appendTo(this.getDom(),a.createElement("a",{className:g.postShareAliases[e?1:0]})),b=this.getWidgetLinks());return b},fixAttributes:function(){var a=
this.attributes.url;!0===l.val("track")&&(this.attributes.url=c.removeTrackingParam(a))},updateServiceAttributes:function(){this.attributes.services.exclude||(this.attributes.services.exclude={popup:[],popular:[]})},initListViewType:function(){var b=this;(new y.ListView(this.domNode,{onClickHandler:function(c,d,e){d=a.getElementOffset(e);k.publish("button.click",{name:c,coords:{left:d.left,top:d.top+e.offsetHeight},buttonSizePX:g.buttonSize.small},b)}},f.viewType.list)).show(!1,this.attributes.services)},
checkPopular:function(a){var b=c.toInt(a[0].split("-")[1])+this.popularFixPosition,d=p.getPopularChannel(b);-1<c.indexOfArray(this.notPopularButtons,d)||-1<c.indexOfArray(this.attributes.services.exclude.popular,d)?(++this.popularFixPosition,a=this.checkPopular(a)):a=b;return a},initButtons:function(a,b){this.customBox||this.widgetViewType||(this.initButtonCollection(a),this.analyzeButtons(),this.setClassList(b),this.fixSquareButtonsView())},fixSquareButtonsView:function(){var b=this.getButtonLooks();
-1===c.indexOfArray(b,f.look.nativ)&&-1===c.indexOfArray(b,f.look.looknative)&&-1<c.indexOfArray(b,f.look.postShare)&&a.addClass(this.getDom(),g.cssClasses.lookNativeWidget)},fetchStatus:function(a){var b=this,d,e;d={pubKey:this.attributes.publisherKey};e=setInterval(function(){r.getFetchingState()||(0===r.optout()||c.isUndefined(r.getInterstitial(d.pubKey))?b._fetchStatus(d,a):c.tryValue({},a),clearInterval(e))},1)},_fetchStatus:function(a,d){var e=this;r.setFetchingState(!0);v.fetchStatus(function(f){0===
r.optout()&&(r.optout(!!f.optout),k.publish("optout.ready"));f.shortener&&r.addCustomShorteners(a.pubKey,{shortener:(f.shortener||"").toLowerCase(),shortenerKey:f.shortenerKey});r.addInterstitial(a.pubKey,!!f.interstitial);r.setFetchingState(!1);f.firedisplaycm&&(f.displaycmbatch?e.insertCookieMatchingElement("iframe",f.displaycmpush,b.displayBcmUrl):e.insertCookieMatchingElement("img",f.displaycmpush,b.displayCmUrl));c.tryValue({},d)},a)},insertCookieMatchingElement:function(b,d,e){a.appendTo("body",
a.createElement(b,{className:g.cssClasses.pwLogImage,width:0,height:0,src:e+(c.isDefined(d)?"?push":"")}))},prepareButtonsFromPWConfig:function(){var b=t.createWidgetButtons(this.attributes.buttons);a.insertHTML(this.domNode,b.join(" "));return this.getWidgetLinks()},analyzeWidgetLinks:function(b){var d=!1,h=!1,k=[],L=this;c.each(b,function(b,w){var x,l,m=a.classList(w).join(" "),n;x=g.regexpPatterns.buttonContainer[f.widgetVersion.old];l=g.regexpPatterns.buttonContainer[f.widgetVersion.neu];x=x.exec(m)||
g.getPropFromClass("buttonContainer",m);x=c.isArray(x)?x[1]:x;c.isDefined(x)&&(n=x.match(g.regexpPatterns.popularChannel),c.isNull(n)?L.notPopularButtons.push(x):(x=p.getPopularChannel(L.checkPopular(n)),a.replaceClass(w,m,m.replace(l,e.tools.getButtonClassName(x)))),x=e.tools.resolveName(x),m=e.tools.getLook(m,x),d||(d=f.look.looknative===m),h||(h=f.look.nativ===m),x!==f.postShare&&f.look.nativ===m&&(l=x.split("-")[0],x="google"===l?x.replace("-",""):l),k.push({channelName:x,node:w,look:m}))});this.has.nativeButtons=
h;this.has.lookNativeButtons=d;return k},getWidgetLinks:function(){return a.getBy("a",this.domNode)},analyzeButtons:function(){var a=this.buttonCollection,b=!1,d=this;d.buttonsMap=[];c.each(a,function(a,c){c&&!c.isDead&&d.buttonsMap.push(c.getId()+"."+c.look.charAt(0)+c.getAttribute("size").charAt(0));b||c.attributes.counter===f.counter.none||c.isNative()||(b=!0);d.attributes.size=d.getLargestButtonSize()});this.buttonsMap=this.buttonsMap.join(",");b?this.attributes.counter===f.counter.none&&(this.attributes.counter=
this.attributes.layout):this.attributes.counter=f.counter.none},getButtonLooks:function(){var a=[];c.each(this.buttonCollection,function(b,c){a.push(c.look)});return c.uniq(a)},initButtonCollection:function(a){var d=this,e=d.attributes;d.buttonCollection=[];c.each(a,function(a,g){(b.isMobile&&g.channelName!==f.favorites||!b.isMobile)&&(b.isMobile&&!b.isMobile.iosV&&g.channelName!==f.print||!b.isMobile||b.isMobile&&b.isMobile.iosV)&&d.buttonCollection.push(new d.ButtonClass({owner:d,domNode:g.node,
channelName:g.channelName,look:g.look,attributes:{counter:e.counter,layout:e.layout,size:e.size,url:e.url,image:e.image,title:e.title,services:e.services,click:e.click},widgetData:{publisherKey:e.publisherKey,attrsNotDefinedByUser:d.attrsNotDefinedByUser,transformations:e.transformations},widgetHas:c.cloneObj(d.has),archVersion:d.archVersion}))})},getLargestButtonSize:function(){var a=g.buttonSize,b,d,e=[];c.each(this.buttonCollection,function(b,c){var d=a[c.attributes.size][0];-1===e.join("").indexOf(d)&&
e.push(d)});d=c.arrayMaximum(e);c.each(a,function(a,c){if(c[0]===d)return b=a,!1});return b},afterInit:function(){this.widgetViewType||this.logEvent(f.dataloggerEvent.view,{bs:this.buttonsMap,wv:this.archVersion||""})},onTrackMore:function(a,b){this.logEvent(f.dataloggerEvent.more,{label:m.t(f.more),mGUID:c.GUID(!0)})},onButtonHover:function(a,b){!1===this.attributes.click&&this.fireShowPopup(b)},onCustomBoxHidePopup:function(a,b){k.publish("hide.popup")},onCustomBoxShowPopup:function(c,d){var e;
b.isMobile&&!l.val("mobileOverlay")?this.openShareListWindow():(e=a.getElementOffset(d),this.fireShowPopup({coords:{left:e.left,top:e.top+d.offsetHeight},buttonSizePX:[d.offsetWidth,d.offsetHeight]}),k.publish("clear.timeOut"))},fireShowPopup:function(a){k.publish("popup.show",c.mergeObjects(a,{widgetInstance:this,services:this.attributes.services,widgetViewType:this.widgetViewType,mode:a.popupMode||f.viewType.popup,shareAgain:this.attributes.shareAgain,afterShareText:this.attributes.afterShareText}))},
fireHidePopup:function(){k.publish("popup.hide")},doUserCallback:function(a){var b=this.attributes["on"+a];c.isFunction(b)&&b.apply(u.win,Array.prototype.slice.call(arguments,1))},onButtonClick:function(a,d){var e=this.attributes,g=c.sGUID(),h=p.get("id","03").name,A=p.get("name",d.name),E=l.val("mobileOverlay"),x=!1,n=!1,s=c.prop(A,"extra.shorten"),r=d.url||e.url,q,t;q=d.name;this.doUserCallback("buttonclick",q);b.isMobile&&q===h&&(n=!0);if(-1<c.indexOfArray([f.post,f.postShare,f.more],q)){if(this.attributes.click||
q===f.more)q===f.more&&(d.popupMode=f.viewType.popupList,this.onTrackMore()),this.widgetViewType||(!E&&b.isMobile?this.openShareListWindow(d.popupMode):this.fireShowPopup(d))}else{this.widgetViewType||this.fireHidePopup();E=A.value;t=c.fixShema(r);t=v.prepareURLForSharing(e.publisherKey,t,A.id,g,e.transformations,n);switch(q){case h:b.isMobile&&this.doAfterShare(d);this.shareByMail(A.id,t);break;case f.print:c.print();break;case f.favorites:c.addToFavorites(e.title,r,function(){c.notify(m.t("pressToBookmark"))});
break;default:if(E){switch(q){case p.get("id","24").name:E=this.getWPUrl(A);break;case p.get("id","32").name:n=d.pinterestImage||e.image;if(c.isUndefined(n)){d.widgetInstance=this;k.publish("pinmarklet.show",d);return}E=c.template(E,{imageurl:n});break;case p.get("id","02").name:E=c.template(E,{via:e.services.twitter.via})}if(!E)return;this.shareBySocial({channelProperties:A,sGUID:g,sharerUrl:E,trackingUrl:t,shortenValueChannel:s})}}this.doUserCallback("share",q,d.node?d.node[0]:u.notDefined);q!==
h||b.isMobile||(x=!0);x||(F.increment({publisherKey:e.publisherKey,channel:q,url:r}),(q===f.favorites||q===f.print||q===h&&b.isMobile)&&this.logEvent(f.dataloggerEvent.share,{sGUID:g,sc1:q,sm:l.val("mode"),pu:r}),q!==h&&this.doAfterShare(d));this.trackGoogleAnalytics("event",A.displayName,r);this.trackGoogleAnalytics("social",A.displayName,r)}},doAfterShare:function(a){this.attributes.afterShare&&(this.showAfterShare(a),this.doUserCallback("showaftershare"))},trackGoogleAnalytics:function(a,b,c){s.track(a,
b,c)},openShareListWindow:function(a,d,e){d={};e=c.mergeObjects(l.getUserPwConfig(),{},!0);a||(a=b.isMobile&&b.isMobile.tablet?f.viewType.popupList:f.viewType.popup);e.vguid=this.vGUID;d.view_type=a;d.widget_attrs=JSON.stringify(c.mergeObjects(this.attributes,{widgetId:this.widgetId},!0));d.pwidget_config=JSON.stringify(e);(a=c.openWindow(v.getUrl("shareList",d)))&&a.focus()},shareByMail:function(a,d){var e=this.attributes,f="%0A%0A"+encodeURIComponent(d);b.isMobile?setTimeout(function(){c.redirect("mailto:?subject\x3d"+
e.title+"\x26body\x3d"+(e.description||"")+f)},500):this.showMailFrame(a,d)},showAfterShare:function(a){var b=this,c={buttonSizePX:a.buttonSizePX,coords:a.coords,mode:f.viewType.aftershare,onHideAfterShare:b.attributes.onhideaftershare,widgetViewType:this.widgetViewType,widgetAttributes:this.attributes,afterShare:{}};v.requestAfterShare(this.attributes.publisherKey,function(a){c.afterShare.offer=a;b.fireShowPopup(c)})},getWPUrl:function(a){var b=c.askUser(m.t("enterWordpressURL"),g.wpAskUrlDefaultValue);
c.isNull(b)||(b!==g.wpAskUrlDefaultValue?(b=b.replace(/^\s+|\/+\s+$/g,""),/http[s]{0,1}:\/\/[\S]+\.[\S]+.*/.test(b)&&(b=c.template(a.value,{url:b}))):b=null);return b},shareBySocial:function(a){var d=this.attributes,e,f=r.getCustomShortener(d.publisherKey);d.internal.sharedVia&&c.prop(a.channelProperties,"extra.viaShareQuote")&&(a.sharerUrl=a.channelProperties.extra.viaShareQuote);e=c.mergeObjects({shortenButton:a.shortenButton,url:a.trackingUrl,sharer:a.channelProperties.displayName,sharerUrl:a.sharerUrl,
sGUID:a.sGUID,sc:a.channelProperties.name,maxSymbols:c.getPropertyByPath(a.channelProperties,"extra.maxSymbols")||0,shareServer:b.shareServer,extraUrlEncoding:c.getPropertyByPath(a.channelProperties,"extra.extraUrlEncoding"),shortener:u.notDefined,shortenerKey:u.notDefined,logServer:b.logServer,optout:r.optout()},this.getDefaultSharingParams());f&&(e.shortener=f.shortener,e.shortenerKey=f.shortenerKey);d.internal.sharedVia&&(e.svia=d.internal.sharedVia);e=c.mergeObjects(e,this.getShortenUrlParam(a.channelProperties.name,
c.getPropertyByPath(a.channelProperties,"extra.shorten")));d=v.getUrl("sharePoint",e);a=this.getWindowParams(c.getPropertyByPath(a.channelProperties,"extra.popUpSize"));c.openWindow(d,a)},getDefaultSharingParams:function(){var c=this.attributes;return{url:c.url,via:c.services.twitter.via,title:c.title,pub:c.publisherKey,description:c.description||"",vGUID:this.vGUID,sm:l.val("mode"),ru:l.val("referrer")||a.doc("referrer"),lc:l.val("locale"),v:l.val("version")||b.widgetBuildNumber}},getWindowParams:function(b){var d=
"";this.attributes.sharePopups&&!c.isUndefined(b)&&(d=b[0],b=b[1],d="width\x3d"+d+", height\x3d"+b+", left\x3d"+c.toInt(a.win("screen.width")/2-d/2)+", top\x3d"+c.toInt(a.win("screen.height")/2-b/2));return d},getShortenUrlParam:function(a,b){var d=this.attributes.transformations.shorten,e={};r.getInterstitial(this.attributes.publisherKey)?e.shorten=!0:c.isDefined(d)?e.shorten=d:c.isDefined(b)&&(e.shorten=b);return e},logEvent:function(a,b){var d,e=this.attributes;d={vGUID:this.vGUID,pu:e.url,pt:e.title,
pub:e.publisherKey,random:c.getTimeStamp()};e.internal.sharedVia&&(d.sharedVia=e.internal.sharedVia);b=b||{};v.logEvent(a,c.mergeObjects(d,b))},showMailFrame:function(d,e){var f=this.attributes,g=l.val("track"),h=f.transformations.shorten,A=r.getCustomShortener(f.publisherKey),m=f.afterShare,x={};r.getInterstitial(this.attributes.publisherKey)&&(h=!0);f.transformations.tracking||(g=!1);f.internal.sharedVia&&(x.svia=f.internal.sharedVia);A&&(x.shortener=A.shortener,x.shortenerKey=A.shortenerKey);k.publish("mail.show",
c.mergeObjects({sharerId:d,referrer:a.doc("referrer"),shorten:h,pubKey:f.publisherKey,track:g,title:f.title,description:f.description||"",vGUID:this.vGUID,url:c.removeTrackingParam(e),sm:l.val("mode"),lc:l.val("locale"),shareServer:b.shareServer,afterShare:c.isObject(m)?!0:m},x))},setAttributesFromPWConfig:function(a){this.attributes={publisherKey:l.val("publisherKey"),onshare:l.val("onshare"),counterLook:u.notDefined};this.attributes=c.mergeObjects(l.val("defaults"),this.attributes);this.attributes.services=
q.updateServices(this.attributes.services);c.isObjEmpty(a)||(a.mode&&l.update({mode:a.mode}),c.prop(a,"services.exclude")&&a.services.exclude.popup&&c.isArray(a.services.exclude.popup)&&(this.attributes.services.p_share_popup&&!a.services.p_share_popup&&(this.attributes.services.p_share_popup=c.unMergeArrays(this.attributes.services.p_share_popup,a.services.exclude.popup)),this.attributes.services.more_popup&&!a.services.more_popup&&(this.attributes.services.more_popup=c.unMergeArrays(this.attributes.services.more_popup,
a.services.exclude.popup))),this.attributes=c.mergeObjects(a,this.attributes));this.resolveClickMobile();this.attributes.vertical&&(this.attributes.layout=f.layout.vertical,delete this.attributes.vertical);this.attributes=this.resolveCounterNative()},resolveClickMobile:function(){b.isMobile&&(this.attributes.click=!0)},resolveCounterNative:function(){var a=this.attributes.counter;c.isObject(a)&&(this.attributes.counter=a.layout?a.layout:f.counter.horizontal,a.look&&(this.attributes.counterLook=a.look));
return this.attributes},updateConfig:function(a){var b=!1,d={},e=this.attributes.url;c.isObjEmpty(a)||(c.each(a,function(a,c){a=q.fixPinterest(a);d[a]=c;"image"===a&&(b=!0)}),this.attributes=c.mergeObjects(d,this.attributes),c.each(this.getNativeButtons(),function(b,c){c.updateNativeButton(a)}),this.resolveClickMobile(),a.url&&this.updateUrlInButtons(e),b&&this.updatePinterestButtons())},updateUrlInButtons:function(a){var b=this;c.each(this.buttonCollection,function(c,d){d.attributes.url===a&&d.updateAttribute("url",
b.attributes.url)})},getNativeButtons:function(){var a=[];c.each(this.buttonCollection,function(b,c){c.look===f.look.nativ&&a.push(c)});return a},updatePinterestButtons:function(){var a=this;c.each(this.buttonCollection,function(b,c){c.isPinterestButton()&&c.updateAttribute("image",a.attributes.image)})},setCounterLookNative:function(){this.attributes.counterLook=f.look.nativ},getAttribute:function(a){return this.attributes[a]},getDom:function(){return this.domNode},destroyDOM:function(){a.removeNode(this.domNode)},
getMaxButtonWidth:function(){var a=[];c.each(this.buttonCollection,function(b,c){c.isNative()?a.push(16):a.push(c.getWidth())});return c.arrayMaximum(a)},setVerticalWidth:function(){this.attributes.layout===f.layout.vertical&&a.setStyle(this.domNode,{width:this.getMaxButtonWidth()+"px"})}});return n});q("application","util oo config dom widget jsonp enumeration pubsub pwConfig proxy emailFrame popup channels i18n ga url jsApi scriptParams support globals env copyPaste status counter".split(" "),function(b,
c,e,d,a,f,g,h,k,n,q,l,m,s,t,p,B,y,r,u,F,w,z,C){f={};var D=u.win;f.Application=c.defineClass({initialized:!1,buttonsLoaded:0,WidgetClass:a.WidgetClass,ShareEmailView:null,PopupView:null,widgetCollection:[],pinApi:u.notDefined,options:{},constructor:function(a){this.options=a;this.triggers={};this.bindAll("copyPasteCallback","initApplication","showMailFrame","showSharePopup","hideSharePopup","onButtonReady","onOptOutReady","widgetJsAPI");this.subscribe()},init:function(){var a=this;this.initPwConfig();
switch(k.val("init")){case g.initType.immediate:this.initApplication();break;case g.initType.lazy:this.afterInit(function(){a.initCoreMethods()});break;default:d.ready(this.initApplication)}},onOptOutReady:function(){this.trackClickBack();this.initAddressBarTracking()},initAddressBarTracking:function(){k.val("trackAddressBar")&&!0===k.val("track")&&u.win.location.replace("#"+b.sGUID()+".97")},insertAdditionalClasses:function(){var a=e.cssClasses.htmlPwLocale+s.getBCP47tag().split("_")[0],a=a+(" ra1-pw-"+
(F.isMobile?"mobile":"desktop"));F.isMobile&&(a+=" ra1-pw-mobile-"+b.trim(F.isMobile.platform).toLowerCase());d.addClass("html",a)},trackToComScore:function(){var a=("https:"===d.doc("location.protocol")?"https://sb":"http://b")+".scorecardresearch.com/beacon.js";D._comscore=D._comscore||[];D._comscore.push({c1:"7",c2:"8973917",c3:"1"});d.loadScript(a)},subscribe:function(){h.subscribe("mail.show",this.showMailFrame);h.subscribe("popup.show",this.showSharePopup);h.subscribe("popup.hide",this.hideSharePopup);
h.subscribe("button.ready",this.onButtonReady);h.subscribe("optout.ready",this.onOptOutReady);h.subscribe("pinmarklet.show",this.pinterestCallBack)},applicationOnLoad:function(a){var b=this,c=0,d;d=setInterval(function(){b.buttonsLoaded>c?c=b.buttonsLoaded:(a(),clearInterval(d))},1)},loadAssets:function(){k.val("clean")||(d.loadCSS(e.mainCssPath),this.prepareRetina())},initCoreMethods:function(){this.updatePwidgetConfig();this.fixPinterestInPwConfig();this.loadAssets();m.init();this.insertAdditionalClasses();
t.init()},initApplication:function(a){var c=this,e=b.isObject(a)?a:d.getBy(a||"body");c.initialized||this.initCoreMethods();a?b.each(b.isArray(e)?e:[e],function(a,b){c.searchForWidgetsMarkup(b)}):this.searchForWidgetsMarkup(a);c.initialized||this.afterInit()},searchForWidgetsMarkup:function(a){var c=this;b.each(d.getBy(e.getCssQuerySelector("widget"),a),function(a,b){c.addWidgetToCollection({domNode:b})});b.each(d.getBy(e.getCssQuerySelector("widget","2.1"),a),function(a,b){c.addWidgetToCollection({domNode:b},
"2.1")});b.each(d.getBy("a",a),function(a,f){b.isNull(f.className.match(e.regexpPatterns.buttonContainer["3.0"]))||d.getParentByClassList(f,e.postWidgetAliases)||c.addWidgetToCollection({domNode:c.createWidgetFromSingleButton(f)})});C.initBoxCounters(a,{publisherKey:k.val("publisherKey"),attributes:{url:k.val("defaults.url")}})},isWidgetInitialized:function(a){var c=!1;b.each(this.widgetCollection,function(b,d){if(d.getDom()===a)return c=!0,!1});return c},updatePwidgetConfig:function(){var a;a=b.cloneObj(D.pwidget_config);
a.publisherKey=a.publisherKey||y.get("publisherKey");a.locale=s.validateUserLocale(a.locale||y.get("lc"));a.retina=a.retina||y.get(g.retina);a.clean=b.isUndefined(a.clean)?b.strToBoolean(y.get("clean")):a.clean;!p.canonical.get()||a.defaults&&a.defaults.url||(a.defaults=a.defaults||{},a.defaults.url=p.canonical.get());F.isMobile&&F.isMobile.tablet&&(a.mobileOverlay=!0);a.defaults&&(a.defaults=b.mergeObjects(a.defaults,r.fixPinterestPwConf(a.defaults)));k.update({locale:a.locale},!0);k.update(a);k.setUserPwConfig(D.pwidget_config)},
initPwConfig:function(){k.update({init:b.cloneObj(D.pwidget_config).init||y.get("init")})},addWidgetToCollection:function(a,b){b&&(a.archVersion=b);a.pinterestCallBack=this.pinterestCallBack;this.isWidgetInitialized(a.domNode)||this.widgetCollection.push(new this.WidgetClass(a))},createWidgetFromSingleButton:function(a){var b=d.createElement("span",{className:e.widgetClassList});this.cloneNodeAttributes(a,b,e.widgetAttributes);this.cloneNodeClasses(a,b);d.appendTo(b,a.cloneNode(!0));d.insertBefore(a,
b);d.removeNode(a);return b},cloneNodeAttributes:function(a,c,f){b.each(f,function(b,f){var g=e.getAttrValue(a,f.name);g&&d.attr(c,"data-"+f.name,g)})},cloneNodeClasses:function(a,b){d.setClass(b,a.className)},afterInit:function(a){var c=this;this.applicationOnLoad(function(){var e;a&&a();e=k.val("onload");c.prepareExternalFiles();c.initialized=!0;e&&e();c.trackToComScore();0===c.widgetCollection.length&&k.val("publisherKey")&&(c.fetchStatus(),c.logDataLoggerEvent("view",{vGUID:k.val("vguid")||b.GUID(!0),
pu:p.canonical.get()||b.removeTrackingParam(d.doc("location.href")),pt:k.val("defaults.title"),pub:k.val("publisherKey")}));h.publish("application.ready")})},fetchStatus:function(){n.fetchStatus(function(a){0===z.optout()&&(z.optout(!!a.optout),h.publish("optout.ready"));z.setFetchingState(!1)})},prepareExternalFiles:function(){this.prepareCopyPaste()},prepareCopyPaste:function(){var a=g.copypaste,c=!0,f=this.widgetCollection,h=f.length,l=0,m=this,n;k.val("publisherKey")&&(b.each(f,function(a,c){if(b.isDefined(c.attributes.copypaste)){if(c.attributes.copypaste)return n=
!0,!1;l++;n=!1}}),k.val(a)||b.isDefined(n)?k.val(a)||!b.isDefined(n)||n?l&&l===h&&(c=!1):c=!1:c=!1,k.val("shareQuote")?d.loadScript(e.externalModules.shareQuote,function(){m.initCopyPaste(c,m.initShareQuote())}):this.initCopyPaste(c))},initShareQuote:function(){var a=u.win.pwidget_modules.shareandquote;a("init",{poStLink:e.poStLink,postWidget:{buttons:k.val("shareQuoteOptions.buttons"),more_popup_exclude:k.val("shareQuoteOptions.more_popup_exclude")}});return a},initCopyPaste:function(a,c){var d=
this,e=b.sGUID(),f=s.t("readMore"),g=k.val("i18n.readMore");g&&(f=-1<g.indexOf("{link}")?g:g+"{link}");w.init({msg:f,min:k.val("copypasteOptions.minWords"),copypasteImageSize:k.val("copypasteOptions.copypasteImageSize"),tracking:a,url:d.getUrlForCopyPaste(e),onCopy:function(b,f){d.copyPasteCallback(e,b,a);c&&f&&c("show",b)}})},getUrlForCopyPaste:function(a){var c=k.val("readMoreUrl")||p.canonical.get()||b.removeTrackingParam(d.doc("location.href"));return n.prepareURLForSharing(k.val("publisherKey"),
c,"99",a,{shorten:!1,tracking:k.val("defaults.transformations.tracking")})},copyPasteCallback:function(a,c,e){var f=p.canonical.get()||b.removeTrackingParam(d.doc("location.href")),h=e?g.dataloggerEvent.share:g.dataloggerEvent.copyPaste;t.track("event","Clipboard",f);t.track("social","Clipboard",f);a={vGUID:k.val("vguid")||b.GUID(!0),sGUID:a,pu:f,text:c.substr(0,2E3)};e&&(a=b.mergeObjects({sm:k.val("mode"),sc1:"clipboard"},a),C.increment({publisherKey:k.val("publisherKey"),channel:"clipboard",url:f}),
this.doUserCallback("share","clipboard"));this.logDataLoggerEvent(h,a)},doUserCallback:function(a){var c=arguments;b.tryValue(b.prop(D,"pwidget_config.defaults.on"+a),function(a){b.isFunction(a)&&a.apply(u.win,Array.prototype.slice.call(c,1))})},prepareRetina:function(){k.val(g.retina)&&d.loadCSS(e.externalCss.retina)},showMailFrame:function(a,b){this.ShareEmailView||(this.ShareEmailView=new q.EmailFrame);this.ShareEmailView.show(b)},showSharePopup:function(a,b){this.PopupView||(this.PopupView=new l.PopupView(b));
this.PopupView.show(b)},hideSharePopup:function(a,b){this.PopupView&&this.PopupView.hide()},trackClickBack:function(){var a;k.val("track")&&(a=/[\?&#]{1}([a-z\d]{16})\.([\d]{2})(?:|$)/i,a=a.exec(d.doc("location.href")),b.isNull(a)||this.logDataLoggerEvent(g.dataloggerEvent.clickback,{pt:k.val("defaults.title"),pu:k.val("defaults.url"),sc:m.get("id",a[2]).name,sGUID:a[1],bGUID:b.GUID(!0)}))},logDataLoggerEvent:function(a,c){c.random=b.getTimeStamp();n.logEvent(a,c)},onButtonReady:function(a,b){this.buttonsLoaded+=
1},widgetJsAPI:function(a,c){var d,e=this;b.isDefined(a)&&(d=e.getWidgetsBySelector(a),d.length||r.appReady(function(){b.isUndefined(c)&&(c={container:g.container.custombox});!b.isDefined(c)||b.hasProperty(c,"button")||b.hasProperty(c,"buttons")||b.hasProperty(c,"view_type")||(c.container=g.container.custombox);B.createWidgetDOM(a,c,function(a,c,d,f){b.each(a,function(a,b){e.addWidgetToCollection({domNode:b,customPwConfig:c,container:d,viewType:f})})})}));return{updateConfig:function(a){!b.isObjEmpty(a)&&
b.isDefined(d)&&d.length&&b.each(d,function(b,c){c.updateConfig(a)})},destroy:function(){if(b.isDefined(a))return e.removeJSAPIWidgets(a)}}},processWidgets:function(a,c){b.isFunction(c)&&b.each(this.widgetCollection,function(e,f){b.isCollection(a)||d.isNodeElement(a)?(a.length||(a=[a]),b.each(a,function(a,d){b.isDefined(f)&&f.domNode===d&&c(f)})):-1!==b.indexOfArray(f.nodeMarker,a)&&c(f)})},removeJSAPIWidgets:function(a){var b=!1;this.processWidgets(a,function(a){a.destroyDOM();b=!0});return b},getWidgetsBySelector:function(a){var b=
[];this.processWidgets(a,function(a){b.push(a)});return b},pinterestCallBack:function(a,c){var f=this;f.pinApi?(f.pinApi.f.init(),f.pinApi.f.pin=function(a){a=f.pinApi.v.found[a];f.pinApi.f.close();c.pinterestImage=a.src;h.publish("button.click",c,c.widgetInstance)}):d.loadScript(e.pinMarkletUrl+"?r\x3d"+99999999*Math.random(),function(){var a;b.each(b.getObjectKeys(window),function(b,c){if(-1<c.indexOf("PIN_")&&window[c].hasOwnProperty("f")&&window[c].f.hasOwnProperty("pin"))return a=c,!1});a&&(f.pinApi=
window[a],f.pinApi.f.pin=function(a){a=f.pinApi.v.found[a];f.pinApi.f.close();c.pinterestImage=a.src;h.publish("button.click",c,c.widgetInstance)})})},fixPinterestInPwConfig:function(){var a=k.val("defaults.imageUrl"),b=k.val("defaults.image"),c=b;a&&!b&&(c=a);k.update({defaults:{image:c}})}});return f});H(["dom","application","env","jsApi","util"],function(b,c,e,d,a){var f=window;a={htmlIE7:"ra1-pw-ie7",htmlIE8:"ra1-pw-ie8"};7!==e.ieVersion&&8!==e.ieVersion||b.addClass("html",a["htmlIE"+e.ieVersion]);
b=new c.Application;f.post_widget=b.widgetJsAPI;f.post_init=b.initApplication;f.pwidget_api=d.publicApi;f.pwidget_modules=f.pwidget_modules||{};f.pwidget_modules.define=function(a,b,c){q(a,b,c);H([a],function(b){f.pwidget_modules[a]=b})};f.pwidget_modules.require=H;b.init()})}}})(window,document);